@feedmepos/mf-payment 1.5.25-dev → 1.5.27-dev
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/DocumentViewer.vue_vue_type_script_setup_true_lang-B0ThjP1l.js +94 -0
- package/dist/{OnboardForm-C5e22OaA.js → OnboardForm-BwuKMUCZ.js} +37 -38
- package/dist/{OnboardForm-DepiUIOr.js → OnboardForm-D3q5YAEo.js} +3 -3
- package/dist/{OnboardSubmission-V8jeo8Za.js → OnboardSubmission-BBdqr387.js} +1 -1
- package/dist/{OnboardSubmission-BB6qLr3p.js → OnboardSubmission-D958LAp4.js} +1 -1
- package/dist/{PayoutAccount-BmA6yq1q.js → PayoutAccount-DOrQRIwu.js} +2 -2
- package/dist/{PayoutAccount-BeC2YgKa.js → PayoutAccount-DPkIAGxl.js} +1 -1
- package/dist/{PayoutAccountSetting-DtFbOHVm.js → PayoutAccountSetting-BeN4xXv3.js} +241 -238
- package/dist/api/document/index.d.ts +1 -0
- package/dist/{app-BI2iqyvj.js → app-U26B2g_2.js} +126 -135
- package/dist/app.js +1 -1
- package/dist/components/DocumentViewer.vue.d.ts +1 -0
- package/dist/index-BxuQxtra.js +36 -0
- package/dist/{index-Ci4uxsSz.js → index-PpSEr3rk.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-Th15UywB.js → payout-account-9xeRIv-9.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/DocumentViewer.vue_vue_type_script_setup_true_lang-KCfloaC1.js +0 -89
- package/dist/index-ey7xefKL.js +0 -27
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FmApp as Dn, routes as Ln, i18nMessages as Mn } from "@feedmepos/mf-financing";
|
|
2
2
|
import { createRouter as Bn, createWebHistory as Un, useRouter as xn, useRoute as Fn } from "vue-router";
|
|
3
3
|
import { computed as Dt, watch as G, defineComponent as Lt, ref as Hn, resolveComponent as Mt, openBlock as Bt, createBlock as Ut, h as qn, onMounted as $n, onBeforeMount as Vn, unref as jn } from "vue";
|
|
4
|
-
import { useCoreStore as
|
|
4
|
+
import { useCoreStore as $e, useI18n as Wn } from "@feedmepos/mf-common";
|
|
5
5
|
import { defineStore as zn } from "pinia";
|
|
6
6
|
import { components as Gn } from "@feedmepos/ui-library";
|
|
7
7
|
const Kn = {
|
|
@@ -1152,7 +1152,7 @@ const Kn = {
|
|
|
1152
1152
|
sidebarDisplay: "Payout Accounts",
|
|
1153
1153
|
section: "payment-gateway"
|
|
1154
1154
|
},
|
|
1155
|
-
component: () => import("./PayoutAccount-
|
|
1155
|
+
component: () => import("./PayoutAccount-DPkIAGxl.js")
|
|
1156
1156
|
},
|
|
1157
1157
|
{
|
|
1158
1158
|
path: "/admin/payout-accounts/:accountId",
|
|
@@ -1161,7 +1161,7 @@ const Kn = {
|
|
|
1161
1161
|
meta: {
|
|
1162
1162
|
parent: "mf-payment-admin.payout-account"
|
|
1163
1163
|
},
|
|
1164
|
-
component: () => import("./PayoutAccountSetting-
|
|
1164
|
+
component: () => import("./PayoutAccountSetting-BeN4xXv3.js")
|
|
1165
1165
|
},
|
|
1166
1166
|
{
|
|
1167
1167
|
path: "/admin/onboarding",
|
|
@@ -1170,7 +1170,7 @@ const Kn = {
|
|
|
1170
1170
|
sidebarDisplay: "Payment Onboarding",
|
|
1171
1171
|
section: "payment-gateway"
|
|
1172
1172
|
},
|
|
1173
|
-
component: () => import("./OnboardSubmission-
|
|
1173
|
+
component: () => import("./OnboardSubmission-D958LAp4.js")
|
|
1174
1174
|
},
|
|
1175
1175
|
{
|
|
1176
1176
|
path: "/admin/onboarding/:submissionId",
|
|
@@ -1179,7 +1179,7 @@ const Kn = {
|
|
|
1179
1179
|
meta: {
|
|
1180
1180
|
parent: "mf-payment-admin.onboard-submission"
|
|
1181
1181
|
},
|
|
1182
|
-
component: () => import("./OnboardForm-
|
|
1182
|
+
component: () => import("./OnboardForm-D3q5YAEo.js")
|
|
1183
1183
|
},
|
|
1184
1184
|
{
|
|
1185
1185
|
path: "/admin/terminal/pos",
|
|
@@ -1277,7 +1277,7 @@ const Kn = {
|
|
|
1277
1277
|
},
|
|
1278
1278
|
component: () => import("./SettlementTransactions-DLVFBcdV.js")
|
|
1279
1279
|
}
|
|
1280
|
-
],
|
|
1280
|
+
], Ve = [
|
|
1281
1281
|
{
|
|
1282
1282
|
path: "",
|
|
1283
1283
|
redirect: { name: "mf-payment-payout-account" }
|
|
@@ -1285,7 +1285,7 @@ const Kn = {
|
|
|
1285
1285
|
{
|
|
1286
1286
|
path: "/payout-account",
|
|
1287
1287
|
name: "mf-payment-payout-account",
|
|
1288
|
-
component: () => import("./PayoutAccount-
|
|
1288
|
+
component: () => import("./PayoutAccount-DOrQRIwu.js"),
|
|
1289
1289
|
meta: {
|
|
1290
1290
|
sidebarDisplay: "i18n:payment.routes.payout_account"
|
|
1291
1291
|
}
|
|
@@ -1293,7 +1293,7 @@ const Kn = {
|
|
|
1293
1293
|
{
|
|
1294
1294
|
path: "/onboard-submission",
|
|
1295
1295
|
name: "mf-payment-onboard-submission",
|
|
1296
|
-
component: () => import("./OnboardSubmission-
|
|
1296
|
+
component: () => import("./OnboardSubmission-BBdqr387.js"),
|
|
1297
1297
|
meta: {
|
|
1298
1298
|
sidebarDisplay: "i18n:payment.routes.onboard_submission",
|
|
1299
1299
|
region: { MY: !0, TH: !0 }
|
|
@@ -1303,7 +1303,7 @@ const Kn = {
|
|
|
1303
1303
|
path: "/onboard-submission/:type/:submission?",
|
|
1304
1304
|
name: "mf-payment-onboard-submission-form",
|
|
1305
1305
|
props: !0,
|
|
1306
|
-
component: () => import("./OnboardForm-
|
|
1306
|
+
component: () => import("./OnboardForm-BwuKMUCZ.js"),
|
|
1307
1307
|
meta: {
|
|
1308
1308
|
parent: "mf-payment-onboard-submission"
|
|
1309
1309
|
}
|
|
@@ -1802,7 +1802,7 @@ function vr(n) {
|
|
|
1802
1802
|
return !1;
|
|
1803
1803
|
return !0;
|
|
1804
1804
|
}
|
|
1805
|
-
function
|
|
1805
|
+
function ue(n, e) {
|
|
1806
1806
|
if (n === e)
|
|
1807
1807
|
return !0;
|
|
1808
1808
|
const t = Object.keys(n), r = Object.keys(e);
|
|
@@ -1811,7 +1811,7 @@ function de(n, e) {
|
|
|
1811
1811
|
return !1;
|
|
1812
1812
|
const s = n[i], a = e[i];
|
|
1813
1813
|
if (at(s) && at(a)) {
|
|
1814
|
-
if (!
|
|
1814
|
+
if (!ue(s, a))
|
|
1815
1815
|
return !1;
|
|
1816
1816
|
} else if (s !== a)
|
|
1817
1817
|
return !1;
|
|
@@ -1898,7 +1898,7 @@ class wr {
|
|
|
1898
1898
|
next: e,
|
|
1899
1899
|
error: t,
|
|
1900
1900
|
complete: r
|
|
1901
|
-
}, i.next === void 0 && (i.next =
|
|
1901
|
+
}, i.next === void 0 && (i.next = Ee), i.error === void 0 && (i.error = Ee), i.complete === void 0 && (i.complete = Ee);
|
|
1902
1902
|
const s = this.unsubscribeOne.bind(this, this.observers.length);
|
|
1903
1903
|
return this.finalized && this.task.then(() => {
|
|
1904
1904
|
try {
|
|
@@ -1944,7 +1944,7 @@ function Tr(n, e) {
|
|
|
1944
1944
|
return !0;
|
|
1945
1945
|
return !1;
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1947
|
+
function Ee() {
|
|
1948
1948
|
}
|
|
1949
1949
|
/**
|
|
1950
1950
|
* @license
|
|
@@ -2351,7 +2351,7 @@ function Lr() {
|
|
|
2351
2351
|
IDBCursor.prototype.continuePrimaryKey
|
|
2352
2352
|
]);
|
|
2353
2353
|
}
|
|
2354
|
-
const Wt = /* @__PURE__ */ new WeakMap(),
|
|
2354
|
+
const Wt = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap();
|
|
2355
2355
|
function Mr(n) {
|
|
2356
2356
|
const e = new Promise((t, r) => {
|
|
2357
2357
|
const i = () => {
|
|
@@ -2369,7 +2369,7 @@ function Mr(n) {
|
|
|
2369
2369
|
}), We.set(e, n), e;
|
|
2370
2370
|
}
|
|
2371
2371
|
function Br(n) {
|
|
2372
|
-
if (
|
|
2372
|
+
if (Le.has(n))
|
|
2373
2373
|
return;
|
|
2374
2374
|
const e = new Promise((t, r) => {
|
|
2375
2375
|
const i = () => {
|
|
@@ -2381,13 +2381,13 @@ function Br(n) {
|
|
|
2381
2381
|
};
|
|
2382
2382
|
n.addEventListener("complete", s), n.addEventListener("error", a), n.addEventListener("abort", a);
|
|
2383
2383
|
});
|
|
2384
|
-
|
|
2384
|
+
Le.set(n, e);
|
|
2385
2385
|
}
|
|
2386
|
-
let
|
|
2386
|
+
let Me = {
|
|
2387
2387
|
get(n, e, t) {
|
|
2388
2388
|
if (n instanceof IDBTransaction) {
|
|
2389
2389
|
if (e === "done")
|
|
2390
|
-
return
|
|
2390
|
+
return Le.get(n);
|
|
2391
2391
|
if (e === "objectStoreNames")
|
|
2392
2392
|
return n.objectStoreNames || zt.get(n);
|
|
2393
2393
|
if (e === "store")
|
|
@@ -2403,30 +2403,30 @@ let Be = {
|
|
|
2403
2403
|
}
|
|
2404
2404
|
};
|
|
2405
2405
|
function Ur(n) {
|
|
2406
|
-
|
|
2406
|
+
Me = n(Me);
|
|
2407
2407
|
}
|
|
2408
2408
|
function xr(n) {
|
|
2409
2409
|
return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
|
|
2410
|
-
const r = n.call(
|
|
2410
|
+
const r = n.call(Re(this), e, ...t);
|
|
2411
2411
|
return zt.set(r, e.sort ? e.sort() : [e]), N(r);
|
|
2412
2412
|
} : Lr().includes(n) ? function(...e) {
|
|
2413
|
-
return n.apply(
|
|
2413
|
+
return n.apply(Re(this), e), N(Wt.get(this));
|
|
2414
2414
|
} : function(...e) {
|
|
2415
|
-
return N(n.apply(
|
|
2415
|
+
return N(n.apply(Re(this), e));
|
|
2416
2416
|
};
|
|
2417
2417
|
}
|
|
2418
2418
|
function Fr(n) {
|
|
2419
|
-
return typeof n == "function" ? xr(n) : (n instanceof IDBTransaction && Br(n), Or(n, Dr()) ? new Proxy(n,
|
|
2419
|
+
return typeof n == "function" ? xr(n) : (n instanceof IDBTransaction && Br(n), Or(n, Dr()) ? new Proxy(n, Me) : n);
|
|
2420
2420
|
}
|
|
2421
2421
|
function N(n) {
|
|
2422
2422
|
if (n instanceof IDBRequest)
|
|
2423
2423
|
return Mr(n);
|
|
2424
|
-
if (
|
|
2425
|
-
return
|
|
2424
|
+
if (Se.has(n))
|
|
2425
|
+
return Se.get(n);
|
|
2426
2426
|
const e = Fr(n);
|
|
2427
|
-
return e !== n && (
|
|
2427
|
+
return e !== n && (Se.set(n, e), We.set(e, n)), e;
|
|
2428
2428
|
}
|
|
2429
|
-
const
|
|
2429
|
+
const Re = (n) => We.get(n);
|
|
2430
2430
|
function Hr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
2431
2431
|
const a = indexedDB.open(n, e), c = N(a);
|
|
2432
2432
|
return r && a.addEventListener("upgradeneeded", (o) => {
|
|
@@ -2441,12 +2441,12 @@ function Hr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
|
2441
2441
|
}).catch(() => {
|
|
2442
2442
|
}), c;
|
|
2443
2443
|
}
|
|
2444
|
-
const qr = ["get", "getKey", "getAll", "getAllKeys", "count"], $r = ["put", "add", "delete", "clear"],
|
|
2444
|
+
const qr = ["get", "getKey", "getAll", "getAllKeys", "count"], $r = ["put", "add", "delete", "clear"], Ce = /* @__PURE__ */ new Map();
|
|
2445
2445
|
function lt(n, e) {
|
|
2446
2446
|
if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
|
|
2447
2447
|
return;
|
|
2448
|
-
if (
|
|
2449
|
-
return
|
|
2448
|
+
if (Ce.get(e))
|
|
2449
|
+
return Ce.get(e);
|
|
2450
2450
|
const t = e.replace(/FromIndex$/, ""), r = e !== t, i = $r.includes(t);
|
|
2451
2451
|
if (
|
|
2452
2452
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
|
@@ -2461,7 +2461,7 @@ function lt(n, e) {
|
|
|
2461
2461
|
i && o.done
|
|
2462
2462
|
]))[0];
|
|
2463
2463
|
};
|
|
2464
|
-
return
|
|
2464
|
+
return Ce.set(e, s), s;
|
|
2465
2465
|
}
|
|
2466
2466
|
Ur((n) => ({
|
|
2467
2467
|
...n,
|
|
@@ -2504,7 +2504,7 @@ function jr(n) {
|
|
|
2504
2504
|
const e = n.getComponent();
|
|
2505
2505
|
return (e == null ? void 0 : e.type) === "VERSION";
|
|
2506
2506
|
}
|
|
2507
|
-
const
|
|
2507
|
+
const Be = "@firebase/app", ut = "0.10.13";
|
|
2508
2508
|
/**
|
|
2509
2509
|
* @license
|
|
2510
2510
|
* Copyright 2019 Google LLC
|
|
@@ -2538,8 +2538,8 @@ const T = new jt("@firebase/app"), Wr = "@firebase/app-compat", zr = "@firebase/
|
|
|
2538
2538
|
* See the License for the specific language governing permissions and
|
|
2539
2539
|
* limitations under the License.
|
|
2540
2540
|
*/
|
|
2541
|
-
const
|
|
2542
|
-
[
|
|
2541
|
+
const Ue = "[DEFAULT]", bi = {
|
|
2542
|
+
[Be]: "fire-core",
|
|
2543
2543
|
[Wr]: "fire-core-compat",
|
|
2544
2544
|
[Gr]: "fire-analytics",
|
|
2545
2545
|
[zr]: "fire-analytics-compat",
|
|
@@ -2584,7 +2584,7 @@ const xe = "[DEFAULT]", bi = {
|
|
|
2584
2584
|
* See the License for the specific language governing permissions and
|
|
2585
2585
|
* limitations under the License.
|
|
2586
2586
|
*/
|
|
2587
|
-
const
|
|
2587
|
+
const de = /* @__PURE__ */ new Map(), yi = /* @__PURE__ */ new Map(), xe = /* @__PURE__ */ new Map();
|
|
2588
2588
|
function dt(n, e) {
|
|
2589
2589
|
try {
|
|
2590
2590
|
n.container.addComponent(e);
|
|
@@ -2594,10 +2594,10 @@ function dt(n, e) {
|
|
|
2594
2594
|
}
|
|
2595
2595
|
function Y(n) {
|
|
2596
2596
|
const e = n.name;
|
|
2597
|
-
if (
|
|
2597
|
+
if (xe.has(e))
|
|
2598
2598
|
return T.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
2599
|
-
|
|
2600
|
-
for (const t of
|
|
2599
|
+
xe.set(e, n);
|
|
2600
|
+
for (const t of de.values())
|
|
2601
2601
|
dt(t, n);
|
|
2602
2602
|
for (const t of yi.values())
|
|
2603
2603
|
dt(t, n);
|
|
@@ -2720,7 +2720,7 @@ const te = _i;
|
|
|
2720
2720
|
function Kt(n, e = {}) {
|
|
2721
2721
|
let t = n;
|
|
2722
2722
|
typeof e != "object" && (e = { name: e });
|
|
2723
|
-
const r = Object.assign({ name:
|
|
2723
|
+
const r = Object.assign({ name: Ue, automaticDataCollectionEnabled: !1 }, e), i = r.name;
|
|
2724
2724
|
if (typeof i != "string" || !i)
|
|
2725
2725
|
throw O.create("bad-app-name", {
|
|
2726
2726
|
appName: String(i)
|
|
@@ -2730,21 +2730,21 @@ function Kt(n, e = {}) {
|
|
|
2730
2730
|
"no-options"
|
|
2731
2731
|
/* AppError.NO_OPTIONS */
|
|
2732
2732
|
);
|
|
2733
|
-
const s =
|
|
2733
|
+
const s = de.get(i);
|
|
2734
2734
|
if (s) {
|
|
2735
|
-
if (
|
|
2735
|
+
if (ue(t, s.options) && ue(r, s.config))
|
|
2736
2736
|
return s;
|
|
2737
2737
|
throw O.create("duplicate-app", { appName: i });
|
|
2738
2738
|
}
|
|
2739
2739
|
const a = new Rr(i);
|
|
2740
|
-
for (const o of
|
|
2740
|
+
for (const o of xe.values())
|
|
2741
2741
|
a.addComponent(o);
|
|
2742
2742
|
const c = new Ii(t, r, a);
|
|
2743
|
-
return
|
|
2743
|
+
return de.set(i, c), c;
|
|
2744
2744
|
}
|
|
2745
|
-
function wi(n =
|
|
2746
|
-
const e =
|
|
2747
|
-
if (!e && n ===
|
|
2745
|
+
function wi(n = Ue) {
|
|
2746
|
+
const e = de.get(n);
|
|
2747
|
+
if (!e && n === Ue && $t())
|
|
2748
2748
|
return Kt();
|
|
2749
2749
|
if (!e)
|
|
2750
2750
|
throw O.create("no-app", { appName: n });
|
|
@@ -2786,9 +2786,9 @@ function H(n, e, t) {
|
|
|
2786
2786
|
* limitations under the License.
|
|
2787
2787
|
*/
|
|
2788
2788
|
const Ti = "firebase-heartbeat-database", ki = 1, X = "firebase-heartbeat-store";
|
|
2789
|
-
let
|
|
2789
|
+
let Ae = null;
|
|
2790
2790
|
function Jt() {
|
|
2791
|
-
return
|
|
2791
|
+
return Ae || (Ae = Hr(Ti, ki, {
|
|
2792
2792
|
upgrade: (n, e) => {
|
|
2793
2793
|
switch (e) {
|
|
2794
2794
|
case 0:
|
|
@@ -2803,7 +2803,7 @@ function Jt() {
|
|
|
2803
2803
|
throw O.create("idb-open", {
|
|
2804
2804
|
originalErrorMessage: n.message
|
|
2805
2805
|
});
|
|
2806
|
-
})),
|
|
2806
|
+
})), Ae;
|
|
2807
2807
|
}
|
|
2808
2808
|
async function Ei(n) {
|
|
2809
2809
|
try {
|
|
@@ -3004,7 +3004,7 @@ function Ni(n) {
|
|
|
3004
3004
|
(e) => new Ci(e),
|
|
3005
3005
|
"PRIVATE"
|
|
3006
3006
|
/* ComponentType.PRIVATE */
|
|
3007
|
-
)), H(
|
|
3007
|
+
)), H(Be, ut, n), H(Be, ut, "esm2017"), H("fire-js", "");
|
|
3008
3008
|
}
|
|
3009
3009
|
Ni("");
|
|
3010
3010
|
var Oi = "firebase", Di = "10.14.1";
|
|
@@ -3064,12 +3064,12 @@ const Li = Xt, Qt = new Z("auth", "Firebase", Xt());
|
|
|
3064
3064
|
* See the License for the specific language governing permissions and
|
|
3065
3065
|
* limitations under the License.
|
|
3066
3066
|
*/
|
|
3067
|
-
const
|
|
3067
|
+
const he = new jt("@firebase/auth");
|
|
3068
3068
|
function Mi(n, ...e) {
|
|
3069
|
-
|
|
3069
|
+
he.logLevel <= p.WARN && he.warn(`Auth (${te}): ${n}`, ...e);
|
|
3070
3070
|
}
|
|
3071
3071
|
function ae(n, ...e) {
|
|
3072
|
-
|
|
3072
|
+
he.logLevel <= p.ERROR && he.error(`Auth (${te}): ${n}`, ...e);
|
|
3073
3073
|
}
|
|
3074
3074
|
/**
|
|
3075
3075
|
* @license
|
|
@@ -3136,7 +3136,7 @@ function E(n, e) {
|
|
|
3136
3136
|
* See the License for the specific language governing permissions and
|
|
3137
3137
|
* limitations under the License.
|
|
3138
3138
|
*/
|
|
3139
|
-
function
|
|
3139
|
+
function Fe() {
|
|
3140
3140
|
var n;
|
|
3141
3141
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
|
|
3142
3142
|
}
|
|
@@ -3390,7 +3390,7 @@ const Fi = {
|
|
|
3390
3390
|
* limitations under the License.
|
|
3391
3391
|
*/
|
|
3392
3392
|
const Hi = new ne(3e4, 6e4);
|
|
3393
|
-
function
|
|
3393
|
+
function _e(n, e) {
|
|
3394
3394
|
return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
|
|
3395
3395
|
}
|
|
3396
3396
|
async function z(n, e, t, r, i = {}) {
|
|
@@ -3538,14 +3538,14 @@ async function Vi(n, e = !1) {
|
|
|
3538
3538
|
return {
|
|
3539
3539
|
claims: i,
|
|
3540
3540
|
token: r,
|
|
3541
|
-
authTime: J(
|
|
3542
|
-
issuedAtTime: J(
|
|
3543
|
-
expirationTime: J(
|
|
3541
|
+
authTime: J(Pe(i.auth_time)),
|
|
3542
|
+
issuedAtTime: J(Pe(i.iat)),
|
|
3543
|
+
expirationTime: J(Pe(i.exp)),
|
|
3544
3544
|
signInProvider: a || null,
|
|
3545
3545
|
signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
|
|
3546
3546
|
};
|
|
3547
3547
|
}
|
|
3548
|
-
function
|
|
3548
|
+
function Pe(n) {
|
|
3549
3549
|
return Number(n) * 1e3;
|
|
3550
3550
|
}
|
|
3551
3551
|
function Je(n) {
|
|
@@ -3681,7 +3681,7 @@ class Wi {
|
|
|
3681
3681
|
* See the License for the specific language governing permissions and
|
|
3682
3682
|
* limitations under the License.
|
|
3683
3683
|
*/
|
|
3684
|
-
class
|
|
3684
|
+
class He {
|
|
3685
3685
|
constructor(e, t) {
|
|
3686
3686
|
this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
|
|
3687
3687
|
}
|
|
@@ -3714,7 +3714,7 @@ class qe {
|
|
|
3714
3714
|
* See the License for the specific language governing permissions and
|
|
3715
3715
|
* limitations under the License.
|
|
3716
3716
|
*/
|
|
3717
|
-
async function
|
|
3717
|
+
async function pe(n) {
|
|
3718
3718
|
var e;
|
|
3719
3719
|
const t = n.auth, r = await n.getIdToken(), i = await Q(n, sn(t, { idToken: r }));
|
|
3720
3720
|
h(
|
|
@@ -3734,14 +3734,14 @@ async function fe(n) {
|
|
|
3734
3734
|
phoneNumber: s.phoneNumber || null,
|
|
3735
3735
|
tenantId: s.tenantId || null,
|
|
3736
3736
|
providerData: c,
|
|
3737
|
-
metadata: new
|
|
3737
|
+
metadata: new He(s.createdAt, s.lastLoginAt),
|
|
3738
3738
|
isAnonymous: u
|
|
3739
3739
|
};
|
|
3740
3740
|
Object.assign(n, d);
|
|
3741
3741
|
}
|
|
3742
3742
|
async function zi(n) {
|
|
3743
3743
|
const e = W(n);
|
|
3744
|
-
await
|
|
3744
|
+
await pe(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
3745
3745
|
}
|
|
3746
3746
|
function Gi(n, e) {
|
|
3747
3747
|
return [...n.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
|
|
@@ -3797,7 +3797,7 @@ async function Ki(n, e) {
|
|
|
3797
3797
|
};
|
|
3798
3798
|
}
|
|
3799
3799
|
async function Ji(n, e) {
|
|
3800
|
-
return z(n, "POST", "/v2/accounts:revokeToken",
|
|
3800
|
+
return z(n, "POST", "/v2/accounts:revokeToken", _e(n, e));
|
|
3801
3801
|
}
|
|
3802
3802
|
/**
|
|
3803
3803
|
* @license
|
|
@@ -3915,7 +3915,7 @@ function S(n, e) {
|
|
|
3915
3915
|
class I {
|
|
3916
3916
|
constructor(e) {
|
|
3917
3917
|
var { uid: t, auth: r, stsTokenManager: i } = e, s = ze(e, ["uid", "auth", "stsTokenManager"]);
|
|
3918
|
-
this.providerId = "firebase", this.proactiveRefresh = new Wi(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
|
|
3918
|
+
this.providerId = "firebase", this.proactiveRefresh = new Wi(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 He(s.createdAt || void 0, s.lastLoginAt || void 0);
|
|
3919
3919
|
}
|
|
3920
3920
|
async getIdToken(e) {
|
|
3921
3921
|
const t = await Q(this, this.stsTokenManager.getToken(this.auth, e));
|
|
@@ -3963,7 +3963,7 @@ class I {
|
|
|
3963
3963
|
}
|
|
3964
3964
|
async _updateTokensIfNecessary(e, t = !1) {
|
|
3965
3965
|
let r = !1;
|
|
3966
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await
|
|
3966
|
+
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await pe(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
|
|
3967
3967
|
}
|
|
3968
3968
|
async delete() {
|
|
3969
3969
|
if (y(this.auth.app))
|
|
@@ -3997,16 +3997,16 @@ class I {
|
|
|
3997
3997
|
}
|
|
3998
3998
|
static _fromJSON(e, t) {
|
|
3999
3999
|
var r, i, s, a, c, o, l, u;
|
|
4000
|
-
const d = (r = t.displayName) !== null && r !== void 0 ? r : void 0, f = (i = t.email) !== null && i !== void 0 ? i : void 0, m = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, x = (a = t.photoURL) !== null && a !== void 0 ? a : void 0, et = (c = t.tenantId) !== null && c !== void 0 ? c : void 0,
|
|
4000
|
+
const d = (r = t.displayName) !== null && r !== void 0 ? r : void 0, f = (i = t.email) !== null && i !== void 0 ? i : void 0, m = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, x = (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: Te, stsTokenManager: st } = t;
|
|
4001
4001
|
h(
|
|
4002
|
-
|
|
4002
|
+
we && st,
|
|
4003
4003
|
e,
|
|
4004
4004
|
"internal-error"
|
|
4005
4005
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
4006
4006
|
);
|
|
4007
4007
|
const Nn = q.fromJSON(this.name, st);
|
|
4008
4008
|
h(
|
|
4009
|
-
typeof
|
|
4009
|
+
typeof we == "string",
|
|
4010
4010
|
e,
|
|
4011
4011
|
"internal-error"
|
|
4012
4012
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -4020,9 +4020,9 @@ class I {
|
|
|
4020
4020
|
e,
|
|
4021
4021
|
"internal-error"
|
|
4022
4022
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
4023
|
-
), S(m, e.name), S(x, e.name), S(et, e.name), S(
|
|
4024
|
-
const
|
|
4025
|
-
uid:
|
|
4023
|
+
), S(m, e.name), S(x, e.name), S(et, e.name), S(Ie, e.name), S(tt, e.name), S(nt, e.name);
|
|
4024
|
+
const ke = new I({
|
|
4025
|
+
uid: we,
|
|
4026
4026
|
auth: e,
|
|
4027
4027
|
email: f,
|
|
4028
4028
|
emailVerified: rt,
|
|
@@ -4035,7 +4035,7 @@ class I {
|
|
|
4035
4035
|
createdAt: tt,
|
|
4036
4036
|
lastLoginAt: nt
|
|
4037
4037
|
});
|
|
4038
|
-
return
|
|
4038
|
+
return Te && Array.isArray(Te) && (ke.providerData = Te.map((On) => Object.assign({}, On))), Ie && (ke._redirectEventId = Ie), ke;
|
|
4039
4039
|
}
|
|
4040
4040
|
/**
|
|
4041
4041
|
* Initialize a User from an idToken server response
|
|
@@ -4051,7 +4051,7 @@ class I {
|
|
|
4051
4051
|
stsTokenManager: i,
|
|
4052
4052
|
isAnonymous: r
|
|
4053
4053
|
});
|
|
4054
|
-
return await
|
|
4054
|
+
return await pe(s), s;
|
|
4055
4055
|
}
|
|
4056
4056
|
/**
|
|
4057
4057
|
* Initialize a User from an idToken server response
|
|
@@ -4081,7 +4081,7 @@ class I {
|
|
|
4081
4081
|
phoneNumber: i.phoneNumber || null,
|
|
4082
4082
|
tenantId: i.tenantId || null,
|
|
4083
4083
|
providerData: s,
|
|
4084
|
-
metadata: new
|
|
4084
|
+
metadata: new He(i.createdAt, i.lastLoginAt),
|
|
4085
4085
|
isAnonymous: !(i.email && i.passwordHash) && !(s != null && s.length)
|
|
4086
4086
|
};
|
|
4087
4087
|
return Object.assign(o, l), o;
|
|
@@ -4412,7 +4412,7 @@ class Qi {
|
|
|
4412
4412
|
* limitations under the License.
|
|
4413
4413
|
*/
|
|
4414
4414
|
async function Zi(n, e = {}) {
|
|
4415
|
-
return z(n, "GET", "/v2/passwordPolicy",
|
|
4415
|
+
return z(n, "GET", "/v2/passwordPolicy", _e(n, e));
|
|
4416
4416
|
}
|
|
4417
4417
|
/**
|
|
4418
4418
|
* @license
|
|
@@ -4606,7 +4606,7 @@ class ns {
|
|
|
4606
4606
|
}
|
|
4607
4607
|
async reloadAndSetCurrentUserOrClear(e) {
|
|
4608
4608
|
try {
|
|
4609
|
-
await
|
|
4609
|
+
await pe(e);
|
|
4610
4610
|
} catch (t) {
|
|
4611
4611
|
if ((t == null ? void 0 : t.code) !== "auth/network-request-failed")
|
|
4612
4612
|
return this.directlySetCurrentUser(null);
|
|
@@ -4851,7 +4851,7 @@ class ns {
|
|
|
4851
4851
|
return t != null && t.error && Mi(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
|
|
4852
4852
|
}
|
|
4853
4853
|
}
|
|
4854
|
-
function
|
|
4854
|
+
function be(n) {
|
|
4855
4855
|
return W(n);
|
|
4856
4856
|
}
|
|
4857
4857
|
class It {
|
|
@@ -4923,7 +4923,7 @@ function os(n, e) {
|
|
|
4923
4923
|
const t = Gt(n, "auth");
|
|
4924
4924
|
if (t.isInitialized()) {
|
|
4925
4925
|
const i = t.getImmediate(), s = t.getOptions();
|
|
4926
|
-
if (
|
|
4926
|
+
if (ue(s, e ?? {}))
|
|
4927
4927
|
return i;
|
|
4928
4928
|
k(
|
|
4929
4929
|
i,
|
|
@@ -4938,7 +4938,7 @@ function cs(n, e) {
|
|
|
4938
4938
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
|
4939
4939
|
}
|
|
4940
4940
|
function ls(n, e, t) {
|
|
4941
|
-
const r =
|
|
4941
|
+
const r = be(n);
|
|
4942
4942
|
h(
|
|
4943
4943
|
r._canInitEmulator,
|
|
4944
4944
|
r,
|
|
@@ -5047,7 +5047,7 @@ class bn {
|
|
|
5047
5047
|
* limitations under the License.
|
|
5048
5048
|
*/
|
|
5049
5049
|
async function V(n, e) {
|
|
5050
|
-
return nn(n, "POST", "/v1/accounts:signInWithIdp",
|
|
5050
|
+
return nn(n, "POST", "/v1/accounts:signInWithIdp", _e(n, e));
|
|
5051
5051
|
}
|
|
5052
5052
|
/**
|
|
5053
5053
|
* @license
|
|
@@ -5566,10 +5566,10 @@ function Tt(n) {
|
|
|
5566
5566
|
* See the License for the specific language governing permissions and
|
|
5567
5567
|
* limitations under the License.
|
|
5568
5568
|
*/
|
|
5569
|
-
class
|
|
5569
|
+
class fe extends L {
|
|
5570
5570
|
constructor(e, t, r, i) {
|
|
5571
5571
|
var s;
|
|
5572
|
-
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this,
|
|
5572
|
+
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this, fe.prototype), this.customData = {
|
|
5573
5573
|
appName: e.name,
|
|
5574
5574
|
tenantId: (s = e.tenantId) !== null && s !== void 0 ? s : void 0,
|
|
5575
5575
|
_serverResponse: t.customData._serverResponse,
|
|
@@ -5577,12 +5577,12 @@ class me extends L {
|
|
|
5577
5577
|
};
|
|
5578
5578
|
}
|
|
5579
5579
|
static _fromErrorAndOperation(e, t, r, i) {
|
|
5580
|
-
return new
|
|
5580
|
+
return new fe(e, t, r, i);
|
|
5581
5581
|
}
|
|
5582
5582
|
}
|
|
5583
5583
|
function vn(n, e, t, r) {
|
|
5584
5584
|
return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
|
|
5585
|
-
throw s.code === "auth/multi-factor-auth-required" ?
|
|
5585
|
+
throw s.code === "auth/multi-factor-auth-required" ? fe._fromErrorAndOperation(n, s, e, r) : s;
|
|
5586
5586
|
});
|
|
5587
5587
|
}
|
|
5588
5588
|
async function ps(n, e, t = !1) {
|
|
@@ -5679,7 +5679,7 @@ async function ms(n, e, t = !1) {
|
|
|
5679
5679
|
* limitations under the License.
|
|
5680
5680
|
*/
|
|
5681
5681
|
async function gs(n, e) {
|
|
5682
|
-
return nn(n, "POST", "/v1/accounts:signInWithCustomToken",
|
|
5682
|
+
return nn(n, "POST", "/v1/accounts:signInWithCustomToken", _e(n, e));
|
|
5683
5683
|
}
|
|
5684
5684
|
/**
|
|
5685
5685
|
* @license
|
|
@@ -5700,7 +5700,7 @@ async function gs(n, e) {
|
|
|
5700
5700
|
async function _s(n, e) {
|
|
5701
5701
|
if (y(n.app))
|
|
5702
5702
|
return Promise.reject(D(n));
|
|
5703
|
-
const t =
|
|
5703
|
+
const t = be(n), r = await gs(t, {
|
|
5704
5704
|
token: e,
|
|
5705
5705
|
returnSecureToken: !0
|
|
5706
5706
|
}), i = await U._fromIdTokenResponse(t, "signIn", r);
|
|
@@ -5712,7 +5712,7 @@ function bs(n, e, t, r) {
|
|
|
5712
5712
|
function ys(n, e, t) {
|
|
5713
5713
|
return W(n).beforeAuthStateChanged(e, t);
|
|
5714
5714
|
}
|
|
5715
|
-
const
|
|
5715
|
+
const me = "__sak";
|
|
5716
5716
|
/**
|
|
5717
5717
|
* @license
|
|
5718
5718
|
* Copyright 2019 Google LLC
|
|
@@ -5735,7 +5735,7 @@ class In {
|
|
|
5735
5735
|
}
|
|
5736
5736
|
_isAvailable() {
|
|
5737
5737
|
try {
|
|
5738
|
-
return this.storage ? (this.storage.setItem(
|
|
5738
|
+
return this.storage ? (this.storage.setItem(me, "1"), this.storage.removeItem(me), Promise.resolve(!0)) : Promise.resolve(!1);
|
|
5739
5739
|
} catch {
|
|
5740
5740
|
return Promise.resolve(!1);
|
|
5741
5741
|
}
|
|
@@ -5929,7 +5929,7 @@ function Ts(n) {
|
|
|
5929
5929
|
* See the License for the specific language governing permissions and
|
|
5930
5930
|
* limitations under the License.
|
|
5931
5931
|
*/
|
|
5932
|
-
class
|
|
5932
|
+
class ye {
|
|
5933
5933
|
constructor(e) {
|
|
5934
5934
|
this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
|
|
5935
5935
|
}
|
|
@@ -5943,7 +5943,7 @@ class ve {
|
|
|
5943
5943
|
const t = this.receivers.find((i) => i.isListeningto(e));
|
|
5944
5944
|
if (t)
|
|
5945
5945
|
return t;
|
|
5946
|
-
const r = new
|
|
5946
|
+
const r = new ye(e);
|
|
5947
5947
|
return this.receivers.push(r), r;
|
|
5948
5948
|
}
|
|
5949
5949
|
isListeningto(e) {
|
|
@@ -5997,7 +5997,7 @@ class ve {
|
|
|
5997
5997
|
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);
|
|
5998
5998
|
}
|
|
5999
5999
|
}
|
|
6000
|
-
|
|
6000
|
+
ye.receivers = [];
|
|
6001
6001
|
/**
|
|
6002
6002
|
* @license
|
|
6003
6003
|
* Copyright 2020 Google LLC
|
|
@@ -6190,7 +6190,7 @@ function Cs() {
|
|
|
6190
6190
|
* See the License for the specific language governing permissions and
|
|
6191
6191
|
* limitations under the License.
|
|
6192
6192
|
*/
|
|
6193
|
-
const Sn = "firebaseLocalStorageDb", As = 1,
|
|
6193
|
+
const Sn = "firebaseLocalStorageDb", As = 1, ge = "firebaseLocalStorage", Rn = "fbase_key";
|
|
6194
6194
|
class ie {
|
|
6195
6195
|
constructor(e) {
|
|
6196
6196
|
this.request = e;
|
|
@@ -6205,14 +6205,14 @@ class ie {
|
|
|
6205
6205
|
});
|
|
6206
6206
|
}
|
|
6207
6207
|
}
|
|
6208
|
-
function
|
|
6209
|
-
return n.transaction([
|
|
6208
|
+
function ve(n, e) {
|
|
6209
|
+
return n.transaction([ge], e ? "readwrite" : "readonly").objectStore(ge);
|
|
6210
6210
|
}
|
|
6211
6211
|
function Ps() {
|
|
6212
6212
|
const n = indexedDB.deleteDatabase(Sn);
|
|
6213
6213
|
return new ie(n).toPromise();
|
|
6214
6214
|
}
|
|
6215
|
-
function
|
|
6215
|
+
function qe() {
|
|
6216
6216
|
const n = indexedDB.open(Sn, As);
|
|
6217
6217
|
return new Promise((e, t) => {
|
|
6218
6218
|
n.addEventListener("error", () => {
|
|
@@ -6220,29 +6220,29 @@ function $e() {
|
|
|
6220
6220
|
}), n.addEventListener("upgradeneeded", () => {
|
|
6221
6221
|
const r = n.result;
|
|
6222
6222
|
try {
|
|
6223
|
-
r.createObjectStore(
|
|
6223
|
+
r.createObjectStore(ge, { keyPath: Rn });
|
|
6224
6224
|
} catch (i) {
|
|
6225
6225
|
t(i);
|
|
6226
6226
|
}
|
|
6227
6227
|
}), n.addEventListener("success", async () => {
|
|
6228
6228
|
const r = n.result;
|
|
6229
|
-
r.objectStoreNames.contains(
|
|
6229
|
+
r.objectStoreNames.contains(ge) ? e(r) : (r.close(), await Ps(), e(await qe()));
|
|
6230
6230
|
});
|
|
6231
6231
|
});
|
|
6232
6232
|
}
|
|
6233
6233
|
async function kt(n, e, t) {
|
|
6234
|
-
const r =
|
|
6234
|
+
const r = ve(n, !0).put({
|
|
6235
6235
|
[Rn]: e,
|
|
6236
6236
|
value: t
|
|
6237
6237
|
});
|
|
6238
6238
|
return new ie(r).toPromise();
|
|
6239
6239
|
}
|
|
6240
6240
|
async function Ns(n, e) {
|
|
6241
|
-
const t =
|
|
6241
|
+
const t = ve(n, !1).get(e), r = await new ie(t).toPromise();
|
|
6242
6242
|
return r === void 0 ? null : r.value;
|
|
6243
6243
|
}
|
|
6244
6244
|
function Et(n, e) {
|
|
6245
|
-
const t =
|
|
6245
|
+
const t = ve(n, !0).delete(e);
|
|
6246
6246
|
return new ie(t).toPromise();
|
|
6247
6247
|
}
|
|
6248
6248
|
const Os = 800, Ds = 3;
|
|
@@ -6253,7 +6253,7 @@ class Cn {
|
|
|
6253
6253
|
});
|
|
6254
6254
|
}
|
|
6255
6255
|
async _openDb() {
|
|
6256
|
-
return this.db ? this.db : (this.db = await
|
|
6256
|
+
return this.db ? this.db : (this.db = await qe(), this.db);
|
|
6257
6257
|
}
|
|
6258
6258
|
async _withRetries(e) {
|
|
6259
6259
|
let t = 0;
|
|
@@ -6278,7 +6278,7 @@ class Cn {
|
|
|
6278
6278
|
* As the worker we should listen to events from the main window.
|
|
6279
6279
|
*/
|
|
6280
6280
|
async initializeReceiver() {
|
|
6281
|
-
this.receiver =
|
|
6281
|
+
this.receiver = ye._getInstance(Cs()), this.receiver._subscribe("keyChanged", async (e, t) => ({
|
|
6282
6282
|
keyProcessed: (await this._poll()).includes(t.key)
|
|
6283
6283
|
})), this.receiver._subscribe("ping", async (e, t) => [
|
|
6284
6284
|
"keyChanged"
|
|
@@ -6334,8 +6334,8 @@ class Cn {
|
|
|
6334
6334
|
try {
|
|
6335
6335
|
if (!indexedDB)
|
|
6336
6336
|
return !1;
|
|
6337
|
-
const e = await
|
|
6338
|
-
return await kt(e,
|
|
6337
|
+
const e = await qe();
|
|
6338
|
+
return await kt(e, me, "1"), await Et(e, me), !0;
|
|
6339
6339
|
} catch {
|
|
6340
6340
|
}
|
|
6341
6341
|
return !1;
|
|
@@ -6360,7 +6360,7 @@ class Cn {
|
|
|
6360
6360
|
}
|
|
6361
6361
|
async _poll() {
|
|
6362
6362
|
const e = await this._withRetries((i) => {
|
|
6363
|
-
const s =
|
|
6363
|
+
const s = ve(i, !1).getAll();
|
|
6364
6364
|
return new ie(s).toPromise();
|
|
6365
6365
|
});
|
|
6366
6366
|
if (!e)
|
|
@@ -6740,7 +6740,7 @@ function Ws(n) {
|
|
|
6740
6740
|
async function zs(n, e, t = !1) {
|
|
6741
6741
|
if (y(n.app))
|
|
6742
6742
|
return Promise.reject(D(n));
|
|
6743
|
-
const r =
|
|
6743
|
+
const r = be(n), i = Ms(r, e), a = await new qs(r, i, t).execute();
|
|
6744
6744
|
return a && !t && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
|
|
6745
6745
|
}
|
|
6746
6746
|
/**
|
|
@@ -6868,7 +6868,7 @@ async function Zs(n) {
|
|
|
6868
6868
|
);
|
|
6869
6869
|
}
|
|
6870
6870
|
function ea(n) {
|
|
6871
|
-
const e =
|
|
6871
|
+
const e = Fe(), { protocol: t, hostname: r } = new URL(e);
|
|
6872
6872
|
if (n.startsWith("chrome-extension://")) {
|
|
6873
6873
|
const a = new URL(n);
|
|
6874
6874
|
return a.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && a.hostname === r;
|
|
@@ -7165,7 +7165,7 @@ function Ia({ config: n }) {
|
|
|
7165
7165
|
* See the License for the specific language governing permissions and
|
|
7166
7166
|
* limitations under the License.
|
|
7167
7167
|
*/
|
|
7168
|
-
const
|
|
7168
|
+
const Ne = "webStorageSupport";
|
|
7169
7169
|
class wa {
|
|
7170
7170
|
constructor() {
|
|
7171
7171
|
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = kn, this._completeRedirectFn = zs, this._overrideRedirectResult = Vs;
|
|
@@ -7175,12 +7175,12 @@ class wa {
|
|
|
7175
7175
|
async _openPopup(e, t, r, i) {
|
|
7176
7176
|
var s;
|
|
7177
7177
|
E((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
|
7178
|
-
const a = await At(e, t, r,
|
|
7178
|
+
const a = await At(e, t, r, Fe(), i);
|
|
7179
7179
|
return ga(e, a, Qe());
|
|
7180
7180
|
}
|
|
7181
7181
|
async _openRedirect(e, t, r, i) {
|
|
7182
7182
|
await this._originValidation(e);
|
|
7183
|
-
const s = await At(e, t, r,
|
|
7183
|
+
const s = await At(e, t, r, Fe(), i);
|
|
7184
7184
|
return Es(s), new Promise(() => {
|
|
7185
7185
|
});
|
|
7186
7186
|
}
|
|
@@ -7208,9 +7208,9 @@ class wa {
|
|
|
7208
7208
|
}), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = t, r;
|
|
7209
7209
|
}
|
|
7210
7210
|
_isIframeWebStorageSupported(e, t) {
|
|
7211
|
-
this.iframes[e._key()].send(
|
|
7211
|
+
this.iframes[e._key()].send(Ne, { type: Ne }, (i) => {
|
|
7212
7212
|
var s;
|
|
7213
|
-
const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[
|
|
7213
|
+
const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[Ne];
|
|
7214
7214
|
a !== void 0 && t(!!a), k(
|
|
7215
7215
|
e,
|
|
7216
7216
|
"internal-error"
|
|
@@ -7341,7 +7341,7 @@ function Sa(n) {
|
|
|
7341
7341
|
})), Y(new j(
|
|
7342
7342
|
"auth-internal",
|
|
7343
7343
|
(e) => {
|
|
7344
|
-
const t =
|
|
7344
|
+
const t = be(e.getProvider(
|
|
7345
7345
|
"auth"
|
|
7346
7346
|
/* _ComponentName.AUTH */
|
|
7347
7347
|
).getImmediate());
|
|
@@ -7434,7 +7434,7 @@ Sa(
|
|
|
7434
7434
|
const Oa = Bn({
|
|
7435
7435
|
history: Un(),
|
|
7436
7436
|
routes: [
|
|
7437
|
-
...
|
|
7437
|
+
...Ve,
|
|
7438
7438
|
...K,
|
|
7439
7439
|
{
|
|
7440
7440
|
path: "/forbidden",
|
|
@@ -7443,7 +7443,7 @@ const Oa = Bn({
|
|
|
7443
7443
|
}
|
|
7444
7444
|
]
|
|
7445
7445
|
});
|
|
7446
|
-
let
|
|
7446
|
+
let Oe, De;
|
|
7447
7447
|
Oa.beforeEach(async (n) => {
|
|
7448
7448
|
const {
|
|
7449
7449
|
sessionUser: e,
|
|
@@ -7451,10 +7451,10 @@ Oa.beforeEach(async (n) => {
|
|
|
7451
7451
|
currentBusiness: r,
|
|
7452
7452
|
readRestaurants: i,
|
|
7453
7453
|
changeRestaurant: s
|
|
7454
|
-
} =
|
|
7454
|
+
} = $e();
|
|
7455
7455
|
if (n.name && n.name.startsWith("mf-payment-admin")) {
|
|
7456
7456
|
if (!e.value) {
|
|
7457
|
-
|
|
7457
|
+
Oe || (Oe = new Promise((c) => {
|
|
7458
7458
|
const o = G(e, (l) => {
|
|
7459
7459
|
var u, d;
|
|
7460
7460
|
l && (o(), c(
|
|
@@ -7462,12 +7462,12 @@ Oa.beforeEach(async (n) => {
|
|
|
7462
7462
|
));
|
|
7463
7463
|
});
|
|
7464
7464
|
}));
|
|
7465
|
-
const a = await
|
|
7465
|
+
const a = await Oe;
|
|
7466
7466
|
return a || { name: "mf-payment-forbidden" };
|
|
7467
7467
|
}
|
|
7468
7468
|
return !0;
|
|
7469
7469
|
}
|
|
7470
|
-
return !r.value || !t.value ? (
|
|
7470
|
+
return !r.value || !t.value ? (De || (De = Promise.all([
|
|
7471
7471
|
new Promise(async (a) => {
|
|
7472
7472
|
const c = G(r, (o) => {
|
|
7473
7473
|
o && (c(), a(!0));
|
|
@@ -7479,17 +7479,17 @@ Oa.beforeEach(async (n) => {
|
|
|
7479
7479
|
}), o = await i();
|
|
7480
7480
|
await s(o == null ? void 0 : o.at(0));
|
|
7481
7481
|
})
|
|
7482
|
-
]).then((a) => !0)),
|
|
7482
|
+
]).then((a) => !0)), De) : !0;
|
|
7483
7483
|
});
|
|
7484
7484
|
const Da = /* @__PURE__ */ Lt({
|
|
7485
7485
|
__name: "AppSidebar",
|
|
7486
7486
|
setup(n) {
|
|
7487
|
-
const e =
|
|
7487
|
+
const e = $e(), t = xn(), { t: r } = Wn(), i = Hn(t.currentRoute.value.name);
|
|
7488
7488
|
G(t.currentRoute, () => {
|
|
7489
7489
|
let l = t.currentRoute.value.name;
|
|
7490
7490
|
t.currentRoute.value.meta.parent && (l = t.currentRoute.value.meta.parent), i.value = l;
|
|
7491
7491
|
});
|
|
7492
|
-
const s =
|
|
7492
|
+
const s = Ve.map((l) => {
|
|
7493
7493
|
var f, m;
|
|
7494
7494
|
if (!((f = l.meta) != null && f.sidebarDisplay) || l.meta.region && !((m = l.meta.region) != null && m[e.currentCountry.value]) || l.meta.section)
|
|
7495
7495
|
return;
|
|
@@ -7532,16 +7532,7 @@ const Da = /* @__PURE__ */ Lt({
|
|
|
7532
7532
|
}).filter((l) => !!l), o = Dt(() => {
|
|
7533
7533
|
var u, d;
|
|
7534
7534
|
const l = [...s];
|
|
7535
|
-
return l.push({
|
|
7536
|
-
label: "",
|
|
7537
|
-
value: "divider",
|
|
7538
|
-
disabled: !0
|
|
7539
|
-
}), l.push({
|
|
7540
|
-
label: r("financing.title"),
|
|
7541
|
-
icon: "credit_score",
|
|
7542
|
-
value: "divider",
|
|
7543
|
-
disabled: !0
|
|
7544
|
-
}), l.push(...a(ue, "financing")), ((u = e.sessionUser.value) != null && u.role.isStaff || (d = e.sessionUser.value) != null && d.role.isAdmin) && (l.push({
|
|
7535
|
+
return ((u = e.sessionUser.value) != null && u.role.isStaff || (d = e.sessionUser.value) != null && d.role.isAdmin) && (l.push({
|
|
7545
7536
|
label: "",
|
|
7546
7537
|
value: "divider",
|
|
7547
7538
|
disabled: !0
|
|
@@ -7585,7 +7576,7 @@ var La = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDo
|
|
|
7585
7576
|
const qa = /* @__PURE__ */ Lt({
|
|
7586
7577
|
__name: "App",
|
|
7587
7578
|
setup(n) {
|
|
7588
|
-
const { state: e } = er(), t =
|
|
7579
|
+
const { state: e } = er(), t = $e(), r = Fn(), i = Kt(La.firebase);
|
|
7589
7580
|
async function s() {
|
|
7590
7581
|
const a = t.sessionUser.value;
|
|
7591
7582
|
if (!a || !a.token) return;
|
|
@@ -7620,7 +7611,7 @@ const qa = /* @__PURE__ */ Lt({
|
|
|
7620
7611
|
},
|
|
7621
7612
|
{}
|
|
7622
7613
|
);
|
|
7623
|
-
}, Va = [...K, ...
|
|
7614
|
+
}, Va = [...K, ...Ve];
|
|
7624
7615
|
export {
|
|
7625
7616
|
mt as _,
|
|
7626
7617
|
qa as a,
|