@feedmepos/mf-settings 0.0.69-prod → 0.0.70-prod
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-5287e6b4.js → App-f8b754e4.js} +387 -386
- package/dist/{Business-6ccc955c.js → Business-849a8dc1.js} +2 -2
- package/dist/{FoodCourt-67489b8e.js → FoodCourt-3e855d46.js} +9098 -9115
- package/dist/{Tagging-7fdb062a.js → Tagging-1e64a223.js} +2 -2
- package/dist/{app-bbf1ec46.js → app-78c02498.js} +89 -85
- package/dist/app.js +2 -2
- package/dist/apps/mf-settings/src/app.d.ts +2 -1343
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +121 -0
- package/dist/packages/shared/src/composable/filterSelector.d.ts +1 -1
- package/package.json +2 -2
|
@@ -2,13 +2,13 @@ import { defineComponent as Vr, computed as Sr, ref as Pn, watchEffect as Dn, re
|
|
|
2
2
|
import { useRouter as zn, RouterView as Gn } from "vue-router";
|
|
3
3
|
import { useI18n as Ln, useCoreStore as Qr, FeedMeAuth as Hn } from "@feedmepos/mf-common";
|
|
4
4
|
import { c as ur } from "./_commonjs-dynamic-modules-bed80856.js";
|
|
5
|
-
import { c as
|
|
6
|
-
import { r as lr } from "./app-
|
|
7
|
-
import { r as hr, g as Yr, i as Un, a as Vn, _ as Ar, C as Ir, b as Kn, S as Et, c as
|
|
5
|
+
import { c as Fe, e as Jr } from "./index-b9ef9a01.js";
|
|
6
|
+
import { r as lr } from "./app-78c02498.js";
|
|
7
|
+
import { r as hr, g as Yr, i as Un, a as Vn, _ as Ar, C as Ir, b as Kn, S as Et, c as pt, E as $r, d as Wn, e as Xr, f as Qn, h as Jn, L as Zr, j as gr, k as ke, l as Yn, m as Xn, F as mr, q as jt, n as Zn, o as ea, p as ta, s as ra, t as na, u as aa, v as ia, w as sa } from "./map-54b71412.js";
|
|
8
8
|
import "@feedmepos/mf-mdm";
|
|
9
|
+
import "@feedmepos/mf-order-setting";
|
|
9
10
|
import "@feedmepos/ui-library";
|
|
10
11
|
import "@feedmepos/mf-e-invoice";
|
|
11
|
-
import "@feedmepos/mf-order-setting";
|
|
12
12
|
var br = {};
|
|
13
13
|
(function(E) {
|
|
14
14
|
var p = typeof process < "u" && (process.versions || {}).hasOwnProperty("node"), b = p ? Object.create(globalThis) : globalThis;
|
|
@@ -27,12 +27,12 @@ var br = {};
|
|
|
27
27
|
function x() {
|
|
28
28
|
try {
|
|
29
29
|
throw new Error();
|
|
30
|
-
} catch (
|
|
31
|
-
var P =
|
|
30
|
+
} catch (ie) {
|
|
31
|
+
var P = ie.stack, L = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), H = null;
|
|
32
32
|
do {
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
-
} while (
|
|
33
|
+
var Y = L.exec(P);
|
|
34
|
+
Y != null && (H = Y);
|
|
35
|
+
} while (Y != null);
|
|
36
36
|
return H[1];
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -83,7 +83,7 @@ var br = {};
|
|
|
83
83
|
}
|
|
84
84
|
return !1;
|
|
85
85
|
}();
|
|
86
|
-
function
|
|
86
|
+
function Y(r, t) {
|
|
87
87
|
if (r.prototype.constructor = r, r.prototype["$i" + r.name] = r, t != null) {
|
|
88
88
|
if (H) {
|
|
89
89
|
Object.setPrototypeOf(r.prototype, t.prototype);
|
|
@@ -93,17 +93,17 @@ var br = {};
|
|
|
93
93
|
_(r.prototype, n), r.prototype = n;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function ie(r, t) {
|
|
97
97
|
for (var n = 0; n < t.length; n++)
|
|
98
|
-
|
|
98
|
+
Y(t[n], r);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function le(r, t) {
|
|
101
101
|
L(t.prototype, r.prototype), r.prototype.constructor = r;
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function be(r, t) {
|
|
104
104
|
P(t.prototype, r.prototype), r.prototype.constructor = r;
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function je(r, t, n, i) {
|
|
107
107
|
var s = r;
|
|
108
108
|
r[t] = s, r[n] = function() {
|
|
109
109
|
return r[t] === s && (r[t] = i()), r[n] = function() {
|
|
@@ -111,7 +111,7 @@ var br = {};
|
|
|
111
111
|
}, r[t];
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Re(r, t, n, i) {
|
|
115
115
|
var s = r;
|
|
116
116
|
r[t] = s, r[n] = function() {
|
|
117
117
|
if (r[t] === s) {
|
|
@@ -124,10 +124,10 @@ var br = {};
|
|
|
124
124
|
}, l;
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function fe(r) {
|
|
128
128
|
return r.immutable$list = Array, r.fixed$length = Array, r;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function ve(r) {
|
|
131
131
|
return r;
|
|
132
132
|
}
|
|
133
133
|
function qt(r) {
|
|
@@ -152,7 +152,7 @@ var br = {};
|
|
|
152
152
|
function gt(r, t, n, i, s, o, l, c, f, h) {
|
|
153
153
|
return typeof c == "number" && (c += _t), { co: r, iS: t, iI: n, rC: i, dV: s, cs: o, fs: l, fT: c, aI: f || 0, nDA: h };
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function ct(r, t, n, i, s, o, l, c) {
|
|
156
156
|
var f = gt(r, !0, !1, n, i, s, o, l, c, !1), h = $t(f);
|
|
157
157
|
r[t] = h;
|
|
158
158
|
}
|
|
@@ -191,10 +191,10 @@ var br = {};
|
|
|
191
191
|
};
|
|
192
192
|
}, t = function(n, i, s, o) {
|
|
193
193
|
return function(l, c, f, h) {
|
|
194
|
-
return
|
|
194
|
+
return ct(l, c, n, i, s, [f], h, o);
|
|
195
195
|
};
|
|
196
196
|
};
|
|
197
|
-
return { inherit:
|
|
197
|
+
return { inherit: Y, inheritMany: ie, mixin: le, mixinHard: be, installStaticTearOff: ct, installInstanceTearOff: mt, _instance_0u: r(0, 0, null, ["$0"], 0), _instance_1u: r(0, 1, null, ["$1"], 0), _instance_2u: r(0, 2, null, ["$2"], 0), _instance_0i: r(1, 0, null, ["$0"], 0), _instance_1i: r(1, 1, null, ["$1"], 0), _instance_2i: r(1, 2, null, ["$2"], 0), _static_0: t(0, null, ["$0"], 0), _static_1: t(1, null, ["$1"], 0), _static_2: t(2, null, ["$2"], 0), makeConstList: fe, lazy: je, lazyFinal: Re, updateHolder: Rn, convertToFastObject: ve, updateTypes: Qt, setOrUpdateInterceptorsByTag: Wt, setOrUpdateLeafTags: bt };
|
|
198
198
|
}(), $ = {
|
|
199
199
|
x3(r, t, n, i) {
|
|
200
200
|
return { i: r, p: t, e: n, x: i };
|
|
@@ -3612,8 +3612,8 @@ var br = {};
|
|
|
3612
3612
|
yJ(r, t) {
|
|
3613
3613
|
return t.a(r);
|
|
3614
3614
|
},
|
|
3615
|
-
D2(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
3616
|
-
return new e.hr(I, A, te, X, m, G, M, N, R, q, C, ne,
|
|
3615
|
+
D2(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe, D) {
|
|
3616
|
+
return new e.hr(I, A, te, X, m, G, M, N, R, q, C, ne, oe, D, V, l, F, B, v, z, o, S, T, c, n, f, W, w, J, i, r, h, t, ee, s, y, k, d);
|
|
3617
3617
|
},
|
|
3618
3618
|
Cc(r) {
|
|
3619
3619
|
var t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N = null, F = r.b.j(), B = u.P, z = $.F(r.gZ(), new e.ob(), B);
|
|
@@ -3633,9 +3633,9 @@ var br = {};
|
|
|
3633
3633
|
cK: function(t, n) {
|
|
3634
3634
|
this.a = t, this.b = n;
|
|
3635
3635
|
},
|
|
3636
|
-
hr: function(t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
3637
|
-
var
|
|
3638
|
-
|
|
3636
|
+
hr: function(t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe, D, K) {
|
|
3637
|
+
var Q = this;
|
|
3638
|
+
Q.a = t, Q.b = n, Q.c = i, Q.d = s, Q.e = o, Q.f = l, Q.r = c, Q.w = f, Q.x = h, Q.y = d, Q.z = m, Q.Q = v, Q.as = y, Q.at = w, Q.ax = k, Q.ay = T, Q.ch = S, Q.CW = A, Q.cx = I, Q.cy = M, Q.db = C, Q.dx = q, Q.dy = R, Q.fr = N, Q.fx = F, Q.fy = B, Q.go = z, Q.id = X, Q.k1 = J, Q.k2 = te, Q.k3 = W, Q.k4 = G, Q.ok = ee, Q.p1 = V, Q.p2 = ne, Q.p3 = oe, Q.p4 = D, Q.R8 = K;
|
|
3639
3639
|
},
|
|
3640
3640
|
qh: function() {
|
|
3641
3641
|
},
|
|
@@ -3666,8 +3666,8 @@ var br = {};
|
|
|
3666
3666
|
yL(r, t) {
|
|
3667
3667
|
return t.a(r);
|
|
3668
3668
|
},
|
|
3669
|
-
ww(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
3670
|
-
return new e.dm(w, D, he,
|
|
3669
|
+
ww(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe, D, K, Q, he, de, pe) {
|
|
3670
|
+
return new e.dm(w, D, he, Q, A, n, F, o, de, T, G, te, W, d, h, V, M, k, l, B, m, v, K, z, J, c, ne, y, q, t, R, oe, r, N, i, S, pe, X, ee, f, s, I, C);
|
|
3671
3671
|
},
|
|
3672
3672
|
yA(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A) {
|
|
3673
3673
|
return new e.dl(f, h, d, A, w, t, m, S, T, k, c, i, v, s, o, l, y, n, r);
|
|
@@ -3675,20 +3675,20 @@ var br = {};
|
|
|
3675
3675
|
wx(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I) {
|
|
3676
3676
|
return new e.hz(r, t, n, i, o, l, c, f, h, d, m, v, y, k, T, S, A, I, s, w);
|
|
3677
3677
|
},
|
|
3678
|
-
qu(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
3679
|
-
return new e.dn(A, S,
|
|
3678
|
+
qu(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe) {
|
|
3679
|
+
return new e.dn(A, S, J, z, d, W, I, R, q, C, M, V, ne, oe, ee, l, N, F, m, B, o, T, k, c, n, f, te, y, X, i, r, h, t, G, s, v, w);
|
|
3680
3680
|
},
|
|
3681
3681
|
Cq(r) {
|
|
3682
3682
|
var t = $.F(u.j.a(r.h(0, "orderIds")), new e.p9(), u.N);
|
|
3683
3683
|
return new e.hE(e.u(t, !0, t.$ti.i("x.E")));
|
|
3684
3684
|
},
|
|
3685
3685
|
or(r) {
|
|
3686
|
-
var t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
3687
|
-
return Ee = Ee == null ? G : Ee.H(0, new e.ou(), ae, u.x), t = u.z, n = e.r(U.a(r.h(0, "is")), ae, t), i = e.ao(n.h(0, "takeaway")), n = e.V(n.h(0, ee)), s = e.m(r.h(0, "refundedFrom")), r.h(0, "refund") == null ? o = G : (o = e.r(U.a(r.h(0, "refund")), ae, t), l = o.h(0, "by") == null ? G : e.bg(e.r(U.a(o.h(0, "by")), ae, t)), c = o.h(0, V) == null ? G : e.bg(e.r(U.a(o.h(0, V)), ae, t)), o = new e.hG(l, c, e.m(o.h(0, "reason")))), l = u.g, c = l.a(r.h(0, "refundRecord")), c == null ? c = G : (c = $.F(c, new e.ov(), ae), c = e.u(c, !0, c.$ti.i("x.E"))), f =
|
|
3686
|
+
var t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G = null, ee = "delivery", V = "approvedBy", ne = "membership", oe = "inHouseDelivery", D = "foodpandaPickup", K = "grabfoodPickup", Q = "shopeefoodPickup", he = "queueInfo", de = "voucherIssued", pe = "dynamicQrSession", O = e.h(r.h(0, "_id")), Z = e.m(r.h(0, "seqNumber")), ae = u.N, Te = e.aI(a.eK, r.h(0, "status"), u.me, ae), ue = e.h(r.h(0, "slot")), U = u.f, ce = U.a(r.h(0, "items")).H(0, new e.os(), ae, u.B), Se = U.a(r.h(0, "adjustments")).H(0, new e.ot(), ae, u.r), ye = e.O(e.zT(r.h(0, "person"))), xe = e.m(r.h(0, "completedAt")), me = u.b, Ee = me.a(r.h(0, "taxes"));
|
|
3687
|
+
return Ee = Ee == null ? G : Ee.H(0, new e.ou(), ae, u.x), t = u.z, n = e.r(U.a(r.h(0, "is")), ae, t), i = e.ao(n.h(0, "takeaway")), n = e.V(n.h(0, ee)), s = e.m(r.h(0, "refundedFrom")), r.h(0, "refund") == null ? o = G : (o = e.r(U.a(r.h(0, "refund")), ae, t), l = o.h(0, "by") == null ? G : e.bg(e.r(U.a(o.h(0, "by")), ae, t)), c = o.h(0, V) == null ? G : e.bg(e.r(U.a(o.h(0, V)), ae, t)), o = new e.hG(l, c, e.m(o.h(0, "reason")))), l = u.g, c = l.a(r.h(0, "refundRecord")), c == null ? c = G : (c = $.F(c, new e.ov(), ae), c = e.u(c, !0, c.$ti.i("x.E"))), f = me.a(r.h(0, "effects")), f = f == null ? G : f.H(0, new e.ow(), ae, u.t), l = l.a(r.h(0, "effectGroups")), l == null ? l = G : (l = $.F(l, new e.ox(), u.kc), l = e.u(l, !0, l.$ti.i("x.E"))), h = r.h(0, "reward") == null ? G : e.Cr(e.r(U.a(r.h(0, "reward")), ae, t)), d = r.h(0, ne) == null ? G : e.Cm(e.r(U.a(r.h(0, ne)), ae, t)), r.h(0, oe) == null ? m = G : (m = e.r(U.a(r.h(0, oe)), ae, t), m = new e.hw(e.h(m.h(0, "name")), e.h(m.h(0, "contactNumber")), e.h(m.h(0, "addressLine")), e.m(m.h(0, "deliveryAt")), e.m(m.h(0, "remark")), e.a6(e.r(U.a(m.h(0, "deliveryFee")), ae, t)), e.m(m.h(0, "orderId")))), v = r.h(0, ee) == null ? G : e.Ce(e.r(U.a(r.h(0, ee)), ae, t)), y = r.h(0, "pickup") == null ? G : e.Co(e.r(U.a(r.h(0, "pickup")), ae, t)), w = r.h(0, D) == null ? G : e.wv(e.r(U.a(r.h(0, D)), ae, t)), k = r.h(0, K) == null ? G : e.wv(e.r(U.a(r.h(0, K)), ae, t)), T = r.h(0, Q) == null ? G : e.wv(e.r(U.a(r.h(0, Q)), ae, t)), S = e.m(r.h(0, "preorderOn")), r.h(0, he) == null ? A = G : (A = e.r(U.a(r.h(0, he)), ae, t), A = new e.hF(e.h(A.h(0, "_id")), e.h(A.h(0, "code")), e.h(A.h(0, "createdAt")))), I = r.h(0, "dineIn") == null ? G : e.Cg(e.r(U.a(r.h(0, "dineIn")), ae, t)), M = e.aN(r.h(0, "roundToNearest")), C = e.a6(e.r(U.a(r.h(0, "grossTotal")), ae, t)), q = U.a(r.h(0, "nettTaxes")).H(0, new e.oy(), ae, u.x), R = e.a6(e.r(U.a(r.h(0, "adjustedTotal")), ae, t)), N = e.a6(e.r(U.a(r.h(0, "nettTotal")), ae, t)), F = e.a6(e.r(U.a(r.h(0, "rounding")), ae, t)), B = $.F(u.j.a(r.h(0, "activeItems")), new e.oz(), ae), B = e.u(B, !0, B.$ti.i("x.E")), z = U.a(r.h(0, "payments")).H(0, new e.oA(), ae, u.O), X = e.a6(e.r(U.a(r.h(0, "balance")), ae, t)), me = me.a(r.h(0, "issued")), me = me == null ? G : me.H(0, new e.oB(), ae, u.a7), J = r.h(0, de) == null ? G : e.Cu(e.r(U.a(r.h(0, de)), ae, t)), te = r.h(0, "qrOrder") == null ? G : e.Cq(e.r(U.a(r.h(0, "qrOrder")), ae, t)), W = e.m(r.h(0, "remark")), r.h(0, pe) == null ? U = G : (U = e.r(U.a(r.h(0, pe)), ae, t), U = new e.hv(e.h(U.h(0, "id")), e.ao(U.h(0, "link")))), e.ww(B, R, Se, X, e.aN(r.h(0, "calculatorVersion")), xe, v, I, U, l, f, w, k, C, O, m, new e.f4(i, n), me, ce, e.m(r.h(0, "machineId")), d, e.Ab(a.eL, r.h(0, "minPriceMode"), u.pn, ae), q, N, z, ye, y, S, te, A, o, c, s, W, h, M, F, Z, T, ue, Te, Ee, J);
|
|
3688
3688
|
},
|
|
3689
3689
|
Cj(r) {
|
|
3690
|
-
var t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
3691
|
-
return ee.toString, t = u.N, n = u.P, i = r.gJ().H(0, new e.oC(), t, n), s = r.gV().H(0, new e.oD(), t, n), o = r.gI(), o = o == null ? G : o.H(0, new e.oE(), t, n), l = r.y.j(), c = r.Q, c = c == null ? G : c.j(), f = r.gdG(), h = r.gae(), h = h == null ? G : h.H(0, new e.oF(), t, n), d = r.gc_(), d == null ? d = G : (d = $.F(d, new e.oG(), n), d = e.u(d, !0, d.$ti.i("x.E"))), m = r.ay, m = m == null ? G : m.j(), v = r.ch, v = v == null ? G : v.j(), y = r.CW, y = y == null ? G : y.j(), w = r.cx, w = w == null ? G : w.j(), k = r.cy, k = k == null ? G : k.j(), T = r.db, T = T == null ? G : T.j(), S = r.dx, S = S == null ? G : S.j(), A = r.dy, A = A == null ? G : A.j(), I = r.fx, I = I == null ? G : I.j(), M = r.fy, M = M == null ? G : M.j(), C = r.id.j(), q = r.gdw().H(0, new e.oH(), t, n), R = r.k2.j(), N = r.k3.j(), F = r.k4.j(), B = r.gbx(), z = r.gaV().H(0, new e.oI(), t, n), X = r.p2.j(),
|
|
3690
|
+
var t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G = null, ee = a.eK.h(0, r.c);
|
|
3691
|
+
return ee.toString, t = u.N, n = u.P, i = r.gJ().H(0, new e.oC(), t, n), s = r.gV().H(0, new e.oD(), t, n), o = r.gI(), o = o == null ? G : o.H(0, new e.oE(), t, n), l = r.y.j(), c = r.Q, c = c == null ? G : c.j(), f = r.gdG(), h = r.gae(), h = h == null ? G : h.H(0, new e.oF(), t, n), d = r.gc_(), d == null ? d = G : (d = $.F(d, new e.oG(), n), d = e.u(d, !0, d.$ti.i("x.E"))), m = r.ay, m = m == null ? G : m.j(), v = r.ch, v = v == null ? G : v.j(), y = r.CW, y = y == null ? G : y.j(), w = r.cx, w = w == null ? G : w.j(), k = r.cy, k = k == null ? G : k.j(), T = r.db, T = T == null ? G : T.j(), S = r.dx, S = S == null ? G : S.j(), A = r.dy, A = A == null ? G : A.j(), I = r.fx, I = I == null ? G : I.j(), M = r.fy, M = M == null ? G : M.j(), C = r.id.j(), q = r.gdw().H(0, new e.oH(), t, n), R = r.k2.j(), N = r.k3.j(), F = r.k4.j(), B = r.gbx(), z = r.gaV().H(0, new e.oI(), t, n), X = r.p2.j(), J = r.gds(), n = J == null ? G : J.H(0, new e.oJ(), t, n), J = r.p4, J = J == null ? G : J.j(), te = r.R8, te = te == null ? G : te.j(), W = r.rx, W = W == null ? G : W.j(), e.w(["_id", r.a, "seqNumber", r.b, "status", ee, "slot", r.d, "items", i, "adjustments", s, "person", r.r, "completedAt", r.w, "taxes", o, "is", l, "refundedFrom", r.z, "refund", c, "refundRecord", f, "effects", h, "effectGroups", d, "reward", m, "membership", v, "inHouseDelivery", y, "delivery", w, "pickup", k, "foodpandaPickup", T, "grabfoodPickup", S, "shopeefoodPickup", A, "preorderOn", r.fr, "queueInfo", I, "dineIn", M, "roundToNearest", r.go, "grossTotal", C, "nettTaxes", q, "adjustedTotal", R, "nettTotal", N, "rounding", F, "activeItems", B, "payments", z, "balance", X, "issued", n, "voucherIssued", J, "qrOrder", te, "remark", r.RG, "dynamicQrSession", W, "calculatorVersion", r.ry, "machineId", r.to, "minPriceMode", a.eL.h(0, r.x1)], t, u.z);
|
|
3692
3692
|
},
|
|
3693
3693
|
Cd(r) {
|
|
3694
3694
|
var t, n, i = "adjustmentRule", s = u.N, o = e.aI(a.r, r.h(0, "cause"), u.E, s), l = e.m(r.h(0, "referenceId")), c = e.m(r.h(0, "reason")), f = u.f, h = u.z, d = e.f3(e.r(f.a(r.h(0, "adjustment")), s, h)), m = r.h(0, i) == null ? null : e.wu(e.r(f.a(r.h(0, i)), s, h)), v = e.a6(e.r(f.a(r.h(0, "total")), s, h)), y = e.bg(e.r(f.a(r.h(0, "createdBy")), s, h));
|
|
@@ -3733,8 +3733,8 @@ var br = {};
|
|
|
3733
3733
|
return c = c == null ? o : c.H(0, new e.pe(), u.N, u.P), t = r.e, t = t == null ? o : t.j(), n = r.f, n = n == null ? o : n.j(), i = r.Q, i = i == null ? o : i.j(), s = $.F(r.gZ(), new e.pf(), u.P), e.w(["dynamic", l, "kitchenStation", c, "name", r.c, "name2", r.d, "price", t, "product", n, "productId", r.r, "quantity", r.w, "selection", r.x, "servedAt", r.y, "collectedAt", r.z, "variantSelected", i, "subItems", e.u(s, !0, s.$ti.i("x.E"))], u.N, u.z);
|
|
3734
3734
|
},
|
|
3735
3735
|
oK(r) {
|
|
3736
|
-
var t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
3737
|
-
return
|
|
3736
|
+
var t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V = null, ne = "refundBy", oe = "refundApprovedBy", D = "voidApprovedBy", K = "createdBy", Q = "customer", he = "stockChange", de = "baseTotal", pe = "addonTotal", O = "grossTotal", Z = "adjustmentTotal", ae = "variantSelected", Te = e.m(r.h(0, "productId")), ue = u.f, U = u.N, ce = u.z, Se = e.wr(e.r(ue.a(r.h(0, "product")), U, ce)), ye = $.F(u.j.a(r.h(0, "subItems")), new e.oL(), u.h);
|
|
3737
|
+
return ye = e.u(ye, !0, ye.$ti.i("x.E")), t = e.aI(a.a6, r.h(0, "status"), u.nc, U), n = e.yl(e.r(ue.a(r.h(0, "is")), U, ce)), i = e.aN(r.h(0, "unitQuantity")), s = e.O(r.h(0, "quantity")), o = e.m(r.h(0, "remark")), l = e.m(r.h(0, "refundedFrom")), c = r.h(0, ne) == null ? V : e.bg(e.r(ue.a(r.h(0, ne)), U, ce)), f = r.h(0, oe) == null ? V : e.bg(e.r(ue.a(r.h(0, oe)), U, ce)), h = e.m(r.h(0, "voidAt")), d = r.h(0, "voidBy") == null ? V : e.bg(e.r(ue.a(r.h(0, "voidBy")), U, ce)), m = e.m(r.h(0, "voidReason")), v = r.h(0, D) == null ? V : e.bg(e.r(ue.a(r.h(0, D)), U, ce)), y = r.h(0, K) == null ? V : e.bg(e.r(ue.a(r.h(0, K)), U, ce)), w = e.m(r.h(0, "sentAt")), k = r.h(0, "sentBy") == null ? V : e.bg(e.r(ue.a(r.h(0, "sentBy")), U, ce)), T = u.b, S = T.a(r.h(0, "kitchenStation")), S = S == null ? V : S.H(0, new e.oM(), U, u.M), A = e.m(r.h(0, "servedAt")), I = e.m(r.h(0, "collectedAt")), M = e.m(r.h(0, "printReceiptAt")), C = u.g.a(r.h(0, "printBy")), C == null ? C = V : (C = $.F(C, new e.oN(), u.m5), C = e.u(C, !0, C.$ti.i("x.E"))), q = r.h(0, Q) == null ? V : e.wq(e.r(ue.a(r.h(0, Q)), U, ce)), R = ue.a(r.h(0, "adjustments")).H(0, new e.oO(), U, u.F), N = e.m(r.h(0, "deletedAt")), F = ue.a(r.h(0, "taxes")).H(0, new e.oP(), U, u.V), B = e.a6(e.r(ue.a(r.h(0, "nettTotal")), U, ce)), z = r.h(0, he) == null ? V : e.ys(e.r(ue.a(r.h(0, he)), U, ce)), X = r.h(0, de) == null ? V : e.a6(e.r(ue.a(r.h(0, de)), U, ce)), J = r.h(0, pe) == null ? V : e.a6(e.r(ue.a(r.h(0, pe)), U, ce)), te = r.h(0, O) == null ? V : e.a6(e.r(ue.a(r.h(0, O)), U, ce)), W = r.h(0, Z) == null ? V : e.a6(e.r(ue.a(r.h(0, Z)), U, ce)), G = r.h(0, ae) == null ? V : e.ws(e.r(ue.a(r.h(0, ae)), U, ce)), ee = T.a(r.h(0, "billDiscount")), ee = ee == null ? V : ee.H(0, new e.oQ(), U, u.o), T = T.a(r.h(0, "moveFrom")), T = T == null ? V : T.H(0, new e.oR(), U, u.oP), e.qu(J, W, R, X, ee, I, y, q, N, te, n, S, T, B, r.h(0, "parent") == null ? V : e.oK(e.r(ue.a(r.h(0, "parent")), U, ce)), C, M, Se, Te, s, f, c, l, o, w, k, A, t, z, ye, F, i, G, v, h, d, m);
|
|
3738
3738
|
},
|
|
3739
3739
|
Ck(r) {
|
|
3740
3740
|
var t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N = null, F = r.b.j(), B = u.P, z = $.F(r.gZ(), new e.oS(), B);
|
|
@@ -3867,9 +3867,9 @@ var br = {};
|
|
|
3867
3867
|
iK: function(t, n, i) {
|
|
3868
3868
|
this.a = t, this.b = n, this.$ti = i;
|
|
3869
3869
|
},
|
|
3870
|
-
dm: function(t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
3870
|
+
dm: function(t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe, D, K, Q, he, de, pe, O) {
|
|
3871
3871
|
var Z = this;
|
|
3872
|
-
Z.a = t, Z.b = n, Z.c = i, Z.d = s, Z.e = o, Z.f = l, Z.r = c, Z.w = f, Z.x = h, Z.y = d, Z.z = m, Z.Q = v, Z.as = y, Z.at = w, Z.ax = k, Z.ay = T, Z.ch = S, Z.CW = A, Z.cx = I, Z.cy = M, Z.db = C, Z.dx = q, Z.dy = R, Z.fr = N, Z.fx = F, Z.fy = B, Z.go = z, Z.id = X, Z.k1 =
|
|
3872
|
+
Z.a = t, Z.b = n, Z.c = i, Z.d = s, Z.e = o, Z.f = l, Z.r = c, Z.w = f, Z.x = h, Z.y = d, Z.z = m, Z.Q = v, Z.as = y, Z.at = w, Z.ax = k, Z.ay = T, Z.ch = S, Z.CW = A, Z.cx = I, Z.cy = M, Z.db = C, Z.dx = q, Z.dy = R, Z.fr = N, Z.fx = F, Z.fy = B, Z.go = z, Z.id = X, Z.k1 = J, Z.k2 = te, Z.k3 = W, Z.k4 = G, Z.ok = ee, Z.p1 = V, Z.p2 = ne, Z.p3 = oe, Z.p4 = D, Z.R8 = K, Z.RG = Q, Z.rx = he, Z.ry = de, Z.to = pe, Z.x1 = O;
|
|
3873
3873
|
},
|
|
3874
3874
|
qk: function() {
|
|
3875
3875
|
},
|
|
@@ -3958,9 +3958,9 @@ var br = {};
|
|
|
3958
3958
|
iL: function(t, n, i) {
|
|
3959
3959
|
this.a = t, this.b = n, this.$ti = i;
|
|
3960
3960
|
},
|
|
3961
|
-
dn: function(t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
3962
|
-
var
|
|
3963
|
-
|
|
3961
|
+
dn: function(t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe, D) {
|
|
3962
|
+
var K = this;
|
|
3963
|
+
K.a = t, K.b = n, K.c = i, K.d = s, K.e = o, K.f = l, K.r = c, K.w = f, K.x = h, K.y = d, K.z = m, K.Q = v, K.as = y, K.at = w, K.ax = k, K.ay = T, K.ch = S, K.CW = A, K.cx = I, K.cy = M, K.db = C, K.dx = q, K.dy = R, K.fr = N, K.fx = F, K.fy = B, K.go = z, K.id = X, K.k1 = J, K.k2 = te, K.k3 = W, K.k4 = G, K.ok = ee, K.p1 = V, K.p2 = ne, K.p3 = oe, K.p4 = D;
|
|
3964
3964
|
},
|
|
3965
3965
|
qC: function() {
|
|
3966
3966
|
},
|
|
@@ -11407,9 +11407,9 @@ Arguments: [` + f + "]";
|
|
|
11407
11407
|
return this.gm().$1$balance(r);
|
|
11408
11408
|
}
|
|
11409
11409
|
}, e.ea.prototype = {
|
|
11410
|
-
$43$activeItems$adjustedTotal$adjustments$balance$calculatorVersion$completedAt$delivery$dineIn$dynamicQrSession$effectGroups$effects$foodpandaPickup$grabfoodPickup$grossTotal$id$inHouseDelivery$is_$issued$items$machineId$membership$minPriceMode$nettTaxes$nettTotal$payments$person$pickup$preorderOn$qrOrder$queueInfo$refund$refundRecord$refundedFrom$remark$reward$roundToNearest$rounding$seqNumber$shopeefoodPickup$slot$status$taxes$voucherIssued(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
11411
|
-
var O = this.a, Z = w == null ? O.a : e.h(w), ae = a.a === D ? O.b : e.m(D),
|
|
11412
|
-
return this.b.$1(this.$ti.i("ea.1").a(O.iK(Xt,
|
|
11410
|
+
$43$activeItems$adjustedTotal$adjustments$balance$calculatorVersion$completedAt$delivery$dineIn$dynamicQrSession$effectGroups$effects$foodpandaPickup$grabfoodPickup$grossTotal$id$inHouseDelivery$is_$issued$items$machineId$membership$minPriceMode$nettTaxes$nettTotal$payments$person$pickup$preorderOn$qrOrder$queueInfo$refund$refundRecord$refundedFrom$remark$reward$roundToNearest$rounding$seqNumber$shopeefoodPickup$slot$status$taxes$voucherIssued(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe, D, K, Q, he, de, pe) {
|
|
11411
|
+
var O = this.a, Z = w == null ? O.a : e.h(w), ae = a.a === D ? O.b : e.m(D), Te = he == null ? O.c : u.me.a(he), ue = Q == null ? O.d : e.h(Q), U = A == null ? O.gJ() : u.C.a(A), ce = n == null ? O.gV() : u.dn.a(n), Se = F == null ? O.r : e.O(F), ye = a.a === o ? O.w : e.m(o), xe = a.a === de ? O.gI() : u.nh.a(de), me = T == null ? O.y : u.gF.a(T), Ee = a.a === G ? O.z : e.m(G), Ge = a.a === te ? O.Q : u.oV.a(te), Le = a.a === W ? O.gdG() : u.y.a(W), He = a.a === d ? O.gae() : u.ix.a(d), Ue = a.a === h ? O.gc_() : u.f8.a(h), Ve = a.a === V ? O.ay : u.kk.a(V), Ke = a.a === M ? O.ch : u.ik.a(M), We = a.a === k ? O.CW : u.gG.a(k), Qe = a.a === l ? O.cx : u.gS.a(l), Je = a.a === B ? O.cy : u.h4.a(B), Ye = a.a === m ? O.db : u.c5.a(m), Xe = a.a === v ? O.dx : u.c5.a(v), Ze = a.a === K ? O.dy : u.c5.a(K), et = a.a === z ? O.fr : e.m(z), tt = a.a === J ? O.fx : u.ks.a(J), rt = a.a === c ? O.fy : u.j2.a(c), nt = a.a === ne ? O.go : e.aN(ne), at = y == null ? O.id : u.o.a(y), it = q == null ? O.gdw() : u.dE.a(q), st = t == null ? O.k2 : u.o.a(t), Jt = R == null ? O.k3 : u.o.a(R), Yt = oe == null ? O.k4 : u.o.a(oe), Xt = r == null ? O.gbx() : u.k.a(r), Zt = N == null ? O.gaV() : u.mn.a(N), er = i == null ? O.p2 : u.o.a(i), tr = a.a === S ? O.gds() : u.l3.a(S), rr = a.a === pe ? O.p4 : u.oK.a(pe), nr = a.a === X ? O.R8 : u.fK.a(X), ar = a.a === ee ? O.RG : e.m(ee), ir = a.a === f ? O.rx : u.l9.a(f), sr = a.a === s ? O.ry : e.aN(s), or = a.a === I ? O.to : e.m(I);
|
|
11412
|
+
return this.b.$1(this.$ti.i("ea.1").a(O.iK(Xt, st, ce, er, sr, ye, Qe, rt, ir, Ue, He, Ye, Xe, at, Z, We, me, tr, U, or, Ke, a.a === C ? O.x1 : u.ml.a(C), it, Jt, Zt, Se, Je, et, nr, tt, Ge, Le, Ee, ar, Ve, nt, Yt, ae, Ze, ue, Te, xe, rr)));
|
|
11413
11413
|
},
|
|
11414
11414
|
$0() {
|
|
11415
11415
|
var r = null;
|
|
@@ -11468,9 +11468,9 @@ Arguments: [` + f + "]";
|
|
|
11468
11468
|
return this.$43$activeItems$adjustedTotal$adjustments$balance$calculatorVersion$completedAt$delivery$dineIn$dynamicQrSession$effectGroups$effects$foodpandaPickup$grabfoodPickup$grossTotal$id$inHouseDelivery$is_$issued$items$machineId$membership$minPriceMode$nettTaxes$nettTotal$payments$person$pickup$preorderOn$qrOrder$queueInfo$refund$refundRecord$refundedFrom$remark$reward$roundToNearest$rounding$seqNumber$shopeefoodPickup$slot$status$taxes$voucherIssued(t, t, t, r, a.a, a.a, a.a, a.a, a.a, a.a, a.a, a.a, a.a, t, t, a.a, t, a.a, t, a.a, a.a, a.a, t, t, t, t, a.a, a.a, a.a, a.a, a.a, a.a, a.a, a.a, a.a, a.a, t, a.a, a.a, t, t, a.a, a.a);
|
|
11469
11469
|
}
|
|
11470
11470
|
}, e.iK.prototype = {
|
|
11471
|
-
$43$activeItems$adjustedTotal$adjustments$balance$calculatorVersion$completedAt$delivery$dineIn$dynamicQrSession$effectGroups$effects$foodpandaPickup$grabfoodPickup$grossTotal$id$inHouseDelivery$is_$issued$items$machineId$membership$minPriceMode$nettTaxes$nettTotal$payments$person$pickup$preorderOn$qrOrder$queueInfo$refund$refundRecord$refundedFrom$remark$reward$roundToNearest$rounding$seqNumber$shopeefoodPickup$slot$status$taxes$voucherIssued(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
11472
|
-
var O = this, Z = w == null ? O.a.a : e.h(w), ae = a.a === D ? O.a.b : e.m(D),
|
|
11473
|
-
return O.b.$1(e.ww(Xt,
|
|
11471
|
+
$43$activeItems$adjustedTotal$adjustments$balance$calculatorVersion$completedAt$delivery$dineIn$dynamicQrSession$effectGroups$effects$foodpandaPickup$grabfoodPickup$grossTotal$id$inHouseDelivery$is_$issued$items$machineId$membership$minPriceMode$nettTaxes$nettTotal$payments$person$pickup$preorderOn$qrOrder$queueInfo$refund$refundRecord$refundedFrom$remark$reward$roundToNearest$rounding$seqNumber$shopeefoodPickup$slot$status$taxes$voucherIssued(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe, D, K, Q, he, de, pe) {
|
|
11472
|
+
var O = this, Z = w == null ? O.a.a : e.h(w), ae = a.a === D ? O.a.b : e.m(D), Te = he == null ? O.a.c : u.me.a(he), ue = Q == null ? O.a.d : e.h(Q), U = A == null ? O.a.e : u.C.a(A), ce = n == null ? O.a.f : u.dn.a(n), Se = F == null ? O.a.r : e.O(F), ye = a.a === o ? O.a.w : e.m(o), xe = a.a === de ? O.a.x : u.nh.a(de), me = T == null ? O.a.y : u.gF.a(T), Ee = a.a === G ? O.a.z : e.m(G), Ge = a.a === te ? O.a.Q : u.oV.a(te), Le = a.a === W ? O.a.as : u.y.a(W), He = a.a === d ? O.a.at : u.ix.a(d), Ue = a.a === h ? O.a.ax : u.f8.a(h), Ve = a.a === V ? O.a.ay : u.kk.a(V), Ke = a.a === M ? O.a.ch : u.ik.a(M), We = a.a === k ? O.a.CW : u.gG.a(k), Qe = a.a === l ? O.a.cx : u.gS.a(l), Je = a.a === B ? O.a.cy : u.h4.a(B), Ye = a.a === m ? O.a.db : u.c5.a(m), Xe = a.a === v ? O.a.dx : u.c5.a(v), Ze = a.a === K ? O.a.dy : u.c5.a(K), et = a.a === z ? O.a.fr : e.m(z), tt = a.a === J ? O.a.fx : u.ks.a(J), rt = a.a === c ? O.a.fy : u.j2.a(c), nt = a.a === ne ? O.a.go : e.aN(ne), at = y == null ? O.a.id : u.o.a(y), it = q == null ? O.a.k1 : u.dE.a(q), st = t == null ? O.a.k2 : u.o.a(t), Jt = R == null ? O.a.k3 : u.o.a(R), Yt = oe == null ? O.a.k4 : u.o.a(oe), Xt = r == null ? O.a.ok : u.k.a(r), Zt = N == null ? O.a.p1 : u.mn.a(N), er = i == null ? O.a.p2 : u.o.a(i), tr = a.a === S ? O.a.p3 : u.l3.a(S), rr = a.a === pe ? O.a.p4 : u.oK.a(pe), nr = a.a === X ? O.a.R8 : u.fK.a(X), ar = a.a === ee ? O.a.RG : e.m(ee), ir = a.a === f ? O.a.rx : u.l9.a(f), sr = a.a === s ? O.a.ry : e.aN(s), or = a.a === I ? O.a.to : e.m(I);
|
|
11473
|
+
return O.b.$1(e.ww(Xt, st, ce, er, sr, ye, Qe, rt, ir, Ue, He, Ye, Xe, at, Z, We, me, tr, U, or, Ke, a.a === C ? O.a.x1 : u.ml.a(C), it, Jt, Zt, Se, Je, et, nr, tt, Ge, Le, Ee, ar, Ve, nt, Yt, ae, Ze, ue, Te, xe, rr));
|
|
11474
11474
|
},
|
|
11475
11475
|
$0() {
|
|
11476
11476
|
var r = null;
|
|
@@ -11591,8 +11591,8 @@ Arguments: [` + f + "]";
|
|
|
11591
11591
|
iF(r, t) {
|
|
11592
11592
|
return this.gm().$2$calculatorVersion$effectGroups(r, t);
|
|
11593
11593
|
},
|
|
11594
|
-
iK(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
11595
|
-
return this.gm().$43$activeItems$adjustedTotal$adjustments$balance$calculatorVersion$completedAt$delivery$dineIn$dynamicQrSession$effectGroups$effects$foodpandaPickup$grabfoodPickup$grossTotal$id$inHouseDelivery$is_$issued$items$machineId$membership$minPriceMode$nettTaxes$nettTotal$payments$person$pickup$preorderOn$qrOrder$queueInfo$refund$refundRecord$refundedFrom$remark$reward$roundToNearest$rounding$seqNumber$shopeefoodPickup$slot$status$taxes$voucherIssued(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
11594
|
+
iK(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe, D, K, Q, he, de, pe) {
|
|
11595
|
+
return this.gm().$43$activeItems$adjustedTotal$adjustments$balance$calculatorVersion$completedAt$delivery$dineIn$dynamicQrSession$effectGroups$effects$foodpandaPickup$grabfoodPickup$grossTotal$id$inHouseDelivery$is_$issued$items$machineId$membership$minPriceMode$nettTaxes$nettTotal$payments$person$pickup$preorderOn$qrOrder$queueInfo$refund$refundRecord$refundedFrom$remark$reward$roundToNearest$rounding$seqNumber$shopeefoodPickup$slot$status$taxes$voucherIssued(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe, D, K, Q, he, de, pe);
|
|
11596
11596
|
},
|
|
11597
11597
|
bX(r) {
|
|
11598
11598
|
return this.gm().$1$items(r);
|
|
@@ -11875,8 +11875,8 @@ Arguments: [` + f + "]";
|
|
|
11875
11875
|
}
|
|
11876
11876
|
}, e.cL.prototype = {
|
|
11877
11877
|
$19$canRefund$catalogId$commissionCharge$customer$deliveryAt$deliveryFee$deliveryFeeTaxes$driver$id$key$name$orderId$otherCharge$otherChargeTaxes$paymentTypeKey$pickupRef$preparing$remark$slotPrefix(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A) {
|
|
11878
|
-
var I = this.a, M = a.a === f ? I.gc2(I) : e.m(f), C = h == null ? I.gc5() : e.h(h), q = d == null ? I.ga7(I) : e.h(d), R = A == null ? I.ge3() : e.h(A), N = a.a === w ? I.gfL() : e.m(w), F = a.a === t ? I.geN() : e.m(t), B = a.a === m ? I.gc7() : e.m(m), z = a.a === S ? I.gaC() : e.m(S), X = a.a === T ? I.gfQ() : e.V(T),
|
|
11879
|
-
return this.b.$1(e.D(this).i("cL.1").a(I.f5(a.a === r ? I.gbW() : e.V(r), F, D,
|
|
11878
|
+
var I = this.a, M = a.a === f ? I.gc2(I) : e.m(f), C = h == null ? I.gc5() : e.h(h), q = d == null ? I.ga7(I) : e.h(d), R = A == null ? I.ge3() : e.h(A), N = a.a === w ? I.gfL() : e.m(w), F = a.a === t ? I.geN() : e.m(t), B = a.a === m ? I.gc7() : e.m(m), z = a.a === S ? I.gaC() : e.m(S), X = a.a === T ? I.gfQ() : e.V(T), J = a.a === k ? I.gfO() : e.m(k), te = a.a === c ? I.gfp() : u.p1.a(c), W = a.a === i ? I.gaT() : u.nw.a(i), G = a.a === v ? I.gaH() : u.S.a(v), ee = a.a === s ? I.gfo() : e.m(s), V = a.a === o ? I.gbD() : u.S.a(o), ne = a.a === l ? I.gbE() : u.fM.a(l), oe = a.a === y ? I.gau() : u.fM.a(y), D = a.a === n ? I.geR() : u.S.a(n);
|
|
11879
|
+
return this.b.$1(e.D(this).i("cL.1").a(I.f5(a.a === r ? I.gbW() : e.V(r), F, D, W, ee, V, ne, te, M, C, q, B, G, oe, N, J, X, z, R)));
|
|
11880
11880
|
},
|
|
11881
11881
|
$0() {
|
|
11882
11882
|
return this.$19$canRefund$catalogId$commissionCharge$customer$deliveryAt$deliveryFee$deliveryFeeTaxes$driver$id$key$name$orderId$otherCharge$otherChargeTaxes$paymentTypeKey$pickupRef$preparing$remark$slotPrefix(a.a, a.a, a.a, a.a, a.a, a.a, a.a, a.a, a.a, null, null, a.a, a.a, a.a, a.a, a.a, a.a, a.a, null);
|
|
@@ -11889,8 +11889,8 @@ Arguments: [` + f + "]";
|
|
|
11889
11889
|
}
|
|
11890
11890
|
}, e.iJ.prototype = {
|
|
11891
11891
|
$19$canRefund$catalogId$commissionCharge$customer$deliveryAt$deliveryFee$deliveryFeeTaxes$driver$id$key$name$orderId$otherCharge$otherChargeTaxes$paymentTypeKey$pickupRef$preparing$remark$slotPrefix(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A) {
|
|
11892
|
-
var I = this, M = a.a === f ? I.a.a : e.m(f), C = h == null ? I.a.b : e.h(h), q = d == null ? I.a.c : e.h(d), R = A == null ? I.a.d : e.h(A), N = a.a === w ? I.a.e : e.m(w), F = a.a === t ? I.a.f : e.m(t), B = a.a === m ? I.a.r : e.m(m), z = a.a === S ? I.a.w : e.m(S), X = a.a === T ? I.a.x : e.V(T),
|
|
11893
|
-
return I.b.$1(e.yA(a.a === r ? I.a.cx : e.V(r), F, D,
|
|
11892
|
+
var I = this, M = a.a === f ? I.a.a : e.m(f), C = h == null ? I.a.b : e.h(h), q = d == null ? I.a.c : e.h(d), R = A == null ? I.a.d : e.h(A), N = a.a === w ? I.a.e : e.m(w), F = a.a === t ? I.a.f : e.m(t), B = a.a === m ? I.a.r : e.m(m), z = a.a === S ? I.a.w : e.m(S), X = a.a === T ? I.a.x : e.V(T), J = a.a === k ? I.a.y : e.m(k), te = a.a === c ? I.a.z : u.p1.a(c), W = a.a === i ? I.a.Q : u.nw.a(i), G = a.a === v ? I.a.as : u.S.a(v), ee = a.a === s ? I.a.at : e.m(s), V = a.a === o ? I.a.ax : u.S.a(o), ne = a.a === l ? I.a.ay : u.fM.a(l), oe = a.a === y ? I.a.ch : u.fM.a(y), D = a.a === n ? I.a.CW : u.S.a(n);
|
|
11893
|
+
return I.b.$1(e.yA(a.a === r ? I.a.cx : e.V(r), F, D, W, ee, V, ne, te, M, C, q, B, G, oe, N, J, X, z, R));
|
|
11894
11894
|
},
|
|
11895
11895
|
$0() {
|
|
11896
11896
|
return this.$19$canRefund$catalogId$commissionCharge$customer$deliveryAt$deliveryFee$deliveryFeeTaxes$driver$id$key$name$orderId$otherCharge$otherChargeTaxes$paymentTypeKey$pickupRef$preparing$remark$slotPrefix(a.a, a.a, a.a, a.a, a.a, a.a, a.a, a.a, a.a, null, null, a.a, a.a, a.a, a.a, a.a, a.a, a.a, null);
|
|
@@ -12475,8 +12475,8 @@ Arguments: [` + f + "]";
|
|
|
12475
12475
|
bB(r) {
|
|
12476
12476
|
return this.gm().$1$taxes(r);
|
|
12477
12477
|
},
|
|
12478
|
-
fi(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
12479
|
-
return this.gm().$37$addonTotal$adjustmentTotal$adjustments$baseTotal$billDiscount$collectedAt$createdBy$customer$deletedAt$grossTotal$is_$kitchenStation$moveFrom$nettTotal$parent$printBy$printReceiptAt$product$productId$quantity$refundApprovedBy$refundBy$refundedFrom$remark$sentAt$sentBy$servedAt$status$stockChange$subItems$taxes$unitQuantity$variantSelected$voidApprovedBy$voidAt$voidBy$voidReason(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
12478
|
+
fi(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe) {
|
|
12479
|
+
return this.gm().$37$addonTotal$adjustmentTotal$adjustments$baseTotal$billDiscount$collectedAt$createdBy$customer$deletedAt$grossTotal$is_$kitchenStation$moveFrom$nettTotal$parent$printBy$printReceiptAt$product$productId$quantity$refundApprovedBy$refundBy$refundedFrom$remark$sentAt$sentBy$servedAt$status$stockChange$subItems$taxes$unitQuantity$variantSelected$voidApprovedBy$voidAt$voidBy$voidReason(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe);
|
|
12480
12480
|
},
|
|
12481
12481
|
bY(r) {
|
|
12482
12482
|
return this.gm().$1$subItems(r);
|
|
@@ -12506,9 +12506,9 @@ Arguments: [` + f + "]";
|
|
|
12506
12506
|
return this.gm().$1$billDiscount(r);
|
|
12507
12507
|
}
|
|
12508
12508
|
}, e.cM.prototype = {
|
|
12509
|
-
$37$addonTotal$adjustmentTotal$adjustments$baseTotal$billDiscount$collectedAt$createdBy$customer$deletedAt$grossTotal$is_$kitchenStation$moveFrom$nettTotal$parent$printBy$printReceiptAt$product$productId$quantity$refundApprovedBy$refundBy$refundedFrom$remark$sentAt$sentBy$servedAt$status$stockChange$subItems$taxes$unitQuantity$variantSelected$voidApprovedBy$voidAt$voidBy$voidReason(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
12510
|
-
var D = this.a,
|
|
12511
|
-
return this.b.$1(e.D(this).i("cM.1").a(D.fi(
|
|
12509
|
+
$37$addonTotal$adjustmentTotal$adjustments$baseTotal$billDiscount$collectedAt$createdBy$customer$deletedAt$grossTotal$is_$kitchenStation$moveFrom$nettTotal$parent$printBy$printReceiptAt$product$productId$quantity$refundApprovedBy$refundBy$refundedFrom$remark$sentAt$sentBy$servedAt$status$stockChange$subItems$taxes$unitQuantity$variantSelected$voidApprovedBy$voidAt$voidBy$voidReason(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe) {
|
|
12510
|
+
var D = this.a, K = a.a === A ? D.gaI() : e.m(A), Q = S == null ? D.ga9(D) : u.o_.a(S), he = J == null ? D.gZ() : u.cv.a(J), de = z == null ? D.gb0(D) : u.nc.a(z), pe = d == null ? D.gb8() : u.lr.a(d), O = a.a === W ? D.gbb() : e.aN(W), Z = I == null ? D.ga3() : e.O(I), ae = a.a === R ? D.gaC() : e.m(R), Te = a.a === q ? D.gbK() : e.m(q), ue = a.a === C ? D.gdF() : u.R.a(C), U = a.a === M ? D.gdE() : u.R.a(M), ce = a.a === V ? D.gdO() : e.m(V), Se = a.a === ne ? D.gdP() : u.R.a(ne), ye = a.a === oe ? D.gdQ() : e.m(oe), xe = a.a === ee ? D.gdN() : u.R.a(ee), me = a.a === l ? D.gbC() : u.R.a(l), Ee = a.a === N ? D.gcN() : e.m(N), Ge = a.a === F ? D.gdX() : u.R.a(F), Le = a.a === m ? D.gaG() : u.hO.a(m), He = a.a === B ? D.gdY() : e.m(B), Ue = a.a === o ? D.gby() : e.m(o), Ve = a.a === T ? D.gfR() : e.m(T), Ke = a.a === k ? D.gbt() : u.fW.a(k), We = a.a === c ? D.gaT() : u.az.a(c), Qe = n == null ? D.gV() : u.dJ.a(n), Je = a.a === f ? D.gdj() : e.m(f), Ye = te == null ? D.gI() : u.oL.a(te), Xe = y == null ? D.gaq() : u.o.a(y), Ze = a.a === X ? D.gbd() : u.jU.a(X), et = a.a === i ? D.gde() : u.S.a(i), tt = a.a === r ? D.gd4() : u.S.a(r), rt = a.a === h ? D.gcM() : u.S.a(h), nt = a.a === t ? D.gd5() : u.S.a(t), at = a.a === G ? D.gbQ() : u.cx.a(G), it = a.a === s ? D.gbh() : u.ii.a(s), st = a.a === v ? D.gbr() : u.oQ.a(v);
|
|
12511
|
+
return this.b.$1(e.D(this).i("cM.1").a(D.fi(tt, nt, Qe, et, it, Ue, me, We, Je, rt, pe, Le, st, Xe, a.a === w ? D.gc9(D) : u.gf.a(w), Ke, Ve, Q, K, Z, U, ue, Te, ae, Ee, Ge, He, de, Ze, he, Ye, O, at, xe, ce, Se, ye)));
|
|
12512
12512
|
},
|
|
12513
12513
|
$0() {
|
|
12514
12514
|
var r = null;
|
|
@@ -12559,9 +12559,9 @@ Arguments: [` + f + "]";
|
|
|
12559
12559
|
return this.$37$addonTotal$adjustmentTotal$adjustments$baseTotal$billDiscount$collectedAt$createdBy$customer$deletedAt$grossTotal$is_$kitchenStation$moveFrom$nettTotal$parent$printBy$printReceiptAt$product$productId$quantity$refundApprovedBy$refundBy$refundedFrom$remark$sentAt$sentBy$servedAt$status$stockChange$subItems$taxes$unitQuantity$variantSelected$voidApprovedBy$voidAt$voidBy$voidReason(a.a, a.a, t, a.a, r, a.a, a.a, a.a, a.a, a.a, t, a.a, a.a, t, a.a, a.a, a.a, t, a.a, t, a.a, a.a, a.a, a.a, a.a, a.a, a.a, t, a.a, t, t, a.a, a.a, a.a, a.a, a.a, a.a);
|
|
12560
12560
|
}
|
|
12561
12561
|
}, e.iL.prototype = {
|
|
12562
|
-
$37$addonTotal$adjustmentTotal$adjustments$baseTotal$billDiscount$collectedAt$createdBy$customer$deletedAt$grossTotal$is_$kitchenStation$moveFrom$nettTotal$parent$printBy$printReceiptAt$product$productId$quantity$refundApprovedBy$refundBy$refundedFrom$remark$sentAt$sentBy$servedAt$status$stockChange$subItems$taxes$unitQuantity$variantSelected$voidApprovedBy$voidAt$voidBy$voidReason(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
12563
|
-
var D = this,
|
|
12564
|
-
return D.b.$1(e.qu(
|
|
12562
|
+
$37$addonTotal$adjustmentTotal$adjustments$baseTotal$billDiscount$collectedAt$createdBy$customer$deletedAt$grossTotal$is_$kitchenStation$moveFrom$nettTotal$parent$printBy$printReceiptAt$product$productId$quantity$refundApprovedBy$refundBy$refundedFrom$remark$sentAt$sentBy$servedAt$status$stockChange$subItems$taxes$unitQuantity$variantSelected$voidApprovedBy$voidAt$voidBy$voidReason(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe) {
|
|
12563
|
+
var D = this, K = a.a === A ? D.a.a : e.m(A), Q = S == null ? D.a.b : u.o_.a(S), he = J == null ? D.a.c : u.cv.a(J), de = z == null ? D.a.d : u.nc.a(z), pe = d == null ? D.a.e : u.lr.a(d), O = a.a === W ? D.a.f : e.aN(W), Z = I == null ? D.a.r : e.O(I), ae = a.a === R ? D.a.w : e.m(R), Te = a.a === q ? D.a.x : e.m(q), ue = a.a === C ? D.a.y : u.R.a(C), U = a.a === M ? D.a.z : u.R.a(M), ce = a.a === V ? D.a.Q : e.m(V), Se = a.a === ne ? D.a.as : u.R.a(ne), ye = a.a === oe ? D.a.at : e.m(oe), xe = a.a === ee ? D.a.ax : u.R.a(ee), me = a.a === l ? D.a.ay : u.R.a(l), Ee = a.a === N ? D.a.ch : e.m(N), Ge = a.a === F ? D.a.CW : u.R.a(F), Le = a.a === m ? D.a.cx : u.hO.a(m), He = a.a === B ? D.a.cy : e.m(B), Ue = a.a === o ? D.a.db : e.m(o), Ve = a.a === T ? D.a.dx : e.m(T), Ke = a.a === k ? D.a.dy : u.fW.a(k), We = a.a === c ? D.a.fr : u.az.a(c), Qe = n == null ? D.a.fx : u.dJ.a(n), Je = a.a === f ? D.a.fy : e.m(f), Ye = te == null ? D.a.go : u.oL.a(te), Xe = y == null ? D.a.id : u.o.a(y), Ze = a.a === X ? D.a.k1 : u.jU.a(X), et = a.a === i ? D.a.k2 : u.S.a(i), tt = a.a === r ? D.a.k3 : u.S.a(r), rt = a.a === h ? D.a.k4 : u.S.a(h), nt = a.a === t ? D.a.ok : u.S.a(t), at = a.a === G ? D.a.p1 : u.cx.a(G), it = a.a === s ? D.a.p2 : u.ii.a(s), st = a.a === v ? D.a.p3 : u.oQ.a(v);
|
|
12564
|
+
return D.b.$1(e.qu(tt, nt, Qe, et, it, Ue, me, We, Je, rt, pe, Le, st, Xe, a.a === w ? D.a.p4 : u.gf.a(w), Ke, Ve, Q, K, Z, U, ue, Te, ae, Ee, Ge, He, de, Ze, he, Ye, O, at, xe, ce, Se, ye));
|
|
12565
12565
|
},
|
|
12566
12566
|
$0() {
|
|
12567
12567
|
var r = null;
|
|
@@ -12662,8 +12662,8 @@ Arguments: [` + f + "]";
|
|
|
12662
12662
|
bB(r) {
|
|
12663
12663
|
return this.gm().$1$taxes(r);
|
|
12664
12664
|
},
|
|
12665
|
-
fi(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
12666
|
-
return this.gm().$37$addonTotal$adjustmentTotal$adjustments$baseTotal$billDiscount$collectedAt$createdBy$customer$deletedAt$grossTotal$is_$kitchenStation$moveFrom$nettTotal$parent$printBy$printReceiptAt$product$productId$quantity$refundApprovedBy$refundBy$refundedFrom$remark$sentAt$sentBy$servedAt$status$stockChange$subItems$taxes$unitQuantity$variantSelected$voidApprovedBy$voidAt$voidBy$voidReason(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
12665
|
+
fi(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe) {
|
|
12666
|
+
return this.gm().$37$addonTotal$adjustmentTotal$adjustments$baseTotal$billDiscount$collectedAt$createdBy$customer$deletedAt$grossTotal$is_$kitchenStation$moveFrom$nettTotal$parent$printBy$printReceiptAt$product$productId$quantity$refundApprovedBy$refundBy$refundedFrom$remark$sentAt$sentBy$servedAt$status$stockChange$subItems$taxes$unitQuantity$variantSelected$voidApprovedBy$voidAt$voidBy$voidReason(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe);
|
|
12667
12667
|
},
|
|
12668
12668
|
bY(r) {
|
|
12669
12669
|
return this.gm().$1$subItems(r);
|
|
@@ -14377,8 +14377,8 @@ Arguments: [` + f + "]";
|
|
|
14377
14377
|
}
|
|
14378
14378
|
}, e.ek.prototype = {
|
|
14379
14379
|
$18$adjustment$adjustmentRule$autoApplied$availableOnlineOrder$customer$from$items$maximumReached$name$options$priority$reason$referenceId$returnId$success$toGet$toUse$usedItems(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S) {
|
|
14380
|
-
var A = this.a, I = r == null ? A.a : u.n.a(r), M = a.a === i ? A.gdc() : u.b4.a(i), C = a.a === t ? A.c : u.fI.a(t), q = h == null ? A.d : u.bW.a(h), R = a.a === d ? A.e : e.aN(d), N = w == null ? A.f : e.ao(w), F = a.a === m ? A.r : e.m(m), B = a.a === S ? A.gdL() : u.jH.a(S), z = a.a === T ? A.gbP() : u.y.a(T), X = a.a === k ? A.gaD() : u.y.a(k),
|
|
14381
|
-
return this.b.$1(this.$ti.i("ek.1").a(A.iE(I, C, a.a === n ? A.CW : e.V(n), M, ne, G, te,
|
|
14380
|
+
var A = this.a, I = r == null ? A.a : u.n.a(r), M = a.a === i ? A.gdc() : u.b4.a(i), C = a.a === t ? A.c : u.fI.a(t), q = h == null ? A.d : u.bW.a(h), R = a.a === d ? A.e : e.aN(d), N = w == null ? A.f : e.ao(w), F = a.a === m ? A.r : e.m(m), B = a.a === S ? A.gdL() : u.jH.a(S), z = a.a === T ? A.gbP() : u.y.a(T), X = a.a === k ? A.gaD() : u.y.a(k), J = a.a === c ? A.z : e.V(c), te = a.a === l ? A.gJ() : u.y.a(l), W = f == null ? A.as : e.h(f), G = o == null ? A.at : u.E.a(o), ee = v == null ? A.ax : e.h(v), V = a.a === y ? A.ay : e.m(y), ne = a.a === s ? A.ch : u.az.a(s);
|
|
14381
|
+
return this.b.$1(this.$ti.i("ek.1").a(A.iE(I, C, a.a === n ? A.CW : e.V(n), M, ne, G, te, J, W, q, R, F, ee, V, N, X, z, B)));
|
|
14382
14382
|
},
|
|
14383
14383
|
$0() {
|
|
14384
14384
|
var r = null;
|
|
@@ -14414,8 +14414,8 @@ Arguments: [` + f + "]";
|
|
|
14414
14414
|
}
|
|
14415
14415
|
}, e.iV.prototype = {
|
|
14416
14416
|
$18$adjustment$adjustmentRule$autoApplied$availableOnlineOrder$customer$from$items$maximumReached$name$options$priority$reason$referenceId$returnId$success$toGet$toUse$usedItems(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, k, T, S) {
|
|
14417
|
-
var A = this, I = r == null ? A.a.a : u.n.a(r), M = a.a === i ? A.a.b : u.b4.a(i), C = a.a === t ? A.a.c : u.fI.a(t), q = h == null ? A.a.d : u.bW.a(h), R = a.a === d ? A.a.e : e.aN(d), N = w == null ? A.a.f : e.ao(w), F = a.a === m ? A.a.r : e.m(m), B = a.a === S ? A.a.w : u.jH.a(S), z = a.a === T ? A.a.x : u.y.a(T), X = a.a === k ? A.a.y : u.y.a(k),
|
|
14418
|
-
return A.b.$1(e.yB(I, C, a.a === n ? A.a.CW : e.V(n), M, ne, G, te,
|
|
14417
|
+
var A = this, I = r == null ? A.a.a : u.n.a(r), M = a.a === i ? A.a.b : u.b4.a(i), C = a.a === t ? A.a.c : u.fI.a(t), q = h == null ? A.a.d : u.bW.a(h), R = a.a === d ? A.a.e : e.aN(d), N = w == null ? A.a.f : e.ao(w), F = a.a === m ? A.a.r : e.m(m), B = a.a === S ? A.a.w : u.jH.a(S), z = a.a === T ? A.a.x : u.y.a(T), X = a.a === k ? A.a.y : u.y.a(k), J = a.a === c ? A.a.z : e.V(c), te = a.a === l ? A.a.Q : u.y.a(l), W = f == null ? A.a.as : e.h(f), G = o == null ? A.a.at : u.E.a(o), ee = v == null ? A.a.ax : e.h(v), V = a.a === y ? A.a.ay : e.m(y), ne = a.a === s ? A.a.ch : u.az.a(s);
|
|
14418
|
+
return A.b.$1(e.yB(I, C, a.a === n ? A.a.CW : e.V(n), M, ne, G, te, J, W, q, R, F, ee, V, N, X, z, B));
|
|
14419
14419
|
},
|
|
14420
14420
|
$0() {
|
|
14421
14421
|
var r = null;
|
|
@@ -18732,8 +18732,8 @@ Arguments: [` + f + "]";
|
|
|
18732
18732
|
var i = u.N;
|
|
18733
18733
|
return e.w(["00", "All States", "01", "Johor", "02", "Kedah", "03", "Kelantan", "04", "Melaka", "05", "Negeri Sembilan", "06", "Pahang", "07", "Pulau Pinang", "08", "Perak", "09", "Perlis", "10", "Selangor", "11", "Terengganu", "12", "Sabah", "13", "Sarawak", "14", "Wilayah Persekutuan Kuala Lumpur", "15", "Wilayah Persekutuan Labuan", "16", "Wilayah Persekutuan Putrajaya", "17", "Not Applicable"], i, i);
|
|
18734
18734
|
}), t(g, "Ia", "xa", () => e.z([e.wD(0, "bill"), e.wD(1, "counter"), e.wD(2, "memberStorePurchase")], e.R("X<es>"))), n(g, "IF", "AR", () => new e.fv("en_US", a.hr, a.hy, a.ex, a.ex, a.eB, a.eB, a.eA, a.eA, a.eG, a.eG, a.ey, a.ey, a.hH, a.hz, a.hu, a.hq)), n(g, "IG", "xd", () => {
|
|
18735
|
-
var i = ",", s = " ", o = "%", l = "0", c = "+", f = "-", h = "E", d = "‰", m = "∞", v = "NaN", y = "#,##0.###", w = "#E0", k = "#,##0%", T = "¤#,##0.00", S = ".", A = "+", I = "-", M = "ليس رقمًا", C = "¤ #,##0.00", q = "#,##0.00 ¤", R = "#,##0 %", N = "#,##,##0.###", F = "EUR", B = "USD", z = "¤ #,##0.00;¤-#,##0.00", X = "CHF",
|
|
18736
|
-
return e.w(["af", e.B(T, y, i, "ZAR", h, s, m, f, "af", v, o, k, d, c, w, l), "am", e.B(T, y, S, "ETB", h, i, m, f, "am", v, o, k, d, c, w, l), "ar", e.B(C, y, S, "EGP", h, i, m, I, "ar", M, "%", k, d, A, w, l), "ar_DZ", e.B(C, y, i, "DZD", h, S, m, I, "ar_DZ", M, "%", k, d, A, w, l), "ar_EG", e.B(q, y, "٫", "EGP", "اس", "٬", m, "-", "ar_EG", "ليس رقم", "٪", k, "؉", "+", w, "٠"), "az", e.B(q, y, i, "AZN", h, S, m, f, "az", v, o, k, d, c, w, l), "be", e.B(q, y, i, "BYN", h, s, m, f, "be", v, o, R, d, c, w, l), "bg", e.B("0.00 ¤", y, i, "BGN", h, s, m, f, "bg", v, o, k, d, c, w, l), "bn", e.B("#,##,##0.00¤", N, S, "BDT", h, i, m, f, "bn", v, o, k, d, c, w, "০"), "br", e.B(q, y, i, F, h, s, m, f, "br", v, o, R, d, c, w, l), "bs", e.B(q, y, i, "BAM", h, S, m, f, "bs", v, o, R, d, c, w, l), "ca", e.B(q, y, i, F, h, S, m, f, "ca", v, o, k, d, c, w, l), "chr", e.B(T, y, S, B, h, i, m, f, "chr", v, o, k, d, c, w, l), "cs", e.B(q, y, i, "CZK", h, s, m, f, "cs", v, o, R, d, c, w, l), "cy", e.B(T, y, S, "GBP", h, i, m, f, "cy", v, o, k, d, c, w, l), "da", e.B(q, y, i, "DKK", h, S, m, f, "da", v, o, R, d, c, w, l), "de", e.B(q, y, i, F, h, S, m, f, "de", v, o, R, d, c, w, l), "de_AT", e.B(C, y, i, F, h, s, m, f, "de_AT", v, o, R, d, c, w, l), "de_CH", e.B(z, y, S, X, h, "’", m, f, "de_CH", v, o, k, d, c, w, l), "el", e.B(q, y, i, F, "e", S, m, f, "el", v, o, k, d, c, w, l), "en", e.B(T, y, S, B, h, i, m, f, "en", v, o, k, d, c, w, l), "en_AU", e.B(T, y, S, "AUD", "e", i, m, f, "en_AU", v, o, k, d, c, w, l), "en_CA", e.B(T, y, S, "CAD", "e", i, m, f, "en_CA", v, o, k, d, c, w, l), "en_GB", e.B(T, y, S, "GBP", h, i, m, f, "en_GB", v, o, k, d, c, w, l), "en_IE", e.B(T, y, S, F, h, i, m, f, "en_IE", v, o, k, d, c, w, l), "en_IN", e.B(te, N, S,
|
|
18735
|
+
var i = ",", s = " ", o = "%", l = "0", c = "+", f = "-", h = "E", d = "‰", m = "∞", v = "NaN", y = "#,##0.###", w = "#E0", k = "#,##0%", T = "¤#,##0.00", S = ".", A = "+", I = "-", M = "ليس رقمًا", C = "¤ #,##0.00", q = "#,##0.00 ¤", R = "#,##0 %", N = "#,##,##0.###", F = "EUR", B = "USD", z = "¤ #,##0.00;¤-#,##0.00", X = "CHF", J = "#,##,##0%", te = "¤ #,##,##0.00", W = "INR", G = "−", ee = "×10^", V = "[#E0]", ne = "¤#,##,##0.00", oe = "#,##0.00 ¤;-#,##0.00 ¤";
|
|
18736
|
+
return e.w(["af", e.B(T, y, i, "ZAR", h, s, m, f, "af", v, o, k, d, c, w, l), "am", e.B(T, y, S, "ETB", h, i, m, f, "am", v, o, k, d, c, w, l), "ar", e.B(C, y, S, "EGP", h, i, m, I, "ar", M, "%", k, d, A, w, l), "ar_DZ", e.B(C, y, i, "DZD", h, S, m, I, "ar_DZ", M, "%", k, d, A, w, l), "ar_EG", e.B(q, y, "٫", "EGP", "اس", "٬", m, "-", "ar_EG", "ليس رقم", "٪", k, "؉", "+", w, "٠"), "az", e.B(q, y, i, "AZN", h, S, m, f, "az", v, o, k, d, c, w, l), "be", e.B(q, y, i, "BYN", h, s, m, f, "be", v, o, R, d, c, w, l), "bg", e.B("0.00 ¤", y, i, "BGN", h, s, m, f, "bg", v, o, k, d, c, w, l), "bn", e.B("#,##,##0.00¤", N, S, "BDT", h, i, m, f, "bn", v, o, k, d, c, w, "০"), "br", e.B(q, y, i, F, h, s, m, f, "br", v, o, R, d, c, w, l), "bs", e.B(q, y, i, "BAM", h, S, m, f, "bs", v, o, R, d, c, w, l), "ca", e.B(q, y, i, F, h, S, m, f, "ca", v, o, k, d, c, w, l), "chr", e.B(T, y, S, B, h, i, m, f, "chr", v, o, k, d, c, w, l), "cs", e.B(q, y, i, "CZK", h, s, m, f, "cs", v, o, R, d, c, w, l), "cy", e.B(T, y, S, "GBP", h, i, m, f, "cy", v, o, k, d, c, w, l), "da", e.B(q, y, i, "DKK", h, S, m, f, "da", v, o, R, d, c, w, l), "de", e.B(q, y, i, F, h, S, m, f, "de", v, o, R, d, c, w, l), "de_AT", e.B(C, y, i, F, h, s, m, f, "de_AT", v, o, R, d, c, w, l), "de_CH", e.B(z, y, S, X, h, "’", m, f, "de_CH", v, o, k, d, c, w, l), "el", e.B(q, y, i, F, "e", S, m, f, "el", v, o, k, d, c, w, l), "en", e.B(T, y, S, B, h, i, m, f, "en", v, o, k, d, c, w, l), "en_AU", e.B(T, y, S, "AUD", "e", i, m, f, "en_AU", v, o, k, d, c, w, l), "en_CA", e.B(T, y, S, "CAD", "e", i, m, f, "en_CA", v, o, k, d, c, w, l), "en_GB", e.B(T, y, S, "GBP", h, i, m, f, "en_GB", v, o, k, d, c, w, l), "en_IE", e.B(T, y, S, F, h, i, m, f, "en_IE", v, o, k, d, c, w, l), "en_IN", e.B(te, N, S, W, h, i, m, f, "en_IN", v, o, J, d, c, w, l), "en_MY", e.B(T, y, S, "MYR", h, i, m, f, "en_MY", v, o, k, d, c, w, l), "en_SG", e.B(T, y, S, "SGD", h, i, m, f, "en_SG", v, o, k, d, c, w, l), "en_US", e.B(T, y, S, B, h, i, m, f, "en_US", v, o, k, d, c, w, l), "en_ZA", e.B(T, y, i, "ZAR", h, s, m, f, "en_ZA", v, o, k, d, c, w, l), "es", e.B(q, y, i, F, h, S, m, f, "es", v, o, R, d, c, w, l), "es_419", e.B(T, y, S, "MXN", h, i, m, f, "es_419", v, o, R, d, c, w, l), "es_ES", e.B(q, y, i, F, h, S, m, f, "es_ES", v, o, R, d, c, w, l), "es_MX", e.B(T, y, S, "MXN", h, i, m, f, "es_MX", v, o, R, d, c, w, l), "es_US", e.B(T, y, S, B, h, i, m, f, "es_US", v, o, R, d, c, w, l), "et", e.B(q, y, i, F, ee, s, m, G, "et", v, o, k, d, c, w, l), "eu", e.B(q, y, i, F, h, S, m, G, "eu", v, o, "% #,##0", d, c, w, l), "fa", e.B("¤#,##0.00", y, "٫", "IRR", "×۱۰^", "٬", m, "−", "fa", "ناعدد", "٪", k, "؉", A, w, "۰"), "fi", e.B(q, y, i, F, h, s, m, G, "fi", "epäluku", o, R, d, c, w, l), "fil", e.B(T, y, S, "PHP", h, i, m, f, "fil", v, o, k, d, c, w, l), "fr", e.B(q, y, i, F, h, " ", m, f, "fr", v, o, R, d, c, w, l), "fr_CA", e.B(q, y, i, "CAD", h, s, m, f, "fr_CA", v, o, R, d, c, w, l), "fr_CH", e.B(q, y, i, X, h, " ", m, f, "fr_CH", v, o, k, d, c, w, l), "ga", e.B(T, y, S, F, h, i, m, f, "ga", v, o, k, d, c, w, l), "gl", e.B(q, y, i, F, h, S, m, f, "gl", v, o, R, d, c, w, l), "gsw", e.B(q, y, S, X, h, "’", m, G, "gsw", v, o, R, d, c, w, l), "gu", e.B(ne, N, S, W, h, i, m, f, "gu", v, o, J, d, c, V, l), "haw", e.B(T, y, S, B, h, i, m, f, "haw", v, o, k, d, c, w, l), "he", e.B(oe, y, S, "ILS", h, i, m, I, "he", v, o, k, d, A, w, l), "hi", e.B(ne, N, S, W, h, i, m, f, "hi", v, o, J, d, c, V, l), "hr", e.B(q, y, i, "HRK", h, S, m, f, "hr", v, o, R, d, c, w, l), "hu", e.B(q, y, i, "HUF", h, s, m, f, "hu", v, o, k, d, c, w, l), "hy", e.B(q, y, i, "AMD", h, s, m, f, "hy", "ՈչԹ", o, k, d, c, w, l), "id", e.B(T, y, i, "IDR", h, S, m, f, "id", v, o, k, d, c, w, l), "in", e.B(T, y, i, "IDR", h, S, m, f, "in", v, o, k, d, c, w, l), "is", e.B(q, y, i, "ISK", h, S, m, f, "is", v, o, k, d, c, w, l), "it", e.B(q, y, i, F, h, S, m, f, "it", v, o, k, d, c, w, l), "it_CH", e.B(z, y, S, X, h, "’", m, f, "it_CH", v, o, k, d, c, w, l), "iw", e.B(oe, y, S, "ILS", h, i, m, I, "iw", v, o, k, d, A, w, l), "ja", e.B(T, y, S, "JPY", h, i, m, f, "ja", v, o, k, d, c, w, l), "ka", e.B(q, y, i, "GEL", h, s, m, f, "ka", "არ არის რიცხვი", o, k, d, c, w, l), "kk", e.B(q, y, i, "KZT", h, s, m, f, "kk", "сан емес", o, k, d, c, w, l), "km", e.B("#,##0.00¤", y, i, "KHR", h, S, m, f, "km", v, o, k, d, c, w, l), "kn", e.B(T, y, S, W, h, i, m, f, "kn", v, o, k, d, c, w, l), "ko", e.B(T, y, S, "KRW", h, i, m, f, "ko", v, o, k, d, c, w, l), "ky", e.B(q, y, i, "KGS", h, s, m, f, "ky", "сан эмес", o, k, d, c, w, l), "ln", e.B(q, y, i, "CDF", h, S, m, f, "ln", v, o, k, d, c, w, l), "lo", e.B("¤#,##0.00;¤-#,##0.00", y, i, "LAK", h, S, m, f, "lo", "ບໍ່ແມ່ນໂຕເລກ", o, k, d, c, "#", l), "lt", e.B(q, y, i, F, ee, s, m, G, "lt", v, o, R, d, c, w, l), "lv", e.B(q, y, i, F, h, s, m, f, "lv", "NS", o, k, d, c, w, l), "mk", e.B(q, y, i, "MKD", h, S, m, f, "mk", v, o, k, d, c, w, l), "ml", e.B(T, N, S, W, h, i, m, f, "ml", v, o, k, d, c, w, l), "mn", e.B(C, y, S, "MNT", h, i, m, f, "mn", v, o, k, d, c, w, l), "mr", e.B(T, N, S, W, h, i, m, f, "mr", v, o, k, d, c, V, "०"), "ms", e.B(T, y, S, "MYR", h, i, m, f, "ms", v, o, k, d, c, w, l), "mt", e.B(T, y, S, F, h, i, m, f, "mt", v, o, k, d, c, w, l), "my", e.B(q, y, S, "MMK", h, i, m, f, "my", "ဂဏန်းမဟုတ်သော", o, k, d, c, w, "၀"), "nb", e.B(C, y, i, "NOK", h, s, m, G, "nb", v, o, R, d, c, w, l), "ne", e.B(C, y, S, "NPR", h, i, m, f, "ne", v, o, k, d, c, w, "०"), "nl", e.B("¤ #,##0.00;¤ -#,##0.00", y, i, F, h, S, m, f, "nl", v, o, k, d, c, w, l), "no", e.B(C, y, i, "NOK", h, s, m, G, "no", v, o, R, d, c, w, l), "no_NO", e.B(C, y, i, "NOK", h, s, m, G, "no_NO", v, o, R, d, c, w, l), "or", e.B(T, N, S, W, h, i, m, f, "or", v, o, k, d, c, w, l), "pa", e.B(te, N, S, W, h, i, m, f, "pa", v, o, J, d, c, V, l), "pl", e.B(q, y, i, "PLN", h, s, m, f, "pl", v, o, k, d, c, w, l), "ps", e.B(q, y, "٫", "AFN", "×۱۰^", "٬", m, "-", "ps", v, "٪", k, "؉", "+", w, "۰"), "pt", e.B(C, y, i, "BRL", h, S, m, f, "pt", v, o, k, d, c, w, l), "pt_BR", e.B(C, y, i, "BRL", h, S, m, f, "pt_BR", v, o, k, d, c, w, l), "pt_PT", e.B(q, y, i, F, h, s, m, f, "pt_PT", v, o, k, d, c, w, l), "ro", e.B(q, y, i, "RON", h, S, m, f, "ro", v, o, R, d, c, w, l), "ru", e.B(q, y, i, "RUB", h, s, m, f, "ru", "не число", o, R, d, c, w, l), "si", e.B(T, y, S, "LKR", h, i, m, f, "si", v, o, k, d, c, "#", l), "sk", e.B(q, y, i, F, "e", s, m, f, "sk", v, o, R, d, c, w, l), "sl", e.B(q, y, i, F, "e", S, m, G, "sl", v, o, R, d, c, w, l), "sq", e.B(q, y, i, "ALL", h, s, m, f, "sq", v, o, k, d, c, w, l), "sr", e.B(q, y, i, "RSD", h, S, m, f, "sr", v, o, k, d, c, w, l), "sr_Latn", e.B(q, y, i, "RSD", h, S, m, f, "sr_Latn", v, o, k, d, c, w, l), "sv", e.B(q, y, i, "SEK", ee, s, m, G, "sv", v, o, R, d, c, w, l), "sw", e.B(C, y, S, "TZS", h, i, m, f, "sw", v, o, k, d, c, w, l), "ta", e.B(te, N, S, W, h, i, m, f, "ta", v, o, J, d, c, w, l), "te", e.B(ne, N, S, W, h, i, m, f, "te", v, o, k, d, c, w, l), "th", e.B(T, y, S, "THB", h, i, m, f, "th", v, o, k, d, c, w, l), "tl", e.B(T, y, S, "PHP", h, i, m, f, "tl", v, o, k, d, c, w, l), "tr", e.B(T, y, i, "TRY", h, S, m, f, "tr", v, o, "%#,##0", d, c, w, l), "uk", e.B(q, y, i, "UAH", "Е", s, m, f, "uk", v, o, k, d, c, w, l), "ur", e.B(C, y, S, "PKR", h, i, m, I, "ur", v, o, k, d, A, w, l), "uz", e.B(q, y, i, "UZS", h, s, m, f, "uz", "son emas", o, k, d, c, w, l), "vi", e.B(q, y, i, "VND", h, S, m, f, "vi", v, o, k, d, c, w, l), "zh", e.B(T, y, S, "CNY", h, i, m, f, "zh", v, o, k, d, c, w, l), "zh_CN", e.B(T, y, S, "CNY", h, i, m, f, "zh_CN", v, o, k, d, c, w, l), "zh_HK", e.B(T, y, S, "HKD", h, i, m, f, "zh_HK", "非數值", o, k, d, c, w, l), "zh_TW", e.B(T, y, S, "TWD", h, i, m, f, "zh_TW", "非數值", o, k, d, c, w, l), "zu", e.B(T, y, S, "ZAR", h, i, m, f, "zu", v, o, k, d, c, w, l)], u.N, u.aB);
|
|
18737
18737
|
}), n(g, "I5", "x9", () => e.yg("initializeDateFormatting(<locale>)", g.AR(), e.R("fv"))), n(g, "IC", "xc", () => e.yg("initializeDateFormatting(<locale>)", a.hK, e.R("f<b,b>"))), t(g, "IA", "me", () => 48), t(g, "Hm", "Ad", () => e.z([e.bf("^'(?:[^']|'')*'"), e.bf("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)"), e.bf("^[^'GyMkSEahKHcLQdDmsvzZ]+")], e.R("X<eW>"))), t(g, "HS", "Aw", () => e.bf("''")), t(g, "Hx", "w0", () => e.GR(2, 52)), t(g, "Hw", "Ag", () => a.f.eP(e.vd(g.w0()) / e.vd(10))), t(g, "Ib", "xb", () => e.vd(10)), t(g, "Ic", "AF", () => e.vd(10)), t(g, "Iz", "AO", () => e.bf("^\\d+")), n(g, "I_", "w1", () => e.w(["en", e.dC(a.j), "en_us", e.dC(a.j), "en_sg", e.dC(a.j), "en_au", e.dC(a.j), "en_ca", e.dC(a.j), "en_gb", e.dC(a.k), "en_ie", e.dC(a.k), "en_il", e.dC(a.j), "en_nz", e.dC(a.j), "es", e.w8(a.k), "es_do", e.w8(a.k), "es_us", e.w8(a.j), "fr", e.wb(a.k), "fr_ch", e.wb(a.k), "fr_ca", e.wb(a.j), "zh", e.yj(a.j), "zh_cn", e.yj(a.j), "zh_hk", e.yk(a.j), "zh_tw", e.yk(a.j), "de", e.mV(a.k), "de_de", e.mV(a.k), "de_at", e.mV(a.k), "de_ch", e.mV(a.k), "it", e.xR(a.k), "it_ch", e.xR(a.k), "ar", e.xm(!0, a.u), "ar_ly", e.xm(!1, a.u), "ar_dz", e.jc(!1, a.j), "ar_kw", e.jc(!1, a.j), "ar_sa", e.jc(!0, a.j), "ar_ma", e.jc(!1, a.u), "ar_tn", e.jc(!1, a.u), "az", new e.jf(a.k), "id", new e.jG(a.j), "ja", new e.jP(a.j), "ko", new e.jU(a.j), "ru", new e.kf(a.k), "uk", new e.kp(a.k), "hi", new e.jF(a.j), "pt", e.ya(a.k), "pt_br", e.ya(a.j), "pl", new e.k9(a.k), "tr", new e.ko(a.k), "sv", new e.kl(a.k), "nb", new e.k1(a.k), "fa", new e.jr(!0, a.u), "bn", new e.jg(a.j), "nl", new e.k2(a.k), "th", new e.kn(a.j)], u.N, e.R("am"))), t(g, "IH", "AS", () => e.bf("^(\\d+)\\.(\\d+)\\.(\\d+)(-([0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*))?(\\+([0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*))?")), t(g, "IB", "AP", () => e.bf(g.AS().a + "$")), t(g, "I0", "Ax", () => {
|
|
18738
18738
|
var i = u.Y;
|
|
18739
18739
|
return { recalculate: e.P(e.G1(), i), populateBillItemsTax: e.P(e.G_(), i), populateInHouseDeliveryTax: e.P(e.G0(), i), collectItems: e.P(e.Fy(), i), getCalculatorVersion: e.P(e.FK(), i), getBillNumber: e.P(e.FJ(), i), generator: { bill: e.P(e.FS(), i), billItem: e.P(e.FT(), i), billSubItem: e.P(e.FV(), i), billItemRef: e.P(e.FU(), i) } };
|
|
@@ -18822,16 +18822,16 @@ Arguments: [` + f + "]";
|
|
|
18822
18822
|
});
|
|
18823
18823
|
})();
|
|
18824
18824
|
})(br);
|
|
18825
|
-
var Lt = {},
|
|
18825
|
+
var Lt = {}, ze = {}, oa = Fe && Fe.__importDefault || function(E) {
|
|
18826
18826
|
return E && E.__esModule ? E : { default: E };
|
|
18827
18827
|
};
|
|
18828
|
-
Object.defineProperty(
|
|
18829
|
-
|
|
18830
|
-
|
|
18831
|
-
|
|
18832
|
-
|
|
18833
|
-
|
|
18834
|
-
|
|
18828
|
+
Object.defineProperty(ze, "__esModule", { value: !0 });
|
|
18829
|
+
ze.clone = ua;
|
|
18830
|
+
ze.randomString = la;
|
|
18831
|
+
ze.encode = ca;
|
|
18832
|
+
ze.decode = fa;
|
|
18833
|
+
ze.hexStringToBase64 = ha;
|
|
18834
|
+
ze.base64ToHexString = da;
|
|
18835
18835
|
const Ht = oa(br);
|
|
18836
18836
|
function ua(E) {
|
|
18837
18837
|
return JSON.parse(JSON.stringify(E));
|
|
@@ -18855,7 +18855,7 @@ function ha(E) {
|
|
|
18855
18855
|
function da(E) {
|
|
18856
18856
|
return Ht.default.Util.base64ToHexString(E);
|
|
18857
18857
|
}
|
|
18858
|
-
var pa =
|
|
18858
|
+
var pa = Fe && Fe.__createBinding || (Object.create ? function(E, p, b, j) {
|
|
18859
18859
|
j === void 0 && (j = b);
|
|
18860
18860
|
var x = Object.getOwnPropertyDescriptor(p, b);
|
|
18861
18861
|
(!x || ("get" in x ? !p.__esModule : x.writable || x.configurable)) && (x = { enumerable: !0, get: function() {
|
|
@@ -18863,11 +18863,11 @@ var pa = Oe && Oe.__createBinding || (Object.create ? function(E, p, b, j) {
|
|
|
18863
18863
|
} }), Object.defineProperty(E, j, x);
|
|
18864
18864
|
} : function(E, p, b, j) {
|
|
18865
18865
|
j === void 0 && (j = b), E[j] = p[b];
|
|
18866
|
-
}), $a =
|
|
18866
|
+
}), $a = Fe && Fe.__setModuleDefault || (Object.create ? function(E, p) {
|
|
18867
18867
|
Object.defineProperty(E, "default", { enumerable: !0, value: p });
|
|
18868
18868
|
} : function(E, p) {
|
|
18869
18869
|
E.default = p;
|
|
18870
|
-
}), ga =
|
|
18870
|
+
}), ga = Fe && Fe.__importStar || function(E) {
|
|
18871
18871
|
if (E && E.__esModule)
|
|
18872
18872
|
return E;
|
|
18873
18873
|
var p = {};
|
|
@@ -18878,22 +18878,22 @@ var pa = Oe && Oe.__createBinding || (Object.create ? function(E, p, b, j) {
|
|
|
18878
18878
|
};
|
|
18879
18879
|
Object.defineProperty(Lt, "__esModule", { value: !0 });
|
|
18880
18880
|
Lt.utils = void 0;
|
|
18881
|
-
Lt.utils = ga(
|
|
18882
|
-
var
|
|
18883
|
-
Bill:
|
|
18884
|
-
Config:
|
|
18885
|
-
Country:
|
|
18886
|
-
DineroFactory:
|
|
18887
|
-
Dinero:
|
|
18888
|
-
EInvoice:
|
|
18889
|
-
Menu:
|
|
18890
|
-
Permission:
|
|
18891
|
-
PermissionRule:
|
|
18892
|
-
Pos:
|
|
18893
|
-
Order:
|
|
18894
|
-
Tax:
|
|
18895
|
-
Calculator:
|
|
18896
|
-
FeatureFlag:
|
|
18881
|
+
Lt.utils = ga(ze);
|
|
18882
|
+
var we = br, ma = Jr, { utils: ba } = Lt, va = {
|
|
18883
|
+
Bill: we.Bill,
|
|
18884
|
+
Config: we.Config,
|
|
18885
|
+
Country: we.Country,
|
|
18886
|
+
DineroFactory: we.DineroFactory,
|
|
18887
|
+
Dinero: we.Dinero,
|
|
18888
|
+
EInvoice: we.EInvoice,
|
|
18889
|
+
Menu: we.Menu,
|
|
18890
|
+
Permission: we.Permission,
|
|
18891
|
+
PermissionRule: we.PermissionRule,
|
|
18892
|
+
Pos: we.Pos,
|
|
18893
|
+
Order: we.Order,
|
|
18894
|
+
Tax: we.Tax,
|
|
18895
|
+
Calculator: we.Calculator,
|
|
18896
|
+
FeatureFlag: we.FeatureFlag,
|
|
18897
18897
|
utils: ba,
|
|
18898
18898
|
entity: ma
|
|
18899
18899
|
};
|
|
@@ -18901,52 +18901,53 @@ const ya = /* @__PURE__ */ Vr({
|
|
|
18901
18901
|
__name: "NavigationTab",
|
|
18902
18902
|
emits: ["close-navigation"],
|
|
18903
18903
|
setup(E, { emit: p }) {
|
|
18904
|
-
const b = p, { t: j } = Ln(), x = zn(), _ = Qr(), P = Sr(() => _.restaurants.value.some(({ posVersion:
|
|
18905
|
-
const
|
|
18904
|
+
const b = p, { t: j } = Ln(), x = zn(), _ = Qr(), P = Sr(() => _.restaurants.value.some(({ posVersion: ie }) => va.Pos.canUse({ feature: Jr.F_FEATURE.Enum.templateBuilder, posVersion: ie ?? "" }))), L = Sr(() => {
|
|
18905
|
+
const ie = [];
|
|
18906
18906
|
lr.filter((fe) => {
|
|
18907
|
-
var
|
|
18908
|
-
return fe.redirect || (
|
|
18907
|
+
var ve;
|
|
18908
|
+
return fe.redirect || (ve = fe.meta) != null && ve.hideNavigation ? !1 : !(fe.name === "$settings-template-builder" && !P.value);
|
|
18909
18909
|
}).map((fe) => {
|
|
18910
|
-
var
|
|
18911
|
-
|
|
18912
|
-
label: j((
|
|
18910
|
+
var ve;
|
|
18911
|
+
ie.push({
|
|
18912
|
+
label: j((ve = fe.meta) == null ? void 0 : ve.i18nKey),
|
|
18913
18913
|
value: fe.name,
|
|
18914
18914
|
action: () => {
|
|
18915
18915
|
fe.name === "$settings-e-invoice" ? x.push({ name: "SUBMISSION" }) : x.push({ name: fe.name }), b("close-navigation");
|
|
18916
18916
|
}
|
|
18917
18917
|
});
|
|
18918
18918
|
});
|
|
18919
|
-
const
|
|
18920
|
-
return
|
|
18919
|
+
const be = lr.filter((fe) => fe.path.startsWith("/devices")), je = ie.findIndex((fe) => fe.value === "$settings-my-business"), Re = je !== -1 ? je + 1 : ie.length;
|
|
18920
|
+
return ie.splice(Re, 0, {
|
|
18921
18921
|
label: j("settings.deviceManagement"),
|
|
18922
18922
|
value: "$settings-device-management",
|
|
18923
|
-
children:
|
|
18924
|
-
var
|
|
18925
|
-
return fe.name === "$pos-order-setting" ?
|
|
18926
|
-
|
|
18927
|
-
|
|
18928
|
-
|
|
18929
|
-
x.push({ name: "Kiosk" }), b("close-navigation");
|
|
18930
|
-
}
|
|
18931
|
-
} : {
|
|
18932
|
-
label: j((ke = fe.meta) == null ? void 0 : ke.i18nKey),
|
|
18933
|
-
value: "$devices",
|
|
18934
|
-
action: () => {
|
|
18935
|
-
x.push({ name: "$devices" }), b("close-navigation");
|
|
18936
|
-
}
|
|
18937
|
-
};
|
|
18923
|
+
children: be.map((fe) => {
|
|
18924
|
+
var ve;
|
|
18925
|
+
return fe.name === "$pos-order-setting" ? H(j("order.kiosk"), "Kiosk") : fe.name === "$settings-template-builder" && P.value ? H(
|
|
18926
|
+
j("settings.templateBuilder.title"),
|
|
18927
|
+
"$settings-template-builder"
|
|
18928
|
+
) : H(j((ve = fe.meta) == null ? void 0 : ve.i18nKey), "$devices");
|
|
18938
18929
|
})
|
|
18939
|
-
}),
|
|
18940
|
-
})
|
|
18930
|
+
}), ie;
|
|
18931
|
+
});
|
|
18932
|
+
function H(ie, le) {
|
|
18933
|
+
return {
|
|
18934
|
+
label: ie,
|
|
18935
|
+
value: le,
|
|
18936
|
+
action: () => {
|
|
18937
|
+
x.push({ name: le }), b("close-navigation");
|
|
18938
|
+
}
|
|
18939
|
+
};
|
|
18940
|
+
}
|
|
18941
|
+
const Y = Pn();
|
|
18941
18942
|
return Dn(() => {
|
|
18942
|
-
var
|
|
18943
|
-
let
|
|
18944
|
-
|
|
18945
|
-
}), (
|
|
18946
|
-
const
|
|
18947
|
-
return Kr(), Wr(
|
|
18948
|
-
modelValue:
|
|
18949
|
-
"onUpdate:modelValue":
|
|
18943
|
+
var le;
|
|
18944
|
+
let ie = ((le = x.currentRoute.value) == null ? void 0 : le.name) ?? lr[0].name;
|
|
18945
|
+
Y.value !== ie && (Y.value = ie);
|
|
18946
|
+
}), (ie, le) => {
|
|
18947
|
+
const be = Bn("fm-collapsible-tabs");
|
|
18948
|
+
return Kr(), Wr(be, {
|
|
18949
|
+
modelValue: Y.value,
|
|
18950
|
+
"onUpdate:modelValue": le[0] || (le[0] = (je) => Y.value = je),
|
|
18950
18951
|
items: L.value,
|
|
18951
18952
|
class: "py-16 px-8"
|
|
18952
18953
|
}, null, 8, ["modelValue", "items"]);
|
|
@@ -19016,10 +19017,10 @@ function Rt(E, ...p) {
|
|
|
19016
19017
|
* See the License for the specific language governing permissions and
|
|
19017
19018
|
* limitations under the License.
|
|
19018
19019
|
*/
|
|
19019
|
-
function
|
|
19020
|
+
function _e(E, ...p) {
|
|
19020
19021
|
throw vr(E, ...p);
|
|
19021
19022
|
}
|
|
19022
|
-
function
|
|
19023
|
+
function Ae(E, ...p) {
|
|
19023
19024
|
return vr(E, ...p);
|
|
19024
19025
|
}
|
|
19025
19026
|
function Ta(E, p, b) {
|
|
@@ -19035,16 +19036,16 @@ function vr(E, ...p) {
|
|
|
19035
19036
|
}
|
|
19036
19037
|
return tn.create(E, ...p);
|
|
19037
19038
|
}
|
|
19038
|
-
function
|
|
19039
|
+
function se(E, p, ...b) {
|
|
19039
19040
|
if (!E)
|
|
19040
19041
|
throw vr(p, ...b);
|
|
19041
19042
|
}
|
|
19042
|
-
function
|
|
19043
|
+
function qe(E) {
|
|
19043
19044
|
const p = "INTERNAL ASSERTION FAILED: " + E;
|
|
19044
19045
|
throw Rt(p), new Error(p);
|
|
19045
19046
|
}
|
|
19046
|
-
function
|
|
19047
|
-
E ||
|
|
19047
|
+
function Me(E, p) {
|
|
19048
|
+
E || qe(p);
|
|
19048
19049
|
}
|
|
19049
19050
|
/**
|
|
19050
19051
|
* @license
|
|
@@ -19127,7 +19128,7 @@ function Ia() {
|
|
|
19127
19128
|
*/
|
|
19128
19129
|
class Tt {
|
|
19129
19130
|
constructor(p, b) {
|
|
19130
|
-
this.shortDelay = p, this.longDelay = b,
|
|
19131
|
+
this.shortDelay = p, this.longDelay = b, Me(b > p, "Short delay should be less than long delay!"), this.isMobile = Un() || Vn();
|
|
19131
19132
|
}
|
|
19132
19133
|
get() {
|
|
19133
19134
|
return Aa() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
|
@@ -19150,7 +19151,7 @@ class Tt {
|
|
|
19150
19151
|
* limitations under the License.
|
|
19151
19152
|
*/
|
|
19152
19153
|
function yr(E, p) {
|
|
19153
|
-
|
|
19154
|
+
Me(E.emulator, "Emulator should always be set here");
|
|
19154
19155
|
const { url: b } = E.emulator;
|
|
19155
19156
|
return p ? `${b}${p.startsWith("/") ? p.slice(1) : p}` : b;
|
|
19156
19157
|
}
|
|
@@ -19179,21 +19180,21 @@ class rn {
|
|
|
19179
19180
|
return this.fetchImpl;
|
|
19180
19181
|
if (typeof self < "u" && "fetch" in self)
|
|
19181
19182
|
return self.fetch;
|
|
19182
|
-
|
|
19183
|
+
qe("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
|
|
19183
19184
|
}
|
|
19184
19185
|
static headers() {
|
|
19185
19186
|
if (this.headersImpl)
|
|
19186
19187
|
return this.headersImpl;
|
|
19187
19188
|
if (typeof self < "u" && "Headers" in self)
|
|
19188
19189
|
return self.Headers;
|
|
19189
|
-
|
|
19190
|
+
qe("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
|
|
19190
19191
|
}
|
|
19191
19192
|
static response() {
|
|
19192
19193
|
if (this.responseImpl)
|
|
19193
19194
|
return this.responseImpl;
|
|
19194
19195
|
if (typeof self < "u" && "Response" in self)
|
|
19195
19196
|
return self.Response;
|
|
19196
|
-
|
|
19197
|
+
qe("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
|
|
19197
19198
|
}
|
|
19198
19199
|
}
|
|
19199
19200
|
/**
|
|
@@ -19338,27 +19339,27 @@ async function nn(E, p, b) {
|
|
|
19338
19339
|
if (_.ok && !("errorMessage" in P))
|
|
19339
19340
|
return P;
|
|
19340
19341
|
{
|
|
19341
|
-
const L = _.ok ? P.errorMessage : P.error.message, [H,
|
|
19342
|
+
const L = _.ok ? P.errorMessage : P.error.message, [H, Y] = L.split(" : ");
|
|
19342
19343
|
if (H === "FEDERATED_USER_ID_ALREADY_LINKED")
|
|
19343
19344
|
throw Mt(E, "credential-already-in-use", P);
|
|
19344
19345
|
if (H === "EMAIL_EXISTS")
|
|
19345
19346
|
throw Mt(E, "email-already-in-use", P);
|
|
19346
19347
|
if (H === "USER_DISABLED")
|
|
19347
19348
|
throw Mt(E, "user-disabled", P);
|
|
19348
|
-
const
|
|
19349
|
-
if (
|
|
19350
|
-
throw Ta(E,
|
|
19351
|
-
|
|
19349
|
+
const ie = j[H] || H.toLowerCase().replace(/[_\s]+/g, "-");
|
|
19350
|
+
if (Y)
|
|
19351
|
+
throw Ta(E, ie, Y);
|
|
19352
|
+
_e(E, ie);
|
|
19352
19353
|
}
|
|
19353
19354
|
} catch (x) {
|
|
19354
19355
|
if (x instanceof mr)
|
|
19355
19356
|
throw x;
|
|
19356
|
-
|
|
19357
|
+
_e(E, "network-request-failed", { message: String(x) });
|
|
19357
19358
|
}
|
|
19358
19359
|
}
|
|
19359
19360
|
async function an(E, p, b, j, x = {}) {
|
|
19360
19361
|
const _ = await St(E, p, b, j, x);
|
|
19361
|
-
return "mfaPendingCredential" in _ &&
|
|
19362
|
+
return "mfaPendingCredential" in _ && _e(E, "multi-factor-auth-required", {
|
|
19362
19363
|
_serverResponse: _
|
|
19363
19364
|
}), _;
|
|
19364
19365
|
}
|
|
@@ -19369,7 +19370,7 @@ function sn(E, p, b, j) {
|
|
|
19369
19370
|
class Ca {
|
|
19370
19371
|
constructor(p) {
|
|
19371
19372
|
this.auth = p, this.timer = null, this.promise = new Promise((b, j) => {
|
|
19372
|
-
this.timer = setTimeout(() => j(
|
|
19373
|
+
this.timer = setTimeout(() => j(Ae(
|
|
19373
19374
|
this.auth,
|
|
19374
19375
|
"network-request-failed"
|
|
19375
19376
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -19385,7 +19386,7 @@ function Mt(E, p, b) {
|
|
|
19385
19386
|
appName: E.name
|
|
19386
19387
|
};
|
|
19387
19388
|
b.email && (j.email = b.email), b.phoneNumber && (j.phoneNumber = b.phoneNumber);
|
|
19388
|
-
const x =
|
|
19389
|
+
const x = Ae(E, p, j);
|
|
19389
19390
|
return x.customData._tokenResponse = b, x;
|
|
19390
19391
|
}
|
|
19391
19392
|
/**
|
|
@@ -19436,8 +19437,8 @@ function vt(E) {
|
|
|
19436
19437
|
}
|
|
19437
19438
|
}
|
|
19438
19439
|
async function Ra(E, p = !1) {
|
|
19439
|
-
const b =
|
|
19440
|
-
|
|
19440
|
+
const b = pt(E), j = await b.getIdToken(p), x = kr(j);
|
|
19441
|
+
se(
|
|
19441
19442
|
x && x.exp && x.auth_time && x.iat,
|
|
19442
19443
|
b.auth,
|
|
19443
19444
|
"internal-error"
|
|
@@ -19470,15 +19471,15 @@ function kr(E) {
|
|
|
19470
19471
|
}
|
|
19471
19472
|
function Na(E) {
|
|
19472
19473
|
const p = kr(E);
|
|
19473
|
-
return
|
|
19474
|
+
return se(
|
|
19474
19475
|
p,
|
|
19475
19476
|
"internal-error"
|
|
19476
19477
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
19477
|
-
),
|
|
19478
|
+
), se(
|
|
19478
19479
|
typeof p.exp < "u",
|
|
19479
19480
|
"internal-error"
|
|
19480
19481
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
19481
|
-
),
|
|
19482
|
+
), se(
|
|
19482
19483
|
typeof p.iat < "u",
|
|
19483
19484
|
"internal-error"
|
|
19484
19485
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -19626,7 +19627,7 @@ class on {
|
|
|
19626
19627
|
async function Ot(E) {
|
|
19627
19628
|
var p;
|
|
19628
19629
|
const b = E.auth, j = await E.getIdToken(), x = await yt(E, Ma(b, { idToken: j }));
|
|
19629
|
-
|
|
19630
|
+
se(
|
|
19630
19631
|
x == null ? void 0 : x.users.length,
|
|
19631
19632
|
b,
|
|
19632
19633
|
"internal-error"
|
|
@@ -19634,7 +19635,7 @@ async function Ot(E) {
|
|
|
19634
19635
|
);
|
|
19635
19636
|
const _ = x.users[0];
|
|
19636
19637
|
E._notifyReloadListener(_);
|
|
19637
|
-
const P = !((p = _.providerUserInfo) === null || p === void 0) && p.length ? Fa(_.providerUserInfo) : [], L = Oa(E.providerData, P), H = E.isAnonymous,
|
|
19638
|
+
const P = !((p = _.providerUserInfo) === null || p === void 0) && p.length ? Fa(_.providerUserInfo) : [], L = Oa(E.providerData, P), H = E.isAnonymous, Y = !(E.email && _.passwordHash) && !(L != null && L.length), ie = H ? Y : !1, le = {
|
|
19638
19639
|
uid: _.localId,
|
|
19639
19640
|
displayName: _.displayName || null,
|
|
19640
19641
|
photoURL: _.photoUrl || null,
|
|
@@ -19644,12 +19645,12 @@ async function Ot(E) {
|
|
|
19644
19645
|
tenantId: _.tenantId || null,
|
|
19645
19646
|
providerData: L,
|
|
19646
19647
|
metadata: new on(_.createdAt, _.lastLoginAt),
|
|
19647
|
-
isAnonymous:
|
|
19648
|
+
isAnonymous: ie
|
|
19648
19649
|
};
|
|
19649
|
-
Object.assign(E,
|
|
19650
|
+
Object.assign(E, le);
|
|
19650
19651
|
}
|
|
19651
19652
|
async function Ba(E) {
|
|
19652
|
-
const p =
|
|
19653
|
+
const p = pt(E);
|
|
19653
19654
|
await Ot(p), await p.auth._persistUserIfCurrent(p), p.auth._notifyListenersIfCurrent(p);
|
|
19654
19655
|
}
|
|
19655
19656
|
function Oa(E, p) {
|
|
@@ -19729,15 +19730,15 @@ class wt {
|
|
|
19729
19730
|
return !this.expirationTime || Date.now() > this.expirationTime - 3e4;
|
|
19730
19731
|
}
|
|
19731
19732
|
updateFromServerResponse(p) {
|
|
19732
|
-
|
|
19733
|
+
se(
|
|
19733
19734
|
p.idToken,
|
|
19734
19735
|
"internal-error"
|
|
19735
19736
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
19736
|
-
),
|
|
19737
|
+
), se(
|
|
19737
19738
|
typeof p.idToken < "u",
|
|
19738
19739
|
"internal-error"
|
|
19739
19740
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
19740
|
-
),
|
|
19741
|
+
), se(
|
|
19741
19742
|
typeof p.refreshToken < "u",
|
|
19742
19743
|
"internal-error"
|
|
19743
19744
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -19746,7 +19747,7 @@ class wt {
|
|
|
19746
19747
|
this.updateTokensAndExpiration(p.idToken, p.refreshToken, b);
|
|
19747
19748
|
}
|
|
19748
19749
|
async getToken(p, b = !1) {
|
|
19749
|
-
return
|
|
19750
|
+
return se(
|
|
19750
19751
|
!this.accessToken || this.refreshToken,
|
|
19751
19752
|
p,
|
|
19752
19753
|
"user-token-expired"
|
|
@@ -19765,11 +19766,11 @@ class wt {
|
|
|
19765
19766
|
}
|
|
19766
19767
|
static fromJSON(p, b) {
|
|
19767
19768
|
const { refreshToken: j, accessToken: x, expirationTime: _ } = b, P = new wt();
|
|
19768
|
-
return j && (
|
|
19769
|
+
return j && (se(typeof j == "string", "internal-error", {
|
|
19769
19770
|
appName: p
|
|
19770
|
-
}), P.refreshToken = j), x && (
|
|
19771
|
+
}), P.refreshToken = j), x && (se(typeof x == "string", "internal-error", {
|
|
19771
19772
|
appName: p
|
|
19772
|
-
}), P.accessToken = x), _ && (
|
|
19773
|
+
}), P.accessToken = x), _ && (se(typeof _ == "number", "internal-error", {
|
|
19773
19774
|
appName: p
|
|
19774
19775
|
}), P.expirationTime = _), P;
|
|
19775
19776
|
}
|
|
@@ -19787,7 +19788,7 @@ class wt {
|
|
|
19787
19788
|
return Object.assign(new wt(), this.toJSON());
|
|
19788
19789
|
}
|
|
19789
19790
|
_performRefresh() {
|
|
19790
|
-
return
|
|
19791
|
+
return qe("not implemented");
|
|
19791
19792
|
}
|
|
19792
19793
|
}
|
|
19793
19794
|
/**
|
|
@@ -19806,17 +19807,17 @@ class wt {
|
|
|
19806
19807
|
* See the License for the specific language governing permissions and
|
|
19807
19808
|
* limitations under the License.
|
|
19808
19809
|
*/
|
|
19809
|
-
function
|
|
19810
|
-
|
|
19810
|
+
function Ne(E, p) {
|
|
19811
|
+
se(typeof E == "string" || typeof E > "u", "internal-error", { appName: p });
|
|
19811
19812
|
}
|
|
19812
|
-
class
|
|
19813
|
+
class ot {
|
|
19813
19814
|
constructor(p) {
|
|
19814
19815
|
var { uid: b, auth: j, stsTokenManager: x } = p, _ = gr(p, ["uid", "auth", "stsTokenManager"]);
|
|
19815
19816
|
this.providerId = "firebase", this.proactiveRefresh = new Da(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = b, this.auth = j, this.stsTokenManager = x, this.accessToken = x.accessToken, this.displayName = _.displayName || null, this.email = _.email || null, this.emailVerified = _.emailVerified || !1, this.phoneNumber = _.phoneNumber || null, this.photoURL = _.photoURL || null, this.isAnonymous = _.isAnonymous || !1, this.tenantId = _.tenantId || null, this.providerData = _.providerData ? [..._.providerData] : [], this.metadata = new on(_.createdAt || void 0, _.lastLoginAt || void 0);
|
|
19816
19817
|
}
|
|
19817
19818
|
async getIdToken(p) {
|
|
19818
19819
|
const b = await yt(this, this.stsTokenManager.getToken(this.auth, p));
|
|
19819
|
-
return
|
|
19820
|
+
return se(
|
|
19820
19821
|
b,
|
|
19821
19822
|
this.auth,
|
|
19822
19823
|
"internal-error"
|
|
@@ -19830,7 +19831,7 @@ class st {
|
|
|
19830
19831
|
return Ba(this);
|
|
19831
19832
|
}
|
|
19832
19833
|
_assign(p) {
|
|
19833
|
-
this !== p && (
|
|
19834
|
+
this !== p && (se(
|
|
19834
19835
|
this.uid === p.uid,
|
|
19835
19836
|
this.auth,
|
|
19836
19837
|
"internal-error"
|
|
@@ -19838,11 +19839,11 @@ class st {
|
|
|
19838
19839
|
), this.displayName = p.displayName, this.photoURL = p.photoURL, this.email = p.email, this.emailVerified = p.emailVerified, this.phoneNumber = p.phoneNumber, this.isAnonymous = p.isAnonymous, this.tenantId = p.tenantId, this.providerData = p.providerData.map((b) => Object.assign({}, b)), this.metadata._copy(p.metadata), this.stsTokenManager._assign(p.stsTokenManager));
|
|
19839
19840
|
}
|
|
19840
19841
|
_clone(p) {
|
|
19841
|
-
const b = new
|
|
19842
|
+
const b = new ot(Object.assign(Object.assign({}, this), { auth: p, stsTokenManager: this.stsTokenManager._clone() }));
|
|
19842
19843
|
return b.metadata._copy(this.metadata), b;
|
|
19843
19844
|
}
|
|
19844
19845
|
_onReload(p) {
|
|
19845
|
-
|
|
19846
|
+
se(
|
|
19846
19847
|
!this.reloadListener,
|
|
19847
19848
|
this.auth,
|
|
19848
19849
|
"internal-error"
|
|
@@ -19891,46 +19892,46 @@ class st {
|
|
|
19891
19892
|
return this.stsTokenManager.refreshToken || "";
|
|
19892
19893
|
}
|
|
19893
19894
|
static _fromJSON(p, b) {
|
|
19894
|
-
var j, x, _, P, L, H,
|
|
19895
|
-
const
|
|
19896
|
-
|
|
19895
|
+
var j, x, _, P, L, H, Y, ie;
|
|
19896
|
+
const le = (j = b.displayName) !== null && j !== void 0 ? j : void 0, be = (x = b.email) !== null && x !== void 0 ? x : void 0, je = (_ = b.phoneNumber) !== null && _ !== void 0 ? _ : void 0, Re = (P = b.photoURL) !== null && P !== void 0 ? P : void 0, fe = (L = b.tenantId) !== null && L !== void 0 ? L : void 0, ve = (H = b._redirectEventId) !== null && H !== void 0 ? H : void 0, qt = (Y = b.createdAt) !== null && Y !== void 0 ? Y : void 0, Ct = (ie = b.lastLoginAt) !== null && ie !== void 0 ? ie : void 0, { uid: $t, emailVerified: _t, isAnonymous: gt, providerData: ct, stsTokenManager: mt } = b;
|
|
19897
|
+
se(
|
|
19897
19898
|
$t && mt,
|
|
19898
19899
|
p,
|
|
19899
19900
|
"internal-error"
|
|
19900
19901
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
19901
19902
|
);
|
|
19902
19903
|
const Wt = wt.fromJSON(this.name, mt);
|
|
19903
|
-
|
|
19904
|
+
se(
|
|
19904
19905
|
typeof $t == "string",
|
|
19905
19906
|
p,
|
|
19906
19907
|
"internal-error"
|
|
19907
19908
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
19908
|
-
),
|
|
19909
|
+
), Ne(le, p.name), Ne(be, p.name), se(
|
|
19909
19910
|
typeof _t == "boolean",
|
|
19910
19911
|
p,
|
|
19911
19912
|
"internal-error"
|
|
19912
19913
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
19913
|
-
),
|
|
19914
|
+
), se(
|
|
19914
19915
|
typeof gt == "boolean",
|
|
19915
19916
|
p,
|
|
19916
19917
|
"internal-error"
|
|
19917
19918
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
19918
|
-
),
|
|
19919
|
-
const bt = new
|
|
19919
|
+
), Ne(je, p.name), Ne(Re, p.name), Ne(fe, p.name), Ne(ve, p.name), Ne(qt, p.name), Ne(Ct, p.name);
|
|
19920
|
+
const bt = new ot({
|
|
19920
19921
|
uid: $t,
|
|
19921
19922
|
auth: p,
|
|
19922
|
-
email:
|
|
19923
|
+
email: be,
|
|
19923
19924
|
emailVerified: _t,
|
|
19924
|
-
displayName:
|
|
19925
|
+
displayName: le,
|
|
19925
19926
|
isAnonymous: gt,
|
|
19926
|
-
photoURL:
|
|
19927
|
-
phoneNumber:
|
|
19928
|
-
tenantId:
|
|
19927
|
+
photoURL: Re,
|
|
19928
|
+
phoneNumber: je,
|
|
19929
|
+
tenantId: fe,
|
|
19929
19930
|
stsTokenManager: Wt,
|
|
19930
19931
|
createdAt: qt,
|
|
19931
19932
|
lastLoginAt: Ct
|
|
19932
19933
|
});
|
|
19933
|
-
return
|
|
19934
|
+
return ct && Array.isArray(ct) && (bt.providerData = ct.map((Qt) => Object.assign({}, Qt))), ve && (bt._redirectEventId = ve), bt;
|
|
19934
19935
|
}
|
|
19935
19936
|
/**
|
|
19936
19937
|
* Initialize a User from an idToken server response
|
|
@@ -19940,7 +19941,7 @@ class st {
|
|
|
19940
19941
|
static async _fromIdTokenResponse(p, b, j = !1) {
|
|
19941
19942
|
const x = new wt();
|
|
19942
19943
|
x.updateFromServerResponse(b);
|
|
19943
|
-
const _ = new
|
|
19944
|
+
const _ = new ot({
|
|
19944
19945
|
uid: b.localId,
|
|
19945
19946
|
auth: p,
|
|
19946
19947
|
stsTokenManager: x,
|
|
@@ -19966,10 +19967,10 @@ class st {
|
|
|
19966
19967
|
* limitations under the License.
|
|
19967
19968
|
*/
|
|
19968
19969
|
const qr = /* @__PURE__ */ new Map();
|
|
19969
|
-
function
|
|
19970
|
-
|
|
19970
|
+
function Ce(E) {
|
|
19971
|
+
Me(E instanceof Function, "Expected a class definition");
|
|
19971
19972
|
let p = qr.get(E);
|
|
19972
|
-
return p ? (
|
|
19973
|
+
return p ? (Me(p instanceof E, "Instance stored in cache mismatched with class"), p) : (p = new E(), qr.set(E, p), p);
|
|
19973
19974
|
}
|
|
19974
19975
|
/**
|
|
19975
19976
|
* @license
|
|
@@ -20030,7 +20031,7 @@ const Cr = un;
|
|
|
20030
20031
|
function Nt(E, p, b) {
|
|
20031
20032
|
return `firebase:${E}:${p}:${b}`;
|
|
20032
20033
|
}
|
|
20033
|
-
class
|
|
20034
|
+
class ht {
|
|
20034
20035
|
constructor(p, b, j) {
|
|
20035
20036
|
this.persistence = p, this.auth = b, this.userKey = j;
|
|
20036
20037
|
const { config: x, name: _ } = this.auth;
|
|
@@ -20041,7 +20042,7 @@ class ft {
|
|
|
20041
20042
|
}
|
|
20042
20043
|
async getCurrentUser() {
|
|
20043
20044
|
const p = await this.persistence._get(this.fullUserKey);
|
|
20044
|
-
return p ?
|
|
20045
|
+
return p ? ot._fromJSON(this.auth, p) : null;
|
|
20045
20046
|
}
|
|
20046
20047
|
removeCurrentUser() {
|
|
20047
20048
|
return this.persistence._remove(this.fullUserKey);
|
|
@@ -20061,32 +20062,32 @@ class ft {
|
|
|
20061
20062
|
}
|
|
20062
20063
|
static async create(p, b, j = "authUser") {
|
|
20063
20064
|
if (!b.length)
|
|
20064
|
-
return new
|
|
20065
|
-
const x = (await Promise.all(b.map(async (
|
|
20066
|
-
if (await
|
|
20067
|
-
return
|
|
20068
|
-
}))).filter((
|
|
20069
|
-
let _ = x[0] ||
|
|
20065
|
+
return new ht(Ce(Cr), p, j);
|
|
20066
|
+
const x = (await Promise.all(b.map(async (Y) => {
|
|
20067
|
+
if (await Y._isAvailable())
|
|
20068
|
+
return Y;
|
|
20069
|
+
}))).filter((Y) => Y);
|
|
20070
|
+
let _ = x[0] || Ce(Cr);
|
|
20070
20071
|
const P = Nt(j, p.config.apiKey, p.name);
|
|
20071
20072
|
let L = null;
|
|
20072
|
-
for (const
|
|
20073
|
+
for (const Y of b)
|
|
20073
20074
|
try {
|
|
20074
|
-
const
|
|
20075
|
-
if (
|
|
20076
|
-
const
|
|
20077
|
-
|
|
20075
|
+
const ie = await Y._get(P);
|
|
20076
|
+
if (ie) {
|
|
20077
|
+
const le = ot._fromJSON(p, ie);
|
|
20078
|
+
Y !== _ && (L = le), _ = Y;
|
|
20078
20079
|
break;
|
|
20079
20080
|
}
|
|
20080
20081
|
} catch {
|
|
20081
20082
|
}
|
|
20082
|
-
const H = x.filter((
|
|
20083
|
-
return !_._shouldAllowMigration || !H.length ? new
|
|
20084
|
-
if (
|
|
20083
|
+
const H = x.filter((Y) => Y._shouldAllowMigration);
|
|
20084
|
+
return !_._shouldAllowMigration || !H.length ? new ht(_, p, j) : (_ = H[0], L && await _._set(P, L.toJSON()), await Promise.all(b.map(async (Y) => {
|
|
20085
|
+
if (Y !== _)
|
|
20085
20086
|
try {
|
|
20086
|
-
await
|
|
20087
|
+
await Y._remove(P);
|
|
20087
20088
|
} catch {
|
|
20088
20089
|
}
|
|
20089
|
-
})), new
|
|
20090
|
+
})), new ht(_, p, j));
|
|
20090
20091
|
}
|
|
20091
20092
|
}
|
|
20092
20093
|
/**
|
|
@@ -20136,39 +20137,39 @@ function _r(E) {
|
|
|
20136
20137
|
}
|
|
20137
20138
|
return "Other";
|
|
20138
20139
|
}
|
|
20139
|
-
function ln(E =
|
|
20140
|
+
function ln(E = ke()) {
|
|
20140
20141
|
return /firefox\//i.test(E);
|
|
20141
20142
|
}
|
|
20142
|
-
function Er(E =
|
|
20143
|
+
function Er(E = ke()) {
|
|
20143
20144
|
const p = E.toLowerCase();
|
|
20144
20145
|
return p.includes("safari/") && !p.includes("chrome/") && !p.includes("crios/") && !p.includes("android");
|
|
20145
20146
|
}
|
|
20146
|
-
function cn(E =
|
|
20147
|
+
function cn(E = ke()) {
|
|
20147
20148
|
return /crios\//i.test(E);
|
|
20148
20149
|
}
|
|
20149
|
-
function fn(E =
|
|
20150
|
+
function fn(E = ke()) {
|
|
20150
20151
|
return /iemobile/i.test(E);
|
|
20151
20152
|
}
|
|
20152
|
-
function hn(E =
|
|
20153
|
+
function hn(E = ke()) {
|
|
20153
20154
|
return /android/i.test(E);
|
|
20154
20155
|
}
|
|
20155
|
-
function dn(E =
|
|
20156
|
+
function dn(E = ke()) {
|
|
20156
20157
|
return /blackberry/i.test(E);
|
|
20157
20158
|
}
|
|
20158
|
-
function pn(E =
|
|
20159
|
+
function pn(E = ke()) {
|
|
20159
20160
|
return /webos/i.test(E);
|
|
20160
20161
|
}
|
|
20161
|
-
function Ut(E =
|
|
20162
|
+
function Ut(E = ke()) {
|
|
20162
20163
|
return /iphone|ipad|ipod/i.test(E) || /macintosh/i.test(E) && /mobile/i.test(E);
|
|
20163
20164
|
}
|
|
20164
|
-
function Ga(E =
|
|
20165
|
+
function Ga(E = ke()) {
|
|
20165
20166
|
var p;
|
|
20166
20167
|
return Ut(E) && !!(!((p = window.navigator) === null || p === void 0) && p.standalone);
|
|
20167
20168
|
}
|
|
20168
20169
|
function La() {
|
|
20169
20170
|
return ea() && document.documentMode === 10;
|
|
20170
20171
|
}
|
|
20171
|
-
function $n(E =
|
|
20172
|
+
function $n(E = ke()) {
|
|
20172
20173
|
return Ut(E) || hn(E) || pn(E) || dn(E) || /windows phone/i.test(E) || fn(E);
|
|
20173
20174
|
}
|
|
20174
20175
|
function Ha() {
|
|
@@ -20198,10 +20199,10 @@ function gn(E, p = []) {
|
|
|
20198
20199
|
let b;
|
|
20199
20200
|
switch (E) {
|
|
20200
20201
|
case "Browser":
|
|
20201
|
-
b = _r(
|
|
20202
|
+
b = _r(ke());
|
|
20202
20203
|
break;
|
|
20203
20204
|
case "Worker":
|
|
20204
|
-
b = `${_r(
|
|
20205
|
+
b = `${_r(ke())}-${E}`;
|
|
20205
20206
|
break;
|
|
20206
20207
|
default:
|
|
20207
20208
|
b = E;
|
|
@@ -20246,7 +20247,7 @@ function vn(E) {
|
|
|
20246
20247
|
return new Promise((p, b) => {
|
|
20247
20248
|
const j = document.createElement("script");
|
|
20248
20249
|
j.setAttribute("src", E), j.onload = p, j.onerror = (x) => {
|
|
20249
|
-
const _ =
|
|
20250
|
+
const _ = Ae(
|
|
20250
20251
|
"internal-error"
|
|
20251
20252
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
20252
20253
|
);
|
|
@@ -20289,8 +20290,8 @@ class Ja {
|
|
|
20289
20290
|
if (H.recaptchaKey === void 0)
|
|
20290
20291
|
L(new Error("recaptcha Enterprise site key undefined"));
|
|
20291
20292
|
else {
|
|
20292
|
-
const
|
|
20293
|
-
return _.tenantId == null ? _._agentRecaptchaConfig =
|
|
20293
|
+
const Y = new bn(H);
|
|
20294
|
+
return _.tenantId == null ? _._agentRecaptchaConfig = Y : _._tenantRecaptchaConfigs[_.tenantId] = Y, P(Y.siteKey);
|
|
20294
20295
|
}
|
|
20295
20296
|
}).catch((H) => {
|
|
20296
20297
|
L(H);
|
|
@@ -20300,8 +20301,8 @@ class Ja {
|
|
|
20300
20301
|
function x(_, P, L) {
|
|
20301
20302
|
const H = window.grecaptcha;
|
|
20302
20303
|
Mr(H) ? H.enterprise.ready(() => {
|
|
20303
|
-
H.enterprise.execute(_, { action: p }).then((
|
|
20304
|
-
P(
|
|
20304
|
+
H.enterprise.execute(_, { action: p }).then((Y) => {
|
|
20305
|
+
P(Y);
|
|
20305
20306
|
}).catch(() => {
|
|
20306
20307
|
P(Qa);
|
|
20307
20308
|
});
|
|
@@ -20404,9 +20405,9 @@ class Xa {
|
|
|
20404
20405
|
this.app = p, this.heartbeatServiceProvider = b, this.appCheckServiceProvider = j, this.config = x, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new Rr(this), this.idTokenSubscription = new Rr(this), this.beforeStateQueue = new Ya(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = tn, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = p.name, this.clientVersion = x.sdkClientVersion;
|
|
20405
20406
|
}
|
|
20406
20407
|
_initializeWithPersistence(p, b) {
|
|
20407
|
-
return b && (this._popupRedirectResolver =
|
|
20408
|
+
return b && (this._popupRedirectResolver = Ce(b)), this._initializationPromise = this.queue(async () => {
|
|
20408
20409
|
var j, x;
|
|
20409
|
-
if (!this._deleted && (this.persistenceManager = await
|
|
20410
|
+
if (!this._deleted && (this.persistenceManager = await ht.create(this, p), !this._deleted)) {
|
|
20410
20411
|
if (!((j = this._popupRedirectResolver) === null || j === void 0) && j._shouldInitProactively)
|
|
20411
20412
|
try {
|
|
20412
20413
|
await this._popupRedirectResolver._initialize(this);
|
|
@@ -20455,7 +20456,7 @@ class Xa {
|
|
|
20455
20456
|
}
|
|
20456
20457
|
return x ? this.reloadAndSetCurrentUserOrClear(x) : this.directlySetCurrentUser(null);
|
|
20457
20458
|
}
|
|
20458
|
-
return
|
|
20459
|
+
return se(
|
|
20459
20460
|
this._popupRedirectResolver,
|
|
20460
20461
|
this,
|
|
20461
20462
|
"argument-error"
|
|
@@ -20487,8 +20488,8 @@ class Xa {
|
|
|
20487
20488
|
this._deleted = !0;
|
|
20488
20489
|
}
|
|
20489
20490
|
async updateCurrentUser(p) {
|
|
20490
|
-
const b = p ?
|
|
20491
|
-
return b &&
|
|
20491
|
+
const b = p ? pt(p) : null;
|
|
20492
|
+
return b && se(
|
|
20492
20493
|
b.auth.config.apiKey === this.config.apiKey,
|
|
20493
20494
|
this,
|
|
20494
20495
|
"invalid-user-token"
|
|
@@ -20497,7 +20498,7 @@ class Xa {
|
|
|
20497
20498
|
}
|
|
20498
20499
|
async _updateCurrentUser(p, b = !1) {
|
|
20499
20500
|
if (!this._deleted)
|
|
20500
|
-
return p &&
|
|
20501
|
+
return p && se(
|
|
20501
20502
|
this.tenantId === p.tenantId,
|
|
20502
20503
|
this,
|
|
20503
20504
|
"tenant-id-mismatch"
|
|
@@ -20515,7 +20516,7 @@ class Xa {
|
|
|
20515
20516
|
}
|
|
20516
20517
|
setPersistence(p) {
|
|
20517
20518
|
return this.queue(async () => {
|
|
20518
|
-
await this.assertedPersistence.setPersistence(
|
|
20519
|
+
await this.assertedPersistence.setPersistence(Ce(p));
|
|
20519
20520
|
});
|
|
20520
20521
|
}
|
|
20521
20522
|
async initializeRecaptchaConfig() {
|
|
@@ -20559,15 +20560,15 @@ class Xa {
|
|
|
20559
20560
|
}
|
|
20560
20561
|
async getOrInitRedirectPersistenceManager(p) {
|
|
20561
20562
|
if (!this.redirectPersistenceManager) {
|
|
20562
|
-
const b = p &&
|
|
20563
|
-
|
|
20563
|
+
const b = p && Ce(p) || this._popupRedirectResolver;
|
|
20564
|
+
se(
|
|
20564
20565
|
b,
|
|
20565
20566
|
this,
|
|
20566
20567
|
"argument-error"
|
|
20567
20568
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
20568
|
-
), this.redirectPersistenceManager = await
|
|
20569
|
+
), this.redirectPersistenceManager = await ht.create(
|
|
20569
20570
|
this,
|
|
20570
|
-
[
|
|
20571
|
+
[Ce(b._redirectPersistence)],
|
|
20571
20572
|
"redirectUser"
|
|
20572
20573
|
/* KeyName.REDIRECT_USER */
|
|
20573
20574
|
), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
|
|
@@ -20613,7 +20614,7 @@ class Xa {
|
|
|
20613
20614
|
return () => {
|
|
20614
20615
|
};
|
|
20615
20616
|
const _ = typeof b == "function" ? b : b.next.bind(b), P = this._isInitialized ? Promise.resolve() : this._initializationPromise;
|
|
20616
|
-
return
|
|
20617
|
+
return se(
|
|
20617
20618
|
P,
|
|
20618
20619
|
this,
|
|
20619
20620
|
"internal-error"
|
|
@@ -20632,7 +20633,7 @@ class Xa {
|
|
|
20632
20633
|
return this.operations = this.operations.then(p, p), this.operations;
|
|
20633
20634
|
}
|
|
20634
20635
|
get assertedPersistence() {
|
|
20635
|
-
return
|
|
20636
|
+
return se(
|
|
20636
20637
|
this.persistenceManager,
|
|
20637
20638
|
this,
|
|
20638
20639
|
"internal-error"
|
|
@@ -20674,14 +20675,14 @@ class Xa {
|
|
|
20674
20675
|
}
|
|
20675
20676
|
}
|
|
20676
20677
|
function At(E) {
|
|
20677
|
-
return
|
|
20678
|
+
return pt(E);
|
|
20678
20679
|
}
|
|
20679
20680
|
class Rr {
|
|
20680
20681
|
constructor(p) {
|
|
20681
20682
|
this.auth = p, this.observer = null, this.addObserver = Wn((b) => this.observer = b);
|
|
20682
20683
|
}
|
|
20683
20684
|
get next() {
|
|
20684
|
-
return
|
|
20685
|
+
return se(
|
|
20685
20686
|
this.observer,
|
|
20686
20687
|
this.auth,
|
|
20687
20688
|
"internal-error"
|
|
@@ -20711,7 +20712,7 @@ function Za(E, p) {
|
|
|
20711
20712
|
const x = b.getImmediate(), _ = b.getOptions();
|
|
20712
20713
|
if (Yn(_, p ?? {}))
|
|
20713
20714
|
return x;
|
|
20714
|
-
|
|
20715
|
+
_e(
|
|
20715
20716
|
x,
|
|
20716
20717
|
"already-initialized"
|
|
20717
20718
|
/* AuthErrorCode.ALREADY_INITIALIZED */
|
|
@@ -20720,17 +20721,17 @@ function Za(E, p) {
|
|
|
20720
20721
|
return b.initialize({ options: p });
|
|
20721
20722
|
}
|
|
20722
20723
|
function ei(E, p) {
|
|
20723
|
-
const b = (p == null ? void 0 : p.persistence) || [], j = (Array.isArray(b) ? b : [b]).map(
|
|
20724
|
+
const b = (p == null ? void 0 : p.persistence) || [], j = (Array.isArray(b) ? b : [b]).map(Ce);
|
|
20724
20725
|
p != null && p.errorMap && E._updateErrorMap(p.errorMap), E._initializeWithPersistence(j, p == null ? void 0 : p.popupRedirectResolver);
|
|
20725
20726
|
}
|
|
20726
20727
|
function ti(E, p, b) {
|
|
20727
20728
|
const j = At(E);
|
|
20728
|
-
|
|
20729
|
+
se(
|
|
20729
20730
|
j._canInitEmulator,
|
|
20730
20731
|
j,
|
|
20731
20732
|
"emulator-config-failed"
|
|
20732
20733
|
/* AuthErrorCode.EMULATOR_CONFIG_FAILED */
|
|
20733
|
-
),
|
|
20734
|
+
), se(
|
|
20734
20735
|
/^https?:\/\//.test(p),
|
|
20735
20736
|
j,
|
|
20736
20737
|
"invalid-emulator-scheme"
|
|
@@ -20801,19 +20802,19 @@ class wn {
|
|
|
20801
20802
|
* @returns a JSON-serializable representation of this object.
|
|
20802
20803
|
*/
|
|
20803
20804
|
toJSON() {
|
|
20804
|
-
return
|
|
20805
|
+
return qe("not implemented");
|
|
20805
20806
|
}
|
|
20806
20807
|
/** @internal */
|
|
20807
20808
|
_getIdTokenResponse(p) {
|
|
20808
|
-
return
|
|
20809
|
+
return qe("not implemented");
|
|
20809
20810
|
}
|
|
20810
20811
|
/** @internal */
|
|
20811
20812
|
_linkToIdToken(p, b) {
|
|
20812
|
-
return
|
|
20813
|
+
return qe("not implemented");
|
|
20813
20814
|
}
|
|
20814
20815
|
/** @internal */
|
|
20815
20816
|
_getReauthenticationResolver(p) {
|
|
20816
|
-
return
|
|
20817
|
+
return qe("not implemented");
|
|
20817
20818
|
}
|
|
20818
20819
|
}
|
|
20819
20820
|
/**
|
|
@@ -20832,7 +20833,7 @@ class wn {
|
|
|
20832
20833
|
* See the License for the specific language governing permissions and
|
|
20833
20834
|
* limitations under the License.
|
|
20834
20835
|
*/
|
|
20835
|
-
async function
|
|
20836
|
+
async function dt(E, p) {
|
|
20836
20837
|
return an(E, "POST", "/v1/accounts:signInWithIdp", wr(E, p));
|
|
20837
20838
|
}
|
|
20838
20839
|
/**
|
|
@@ -20852,14 +20853,14 @@ async function ht(E, p) {
|
|
|
20852
20853
|
* limitations under the License.
|
|
20853
20854
|
*/
|
|
20854
20855
|
const ai = "http://localhost";
|
|
20855
|
-
class
|
|
20856
|
+
class ut extends wn {
|
|
20856
20857
|
constructor() {
|
|
20857
20858
|
super(...arguments), this.pendingToken = null;
|
|
20858
20859
|
}
|
|
20859
20860
|
/** @internal */
|
|
20860
20861
|
static _fromParams(p) {
|
|
20861
|
-
const b = new
|
|
20862
|
-
return p.idToken || p.accessToken ? (p.idToken && (b.idToken = p.idToken), p.accessToken && (b.accessToken = p.accessToken), p.nonce && !p.pendingToken && (b.nonce = p.nonce), p.pendingToken && (b.pendingToken = p.pendingToken)) : p.oauthToken && p.oauthTokenSecret ? (b.accessToken = p.oauthToken, b.secret = p.oauthTokenSecret) :
|
|
20862
|
+
const b = new ut(p.providerId, p.signInMethod);
|
|
20863
|
+
return p.idToken || p.accessToken ? (p.idToken && (b.idToken = p.idToken), p.accessToken && (b.accessToken = p.accessToken), p.nonce && !p.pendingToken && (b.nonce = p.nonce), p.pendingToken && (b.pendingToken = p.pendingToken)) : p.oauthToken && p.oauthTokenSecret ? (b.accessToken = p.oauthToken, b.secret = p.oauthTokenSecret) : _e(
|
|
20863
20864
|
"argument-error"
|
|
20864
20865
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
20865
20866
|
), b;
|
|
@@ -20889,23 +20890,23 @@ class ot extends wn {
|
|
|
20889
20890
|
const b = typeof p == "string" ? JSON.parse(p) : p, { providerId: j, signInMethod: x } = b, _ = gr(b, ["providerId", "signInMethod"]);
|
|
20890
20891
|
if (!j || !x)
|
|
20891
20892
|
return null;
|
|
20892
|
-
const P = new
|
|
20893
|
+
const P = new ut(j, x);
|
|
20893
20894
|
return P.idToken = _.idToken || void 0, P.accessToken = _.accessToken || void 0, P.secret = _.secret, P.nonce = _.nonce, P.pendingToken = _.pendingToken || null, P;
|
|
20894
20895
|
}
|
|
20895
20896
|
/** @internal */
|
|
20896
20897
|
_getIdTokenResponse(p) {
|
|
20897
20898
|
const b = this.buildRequest();
|
|
20898
|
-
return
|
|
20899
|
+
return dt(p, b);
|
|
20899
20900
|
}
|
|
20900
20901
|
/** @internal */
|
|
20901
20902
|
_linkToIdToken(p, b) {
|
|
20902
20903
|
const j = this.buildRequest();
|
|
20903
|
-
return j.idToken = b,
|
|
20904
|
+
return j.idToken = b, dt(p, j);
|
|
20904
20905
|
}
|
|
20905
20906
|
/** @internal */
|
|
20906
20907
|
_getReauthenticationResolver(p) {
|
|
20907
20908
|
const b = this.buildRequest();
|
|
20908
|
-
return b.autoCreate = !1,
|
|
20909
|
+
return b.autoCreate = !1, dt(p, b);
|
|
20909
20910
|
}
|
|
20910
20911
|
buildRequest() {
|
|
20911
20912
|
const p = {
|
|
@@ -21025,7 +21026,7 @@ class It extends kn {
|
|
|
21025
21026
|
* See the License for the specific language governing permissions and
|
|
21026
21027
|
* limitations under the License.
|
|
21027
21028
|
*/
|
|
21028
|
-
class
|
|
21029
|
+
class Pe extends It {
|
|
21029
21030
|
constructor() {
|
|
21030
21031
|
super(
|
|
21031
21032
|
"facebook.com"
|
|
@@ -21045,9 +21046,9 @@ class Ne extends It {
|
|
|
21045
21046
|
* @param accessToken - Facebook access token.
|
|
21046
21047
|
*/
|
|
21047
21048
|
static credential(p) {
|
|
21048
|
-
return
|
|
21049
|
-
providerId:
|
|
21050
|
-
signInMethod:
|
|
21049
|
+
return ut._fromParams({
|
|
21050
|
+
providerId: Pe.PROVIDER_ID,
|
|
21051
|
+
signInMethod: Pe.FACEBOOK_SIGN_IN_METHOD,
|
|
21051
21052
|
accessToken: p
|
|
21052
21053
|
});
|
|
21053
21054
|
}
|
|
@@ -21057,7 +21058,7 @@ class Ne extends It {
|
|
|
21057
21058
|
* @param userCredential - The user credential.
|
|
21058
21059
|
*/
|
|
21059
21060
|
static credentialFromResult(p) {
|
|
21060
|
-
return
|
|
21061
|
+
return Pe.credentialFromTaggedObject(p);
|
|
21061
21062
|
}
|
|
21062
21063
|
/**
|
|
21063
21064
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -21066,20 +21067,20 @@ class Ne extends It {
|
|
|
21066
21067
|
* @param userCredential - The user credential.
|
|
21067
21068
|
*/
|
|
21068
21069
|
static credentialFromError(p) {
|
|
21069
|
-
return
|
|
21070
|
+
return Pe.credentialFromTaggedObject(p.customData || {});
|
|
21070
21071
|
}
|
|
21071
21072
|
static credentialFromTaggedObject({ _tokenResponse: p }) {
|
|
21072
21073
|
if (!p || !("oauthAccessToken" in p) || !p.oauthAccessToken)
|
|
21073
21074
|
return null;
|
|
21074
21075
|
try {
|
|
21075
|
-
return
|
|
21076
|
+
return Pe.credential(p.oauthAccessToken);
|
|
21076
21077
|
} catch {
|
|
21077
21078
|
return null;
|
|
21078
21079
|
}
|
|
21079
21080
|
}
|
|
21080
21081
|
}
|
|
21081
|
-
|
|
21082
|
-
|
|
21082
|
+
Pe.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
|
|
21083
|
+
Pe.PROVIDER_ID = "facebook.com";
|
|
21083
21084
|
/**
|
|
21084
21085
|
* @license
|
|
21085
21086
|
* Copyright 2020 Google LLC
|
|
@@ -21096,7 +21097,7 @@ Ne.PROVIDER_ID = "facebook.com";
|
|
|
21096
21097
|
* See the License for the specific language governing permissions and
|
|
21097
21098
|
* limitations under the License.
|
|
21098
21099
|
*/
|
|
21099
|
-
class
|
|
21100
|
+
class De extends It {
|
|
21100
21101
|
constructor() {
|
|
21101
21102
|
super(
|
|
21102
21103
|
"google.com"
|
|
@@ -21117,9 +21118,9 @@ class Pe extends It {
|
|
|
21117
21118
|
* @param accessToken - Google access token.
|
|
21118
21119
|
*/
|
|
21119
21120
|
static credential(p, b) {
|
|
21120
|
-
return
|
|
21121
|
-
providerId:
|
|
21122
|
-
signInMethod:
|
|
21121
|
+
return ut._fromParams({
|
|
21122
|
+
providerId: De.PROVIDER_ID,
|
|
21123
|
+
signInMethod: De.GOOGLE_SIGN_IN_METHOD,
|
|
21123
21124
|
idToken: p,
|
|
21124
21125
|
accessToken: b
|
|
21125
21126
|
});
|
|
@@ -21130,7 +21131,7 @@ class Pe extends It {
|
|
|
21130
21131
|
* @param userCredential - The user credential.
|
|
21131
21132
|
*/
|
|
21132
21133
|
static credentialFromResult(p) {
|
|
21133
|
-
return
|
|
21134
|
+
return De.credentialFromTaggedObject(p);
|
|
21134
21135
|
}
|
|
21135
21136
|
/**
|
|
21136
21137
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -21139,7 +21140,7 @@ class Pe extends It {
|
|
|
21139
21140
|
* @param userCredential - The user credential.
|
|
21140
21141
|
*/
|
|
21141
21142
|
static credentialFromError(p) {
|
|
21142
|
-
return
|
|
21143
|
+
return De.credentialFromTaggedObject(p.customData || {});
|
|
21143
21144
|
}
|
|
21144
21145
|
static credentialFromTaggedObject({ _tokenResponse: p }) {
|
|
21145
21146
|
if (!p)
|
|
@@ -21148,14 +21149,14 @@ class Pe extends It {
|
|
|
21148
21149
|
if (!b && !j)
|
|
21149
21150
|
return null;
|
|
21150
21151
|
try {
|
|
21151
|
-
return
|
|
21152
|
+
return De.credential(b, j);
|
|
21152
21153
|
} catch {
|
|
21153
21154
|
return null;
|
|
21154
21155
|
}
|
|
21155
21156
|
}
|
|
21156
21157
|
}
|
|
21157
|
-
|
|
21158
|
-
|
|
21158
|
+
De.GOOGLE_SIGN_IN_METHOD = "google.com";
|
|
21159
|
+
De.PROVIDER_ID = "google.com";
|
|
21159
21160
|
/**
|
|
21160
21161
|
* @license
|
|
21161
21162
|
* Copyright 2020 Google LLC
|
|
@@ -21172,7 +21173,7 @@ Pe.PROVIDER_ID = "google.com";
|
|
|
21172
21173
|
* See the License for the specific language governing permissions and
|
|
21173
21174
|
* limitations under the License.
|
|
21174
21175
|
*/
|
|
21175
|
-
class
|
|
21176
|
+
class Be extends It {
|
|
21176
21177
|
constructor() {
|
|
21177
21178
|
super(
|
|
21178
21179
|
"github.com"
|
|
@@ -21185,9 +21186,9 @@ class De extends It {
|
|
|
21185
21186
|
* @param accessToken - Github access token.
|
|
21186
21187
|
*/
|
|
21187
21188
|
static credential(p) {
|
|
21188
|
-
return
|
|
21189
|
-
providerId:
|
|
21190
|
-
signInMethod:
|
|
21189
|
+
return ut._fromParams({
|
|
21190
|
+
providerId: Be.PROVIDER_ID,
|
|
21191
|
+
signInMethod: Be.GITHUB_SIGN_IN_METHOD,
|
|
21191
21192
|
accessToken: p
|
|
21192
21193
|
});
|
|
21193
21194
|
}
|
|
@@ -21197,7 +21198,7 @@ class De extends It {
|
|
|
21197
21198
|
* @param userCredential - The user credential.
|
|
21198
21199
|
*/
|
|
21199
21200
|
static credentialFromResult(p) {
|
|
21200
|
-
return
|
|
21201
|
+
return Be.credentialFromTaggedObject(p);
|
|
21201
21202
|
}
|
|
21202
21203
|
/**
|
|
21203
21204
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -21206,20 +21207,20 @@ class De extends It {
|
|
|
21206
21207
|
* @param userCredential - The user credential.
|
|
21207
21208
|
*/
|
|
21208
21209
|
static credentialFromError(p) {
|
|
21209
|
-
return
|
|
21210
|
+
return Be.credentialFromTaggedObject(p.customData || {});
|
|
21210
21211
|
}
|
|
21211
21212
|
static credentialFromTaggedObject({ _tokenResponse: p }) {
|
|
21212
21213
|
if (!p || !("oauthAccessToken" in p) || !p.oauthAccessToken)
|
|
21213
21214
|
return null;
|
|
21214
21215
|
try {
|
|
21215
|
-
return
|
|
21216
|
+
return Be.credential(p.oauthAccessToken);
|
|
21216
21217
|
} catch {
|
|
21217
21218
|
return null;
|
|
21218
21219
|
}
|
|
21219
21220
|
}
|
|
21220
21221
|
}
|
|
21221
|
-
|
|
21222
|
-
|
|
21222
|
+
Be.GITHUB_SIGN_IN_METHOD = "github.com";
|
|
21223
|
+
Be.PROVIDER_ID = "github.com";
|
|
21223
21224
|
/**
|
|
21224
21225
|
* @license
|
|
21225
21226
|
* Copyright 2020 Google LLC
|
|
@@ -21236,7 +21237,7 @@ De.PROVIDER_ID = "github.com";
|
|
|
21236
21237
|
* See the License for the specific language governing permissions and
|
|
21237
21238
|
* limitations under the License.
|
|
21238
21239
|
*/
|
|
21239
|
-
class
|
|
21240
|
+
class Oe extends It {
|
|
21240
21241
|
constructor() {
|
|
21241
21242
|
super(
|
|
21242
21243
|
"twitter.com"
|
|
@@ -21250,9 +21251,9 @@ class Be extends It {
|
|
|
21250
21251
|
* @param secret - Twitter secret.
|
|
21251
21252
|
*/
|
|
21252
21253
|
static credential(p, b) {
|
|
21253
|
-
return
|
|
21254
|
-
providerId:
|
|
21255
|
-
signInMethod:
|
|
21254
|
+
return ut._fromParams({
|
|
21255
|
+
providerId: Oe.PROVIDER_ID,
|
|
21256
|
+
signInMethod: Oe.TWITTER_SIGN_IN_METHOD,
|
|
21256
21257
|
oauthToken: p,
|
|
21257
21258
|
oauthTokenSecret: b
|
|
21258
21259
|
});
|
|
@@ -21263,7 +21264,7 @@ class Be extends It {
|
|
|
21263
21264
|
* @param userCredential - The user credential.
|
|
21264
21265
|
*/
|
|
21265
21266
|
static credentialFromResult(p) {
|
|
21266
|
-
return
|
|
21267
|
+
return Oe.credentialFromTaggedObject(p);
|
|
21267
21268
|
}
|
|
21268
21269
|
/**
|
|
21269
21270
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -21272,7 +21273,7 @@ class Be extends It {
|
|
|
21272
21273
|
* @param userCredential - The user credential.
|
|
21273
21274
|
*/
|
|
21274
21275
|
static credentialFromError(p) {
|
|
21275
|
-
return
|
|
21276
|
+
return Oe.credentialFromTaggedObject(p.customData || {});
|
|
21276
21277
|
}
|
|
21277
21278
|
static credentialFromTaggedObject({ _tokenResponse: p }) {
|
|
21278
21279
|
if (!p)
|
|
@@ -21281,14 +21282,14 @@ class Be extends It {
|
|
|
21281
21282
|
if (!b || !j)
|
|
21282
21283
|
return null;
|
|
21283
21284
|
try {
|
|
21284
|
-
return
|
|
21285
|
+
return Oe.credential(b, j);
|
|
21285
21286
|
} catch {
|
|
21286
21287
|
return null;
|
|
21287
21288
|
}
|
|
21288
21289
|
}
|
|
21289
21290
|
}
|
|
21290
|
-
|
|
21291
|
-
|
|
21291
|
+
Oe.TWITTER_SIGN_IN_METHOD = "twitter.com";
|
|
21292
|
+
Oe.PROVIDER_ID = "twitter.com";
|
|
21292
21293
|
/**
|
|
21293
21294
|
* @license
|
|
21294
21295
|
* Copyright 2020 Google LLC
|
|
@@ -21305,13 +21306,13 @@ Be.PROVIDER_ID = "twitter.com";
|
|
|
21305
21306
|
* See the License for the specific language governing permissions and
|
|
21306
21307
|
* limitations under the License.
|
|
21307
21308
|
*/
|
|
21308
|
-
class
|
|
21309
|
+
class lt {
|
|
21309
21310
|
constructor(p) {
|
|
21310
21311
|
this.user = p.user, this.providerId = p.providerId, this._tokenResponse = p._tokenResponse, this.operationType = p.operationType;
|
|
21311
21312
|
}
|
|
21312
21313
|
static async _fromIdTokenResponse(p, b, j, x = !1) {
|
|
21313
|
-
const _ = await
|
|
21314
|
-
return new
|
|
21314
|
+
const _ = await ot._fromIdTokenResponse(p, j, x), P = Pr(j);
|
|
21315
|
+
return new lt({
|
|
21315
21316
|
user: _,
|
|
21316
21317
|
providerId: P,
|
|
21317
21318
|
_tokenResponse: j,
|
|
@@ -21325,7 +21326,7 @@ class ut {
|
|
|
21325
21326
|
!0
|
|
21326
21327
|
);
|
|
21327
21328
|
const x = Pr(j);
|
|
21328
|
-
return new
|
|
21329
|
+
return new lt({
|
|
21329
21330
|
user: p,
|
|
21330
21331
|
providerId: x,
|
|
21331
21332
|
_tokenResponse: j,
|
|
@@ -21373,7 +21374,7 @@ function En(E, p, b, j) {
|
|
|
21373
21374
|
}
|
|
21374
21375
|
async function ii(E, p, b = !1) {
|
|
21375
21376
|
const j = await yt(E, p._linkToIdToken(E.auth, await E.getIdToken()), b);
|
|
21376
|
-
return
|
|
21377
|
+
return lt._forOperation(E, "link", j);
|
|
21377
21378
|
}
|
|
21378
21379
|
/**
|
|
21379
21380
|
* @license
|
|
@@ -21395,28 +21396,28 @@ async function si(E, p, b = !1) {
|
|
|
21395
21396
|
const { auth: j } = E, x = "reauthenticate";
|
|
21396
21397
|
try {
|
|
21397
21398
|
const _ = await yt(E, En(j, x, p, E), b);
|
|
21398
|
-
|
|
21399
|
+
se(
|
|
21399
21400
|
_.idToken,
|
|
21400
21401
|
j,
|
|
21401
21402
|
"internal-error"
|
|
21402
21403
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
21403
21404
|
);
|
|
21404
21405
|
const P = kr(_.idToken);
|
|
21405
|
-
|
|
21406
|
+
se(
|
|
21406
21407
|
P,
|
|
21407
21408
|
j,
|
|
21408
21409
|
"internal-error"
|
|
21409
21410
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
21410
21411
|
);
|
|
21411
21412
|
const { sub: L } = P;
|
|
21412
|
-
return
|
|
21413
|
+
return se(
|
|
21413
21414
|
E.uid === L,
|
|
21414
21415
|
j,
|
|
21415
21416
|
"user-mismatch"
|
|
21416
21417
|
/* AuthErrorCode.USER_MISMATCH */
|
|
21417
|
-
),
|
|
21418
|
+
), lt._forOperation(E, x, _);
|
|
21418
21419
|
} catch (_) {
|
|
21419
|
-
throw (_ == null ? void 0 : _.code) === "auth/user-not-found" &&
|
|
21420
|
+
throw (_ == null ? void 0 : _.code) === "auth/user-not-found" && _e(
|
|
21420
21421
|
j,
|
|
21421
21422
|
"user-mismatch"
|
|
21422
21423
|
/* AuthErrorCode.USER_MISMATCH */
|
|
@@ -21440,7 +21441,7 @@ async function si(E, p, b = !1) {
|
|
|
21440
21441
|
* limitations under the License.
|
|
21441
21442
|
*/
|
|
21442
21443
|
async function oi(E, p, b = !1) {
|
|
21443
|
-
const j = "signIn", x = await En(E, j, p), _ = await
|
|
21444
|
+
const j = "signIn", x = await En(E, j, p), _ = await lt._fromIdTokenResponse(E, j, x);
|
|
21444
21445
|
return b || await E._updateCurrentUser(_.user), _;
|
|
21445
21446
|
}
|
|
21446
21447
|
/**
|
|
@@ -21482,14 +21483,14 @@ async function li(E, p) {
|
|
|
21482
21483
|
const b = At(E), j = await ui(b, {
|
|
21483
21484
|
token: p,
|
|
21484
21485
|
returnSecureToken: !0
|
|
21485
|
-
}), x = await
|
|
21486
|
+
}), x = await lt._fromIdTokenResponse(b, "signIn", j);
|
|
21486
21487
|
return await b._updateCurrentUser(x.user), x;
|
|
21487
21488
|
}
|
|
21488
21489
|
function ci(E, p, b, j) {
|
|
21489
|
-
return
|
|
21490
|
+
return pt(E).onIdTokenChanged(p, b, j);
|
|
21490
21491
|
}
|
|
21491
21492
|
function fi(E, p, b) {
|
|
21492
|
-
return
|
|
21493
|
+
return pt(E).beforeAuthStateChanged(p, b);
|
|
21493
21494
|
}
|
|
21494
21495
|
const zt = "__sak";
|
|
21495
21496
|
/**
|
|
@@ -21550,7 +21551,7 @@ class jn {
|
|
|
21550
21551
|
* limitations under the License.
|
|
21551
21552
|
*/
|
|
21552
21553
|
function hi() {
|
|
21553
|
-
const E =
|
|
21554
|
+
const E = ke();
|
|
21554
21555
|
return Er(E) || Ut(E);
|
|
21555
21556
|
}
|
|
21556
21557
|
const di = 1e3, pi = 10;
|
|
@@ -21757,7 +21758,7 @@ class Vt {
|
|
|
21757
21758
|
eventId: j,
|
|
21758
21759
|
eventType: x
|
|
21759
21760
|
});
|
|
21760
|
-
const L = Array.from(P).map(async (
|
|
21761
|
+
const L = Array.from(P).map(async (Y) => Y(b.origin, _)), H = await gi(L);
|
|
21761
21762
|
b.ports[0].postMessage({
|
|
21762
21763
|
status: "done",
|
|
21763
21764
|
eventId: j,
|
|
@@ -21859,9 +21860,9 @@ class mi {
|
|
|
21859
21860
|
);
|
|
21860
21861
|
let _, P;
|
|
21861
21862
|
return new Promise((L, H) => {
|
|
21862
|
-
const
|
|
21863
|
+
const Y = jr("", 20);
|
|
21863
21864
|
x.port1.start();
|
|
21864
|
-
const
|
|
21865
|
+
const ie = setTimeout(() => {
|
|
21865
21866
|
H(new Error(
|
|
21866
21867
|
"unsupported_event"
|
|
21867
21868
|
/* _MessageError.UNSUPPORTED_EVENT */
|
|
@@ -21869,12 +21870,12 @@ class mi {
|
|
|
21869
21870
|
}, j);
|
|
21870
21871
|
P = {
|
|
21871
21872
|
messageChannel: x,
|
|
21872
|
-
onMessage(
|
|
21873
|
-
const
|
|
21874
|
-
if (
|
|
21875
|
-
switch (
|
|
21873
|
+
onMessage(le) {
|
|
21874
|
+
const be = le;
|
|
21875
|
+
if (be.data.eventId === Y)
|
|
21876
|
+
switch (be.data.status) {
|
|
21876
21877
|
case "ack":
|
|
21877
|
-
clearTimeout(
|
|
21878
|
+
clearTimeout(ie), _ = setTimeout(
|
|
21878
21879
|
() => {
|
|
21879
21880
|
H(new Error(
|
|
21880
21881
|
"timeout"
|
|
@@ -21886,10 +21887,10 @@ class mi {
|
|
|
21886
21887
|
);
|
|
21887
21888
|
break;
|
|
21888
21889
|
case "done":
|
|
21889
|
-
clearTimeout(_), L(
|
|
21890
|
+
clearTimeout(_), L(be.data.response);
|
|
21890
21891
|
break;
|
|
21891
21892
|
default:
|
|
21892
|
-
clearTimeout(
|
|
21893
|
+
clearTimeout(ie), clearTimeout(_), H(new Error(
|
|
21893
21894
|
"invalid_response"
|
|
21894
21895
|
/* _MessageError.INVALID_RESPONSE */
|
|
21895
21896
|
));
|
|
@@ -21898,7 +21899,7 @@ class mi {
|
|
|
21898
21899
|
}
|
|
21899
21900
|
}, this.handlers.add(P), x.port1.addEventListener("message", P.onMessage), this.target.postMessage({
|
|
21900
21901
|
eventType: p,
|
|
21901
|
-
eventId:
|
|
21902
|
+
eventId: Y,
|
|
21902
21903
|
data: b
|
|
21903
21904
|
}, [x.port2]);
|
|
21904
21905
|
}).finally(() => {
|
|
@@ -21922,11 +21923,11 @@ class mi {
|
|
|
21922
21923
|
* See the License for the specific language governing permissions and
|
|
21923
21924
|
* limitations under the License.
|
|
21924
21925
|
*/
|
|
21925
|
-
function
|
|
21926
|
+
function Ie() {
|
|
21926
21927
|
return window;
|
|
21927
21928
|
}
|
|
21928
21929
|
function bi(E) {
|
|
21929
|
-
|
|
21930
|
+
Ie().location.href = E;
|
|
21930
21931
|
}
|
|
21931
21932
|
/**
|
|
21932
21933
|
* @license
|
|
@@ -21945,7 +21946,7 @@ function bi(E) {
|
|
|
21945
21946
|
* limitations under the License.
|
|
21946
21947
|
*/
|
|
21947
21948
|
function In() {
|
|
21948
|
-
return typeof
|
|
21949
|
+
return typeof Ie().WorkerGlobalScope < "u" && typeof Ie().importScripts == "function";
|
|
21949
21950
|
}
|
|
21950
21951
|
async function vi() {
|
|
21951
21952
|
if (!(navigator != null && navigator.serviceWorker))
|
|
@@ -22203,7 +22204,7 @@ new Tt(3e4, 6e4);
|
|
|
22203
22204
|
* limitations under the License.
|
|
22204
22205
|
*/
|
|
22205
22206
|
function Ii(E, p) {
|
|
22206
|
-
return p ?
|
|
22207
|
+
return p ? Ce(p) : (se(
|
|
22207
22208
|
E._popupRedirectResolver,
|
|
22208
22209
|
E,
|
|
22209
22210
|
"argument-error"
|
|
@@ -22235,13 +22236,13 @@ class Tr extends wn {
|
|
|
22235
22236
|
), this.params = p;
|
|
22236
22237
|
}
|
|
22237
22238
|
_getIdTokenResponse(p) {
|
|
22238
|
-
return
|
|
22239
|
+
return dt(p, this._buildIdpRequest());
|
|
22239
22240
|
}
|
|
22240
22241
|
_linkToIdToken(p, b) {
|
|
22241
|
-
return
|
|
22242
|
+
return dt(p, this._buildIdpRequest(b));
|
|
22242
22243
|
}
|
|
22243
22244
|
_getReauthenticationResolver(p) {
|
|
22244
|
-
return
|
|
22245
|
+
return dt(p, this._buildIdpRequest());
|
|
22245
22246
|
}
|
|
22246
22247
|
_buildIdpRequest(p) {
|
|
22247
22248
|
const b = {
|
|
@@ -22261,7 +22262,7 @@ function xi(E) {
|
|
|
22261
22262
|
}
|
|
22262
22263
|
function qi(E) {
|
|
22263
22264
|
const { auth: p, user: b } = E;
|
|
22264
|
-
return
|
|
22265
|
+
return se(
|
|
22265
22266
|
b,
|
|
22266
22267
|
p,
|
|
22267
22268
|
"internal-error"
|
|
@@ -22270,7 +22271,7 @@ function qi(E) {
|
|
|
22270
22271
|
}
|
|
22271
22272
|
async function Ci(E) {
|
|
22272
22273
|
const { auth: p, user: b } = E;
|
|
22273
|
-
return
|
|
22274
|
+
return se(
|
|
22274
22275
|
b,
|
|
22275
22276
|
p,
|
|
22276
22277
|
"internal-error"
|
|
@@ -22324,8 +22325,8 @@ class _n {
|
|
|
22324
22325
|
};
|
|
22325
22326
|
try {
|
|
22326
22327
|
this.resolve(await this.getIdpTask(L)(H));
|
|
22327
|
-
} catch (
|
|
22328
|
-
this.reject(
|
|
22328
|
+
} catch (Y) {
|
|
22329
|
+
this.reject(Y);
|
|
22329
22330
|
}
|
|
22330
22331
|
}
|
|
22331
22332
|
onError(p) {
|
|
@@ -22343,7 +22344,7 @@ class _n {
|
|
|
22343
22344
|
case "reauthViaRedirect":
|
|
22344
22345
|
return qi;
|
|
22345
22346
|
default:
|
|
22346
|
-
|
|
22347
|
+
_e(
|
|
22347
22348
|
this.auth,
|
|
22348
22349
|
"internal-error"
|
|
22349
22350
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -22351,10 +22352,10 @@ class _n {
|
|
|
22351
22352
|
}
|
|
22352
22353
|
}
|
|
22353
22354
|
resolve(p) {
|
|
22354
|
-
|
|
22355
|
+
Me(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(p), this.unregisterAndCleanUp();
|
|
22355
22356
|
}
|
|
22356
22357
|
reject(p) {
|
|
22357
|
-
|
|
22358
|
+
Me(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(p), this.unregisterAndCleanUp();
|
|
22358
22359
|
}
|
|
22359
22360
|
unregisterAndCleanUp() {
|
|
22360
22361
|
this.eventManager && this.eventManager.unregisterConsumer(this), this.pendingPromise = null, this.cleanUp();
|
|
@@ -22377,13 +22378,13 @@ class _n {
|
|
|
22377
22378
|
* limitations under the License.
|
|
22378
22379
|
*/
|
|
22379
22380
|
const _i = new Tt(2e3, 1e4);
|
|
22380
|
-
class
|
|
22381
|
+
class ft extends _n {
|
|
22381
22382
|
constructor(p, b, j, x, _) {
|
|
22382
|
-
super(p, b, x, _), this.provider = j, this.authWindow = null, this.pollId = null,
|
|
22383
|
+
super(p, b, x, _), this.provider = j, this.authWindow = null, this.pollId = null, ft.currentPopupAction && ft.currentPopupAction.cancel(), ft.currentPopupAction = this;
|
|
22383
22384
|
}
|
|
22384
22385
|
async executeNotNull() {
|
|
22385
22386
|
const p = await this.execute();
|
|
22386
|
-
return
|
|
22387
|
+
return se(
|
|
22387
22388
|
p,
|
|
22388
22389
|
this.auth,
|
|
22389
22390
|
"internal-error"
|
|
@@ -22391,7 +22392,7 @@ class ct extends _n {
|
|
|
22391
22392
|
), p;
|
|
22392
22393
|
}
|
|
22393
22394
|
async onExecution() {
|
|
22394
|
-
|
|
22395
|
+
Me(this.filter.length === 1, "Popup operations only handle one event");
|
|
22395
22396
|
const p = jr();
|
|
22396
22397
|
this.authWindow = await this.resolver._openPopup(
|
|
22397
22398
|
this.auth,
|
|
@@ -22402,7 +22403,7 @@ class ct extends _n {
|
|
|
22402
22403
|
), this.authWindow.associatedEvent = p, this.resolver._originValidation(this.auth).catch((b) => {
|
|
22403
22404
|
this.reject(b);
|
|
22404
22405
|
}), this.resolver._isIframeWebStorageSupported(this.auth, (b) => {
|
|
22405
|
-
b || this.reject(
|
|
22406
|
+
b || this.reject(Ae(
|
|
22406
22407
|
this.auth,
|
|
22407
22408
|
"web-storage-unsupported"
|
|
22408
22409
|
/* AuthErrorCode.WEB_STORAGE_UNSUPPORTED */
|
|
@@ -22414,14 +22415,14 @@ class ct extends _n {
|
|
|
22414
22415
|
return ((p = this.authWindow) === null || p === void 0 ? void 0 : p.associatedEvent) || null;
|
|
22415
22416
|
}
|
|
22416
22417
|
cancel() {
|
|
22417
|
-
this.reject(
|
|
22418
|
+
this.reject(Ae(
|
|
22418
22419
|
this.auth,
|
|
22419
22420
|
"cancelled-popup-request"
|
|
22420
22421
|
/* AuthErrorCode.EXPIRED_POPUP_REQUEST */
|
|
22421
22422
|
));
|
|
22422
22423
|
}
|
|
22423
22424
|
cleanUp() {
|
|
22424
|
-
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null,
|
|
22425
|
+
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, ft.currentPopupAction = null;
|
|
22425
22426
|
}
|
|
22426
22427
|
pollUserCancellation() {
|
|
22427
22428
|
const p = () => {
|
|
@@ -22429,7 +22430,7 @@ class ct extends _n {
|
|
|
22429
22430
|
if (!((j = (b = this.authWindow) === null || b === void 0 ? void 0 : b.window) === null || j === void 0) && j.closed) {
|
|
22430
22431
|
this.pollId = window.setTimeout(
|
|
22431
22432
|
() => {
|
|
22432
|
-
this.pollId = null, this.reject(
|
|
22433
|
+
this.pollId = null, this.reject(Ae(
|
|
22433
22434
|
this.auth,
|
|
22434
22435
|
"popup-closed-by-user"
|
|
22435
22436
|
/* AuthErrorCode.POPUP_CLOSED_BY_USER */
|
|
@@ -22445,7 +22446,7 @@ class ct extends _n {
|
|
|
22445
22446
|
p();
|
|
22446
22447
|
}
|
|
22447
22448
|
}
|
|
22448
|
-
|
|
22449
|
+
ft.currentPopupAction = null;
|
|
22449
22450
|
/**
|
|
22450
22451
|
* @license
|
|
22451
22452
|
* Copyright 2020 Google LLC
|
|
@@ -22520,7 +22521,7 @@ function Pi(E, p) {
|
|
|
22520
22521
|
Pt.set(E._key(), p);
|
|
22521
22522
|
}
|
|
22522
22523
|
function Di(E) {
|
|
22523
|
-
return
|
|
22524
|
+
return Ce(E._redirectPersistence);
|
|
22524
22525
|
}
|
|
22525
22526
|
function Bi(E) {
|
|
22526
22527
|
return Nt(Mi, E.config.apiKey, E.name);
|
|
@@ -22568,7 +22569,7 @@ class zi {
|
|
|
22568
22569
|
var j;
|
|
22569
22570
|
if (p.error && !Mn(p)) {
|
|
22570
22571
|
const x = ((j = p.error.code) === null || j === void 0 ? void 0 : j.split("auth/")[1]) || "internal-error";
|
|
22571
|
-
b.onError(
|
|
22572
|
+
b.onError(Ae(this.auth, x));
|
|
22572
22573
|
} else
|
|
22573
22574
|
b.onAuthEvent(p);
|
|
22574
22575
|
}
|
|
@@ -22647,7 +22648,7 @@ async function Vi(E) {
|
|
|
22647
22648
|
return;
|
|
22648
22649
|
} catch {
|
|
22649
22650
|
}
|
|
22650
|
-
|
|
22651
|
+
_e(
|
|
22651
22652
|
E,
|
|
22652
22653
|
"unauthorized-domain"
|
|
22653
22654
|
/* AuthErrorCode.INVALID_ORIGIN */
|
|
@@ -22684,7 +22685,7 @@ function Ki(E) {
|
|
|
22684
22685
|
*/
|
|
22685
22686
|
const Wi = new Tt(3e4, 6e4);
|
|
22686
22687
|
function Fr() {
|
|
22687
|
-
const E =
|
|
22688
|
+
const E = Ie().___jsl;
|
|
22688
22689
|
if (E != null && E.H) {
|
|
22689
22690
|
for (const p of Object.keys(E.H))
|
|
22690
22691
|
if (E.H[p].r = E.H[p].r || [], E.H[p].L = E.H[p].L || [], E.H[p].r = [...E.H[p].L], E.CP)
|
|
@@ -22701,7 +22702,7 @@ function Qi(E) {
|
|
|
22701
22702
|
p(gapi.iframes.getContext());
|
|
22702
22703
|
},
|
|
22703
22704
|
ontimeout: () => {
|
|
22704
|
-
Fr(), b(
|
|
22705
|
+
Fr(), b(Ae(
|
|
22705
22706
|
E,
|
|
22706
22707
|
"network-request-failed"
|
|
22707
22708
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -22710,14 +22711,14 @@ function Qi(E) {
|
|
|
22710
22711
|
timeout: Wi.get()
|
|
22711
22712
|
});
|
|
22712
22713
|
}
|
|
22713
|
-
if (!((x = (j =
|
|
22714
|
+
if (!((x = (j = Ie().gapi) === null || j === void 0 ? void 0 : j.iframes) === null || x === void 0) && x.Iframe)
|
|
22714
22715
|
p(gapi.iframes.getContext());
|
|
22715
|
-
else if (!((_ =
|
|
22716
|
+
else if (!((_ = Ie().gapi) === null || _ === void 0) && _.load)
|
|
22716
22717
|
P();
|
|
22717
22718
|
else {
|
|
22718
22719
|
const L = Va("iframefcb");
|
|
22719
|
-
return
|
|
22720
|
-
gapi.load ? P() : b(
|
|
22720
|
+
return Ie()[L] = () => {
|
|
22721
|
+
gapi.load ? P() : b(Ae(
|
|
22721
22722
|
E,
|
|
22722
22723
|
"network-request-failed"
|
|
22723
22724
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -22765,7 +22766,7 @@ const Yi = new Tt(5e3, 15e3), Xi = "__/auth/iframe", Zi = "emulator/auth/iframe"
|
|
|
22765
22766
|
]);
|
|
22766
22767
|
function rs(E) {
|
|
22767
22768
|
const p = E.config;
|
|
22768
|
-
|
|
22769
|
+
se(
|
|
22769
22770
|
p.authDomain,
|
|
22770
22771
|
E,
|
|
22771
22772
|
"auth-domain-config-required"
|
|
@@ -22781,8 +22782,8 @@ function rs(E) {
|
|
|
22781
22782
|
return _.length && (j.fw = _.join(",")), `${b}?${jt(j).slice(1)}`;
|
|
22782
22783
|
}
|
|
22783
22784
|
async function ns(E) {
|
|
22784
|
-
const p = await Ji(E), b =
|
|
22785
|
-
return
|
|
22785
|
+
const p = await Ji(E), b = Ie().gapi;
|
|
22786
|
+
return se(
|
|
22786
22787
|
b,
|
|
22787
22788
|
E,
|
|
22788
22789
|
"internal-error"
|
|
@@ -22798,15 +22799,15 @@ async function ns(E) {
|
|
|
22798
22799
|
// Prevent iframe from closing on mouse out.
|
|
22799
22800
|
setHideOnLeave: !1
|
|
22800
22801
|
});
|
|
22801
|
-
const P =
|
|
22802
|
+
const P = Ae(
|
|
22802
22803
|
E,
|
|
22803
22804
|
"network-request-failed"
|
|
22804
22805
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
22805
|
-
), L =
|
|
22806
|
+
), L = Ie().setTimeout(() => {
|
|
22806
22807
|
_(P);
|
|
22807
22808
|
}, Yi.get());
|
|
22808
22809
|
function H() {
|
|
22809
|
-
|
|
22810
|
+
Ie().clearTimeout(L), x(j);
|
|
22810
22811
|
}
|
|
22811
22812
|
j.ping(H).then(H, () => {
|
|
22812
22813
|
_(P);
|
|
@@ -22855,23 +22856,23 @@ function ls(E, p, b, j = is, x = ss) {
|
|
|
22855
22856
|
height: x.toString(),
|
|
22856
22857
|
top: _,
|
|
22857
22858
|
left: P
|
|
22858
|
-
}),
|
|
22859
|
-
b && (L = cn(
|
|
22860
|
-
const
|
|
22861
|
-
if (Ga(
|
|
22859
|
+
}), Y = ke().toLowerCase();
|
|
22860
|
+
b && (L = cn(Y) ? os : b), ln(Y) && (p = p || us, H.scrollbars = "yes");
|
|
22861
|
+
const ie = Object.entries(H).reduce((be, [je, Re]) => `${be}${je}=${Re},`, "");
|
|
22862
|
+
if (Ga(Y) && L !== "_self")
|
|
22862
22863
|
return cs(p || "", L), new zr(null);
|
|
22863
|
-
const
|
|
22864
|
-
|
|
22865
|
-
|
|
22864
|
+
const le = window.open(p || "", L, ie);
|
|
22865
|
+
se(
|
|
22866
|
+
le,
|
|
22866
22867
|
E,
|
|
22867
22868
|
"popup-blocked"
|
|
22868
22869
|
/* AuthErrorCode.POPUP_BLOCKED */
|
|
22869
22870
|
);
|
|
22870
22871
|
try {
|
|
22871
|
-
|
|
22872
|
+
le.focus();
|
|
22872
22873
|
} catch {
|
|
22873
22874
|
}
|
|
22874
|
-
return new zr(
|
|
22875
|
+
return new zr(le);
|
|
22875
22876
|
}
|
|
22876
22877
|
function cs(E, p) {
|
|
22877
22878
|
const b = document.createElement("a");
|
|
@@ -22897,12 +22898,12 @@ function cs(E, p) {
|
|
|
22897
22898
|
*/
|
|
22898
22899
|
const fs = "__/auth/handler", hs = "emulator/auth/handler", ds = encodeURIComponent("fac");
|
|
22899
22900
|
async function Gr(E, p, b, j, x, _) {
|
|
22900
|
-
|
|
22901
|
+
se(
|
|
22901
22902
|
E.config.authDomain,
|
|
22902
22903
|
E,
|
|
22903
22904
|
"auth-domain-config-required"
|
|
22904
22905
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
|
22905
|
-
),
|
|
22906
|
+
), se(
|
|
22906
22907
|
E.config.apiKey,
|
|
22907
22908
|
E,
|
|
22908
22909
|
"invalid-api-key"
|
|
@@ -22918,19 +22919,19 @@ async function Gr(E, p, b, j, x, _) {
|
|
|
22918
22919
|
};
|
|
22919
22920
|
if (p instanceof kn) {
|
|
22920
22921
|
p.setDefaultLanguage(E.languageCode), P.providerId = p.providerId || "", ta(p.getCustomParameters()) || (P.customParameters = JSON.stringify(p.getCustomParameters()));
|
|
22921
|
-
for (const [
|
|
22922
|
-
P[
|
|
22922
|
+
for (const [ie, le] of Object.entries(_ || {}))
|
|
22923
|
+
P[ie] = le;
|
|
22923
22924
|
}
|
|
22924
22925
|
if (p instanceof It) {
|
|
22925
|
-
const
|
|
22926
|
-
|
|
22926
|
+
const ie = p.getScopes().filter((le) => le !== "");
|
|
22927
|
+
ie.length > 0 && (P.scopes = ie.join(","));
|
|
22927
22928
|
}
|
|
22928
22929
|
E.tenantId && (P.tid = E.tenantId);
|
|
22929
22930
|
const L = P;
|
|
22930
|
-
for (const
|
|
22931
|
-
L[
|
|
22932
|
-
const H = await E._getAppCheckToken(),
|
|
22933
|
-
return `${ps(E)}?${jt(L).slice(1)}${
|
|
22931
|
+
for (const ie of Object.keys(L))
|
|
22932
|
+
L[ie] === void 0 && delete L[ie];
|
|
22933
|
+
const H = await E._getAppCheckToken(), Y = H ? `#${ds}=${encodeURIComponent(H)}` : "";
|
|
22934
|
+
return `${ps(E)}?${jt(L).slice(1)}${Y}`;
|
|
22934
22935
|
}
|
|
22935
22936
|
function ps({ config: E }) {
|
|
22936
22937
|
return E.emulator ? yr(E, hs) : `https://${E.authDomain}/${fs}`;
|
|
@@ -22960,7 +22961,7 @@ class $s {
|
|
|
22960
22961
|
// to make sure errors are raised as promise rejections
|
|
22961
22962
|
async _openPopup(p, b, j, x) {
|
|
22962
22963
|
var _;
|
|
22963
|
-
|
|
22964
|
+
Me((_ = this.eventManagers[p._key()]) === null || _ === void 0 ? void 0 : _.manager, "_initialize() not called before _openPopup()");
|
|
22964
22965
|
const P = await Gr(p, b, j, dr(), x);
|
|
22965
22966
|
return ls(p, P, jr());
|
|
22966
22967
|
}
|
|
@@ -22974,7 +22975,7 @@ class $s {
|
|
|
22974
22975
|
const b = p._key();
|
|
22975
22976
|
if (this.eventManagers[b]) {
|
|
22976
22977
|
const { manager: x, promise: _ } = this.eventManagers[b];
|
|
22977
|
-
return x ? Promise.resolve(x) : (
|
|
22978
|
+
return x ? Promise.resolve(x) : (Me(_, "If manager is not set, promise should be"), _);
|
|
22978
22979
|
}
|
|
22979
22980
|
const j = this.initAndGetManager(p);
|
|
22980
22981
|
return this.eventManagers[b] = { promise: j }, j.catch(() => {
|
|
@@ -22983,7 +22984,7 @@ class $s {
|
|
|
22983
22984
|
}
|
|
22984
22985
|
async initAndGetManager(p) {
|
|
22985
22986
|
const b = await ns(p), j = new zi(p);
|
|
22986
|
-
return b.register("authEvent", (x) => (
|
|
22987
|
+
return b.register("authEvent", (x) => (se(
|
|
22987
22988
|
x == null ? void 0 : x.authEvent,
|
|
22988
22989
|
p,
|
|
22989
22990
|
"invalid-auth-event"
|
|
@@ -22997,7 +22998,7 @@ class $s {
|
|
|
22997
22998
|
this.iframes[p._key()].send(fr, { type: fr }, (x) => {
|
|
22998
22999
|
var _;
|
|
22999
23000
|
const P = (_ = x == null ? void 0 : x[0]) === null || _ === void 0 ? void 0 : _[fr];
|
|
23000
|
-
P !== void 0 && b(!!P),
|
|
23001
|
+
P !== void 0 && b(!!P), _e(
|
|
23001
23002
|
p,
|
|
23002
23003
|
"internal-error"
|
|
23003
23004
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -23055,7 +23056,7 @@ class ms {
|
|
|
23055
23056
|
b && (this.internalListeners.delete(p), b(), this.updateProactiveRefresh());
|
|
23056
23057
|
}
|
|
23057
23058
|
assertAuthConfigured() {
|
|
23058
|
-
|
|
23059
|
+
se(
|
|
23059
23060
|
this.auth._initializationPromise,
|
|
23060
23061
|
"dependent-sdk-initialized-before-auth"
|
|
23061
23062
|
/* AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH */
|
|
@@ -23100,7 +23101,7 @@ function vs(E) {
|
|
|
23100
23101
|
"auth",
|
|
23101
23102
|
(p, { options: b }) => {
|
|
23102
23103
|
const j = p.getProvider("app").getImmediate(), x = p.getProvider("heartbeat"), _ = p.getProvider("app-check-internal"), { apiKey: P, authDomain: L } = j.options;
|
|
23103
|
-
|
|
23104
|
+
se(P && !P.includes(":"), "invalid-api-key", { appName: j.name });
|
|
23104
23105
|
const H = {
|
|
23105
23106
|
apiKey: P,
|
|
23106
23107
|
authDomain: L,
|
|
@@ -23109,8 +23110,8 @@ function vs(E) {
|
|
|
23109
23110
|
tokenApiHost: "securetoken.googleapis.com",
|
|
23110
23111
|
apiScheme: "https",
|
|
23111
23112
|
sdkClientVersion: gn(E)
|
|
23112
|
-
},
|
|
23113
|
-
return ei(
|
|
23113
|
+
}, Y = new Xa(j, x, _, H);
|
|
23114
|
+
return ei(Y, b), Y;
|
|
23114
23115
|
},
|
|
23115
23116
|
"PUBLIC"
|
|
23116
23117
|
/* ComponentType.PUBLIC */
|