@feedmepos/mf-payment 1.5.2 → 1.5.3
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/{OnboardForm-DzTV1vJS.js → OnboardForm-BLxVABrA.js} +1 -1
- package/dist/{OnboardForm-CHFxpRBF.js → OnboardForm-DTQEt2Pz.js} +1 -1
- package/dist/{PayoutAccount-Dzkvj5cg.js → PayoutAccount-8yHMX1mn.js} +1 -1
- package/dist/{PayoutAccount-caCSOInc.js → PayoutAccount-DYCgVojx.js} +1 -1
- package/dist/{app-DEFXYEEk.js → app-fguDtz2A.js} +123 -132
- package/dist/app.js +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-Bnb9Tu_2.js → payout-account-B8iW-4-O.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRouter as Nn, createWebHistory as Ln, useRouter as Mn, useRoute as Un } from "vue-router";
|
|
2
2
|
import { computed as Nt, watch as q, defineComponent as Lt, ref as xn, resolveComponent as Mt, openBlock as Ut, createBlock as xt, h as Bn, onMounted as Fn, onBeforeMount as $n, unref as Hn } from "vue";
|
|
3
|
-
import { useCoreStore as
|
|
3
|
+
import { useCoreStore as Ve, useI18n as Vn } from "@feedmepos/mf-common";
|
|
4
4
|
import { defineStore as jn } from "pinia";
|
|
5
5
|
import { components as Wn } from "@feedmepos/ui-library";
|
|
6
6
|
const zn = {
|
|
@@ -383,7 +383,7 @@ const zn = {
|
|
|
383
383
|
sidebarDisplay: "Payout Accounts",
|
|
384
384
|
section: "payment-gateway"
|
|
385
385
|
},
|
|
386
|
-
component: () => import("./PayoutAccount-
|
|
386
|
+
component: () => import("./PayoutAccount-DYCgVojx.js")
|
|
387
387
|
},
|
|
388
388
|
{
|
|
389
389
|
path: "/admin/payout-accounts/:accountId",
|
|
@@ -410,7 +410,7 @@ const zn = {
|
|
|
410
410
|
meta: {
|
|
411
411
|
parent: "mf-payment-admin.onboard-submission"
|
|
412
412
|
},
|
|
413
|
-
component: () => import("./OnboardForm-
|
|
413
|
+
component: () => import("./OnboardForm-BLxVABrA.js")
|
|
414
414
|
},
|
|
415
415
|
{
|
|
416
416
|
path: "/admin/terminal/pos",
|
|
@@ -508,7 +508,7 @@ const zn = {
|
|
|
508
508
|
},
|
|
509
509
|
component: () => import("./SettlementTransactions-Ch9jeQU6.js")
|
|
510
510
|
}
|
|
511
|
-
],
|
|
511
|
+
], je = [
|
|
512
512
|
{
|
|
513
513
|
path: "",
|
|
514
514
|
redirect: { name: "mf-payment-payout-account" }
|
|
@@ -516,7 +516,7 @@ const zn = {
|
|
|
516
516
|
{
|
|
517
517
|
path: "/payout-account",
|
|
518
518
|
name: "mf-payment-payout-account",
|
|
519
|
-
component: () => import("./PayoutAccount-
|
|
519
|
+
component: () => import("./PayoutAccount-8yHMX1mn.js"),
|
|
520
520
|
meta: {
|
|
521
521
|
sidebarDisplay: "i18n:payment.routes.payout_account"
|
|
522
522
|
}
|
|
@@ -534,7 +534,7 @@ const zn = {
|
|
|
534
534
|
path: "/onboard-submission/:type/:submission?",
|
|
535
535
|
name: "mf-payment-onboard-submission-form",
|
|
536
536
|
props: !0,
|
|
537
|
-
component: () => import("./OnboardForm-
|
|
537
|
+
component: () => import("./OnboardForm-DTQEt2Pz.js"),
|
|
538
538
|
meta: {
|
|
539
539
|
parent: "mf-payment-onboard-submission"
|
|
540
540
|
}
|
|
@@ -1033,7 +1033,7 @@ function mr(n) {
|
|
|
1033
1033
|
return !1;
|
|
1034
1034
|
return !0;
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function ue(n, e) {
|
|
1037
1037
|
if (n === e)
|
|
1038
1038
|
return !0;
|
|
1039
1039
|
const t = Object.keys(n), r = Object.keys(e);
|
|
@@ -1042,7 +1042,7 @@ function de(n, e) {
|
|
|
1042
1042
|
return !1;
|
|
1043
1043
|
const s = n[i], a = e[i];
|
|
1044
1044
|
if (at(s) && at(a)) {
|
|
1045
|
-
if (!
|
|
1045
|
+
if (!ue(s, a))
|
|
1046
1046
|
return !1;
|
|
1047
1047
|
} else if (s !== a)
|
|
1048
1048
|
return !1;
|
|
@@ -1129,7 +1129,7 @@ class _r {
|
|
|
1129
1129
|
next: e,
|
|
1130
1130
|
error: t,
|
|
1131
1131
|
complete: r
|
|
1132
|
-
}, i.next === void 0 && (i.next =
|
|
1132
|
+
}, i.next === void 0 && (i.next = Se), i.error === void 0 && (i.error = Se), i.complete === void 0 && (i.complete = Se);
|
|
1133
1133
|
const s = this.unsubscribeOne.bind(this, this.observers.length);
|
|
1134
1134
|
return this.finalized && this.task.then(() => {
|
|
1135
1135
|
try {
|
|
@@ -1175,7 +1175,7 @@ function yr(n, e) {
|
|
|
1175
1175
|
return !0;
|
|
1176
1176
|
return !1;
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1178
|
+
function Se() {
|
|
1179
1179
|
}
|
|
1180
1180
|
/**
|
|
1181
1181
|
* @license
|
|
@@ -1582,7 +1582,7 @@ function Cr() {
|
|
|
1582
1582
|
IDBCursor.prototype.continuePrimaryKey
|
|
1583
1583
|
]);
|
|
1584
1584
|
}
|
|
1585
|
-
const zt = /* @__PURE__ */ new WeakMap(),
|
|
1585
|
+
const zt = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap();
|
|
1586
1586
|
function Pr(n) {
|
|
1587
1587
|
const e = new Promise((t, r) => {
|
|
1588
1588
|
const i = () => {
|
|
@@ -1600,7 +1600,7 @@ function Pr(n) {
|
|
|
1600
1600
|
}), ze.set(e, n), e;
|
|
1601
1601
|
}
|
|
1602
1602
|
function Or(n) {
|
|
1603
|
-
if (
|
|
1603
|
+
if (Le.has(n))
|
|
1604
1604
|
return;
|
|
1605
1605
|
const e = new Promise((t, r) => {
|
|
1606
1606
|
const i = () => {
|
|
@@ -1612,13 +1612,13 @@ function Or(n) {
|
|
|
1612
1612
|
};
|
|
1613
1613
|
n.addEventListener("complete", s), n.addEventListener("error", a), n.addEventListener("abort", a);
|
|
1614
1614
|
});
|
|
1615
|
-
|
|
1615
|
+
Le.set(n, e);
|
|
1616
1616
|
}
|
|
1617
|
-
let
|
|
1617
|
+
let Me = {
|
|
1618
1618
|
get(n, e, t) {
|
|
1619
1619
|
if (n instanceof IDBTransaction) {
|
|
1620
1620
|
if (e === "done")
|
|
1621
|
-
return
|
|
1621
|
+
return Le.get(n);
|
|
1622
1622
|
if (e === "objectStoreNames")
|
|
1623
1623
|
return n.objectStoreNames || Gt.get(n);
|
|
1624
1624
|
if (e === "store")
|
|
@@ -1634,30 +1634,30 @@ let Ue = {
|
|
|
1634
1634
|
}
|
|
1635
1635
|
};
|
|
1636
1636
|
function Dr(n) {
|
|
1637
|
-
|
|
1637
|
+
Me = n(Me);
|
|
1638
1638
|
}
|
|
1639
1639
|
function Nr(n) {
|
|
1640
1640
|
return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
|
|
1641
|
-
const r = n.call(
|
|
1641
|
+
const r = n.call(Ae(this), e, ...t);
|
|
1642
1642
|
return Gt.set(r, e.sort ? e.sort() : [e]), O(r);
|
|
1643
1643
|
} : Cr().includes(n) ? function(...e) {
|
|
1644
|
-
return n.apply(
|
|
1644
|
+
return n.apply(Ae(this), e), O(zt.get(this));
|
|
1645
1645
|
} : function(...e) {
|
|
1646
|
-
return O(n.apply(
|
|
1646
|
+
return O(n.apply(Ae(this), e));
|
|
1647
1647
|
};
|
|
1648
1648
|
}
|
|
1649
1649
|
function Lr(n) {
|
|
1650
|
-
return typeof n == "function" ? Nr(n) : (n instanceof IDBTransaction && Or(n), Ar(n, Rr()) ? new Proxy(n,
|
|
1650
|
+
return typeof n == "function" ? Nr(n) : (n instanceof IDBTransaction && Or(n), Ar(n, Rr()) ? new Proxy(n, Me) : n);
|
|
1651
1651
|
}
|
|
1652
1652
|
function O(n) {
|
|
1653
1653
|
if (n instanceof IDBRequest)
|
|
1654
1654
|
return Pr(n);
|
|
1655
|
-
if (
|
|
1656
|
-
return
|
|
1655
|
+
if (ke.has(n))
|
|
1656
|
+
return ke.get(n);
|
|
1657
1657
|
const e = Lr(n);
|
|
1658
|
-
return e !== n && (
|
|
1658
|
+
return e !== n && (ke.set(n, e), ze.set(e, n)), e;
|
|
1659
1659
|
}
|
|
1660
|
-
const
|
|
1660
|
+
const Ae = (n) => ze.get(n);
|
|
1661
1661
|
function Mr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
1662
1662
|
const a = indexedDB.open(n, e), c = O(a);
|
|
1663
1663
|
return r && a.addEventListener("upgradeneeded", (o) => {
|
|
@@ -1672,12 +1672,12 @@ function Mr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
|
1672
1672
|
}).catch(() => {
|
|
1673
1673
|
}), c;
|
|
1674
1674
|
}
|
|
1675
|
-
const Ur = ["get", "getKey", "getAll", "getAllKeys", "count"], xr = ["put", "add", "delete", "clear"],
|
|
1675
|
+
const Ur = ["get", "getKey", "getAll", "getAllKeys", "count"], xr = ["put", "add", "delete", "clear"], Re = /* @__PURE__ */ new Map();
|
|
1676
1676
|
function lt(n, e) {
|
|
1677
1677
|
if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
|
|
1678
1678
|
return;
|
|
1679
|
-
if (
|
|
1680
|
-
return
|
|
1679
|
+
if (Re.get(e))
|
|
1680
|
+
return Re.get(e);
|
|
1681
1681
|
const t = e.replace(/FromIndex$/, ""), r = e !== t, i = xr.includes(t);
|
|
1682
1682
|
if (
|
|
1683
1683
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
|
@@ -1692,7 +1692,7 @@ function lt(n, e) {
|
|
|
1692
1692
|
i && o.done
|
|
1693
1693
|
]))[0];
|
|
1694
1694
|
};
|
|
1695
|
-
return
|
|
1695
|
+
return Re.set(e, s), s;
|
|
1696
1696
|
}
|
|
1697
1697
|
Dr((n) => ({
|
|
1698
1698
|
...n,
|
|
@@ -1735,7 +1735,7 @@ function Fr(n) {
|
|
|
1735
1735
|
const e = n.getComponent();
|
|
1736
1736
|
return (e == null ? void 0 : e.type) === "VERSION";
|
|
1737
1737
|
}
|
|
1738
|
-
const
|
|
1738
|
+
const Ue = "@firebase/app", ut = "0.10.13";
|
|
1739
1739
|
/**
|
|
1740
1740
|
* @license
|
|
1741
1741
|
* Copyright 2019 Google LLC
|
|
@@ -1769,8 +1769,8 @@ const E = new Wt("@firebase/app"), $r = "@firebase/app-compat", Hr = "@firebase/
|
|
|
1769
1769
|
* See the License for the specific language governing permissions and
|
|
1770
1770
|
* limitations under the License.
|
|
1771
1771
|
*/
|
|
1772
|
-
const
|
|
1773
|
-
[
|
|
1772
|
+
const xe = "[DEFAULT]", fi = {
|
|
1773
|
+
[Ue]: "fire-core",
|
|
1774
1774
|
[$r]: "fire-core-compat",
|
|
1775
1775
|
[Vr]: "fire-analytics",
|
|
1776
1776
|
[Hr]: "fire-analytics-compat",
|
|
@@ -1815,7 +1815,7 @@ const Be = "[DEFAULT]", fi = {
|
|
|
1815
1815
|
* See the License for the specific language governing permissions and
|
|
1816
1816
|
* limitations under the License.
|
|
1817
1817
|
*/
|
|
1818
|
-
const
|
|
1818
|
+
const de = /* @__PURE__ */ new Map(), pi = /* @__PURE__ */ new Map(), Be = /* @__PURE__ */ new Map();
|
|
1819
1819
|
function dt(n, e) {
|
|
1820
1820
|
try {
|
|
1821
1821
|
n.container.addComponent(e);
|
|
@@ -1825,10 +1825,10 @@ function dt(n, e) {
|
|
|
1825
1825
|
}
|
|
1826
1826
|
function Y(n) {
|
|
1827
1827
|
const e = n.name;
|
|
1828
|
-
if (
|
|
1828
|
+
if (Be.has(e))
|
|
1829
1829
|
return E.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
1830
|
-
|
|
1831
|
-
for (const t of
|
|
1830
|
+
Be.set(e, n);
|
|
1831
|
+
for (const t of de.values())
|
|
1832
1832
|
dt(t, n);
|
|
1833
1833
|
for (const t of pi.values())
|
|
1834
1834
|
dt(t, n);
|
|
@@ -1951,7 +1951,7 @@ const te = hi;
|
|
|
1951
1951
|
function Kt(n, e = {}) {
|
|
1952
1952
|
let t = n;
|
|
1953
1953
|
typeof e != "object" && (e = { name: e });
|
|
1954
|
-
const r = Object.assign({ name:
|
|
1954
|
+
const r = Object.assign({ name: xe, automaticDataCollectionEnabled: !1 }, e), i = r.name;
|
|
1955
1955
|
if (typeof i != "string" || !i)
|
|
1956
1956
|
throw D.create("bad-app-name", {
|
|
1957
1957
|
appName: String(i)
|
|
@@ -1961,21 +1961,21 @@ function Kt(n, e = {}) {
|
|
|
1961
1961
|
"no-options"
|
|
1962
1962
|
/* AppError.NO_OPTIONS */
|
|
1963
1963
|
);
|
|
1964
|
-
const s =
|
|
1964
|
+
const s = de.get(i);
|
|
1965
1965
|
if (s) {
|
|
1966
|
-
if (
|
|
1966
|
+
if (ue(t, s.options) && ue(r, s.config))
|
|
1967
1967
|
return s;
|
|
1968
1968
|
throw D.create("duplicate-app", { appName: i });
|
|
1969
1969
|
}
|
|
1970
1970
|
const a = new wr(i);
|
|
1971
|
-
for (const o of
|
|
1971
|
+
for (const o of Be.values())
|
|
1972
1972
|
a.addComponent(o);
|
|
1973
1973
|
const c = new gi(t, r, a);
|
|
1974
|
-
return
|
|
1974
|
+
return de.set(i, c), c;
|
|
1975
1975
|
}
|
|
1976
|
-
function _i(n =
|
|
1977
|
-
const e =
|
|
1978
|
-
if (!e && n ===
|
|
1976
|
+
function _i(n = xe) {
|
|
1977
|
+
const e = de.get(n);
|
|
1978
|
+
if (!e && n === xe && Vt())
|
|
1979
1979
|
return Kt();
|
|
1980
1980
|
if (!e)
|
|
1981
1981
|
throw D.create("no-app", { appName: n });
|
|
@@ -2017,9 +2017,9 @@ function $(n, e, t) {
|
|
|
2017
2017
|
* limitations under the License.
|
|
2018
2018
|
*/
|
|
2019
2019
|
const yi = "firebase-heartbeat-database", vi = 1, X = "firebase-heartbeat-store";
|
|
2020
|
-
let
|
|
2020
|
+
let Ce = null;
|
|
2021
2021
|
function Jt() {
|
|
2022
|
-
return
|
|
2022
|
+
return Ce || (Ce = Mr(yi, vi, {
|
|
2023
2023
|
upgrade: (n, e) => {
|
|
2024
2024
|
switch (e) {
|
|
2025
2025
|
case 0:
|
|
@@ -2034,7 +2034,7 @@ function Jt() {
|
|
|
2034
2034
|
throw D.create("idb-open", {
|
|
2035
2035
|
originalErrorMessage: n.message
|
|
2036
2036
|
});
|
|
2037
|
-
})),
|
|
2037
|
+
})), Ce;
|
|
2038
2038
|
}
|
|
2039
2039
|
async function bi(n) {
|
|
2040
2040
|
try {
|
|
@@ -2235,7 +2235,7 @@ function ki(n) {
|
|
|
2235
2235
|
(e) => new Ei(e),
|
|
2236
2236
|
"PRIVATE"
|
|
2237
2237
|
/* ComponentType.PRIVATE */
|
|
2238
|
-
)), $(
|
|
2238
|
+
)), $(Ue, ut, n), $(Ue, ut, "esm2017"), $("fire-js", "");
|
|
2239
2239
|
}
|
|
2240
2240
|
ki("");
|
|
2241
2241
|
var Ai = "firebase", Ri = "10.14.1";
|
|
@@ -2295,12 +2295,12 @@ const Ci = Xt, Qt = new Z("auth", "Firebase", Xt());
|
|
|
2295
2295
|
* See the License for the specific language governing permissions and
|
|
2296
2296
|
* limitations under the License.
|
|
2297
2297
|
*/
|
|
2298
|
-
const
|
|
2298
|
+
const he = new Wt("@firebase/auth");
|
|
2299
2299
|
function Pi(n, ...e) {
|
|
2300
|
-
|
|
2300
|
+
he.logLevel <= f.WARN && he.warn(`Auth (${te}): ${n}`, ...e);
|
|
2301
2301
|
}
|
|
2302
2302
|
function ae(n, ...e) {
|
|
2303
|
-
|
|
2303
|
+
he.logLevel <= f.ERROR && he.error(`Auth (${te}): ${n}`, ...e);
|
|
2304
2304
|
}
|
|
2305
2305
|
/**
|
|
2306
2306
|
* @license
|
|
@@ -2367,7 +2367,7 @@ function S(n, e) {
|
|
|
2367
2367
|
* See the License for the specific language governing permissions and
|
|
2368
2368
|
* limitations under the License.
|
|
2369
2369
|
*/
|
|
2370
|
-
function
|
|
2370
|
+
function Fe() {
|
|
2371
2371
|
var n;
|
|
2372
2372
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
|
|
2373
2373
|
}
|
|
@@ -2621,7 +2621,7 @@ const Li = {
|
|
|
2621
2621
|
* limitations under the License.
|
|
2622
2622
|
*/
|
|
2623
2623
|
const Mi = new ne(3e4, 6e4);
|
|
2624
|
-
function
|
|
2624
|
+
function _e(n, e) {
|
|
2625
2625
|
return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
|
|
2626
2626
|
}
|
|
2627
2627
|
async function G(n, e, t, r, i = {}) {
|
|
@@ -2769,14 +2769,14 @@ async function Bi(n, e = !1) {
|
|
|
2769
2769
|
return {
|
|
2770
2770
|
claims: i,
|
|
2771
2771
|
token: r,
|
|
2772
|
-
authTime: J(
|
|
2773
|
-
issuedAtTime: J(
|
|
2774
|
-
expirationTime: J(
|
|
2772
|
+
authTime: J(Pe(i.auth_time)),
|
|
2773
|
+
issuedAtTime: J(Pe(i.iat)),
|
|
2774
|
+
expirationTime: J(Pe(i.exp)),
|
|
2775
2775
|
signInProvider: a || null,
|
|
2776
2776
|
signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
|
|
2777
2777
|
};
|
|
2778
2778
|
}
|
|
2779
|
-
function
|
|
2779
|
+
function Pe(n) {
|
|
2780
2780
|
return Number(n) * 1e3;
|
|
2781
2781
|
}
|
|
2782
2782
|
function Je(n) {
|
|
@@ -2912,7 +2912,7 @@ class $i {
|
|
|
2912
2912
|
* See the License for the specific language governing permissions and
|
|
2913
2913
|
* limitations under the License.
|
|
2914
2914
|
*/
|
|
2915
|
-
class
|
|
2915
|
+
class $e {
|
|
2916
2916
|
constructor(e, t) {
|
|
2917
2917
|
this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
|
|
2918
2918
|
}
|
|
@@ -2945,7 +2945,7 @@ class He {
|
|
|
2945
2945
|
* See the License for the specific language governing permissions and
|
|
2946
2946
|
* limitations under the License.
|
|
2947
2947
|
*/
|
|
2948
|
-
async function
|
|
2948
|
+
async function fe(n) {
|
|
2949
2949
|
var e;
|
|
2950
2950
|
const t = n.auth, r = await n.getIdToken(), i = await Q(n, sn(t, { idToken: r }));
|
|
2951
2951
|
h(
|
|
@@ -2965,14 +2965,14 @@ async function pe(n) {
|
|
|
2965
2965
|
phoneNumber: s.phoneNumber || null,
|
|
2966
2966
|
tenantId: s.tenantId || null,
|
|
2967
2967
|
providerData: c,
|
|
2968
|
-
metadata: new
|
|
2968
|
+
metadata: new $e(s.createdAt, s.lastLoginAt),
|
|
2969
2969
|
isAnonymous: u
|
|
2970
2970
|
};
|
|
2971
2971
|
Object.assign(n, d);
|
|
2972
2972
|
}
|
|
2973
2973
|
async function Hi(n) {
|
|
2974
2974
|
const e = z(n);
|
|
2975
|
-
await
|
|
2975
|
+
await fe(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
2976
2976
|
}
|
|
2977
2977
|
function Vi(n, e) {
|
|
2978
2978
|
return [...n.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
|
|
@@ -3028,7 +3028,7 @@ async function ji(n, e) {
|
|
|
3028
3028
|
};
|
|
3029
3029
|
}
|
|
3030
3030
|
async function Wi(n, e) {
|
|
3031
|
-
return G(n, "POST", "/v2/accounts:revokeToken",
|
|
3031
|
+
return G(n, "POST", "/v2/accounts:revokeToken", _e(n, e));
|
|
3032
3032
|
}
|
|
3033
3033
|
/**
|
|
3034
3034
|
* @license
|
|
@@ -3146,7 +3146,7 @@ function k(n, e) {
|
|
|
3146
3146
|
class I {
|
|
3147
3147
|
constructor(e) {
|
|
3148
3148
|
var { uid: t, auth: r, stsTokenManager: i } = e, s = Ge(e, ["uid", "auth", "stsTokenManager"]);
|
|
3149
|
-
this.providerId = "firebase", this.proactiveRefresh = new $i(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = r, this.stsTokenManager = i, this.accessToken = i.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new
|
|
3149
|
+
this.providerId = "firebase", this.proactiveRefresh = new $i(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = r, this.stsTokenManager = i, this.accessToken = i.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new $e(s.createdAt || void 0, s.lastLoginAt || void 0);
|
|
3150
3150
|
}
|
|
3151
3151
|
async getIdToken(e) {
|
|
3152
3152
|
const t = await Q(this, this.stsTokenManager.getToken(this.auth, e));
|
|
@@ -3194,7 +3194,7 @@ class I {
|
|
|
3194
3194
|
}
|
|
3195
3195
|
async _updateTokensIfNecessary(e, t = !1) {
|
|
3196
3196
|
let r = !1;
|
|
3197
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await
|
|
3197
|
+
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await fe(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
|
|
3198
3198
|
}
|
|
3199
3199
|
async delete() {
|
|
3200
3200
|
if (v(this.auth.app))
|
|
@@ -3228,16 +3228,16 @@ class I {
|
|
|
3228
3228
|
}
|
|
3229
3229
|
static _fromJSON(e, t) {
|
|
3230
3230
|
var r, i, s, a, c, o, l, u;
|
|
3231
|
-
const d = (r = t.displayName) !== null && r !== void 0 ? r : void 0, p = (i = t.email) !== null && i !== void 0 ? i : void 0, m = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, B = (a = t.photoURL) !== null && a !== void 0 ? a : void 0, et = (c = t.tenantId) !== null && c !== void 0 ? c : void 0,
|
|
3231
|
+
const d = (r = t.displayName) !== null && r !== void 0 ? r : void 0, p = (i = t.email) !== null && i !== void 0 ? i : void 0, m = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, B = (a = t.photoURL) !== null && a !== void 0 ? a : void 0, et = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, Ie = (o = t._redirectEventId) !== null && o !== void 0 ? o : void 0, tt = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, nt = (u = t.lastLoginAt) !== null && u !== void 0 ? u : void 0, { uid: we, emailVerified: rt, isAnonymous: it, providerData: Ee, stsTokenManager: st } = t;
|
|
3232
3232
|
h(
|
|
3233
|
-
|
|
3233
|
+
we && st,
|
|
3234
3234
|
e,
|
|
3235
3235
|
"internal-error"
|
|
3236
3236
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3237
3237
|
);
|
|
3238
3238
|
const On = H.fromJSON(this.name, st);
|
|
3239
3239
|
h(
|
|
3240
|
-
typeof
|
|
3240
|
+
typeof we == "string",
|
|
3241
3241
|
e,
|
|
3242
3242
|
"internal-error"
|
|
3243
3243
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -3251,9 +3251,9 @@ class I {
|
|
|
3251
3251
|
e,
|
|
3252
3252
|
"internal-error"
|
|
3253
3253
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3254
|
-
), k(m, e.name), k(B, e.name), k(et, e.name), k(
|
|
3255
|
-
const
|
|
3256
|
-
uid:
|
|
3254
|
+
), k(m, e.name), k(B, e.name), k(et, e.name), k(Ie, e.name), k(tt, e.name), k(nt, e.name);
|
|
3255
|
+
const Te = new I({
|
|
3256
|
+
uid: we,
|
|
3257
3257
|
auth: e,
|
|
3258
3258
|
email: p,
|
|
3259
3259
|
emailVerified: rt,
|
|
@@ -3266,7 +3266,7 @@ class I {
|
|
|
3266
3266
|
createdAt: tt,
|
|
3267
3267
|
lastLoginAt: nt
|
|
3268
3268
|
});
|
|
3269
|
-
return
|
|
3269
|
+
return Ee && Array.isArray(Ee) && (Te.providerData = Ee.map((Dn) => Object.assign({}, Dn))), Ie && (Te._redirectEventId = Ie), Te;
|
|
3270
3270
|
}
|
|
3271
3271
|
/**
|
|
3272
3272
|
* Initialize a User from an idToken server response
|
|
@@ -3282,7 +3282,7 @@ class I {
|
|
|
3282
3282
|
stsTokenManager: i,
|
|
3283
3283
|
isAnonymous: r
|
|
3284
3284
|
});
|
|
3285
|
-
return await
|
|
3285
|
+
return await fe(s), s;
|
|
3286
3286
|
}
|
|
3287
3287
|
/**
|
|
3288
3288
|
* Initialize a User from an idToken server response
|
|
@@ -3312,7 +3312,7 @@ class I {
|
|
|
3312
3312
|
phoneNumber: i.phoneNumber || null,
|
|
3313
3313
|
tenantId: i.tenantId || null,
|
|
3314
3314
|
providerData: s,
|
|
3315
|
-
metadata: new
|
|
3315
|
+
metadata: new $e(i.createdAt, i.lastLoginAt),
|
|
3316
3316
|
isAnonymous: !(i.email && i.passwordHash) && !(s != null && s.length)
|
|
3317
3317
|
};
|
|
3318
3318
|
return Object.assign(o, l), o;
|
|
@@ -3643,7 +3643,7 @@ class qi {
|
|
|
3643
3643
|
* limitations under the License.
|
|
3644
3644
|
*/
|
|
3645
3645
|
async function Ki(n, e = {}) {
|
|
3646
|
-
return G(n, "GET", "/v2/passwordPolicy",
|
|
3646
|
+
return G(n, "GET", "/v2/passwordPolicy", _e(n, e));
|
|
3647
3647
|
}
|
|
3648
3648
|
/**
|
|
3649
3649
|
* @license
|
|
@@ -3837,7 +3837,7 @@ class Xi {
|
|
|
3837
3837
|
}
|
|
3838
3838
|
async reloadAndSetCurrentUserOrClear(e) {
|
|
3839
3839
|
try {
|
|
3840
|
-
await
|
|
3840
|
+
await fe(e);
|
|
3841
3841
|
} catch (t) {
|
|
3842
3842
|
if ((t == null ? void 0 : t.code) !== "auth/network-request-failed")
|
|
3843
3843
|
return this.directlySetCurrentUser(null);
|
|
@@ -4082,7 +4082,7 @@ class Xi {
|
|
|
4082
4082
|
return t != null && t.error && Pi(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
|
|
4083
4083
|
}
|
|
4084
4084
|
}
|
|
4085
|
-
function
|
|
4085
|
+
function ye(n) {
|
|
4086
4086
|
return z(n);
|
|
4087
4087
|
}
|
|
4088
4088
|
class It {
|
|
@@ -4154,7 +4154,7 @@ function ns(n, e) {
|
|
|
4154
4154
|
const t = qt(n, "auth");
|
|
4155
4155
|
if (t.isInitialized()) {
|
|
4156
4156
|
const i = t.getImmediate(), s = t.getOptions();
|
|
4157
|
-
if (
|
|
4157
|
+
if (ue(s, e ?? {}))
|
|
4158
4158
|
return i;
|
|
4159
4159
|
T(
|
|
4160
4160
|
i,
|
|
@@ -4169,7 +4169,7 @@ function rs(n, e) {
|
|
|
4169
4169
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
|
4170
4170
|
}
|
|
4171
4171
|
function is(n, e, t) {
|
|
4172
|
-
const r =
|
|
4172
|
+
const r = ye(n);
|
|
4173
4173
|
h(
|
|
4174
4174
|
r._canInitEmulator,
|
|
4175
4175
|
r,
|
|
@@ -4278,7 +4278,7 @@ class yn {
|
|
|
4278
4278
|
* limitations under the License.
|
|
4279
4279
|
*/
|
|
4280
4280
|
async function j(n, e) {
|
|
4281
|
-
return nn(n, "POST", "/v1/accounts:signInWithIdp",
|
|
4281
|
+
return nn(n, "POST", "/v1/accounts:signInWithIdp", _e(n, e));
|
|
4282
4282
|
}
|
|
4283
4283
|
/**
|
|
4284
4284
|
* @license
|
|
@@ -4797,10 +4797,10 @@ function Et(n) {
|
|
|
4797
4797
|
* See the License for the specific language governing permissions and
|
|
4798
4798
|
* limitations under the License.
|
|
4799
4799
|
*/
|
|
4800
|
-
class
|
|
4800
|
+
class pe extends L {
|
|
4801
4801
|
constructor(e, t, r, i) {
|
|
4802
4802
|
var s;
|
|
4803
|
-
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this,
|
|
4803
|
+
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this, pe.prototype), this.customData = {
|
|
4804
4804
|
appName: e.name,
|
|
4805
4805
|
tenantId: (s = e.tenantId) !== null && s !== void 0 ? s : void 0,
|
|
4806
4806
|
_serverResponse: t.customData._serverResponse,
|
|
@@ -4808,12 +4808,12 @@ class me extends L {
|
|
|
4808
4808
|
};
|
|
4809
4809
|
}
|
|
4810
4810
|
static _fromErrorAndOperation(e, t, r, i) {
|
|
4811
|
-
return new
|
|
4811
|
+
return new pe(e, t, r, i);
|
|
4812
4812
|
}
|
|
4813
4813
|
}
|
|
4814
4814
|
function bn(n, e, t, r) {
|
|
4815
4815
|
return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
|
|
4816
|
-
throw s.code === "auth/multi-factor-auth-required" ?
|
|
4816
|
+
throw s.code === "auth/multi-factor-auth-required" ? pe._fromErrorAndOperation(n, s, e, r) : s;
|
|
4817
4817
|
});
|
|
4818
4818
|
}
|
|
4819
4819
|
async function cs(n, e, t = !1) {
|
|
@@ -4910,7 +4910,7 @@ async function us(n, e, t = !1) {
|
|
|
4910
4910
|
* limitations under the License.
|
|
4911
4911
|
*/
|
|
4912
4912
|
async function ds(n, e) {
|
|
4913
|
-
return nn(n, "POST", "/v1/accounts:signInWithCustomToken",
|
|
4913
|
+
return nn(n, "POST", "/v1/accounts:signInWithCustomToken", _e(n, e));
|
|
4914
4914
|
}
|
|
4915
4915
|
/**
|
|
4916
4916
|
* @license
|
|
@@ -4931,7 +4931,7 @@ async function ds(n, e) {
|
|
|
4931
4931
|
async function hs(n, e) {
|
|
4932
4932
|
if (v(n.app))
|
|
4933
4933
|
return Promise.reject(N(n));
|
|
4934
|
-
const t =
|
|
4934
|
+
const t = ye(n), r = await ds(t, {
|
|
4935
4935
|
token: e,
|
|
4936
4936
|
returnSecureToken: !0
|
|
4937
4937
|
}), i = await x._fromIdTokenResponse(t, "signIn", r);
|
|
@@ -4943,7 +4943,7 @@ function fs(n, e, t, r) {
|
|
|
4943
4943
|
function ps(n, e, t) {
|
|
4944
4944
|
return z(n).beforeAuthStateChanged(e, t);
|
|
4945
4945
|
}
|
|
4946
|
-
const
|
|
4946
|
+
const me = "__sak";
|
|
4947
4947
|
/**
|
|
4948
4948
|
* @license
|
|
4949
4949
|
* Copyright 2019 Google LLC
|
|
@@ -4966,7 +4966,7 @@ class In {
|
|
|
4966
4966
|
}
|
|
4967
4967
|
_isAvailable() {
|
|
4968
4968
|
try {
|
|
4969
|
-
return this.storage ? (this.storage.setItem(
|
|
4969
|
+
return this.storage ? (this.storage.setItem(me, "1"), this.storage.removeItem(me), Promise.resolve(!0)) : Promise.resolve(!1);
|
|
4970
4970
|
} catch {
|
|
4971
4971
|
return Promise.resolve(!1);
|
|
4972
4972
|
}
|
|
@@ -5160,7 +5160,7 @@ function ys(n) {
|
|
|
5160
5160
|
* See the License for the specific language governing permissions and
|
|
5161
5161
|
* limitations under the License.
|
|
5162
5162
|
*/
|
|
5163
|
-
class
|
|
5163
|
+
class ve {
|
|
5164
5164
|
constructor(e) {
|
|
5165
5165
|
this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
|
|
5166
5166
|
}
|
|
@@ -5174,7 +5174,7 @@ class be {
|
|
|
5174
5174
|
const t = this.receivers.find((i) => i.isListeningto(e));
|
|
5175
5175
|
if (t)
|
|
5176
5176
|
return t;
|
|
5177
|
-
const r = new
|
|
5177
|
+
const r = new ve(e);
|
|
5178
5178
|
return this.receivers.push(r), r;
|
|
5179
5179
|
}
|
|
5180
5180
|
isListeningto(e) {
|
|
@@ -5228,7 +5228,7 @@ class be {
|
|
|
5228
5228
|
this.handlersMap[e] && t && this.handlersMap[e].delete(t), (!t || this.handlersMap[e].size === 0) && delete this.handlersMap[e], Object.keys(this.handlersMap).length === 0 && this.eventTarget.removeEventListener("message", this.boundEventHandler);
|
|
5229
5229
|
}
|
|
5230
5230
|
}
|
|
5231
|
-
|
|
5231
|
+
ve.receivers = [];
|
|
5232
5232
|
/**
|
|
5233
5233
|
* @license
|
|
5234
5234
|
* Copyright 2020 Google LLC
|
|
@@ -5421,7 +5421,7 @@ function Es() {
|
|
|
5421
5421
|
* See the License for the specific language governing permissions and
|
|
5422
5422
|
* limitations under the License.
|
|
5423
5423
|
*/
|
|
5424
|
-
const kn = "firebaseLocalStorageDb", Ts = 1,
|
|
5424
|
+
const kn = "firebaseLocalStorageDb", Ts = 1, ge = "firebaseLocalStorage", An = "fbase_key";
|
|
5425
5425
|
class ie {
|
|
5426
5426
|
constructor(e) {
|
|
5427
5427
|
this.request = e;
|
|
@@ -5436,14 +5436,14 @@ class ie {
|
|
|
5436
5436
|
});
|
|
5437
5437
|
}
|
|
5438
5438
|
}
|
|
5439
|
-
function
|
|
5440
|
-
return n.transaction([
|
|
5439
|
+
function be(n, e) {
|
|
5440
|
+
return n.transaction([ge], e ? "readwrite" : "readonly").objectStore(ge);
|
|
5441
5441
|
}
|
|
5442
5442
|
function Ss() {
|
|
5443
5443
|
const n = indexedDB.deleteDatabase(kn);
|
|
5444
5444
|
return new ie(n).toPromise();
|
|
5445
5445
|
}
|
|
5446
|
-
function
|
|
5446
|
+
function He() {
|
|
5447
5447
|
const n = indexedDB.open(kn, Ts);
|
|
5448
5448
|
return new Promise((e, t) => {
|
|
5449
5449
|
n.addEventListener("error", () => {
|
|
@@ -5451,29 +5451,29 @@ function Ve() {
|
|
|
5451
5451
|
}), n.addEventListener("upgradeneeded", () => {
|
|
5452
5452
|
const r = n.result;
|
|
5453
5453
|
try {
|
|
5454
|
-
r.createObjectStore(
|
|
5454
|
+
r.createObjectStore(ge, { keyPath: An });
|
|
5455
5455
|
} catch (i) {
|
|
5456
5456
|
t(i);
|
|
5457
5457
|
}
|
|
5458
5458
|
}), n.addEventListener("success", async () => {
|
|
5459
5459
|
const r = n.result;
|
|
5460
|
-
r.objectStoreNames.contains(
|
|
5460
|
+
r.objectStoreNames.contains(ge) ? e(r) : (r.close(), await Ss(), e(await He()));
|
|
5461
5461
|
});
|
|
5462
5462
|
});
|
|
5463
5463
|
}
|
|
5464
5464
|
async function Tt(n, e, t) {
|
|
5465
|
-
const r =
|
|
5465
|
+
const r = be(n, !0).put({
|
|
5466
5466
|
[An]: e,
|
|
5467
5467
|
value: t
|
|
5468
5468
|
});
|
|
5469
5469
|
return new ie(r).toPromise();
|
|
5470
5470
|
}
|
|
5471
5471
|
async function ks(n, e) {
|
|
5472
|
-
const t =
|
|
5472
|
+
const t = be(n, !1).get(e), r = await new ie(t).toPromise();
|
|
5473
5473
|
return r === void 0 ? null : r.value;
|
|
5474
5474
|
}
|
|
5475
5475
|
function St(n, e) {
|
|
5476
|
-
const t =
|
|
5476
|
+
const t = be(n, !0).delete(e);
|
|
5477
5477
|
return new ie(t).toPromise();
|
|
5478
5478
|
}
|
|
5479
5479
|
const As = 800, Rs = 3;
|
|
@@ -5484,7 +5484,7 @@ class Rn {
|
|
|
5484
5484
|
});
|
|
5485
5485
|
}
|
|
5486
5486
|
async _openDb() {
|
|
5487
|
-
return this.db ? this.db : (this.db = await
|
|
5487
|
+
return this.db ? this.db : (this.db = await He(), this.db);
|
|
5488
5488
|
}
|
|
5489
5489
|
async _withRetries(e) {
|
|
5490
5490
|
let t = 0;
|
|
@@ -5509,7 +5509,7 @@ class Rn {
|
|
|
5509
5509
|
* As the worker we should listen to events from the main window.
|
|
5510
5510
|
*/
|
|
5511
5511
|
async initializeReceiver() {
|
|
5512
|
-
this.receiver =
|
|
5512
|
+
this.receiver = ve._getInstance(Es()), this.receiver._subscribe("keyChanged", async (e, t) => ({
|
|
5513
5513
|
keyProcessed: (await this._poll()).includes(t.key)
|
|
5514
5514
|
})), this.receiver._subscribe("ping", async (e, t) => [
|
|
5515
5515
|
"keyChanged"
|
|
@@ -5565,8 +5565,8 @@ class Rn {
|
|
|
5565
5565
|
try {
|
|
5566
5566
|
if (!indexedDB)
|
|
5567
5567
|
return !1;
|
|
5568
|
-
const e = await
|
|
5569
|
-
return await Tt(e,
|
|
5568
|
+
const e = await He();
|
|
5569
|
+
return await Tt(e, me, "1"), await St(e, me), !0;
|
|
5570
5570
|
} catch {
|
|
5571
5571
|
}
|
|
5572
5572
|
return !1;
|
|
@@ -5591,7 +5591,7 @@ class Rn {
|
|
|
5591
5591
|
}
|
|
5592
5592
|
async _poll() {
|
|
5593
5593
|
const e = await this._withRetries((i) => {
|
|
5594
|
-
const s =
|
|
5594
|
+
const s = be(i, !1).getAll();
|
|
5595
5595
|
return new ie(s).toPromise();
|
|
5596
5596
|
});
|
|
5597
5597
|
if (!e)
|
|
@@ -5971,7 +5971,7 @@ function $s(n) {
|
|
|
5971
5971
|
async function Hs(n, e, t = !1) {
|
|
5972
5972
|
if (v(n.app))
|
|
5973
5973
|
return Promise.reject(N(n));
|
|
5974
|
-
const r =
|
|
5974
|
+
const r = ye(n), i = Ps(r, e), a = await new Us(r, i, t).execute();
|
|
5975
5975
|
return a && !t && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
|
|
5976
5976
|
}
|
|
5977
5977
|
/**
|
|
@@ -6099,7 +6099,7 @@ async function Ks(n) {
|
|
|
6099
6099
|
);
|
|
6100
6100
|
}
|
|
6101
6101
|
function Js(n) {
|
|
6102
|
-
const e =
|
|
6102
|
+
const e = Fe(), { protocol: t, hostname: r } = new URL(e);
|
|
6103
6103
|
if (n.startsWith("chrome-extension://")) {
|
|
6104
6104
|
const a = new URL(n);
|
|
6105
6105
|
return a.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && a.hostname === r;
|
|
@@ -6396,7 +6396,7 @@ function ga({ config: n }) {
|
|
|
6396
6396
|
* See the License for the specific language governing permissions and
|
|
6397
6397
|
* limitations under the License.
|
|
6398
6398
|
*/
|
|
6399
|
-
const
|
|
6399
|
+
const Oe = "webStorageSupport";
|
|
6400
6400
|
class _a {
|
|
6401
6401
|
constructor() {
|
|
6402
6402
|
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Tn, this._completeRedirectFn = Hs, this._overrideRedirectResult = Bs;
|
|
@@ -6406,12 +6406,12 @@ class _a {
|
|
|
6406
6406
|
async _openPopup(e, t, r, i) {
|
|
6407
6407
|
var s;
|
|
6408
6408
|
S((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
|
6409
|
-
const a = await Ct(e, t, r,
|
|
6409
|
+
const a = await Ct(e, t, r, Fe(), i);
|
|
6410
6410
|
return da(e, a, Qe());
|
|
6411
6411
|
}
|
|
6412
6412
|
async _openRedirect(e, t, r, i) {
|
|
6413
6413
|
await this._originValidation(e);
|
|
6414
|
-
const s = await Ct(e, t, r,
|
|
6414
|
+
const s = await Ct(e, t, r, Fe(), i);
|
|
6415
6415
|
return bs(s), new Promise(() => {
|
|
6416
6416
|
});
|
|
6417
6417
|
}
|
|
@@ -6439,9 +6439,9 @@ class _a {
|
|
|
6439
6439
|
}), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = t, r;
|
|
6440
6440
|
}
|
|
6441
6441
|
_isIframeWebStorageSupported(e, t) {
|
|
6442
|
-
this.iframes[e._key()].send(
|
|
6442
|
+
this.iframes[e._key()].send(Oe, { type: Oe }, (i) => {
|
|
6443
6443
|
var s;
|
|
6444
|
-
const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[
|
|
6444
|
+
const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[Oe];
|
|
6445
6445
|
a !== void 0 && t(!!a), T(
|
|
6446
6446
|
e,
|
|
6447
6447
|
"internal-error"
|
|
@@ -6572,7 +6572,7 @@ function Ia(n) {
|
|
|
6572
6572
|
})), Y(new W(
|
|
6573
6573
|
"auth-internal",
|
|
6574
6574
|
(e) => {
|
|
6575
|
-
const t =
|
|
6575
|
+
const t = ye(e.getProvider(
|
|
6576
6576
|
"auth"
|
|
6577
6577
|
/* _ComponentName.AUTH */
|
|
6578
6578
|
).getImmediate());
|
|
@@ -6665,7 +6665,7 @@ Ia(
|
|
|
6665
6665
|
const Aa = Nn({
|
|
6666
6666
|
history: Ln(),
|
|
6667
6667
|
routes: [
|
|
6668
|
-
...
|
|
6668
|
+
...je,
|
|
6669
6669
|
...K,
|
|
6670
6670
|
{
|
|
6671
6671
|
path: "/forbidden",
|
|
@@ -6674,7 +6674,7 @@ const Aa = Nn({
|
|
|
6674
6674
|
}
|
|
6675
6675
|
]
|
|
6676
6676
|
});
|
|
6677
|
-
let
|
|
6677
|
+
let De, Ne;
|
|
6678
6678
|
Aa.beforeEach(async (n) => {
|
|
6679
6679
|
const {
|
|
6680
6680
|
sessionUser: e,
|
|
@@ -6682,10 +6682,10 @@ Aa.beforeEach(async (n) => {
|
|
|
6682
6682
|
currentBusiness: r,
|
|
6683
6683
|
readRestaurants: i,
|
|
6684
6684
|
changeRestaurant: s
|
|
6685
|
-
} =
|
|
6685
|
+
} = Ve();
|
|
6686
6686
|
if (n.name && n.name.startsWith("mf-payment-admin")) {
|
|
6687
6687
|
if (!e.value) {
|
|
6688
|
-
|
|
6688
|
+
De || (De = new Promise((c) => {
|
|
6689
6689
|
const o = q(e, (l) => {
|
|
6690
6690
|
var u, d;
|
|
6691
6691
|
l && (o(), c(
|
|
@@ -6693,12 +6693,12 @@ Aa.beforeEach(async (n) => {
|
|
|
6693
6693
|
));
|
|
6694
6694
|
});
|
|
6695
6695
|
}));
|
|
6696
|
-
const a = await
|
|
6696
|
+
const a = await De;
|
|
6697
6697
|
return a || { name: "mf-payment-forbidden" };
|
|
6698
6698
|
}
|
|
6699
6699
|
return !0;
|
|
6700
6700
|
}
|
|
6701
|
-
return !r.value || !t.value ? (
|
|
6701
|
+
return !r.value || !t.value ? (Ne || (Ne = Promise.all([
|
|
6702
6702
|
new Promise(async (a) => {
|
|
6703
6703
|
const c = q(r, (o) => {
|
|
6704
6704
|
o && (c(), a(!0));
|
|
@@ -6710,17 +6710,17 @@ Aa.beforeEach(async (n) => {
|
|
|
6710
6710
|
}), o = await i();
|
|
6711
6711
|
await s(o == null ? void 0 : o.at(0));
|
|
6712
6712
|
})
|
|
6713
|
-
]).then((a) => !0)),
|
|
6713
|
+
]).then((a) => !0)), Ne) : !0;
|
|
6714
6714
|
});
|
|
6715
6715
|
const Ra = /* @__PURE__ */ Lt({
|
|
6716
6716
|
__name: "AppSidebar",
|
|
6717
6717
|
setup(n) {
|
|
6718
|
-
const e =
|
|
6718
|
+
const e = Ve(), t = Mn(), { t: r } = Vn(), i = xn(t.currentRoute.value.name);
|
|
6719
6719
|
q(t.currentRoute, () => {
|
|
6720
6720
|
let l = t.currentRoute.value.name;
|
|
6721
6721
|
t.currentRoute.value.meta.parent && (l = t.currentRoute.value.meta.parent), i.value = l;
|
|
6722
6722
|
});
|
|
6723
|
-
const s =
|
|
6723
|
+
const s = je.map((l) => {
|
|
6724
6724
|
var p, m;
|
|
6725
6725
|
if (!((p = l.meta) != null && p.sidebarDisplay) || l.meta.region && !((m = l.meta.region) != null && m[e.currentCountry.value]) || l.meta.section)
|
|
6726
6726
|
return;
|
|
@@ -6763,16 +6763,7 @@ const Ra = /* @__PURE__ */ Lt({
|
|
|
6763
6763
|
}).filter((l) => !!l), o = Nt(() => {
|
|
6764
6764
|
var u, d;
|
|
6765
6765
|
const l = [...s];
|
|
6766
|
-
return l.push({
|
|
6767
|
-
label: "",
|
|
6768
|
-
value: "divider",
|
|
6769
|
-
disabled: !0
|
|
6770
|
-
}), l.push({
|
|
6771
|
-
label: r("financing.title"),
|
|
6772
|
-
icon: "credit_score",
|
|
6773
|
-
value: "divider",
|
|
6774
|
-
disabled: !0
|
|
6775
|
-
}), l.push(...a(ue, "financing")), ((u = e.sessionUser.value) != null && u.role.isStaff || (d = e.sessionUser.value) != null && d.role.isAdmin) && (l.push({
|
|
6766
|
+
return ((u = e.sessionUser.value) != null && u.role.isStaff || (d = e.sessionUser.value) != null && d.role.isAdmin) && (l.push({
|
|
6776
6767
|
label: "",
|
|
6777
6768
|
value: "divider",
|
|
6778
6769
|
disabled: !0
|
|
@@ -6816,7 +6807,7 @@ var Ca = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDo
|
|
|
6816
6807
|
const Ma = /* @__PURE__ */ Lt({
|
|
6817
6808
|
__name: "App",
|
|
6818
6809
|
setup(n) {
|
|
6819
|
-
const { state: e } = Jn(), t =
|
|
6810
|
+
const { state: e } = Jn(), t = Ve(), r = Un(), i = Kt(Ca.firebase);
|
|
6820
6811
|
async function s() {
|
|
6821
6812
|
const a = t.sessionUser.value;
|
|
6822
6813
|
if (!a || !a.token) return;
|
|
@@ -6850,7 +6841,7 @@ const Ma = /* @__PURE__ */ Lt({
|
|
|
6850
6841
|
},
|
|
6851
6842
|
{}
|
|
6852
6843
|
);
|
|
6853
|
-
}, xa = [...K, ...
|
|
6844
|
+
}, xa = [...K, ...je];
|
|
6854
6845
|
export {
|
|
6855
6846
|
mt as _,
|
|
6856
6847
|
Ma as a,
|