@feedmepos/mf-payment 1.7.6 → 1.7.8-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/{Actions.vue_vue_type_script_setup_true_lang-DQR1_RpF.js → Actions.vue_vue_type_script_setup_true_lang-D_rXg9Fw.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CHkrHNPF.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CIaldv4s.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BIvrqTNw.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CHRvN9A2.js} +2 -2
- package/dist/{Chargeback-CAj9Jgcy.js → Chargeback-D5qW-mVx.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-jTkg_too.js → DocumentViewer.vue_vue_type_script_setup_true_lang-DXV5KKN2.js} +1 -1
- package/dist/{OnboardForm-v-95d-S1.js → OnboardForm-CGQE0m9f.js} +5 -5
- package/dist/{OnboardForm-DRoUPx01.js → OnboardForm-W0k0TLHo.js} +5 -5
- package/dist/{OnboardSubmission-ciBwl8NO.js → OnboardSubmission-B3s4qhTG.js} +2 -2
- package/dist/{OnboardSubmission-C09-Ac_u.js → OnboardSubmission-DFH5vwUa.js} +5 -5
- package/dist/{PayoutAccount-BIXgrxF8.js → PayoutAccount-BtB8BhWG.js} +5 -5
- package/dist/{PayoutAccount-5ckNIseh.js → PayoutAccount-Ch-QtROT.js} +7 -7
- package/dist/{PayoutAccountSetting-Bhg_rRvI.js → PayoutAccountSetting-De2-ICCG.js} +6 -6
- package/dist/{Restaurant-CAkspzgz.js → Restaurant-DTCzqBKj.js} +4 -4
- package/dist/{RestaurantSetting-D-joRYbL.js → RestaurantSetting-RYEI1ino.js} +3 -3
- package/dist/{Settlement-DCBsf6-S.js → Settlement-CHRgvDyo.js} +3 -3
- package/dist/{Settlement-tz1oE3Qt.js → Settlement-DGYbwQ3e.js} +4 -4
- package/dist/{SettlementTransactions-B2IUyVs5.js → SettlementTransactions-BACa5wVG.js} +4 -4
- package/dist/{SettlementTransactions-YSNYN3HM.js → SettlementTransactions-BqUAx9fY.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-CpoEkJUQ.js → Status.vue_vue_type_script_setup_true_lang-oKuE83KP.js} +1 -1
- package/dist/{Terminal-V45vMcvG.js → Terminal-4MpJyqma.js} +5 -5
- package/dist/{TerminalSetting-DtSt5q66.js → TerminalSetting-CzpvtIyS.js} +655 -521
- package/dist/{Transaction-BJ6-2G9v.js → Transaction-ByT89ppn.js} +10 -10
- package/dist/{Transaction-8K6WJBsa.js → Transaction-CDjn1yop.js} +10 -10
- package/dist/{TransactionOld-DNVGQ2ck.js → TransactionOld-0U8W_P6p.js} +7 -7
- package/dist/api/settlement/index.d.ts +1 -1
- package/dist/{app-DiZz8sPe.js → app-DIN7H6rk.js} +361 -352
- package/dist/app.js +1 -1
- package/dist/{assets-DiH3EaF3.js → assets-BPLQQR2t.js} +49 -48
- package/dist/{grafana-Bou0e3nV.js → grafana-BcpOE56P.js} +1 -1
- package/dist/{index-DO4-_8Af.js → index-BMNPErIg.js} +1 -1
- package/dist/{index-Da6Yh4Gu.js → index-BxdFscFc.js} +5544 -5474
- package/dist/{index-CfsmsUeJ.js → index-BxsmB_C3.js} +1 -1
- package/dist/{index-CTKrpHLR.js → index-CAeTd4VM.js} +2 -2
- package/dist/{index-DeT3z3Jr.js → index-Cdp_1070.js} +1 -1
- package/dist/{index-CZ_b9Pch.js → index-Ce5HOW0V.js} +1 -1
- package/dist/{index-DjOUxa1H.js → index-DOUdnPtc.js} +1 -1
- package/dist/{index-LkcyucJ_.js → index-D_qtpNXT.js} +16 -16
- package/dist/{index-yLXt4lrZ.js → index-GawC_j2y.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BQSr_US-.js → index.vue_vue_type_script_setup_true_lang-MX7Mb9Db.js} +1 -1
- package/dist/model/payout-account.d.ts +2 -2
- package/dist/package.json +3 -3
- package/dist/{payout-account-DDudWzkA.js → payout-account-CKdySLcf.js} +3 -3
- package/dist/stores/payoutAccount.d.ts +22 -22
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +20 -16
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +20 -16
- package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +20 -16
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +22 -22
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +44 -44
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +44 -44
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +22 -22
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +22 -22
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +44 -44
- package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +10 -10
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +10 -10
- package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +10 -10
- package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +6 -6
- package/dist/views/admin/settlement/SettlementTable.vue.d.ts +16 -16
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +140 -0
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +14 -14
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +44 -44
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +80 -80
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +40 -40
- package/dist/views/settlement/SettlementTable.vue.d.ts +16 -16
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@ var rr = (t) => {
|
|
|
3
3
|
};
|
|
4
4
|
var dn = (t, e, n) => e.has(t) || rr("Cannot " + n);
|
|
5
5
|
var h = (t, e, n) => (dn(t, e, "read from private field"), n ? n.call(t) : e.get(t)), G = (t, e, n) => e.has(t) ? rr("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), D = (t, e, n, r) => (dn(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), z = (t, e, n) => (dn(t, e, "access private method"), n);
|
|
6
|
-
var
|
|
6
|
+
var xt = (t, e, n, r) => ({
|
|
7
7
|
set _(s) {
|
|
8
8
|
D(t, e, s, n);
|
|
9
9
|
},
|
|
@@ -12,9 +12,9 @@ var Vt = (t, e, n, r) => ({
|
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
import { routes as Ri, i18nMessages as qi } from "@feedmepos/mf-financing";
|
|
15
|
-
import { isRef as qn, ref as
|
|
15
|
+
import { isRef as qn, ref as St, shallowRef as Ni, watchEffect as Hi, computed as Nn, h as vn, defineComponent as tn, unref as ge, openBlock as nn, createBlock as Hn, renderSlot as Qi, createCommentVNode as Xi, createElementBlock as Si, createElementVNode as Ke, toDisplayString as sr, nextTick as Ui, defineAsyncComponent as _r, watch as $r, resolveComponent as es, provide as Wi, onMounted as zi, onBeforeMount as Zi, onUnmounted as Li } from "vue";
|
|
16
16
|
import { useRoute as ts, createRouter as Ki, createWebHistory as Ji, useRouter as _i } from "vue-router";
|
|
17
|
-
import { useCoreStore as
|
|
17
|
+
import { useCoreStore as rn, useI18n as ns } from "@feedmepos/mf-common";
|
|
18
18
|
import { defineStore as $i } from "pinia";
|
|
19
19
|
import { components as ea } from "@feedmepos/ui-library";
|
|
20
20
|
const ta = {
|
|
@@ -1246,28 +1246,28 @@ function ca(t, e, n) {
|
|
|
1246
1246
|
evaluating: i = void 0,
|
|
1247
1247
|
shallow: a = !0,
|
|
1248
1248
|
onError: c = oa
|
|
1249
|
-
} = r, l =
|
|
1249
|
+
} = r, l = St(!s), A = a ? Ni(e) : St(e);
|
|
1250
1250
|
let f = 0;
|
|
1251
1251
|
return Hi(async (p) => {
|
|
1252
1252
|
if (!l.value)
|
|
1253
1253
|
return;
|
|
1254
1254
|
f++;
|
|
1255
1255
|
const B = f;
|
|
1256
|
-
let
|
|
1256
|
+
let w = !1;
|
|
1257
1257
|
i && Promise.resolve().then(() => {
|
|
1258
1258
|
i.value = !0;
|
|
1259
1259
|
});
|
|
1260
1260
|
try {
|
|
1261
1261
|
const O = await t((I) => {
|
|
1262
1262
|
p(() => {
|
|
1263
|
-
i && (i.value = !1),
|
|
1263
|
+
i && (i.value = !1), w || I();
|
|
1264
1264
|
});
|
|
1265
1265
|
});
|
|
1266
1266
|
B === f && (A.value = O);
|
|
1267
1267
|
} catch (O) {
|
|
1268
1268
|
c(O);
|
|
1269
1269
|
} finally {
|
|
1270
|
-
i && B === f && (i.value = !1),
|
|
1270
|
+
i && B === f && (i.value = !1), w = !0;
|
|
1271
1271
|
}
|
|
1272
1272
|
}), s ? Nn(() => (l.value = !0, A.value)) : A;
|
|
1273
1273
|
}
|
|
@@ -1378,7 +1378,7 @@ var rs = { exports: {} };
|
|
|
1378
1378
|
return !0;
|
|
1379
1379
|
};
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function w(u, m, g, y) {
|
|
1382
1382
|
return u.validate(u.options, m, g, y);
|
|
1383
1383
|
}
|
|
1384
1384
|
var O = {
|
|
@@ -1423,7 +1423,7 @@ var rs = { exports: {} };
|
|
|
1423
1423
|
},
|
|
1424
1424
|
$or: function(u, m, g, y) {
|
|
1425
1425
|
for (var b = 0, E = u.length; b < E; b++)
|
|
1426
|
-
if (
|
|
1426
|
+
if (w(f(u, b), m, g, y)) return !0;
|
|
1427
1427
|
return !1;
|
|
1428
1428
|
},
|
|
1429
1429
|
$nor: function(u, m, g, y) {
|
|
@@ -1431,7 +1431,7 @@ var rs = { exports: {} };
|
|
|
1431
1431
|
},
|
|
1432
1432
|
$and: function(u, m, g, y) {
|
|
1433
1433
|
for (var b = 0, E = u.length; b < E; b++)
|
|
1434
|
-
if (!
|
|
1434
|
+
if (!w(f(u, b), m, g, y)) return !1;
|
|
1435
1435
|
return !0;
|
|
1436
1436
|
},
|
|
1437
1437
|
$regex: p(function(u, m) {
|
|
@@ -1443,9 +1443,9 @@ var rs = { exports: {} };
|
|
|
1443
1443
|
$elemMatch: function(u, m, g, y) {
|
|
1444
1444
|
return c(m) ? !!~function(b, E) {
|
|
1445
1445
|
for (var P = 0; P < b.length; P++)
|
|
1446
|
-
if (f(b, P),
|
|
1446
|
+
if (f(b, P), w(E, f(b, P))) return P;
|
|
1447
1447
|
return -1;
|
|
1448
|
-
}(m, u) :
|
|
1448
|
+
}(m, u) : w(u, m, g, y);
|
|
1449
1449
|
},
|
|
1450
1450
|
$exists: function(u, m, g, y) {
|
|
1451
1451
|
return y.hasOwnProperty(g) === u;
|
|
@@ -1503,7 +1503,7 @@ var rs = { exports: {} };
|
|
|
1503
1503
|
for (j = u.length; j--; ) if (u[j] == null) return !0;
|
|
1504
1504
|
}
|
|
1505
1505
|
for (j = u.length; j--; ) {
|
|
1506
|
-
var P =
|
|
1506
|
+
var P = w(H(f(u, j), g), E, j, u);
|
|
1507
1507
|
if (P && String(P) !== "[object Object]" && String(E) !== "[object Object]")
|
|
1508
1508
|
return !0;
|
|
1509
1509
|
}
|
|
@@ -1546,7 +1546,7 @@ var rs = { exports: {} };
|
|
|
1546
1546
|
$not: function(u, m, g) {
|
|
1547
1547
|
var y = Y(g)(u);
|
|
1548
1548
|
return function(b, E, P) {
|
|
1549
|
-
return !
|
|
1549
|
+
return !w(y, b, E, P);
|
|
1550
1550
|
};
|
|
1551
1551
|
},
|
|
1552
1552
|
$type: function(u) {
|
|
@@ -1584,11 +1584,11 @@ var rs = { exports: {} };
|
|
|
1584
1584
|
else tr(f(Ce, nr), ft, gt + 1, Ce, ln);
|
|
1585
1585
|
}(m, g, 0, m, E), E.length === 1) {
|
|
1586
1586
|
var P = E[0];
|
|
1587
|
-
return
|
|
1587
|
+
return w(y, P[0], P[1], P[2]);
|
|
1588
1588
|
}
|
|
1589
1589
|
for (var j = b && b.$ne !== void 0, W = j, _ = 0; _ < E.length; _++) {
|
|
1590
|
-
var he = E[_],
|
|
1591
|
-
j ? W &=
|
|
1590
|
+
var he = E[_], Vt = w(y, he[0], he[1], he[2]);
|
|
1591
|
+
j ? W &= Vt : W |= Vt;
|
|
1592
1592
|
}
|
|
1593
1593
|
return W;
|
|
1594
1594
|
}
|
|
@@ -1610,8 +1610,8 @@ var rs = { exports: {} };
|
|
|
1610
1610
|
else {
|
|
1611
1611
|
if (W.charCodeAt(0) === 36)
|
|
1612
1612
|
throw new Error("Unknown operation " + W);
|
|
1613
|
-
var
|
|
1614
|
-
j.push(Q(
|
|
1613
|
+
var Vt = W.split(".");
|
|
1614
|
+
j.push(Q(Vt, E(_), _));
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
@@ -1621,24 +1621,24 @@ var rs = { exports: {} };
|
|
|
1621
1621
|
if (!l(W)) return _;
|
|
1622
1622
|
for (var he in W) _.push(he), j(W[he], _);
|
|
1623
1623
|
return _;
|
|
1624
|
-
}(P, []).join(",").search(/[$.]/) === -1 ? V(P,
|
|
1624
|
+
}(P, []).join(",").search(/[$.]/) === -1 ? V(P, v) : b(P);
|
|
1625
1625
|
};
|
|
1626
1626
|
return function(P) {
|
|
1627
1627
|
return b(y(P));
|
|
1628
1628
|
};
|
|
1629
1629
|
}
|
|
1630
|
-
function
|
|
1630
|
+
function v(u, m) {
|
|
1631
1631
|
if (Object.prototype.toString.call(u) !== Object.prototype.toString.call(m))
|
|
1632
1632
|
return !1;
|
|
1633
1633
|
if (l(u)) {
|
|
1634
1634
|
if (Object.keys(u).length !== Object.keys(m).length) return !1;
|
|
1635
|
-
for (var g in u) if (!
|
|
1635
|
+
for (var g in u) if (!v(u[g], m[g])) return !1;
|
|
1636
1636
|
return !0;
|
|
1637
1637
|
}
|
|
1638
1638
|
if (c(u)) {
|
|
1639
1639
|
if (u.length !== m.length) return !1;
|
|
1640
1640
|
for (var y = 0, b = u.length; y < b; y++)
|
|
1641
|
-
if (!
|
|
1641
|
+
if (!v(u[y], m[y])) return !1;
|
|
1642
1642
|
return !0;
|
|
1643
1643
|
}
|
|
1644
1644
|
return u === m;
|
|
@@ -1648,18 +1648,18 @@ var rs = { exports: {} };
|
|
|
1648
1648
|
return m && m.select && (g = {
|
|
1649
1649
|
options: g,
|
|
1650
1650
|
validate: function(y, b, E, P) {
|
|
1651
|
-
return
|
|
1651
|
+
return w(y, b && m.select(b), E, P);
|
|
1652
1652
|
}
|
|
1653
1653
|
}), g;
|
|
1654
1654
|
}
|
|
1655
1655
|
function U(u, m) {
|
|
1656
1656
|
var g = H(u, m = Object.assign({ compare: ee, comparable: q }, m));
|
|
1657
1657
|
return function(y, b, E) {
|
|
1658
|
-
return
|
|
1658
|
+
return w(g, y, b, E);
|
|
1659
1659
|
};
|
|
1660
1660
|
}
|
|
1661
1661
|
function ee(u, m) {
|
|
1662
|
-
if (
|
|
1662
|
+
if (v(u, m)) return 0;
|
|
1663
1663
|
if (i(u) === i(m)) {
|
|
1664
1664
|
if (u > m) return 1;
|
|
1665
1665
|
if (u < m) return -1;
|
|
@@ -1686,15 +1686,15 @@ function ma(t, e, n) {
|
|
|
1686
1686
|
function fa(t, e) {
|
|
1687
1687
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
|
|
1688
1688
|
}
|
|
1689
|
-
function
|
|
1690
|
-
return
|
|
1689
|
+
function wn(t) {
|
|
1690
|
+
return wn = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
|
|
1691
1691
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
1692
|
-
},
|
|
1692
|
+
}, wn(t);
|
|
1693
1693
|
}
|
|
1694
|
-
function
|
|
1695
|
-
return
|
|
1694
|
+
function Ut(t, e) {
|
|
1695
|
+
return Ut = Object.setPrototypeOf || function(r, s) {
|
|
1696
1696
|
return r.__proto__ = s, r;
|
|
1697
|
-
},
|
|
1697
|
+
}, Ut(t, e);
|
|
1698
1698
|
}
|
|
1699
1699
|
function ga() {
|
|
1700
1700
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
@@ -1706,13 +1706,13 @@ function ga() {
|
|
|
1706
1706
|
return !1;
|
|
1707
1707
|
}
|
|
1708
1708
|
}
|
|
1709
|
-
function
|
|
1710
|
-
return ga() ?
|
|
1709
|
+
function qt(t, e, n) {
|
|
1710
|
+
return ga() ? qt = Reflect.construct : qt = function(s, i, a) {
|
|
1711
1711
|
var c = [null];
|
|
1712
1712
|
c.push.apply(c, i);
|
|
1713
1713
|
var l = Function.bind.apply(s, c), A = new l();
|
|
1714
|
-
return a &&
|
|
1715
|
-
},
|
|
1714
|
+
return a && Ut(A, a.prototype), A;
|
|
1715
|
+
}, qt.apply(null, arguments);
|
|
1716
1716
|
}
|
|
1717
1717
|
function pa(t) {
|
|
1718
1718
|
return Function.toString.call(t).indexOf("[native code]") !== -1;
|
|
@@ -1728,7 +1728,7 @@ function Bn(t) {
|
|
|
1728
1728
|
e.set(r, s);
|
|
1729
1729
|
}
|
|
1730
1730
|
function s() {
|
|
1731
|
-
return
|
|
1731
|
+
return qt(r, arguments, wn(this).constructor);
|
|
1732
1732
|
}
|
|
1733
1733
|
return s.prototype = Object.create(r.prototype, {
|
|
1734
1734
|
constructor: {
|
|
@@ -1737,7 +1737,7 @@ function Bn(t) {
|
|
|
1737
1737
|
writable: !0,
|
|
1738
1738
|
configurable: !0
|
|
1739
1739
|
}
|
|
1740
|
-
}),
|
|
1740
|
+
}), Ut(s, r);
|
|
1741
1741
|
}, Bn(t);
|
|
1742
1742
|
}
|
|
1743
1743
|
function ir(t) {
|
|
@@ -1747,9 +1747,9 @@ function ir(t) {
|
|
|
1747
1747
|
}
|
|
1748
1748
|
var ss = function(e) {
|
|
1749
1749
|
return 'Cannot execute "' + e.action + '" on "' + e.subjectName + '"';
|
|
1750
|
-
},
|
|
1750
|
+
}, Ft = ss, ya = /* @__PURE__ */ function(t) {
|
|
1751
1751
|
fa(e, t), e.setDefaultMessage = function(s) {
|
|
1752
|
-
s === null ?
|
|
1752
|
+
s === null ? Ft = ss : Ft = typeof s == "string" ? function() {
|
|
1753
1753
|
return s;
|
|
1754
1754
|
} : s;
|
|
1755
1755
|
}, e.from = function(s) {
|
|
@@ -1760,7 +1760,7 @@ var ss = function(e) {
|
|
|
1760
1760
|
};
|
|
1761
1761
|
function e(r, s) {
|
|
1762
1762
|
var i;
|
|
1763
|
-
return s === void 0 && (s = {}), i = t.call(this, r) || this, i._setMetadata(s), i.message = r ||
|
|
1763
|
+
return s === void 0 && (s = {}), i = t.call(this, r) || this, i._setMetadata(s), i.message = r || Ft(ir(i)), i._customMessage = null, typeof Error.captureStackTrace == "function" && (i.name = i.constructor.name, Error.captureStackTrace(ir(i), i.constructor)), i;
|
|
1764
1764
|
}
|
|
1765
1765
|
var n = e.prototype;
|
|
1766
1766
|
return n.setMessage = function(s) {
|
|
@@ -1777,7 +1777,7 @@ var ss = function(e) {
|
|
|
1777
1777
|
subjectName: this.ability.subjectName(i)
|
|
1778
1778
|
});
|
|
1779
1779
|
var l = c ? c.reason : "";
|
|
1780
|
-
throw this.message = this._customMessage || l ||
|
|
1780
|
+
throw this.message = this._customMessage || l || Ft(this), this;
|
|
1781
1781
|
}
|
|
1782
1782
|
}, n._setMetadata = function(s) {
|
|
1783
1783
|
this.subject = s.subject, this.subjectName = s.subjectName, this.action = s.action, this.field = s.field;
|
|
@@ -1792,10 +1792,10 @@ function ba(t) {
|
|
|
1792
1792
|
var e = typeof t == "object" ? t.constructor : t;
|
|
1793
1793
|
return e.modelName || e.name;
|
|
1794
1794
|
}
|
|
1795
|
-
function
|
|
1795
|
+
function va(t) {
|
|
1796
1796
|
return JSON.parse(JSON.stringify(t));
|
|
1797
1797
|
}
|
|
1798
|
-
var
|
|
1798
|
+
var wa = /[-/\\^$+?.()|[\]{}]/g, Ba = /\.?\*+\.?/g, Da = /\*+/, Ca = /\./g;
|
|
1799
1799
|
function Ea(t, e, n) {
|
|
1800
1800
|
var r = n[0] === "*" || t[0] === "." && t[t.length - 1] === "." ? "+" : "*", s = t.indexOf("**") === -1 ? "[^.]" : ".", i = t.replace(Ca, "\\$&").replace(Da, s + r);
|
|
1801
1801
|
return e + t.length === n.length ? "(?:" + i + ")?" : i;
|
|
@@ -1805,7 +1805,7 @@ function Ma(t, e, n) {
|
|
|
1805
1805
|
}
|
|
1806
1806
|
function Ia(t) {
|
|
1807
1807
|
var e = t.map(function(r) {
|
|
1808
|
-
return r.replace(
|
|
1808
|
+
return r.replace(wa, Ma).replace(Ba, Ea);
|
|
1809
1809
|
}), n = e.length > 1 ? "(?:" + e.join("|") + ")" : e[0];
|
|
1810
1810
|
return new RegExp("^" + n + "$");
|
|
1811
1811
|
}
|
|
@@ -1850,7 +1850,7 @@ var Oa = /* @__PURE__ */ function() {
|
|
|
1850
1850
|
indexedRules: /* @__PURE__ */ Object.create(null),
|
|
1851
1851
|
mergedRules: /* @__PURE__ */ Object.create(null),
|
|
1852
1852
|
events: {},
|
|
1853
|
-
aliases:
|
|
1853
|
+
aliases: va(ar)
|
|
1854
1854
|
}, this.update(n);
|
|
1855
1855
|
}
|
|
1856
1856
|
var e = t.prototype;
|
|
@@ -1868,8 +1868,8 @@ var Oa = /* @__PURE__ */ function() {
|
|
|
1868
1868
|
for (var s = /* @__PURE__ */ Object.create(null), i = this[te].RuleType, a = !0, c = !1, l = 0; l < r.length; l++) {
|
|
1869
1869
|
var A = new i(r[l]), f = this.expandActions(A.actions), p = Dn(A.subject), B = r.length - l - 1;
|
|
1870
1870
|
a = !!(a && A.inverted), !c && A.fields && (c = !0);
|
|
1871
|
-
for (var
|
|
1872
|
-
var O = p[
|
|
1871
|
+
for (var w = 0; w < p.length; w++) {
|
|
1872
|
+
var O = p[w];
|
|
1873
1873
|
s[O] = s[O] || /* @__PURE__ */ Object.create(null);
|
|
1874
1874
|
for (var I = 0; I < f.length; I++) {
|
|
1875
1875
|
var V = f[I];
|
|
@@ -2033,7 +2033,7 @@ async function ka(t, e) {
|
|
|
2033
2033
|
}
|
|
2034
2034
|
var Cn = /* @__PURE__ */ ((t) => (t.Loading = "loading", t.Allowed = "allowed", t.Denied = "denied", t))(Cn || {});
|
|
2035
2035
|
function Ra() {
|
|
2036
|
-
const t = ts(), { sessionUser: e } =
|
|
2036
|
+
const t = ts(), { sessionUser: e } = rn();
|
|
2037
2037
|
return ca(
|
|
2038
2038
|
async () => {
|
|
2039
2039
|
t.matched;
|
|
@@ -2072,7 +2072,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2072
2072
|
subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
|
|
2073
2073
|
}, za = {
|
|
2074
2074
|
noPermission: Wa
|
|
2075
|
-
}, Za = { class: "w-full h-full flex justify-center items-center" }, La = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Ka = { class: "w-[300px] h-[300px]" }, Ja = ["src"], _a = { class: "text-2xl" }, $a = { class: "text-xl" }, eo = /* @__PURE__ */
|
|
2075
|
+
}, Za = { class: "w-full h-full flex justify-center items-center" }, La = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Ka = { class: "w-[300px] h-[300px]" }, Ja = ["src"], _a = { class: "text-2xl" }, $a = { class: "text-xl" }, eo = /* @__PURE__ */ tn({
|
|
2076
2076
|
__name: "NoPermission",
|
|
2077
2077
|
setup(t) {
|
|
2078
2078
|
const { t: e } = ns({
|
|
@@ -2083,7 +2083,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2083
2083
|
"th-TH": za
|
|
2084
2084
|
}
|
|
2085
2085
|
});
|
|
2086
|
-
return (n, r) => (
|
|
2086
|
+
return (n, r) => (nn(), Si("div", Za, [
|
|
2087
2087
|
Ke("div", La, [
|
|
2088
2088
|
Ke("div", Ka, [
|
|
2089
2089
|
Ke("img", {
|
|
@@ -2098,18 +2098,18 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2098
2098
|
])
|
|
2099
2099
|
]));
|
|
2100
2100
|
}
|
|
2101
|
-
}), to = /* @__PURE__ */
|
|
2101
|
+
}), to = /* @__PURE__ */ tn({
|
|
2102
2102
|
__name: "PermissionWrapper",
|
|
2103
2103
|
setup(t) {
|
|
2104
2104
|
const e = Ra();
|
|
2105
|
-
return (n, r) => ge(e) === ge(Cn).Denied ? (
|
|
2105
|
+
return (n, r) => ge(e) === ge(Cn).Denied ? (nn(), Hn(eo, { key: 0 })) : ge(e) === ge(Cn).Allowed ? Qi(n.$slots, "default", { key: 1 }) : Xi("", !0);
|
|
2106
2106
|
}
|
|
2107
2107
|
});
|
|
2108
2108
|
function os(t) {
|
|
2109
2109
|
return {
|
|
2110
2110
|
inheritAttrs: !1,
|
|
2111
2111
|
setup(e, { attrs: n }) {
|
|
2112
|
-
return () =>
|
|
2112
|
+
return () => vn(to, {}, { default: () => vn(t, n) });
|
|
2113
2113
|
}
|
|
2114
2114
|
};
|
|
2115
2115
|
}
|
|
@@ -2406,10 +2406,10 @@ const k = [
|
|
|
2406
2406
|
), bs = $(
|
|
2407
2407
|
se,
|
|
2408
2408
|
ho
|
|
2409
|
-
),
|
|
2409
|
+
), vs = $(
|
|
2410
2410
|
se,
|
|
2411
2411
|
mo
|
|
2412
|
-
),
|
|
2412
|
+
), ws = $(
|
|
2413
2413
|
se,
|
|
2414
2414
|
fo
|
|
2415
2415
|
), Bs = $(
|
|
@@ -2436,7 +2436,7 @@ const k = [
|
|
|
2436
2436
|
o.delete
|
|
2437
2437
|
]
|
|
2438
2438
|
}
|
|
2439
|
-
],
|
|
2439
|
+
], vo = [
|
|
2440
2440
|
...k,
|
|
2441
2441
|
{
|
|
2442
2442
|
label: "Membership",
|
|
@@ -2448,7 +2448,7 @@ const k = [
|
|
|
2448
2448
|
o.delete
|
|
2449
2449
|
]
|
|
2450
2450
|
}
|
|
2451
|
-
],
|
|
2451
|
+
], wo = $(
|
|
2452
2452
|
no,
|
|
2453
2453
|
ro,
|
|
2454
2454
|
cs,
|
|
@@ -2462,8 +2462,8 @@ const k = [
|
|
|
2462
2462
|
ps,
|
|
2463
2463
|
ys,
|
|
2464
2464
|
bs,
|
|
2465
|
-
ws,
|
|
2466
2465
|
vs,
|
|
2466
|
+
ws,
|
|
2467
2467
|
Bs,
|
|
2468
2468
|
Ds,
|
|
2469
2469
|
ds,
|
|
@@ -2477,11 +2477,11 @@ const k = [
|
|
|
2477
2477
|
), Do = $(
|
|
2478
2478
|
se,
|
|
2479
2479
|
bo
|
|
2480
|
-
), Co = $(
|
|
2480
|
+
), Co = $(vo), Eo = {
|
|
2481
2481
|
[`set_${d.crm}`]: {
|
|
2482
2482
|
key: "sys:crm:access",
|
|
2483
2483
|
name: "CRM Access",
|
|
2484
|
-
permissions:
|
|
2484
|
+
permissions: wo
|
|
2485
2485
|
},
|
|
2486
2486
|
[`set_${d.crm_promotion}`]: {
|
|
2487
2487
|
key: "sys:crm:promotion",
|
|
@@ -2526,12 +2526,12 @@ const k = [
|
|
|
2526
2526
|
[`set_${d.crm_credit}`]: {
|
|
2527
2527
|
key: "sys:crm:credit",
|
|
2528
2528
|
name: "CRM Credit",
|
|
2529
|
-
permissions:
|
|
2529
|
+
permissions: vs
|
|
2530
2530
|
},
|
|
2531
2531
|
[`set_${d.crm_experience}`]: {
|
|
2532
2532
|
key: "sys:crm:experience",
|
|
2533
2533
|
name: "CRM Experience",
|
|
2534
|
-
permissions:
|
|
2534
|
+
permissions: ws
|
|
2535
2535
|
},
|
|
2536
2536
|
[`set_${d.crm_game}`]: {
|
|
2537
2537
|
key: "sys:crm:game",
|
|
@@ -3154,7 +3154,7 @@ const Ho = () => ({
|
|
|
3154
3154
|
sidebarDisplay: "Restaurants",
|
|
3155
3155
|
section: "payment-gateway"
|
|
3156
3156
|
},
|
|
3157
|
-
component: () => import("./Restaurant-
|
|
3157
|
+
component: () => import("./Restaurant-DTCzqBKj.js")
|
|
3158
3158
|
},
|
|
3159
3159
|
{
|
|
3160
3160
|
path: "/admin/restaurants/:restaurantId",
|
|
@@ -3163,7 +3163,7 @@ const Ho = () => ({
|
|
|
3163
3163
|
meta: {
|
|
3164
3164
|
parent: "mf-payment-admin.restaurant"
|
|
3165
3165
|
},
|
|
3166
|
-
component: () => import("./RestaurantSetting-
|
|
3166
|
+
component: () => import("./RestaurantSetting-RYEI1ino.js")
|
|
3167
3167
|
},
|
|
3168
3168
|
{
|
|
3169
3169
|
path: "/admin/payout-accounts",
|
|
@@ -3172,7 +3172,7 @@ const Ho = () => ({
|
|
|
3172
3172
|
sidebarDisplay: "Payout Accounts",
|
|
3173
3173
|
section: "payment-gateway"
|
|
3174
3174
|
},
|
|
3175
|
-
component: () => import("./PayoutAccount-
|
|
3175
|
+
component: () => import("./PayoutAccount-Ch-QtROT.js")
|
|
3176
3176
|
},
|
|
3177
3177
|
{
|
|
3178
3178
|
path: "/admin/payout-accounts/:accountId",
|
|
@@ -3181,7 +3181,7 @@ const Ho = () => ({
|
|
|
3181
3181
|
meta: {
|
|
3182
3182
|
parent: "mf-payment-admin.payout-account"
|
|
3183
3183
|
},
|
|
3184
|
-
component: () => import("./PayoutAccountSetting-
|
|
3184
|
+
component: () => import("./PayoutAccountSetting-De2-ICCG.js")
|
|
3185
3185
|
},
|
|
3186
3186
|
{
|
|
3187
3187
|
path: "/admin/onboarding",
|
|
@@ -3190,7 +3190,7 @@ const Ho = () => ({
|
|
|
3190
3190
|
sidebarDisplay: "Payment Onboarding",
|
|
3191
3191
|
section: "payment-gateway"
|
|
3192
3192
|
},
|
|
3193
|
-
component: () => import("./OnboardSubmission-
|
|
3193
|
+
component: () => import("./OnboardSubmission-DFH5vwUa.js")
|
|
3194
3194
|
},
|
|
3195
3195
|
{
|
|
3196
3196
|
path: "/admin/onboarding/:submissionId",
|
|
@@ -3199,7 +3199,7 @@ const Ho = () => ({
|
|
|
3199
3199
|
meta: {
|
|
3200
3200
|
parent: "mf-payment-admin.onboard-submission"
|
|
3201
3201
|
},
|
|
3202
|
-
component: () => import("./OnboardForm-
|
|
3202
|
+
component: () => import("./OnboardForm-CGQE0m9f.js")
|
|
3203
3203
|
},
|
|
3204
3204
|
{
|
|
3205
3205
|
path: "/admin/terminal/pos",
|
|
@@ -3208,7 +3208,7 @@ const Ho = () => ({
|
|
|
3208
3208
|
sidebarDisplay: "POS",
|
|
3209
3209
|
section: "device"
|
|
3210
3210
|
},
|
|
3211
|
-
component: () => import("./Terminal-
|
|
3211
|
+
component: () => import("./Terminal-4MpJyqma.js"),
|
|
3212
3212
|
props: {
|
|
3213
3213
|
type: "POS"
|
|
3214
3214
|
}
|
|
@@ -3220,7 +3220,7 @@ const Ho = () => ({
|
|
|
3220
3220
|
sidebarDisplay: "Kiosks",
|
|
3221
3221
|
section: "device"
|
|
3222
3222
|
},
|
|
3223
|
-
component: () => import("./Terminal-
|
|
3223
|
+
component: () => import("./Terminal-4MpJyqma.js"),
|
|
3224
3224
|
props: {
|
|
3225
3225
|
type: "KIOSK"
|
|
3226
3226
|
}
|
|
@@ -3232,7 +3232,7 @@ const Ho = () => ({
|
|
|
3232
3232
|
sidebarDisplay: "Terminals",
|
|
3233
3233
|
section: "device"
|
|
3234
3234
|
},
|
|
3235
|
-
component: () => import("./Terminal-
|
|
3235
|
+
component: () => import("./Terminal-4MpJyqma.js"),
|
|
3236
3236
|
props: {
|
|
3237
3237
|
type: "TERMINAL"
|
|
3238
3238
|
}
|
|
@@ -3244,7 +3244,7 @@ const Ho = () => ({
|
|
|
3244
3244
|
meta: {
|
|
3245
3245
|
parent: "mf-payment-admin.pos"
|
|
3246
3246
|
},
|
|
3247
|
-
component: () => import("./TerminalSetting-
|
|
3247
|
+
component: () => import("./TerminalSetting-CzpvtIyS.js")
|
|
3248
3248
|
},
|
|
3249
3249
|
{
|
|
3250
3250
|
path: "/admin/terminal/kiosk/:terminalId",
|
|
@@ -3253,7 +3253,7 @@ const Ho = () => ({
|
|
|
3253
3253
|
meta: {
|
|
3254
3254
|
parent: "mf-payment-admin.kiosk"
|
|
3255
3255
|
},
|
|
3256
|
-
component: () => import("./TerminalSetting-
|
|
3256
|
+
component: () => import("./TerminalSetting-CzpvtIyS.js")
|
|
3257
3257
|
},
|
|
3258
3258
|
{
|
|
3259
3259
|
path: "/admin/terminal/terminal/:terminalId",
|
|
@@ -3262,7 +3262,7 @@ const Ho = () => ({
|
|
|
3262
3262
|
meta: {
|
|
3263
3263
|
parent: "mf-payment-admin.terminal"
|
|
3264
3264
|
},
|
|
3265
|
-
component: () => import("./TerminalSetting-
|
|
3265
|
+
component: () => import("./TerminalSetting-CzpvtIyS.js")
|
|
3266
3266
|
},
|
|
3267
3267
|
{
|
|
3268
3268
|
path: "/admin/transaction",
|
|
@@ -3270,7 +3270,7 @@ const Ho = () => ({
|
|
|
3270
3270
|
meta: {
|
|
3271
3271
|
sidebarDisplay: "Transactions"
|
|
3272
3272
|
},
|
|
3273
|
-
component: () => import("./Transaction-
|
|
3273
|
+
component: () => import("./Transaction-ByT89ppn.js")
|
|
3274
3274
|
},
|
|
3275
3275
|
{
|
|
3276
3276
|
path: "/admin/chargeback",
|
|
@@ -3278,7 +3278,7 @@ const Ho = () => ({
|
|
|
3278
3278
|
meta: {
|
|
3279
3279
|
sidebarDisplay: "Chargebacks"
|
|
3280
3280
|
},
|
|
3281
|
-
component: () => import("./Chargeback-
|
|
3281
|
+
component: () => import("./Chargeback-D5qW-mVx.js")
|
|
3282
3282
|
},
|
|
3283
3283
|
{
|
|
3284
3284
|
path: "/admin/settlement",
|
|
@@ -3286,7 +3286,7 @@ const Ho = () => ({
|
|
|
3286
3286
|
meta: {
|
|
3287
3287
|
sidebarDisplay: "Settlements"
|
|
3288
3288
|
},
|
|
3289
|
-
component: () => import("./Settlement-
|
|
3289
|
+
component: () => import("./Settlement-CHRgvDyo.js")
|
|
3290
3290
|
},
|
|
3291
3291
|
{
|
|
3292
3292
|
path: "/admin/settlement/:settlementId",
|
|
@@ -3295,7 +3295,7 @@ const Ho = () => ({
|
|
|
3295
3295
|
meta: {
|
|
3296
3296
|
parent: "mf-payment-admin.settlement"
|
|
3297
3297
|
},
|
|
3298
|
-
component: () => import("./SettlementTransactions-
|
|
3298
|
+
component: () => import("./SettlementTransactions-BqUAx9fY.js")
|
|
3299
3299
|
}
|
|
3300
3300
|
].map((t) => ({
|
|
3301
3301
|
...t,
|
|
@@ -3303,7 +3303,7 @@ const Ho = () => ({
|
|
|
3303
3303
|
...t.meta,
|
|
3304
3304
|
...Ho()
|
|
3305
3305
|
}
|
|
3306
|
-
})),
|
|
3306
|
+
})), bt = [
|
|
3307
3307
|
{
|
|
3308
3308
|
path: "",
|
|
3309
3309
|
redirect: { name: "mf-payment-payout-account" }
|
|
@@ -3311,7 +3311,7 @@ const Ho = () => ({
|
|
|
3311
3311
|
{
|
|
3312
3312
|
path: "/payout-account",
|
|
3313
3313
|
name: "mf-payment-payout-account",
|
|
3314
|
-
component: () => import("./PayoutAccount-
|
|
3314
|
+
component: () => import("./PayoutAccount-BtB8BhWG.js"),
|
|
3315
3315
|
meta: {
|
|
3316
3316
|
sidebarDisplay: "i18n:payment.routes.payout_account",
|
|
3317
3317
|
region: { MY: !0 },
|
|
@@ -3328,7 +3328,7 @@ const Ho = () => ({
|
|
|
3328
3328
|
{
|
|
3329
3329
|
path: "/onboard-submission",
|
|
3330
3330
|
name: "mf-payment-onboard-submission",
|
|
3331
|
-
component: () => import("./OnboardSubmission-
|
|
3331
|
+
component: () => import("./OnboardSubmission-B3s4qhTG.js"),
|
|
3332
3332
|
meta: {
|
|
3333
3333
|
sidebarDisplay: "i18n:payment.routes.onboard_submission",
|
|
3334
3334
|
region: { MY: !0, TH: !0, AU: !0 },
|
|
@@ -3346,7 +3346,7 @@ const Ho = () => ({
|
|
|
3346
3346
|
path: "/onboard-submission/restaurant/:restaurantId/:type/:submission?",
|
|
3347
3347
|
name: "mf-payment-onboard-submission-form",
|
|
3348
3348
|
props: !0,
|
|
3349
|
-
component: () => import("./OnboardForm-
|
|
3349
|
+
component: () => import("./OnboardForm-W0k0TLHo.js"),
|
|
3350
3350
|
meta: {
|
|
3351
3351
|
parent: "mf-payment-onboard-submission",
|
|
3352
3352
|
validationManifest: {
|
|
@@ -3362,7 +3362,7 @@ const Ho = () => ({
|
|
|
3362
3362
|
{
|
|
3363
3363
|
path: "/transaction-old",
|
|
3364
3364
|
name: "mf-payment-old-transaction",
|
|
3365
|
-
component: () => import("./TransactionOld-
|
|
3365
|
+
component: () => import("./TransactionOld-0U8W_P6p.js"),
|
|
3366
3366
|
meta: {
|
|
3367
3367
|
sidebarDisplay: "i18n:payment.routes.transaction",
|
|
3368
3368
|
validationManifest: {
|
|
@@ -3378,7 +3378,7 @@ const Ho = () => ({
|
|
|
3378
3378
|
{
|
|
3379
3379
|
path: "/transaction",
|
|
3380
3380
|
name: "mf-payment-transaction",
|
|
3381
|
-
component: () => import("./Transaction-
|
|
3381
|
+
component: () => import("./Transaction-CDjn1yop.js"),
|
|
3382
3382
|
meta: {
|
|
3383
3383
|
sidebarDisplay: "i18n:payment.routes.transaction_new",
|
|
3384
3384
|
sidebarNew: !0,
|
|
@@ -3395,7 +3395,7 @@ const Ho = () => ({
|
|
|
3395
3395
|
{
|
|
3396
3396
|
path: "/settlement",
|
|
3397
3397
|
name: "mf-payment-settlement",
|
|
3398
|
-
component: () => import("./Settlement-
|
|
3398
|
+
component: () => import("./Settlement-DGYbwQ3e.js"),
|
|
3399
3399
|
meta: {
|
|
3400
3400
|
sidebarDisplay: "i18n:payment.routes.settlement",
|
|
3401
3401
|
region: { MY: !0, SG: !0 },
|
|
@@ -3413,7 +3413,7 @@ const Ho = () => ({
|
|
|
3413
3413
|
path: "/settlement/:settlementId",
|
|
3414
3414
|
name: "mf-payment-settlement-transaction",
|
|
3415
3415
|
props: !0,
|
|
3416
|
-
component: () => import("./SettlementTransactions-
|
|
3416
|
+
component: () => import("./SettlementTransactions-BACa5wVG.js"),
|
|
3417
3417
|
meta: {
|
|
3418
3418
|
parent: "mf-payment-settlement",
|
|
3419
3419
|
validationManifest: {
|
|
@@ -3581,8 +3581,8 @@ const Vs = function(t) {
|
|
|
3581
3581
|
const n = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
|
|
3582
3582
|
for (let s = 0; s < t.length; s += 3) {
|
|
3583
3583
|
const i = t[s], a = s + 1 < t.length, c = a ? t[s + 1] : 0, l = s + 2 < t.length, A = l ? t[s + 2] : 0, f = i >> 2, p = (i & 3) << 4 | c >> 4;
|
|
3584
|
-
let B = (c & 15) << 2 | A >> 6,
|
|
3585
|
-
l || (
|
|
3584
|
+
let B = (c & 15) << 2 | A >> 6, w = A & 63;
|
|
3585
|
+
l || (w = 64, a || (B = 64)), r.push(n[f], n[p], n[B], n[w]);
|
|
3586
3586
|
}
|
|
3587
3587
|
return r.join("");
|
|
3588
3588
|
},
|
|
@@ -3636,8 +3636,8 @@ const Vs = function(t) {
|
|
|
3636
3636
|
throw new So();
|
|
3637
3637
|
const B = i << 2 | c >> 4;
|
|
3638
3638
|
if (r.push(B), A !== 64) {
|
|
3639
|
-
const
|
|
3640
|
-
if (r.push(
|
|
3639
|
+
const w = c << 4 & 240 | A >> 2;
|
|
3640
|
+
if (r.push(w), p !== 64) {
|
|
3641
3641
|
const O = A << 6 & 192 | p;
|
|
3642
3642
|
r.push(O);
|
|
3643
3643
|
}
|
|
@@ -3869,10 +3869,10 @@ function sc() {
|
|
|
3869
3869
|
const ic = "FirebaseError";
|
|
3870
3870
|
class qe extends Error {
|
|
3871
3871
|
constructor(e, n, r) {
|
|
3872
|
-
super(n), this.code = e, this.customData = r, this.name = ic, Object.setPrototypeOf(this, qe.prototype), Error.captureStackTrace && Error.captureStackTrace(this,
|
|
3872
|
+
super(n), this.code = e, this.customData = r, this.name = ic, Object.setPrototypeOf(this, qe.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Pt.prototype.create);
|
|
3873
3873
|
}
|
|
3874
3874
|
}
|
|
3875
|
-
class
|
|
3875
|
+
class Pt {
|
|
3876
3876
|
constructor(e, n, r) {
|
|
3877
3877
|
this.service = e, this.serviceName = n, this.errors = r;
|
|
3878
3878
|
}
|
|
@@ -3894,7 +3894,7 @@ function cc(t) {
|
|
|
3894
3894
|
return !1;
|
|
3895
3895
|
return !0;
|
|
3896
3896
|
}
|
|
3897
|
-
function
|
|
3897
|
+
function Wt(t, e) {
|
|
3898
3898
|
if (t === e)
|
|
3899
3899
|
return !0;
|
|
3900
3900
|
const n = Object.keys(t), r = Object.keys(e);
|
|
@@ -3903,7 +3903,7 @@ function Ut(t, e) {
|
|
|
3903
3903
|
return !1;
|
|
3904
3904
|
const i = t[s], a = e[s];
|
|
3905
3905
|
if (ur(i) && ur(a)) {
|
|
3906
|
-
if (!
|
|
3906
|
+
if (!Wt(i, a))
|
|
3907
3907
|
return !1;
|
|
3908
3908
|
} else if (i !== a)
|
|
3909
3909
|
return !1;
|
|
@@ -3932,7 +3932,7 @@ function ur(t) {
|
|
|
3932
3932
|
* See the License for the specific language governing permissions and
|
|
3933
3933
|
* limitations under the License.
|
|
3934
3934
|
*/
|
|
3935
|
-
function
|
|
3935
|
+
function Ot(t) {
|
|
3936
3936
|
const e = [];
|
|
3937
3937
|
for (const [n, r] of Object.entries(t))
|
|
3938
3938
|
Array.isArray(r) ? r.forEach((s) => {
|
|
@@ -4425,9 +4425,9 @@ class Ns {
|
|
|
4425
4425
|
this._userLogHandler && this._userLogHandler(this, F.ERROR, ...e), this._logHandler(this, F.ERROR, ...e);
|
|
4426
4426
|
}
|
|
4427
4427
|
}
|
|
4428
|
-
const
|
|
4428
|
+
const vc = (t, e) => e.some((n) => t instanceof n);
|
|
4429
4429
|
let lr, Ar;
|
|
4430
|
-
function
|
|
4430
|
+
function wc() {
|
|
4431
4431
|
return lr || (lr = [
|
|
4432
4432
|
IDBDatabase,
|
|
4433
4433
|
IDBObjectStore,
|
|
@@ -4508,7 +4508,7 @@ function Mc(t) {
|
|
|
4508
4508
|
};
|
|
4509
4509
|
}
|
|
4510
4510
|
function Ic(t) {
|
|
4511
|
-
return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t),
|
|
4511
|
+
return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t), vc(t, wc()) ? new Proxy(t, Mn) : t);
|
|
4512
4512
|
}
|
|
4513
4513
|
function Fe(t) {
|
|
4514
4514
|
if (t instanceof IDBRequest)
|
|
@@ -4613,7 +4613,7 @@ const In = "@firebase/app", hr = "0.10.13";
|
|
|
4613
4613
|
* See the License for the specific language governing permissions and
|
|
4614
4614
|
* limitations under the License.
|
|
4615
4615
|
*/
|
|
4616
|
-
const
|
|
4616
|
+
const we = new Ns("@firebase/app"), Yc = "@firebase/app-compat", Vc = "@firebase/analytics-compat", xc = "@firebase/analytics", Fc = "@firebase/app-check-compat", kc = "@firebase/app-check", Rc = "@firebase/auth", qc = "@firebase/auth-compat", Nc = "@firebase/database", Hc = "@firebase/data-connect", Qc = "@firebase/database-compat", Xc = "@firebase/functions", Sc = "@firebase/functions-compat", Uc = "@firebase/installations", Wc = "@firebase/installations-compat", zc = "@firebase/messaging", Zc = "@firebase/messaging-compat", Lc = "@firebase/performance", Kc = "@firebase/performance-compat", Jc = "@firebase/remote-config", _c = "@firebase/remote-config-compat", $c = "@firebase/storage", eu = "@firebase/storage-compat", tu = "@firebase/firestore", nu = "@firebase/vertexai-preview", ru = "@firebase/firestore-compat", su = "firebase", iu = "10.14.1";
|
|
4617
4617
|
/**
|
|
4618
4618
|
* @license
|
|
4619
4619
|
* Copyright 2019 Google LLC
|
|
@@ -4676,20 +4676,20 @@ const Pn = "[DEFAULT]", au = {
|
|
|
4676
4676
|
* See the License for the specific language governing permissions and
|
|
4677
4677
|
* limitations under the License.
|
|
4678
4678
|
*/
|
|
4679
|
-
const
|
|
4679
|
+
const zt = /* @__PURE__ */ new Map(), ou = /* @__PURE__ */ new Map(), On = /* @__PURE__ */ new Map();
|
|
4680
4680
|
function mr(t, e) {
|
|
4681
4681
|
try {
|
|
4682
4682
|
t.container.addComponent(e);
|
|
4683
4683
|
} catch (n) {
|
|
4684
|
-
|
|
4684
|
+
we.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`, n);
|
|
4685
4685
|
}
|
|
4686
4686
|
}
|
|
4687
|
-
function
|
|
4687
|
+
function vt(t) {
|
|
4688
4688
|
const e = t.name;
|
|
4689
4689
|
if (On.has(e))
|
|
4690
|
-
return
|
|
4690
|
+
return we.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
4691
4691
|
On.set(e, t);
|
|
4692
|
-
for (const n of
|
|
4692
|
+
for (const n of zt.values())
|
|
4693
4693
|
mr(n, t);
|
|
4694
4694
|
for (const n of ou.values())
|
|
4695
4695
|
mr(n, t);
|
|
@@ -4733,7 +4733,7 @@ const cu = {
|
|
|
4733
4733
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
|
4734
4734
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
|
4735
4735
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
|
4736
|
-
}, ke = new
|
|
4736
|
+
}, ke = new Pt("app", "Firebase", cu);
|
|
4737
4737
|
/**
|
|
4738
4738
|
* @license
|
|
4739
4739
|
* Copyright 2019 Google LLC
|
|
@@ -4808,7 +4808,7 @@ class uu {
|
|
|
4808
4808
|
* See the License for the specific language governing permissions and
|
|
4809
4809
|
* limitations under the License.
|
|
4810
4810
|
*/
|
|
4811
|
-
const
|
|
4811
|
+
const Tt = iu;
|
|
4812
4812
|
function Ss(t, e = {}) {
|
|
4813
4813
|
let n = t;
|
|
4814
4814
|
typeof e != "object" && (e = { name: e });
|
|
@@ -4822,9 +4822,9 @@ function Ss(t, e = {}) {
|
|
|
4822
4822
|
"no-options"
|
|
4823
4823
|
/* AppError.NO_OPTIONS */
|
|
4824
4824
|
);
|
|
4825
|
-
const i =
|
|
4825
|
+
const i = zt.get(s);
|
|
4826
4826
|
if (i) {
|
|
4827
|
-
if (
|
|
4827
|
+
if (Wt(n, i.options) && Wt(r, i.config))
|
|
4828
4828
|
return i;
|
|
4829
4829
|
throw ke.create("duplicate-app", { appName: s });
|
|
4830
4830
|
}
|
|
@@ -4832,10 +4832,10 @@ function Ss(t, e = {}) {
|
|
|
4832
4832
|
for (const l of On.values())
|
|
4833
4833
|
a.addComponent(l);
|
|
4834
4834
|
const c = new uu(n, r, a);
|
|
4835
|
-
return
|
|
4835
|
+
return zt.set(s, c), c;
|
|
4836
4836
|
}
|
|
4837
4837
|
function lu(t = Pn) {
|
|
4838
|
-
const e =
|
|
4838
|
+
const e = zt.get(t);
|
|
4839
4839
|
if (!e && t === Pn && Rs())
|
|
4840
4840
|
return Ss();
|
|
4841
4841
|
if (!e)
|
|
@@ -4851,10 +4851,10 @@ function $e(t, e, n) {
|
|
|
4851
4851
|
const c = [
|
|
4852
4852
|
`Unable to register library "${s}" with version "${e}":`
|
|
4853
4853
|
];
|
|
4854
|
-
i && c.push(`library name "${s}" contains illegal characters (whitespace or "/")`), i && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`),
|
|
4854
|
+
i && c.push(`library name "${s}" contains illegal characters (whitespace or "/")`), i && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`), we.warn(c.join(" "));
|
|
4855
4855
|
return;
|
|
4856
4856
|
}
|
|
4857
|
-
|
|
4857
|
+
vt(new dt(
|
|
4858
4858
|
`${s}-version`,
|
|
4859
4859
|
() => ({ library: s, version: e }),
|
|
4860
4860
|
"VERSION"
|
|
@@ -4903,12 +4903,12 @@ async function hu(t) {
|
|
|
4903
4903
|
return await n.done, r;
|
|
4904
4904
|
} catch (e) {
|
|
4905
4905
|
if (e instanceof qe)
|
|
4906
|
-
|
|
4906
|
+
we.warn(e.message);
|
|
4907
4907
|
else {
|
|
4908
4908
|
const n = ke.create("idb-get", {
|
|
4909
4909
|
originalErrorMessage: e == null ? void 0 : e.message
|
|
4910
4910
|
});
|
|
4911
|
-
|
|
4911
|
+
we.warn(n.message);
|
|
4912
4912
|
}
|
|
4913
4913
|
}
|
|
4914
4914
|
}
|
|
@@ -4918,12 +4918,12 @@ async function fr(t, e) {
|
|
|
4918
4918
|
await r.objectStore(wt).put(e, Ws(t)), await r.done;
|
|
4919
4919
|
} catch (n) {
|
|
4920
4920
|
if (n instanceof qe)
|
|
4921
|
-
|
|
4921
|
+
we.warn(n.message);
|
|
4922
4922
|
else {
|
|
4923
4923
|
const r = ke.create("idb-set", {
|
|
4924
4924
|
originalErrorMessage: n == null ? void 0 : n.message
|
|
4925
4925
|
});
|
|
4926
|
-
|
|
4926
|
+
we.warn(r.message);
|
|
4927
4927
|
}
|
|
4928
4928
|
}
|
|
4929
4929
|
}
|
|
@@ -4969,7 +4969,7 @@ class gu {
|
|
|
4969
4969
|
return Date.now() - c <= fu;
|
|
4970
4970
|
}), this._storage.overwrite(this._heartbeatsCache));
|
|
4971
4971
|
} catch (r) {
|
|
4972
|
-
|
|
4972
|
+
we.warn(r);
|
|
4973
4973
|
}
|
|
4974
4974
|
}
|
|
4975
4975
|
/**
|
|
@@ -4987,7 +4987,7 @@ class gu {
|
|
|
4987
4987
|
const n = gr(), { heartbeatsToSend: r, unsentEntries: s } = pu(this._heartbeatsCache.heartbeats), i = Fs(JSON.stringify({ version: 2, heartbeats: r }));
|
|
4988
4988
|
return this._heartbeatsCache.lastSentHeartbeatDate = n, s.length > 0 ? (this._heartbeatsCache.heartbeats = s, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), i;
|
|
4989
4989
|
} catch (n) {
|
|
4990
|
-
return
|
|
4990
|
+
return we.warn(n), "";
|
|
4991
4991
|
}
|
|
4992
4992
|
}
|
|
4993
4993
|
}
|
|
@@ -5086,12 +5086,12 @@ function pr(t) {
|
|
|
5086
5086
|
* limitations under the License.
|
|
5087
5087
|
*/
|
|
5088
5088
|
function bu(t) {
|
|
5089
|
-
|
|
5089
|
+
vt(new dt(
|
|
5090
5090
|
"platform-logger",
|
|
5091
5091
|
(e) => new Gc(e),
|
|
5092
5092
|
"PRIVATE"
|
|
5093
5093
|
/* ComponentType.PRIVATE */
|
|
5094
|
-
)),
|
|
5094
|
+
)), vt(new dt(
|
|
5095
5095
|
"heartbeat",
|
|
5096
5096
|
(e) => new gu(e),
|
|
5097
5097
|
"PRIVATE"
|
|
@@ -5099,7 +5099,7 @@ function bu(t) {
|
|
|
5099
5099
|
)), $e(In, hr, t), $e(In, hr, "esm2017"), $e("fire-js", "");
|
|
5100
5100
|
}
|
|
5101
5101
|
bu("");
|
|
5102
|
-
var
|
|
5102
|
+
var vu = "firebase", wu = "10.14.1";
|
|
5103
5103
|
/**
|
|
5104
5104
|
* @license
|
|
5105
5105
|
* Copyright 2020 Google LLC
|
|
@@ -5116,7 +5116,7 @@ var wu = "firebase", vu = "10.14.1";
|
|
|
5116
5116
|
* See the License for the specific language governing permissions and
|
|
5117
5117
|
* limitations under the License.
|
|
5118
5118
|
*/
|
|
5119
|
-
$e(
|
|
5119
|
+
$e(vu, wu, "app");
|
|
5120
5120
|
var yr = function() {
|
|
5121
5121
|
return yr = Object.assign || function(e) {
|
|
5122
5122
|
for (var n, r = 1, s = arguments.length; r < s; r++) {
|
|
@@ -5139,7 +5139,7 @@ function zs() {
|
|
|
5139
5139
|
"dependent-sdk-initialized-before-auth": "Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."
|
|
5140
5140
|
};
|
|
5141
5141
|
}
|
|
5142
|
-
const Bu = zs, Zs = new
|
|
5142
|
+
const Bu = zs, Zs = new Pt("auth", "Firebase", zs());
|
|
5143
5143
|
/**
|
|
5144
5144
|
* @license
|
|
5145
5145
|
* Copyright 2020 Google LLC
|
|
@@ -5156,12 +5156,12 @@ const Bu = zs, Zs = new It("auth", "Firebase", zs());
|
|
|
5156
5156
|
* See the License for the specific language governing permissions and
|
|
5157
5157
|
* limitations under the License.
|
|
5158
5158
|
*/
|
|
5159
|
-
const
|
|
5159
|
+
const Zt = new Ns("@firebase/auth");
|
|
5160
5160
|
function Du(t, ...e) {
|
|
5161
|
-
|
|
5161
|
+
Zt.logLevel <= F.WARN && Zt.warn(`Auth (${Tt}): ${t}`, ...e);
|
|
5162
5162
|
}
|
|
5163
|
-
function
|
|
5164
|
-
|
|
5163
|
+
function Nt(t, ...e) {
|
|
5164
|
+
Zt.logLevel <= F.ERROR && Zt.error(`Auth (${Tt}): ${t}`, ...e);
|
|
5165
5165
|
}
|
|
5166
5166
|
/**
|
|
5167
5167
|
* @license
|
|
@@ -5187,7 +5187,7 @@ function Ae(t, ...e) {
|
|
|
5187
5187
|
}
|
|
5188
5188
|
function Ls(t, e, n) {
|
|
5189
5189
|
const r = Object.assign(Object.assign({}, Bu()), { [e]: n });
|
|
5190
|
-
return new
|
|
5190
|
+
return new Pt("auth", "Firebase", r).create(e, {
|
|
5191
5191
|
appName: t.name
|
|
5192
5192
|
});
|
|
5193
5193
|
}
|
|
@@ -5207,7 +5207,7 @@ function M(t, e, ...n) {
|
|
|
5207
5207
|
}
|
|
5208
5208
|
function ye(t) {
|
|
5209
5209
|
const e = "INTERNAL ASSERTION FAILED: " + t;
|
|
5210
|
-
throw
|
|
5210
|
+
throw Nt(e), new Error(e);
|
|
5211
5211
|
}
|
|
5212
5212
|
function De(t, e) {
|
|
5213
5213
|
t || ye(e);
|
|
@@ -5291,7 +5291,7 @@ function Mu() {
|
|
|
5291
5291
|
* See the License for the specific language governing permissions and
|
|
5292
5292
|
* limitations under the License.
|
|
5293
5293
|
*/
|
|
5294
|
-
class
|
|
5294
|
+
class Gt {
|
|
5295
5295
|
constructor(e, n) {
|
|
5296
5296
|
this.shortDelay = e, this.longDelay = n, De(n > e, "Short delay should be less than long delay!"), this.isMobile = _o() || tc();
|
|
5297
5297
|
}
|
|
@@ -5481,7 +5481,7 @@ const Iu = {
|
|
|
5481
5481
|
* See the License for the specific language governing permissions and
|
|
5482
5482
|
* limitations under the License.
|
|
5483
5483
|
*/
|
|
5484
|
-
const Pu = new
|
|
5484
|
+
const Pu = new Gt(3e4, 6e4);
|
|
5485
5485
|
function sn(t, e) {
|
|
5486
5486
|
return t.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: t.tenantId }) : e;
|
|
5487
5487
|
}
|
|
@@ -5491,7 +5491,7 @@ async function mt(t, e, n, r, s = {}) {
|
|
|
5491
5491
|
r && (e === "GET" ? a = r : i = {
|
|
5492
5492
|
body: JSON.stringify(r)
|
|
5493
5493
|
});
|
|
5494
|
-
const c =
|
|
5494
|
+
const c = Ot(Object.assign({ key: t.config.apiKey }, a)).slice(1), l = await t._getAdditionalHeaders();
|
|
5495
5495
|
l[
|
|
5496
5496
|
"Content-Type"
|
|
5497
5497
|
/* HttpHeader.CONTENT_TYPE */
|
|
@@ -5517,17 +5517,17 @@ async function Js(t, e, n) {
|
|
|
5517
5517
|
s.clearNetworkTimeout();
|
|
5518
5518
|
const a = await i.json();
|
|
5519
5519
|
if ("needConfirmation" in a)
|
|
5520
|
-
throw
|
|
5520
|
+
throw kt(t, "account-exists-with-different-credential", a);
|
|
5521
5521
|
if (i.ok && !("errorMessage" in a))
|
|
5522
5522
|
return a;
|
|
5523
5523
|
{
|
|
5524
5524
|
const c = i.ok ? a.errorMessage : a.error.message, [l, A] = c.split(" : ");
|
|
5525
5525
|
if (l === "FEDERATED_USER_ID_ALREADY_LINKED")
|
|
5526
|
-
throw
|
|
5526
|
+
throw kt(t, "credential-already-in-use", a);
|
|
5527
5527
|
if (l === "EMAIL_EXISTS")
|
|
5528
|
-
throw
|
|
5528
|
+
throw kt(t, "email-already-in-use", a);
|
|
5529
5529
|
if (l === "USER_DISABLED")
|
|
5530
|
-
throw
|
|
5530
|
+
throw kt(t, "user-disabled", a);
|
|
5531
5531
|
const f = r[l] || l.toLowerCase().replace(/[_\s]+/g, "-");
|
|
5532
5532
|
if (A)
|
|
5533
5533
|
throw Ls(t, f, A);
|
|
@@ -5563,7 +5563,7 @@ class Ou {
|
|
|
5563
5563
|
clearTimeout(this.timer);
|
|
5564
5564
|
}
|
|
5565
5565
|
}
|
|
5566
|
-
function
|
|
5566
|
+
function kt(t, e, n) {
|
|
5567
5567
|
const r = {
|
|
5568
5568
|
appName: t.name
|
|
5569
5569
|
};
|
|
@@ -5643,15 +5643,15 @@ function yn(t) {
|
|
|
5643
5643
|
function Ln(t) {
|
|
5644
5644
|
const [e, n, r] = t.split(".");
|
|
5645
5645
|
if (e === void 0 || n === void 0 || r === void 0)
|
|
5646
|
-
return
|
|
5646
|
+
return Nt("JWT malformed, contained fewer than 3 sections"), null;
|
|
5647
5647
|
try {
|
|
5648
5648
|
const s = ks(n);
|
|
5649
|
-
return s ? JSON.parse(s) : (
|
|
5649
|
+
return s ? JSON.parse(s) : (Nt("Failed to decode base64 JWT payload"), null);
|
|
5650
5650
|
} catch (s) {
|
|
5651
|
-
return
|
|
5651
|
+
return Nt("Caught error parsing JWT payload as JSON", s == null ? void 0 : s.toString()), null;
|
|
5652
5652
|
}
|
|
5653
5653
|
}
|
|
5654
|
-
function
|
|
5654
|
+
function vr(t) {
|
|
5655
5655
|
const e = Ln(t);
|
|
5656
5656
|
return M(
|
|
5657
5657
|
e,
|
|
@@ -5683,7 +5683,7 @@ function wr(t) {
|
|
|
5683
5683
|
* See the License for the specific language governing permissions and
|
|
5684
5684
|
* limitations under the License.
|
|
5685
5685
|
*/
|
|
5686
|
-
async function
|
|
5686
|
+
async function Bt(t, e, n = !1) {
|
|
5687
5687
|
if (n)
|
|
5688
5688
|
return e;
|
|
5689
5689
|
try {
|
|
@@ -5806,9 +5806,9 @@ class Gn {
|
|
|
5806
5806
|
* See the License for the specific language governing permissions and
|
|
5807
5807
|
* limitations under the License.
|
|
5808
5808
|
*/
|
|
5809
|
-
async function
|
|
5809
|
+
async function Lt(t) {
|
|
5810
5810
|
var e;
|
|
5811
|
-
const n = t.auth, r = await t.getIdToken(), s = await
|
|
5811
|
+
const n = t.auth, r = await t.getIdToken(), s = await Bt(t, ei(n, { idToken: r }));
|
|
5812
5812
|
M(
|
|
5813
5813
|
s == null ? void 0 : s.users.length,
|
|
5814
5814
|
n,
|
|
@@ -5833,7 +5833,7 @@ async function Zt(t) {
|
|
|
5833
5833
|
}
|
|
5834
5834
|
async function Vu(t) {
|
|
5835
5835
|
const e = ht(t);
|
|
5836
|
-
await
|
|
5836
|
+
await Lt(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
5837
5837
|
}
|
|
5838
5838
|
function xu(t, e) {
|
|
5839
5839
|
return [...t.filter((r) => !e.some((s) => s.providerId === r.providerId)), ...e];
|
|
@@ -5869,7 +5869,7 @@ function ti(t) {
|
|
|
5869
5869
|
*/
|
|
5870
5870
|
async function Fu(t, e) {
|
|
5871
5871
|
const n = await Js(t, {}, async () => {
|
|
5872
|
-
const r =
|
|
5872
|
+
const r = Ot({
|
|
5873
5873
|
grant_type: "refresh_token",
|
|
5874
5874
|
refresh_token: e
|
|
5875
5875
|
}).slice(1), { tokenApiHost: s, apiKey: i } = t.config, a = $s(t, s, "/v1/token", `key=${i}`), c = await t._getAdditionalHeaders();
|
|
@@ -5928,7 +5928,7 @@ class et {
|
|
|
5928
5928
|
"internal-error"
|
|
5929
5929
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5930
5930
|
);
|
|
5931
|
-
const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) :
|
|
5931
|
+
const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : vr(e.idToken);
|
|
5932
5932
|
this.updateTokensAndExpiration(e.idToken, e.refreshToken, n);
|
|
5933
5933
|
}
|
|
5934
5934
|
updateFromIdToken(e) {
|
|
@@ -5937,7 +5937,7 @@ class et {
|
|
|
5937
5937
|
"internal-error"
|
|
5938
5938
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5939
5939
|
);
|
|
5940
|
-
const n =
|
|
5940
|
+
const n = vr(e);
|
|
5941
5941
|
this.updateTokensAndExpiration(e, null, n);
|
|
5942
5942
|
}
|
|
5943
5943
|
async getToken(e, n = !1) {
|
|
@@ -6010,7 +6010,7 @@ class be {
|
|
|
6010
6010
|
this.providerId = "firebase", this.proactiveRefresh = new Yu(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = n, this.auth = r, this.stsTokenManager = s, this.accessToken = s.accessToken, this.displayName = i.displayName || null, this.email = i.email || null, this.emailVerified = i.emailVerified || !1, this.phoneNumber = i.phoneNumber || null, this.photoURL = i.photoURL || null, this.isAnonymous = i.isAnonymous || !1, this.tenantId = i.tenantId || null, this.providerData = i.providerData ? [...i.providerData] : [], this.metadata = new Gn(i.createdAt || void 0, i.lastLoginAt || void 0);
|
|
6011
6011
|
}
|
|
6012
6012
|
async getIdToken(e) {
|
|
6013
|
-
const n = await
|
|
6013
|
+
const n = await Bt(this, this.stsTokenManager.getToken(this.auth, e));
|
|
6014
6014
|
return M(
|
|
6015
6015
|
n,
|
|
6016
6016
|
this.auth,
|
|
@@ -6055,13 +6055,13 @@ class be {
|
|
|
6055
6055
|
}
|
|
6056
6056
|
async _updateTokensIfNecessary(e, n = !1) {
|
|
6057
6057
|
let r = !1;
|
|
6058
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await
|
|
6058
|
+
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await Lt(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
|
|
6059
6059
|
}
|
|
6060
6060
|
async delete() {
|
|
6061
6061
|
if (pe(this.auth.app))
|
|
6062
6062
|
return Promise.reject(Re(this.auth));
|
|
6063
6063
|
const e = await this.getIdToken();
|
|
6064
|
-
return await
|
|
6064
|
+
return await Bt(this, Tu(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
6065
6065
|
}
|
|
6066
6066
|
toJSON() {
|
|
6067
6067
|
return Object.assign(Object.assign({
|
|
@@ -6089,7 +6089,7 @@ class be {
|
|
|
6089
6089
|
}
|
|
6090
6090
|
static _fromJSON(e, n) {
|
|
6091
6091
|
var r, s, i, a, c, l, A, f;
|
|
6092
|
-
const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0,
|
|
6092
|
+
const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0, w = (i = n.phoneNumber) !== null && i !== void 0 ? i : void 0, O = (a = n.photoURL) !== null && a !== void 0 ? a : void 0, I = (c = n.tenantId) !== null && c !== void 0 ? c : void 0, V = (l = n._redirectEventId) !== null && l !== void 0 ? l : void 0, R = (A = n.createdAt) !== null && A !== void 0 ? A : void 0, Q = (f = n.lastLoginAt) !== null && f !== void 0 ? f : void 0, { uid: Y, emailVerified: v, isAnonymous: H, providerData: U, stsTokenManager: ee } = n;
|
|
6093
6093
|
M(
|
|
6094
6094
|
Y && ee,
|
|
6095
6095
|
e,
|
|
@@ -6103,7 +6103,7 @@ class be {
|
|
|
6103
6103
|
"internal-error"
|
|
6104
6104
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
6105
6105
|
), Ee(p, e.name), Ee(B, e.name), M(
|
|
6106
|
-
typeof
|
|
6106
|
+
typeof v == "boolean",
|
|
6107
6107
|
e,
|
|
6108
6108
|
"internal-error"
|
|
6109
6109
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -6112,16 +6112,16 @@ class be {
|
|
|
6112
6112
|
e,
|
|
6113
6113
|
"internal-error"
|
|
6114
6114
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
6115
|
-
), Ee(
|
|
6115
|
+
), Ee(w, e.name), Ee(O, e.name), Ee(I, e.name), Ee(V, e.name), Ee(R, e.name), Ee(Q, e.name);
|
|
6116
6116
|
const u = new be({
|
|
6117
6117
|
uid: Y,
|
|
6118
6118
|
auth: e,
|
|
6119
6119
|
email: B,
|
|
6120
|
-
emailVerified:
|
|
6120
|
+
emailVerified: v,
|
|
6121
6121
|
displayName: p,
|
|
6122
6122
|
isAnonymous: H,
|
|
6123
6123
|
photoURL: O,
|
|
6124
|
-
phoneNumber:
|
|
6124
|
+
phoneNumber: w,
|
|
6125
6125
|
tenantId: I,
|
|
6126
6126
|
stsTokenManager: q,
|
|
6127
6127
|
createdAt: R,
|
|
@@ -6143,7 +6143,7 @@ class be {
|
|
|
6143
6143
|
stsTokenManager: s,
|
|
6144
6144
|
isAnonymous: r
|
|
6145
6145
|
});
|
|
6146
|
-
return await
|
|
6146
|
+
return await Lt(i), i;
|
|
6147
6147
|
}
|
|
6148
6148
|
/**
|
|
6149
6149
|
* Initialize a User from an idToken server response
|
|
@@ -6195,11 +6195,11 @@ class be {
|
|
|
6195
6195
|
* See the License for the specific language governing permissions and
|
|
6196
6196
|
* limitations under the License.
|
|
6197
6197
|
*/
|
|
6198
|
-
const
|
|
6199
|
-
function
|
|
6198
|
+
const wr = /* @__PURE__ */ new Map();
|
|
6199
|
+
function ve(t) {
|
|
6200
6200
|
De(t instanceof Function, "Expected a class definition");
|
|
6201
|
-
let e =
|
|
6202
|
-
return e ? (De(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(),
|
|
6201
|
+
let e = wr.get(t);
|
|
6202
|
+
return e ? (De(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(), wr.set(t, e), e);
|
|
6203
6203
|
}
|
|
6204
6204
|
/**
|
|
6205
6205
|
* @license
|
|
@@ -6257,14 +6257,14 @@ const Br = ni;
|
|
|
6257
6257
|
* See the License for the specific language governing permissions and
|
|
6258
6258
|
* limitations under the License.
|
|
6259
6259
|
*/
|
|
6260
|
-
function
|
|
6260
|
+
function Ht(t, e, n) {
|
|
6261
6261
|
return `firebase:${t}:${e}:${n}`;
|
|
6262
6262
|
}
|
|
6263
6263
|
class tt {
|
|
6264
6264
|
constructor(e, n, r) {
|
|
6265
6265
|
this.persistence = e, this.auth = n, this.userKey = r;
|
|
6266
6266
|
const { config: s, name: i } = this.auth;
|
|
6267
|
-
this.fullUserKey =
|
|
6267
|
+
this.fullUserKey = Ht(this.userKey, s.apiKey, i), this.fullPersistenceKey = Ht("persistence", s.apiKey, i), this.boundEventHandler = n._onStorageEvent.bind(n), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
|
|
6268
6268
|
}
|
|
6269
6269
|
setCurrentUser(e) {
|
|
6270
6270
|
return this.persistence._set(this.fullUserKey, e.toJSON());
|
|
@@ -6291,13 +6291,13 @@ class tt {
|
|
|
6291
6291
|
}
|
|
6292
6292
|
static async create(e, n, r = "authUser") {
|
|
6293
6293
|
if (!n.length)
|
|
6294
|
-
return new tt(
|
|
6294
|
+
return new tt(ve(Br), e, r);
|
|
6295
6295
|
const s = (await Promise.all(n.map(async (A) => {
|
|
6296
6296
|
if (await A._isAvailable())
|
|
6297
6297
|
return A;
|
|
6298
6298
|
}))).filter((A) => A);
|
|
6299
|
-
let i = s[0] ||
|
|
6300
|
-
const a =
|
|
6299
|
+
let i = s[0] || ve(Br);
|
|
6300
|
+
const a = Ht(r, e.config.apiKey, e.name);
|
|
6301
6301
|
let c = null;
|
|
6302
6302
|
for (const A of n)
|
|
6303
6303
|
try {
|
|
@@ -6430,7 +6430,7 @@ function Ai(t, e = []) {
|
|
|
6430
6430
|
n = t;
|
|
6431
6431
|
}
|
|
6432
6432
|
const r = e.length ? e.join(",") : "FirebaseCore-web";
|
|
6433
|
-
return `${n}/JsCore/${
|
|
6433
|
+
return `${n}/JsCore/${Tt}/${r}`;
|
|
6434
6434
|
}
|
|
6435
6435
|
/**
|
|
6436
6436
|
* @license
|
|
@@ -6615,7 +6615,7 @@ class Su {
|
|
|
6615
6615
|
this.app = e, this.heartbeatServiceProvider = n, this.appCheckServiceProvider = r, this.config = s, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new Cr(this), this.idTokenSubscription = new Cr(this), this.beforeStateQueue = new Nu(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = Zs, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = s.sdkClientVersion;
|
|
6616
6616
|
}
|
|
6617
6617
|
_initializeWithPersistence(e, n) {
|
|
6618
|
-
return n && (this._popupRedirectResolver =
|
|
6618
|
+
return n && (this._popupRedirectResolver = ve(n)), this._initializationPromise = this.queue(async () => {
|
|
6619
6619
|
var r, s;
|
|
6620
6620
|
if (!this._deleted && (this.persistenceManager = await tt.create(this, e), !this._deleted)) {
|
|
6621
6621
|
if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
|
|
@@ -6698,7 +6698,7 @@ class Su {
|
|
|
6698
6698
|
}
|
|
6699
6699
|
async reloadAndSetCurrentUserOrClear(e) {
|
|
6700
6700
|
try {
|
|
6701
|
-
await
|
|
6701
|
+
await Lt(e);
|
|
6702
6702
|
} catch (n) {
|
|
6703
6703
|
if ((n == null ? void 0 : n.code) !== "auth/network-request-failed")
|
|
6704
6704
|
return this.directlySetCurrentUser(null);
|
|
@@ -6742,7 +6742,7 @@ class Su {
|
|
|
6742
6742
|
}
|
|
6743
6743
|
setPersistence(e) {
|
|
6744
6744
|
return pe(this.app) ? Promise.reject(Re(this)) : this.queue(async () => {
|
|
6745
|
-
await this.assertedPersistence.setPersistence(
|
|
6745
|
+
await this.assertedPersistence.setPersistence(ve(e));
|
|
6746
6746
|
});
|
|
6747
6747
|
}
|
|
6748
6748
|
_getRecaptchaConfig() {
|
|
@@ -6764,7 +6764,7 @@ class Su {
|
|
|
6764
6764
|
return this.assertedPersistence.persistence.type;
|
|
6765
6765
|
}
|
|
6766
6766
|
_updateErrorMap(e) {
|
|
6767
|
-
this._errorFactory = new
|
|
6767
|
+
this._errorFactory = new Pt("auth", "Firebase", e());
|
|
6768
6768
|
}
|
|
6769
6769
|
onAuthStateChanged(e, n, r) {
|
|
6770
6770
|
return this.registerStateListener(this.authStateSubscription, e, n, r);
|
|
@@ -6815,7 +6815,7 @@ class Su {
|
|
|
6815
6815
|
}
|
|
6816
6816
|
async getOrInitRedirectPersistenceManager(e) {
|
|
6817
6817
|
if (!this.redirectPersistenceManager) {
|
|
6818
|
-
const n = e &&
|
|
6818
|
+
const n = e && ve(e) || this._popupRedirectResolver;
|
|
6819
6819
|
M(
|
|
6820
6820
|
n,
|
|
6821
6821
|
this,
|
|
@@ -6823,7 +6823,7 @@ class Su {
|
|
|
6823
6823
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
6824
6824
|
), this.redirectPersistenceManager = await tt.create(
|
|
6825
6825
|
this,
|
|
6826
|
-
[
|
|
6826
|
+
[ve(n._redirectPersistence)],
|
|
6827
6827
|
"redirectUser"
|
|
6828
6828
|
/* KeyName.REDIRECT_USER */
|
|
6829
6829
|
), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
|
|
@@ -7015,7 +7015,7 @@ function Lu(t, e) {
|
|
|
7015
7015
|
const n = Xs(t, "auth");
|
|
7016
7016
|
if (n.isInitialized()) {
|
|
7017
7017
|
const s = n.getImmediate(), i = n.getOptions();
|
|
7018
|
-
if (
|
|
7018
|
+
if (Wt(i, e ?? {}))
|
|
7019
7019
|
return s;
|
|
7020
7020
|
Be(
|
|
7021
7021
|
s,
|
|
@@ -7026,7 +7026,7 @@ function Lu(t, e) {
|
|
|
7026
7026
|
return n.initialize({ options: e });
|
|
7027
7027
|
}
|
|
7028
7028
|
function Ku(t, e) {
|
|
7029
|
-
const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(
|
|
7029
|
+
const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(ve);
|
|
7030
7030
|
e != null && e.errorMap && t._updateErrorMap(e.errorMap), t._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
|
7031
7031
|
}
|
|
7032
7032
|
function Ju(t, e, n) {
|
|
@@ -7222,7 +7222,7 @@ class Ze extends hi {
|
|
|
7222
7222
|
e.pendingToken = this.pendingToken;
|
|
7223
7223
|
else {
|
|
7224
7224
|
const n = {};
|
|
7225
|
-
this.idToken && (n.id_token = this.idToken), this.accessToken && (n.access_token = this.accessToken), this.secret && (n.oauth_token_secret = this.secret), n.providerId = this.providerId, this.nonce && !this.pendingToken && (n.nonce = this.nonce), e.postBody =
|
|
7225
|
+
this.idToken && (n.id_token = this.idToken), this.accessToken && (n.access_token = this.accessToken), this.secret && (n.oauth_token_secret = this.secret), n.providerId = this.providerId, this.nonce && !this.pendingToken && (n.nonce = this.nonce), e.postBody = Ot(n);
|
|
7226
7226
|
}
|
|
7227
7227
|
return e;
|
|
7228
7228
|
}
|
|
@@ -7296,7 +7296,7 @@ class mi {
|
|
|
7296
7296
|
* See the License for the specific language governing permissions and
|
|
7297
7297
|
* limitations under the License.
|
|
7298
7298
|
*/
|
|
7299
|
-
class
|
|
7299
|
+
class jt extends mi {
|
|
7300
7300
|
constructor() {
|
|
7301
7301
|
super(...arguments), this.scopes = [];
|
|
7302
7302
|
}
|
|
@@ -7331,7 +7331,7 @@ class Gt extends mi {
|
|
|
7331
7331
|
* See the License for the specific language governing permissions and
|
|
7332
7332
|
* limitations under the License.
|
|
7333
7333
|
*/
|
|
7334
|
-
class Ie extends
|
|
7334
|
+
class Ie extends jt {
|
|
7335
7335
|
constructor() {
|
|
7336
7336
|
super(
|
|
7337
7337
|
"facebook.com"
|
|
@@ -7402,7 +7402,7 @@ Ie.PROVIDER_ID = "facebook.com";
|
|
|
7402
7402
|
* See the License for the specific language governing permissions and
|
|
7403
7403
|
* limitations under the License.
|
|
7404
7404
|
*/
|
|
7405
|
-
class Pe extends
|
|
7405
|
+
class Pe extends jt {
|
|
7406
7406
|
constructor() {
|
|
7407
7407
|
super(
|
|
7408
7408
|
"google.com"
|
|
@@ -7478,7 +7478,7 @@ Pe.PROVIDER_ID = "google.com";
|
|
|
7478
7478
|
* See the License for the specific language governing permissions and
|
|
7479
7479
|
* limitations under the License.
|
|
7480
7480
|
*/
|
|
7481
|
-
class Oe extends
|
|
7481
|
+
class Oe extends jt {
|
|
7482
7482
|
constructor() {
|
|
7483
7483
|
super(
|
|
7484
7484
|
"github.com"
|
|
@@ -7542,7 +7542,7 @@ Oe.PROVIDER_ID = "github.com";
|
|
|
7542
7542
|
* See the License for the specific language governing permissions and
|
|
7543
7543
|
* limitations under the License.
|
|
7544
7544
|
*/
|
|
7545
|
-
class Te extends
|
|
7545
|
+
class Te extends jt {
|
|
7546
7546
|
constructor() {
|
|
7547
7547
|
super(
|
|
7548
7548
|
"twitter.com"
|
|
@@ -7658,10 +7658,10 @@ function Mr(t) {
|
|
|
7658
7658
|
* See the License for the specific language governing permissions and
|
|
7659
7659
|
* limitations under the License.
|
|
7660
7660
|
*/
|
|
7661
|
-
class
|
|
7661
|
+
class Kt extends qe {
|
|
7662
7662
|
constructor(e, n, r, s) {
|
|
7663
7663
|
var i;
|
|
7664
|
-
super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this,
|
|
7664
|
+
super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this, Kt.prototype), this.customData = {
|
|
7665
7665
|
appName: e.name,
|
|
7666
7666
|
tenantId: (i = e.tenantId) !== null && i !== void 0 ? i : void 0,
|
|
7667
7667
|
_serverResponse: n.customData._serverResponse,
|
|
@@ -7669,16 +7669,16 @@ class Lt extends qe {
|
|
|
7669
7669
|
};
|
|
7670
7670
|
}
|
|
7671
7671
|
static _fromErrorAndOperation(e, n, r, s) {
|
|
7672
|
-
return new
|
|
7672
|
+
return new Kt(e, n, r, s);
|
|
7673
7673
|
}
|
|
7674
7674
|
}
|
|
7675
7675
|
function fi(t, e, n, r) {
|
|
7676
7676
|
return (e === "reauthenticate" ? n._getReauthenticationResolver(t) : n._getIdTokenResponse(t)).catch((i) => {
|
|
7677
|
-
throw i.code === "auth/multi-factor-auth-required" ?
|
|
7677
|
+
throw i.code === "auth/multi-factor-auth-required" ? Kt._fromErrorAndOperation(t, i, e, r) : i;
|
|
7678
7678
|
});
|
|
7679
7679
|
}
|
|
7680
7680
|
async function tl(t, e, n = !1) {
|
|
7681
|
-
const r = await
|
|
7681
|
+
const r = await Bt(t, e._linkToIdToken(t.auth, await t.getIdToken()), n);
|
|
7682
7682
|
return Le._forOperation(t, "link", r);
|
|
7683
7683
|
}
|
|
7684
7684
|
/**
|
|
@@ -7703,7 +7703,7 @@ async function nl(t, e, n = !1) {
|
|
|
7703
7703
|
return Promise.reject(Re(r));
|
|
7704
7704
|
const s = "reauthenticate";
|
|
7705
7705
|
try {
|
|
7706
|
-
const i = await
|
|
7706
|
+
const i = await Bt(t, fi(r, s, e, t), n);
|
|
7707
7707
|
M(
|
|
7708
7708
|
i.idToken,
|
|
7709
7709
|
r,
|
|
@@ -7804,7 +7804,7 @@ function al(t, e, n, r) {
|
|
|
7804
7804
|
function ol(t, e, n) {
|
|
7805
7805
|
return ht(t).beforeAuthStateChanged(e, n);
|
|
7806
7806
|
}
|
|
7807
|
-
const
|
|
7807
|
+
const Jt = "__sak";
|
|
7808
7808
|
/**
|
|
7809
7809
|
* @license
|
|
7810
7810
|
* Copyright 2019 Google LLC
|
|
@@ -7827,7 +7827,7 @@ class gi {
|
|
|
7827
7827
|
}
|
|
7828
7828
|
_isAvailable() {
|
|
7829
7829
|
try {
|
|
7830
|
-
return this.storage ? (this.storage.setItem(
|
|
7830
|
+
return this.storage ? (this.storage.setItem(Jt, "1"), this.storage.removeItem(Jt), Promise.resolve(!0)) : Promise.resolve(!1);
|
|
7831
7831
|
} catch {
|
|
7832
7832
|
return Promise.resolve(!1);
|
|
7833
7833
|
}
|
|
@@ -8247,7 +8247,7 @@ function hl(t) {
|
|
|
8247
8247
|
* See the License for the specific language governing permissions and
|
|
8248
8248
|
* limitations under the License.
|
|
8249
8249
|
*/
|
|
8250
|
-
function
|
|
8250
|
+
function vi() {
|
|
8251
8251
|
return typeof de().WorkerGlobalScope < "u" && typeof de().importScripts == "function";
|
|
8252
8252
|
}
|
|
8253
8253
|
async function ml() {
|
|
@@ -8264,7 +8264,7 @@ function fl() {
|
|
|
8264
8264
|
return ((t = navigator == null ? void 0 : navigator.serviceWorker) === null || t === void 0 ? void 0 : t.controller) || null;
|
|
8265
8265
|
}
|
|
8266
8266
|
function gl() {
|
|
8267
|
-
return
|
|
8267
|
+
return vi() ? self : null;
|
|
8268
8268
|
}
|
|
8269
8269
|
/**
|
|
8270
8270
|
* @license
|
|
@@ -8282,8 +8282,8 @@ function gl() {
|
|
|
8282
8282
|
* See the License for the specific language governing permissions and
|
|
8283
8283
|
* limitations under the License.
|
|
8284
8284
|
*/
|
|
8285
|
-
const
|
|
8286
|
-
class
|
|
8285
|
+
const wi = "firebaseLocalStorageDb", pl = 1, _t = "firebaseLocalStorage", Bi = "fbase_key";
|
|
8286
|
+
class Yt {
|
|
8287
8287
|
constructor(e) {
|
|
8288
8288
|
this.request = e;
|
|
8289
8289
|
}
|
|
@@ -8298,27 +8298,27 @@ class jt {
|
|
|
8298
8298
|
}
|
|
8299
8299
|
}
|
|
8300
8300
|
function cn(t, e) {
|
|
8301
|
-
return t.transaction([
|
|
8301
|
+
return t.transaction([_t], e ? "readwrite" : "readonly").objectStore(_t);
|
|
8302
8302
|
}
|
|
8303
8303
|
function yl() {
|
|
8304
|
-
const t = indexedDB.deleteDatabase(
|
|
8305
|
-
return new
|
|
8304
|
+
const t = indexedDB.deleteDatabase(wi);
|
|
8305
|
+
return new Yt(t).toPromise();
|
|
8306
8306
|
}
|
|
8307
8307
|
function jn() {
|
|
8308
|
-
const t = indexedDB.open(
|
|
8308
|
+
const t = indexedDB.open(wi, pl);
|
|
8309
8309
|
return new Promise((e, n) => {
|
|
8310
8310
|
t.addEventListener("error", () => {
|
|
8311
8311
|
n(t.error);
|
|
8312
8312
|
}), t.addEventListener("upgradeneeded", () => {
|
|
8313
8313
|
const r = t.result;
|
|
8314
8314
|
try {
|
|
8315
|
-
r.createObjectStore(
|
|
8315
|
+
r.createObjectStore(_t, { keyPath: Bi });
|
|
8316
8316
|
} catch (s) {
|
|
8317
8317
|
n(s);
|
|
8318
8318
|
}
|
|
8319
8319
|
}), t.addEventListener("success", async () => {
|
|
8320
8320
|
const r = t.result;
|
|
8321
|
-
r.objectStoreNames.contains(
|
|
8321
|
+
r.objectStoreNames.contains(_t) ? e(r) : (r.close(), await yl(), e(await jn()));
|
|
8322
8322
|
});
|
|
8323
8323
|
});
|
|
8324
8324
|
}
|
|
@@ -8327,17 +8327,17 @@ async function Ir(t, e, n) {
|
|
|
8327
8327
|
[Bi]: e,
|
|
8328
8328
|
value: n
|
|
8329
8329
|
});
|
|
8330
|
-
return new
|
|
8330
|
+
return new Yt(r).toPromise();
|
|
8331
8331
|
}
|
|
8332
8332
|
async function bl(t, e) {
|
|
8333
|
-
const n = cn(t, !1).get(e), r = await new
|
|
8333
|
+
const n = cn(t, !1).get(e), r = await new Yt(n).toPromise();
|
|
8334
8334
|
return r === void 0 ? null : r.value;
|
|
8335
8335
|
}
|
|
8336
8336
|
function Pr(t, e) {
|
|
8337
8337
|
const n = cn(t, !0).delete(e);
|
|
8338
|
-
return new
|
|
8338
|
+
return new Yt(n).toPromise();
|
|
8339
8339
|
}
|
|
8340
|
-
const
|
|
8340
|
+
const vl = 800, wl = 3;
|
|
8341
8341
|
class Di {
|
|
8342
8342
|
constructor() {
|
|
8343
8343
|
this.type = "LOCAL", this._shouldAllowMigration = !0, this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.pendingWrites = 0, this.receiver = null, this.sender = null, this.serviceWorkerReceiverAvailable = !1, this.activeServiceWorker = null, this._workerInitializationPromise = this.initializeServiceWorkerMessaging().then(() => {
|
|
@@ -8354,7 +8354,7 @@ class Di {
|
|
|
8354
8354
|
const r = await this._openDb();
|
|
8355
8355
|
return await e(r);
|
|
8356
8356
|
} catch (r) {
|
|
8357
|
-
if (n++ >
|
|
8357
|
+
if (n++ > wl)
|
|
8358
8358
|
throw r;
|
|
8359
8359
|
this.db && (this.db.close(), this.db = void 0);
|
|
8360
8360
|
}
|
|
@@ -8364,7 +8364,7 @@ class Di {
|
|
|
8364
8364
|
* postMessage interface to send these events to the worker ourselves.
|
|
8365
8365
|
*/
|
|
8366
8366
|
async initializeServiceWorkerMessaging() {
|
|
8367
|
-
return
|
|
8367
|
+
return vi() ? this.initializeReceiver() : this.initializeSender();
|
|
8368
8368
|
}
|
|
8369
8369
|
/**
|
|
8370
8370
|
* As the worker we should listen to events from the main window.
|
|
@@ -8427,7 +8427,7 @@ class Di {
|
|
|
8427
8427
|
if (!indexedDB)
|
|
8428
8428
|
return !1;
|
|
8429
8429
|
const e = await jn();
|
|
8430
|
-
return await Ir(e,
|
|
8430
|
+
return await Ir(e, Jt, "1"), await Pr(e, Jt), !0;
|
|
8431
8431
|
} catch {
|
|
8432
8432
|
}
|
|
8433
8433
|
return !1;
|
|
@@ -8453,7 +8453,7 @@ class Di {
|
|
|
8453
8453
|
async _poll() {
|
|
8454
8454
|
const e = await this._withRetries((s) => {
|
|
8455
8455
|
const i = cn(s, !1).getAll();
|
|
8456
|
-
return new
|
|
8456
|
+
return new Yt(i).toPromise();
|
|
8457
8457
|
});
|
|
8458
8458
|
if (!e)
|
|
8459
8459
|
return [];
|
|
@@ -8475,7 +8475,7 @@ class Di {
|
|
|
8475
8475
|
s(n);
|
|
8476
8476
|
}
|
|
8477
8477
|
startPolling() {
|
|
8478
|
-
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(),
|
|
8478
|
+
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), vl);
|
|
8479
8479
|
}
|
|
8480
8480
|
stopPolling() {
|
|
8481
8481
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
|
@@ -8489,7 +8489,7 @@ class Di {
|
|
|
8489
8489
|
}
|
|
8490
8490
|
Di.type = "LOCAL";
|
|
8491
8491
|
const Bl = Di;
|
|
8492
|
-
new
|
|
8492
|
+
new Gt(3e4, 6e4);
|
|
8493
8493
|
/**
|
|
8494
8494
|
* @license
|
|
8495
8495
|
* Copyright 2021 Google LLC
|
|
@@ -8507,7 +8507,7 @@ new Tt(3e4, 6e4);
|
|
|
8507
8507
|
* limitations under the License.
|
|
8508
8508
|
*/
|
|
8509
8509
|
function Dl(t, e) {
|
|
8510
|
-
return e ?
|
|
8510
|
+
return e ? ve(e) : (M(
|
|
8511
8511
|
t._popupRedirectResolver,
|
|
8512
8512
|
t,
|
|
8513
8513
|
"argument-error"
|
|
@@ -8680,7 +8680,7 @@ class Ci {
|
|
|
8680
8680
|
* See the License for the specific language governing permissions and
|
|
8681
8681
|
* limitations under the License.
|
|
8682
8682
|
*/
|
|
8683
|
-
const Il = new
|
|
8683
|
+
const Il = new Gt(2e3, 1e4);
|
|
8684
8684
|
class _e extends Ci {
|
|
8685
8685
|
constructor(e, n, r, s, i) {
|
|
8686
8686
|
super(e, n, s, i), this.provider = r, this.authWindow = null, this.pollId = null, _e.currentPopupAction && _e.currentPopupAction.cancel(), _e.currentPopupAction = this;
|
|
@@ -8766,7 +8766,7 @@ _e.currentPopupAction = null;
|
|
|
8766
8766
|
* See the License for the specific language governing permissions and
|
|
8767
8767
|
* limitations under the License.
|
|
8768
8768
|
*/
|
|
8769
|
-
const Pl = "pendingRedirect",
|
|
8769
|
+
const Pl = "pendingRedirect", Qt = /* @__PURE__ */ new Map();
|
|
8770
8770
|
class Ol extends Ci {
|
|
8771
8771
|
constructor(e, n, r = !1) {
|
|
8772
8772
|
super(e, [
|
|
@@ -8782,7 +8782,7 @@ class Ol extends Ci {
|
|
|
8782
8782
|
* just return it.
|
|
8783
8783
|
*/
|
|
8784
8784
|
async execute() {
|
|
8785
|
-
let e =
|
|
8785
|
+
let e = Qt.get(this.auth._key());
|
|
8786
8786
|
if (!e) {
|
|
8787
8787
|
try {
|
|
8788
8788
|
const r = await Tl(this.resolver, this.auth) ? await super.execute() : null;
|
|
@@ -8790,9 +8790,9 @@ class Ol extends Ci {
|
|
|
8790
8790
|
} catch (n) {
|
|
8791
8791
|
e = () => Promise.reject(n);
|
|
8792
8792
|
}
|
|
8793
|
-
|
|
8793
|
+
Qt.set(this.auth._key(), e);
|
|
8794
8794
|
}
|
|
8795
|
-
return this.bypassAuthState ||
|
|
8795
|
+
return this.bypassAuthState || Qt.set(this.auth._key(), () => Promise.resolve(null)), e();
|
|
8796
8796
|
}
|
|
8797
8797
|
async onAuthEvent(e) {
|
|
8798
8798
|
if (e.type === "signInViaRedirect")
|
|
@@ -8821,13 +8821,13 @@ async function Tl(t, e) {
|
|
|
8821
8821
|
return await r._remove(n), s;
|
|
8822
8822
|
}
|
|
8823
8823
|
function Gl(t, e) {
|
|
8824
|
-
|
|
8824
|
+
Qt.set(t._key(), e);
|
|
8825
8825
|
}
|
|
8826
8826
|
function jl(t) {
|
|
8827
|
-
return
|
|
8827
|
+
return ve(t._redirectPersistence);
|
|
8828
8828
|
}
|
|
8829
8829
|
function Yl(t) {
|
|
8830
|
-
return
|
|
8830
|
+
return Ht(Pl, t.config.apiKey, t.name);
|
|
8831
8831
|
}
|
|
8832
8832
|
async function Vl(t, e, n = !1) {
|
|
8833
8833
|
if (pe(t.app))
|
|
@@ -8988,7 +8988,7 @@ function Ql(t) {
|
|
|
8988
8988
|
* See the License for the specific language governing permissions and
|
|
8989
8989
|
* limitations under the License.
|
|
8990
8990
|
*/
|
|
8991
|
-
const Xl = new
|
|
8991
|
+
const Xl = new Gt(3e4, 6e4);
|
|
8992
8992
|
function Tr() {
|
|
8993
8993
|
const t = de().___jsl;
|
|
8994
8994
|
if (t != null && t.H) {
|
|
@@ -9031,12 +9031,12 @@ function Sl(t) {
|
|
|
9031
9031
|
}, Wu(`${zu()}?onload=${c}`).catch((l) => n(l));
|
|
9032
9032
|
}
|
|
9033
9033
|
}).catch((e) => {
|
|
9034
|
-
throw
|
|
9034
|
+
throw Xt = null, e;
|
|
9035
9035
|
});
|
|
9036
9036
|
}
|
|
9037
|
-
let
|
|
9037
|
+
let Xt = null;
|
|
9038
9038
|
function Ul(t) {
|
|
9039
|
-
return
|
|
9039
|
+
return Xt = Xt || Sl(t), Xt;
|
|
9040
9040
|
}
|
|
9041
9041
|
/**
|
|
9042
9042
|
* @license
|
|
@@ -9054,7 +9054,7 @@ function Ul(t) {
|
|
|
9054
9054
|
* See the License for the specific language governing permissions and
|
|
9055
9055
|
* limitations under the License.
|
|
9056
9056
|
*/
|
|
9057
|
-
const Wl = new
|
|
9057
|
+
const Wl = new Gt(5e3, 15e3), zl = "__/auth/iframe", Zl = "emulator/auth/iframe", Ll = {
|
|
9058
9058
|
style: {
|
|
9059
9059
|
position: "absolute",
|
|
9060
9060
|
top: "-100px",
|
|
@@ -9080,11 +9080,11 @@ function Jl(t) {
|
|
|
9080
9080
|
const n = e.emulator ? Zn(e, Zl) : `https://${t.config.authDomain}/${zl}`, r = {
|
|
9081
9081
|
apiKey: e.apiKey,
|
|
9082
9082
|
appName: t.name,
|
|
9083
|
-
v:
|
|
9083
|
+
v: Tt
|
|
9084
9084
|
}, s = Kl.get(t.config.apiHost);
|
|
9085
9085
|
s && (r.eid = s);
|
|
9086
9086
|
const i = t._getFrameworks();
|
|
9087
|
-
return i.length && (r.fw = i.join(",")), `${n}?${
|
|
9087
|
+
return i.length && (r.fw = i.join(",")), `${n}?${Ot(r).slice(1)}`;
|
|
9088
9088
|
}
|
|
9089
9089
|
async function _l(t) {
|
|
9090
9090
|
const e = await Ul(t), n = de().gapi;
|
|
@@ -9163,7 +9163,7 @@ function sA(t, e, n, r = eA, s = tA) {
|
|
|
9163
9163
|
left: a
|
|
9164
9164
|
}), A = K().toLowerCase();
|
|
9165
9165
|
n && (c = ii(A) ? nA : n), ri(A) && (e = e || rA, l.scrollbars = "yes");
|
|
9166
|
-
const f = Object.entries(l).reduce((B, [
|
|
9166
|
+
const f = Object.entries(l).reduce((B, [w, O]) => `${B}${w}=${O},`, "");
|
|
9167
9167
|
if (Ru(A) && c !== "_self")
|
|
9168
9168
|
return iA(e || "", c), new Gr(null);
|
|
9169
9169
|
const p = window.open(e || "", c, f);
|
|
@@ -9219,7 +9219,7 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9219
9219
|
appName: t.name,
|
|
9220
9220
|
authType: n,
|
|
9221
9221
|
redirectUrl: r,
|
|
9222
|
-
v:
|
|
9222
|
+
v: Tt,
|
|
9223
9223
|
eventId: s
|
|
9224
9224
|
};
|
|
9225
9225
|
if (e instanceof mi) {
|
|
@@ -9227,7 +9227,7 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9227
9227
|
for (const [f, p] of Object.entries({}))
|
|
9228
9228
|
a[f] = p;
|
|
9229
9229
|
}
|
|
9230
|
-
if (e instanceof
|
|
9230
|
+
if (e instanceof jt) {
|
|
9231
9231
|
const f = e.getScopes().filter((p) => p !== "");
|
|
9232
9232
|
f.length > 0 && (a.scopes = f.join(","));
|
|
9233
9233
|
}
|
|
@@ -9236,7 +9236,7 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9236
9236
|
for (const f of Object.keys(c))
|
|
9237
9237
|
c[f] === void 0 && delete c[f];
|
|
9238
9238
|
const l = await t._getAppCheckToken(), A = l ? `#${cA}=${encodeURIComponent(l)}` : "";
|
|
9239
|
-
return `${uA(t)}?${
|
|
9239
|
+
return `${uA(t)}?${Ot(c).slice(1)}${A}`;
|
|
9240
9240
|
}
|
|
9241
9241
|
function uA({ config: t }) {
|
|
9242
9242
|
return t.emulator ? Zn(t, oA) : `https://${t.authDomain}/${aA}`;
|
|
@@ -9404,7 +9404,7 @@ function hA(t) {
|
|
|
9404
9404
|
}
|
|
9405
9405
|
}
|
|
9406
9406
|
function mA(t) {
|
|
9407
|
-
|
|
9407
|
+
vt(new dt(
|
|
9408
9408
|
"auth",
|
|
9409
9409
|
(e, { options: n }) => {
|
|
9410
9410
|
const r = e.getProvider("app").getImmediate(), s = e.getProvider("heartbeat"), i = e.getProvider("app-check-internal"), { apiKey: a, authDomain: c } = r.options;
|
|
@@ -9430,7 +9430,7 @@ function mA(t) {
|
|
|
9430
9430
|
"auth-internal"
|
|
9431
9431
|
/* _ComponentName.AUTH_INTERNAL */
|
|
9432
9432
|
).initialize();
|
|
9433
|
-
})),
|
|
9433
|
+
})), vt(new dt(
|
|
9434
9434
|
"auth-internal",
|
|
9435
9435
|
(e) => {
|
|
9436
9436
|
const n = an(e.getProvider(
|
|
@@ -9539,7 +9539,7 @@ var un = class {
|
|
|
9539
9539
|
}
|
|
9540
9540
|
onUnsubscribe() {
|
|
9541
9541
|
}
|
|
9542
|
-
}, He, Ge, rt, Xr,
|
|
9542
|
+
}, He, Ge, rt, Xr, vA = (Xr = class extends un {
|
|
9543
9543
|
constructor() {
|
|
9544
9544
|
super();
|
|
9545
9545
|
G(this, He);
|
|
@@ -9580,7 +9580,7 @@ var un = class {
|
|
|
9580
9580
|
var e;
|
|
9581
9581
|
return typeof h(this, He) == "boolean" ? h(this, He) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
|
|
9582
9582
|
}
|
|
9583
|
-
}, He = new WeakMap(), Ge = new WeakMap(), rt = new WeakMap(), Xr), Mi = new
|
|
9583
|
+
}, He = new WeakMap(), Ge = new WeakMap(), rt = new WeakMap(), Xr), Mi = new vA(), wA = {
|
|
9584
9584
|
// We need the wrapper function syntax below instead of direct references to
|
|
9585
9585
|
// global setTimeout etc.
|
|
9586
9586
|
//
|
|
@@ -9604,7 +9604,7 @@ var un = class {
|
|
|
9604
9604
|
//
|
|
9605
9605
|
// We settle for type safety for the TimeoutProvider type, and accept that
|
|
9606
9606
|
// this class is unsafe internally to allow for extension.
|
|
9607
|
-
G(this, oe,
|
|
9607
|
+
G(this, oe, wA);
|
|
9608
9608
|
G(this, Qe, !1);
|
|
9609
9609
|
}
|
|
9610
9610
|
setTimeoutProvider(t) {
|
|
@@ -9660,7 +9660,7 @@ function Fr(t, e) {
|
|
|
9660
9660
|
if (r) {
|
|
9661
9661
|
if (e.queryHash !== er(a, e.options))
|
|
9662
9662
|
return !1;
|
|
9663
|
-
} else if (!
|
|
9663
|
+
} else if (!Ct(e.queryKey, a))
|
|
9664
9664
|
return !1;
|
|
9665
9665
|
}
|
|
9666
9666
|
if (n !== "all") {
|
|
@@ -9676,24 +9676,24 @@ function kr(t, e) {
|
|
|
9676
9676
|
if (!e.options.mutationKey)
|
|
9677
9677
|
return !1;
|
|
9678
9678
|
if (n) {
|
|
9679
|
-
if (
|
|
9679
|
+
if (Dt(e.options.mutationKey) !== Dt(i))
|
|
9680
9680
|
return !1;
|
|
9681
|
-
} else if (!
|
|
9681
|
+
} else if (!Ct(e.options.mutationKey, i))
|
|
9682
9682
|
return !1;
|
|
9683
9683
|
}
|
|
9684
9684
|
return !(r && e.state.status !== r || s && !s(e));
|
|
9685
9685
|
}
|
|
9686
9686
|
function er(t, e) {
|
|
9687
|
-
return ((e == null ? void 0 : e.queryKeyHashFn) ||
|
|
9687
|
+
return ((e == null ? void 0 : e.queryKeyHashFn) || Dt)(t);
|
|
9688
9688
|
}
|
|
9689
|
-
function
|
|
9689
|
+
function Dt(t) {
|
|
9690
9690
|
return JSON.stringify(
|
|
9691
9691
|
t,
|
|
9692
9692
|
(e, n) => Fn(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
|
|
9693
9693
|
);
|
|
9694
9694
|
}
|
|
9695
|
-
function
|
|
9696
|
-
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((n) =>
|
|
9695
|
+
function Ct(t, e) {
|
|
9696
|
+
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((n) => Ct(t[n], e[n])) : !1;
|
|
9697
9697
|
}
|
|
9698
9698
|
var OA = Object.prototype.hasOwnProperty;
|
|
9699
9699
|
function xn(t, e, n = 0) {
|
|
@@ -9705,16 +9705,16 @@ function xn(t, e, n = 0) {
|
|
|
9705
9705
|
const i = (r ? t : Object.keys(t)).length, a = r ? e : Object.keys(e), c = a.length, l = r ? new Array(c) : {};
|
|
9706
9706
|
let A = 0;
|
|
9707
9707
|
for (let f = 0; f < c; f++) {
|
|
9708
|
-
const p = r ? f : a[f], B = t[p],
|
|
9709
|
-
if (B ===
|
|
9708
|
+
const p = r ? f : a[f], B = t[p], w = e[p];
|
|
9709
|
+
if (B === w) {
|
|
9710
9710
|
l[p] = B, (r ? f < i : OA.call(t, p)) && A++;
|
|
9711
9711
|
continue;
|
|
9712
9712
|
}
|
|
9713
|
-
if (B === null ||
|
|
9714
|
-
l[p] =
|
|
9713
|
+
if (B === null || w === null || typeof B != "object" || typeof w != "object") {
|
|
9714
|
+
l[p] = w;
|
|
9715
9715
|
continue;
|
|
9716
9716
|
}
|
|
9717
|
-
const O = xn(B,
|
|
9717
|
+
const O = xn(B, w, n + 1);
|
|
9718
9718
|
l[p] = O, O === B && A++;
|
|
9719
9719
|
}
|
|
9720
9720
|
return i === c && A === i ? t : l;
|
|
@@ -9774,11 +9774,11 @@ function YA(t, e, n = 0) {
|
|
|
9774
9774
|
const r = [e, ...t];
|
|
9775
9775
|
return n && r.length > n ? r.slice(0, -1) : r;
|
|
9776
9776
|
}
|
|
9777
|
-
var
|
|
9777
|
+
var $t = /* @__PURE__ */ Symbol();
|
|
9778
9778
|
function Ii(t, e) {
|
|
9779
|
-
return process.env.NODE_ENV !== "production" && t.queryFn ===
|
|
9779
|
+
return process.env.NODE_ENV !== "production" && t.queryFn === $t && console.error(
|
|
9780
9780
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
|
|
9781
|
-
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn ===
|
|
9781
|
+
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === $t ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
|
|
9782
9782
|
}
|
|
9783
9783
|
function hd(t, e) {
|
|
9784
9784
|
return typeof t == "function" ? t(...e) : !!t;
|
|
@@ -9923,12 +9923,12 @@ var L = kA(), st, je, it, Ur, RA = (Ur = class extends un {
|
|
|
9923
9923
|
isOnline() {
|
|
9924
9924
|
return h(this, st);
|
|
9925
9925
|
}
|
|
9926
|
-
}, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur),
|
|
9926
|
+
}, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur), en = new RA();
|
|
9927
9927
|
function qA(t) {
|
|
9928
9928
|
return Math.min(1e3 * 2 ** t, 3e4);
|
|
9929
9929
|
}
|
|
9930
9930
|
function Oi(t) {
|
|
9931
|
-
return (t ?? "online") === "online" ?
|
|
9931
|
+
return (t ?? "online") === "online" ? en.isOnline() : !0;
|
|
9932
9932
|
}
|
|
9933
9933
|
var kn = class extends Error {
|
|
9934
9934
|
constructor(t) {
|
|
@@ -9947,11 +9947,11 @@ function Ti(t) {
|
|
|
9947
9947
|
e = !0;
|
|
9948
9948
|
}, l = () => {
|
|
9949
9949
|
e = !1;
|
|
9950
|
-
}, A = () => Mi.isFocused() && (t.networkMode === "always" ||
|
|
9950
|
+
}, A = () => Mi.isFocused() && (t.networkMode === "always" || en.isOnline()) && t.canRun(), f = () => Oi(t.networkMode) && t.canRun(), p = (I) => {
|
|
9951
9951
|
i() || (r == null || r(), s.resolve(I));
|
|
9952
9952
|
}, B = (I) => {
|
|
9953
9953
|
i() || (r == null || r(), s.reject(I));
|
|
9954
|
-
},
|
|
9954
|
+
}, w = () => new Promise((I) => {
|
|
9955
9955
|
var V;
|
|
9956
9956
|
r = (R) => {
|
|
9957
9957
|
(i() || A()) && I(R);
|
|
@@ -9973,12 +9973,12 @@ function Ti(t) {
|
|
|
9973
9973
|
var U;
|
|
9974
9974
|
if (i())
|
|
9975
9975
|
return;
|
|
9976
|
-
const Q = t.retry ?? (Pi.isServer() ? 0 : 3), Y = t.retryDelay ?? qA,
|
|
9976
|
+
const Q = t.retry ?? (Pi.isServer() ? 0 : 3), Y = t.retryDelay ?? qA, v = typeof Y == "function" ? Y(n, R) : Y, H = Q === !0 || typeof Q == "number" && n < Q || typeof Q == "function" && Q(n, R);
|
|
9977
9977
|
if (e || !H) {
|
|
9978
9978
|
B(R);
|
|
9979
9979
|
return;
|
|
9980
9980
|
}
|
|
9981
|
-
n++, (U = t.onFail) == null || U.call(t, n, R), TA(
|
|
9981
|
+
n++, (U = t.onFail) == null || U.call(t, n, R), TA(v).then(() => A() ? void 0 : w()).then(() => {
|
|
9982
9982
|
e ? B(R) : O();
|
|
9983
9983
|
});
|
|
9984
9984
|
});
|
|
@@ -9991,7 +9991,7 @@ function Ti(t) {
|
|
|
9991
9991
|
cancelRetry: c,
|
|
9992
9992
|
continueRetry: l,
|
|
9993
9993
|
canStart: f,
|
|
9994
|
-
start: () => (f() ? O() :
|
|
9994
|
+
start: () => (f() ? O() : w().then(O), s)
|
|
9995
9995
|
};
|
|
9996
9996
|
}
|
|
9997
9997
|
var Xe, Wr, Gi = (Wr = class {
|
|
@@ -10019,8 +10019,8 @@ var Xe, Wr, Gi = (Wr = class {
|
|
|
10019
10019
|
function NA(t) {
|
|
10020
10020
|
return {
|
|
10021
10021
|
onFetch: (e, n) => {
|
|
10022
|
-
var f, p, B,
|
|
10023
|
-
const r = e.options, s = (B = (p = (f = e.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : p.fetchMore) == null ? void 0 : B.direction, i = ((
|
|
10022
|
+
var f, p, B, w, O;
|
|
10023
|
+
const r = e.options, s = (B = (p = (f = e.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : p.fetchMore) == null ? void 0 : B.direction, i = ((w = e.state.data) == null ? void 0 : w.pages) || [], a = ((O = e.state.data) == null ? void 0 : O.pageParams) || [];
|
|
10024
10024
|
let c = { pages: [], pageParams: [] }, l = 0;
|
|
10025
10025
|
const A = async () => {
|
|
10026
10026
|
let I = !1;
|
|
@@ -10030,16 +10030,16 @@ function NA(t) {
|
|
|
10030
10030
|
() => e.signal,
|
|
10031
10031
|
() => I = !0
|
|
10032
10032
|
);
|
|
10033
|
-
}, R = Ii(e.options, e.fetchOptions), Q = async (Y,
|
|
10033
|
+
}, R = Ii(e.options, e.fetchOptions), Q = async (Y, v, H) => {
|
|
10034
10034
|
if (I)
|
|
10035
10035
|
return Promise.reject(e.signal.reason);
|
|
10036
|
-
if (
|
|
10036
|
+
if (v == null && Y.pages.length)
|
|
10037
10037
|
return Promise.resolve(Y);
|
|
10038
10038
|
const ee = (() => {
|
|
10039
10039
|
const g = {
|
|
10040
10040
|
client: e.client,
|
|
10041
10041
|
queryKey: e.queryKey,
|
|
10042
|
-
pageParam:
|
|
10042
|
+
pageParam: v,
|
|
10043
10043
|
direction: H ? "backward" : "forward",
|
|
10044
10044
|
meta: e.options.meta
|
|
10045
10045
|
};
|
|
@@ -10047,22 +10047,22 @@ function NA(t) {
|
|
|
10047
10047
|
})(), q = await R(ee), { maxPages: u } = e.options, m = H ? YA : jA;
|
|
10048
10048
|
return {
|
|
10049
10049
|
pages: m(Y.pages, q, u),
|
|
10050
|
-
pageParams: m(Y.pageParams,
|
|
10050
|
+
pageParams: m(Y.pageParams, v, u)
|
|
10051
10051
|
};
|
|
10052
10052
|
};
|
|
10053
10053
|
if (s && i.length) {
|
|
10054
|
-
const Y = s === "backward",
|
|
10054
|
+
const Y = s === "backward", v = Y ? HA : Nr, H = {
|
|
10055
10055
|
pages: i,
|
|
10056
10056
|
pageParams: a
|
|
10057
|
-
}, U =
|
|
10057
|
+
}, U = v(r, H);
|
|
10058
10058
|
c = await Q(H, U, Y);
|
|
10059
10059
|
} else {
|
|
10060
10060
|
const Y = t ?? i.length;
|
|
10061
10061
|
do {
|
|
10062
|
-
const
|
|
10063
|
-
if (l > 0 &&
|
|
10062
|
+
const v = l === 0 ? a[0] ?? r.initialPageParam : Nr(r, c);
|
|
10063
|
+
if (l > 0 && v == null)
|
|
10064
10064
|
break;
|
|
10065
|
-
c = await Q(c,
|
|
10065
|
+
c = await Q(c, v), l++;
|
|
10066
10066
|
} while (l < Y);
|
|
10067
10067
|
}
|
|
10068
10068
|
return c;
|
|
@@ -10097,7 +10097,7 @@ function HA(t, { pages: e, pageParams: n }) {
|
|
|
10097
10097
|
var r;
|
|
10098
10098
|
return e.length > 0 ? (r = t.getPreviousPageParam) == null ? void 0 : r.call(t, e[0], e, n[0], n) : void 0;
|
|
10099
10099
|
}
|
|
10100
|
-
var at, Se, ot, re, Ue, S,
|
|
10100
|
+
var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
10101
10101
|
constructor(e) {
|
|
10102
10102
|
super();
|
|
10103
10103
|
G(this, ne);
|
|
@@ -10107,9 +10107,9 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10107
10107
|
G(this, re);
|
|
10108
10108
|
G(this, Ue);
|
|
10109
10109
|
G(this, S);
|
|
10110
|
-
G(this,
|
|
10110
|
+
G(this, Et);
|
|
10111
10111
|
G(this, We);
|
|
10112
|
-
D(this, We, !1), D(this,
|
|
10112
|
+
D(this, We, !1), D(this, Et, e.defaultOptions), this.setOptions(e.options), this.observers = [], D(this, Ue, e.client), D(this, re, h(this, Ue).getQueryCache()), this.queryKey = e.queryKey, this.queryHash = e.queryHash, D(this, Se, Qr(this.options)), this.state = e.state ?? h(this, Se), this.scheduleGc();
|
|
10113
10113
|
}
|
|
10114
10114
|
get meta() {
|
|
10115
10115
|
return this.options.meta;
|
|
@@ -10122,7 +10122,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10122
10122
|
return (e = h(this, S)) == null ? void 0 : e.promise;
|
|
10123
10123
|
}
|
|
10124
10124
|
setOptions(e) {
|
|
10125
|
-
if (this.options = { ...h(this,
|
|
10125
|
+
if (this.options = { ...h(this, Et), ...e }, e != null && e._type && D(this, at, e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
10126
10126
|
const n = Qr(this.options);
|
|
10127
10127
|
n.data !== void 0 && (this.setState(
|
|
10128
10128
|
Hr(n.data, n.dataUpdatedAt)
|
|
@@ -10164,7 +10164,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10164
10164
|
);
|
|
10165
10165
|
}
|
|
10166
10166
|
isDisabled() {
|
|
10167
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
10167
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === $t || !this.isFetched();
|
|
10168
10168
|
}
|
|
10169
10169
|
isFetched() {
|
|
10170
10170
|
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
@@ -10205,7 +10205,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10205
10205
|
this.state.isInvalidated || z(this, ne, me).call(this, { type: "invalidate" });
|
|
10206
10206
|
}
|
|
10207
10207
|
async fetch(e, n) {
|
|
10208
|
-
var A, f, p, B,
|
|
10208
|
+
var A, f, p, B, w, O, I, V, R, Q, Y;
|
|
10209
10209
|
if (this.state.fetchStatus !== "idle" && // If the promise in the retryer is already rejected, we have to definitely
|
|
10210
10210
|
// re-start the fetch; there is a chance that the query is still in a
|
|
10211
10211
|
// pending state when that happens
|
|
@@ -10216,19 +10216,19 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10216
10216
|
return h(this, S).continueRetry(), h(this, S).promise;
|
|
10217
10217
|
}
|
|
10218
10218
|
if (e && this.setOptions(e), !this.options.queryFn) {
|
|
10219
|
-
const
|
|
10220
|
-
|
|
10219
|
+
const v = this.observers.find((H) => H.options.queryFn);
|
|
10220
|
+
v && this.setOptions(v.options);
|
|
10221
10221
|
}
|
|
10222
10222
|
process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
|
|
10223
10223
|
"As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"
|
|
10224
10224
|
));
|
|
10225
|
-
const r = new AbortController(), s = (
|
|
10226
|
-
Object.defineProperty(
|
|
10225
|
+
const r = new AbortController(), s = (v) => {
|
|
10226
|
+
Object.defineProperty(v, "signal", {
|
|
10227
10227
|
enumerable: !0,
|
|
10228
10228
|
get: () => (D(this, We, !0), r.signal)
|
|
10229
10229
|
});
|
|
10230
10230
|
}, i = () => {
|
|
10231
|
-
const
|
|
10231
|
+
const v = Ii(this.options, n), U = (() => {
|
|
10232
10232
|
const ee = {
|
|
10233
10233
|
client: h(this, Ue),
|
|
10234
10234
|
queryKey: this.queryKey,
|
|
@@ -10237,12 +10237,12 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10237
10237
|
return s(ee), ee;
|
|
10238
10238
|
})();
|
|
10239
10239
|
return D(this, We, !1), this.options.persister ? this.options.persister(
|
|
10240
|
-
|
|
10240
|
+
v,
|
|
10241
10241
|
U,
|
|
10242
10242
|
this
|
|
10243
|
-
) :
|
|
10243
|
+
) : v(U);
|
|
10244
10244
|
}, c = (() => {
|
|
10245
|
-
const
|
|
10245
|
+
const v = {
|
|
10246
10246
|
fetchOptions: n,
|
|
10247
10247
|
options: this.options,
|
|
10248
10248
|
queryKey: this.queryKey,
|
|
@@ -10250,21 +10250,21 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10250
10250
|
state: this.state,
|
|
10251
10251
|
fetchFn: i
|
|
10252
10252
|
};
|
|
10253
|
-
return s(
|
|
10253
|
+
return s(v), v;
|
|
10254
10254
|
})(), l = h(this, at) === "infinite" ? NA(
|
|
10255
10255
|
this.options.pages
|
|
10256
10256
|
) : this.options.behavior;
|
|
10257
10257
|
l == null || l.onFetch(c, this), D(this, ot, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((f = c.fetchOptions) == null ? void 0 : f.meta)) && z(this, ne, me).call(this, { type: "fetch", meta: (p = c.fetchOptions) == null ? void 0 : p.meta }), D(this, S, Ti({
|
|
10258
10258
|
initialPromise: n == null ? void 0 : n.initialPromise,
|
|
10259
10259
|
fn: c.fetchFn,
|
|
10260
|
-
onCancel: (
|
|
10261
|
-
|
|
10260
|
+
onCancel: (v) => {
|
|
10261
|
+
v instanceof kn && v.revert && this.setState({
|
|
10262
10262
|
...h(this, ot),
|
|
10263
10263
|
fetchStatus: "idle"
|
|
10264
10264
|
}), r.abort();
|
|
10265
10265
|
},
|
|
10266
|
-
onFail: (
|
|
10267
|
-
z(this, ne, me).call(this, { type: "failed", failureCount:
|
|
10266
|
+
onFail: (v, H) => {
|
|
10267
|
+
z(this, ne, me).call(this, { type: "failed", failureCount: v, error: H });
|
|
10268
10268
|
},
|
|
10269
10269
|
onPause: () => {
|
|
10270
10270
|
z(this, ne, me).call(this, { type: "pause" });
|
|
@@ -10278,45 +10278,45 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10278
10278
|
canRun: () => !0
|
|
10279
10279
|
}));
|
|
10280
10280
|
try {
|
|
10281
|
-
const
|
|
10282
|
-
if (
|
|
10281
|
+
const v = await h(this, S).start();
|
|
10282
|
+
if (v === void 0)
|
|
10283
10283
|
throw process.env.NODE_ENV !== "production" && console.error(
|
|
10284
10284
|
`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
|
|
10285
10285
|
), new Error(`${this.queryHash} data is undefined`);
|
|
10286
|
-
return this.setData(
|
|
10286
|
+
return this.setData(v), (w = (B = h(this, re).config).onSuccess) == null || w.call(B, v, this), (I = (O = h(this, re).config).onSettled) == null || I.call(
|
|
10287
10287
|
O,
|
|
10288
|
-
|
|
10288
|
+
v,
|
|
10289
10289
|
this.state.error,
|
|
10290
10290
|
this
|
|
10291
|
-
),
|
|
10292
|
-
} catch (
|
|
10293
|
-
if (
|
|
10294
|
-
if (
|
|
10291
|
+
), v;
|
|
10292
|
+
} catch (v) {
|
|
10293
|
+
if (v instanceof kn) {
|
|
10294
|
+
if (v.silent)
|
|
10295
10295
|
return h(this, S).promise;
|
|
10296
|
-
if (
|
|
10296
|
+
if (v.revert) {
|
|
10297
10297
|
if (this.state.data === void 0)
|
|
10298
|
-
throw
|
|
10298
|
+
throw v;
|
|
10299
10299
|
return this.state.data;
|
|
10300
10300
|
}
|
|
10301
10301
|
}
|
|
10302
10302
|
throw z(this, ne, me).call(this, {
|
|
10303
10303
|
type: "error",
|
|
10304
|
-
error:
|
|
10304
|
+
error: v
|
|
10305
10305
|
}), (R = (V = h(this, re).config).onError) == null || R.call(
|
|
10306
10306
|
V,
|
|
10307
|
-
|
|
10307
|
+
v,
|
|
10308
10308
|
this
|
|
10309
10309
|
), (Y = (Q = h(this, re).config).onSettled) == null || Y.call(
|
|
10310
10310
|
Q,
|
|
10311
10311
|
this.state.data,
|
|
10312
|
-
|
|
10312
|
+
v,
|
|
10313
10313
|
this
|
|
10314
|
-
),
|
|
10314
|
+
), v;
|
|
10315
10315
|
} finally {
|
|
10316
10316
|
this.scheduleGc();
|
|
10317
10317
|
}
|
|
10318
10318
|
}
|
|
10319
|
-
}, at = new WeakMap(), Se = new WeakMap(), ot = new WeakMap(), re = new WeakMap(), Ue = new WeakMap(), S = new WeakMap(),
|
|
10319
|
+
}, at = new WeakMap(), Se = new WeakMap(), ot = new WeakMap(), re = new WeakMap(), Ue = new WeakMap(), S = new WeakMap(), Et = new WeakMap(), We = new WeakMap(), ne = new WeakSet(), ji = function() {
|
|
10320
10320
|
return this.state.fetchStatus === "paused" && this.state.status === "pending";
|
|
10321
10321
|
}, me = function(e) {
|
|
10322
10322
|
const n = (r) => {
|
|
@@ -10425,15 +10425,15 @@ function Qr(t) {
|
|
|
10425
10425
|
fetchStatus: "idle"
|
|
10426
10426
|
};
|
|
10427
10427
|
}
|
|
10428
|
-
var
|
|
10428
|
+
var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
10429
10429
|
constructor(e) {
|
|
10430
10430
|
super();
|
|
10431
10431
|
G(this, ue);
|
|
10432
|
-
G(this,
|
|
10432
|
+
G(this, Mt);
|
|
10433
10433
|
G(this, ce);
|
|
10434
10434
|
G(this, Z);
|
|
10435
10435
|
G(this, ze);
|
|
10436
|
-
D(this,
|
|
10436
|
+
D(this, Mt, e.client), this.mutationId = e.mutationId, D(this, Z, e.mutationCache), D(this, ce, []), this.state = e.state || UA(), this.setOptions(e.options), this.scheduleGc();
|
|
10437
10437
|
}
|
|
10438
10438
|
setOptions(e) {
|
|
10439
10439
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -10464,11 +10464,11 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10464
10464
|
this.execute(this.state.variables);
|
|
10465
10465
|
}
|
|
10466
10466
|
async execute(e) {
|
|
10467
|
-
var a, c, l, A, f, p, B,
|
|
10467
|
+
var a, c, l, A, f, p, B, w, O, I, V, R, Q, Y, v, H, U, ee;
|
|
10468
10468
|
const n = () => {
|
|
10469
10469
|
z(this, ue, Me).call(this, { type: "continue" });
|
|
10470
10470
|
}, r = {
|
|
10471
|
-
client: h(this,
|
|
10471
|
+
client: h(this, Mt),
|
|
10472
10472
|
meta: this.options.meta,
|
|
10473
10473
|
mutationKey: this.options.mutationKey
|
|
10474
10474
|
};
|
|
@@ -10522,7 +10522,7 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10522
10522
|
e,
|
|
10523
10523
|
this.state.context,
|
|
10524
10524
|
r
|
|
10525
|
-
)), await ((
|
|
10525
|
+
)), await ((w = (B = h(this, Z).config).onSettled) == null ? void 0 : w.call(
|
|
10526
10526
|
B,
|
|
10527
10527
|
q,
|
|
10528
10528
|
null,
|
|
@@ -10563,8 +10563,8 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10563
10563
|
Promise.reject(u);
|
|
10564
10564
|
}
|
|
10565
10565
|
try {
|
|
10566
|
-
await ((H = (
|
|
10567
|
-
|
|
10566
|
+
await ((H = (v = h(this, Z).config).onSettled) == null ? void 0 : H.call(
|
|
10567
|
+
v,
|
|
10568
10568
|
void 0,
|
|
10569
10569
|
q,
|
|
10570
10570
|
this.state.variables,
|
|
@@ -10592,7 +10592,7 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10592
10592
|
h(this, Z).runNext(this);
|
|
10593
10593
|
}
|
|
10594
10594
|
}
|
|
10595
|
-
},
|
|
10595
|
+
}, Mt = new WeakMap(), ce = new WeakMap(), Z = new WeakMap(), ze = new WeakMap(), ue = new WeakSet(), Me = function(e) {
|
|
10596
10596
|
const n = (r) => {
|
|
10597
10597
|
switch (e.type) {
|
|
10598
10598
|
case "failed":
|
|
@@ -10669,19 +10669,19 @@ function UA() {
|
|
|
10669
10669
|
submittedAt: 0
|
|
10670
10670
|
};
|
|
10671
10671
|
}
|
|
10672
|
-
var fe, ae,
|
|
10672
|
+
var fe, ae, It, Lr, Yi = (Lr = class extends un {
|
|
10673
10673
|
constructor(n = {}) {
|
|
10674
10674
|
super();
|
|
10675
10675
|
G(this, fe);
|
|
10676
10676
|
G(this, ae);
|
|
10677
|
-
G(this,
|
|
10678
|
-
this.config = n, D(this, fe, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this,
|
|
10677
|
+
G(this, It);
|
|
10678
|
+
this.config = n, D(this, fe, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this, It, 0);
|
|
10679
10679
|
}
|
|
10680
10680
|
build(n, r, s) {
|
|
10681
10681
|
const i = new SA({
|
|
10682
10682
|
client: n,
|
|
10683
10683
|
mutationCache: this,
|
|
10684
|
-
mutationId: ++
|
|
10684
|
+
mutationId: ++xt(this, It)._,
|
|
10685
10685
|
options: n.defaultMutationOptions(r),
|
|
10686
10686
|
state: s
|
|
10687
10687
|
});
|
|
@@ -10689,7 +10689,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10689
10689
|
}
|
|
10690
10690
|
add(n) {
|
|
10691
10691
|
h(this, fe).add(n);
|
|
10692
|
-
const r =
|
|
10692
|
+
const r = Rt(n);
|
|
10693
10693
|
if (typeof r == "string") {
|
|
10694
10694
|
const s = h(this, ae).get(r);
|
|
10695
10695
|
s ? s.push(n) : h(this, ae).set(r, [n]);
|
|
@@ -10698,7 +10698,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10698
10698
|
}
|
|
10699
10699
|
remove(n) {
|
|
10700
10700
|
if (h(this, fe).delete(n)) {
|
|
10701
|
-
const r =
|
|
10701
|
+
const r = Rt(n);
|
|
10702
10702
|
if (typeof r == "string") {
|
|
10703
10703
|
const s = h(this, ae).get(r);
|
|
10704
10704
|
if (s)
|
|
@@ -10711,7 +10711,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10711
10711
|
this.notify({ type: "removed", mutation: n });
|
|
10712
10712
|
}
|
|
10713
10713
|
canRun(n) {
|
|
10714
|
-
const r =
|
|
10714
|
+
const r = Rt(n);
|
|
10715
10715
|
if (typeof r == "string") {
|
|
10716
10716
|
const s = h(this, ae).get(r), i = s == null ? void 0 : s.find(
|
|
10717
10717
|
(a) => a.state.status === "pending"
|
|
@@ -10722,7 +10722,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10722
10722
|
}
|
|
10723
10723
|
runNext(n) {
|
|
10724
10724
|
var s;
|
|
10725
|
-
const r =
|
|
10725
|
+
const r = Rt(n);
|
|
10726
10726
|
if (typeof r == "string") {
|
|
10727
10727
|
const i = (s = h(this, ae).get(r)) == null ? void 0 : s.find((a) => a !== n && a.state.isPaused);
|
|
10728
10728
|
return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
|
|
@@ -10763,8 +10763,8 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10763
10763
|
)
|
|
10764
10764
|
);
|
|
10765
10765
|
}
|
|
10766
|
-
}, fe = new WeakMap(), ae = new WeakMap(),
|
|
10767
|
-
function
|
|
10766
|
+
}, fe = new WeakMap(), ae = new WeakMap(), It = new WeakMap(), Lr);
|
|
10767
|
+
function Rt(t) {
|
|
10768
10768
|
var e;
|
|
10769
10769
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
10770
10770
|
}
|
|
@@ -10853,15 +10853,15 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
10853
10853
|
D(this, N, e.queryCache || new Vi()), D(this, Ye, e.mutationCache || new Yi()), D(this, Ve, e.defaultOptions || {}), D(this, ct, /* @__PURE__ */ new Map()), D(this, ut, /* @__PURE__ */ new Map()), D(this, xe, 0);
|
|
10854
10854
|
}
|
|
10855
10855
|
mount() {
|
|
10856
|
-
|
|
10856
|
+
xt(this, xe)._++, h(this, xe) === 1 && (D(this, lt, Mi.subscribe(async (e) => {
|
|
10857
10857
|
e && (await this.resumePausedMutations(), h(this, N).onFocus());
|
|
10858
|
-
})), D(this, At,
|
|
10858
|
+
})), D(this, At, en.subscribe(async (e) => {
|
|
10859
10859
|
e && (await this.resumePausedMutations(), h(this, N).onOnline());
|
|
10860
10860
|
})));
|
|
10861
10861
|
}
|
|
10862
10862
|
unmount() {
|
|
10863
10863
|
var e, n;
|
|
10864
|
-
|
|
10864
|
+
xt(this, xe)._--, h(this, xe) === 0 && ((e = h(this, lt)) == null || e.call(this), D(this, lt, void 0), (n = h(this, At)) == null || n.call(this), D(this, At, void 0));
|
|
10865
10865
|
}
|
|
10866
10866
|
isFetching(e) {
|
|
10867
10867
|
return h(this, N).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
@@ -10983,7 +10983,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
10983
10983
|
return e._type = "infinite", this.ensureQueryData(e);
|
|
10984
10984
|
}
|
|
10985
10985
|
resumePausedMutations() {
|
|
10986
|
-
return
|
|
10986
|
+
return en.isOnline() ? h(this, Ye).resumePausedMutations() : Promise.resolve();
|
|
10987
10987
|
}
|
|
10988
10988
|
getQueryCache() {
|
|
10989
10989
|
return h(this, N);
|
|
@@ -10998,7 +10998,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
10998
10998
|
D(this, Ve, e);
|
|
10999
10999
|
}
|
|
11000
11000
|
setQueryDefaults(e, n) {
|
|
11001
|
-
h(this, ct).set(
|
|
11001
|
+
h(this, ct).set(Dt(e), {
|
|
11002
11002
|
queryKey: e,
|
|
11003
11003
|
defaultOptions: n
|
|
11004
11004
|
});
|
|
@@ -11006,11 +11006,11 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11006
11006
|
getQueryDefaults(e) {
|
|
11007
11007
|
const n = [...h(this, ct).values()], r = {};
|
|
11008
11008
|
return n.forEach((s) => {
|
|
11009
|
-
|
|
11009
|
+
Ct(e, s.queryKey) && Object.assign(r, s.defaultOptions);
|
|
11010
11010
|
}), r;
|
|
11011
11011
|
}
|
|
11012
11012
|
setMutationDefaults(e, n) {
|
|
11013
|
-
h(this, ut).set(
|
|
11013
|
+
h(this, ut).set(Dt(e), {
|
|
11014
11014
|
mutationKey: e,
|
|
11015
11015
|
defaultOptions: n
|
|
11016
11016
|
});
|
|
@@ -11018,7 +11018,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11018
11018
|
getMutationDefaults(e) {
|
|
11019
11019
|
const n = [...h(this, ut).values()], r = {};
|
|
11020
11020
|
return n.forEach((s) => {
|
|
11021
|
-
|
|
11021
|
+
Ct(e, s.mutationKey) && Object.assign(r, s.defaultOptions);
|
|
11022
11022
|
}), r;
|
|
11023
11023
|
}
|
|
11024
11024
|
defaultQueryOptions(e) {
|
|
@@ -11033,7 +11033,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11033
11033
|
return n.queryHash || (n.queryHash = er(
|
|
11034
11034
|
n.queryKey,
|
|
11035
11035
|
n
|
|
11036
|
-
)), n.refetchOnReconnect === void 0 && (n.refetchOnReconnect = n.networkMode !== "always"), n.throwOnError === void 0 && (n.throwOnError = !!n.suspense), !n.networkMode && n.persister && (n.networkMode = "offlineFirst"), n.queryFn ===
|
|
11036
|
+
)), n.refetchOnReconnect === void 0 && (n.refetchOnReconnect = n.networkMode !== "always"), n.throwOnError === void 0 && (n.throwOnError = !!n.suspense), !n.networkMode && n.persister && (n.networkMode = "offlineFirst"), n.queryFn === $t && (n.enabled = !1), n;
|
|
11037
11037
|
}
|
|
11038
11038
|
defaultMutationOptions(e) {
|
|
11039
11039
|
return e != null && e._defaulted ? e : {
|
|
@@ -11118,7 +11118,7 @@ var KA = class extends Vi {
|
|
|
11118
11118
|
queryCache: t.queryCache || new KA(),
|
|
11119
11119
|
mutationCache: t.mutationCache || new JA()
|
|
11120
11120
|
};
|
|
11121
|
-
super(e), this.isRestoring =
|
|
11121
|
+
super(e), this.isRestoring = St(!1);
|
|
11122
11122
|
}
|
|
11123
11123
|
isFetching(t = {}) {
|
|
11124
11124
|
return super.isFetching(T(t));
|
|
@@ -11217,7 +11217,7 @@ var KA = class extends Vi {
|
|
|
11217
11217
|
};
|
|
11218
11218
|
const $A = Ki({
|
|
11219
11219
|
history: Ji(),
|
|
11220
|
-
routes: [...
|
|
11220
|
+
routes: [...bt, ...pt].map((t) => ({
|
|
11221
11221
|
...t,
|
|
11222
11222
|
component: os(
|
|
11223
11223
|
_r({
|
|
@@ -11228,10 +11228,10 @@ const $A = Ki({
|
|
|
11228
11228
|
});
|
|
11229
11229
|
$A.beforeEach((t) => {
|
|
11230
11230
|
var r;
|
|
11231
|
-
const { currentCountry: e } =
|
|
11231
|
+
const { currentCountry: e } = rn(), n = e.value;
|
|
11232
11232
|
if (!n) return !0;
|
|
11233
11233
|
if ((r = t.meta) != null && r.region && !t.meta.region[n]) {
|
|
11234
|
-
const s =
|
|
11234
|
+
const s = bt.find(
|
|
11235
11235
|
(i) => {
|
|
11236
11236
|
var a;
|
|
11237
11237
|
return ((a = i.meta) == null ? void 0 : a.sidebarDisplay) && (!i.meta.region || i.meta.region[n]);
|
|
@@ -11241,17 +11241,17 @@ $A.beforeEach((t) => {
|
|
|
11241
11241
|
}
|
|
11242
11242
|
return !0;
|
|
11243
11243
|
});
|
|
11244
|
-
const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ */
|
|
11244
|
+
const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ */ tn({
|
|
11245
11245
|
__name: "AppSidebar",
|
|
11246
11246
|
setup(t) {
|
|
11247
|
-
const e =
|
|
11247
|
+
const e = rn(), n = _i(), { t: r } = ns(), s = St(n.currentRoute.value.name);
|
|
11248
11248
|
$r(n.currentRoute, () => {
|
|
11249
11249
|
let A = n.currentRoute.value.name;
|
|
11250
11250
|
n.currentRoute.value.meta.parent && (A = n.currentRoute.value.meta.parent), s.value = A;
|
|
11251
11251
|
});
|
|
11252
|
-
const i =
|
|
11253
|
-
var B,
|
|
11254
|
-
if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((
|
|
11252
|
+
const i = bt.map((A) => {
|
|
11253
|
+
var B, w;
|
|
11254
|
+
if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((w = A.meta.region) != null && w[e.currentCountry.value]) || A.meta.section)
|
|
11255
11255
|
return;
|
|
11256
11256
|
const f = A.meta.sidebarDisplay, p = {
|
|
11257
11257
|
label: f.startsWith("i18n:") ? r(f.replaceAll("i18n:", "")) : f,
|
|
@@ -11261,12 +11261,12 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11261
11261
|
return n.push({ name: A.name });
|
|
11262
11262
|
}
|
|
11263
11263
|
};
|
|
11264
|
-
return A.meta.sidebarNew && (p.badge = () =>
|
|
11264
|
+
return A.meta.sidebarNew && (p.badge = () => vn(ea.FmPill, { label: "New" })), p;
|
|
11265
11265
|
}).filter((A) => !!A);
|
|
11266
11266
|
function a(A, f) {
|
|
11267
11267
|
return A.map((p) => {
|
|
11268
|
-
var B,
|
|
11269
|
-
return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], f) : (
|
|
11268
|
+
var B, w;
|
|
11269
|
+
return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], f) : (w = p.meta) != null && w.sidebarDisplay ? p.meta.section !== f ? [] : [
|
|
11270
11270
|
{
|
|
11271
11271
|
label: p.meta.sidebarDisplay.startsWith("i18n:") ? r(p.meta.sidebarDisplay.replaceAll("i18n:", "")) : p.meta.sidebarDisplay,
|
|
11272
11272
|
value: p.name,
|
|
@@ -11291,7 +11291,16 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11291
11291
|
};
|
|
11292
11292
|
}).filter((A) => !!A), l = Nn(() => {
|
|
11293
11293
|
const A = [...i];
|
|
11294
|
-
return
|
|
11294
|
+
return A.push({
|
|
11295
|
+
label: "",
|
|
11296
|
+
value: "divider",
|
|
11297
|
+
disabled: !0
|
|
11298
|
+
}), A.push({
|
|
11299
|
+
label: r("financing.title"),
|
|
11300
|
+
icon: "credit_score",
|
|
11301
|
+
value: "divider",
|
|
11302
|
+
disabled: !0
|
|
11303
|
+
}), A.push(...a(bt, "financing")), ed(e.sessionUser.value) && (A.push({
|
|
11295
11304
|
label: "",
|
|
11296
11305
|
value: "divider",
|
|
11297
11306
|
disabled: !0
|
|
@@ -11322,7 +11331,7 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11322
11331
|
});
|
|
11323
11332
|
return (A, f) => {
|
|
11324
11333
|
const p = es("FmCollapsibleTabs");
|
|
11325
|
-
return
|
|
11334
|
+
return nn(), Hn(p, {
|
|
11326
11335
|
modelValue: s.value,
|
|
11327
11336
|
"onUpdate:modelValue": f[0] || (f[0] = (B) => s.value = B),
|
|
11328
11337
|
items: l.value,
|
|
@@ -11331,11 +11340,11 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11331
11340
|
};
|
|
11332
11341
|
}
|
|
11333
11342
|
});
|
|
11334
|
-
var nd = { firebase: { apiKey: "
|
|
11335
|
-
const bd = /* @__PURE__ */
|
|
11343
|
+
var nd = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" } };
|
|
11344
|
+
const bd = /* @__PURE__ */ tn({
|
|
11336
11345
|
__name: "App",
|
|
11337
11346
|
setup(t) {
|
|
11338
|
-
const { state: e } = Qo(), n =
|
|
11347
|
+
const { state: e } = Qo(), n = rn(), r = ts(), s = new _A();
|
|
11339
11348
|
Wi(xi, s);
|
|
11340
11349
|
const i = Ss(nd.firebase);
|
|
11341
11350
|
async function a() {
|
|
@@ -11352,12 +11361,12 @@ const bd = /* @__PURE__ */ en({
|
|
|
11352
11361
|
s.unmount();
|
|
11353
11362
|
}), (c, l) => {
|
|
11354
11363
|
const A = es("RouterView");
|
|
11355
|
-
return
|
|
11364
|
+
return nn(), Hn(A, {
|
|
11356
11365
|
key: ge(r).path
|
|
11357
11366
|
});
|
|
11358
11367
|
};
|
|
11359
11368
|
}
|
|
11360
|
-
}),
|
|
11369
|
+
}), vd = () => {
|
|
11361
11370
|
const t = [
|
|
11362
11371
|
{ "en-US": na, "th-TH": sa, "zh-CN": aa },
|
|
11363
11372
|
qi
|
|
@@ -11374,7 +11383,7 @@ const bd = /* @__PURE__ */ en({
|
|
|
11374
11383
|
},
|
|
11375
11384
|
{}
|
|
11376
11385
|
);
|
|
11377
|
-
},
|
|
11386
|
+
}, wd = [...pt, ...bt].map((t) => ({
|
|
11378
11387
|
...t,
|
|
11379
11388
|
component: os(
|
|
11380
11389
|
_r({ loader: t.component })
|
|
@@ -11382,7 +11391,7 @@ const bd = /* @__PURE__ */ en({
|
|
|
11382
11391
|
}));
|
|
11383
11392
|
export {
|
|
11384
11393
|
xa as A,
|
|
11385
|
-
|
|
11394
|
+
wd as B,
|
|
11386
11395
|
un as S,
|
|
11387
11396
|
yr as _,
|
|
11388
11397
|
Vn as a,
|
|
@@ -11410,5 +11419,5 @@ export {
|
|
|
11410
11419
|
ua as w,
|
|
11411
11420
|
ld as x,
|
|
11412
11421
|
bd as y,
|
|
11413
|
-
|
|
11422
|
+
vd as z
|
|
11414
11423
|
};
|