@feedmepos/mf-report 5.27.50 → 5.27.51
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-BmsF09Zx.js → App-BUacyp4N.js} +4 -4
- package/dist/{DateRangeSelect-DFrmdy1V.js → DateRangeSelect-w6BujNnz.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-CiFQcLSi.js → Default.vue_vue_type_script_setup_true_lang-hyLYYw0g.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-B7BFGX1N.js → DynamicWidget.vue_vue_type_script_setup_true_lang-B3srDs3Y.js} +1565 -1560
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-COrPvIuC.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DgDsEckO.js} +2861 -2776
- package/dist/{InsightView-ButMjg-U.js → InsightView-DS6rf2VG.js} +4 -4
- package/dist/{Integration-kEwQu7ai.js → Integration-BHWhJ9JT.js} +3 -3
- package/dist/{Integrations-CQSoSK5V.js → Integrations-BcPNQ1Ga.js} +2 -2
- package/dist/{Layout-DTsjR_RE.js → Layout-BGsnPPEz.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BrRzCA9f.js → MenuTab.vue_vue_type_script_setup_true_lang-BsTMVreF.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DUs73Dgk.js → NavigationTab.vue_vue_type_script_setup_true_lang-DuGertQd.js} +3 -3
- package/dist/{OverviewView-C7rXqkqu.js → OverviewView-cISqmDJF.js} +5 -5
- package/dist/{Report-DmMvV31s.js → Report-uI-i1vQO.js} +4 -4
- package/dist/{ReportEditor-BiEsvXZY.js → ReportEditor-lT9Q-hMV.js} +7 -7
- package/dist/{ReportView-bervDyDE.js → ReportView-DCeFWOHh.js} +7 -7
- package/dist/{Setting-DKnjhY5Y.js → Setting-BWRoxXWB.js} +3 -3
- package/dist/{Template-CA1pA8Tn.js → Template-CymYDuLw.js} +4 -4
- package/dist/{TileEditor-BO3GDx7j.js → TileEditor-CFtBvrVA.js} +6 -6
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-BwkSae0h.js → TilePageStack.vue_vue_type_script_setup_true_lang-nyilnJSr.js} +99 -99
- package/dist/{TransitionFade-PFvFcMin.js → TransitionFade-Kv-ST21m.js} +5 -5
- package/dist/{app-BeHt_Ouq.js → app-CbOo1IIJ.js} +1056 -930
- package/dist/app.js +1 -1
- package/dist/assets/{processTableData.worker-CXe8nW3O.js → formatChartData.worker-BSkJ6ZoI.js} +43 -28
- package/dist/assets/{formatChartData.worker-DcDBJkDq.js → processTableData.worker-CIXM58BV.js} +43 -28
- package/dist/i18n-DbyciK4x.js +76 -0
- package/dist/{useRestaurantPermission-46Gnzr-t.js → useRestaurantPermission-DujRDo_N.js} +1 -1
- package/package.json +1 -1
- package/dist/i18n-CI_sQ5d_.js +0 -76
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var ri = Object.defineProperty;
|
|
2
2
|
var ni = (e, t, o) => t in e ? ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
|
-
var
|
|
4
|
-
import { isRef as ai, ref as ue, shallowRef as ii, watchEffect as si, computed as ve, h as ur, defineComponent as Kn, createBlock as ci, renderSlot as
|
|
3
|
+
var mt = (e, t, o) => ni(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
|
+
import { isRef as ai, ref as ue, shallowRef as ii, watchEffect as si, computed as ve, h as ur, defineComponent as Kn, createBlock as ci, renderSlot as mi, createCommentVNode as Ai, unref as yt, openBlock as xn, createElementBlock as li, createElementVNode as Pt, toDisplayString as Wr, watch as En, readonly as sr, defineAsyncComponent as Tn } from "vue";
|
|
5
5
|
import { useRoute as di, useRouter as ui, createRouter as pi, createWebHistory as fi } from "vue-router";
|
|
6
6
|
import { useCoreStore as Tr, useI18n as gi } from "@feedmepos/mf-common";
|
|
7
|
-
import { defineStore as Jt, storeToRefs as
|
|
7
|
+
import { defineStore as Jt, storeToRefs as Ne } from "pinia";
|
|
8
8
|
import { components as yi } from "@feedmepos/ui-library";
|
|
9
9
|
var it = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
10
10
|
function pt(e) {
|
|
@@ -45,8 +45,8 @@ var Hn = { exports: {} };
|
|
|
45
45
|
return (P <= 0 ? "+" : "-") + z(O, 2, "0") + ":" + z(E, 2, "0");
|
|
46
46
|
}, m: function x(P, h) {
|
|
47
47
|
if (P.date() < h.date()) return -x(h, P);
|
|
48
|
-
var O = 12 * (h.year() - P.year()) + (h.month() - P.month()), E = P.clone().add(O, C), v = h - E < 0,
|
|
49
|
-
return +(-(O + (h - E) / (v ? E -
|
|
48
|
+
var O = 12 * (h.year() - P.year()) + (h.month() - P.month()), E = P.clone().add(O, C), v = h - E < 0, A = P.clone().add(O + (v ? -1 : 1), C);
|
|
49
|
+
return +(-(O + (h - E) / (v ? E - A : A - E)) || 0);
|
|
50
50
|
}, a: function(x) {
|
|
51
51
|
return x < 0 ? Math.ceil(x) || 0 : Math.floor(x);
|
|
52
52
|
}, p: function(x) {
|
|
@@ -55,19 +55,19 @@ var Hn = { exports: {} };
|
|
|
55
55
|
return x === void 0;
|
|
56
56
|
} }, X = "en", Y = {};
|
|
57
57
|
Y[X] = S;
|
|
58
|
-
var
|
|
59
|
-
return x instanceof M || !(!x || !x[
|
|
58
|
+
var L = "$isDayjsObject", re = function(x) {
|
|
59
|
+
return x instanceof M || !(!x || !x[L]);
|
|
60
60
|
}, f = function x(P, h, O) {
|
|
61
61
|
var E;
|
|
62
62
|
if (!P) return X;
|
|
63
63
|
if (typeof P == "string") {
|
|
64
64
|
var v = P.toLowerCase();
|
|
65
65
|
Y[v] && (E = v), h && (Y[v] = h, E = v);
|
|
66
|
-
var
|
|
67
|
-
if (!E &&
|
|
66
|
+
var A = P.split("-");
|
|
67
|
+
if (!E && A.length > 1) return x(A[0]);
|
|
68
68
|
} else {
|
|
69
|
-
var
|
|
70
|
-
Y[
|
|
69
|
+
var m = P.name;
|
|
70
|
+
Y[m] = P, E = m;
|
|
71
71
|
}
|
|
72
72
|
return !O && E && (X = E), E || !O && X;
|
|
73
73
|
}, w = function(x, P) {
|
|
@@ -80,7 +80,7 @@ var Hn = { exports: {} };
|
|
|
80
80
|
};
|
|
81
81
|
var M = function() {
|
|
82
82
|
function x(h) {
|
|
83
|
-
this.$L = f(h.locale, null, !0), this.parse(h), this.$x = this.$x || h.x || {}, this[
|
|
83
|
+
this.$L = f(h.locale, null, !0), this.parse(h), this.$x = this.$x || h.x || {}, this[L] = !0;
|
|
84
84
|
}
|
|
85
85
|
var P = x.prototype;
|
|
86
86
|
return P.parse = function(h) {
|
|
@@ -90,10 +90,10 @@ var Hn = { exports: {} };
|
|
|
90
90
|
if (D.u(E)) return /* @__PURE__ */ new Date();
|
|
91
91
|
if (E instanceof Date) return new Date(E);
|
|
92
92
|
if (typeof E == "string" && !/Z$/i.test(E)) {
|
|
93
|
-
var
|
|
94
|
-
if (
|
|
95
|
-
var
|
|
96
|
-
return v ? new Date(Date.UTC(
|
|
93
|
+
var A = E.match(F);
|
|
94
|
+
if (A) {
|
|
95
|
+
var m = A[2] - 1 || 0, g = (A[7] || "0").substring(0, 3);
|
|
96
|
+
return v ? new Date(Date.UTC(A[1], m, A[3] || 1, A[4] || 0, A[5] || 0, A[6] || 0, g)) : new Date(A[1], m, A[3] || 1, A[4] || 0, A[5] || 0, A[6] || 0, g);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
return new Date(E);
|
|
@@ -119,40 +119,40 @@ var Hn = { exports: {} };
|
|
|
119
119
|
}, P.valueOf = function() {
|
|
120
120
|
return this.$d.getTime();
|
|
121
121
|
}, P.startOf = function(h, O) {
|
|
122
|
-
var E = this, v = !!D.u(O) || O,
|
|
123
|
-
var
|
|
124
|
-
return v ?
|
|
125
|
-
}, g = function(
|
|
126
|
-
return D.w(E.toDate()[
|
|
127
|
-
}, p = this.$W, U = this.$M, j = this.$D,
|
|
128
|
-
switch (
|
|
122
|
+
var E = this, v = !!D.u(O) || O, A = D.p(h), m = function(N, _) {
|
|
123
|
+
var Ae = D.w(E.$u ? Date.UTC(E.$y, _, N) : new Date(E.$y, _, N), E);
|
|
124
|
+
return v ? Ae : Ae.endOf(d);
|
|
125
|
+
}, g = function(N, _) {
|
|
126
|
+
return D.w(E.toDate()[N].apply(E.toDate("s"), (v ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(_)), E);
|
|
127
|
+
}, p = this.$W, U = this.$M, j = this.$D, k = "set" + (this.$u ? "UTC" : "");
|
|
128
|
+
switch (A) {
|
|
129
129
|
case T:
|
|
130
|
-
return v ?
|
|
130
|
+
return v ? m(1, 0) : m(31, 11);
|
|
131
131
|
case C:
|
|
132
|
-
return v ?
|
|
132
|
+
return v ? m(1, U) : m(0, U + 1);
|
|
133
133
|
case u:
|
|
134
134
|
var Z = this.$locale().weekStart || 0, te = (p < Z ? p + 7 : p) - Z;
|
|
135
|
-
return
|
|
135
|
+
return m(v ? j - te : j + (6 - te), U);
|
|
136
136
|
case d:
|
|
137
137
|
case R:
|
|
138
|
-
return g(
|
|
138
|
+
return g(k + "Hours", 0);
|
|
139
139
|
case l:
|
|
140
|
-
return g(
|
|
140
|
+
return g(k + "Minutes", 1);
|
|
141
141
|
case s:
|
|
142
|
-
return g(
|
|
142
|
+
return g(k + "Seconds", 2);
|
|
143
143
|
case i:
|
|
144
|
-
return g(
|
|
144
|
+
return g(k + "Milliseconds", 3);
|
|
145
145
|
default:
|
|
146
146
|
return this.clone();
|
|
147
147
|
}
|
|
148
148
|
}, P.endOf = function(h) {
|
|
149
149
|
return this.startOf(h, !1);
|
|
150
150
|
}, P.$set = function(h, O) {
|
|
151
|
-
var E, v = D.p(h),
|
|
151
|
+
var E, v = D.p(h), A = "set" + (this.$u ? "UTC" : ""), m = (E = {}, E[d] = A + "Date", E[R] = A + "Date", E[C] = A + "Month", E[T] = A + "FullYear", E[l] = A + "Hours", E[s] = A + "Minutes", E[i] = A + "Seconds", E[a] = A + "Milliseconds", E)[v], g = v === d ? this.$D + (O - this.$W) : O;
|
|
152
152
|
if (v === C || v === T) {
|
|
153
153
|
var p = this.clone().set(R, 1);
|
|
154
|
-
p.$d[
|
|
155
|
-
} else
|
|
154
|
+
p.$d[m](g), p.init(), this.$d = p.set(R, Math.min(this.$D, p.daysInMonth())).$d;
|
|
155
|
+
} else m && this.$d[m](g);
|
|
156
156
|
return this.init(), this;
|
|
157
157
|
}, P.set = function(h, O) {
|
|
158
158
|
return this.clone().$set(h, O);
|
|
@@ -161,31 +161,31 @@ var Hn = { exports: {} };
|
|
|
161
161
|
}, P.add = function(h, O) {
|
|
162
162
|
var E, v = this;
|
|
163
163
|
h = Number(h);
|
|
164
|
-
var
|
|
164
|
+
var A = D.p(O), m = function(U) {
|
|
165
165
|
var j = w(v);
|
|
166
166
|
return D.w(j.date(j.date() + Math.round(U * h)), v);
|
|
167
167
|
};
|
|
168
|
-
if (
|
|
169
|
-
if (
|
|
170
|
-
if (
|
|
171
|
-
if (
|
|
172
|
-
var g = (E = {}, E[s] = r, E[l] = n, E[i] = o, E)[
|
|
168
|
+
if (A === C) return this.set(C, this.$M + h);
|
|
169
|
+
if (A === T) return this.set(T, this.$y + h);
|
|
170
|
+
if (A === d) return m(1);
|
|
171
|
+
if (A === u) return m(7);
|
|
172
|
+
var g = (E = {}, E[s] = r, E[l] = n, E[i] = o, E)[A] || 1, p = this.$d.getTime() + h * g;
|
|
173
173
|
return D.w(p, this);
|
|
174
174
|
}, P.subtract = function(h, O) {
|
|
175
175
|
return this.add(-1 * h, O);
|
|
176
176
|
}, P.format = function(h) {
|
|
177
177
|
var O = this, E = this.$locale();
|
|
178
178
|
if (!this.isValid()) return E.invalidDate || B;
|
|
179
|
-
var v = h || "YYYY-MM-DDTHH:mm:ssZ",
|
|
180
|
-
return _ && (_[
|
|
179
|
+
var v = h || "YYYY-MM-DDTHH:mm:ssZ", A = D.z(this), m = this.$H, g = this.$m, p = this.$M, U = E.weekdays, j = E.months, k = E.meridiem, Z = function(_, Ae, Fe, ye) {
|
|
180
|
+
return _ && (_[Ae] || _(O, v)) || Fe[Ae].slice(0, ye);
|
|
181
181
|
}, te = function(_) {
|
|
182
|
-
return D.s(
|
|
183
|
-
},
|
|
182
|
+
return D.s(m % 12 || 12, _, "0");
|
|
183
|
+
}, N = k || function(_, Ae, Fe) {
|
|
184
184
|
var ye = _ < 12 ? "AM" : "PM";
|
|
185
185
|
return Fe ? ye.toLowerCase() : ye;
|
|
186
186
|
};
|
|
187
|
-
return v.replace(H, function(_,
|
|
188
|
-
return
|
|
187
|
+
return v.replace(H, function(_, Ae) {
|
|
188
|
+
return Ae || function(Fe) {
|
|
189
189
|
switch (Fe) {
|
|
190
190
|
case "YY":
|
|
191
191
|
return String(O.$y).slice(-2);
|
|
@@ -212,17 +212,17 @@ var Hn = { exports: {} };
|
|
|
212
212
|
case "dddd":
|
|
213
213
|
return U[O.$W];
|
|
214
214
|
case "H":
|
|
215
|
-
return String(
|
|
215
|
+
return String(m);
|
|
216
216
|
case "HH":
|
|
217
|
-
return D.s(
|
|
217
|
+
return D.s(m, 2, "0");
|
|
218
218
|
case "h":
|
|
219
219
|
return te(1);
|
|
220
220
|
case "hh":
|
|
221
221
|
return te(2);
|
|
222
222
|
case "a":
|
|
223
|
-
return
|
|
223
|
+
return N(m, g, !0);
|
|
224
224
|
case "A":
|
|
225
|
-
return
|
|
225
|
+
return N(m, g, !1);
|
|
226
226
|
case "m":
|
|
227
227
|
return String(g);
|
|
228
228
|
case "mm":
|
|
@@ -234,18 +234,18 @@ var Hn = { exports: {} };
|
|
|
234
234
|
case "SSS":
|
|
235
235
|
return D.s(O.$ms, 3, "0");
|
|
236
236
|
case "Z":
|
|
237
|
-
return
|
|
237
|
+
return A;
|
|
238
238
|
}
|
|
239
239
|
return null;
|
|
240
|
-
}(_) ||
|
|
240
|
+
}(_) || A.replace(":", "");
|
|
241
241
|
});
|
|
242
242
|
}, P.utcOffset = function() {
|
|
243
243
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
244
244
|
}, P.diff = function(h, O, E) {
|
|
245
|
-
var v,
|
|
246
|
-
return D.m(
|
|
245
|
+
var v, A = this, m = D.p(O), g = w(h), p = (g.utcOffset() - this.utcOffset()) * r, U = this - g, j = function() {
|
|
246
|
+
return D.m(A, g);
|
|
247
247
|
};
|
|
248
|
-
switch (
|
|
248
|
+
switch (m) {
|
|
249
249
|
case T:
|
|
250
250
|
v = j() / 12;
|
|
251
251
|
break;
|
|
@@ -343,7 +343,7 @@ var zn = { exports: {} };
|
|
|
343
343
|
X === void 0 && (X = "");
|
|
344
344
|
var Y = X.match(r);
|
|
345
345
|
if (!Y) return null;
|
|
346
|
-
var
|
|
346
|
+
var L = ("" + Y[0]).match(n) || ["-", 0, 0], re = L[0], f = 60 * +L[1] + +L[2];
|
|
347
347
|
return f === 0 ? 0 : re === "+" ? f : -f;
|
|
348
348
|
}(B), B === null)) return this;
|
|
349
349
|
var S = Math.abs(B) <= 16 ? 60 * B : B, z = this;
|
|
@@ -403,8 +403,8 @@ var In = { exports: {} };
|
|
|
403
403
|
var H = R[F], S = H.type, z = H.value, I = o[S];
|
|
404
404
|
I >= 0 && (B[I] = parseInt(z, 10));
|
|
405
405
|
}
|
|
406
|
-
var X = B[3], Y = X === 24 ? 0 : X,
|
|
407
|
-
return (i.utc(
|
|
406
|
+
var X = B[3], Y = X === 24 ? 0 : X, L = B[0] + "-" + B[1] + "-" + B[2] + " " + Y + ":" + B[4] + ":" + B[5] + ":000", re = +K;
|
|
407
|
+
return (i.utc(L).valueOf() - (re -= re % 1e3)) / 6e4;
|
|
408
408
|
}, u = a.prototype;
|
|
409
409
|
u.tz = function(K, T) {
|
|
410
410
|
K === void 0 && (K = s);
|
|
@@ -429,10 +429,10 @@ var In = { exports: {} };
|
|
|
429
429
|
}, i.tz = function(K, T, R) {
|
|
430
430
|
var B = R && T, F = R || T || s, H = d(+i(), F);
|
|
431
431
|
if (typeof K != "string") return i(K).tz(F);
|
|
432
|
-
var S = function(Y,
|
|
433
|
-
var f = Y - 60 *
|
|
434
|
-
if (
|
|
435
|
-
var D = d(f -= 60 * (w -
|
|
432
|
+
var S = function(Y, L, re) {
|
|
433
|
+
var f = Y - 60 * L * 1e3, w = d(f, re);
|
|
434
|
+
if (L === w) return [f, L];
|
|
435
|
+
var D = d(f -= 60 * (w - L) * 1e3, re);
|
|
436
436
|
return w === D ? [f, w] : [Y - 60 * Math.min(w, D) * 1e3, Math.max(w, D)];
|
|
437
437
|
}(i.utc(K, B).valueOf(), H, F), z = S[0], I = S[1], X = i(z).utcOffset(I);
|
|
438
438
|
return X.$x.$timezone = F, X;
|
|
@@ -512,7 +512,7 @@ var jn = { exports: {} };
|
|
|
512
512
|
return P || h.slice(1);
|
|
513
513
|
});
|
|
514
514
|
})).match(r), I = z.length, X = 0; X < I; X += 1) {
|
|
515
|
-
var Y = z[X],
|
|
515
|
+
var Y = z[X], L = R[Y], re = L && L[0], f = L && L[1];
|
|
516
516
|
z[X] = f ? { regex: re, parser: f } : Y.replace(/^\[|\]$/g, "");
|
|
517
517
|
}
|
|
518
518
|
return function(w) {
|
|
@@ -525,10 +525,10 @@ var jn = { exports: {} };
|
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
return function(v) {
|
|
528
|
-
var
|
|
529
|
-
if (
|
|
530
|
-
var
|
|
531
|
-
|
|
528
|
+
var A = v.afternoon;
|
|
529
|
+
if (A !== void 0) {
|
|
530
|
+
var m = v.hours;
|
|
531
|
+
A ? m < 12 && (v.hours += 12) : m === 12 && (v.hours = 0), delete v.afternoon;
|
|
532
532
|
}
|
|
533
533
|
}(D), D;
|
|
534
534
|
};
|
|
@@ -537,22 +537,22 @@ var jn = { exports: {} };
|
|
|
537
537
|
S.p.customParseFormat = !0, F && F.parseTwoDigitYear && (d = F.parseTwoDigitYear);
|
|
538
538
|
var z = H.prototype, I = z.parse;
|
|
539
539
|
z.parse = function(X) {
|
|
540
|
-
var Y = X.date,
|
|
541
|
-
this.$u =
|
|
540
|
+
var Y = X.date, L = X.utc, re = X.args;
|
|
541
|
+
this.$u = L;
|
|
542
542
|
var f = re[1];
|
|
543
543
|
if (typeof f == "string") {
|
|
544
544
|
var w = re[2] === !0, D = re[3] === !0, M = w || D, V = re[2];
|
|
545
|
-
D && (V = re[2]), l = this.$locale(), !w && V && (l = S.Ls[V]), this.$d = function(O, E, v,
|
|
545
|
+
D && (V = re[2]), l = this.$locale(), !w && V && (l = S.Ls[V]), this.$d = function(O, E, v, A) {
|
|
546
546
|
try {
|
|
547
547
|
if (["x", "X"].indexOf(E) > -1) return new Date((E === "X" ? 1e3 : 1) * O);
|
|
548
|
-
var
|
|
549
|
-
g && !p || (De = p > 0 ? p - 1 :
|
|
550
|
-
var Be, Re = j || 0, Ee =
|
|
551
|
-
return
|
|
548
|
+
var m = B(E)(O), g = m.year, p = m.month, U = m.day, j = m.hours, k = m.minutes, Z = m.seconds, te = m.milliseconds, N = m.zone, _ = m.week, Ae = /* @__PURE__ */ new Date(), Fe = U || (g || p ? 1 : Ae.getDate()), ye = g || Ae.getFullYear(), De = 0;
|
|
549
|
+
g && !p || (De = p > 0 ? p - 1 : Ae.getMonth());
|
|
550
|
+
var Be, Re = j || 0, Ee = k || 0, tt = Z || 0, ot = te || 0;
|
|
551
|
+
return N ? new Date(Date.UTC(ye, De, Fe, Re, Ee, tt, ot + 60 * N.offset * 1e3)) : v ? new Date(Date.UTC(ye, De, Fe, Re, Ee, tt, ot)) : (Be = new Date(ye, De, Fe, Re, Ee, tt, ot), _ && (Be = A(Be).week(_).toDate()), Be);
|
|
552
552
|
} catch {
|
|
553
553
|
return /* @__PURE__ */ new Date("");
|
|
554
554
|
}
|
|
555
|
-
}(Y, f,
|
|
555
|
+
}(Y, f, L, S), this.init(), V && V !== !0 && (this.$L = this.locale(V).$L), M && Y != this.format(f) && (this.$d = /* @__PURE__ */ new Date("")), l = {};
|
|
556
556
|
} else if (f instanceof Array) for (var x = f.length, P = 1; P <= x; P += 1) {
|
|
557
557
|
re[1] = f[P - 1];
|
|
558
558
|
var h = S.apply(this, re);
|
|
@@ -3832,7 +3832,18 @@ const Ei = {
|
|
|
3832
3832
|
submission: "提交",
|
|
3833
3833
|
override: "覆盖",
|
|
3834
3834
|
log: "日志",
|
|
3835
|
-
item: "项目"
|
|
3835
|
+
item: "项目",
|
|
3836
|
+
net: "净",
|
|
3837
|
+
orders: "订单",
|
|
3838
|
+
avg: "平均",
|
|
3839
|
+
collected: "已收",
|
|
3840
|
+
discounts: "折扣",
|
|
3841
|
+
labour: "工时",
|
|
3842
|
+
products: "产品",
|
|
3843
|
+
categories: "类别",
|
|
3844
|
+
by: "按",
|
|
3845
|
+
method: "方式",
|
|
3846
|
+
methods: "方式"
|
|
3836
3847
|
},
|
|
3837
3848
|
other: {
|
|
3838
3849
|
"Inclusive SC": "@.capitalize:{'report.dynamic.common.inclusive'}SC",
|
|
@@ -4666,9 +4677,9 @@ const Ei = {
|
|
|
4666
4677
|
preview: "ดูตัวอย่าง",
|
|
4667
4678
|
report: {
|
|
4668
4679
|
title: "@:report.common.report",
|
|
4669
|
-
add: "
|
|
4670
|
-
name: "@:report.view.report.title
|
|
4671
|
-
enter: "
|
|
4680
|
+
add: "เพิ่ม@.lower:report.view.report.title",
|
|
4681
|
+
name: "@.lower:report.common.name@:report.view.report.title",
|
|
4682
|
+
enter: "กรอก@:report.view.report.name"
|
|
4672
4683
|
},
|
|
4673
4684
|
insight: {
|
|
4674
4685
|
title: "ข้อมูลเชิงลึก",
|
|
@@ -4846,10 +4857,10 @@ const Ei = {
|
|
|
4846
4857
|
},
|
|
4847
4858
|
compare: {
|
|
4848
4859
|
NO_COMPARISON: "ไม่เปรียบเทียบ",
|
|
4849
|
-
PRECEDING_PERIOD: "
|
|
4850
|
-
PRECEDING_WEEK: "
|
|
4851
|
-
PRECEDING_MONTH: "
|
|
4852
|
-
PRECEDING_YEAR: "
|
|
4860
|
+
PRECEDING_PERIOD: "ช่วงก่อนหน้า",
|
|
4861
|
+
PRECEDING_WEEK: "สัปดาห์ที่แล้ว",
|
|
4862
|
+
PRECEDING_MONTH: "เดือนที่แล้ว",
|
|
4863
|
+
PRECEDING_YEAR: "ปีที่แล้ว",
|
|
4853
4864
|
CUSTOM: "กำหนดเอง"
|
|
4854
4865
|
},
|
|
4855
4866
|
input: {
|
|
@@ -4862,9 +4873,9 @@ const Ei = {
|
|
|
4862
4873
|
customizeReportSettings: "ปรับแต่งการตั้งค่ารายงาน",
|
|
4863
4874
|
schedule: "กำหนดเวลา",
|
|
4864
4875
|
file: "ไฟล์",
|
|
4865
|
-
titlePlaceholder: "
|
|
4866
|
-
emailPlaceholder: "
|
|
4867
|
-
filePlaceholder: "
|
|
4876
|
+
titlePlaceholder: "กรอกชื่อเรื่อง",
|
|
4877
|
+
emailPlaceholder: "กรอกที่อยู่อีเมลสูงสุด X ที่คั่นด้วยเครื่องหมายจุลภาค",
|
|
4878
|
+
filePlaceholder: "กรอกเส้นทางไฟล์สูงสุด X",
|
|
4868
4879
|
emailLimitPlaceholder: "กรอกอีเมลไม่เกิน X ที่อยู่",
|
|
4869
4880
|
emailHelperText: "คั่นที่อยู่อีเมลด้วยเครื่องหมายจุลภาค",
|
|
4870
4881
|
sendEmailHelperText: "ส่งรายงานปัจจุบันไปยังอีเมลที่กรอกโดยตรง",
|
|
@@ -4940,13 +4951,13 @@ const Ei = {
|
|
|
4940
4951
|
period: "ช่วงวันที่ครอบคลุม",
|
|
4941
4952
|
delayDayValidation: "จำนวนวันเลื่อนต้องมากกว่าหรือเท่ากับ 0"
|
|
4942
4953
|
},
|
|
4943
|
-
enter: "
|
|
4954
|
+
enter: "กรอก @:report.common.name",
|
|
4944
4955
|
preview: "ดูตัวอย่าง",
|
|
4945
4956
|
items: "รายการ",
|
|
4946
4957
|
taxes: "ภาษี",
|
|
4947
4958
|
taxesForRefund: "ภาษีสำหรับการคืนเงิน",
|
|
4948
4959
|
addTaxesForRefund: "เพิ่มภาษีสำหรับการคืนเงิน",
|
|
4949
|
-
taxRoundingAdjustments: "
|
|
4960
|
+
taxRoundingAdjustments: "การปรับยอดปัดเศษภาษี",
|
|
4950
4961
|
payments: "การชำระเงิน",
|
|
4951
4962
|
setting: "การตั้งค่า",
|
|
4952
4963
|
grouping: {
|
|
@@ -5209,7 +5220,7 @@ const Ei = {
|
|
|
5209
5220
|
},
|
|
5210
5221
|
details: "รายละเอียดวิดเจ็ต",
|
|
5211
5222
|
title: "ชื่อวิดเจ็ต",
|
|
5212
|
-
titlePlaceholder: "
|
|
5223
|
+
titlePlaceholder: "กรอกชื่อที่นี่",
|
|
5213
5224
|
description: "คำอธิบาย (ไม่บังคับ)",
|
|
5214
5225
|
descriptionPlaceholder: "อธิบายการเก็บข้อมูลของคุณ",
|
|
5215
5226
|
descriptionHelper: "คุณสามารถเพิ่มคำอธิบายได้เมื่อเปิดใช้งานชื่อ",
|
|
@@ -5239,7 +5250,7 @@ const Ei = {
|
|
|
5239
5250
|
widget: {
|
|
5240
5251
|
details: "รายละเอียดวิดเจ็ต",
|
|
5241
5252
|
title: "ชื่อวิดเจ็ต",
|
|
5242
|
-
titlePlaceholder: "
|
|
5253
|
+
titlePlaceholder: "กรอกชื่อที่นี่",
|
|
5243
5254
|
widgetDescription: "คำอธิบายวิดเจ็ต",
|
|
5244
5255
|
optional: "ไม่บังคับ",
|
|
5245
5256
|
description: "คำอธิบาย (ไม่บังคับ)",
|
|
@@ -5482,12 +5493,12 @@ const Ei = {
|
|
|
5482
5493
|
showX: "แสดงแกน X",
|
|
5483
5494
|
showY: "แสดงแกน Y",
|
|
5484
5495
|
showGrid: "แสดงกริด",
|
|
5485
|
-
showTick: "
|
|
5486
|
-
showBreakdownDimensionTick: "
|
|
5496
|
+
showTick: "แสดงขีดสเกล",
|
|
5497
|
+
showBreakdownDimensionTick: "แสดงขีดสเกลของมิติการแยกส่วน",
|
|
5487
5498
|
showTitle: "แสดงชื่อ"
|
|
5488
5499
|
},
|
|
5489
5500
|
legend: {
|
|
5490
|
-
showLegend: "
|
|
5501
|
+
showLegend: "แสดงคำอธิบายสัญลักษณ์",
|
|
5491
5502
|
usePointStyle: "ใช้สไตล์จุด",
|
|
5492
5503
|
fontSize: "ขนาดตัวอักษร",
|
|
5493
5504
|
color: "สีข้อความ",
|
|
@@ -5520,7 +5531,7 @@ const Ei = {
|
|
|
5520
5531
|
columnWidthUnavailable: "ยังไม่สามารถตั้งค่าความกว้างคอลัมน์ได้จนกว่าจะโหลดคอลัมน์ตาราง",
|
|
5521
5532
|
resetSize: "รีเซ็ตขนาด",
|
|
5522
5533
|
drill: "เจาะลึก",
|
|
5523
|
-
subTotal: "
|
|
5534
|
+
subTotal: "ยอดรวม",
|
|
5524
5535
|
transpose: "สลับแถวคอลัมน์",
|
|
5525
5536
|
sparklineType: {
|
|
5526
5537
|
label: "ประเภท Sparkline",
|
|
@@ -5594,7 +5605,7 @@ const Ei = {
|
|
|
5594
5605
|
add: "เพิ่มเวลารายงาน",
|
|
5595
5606
|
addTitle: "เพิ่มเวลารายงาน",
|
|
5596
5607
|
hourSetName: "ชื่อชุดเวลา",
|
|
5597
|
-
namePlaceholder: "
|
|
5608
|
+
namePlaceholder: "กรอกชื่อที่นี่",
|
|
5598
5609
|
startTime: "เวลาเริ่มต้น",
|
|
5599
5610
|
closeTime: "เวลาปิด",
|
|
5600
5611
|
default: "ค่าเริ่มต้น",
|
|
@@ -5637,10 +5648,10 @@ const Ei = {
|
|
|
5637
5648
|
"Inventory sku": "หน่วยสินค้าคลัง",
|
|
5638
5649
|
"Purchase order": "ใบสั่งซื้อ",
|
|
5639
5650
|
"Purchase order item": "รายการใบสั่งซื้อ",
|
|
5640
|
-
"Purchase order delivery order": "
|
|
5641
|
-
"Purchase order delivery order sku": "
|
|
5642
|
-
"Purchase order delivery fulfillment": "
|
|
5643
|
-
"Purchase order delivery fulfillment sku": "
|
|
5651
|
+
"Purchase order delivery order": "ใบสั่งซื้อ/ใบส่งสินค้า",
|
|
5652
|
+
"Purchase order delivery order sku": "SKU ใบสั่งซื้อ/ใบส่งสินค้า",
|
|
5653
|
+
"Purchase order delivery fulfillment": "การจัดส่งสินค้าตามใบสั่งซื้อ",
|
|
5654
|
+
"Purchase order delivery fulfillment sku": "SKU การจัดส่งสินค้าตามใบสั่งซื้อ",
|
|
5644
5655
|
Restaurant: "ร้านอาหาร",
|
|
5645
5656
|
"Restaurant feature": "คุณสมบัติร้านอาหาร",
|
|
5646
5657
|
Business: "ธุรกิจ",
|
|
@@ -5649,8 +5660,8 @@ const Ei = {
|
|
|
5649
5660
|
"Voucher Claim Redemption": "การแลกคูปอง",
|
|
5650
5661
|
Location: "สถานที่",
|
|
5651
5662
|
Member: "สมาชิก",
|
|
5652
|
-
"Member store purchase": "
|
|
5653
|
-
"Member store purchase payment": "
|
|
5663
|
+
"Member store purchase": "การซื้อในร้านค้าสมาชิก",
|
|
5664
|
+
"Member store purchase payment": "การชำระเงินการซื้อในร้านค้าสมาชิก",
|
|
5654
5665
|
Membership: "การเป็นสมาชิก",
|
|
5655
5666
|
"Membership title": "ตำแหน่งสมาชิก",
|
|
5656
5667
|
"Member title": "ตำแหน่งสมาชิก",
|
|
@@ -5670,7 +5681,7 @@ const Ei = {
|
|
|
5670
5681
|
"Kitchen station": "สถานีครัว",
|
|
5671
5682
|
"Refund Bill": "ใบเสร็จคืนเงิน",
|
|
5672
5683
|
"Timesheet record": "บันทึกตารางเวลา",
|
|
5673
|
-
"Inventory physical sku": "
|
|
5684
|
+
"Inventory physical sku": "SKU สินค้าคงคลังจริง",
|
|
5674
5685
|
"Item Movement": "การเคลื่อนย้ายรายการ",
|
|
5675
5686
|
Customer: "ลูกค้า"
|
|
5676
5687
|
},
|
|
@@ -5682,6 +5693,8 @@ const Ei = {
|
|
|
5682
5693
|
amount: "จำนวนเงิน",
|
|
5683
5694
|
count: "จำนวน",
|
|
5684
5695
|
balance: "ยอดคงเหลือ",
|
|
5696
|
+
stock: "สต็อก",
|
|
5697
|
+
adjustment: "การปรับ",
|
|
5685
5698
|
user: "ผู้ใช้",
|
|
5686
5699
|
ref: "อ้างอิง",
|
|
5687
5700
|
type: "ประเภท",
|
|
@@ -5702,7 +5715,7 @@ const Ei = {
|
|
|
5702
5715
|
before: "ก่อน",
|
|
5703
5716
|
delivery: "การจัดส่ง",
|
|
5704
5717
|
store: "ร้านค้า",
|
|
5705
|
-
sku: "
|
|
5718
|
+
sku: "SKU",
|
|
5706
5719
|
refund: "คืนเงิน",
|
|
5707
5720
|
close: "ปิด",
|
|
5708
5721
|
open: "เปิด",
|
|
@@ -5755,7 +5768,18 @@ const Ei = {
|
|
|
5755
5768
|
submission: "การส่ง",
|
|
5756
5769
|
override: "แทนที่",
|
|
5757
5770
|
log: "บันทึก",
|
|
5758
|
-
item: "รายการ"
|
|
5771
|
+
item: "รายการ",
|
|
5772
|
+
net: "สุทธิ",
|
|
5773
|
+
orders: "ออเดอร์",
|
|
5774
|
+
avg: "เฉลี่ย",
|
|
5775
|
+
collected: "ที่เก็บได้",
|
|
5776
|
+
discounts: "ส่วนลด",
|
|
5777
|
+
labour: "แรงงาน",
|
|
5778
|
+
products: "สินค้า",
|
|
5779
|
+
categories: "หมวดหมู่",
|
|
5780
|
+
by: "ตาม",
|
|
5781
|
+
method: "วิธี",
|
|
5782
|
+
methods: "วิธี"
|
|
5759
5783
|
},
|
|
5760
5784
|
other: {
|
|
5761
5785
|
"Inclusive SC": "@.capitalize:{'report.dynamic.common.inclusive'}SC",
|
|
@@ -5766,7 +5790,7 @@ const Ei = {
|
|
|
5766
5790
|
Delivery: "@.capitalize:{'report.dynamic.common.delivery'}",
|
|
5767
5791
|
"Refund ID": "@.capitalize:{'report.dynamic.common.refund'}@:{'report.dynamic.common.id'}",
|
|
5768
5792
|
Type: "@.capitalize:{'report.dynamic.common.type'}",
|
|
5769
|
-
"Refund approver": "
|
|
5793
|
+
"Refund approver": "ผู้อนุมัติการคืนเงิน",
|
|
5770
5794
|
"Refund user": "@.capitalize:{'report.dynamic.common.refund'}@.capitalize:{'report.dynamic.common.user'}",
|
|
5771
5795
|
"Refund reason": "@.capitalize:{'report.dynamic.common.refund'}@:{'report.dynamic.common.reason'}",
|
|
5772
5796
|
"Member ID": "@.capitalize:{'report.dynamic.schema.Member'}@:{'report.dynamic.common.id'}",
|
|
@@ -5810,11 +5834,11 @@ const Ei = {
|
|
|
5810
5834
|
"Opened at": "@.capitalize:{'report.dynamic.common.open'}@:{'report.dynamic.common.at'}",
|
|
5811
5835
|
"Closed at": "@.capitalize:{'report.dynamic.common.close'}@:{'report.dynamic.common.at'}",
|
|
5812
5836
|
Pickup: "รับด้วยตัวเอง",
|
|
5813
|
-
"Is in house delivery": "
|
|
5837
|
+
"Is in house delivery": "เป็นการจัดส่งโดยร้านค้าใช่หรือไม่",
|
|
5814
5838
|
"Is other delivery": "@.capitalize:{'report.dynamic.common.is'}การจัดส่งอื่น",
|
|
5815
5839
|
"Is takeaway": "@.capitalize:{'report.dynamic.common.is'}ซื้อกลับบ้าน",
|
|
5816
5840
|
Refund: "@.capitalize:{'report.dynamic.common.refund'}",
|
|
5817
|
-
Rounding: "
|
|
5841
|
+
Rounding: "ปัดเศษ",
|
|
5818
5842
|
SST: "SST",
|
|
5819
5843
|
Discount: "@.capitalize:{'report.dynamic.schema.Discount'}",
|
|
5820
5844
|
SC: "SC",
|
|
@@ -5823,14 +5847,14 @@ const Ei = {
|
|
|
5823
5847
|
"Gross w/ takeaway": "ยอดรวมพร้อมซื้อกลับบ้าน",
|
|
5824
5848
|
Takeaway: "ซื้อกลับบ้าน",
|
|
5825
5849
|
"Extra charge": "ค่าธรรมเนียมพิเศษ@:{'report.dynamic.schema.Charge'}",
|
|
5826
|
-
"Delivery fee": "@.capitalize:{'report.dynamic.common.delivery'}
|
|
5827
|
-
Nett: "
|
|
5850
|
+
"Delivery fee": "@.capitalize:{'report.dynamic.schema.Charge'}@:{'report.dynamic.common.delivery'}",
|
|
5851
|
+
Nett: "ยอดสุทธิ",
|
|
5828
5852
|
"Gross before charges": "ยอดรวมก่อนค่าธรรมเนียม",
|
|
5829
5853
|
"Member Recency": "@.capitalize:{'report.dynamic.schema.Member'}ความถี่ล่าสุด",
|
|
5830
5854
|
"Member frequency": "@.capitalize:{'report.dynamic.schema.Member'}ความถี่",
|
|
5831
5855
|
"Member monetary": "@.capitalize:{'report.dynamic.schema.Member'}มูลค่า",
|
|
5832
|
-
"Delivery fee with tax": "@.capitalize:{'report.dynamic.common.delivery'}
|
|
5833
|
-
"Delivery fee without tax": "@.capitalize:{'report.dynamic.common.delivery'}
|
|
5856
|
+
"Delivery fee with tax": "@.capitalize:{'report.dynamic.schema.Charge'}@:{'report.dynamic.common.delivery'}@:{'report.dynamic.common.with'}@:{'report.dynamic.common.tax'}",
|
|
5857
|
+
"Delivery fee without tax": "@.capitalize:{'report.dynamic.schema.Charge'}@:{'report.dynamic.common.delivery'}@:{'report.dynamic.common.without'}@:{'report.dynamic.common.tax'}",
|
|
5834
5858
|
"Other charge with tax": "ค่าธรรมเนียมอื่น@:{'report.dynamic.schema.Charge'}@:{'report.dynamic.common.with'}@:{'report.dynamic.common.tax'}",
|
|
5835
5859
|
"Other charge without tax": "ค่าธรรมเนียมอื่น@:{'report.dynamic.schema.Charge'}@:{'report.dynamic.common.without'}@:{'report.dynamic.common.tax'}",
|
|
5836
5860
|
Duration: "ระยะเวลา",
|
|
@@ -5843,6 +5867,7 @@ const Ei = {
|
|
|
5843
5867
|
Total: "@.capitalize:{'report.dynamic.common.total'}",
|
|
5844
5868
|
In: "เข้า",
|
|
5845
5869
|
Out: "ออก",
|
|
5870
|
+
"Labour Hours by Staff": "ชั่วโมงการทำงานแยกตามพนักงาน",
|
|
5846
5871
|
"Parent name": "ชื่อหลัก@:{'report.dynamic.common.name'}",
|
|
5847
5872
|
"Bill ID": "@.capitalize:{'report.dynamic.schema.Bill'}@:{'report.dynamic.common.id'}",
|
|
5848
5873
|
Unit: "@.capitalize:{'report.dynamic.common.unit'}",
|
|
@@ -5862,10 +5887,10 @@ const Ei = {
|
|
|
5862
5887
|
"Variant ID": "@.capitalize:{'report.dynamic.common.variant'}@:{'report.dynamic.common.id'}",
|
|
5863
5888
|
Variant: "@.capitalize:{'report.dynamic.common.variant'}",
|
|
5864
5889
|
"User id": "@.capitalize:{'report.dynamic.schema.User'}@.lower:{'report.dynamic.common.id'}",
|
|
5865
|
-
"Void reason": "
|
|
5890
|
+
"Void reason": "เหตุผลการยกเลิก",
|
|
5866
5891
|
"Void user": "ผู้ใช้ยกเลิก@:{'report.dynamic.common.user'}",
|
|
5867
5892
|
"Void approver": "ผู้อนุมัติการยกเลิก",
|
|
5868
|
-
"Layer 0 parent ID": "
|
|
5893
|
+
"Layer 0 parent ID": "@:{'report.dynamic.common.id'}หลักชั้นที่ 0",
|
|
5869
5894
|
"Custom attributes": "คุณสมบัติที่กำหนดเอง",
|
|
5870
5895
|
Summary: "สรุป",
|
|
5871
5896
|
"Group ID": "รหัสกลุ่ม@:{'report.dynamic.common.id'}",
|
|
@@ -5877,24 +5902,24 @@ const Ei = {
|
|
|
5877
5902
|
"Served time": "เวลาการให้บริการ@:{'report.dynamic.common.time'}",
|
|
5878
5903
|
"Printed time": "เวลาการพิมพ์@:{'report.dynamic.common.time'}",
|
|
5879
5904
|
"Void time": "เวลาการยกเลิก@:{'report.dynamic.common.time'}",
|
|
5880
|
-
"Item time": "
|
|
5905
|
+
"Item time": "เวลาการทำรายการ@:{'report.dynamic.common.time'}",
|
|
5881
5906
|
"Sent time": "เวลาการส่ง@:{'report.dynamic.common.time'}",
|
|
5882
|
-
"Takeaway price": "
|
|
5883
|
-
"Item discount": "
|
|
5884
|
-
"Bill discount": "@.capitalize:{'report.dynamic.
|
|
5885
|
-
Layer: "
|
|
5907
|
+
"Takeaway price": "ราคาสั่งกลับบ้าน",
|
|
5908
|
+
"Item discount": "@.capitalize:{'report.dynamic.common.discount'}@:{'report.dynamic.common.item'}อาหาร",
|
|
5909
|
+
"Bill discount": "@.capitalize:{'report.dynamic.common.discount'}ท้าย@:{'report.dynamic.schema.Bill'}",
|
|
5910
|
+
Layer: "ชั้น",
|
|
5886
5911
|
"Addon price": "@.capitalize:{'report.dynamic.schema.Addon'}@:{'report.dynamic.common.price'}",
|
|
5887
5912
|
Tax: "@.capitalize:{'report.dynamic.common.tax'}",
|
|
5888
5913
|
"Preparation seconds": "วินาทีการเตรียม",
|
|
5889
|
-
"Layer nett": "
|
|
5890
|
-
"Layer bill discount": "
|
|
5891
|
-
"Layer item discount": "
|
|
5892
|
-
"Layer gross total": "
|
|
5893
|
-
"Layer takeaway price": "
|
|
5894
|
-
"Layer tax total": "
|
|
5895
|
-
"Layer sc": "
|
|
5896
|
-
"Layer other charge": "
|
|
5897
|
-
"Layer gross before charges": "
|
|
5914
|
+
"Layer nett": "ยอด@:{'report.dynamic.common.nett'}ตามชั้น",
|
|
5915
|
+
"Layer bill discount": "@.capitalize:{'report.dynamic.common.discount'}ท้าย@:{'report.dynamic.schema.Bill'}ตามชั้น",
|
|
5916
|
+
"Layer item discount": "@.capitalize:{'report.dynamic.common.discount'}@:{'report.dynamic.common.item'}อาหารตามชั้น",
|
|
5917
|
+
"Layer gross total": "ยอด@:{'report.dynamic.common.total'}ตามชั้น",
|
|
5918
|
+
"Layer takeaway price": "@:{'report.dynamic.common.price'}ซื้อกลับบ้านตามชั้น",
|
|
5919
|
+
"Layer tax total": "@:{'report.dynamic.common.tax'}@:{'report.dynamic.common.total'}ตามชั้น",
|
|
5920
|
+
"Layer sc": "ค่าบริการตามชั้น",
|
|
5921
|
+
"Layer other charge": "@:{'report.dynamic.schema.Charge'}อื่นตามชั้น",
|
|
5922
|
+
"Layer gross before charges": "ยอด@:{'report.dynamic.common.total'}ก่อน@:{'report.dynamic.schema.Charge'}ตามชั้น",
|
|
5898
5923
|
Qty: "@.capitalize:{'report.dynamic.common.qty'}",
|
|
5899
5924
|
"Per unit": "ต่อ@:{'report.dynamic.common.unit'}",
|
|
5900
5925
|
"Unit qty": "@.capitalize:{'report.dynamic.common.unit'}@:{'report.dynamic.common.qty'}",
|
|
@@ -5923,15 +5948,15 @@ const Ei = {
|
|
|
5923
5948
|
"Close time": "@.capitalize:{'report.dynamic.common.close'}@:{'report.dynamic.common.time'}",
|
|
5924
5949
|
"Open by": "@.capitalize:{'report.dynamic.common.open'} โดย",
|
|
5925
5950
|
"Close by": "@.capitalize:{'report.dynamic.common.close'} โดย",
|
|
5926
|
-
"Open amount": "@.capitalize:{'report.dynamic.common.open'}@:{'report.dynamic.
|
|
5927
|
-
"Close amount": "@.capitalize:{'report.dynamic.common.close'}@:{'report.dynamic.
|
|
5928
|
-
"Cash sale": "@.capitalize:{'report.dynamic.common.cash'}
|
|
5929
|
-
"Cash refund": "
|
|
5930
|
-
"Member store cash sale": "@.capitalize:{'report.dynamic.
|
|
5931
|
-
"Member store cash refund": "
|
|
5951
|
+
"Open amount": "@.capitalize:{'report.dynamic.common.amount'}ขณะ@:{'report.dynamic.common.open'}@:{'report.dynamic.schema.Counter'}",
|
|
5952
|
+
"Close amount": "@.capitalize:{'report.dynamic.common.amount'}ขณะ@:{'report.dynamic.common.close'}@:{'report.dynamic.schema.Counter'}",
|
|
5953
|
+
"Cash sale": "@.capitalize:{'report.dynamic.common.sales'}@:{'report.dynamic.common.cash'}",
|
|
5954
|
+
"Cash refund": "ยอดคืน@:{'report.dynamic.common.cash'}",
|
|
5955
|
+
"Member store cash sale": "@.capitalize:{'report.dynamic.common.sales'}@:{'report.dynamic.common.cash'}ของ@:{'report.dynamic.common.store'}@:{'report.dynamic.schema.Member'}",
|
|
5956
|
+
"Member store cash refund": "ยอดคืน@:{'report.dynamic.common.cash'}ของ@:{'report.dynamic.common.store'}@:{'report.dynamic.schema.Member'}",
|
|
5932
5957
|
"Cash in": "@.capitalize:{'report.dynamic.common.cash'}รับเข้า",
|
|
5933
5958
|
"Cash out": "@.capitalize:{'report.dynamic.common.cash'}จ่ายออก",
|
|
5934
|
-
"Cash opening": "@.capitalize:{'report.dynamic.common.cash'}
|
|
5959
|
+
"Cash opening": "@.capitalize:{'report.dynamic.common.cash'}ขณะ@:{'report.dynamic.common.opening'}@:{'report.dynamic.schema.Counter'}",
|
|
5935
5960
|
"Created at": "สร้าง@:{'report.dynamic.common.at'}",
|
|
5936
5961
|
"Clock in": "ลงเวลาเข้า",
|
|
5937
5962
|
"Clock out": "ลงเวลาออก",
|
|
@@ -6026,11 +6051,11 @@ const Ei = {
|
|
|
6026
6051
|
"Card No.": "หมายเลขบัตร",
|
|
6027
6052
|
"Last visit": "การเยี่ยมชมครั้งล่าสุด",
|
|
6028
6053
|
Balance: "@.capitalize:{'report.dynamic.common.balance'}",
|
|
6029
|
-
"Normal Balance": "
|
|
6030
|
-
"Free balance": "
|
|
6054
|
+
"Normal Balance": "ยอดคงเหลือปกติ",
|
|
6055
|
+
"Free balance": "ยอดคงเหลือฟรี",
|
|
6031
6056
|
Version: "รุ่น",
|
|
6032
6057
|
Points: "คะแนน",
|
|
6033
|
-
Sales: "
|
|
6058
|
+
Sales: "ยอดขาย",
|
|
6034
6059
|
"Tier number": "หมายเลขชั้น",
|
|
6035
6060
|
"Bundle name": "ชื่อชุด@:{'report.dynamic.common.name'}",
|
|
6036
6061
|
"Bundle ID": "รหัสชุด@:{'report.dynamic.common.id'}",
|
|
@@ -6063,7 +6088,7 @@ const Ei = {
|
|
|
6063
6088
|
"Max distribution per user": "@.capitalize:{'report.dynamic.common.max'}การกระจายต่อ@:{'report.dynamic.common.user'}",
|
|
6064
6089
|
"Max use per collectible": "@.capitalize:{'report.dynamic.common.max'}การใช้ต่อของสะสม",
|
|
6065
6090
|
"Collection ID": "รหัสคอลเลกชัน@:{'report.dynamic.common.id'}",
|
|
6066
|
-
"Refund ref ID": "
|
|
6091
|
+
"Refund ref ID": "รหัสอ้างอิงการคืนเงิน",
|
|
6067
6092
|
"Campaign ID": "@.capitalize:{'report.dynamic.schema.Campaign'}@:{'report.dynamic.common.id'}",
|
|
6068
6093
|
"Transformed source": "แหล่งที่แปลง",
|
|
6069
6094
|
"Quantity distributed": "จำนวนที่กระจาย",
|
|
@@ -6095,49 +6120,58 @@ const Ei = {
|
|
|
6095
6120
|
"Move From Bill ID": "ย้ายจาก@:{'report.dynamic.schema.Bill'}@:{'report.dynamic.common.id'}",
|
|
6096
6121
|
"Move From Bill No.": "ย้ายจาก@:{'report.dynamic.schema.Bill'}หมายเลข",
|
|
6097
6122
|
"Move Time": "เวลาการย้าย@:{'report.dynamic.common.time'}",
|
|
6098
|
-
"Bill count": "
|
|
6123
|
+
"Bill count": "@.capitalize:{'report.dynamic.common.count'}@:{'report.dynamic.schema.Bill'}",
|
|
6124
|
+
"Bill Count": "@.capitalize:{'report.dynamic.common.count'}@:{'report.dynamic.schema.Bill'}",
|
|
6125
|
+
"Receipt count": "@.capitalize:{'report.dynamic.common.count'}@:{'report.dynamic.schema.Bill'}",
|
|
6126
|
+
"Receipt Count": "@.capitalize:{'report.dynamic.common.count'}@:{'report.dynamic.schema.Bill'}",
|
|
6099
6127
|
"Bill nett": "@.capitalize:{'report.dynamic.schema.Bill'}สุทธิ",
|
|
6100
6128
|
"Item count": "จำนวนรายการ",
|
|
6101
6129
|
"Item Count": "จำนวนรายการ",
|
|
6102
6130
|
"Srvc charge": "ค่าบริการ",
|
|
6103
6131
|
Spacer: "Spacer",
|
|
6104
|
-
"Void bill count": "
|
|
6105
|
-
"Draft bill count": "
|
|
6132
|
+
"Void bill count": "@.capitalize:{'report.dynamic.common.count'}@:{'report.dynamic.schema.Bill'}ที่ยกเลิก",
|
|
6133
|
+
"Draft bill count": "@.capitalize:{'report.dynamic.common.count'}ร่าง@:{'report.dynamic.schema.Bill'}",
|
|
6106
6134
|
"Draft bill nett": "ร่าง@:{'report.dynamic.schema.Bill'}สุทธิ",
|
|
6107
6135
|
"Generated by": "สร้างโดย",
|
|
6108
6136
|
Overview: "@.capitalize:{'report.dynamic.common.overview'}",
|
|
6109
6137
|
"Top products": "ยอดนิยม@:{'report.dynamic.common.product'}",
|
|
6110
6138
|
Branches: "สาขา",
|
|
6111
6139
|
"Close up": "ปิดบัญชี",
|
|
6112
|
-
"Total sales": "@.capitalize:{'report.dynamic.common.
|
|
6113
|
-
"Total pax": "
|
|
6114
|
-
"Total discount": "@.capitalize:{'report.dynamic.
|
|
6115
|
-
"Total void": "
|
|
6116
|
-
"Total refund": "
|
|
6140
|
+
"Total sales": "@.capitalize:{'report.dynamic.common.sales'}@:{'report.dynamic.common.total'}",
|
|
6141
|
+
"Total pax": "จำนวนคน@:{'report.dynamic.common.total'}",
|
|
6142
|
+
"Total discount": "@.capitalize:{'report.dynamic.schema.Discount'}@:{'report.dynamic.common.total'}",
|
|
6143
|
+
"Total void": "ยอดยกเลิก@:{'report.dynamic.common.total'}",
|
|
6144
|
+
"Total refund": "ยอด@:{'report.dynamic.common.refund'}@:{'report.dynamic.common.total'}",
|
|
6145
|
+
"Avg Order Value": "มูลค่า@:{'report.dynamic.common.average'}ต่อ@:{'report.dynamic.common.order'}",
|
|
6146
|
+
"Avg order value": "มูลค่า@:{'report.dynamic.common.average'}ต่อ@:{'report.dynamic.common.order'}",
|
|
6147
|
+
"Average Order Value": "มูลค่า@:{'report.dynamic.common.average'}ต่อ@:{'report.dynamic.common.order'}",
|
|
6148
|
+
"Average order value": "มูลค่า@:{'report.dynamic.common.average'}ต่อ@:{'report.dynamic.common.order'}",
|
|
6117
6149
|
"Avg sales": "@.capitalize:{'report.dynamic.common.average'}@:{'report.dynamic.common.sales'}",
|
|
6118
6150
|
"Avg pax": "@.capitalize:{'report.dynamic.common.average'}จำนวนคน",
|
|
6119
6151
|
"Avg sales/pax": "@.capitalize:{'report.dynamic.common.average'}@:{'report.dynamic.common.sales'}/จำนวนคน",
|
|
6120
|
-
"Payment summary": "@.capitalize:{'report.dynamic.
|
|
6121
|
-
"Charge summary": "@.capitalize:{'report.dynamic.
|
|
6122
|
-
"Delivery summary": "@.capitalize:{'report.dynamic.common.
|
|
6123
|
-
"Pickup summary": "
|
|
6124
|
-
"Source summary": "
|
|
6125
|
-
"Type summary": "
|
|
6126
|
-
"Member store": "@.capitalize:{'report.dynamic.
|
|
6127
|
-
"Sales summary": "@.capitalize:{'report.dynamic.common.
|
|
6128
|
-
"Daily sales": "
|
|
6129
|
-
"Hourly sales": "
|
|
6152
|
+
"Payment summary": "@.capitalize:{'report.dynamic.common.summary'}@:{'report.dynamic.schema.Payment'}",
|
|
6153
|
+
"Charge summary": "@.capitalize:{'report.dynamic.common.summary'}@:{'report.dynamic.schema.Charge'}",
|
|
6154
|
+
"Delivery summary": "@.capitalize:{'report.dynamic.common.summary'}@:{'report.dynamic.common.delivery'}",
|
|
6155
|
+
"Pickup summary": "@.capitalize:{'report.dynamic.common.summary'}การรับหน้าร้าน",
|
|
6156
|
+
"Source summary": "@.capitalize:{'report.dynamic.common.summary'}แหล่งที่มา",
|
|
6157
|
+
"Type summary": "@.capitalize:{'report.dynamic.common.summary'}@:{'report.dynamic.common.type'}",
|
|
6158
|
+
"Member store": "@.capitalize:{'report.dynamic.common.store'}@:{'report.dynamic.schema.Member'}",
|
|
6159
|
+
"Sales summary": "@.capitalize:{'report.dynamic.common.summary'}@:{'report.dynamic.common.sales'}",
|
|
6160
|
+
"Daily sales": "@.capitalize:{'report.dynamic.common.sales'}รายวัน",
|
|
6161
|
+
"Hourly sales": "@.capitalize:{'report.dynamic.common.sales'}รายชั่วโมง",
|
|
6130
6162
|
Drawer: "@.capitalize:{'report.dynamic.schema.Drawer'}",
|
|
6131
|
-
"User product sales": "
|
|
6163
|
+
"User product sales": "@:{'report.dynamic.common.sales'}@.capitalize:{'report.dynamic.common.product'}ตาม@:{'report.dynamic.common.user'}",
|
|
6132
6164
|
Receipt: "ใบเสร็จ",
|
|
6133
|
-
"Inventory adjustment": "
|
|
6134
|
-
"
|
|
6165
|
+
"Inventory adjustment": "ยอด@:{'report.dynamic.common.adjustment'}@:{'report.dynamic.common.stock'}",
|
|
6166
|
+
"Inventory Balance": "@.capitalize:{'report.dynamic.common.balance'}@:{'report.dynamic.common.stock'}",
|
|
6167
|
+
"Inventory balance": "@.capitalize:{'report.dynamic.common.balance'}@:{'report.dynamic.common.stock'}",
|
|
6168
|
+
"Product unit": "ยอด@:{'report.dynamic.common.product'}@:{'report.dynamic.common.type'}@:{'report.dynamic.common.unit'}ขาย",
|
|
6135
6169
|
"Product by invoice": "@.capitalize:{'report.dynamic.common.product'}ตามใบแจ้งหนี้",
|
|
6136
6170
|
"Counter records": "@.capitalize:{'report.dynamic.schema.Counter'}บันทึก",
|
|
6137
6171
|
"Counter records - CASH": "@.capitalize:{'report.dynamic.schema.Counter'}บันทึก-@:{'report.dynamic.common.cash'}",
|
|
6138
6172
|
Timesheet: "@.capitalize:{'report.dynamic.schema.Timesheet'}",
|
|
6139
|
-
"Product sales": "
|
|
6140
|
-
"Product sales by time": "
|
|
6173
|
+
"Product sales": "@:{'report.dynamic.common.sales'}@.capitalize:{'report.dynamic.common.product'}",
|
|
6174
|
+
"Product sales by time": "@:{'report.dynamic.common.sales'}@.capitalize:{'report.dynamic.common.product'}ตาม@:{'report.dynamic.common.time'}",
|
|
6141
6175
|
"Morning (12AM-12PM)": "เช้า(12AM-12PM)",
|
|
6142
6176
|
"Afternoon (12PM-6PM)": "บ่าย(12PM-6PM)",
|
|
6143
6177
|
"Night (6PM-12AM)": "กลางคืน(6PM-12AM)",
|
|
@@ -6148,16 +6182,17 @@ const Ei = {
|
|
|
6148
6182
|
"User voucher": "@.capitalize:{'report.dynamic.common.user'}@:{'report.dynamic.common.voucher'}",
|
|
6149
6183
|
Void: "ยกเลิก",
|
|
6150
6184
|
"Member store purchase": "@.capitalize:{'report.dynamic.schema.Member store purchase'}",
|
|
6151
|
-
"User credit transaction": "@.capitalize:{'report.dynamic.
|
|
6152
|
-
"User credit transaction (V1)": "@.capitalize:{'report.dynamic.
|
|
6153
|
-
"User credit transaction (V2)": "@.capitalize:{'report.dynamic.
|
|
6185
|
+
"User credit transaction": "@.capitalize:{'report.dynamic.schema.Credit transaction'}ของ@:{'report.dynamic.schema.Member'}",
|
|
6186
|
+
"User credit transaction (V1)": "@.capitalize:{'report.dynamic.schema.Credit transaction'}ของ@:{'report.dynamic.schema.Member'} (V1)",
|
|
6187
|
+
"User credit transaction (V2)": "@.capitalize:{'report.dynamic.schema.Credit transaction'}ของ@:{'report.dynamic.schema.Member'} (V2)",
|
|
6188
|
+
"User Change payment Records": "@.capitalize:{'report.dynamic.common.history'}การเปลี่ยนแปลง@:{'report.dynamic.common.payment'}",
|
|
6154
6189
|
"Credit transaction": "@.capitalize:{'report.dynamic.schema.Credit transaction'}",
|
|
6155
6190
|
"Credit transaction (V1)": "@.capitalize:{'report.dynamic.schema.Credit transaction'} (V1)",
|
|
6156
6191
|
"Credit transaction (V2)": "@.capitalize:{'report.dynamic.schema.Credit transaction'} (V2)",
|
|
6157
|
-
"Member Dashboard": "
|
|
6192
|
+
"Member Dashboard": "แดชบอร์ด@.capitalize:{'report.dynamic.schema.Member'}",
|
|
6158
6193
|
"Active members": "@.capitalize:{'report.dynamic.common.active'}@:{'report.dynamic.schema.Member'}",
|
|
6159
6194
|
"Average rating": "@.capitalize:{'report.dynamic.common.average'}การให้คะแนน",
|
|
6160
|
-
"Total revenue": "@.capitalize:{'report.dynamic.common.
|
|
6195
|
+
"Total revenue": "@.capitalize:{'report.dynamic.common.revenue'}@:{'report.dynamic.common.total'}",
|
|
6161
6196
|
"Items ordered": "รายการที่สั่ง",
|
|
6162
6197
|
Count: "@.capitalize:{'report.dynamic.common.count'}",
|
|
6163
6198
|
"Refunded receipt time": "เวลาของใบเสร็จคืนเงิน",
|
|
@@ -6167,9 +6202,9 @@ const Ei = {
|
|
|
6167
6202
|
"Finish cooking": "ทำอาหารเสร็จ",
|
|
6168
6203
|
"Cooking time": "เวลาปรุงอาหาร",
|
|
6169
6204
|
"Preparation time": "เวลาเตรียมอาหาร",
|
|
6170
|
-
"Top 10 members by revenue": "
|
|
6171
|
-
"Top 10 members by rating": "
|
|
6172
|
-
"Top 10 Members by No. Items Ordered": "
|
|
6205
|
+
"Top 10 members by revenue": "@:{'report.dynamic.schema.Member'} 10 อันดับแรกตาม@:{'report.dynamic.common.revenue'}",
|
|
6206
|
+
"Top 10 members by rating": "@:{'report.dynamic.schema.Member'} 10 อันดับแรกตามการให้คะแนน",
|
|
6207
|
+
"Top 10 Members by No. Items Ordered": "@:{'report.dynamic.schema.Member'} 10 อันดับแรกตามจำนวน@:{'report.dynamic.common.item'}ที่สั่ง",
|
|
6173
6208
|
"Age range": "ช่วงอายุ",
|
|
6174
6209
|
Gender: "เพศ",
|
|
6175
6210
|
"Birthday month": "เดือนเกิด",
|
|
@@ -6177,35 +6212,35 @@ const Ei = {
|
|
|
6177
6212
|
"Member Dashboard - Frequency": "@.capitalize:{'report.dynamic.schema.Member'}แดชบอร์ด-ความถี่",
|
|
6178
6213
|
"Member Dashboard - Monetary": "@.capitalize:{'report.dynamic.schema.Member'}แดชบอร์ด-มูลค่า",
|
|
6179
6214
|
"Member Dashboard - Member Info Table": "@.capitalize:{'report.dynamic.schema.Member'}แดชบอร์ด-ตารางข้อมูล@:{'report.dynamic.schema.Member'}",
|
|
6180
|
-
"KDS Performance": "
|
|
6181
|
-
"Campaign Voucher Dashboard": "
|
|
6182
|
-
"Voucher Dashboard - Total Revenue": "
|
|
6183
|
-
"Voucher Dashboard - Total Users": "
|
|
6215
|
+
"KDS Performance": "@.capitalize:{'report.dynamic.common.performance'}ของ KDS",
|
|
6216
|
+
"Campaign Voucher Dashboard": "แดชบอร์ด@.capitalize:{'report.dynamic.schema.Campaign'}@:{'report.dynamic.common.voucher'}",
|
|
6217
|
+
"Voucher Dashboard - Total Revenue": "แดชบอร์ด@:{'report.dynamic.common.voucher'}-@:{'report.dynamic.common.revenue'}@:{'report.dynamic.common.total'}",
|
|
6218
|
+
"Voucher Dashboard - Total Users": "แดชบอร์ด@:{'report.dynamic.common.voucher'}-@:{'report.dynamic.common.count'}@:{'report.dynamic.common.user'}",
|
|
6184
6219
|
"Voucher Dashboard - Usage Rate": "@.capitalize:{'report.dynamic.common.voucher'}แดชบอร์ด-อัตราการใช้",
|
|
6185
6220
|
"Voucher Dashboard - Table Overview": "@.capitalize:{'report.dynamic.common.voucher'}แดชบอร์ด-ตาราง@:{'report.dynamic.common.overview'}",
|
|
6186
6221
|
"Voucher Dashboard - Usage": "@.capitalize:{'report.dynamic.common.voucher'}แดชบอร์ด-การใช้",
|
|
6187
6222
|
"Voucher Dashboard - Revenue": "@.capitalize:{'report.dynamic.common.voucher'}แดชบอร์ด-@:{'report.dynamic.common.revenue'}",
|
|
6188
|
-
"Tier and Experience Dashboard": "
|
|
6189
|
-
"Total Experience Users": "
|
|
6223
|
+
"Tier and Experience Dashboard": "แดชบอร์ดระดับสมาชิกและแต้มประสบการณ์",
|
|
6224
|
+
"Total Experience Users": "@:{'report.dynamic.common.count'}แต้มประสบการณ์@:{'report.dynamic.common.user'}",
|
|
6190
6225
|
"Total Experiences Distributed": "@.capitalize:{'report.dynamic.common.total'}ประสบการณ์ที่แจกจ่าย",
|
|
6191
6226
|
"Average Experiences per User": "@.capitalize:{'report.dynamic.common.average'}ประสบการณ์ต่อ@:{'report.dynamic.common.user'}",
|
|
6192
|
-
"Total Active Experience Campaigns": "
|
|
6227
|
+
"Total Active Experience Campaigns": "@:{'report.dynamic.common.count'}@:{'report.dynamic.schema.Campaign'}แต้มประสบการณ์ที่@:{'report.dynamic.common.active'}",
|
|
6193
6228
|
Tiers: "ระดับ",
|
|
6194
6229
|
"Tier Distribution": "การกระจายระดับ",
|
|
6195
6230
|
"Experiences Distributed vs. Day": "ประสบการณ์ที่แจกจ่ายเทียบกับวัน",
|
|
6196
6231
|
"Experience Campaigns": "ประสบการณ์@:{'report.dynamic.schema.Campaign'}",
|
|
6197
|
-
"Point and Store Dashboard": "
|
|
6232
|
+
"Point and Store Dashboard": "แดชบอร์ดคะแนนและ@:{'report.dynamic.common.store'}",
|
|
6198
6233
|
"Total Point Users": "@.capitalize:{'report.dynamic.common.total'}คะแนน@:{'report.dynamic.common.user'}",
|
|
6199
6234
|
"Total Points Distributed": "@.capitalize:{'report.dynamic.common.total'}คะแนนที่แจกจ่าย",
|
|
6200
6235
|
"Total Points Used": "@.capitalize:{'report.dynamic.common.total'}คะแนนที่ใช้",
|
|
6201
6236
|
"Total Active Point Campaigns": "@.capitalize:{'report.dynamic.common.total'}@:{'report.dynamic.common.active'}คะแนน@:{'report.dynamic.schema.Campaign'}",
|
|
6202
6237
|
"Point Campaigns": "คะแนน@:{'report.dynamic.schema.Campaign'}",
|
|
6203
|
-
"Store Analysis": "
|
|
6204
|
-
"Credit Dashboard": "
|
|
6205
|
-
"Total Credit Users": "
|
|
6206
|
-
"Total Credits Distributed": "@.capitalize:{'report.dynamic.common.
|
|
6207
|
-
"Total Credits Used": "@.capitalize:{'report.dynamic.common.
|
|
6208
|
-
"Total Active Credit Campaigns": "
|
|
6238
|
+
"Store Analysis": "การวิเคราะห์@.capitalize:{'report.dynamic.common.store'}",
|
|
6239
|
+
"Credit Dashboard": "แดชบอร์ด@.capitalize:{'report.dynamic.common.credit'}",
|
|
6240
|
+
"Total Credit Users": "@:{'report.dynamic.common.count'}@:{'report.dynamic.common.credit'}@:{'report.dynamic.common.user'}",
|
|
6241
|
+
"Total Credits Distributed": "@.capitalize:{'report.dynamic.common.credit'}ที่แจกจ่ายทั้งหมด",
|
|
6242
|
+
"Total Credits Used": "@.capitalize:{'report.dynamic.common.credit'}ที่ใช้ทั้งหมด",
|
|
6243
|
+
"Total Active Credit Campaigns": "@:{'report.dynamic.common.count'}@:{'report.dynamic.schema.Campaign'}@:{'report.dynamic.common.credit'}ที่@:{'report.dynamic.common.active'}",
|
|
6209
6244
|
"Credit Campaigns Performance": "@.capitalize:{'report.dynamic.common.credit'}@:{'report.dynamic.schema.Campaign'}@:{'report.dynamic.common.performance'}",
|
|
6210
6245
|
"Credits Distributed": "@.capitalize:{'report.dynamic.common.credit'}ที่แจกจ่าย",
|
|
6211
6246
|
"Credits Used": "@.capitalize:{'report.dynamic.common.credit'}ที่ใช้",
|
|
@@ -6271,11 +6306,20 @@ const Ei = {
|
|
|
6271
6306
|
"Is new member": "เป็นสมาชิกใหม่หรือไม่",
|
|
6272
6307
|
"Discount inc tax": "ส่วนลดรวมภาษี",
|
|
6273
6308
|
"Item gross": "ยอดรวมรายการ",
|
|
6274
|
-
"Labour hour": "
|
|
6309
|
+
"Labour hour": "ชั่วโมงการทำงาน",
|
|
6310
|
+
"Labour Hours": "ชั่วโมงการทำงาน",
|
|
6311
|
+
"Sales by Hour": "ยอดขายรายชั่วโมง",
|
|
6312
|
+
"Sales by Source": "ยอดขายตามแหล่งที่มา",
|
|
6313
|
+
"Payment Methods": "วิธีการชำระเงิน",
|
|
6314
|
+
"Discounts by Cause": "ส่วนลดแยกตามสาเหตุ",
|
|
6315
|
+
"Discounts by Reason": "ส่วนลดแยกตามเหตุผล",
|
|
6316
|
+
"% of Amount": "เปอร์เซ็นต์",
|
|
6317
|
+
"% of Sales": "เปอร์เซ็นต์",
|
|
6318
|
+
"Sales by Category": "ยอดขายตามหมวดหมู่",
|
|
6275
6319
|
"Item gross before charges": "ยอดรวมรายการก่อนค่าบริการ",
|
|
6276
6320
|
"Bill gross before charges": "ยอดรวมบิลก่อนค่าบริการ",
|
|
6277
6321
|
"Bill gross": "ยอดรวมบิล",
|
|
6278
|
-
"Is 30 days recency": "
|
|
6322
|
+
"Is 30 days recency": "ใช้งานล่าสุดใน 30 วัน",
|
|
6279
6323
|
Sort: "เรียงลำดับ",
|
|
6280
6324
|
"Sort value from the schema accordingly": "เรียงค่าจากสคีมาให้เหมาะสม",
|
|
6281
6325
|
"Sub categories": "หมวดย่อย",
|
|
@@ -6283,10 +6327,10 @@ const Ei = {
|
|
|
6283
6327
|
"Layer 0 parent code": "รหัสหลักชั้นที่ 0",
|
|
6284
6328
|
"Layer 0 parent name": "ชื่อหลักชั้นที่ 0",
|
|
6285
6329
|
"Collected time": "เวลาที่เก็บข้อมูล",
|
|
6286
|
-
"Bill discount inc tax": "
|
|
6287
|
-
"Item discount inc tax": "
|
|
6288
|
-
"Layer bill discount inc tax": "
|
|
6289
|
-
"Layer item discount inc": "
|
|
6330
|
+
"Bill discount inc tax": "@.capitalize:{'report.dynamic.common.discount'}ท้าย@:{'report.dynamic.schema.Bill'}รวม@:{'report.dynamic.common.tax'}",
|
|
6331
|
+
"Item discount inc tax": "@.capitalize:{'report.dynamic.common.discount'}@:{'report.dynamic.common.item'}อาหารรวม@:{'report.dynamic.common.tax'}",
|
|
6332
|
+
"Layer bill discount inc tax": "@.capitalize:{'report.dynamic.common.discount'}ท้าย@:{'report.dynamic.schema.Bill'}ตามชั้นรวม@:{'report.dynamic.common.tax'}",
|
|
6333
|
+
"Layer item discount inc": "@.capitalize:{'report.dynamic.common.discount'}@:{'report.dynamic.common.item'}อาหารตามชั้น (รวม@:{'report.dynamic.common.tax'})",
|
|
6290
6334
|
"(Deprecated)": "(เลิกใช้แล้ว)",
|
|
6291
6335
|
"Card no": "หมายเลขบัตร",
|
|
6292
6336
|
Target: "เป้าหมาย",
|
|
@@ -6333,7 +6377,78 @@ const Ei = {
|
|
|
6333
6377
|
"Gross w/ TAKEAWAY": "Gross w/ TAKEAWAY",
|
|
6334
6378
|
Merchant: "ผู้ประกอบการ",
|
|
6335
6379
|
"Generated At": "สร้างเมื่อ",
|
|
6336
|
-
"Registration No": "เลขทะเบียน"
|
|
6380
|
+
"Registration No": "เลขทะเบียน",
|
|
6381
|
+
"Net Sales": "ยอดขายสุทธิ",
|
|
6382
|
+
"Net sales": "ยอดขายสุทธิ",
|
|
6383
|
+
"Nett Sales": "ยอดขายสุทธิ",
|
|
6384
|
+
"Nett sales": "ยอดขายสุทธิ",
|
|
6385
|
+
"Adjustment type": "@:{'report.dynamic.common.type'}@:{'report.dynamic.common.adjustment'}",
|
|
6386
|
+
"Adjustment value": "มูลค่า@:{'report.dynamic.common.adjustment'}",
|
|
6387
|
+
"Bill price adjustment": "@:{'report.dynamic.common.adjustment'}@:{'report.dynamic.common.price'}@:{'report.dynamic.schema.Bill'}",
|
|
6388
|
+
"Change Payment Activity": "@:{'report.dynamic.common.history'}เปลี่ยน@:{'report.dynamic.common.method'}@:{'report.dynamic.common.payment'}",
|
|
6389
|
+
"Closing draft ID": "@:{'report.dynamic.common.id'}@:{'report.dynamic.common.draft'}@:{'report.dynamic.common.closing'}รอบ",
|
|
6390
|
+
"Collected at": "เก็บเมื่อ",
|
|
6391
|
+
"Complete time": "@:{'report.dynamic.common.time'}@:{'report.dynamic.common.complete'}",
|
|
6392
|
+
"Credit type": "@:{'report.dynamic.common.type'}@:{'report.dynamic.common.credit'}",
|
|
6393
|
+
"Customer Address": "@:{'report.dynamic.common.address'}@:{'report.dynamic.schema.Customer'}",
|
|
6394
|
+
"Customer address": "@:{'report.dynamic.common.address'}@:{'report.dynamic.schema.Customer'}",
|
|
6395
|
+
"Customer Legal Name": "ชื่อตามกฎหมายของ@:{'report.dynamic.schema.Customer'}",
|
|
6396
|
+
"Customer Name": "@:{'report.dynamic.common.name'}@:{'report.dynamic.schema.Customer'}",
|
|
6397
|
+
"Customer Phone Number": "หมายเลขโทรศัพท์@:{'report.dynamic.schema.Customer'}",
|
|
6398
|
+
"Customer phone": "เบอร์โทรศัพท์@:{'report.dynamic.schema.Customer'}",
|
|
6399
|
+
"Customer Tax Code": "@:{'report.dynamic.common.code'}@:{'report.dynamic.common.tax'}@:{'report.dynamic.schema.Customer'}",
|
|
6400
|
+
"Customer Type": "@:{'report.dynamic.common.type'}@:{'report.dynamic.schema.Customer'}",
|
|
6401
|
+
"Customer remark": "หมายเหตุ@:{'report.dynamic.schema.Customer'}",
|
|
6402
|
+
"Delivery time": "@:{'report.dynamic.common.time'}@:{'report.dynamic.common.delivery'}",
|
|
6403
|
+
"Delivery type": "@:{'report.dynamic.common.type'}@:{'report.dynamic.common.delivery'}",
|
|
6404
|
+
"Internal ID": "@:{'report.dynamic.common.id'}ภายใน",
|
|
6405
|
+
"Internal Name (After)": "@:{'report.dynamic.common.name'}ภายใน (หลัง)",
|
|
6406
|
+
"Internal Name (Before)": "@:{'report.dynamic.common.name'}ภายใน (ก่อน)",
|
|
6407
|
+
"Inventory ID": "@:{'report.dynamic.common.id'}@:{'report.dynamic.schema.Inventory'}",
|
|
6408
|
+
"Invoice Code": "@:{'report.dynamic.common.code'}@:{'report.dynamic.common.invoice'}",
|
|
6409
|
+
"Item price adjustment": "@:{'report.dynamic.common.adjustment'}@:{'report.dynamic.common.price'}@:{'report.dynamic.common.item'}",
|
|
6410
|
+
"Legal name": "ชื่อตามกฎหมาย",
|
|
6411
|
+
"Member phone": "เบอร์โทรศัพท์@:{'report.dynamic.schema.Member'}",
|
|
6412
|
+
"Merchant / Store ID": "@:{'report.dynamic.common.id'}ผู้ประกอบการ / @:{'report.dynamic.common.store'}",
|
|
6413
|
+
"Merchant ID": "@:{'report.dynamic.common.id'}ผู้ประกอบการ",
|
|
6414
|
+
"Message quantity": "@:{'report.dynamic.common.count'}ข้อความ",
|
|
6415
|
+
"Message status": "@:{'report.dynamic.common.status'}ข้อความ",
|
|
6416
|
+
"Message usage": "การใช้งานข้อความ",
|
|
6417
|
+
"Model version": "เวอร์ชัน@:{'report.dynamic.common.model'}",
|
|
6418
|
+
"Order From (After)": "สั่งจาก (หลัง)",
|
|
6419
|
+
"Order From (Before)": "สั่งจาก (ก่อน)",
|
|
6420
|
+
"Order ID": "@:{'report.dynamic.common.id'}@:{'report.dynamic.common.order'}",
|
|
6421
|
+
"Order addon": "@:{'report.dynamic.schema.Addon'}ของ@:{'report.dynamic.common.order'}",
|
|
6422
|
+
"Order product": "@:{'report.dynamic.common.product'}ใน@:{'report.dynamic.common.order'}",
|
|
6423
|
+
"Order status": "@:{'report.dynamic.common.status'}@:{'report.dynamic.common.order'}",
|
|
6424
|
+
"Order time": "@:{'report.dynamic.common.time'}สั่งซื้อ",
|
|
6425
|
+
"Order type": "@:{'report.dynamic.common.type'}@:{'report.dynamic.common.order'}",
|
|
6426
|
+
"Override code": "@:{'report.dynamic.common.code'}ที่@:{'report.dynamic.common.override'}",
|
|
6427
|
+
"Override name": "@:{'report.dynamic.common.name'}ที่@:{'report.dynamic.common.override'}",
|
|
6428
|
+
"Payment ID": "@:{'report.dynamic.common.id'}@:{'report.dynamic.common.payment'}",
|
|
6429
|
+
"Pickup order": "@:{'report.dynamic.common.order'}รับหน้าร้าน",
|
|
6430
|
+
"Pickup order product": "@:{'report.dynamic.common.product'}ใน@:{'report.dynamic.common.order'}รับหน้าร้าน",
|
|
6431
|
+
"Pickup time": "@:{'report.dynamic.common.time'}รับสินค้า",
|
|
6432
|
+
"Price group": "กลุ่ม@:{'report.dynamic.common.price'}",
|
|
6433
|
+
"Response Ref ID": "@:{'report.dynamic.common.id'}@:{'report.dynamic.common.ref'}@:{'report.dynamic.common.response'}",
|
|
6434
|
+
"Response Transaction ID": "@:{'report.dynamic.common.id'}@:{'report.dynamic.common.transaction'}@:{'report.dynamic.common.response'}",
|
|
6435
|
+
"Sale Payment": "@:{'report.dynamic.common.payment'}การขาย",
|
|
6436
|
+
"Sale Transaction": "@:{'report.dynamic.common.transaction'}การขาย",
|
|
6437
|
+
"Source ref ID": "@:{'report.dynamic.common.id'}@:{'report.dynamic.common.ref'}แหล่งที่มา",
|
|
6438
|
+
"Start at": "เริ่มเมื่อ",
|
|
6439
|
+
"Status message": "ข้อความ@:{'report.dynamic.common.status'}",
|
|
6440
|
+
"Submission ID": "@:{'report.dynamic.common.id'}@:{'report.dynamic.common.submission'}",
|
|
6441
|
+
"Submission Time": "@:{'report.dynamic.common.time'}@:{'report.dynamic.common.submission'}",
|
|
6442
|
+
"Training date cutoff": "วันที่@:{'report.dynamic.common.cutoff'}@:{'report.dynamic.common.training'}",
|
|
6443
|
+
"Training timestamp": "เวลาประทับ@:{'report.dynamic.common.training'}",
|
|
6444
|
+
"Transaction at": "@:{'report.dynamic.common.time'}ทำ@:{'report.dynamic.common.transaction'}",
|
|
6445
|
+
"Unit Abbrev": "@:{'report.dynamic.common.abbrev'}@:{'report.dynamic.common.unit'}",
|
|
6446
|
+
"Unit Name": "@:{'report.dynamic.common.name'}@:{'report.dynamic.common.unit'}",
|
|
6447
|
+
"Unit quantity": "@:{'report.dynamic.common.count'}@:{'report.dynamic.common.unit'}",
|
|
6448
|
+
"Visibility Reason (After)": "@:{'report.dynamic.common.reason'}การแสดงผล (หลัง)",
|
|
6449
|
+
"Visibility Reason (Before)": "@:{'report.dynamic.common.reason'}การแสดงผล (ก่อน)",
|
|
6450
|
+
"Payments Collected": "ยอดชำระเงินที่ได้รับ",
|
|
6451
|
+
"Discounts & Labour": "@.capitalize:{'report.dynamic.common.discounts'}และชั่วโมงการทำงาน"
|
|
6337
6452
|
}
|
|
6338
6453
|
},
|
|
6339
6454
|
jobs: {
|
|
@@ -7673,7 +7788,18 @@ const Ei = {
|
|
|
7673
7788
|
submission: "提交",
|
|
7674
7789
|
override: "覆蓋",
|
|
7675
7790
|
log: "日誌",
|
|
7676
|
-
item: "項目"
|
|
7791
|
+
item: "項目",
|
|
7792
|
+
net: "淨",
|
|
7793
|
+
orders: "訂單",
|
|
7794
|
+
avg: "平均",
|
|
7795
|
+
collected: "已收",
|
|
7796
|
+
discounts: "折扣",
|
|
7797
|
+
labour: "工時",
|
|
7798
|
+
products: "產品",
|
|
7799
|
+
categories: "類別",
|
|
7800
|
+
by: "按",
|
|
7801
|
+
method: "方式",
|
|
7802
|
+
methods: "方式"
|
|
7677
7803
|
},
|
|
7678
7804
|
other: {
|
|
7679
7805
|
"Inclusive SC": "@.capitalize:{'report.dynamic.common.inclusive'}SC",
|
|
@@ -8296,26 +8422,26 @@ const Ei = {
|
|
|
8296
8422
|
}
|
|
8297
8423
|
}, Qi = {
|
|
8298
8424
|
reportV5: Vi
|
|
8299
|
-
},
|
|
8425
|
+
}, Ni = {
|
|
8300
8426
|
reportHour: {
|
|
8301
8427
|
fullDay: "เต็มวัน"
|
|
8302
8428
|
}
|
|
8303
|
-
},
|
|
8304
|
-
reportV5:
|
|
8429
|
+
}, Gi = {
|
|
8430
|
+
reportV5: Ni
|
|
8305
8431
|
}, qi = {
|
|
8306
8432
|
reportHour: {
|
|
8307
8433
|
fullDay: "全天"
|
|
8308
8434
|
}
|
|
8309
|
-
},
|
|
8435
|
+
}, ki = {
|
|
8310
8436
|
reportV5: qi
|
|
8311
8437
|
}, Rd = {
|
|
8312
8438
|
"en-US": { ...Ti, ...Si },
|
|
8313
8439
|
"zh-CN": { ...zi, ...Qi },
|
|
8314
|
-
"th-TH": { ...ji, ...
|
|
8315
|
-
"zh-Hant": { ...Xi, ...
|
|
8440
|
+
"th-TH": { ...ji, ...Gi },
|
|
8441
|
+
"zh-Hant": { ...Xi, ...ki }
|
|
8316
8442
|
};
|
|
8317
8443
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
8318
|
-
const
|
|
8444
|
+
const Li = () => {
|
|
8319
8445
|
};
|
|
8320
8446
|
function Yi(e, t, o) {
|
|
8321
8447
|
let r;
|
|
@@ -8326,7 +8452,7 @@ function Yi(e, t, o) {
|
|
|
8326
8452
|
lazy: n = !1,
|
|
8327
8453
|
evaluating: a = void 0,
|
|
8328
8454
|
shallow: i = !0,
|
|
8329
|
-
onError: s =
|
|
8455
|
+
onError: s = Li
|
|
8330
8456
|
} = r, l = ue(!n), d = i ? ii(t) : ue(t);
|
|
8331
8457
|
let u = 0;
|
|
8332
8458
|
return si(async (C) => {
|
|
@@ -8412,7 +8538,7 @@ var Sn = { exports: {} };
|
|
|
8412
8538
|
n.r(r), n.d(r, "default", function() {
|
|
8413
8539
|
return Y;
|
|
8414
8540
|
}), n.d(r, "compare", function() {
|
|
8415
|
-
return
|
|
8541
|
+
return L;
|
|
8416
8542
|
}), n.d(r, "comparable", function() {
|
|
8417
8543
|
return re;
|
|
8418
8544
|
});
|
|
@@ -8633,20 +8759,20 @@ var Sn = { exports: {} };
|
|
|
8633
8759
|
}
|
|
8634
8760
|
function H(f, w) {
|
|
8635
8761
|
var D = f.keyPath, M = f.child, V = f.query, x = [];
|
|
8636
|
-
if (function
|
|
8762
|
+
if (function m(g, p, U, j, k) {
|
|
8637
8763
|
if (U === p.length || g == null)
|
|
8638
|
-
return void
|
|
8764
|
+
return void k.push([g, p[U - 1], j]);
|
|
8639
8765
|
var Z = u(p, U);
|
|
8640
8766
|
if (s(g) && isNaN(Number(Z)))
|
|
8641
|
-
for (var te = 0,
|
|
8642
|
-
else
|
|
8767
|
+
for (var te = 0, N = g.length; te < N; te++) m(u(g, te), p, U, g, k);
|
|
8768
|
+
else m(u(g, Z), p, U + 1, g, k);
|
|
8643
8769
|
}(w, D, 0, w, x), x.length === 1) {
|
|
8644
8770
|
var P = x[0];
|
|
8645
8771
|
return T(M, P[0], P[1], P[2]);
|
|
8646
8772
|
}
|
|
8647
8773
|
for (var h = V && V.$ne !== void 0, O = h, E = 0; E < x.length; E++) {
|
|
8648
|
-
var v = x[E],
|
|
8649
|
-
h ? O &=
|
|
8774
|
+
var v = x[E], A = T(M, v[0], v[1], v[2]);
|
|
8775
|
+
h ? O &= A : O |= A;
|
|
8650
8776
|
}
|
|
8651
8777
|
return O;
|
|
8652
8778
|
}
|
|
@@ -8668,8 +8794,8 @@ var Sn = { exports: {} };
|
|
|
8668
8794
|
else {
|
|
8669
8795
|
if (O.charCodeAt(0) === 36)
|
|
8670
8796
|
throw new Error("Unknown operation " + O);
|
|
8671
|
-
var
|
|
8672
|
-
h.push(S(
|
|
8797
|
+
var A = O.split(".");
|
|
8798
|
+
h.push(S(A, x(E), E));
|
|
8673
8799
|
}
|
|
8674
8800
|
}
|
|
8675
8801
|
}
|
|
@@ -8711,12 +8837,12 @@ var Sn = { exports: {} };
|
|
|
8711
8837
|
}), D;
|
|
8712
8838
|
}
|
|
8713
8839
|
function Y(f, w) {
|
|
8714
|
-
var D = X(f, w = Object.assign({ compare:
|
|
8840
|
+
var D = X(f, w = Object.assign({ compare: L, comparable: re }, w));
|
|
8715
8841
|
return function(M, V, x) {
|
|
8716
8842
|
return T(D, M, V, x);
|
|
8717
8843
|
};
|
|
8718
8844
|
}
|
|
8719
|
-
function
|
|
8845
|
+
function L(f, w) {
|
|
8720
8846
|
if (I(f, w)) return 0;
|
|
8721
8847
|
if (a(f) === a(w)) {
|
|
8722
8848
|
if (f > w) return 1;
|
|
@@ -8854,16 +8980,16 @@ function ns(e) {
|
|
|
8854
8980
|
return JSON.parse(JSON.stringify(e));
|
|
8855
8981
|
}
|
|
8856
8982
|
var as = /[-/\\^$+?.()|[\]{}]/g, is = /\.?\*+\.?/g, ss = /\*+/, cs = /\./g;
|
|
8857
|
-
function
|
|
8983
|
+
function ms(e, t, o) {
|
|
8858
8984
|
var r = o[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", n = e.indexOf("**") === -1 ? "[^.]" : ".", a = e.replace(cs, "\\$&").replace(ss, n + r);
|
|
8859
8985
|
return t + e.length === o.length ? "(?:" + a + ")?" : a;
|
|
8860
8986
|
}
|
|
8861
|
-
function
|
|
8987
|
+
function As(e, t, o) {
|
|
8862
8988
|
return e === "." && (o[t - 1] === "*" || o[t + 1] === "*") ? e : "\\" + e;
|
|
8863
8989
|
}
|
|
8864
8990
|
function ls(e) {
|
|
8865
8991
|
var t = e.map(function(r) {
|
|
8866
|
-
return r.replace(as,
|
|
8992
|
+
return r.replace(as, As).replace(is, ms);
|
|
8867
8993
|
}), o = t.length > 1 ? "(?:" + t.join("|") + ")" : t[0];
|
|
8868
8994
|
return new RegExp("^" + o + "$");
|
|
8869
8995
|
}
|
|
@@ -9034,7 +9160,7 @@ var ce;
|
|
|
9034
9160
|
}
|
|
9035
9161
|
e.joinValues = r;
|
|
9036
9162
|
})(ce || (ce = {}));
|
|
9037
|
-
const
|
|
9163
|
+
const G = ce.arrayToEnum([
|
|
9038
9164
|
"string",
|
|
9039
9165
|
"nan",
|
|
9040
9166
|
"number",
|
|
@@ -9055,24 +9181,24 @@ const N = ce.arrayToEnum([
|
|
|
9055
9181
|
"never",
|
|
9056
9182
|
"map",
|
|
9057
9183
|
"set"
|
|
9058
|
-
]),
|
|
9184
|
+
]), At = (e) => {
|
|
9059
9185
|
switch (typeof e) {
|
|
9060
9186
|
case "undefined":
|
|
9061
|
-
return
|
|
9187
|
+
return G.undefined;
|
|
9062
9188
|
case "string":
|
|
9063
|
-
return
|
|
9189
|
+
return G.string;
|
|
9064
9190
|
case "number":
|
|
9065
|
-
return isNaN(e) ?
|
|
9191
|
+
return isNaN(e) ? G.nan : G.number;
|
|
9066
9192
|
case "boolean":
|
|
9067
|
-
return
|
|
9193
|
+
return G.boolean;
|
|
9068
9194
|
case "function":
|
|
9069
|
-
return
|
|
9195
|
+
return G.function;
|
|
9070
9196
|
case "bigint":
|
|
9071
|
-
return
|
|
9197
|
+
return G.bigint;
|
|
9072
9198
|
case "object":
|
|
9073
|
-
return Array.isArray(e) ?
|
|
9199
|
+
return Array.isArray(e) ? G.array : e === null ? G.null : e.then && typeof e.then == "function" && e.catch && typeof e.catch == "function" ? G.promise : typeof Map < "u" && e instanceof Map ? G.map : typeof Set < "u" && e instanceof Set ? G.set : typeof Date < "u" && e instanceof Date ? G.date : G.object;
|
|
9074
9200
|
default:
|
|
9075
|
-
return
|
|
9201
|
+
return G.unknown;
|
|
9076
9202
|
}
|
|
9077
9203
|
}, Q = ce.arrayToEnum([
|
|
9078
9204
|
"invalid_type",
|
|
@@ -9151,7 +9277,7 @@ const qt = (e, t) => {
|
|
|
9151
9277
|
let o;
|
|
9152
9278
|
switch (e.code) {
|
|
9153
9279
|
case Q.invalid_type:
|
|
9154
|
-
e.received ===
|
|
9280
|
+
e.received === G.undefined ? o = "Required" : o = `Expected ${e.expected}, received ${e.received}`;
|
|
9155
9281
|
break;
|
|
9156
9282
|
case Q.invalid_literal:
|
|
9157
9283
|
o = `Invalid literal value, expected ${JSON.stringify(e.expected, Hr)}`;
|
|
@@ -9200,12 +9326,12 @@ const qt = (e, t) => {
|
|
|
9200
9326
|
}
|
|
9201
9327
|
return { message: o };
|
|
9202
9328
|
};
|
|
9203
|
-
let
|
|
9329
|
+
let Nn = qt;
|
|
9204
9330
|
function gs(e) {
|
|
9205
|
-
|
|
9331
|
+
Nn = e;
|
|
9206
9332
|
}
|
|
9207
9333
|
function po() {
|
|
9208
|
-
return
|
|
9334
|
+
return Nn;
|
|
9209
9335
|
}
|
|
9210
9336
|
const fo = (e) => {
|
|
9211
9337
|
const { data: t, path: o, errorMaps: r, issueData: n } = e, a = [...o, ...n.path || []], i = {
|
|
@@ -9313,13 +9439,13 @@ class ne {
|
|
|
9313
9439
|
return this._def.description;
|
|
9314
9440
|
}
|
|
9315
9441
|
_getType(t) {
|
|
9316
|
-
return
|
|
9442
|
+
return At(t.data);
|
|
9317
9443
|
}
|
|
9318
9444
|
_getOrReturnCtx(t, o) {
|
|
9319
9445
|
return o || {
|
|
9320
9446
|
common: t.parent.common,
|
|
9321
9447
|
data: t.data,
|
|
9322
|
-
parsedType:
|
|
9448
|
+
parsedType: At(t.data),
|
|
9323
9449
|
schemaErrorMap: this._def.errorMap,
|
|
9324
9450
|
path: t.path,
|
|
9325
9451
|
parent: t.parent
|
|
@@ -9331,7 +9457,7 @@ class ne {
|
|
|
9331
9457
|
ctx: {
|
|
9332
9458
|
common: t.parent.common,
|
|
9333
9459
|
data: t.data,
|
|
9334
|
-
parsedType:
|
|
9460
|
+
parsedType: At(t.data),
|
|
9335
9461
|
schemaErrorMap: this._def.errorMap,
|
|
9336
9462
|
path: t.path,
|
|
9337
9463
|
parent: t.parent
|
|
@@ -9366,7 +9492,7 @@ class ne {
|
|
|
9366
9492
|
schemaErrorMap: this._def.errorMap,
|
|
9367
9493
|
parent: null,
|
|
9368
9494
|
data: t,
|
|
9369
|
-
parsedType:
|
|
9495
|
+
parsedType: At(t)
|
|
9370
9496
|
}, a = this._parseSync({ data: t, path: n.path, parent: n });
|
|
9371
9497
|
return en(n, a);
|
|
9372
9498
|
}
|
|
@@ -9387,7 +9513,7 @@ class ne {
|
|
|
9387
9513
|
schemaErrorMap: this._def.errorMap,
|
|
9388
9514
|
parent: null,
|
|
9389
9515
|
data: t,
|
|
9390
|
-
parsedType:
|
|
9516
|
+
parsedType: At(t)
|
|
9391
9517
|
}, n = this._parse({ data: t, path: [], parent: r }), a = await (hr(n) ? n : Promise.resolve(n));
|
|
9392
9518
|
return en(r, a);
|
|
9393
9519
|
}
|
|
@@ -9427,10 +9553,10 @@ class ne {
|
|
|
9427
9553
|
return It.create(this);
|
|
9428
9554
|
}
|
|
9429
9555
|
or(t) {
|
|
9430
|
-
return
|
|
9556
|
+
return kt.create([this, t]);
|
|
9431
9557
|
}
|
|
9432
9558
|
and(t) {
|
|
9433
|
-
return
|
|
9559
|
+
return Lt.create(this, t);
|
|
9434
9560
|
}
|
|
9435
9561
|
transform(t) {
|
|
9436
9562
|
return new et({
|
|
@@ -9474,13 +9600,13 @@ class dt extends ne {
|
|
|
9474
9600
|
});
|
|
9475
9601
|
}
|
|
9476
9602
|
_parse(t) {
|
|
9477
|
-
if (this._getType(t) !==
|
|
9603
|
+
if (this._getType(t) !== G.string) {
|
|
9478
9604
|
const a = this._getOrReturnCtx(t);
|
|
9479
9605
|
return W(
|
|
9480
9606
|
a,
|
|
9481
9607
|
{
|
|
9482
9608
|
code: Q.invalid_type,
|
|
9483
|
-
expected:
|
|
9609
|
+
expected: G.string,
|
|
9484
9610
|
received: a.parsedType
|
|
9485
9611
|
}
|
|
9486
9612
|
//
|
|
@@ -9643,11 +9769,11 @@ class wt extends ne {
|
|
|
9643
9769
|
super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
|
|
9644
9770
|
}
|
|
9645
9771
|
_parse(t) {
|
|
9646
|
-
if (this._getType(t) !==
|
|
9772
|
+
if (this._getType(t) !== G.number) {
|
|
9647
9773
|
const a = this._getOrReturnCtx(t);
|
|
9648
9774
|
return W(a, {
|
|
9649
9775
|
code: Q.invalid_type,
|
|
9650
|
-
expected:
|
|
9776
|
+
expected: G.number,
|
|
9651
9777
|
received: a.parsedType
|
|
9652
9778
|
}), oe;
|
|
9653
9779
|
}
|
|
@@ -9778,11 +9904,11 @@ wt.create = (e) => new wt({
|
|
|
9778
9904
|
});
|
|
9779
9905
|
class yo extends ne {
|
|
9780
9906
|
_parse(t) {
|
|
9781
|
-
if (this._getType(t) !==
|
|
9907
|
+
if (this._getType(t) !== G.bigint) {
|
|
9782
9908
|
const r = this._getOrReturnCtx(t);
|
|
9783
9909
|
return W(r, {
|
|
9784
9910
|
code: Q.invalid_type,
|
|
9785
|
-
expected:
|
|
9911
|
+
expected: G.bigint,
|
|
9786
9912
|
received: r.parsedType
|
|
9787
9913
|
}), oe;
|
|
9788
9914
|
}
|
|
@@ -9795,11 +9921,11 @@ yo.create = (e) => new yo({
|
|
|
9795
9921
|
});
|
|
9796
9922
|
class vo extends ne {
|
|
9797
9923
|
_parse(t) {
|
|
9798
|
-
if (this._getType(t) !==
|
|
9924
|
+
if (this._getType(t) !== G.boolean) {
|
|
9799
9925
|
const r = this._getOrReturnCtx(t);
|
|
9800
9926
|
return W(r, {
|
|
9801
9927
|
code: Q.invalid_type,
|
|
9802
|
-
expected:
|
|
9928
|
+
expected: G.boolean,
|
|
9803
9929
|
received: r.parsedType
|
|
9804
9930
|
}), oe;
|
|
9805
9931
|
}
|
|
@@ -9812,11 +9938,11 @@ vo.create = (e) => new vo({
|
|
|
9812
9938
|
});
|
|
9813
9939
|
class Ht extends ne {
|
|
9814
9940
|
_parse(t) {
|
|
9815
|
-
if (this._getType(t) !==
|
|
9941
|
+
if (this._getType(t) !== G.date) {
|
|
9816
9942
|
const a = this._getOrReturnCtx(t);
|
|
9817
9943
|
return W(a, {
|
|
9818
9944
|
code: Q.invalid_type,
|
|
9819
|
-
expected:
|
|
9945
|
+
expected: G.date,
|
|
9820
9946
|
received: a.parsedType
|
|
9821
9947
|
}), oe;
|
|
9822
9948
|
}
|
|
@@ -9887,11 +10013,11 @@ Ht.create = (e) => new Ht({
|
|
|
9887
10013
|
});
|
|
9888
10014
|
class ho extends ne {
|
|
9889
10015
|
_parse(t) {
|
|
9890
|
-
if (this._getType(t) !==
|
|
10016
|
+
if (this._getType(t) !== G.undefined) {
|
|
9891
10017
|
const r = this._getOrReturnCtx(t);
|
|
9892
10018
|
return W(r, {
|
|
9893
10019
|
code: Q.invalid_type,
|
|
9894
|
-
expected:
|
|
10020
|
+
expected: G.undefined,
|
|
9895
10021
|
received: r.parsedType
|
|
9896
10022
|
}), oe;
|
|
9897
10023
|
}
|
|
@@ -9904,11 +10030,11 @@ ho.create = (e) => new ho({
|
|
|
9904
10030
|
});
|
|
9905
10031
|
class wo extends ne {
|
|
9906
10032
|
_parse(t) {
|
|
9907
|
-
if (this._getType(t) !==
|
|
10033
|
+
if (this._getType(t) !== G.null) {
|
|
9908
10034
|
const r = this._getOrReturnCtx(t);
|
|
9909
10035
|
return W(r, {
|
|
9910
10036
|
code: Q.invalid_type,
|
|
9911
|
-
expected:
|
|
10037
|
+
expected: G.null,
|
|
9912
10038
|
received: r.parsedType
|
|
9913
10039
|
}), oe;
|
|
9914
10040
|
}
|
|
@@ -9948,7 +10074,7 @@ class ut extends ne {
|
|
|
9948
10074
|
const o = this._getOrReturnCtx(t);
|
|
9949
10075
|
return W(o, {
|
|
9950
10076
|
code: Q.invalid_type,
|
|
9951
|
-
expected:
|
|
10077
|
+
expected: G.never,
|
|
9952
10078
|
received: o.parsedType
|
|
9953
10079
|
}), oe;
|
|
9954
10080
|
}
|
|
@@ -9959,11 +10085,11 @@ ut.create = (e) => new ut({
|
|
|
9959
10085
|
});
|
|
9960
10086
|
class Fo extends ne {
|
|
9961
10087
|
_parse(t) {
|
|
9962
|
-
if (this._getType(t) !==
|
|
10088
|
+
if (this._getType(t) !== G.undefined) {
|
|
9963
10089
|
const r = this._getOrReturnCtx(t);
|
|
9964
10090
|
return W(r, {
|
|
9965
10091
|
code: Q.invalid_type,
|
|
9966
|
-
expected:
|
|
10092
|
+
expected: G.void,
|
|
9967
10093
|
received: r.parsedType
|
|
9968
10094
|
}), oe;
|
|
9969
10095
|
}
|
|
@@ -9977,10 +10103,10 @@ Fo.create = (e) => new Fo({
|
|
|
9977
10103
|
class _e extends ne {
|
|
9978
10104
|
_parse(t) {
|
|
9979
10105
|
const { ctx: o, status: r } = this._processInputParams(t), n = this._def;
|
|
9980
|
-
if (o.parsedType !==
|
|
10106
|
+
if (o.parsedType !== G.array)
|
|
9981
10107
|
return W(o, {
|
|
9982
10108
|
code: Q.invalid_type,
|
|
9983
|
-
expected:
|
|
10109
|
+
expected: G.array,
|
|
9984
10110
|
received: o.parsedType
|
|
9985
10111
|
}), oe;
|
|
9986
10112
|
if (n.minLength !== null && o.data.length < n.minLength.value && (W(o, {
|
|
@@ -10067,11 +10193,11 @@ class ge extends ne {
|
|
|
10067
10193
|
return this._cached = { shape: t, keys: o };
|
|
10068
10194
|
}
|
|
10069
10195
|
_parse(t) {
|
|
10070
|
-
if (this._getType(t) !==
|
|
10196
|
+
if (this._getType(t) !== G.object) {
|
|
10071
10197
|
const d = this._getOrReturnCtx(t);
|
|
10072
10198
|
return W(d, {
|
|
10073
10199
|
code: Q.invalid_type,
|
|
10074
|
-
expected:
|
|
10200
|
+
expected: G.object,
|
|
10075
10201
|
received: d.parsedType
|
|
10076
10202
|
}), oe;
|
|
10077
10203
|
}
|
|
@@ -10235,7 +10361,7 @@ class ge extends ne {
|
|
|
10235
10361
|
});
|
|
10236
10362
|
}
|
|
10237
10363
|
keyof() {
|
|
10238
|
-
return
|
|
10364
|
+
return Gn(ce.objectKeys(this.shape));
|
|
10239
10365
|
}
|
|
10240
10366
|
}
|
|
10241
10367
|
ge.create = (e, t) => new ge({
|
|
@@ -10259,7 +10385,7 @@ ge.lazycreate = (e, t) => new ge({
|
|
|
10259
10385
|
typeName: ee.ZodObject,
|
|
10260
10386
|
...ae(t)
|
|
10261
10387
|
});
|
|
10262
|
-
class
|
|
10388
|
+
class kt extends ne {
|
|
10263
10389
|
_parse(t) {
|
|
10264
10390
|
const { ctx: o } = this._processInputParams(t), r = this._def.options;
|
|
10265
10391
|
function n(a) {
|
|
@@ -10327,7 +10453,7 @@ class Lt extends ne {
|
|
|
10327
10453
|
return this._def.options;
|
|
10328
10454
|
}
|
|
10329
10455
|
}
|
|
10330
|
-
|
|
10456
|
+
kt.create = (e, t) => new kt({
|
|
10331
10457
|
options: e,
|
|
10332
10458
|
typeName: ee.ZodUnion,
|
|
10333
10459
|
...ae(t)
|
|
@@ -10335,10 +10461,10 @@ Lt.create = (e, t) => new Lt({
|
|
|
10335
10461
|
class xo extends ne {
|
|
10336
10462
|
_parse(t) {
|
|
10337
10463
|
const { ctx: o } = this._processInputParams(t);
|
|
10338
|
-
if (o.parsedType !==
|
|
10464
|
+
if (o.parsedType !== G.object)
|
|
10339
10465
|
return W(o, {
|
|
10340
10466
|
code: Q.invalid_type,
|
|
10341
|
-
expected:
|
|
10467
|
+
expected: G.object,
|
|
10342
10468
|
received: o.parsedType
|
|
10343
10469
|
}), oe;
|
|
10344
10470
|
const r = this.discriminator, n = o.data[r], a = this.options.get(n);
|
|
@@ -10394,10 +10520,10 @@ class xo extends ne {
|
|
|
10394
10520
|
}
|
|
10395
10521
|
}
|
|
10396
10522
|
function wr(e, t) {
|
|
10397
|
-
const o =
|
|
10523
|
+
const o = At(e), r = At(t);
|
|
10398
10524
|
if (e === t)
|
|
10399
10525
|
return { valid: !0, data: e };
|
|
10400
|
-
if (o ===
|
|
10526
|
+
if (o === G.object && r === G.object) {
|
|
10401
10527
|
const n = ce.objectKeys(t), a = ce.objectKeys(e).filter((s) => n.indexOf(s) !== -1), i = { ...e, ...t };
|
|
10402
10528
|
for (const s of a) {
|
|
10403
10529
|
const l = wr(e[s], t[s]);
|
|
@@ -10406,7 +10532,7 @@ function wr(e, t) {
|
|
|
10406
10532
|
i[s] = l.data;
|
|
10407
10533
|
}
|
|
10408
10534
|
return { valid: !0, data: i };
|
|
10409
|
-
} else if (o ===
|
|
10535
|
+
} else if (o === G.array && r === G.array) {
|
|
10410
10536
|
if (e.length !== t.length)
|
|
10411
10537
|
return { valid: !1 };
|
|
10412
10538
|
const n = [];
|
|
@@ -10417,9 +10543,9 @@ function wr(e, t) {
|
|
|
10417
10543
|
n.push(l.data);
|
|
10418
10544
|
}
|
|
10419
10545
|
return { valid: !0, data: n };
|
|
10420
|
-
} else return o ===
|
|
10546
|
+
} else return o === G.date && r === G.date && +e == +t ? { valid: !0, data: e } : { valid: !1 };
|
|
10421
10547
|
}
|
|
10422
|
-
class
|
|
10548
|
+
class Lt extends ne {
|
|
10423
10549
|
_parse(t) {
|
|
10424
10550
|
const { status: o, ctx: r } = this._processInputParams(t), n = (a, i) => {
|
|
10425
10551
|
if (yr(a) || yr(i))
|
|
@@ -10451,7 +10577,7 @@ class kt extends ne {
|
|
|
10451
10577
|
}));
|
|
10452
10578
|
}
|
|
10453
10579
|
}
|
|
10454
|
-
|
|
10580
|
+
Lt.create = (e, t, o) => new Lt({
|
|
10455
10581
|
left: e,
|
|
10456
10582
|
right: t,
|
|
10457
10583
|
typeName: ee.ZodIntersection,
|
|
@@ -10460,10 +10586,10 @@ kt.create = (e, t, o) => new kt({
|
|
|
10460
10586
|
class $e extends ne {
|
|
10461
10587
|
_parse(t) {
|
|
10462
10588
|
const { status: o, ctx: r } = this._processInputParams(t);
|
|
10463
|
-
if (r.parsedType !==
|
|
10589
|
+
if (r.parsedType !== G.array)
|
|
10464
10590
|
return W(r, {
|
|
10465
10591
|
code: Q.invalid_type,
|
|
10466
|
-
expected:
|
|
10592
|
+
expected: G.array,
|
|
10467
10593
|
received: r.parsedType
|
|
10468
10594
|
}), oe;
|
|
10469
10595
|
if (r.data.length < this._def.items.length)
|
|
@@ -10510,10 +10636,10 @@ class Yt extends ne {
|
|
|
10510
10636
|
}
|
|
10511
10637
|
_parse(t) {
|
|
10512
10638
|
const { status: o, ctx: r } = this._processInputParams(t);
|
|
10513
|
-
if (r.parsedType !==
|
|
10639
|
+
if (r.parsedType !== G.object)
|
|
10514
10640
|
return W(r, {
|
|
10515
10641
|
code: Q.invalid_type,
|
|
10516
|
-
expected:
|
|
10642
|
+
expected: G.object,
|
|
10517
10643
|
received: r.parsedType
|
|
10518
10644
|
}), oe;
|
|
10519
10645
|
const n = [], a = this._def.keyType, i = this._def.valueType;
|
|
@@ -10544,10 +10670,10 @@ class Yt extends ne {
|
|
|
10544
10670
|
class Co extends ne {
|
|
10545
10671
|
_parse(t) {
|
|
10546
10672
|
const { status: o, ctx: r } = this._processInputParams(t);
|
|
10547
|
-
if (r.parsedType !==
|
|
10673
|
+
if (r.parsedType !== G.map)
|
|
10548
10674
|
return W(r, {
|
|
10549
10675
|
code: Q.invalid_type,
|
|
10550
|
-
expected:
|
|
10676
|
+
expected: G.map,
|
|
10551
10677
|
received: r.parsedType
|
|
10552
10678
|
}), oe;
|
|
10553
10679
|
const n = this._def.keyType, a = this._def.valueType, i = [...r.data.entries()].map(([s, l], d) => ({
|
|
@@ -10586,10 +10712,10 @@ Co.create = (e, t, o) => new Co({
|
|
|
10586
10712
|
class Ft extends ne {
|
|
10587
10713
|
_parse(t) {
|
|
10588
10714
|
const { status: o, ctx: r } = this._processInputParams(t);
|
|
10589
|
-
if (r.parsedType !==
|
|
10715
|
+
if (r.parsedType !== G.set)
|
|
10590
10716
|
return W(r, {
|
|
10591
10717
|
code: Q.invalid_type,
|
|
10592
|
-
expected:
|
|
10718
|
+
expected: G.set,
|
|
10593
10719
|
received: r.parsedType
|
|
10594
10720
|
}), oe;
|
|
10595
10721
|
const n = this._def;
|
|
@@ -10651,10 +10777,10 @@ class bt extends ne {
|
|
|
10651
10777
|
}
|
|
10652
10778
|
_parse(t) {
|
|
10653
10779
|
const { ctx: o } = this._processInputParams(t);
|
|
10654
|
-
if (o.parsedType !==
|
|
10780
|
+
if (o.parsedType !== G.function)
|
|
10655
10781
|
return W(o, {
|
|
10656
10782
|
code: Q.invalid_type,
|
|
10657
|
-
expected:
|
|
10783
|
+
expected: G.function,
|
|
10658
10784
|
received: o.parsedType
|
|
10659
10785
|
}), oe;
|
|
10660
10786
|
function r(s, l) {
|
|
@@ -10772,7 +10898,7 @@ Do.create = (e, t) => new Do({
|
|
|
10772
10898
|
typeName: ee.ZodLiteral,
|
|
10773
10899
|
...ae(t)
|
|
10774
10900
|
});
|
|
10775
|
-
function
|
|
10901
|
+
function Gn(e, t) {
|
|
10776
10902
|
return new Eo({
|
|
10777
10903
|
values: e,
|
|
10778
10904
|
typeName: ee.ZodEnum,
|
|
@@ -10821,11 +10947,11 @@ class Eo extends ne {
|
|
|
10821
10947
|
return t;
|
|
10822
10948
|
}
|
|
10823
10949
|
}
|
|
10824
|
-
Eo.create =
|
|
10950
|
+
Eo.create = Gn;
|
|
10825
10951
|
class Ro extends ne {
|
|
10826
10952
|
_parse(t) {
|
|
10827
10953
|
const o = ce.getValidEnumValues(this._def.values), r = this._getOrReturnCtx(t);
|
|
10828
|
-
if (r.parsedType !==
|
|
10954
|
+
if (r.parsedType !== G.string && r.parsedType !== G.number) {
|
|
10829
10955
|
const n = ce.objectValues(o);
|
|
10830
10956
|
return W(r, {
|
|
10831
10957
|
expected: ce.joinValues(n),
|
|
@@ -10855,13 +10981,13 @@ Ro.create = (e, t) => new Ro({
|
|
|
10855
10981
|
class It extends ne {
|
|
10856
10982
|
_parse(t) {
|
|
10857
10983
|
const { ctx: o } = this._processInputParams(t);
|
|
10858
|
-
if (o.parsedType !==
|
|
10984
|
+
if (o.parsedType !== G.promise && o.common.async === !1)
|
|
10859
10985
|
return W(o, {
|
|
10860
10986
|
code: Q.invalid_type,
|
|
10861
|
-
expected:
|
|
10987
|
+
expected: G.promise,
|
|
10862
10988
|
received: o.parsedType
|
|
10863
10989
|
}), oe;
|
|
10864
|
-
const r = o.parsedType ===
|
|
10990
|
+
const r = o.parsedType === G.promise ? o.data : Promise.resolve(o.data);
|
|
10865
10991
|
return Ke(r.then((n) => this._def.type.parseAsync(n, {
|
|
10866
10992
|
path: o.path,
|
|
10867
10993
|
errorMap: o.common.contextualErrorMap
|
|
@@ -10950,7 +11076,7 @@ et.createWithPreprocess = (e, t, o) => new et({
|
|
|
10950
11076
|
});
|
|
10951
11077
|
class We extends ne {
|
|
10952
11078
|
_parse(t) {
|
|
10953
|
-
return this._getType(t) ===
|
|
11079
|
+
return this._getType(t) === G.undefined ? Ke(void 0) : this._def.innerType._parse(t);
|
|
10954
11080
|
}
|
|
10955
11081
|
unwrap() {
|
|
10956
11082
|
return this._def.innerType;
|
|
@@ -10963,7 +11089,7 @@ We.create = (e, t) => new We({
|
|
|
10963
11089
|
});
|
|
10964
11090
|
class Ct extends ne {
|
|
10965
11091
|
_parse(t) {
|
|
10966
|
-
return this._getType(t) ===
|
|
11092
|
+
return this._getType(t) === G.null ? Ke(null) : this._def.innerType._parse(t);
|
|
10967
11093
|
}
|
|
10968
11094
|
unwrap() {
|
|
10969
11095
|
return this._def.innerType;
|
|
@@ -10978,7 +11104,7 @@ class zr extends ne {
|
|
|
10978
11104
|
_parse(t) {
|
|
10979
11105
|
const { ctx: o } = this._processInputParams(t);
|
|
10980
11106
|
let r = o.data;
|
|
10981
|
-
return o.parsedType ===
|
|
11107
|
+
return o.parsedType === G.undefined && (r = this._def.defaultValue()), this._def.innerType._parse({
|
|
10982
11108
|
data: r,
|
|
10983
11109
|
path: o.path,
|
|
10984
11110
|
parent: o
|
|
@@ -10995,11 +11121,11 @@ zr.create = (e, t) => new We({
|
|
|
10995
11121
|
});
|
|
10996
11122
|
class Uo extends ne {
|
|
10997
11123
|
_parse(t) {
|
|
10998
|
-
if (this._getType(t) !==
|
|
11124
|
+
if (this._getType(t) !== G.nan) {
|
|
10999
11125
|
const r = this._getOrReturnCtx(t);
|
|
11000
11126
|
return W(r, {
|
|
11001
11127
|
code: Q.invalid_type,
|
|
11002
|
-
expected:
|
|
11128
|
+
expected: G.nan,
|
|
11003
11129
|
received: r.parsedType
|
|
11004
11130
|
}), oe;
|
|
11005
11131
|
}
|
|
@@ -11024,11 +11150,11 @@ var ee;
|
|
|
11024
11150
|
})(ee || (ee = {}));
|
|
11025
11151
|
const Bs = (e, t = {
|
|
11026
11152
|
message: `Input not instance of ${e.name}`
|
|
11027
|
-
}) => qn((o) => o instanceof e, t, !0),
|
|
11153
|
+
}) => qn((o) => o instanceof e, t, !0), kn = dt.create, Ln = wt.create, Ds = Uo.create, Rs = yo.create, Yn = vo.create, Us = Ht.create, Ps = ho.create, Ks = wo.create, xs = zt.create, Es = lt.create, Ts = ut.create, Hs = Fo.create, zs = _e.create, Is = ge.create, js = ge.strictCreate, Os = kt.create, Xs = xo.create, Ms = Lt.create, Ss = $e.create, Vs = Yt.create, Qs = Co.create, Ns = Ft.create, Gs = bt.create, qs = Bo.create, ks = Do.create, Ls = Eo.create, Ys = Ro.create, Zs = It.create, on = et.create, Ws = We.create, Js = Ct.create, _s = et.createWithPreprocess, $s = () => kn().optional(), ec = () => Ln().optional(), tc = () => Yn().optional();
|
|
11028
11154
|
var St = /* @__PURE__ */ Object.freeze({
|
|
11029
11155
|
__proto__: null,
|
|
11030
|
-
getParsedType:
|
|
11031
|
-
ZodParsedType:
|
|
11156
|
+
getParsedType: At,
|
|
11157
|
+
ZodParsedType: G,
|
|
11032
11158
|
makeIssue: fo,
|
|
11033
11159
|
EMPTY_PATH: ys,
|
|
11034
11160
|
addIssueToContext: W,
|
|
@@ -11058,9 +11184,9 @@ var St = /* @__PURE__ */ Object.freeze({
|
|
|
11058
11184
|
return bo;
|
|
11059
11185
|
},
|
|
11060
11186
|
ZodObject: ge,
|
|
11061
|
-
ZodUnion:
|
|
11187
|
+
ZodUnion: kt,
|
|
11062
11188
|
ZodDiscriminatedUnion: xo,
|
|
11063
|
-
ZodIntersection:
|
|
11189
|
+
ZodIntersection: Lt,
|
|
11064
11190
|
ZodTuple: $e,
|
|
11065
11191
|
ZodRecord: Yt,
|
|
11066
11192
|
ZodMap: Co,
|
|
@@ -11091,19 +11217,19 @@ var St = /* @__PURE__ */ Object.freeze({
|
|
|
11091
11217
|
date: Us,
|
|
11092
11218
|
discriminatedUnion: Xs,
|
|
11093
11219
|
effect: on,
|
|
11094
|
-
enum:
|
|
11095
|
-
function:
|
|
11220
|
+
enum: Ls,
|
|
11221
|
+
function: Gs,
|
|
11096
11222
|
instanceof: Bs,
|
|
11097
11223
|
intersection: Ms,
|
|
11098
11224
|
lazy: qs,
|
|
11099
|
-
literal:
|
|
11225
|
+
literal: ks,
|
|
11100
11226
|
map: Qs,
|
|
11101
11227
|
nan: Ds,
|
|
11102
11228
|
nativeEnum: Ys,
|
|
11103
11229
|
never: Ts,
|
|
11104
11230
|
null: Ks,
|
|
11105
11231
|
nullable: Js,
|
|
11106
|
-
number:
|
|
11232
|
+
number: Ln,
|
|
11107
11233
|
object: Is,
|
|
11108
11234
|
oboolean: tc,
|
|
11109
11235
|
onumber: ec,
|
|
@@ -11112,9 +11238,9 @@ var St = /* @__PURE__ */ Object.freeze({
|
|
|
11112
11238
|
preprocess: _s,
|
|
11113
11239
|
promise: Zs,
|
|
11114
11240
|
record: Vs,
|
|
11115
|
-
set:
|
|
11241
|
+
set: Ns,
|
|
11116
11242
|
strictObject: js,
|
|
11117
|
-
string:
|
|
11243
|
+
string: kn,
|
|
11118
11244
|
transformer: on,
|
|
11119
11245
|
tuple: Ss,
|
|
11120
11246
|
undefined: Ps,
|
|
@@ -11231,11 +11357,11 @@ function sc(e) {
|
|
|
11231
11357
|
return t ? Object.keys(t) : void 0;
|
|
11232
11358
|
}
|
|
11233
11359
|
const Wn = /* @__PURE__ */ new Map(), co = [], cc = /* @__PURE__ */ new Map(), rn = "prefix:";
|
|
11234
|
-
function
|
|
11360
|
+
function mc(e) {
|
|
11235
11361
|
for (const [t, o] of Object.entries(e))
|
|
11236
|
-
|
|
11362
|
+
Ac([t], o);
|
|
11237
11363
|
}
|
|
11238
|
-
function
|
|
11364
|
+
function Ac(e, t) {
|
|
11239
11365
|
const o = Array.isArray(t) ? t : [t];
|
|
11240
11366
|
lc(o, e);
|
|
11241
11367
|
for (const r of o) cc.set(r.builderKey, r);
|
|
@@ -11333,18 +11459,18 @@ function Fc(e, t) {
|
|
|
11333
11459
|
return e.slice(0, 10);
|
|
11334
11460
|
}
|
|
11335
11461
|
}
|
|
11336
|
-
const
|
|
11337
|
-
days: `${
|
|
11338
|
-
months: `${
|
|
11339
|
-
years: `${
|
|
11462
|
+
const Nt = "conditionBuilder.reportAccessWindow", sn = {
|
|
11463
|
+
days: `${Nt}.inheritedLastDays`,
|
|
11464
|
+
months: `${Nt}.inheritedLastMonths`,
|
|
11465
|
+
years: `${Nt}.inheritedLastYears`
|
|
11340
11466
|
};
|
|
11341
11467
|
function bc(e, t) {
|
|
11342
11468
|
if (!(!e || typeof e != "object")) {
|
|
11343
11469
|
if (e.mode === "unrestricted")
|
|
11344
|
-
return { labelKey: `${
|
|
11470
|
+
return { labelKey: `${Nt}.unrestricted` };
|
|
11345
11471
|
if (e.mode === "since" && typeof e.sinceAtUtc == "string")
|
|
11346
11472
|
return {
|
|
11347
|
-
labelKey: `${
|
|
11473
|
+
labelKey: `${Nt}.inheritedSince`,
|
|
11348
11474
|
params: { date: Fc(e.sinceAtUtc, t.timeZone) }
|
|
11349
11475
|
};
|
|
11350
11476
|
if (e.mode === "last" && typeof e.amount == "number" && typeof e.unit == "string" && e.unit in sn)
|
|
@@ -11447,7 +11573,7 @@ const Cc = {
|
|
|
11447
11573
|
// Flat POS report subject used by the restaurant role editor.
|
|
11448
11574
|
report: Kt
|
|
11449
11575
|
};
|
|
11450
|
-
|
|
11576
|
+
mc(Dc);
|
|
11451
11577
|
const Rc = {
|
|
11452
11578
|
[be.permission]: y.hrm_teamMember,
|
|
11453
11579
|
[be.promotion]: y.crm_promotion,
|
|
@@ -11535,7 +11661,7 @@ function xc(e, t) {
|
|
|
11535
11661
|
conditionEvaluation: "missing_or_invalid_context"
|
|
11536
11662
|
};
|
|
11537
11663
|
}
|
|
11538
|
-
function
|
|
11664
|
+
function Gt(e, t, o) {
|
|
11539
11665
|
const r = arguments.length >= 3;
|
|
11540
11666
|
if (Array.isArray(e))
|
|
11541
11667
|
return Cr(e, t);
|
|
@@ -11577,7 +11703,7 @@ async function Ec(e) {
|
|
|
11577
11703
|
message: "User does not have permission to access"
|
|
11578
11704
|
});
|
|
11579
11705
|
if (n && n.length > 0) {
|
|
11580
|
-
const { granted: i } =
|
|
11706
|
+
const { granted: i } = Gt(n, t.permissions);
|
|
11581
11707
|
if (!i)
|
|
11582
11708
|
return Promise.resolve({
|
|
11583
11709
|
canAccess: !1,
|
|
@@ -11650,7 +11776,7 @@ const zc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
11650
11776
|
subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
|
|
11651
11777
|
}, Qc = {
|
|
11652
11778
|
noPermission: Vc
|
|
11653
|
-
},
|
|
11779
|
+
}, Nc = { class: "w-full h-full flex justify-center items-center" }, Gc = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, qc = { class: "w-[300px] h-[300px]" }, kc = ["src"], Lc = { class: "text-2xl" }, Yc = { class: "text-xl" }, Zc = /* @__PURE__ */ Kn({
|
|
11654
11780
|
__name: "NoPermission",
|
|
11655
11781
|
setup(e) {
|
|
11656
11782
|
const { t } = gi({
|
|
@@ -11661,16 +11787,16 @@ const zc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
11661
11787
|
"th-TH": Qc
|
|
11662
11788
|
}
|
|
11663
11789
|
});
|
|
11664
|
-
return (o, r) => (xn(), li("div",
|
|
11665
|
-
Pt("div",
|
|
11790
|
+
return (o, r) => (xn(), li("div", Nc, [
|
|
11791
|
+
Pt("div", Gc, [
|
|
11666
11792
|
Pt("div", qc, [
|
|
11667
11793
|
Pt("img", {
|
|
11668
11794
|
src: yt(zc),
|
|
11669
11795
|
class: "w-full h-full"
|
|
11670
|
-
}, null, 8,
|
|
11796
|
+
}, null, 8, kc)
|
|
11671
11797
|
]),
|
|
11672
11798
|
Pt("div", null, [
|
|
11673
|
-
Pt("h1",
|
|
11799
|
+
Pt("h1", Lc, Wr(yt(t)("noPermission.title")), 1),
|
|
11674
11800
|
Pt("h2", Yc, Wr(yt(t)("noPermission.subtitle")), 1)
|
|
11675
11801
|
])
|
|
11676
11802
|
])
|
|
@@ -11680,7 +11806,7 @@ const zc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
11680
11806
|
__name: "PermissionWrapper",
|
|
11681
11807
|
setup(e) {
|
|
11682
11808
|
const t = Hc();
|
|
11683
|
-
return (o, r) => yt(t) === yt(Br).Denied ? (xn(), ci(Zc, { key: 0 })) : yt(t) === yt(Br).Allowed ?
|
|
11809
|
+
return (o, r) => yt(t) === yt(Br).Denied ? (xn(), ci(Zc, { key: 0 })) : yt(t) === yt(Br).Allowed ? mi(o.$slots, "default", { key: 1 }) : Ai("", !0);
|
|
11684
11810
|
}
|
|
11685
11811
|
});
|
|
11686
11812
|
function Jc(e) {
|
|
@@ -11692,18 +11818,18 @@ function Jc(e) {
|
|
|
11692
11818
|
};
|
|
11693
11819
|
}
|
|
11694
11820
|
y.restaurant, c.manage, y.menu_item, c.manage, y.menu_catalog, c.manage, y.menu_category, c.manage, y.menu_subCategory, c.manage, y.menu_group, c.manage, y.menu_takeaway, c.manage, y.menu_scheduler, c.manage, y.menu_variant, c.manage, y.menu_cookingGuide, c.manage, y.menu_printRoute, c.manage, y.menu_servingSequence, c.manage, y.menu_unit, c.manage, y.menu_ingredient, c.manage, y.menu_recipe, c.manage, y.menu_settings, c.manage, y.menu_publish, c.manage, y.menu_menuManagement, c.manage, y.menu_importExport, c.manage, y.inventory_stockBalance, c.manage, y.inventory_stockAdjustment, c.manage, y.inventory_unitCostHistory, c.manage, y.inventory_wastageTemplate, c.manage, y.inventory_closingHistory, c.manage, y.inventory_closingTemplate, c.manage, y.inventory_closingDraft, c.manage, y.inventory_ingredient, c.manage, y.inventory_ingredientGroup, c.manage, y.inventory_recipe, c.manage, y.inventory_unit, c.manage, y.inventory_purchaseTransfer, c.manage, y.inventory_orderDraftApproval, c.manage, y.inventory_transferOut, c.manage, y.inventory_surcharge, c.manage, y.inventory_orderTemplate, c.manage, y.inventory_supplier, c.manage, y.inventory_warehouse, c.manage, y.inventory_publish, c.manage, y.inventory_import, c.manage, y.inventory_integration, c.manage, y.crm_membership, c.manage, y.crm_promotion, c.manage, y.crm_voucher, c.manage, y.crm_analytic, c.manage, y.crm_tier, c.manage, y.crm_title, c.manage, y.crm_broadcast, c.manage, y.crm_point, c.manage, y.crm_credit, c.manage, y.crm_experience, c.manage, y.crm_game, c.manage, y.crm_mission, c.manage, y.crm_loyaltyMember, c.manage, y.crm_loyaltySegment, c.manage, y.crm_loyaltyCard, c.manage, y.crm_referral, c.manage, y.crm_store, c.manage, y.crm_transaction, c.manage, y.crm_setting, c.manage, y.crm_bin, c.manage, y.crm_marketingMaterial, c.manage, y.payment_payoutAccount, c.manage, y.payment_paymentOnboarding, c.manage, y.payment_transactions, c.manage, y.payment_settlements, c.manage, y.hrm_teamMember, c.manage, y.hrm_employee, c.manage, y.hrm_auditLog, c.manage, y.report_createReport, c.manage, y.report_accessOverview, c.manage, y.report_accessInsight, c.manage, y.report_accessSetting, c.manage, y.report_accessIntegration, c.manage, y.report_reports_allDefaultReports, c.manage, c.read, c.create, y.report_reports_allCustomReports, c.manage, c.read, c.create, c.update, c.delete, y.mdm_deviceManagement, c.manage, y.mdm_createDevice, c.manage, y.mdm_deviceBinding, c.manage, y.mdm_customerDisplay, c.manage, c.read, c.update, y.kiosk_deviceManagement, c.manage, y.kiosk_deviceBinding, c.manage, y.eInvoice_management, c.manage, y.eInvoice_integration, c.manage, y.operation_receipt, c.manage, y.operation_tableManagement, c.manage, y.operation_offlinePayment, c.manage, y.operation_reasonTemplate, c.manage, y.operation_discountRule, c.manage, y.operation_serviceCharge, c.manage, y.operation_kitchenPrintTemplate, c.manage, y.operation_orderSetting, c.manage, y.miniProgram_profile, c.manage, y.miniProgram_brandkit, c.manage, y.miniProgram_template, c.manage, y.miniProgram_publish, c.manage, y.miniProgram_assets, c.manage, y.miniProgram_nativeCredentials, c.manage;
|
|
11695
|
-
var
|
|
11821
|
+
var me = /* @__PURE__ */ ((e) => (e.crm = "crm", e.crm_user = "crm::user", e.crm_segmentation = "crm::segmentation", e.crm_queue = "crm::queue", e.crm_transaction = "crm::transaction", e.crm_store = "crm::store", e.crm_location = "crm::location", e.crm_effect = "crm::effect", e.crm_setting = "crm::setting", e.crm_reward = "crm::reward", e.crm_campaign = "crm::campaign", e.crm_referral = "crm::referral", e.crm_marketingMaterial = "crm::marketingMaterial", e.crm_voucher = "crm::voucher", e.crm_membership = "crm::membership", e.crm_analytic = "crm::analytic", e.crm_tier = "crm::tier", e.crm_title = "crm::title", e.crm_broadcast = "crm::broadcast", e.crm_point = "crm::point", e.crm_credit = "crm::credit", e.crm_experience = "crm::experience", e.crm_game = "crm::game", e.crm_mission = "crm::mission", e.crm_loyaltyMember = "crm::loyaltyMember", e.crm_loyaltySegment = "crm::loyaltySegment", e.crm_loyaltyCard = "crm::loyaltyCard", e.crm_bin = "crm::bin", e))(me || {});
|
|
11696
11822
|
const pe = [
|
|
11697
11823
|
{
|
|
11698
11824
|
label: "CRM",
|
|
11699
|
-
subject:
|
|
11825
|
+
subject: me.crm,
|
|
11700
11826
|
actions: [c.read]
|
|
11701
11827
|
}
|
|
11702
11828
|
], Oe = (...e) => e.flat(), _c = [
|
|
11703
11829
|
...pe,
|
|
11704
11830
|
{
|
|
11705
11831
|
label: "User",
|
|
11706
|
-
subject:
|
|
11832
|
+
subject: me.crm_user,
|
|
11707
11833
|
actions: [
|
|
11708
11834
|
c.read,
|
|
11709
11835
|
c.create,
|
|
@@ -11715,7 +11841,7 @@ const pe = [
|
|
|
11715
11841
|
...pe,
|
|
11716
11842
|
{
|
|
11717
11843
|
label: "Segmentation",
|
|
11718
|
-
subject:
|
|
11844
|
+
subject: me.crm_segmentation,
|
|
11719
11845
|
actions: [
|
|
11720
11846
|
c.read,
|
|
11721
11847
|
c.create,
|
|
@@ -11727,7 +11853,7 @@ const pe = [
|
|
|
11727
11853
|
...pe,
|
|
11728
11854
|
{
|
|
11729
11855
|
label: "Transaction",
|
|
11730
|
-
subject:
|
|
11856
|
+
subject: me.crm_transaction,
|
|
11731
11857
|
actions: [
|
|
11732
11858
|
c.read,
|
|
11733
11859
|
c.create,
|
|
@@ -11739,7 +11865,7 @@ const pe = [
|
|
|
11739
11865
|
...pe,
|
|
11740
11866
|
{
|
|
11741
11867
|
label: "Store",
|
|
11742
|
-
subject:
|
|
11868
|
+
subject: me.crm_store,
|
|
11743
11869
|
actions: [
|
|
11744
11870
|
c.read,
|
|
11745
11871
|
c.create,
|
|
@@ -11747,11 +11873,11 @@ const pe = [
|
|
|
11747
11873
|
c.delete
|
|
11748
11874
|
]
|
|
11749
11875
|
}
|
|
11750
|
-
],
|
|
11876
|
+
], em = [
|
|
11751
11877
|
...pe,
|
|
11752
11878
|
{
|
|
11753
11879
|
label: "Location",
|
|
11754
|
-
subject:
|
|
11880
|
+
subject: me.crm_location,
|
|
11755
11881
|
actions: [
|
|
11756
11882
|
c.read,
|
|
11757
11883
|
c.create,
|
|
@@ -11759,11 +11885,11 @@ const pe = [
|
|
|
11759
11885
|
c.delete
|
|
11760
11886
|
]
|
|
11761
11887
|
}
|
|
11762
|
-
],
|
|
11888
|
+
], tm = [
|
|
11763
11889
|
...pe,
|
|
11764
11890
|
{
|
|
11765
11891
|
label: "Effect",
|
|
11766
|
-
subject:
|
|
11892
|
+
subject: me.crm_effect,
|
|
11767
11893
|
actions: [
|
|
11768
11894
|
c.read,
|
|
11769
11895
|
c.create,
|
|
@@ -11771,18 +11897,18 @@ const pe = [
|
|
|
11771
11897
|
c.delete
|
|
11772
11898
|
]
|
|
11773
11899
|
}
|
|
11774
|
-
],
|
|
11900
|
+
], om = [
|
|
11775
11901
|
...pe,
|
|
11776
11902
|
{
|
|
11777
11903
|
label: "Setting",
|
|
11778
|
-
subject:
|
|
11904
|
+
subject: me.crm_setting,
|
|
11779
11905
|
actions: [c.read, c.update]
|
|
11780
11906
|
}
|
|
11781
|
-
],
|
|
11907
|
+
], rm = [
|
|
11782
11908
|
...pe,
|
|
11783
11909
|
{
|
|
11784
11910
|
label: "Reward",
|
|
11785
|
-
subject:
|
|
11911
|
+
subject: me.crm_reward,
|
|
11786
11912
|
actions: [
|
|
11787
11913
|
c.read,
|
|
11788
11914
|
c.create,
|
|
@@ -11794,7 +11920,7 @@ const pe = [
|
|
|
11794
11920
|
...pe,
|
|
11795
11921
|
{
|
|
11796
11922
|
label: "Campaign",
|
|
11797
|
-
subject:
|
|
11923
|
+
subject: me.crm_campaign,
|
|
11798
11924
|
actions: [
|
|
11799
11925
|
c.read,
|
|
11800
11926
|
c.create,
|
|
@@ -11806,7 +11932,7 @@ const pe = [
|
|
|
11806
11932
|
...pe,
|
|
11807
11933
|
{
|
|
11808
11934
|
label: "Referral",
|
|
11809
|
-
subject:
|
|
11935
|
+
subject: me.crm_referral,
|
|
11810
11936
|
actions: [
|
|
11811
11937
|
c.read,
|
|
11812
11938
|
c.create,
|
|
@@ -11818,7 +11944,7 @@ const pe = [
|
|
|
11818
11944
|
...pe,
|
|
11819
11945
|
{
|
|
11820
11946
|
label: "Marketing Material",
|
|
11821
|
-
subject:
|
|
11947
|
+
subject: me.crm_marketingMaterial,
|
|
11822
11948
|
actions: [
|
|
11823
11949
|
c.read,
|
|
11824
11950
|
c.create,
|
|
@@ -11830,14 +11956,14 @@ const pe = [
|
|
|
11830
11956
|
...pe,
|
|
11831
11957
|
{
|
|
11832
11958
|
label: "Analytic",
|
|
11833
|
-
subject:
|
|
11959
|
+
subject: me.crm_analytic,
|
|
11834
11960
|
actions: [c.read]
|
|
11835
11961
|
}
|
|
11836
|
-
],
|
|
11962
|
+
], nm = [
|
|
11837
11963
|
...pe,
|
|
11838
11964
|
{
|
|
11839
11965
|
label: "Tier",
|
|
11840
|
-
subject:
|
|
11966
|
+
subject: me.crm_tier,
|
|
11841
11967
|
actions: [
|
|
11842
11968
|
c.read,
|
|
11843
11969
|
c.create,
|
|
@@ -11845,11 +11971,11 @@ const pe = [
|
|
|
11845
11971
|
c.delete
|
|
11846
11972
|
]
|
|
11847
11973
|
}
|
|
11848
|
-
],
|
|
11974
|
+
], am = [
|
|
11849
11975
|
...pe,
|
|
11850
11976
|
{
|
|
11851
11977
|
label: "Title",
|
|
11852
|
-
subject:
|
|
11978
|
+
subject: me.crm_title,
|
|
11853
11979
|
actions: [
|
|
11854
11980
|
c.read,
|
|
11855
11981
|
c.create,
|
|
@@ -11857,11 +11983,11 @@ const pe = [
|
|
|
11857
11983
|
c.delete
|
|
11858
11984
|
]
|
|
11859
11985
|
}
|
|
11860
|
-
],
|
|
11986
|
+
], im = [
|
|
11861
11987
|
...pe,
|
|
11862
11988
|
{
|
|
11863
11989
|
label: "Broadcast",
|
|
11864
|
-
subject:
|
|
11990
|
+
subject: me.crm_broadcast,
|
|
11865
11991
|
actions: [
|
|
11866
11992
|
c.read,
|
|
11867
11993
|
c.create,
|
|
@@ -11869,11 +11995,11 @@ const pe = [
|
|
|
11869
11995
|
c.delete
|
|
11870
11996
|
]
|
|
11871
11997
|
}
|
|
11872
|
-
],
|
|
11998
|
+
], sm = [
|
|
11873
11999
|
...pe,
|
|
11874
12000
|
{
|
|
11875
12001
|
label: "Point",
|
|
11876
|
-
subject:
|
|
12002
|
+
subject: me.crm_point,
|
|
11877
12003
|
actions: [
|
|
11878
12004
|
c.read,
|
|
11879
12005
|
c.create,
|
|
@@ -11881,11 +12007,11 @@ const pe = [
|
|
|
11881
12007
|
c.delete
|
|
11882
12008
|
]
|
|
11883
12009
|
}
|
|
11884
|
-
],
|
|
12010
|
+
], cm = [
|
|
11885
12011
|
...pe,
|
|
11886
12012
|
{
|
|
11887
12013
|
label: "Credit",
|
|
11888
|
-
subject:
|
|
12014
|
+
subject: me.crm_credit,
|
|
11889
12015
|
actions: [
|
|
11890
12016
|
c.read,
|
|
11891
12017
|
c.create,
|
|
@@ -11893,11 +12019,11 @@ const pe = [
|
|
|
11893
12019
|
c.delete
|
|
11894
12020
|
]
|
|
11895
12021
|
}
|
|
11896
|
-
],
|
|
12022
|
+
], mm = [
|
|
11897
12023
|
...pe,
|
|
11898
12024
|
{
|
|
11899
12025
|
label: "Experience",
|
|
11900
|
-
subject:
|
|
12026
|
+
subject: me.crm_experience,
|
|
11901
12027
|
actions: [
|
|
11902
12028
|
c.read,
|
|
11903
12029
|
c.create,
|
|
@@ -11905,11 +12031,11 @@ const pe = [
|
|
|
11905
12031
|
c.delete
|
|
11906
12032
|
]
|
|
11907
12033
|
}
|
|
11908
|
-
],
|
|
12034
|
+
], Am = [
|
|
11909
12035
|
...pe,
|
|
11910
12036
|
{
|
|
11911
12037
|
label: "Game",
|
|
11912
|
-
subject:
|
|
12038
|
+
subject: me.crm_game,
|
|
11913
12039
|
actions: [
|
|
11914
12040
|
c.read,
|
|
11915
12041
|
c.create,
|
|
@@ -11917,11 +12043,11 @@ const pe = [
|
|
|
11917
12043
|
c.delete
|
|
11918
12044
|
]
|
|
11919
12045
|
}
|
|
11920
|
-
],
|
|
12046
|
+
], lm = [
|
|
11921
12047
|
...pe,
|
|
11922
12048
|
{
|
|
11923
12049
|
label: "Mission",
|
|
11924
|
-
subject:
|
|
12050
|
+
subject: me.crm_mission,
|
|
11925
12051
|
actions: [
|
|
11926
12052
|
c.read,
|
|
11927
12053
|
c.create,
|
|
@@ -11933,7 +12059,7 @@ const pe = [
|
|
|
11933
12059
|
...pe,
|
|
11934
12060
|
{
|
|
11935
12061
|
label: "Loyalty Member",
|
|
11936
|
-
subject:
|
|
12062
|
+
subject: me.crm_loyaltyMember,
|
|
11937
12063
|
actions: [
|
|
11938
12064
|
c.read,
|
|
11939
12065
|
c.create,
|
|
@@ -11945,7 +12071,7 @@ const pe = [
|
|
|
11945
12071
|
...pe,
|
|
11946
12072
|
{
|
|
11947
12073
|
label: "Loyalty Segment",
|
|
11948
|
-
subject:
|
|
12074
|
+
subject: me.crm_loyaltySegment,
|
|
11949
12075
|
actions: [
|
|
11950
12076
|
c.read,
|
|
11951
12077
|
c.create,
|
|
@@ -11957,7 +12083,7 @@ const pe = [
|
|
|
11957
12083
|
...pe,
|
|
11958
12084
|
{
|
|
11959
12085
|
label: "Loyalty Card",
|
|
11960
|
-
subject:
|
|
12086
|
+
subject: me.crm_loyaltyCard,
|
|
11961
12087
|
actions: [
|
|
11962
12088
|
c.read,
|
|
11963
12089
|
c.create,
|
|
@@ -11969,44 +12095,44 @@ const pe = [
|
|
|
11969
12095
|
...pe,
|
|
11970
12096
|
{
|
|
11971
12097
|
label: "Bin",
|
|
11972
|
-
subject:
|
|
12098
|
+
subject: me.crm_bin,
|
|
11973
12099
|
actions: [c.read, c.update, c.delete]
|
|
11974
12100
|
}
|
|
11975
|
-
],
|
|
12101
|
+
], ma = Oe(
|
|
11976
12102
|
Ve,
|
|
11977
|
-
|
|
11978
|
-
),
|
|
12103
|
+
nm
|
|
12104
|
+
), Aa = Oe(
|
|
11979
12105
|
Ve,
|
|
11980
|
-
|
|
12106
|
+
am
|
|
11981
12107
|
), la = Oe(
|
|
11982
12108
|
Ve,
|
|
11983
|
-
|
|
12109
|
+
im
|
|
11984
12110
|
), da = Oe(
|
|
11985
12111
|
Ve,
|
|
11986
|
-
|
|
12112
|
+
sm
|
|
11987
12113
|
), ua = Oe(
|
|
11988
12114
|
Ve,
|
|
11989
|
-
|
|
12115
|
+
cm
|
|
11990
12116
|
), pa = Oe(
|
|
11991
12117
|
Ve,
|
|
11992
|
-
|
|
12118
|
+
mm
|
|
11993
12119
|
), fa = Oe(
|
|
11994
12120
|
Ve,
|
|
11995
|
-
|
|
12121
|
+
Am
|
|
11996
12122
|
), ga = Oe(
|
|
11997
12123
|
Ve,
|
|
11998
|
-
|
|
11999
|
-
),
|
|
12124
|
+
lm
|
|
12125
|
+
), dm = Oe(
|
|
12000
12126
|
Ve,
|
|
12001
12127
|
oa
|
|
12002
12128
|
), ya = Oe(
|
|
12003
12129
|
Ve,
|
|
12004
|
-
|
|
12005
|
-
),
|
|
12130
|
+
om
|
|
12131
|
+
), um = [
|
|
12006
12132
|
...pe,
|
|
12007
12133
|
{
|
|
12008
12134
|
label: "Voucher",
|
|
12009
|
-
subject:
|
|
12135
|
+
subject: me.crm_voucher,
|
|
12010
12136
|
actions: [
|
|
12011
12137
|
c.read,
|
|
12012
12138
|
c.create,
|
|
@@ -12014,11 +12140,11 @@ const pe = [
|
|
|
12014
12140
|
c.delete
|
|
12015
12141
|
]
|
|
12016
12142
|
}
|
|
12017
|
-
],
|
|
12143
|
+
], pm = [
|
|
12018
12144
|
...pe,
|
|
12019
12145
|
{
|
|
12020
12146
|
label: "Membership",
|
|
12021
|
-
subject:
|
|
12147
|
+
subject: me.crm_membership,
|
|
12022
12148
|
actions: [
|
|
12023
12149
|
c.read,
|
|
12024
12150
|
c.create,
|
|
@@ -12026,18 +12152,18 @@ const pe = [
|
|
|
12026
12152
|
c.delete
|
|
12027
12153
|
]
|
|
12028
12154
|
}
|
|
12029
|
-
],
|
|
12155
|
+
], fm = Oe(
|
|
12030
12156
|
_c,
|
|
12031
12157
|
$c,
|
|
12032
12158
|
ea,
|
|
12033
12159
|
ta,
|
|
12034
|
-
|
|
12035
|
-
|
|
12160
|
+
em,
|
|
12161
|
+
tm,
|
|
12036
12162
|
ya,
|
|
12037
|
-
|
|
12163
|
+
rm,
|
|
12038
12164
|
na,
|
|
12039
|
-
Aa,
|
|
12040
12165
|
ma,
|
|
12166
|
+
Aa,
|
|
12041
12167
|
la,
|
|
12042
12168
|
da,
|
|
12043
12169
|
ua,
|
|
@@ -12048,33 +12174,33 @@ const pe = [
|
|
|
12048
12174
|
ia,
|
|
12049
12175
|
sa,
|
|
12050
12176
|
ca
|
|
12051
|
-
),
|
|
12177
|
+
), gm = Oe(
|
|
12052
12178
|
Ve,
|
|
12053
12179
|
oa,
|
|
12054
12180
|
ra
|
|
12055
|
-
),
|
|
12181
|
+
), ym = Oe(
|
|
12056
12182
|
Ve,
|
|
12057
|
-
|
|
12058
|
-
),
|
|
12183
|
+
um
|
|
12184
|
+
), vm = Oe(pm), hm = {
|
|
12059
12185
|
[`set_${y.crm}`]: {
|
|
12060
12186
|
key: "sys:crm:access",
|
|
12061
12187
|
name: "CRM Access",
|
|
12062
|
-
permissions:
|
|
12188
|
+
permissions: fm
|
|
12063
12189
|
},
|
|
12064
12190
|
[`set_${y.crm_promotion}`]: {
|
|
12065
12191
|
key: "sys:crm:promotion",
|
|
12066
12192
|
name: "CRM Promotion",
|
|
12067
|
-
permissions:
|
|
12193
|
+
permissions: gm
|
|
12068
12194
|
},
|
|
12069
12195
|
[`set_${y.crm_voucher}`]: {
|
|
12070
12196
|
key: "sys:crm:voucher",
|
|
12071
12197
|
name: "CRM Voucher",
|
|
12072
|
-
permissions:
|
|
12198
|
+
permissions: ym
|
|
12073
12199
|
},
|
|
12074
12200
|
[`set_${y.crm_membership}`]: {
|
|
12075
12201
|
key: "sys:crm:membership",
|
|
12076
12202
|
name: "CRM Membership",
|
|
12077
|
-
permissions:
|
|
12203
|
+
permissions: vm
|
|
12078
12204
|
},
|
|
12079
12205
|
[`set_${y.crm_analytic}`]: {
|
|
12080
12206
|
key: "sys:crm:analytic",
|
|
@@ -12084,12 +12210,12 @@ const pe = [
|
|
|
12084
12210
|
[`set_${y.crm_tier}`]: {
|
|
12085
12211
|
key: "sys:crm:tier",
|
|
12086
12212
|
name: "CRM Tier",
|
|
12087
|
-
permissions:
|
|
12213
|
+
permissions: ma
|
|
12088
12214
|
},
|
|
12089
12215
|
[`set_${y.crm_title}`]: {
|
|
12090
12216
|
key: "sys:crm:title",
|
|
12091
12217
|
name: "CRM Title",
|
|
12092
|
-
permissions:
|
|
12218
|
+
permissions: Aa
|
|
12093
12219
|
},
|
|
12094
12220
|
[`set_${y.crm_broadcast}`]: {
|
|
12095
12221
|
key: "sys:crm:broadcast",
|
|
@@ -12139,7 +12265,7 @@ const pe = [
|
|
|
12139
12265
|
[`set_${y.crm_referral}`]: {
|
|
12140
12266
|
key: "sys:crm:referral",
|
|
12141
12267
|
name: "CRM Referral",
|
|
12142
|
-
permissions:
|
|
12268
|
+
permissions: dm
|
|
12143
12269
|
},
|
|
12144
12270
|
[`set_${y.crm_store}`]: {
|
|
12145
12271
|
key: "sys:crm:store",
|
|
@@ -12196,7 +12322,7 @@ const xe = [
|
|
|
12196
12322
|
subject: J.inventory_unitCostHistory,
|
|
12197
12323
|
actions: [c.read]
|
|
12198
12324
|
}
|
|
12199
|
-
],
|
|
12325
|
+
], wm = [
|
|
12200
12326
|
...xe,
|
|
12201
12327
|
{
|
|
12202
12328
|
label: "Stock Adjustment",
|
|
@@ -12295,7 +12421,7 @@ const Xr = [
|
|
|
12295
12421
|
...wa,
|
|
12296
12422
|
...Fa
|
|
12297
12423
|
];
|
|
12298
|
-
const
|
|
12424
|
+
const Fm = [
|
|
12299
12425
|
{
|
|
12300
12426
|
label: "Inventory",
|
|
12301
12427
|
subject: J.inventory,
|
|
@@ -12316,19 +12442,19 @@ const FA = [
|
|
|
12316
12442
|
subject: J.inventory_closingTemplate,
|
|
12317
12443
|
actions: [c.read, c.update]
|
|
12318
12444
|
}
|
|
12319
|
-
],
|
|
12445
|
+
], bm = [
|
|
12320
12446
|
{
|
|
12321
12447
|
label: "Inventory",
|
|
12322
12448
|
subject: J.inventory,
|
|
12323
12449
|
actions: [c.read, c.update]
|
|
12324
12450
|
}
|
|
12325
|
-
],
|
|
12451
|
+
], Cm = [
|
|
12326
12452
|
{
|
|
12327
12453
|
label: "Inventory",
|
|
12328
12454
|
subject: J.inventory,
|
|
12329
12455
|
actions: [c.read, c.update]
|
|
12330
12456
|
}
|
|
12331
|
-
],
|
|
12457
|
+
], Bm = [
|
|
12332
12458
|
{
|
|
12333
12459
|
label: "Inventory",
|
|
12334
12460
|
subject: J.inventory,
|
|
@@ -12435,7 +12561,7 @@ const FA = [
|
|
|
12435
12561
|
subject: J.inventory_shipment,
|
|
12436
12562
|
actions: [c.read, c.update]
|
|
12437
12563
|
}
|
|
12438
|
-
],
|
|
12564
|
+
], Dm = [
|
|
12439
12565
|
...xe,
|
|
12440
12566
|
{
|
|
12441
12567
|
label: "Order Draft Approval",
|
|
@@ -12449,7 +12575,7 @@ const FA = [
|
|
|
12449
12575
|
...Ba,
|
|
12450
12576
|
...Da
|
|
12451
12577
|
];
|
|
12452
|
-
const
|
|
12578
|
+
const Rm = [
|
|
12453
12579
|
...xe,
|
|
12454
12580
|
{
|
|
12455
12581
|
label: "Supplier",
|
|
@@ -12466,7 +12592,7 @@ const RA = [
|
|
|
12466
12592
|
subject: J.inventory_orderTemplate,
|
|
12467
12593
|
actions: [c.read, c.update]
|
|
12468
12594
|
}
|
|
12469
|
-
],
|
|
12595
|
+
], Um = [
|
|
12470
12596
|
...xe,
|
|
12471
12597
|
{
|
|
12472
12598
|
label: "Warehouse",
|
|
@@ -12478,20 +12604,20 @@ const RA = [
|
|
|
12478
12604
|
c.delete
|
|
12479
12605
|
]
|
|
12480
12606
|
}
|
|
12481
|
-
],
|
|
12607
|
+
], Pm = [
|
|
12482
12608
|
{
|
|
12483
12609
|
label: "Inventory",
|
|
12484
12610
|
subject: J.inventory,
|
|
12485
12611
|
actions: [c.read, c.update]
|
|
12486
12612
|
}
|
|
12487
|
-
],
|
|
12613
|
+
], Km = [
|
|
12488
12614
|
...xe,
|
|
12489
12615
|
{
|
|
12490
12616
|
label: "Inventory",
|
|
12491
12617
|
subject: J.inventory,
|
|
12492
12618
|
actions: [c.update]
|
|
12493
12619
|
}
|
|
12494
|
-
],
|
|
12620
|
+
], xm = [
|
|
12495
12621
|
...xe,
|
|
12496
12622
|
{
|
|
12497
12623
|
label: "Integration",
|
|
@@ -12504,7 +12630,7 @@ const RA = [
|
|
|
12504
12630
|
...Or,
|
|
12505
12631
|
...Xr
|
|
12506
12632
|
];
|
|
12507
|
-
const
|
|
12633
|
+
const Em = {
|
|
12508
12634
|
[`set_${y.inventory_stockBalance}`]: {
|
|
12509
12635
|
key: "sys:inventory:stock_balance",
|
|
12510
12636
|
name: "Stock Balance",
|
|
@@ -12513,7 +12639,7 @@ const EA = {
|
|
|
12513
12639
|
[`set_${y.inventory_stockAdjustment}`]: {
|
|
12514
12640
|
key: "sys:inventory:stock_adjustment",
|
|
12515
12641
|
name: "Stock Adjustment",
|
|
12516
|
-
permissions:
|
|
12642
|
+
permissions: wm
|
|
12517
12643
|
},
|
|
12518
12644
|
[`set_${y.inventory_unitCostHistory}`]: {
|
|
12519
12645
|
key: "sys:inventory:unit_cost_history",
|
|
@@ -12543,22 +12669,22 @@ const EA = {
|
|
|
12543
12669
|
[`set_${y.inventory_ingredient}`]: {
|
|
12544
12670
|
key: "sys:inventory:ingredient",
|
|
12545
12671
|
name: "Ingredient",
|
|
12546
|
-
permissions:
|
|
12672
|
+
permissions: Fm
|
|
12547
12673
|
},
|
|
12548
12674
|
[`set_${y.inventory_ingredientGroup}`]: {
|
|
12549
12675
|
key: "sys:inventory:ingredient_group",
|
|
12550
12676
|
name: "Ingredient Group",
|
|
12551
|
-
permissions:
|
|
12677
|
+
permissions: bm
|
|
12552
12678
|
},
|
|
12553
12679
|
[`set_${y.inventory_recipe}`]: {
|
|
12554
12680
|
key: "sys:inventory:recipe",
|
|
12555
12681
|
name: "Recipe",
|
|
12556
|
-
permissions:
|
|
12682
|
+
permissions: Cm
|
|
12557
12683
|
},
|
|
12558
12684
|
[`set_${y.inventory_unit}`]: {
|
|
12559
12685
|
key: "sys:inventory:unit",
|
|
12560
12686
|
name: "Unit",
|
|
12561
|
-
permissions:
|
|
12687
|
+
permissions: Bm
|
|
12562
12688
|
},
|
|
12563
12689
|
[`set_${y.inventory_purchaseTransfer}`]: {
|
|
12564
12690
|
key: "sys:inventory:purchase_transfer",
|
|
@@ -12568,7 +12694,7 @@ const EA = {
|
|
|
12568
12694
|
[`set_${y.inventory_orderDraftApproval}`]: {
|
|
12569
12695
|
key: "sys:inventory:order_draft_approval",
|
|
12570
12696
|
name: "Order Draft Approval",
|
|
12571
|
-
permissions:
|
|
12697
|
+
permissions: Dm
|
|
12572
12698
|
},
|
|
12573
12699
|
[`set_${y.inventory_transferOut}`]: {
|
|
12574
12700
|
key: "sys:inventory:transfer_out",
|
|
@@ -12588,31 +12714,31 @@ const EA = {
|
|
|
12588
12714
|
[`set_${y.inventory_supplier}`]: {
|
|
12589
12715
|
key: "sys:inventory:supplier",
|
|
12590
12716
|
name: "Supplier",
|
|
12591
|
-
permissions:
|
|
12717
|
+
permissions: Rm
|
|
12592
12718
|
},
|
|
12593
12719
|
[`set_${y.inventory_warehouse}`]: {
|
|
12594
12720
|
key: "sys:inventory:warehouse",
|
|
12595
12721
|
name: "Warehouse",
|
|
12596
|
-
permissions:
|
|
12722
|
+
permissions: Um
|
|
12597
12723
|
},
|
|
12598
12724
|
[`set_${y.inventory_publish}`]: {
|
|
12599
12725
|
key: "sys:inventory:publish",
|
|
12600
12726
|
name: "Publish",
|
|
12601
|
-
permissions:
|
|
12727
|
+
permissions: Pm
|
|
12602
12728
|
},
|
|
12603
12729
|
[`set_${y.inventory_import}`]: {
|
|
12604
12730
|
key: "sys:inventory:import",
|
|
12605
12731
|
name: "Import",
|
|
12606
|
-
permissions:
|
|
12732
|
+
permissions: Km
|
|
12607
12733
|
},
|
|
12608
12734
|
[`set_${y.inventory_integration}`]: {
|
|
12609
12735
|
key: "sys:inventory:integration",
|
|
12610
12736
|
name: "Integration",
|
|
12611
|
-
permissions:
|
|
12737
|
+
permissions: xm
|
|
12612
12738
|
}
|
|
12613
12739
|
};
|
|
12614
12740
|
var Tt = /* @__PURE__ */ ((e) => (e.hrm_posRole = "hrm::posRole", e.hrm_portalUsers = "hrm::portalUsers", e))(Tt || {});
|
|
12615
|
-
const
|
|
12741
|
+
const Tm = {
|
|
12616
12742
|
/**
|
|
12617
12743
|
* Triggered by: hrm_teamMember:manage (portal toggle)
|
|
12618
12744
|
* Injects: team member list read + pos role read
|
|
@@ -12683,7 +12809,7 @@ const TA = {
|
|
|
12683
12809
|
}
|
|
12684
12810
|
};
|
|
12685
12811
|
var Ra = /* @__PURE__ */ ((e) => (e.payment_terminals = "payment::terminals", e))(Ra || {});
|
|
12686
|
-
const
|
|
12812
|
+
const mn = [
|
|
12687
12813
|
{
|
|
12688
12814
|
label: "Payout Account",
|
|
12689
12815
|
subject: y.payment_payoutAccount,
|
|
@@ -12694,25 +12820,25 @@ const An = [
|
|
|
12694
12820
|
subject: Ra.payment_terminals,
|
|
12695
12821
|
actions: [c.read]
|
|
12696
12822
|
}
|
|
12697
|
-
],
|
|
12823
|
+
], Hm = {
|
|
12698
12824
|
[`set_${y.payment_transactions}`]: {
|
|
12699
12825
|
key: "sys:payment:transactions",
|
|
12700
12826
|
name: "Payment Transactions Access",
|
|
12701
|
-
permissions:
|
|
12827
|
+
permissions: mn
|
|
12702
12828
|
},
|
|
12703
12829
|
[`set_${y.payment_settlements}`]: {
|
|
12704
12830
|
key: "sys:payment:settlements",
|
|
12705
12831
|
name: "Payment Settlements Access",
|
|
12706
|
-
permissions:
|
|
12832
|
+
permissions: mn
|
|
12707
12833
|
}
|
|
12708
|
-
},
|
|
12709
|
-
...
|
|
12710
|
-
...
|
|
12711
|
-
...
|
|
12712
|
-
...
|
|
12834
|
+
}, zm = {
|
|
12835
|
+
...hm,
|
|
12836
|
+
...Em,
|
|
12837
|
+
...Tm,
|
|
12838
|
+
...Hm
|
|
12713
12839
|
};
|
|
12714
12840
|
Object.values(
|
|
12715
|
-
|
|
12841
|
+
zm
|
|
12716
12842
|
).flatMap((e) => e.permissions ?? []).reduce(
|
|
12717
12843
|
(e, t) => {
|
|
12718
12844
|
var o;
|
|
@@ -12720,7 +12846,7 @@ Object.values(
|
|
|
12720
12846
|
},
|
|
12721
12847
|
{}
|
|
12722
12848
|
);
|
|
12723
|
-
const
|
|
12849
|
+
const Im = "mf-reportquery-store", se = Jt(Im, () => {
|
|
12724
12850
|
const e = ue(""), t = ue(""), o = ue("MY");
|
|
12725
12851
|
return { businessId: e, token: t, country: o };
|
|
12726
12852
|
});
|
|
@@ -12729,28 +12855,28 @@ function Ua(e, t) {
|
|
|
12729
12855
|
return e.apply(t, arguments);
|
|
12730
12856
|
};
|
|
12731
12857
|
}
|
|
12732
|
-
const { toString:
|
|
12733
|
-
const o =
|
|
12858
|
+
const { toString: jm } = Object.prototype, { getPrototypeOf: Mr } = Object, To = /* @__PURE__ */ ((e) => (t) => {
|
|
12859
|
+
const o = jm.call(t);
|
|
12734
12860
|
return e[o] || (e[o] = o.slice(8, -1).toLowerCase());
|
|
12735
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
12736
|
-
function
|
|
12861
|
+
})(/* @__PURE__ */ Object.create(null)), Ge = (e) => (e = e.toLowerCase(), (t) => To(t) === e), Ho = (e) => (t) => typeof t === e, { isArray: jt } = Array, Zt = Ho("undefined");
|
|
12862
|
+
function Om(e) {
|
|
12737
12863
|
return e !== null && !Zt(e) && e.constructor !== null && !Zt(e.constructor) && Me(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
12738
12864
|
}
|
|
12739
|
-
const Pa =
|
|
12740
|
-
function
|
|
12865
|
+
const Pa = Ge("ArrayBuffer");
|
|
12866
|
+
function Xm(e) {
|
|
12741
12867
|
let t;
|
|
12742
12868
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Pa(e.buffer), t;
|
|
12743
12869
|
}
|
|
12744
|
-
const
|
|
12870
|
+
const Mm = Ho("string"), Me = Ho("function"), Ka = Ho("number"), zo = (e) => e !== null && typeof e == "object", Sm = (e) => e === !0 || e === !1, mo = (e) => {
|
|
12745
12871
|
if (To(e) !== "object")
|
|
12746
12872
|
return !1;
|
|
12747
12873
|
const t = Mr(e);
|
|
12748
12874
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
12749
|
-
},
|
|
12875
|
+
}, Vm = Ge("Date"), Qm = Ge("File"), Nm = Ge("Blob"), Gm = Ge("FileList"), qm = (e) => zo(e) && Me(e.pipe), km = (e) => {
|
|
12750
12876
|
let t;
|
|
12751
12877
|
return e && (typeof FormData == "function" && e instanceof FormData || Me(e.append) && ((t = To(e)) === "formdata" || // detect form-data instance
|
|
12752
12878
|
t === "object" && Me(e.toString) && e.toString() === "[object FormData]"));
|
|
12753
|
-
},
|
|
12879
|
+
}, Lm = Ge("URLSearchParams"), [Ym, Zm, Wm, Jm] = ["ReadableStream", "Request", "Response", "Headers"].map(Ge), _m = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
12754
12880
|
function _t(e, t, { allOwnKeys: o = !1 } = {}) {
|
|
12755
12881
|
if (e === null || typeof e > "u")
|
|
12756
12882
|
return;
|
|
@@ -12778,19 +12904,19 @@ const vt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
|
|
|
12778
12904
|
function Dr() {
|
|
12779
12905
|
const { caseless: e } = Ea(this) && this || {}, t = {}, o = (r, n) => {
|
|
12780
12906
|
const a = e && xa(t, n) || n;
|
|
12781
|
-
|
|
12907
|
+
mo(t[a]) && mo(r) ? t[a] = Dr(t[a], r) : mo(r) ? t[a] = Dr({}, r) : jt(r) ? t[a] = r.slice() : t[a] = r;
|
|
12782
12908
|
};
|
|
12783
12909
|
for (let r = 0, n = arguments.length; r < n; r++)
|
|
12784
12910
|
arguments[r] && _t(arguments[r], o);
|
|
12785
12911
|
return t;
|
|
12786
12912
|
}
|
|
12787
|
-
const $
|
|
12913
|
+
const $m = (e, t, o, { allOwnKeys: r } = {}) => (_t(t, (n, a) => {
|
|
12788
12914
|
o && Me(n) ? e[a] = Ua(n, o) : e[a] = n;
|
|
12789
|
-
}, { allOwnKeys: r }), e),
|
|
12915
|
+
}, { allOwnKeys: r }), e), eA = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), tA = (e, t, o, r) => {
|
|
12790
12916
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
12791
12917
|
value: t.prototype
|
|
12792
12918
|
}), o && Object.assign(e.prototype, o);
|
|
12793
|
-
},
|
|
12919
|
+
}, oA = (e, t, o, r) => {
|
|
12794
12920
|
let n, a, i;
|
|
12795
12921
|
const s = {};
|
|
12796
12922
|
if (t = t || {}, e == null) return t;
|
|
@@ -12800,11 +12926,11 @@ const $A = (e, t, o, { allOwnKeys: r } = {}) => (_t(t, (n, a) => {
|
|
|
12800
12926
|
e = o !== !1 && Mr(e);
|
|
12801
12927
|
} while (e && (!o || o(e, t)) && e !== Object.prototype);
|
|
12802
12928
|
return t;
|
|
12803
|
-
},
|
|
12929
|
+
}, rA = (e, t, o) => {
|
|
12804
12930
|
e = String(e), (o === void 0 || o > e.length) && (o = e.length), o -= t.length;
|
|
12805
12931
|
const r = e.indexOf(t, o);
|
|
12806
12932
|
return r !== -1 && r === o;
|
|
12807
|
-
},
|
|
12933
|
+
}, nA = (e) => {
|
|
12808
12934
|
if (!e) return null;
|
|
12809
12935
|
if (jt(e)) return e;
|
|
12810
12936
|
let t = e.length;
|
|
@@ -12813,31 +12939,31 @@ const $A = (e, t, o, { allOwnKeys: r } = {}) => (_t(t, (n, a) => {
|
|
|
12813
12939
|
for (; t-- > 0; )
|
|
12814
12940
|
o[t] = e[t];
|
|
12815
12941
|
return o;
|
|
12816
|
-
},
|
|
12942
|
+
}, aA = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Mr(Uint8Array)), iA = (e, t) => {
|
|
12817
12943
|
const r = (e && e[Symbol.iterator]).call(e);
|
|
12818
12944
|
let n;
|
|
12819
12945
|
for (; (n = r.next()) && !n.done; ) {
|
|
12820
12946
|
const a = n.value;
|
|
12821
12947
|
t.call(e, a[0], a[1]);
|
|
12822
12948
|
}
|
|
12823
|
-
},
|
|
12949
|
+
}, sA = (e, t) => {
|
|
12824
12950
|
let o;
|
|
12825
12951
|
const r = [];
|
|
12826
12952
|
for (; (o = e.exec(t)) !== null; )
|
|
12827
12953
|
r.push(o);
|
|
12828
12954
|
return r;
|
|
12829
|
-
},
|
|
12955
|
+
}, cA = Ge("HTMLFormElement"), mA = (e) => e.toLowerCase().replace(
|
|
12830
12956
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
12831
12957
|
function(o, r, n) {
|
|
12832
12958
|
return r.toUpperCase() + n;
|
|
12833
12959
|
}
|
|
12834
|
-
),
|
|
12960
|
+
), An = (({ hasOwnProperty: e }) => (t, o) => e.call(t, o))(Object.prototype), AA = Ge("RegExp"), Ta = (e, t) => {
|
|
12835
12961
|
const o = Object.getOwnPropertyDescriptors(e), r = {};
|
|
12836
12962
|
_t(o, (n, a) => {
|
|
12837
12963
|
let i;
|
|
12838
12964
|
(i = t(n, a, e)) !== !1 && (r[a] = i || n);
|
|
12839
12965
|
}), Object.defineProperties(e, r);
|
|
12840
|
-
},
|
|
12966
|
+
}, lA = (e) => {
|
|
12841
12967
|
Ta(e, (t, o) => {
|
|
12842
12968
|
if (Me(e) && ["arguments", "caller", "callee"].indexOf(o) !== -1)
|
|
12843
12969
|
return !1;
|
|
@@ -12852,29 +12978,29 @@ const $A = (e, t, o, { allOwnKeys: r } = {}) => (_t(t, (n, a) => {
|
|
|
12852
12978
|
});
|
|
12853
12979
|
}
|
|
12854
12980
|
});
|
|
12855
|
-
},
|
|
12981
|
+
}, dA = (e, t) => {
|
|
12856
12982
|
const o = {}, r = (n) => {
|
|
12857
12983
|
n.forEach((a) => {
|
|
12858
12984
|
o[a] = !0;
|
|
12859
12985
|
});
|
|
12860
12986
|
};
|
|
12861
12987
|
return jt(e) ? r(e) : r(String(e).split(t)), o;
|
|
12862
|
-
},
|
|
12863
|
-
},
|
|
12988
|
+
}, uA = () => {
|
|
12989
|
+
}, pA = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, cr = "abcdefghijklmnopqrstuvwxyz", ln = "0123456789", Ha = {
|
|
12864
12990
|
DIGIT: ln,
|
|
12865
12991
|
ALPHA: cr,
|
|
12866
12992
|
ALPHA_DIGIT: cr + cr.toUpperCase() + ln
|
|
12867
|
-
},
|
|
12993
|
+
}, fA = (e = 16, t = Ha.ALPHA_DIGIT) => {
|
|
12868
12994
|
let o = "";
|
|
12869
12995
|
const { length: r } = t;
|
|
12870
12996
|
for (; e--; )
|
|
12871
12997
|
o += t[Math.random() * r | 0];
|
|
12872
12998
|
return o;
|
|
12873
12999
|
};
|
|
12874
|
-
function
|
|
13000
|
+
function gA(e) {
|
|
12875
13001
|
return !!(e && Me(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
12876
13002
|
}
|
|
12877
|
-
const
|
|
13003
|
+
const yA = (e) => {
|
|
12878
13004
|
const t = new Array(10), o = (r, n) => {
|
|
12879
13005
|
if (zo(r)) {
|
|
12880
13006
|
if (t.indexOf(r) >= 0)
|
|
@@ -12891,72 +13017,72 @@ const ym = (e) => {
|
|
|
12891
13017
|
return r;
|
|
12892
13018
|
};
|
|
12893
13019
|
return o(e, 0);
|
|
12894
|
-
},
|
|
13020
|
+
}, vA = Ge("AsyncFunction"), hA = (e) => e && (zo(e) || Me(e)) && Me(e.then) && Me(e.catch), za = ((e, t) => e ? setImmediate : t ? ((o, r) => (vt.addEventListener("message", ({ source: n, data: a }) => {
|
|
12895
13021
|
n === vt && a === o && r.length && r.shift()();
|
|
12896
13022
|
}, !1), (n) => {
|
|
12897
13023
|
r.push(n), vt.postMessage(o, "*");
|
|
12898
13024
|
}))(`axios@${Math.random()}`, []) : (o) => setTimeout(o))(
|
|
12899
13025
|
typeof setImmediate == "function",
|
|
12900
13026
|
Me(vt.postMessage)
|
|
12901
|
-
),
|
|
13027
|
+
), wA = typeof queueMicrotask < "u" ? queueMicrotask.bind(vt) : typeof process < "u" && process.nextTick || za, b = {
|
|
12902
13028
|
isArray: jt,
|
|
12903
13029
|
isArrayBuffer: Pa,
|
|
12904
|
-
isBuffer:
|
|
12905
|
-
isFormData:
|
|
12906
|
-
isArrayBufferView:
|
|
12907
|
-
isString:
|
|
13030
|
+
isBuffer: Om,
|
|
13031
|
+
isFormData: km,
|
|
13032
|
+
isArrayBufferView: Xm,
|
|
13033
|
+
isString: Mm,
|
|
12908
13034
|
isNumber: Ka,
|
|
12909
|
-
isBoolean:
|
|
13035
|
+
isBoolean: Sm,
|
|
12910
13036
|
isObject: zo,
|
|
12911
|
-
isPlainObject:
|
|
12912
|
-
isReadableStream:
|
|
12913
|
-
isRequest:
|
|
12914
|
-
isResponse:
|
|
12915
|
-
isHeaders:
|
|
13037
|
+
isPlainObject: mo,
|
|
13038
|
+
isReadableStream: Ym,
|
|
13039
|
+
isRequest: Zm,
|
|
13040
|
+
isResponse: Wm,
|
|
13041
|
+
isHeaders: Jm,
|
|
12916
13042
|
isUndefined: Zt,
|
|
12917
|
-
isDate:
|
|
12918
|
-
isFile:
|
|
12919
|
-
isBlob:
|
|
12920
|
-
isRegExp:
|
|
13043
|
+
isDate: Vm,
|
|
13044
|
+
isFile: Qm,
|
|
13045
|
+
isBlob: Nm,
|
|
13046
|
+
isRegExp: AA,
|
|
12921
13047
|
isFunction: Me,
|
|
12922
|
-
isStream:
|
|
12923
|
-
isURLSearchParams:
|
|
12924
|
-
isTypedArray:
|
|
12925
|
-
isFileList:
|
|
13048
|
+
isStream: qm,
|
|
13049
|
+
isURLSearchParams: Lm,
|
|
13050
|
+
isTypedArray: aA,
|
|
13051
|
+
isFileList: Gm,
|
|
12926
13052
|
forEach: _t,
|
|
12927
13053
|
merge: Dr,
|
|
12928
|
-
extend: $
|
|
12929
|
-
trim:
|
|
12930
|
-
stripBOM:
|
|
12931
|
-
inherits:
|
|
12932
|
-
toFlatObject:
|
|
13054
|
+
extend: $m,
|
|
13055
|
+
trim: _m,
|
|
13056
|
+
stripBOM: eA,
|
|
13057
|
+
inherits: tA,
|
|
13058
|
+
toFlatObject: oA,
|
|
12933
13059
|
kindOf: To,
|
|
12934
|
-
kindOfTest:
|
|
12935
|
-
endsWith:
|
|
12936
|
-
toArray:
|
|
12937
|
-
forEachEntry:
|
|
12938
|
-
matchAll:
|
|
12939
|
-
isHTMLForm:
|
|
12940
|
-
hasOwnProperty:
|
|
12941
|
-
hasOwnProp:
|
|
13060
|
+
kindOfTest: Ge,
|
|
13061
|
+
endsWith: rA,
|
|
13062
|
+
toArray: nA,
|
|
13063
|
+
forEachEntry: iA,
|
|
13064
|
+
matchAll: sA,
|
|
13065
|
+
isHTMLForm: cA,
|
|
13066
|
+
hasOwnProperty: An,
|
|
13067
|
+
hasOwnProp: An,
|
|
12942
13068
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
12943
13069
|
reduceDescriptors: Ta,
|
|
12944
|
-
freezeMethods:
|
|
12945
|
-
toObjectSet:
|
|
12946
|
-
toCamelCase:
|
|
12947
|
-
noop:
|
|
12948
|
-
toFiniteNumber:
|
|
13070
|
+
freezeMethods: lA,
|
|
13071
|
+
toObjectSet: dA,
|
|
13072
|
+
toCamelCase: mA,
|
|
13073
|
+
noop: uA,
|
|
13074
|
+
toFiniteNumber: pA,
|
|
12949
13075
|
findKey: xa,
|
|
12950
13076
|
global: vt,
|
|
12951
13077
|
isContextDefined: Ea,
|
|
12952
13078
|
ALPHABET: Ha,
|
|
12953
|
-
generateString:
|
|
12954
|
-
isSpecCompliantForm:
|
|
12955
|
-
toJSONObject:
|
|
12956
|
-
isAsyncFn:
|
|
12957
|
-
isThenable:
|
|
13079
|
+
generateString: fA,
|
|
13080
|
+
isSpecCompliantForm: gA,
|
|
13081
|
+
toJSONObject: yA,
|
|
13082
|
+
isAsyncFn: vA,
|
|
13083
|
+
isThenable: hA,
|
|
12958
13084
|
setImmediate: za,
|
|
12959
|
-
asap:
|
|
13085
|
+
asap: wA
|
|
12960
13086
|
};
|
|
12961
13087
|
function $(e, t, o, r, n) {
|
|
12962
13088
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), o && (this.config = o), r && (this.request = r), n && (this.response = n, this.status = n.status ? n.status : null);
|
|
@@ -13008,7 +13134,7 @@ $.from = (e, t, o, r, n, a) => {
|
|
|
13008
13134
|
return l !== Error.prototype;
|
|
13009
13135
|
}, (s) => s !== "isAxiosError"), $.call(i, e.message, t, o, r, n), i.cause = e, i.name = e.name, a && Object.assign(i, a), i;
|
|
13010
13136
|
};
|
|
13011
|
-
const
|
|
13137
|
+
const FA = null;
|
|
13012
13138
|
function Rr(e) {
|
|
13013
13139
|
return b.isPlainObject(e) || b.isArray(e);
|
|
13014
13140
|
}
|
|
@@ -13020,10 +13146,10 @@ function dn(e, t, o) {
|
|
|
13020
13146
|
return n = Oa(n), !o && a ? "[" + n + "]" : n;
|
|
13021
13147
|
}).join(o ? "." : "") : t;
|
|
13022
13148
|
}
|
|
13023
|
-
function
|
|
13149
|
+
function bA(e) {
|
|
13024
13150
|
return b.isArray(e) && !e.some(Rr);
|
|
13025
13151
|
}
|
|
13026
|
-
const
|
|
13152
|
+
const CA = b.toFlatObject(b, {}, null, function(t) {
|
|
13027
13153
|
return /^is[A-Z]/.test(t);
|
|
13028
13154
|
});
|
|
13029
13155
|
function Io(e, t, o) {
|
|
@@ -13052,7 +13178,7 @@ function Io(e, t, o) {
|
|
|
13052
13178
|
if (R && !F && typeof R == "object") {
|
|
13053
13179
|
if (b.endsWith(B, "{}"))
|
|
13054
13180
|
B = r ? B : B.slice(0, -2), R = JSON.stringify(R);
|
|
13055
|
-
else if (b.isArray(R) &&
|
|
13181
|
+
else if (b.isArray(R) && bA(R) || (b.isFileList(R) || b.endsWith(B, "[]")) && (H = b.toArray(R)))
|
|
13056
13182
|
return B = Oa(B), H.forEach(function(z, I) {
|
|
13057
13183
|
!(b.isUndefined(z) || z === null) && t.append(
|
|
13058
13184
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -13063,7 +13189,7 @@ function Io(e, t, o) {
|
|
|
13063
13189
|
}
|
|
13064
13190
|
return Rr(R) ? !0 : (t.append(dn(F, B, a), d(R)), !1);
|
|
13065
13191
|
}
|
|
13066
|
-
const C = [], K = Object.assign(
|
|
13192
|
+
const C = [], K = Object.assign(CA, {
|
|
13067
13193
|
defaultVisitor: u,
|
|
13068
13194
|
convertValue: d,
|
|
13069
13195
|
isVisitable: Rr
|
|
@@ -13116,13 +13242,13 @@ Xa.toString = function(t) {
|
|
|
13116
13242
|
return o(n[0]) + "=" + o(n[1]);
|
|
13117
13243
|
}, "").join("&");
|
|
13118
13244
|
};
|
|
13119
|
-
function
|
|
13245
|
+
function BA(e) {
|
|
13120
13246
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
13121
13247
|
}
|
|
13122
13248
|
function Ma(e, t, o) {
|
|
13123
13249
|
if (!t)
|
|
13124
13250
|
return e;
|
|
13125
|
-
const r = o && o.encode ||
|
|
13251
|
+
const r = o && o.encode || BA;
|
|
13126
13252
|
b.isFunction(o) && (o = {
|
|
13127
13253
|
serialize: o
|
|
13128
13254
|
});
|
|
@@ -13192,37 +13318,37 @@ const Sa = {
|
|
|
13192
13318
|
silentJSONParsing: !0,
|
|
13193
13319
|
forcedJSONParsing: !0,
|
|
13194
13320
|
clarifyTimeoutError: !1
|
|
13195
|
-
},
|
|
13321
|
+
}, DA = typeof URLSearchParams < "u" ? URLSearchParams : Sr, RA = typeof FormData < "u" ? FormData : null, UA = typeof Blob < "u" ? Blob : null, PA = {
|
|
13196
13322
|
isBrowser: !0,
|
|
13197
13323
|
classes: {
|
|
13198
|
-
URLSearchParams:
|
|
13199
|
-
FormData:
|
|
13200
|
-
Blob:
|
|
13324
|
+
URLSearchParams: DA,
|
|
13325
|
+
FormData: RA,
|
|
13326
|
+
Blob: UA
|
|
13201
13327
|
},
|
|
13202
13328
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
13203
|
-
}, Vr = typeof window < "u" && typeof document < "u", Ur = typeof navigator == "object" && navigator || void 0,
|
|
13204
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
13329
|
+
}, Vr = typeof window < "u" && typeof document < "u", Ur = typeof navigator == "object" && navigator || void 0, KA = Vr && (!Ur || ["ReactNative", "NativeScript", "NS"].indexOf(Ur.product) < 0), xA = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
13330
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", EA = Vr && window.location.href || "http://localhost", TA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13205
13331
|
__proto__: null,
|
|
13206
13332
|
hasBrowserEnv: Vr,
|
|
13207
|
-
hasStandardBrowserEnv:
|
|
13208
|
-
hasStandardBrowserWebWorkerEnv:
|
|
13333
|
+
hasStandardBrowserEnv: KA,
|
|
13334
|
+
hasStandardBrowserWebWorkerEnv: xA,
|
|
13209
13335
|
navigator: Ur,
|
|
13210
|
-
origin:
|
|
13336
|
+
origin: EA
|
|
13211
13337
|
}, Symbol.toStringTag, { value: "Module" })), Ue = {
|
|
13212
|
-
...
|
|
13213
|
-
...
|
|
13338
|
+
...TA,
|
|
13339
|
+
...PA
|
|
13214
13340
|
};
|
|
13215
|
-
function
|
|
13341
|
+
function HA(e, t) {
|
|
13216
13342
|
return Io(e, new Ue.classes.URLSearchParams(), Object.assign({
|
|
13217
13343
|
visitor: function(o, r, n, a) {
|
|
13218
13344
|
return Ue.isNode && b.isBuffer(o) ? (this.append(r, o.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
13219
13345
|
}
|
|
13220
13346
|
}, t));
|
|
13221
13347
|
}
|
|
13222
|
-
function
|
|
13348
|
+
function zA(e) {
|
|
13223
13349
|
return b.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
13224
13350
|
}
|
|
13225
|
-
function
|
|
13351
|
+
function IA(e) {
|
|
13226
13352
|
const t = {}, o = Object.keys(e);
|
|
13227
13353
|
let r;
|
|
13228
13354
|
const n = o.length;
|
|
@@ -13236,17 +13362,17 @@ function Va(e) {
|
|
|
13236
13362
|
let i = o[a++];
|
|
13237
13363
|
if (i === "__proto__") return !0;
|
|
13238
13364
|
const s = Number.isFinite(+i), l = a >= o.length;
|
|
13239
|
-
return i = !i && b.isArray(n) ? n.length : i, l ? (b.hasOwnProp(n, i) ? n[i] = [n[i], r] : n[i] = r, !s) : ((!n[i] || !b.isObject(n[i])) && (n[i] = []), t(o, r, n[i], a) && b.isArray(n[i]) && (n[i] =
|
|
13365
|
+
return i = !i && b.isArray(n) ? n.length : i, l ? (b.hasOwnProp(n, i) ? n[i] = [n[i], r] : n[i] = r, !s) : ((!n[i] || !b.isObject(n[i])) && (n[i] = []), t(o, r, n[i], a) && b.isArray(n[i]) && (n[i] = IA(n[i])), !s);
|
|
13240
13366
|
}
|
|
13241
13367
|
if (b.isFormData(e) && b.isFunction(e.entries)) {
|
|
13242
13368
|
const o = {};
|
|
13243
13369
|
return b.forEachEntry(e, (r, n) => {
|
|
13244
|
-
t(
|
|
13370
|
+
t(zA(r), n, o, 0);
|
|
13245
13371
|
}), o;
|
|
13246
13372
|
}
|
|
13247
13373
|
return null;
|
|
13248
13374
|
}
|
|
13249
|
-
function
|
|
13375
|
+
function jA(e, t, o) {
|
|
13250
13376
|
if (b.isString(e))
|
|
13251
13377
|
try {
|
|
13252
13378
|
return (t || JSON.parse)(e), b.trim(e);
|
|
@@ -13272,7 +13398,7 @@ const $t = {
|
|
|
13272
13398
|
let s;
|
|
13273
13399
|
if (a) {
|
|
13274
13400
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
13275
|
-
return
|
|
13401
|
+
return HA(t, this.formSerializer).toString();
|
|
13276
13402
|
if ((s = b.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
13277
13403
|
const l = this.env && this.env.FormData;
|
|
13278
13404
|
return Io(
|
|
@@ -13282,7 +13408,7 @@ const $t = {
|
|
|
13282
13408
|
);
|
|
13283
13409
|
}
|
|
13284
13410
|
}
|
|
13285
|
-
return a || n ? (o.setContentType("application/json", !1),
|
|
13411
|
+
return a || n ? (o.setContentType("application/json", !1), jA(t)) : t;
|
|
13286
13412
|
}],
|
|
13287
13413
|
transformResponse: [function(t) {
|
|
13288
13414
|
const o = this.transitional || $t.transitional, r = o && o.forcedJSONParsing, n = this.responseType === "json";
|
|
@@ -13325,7 +13451,7 @@ const $t = {
|
|
|
13325
13451
|
b.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
13326
13452
|
$t.headers[e] = {};
|
|
13327
13453
|
});
|
|
13328
|
-
const
|
|
13454
|
+
const OA = b.toObjectSet([
|
|
13329
13455
|
"age",
|
|
13330
13456
|
"authorization",
|
|
13331
13457
|
"content-length",
|
|
@@ -13343,29 +13469,29 @@ const Om = b.toObjectSet([
|
|
|
13343
13469
|
"referer",
|
|
13344
13470
|
"retry-after",
|
|
13345
13471
|
"user-agent"
|
|
13346
|
-
]),
|
|
13472
|
+
]), XA = (e) => {
|
|
13347
13473
|
const t = {};
|
|
13348
13474
|
let o, r, n;
|
|
13349
13475
|
return e && e.split(`
|
|
13350
13476
|
`).forEach(function(i) {
|
|
13351
|
-
n = i.indexOf(":"), o = i.substring(0, n).trim().toLowerCase(), r = i.substring(n + 1).trim(), !(!o || t[o] &&
|
|
13477
|
+
n = i.indexOf(":"), o = i.substring(0, n).trim().toLowerCase(), r = i.substring(n + 1).trim(), !(!o || t[o] && OA[o]) && (o === "set-cookie" ? t[o] ? t[o].push(r) : t[o] = [r] : t[o] = t[o] ? t[o] + ", " + r : r);
|
|
13352
13478
|
}), t;
|
|
13353
13479
|
}, fn = Symbol("internals");
|
|
13354
13480
|
function Vt(e) {
|
|
13355
13481
|
return e && String(e).trim().toLowerCase();
|
|
13356
13482
|
}
|
|
13357
|
-
function
|
|
13358
|
-
return e === !1 || e == null ? e : b.isArray(e) ? e.map(
|
|
13483
|
+
function Ao(e) {
|
|
13484
|
+
return e === !1 || e == null ? e : b.isArray(e) ? e.map(Ao) : String(e);
|
|
13359
13485
|
}
|
|
13360
|
-
function
|
|
13486
|
+
function MA(e) {
|
|
13361
13487
|
const t = /* @__PURE__ */ Object.create(null), o = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
13362
13488
|
let r;
|
|
13363
13489
|
for (; r = o.exec(e); )
|
|
13364
13490
|
t[r[1]] = r[2];
|
|
13365
13491
|
return t;
|
|
13366
13492
|
}
|
|
13367
|
-
const
|
|
13368
|
-
function
|
|
13493
|
+
const SA = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
13494
|
+
function mr(e, t, o, r, n) {
|
|
13369
13495
|
if (b.isFunction(r))
|
|
13370
13496
|
return r.call(this, t, o);
|
|
13371
13497
|
if (n && (t = o), !!b.isString(t)) {
|
|
@@ -13375,10 +13501,10 @@ function Ar(e, t, o, r, n) {
|
|
|
13375
13501
|
return r.test(t);
|
|
13376
13502
|
}
|
|
13377
13503
|
}
|
|
13378
|
-
function
|
|
13504
|
+
function VA(e) {
|
|
13379
13505
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, o, r) => o.toUpperCase() + r);
|
|
13380
13506
|
}
|
|
13381
|
-
function
|
|
13507
|
+
function QA(e, t) {
|
|
13382
13508
|
const o = b.toCamelCase(" " + t);
|
|
13383
13509
|
["get", "set", "has"].forEach((r) => {
|
|
13384
13510
|
Object.defineProperty(e, r + o, {
|
|
@@ -13400,13 +13526,13 @@ let je = class {
|
|
|
13400
13526
|
if (!u)
|
|
13401
13527
|
throw new Error("header name must be a non-empty string");
|
|
13402
13528
|
const C = b.findKey(n, u);
|
|
13403
|
-
(!C || n[C] === void 0 || d === !0 || d === void 0 && n[C] !== !1) && (n[C || l] =
|
|
13529
|
+
(!C || n[C] === void 0 || d === !0 || d === void 0 && n[C] !== !1) && (n[C || l] = Ao(s));
|
|
13404
13530
|
}
|
|
13405
13531
|
const i = (s, l) => b.forEach(s, (d, u) => a(d, u, l));
|
|
13406
13532
|
if (b.isPlainObject(t) || t instanceof this.constructor)
|
|
13407
13533
|
i(t, o);
|
|
13408
|
-
else if (b.isString(t) && (t = t.trim()) && !
|
|
13409
|
-
i(
|
|
13534
|
+
else if (b.isString(t) && (t = t.trim()) && !SA(t))
|
|
13535
|
+
i(XA(t), o);
|
|
13410
13536
|
else if (b.isHeaders(t))
|
|
13411
13537
|
for (const [s, l] of t.entries())
|
|
13412
13538
|
a(l, s, r);
|
|
@@ -13422,7 +13548,7 @@ let je = class {
|
|
|
13422
13548
|
if (!o)
|
|
13423
13549
|
return n;
|
|
13424
13550
|
if (o === !0)
|
|
13425
|
-
return
|
|
13551
|
+
return MA(n);
|
|
13426
13552
|
if (b.isFunction(o))
|
|
13427
13553
|
return o.call(this, n, r);
|
|
13428
13554
|
if (b.isRegExp(o))
|
|
@@ -13434,7 +13560,7 @@ let je = class {
|
|
|
13434
13560
|
has(t, o) {
|
|
13435
13561
|
if (t = Vt(t), t) {
|
|
13436
13562
|
const r = b.findKey(this, t);
|
|
13437
|
-
return !!(r && this[r] !== void 0 && (!o ||
|
|
13563
|
+
return !!(r && this[r] !== void 0 && (!o || mr(this, this[r], r, o)));
|
|
13438
13564
|
}
|
|
13439
13565
|
return !1;
|
|
13440
13566
|
}
|
|
@@ -13444,7 +13570,7 @@ let je = class {
|
|
|
13444
13570
|
function a(i) {
|
|
13445
13571
|
if (i = Vt(i), i) {
|
|
13446
13572
|
const s = b.findKey(r, i);
|
|
13447
|
-
s && (!o ||
|
|
13573
|
+
s && (!o || mr(r, r[s], s, o)) && (delete r[s], n = !0);
|
|
13448
13574
|
}
|
|
13449
13575
|
}
|
|
13450
13576
|
return b.isArray(t) ? t.forEach(a) : a(t), n;
|
|
@@ -13454,7 +13580,7 @@ let je = class {
|
|
|
13454
13580
|
let r = o.length, n = !1;
|
|
13455
13581
|
for (; r--; ) {
|
|
13456
13582
|
const a = o[r];
|
|
13457
|
-
(!t ||
|
|
13583
|
+
(!t || mr(this, this[a], a, t, !0)) && (delete this[a], n = !0);
|
|
13458
13584
|
}
|
|
13459
13585
|
return n;
|
|
13460
13586
|
}
|
|
@@ -13463,11 +13589,11 @@ let je = class {
|
|
|
13463
13589
|
return b.forEach(this, (n, a) => {
|
|
13464
13590
|
const i = b.findKey(r, a);
|
|
13465
13591
|
if (i) {
|
|
13466
|
-
o[i] =
|
|
13592
|
+
o[i] = Ao(n), delete o[a];
|
|
13467
13593
|
return;
|
|
13468
13594
|
}
|
|
13469
|
-
const s = t ?
|
|
13470
|
-
s !== a && delete o[a], o[s] =
|
|
13595
|
+
const s = t ? VA(a) : String(a).trim();
|
|
13596
|
+
s !== a && delete o[a], o[s] = Ao(n), r[s] = !0;
|
|
13471
13597
|
}), this;
|
|
13472
13598
|
}
|
|
13473
13599
|
concat(...t) {
|
|
@@ -13502,7 +13628,7 @@ let je = class {
|
|
|
13502
13628
|
}).accessors, n = this.prototype;
|
|
13503
13629
|
function a(i) {
|
|
13504
13630
|
const s = Vt(i);
|
|
13505
|
-
r[s] || (
|
|
13631
|
+
r[s] || (QA(n, i), r[s] = !0);
|
|
13506
13632
|
}
|
|
13507
13633
|
return b.isArray(t) ? t.forEach(a) : a(t), this;
|
|
13508
13634
|
}
|
|
@@ -13518,7 +13644,7 @@ b.reduceDescriptors(je.prototype, ({ value: e }, t) => {
|
|
|
13518
13644
|
};
|
|
13519
13645
|
});
|
|
13520
13646
|
b.freezeMethods(je);
|
|
13521
|
-
function
|
|
13647
|
+
function Ar(e, t) {
|
|
13522
13648
|
const o = this || $t, r = t || o, n = je.from(r.headers);
|
|
13523
13649
|
let a = r.data;
|
|
13524
13650
|
return b.forEach(e, function(s) {
|
|
@@ -13534,7 +13660,7 @@ function Ot(e, t, o) {
|
|
|
13534
13660
|
b.inherits(Ot, $, {
|
|
13535
13661
|
__CANCEL__: !0
|
|
13536
13662
|
});
|
|
13537
|
-
function
|
|
13663
|
+
function Na(e, t, o) {
|
|
13538
13664
|
const r = o.config.validateStatus;
|
|
13539
13665
|
!o.status || !r || r(o.status) ? e(o) : t(new $(
|
|
13540
13666
|
"Request failed with status code " + o.status,
|
|
@@ -13544,11 +13670,11 @@ function Ga(e, t, o) {
|
|
|
13544
13670
|
o
|
|
13545
13671
|
));
|
|
13546
13672
|
}
|
|
13547
|
-
function
|
|
13673
|
+
function NA(e) {
|
|
13548
13674
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
13549
13675
|
return t && t[1] || "";
|
|
13550
13676
|
}
|
|
13551
|
-
function
|
|
13677
|
+
function GA(e, t) {
|
|
13552
13678
|
e = e || 10;
|
|
13553
13679
|
const o = new Array(e), r = new Array(e);
|
|
13554
13680
|
let n = 0, a = 0, i;
|
|
@@ -13564,7 +13690,7 @@ function Nm(e, t) {
|
|
|
13564
13690
|
return T ? Math.round(K * 1e3 / T) : void 0;
|
|
13565
13691
|
};
|
|
13566
13692
|
}
|
|
13567
|
-
function
|
|
13693
|
+
function qA(e, t) {
|
|
13568
13694
|
let o = 0, r = 1e3 / t, n, a;
|
|
13569
13695
|
const i = (d, u = Date.now()) => {
|
|
13570
13696
|
o = u, n = null, a && (clearTimeout(a), a = null), e.apply(null, d);
|
|
@@ -13578,8 +13704,8 @@ function qm(e, t) {
|
|
|
13578
13704
|
}
|
|
13579
13705
|
const Po = (e, t, o = 3) => {
|
|
13580
13706
|
let r = 0;
|
|
13581
|
-
const n =
|
|
13582
|
-
return
|
|
13707
|
+
const n = GA(50, 250);
|
|
13708
|
+
return qA((a) => {
|
|
13583
13709
|
const i = a.loaded, s = a.lengthComputable ? a.total : void 0, l = i - r, d = n(l), u = i <= s;
|
|
13584
13710
|
r = i;
|
|
13585
13711
|
const C = {
|
|
@@ -13602,10 +13728,10 @@ const Po = (e, t, o = 3) => {
|
|
|
13602
13728
|
total: e,
|
|
13603
13729
|
loaded: r
|
|
13604
13730
|
}), t[1]];
|
|
13605
|
-
}, yn = (e) => (...t) => b.asap(() => e(...t)),
|
|
13731
|
+
}, yn = (e) => (...t) => b.asap(() => e(...t)), kA = Ue.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (o) => (o = new URL(o, Ue.origin), e.protocol === o.protocol && e.host === o.host && (t || e.port === o.port)))(
|
|
13606
13732
|
new URL(Ue.origin),
|
|
13607
13733
|
Ue.navigator && /(msie|trident)/i.test(Ue.navigator.userAgent)
|
|
13608
|
-
) : () => !0,
|
|
13734
|
+
) : () => !0, LA = Ue.hasStandardBrowserEnv ? (
|
|
13609
13735
|
// Standard browser envs support document.cookie
|
|
13610
13736
|
{
|
|
13611
13737
|
write(e, t, o, r, n, a) {
|
|
@@ -13632,14 +13758,14 @@ const Po = (e, t, o = 3) => {
|
|
|
13632
13758
|
}
|
|
13633
13759
|
}
|
|
13634
13760
|
);
|
|
13635
|
-
function
|
|
13761
|
+
function YA(e) {
|
|
13636
13762
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
13637
13763
|
}
|
|
13638
|
-
function
|
|
13764
|
+
function ZA(e, t) {
|
|
13639
13765
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
13640
13766
|
}
|
|
13641
|
-
function
|
|
13642
|
-
return e && !
|
|
13767
|
+
function Ga(e, t) {
|
|
13768
|
+
return e && !YA(t) ? ZA(e, t) : t;
|
|
13643
13769
|
}
|
|
13644
13770
|
const vn = (e) => e instanceof je ? { ...e } : e;
|
|
13645
13771
|
function Bt(e, t) {
|
|
@@ -13709,7 +13835,7 @@ function Bt(e, t) {
|
|
|
13709
13835
|
const qa = (e) => {
|
|
13710
13836
|
const t = Bt({}, e);
|
|
13711
13837
|
let { data: o, withXSRFToken: r, xsrfHeaderName: n, xsrfCookieName: a, headers: i, auth: s } = t;
|
|
13712
|
-
t.headers = i = je.from(i), t.url = Ma(
|
|
13838
|
+
t.headers = i = je.from(i), t.url = Ma(Ga(t.baseURL, t.url), e.params, e.paramsSerializer), s && i.set(
|
|
13713
13839
|
"Authorization",
|
|
13714
13840
|
"Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
|
|
13715
13841
|
);
|
|
@@ -13722,12 +13848,12 @@ const qa = (e) => {
|
|
|
13722
13848
|
i.setContentType([d || "multipart/form-data", ...u].join("; "));
|
|
13723
13849
|
}
|
|
13724
13850
|
}
|
|
13725
|
-
if (Ue.hasStandardBrowserEnv && (r && b.isFunction(r) && (r = r(t)), r || r !== !1 &&
|
|
13726
|
-
const d = n && a &&
|
|
13851
|
+
if (Ue.hasStandardBrowserEnv && (r && b.isFunction(r) && (r = r(t)), r || r !== !1 && kA(t.url))) {
|
|
13852
|
+
const d = n && a && LA.read(a);
|
|
13727
13853
|
d && i.set(n, d);
|
|
13728
13854
|
}
|
|
13729
13855
|
return t;
|
|
13730
|
-
},
|
|
13856
|
+
}, WA = typeof XMLHttpRequest < "u", JA = WA && function(e) {
|
|
13731
13857
|
return new Promise(function(o, r) {
|
|
13732
13858
|
const n = qa(e);
|
|
13733
13859
|
let a = n.data;
|
|
@@ -13751,10 +13877,10 @@ const qa = (e) => {
|
|
|
13751
13877
|
config: e,
|
|
13752
13878
|
request: F
|
|
13753
13879
|
};
|
|
13754
|
-
|
|
13755
|
-
o(
|
|
13756
|
-
}, function(
|
|
13757
|
-
r(
|
|
13880
|
+
Na(function(L) {
|
|
13881
|
+
o(L), B();
|
|
13882
|
+
}, function(L) {
|
|
13883
|
+
r(L), B();
|
|
13758
13884
|
}, X), F = null;
|
|
13759
13885
|
}
|
|
13760
13886
|
"onloadend" in F ? F.onloadend = H : F.onreadystatechange = function() {
|
|
@@ -13777,14 +13903,14 @@ const qa = (e) => {
|
|
|
13777
13903
|
}), b.isUndefined(n.withCredentials) || (F.withCredentials = !!n.withCredentials), s && s !== "json" && (F.responseType = n.responseType), d && ([K, R] = Po(d, !0), F.addEventListener("progress", K)), l && F.upload && ([C, T] = Po(l), F.upload.addEventListener("progress", C), F.upload.addEventListener("loadend", T)), (n.cancelToken || n.signal) && (u = (z) => {
|
|
13778
13904
|
F && (r(!z || z.type ? new Ot(null, e, F) : z), F.abort(), F = null);
|
|
13779
13905
|
}, n.cancelToken && n.cancelToken.subscribe(u), n.signal && (n.signal.aborted ? u() : n.signal.addEventListener("abort", u)));
|
|
13780
|
-
const S =
|
|
13906
|
+
const S = NA(n.url);
|
|
13781
13907
|
if (S && Ue.protocols.indexOf(S) === -1) {
|
|
13782
13908
|
r(new $("Unsupported protocol " + S + ":", $.ERR_BAD_REQUEST, e));
|
|
13783
13909
|
return;
|
|
13784
13910
|
}
|
|
13785
13911
|
F.send(a || null);
|
|
13786
13912
|
});
|
|
13787
|
-
},
|
|
13913
|
+
}, _A = (e, t) => {
|
|
13788
13914
|
const { length: o } = e = e ? e.filter(Boolean) : [];
|
|
13789
13915
|
if (t || o) {
|
|
13790
13916
|
let r = new AbortController(), n;
|
|
@@ -13807,7 +13933,7 @@ const qa = (e) => {
|
|
|
13807
13933
|
const { signal: l } = r;
|
|
13808
13934
|
return l.unsubscribe = () => b.asap(s), l;
|
|
13809
13935
|
}
|
|
13810
|
-
}, $
|
|
13936
|
+
}, $A = function* (e, t) {
|
|
13811
13937
|
let o = e.byteLength;
|
|
13812
13938
|
if (o < t) {
|
|
13813
13939
|
yield e;
|
|
@@ -13818,7 +13944,7 @@ const qa = (e) => {
|
|
|
13818
13944
|
n = r + t, yield e.slice(r, n), r = n;
|
|
13819
13945
|
}, el = async function* (e, t) {
|
|
13820
13946
|
for await (const o of tl(e))
|
|
13821
|
-
yield* $
|
|
13947
|
+
yield* $A(o, t);
|
|
13822
13948
|
}, tl = async function* (e) {
|
|
13823
13949
|
if (e[Symbol.asyncIterator]) {
|
|
13824
13950
|
yield* e;
|
|
@@ -13864,13 +13990,13 @@ const qa = (e) => {
|
|
|
13864
13990
|
}, {
|
|
13865
13991
|
highWaterMark: 2
|
|
13866
13992
|
});
|
|
13867
|
-
}, jo = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
|
13993
|
+
}, jo = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ka = jo && typeof ReadableStream == "function", ol = jo && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), La = (e, ...t) => {
|
|
13868
13994
|
try {
|
|
13869
13995
|
return !!e(...t);
|
|
13870
13996
|
} catch {
|
|
13871
13997
|
return !1;
|
|
13872
13998
|
}
|
|
13873
|
-
}, rl =
|
|
13999
|
+
}, rl = ka && La(() => {
|
|
13874
14000
|
let e = !1;
|
|
13875
14001
|
const t = new Request(Ue.origin, {
|
|
13876
14002
|
body: new ReadableStream(),
|
|
@@ -13880,7 +14006,7 @@ const qa = (e) => {
|
|
|
13880
14006
|
}
|
|
13881
14007
|
}).headers.has("Content-Type");
|
|
13882
14008
|
return e && !t;
|
|
13883
|
-
}), wn = 64 * 1024, Pr =
|
|
14009
|
+
}), wn = 64 * 1024, Pr = ka && La(() => b.isReadableStream(new Response("").body)), Ko = {
|
|
13884
14010
|
stream: Pr && ((e) => e.body)
|
|
13885
14011
|
};
|
|
13886
14012
|
jo && ((e) => {
|
|
@@ -13923,7 +14049,7 @@ const nl = async (e) => {
|
|
|
13923
14049
|
fetchOptions: K
|
|
13924
14050
|
} = qa(e);
|
|
13925
14051
|
d = d ? (d + "").toLowerCase() : "text";
|
|
13926
|
-
let T =
|
|
14052
|
+
let T = _A([n, a && a.toAbortSignal()], i), R;
|
|
13927
14053
|
const B = T && T.unsubscribe && (() => {
|
|
13928
14054
|
T.unsubscribe();
|
|
13929
14055
|
});
|
|
@@ -13936,11 +14062,11 @@ const nl = async (e) => {
|
|
|
13936
14062
|
duplex: "half"
|
|
13937
14063
|
}), Y;
|
|
13938
14064
|
if (b.isFormData(r) && (Y = X.headers.get("content-type")) && u.setContentType(Y), X.body) {
|
|
13939
|
-
const [
|
|
14065
|
+
const [L, re] = gn(
|
|
13940
14066
|
F,
|
|
13941
14067
|
Po(yn(l))
|
|
13942
14068
|
);
|
|
13943
|
-
r = hn(X.body, wn,
|
|
14069
|
+
r = hn(X.body, wn, L, re);
|
|
13944
14070
|
}
|
|
13945
14071
|
}
|
|
13946
14072
|
b.isString(C) || (C = C ? "include" : "omit");
|
|
@@ -13961,12 +14087,12 @@ const nl = async (e) => {
|
|
|
13961
14087
|
["status", "statusText", "headers"].forEach((f) => {
|
|
13962
14088
|
X[f] = S[f];
|
|
13963
14089
|
});
|
|
13964
|
-
const Y = b.toFiniteNumber(S.headers.get("content-length")), [
|
|
14090
|
+
const Y = b.toFiniteNumber(S.headers.get("content-length")), [L, re] = s && gn(
|
|
13965
14091
|
Y,
|
|
13966
14092
|
Po(yn(s), !0)
|
|
13967
14093
|
) || [];
|
|
13968
14094
|
S = new Response(
|
|
13969
|
-
hn(S.body, wn,
|
|
14095
|
+
hn(S.body, wn, L, () => {
|
|
13970
14096
|
re && re(), B && B();
|
|
13971
14097
|
}),
|
|
13972
14098
|
X
|
|
@@ -13975,7 +14101,7 @@ const nl = async (e) => {
|
|
|
13975
14101
|
d = d || "text";
|
|
13976
14102
|
let I = await Ko[b.findKey(Ko, d) || "text"](S, e);
|
|
13977
14103
|
return !z && B && B(), await new Promise((X, Y) => {
|
|
13978
|
-
|
|
14104
|
+
Na(X, Y, {
|
|
13979
14105
|
data: I,
|
|
13980
14106
|
headers: je.from(S.headers),
|
|
13981
14107
|
status: S.status,
|
|
@@ -13993,8 +14119,8 @@ const nl = async (e) => {
|
|
|
13993
14119
|
) : $.from(H, H && H.code, e, R);
|
|
13994
14120
|
}
|
|
13995
14121
|
}), Kr = {
|
|
13996
|
-
http:
|
|
13997
|
-
xhr:
|
|
14122
|
+
http: FA,
|
|
14123
|
+
xhr: JA,
|
|
13998
14124
|
fetch: il
|
|
13999
14125
|
};
|
|
14000
14126
|
b.forEach(Kr, (e, t) => {
|
|
@@ -14042,17 +14168,17 @@ function lr(e) {
|
|
|
14042
14168
|
throw new Ot(null, e);
|
|
14043
14169
|
}
|
|
14044
14170
|
function bn(e) {
|
|
14045
|
-
return lr(e), e.headers = je.from(e.headers), e.data =
|
|
14171
|
+
return lr(e), e.headers = je.from(e.headers), e.data = Ar.call(
|
|
14046
14172
|
e,
|
|
14047
14173
|
e.transformRequest
|
|
14048
14174
|
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ya.getAdapter(e.adapter || $t.adapter)(e).then(function(r) {
|
|
14049
|
-
return lr(e), r.data =
|
|
14175
|
+
return lr(e), r.data = Ar.call(
|
|
14050
14176
|
e,
|
|
14051
14177
|
e.transformResponse,
|
|
14052
14178
|
r
|
|
14053
14179
|
), r.headers = je.from(r.headers), r;
|
|
14054
14180
|
}, function(r) {
|
|
14055
|
-
return Qa(r) || (lr(e), r && r.response && (r.response.data =
|
|
14181
|
+
return Qa(r) || (lr(e), r && r.response && (r.response.data = Ar.call(
|
|
14056
14182
|
e,
|
|
14057
14183
|
e.transformResponse,
|
|
14058
14184
|
r.response
|
|
@@ -14107,7 +14233,7 @@ function cl(e, t, o) {
|
|
|
14107
14233
|
const lo = {
|
|
14108
14234
|
assertOptions: cl,
|
|
14109
14235
|
validators: Oo
|
|
14110
|
-
},
|
|
14236
|
+
}, Le = lo.validators;
|
|
14111
14237
|
let ht = class {
|
|
14112
14238
|
constructor(t) {
|
|
14113
14239
|
this.defaults = t, this.interceptors = {
|
|
@@ -14144,17 +14270,17 @@ let ht = class {
|
|
|
14144
14270
|
typeof t == "string" ? (o = o || {}, o.url = t) : o = t || {}, o = Bt(this.defaults, o);
|
|
14145
14271
|
const { transitional: r, paramsSerializer: n, headers: a } = o;
|
|
14146
14272
|
r !== void 0 && lo.assertOptions(r, {
|
|
14147
|
-
silentJSONParsing:
|
|
14148
|
-
forcedJSONParsing:
|
|
14149
|
-
clarifyTimeoutError:
|
|
14273
|
+
silentJSONParsing: Le.transitional(Le.boolean),
|
|
14274
|
+
forcedJSONParsing: Le.transitional(Le.boolean),
|
|
14275
|
+
clarifyTimeoutError: Le.transitional(Le.boolean)
|
|
14150
14276
|
}, !1), n != null && (b.isFunction(n) ? o.paramsSerializer = {
|
|
14151
14277
|
serialize: n
|
|
14152
14278
|
} : lo.assertOptions(n, {
|
|
14153
|
-
encode:
|
|
14154
|
-
serialize:
|
|
14279
|
+
encode: Le.function,
|
|
14280
|
+
serialize: Le.function
|
|
14155
14281
|
}, !0)), lo.assertOptions(o, {
|
|
14156
|
-
baseUrl:
|
|
14157
|
-
withXsrfToken:
|
|
14282
|
+
baseUrl: Le.spelling("baseURL"),
|
|
14283
|
+
withXsrfToken: Le.spelling("withXSRFToken")
|
|
14158
14284
|
}, !0), o.method = (o.method || this.defaults.method || "get").toLowerCase();
|
|
14159
14285
|
let i = a && b.merge(
|
|
14160
14286
|
a.common,
|
|
@@ -14204,7 +14330,7 @@ let ht = class {
|
|
|
14204
14330
|
}
|
|
14205
14331
|
getUri(t) {
|
|
14206
14332
|
t = Bt(this.defaults, t);
|
|
14207
|
-
const o =
|
|
14333
|
+
const o = Ga(t.baseURL, t.url);
|
|
14208
14334
|
return Ma(o, t.params, t.paramsSerializer);
|
|
14209
14335
|
}
|
|
14210
14336
|
};
|
|
@@ -14232,7 +14358,7 @@ b.forEach(["post", "put", "patch"], function(t) {
|
|
|
14232
14358
|
}
|
|
14233
14359
|
ht.prototype[t] = o(), ht.prototype[t + "Form"] = o(!0);
|
|
14234
14360
|
});
|
|
14235
|
-
let
|
|
14361
|
+
let ml = class Wa {
|
|
14236
14362
|
constructor(t) {
|
|
14237
14363
|
if (typeof t != "function")
|
|
14238
14364
|
throw new TypeError("executor must be a function.");
|
|
@@ -14305,7 +14431,7 @@ let Al = class Wa {
|
|
|
14305
14431
|
};
|
|
14306
14432
|
}
|
|
14307
14433
|
};
|
|
14308
|
-
function
|
|
14434
|
+
function Al(e) {
|
|
14309
14435
|
return function(o) {
|
|
14310
14436
|
return e.apply(null, o);
|
|
14311
14437
|
};
|
|
@@ -14390,7 +14516,7 @@ function Ja(e) {
|
|
|
14390
14516
|
const he = Ja($t);
|
|
14391
14517
|
he.Axios = ht;
|
|
14392
14518
|
he.CanceledError = Ot;
|
|
14393
|
-
he.CancelToken =
|
|
14519
|
+
he.CancelToken = ml;
|
|
14394
14520
|
he.isCancel = Qa;
|
|
14395
14521
|
he.VERSION = Za;
|
|
14396
14522
|
he.toFormData = Io;
|
|
@@ -14399,7 +14525,7 @@ he.Cancel = he.CanceledError;
|
|
|
14399
14525
|
he.all = function(t) {
|
|
14400
14526
|
return Promise.all(t);
|
|
14401
14527
|
};
|
|
14402
|
-
he.spread =
|
|
14528
|
+
he.spread = Al;
|
|
14403
14529
|
he.isAxiosError = ll;
|
|
14404
14530
|
he.mergeConfig = Bt;
|
|
14405
14531
|
he.AxiosHeaders = je;
|
|
@@ -14422,14 +14548,14 @@ const {
|
|
|
14422
14548
|
AxiosHeaders: Sd,
|
|
14423
14549
|
HttpStatusCode: Vd,
|
|
14424
14550
|
formToJSON: Qd,
|
|
14425
|
-
getAdapter:
|
|
14426
|
-
mergeConfig:
|
|
14551
|
+
getAdapter: Nd,
|
|
14552
|
+
mergeConfig: Gd
|
|
14427
14553
|
} = he;
|
|
14428
14554
|
var de = /* @__PURE__ */ ((e) => (e.Get = "get", e.Post = "post", e.Put = "put", e.Delete = "delete", e))(de || {});
|
|
14429
14555
|
class dl extends Error {
|
|
14430
14556
|
constructor(o, r) {
|
|
14431
14557
|
super(o);
|
|
14432
|
-
|
|
14558
|
+
mt(this, "errors");
|
|
14433
14559
|
this.errors = r;
|
|
14434
14560
|
}
|
|
14435
14561
|
}
|
|
@@ -14444,7 +14570,7 @@ function pl(e, t) {
|
|
|
14444
14570
|
});
|
|
14445
14571
|
return o.interceptors.request.use(
|
|
14446
14572
|
(r) => {
|
|
14447
|
-
const { token: n } =
|
|
14573
|
+
const { token: n } = Ne(se());
|
|
14448
14574
|
return n.value && (r.headers.Authorization = `Bearer ${n.value}`), r;
|
|
14449
14575
|
},
|
|
14450
14576
|
(r) => Promise.reject(r)
|
|
@@ -14460,9 +14586,9 @@ function pl(e, t) {
|
|
|
14460
14586
|
}
|
|
14461
14587
|
class Xo {
|
|
14462
14588
|
constructor(t) {
|
|
14463
|
-
|
|
14464
|
-
|
|
14465
|
-
const { fetchType: o, url: r, requestConfig: n, data: a } = t, { country: i } =
|
|
14589
|
+
mt(this, "baseUrl");
|
|
14590
|
+
mt(this, "rawFetch", async (t) => {
|
|
14591
|
+
const { fetchType: o, url: r, requestConfig: n, data: a } = t, { country: i } = Ne(se()), s = pl(i.value, this.baseUrl);
|
|
14466
14592
|
switch (o) {
|
|
14467
14593
|
case "get":
|
|
14468
14594
|
return await s.get(r, n);
|
|
@@ -14474,14 +14600,14 @@ class Xo {
|
|
|
14474
14600
|
return await s.delete(r, n);
|
|
14475
14601
|
}
|
|
14476
14602
|
});
|
|
14477
|
-
|
|
14603
|
+
mt(this, "fetch", async (t) => {
|
|
14478
14604
|
const o = await this.rawFetch(t);
|
|
14479
14605
|
return new Promise((r) => r(o.data));
|
|
14480
14606
|
});
|
|
14481
14607
|
this.baseUrl = t;
|
|
14482
14608
|
}
|
|
14483
14609
|
}
|
|
14484
|
-
const we = new Xo("https://query-engine{.country}.feedmeapi.com"), eo = new Xo("https://query-engine{.country}.feedmeapi.com/report-query"), qd = new Xo("https://query-engine{.country}.feedmeapi.com/report-file"),
|
|
14610
|
+
const we = new Xo("https://query-engine{.country}.feedmeapi.com"), eo = new Xo("https://query-engine{.country}.feedmeapi.com/report-query"), qd = new Xo("https://query-engine{.country}.feedmeapi.com/report-file"), kd = new Xo("https://portal-v2{.country}.feedmeapi.com"), fl = (e) => ({
|
|
14485
14611
|
id: e._id,
|
|
14486
14612
|
name: e.profile.name,
|
|
14487
14613
|
code: e.profile.code,
|
|
@@ -14492,31 +14618,31 @@ const we = new Xo("https://query-engine{.country}.feedmeapi.com"), eo = new Xo("
|
|
|
14492
14618
|
name: e.profile.name,
|
|
14493
14619
|
customAttributes: { ...e.customAttributes }
|
|
14494
14620
|
}), yl = async () => {
|
|
14495
|
-
const { businessId: e } =
|
|
14621
|
+
const { businessId: e } = Ne(se()), t = {
|
|
14496
14622
|
fetchType: de.Get,
|
|
14497
14623
|
url: `/${e.value}/restaurants`
|
|
14498
14624
|
}, o = (await eo.fetch(t)).map((r) => fl(r));
|
|
14499
14625
|
return o.sort((r, n) => r.name.localeCompare(n.name, void 0, { numeric: !0 })), o;
|
|
14500
14626
|
}, vl = async () => {
|
|
14501
|
-
const { businessId: e } =
|
|
14627
|
+
const { businessId: e } = Ne(se()), t = {
|
|
14502
14628
|
fetchType: de.Get,
|
|
14503
14629
|
url: `/${e.value}/warehouses`
|
|
14504
14630
|
}, o = (await eo.fetch(t)).map((r) => gl(r));
|
|
14505
14631
|
return o.sort((r, n) => r.name.localeCompare(n.name, void 0, { numeric: !0 })), o;
|
|
14506
14632
|
}, hl = () => {
|
|
14507
|
-
const { businessId: e } =
|
|
14633
|
+
const { businessId: e } = Ne(se()), t = {
|
|
14508
14634
|
fetchType: de.Get,
|
|
14509
14635
|
url: `/${e.value}`
|
|
14510
14636
|
};
|
|
14511
14637
|
return eo.fetch(t);
|
|
14512
14638
|
}, wl = () => {
|
|
14513
|
-
const { businessId: e } =
|
|
14639
|
+
const { businessId: e } = Ne(se()), t = {
|
|
14514
14640
|
fetchType: de.Get,
|
|
14515
14641
|
url: `/report-settings/${e.value}/date-settings`
|
|
14516
14642
|
};
|
|
14517
14643
|
return eo.fetch(t);
|
|
14518
14644
|
}, Fl = (e) => {
|
|
14519
|
-
const { businessId: t } =
|
|
14645
|
+
const { businessId: t } = Ne(se()), { defaultTimezone: o, ...r } = e, n = {
|
|
14520
14646
|
fetchType: de.Put,
|
|
14521
14647
|
url: `/report-settings/${t.value}/date-settings`,
|
|
14522
14648
|
data: r
|
|
@@ -14552,7 +14678,7 @@ function Dl() {
|
|
|
14552
14678
|
function _a(e) {
|
|
14553
14679
|
return q().tz(e).format("Z").replace(/:00$/, "");
|
|
14554
14680
|
}
|
|
14555
|
-
function
|
|
14681
|
+
function Ld(e) {
|
|
14556
14682
|
var o;
|
|
14557
14683
|
return `${((o = e.split("/").pop()) == null ? void 0 : o.replace(/_/g, " ")) ?? e} (UTC${_a(e)})`;
|
|
14558
14684
|
}
|
|
@@ -14572,7 +14698,7 @@ const Rl = "mf-reportreport-filter-store";
|
|
|
14572
14698
|
var Ul = /* @__PURE__ */ ((e) => (e.NO_COMPARISON = "NO_COMPARISON", e.PRECEDING_PERIOD = "PRECEDING_PERIOD", e.PRECEDING_WEEK = "PRECEDING_WEEK", e.PRECEDING_MONTH = "PRECEDING_MONTH", e.PRECEDING_YEAR = "PRECEDING_YEAR", e.CUSTOM = "CUSTOM", e))(Ul || {});
|
|
14573
14699
|
const ze = "YYYY-MM-DD";
|
|
14574
14700
|
function Pl() {
|
|
14575
|
-
const { timezone: e } =
|
|
14701
|
+
const { timezone: e } = Ne(to());
|
|
14576
14702
|
return [
|
|
14577
14703
|
{
|
|
14578
14704
|
label: nt.TODAY,
|
|
@@ -14668,34 +14794,34 @@ const to = Jt(Rl, () => {
|
|
|
14668
14794
|
break;
|
|
14669
14795
|
}
|
|
14670
14796
|
case "PRECEDING_WEEK": {
|
|
14671
|
-
const v = e(T.value.startDate),
|
|
14797
|
+
const v = e(T.value.startDate), A = e(T.value.endDate), m = A.diff(v, "week") + 1;
|
|
14672
14798
|
R.value = {
|
|
14673
|
-
startDate: v.subtract(
|
|
14674
|
-
endDate:
|
|
14799
|
+
startDate: v.subtract(m, "week").startOf("day").utc().toISOString(),
|
|
14800
|
+
endDate: A.subtract(m, "week").endOf("day").utc().toISOString()
|
|
14675
14801
|
};
|
|
14676
14802
|
break;
|
|
14677
14803
|
}
|
|
14678
14804
|
case "PRECEDING_MONTH": {
|
|
14679
|
-
const v = e(T.value.startDate),
|
|
14805
|
+
const v = e(T.value.startDate), A = e(T.value.endDate), m = A.diff(v, "month") + 1;
|
|
14680
14806
|
R.value = {
|
|
14681
|
-
startDate: v.subtract(
|
|
14682
|
-
endDate:
|
|
14807
|
+
startDate: v.subtract(m, "month").startOf("day").utc().toISOString(),
|
|
14808
|
+
endDate: A.subtract(m, "month").endOf("day").utc().toISOString()
|
|
14683
14809
|
};
|
|
14684
14810
|
break;
|
|
14685
14811
|
}
|
|
14686
14812
|
case "PRECEDING_PERIOD": {
|
|
14687
|
-
const v = e(T.value.startDate),
|
|
14813
|
+
const v = e(T.value.startDate), A = e(T.value.endDate), m = A.diff(v, "day") + 1;
|
|
14688
14814
|
R.value = {
|
|
14689
|
-
startDate: v.subtract(
|
|
14690
|
-
endDate:
|
|
14815
|
+
startDate: v.subtract(m, "day").startOf("day").utc().toISOString(),
|
|
14816
|
+
endDate: A.subtract(m, "day").endOf("day").utc().toISOString()
|
|
14691
14817
|
};
|
|
14692
14818
|
break;
|
|
14693
14819
|
}
|
|
14694
14820
|
case "PRECEDING_YEAR": {
|
|
14695
|
-
const v = e(T.value.startDate),
|
|
14821
|
+
const v = e(T.value.startDate), A = e(T.value.endDate), m = A.diff(v, "year") + 1;
|
|
14696
14822
|
R.value = {
|
|
14697
|
-
startDate: v.subtract(
|
|
14698
|
-
endDate:
|
|
14823
|
+
startDate: v.subtract(m, "year").startOf("day").utc().toISOString(),
|
|
14824
|
+
endDate: A.subtract(m, "year").endOf("day").utc().toISOString()
|
|
14699
14825
|
};
|
|
14700
14826
|
break;
|
|
14701
14827
|
}
|
|
@@ -14730,7 +14856,7 @@ const to = Jt(Rl, () => {
|
|
|
14730
14856
|
}), B = ue({ start: { hour: 0, minute: 0 }, end: { hour: 23, minute: 59 } }), F = ue(
|
|
14731
14857
|
s.value.timeOptions.findIndex((h) => h.isDefault) + 1
|
|
14732
14858
|
), H = ue([]), S = ue([]), z = ue(null), I = ue(null), X = ue(null), Y = ue(0);
|
|
14733
|
-
function
|
|
14859
|
+
function L(h) {
|
|
14734
14860
|
I.value = h, X.value = null;
|
|
14735
14861
|
}
|
|
14736
14862
|
function re(h) {
|
|
@@ -14789,7 +14915,7 @@ const to = Jt(Rl, () => {
|
|
|
14789
14915
|
businessLoadingId: I,
|
|
14790
14916
|
businessLoadedId: X,
|
|
14791
14917
|
businessDataVersion: Y,
|
|
14792
|
-
beginBusinessLoad:
|
|
14918
|
+
beginBusinessLoad: L,
|
|
14793
14919
|
completeBusinessLoad: re
|
|
14794
14920
|
};
|
|
14795
14921
|
});
|
|
@@ -14923,7 +15049,7 @@ async function cu(e) {
|
|
|
14923
15049
|
};
|
|
14924
15050
|
return await we.fetch(o);
|
|
14925
15051
|
}
|
|
14926
|
-
async function
|
|
15052
|
+
async function mu(e, t) {
|
|
14927
15053
|
let o = [];
|
|
14928
15054
|
try {
|
|
14929
15055
|
const { businessId: r } = se(), { dateRange: n } = to(), a = q(n.endDate).diff(n.startDate, "day"), s = {
|
|
@@ -14960,7 +15086,7 @@ async function xl(e, t) {
|
|
|
14960
15086
|
}, { headers: n, data: a } = await we.rawFetch(r), i = n["content-disposition"].split("filename=")[1].replaceAll('"', ""), s = window.URL.createObjectURL(new Blob([new Uint8Array(a).buffer])), l = document.createElement("a");
|
|
14961
15087
|
l.href = s, l.setAttribute("download", i), document.body.appendChild(l), l.click(), l.remove();
|
|
14962
15088
|
}
|
|
14963
|
-
async function
|
|
15089
|
+
async function Au(e) {
|
|
14964
15090
|
const { businessId: t } = se(), o = {
|
|
14965
15091
|
fetchType: de.Get,
|
|
14966
15092
|
url: `/${t}/biztory/${e}/payments`
|
|
@@ -15001,162 +15127,162 @@ var Er = { exports: {} };
|
|
|
15001
15127
|
} catch {
|
|
15002
15128
|
return null;
|
|
15003
15129
|
}
|
|
15004
|
-
}, getItem: function(v,
|
|
15005
|
-
var
|
|
15130
|
+
}, getItem: function(v, A) {
|
|
15131
|
+
var m = this;
|
|
15006
15132
|
return new Promise(function(g, p) {
|
|
15007
15133
|
try {
|
|
15008
|
-
var U =
|
|
15009
|
-
|
|
15134
|
+
var U = m.getItemSync(v);
|
|
15135
|
+
A == null || A(null, U), g(U);
|
|
15010
15136
|
} catch (j) {
|
|
15011
|
-
|
|
15137
|
+
A && A(j, null), p(j);
|
|
15012
15138
|
}
|
|
15013
15139
|
});
|
|
15014
|
-
}, setItem: function(v,
|
|
15140
|
+
}, setItem: function(v, A, m) {
|
|
15015
15141
|
return new Promise(function(g, p) {
|
|
15016
15142
|
try {
|
|
15017
|
-
localStorage.setItem(v,
|
|
15143
|
+
localStorage.setItem(v, A), m && m(null, A), g(A);
|
|
15018
15144
|
} catch (U) {
|
|
15019
|
-
|
|
15145
|
+
m && m(U, null), p(U);
|
|
15020
15146
|
}
|
|
15021
15147
|
});
|
|
15022
15148
|
} }, n = function() {
|
|
15023
15149
|
return n = Object.assign || function(v) {
|
|
15024
|
-
for (var
|
|
15150
|
+
for (var A, m = 1, g = arguments.length; m < g; m++) for (var p in A = arguments[m]) Object.prototype.hasOwnProperty.call(A, p) && (v[p] = A[p]);
|
|
15025
15151
|
return v;
|
|
15026
15152
|
}, n.apply(this, arguments);
|
|
15027
15153
|
};
|
|
15028
|
-
function a(v,
|
|
15029
|
-
return new (
|
|
15154
|
+
function a(v, A, m, g) {
|
|
15155
|
+
return new (m || (m = Promise))(function(p, U) {
|
|
15030
15156
|
function j(te) {
|
|
15031
15157
|
try {
|
|
15032
15158
|
Z(g.next(te));
|
|
15033
|
-
} catch (
|
|
15034
|
-
U(
|
|
15159
|
+
} catch (N) {
|
|
15160
|
+
U(N);
|
|
15035
15161
|
}
|
|
15036
15162
|
}
|
|
15037
|
-
function
|
|
15163
|
+
function k(te) {
|
|
15038
15164
|
try {
|
|
15039
15165
|
Z(g.throw(te));
|
|
15040
|
-
} catch (
|
|
15041
|
-
U(
|
|
15166
|
+
} catch (N) {
|
|
15167
|
+
U(N);
|
|
15042
15168
|
}
|
|
15043
15169
|
}
|
|
15044
15170
|
function Z(te) {
|
|
15045
|
-
var
|
|
15046
|
-
te.done ? p(te.value) : (
|
|
15047
|
-
_(
|
|
15048
|
-
})).then(j,
|
|
15171
|
+
var N;
|
|
15172
|
+
te.done ? p(te.value) : (N = te.value, N instanceof m ? N : new m(function(_) {
|
|
15173
|
+
_(N);
|
|
15174
|
+
})).then(j, k);
|
|
15049
15175
|
}
|
|
15050
15176
|
Z((g = g.apply(v, [])).next());
|
|
15051
15177
|
});
|
|
15052
15178
|
}
|
|
15053
|
-
function i(v,
|
|
15054
|
-
var
|
|
15179
|
+
function i(v, A) {
|
|
15180
|
+
var m, g, p, U, j = { label: 0, sent: function() {
|
|
15055
15181
|
if (1 & p[0]) throw p[1];
|
|
15056
15182
|
return p[1];
|
|
15057
15183
|
}, trys: [], ops: [] };
|
|
15058
|
-
return U = { next:
|
|
15184
|
+
return U = { next: k(0), throw: k(1), return: k(2) }, typeof Symbol == "function" && (U[Symbol.iterator] = function() {
|
|
15059
15185
|
return this;
|
|
15060
15186
|
}), U;
|
|
15061
|
-
function
|
|
15187
|
+
function k(Z) {
|
|
15062
15188
|
return function(te) {
|
|
15063
|
-
return function(
|
|
15064
|
-
if (
|
|
15189
|
+
return function(N) {
|
|
15190
|
+
if (m) throw new TypeError("Generator is already executing.");
|
|
15065
15191
|
for (; j; ) try {
|
|
15066
|
-
if (
|
|
15067
|
-
switch (g = 0, p && (
|
|
15192
|
+
if (m = 1, g && (p = 2 & N[0] ? g.return : N[0] ? g.throw || ((p = g.return) && p.call(g), 0) : g.next) && !(p = p.call(g, N[1])).done) return p;
|
|
15193
|
+
switch (g = 0, p && (N = [2 & N[0], p.value]), N[0]) {
|
|
15068
15194
|
case 0:
|
|
15069
15195
|
case 1:
|
|
15070
|
-
p =
|
|
15196
|
+
p = N;
|
|
15071
15197
|
break;
|
|
15072
15198
|
case 4:
|
|
15073
|
-
return j.label++, { value:
|
|
15199
|
+
return j.label++, { value: N[1], done: !1 };
|
|
15074
15200
|
case 5:
|
|
15075
|
-
j.label++, g =
|
|
15201
|
+
j.label++, g = N[1], N = [0];
|
|
15076
15202
|
continue;
|
|
15077
15203
|
case 7:
|
|
15078
|
-
|
|
15204
|
+
N = j.ops.pop(), j.trys.pop();
|
|
15079
15205
|
continue;
|
|
15080
15206
|
default:
|
|
15081
|
-
if (p = j.trys, !((p = p.length > 0 && p[p.length - 1]) ||
|
|
15207
|
+
if (p = j.trys, !((p = p.length > 0 && p[p.length - 1]) || N[0] !== 6 && N[0] !== 2)) {
|
|
15082
15208
|
j = 0;
|
|
15083
15209
|
continue;
|
|
15084
15210
|
}
|
|
15085
|
-
if (
|
|
15086
|
-
j.label =
|
|
15211
|
+
if (N[0] === 3 && (!p || N[1] > p[0] && N[1] < p[3])) {
|
|
15212
|
+
j.label = N[1];
|
|
15087
15213
|
break;
|
|
15088
15214
|
}
|
|
15089
|
-
if (
|
|
15090
|
-
j.label = p[1], p =
|
|
15215
|
+
if (N[0] === 6 && j.label < p[1]) {
|
|
15216
|
+
j.label = p[1], p = N;
|
|
15091
15217
|
break;
|
|
15092
15218
|
}
|
|
15093
15219
|
if (p && j.label < p[2]) {
|
|
15094
|
-
j.label = p[2], j.ops.push(
|
|
15220
|
+
j.label = p[2], j.ops.push(N);
|
|
15095
15221
|
break;
|
|
15096
15222
|
}
|
|
15097
15223
|
p[2] && j.ops.pop(), j.trys.pop();
|
|
15098
15224
|
continue;
|
|
15099
15225
|
}
|
|
15100
|
-
|
|
15226
|
+
N = A.call(v, j);
|
|
15101
15227
|
} catch (_) {
|
|
15102
|
-
|
|
15228
|
+
N = [6, _], g = 0;
|
|
15103
15229
|
} finally {
|
|
15104
|
-
|
|
15230
|
+
m = p = 0;
|
|
15105
15231
|
}
|
|
15106
|
-
if (5 &
|
|
15107
|
-
return { value:
|
|
15232
|
+
if (5 & N[0]) throw N[1];
|
|
15233
|
+
return { value: N[0] ? N[1] : void 0, done: !0 };
|
|
15108
15234
|
}([Z, te]);
|
|
15109
15235
|
};
|
|
15110
15236
|
}
|
|
15111
15237
|
}
|
|
15112
|
-
function s(v,
|
|
15113
|
-
for (var g, p = 0, U =
|
|
15114
|
-
return v.concat(g || Array.prototype.slice.call(
|
|
15238
|
+
function s(v, A, m) {
|
|
15239
|
+
for (var g, p = 0, U = A.length; p < U; p++) !g && p in A || (g || (g = Array.prototype.slice.call(A, 0, p)), g[p] = A[p]);
|
|
15240
|
+
return v.concat(g || Array.prototype.slice.call(A));
|
|
15115
15241
|
}
|
|
15116
|
-
var l = function v(
|
|
15117
|
-
if (
|
|
15118
|
-
if (
|
|
15119
|
-
if (
|
|
15242
|
+
var l = function v(A, m) {
|
|
15243
|
+
if (A === m) return !0;
|
|
15244
|
+
if (A && m && typeof A == "object" && typeof m == "object") {
|
|
15245
|
+
if (A.constructor !== m.constructor) return !1;
|
|
15120
15246
|
var g, p, U;
|
|
15121
|
-
if (Array.isArray(
|
|
15122
|
-
if ((g =
|
|
15123
|
-
for (p = g; p-- != 0; ) if (!v(
|
|
15247
|
+
if (Array.isArray(A)) {
|
|
15248
|
+
if ((g = A.length) != m.length) return !1;
|
|
15249
|
+
for (p = g; p-- != 0; ) if (!v(A[p], m[p])) return !1;
|
|
15124
15250
|
return !0;
|
|
15125
15251
|
}
|
|
15126
|
-
if (
|
|
15127
|
-
if (
|
|
15128
|
-
if (
|
|
15129
|
-
if ((g = (U = Object.keys(
|
|
15130
|
-
for (p = g; p-- != 0; ) if (!Object.prototype.hasOwnProperty.call(
|
|
15252
|
+
if (A.constructor === RegExp) return A.source === m.source && A.flags === m.flags;
|
|
15253
|
+
if (A.valueOf !== Object.prototype.valueOf) return A.valueOf() === m.valueOf();
|
|
15254
|
+
if (A.toString !== Object.prototype.toString) return A.toString() === m.toString();
|
|
15255
|
+
if ((g = (U = Object.keys(A)).length) !== Object.keys(m).length) return !1;
|
|
15256
|
+
for (p = g; p-- != 0; ) if (!Object.prototype.hasOwnProperty.call(m, U[p])) return !1;
|
|
15131
15257
|
for (p = g; p-- != 0; ) {
|
|
15132
15258
|
var j = U[p];
|
|
15133
|
-
if (!v(
|
|
15259
|
+
if (!v(A[j], m[j])) return !1;
|
|
15134
15260
|
}
|
|
15135
15261
|
return !0;
|
|
15136
15262
|
}
|
|
15137
|
-
return
|
|
15263
|
+
return A != A && m != m;
|
|
15138
15264
|
};
|
|
15139
|
-
function d(v,
|
|
15140
|
-
var
|
|
15141
|
-
var p = v == null ? void 0 : v[g], U =
|
|
15265
|
+
function d(v, A) {
|
|
15266
|
+
var m = Object.keys(A || {}).filter(function(g) {
|
|
15267
|
+
var p = v == null ? void 0 : v[g], U = A == null ? void 0 : A[g];
|
|
15142
15268
|
return !l(p, U);
|
|
15143
15269
|
});
|
|
15144
15270
|
return Object.keys(v || {}).filter(function(g) {
|
|
15145
|
-
Object.keys(
|
|
15146
|
-
}), Object.keys(
|
|
15271
|
+
Object.keys(A || {}).includes(g) || m.push(g);
|
|
15272
|
+
}), Object.keys(m).length ? m : null;
|
|
15147
15273
|
}
|
|
15148
15274
|
var u, C;
|
|
15149
|
-
function K(v,
|
|
15275
|
+
function K(v, A, m) {
|
|
15150
15276
|
var g = "shortString", p = !0;
|
|
15151
|
-
typeof
|
|
15277
|
+
typeof m == "number" && (g = "javaDouble", p = !1), v[g] = v[g] || {}, v[g][A] = p ? m + "" : m;
|
|
15152
15278
|
}
|
|
15153
15279
|
function T(v) {
|
|
15154
15280
|
return !!v && typeof v == "object" && v.value !== void 0;
|
|
15155
15281
|
}
|
|
15156
15282
|
function R(v) {
|
|
15157
|
-
return Object.fromEntries(Object.entries(v).map(function(
|
|
15158
|
-
var
|
|
15159
|
-
return [
|
|
15283
|
+
return Object.fromEntries(Object.entries(v).map(function(A) {
|
|
15284
|
+
var m = A[0], g = A[1];
|
|
15285
|
+
return [m, T(g) ? g : { value: g }];
|
|
15160
15286
|
}));
|
|
15161
15287
|
}
|
|
15162
15288
|
function B(v) {
|
|
@@ -15165,130 +15291,130 @@ var Er = { exports: {} };
|
|
|
15165
15291
|
(function(v) {
|
|
15166
15292
|
v.NONE = "NONE", v.DEFAULT_FLAGS = "DEFAULT_FLAGS", v.CACHE = "CACHE", v.SERVER = "SERVER";
|
|
15167
15293
|
})(u || (u = {}));
|
|
15168
|
-
var F, H = null, S = "FLAGSMITH_EVENT", z = S, I = "https://edge.api.flagsmith.com/api/v1/", X = "flagsmith_value_", Y = "flagsmith_enabled_",
|
|
15169
|
-
function v(
|
|
15170
|
-
var
|
|
15294
|
+
var F, H = null, S = "FLAGSMITH_EVENT", z = S, I = "https://edge.api.flagsmith.com/api/v1/", X = "flagsmith_value_", Y = "flagsmith_enabled_", L = "flagsmith_trait_", re = function() {
|
|
15295
|
+
function v(A) {
|
|
15296
|
+
var m = this;
|
|
15171
15297
|
this._trigger = null, this._triggerLoadingState = null, this.timestamp = null, this.isLoading = !1, this.eventSource = null, this.getFlags = function() {
|
|
15172
|
-
var g =
|
|
15173
|
-
|
|
15174
|
-
var j = "".concat(
|
|
15175
|
-
var te,
|
|
15176
|
-
if (Z && j === "".concat(
|
|
15298
|
+
var g = m, p = g.api, U = g.evaluationContext;
|
|
15299
|
+
m.log("Get Flags"), m.isLoading = !0, m.loadingState.isFetching || m.setLoadingState(n(n({}, m.loadingState), { isFetching: !0 }));
|
|
15300
|
+
var j = "".concat(m.getContext().identity), k = function(Z) {
|
|
15301
|
+
var te, N, _, Ae;
|
|
15302
|
+
if (Z && j === "".concat(m.getContext().identity)) {
|
|
15177
15303
|
var Fe = Z.flags, ye = Z.traits, De = Z.identifier;
|
|
15178
|
-
|
|
15304
|
+
m.isLoading = !1;
|
|
15179
15305
|
var Be = {}, Re = {};
|
|
15180
15306
|
ye = ye || [], (Fe = Fe || []).forEach(function(le) {
|
|
15181
15307
|
Be[le.feature.name.toLowerCase().replace(/ /g, "_")] = { id: le.feature.id, enabled: le.enabled, value: le.feature_state_value };
|
|
15182
15308
|
}), ye.forEach(function(le) {
|
|
15183
15309
|
Re[le.trait_key.toLowerCase().replace(/ /g, "_")] = { transient: le.transient, value: le.trait_value };
|
|
15184
|
-
}),
|
|
15185
|
-
var Ee = d(
|
|
15186
|
-
if ((De || Object.keys(Re).length) && (
|
|
15187
|
-
if (
|
|
15310
|
+
}), m.oldFlags = n({}, m.flags);
|
|
15311
|
+
var Ee = d(m.oldFlags, Be), tt = d((te = m.evaluationContext.identity) === null || te === void 0 ? void 0 : te.traits, Re);
|
|
15312
|
+
if ((De || Object.keys(Re).length) && (m.evaluationContext.identity = n(n({}, m.evaluationContext.identity), { traits: Re }), De && (m.evaluationContext.identity.identifier = De)), m.flags = Be, m.updateStorage(), m._onChange(m.oldFlags, { isFromServer: !0, flagsChanged: Ee, traitsChanged: tt }, m._loadedState(null, u.SERVER)), m.datadogRum) try {
|
|
15313
|
+
if (m.datadogRum.trackTraits) {
|
|
15188
15314
|
var ot = {};
|
|
15189
|
-
Object.keys(((
|
|
15190
|
-
ot[
|
|
15315
|
+
Object.keys(((N = m.evaluationContext.identity) === null || N === void 0 ? void 0 : N.traits) || {}).map(function(le) {
|
|
15316
|
+
ot[L + le] = m.getTrait(le);
|
|
15191
15317
|
});
|
|
15192
|
-
var ft = n(n(n({},
|
|
15193
|
-
|
|
15318
|
+
var ft = n(n(n({}, m.datadogRum.client.getUser()), { id: m.datadogRum.client.getUser().id || ((_ = m.evaluationContext.identity) === null || _ === void 0 ? void 0 : _.identifier) }), ot);
|
|
15319
|
+
m.log("Setting Datadog user", ft), m.datadogRum.client.setUser(ft);
|
|
15194
15320
|
}
|
|
15195
15321
|
} catch (le) {
|
|
15196
15322
|
console.error(le);
|
|
15197
15323
|
}
|
|
15198
|
-
if (
|
|
15324
|
+
if (m.dtrum) try {
|
|
15199
15325
|
var Te = { javaDouble: {}, date: {}, shortString: {}, javaLongOrObject: {} };
|
|
15200
|
-
Object.keys(
|
|
15201
|
-
K(Te, X + le,
|
|
15202
|
-
}), Object.keys(((
|
|
15203
|
-
K(Te,
|
|
15204
|
-
}),
|
|
15326
|
+
Object.keys(m.flags).map(function(le) {
|
|
15327
|
+
K(Te, X + le, m.getValue(le, { skipAnalytics: !0 })), K(Te, Y + le, m.hasFeature(le, { skipAnalytics: !0 }));
|
|
15328
|
+
}), Object.keys(((Ae = m.evaluationContext.identity) === null || Ae === void 0 ? void 0 : Ae.traits) || {}).map(function(le) {
|
|
15329
|
+
K(Te, L + le, m.getTrait(le));
|
|
15330
|
+
}), m.log("Sending javaLongOrObject traits to dynatrace", Te.javaLongOrObject), m.log("Sending date traits to dynatrace", Te.date), m.log("Sending shortString traits to dynatrace", Te.shortString), m.log("Sending javaDouble to dynatrace", Te.javaDouble), m.dtrum.sendSessionProperties(Te.javaLongOrObject, Te.date, Te.shortString, Te.javaDouble);
|
|
15205
15331
|
} catch (le) {
|
|
15206
15332
|
console.error(le);
|
|
15207
15333
|
}
|
|
15208
15334
|
}
|
|
15209
15335
|
};
|
|
15210
|
-
return U.identity ? Promise.all([U.identity.traits && Object.keys(U.identity.traits).length || !U.identity.identifier ?
|
|
15211
|
-
var te = Z[0],
|
|
15212
|
-
return { trait_key: te, trait_value:
|
|
15336
|
+
return U.identity ? Promise.all([U.identity.traits && Object.keys(U.identity.traits).length || !U.identity.identifier ? m.getJSON(p + "identities/", "POST", JSON.stringify({ identifier: U.identity.identifier, transient: U.identity.transient, traits: Object.entries(U.identity.traits).map(function(Z) {
|
|
15337
|
+
var te = Z[0], N = Z[1];
|
|
15338
|
+
return { trait_key: te, trait_value: N == null ? void 0 : N.value, transient: N == null ? void 0 : N.transient };
|
|
15213
15339
|
}).filter(function(Z) {
|
|
15214
|
-
return Z.trait_value !== void 0 || (
|
|
15215
|
-
}) })) :
|
|
15216
|
-
return
|
|
15340
|
+
return Z.trait_value !== void 0 || (m.log("Warning - attempted to set an undefined trait value for key", Z.trait_key), !1);
|
|
15341
|
+
}) })) : m.getJSON(p + "identities/?identifier=" + encodeURIComponent(U.identity.identifier) + (U.identity.transient ? "&transient=true" : ""))]).then(function(Z) {
|
|
15342
|
+
return m.evaluationContext.identity = n(n({}, m.evaluationContext.identity), { traits: {} }), k(Z == null ? void 0 : Z[0]);
|
|
15217
15343
|
}).catch(function(Z) {
|
|
15218
|
-
var te = Z.message,
|
|
15219
|
-
return Promise.reject(
|
|
15220
|
-
}) :
|
|
15221
|
-
return
|
|
15344
|
+
var te = Z.message, N = new Error(te);
|
|
15345
|
+
return Promise.reject(N);
|
|
15346
|
+
}) : m.getJSON(p + "flags/").then(function(Z) {
|
|
15347
|
+
return k({ flags: Z, traits: void 0 });
|
|
15222
15348
|
});
|
|
15223
15349
|
}, this.analyticsFlags = function() {
|
|
15224
|
-
var g =
|
|
15225
|
-
if (
|
|
15226
|
-
if (
|
|
15227
|
-
var U =
|
|
15228
|
-
|
|
15350
|
+
var g = m.api;
|
|
15351
|
+
if (m.evaluationEvent && m.evaluationContext.environment && m.evaluationEvent[m.evaluationContext.environment.apiKey]) return m.evaluationEvent && Object.getOwnPropertyNames(m.evaluationEvent).length !== 0 && Object.getOwnPropertyNames(m.evaluationEvent[m.evaluationContext.environment.apiKey]).length !== 0 ? m.getJSON(g + "analytics/flags/", "POST", JSON.stringify(m.evaluationEvent[m.evaluationContext.environment.apiKey])).then(function(p) {
|
|
15352
|
+
if (m.evaluationContext.environment) {
|
|
15353
|
+
var U = m.getState();
|
|
15354
|
+
m.evaluationEvent || (m.evaluationEvent = {}), m.evaluationEvent[m.evaluationContext.environment.apiKey] = {}, m.setState(n(n({}, U), { evaluationEvent: m.evaluationEvent })), m.updateEventStorage();
|
|
15229
15355
|
}
|
|
15230
15356
|
}).catch(function(p) {
|
|
15231
|
-
|
|
15357
|
+
m.log("Exception fetching evaluationEvent", p);
|
|
15232
15358
|
}) : void 0;
|
|
15233
15359
|
}, this.datadogRum = null, this.loadingState = { isLoading: !0, isFetching: !0, error: null, source: u.NONE }, this.canUseStorage = !1, this.analyticsInterval = null, this.api = null, this.cacheFlags = !1, this.ts = null, this.enableAnalytics = !1, this.enableLogs = !1, this.evaluationContext = {}, this.evaluationEvent = null, this.flags = null, this.getFlagInterval = null, this.headers = null, this.initialised = !1, this.oldFlags = null, this.onChange = null, this.onError = null, this.ticks = null, this.timer = null, this.dtrum = null, this.withTraits = null, this.cacheOptions = { ttl: 0, skipAPI: !1, loadStale: !1, storageKey: void 0 }, this.getValue = function(g, p, U) {
|
|
15234
|
-
var j =
|
|
15235
|
-
if (j && (
|
|
15360
|
+
var j = m.flags && m.flags[g.toLowerCase().replace(/ /g, "_")], k = null;
|
|
15361
|
+
if (j && (k = j.value), p != null && p.skipAnalytics || U || m.evaluateFlag(g, "VALUE"), k === null && (p == null ? void 0 : p.fallback) !== void 0) return p.fallback;
|
|
15236
15362
|
if (p != null && p.json) try {
|
|
15237
|
-
return
|
|
15363
|
+
return k === null ? (m.log("Tried to parse null flag as JSON: " + g), null) : JSON.parse(k);
|
|
15238
15364
|
} catch {
|
|
15239
15365
|
return p.fallback;
|
|
15240
15366
|
}
|
|
15241
|
-
return
|
|
15367
|
+
return k;
|
|
15242
15368
|
}, this.getTrait = function(g) {
|
|
15243
15369
|
var p, U;
|
|
15244
|
-
return ((p =
|
|
15370
|
+
return ((p = m.evaluationContext.identity) === null || p === void 0 ? void 0 : p.traits) && ((U = m.evaluationContext.identity.traits[g.toLowerCase().replace(/ /g, "_")]) === null || U === void 0 ? void 0 : U.value);
|
|
15245
15371
|
}, this.getAllTraits = function() {
|
|
15246
15372
|
var g;
|
|
15247
|
-
return Object.fromEntries(Object.entries(((g =
|
|
15373
|
+
return Object.fromEntries(Object.entries(((g = m.evaluationContext.identity) === null || g === void 0 ? void 0 : g.traits) || {}).map(function(p) {
|
|
15248
15374
|
var U = p[0], j = p[1];
|
|
15249
15375
|
return [U, j == null ? void 0 : j.value];
|
|
15250
15376
|
}));
|
|
15251
15377
|
}, this.setContext = function(g) {
|
|
15252
15378
|
var p = B(g);
|
|
15253
|
-
return
|
|
15379
|
+
return m.evaluationContext = n(n({}, p), { environment: p.environment || m.evaluationContext.environment }), m.initialised ? m.getFlags() : Promise.resolve();
|
|
15254
15380
|
}, this.getContext = function() {
|
|
15255
|
-
return
|
|
15381
|
+
return m.evaluationContext;
|
|
15256
15382
|
}, this.updateContext = function(g) {
|
|
15257
|
-
return
|
|
15383
|
+
return m.setContext(n(n({}, m.getContext()), g));
|
|
15258
15384
|
}, this.setTrait = function(g, p) {
|
|
15259
15385
|
var U;
|
|
15260
|
-
if (
|
|
15386
|
+
if (m.api) return m.setContext(n(n({}, m.evaluationContext), { identity: n(n({}, m.evaluationContext.identity), { traits: n(n({}, (U = m.evaluationContext.identity) === null || U === void 0 ? void 0 : U.traits), R(Object.fromEntries([[g, p]]))) }) }));
|
|
15261
15387
|
}, this.setTraits = function(g) {
|
|
15262
15388
|
var p;
|
|
15263
|
-
if (
|
|
15264
|
-
var j = U[0],
|
|
15265
|
-
return [j, T(
|
|
15389
|
+
if (m.api) return m.setContext(n(n({}, m.evaluationContext), { identity: n(n({}, m.evaluationContext.identity), { traits: n(n({}, (p = m.evaluationContext.identity) === null || p === void 0 ? void 0 : p.traits), Object.fromEntries(Object.entries(g).map(function(U) {
|
|
15390
|
+
var j = U[0], k = U[1];
|
|
15391
|
+
return [j, T(k) ? k : { value: k }];
|
|
15266
15392
|
}))) }) }));
|
|
15267
15393
|
console.error("Attempted to setTraits a user before calling flagsmith.init. Call flagsmith.init first, if you wish to prevent it sending a request for flags, call init with preventFetch:true.");
|
|
15268
15394
|
}, this.hasFeature = function(g, p) {
|
|
15269
|
-
var U = typeof p == "object", j =
|
|
15270
|
-
return !j && U && p.fallback !== void 0 ?
|
|
15395
|
+
var U = typeof p == "object", j = m.flags && m.flags[g.toLowerCase().replace(/ /g, "_")], k = !1;
|
|
15396
|
+
return !j && U && p.fallback !== void 0 ? k = p == null ? void 0 : p.fallback : j && j.enabled && (k = !0), (U && !p.skipAnalytics || !p) && m.evaluateFlag(g, "ENABLED"), k;
|
|
15271
15397
|
}, this.getStorageKey = function() {
|
|
15272
15398
|
var g, p;
|
|
15273
|
-
return ((g =
|
|
15399
|
+
return ((g = m.cacheOptions) === null || g === void 0 ? void 0 : g.storageKey) || "FLAGSMITH_DB_" + ((p = m.evaluationContext.environment) === null || p === void 0 ? void 0 : p.apiKey);
|
|
15274
15400
|
}, this.getJSON = function(g, p, U) {
|
|
15275
|
-
var j,
|
|
15276
|
-
|
|
15277
|
-
var Z =
|
|
15278
|
-
|
|
15279
|
-
var
|
|
15401
|
+
var j, k = m;
|
|
15402
|
+
k.evaluationContext;
|
|
15403
|
+
var Z = k.headers, te = { method: p || "GET", body: U, cache: "no-cache", headers: {} };
|
|
15404
|
+
m.evaluationContext.environment && (te.headers["X-Environment-Key"] = m.evaluationContext.environment.apiKey), p && p !== "GET" && (te.headers["Content-Type"] = "application/json; charset=utf-8"), Z && Object.assign(te.headers, Z), C || console.error("Flagsmith: fetch is undefined, please specify a fetch implementation into flagsmith.init to support SSR.");
|
|
15405
|
+
var N = "".concat((j = m.evaluationContext.identity) === null || j === void 0 ? void 0 : j.identifier);
|
|
15280
15406
|
return C(g, te).then(function(_) {
|
|
15281
|
-
var
|
|
15282
|
-
if (
|
|
15407
|
+
var Ae, Fe, ye = "".concat((Ae = m.evaluationContext.identity) === null || Ae === void 0 ? void 0 : Ae.identifier);
|
|
15408
|
+
if (N === ye) {
|
|
15283
15409
|
var De = (Fe = _.headers) === null || Fe === void 0 ? void 0 : Fe.get("x-flagsmith-document-updated-at");
|
|
15284
15410
|
if (De) try {
|
|
15285
15411
|
var Be = parseFloat(De);
|
|
15286
15412
|
if (isNaN(Be)) return Promise.reject("Failed to parse x-flagsmith-document-updated-at");
|
|
15287
|
-
|
|
15413
|
+
m.timestamp = Be;
|
|
15288
15414
|
} catch (Re) {
|
|
15289
|
-
|
|
15415
|
+
m.log(Re, "Failed to parse x-flagsmith-document-updated-at", De);
|
|
15290
15416
|
}
|
|
15291
|
-
return
|
|
15417
|
+
return m.log("Fetch response: " + _.status + " " + (p || "GET") + 0 + g), _.text().then(function(Re) {
|
|
15292
15418
|
var Ee = Re;
|
|
15293
15419
|
try {
|
|
15294
15420
|
Ee = JSON.parse(Re);
|
|
@@ -15297,36 +15423,36 @@ var Er = { exports: {} };
|
|
|
15297
15423
|
return !Ee && _.status && (Ee = "API Response: ".concat(_.status)), _.status && _.status >= 200 && _.status < 300 ? Ee : Promise.reject(new Error(Ee));
|
|
15298
15424
|
});
|
|
15299
15425
|
}
|
|
15300
|
-
|
|
15426
|
+
m.log("Received response with identity mismatch, ignoring response. Requested: ".concat(N, ", Current: ").concat(ye));
|
|
15301
15427
|
});
|
|
15302
15428
|
}, this.evaluateFlag = function(g, p) {
|
|
15303
|
-
if (
|
|
15304
|
-
if (!
|
|
15305
|
-
|
|
15429
|
+
if (m.datadogRum && (m.datadogRum.client.addFeatureFlagEvaluation ? p === "VALUE" ? m.datadogRum.client.addFeatureFlagEvaluation(X + g, m.getValue(g, {}, !0)) : m.datadogRum.client.addFeatureFlagEvaluation(Y + g, m.hasFeature(g, !0)) : console.error("Flagsmith: Your datadog RUM client does not support the function addFeatureFlagEvaluation, please update it.")), m.enableAnalytics) {
|
|
15430
|
+
if (!m.evaluationEvent || !m.evaluationContext.environment) return;
|
|
15431
|
+
m.evaluationEvent[m.evaluationContext.environment.apiKey] || (m.evaluationEvent[m.evaluationContext.environment.apiKey] = {}), m.evaluationEvent[m.evaluationContext.environment.apiKey][g] === void 0 && (m.evaluationEvent[m.evaluationContext.environment.apiKey][g] = 0), m.evaluationEvent[m.evaluationContext.environment.apiKey][g] += 1;
|
|
15306
15432
|
}
|
|
15307
|
-
|
|
15433
|
+
m.updateEventStorage();
|
|
15308
15434
|
}, this._onChange = function(g, p, U) {
|
|
15309
|
-
var j,
|
|
15310
|
-
|
|
15311
|
-
}, C =
|
|
15435
|
+
var j, k;
|
|
15436
|
+
m.setLoadingState(U), (j = m.onChange) === null || j === void 0 || j.call(m, g, p, m.loadingState), (k = m._trigger) === null || k === void 0 || k.call(m);
|
|
15437
|
+
}, C = A.fetch ? A.fetch : typeof fetch < "u" ? fetch : globalThis == null ? void 0 : globalThis.fetch, this.canUseStorage = typeof window < "u" || !!A.browserlessStorage, this.log("Constructing flagsmith instance " + A), A.eventSource && (F = A.eventSource), A.AsyncStorage && (H = A.AsyncStorage);
|
|
15312
15438
|
}
|
|
15313
|
-
return v.prototype.init = function(
|
|
15314
|
-
var
|
|
15439
|
+
return v.prototype.init = function(A) {
|
|
15440
|
+
var m, g, p;
|
|
15315
15441
|
return a(this, void 0, void 0, function() {
|
|
15316
|
-
var U, j,
|
|
15442
|
+
var U, j, k, Z, te, N, _, Ae, Fe, ye, De, Be, Re, Ee, tt, ot, ft, Te, le, Mo, Xt, Nr, Dt, So, Gr, qr, Vo, kr, Qo, Mt, Rt, Lr, He = this;
|
|
15317
15443
|
return i(this, function(Qe) {
|
|
15318
15444
|
switch (Qe.label) {
|
|
15319
15445
|
case 0:
|
|
15320
|
-
U = B(
|
|
15446
|
+
U = B(A.evaluationContext || this.evaluationContext), Qe.label = 1;
|
|
15321
15447
|
case 1:
|
|
15322
|
-
if (Qe.trys.push([1, 13, , 14]), j =
|
|
15448
|
+
if (Qe.trys.push([1, 13, , 14]), j = A.environmentID, k = A.api, Z = k === void 0 ? I : k, te = A.headers, N = A.onChange, _ = A.cacheFlags, Ae = A.datadogRum, Fe = A.onError, ye = A.defaultFlags, De = A.fetch, Be = A.preventFetch, Re = A.enableLogs, Ee = A.enableDynatrace, tt = A.enableAnalytics, ot = A.realtime, ft = A.eventSourceUrl, Te = ft === void 0 ? "https://realtime.flagsmith.com/" : ft, le = A.AsyncStorage, Mo = A.identity, Xt = A.traits, Nr = A.state, Dt = A.cacheOptions, So = A.angularHttpClient, Gr = A._trigger, qr = A._triggerLoadingState, U.environment = j ? { apiKey: j } : U.environment, !U.environment || !U.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
|
|
15323
15449
|
if (U.identity = Mo || Xt ? { identifier: Mo, traits: Xt ? Object.fromEntries(Object.entries(Xt).map(function(Se) {
|
|
15324
15450
|
return [Se[0], { value: Se[1] }];
|
|
15325
|
-
})) : {} } : U.identity, this.evaluationContext = U, this.api = Z, this.headers = te, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange =
|
|
15451
|
+
})) : {} } : U.identity, this.evaluationContext = U, this.api = Z, this.headers = te, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = N, Vo = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = Gr || this._trigger, this._triggerLoadingState = qr || this._triggerLoadingState, this.onError = function(Se) {
|
|
15326
15452
|
He.setLoadingState(n(n({}, He.loadingState), { isFetching: !1, isLoading: !1, error: Se })), Fe == null || Fe(Se);
|
|
15327
|
-
}, this.enableLogs = Re || !1, this.cacheOptions = Dt ? { skipAPI: !!Dt.skipAPI, ttl: Dt.ttl || 0, storageKey: Dt.storageKey, loadStale: !!Dt.loadStale } : this.cacheOptions, !this.cacheOptions.ttl && this.cacheOptions.skipAPI && console.warn("Flagsmith: you have set a cache ttl of 0 and are skipping API calls, this means the API will not be hit unless you clear local storage."), De && (C = De), this.enableAnalytics = tt || !1, this.flags = Object.assign({}, ye) || {}, this.datadogRum =
|
|
15328
|
-
return function(qe,
|
|
15329
|
-
var st =
|
|
15453
|
+
}, this.enableLogs = Re || !1, this.cacheOptions = Dt ? { skipAPI: !!Dt.skipAPI, ttl: Dt.ttl || 0, storageKey: Dt.storageKey, loadStale: !!Dt.loadStale } : this.cacheOptions, !this.cacheOptions.ttl && this.cacheOptions.skipAPI && console.warn("Flagsmith: you have set a cache ttl of 0 and are skipping API calls, this means the API will not be hit unless you clear local storage."), De && (C = De), this.enableAnalytics = tt || !1, this.flags = Object.assign({}, ye) || {}, this.datadogRum = Ae || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = H !== void 0 && !!_, z = "FLAGSMITH_EVENT_" + U.environment.apiKey, le && (H = le), ot && typeof window < "u" && this.setupRealtime(Te, U.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = n(n({}, this.loadingState), { isLoading: !1, source: u.DEFAULT_FLAGS })), this.setState(Nr), this.log("Initialising with properties", A, this), Ee && (typeof dtrum > "u" ? console.error("You have attempted to enable dynatrace but dtrum is undefined, please check you have the Dynatrace RUM JavaScript API installed.") : this.dtrum = dtrum), So && (C = /* @__PURE__ */ function(Se) {
|
|
15454
|
+
return function(qe, ke) {
|
|
15455
|
+
var st = ke.headers, fe = ke.method, Ut = ke.body;
|
|
15330
15456
|
return new Promise(function(gt) {
|
|
15331
15457
|
switch (fe) {
|
|
15332
15458
|
case "GET":
|
|
@@ -15354,24 +15480,24 @@ var Er = { exports: {} };
|
|
|
15354
15480
|
He.analyticsInterval = setInterval(He.analyticsFlags, He.ticks);
|
|
15355
15481
|
}), this.enableAnalytics && (this.analyticsInterval && clearInterval(this.analyticsInterval), H && this.canUseStorage && H.getItem(z, function(Se, qe) {
|
|
15356
15482
|
if (qe && He.evaluationContext.environment) {
|
|
15357
|
-
var
|
|
15358
|
-
if (
|
|
15483
|
+
var ke = JSON.parse(qe);
|
|
15484
|
+
if (ke[He.evaluationContext.environment.apiKey]) {
|
|
15359
15485
|
var st = He.getState();
|
|
15360
|
-
He.log("Retrieved events from cache", qe), He.setState(n(n({}, st), { evaluationEvent:
|
|
15486
|
+
He.log("Retrieved events from cache", qe), He.setState(n(n({}, st), { evaluationEvent: ke[He.evaluationContext.environment.apiKey] }));
|
|
15361
15487
|
}
|
|
15362
15488
|
}
|
|
15363
15489
|
})), !_) return [3, 9];
|
|
15364
15490
|
if (!H || !this.canUseStorage) return [3, 8];
|
|
15365
|
-
|
|
15491
|
+
kr = function(Se, qe) {
|
|
15366
15492
|
return a(He, void 0, void 0, function() {
|
|
15367
|
-
var
|
|
15493
|
+
var ke, st, fe, Ut, gt, rt, No, Yr, Go, qo, ko, Lo, Yo, Zo, Wo, Jo, _o, $o, er, tr, or, rr, nr, ar, Zr = this;
|
|
15368
15494
|
return i(this, function(ct) {
|
|
15369
15495
|
switch (ct.label) {
|
|
15370
15496
|
case 0:
|
|
15371
15497
|
if (!qe) return [3, 7];
|
|
15372
|
-
|
|
15498
|
+
ke = null, st = null, ct.label = 1;
|
|
15373
15499
|
case 1:
|
|
15374
|
-
return ct.trys.push([1, 5, , 6]), fe = JSON.parse(qe), Ut = !1, gt = !1, fe && fe.api === this.api && ((qo = (
|
|
15500
|
+
return ct.trys.push([1, 5, , 6]), fe = JSON.parse(qe), Ut = !1, gt = !1, fe && fe.api === this.api && ((qo = (Go = fe.evaluationContext) === null || Go === void 0 ? void 0 : Go.environment) === null || qo === void 0 ? void 0 : qo.apiKey) === ((ko = this.evaluationContext.environment) === null || ko === void 0 ? void 0 : ko.apiKey) && (rt = !0, this.evaluationContext.identity && ((Yo = (Lo = fe.evaluationContext) === null || Lo === void 0 ? void 0 : Lo.identity) === null || Yo === void 0 ? void 0 : Yo.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((Wo = (Zo = fe.evaluationContext) === null || Zo === void 0 ? void 0 : Zo.identity) === null || Wo === void 0 ? void 0 : Wo.identifier) + " to " + this.evaluationContext.identity.identifier), rt = !1), this.cacheOptions.ttl && (!fe.ts || (/* @__PURE__ */ new Date()).valueOf() - fe.ts > this.cacheOptions.ttl) && (fe.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + fe.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - fe.ts) + "ms"), rt = !1) : fe.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + fe.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - fe.ts) + "ms"), gt = !0, rt = !0)), rt && (Ut = !0, st = d((Jo = this.evaluationContext.identity) === null || Jo === void 0 ? void 0 : Jo.traits, ($o = (_o = fe.evaluationContext) === null || _o === void 0 ? void 0 : _o.identity) === null || $o === void 0 ? void 0 : $o.traits), ke = d(this.flags, fe.flags), this.setState(n(n({}, fe), { evaluationContext: B(n(n({}, fe.evaluationContext), { identity: !((er = fe.evaluationContext) === null || er === void 0) && er.identity ? n(n({}, (tr = fe.evaluationContext) === null || tr === void 0 ? void 0 : tr.identity), { traits: n(n({}, ((rr = (or = fe.evaluationContext) === null || or === void 0 ? void 0 : or.identity) === null || rr === void 0 ? void 0 : rr.traits) || {}), Xt || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", fe))), Ut ? (No = !Be && (!this.cacheOptions.skipAPI || gt), this._onChange(null, { isFromServer: !1, flagsChanged: ke, traitsChanged: st }, this._loadedState(null, u.CACHE, No)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && Ut && !gt && this.log("Skipping API, using cache"), No && this.getFlags().catch(function(oi) {
|
|
15375
15501
|
var ir;
|
|
15376
15502
|
(ir = Zr.onError) === null || ir === void 0 || ir.call(Zr, oi);
|
|
15377
15503
|
}), [3, 4]) : [3, 2];
|
|
@@ -15409,7 +15535,7 @@ var Er = { exports: {} };
|
|
|
15409
15535
|
case 4:
|
|
15410
15536
|
Qo = Qe.sent(), Qe.label = 5;
|
|
15411
15537
|
case 5:
|
|
15412
|
-
return [4,
|
|
15538
|
+
return [4, kr(null, Qo)];
|
|
15413
15539
|
case 6:
|
|
15414
15540
|
case 7:
|
|
15415
15541
|
return Qe.sent(), [3, 8];
|
|
@@ -15420,13 +15546,13 @@ var Er = { exports: {} };
|
|
|
15420
15546
|
case 10:
|
|
15421
15547
|
return Qe.sent(), [3, 12];
|
|
15422
15548
|
case 11:
|
|
15423
|
-
if (ye) this._onChange(null, { isFromServer: !1, flagsChanged: d({}, ye), traitsChanged: d({}, (
|
|
15549
|
+
if (ye) this._onChange(null, { isFromServer: !1, flagsChanged: d({}, ye), traitsChanged: d({}, (m = U.identity) === null || m === void 0 ? void 0 : m.traits) }, this._loadedState(null, u.DEFAULT_FLAGS));
|
|
15424
15550
|
else if (this.flags && (Mt = null, Object.keys(this.flags).length === 0 && (Mt = Vo), this._onChange(null, { isFromServer: !1, flagsChanged: d({}, this.flags), traitsChanged: d({}, (g = U.identity) === null || g === void 0 ? void 0 : g.traits) }, this._loadedState(Mt, u.DEFAULT_FLAGS)), Mt)) throw new Error(Mt);
|
|
15425
15551
|
Qe.label = 12;
|
|
15426
15552
|
case 12:
|
|
15427
15553
|
return [3, 14];
|
|
15428
15554
|
case 13:
|
|
15429
|
-
throw Rt = Qe.sent(), this.log("Error during initialisation ", Rt),
|
|
15555
|
+
throw Rt = Qe.sent(), this.log("Error during initialisation ", Rt), Lr = Rt instanceof Error ? Rt : new Error("".concat(Rt)), (p = this.onError) === null || p === void 0 || p.call(this, Lr), Rt;
|
|
15430
15556
|
case 14:
|
|
15431
15557
|
return [2];
|
|
15432
15558
|
}
|
|
@@ -15434,115 +15560,115 @@ var Er = { exports: {} };
|
|
|
15434
15560
|
});
|
|
15435
15561
|
}, v.prototype.getAllFlags = function() {
|
|
15436
15562
|
return this.flags;
|
|
15437
|
-
}, v.prototype.identify = function(
|
|
15438
|
-
return this.evaluationContext.identity = { identifier:
|
|
15563
|
+
}, v.prototype.identify = function(A, m, g) {
|
|
15564
|
+
return this.evaluationContext.identity = { identifier: A, transient: g, traits: this.evaluationContext.identity && this.evaluationContext.identity.identifier == A ? this.evaluationContext.identity.traits : {} }, this.evaluationContext.identity.identifier = A, this.log("Identify: " + this.evaluationContext.identity.identifier), m && (this.evaluationContext.identity.traits = Object.fromEntries(Object.entries(m).map(function(p) {
|
|
15439
15565
|
var U = p[0], j = p[1];
|
|
15440
15566
|
return [U, T(j) ? j : { value: j }];
|
|
15441
15567
|
}))), this.initialised ? this.getFlags() : Promise.resolve();
|
|
15442
15568
|
}, v.prototype.getState = function() {
|
|
15443
15569
|
return { api: this.api, flags: this.flags, ts: this.ts, evaluationContext: this.evaluationContext, evaluationEvent: this.evaluationEvent };
|
|
15444
|
-
}, v.prototype.setState = function(
|
|
15445
|
-
|
|
15570
|
+
}, v.prototype.setState = function(A) {
|
|
15571
|
+
A && (this.initialised = !0, this.api = A.api || this.api || I, this.flags = A.flags || this.flags, this.evaluationContext = A.evaluationContext || this.evaluationContext, this.evaluationEvent = A.evaluationEvent || this.evaluationEvent, this.log("setState called", this));
|
|
15446
15572
|
}, v.prototype.logout = function() {
|
|
15447
15573
|
return this.evaluationContext.identity = null, this.initialised ? this.getFlags() : Promise.resolve();
|
|
15448
|
-
}, v.prototype.startListening = function(
|
|
15449
|
-
|
|
15574
|
+
}, v.prototype.startListening = function(A) {
|
|
15575
|
+
A === void 0 && (A = 1e3), this.getFlagInterval && clearInterval(this.getFlagInterval), this.getFlagInterval = setInterval(this.getFlags, A);
|
|
15450
15576
|
}, v.prototype.stopListening = function() {
|
|
15451
15577
|
this.getFlagInterval && (clearInterval(this.getFlagInterval), this.getFlagInterval = null);
|
|
15452
|
-
}, v.prototype._loadedState = function(
|
|
15453
|
-
return
|
|
15578
|
+
}, v.prototype._loadedState = function(A, m, g) {
|
|
15579
|
+
return A === void 0 && (A = null), g === void 0 && (g = !1), { error: A, isFetching: g, isLoading: !1, source: m };
|
|
15454
15580
|
}, v.prototype.log = function() {
|
|
15455
|
-
for (var
|
|
15456
|
-
this.enableLogs && console.log.apply(this, s(["FLAGSMITH:", (/* @__PURE__ */ new Date()).valueOf() - (this.timer || 0), "ms"],
|
|
15581
|
+
for (var A = [], m = 0; m < arguments.length; m++) A[m] = arguments[m];
|
|
15582
|
+
this.enableLogs && console.log.apply(this, s(["FLAGSMITH:", (/* @__PURE__ */ new Date()).valueOf() - (this.timer || 0), "ms"], A));
|
|
15457
15583
|
}, v.prototype.updateStorage = function() {
|
|
15458
15584
|
if (this.cacheFlags) {
|
|
15459
15585
|
this.ts = (/* @__PURE__ */ new Date()).valueOf();
|
|
15460
|
-
var
|
|
15461
|
-
this.log("Setting storage",
|
|
15586
|
+
var A = JSON.stringify(this.getState());
|
|
15587
|
+
this.log("Setting storage", A), H.setItem(this.getStorageKey(), A);
|
|
15462
15588
|
}
|
|
15463
15589
|
}, v.prototype.updateEventStorage = function() {
|
|
15464
15590
|
if (this.enableAnalytics) {
|
|
15465
|
-
var
|
|
15466
|
-
H.setItem(z,
|
|
15467
|
-
return console.error("Flagsmith: Error setting item in async storage",
|
|
15591
|
+
var A = JSON.stringify(this.getState().evaluationEvent);
|
|
15592
|
+
H.setItem(z, A).catch(function(m) {
|
|
15593
|
+
return console.error("Flagsmith: Error setting item in async storage", m);
|
|
15468
15594
|
});
|
|
15469
15595
|
}
|
|
15470
|
-
}, v.prototype.setLoadingState = function(
|
|
15471
|
-
var
|
|
15472
|
-
l(
|
|
15473
|
-
}, v.prototype.setupRealtime = function(
|
|
15474
|
-
var g = this, p =
|
|
15596
|
+
}, v.prototype.setLoadingState = function(A) {
|
|
15597
|
+
var m;
|
|
15598
|
+
l(A, this.loadingState) || (this.loadingState = n({}, A), this.log("Loading state changed", A), (m = this._triggerLoadingState) === null || m === void 0 || m.call(this));
|
|
15599
|
+
}, v.prototype.setupRealtime = function(A, m) {
|
|
15600
|
+
var g = this, p = A + "sse/environments/" + m + "/stream";
|
|
15475
15601
|
F ? this.eventSource || (this.log("Creating event source with url " + p), this.eventSource = new F(p), this.eventSource.addEventListener("environment_updated", function(U) {
|
|
15476
15602
|
var j;
|
|
15477
15603
|
try {
|
|
15478
15604
|
j = JSON.parse(U.data).updated_at;
|
|
15479
|
-
} catch (
|
|
15480
|
-
g.log("Could not parse sse event",
|
|
15605
|
+
} catch (k) {
|
|
15606
|
+
g.log("Could not parse sse event", k);
|
|
15481
15607
|
}
|
|
15482
15608
|
j ? !g.timestamp || j > g.timestamp ? g.isLoading ? g.log("updated_at is new, but flags are loading", U.data, g.timestamp) : (g.log("updated_at is new, fetching flags", U.data, g.timestamp), g.getFlags()) : g.log("updated_at is outdated, skipping get flags", U.data, g.timestamp) : g.log("No updated_at received, fetching flags", U);
|
|
15483
15609
|
})) : this.log("Error, EventSource is undefined");
|
|
15484
15610
|
}, v;
|
|
15485
15611
|
}();
|
|
15486
15612
|
function f(v) {
|
|
15487
|
-
var
|
|
15488
|
-
return new re({ fetch:
|
|
15613
|
+
var A = v.fetch, m = v.AsyncStorage, g = v.eventSource;
|
|
15614
|
+
return new re({ fetch: A, AsyncStorage: m, eventSource: g });
|
|
15489
15615
|
}
|
|
15490
|
-
var w, D = (w = function(v,
|
|
15491
|
-
return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
15492
|
-
|
|
15493
|
-
} || function(
|
|
15494
|
-
for (var p in g) Object.prototype.hasOwnProperty.call(g, p) && (
|
|
15495
|
-
}, w(v,
|
|
15496
|
-
}, function(v,
|
|
15497
|
-
if (typeof
|
|
15498
|
-
function
|
|
15616
|
+
var w, D = (w = function(v, A) {
|
|
15617
|
+
return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(m, g) {
|
|
15618
|
+
m.__proto__ = g;
|
|
15619
|
+
} || function(m, g) {
|
|
15620
|
+
for (var p in g) Object.prototype.hasOwnProperty.call(g, p) && (m[p] = g[p]);
|
|
15621
|
+
}, w(v, A);
|
|
15622
|
+
}, function(v, A) {
|
|
15623
|
+
if (typeof A != "function" && A !== null) throw new TypeError("Class extends value " + String(A) + " is not a constructor or null");
|
|
15624
|
+
function m() {
|
|
15499
15625
|
this.constructor = v;
|
|
15500
15626
|
}
|
|
15501
|
-
w(v,
|
|
15627
|
+
w(v, A), v.prototype = A === null ? Object.create(A) : (m.prototype = A.prototype, new m());
|
|
15502
15628
|
}), M = function(v) {
|
|
15503
|
-
var
|
|
15504
|
-
if (
|
|
15629
|
+
var A = typeof Symbol == "function" && Symbol.iterator, m = A && v[A], g = 0;
|
|
15630
|
+
if (m) return m.call(v);
|
|
15505
15631
|
if (v && typeof v.length == "number") return { next: function() {
|
|
15506
15632
|
return v && g >= v.length && (v = void 0), { value: v && v[g++], done: !v };
|
|
15507
15633
|
} };
|
|
15508
|
-
throw new TypeError(
|
|
15509
|
-
}, V = function(v,
|
|
15510
|
-
var
|
|
15511
|
-
if (!
|
|
15512
|
-
var g, p, U =
|
|
15634
|
+
throw new TypeError(A ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
15635
|
+
}, V = function(v, A) {
|
|
15636
|
+
var m = typeof Symbol == "function" && v[Symbol.iterator];
|
|
15637
|
+
if (!m) return v;
|
|
15638
|
+
var g, p, U = m.call(v), j = [];
|
|
15513
15639
|
try {
|
|
15514
|
-
for (; (
|
|
15515
|
-
} catch (
|
|
15516
|
-
p = { error:
|
|
15640
|
+
for (; (A === void 0 || A-- > 0) && !(g = U.next()).done; ) j.push(g.value);
|
|
15641
|
+
} catch (k) {
|
|
15642
|
+
p = { error: k };
|
|
15517
15643
|
} finally {
|
|
15518
15644
|
try {
|
|
15519
|
-
g && !g.done && (
|
|
15645
|
+
g && !g.done && (m = U.return) && m.call(U);
|
|
15520
15646
|
} finally {
|
|
15521
15647
|
if (p) throw p.error;
|
|
15522
15648
|
}
|
|
15523
15649
|
}
|
|
15524
15650
|
return j;
|
|
15525
|
-
}, x = function(v,
|
|
15526
|
-
if (arguments.length === 2) for (var g, p = 0, U =
|
|
15527
|
-
return v.concat(g || Array.prototype.slice.call(
|
|
15651
|
+
}, x = function(v, A, m) {
|
|
15652
|
+
if (arguments.length === 2) for (var g, p = 0, U = A.length; p < U; p++) !g && p in A || (g || (g = Array.prototype.slice.call(A, 0, p)), g[p] = A[p]);
|
|
15653
|
+
return v.concat(g || Array.prototype.slice.call(A));
|
|
15528
15654
|
}, P = function(v) {
|
|
15529
|
-
function
|
|
15655
|
+
function A() {
|
|
15530
15656
|
return v.call(this, `EventSource not available.
|
|
15531
15657
|
Consider loading an EventSource polyfill and making it available globally as EventSource, or passing one in as eventSourceClass to the ReconnectingEventSource constructor.`) || this;
|
|
15532
15658
|
}
|
|
15533
|
-
return D(
|
|
15659
|
+
return D(A, v), A;
|
|
15534
15660
|
}(Error), h = function() {
|
|
15535
|
-
function v(
|
|
15661
|
+
function v(A, m) {
|
|
15536
15662
|
var g = this;
|
|
15537
|
-
if (this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, this._configuration =
|
|
15663
|
+
if (this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, this._configuration = m != null ? Object.assign({}, m) : void 0, this.withCredentials = !1, this._eventSource = null, this._lastEventId = null, this._timer = null, this._listeners = { open: [], error: [], message: [] }, this.url = A.toString(), this.readyState = this.CONNECTING, this.max_retry_time = 3e3, this.eventSourceClass = globalThis.FlagsmithEventSource, this._configuration != null && (this._configuration.lastEventId && (this._lastEventId = this._configuration.lastEventId, delete this._configuration.lastEventId), this._configuration.max_retry_time && (this.max_retry_time = this._configuration.max_retry_time, delete this._configuration.max_retry_time), this._configuration.eventSourceClass && (this.eventSourceClass = this._configuration.eventSourceClass, delete this._configuration.eventSourceClass)), this.eventSourceClass == null || typeof this.eventSourceClass != "function") throw new P();
|
|
15538
15664
|
this._onevent_wrapped = function(p) {
|
|
15539
15665
|
g._onevent(p);
|
|
15540
15666
|
}, this._start();
|
|
15541
15667
|
}
|
|
15542
|
-
return v.prototype.dispatchEvent = function(
|
|
15668
|
+
return v.prototype.dispatchEvent = function(A) {
|
|
15543
15669
|
throw new Error("Method not implemented.");
|
|
15544
15670
|
}, v.prototype._start = function() {
|
|
15545
|
-
var
|
|
15671
|
+
var A, m, g = this, p = this.url;
|
|
15546
15672
|
this._lastEventId && (p.indexOf("?") === -1 ? p += "?" : p += "&", p += "lastEventId=" + encodeURIComponent(this._lastEventId)), this._eventSource = new this.eventSourceClass(p, this._configuration), this._eventSource.onopen = function(Z) {
|
|
15547
15673
|
g._onopen(Z);
|
|
15548
15674
|
}, this._eventSource.onerror = function(Z) {
|
|
@@ -15552,66 +15678,66 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
15552
15678
|
};
|
|
15553
15679
|
try {
|
|
15554
15680
|
for (var U = M(Object.keys(this._listeners)), j = U.next(); !j.done; j = U.next()) {
|
|
15555
|
-
var
|
|
15556
|
-
this._eventSource.addEventListener(
|
|
15681
|
+
var k = j.value;
|
|
15682
|
+
this._eventSource.addEventListener(k, this._onevent_wrapped);
|
|
15557
15683
|
}
|
|
15558
15684
|
} catch (Z) {
|
|
15559
|
-
|
|
15685
|
+
A = { error: Z };
|
|
15560
15686
|
} finally {
|
|
15561
15687
|
try {
|
|
15562
|
-
j && !j.done && (
|
|
15688
|
+
j && !j.done && (m = U.return) && m.call(U);
|
|
15563
15689
|
} finally {
|
|
15564
|
-
if (
|
|
15690
|
+
if (A) throw A.error;
|
|
15565
15691
|
}
|
|
15566
15692
|
}
|
|
15567
|
-
}, v.prototype._onopen = function(
|
|
15568
|
-
this.readyState === 0 && (this.readyState = 1, this.onopen(
|
|
15569
|
-
}, v.prototype._onerror = function(
|
|
15570
|
-
var
|
|
15571
|
-
if (this.readyState === 1 && (this.readyState = 0, this.onerror(
|
|
15693
|
+
}, v.prototype._onopen = function(A) {
|
|
15694
|
+
this.readyState === 0 && (this.readyState = 1, this.onopen(A));
|
|
15695
|
+
}, v.prototype._onerror = function(A) {
|
|
15696
|
+
var m = this;
|
|
15697
|
+
if (this.readyState === 1 && (this.readyState = 0, this.onerror(A)), this._eventSource) {
|
|
15572
15698
|
this._eventSource.close(), this._eventSource = null;
|
|
15573
15699
|
var g = Math.round(this.max_retry_time * Math.random());
|
|
15574
15700
|
this._timer = setTimeout(function() {
|
|
15575
|
-
return
|
|
15701
|
+
return m._start();
|
|
15576
15702
|
}, g);
|
|
15577
15703
|
}
|
|
15578
|
-
}, v.prototype._onevent = function(
|
|
15579
|
-
var
|
|
15580
|
-
|
|
15581
|
-
var p = this._listeners[
|
|
15704
|
+
}, v.prototype._onevent = function(A) {
|
|
15705
|
+
var m, g;
|
|
15706
|
+
A && A.lastEventId && (this._lastEventId = A.lastEventId);
|
|
15707
|
+
var p = this._listeners[A.type];
|
|
15582
15708
|
if (p != null) try {
|
|
15583
15709
|
for (var U = M(x([], V(p), !1)), j = U.next(); !j.done; j = U.next())
|
|
15584
|
-
j.value.call(this,
|
|
15585
|
-
} catch (
|
|
15586
|
-
|
|
15710
|
+
j.value.call(this, A);
|
|
15711
|
+
} catch (k) {
|
|
15712
|
+
m = { error: k };
|
|
15587
15713
|
} finally {
|
|
15588
15714
|
try {
|
|
15589
15715
|
j && !j.done && (g = U.return) && g.call(U);
|
|
15590
15716
|
} finally {
|
|
15591
|
-
if (
|
|
15717
|
+
if (m) throw m.error;
|
|
15592
15718
|
}
|
|
15593
15719
|
}
|
|
15594
|
-
|
|
15595
|
-
}, v.prototype.onopen = function(
|
|
15596
|
-
}, v.prototype.onerror = function(
|
|
15597
|
-
}, v.prototype.onmessage = function(
|
|
15720
|
+
A.type === "message" && this.onmessage(A);
|
|
15721
|
+
}, v.prototype.onopen = function(A) {
|
|
15722
|
+
}, v.prototype.onerror = function(A) {
|
|
15723
|
+
}, v.prototype.onmessage = function(A) {
|
|
15598
15724
|
}, v.prototype.close = function() {
|
|
15599
15725
|
this._timer && (clearTimeout(this._timer), this._timer = null), this._eventSource && (this._eventSource.close(), this._eventSource = null), this.readyState = 2;
|
|
15600
|
-
}, v.prototype.addEventListener = function(
|
|
15601
|
-
this._listeners[
|
|
15602
|
-
var p = this._listeners[
|
|
15603
|
-
p.includes(
|
|
15604
|
-
}, v.prototype.removeEventListener = function(
|
|
15605
|
-
var p = this._listeners[
|
|
15606
|
-
this._listeners[
|
|
15607
|
-
return U !==
|
|
15726
|
+
}, v.prototype.addEventListener = function(A, m, g) {
|
|
15727
|
+
this._listeners[A] == null && (this._listeners[A] = [], this._eventSource != null && this._eventSource.addEventListener(A, this._onevent_wrapped));
|
|
15728
|
+
var p = this._listeners[A];
|
|
15729
|
+
p.includes(m) || (this._listeners[A] = x(x([], V(p), !1), [m], !1));
|
|
15730
|
+
}, v.prototype.removeEventListener = function(A, m, g) {
|
|
15731
|
+
var p = this._listeners[A];
|
|
15732
|
+
this._listeners[A] = p.filter(function(U) {
|
|
15733
|
+
return U !== m;
|
|
15608
15734
|
});
|
|
15609
15735
|
}, v;
|
|
15610
15736
|
}();
|
|
15611
15737
|
globalThis.FlagsmithEventSource = typeof EventSource < "u" ? EventSource : null;
|
|
15612
|
-
var O = function(v,
|
|
15613
|
-
return
|
|
15614
|
-
var p = new XMLHttpRequest(), U = [], j = [],
|
|
15738
|
+
var O = function(v, A) {
|
|
15739
|
+
return A = A || {}, new Promise(function(m, g) {
|
|
15740
|
+
var p = new XMLHttpRequest(), U = [], j = [], k = {}, Z = function() {
|
|
15615
15741
|
return { ok: (p.status / 100 | 0) == 2, statusText: p.statusText, status: p.status, url: p.responseURL, text: function() {
|
|
15616
15742
|
return Promise.resolve(p.responseText);
|
|
15617
15743
|
}, json: function() {
|
|
@@ -15622,18 +15748,18 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
15622
15748
|
return U;
|
|
15623
15749
|
}, entries: function() {
|
|
15624
15750
|
return j;
|
|
15625
|
-
}, get: function(
|
|
15626
|
-
return
|
|
15627
|
-
}, has: function(
|
|
15628
|
-
return
|
|
15751
|
+
}, get: function(N) {
|
|
15752
|
+
return k[N.toLowerCase()];
|
|
15753
|
+
}, has: function(N) {
|
|
15754
|
+
return N.toLowerCase() in k;
|
|
15629
15755
|
} } };
|
|
15630
15756
|
};
|
|
15631
|
-
for (var te in p.open(
|
|
15632
|
-
p.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(
|
|
15633
|
-
U.push(_ = _.toLowerCase()), j.push([_,
|
|
15634
|
-
}),
|
|
15635
|
-
}, p.onerror = g, p.withCredentials =
|
|
15636
|
-
p.send(
|
|
15757
|
+
for (var te in p.open(A.method || "get", v, !0), p.onload = function() {
|
|
15758
|
+
p.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(N, _, Ae) {
|
|
15759
|
+
U.push(_ = _.toLowerCase()), j.push([_, Ae]), k[_] = k[_] ? k[_] + "," + Ae : Ae;
|
|
15760
|
+
}), m(Z());
|
|
15761
|
+
}, p.onerror = g, p.withCredentials = A.credentials == "include", A.headers) p.setRequestHeader(te, A.headers[te]);
|
|
15762
|
+
p.send(A.body || null);
|
|
15637
15763
|
});
|
|
15638
15764
|
}, E = f({ AsyncStorage: r, fetch: O, eventSource: h });
|
|
15639
15765
|
typeof window < "u" && (window.flagsmith = E), o.createFlagsmithInstance = function() {
|
|
@@ -15641,24 +15767,24 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
15641
15767
|
}, o.default = E, Object.defineProperty(o, "__esModule", { value: !0 });
|
|
15642
15768
|
});
|
|
15643
15769
|
})(Er, Er.exports);
|
|
15644
|
-
var
|
|
15770
|
+
var Nl = Er.exports, Gl = {
|
|
15645
15771
|
NOT_INITIALIZED: "FeatureFlag not initialized. Call init() first."
|
|
15646
15772
|
}, Bn = "business", Ze, ql = (Ze = class {
|
|
15647
15773
|
constructor() {
|
|
15648
|
-
|
|
15649
|
-
|
|
15774
|
+
mt(this, "flagsmithClient", null);
|
|
15775
|
+
mt(this, "userContext", null);
|
|
15650
15776
|
}
|
|
15651
15777
|
static getInstance() {
|
|
15652
15778
|
return Ze.instance || (Ze.instance = new Ze()), Ze.instance;
|
|
15653
15779
|
}
|
|
15654
15780
|
ensureInitialized() {
|
|
15655
15781
|
if (!this.flagsmithClient)
|
|
15656
|
-
throw new Error(
|
|
15782
|
+
throw new Error(Gl.NOT_INITIALIZED);
|
|
15657
15783
|
}
|
|
15658
15784
|
async init(t, o = []) {
|
|
15659
15785
|
if (!this.flagsmithClient)
|
|
15660
15786
|
try {
|
|
15661
|
-
this.flagsmithClient =
|
|
15787
|
+
this.flagsmithClient = Nl.createFlagsmithInstance();
|
|
15662
15788
|
const r = o.reduce((n, a) => (n[a.feature.name] = a, n), {});
|
|
15663
15789
|
await this.flagsmithClient.init({
|
|
15664
15790
|
environmentID: t.apiKey,
|
|
@@ -15745,8 +15871,8 @@ var Gl = Er.exports, Nl = {
|
|
|
15745
15871
|
reset() {
|
|
15746
15872
|
this.flagsmithClient = null, this.userContext = null;
|
|
15747
15873
|
}
|
|
15748
|
-
},
|
|
15749
|
-
function
|
|
15874
|
+
}, mt(Ze, "instance"), Ze), kl = ql.getInstance(), Qt = ue(!1), ro = ue([]), xt = ue(null);
|
|
15875
|
+
function Ll(e = kl) {
|
|
15750
15876
|
const t = () => Qt.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), o = async (u, C = []) => {
|
|
15751
15877
|
if (Qt.value) {
|
|
15752
15878
|
console.warn("FeatureFlag is already initialized.");
|
|
@@ -15808,7 +15934,7 @@ function kl(e = Ll) {
|
|
|
15808
15934
|
reset: d
|
|
15809
15935
|
};
|
|
15810
15936
|
}
|
|
15811
|
-
var Yl = () =>
|
|
15937
|
+
var Yl = () => Ll(), Ie = /* @__PURE__ */ ((e) => (e.report_portal_template_management = "report_portal_template_management", e.report_portal_integration_bukku_api = "report_portal_integration_bukku_api", e.report_portal_integration_autocount_export = "report_portal_integration_autocount_export", e.report_portal_integration_sql_export = "report_portal_integration_sql_export", e.report_portal_integration_xero_api = "report_portal_integration_xero_api", e.report_portal_integration_netsuite_export = "report_portal_integration_netsuite_export", e.report_portal_integration_netsuite_api = "report_portal_integration_netsuite_api", e.report_portal_integration_iflexi_hrms_export = "report_portal_integration_iflexi_hrms_export", e.report_portal_integration_custom_report = "report_portal_integration_custom_report", e.report_portal_integration_biztory_api = "report_portal_integration_biztory_api", e.report_portal_integration_autocount_cloud_api = "report_portal_integration_autocount_cloud_api", e.report_portal_integration_autocount_cloud_export = "report_portal_integration_autocount_cloud_export", e.report_portal_integration_synergy_export = "report_portal_integration_synergy_export", e.report_portal_integration_codemax_pos_api = "report_portal_integration_codemax_pos_api", e.report_portal_integration_custom_sql = "report_portal_integration_custom_sql", e.report_portal_permission = "report_portal_permission", e.report_portal_permission_th_control_temp = "report_portal_permission_th_control_temp", e))(Ie || {});
|
|
15812
15938
|
const Zl = async () => {
|
|
15813
15939
|
const { setUser: e, getFlag: t } = Yl(), { businessId: o } = se(), r = [], n = `business-${o}`;
|
|
15814
15940
|
await e(n);
|
|
@@ -15843,7 +15969,7 @@ const Jl = "mf-reportfeature-flag", Qr = Jt(Jl, () => {
|
|
|
15843
15969
|
}
|
|
15844
15970
|
return { flags: e, getFeatureFlags: t };
|
|
15845
15971
|
}), _l = "mf-reportintegration", $l = Jt(_l, () => {
|
|
15846
|
-
const e = ue([]), { flags: t } =
|
|
15972
|
+
const e = ue([]), { flags: t } = Ne(Qr()), o = ve(() => t.value.reduce((s, l) => (l.key.includes("integration") && l.value === !0 && s.push(l.key), s), [])), r = ve(() => ed.filter(
|
|
15847
15973
|
(s) => s.flags.some((l) => o.value.includes(l))
|
|
15848
15974
|
)), n = ve(() => r.value.length === 0), a = (s) => s.every((l) => o.value.includes(l));
|
|
15849
15975
|
async function i() {
|
|
@@ -15978,14 +16104,14 @@ function dr(e) {
|
|
|
15978
16104
|
const t = e == null ? void 0 : e.$lte;
|
|
15979
16105
|
return typeof t == "number" && Number.isFinite(t) ? t : null;
|
|
15980
16106
|
}
|
|
15981
|
-
function
|
|
16107
|
+
function md(e) {
|
|
15982
16108
|
const t = e == null ? void 0 : e.$gte;
|
|
15983
16109
|
return typeof t == "string" && t ? t : null;
|
|
15984
16110
|
}
|
|
15985
16111
|
function no(e, t) {
|
|
15986
16112
|
return e ? t && q(t, Ce).isAfter(q(e, Ce), "day") ? t : e : t;
|
|
15987
16113
|
}
|
|
15988
|
-
function
|
|
16114
|
+
function Ad(e, t) {
|
|
15989
16115
|
return e ? t && q(t, Ce).isBefore(q(e, Ce), "day") ? t : e : t;
|
|
15990
16116
|
}
|
|
15991
16117
|
function ld(e, t, o) {
|
|
@@ -15997,7 +16123,7 @@ function ld(e, t, o) {
|
|
|
15997
16123
|
s !== null && (a = no(a, n.subtract(s, "month").format(Ce)));
|
|
15998
16124
|
const l = dr(r.reportAgeYears);
|
|
15999
16125
|
l !== null && (a = no(a, n.subtract(l, "year").format(Ce)));
|
|
16000
|
-
const d =
|
|
16126
|
+
const d = md(r.reportDate);
|
|
16001
16127
|
return d && (a = no(a, q(d).tz(t).format(Ce))), a;
|
|
16002
16128
|
}
|
|
16003
16129
|
function dd({
|
|
@@ -16042,7 +16168,7 @@ function ei({
|
|
|
16042
16168
|
return { restricted: !1 };
|
|
16043
16169
|
const a = n.reduce((i, s) => {
|
|
16044
16170
|
const l = ld(s, o, r);
|
|
16045
|
-
return
|
|
16171
|
+
return Ad(i, l);
|
|
16046
16172
|
}, void 0);
|
|
16047
16173
|
return {
|
|
16048
16174
|
minDate: a,
|
|
@@ -16083,8 +16209,8 @@ function Pn(e) {
|
|
|
16083
16209
|
}
|
|
16084
16210
|
function gd() {
|
|
16085
16211
|
const { sessionUser: e } = Tr(), t = Qr(), o = y.report_reports_allDefaultReports, r = y.report_reports_allCustomReports, n = ve(() => {
|
|
16086
|
-
var I, X, Y,
|
|
16087
|
-
return !!((X = (I = e.value) == null ? void 0 : I.role) != null && X.isAdmin || (
|
|
16212
|
+
var I, X, Y, L;
|
|
16213
|
+
return !!((X = (I = e.value) == null ? void 0 : I.role) != null && X.isAdmin || (L = (Y = e.value) == null ? void 0 : Y.role) != null && L.isStaff);
|
|
16088
16214
|
}), a = ve(() => {
|
|
16089
16215
|
var I, X;
|
|
16090
16216
|
return !!((X = (I = e.value) == null ? void 0 : I.role) != null && X.isAdmin);
|
|
@@ -16105,16 +16231,16 @@ function gd() {
|
|
|
16105
16231
|
);
|
|
16106
16232
|
function d(I, X, Y) {
|
|
16107
16233
|
if (!s.value) return !0;
|
|
16108
|
-
const
|
|
16109
|
-
return !
|
|
16234
|
+
const L = Pn(I);
|
|
16235
|
+
return !L || !l.value.length ? !1 : X.some((re) => {
|
|
16110
16236
|
const f = {
|
|
16111
16237
|
action: re,
|
|
16112
16238
|
// Report subjects are custom strings; cast to satisfy CaslPermission type
|
|
16113
|
-
subject:
|
|
16239
|
+
subject: L,
|
|
16114
16240
|
coverSubject: I != null && I.isDefault ? o : r,
|
|
16115
16241
|
coverSubjectMode: "directOverride"
|
|
16116
16242
|
};
|
|
16117
|
-
return (Y ?
|
|
16243
|
+
return (Y ? Gt(f, l.value, Y) : Gt([f], l.value)).granted;
|
|
16118
16244
|
});
|
|
16119
16245
|
}
|
|
16120
16246
|
function u(I, X) {
|
|
@@ -16135,14 +16261,14 @@ function gd() {
|
|
|
16135
16261
|
if (!s.value) return !0;
|
|
16136
16262
|
if (!X.startDate || !X.endDate) return !1;
|
|
16137
16263
|
if (!Pn(I)) return z.value;
|
|
16138
|
-
const
|
|
16139
|
-
return Un(X,
|
|
16264
|
+
const L = u(I, Y);
|
|
16265
|
+
return Un(X, L, Y);
|
|
16140
16266
|
}
|
|
16141
16267
|
function T(I, X, Y) {
|
|
16142
16268
|
if (!s.value) return !0;
|
|
16143
16269
|
if (!X.startDate || !X.endDate) return !1;
|
|
16144
|
-
const
|
|
16145
|
-
return Un(X,
|
|
16270
|
+
const L = C(I, Y);
|
|
16271
|
+
return Un(X, L, Y);
|
|
16146
16272
|
}
|
|
16147
16273
|
function R(I) {
|
|
16148
16274
|
return d(I, [c.update, c.manage]);
|
|
@@ -16166,7 +16292,7 @@ function gd() {
|
|
|
16166
16292
|
const z = ve(() => {
|
|
16167
16293
|
if (!s.value) return !0;
|
|
16168
16294
|
const I = y.report_createReport;
|
|
16169
|
-
return l.value.length ? [c.create, c.manage].some((X) =>
|
|
16295
|
+
return l.value.length ? [c.create, c.manage].some((X) => Gt([{
|
|
16170
16296
|
action: X,
|
|
16171
16297
|
subject: I
|
|
16172
16298
|
}], l.value).granted) : !1;
|
|
@@ -16189,17 +16315,17 @@ function gd() {
|
|
|
16189
16315
|
};
|
|
16190
16316
|
}
|
|
16191
16317
|
const yd = "mf-reportnavigation", ti = Jt(yd, () => {
|
|
16192
|
-
const { disabled: e } =
|
|
16318
|
+
const { disabled: e } = Ne($l()), { flags: t } = Ne(Qr()), { sessionUser: o } = Tr(), { isReportPermissionEnabled: r, canCreateReport: n } = gd();
|
|
16193
16319
|
function a(z) {
|
|
16194
|
-
var
|
|
16320
|
+
var L;
|
|
16195
16321
|
if (!r.value) return !0;
|
|
16196
|
-
const I = Array.isArray((
|
|
16322
|
+
const I = Array.isArray((L = o.value) == null ? void 0 : L.permissions) ? o.value.permissions : [];
|
|
16197
16323
|
if (!Array.isArray(I) || I.length === 0) return !1;
|
|
16198
16324
|
const X = {
|
|
16199
16325
|
action: c.manage,
|
|
16200
16326
|
subject: z
|
|
16201
16327
|
};
|
|
16202
|
-
return
|
|
16328
|
+
return Gt([X], I).granted;
|
|
16203
16329
|
}
|
|
16204
16330
|
const i = ue("v5"), s = ue(!1), l = ve(
|
|
16205
16331
|
() => a(y.report_accessOverview)
|
|
@@ -16218,7 +16344,7 @@ const yd = "mf-reportnavigation", ti = Jt(yd, () => {
|
|
|
16218
16344
|
return (t.value.length === 0 || K.value) && n.value;
|
|
16219
16345
|
}
|
|
16220
16346
|
const R = ve(() => {
|
|
16221
|
-
const z = !l.value, I = !d.value, X = !u.value, Y = !C.value,
|
|
16347
|
+
const z = !l.value, I = !d.value, X = !u.value, Y = !C.value, L = [
|
|
16222
16348
|
{
|
|
16223
16349
|
label: "overview",
|
|
16224
16350
|
value: "overview",
|
|
@@ -16244,16 +16370,16 @@ const yd = "mf-reportnavigation", ti = Jt(yd, () => {
|
|
|
16244
16370
|
disabled: X
|
|
16245
16371
|
}
|
|
16246
16372
|
];
|
|
16247
|
-
return T() &&
|
|
16373
|
+
return T() && L.splice(2, 0, {
|
|
16248
16374
|
label: "template",
|
|
16249
16375
|
value: "template",
|
|
16250
16376
|
route: "template"
|
|
16251
|
-
}), e.value ||
|
|
16377
|
+
}), e.value || L.push({
|
|
16252
16378
|
label: "integration",
|
|
16253
16379
|
value: "integration",
|
|
16254
16380
|
route: "integrations",
|
|
16255
16381
|
disabled: Y
|
|
16256
|
-
}),
|
|
16382
|
+
}), L;
|
|
16257
16383
|
}), B = ue(""), { currentRoute: F } = ui(), H = ve(
|
|
16258
16384
|
() => F.value.name === "reportEditor" || F.value.name === "tileEditor"
|
|
16259
16385
|
);
|
|
@@ -16319,7 +16445,7 @@ const vd = [
|
|
|
16319
16445
|
path: "/overview",
|
|
16320
16446
|
alias: ["/"],
|
|
16321
16447
|
name: "overview",
|
|
16322
|
-
component: io(() => import("./OverviewView-
|
|
16448
|
+
component: io(() => import("./OverviewView-cISqmDJF.js")),
|
|
16323
16449
|
meta: {
|
|
16324
16450
|
validationManifest: ao(
|
|
16325
16451
|
y.report_accessOverview
|
|
@@ -16329,18 +16455,18 @@ const vd = [
|
|
|
16329
16455
|
{
|
|
16330
16456
|
path: "/report",
|
|
16331
16457
|
name: "reports",
|
|
16332
|
-
component: () => import("./Report-
|
|
16458
|
+
component: () => import("./Report-uI-i1vQO.js")
|
|
16333
16459
|
},
|
|
16334
16460
|
{
|
|
16335
16461
|
path: "/template",
|
|
16336
16462
|
name: "template",
|
|
16337
|
-
component: () => import("./Template-
|
|
16463
|
+
component: () => import("./Template-CymYDuLw.js"),
|
|
16338
16464
|
beforeEnter: () => ti().canAccessTemplate() ? !0 : { name: "reports" }
|
|
16339
16465
|
},
|
|
16340
16466
|
{
|
|
16341
16467
|
path: "/insights",
|
|
16342
16468
|
name: "insights",
|
|
16343
|
-
component: io(() => import("./InsightView-
|
|
16469
|
+
component: io(() => import("./InsightView-DS6rf2VG.js")),
|
|
16344
16470
|
meta: {
|
|
16345
16471
|
validationManifest: ao(
|
|
16346
16472
|
y.report_accessInsight
|
|
@@ -16350,22 +16476,22 @@ const vd = [
|
|
|
16350
16476
|
{
|
|
16351
16477
|
path: "/report-view",
|
|
16352
16478
|
name: "reportView",
|
|
16353
|
-
component: () => import("./ReportView-
|
|
16479
|
+
component: () => import("./ReportView-DCeFWOHh.js")
|
|
16354
16480
|
},
|
|
16355
16481
|
{
|
|
16356
16482
|
path: "/report-editor",
|
|
16357
16483
|
name: "reportEditor",
|
|
16358
|
-
component: () => import("./ReportEditor-
|
|
16484
|
+
component: () => import("./ReportEditor-lT9Q-hMV.js")
|
|
16359
16485
|
},
|
|
16360
16486
|
{
|
|
16361
16487
|
path: "/report-editor/tile-editor",
|
|
16362
16488
|
name: "tileEditor",
|
|
16363
|
-
component: () => import("./TileEditor-
|
|
16489
|
+
component: () => import("./TileEditor-CFtBvrVA.js")
|
|
16364
16490
|
},
|
|
16365
16491
|
{
|
|
16366
16492
|
path: "/setting",
|
|
16367
16493
|
name: "setting",
|
|
16368
|
-
component: io(() => import("./Setting-
|
|
16494
|
+
component: io(() => import("./Setting-BWRoxXWB.js")),
|
|
16369
16495
|
meta: {
|
|
16370
16496
|
validationManifest: ao(
|
|
16371
16497
|
y.report_accessSetting
|
|
@@ -16374,7 +16500,7 @@ const vd = [
|
|
|
16374
16500
|
},
|
|
16375
16501
|
{
|
|
16376
16502
|
path: "/integration",
|
|
16377
|
-
component: io(() => import("./Layout-
|
|
16503
|
+
component: io(() => import("./Layout-BGsnPPEz.js")),
|
|
16378
16504
|
meta: {
|
|
16379
16505
|
validationManifest: ao(
|
|
16380
16506
|
y.report_accessIntegration
|
|
@@ -16384,12 +16510,12 @@ const vd = [
|
|
|
16384
16510
|
{
|
|
16385
16511
|
name: "integrations",
|
|
16386
16512
|
path: "",
|
|
16387
|
-
component: () => import("./Integrations-
|
|
16513
|
+
component: () => import("./Integrations-BcPNQ1Ga.js")
|
|
16388
16514
|
},
|
|
16389
16515
|
{
|
|
16390
16516
|
name: "integration",
|
|
16391
16517
|
path: "/integration/:id",
|
|
16392
|
-
component: () => import("./Integration-
|
|
16518
|
+
component: () => import("./Integration-BHWhJ9JT.js")
|
|
16393
16519
|
}
|
|
16394
16520
|
]
|
|
16395
16521
|
},
|
|
@@ -16408,7 +16534,7 @@ pi({
|
|
|
16408
16534
|
history: fi("/"),
|
|
16409
16535
|
routes: vd
|
|
16410
16536
|
});
|
|
16411
|
-
const fu = Tn(() => import("./App-
|
|
16537
|
+
const fu = Tn(() => import("./App-BUacyp4N.js"));
|
|
16412
16538
|
export {
|
|
16413
16539
|
fu as $,
|
|
16414
16540
|
_d as A,
|
|
@@ -16430,14 +16556,14 @@ export {
|
|
|
16430
16556
|
iu as Q,
|
|
16431
16557
|
su as R,
|
|
16432
16558
|
cu as S,
|
|
16433
|
-
|
|
16434
|
-
|
|
16559
|
+
mu as T,
|
|
16560
|
+
Au as U,
|
|
16435
16561
|
lu as V,
|
|
16436
16562
|
du as W,
|
|
16437
16563
|
uu as X,
|
|
16438
16564
|
Zd as Y,
|
|
16439
16565
|
us as Z,
|
|
16440
|
-
|
|
16566
|
+
Gt as _,
|
|
16441
16567
|
to as a,
|
|
16442
16568
|
vd as a0,
|
|
16443
16569
|
Qr as b,
|
|
@@ -16461,8 +16587,8 @@ export {
|
|
|
16461
16587
|
nu as t,
|
|
16462
16588
|
se as u,
|
|
16463
16589
|
Ie as v,
|
|
16464
|
-
|
|
16590
|
+
Ld as w,
|
|
16465
16591
|
Dd as x,
|
|
16466
|
-
|
|
16592
|
+
kd as y,
|
|
16467
16593
|
c as z
|
|
16468
16594
|
};
|