@feedmepos/mf-settings 0.0.69 → 0.0.70
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-3360c969.js → App-c49967dc.js} +387 -386
- package/dist/{Business-9ac30155.js → Business-3d64f697.js} +4 -4
- package/dist/{CreateBusiness-af1ec0c0.js → CreateBusiness-d18cc97c.js} +2 -2
- package/dist/{FoodCourt-c9b603d6.js → FoodCourt-177c3938.js} +9098 -9115
- package/dist/{ReasonTemplate-c39df454.js → ReasonTemplate-b56a5a9d.js} +1 -1
- package/dist/{Tagging-e233bc93.js → Tagging-ab29d986.js} +4 -4
- package/dist/{app-bfaa4ee9.js → app-8ce45c02.js} +91 -87
- 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/{business-7684bcec.js → business-a8c3cad5.js} +1 -1
- package/dist/{index-3f4c8817.js → index-b1e448c9.js} +128 -128
- 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-8ce45c02.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 ke, k as Yn, l as Xn, F as gr, q as jt, m as Zn, n as ea, o as ta, p as ra, s as na, t as aa, u as ia, v as sa } from "./map-695afd6f.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
|
function mr(k, p) {
|
|
13
13
|
var b = {};
|
|
14
14
|
for (var j in k)
|
|
@@ -36,12 +36,12 @@ var br = {};
|
|
|
36
36
|
function x() {
|
|
37
37
|
try {
|
|
38
38
|
throw new Error();
|
|
39
|
-
} catch (
|
|
40
|
-
var P =
|
|
39
|
+
} catch (ie) {
|
|
40
|
+
var P = ie.stack, L = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), H = null;
|
|
41
41
|
do {
|
|
42
|
-
var
|
|
43
|
-
|
|
44
|
-
} while (
|
|
42
|
+
var Y = L.exec(P);
|
|
43
|
+
Y != null && (H = Y);
|
|
44
|
+
} while (Y != null);
|
|
45
45
|
return H[1];
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -92,7 +92,7 @@ var br = {};
|
|
|
92
92
|
}
|
|
93
93
|
return !1;
|
|
94
94
|
}();
|
|
95
|
-
function
|
|
95
|
+
function Y(r, t) {
|
|
96
96
|
if (r.prototype.constructor = r, r.prototype["$i" + r.name] = r, t != null) {
|
|
97
97
|
if (H) {
|
|
98
98
|
Object.setPrototypeOf(r.prototype, t.prototype);
|
|
@@ -102,17 +102,17 @@ var br = {};
|
|
|
102
102
|
_(r.prototype, n), r.prototype = n;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function ie(r, t) {
|
|
106
106
|
for (var n = 0; n < t.length; n++)
|
|
107
|
-
|
|
107
|
+
Y(t[n], r);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function le(r, t) {
|
|
110
110
|
L(t.prototype, r.prototype), r.prototype.constructor = r;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function be(r, t) {
|
|
113
113
|
P(t.prototype, r.prototype), r.prototype.constructor = r;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function je(r, t, n, i) {
|
|
116
116
|
var s = r;
|
|
117
117
|
r[t] = s, r[n] = function() {
|
|
118
118
|
return r[t] === s && (r[t] = i()), r[n] = function() {
|
|
@@ -120,7 +120,7 @@ var br = {};
|
|
|
120
120
|
}, r[t];
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Re(r, t, n, i) {
|
|
124
124
|
var s = r;
|
|
125
125
|
r[t] = s, r[n] = function() {
|
|
126
126
|
if (r[t] === s) {
|
|
@@ -133,10 +133,10 @@ var br = {};
|
|
|
133
133
|
}, l;
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function fe(r) {
|
|
137
137
|
return r.immutable$list = Array, r.fixed$length = Array, r;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function ve(r) {
|
|
140
140
|
return r;
|
|
141
141
|
}
|
|
142
142
|
function qt(r) {
|
|
@@ -161,7 +161,7 @@ var br = {};
|
|
|
161
161
|
function gt(r, t, n, i, s, o, l, c, f, h) {
|
|
162
162
|
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 };
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function ct(r, t, n, i, s, o, l, c) {
|
|
165
165
|
var f = gt(r, !0, !1, n, i, s, o, l, c, !1), h = $t(f);
|
|
166
166
|
r[t] = h;
|
|
167
167
|
}
|
|
@@ -200,10 +200,10 @@ var br = {};
|
|
|
200
200
|
};
|
|
201
201
|
}, t = function(n, i, s, o) {
|
|
202
202
|
return function(l, c, f, h) {
|
|
203
|
-
return
|
|
203
|
+
return ct(l, c, n, i, s, [f], h, o);
|
|
204
204
|
};
|
|
205
205
|
};
|
|
206
|
-
return { inherit:
|
|
206
|
+
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 };
|
|
207
207
|
}(), $ = {
|
|
208
208
|
x3(r, t, n, i) {
|
|
209
209
|
return { i: r, p: t, e: n, x: i };
|
|
@@ -3621,8 +3621,8 @@ var br = {};
|
|
|
3621
3621
|
yJ(r, t) {
|
|
3622
3622
|
return t.a(r);
|
|
3623
3623
|
},
|
|
3624
|
-
D2(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
3625
|
-
return new e.hr(I, A, te, X, m, G, M, N, R, q, C, ne,
|
|
3624
|
+
D2(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe, D) {
|
|
3625
|
+
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, E, d);
|
|
3626
3626
|
},
|
|
3627
3627
|
Cc(r) {
|
|
3628
3628
|
var t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, 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);
|
|
@@ -3642,9 +3642,9 @@ var br = {};
|
|
|
3642
3642
|
cK: function(t, n) {
|
|
3643
3643
|
this.a = t, this.b = n;
|
|
3644
3644
|
},
|
|
3645
|
-
hr: function(t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
3646
|
-
var
|
|
3647
|
-
|
|
3645
|
+
hr: function(t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe, D, K) {
|
|
3646
|
+
var Q = this;
|
|
3647
|
+
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 = E, 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;
|
|
3648
3648
|
},
|
|
3649
3649
|
qh: function() {
|
|
3650
3650
|
},
|
|
@@ -3675,8 +3675,8 @@ var br = {};
|
|
|
3675
3675
|
yL(r, t) {
|
|
3676
3676
|
return t.a(r);
|
|
3677
3677
|
},
|
|
3678
|
-
ww(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
3679
|
-
return new e.dm(w, D, he,
|
|
3678
|
+
ww(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, 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) {
|
|
3679
|
+
return new e.dm(w, D, he, Q, A, n, F, o, de, T, G, te, W, d, h, V, M, E, 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);
|
|
3680
3680
|
},
|
|
3681
3681
|
yA(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, T, S, A) {
|
|
3682
3682
|
return new e.dl(f, h, d, A, w, t, m, S, T, E, c, i, v, s, o, l, y, n, r);
|
|
@@ -3684,20 +3684,20 @@ var br = {};
|
|
|
3684
3684
|
wx(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, T, S, A, I) {
|
|
3685
3685
|
return new e.hz(r, t, n, i, o, l, c, f, h, d, m, v, y, E, T, S, A, I, s, w);
|
|
3686
3686
|
},
|
|
3687
|
-
qu(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
3688
|
-
return new e.dn(A, S,
|
|
3687
|
+
qu(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe) {
|
|
3688
|
+
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, E, c, n, f, te, y, X, i, r, h, t, G, s, v, w);
|
|
3689
3689
|
},
|
|
3690
3690
|
Cq(r) {
|
|
3691
3691
|
var t = $.F(u.j.a(r.h(0, "orderIds")), new e.p9(), u.N);
|
|
3692
3692
|
return new e.hE(e.u(t, !0, t.$ti.i("x.E")));
|
|
3693
3693
|
},
|
|
3694
3694
|
or(r) {
|
|
3695
|
-
var t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
3696
|
-
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 =
|
|
3695
|
+
var t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, 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"));
|
|
3696
|
+
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)), E = 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, E, 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);
|
|
3697
3697
|
},
|
|
3698
3698
|
Cj(r) {
|
|
3699
|
-
var t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
3700
|
-
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(), E = r.cy, E = E == null ? G : E.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(),
|
|
3699
|
+
var t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, 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);
|
|
3700
|
+
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(), E = r.cy, E = E == null ? G : E.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", E, "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);
|
|
3701
3701
|
},
|
|
3702
3702
|
Cd(r) {
|
|
3703
3703
|
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));
|
|
@@ -3742,8 +3742,8 @@ var br = {};
|
|
|
3742
3742
|
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);
|
|
3743
3743
|
},
|
|
3744
3744
|
oK(r) {
|
|
3745
|
-
var t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
3746
|
-
return
|
|
3745
|
+
var t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, 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);
|
|
3746
|
+
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")), E = 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, E, A, t, z, ye, F, i, G, v, h, d, m);
|
|
3747
3747
|
},
|
|
3748
3748
|
Ck(r) {
|
|
3749
3749
|
var t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, 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);
|
|
@@ -3876,9 +3876,9 @@ var br = {};
|
|
|
3876
3876
|
iK: function(t, n, i) {
|
|
3877
3877
|
this.a = t, this.b = n, this.$ti = i;
|
|
3878
3878
|
},
|
|
3879
|
-
dm: function(t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
3879
|
+
dm: function(t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, 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) {
|
|
3880
3880
|
var Z = this;
|
|
3881
|
-
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 = E, 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 =
|
|
3881
|
+
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 = E, 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;
|
|
3882
3882
|
},
|
|
3883
3883
|
qk: function() {
|
|
3884
3884
|
},
|
|
@@ -3967,9 +3967,9 @@ var br = {};
|
|
|
3967
3967
|
iL: function(t, n, i) {
|
|
3968
3968
|
this.a = t, this.b = n, this.$ti = i;
|
|
3969
3969
|
},
|
|
3970
|
-
dn: function(t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
3971
|
-
var
|
|
3972
|
-
|
|
3970
|
+
dn: function(t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe, D) {
|
|
3971
|
+
var K = this;
|
|
3972
|
+
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 = E, 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;
|
|
3973
3973
|
},
|
|
3974
3974
|
qC: function() {
|
|
3975
3975
|
},
|
|
@@ -11416,9 +11416,9 @@ Arguments: [` + f + "]";
|
|
|
11416
11416
|
return this.gm().$1$balance(r);
|
|
11417
11417
|
}
|
|
11418
11418
|
}, e.ea.prototype = {
|
|
11419
|
-
$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, E, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
11420
|
-
var O = this.a, Z = w == null ? O.a : e.h(w), ae = a.a === D ? O.b : e.m(D),
|
|
11421
|
-
return this.b.$1(this.$ti.i("ea.1").a(O.iK(Xt,
|
|
11419
|
+
$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, E, 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) {
|
|
11420
|
+
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 === E ? O.CW : u.gG.a(E), 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);
|
|
11421
|
+
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)));
|
|
11422
11422
|
},
|
|
11423
11423
|
$0() {
|
|
11424
11424
|
var r = null;
|
|
@@ -11477,9 +11477,9 @@ Arguments: [` + f + "]";
|
|
|
11477
11477
|
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);
|
|
11478
11478
|
}
|
|
11479
11479
|
}, e.iK.prototype = {
|
|
11480
|
-
$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, E, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
11481
|
-
var O = this, Z = w == null ? O.a.a : e.h(w), ae = a.a === D ? O.a.b : e.m(D),
|
|
11482
|
-
return O.b.$1(e.ww(Xt,
|
|
11480
|
+
$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, E, 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) {
|
|
11481
|
+
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 === E ? O.a.CW : u.gG.a(E), 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);
|
|
11482
|
+
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));
|
|
11483
11483
|
},
|
|
11484
11484
|
$0() {
|
|
11485
11485
|
var r = null;
|
|
@@ -11600,8 +11600,8 @@ Arguments: [` + f + "]";
|
|
|
11600
11600
|
iF(r, t) {
|
|
11601
11601
|
return this.gm().$2$calculatorVersion$effectGroups(r, t);
|
|
11602
11602
|
},
|
|
11603
|
-
iK(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
11604
|
-
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, E, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
11603
|
+
iK(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, 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) {
|
|
11604
|
+
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, E, 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);
|
|
11605
11605
|
},
|
|
11606
11606
|
bX(r) {
|
|
11607
11607
|
return this.gm().$1$items(r);
|
|
@@ -11884,8 +11884,8 @@ Arguments: [` + f + "]";
|
|
|
11884
11884
|
}
|
|
11885
11885
|
}, e.cL.prototype = {
|
|
11886
11886
|
$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, E, T, S, A) {
|
|
11887
|
-
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),
|
|
11888
|
-
return this.b.$1(e.D(this).i("cL.1").a(I.f5(a.a === r ? I.gbW() : e.V(r), F, D,
|
|
11887
|
+
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 === E ? I.gfO() : e.m(E), 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);
|
|
11888
|
+
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)));
|
|
11889
11889
|
},
|
|
11890
11890
|
$0() {
|
|
11891
11891
|
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);
|
|
@@ -11898,8 +11898,8 @@ Arguments: [` + f + "]";
|
|
|
11898
11898
|
}
|
|
11899
11899
|
}, e.iJ.prototype = {
|
|
11900
11900
|
$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, E, T, S, A) {
|
|
11901
|
-
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),
|
|
11902
|
-
return I.b.$1(e.yA(a.a === r ? I.a.cx : e.V(r), F, D,
|
|
11901
|
+
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 === E ? I.a.y : e.m(E), 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);
|
|
11902
|
+
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));
|
|
11903
11903
|
},
|
|
11904
11904
|
$0() {
|
|
11905
11905
|
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);
|
|
@@ -12484,8 +12484,8 @@ Arguments: [` + f + "]";
|
|
|
12484
12484
|
bB(r) {
|
|
12485
12485
|
return this.gm().$1$taxes(r);
|
|
12486
12486
|
},
|
|
12487
|
-
fi(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
12488
|
-
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, E, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
12487
|
+
fi(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe) {
|
|
12488
|
+
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, E, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe);
|
|
12489
12489
|
},
|
|
12490
12490
|
bY(r) {
|
|
12491
12491
|
return this.gm().$1$subItems(r);
|
|
@@ -12515,9 +12515,9 @@ Arguments: [` + f + "]";
|
|
|
12515
12515
|
return this.gm().$1$billDiscount(r);
|
|
12516
12516
|
}
|
|
12517
12517
|
}, e.cM.prototype = {
|
|
12518
|
-
$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, E, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
12519
|
-
var D = this.a,
|
|
12520
|
-
return this.b.$1(e.D(this).i("cM.1").a(D.fi(
|
|
12518
|
+
$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, E, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe) {
|
|
12519
|
+
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 === E ? D.gbt() : u.fW.a(E), 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);
|
|
12520
|
+
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)));
|
|
12521
12521
|
},
|
|
12522
12522
|
$0() {
|
|
12523
12523
|
var r = null;
|
|
@@ -12568,9 +12568,9 @@ Arguments: [` + f + "]";
|
|
|
12568
12568
|
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);
|
|
12569
12569
|
}
|
|
12570
12570
|
}, e.iL.prototype = {
|
|
12571
|
-
$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, E, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
12572
|
-
var D = this,
|
|
12573
|
-
return D.b.$1(e.qu(
|
|
12571
|
+
$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, E, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe) {
|
|
12572
|
+
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 === E ? D.a.dy : u.fW.a(E), 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);
|
|
12573
|
+
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));
|
|
12574
12574
|
},
|
|
12575
12575
|
$0() {
|
|
12576
12576
|
var r = null;
|
|
@@ -12671,8 +12671,8 @@ Arguments: [` + f + "]";
|
|
|
12671
12671
|
bB(r) {
|
|
12672
12672
|
return this.gm().$1$taxes(r);
|
|
12673
12673
|
},
|
|
12674
|
-
fi(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
12675
|
-
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, E, T, S, A, I, M, C, q, R, N, F, B, z, X,
|
|
12674
|
+
fi(r, t, n, i, s, o, l, c, f, h, d, m, v, y, w, E, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe) {
|
|
12675
|
+
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, E, T, S, A, I, M, C, q, R, N, F, B, z, X, J, te, W, G, ee, V, ne, oe);
|
|
12676
12676
|
},
|
|
12677
12677
|
bY(r) {
|
|
12678
12678
|
return this.gm().$1$subItems(r);
|
|
@@ -14386,8 +14386,8 @@ Arguments: [` + f + "]";
|
|
|
14386
14386
|
}
|
|
14387
14387
|
}, e.ek.prototype = {
|
|
14388
14388
|
$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, E, T, S) {
|
|
14389
|
-
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 === E ? A.gaD() : u.y.a(E),
|
|
14390
|
-
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,
|
|
14389
|
+
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 === E ? A.gaD() : u.y.a(E), 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);
|
|
14390
|
+
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)));
|
|
14391
14391
|
},
|
|
14392
14392
|
$0() {
|
|
14393
14393
|
var r = null;
|
|
@@ -14423,8 +14423,8 @@ Arguments: [` + f + "]";
|
|
|
14423
14423
|
}
|
|
14424
14424
|
}, e.iV.prototype = {
|
|
14425
14425
|
$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, E, T, S) {
|
|
14426
|
-
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 === E ? A.a.y : u.y.a(E),
|
|
14427
|
-
return A.b.$1(e.yB(I, C, a.a === n ? A.a.CW : e.V(n), M, ne, G, te,
|
|
14426
|
+
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 === E ? A.a.y : u.y.a(E), 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);
|
|
14427
|
+
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));
|
|
14428
14428
|
},
|
|
14429
14429
|
$0() {
|
|
14430
14430
|
var r = null;
|
|
@@ -18741,8 +18741,8 @@ Arguments: [` + f + "]";
|
|
|
18741
18741
|
var i = u.N;
|
|
18742
18742
|
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);
|
|
18743
18743
|
}), 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", () => {
|
|
18744
|
-
var i = ",", s = " ", o = "%", l = "0", c = "+", f = "-", h = "E", d = "‰", m = "∞", v = "NaN", y = "#,##0.###", w = "#E0", E = "#,##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",
|
|
18745
|
-
return e.w(["af", e.B(T, y, i, "ZAR", h, s, m, f, "af", v, o, E, d, c, w, l), "am", e.B(T, y, S, "ETB", h, i, m, f, "am", v, o, E, d, c, w, l), "ar", e.B(C, y, S, "EGP", h, i, m, I, "ar", M, "%", E, d, A, w, l), "ar_DZ", e.B(C, y, i, "DZD", h, S, m, I, "ar_DZ", M, "%", E, d, A, w, l), "ar_EG", e.B(q, y, "٫", "EGP", "اس", "٬", m, "-", "ar_EG", "ليس رقم", "٪", E, "؉", "+", w, "٠"), "az", e.B(q, y, i, "AZN", h, S, m, f, "az", v, o, E, 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, E, d, c, w, l), "bn", e.B("#,##,##0.00¤", N, S, "BDT", h, i, m, f, "bn", v, o, E, 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, E, d, c, w, l), "chr", e.B(T, y, S, B, h, i, m, f, "chr", v, o, E, 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, E, 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, E, d, c, w, l), "el", e.B(q, y, i, F, "e", S, m, f, "el", v, o, E, d, c, w, l), "en", e.B(T, y, S, B, h, i, m, f, "en", v, o, E, d, c, w, l), "en_AU", e.B(T, y, S, "AUD", "e", i, m, f, "en_AU", v, o, E, d, c, w, l), "en_CA", e.B(T, y, S, "CAD", "e", i, m, f, "en_CA", v, o, E, d, c, w, l), "en_GB", e.B(T, y, S, "GBP", h, i, m, f, "en_GB", v, o, E, d, c, w, l), "en_IE", e.B(T, y, S, F, h, i, m, f, "en_IE", v, o, E, d, c, w, l), "en_IN", e.B(te, N, S,
|
|
18744
|
+
var i = ",", s = " ", o = "%", l = "0", c = "+", f = "-", h = "E", d = "‰", m = "∞", v = "NaN", y = "#,##0.###", w = "#E0", E = "#,##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 ¤";
|
|
18745
|
+
return e.w(["af", e.B(T, y, i, "ZAR", h, s, m, f, "af", v, o, E, d, c, w, l), "am", e.B(T, y, S, "ETB", h, i, m, f, "am", v, o, E, d, c, w, l), "ar", e.B(C, y, S, "EGP", h, i, m, I, "ar", M, "%", E, d, A, w, l), "ar_DZ", e.B(C, y, i, "DZD", h, S, m, I, "ar_DZ", M, "%", E, d, A, w, l), "ar_EG", e.B(q, y, "٫", "EGP", "اس", "٬", m, "-", "ar_EG", "ليس رقم", "٪", E, "؉", "+", w, "٠"), "az", e.B(q, y, i, "AZN", h, S, m, f, "az", v, o, E, 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, E, d, c, w, l), "bn", e.B("#,##,##0.00¤", N, S, "BDT", h, i, m, f, "bn", v, o, E, 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, E, d, c, w, l), "chr", e.B(T, y, S, B, h, i, m, f, "chr", v, o, E, 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, E, 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, E, d, c, w, l), "el", e.B(q, y, i, F, "e", S, m, f, "el", v, o, E, d, c, w, l), "en", e.B(T, y, S, B, h, i, m, f, "en", v, o, E, d, c, w, l), "en_AU", e.B(T, y, S, "AUD", "e", i, m, f, "en_AU", v, o, E, d, c, w, l), "en_CA", e.B(T, y, S, "CAD", "e", i, m, f, "en_CA", v, o, E, d, c, w, l), "en_GB", e.B(T, y, S, "GBP", h, i, m, f, "en_GB", v, o, E, d, c, w, l), "en_IE", e.B(T, y, S, F, h, i, m, f, "en_IE", v, o, E, 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, E, d, c, w, l), "en_SG", e.B(T, y, S, "SGD", h, i, m, f, "en_SG", v, o, E, d, c, w, l), "en_US", e.B(T, y, S, B, h, i, m, f, "en_US", v, o, E, d, c, w, l), "en_ZA", e.B(T, y, i, "ZAR", h, s, m, f, "en_ZA", v, o, E, 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, E, 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", "ناعدد", "٪", E, "؉", 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, E, 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, E, d, c, w, l), "ga", e.B(T, y, S, F, h, i, m, f, "ga", v, o, E, 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, E, d, c, w, l), "he", e.B(oe, y, S, "ILS", h, i, m, I, "he", v, o, E, 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, E, d, c, w, l), "hy", e.B(q, y, i, "AMD", h, s, m, f, "hy", "ՈչԹ", o, E, d, c, w, l), "id", e.B(T, y, i, "IDR", h, S, m, f, "id", v, o, E, d, c, w, l), "in", e.B(T, y, i, "IDR", h, S, m, f, "in", v, o, E, d, c, w, l), "is", e.B(q, y, i, "ISK", h, S, m, f, "is", v, o, E, d, c, w, l), "it", e.B(q, y, i, F, h, S, m, f, "it", v, o, E, d, c, w, l), "it_CH", e.B(z, y, S, X, h, "’", m, f, "it_CH", v, o, E, d, c, w, l), "iw", e.B(oe, y, S, "ILS", h, i, m, I, "iw", v, o, E, d, A, w, l), "ja", e.B(T, y, S, "JPY", h, i, m, f, "ja", v, o, E, d, c, w, l), "ka", e.B(q, y, i, "GEL", h, s, m, f, "ka", "არ არის რიცხვი", o, E, d, c, w, l), "kk", e.B(q, y, i, "KZT", h, s, m, f, "kk", "сан емес", o, E, d, c, w, l), "km", e.B("#,##0.00¤", y, i, "KHR", h, S, m, f, "km", v, o, E, d, c, w, l), "kn", e.B(T, y, S, W, h, i, m, f, "kn", v, o, E, d, c, w, l), "ko", e.B(T, y, S, "KRW", h, i, m, f, "ko", v, o, E, d, c, w, l), "ky", e.B(q, y, i, "KGS", h, s, m, f, "ky", "сан эмес", o, E, d, c, w, l), "ln", e.B(q, y, i, "CDF", h, S, m, f, "ln", v, o, E, d, c, w, l), "lo", e.B("¤#,##0.00;¤-#,##0.00", y, i, "LAK", h, S, m, f, "lo", "ບໍ່ແມ່ນໂຕເລກ", o, E, 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, E, d, c, w, l), "mk", e.B(q, y, i, "MKD", h, S, m, f, "mk", v, o, E, d, c, w, l), "ml", e.B(T, N, S, W, h, i, m, f, "ml", v, o, E, d, c, w, l), "mn", e.B(C, y, S, "MNT", h, i, m, f, "mn", v, o, E, d, c, w, l), "mr", e.B(T, N, S, W, h, i, m, f, "mr", v, o, E, d, c, V, "०"), "ms", e.B(T, y, S, "MYR", h, i, m, f, "ms", v, o, E, d, c, w, l), "mt", e.B(T, y, S, F, h, i, m, f, "mt", v, o, E, d, c, w, l), "my", e.B(q, y, S, "MMK", h, i, m, f, "my", "ဂဏန်းမဟုတ်သော", o, E, 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, E, d, c, w, "०"), "nl", e.B("¤ #,##0.00;¤ -#,##0.00", y, i, F, h, S, m, f, "nl", v, o, E, 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, E, 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, E, d, c, w, l), "ps", e.B(q, y, "٫", "AFN", "×۱۰^", "٬", m, "-", "ps", v, "٪", E, "؉", "+", w, "۰"), "pt", e.B(C, y, i, "BRL", h, S, m, f, "pt", v, o, E, d, c, w, l), "pt_BR", e.B(C, y, i, "BRL", h, S, m, f, "pt_BR", v, o, E, d, c, w, l), "pt_PT", e.B(q, y, i, F, h, s, m, f, "pt_PT", v, o, E, 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, E, 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, E, d, c, w, l), "sr", e.B(q, y, i, "RSD", h, S, m, f, "sr", v, o, E, d, c, w, l), "sr_Latn", e.B(q, y, i, "RSD", h, S, m, f, "sr_Latn", v, o, E, 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, E, 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, E, d, c, w, l), "th", e.B(T, y, S, "THB", h, i, m, f, "th", v, o, E, d, c, w, l), "tl", e.B(T, y, S, "PHP", h, i, m, f, "tl", v, o, E, 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, E, d, c, w, l), "ur", e.B(C, y, S, "PKR", h, i, m, I, "ur", v, o, E, d, A, w, l), "uz", e.B(q, y, i, "UZS", h, s, m, f, "uz", "son emas", o, E, d, c, w, l), "vi", e.B(q, y, i, "VND", h, S, m, f, "vi", v, o, E, d, c, w, l), "zh", e.B(T, y, S, "CNY", h, i, m, f, "zh", v, o, E, d, c, w, l), "zh_CN", e.B(T, y, S, "CNY", h, i, m, f, "zh_CN", v, o, E, d, c, w, l), "zh_HK", e.B(T, y, S, "HKD", h, i, m, f, "zh_HK", "非數值", o, E, d, c, w, l), "zh_TW", e.B(T, y, S, "TWD", h, i, m, f, "zh_TW", "非數值", o, E, d, c, w, l), "zu", e.B(T, y, S, "ZAR", h, i, m, f, "zu", v, o, E, d, c, w, l)], u.N, u.aB);
|
|
18746
18746
|
}), 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", () => {
|
|
18747
18747
|
var i = u.Y;
|
|
18748
18748
|
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) } };
|
|
@@ -18831,16 +18831,16 @@ Arguments: [` + f + "]";
|
|
|
18831
18831
|
});
|
|
18832
18832
|
})();
|
|
18833
18833
|
})(br);
|
|
18834
|
-
var Lt = {},
|
|
18834
|
+
var Lt = {}, ze = {}, oa = Fe && Fe.__importDefault || function(k) {
|
|
18835
18835
|
return k && k.__esModule ? k : { default: k };
|
|
18836
18836
|
};
|
|
18837
|
-
Object.defineProperty(
|
|
18838
|
-
|
|
18839
|
-
|
|
18840
|
-
|
|
18841
|
-
|
|
18842
|
-
|
|
18843
|
-
|
|
18837
|
+
Object.defineProperty(ze, "__esModule", { value: !0 });
|
|
18838
|
+
ze.clone = ua;
|
|
18839
|
+
ze.randomString = la;
|
|
18840
|
+
ze.encode = ca;
|
|
18841
|
+
ze.decode = fa;
|
|
18842
|
+
ze.hexStringToBase64 = ha;
|
|
18843
|
+
ze.base64ToHexString = da;
|
|
18844
18844
|
const Ht = oa(br);
|
|
18845
18845
|
function ua(k) {
|
|
18846
18846
|
return JSON.parse(JSON.stringify(k));
|
|
@@ -18864,7 +18864,7 @@ function ha(k) {
|
|
|
18864
18864
|
function da(k) {
|
|
18865
18865
|
return Ht.default.Util.base64ToHexString(k);
|
|
18866
18866
|
}
|
|
18867
|
-
var pa =
|
|
18867
|
+
var pa = Fe && Fe.__createBinding || (Object.create ? function(k, p, b, j) {
|
|
18868
18868
|
j === void 0 && (j = b);
|
|
18869
18869
|
var x = Object.getOwnPropertyDescriptor(p, b);
|
|
18870
18870
|
(!x || ("get" in x ? !p.__esModule : x.writable || x.configurable)) && (x = { enumerable: !0, get: function() {
|
|
@@ -18872,11 +18872,11 @@ var pa = Oe && Oe.__createBinding || (Object.create ? function(k, p, b, j) {
|
|
|
18872
18872
|
} }), Object.defineProperty(k, j, x);
|
|
18873
18873
|
} : function(k, p, b, j) {
|
|
18874
18874
|
j === void 0 && (j = b), k[j] = p[b];
|
|
18875
|
-
}), $a =
|
|
18875
|
+
}), $a = Fe && Fe.__setModuleDefault || (Object.create ? function(k, p) {
|
|
18876
18876
|
Object.defineProperty(k, "default", { enumerable: !0, value: p });
|
|
18877
18877
|
} : function(k, p) {
|
|
18878
18878
|
k.default = p;
|
|
18879
|
-
}), ga =
|
|
18879
|
+
}), ga = Fe && Fe.__importStar || function(k) {
|
|
18880
18880
|
if (k && k.__esModule)
|
|
18881
18881
|
return k;
|
|
18882
18882
|
var p = {};
|
|
@@ -18887,22 +18887,22 @@ var pa = Oe && Oe.__createBinding || (Object.create ? function(k, p, b, j) {
|
|
|
18887
18887
|
};
|
|
18888
18888
|
Object.defineProperty(Lt, "__esModule", { value: !0 });
|
|
18889
18889
|
Lt.utils = void 0;
|
|
18890
|
-
Lt.utils = ga(
|
|
18891
|
-
var
|
|
18892
|
-
Bill:
|
|
18893
|
-
Config:
|
|
18894
|
-
Country:
|
|
18895
|
-
DineroFactory:
|
|
18896
|
-
Dinero:
|
|
18897
|
-
EInvoice:
|
|
18898
|
-
Menu:
|
|
18899
|
-
Permission:
|
|
18900
|
-
PermissionRule:
|
|
18901
|
-
Pos:
|
|
18902
|
-
Order:
|
|
18903
|
-
Tax:
|
|
18904
|
-
Calculator:
|
|
18905
|
-
FeatureFlag:
|
|
18890
|
+
Lt.utils = ga(ze);
|
|
18891
|
+
var we = br, ma = Jr, { utils: ba } = Lt, va = {
|
|
18892
|
+
Bill: we.Bill,
|
|
18893
|
+
Config: we.Config,
|
|
18894
|
+
Country: we.Country,
|
|
18895
|
+
DineroFactory: we.DineroFactory,
|
|
18896
|
+
Dinero: we.Dinero,
|
|
18897
|
+
EInvoice: we.EInvoice,
|
|
18898
|
+
Menu: we.Menu,
|
|
18899
|
+
Permission: we.Permission,
|
|
18900
|
+
PermissionRule: we.PermissionRule,
|
|
18901
|
+
Pos: we.Pos,
|
|
18902
|
+
Order: we.Order,
|
|
18903
|
+
Tax: we.Tax,
|
|
18904
|
+
Calculator: we.Calculator,
|
|
18905
|
+
FeatureFlag: we.FeatureFlag,
|
|
18906
18906
|
utils: ba,
|
|
18907
18907
|
entity: ma
|
|
18908
18908
|
};
|
|
@@ -18910,52 +18910,53 @@ const ya = /* @__PURE__ */ Vr({
|
|
|
18910
18910
|
__name: "NavigationTab",
|
|
18911
18911
|
emits: ["close-navigation"],
|
|
18912
18912
|
setup(k, { emit: p }) {
|
|
18913
|
-
const b = p, { t: j } = Ln(), x = zn(), _ = Qr(), P = Sr(() => _.restaurants.value.some(({ posVersion:
|
|
18914
|
-
const
|
|
18913
|
+
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(() => {
|
|
18914
|
+
const ie = [];
|
|
18915
18915
|
lr.filter((fe) => {
|
|
18916
|
-
var
|
|
18917
|
-
return fe.redirect || (
|
|
18916
|
+
var ve;
|
|
18917
|
+
return fe.redirect || (ve = fe.meta) != null && ve.hideNavigation ? !1 : !(fe.name === "$settings-template-builder" && !P.value);
|
|
18918
18918
|
}).map((fe) => {
|
|
18919
|
-
var
|
|
18920
|
-
|
|
18921
|
-
label: j((
|
|
18919
|
+
var ve;
|
|
18920
|
+
ie.push({
|
|
18921
|
+
label: j((ve = fe.meta) == null ? void 0 : ve.i18nKey),
|
|
18922
18922
|
value: fe.name,
|
|
18923
18923
|
action: () => {
|
|
18924
18924
|
fe.name === "$settings-e-invoice" ? x.push({ name: "SUBMISSION" }) : x.push({ name: fe.name }), b("close-navigation");
|
|
18925
18925
|
}
|
|
18926
18926
|
});
|
|
18927
18927
|
});
|
|
18928
|
-
const
|
|
18929
|
-
return
|
|
18928
|
+
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;
|
|
18929
|
+
return ie.splice(Re, 0, {
|
|
18930
18930
|
label: j("settings.deviceManagement"),
|
|
18931
18931
|
value: "$settings-device-management",
|
|
18932
|
-
children:
|
|
18933
|
-
var
|
|
18934
|
-
return fe.name === "$pos-order-setting" ?
|
|
18935
|
-
|
|
18936
|
-
|
|
18937
|
-
|
|
18938
|
-
x.push({ name: "Kiosk" }), b("close-navigation");
|
|
18939
|
-
}
|
|
18940
|
-
} : {
|
|
18941
|
-
label: j((ke = fe.meta) == null ? void 0 : ke.i18nKey),
|
|
18942
|
-
value: "$devices",
|
|
18943
|
-
action: () => {
|
|
18944
|
-
x.push({ name: "$devices" }), b("close-navigation");
|
|
18945
|
-
}
|
|
18946
|
-
};
|
|
18932
|
+
children: be.map((fe) => {
|
|
18933
|
+
var ve;
|
|
18934
|
+
return fe.name === "$pos-order-setting" ? H(j("order.kiosk"), "Kiosk") : fe.name === "$settings-template-builder" && P.value ? H(
|
|
18935
|
+
j("settings.templateBuilder.title"),
|
|
18936
|
+
"$settings-template-builder"
|
|
18937
|
+
) : H(j((ve = fe.meta) == null ? void 0 : ve.i18nKey), "$devices");
|
|
18947
18938
|
})
|
|
18948
|
-
}),
|
|
18949
|
-
})
|
|
18939
|
+
}), ie;
|
|
18940
|
+
});
|
|
18941
|
+
function H(ie, le) {
|
|
18942
|
+
return {
|
|
18943
|
+
label: ie,
|
|
18944
|
+
value: le,
|
|
18945
|
+
action: () => {
|
|
18946
|
+
x.push({ name: le }), b("close-navigation");
|
|
18947
|
+
}
|
|
18948
|
+
};
|
|
18949
|
+
}
|
|
18950
|
+
const Y = Pn();
|
|
18950
18951
|
return Dn(() => {
|
|
18951
|
-
var
|
|
18952
|
-
let
|
|
18953
|
-
|
|
18954
|
-
}), (
|
|
18955
|
-
const
|
|
18956
|
-
return Kr(), Wr(
|
|
18957
|
-
modelValue:
|
|
18958
|
-
"onUpdate:modelValue":
|
|
18952
|
+
var le;
|
|
18953
|
+
let ie = ((le = x.currentRoute.value) == null ? void 0 : le.name) ?? lr[0].name;
|
|
18954
|
+
Y.value !== ie && (Y.value = ie);
|
|
18955
|
+
}), (ie, le) => {
|
|
18956
|
+
const be = Bn("fm-collapsible-tabs");
|
|
18957
|
+
return Kr(), Wr(be, {
|
|
18958
|
+
modelValue: Y.value,
|
|
18959
|
+
"onUpdate:modelValue": le[0] || (le[0] = (je) => Y.value = je),
|
|
18959
18960
|
items: L.value,
|
|
18960
18961
|
class: "py-16 px-8"
|
|
18961
18962
|
}, null, 8, ["modelValue", "items"]);
|
|
@@ -19025,10 +19026,10 @@ function Rt(k, ...p) {
|
|
|
19025
19026
|
* See the License for the specific language governing permissions and
|
|
19026
19027
|
* limitations under the License.
|
|
19027
19028
|
*/
|
|
19028
|
-
function
|
|
19029
|
+
function _e(k, ...p) {
|
|
19029
19030
|
throw vr(k, ...p);
|
|
19030
19031
|
}
|
|
19031
|
-
function
|
|
19032
|
+
function Ae(k, ...p) {
|
|
19032
19033
|
return vr(k, ...p);
|
|
19033
19034
|
}
|
|
19034
19035
|
function Ta(k, p, b) {
|
|
@@ -19044,16 +19045,16 @@ function vr(k, ...p) {
|
|
|
19044
19045
|
}
|
|
19045
19046
|
return tn.create(k, ...p);
|
|
19046
19047
|
}
|
|
19047
|
-
function
|
|
19048
|
+
function se(k, p, ...b) {
|
|
19048
19049
|
if (!k)
|
|
19049
19050
|
throw vr(p, ...b);
|
|
19050
19051
|
}
|
|
19051
|
-
function
|
|
19052
|
+
function qe(k) {
|
|
19052
19053
|
const p = "INTERNAL ASSERTION FAILED: " + k;
|
|
19053
19054
|
throw Rt(p), new Error(p);
|
|
19054
19055
|
}
|
|
19055
|
-
function
|
|
19056
|
-
k ||
|
|
19056
|
+
function Me(k, p) {
|
|
19057
|
+
k || qe(p);
|
|
19057
19058
|
}
|
|
19058
19059
|
/**
|
|
19059
19060
|
* @license
|
|
@@ -19136,7 +19137,7 @@ function Ia() {
|
|
|
19136
19137
|
*/
|
|
19137
19138
|
class Tt {
|
|
19138
19139
|
constructor(p, b) {
|
|
19139
|
-
this.shortDelay = p, this.longDelay = b,
|
|
19140
|
+
this.shortDelay = p, this.longDelay = b, Me(b > p, "Short delay should be less than long delay!"), this.isMobile = Un() || Vn();
|
|
19140
19141
|
}
|
|
19141
19142
|
get() {
|
|
19142
19143
|
return Aa() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
|
@@ -19159,7 +19160,7 @@ class Tt {
|
|
|
19159
19160
|
* limitations under the License.
|
|
19160
19161
|
*/
|
|
19161
19162
|
function yr(k, p) {
|
|
19162
|
-
|
|
19163
|
+
Me(k.emulator, "Emulator should always be set here");
|
|
19163
19164
|
const { url: b } = k.emulator;
|
|
19164
19165
|
return p ? `${b}${p.startsWith("/") ? p.slice(1) : p}` : b;
|
|
19165
19166
|
}
|
|
@@ -19188,21 +19189,21 @@ class rn {
|
|
|
19188
19189
|
return this.fetchImpl;
|
|
19189
19190
|
if (typeof self < "u" && "fetch" in self)
|
|
19190
19191
|
return self.fetch;
|
|
19191
|
-
|
|
19192
|
+
qe("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
|
|
19192
19193
|
}
|
|
19193
19194
|
static headers() {
|
|
19194
19195
|
if (this.headersImpl)
|
|
19195
19196
|
return this.headersImpl;
|
|
19196
19197
|
if (typeof self < "u" && "Headers" in self)
|
|
19197
19198
|
return self.Headers;
|
|
19198
|
-
|
|
19199
|
+
qe("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
|
|
19199
19200
|
}
|
|
19200
19201
|
static response() {
|
|
19201
19202
|
if (this.responseImpl)
|
|
19202
19203
|
return this.responseImpl;
|
|
19203
19204
|
if (typeof self < "u" && "Response" in self)
|
|
19204
19205
|
return self.Response;
|
|
19205
|
-
|
|
19206
|
+
qe("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
|
|
19206
19207
|
}
|
|
19207
19208
|
}
|
|
19208
19209
|
/**
|
|
@@ -19347,27 +19348,27 @@ async function nn(k, p, b) {
|
|
|
19347
19348
|
if (_.ok && !("errorMessage" in P))
|
|
19348
19349
|
return P;
|
|
19349
19350
|
{
|
|
19350
|
-
const L = _.ok ? P.errorMessage : P.error.message, [H,
|
|
19351
|
+
const L = _.ok ? P.errorMessage : P.error.message, [H, Y] = L.split(" : ");
|
|
19351
19352
|
if (H === "FEDERATED_USER_ID_ALREADY_LINKED")
|
|
19352
19353
|
throw Mt(k, "credential-already-in-use", P);
|
|
19353
19354
|
if (H === "EMAIL_EXISTS")
|
|
19354
19355
|
throw Mt(k, "email-already-in-use", P);
|
|
19355
19356
|
if (H === "USER_DISABLED")
|
|
19356
19357
|
throw Mt(k, "user-disabled", P);
|
|
19357
|
-
const
|
|
19358
|
-
if (
|
|
19359
|
-
throw Ta(k,
|
|
19360
|
-
|
|
19358
|
+
const ie = j[H] || H.toLowerCase().replace(/[_\s]+/g, "-");
|
|
19359
|
+
if (Y)
|
|
19360
|
+
throw Ta(k, ie, Y);
|
|
19361
|
+
_e(k, ie);
|
|
19361
19362
|
}
|
|
19362
19363
|
} catch (x) {
|
|
19363
19364
|
if (x instanceof gr)
|
|
19364
19365
|
throw x;
|
|
19365
|
-
|
|
19366
|
+
_e(k, "network-request-failed", { message: String(x) });
|
|
19366
19367
|
}
|
|
19367
19368
|
}
|
|
19368
19369
|
async function an(k, p, b, j, x = {}) {
|
|
19369
19370
|
const _ = await St(k, p, b, j, x);
|
|
19370
|
-
return "mfaPendingCredential" in _ &&
|
|
19371
|
+
return "mfaPendingCredential" in _ && _e(k, "multi-factor-auth-required", {
|
|
19371
19372
|
_serverResponse: _
|
|
19372
19373
|
}), _;
|
|
19373
19374
|
}
|
|
@@ -19378,7 +19379,7 @@ function sn(k, p, b, j) {
|
|
|
19378
19379
|
class Ca {
|
|
19379
19380
|
constructor(p) {
|
|
19380
19381
|
this.auth = p, this.timer = null, this.promise = new Promise((b, j) => {
|
|
19381
|
-
this.timer = setTimeout(() => j(
|
|
19382
|
+
this.timer = setTimeout(() => j(Ae(
|
|
19382
19383
|
this.auth,
|
|
19383
19384
|
"network-request-failed"
|
|
19384
19385
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -19394,7 +19395,7 @@ function Mt(k, p, b) {
|
|
|
19394
19395
|
appName: k.name
|
|
19395
19396
|
};
|
|
19396
19397
|
b.email && (j.email = b.email), b.phoneNumber && (j.phoneNumber = b.phoneNumber);
|
|
19397
|
-
const x =
|
|
19398
|
+
const x = Ae(k, p, j);
|
|
19398
19399
|
return x.customData._tokenResponse = b, x;
|
|
19399
19400
|
}
|
|
19400
19401
|
/**
|
|
@@ -19445,8 +19446,8 @@ function vt(k) {
|
|
|
19445
19446
|
}
|
|
19446
19447
|
}
|
|
19447
19448
|
async function Ra(k, p = !1) {
|
|
19448
|
-
const b =
|
|
19449
|
-
|
|
19449
|
+
const b = pt(k), j = await b.getIdToken(p), x = kr(j);
|
|
19450
|
+
se(
|
|
19450
19451
|
x && x.exp && x.auth_time && x.iat,
|
|
19451
19452
|
b.auth,
|
|
19452
19453
|
"internal-error"
|
|
@@ -19479,15 +19480,15 @@ function kr(k) {
|
|
|
19479
19480
|
}
|
|
19480
19481
|
function Na(k) {
|
|
19481
19482
|
const p = kr(k);
|
|
19482
|
-
return
|
|
19483
|
+
return se(
|
|
19483
19484
|
p,
|
|
19484
19485
|
"internal-error"
|
|
19485
19486
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
19486
|
-
),
|
|
19487
|
+
), se(
|
|
19487
19488
|
typeof p.exp < "u",
|
|
19488
19489
|
"internal-error"
|
|
19489
19490
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
19490
|
-
),
|
|
19491
|
+
), se(
|
|
19491
19492
|
typeof p.iat < "u",
|
|
19492
19493
|
"internal-error"
|
|
19493
19494
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -19635,7 +19636,7 @@ class on {
|
|
|
19635
19636
|
async function Ot(k) {
|
|
19636
19637
|
var p;
|
|
19637
19638
|
const b = k.auth, j = await k.getIdToken(), x = await yt(k, Ma(b, { idToken: j }));
|
|
19638
|
-
|
|
19639
|
+
se(
|
|
19639
19640
|
x == null ? void 0 : x.users.length,
|
|
19640
19641
|
b,
|
|
19641
19642
|
"internal-error"
|
|
@@ -19643,7 +19644,7 @@ async function Ot(k) {
|
|
|
19643
19644
|
);
|
|
19644
19645
|
const _ = x.users[0];
|
|
19645
19646
|
k._notifyReloadListener(_);
|
|
19646
|
-
const P = !((p = _.providerUserInfo) === null || p === void 0) && p.length ? Fa(_.providerUserInfo) : [], L = Oa(k.providerData, P), H = k.isAnonymous,
|
|
19647
|
+
const P = !((p = _.providerUserInfo) === null || p === void 0) && p.length ? Fa(_.providerUserInfo) : [], L = Oa(k.providerData, P), H = k.isAnonymous, Y = !(k.email && _.passwordHash) && !(L != null && L.length), ie = H ? Y : !1, le = {
|
|
19647
19648
|
uid: _.localId,
|
|
19648
19649
|
displayName: _.displayName || null,
|
|
19649
19650
|
photoURL: _.photoUrl || null,
|
|
@@ -19653,12 +19654,12 @@ async function Ot(k) {
|
|
|
19653
19654
|
tenantId: _.tenantId || null,
|
|
19654
19655
|
providerData: L,
|
|
19655
19656
|
metadata: new on(_.createdAt, _.lastLoginAt),
|
|
19656
|
-
isAnonymous:
|
|
19657
|
+
isAnonymous: ie
|
|
19657
19658
|
};
|
|
19658
|
-
Object.assign(k,
|
|
19659
|
+
Object.assign(k, le);
|
|
19659
19660
|
}
|
|
19660
19661
|
async function Ba(k) {
|
|
19661
|
-
const p =
|
|
19662
|
+
const p = pt(k);
|
|
19662
19663
|
await Ot(p), await p.auth._persistUserIfCurrent(p), p.auth._notifyListenersIfCurrent(p);
|
|
19663
19664
|
}
|
|
19664
19665
|
function Oa(k, p) {
|
|
@@ -19738,15 +19739,15 @@ class wt {
|
|
|
19738
19739
|
return !this.expirationTime || Date.now() > this.expirationTime - 3e4;
|
|
19739
19740
|
}
|
|
19740
19741
|
updateFromServerResponse(p) {
|
|
19741
|
-
|
|
19742
|
+
se(
|
|
19742
19743
|
p.idToken,
|
|
19743
19744
|
"internal-error"
|
|
19744
19745
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
19745
|
-
),
|
|
19746
|
+
), se(
|
|
19746
19747
|
typeof p.idToken < "u",
|
|
19747
19748
|
"internal-error"
|
|
19748
19749
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
19749
|
-
),
|
|
19750
|
+
), se(
|
|
19750
19751
|
typeof p.refreshToken < "u",
|
|
19751
19752
|
"internal-error"
|
|
19752
19753
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -19755,7 +19756,7 @@ class wt {
|
|
|
19755
19756
|
this.updateTokensAndExpiration(p.idToken, p.refreshToken, b);
|
|
19756
19757
|
}
|
|
19757
19758
|
async getToken(p, b = !1) {
|
|
19758
|
-
return
|
|
19759
|
+
return se(
|
|
19759
19760
|
!this.accessToken || this.refreshToken,
|
|
19760
19761
|
p,
|
|
19761
19762
|
"user-token-expired"
|
|
@@ -19774,11 +19775,11 @@ class wt {
|
|
|
19774
19775
|
}
|
|
19775
19776
|
static fromJSON(p, b) {
|
|
19776
19777
|
const { refreshToken: j, accessToken: x, expirationTime: _ } = b, P = new wt();
|
|
19777
|
-
return j && (
|
|
19778
|
+
return j && (se(typeof j == "string", "internal-error", {
|
|
19778
19779
|
appName: p
|
|
19779
|
-
}), P.refreshToken = j), x && (
|
|
19780
|
+
}), P.refreshToken = j), x && (se(typeof x == "string", "internal-error", {
|
|
19780
19781
|
appName: p
|
|
19781
|
-
}), P.accessToken = x), _ && (
|
|
19782
|
+
}), P.accessToken = x), _ && (se(typeof _ == "number", "internal-error", {
|
|
19782
19783
|
appName: p
|
|
19783
19784
|
}), P.expirationTime = _), P;
|
|
19784
19785
|
}
|
|
@@ -19796,7 +19797,7 @@ class wt {
|
|
|
19796
19797
|
return Object.assign(new wt(), this.toJSON());
|
|
19797
19798
|
}
|
|
19798
19799
|
_performRefresh() {
|
|
19799
|
-
return
|
|
19800
|
+
return qe("not implemented");
|
|
19800
19801
|
}
|
|
19801
19802
|
}
|
|
19802
19803
|
/**
|
|
@@ -19815,17 +19816,17 @@ class wt {
|
|
|
19815
19816
|
* See the License for the specific language governing permissions and
|
|
19816
19817
|
* limitations under the License.
|
|
19817
19818
|
*/
|
|
19818
|
-
function
|
|
19819
|
-
|
|
19819
|
+
function Ne(k, p) {
|
|
19820
|
+
se(typeof k == "string" || typeof k > "u", "internal-error", { appName: p });
|
|
19820
19821
|
}
|
|
19821
|
-
class
|
|
19822
|
+
class ot {
|
|
19822
19823
|
constructor(p) {
|
|
19823
19824
|
var { uid: b, auth: j, stsTokenManager: x } = p, _ = mr(p, ["uid", "auth", "stsTokenManager"]);
|
|
19824
19825
|
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);
|
|
19825
19826
|
}
|
|
19826
19827
|
async getIdToken(p) {
|
|
19827
19828
|
const b = await yt(this, this.stsTokenManager.getToken(this.auth, p));
|
|
19828
|
-
return
|
|
19829
|
+
return se(
|
|
19829
19830
|
b,
|
|
19830
19831
|
this.auth,
|
|
19831
19832
|
"internal-error"
|
|
@@ -19839,7 +19840,7 @@ class st {
|
|
|
19839
19840
|
return Ba(this);
|
|
19840
19841
|
}
|
|
19841
19842
|
_assign(p) {
|
|
19842
|
-
this !== p && (
|
|
19843
|
+
this !== p && (se(
|
|
19843
19844
|
this.uid === p.uid,
|
|
19844
19845
|
this.auth,
|
|
19845
19846
|
"internal-error"
|
|
@@ -19847,11 +19848,11 @@ class st {
|
|
|
19847
19848
|
), 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));
|
|
19848
19849
|
}
|
|
19849
19850
|
_clone(p) {
|
|
19850
|
-
const b = new
|
|
19851
|
+
const b = new ot(Object.assign(Object.assign({}, this), { auth: p, stsTokenManager: this.stsTokenManager._clone() }));
|
|
19851
19852
|
return b.metadata._copy(this.metadata), b;
|
|
19852
19853
|
}
|
|
19853
19854
|
_onReload(p) {
|
|
19854
|
-
|
|
19855
|
+
se(
|
|
19855
19856
|
!this.reloadListener,
|
|
19856
19857
|
this.auth,
|
|
19857
19858
|
"internal-error"
|
|
@@ -19900,46 +19901,46 @@ class st {
|
|
|
19900
19901
|
return this.stsTokenManager.refreshToken || "";
|
|
19901
19902
|
}
|
|
19902
19903
|
static _fromJSON(p, b) {
|
|
19903
|
-
var j, x, _, P, L, H,
|
|
19904
|
-
const
|
|
19905
|
-
|
|
19904
|
+
var j, x, _, P, L, H, Y, ie;
|
|
19905
|
+
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;
|
|
19906
|
+
se(
|
|
19906
19907
|
$t && mt,
|
|
19907
19908
|
p,
|
|
19908
19909
|
"internal-error"
|
|
19909
19910
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
19910
19911
|
);
|
|
19911
19912
|
const Wt = wt.fromJSON(this.name, mt);
|
|
19912
|
-
|
|
19913
|
+
se(
|
|
19913
19914
|
typeof $t == "string",
|
|
19914
19915
|
p,
|
|
19915
19916
|
"internal-error"
|
|
19916
19917
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
19917
|
-
),
|
|
19918
|
+
), Ne(le, p.name), Ne(be, p.name), se(
|
|
19918
19919
|
typeof _t == "boolean",
|
|
19919
19920
|
p,
|
|
19920
19921
|
"internal-error"
|
|
19921
19922
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
19922
|
-
),
|
|
19923
|
+
), se(
|
|
19923
19924
|
typeof gt == "boolean",
|
|
19924
19925
|
p,
|
|
19925
19926
|
"internal-error"
|
|
19926
19927
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
19927
|
-
),
|
|
19928
|
-
const bt = new
|
|
19928
|
+
), Ne(je, p.name), Ne(Re, p.name), Ne(fe, p.name), Ne(ve, p.name), Ne(qt, p.name), Ne(Ct, p.name);
|
|
19929
|
+
const bt = new ot({
|
|
19929
19930
|
uid: $t,
|
|
19930
19931
|
auth: p,
|
|
19931
|
-
email:
|
|
19932
|
+
email: be,
|
|
19932
19933
|
emailVerified: _t,
|
|
19933
|
-
displayName:
|
|
19934
|
+
displayName: le,
|
|
19934
19935
|
isAnonymous: gt,
|
|
19935
|
-
photoURL:
|
|
19936
|
-
phoneNumber:
|
|
19937
|
-
tenantId:
|
|
19936
|
+
photoURL: Re,
|
|
19937
|
+
phoneNumber: je,
|
|
19938
|
+
tenantId: fe,
|
|
19938
19939
|
stsTokenManager: Wt,
|
|
19939
19940
|
createdAt: qt,
|
|
19940
19941
|
lastLoginAt: Ct
|
|
19941
19942
|
});
|
|
19942
|
-
return
|
|
19943
|
+
return ct && Array.isArray(ct) && (bt.providerData = ct.map((Qt) => Object.assign({}, Qt))), ve && (bt._redirectEventId = ve), bt;
|
|
19943
19944
|
}
|
|
19944
19945
|
/**
|
|
19945
19946
|
* Initialize a User from an idToken server response
|
|
@@ -19949,7 +19950,7 @@ class st {
|
|
|
19949
19950
|
static async _fromIdTokenResponse(p, b, j = !1) {
|
|
19950
19951
|
const x = new wt();
|
|
19951
19952
|
x.updateFromServerResponse(b);
|
|
19952
|
-
const _ = new
|
|
19953
|
+
const _ = new ot({
|
|
19953
19954
|
uid: b.localId,
|
|
19954
19955
|
auth: p,
|
|
19955
19956
|
stsTokenManager: x,
|
|
@@ -19975,10 +19976,10 @@ class st {
|
|
|
19975
19976
|
* limitations under the License.
|
|
19976
19977
|
*/
|
|
19977
19978
|
const qr = /* @__PURE__ */ new Map();
|
|
19978
|
-
function
|
|
19979
|
-
|
|
19979
|
+
function Ce(k) {
|
|
19980
|
+
Me(k instanceof Function, "Expected a class definition");
|
|
19980
19981
|
let p = qr.get(k);
|
|
19981
|
-
return p ? (
|
|
19982
|
+
return p ? (Me(p instanceof k, "Instance stored in cache mismatched with class"), p) : (p = new k(), qr.set(k, p), p);
|
|
19982
19983
|
}
|
|
19983
19984
|
/**
|
|
19984
19985
|
* @license
|
|
@@ -20039,7 +20040,7 @@ const Cr = un;
|
|
|
20039
20040
|
function Nt(k, p, b) {
|
|
20040
20041
|
return `firebase:${k}:${p}:${b}`;
|
|
20041
20042
|
}
|
|
20042
|
-
class
|
|
20043
|
+
class ht {
|
|
20043
20044
|
constructor(p, b, j) {
|
|
20044
20045
|
this.persistence = p, this.auth = b, this.userKey = j;
|
|
20045
20046
|
const { config: x, name: _ } = this.auth;
|
|
@@ -20050,7 +20051,7 @@ class ft {
|
|
|
20050
20051
|
}
|
|
20051
20052
|
async getCurrentUser() {
|
|
20052
20053
|
const p = await this.persistence._get(this.fullUserKey);
|
|
20053
|
-
return p ?
|
|
20054
|
+
return p ? ot._fromJSON(this.auth, p) : null;
|
|
20054
20055
|
}
|
|
20055
20056
|
removeCurrentUser() {
|
|
20056
20057
|
return this.persistence._remove(this.fullUserKey);
|
|
@@ -20070,32 +20071,32 @@ class ft {
|
|
|
20070
20071
|
}
|
|
20071
20072
|
static async create(p, b, j = "authUser") {
|
|
20072
20073
|
if (!b.length)
|
|
20073
|
-
return new
|
|
20074
|
-
const x = (await Promise.all(b.map(async (
|
|
20075
|
-
if (await
|
|
20076
|
-
return
|
|
20077
|
-
}))).filter((
|
|
20078
|
-
let _ = x[0] ||
|
|
20074
|
+
return new ht(Ce(Cr), p, j);
|
|
20075
|
+
const x = (await Promise.all(b.map(async (Y) => {
|
|
20076
|
+
if (await Y._isAvailable())
|
|
20077
|
+
return Y;
|
|
20078
|
+
}))).filter((Y) => Y);
|
|
20079
|
+
let _ = x[0] || Ce(Cr);
|
|
20079
20080
|
const P = Nt(j, p.config.apiKey, p.name);
|
|
20080
20081
|
let L = null;
|
|
20081
|
-
for (const
|
|
20082
|
+
for (const Y of b)
|
|
20082
20083
|
try {
|
|
20083
|
-
const
|
|
20084
|
-
if (
|
|
20085
|
-
const
|
|
20086
|
-
|
|
20084
|
+
const ie = await Y._get(P);
|
|
20085
|
+
if (ie) {
|
|
20086
|
+
const le = ot._fromJSON(p, ie);
|
|
20087
|
+
Y !== _ && (L = le), _ = Y;
|
|
20087
20088
|
break;
|
|
20088
20089
|
}
|
|
20089
20090
|
} catch {
|
|
20090
20091
|
}
|
|
20091
|
-
const H = x.filter((
|
|
20092
|
-
return !_._shouldAllowMigration || !H.length ? new
|
|
20093
|
-
if (
|
|
20092
|
+
const H = x.filter((Y) => Y._shouldAllowMigration);
|
|
20093
|
+
return !_._shouldAllowMigration || !H.length ? new ht(_, p, j) : (_ = H[0], L && await _._set(P, L.toJSON()), await Promise.all(b.map(async (Y) => {
|
|
20094
|
+
if (Y !== _)
|
|
20094
20095
|
try {
|
|
20095
|
-
await
|
|
20096
|
+
await Y._remove(P);
|
|
20096
20097
|
} catch {
|
|
20097
20098
|
}
|
|
20098
|
-
})), new
|
|
20099
|
+
})), new ht(_, p, j));
|
|
20099
20100
|
}
|
|
20100
20101
|
}
|
|
20101
20102
|
/**
|
|
@@ -20145,39 +20146,39 @@ function _r(k) {
|
|
|
20145
20146
|
}
|
|
20146
20147
|
return "Other";
|
|
20147
20148
|
}
|
|
20148
|
-
function ln(k =
|
|
20149
|
+
function ln(k = ke()) {
|
|
20149
20150
|
return /firefox\//i.test(k);
|
|
20150
20151
|
}
|
|
20151
|
-
function Er(k =
|
|
20152
|
+
function Er(k = ke()) {
|
|
20152
20153
|
const p = k.toLowerCase();
|
|
20153
20154
|
return p.includes("safari/") && !p.includes("chrome/") && !p.includes("crios/") && !p.includes("android");
|
|
20154
20155
|
}
|
|
20155
|
-
function cn(k =
|
|
20156
|
+
function cn(k = ke()) {
|
|
20156
20157
|
return /crios\//i.test(k);
|
|
20157
20158
|
}
|
|
20158
|
-
function fn(k =
|
|
20159
|
+
function fn(k = ke()) {
|
|
20159
20160
|
return /iemobile/i.test(k);
|
|
20160
20161
|
}
|
|
20161
|
-
function hn(k =
|
|
20162
|
+
function hn(k = ke()) {
|
|
20162
20163
|
return /android/i.test(k);
|
|
20163
20164
|
}
|
|
20164
|
-
function dn(k =
|
|
20165
|
+
function dn(k = ke()) {
|
|
20165
20166
|
return /blackberry/i.test(k);
|
|
20166
20167
|
}
|
|
20167
|
-
function pn(k =
|
|
20168
|
+
function pn(k = ke()) {
|
|
20168
20169
|
return /webos/i.test(k);
|
|
20169
20170
|
}
|
|
20170
|
-
function Ut(k =
|
|
20171
|
+
function Ut(k = ke()) {
|
|
20171
20172
|
return /iphone|ipad|ipod/i.test(k) || /macintosh/i.test(k) && /mobile/i.test(k);
|
|
20172
20173
|
}
|
|
20173
|
-
function Ga(k =
|
|
20174
|
+
function Ga(k = ke()) {
|
|
20174
20175
|
var p;
|
|
20175
20176
|
return Ut(k) && !!(!((p = window.navigator) === null || p === void 0) && p.standalone);
|
|
20176
20177
|
}
|
|
20177
20178
|
function La() {
|
|
20178
20179
|
return ea() && document.documentMode === 10;
|
|
20179
20180
|
}
|
|
20180
|
-
function $n(k =
|
|
20181
|
+
function $n(k = ke()) {
|
|
20181
20182
|
return Ut(k) || hn(k) || pn(k) || dn(k) || /windows phone/i.test(k) || fn(k);
|
|
20182
20183
|
}
|
|
20183
20184
|
function Ha() {
|
|
@@ -20207,10 +20208,10 @@ function gn(k, p = []) {
|
|
|
20207
20208
|
let b;
|
|
20208
20209
|
switch (k) {
|
|
20209
20210
|
case "Browser":
|
|
20210
|
-
b = _r(
|
|
20211
|
+
b = _r(ke());
|
|
20211
20212
|
break;
|
|
20212
20213
|
case "Worker":
|
|
20213
|
-
b = `${_r(
|
|
20214
|
+
b = `${_r(ke())}-${k}`;
|
|
20214
20215
|
break;
|
|
20215
20216
|
default:
|
|
20216
20217
|
b = k;
|
|
@@ -20255,7 +20256,7 @@ function vn(k) {
|
|
|
20255
20256
|
return new Promise((p, b) => {
|
|
20256
20257
|
const j = document.createElement("script");
|
|
20257
20258
|
j.setAttribute("src", k), j.onload = p, j.onerror = (x) => {
|
|
20258
|
-
const _ =
|
|
20259
|
+
const _ = Ae(
|
|
20259
20260
|
"internal-error"
|
|
20260
20261
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
20261
20262
|
);
|
|
@@ -20298,8 +20299,8 @@ class Ja {
|
|
|
20298
20299
|
if (H.recaptchaKey === void 0)
|
|
20299
20300
|
L(new Error("recaptcha Enterprise site key undefined"));
|
|
20300
20301
|
else {
|
|
20301
|
-
const
|
|
20302
|
-
return _.tenantId == null ? _._agentRecaptchaConfig =
|
|
20302
|
+
const Y = new bn(H);
|
|
20303
|
+
return _.tenantId == null ? _._agentRecaptchaConfig = Y : _._tenantRecaptchaConfigs[_.tenantId] = Y, P(Y.siteKey);
|
|
20303
20304
|
}
|
|
20304
20305
|
}).catch((H) => {
|
|
20305
20306
|
L(H);
|
|
@@ -20309,8 +20310,8 @@ class Ja {
|
|
|
20309
20310
|
function x(_, P, L) {
|
|
20310
20311
|
const H = window.grecaptcha;
|
|
20311
20312
|
Mr(H) ? H.enterprise.ready(() => {
|
|
20312
|
-
H.enterprise.execute(_, { action: p }).then((
|
|
20313
|
-
P(
|
|
20313
|
+
H.enterprise.execute(_, { action: p }).then((Y) => {
|
|
20314
|
+
P(Y);
|
|
20314
20315
|
}).catch(() => {
|
|
20315
20316
|
P(Qa);
|
|
20316
20317
|
});
|
|
@@ -20413,9 +20414,9 @@ class Xa {
|
|
|
20413
20414
|
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;
|
|
20414
20415
|
}
|
|
20415
20416
|
_initializeWithPersistence(p, b) {
|
|
20416
|
-
return b && (this._popupRedirectResolver =
|
|
20417
|
+
return b && (this._popupRedirectResolver = Ce(b)), this._initializationPromise = this.queue(async () => {
|
|
20417
20418
|
var j, x;
|
|
20418
|
-
if (!this._deleted && (this.persistenceManager = await
|
|
20419
|
+
if (!this._deleted && (this.persistenceManager = await ht.create(this, p), !this._deleted)) {
|
|
20419
20420
|
if (!((j = this._popupRedirectResolver) === null || j === void 0) && j._shouldInitProactively)
|
|
20420
20421
|
try {
|
|
20421
20422
|
await this._popupRedirectResolver._initialize(this);
|
|
@@ -20464,7 +20465,7 @@ class Xa {
|
|
|
20464
20465
|
}
|
|
20465
20466
|
return x ? this.reloadAndSetCurrentUserOrClear(x) : this.directlySetCurrentUser(null);
|
|
20466
20467
|
}
|
|
20467
|
-
return
|
|
20468
|
+
return se(
|
|
20468
20469
|
this._popupRedirectResolver,
|
|
20469
20470
|
this,
|
|
20470
20471
|
"argument-error"
|
|
@@ -20496,8 +20497,8 @@ class Xa {
|
|
|
20496
20497
|
this._deleted = !0;
|
|
20497
20498
|
}
|
|
20498
20499
|
async updateCurrentUser(p) {
|
|
20499
|
-
const b = p ?
|
|
20500
|
-
return b &&
|
|
20500
|
+
const b = p ? pt(p) : null;
|
|
20501
|
+
return b && se(
|
|
20501
20502
|
b.auth.config.apiKey === this.config.apiKey,
|
|
20502
20503
|
this,
|
|
20503
20504
|
"invalid-user-token"
|
|
@@ -20506,7 +20507,7 @@ class Xa {
|
|
|
20506
20507
|
}
|
|
20507
20508
|
async _updateCurrentUser(p, b = !1) {
|
|
20508
20509
|
if (!this._deleted)
|
|
20509
|
-
return p &&
|
|
20510
|
+
return p && se(
|
|
20510
20511
|
this.tenantId === p.tenantId,
|
|
20511
20512
|
this,
|
|
20512
20513
|
"tenant-id-mismatch"
|
|
@@ -20524,7 +20525,7 @@ class Xa {
|
|
|
20524
20525
|
}
|
|
20525
20526
|
setPersistence(p) {
|
|
20526
20527
|
return this.queue(async () => {
|
|
20527
|
-
await this.assertedPersistence.setPersistence(
|
|
20528
|
+
await this.assertedPersistence.setPersistence(Ce(p));
|
|
20528
20529
|
});
|
|
20529
20530
|
}
|
|
20530
20531
|
async initializeRecaptchaConfig() {
|
|
@@ -20568,15 +20569,15 @@ class Xa {
|
|
|
20568
20569
|
}
|
|
20569
20570
|
async getOrInitRedirectPersistenceManager(p) {
|
|
20570
20571
|
if (!this.redirectPersistenceManager) {
|
|
20571
|
-
const b = p &&
|
|
20572
|
-
|
|
20572
|
+
const b = p && Ce(p) || this._popupRedirectResolver;
|
|
20573
|
+
se(
|
|
20573
20574
|
b,
|
|
20574
20575
|
this,
|
|
20575
20576
|
"argument-error"
|
|
20576
20577
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
20577
|
-
), this.redirectPersistenceManager = await
|
|
20578
|
+
), this.redirectPersistenceManager = await ht.create(
|
|
20578
20579
|
this,
|
|
20579
|
-
[
|
|
20580
|
+
[Ce(b._redirectPersistence)],
|
|
20580
20581
|
"redirectUser"
|
|
20581
20582
|
/* KeyName.REDIRECT_USER */
|
|
20582
20583
|
), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
|
|
@@ -20622,7 +20623,7 @@ class Xa {
|
|
|
20622
20623
|
return () => {
|
|
20623
20624
|
};
|
|
20624
20625
|
const _ = typeof b == "function" ? b : b.next.bind(b), P = this._isInitialized ? Promise.resolve() : this._initializationPromise;
|
|
20625
|
-
return
|
|
20626
|
+
return se(
|
|
20626
20627
|
P,
|
|
20627
20628
|
this,
|
|
20628
20629
|
"internal-error"
|
|
@@ -20641,7 +20642,7 @@ class Xa {
|
|
|
20641
20642
|
return this.operations = this.operations.then(p, p), this.operations;
|
|
20642
20643
|
}
|
|
20643
20644
|
get assertedPersistence() {
|
|
20644
|
-
return
|
|
20645
|
+
return se(
|
|
20645
20646
|
this.persistenceManager,
|
|
20646
20647
|
this,
|
|
20647
20648
|
"internal-error"
|
|
@@ -20683,14 +20684,14 @@ class Xa {
|
|
|
20683
20684
|
}
|
|
20684
20685
|
}
|
|
20685
20686
|
function At(k) {
|
|
20686
|
-
return
|
|
20687
|
+
return pt(k);
|
|
20687
20688
|
}
|
|
20688
20689
|
class Rr {
|
|
20689
20690
|
constructor(p) {
|
|
20690
20691
|
this.auth = p, this.observer = null, this.addObserver = Wn((b) => this.observer = b);
|
|
20691
20692
|
}
|
|
20692
20693
|
get next() {
|
|
20693
|
-
return
|
|
20694
|
+
return se(
|
|
20694
20695
|
this.observer,
|
|
20695
20696
|
this.auth,
|
|
20696
20697
|
"internal-error"
|
|
@@ -20720,7 +20721,7 @@ function Za(k, p) {
|
|
|
20720
20721
|
const x = b.getImmediate(), _ = b.getOptions();
|
|
20721
20722
|
if (Yn(_, p ?? {}))
|
|
20722
20723
|
return x;
|
|
20723
|
-
|
|
20724
|
+
_e(
|
|
20724
20725
|
x,
|
|
20725
20726
|
"already-initialized"
|
|
20726
20727
|
/* AuthErrorCode.ALREADY_INITIALIZED */
|
|
@@ -20729,17 +20730,17 @@ function Za(k, p) {
|
|
|
20729
20730
|
return b.initialize({ options: p });
|
|
20730
20731
|
}
|
|
20731
20732
|
function ei(k, p) {
|
|
20732
|
-
const b = (p == null ? void 0 : p.persistence) || [], j = (Array.isArray(b) ? b : [b]).map(
|
|
20733
|
+
const b = (p == null ? void 0 : p.persistence) || [], j = (Array.isArray(b) ? b : [b]).map(Ce);
|
|
20733
20734
|
p != null && p.errorMap && k._updateErrorMap(p.errorMap), k._initializeWithPersistence(j, p == null ? void 0 : p.popupRedirectResolver);
|
|
20734
20735
|
}
|
|
20735
20736
|
function ti(k, p, b) {
|
|
20736
20737
|
const j = At(k);
|
|
20737
|
-
|
|
20738
|
+
se(
|
|
20738
20739
|
j._canInitEmulator,
|
|
20739
20740
|
j,
|
|
20740
20741
|
"emulator-config-failed"
|
|
20741
20742
|
/* AuthErrorCode.EMULATOR_CONFIG_FAILED */
|
|
20742
|
-
),
|
|
20743
|
+
), se(
|
|
20743
20744
|
/^https?:\/\//.test(p),
|
|
20744
20745
|
j,
|
|
20745
20746
|
"invalid-emulator-scheme"
|
|
@@ -20810,19 +20811,19 @@ class wn {
|
|
|
20810
20811
|
* @returns a JSON-serializable representation of this object.
|
|
20811
20812
|
*/
|
|
20812
20813
|
toJSON() {
|
|
20813
|
-
return
|
|
20814
|
+
return qe("not implemented");
|
|
20814
20815
|
}
|
|
20815
20816
|
/** @internal */
|
|
20816
20817
|
_getIdTokenResponse(p) {
|
|
20817
|
-
return
|
|
20818
|
+
return qe("not implemented");
|
|
20818
20819
|
}
|
|
20819
20820
|
/** @internal */
|
|
20820
20821
|
_linkToIdToken(p, b) {
|
|
20821
|
-
return
|
|
20822
|
+
return qe("not implemented");
|
|
20822
20823
|
}
|
|
20823
20824
|
/** @internal */
|
|
20824
20825
|
_getReauthenticationResolver(p) {
|
|
20825
|
-
return
|
|
20826
|
+
return qe("not implemented");
|
|
20826
20827
|
}
|
|
20827
20828
|
}
|
|
20828
20829
|
/**
|
|
@@ -20841,7 +20842,7 @@ class wn {
|
|
|
20841
20842
|
* See the License for the specific language governing permissions and
|
|
20842
20843
|
* limitations under the License.
|
|
20843
20844
|
*/
|
|
20844
|
-
async function
|
|
20845
|
+
async function dt(k, p) {
|
|
20845
20846
|
return an(k, "POST", "/v1/accounts:signInWithIdp", wr(k, p));
|
|
20846
20847
|
}
|
|
20847
20848
|
/**
|
|
@@ -20861,14 +20862,14 @@ async function ht(k, p) {
|
|
|
20861
20862
|
* limitations under the License.
|
|
20862
20863
|
*/
|
|
20863
20864
|
const ai = "http://localhost";
|
|
20864
|
-
class
|
|
20865
|
+
class ut extends wn {
|
|
20865
20866
|
constructor() {
|
|
20866
20867
|
super(...arguments), this.pendingToken = null;
|
|
20867
20868
|
}
|
|
20868
20869
|
/** @internal */
|
|
20869
20870
|
static _fromParams(p) {
|
|
20870
|
-
const b = new
|
|
20871
|
-
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) :
|
|
20871
|
+
const b = new ut(p.providerId, p.signInMethod);
|
|
20872
|
+
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(
|
|
20872
20873
|
"argument-error"
|
|
20873
20874
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
20874
20875
|
), b;
|
|
@@ -20898,23 +20899,23 @@ class ot extends wn {
|
|
|
20898
20899
|
const b = typeof p == "string" ? JSON.parse(p) : p, { providerId: j, signInMethod: x } = b, _ = mr(b, ["providerId", "signInMethod"]);
|
|
20899
20900
|
if (!j || !x)
|
|
20900
20901
|
return null;
|
|
20901
|
-
const P = new
|
|
20902
|
+
const P = new ut(j, x);
|
|
20902
20903
|
return P.idToken = _.idToken || void 0, P.accessToken = _.accessToken || void 0, P.secret = _.secret, P.nonce = _.nonce, P.pendingToken = _.pendingToken || null, P;
|
|
20903
20904
|
}
|
|
20904
20905
|
/** @internal */
|
|
20905
20906
|
_getIdTokenResponse(p) {
|
|
20906
20907
|
const b = this.buildRequest();
|
|
20907
|
-
return
|
|
20908
|
+
return dt(p, b);
|
|
20908
20909
|
}
|
|
20909
20910
|
/** @internal */
|
|
20910
20911
|
_linkToIdToken(p, b) {
|
|
20911
20912
|
const j = this.buildRequest();
|
|
20912
|
-
return j.idToken = b,
|
|
20913
|
+
return j.idToken = b, dt(p, j);
|
|
20913
20914
|
}
|
|
20914
20915
|
/** @internal */
|
|
20915
20916
|
_getReauthenticationResolver(p) {
|
|
20916
20917
|
const b = this.buildRequest();
|
|
20917
|
-
return b.autoCreate = !1,
|
|
20918
|
+
return b.autoCreate = !1, dt(p, b);
|
|
20918
20919
|
}
|
|
20919
20920
|
buildRequest() {
|
|
20920
20921
|
const p = {
|
|
@@ -21034,7 +21035,7 @@ class It extends kn {
|
|
|
21034
21035
|
* See the License for the specific language governing permissions and
|
|
21035
21036
|
* limitations under the License.
|
|
21036
21037
|
*/
|
|
21037
|
-
class
|
|
21038
|
+
class Pe extends It {
|
|
21038
21039
|
constructor() {
|
|
21039
21040
|
super(
|
|
21040
21041
|
"facebook.com"
|
|
@@ -21054,9 +21055,9 @@ class Ne extends It {
|
|
|
21054
21055
|
* @param accessToken - Facebook access token.
|
|
21055
21056
|
*/
|
|
21056
21057
|
static credential(p) {
|
|
21057
|
-
return
|
|
21058
|
-
providerId:
|
|
21059
|
-
signInMethod:
|
|
21058
|
+
return ut._fromParams({
|
|
21059
|
+
providerId: Pe.PROVIDER_ID,
|
|
21060
|
+
signInMethod: Pe.FACEBOOK_SIGN_IN_METHOD,
|
|
21060
21061
|
accessToken: p
|
|
21061
21062
|
});
|
|
21062
21063
|
}
|
|
@@ -21066,7 +21067,7 @@ class Ne extends It {
|
|
|
21066
21067
|
* @param userCredential - The user credential.
|
|
21067
21068
|
*/
|
|
21068
21069
|
static credentialFromResult(p) {
|
|
21069
|
-
return
|
|
21070
|
+
return Pe.credentialFromTaggedObject(p);
|
|
21070
21071
|
}
|
|
21071
21072
|
/**
|
|
21072
21073
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -21075,20 +21076,20 @@ class Ne extends It {
|
|
|
21075
21076
|
* @param userCredential - The user credential.
|
|
21076
21077
|
*/
|
|
21077
21078
|
static credentialFromError(p) {
|
|
21078
|
-
return
|
|
21079
|
+
return Pe.credentialFromTaggedObject(p.customData || {});
|
|
21079
21080
|
}
|
|
21080
21081
|
static credentialFromTaggedObject({ _tokenResponse: p }) {
|
|
21081
21082
|
if (!p || !("oauthAccessToken" in p) || !p.oauthAccessToken)
|
|
21082
21083
|
return null;
|
|
21083
21084
|
try {
|
|
21084
|
-
return
|
|
21085
|
+
return Pe.credential(p.oauthAccessToken);
|
|
21085
21086
|
} catch {
|
|
21086
21087
|
return null;
|
|
21087
21088
|
}
|
|
21088
21089
|
}
|
|
21089
21090
|
}
|
|
21090
|
-
|
|
21091
|
-
|
|
21091
|
+
Pe.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
|
|
21092
|
+
Pe.PROVIDER_ID = "facebook.com";
|
|
21092
21093
|
/**
|
|
21093
21094
|
* @license
|
|
21094
21095
|
* Copyright 2020 Google LLC
|
|
@@ -21105,7 +21106,7 @@ Ne.PROVIDER_ID = "facebook.com";
|
|
|
21105
21106
|
* See the License for the specific language governing permissions and
|
|
21106
21107
|
* limitations under the License.
|
|
21107
21108
|
*/
|
|
21108
|
-
class
|
|
21109
|
+
class De extends It {
|
|
21109
21110
|
constructor() {
|
|
21110
21111
|
super(
|
|
21111
21112
|
"google.com"
|
|
@@ -21126,9 +21127,9 @@ class Pe extends It {
|
|
|
21126
21127
|
* @param accessToken - Google access token.
|
|
21127
21128
|
*/
|
|
21128
21129
|
static credential(p, b) {
|
|
21129
|
-
return
|
|
21130
|
-
providerId:
|
|
21131
|
-
signInMethod:
|
|
21130
|
+
return ut._fromParams({
|
|
21131
|
+
providerId: De.PROVIDER_ID,
|
|
21132
|
+
signInMethod: De.GOOGLE_SIGN_IN_METHOD,
|
|
21132
21133
|
idToken: p,
|
|
21133
21134
|
accessToken: b
|
|
21134
21135
|
});
|
|
@@ -21139,7 +21140,7 @@ class Pe extends It {
|
|
|
21139
21140
|
* @param userCredential - The user credential.
|
|
21140
21141
|
*/
|
|
21141
21142
|
static credentialFromResult(p) {
|
|
21142
|
-
return
|
|
21143
|
+
return De.credentialFromTaggedObject(p);
|
|
21143
21144
|
}
|
|
21144
21145
|
/**
|
|
21145
21146
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -21148,7 +21149,7 @@ class Pe extends It {
|
|
|
21148
21149
|
* @param userCredential - The user credential.
|
|
21149
21150
|
*/
|
|
21150
21151
|
static credentialFromError(p) {
|
|
21151
|
-
return
|
|
21152
|
+
return De.credentialFromTaggedObject(p.customData || {});
|
|
21152
21153
|
}
|
|
21153
21154
|
static credentialFromTaggedObject({ _tokenResponse: p }) {
|
|
21154
21155
|
if (!p)
|
|
@@ -21157,14 +21158,14 @@ class Pe extends It {
|
|
|
21157
21158
|
if (!b && !j)
|
|
21158
21159
|
return null;
|
|
21159
21160
|
try {
|
|
21160
|
-
return
|
|
21161
|
+
return De.credential(b, j);
|
|
21161
21162
|
} catch {
|
|
21162
21163
|
return null;
|
|
21163
21164
|
}
|
|
21164
21165
|
}
|
|
21165
21166
|
}
|
|
21166
|
-
|
|
21167
|
-
|
|
21167
|
+
De.GOOGLE_SIGN_IN_METHOD = "google.com";
|
|
21168
|
+
De.PROVIDER_ID = "google.com";
|
|
21168
21169
|
/**
|
|
21169
21170
|
* @license
|
|
21170
21171
|
* Copyright 2020 Google LLC
|
|
@@ -21181,7 +21182,7 @@ Pe.PROVIDER_ID = "google.com";
|
|
|
21181
21182
|
* See the License for the specific language governing permissions and
|
|
21182
21183
|
* limitations under the License.
|
|
21183
21184
|
*/
|
|
21184
|
-
class
|
|
21185
|
+
class Be extends It {
|
|
21185
21186
|
constructor() {
|
|
21186
21187
|
super(
|
|
21187
21188
|
"github.com"
|
|
@@ -21194,9 +21195,9 @@ class De extends It {
|
|
|
21194
21195
|
* @param accessToken - Github access token.
|
|
21195
21196
|
*/
|
|
21196
21197
|
static credential(p) {
|
|
21197
|
-
return
|
|
21198
|
-
providerId:
|
|
21199
|
-
signInMethod:
|
|
21198
|
+
return ut._fromParams({
|
|
21199
|
+
providerId: Be.PROVIDER_ID,
|
|
21200
|
+
signInMethod: Be.GITHUB_SIGN_IN_METHOD,
|
|
21200
21201
|
accessToken: p
|
|
21201
21202
|
});
|
|
21202
21203
|
}
|
|
@@ -21206,7 +21207,7 @@ class De extends It {
|
|
|
21206
21207
|
* @param userCredential - The user credential.
|
|
21207
21208
|
*/
|
|
21208
21209
|
static credentialFromResult(p) {
|
|
21209
|
-
return
|
|
21210
|
+
return Be.credentialFromTaggedObject(p);
|
|
21210
21211
|
}
|
|
21211
21212
|
/**
|
|
21212
21213
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -21215,20 +21216,20 @@ class De extends It {
|
|
|
21215
21216
|
* @param userCredential - The user credential.
|
|
21216
21217
|
*/
|
|
21217
21218
|
static credentialFromError(p) {
|
|
21218
|
-
return
|
|
21219
|
+
return Be.credentialFromTaggedObject(p.customData || {});
|
|
21219
21220
|
}
|
|
21220
21221
|
static credentialFromTaggedObject({ _tokenResponse: p }) {
|
|
21221
21222
|
if (!p || !("oauthAccessToken" in p) || !p.oauthAccessToken)
|
|
21222
21223
|
return null;
|
|
21223
21224
|
try {
|
|
21224
|
-
return
|
|
21225
|
+
return Be.credential(p.oauthAccessToken);
|
|
21225
21226
|
} catch {
|
|
21226
21227
|
return null;
|
|
21227
21228
|
}
|
|
21228
21229
|
}
|
|
21229
21230
|
}
|
|
21230
|
-
|
|
21231
|
-
|
|
21231
|
+
Be.GITHUB_SIGN_IN_METHOD = "github.com";
|
|
21232
|
+
Be.PROVIDER_ID = "github.com";
|
|
21232
21233
|
/**
|
|
21233
21234
|
* @license
|
|
21234
21235
|
* Copyright 2020 Google LLC
|
|
@@ -21245,7 +21246,7 @@ De.PROVIDER_ID = "github.com";
|
|
|
21245
21246
|
* See the License for the specific language governing permissions and
|
|
21246
21247
|
* limitations under the License.
|
|
21247
21248
|
*/
|
|
21248
|
-
class
|
|
21249
|
+
class Oe extends It {
|
|
21249
21250
|
constructor() {
|
|
21250
21251
|
super(
|
|
21251
21252
|
"twitter.com"
|
|
@@ -21259,9 +21260,9 @@ class Be extends It {
|
|
|
21259
21260
|
* @param secret - Twitter secret.
|
|
21260
21261
|
*/
|
|
21261
21262
|
static credential(p, b) {
|
|
21262
|
-
return
|
|
21263
|
-
providerId:
|
|
21264
|
-
signInMethod:
|
|
21263
|
+
return ut._fromParams({
|
|
21264
|
+
providerId: Oe.PROVIDER_ID,
|
|
21265
|
+
signInMethod: Oe.TWITTER_SIGN_IN_METHOD,
|
|
21265
21266
|
oauthToken: p,
|
|
21266
21267
|
oauthTokenSecret: b
|
|
21267
21268
|
});
|
|
@@ -21272,7 +21273,7 @@ class Be extends It {
|
|
|
21272
21273
|
* @param userCredential - The user credential.
|
|
21273
21274
|
*/
|
|
21274
21275
|
static credentialFromResult(p) {
|
|
21275
|
-
return
|
|
21276
|
+
return Oe.credentialFromTaggedObject(p);
|
|
21276
21277
|
}
|
|
21277
21278
|
/**
|
|
21278
21279
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -21281,7 +21282,7 @@ class Be extends It {
|
|
|
21281
21282
|
* @param userCredential - The user credential.
|
|
21282
21283
|
*/
|
|
21283
21284
|
static credentialFromError(p) {
|
|
21284
|
-
return
|
|
21285
|
+
return Oe.credentialFromTaggedObject(p.customData || {});
|
|
21285
21286
|
}
|
|
21286
21287
|
static credentialFromTaggedObject({ _tokenResponse: p }) {
|
|
21287
21288
|
if (!p)
|
|
@@ -21290,14 +21291,14 @@ class Be extends It {
|
|
|
21290
21291
|
if (!b || !j)
|
|
21291
21292
|
return null;
|
|
21292
21293
|
try {
|
|
21293
|
-
return
|
|
21294
|
+
return Oe.credential(b, j);
|
|
21294
21295
|
} catch {
|
|
21295
21296
|
return null;
|
|
21296
21297
|
}
|
|
21297
21298
|
}
|
|
21298
21299
|
}
|
|
21299
|
-
|
|
21300
|
-
|
|
21300
|
+
Oe.TWITTER_SIGN_IN_METHOD = "twitter.com";
|
|
21301
|
+
Oe.PROVIDER_ID = "twitter.com";
|
|
21301
21302
|
/**
|
|
21302
21303
|
* @license
|
|
21303
21304
|
* Copyright 2020 Google LLC
|
|
@@ -21314,13 +21315,13 @@ Be.PROVIDER_ID = "twitter.com";
|
|
|
21314
21315
|
* See the License for the specific language governing permissions and
|
|
21315
21316
|
* limitations under the License.
|
|
21316
21317
|
*/
|
|
21317
|
-
class
|
|
21318
|
+
class lt {
|
|
21318
21319
|
constructor(p) {
|
|
21319
21320
|
this.user = p.user, this.providerId = p.providerId, this._tokenResponse = p._tokenResponse, this.operationType = p.operationType;
|
|
21320
21321
|
}
|
|
21321
21322
|
static async _fromIdTokenResponse(p, b, j, x = !1) {
|
|
21322
|
-
const _ = await
|
|
21323
|
-
return new
|
|
21323
|
+
const _ = await ot._fromIdTokenResponse(p, j, x), P = Pr(j);
|
|
21324
|
+
return new lt({
|
|
21324
21325
|
user: _,
|
|
21325
21326
|
providerId: P,
|
|
21326
21327
|
_tokenResponse: j,
|
|
@@ -21334,7 +21335,7 @@ class ut {
|
|
|
21334
21335
|
!0
|
|
21335
21336
|
);
|
|
21336
21337
|
const x = Pr(j);
|
|
21337
|
-
return new
|
|
21338
|
+
return new lt({
|
|
21338
21339
|
user: p,
|
|
21339
21340
|
providerId: x,
|
|
21340
21341
|
_tokenResponse: j,
|
|
@@ -21382,7 +21383,7 @@ function En(k, p, b, j) {
|
|
|
21382
21383
|
}
|
|
21383
21384
|
async function ii(k, p, b = !1) {
|
|
21384
21385
|
const j = await yt(k, p._linkToIdToken(k.auth, await k.getIdToken()), b);
|
|
21385
|
-
return
|
|
21386
|
+
return lt._forOperation(k, "link", j);
|
|
21386
21387
|
}
|
|
21387
21388
|
/**
|
|
21388
21389
|
* @license
|
|
@@ -21404,28 +21405,28 @@ async function si(k, p, b = !1) {
|
|
|
21404
21405
|
const { auth: j } = k, x = "reauthenticate";
|
|
21405
21406
|
try {
|
|
21406
21407
|
const _ = await yt(k, En(j, x, p, k), b);
|
|
21407
|
-
|
|
21408
|
+
se(
|
|
21408
21409
|
_.idToken,
|
|
21409
21410
|
j,
|
|
21410
21411
|
"internal-error"
|
|
21411
21412
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
21412
21413
|
);
|
|
21413
21414
|
const P = kr(_.idToken);
|
|
21414
|
-
|
|
21415
|
+
se(
|
|
21415
21416
|
P,
|
|
21416
21417
|
j,
|
|
21417
21418
|
"internal-error"
|
|
21418
21419
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
21419
21420
|
);
|
|
21420
21421
|
const { sub: L } = P;
|
|
21421
|
-
return
|
|
21422
|
+
return se(
|
|
21422
21423
|
k.uid === L,
|
|
21423
21424
|
j,
|
|
21424
21425
|
"user-mismatch"
|
|
21425
21426
|
/* AuthErrorCode.USER_MISMATCH */
|
|
21426
|
-
),
|
|
21427
|
+
), lt._forOperation(k, x, _);
|
|
21427
21428
|
} catch (_) {
|
|
21428
|
-
throw (_ == null ? void 0 : _.code) === "auth/user-not-found" &&
|
|
21429
|
+
throw (_ == null ? void 0 : _.code) === "auth/user-not-found" && _e(
|
|
21429
21430
|
j,
|
|
21430
21431
|
"user-mismatch"
|
|
21431
21432
|
/* AuthErrorCode.USER_MISMATCH */
|
|
@@ -21449,7 +21450,7 @@ async function si(k, p, b = !1) {
|
|
|
21449
21450
|
* limitations under the License.
|
|
21450
21451
|
*/
|
|
21451
21452
|
async function oi(k, p, b = !1) {
|
|
21452
|
-
const j = "signIn", x = await En(k, j, p), _ = await
|
|
21453
|
+
const j = "signIn", x = await En(k, j, p), _ = await lt._fromIdTokenResponse(k, j, x);
|
|
21453
21454
|
return b || await k._updateCurrentUser(_.user), _;
|
|
21454
21455
|
}
|
|
21455
21456
|
/**
|
|
@@ -21491,14 +21492,14 @@ async function li(k, p) {
|
|
|
21491
21492
|
const b = At(k), j = await ui(b, {
|
|
21492
21493
|
token: p,
|
|
21493
21494
|
returnSecureToken: !0
|
|
21494
|
-
}), x = await
|
|
21495
|
+
}), x = await lt._fromIdTokenResponse(b, "signIn", j);
|
|
21495
21496
|
return await b._updateCurrentUser(x.user), x;
|
|
21496
21497
|
}
|
|
21497
21498
|
function ci(k, p, b, j) {
|
|
21498
|
-
return
|
|
21499
|
+
return pt(k).onIdTokenChanged(p, b, j);
|
|
21499
21500
|
}
|
|
21500
21501
|
function fi(k, p, b) {
|
|
21501
|
-
return
|
|
21502
|
+
return pt(k).beforeAuthStateChanged(p, b);
|
|
21502
21503
|
}
|
|
21503
21504
|
const zt = "__sak";
|
|
21504
21505
|
/**
|
|
@@ -21559,7 +21560,7 @@ class jn {
|
|
|
21559
21560
|
* limitations under the License.
|
|
21560
21561
|
*/
|
|
21561
21562
|
function hi() {
|
|
21562
|
-
const k =
|
|
21563
|
+
const k = ke();
|
|
21563
21564
|
return Er(k) || Ut(k);
|
|
21564
21565
|
}
|
|
21565
21566
|
const di = 1e3, pi = 10;
|
|
@@ -21766,7 +21767,7 @@ class Vt {
|
|
|
21766
21767
|
eventId: j,
|
|
21767
21768
|
eventType: x
|
|
21768
21769
|
});
|
|
21769
|
-
const L = Array.from(P).map(async (
|
|
21770
|
+
const L = Array.from(P).map(async (Y) => Y(b.origin, _)), H = await gi(L);
|
|
21770
21771
|
b.ports[0].postMessage({
|
|
21771
21772
|
status: "done",
|
|
21772
21773
|
eventId: j,
|
|
@@ -21868,9 +21869,9 @@ class mi {
|
|
|
21868
21869
|
);
|
|
21869
21870
|
let _, P;
|
|
21870
21871
|
return new Promise((L, H) => {
|
|
21871
|
-
const
|
|
21872
|
+
const Y = jr("", 20);
|
|
21872
21873
|
x.port1.start();
|
|
21873
|
-
const
|
|
21874
|
+
const ie = setTimeout(() => {
|
|
21874
21875
|
H(new Error(
|
|
21875
21876
|
"unsupported_event"
|
|
21876
21877
|
/* _MessageError.UNSUPPORTED_EVENT */
|
|
@@ -21878,12 +21879,12 @@ class mi {
|
|
|
21878
21879
|
}, j);
|
|
21879
21880
|
P = {
|
|
21880
21881
|
messageChannel: x,
|
|
21881
|
-
onMessage(
|
|
21882
|
-
const
|
|
21883
|
-
if (
|
|
21884
|
-
switch (
|
|
21882
|
+
onMessage(le) {
|
|
21883
|
+
const be = le;
|
|
21884
|
+
if (be.data.eventId === Y)
|
|
21885
|
+
switch (be.data.status) {
|
|
21885
21886
|
case "ack":
|
|
21886
|
-
clearTimeout(
|
|
21887
|
+
clearTimeout(ie), _ = setTimeout(
|
|
21887
21888
|
() => {
|
|
21888
21889
|
H(new Error(
|
|
21889
21890
|
"timeout"
|
|
@@ -21895,10 +21896,10 @@ class mi {
|
|
|
21895
21896
|
);
|
|
21896
21897
|
break;
|
|
21897
21898
|
case "done":
|
|
21898
|
-
clearTimeout(_), L(
|
|
21899
|
+
clearTimeout(_), L(be.data.response);
|
|
21899
21900
|
break;
|
|
21900
21901
|
default:
|
|
21901
|
-
clearTimeout(
|
|
21902
|
+
clearTimeout(ie), clearTimeout(_), H(new Error(
|
|
21902
21903
|
"invalid_response"
|
|
21903
21904
|
/* _MessageError.INVALID_RESPONSE */
|
|
21904
21905
|
));
|
|
@@ -21907,7 +21908,7 @@ class mi {
|
|
|
21907
21908
|
}
|
|
21908
21909
|
}, this.handlers.add(P), x.port1.addEventListener("message", P.onMessage), this.target.postMessage({
|
|
21909
21910
|
eventType: p,
|
|
21910
|
-
eventId:
|
|
21911
|
+
eventId: Y,
|
|
21911
21912
|
data: b
|
|
21912
21913
|
}, [x.port2]);
|
|
21913
21914
|
}).finally(() => {
|
|
@@ -21931,11 +21932,11 @@ class mi {
|
|
|
21931
21932
|
* See the License for the specific language governing permissions and
|
|
21932
21933
|
* limitations under the License.
|
|
21933
21934
|
*/
|
|
21934
|
-
function
|
|
21935
|
+
function Ie() {
|
|
21935
21936
|
return window;
|
|
21936
21937
|
}
|
|
21937
21938
|
function bi(k) {
|
|
21938
|
-
|
|
21939
|
+
Ie().location.href = k;
|
|
21939
21940
|
}
|
|
21940
21941
|
/**
|
|
21941
21942
|
* @license
|
|
@@ -21954,7 +21955,7 @@ function bi(k) {
|
|
|
21954
21955
|
* limitations under the License.
|
|
21955
21956
|
*/
|
|
21956
21957
|
function In() {
|
|
21957
|
-
return typeof
|
|
21958
|
+
return typeof Ie().WorkerGlobalScope < "u" && typeof Ie().importScripts == "function";
|
|
21958
21959
|
}
|
|
21959
21960
|
async function vi() {
|
|
21960
21961
|
if (!(navigator != null && navigator.serviceWorker))
|
|
@@ -22212,7 +22213,7 @@ new Tt(3e4, 6e4);
|
|
|
22212
22213
|
* limitations under the License.
|
|
22213
22214
|
*/
|
|
22214
22215
|
function Ii(k, p) {
|
|
22215
|
-
return p ?
|
|
22216
|
+
return p ? Ce(p) : (se(
|
|
22216
22217
|
k._popupRedirectResolver,
|
|
22217
22218
|
k,
|
|
22218
22219
|
"argument-error"
|
|
@@ -22244,13 +22245,13 @@ class Tr extends wn {
|
|
|
22244
22245
|
), this.params = p;
|
|
22245
22246
|
}
|
|
22246
22247
|
_getIdTokenResponse(p) {
|
|
22247
|
-
return
|
|
22248
|
+
return dt(p, this._buildIdpRequest());
|
|
22248
22249
|
}
|
|
22249
22250
|
_linkToIdToken(p, b) {
|
|
22250
|
-
return
|
|
22251
|
+
return dt(p, this._buildIdpRequest(b));
|
|
22251
22252
|
}
|
|
22252
22253
|
_getReauthenticationResolver(p) {
|
|
22253
|
-
return
|
|
22254
|
+
return dt(p, this._buildIdpRequest());
|
|
22254
22255
|
}
|
|
22255
22256
|
_buildIdpRequest(p) {
|
|
22256
22257
|
const b = {
|
|
@@ -22270,7 +22271,7 @@ function xi(k) {
|
|
|
22270
22271
|
}
|
|
22271
22272
|
function qi(k) {
|
|
22272
22273
|
const { auth: p, user: b } = k;
|
|
22273
|
-
return
|
|
22274
|
+
return se(
|
|
22274
22275
|
b,
|
|
22275
22276
|
p,
|
|
22276
22277
|
"internal-error"
|
|
@@ -22279,7 +22280,7 @@ function qi(k) {
|
|
|
22279
22280
|
}
|
|
22280
22281
|
async function Ci(k) {
|
|
22281
22282
|
const { auth: p, user: b } = k;
|
|
22282
|
-
return
|
|
22283
|
+
return se(
|
|
22283
22284
|
b,
|
|
22284
22285
|
p,
|
|
22285
22286
|
"internal-error"
|
|
@@ -22333,8 +22334,8 @@ class _n {
|
|
|
22333
22334
|
};
|
|
22334
22335
|
try {
|
|
22335
22336
|
this.resolve(await this.getIdpTask(L)(H));
|
|
22336
|
-
} catch (
|
|
22337
|
-
this.reject(
|
|
22337
|
+
} catch (Y) {
|
|
22338
|
+
this.reject(Y);
|
|
22338
22339
|
}
|
|
22339
22340
|
}
|
|
22340
22341
|
onError(p) {
|
|
@@ -22352,7 +22353,7 @@ class _n {
|
|
|
22352
22353
|
case "reauthViaRedirect":
|
|
22353
22354
|
return qi;
|
|
22354
22355
|
default:
|
|
22355
|
-
|
|
22356
|
+
_e(
|
|
22356
22357
|
this.auth,
|
|
22357
22358
|
"internal-error"
|
|
22358
22359
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -22360,10 +22361,10 @@ class _n {
|
|
|
22360
22361
|
}
|
|
22361
22362
|
}
|
|
22362
22363
|
resolve(p) {
|
|
22363
|
-
|
|
22364
|
+
Me(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(p), this.unregisterAndCleanUp();
|
|
22364
22365
|
}
|
|
22365
22366
|
reject(p) {
|
|
22366
|
-
|
|
22367
|
+
Me(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(p), this.unregisterAndCleanUp();
|
|
22367
22368
|
}
|
|
22368
22369
|
unregisterAndCleanUp() {
|
|
22369
22370
|
this.eventManager && this.eventManager.unregisterConsumer(this), this.pendingPromise = null, this.cleanUp();
|
|
@@ -22386,13 +22387,13 @@ class _n {
|
|
|
22386
22387
|
* limitations under the License.
|
|
22387
22388
|
*/
|
|
22388
22389
|
const _i = new Tt(2e3, 1e4);
|
|
22389
|
-
class
|
|
22390
|
+
class ft extends _n {
|
|
22390
22391
|
constructor(p, b, j, x, _) {
|
|
22391
|
-
super(p, b, x, _), this.provider = j, this.authWindow = null, this.pollId = null,
|
|
22392
|
+
super(p, b, x, _), this.provider = j, this.authWindow = null, this.pollId = null, ft.currentPopupAction && ft.currentPopupAction.cancel(), ft.currentPopupAction = this;
|
|
22392
22393
|
}
|
|
22393
22394
|
async executeNotNull() {
|
|
22394
22395
|
const p = await this.execute();
|
|
22395
|
-
return
|
|
22396
|
+
return se(
|
|
22396
22397
|
p,
|
|
22397
22398
|
this.auth,
|
|
22398
22399
|
"internal-error"
|
|
@@ -22400,7 +22401,7 @@ class ct extends _n {
|
|
|
22400
22401
|
), p;
|
|
22401
22402
|
}
|
|
22402
22403
|
async onExecution() {
|
|
22403
|
-
|
|
22404
|
+
Me(this.filter.length === 1, "Popup operations only handle one event");
|
|
22404
22405
|
const p = jr();
|
|
22405
22406
|
this.authWindow = await this.resolver._openPopup(
|
|
22406
22407
|
this.auth,
|
|
@@ -22411,7 +22412,7 @@ class ct extends _n {
|
|
|
22411
22412
|
), this.authWindow.associatedEvent = p, this.resolver._originValidation(this.auth).catch((b) => {
|
|
22412
22413
|
this.reject(b);
|
|
22413
22414
|
}), this.resolver._isIframeWebStorageSupported(this.auth, (b) => {
|
|
22414
|
-
b || this.reject(
|
|
22415
|
+
b || this.reject(Ae(
|
|
22415
22416
|
this.auth,
|
|
22416
22417
|
"web-storage-unsupported"
|
|
22417
22418
|
/* AuthErrorCode.WEB_STORAGE_UNSUPPORTED */
|
|
@@ -22423,14 +22424,14 @@ class ct extends _n {
|
|
|
22423
22424
|
return ((p = this.authWindow) === null || p === void 0 ? void 0 : p.associatedEvent) || null;
|
|
22424
22425
|
}
|
|
22425
22426
|
cancel() {
|
|
22426
|
-
this.reject(
|
|
22427
|
+
this.reject(Ae(
|
|
22427
22428
|
this.auth,
|
|
22428
22429
|
"cancelled-popup-request"
|
|
22429
22430
|
/* AuthErrorCode.EXPIRED_POPUP_REQUEST */
|
|
22430
22431
|
));
|
|
22431
22432
|
}
|
|
22432
22433
|
cleanUp() {
|
|
22433
|
-
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null,
|
|
22434
|
+
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, ft.currentPopupAction = null;
|
|
22434
22435
|
}
|
|
22435
22436
|
pollUserCancellation() {
|
|
22436
22437
|
const p = () => {
|
|
@@ -22438,7 +22439,7 @@ class ct extends _n {
|
|
|
22438
22439
|
if (!((j = (b = this.authWindow) === null || b === void 0 ? void 0 : b.window) === null || j === void 0) && j.closed) {
|
|
22439
22440
|
this.pollId = window.setTimeout(
|
|
22440
22441
|
() => {
|
|
22441
|
-
this.pollId = null, this.reject(
|
|
22442
|
+
this.pollId = null, this.reject(Ae(
|
|
22442
22443
|
this.auth,
|
|
22443
22444
|
"popup-closed-by-user"
|
|
22444
22445
|
/* AuthErrorCode.POPUP_CLOSED_BY_USER */
|
|
@@ -22454,7 +22455,7 @@ class ct extends _n {
|
|
|
22454
22455
|
p();
|
|
22455
22456
|
}
|
|
22456
22457
|
}
|
|
22457
|
-
|
|
22458
|
+
ft.currentPopupAction = null;
|
|
22458
22459
|
/**
|
|
22459
22460
|
* @license
|
|
22460
22461
|
* Copyright 2020 Google LLC
|
|
@@ -22529,7 +22530,7 @@ function Pi(k, p) {
|
|
|
22529
22530
|
Pt.set(k._key(), p);
|
|
22530
22531
|
}
|
|
22531
22532
|
function Di(k) {
|
|
22532
|
-
return
|
|
22533
|
+
return Ce(k._redirectPersistence);
|
|
22533
22534
|
}
|
|
22534
22535
|
function Bi(k) {
|
|
22535
22536
|
return Nt(Mi, k.config.apiKey, k.name);
|
|
@@ -22577,7 +22578,7 @@ class zi {
|
|
|
22577
22578
|
var j;
|
|
22578
22579
|
if (p.error && !Mn(p)) {
|
|
22579
22580
|
const x = ((j = p.error.code) === null || j === void 0 ? void 0 : j.split("auth/")[1]) || "internal-error";
|
|
22580
|
-
b.onError(
|
|
22581
|
+
b.onError(Ae(this.auth, x));
|
|
22581
22582
|
} else
|
|
22582
22583
|
b.onAuthEvent(p);
|
|
22583
22584
|
}
|
|
@@ -22656,7 +22657,7 @@ async function Vi(k) {
|
|
|
22656
22657
|
return;
|
|
22657
22658
|
} catch {
|
|
22658
22659
|
}
|
|
22659
|
-
|
|
22660
|
+
_e(
|
|
22660
22661
|
k,
|
|
22661
22662
|
"unauthorized-domain"
|
|
22662
22663
|
/* AuthErrorCode.INVALID_ORIGIN */
|
|
@@ -22693,7 +22694,7 @@ function Ki(k) {
|
|
|
22693
22694
|
*/
|
|
22694
22695
|
const Wi = new Tt(3e4, 6e4);
|
|
22695
22696
|
function Fr() {
|
|
22696
|
-
const k =
|
|
22697
|
+
const k = Ie().___jsl;
|
|
22697
22698
|
if (k != null && k.H) {
|
|
22698
22699
|
for (const p of Object.keys(k.H))
|
|
22699
22700
|
if (k.H[p].r = k.H[p].r || [], k.H[p].L = k.H[p].L || [], k.H[p].r = [...k.H[p].L], k.CP)
|
|
@@ -22710,7 +22711,7 @@ function Qi(k) {
|
|
|
22710
22711
|
p(gapi.iframes.getContext());
|
|
22711
22712
|
},
|
|
22712
22713
|
ontimeout: () => {
|
|
22713
|
-
Fr(), b(
|
|
22714
|
+
Fr(), b(Ae(
|
|
22714
22715
|
k,
|
|
22715
22716
|
"network-request-failed"
|
|
22716
22717
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -22719,14 +22720,14 @@ function Qi(k) {
|
|
|
22719
22720
|
timeout: Wi.get()
|
|
22720
22721
|
});
|
|
22721
22722
|
}
|
|
22722
|
-
if (!((x = (j =
|
|
22723
|
+
if (!((x = (j = Ie().gapi) === null || j === void 0 ? void 0 : j.iframes) === null || x === void 0) && x.Iframe)
|
|
22723
22724
|
p(gapi.iframes.getContext());
|
|
22724
|
-
else if (!((_ =
|
|
22725
|
+
else if (!((_ = Ie().gapi) === null || _ === void 0) && _.load)
|
|
22725
22726
|
P();
|
|
22726
22727
|
else {
|
|
22727
22728
|
const L = Va("iframefcb");
|
|
22728
|
-
return
|
|
22729
|
-
gapi.load ? P() : b(
|
|
22729
|
+
return Ie()[L] = () => {
|
|
22730
|
+
gapi.load ? P() : b(Ae(
|
|
22730
22731
|
k,
|
|
22731
22732
|
"network-request-failed"
|
|
22732
22733
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -22774,7 +22775,7 @@ const Yi = new Tt(5e3, 15e3), Xi = "__/auth/iframe", Zi = "emulator/auth/iframe"
|
|
|
22774
22775
|
]);
|
|
22775
22776
|
function rs(k) {
|
|
22776
22777
|
const p = k.config;
|
|
22777
|
-
|
|
22778
|
+
se(
|
|
22778
22779
|
p.authDomain,
|
|
22779
22780
|
k,
|
|
22780
22781
|
"auth-domain-config-required"
|
|
@@ -22790,8 +22791,8 @@ function rs(k) {
|
|
|
22790
22791
|
return _.length && (j.fw = _.join(",")), `${b}?${jt(j).slice(1)}`;
|
|
22791
22792
|
}
|
|
22792
22793
|
async function ns(k) {
|
|
22793
|
-
const p = await Ji(k), b =
|
|
22794
|
-
return
|
|
22794
|
+
const p = await Ji(k), b = Ie().gapi;
|
|
22795
|
+
return se(
|
|
22795
22796
|
b,
|
|
22796
22797
|
k,
|
|
22797
22798
|
"internal-error"
|
|
@@ -22807,15 +22808,15 @@ async function ns(k) {
|
|
|
22807
22808
|
// Prevent iframe from closing on mouse out.
|
|
22808
22809
|
setHideOnLeave: !1
|
|
22809
22810
|
});
|
|
22810
|
-
const P =
|
|
22811
|
+
const P = Ae(
|
|
22811
22812
|
k,
|
|
22812
22813
|
"network-request-failed"
|
|
22813
22814
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
22814
|
-
), L =
|
|
22815
|
+
), L = Ie().setTimeout(() => {
|
|
22815
22816
|
_(P);
|
|
22816
22817
|
}, Yi.get());
|
|
22817
22818
|
function H() {
|
|
22818
|
-
|
|
22819
|
+
Ie().clearTimeout(L), x(j);
|
|
22819
22820
|
}
|
|
22820
22821
|
j.ping(H).then(H, () => {
|
|
22821
22822
|
_(P);
|
|
@@ -22864,23 +22865,23 @@ function ls(k, p, b, j = is, x = ss) {
|
|
|
22864
22865
|
height: x.toString(),
|
|
22865
22866
|
top: _,
|
|
22866
22867
|
left: P
|
|
22867
|
-
}),
|
|
22868
|
-
b && (L = cn(
|
|
22869
|
-
const
|
|
22870
|
-
if (Ga(
|
|
22868
|
+
}), Y = ke().toLowerCase();
|
|
22869
|
+
b && (L = cn(Y) ? os : b), ln(Y) && (p = p || us, H.scrollbars = "yes");
|
|
22870
|
+
const ie = Object.entries(H).reduce((be, [je, Re]) => `${be}${je}=${Re},`, "");
|
|
22871
|
+
if (Ga(Y) && L !== "_self")
|
|
22871
22872
|
return cs(p || "", L), new zr(null);
|
|
22872
|
-
const
|
|
22873
|
-
|
|
22874
|
-
|
|
22873
|
+
const le = window.open(p || "", L, ie);
|
|
22874
|
+
se(
|
|
22875
|
+
le,
|
|
22875
22876
|
k,
|
|
22876
22877
|
"popup-blocked"
|
|
22877
22878
|
/* AuthErrorCode.POPUP_BLOCKED */
|
|
22878
22879
|
);
|
|
22879
22880
|
try {
|
|
22880
|
-
|
|
22881
|
+
le.focus();
|
|
22881
22882
|
} catch {
|
|
22882
22883
|
}
|
|
22883
|
-
return new zr(
|
|
22884
|
+
return new zr(le);
|
|
22884
22885
|
}
|
|
22885
22886
|
function cs(k, p) {
|
|
22886
22887
|
const b = document.createElement("a");
|
|
@@ -22906,12 +22907,12 @@ function cs(k, p) {
|
|
|
22906
22907
|
*/
|
|
22907
22908
|
const fs = "__/auth/handler", hs = "emulator/auth/handler", ds = encodeURIComponent("fac");
|
|
22908
22909
|
async function Gr(k, p, b, j, x, _) {
|
|
22909
|
-
|
|
22910
|
+
se(
|
|
22910
22911
|
k.config.authDomain,
|
|
22911
22912
|
k,
|
|
22912
22913
|
"auth-domain-config-required"
|
|
22913
22914
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
|
22914
|
-
),
|
|
22915
|
+
), se(
|
|
22915
22916
|
k.config.apiKey,
|
|
22916
22917
|
k,
|
|
22917
22918
|
"invalid-api-key"
|
|
@@ -22927,19 +22928,19 @@ async function Gr(k, p, b, j, x, _) {
|
|
|
22927
22928
|
};
|
|
22928
22929
|
if (p instanceof kn) {
|
|
22929
22930
|
p.setDefaultLanguage(k.languageCode), P.providerId = p.providerId || "", ta(p.getCustomParameters()) || (P.customParameters = JSON.stringify(p.getCustomParameters()));
|
|
22930
|
-
for (const [
|
|
22931
|
-
P[
|
|
22931
|
+
for (const [ie, le] of Object.entries(_ || {}))
|
|
22932
|
+
P[ie] = le;
|
|
22932
22933
|
}
|
|
22933
22934
|
if (p instanceof It) {
|
|
22934
|
-
const
|
|
22935
|
-
|
|
22935
|
+
const ie = p.getScopes().filter((le) => le !== "");
|
|
22936
|
+
ie.length > 0 && (P.scopes = ie.join(","));
|
|
22936
22937
|
}
|
|
22937
22938
|
k.tenantId && (P.tid = k.tenantId);
|
|
22938
22939
|
const L = P;
|
|
22939
|
-
for (const
|
|
22940
|
-
L[
|
|
22941
|
-
const H = await k._getAppCheckToken(),
|
|
22942
|
-
return `${ps(k)}?${jt(L).slice(1)}${
|
|
22940
|
+
for (const ie of Object.keys(L))
|
|
22941
|
+
L[ie] === void 0 && delete L[ie];
|
|
22942
|
+
const H = await k._getAppCheckToken(), Y = H ? `#${ds}=${encodeURIComponent(H)}` : "";
|
|
22943
|
+
return `${ps(k)}?${jt(L).slice(1)}${Y}`;
|
|
22943
22944
|
}
|
|
22944
22945
|
function ps({ config: k }) {
|
|
22945
22946
|
return k.emulator ? yr(k, hs) : `https://${k.authDomain}/${fs}`;
|
|
@@ -22969,7 +22970,7 @@ class $s {
|
|
|
22969
22970
|
// to make sure errors are raised as promise rejections
|
|
22970
22971
|
async _openPopup(p, b, j, x) {
|
|
22971
22972
|
var _;
|
|
22972
|
-
|
|
22973
|
+
Me((_ = this.eventManagers[p._key()]) === null || _ === void 0 ? void 0 : _.manager, "_initialize() not called before _openPopup()");
|
|
22973
22974
|
const P = await Gr(p, b, j, dr(), x);
|
|
22974
22975
|
return ls(p, P, jr());
|
|
22975
22976
|
}
|
|
@@ -22983,7 +22984,7 @@ class $s {
|
|
|
22983
22984
|
const b = p._key();
|
|
22984
22985
|
if (this.eventManagers[b]) {
|
|
22985
22986
|
const { manager: x, promise: _ } = this.eventManagers[b];
|
|
22986
|
-
return x ? Promise.resolve(x) : (
|
|
22987
|
+
return x ? Promise.resolve(x) : (Me(_, "If manager is not set, promise should be"), _);
|
|
22987
22988
|
}
|
|
22988
22989
|
const j = this.initAndGetManager(p);
|
|
22989
22990
|
return this.eventManagers[b] = { promise: j }, j.catch(() => {
|
|
@@ -22992,7 +22993,7 @@ class $s {
|
|
|
22992
22993
|
}
|
|
22993
22994
|
async initAndGetManager(p) {
|
|
22994
22995
|
const b = await ns(p), j = new zi(p);
|
|
22995
|
-
return b.register("authEvent", (x) => (
|
|
22996
|
+
return b.register("authEvent", (x) => (se(
|
|
22996
22997
|
x == null ? void 0 : x.authEvent,
|
|
22997
22998
|
p,
|
|
22998
22999
|
"invalid-auth-event"
|
|
@@ -23006,7 +23007,7 @@ class $s {
|
|
|
23006
23007
|
this.iframes[p._key()].send(fr, { type: fr }, (x) => {
|
|
23007
23008
|
var _;
|
|
23008
23009
|
const P = (_ = x == null ? void 0 : x[0]) === null || _ === void 0 ? void 0 : _[fr];
|
|
23009
|
-
P !== void 0 && b(!!P),
|
|
23010
|
+
P !== void 0 && b(!!P), _e(
|
|
23010
23011
|
p,
|
|
23011
23012
|
"internal-error"
|
|
23012
23013
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -23064,7 +23065,7 @@ class ms {
|
|
|
23064
23065
|
b && (this.internalListeners.delete(p), b(), this.updateProactiveRefresh());
|
|
23065
23066
|
}
|
|
23066
23067
|
assertAuthConfigured() {
|
|
23067
|
-
|
|
23068
|
+
se(
|
|
23068
23069
|
this.auth._initializationPromise,
|
|
23069
23070
|
"dependent-sdk-initialized-before-auth"
|
|
23070
23071
|
/* AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH */
|
|
@@ -23109,7 +23110,7 @@ function vs(k) {
|
|
|
23109
23110
|
"auth",
|
|
23110
23111
|
(p, { options: b }) => {
|
|
23111
23112
|
const j = p.getProvider("app").getImmediate(), x = p.getProvider("heartbeat"), _ = p.getProvider("app-check-internal"), { apiKey: P, authDomain: L } = j.options;
|
|
23112
|
-
|
|
23113
|
+
se(P && !P.includes(":"), "invalid-api-key", { appName: j.name });
|
|
23113
23114
|
const H = {
|
|
23114
23115
|
apiKey: P,
|
|
23115
23116
|
authDomain: L,
|
|
@@ -23118,8 +23119,8 @@ function vs(k) {
|
|
|
23118
23119
|
tokenApiHost: "securetoken.googleapis.com",
|
|
23119
23120
|
apiScheme: "https",
|
|
23120
23121
|
sdkClientVersion: gn(k)
|
|
23121
|
-
},
|
|
23122
|
-
return ei(
|
|
23122
|
+
}, Y = new Xa(j, x, _, H);
|
|
23123
|
+
return ei(Y, b), Y;
|
|
23123
23124
|
},
|
|
23124
23125
|
"PUBLIC"
|
|
23125
23126
|
/* ComponentType.PUBLIC */
|