@feedmepos/mf-payment 1.9.2 → 1.9.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-7ni1-lKF.js → Actions.vue_vue_type_script_setup_true_lang-CkECWfJH.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-2vgQHqHT.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-BO0JN_rh.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-ByU0LzXW.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-Bnn4SxyN.js} +2 -2
- package/dist/{Chargeback-BqAfvr6y.js → Chargeback-b5GjZ9Mb.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-_Xh7KYhJ.js → DocumentViewer.vue_vue_type_script_setup_true_lang-BviLk6nC.js} +1 -1
- package/dist/ExternalTerminal-DhoNW6qp.js +525 -0
- package/dist/{OnboardForm-nmVPX-mO.js → OnboardForm-Bq181JPX.js} +6 -6
- package/dist/{OnboardForm-fsUaxHxj.js → OnboardForm-CtgycClY.js} +6 -6
- package/dist/{OnboardSubmission-Bg8S8_29.js → OnboardSubmission-D-0Sas7U.js} +6 -6
- package/dist/{OnboardSubmission-Oa_LY3gM.js → OnboardSubmission-DXBjG3oR.js} +3 -3
- package/dist/{PayoutAccount-CXkLMuB9.js → PayoutAccount-D5giLt_J.js} +5 -5
- package/dist/{PayoutAccount-CcCcvM9g.js → PayoutAccount-Ddpq-rZp.js} +7 -7
- package/dist/{PayoutAccountSetting-DaT8zIz7.js → PayoutAccountSetting-5ik0IR2I.js} +6 -6
- package/dist/{Restaurant-DZAfaFb-.js → Restaurant-BG-2LYcJ.js} +4 -4
- package/dist/{RestaurantSetting-Bpx0v-wl.js → RestaurantSetting-CtnOR7kY.js} +3 -3
- package/dist/{Settlement-DS61FGow.js → Settlement-BzoTb2ks.js} +3 -3
- package/dist/{Settlement-CqFAhrhW.js → Settlement-CfU_5sp-.js} +4 -4
- package/dist/{SettlementTransactions-ZckC-PPM.js → SettlementTransactions-CmX9LDuK.js} +5 -5
- package/dist/{SettlementTransactions-DCPpL_ZG.js → SettlementTransactions-Dh-erDBh.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-b0WaQ7_a.js → Status.vue_vue_type_script_setup_true_lang-D3dpjdxR.js} +1 -1
- package/dist/Terminal-ZLduA0bd.js +1158 -0
- package/dist/{TerminalSetting-DHR02KO8.js → TerminalSetting-CvaUOBlA.js} +5 -5
- package/dist/{Transaction-BxRx9X8n.js → Transaction-BeNRIA2R.js} +10 -10
- package/dist/{Transaction-DKBQQYLJ.js → Transaction-Bpc_LdWE.js} +11 -11
- package/dist/{TransactionOld-BBC274Fu.js → TransactionOld-SaMACUtQ.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-D0qx6l1Q.js → TransactionStatus.vue_vue_type_script_setup_true_lang-CuBa_qMU.js} +1 -1
- package/dist/api/external-terminal/index.d.ts +13 -0
- package/dist/{app-CcITI3hv.js → app-Cq04HfHW.js} +370 -352
- package/dist/app.js +1 -1
- package/dist/{assets-CKbXRAHk.js → assets-Cj91tAER.js} +1 -1
- package/dist/{grafana-BwS149zG.js → grafana-CuJUDQ26.js} +1 -1
- package/dist/{index-g4azevaB.js → index-BQijmIi-.js} +1 -1
- package/dist/{index-DJPzPOV6.js → index-BTMbNw68.js} +1 -1
- package/dist/{index-BW7HTfGj.js → index-C3dR6tpd.js} +1 -1
- package/dist/{index-CyZ1a0NP.js → index-C4EENmPN.js} +1 -1
- package/dist/{index-BHBGKw7s.js → index-Cj7KUaM0.js} +3080 -3021
- package/dist/{index-CcYiD96F.js → index-DVC9y-6t.js} +1 -1
- package/dist/{index-CjLA0aiV.js → index-DmC6nw2c.js} +1 -1
- package/dist/{index-DwfxhjAJ.js → index-JV44EPG0.js} +2 -2
- package/dist/{index-DW02o6U2.js → index-lfOPW24n.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BcM4GmNe.js → index.vue_vue_type_script_setup_true_lang-Cz6llWgj.js} +1 -1
- package/dist/{onboard-submission-tAwpwpF3.js → onboard-submission-ChLJrEtc.js} +1 -1
- package/dist/package.json +3 -3
- package/dist/{payout-account-Z__ouW7F.js → payout-account-Db0R_Isi.js} +3 -3
- package/dist/stores/payoutAccount.d.ts +20 -20
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/external-terminal/ExternalTerminal.vue.d.ts +2 -0
- package/dist/views/admin/external-terminal/ExternalTerminalPairDialog.vue.d.ts +67 -0
- package/dist/views/admin/external-terminal/ExternalTerminalSideSheet.vue.d.ts +86 -0
- package/dist/views/admin/external-terminal/cell/Actions.vue.d.ts +14 -0
- package/dist/views/admin/external-terminal/cell/ID.vue.d.ts +7 -0
- package/dist/views/admin/external-terminal/pair/BRITerminal.vue.d.ts +76 -0
- package/dist/views/admin/external-terminal/pair/BeamTerminal.vue.d.ts +76 -0
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +20 -20
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +42 -42
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +42 -42
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +20 -20
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +20 -20
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +42 -42
- package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/BeamGateway.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/{TerminalDialog.vue.d.ts → TerminalSideSheet.vue.d.ts} +41 -22
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +18 -20
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +18 -20
- package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +18 -20
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +18 -20
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +18 -20
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +18 -20
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +18 -20
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +18 -20
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +18 -20
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +18 -20
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +18 -20
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +18 -20
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +18 -20
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +18 -20
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +18 -20
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +18 -20
- package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +18 -20
- package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +18 -20
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +18 -20
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +18 -20
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +18 -20
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +40 -40
- package/package.json +2 -2
- package/dist/Terminal-C3Ye7IE1.js +0 -1135
|
@@ -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 O = 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 = O);
|
|
1276
1276
|
} catch (O) {
|
|
1277
1277
|
c(O);
|
|
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 O = {
|
|
@@ -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 P = 0; P < b.length; P++)
|
|
1455
|
-
if (f(b, P),
|
|
1455
|
+
if (f(b, P), w(E, f(b, P))) return P;
|
|
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 P =
|
|
1515
|
+
var P = w(H(f(u, j), g), E, j, u);
|
|
1516
1516
|
if (P && String(P) !== "[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, P) {
|
|
1558
|
-
return !
|
|
1558
|
+
return !w(y, b, E, P);
|
|
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 P = E[0];
|
|
1596
|
-
return
|
|
1596
|
+
return w(y, P[0], P[1], P[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
|
-
}(P, []).join(",").search(/[$.]/) === -1 ? V(P,
|
|
1633
|
+
}(P, []).join(",").search(/[$.]/) === -1 ? V(P, v) : b(P);
|
|
1634
1634
|
};
|
|
1635
1635
|
return function(P) {
|
|
1636
1636
|
return b(y(P));
|
|
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, P) {
|
|
1660
|
-
return
|
|
1660
|
+
return w(y, b && m.select(b), E, P);
|
|
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 O = p[
|
|
1880
|
+
for (var w = 0; w < p.length; w++) {
|
|
1881
|
+
var O = p[w];
|
|
1882
1882
|
s[O] = s[O] || /* @__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-BG-2LYcJ.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-CtnOR7kY.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-Ddpq-rZp.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-5ik0IR2I.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-D-0Sas7U.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-CtgycClY.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-ZLduA0bd.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-ZLduA0bd.js"),
|
|
3233
3233
|
props: {
|
|
3234
3234
|
type: "KIOSK"
|
|
3235
3235
|
}
|
|
@@ -3241,11 +3241,20 @@ const Ho = () => ({
|
|
|
3241
3241
|
sidebarDisplay: "Terminals",
|
|
3242
3242
|
section: "device"
|
|
3243
3243
|
},
|
|
3244
|
-
component: () => import("./Terminal-
|
|
3244
|
+
component: () => import("./Terminal-ZLduA0bd.js"),
|
|
3245
3245
|
props: {
|
|
3246
3246
|
type: "TERMINAL"
|
|
3247
3247
|
}
|
|
3248
3248
|
},
|
|
3249
|
+
{
|
|
3250
|
+
path: "/admin/terminal/external",
|
|
3251
|
+
name: "mf-payment-admin.external-terminal",
|
|
3252
|
+
meta: {
|
|
3253
|
+
sidebarDisplay: "External Terminals",
|
|
3254
|
+
section: "device"
|
|
3255
|
+
},
|
|
3256
|
+
component: () => import("./ExternalTerminal-DhoNW6qp.js")
|
|
3257
|
+
},
|
|
3249
3258
|
{
|
|
3250
3259
|
path: "/admin/terminal/pos/:terminalId",
|
|
3251
3260
|
name: "mf-payment-admin.pos-setting",
|
|
@@ -3253,7 +3262,7 @@ const Ho = () => ({
|
|
|
3253
3262
|
meta: {
|
|
3254
3263
|
parent: "mf-payment-admin.pos"
|
|
3255
3264
|
},
|
|
3256
|
-
component: () => import("./TerminalSetting-
|
|
3265
|
+
component: () => import("./TerminalSetting-CvaUOBlA.js")
|
|
3257
3266
|
},
|
|
3258
3267
|
{
|
|
3259
3268
|
path: "/admin/terminal/kiosk/:terminalId",
|
|
@@ -3262,7 +3271,7 @@ const Ho = () => ({
|
|
|
3262
3271
|
meta: {
|
|
3263
3272
|
parent: "mf-payment-admin.kiosk"
|
|
3264
3273
|
},
|
|
3265
|
-
component: () => import("./TerminalSetting-
|
|
3274
|
+
component: () => import("./TerminalSetting-CvaUOBlA.js")
|
|
3266
3275
|
},
|
|
3267
3276
|
{
|
|
3268
3277
|
path: "/admin/terminal/terminal/:terminalId",
|
|
@@ -3271,7 +3280,7 @@ const Ho = () => ({
|
|
|
3271
3280
|
meta: {
|
|
3272
3281
|
parent: "mf-payment-admin.terminal"
|
|
3273
3282
|
},
|
|
3274
|
-
component: () => import("./TerminalSetting-
|
|
3283
|
+
component: () => import("./TerminalSetting-CvaUOBlA.js")
|
|
3275
3284
|
},
|
|
3276
3285
|
{
|
|
3277
3286
|
path: "/admin/transaction",
|
|
@@ -3279,7 +3288,7 @@ const Ho = () => ({
|
|
|
3279
3288
|
meta: {
|
|
3280
3289
|
sidebarDisplay: "Transactions"
|
|
3281
3290
|
},
|
|
3282
|
-
component: () => import("./Transaction-
|
|
3291
|
+
component: () => import("./Transaction-Bpc_LdWE.js")
|
|
3283
3292
|
},
|
|
3284
3293
|
{
|
|
3285
3294
|
path: "/admin/chargeback",
|
|
@@ -3287,7 +3296,7 @@ const Ho = () => ({
|
|
|
3287
3296
|
meta: {
|
|
3288
3297
|
sidebarDisplay: "Chargebacks"
|
|
3289
3298
|
},
|
|
3290
|
-
component: () => import("./Chargeback-
|
|
3299
|
+
component: () => import("./Chargeback-b5GjZ9Mb.js")
|
|
3291
3300
|
},
|
|
3292
3301
|
{
|
|
3293
3302
|
path: "/admin/settlement",
|
|
@@ -3295,7 +3304,7 @@ const Ho = () => ({
|
|
|
3295
3304
|
meta: {
|
|
3296
3305
|
sidebarDisplay: "Settlements"
|
|
3297
3306
|
},
|
|
3298
|
-
component: () => import("./Settlement-
|
|
3307
|
+
component: () => import("./Settlement-BzoTb2ks.js")
|
|
3299
3308
|
},
|
|
3300
3309
|
{
|
|
3301
3310
|
path: "/admin/settlement/:settlementId",
|
|
@@ -3304,7 +3313,7 @@ const Ho = () => ({
|
|
|
3304
3313
|
meta: {
|
|
3305
3314
|
parent: "mf-payment-admin.settlement"
|
|
3306
3315
|
},
|
|
3307
|
-
component: () => import("./SettlementTransactions-
|
|
3316
|
+
component: () => import("./SettlementTransactions-Dh-erDBh.js")
|
|
3308
3317
|
}
|
|
3309
3318
|
].map((t) => ({
|
|
3310
3319
|
...t,
|
|
@@ -3312,7 +3321,7 @@ const Ho = () => ({
|
|
|
3312
3321
|
...t.meta,
|
|
3313
3322
|
...Ho()
|
|
3314
3323
|
}
|
|
3315
|
-
})),
|
|
3324
|
+
})), bt = [
|
|
3316
3325
|
{
|
|
3317
3326
|
path: "",
|
|
3318
3327
|
redirect: { name: "mf-payment-payout-account" }
|
|
@@ -3320,7 +3329,7 @@ const Ho = () => ({
|
|
|
3320
3329
|
{
|
|
3321
3330
|
path: "/payout-account",
|
|
3322
3331
|
name: "mf-payment-payout-account",
|
|
3323
|
-
component: () => import("./PayoutAccount-
|
|
3332
|
+
component: () => import("./PayoutAccount-D5giLt_J.js"),
|
|
3324
3333
|
meta: {
|
|
3325
3334
|
sidebarDisplay: "i18n:payment.routes.payout_account",
|
|
3326
3335
|
region: { MY: !0 },
|
|
@@ -3337,7 +3346,7 @@ const Ho = () => ({
|
|
|
3337
3346
|
{
|
|
3338
3347
|
path: "/onboard-submission",
|
|
3339
3348
|
name: "mf-payment-onboard-submission",
|
|
3340
|
-
component: () => import("./OnboardSubmission-
|
|
3349
|
+
component: () => import("./OnboardSubmission-DXBjG3oR.js"),
|
|
3341
3350
|
meta: {
|
|
3342
3351
|
sidebarDisplay: "i18n:payment.routes.onboard_submission",
|
|
3343
3352
|
region: { MY: !0, TH: !0, AU: !0 },
|
|
@@ -3355,7 +3364,7 @@ const Ho = () => ({
|
|
|
3355
3364
|
path: "/onboard-submission/restaurant/:restaurantId/:type/:submission?",
|
|
3356
3365
|
name: "mf-payment-onboard-submission-form",
|
|
3357
3366
|
props: !0,
|
|
3358
|
-
component: () => import("./OnboardForm-
|
|
3367
|
+
component: () => import("./OnboardForm-Bq181JPX.js"),
|
|
3359
3368
|
meta: {
|
|
3360
3369
|
parent: "mf-payment-onboard-submission",
|
|
3361
3370
|
validationManifest: {
|
|
@@ -3371,7 +3380,7 @@ const Ho = () => ({
|
|
|
3371
3380
|
{
|
|
3372
3381
|
path: "/transaction-old",
|
|
3373
3382
|
name: "mf-payment-old-transaction",
|
|
3374
|
-
component: () => import("./TransactionOld-
|
|
3383
|
+
component: () => import("./TransactionOld-SaMACUtQ.js"),
|
|
3375
3384
|
meta: {
|
|
3376
3385
|
sidebarDisplay: "i18n:payment.routes.transaction",
|
|
3377
3386
|
validationManifest: {
|
|
@@ -3387,7 +3396,7 @@ const Ho = () => ({
|
|
|
3387
3396
|
{
|
|
3388
3397
|
path: "/transaction",
|
|
3389
3398
|
name: "mf-payment-transaction",
|
|
3390
|
-
component: () => import("./Transaction-
|
|
3399
|
+
component: () => import("./Transaction-BeNRIA2R.js"),
|
|
3391
3400
|
meta: {
|
|
3392
3401
|
sidebarDisplay: "i18n:payment.routes.transaction_new",
|
|
3393
3402
|
sidebarNew: !0,
|
|
@@ -3404,7 +3413,7 @@ const Ho = () => ({
|
|
|
3404
3413
|
{
|
|
3405
3414
|
path: "/settlement",
|
|
3406
3415
|
name: "mf-payment-settlement",
|
|
3407
|
-
component: () => import("./Settlement-
|
|
3416
|
+
component: () => import("./Settlement-CfU_5sp-.js"),
|
|
3408
3417
|
meta: {
|
|
3409
3418
|
sidebarDisplay: "i18n:payment.routes.settlement",
|
|
3410
3419
|
region: { MY: !0, SG: !0 },
|
|
@@ -3422,7 +3431,7 @@ const Ho = () => ({
|
|
|
3422
3431
|
path: "/settlement/:settlementId",
|
|
3423
3432
|
name: "mf-payment-settlement-transaction",
|
|
3424
3433
|
props: !0,
|
|
3425
|
-
component: () => import("./SettlementTransactions-
|
|
3434
|
+
component: () => import("./SettlementTransactions-CmX9LDuK.js"),
|
|
3426
3435
|
meta: {
|
|
3427
3436
|
parent: "mf-payment-settlement",
|
|
3428
3437
|
validationManifest: {
|
|
@@ -3590,8 +3599,8 @@ const Vs = function(t) {
|
|
|
3590
3599
|
const n = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
|
|
3591
3600
|
for (let s = 0; s < t.length; s += 3) {
|
|
3592
3601
|
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;
|
|
3593
|
-
let B = (c & 15) << 2 | A >> 6,
|
|
3594
|
-
l || (
|
|
3602
|
+
let B = (c & 15) << 2 | A >> 6, w = A & 63;
|
|
3603
|
+
l || (w = 64, a || (B = 64)), r.push(n[f], n[p], n[B], n[w]);
|
|
3595
3604
|
}
|
|
3596
3605
|
return r.join("");
|
|
3597
3606
|
},
|
|
@@ -3645,8 +3654,8 @@ const Vs = function(t) {
|
|
|
3645
3654
|
throw new So();
|
|
3646
3655
|
const B = i << 2 | c >> 4;
|
|
3647
3656
|
if (r.push(B), A !== 64) {
|
|
3648
|
-
const
|
|
3649
|
-
if (r.push(
|
|
3657
|
+
const w = c << 4 & 240 | A >> 2;
|
|
3658
|
+
if (r.push(w), p !== 64) {
|
|
3650
3659
|
const O = A << 6 & 192 | p;
|
|
3651
3660
|
r.push(O);
|
|
3652
3661
|
}
|
|
@@ -3878,10 +3887,10 @@ function sc() {
|
|
|
3878
3887
|
const ic = "FirebaseError";
|
|
3879
3888
|
class qe extends Error {
|
|
3880
3889
|
constructor(e, n, r) {
|
|
3881
|
-
super(n), this.code = e, this.customData = r, this.name = ic, Object.setPrototypeOf(this, qe.prototype), Error.captureStackTrace && Error.captureStackTrace(this,
|
|
3890
|
+
super(n), this.code = e, this.customData = r, this.name = ic, Object.setPrototypeOf(this, qe.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Pt.prototype.create);
|
|
3882
3891
|
}
|
|
3883
3892
|
}
|
|
3884
|
-
class
|
|
3893
|
+
class Pt {
|
|
3885
3894
|
constructor(e, n, r) {
|
|
3886
3895
|
this.service = e, this.serviceName = n, this.errors = r;
|
|
3887
3896
|
}
|
|
@@ -3903,7 +3912,7 @@ function cc(t) {
|
|
|
3903
3912
|
return !1;
|
|
3904
3913
|
return !0;
|
|
3905
3914
|
}
|
|
3906
|
-
function
|
|
3915
|
+
function Wt(t, e) {
|
|
3907
3916
|
if (t === e)
|
|
3908
3917
|
return !0;
|
|
3909
3918
|
const n = Object.keys(t), r = Object.keys(e);
|
|
@@ -3912,7 +3921,7 @@ function Ut(t, e) {
|
|
|
3912
3921
|
return !1;
|
|
3913
3922
|
const i = t[s], a = e[s];
|
|
3914
3923
|
if (ur(i) && ur(a)) {
|
|
3915
|
-
if (!
|
|
3924
|
+
if (!Wt(i, a))
|
|
3916
3925
|
return !1;
|
|
3917
3926
|
} else if (i !== a)
|
|
3918
3927
|
return !1;
|
|
@@ -3941,7 +3950,7 @@ function ur(t) {
|
|
|
3941
3950
|
* See the License for the specific language governing permissions and
|
|
3942
3951
|
* limitations under the License.
|
|
3943
3952
|
*/
|
|
3944
|
-
function
|
|
3953
|
+
function Ot(t) {
|
|
3945
3954
|
const e = [];
|
|
3946
3955
|
for (const [n, r] of Object.entries(t))
|
|
3947
3956
|
Array.isArray(r) ? r.forEach((s) => {
|
|
@@ -4434,9 +4443,9 @@ class Ns {
|
|
|
4434
4443
|
this._userLogHandler && this._userLogHandler(this, F.ERROR, ...e), this._logHandler(this, F.ERROR, ...e);
|
|
4435
4444
|
}
|
|
4436
4445
|
}
|
|
4437
|
-
const
|
|
4446
|
+
const vc = (t, e) => e.some((n) => t instanceof n);
|
|
4438
4447
|
let lr, Ar;
|
|
4439
|
-
function
|
|
4448
|
+
function wc() {
|
|
4440
4449
|
return lr || (lr = [
|
|
4441
4450
|
IDBDatabase,
|
|
4442
4451
|
IDBObjectStore,
|
|
@@ -4517,7 +4526,7 @@ function Mc(t) {
|
|
|
4517
4526
|
};
|
|
4518
4527
|
}
|
|
4519
4528
|
function Ic(t) {
|
|
4520
|
-
return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t),
|
|
4529
|
+
return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t), vc(t, wc()) ? new Proxy(t, Mn) : t);
|
|
4521
4530
|
}
|
|
4522
4531
|
function Fe(t) {
|
|
4523
4532
|
if (t instanceof IDBRequest)
|
|
@@ -4622,7 +4631,7 @@ const In = "@firebase/app", hr = "0.10.13";
|
|
|
4622
4631
|
* See the License for the specific language governing permissions and
|
|
4623
4632
|
* limitations under the License.
|
|
4624
4633
|
*/
|
|
4625
|
-
const
|
|
4634
|
+
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";
|
|
4626
4635
|
/**
|
|
4627
4636
|
* @license
|
|
4628
4637
|
* Copyright 2019 Google LLC
|
|
@@ -4685,20 +4694,20 @@ const Pn = "[DEFAULT]", au = {
|
|
|
4685
4694
|
* See the License for the specific language governing permissions and
|
|
4686
4695
|
* limitations under the License.
|
|
4687
4696
|
*/
|
|
4688
|
-
const
|
|
4697
|
+
const zt = /* @__PURE__ */ new Map(), ou = /* @__PURE__ */ new Map(), On = /* @__PURE__ */ new Map();
|
|
4689
4698
|
function mr(t, e) {
|
|
4690
4699
|
try {
|
|
4691
4700
|
t.container.addComponent(e);
|
|
4692
4701
|
} catch (n) {
|
|
4693
|
-
|
|
4702
|
+
we.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`, n);
|
|
4694
4703
|
}
|
|
4695
4704
|
}
|
|
4696
|
-
function
|
|
4705
|
+
function vt(t) {
|
|
4697
4706
|
const e = t.name;
|
|
4698
4707
|
if (On.has(e))
|
|
4699
|
-
return
|
|
4708
|
+
return we.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
4700
4709
|
On.set(e, t);
|
|
4701
|
-
for (const n of
|
|
4710
|
+
for (const n of zt.values())
|
|
4702
4711
|
mr(n, t);
|
|
4703
4712
|
for (const n of ou.values())
|
|
4704
4713
|
mr(n, t);
|
|
@@ -4742,7 +4751,7 @@ const cu = {
|
|
|
4742
4751
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
|
4743
4752
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
|
4744
4753
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
|
4745
|
-
}, ke = new
|
|
4754
|
+
}, ke = new Pt("app", "Firebase", cu);
|
|
4746
4755
|
/**
|
|
4747
4756
|
* @license
|
|
4748
4757
|
* Copyright 2019 Google LLC
|
|
@@ -4817,7 +4826,7 @@ class uu {
|
|
|
4817
4826
|
* See the License for the specific language governing permissions and
|
|
4818
4827
|
* limitations under the License.
|
|
4819
4828
|
*/
|
|
4820
|
-
const
|
|
4829
|
+
const Tt = iu;
|
|
4821
4830
|
function Ss(t, e = {}) {
|
|
4822
4831
|
let n = t;
|
|
4823
4832
|
typeof e != "object" && (e = { name: e });
|
|
@@ -4831,9 +4840,9 @@ function Ss(t, e = {}) {
|
|
|
4831
4840
|
"no-options"
|
|
4832
4841
|
/* AppError.NO_OPTIONS */
|
|
4833
4842
|
);
|
|
4834
|
-
const i =
|
|
4843
|
+
const i = zt.get(s);
|
|
4835
4844
|
if (i) {
|
|
4836
|
-
if (
|
|
4845
|
+
if (Wt(n, i.options) && Wt(r, i.config))
|
|
4837
4846
|
return i;
|
|
4838
4847
|
throw ke.create("duplicate-app", { appName: s });
|
|
4839
4848
|
}
|
|
@@ -4841,10 +4850,10 @@ function Ss(t, e = {}) {
|
|
|
4841
4850
|
for (const l of On.values())
|
|
4842
4851
|
a.addComponent(l);
|
|
4843
4852
|
const c = new uu(n, r, a);
|
|
4844
|
-
return
|
|
4853
|
+
return zt.set(s, c), c;
|
|
4845
4854
|
}
|
|
4846
4855
|
function lu(t = Pn) {
|
|
4847
|
-
const e =
|
|
4856
|
+
const e = zt.get(t);
|
|
4848
4857
|
if (!e && t === Pn && Rs())
|
|
4849
4858
|
return Ss();
|
|
4850
4859
|
if (!e)
|
|
@@ -4860,10 +4869,10 @@ function $e(t, e, n) {
|
|
|
4860
4869
|
const c = [
|
|
4861
4870
|
`Unable to register library "${s}" with version "${e}":`
|
|
4862
4871
|
];
|
|
4863
|
-
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 "/")`),
|
|
4872
|
+
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(" "));
|
|
4864
4873
|
return;
|
|
4865
4874
|
}
|
|
4866
|
-
|
|
4875
|
+
vt(new dt(
|
|
4867
4876
|
`${s}-version`,
|
|
4868
4877
|
() => ({ library: s, version: e }),
|
|
4869
4878
|
"VERSION"
|
|
@@ -4912,12 +4921,12 @@ async function hu(t) {
|
|
|
4912
4921
|
return await n.done, r;
|
|
4913
4922
|
} catch (e) {
|
|
4914
4923
|
if (e instanceof qe)
|
|
4915
|
-
|
|
4924
|
+
we.warn(e.message);
|
|
4916
4925
|
else {
|
|
4917
4926
|
const n = ke.create("idb-get", {
|
|
4918
4927
|
originalErrorMessage: e == null ? void 0 : e.message
|
|
4919
4928
|
});
|
|
4920
|
-
|
|
4929
|
+
we.warn(n.message);
|
|
4921
4930
|
}
|
|
4922
4931
|
}
|
|
4923
4932
|
}
|
|
@@ -4927,12 +4936,12 @@ async function fr(t, e) {
|
|
|
4927
4936
|
await r.objectStore(wt).put(e, Ws(t)), await r.done;
|
|
4928
4937
|
} catch (n) {
|
|
4929
4938
|
if (n instanceof qe)
|
|
4930
|
-
|
|
4939
|
+
we.warn(n.message);
|
|
4931
4940
|
else {
|
|
4932
4941
|
const r = ke.create("idb-set", {
|
|
4933
4942
|
originalErrorMessage: n == null ? void 0 : n.message
|
|
4934
4943
|
});
|
|
4935
|
-
|
|
4944
|
+
we.warn(r.message);
|
|
4936
4945
|
}
|
|
4937
4946
|
}
|
|
4938
4947
|
}
|
|
@@ -4978,7 +4987,7 @@ class gu {
|
|
|
4978
4987
|
return Date.now() - c <= fu;
|
|
4979
4988
|
}), this._storage.overwrite(this._heartbeatsCache));
|
|
4980
4989
|
} catch (r) {
|
|
4981
|
-
|
|
4990
|
+
we.warn(r);
|
|
4982
4991
|
}
|
|
4983
4992
|
}
|
|
4984
4993
|
/**
|
|
@@ -4996,7 +5005,7 @@ class gu {
|
|
|
4996
5005
|
const n = gr(), { heartbeatsToSend: r, unsentEntries: s } = pu(this._heartbeatsCache.heartbeats), i = Fs(JSON.stringify({ version: 2, heartbeats: r }));
|
|
4997
5006
|
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;
|
|
4998
5007
|
} catch (n) {
|
|
4999
|
-
return
|
|
5008
|
+
return we.warn(n), "";
|
|
5000
5009
|
}
|
|
5001
5010
|
}
|
|
5002
5011
|
}
|
|
@@ -5095,12 +5104,12 @@ function pr(t) {
|
|
|
5095
5104
|
* limitations under the License.
|
|
5096
5105
|
*/
|
|
5097
5106
|
function bu(t) {
|
|
5098
|
-
|
|
5107
|
+
vt(new dt(
|
|
5099
5108
|
"platform-logger",
|
|
5100
5109
|
(e) => new Gc(e),
|
|
5101
5110
|
"PRIVATE"
|
|
5102
5111
|
/* ComponentType.PRIVATE */
|
|
5103
|
-
)),
|
|
5112
|
+
)), vt(new dt(
|
|
5104
5113
|
"heartbeat",
|
|
5105
5114
|
(e) => new gu(e),
|
|
5106
5115
|
"PRIVATE"
|
|
@@ -5108,7 +5117,7 @@ function bu(t) {
|
|
|
5108
5117
|
)), $e(In, hr, t), $e(In, hr, "esm2017"), $e("fire-js", "");
|
|
5109
5118
|
}
|
|
5110
5119
|
bu("");
|
|
5111
|
-
var
|
|
5120
|
+
var vu = "firebase", wu = "10.14.1";
|
|
5112
5121
|
/**
|
|
5113
5122
|
* @license
|
|
5114
5123
|
* Copyright 2020 Google LLC
|
|
@@ -5125,7 +5134,7 @@ var wu = "firebase", vu = "10.14.1";
|
|
|
5125
5134
|
* See the License for the specific language governing permissions and
|
|
5126
5135
|
* limitations under the License.
|
|
5127
5136
|
*/
|
|
5128
|
-
$e(
|
|
5137
|
+
$e(vu, wu, "app");
|
|
5129
5138
|
var yr = function() {
|
|
5130
5139
|
return yr = Object.assign || function(e) {
|
|
5131
5140
|
for (var n, r = 1, s = arguments.length; r < s; r++) {
|
|
@@ -5148,7 +5157,7 @@ function zs() {
|
|
|
5148
5157
|
"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."
|
|
5149
5158
|
};
|
|
5150
5159
|
}
|
|
5151
|
-
const Bu = zs, Zs = new
|
|
5160
|
+
const Bu = zs, Zs = new Pt("auth", "Firebase", zs());
|
|
5152
5161
|
/**
|
|
5153
5162
|
* @license
|
|
5154
5163
|
* Copyright 2020 Google LLC
|
|
@@ -5165,12 +5174,12 @@ const Bu = zs, Zs = new It("auth", "Firebase", zs());
|
|
|
5165
5174
|
* See the License for the specific language governing permissions and
|
|
5166
5175
|
* limitations under the License.
|
|
5167
5176
|
*/
|
|
5168
|
-
const
|
|
5177
|
+
const Zt = new Ns("@firebase/auth");
|
|
5169
5178
|
function Du(t, ...e) {
|
|
5170
|
-
|
|
5179
|
+
Zt.logLevel <= F.WARN && Zt.warn(`Auth (${Tt}): ${t}`, ...e);
|
|
5171
5180
|
}
|
|
5172
|
-
function
|
|
5173
|
-
|
|
5181
|
+
function Nt(t, ...e) {
|
|
5182
|
+
Zt.logLevel <= F.ERROR && Zt.error(`Auth (${Tt}): ${t}`, ...e);
|
|
5174
5183
|
}
|
|
5175
5184
|
/**
|
|
5176
5185
|
* @license
|
|
@@ -5196,7 +5205,7 @@ function Ae(t, ...e) {
|
|
|
5196
5205
|
}
|
|
5197
5206
|
function Ls(t, e, n) {
|
|
5198
5207
|
const r = Object.assign(Object.assign({}, Bu()), { [e]: n });
|
|
5199
|
-
return new
|
|
5208
|
+
return new Pt("auth", "Firebase", r).create(e, {
|
|
5200
5209
|
appName: t.name
|
|
5201
5210
|
});
|
|
5202
5211
|
}
|
|
@@ -5216,7 +5225,7 @@ function M(t, e, ...n) {
|
|
|
5216
5225
|
}
|
|
5217
5226
|
function ye(t) {
|
|
5218
5227
|
const e = "INTERNAL ASSERTION FAILED: " + t;
|
|
5219
|
-
throw
|
|
5228
|
+
throw Nt(e), new Error(e);
|
|
5220
5229
|
}
|
|
5221
5230
|
function De(t, e) {
|
|
5222
5231
|
t || ye(e);
|
|
@@ -5300,7 +5309,7 @@ function Mu() {
|
|
|
5300
5309
|
* See the License for the specific language governing permissions and
|
|
5301
5310
|
* limitations under the License.
|
|
5302
5311
|
*/
|
|
5303
|
-
class
|
|
5312
|
+
class Gt {
|
|
5304
5313
|
constructor(e, n) {
|
|
5305
5314
|
this.shortDelay = e, this.longDelay = n, De(n > e, "Short delay should be less than long delay!"), this.isMobile = _o() || tc();
|
|
5306
5315
|
}
|
|
@@ -5490,7 +5499,7 @@ const Iu = {
|
|
|
5490
5499
|
* See the License for the specific language governing permissions and
|
|
5491
5500
|
* limitations under the License.
|
|
5492
5501
|
*/
|
|
5493
|
-
const Pu = new
|
|
5502
|
+
const Pu = new Gt(3e4, 6e4);
|
|
5494
5503
|
function sn(t, e) {
|
|
5495
5504
|
return t.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: t.tenantId }) : e;
|
|
5496
5505
|
}
|
|
@@ -5500,7 +5509,7 @@ async function mt(t, e, n, r, s = {}) {
|
|
|
5500
5509
|
r && (e === "GET" ? a = r : i = {
|
|
5501
5510
|
body: JSON.stringify(r)
|
|
5502
5511
|
});
|
|
5503
|
-
const c =
|
|
5512
|
+
const c = Ot(Object.assign({ key: t.config.apiKey }, a)).slice(1), l = await t._getAdditionalHeaders();
|
|
5504
5513
|
l[
|
|
5505
5514
|
"Content-Type"
|
|
5506
5515
|
/* HttpHeader.CONTENT_TYPE */
|
|
@@ -5526,17 +5535,17 @@ async function Js(t, e, n) {
|
|
|
5526
5535
|
s.clearNetworkTimeout();
|
|
5527
5536
|
const a = await i.json();
|
|
5528
5537
|
if ("needConfirmation" in a)
|
|
5529
|
-
throw
|
|
5538
|
+
throw kt(t, "account-exists-with-different-credential", a);
|
|
5530
5539
|
if (i.ok && !("errorMessage" in a))
|
|
5531
5540
|
return a;
|
|
5532
5541
|
{
|
|
5533
5542
|
const c = i.ok ? a.errorMessage : a.error.message, [l, A] = c.split(" : ");
|
|
5534
5543
|
if (l === "FEDERATED_USER_ID_ALREADY_LINKED")
|
|
5535
|
-
throw
|
|
5544
|
+
throw kt(t, "credential-already-in-use", a);
|
|
5536
5545
|
if (l === "EMAIL_EXISTS")
|
|
5537
|
-
throw
|
|
5546
|
+
throw kt(t, "email-already-in-use", a);
|
|
5538
5547
|
if (l === "USER_DISABLED")
|
|
5539
|
-
throw
|
|
5548
|
+
throw kt(t, "user-disabled", a);
|
|
5540
5549
|
const f = r[l] || l.toLowerCase().replace(/[_\s]+/g, "-");
|
|
5541
5550
|
if (A)
|
|
5542
5551
|
throw Ls(t, f, A);
|
|
@@ -5572,7 +5581,7 @@ class Ou {
|
|
|
5572
5581
|
clearTimeout(this.timer);
|
|
5573
5582
|
}
|
|
5574
5583
|
}
|
|
5575
|
-
function
|
|
5584
|
+
function kt(t, e, n) {
|
|
5576
5585
|
const r = {
|
|
5577
5586
|
appName: t.name
|
|
5578
5587
|
};
|
|
@@ -5652,15 +5661,15 @@ function yn(t) {
|
|
|
5652
5661
|
function Ln(t) {
|
|
5653
5662
|
const [e, n, r] = t.split(".");
|
|
5654
5663
|
if (e === void 0 || n === void 0 || r === void 0)
|
|
5655
|
-
return
|
|
5664
|
+
return Nt("JWT malformed, contained fewer than 3 sections"), null;
|
|
5656
5665
|
try {
|
|
5657
5666
|
const s = ks(n);
|
|
5658
|
-
return s ? JSON.parse(s) : (
|
|
5667
|
+
return s ? JSON.parse(s) : (Nt("Failed to decode base64 JWT payload"), null);
|
|
5659
5668
|
} catch (s) {
|
|
5660
|
-
return
|
|
5669
|
+
return Nt("Caught error parsing JWT payload as JSON", s == null ? void 0 : s.toString()), null;
|
|
5661
5670
|
}
|
|
5662
5671
|
}
|
|
5663
|
-
function
|
|
5672
|
+
function vr(t) {
|
|
5664
5673
|
const e = Ln(t);
|
|
5665
5674
|
return M(
|
|
5666
5675
|
e,
|
|
@@ -5692,7 +5701,7 @@ function wr(t) {
|
|
|
5692
5701
|
* See the License for the specific language governing permissions and
|
|
5693
5702
|
* limitations under the License.
|
|
5694
5703
|
*/
|
|
5695
|
-
async function
|
|
5704
|
+
async function Bt(t, e, n = !1) {
|
|
5696
5705
|
if (n)
|
|
5697
5706
|
return e;
|
|
5698
5707
|
try {
|
|
@@ -5815,9 +5824,9 @@ class Gn {
|
|
|
5815
5824
|
* See the License for the specific language governing permissions and
|
|
5816
5825
|
* limitations under the License.
|
|
5817
5826
|
*/
|
|
5818
|
-
async function
|
|
5827
|
+
async function Lt(t) {
|
|
5819
5828
|
var e;
|
|
5820
|
-
const n = t.auth, r = await t.getIdToken(), s = await
|
|
5829
|
+
const n = t.auth, r = await t.getIdToken(), s = await Bt(t, ei(n, { idToken: r }));
|
|
5821
5830
|
M(
|
|
5822
5831
|
s == null ? void 0 : s.users.length,
|
|
5823
5832
|
n,
|
|
@@ -5842,7 +5851,7 @@ async function Zt(t) {
|
|
|
5842
5851
|
}
|
|
5843
5852
|
async function Vu(t) {
|
|
5844
5853
|
const e = ht(t);
|
|
5845
|
-
await
|
|
5854
|
+
await Lt(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
5846
5855
|
}
|
|
5847
5856
|
function xu(t, e) {
|
|
5848
5857
|
return [...t.filter((r) => !e.some((s) => s.providerId === r.providerId)), ...e];
|
|
@@ -5878,7 +5887,7 @@ function ti(t) {
|
|
|
5878
5887
|
*/
|
|
5879
5888
|
async function Fu(t, e) {
|
|
5880
5889
|
const n = await Js(t, {}, async () => {
|
|
5881
|
-
const r =
|
|
5890
|
+
const r = Ot({
|
|
5882
5891
|
grant_type: "refresh_token",
|
|
5883
5892
|
refresh_token: e
|
|
5884
5893
|
}).slice(1), { tokenApiHost: s, apiKey: i } = t.config, a = $s(t, s, "/v1/token", `key=${i}`), c = await t._getAdditionalHeaders();
|
|
@@ -5937,7 +5946,7 @@ class et {
|
|
|
5937
5946
|
"internal-error"
|
|
5938
5947
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5939
5948
|
);
|
|
5940
|
-
const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) :
|
|
5949
|
+
const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : vr(e.idToken);
|
|
5941
5950
|
this.updateTokensAndExpiration(e.idToken, e.refreshToken, n);
|
|
5942
5951
|
}
|
|
5943
5952
|
updateFromIdToken(e) {
|
|
@@ -5946,7 +5955,7 @@ class et {
|
|
|
5946
5955
|
"internal-error"
|
|
5947
5956
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5948
5957
|
);
|
|
5949
|
-
const n =
|
|
5958
|
+
const n = vr(e);
|
|
5950
5959
|
this.updateTokensAndExpiration(e, null, n);
|
|
5951
5960
|
}
|
|
5952
5961
|
async getToken(e, n = !1) {
|
|
@@ -6019,7 +6028,7 @@ class be {
|
|
|
6019
6028
|
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);
|
|
6020
6029
|
}
|
|
6021
6030
|
async getIdToken(e) {
|
|
6022
|
-
const n = await
|
|
6031
|
+
const n = await Bt(this, this.stsTokenManager.getToken(this.auth, e));
|
|
6023
6032
|
return M(
|
|
6024
6033
|
n,
|
|
6025
6034
|
this.auth,
|
|
@@ -6064,13 +6073,13 @@ class be {
|
|
|
6064
6073
|
}
|
|
6065
6074
|
async _updateTokensIfNecessary(e, n = !1) {
|
|
6066
6075
|
let r = !1;
|
|
6067
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await
|
|
6076
|
+
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);
|
|
6068
6077
|
}
|
|
6069
6078
|
async delete() {
|
|
6070
6079
|
if (pe(this.auth.app))
|
|
6071
6080
|
return Promise.reject(Re(this.auth));
|
|
6072
6081
|
const e = await this.getIdToken();
|
|
6073
|
-
return await
|
|
6082
|
+
return await Bt(this, Tu(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
6074
6083
|
}
|
|
6075
6084
|
toJSON() {
|
|
6076
6085
|
return Object.assign(Object.assign({
|
|
@@ -6098,7 +6107,7 @@ class be {
|
|
|
6098
6107
|
}
|
|
6099
6108
|
static _fromJSON(e, n) {
|
|
6100
6109
|
var r, s, i, a, c, l, A, f;
|
|
6101
|
-
const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0,
|
|
6110
|
+
const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0, w = (i = n.phoneNumber) !== null && i !== void 0 ? i : void 0, O = (a = n.photoURL) !== null && a !== void 0 ? a : void 0, I = (c = n.tenantId) !== null && c !== void 0 ? c : void 0, V = (l = n._redirectEventId) !== null && l !== void 0 ? l : void 0, R = (A = n.createdAt) !== null && A !== void 0 ? A : void 0, Q = (f = n.lastLoginAt) !== null && f !== void 0 ? f : void 0, { uid: Y, emailVerified: v, isAnonymous: H, providerData: U, stsTokenManager: ee } = n;
|
|
6102
6111
|
M(
|
|
6103
6112
|
Y && ee,
|
|
6104
6113
|
e,
|
|
@@ -6112,7 +6121,7 @@ class be {
|
|
|
6112
6121
|
"internal-error"
|
|
6113
6122
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
6114
6123
|
), Ee(p, e.name), Ee(B, e.name), M(
|
|
6115
|
-
typeof
|
|
6124
|
+
typeof v == "boolean",
|
|
6116
6125
|
e,
|
|
6117
6126
|
"internal-error"
|
|
6118
6127
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -6121,16 +6130,16 @@ class be {
|
|
|
6121
6130
|
e,
|
|
6122
6131
|
"internal-error"
|
|
6123
6132
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
6124
|
-
), Ee(
|
|
6133
|
+
), Ee(w, e.name), Ee(O, e.name), Ee(I, e.name), Ee(V, e.name), Ee(R, e.name), Ee(Q, e.name);
|
|
6125
6134
|
const u = new be({
|
|
6126
6135
|
uid: Y,
|
|
6127
6136
|
auth: e,
|
|
6128
6137
|
email: B,
|
|
6129
|
-
emailVerified:
|
|
6138
|
+
emailVerified: v,
|
|
6130
6139
|
displayName: p,
|
|
6131
6140
|
isAnonymous: H,
|
|
6132
6141
|
photoURL: O,
|
|
6133
|
-
phoneNumber:
|
|
6142
|
+
phoneNumber: w,
|
|
6134
6143
|
tenantId: I,
|
|
6135
6144
|
stsTokenManager: q,
|
|
6136
6145
|
createdAt: R,
|
|
@@ -6152,7 +6161,7 @@ class be {
|
|
|
6152
6161
|
stsTokenManager: s,
|
|
6153
6162
|
isAnonymous: r
|
|
6154
6163
|
});
|
|
6155
|
-
return await
|
|
6164
|
+
return await Lt(i), i;
|
|
6156
6165
|
}
|
|
6157
6166
|
/**
|
|
6158
6167
|
* Initialize a User from an idToken server response
|
|
@@ -6204,11 +6213,11 @@ class be {
|
|
|
6204
6213
|
* See the License for the specific language governing permissions and
|
|
6205
6214
|
* limitations under the License.
|
|
6206
6215
|
*/
|
|
6207
|
-
const
|
|
6208
|
-
function
|
|
6216
|
+
const wr = /* @__PURE__ */ new Map();
|
|
6217
|
+
function ve(t) {
|
|
6209
6218
|
De(t instanceof Function, "Expected a class definition");
|
|
6210
|
-
let e =
|
|
6211
|
-
return e ? (De(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(),
|
|
6219
|
+
let e = wr.get(t);
|
|
6220
|
+
return e ? (De(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(), wr.set(t, e), e);
|
|
6212
6221
|
}
|
|
6213
6222
|
/**
|
|
6214
6223
|
* @license
|
|
@@ -6266,14 +6275,14 @@ const Br = ni;
|
|
|
6266
6275
|
* See the License for the specific language governing permissions and
|
|
6267
6276
|
* limitations under the License.
|
|
6268
6277
|
*/
|
|
6269
|
-
function
|
|
6278
|
+
function Ht(t, e, n) {
|
|
6270
6279
|
return `firebase:${t}:${e}:${n}`;
|
|
6271
6280
|
}
|
|
6272
6281
|
class tt {
|
|
6273
6282
|
constructor(e, n, r) {
|
|
6274
6283
|
this.persistence = e, this.auth = n, this.userKey = r;
|
|
6275
6284
|
const { config: s, name: i } = this.auth;
|
|
6276
|
-
this.fullUserKey =
|
|
6285
|
+
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);
|
|
6277
6286
|
}
|
|
6278
6287
|
setCurrentUser(e) {
|
|
6279
6288
|
return this.persistence._set(this.fullUserKey, e.toJSON());
|
|
@@ -6300,13 +6309,13 @@ class tt {
|
|
|
6300
6309
|
}
|
|
6301
6310
|
static async create(e, n, r = "authUser") {
|
|
6302
6311
|
if (!n.length)
|
|
6303
|
-
return new tt(
|
|
6312
|
+
return new tt(ve(Br), e, r);
|
|
6304
6313
|
const s = (await Promise.all(n.map(async (A) => {
|
|
6305
6314
|
if (await A._isAvailable())
|
|
6306
6315
|
return A;
|
|
6307
6316
|
}))).filter((A) => A);
|
|
6308
|
-
let i = s[0] ||
|
|
6309
|
-
const a =
|
|
6317
|
+
let i = s[0] || ve(Br);
|
|
6318
|
+
const a = Ht(r, e.config.apiKey, e.name);
|
|
6310
6319
|
let c = null;
|
|
6311
6320
|
for (const A of n)
|
|
6312
6321
|
try {
|
|
@@ -6439,7 +6448,7 @@ function Ai(t, e = []) {
|
|
|
6439
6448
|
n = t;
|
|
6440
6449
|
}
|
|
6441
6450
|
const r = e.length ? e.join(",") : "FirebaseCore-web";
|
|
6442
|
-
return `${n}/JsCore/${
|
|
6451
|
+
return `${n}/JsCore/${Tt}/${r}`;
|
|
6443
6452
|
}
|
|
6444
6453
|
/**
|
|
6445
6454
|
* @license
|
|
@@ -6624,7 +6633,7 @@ class Su {
|
|
|
6624
6633
|
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;
|
|
6625
6634
|
}
|
|
6626
6635
|
_initializeWithPersistence(e, n) {
|
|
6627
|
-
return n && (this._popupRedirectResolver =
|
|
6636
|
+
return n && (this._popupRedirectResolver = ve(n)), this._initializationPromise = this.queue(async () => {
|
|
6628
6637
|
var r, s;
|
|
6629
6638
|
if (!this._deleted && (this.persistenceManager = await tt.create(this, e), !this._deleted)) {
|
|
6630
6639
|
if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
|
|
@@ -6707,7 +6716,7 @@ class Su {
|
|
|
6707
6716
|
}
|
|
6708
6717
|
async reloadAndSetCurrentUserOrClear(e) {
|
|
6709
6718
|
try {
|
|
6710
|
-
await
|
|
6719
|
+
await Lt(e);
|
|
6711
6720
|
} catch (n) {
|
|
6712
6721
|
if ((n == null ? void 0 : n.code) !== "auth/network-request-failed")
|
|
6713
6722
|
return this.directlySetCurrentUser(null);
|
|
@@ -6751,7 +6760,7 @@ class Su {
|
|
|
6751
6760
|
}
|
|
6752
6761
|
setPersistence(e) {
|
|
6753
6762
|
return pe(this.app) ? Promise.reject(Re(this)) : this.queue(async () => {
|
|
6754
|
-
await this.assertedPersistence.setPersistence(
|
|
6763
|
+
await this.assertedPersistence.setPersistence(ve(e));
|
|
6755
6764
|
});
|
|
6756
6765
|
}
|
|
6757
6766
|
_getRecaptchaConfig() {
|
|
@@ -6773,7 +6782,7 @@ class Su {
|
|
|
6773
6782
|
return this.assertedPersistence.persistence.type;
|
|
6774
6783
|
}
|
|
6775
6784
|
_updateErrorMap(e) {
|
|
6776
|
-
this._errorFactory = new
|
|
6785
|
+
this._errorFactory = new Pt("auth", "Firebase", e());
|
|
6777
6786
|
}
|
|
6778
6787
|
onAuthStateChanged(e, n, r) {
|
|
6779
6788
|
return this.registerStateListener(this.authStateSubscription, e, n, r);
|
|
@@ -6824,7 +6833,7 @@ class Su {
|
|
|
6824
6833
|
}
|
|
6825
6834
|
async getOrInitRedirectPersistenceManager(e) {
|
|
6826
6835
|
if (!this.redirectPersistenceManager) {
|
|
6827
|
-
const n = e &&
|
|
6836
|
+
const n = e && ve(e) || this._popupRedirectResolver;
|
|
6828
6837
|
M(
|
|
6829
6838
|
n,
|
|
6830
6839
|
this,
|
|
@@ -6832,7 +6841,7 @@ class Su {
|
|
|
6832
6841
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
6833
6842
|
), this.redirectPersistenceManager = await tt.create(
|
|
6834
6843
|
this,
|
|
6835
|
-
[
|
|
6844
|
+
[ve(n._redirectPersistence)],
|
|
6836
6845
|
"redirectUser"
|
|
6837
6846
|
/* KeyName.REDIRECT_USER */
|
|
6838
6847
|
), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
|
|
@@ -7024,7 +7033,7 @@ function Lu(t, e) {
|
|
|
7024
7033
|
const n = Xs(t, "auth");
|
|
7025
7034
|
if (n.isInitialized()) {
|
|
7026
7035
|
const s = n.getImmediate(), i = n.getOptions();
|
|
7027
|
-
if (
|
|
7036
|
+
if (Wt(i, e ?? {}))
|
|
7028
7037
|
return s;
|
|
7029
7038
|
Be(
|
|
7030
7039
|
s,
|
|
@@ -7035,7 +7044,7 @@ function Lu(t, e) {
|
|
|
7035
7044
|
return n.initialize({ options: e });
|
|
7036
7045
|
}
|
|
7037
7046
|
function Ku(t, e) {
|
|
7038
|
-
const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(
|
|
7047
|
+
const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(ve);
|
|
7039
7048
|
e != null && e.errorMap && t._updateErrorMap(e.errorMap), t._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
|
7040
7049
|
}
|
|
7041
7050
|
function Ju(t, e, n) {
|
|
@@ -7231,7 +7240,7 @@ class Ze extends hi {
|
|
|
7231
7240
|
e.pendingToken = this.pendingToken;
|
|
7232
7241
|
else {
|
|
7233
7242
|
const n = {};
|
|
7234
|
-
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 =
|
|
7243
|
+
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);
|
|
7235
7244
|
}
|
|
7236
7245
|
return e;
|
|
7237
7246
|
}
|
|
@@ -7305,7 +7314,7 @@ class mi {
|
|
|
7305
7314
|
* See the License for the specific language governing permissions and
|
|
7306
7315
|
* limitations under the License.
|
|
7307
7316
|
*/
|
|
7308
|
-
class
|
|
7317
|
+
class jt extends mi {
|
|
7309
7318
|
constructor() {
|
|
7310
7319
|
super(...arguments), this.scopes = [];
|
|
7311
7320
|
}
|
|
@@ -7340,7 +7349,7 @@ class Gt extends mi {
|
|
|
7340
7349
|
* See the License for the specific language governing permissions and
|
|
7341
7350
|
* limitations under the License.
|
|
7342
7351
|
*/
|
|
7343
|
-
class Ie extends
|
|
7352
|
+
class Ie extends jt {
|
|
7344
7353
|
constructor() {
|
|
7345
7354
|
super(
|
|
7346
7355
|
"facebook.com"
|
|
@@ -7411,7 +7420,7 @@ Ie.PROVIDER_ID = "facebook.com";
|
|
|
7411
7420
|
* See the License for the specific language governing permissions and
|
|
7412
7421
|
* limitations under the License.
|
|
7413
7422
|
*/
|
|
7414
|
-
class Pe extends
|
|
7423
|
+
class Pe extends jt {
|
|
7415
7424
|
constructor() {
|
|
7416
7425
|
super(
|
|
7417
7426
|
"google.com"
|
|
@@ -7487,7 +7496,7 @@ Pe.PROVIDER_ID = "google.com";
|
|
|
7487
7496
|
* See the License for the specific language governing permissions and
|
|
7488
7497
|
* limitations under the License.
|
|
7489
7498
|
*/
|
|
7490
|
-
class Oe extends
|
|
7499
|
+
class Oe extends jt {
|
|
7491
7500
|
constructor() {
|
|
7492
7501
|
super(
|
|
7493
7502
|
"github.com"
|
|
@@ -7551,7 +7560,7 @@ Oe.PROVIDER_ID = "github.com";
|
|
|
7551
7560
|
* See the License for the specific language governing permissions and
|
|
7552
7561
|
* limitations under the License.
|
|
7553
7562
|
*/
|
|
7554
|
-
class Te extends
|
|
7563
|
+
class Te extends jt {
|
|
7555
7564
|
constructor() {
|
|
7556
7565
|
super(
|
|
7557
7566
|
"twitter.com"
|
|
@@ -7667,10 +7676,10 @@ function Mr(t) {
|
|
|
7667
7676
|
* See the License for the specific language governing permissions and
|
|
7668
7677
|
* limitations under the License.
|
|
7669
7678
|
*/
|
|
7670
|
-
class
|
|
7679
|
+
class Kt extends qe {
|
|
7671
7680
|
constructor(e, n, r, s) {
|
|
7672
7681
|
var i;
|
|
7673
|
-
super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this,
|
|
7682
|
+
super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this, Kt.prototype), this.customData = {
|
|
7674
7683
|
appName: e.name,
|
|
7675
7684
|
tenantId: (i = e.tenantId) !== null && i !== void 0 ? i : void 0,
|
|
7676
7685
|
_serverResponse: n.customData._serverResponse,
|
|
@@ -7678,16 +7687,16 @@ class Lt extends qe {
|
|
|
7678
7687
|
};
|
|
7679
7688
|
}
|
|
7680
7689
|
static _fromErrorAndOperation(e, n, r, s) {
|
|
7681
|
-
return new
|
|
7690
|
+
return new Kt(e, n, r, s);
|
|
7682
7691
|
}
|
|
7683
7692
|
}
|
|
7684
7693
|
function fi(t, e, n, r) {
|
|
7685
7694
|
return (e === "reauthenticate" ? n._getReauthenticationResolver(t) : n._getIdTokenResponse(t)).catch((i) => {
|
|
7686
|
-
throw i.code === "auth/multi-factor-auth-required" ?
|
|
7695
|
+
throw i.code === "auth/multi-factor-auth-required" ? Kt._fromErrorAndOperation(t, i, e, r) : i;
|
|
7687
7696
|
});
|
|
7688
7697
|
}
|
|
7689
7698
|
async function tl(t, e, n = !1) {
|
|
7690
|
-
const r = await
|
|
7699
|
+
const r = await Bt(t, e._linkToIdToken(t.auth, await t.getIdToken()), n);
|
|
7691
7700
|
return Le._forOperation(t, "link", r);
|
|
7692
7701
|
}
|
|
7693
7702
|
/**
|
|
@@ -7712,7 +7721,7 @@ async function nl(t, e, n = !1) {
|
|
|
7712
7721
|
return Promise.reject(Re(r));
|
|
7713
7722
|
const s = "reauthenticate";
|
|
7714
7723
|
try {
|
|
7715
|
-
const i = await
|
|
7724
|
+
const i = await Bt(t, fi(r, s, e, t), n);
|
|
7716
7725
|
M(
|
|
7717
7726
|
i.idToken,
|
|
7718
7727
|
r,
|
|
@@ -7813,7 +7822,7 @@ function al(t, e, n, r) {
|
|
|
7813
7822
|
function ol(t, e, n) {
|
|
7814
7823
|
return ht(t).beforeAuthStateChanged(e, n);
|
|
7815
7824
|
}
|
|
7816
|
-
const
|
|
7825
|
+
const Jt = "__sak";
|
|
7817
7826
|
/**
|
|
7818
7827
|
* @license
|
|
7819
7828
|
* Copyright 2019 Google LLC
|
|
@@ -7836,7 +7845,7 @@ class gi {
|
|
|
7836
7845
|
}
|
|
7837
7846
|
_isAvailable() {
|
|
7838
7847
|
try {
|
|
7839
|
-
return this.storage ? (this.storage.setItem(
|
|
7848
|
+
return this.storage ? (this.storage.setItem(Jt, "1"), this.storage.removeItem(Jt), Promise.resolve(!0)) : Promise.resolve(!1);
|
|
7840
7849
|
} catch {
|
|
7841
7850
|
return Promise.resolve(!1);
|
|
7842
7851
|
}
|
|
@@ -8256,7 +8265,7 @@ function hl(t) {
|
|
|
8256
8265
|
* See the License for the specific language governing permissions and
|
|
8257
8266
|
* limitations under the License.
|
|
8258
8267
|
*/
|
|
8259
|
-
function
|
|
8268
|
+
function vi() {
|
|
8260
8269
|
return typeof de().WorkerGlobalScope < "u" && typeof de().importScripts == "function";
|
|
8261
8270
|
}
|
|
8262
8271
|
async function ml() {
|
|
@@ -8273,7 +8282,7 @@ function fl() {
|
|
|
8273
8282
|
return ((t = navigator == null ? void 0 : navigator.serviceWorker) === null || t === void 0 ? void 0 : t.controller) || null;
|
|
8274
8283
|
}
|
|
8275
8284
|
function gl() {
|
|
8276
|
-
return
|
|
8285
|
+
return vi() ? self : null;
|
|
8277
8286
|
}
|
|
8278
8287
|
/**
|
|
8279
8288
|
* @license
|
|
@@ -8291,8 +8300,8 @@ function gl() {
|
|
|
8291
8300
|
* See the License for the specific language governing permissions and
|
|
8292
8301
|
* limitations under the License.
|
|
8293
8302
|
*/
|
|
8294
|
-
const
|
|
8295
|
-
class
|
|
8303
|
+
const wi = "firebaseLocalStorageDb", pl = 1, _t = "firebaseLocalStorage", Bi = "fbase_key";
|
|
8304
|
+
class Yt {
|
|
8296
8305
|
constructor(e) {
|
|
8297
8306
|
this.request = e;
|
|
8298
8307
|
}
|
|
@@ -8307,27 +8316,27 @@ class jt {
|
|
|
8307
8316
|
}
|
|
8308
8317
|
}
|
|
8309
8318
|
function cn(t, e) {
|
|
8310
|
-
return t.transaction([
|
|
8319
|
+
return t.transaction([_t], e ? "readwrite" : "readonly").objectStore(_t);
|
|
8311
8320
|
}
|
|
8312
8321
|
function yl() {
|
|
8313
|
-
const t = indexedDB.deleteDatabase(
|
|
8314
|
-
return new
|
|
8322
|
+
const t = indexedDB.deleteDatabase(wi);
|
|
8323
|
+
return new Yt(t).toPromise();
|
|
8315
8324
|
}
|
|
8316
8325
|
function jn() {
|
|
8317
|
-
const t = indexedDB.open(
|
|
8326
|
+
const t = indexedDB.open(wi, pl);
|
|
8318
8327
|
return new Promise((e, n) => {
|
|
8319
8328
|
t.addEventListener("error", () => {
|
|
8320
8329
|
n(t.error);
|
|
8321
8330
|
}), t.addEventListener("upgradeneeded", () => {
|
|
8322
8331
|
const r = t.result;
|
|
8323
8332
|
try {
|
|
8324
|
-
r.createObjectStore(
|
|
8333
|
+
r.createObjectStore(_t, { keyPath: Bi });
|
|
8325
8334
|
} catch (s) {
|
|
8326
8335
|
n(s);
|
|
8327
8336
|
}
|
|
8328
8337
|
}), t.addEventListener("success", async () => {
|
|
8329
8338
|
const r = t.result;
|
|
8330
|
-
r.objectStoreNames.contains(
|
|
8339
|
+
r.objectStoreNames.contains(_t) ? e(r) : (r.close(), await yl(), e(await jn()));
|
|
8331
8340
|
});
|
|
8332
8341
|
});
|
|
8333
8342
|
}
|
|
@@ -8336,17 +8345,17 @@ async function Ir(t, e, n) {
|
|
|
8336
8345
|
[Bi]: e,
|
|
8337
8346
|
value: n
|
|
8338
8347
|
});
|
|
8339
|
-
return new
|
|
8348
|
+
return new Yt(r).toPromise();
|
|
8340
8349
|
}
|
|
8341
8350
|
async function bl(t, e) {
|
|
8342
|
-
const n = cn(t, !1).get(e), r = await new
|
|
8351
|
+
const n = cn(t, !1).get(e), r = await new Yt(n).toPromise();
|
|
8343
8352
|
return r === void 0 ? null : r.value;
|
|
8344
8353
|
}
|
|
8345
8354
|
function Pr(t, e) {
|
|
8346
8355
|
const n = cn(t, !0).delete(e);
|
|
8347
|
-
return new
|
|
8356
|
+
return new Yt(n).toPromise();
|
|
8348
8357
|
}
|
|
8349
|
-
const
|
|
8358
|
+
const vl = 800, wl = 3;
|
|
8350
8359
|
class Di {
|
|
8351
8360
|
constructor() {
|
|
8352
8361
|
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(() => {
|
|
@@ -8363,7 +8372,7 @@ class Di {
|
|
|
8363
8372
|
const r = await this._openDb();
|
|
8364
8373
|
return await e(r);
|
|
8365
8374
|
} catch (r) {
|
|
8366
|
-
if (n++ >
|
|
8375
|
+
if (n++ > wl)
|
|
8367
8376
|
throw r;
|
|
8368
8377
|
this.db && (this.db.close(), this.db = void 0);
|
|
8369
8378
|
}
|
|
@@ -8373,7 +8382,7 @@ class Di {
|
|
|
8373
8382
|
* postMessage interface to send these events to the worker ourselves.
|
|
8374
8383
|
*/
|
|
8375
8384
|
async initializeServiceWorkerMessaging() {
|
|
8376
|
-
return
|
|
8385
|
+
return vi() ? this.initializeReceiver() : this.initializeSender();
|
|
8377
8386
|
}
|
|
8378
8387
|
/**
|
|
8379
8388
|
* As the worker we should listen to events from the main window.
|
|
@@ -8436,7 +8445,7 @@ class Di {
|
|
|
8436
8445
|
if (!indexedDB)
|
|
8437
8446
|
return !1;
|
|
8438
8447
|
const e = await jn();
|
|
8439
|
-
return await Ir(e,
|
|
8448
|
+
return await Ir(e, Jt, "1"), await Pr(e, Jt), !0;
|
|
8440
8449
|
} catch {
|
|
8441
8450
|
}
|
|
8442
8451
|
return !1;
|
|
@@ -8462,7 +8471,7 @@ class Di {
|
|
|
8462
8471
|
async _poll() {
|
|
8463
8472
|
const e = await this._withRetries((s) => {
|
|
8464
8473
|
const i = cn(s, !1).getAll();
|
|
8465
|
-
return new
|
|
8474
|
+
return new Yt(i).toPromise();
|
|
8466
8475
|
});
|
|
8467
8476
|
if (!e)
|
|
8468
8477
|
return [];
|
|
@@ -8484,7 +8493,7 @@ class Di {
|
|
|
8484
8493
|
s(n);
|
|
8485
8494
|
}
|
|
8486
8495
|
startPolling() {
|
|
8487
|
-
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(),
|
|
8496
|
+
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), vl);
|
|
8488
8497
|
}
|
|
8489
8498
|
stopPolling() {
|
|
8490
8499
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
|
@@ -8498,7 +8507,7 @@ class Di {
|
|
|
8498
8507
|
}
|
|
8499
8508
|
Di.type = "LOCAL";
|
|
8500
8509
|
const Bl = Di;
|
|
8501
|
-
new
|
|
8510
|
+
new Gt(3e4, 6e4);
|
|
8502
8511
|
/**
|
|
8503
8512
|
* @license
|
|
8504
8513
|
* Copyright 2021 Google LLC
|
|
@@ -8516,7 +8525,7 @@ new Tt(3e4, 6e4);
|
|
|
8516
8525
|
* limitations under the License.
|
|
8517
8526
|
*/
|
|
8518
8527
|
function Dl(t, e) {
|
|
8519
|
-
return e ?
|
|
8528
|
+
return e ? ve(e) : (M(
|
|
8520
8529
|
t._popupRedirectResolver,
|
|
8521
8530
|
t,
|
|
8522
8531
|
"argument-error"
|
|
@@ -8689,7 +8698,7 @@ class Ci {
|
|
|
8689
8698
|
* See the License for the specific language governing permissions and
|
|
8690
8699
|
* limitations under the License.
|
|
8691
8700
|
*/
|
|
8692
|
-
const Il = new
|
|
8701
|
+
const Il = new Gt(2e3, 1e4);
|
|
8693
8702
|
class _e extends Ci {
|
|
8694
8703
|
constructor(e, n, r, s, i) {
|
|
8695
8704
|
super(e, n, s, i), this.provider = r, this.authWindow = null, this.pollId = null, _e.currentPopupAction && _e.currentPopupAction.cancel(), _e.currentPopupAction = this;
|
|
@@ -8775,7 +8784,7 @@ _e.currentPopupAction = null;
|
|
|
8775
8784
|
* See the License for the specific language governing permissions and
|
|
8776
8785
|
* limitations under the License.
|
|
8777
8786
|
*/
|
|
8778
|
-
const Pl = "pendingRedirect",
|
|
8787
|
+
const Pl = "pendingRedirect", Qt = /* @__PURE__ */ new Map();
|
|
8779
8788
|
class Ol extends Ci {
|
|
8780
8789
|
constructor(e, n, r = !1) {
|
|
8781
8790
|
super(e, [
|
|
@@ -8791,7 +8800,7 @@ class Ol extends Ci {
|
|
|
8791
8800
|
* just return it.
|
|
8792
8801
|
*/
|
|
8793
8802
|
async execute() {
|
|
8794
|
-
let e =
|
|
8803
|
+
let e = Qt.get(this.auth._key());
|
|
8795
8804
|
if (!e) {
|
|
8796
8805
|
try {
|
|
8797
8806
|
const r = await Tl(this.resolver, this.auth) ? await super.execute() : null;
|
|
@@ -8799,9 +8808,9 @@ class Ol extends Ci {
|
|
|
8799
8808
|
} catch (n) {
|
|
8800
8809
|
e = () => Promise.reject(n);
|
|
8801
8810
|
}
|
|
8802
|
-
|
|
8811
|
+
Qt.set(this.auth._key(), e);
|
|
8803
8812
|
}
|
|
8804
|
-
return this.bypassAuthState ||
|
|
8813
|
+
return this.bypassAuthState || Qt.set(this.auth._key(), () => Promise.resolve(null)), e();
|
|
8805
8814
|
}
|
|
8806
8815
|
async onAuthEvent(e) {
|
|
8807
8816
|
if (e.type === "signInViaRedirect")
|
|
@@ -8830,13 +8839,13 @@ async function Tl(t, e) {
|
|
|
8830
8839
|
return await r._remove(n), s;
|
|
8831
8840
|
}
|
|
8832
8841
|
function Gl(t, e) {
|
|
8833
|
-
|
|
8842
|
+
Qt.set(t._key(), e);
|
|
8834
8843
|
}
|
|
8835
8844
|
function jl(t) {
|
|
8836
|
-
return
|
|
8845
|
+
return ve(t._redirectPersistence);
|
|
8837
8846
|
}
|
|
8838
8847
|
function Yl(t) {
|
|
8839
|
-
return
|
|
8848
|
+
return Ht(Pl, t.config.apiKey, t.name);
|
|
8840
8849
|
}
|
|
8841
8850
|
async function Vl(t, e, n = !1) {
|
|
8842
8851
|
if (pe(t.app))
|
|
@@ -8997,7 +9006,7 @@ function Ql(t) {
|
|
|
8997
9006
|
* See the License for the specific language governing permissions and
|
|
8998
9007
|
* limitations under the License.
|
|
8999
9008
|
*/
|
|
9000
|
-
const Xl = new
|
|
9009
|
+
const Xl = new Gt(3e4, 6e4);
|
|
9001
9010
|
function Tr() {
|
|
9002
9011
|
const t = de().___jsl;
|
|
9003
9012
|
if (t != null && t.H) {
|
|
@@ -9040,12 +9049,12 @@ function Sl(t) {
|
|
|
9040
9049
|
}, Wu(`${zu()}?onload=${c}`).catch((l) => n(l));
|
|
9041
9050
|
}
|
|
9042
9051
|
}).catch((e) => {
|
|
9043
|
-
throw
|
|
9052
|
+
throw Xt = null, e;
|
|
9044
9053
|
});
|
|
9045
9054
|
}
|
|
9046
|
-
let
|
|
9055
|
+
let Xt = null;
|
|
9047
9056
|
function Ul(t) {
|
|
9048
|
-
return
|
|
9057
|
+
return Xt = Xt || Sl(t), Xt;
|
|
9049
9058
|
}
|
|
9050
9059
|
/**
|
|
9051
9060
|
* @license
|
|
@@ -9063,7 +9072,7 @@ function Ul(t) {
|
|
|
9063
9072
|
* See the License for the specific language governing permissions and
|
|
9064
9073
|
* limitations under the License.
|
|
9065
9074
|
*/
|
|
9066
|
-
const Wl = new
|
|
9075
|
+
const Wl = new Gt(5e3, 15e3), zl = "__/auth/iframe", Zl = "emulator/auth/iframe", Ll = {
|
|
9067
9076
|
style: {
|
|
9068
9077
|
position: "absolute",
|
|
9069
9078
|
top: "-100px",
|
|
@@ -9089,11 +9098,11 @@ function Jl(t) {
|
|
|
9089
9098
|
const n = e.emulator ? Zn(e, Zl) : `https://${t.config.authDomain}/${zl}`, r = {
|
|
9090
9099
|
apiKey: e.apiKey,
|
|
9091
9100
|
appName: t.name,
|
|
9092
|
-
v:
|
|
9101
|
+
v: Tt
|
|
9093
9102
|
}, s = Kl.get(t.config.apiHost);
|
|
9094
9103
|
s && (r.eid = s);
|
|
9095
9104
|
const i = t._getFrameworks();
|
|
9096
|
-
return i.length && (r.fw = i.join(",")), `${n}?${
|
|
9105
|
+
return i.length && (r.fw = i.join(",")), `${n}?${Ot(r).slice(1)}`;
|
|
9097
9106
|
}
|
|
9098
9107
|
async function _l(t) {
|
|
9099
9108
|
const e = await Ul(t), n = de().gapi;
|
|
@@ -9172,7 +9181,7 @@ function sA(t, e, n, r = eA, s = tA) {
|
|
|
9172
9181
|
left: a
|
|
9173
9182
|
}), A = K().toLowerCase();
|
|
9174
9183
|
n && (c = ii(A) ? nA : n), ri(A) && (e = e || rA, l.scrollbars = "yes");
|
|
9175
|
-
const f = Object.entries(l).reduce((B, [
|
|
9184
|
+
const f = Object.entries(l).reduce((B, [w, O]) => `${B}${w}=${O},`, "");
|
|
9176
9185
|
if (Ru(A) && c !== "_self")
|
|
9177
9186
|
return iA(e || "", c), new Gr(null);
|
|
9178
9187
|
const p = window.open(e || "", c, f);
|
|
@@ -9228,7 +9237,7 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9228
9237
|
appName: t.name,
|
|
9229
9238
|
authType: n,
|
|
9230
9239
|
redirectUrl: r,
|
|
9231
|
-
v:
|
|
9240
|
+
v: Tt,
|
|
9232
9241
|
eventId: s
|
|
9233
9242
|
};
|
|
9234
9243
|
if (e instanceof mi) {
|
|
@@ -9236,7 +9245,7 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9236
9245
|
for (const [f, p] of Object.entries({}))
|
|
9237
9246
|
a[f] = p;
|
|
9238
9247
|
}
|
|
9239
|
-
if (e instanceof
|
|
9248
|
+
if (e instanceof jt) {
|
|
9240
9249
|
const f = e.getScopes().filter((p) => p !== "");
|
|
9241
9250
|
f.length > 0 && (a.scopes = f.join(","));
|
|
9242
9251
|
}
|
|
@@ -9245,7 +9254,7 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9245
9254
|
for (const f of Object.keys(c))
|
|
9246
9255
|
c[f] === void 0 && delete c[f];
|
|
9247
9256
|
const l = await t._getAppCheckToken(), A = l ? `#${cA}=${encodeURIComponent(l)}` : "";
|
|
9248
|
-
return `${uA(t)}?${
|
|
9257
|
+
return `${uA(t)}?${Ot(c).slice(1)}${A}`;
|
|
9249
9258
|
}
|
|
9250
9259
|
function uA({ config: t }) {
|
|
9251
9260
|
return t.emulator ? Zn(t, oA) : `https://${t.authDomain}/${aA}`;
|
|
@@ -9413,7 +9422,7 @@ function hA(t) {
|
|
|
9413
9422
|
}
|
|
9414
9423
|
}
|
|
9415
9424
|
function mA(t) {
|
|
9416
|
-
|
|
9425
|
+
vt(new dt(
|
|
9417
9426
|
"auth",
|
|
9418
9427
|
(e, { options: n }) => {
|
|
9419
9428
|
const r = e.getProvider("app").getImmediate(), s = e.getProvider("heartbeat"), i = e.getProvider("app-check-internal"), { apiKey: a, authDomain: c } = r.options;
|
|
@@ -9439,7 +9448,7 @@ function mA(t) {
|
|
|
9439
9448
|
"auth-internal"
|
|
9440
9449
|
/* _ComponentName.AUTH_INTERNAL */
|
|
9441
9450
|
).initialize();
|
|
9442
|
-
})),
|
|
9451
|
+
})), vt(new dt(
|
|
9443
9452
|
"auth-internal",
|
|
9444
9453
|
(e) => {
|
|
9445
9454
|
const n = an(e.getProvider(
|
|
@@ -9548,7 +9557,7 @@ var un = class {
|
|
|
9548
9557
|
}
|
|
9549
9558
|
onUnsubscribe() {
|
|
9550
9559
|
}
|
|
9551
|
-
}, He, Ge, rt, Xr,
|
|
9560
|
+
}, He, Ge, rt, Xr, vA = (Xr = class extends un {
|
|
9552
9561
|
constructor() {
|
|
9553
9562
|
super();
|
|
9554
9563
|
G(this, He);
|
|
@@ -9589,7 +9598,7 @@ var un = class {
|
|
|
9589
9598
|
var e;
|
|
9590
9599
|
return typeof h(this, He) == "boolean" ? h(this, He) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
|
|
9591
9600
|
}
|
|
9592
|
-
}, He = new WeakMap(), Ge = new WeakMap(), rt = new WeakMap(), Xr), Mi = new
|
|
9601
|
+
}, He = new WeakMap(), Ge = new WeakMap(), rt = new WeakMap(), Xr), Mi = new vA(), wA = {
|
|
9593
9602
|
// We need the wrapper function syntax below instead of direct references to
|
|
9594
9603
|
// global setTimeout etc.
|
|
9595
9604
|
//
|
|
@@ -9613,7 +9622,7 @@ var un = class {
|
|
|
9613
9622
|
//
|
|
9614
9623
|
// We settle for type safety for the TimeoutProvider type, and accept that
|
|
9615
9624
|
// this class is unsafe internally to allow for extension.
|
|
9616
|
-
G(this, oe,
|
|
9625
|
+
G(this, oe, wA);
|
|
9617
9626
|
G(this, Qe, !1);
|
|
9618
9627
|
}
|
|
9619
9628
|
setTimeoutProvider(t) {
|
|
@@ -9669,7 +9678,7 @@ function Fr(t, e) {
|
|
|
9669
9678
|
if (r) {
|
|
9670
9679
|
if (e.queryHash !== er(a, e.options))
|
|
9671
9680
|
return !1;
|
|
9672
|
-
} else if (!
|
|
9681
|
+
} else if (!Ct(e.queryKey, a))
|
|
9673
9682
|
return !1;
|
|
9674
9683
|
}
|
|
9675
9684
|
if (n !== "all") {
|
|
@@ -9685,24 +9694,24 @@ function kr(t, e) {
|
|
|
9685
9694
|
if (!e.options.mutationKey)
|
|
9686
9695
|
return !1;
|
|
9687
9696
|
if (n) {
|
|
9688
|
-
if (
|
|
9697
|
+
if (Dt(e.options.mutationKey) !== Dt(i))
|
|
9689
9698
|
return !1;
|
|
9690
|
-
} else if (!
|
|
9699
|
+
} else if (!Ct(e.options.mutationKey, i))
|
|
9691
9700
|
return !1;
|
|
9692
9701
|
}
|
|
9693
9702
|
return !(r && e.state.status !== r || s && !s(e));
|
|
9694
9703
|
}
|
|
9695
9704
|
function er(t, e) {
|
|
9696
|
-
return ((e == null ? void 0 : e.queryKeyHashFn) ||
|
|
9705
|
+
return ((e == null ? void 0 : e.queryKeyHashFn) || Dt)(t);
|
|
9697
9706
|
}
|
|
9698
|
-
function
|
|
9707
|
+
function Dt(t) {
|
|
9699
9708
|
return JSON.stringify(
|
|
9700
9709
|
t,
|
|
9701
9710
|
(e, n) => Fn(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
|
|
9702
9711
|
);
|
|
9703
9712
|
}
|
|
9704
|
-
function
|
|
9705
|
-
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((n) =>
|
|
9713
|
+
function Ct(t, e) {
|
|
9714
|
+
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;
|
|
9706
9715
|
}
|
|
9707
9716
|
var OA = Object.prototype.hasOwnProperty;
|
|
9708
9717
|
function xn(t, e, n = 0) {
|
|
@@ -9714,16 +9723,16 @@ function xn(t, e, n = 0) {
|
|
|
9714
9723
|
const i = (r ? t : Object.keys(t)).length, a = r ? e : Object.keys(e), c = a.length, l = r ? new Array(c) : {};
|
|
9715
9724
|
let A = 0;
|
|
9716
9725
|
for (let f = 0; f < c; f++) {
|
|
9717
|
-
const p = r ? f : a[f], B = t[p],
|
|
9718
|
-
if (B ===
|
|
9726
|
+
const p = r ? f : a[f], B = t[p], w = e[p];
|
|
9727
|
+
if (B === w) {
|
|
9719
9728
|
l[p] = B, (r ? f < i : OA.call(t, p)) && A++;
|
|
9720
9729
|
continue;
|
|
9721
9730
|
}
|
|
9722
|
-
if (B === null ||
|
|
9723
|
-
l[p] =
|
|
9731
|
+
if (B === null || w === null || typeof B != "object" || typeof w != "object") {
|
|
9732
|
+
l[p] = w;
|
|
9724
9733
|
continue;
|
|
9725
9734
|
}
|
|
9726
|
-
const O = xn(B,
|
|
9735
|
+
const O = xn(B, w, n + 1);
|
|
9727
9736
|
l[p] = O, O === B && A++;
|
|
9728
9737
|
}
|
|
9729
9738
|
return i === c && A === i ? t : l;
|
|
@@ -9783,11 +9792,11 @@ function YA(t, e, n = 0) {
|
|
|
9783
9792
|
const r = [e, ...t];
|
|
9784
9793
|
return n && r.length > n ? r.slice(0, -1) : r;
|
|
9785
9794
|
}
|
|
9786
|
-
var
|
|
9795
|
+
var $t = /* @__PURE__ */ Symbol();
|
|
9787
9796
|
function Ii(t, e) {
|
|
9788
|
-
return process.env.NODE_ENV !== "production" && t.queryFn ===
|
|
9797
|
+
return process.env.NODE_ENV !== "production" && t.queryFn === $t && console.error(
|
|
9789
9798
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
|
|
9790
|
-
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn ===
|
|
9799
|
+
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === $t ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
|
|
9791
9800
|
}
|
|
9792
9801
|
function hd(t, e) {
|
|
9793
9802
|
return typeof t == "function" ? t(...e) : !!t;
|
|
@@ -9932,12 +9941,12 @@ var L = kA(), st, je, it, Ur, RA = (Ur = class extends un {
|
|
|
9932
9941
|
isOnline() {
|
|
9933
9942
|
return h(this, st);
|
|
9934
9943
|
}
|
|
9935
|
-
}, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur),
|
|
9944
|
+
}, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur), en = new RA();
|
|
9936
9945
|
function qA(t) {
|
|
9937
9946
|
return Math.min(1e3 * 2 ** t, 3e4);
|
|
9938
9947
|
}
|
|
9939
9948
|
function Oi(t) {
|
|
9940
|
-
return (t ?? "online") === "online" ?
|
|
9949
|
+
return (t ?? "online") === "online" ? en.isOnline() : !0;
|
|
9941
9950
|
}
|
|
9942
9951
|
var kn = class extends Error {
|
|
9943
9952
|
constructor(t) {
|
|
@@ -9956,11 +9965,11 @@ function Ti(t) {
|
|
|
9956
9965
|
e = !0;
|
|
9957
9966
|
}, l = () => {
|
|
9958
9967
|
e = !1;
|
|
9959
|
-
}, A = () => Mi.isFocused() && (t.networkMode === "always" ||
|
|
9968
|
+
}, A = () => Mi.isFocused() && (t.networkMode === "always" || en.isOnline()) && t.canRun(), f = () => Oi(t.networkMode) && t.canRun(), p = (I) => {
|
|
9960
9969
|
i() || (r == null || r(), s.resolve(I));
|
|
9961
9970
|
}, B = (I) => {
|
|
9962
9971
|
i() || (r == null || r(), s.reject(I));
|
|
9963
|
-
},
|
|
9972
|
+
}, w = () => new Promise((I) => {
|
|
9964
9973
|
var V;
|
|
9965
9974
|
r = (R) => {
|
|
9966
9975
|
(i() || A()) && I(R);
|
|
@@ -9982,12 +9991,12 @@ function Ti(t) {
|
|
|
9982
9991
|
var U;
|
|
9983
9992
|
if (i())
|
|
9984
9993
|
return;
|
|
9985
|
-
const Q = t.retry ?? (Pi.isServer() ? 0 : 3), Y = t.retryDelay ?? qA,
|
|
9994
|
+
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);
|
|
9986
9995
|
if (e || !H) {
|
|
9987
9996
|
B(R);
|
|
9988
9997
|
return;
|
|
9989
9998
|
}
|
|
9990
|
-
n++, (U = t.onFail) == null || U.call(t, n, R), TA(
|
|
9999
|
+
n++, (U = t.onFail) == null || U.call(t, n, R), TA(v).then(() => A() ? void 0 : w()).then(() => {
|
|
9991
10000
|
e ? B(R) : O();
|
|
9992
10001
|
});
|
|
9993
10002
|
});
|
|
@@ -10000,7 +10009,7 @@ function Ti(t) {
|
|
|
10000
10009
|
cancelRetry: c,
|
|
10001
10010
|
continueRetry: l,
|
|
10002
10011
|
canStart: f,
|
|
10003
|
-
start: () => (f() ? O() :
|
|
10012
|
+
start: () => (f() ? O() : w().then(O), s)
|
|
10004
10013
|
};
|
|
10005
10014
|
}
|
|
10006
10015
|
var Xe, Wr, Gi = (Wr = class {
|
|
@@ -10028,8 +10037,8 @@ var Xe, Wr, Gi = (Wr = class {
|
|
|
10028
10037
|
function NA(t) {
|
|
10029
10038
|
return {
|
|
10030
10039
|
onFetch: (e, n) => {
|
|
10031
|
-
var f, p, B,
|
|
10032
|
-
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 = ((
|
|
10040
|
+
var f, p, B, w, O;
|
|
10041
|
+
const r = e.options, s = (B = (p = (f = e.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : p.fetchMore) == null ? void 0 : B.direction, i = ((w = e.state.data) == null ? void 0 : w.pages) || [], a = ((O = e.state.data) == null ? void 0 : O.pageParams) || [];
|
|
10033
10042
|
let c = { pages: [], pageParams: [] }, l = 0;
|
|
10034
10043
|
const A = async () => {
|
|
10035
10044
|
let I = !1;
|
|
@@ -10039,16 +10048,16 @@ function NA(t) {
|
|
|
10039
10048
|
() => e.signal,
|
|
10040
10049
|
() => I = !0
|
|
10041
10050
|
);
|
|
10042
|
-
}, R = Ii(e.options, e.fetchOptions), Q = async (Y,
|
|
10051
|
+
}, R = Ii(e.options, e.fetchOptions), Q = async (Y, v, H) => {
|
|
10043
10052
|
if (I)
|
|
10044
10053
|
return Promise.reject(e.signal.reason);
|
|
10045
|
-
if (
|
|
10054
|
+
if (v == null && Y.pages.length)
|
|
10046
10055
|
return Promise.resolve(Y);
|
|
10047
10056
|
const ee = (() => {
|
|
10048
10057
|
const g = {
|
|
10049
10058
|
client: e.client,
|
|
10050
10059
|
queryKey: e.queryKey,
|
|
10051
|
-
pageParam:
|
|
10060
|
+
pageParam: v,
|
|
10052
10061
|
direction: H ? "backward" : "forward",
|
|
10053
10062
|
meta: e.options.meta
|
|
10054
10063
|
};
|
|
@@ -10056,22 +10065,22 @@ function NA(t) {
|
|
|
10056
10065
|
})(), q = await R(ee), { maxPages: u } = e.options, m = H ? YA : jA;
|
|
10057
10066
|
return {
|
|
10058
10067
|
pages: m(Y.pages, q, u),
|
|
10059
|
-
pageParams: m(Y.pageParams,
|
|
10068
|
+
pageParams: m(Y.pageParams, v, u)
|
|
10060
10069
|
};
|
|
10061
10070
|
};
|
|
10062
10071
|
if (s && i.length) {
|
|
10063
|
-
const Y = s === "backward",
|
|
10072
|
+
const Y = s === "backward", v = Y ? HA : Nr, H = {
|
|
10064
10073
|
pages: i,
|
|
10065
10074
|
pageParams: a
|
|
10066
|
-
}, U =
|
|
10075
|
+
}, U = v(r, H);
|
|
10067
10076
|
c = await Q(H, U, Y);
|
|
10068
10077
|
} else {
|
|
10069
10078
|
const Y = t ?? i.length;
|
|
10070
10079
|
do {
|
|
10071
|
-
const
|
|
10072
|
-
if (l > 0 &&
|
|
10080
|
+
const v = l === 0 ? a[0] ?? r.initialPageParam : Nr(r, c);
|
|
10081
|
+
if (l > 0 && v == null)
|
|
10073
10082
|
break;
|
|
10074
|
-
c = await Q(c,
|
|
10083
|
+
c = await Q(c, v), l++;
|
|
10075
10084
|
} while (l < Y);
|
|
10076
10085
|
}
|
|
10077
10086
|
return c;
|
|
@@ -10106,7 +10115,7 @@ function HA(t, { pages: e, pageParams: n }) {
|
|
|
10106
10115
|
var r;
|
|
10107
10116
|
return e.length > 0 ? (r = t.getPreviousPageParam) == null ? void 0 : r.call(t, e[0], e, n[0], n) : void 0;
|
|
10108
10117
|
}
|
|
10109
|
-
var at, Se, ot, re, Ue, S,
|
|
10118
|
+
var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
10110
10119
|
constructor(e) {
|
|
10111
10120
|
super();
|
|
10112
10121
|
G(this, ne);
|
|
@@ -10116,9 +10125,9 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10116
10125
|
G(this, re);
|
|
10117
10126
|
G(this, Ue);
|
|
10118
10127
|
G(this, S);
|
|
10119
|
-
G(this,
|
|
10128
|
+
G(this, Et);
|
|
10120
10129
|
G(this, We);
|
|
10121
|
-
D(this, We, !1), D(this,
|
|
10130
|
+
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();
|
|
10122
10131
|
}
|
|
10123
10132
|
get meta() {
|
|
10124
10133
|
return this.options.meta;
|
|
@@ -10131,7 +10140,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10131
10140
|
return (e = h(this, S)) == null ? void 0 : e.promise;
|
|
10132
10141
|
}
|
|
10133
10142
|
setOptions(e) {
|
|
10134
|
-
if (this.options = { ...h(this,
|
|
10143
|
+
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) {
|
|
10135
10144
|
const n = Qr(this.options);
|
|
10136
10145
|
n.data !== void 0 && (this.setState(
|
|
10137
10146
|
Hr(n.data, n.dataUpdatedAt)
|
|
@@ -10173,7 +10182,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10173
10182
|
);
|
|
10174
10183
|
}
|
|
10175
10184
|
isDisabled() {
|
|
10176
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
10185
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === $t || !this.isFetched();
|
|
10177
10186
|
}
|
|
10178
10187
|
isFetched() {
|
|
10179
10188
|
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
@@ -10214,7 +10223,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10214
10223
|
this.state.isInvalidated || z(this, ne, me).call(this, { type: "invalidate" });
|
|
10215
10224
|
}
|
|
10216
10225
|
async fetch(e, n) {
|
|
10217
|
-
var A, f, p, B,
|
|
10226
|
+
var A, f, p, B, w, O, I, V, R, Q, Y;
|
|
10218
10227
|
if (this.state.fetchStatus !== "idle" && // If the promise in the retryer is already rejected, we have to definitely
|
|
10219
10228
|
// re-start the fetch; there is a chance that the query is still in a
|
|
10220
10229
|
// pending state when that happens
|
|
@@ -10225,19 +10234,19 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10225
10234
|
return h(this, S).continueRetry(), h(this, S).promise;
|
|
10226
10235
|
}
|
|
10227
10236
|
if (e && this.setOptions(e), !this.options.queryFn) {
|
|
10228
|
-
const
|
|
10229
|
-
|
|
10237
|
+
const v = this.observers.find((H) => H.options.queryFn);
|
|
10238
|
+
v && this.setOptions(v.options);
|
|
10230
10239
|
}
|
|
10231
10240
|
process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
|
|
10232
10241
|
"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']"
|
|
10233
10242
|
));
|
|
10234
|
-
const r = new AbortController(), s = (
|
|
10235
|
-
Object.defineProperty(
|
|
10243
|
+
const r = new AbortController(), s = (v) => {
|
|
10244
|
+
Object.defineProperty(v, "signal", {
|
|
10236
10245
|
enumerable: !0,
|
|
10237
10246
|
get: () => (D(this, We, !0), r.signal)
|
|
10238
10247
|
});
|
|
10239
10248
|
}, i = () => {
|
|
10240
|
-
const
|
|
10249
|
+
const v = Ii(this.options, n), U = (() => {
|
|
10241
10250
|
const ee = {
|
|
10242
10251
|
client: h(this, Ue),
|
|
10243
10252
|
queryKey: this.queryKey,
|
|
@@ -10246,12 +10255,12 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10246
10255
|
return s(ee), ee;
|
|
10247
10256
|
})();
|
|
10248
10257
|
return D(this, We, !1), this.options.persister ? this.options.persister(
|
|
10249
|
-
|
|
10258
|
+
v,
|
|
10250
10259
|
U,
|
|
10251
10260
|
this
|
|
10252
|
-
) :
|
|
10261
|
+
) : v(U);
|
|
10253
10262
|
}, c = (() => {
|
|
10254
|
-
const
|
|
10263
|
+
const v = {
|
|
10255
10264
|
fetchOptions: n,
|
|
10256
10265
|
options: this.options,
|
|
10257
10266
|
queryKey: this.queryKey,
|
|
@@ -10259,21 +10268,21 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10259
10268
|
state: this.state,
|
|
10260
10269
|
fetchFn: i
|
|
10261
10270
|
};
|
|
10262
|
-
return s(
|
|
10271
|
+
return s(v), v;
|
|
10263
10272
|
})(), l = h(this, at) === "infinite" ? NA(
|
|
10264
10273
|
this.options.pages
|
|
10265
10274
|
) : this.options.behavior;
|
|
10266
10275
|
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({
|
|
10267
10276
|
initialPromise: n == null ? void 0 : n.initialPromise,
|
|
10268
10277
|
fn: c.fetchFn,
|
|
10269
|
-
onCancel: (
|
|
10270
|
-
|
|
10278
|
+
onCancel: (v) => {
|
|
10279
|
+
v instanceof kn && v.revert && this.setState({
|
|
10271
10280
|
...h(this, ot),
|
|
10272
10281
|
fetchStatus: "idle"
|
|
10273
10282
|
}), r.abort();
|
|
10274
10283
|
},
|
|
10275
|
-
onFail: (
|
|
10276
|
-
z(this, ne, me).call(this, { type: "failed", failureCount:
|
|
10284
|
+
onFail: (v, H) => {
|
|
10285
|
+
z(this, ne, me).call(this, { type: "failed", failureCount: v, error: H });
|
|
10277
10286
|
},
|
|
10278
10287
|
onPause: () => {
|
|
10279
10288
|
z(this, ne, me).call(this, { type: "pause" });
|
|
@@ -10287,45 +10296,45 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10287
10296
|
canRun: () => !0
|
|
10288
10297
|
}));
|
|
10289
10298
|
try {
|
|
10290
|
-
const
|
|
10291
|
-
if (
|
|
10299
|
+
const v = await h(this, S).start();
|
|
10300
|
+
if (v === void 0)
|
|
10292
10301
|
throw process.env.NODE_ENV !== "production" && console.error(
|
|
10293
10302
|
`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
|
|
10294
10303
|
), new Error(`${this.queryHash} data is undefined`);
|
|
10295
|
-
return this.setData(
|
|
10304
|
+
return this.setData(v), (w = (B = h(this, re).config).onSuccess) == null || w.call(B, v, this), (I = (O = h(this, re).config).onSettled) == null || I.call(
|
|
10296
10305
|
O,
|
|
10297
|
-
|
|
10306
|
+
v,
|
|
10298
10307
|
this.state.error,
|
|
10299
10308
|
this
|
|
10300
|
-
),
|
|
10301
|
-
} catch (
|
|
10302
|
-
if (
|
|
10303
|
-
if (
|
|
10309
|
+
), v;
|
|
10310
|
+
} catch (v) {
|
|
10311
|
+
if (v instanceof kn) {
|
|
10312
|
+
if (v.silent)
|
|
10304
10313
|
return h(this, S).promise;
|
|
10305
|
-
if (
|
|
10314
|
+
if (v.revert) {
|
|
10306
10315
|
if (this.state.data === void 0)
|
|
10307
|
-
throw
|
|
10316
|
+
throw v;
|
|
10308
10317
|
return this.state.data;
|
|
10309
10318
|
}
|
|
10310
10319
|
}
|
|
10311
10320
|
throw z(this, ne, me).call(this, {
|
|
10312
10321
|
type: "error",
|
|
10313
|
-
error:
|
|
10322
|
+
error: v
|
|
10314
10323
|
}), (R = (V = h(this, re).config).onError) == null || R.call(
|
|
10315
10324
|
V,
|
|
10316
|
-
|
|
10325
|
+
v,
|
|
10317
10326
|
this
|
|
10318
10327
|
), (Y = (Q = h(this, re).config).onSettled) == null || Y.call(
|
|
10319
10328
|
Q,
|
|
10320
10329
|
this.state.data,
|
|
10321
|
-
|
|
10330
|
+
v,
|
|
10322
10331
|
this
|
|
10323
|
-
),
|
|
10332
|
+
), v;
|
|
10324
10333
|
} finally {
|
|
10325
10334
|
this.scheduleGc();
|
|
10326
10335
|
}
|
|
10327
10336
|
}
|
|
10328
|
-
}, at = new WeakMap(), Se = new WeakMap(), ot = new WeakMap(), re = new WeakMap(), Ue = new WeakMap(), S = new WeakMap(),
|
|
10337
|
+
}, 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() {
|
|
10329
10338
|
return this.state.fetchStatus === "paused" && this.state.status === "pending";
|
|
10330
10339
|
}, me = function(e) {
|
|
10331
10340
|
const n = (r) => {
|
|
@@ -10434,15 +10443,15 @@ function Qr(t) {
|
|
|
10434
10443
|
fetchStatus: "idle"
|
|
10435
10444
|
};
|
|
10436
10445
|
}
|
|
10437
|
-
var
|
|
10446
|
+
var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
10438
10447
|
constructor(e) {
|
|
10439
10448
|
super();
|
|
10440
10449
|
G(this, ue);
|
|
10441
|
-
G(this,
|
|
10450
|
+
G(this, Mt);
|
|
10442
10451
|
G(this, ce);
|
|
10443
10452
|
G(this, Z);
|
|
10444
10453
|
G(this, ze);
|
|
10445
|
-
D(this,
|
|
10454
|
+
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();
|
|
10446
10455
|
}
|
|
10447
10456
|
setOptions(e) {
|
|
10448
10457
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -10473,11 +10482,11 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10473
10482
|
this.execute(this.state.variables);
|
|
10474
10483
|
}
|
|
10475
10484
|
async execute(e) {
|
|
10476
|
-
var a, c, l, A, f, p, B,
|
|
10485
|
+
var a, c, l, A, f, p, B, w, O, I, V, R, Q, Y, v, H, U, ee;
|
|
10477
10486
|
const n = () => {
|
|
10478
10487
|
z(this, ue, Me).call(this, { type: "continue" });
|
|
10479
10488
|
}, r = {
|
|
10480
|
-
client: h(this,
|
|
10489
|
+
client: h(this, Mt),
|
|
10481
10490
|
meta: this.options.meta,
|
|
10482
10491
|
mutationKey: this.options.mutationKey
|
|
10483
10492
|
};
|
|
@@ -10531,7 +10540,7 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10531
10540
|
e,
|
|
10532
10541
|
this.state.context,
|
|
10533
10542
|
r
|
|
10534
|
-
)), await ((
|
|
10543
|
+
)), await ((w = (B = h(this, Z).config).onSettled) == null ? void 0 : w.call(
|
|
10535
10544
|
B,
|
|
10536
10545
|
q,
|
|
10537
10546
|
null,
|
|
@@ -10572,8 +10581,8 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10572
10581
|
Promise.reject(u);
|
|
10573
10582
|
}
|
|
10574
10583
|
try {
|
|
10575
|
-
await ((H = (
|
|
10576
|
-
|
|
10584
|
+
await ((H = (v = h(this, Z).config).onSettled) == null ? void 0 : H.call(
|
|
10585
|
+
v,
|
|
10577
10586
|
void 0,
|
|
10578
10587
|
q,
|
|
10579
10588
|
this.state.variables,
|
|
@@ -10601,7 +10610,7 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10601
10610
|
h(this, Z).runNext(this);
|
|
10602
10611
|
}
|
|
10603
10612
|
}
|
|
10604
|
-
},
|
|
10613
|
+
}, Mt = new WeakMap(), ce = new WeakMap(), Z = new WeakMap(), ze = new WeakMap(), ue = new WeakSet(), Me = function(e) {
|
|
10605
10614
|
const n = (r) => {
|
|
10606
10615
|
switch (e.type) {
|
|
10607
10616
|
case "failed":
|
|
@@ -10678,19 +10687,19 @@ function UA() {
|
|
|
10678
10687
|
submittedAt: 0
|
|
10679
10688
|
};
|
|
10680
10689
|
}
|
|
10681
|
-
var fe, ae,
|
|
10690
|
+
var fe, ae, It, Lr, Yi = (Lr = class extends un {
|
|
10682
10691
|
constructor(n = {}) {
|
|
10683
10692
|
super();
|
|
10684
10693
|
G(this, fe);
|
|
10685
10694
|
G(this, ae);
|
|
10686
|
-
G(this,
|
|
10687
|
-
this.config = n, D(this, fe, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this,
|
|
10695
|
+
G(this, It);
|
|
10696
|
+
this.config = n, D(this, fe, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this, It, 0);
|
|
10688
10697
|
}
|
|
10689
10698
|
build(n, r, s) {
|
|
10690
10699
|
const i = new SA({
|
|
10691
10700
|
client: n,
|
|
10692
10701
|
mutationCache: this,
|
|
10693
|
-
mutationId: ++
|
|
10702
|
+
mutationId: ++xt(this, It)._,
|
|
10694
10703
|
options: n.defaultMutationOptions(r),
|
|
10695
10704
|
state: s
|
|
10696
10705
|
});
|
|
@@ -10698,7 +10707,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10698
10707
|
}
|
|
10699
10708
|
add(n) {
|
|
10700
10709
|
h(this, fe).add(n);
|
|
10701
|
-
const r =
|
|
10710
|
+
const r = Rt(n);
|
|
10702
10711
|
if (typeof r == "string") {
|
|
10703
10712
|
const s = h(this, ae).get(r);
|
|
10704
10713
|
s ? s.push(n) : h(this, ae).set(r, [n]);
|
|
@@ -10707,7 +10716,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10707
10716
|
}
|
|
10708
10717
|
remove(n) {
|
|
10709
10718
|
if (h(this, fe).delete(n)) {
|
|
10710
|
-
const r =
|
|
10719
|
+
const r = Rt(n);
|
|
10711
10720
|
if (typeof r == "string") {
|
|
10712
10721
|
const s = h(this, ae).get(r);
|
|
10713
10722
|
if (s)
|
|
@@ -10720,7 +10729,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10720
10729
|
this.notify({ type: "removed", mutation: n });
|
|
10721
10730
|
}
|
|
10722
10731
|
canRun(n) {
|
|
10723
|
-
const r =
|
|
10732
|
+
const r = Rt(n);
|
|
10724
10733
|
if (typeof r == "string") {
|
|
10725
10734
|
const s = h(this, ae).get(r), i = s == null ? void 0 : s.find(
|
|
10726
10735
|
(a) => a.state.status === "pending"
|
|
@@ -10731,7 +10740,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10731
10740
|
}
|
|
10732
10741
|
runNext(n) {
|
|
10733
10742
|
var s;
|
|
10734
|
-
const r =
|
|
10743
|
+
const r = Rt(n);
|
|
10735
10744
|
if (typeof r == "string") {
|
|
10736
10745
|
const i = (s = h(this, ae).get(r)) == null ? void 0 : s.find((a) => a !== n && a.state.isPaused);
|
|
10737
10746
|
return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
|
|
@@ -10772,8 +10781,8 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10772
10781
|
)
|
|
10773
10782
|
);
|
|
10774
10783
|
}
|
|
10775
|
-
}, fe = new WeakMap(), ae = new WeakMap(),
|
|
10776
|
-
function
|
|
10784
|
+
}, fe = new WeakMap(), ae = new WeakMap(), It = new WeakMap(), Lr);
|
|
10785
|
+
function Rt(t) {
|
|
10777
10786
|
var e;
|
|
10778
10787
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
10779
10788
|
}
|
|
@@ -10862,15 +10871,15 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
10862
10871
|
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);
|
|
10863
10872
|
}
|
|
10864
10873
|
mount() {
|
|
10865
|
-
|
|
10874
|
+
xt(this, xe)._++, h(this, xe) === 1 && (D(this, lt, Mi.subscribe(async (e) => {
|
|
10866
10875
|
e && (await this.resumePausedMutations(), h(this, N).onFocus());
|
|
10867
|
-
})), D(this, At,
|
|
10876
|
+
})), D(this, At, en.subscribe(async (e) => {
|
|
10868
10877
|
e && (await this.resumePausedMutations(), h(this, N).onOnline());
|
|
10869
10878
|
})));
|
|
10870
10879
|
}
|
|
10871
10880
|
unmount() {
|
|
10872
10881
|
var e, n;
|
|
10873
|
-
|
|
10882
|
+
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));
|
|
10874
10883
|
}
|
|
10875
10884
|
isFetching(e) {
|
|
10876
10885
|
return h(this, N).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
@@ -10992,7 +11001,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
10992
11001
|
return e._type = "infinite", this.ensureQueryData(e);
|
|
10993
11002
|
}
|
|
10994
11003
|
resumePausedMutations() {
|
|
10995
|
-
return
|
|
11004
|
+
return en.isOnline() ? h(this, Ye).resumePausedMutations() : Promise.resolve();
|
|
10996
11005
|
}
|
|
10997
11006
|
getQueryCache() {
|
|
10998
11007
|
return h(this, N);
|
|
@@ -11007,7 +11016,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11007
11016
|
D(this, Ve, e);
|
|
11008
11017
|
}
|
|
11009
11018
|
setQueryDefaults(e, n) {
|
|
11010
|
-
h(this, ct).set(
|
|
11019
|
+
h(this, ct).set(Dt(e), {
|
|
11011
11020
|
queryKey: e,
|
|
11012
11021
|
defaultOptions: n
|
|
11013
11022
|
});
|
|
@@ -11015,11 +11024,11 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11015
11024
|
getQueryDefaults(e) {
|
|
11016
11025
|
const n = [...h(this, ct).values()], r = {};
|
|
11017
11026
|
return n.forEach((s) => {
|
|
11018
|
-
|
|
11027
|
+
Ct(e, s.queryKey) && Object.assign(r, s.defaultOptions);
|
|
11019
11028
|
}), r;
|
|
11020
11029
|
}
|
|
11021
11030
|
setMutationDefaults(e, n) {
|
|
11022
|
-
h(this, ut).set(
|
|
11031
|
+
h(this, ut).set(Dt(e), {
|
|
11023
11032
|
mutationKey: e,
|
|
11024
11033
|
defaultOptions: n
|
|
11025
11034
|
});
|
|
@@ -11027,7 +11036,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11027
11036
|
getMutationDefaults(e) {
|
|
11028
11037
|
const n = [...h(this, ut).values()], r = {};
|
|
11029
11038
|
return n.forEach((s) => {
|
|
11030
|
-
|
|
11039
|
+
Ct(e, s.mutationKey) && Object.assign(r, s.defaultOptions);
|
|
11031
11040
|
}), r;
|
|
11032
11041
|
}
|
|
11033
11042
|
defaultQueryOptions(e) {
|
|
@@ -11042,7 +11051,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11042
11051
|
return n.queryHash || (n.queryHash = er(
|
|
11043
11052
|
n.queryKey,
|
|
11044
11053
|
n
|
|
11045
|
-
)), 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 ===
|
|
11054
|
+
)), 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;
|
|
11046
11055
|
}
|
|
11047
11056
|
defaultMutationOptions(e) {
|
|
11048
11057
|
return e != null && e._defaulted ? e : {
|
|
@@ -11127,7 +11136,7 @@ var KA = class extends Vi {
|
|
|
11127
11136
|
queryCache: t.queryCache || new KA(),
|
|
11128
11137
|
mutationCache: t.mutationCache || new JA()
|
|
11129
11138
|
};
|
|
11130
|
-
super(e), this.isRestoring =
|
|
11139
|
+
super(e), this.isRestoring = St(!1);
|
|
11131
11140
|
}
|
|
11132
11141
|
isFetching(t = {}) {
|
|
11133
11142
|
return super.isFetching(T(t));
|
|
@@ -11226,7 +11235,7 @@ var KA = class extends Vi {
|
|
|
11226
11235
|
};
|
|
11227
11236
|
const $A = Ki({
|
|
11228
11237
|
history: Ji(),
|
|
11229
|
-
routes: [...
|
|
11238
|
+
routes: [...bt, ...pt].map((t) => ({
|
|
11230
11239
|
...t,
|
|
11231
11240
|
component: os(
|
|
11232
11241
|
_r({
|
|
@@ -11237,10 +11246,10 @@ const $A = Ki({
|
|
|
11237
11246
|
});
|
|
11238
11247
|
$A.beforeEach((t) => {
|
|
11239
11248
|
var r;
|
|
11240
|
-
const { currentCountry: e } =
|
|
11249
|
+
const { currentCountry: e } = rn(), n = e.value;
|
|
11241
11250
|
if (!n) return !0;
|
|
11242
11251
|
if ((r = t.meta) != null && r.region && !t.meta.region[n]) {
|
|
11243
|
-
const s =
|
|
11252
|
+
const s = bt.find(
|
|
11244
11253
|
(i) => {
|
|
11245
11254
|
var a;
|
|
11246
11255
|
return ((a = i.meta) == null ? void 0 : a.sidebarDisplay) && (!i.meta.region || i.meta.region[n]);
|
|
@@ -11250,17 +11259,17 @@ $A.beforeEach((t) => {
|
|
|
11250
11259
|
}
|
|
11251
11260
|
return !0;
|
|
11252
11261
|
});
|
|
11253
|
-
const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ */
|
|
11262
|
+
const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ */ tn({
|
|
11254
11263
|
__name: "AppSidebar",
|
|
11255
11264
|
setup(t) {
|
|
11256
|
-
const e =
|
|
11265
|
+
const e = rn(), n = _i(), { t: r } = ns(), s = St(n.currentRoute.value.name);
|
|
11257
11266
|
$r(n.currentRoute, () => {
|
|
11258
11267
|
let A = n.currentRoute.value.name;
|
|
11259
11268
|
n.currentRoute.value.meta.parent && (A = n.currentRoute.value.meta.parent), s.value = A;
|
|
11260
11269
|
});
|
|
11261
|
-
const i =
|
|
11262
|
-
var B,
|
|
11263
|
-
if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((
|
|
11270
|
+
const i = bt.map((A) => {
|
|
11271
|
+
var B, w;
|
|
11272
|
+
if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((w = A.meta.region) != null && w[e.currentCountry.value]) || A.meta.section)
|
|
11264
11273
|
return;
|
|
11265
11274
|
const f = A.meta.sidebarDisplay, p = {
|
|
11266
11275
|
label: f.startsWith("i18n:") ? r(f.replaceAll("i18n:", "")) : f,
|
|
@@ -11270,12 +11279,12 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11270
11279
|
return n.push({ name: A.name });
|
|
11271
11280
|
}
|
|
11272
11281
|
};
|
|
11273
|
-
return A.meta.sidebarNew && (p.badge = () =>
|
|
11282
|
+
return A.meta.sidebarNew && (p.badge = () => vn(ea.FmPill, { label: "New" })), p;
|
|
11274
11283
|
}).filter((A) => !!A);
|
|
11275
11284
|
function a(A, f) {
|
|
11276
11285
|
return A.map((p) => {
|
|
11277
|
-
var B,
|
|
11278
|
-
return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], f) : (
|
|
11286
|
+
var B, w;
|
|
11287
|
+
return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], f) : (w = p.meta) != null && w.sidebarDisplay ? p.meta.section !== f ? [] : [
|
|
11279
11288
|
{
|
|
11280
11289
|
label: p.meta.sidebarDisplay.startsWith("i18n:") ? r(p.meta.sidebarDisplay.replaceAll("i18n:", "")) : p.meta.sidebarDisplay,
|
|
11281
11290
|
value: p.name,
|
|
@@ -11300,7 +11309,16 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11300
11309
|
};
|
|
11301
11310
|
}).filter((A) => !!A), l = Nn(() => {
|
|
11302
11311
|
const A = [...i];
|
|
11303
|
-
return
|
|
11312
|
+
return A.push({
|
|
11313
|
+
label: "",
|
|
11314
|
+
value: "divider",
|
|
11315
|
+
disabled: !0
|
|
11316
|
+
}), A.push({
|
|
11317
|
+
label: r("financing.title"),
|
|
11318
|
+
icon: "credit_score",
|
|
11319
|
+
value: "divider",
|
|
11320
|
+
disabled: !0
|
|
11321
|
+
}), A.push(...a(bt, "financing")), ed(e.sessionUser.value) && (A.push({
|
|
11304
11322
|
label: "",
|
|
11305
11323
|
value: "divider",
|
|
11306
11324
|
disabled: !0
|
|
@@ -11331,7 +11349,7 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11331
11349
|
});
|
|
11332
11350
|
return (A, f) => {
|
|
11333
11351
|
const p = es("FmCollapsibleTabs");
|
|
11334
|
-
return
|
|
11352
|
+
return nn(), Hn(p, {
|
|
11335
11353
|
modelValue: s.value,
|
|
11336
11354
|
"onUpdate:modelValue": f[0] || (f[0] = (B) => s.value = B),
|
|
11337
11355
|
items: l.value,
|
|
@@ -11340,11 +11358,11 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11340
11358
|
};
|
|
11341
11359
|
}
|
|
11342
11360
|
});
|
|
11343
|
-
var nd = { firebase: { apiKey: "
|
|
11344
|
-
const bd = /* @__PURE__ */
|
|
11361
|
+
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" } };
|
|
11362
|
+
const bd = /* @__PURE__ */ tn({
|
|
11345
11363
|
__name: "App",
|
|
11346
11364
|
setup(t) {
|
|
11347
|
-
const { state: e } = Qo(), n =
|
|
11365
|
+
const { state: e } = Qo(), n = rn(), r = ts(), s = new _A();
|
|
11348
11366
|
Wi(xi, s);
|
|
11349
11367
|
const i = Ss(nd.firebase);
|
|
11350
11368
|
async function a() {
|
|
@@ -11361,12 +11379,12 @@ const bd = /* @__PURE__ */ en({
|
|
|
11361
11379
|
s.unmount();
|
|
11362
11380
|
}), (c, l) => {
|
|
11363
11381
|
const A = es("RouterView");
|
|
11364
|
-
return
|
|
11382
|
+
return nn(), Hn(A, {
|
|
11365
11383
|
key: ge(r).path
|
|
11366
11384
|
});
|
|
11367
11385
|
};
|
|
11368
11386
|
}
|
|
11369
|
-
}),
|
|
11387
|
+
}), vd = () => {
|
|
11370
11388
|
const t = [
|
|
11371
11389
|
{ "en-US": na, "th-TH": sa, "zh-CN": aa },
|
|
11372
11390
|
qi
|
|
@@ -11383,7 +11401,7 @@ const bd = /* @__PURE__ */ en({
|
|
|
11383
11401
|
},
|
|
11384
11402
|
{}
|
|
11385
11403
|
);
|
|
11386
|
-
},
|
|
11404
|
+
}, wd = [...pt, ...bt].map((t) => ({
|
|
11387
11405
|
...t,
|
|
11388
11406
|
component: os(
|
|
11389
11407
|
_r({ loader: t.component })
|
|
@@ -11391,7 +11409,7 @@ const bd = /* @__PURE__ */ en({
|
|
|
11391
11409
|
}));
|
|
11392
11410
|
export {
|
|
11393
11411
|
xa as A,
|
|
11394
|
-
|
|
11412
|
+
wd as B,
|
|
11395
11413
|
un as S,
|
|
11396
11414
|
yr as _,
|
|
11397
11415
|
Vn as a,
|
|
@@ -11419,5 +11437,5 @@ export {
|
|
|
11419
11437
|
ua as w,
|
|
11420
11438
|
ld as x,
|
|
11421
11439
|
bd as y,
|
|
11422
|
-
|
|
11440
|
+
vd as z
|
|
11423
11441
|
};
|