@feedmepos/mf-payment 1.5.39-dev → 1.5.40-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/{OnboardForm-bIRw9U_t.js → OnboardForm-p3d1P-PQ.js} +1 -1
- package/dist/{OnboardForm-CdvMiDck.js → OnboardForm-yKkepmuS.js} +1 -1
- package/dist/{PayoutAccount-CpltF2Qh.js → PayoutAccount-CKLDsKUE.js} +1 -1
- package/dist/{PayoutAccount-yNXpsIrL.js → PayoutAccount-Dgv8fbgz.js} +1 -1
- package/dist/{Transaction-Q13nx0Qp.js → Transaction-_bXdgbKw.js} +33 -14
- package/dist/{Transaction-DCNfMt73.js → Transaction-_m6N2d--.js} +29 -20
- package/dist/{app-BXtBp2DJ.js → app-DkSoMPUe.js} +125 -134
- package/dist/app.js +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-DhuyQ6az.js → payout-account-BL9BAkwp.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -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 = {
|
|
@@ -1174,7 +1174,7 @@ const Kn = {
|
|
|
1174
1174
|
sidebarDisplay: "Payout Accounts",
|
|
1175
1175
|
section: "payment-gateway"
|
|
1176
1176
|
},
|
|
1177
|
-
component: () => import("./PayoutAccount-
|
|
1177
|
+
component: () => import("./PayoutAccount-Dgv8fbgz.js")
|
|
1178
1178
|
},
|
|
1179
1179
|
{
|
|
1180
1180
|
path: "/admin/payout-accounts/:accountId",
|
|
@@ -1201,7 +1201,7 @@ const Kn = {
|
|
|
1201
1201
|
meta: {
|
|
1202
1202
|
parent: "mf-payment-admin.onboard-submission"
|
|
1203
1203
|
},
|
|
1204
|
-
component: () => import("./OnboardForm-
|
|
1204
|
+
component: () => import("./OnboardForm-yKkepmuS.js")
|
|
1205
1205
|
},
|
|
1206
1206
|
{
|
|
1207
1207
|
path: "/admin/terminal/pos",
|
|
@@ -1272,7 +1272,7 @@ const Kn = {
|
|
|
1272
1272
|
meta: {
|
|
1273
1273
|
sidebarDisplay: "Transactions"
|
|
1274
1274
|
},
|
|
1275
|
-
component: () => import("./Transaction-
|
|
1275
|
+
component: () => import("./Transaction-_bXdgbKw.js")
|
|
1276
1276
|
},
|
|
1277
1277
|
{
|
|
1278
1278
|
path: "/admin/chargeback",
|
|
@@ -1299,7 +1299,7 @@ const Kn = {
|
|
|
1299
1299
|
},
|
|
1300
1300
|
component: () => import("./SettlementTransactions-DN9uCpiR.js")
|
|
1301
1301
|
}
|
|
1302
|
-
],
|
|
1302
|
+
], Ve = [
|
|
1303
1303
|
{
|
|
1304
1304
|
path: "",
|
|
1305
1305
|
redirect: { name: "mf-payment-payout-account" }
|
|
@@ -1307,7 +1307,7 @@ const Kn = {
|
|
|
1307
1307
|
{
|
|
1308
1308
|
path: "/payout-account",
|
|
1309
1309
|
name: "mf-payment-payout-account",
|
|
1310
|
-
component: () => import("./PayoutAccount-
|
|
1310
|
+
component: () => import("./PayoutAccount-CKLDsKUE.js"),
|
|
1311
1311
|
meta: {
|
|
1312
1312
|
sidebarDisplay: "i18n:payment.routes.payout_account"
|
|
1313
1313
|
}
|
|
@@ -1325,7 +1325,7 @@ const Kn = {
|
|
|
1325
1325
|
path: "/onboard-submission/:type/:submission?",
|
|
1326
1326
|
name: "mf-payment-onboard-submission-form",
|
|
1327
1327
|
props: !0,
|
|
1328
|
-
component: () => import("./OnboardForm-
|
|
1328
|
+
component: () => import("./OnboardForm-p3d1P-PQ.js"),
|
|
1329
1329
|
meta: {
|
|
1330
1330
|
parent: "mf-payment-onboard-submission"
|
|
1331
1331
|
}
|
|
@@ -1341,7 +1341,7 @@ const Kn = {
|
|
|
1341
1341
|
{
|
|
1342
1342
|
path: "/transaction",
|
|
1343
1343
|
name: "mf-payment-transaction",
|
|
1344
|
-
component: () => import("./Transaction-
|
|
1344
|
+
component: () => import("./Transaction-_m6N2d--.js"),
|
|
1345
1345
|
meta: {
|
|
1346
1346
|
sidebarDisplay: "i18n:payment.routes.transaction_new",
|
|
1347
1347
|
sidebarNew: !0
|
|
@@ -1825,7 +1825,7 @@ function vr(n) {
|
|
|
1825
1825
|
return !1;
|
|
1826
1826
|
return !0;
|
|
1827
1827
|
}
|
|
1828
|
-
function
|
|
1828
|
+
function ue(n, e) {
|
|
1829
1829
|
if (n === e)
|
|
1830
1830
|
return !0;
|
|
1831
1831
|
const t = Object.keys(n), r = Object.keys(e);
|
|
@@ -1834,7 +1834,7 @@ function de(n, e) {
|
|
|
1834
1834
|
return !1;
|
|
1835
1835
|
const s = n[i], a = e[i];
|
|
1836
1836
|
if (at(s) && at(a)) {
|
|
1837
|
-
if (!
|
|
1837
|
+
if (!ue(s, a))
|
|
1838
1838
|
return !1;
|
|
1839
1839
|
} else if (s !== a)
|
|
1840
1840
|
return !1;
|
|
@@ -1921,7 +1921,7 @@ class wr {
|
|
|
1921
1921
|
next: e,
|
|
1922
1922
|
error: t,
|
|
1923
1923
|
complete: r
|
|
1924
|
-
}, i.next === void 0 && (i.next =
|
|
1924
|
+
}, i.next === void 0 && (i.next = Ee), i.error === void 0 && (i.error = Ee), i.complete === void 0 && (i.complete = Ee);
|
|
1925
1925
|
const s = this.unsubscribeOne.bind(this, this.observers.length);
|
|
1926
1926
|
return this.finalized && this.task.then(() => {
|
|
1927
1927
|
try {
|
|
@@ -1967,7 +1967,7 @@ function Tr(n, e) {
|
|
|
1967
1967
|
return !0;
|
|
1968
1968
|
return !1;
|
|
1969
1969
|
}
|
|
1970
|
-
function
|
|
1970
|
+
function Ee() {
|
|
1971
1971
|
}
|
|
1972
1972
|
/**
|
|
1973
1973
|
* @license
|
|
@@ -2374,7 +2374,7 @@ function Lr() {
|
|
|
2374
2374
|
IDBCursor.prototype.continuePrimaryKey
|
|
2375
2375
|
]);
|
|
2376
2376
|
}
|
|
2377
|
-
const Wt = /* @__PURE__ */ new WeakMap(),
|
|
2377
|
+
const Wt = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap();
|
|
2378
2378
|
function Mr(n) {
|
|
2379
2379
|
const e = new Promise((t, r) => {
|
|
2380
2380
|
const i = () => {
|
|
@@ -2392,7 +2392,7 @@ function Mr(n) {
|
|
|
2392
2392
|
}), We.set(e, n), e;
|
|
2393
2393
|
}
|
|
2394
2394
|
function Br(n) {
|
|
2395
|
-
if (
|
|
2395
|
+
if (Le.has(n))
|
|
2396
2396
|
return;
|
|
2397
2397
|
const e = new Promise((t, r) => {
|
|
2398
2398
|
const i = () => {
|
|
@@ -2404,13 +2404,13 @@ function Br(n) {
|
|
|
2404
2404
|
};
|
|
2405
2405
|
n.addEventListener("complete", s), n.addEventListener("error", a), n.addEventListener("abort", a);
|
|
2406
2406
|
});
|
|
2407
|
-
|
|
2407
|
+
Le.set(n, e);
|
|
2408
2408
|
}
|
|
2409
|
-
let
|
|
2409
|
+
let Me = {
|
|
2410
2410
|
get(n, e, t) {
|
|
2411
2411
|
if (n instanceof IDBTransaction) {
|
|
2412
2412
|
if (e === "done")
|
|
2413
|
-
return
|
|
2413
|
+
return Le.get(n);
|
|
2414
2414
|
if (e === "objectStoreNames")
|
|
2415
2415
|
return n.objectStoreNames || zt.get(n);
|
|
2416
2416
|
if (e === "store")
|
|
@@ -2426,30 +2426,30 @@ let Be = {
|
|
|
2426
2426
|
}
|
|
2427
2427
|
};
|
|
2428
2428
|
function Ur(n) {
|
|
2429
|
-
|
|
2429
|
+
Me = n(Me);
|
|
2430
2430
|
}
|
|
2431
2431
|
function xr(n) {
|
|
2432
2432
|
return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
|
|
2433
|
-
const r = n.call(
|
|
2433
|
+
const r = n.call(Re(this), e, ...t);
|
|
2434
2434
|
return zt.set(r, e.sort ? e.sort() : [e]), N(r);
|
|
2435
2435
|
} : Lr().includes(n) ? function(...e) {
|
|
2436
|
-
return n.apply(
|
|
2436
|
+
return n.apply(Re(this), e), N(Wt.get(this));
|
|
2437
2437
|
} : function(...e) {
|
|
2438
|
-
return N(n.apply(
|
|
2438
|
+
return N(n.apply(Re(this), e));
|
|
2439
2439
|
};
|
|
2440
2440
|
}
|
|
2441
2441
|
function Fr(n) {
|
|
2442
|
-
return typeof n == "function" ? xr(n) : (n instanceof IDBTransaction && Br(n), Or(n, Dr()) ? new Proxy(n,
|
|
2442
|
+
return typeof n == "function" ? xr(n) : (n instanceof IDBTransaction && Br(n), Or(n, Dr()) ? new Proxy(n, Me) : n);
|
|
2443
2443
|
}
|
|
2444
2444
|
function N(n) {
|
|
2445
2445
|
if (n instanceof IDBRequest)
|
|
2446
2446
|
return Mr(n);
|
|
2447
|
-
if (
|
|
2448
|
-
return
|
|
2447
|
+
if (Se.has(n))
|
|
2448
|
+
return Se.get(n);
|
|
2449
2449
|
const e = Fr(n);
|
|
2450
|
-
return e !== n && (
|
|
2450
|
+
return e !== n && (Se.set(n, e), We.set(e, n)), e;
|
|
2451
2451
|
}
|
|
2452
|
-
const
|
|
2452
|
+
const Re = (n) => We.get(n);
|
|
2453
2453
|
function Hr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
2454
2454
|
const a = indexedDB.open(n, e), c = N(a);
|
|
2455
2455
|
return r && a.addEventListener("upgradeneeded", (o) => {
|
|
@@ -2464,12 +2464,12 @@ function Hr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
|
2464
2464
|
}).catch(() => {
|
|
2465
2465
|
}), c;
|
|
2466
2466
|
}
|
|
2467
|
-
const qr = ["get", "getKey", "getAll", "getAllKeys", "count"], $r = ["put", "add", "delete", "clear"],
|
|
2467
|
+
const qr = ["get", "getKey", "getAll", "getAllKeys", "count"], $r = ["put", "add", "delete", "clear"], Ce = /* @__PURE__ */ new Map();
|
|
2468
2468
|
function lt(n, e) {
|
|
2469
2469
|
if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
|
|
2470
2470
|
return;
|
|
2471
|
-
if (
|
|
2472
|
-
return
|
|
2471
|
+
if (Ce.get(e))
|
|
2472
|
+
return Ce.get(e);
|
|
2473
2473
|
const t = e.replace(/FromIndex$/, ""), r = e !== t, i = $r.includes(t);
|
|
2474
2474
|
if (
|
|
2475
2475
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
|
@@ -2484,7 +2484,7 @@ function lt(n, e) {
|
|
|
2484
2484
|
i && o.done
|
|
2485
2485
|
]))[0];
|
|
2486
2486
|
};
|
|
2487
|
-
return
|
|
2487
|
+
return Ce.set(e, s), s;
|
|
2488
2488
|
}
|
|
2489
2489
|
Ur((n) => ({
|
|
2490
2490
|
...n,
|
|
@@ -2527,7 +2527,7 @@ function jr(n) {
|
|
|
2527
2527
|
const e = n.getComponent();
|
|
2528
2528
|
return (e == null ? void 0 : e.type) === "VERSION";
|
|
2529
2529
|
}
|
|
2530
|
-
const
|
|
2530
|
+
const Be = "@firebase/app", ut = "0.10.13";
|
|
2531
2531
|
/**
|
|
2532
2532
|
* @license
|
|
2533
2533
|
* Copyright 2019 Google LLC
|
|
@@ -2561,8 +2561,8 @@ const T = new jt("@firebase/app"), Wr = "@firebase/app-compat", zr = "@firebase/
|
|
|
2561
2561
|
* See the License for the specific language governing permissions and
|
|
2562
2562
|
* limitations under the License.
|
|
2563
2563
|
*/
|
|
2564
|
-
const
|
|
2565
|
-
[
|
|
2564
|
+
const Ue = "[DEFAULT]", bi = {
|
|
2565
|
+
[Be]: "fire-core",
|
|
2566
2566
|
[Wr]: "fire-core-compat",
|
|
2567
2567
|
[Gr]: "fire-analytics",
|
|
2568
2568
|
[zr]: "fire-analytics-compat",
|
|
@@ -2607,7 +2607,7 @@ const xe = "[DEFAULT]", bi = {
|
|
|
2607
2607
|
* See the License for the specific language governing permissions and
|
|
2608
2608
|
* limitations under the License.
|
|
2609
2609
|
*/
|
|
2610
|
-
const
|
|
2610
|
+
const de = /* @__PURE__ */ new Map(), yi = /* @__PURE__ */ new Map(), xe = /* @__PURE__ */ new Map();
|
|
2611
2611
|
function dt(n, e) {
|
|
2612
2612
|
try {
|
|
2613
2613
|
n.container.addComponent(e);
|
|
@@ -2617,10 +2617,10 @@ function dt(n, e) {
|
|
|
2617
2617
|
}
|
|
2618
2618
|
function Y(n) {
|
|
2619
2619
|
const e = n.name;
|
|
2620
|
-
if (
|
|
2620
|
+
if (xe.has(e))
|
|
2621
2621
|
return T.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
2622
|
-
|
|
2623
|
-
for (const t of
|
|
2622
|
+
xe.set(e, n);
|
|
2623
|
+
for (const t of de.values())
|
|
2624
2624
|
dt(t, n);
|
|
2625
2625
|
for (const t of yi.values())
|
|
2626
2626
|
dt(t, n);
|
|
@@ -2743,7 +2743,7 @@ const te = _i;
|
|
|
2743
2743
|
function Kt(n, e = {}) {
|
|
2744
2744
|
let t = n;
|
|
2745
2745
|
typeof e != "object" && (e = { name: e });
|
|
2746
|
-
const r = Object.assign({ name:
|
|
2746
|
+
const r = Object.assign({ name: Ue, automaticDataCollectionEnabled: !1 }, e), i = r.name;
|
|
2747
2747
|
if (typeof i != "string" || !i)
|
|
2748
2748
|
throw O.create("bad-app-name", {
|
|
2749
2749
|
appName: String(i)
|
|
@@ -2753,21 +2753,21 @@ function Kt(n, e = {}) {
|
|
|
2753
2753
|
"no-options"
|
|
2754
2754
|
/* AppError.NO_OPTIONS */
|
|
2755
2755
|
);
|
|
2756
|
-
const s =
|
|
2756
|
+
const s = de.get(i);
|
|
2757
2757
|
if (s) {
|
|
2758
|
-
if (
|
|
2758
|
+
if (ue(t, s.options) && ue(r, s.config))
|
|
2759
2759
|
return s;
|
|
2760
2760
|
throw O.create("duplicate-app", { appName: i });
|
|
2761
2761
|
}
|
|
2762
2762
|
const a = new Rr(i);
|
|
2763
|
-
for (const o of
|
|
2763
|
+
for (const o of xe.values())
|
|
2764
2764
|
a.addComponent(o);
|
|
2765
2765
|
const c = new Ii(t, r, a);
|
|
2766
|
-
return
|
|
2766
|
+
return de.set(i, c), c;
|
|
2767
2767
|
}
|
|
2768
|
-
function wi(n =
|
|
2769
|
-
const e =
|
|
2770
|
-
if (!e && n ===
|
|
2768
|
+
function wi(n = Ue) {
|
|
2769
|
+
const e = de.get(n);
|
|
2770
|
+
if (!e && n === Ue && $t())
|
|
2771
2771
|
return Kt();
|
|
2772
2772
|
if (!e)
|
|
2773
2773
|
throw O.create("no-app", { appName: n });
|
|
@@ -2809,9 +2809,9 @@ function H(n, e, t) {
|
|
|
2809
2809
|
* limitations under the License.
|
|
2810
2810
|
*/
|
|
2811
2811
|
const Ti = "firebase-heartbeat-database", ki = 1, X = "firebase-heartbeat-store";
|
|
2812
|
-
let
|
|
2812
|
+
let Ae = null;
|
|
2813
2813
|
function Jt() {
|
|
2814
|
-
return
|
|
2814
|
+
return Ae || (Ae = Hr(Ti, ki, {
|
|
2815
2815
|
upgrade: (n, e) => {
|
|
2816
2816
|
switch (e) {
|
|
2817
2817
|
case 0:
|
|
@@ -2826,7 +2826,7 @@ function Jt() {
|
|
|
2826
2826
|
throw O.create("idb-open", {
|
|
2827
2827
|
originalErrorMessage: n.message
|
|
2828
2828
|
});
|
|
2829
|
-
})),
|
|
2829
|
+
})), Ae;
|
|
2830
2830
|
}
|
|
2831
2831
|
async function Ei(n) {
|
|
2832
2832
|
try {
|
|
@@ -3027,7 +3027,7 @@ function Ni(n) {
|
|
|
3027
3027
|
(e) => new Ci(e),
|
|
3028
3028
|
"PRIVATE"
|
|
3029
3029
|
/* ComponentType.PRIVATE */
|
|
3030
|
-
)), H(
|
|
3030
|
+
)), H(Be, ut, n), H(Be, ut, "esm2017"), H("fire-js", "");
|
|
3031
3031
|
}
|
|
3032
3032
|
Ni("");
|
|
3033
3033
|
var Oi = "firebase", Di = "10.14.1";
|
|
@@ -3087,12 +3087,12 @@ const Li = Xt, Qt = new Z("auth", "Firebase", Xt());
|
|
|
3087
3087
|
* See the License for the specific language governing permissions and
|
|
3088
3088
|
* limitations under the License.
|
|
3089
3089
|
*/
|
|
3090
|
-
const
|
|
3090
|
+
const he = new jt("@firebase/auth");
|
|
3091
3091
|
function Mi(n, ...e) {
|
|
3092
|
-
|
|
3092
|
+
he.logLevel <= p.WARN && he.warn(`Auth (${te}): ${n}`, ...e);
|
|
3093
3093
|
}
|
|
3094
3094
|
function ae(n, ...e) {
|
|
3095
|
-
|
|
3095
|
+
he.logLevel <= p.ERROR && he.error(`Auth (${te}): ${n}`, ...e);
|
|
3096
3096
|
}
|
|
3097
3097
|
/**
|
|
3098
3098
|
* @license
|
|
@@ -3159,7 +3159,7 @@ function E(n, e) {
|
|
|
3159
3159
|
* See the License for the specific language governing permissions and
|
|
3160
3160
|
* limitations under the License.
|
|
3161
3161
|
*/
|
|
3162
|
-
function
|
|
3162
|
+
function Fe() {
|
|
3163
3163
|
var n;
|
|
3164
3164
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
|
|
3165
3165
|
}
|
|
@@ -3413,7 +3413,7 @@ const Fi = {
|
|
|
3413
3413
|
* limitations under the License.
|
|
3414
3414
|
*/
|
|
3415
3415
|
const Hi = new ne(3e4, 6e4);
|
|
3416
|
-
function
|
|
3416
|
+
function _e(n, e) {
|
|
3417
3417
|
return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
|
|
3418
3418
|
}
|
|
3419
3419
|
async function z(n, e, t, r, i = {}) {
|
|
@@ -3561,14 +3561,14 @@ async function Vi(n, e = !1) {
|
|
|
3561
3561
|
return {
|
|
3562
3562
|
claims: i,
|
|
3563
3563
|
token: r,
|
|
3564
|
-
authTime: J(
|
|
3565
|
-
issuedAtTime: J(
|
|
3566
|
-
expirationTime: J(
|
|
3564
|
+
authTime: J(Pe(i.auth_time)),
|
|
3565
|
+
issuedAtTime: J(Pe(i.iat)),
|
|
3566
|
+
expirationTime: J(Pe(i.exp)),
|
|
3567
3567
|
signInProvider: a || null,
|
|
3568
3568
|
signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
|
|
3569
3569
|
};
|
|
3570
3570
|
}
|
|
3571
|
-
function
|
|
3571
|
+
function Pe(n) {
|
|
3572
3572
|
return Number(n) * 1e3;
|
|
3573
3573
|
}
|
|
3574
3574
|
function Je(n) {
|
|
@@ -3704,7 +3704,7 @@ class Wi {
|
|
|
3704
3704
|
* See the License for the specific language governing permissions and
|
|
3705
3705
|
* limitations under the License.
|
|
3706
3706
|
*/
|
|
3707
|
-
class
|
|
3707
|
+
class He {
|
|
3708
3708
|
constructor(e, t) {
|
|
3709
3709
|
this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
|
|
3710
3710
|
}
|
|
@@ -3737,7 +3737,7 @@ class qe {
|
|
|
3737
3737
|
* See the License for the specific language governing permissions and
|
|
3738
3738
|
* limitations under the License.
|
|
3739
3739
|
*/
|
|
3740
|
-
async function
|
|
3740
|
+
async function pe(n) {
|
|
3741
3741
|
var e;
|
|
3742
3742
|
const t = n.auth, r = await n.getIdToken(), i = await Q(n, sn(t, { idToken: r }));
|
|
3743
3743
|
h(
|
|
@@ -3757,14 +3757,14 @@ async function fe(n) {
|
|
|
3757
3757
|
phoneNumber: s.phoneNumber || null,
|
|
3758
3758
|
tenantId: s.tenantId || null,
|
|
3759
3759
|
providerData: c,
|
|
3760
|
-
metadata: new
|
|
3760
|
+
metadata: new He(s.createdAt, s.lastLoginAt),
|
|
3761
3761
|
isAnonymous: u
|
|
3762
3762
|
};
|
|
3763
3763
|
Object.assign(n, d);
|
|
3764
3764
|
}
|
|
3765
3765
|
async function zi(n) {
|
|
3766
3766
|
const e = W(n);
|
|
3767
|
-
await
|
|
3767
|
+
await pe(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
3768
3768
|
}
|
|
3769
3769
|
function Gi(n, e) {
|
|
3770
3770
|
return [...n.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
|
|
@@ -3820,7 +3820,7 @@ async function Ki(n, e) {
|
|
|
3820
3820
|
};
|
|
3821
3821
|
}
|
|
3822
3822
|
async function Ji(n, e) {
|
|
3823
|
-
return z(n, "POST", "/v2/accounts:revokeToken",
|
|
3823
|
+
return z(n, "POST", "/v2/accounts:revokeToken", _e(n, e));
|
|
3824
3824
|
}
|
|
3825
3825
|
/**
|
|
3826
3826
|
* @license
|
|
@@ -3938,7 +3938,7 @@ function S(n, e) {
|
|
|
3938
3938
|
class I {
|
|
3939
3939
|
constructor(e) {
|
|
3940
3940
|
var { uid: t, auth: r, stsTokenManager: i } = e, s = ze(e, ["uid", "auth", "stsTokenManager"]);
|
|
3941
|
-
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
|
|
3941
|
+
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);
|
|
3942
3942
|
}
|
|
3943
3943
|
async getIdToken(e) {
|
|
3944
3944
|
const t = await Q(this, this.stsTokenManager.getToken(this.auth, e));
|
|
@@ -3986,7 +3986,7 @@ class I {
|
|
|
3986
3986
|
}
|
|
3987
3987
|
async _updateTokensIfNecessary(e, t = !1) {
|
|
3988
3988
|
let r = !1;
|
|
3989
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await
|
|
3989
|
+
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);
|
|
3990
3990
|
}
|
|
3991
3991
|
async delete() {
|
|
3992
3992
|
if (y(this.auth.app))
|
|
@@ -4020,16 +4020,16 @@ class I {
|
|
|
4020
4020
|
}
|
|
4021
4021
|
static _fromJSON(e, t) {
|
|
4022
4022
|
var r, i, s, a, c, o, l, u;
|
|
4023
|
-
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,
|
|
4023
|
+
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;
|
|
4024
4024
|
h(
|
|
4025
|
-
|
|
4025
|
+
we && st,
|
|
4026
4026
|
e,
|
|
4027
4027
|
"internal-error"
|
|
4028
4028
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
4029
4029
|
);
|
|
4030
4030
|
const Nn = q.fromJSON(this.name, st);
|
|
4031
4031
|
h(
|
|
4032
|
-
typeof
|
|
4032
|
+
typeof we == "string",
|
|
4033
4033
|
e,
|
|
4034
4034
|
"internal-error"
|
|
4035
4035
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -4043,9 +4043,9 @@ class I {
|
|
|
4043
4043
|
e,
|
|
4044
4044
|
"internal-error"
|
|
4045
4045
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
4046
|
-
), S(m, e.name), S(x, e.name), S(et, e.name), S(
|
|
4047
|
-
const
|
|
4048
|
-
uid:
|
|
4046
|
+
), S(m, e.name), S(x, e.name), S(et, e.name), S(Ie, e.name), S(tt, e.name), S(nt, e.name);
|
|
4047
|
+
const ke = new I({
|
|
4048
|
+
uid: we,
|
|
4049
4049
|
auth: e,
|
|
4050
4050
|
email: f,
|
|
4051
4051
|
emailVerified: rt,
|
|
@@ -4058,7 +4058,7 @@ class I {
|
|
|
4058
4058
|
createdAt: tt,
|
|
4059
4059
|
lastLoginAt: nt
|
|
4060
4060
|
});
|
|
4061
|
-
return
|
|
4061
|
+
return Te && Array.isArray(Te) && (ke.providerData = Te.map((On) => Object.assign({}, On))), Ie && (ke._redirectEventId = Ie), ke;
|
|
4062
4062
|
}
|
|
4063
4063
|
/**
|
|
4064
4064
|
* Initialize a User from an idToken server response
|
|
@@ -4074,7 +4074,7 @@ class I {
|
|
|
4074
4074
|
stsTokenManager: i,
|
|
4075
4075
|
isAnonymous: r
|
|
4076
4076
|
});
|
|
4077
|
-
return await
|
|
4077
|
+
return await pe(s), s;
|
|
4078
4078
|
}
|
|
4079
4079
|
/**
|
|
4080
4080
|
* Initialize a User from an idToken server response
|
|
@@ -4104,7 +4104,7 @@ class I {
|
|
|
4104
4104
|
phoneNumber: i.phoneNumber || null,
|
|
4105
4105
|
tenantId: i.tenantId || null,
|
|
4106
4106
|
providerData: s,
|
|
4107
|
-
metadata: new
|
|
4107
|
+
metadata: new He(i.createdAt, i.lastLoginAt),
|
|
4108
4108
|
isAnonymous: !(i.email && i.passwordHash) && !(s != null && s.length)
|
|
4109
4109
|
};
|
|
4110
4110
|
return Object.assign(o, l), o;
|
|
@@ -4435,7 +4435,7 @@ class Qi {
|
|
|
4435
4435
|
* limitations under the License.
|
|
4436
4436
|
*/
|
|
4437
4437
|
async function Zi(n, e = {}) {
|
|
4438
|
-
return z(n, "GET", "/v2/passwordPolicy",
|
|
4438
|
+
return z(n, "GET", "/v2/passwordPolicy", _e(n, e));
|
|
4439
4439
|
}
|
|
4440
4440
|
/**
|
|
4441
4441
|
* @license
|
|
@@ -4629,7 +4629,7 @@ class ns {
|
|
|
4629
4629
|
}
|
|
4630
4630
|
async reloadAndSetCurrentUserOrClear(e) {
|
|
4631
4631
|
try {
|
|
4632
|
-
await
|
|
4632
|
+
await pe(e);
|
|
4633
4633
|
} catch (t) {
|
|
4634
4634
|
if ((t == null ? void 0 : t.code) !== "auth/network-request-failed")
|
|
4635
4635
|
return this.directlySetCurrentUser(null);
|
|
@@ -4874,7 +4874,7 @@ class ns {
|
|
|
4874
4874
|
return t != null && t.error && Mi(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
|
|
4875
4875
|
}
|
|
4876
4876
|
}
|
|
4877
|
-
function
|
|
4877
|
+
function be(n) {
|
|
4878
4878
|
return W(n);
|
|
4879
4879
|
}
|
|
4880
4880
|
class It {
|
|
@@ -4946,7 +4946,7 @@ function os(n, e) {
|
|
|
4946
4946
|
const t = Gt(n, "auth");
|
|
4947
4947
|
if (t.isInitialized()) {
|
|
4948
4948
|
const i = t.getImmediate(), s = t.getOptions();
|
|
4949
|
-
if (
|
|
4949
|
+
if (ue(s, e ?? {}))
|
|
4950
4950
|
return i;
|
|
4951
4951
|
k(
|
|
4952
4952
|
i,
|
|
@@ -4961,7 +4961,7 @@ function cs(n, e) {
|
|
|
4961
4961
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
|
4962
4962
|
}
|
|
4963
4963
|
function ls(n, e, t) {
|
|
4964
|
-
const r =
|
|
4964
|
+
const r = be(n);
|
|
4965
4965
|
h(
|
|
4966
4966
|
r._canInitEmulator,
|
|
4967
4967
|
r,
|
|
@@ -5070,7 +5070,7 @@ class bn {
|
|
|
5070
5070
|
* limitations under the License.
|
|
5071
5071
|
*/
|
|
5072
5072
|
async function V(n, e) {
|
|
5073
|
-
return nn(n, "POST", "/v1/accounts:signInWithIdp",
|
|
5073
|
+
return nn(n, "POST", "/v1/accounts:signInWithIdp", _e(n, e));
|
|
5074
5074
|
}
|
|
5075
5075
|
/**
|
|
5076
5076
|
* @license
|
|
@@ -5589,10 +5589,10 @@ function Tt(n) {
|
|
|
5589
5589
|
* See the License for the specific language governing permissions and
|
|
5590
5590
|
* limitations under the License.
|
|
5591
5591
|
*/
|
|
5592
|
-
class
|
|
5592
|
+
class fe extends L {
|
|
5593
5593
|
constructor(e, t, r, i) {
|
|
5594
5594
|
var s;
|
|
5595
|
-
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this,
|
|
5595
|
+
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this, fe.prototype), this.customData = {
|
|
5596
5596
|
appName: e.name,
|
|
5597
5597
|
tenantId: (s = e.tenantId) !== null && s !== void 0 ? s : void 0,
|
|
5598
5598
|
_serverResponse: t.customData._serverResponse,
|
|
@@ -5600,12 +5600,12 @@ class me extends L {
|
|
|
5600
5600
|
};
|
|
5601
5601
|
}
|
|
5602
5602
|
static _fromErrorAndOperation(e, t, r, i) {
|
|
5603
|
-
return new
|
|
5603
|
+
return new fe(e, t, r, i);
|
|
5604
5604
|
}
|
|
5605
5605
|
}
|
|
5606
5606
|
function vn(n, e, t, r) {
|
|
5607
5607
|
return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
|
|
5608
|
-
throw s.code === "auth/multi-factor-auth-required" ?
|
|
5608
|
+
throw s.code === "auth/multi-factor-auth-required" ? fe._fromErrorAndOperation(n, s, e, r) : s;
|
|
5609
5609
|
});
|
|
5610
5610
|
}
|
|
5611
5611
|
async function ps(n, e, t = !1) {
|
|
@@ -5702,7 +5702,7 @@ async function ms(n, e, t = !1) {
|
|
|
5702
5702
|
* limitations under the License.
|
|
5703
5703
|
*/
|
|
5704
5704
|
async function gs(n, e) {
|
|
5705
|
-
return nn(n, "POST", "/v1/accounts:signInWithCustomToken",
|
|
5705
|
+
return nn(n, "POST", "/v1/accounts:signInWithCustomToken", _e(n, e));
|
|
5706
5706
|
}
|
|
5707
5707
|
/**
|
|
5708
5708
|
* @license
|
|
@@ -5723,7 +5723,7 @@ async function gs(n, e) {
|
|
|
5723
5723
|
async function _s(n, e) {
|
|
5724
5724
|
if (y(n.app))
|
|
5725
5725
|
return Promise.reject(D(n));
|
|
5726
|
-
const t =
|
|
5726
|
+
const t = be(n), r = await gs(t, {
|
|
5727
5727
|
token: e,
|
|
5728
5728
|
returnSecureToken: !0
|
|
5729
5729
|
}), i = await U._fromIdTokenResponse(t, "signIn", r);
|
|
@@ -5735,7 +5735,7 @@ function bs(n, e, t, r) {
|
|
|
5735
5735
|
function ys(n, e, t) {
|
|
5736
5736
|
return W(n).beforeAuthStateChanged(e, t);
|
|
5737
5737
|
}
|
|
5738
|
-
const
|
|
5738
|
+
const me = "__sak";
|
|
5739
5739
|
/**
|
|
5740
5740
|
* @license
|
|
5741
5741
|
* Copyright 2019 Google LLC
|
|
@@ -5758,7 +5758,7 @@ class In {
|
|
|
5758
5758
|
}
|
|
5759
5759
|
_isAvailable() {
|
|
5760
5760
|
try {
|
|
5761
|
-
return this.storage ? (this.storage.setItem(
|
|
5761
|
+
return this.storage ? (this.storage.setItem(me, "1"), this.storage.removeItem(me), Promise.resolve(!0)) : Promise.resolve(!1);
|
|
5762
5762
|
} catch {
|
|
5763
5763
|
return Promise.resolve(!1);
|
|
5764
5764
|
}
|
|
@@ -5952,7 +5952,7 @@ function Ts(n) {
|
|
|
5952
5952
|
* See the License for the specific language governing permissions and
|
|
5953
5953
|
* limitations under the License.
|
|
5954
5954
|
*/
|
|
5955
|
-
class
|
|
5955
|
+
class ye {
|
|
5956
5956
|
constructor(e) {
|
|
5957
5957
|
this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
|
|
5958
5958
|
}
|
|
@@ -5966,7 +5966,7 @@ class ve {
|
|
|
5966
5966
|
const t = this.receivers.find((i) => i.isListeningto(e));
|
|
5967
5967
|
if (t)
|
|
5968
5968
|
return t;
|
|
5969
|
-
const r = new
|
|
5969
|
+
const r = new ye(e);
|
|
5970
5970
|
return this.receivers.push(r), r;
|
|
5971
5971
|
}
|
|
5972
5972
|
isListeningto(e) {
|
|
@@ -6020,7 +6020,7 @@ class ve {
|
|
|
6020
6020
|
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);
|
|
6021
6021
|
}
|
|
6022
6022
|
}
|
|
6023
|
-
|
|
6023
|
+
ye.receivers = [];
|
|
6024
6024
|
/**
|
|
6025
6025
|
* @license
|
|
6026
6026
|
* Copyright 2020 Google LLC
|
|
@@ -6213,7 +6213,7 @@ function Cs() {
|
|
|
6213
6213
|
* See the License for the specific language governing permissions and
|
|
6214
6214
|
* limitations under the License.
|
|
6215
6215
|
*/
|
|
6216
|
-
const Sn = "firebaseLocalStorageDb", As = 1,
|
|
6216
|
+
const Sn = "firebaseLocalStorageDb", As = 1, ge = "firebaseLocalStorage", Rn = "fbase_key";
|
|
6217
6217
|
class ie {
|
|
6218
6218
|
constructor(e) {
|
|
6219
6219
|
this.request = e;
|
|
@@ -6228,14 +6228,14 @@ class ie {
|
|
|
6228
6228
|
});
|
|
6229
6229
|
}
|
|
6230
6230
|
}
|
|
6231
|
-
function
|
|
6232
|
-
return n.transaction([
|
|
6231
|
+
function ve(n, e) {
|
|
6232
|
+
return n.transaction([ge], e ? "readwrite" : "readonly").objectStore(ge);
|
|
6233
6233
|
}
|
|
6234
6234
|
function Ps() {
|
|
6235
6235
|
const n = indexedDB.deleteDatabase(Sn);
|
|
6236
6236
|
return new ie(n).toPromise();
|
|
6237
6237
|
}
|
|
6238
|
-
function
|
|
6238
|
+
function qe() {
|
|
6239
6239
|
const n = indexedDB.open(Sn, As);
|
|
6240
6240
|
return new Promise((e, t) => {
|
|
6241
6241
|
n.addEventListener("error", () => {
|
|
@@ -6243,29 +6243,29 @@ function $e() {
|
|
|
6243
6243
|
}), n.addEventListener("upgradeneeded", () => {
|
|
6244
6244
|
const r = n.result;
|
|
6245
6245
|
try {
|
|
6246
|
-
r.createObjectStore(
|
|
6246
|
+
r.createObjectStore(ge, { keyPath: Rn });
|
|
6247
6247
|
} catch (i) {
|
|
6248
6248
|
t(i);
|
|
6249
6249
|
}
|
|
6250
6250
|
}), n.addEventListener("success", async () => {
|
|
6251
6251
|
const r = n.result;
|
|
6252
|
-
r.objectStoreNames.contains(
|
|
6252
|
+
r.objectStoreNames.contains(ge) ? e(r) : (r.close(), await Ps(), e(await qe()));
|
|
6253
6253
|
});
|
|
6254
6254
|
});
|
|
6255
6255
|
}
|
|
6256
6256
|
async function kt(n, e, t) {
|
|
6257
|
-
const r =
|
|
6257
|
+
const r = ve(n, !0).put({
|
|
6258
6258
|
[Rn]: e,
|
|
6259
6259
|
value: t
|
|
6260
6260
|
});
|
|
6261
6261
|
return new ie(r).toPromise();
|
|
6262
6262
|
}
|
|
6263
6263
|
async function Ns(n, e) {
|
|
6264
|
-
const t =
|
|
6264
|
+
const t = ve(n, !1).get(e), r = await new ie(t).toPromise();
|
|
6265
6265
|
return r === void 0 ? null : r.value;
|
|
6266
6266
|
}
|
|
6267
6267
|
function Et(n, e) {
|
|
6268
|
-
const t =
|
|
6268
|
+
const t = ve(n, !0).delete(e);
|
|
6269
6269
|
return new ie(t).toPromise();
|
|
6270
6270
|
}
|
|
6271
6271
|
const Os = 800, Ds = 3;
|
|
@@ -6276,7 +6276,7 @@ class Cn {
|
|
|
6276
6276
|
});
|
|
6277
6277
|
}
|
|
6278
6278
|
async _openDb() {
|
|
6279
|
-
return this.db ? this.db : (this.db = await
|
|
6279
|
+
return this.db ? this.db : (this.db = await qe(), this.db);
|
|
6280
6280
|
}
|
|
6281
6281
|
async _withRetries(e) {
|
|
6282
6282
|
let t = 0;
|
|
@@ -6301,7 +6301,7 @@ class Cn {
|
|
|
6301
6301
|
* As the worker we should listen to events from the main window.
|
|
6302
6302
|
*/
|
|
6303
6303
|
async initializeReceiver() {
|
|
6304
|
-
this.receiver =
|
|
6304
|
+
this.receiver = ye._getInstance(Cs()), this.receiver._subscribe("keyChanged", async (e, t) => ({
|
|
6305
6305
|
keyProcessed: (await this._poll()).includes(t.key)
|
|
6306
6306
|
})), this.receiver._subscribe("ping", async (e, t) => [
|
|
6307
6307
|
"keyChanged"
|
|
@@ -6357,8 +6357,8 @@ class Cn {
|
|
|
6357
6357
|
try {
|
|
6358
6358
|
if (!indexedDB)
|
|
6359
6359
|
return !1;
|
|
6360
|
-
const e = await
|
|
6361
|
-
return await kt(e,
|
|
6360
|
+
const e = await qe();
|
|
6361
|
+
return await kt(e, me, "1"), await Et(e, me), !0;
|
|
6362
6362
|
} catch {
|
|
6363
6363
|
}
|
|
6364
6364
|
return !1;
|
|
@@ -6383,7 +6383,7 @@ class Cn {
|
|
|
6383
6383
|
}
|
|
6384
6384
|
async _poll() {
|
|
6385
6385
|
const e = await this._withRetries((i) => {
|
|
6386
|
-
const s =
|
|
6386
|
+
const s = ve(i, !1).getAll();
|
|
6387
6387
|
return new ie(s).toPromise();
|
|
6388
6388
|
});
|
|
6389
6389
|
if (!e)
|
|
@@ -6763,7 +6763,7 @@ function Ws(n) {
|
|
|
6763
6763
|
async function zs(n, e, t = !1) {
|
|
6764
6764
|
if (y(n.app))
|
|
6765
6765
|
return Promise.reject(D(n));
|
|
6766
|
-
const r =
|
|
6766
|
+
const r = be(n), i = Ms(r, e), a = await new qs(r, i, t).execute();
|
|
6767
6767
|
return a && !t && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
|
|
6768
6768
|
}
|
|
6769
6769
|
/**
|
|
@@ -6891,7 +6891,7 @@ async function Zs(n) {
|
|
|
6891
6891
|
);
|
|
6892
6892
|
}
|
|
6893
6893
|
function ea(n) {
|
|
6894
|
-
const e =
|
|
6894
|
+
const e = Fe(), { protocol: t, hostname: r } = new URL(e);
|
|
6895
6895
|
if (n.startsWith("chrome-extension://")) {
|
|
6896
6896
|
const a = new URL(n);
|
|
6897
6897
|
return a.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && a.hostname === r;
|
|
@@ -7188,7 +7188,7 @@ function Ia({ config: n }) {
|
|
|
7188
7188
|
* See the License for the specific language governing permissions and
|
|
7189
7189
|
* limitations under the License.
|
|
7190
7190
|
*/
|
|
7191
|
-
const
|
|
7191
|
+
const Ne = "webStorageSupport";
|
|
7192
7192
|
class wa {
|
|
7193
7193
|
constructor() {
|
|
7194
7194
|
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = kn, this._completeRedirectFn = zs, this._overrideRedirectResult = Vs;
|
|
@@ -7198,12 +7198,12 @@ class wa {
|
|
|
7198
7198
|
async _openPopup(e, t, r, i) {
|
|
7199
7199
|
var s;
|
|
7200
7200
|
E((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
|
7201
|
-
const a = await At(e, t, r,
|
|
7201
|
+
const a = await At(e, t, r, Fe(), i);
|
|
7202
7202
|
return ga(e, a, Qe());
|
|
7203
7203
|
}
|
|
7204
7204
|
async _openRedirect(e, t, r, i) {
|
|
7205
7205
|
await this._originValidation(e);
|
|
7206
|
-
const s = await At(e, t, r,
|
|
7206
|
+
const s = await At(e, t, r, Fe(), i);
|
|
7207
7207
|
return Es(s), new Promise(() => {
|
|
7208
7208
|
});
|
|
7209
7209
|
}
|
|
@@ -7231,9 +7231,9 @@ class wa {
|
|
|
7231
7231
|
}), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = t, r;
|
|
7232
7232
|
}
|
|
7233
7233
|
_isIframeWebStorageSupported(e, t) {
|
|
7234
|
-
this.iframes[e._key()].send(
|
|
7234
|
+
this.iframes[e._key()].send(Ne, { type: Ne }, (i) => {
|
|
7235
7235
|
var s;
|
|
7236
|
-
const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[
|
|
7236
|
+
const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[Ne];
|
|
7237
7237
|
a !== void 0 && t(!!a), k(
|
|
7238
7238
|
e,
|
|
7239
7239
|
"internal-error"
|
|
@@ -7364,7 +7364,7 @@ function Sa(n) {
|
|
|
7364
7364
|
})), Y(new j(
|
|
7365
7365
|
"auth-internal",
|
|
7366
7366
|
(e) => {
|
|
7367
|
-
const t =
|
|
7367
|
+
const t = be(e.getProvider(
|
|
7368
7368
|
"auth"
|
|
7369
7369
|
/* _ComponentName.AUTH */
|
|
7370
7370
|
).getImmediate());
|
|
@@ -7457,7 +7457,7 @@ Sa(
|
|
|
7457
7457
|
const Oa = Bn({
|
|
7458
7458
|
history: Un(),
|
|
7459
7459
|
routes: [
|
|
7460
|
-
...
|
|
7460
|
+
...Ve,
|
|
7461
7461
|
...K,
|
|
7462
7462
|
{
|
|
7463
7463
|
path: "/forbidden",
|
|
@@ -7466,7 +7466,7 @@ const Oa = Bn({
|
|
|
7466
7466
|
}
|
|
7467
7467
|
]
|
|
7468
7468
|
});
|
|
7469
|
-
let
|
|
7469
|
+
let Oe, De;
|
|
7470
7470
|
Oa.beforeEach(async (n) => {
|
|
7471
7471
|
const {
|
|
7472
7472
|
sessionUser: e,
|
|
@@ -7474,10 +7474,10 @@ Oa.beforeEach(async (n) => {
|
|
|
7474
7474
|
currentBusiness: r,
|
|
7475
7475
|
readRestaurants: i,
|
|
7476
7476
|
changeRestaurant: s
|
|
7477
|
-
} =
|
|
7477
|
+
} = $e();
|
|
7478
7478
|
if (n.name && n.name.startsWith("mf-payment-admin")) {
|
|
7479
7479
|
if (!e.value) {
|
|
7480
|
-
|
|
7480
|
+
Oe || (Oe = new Promise((c) => {
|
|
7481
7481
|
const o = G(e, (l) => {
|
|
7482
7482
|
var u, d;
|
|
7483
7483
|
l && (o(), c(
|
|
@@ -7485,12 +7485,12 @@ Oa.beforeEach(async (n) => {
|
|
|
7485
7485
|
));
|
|
7486
7486
|
});
|
|
7487
7487
|
}));
|
|
7488
|
-
const a = await
|
|
7488
|
+
const a = await Oe;
|
|
7489
7489
|
return a || { name: "mf-payment-forbidden" };
|
|
7490
7490
|
}
|
|
7491
7491
|
return !0;
|
|
7492
7492
|
}
|
|
7493
|
-
return !r.value || !t.value ? (
|
|
7493
|
+
return !r.value || !t.value ? (De || (De = Promise.all([
|
|
7494
7494
|
new Promise(async (a) => {
|
|
7495
7495
|
const c = G(r, (o) => {
|
|
7496
7496
|
o && (c(), a(!0));
|
|
@@ -7502,17 +7502,17 @@ Oa.beforeEach(async (n) => {
|
|
|
7502
7502
|
}), o = await i();
|
|
7503
7503
|
await s(o == null ? void 0 : o.at(0));
|
|
7504
7504
|
})
|
|
7505
|
-
]).then((a) => !0)),
|
|
7505
|
+
]).then((a) => !0)), De) : !0;
|
|
7506
7506
|
});
|
|
7507
7507
|
const Da = /* @__PURE__ */ Lt({
|
|
7508
7508
|
__name: "AppSidebar",
|
|
7509
7509
|
setup(n) {
|
|
7510
|
-
const e =
|
|
7510
|
+
const e = $e(), t = xn(), { t: r } = Wn(), i = Hn(t.currentRoute.value.name);
|
|
7511
7511
|
G(t.currentRoute, () => {
|
|
7512
7512
|
let l = t.currentRoute.value.name;
|
|
7513
7513
|
t.currentRoute.value.meta.parent && (l = t.currentRoute.value.meta.parent), i.value = l;
|
|
7514
7514
|
});
|
|
7515
|
-
const s =
|
|
7515
|
+
const s = Ve.map((l) => {
|
|
7516
7516
|
var f, m;
|
|
7517
7517
|
if (!((f = l.meta) != null && f.sidebarDisplay) || l.meta.region && !((m = l.meta.region) != null && m[e.currentCountry.value]) || l.meta.section)
|
|
7518
7518
|
return;
|
|
@@ -7555,16 +7555,7 @@ const Da = /* @__PURE__ */ Lt({
|
|
|
7555
7555
|
}).filter((l) => !!l), o = Dt(() => {
|
|
7556
7556
|
var u, d;
|
|
7557
7557
|
const l = [...s];
|
|
7558
|
-
return l.push({
|
|
7559
|
-
label: "",
|
|
7560
|
-
value: "divider",
|
|
7561
|
-
disabled: !0
|
|
7562
|
-
}), l.push({
|
|
7563
|
-
label: r("financing.title"),
|
|
7564
|
-
icon: "credit_score",
|
|
7565
|
-
value: "divider",
|
|
7566
|
-
disabled: !0
|
|
7567
|
-
}), l.push(...a(ue, "financing")), ((u = e.sessionUser.value) != null && u.role.isStaff || (d = e.sessionUser.value) != null && d.role.isAdmin) && (l.push({
|
|
7558
|
+
return ((u = e.sessionUser.value) != null && u.role.isStaff || (d = e.sessionUser.value) != null && d.role.isAdmin) && (l.push({
|
|
7568
7559
|
label: "",
|
|
7569
7560
|
value: "divider",
|
|
7570
7561
|
disabled: !0
|
|
@@ -7608,7 +7599,7 @@ var La = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDo
|
|
|
7608
7599
|
const qa = /* @__PURE__ */ Lt({
|
|
7609
7600
|
__name: "App",
|
|
7610
7601
|
setup(n) {
|
|
7611
|
-
const { state: e } = er(), t =
|
|
7602
|
+
const { state: e } = er(), t = $e(), r = Fn(), i = Kt(La.firebase);
|
|
7612
7603
|
async function s() {
|
|
7613
7604
|
const a = t.sessionUser.value;
|
|
7614
7605
|
if (!a || !a.token) return;
|
|
@@ -7643,7 +7634,7 @@ const qa = /* @__PURE__ */ Lt({
|
|
|
7643
7634
|
},
|
|
7644
7635
|
{}
|
|
7645
7636
|
);
|
|
7646
|
-
}, Va = [...K, ...
|
|
7637
|
+
}, Va = [...K, ...Ve];
|
|
7647
7638
|
export {
|
|
7648
7639
|
mt as _,
|
|
7649
7640
|
qa as a,
|