@feedmepos/mf-payment 1.10.3 → 1.10.4-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-DXXEAGNv.js → Actions.vue_vue_type_script_setup_true_lang-DWEzAvsz.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DtDcZPiM.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CZdQwUHi.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DzfC4Ydq.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BHNukQgp.js} +2 -2
- package/dist/{Chargeback-CeT1Lhsx.js → Chargeback-DX6btYQD.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-Anj6Ov3T.js → DocumentViewer.vue_vue_type_script_setup_true_lang-D1U0GGBL.js} +9 -4
- package/dist/{ExternalTerminal-CVwXtIQi.js → ExternalTerminal-BQRUDzIN.js} +6 -6
- package/dist/OnboardForm-BJn0vnaI.js +1509 -0
- package/dist/OnboardForm-BMljWq6i.js +22533 -0
- package/dist/{OnboardSubmission-DbCS8yrY.js → OnboardSubmission-B3uhuuS0.js} +6 -6
- package/dist/{OnboardSubmission-CMjrVivi.js → OnboardSubmission-CbEIskW_.js} +3 -3
- package/dist/{PayoutAccount-BQmYnRti.js → PayoutAccount-DrHmix7L.js} +7 -7
- package/dist/{PayoutAccount-DAyjFYUb.js → PayoutAccount-lK6S8iFC.js} +5 -5
- package/dist/{PayoutAccountSetting-B2GvHok3.js → PayoutAccountSetting-Y0UjGXB_.js} +715 -722
- package/dist/{Restaurant-BQYJBsl7.js → Restaurant-DIxJpmSI.js} +4 -4
- package/dist/{RestaurantSetting-BAGLuDkq.js → RestaurantSetting-8WT3PwCq.js} +3 -3
- package/dist/{Settlement-ChindqhG.js → Settlement-DCIg5lYX.js} +4 -4
- package/dist/{Settlement-DRAn74x0.js → Settlement-qtUt-fV7.js} +3 -3
- package/dist/{SettlementTransactions-CIGKFRsD.js → SettlementTransactions-CHC53bzQ.js} +5 -5
- package/dist/{SettlementTransactions-BQr5WvYC.js → SettlementTransactions-CrtEN8Qk.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-D0RTxbYt.js → Status.vue_vue_type_script_setup_true_lang-Bgtawcmv.js} +1 -1
- package/dist/{Terminal-ITG71-h5.js → Terminal-C_wDQsYu.js} +6 -6
- package/dist/{TerminalSetting-DALz7UOI.js → TerminalSetting-leYySvWx.js} +6 -6
- package/dist/{Transaction-CMlbLJ40.js → Transaction-BvZ3sQKk.js} +10 -10
- package/dist/{Transaction-CNczRMks.js → Transaction-PkfDY_22.js} +11 -11
- package/dist/{TransactionOld-Vc0BxLst.js → TransactionOld-DZfYgD-J.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-D0IHQIDw.js → TransactionStatus.vue_vue_type_script_setup_true_lang-2JjmRrBE.js} +1 -1
- package/dist/{app-DIXzt9ON.js → app-BN99hFif.js} +362 -353
- package/dist/app.js +1 -1
- package/dist/{assets-D6PvbkZQ.js → assets-C__HD_rf.js} +1 -1
- package/dist/components/PDFViewer.vue.d.ts +11 -1
- package/dist/{grafana-CIUpjt-p.js → grafana-B4tXE6aU.js} +1 -1
- package/dist/{index-cVqHUVQr.js → index-BJukJrqD.js} +2 -2
- package/dist/{index-DSzEV9Z2.js → index-BVkRb_Qy.js} +1 -1
- package/dist/{index-DSTvbZSY.js → index-BiC8s_0I.js} +1 -1
- package/dist/{index-Dd0_PteU.js → index-Bku7iW7x.js} +1 -1
- package/dist/{index-BtizhJgd.js → index-Bxzzp9Hp.js} +1 -1
- package/dist/{index-Gru3oQsi.js → index-CWO4ygXh.js} +1 -1
- package/dist/{index-BJz6amD9.js → index-CdJLIUK1.js} +1 -2
- package/dist/{index-Dhl-wJsD.js → index-CgL2TLW2.js} +1 -1
- package/dist/{index-VP68zTCg.js → index-Dfh5_ii8.js} +1 -1
- package/dist/{index-6ArggUS4.js → index-DmxOGKCp.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-i75zV-qk.js → index.vue_vue_type_script_setup_true_lang-B-BcbMgi.js} +1 -1
- package/dist/model/payout-account.d.ts +2 -2
- package/dist/{onboard-submission-CaLG3ujz.js → onboard-submission-ClwLhJmC.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-BuF5FTeH.js → payout-account-DydUp6Qo.js} +3 -3
- package/dist/stores/payoutAccount.d.ts +16 -16
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/cell/UploadButton.vue.d.ts +1 -1
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +12 -12
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +12 -12
- package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +12 -12
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +38 -38
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +38 -38
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +38 -38
- 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/settlement/SettlementTable.vue.d.ts +32 -32
- package/dist/views/admin/terminal/TerminalSideSheet.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/BeamGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/BriGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/PbbGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +18 -18
- package/dist/views/onboard-submission/cell/UploadButton.vue.d.ts +1 -1
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +32 -32
- 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 +32 -32
- package/package.json +2 -2
- package/dist/OnboardForm-CwNYDJWa.js +0 -1463
- package/dist/OnboardForm-DIDPFAwq.js +0 -22368
|
@@ -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 = {
|
|
@@ -1255,28 +1255,28 @@ function ca(t, e, n) {
|
|
|
1255
1255
|
evaluating: i = void 0,
|
|
1256
1256
|
shallow: a = !0,
|
|
1257
1257
|
onError: c = oa
|
|
1258
|
-
} = r, l =
|
|
1258
|
+
} = r, l = St(!s), A = a ? Ni(e) : St(e);
|
|
1259
1259
|
let f = 0;
|
|
1260
1260
|
return Hi(async (p) => {
|
|
1261
1261
|
if (!l.value)
|
|
1262
1262
|
return;
|
|
1263
1263
|
f++;
|
|
1264
1264
|
const B = f;
|
|
1265
|
-
let
|
|
1265
|
+
let w = !1;
|
|
1266
1266
|
i && Promise.resolve().then(() => {
|
|
1267
1267
|
i.value = !0;
|
|
1268
1268
|
});
|
|
1269
1269
|
try {
|
|
1270
1270
|
const P = await t((I) => {
|
|
1271
1271
|
p(() => {
|
|
1272
|
-
i && (i.value = !1),
|
|
1272
|
+
i && (i.value = !1), w || I();
|
|
1273
1273
|
});
|
|
1274
1274
|
});
|
|
1275
1275
|
B === f && (A.value = P);
|
|
1276
1276
|
} catch (P) {
|
|
1277
1277
|
c(P);
|
|
1278
1278
|
} finally {
|
|
1279
|
-
i && B === f && (i.value = !1),
|
|
1279
|
+
i && B === f && (i.value = !1), w = !0;
|
|
1280
1280
|
}
|
|
1281
1281
|
}), s ? Nn(() => (l.value = !0, A.value)) : A;
|
|
1282
1282
|
}
|
|
@@ -1387,7 +1387,7 @@ var rs = { exports: {} };
|
|
|
1387
1387
|
return !0;
|
|
1388
1388
|
};
|
|
1389
1389
|
}
|
|
1390
|
-
function
|
|
1390
|
+
function w(u, m, g, y) {
|
|
1391
1391
|
return u.validate(u.options, m, g, y);
|
|
1392
1392
|
}
|
|
1393
1393
|
var P = {
|
|
@@ -1432,7 +1432,7 @@ var rs = { exports: {} };
|
|
|
1432
1432
|
},
|
|
1433
1433
|
$or: function(u, m, g, y) {
|
|
1434
1434
|
for (var b = 0, E = u.length; b < E; b++)
|
|
1435
|
-
if (
|
|
1435
|
+
if (w(f(u, b), m, g, y)) return !0;
|
|
1436
1436
|
return !1;
|
|
1437
1437
|
},
|
|
1438
1438
|
$nor: function(u, m, g, y) {
|
|
@@ -1440,7 +1440,7 @@ var rs = { exports: {} };
|
|
|
1440
1440
|
},
|
|
1441
1441
|
$and: function(u, m, g, y) {
|
|
1442
1442
|
for (var b = 0, E = u.length; b < E; b++)
|
|
1443
|
-
if (!
|
|
1443
|
+
if (!w(f(u, b), m, g, y)) return !1;
|
|
1444
1444
|
return !0;
|
|
1445
1445
|
},
|
|
1446
1446
|
$regex: p(function(u, m) {
|
|
@@ -1452,9 +1452,9 @@ var rs = { exports: {} };
|
|
|
1452
1452
|
$elemMatch: function(u, m, g, y) {
|
|
1453
1453
|
return c(m) ? !!~function(b, E) {
|
|
1454
1454
|
for (var O = 0; O < b.length; O++)
|
|
1455
|
-
if (f(b, O),
|
|
1455
|
+
if (f(b, O), w(E, f(b, O))) return O;
|
|
1456
1456
|
return -1;
|
|
1457
|
-
}(m, u) :
|
|
1457
|
+
}(m, u) : w(u, m, g, y);
|
|
1458
1458
|
},
|
|
1459
1459
|
$exists: function(u, m, g, y) {
|
|
1460
1460
|
return y.hasOwnProperty(g) === u;
|
|
@@ -1512,7 +1512,7 @@ var rs = { exports: {} };
|
|
|
1512
1512
|
for (j = u.length; j--; ) if (u[j] == null) return !0;
|
|
1513
1513
|
}
|
|
1514
1514
|
for (j = u.length; j--; ) {
|
|
1515
|
-
var O =
|
|
1515
|
+
var O = w(H(f(u, j), g), E, j, u);
|
|
1516
1516
|
if (O && String(O) !== "[object Object]" && String(E) !== "[object Object]")
|
|
1517
1517
|
return !0;
|
|
1518
1518
|
}
|
|
@@ -1555,7 +1555,7 @@ var rs = { exports: {} };
|
|
|
1555
1555
|
$not: function(u, m, g) {
|
|
1556
1556
|
var y = Y(g)(u);
|
|
1557
1557
|
return function(b, E, O) {
|
|
1558
|
-
return !
|
|
1558
|
+
return !w(y, b, E, O);
|
|
1559
1559
|
};
|
|
1560
1560
|
},
|
|
1561
1561
|
$type: function(u) {
|
|
@@ -1593,11 +1593,11 @@ var rs = { exports: {} };
|
|
|
1593
1593
|
else tr(f(Ce, nr), ft, gt + 1, Ce, ln);
|
|
1594
1594
|
}(m, g, 0, m, E), E.length === 1) {
|
|
1595
1595
|
var O = E[0];
|
|
1596
|
-
return
|
|
1596
|
+
return w(y, O[0], O[1], O[2]);
|
|
1597
1597
|
}
|
|
1598
1598
|
for (var j = b && b.$ne !== void 0, W = j, _ = 0; _ < E.length; _++) {
|
|
1599
|
-
var he = E[_],
|
|
1600
|
-
j ? W &=
|
|
1599
|
+
var he = E[_], Vt = w(y, he[0], he[1], he[2]);
|
|
1600
|
+
j ? W &= Vt : W |= Vt;
|
|
1601
1601
|
}
|
|
1602
1602
|
return W;
|
|
1603
1603
|
}
|
|
@@ -1619,8 +1619,8 @@ var rs = { exports: {} };
|
|
|
1619
1619
|
else {
|
|
1620
1620
|
if (W.charCodeAt(0) === 36)
|
|
1621
1621
|
throw new Error("Unknown operation " + W);
|
|
1622
|
-
var
|
|
1623
|
-
j.push(Q(
|
|
1622
|
+
var Vt = W.split(".");
|
|
1623
|
+
j.push(Q(Vt, E(_), _));
|
|
1624
1624
|
}
|
|
1625
1625
|
}
|
|
1626
1626
|
}
|
|
@@ -1630,24 +1630,24 @@ var rs = { exports: {} };
|
|
|
1630
1630
|
if (!l(W)) return _;
|
|
1631
1631
|
for (var he in W) _.push(he), j(W[he], _);
|
|
1632
1632
|
return _;
|
|
1633
|
-
}(O, []).join(",").search(/[$.]/) === -1 ? V(O,
|
|
1633
|
+
}(O, []).join(",").search(/[$.]/) === -1 ? V(O, v) : b(O);
|
|
1634
1634
|
};
|
|
1635
1635
|
return function(O) {
|
|
1636
1636
|
return b(y(O));
|
|
1637
1637
|
};
|
|
1638
1638
|
}
|
|
1639
|
-
function
|
|
1639
|
+
function v(u, m) {
|
|
1640
1640
|
if (Object.prototype.toString.call(u) !== Object.prototype.toString.call(m))
|
|
1641
1641
|
return !1;
|
|
1642
1642
|
if (l(u)) {
|
|
1643
1643
|
if (Object.keys(u).length !== Object.keys(m).length) return !1;
|
|
1644
|
-
for (var g in u) if (!
|
|
1644
|
+
for (var g in u) if (!v(u[g], m[g])) return !1;
|
|
1645
1645
|
return !0;
|
|
1646
1646
|
}
|
|
1647
1647
|
if (c(u)) {
|
|
1648
1648
|
if (u.length !== m.length) return !1;
|
|
1649
1649
|
for (var y = 0, b = u.length; y < b; y++)
|
|
1650
|
-
if (!
|
|
1650
|
+
if (!v(u[y], m[y])) return !1;
|
|
1651
1651
|
return !0;
|
|
1652
1652
|
}
|
|
1653
1653
|
return u === m;
|
|
@@ -1657,18 +1657,18 @@ var rs = { exports: {} };
|
|
|
1657
1657
|
return m && m.select && (g = {
|
|
1658
1658
|
options: g,
|
|
1659
1659
|
validate: function(y, b, E, O) {
|
|
1660
|
-
return
|
|
1660
|
+
return w(y, b && m.select(b), E, O);
|
|
1661
1661
|
}
|
|
1662
1662
|
}), g;
|
|
1663
1663
|
}
|
|
1664
1664
|
function U(u, m) {
|
|
1665
1665
|
var g = H(u, m = Object.assign({ compare: ee, comparable: q }, m));
|
|
1666
1666
|
return function(y, b, E) {
|
|
1667
|
-
return
|
|
1667
|
+
return w(g, y, b, E);
|
|
1668
1668
|
};
|
|
1669
1669
|
}
|
|
1670
1670
|
function ee(u, m) {
|
|
1671
|
-
if (
|
|
1671
|
+
if (v(u, m)) return 0;
|
|
1672
1672
|
if (i(u) === i(m)) {
|
|
1673
1673
|
if (u > m) return 1;
|
|
1674
1674
|
if (u < m) return -1;
|
|
@@ -1695,15 +1695,15 @@ function ma(t, e, n) {
|
|
|
1695
1695
|
function fa(t, e) {
|
|
1696
1696
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
|
|
1697
1697
|
}
|
|
1698
|
-
function
|
|
1699
|
-
return
|
|
1698
|
+
function wn(t) {
|
|
1699
|
+
return wn = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
|
|
1700
1700
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
1701
|
-
},
|
|
1701
|
+
}, wn(t);
|
|
1702
1702
|
}
|
|
1703
|
-
function
|
|
1704
|
-
return
|
|
1703
|
+
function Ut(t, e) {
|
|
1704
|
+
return Ut = Object.setPrototypeOf || function(r, s) {
|
|
1705
1705
|
return r.__proto__ = s, r;
|
|
1706
|
-
},
|
|
1706
|
+
}, Ut(t, e);
|
|
1707
1707
|
}
|
|
1708
1708
|
function ga() {
|
|
1709
1709
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
@@ -1715,13 +1715,13 @@ function ga() {
|
|
|
1715
1715
|
return !1;
|
|
1716
1716
|
}
|
|
1717
1717
|
}
|
|
1718
|
-
function
|
|
1719
|
-
return ga() ?
|
|
1718
|
+
function qt(t, e, n) {
|
|
1719
|
+
return ga() ? qt = Reflect.construct : qt = function(s, i, a) {
|
|
1720
1720
|
var c = [null];
|
|
1721
1721
|
c.push.apply(c, i);
|
|
1722
1722
|
var l = Function.bind.apply(s, c), A = new l();
|
|
1723
|
-
return a &&
|
|
1724
|
-
},
|
|
1723
|
+
return a && Ut(A, a.prototype), A;
|
|
1724
|
+
}, qt.apply(null, arguments);
|
|
1725
1725
|
}
|
|
1726
1726
|
function pa(t) {
|
|
1727
1727
|
return Function.toString.call(t).indexOf("[native code]") !== -1;
|
|
@@ -1737,7 +1737,7 @@ function Bn(t) {
|
|
|
1737
1737
|
e.set(r, s);
|
|
1738
1738
|
}
|
|
1739
1739
|
function s() {
|
|
1740
|
-
return
|
|
1740
|
+
return qt(r, arguments, wn(this).constructor);
|
|
1741
1741
|
}
|
|
1742
1742
|
return s.prototype = Object.create(r.prototype, {
|
|
1743
1743
|
constructor: {
|
|
@@ -1746,7 +1746,7 @@ function Bn(t) {
|
|
|
1746
1746
|
writable: !0,
|
|
1747
1747
|
configurable: !0
|
|
1748
1748
|
}
|
|
1749
|
-
}),
|
|
1749
|
+
}), Ut(s, r);
|
|
1750
1750
|
}, Bn(t);
|
|
1751
1751
|
}
|
|
1752
1752
|
function ir(t) {
|
|
@@ -1756,9 +1756,9 @@ function ir(t) {
|
|
|
1756
1756
|
}
|
|
1757
1757
|
var ss = function(e) {
|
|
1758
1758
|
return 'Cannot execute "' + e.action + '" on "' + e.subjectName + '"';
|
|
1759
|
-
},
|
|
1759
|
+
}, Ft = ss, ya = /* @__PURE__ */ function(t) {
|
|
1760
1760
|
fa(e, t), e.setDefaultMessage = function(s) {
|
|
1761
|
-
s === null ?
|
|
1761
|
+
s === null ? Ft = ss : Ft = typeof s == "string" ? function() {
|
|
1762
1762
|
return s;
|
|
1763
1763
|
} : s;
|
|
1764
1764
|
}, e.from = function(s) {
|
|
@@ -1769,7 +1769,7 @@ var ss = function(e) {
|
|
|
1769
1769
|
};
|
|
1770
1770
|
function e(r, s) {
|
|
1771
1771
|
var i;
|
|
1772
|
-
return s === void 0 && (s = {}), i = t.call(this, r) || this, i._setMetadata(s), i.message = r ||
|
|
1772
|
+
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;
|
|
1773
1773
|
}
|
|
1774
1774
|
var n = e.prototype;
|
|
1775
1775
|
return n.setMessage = function(s) {
|
|
@@ -1786,7 +1786,7 @@ var ss = function(e) {
|
|
|
1786
1786
|
subjectName: this.ability.subjectName(i)
|
|
1787
1787
|
});
|
|
1788
1788
|
var l = c ? c.reason : "";
|
|
1789
|
-
throw this.message = this._customMessage || l ||
|
|
1789
|
+
throw this.message = this._customMessage || l || Ft(this), this;
|
|
1790
1790
|
}
|
|
1791
1791
|
}, n._setMetadata = function(s) {
|
|
1792
1792
|
this.subject = s.subject, this.subjectName = s.subjectName, this.action = s.action, this.field = s.field;
|
|
@@ -1801,10 +1801,10 @@ function ba(t) {
|
|
|
1801
1801
|
var e = typeof t == "object" ? t.constructor : t;
|
|
1802
1802
|
return e.modelName || e.name;
|
|
1803
1803
|
}
|
|
1804
|
-
function
|
|
1804
|
+
function va(t) {
|
|
1805
1805
|
return JSON.parse(JSON.stringify(t));
|
|
1806
1806
|
}
|
|
1807
|
-
var
|
|
1807
|
+
var wa = /[-/\\^$+?.()|[\]{}]/g, Ba = /\.?\*+\.?/g, Da = /\*+/, Ca = /\./g;
|
|
1808
1808
|
function Ea(t, e, n) {
|
|
1809
1809
|
var r = n[0] === "*" || t[0] === "." && t[t.length - 1] === "." ? "+" : "*", s = t.indexOf("**") === -1 ? "[^.]" : ".", i = t.replace(Ca, "\\$&").replace(Da, s + r);
|
|
1810
1810
|
return e + t.length === n.length ? "(?:" + i + ")?" : i;
|
|
@@ -1814,7 +1814,7 @@ function Ma(t, e, n) {
|
|
|
1814
1814
|
}
|
|
1815
1815
|
function Ia(t) {
|
|
1816
1816
|
var e = t.map(function(r) {
|
|
1817
|
-
return r.replace(
|
|
1817
|
+
return r.replace(wa, Ma).replace(Ba, Ea);
|
|
1818
1818
|
}), n = e.length > 1 ? "(?:" + e.join("|") + ")" : e[0];
|
|
1819
1819
|
return new RegExp("^" + n + "$");
|
|
1820
1820
|
}
|
|
@@ -1859,7 +1859,7 @@ var Oa = /* @__PURE__ */ function() {
|
|
|
1859
1859
|
indexedRules: /* @__PURE__ */ Object.create(null),
|
|
1860
1860
|
mergedRules: /* @__PURE__ */ Object.create(null),
|
|
1861
1861
|
events: {},
|
|
1862
|
-
aliases:
|
|
1862
|
+
aliases: va(ar)
|
|
1863
1863
|
}, this.update(n);
|
|
1864
1864
|
}
|
|
1865
1865
|
var e = t.prototype;
|
|
@@ -1877,8 +1877,8 @@ var Oa = /* @__PURE__ */ function() {
|
|
|
1877
1877
|
for (var s = /* @__PURE__ */ Object.create(null), i = this[te].RuleType, a = !0, c = !1, l = 0; l < r.length; l++) {
|
|
1878
1878
|
var A = new i(r[l]), f = this.expandActions(A.actions), p = Dn(A.subject), B = r.length - l - 1;
|
|
1879
1879
|
a = !!(a && A.inverted), !c && A.fields && (c = !0);
|
|
1880
|
-
for (var
|
|
1881
|
-
var P = p[
|
|
1880
|
+
for (var w = 0; w < p.length; w++) {
|
|
1881
|
+
var P = p[w];
|
|
1882
1882
|
s[P] = s[P] || /* @__PURE__ */ Object.create(null);
|
|
1883
1883
|
for (var I = 0; I < f.length; I++) {
|
|
1884
1884
|
var V = f[I];
|
|
@@ -2042,7 +2042,7 @@ async function ka(t, e) {
|
|
|
2042
2042
|
}
|
|
2043
2043
|
var Cn = /* @__PURE__ */ ((t) => (t.Loading = "loading", t.Allowed = "allowed", t.Denied = "denied", t))(Cn || {});
|
|
2044
2044
|
function Ra() {
|
|
2045
|
-
const t = ts(), { sessionUser: e } =
|
|
2045
|
+
const t = ts(), { sessionUser: e } = rn();
|
|
2046
2046
|
return ca(
|
|
2047
2047
|
async () => {
|
|
2048
2048
|
t.matched;
|
|
@@ -2081,7 +2081,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2081
2081
|
subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
|
|
2082
2082
|
}, za = {
|
|
2083
2083
|
noPermission: Wa
|
|
2084
|
-
}, 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__ */
|
|
2084
|
+
}, 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({
|
|
2085
2085
|
__name: "NoPermission",
|
|
2086
2086
|
setup(t) {
|
|
2087
2087
|
const { t: e } = ns({
|
|
@@ -2092,7 +2092,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2092
2092
|
"th-TH": za
|
|
2093
2093
|
}
|
|
2094
2094
|
});
|
|
2095
|
-
return (n, r) => (
|
|
2095
|
+
return (n, r) => (nn(), Si("div", Za, [
|
|
2096
2096
|
Ke("div", La, [
|
|
2097
2097
|
Ke("div", Ka, [
|
|
2098
2098
|
Ke("img", {
|
|
@@ -2107,18 +2107,18 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2107
2107
|
])
|
|
2108
2108
|
]));
|
|
2109
2109
|
}
|
|
2110
|
-
}), to = /* @__PURE__ */
|
|
2110
|
+
}), to = /* @__PURE__ */ tn({
|
|
2111
2111
|
__name: "PermissionWrapper",
|
|
2112
2112
|
setup(t) {
|
|
2113
2113
|
const e = Ra();
|
|
2114
|
-
return (n, r) => ge(e) === ge(Cn).Denied ? (
|
|
2114
|
+
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);
|
|
2115
2115
|
}
|
|
2116
2116
|
});
|
|
2117
2117
|
function os(t) {
|
|
2118
2118
|
return {
|
|
2119
2119
|
inheritAttrs: !1,
|
|
2120
2120
|
setup(e, { attrs: n }) {
|
|
2121
|
-
return () =>
|
|
2121
|
+
return () => vn(to, {}, { default: () => vn(t, n) });
|
|
2122
2122
|
}
|
|
2123
2123
|
};
|
|
2124
2124
|
}
|
|
@@ -2415,10 +2415,10 @@ const k = [
|
|
|
2415
2415
|
), bs = $(
|
|
2416
2416
|
se,
|
|
2417
2417
|
ho
|
|
2418
|
-
),
|
|
2418
|
+
), vs = $(
|
|
2419
2419
|
se,
|
|
2420
2420
|
mo
|
|
2421
|
-
),
|
|
2421
|
+
), ws = $(
|
|
2422
2422
|
se,
|
|
2423
2423
|
fo
|
|
2424
2424
|
), Bs = $(
|
|
@@ -2445,7 +2445,7 @@ const k = [
|
|
|
2445
2445
|
o.delete
|
|
2446
2446
|
]
|
|
2447
2447
|
}
|
|
2448
|
-
],
|
|
2448
|
+
], vo = [
|
|
2449
2449
|
...k,
|
|
2450
2450
|
{
|
|
2451
2451
|
label: "Membership",
|
|
@@ -2457,7 +2457,7 @@ const k = [
|
|
|
2457
2457
|
o.delete
|
|
2458
2458
|
]
|
|
2459
2459
|
}
|
|
2460
|
-
],
|
|
2460
|
+
], wo = $(
|
|
2461
2461
|
no,
|
|
2462
2462
|
ro,
|
|
2463
2463
|
cs,
|
|
@@ -2471,8 +2471,8 @@ const k = [
|
|
|
2471
2471
|
ps,
|
|
2472
2472
|
ys,
|
|
2473
2473
|
bs,
|
|
2474
|
-
ws,
|
|
2475
2474
|
vs,
|
|
2475
|
+
ws,
|
|
2476
2476
|
Bs,
|
|
2477
2477
|
Ds,
|
|
2478
2478
|
ds,
|
|
@@ -2486,11 +2486,11 @@ const k = [
|
|
|
2486
2486
|
), Do = $(
|
|
2487
2487
|
se,
|
|
2488
2488
|
bo
|
|
2489
|
-
), Co = $(
|
|
2489
|
+
), Co = $(vo), Eo = {
|
|
2490
2490
|
[`set_${d.crm}`]: {
|
|
2491
2491
|
key: "sys:crm:access",
|
|
2492
2492
|
name: "CRM Access",
|
|
2493
|
-
permissions:
|
|
2493
|
+
permissions: wo
|
|
2494
2494
|
},
|
|
2495
2495
|
[`set_${d.crm_promotion}`]: {
|
|
2496
2496
|
key: "sys:crm:promotion",
|
|
@@ -2535,12 +2535,12 @@ const k = [
|
|
|
2535
2535
|
[`set_${d.crm_credit}`]: {
|
|
2536
2536
|
key: "sys:crm:credit",
|
|
2537
2537
|
name: "CRM Credit",
|
|
2538
|
-
permissions:
|
|
2538
|
+
permissions: vs
|
|
2539
2539
|
},
|
|
2540
2540
|
[`set_${d.crm_experience}`]: {
|
|
2541
2541
|
key: "sys:crm:experience",
|
|
2542
2542
|
name: "CRM Experience",
|
|
2543
|
-
permissions:
|
|
2543
|
+
permissions: ws
|
|
2544
2544
|
},
|
|
2545
2545
|
[`set_${d.crm_game}`]: {
|
|
2546
2546
|
key: "sys:crm:game",
|
|
@@ -3163,7 +3163,7 @@ const Ho = () => ({
|
|
|
3163
3163
|
sidebarDisplay: "Restaurants",
|
|
3164
3164
|
section: "payment-gateway"
|
|
3165
3165
|
},
|
|
3166
|
-
component: () => import("./Restaurant-
|
|
3166
|
+
component: () => import("./Restaurant-DIxJpmSI.js")
|
|
3167
3167
|
},
|
|
3168
3168
|
{
|
|
3169
3169
|
path: "/admin/restaurants/:restaurantId",
|
|
@@ -3172,7 +3172,7 @@ const Ho = () => ({
|
|
|
3172
3172
|
meta: {
|
|
3173
3173
|
parent: "mf-payment-admin.restaurant"
|
|
3174
3174
|
},
|
|
3175
|
-
component: () => import("./RestaurantSetting-
|
|
3175
|
+
component: () => import("./RestaurantSetting-8WT3PwCq.js")
|
|
3176
3176
|
},
|
|
3177
3177
|
{
|
|
3178
3178
|
path: "/admin/payout-accounts",
|
|
@@ -3181,7 +3181,7 @@ const Ho = () => ({
|
|
|
3181
3181
|
sidebarDisplay: "Payout Accounts",
|
|
3182
3182
|
section: "payment-gateway"
|
|
3183
3183
|
},
|
|
3184
|
-
component: () => import("./PayoutAccount-
|
|
3184
|
+
component: () => import("./PayoutAccount-DrHmix7L.js")
|
|
3185
3185
|
},
|
|
3186
3186
|
{
|
|
3187
3187
|
path: "/admin/payout-accounts/:accountId",
|
|
@@ -3190,7 +3190,7 @@ const Ho = () => ({
|
|
|
3190
3190
|
meta: {
|
|
3191
3191
|
parent: "mf-payment-admin.payout-account"
|
|
3192
3192
|
},
|
|
3193
|
-
component: () => import("./PayoutAccountSetting-
|
|
3193
|
+
component: () => import("./PayoutAccountSetting-Y0UjGXB_.js")
|
|
3194
3194
|
},
|
|
3195
3195
|
{
|
|
3196
3196
|
path: "/admin/onboarding",
|
|
@@ -3199,7 +3199,7 @@ const Ho = () => ({
|
|
|
3199
3199
|
sidebarDisplay: "Payment Onboarding",
|
|
3200
3200
|
section: "payment-gateway"
|
|
3201
3201
|
},
|
|
3202
|
-
component: () => import("./OnboardSubmission-
|
|
3202
|
+
component: () => import("./OnboardSubmission-B3uhuuS0.js")
|
|
3203
3203
|
},
|
|
3204
3204
|
{
|
|
3205
3205
|
path: "/admin/onboarding/:submissionId",
|
|
@@ -3208,7 +3208,7 @@ const Ho = () => ({
|
|
|
3208
3208
|
meta: {
|
|
3209
3209
|
parent: "mf-payment-admin.onboard-submission"
|
|
3210
3210
|
},
|
|
3211
|
-
component: () => import("./OnboardForm-
|
|
3211
|
+
component: () => import("./OnboardForm-BJn0vnaI.js")
|
|
3212
3212
|
},
|
|
3213
3213
|
{
|
|
3214
3214
|
path: "/admin/terminal/pos",
|
|
@@ -3217,7 +3217,7 @@ const Ho = () => ({
|
|
|
3217
3217
|
sidebarDisplay: "POS",
|
|
3218
3218
|
section: "device"
|
|
3219
3219
|
},
|
|
3220
|
-
component: () => import("./Terminal-
|
|
3220
|
+
component: () => import("./Terminal-C_wDQsYu.js"),
|
|
3221
3221
|
props: {
|
|
3222
3222
|
type: "POS"
|
|
3223
3223
|
}
|
|
@@ -3229,7 +3229,7 @@ const Ho = () => ({
|
|
|
3229
3229
|
sidebarDisplay: "Kiosks",
|
|
3230
3230
|
section: "device"
|
|
3231
3231
|
},
|
|
3232
|
-
component: () => import("./Terminal-
|
|
3232
|
+
component: () => import("./Terminal-C_wDQsYu.js"),
|
|
3233
3233
|
props: {
|
|
3234
3234
|
type: "KIOSK"
|
|
3235
3235
|
}
|
|
@@ -3241,7 +3241,7 @@ const Ho = () => ({
|
|
|
3241
3241
|
sidebarDisplay: "Terminals",
|
|
3242
3242
|
section: "device"
|
|
3243
3243
|
},
|
|
3244
|
-
component: () => import("./Terminal-
|
|
3244
|
+
component: () => import("./Terminal-C_wDQsYu.js"),
|
|
3245
3245
|
props: {
|
|
3246
3246
|
type: "TERMINAL"
|
|
3247
3247
|
}
|
|
@@ -3254,7 +3254,7 @@ const Ho = () => ({
|
|
|
3254
3254
|
section: "device",
|
|
3255
3255
|
region: { TH: !0, ID: !0 }
|
|
3256
3256
|
},
|
|
3257
|
-
component: () => import("./ExternalTerminal-
|
|
3257
|
+
component: () => import("./ExternalTerminal-BQRUDzIN.js")
|
|
3258
3258
|
},
|
|
3259
3259
|
{
|
|
3260
3260
|
path: "/admin/terminal/pos/:terminalId",
|
|
@@ -3263,7 +3263,7 @@ const Ho = () => ({
|
|
|
3263
3263
|
meta: {
|
|
3264
3264
|
parent: "mf-payment-admin.pos"
|
|
3265
3265
|
},
|
|
3266
|
-
component: () => import("./TerminalSetting-
|
|
3266
|
+
component: () => import("./TerminalSetting-leYySvWx.js")
|
|
3267
3267
|
},
|
|
3268
3268
|
{
|
|
3269
3269
|
path: "/admin/terminal/kiosk/:terminalId",
|
|
@@ -3272,7 +3272,7 @@ const Ho = () => ({
|
|
|
3272
3272
|
meta: {
|
|
3273
3273
|
parent: "mf-payment-admin.kiosk"
|
|
3274
3274
|
},
|
|
3275
|
-
component: () => import("./TerminalSetting-
|
|
3275
|
+
component: () => import("./TerminalSetting-leYySvWx.js")
|
|
3276
3276
|
},
|
|
3277
3277
|
{
|
|
3278
3278
|
path: "/admin/terminal/terminal/:terminalId",
|
|
@@ -3281,7 +3281,7 @@ const Ho = () => ({
|
|
|
3281
3281
|
meta: {
|
|
3282
3282
|
parent: "mf-payment-admin.terminal"
|
|
3283
3283
|
},
|
|
3284
|
-
component: () => import("./TerminalSetting-
|
|
3284
|
+
component: () => import("./TerminalSetting-leYySvWx.js")
|
|
3285
3285
|
},
|
|
3286
3286
|
{
|
|
3287
3287
|
path: "/admin/transaction",
|
|
@@ -3289,7 +3289,7 @@ const Ho = () => ({
|
|
|
3289
3289
|
meta: {
|
|
3290
3290
|
sidebarDisplay: "Transactions"
|
|
3291
3291
|
},
|
|
3292
|
-
component: () => import("./Transaction-
|
|
3292
|
+
component: () => import("./Transaction-PkfDY_22.js")
|
|
3293
3293
|
},
|
|
3294
3294
|
{
|
|
3295
3295
|
path: "/admin/chargeback",
|
|
@@ -3297,7 +3297,7 @@ const Ho = () => ({
|
|
|
3297
3297
|
meta: {
|
|
3298
3298
|
sidebarDisplay: "Chargebacks"
|
|
3299
3299
|
},
|
|
3300
|
-
component: () => import("./Chargeback-
|
|
3300
|
+
component: () => import("./Chargeback-DX6btYQD.js")
|
|
3301
3301
|
},
|
|
3302
3302
|
{
|
|
3303
3303
|
path: "/admin/settlement",
|
|
@@ -3305,7 +3305,7 @@ const Ho = () => ({
|
|
|
3305
3305
|
meta: {
|
|
3306
3306
|
sidebarDisplay: "Settlements"
|
|
3307
3307
|
},
|
|
3308
|
-
component: () => import("./Settlement-
|
|
3308
|
+
component: () => import("./Settlement-qtUt-fV7.js")
|
|
3309
3309
|
},
|
|
3310
3310
|
{
|
|
3311
3311
|
path: "/admin/settlement/:settlementId",
|
|
@@ -3314,7 +3314,7 @@ const Ho = () => ({
|
|
|
3314
3314
|
meta: {
|
|
3315
3315
|
parent: "mf-payment-admin.settlement"
|
|
3316
3316
|
},
|
|
3317
|
-
component: () => import("./SettlementTransactions-
|
|
3317
|
+
component: () => import("./SettlementTransactions-CrtEN8Qk.js")
|
|
3318
3318
|
}
|
|
3319
3319
|
].map((t) => ({
|
|
3320
3320
|
...t,
|
|
@@ -3322,7 +3322,7 @@ const Ho = () => ({
|
|
|
3322
3322
|
...t.meta,
|
|
3323
3323
|
...Ho()
|
|
3324
3324
|
}
|
|
3325
|
-
})),
|
|
3325
|
+
})), bt = [
|
|
3326
3326
|
{
|
|
3327
3327
|
path: "",
|
|
3328
3328
|
redirect: { name: "mf-payment-payout-account" }
|
|
@@ -3330,7 +3330,7 @@ const Ho = () => ({
|
|
|
3330
3330
|
{
|
|
3331
3331
|
path: "/payout-account",
|
|
3332
3332
|
name: "mf-payment-payout-account",
|
|
3333
|
-
component: () => import("./PayoutAccount-
|
|
3333
|
+
component: () => import("./PayoutAccount-lK6S8iFC.js"),
|
|
3334
3334
|
meta: {
|
|
3335
3335
|
sidebarDisplay: "i18n:payment.routes.payout_account",
|
|
3336
3336
|
region: { MY: !0 },
|
|
@@ -3347,7 +3347,7 @@ const Ho = () => ({
|
|
|
3347
3347
|
{
|
|
3348
3348
|
path: "/onboard-submission",
|
|
3349
3349
|
name: "mf-payment-onboard-submission",
|
|
3350
|
-
component: () => import("./OnboardSubmission-
|
|
3350
|
+
component: () => import("./OnboardSubmission-CbEIskW_.js"),
|
|
3351
3351
|
meta: {
|
|
3352
3352
|
sidebarDisplay: "i18n:payment.routes.onboard_submission",
|
|
3353
3353
|
region: { MY: !0, TH: !0, AU: !0 },
|
|
@@ -3365,7 +3365,7 @@ const Ho = () => ({
|
|
|
3365
3365
|
path: "/onboard-submission/restaurant/:restaurantId/:type/:submission?",
|
|
3366
3366
|
name: "mf-payment-onboard-submission-form",
|
|
3367
3367
|
props: !0,
|
|
3368
|
-
component: () => import("./OnboardForm-
|
|
3368
|
+
component: () => import("./OnboardForm-BMljWq6i.js"),
|
|
3369
3369
|
meta: {
|
|
3370
3370
|
parent: "mf-payment-onboard-submission",
|
|
3371
3371
|
validationManifest: {
|
|
@@ -3381,7 +3381,7 @@ const Ho = () => ({
|
|
|
3381
3381
|
{
|
|
3382
3382
|
path: "/transaction-old",
|
|
3383
3383
|
name: "mf-payment-old-transaction",
|
|
3384
|
-
component: () => import("./TransactionOld-
|
|
3384
|
+
component: () => import("./TransactionOld-DZfYgD-J.js"),
|
|
3385
3385
|
meta: {
|
|
3386
3386
|
sidebarDisplay: "i18n:payment.routes.transaction",
|
|
3387
3387
|
validationManifest: {
|
|
@@ -3397,7 +3397,7 @@ const Ho = () => ({
|
|
|
3397
3397
|
{
|
|
3398
3398
|
path: "/transaction",
|
|
3399
3399
|
name: "mf-payment-transaction",
|
|
3400
|
-
component: () => import("./Transaction-
|
|
3400
|
+
component: () => import("./Transaction-BvZ3sQKk.js"),
|
|
3401
3401
|
meta: {
|
|
3402
3402
|
sidebarDisplay: "i18n:payment.routes.transaction_new",
|
|
3403
3403
|
sidebarNew: !0,
|
|
@@ -3414,7 +3414,7 @@ const Ho = () => ({
|
|
|
3414
3414
|
{
|
|
3415
3415
|
path: "/settlement",
|
|
3416
3416
|
name: "mf-payment-settlement",
|
|
3417
|
-
component: () => import("./Settlement-
|
|
3417
|
+
component: () => import("./Settlement-DCIg5lYX.js"),
|
|
3418
3418
|
meta: {
|
|
3419
3419
|
sidebarDisplay: "i18n:payment.routes.settlement",
|
|
3420
3420
|
region: { MY: !0, SG: !0 },
|
|
@@ -3432,7 +3432,7 @@ const Ho = () => ({
|
|
|
3432
3432
|
path: "/settlement/:settlementId",
|
|
3433
3433
|
name: "mf-payment-settlement-transaction",
|
|
3434
3434
|
props: !0,
|
|
3435
|
-
component: () => import("./SettlementTransactions-
|
|
3435
|
+
component: () => import("./SettlementTransactions-CHC53bzQ.js"),
|
|
3436
3436
|
meta: {
|
|
3437
3437
|
parent: "mf-payment-settlement",
|
|
3438
3438
|
validationManifest: {
|
|
@@ -3600,8 +3600,8 @@ const Vs = function(t) {
|
|
|
3600
3600
|
const n = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
|
|
3601
3601
|
for (let s = 0; s < t.length; s += 3) {
|
|
3602
3602
|
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;
|
|
3603
|
-
let B = (c & 15) << 2 | A >> 6,
|
|
3604
|
-
l || (
|
|
3603
|
+
let B = (c & 15) << 2 | A >> 6, w = A & 63;
|
|
3604
|
+
l || (w = 64, a || (B = 64)), r.push(n[f], n[p], n[B], n[w]);
|
|
3605
3605
|
}
|
|
3606
3606
|
return r.join("");
|
|
3607
3607
|
},
|
|
@@ -3655,8 +3655,8 @@ const Vs = function(t) {
|
|
|
3655
3655
|
throw new So();
|
|
3656
3656
|
const B = i << 2 | c >> 4;
|
|
3657
3657
|
if (r.push(B), A !== 64) {
|
|
3658
|
-
const
|
|
3659
|
-
if (r.push(
|
|
3658
|
+
const w = c << 4 & 240 | A >> 2;
|
|
3659
|
+
if (r.push(w), p !== 64) {
|
|
3660
3660
|
const P = A << 6 & 192 | p;
|
|
3661
3661
|
r.push(P);
|
|
3662
3662
|
}
|
|
@@ -3888,10 +3888,10 @@ function sc() {
|
|
|
3888
3888
|
const ic = "FirebaseError";
|
|
3889
3889
|
class qe extends Error {
|
|
3890
3890
|
constructor(e, n, r) {
|
|
3891
|
-
super(n), this.code = e, this.customData = r, this.name = ic, Object.setPrototypeOf(this, qe.prototype), Error.captureStackTrace && Error.captureStackTrace(this,
|
|
3891
|
+
super(n), this.code = e, this.customData = r, this.name = ic, Object.setPrototypeOf(this, qe.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Pt.prototype.create);
|
|
3892
3892
|
}
|
|
3893
3893
|
}
|
|
3894
|
-
class
|
|
3894
|
+
class Pt {
|
|
3895
3895
|
constructor(e, n, r) {
|
|
3896
3896
|
this.service = e, this.serviceName = n, this.errors = r;
|
|
3897
3897
|
}
|
|
@@ -3913,7 +3913,7 @@ function cc(t) {
|
|
|
3913
3913
|
return !1;
|
|
3914
3914
|
return !0;
|
|
3915
3915
|
}
|
|
3916
|
-
function
|
|
3916
|
+
function Wt(t, e) {
|
|
3917
3917
|
if (t === e)
|
|
3918
3918
|
return !0;
|
|
3919
3919
|
const n = Object.keys(t), r = Object.keys(e);
|
|
@@ -3922,7 +3922,7 @@ function Ut(t, e) {
|
|
|
3922
3922
|
return !1;
|
|
3923
3923
|
const i = t[s], a = e[s];
|
|
3924
3924
|
if (ur(i) && ur(a)) {
|
|
3925
|
-
if (!
|
|
3925
|
+
if (!Wt(i, a))
|
|
3926
3926
|
return !1;
|
|
3927
3927
|
} else if (i !== a)
|
|
3928
3928
|
return !1;
|
|
@@ -3951,7 +3951,7 @@ function ur(t) {
|
|
|
3951
3951
|
* See the License for the specific language governing permissions and
|
|
3952
3952
|
* limitations under the License.
|
|
3953
3953
|
*/
|
|
3954
|
-
function
|
|
3954
|
+
function Ot(t) {
|
|
3955
3955
|
const e = [];
|
|
3956
3956
|
for (const [n, r] of Object.entries(t))
|
|
3957
3957
|
Array.isArray(r) ? r.forEach((s) => {
|
|
@@ -4444,9 +4444,9 @@ class Ns {
|
|
|
4444
4444
|
this._userLogHandler && this._userLogHandler(this, F.ERROR, ...e), this._logHandler(this, F.ERROR, ...e);
|
|
4445
4445
|
}
|
|
4446
4446
|
}
|
|
4447
|
-
const
|
|
4447
|
+
const vc = (t, e) => e.some((n) => t instanceof n);
|
|
4448
4448
|
let lr, Ar;
|
|
4449
|
-
function
|
|
4449
|
+
function wc() {
|
|
4450
4450
|
return lr || (lr = [
|
|
4451
4451
|
IDBDatabase,
|
|
4452
4452
|
IDBObjectStore,
|
|
@@ -4527,7 +4527,7 @@ function Mc(t) {
|
|
|
4527
4527
|
};
|
|
4528
4528
|
}
|
|
4529
4529
|
function Ic(t) {
|
|
4530
|
-
return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t),
|
|
4530
|
+
return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t), vc(t, wc()) ? new Proxy(t, Mn) : t);
|
|
4531
4531
|
}
|
|
4532
4532
|
function Fe(t) {
|
|
4533
4533
|
if (t instanceof IDBRequest)
|
|
@@ -4632,7 +4632,7 @@ const In = "@firebase/app", hr = "0.10.13";
|
|
|
4632
4632
|
* See the License for the specific language governing permissions and
|
|
4633
4633
|
* limitations under the License.
|
|
4634
4634
|
*/
|
|
4635
|
-
const
|
|
4635
|
+
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";
|
|
4636
4636
|
/**
|
|
4637
4637
|
* @license
|
|
4638
4638
|
* Copyright 2019 Google LLC
|
|
@@ -4695,20 +4695,20 @@ const Pn = "[DEFAULT]", au = {
|
|
|
4695
4695
|
* See the License for the specific language governing permissions and
|
|
4696
4696
|
* limitations under the License.
|
|
4697
4697
|
*/
|
|
4698
|
-
const
|
|
4698
|
+
const zt = /* @__PURE__ */ new Map(), ou = /* @__PURE__ */ new Map(), On = /* @__PURE__ */ new Map();
|
|
4699
4699
|
function mr(t, e) {
|
|
4700
4700
|
try {
|
|
4701
4701
|
t.container.addComponent(e);
|
|
4702
4702
|
} catch (n) {
|
|
4703
|
-
|
|
4703
|
+
we.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`, n);
|
|
4704
4704
|
}
|
|
4705
4705
|
}
|
|
4706
|
-
function
|
|
4706
|
+
function vt(t) {
|
|
4707
4707
|
const e = t.name;
|
|
4708
4708
|
if (On.has(e))
|
|
4709
|
-
return
|
|
4709
|
+
return we.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
4710
4710
|
On.set(e, t);
|
|
4711
|
-
for (const n of
|
|
4711
|
+
for (const n of zt.values())
|
|
4712
4712
|
mr(n, t);
|
|
4713
4713
|
for (const n of ou.values())
|
|
4714
4714
|
mr(n, t);
|
|
@@ -4752,7 +4752,7 @@ const cu = {
|
|
|
4752
4752
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
|
4753
4753
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
|
4754
4754
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
|
4755
|
-
}, ke = new
|
|
4755
|
+
}, ke = new Pt("app", "Firebase", cu);
|
|
4756
4756
|
/**
|
|
4757
4757
|
* @license
|
|
4758
4758
|
* Copyright 2019 Google LLC
|
|
@@ -4827,7 +4827,7 @@ class uu {
|
|
|
4827
4827
|
* See the License for the specific language governing permissions and
|
|
4828
4828
|
* limitations under the License.
|
|
4829
4829
|
*/
|
|
4830
|
-
const
|
|
4830
|
+
const Tt = iu;
|
|
4831
4831
|
function Ss(t, e = {}) {
|
|
4832
4832
|
let n = t;
|
|
4833
4833
|
typeof e != "object" && (e = { name: e });
|
|
@@ -4841,9 +4841,9 @@ function Ss(t, e = {}) {
|
|
|
4841
4841
|
"no-options"
|
|
4842
4842
|
/* AppError.NO_OPTIONS */
|
|
4843
4843
|
);
|
|
4844
|
-
const i =
|
|
4844
|
+
const i = zt.get(s);
|
|
4845
4845
|
if (i) {
|
|
4846
|
-
if (
|
|
4846
|
+
if (Wt(n, i.options) && Wt(r, i.config))
|
|
4847
4847
|
return i;
|
|
4848
4848
|
throw ke.create("duplicate-app", { appName: s });
|
|
4849
4849
|
}
|
|
@@ -4851,10 +4851,10 @@ function Ss(t, e = {}) {
|
|
|
4851
4851
|
for (const l of On.values())
|
|
4852
4852
|
a.addComponent(l);
|
|
4853
4853
|
const c = new uu(n, r, a);
|
|
4854
|
-
return
|
|
4854
|
+
return zt.set(s, c), c;
|
|
4855
4855
|
}
|
|
4856
4856
|
function lu(t = Pn) {
|
|
4857
|
-
const e =
|
|
4857
|
+
const e = zt.get(t);
|
|
4858
4858
|
if (!e && t === Pn && Rs())
|
|
4859
4859
|
return Ss();
|
|
4860
4860
|
if (!e)
|
|
@@ -4870,10 +4870,10 @@ function $e(t, e, n) {
|
|
|
4870
4870
|
const c = [
|
|
4871
4871
|
`Unable to register library "${s}" with version "${e}":`
|
|
4872
4872
|
];
|
|
4873
|
-
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 "/")`),
|
|
4873
|
+
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(" "));
|
|
4874
4874
|
return;
|
|
4875
4875
|
}
|
|
4876
|
-
|
|
4876
|
+
vt(new dt(
|
|
4877
4877
|
`${s}-version`,
|
|
4878
4878
|
() => ({ library: s, version: e }),
|
|
4879
4879
|
"VERSION"
|
|
@@ -4922,12 +4922,12 @@ async function hu(t) {
|
|
|
4922
4922
|
return await n.done, r;
|
|
4923
4923
|
} catch (e) {
|
|
4924
4924
|
if (e instanceof qe)
|
|
4925
|
-
|
|
4925
|
+
we.warn(e.message);
|
|
4926
4926
|
else {
|
|
4927
4927
|
const n = ke.create("idb-get", {
|
|
4928
4928
|
originalErrorMessage: e == null ? void 0 : e.message
|
|
4929
4929
|
});
|
|
4930
|
-
|
|
4930
|
+
we.warn(n.message);
|
|
4931
4931
|
}
|
|
4932
4932
|
}
|
|
4933
4933
|
}
|
|
@@ -4937,12 +4937,12 @@ async function fr(t, e) {
|
|
|
4937
4937
|
await r.objectStore(wt).put(e, Ws(t)), await r.done;
|
|
4938
4938
|
} catch (n) {
|
|
4939
4939
|
if (n instanceof qe)
|
|
4940
|
-
|
|
4940
|
+
we.warn(n.message);
|
|
4941
4941
|
else {
|
|
4942
4942
|
const r = ke.create("idb-set", {
|
|
4943
4943
|
originalErrorMessage: n == null ? void 0 : n.message
|
|
4944
4944
|
});
|
|
4945
|
-
|
|
4945
|
+
we.warn(r.message);
|
|
4946
4946
|
}
|
|
4947
4947
|
}
|
|
4948
4948
|
}
|
|
@@ -4988,7 +4988,7 @@ class gu {
|
|
|
4988
4988
|
return Date.now() - c <= fu;
|
|
4989
4989
|
}), this._storage.overwrite(this._heartbeatsCache));
|
|
4990
4990
|
} catch (r) {
|
|
4991
|
-
|
|
4991
|
+
we.warn(r);
|
|
4992
4992
|
}
|
|
4993
4993
|
}
|
|
4994
4994
|
/**
|
|
@@ -5006,7 +5006,7 @@ class gu {
|
|
|
5006
5006
|
const n = gr(), { heartbeatsToSend: r, unsentEntries: s } = pu(this._heartbeatsCache.heartbeats), i = Fs(JSON.stringify({ version: 2, heartbeats: r }));
|
|
5007
5007
|
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;
|
|
5008
5008
|
} catch (n) {
|
|
5009
|
-
return
|
|
5009
|
+
return we.warn(n), "";
|
|
5010
5010
|
}
|
|
5011
5011
|
}
|
|
5012
5012
|
}
|
|
@@ -5105,12 +5105,12 @@ function pr(t) {
|
|
|
5105
5105
|
* limitations under the License.
|
|
5106
5106
|
*/
|
|
5107
5107
|
function bu(t) {
|
|
5108
|
-
|
|
5108
|
+
vt(new dt(
|
|
5109
5109
|
"platform-logger",
|
|
5110
5110
|
(e) => new Gc(e),
|
|
5111
5111
|
"PRIVATE"
|
|
5112
5112
|
/* ComponentType.PRIVATE */
|
|
5113
|
-
)),
|
|
5113
|
+
)), vt(new dt(
|
|
5114
5114
|
"heartbeat",
|
|
5115
5115
|
(e) => new gu(e),
|
|
5116
5116
|
"PRIVATE"
|
|
@@ -5118,7 +5118,7 @@ function bu(t) {
|
|
|
5118
5118
|
)), $e(In, hr, t), $e(In, hr, "esm2017"), $e("fire-js", "");
|
|
5119
5119
|
}
|
|
5120
5120
|
bu("");
|
|
5121
|
-
var
|
|
5121
|
+
var vu = "firebase", wu = "10.14.1";
|
|
5122
5122
|
/**
|
|
5123
5123
|
* @license
|
|
5124
5124
|
* Copyright 2020 Google LLC
|
|
@@ -5135,7 +5135,7 @@ var wu = "firebase", vu = "10.14.1";
|
|
|
5135
5135
|
* See the License for the specific language governing permissions and
|
|
5136
5136
|
* limitations under the License.
|
|
5137
5137
|
*/
|
|
5138
|
-
$e(
|
|
5138
|
+
$e(vu, wu, "app");
|
|
5139
5139
|
var yr = function() {
|
|
5140
5140
|
return yr = Object.assign || function(e) {
|
|
5141
5141
|
for (var n, r = 1, s = arguments.length; r < s; r++) {
|
|
@@ -5158,7 +5158,7 @@ function zs() {
|
|
|
5158
5158
|
"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."
|
|
5159
5159
|
};
|
|
5160
5160
|
}
|
|
5161
|
-
const Bu = zs, Zs = new
|
|
5161
|
+
const Bu = zs, Zs = new Pt("auth", "Firebase", zs());
|
|
5162
5162
|
/**
|
|
5163
5163
|
* @license
|
|
5164
5164
|
* Copyright 2020 Google LLC
|
|
@@ -5175,12 +5175,12 @@ const Bu = zs, Zs = new It("auth", "Firebase", zs());
|
|
|
5175
5175
|
* See the License for the specific language governing permissions and
|
|
5176
5176
|
* limitations under the License.
|
|
5177
5177
|
*/
|
|
5178
|
-
const
|
|
5178
|
+
const Zt = new Ns("@firebase/auth");
|
|
5179
5179
|
function Du(t, ...e) {
|
|
5180
|
-
|
|
5180
|
+
Zt.logLevel <= F.WARN && Zt.warn(`Auth (${Tt}): ${t}`, ...e);
|
|
5181
5181
|
}
|
|
5182
|
-
function
|
|
5183
|
-
|
|
5182
|
+
function Nt(t, ...e) {
|
|
5183
|
+
Zt.logLevel <= F.ERROR && Zt.error(`Auth (${Tt}): ${t}`, ...e);
|
|
5184
5184
|
}
|
|
5185
5185
|
/**
|
|
5186
5186
|
* @license
|
|
@@ -5206,7 +5206,7 @@ function Ae(t, ...e) {
|
|
|
5206
5206
|
}
|
|
5207
5207
|
function Ls(t, e, n) {
|
|
5208
5208
|
const r = Object.assign(Object.assign({}, Bu()), { [e]: n });
|
|
5209
|
-
return new
|
|
5209
|
+
return new Pt("auth", "Firebase", r).create(e, {
|
|
5210
5210
|
appName: t.name
|
|
5211
5211
|
});
|
|
5212
5212
|
}
|
|
@@ -5226,7 +5226,7 @@ function M(t, e, ...n) {
|
|
|
5226
5226
|
}
|
|
5227
5227
|
function ye(t) {
|
|
5228
5228
|
const e = "INTERNAL ASSERTION FAILED: " + t;
|
|
5229
|
-
throw
|
|
5229
|
+
throw Nt(e), new Error(e);
|
|
5230
5230
|
}
|
|
5231
5231
|
function De(t, e) {
|
|
5232
5232
|
t || ye(e);
|
|
@@ -5310,7 +5310,7 @@ function Mu() {
|
|
|
5310
5310
|
* See the License for the specific language governing permissions and
|
|
5311
5311
|
* limitations under the License.
|
|
5312
5312
|
*/
|
|
5313
|
-
class
|
|
5313
|
+
class Gt {
|
|
5314
5314
|
constructor(e, n) {
|
|
5315
5315
|
this.shortDelay = e, this.longDelay = n, De(n > e, "Short delay should be less than long delay!"), this.isMobile = _o() || tc();
|
|
5316
5316
|
}
|
|
@@ -5500,7 +5500,7 @@ const Iu = {
|
|
|
5500
5500
|
* See the License for the specific language governing permissions and
|
|
5501
5501
|
* limitations under the License.
|
|
5502
5502
|
*/
|
|
5503
|
-
const Pu = new
|
|
5503
|
+
const Pu = new Gt(3e4, 6e4);
|
|
5504
5504
|
function sn(t, e) {
|
|
5505
5505
|
return t.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: t.tenantId }) : e;
|
|
5506
5506
|
}
|
|
@@ -5510,7 +5510,7 @@ async function mt(t, e, n, r, s = {}) {
|
|
|
5510
5510
|
r && (e === "GET" ? a = r : i = {
|
|
5511
5511
|
body: JSON.stringify(r)
|
|
5512
5512
|
});
|
|
5513
|
-
const c =
|
|
5513
|
+
const c = Ot(Object.assign({ key: t.config.apiKey }, a)).slice(1), l = await t._getAdditionalHeaders();
|
|
5514
5514
|
l[
|
|
5515
5515
|
"Content-Type"
|
|
5516
5516
|
/* HttpHeader.CONTENT_TYPE */
|
|
@@ -5536,17 +5536,17 @@ async function Js(t, e, n) {
|
|
|
5536
5536
|
s.clearNetworkTimeout();
|
|
5537
5537
|
const a = await i.json();
|
|
5538
5538
|
if ("needConfirmation" in a)
|
|
5539
|
-
throw
|
|
5539
|
+
throw kt(t, "account-exists-with-different-credential", a);
|
|
5540
5540
|
if (i.ok && !("errorMessage" in a))
|
|
5541
5541
|
return a;
|
|
5542
5542
|
{
|
|
5543
5543
|
const c = i.ok ? a.errorMessage : a.error.message, [l, A] = c.split(" : ");
|
|
5544
5544
|
if (l === "FEDERATED_USER_ID_ALREADY_LINKED")
|
|
5545
|
-
throw
|
|
5545
|
+
throw kt(t, "credential-already-in-use", a);
|
|
5546
5546
|
if (l === "EMAIL_EXISTS")
|
|
5547
|
-
throw
|
|
5547
|
+
throw kt(t, "email-already-in-use", a);
|
|
5548
5548
|
if (l === "USER_DISABLED")
|
|
5549
|
-
throw
|
|
5549
|
+
throw kt(t, "user-disabled", a);
|
|
5550
5550
|
const f = r[l] || l.toLowerCase().replace(/[_\s]+/g, "-");
|
|
5551
5551
|
if (A)
|
|
5552
5552
|
throw Ls(t, f, A);
|
|
@@ -5582,7 +5582,7 @@ class Ou {
|
|
|
5582
5582
|
clearTimeout(this.timer);
|
|
5583
5583
|
}
|
|
5584
5584
|
}
|
|
5585
|
-
function
|
|
5585
|
+
function kt(t, e, n) {
|
|
5586
5586
|
const r = {
|
|
5587
5587
|
appName: t.name
|
|
5588
5588
|
};
|
|
@@ -5662,15 +5662,15 @@ function yn(t) {
|
|
|
5662
5662
|
function Ln(t) {
|
|
5663
5663
|
const [e, n, r] = t.split(".");
|
|
5664
5664
|
if (e === void 0 || n === void 0 || r === void 0)
|
|
5665
|
-
return
|
|
5665
|
+
return Nt("JWT malformed, contained fewer than 3 sections"), null;
|
|
5666
5666
|
try {
|
|
5667
5667
|
const s = ks(n);
|
|
5668
|
-
return s ? JSON.parse(s) : (
|
|
5668
|
+
return s ? JSON.parse(s) : (Nt("Failed to decode base64 JWT payload"), null);
|
|
5669
5669
|
} catch (s) {
|
|
5670
|
-
return
|
|
5670
|
+
return Nt("Caught error parsing JWT payload as JSON", s == null ? void 0 : s.toString()), null;
|
|
5671
5671
|
}
|
|
5672
5672
|
}
|
|
5673
|
-
function
|
|
5673
|
+
function vr(t) {
|
|
5674
5674
|
const e = Ln(t);
|
|
5675
5675
|
return M(
|
|
5676
5676
|
e,
|
|
@@ -5702,7 +5702,7 @@ function wr(t) {
|
|
|
5702
5702
|
* See the License for the specific language governing permissions and
|
|
5703
5703
|
* limitations under the License.
|
|
5704
5704
|
*/
|
|
5705
|
-
async function
|
|
5705
|
+
async function Bt(t, e, n = !1) {
|
|
5706
5706
|
if (n)
|
|
5707
5707
|
return e;
|
|
5708
5708
|
try {
|
|
@@ -5825,9 +5825,9 @@ class Gn {
|
|
|
5825
5825
|
* See the License for the specific language governing permissions and
|
|
5826
5826
|
* limitations under the License.
|
|
5827
5827
|
*/
|
|
5828
|
-
async function
|
|
5828
|
+
async function Lt(t) {
|
|
5829
5829
|
var e;
|
|
5830
|
-
const n = t.auth, r = await t.getIdToken(), s = await
|
|
5830
|
+
const n = t.auth, r = await t.getIdToken(), s = await Bt(t, ei(n, { idToken: r }));
|
|
5831
5831
|
M(
|
|
5832
5832
|
s == null ? void 0 : s.users.length,
|
|
5833
5833
|
n,
|
|
@@ -5852,7 +5852,7 @@ async function Zt(t) {
|
|
|
5852
5852
|
}
|
|
5853
5853
|
async function Vu(t) {
|
|
5854
5854
|
const e = ht(t);
|
|
5855
|
-
await
|
|
5855
|
+
await Lt(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
5856
5856
|
}
|
|
5857
5857
|
function xu(t, e) {
|
|
5858
5858
|
return [...t.filter((r) => !e.some((s) => s.providerId === r.providerId)), ...e];
|
|
@@ -5888,7 +5888,7 @@ function ti(t) {
|
|
|
5888
5888
|
*/
|
|
5889
5889
|
async function Fu(t, e) {
|
|
5890
5890
|
const n = await Js(t, {}, async () => {
|
|
5891
|
-
const r =
|
|
5891
|
+
const r = Ot({
|
|
5892
5892
|
grant_type: "refresh_token",
|
|
5893
5893
|
refresh_token: e
|
|
5894
5894
|
}).slice(1), { tokenApiHost: s, apiKey: i } = t.config, a = $s(t, s, "/v1/token", `key=${i}`), c = await t._getAdditionalHeaders();
|
|
@@ -5947,7 +5947,7 @@ class et {
|
|
|
5947
5947
|
"internal-error"
|
|
5948
5948
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5949
5949
|
);
|
|
5950
|
-
const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) :
|
|
5950
|
+
const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : vr(e.idToken);
|
|
5951
5951
|
this.updateTokensAndExpiration(e.idToken, e.refreshToken, n);
|
|
5952
5952
|
}
|
|
5953
5953
|
updateFromIdToken(e) {
|
|
@@ -5956,7 +5956,7 @@ class et {
|
|
|
5956
5956
|
"internal-error"
|
|
5957
5957
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5958
5958
|
);
|
|
5959
|
-
const n =
|
|
5959
|
+
const n = vr(e);
|
|
5960
5960
|
this.updateTokensAndExpiration(e, null, n);
|
|
5961
5961
|
}
|
|
5962
5962
|
async getToken(e, n = !1) {
|
|
@@ -6029,7 +6029,7 @@ class be {
|
|
|
6029
6029
|
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);
|
|
6030
6030
|
}
|
|
6031
6031
|
async getIdToken(e) {
|
|
6032
|
-
const n = await
|
|
6032
|
+
const n = await Bt(this, this.stsTokenManager.getToken(this.auth, e));
|
|
6033
6033
|
return M(
|
|
6034
6034
|
n,
|
|
6035
6035
|
this.auth,
|
|
@@ -6074,13 +6074,13 @@ class be {
|
|
|
6074
6074
|
}
|
|
6075
6075
|
async _updateTokensIfNecessary(e, n = !1) {
|
|
6076
6076
|
let r = !1;
|
|
6077
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await
|
|
6077
|
+
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);
|
|
6078
6078
|
}
|
|
6079
6079
|
async delete() {
|
|
6080
6080
|
if (pe(this.auth.app))
|
|
6081
6081
|
return Promise.reject(Re(this.auth));
|
|
6082
6082
|
const e = await this.getIdToken();
|
|
6083
|
-
return await
|
|
6083
|
+
return await Bt(this, Tu(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
6084
6084
|
}
|
|
6085
6085
|
toJSON() {
|
|
6086
6086
|
return Object.assign(Object.assign({
|
|
@@ -6108,7 +6108,7 @@ class be {
|
|
|
6108
6108
|
}
|
|
6109
6109
|
static _fromJSON(e, n) {
|
|
6110
6110
|
var r, s, i, a, c, l, A, f;
|
|
6111
|
-
const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0,
|
|
6111
|
+
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, P = (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;
|
|
6112
6112
|
M(
|
|
6113
6113
|
Y && ee,
|
|
6114
6114
|
e,
|
|
@@ -6122,7 +6122,7 @@ class be {
|
|
|
6122
6122
|
"internal-error"
|
|
6123
6123
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
6124
6124
|
), Ee(p, e.name), Ee(B, e.name), M(
|
|
6125
|
-
typeof
|
|
6125
|
+
typeof v == "boolean",
|
|
6126
6126
|
e,
|
|
6127
6127
|
"internal-error"
|
|
6128
6128
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -6131,16 +6131,16 @@ class be {
|
|
|
6131
6131
|
e,
|
|
6132
6132
|
"internal-error"
|
|
6133
6133
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
6134
|
-
), Ee(
|
|
6134
|
+
), Ee(w, e.name), Ee(P, e.name), Ee(I, e.name), Ee(V, e.name), Ee(R, e.name), Ee(Q, e.name);
|
|
6135
6135
|
const u = new be({
|
|
6136
6136
|
uid: Y,
|
|
6137
6137
|
auth: e,
|
|
6138
6138
|
email: B,
|
|
6139
|
-
emailVerified:
|
|
6139
|
+
emailVerified: v,
|
|
6140
6140
|
displayName: p,
|
|
6141
6141
|
isAnonymous: H,
|
|
6142
6142
|
photoURL: P,
|
|
6143
|
-
phoneNumber:
|
|
6143
|
+
phoneNumber: w,
|
|
6144
6144
|
tenantId: I,
|
|
6145
6145
|
stsTokenManager: q,
|
|
6146
6146
|
createdAt: R,
|
|
@@ -6162,7 +6162,7 @@ class be {
|
|
|
6162
6162
|
stsTokenManager: s,
|
|
6163
6163
|
isAnonymous: r
|
|
6164
6164
|
});
|
|
6165
|
-
return await
|
|
6165
|
+
return await Lt(i), i;
|
|
6166
6166
|
}
|
|
6167
6167
|
/**
|
|
6168
6168
|
* Initialize a User from an idToken server response
|
|
@@ -6214,11 +6214,11 @@ class be {
|
|
|
6214
6214
|
* See the License for the specific language governing permissions and
|
|
6215
6215
|
* limitations under the License.
|
|
6216
6216
|
*/
|
|
6217
|
-
const
|
|
6218
|
-
function
|
|
6217
|
+
const wr = /* @__PURE__ */ new Map();
|
|
6218
|
+
function ve(t) {
|
|
6219
6219
|
De(t instanceof Function, "Expected a class definition");
|
|
6220
|
-
let e =
|
|
6221
|
-
return e ? (De(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(),
|
|
6220
|
+
let e = wr.get(t);
|
|
6221
|
+
return e ? (De(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(), wr.set(t, e), e);
|
|
6222
6222
|
}
|
|
6223
6223
|
/**
|
|
6224
6224
|
* @license
|
|
@@ -6276,14 +6276,14 @@ const Br = ni;
|
|
|
6276
6276
|
* See the License for the specific language governing permissions and
|
|
6277
6277
|
* limitations under the License.
|
|
6278
6278
|
*/
|
|
6279
|
-
function
|
|
6279
|
+
function Ht(t, e, n) {
|
|
6280
6280
|
return `firebase:${t}:${e}:${n}`;
|
|
6281
6281
|
}
|
|
6282
6282
|
class tt {
|
|
6283
6283
|
constructor(e, n, r) {
|
|
6284
6284
|
this.persistence = e, this.auth = n, this.userKey = r;
|
|
6285
6285
|
const { config: s, name: i } = this.auth;
|
|
6286
|
-
this.fullUserKey =
|
|
6286
|
+
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);
|
|
6287
6287
|
}
|
|
6288
6288
|
setCurrentUser(e) {
|
|
6289
6289
|
return this.persistence._set(this.fullUserKey, e.toJSON());
|
|
@@ -6310,13 +6310,13 @@ class tt {
|
|
|
6310
6310
|
}
|
|
6311
6311
|
static async create(e, n, r = "authUser") {
|
|
6312
6312
|
if (!n.length)
|
|
6313
|
-
return new tt(
|
|
6313
|
+
return new tt(ve(Br), e, r);
|
|
6314
6314
|
const s = (await Promise.all(n.map(async (A) => {
|
|
6315
6315
|
if (await A._isAvailable())
|
|
6316
6316
|
return A;
|
|
6317
6317
|
}))).filter((A) => A);
|
|
6318
|
-
let i = s[0] ||
|
|
6319
|
-
const a =
|
|
6318
|
+
let i = s[0] || ve(Br);
|
|
6319
|
+
const a = Ht(r, e.config.apiKey, e.name);
|
|
6320
6320
|
let c = null;
|
|
6321
6321
|
for (const A of n)
|
|
6322
6322
|
try {
|
|
@@ -6449,7 +6449,7 @@ function Ai(t, e = []) {
|
|
|
6449
6449
|
n = t;
|
|
6450
6450
|
}
|
|
6451
6451
|
const r = e.length ? e.join(",") : "FirebaseCore-web";
|
|
6452
|
-
return `${n}/JsCore/${
|
|
6452
|
+
return `${n}/JsCore/${Tt}/${r}`;
|
|
6453
6453
|
}
|
|
6454
6454
|
/**
|
|
6455
6455
|
* @license
|
|
@@ -6634,7 +6634,7 @@ class Su {
|
|
|
6634
6634
|
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;
|
|
6635
6635
|
}
|
|
6636
6636
|
_initializeWithPersistence(e, n) {
|
|
6637
|
-
return n && (this._popupRedirectResolver =
|
|
6637
|
+
return n && (this._popupRedirectResolver = ve(n)), this._initializationPromise = this.queue(async () => {
|
|
6638
6638
|
var r, s;
|
|
6639
6639
|
if (!this._deleted && (this.persistenceManager = await tt.create(this, e), !this._deleted)) {
|
|
6640
6640
|
if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
|
|
@@ -6717,7 +6717,7 @@ class Su {
|
|
|
6717
6717
|
}
|
|
6718
6718
|
async reloadAndSetCurrentUserOrClear(e) {
|
|
6719
6719
|
try {
|
|
6720
|
-
await
|
|
6720
|
+
await Lt(e);
|
|
6721
6721
|
} catch (n) {
|
|
6722
6722
|
if ((n == null ? void 0 : n.code) !== "auth/network-request-failed")
|
|
6723
6723
|
return this.directlySetCurrentUser(null);
|
|
@@ -6761,7 +6761,7 @@ class Su {
|
|
|
6761
6761
|
}
|
|
6762
6762
|
setPersistence(e) {
|
|
6763
6763
|
return pe(this.app) ? Promise.reject(Re(this)) : this.queue(async () => {
|
|
6764
|
-
await this.assertedPersistence.setPersistence(
|
|
6764
|
+
await this.assertedPersistence.setPersistence(ve(e));
|
|
6765
6765
|
});
|
|
6766
6766
|
}
|
|
6767
6767
|
_getRecaptchaConfig() {
|
|
@@ -6783,7 +6783,7 @@ class Su {
|
|
|
6783
6783
|
return this.assertedPersistence.persistence.type;
|
|
6784
6784
|
}
|
|
6785
6785
|
_updateErrorMap(e) {
|
|
6786
|
-
this._errorFactory = new
|
|
6786
|
+
this._errorFactory = new Pt("auth", "Firebase", e());
|
|
6787
6787
|
}
|
|
6788
6788
|
onAuthStateChanged(e, n, r) {
|
|
6789
6789
|
return this.registerStateListener(this.authStateSubscription, e, n, r);
|
|
@@ -6834,7 +6834,7 @@ class Su {
|
|
|
6834
6834
|
}
|
|
6835
6835
|
async getOrInitRedirectPersistenceManager(e) {
|
|
6836
6836
|
if (!this.redirectPersistenceManager) {
|
|
6837
|
-
const n = e &&
|
|
6837
|
+
const n = e && ve(e) || this._popupRedirectResolver;
|
|
6838
6838
|
M(
|
|
6839
6839
|
n,
|
|
6840
6840
|
this,
|
|
@@ -6842,7 +6842,7 @@ class Su {
|
|
|
6842
6842
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
6843
6843
|
), this.redirectPersistenceManager = await tt.create(
|
|
6844
6844
|
this,
|
|
6845
|
-
[
|
|
6845
|
+
[ve(n._redirectPersistence)],
|
|
6846
6846
|
"redirectUser"
|
|
6847
6847
|
/* KeyName.REDIRECT_USER */
|
|
6848
6848
|
), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
|
|
@@ -7034,7 +7034,7 @@ function Lu(t, e) {
|
|
|
7034
7034
|
const n = Xs(t, "auth");
|
|
7035
7035
|
if (n.isInitialized()) {
|
|
7036
7036
|
const s = n.getImmediate(), i = n.getOptions();
|
|
7037
|
-
if (
|
|
7037
|
+
if (Wt(i, e ?? {}))
|
|
7038
7038
|
return s;
|
|
7039
7039
|
Be(
|
|
7040
7040
|
s,
|
|
@@ -7045,7 +7045,7 @@ function Lu(t, e) {
|
|
|
7045
7045
|
return n.initialize({ options: e });
|
|
7046
7046
|
}
|
|
7047
7047
|
function Ku(t, e) {
|
|
7048
|
-
const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(
|
|
7048
|
+
const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(ve);
|
|
7049
7049
|
e != null && e.errorMap && t._updateErrorMap(e.errorMap), t._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
|
7050
7050
|
}
|
|
7051
7051
|
function Ju(t, e, n) {
|
|
@@ -7241,7 +7241,7 @@ class Ze extends hi {
|
|
|
7241
7241
|
e.pendingToken = this.pendingToken;
|
|
7242
7242
|
else {
|
|
7243
7243
|
const n = {};
|
|
7244
|
-
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 =
|
|
7244
|
+
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);
|
|
7245
7245
|
}
|
|
7246
7246
|
return e;
|
|
7247
7247
|
}
|
|
@@ -7315,7 +7315,7 @@ class mi {
|
|
|
7315
7315
|
* See the License for the specific language governing permissions and
|
|
7316
7316
|
* limitations under the License.
|
|
7317
7317
|
*/
|
|
7318
|
-
class
|
|
7318
|
+
class jt extends mi {
|
|
7319
7319
|
constructor() {
|
|
7320
7320
|
super(...arguments), this.scopes = [];
|
|
7321
7321
|
}
|
|
@@ -7350,7 +7350,7 @@ class Gt extends mi {
|
|
|
7350
7350
|
* See the License for the specific language governing permissions and
|
|
7351
7351
|
* limitations under the License.
|
|
7352
7352
|
*/
|
|
7353
|
-
class Ie extends
|
|
7353
|
+
class Ie extends jt {
|
|
7354
7354
|
constructor() {
|
|
7355
7355
|
super(
|
|
7356
7356
|
"facebook.com"
|
|
@@ -7421,7 +7421,7 @@ Ie.PROVIDER_ID = "facebook.com";
|
|
|
7421
7421
|
* See the License for the specific language governing permissions and
|
|
7422
7422
|
* limitations under the License.
|
|
7423
7423
|
*/
|
|
7424
|
-
class Pe extends
|
|
7424
|
+
class Pe extends jt {
|
|
7425
7425
|
constructor() {
|
|
7426
7426
|
super(
|
|
7427
7427
|
"google.com"
|
|
@@ -7497,7 +7497,7 @@ Pe.PROVIDER_ID = "google.com";
|
|
|
7497
7497
|
* See the License for the specific language governing permissions and
|
|
7498
7498
|
* limitations under the License.
|
|
7499
7499
|
*/
|
|
7500
|
-
class Oe extends
|
|
7500
|
+
class Oe extends jt {
|
|
7501
7501
|
constructor() {
|
|
7502
7502
|
super(
|
|
7503
7503
|
"github.com"
|
|
@@ -7561,7 +7561,7 @@ Oe.PROVIDER_ID = "github.com";
|
|
|
7561
7561
|
* See the License for the specific language governing permissions and
|
|
7562
7562
|
* limitations under the License.
|
|
7563
7563
|
*/
|
|
7564
|
-
class Te extends
|
|
7564
|
+
class Te extends jt {
|
|
7565
7565
|
constructor() {
|
|
7566
7566
|
super(
|
|
7567
7567
|
"twitter.com"
|
|
@@ -7677,10 +7677,10 @@ function Mr(t) {
|
|
|
7677
7677
|
* See the License for the specific language governing permissions and
|
|
7678
7678
|
* limitations under the License.
|
|
7679
7679
|
*/
|
|
7680
|
-
class
|
|
7680
|
+
class Kt extends qe {
|
|
7681
7681
|
constructor(e, n, r, s) {
|
|
7682
7682
|
var i;
|
|
7683
|
-
super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this,
|
|
7683
|
+
super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this, Kt.prototype), this.customData = {
|
|
7684
7684
|
appName: e.name,
|
|
7685
7685
|
tenantId: (i = e.tenantId) !== null && i !== void 0 ? i : void 0,
|
|
7686
7686
|
_serverResponse: n.customData._serverResponse,
|
|
@@ -7688,16 +7688,16 @@ class Lt extends qe {
|
|
|
7688
7688
|
};
|
|
7689
7689
|
}
|
|
7690
7690
|
static _fromErrorAndOperation(e, n, r, s) {
|
|
7691
|
-
return new
|
|
7691
|
+
return new Kt(e, n, r, s);
|
|
7692
7692
|
}
|
|
7693
7693
|
}
|
|
7694
7694
|
function fi(t, e, n, r) {
|
|
7695
7695
|
return (e === "reauthenticate" ? n._getReauthenticationResolver(t) : n._getIdTokenResponse(t)).catch((i) => {
|
|
7696
|
-
throw i.code === "auth/multi-factor-auth-required" ?
|
|
7696
|
+
throw i.code === "auth/multi-factor-auth-required" ? Kt._fromErrorAndOperation(t, i, e, r) : i;
|
|
7697
7697
|
});
|
|
7698
7698
|
}
|
|
7699
7699
|
async function tl(t, e, n = !1) {
|
|
7700
|
-
const r = await
|
|
7700
|
+
const r = await Bt(t, e._linkToIdToken(t.auth, await t.getIdToken()), n);
|
|
7701
7701
|
return Le._forOperation(t, "link", r);
|
|
7702
7702
|
}
|
|
7703
7703
|
/**
|
|
@@ -7722,7 +7722,7 @@ async function nl(t, e, n = !1) {
|
|
|
7722
7722
|
return Promise.reject(Re(r));
|
|
7723
7723
|
const s = "reauthenticate";
|
|
7724
7724
|
try {
|
|
7725
|
-
const i = await
|
|
7725
|
+
const i = await Bt(t, fi(r, s, e, t), n);
|
|
7726
7726
|
M(
|
|
7727
7727
|
i.idToken,
|
|
7728
7728
|
r,
|
|
@@ -7823,7 +7823,7 @@ function al(t, e, n, r) {
|
|
|
7823
7823
|
function ol(t, e, n) {
|
|
7824
7824
|
return ht(t).beforeAuthStateChanged(e, n);
|
|
7825
7825
|
}
|
|
7826
|
-
const
|
|
7826
|
+
const Jt = "__sak";
|
|
7827
7827
|
/**
|
|
7828
7828
|
* @license
|
|
7829
7829
|
* Copyright 2019 Google LLC
|
|
@@ -7846,7 +7846,7 @@ class gi {
|
|
|
7846
7846
|
}
|
|
7847
7847
|
_isAvailable() {
|
|
7848
7848
|
try {
|
|
7849
|
-
return this.storage ? (this.storage.setItem(
|
|
7849
|
+
return this.storage ? (this.storage.setItem(Jt, "1"), this.storage.removeItem(Jt), Promise.resolve(!0)) : Promise.resolve(!1);
|
|
7850
7850
|
} catch {
|
|
7851
7851
|
return Promise.resolve(!1);
|
|
7852
7852
|
}
|
|
@@ -8266,7 +8266,7 @@ function hl(t) {
|
|
|
8266
8266
|
* See the License for the specific language governing permissions and
|
|
8267
8267
|
* limitations under the License.
|
|
8268
8268
|
*/
|
|
8269
|
-
function
|
|
8269
|
+
function vi() {
|
|
8270
8270
|
return typeof de().WorkerGlobalScope < "u" && typeof de().importScripts == "function";
|
|
8271
8271
|
}
|
|
8272
8272
|
async function ml() {
|
|
@@ -8283,7 +8283,7 @@ function fl() {
|
|
|
8283
8283
|
return ((t = navigator == null ? void 0 : navigator.serviceWorker) === null || t === void 0 ? void 0 : t.controller) || null;
|
|
8284
8284
|
}
|
|
8285
8285
|
function gl() {
|
|
8286
|
-
return
|
|
8286
|
+
return vi() ? self : null;
|
|
8287
8287
|
}
|
|
8288
8288
|
/**
|
|
8289
8289
|
* @license
|
|
@@ -8301,8 +8301,8 @@ function gl() {
|
|
|
8301
8301
|
* See the License for the specific language governing permissions and
|
|
8302
8302
|
* limitations under the License.
|
|
8303
8303
|
*/
|
|
8304
|
-
const
|
|
8305
|
-
class
|
|
8304
|
+
const wi = "firebaseLocalStorageDb", pl = 1, _t = "firebaseLocalStorage", Bi = "fbase_key";
|
|
8305
|
+
class Yt {
|
|
8306
8306
|
constructor(e) {
|
|
8307
8307
|
this.request = e;
|
|
8308
8308
|
}
|
|
@@ -8317,27 +8317,27 @@ class jt {
|
|
|
8317
8317
|
}
|
|
8318
8318
|
}
|
|
8319
8319
|
function cn(t, e) {
|
|
8320
|
-
return t.transaction([
|
|
8320
|
+
return t.transaction([_t], e ? "readwrite" : "readonly").objectStore(_t);
|
|
8321
8321
|
}
|
|
8322
8322
|
function yl() {
|
|
8323
|
-
const t = indexedDB.deleteDatabase(
|
|
8324
|
-
return new
|
|
8323
|
+
const t = indexedDB.deleteDatabase(wi);
|
|
8324
|
+
return new Yt(t).toPromise();
|
|
8325
8325
|
}
|
|
8326
8326
|
function jn() {
|
|
8327
|
-
const t = indexedDB.open(
|
|
8327
|
+
const t = indexedDB.open(wi, pl);
|
|
8328
8328
|
return new Promise((e, n) => {
|
|
8329
8329
|
t.addEventListener("error", () => {
|
|
8330
8330
|
n(t.error);
|
|
8331
8331
|
}), t.addEventListener("upgradeneeded", () => {
|
|
8332
8332
|
const r = t.result;
|
|
8333
8333
|
try {
|
|
8334
|
-
r.createObjectStore(
|
|
8334
|
+
r.createObjectStore(_t, { keyPath: Bi });
|
|
8335
8335
|
} catch (s) {
|
|
8336
8336
|
n(s);
|
|
8337
8337
|
}
|
|
8338
8338
|
}), t.addEventListener("success", async () => {
|
|
8339
8339
|
const r = t.result;
|
|
8340
|
-
r.objectStoreNames.contains(
|
|
8340
|
+
r.objectStoreNames.contains(_t) ? e(r) : (r.close(), await yl(), e(await jn()));
|
|
8341
8341
|
});
|
|
8342
8342
|
});
|
|
8343
8343
|
}
|
|
@@ -8346,17 +8346,17 @@ async function Ir(t, e, n) {
|
|
|
8346
8346
|
[Bi]: e,
|
|
8347
8347
|
value: n
|
|
8348
8348
|
});
|
|
8349
|
-
return new
|
|
8349
|
+
return new Yt(r).toPromise();
|
|
8350
8350
|
}
|
|
8351
8351
|
async function bl(t, e) {
|
|
8352
|
-
const n = cn(t, !1).get(e), r = await new
|
|
8352
|
+
const n = cn(t, !1).get(e), r = await new Yt(n).toPromise();
|
|
8353
8353
|
return r === void 0 ? null : r.value;
|
|
8354
8354
|
}
|
|
8355
8355
|
function Pr(t, e) {
|
|
8356
8356
|
const n = cn(t, !0).delete(e);
|
|
8357
|
-
return new
|
|
8357
|
+
return new Yt(n).toPromise();
|
|
8358
8358
|
}
|
|
8359
|
-
const
|
|
8359
|
+
const vl = 800, wl = 3;
|
|
8360
8360
|
class Di {
|
|
8361
8361
|
constructor() {
|
|
8362
8362
|
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(() => {
|
|
@@ -8373,7 +8373,7 @@ class Di {
|
|
|
8373
8373
|
const r = await this._openDb();
|
|
8374
8374
|
return await e(r);
|
|
8375
8375
|
} catch (r) {
|
|
8376
|
-
if (n++ >
|
|
8376
|
+
if (n++ > wl)
|
|
8377
8377
|
throw r;
|
|
8378
8378
|
this.db && (this.db.close(), this.db = void 0);
|
|
8379
8379
|
}
|
|
@@ -8383,7 +8383,7 @@ class Di {
|
|
|
8383
8383
|
* postMessage interface to send these events to the worker ourselves.
|
|
8384
8384
|
*/
|
|
8385
8385
|
async initializeServiceWorkerMessaging() {
|
|
8386
|
-
return
|
|
8386
|
+
return vi() ? this.initializeReceiver() : this.initializeSender();
|
|
8387
8387
|
}
|
|
8388
8388
|
/**
|
|
8389
8389
|
* As the worker we should listen to events from the main window.
|
|
@@ -8446,7 +8446,7 @@ class Di {
|
|
|
8446
8446
|
if (!indexedDB)
|
|
8447
8447
|
return !1;
|
|
8448
8448
|
const e = await jn();
|
|
8449
|
-
return await Ir(e,
|
|
8449
|
+
return await Ir(e, Jt, "1"), await Pr(e, Jt), !0;
|
|
8450
8450
|
} catch {
|
|
8451
8451
|
}
|
|
8452
8452
|
return !1;
|
|
@@ -8472,7 +8472,7 @@ class Di {
|
|
|
8472
8472
|
async _poll() {
|
|
8473
8473
|
const e = await this._withRetries((s) => {
|
|
8474
8474
|
const i = cn(s, !1).getAll();
|
|
8475
|
-
return new
|
|
8475
|
+
return new Yt(i).toPromise();
|
|
8476
8476
|
});
|
|
8477
8477
|
if (!e)
|
|
8478
8478
|
return [];
|
|
@@ -8494,7 +8494,7 @@ class Di {
|
|
|
8494
8494
|
s(n);
|
|
8495
8495
|
}
|
|
8496
8496
|
startPolling() {
|
|
8497
|
-
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(),
|
|
8497
|
+
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), vl);
|
|
8498
8498
|
}
|
|
8499
8499
|
stopPolling() {
|
|
8500
8500
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
|
@@ -8508,7 +8508,7 @@ class Di {
|
|
|
8508
8508
|
}
|
|
8509
8509
|
Di.type = "LOCAL";
|
|
8510
8510
|
const Bl = Di;
|
|
8511
|
-
new
|
|
8511
|
+
new Gt(3e4, 6e4);
|
|
8512
8512
|
/**
|
|
8513
8513
|
* @license
|
|
8514
8514
|
* Copyright 2021 Google LLC
|
|
@@ -8526,7 +8526,7 @@ new Tt(3e4, 6e4);
|
|
|
8526
8526
|
* limitations under the License.
|
|
8527
8527
|
*/
|
|
8528
8528
|
function Dl(t, e) {
|
|
8529
|
-
return e ?
|
|
8529
|
+
return e ? ve(e) : (M(
|
|
8530
8530
|
t._popupRedirectResolver,
|
|
8531
8531
|
t,
|
|
8532
8532
|
"argument-error"
|
|
@@ -8699,7 +8699,7 @@ class Ci {
|
|
|
8699
8699
|
* See the License for the specific language governing permissions and
|
|
8700
8700
|
* limitations under the License.
|
|
8701
8701
|
*/
|
|
8702
|
-
const Il = new
|
|
8702
|
+
const Il = new Gt(2e3, 1e4);
|
|
8703
8703
|
class _e extends Ci {
|
|
8704
8704
|
constructor(e, n, r, s, i) {
|
|
8705
8705
|
super(e, n, s, i), this.provider = r, this.authWindow = null, this.pollId = null, _e.currentPopupAction && _e.currentPopupAction.cancel(), _e.currentPopupAction = this;
|
|
@@ -8785,7 +8785,7 @@ _e.currentPopupAction = null;
|
|
|
8785
8785
|
* See the License for the specific language governing permissions and
|
|
8786
8786
|
* limitations under the License.
|
|
8787
8787
|
*/
|
|
8788
|
-
const Pl = "pendingRedirect",
|
|
8788
|
+
const Pl = "pendingRedirect", Qt = /* @__PURE__ */ new Map();
|
|
8789
8789
|
class Ol extends Ci {
|
|
8790
8790
|
constructor(e, n, r = !1) {
|
|
8791
8791
|
super(e, [
|
|
@@ -8801,7 +8801,7 @@ class Ol extends Ci {
|
|
|
8801
8801
|
* just return it.
|
|
8802
8802
|
*/
|
|
8803
8803
|
async execute() {
|
|
8804
|
-
let e =
|
|
8804
|
+
let e = Qt.get(this.auth._key());
|
|
8805
8805
|
if (!e) {
|
|
8806
8806
|
try {
|
|
8807
8807
|
const r = await Tl(this.resolver, this.auth) ? await super.execute() : null;
|
|
@@ -8809,9 +8809,9 @@ class Ol extends Ci {
|
|
|
8809
8809
|
} catch (n) {
|
|
8810
8810
|
e = () => Promise.reject(n);
|
|
8811
8811
|
}
|
|
8812
|
-
|
|
8812
|
+
Qt.set(this.auth._key(), e);
|
|
8813
8813
|
}
|
|
8814
|
-
return this.bypassAuthState ||
|
|
8814
|
+
return this.bypassAuthState || Qt.set(this.auth._key(), () => Promise.resolve(null)), e();
|
|
8815
8815
|
}
|
|
8816
8816
|
async onAuthEvent(e) {
|
|
8817
8817
|
if (e.type === "signInViaRedirect")
|
|
@@ -8840,13 +8840,13 @@ async function Tl(t, e) {
|
|
|
8840
8840
|
return await r._remove(n), s;
|
|
8841
8841
|
}
|
|
8842
8842
|
function Gl(t, e) {
|
|
8843
|
-
|
|
8843
|
+
Qt.set(t._key(), e);
|
|
8844
8844
|
}
|
|
8845
8845
|
function jl(t) {
|
|
8846
|
-
return
|
|
8846
|
+
return ve(t._redirectPersistence);
|
|
8847
8847
|
}
|
|
8848
8848
|
function Yl(t) {
|
|
8849
|
-
return
|
|
8849
|
+
return Ht(Pl, t.config.apiKey, t.name);
|
|
8850
8850
|
}
|
|
8851
8851
|
async function Vl(t, e, n = !1) {
|
|
8852
8852
|
if (pe(t.app))
|
|
@@ -9007,7 +9007,7 @@ function Ql(t) {
|
|
|
9007
9007
|
* See the License for the specific language governing permissions and
|
|
9008
9008
|
* limitations under the License.
|
|
9009
9009
|
*/
|
|
9010
|
-
const Xl = new
|
|
9010
|
+
const Xl = new Gt(3e4, 6e4);
|
|
9011
9011
|
function Tr() {
|
|
9012
9012
|
const t = de().___jsl;
|
|
9013
9013
|
if (t != null && t.H) {
|
|
@@ -9050,12 +9050,12 @@ function Sl(t) {
|
|
|
9050
9050
|
}, Wu(`${zu()}?onload=${c}`).catch((l) => n(l));
|
|
9051
9051
|
}
|
|
9052
9052
|
}).catch((e) => {
|
|
9053
|
-
throw
|
|
9053
|
+
throw Xt = null, e;
|
|
9054
9054
|
});
|
|
9055
9055
|
}
|
|
9056
|
-
let
|
|
9056
|
+
let Xt = null;
|
|
9057
9057
|
function Ul(t) {
|
|
9058
|
-
return
|
|
9058
|
+
return Xt = Xt || Sl(t), Xt;
|
|
9059
9059
|
}
|
|
9060
9060
|
/**
|
|
9061
9061
|
* @license
|
|
@@ -9073,7 +9073,7 @@ function Ul(t) {
|
|
|
9073
9073
|
* See the License for the specific language governing permissions and
|
|
9074
9074
|
* limitations under the License.
|
|
9075
9075
|
*/
|
|
9076
|
-
const Wl = new
|
|
9076
|
+
const Wl = new Gt(5e3, 15e3), zl = "__/auth/iframe", Zl = "emulator/auth/iframe", Ll = {
|
|
9077
9077
|
style: {
|
|
9078
9078
|
position: "absolute",
|
|
9079
9079
|
top: "-100px",
|
|
@@ -9099,11 +9099,11 @@ function Jl(t) {
|
|
|
9099
9099
|
const n = e.emulator ? Zn(e, Zl) : `https://${t.config.authDomain}/${zl}`, r = {
|
|
9100
9100
|
apiKey: e.apiKey,
|
|
9101
9101
|
appName: t.name,
|
|
9102
|
-
v:
|
|
9102
|
+
v: Tt
|
|
9103
9103
|
}, s = Kl.get(t.config.apiHost);
|
|
9104
9104
|
s && (r.eid = s);
|
|
9105
9105
|
const i = t._getFrameworks();
|
|
9106
|
-
return i.length && (r.fw = i.join(",")), `${n}?${
|
|
9106
|
+
return i.length && (r.fw = i.join(",")), `${n}?${Ot(r).slice(1)}`;
|
|
9107
9107
|
}
|
|
9108
9108
|
async function _l(t) {
|
|
9109
9109
|
const e = await Ul(t), n = de().gapi;
|
|
@@ -9182,7 +9182,7 @@ function sA(t, e, n, r = eA, s = tA) {
|
|
|
9182
9182
|
left: a
|
|
9183
9183
|
}), A = K().toLowerCase();
|
|
9184
9184
|
n && (c = ii(A) ? nA : n), ri(A) && (e = e || rA, l.scrollbars = "yes");
|
|
9185
|
-
const f = Object.entries(l).reduce((B, [
|
|
9185
|
+
const f = Object.entries(l).reduce((B, [w, P]) => `${B}${w}=${P},`, "");
|
|
9186
9186
|
if (Ru(A) && c !== "_self")
|
|
9187
9187
|
return iA(e || "", c), new Gr(null);
|
|
9188
9188
|
const p = window.open(e || "", c, f);
|
|
@@ -9238,7 +9238,7 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9238
9238
|
appName: t.name,
|
|
9239
9239
|
authType: n,
|
|
9240
9240
|
redirectUrl: r,
|
|
9241
|
-
v:
|
|
9241
|
+
v: Tt,
|
|
9242
9242
|
eventId: s
|
|
9243
9243
|
};
|
|
9244
9244
|
if (e instanceof mi) {
|
|
@@ -9246,7 +9246,7 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9246
9246
|
for (const [f, p] of Object.entries({}))
|
|
9247
9247
|
a[f] = p;
|
|
9248
9248
|
}
|
|
9249
|
-
if (e instanceof
|
|
9249
|
+
if (e instanceof jt) {
|
|
9250
9250
|
const f = e.getScopes().filter((p) => p !== "");
|
|
9251
9251
|
f.length > 0 && (a.scopes = f.join(","));
|
|
9252
9252
|
}
|
|
@@ -9255,7 +9255,7 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9255
9255
|
for (const f of Object.keys(c))
|
|
9256
9256
|
c[f] === void 0 && delete c[f];
|
|
9257
9257
|
const l = await t._getAppCheckToken(), A = l ? `#${cA}=${encodeURIComponent(l)}` : "";
|
|
9258
|
-
return `${uA(t)}?${
|
|
9258
|
+
return `${uA(t)}?${Ot(c).slice(1)}${A}`;
|
|
9259
9259
|
}
|
|
9260
9260
|
function uA({ config: t }) {
|
|
9261
9261
|
return t.emulator ? Zn(t, oA) : `https://${t.authDomain}/${aA}`;
|
|
@@ -9423,7 +9423,7 @@ function hA(t) {
|
|
|
9423
9423
|
}
|
|
9424
9424
|
}
|
|
9425
9425
|
function mA(t) {
|
|
9426
|
-
|
|
9426
|
+
vt(new dt(
|
|
9427
9427
|
"auth",
|
|
9428
9428
|
(e, { options: n }) => {
|
|
9429
9429
|
const r = e.getProvider("app").getImmediate(), s = e.getProvider("heartbeat"), i = e.getProvider("app-check-internal"), { apiKey: a, authDomain: c } = r.options;
|
|
@@ -9449,7 +9449,7 @@ function mA(t) {
|
|
|
9449
9449
|
"auth-internal"
|
|
9450
9450
|
/* _ComponentName.AUTH_INTERNAL */
|
|
9451
9451
|
).initialize();
|
|
9452
|
-
})),
|
|
9452
|
+
})), vt(new dt(
|
|
9453
9453
|
"auth-internal",
|
|
9454
9454
|
(e) => {
|
|
9455
9455
|
const n = an(e.getProvider(
|
|
@@ -9558,7 +9558,7 @@ var un = class {
|
|
|
9558
9558
|
}
|
|
9559
9559
|
onUnsubscribe() {
|
|
9560
9560
|
}
|
|
9561
|
-
}, He, Ge, rt, Xr,
|
|
9561
|
+
}, He, Ge, rt, Xr, vA = (Xr = class extends un {
|
|
9562
9562
|
constructor() {
|
|
9563
9563
|
super();
|
|
9564
9564
|
G(this, He);
|
|
@@ -9599,7 +9599,7 @@ var un = class {
|
|
|
9599
9599
|
var e;
|
|
9600
9600
|
return typeof h(this, He) == "boolean" ? h(this, He) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
|
|
9601
9601
|
}
|
|
9602
|
-
}, He = new WeakMap(), Ge = new WeakMap(), rt = new WeakMap(), Xr), Mi = new
|
|
9602
|
+
}, He = new WeakMap(), Ge = new WeakMap(), rt = new WeakMap(), Xr), Mi = new vA(), wA = {
|
|
9603
9603
|
// We need the wrapper function syntax below instead of direct references to
|
|
9604
9604
|
// global setTimeout etc.
|
|
9605
9605
|
//
|
|
@@ -9623,7 +9623,7 @@ var un = class {
|
|
|
9623
9623
|
//
|
|
9624
9624
|
// We settle for type safety for the TimeoutProvider type, and accept that
|
|
9625
9625
|
// this class is unsafe internally to allow for extension.
|
|
9626
|
-
G(this, oe,
|
|
9626
|
+
G(this, oe, wA);
|
|
9627
9627
|
G(this, Qe, !1);
|
|
9628
9628
|
}
|
|
9629
9629
|
setTimeoutProvider(t) {
|
|
@@ -9679,7 +9679,7 @@ function Fr(t, e) {
|
|
|
9679
9679
|
if (r) {
|
|
9680
9680
|
if (e.queryHash !== er(a, e.options))
|
|
9681
9681
|
return !1;
|
|
9682
|
-
} else if (!
|
|
9682
|
+
} else if (!Ct(e.queryKey, a))
|
|
9683
9683
|
return !1;
|
|
9684
9684
|
}
|
|
9685
9685
|
if (n !== "all") {
|
|
@@ -9695,24 +9695,24 @@ function kr(t, e) {
|
|
|
9695
9695
|
if (!e.options.mutationKey)
|
|
9696
9696
|
return !1;
|
|
9697
9697
|
if (n) {
|
|
9698
|
-
if (
|
|
9698
|
+
if (Dt(e.options.mutationKey) !== Dt(i))
|
|
9699
9699
|
return !1;
|
|
9700
|
-
} else if (!
|
|
9700
|
+
} else if (!Ct(e.options.mutationKey, i))
|
|
9701
9701
|
return !1;
|
|
9702
9702
|
}
|
|
9703
9703
|
return !(r && e.state.status !== r || s && !s(e));
|
|
9704
9704
|
}
|
|
9705
9705
|
function er(t, e) {
|
|
9706
|
-
return ((e == null ? void 0 : e.queryKeyHashFn) ||
|
|
9706
|
+
return ((e == null ? void 0 : e.queryKeyHashFn) || Dt)(t);
|
|
9707
9707
|
}
|
|
9708
|
-
function
|
|
9708
|
+
function Dt(t) {
|
|
9709
9709
|
return JSON.stringify(
|
|
9710
9710
|
t,
|
|
9711
9711
|
(e, n) => Fn(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
|
|
9712
9712
|
);
|
|
9713
9713
|
}
|
|
9714
|
-
function
|
|
9715
|
-
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((n) =>
|
|
9714
|
+
function Ct(t, e) {
|
|
9715
|
+
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;
|
|
9716
9716
|
}
|
|
9717
9717
|
var OA = Object.prototype.hasOwnProperty;
|
|
9718
9718
|
function xn(t, e, n = 0) {
|
|
@@ -9724,16 +9724,16 @@ function xn(t, e, n = 0) {
|
|
|
9724
9724
|
const i = (r ? t : Object.keys(t)).length, a = r ? e : Object.keys(e), c = a.length, l = r ? new Array(c) : {};
|
|
9725
9725
|
let A = 0;
|
|
9726
9726
|
for (let f = 0; f < c; f++) {
|
|
9727
|
-
const p = r ? f : a[f], B = t[p],
|
|
9728
|
-
if (B ===
|
|
9727
|
+
const p = r ? f : a[f], B = t[p], w = e[p];
|
|
9728
|
+
if (B === w) {
|
|
9729
9729
|
l[p] = B, (r ? f < i : OA.call(t, p)) && A++;
|
|
9730
9730
|
continue;
|
|
9731
9731
|
}
|
|
9732
|
-
if (B === null ||
|
|
9733
|
-
l[p] =
|
|
9732
|
+
if (B === null || w === null || typeof B != "object" || typeof w != "object") {
|
|
9733
|
+
l[p] = w;
|
|
9734
9734
|
continue;
|
|
9735
9735
|
}
|
|
9736
|
-
const P = xn(B,
|
|
9736
|
+
const P = xn(B, w, n + 1);
|
|
9737
9737
|
l[p] = P, P === B && A++;
|
|
9738
9738
|
}
|
|
9739
9739
|
return i === c && A === i ? t : l;
|
|
@@ -9793,11 +9793,11 @@ function YA(t, e, n = 0) {
|
|
|
9793
9793
|
const r = [e, ...t];
|
|
9794
9794
|
return n && r.length > n ? r.slice(0, -1) : r;
|
|
9795
9795
|
}
|
|
9796
|
-
var
|
|
9796
|
+
var $t = /* @__PURE__ */ Symbol();
|
|
9797
9797
|
function Ii(t, e) {
|
|
9798
|
-
return process.env.NODE_ENV !== "production" && t.queryFn ===
|
|
9798
|
+
return process.env.NODE_ENV !== "production" && t.queryFn === $t && console.error(
|
|
9799
9799
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
|
|
9800
|
-
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn ===
|
|
9800
|
+
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === $t ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
|
|
9801
9801
|
}
|
|
9802
9802
|
function hd(t, e) {
|
|
9803
9803
|
return typeof t == "function" ? t(...e) : !!t;
|
|
@@ -9942,12 +9942,12 @@ var L = kA(), st, je, it, Ur, RA = (Ur = class extends un {
|
|
|
9942
9942
|
isOnline() {
|
|
9943
9943
|
return h(this, st);
|
|
9944
9944
|
}
|
|
9945
|
-
}, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur),
|
|
9945
|
+
}, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur), en = new RA();
|
|
9946
9946
|
function qA(t) {
|
|
9947
9947
|
return Math.min(1e3 * 2 ** t, 3e4);
|
|
9948
9948
|
}
|
|
9949
9949
|
function Oi(t) {
|
|
9950
|
-
return (t ?? "online") === "online" ?
|
|
9950
|
+
return (t ?? "online") === "online" ? en.isOnline() : !0;
|
|
9951
9951
|
}
|
|
9952
9952
|
var kn = class extends Error {
|
|
9953
9953
|
constructor(t) {
|
|
@@ -9966,11 +9966,11 @@ function Ti(t) {
|
|
|
9966
9966
|
e = !0;
|
|
9967
9967
|
}, l = () => {
|
|
9968
9968
|
e = !1;
|
|
9969
|
-
}, A = () => Mi.isFocused() && (t.networkMode === "always" ||
|
|
9969
|
+
}, A = () => Mi.isFocused() && (t.networkMode === "always" || en.isOnline()) && t.canRun(), f = () => Oi(t.networkMode) && t.canRun(), p = (I) => {
|
|
9970
9970
|
i() || (r == null || r(), s.resolve(I));
|
|
9971
9971
|
}, B = (I) => {
|
|
9972
9972
|
i() || (r == null || r(), s.reject(I));
|
|
9973
|
-
},
|
|
9973
|
+
}, w = () => new Promise((I) => {
|
|
9974
9974
|
var V;
|
|
9975
9975
|
r = (R) => {
|
|
9976
9976
|
(i() || A()) && I(R);
|
|
@@ -9992,12 +9992,12 @@ function Ti(t) {
|
|
|
9992
9992
|
var U;
|
|
9993
9993
|
if (i())
|
|
9994
9994
|
return;
|
|
9995
|
-
const Q = t.retry ?? (Pi.isServer() ? 0 : 3), Y = t.retryDelay ?? qA,
|
|
9995
|
+
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);
|
|
9996
9996
|
if (e || !H) {
|
|
9997
9997
|
B(R);
|
|
9998
9998
|
return;
|
|
9999
9999
|
}
|
|
10000
|
-
n++, (U = t.onFail) == null || U.call(t, n, R), TA(
|
|
10000
|
+
n++, (U = t.onFail) == null || U.call(t, n, R), TA(v).then(() => A() ? void 0 : w()).then(() => {
|
|
10001
10001
|
e ? B(R) : P();
|
|
10002
10002
|
});
|
|
10003
10003
|
});
|
|
@@ -10010,7 +10010,7 @@ function Ti(t) {
|
|
|
10010
10010
|
cancelRetry: c,
|
|
10011
10011
|
continueRetry: l,
|
|
10012
10012
|
canStart: f,
|
|
10013
|
-
start: () => (f() ? P() :
|
|
10013
|
+
start: () => (f() ? P() : w().then(P), s)
|
|
10014
10014
|
};
|
|
10015
10015
|
}
|
|
10016
10016
|
var Xe, Wr, Gi = (Wr = class {
|
|
@@ -10038,8 +10038,8 @@ var Xe, Wr, Gi = (Wr = class {
|
|
|
10038
10038
|
function NA(t) {
|
|
10039
10039
|
return {
|
|
10040
10040
|
onFetch: (e, n) => {
|
|
10041
|
-
var f, p, B,
|
|
10042
|
-
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 = ((
|
|
10041
|
+
var f, p, B, w, P;
|
|
10042
|
+
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 = ((P = e.state.data) == null ? void 0 : P.pageParams) || [];
|
|
10043
10043
|
let c = { pages: [], pageParams: [] }, l = 0;
|
|
10044
10044
|
const A = async () => {
|
|
10045
10045
|
let I = !1;
|
|
@@ -10049,16 +10049,16 @@ function NA(t) {
|
|
|
10049
10049
|
() => e.signal,
|
|
10050
10050
|
() => I = !0
|
|
10051
10051
|
);
|
|
10052
|
-
}, R = Ii(e.options, e.fetchOptions), Q = async (Y,
|
|
10052
|
+
}, R = Ii(e.options, e.fetchOptions), Q = async (Y, v, H) => {
|
|
10053
10053
|
if (I)
|
|
10054
10054
|
return Promise.reject(e.signal.reason);
|
|
10055
|
-
if (
|
|
10055
|
+
if (v == null && Y.pages.length)
|
|
10056
10056
|
return Promise.resolve(Y);
|
|
10057
10057
|
const ee = (() => {
|
|
10058
10058
|
const g = {
|
|
10059
10059
|
client: e.client,
|
|
10060
10060
|
queryKey: e.queryKey,
|
|
10061
|
-
pageParam:
|
|
10061
|
+
pageParam: v,
|
|
10062
10062
|
direction: H ? "backward" : "forward",
|
|
10063
10063
|
meta: e.options.meta
|
|
10064
10064
|
};
|
|
@@ -10066,22 +10066,22 @@ function NA(t) {
|
|
|
10066
10066
|
})(), q = await R(ee), { maxPages: u } = e.options, m = H ? YA : jA;
|
|
10067
10067
|
return {
|
|
10068
10068
|
pages: m(Y.pages, q, u),
|
|
10069
|
-
pageParams: m(Y.pageParams,
|
|
10069
|
+
pageParams: m(Y.pageParams, v, u)
|
|
10070
10070
|
};
|
|
10071
10071
|
};
|
|
10072
10072
|
if (s && i.length) {
|
|
10073
|
-
const Y = s === "backward",
|
|
10073
|
+
const Y = s === "backward", v = Y ? HA : Nr, H = {
|
|
10074
10074
|
pages: i,
|
|
10075
10075
|
pageParams: a
|
|
10076
|
-
}, U =
|
|
10076
|
+
}, U = v(r, H);
|
|
10077
10077
|
c = await Q(H, U, Y);
|
|
10078
10078
|
} else {
|
|
10079
10079
|
const Y = t ?? i.length;
|
|
10080
10080
|
do {
|
|
10081
|
-
const
|
|
10082
|
-
if (l > 0 &&
|
|
10081
|
+
const v = l === 0 ? a[0] ?? r.initialPageParam : Nr(r, c);
|
|
10082
|
+
if (l > 0 && v == null)
|
|
10083
10083
|
break;
|
|
10084
|
-
c = await Q(c,
|
|
10084
|
+
c = await Q(c, v), l++;
|
|
10085
10085
|
} while (l < Y);
|
|
10086
10086
|
}
|
|
10087
10087
|
return c;
|
|
@@ -10116,7 +10116,7 @@ function HA(t, { pages: e, pageParams: n }) {
|
|
|
10116
10116
|
var r;
|
|
10117
10117
|
return e.length > 0 ? (r = t.getPreviousPageParam) == null ? void 0 : r.call(t, e[0], e, n[0], n) : void 0;
|
|
10118
10118
|
}
|
|
10119
|
-
var at, Se, ot, re, Ue, S,
|
|
10119
|
+
var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
10120
10120
|
constructor(e) {
|
|
10121
10121
|
super();
|
|
10122
10122
|
G(this, ne);
|
|
@@ -10126,9 +10126,9 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10126
10126
|
G(this, re);
|
|
10127
10127
|
G(this, Ue);
|
|
10128
10128
|
G(this, S);
|
|
10129
|
-
G(this,
|
|
10129
|
+
G(this, Et);
|
|
10130
10130
|
G(this, We);
|
|
10131
|
-
D(this, We, !1), D(this,
|
|
10131
|
+
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();
|
|
10132
10132
|
}
|
|
10133
10133
|
get meta() {
|
|
10134
10134
|
return this.options.meta;
|
|
@@ -10141,7 +10141,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10141
10141
|
return (e = h(this, S)) == null ? void 0 : e.promise;
|
|
10142
10142
|
}
|
|
10143
10143
|
setOptions(e) {
|
|
10144
|
-
if (this.options = { ...h(this,
|
|
10144
|
+
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) {
|
|
10145
10145
|
const n = Qr(this.options);
|
|
10146
10146
|
n.data !== void 0 && (this.setState(
|
|
10147
10147
|
Hr(n.data, n.dataUpdatedAt)
|
|
@@ -10183,7 +10183,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10183
10183
|
);
|
|
10184
10184
|
}
|
|
10185
10185
|
isDisabled() {
|
|
10186
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
10186
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === $t || !this.isFetched();
|
|
10187
10187
|
}
|
|
10188
10188
|
isFetched() {
|
|
10189
10189
|
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
@@ -10224,7 +10224,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10224
10224
|
this.state.isInvalidated || z(this, ne, me).call(this, { type: "invalidate" });
|
|
10225
10225
|
}
|
|
10226
10226
|
async fetch(e, n) {
|
|
10227
|
-
var A, f, p, B,
|
|
10227
|
+
var A, f, p, B, w, P, I, V, R, Q, Y;
|
|
10228
10228
|
if (this.state.fetchStatus !== "idle" && // If the promise in the retryer is already rejected, we have to definitely
|
|
10229
10229
|
// re-start the fetch; there is a chance that the query is still in a
|
|
10230
10230
|
// pending state when that happens
|
|
@@ -10235,19 +10235,19 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10235
10235
|
return h(this, S).continueRetry(), h(this, S).promise;
|
|
10236
10236
|
}
|
|
10237
10237
|
if (e && this.setOptions(e), !this.options.queryFn) {
|
|
10238
|
-
const
|
|
10239
|
-
|
|
10238
|
+
const v = this.observers.find((H) => H.options.queryFn);
|
|
10239
|
+
v && this.setOptions(v.options);
|
|
10240
10240
|
}
|
|
10241
10241
|
process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
|
|
10242
10242
|
"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']"
|
|
10243
10243
|
));
|
|
10244
|
-
const r = new AbortController(), s = (
|
|
10245
|
-
Object.defineProperty(
|
|
10244
|
+
const r = new AbortController(), s = (v) => {
|
|
10245
|
+
Object.defineProperty(v, "signal", {
|
|
10246
10246
|
enumerable: !0,
|
|
10247
10247
|
get: () => (D(this, We, !0), r.signal)
|
|
10248
10248
|
});
|
|
10249
10249
|
}, i = () => {
|
|
10250
|
-
const
|
|
10250
|
+
const v = Ii(this.options, n), U = (() => {
|
|
10251
10251
|
const ee = {
|
|
10252
10252
|
client: h(this, Ue),
|
|
10253
10253
|
queryKey: this.queryKey,
|
|
@@ -10256,12 +10256,12 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10256
10256
|
return s(ee), ee;
|
|
10257
10257
|
})();
|
|
10258
10258
|
return D(this, We, !1), this.options.persister ? this.options.persister(
|
|
10259
|
-
|
|
10259
|
+
v,
|
|
10260
10260
|
U,
|
|
10261
10261
|
this
|
|
10262
|
-
) :
|
|
10262
|
+
) : v(U);
|
|
10263
10263
|
}, c = (() => {
|
|
10264
|
-
const
|
|
10264
|
+
const v = {
|
|
10265
10265
|
fetchOptions: n,
|
|
10266
10266
|
options: this.options,
|
|
10267
10267
|
queryKey: this.queryKey,
|
|
@@ -10269,21 +10269,21 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10269
10269
|
state: this.state,
|
|
10270
10270
|
fetchFn: i
|
|
10271
10271
|
};
|
|
10272
|
-
return s(
|
|
10272
|
+
return s(v), v;
|
|
10273
10273
|
})(), l = h(this, at) === "infinite" ? NA(
|
|
10274
10274
|
this.options.pages
|
|
10275
10275
|
) : this.options.behavior;
|
|
10276
10276
|
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({
|
|
10277
10277
|
initialPromise: n == null ? void 0 : n.initialPromise,
|
|
10278
10278
|
fn: c.fetchFn,
|
|
10279
|
-
onCancel: (
|
|
10280
|
-
|
|
10279
|
+
onCancel: (v) => {
|
|
10280
|
+
v instanceof kn && v.revert && this.setState({
|
|
10281
10281
|
...h(this, ot),
|
|
10282
10282
|
fetchStatus: "idle"
|
|
10283
10283
|
}), r.abort();
|
|
10284
10284
|
},
|
|
10285
|
-
onFail: (
|
|
10286
|
-
z(this, ne, me).call(this, { type: "failed", failureCount:
|
|
10285
|
+
onFail: (v, H) => {
|
|
10286
|
+
z(this, ne, me).call(this, { type: "failed", failureCount: v, error: H });
|
|
10287
10287
|
},
|
|
10288
10288
|
onPause: () => {
|
|
10289
10289
|
z(this, ne, me).call(this, { type: "pause" });
|
|
@@ -10297,45 +10297,45 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10297
10297
|
canRun: () => !0
|
|
10298
10298
|
}));
|
|
10299
10299
|
try {
|
|
10300
|
-
const
|
|
10301
|
-
if (
|
|
10300
|
+
const v = await h(this, S).start();
|
|
10301
|
+
if (v === void 0)
|
|
10302
10302
|
throw process.env.NODE_ENV !== "production" && console.error(
|
|
10303
10303
|
`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
|
|
10304
10304
|
), new Error(`${this.queryHash} data is undefined`);
|
|
10305
|
-
return this.setData(
|
|
10305
|
+
return this.setData(v), (w = (B = h(this, re).config).onSuccess) == null || w.call(B, v, this), (I = (P = h(this, re).config).onSettled) == null || I.call(
|
|
10306
10306
|
P,
|
|
10307
|
-
|
|
10307
|
+
v,
|
|
10308
10308
|
this.state.error,
|
|
10309
10309
|
this
|
|
10310
|
-
),
|
|
10311
|
-
} catch (
|
|
10312
|
-
if (
|
|
10313
|
-
if (
|
|
10310
|
+
), v;
|
|
10311
|
+
} catch (v) {
|
|
10312
|
+
if (v instanceof kn) {
|
|
10313
|
+
if (v.silent)
|
|
10314
10314
|
return h(this, S).promise;
|
|
10315
|
-
if (
|
|
10315
|
+
if (v.revert) {
|
|
10316
10316
|
if (this.state.data === void 0)
|
|
10317
|
-
throw
|
|
10317
|
+
throw v;
|
|
10318
10318
|
return this.state.data;
|
|
10319
10319
|
}
|
|
10320
10320
|
}
|
|
10321
10321
|
throw z(this, ne, me).call(this, {
|
|
10322
10322
|
type: "error",
|
|
10323
|
-
error:
|
|
10323
|
+
error: v
|
|
10324
10324
|
}), (R = (V = h(this, re).config).onError) == null || R.call(
|
|
10325
10325
|
V,
|
|
10326
|
-
|
|
10326
|
+
v,
|
|
10327
10327
|
this
|
|
10328
10328
|
), (Y = (Q = h(this, re).config).onSettled) == null || Y.call(
|
|
10329
10329
|
Q,
|
|
10330
10330
|
this.state.data,
|
|
10331
|
-
|
|
10331
|
+
v,
|
|
10332
10332
|
this
|
|
10333
|
-
),
|
|
10333
|
+
), v;
|
|
10334
10334
|
} finally {
|
|
10335
10335
|
this.scheduleGc();
|
|
10336
10336
|
}
|
|
10337
10337
|
}
|
|
10338
|
-
}, at = new WeakMap(), Se = new WeakMap(), ot = new WeakMap(), re = new WeakMap(), Ue = new WeakMap(), S = new WeakMap(),
|
|
10338
|
+
}, 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() {
|
|
10339
10339
|
return this.state.fetchStatus === "paused" && this.state.status === "pending";
|
|
10340
10340
|
}, me = function(e) {
|
|
10341
10341
|
const n = (r) => {
|
|
@@ -10444,15 +10444,15 @@ function Qr(t) {
|
|
|
10444
10444
|
fetchStatus: "idle"
|
|
10445
10445
|
};
|
|
10446
10446
|
}
|
|
10447
|
-
var
|
|
10447
|
+
var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
10448
10448
|
constructor(e) {
|
|
10449
10449
|
super();
|
|
10450
10450
|
G(this, ue);
|
|
10451
|
-
G(this,
|
|
10451
|
+
G(this, Mt);
|
|
10452
10452
|
G(this, ce);
|
|
10453
10453
|
G(this, Z);
|
|
10454
10454
|
G(this, ze);
|
|
10455
|
-
D(this,
|
|
10455
|
+
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();
|
|
10456
10456
|
}
|
|
10457
10457
|
setOptions(e) {
|
|
10458
10458
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -10483,11 +10483,11 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10483
10483
|
this.execute(this.state.variables);
|
|
10484
10484
|
}
|
|
10485
10485
|
async execute(e) {
|
|
10486
|
-
var a, c, l, A, f, p, B,
|
|
10486
|
+
var a, c, l, A, f, p, B, w, P, I, V, R, Q, Y, v, H, U, ee;
|
|
10487
10487
|
const n = () => {
|
|
10488
10488
|
z(this, ue, Me).call(this, { type: "continue" });
|
|
10489
10489
|
}, r = {
|
|
10490
|
-
client: h(this,
|
|
10490
|
+
client: h(this, Mt),
|
|
10491
10491
|
meta: this.options.meta,
|
|
10492
10492
|
mutationKey: this.options.mutationKey
|
|
10493
10493
|
};
|
|
@@ -10541,7 +10541,7 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10541
10541
|
e,
|
|
10542
10542
|
this.state.context,
|
|
10543
10543
|
r
|
|
10544
|
-
)), await ((
|
|
10544
|
+
)), await ((w = (B = h(this, Z).config).onSettled) == null ? void 0 : w.call(
|
|
10545
10545
|
B,
|
|
10546
10546
|
q,
|
|
10547
10547
|
null,
|
|
@@ -10582,8 +10582,8 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10582
10582
|
Promise.reject(u);
|
|
10583
10583
|
}
|
|
10584
10584
|
try {
|
|
10585
|
-
await ((H = (
|
|
10586
|
-
|
|
10585
|
+
await ((H = (v = h(this, Z).config).onSettled) == null ? void 0 : H.call(
|
|
10586
|
+
v,
|
|
10587
10587
|
void 0,
|
|
10588
10588
|
q,
|
|
10589
10589
|
this.state.variables,
|
|
@@ -10611,7 +10611,7 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10611
10611
|
h(this, Z).runNext(this);
|
|
10612
10612
|
}
|
|
10613
10613
|
}
|
|
10614
|
-
},
|
|
10614
|
+
}, Mt = new WeakMap(), ce = new WeakMap(), Z = new WeakMap(), ze = new WeakMap(), ue = new WeakSet(), Me = function(e) {
|
|
10615
10615
|
const n = (r) => {
|
|
10616
10616
|
switch (e.type) {
|
|
10617
10617
|
case "failed":
|
|
@@ -10688,19 +10688,19 @@ function UA() {
|
|
|
10688
10688
|
submittedAt: 0
|
|
10689
10689
|
};
|
|
10690
10690
|
}
|
|
10691
|
-
var fe, ae,
|
|
10691
|
+
var fe, ae, It, Lr, Yi = (Lr = class extends un {
|
|
10692
10692
|
constructor(n = {}) {
|
|
10693
10693
|
super();
|
|
10694
10694
|
G(this, fe);
|
|
10695
10695
|
G(this, ae);
|
|
10696
|
-
G(this,
|
|
10697
|
-
this.config = n, D(this, fe, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this,
|
|
10696
|
+
G(this, It);
|
|
10697
|
+
this.config = n, D(this, fe, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this, It, 0);
|
|
10698
10698
|
}
|
|
10699
10699
|
build(n, r, s) {
|
|
10700
10700
|
const i = new SA({
|
|
10701
10701
|
client: n,
|
|
10702
10702
|
mutationCache: this,
|
|
10703
|
-
mutationId: ++
|
|
10703
|
+
mutationId: ++xt(this, It)._,
|
|
10704
10704
|
options: n.defaultMutationOptions(r),
|
|
10705
10705
|
state: s
|
|
10706
10706
|
});
|
|
@@ -10708,7 +10708,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10708
10708
|
}
|
|
10709
10709
|
add(n) {
|
|
10710
10710
|
h(this, fe).add(n);
|
|
10711
|
-
const r =
|
|
10711
|
+
const r = Rt(n);
|
|
10712
10712
|
if (typeof r == "string") {
|
|
10713
10713
|
const s = h(this, ae).get(r);
|
|
10714
10714
|
s ? s.push(n) : h(this, ae).set(r, [n]);
|
|
@@ -10717,7 +10717,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10717
10717
|
}
|
|
10718
10718
|
remove(n) {
|
|
10719
10719
|
if (h(this, fe).delete(n)) {
|
|
10720
|
-
const r =
|
|
10720
|
+
const r = Rt(n);
|
|
10721
10721
|
if (typeof r == "string") {
|
|
10722
10722
|
const s = h(this, ae).get(r);
|
|
10723
10723
|
if (s)
|
|
@@ -10730,7 +10730,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10730
10730
|
this.notify({ type: "removed", mutation: n });
|
|
10731
10731
|
}
|
|
10732
10732
|
canRun(n) {
|
|
10733
|
-
const r =
|
|
10733
|
+
const r = Rt(n);
|
|
10734
10734
|
if (typeof r == "string") {
|
|
10735
10735
|
const s = h(this, ae).get(r), i = s == null ? void 0 : s.find(
|
|
10736
10736
|
(a) => a.state.status === "pending"
|
|
@@ -10741,7 +10741,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10741
10741
|
}
|
|
10742
10742
|
runNext(n) {
|
|
10743
10743
|
var s;
|
|
10744
|
-
const r =
|
|
10744
|
+
const r = Rt(n);
|
|
10745
10745
|
if (typeof r == "string") {
|
|
10746
10746
|
const i = (s = h(this, ae).get(r)) == null ? void 0 : s.find((a) => a !== n && a.state.isPaused);
|
|
10747
10747
|
return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
|
|
@@ -10782,8 +10782,8 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10782
10782
|
)
|
|
10783
10783
|
);
|
|
10784
10784
|
}
|
|
10785
|
-
}, fe = new WeakMap(), ae = new WeakMap(),
|
|
10786
|
-
function
|
|
10785
|
+
}, fe = new WeakMap(), ae = new WeakMap(), It = new WeakMap(), Lr);
|
|
10786
|
+
function Rt(t) {
|
|
10787
10787
|
var e;
|
|
10788
10788
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
10789
10789
|
}
|
|
@@ -10872,15 +10872,15 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
10872
10872
|
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);
|
|
10873
10873
|
}
|
|
10874
10874
|
mount() {
|
|
10875
|
-
|
|
10875
|
+
xt(this, xe)._++, h(this, xe) === 1 && (D(this, lt, Mi.subscribe(async (e) => {
|
|
10876
10876
|
e && (await this.resumePausedMutations(), h(this, N).onFocus());
|
|
10877
|
-
})), D(this, At,
|
|
10877
|
+
})), D(this, At, en.subscribe(async (e) => {
|
|
10878
10878
|
e && (await this.resumePausedMutations(), h(this, N).onOnline());
|
|
10879
10879
|
})));
|
|
10880
10880
|
}
|
|
10881
10881
|
unmount() {
|
|
10882
10882
|
var e, n;
|
|
10883
|
-
|
|
10883
|
+
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));
|
|
10884
10884
|
}
|
|
10885
10885
|
isFetching(e) {
|
|
10886
10886
|
return h(this, N).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
@@ -11002,7 +11002,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11002
11002
|
return e._type = "infinite", this.ensureQueryData(e);
|
|
11003
11003
|
}
|
|
11004
11004
|
resumePausedMutations() {
|
|
11005
|
-
return
|
|
11005
|
+
return en.isOnline() ? h(this, Ye).resumePausedMutations() : Promise.resolve();
|
|
11006
11006
|
}
|
|
11007
11007
|
getQueryCache() {
|
|
11008
11008
|
return h(this, N);
|
|
@@ -11017,7 +11017,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11017
11017
|
D(this, Ve, e);
|
|
11018
11018
|
}
|
|
11019
11019
|
setQueryDefaults(e, n) {
|
|
11020
|
-
h(this, ct).set(
|
|
11020
|
+
h(this, ct).set(Dt(e), {
|
|
11021
11021
|
queryKey: e,
|
|
11022
11022
|
defaultOptions: n
|
|
11023
11023
|
});
|
|
@@ -11025,11 +11025,11 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11025
11025
|
getQueryDefaults(e) {
|
|
11026
11026
|
const n = [...h(this, ct).values()], r = {};
|
|
11027
11027
|
return n.forEach((s) => {
|
|
11028
|
-
|
|
11028
|
+
Ct(e, s.queryKey) && Object.assign(r, s.defaultOptions);
|
|
11029
11029
|
}), r;
|
|
11030
11030
|
}
|
|
11031
11031
|
setMutationDefaults(e, n) {
|
|
11032
|
-
h(this, ut).set(
|
|
11032
|
+
h(this, ut).set(Dt(e), {
|
|
11033
11033
|
mutationKey: e,
|
|
11034
11034
|
defaultOptions: n
|
|
11035
11035
|
});
|
|
@@ -11037,7 +11037,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11037
11037
|
getMutationDefaults(e) {
|
|
11038
11038
|
const n = [...h(this, ut).values()], r = {};
|
|
11039
11039
|
return n.forEach((s) => {
|
|
11040
|
-
|
|
11040
|
+
Ct(e, s.mutationKey) && Object.assign(r, s.defaultOptions);
|
|
11041
11041
|
}), r;
|
|
11042
11042
|
}
|
|
11043
11043
|
defaultQueryOptions(e) {
|
|
@@ -11052,7 +11052,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11052
11052
|
return n.queryHash || (n.queryHash = er(
|
|
11053
11053
|
n.queryKey,
|
|
11054
11054
|
n
|
|
11055
|
-
)), 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 ===
|
|
11055
|
+
)), 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;
|
|
11056
11056
|
}
|
|
11057
11057
|
defaultMutationOptions(e) {
|
|
11058
11058
|
return e != null && e._defaulted ? e : {
|
|
@@ -11137,7 +11137,7 @@ var KA = class extends Vi {
|
|
|
11137
11137
|
queryCache: t.queryCache || new KA(),
|
|
11138
11138
|
mutationCache: t.mutationCache || new JA()
|
|
11139
11139
|
};
|
|
11140
|
-
super(e), this.isRestoring =
|
|
11140
|
+
super(e), this.isRestoring = St(!1);
|
|
11141
11141
|
}
|
|
11142
11142
|
isFetching(t = {}) {
|
|
11143
11143
|
return super.isFetching(T(t));
|
|
@@ -11236,7 +11236,7 @@ var KA = class extends Vi {
|
|
|
11236
11236
|
};
|
|
11237
11237
|
const $A = Ki({
|
|
11238
11238
|
history: Ji(),
|
|
11239
|
-
routes: [...
|
|
11239
|
+
routes: [...bt, ...pt].map((t) => ({
|
|
11240
11240
|
...t,
|
|
11241
11241
|
component: os(
|
|
11242
11242
|
_r({
|
|
@@ -11247,10 +11247,10 @@ const $A = Ki({
|
|
|
11247
11247
|
});
|
|
11248
11248
|
$A.beforeEach((t) => {
|
|
11249
11249
|
var r;
|
|
11250
|
-
const { currentCountry: e } =
|
|
11250
|
+
const { currentCountry: e } = rn(), n = e.value;
|
|
11251
11251
|
if (!n) return !0;
|
|
11252
11252
|
if ((r = t.meta) != null && r.region && !t.meta.region[n]) {
|
|
11253
|
-
const s =
|
|
11253
|
+
const s = bt.find(
|
|
11254
11254
|
(i) => {
|
|
11255
11255
|
var a;
|
|
11256
11256
|
return ((a = i.meta) == null ? void 0 : a.sidebarDisplay) && (!i.meta.region || i.meta.region[n]);
|
|
@@ -11260,17 +11260,17 @@ $A.beforeEach((t) => {
|
|
|
11260
11260
|
}
|
|
11261
11261
|
return !0;
|
|
11262
11262
|
});
|
|
11263
|
-
const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ */
|
|
11263
|
+
const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ */ tn({
|
|
11264
11264
|
__name: "AppSidebar",
|
|
11265
11265
|
setup(t) {
|
|
11266
|
-
const e =
|
|
11266
|
+
const e = rn(), n = _i(), { t: r } = ns(), s = St(n.currentRoute.value.name);
|
|
11267
11267
|
$r(n.currentRoute, () => {
|
|
11268
11268
|
let A = n.currentRoute.value.name;
|
|
11269
11269
|
n.currentRoute.value.meta.parent && (A = n.currentRoute.value.meta.parent), s.value = A;
|
|
11270
11270
|
});
|
|
11271
|
-
const i =
|
|
11272
|
-
var B,
|
|
11273
|
-
if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((
|
|
11271
|
+
const i = bt.map((A) => {
|
|
11272
|
+
var B, w;
|
|
11273
|
+
if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((w = A.meta.region) != null && w[e.currentCountry.value]) || A.meta.section)
|
|
11274
11274
|
return;
|
|
11275
11275
|
const f = A.meta.sidebarDisplay, p = {
|
|
11276
11276
|
label: f.startsWith("i18n:") ? r(f.replaceAll("i18n:", "")) : f,
|
|
@@ -11280,12 +11280,12 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11280
11280
|
return n.push({ name: A.name });
|
|
11281
11281
|
}
|
|
11282
11282
|
};
|
|
11283
|
-
return A.meta.sidebarNew && (p.badge = () =>
|
|
11283
|
+
return A.meta.sidebarNew && (p.badge = () => vn(ea.FmPill, { label: "New" })), p;
|
|
11284
11284
|
}).filter((A) => !!A);
|
|
11285
11285
|
function a(A, f) {
|
|
11286
11286
|
return A.map((p) => {
|
|
11287
|
-
var B,
|
|
11288
|
-
return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], f) : (
|
|
11287
|
+
var B, w, P, I;
|
|
11288
|
+
return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], f) : (w = p.meta) != null && w.region && !((P = p.meta.region) != null && P[e.currentCountry.value]) ? [] : (I = p.meta) != null && I.sidebarDisplay ? p.meta.section !== f ? [] : [
|
|
11289
11289
|
{
|
|
11290
11290
|
label: p.meta.sidebarDisplay.startsWith("i18n:") ? r(p.meta.sidebarDisplay.replaceAll("i18n:", "")) : p.meta.sidebarDisplay,
|
|
11291
11291
|
value: p.name,
|
|
@@ -11310,7 +11310,16 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11310
11310
|
};
|
|
11311
11311
|
}).filter((A) => !!A), l = Nn(() => {
|
|
11312
11312
|
const A = [...i];
|
|
11313
|
-
return
|
|
11313
|
+
return A.push({
|
|
11314
|
+
label: "",
|
|
11315
|
+
value: "divider",
|
|
11316
|
+
disabled: !0
|
|
11317
|
+
}), A.push({
|
|
11318
|
+
label: r("financing.title"),
|
|
11319
|
+
icon: "credit_score",
|
|
11320
|
+
value: "divider",
|
|
11321
|
+
disabled: !0
|
|
11322
|
+
}), A.push(...a(bt, "financing")), ed(e.sessionUser.value) && (A.push({
|
|
11314
11323
|
label: "",
|
|
11315
11324
|
value: "divider",
|
|
11316
11325
|
disabled: !0
|
|
@@ -11341,7 +11350,7 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11341
11350
|
});
|
|
11342
11351
|
return (A, f) => {
|
|
11343
11352
|
const p = es("FmCollapsibleTabs");
|
|
11344
|
-
return
|
|
11353
|
+
return nn(), Hn(p, {
|
|
11345
11354
|
modelValue: s.value,
|
|
11346
11355
|
"onUpdate:modelValue": f[0] || (f[0] = (B) => s.value = B),
|
|
11347
11356
|
items: l.value,
|
|
@@ -11350,11 +11359,11 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11350
11359
|
};
|
|
11351
11360
|
}
|
|
11352
11361
|
});
|
|
11353
|
-
var nd = { firebase: { apiKey: "
|
|
11354
|
-
const bd = /* @__PURE__ */
|
|
11362
|
+
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" } };
|
|
11363
|
+
const bd = /* @__PURE__ */ tn({
|
|
11355
11364
|
__name: "App",
|
|
11356
11365
|
setup(t) {
|
|
11357
|
-
const { state: e } = Qo(), n =
|
|
11366
|
+
const { state: e } = Qo(), n = rn(), r = ts(), s = new _A();
|
|
11358
11367
|
Wi(xi, s);
|
|
11359
11368
|
const i = Ss(nd.firebase);
|
|
11360
11369
|
async function a() {
|
|
@@ -11371,12 +11380,12 @@ const bd = /* @__PURE__ */ en({
|
|
|
11371
11380
|
s.unmount();
|
|
11372
11381
|
}), (c, l) => {
|
|
11373
11382
|
const A = es("RouterView");
|
|
11374
|
-
return
|
|
11383
|
+
return nn(), Hn(A, {
|
|
11375
11384
|
key: ge(r).path
|
|
11376
11385
|
});
|
|
11377
11386
|
};
|
|
11378
11387
|
}
|
|
11379
|
-
}),
|
|
11388
|
+
}), vd = () => {
|
|
11380
11389
|
const t = [
|
|
11381
11390
|
{ "en-US": na, "th-TH": sa, "zh-CN": aa },
|
|
11382
11391
|
qi
|
|
@@ -11393,7 +11402,7 @@ const bd = /* @__PURE__ */ en({
|
|
|
11393
11402
|
},
|
|
11394
11403
|
{}
|
|
11395
11404
|
);
|
|
11396
|
-
},
|
|
11405
|
+
}, wd = [...pt, ...bt].map((t) => ({
|
|
11397
11406
|
...t,
|
|
11398
11407
|
component: os(
|
|
11399
11408
|
_r({ loader: t.component })
|
|
@@ -11401,7 +11410,7 @@ const bd = /* @__PURE__ */ en({
|
|
|
11401
11410
|
}));
|
|
11402
11411
|
export {
|
|
11403
11412
|
xa as A,
|
|
11404
|
-
|
|
11413
|
+
wd as B,
|
|
11405
11414
|
un as S,
|
|
11406
11415
|
yr as _,
|
|
11407
11416
|
Vn as a,
|
|
@@ -11429,5 +11438,5 @@ export {
|
|
|
11429
11438
|
ua as w,
|
|
11430
11439
|
ld as x,
|
|
11431
11440
|
bd as y,
|
|
11432
|
-
|
|
11441
|
+
vd as z
|
|
11433
11442
|
};
|