@feedmepos/mf-payment 1.8.2-dev → 1.8.3
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-DTEtNSn0.js → Actions.vue_vue_type_script_setup_true_lang-BSGz-vYS.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-Cd6D7JxK.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-QhHy3t8E.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DzZePzBx.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-fTGrC0GL.js} +2 -2
- package/dist/{Chargeback--k3Sc269.js → Chargeback-_yYgraXd.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-qt0R7G3l.js → DocumentViewer.vue_vue_type_script_setup_true_lang-C71wuVoe.js} +1 -1
- package/dist/{OnboardForm-BQf8mMqv.js → OnboardForm-CcuNtcGY.js} +6 -6
- package/dist/{OnboardForm-me9MIQPW.js → OnboardForm-DwtSLZZ6.js} +6 -6
- package/dist/{OnboardSubmission-D-q3ryM1.js → OnboardSubmission-B13TG3VY.js} +3 -3
- package/dist/{OnboardSubmission-CRy_a6MZ.js → OnboardSubmission-B7WfxwtM.js} +6 -6
- package/dist/{PayoutAccount-BBZIFYHv.js → PayoutAccount-BH1AZPsn.js} +7 -7
- package/dist/{PayoutAccount-CA0-FenU.js → PayoutAccount-DKoSN0Oj.js} +5 -5
- package/dist/{PayoutAccountSetting-E8c0t725.js → PayoutAccountSetting-ChgN1fKw.js} +609 -679
- package/dist/{Restaurant-CJZVhzJB.js → Restaurant-DGF0JBQS.js} +4 -4
- package/dist/{RestaurantSetting-C39PQEKt.js → RestaurantSetting-CsXBf_vm.js} +81 -156
- package/dist/{Settlement-DssD_F2s.js → Settlement-Q5vvGkPy.js} +105 -103
- package/dist/{Settlement-DzzY0DMx.js → Settlement-yWwPTpRg.js} +3 -3
- package/dist/{SettlementTransactions-D2Xioa5P.js → SettlementTransactions-CoZ_d8v7.js} +5 -5
- package/dist/{SettlementTransactions-DBn9ZZrx.js → SettlementTransactions-D3Zl668N.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-BvC2RAT0.js → Status.vue_vue_type_script_setup_true_lang-gOHlrQzZ.js} +1 -1
- package/dist/{Terminal-BqXWec-h.js → Terminal-CwG-DaEc.js} +5 -5
- package/dist/{TerminalSetting-D1j2HcJX.js → TerminalSetting-zm7YMozj.js} +5 -5
- package/dist/{Transaction-D09SeHHy.js → Transaction-CUChE6GZ.js} +10 -10
- package/dist/{Transaction-GM0aWwMD.js → Transaction-CXsRdbmU.js} +11 -11
- package/dist/{TransactionOld-B7C7w_nF.js → TransactionOld-BNjs4dYq.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-gwTbVHHZ.js → TransactionStatus.vue_vue_type_script_setup_true_lang-C3AneKTm.js} +1 -1
- package/dist/api/index.d.ts +1 -0
- package/dist/{app-IMZnVpiW.js → app-BaVLWYef.js} +355 -361
- package/dist/app.js +1 -1
- package/dist/{assets-CdIR0Fo6.js → assets-CIBOgszq.js} +1 -1
- package/dist/{grafana-BUVwK44E.js → grafana-CFBCBQ8m.js} +1 -1
- package/dist/{index-Cq0_oRPO.js → index-7w_c2P-2.js} +3874 -3918
- package/dist/{index-CQkc3pUj.js → index-BFUTi1W-.js} +1 -1
- package/dist/{index-CtTi9CvW.js → index-CBTRIvWq.js} +2 -2
- package/dist/{index-BDYQ2vRc.js → index-CC8i1RP4.js} +1 -1
- package/dist/{index-aeXyggRd.js → index-Cg1xw1iV.js} +1 -1
- package/dist/{index-DyEjrl8n.js → index-D1CnAe4w.js} +1 -1
- package/dist/{index-DzqFl5Rn.js → index-D79i4yHd.js} +53 -48
- package/dist/{index-COCd1-Jr.js → index-pd_Yn_Nn.js} +1 -1
- package/dist/{index-D3XosMuu.js → index-xHYVdwJd.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Dv8NeEwd.js → index.vue_vue_type_script_setup_true_lang-C1azAm9j.js} +1 -1
- package/dist/{onboard-submission-D_xLxM1D.js → onboard-submission-BDvoGLwP.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-C8GNZ2kc.js → payout-account-B0sMz1pz.js} +3 -3
- package/dist/stores/payoutAccount.d.ts +32 -44
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +12 -12
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +12 -12
- package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +12 -12
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +32 -44
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +36 -48
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +36 -48
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +32 -44
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +32 -44
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +36 -48
- package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +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 +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +4 -4
- package/dist/views/admin/settlement/SettlementTable.vue.d.ts +4 -4
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +30 -30
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +30 -30
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +64 -88
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +48 -48
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +25 -25
- package/dist/views/settlement/SettlementTable.vue.d.ts +4 -4
- package/package.json +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/BeamGateway.vue.d.ts +0 -41
- package/dist/views/admin/restaurant/tabs/gateway/BeamGateway.vue.d.ts +0 -48
|
@@ -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 Vt = (t, e, n, r) => ({
|
|
7
7
|
set _(s) {
|
|
8
8
|
D(t, e, s, n);
|
|
9
9
|
},
|
|
@@ -12,9 +12,9 @@ var xt = (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 Xt, shallowRef as Ni, watchEffect as Hi, computed as Nn, h as wn, defineComponent as en, unref as ge, openBlock as tn, 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 nn, 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 = {
|
|
@@ -69,6 +69,7 @@ const ta = {
|
|
|
69
69
|
title: "Payout Info",
|
|
70
70
|
amount: "Amount",
|
|
71
71
|
fee: "Fee",
|
|
72
|
+
refund: "Refund",
|
|
72
73
|
payout: "Payout"
|
|
73
74
|
}
|
|
74
75
|
},
|
|
@@ -476,6 +477,7 @@ const ta = {
|
|
|
476
477
|
title: "ข้อมูลการรับเงิน",
|
|
477
478
|
amount: "จำนวนเงิน",
|
|
478
479
|
fee: "ค่าธรรมเนียม",
|
|
480
|
+
refund: "จำนวนเงินคืน",
|
|
479
481
|
payout: "ยอดโอน"
|
|
480
482
|
}
|
|
481
483
|
},
|
|
@@ -881,6 +883,7 @@ const ta = {
|
|
|
881
883
|
title: "结算详细",
|
|
882
884
|
amount: "营业金额",
|
|
883
885
|
fee: "服务费",
|
|
886
|
+
refund: "退款金额",
|
|
884
887
|
payout: "结算金额"
|
|
885
888
|
}
|
|
886
889
|
},
|
|
@@ -1249,28 +1252,28 @@ function ca(t, e, n) {
|
|
|
1249
1252
|
evaluating: i = void 0,
|
|
1250
1253
|
shallow: a = !0,
|
|
1251
1254
|
onError: c = oa
|
|
1252
|
-
} = r, l =
|
|
1255
|
+
} = r, l = Xt(!s), A = a ? Ni(e) : Xt(e);
|
|
1253
1256
|
let f = 0;
|
|
1254
1257
|
return Hi(async (p) => {
|
|
1255
1258
|
if (!l.value)
|
|
1256
1259
|
return;
|
|
1257
1260
|
f++;
|
|
1258
1261
|
const B = f;
|
|
1259
|
-
let
|
|
1262
|
+
let v = !1;
|
|
1260
1263
|
i && Promise.resolve().then(() => {
|
|
1261
1264
|
i.value = !0;
|
|
1262
1265
|
});
|
|
1263
1266
|
try {
|
|
1264
1267
|
const O = await t((I) => {
|
|
1265
1268
|
p(() => {
|
|
1266
|
-
i && (i.value = !1),
|
|
1269
|
+
i && (i.value = !1), v || I();
|
|
1267
1270
|
});
|
|
1268
1271
|
});
|
|
1269
1272
|
B === f && (A.value = O);
|
|
1270
1273
|
} catch (O) {
|
|
1271
1274
|
c(O);
|
|
1272
1275
|
} finally {
|
|
1273
|
-
i && B === f && (i.value = !1),
|
|
1276
|
+
i && B === f && (i.value = !1), v = !0;
|
|
1274
1277
|
}
|
|
1275
1278
|
}), s ? Nn(() => (l.value = !0, A.value)) : A;
|
|
1276
1279
|
}
|
|
@@ -1381,7 +1384,7 @@ var rs = { exports: {} };
|
|
|
1381
1384
|
return !0;
|
|
1382
1385
|
};
|
|
1383
1386
|
}
|
|
1384
|
-
function
|
|
1387
|
+
function v(u, m, g, y) {
|
|
1385
1388
|
return u.validate(u.options, m, g, y);
|
|
1386
1389
|
}
|
|
1387
1390
|
var O = {
|
|
@@ -1426,7 +1429,7 @@ var rs = { exports: {} };
|
|
|
1426
1429
|
},
|
|
1427
1430
|
$or: function(u, m, g, y) {
|
|
1428
1431
|
for (var b = 0, E = u.length; b < E; b++)
|
|
1429
|
-
if (
|
|
1432
|
+
if (v(f(u, b), m, g, y)) return !0;
|
|
1430
1433
|
return !1;
|
|
1431
1434
|
},
|
|
1432
1435
|
$nor: function(u, m, g, y) {
|
|
@@ -1434,7 +1437,7 @@ var rs = { exports: {} };
|
|
|
1434
1437
|
},
|
|
1435
1438
|
$and: function(u, m, g, y) {
|
|
1436
1439
|
for (var b = 0, E = u.length; b < E; b++)
|
|
1437
|
-
if (!
|
|
1440
|
+
if (!v(f(u, b), m, g, y)) return !1;
|
|
1438
1441
|
return !0;
|
|
1439
1442
|
},
|
|
1440
1443
|
$regex: p(function(u, m) {
|
|
@@ -1446,9 +1449,9 @@ var rs = { exports: {} };
|
|
|
1446
1449
|
$elemMatch: function(u, m, g, y) {
|
|
1447
1450
|
return c(m) ? !!~function(b, E) {
|
|
1448
1451
|
for (var P = 0; P < b.length; P++)
|
|
1449
|
-
if (f(b, P),
|
|
1452
|
+
if (f(b, P), v(E, f(b, P))) return P;
|
|
1450
1453
|
return -1;
|
|
1451
|
-
}(m, u) :
|
|
1454
|
+
}(m, u) : v(u, m, g, y);
|
|
1452
1455
|
},
|
|
1453
1456
|
$exists: function(u, m, g, y) {
|
|
1454
1457
|
return y.hasOwnProperty(g) === u;
|
|
@@ -1506,7 +1509,7 @@ var rs = { exports: {} };
|
|
|
1506
1509
|
for (j = u.length; j--; ) if (u[j] == null) return !0;
|
|
1507
1510
|
}
|
|
1508
1511
|
for (j = u.length; j--; ) {
|
|
1509
|
-
var P =
|
|
1512
|
+
var P = v(H(f(u, j), g), E, j, u);
|
|
1510
1513
|
if (P && String(P) !== "[object Object]" && String(E) !== "[object Object]")
|
|
1511
1514
|
return !0;
|
|
1512
1515
|
}
|
|
@@ -1549,7 +1552,7 @@ var rs = { exports: {} };
|
|
|
1549
1552
|
$not: function(u, m, g) {
|
|
1550
1553
|
var y = Y(g)(u);
|
|
1551
1554
|
return function(b, E, P) {
|
|
1552
|
-
return !
|
|
1555
|
+
return !v(y, b, E, P);
|
|
1553
1556
|
};
|
|
1554
1557
|
},
|
|
1555
1558
|
$type: function(u) {
|
|
@@ -1587,11 +1590,11 @@ var rs = { exports: {} };
|
|
|
1587
1590
|
else tr(f(Ce, nr), ft, gt + 1, Ce, ln);
|
|
1588
1591
|
}(m, g, 0, m, E), E.length === 1) {
|
|
1589
1592
|
var P = E[0];
|
|
1590
|
-
return
|
|
1593
|
+
return v(y, P[0], P[1], P[2]);
|
|
1591
1594
|
}
|
|
1592
1595
|
for (var j = b && b.$ne !== void 0, W = j, _ = 0; _ < E.length; _++) {
|
|
1593
|
-
var he = E[_],
|
|
1594
|
-
j ? W &=
|
|
1596
|
+
var he = E[_], Yt = v(y, he[0], he[1], he[2]);
|
|
1597
|
+
j ? W &= Yt : W |= Yt;
|
|
1595
1598
|
}
|
|
1596
1599
|
return W;
|
|
1597
1600
|
}
|
|
@@ -1613,8 +1616,8 @@ var rs = { exports: {} };
|
|
|
1613
1616
|
else {
|
|
1614
1617
|
if (W.charCodeAt(0) === 36)
|
|
1615
1618
|
throw new Error("Unknown operation " + W);
|
|
1616
|
-
var
|
|
1617
|
-
j.push(Q(
|
|
1619
|
+
var Yt = W.split(".");
|
|
1620
|
+
j.push(Q(Yt, E(_), _));
|
|
1618
1621
|
}
|
|
1619
1622
|
}
|
|
1620
1623
|
}
|
|
@@ -1624,24 +1627,24 @@ var rs = { exports: {} };
|
|
|
1624
1627
|
if (!l(W)) return _;
|
|
1625
1628
|
for (var he in W) _.push(he), j(W[he], _);
|
|
1626
1629
|
return _;
|
|
1627
|
-
}(P, []).join(",").search(/[$.]/) === -1 ? V(P,
|
|
1630
|
+
}(P, []).join(",").search(/[$.]/) === -1 ? V(P, w) : b(P);
|
|
1628
1631
|
};
|
|
1629
1632
|
return function(P) {
|
|
1630
1633
|
return b(y(P));
|
|
1631
1634
|
};
|
|
1632
1635
|
}
|
|
1633
|
-
function
|
|
1636
|
+
function w(u, m) {
|
|
1634
1637
|
if (Object.prototype.toString.call(u) !== Object.prototype.toString.call(m))
|
|
1635
1638
|
return !1;
|
|
1636
1639
|
if (l(u)) {
|
|
1637
1640
|
if (Object.keys(u).length !== Object.keys(m).length) return !1;
|
|
1638
|
-
for (var g in u) if (!
|
|
1641
|
+
for (var g in u) if (!w(u[g], m[g])) return !1;
|
|
1639
1642
|
return !0;
|
|
1640
1643
|
}
|
|
1641
1644
|
if (c(u)) {
|
|
1642
1645
|
if (u.length !== m.length) return !1;
|
|
1643
1646
|
for (var y = 0, b = u.length; y < b; y++)
|
|
1644
|
-
if (!
|
|
1647
|
+
if (!w(u[y], m[y])) return !1;
|
|
1645
1648
|
return !0;
|
|
1646
1649
|
}
|
|
1647
1650
|
return u === m;
|
|
@@ -1651,18 +1654,18 @@ var rs = { exports: {} };
|
|
|
1651
1654
|
return m && m.select && (g = {
|
|
1652
1655
|
options: g,
|
|
1653
1656
|
validate: function(y, b, E, P) {
|
|
1654
|
-
return
|
|
1657
|
+
return v(y, b && m.select(b), E, P);
|
|
1655
1658
|
}
|
|
1656
1659
|
}), g;
|
|
1657
1660
|
}
|
|
1658
1661
|
function U(u, m) {
|
|
1659
1662
|
var g = H(u, m = Object.assign({ compare: ee, comparable: q }, m));
|
|
1660
1663
|
return function(y, b, E) {
|
|
1661
|
-
return
|
|
1664
|
+
return v(g, y, b, E);
|
|
1662
1665
|
};
|
|
1663
1666
|
}
|
|
1664
1667
|
function ee(u, m) {
|
|
1665
|
-
if (
|
|
1668
|
+
if (w(u, m)) return 0;
|
|
1666
1669
|
if (i(u) === i(m)) {
|
|
1667
1670
|
if (u > m) return 1;
|
|
1668
1671
|
if (u < m) return -1;
|
|
@@ -1689,15 +1692,15 @@ function ma(t, e, n) {
|
|
|
1689
1692
|
function fa(t, e) {
|
|
1690
1693
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
|
|
1691
1694
|
}
|
|
1692
|
-
function
|
|
1693
|
-
return
|
|
1695
|
+
function vn(t) {
|
|
1696
|
+
return vn = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
|
|
1694
1697
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
1695
|
-
},
|
|
1698
|
+
}, vn(t);
|
|
1696
1699
|
}
|
|
1697
|
-
function
|
|
1698
|
-
return
|
|
1700
|
+
function St(t, e) {
|
|
1701
|
+
return St = Object.setPrototypeOf || function(r, s) {
|
|
1699
1702
|
return r.__proto__ = s, r;
|
|
1700
|
-
},
|
|
1703
|
+
}, St(t, e);
|
|
1701
1704
|
}
|
|
1702
1705
|
function ga() {
|
|
1703
1706
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
@@ -1709,13 +1712,13 @@ function ga() {
|
|
|
1709
1712
|
return !1;
|
|
1710
1713
|
}
|
|
1711
1714
|
}
|
|
1712
|
-
function
|
|
1713
|
-
return ga() ?
|
|
1715
|
+
function Rt(t, e, n) {
|
|
1716
|
+
return ga() ? Rt = Reflect.construct : Rt = function(s, i, a) {
|
|
1714
1717
|
var c = [null];
|
|
1715
1718
|
c.push.apply(c, i);
|
|
1716
1719
|
var l = Function.bind.apply(s, c), A = new l();
|
|
1717
|
-
return a &&
|
|
1718
|
-
},
|
|
1720
|
+
return a && St(A, a.prototype), A;
|
|
1721
|
+
}, Rt.apply(null, arguments);
|
|
1719
1722
|
}
|
|
1720
1723
|
function pa(t) {
|
|
1721
1724
|
return Function.toString.call(t).indexOf("[native code]") !== -1;
|
|
@@ -1731,7 +1734,7 @@ function Bn(t) {
|
|
|
1731
1734
|
e.set(r, s);
|
|
1732
1735
|
}
|
|
1733
1736
|
function s() {
|
|
1734
|
-
return
|
|
1737
|
+
return Rt(r, arguments, vn(this).constructor);
|
|
1735
1738
|
}
|
|
1736
1739
|
return s.prototype = Object.create(r.prototype, {
|
|
1737
1740
|
constructor: {
|
|
@@ -1740,7 +1743,7 @@ function Bn(t) {
|
|
|
1740
1743
|
writable: !0,
|
|
1741
1744
|
configurable: !0
|
|
1742
1745
|
}
|
|
1743
|
-
}),
|
|
1746
|
+
}), St(s, r);
|
|
1744
1747
|
}, Bn(t);
|
|
1745
1748
|
}
|
|
1746
1749
|
function ir(t) {
|
|
@@ -1750,9 +1753,9 @@ function ir(t) {
|
|
|
1750
1753
|
}
|
|
1751
1754
|
var ss = function(e) {
|
|
1752
1755
|
return 'Cannot execute "' + e.action + '" on "' + e.subjectName + '"';
|
|
1753
|
-
},
|
|
1756
|
+
}, xt = ss, ya = /* @__PURE__ */ function(t) {
|
|
1754
1757
|
fa(e, t), e.setDefaultMessage = function(s) {
|
|
1755
|
-
s === null ?
|
|
1758
|
+
s === null ? xt = ss : xt = typeof s == "string" ? function() {
|
|
1756
1759
|
return s;
|
|
1757
1760
|
} : s;
|
|
1758
1761
|
}, e.from = function(s) {
|
|
@@ -1763,7 +1766,7 @@ var ss = function(e) {
|
|
|
1763
1766
|
};
|
|
1764
1767
|
function e(r, s) {
|
|
1765
1768
|
var i;
|
|
1766
|
-
return s === void 0 && (s = {}), i = t.call(this, r) || this, i._setMetadata(s), i.message = r ||
|
|
1769
|
+
return s === void 0 && (s = {}), i = t.call(this, r) || this, i._setMetadata(s), i.message = r || xt(ir(i)), i._customMessage = null, typeof Error.captureStackTrace == "function" && (i.name = i.constructor.name, Error.captureStackTrace(ir(i), i.constructor)), i;
|
|
1767
1770
|
}
|
|
1768
1771
|
var n = e.prototype;
|
|
1769
1772
|
return n.setMessage = function(s) {
|
|
@@ -1780,7 +1783,7 @@ var ss = function(e) {
|
|
|
1780
1783
|
subjectName: this.ability.subjectName(i)
|
|
1781
1784
|
});
|
|
1782
1785
|
var l = c ? c.reason : "";
|
|
1783
|
-
throw this.message = this._customMessage || l ||
|
|
1786
|
+
throw this.message = this._customMessage || l || xt(this), this;
|
|
1784
1787
|
}
|
|
1785
1788
|
}, n._setMetadata = function(s) {
|
|
1786
1789
|
this.subject = s.subject, this.subjectName = s.subjectName, this.action = s.action, this.field = s.field;
|
|
@@ -1795,10 +1798,10 @@ function ba(t) {
|
|
|
1795
1798
|
var e = typeof t == "object" ? t.constructor : t;
|
|
1796
1799
|
return e.modelName || e.name;
|
|
1797
1800
|
}
|
|
1798
|
-
function
|
|
1801
|
+
function wa(t) {
|
|
1799
1802
|
return JSON.parse(JSON.stringify(t));
|
|
1800
1803
|
}
|
|
1801
|
-
var
|
|
1804
|
+
var va = /[-/\\^$+?.()|[\]{}]/g, Ba = /\.?\*+\.?/g, Da = /\*+/, Ca = /\./g;
|
|
1802
1805
|
function Ea(t, e, n) {
|
|
1803
1806
|
var r = n[0] === "*" || t[0] === "." && t[t.length - 1] === "." ? "+" : "*", s = t.indexOf("**") === -1 ? "[^.]" : ".", i = t.replace(Ca, "\\$&").replace(Da, s + r);
|
|
1804
1807
|
return e + t.length === n.length ? "(?:" + i + ")?" : i;
|
|
@@ -1808,7 +1811,7 @@ function Ma(t, e, n) {
|
|
|
1808
1811
|
}
|
|
1809
1812
|
function Ia(t) {
|
|
1810
1813
|
var e = t.map(function(r) {
|
|
1811
|
-
return r.replace(
|
|
1814
|
+
return r.replace(va, Ma).replace(Ba, Ea);
|
|
1812
1815
|
}), n = e.length > 1 ? "(?:" + e.join("|") + ")" : e[0];
|
|
1813
1816
|
return new RegExp("^" + n + "$");
|
|
1814
1817
|
}
|
|
@@ -1853,7 +1856,7 @@ var Oa = /* @__PURE__ */ function() {
|
|
|
1853
1856
|
indexedRules: /* @__PURE__ */ Object.create(null),
|
|
1854
1857
|
mergedRules: /* @__PURE__ */ Object.create(null),
|
|
1855
1858
|
events: {},
|
|
1856
|
-
aliases:
|
|
1859
|
+
aliases: wa(ar)
|
|
1857
1860
|
}, this.update(n);
|
|
1858
1861
|
}
|
|
1859
1862
|
var e = t.prototype;
|
|
@@ -1871,8 +1874,8 @@ var Oa = /* @__PURE__ */ function() {
|
|
|
1871
1874
|
for (var s = /* @__PURE__ */ Object.create(null), i = this[te].RuleType, a = !0, c = !1, l = 0; l < r.length; l++) {
|
|
1872
1875
|
var A = new i(r[l]), f = this.expandActions(A.actions), p = Dn(A.subject), B = r.length - l - 1;
|
|
1873
1876
|
a = !!(a && A.inverted), !c && A.fields && (c = !0);
|
|
1874
|
-
for (var
|
|
1875
|
-
var O = p[
|
|
1877
|
+
for (var v = 0; v < p.length; v++) {
|
|
1878
|
+
var O = p[v];
|
|
1876
1879
|
s[O] = s[O] || /* @__PURE__ */ Object.create(null);
|
|
1877
1880
|
for (var I = 0; I < f.length; I++) {
|
|
1878
1881
|
var V = f[I];
|
|
@@ -2036,7 +2039,7 @@ async function ka(t, e) {
|
|
|
2036
2039
|
}
|
|
2037
2040
|
var Cn = /* @__PURE__ */ ((t) => (t.Loading = "loading", t.Allowed = "allowed", t.Denied = "denied", t))(Cn || {});
|
|
2038
2041
|
function Ra() {
|
|
2039
|
-
const t = ts(), { sessionUser: e } =
|
|
2042
|
+
const t = ts(), { sessionUser: e } = nn();
|
|
2040
2043
|
return ca(
|
|
2041
2044
|
async () => {
|
|
2042
2045
|
t.matched;
|
|
@@ -2075,7 +2078,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2075
2078
|
subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
|
|
2076
2079
|
}, za = {
|
|
2077
2080
|
noPermission: Wa
|
|
2078
|
-
}, 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__ */
|
|
2081
|
+
}, 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__ */ en({
|
|
2079
2082
|
__name: "NoPermission",
|
|
2080
2083
|
setup(t) {
|
|
2081
2084
|
const { t: e } = ns({
|
|
@@ -2086,7 +2089,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2086
2089
|
"th-TH": za
|
|
2087
2090
|
}
|
|
2088
2091
|
});
|
|
2089
|
-
return (n, r) => (
|
|
2092
|
+
return (n, r) => (tn(), Si("div", Za, [
|
|
2090
2093
|
Ke("div", La, [
|
|
2091
2094
|
Ke("div", Ka, [
|
|
2092
2095
|
Ke("img", {
|
|
@@ -2101,18 +2104,18 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2101
2104
|
])
|
|
2102
2105
|
]));
|
|
2103
2106
|
}
|
|
2104
|
-
}), to = /* @__PURE__ */
|
|
2107
|
+
}), to = /* @__PURE__ */ en({
|
|
2105
2108
|
__name: "PermissionWrapper",
|
|
2106
2109
|
setup(t) {
|
|
2107
2110
|
const e = Ra();
|
|
2108
|
-
return (n, r) => ge(e) === ge(Cn).Denied ? (
|
|
2111
|
+
return (n, r) => ge(e) === ge(Cn).Denied ? (tn(), Hn(eo, { key: 0 })) : ge(e) === ge(Cn).Allowed ? Qi(n.$slots, "default", { key: 1 }) : Xi("", !0);
|
|
2109
2112
|
}
|
|
2110
2113
|
});
|
|
2111
2114
|
function os(t) {
|
|
2112
2115
|
return {
|
|
2113
2116
|
inheritAttrs: !1,
|
|
2114
2117
|
setup(e, { attrs: n }) {
|
|
2115
|
-
return () =>
|
|
2118
|
+
return () => wn(to, {}, { default: () => wn(t, n) });
|
|
2116
2119
|
}
|
|
2117
2120
|
};
|
|
2118
2121
|
}
|
|
@@ -2409,10 +2412,10 @@ const k = [
|
|
|
2409
2412
|
), bs = $(
|
|
2410
2413
|
se,
|
|
2411
2414
|
ho
|
|
2412
|
-
),
|
|
2415
|
+
), ws = $(
|
|
2413
2416
|
se,
|
|
2414
2417
|
mo
|
|
2415
|
-
),
|
|
2418
|
+
), vs = $(
|
|
2416
2419
|
se,
|
|
2417
2420
|
fo
|
|
2418
2421
|
), Bs = $(
|
|
@@ -2439,7 +2442,7 @@ const k = [
|
|
|
2439
2442
|
o.delete
|
|
2440
2443
|
]
|
|
2441
2444
|
}
|
|
2442
|
-
],
|
|
2445
|
+
], wo = [
|
|
2443
2446
|
...k,
|
|
2444
2447
|
{
|
|
2445
2448
|
label: "Membership",
|
|
@@ -2451,7 +2454,7 @@ const k = [
|
|
|
2451
2454
|
o.delete
|
|
2452
2455
|
]
|
|
2453
2456
|
}
|
|
2454
|
-
],
|
|
2457
|
+
], vo = $(
|
|
2455
2458
|
no,
|
|
2456
2459
|
ro,
|
|
2457
2460
|
cs,
|
|
@@ -2465,8 +2468,8 @@ const k = [
|
|
|
2465
2468
|
ps,
|
|
2466
2469
|
ys,
|
|
2467
2470
|
bs,
|
|
2468
|
-
vs,
|
|
2469
2471
|
ws,
|
|
2472
|
+
vs,
|
|
2470
2473
|
Bs,
|
|
2471
2474
|
Ds,
|
|
2472
2475
|
ds,
|
|
@@ -2480,11 +2483,11 @@ const k = [
|
|
|
2480
2483
|
), Do = $(
|
|
2481
2484
|
se,
|
|
2482
2485
|
bo
|
|
2483
|
-
), Co = $(
|
|
2486
|
+
), Co = $(wo), Eo = {
|
|
2484
2487
|
[`set_${d.crm}`]: {
|
|
2485
2488
|
key: "sys:crm:access",
|
|
2486
2489
|
name: "CRM Access",
|
|
2487
|
-
permissions:
|
|
2490
|
+
permissions: vo
|
|
2488
2491
|
},
|
|
2489
2492
|
[`set_${d.crm_promotion}`]: {
|
|
2490
2493
|
key: "sys:crm:promotion",
|
|
@@ -2529,12 +2532,12 @@ const k = [
|
|
|
2529
2532
|
[`set_${d.crm_credit}`]: {
|
|
2530
2533
|
key: "sys:crm:credit",
|
|
2531
2534
|
name: "CRM Credit",
|
|
2532
|
-
permissions:
|
|
2535
|
+
permissions: ws
|
|
2533
2536
|
},
|
|
2534
2537
|
[`set_${d.crm_experience}`]: {
|
|
2535
2538
|
key: "sys:crm:experience",
|
|
2536
2539
|
name: "CRM Experience",
|
|
2537
|
-
permissions:
|
|
2540
|
+
permissions: vs
|
|
2538
2541
|
},
|
|
2539
2542
|
[`set_${d.crm_game}`]: {
|
|
2540
2543
|
key: "sys:crm:game",
|
|
@@ -3157,7 +3160,7 @@ const Ho = () => ({
|
|
|
3157
3160
|
sidebarDisplay: "Restaurants",
|
|
3158
3161
|
section: "payment-gateway"
|
|
3159
3162
|
},
|
|
3160
|
-
component: () => import("./Restaurant-
|
|
3163
|
+
component: () => import("./Restaurant-DGF0JBQS.js")
|
|
3161
3164
|
},
|
|
3162
3165
|
{
|
|
3163
3166
|
path: "/admin/restaurants/:restaurantId",
|
|
@@ -3166,7 +3169,7 @@ const Ho = () => ({
|
|
|
3166
3169
|
meta: {
|
|
3167
3170
|
parent: "mf-payment-admin.restaurant"
|
|
3168
3171
|
},
|
|
3169
|
-
component: () => import("./RestaurantSetting-
|
|
3172
|
+
component: () => import("./RestaurantSetting-CsXBf_vm.js")
|
|
3170
3173
|
},
|
|
3171
3174
|
{
|
|
3172
3175
|
path: "/admin/payout-accounts",
|
|
@@ -3175,7 +3178,7 @@ const Ho = () => ({
|
|
|
3175
3178
|
sidebarDisplay: "Payout Accounts",
|
|
3176
3179
|
section: "payment-gateway"
|
|
3177
3180
|
},
|
|
3178
|
-
component: () => import("./PayoutAccount-
|
|
3181
|
+
component: () => import("./PayoutAccount-BH1AZPsn.js")
|
|
3179
3182
|
},
|
|
3180
3183
|
{
|
|
3181
3184
|
path: "/admin/payout-accounts/:accountId",
|
|
@@ -3184,7 +3187,7 @@ const Ho = () => ({
|
|
|
3184
3187
|
meta: {
|
|
3185
3188
|
parent: "mf-payment-admin.payout-account"
|
|
3186
3189
|
},
|
|
3187
|
-
component: () => import("./PayoutAccountSetting-
|
|
3190
|
+
component: () => import("./PayoutAccountSetting-ChgN1fKw.js")
|
|
3188
3191
|
},
|
|
3189
3192
|
{
|
|
3190
3193
|
path: "/admin/onboarding",
|
|
@@ -3193,7 +3196,7 @@ const Ho = () => ({
|
|
|
3193
3196
|
sidebarDisplay: "Payment Onboarding",
|
|
3194
3197
|
section: "payment-gateway"
|
|
3195
3198
|
},
|
|
3196
|
-
component: () => import("./OnboardSubmission-
|
|
3199
|
+
component: () => import("./OnboardSubmission-B7WfxwtM.js")
|
|
3197
3200
|
},
|
|
3198
3201
|
{
|
|
3199
3202
|
path: "/admin/onboarding/:submissionId",
|
|
@@ -3202,7 +3205,7 @@ const Ho = () => ({
|
|
|
3202
3205
|
meta: {
|
|
3203
3206
|
parent: "mf-payment-admin.onboard-submission"
|
|
3204
3207
|
},
|
|
3205
|
-
component: () => import("./OnboardForm-
|
|
3208
|
+
component: () => import("./OnboardForm-CcuNtcGY.js")
|
|
3206
3209
|
},
|
|
3207
3210
|
{
|
|
3208
3211
|
path: "/admin/terminal/pos",
|
|
@@ -3211,7 +3214,7 @@ const Ho = () => ({
|
|
|
3211
3214
|
sidebarDisplay: "POS",
|
|
3212
3215
|
section: "device"
|
|
3213
3216
|
},
|
|
3214
|
-
component: () => import("./Terminal-
|
|
3217
|
+
component: () => import("./Terminal-CwG-DaEc.js"),
|
|
3215
3218
|
props: {
|
|
3216
3219
|
type: "POS"
|
|
3217
3220
|
}
|
|
@@ -3223,7 +3226,7 @@ const Ho = () => ({
|
|
|
3223
3226
|
sidebarDisplay: "Kiosks",
|
|
3224
3227
|
section: "device"
|
|
3225
3228
|
},
|
|
3226
|
-
component: () => import("./Terminal-
|
|
3229
|
+
component: () => import("./Terminal-CwG-DaEc.js"),
|
|
3227
3230
|
props: {
|
|
3228
3231
|
type: "KIOSK"
|
|
3229
3232
|
}
|
|
@@ -3235,7 +3238,7 @@ const Ho = () => ({
|
|
|
3235
3238
|
sidebarDisplay: "Terminals",
|
|
3236
3239
|
section: "device"
|
|
3237
3240
|
},
|
|
3238
|
-
component: () => import("./Terminal-
|
|
3241
|
+
component: () => import("./Terminal-CwG-DaEc.js"),
|
|
3239
3242
|
props: {
|
|
3240
3243
|
type: "TERMINAL"
|
|
3241
3244
|
}
|
|
@@ -3247,7 +3250,7 @@ const Ho = () => ({
|
|
|
3247
3250
|
meta: {
|
|
3248
3251
|
parent: "mf-payment-admin.pos"
|
|
3249
3252
|
},
|
|
3250
|
-
component: () => import("./TerminalSetting-
|
|
3253
|
+
component: () => import("./TerminalSetting-zm7YMozj.js")
|
|
3251
3254
|
},
|
|
3252
3255
|
{
|
|
3253
3256
|
path: "/admin/terminal/kiosk/:terminalId",
|
|
@@ -3256,7 +3259,7 @@ const Ho = () => ({
|
|
|
3256
3259
|
meta: {
|
|
3257
3260
|
parent: "mf-payment-admin.kiosk"
|
|
3258
3261
|
},
|
|
3259
|
-
component: () => import("./TerminalSetting-
|
|
3262
|
+
component: () => import("./TerminalSetting-zm7YMozj.js")
|
|
3260
3263
|
},
|
|
3261
3264
|
{
|
|
3262
3265
|
path: "/admin/terminal/terminal/:terminalId",
|
|
@@ -3265,7 +3268,7 @@ const Ho = () => ({
|
|
|
3265
3268
|
meta: {
|
|
3266
3269
|
parent: "mf-payment-admin.terminal"
|
|
3267
3270
|
},
|
|
3268
|
-
component: () => import("./TerminalSetting-
|
|
3271
|
+
component: () => import("./TerminalSetting-zm7YMozj.js")
|
|
3269
3272
|
},
|
|
3270
3273
|
{
|
|
3271
3274
|
path: "/admin/transaction",
|
|
@@ -3273,7 +3276,7 @@ const Ho = () => ({
|
|
|
3273
3276
|
meta: {
|
|
3274
3277
|
sidebarDisplay: "Transactions"
|
|
3275
3278
|
},
|
|
3276
|
-
component: () => import("./Transaction-
|
|
3279
|
+
component: () => import("./Transaction-CXsRdbmU.js")
|
|
3277
3280
|
},
|
|
3278
3281
|
{
|
|
3279
3282
|
path: "/admin/chargeback",
|
|
@@ -3281,7 +3284,7 @@ const Ho = () => ({
|
|
|
3281
3284
|
meta: {
|
|
3282
3285
|
sidebarDisplay: "Chargebacks"
|
|
3283
3286
|
},
|
|
3284
|
-
component: () => import("./Chargeback
|
|
3287
|
+
component: () => import("./Chargeback-_yYgraXd.js")
|
|
3285
3288
|
},
|
|
3286
3289
|
{
|
|
3287
3290
|
path: "/admin/settlement",
|
|
@@ -3289,7 +3292,7 @@ const Ho = () => ({
|
|
|
3289
3292
|
meta: {
|
|
3290
3293
|
sidebarDisplay: "Settlements"
|
|
3291
3294
|
},
|
|
3292
|
-
component: () => import("./Settlement-
|
|
3295
|
+
component: () => import("./Settlement-yWwPTpRg.js")
|
|
3293
3296
|
},
|
|
3294
3297
|
{
|
|
3295
3298
|
path: "/admin/settlement/:settlementId",
|
|
@@ -3298,7 +3301,7 @@ const Ho = () => ({
|
|
|
3298
3301
|
meta: {
|
|
3299
3302
|
parent: "mf-payment-admin.settlement"
|
|
3300
3303
|
},
|
|
3301
|
-
component: () => import("./SettlementTransactions-
|
|
3304
|
+
component: () => import("./SettlementTransactions-D3Zl668N.js")
|
|
3302
3305
|
}
|
|
3303
3306
|
].map((t) => ({
|
|
3304
3307
|
...t,
|
|
@@ -3306,7 +3309,7 @@ const Ho = () => ({
|
|
|
3306
3309
|
...t.meta,
|
|
3307
3310
|
...Ho()
|
|
3308
3311
|
}
|
|
3309
|
-
})),
|
|
3312
|
+
})), rn = [
|
|
3310
3313
|
{
|
|
3311
3314
|
path: "",
|
|
3312
3315
|
redirect: { name: "mf-payment-payout-account" }
|
|
@@ -3314,7 +3317,7 @@ const Ho = () => ({
|
|
|
3314
3317
|
{
|
|
3315
3318
|
path: "/payout-account",
|
|
3316
3319
|
name: "mf-payment-payout-account",
|
|
3317
|
-
component: () => import("./PayoutAccount-
|
|
3320
|
+
component: () => import("./PayoutAccount-DKoSN0Oj.js"),
|
|
3318
3321
|
meta: {
|
|
3319
3322
|
sidebarDisplay: "i18n:payment.routes.payout_account",
|
|
3320
3323
|
region: { MY: !0 },
|
|
@@ -3331,7 +3334,7 @@ const Ho = () => ({
|
|
|
3331
3334
|
{
|
|
3332
3335
|
path: "/onboard-submission",
|
|
3333
3336
|
name: "mf-payment-onboard-submission",
|
|
3334
|
-
component: () => import("./OnboardSubmission-
|
|
3337
|
+
component: () => import("./OnboardSubmission-B13TG3VY.js"),
|
|
3335
3338
|
meta: {
|
|
3336
3339
|
sidebarDisplay: "i18n:payment.routes.onboard_submission",
|
|
3337
3340
|
region: { MY: !0, TH: !0, AU: !0 },
|
|
@@ -3349,7 +3352,7 @@ const Ho = () => ({
|
|
|
3349
3352
|
path: "/onboard-submission/restaurant/:restaurantId/:type/:submission?",
|
|
3350
3353
|
name: "mf-payment-onboard-submission-form",
|
|
3351
3354
|
props: !0,
|
|
3352
|
-
component: () => import("./OnboardForm-
|
|
3355
|
+
component: () => import("./OnboardForm-DwtSLZZ6.js"),
|
|
3353
3356
|
meta: {
|
|
3354
3357
|
parent: "mf-payment-onboard-submission",
|
|
3355
3358
|
validationManifest: {
|
|
@@ -3365,7 +3368,7 @@ const Ho = () => ({
|
|
|
3365
3368
|
{
|
|
3366
3369
|
path: "/transaction-old",
|
|
3367
3370
|
name: "mf-payment-old-transaction",
|
|
3368
|
-
component: () => import("./TransactionOld-
|
|
3371
|
+
component: () => import("./TransactionOld-BNjs4dYq.js"),
|
|
3369
3372
|
meta: {
|
|
3370
3373
|
sidebarDisplay: "i18n:payment.routes.transaction",
|
|
3371
3374
|
validationManifest: {
|
|
@@ -3381,7 +3384,7 @@ const Ho = () => ({
|
|
|
3381
3384
|
{
|
|
3382
3385
|
path: "/transaction",
|
|
3383
3386
|
name: "mf-payment-transaction",
|
|
3384
|
-
component: () => import("./Transaction-
|
|
3387
|
+
component: () => import("./Transaction-CUChE6GZ.js"),
|
|
3385
3388
|
meta: {
|
|
3386
3389
|
sidebarDisplay: "i18n:payment.routes.transaction_new",
|
|
3387
3390
|
sidebarNew: !0,
|
|
@@ -3398,7 +3401,7 @@ const Ho = () => ({
|
|
|
3398
3401
|
{
|
|
3399
3402
|
path: "/settlement",
|
|
3400
3403
|
name: "mf-payment-settlement",
|
|
3401
|
-
component: () => import("./Settlement-
|
|
3404
|
+
component: () => import("./Settlement-Q5vvGkPy.js"),
|
|
3402
3405
|
meta: {
|
|
3403
3406
|
sidebarDisplay: "i18n:payment.routes.settlement",
|
|
3404
3407
|
region: { MY: !0, SG: !0 },
|
|
@@ -3416,7 +3419,7 @@ const Ho = () => ({
|
|
|
3416
3419
|
path: "/settlement/:settlementId",
|
|
3417
3420
|
name: "mf-payment-settlement-transaction",
|
|
3418
3421
|
props: !0,
|
|
3419
|
-
component: () => import("./SettlementTransactions-
|
|
3422
|
+
component: () => import("./SettlementTransactions-CoZ_d8v7.js"),
|
|
3420
3423
|
meta: {
|
|
3421
3424
|
parent: "mf-payment-settlement",
|
|
3422
3425
|
validationManifest: {
|
|
@@ -3584,8 +3587,8 @@ const Vs = function(t) {
|
|
|
3584
3587
|
const n = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
|
|
3585
3588
|
for (let s = 0; s < t.length; s += 3) {
|
|
3586
3589
|
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;
|
|
3587
|
-
let B = (c & 15) << 2 | A >> 6,
|
|
3588
|
-
l || (
|
|
3590
|
+
let B = (c & 15) << 2 | A >> 6, v = A & 63;
|
|
3591
|
+
l || (v = 64, a || (B = 64)), r.push(n[f], n[p], n[B], n[v]);
|
|
3589
3592
|
}
|
|
3590
3593
|
return r.join("");
|
|
3591
3594
|
},
|
|
@@ -3639,8 +3642,8 @@ const Vs = function(t) {
|
|
|
3639
3642
|
throw new So();
|
|
3640
3643
|
const B = i << 2 | c >> 4;
|
|
3641
3644
|
if (r.push(B), A !== 64) {
|
|
3642
|
-
const
|
|
3643
|
-
if (r.push(
|
|
3645
|
+
const v = c << 4 & 240 | A >> 2;
|
|
3646
|
+
if (r.push(v), p !== 64) {
|
|
3644
3647
|
const O = A << 6 & 192 | p;
|
|
3645
3648
|
r.push(O);
|
|
3646
3649
|
}
|
|
@@ -3872,10 +3875,10 @@ function sc() {
|
|
|
3872
3875
|
const ic = "FirebaseError";
|
|
3873
3876
|
class qe extends Error {
|
|
3874
3877
|
constructor(e, n, r) {
|
|
3875
|
-
super(n), this.code = e, this.customData = r, this.name = ic, Object.setPrototypeOf(this, qe.prototype), Error.captureStackTrace && Error.captureStackTrace(this,
|
|
3878
|
+
super(n), this.code = e, this.customData = r, this.name = ic, Object.setPrototypeOf(this, qe.prototype), Error.captureStackTrace && Error.captureStackTrace(this, It.prototype.create);
|
|
3876
3879
|
}
|
|
3877
3880
|
}
|
|
3878
|
-
class
|
|
3881
|
+
class It {
|
|
3879
3882
|
constructor(e, n, r) {
|
|
3880
3883
|
this.service = e, this.serviceName = n, this.errors = r;
|
|
3881
3884
|
}
|
|
@@ -3897,7 +3900,7 @@ function cc(t) {
|
|
|
3897
3900
|
return !1;
|
|
3898
3901
|
return !0;
|
|
3899
3902
|
}
|
|
3900
|
-
function
|
|
3903
|
+
function Ut(t, e) {
|
|
3901
3904
|
if (t === e)
|
|
3902
3905
|
return !0;
|
|
3903
3906
|
const n = Object.keys(t), r = Object.keys(e);
|
|
@@ -3906,7 +3909,7 @@ function Wt(t, e) {
|
|
|
3906
3909
|
return !1;
|
|
3907
3910
|
const i = t[s], a = e[s];
|
|
3908
3911
|
if (ur(i) && ur(a)) {
|
|
3909
|
-
if (!
|
|
3912
|
+
if (!Ut(i, a))
|
|
3910
3913
|
return !1;
|
|
3911
3914
|
} else if (i !== a)
|
|
3912
3915
|
return !1;
|
|
@@ -3935,7 +3938,7 @@ function ur(t) {
|
|
|
3935
3938
|
* See the License for the specific language governing permissions and
|
|
3936
3939
|
* limitations under the License.
|
|
3937
3940
|
*/
|
|
3938
|
-
function
|
|
3941
|
+
function Pt(t) {
|
|
3939
3942
|
const e = [];
|
|
3940
3943
|
for (const [n, r] of Object.entries(t))
|
|
3941
3944
|
Array.isArray(r) ? r.forEach((s) => {
|
|
@@ -4428,9 +4431,9 @@ class Ns {
|
|
|
4428
4431
|
this._userLogHandler && this._userLogHandler(this, F.ERROR, ...e), this._logHandler(this, F.ERROR, ...e);
|
|
4429
4432
|
}
|
|
4430
4433
|
}
|
|
4431
|
-
const
|
|
4434
|
+
const wc = (t, e) => e.some((n) => t instanceof n);
|
|
4432
4435
|
let lr, Ar;
|
|
4433
|
-
function
|
|
4436
|
+
function vc() {
|
|
4434
4437
|
return lr || (lr = [
|
|
4435
4438
|
IDBDatabase,
|
|
4436
4439
|
IDBObjectStore,
|
|
@@ -4511,7 +4514,7 @@ function Mc(t) {
|
|
|
4511
4514
|
};
|
|
4512
4515
|
}
|
|
4513
4516
|
function Ic(t) {
|
|
4514
|
-
return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t),
|
|
4517
|
+
return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t), wc(t, vc()) ? new Proxy(t, Mn) : t);
|
|
4515
4518
|
}
|
|
4516
4519
|
function Fe(t) {
|
|
4517
4520
|
if (t instanceof IDBRequest)
|
|
@@ -4616,7 +4619,7 @@ const In = "@firebase/app", hr = "0.10.13";
|
|
|
4616
4619
|
* See the License for the specific language governing permissions and
|
|
4617
4620
|
* limitations under the License.
|
|
4618
4621
|
*/
|
|
4619
|
-
const
|
|
4622
|
+
const ve = 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";
|
|
4620
4623
|
/**
|
|
4621
4624
|
* @license
|
|
4622
4625
|
* Copyright 2019 Google LLC
|
|
@@ -4679,20 +4682,20 @@ const Pn = "[DEFAULT]", au = {
|
|
|
4679
4682
|
* See the License for the specific language governing permissions and
|
|
4680
4683
|
* limitations under the License.
|
|
4681
4684
|
*/
|
|
4682
|
-
const
|
|
4685
|
+
const Wt = /* @__PURE__ */ new Map(), ou = /* @__PURE__ */ new Map(), On = /* @__PURE__ */ new Map();
|
|
4683
4686
|
function mr(t, e) {
|
|
4684
4687
|
try {
|
|
4685
4688
|
t.container.addComponent(e);
|
|
4686
4689
|
} catch (n) {
|
|
4687
|
-
|
|
4690
|
+
ve.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`, n);
|
|
4688
4691
|
}
|
|
4689
4692
|
}
|
|
4690
|
-
function
|
|
4693
|
+
function bt(t) {
|
|
4691
4694
|
const e = t.name;
|
|
4692
4695
|
if (On.has(e))
|
|
4693
|
-
return
|
|
4696
|
+
return ve.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
4694
4697
|
On.set(e, t);
|
|
4695
|
-
for (const n of
|
|
4698
|
+
for (const n of Wt.values())
|
|
4696
4699
|
mr(n, t);
|
|
4697
4700
|
for (const n of ou.values())
|
|
4698
4701
|
mr(n, t);
|
|
@@ -4736,7 +4739,7 @@ const cu = {
|
|
|
4736
4739
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
|
4737
4740
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
|
4738
4741
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
|
4739
|
-
}, ke = new
|
|
4742
|
+
}, ke = new It("app", "Firebase", cu);
|
|
4740
4743
|
/**
|
|
4741
4744
|
* @license
|
|
4742
4745
|
* Copyright 2019 Google LLC
|
|
@@ -4811,7 +4814,7 @@ class uu {
|
|
|
4811
4814
|
* See the License for the specific language governing permissions and
|
|
4812
4815
|
* limitations under the License.
|
|
4813
4816
|
*/
|
|
4814
|
-
const
|
|
4817
|
+
const Ot = iu;
|
|
4815
4818
|
function Ss(t, e = {}) {
|
|
4816
4819
|
let n = t;
|
|
4817
4820
|
typeof e != "object" && (e = { name: e });
|
|
@@ -4825,9 +4828,9 @@ function Ss(t, e = {}) {
|
|
|
4825
4828
|
"no-options"
|
|
4826
4829
|
/* AppError.NO_OPTIONS */
|
|
4827
4830
|
);
|
|
4828
|
-
const i =
|
|
4831
|
+
const i = Wt.get(s);
|
|
4829
4832
|
if (i) {
|
|
4830
|
-
if (
|
|
4833
|
+
if (Ut(n, i.options) && Ut(r, i.config))
|
|
4831
4834
|
return i;
|
|
4832
4835
|
throw ke.create("duplicate-app", { appName: s });
|
|
4833
4836
|
}
|
|
@@ -4835,10 +4838,10 @@ function Ss(t, e = {}) {
|
|
|
4835
4838
|
for (const l of On.values())
|
|
4836
4839
|
a.addComponent(l);
|
|
4837
4840
|
const c = new uu(n, r, a);
|
|
4838
|
-
return
|
|
4841
|
+
return Wt.set(s, c), c;
|
|
4839
4842
|
}
|
|
4840
4843
|
function lu(t = Pn) {
|
|
4841
|
-
const e =
|
|
4844
|
+
const e = Wt.get(t);
|
|
4842
4845
|
if (!e && t === Pn && Rs())
|
|
4843
4846
|
return Ss();
|
|
4844
4847
|
if (!e)
|
|
@@ -4854,10 +4857,10 @@ function $e(t, e, n) {
|
|
|
4854
4857
|
const c = [
|
|
4855
4858
|
`Unable to register library "${s}" with version "${e}":`
|
|
4856
4859
|
];
|
|
4857
|
-
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 "/")`),
|
|
4860
|
+
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 "/")`), ve.warn(c.join(" "));
|
|
4858
4861
|
return;
|
|
4859
4862
|
}
|
|
4860
|
-
|
|
4863
|
+
bt(new dt(
|
|
4861
4864
|
`${s}-version`,
|
|
4862
4865
|
() => ({ library: s, version: e }),
|
|
4863
4866
|
"VERSION"
|
|
@@ -4906,12 +4909,12 @@ async function hu(t) {
|
|
|
4906
4909
|
return await n.done, r;
|
|
4907
4910
|
} catch (e) {
|
|
4908
4911
|
if (e instanceof qe)
|
|
4909
|
-
|
|
4912
|
+
ve.warn(e.message);
|
|
4910
4913
|
else {
|
|
4911
4914
|
const n = ke.create("idb-get", {
|
|
4912
4915
|
originalErrorMessage: e == null ? void 0 : e.message
|
|
4913
4916
|
});
|
|
4914
|
-
|
|
4917
|
+
ve.warn(n.message);
|
|
4915
4918
|
}
|
|
4916
4919
|
}
|
|
4917
4920
|
}
|
|
@@ -4921,12 +4924,12 @@ async function fr(t, e) {
|
|
|
4921
4924
|
await r.objectStore(wt).put(e, Ws(t)), await r.done;
|
|
4922
4925
|
} catch (n) {
|
|
4923
4926
|
if (n instanceof qe)
|
|
4924
|
-
|
|
4927
|
+
ve.warn(n.message);
|
|
4925
4928
|
else {
|
|
4926
4929
|
const r = ke.create("idb-set", {
|
|
4927
4930
|
originalErrorMessage: n == null ? void 0 : n.message
|
|
4928
4931
|
});
|
|
4929
|
-
|
|
4932
|
+
ve.warn(r.message);
|
|
4930
4933
|
}
|
|
4931
4934
|
}
|
|
4932
4935
|
}
|
|
@@ -4972,7 +4975,7 @@ class gu {
|
|
|
4972
4975
|
return Date.now() - c <= fu;
|
|
4973
4976
|
}), this._storage.overwrite(this._heartbeatsCache));
|
|
4974
4977
|
} catch (r) {
|
|
4975
|
-
|
|
4978
|
+
ve.warn(r);
|
|
4976
4979
|
}
|
|
4977
4980
|
}
|
|
4978
4981
|
/**
|
|
@@ -4990,7 +4993,7 @@ class gu {
|
|
|
4990
4993
|
const n = gr(), { heartbeatsToSend: r, unsentEntries: s } = pu(this._heartbeatsCache.heartbeats), i = Fs(JSON.stringify({ version: 2, heartbeats: r }));
|
|
4991
4994
|
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;
|
|
4992
4995
|
} catch (n) {
|
|
4993
|
-
return
|
|
4996
|
+
return ve.warn(n), "";
|
|
4994
4997
|
}
|
|
4995
4998
|
}
|
|
4996
4999
|
}
|
|
@@ -5089,12 +5092,12 @@ function pr(t) {
|
|
|
5089
5092
|
* limitations under the License.
|
|
5090
5093
|
*/
|
|
5091
5094
|
function bu(t) {
|
|
5092
|
-
|
|
5095
|
+
bt(new dt(
|
|
5093
5096
|
"platform-logger",
|
|
5094
5097
|
(e) => new Gc(e),
|
|
5095
5098
|
"PRIVATE"
|
|
5096
5099
|
/* ComponentType.PRIVATE */
|
|
5097
|
-
)),
|
|
5100
|
+
)), bt(new dt(
|
|
5098
5101
|
"heartbeat",
|
|
5099
5102
|
(e) => new gu(e),
|
|
5100
5103
|
"PRIVATE"
|
|
@@ -5102,7 +5105,7 @@ function bu(t) {
|
|
|
5102
5105
|
)), $e(In, hr, t), $e(In, hr, "esm2017"), $e("fire-js", "");
|
|
5103
5106
|
}
|
|
5104
5107
|
bu("");
|
|
5105
|
-
var
|
|
5108
|
+
var wu = "firebase", vu = "10.14.1";
|
|
5106
5109
|
/**
|
|
5107
5110
|
* @license
|
|
5108
5111
|
* Copyright 2020 Google LLC
|
|
@@ -5119,7 +5122,7 @@ var vu = "firebase", wu = "10.14.1";
|
|
|
5119
5122
|
* See the License for the specific language governing permissions and
|
|
5120
5123
|
* limitations under the License.
|
|
5121
5124
|
*/
|
|
5122
|
-
$e(
|
|
5125
|
+
$e(wu, vu, "app");
|
|
5123
5126
|
var yr = function() {
|
|
5124
5127
|
return yr = Object.assign || function(e) {
|
|
5125
5128
|
for (var n, r = 1, s = arguments.length; r < s; r++) {
|
|
@@ -5142,7 +5145,7 @@ function zs() {
|
|
|
5142
5145
|
"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."
|
|
5143
5146
|
};
|
|
5144
5147
|
}
|
|
5145
|
-
const Bu = zs, Zs = new
|
|
5148
|
+
const Bu = zs, Zs = new It("auth", "Firebase", zs());
|
|
5146
5149
|
/**
|
|
5147
5150
|
* @license
|
|
5148
5151
|
* Copyright 2020 Google LLC
|
|
@@ -5159,12 +5162,12 @@ const Bu = zs, Zs = new Pt("auth", "Firebase", zs());
|
|
|
5159
5162
|
* See the License for the specific language governing permissions and
|
|
5160
5163
|
* limitations under the License.
|
|
5161
5164
|
*/
|
|
5162
|
-
const
|
|
5165
|
+
const zt = new Ns("@firebase/auth");
|
|
5163
5166
|
function Du(t, ...e) {
|
|
5164
|
-
|
|
5167
|
+
zt.logLevel <= F.WARN && zt.warn(`Auth (${Ot}): ${t}`, ...e);
|
|
5165
5168
|
}
|
|
5166
|
-
function
|
|
5167
|
-
|
|
5169
|
+
function qt(t, ...e) {
|
|
5170
|
+
zt.logLevel <= F.ERROR && zt.error(`Auth (${Ot}): ${t}`, ...e);
|
|
5168
5171
|
}
|
|
5169
5172
|
/**
|
|
5170
5173
|
* @license
|
|
@@ -5190,7 +5193,7 @@ function Ae(t, ...e) {
|
|
|
5190
5193
|
}
|
|
5191
5194
|
function Ls(t, e, n) {
|
|
5192
5195
|
const r = Object.assign(Object.assign({}, Bu()), { [e]: n });
|
|
5193
|
-
return new
|
|
5196
|
+
return new It("auth", "Firebase", r).create(e, {
|
|
5194
5197
|
appName: t.name
|
|
5195
5198
|
});
|
|
5196
5199
|
}
|
|
@@ -5210,7 +5213,7 @@ function M(t, e, ...n) {
|
|
|
5210
5213
|
}
|
|
5211
5214
|
function ye(t) {
|
|
5212
5215
|
const e = "INTERNAL ASSERTION FAILED: " + t;
|
|
5213
|
-
throw
|
|
5216
|
+
throw qt(e), new Error(e);
|
|
5214
5217
|
}
|
|
5215
5218
|
function De(t, e) {
|
|
5216
5219
|
t || ye(e);
|
|
@@ -5294,7 +5297,7 @@ function Mu() {
|
|
|
5294
5297
|
* See the License for the specific language governing permissions and
|
|
5295
5298
|
* limitations under the License.
|
|
5296
5299
|
*/
|
|
5297
|
-
class
|
|
5300
|
+
class Tt {
|
|
5298
5301
|
constructor(e, n) {
|
|
5299
5302
|
this.shortDelay = e, this.longDelay = n, De(n > e, "Short delay should be less than long delay!"), this.isMobile = _o() || tc();
|
|
5300
5303
|
}
|
|
@@ -5484,7 +5487,7 @@ const Iu = {
|
|
|
5484
5487
|
* See the License for the specific language governing permissions and
|
|
5485
5488
|
* limitations under the License.
|
|
5486
5489
|
*/
|
|
5487
|
-
const Pu = new
|
|
5490
|
+
const Pu = new Tt(3e4, 6e4);
|
|
5488
5491
|
function sn(t, e) {
|
|
5489
5492
|
return t.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: t.tenantId }) : e;
|
|
5490
5493
|
}
|
|
@@ -5494,7 +5497,7 @@ async function mt(t, e, n, r, s = {}) {
|
|
|
5494
5497
|
r && (e === "GET" ? a = r : i = {
|
|
5495
5498
|
body: JSON.stringify(r)
|
|
5496
5499
|
});
|
|
5497
|
-
const c =
|
|
5500
|
+
const c = Pt(Object.assign({ key: t.config.apiKey }, a)).slice(1), l = await t._getAdditionalHeaders();
|
|
5498
5501
|
l[
|
|
5499
5502
|
"Content-Type"
|
|
5500
5503
|
/* HttpHeader.CONTENT_TYPE */
|
|
@@ -5520,17 +5523,17 @@ async function Js(t, e, n) {
|
|
|
5520
5523
|
s.clearNetworkTimeout();
|
|
5521
5524
|
const a = await i.json();
|
|
5522
5525
|
if ("needConfirmation" in a)
|
|
5523
|
-
throw
|
|
5526
|
+
throw Ft(t, "account-exists-with-different-credential", a);
|
|
5524
5527
|
if (i.ok && !("errorMessage" in a))
|
|
5525
5528
|
return a;
|
|
5526
5529
|
{
|
|
5527
5530
|
const c = i.ok ? a.errorMessage : a.error.message, [l, A] = c.split(" : ");
|
|
5528
5531
|
if (l === "FEDERATED_USER_ID_ALREADY_LINKED")
|
|
5529
|
-
throw
|
|
5532
|
+
throw Ft(t, "credential-already-in-use", a);
|
|
5530
5533
|
if (l === "EMAIL_EXISTS")
|
|
5531
|
-
throw
|
|
5534
|
+
throw Ft(t, "email-already-in-use", a);
|
|
5532
5535
|
if (l === "USER_DISABLED")
|
|
5533
|
-
throw
|
|
5536
|
+
throw Ft(t, "user-disabled", a);
|
|
5534
5537
|
const f = r[l] || l.toLowerCase().replace(/[_\s]+/g, "-");
|
|
5535
5538
|
if (A)
|
|
5536
5539
|
throw Ls(t, f, A);
|
|
@@ -5566,7 +5569,7 @@ class Ou {
|
|
|
5566
5569
|
clearTimeout(this.timer);
|
|
5567
5570
|
}
|
|
5568
5571
|
}
|
|
5569
|
-
function
|
|
5572
|
+
function Ft(t, e, n) {
|
|
5570
5573
|
const r = {
|
|
5571
5574
|
appName: t.name
|
|
5572
5575
|
};
|
|
@@ -5646,15 +5649,15 @@ function yn(t) {
|
|
|
5646
5649
|
function Ln(t) {
|
|
5647
5650
|
const [e, n, r] = t.split(".");
|
|
5648
5651
|
if (e === void 0 || n === void 0 || r === void 0)
|
|
5649
|
-
return
|
|
5652
|
+
return qt("JWT malformed, contained fewer than 3 sections"), null;
|
|
5650
5653
|
try {
|
|
5651
5654
|
const s = ks(n);
|
|
5652
|
-
return s ? JSON.parse(s) : (
|
|
5655
|
+
return s ? JSON.parse(s) : (qt("Failed to decode base64 JWT payload"), null);
|
|
5653
5656
|
} catch (s) {
|
|
5654
|
-
return
|
|
5657
|
+
return qt("Caught error parsing JWT payload as JSON", s == null ? void 0 : s.toString()), null;
|
|
5655
5658
|
}
|
|
5656
5659
|
}
|
|
5657
|
-
function
|
|
5660
|
+
function wr(t) {
|
|
5658
5661
|
const e = Ln(t);
|
|
5659
5662
|
return M(
|
|
5660
5663
|
e,
|
|
@@ -5686,7 +5689,7 @@ function vr(t) {
|
|
|
5686
5689
|
* See the License for the specific language governing permissions and
|
|
5687
5690
|
* limitations under the License.
|
|
5688
5691
|
*/
|
|
5689
|
-
async function
|
|
5692
|
+
async function vt(t, e, n = !1) {
|
|
5690
5693
|
if (n)
|
|
5691
5694
|
return e;
|
|
5692
5695
|
try {
|
|
@@ -5809,9 +5812,9 @@ class Gn {
|
|
|
5809
5812
|
* See the License for the specific language governing permissions and
|
|
5810
5813
|
* limitations under the License.
|
|
5811
5814
|
*/
|
|
5812
|
-
async function
|
|
5815
|
+
async function Zt(t) {
|
|
5813
5816
|
var e;
|
|
5814
|
-
const n = t.auth, r = await t.getIdToken(), s = await
|
|
5817
|
+
const n = t.auth, r = await t.getIdToken(), s = await vt(t, ei(n, { idToken: r }));
|
|
5815
5818
|
M(
|
|
5816
5819
|
s == null ? void 0 : s.users.length,
|
|
5817
5820
|
n,
|
|
@@ -5836,7 +5839,7 @@ async function Lt(t) {
|
|
|
5836
5839
|
}
|
|
5837
5840
|
async function Vu(t) {
|
|
5838
5841
|
const e = ht(t);
|
|
5839
|
-
await
|
|
5842
|
+
await Zt(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
5840
5843
|
}
|
|
5841
5844
|
function xu(t, e) {
|
|
5842
5845
|
return [...t.filter((r) => !e.some((s) => s.providerId === r.providerId)), ...e];
|
|
@@ -5872,7 +5875,7 @@ function ti(t) {
|
|
|
5872
5875
|
*/
|
|
5873
5876
|
async function Fu(t, e) {
|
|
5874
5877
|
const n = await Js(t, {}, async () => {
|
|
5875
|
-
const r =
|
|
5878
|
+
const r = Pt({
|
|
5876
5879
|
grant_type: "refresh_token",
|
|
5877
5880
|
refresh_token: e
|
|
5878
5881
|
}).slice(1), { tokenApiHost: s, apiKey: i } = t.config, a = $s(t, s, "/v1/token", `key=${i}`), c = await t._getAdditionalHeaders();
|
|
@@ -5931,7 +5934,7 @@ class et {
|
|
|
5931
5934
|
"internal-error"
|
|
5932
5935
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5933
5936
|
);
|
|
5934
|
-
const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) :
|
|
5937
|
+
const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : wr(e.idToken);
|
|
5935
5938
|
this.updateTokensAndExpiration(e.idToken, e.refreshToken, n);
|
|
5936
5939
|
}
|
|
5937
5940
|
updateFromIdToken(e) {
|
|
@@ -5940,7 +5943,7 @@ class et {
|
|
|
5940
5943
|
"internal-error"
|
|
5941
5944
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5942
5945
|
);
|
|
5943
|
-
const n =
|
|
5946
|
+
const n = wr(e);
|
|
5944
5947
|
this.updateTokensAndExpiration(e, null, n);
|
|
5945
5948
|
}
|
|
5946
5949
|
async getToken(e, n = !1) {
|
|
@@ -6013,7 +6016,7 @@ class be {
|
|
|
6013
6016
|
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);
|
|
6014
6017
|
}
|
|
6015
6018
|
async getIdToken(e) {
|
|
6016
|
-
const n = await
|
|
6019
|
+
const n = await vt(this, this.stsTokenManager.getToken(this.auth, e));
|
|
6017
6020
|
return M(
|
|
6018
6021
|
n,
|
|
6019
6022
|
this.auth,
|
|
@@ -6058,13 +6061,13 @@ class be {
|
|
|
6058
6061
|
}
|
|
6059
6062
|
async _updateTokensIfNecessary(e, n = !1) {
|
|
6060
6063
|
let r = !1;
|
|
6061
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await
|
|
6064
|
+
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await Zt(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
|
|
6062
6065
|
}
|
|
6063
6066
|
async delete() {
|
|
6064
6067
|
if (pe(this.auth.app))
|
|
6065
6068
|
return Promise.reject(Re(this.auth));
|
|
6066
6069
|
const e = await this.getIdToken();
|
|
6067
|
-
return await
|
|
6070
|
+
return await vt(this, Tu(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
6068
6071
|
}
|
|
6069
6072
|
toJSON() {
|
|
6070
6073
|
return Object.assign(Object.assign({
|
|
@@ -6092,7 +6095,7 @@ class be {
|
|
|
6092
6095
|
}
|
|
6093
6096
|
static _fromJSON(e, n) {
|
|
6094
6097
|
var r, s, i, a, c, l, A, f;
|
|
6095
|
-
const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0,
|
|
6098
|
+
const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0, v = (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: w, isAnonymous: H, providerData: U, stsTokenManager: ee } = n;
|
|
6096
6099
|
M(
|
|
6097
6100
|
Y && ee,
|
|
6098
6101
|
e,
|
|
@@ -6106,7 +6109,7 @@ class be {
|
|
|
6106
6109
|
"internal-error"
|
|
6107
6110
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
6108
6111
|
), Ee(p, e.name), Ee(B, e.name), M(
|
|
6109
|
-
typeof
|
|
6112
|
+
typeof w == "boolean",
|
|
6110
6113
|
e,
|
|
6111
6114
|
"internal-error"
|
|
6112
6115
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -6115,16 +6118,16 @@ class be {
|
|
|
6115
6118
|
e,
|
|
6116
6119
|
"internal-error"
|
|
6117
6120
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
6118
|
-
), Ee(
|
|
6121
|
+
), Ee(v, e.name), Ee(O, e.name), Ee(I, e.name), Ee(V, e.name), Ee(R, e.name), Ee(Q, e.name);
|
|
6119
6122
|
const u = new be({
|
|
6120
6123
|
uid: Y,
|
|
6121
6124
|
auth: e,
|
|
6122
6125
|
email: B,
|
|
6123
|
-
emailVerified:
|
|
6126
|
+
emailVerified: w,
|
|
6124
6127
|
displayName: p,
|
|
6125
6128
|
isAnonymous: H,
|
|
6126
6129
|
photoURL: O,
|
|
6127
|
-
phoneNumber:
|
|
6130
|
+
phoneNumber: v,
|
|
6128
6131
|
tenantId: I,
|
|
6129
6132
|
stsTokenManager: q,
|
|
6130
6133
|
createdAt: R,
|
|
@@ -6146,7 +6149,7 @@ class be {
|
|
|
6146
6149
|
stsTokenManager: s,
|
|
6147
6150
|
isAnonymous: r
|
|
6148
6151
|
});
|
|
6149
|
-
return await
|
|
6152
|
+
return await Zt(i), i;
|
|
6150
6153
|
}
|
|
6151
6154
|
/**
|
|
6152
6155
|
* Initialize a User from an idToken server response
|
|
@@ -6198,11 +6201,11 @@ class be {
|
|
|
6198
6201
|
* See the License for the specific language governing permissions and
|
|
6199
6202
|
* limitations under the License.
|
|
6200
6203
|
*/
|
|
6201
|
-
const
|
|
6202
|
-
function
|
|
6204
|
+
const vr = /* @__PURE__ */ new Map();
|
|
6205
|
+
function we(t) {
|
|
6203
6206
|
De(t instanceof Function, "Expected a class definition");
|
|
6204
|
-
let e =
|
|
6205
|
-
return e ? (De(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(),
|
|
6207
|
+
let e = vr.get(t);
|
|
6208
|
+
return e ? (De(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(), vr.set(t, e), e);
|
|
6206
6209
|
}
|
|
6207
6210
|
/**
|
|
6208
6211
|
* @license
|
|
@@ -6260,14 +6263,14 @@ const Br = ni;
|
|
|
6260
6263
|
* See the License for the specific language governing permissions and
|
|
6261
6264
|
* limitations under the License.
|
|
6262
6265
|
*/
|
|
6263
|
-
function
|
|
6266
|
+
function Nt(t, e, n) {
|
|
6264
6267
|
return `firebase:${t}:${e}:${n}`;
|
|
6265
6268
|
}
|
|
6266
6269
|
class tt {
|
|
6267
6270
|
constructor(e, n, r) {
|
|
6268
6271
|
this.persistence = e, this.auth = n, this.userKey = r;
|
|
6269
6272
|
const { config: s, name: i } = this.auth;
|
|
6270
|
-
this.fullUserKey =
|
|
6273
|
+
this.fullUserKey = Nt(this.userKey, s.apiKey, i), this.fullPersistenceKey = Nt("persistence", s.apiKey, i), this.boundEventHandler = n._onStorageEvent.bind(n), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
|
|
6271
6274
|
}
|
|
6272
6275
|
setCurrentUser(e) {
|
|
6273
6276
|
return this.persistence._set(this.fullUserKey, e.toJSON());
|
|
@@ -6294,13 +6297,13 @@ class tt {
|
|
|
6294
6297
|
}
|
|
6295
6298
|
static async create(e, n, r = "authUser") {
|
|
6296
6299
|
if (!n.length)
|
|
6297
|
-
return new tt(
|
|
6300
|
+
return new tt(we(Br), e, r);
|
|
6298
6301
|
const s = (await Promise.all(n.map(async (A) => {
|
|
6299
6302
|
if (await A._isAvailable())
|
|
6300
6303
|
return A;
|
|
6301
6304
|
}))).filter((A) => A);
|
|
6302
|
-
let i = s[0] ||
|
|
6303
|
-
const a =
|
|
6305
|
+
let i = s[0] || we(Br);
|
|
6306
|
+
const a = Nt(r, e.config.apiKey, e.name);
|
|
6304
6307
|
let c = null;
|
|
6305
6308
|
for (const A of n)
|
|
6306
6309
|
try {
|
|
@@ -6433,7 +6436,7 @@ function Ai(t, e = []) {
|
|
|
6433
6436
|
n = t;
|
|
6434
6437
|
}
|
|
6435
6438
|
const r = e.length ? e.join(",") : "FirebaseCore-web";
|
|
6436
|
-
return `${n}/JsCore/${
|
|
6439
|
+
return `${n}/JsCore/${Ot}/${r}`;
|
|
6437
6440
|
}
|
|
6438
6441
|
/**
|
|
6439
6442
|
* @license
|
|
@@ -6618,7 +6621,7 @@ class Su {
|
|
|
6618
6621
|
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;
|
|
6619
6622
|
}
|
|
6620
6623
|
_initializeWithPersistence(e, n) {
|
|
6621
|
-
return n && (this._popupRedirectResolver =
|
|
6624
|
+
return n && (this._popupRedirectResolver = we(n)), this._initializationPromise = this.queue(async () => {
|
|
6622
6625
|
var r, s;
|
|
6623
6626
|
if (!this._deleted && (this.persistenceManager = await tt.create(this, e), !this._deleted)) {
|
|
6624
6627
|
if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
|
|
@@ -6701,7 +6704,7 @@ class Su {
|
|
|
6701
6704
|
}
|
|
6702
6705
|
async reloadAndSetCurrentUserOrClear(e) {
|
|
6703
6706
|
try {
|
|
6704
|
-
await
|
|
6707
|
+
await Zt(e);
|
|
6705
6708
|
} catch (n) {
|
|
6706
6709
|
if ((n == null ? void 0 : n.code) !== "auth/network-request-failed")
|
|
6707
6710
|
return this.directlySetCurrentUser(null);
|
|
@@ -6745,7 +6748,7 @@ class Su {
|
|
|
6745
6748
|
}
|
|
6746
6749
|
setPersistence(e) {
|
|
6747
6750
|
return pe(this.app) ? Promise.reject(Re(this)) : this.queue(async () => {
|
|
6748
|
-
await this.assertedPersistence.setPersistence(
|
|
6751
|
+
await this.assertedPersistence.setPersistence(we(e));
|
|
6749
6752
|
});
|
|
6750
6753
|
}
|
|
6751
6754
|
_getRecaptchaConfig() {
|
|
@@ -6767,7 +6770,7 @@ class Su {
|
|
|
6767
6770
|
return this.assertedPersistence.persistence.type;
|
|
6768
6771
|
}
|
|
6769
6772
|
_updateErrorMap(e) {
|
|
6770
|
-
this._errorFactory = new
|
|
6773
|
+
this._errorFactory = new It("auth", "Firebase", e());
|
|
6771
6774
|
}
|
|
6772
6775
|
onAuthStateChanged(e, n, r) {
|
|
6773
6776
|
return this.registerStateListener(this.authStateSubscription, e, n, r);
|
|
@@ -6818,7 +6821,7 @@ class Su {
|
|
|
6818
6821
|
}
|
|
6819
6822
|
async getOrInitRedirectPersistenceManager(e) {
|
|
6820
6823
|
if (!this.redirectPersistenceManager) {
|
|
6821
|
-
const n = e &&
|
|
6824
|
+
const n = e && we(e) || this._popupRedirectResolver;
|
|
6822
6825
|
M(
|
|
6823
6826
|
n,
|
|
6824
6827
|
this,
|
|
@@ -6826,7 +6829,7 @@ class Su {
|
|
|
6826
6829
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
6827
6830
|
), this.redirectPersistenceManager = await tt.create(
|
|
6828
6831
|
this,
|
|
6829
|
-
[
|
|
6832
|
+
[we(n._redirectPersistence)],
|
|
6830
6833
|
"redirectUser"
|
|
6831
6834
|
/* KeyName.REDIRECT_USER */
|
|
6832
6835
|
), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
|
|
@@ -7018,7 +7021,7 @@ function Lu(t, e) {
|
|
|
7018
7021
|
const n = Xs(t, "auth");
|
|
7019
7022
|
if (n.isInitialized()) {
|
|
7020
7023
|
const s = n.getImmediate(), i = n.getOptions();
|
|
7021
|
-
if (
|
|
7024
|
+
if (Ut(i, e ?? {}))
|
|
7022
7025
|
return s;
|
|
7023
7026
|
Be(
|
|
7024
7027
|
s,
|
|
@@ -7029,7 +7032,7 @@ function Lu(t, e) {
|
|
|
7029
7032
|
return n.initialize({ options: e });
|
|
7030
7033
|
}
|
|
7031
7034
|
function Ku(t, e) {
|
|
7032
|
-
const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(
|
|
7035
|
+
const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(we);
|
|
7033
7036
|
e != null && e.errorMap && t._updateErrorMap(e.errorMap), t._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
|
7034
7037
|
}
|
|
7035
7038
|
function Ju(t, e, n) {
|
|
@@ -7225,7 +7228,7 @@ class Ze extends hi {
|
|
|
7225
7228
|
e.pendingToken = this.pendingToken;
|
|
7226
7229
|
else {
|
|
7227
7230
|
const n = {};
|
|
7228
|
-
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 =
|
|
7231
|
+
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 = Pt(n);
|
|
7229
7232
|
}
|
|
7230
7233
|
return e;
|
|
7231
7234
|
}
|
|
@@ -7299,7 +7302,7 @@ class mi {
|
|
|
7299
7302
|
* See the License for the specific language governing permissions and
|
|
7300
7303
|
* limitations under the License.
|
|
7301
7304
|
*/
|
|
7302
|
-
class
|
|
7305
|
+
class Gt extends mi {
|
|
7303
7306
|
constructor() {
|
|
7304
7307
|
super(...arguments), this.scopes = [];
|
|
7305
7308
|
}
|
|
@@ -7334,7 +7337,7 @@ class jt extends mi {
|
|
|
7334
7337
|
* See the License for the specific language governing permissions and
|
|
7335
7338
|
* limitations under the License.
|
|
7336
7339
|
*/
|
|
7337
|
-
class Ie extends
|
|
7340
|
+
class Ie extends Gt {
|
|
7338
7341
|
constructor() {
|
|
7339
7342
|
super(
|
|
7340
7343
|
"facebook.com"
|
|
@@ -7405,7 +7408,7 @@ Ie.PROVIDER_ID = "facebook.com";
|
|
|
7405
7408
|
* See the License for the specific language governing permissions and
|
|
7406
7409
|
* limitations under the License.
|
|
7407
7410
|
*/
|
|
7408
|
-
class Pe extends
|
|
7411
|
+
class Pe extends Gt {
|
|
7409
7412
|
constructor() {
|
|
7410
7413
|
super(
|
|
7411
7414
|
"google.com"
|
|
@@ -7481,7 +7484,7 @@ Pe.PROVIDER_ID = "google.com";
|
|
|
7481
7484
|
* See the License for the specific language governing permissions and
|
|
7482
7485
|
* limitations under the License.
|
|
7483
7486
|
*/
|
|
7484
|
-
class Oe extends
|
|
7487
|
+
class Oe extends Gt {
|
|
7485
7488
|
constructor() {
|
|
7486
7489
|
super(
|
|
7487
7490
|
"github.com"
|
|
@@ -7545,7 +7548,7 @@ Oe.PROVIDER_ID = "github.com";
|
|
|
7545
7548
|
* See the License for the specific language governing permissions and
|
|
7546
7549
|
* limitations under the License.
|
|
7547
7550
|
*/
|
|
7548
|
-
class Te extends
|
|
7551
|
+
class Te extends Gt {
|
|
7549
7552
|
constructor() {
|
|
7550
7553
|
super(
|
|
7551
7554
|
"twitter.com"
|
|
@@ -7661,10 +7664,10 @@ function Mr(t) {
|
|
|
7661
7664
|
* See the License for the specific language governing permissions and
|
|
7662
7665
|
* limitations under the License.
|
|
7663
7666
|
*/
|
|
7664
|
-
class
|
|
7667
|
+
class Lt extends qe {
|
|
7665
7668
|
constructor(e, n, r, s) {
|
|
7666
7669
|
var i;
|
|
7667
|
-
super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this,
|
|
7670
|
+
super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this, Lt.prototype), this.customData = {
|
|
7668
7671
|
appName: e.name,
|
|
7669
7672
|
tenantId: (i = e.tenantId) !== null && i !== void 0 ? i : void 0,
|
|
7670
7673
|
_serverResponse: n.customData._serverResponse,
|
|
@@ -7672,16 +7675,16 @@ class Kt extends qe {
|
|
|
7672
7675
|
};
|
|
7673
7676
|
}
|
|
7674
7677
|
static _fromErrorAndOperation(e, n, r, s) {
|
|
7675
|
-
return new
|
|
7678
|
+
return new Lt(e, n, r, s);
|
|
7676
7679
|
}
|
|
7677
7680
|
}
|
|
7678
7681
|
function fi(t, e, n, r) {
|
|
7679
7682
|
return (e === "reauthenticate" ? n._getReauthenticationResolver(t) : n._getIdTokenResponse(t)).catch((i) => {
|
|
7680
|
-
throw i.code === "auth/multi-factor-auth-required" ?
|
|
7683
|
+
throw i.code === "auth/multi-factor-auth-required" ? Lt._fromErrorAndOperation(t, i, e, r) : i;
|
|
7681
7684
|
});
|
|
7682
7685
|
}
|
|
7683
7686
|
async function tl(t, e, n = !1) {
|
|
7684
|
-
const r = await
|
|
7687
|
+
const r = await vt(t, e._linkToIdToken(t.auth, await t.getIdToken()), n);
|
|
7685
7688
|
return Le._forOperation(t, "link", r);
|
|
7686
7689
|
}
|
|
7687
7690
|
/**
|
|
@@ -7706,7 +7709,7 @@ async function nl(t, e, n = !1) {
|
|
|
7706
7709
|
return Promise.reject(Re(r));
|
|
7707
7710
|
const s = "reauthenticate";
|
|
7708
7711
|
try {
|
|
7709
|
-
const i = await
|
|
7712
|
+
const i = await vt(t, fi(r, s, e, t), n);
|
|
7710
7713
|
M(
|
|
7711
7714
|
i.idToken,
|
|
7712
7715
|
r,
|
|
@@ -7807,7 +7810,7 @@ function al(t, e, n, r) {
|
|
|
7807
7810
|
function ol(t, e, n) {
|
|
7808
7811
|
return ht(t).beforeAuthStateChanged(e, n);
|
|
7809
7812
|
}
|
|
7810
|
-
const
|
|
7813
|
+
const Kt = "__sak";
|
|
7811
7814
|
/**
|
|
7812
7815
|
* @license
|
|
7813
7816
|
* Copyright 2019 Google LLC
|
|
@@ -7830,7 +7833,7 @@ class gi {
|
|
|
7830
7833
|
}
|
|
7831
7834
|
_isAvailable() {
|
|
7832
7835
|
try {
|
|
7833
|
-
return this.storage ? (this.storage.setItem(
|
|
7836
|
+
return this.storage ? (this.storage.setItem(Kt, "1"), this.storage.removeItem(Kt), Promise.resolve(!0)) : Promise.resolve(!1);
|
|
7834
7837
|
} catch {
|
|
7835
7838
|
return Promise.resolve(!1);
|
|
7836
7839
|
}
|
|
@@ -8250,7 +8253,7 @@ function hl(t) {
|
|
|
8250
8253
|
* See the License for the specific language governing permissions and
|
|
8251
8254
|
* limitations under the License.
|
|
8252
8255
|
*/
|
|
8253
|
-
function
|
|
8256
|
+
function wi() {
|
|
8254
8257
|
return typeof de().WorkerGlobalScope < "u" && typeof de().importScripts == "function";
|
|
8255
8258
|
}
|
|
8256
8259
|
async function ml() {
|
|
@@ -8267,7 +8270,7 @@ function fl() {
|
|
|
8267
8270
|
return ((t = navigator == null ? void 0 : navigator.serviceWorker) === null || t === void 0 ? void 0 : t.controller) || null;
|
|
8268
8271
|
}
|
|
8269
8272
|
function gl() {
|
|
8270
|
-
return
|
|
8273
|
+
return wi() ? self : null;
|
|
8271
8274
|
}
|
|
8272
8275
|
/**
|
|
8273
8276
|
* @license
|
|
@@ -8285,8 +8288,8 @@ function gl() {
|
|
|
8285
8288
|
* See the License for the specific language governing permissions and
|
|
8286
8289
|
* limitations under the License.
|
|
8287
8290
|
*/
|
|
8288
|
-
const
|
|
8289
|
-
class
|
|
8291
|
+
const vi = "firebaseLocalStorageDb", pl = 1, Jt = "firebaseLocalStorage", Bi = "fbase_key";
|
|
8292
|
+
class jt {
|
|
8290
8293
|
constructor(e) {
|
|
8291
8294
|
this.request = e;
|
|
8292
8295
|
}
|
|
@@ -8301,27 +8304,27 @@ class Yt {
|
|
|
8301
8304
|
}
|
|
8302
8305
|
}
|
|
8303
8306
|
function cn(t, e) {
|
|
8304
|
-
return t.transaction([
|
|
8307
|
+
return t.transaction([Jt], e ? "readwrite" : "readonly").objectStore(Jt);
|
|
8305
8308
|
}
|
|
8306
8309
|
function yl() {
|
|
8307
|
-
const t = indexedDB.deleteDatabase(
|
|
8308
|
-
return new
|
|
8310
|
+
const t = indexedDB.deleteDatabase(vi);
|
|
8311
|
+
return new jt(t).toPromise();
|
|
8309
8312
|
}
|
|
8310
8313
|
function jn() {
|
|
8311
|
-
const t = indexedDB.open(
|
|
8314
|
+
const t = indexedDB.open(vi, pl);
|
|
8312
8315
|
return new Promise((e, n) => {
|
|
8313
8316
|
t.addEventListener("error", () => {
|
|
8314
8317
|
n(t.error);
|
|
8315
8318
|
}), t.addEventListener("upgradeneeded", () => {
|
|
8316
8319
|
const r = t.result;
|
|
8317
8320
|
try {
|
|
8318
|
-
r.createObjectStore(
|
|
8321
|
+
r.createObjectStore(Jt, { keyPath: Bi });
|
|
8319
8322
|
} catch (s) {
|
|
8320
8323
|
n(s);
|
|
8321
8324
|
}
|
|
8322
8325
|
}), t.addEventListener("success", async () => {
|
|
8323
8326
|
const r = t.result;
|
|
8324
|
-
r.objectStoreNames.contains(
|
|
8327
|
+
r.objectStoreNames.contains(Jt) ? e(r) : (r.close(), await yl(), e(await jn()));
|
|
8325
8328
|
});
|
|
8326
8329
|
});
|
|
8327
8330
|
}
|
|
@@ -8330,17 +8333,17 @@ async function Ir(t, e, n) {
|
|
|
8330
8333
|
[Bi]: e,
|
|
8331
8334
|
value: n
|
|
8332
8335
|
});
|
|
8333
|
-
return new
|
|
8336
|
+
return new jt(r).toPromise();
|
|
8334
8337
|
}
|
|
8335
8338
|
async function bl(t, e) {
|
|
8336
|
-
const n = cn(t, !1).get(e), r = await new
|
|
8339
|
+
const n = cn(t, !1).get(e), r = await new jt(n).toPromise();
|
|
8337
8340
|
return r === void 0 ? null : r.value;
|
|
8338
8341
|
}
|
|
8339
8342
|
function Pr(t, e) {
|
|
8340
8343
|
const n = cn(t, !0).delete(e);
|
|
8341
|
-
return new
|
|
8344
|
+
return new jt(n).toPromise();
|
|
8342
8345
|
}
|
|
8343
|
-
const
|
|
8346
|
+
const wl = 800, vl = 3;
|
|
8344
8347
|
class Di {
|
|
8345
8348
|
constructor() {
|
|
8346
8349
|
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(() => {
|
|
@@ -8357,7 +8360,7 @@ class Di {
|
|
|
8357
8360
|
const r = await this._openDb();
|
|
8358
8361
|
return await e(r);
|
|
8359
8362
|
} catch (r) {
|
|
8360
|
-
if (n++ >
|
|
8363
|
+
if (n++ > vl)
|
|
8361
8364
|
throw r;
|
|
8362
8365
|
this.db && (this.db.close(), this.db = void 0);
|
|
8363
8366
|
}
|
|
@@ -8367,7 +8370,7 @@ class Di {
|
|
|
8367
8370
|
* postMessage interface to send these events to the worker ourselves.
|
|
8368
8371
|
*/
|
|
8369
8372
|
async initializeServiceWorkerMessaging() {
|
|
8370
|
-
return
|
|
8373
|
+
return wi() ? this.initializeReceiver() : this.initializeSender();
|
|
8371
8374
|
}
|
|
8372
8375
|
/**
|
|
8373
8376
|
* As the worker we should listen to events from the main window.
|
|
@@ -8430,7 +8433,7 @@ class Di {
|
|
|
8430
8433
|
if (!indexedDB)
|
|
8431
8434
|
return !1;
|
|
8432
8435
|
const e = await jn();
|
|
8433
|
-
return await Ir(e,
|
|
8436
|
+
return await Ir(e, Kt, "1"), await Pr(e, Kt), !0;
|
|
8434
8437
|
} catch {
|
|
8435
8438
|
}
|
|
8436
8439
|
return !1;
|
|
@@ -8456,7 +8459,7 @@ class Di {
|
|
|
8456
8459
|
async _poll() {
|
|
8457
8460
|
const e = await this._withRetries((s) => {
|
|
8458
8461
|
const i = cn(s, !1).getAll();
|
|
8459
|
-
return new
|
|
8462
|
+
return new jt(i).toPromise();
|
|
8460
8463
|
});
|
|
8461
8464
|
if (!e)
|
|
8462
8465
|
return [];
|
|
@@ -8478,7 +8481,7 @@ class Di {
|
|
|
8478
8481
|
s(n);
|
|
8479
8482
|
}
|
|
8480
8483
|
startPolling() {
|
|
8481
|
-
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(),
|
|
8484
|
+
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), wl);
|
|
8482
8485
|
}
|
|
8483
8486
|
stopPolling() {
|
|
8484
8487
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
|
@@ -8492,7 +8495,7 @@ class Di {
|
|
|
8492
8495
|
}
|
|
8493
8496
|
Di.type = "LOCAL";
|
|
8494
8497
|
const Bl = Di;
|
|
8495
|
-
new
|
|
8498
|
+
new Tt(3e4, 6e4);
|
|
8496
8499
|
/**
|
|
8497
8500
|
* @license
|
|
8498
8501
|
* Copyright 2021 Google LLC
|
|
@@ -8510,7 +8513,7 @@ new Gt(3e4, 6e4);
|
|
|
8510
8513
|
* limitations under the License.
|
|
8511
8514
|
*/
|
|
8512
8515
|
function Dl(t, e) {
|
|
8513
|
-
return e ?
|
|
8516
|
+
return e ? we(e) : (M(
|
|
8514
8517
|
t._popupRedirectResolver,
|
|
8515
8518
|
t,
|
|
8516
8519
|
"argument-error"
|
|
@@ -8683,7 +8686,7 @@ class Ci {
|
|
|
8683
8686
|
* See the License for the specific language governing permissions and
|
|
8684
8687
|
* limitations under the License.
|
|
8685
8688
|
*/
|
|
8686
|
-
const Il = new
|
|
8689
|
+
const Il = new Tt(2e3, 1e4);
|
|
8687
8690
|
class _e extends Ci {
|
|
8688
8691
|
constructor(e, n, r, s, i) {
|
|
8689
8692
|
super(e, n, s, i), this.provider = r, this.authWindow = null, this.pollId = null, _e.currentPopupAction && _e.currentPopupAction.cancel(), _e.currentPopupAction = this;
|
|
@@ -8769,7 +8772,7 @@ _e.currentPopupAction = null;
|
|
|
8769
8772
|
* See the License for the specific language governing permissions and
|
|
8770
8773
|
* limitations under the License.
|
|
8771
8774
|
*/
|
|
8772
|
-
const Pl = "pendingRedirect",
|
|
8775
|
+
const Pl = "pendingRedirect", Ht = /* @__PURE__ */ new Map();
|
|
8773
8776
|
class Ol extends Ci {
|
|
8774
8777
|
constructor(e, n, r = !1) {
|
|
8775
8778
|
super(e, [
|
|
@@ -8785,7 +8788,7 @@ class Ol extends Ci {
|
|
|
8785
8788
|
* just return it.
|
|
8786
8789
|
*/
|
|
8787
8790
|
async execute() {
|
|
8788
|
-
let e =
|
|
8791
|
+
let e = Ht.get(this.auth._key());
|
|
8789
8792
|
if (!e) {
|
|
8790
8793
|
try {
|
|
8791
8794
|
const r = await Tl(this.resolver, this.auth) ? await super.execute() : null;
|
|
@@ -8793,9 +8796,9 @@ class Ol extends Ci {
|
|
|
8793
8796
|
} catch (n) {
|
|
8794
8797
|
e = () => Promise.reject(n);
|
|
8795
8798
|
}
|
|
8796
|
-
|
|
8799
|
+
Ht.set(this.auth._key(), e);
|
|
8797
8800
|
}
|
|
8798
|
-
return this.bypassAuthState ||
|
|
8801
|
+
return this.bypassAuthState || Ht.set(this.auth._key(), () => Promise.resolve(null)), e();
|
|
8799
8802
|
}
|
|
8800
8803
|
async onAuthEvent(e) {
|
|
8801
8804
|
if (e.type === "signInViaRedirect")
|
|
@@ -8824,13 +8827,13 @@ async function Tl(t, e) {
|
|
|
8824
8827
|
return await r._remove(n), s;
|
|
8825
8828
|
}
|
|
8826
8829
|
function Gl(t, e) {
|
|
8827
|
-
|
|
8830
|
+
Ht.set(t._key(), e);
|
|
8828
8831
|
}
|
|
8829
8832
|
function jl(t) {
|
|
8830
|
-
return
|
|
8833
|
+
return we(t._redirectPersistence);
|
|
8831
8834
|
}
|
|
8832
8835
|
function Yl(t) {
|
|
8833
|
-
return
|
|
8836
|
+
return Nt(Pl, t.config.apiKey, t.name);
|
|
8834
8837
|
}
|
|
8835
8838
|
async function Vl(t, e, n = !1) {
|
|
8836
8839
|
if (pe(t.app))
|
|
@@ -8991,7 +8994,7 @@ function Ql(t) {
|
|
|
8991
8994
|
* See the License for the specific language governing permissions and
|
|
8992
8995
|
* limitations under the License.
|
|
8993
8996
|
*/
|
|
8994
|
-
const Xl = new
|
|
8997
|
+
const Xl = new Tt(3e4, 6e4);
|
|
8995
8998
|
function Tr() {
|
|
8996
8999
|
const t = de().___jsl;
|
|
8997
9000
|
if (t != null && t.H) {
|
|
@@ -9034,12 +9037,12 @@ function Sl(t) {
|
|
|
9034
9037
|
}, Wu(`${zu()}?onload=${c}`).catch((l) => n(l));
|
|
9035
9038
|
}
|
|
9036
9039
|
}).catch((e) => {
|
|
9037
|
-
throw
|
|
9040
|
+
throw Qt = null, e;
|
|
9038
9041
|
});
|
|
9039
9042
|
}
|
|
9040
|
-
let
|
|
9043
|
+
let Qt = null;
|
|
9041
9044
|
function Ul(t) {
|
|
9042
|
-
return
|
|
9045
|
+
return Qt = Qt || Sl(t), Qt;
|
|
9043
9046
|
}
|
|
9044
9047
|
/**
|
|
9045
9048
|
* @license
|
|
@@ -9057,7 +9060,7 @@ function Ul(t) {
|
|
|
9057
9060
|
* See the License for the specific language governing permissions and
|
|
9058
9061
|
* limitations under the License.
|
|
9059
9062
|
*/
|
|
9060
|
-
const Wl = new
|
|
9063
|
+
const Wl = new Tt(5e3, 15e3), zl = "__/auth/iframe", Zl = "emulator/auth/iframe", Ll = {
|
|
9061
9064
|
style: {
|
|
9062
9065
|
position: "absolute",
|
|
9063
9066
|
top: "-100px",
|
|
@@ -9083,11 +9086,11 @@ function Jl(t) {
|
|
|
9083
9086
|
const n = e.emulator ? Zn(e, Zl) : `https://${t.config.authDomain}/${zl}`, r = {
|
|
9084
9087
|
apiKey: e.apiKey,
|
|
9085
9088
|
appName: t.name,
|
|
9086
|
-
v:
|
|
9089
|
+
v: Ot
|
|
9087
9090
|
}, s = Kl.get(t.config.apiHost);
|
|
9088
9091
|
s && (r.eid = s);
|
|
9089
9092
|
const i = t._getFrameworks();
|
|
9090
|
-
return i.length && (r.fw = i.join(",")), `${n}?${
|
|
9093
|
+
return i.length && (r.fw = i.join(",")), `${n}?${Pt(r).slice(1)}`;
|
|
9091
9094
|
}
|
|
9092
9095
|
async function _l(t) {
|
|
9093
9096
|
const e = await Ul(t), n = de().gapi;
|
|
@@ -9166,7 +9169,7 @@ function sA(t, e, n, r = eA, s = tA) {
|
|
|
9166
9169
|
left: a
|
|
9167
9170
|
}), A = K().toLowerCase();
|
|
9168
9171
|
n && (c = ii(A) ? nA : n), ri(A) && (e = e || rA, l.scrollbars = "yes");
|
|
9169
|
-
const f = Object.entries(l).reduce((B, [
|
|
9172
|
+
const f = Object.entries(l).reduce((B, [v, O]) => `${B}${v}=${O},`, "");
|
|
9170
9173
|
if (Ru(A) && c !== "_self")
|
|
9171
9174
|
return iA(e || "", c), new Gr(null);
|
|
9172
9175
|
const p = window.open(e || "", c, f);
|
|
@@ -9222,7 +9225,7 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9222
9225
|
appName: t.name,
|
|
9223
9226
|
authType: n,
|
|
9224
9227
|
redirectUrl: r,
|
|
9225
|
-
v:
|
|
9228
|
+
v: Ot,
|
|
9226
9229
|
eventId: s
|
|
9227
9230
|
};
|
|
9228
9231
|
if (e instanceof mi) {
|
|
@@ -9230,7 +9233,7 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9230
9233
|
for (const [f, p] of Object.entries({}))
|
|
9231
9234
|
a[f] = p;
|
|
9232
9235
|
}
|
|
9233
|
-
if (e instanceof
|
|
9236
|
+
if (e instanceof Gt) {
|
|
9234
9237
|
const f = e.getScopes().filter((p) => p !== "");
|
|
9235
9238
|
f.length > 0 && (a.scopes = f.join(","));
|
|
9236
9239
|
}
|
|
@@ -9239,7 +9242,7 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9239
9242
|
for (const f of Object.keys(c))
|
|
9240
9243
|
c[f] === void 0 && delete c[f];
|
|
9241
9244
|
const l = await t._getAppCheckToken(), A = l ? `#${cA}=${encodeURIComponent(l)}` : "";
|
|
9242
|
-
return `${uA(t)}?${
|
|
9245
|
+
return `${uA(t)}?${Pt(c).slice(1)}${A}`;
|
|
9243
9246
|
}
|
|
9244
9247
|
function uA({ config: t }) {
|
|
9245
9248
|
return t.emulator ? Zn(t, oA) : `https://${t.authDomain}/${aA}`;
|
|
@@ -9407,7 +9410,7 @@ function hA(t) {
|
|
|
9407
9410
|
}
|
|
9408
9411
|
}
|
|
9409
9412
|
function mA(t) {
|
|
9410
|
-
|
|
9413
|
+
bt(new dt(
|
|
9411
9414
|
"auth",
|
|
9412
9415
|
(e, { options: n }) => {
|
|
9413
9416
|
const r = e.getProvider("app").getImmediate(), s = e.getProvider("heartbeat"), i = e.getProvider("app-check-internal"), { apiKey: a, authDomain: c } = r.options;
|
|
@@ -9433,7 +9436,7 @@ function mA(t) {
|
|
|
9433
9436
|
"auth-internal"
|
|
9434
9437
|
/* _ComponentName.AUTH_INTERNAL */
|
|
9435
9438
|
).initialize();
|
|
9436
|
-
})),
|
|
9439
|
+
})), bt(new dt(
|
|
9437
9440
|
"auth-internal",
|
|
9438
9441
|
(e) => {
|
|
9439
9442
|
const n = an(e.getProvider(
|
|
@@ -9542,7 +9545,7 @@ var un = class {
|
|
|
9542
9545
|
}
|
|
9543
9546
|
onUnsubscribe() {
|
|
9544
9547
|
}
|
|
9545
|
-
}, He, Ge, rt, Xr,
|
|
9548
|
+
}, He, Ge, rt, Xr, wA = (Xr = class extends un {
|
|
9546
9549
|
constructor() {
|
|
9547
9550
|
super();
|
|
9548
9551
|
G(this, He);
|
|
@@ -9583,7 +9586,7 @@ var un = class {
|
|
|
9583
9586
|
var e;
|
|
9584
9587
|
return typeof h(this, He) == "boolean" ? h(this, He) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
|
|
9585
9588
|
}
|
|
9586
|
-
}, He = new WeakMap(), Ge = new WeakMap(), rt = new WeakMap(), Xr), Mi = new
|
|
9589
|
+
}, He = new WeakMap(), Ge = new WeakMap(), rt = new WeakMap(), Xr), Mi = new wA(), vA = {
|
|
9587
9590
|
// We need the wrapper function syntax below instead of direct references to
|
|
9588
9591
|
// global setTimeout etc.
|
|
9589
9592
|
//
|
|
@@ -9607,7 +9610,7 @@ var un = class {
|
|
|
9607
9610
|
//
|
|
9608
9611
|
// We settle for type safety for the TimeoutProvider type, and accept that
|
|
9609
9612
|
// this class is unsafe internally to allow for extension.
|
|
9610
|
-
G(this, oe,
|
|
9613
|
+
G(this, oe, vA);
|
|
9611
9614
|
G(this, Qe, !1);
|
|
9612
9615
|
}
|
|
9613
9616
|
setTimeoutProvider(t) {
|
|
@@ -9663,7 +9666,7 @@ function Fr(t, e) {
|
|
|
9663
9666
|
if (r) {
|
|
9664
9667
|
if (e.queryHash !== er(a, e.options))
|
|
9665
9668
|
return !1;
|
|
9666
|
-
} else if (!
|
|
9669
|
+
} else if (!Dt(e.queryKey, a))
|
|
9667
9670
|
return !1;
|
|
9668
9671
|
}
|
|
9669
9672
|
if (n !== "all") {
|
|
@@ -9679,24 +9682,24 @@ function kr(t, e) {
|
|
|
9679
9682
|
if (!e.options.mutationKey)
|
|
9680
9683
|
return !1;
|
|
9681
9684
|
if (n) {
|
|
9682
|
-
if (
|
|
9685
|
+
if (Bt(e.options.mutationKey) !== Bt(i))
|
|
9683
9686
|
return !1;
|
|
9684
|
-
} else if (!
|
|
9687
|
+
} else if (!Dt(e.options.mutationKey, i))
|
|
9685
9688
|
return !1;
|
|
9686
9689
|
}
|
|
9687
9690
|
return !(r && e.state.status !== r || s && !s(e));
|
|
9688
9691
|
}
|
|
9689
9692
|
function er(t, e) {
|
|
9690
|
-
return ((e == null ? void 0 : e.queryKeyHashFn) ||
|
|
9693
|
+
return ((e == null ? void 0 : e.queryKeyHashFn) || Bt)(t);
|
|
9691
9694
|
}
|
|
9692
|
-
function
|
|
9695
|
+
function Bt(t) {
|
|
9693
9696
|
return JSON.stringify(
|
|
9694
9697
|
t,
|
|
9695
9698
|
(e, n) => Fn(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
|
|
9696
9699
|
);
|
|
9697
9700
|
}
|
|
9698
|
-
function
|
|
9699
|
-
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((n) =>
|
|
9701
|
+
function Dt(t, e) {
|
|
9702
|
+
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((n) => Dt(t[n], e[n])) : !1;
|
|
9700
9703
|
}
|
|
9701
9704
|
var OA = Object.prototype.hasOwnProperty;
|
|
9702
9705
|
function xn(t, e, n = 0) {
|
|
@@ -9708,16 +9711,16 @@ function xn(t, e, n = 0) {
|
|
|
9708
9711
|
const i = (r ? t : Object.keys(t)).length, a = r ? e : Object.keys(e), c = a.length, l = r ? new Array(c) : {};
|
|
9709
9712
|
let A = 0;
|
|
9710
9713
|
for (let f = 0; f < c; f++) {
|
|
9711
|
-
const p = r ? f : a[f], B = t[p],
|
|
9712
|
-
if (B ===
|
|
9714
|
+
const p = r ? f : a[f], B = t[p], v = e[p];
|
|
9715
|
+
if (B === v) {
|
|
9713
9716
|
l[p] = B, (r ? f < i : OA.call(t, p)) && A++;
|
|
9714
9717
|
continue;
|
|
9715
9718
|
}
|
|
9716
|
-
if (B === null ||
|
|
9717
|
-
l[p] =
|
|
9719
|
+
if (B === null || v === null || typeof B != "object" || typeof v != "object") {
|
|
9720
|
+
l[p] = v;
|
|
9718
9721
|
continue;
|
|
9719
9722
|
}
|
|
9720
|
-
const O = xn(B,
|
|
9723
|
+
const O = xn(B, v, n + 1);
|
|
9721
9724
|
l[p] = O, O === B && A++;
|
|
9722
9725
|
}
|
|
9723
9726
|
return i === c && A === i ? t : l;
|
|
@@ -9777,11 +9780,11 @@ function YA(t, e, n = 0) {
|
|
|
9777
9780
|
const r = [e, ...t];
|
|
9778
9781
|
return n && r.length > n ? r.slice(0, -1) : r;
|
|
9779
9782
|
}
|
|
9780
|
-
var
|
|
9783
|
+
var _t = /* @__PURE__ */ Symbol();
|
|
9781
9784
|
function Ii(t, e) {
|
|
9782
|
-
return process.env.NODE_ENV !== "production" && t.queryFn ===
|
|
9785
|
+
return process.env.NODE_ENV !== "production" && t.queryFn === _t && console.error(
|
|
9783
9786
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
|
|
9784
|
-
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn ===
|
|
9787
|
+
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === _t ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
|
|
9785
9788
|
}
|
|
9786
9789
|
function hd(t, e) {
|
|
9787
9790
|
return typeof t == "function" ? t(...e) : !!t;
|
|
@@ -9926,12 +9929,12 @@ var L = kA(), st, je, it, Ur, RA = (Ur = class extends un {
|
|
|
9926
9929
|
isOnline() {
|
|
9927
9930
|
return h(this, st);
|
|
9928
9931
|
}
|
|
9929
|
-
}, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur),
|
|
9932
|
+
}, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur), $t = new RA();
|
|
9930
9933
|
function qA(t) {
|
|
9931
9934
|
return Math.min(1e3 * 2 ** t, 3e4);
|
|
9932
9935
|
}
|
|
9933
9936
|
function Oi(t) {
|
|
9934
|
-
return (t ?? "online") === "online" ?
|
|
9937
|
+
return (t ?? "online") === "online" ? $t.isOnline() : !0;
|
|
9935
9938
|
}
|
|
9936
9939
|
var kn = class extends Error {
|
|
9937
9940
|
constructor(t) {
|
|
@@ -9950,11 +9953,11 @@ function Ti(t) {
|
|
|
9950
9953
|
e = !0;
|
|
9951
9954
|
}, l = () => {
|
|
9952
9955
|
e = !1;
|
|
9953
|
-
}, A = () => Mi.isFocused() && (t.networkMode === "always" ||
|
|
9956
|
+
}, A = () => Mi.isFocused() && (t.networkMode === "always" || $t.isOnline()) && t.canRun(), f = () => Oi(t.networkMode) && t.canRun(), p = (I) => {
|
|
9954
9957
|
i() || (r == null || r(), s.resolve(I));
|
|
9955
9958
|
}, B = (I) => {
|
|
9956
9959
|
i() || (r == null || r(), s.reject(I));
|
|
9957
|
-
},
|
|
9960
|
+
}, v = () => new Promise((I) => {
|
|
9958
9961
|
var V;
|
|
9959
9962
|
r = (R) => {
|
|
9960
9963
|
(i() || A()) && I(R);
|
|
@@ -9976,12 +9979,12 @@ function Ti(t) {
|
|
|
9976
9979
|
var U;
|
|
9977
9980
|
if (i())
|
|
9978
9981
|
return;
|
|
9979
|
-
const Q = t.retry ?? (Pi.isServer() ? 0 : 3), Y = t.retryDelay ?? qA,
|
|
9982
|
+
const Q = t.retry ?? (Pi.isServer() ? 0 : 3), Y = t.retryDelay ?? qA, w = typeof Y == "function" ? Y(n, R) : Y, H = Q === !0 || typeof Q == "number" && n < Q || typeof Q == "function" && Q(n, R);
|
|
9980
9983
|
if (e || !H) {
|
|
9981
9984
|
B(R);
|
|
9982
9985
|
return;
|
|
9983
9986
|
}
|
|
9984
|
-
n++, (U = t.onFail) == null || U.call(t, n, R), TA(
|
|
9987
|
+
n++, (U = t.onFail) == null || U.call(t, n, R), TA(w).then(() => A() ? void 0 : v()).then(() => {
|
|
9985
9988
|
e ? B(R) : O();
|
|
9986
9989
|
});
|
|
9987
9990
|
});
|
|
@@ -9994,7 +9997,7 @@ function Ti(t) {
|
|
|
9994
9997
|
cancelRetry: c,
|
|
9995
9998
|
continueRetry: l,
|
|
9996
9999
|
canStart: f,
|
|
9997
|
-
start: () => (f() ? O() :
|
|
10000
|
+
start: () => (f() ? O() : v().then(O), s)
|
|
9998
10001
|
};
|
|
9999
10002
|
}
|
|
10000
10003
|
var Xe, Wr, Gi = (Wr = class {
|
|
@@ -10022,8 +10025,8 @@ var Xe, Wr, Gi = (Wr = class {
|
|
|
10022
10025
|
function NA(t) {
|
|
10023
10026
|
return {
|
|
10024
10027
|
onFetch: (e, n) => {
|
|
10025
|
-
var f, p, B,
|
|
10026
|
-
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 = ((
|
|
10028
|
+
var f, p, B, v, O;
|
|
10029
|
+
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 = ((v = e.state.data) == null ? void 0 : v.pages) || [], a = ((O = e.state.data) == null ? void 0 : O.pageParams) || [];
|
|
10027
10030
|
let c = { pages: [], pageParams: [] }, l = 0;
|
|
10028
10031
|
const A = async () => {
|
|
10029
10032
|
let I = !1;
|
|
@@ -10033,16 +10036,16 @@ function NA(t) {
|
|
|
10033
10036
|
() => e.signal,
|
|
10034
10037
|
() => I = !0
|
|
10035
10038
|
);
|
|
10036
|
-
}, R = Ii(e.options, e.fetchOptions), Q = async (Y,
|
|
10039
|
+
}, R = Ii(e.options, e.fetchOptions), Q = async (Y, w, H) => {
|
|
10037
10040
|
if (I)
|
|
10038
10041
|
return Promise.reject(e.signal.reason);
|
|
10039
|
-
if (
|
|
10042
|
+
if (w == null && Y.pages.length)
|
|
10040
10043
|
return Promise.resolve(Y);
|
|
10041
10044
|
const ee = (() => {
|
|
10042
10045
|
const g = {
|
|
10043
10046
|
client: e.client,
|
|
10044
10047
|
queryKey: e.queryKey,
|
|
10045
|
-
pageParam:
|
|
10048
|
+
pageParam: w,
|
|
10046
10049
|
direction: H ? "backward" : "forward",
|
|
10047
10050
|
meta: e.options.meta
|
|
10048
10051
|
};
|
|
@@ -10050,22 +10053,22 @@ function NA(t) {
|
|
|
10050
10053
|
})(), q = await R(ee), { maxPages: u } = e.options, m = H ? YA : jA;
|
|
10051
10054
|
return {
|
|
10052
10055
|
pages: m(Y.pages, q, u),
|
|
10053
|
-
pageParams: m(Y.pageParams,
|
|
10056
|
+
pageParams: m(Y.pageParams, w, u)
|
|
10054
10057
|
};
|
|
10055
10058
|
};
|
|
10056
10059
|
if (s && i.length) {
|
|
10057
|
-
const Y = s === "backward",
|
|
10060
|
+
const Y = s === "backward", w = Y ? HA : Nr, H = {
|
|
10058
10061
|
pages: i,
|
|
10059
10062
|
pageParams: a
|
|
10060
|
-
}, U =
|
|
10063
|
+
}, U = w(r, H);
|
|
10061
10064
|
c = await Q(H, U, Y);
|
|
10062
10065
|
} else {
|
|
10063
10066
|
const Y = t ?? i.length;
|
|
10064
10067
|
do {
|
|
10065
|
-
const
|
|
10066
|
-
if (l > 0 &&
|
|
10068
|
+
const w = l === 0 ? a[0] ?? r.initialPageParam : Nr(r, c);
|
|
10069
|
+
if (l > 0 && w == null)
|
|
10067
10070
|
break;
|
|
10068
|
-
c = await Q(c,
|
|
10071
|
+
c = await Q(c, w), l++;
|
|
10069
10072
|
} while (l < Y);
|
|
10070
10073
|
}
|
|
10071
10074
|
return c;
|
|
@@ -10100,7 +10103,7 @@ function HA(t, { pages: e, pageParams: n }) {
|
|
|
10100
10103
|
var r;
|
|
10101
10104
|
return e.length > 0 ? (r = t.getPreviousPageParam) == null ? void 0 : r.call(t, e[0], e, n[0], n) : void 0;
|
|
10102
10105
|
}
|
|
10103
|
-
var at, Se, ot, re, Ue, S,
|
|
10106
|
+
var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
10104
10107
|
constructor(e) {
|
|
10105
10108
|
super();
|
|
10106
10109
|
G(this, ne);
|
|
@@ -10110,9 +10113,9 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10110
10113
|
G(this, re);
|
|
10111
10114
|
G(this, Ue);
|
|
10112
10115
|
G(this, S);
|
|
10113
|
-
G(this,
|
|
10116
|
+
G(this, Ct);
|
|
10114
10117
|
G(this, We);
|
|
10115
|
-
D(this, We, !1), D(this,
|
|
10118
|
+
D(this, We, !1), D(this, Ct, 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();
|
|
10116
10119
|
}
|
|
10117
10120
|
get meta() {
|
|
10118
10121
|
return this.options.meta;
|
|
@@ -10125,7 +10128,7 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10125
10128
|
return (e = h(this, S)) == null ? void 0 : e.promise;
|
|
10126
10129
|
}
|
|
10127
10130
|
setOptions(e) {
|
|
10128
|
-
if (this.options = { ...h(this,
|
|
10131
|
+
if (this.options = { ...h(this, Ct), ...e }, e != null && e._type && D(this, at, e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
10129
10132
|
const n = Qr(this.options);
|
|
10130
10133
|
n.data !== void 0 && (this.setState(
|
|
10131
10134
|
Hr(n.data, n.dataUpdatedAt)
|
|
@@ -10167,7 +10170,7 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10167
10170
|
);
|
|
10168
10171
|
}
|
|
10169
10172
|
isDisabled() {
|
|
10170
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
10173
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === _t || !this.isFetched();
|
|
10171
10174
|
}
|
|
10172
10175
|
isFetched() {
|
|
10173
10176
|
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
@@ -10208,7 +10211,7 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10208
10211
|
this.state.isInvalidated || z(this, ne, me).call(this, { type: "invalidate" });
|
|
10209
10212
|
}
|
|
10210
10213
|
async fetch(e, n) {
|
|
10211
|
-
var A, f, p, B,
|
|
10214
|
+
var A, f, p, B, v, O, I, V, R, Q, Y;
|
|
10212
10215
|
if (this.state.fetchStatus !== "idle" && // If the promise in the retryer is already rejected, we have to definitely
|
|
10213
10216
|
// re-start the fetch; there is a chance that the query is still in a
|
|
10214
10217
|
// pending state when that happens
|
|
@@ -10219,19 +10222,19 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10219
10222
|
return h(this, S).continueRetry(), h(this, S).promise;
|
|
10220
10223
|
}
|
|
10221
10224
|
if (e && this.setOptions(e), !this.options.queryFn) {
|
|
10222
|
-
const
|
|
10223
|
-
|
|
10225
|
+
const w = this.observers.find((H) => H.options.queryFn);
|
|
10226
|
+
w && this.setOptions(w.options);
|
|
10224
10227
|
}
|
|
10225
10228
|
process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
|
|
10226
10229
|
"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']"
|
|
10227
10230
|
));
|
|
10228
|
-
const r = new AbortController(), s = (
|
|
10229
|
-
Object.defineProperty(
|
|
10231
|
+
const r = new AbortController(), s = (w) => {
|
|
10232
|
+
Object.defineProperty(w, "signal", {
|
|
10230
10233
|
enumerable: !0,
|
|
10231
10234
|
get: () => (D(this, We, !0), r.signal)
|
|
10232
10235
|
});
|
|
10233
10236
|
}, i = () => {
|
|
10234
|
-
const
|
|
10237
|
+
const w = Ii(this.options, n), U = (() => {
|
|
10235
10238
|
const ee = {
|
|
10236
10239
|
client: h(this, Ue),
|
|
10237
10240
|
queryKey: this.queryKey,
|
|
@@ -10240,12 +10243,12 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10240
10243
|
return s(ee), ee;
|
|
10241
10244
|
})();
|
|
10242
10245
|
return D(this, We, !1), this.options.persister ? this.options.persister(
|
|
10243
|
-
|
|
10246
|
+
w,
|
|
10244
10247
|
U,
|
|
10245
10248
|
this
|
|
10246
|
-
) :
|
|
10249
|
+
) : w(U);
|
|
10247
10250
|
}, c = (() => {
|
|
10248
|
-
const
|
|
10251
|
+
const w = {
|
|
10249
10252
|
fetchOptions: n,
|
|
10250
10253
|
options: this.options,
|
|
10251
10254
|
queryKey: this.queryKey,
|
|
@@ -10253,21 +10256,21 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10253
10256
|
state: this.state,
|
|
10254
10257
|
fetchFn: i
|
|
10255
10258
|
};
|
|
10256
|
-
return s(
|
|
10259
|
+
return s(w), w;
|
|
10257
10260
|
})(), l = h(this, at) === "infinite" ? NA(
|
|
10258
10261
|
this.options.pages
|
|
10259
10262
|
) : this.options.behavior;
|
|
10260
10263
|
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({
|
|
10261
10264
|
initialPromise: n == null ? void 0 : n.initialPromise,
|
|
10262
10265
|
fn: c.fetchFn,
|
|
10263
|
-
onCancel: (
|
|
10264
|
-
|
|
10266
|
+
onCancel: (w) => {
|
|
10267
|
+
w instanceof kn && w.revert && this.setState({
|
|
10265
10268
|
...h(this, ot),
|
|
10266
10269
|
fetchStatus: "idle"
|
|
10267
10270
|
}), r.abort();
|
|
10268
10271
|
},
|
|
10269
|
-
onFail: (
|
|
10270
|
-
z(this, ne, me).call(this, { type: "failed", failureCount:
|
|
10272
|
+
onFail: (w, H) => {
|
|
10273
|
+
z(this, ne, me).call(this, { type: "failed", failureCount: w, error: H });
|
|
10271
10274
|
},
|
|
10272
10275
|
onPause: () => {
|
|
10273
10276
|
z(this, ne, me).call(this, { type: "pause" });
|
|
@@ -10281,45 +10284,45 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10281
10284
|
canRun: () => !0
|
|
10282
10285
|
}));
|
|
10283
10286
|
try {
|
|
10284
|
-
const
|
|
10285
|
-
if (
|
|
10287
|
+
const w = await h(this, S).start();
|
|
10288
|
+
if (w === void 0)
|
|
10286
10289
|
throw process.env.NODE_ENV !== "production" && console.error(
|
|
10287
10290
|
`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
|
|
10288
10291
|
), new Error(`${this.queryHash} data is undefined`);
|
|
10289
|
-
return this.setData(
|
|
10292
|
+
return this.setData(w), (v = (B = h(this, re).config).onSuccess) == null || v.call(B, w, this), (I = (O = h(this, re).config).onSettled) == null || I.call(
|
|
10290
10293
|
O,
|
|
10291
|
-
|
|
10294
|
+
w,
|
|
10292
10295
|
this.state.error,
|
|
10293
10296
|
this
|
|
10294
|
-
),
|
|
10295
|
-
} catch (
|
|
10296
|
-
if (
|
|
10297
|
-
if (
|
|
10297
|
+
), w;
|
|
10298
|
+
} catch (w) {
|
|
10299
|
+
if (w instanceof kn) {
|
|
10300
|
+
if (w.silent)
|
|
10298
10301
|
return h(this, S).promise;
|
|
10299
|
-
if (
|
|
10302
|
+
if (w.revert) {
|
|
10300
10303
|
if (this.state.data === void 0)
|
|
10301
|
-
throw
|
|
10304
|
+
throw w;
|
|
10302
10305
|
return this.state.data;
|
|
10303
10306
|
}
|
|
10304
10307
|
}
|
|
10305
10308
|
throw z(this, ne, me).call(this, {
|
|
10306
10309
|
type: "error",
|
|
10307
|
-
error:
|
|
10310
|
+
error: w
|
|
10308
10311
|
}), (R = (V = h(this, re).config).onError) == null || R.call(
|
|
10309
10312
|
V,
|
|
10310
|
-
|
|
10313
|
+
w,
|
|
10311
10314
|
this
|
|
10312
10315
|
), (Y = (Q = h(this, re).config).onSettled) == null || Y.call(
|
|
10313
10316
|
Q,
|
|
10314
10317
|
this.state.data,
|
|
10315
|
-
|
|
10318
|
+
w,
|
|
10316
10319
|
this
|
|
10317
|
-
),
|
|
10320
|
+
), w;
|
|
10318
10321
|
} finally {
|
|
10319
10322
|
this.scheduleGc();
|
|
10320
10323
|
}
|
|
10321
10324
|
}
|
|
10322
|
-
}, at = new WeakMap(), Se = new WeakMap(), ot = new WeakMap(), re = new WeakMap(), Ue = new WeakMap(), S = new WeakMap(),
|
|
10325
|
+
}, at = new WeakMap(), Se = new WeakMap(), ot = new WeakMap(), re = new WeakMap(), Ue = new WeakMap(), S = new WeakMap(), Ct = new WeakMap(), We = new WeakMap(), ne = new WeakSet(), ji = function() {
|
|
10323
10326
|
return this.state.fetchStatus === "paused" && this.state.status === "pending";
|
|
10324
10327
|
}, me = function(e) {
|
|
10325
10328
|
const n = (r) => {
|
|
@@ -10428,15 +10431,15 @@ function Qr(t) {
|
|
|
10428
10431
|
fetchStatus: "idle"
|
|
10429
10432
|
};
|
|
10430
10433
|
}
|
|
10431
|
-
var
|
|
10434
|
+
var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
10432
10435
|
constructor(e) {
|
|
10433
10436
|
super();
|
|
10434
10437
|
G(this, ue);
|
|
10435
|
-
G(this,
|
|
10438
|
+
G(this, Et);
|
|
10436
10439
|
G(this, ce);
|
|
10437
10440
|
G(this, Z);
|
|
10438
10441
|
G(this, ze);
|
|
10439
|
-
D(this,
|
|
10442
|
+
D(this, Et, 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();
|
|
10440
10443
|
}
|
|
10441
10444
|
setOptions(e) {
|
|
10442
10445
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -10467,11 +10470,11 @@ var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10467
10470
|
this.execute(this.state.variables);
|
|
10468
10471
|
}
|
|
10469
10472
|
async execute(e) {
|
|
10470
|
-
var a, c, l, A, f, p, B,
|
|
10473
|
+
var a, c, l, A, f, p, B, v, O, I, V, R, Q, Y, w, H, U, ee;
|
|
10471
10474
|
const n = () => {
|
|
10472
10475
|
z(this, ue, Me).call(this, { type: "continue" });
|
|
10473
10476
|
}, r = {
|
|
10474
|
-
client: h(this,
|
|
10477
|
+
client: h(this, Et),
|
|
10475
10478
|
meta: this.options.meta,
|
|
10476
10479
|
mutationKey: this.options.mutationKey
|
|
10477
10480
|
};
|
|
@@ -10525,7 +10528,7 @@ var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10525
10528
|
e,
|
|
10526
10529
|
this.state.context,
|
|
10527
10530
|
r
|
|
10528
|
-
)), await ((
|
|
10531
|
+
)), await ((v = (B = h(this, Z).config).onSettled) == null ? void 0 : v.call(
|
|
10529
10532
|
B,
|
|
10530
10533
|
q,
|
|
10531
10534
|
null,
|
|
@@ -10566,8 +10569,8 @@ var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10566
10569
|
Promise.reject(u);
|
|
10567
10570
|
}
|
|
10568
10571
|
try {
|
|
10569
|
-
await ((H = (
|
|
10570
|
-
|
|
10572
|
+
await ((H = (w = h(this, Z).config).onSettled) == null ? void 0 : H.call(
|
|
10573
|
+
w,
|
|
10571
10574
|
void 0,
|
|
10572
10575
|
q,
|
|
10573
10576
|
this.state.variables,
|
|
@@ -10595,7 +10598,7 @@ var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10595
10598
|
h(this, Z).runNext(this);
|
|
10596
10599
|
}
|
|
10597
10600
|
}
|
|
10598
|
-
},
|
|
10601
|
+
}, Et = new WeakMap(), ce = new WeakMap(), Z = new WeakMap(), ze = new WeakMap(), ue = new WeakSet(), Me = function(e) {
|
|
10599
10602
|
const n = (r) => {
|
|
10600
10603
|
switch (e.type) {
|
|
10601
10604
|
case "failed":
|
|
@@ -10672,19 +10675,19 @@ function UA() {
|
|
|
10672
10675
|
submittedAt: 0
|
|
10673
10676
|
};
|
|
10674
10677
|
}
|
|
10675
|
-
var fe, ae,
|
|
10678
|
+
var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
10676
10679
|
constructor(n = {}) {
|
|
10677
10680
|
super();
|
|
10678
10681
|
G(this, fe);
|
|
10679
10682
|
G(this, ae);
|
|
10680
|
-
G(this,
|
|
10681
|
-
this.config = n, D(this, fe, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this,
|
|
10683
|
+
G(this, Mt);
|
|
10684
|
+
this.config = n, D(this, fe, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this, Mt, 0);
|
|
10682
10685
|
}
|
|
10683
10686
|
build(n, r, s) {
|
|
10684
10687
|
const i = new SA({
|
|
10685
10688
|
client: n,
|
|
10686
10689
|
mutationCache: this,
|
|
10687
|
-
mutationId: ++
|
|
10690
|
+
mutationId: ++Vt(this, Mt)._,
|
|
10688
10691
|
options: n.defaultMutationOptions(r),
|
|
10689
10692
|
state: s
|
|
10690
10693
|
});
|
|
@@ -10692,7 +10695,7 @@ var fe, ae, It, Lr, Yi = (Lr = class extends un {
|
|
|
10692
10695
|
}
|
|
10693
10696
|
add(n) {
|
|
10694
10697
|
h(this, fe).add(n);
|
|
10695
|
-
const r =
|
|
10698
|
+
const r = kt(n);
|
|
10696
10699
|
if (typeof r == "string") {
|
|
10697
10700
|
const s = h(this, ae).get(r);
|
|
10698
10701
|
s ? s.push(n) : h(this, ae).set(r, [n]);
|
|
@@ -10701,7 +10704,7 @@ var fe, ae, It, Lr, Yi = (Lr = class extends un {
|
|
|
10701
10704
|
}
|
|
10702
10705
|
remove(n) {
|
|
10703
10706
|
if (h(this, fe).delete(n)) {
|
|
10704
|
-
const r =
|
|
10707
|
+
const r = kt(n);
|
|
10705
10708
|
if (typeof r == "string") {
|
|
10706
10709
|
const s = h(this, ae).get(r);
|
|
10707
10710
|
if (s)
|
|
@@ -10714,7 +10717,7 @@ var fe, ae, It, Lr, Yi = (Lr = class extends un {
|
|
|
10714
10717
|
this.notify({ type: "removed", mutation: n });
|
|
10715
10718
|
}
|
|
10716
10719
|
canRun(n) {
|
|
10717
|
-
const r =
|
|
10720
|
+
const r = kt(n);
|
|
10718
10721
|
if (typeof r == "string") {
|
|
10719
10722
|
const s = h(this, ae).get(r), i = s == null ? void 0 : s.find(
|
|
10720
10723
|
(a) => a.state.status === "pending"
|
|
@@ -10725,7 +10728,7 @@ var fe, ae, It, Lr, Yi = (Lr = class extends un {
|
|
|
10725
10728
|
}
|
|
10726
10729
|
runNext(n) {
|
|
10727
10730
|
var s;
|
|
10728
|
-
const r =
|
|
10731
|
+
const r = kt(n);
|
|
10729
10732
|
if (typeof r == "string") {
|
|
10730
10733
|
const i = (s = h(this, ae).get(r)) == null ? void 0 : s.find((a) => a !== n && a.state.isPaused);
|
|
10731
10734
|
return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
|
|
@@ -10766,8 +10769,8 @@ var fe, ae, It, Lr, Yi = (Lr = class extends un {
|
|
|
10766
10769
|
)
|
|
10767
10770
|
);
|
|
10768
10771
|
}
|
|
10769
|
-
}, fe = new WeakMap(), ae = new WeakMap(),
|
|
10770
|
-
function
|
|
10772
|
+
}, fe = new WeakMap(), ae = new WeakMap(), Mt = new WeakMap(), Lr);
|
|
10773
|
+
function kt(t) {
|
|
10771
10774
|
var e;
|
|
10772
10775
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
10773
10776
|
}
|
|
@@ -10856,15 +10859,15 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
10856
10859
|
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);
|
|
10857
10860
|
}
|
|
10858
10861
|
mount() {
|
|
10859
|
-
|
|
10862
|
+
Vt(this, xe)._++, h(this, xe) === 1 && (D(this, lt, Mi.subscribe(async (e) => {
|
|
10860
10863
|
e && (await this.resumePausedMutations(), h(this, N).onFocus());
|
|
10861
|
-
})), D(this, At,
|
|
10864
|
+
})), D(this, At, $t.subscribe(async (e) => {
|
|
10862
10865
|
e && (await this.resumePausedMutations(), h(this, N).onOnline());
|
|
10863
10866
|
})));
|
|
10864
10867
|
}
|
|
10865
10868
|
unmount() {
|
|
10866
10869
|
var e, n;
|
|
10867
|
-
|
|
10870
|
+
Vt(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));
|
|
10868
10871
|
}
|
|
10869
10872
|
isFetching(e) {
|
|
10870
10873
|
return h(this, N).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
@@ -10986,7 +10989,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
10986
10989
|
return e._type = "infinite", this.ensureQueryData(e);
|
|
10987
10990
|
}
|
|
10988
10991
|
resumePausedMutations() {
|
|
10989
|
-
return
|
|
10992
|
+
return $t.isOnline() ? h(this, Ye).resumePausedMutations() : Promise.resolve();
|
|
10990
10993
|
}
|
|
10991
10994
|
getQueryCache() {
|
|
10992
10995
|
return h(this, N);
|
|
@@ -11001,7 +11004,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11001
11004
|
D(this, Ve, e);
|
|
11002
11005
|
}
|
|
11003
11006
|
setQueryDefaults(e, n) {
|
|
11004
|
-
h(this, ct).set(
|
|
11007
|
+
h(this, ct).set(Bt(e), {
|
|
11005
11008
|
queryKey: e,
|
|
11006
11009
|
defaultOptions: n
|
|
11007
11010
|
});
|
|
@@ -11009,11 +11012,11 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11009
11012
|
getQueryDefaults(e) {
|
|
11010
11013
|
const n = [...h(this, ct).values()], r = {};
|
|
11011
11014
|
return n.forEach((s) => {
|
|
11012
|
-
|
|
11015
|
+
Dt(e, s.queryKey) && Object.assign(r, s.defaultOptions);
|
|
11013
11016
|
}), r;
|
|
11014
11017
|
}
|
|
11015
11018
|
setMutationDefaults(e, n) {
|
|
11016
|
-
h(this, ut).set(
|
|
11019
|
+
h(this, ut).set(Bt(e), {
|
|
11017
11020
|
mutationKey: e,
|
|
11018
11021
|
defaultOptions: n
|
|
11019
11022
|
});
|
|
@@ -11021,7 +11024,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11021
11024
|
getMutationDefaults(e) {
|
|
11022
11025
|
const n = [...h(this, ut).values()], r = {};
|
|
11023
11026
|
return n.forEach((s) => {
|
|
11024
|
-
|
|
11027
|
+
Dt(e, s.mutationKey) && Object.assign(r, s.defaultOptions);
|
|
11025
11028
|
}), r;
|
|
11026
11029
|
}
|
|
11027
11030
|
defaultQueryOptions(e) {
|
|
@@ -11036,7 +11039,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11036
11039
|
return n.queryHash || (n.queryHash = er(
|
|
11037
11040
|
n.queryKey,
|
|
11038
11041
|
n
|
|
11039
|
-
)), 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 ===
|
|
11042
|
+
)), 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;
|
|
11040
11043
|
}
|
|
11041
11044
|
defaultMutationOptions(e) {
|
|
11042
11045
|
return e != null && e._defaulted ? e : {
|
|
@@ -11121,7 +11124,7 @@ var KA = class extends Vi {
|
|
|
11121
11124
|
queryCache: t.queryCache || new KA(),
|
|
11122
11125
|
mutationCache: t.mutationCache || new JA()
|
|
11123
11126
|
};
|
|
11124
|
-
super(e), this.isRestoring =
|
|
11127
|
+
super(e), this.isRestoring = Xt(!1);
|
|
11125
11128
|
}
|
|
11126
11129
|
isFetching(t = {}) {
|
|
11127
11130
|
return super.isFetching(T(t));
|
|
@@ -11220,7 +11223,7 @@ var KA = class extends Vi {
|
|
|
11220
11223
|
};
|
|
11221
11224
|
const $A = Ki({
|
|
11222
11225
|
history: Ji(),
|
|
11223
|
-
routes: [...
|
|
11226
|
+
routes: [...rn, ...pt].map((t) => ({
|
|
11224
11227
|
...t,
|
|
11225
11228
|
component: os(
|
|
11226
11229
|
_r({
|
|
@@ -11231,10 +11234,10 @@ const $A = Ki({
|
|
|
11231
11234
|
});
|
|
11232
11235
|
$A.beforeEach((t) => {
|
|
11233
11236
|
var r;
|
|
11234
|
-
const { currentCountry: e } =
|
|
11237
|
+
const { currentCountry: e } = nn(), n = e.value;
|
|
11235
11238
|
if (!n) return !0;
|
|
11236
11239
|
if ((r = t.meta) != null && r.region && !t.meta.region[n]) {
|
|
11237
|
-
const s =
|
|
11240
|
+
const s = rn.find(
|
|
11238
11241
|
(i) => {
|
|
11239
11242
|
var a;
|
|
11240
11243
|
return ((a = i.meta) == null ? void 0 : a.sidebarDisplay) && (!i.meta.region || i.meta.region[n]);
|
|
@@ -11244,17 +11247,17 @@ $A.beforeEach((t) => {
|
|
|
11244
11247
|
}
|
|
11245
11248
|
return !0;
|
|
11246
11249
|
});
|
|
11247
|
-
const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ */
|
|
11250
|
+
const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ */ en({
|
|
11248
11251
|
__name: "AppSidebar",
|
|
11249
11252
|
setup(t) {
|
|
11250
|
-
const e =
|
|
11253
|
+
const e = nn(), n = _i(), { t: r } = ns(), s = Xt(n.currentRoute.value.name);
|
|
11251
11254
|
$r(n.currentRoute, () => {
|
|
11252
11255
|
let A = n.currentRoute.value.name;
|
|
11253
11256
|
n.currentRoute.value.meta.parent && (A = n.currentRoute.value.meta.parent), s.value = A;
|
|
11254
11257
|
});
|
|
11255
|
-
const i =
|
|
11256
|
-
var B,
|
|
11257
|
-
if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((
|
|
11258
|
+
const i = rn.map((A) => {
|
|
11259
|
+
var B, v;
|
|
11260
|
+
if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((v = A.meta.region) != null && v[e.currentCountry.value]) || A.meta.section)
|
|
11258
11261
|
return;
|
|
11259
11262
|
const f = A.meta.sidebarDisplay, p = {
|
|
11260
11263
|
label: f.startsWith("i18n:") ? r(f.replaceAll("i18n:", "")) : f,
|
|
@@ -11264,12 +11267,12 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11264
11267
|
return n.push({ name: A.name });
|
|
11265
11268
|
}
|
|
11266
11269
|
};
|
|
11267
|
-
return A.meta.sidebarNew && (p.badge = () =>
|
|
11270
|
+
return A.meta.sidebarNew && (p.badge = () => wn(ea.FmPill, { label: "New" })), p;
|
|
11268
11271
|
}).filter((A) => !!A);
|
|
11269
11272
|
function a(A, f) {
|
|
11270
11273
|
return A.map((p) => {
|
|
11271
|
-
var B,
|
|
11272
|
-
return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], f) : (
|
|
11274
|
+
var B, v;
|
|
11275
|
+
return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], f) : (v = p.meta) != null && v.sidebarDisplay ? p.meta.section !== f ? [] : [
|
|
11273
11276
|
{
|
|
11274
11277
|
label: p.meta.sidebarDisplay.startsWith("i18n:") ? r(p.meta.sidebarDisplay.replaceAll("i18n:", "")) : p.meta.sidebarDisplay,
|
|
11275
11278
|
value: p.name,
|
|
@@ -11294,16 +11297,7 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11294
11297
|
};
|
|
11295
11298
|
}).filter((A) => !!A), l = Nn(() => {
|
|
11296
11299
|
const A = [...i];
|
|
11297
|
-
return A.push({
|
|
11298
|
-
label: "",
|
|
11299
|
-
value: "divider",
|
|
11300
|
-
disabled: !0
|
|
11301
|
-
}), A.push({
|
|
11302
|
-
label: r("financing.title"),
|
|
11303
|
-
icon: "credit_score",
|
|
11304
|
-
value: "divider",
|
|
11305
|
-
disabled: !0
|
|
11306
|
-
}), A.push(...a(bt, "financing")), ed(e.sessionUser.value) && (A.push({
|
|
11300
|
+
return ed(e.sessionUser.value) && (A.push({
|
|
11307
11301
|
label: "",
|
|
11308
11302
|
value: "divider",
|
|
11309
11303
|
disabled: !0
|
|
@@ -11334,7 +11328,7 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11334
11328
|
});
|
|
11335
11329
|
return (A, f) => {
|
|
11336
11330
|
const p = es("FmCollapsibleTabs");
|
|
11337
|
-
return
|
|
11331
|
+
return tn(), Hn(p, {
|
|
11338
11332
|
modelValue: s.value,
|
|
11339
11333
|
"onUpdate:modelValue": f[0] || (f[0] = (B) => s.value = B),
|
|
11340
11334
|
items: l.value,
|
|
@@ -11343,11 +11337,11 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11343
11337
|
};
|
|
11344
11338
|
}
|
|
11345
11339
|
});
|
|
11346
|
-
var nd = { firebase: { apiKey: "
|
|
11347
|
-
const bd = /* @__PURE__ */
|
|
11340
|
+
var nd = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" } };
|
|
11341
|
+
const bd = /* @__PURE__ */ en({
|
|
11348
11342
|
__name: "App",
|
|
11349
11343
|
setup(t) {
|
|
11350
|
-
const { state: e } = Qo(), n =
|
|
11344
|
+
const { state: e } = Qo(), n = nn(), r = ts(), s = new _A();
|
|
11351
11345
|
Wi(xi, s);
|
|
11352
11346
|
const i = Ss(nd.firebase);
|
|
11353
11347
|
async function a() {
|
|
@@ -11364,12 +11358,12 @@ const bd = /* @__PURE__ */ tn({
|
|
|
11364
11358
|
s.unmount();
|
|
11365
11359
|
}), (c, l) => {
|
|
11366
11360
|
const A = es("RouterView");
|
|
11367
|
-
return
|
|
11361
|
+
return tn(), Hn(A, {
|
|
11368
11362
|
key: ge(r).path
|
|
11369
11363
|
});
|
|
11370
11364
|
};
|
|
11371
11365
|
}
|
|
11372
|
-
}),
|
|
11366
|
+
}), wd = () => {
|
|
11373
11367
|
const t = [
|
|
11374
11368
|
{ "en-US": na, "th-TH": sa, "zh-CN": aa },
|
|
11375
11369
|
qi
|
|
@@ -11386,7 +11380,7 @@ const bd = /* @__PURE__ */ tn({
|
|
|
11386
11380
|
},
|
|
11387
11381
|
{}
|
|
11388
11382
|
);
|
|
11389
|
-
},
|
|
11383
|
+
}, vd = [...pt, ...rn].map((t) => ({
|
|
11390
11384
|
...t,
|
|
11391
11385
|
component: os(
|
|
11392
11386
|
_r({ loader: t.component })
|
|
@@ -11394,7 +11388,7 @@ const bd = /* @__PURE__ */ tn({
|
|
|
11394
11388
|
}));
|
|
11395
11389
|
export {
|
|
11396
11390
|
xa as A,
|
|
11397
|
-
|
|
11391
|
+
vd as B,
|
|
11398
11392
|
un as S,
|
|
11399
11393
|
yr as _,
|
|
11400
11394
|
Vn as a,
|
|
@@ -11422,5 +11416,5 @@ export {
|
|
|
11422
11416
|
ua as w,
|
|
11423
11417
|
ld as x,
|
|
11424
11418
|
bd as y,
|
|
11425
|
-
|
|
11419
|
+
wd as z
|
|
11426
11420
|
};
|