@feedmepos/mf-payment 1.10.7 → 1.10.8-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Actions.vue_vue_type_script_setup_true_lang-Cb4w7Its.js → Actions.vue_vue_type_script_setup_true_lang-DRF8W4tg.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-B_-olj-A.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-4ApEVDHf.js} +3 -3
- package/dist/AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-C4xRm0d0.js +135 -0
- package/dist/{Chargeback-B5MXERko.js → Chargeback-pnoHxJba.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DNrsl1TX.js → DocumentViewer.vue_vue_type_script_setup_true_lang-B4nIdf5-.js} +1 -1
- package/dist/{ExternalTerminal-bjMJ7qr-.js → ExternalTerminal-CqrRcbsp.js} +6 -6
- package/dist/{OnboardForm-BwFlXqV5.js → OnboardForm-BDv2pxL9.js} +6 -6
- package/dist/{OnboardForm-CE0weADC.js → OnboardForm-CYO3vK_8.js} +6 -6
- package/dist/{OnboardSubmission-C60-dPdV.js → OnboardSubmission-BUJZydpX.js} +6 -6
- package/dist/{OnboardSubmission-2s5PtLcm.js → OnboardSubmission-Cx_sPOVH.js} +3 -3
- package/dist/PaymentCheckout-DQM_kppH.js +1939 -0
- package/dist/{PayoutAccount-PGN4vUiE.js → PayoutAccount-DKWtIoTX.js} +7 -7
- package/dist/{PayoutAccount-DnE00Tpx.js → PayoutAccount-dwMtm1PL.js} +5 -5
- package/dist/{PayoutAccountSetting-UxgmC_It.js → PayoutAccountSetting-CWZD3Kwa.js} +6 -6
- package/dist/{Restaurant-DWs8l6IN.js → Restaurant-CV5n8389.js} +4 -4
- package/dist/{RestaurantSetting-CghN3Qij.js → RestaurantSetting-DsP4kGjM.js} +3 -3
- package/dist/{Settlement-DSAWgf1q.js → Settlement-58-ie3T1.js} +3 -3
- package/dist/{Settlement-BZG0nEhU.js → Settlement-Bt18kRNt.js} +4 -4
- package/dist/{SettlementTransactions-dSH6mKX9.js → SettlementTransactions-C7GhMTLQ.js} +5 -5
- package/dist/{SettlementTransactions-5l9xe_rQ.js → SettlementTransactions-Db1f9lYu.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-CSz0sfMv.js → Status.vue_vue_type_script_setup_true_lang-B9j6CfzS.js} +1 -1
- package/dist/{Terminal-CU70aAqI.js → Terminal-BuMIcbhv.js} +6 -6
- package/dist/TerminalSetting-2kwSwfKt.js +2779 -0
- package/dist/TerminalTemplate-aBZAYAKp.js +322 -0
- package/dist/TerminalTemplateSetting-BZlX7Xll.js +262 -0
- package/dist/{Transaction-9yHZiRAp.js → Transaction-Cy03QV60.js} +10 -10
- package/dist/{Transaction-CHL7HVtl.js → Transaction-lRZITPtN.js} +20 -19
- package/dist/{TransactionOld-Dk_5TVXm.js → TransactionOld-CmLbZyaP.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-D4A7Hfk7.js → TransactionStatus.vue_vue_type_script_setup_true_lang-DSzil-ib.js} +1 -1
- package/dist/api/terminal/index.d.ts +1 -0
- package/dist/api/terminal-template/index.d.ts +15 -0
- package/dist/{app-WOQvK6eu.js → app-DKD_4d44.js} +389 -353
- package/dist/app.js +1 -1
- package/dist/assets-VX0DqpvG.js +96 -0
- package/dist/{grafana-BqnbcwyU.js → grafana-B_uCjmFj.js} +1 -1
- package/dist/{index-BRCt0Wjb.js → index-BpAx8sXI.js} +3073 -3030
- package/dist/{index-DiYIJH8n.js → index-C3AnskZH.js} +2 -2
- package/dist/index-CGmA3Z9Z.js +71 -0
- package/dist/{index-Jo4g2Fvl.js → index-Cf9xnlvp.js} +1 -1
- package/dist/{index-Cwbpxr-3.js → index-CnTRiFh5.js} +1 -1
- package/dist/{index-BSUOKl_R.js → index-DFNUFV3R.js} +1 -1
- package/dist/index-DFZ1vkMO.js +43 -0
- package/dist/{index-XucAJsGV.js → index-DO72hNKP.js} +1 -1
- package/dist/{index-BPTPINow.js → index-DZJaOOKJ.js} +1 -1
- package/dist/{index--Svzj_Uq.js → index-DbJwyim8.js} +1 -1
- package/dist/{index-Cc7BGx40.js → index-FScngz5X.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CQwRJloj.js → index.vue_vue_type_script_setup_true_lang-CH17wzq0.js} +1 -1
- package/dist/{onboard-submission-B7IRbUGm.js → onboard-submission-Cjp6Mugk.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-v0EWhJ79.js → payout-account-CzCmFwEa.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/useQuery-Cn_nXHMC.js +375 -0
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/BeamGateway.vue.d.ts +2 -2
- 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 +4 -4
- 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/BeamGateway.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 +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +8 -8
- 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 +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/TerminalApplyTemplateDialog.vue.d.ts +6 -0
- package/dist/views/admin/terminal/TerminalSaveTemplateDialog.vue.d.ts +2 -0
- package/dist/views/admin/terminal-template/TerminalTemplate.vue.d.ts +2 -0
- package/dist/views/admin/terminal-template/TerminalTemplateSetting.vue.d.ts +12 -0
- package/dist/views/admin/terminal-template/TerminalTemplateSideSheet.vue.d.ts +174 -0
- package/dist/views/admin/terminal-template/cell/Actions.vue.d.ts +12 -0
- package/dist/views/admin/terminal-template/cell/Default.vue.d.ts +5 -0
- package/dist/views/admin/terminal-template/tabs/EcrGateways.vue.d.ts +104 -0
- package/dist/views/admin/terminal-template/tabs/Information.vue.d.ts +95 -0
- package/package.json +2 -2
- package/dist/AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-KddyORH2.js +0 -505
- package/dist/TerminalSetting-Bc6HJqCW.js +0 -4521
- package/dist/assets-B_Ilda1K.js +0 -96
- package/dist/index-BR7n0dkV.js +0 -63
|
@@ -3,7 +3,7 @@ var rr = (t) => {
|
|
|
3
3
|
};
|
|
4
4
|
var dn = (t, e, n) => e.has(t) || rr("Cannot " + n);
|
|
5
5
|
var h = (t, e, n) => (dn(t, e, "read from private field"), n ? n.call(t) : e.get(t)), G = (t, e, n) => e.has(t) ? rr("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), D = (t, e, n, r) => (dn(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), z = (t, e, n) => (dn(t, e, "access private method"), n);
|
|
6
|
-
var
|
|
6
|
+
var xt = (t, e, n, r) => ({
|
|
7
7
|
set _(s) {
|
|
8
8
|
D(t, e, s, n);
|
|
9
9
|
},
|
|
@@ -12,9 +12,9 @@ var Vt = (t, e, n, r) => ({
|
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
import { routes as Ri, i18nMessages as qi } from "@feedmepos/mf-financing";
|
|
15
|
-
import { isRef as qn, ref as
|
|
15
|
+
import { isRef as qn, ref as St, shallowRef as Ni, watchEffect as Hi, computed as Nn, h as vn, defineComponent as tn, unref as ge, openBlock as nn, createBlock as Hn, renderSlot as Qi, createCommentVNode as Xi, createElementBlock as Si, createElementVNode as Ke, toDisplayString as sr, nextTick as Ui, defineAsyncComponent as _r, watch as $r, resolveComponent as es, provide as Wi, onMounted as zi, onBeforeMount as Zi, onUnmounted as Li } from "vue";
|
|
16
16
|
import { useRoute as ts, createRouter as Ki, createWebHistory as Ji, useRouter as _i } from "vue-router";
|
|
17
|
-
import { useCoreStore as
|
|
17
|
+
import { useCoreStore as rn, useI18n as ns } from "@feedmepos/mf-common";
|
|
18
18
|
import { defineStore as $i } from "pinia";
|
|
19
19
|
import { components as ea } from "@feedmepos/ui-library";
|
|
20
20
|
const ta = {
|
|
@@ -26,6 +26,9 @@ const ta = {
|
|
|
26
26
|
payout_account: "Payout Account",
|
|
27
27
|
no_results: "No results"
|
|
28
28
|
},
|
|
29
|
+
terminal_template: {
|
|
30
|
+
scope_info: "Template covers ECR gateway enablement and checkout settings only."
|
|
31
|
+
},
|
|
29
32
|
routes: {
|
|
30
33
|
onboard_submission: "Payment Onboarding",
|
|
31
34
|
payout_account: "Payout Account",
|
|
@@ -435,6 +438,9 @@ const ta = {
|
|
|
435
438
|
payout_account: "บัญชีรับเงิน",
|
|
436
439
|
no_results: "ไม่พบผลลัพธ์"
|
|
437
440
|
},
|
|
441
|
+
terminal_template: {
|
|
442
|
+
scope_info: "เทมเพลตครอบคลุมเฉพาะการเปิดใช้งานเกตเวย์ ECR และการตั้งค่าการชำระเงินเท่านั้น"
|
|
443
|
+
},
|
|
438
444
|
routes: {
|
|
439
445
|
onboard_submission: "การเปิดใช้งานระบบชำระเงิน",
|
|
440
446
|
payout_account: "บัญชีรับเงิน",
|
|
@@ -842,6 +848,9 @@ const ta = {
|
|
|
842
848
|
payout_account: "结算账户",
|
|
843
849
|
no_results: "无结果"
|
|
844
850
|
},
|
|
851
|
+
terminal_template: {
|
|
852
|
+
scope_info: "模板仅包含 ECR 网关启用和收银结账设置。"
|
|
853
|
+
},
|
|
845
854
|
routes: {
|
|
846
855
|
onboard_submission: "支付开通",
|
|
847
856
|
payout_account: "结算账户",
|
|
@@ -1255,28 +1264,28 @@ function ca(t, e, n) {
|
|
|
1255
1264
|
evaluating: i = void 0,
|
|
1256
1265
|
shallow: a = !0,
|
|
1257
1266
|
onError: c = oa
|
|
1258
|
-
} = r, l =
|
|
1267
|
+
} = r, l = St(!s), A = a ? Ni(e) : St(e);
|
|
1259
1268
|
let f = 0;
|
|
1260
1269
|
return Hi(async (p) => {
|
|
1261
1270
|
if (!l.value)
|
|
1262
1271
|
return;
|
|
1263
1272
|
f++;
|
|
1264
1273
|
const B = f;
|
|
1265
|
-
let
|
|
1274
|
+
let w = !1;
|
|
1266
1275
|
i && Promise.resolve().then(() => {
|
|
1267
1276
|
i.value = !0;
|
|
1268
1277
|
});
|
|
1269
1278
|
try {
|
|
1270
1279
|
const P = await t((I) => {
|
|
1271
1280
|
p(() => {
|
|
1272
|
-
i && (i.value = !1),
|
|
1281
|
+
i && (i.value = !1), w || I();
|
|
1273
1282
|
});
|
|
1274
1283
|
});
|
|
1275
1284
|
B === f && (A.value = P);
|
|
1276
1285
|
} catch (P) {
|
|
1277
1286
|
c(P);
|
|
1278
1287
|
} finally {
|
|
1279
|
-
i && B === f && (i.value = !1),
|
|
1288
|
+
i && B === f && (i.value = !1), w = !0;
|
|
1280
1289
|
}
|
|
1281
1290
|
}), s ? Nn(() => (l.value = !0, A.value)) : A;
|
|
1282
1291
|
}
|
|
@@ -1387,7 +1396,7 @@ var rs = { exports: {} };
|
|
|
1387
1396
|
return !0;
|
|
1388
1397
|
};
|
|
1389
1398
|
}
|
|
1390
|
-
function
|
|
1399
|
+
function w(u, m, g, y) {
|
|
1391
1400
|
return u.validate(u.options, m, g, y);
|
|
1392
1401
|
}
|
|
1393
1402
|
var P = {
|
|
@@ -1432,7 +1441,7 @@ var rs = { exports: {} };
|
|
|
1432
1441
|
},
|
|
1433
1442
|
$or: function(u, m, g, y) {
|
|
1434
1443
|
for (var b = 0, E = u.length; b < E; b++)
|
|
1435
|
-
if (
|
|
1444
|
+
if (w(f(u, b), m, g, y)) return !0;
|
|
1436
1445
|
return !1;
|
|
1437
1446
|
},
|
|
1438
1447
|
$nor: function(u, m, g, y) {
|
|
@@ -1440,7 +1449,7 @@ var rs = { exports: {} };
|
|
|
1440
1449
|
},
|
|
1441
1450
|
$and: function(u, m, g, y) {
|
|
1442
1451
|
for (var b = 0, E = u.length; b < E; b++)
|
|
1443
|
-
if (!
|
|
1452
|
+
if (!w(f(u, b), m, g, y)) return !1;
|
|
1444
1453
|
return !0;
|
|
1445
1454
|
},
|
|
1446
1455
|
$regex: p(function(u, m) {
|
|
@@ -1452,9 +1461,9 @@ var rs = { exports: {} };
|
|
|
1452
1461
|
$elemMatch: function(u, m, g, y) {
|
|
1453
1462
|
return c(m) ? !!~function(b, E) {
|
|
1454
1463
|
for (var O = 0; O < b.length; O++)
|
|
1455
|
-
if (f(b, O),
|
|
1464
|
+
if (f(b, O), w(E, f(b, O))) return O;
|
|
1456
1465
|
return -1;
|
|
1457
|
-
}(m, u) :
|
|
1466
|
+
}(m, u) : w(u, m, g, y);
|
|
1458
1467
|
},
|
|
1459
1468
|
$exists: function(u, m, g, y) {
|
|
1460
1469
|
return y.hasOwnProperty(g) === u;
|
|
@@ -1512,7 +1521,7 @@ var rs = { exports: {} };
|
|
|
1512
1521
|
for (j = u.length; j--; ) if (u[j] == null) return !0;
|
|
1513
1522
|
}
|
|
1514
1523
|
for (j = u.length; j--; ) {
|
|
1515
|
-
var O =
|
|
1524
|
+
var O = w(H(f(u, j), g), E, j, u);
|
|
1516
1525
|
if (O && String(O) !== "[object Object]" && String(E) !== "[object Object]")
|
|
1517
1526
|
return !0;
|
|
1518
1527
|
}
|
|
@@ -1555,7 +1564,7 @@ var rs = { exports: {} };
|
|
|
1555
1564
|
$not: function(u, m, g) {
|
|
1556
1565
|
var y = Y(g)(u);
|
|
1557
1566
|
return function(b, E, O) {
|
|
1558
|
-
return !
|
|
1567
|
+
return !w(y, b, E, O);
|
|
1559
1568
|
};
|
|
1560
1569
|
},
|
|
1561
1570
|
$type: function(u) {
|
|
@@ -1593,11 +1602,11 @@ var rs = { exports: {} };
|
|
|
1593
1602
|
else tr(f(Ce, nr), ft, gt + 1, Ce, ln);
|
|
1594
1603
|
}(m, g, 0, m, E), E.length === 1) {
|
|
1595
1604
|
var O = E[0];
|
|
1596
|
-
return
|
|
1605
|
+
return w(y, O[0], O[1], O[2]);
|
|
1597
1606
|
}
|
|
1598
1607
|
for (var j = b && b.$ne !== void 0, W = j, _ = 0; _ < E.length; _++) {
|
|
1599
|
-
var he = E[_],
|
|
1600
|
-
j ? W &=
|
|
1608
|
+
var he = E[_], Vt = w(y, he[0], he[1], he[2]);
|
|
1609
|
+
j ? W &= Vt : W |= Vt;
|
|
1601
1610
|
}
|
|
1602
1611
|
return W;
|
|
1603
1612
|
}
|
|
@@ -1619,8 +1628,8 @@ var rs = { exports: {} };
|
|
|
1619
1628
|
else {
|
|
1620
1629
|
if (W.charCodeAt(0) === 36)
|
|
1621
1630
|
throw new Error("Unknown operation " + W);
|
|
1622
|
-
var
|
|
1623
|
-
j.push(Q(
|
|
1631
|
+
var Vt = W.split(".");
|
|
1632
|
+
j.push(Q(Vt, E(_), _));
|
|
1624
1633
|
}
|
|
1625
1634
|
}
|
|
1626
1635
|
}
|
|
@@ -1630,24 +1639,24 @@ var rs = { exports: {} };
|
|
|
1630
1639
|
if (!l(W)) return _;
|
|
1631
1640
|
for (var he in W) _.push(he), j(W[he], _);
|
|
1632
1641
|
return _;
|
|
1633
|
-
}(O, []).join(",").search(/[$.]/) === -1 ? V(O,
|
|
1642
|
+
}(O, []).join(",").search(/[$.]/) === -1 ? V(O, v) : b(O);
|
|
1634
1643
|
};
|
|
1635
1644
|
return function(O) {
|
|
1636
1645
|
return b(y(O));
|
|
1637
1646
|
};
|
|
1638
1647
|
}
|
|
1639
|
-
function
|
|
1648
|
+
function v(u, m) {
|
|
1640
1649
|
if (Object.prototype.toString.call(u) !== Object.prototype.toString.call(m))
|
|
1641
1650
|
return !1;
|
|
1642
1651
|
if (l(u)) {
|
|
1643
1652
|
if (Object.keys(u).length !== Object.keys(m).length) return !1;
|
|
1644
|
-
for (var g in u) if (!
|
|
1653
|
+
for (var g in u) if (!v(u[g], m[g])) return !1;
|
|
1645
1654
|
return !0;
|
|
1646
1655
|
}
|
|
1647
1656
|
if (c(u)) {
|
|
1648
1657
|
if (u.length !== m.length) return !1;
|
|
1649
1658
|
for (var y = 0, b = u.length; y < b; y++)
|
|
1650
|
-
if (!
|
|
1659
|
+
if (!v(u[y], m[y])) return !1;
|
|
1651
1660
|
return !0;
|
|
1652
1661
|
}
|
|
1653
1662
|
return u === m;
|
|
@@ -1657,18 +1666,18 @@ var rs = { exports: {} };
|
|
|
1657
1666
|
return m && m.select && (g = {
|
|
1658
1667
|
options: g,
|
|
1659
1668
|
validate: function(y, b, E, O) {
|
|
1660
|
-
return
|
|
1669
|
+
return w(y, b && m.select(b), E, O);
|
|
1661
1670
|
}
|
|
1662
1671
|
}), g;
|
|
1663
1672
|
}
|
|
1664
1673
|
function U(u, m) {
|
|
1665
1674
|
var g = H(u, m = Object.assign({ compare: ee, comparable: q }, m));
|
|
1666
1675
|
return function(y, b, E) {
|
|
1667
|
-
return
|
|
1676
|
+
return w(g, y, b, E);
|
|
1668
1677
|
};
|
|
1669
1678
|
}
|
|
1670
1679
|
function ee(u, m) {
|
|
1671
|
-
if (
|
|
1680
|
+
if (v(u, m)) return 0;
|
|
1672
1681
|
if (i(u) === i(m)) {
|
|
1673
1682
|
if (u > m) return 1;
|
|
1674
1683
|
if (u < m) return -1;
|
|
@@ -1695,15 +1704,15 @@ function ma(t, e, n) {
|
|
|
1695
1704
|
function fa(t, e) {
|
|
1696
1705
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
|
|
1697
1706
|
}
|
|
1698
|
-
function
|
|
1699
|
-
return
|
|
1707
|
+
function wn(t) {
|
|
1708
|
+
return wn = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
|
|
1700
1709
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
1701
|
-
},
|
|
1710
|
+
}, wn(t);
|
|
1702
1711
|
}
|
|
1703
|
-
function
|
|
1704
|
-
return
|
|
1712
|
+
function Ut(t, e) {
|
|
1713
|
+
return Ut = Object.setPrototypeOf || function(r, s) {
|
|
1705
1714
|
return r.__proto__ = s, r;
|
|
1706
|
-
},
|
|
1715
|
+
}, Ut(t, e);
|
|
1707
1716
|
}
|
|
1708
1717
|
function ga() {
|
|
1709
1718
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
@@ -1715,13 +1724,13 @@ function ga() {
|
|
|
1715
1724
|
return !1;
|
|
1716
1725
|
}
|
|
1717
1726
|
}
|
|
1718
|
-
function
|
|
1719
|
-
return ga() ?
|
|
1727
|
+
function qt(t, e, n) {
|
|
1728
|
+
return ga() ? qt = Reflect.construct : qt = function(s, i, a) {
|
|
1720
1729
|
var c = [null];
|
|
1721
1730
|
c.push.apply(c, i);
|
|
1722
1731
|
var l = Function.bind.apply(s, c), A = new l();
|
|
1723
|
-
return a &&
|
|
1724
|
-
},
|
|
1732
|
+
return a && Ut(A, a.prototype), A;
|
|
1733
|
+
}, qt.apply(null, arguments);
|
|
1725
1734
|
}
|
|
1726
1735
|
function pa(t) {
|
|
1727
1736
|
return Function.toString.call(t).indexOf("[native code]") !== -1;
|
|
@@ -1737,7 +1746,7 @@ function Bn(t) {
|
|
|
1737
1746
|
e.set(r, s);
|
|
1738
1747
|
}
|
|
1739
1748
|
function s() {
|
|
1740
|
-
return
|
|
1749
|
+
return qt(r, arguments, wn(this).constructor);
|
|
1741
1750
|
}
|
|
1742
1751
|
return s.prototype = Object.create(r.prototype, {
|
|
1743
1752
|
constructor: {
|
|
@@ -1746,7 +1755,7 @@ function Bn(t) {
|
|
|
1746
1755
|
writable: !0,
|
|
1747
1756
|
configurable: !0
|
|
1748
1757
|
}
|
|
1749
|
-
}),
|
|
1758
|
+
}), Ut(s, r);
|
|
1750
1759
|
}, Bn(t);
|
|
1751
1760
|
}
|
|
1752
1761
|
function ir(t) {
|
|
@@ -1756,9 +1765,9 @@ function ir(t) {
|
|
|
1756
1765
|
}
|
|
1757
1766
|
var ss = function(e) {
|
|
1758
1767
|
return 'Cannot execute "' + e.action + '" on "' + e.subjectName + '"';
|
|
1759
|
-
},
|
|
1768
|
+
}, Ft = ss, ya = /* @__PURE__ */ function(t) {
|
|
1760
1769
|
fa(e, t), e.setDefaultMessage = function(s) {
|
|
1761
|
-
s === null ?
|
|
1770
|
+
s === null ? Ft = ss : Ft = typeof s == "string" ? function() {
|
|
1762
1771
|
return s;
|
|
1763
1772
|
} : s;
|
|
1764
1773
|
}, e.from = function(s) {
|
|
@@ -1769,7 +1778,7 @@ var ss = function(e) {
|
|
|
1769
1778
|
};
|
|
1770
1779
|
function e(r, s) {
|
|
1771
1780
|
var i;
|
|
1772
|
-
return s === void 0 && (s = {}), i = t.call(this, r) || this, i._setMetadata(s), i.message = r ||
|
|
1781
|
+
return s === void 0 && (s = {}), i = t.call(this, r) || this, i._setMetadata(s), i.message = r || Ft(ir(i)), i._customMessage = null, typeof Error.captureStackTrace == "function" && (i.name = i.constructor.name, Error.captureStackTrace(ir(i), i.constructor)), i;
|
|
1773
1782
|
}
|
|
1774
1783
|
var n = e.prototype;
|
|
1775
1784
|
return n.setMessage = function(s) {
|
|
@@ -1786,7 +1795,7 @@ var ss = function(e) {
|
|
|
1786
1795
|
subjectName: this.ability.subjectName(i)
|
|
1787
1796
|
});
|
|
1788
1797
|
var l = c ? c.reason : "";
|
|
1789
|
-
throw this.message = this._customMessage || l ||
|
|
1798
|
+
throw this.message = this._customMessage || l || Ft(this), this;
|
|
1790
1799
|
}
|
|
1791
1800
|
}, n._setMetadata = function(s) {
|
|
1792
1801
|
this.subject = s.subject, this.subjectName = s.subjectName, this.action = s.action, this.field = s.field;
|
|
@@ -1801,10 +1810,10 @@ function ba(t) {
|
|
|
1801
1810
|
var e = typeof t == "object" ? t.constructor : t;
|
|
1802
1811
|
return e.modelName || e.name;
|
|
1803
1812
|
}
|
|
1804
|
-
function
|
|
1813
|
+
function va(t) {
|
|
1805
1814
|
return JSON.parse(JSON.stringify(t));
|
|
1806
1815
|
}
|
|
1807
|
-
var
|
|
1816
|
+
var wa = /[-/\\^$+?.()|[\]{}]/g, Ba = /\.?\*+\.?/g, Da = /\*+/, Ca = /\./g;
|
|
1808
1817
|
function Ea(t, e, n) {
|
|
1809
1818
|
var r = n[0] === "*" || t[0] === "." && t[t.length - 1] === "." ? "+" : "*", s = t.indexOf("**") === -1 ? "[^.]" : ".", i = t.replace(Ca, "\\$&").replace(Da, s + r);
|
|
1810
1819
|
return e + t.length === n.length ? "(?:" + i + ")?" : i;
|
|
@@ -1814,7 +1823,7 @@ function Ma(t, e, n) {
|
|
|
1814
1823
|
}
|
|
1815
1824
|
function Ia(t) {
|
|
1816
1825
|
var e = t.map(function(r) {
|
|
1817
|
-
return r.replace(
|
|
1826
|
+
return r.replace(wa, Ma).replace(Ba, Ea);
|
|
1818
1827
|
}), n = e.length > 1 ? "(?:" + e.join("|") + ")" : e[0];
|
|
1819
1828
|
return new RegExp("^" + n + "$");
|
|
1820
1829
|
}
|
|
@@ -1859,7 +1868,7 @@ var Oa = /* @__PURE__ */ function() {
|
|
|
1859
1868
|
indexedRules: /* @__PURE__ */ Object.create(null),
|
|
1860
1869
|
mergedRules: /* @__PURE__ */ Object.create(null),
|
|
1861
1870
|
events: {},
|
|
1862
|
-
aliases:
|
|
1871
|
+
aliases: va(ar)
|
|
1863
1872
|
}, this.update(n);
|
|
1864
1873
|
}
|
|
1865
1874
|
var e = t.prototype;
|
|
@@ -1877,8 +1886,8 @@ var Oa = /* @__PURE__ */ function() {
|
|
|
1877
1886
|
for (var s = /* @__PURE__ */ Object.create(null), i = this[te].RuleType, a = !0, c = !1, l = 0; l < r.length; l++) {
|
|
1878
1887
|
var A = new i(r[l]), f = this.expandActions(A.actions), p = Dn(A.subject), B = r.length - l - 1;
|
|
1879
1888
|
a = !!(a && A.inverted), !c && A.fields && (c = !0);
|
|
1880
|
-
for (var
|
|
1881
|
-
var P = p[
|
|
1889
|
+
for (var w = 0; w < p.length; w++) {
|
|
1890
|
+
var P = p[w];
|
|
1882
1891
|
s[P] = s[P] || /* @__PURE__ */ Object.create(null);
|
|
1883
1892
|
for (var I = 0; I < f.length; I++) {
|
|
1884
1893
|
var V = f[I];
|
|
@@ -2042,7 +2051,7 @@ async function ka(t, e) {
|
|
|
2042
2051
|
}
|
|
2043
2052
|
var Cn = /* @__PURE__ */ ((t) => (t.Loading = "loading", t.Allowed = "allowed", t.Denied = "denied", t))(Cn || {});
|
|
2044
2053
|
function Ra() {
|
|
2045
|
-
const t = ts(), { sessionUser: e } =
|
|
2054
|
+
const t = ts(), { sessionUser: e } = rn();
|
|
2046
2055
|
return ca(
|
|
2047
2056
|
async () => {
|
|
2048
2057
|
t.matched;
|
|
@@ -2081,7 +2090,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2081
2090
|
subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
|
|
2082
2091
|
}, za = {
|
|
2083
2092
|
noPermission: Wa
|
|
2084
|
-
}, Za = { class: "w-full h-full flex justify-center items-center" }, La = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Ka = { class: "w-[300px] h-[300px]" }, Ja = ["src"], _a = { class: "text-2xl" }, $a = { class: "text-xl" }, eo = /* @__PURE__ */
|
|
2093
|
+
}, Za = { class: "w-full h-full flex justify-center items-center" }, La = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Ka = { class: "w-[300px] h-[300px]" }, Ja = ["src"], _a = { class: "text-2xl" }, $a = { class: "text-xl" }, eo = /* @__PURE__ */ tn({
|
|
2085
2094
|
__name: "NoPermission",
|
|
2086
2095
|
setup(t) {
|
|
2087
2096
|
const { t: e } = ns({
|
|
@@ -2092,7 +2101,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2092
2101
|
"th-TH": za
|
|
2093
2102
|
}
|
|
2094
2103
|
});
|
|
2095
|
-
return (n, r) => (
|
|
2104
|
+
return (n, r) => (nn(), Si("div", Za, [
|
|
2096
2105
|
Ke("div", La, [
|
|
2097
2106
|
Ke("div", Ka, [
|
|
2098
2107
|
Ke("img", {
|
|
@@ -2107,18 +2116,18 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2107
2116
|
])
|
|
2108
2117
|
]));
|
|
2109
2118
|
}
|
|
2110
|
-
}), to = /* @__PURE__ */
|
|
2119
|
+
}), to = /* @__PURE__ */ tn({
|
|
2111
2120
|
__name: "PermissionWrapper",
|
|
2112
2121
|
setup(t) {
|
|
2113
2122
|
const e = Ra();
|
|
2114
|
-
return (n, r) => ge(e) === ge(Cn).Denied ? (
|
|
2123
|
+
return (n, r) => ge(e) === ge(Cn).Denied ? (nn(), Hn(eo, { key: 0 })) : ge(e) === ge(Cn).Allowed ? Qi(n.$slots, "default", { key: 1 }) : Xi("", !0);
|
|
2115
2124
|
}
|
|
2116
2125
|
});
|
|
2117
2126
|
function os(t) {
|
|
2118
2127
|
return {
|
|
2119
2128
|
inheritAttrs: !1,
|
|
2120
2129
|
setup(e, { attrs: n }) {
|
|
2121
|
-
return () =>
|
|
2130
|
+
return () => vn(to, {}, { default: () => vn(t, n) });
|
|
2122
2131
|
}
|
|
2123
2132
|
};
|
|
2124
2133
|
}
|
|
@@ -2415,10 +2424,10 @@ const k = [
|
|
|
2415
2424
|
), bs = $(
|
|
2416
2425
|
se,
|
|
2417
2426
|
ho
|
|
2418
|
-
),
|
|
2427
|
+
), vs = $(
|
|
2419
2428
|
se,
|
|
2420
2429
|
mo
|
|
2421
|
-
),
|
|
2430
|
+
), ws = $(
|
|
2422
2431
|
se,
|
|
2423
2432
|
fo
|
|
2424
2433
|
), Bs = $(
|
|
@@ -2445,7 +2454,7 @@ const k = [
|
|
|
2445
2454
|
o.delete
|
|
2446
2455
|
]
|
|
2447
2456
|
}
|
|
2448
|
-
],
|
|
2457
|
+
], vo = [
|
|
2449
2458
|
...k,
|
|
2450
2459
|
{
|
|
2451
2460
|
label: "Membership",
|
|
@@ -2457,7 +2466,7 @@ const k = [
|
|
|
2457
2466
|
o.delete
|
|
2458
2467
|
]
|
|
2459
2468
|
}
|
|
2460
|
-
],
|
|
2469
|
+
], wo = $(
|
|
2461
2470
|
no,
|
|
2462
2471
|
ro,
|
|
2463
2472
|
cs,
|
|
@@ -2471,8 +2480,8 @@ const k = [
|
|
|
2471
2480
|
ps,
|
|
2472
2481
|
ys,
|
|
2473
2482
|
bs,
|
|
2474
|
-
ws,
|
|
2475
2483
|
vs,
|
|
2484
|
+
ws,
|
|
2476
2485
|
Bs,
|
|
2477
2486
|
Ds,
|
|
2478
2487
|
ds,
|
|
@@ -2486,11 +2495,11 @@ const k = [
|
|
|
2486
2495
|
), Do = $(
|
|
2487
2496
|
se,
|
|
2488
2497
|
bo
|
|
2489
|
-
), Co = $(
|
|
2498
|
+
), Co = $(vo), Eo = {
|
|
2490
2499
|
[`set_${d.crm}`]: {
|
|
2491
2500
|
key: "sys:crm:access",
|
|
2492
2501
|
name: "CRM Access",
|
|
2493
|
-
permissions:
|
|
2502
|
+
permissions: wo
|
|
2494
2503
|
},
|
|
2495
2504
|
[`set_${d.crm_promotion}`]: {
|
|
2496
2505
|
key: "sys:crm:promotion",
|
|
@@ -2535,12 +2544,12 @@ const k = [
|
|
|
2535
2544
|
[`set_${d.crm_credit}`]: {
|
|
2536
2545
|
key: "sys:crm:credit",
|
|
2537
2546
|
name: "CRM Credit",
|
|
2538
|
-
permissions:
|
|
2547
|
+
permissions: vs
|
|
2539
2548
|
},
|
|
2540
2549
|
[`set_${d.crm_experience}`]: {
|
|
2541
2550
|
key: "sys:crm:experience",
|
|
2542
2551
|
name: "CRM Experience",
|
|
2543
|
-
permissions:
|
|
2552
|
+
permissions: ws
|
|
2544
2553
|
},
|
|
2545
2554
|
[`set_${d.crm_game}`]: {
|
|
2546
2555
|
key: "sys:crm:game",
|
|
@@ -3163,7 +3172,7 @@ const Ho = () => ({
|
|
|
3163
3172
|
sidebarDisplay: "Restaurants",
|
|
3164
3173
|
section: "payment-gateway"
|
|
3165
3174
|
},
|
|
3166
|
-
component: () => import("./Restaurant-
|
|
3175
|
+
component: () => import("./Restaurant-CV5n8389.js")
|
|
3167
3176
|
},
|
|
3168
3177
|
{
|
|
3169
3178
|
path: "/admin/restaurants/:restaurantId",
|
|
@@ -3172,7 +3181,7 @@ const Ho = () => ({
|
|
|
3172
3181
|
meta: {
|
|
3173
3182
|
parent: "mf-payment-admin.restaurant"
|
|
3174
3183
|
},
|
|
3175
|
-
component: () => import("./RestaurantSetting-
|
|
3184
|
+
component: () => import("./RestaurantSetting-DsP4kGjM.js")
|
|
3176
3185
|
},
|
|
3177
3186
|
{
|
|
3178
3187
|
path: "/admin/payout-accounts",
|
|
@@ -3181,7 +3190,7 @@ const Ho = () => ({
|
|
|
3181
3190
|
sidebarDisplay: "Payout Accounts",
|
|
3182
3191
|
section: "payment-gateway"
|
|
3183
3192
|
},
|
|
3184
|
-
component: () => import("./PayoutAccount-
|
|
3193
|
+
component: () => import("./PayoutAccount-DKWtIoTX.js")
|
|
3185
3194
|
},
|
|
3186
3195
|
{
|
|
3187
3196
|
path: "/admin/payout-accounts/:accountId",
|
|
@@ -3190,7 +3199,7 @@ const Ho = () => ({
|
|
|
3190
3199
|
meta: {
|
|
3191
3200
|
parent: "mf-payment-admin.payout-account"
|
|
3192
3201
|
},
|
|
3193
|
-
component: () => import("./PayoutAccountSetting-
|
|
3202
|
+
component: () => import("./PayoutAccountSetting-CWZD3Kwa.js")
|
|
3194
3203
|
},
|
|
3195
3204
|
{
|
|
3196
3205
|
path: "/admin/onboarding",
|
|
@@ -3199,7 +3208,7 @@ const Ho = () => ({
|
|
|
3199
3208
|
sidebarDisplay: "Payment Onboarding",
|
|
3200
3209
|
section: "payment-gateway"
|
|
3201
3210
|
},
|
|
3202
|
-
component: () => import("./OnboardSubmission-
|
|
3211
|
+
component: () => import("./OnboardSubmission-BUJZydpX.js")
|
|
3203
3212
|
},
|
|
3204
3213
|
{
|
|
3205
3214
|
path: "/admin/onboarding/:submissionId",
|
|
@@ -3208,7 +3217,7 @@ const Ho = () => ({
|
|
|
3208
3217
|
meta: {
|
|
3209
3218
|
parent: "mf-payment-admin.onboard-submission"
|
|
3210
3219
|
},
|
|
3211
|
-
component: () => import("./OnboardForm-
|
|
3220
|
+
component: () => import("./OnboardForm-BDv2pxL9.js")
|
|
3212
3221
|
},
|
|
3213
3222
|
{
|
|
3214
3223
|
path: "/admin/terminal/pos",
|
|
@@ -3217,7 +3226,7 @@ const Ho = () => ({
|
|
|
3217
3226
|
sidebarDisplay: "POS",
|
|
3218
3227
|
section: "device"
|
|
3219
3228
|
},
|
|
3220
|
-
component: () => import("./Terminal-
|
|
3229
|
+
component: () => import("./Terminal-BuMIcbhv.js"),
|
|
3221
3230
|
props: {
|
|
3222
3231
|
type: "POS"
|
|
3223
3232
|
}
|
|
@@ -3229,7 +3238,7 @@ const Ho = () => ({
|
|
|
3229
3238
|
sidebarDisplay: "Kiosks",
|
|
3230
3239
|
section: "device"
|
|
3231
3240
|
},
|
|
3232
|
-
component: () => import("./Terminal-
|
|
3241
|
+
component: () => import("./Terminal-BuMIcbhv.js"),
|
|
3233
3242
|
props: {
|
|
3234
3243
|
type: "KIOSK"
|
|
3235
3244
|
}
|
|
@@ -3241,7 +3250,7 @@ const Ho = () => ({
|
|
|
3241
3250
|
sidebarDisplay: "Terminals",
|
|
3242
3251
|
section: "device"
|
|
3243
3252
|
},
|
|
3244
|
-
component: () => import("./Terminal-
|
|
3253
|
+
component: () => import("./Terminal-BuMIcbhv.js"),
|
|
3245
3254
|
props: {
|
|
3246
3255
|
type: "TERMINAL"
|
|
3247
3256
|
}
|
|
@@ -3254,7 +3263,25 @@ const Ho = () => ({
|
|
|
3254
3263
|
section: "device",
|
|
3255
3264
|
region: { TH: !0, ID: !0 }
|
|
3256
3265
|
},
|
|
3257
|
-
component: () => import("./ExternalTerminal-
|
|
3266
|
+
component: () => import("./ExternalTerminal-CqrRcbsp.js")
|
|
3267
|
+
},
|
|
3268
|
+
{
|
|
3269
|
+
path: "/admin/terminal/templates",
|
|
3270
|
+
name: "mf-payment-admin.terminal-template",
|
|
3271
|
+
meta: {
|
|
3272
|
+
sidebarDisplay: "Templates",
|
|
3273
|
+
section: "device"
|
|
3274
|
+
},
|
|
3275
|
+
component: () => import("./TerminalTemplate-aBZAYAKp.js")
|
|
3276
|
+
},
|
|
3277
|
+
{
|
|
3278
|
+
path: "/admin/terminal/templates/:templateId",
|
|
3279
|
+
name: "mf-payment-admin.terminal-template-setting",
|
|
3280
|
+
props: !0,
|
|
3281
|
+
meta: {
|
|
3282
|
+
parent: "mf-payment-admin.terminal-template"
|
|
3283
|
+
},
|
|
3284
|
+
component: () => import("./TerminalTemplateSetting-BZlX7Xll.js")
|
|
3258
3285
|
},
|
|
3259
3286
|
{
|
|
3260
3287
|
path: "/admin/terminal/pos/:terminalId",
|
|
@@ -3263,7 +3290,7 @@ const Ho = () => ({
|
|
|
3263
3290
|
meta: {
|
|
3264
3291
|
parent: "mf-payment-admin.pos"
|
|
3265
3292
|
},
|
|
3266
|
-
component: () => import("./TerminalSetting-
|
|
3293
|
+
component: () => import("./TerminalSetting-2kwSwfKt.js")
|
|
3267
3294
|
},
|
|
3268
3295
|
{
|
|
3269
3296
|
path: "/admin/terminal/kiosk/:terminalId",
|
|
@@ -3272,7 +3299,7 @@ const Ho = () => ({
|
|
|
3272
3299
|
meta: {
|
|
3273
3300
|
parent: "mf-payment-admin.kiosk"
|
|
3274
3301
|
},
|
|
3275
|
-
component: () => import("./TerminalSetting-
|
|
3302
|
+
component: () => import("./TerminalSetting-2kwSwfKt.js")
|
|
3276
3303
|
},
|
|
3277
3304
|
{
|
|
3278
3305
|
path: "/admin/terminal/terminal/:terminalId",
|
|
@@ -3281,7 +3308,7 @@ const Ho = () => ({
|
|
|
3281
3308
|
meta: {
|
|
3282
3309
|
parent: "mf-payment-admin.terminal"
|
|
3283
3310
|
},
|
|
3284
|
-
component: () => import("./TerminalSetting-
|
|
3311
|
+
component: () => import("./TerminalSetting-2kwSwfKt.js")
|
|
3285
3312
|
},
|
|
3286
3313
|
{
|
|
3287
3314
|
path: "/admin/transaction",
|
|
@@ -3289,7 +3316,7 @@ const Ho = () => ({
|
|
|
3289
3316
|
meta: {
|
|
3290
3317
|
sidebarDisplay: "Transactions"
|
|
3291
3318
|
},
|
|
3292
|
-
component: () => import("./Transaction-
|
|
3319
|
+
component: () => import("./Transaction-lRZITPtN.js")
|
|
3293
3320
|
},
|
|
3294
3321
|
{
|
|
3295
3322
|
path: "/admin/chargeback",
|
|
@@ -3297,7 +3324,7 @@ const Ho = () => ({
|
|
|
3297
3324
|
meta: {
|
|
3298
3325
|
sidebarDisplay: "Chargebacks"
|
|
3299
3326
|
},
|
|
3300
|
-
component: () => import("./Chargeback-
|
|
3327
|
+
component: () => import("./Chargeback-pnoHxJba.js")
|
|
3301
3328
|
},
|
|
3302
3329
|
{
|
|
3303
3330
|
path: "/admin/settlement",
|
|
@@ -3305,7 +3332,7 @@ const Ho = () => ({
|
|
|
3305
3332
|
meta: {
|
|
3306
3333
|
sidebarDisplay: "Settlements"
|
|
3307
3334
|
},
|
|
3308
|
-
component: () => import("./Settlement-
|
|
3335
|
+
component: () => import("./Settlement-58-ie3T1.js")
|
|
3309
3336
|
},
|
|
3310
3337
|
{
|
|
3311
3338
|
path: "/admin/settlement/:settlementId",
|
|
@@ -3314,7 +3341,7 @@ const Ho = () => ({
|
|
|
3314
3341
|
meta: {
|
|
3315
3342
|
parent: "mf-payment-admin.settlement"
|
|
3316
3343
|
},
|
|
3317
|
-
component: () => import("./SettlementTransactions-
|
|
3344
|
+
component: () => import("./SettlementTransactions-Db1f9lYu.js")
|
|
3318
3345
|
}
|
|
3319
3346
|
].map((t) => ({
|
|
3320
3347
|
...t,
|
|
@@ -3322,7 +3349,7 @@ const Ho = () => ({
|
|
|
3322
3349
|
...t.meta,
|
|
3323
3350
|
...Ho()
|
|
3324
3351
|
}
|
|
3325
|
-
})),
|
|
3352
|
+
})), bt = [
|
|
3326
3353
|
{
|
|
3327
3354
|
path: "",
|
|
3328
3355
|
redirect: { name: "mf-payment-payout-account" }
|
|
@@ -3330,7 +3357,7 @@ const Ho = () => ({
|
|
|
3330
3357
|
{
|
|
3331
3358
|
path: "/payout-account",
|
|
3332
3359
|
name: "mf-payment-payout-account",
|
|
3333
|
-
component: () => import("./PayoutAccount-
|
|
3360
|
+
component: () => import("./PayoutAccount-dwMtm1PL.js"),
|
|
3334
3361
|
meta: {
|
|
3335
3362
|
sidebarDisplay: "i18n:payment.routes.payout_account",
|
|
3336
3363
|
region: { MY: !0 },
|
|
@@ -3347,7 +3374,7 @@ const Ho = () => ({
|
|
|
3347
3374
|
{
|
|
3348
3375
|
path: "/onboard-submission",
|
|
3349
3376
|
name: "mf-payment-onboard-submission",
|
|
3350
|
-
component: () => import("./OnboardSubmission-
|
|
3377
|
+
component: () => import("./OnboardSubmission-Cx_sPOVH.js"),
|
|
3351
3378
|
meta: {
|
|
3352
3379
|
sidebarDisplay: "i18n:payment.routes.onboard_submission",
|
|
3353
3380
|
region: { MY: !0, TH: !0, AU: !0 },
|
|
@@ -3365,7 +3392,7 @@ const Ho = () => ({
|
|
|
3365
3392
|
path: "/onboard-submission/restaurant/:restaurantId/:type/:submission?",
|
|
3366
3393
|
name: "mf-payment-onboard-submission-form",
|
|
3367
3394
|
props: !0,
|
|
3368
|
-
component: () => import("./OnboardForm-
|
|
3395
|
+
component: () => import("./OnboardForm-CYO3vK_8.js"),
|
|
3369
3396
|
meta: {
|
|
3370
3397
|
parent: "mf-payment-onboard-submission",
|
|
3371
3398
|
validationManifest: {
|
|
@@ -3381,7 +3408,7 @@ const Ho = () => ({
|
|
|
3381
3408
|
{
|
|
3382
3409
|
path: "/transaction-old",
|
|
3383
3410
|
name: "mf-payment-old-transaction",
|
|
3384
|
-
component: () => import("./TransactionOld-
|
|
3411
|
+
component: () => import("./TransactionOld-CmLbZyaP.js"),
|
|
3385
3412
|
meta: {
|
|
3386
3413
|
sidebarDisplay: "i18n:payment.routes.transaction",
|
|
3387
3414
|
validationManifest: {
|
|
@@ -3397,7 +3424,7 @@ const Ho = () => ({
|
|
|
3397
3424
|
{
|
|
3398
3425
|
path: "/transaction",
|
|
3399
3426
|
name: "mf-payment-transaction",
|
|
3400
|
-
component: () => import("./Transaction-
|
|
3427
|
+
component: () => import("./Transaction-Cy03QV60.js"),
|
|
3401
3428
|
meta: {
|
|
3402
3429
|
sidebarDisplay: "i18n:payment.routes.transaction_new",
|
|
3403
3430
|
sidebarNew: !0,
|
|
@@ -3414,7 +3441,7 @@ const Ho = () => ({
|
|
|
3414
3441
|
{
|
|
3415
3442
|
path: "/settlement",
|
|
3416
3443
|
name: "mf-payment-settlement",
|
|
3417
|
-
component: () => import("./Settlement-
|
|
3444
|
+
component: () => import("./Settlement-Bt18kRNt.js"),
|
|
3418
3445
|
meta: {
|
|
3419
3446
|
sidebarDisplay: "i18n:payment.routes.settlement",
|
|
3420
3447
|
region: { MY: !0, SG: !0 },
|
|
@@ -3432,7 +3459,7 @@ const Ho = () => ({
|
|
|
3432
3459
|
path: "/settlement/:settlementId",
|
|
3433
3460
|
name: "mf-payment-settlement-transaction",
|
|
3434
3461
|
props: !0,
|
|
3435
|
-
component: () => import("./SettlementTransactions-
|
|
3462
|
+
component: () => import("./SettlementTransactions-C7GhMTLQ.js"),
|
|
3436
3463
|
meta: {
|
|
3437
3464
|
parent: "mf-payment-settlement",
|
|
3438
3465
|
validationManifest: {
|
|
@@ -3600,8 +3627,8 @@ const Vs = function(t) {
|
|
|
3600
3627
|
const n = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
|
|
3601
3628
|
for (let s = 0; s < t.length; s += 3) {
|
|
3602
3629
|
const i = t[s], a = s + 1 < t.length, c = a ? t[s + 1] : 0, l = s + 2 < t.length, A = l ? t[s + 2] : 0, f = i >> 2, p = (i & 3) << 4 | c >> 4;
|
|
3603
|
-
let B = (c & 15) << 2 | A >> 6,
|
|
3604
|
-
l || (
|
|
3630
|
+
let B = (c & 15) << 2 | A >> 6, w = A & 63;
|
|
3631
|
+
l || (w = 64, a || (B = 64)), r.push(n[f], n[p], n[B], n[w]);
|
|
3605
3632
|
}
|
|
3606
3633
|
return r.join("");
|
|
3607
3634
|
},
|
|
@@ -3655,8 +3682,8 @@ const Vs = function(t) {
|
|
|
3655
3682
|
throw new So();
|
|
3656
3683
|
const B = i << 2 | c >> 4;
|
|
3657
3684
|
if (r.push(B), A !== 64) {
|
|
3658
|
-
const
|
|
3659
|
-
if (r.push(
|
|
3685
|
+
const w = c << 4 & 240 | A >> 2;
|
|
3686
|
+
if (r.push(w), p !== 64) {
|
|
3660
3687
|
const P = A << 6 & 192 | p;
|
|
3661
3688
|
r.push(P);
|
|
3662
3689
|
}
|
|
@@ -3888,10 +3915,10 @@ function sc() {
|
|
|
3888
3915
|
const ic = "FirebaseError";
|
|
3889
3916
|
class qe extends Error {
|
|
3890
3917
|
constructor(e, n, r) {
|
|
3891
|
-
super(n), this.code = e, this.customData = r, this.name = ic, Object.setPrototypeOf(this, qe.prototype), Error.captureStackTrace && Error.captureStackTrace(this,
|
|
3918
|
+
super(n), this.code = e, this.customData = r, this.name = ic, Object.setPrototypeOf(this, qe.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Pt.prototype.create);
|
|
3892
3919
|
}
|
|
3893
3920
|
}
|
|
3894
|
-
class
|
|
3921
|
+
class Pt {
|
|
3895
3922
|
constructor(e, n, r) {
|
|
3896
3923
|
this.service = e, this.serviceName = n, this.errors = r;
|
|
3897
3924
|
}
|
|
@@ -3913,7 +3940,7 @@ function cc(t) {
|
|
|
3913
3940
|
return !1;
|
|
3914
3941
|
return !0;
|
|
3915
3942
|
}
|
|
3916
|
-
function
|
|
3943
|
+
function Wt(t, e) {
|
|
3917
3944
|
if (t === e)
|
|
3918
3945
|
return !0;
|
|
3919
3946
|
const n = Object.keys(t), r = Object.keys(e);
|
|
@@ -3922,7 +3949,7 @@ function Ut(t, e) {
|
|
|
3922
3949
|
return !1;
|
|
3923
3950
|
const i = t[s], a = e[s];
|
|
3924
3951
|
if (ur(i) && ur(a)) {
|
|
3925
|
-
if (!
|
|
3952
|
+
if (!Wt(i, a))
|
|
3926
3953
|
return !1;
|
|
3927
3954
|
} else if (i !== a)
|
|
3928
3955
|
return !1;
|
|
@@ -3951,7 +3978,7 @@ function ur(t) {
|
|
|
3951
3978
|
* See the License for the specific language governing permissions and
|
|
3952
3979
|
* limitations under the License.
|
|
3953
3980
|
*/
|
|
3954
|
-
function
|
|
3981
|
+
function Ot(t) {
|
|
3955
3982
|
const e = [];
|
|
3956
3983
|
for (const [n, r] of Object.entries(t))
|
|
3957
3984
|
Array.isArray(r) ? r.forEach((s) => {
|
|
@@ -4444,9 +4471,9 @@ class Ns {
|
|
|
4444
4471
|
this._userLogHandler && this._userLogHandler(this, F.ERROR, ...e), this._logHandler(this, F.ERROR, ...e);
|
|
4445
4472
|
}
|
|
4446
4473
|
}
|
|
4447
|
-
const
|
|
4474
|
+
const vc = (t, e) => e.some((n) => t instanceof n);
|
|
4448
4475
|
let lr, Ar;
|
|
4449
|
-
function
|
|
4476
|
+
function wc() {
|
|
4450
4477
|
return lr || (lr = [
|
|
4451
4478
|
IDBDatabase,
|
|
4452
4479
|
IDBObjectStore,
|
|
@@ -4527,7 +4554,7 @@ function Mc(t) {
|
|
|
4527
4554
|
};
|
|
4528
4555
|
}
|
|
4529
4556
|
function Ic(t) {
|
|
4530
|
-
return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t),
|
|
4557
|
+
return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t), vc(t, wc()) ? new Proxy(t, Mn) : t);
|
|
4531
4558
|
}
|
|
4532
4559
|
function Fe(t) {
|
|
4533
4560
|
if (t instanceof IDBRequest)
|
|
@@ -4632,7 +4659,7 @@ const In = "@firebase/app", hr = "0.10.13";
|
|
|
4632
4659
|
* See the License for the specific language governing permissions and
|
|
4633
4660
|
* limitations under the License.
|
|
4634
4661
|
*/
|
|
4635
|
-
const
|
|
4662
|
+
const we = new Ns("@firebase/app"), Yc = "@firebase/app-compat", Vc = "@firebase/analytics-compat", xc = "@firebase/analytics", Fc = "@firebase/app-check-compat", kc = "@firebase/app-check", Rc = "@firebase/auth", qc = "@firebase/auth-compat", Nc = "@firebase/database", Hc = "@firebase/data-connect", Qc = "@firebase/database-compat", Xc = "@firebase/functions", Sc = "@firebase/functions-compat", Uc = "@firebase/installations", Wc = "@firebase/installations-compat", zc = "@firebase/messaging", Zc = "@firebase/messaging-compat", Lc = "@firebase/performance", Kc = "@firebase/performance-compat", Jc = "@firebase/remote-config", _c = "@firebase/remote-config-compat", $c = "@firebase/storage", eu = "@firebase/storage-compat", tu = "@firebase/firestore", nu = "@firebase/vertexai-preview", ru = "@firebase/firestore-compat", su = "firebase", iu = "10.14.1";
|
|
4636
4663
|
/**
|
|
4637
4664
|
* @license
|
|
4638
4665
|
* Copyright 2019 Google LLC
|
|
@@ -4695,20 +4722,20 @@ const Pn = "[DEFAULT]", au = {
|
|
|
4695
4722
|
* See the License for the specific language governing permissions and
|
|
4696
4723
|
* limitations under the License.
|
|
4697
4724
|
*/
|
|
4698
|
-
const
|
|
4725
|
+
const zt = /* @__PURE__ */ new Map(), ou = /* @__PURE__ */ new Map(), On = /* @__PURE__ */ new Map();
|
|
4699
4726
|
function mr(t, e) {
|
|
4700
4727
|
try {
|
|
4701
4728
|
t.container.addComponent(e);
|
|
4702
4729
|
} catch (n) {
|
|
4703
|
-
|
|
4730
|
+
we.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`, n);
|
|
4704
4731
|
}
|
|
4705
4732
|
}
|
|
4706
|
-
function
|
|
4733
|
+
function vt(t) {
|
|
4707
4734
|
const e = t.name;
|
|
4708
4735
|
if (On.has(e))
|
|
4709
|
-
return
|
|
4736
|
+
return we.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
4710
4737
|
On.set(e, t);
|
|
4711
|
-
for (const n of
|
|
4738
|
+
for (const n of zt.values())
|
|
4712
4739
|
mr(n, t);
|
|
4713
4740
|
for (const n of ou.values())
|
|
4714
4741
|
mr(n, t);
|
|
@@ -4752,7 +4779,7 @@ const cu = {
|
|
|
4752
4779
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
|
4753
4780
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
|
4754
4781
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
|
4755
|
-
}, ke = new
|
|
4782
|
+
}, ke = new Pt("app", "Firebase", cu);
|
|
4756
4783
|
/**
|
|
4757
4784
|
* @license
|
|
4758
4785
|
* Copyright 2019 Google LLC
|
|
@@ -4827,7 +4854,7 @@ class uu {
|
|
|
4827
4854
|
* See the License for the specific language governing permissions and
|
|
4828
4855
|
* limitations under the License.
|
|
4829
4856
|
*/
|
|
4830
|
-
const
|
|
4857
|
+
const Tt = iu;
|
|
4831
4858
|
function Ss(t, e = {}) {
|
|
4832
4859
|
let n = t;
|
|
4833
4860
|
typeof e != "object" && (e = { name: e });
|
|
@@ -4841,9 +4868,9 @@ function Ss(t, e = {}) {
|
|
|
4841
4868
|
"no-options"
|
|
4842
4869
|
/* AppError.NO_OPTIONS */
|
|
4843
4870
|
);
|
|
4844
|
-
const i =
|
|
4871
|
+
const i = zt.get(s);
|
|
4845
4872
|
if (i) {
|
|
4846
|
-
if (
|
|
4873
|
+
if (Wt(n, i.options) && Wt(r, i.config))
|
|
4847
4874
|
return i;
|
|
4848
4875
|
throw ke.create("duplicate-app", { appName: s });
|
|
4849
4876
|
}
|
|
@@ -4851,10 +4878,10 @@ function Ss(t, e = {}) {
|
|
|
4851
4878
|
for (const l of On.values())
|
|
4852
4879
|
a.addComponent(l);
|
|
4853
4880
|
const c = new uu(n, r, a);
|
|
4854
|
-
return
|
|
4881
|
+
return zt.set(s, c), c;
|
|
4855
4882
|
}
|
|
4856
4883
|
function lu(t = Pn) {
|
|
4857
|
-
const e =
|
|
4884
|
+
const e = zt.get(t);
|
|
4858
4885
|
if (!e && t === Pn && Rs())
|
|
4859
4886
|
return Ss();
|
|
4860
4887
|
if (!e)
|
|
@@ -4870,10 +4897,10 @@ function $e(t, e, n) {
|
|
|
4870
4897
|
const c = [
|
|
4871
4898
|
`Unable to register library "${s}" with version "${e}":`
|
|
4872
4899
|
];
|
|
4873
|
-
i && c.push(`library name "${s}" contains illegal characters (whitespace or "/")`), i && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`),
|
|
4900
|
+
i && c.push(`library name "${s}" contains illegal characters (whitespace or "/")`), i && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`), we.warn(c.join(" "));
|
|
4874
4901
|
return;
|
|
4875
4902
|
}
|
|
4876
|
-
|
|
4903
|
+
vt(new dt(
|
|
4877
4904
|
`${s}-version`,
|
|
4878
4905
|
() => ({ library: s, version: e }),
|
|
4879
4906
|
"VERSION"
|
|
@@ -4922,12 +4949,12 @@ async function hu(t) {
|
|
|
4922
4949
|
return await n.done, r;
|
|
4923
4950
|
} catch (e) {
|
|
4924
4951
|
if (e instanceof qe)
|
|
4925
|
-
|
|
4952
|
+
we.warn(e.message);
|
|
4926
4953
|
else {
|
|
4927
4954
|
const n = ke.create("idb-get", {
|
|
4928
4955
|
originalErrorMessage: e == null ? void 0 : e.message
|
|
4929
4956
|
});
|
|
4930
|
-
|
|
4957
|
+
we.warn(n.message);
|
|
4931
4958
|
}
|
|
4932
4959
|
}
|
|
4933
4960
|
}
|
|
@@ -4937,12 +4964,12 @@ async function fr(t, e) {
|
|
|
4937
4964
|
await r.objectStore(wt).put(e, Ws(t)), await r.done;
|
|
4938
4965
|
} catch (n) {
|
|
4939
4966
|
if (n instanceof qe)
|
|
4940
|
-
|
|
4967
|
+
we.warn(n.message);
|
|
4941
4968
|
else {
|
|
4942
4969
|
const r = ke.create("idb-set", {
|
|
4943
4970
|
originalErrorMessage: n == null ? void 0 : n.message
|
|
4944
4971
|
});
|
|
4945
|
-
|
|
4972
|
+
we.warn(r.message);
|
|
4946
4973
|
}
|
|
4947
4974
|
}
|
|
4948
4975
|
}
|
|
@@ -4988,7 +5015,7 @@ class gu {
|
|
|
4988
5015
|
return Date.now() - c <= fu;
|
|
4989
5016
|
}), this._storage.overwrite(this._heartbeatsCache));
|
|
4990
5017
|
} catch (r) {
|
|
4991
|
-
|
|
5018
|
+
we.warn(r);
|
|
4992
5019
|
}
|
|
4993
5020
|
}
|
|
4994
5021
|
/**
|
|
@@ -5006,7 +5033,7 @@ class gu {
|
|
|
5006
5033
|
const n = gr(), { heartbeatsToSend: r, unsentEntries: s } = pu(this._heartbeatsCache.heartbeats), i = Fs(JSON.stringify({ version: 2, heartbeats: r }));
|
|
5007
5034
|
return this._heartbeatsCache.lastSentHeartbeatDate = n, s.length > 0 ? (this._heartbeatsCache.heartbeats = s, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), i;
|
|
5008
5035
|
} catch (n) {
|
|
5009
|
-
return
|
|
5036
|
+
return we.warn(n), "";
|
|
5010
5037
|
}
|
|
5011
5038
|
}
|
|
5012
5039
|
}
|
|
@@ -5105,12 +5132,12 @@ function pr(t) {
|
|
|
5105
5132
|
* limitations under the License.
|
|
5106
5133
|
*/
|
|
5107
5134
|
function bu(t) {
|
|
5108
|
-
|
|
5135
|
+
vt(new dt(
|
|
5109
5136
|
"platform-logger",
|
|
5110
5137
|
(e) => new Gc(e),
|
|
5111
5138
|
"PRIVATE"
|
|
5112
5139
|
/* ComponentType.PRIVATE */
|
|
5113
|
-
)),
|
|
5140
|
+
)), vt(new dt(
|
|
5114
5141
|
"heartbeat",
|
|
5115
5142
|
(e) => new gu(e),
|
|
5116
5143
|
"PRIVATE"
|
|
@@ -5118,7 +5145,7 @@ function bu(t) {
|
|
|
5118
5145
|
)), $e(In, hr, t), $e(In, hr, "esm2017"), $e("fire-js", "");
|
|
5119
5146
|
}
|
|
5120
5147
|
bu("");
|
|
5121
|
-
var
|
|
5148
|
+
var vu = "firebase", wu = "10.14.1";
|
|
5122
5149
|
/**
|
|
5123
5150
|
* @license
|
|
5124
5151
|
* Copyright 2020 Google LLC
|
|
@@ -5135,7 +5162,7 @@ var wu = "firebase", vu = "10.14.1";
|
|
|
5135
5162
|
* See the License for the specific language governing permissions and
|
|
5136
5163
|
* limitations under the License.
|
|
5137
5164
|
*/
|
|
5138
|
-
$e(
|
|
5165
|
+
$e(vu, wu, "app");
|
|
5139
5166
|
var yr = function() {
|
|
5140
5167
|
return yr = Object.assign || function(e) {
|
|
5141
5168
|
for (var n, r = 1, s = arguments.length; r < s; r++) {
|
|
@@ -5158,7 +5185,7 @@ function zs() {
|
|
|
5158
5185
|
"dependent-sdk-initialized-before-auth": "Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."
|
|
5159
5186
|
};
|
|
5160
5187
|
}
|
|
5161
|
-
const Bu = zs, Zs = new
|
|
5188
|
+
const Bu = zs, Zs = new Pt("auth", "Firebase", zs());
|
|
5162
5189
|
/**
|
|
5163
5190
|
* @license
|
|
5164
5191
|
* Copyright 2020 Google LLC
|
|
@@ -5175,12 +5202,12 @@ const Bu = zs, Zs = new It("auth", "Firebase", zs());
|
|
|
5175
5202
|
* See the License for the specific language governing permissions and
|
|
5176
5203
|
* limitations under the License.
|
|
5177
5204
|
*/
|
|
5178
|
-
const
|
|
5205
|
+
const Zt = new Ns("@firebase/auth");
|
|
5179
5206
|
function Du(t, ...e) {
|
|
5180
|
-
|
|
5207
|
+
Zt.logLevel <= F.WARN && Zt.warn(`Auth (${Tt}): ${t}`, ...e);
|
|
5181
5208
|
}
|
|
5182
|
-
function
|
|
5183
|
-
|
|
5209
|
+
function Nt(t, ...e) {
|
|
5210
|
+
Zt.logLevel <= F.ERROR && Zt.error(`Auth (${Tt}): ${t}`, ...e);
|
|
5184
5211
|
}
|
|
5185
5212
|
/**
|
|
5186
5213
|
* @license
|
|
@@ -5206,7 +5233,7 @@ function Ae(t, ...e) {
|
|
|
5206
5233
|
}
|
|
5207
5234
|
function Ls(t, e, n) {
|
|
5208
5235
|
const r = Object.assign(Object.assign({}, Bu()), { [e]: n });
|
|
5209
|
-
return new
|
|
5236
|
+
return new Pt("auth", "Firebase", r).create(e, {
|
|
5210
5237
|
appName: t.name
|
|
5211
5238
|
});
|
|
5212
5239
|
}
|
|
@@ -5226,7 +5253,7 @@ function M(t, e, ...n) {
|
|
|
5226
5253
|
}
|
|
5227
5254
|
function ye(t) {
|
|
5228
5255
|
const e = "INTERNAL ASSERTION FAILED: " + t;
|
|
5229
|
-
throw
|
|
5256
|
+
throw Nt(e), new Error(e);
|
|
5230
5257
|
}
|
|
5231
5258
|
function De(t, e) {
|
|
5232
5259
|
t || ye(e);
|
|
@@ -5310,7 +5337,7 @@ function Mu() {
|
|
|
5310
5337
|
* See the License for the specific language governing permissions and
|
|
5311
5338
|
* limitations under the License.
|
|
5312
5339
|
*/
|
|
5313
|
-
class
|
|
5340
|
+
class Gt {
|
|
5314
5341
|
constructor(e, n) {
|
|
5315
5342
|
this.shortDelay = e, this.longDelay = n, De(n > e, "Short delay should be less than long delay!"), this.isMobile = _o() || tc();
|
|
5316
5343
|
}
|
|
@@ -5500,7 +5527,7 @@ const Iu = {
|
|
|
5500
5527
|
* See the License for the specific language governing permissions and
|
|
5501
5528
|
* limitations under the License.
|
|
5502
5529
|
*/
|
|
5503
|
-
const Pu = new
|
|
5530
|
+
const Pu = new Gt(3e4, 6e4);
|
|
5504
5531
|
function sn(t, e) {
|
|
5505
5532
|
return t.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: t.tenantId }) : e;
|
|
5506
5533
|
}
|
|
@@ -5510,7 +5537,7 @@ async function mt(t, e, n, r, s = {}) {
|
|
|
5510
5537
|
r && (e === "GET" ? a = r : i = {
|
|
5511
5538
|
body: JSON.stringify(r)
|
|
5512
5539
|
});
|
|
5513
|
-
const c =
|
|
5540
|
+
const c = Ot(Object.assign({ key: t.config.apiKey }, a)).slice(1), l = await t._getAdditionalHeaders();
|
|
5514
5541
|
l[
|
|
5515
5542
|
"Content-Type"
|
|
5516
5543
|
/* HttpHeader.CONTENT_TYPE */
|
|
@@ -5536,17 +5563,17 @@ async function Js(t, e, n) {
|
|
|
5536
5563
|
s.clearNetworkTimeout();
|
|
5537
5564
|
const a = await i.json();
|
|
5538
5565
|
if ("needConfirmation" in a)
|
|
5539
|
-
throw
|
|
5566
|
+
throw kt(t, "account-exists-with-different-credential", a);
|
|
5540
5567
|
if (i.ok && !("errorMessage" in a))
|
|
5541
5568
|
return a;
|
|
5542
5569
|
{
|
|
5543
5570
|
const c = i.ok ? a.errorMessage : a.error.message, [l, A] = c.split(" : ");
|
|
5544
5571
|
if (l === "FEDERATED_USER_ID_ALREADY_LINKED")
|
|
5545
|
-
throw
|
|
5572
|
+
throw kt(t, "credential-already-in-use", a);
|
|
5546
5573
|
if (l === "EMAIL_EXISTS")
|
|
5547
|
-
throw
|
|
5574
|
+
throw kt(t, "email-already-in-use", a);
|
|
5548
5575
|
if (l === "USER_DISABLED")
|
|
5549
|
-
throw
|
|
5576
|
+
throw kt(t, "user-disabled", a);
|
|
5550
5577
|
const f = r[l] || l.toLowerCase().replace(/[_\s]+/g, "-");
|
|
5551
5578
|
if (A)
|
|
5552
5579
|
throw Ls(t, f, A);
|
|
@@ -5582,7 +5609,7 @@ class Ou {
|
|
|
5582
5609
|
clearTimeout(this.timer);
|
|
5583
5610
|
}
|
|
5584
5611
|
}
|
|
5585
|
-
function
|
|
5612
|
+
function kt(t, e, n) {
|
|
5586
5613
|
const r = {
|
|
5587
5614
|
appName: t.name
|
|
5588
5615
|
};
|
|
@@ -5662,15 +5689,15 @@ function yn(t) {
|
|
|
5662
5689
|
function Ln(t) {
|
|
5663
5690
|
const [e, n, r] = t.split(".");
|
|
5664
5691
|
if (e === void 0 || n === void 0 || r === void 0)
|
|
5665
|
-
return
|
|
5692
|
+
return Nt("JWT malformed, contained fewer than 3 sections"), null;
|
|
5666
5693
|
try {
|
|
5667
5694
|
const s = ks(n);
|
|
5668
|
-
return s ? JSON.parse(s) : (
|
|
5695
|
+
return s ? JSON.parse(s) : (Nt("Failed to decode base64 JWT payload"), null);
|
|
5669
5696
|
} catch (s) {
|
|
5670
|
-
return
|
|
5697
|
+
return Nt("Caught error parsing JWT payload as JSON", s == null ? void 0 : s.toString()), null;
|
|
5671
5698
|
}
|
|
5672
5699
|
}
|
|
5673
|
-
function
|
|
5700
|
+
function vr(t) {
|
|
5674
5701
|
const e = Ln(t);
|
|
5675
5702
|
return M(
|
|
5676
5703
|
e,
|
|
@@ -5702,7 +5729,7 @@ function wr(t) {
|
|
|
5702
5729
|
* See the License for the specific language governing permissions and
|
|
5703
5730
|
* limitations under the License.
|
|
5704
5731
|
*/
|
|
5705
|
-
async function
|
|
5732
|
+
async function Bt(t, e, n = !1) {
|
|
5706
5733
|
if (n)
|
|
5707
5734
|
return e;
|
|
5708
5735
|
try {
|
|
@@ -5825,9 +5852,9 @@ class Gn {
|
|
|
5825
5852
|
* See the License for the specific language governing permissions and
|
|
5826
5853
|
* limitations under the License.
|
|
5827
5854
|
*/
|
|
5828
|
-
async function
|
|
5855
|
+
async function Lt(t) {
|
|
5829
5856
|
var e;
|
|
5830
|
-
const n = t.auth, r = await t.getIdToken(), s = await
|
|
5857
|
+
const n = t.auth, r = await t.getIdToken(), s = await Bt(t, ei(n, { idToken: r }));
|
|
5831
5858
|
M(
|
|
5832
5859
|
s == null ? void 0 : s.users.length,
|
|
5833
5860
|
n,
|
|
@@ -5852,7 +5879,7 @@ async function Zt(t) {
|
|
|
5852
5879
|
}
|
|
5853
5880
|
async function Vu(t) {
|
|
5854
5881
|
const e = ht(t);
|
|
5855
|
-
await
|
|
5882
|
+
await Lt(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
5856
5883
|
}
|
|
5857
5884
|
function xu(t, e) {
|
|
5858
5885
|
return [...t.filter((r) => !e.some((s) => s.providerId === r.providerId)), ...e];
|
|
@@ -5888,7 +5915,7 @@ function ti(t) {
|
|
|
5888
5915
|
*/
|
|
5889
5916
|
async function Fu(t, e) {
|
|
5890
5917
|
const n = await Js(t, {}, async () => {
|
|
5891
|
-
const r =
|
|
5918
|
+
const r = Ot({
|
|
5892
5919
|
grant_type: "refresh_token",
|
|
5893
5920
|
refresh_token: e
|
|
5894
5921
|
}).slice(1), { tokenApiHost: s, apiKey: i } = t.config, a = $s(t, s, "/v1/token", `key=${i}`), c = await t._getAdditionalHeaders();
|
|
@@ -5947,7 +5974,7 @@ class et {
|
|
|
5947
5974
|
"internal-error"
|
|
5948
5975
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5949
5976
|
);
|
|
5950
|
-
const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) :
|
|
5977
|
+
const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : vr(e.idToken);
|
|
5951
5978
|
this.updateTokensAndExpiration(e.idToken, e.refreshToken, n);
|
|
5952
5979
|
}
|
|
5953
5980
|
updateFromIdToken(e) {
|
|
@@ -5956,7 +5983,7 @@ class et {
|
|
|
5956
5983
|
"internal-error"
|
|
5957
5984
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5958
5985
|
);
|
|
5959
|
-
const n =
|
|
5986
|
+
const n = vr(e);
|
|
5960
5987
|
this.updateTokensAndExpiration(e, null, n);
|
|
5961
5988
|
}
|
|
5962
5989
|
async getToken(e, n = !1) {
|
|
@@ -6029,7 +6056,7 @@ class be {
|
|
|
6029
6056
|
this.providerId = "firebase", this.proactiveRefresh = new Yu(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = n, this.auth = r, this.stsTokenManager = s, this.accessToken = s.accessToken, this.displayName = i.displayName || null, this.email = i.email || null, this.emailVerified = i.emailVerified || !1, this.phoneNumber = i.phoneNumber || null, this.photoURL = i.photoURL || null, this.isAnonymous = i.isAnonymous || !1, this.tenantId = i.tenantId || null, this.providerData = i.providerData ? [...i.providerData] : [], this.metadata = new Gn(i.createdAt || void 0, i.lastLoginAt || void 0);
|
|
6030
6057
|
}
|
|
6031
6058
|
async getIdToken(e) {
|
|
6032
|
-
const n = await
|
|
6059
|
+
const n = await Bt(this, this.stsTokenManager.getToken(this.auth, e));
|
|
6033
6060
|
return M(
|
|
6034
6061
|
n,
|
|
6035
6062
|
this.auth,
|
|
@@ -6074,13 +6101,13 @@ class be {
|
|
|
6074
6101
|
}
|
|
6075
6102
|
async _updateTokensIfNecessary(e, n = !1) {
|
|
6076
6103
|
let r = !1;
|
|
6077
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await
|
|
6104
|
+
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await Lt(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
|
|
6078
6105
|
}
|
|
6079
6106
|
async delete() {
|
|
6080
6107
|
if (pe(this.auth.app))
|
|
6081
6108
|
return Promise.reject(Re(this.auth));
|
|
6082
6109
|
const e = await this.getIdToken();
|
|
6083
|
-
return await
|
|
6110
|
+
return await Bt(this, Tu(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
6084
6111
|
}
|
|
6085
6112
|
toJSON() {
|
|
6086
6113
|
return Object.assign(Object.assign({
|
|
@@ -6108,7 +6135,7 @@ class be {
|
|
|
6108
6135
|
}
|
|
6109
6136
|
static _fromJSON(e, n) {
|
|
6110
6137
|
var r, s, i, a, c, l, A, f;
|
|
6111
|
-
const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0,
|
|
6138
|
+
const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0, w = (i = n.phoneNumber) !== null && i !== void 0 ? i : void 0, P = (a = n.photoURL) !== null && a !== void 0 ? a : void 0, I = (c = n.tenantId) !== null && c !== void 0 ? c : void 0, V = (l = n._redirectEventId) !== null && l !== void 0 ? l : void 0, R = (A = n.createdAt) !== null && A !== void 0 ? A : void 0, Q = (f = n.lastLoginAt) !== null && f !== void 0 ? f : void 0, { uid: Y, emailVerified: v, isAnonymous: H, providerData: U, stsTokenManager: ee } = n;
|
|
6112
6139
|
M(
|
|
6113
6140
|
Y && ee,
|
|
6114
6141
|
e,
|
|
@@ -6122,7 +6149,7 @@ class be {
|
|
|
6122
6149
|
"internal-error"
|
|
6123
6150
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
6124
6151
|
), Ee(p, e.name), Ee(B, e.name), M(
|
|
6125
|
-
typeof
|
|
6152
|
+
typeof v == "boolean",
|
|
6126
6153
|
e,
|
|
6127
6154
|
"internal-error"
|
|
6128
6155
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -6131,16 +6158,16 @@ class be {
|
|
|
6131
6158
|
e,
|
|
6132
6159
|
"internal-error"
|
|
6133
6160
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
6134
|
-
), Ee(
|
|
6161
|
+
), Ee(w, e.name), Ee(P, e.name), Ee(I, e.name), Ee(V, e.name), Ee(R, e.name), Ee(Q, e.name);
|
|
6135
6162
|
const u = new be({
|
|
6136
6163
|
uid: Y,
|
|
6137
6164
|
auth: e,
|
|
6138
6165
|
email: B,
|
|
6139
|
-
emailVerified:
|
|
6166
|
+
emailVerified: v,
|
|
6140
6167
|
displayName: p,
|
|
6141
6168
|
isAnonymous: H,
|
|
6142
6169
|
photoURL: P,
|
|
6143
|
-
phoneNumber:
|
|
6170
|
+
phoneNumber: w,
|
|
6144
6171
|
tenantId: I,
|
|
6145
6172
|
stsTokenManager: q,
|
|
6146
6173
|
createdAt: R,
|
|
@@ -6162,7 +6189,7 @@ class be {
|
|
|
6162
6189
|
stsTokenManager: s,
|
|
6163
6190
|
isAnonymous: r
|
|
6164
6191
|
});
|
|
6165
|
-
return await
|
|
6192
|
+
return await Lt(i), i;
|
|
6166
6193
|
}
|
|
6167
6194
|
/**
|
|
6168
6195
|
* Initialize a User from an idToken server response
|
|
@@ -6214,11 +6241,11 @@ class be {
|
|
|
6214
6241
|
* See the License for the specific language governing permissions and
|
|
6215
6242
|
* limitations under the License.
|
|
6216
6243
|
*/
|
|
6217
|
-
const
|
|
6218
|
-
function
|
|
6244
|
+
const wr = /* @__PURE__ */ new Map();
|
|
6245
|
+
function ve(t) {
|
|
6219
6246
|
De(t instanceof Function, "Expected a class definition");
|
|
6220
|
-
let e =
|
|
6221
|
-
return e ? (De(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(),
|
|
6247
|
+
let e = wr.get(t);
|
|
6248
|
+
return e ? (De(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(), wr.set(t, e), e);
|
|
6222
6249
|
}
|
|
6223
6250
|
/**
|
|
6224
6251
|
* @license
|
|
@@ -6276,14 +6303,14 @@ const Br = ni;
|
|
|
6276
6303
|
* See the License for the specific language governing permissions and
|
|
6277
6304
|
* limitations under the License.
|
|
6278
6305
|
*/
|
|
6279
|
-
function
|
|
6306
|
+
function Ht(t, e, n) {
|
|
6280
6307
|
return `firebase:${t}:${e}:${n}`;
|
|
6281
6308
|
}
|
|
6282
6309
|
class tt {
|
|
6283
6310
|
constructor(e, n, r) {
|
|
6284
6311
|
this.persistence = e, this.auth = n, this.userKey = r;
|
|
6285
6312
|
const { config: s, name: i } = this.auth;
|
|
6286
|
-
this.fullUserKey =
|
|
6313
|
+
this.fullUserKey = Ht(this.userKey, s.apiKey, i), this.fullPersistenceKey = Ht("persistence", s.apiKey, i), this.boundEventHandler = n._onStorageEvent.bind(n), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
|
|
6287
6314
|
}
|
|
6288
6315
|
setCurrentUser(e) {
|
|
6289
6316
|
return this.persistence._set(this.fullUserKey, e.toJSON());
|
|
@@ -6310,13 +6337,13 @@ class tt {
|
|
|
6310
6337
|
}
|
|
6311
6338
|
static async create(e, n, r = "authUser") {
|
|
6312
6339
|
if (!n.length)
|
|
6313
|
-
return new tt(
|
|
6340
|
+
return new tt(ve(Br), e, r);
|
|
6314
6341
|
const s = (await Promise.all(n.map(async (A) => {
|
|
6315
6342
|
if (await A._isAvailable())
|
|
6316
6343
|
return A;
|
|
6317
6344
|
}))).filter((A) => A);
|
|
6318
|
-
let i = s[0] ||
|
|
6319
|
-
const a =
|
|
6345
|
+
let i = s[0] || ve(Br);
|
|
6346
|
+
const a = Ht(r, e.config.apiKey, e.name);
|
|
6320
6347
|
let c = null;
|
|
6321
6348
|
for (const A of n)
|
|
6322
6349
|
try {
|
|
@@ -6449,7 +6476,7 @@ function Ai(t, e = []) {
|
|
|
6449
6476
|
n = t;
|
|
6450
6477
|
}
|
|
6451
6478
|
const r = e.length ? e.join(",") : "FirebaseCore-web";
|
|
6452
|
-
return `${n}/JsCore/${
|
|
6479
|
+
return `${n}/JsCore/${Tt}/${r}`;
|
|
6453
6480
|
}
|
|
6454
6481
|
/**
|
|
6455
6482
|
* @license
|
|
@@ -6634,7 +6661,7 @@ class Su {
|
|
|
6634
6661
|
this.app = e, this.heartbeatServiceProvider = n, this.appCheckServiceProvider = r, this.config = s, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new Cr(this), this.idTokenSubscription = new Cr(this), this.beforeStateQueue = new Nu(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = Zs, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = s.sdkClientVersion;
|
|
6635
6662
|
}
|
|
6636
6663
|
_initializeWithPersistence(e, n) {
|
|
6637
|
-
return n && (this._popupRedirectResolver =
|
|
6664
|
+
return n && (this._popupRedirectResolver = ve(n)), this._initializationPromise = this.queue(async () => {
|
|
6638
6665
|
var r, s;
|
|
6639
6666
|
if (!this._deleted && (this.persistenceManager = await tt.create(this, e), !this._deleted)) {
|
|
6640
6667
|
if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
|
|
@@ -6717,7 +6744,7 @@ class Su {
|
|
|
6717
6744
|
}
|
|
6718
6745
|
async reloadAndSetCurrentUserOrClear(e) {
|
|
6719
6746
|
try {
|
|
6720
|
-
await
|
|
6747
|
+
await Lt(e);
|
|
6721
6748
|
} catch (n) {
|
|
6722
6749
|
if ((n == null ? void 0 : n.code) !== "auth/network-request-failed")
|
|
6723
6750
|
return this.directlySetCurrentUser(null);
|
|
@@ -6761,7 +6788,7 @@ class Su {
|
|
|
6761
6788
|
}
|
|
6762
6789
|
setPersistence(e) {
|
|
6763
6790
|
return pe(this.app) ? Promise.reject(Re(this)) : this.queue(async () => {
|
|
6764
|
-
await this.assertedPersistence.setPersistence(
|
|
6791
|
+
await this.assertedPersistence.setPersistence(ve(e));
|
|
6765
6792
|
});
|
|
6766
6793
|
}
|
|
6767
6794
|
_getRecaptchaConfig() {
|
|
@@ -6783,7 +6810,7 @@ class Su {
|
|
|
6783
6810
|
return this.assertedPersistence.persistence.type;
|
|
6784
6811
|
}
|
|
6785
6812
|
_updateErrorMap(e) {
|
|
6786
|
-
this._errorFactory = new
|
|
6813
|
+
this._errorFactory = new Pt("auth", "Firebase", e());
|
|
6787
6814
|
}
|
|
6788
6815
|
onAuthStateChanged(e, n, r) {
|
|
6789
6816
|
return this.registerStateListener(this.authStateSubscription, e, n, r);
|
|
@@ -6834,7 +6861,7 @@ class Su {
|
|
|
6834
6861
|
}
|
|
6835
6862
|
async getOrInitRedirectPersistenceManager(e) {
|
|
6836
6863
|
if (!this.redirectPersistenceManager) {
|
|
6837
|
-
const n = e &&
|
|
6864
|
+
const n = e && ve(e) || this._popupRedirectResolver;
|
|
6838
6865
|
M(
|
|
6839
6866
|
n,
|
|
6840
6867
|
this,
|
|
@@ -6842,7 +6869,7 @@ class Su {
|
|
|
6842
6869
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
6843
6870
|
), this.redirectPersistenceManager = await tt.create(
|
|
6844
6871
|
this,
|
|
6845
|
-
[
|
|
6872
|
+
[ve(n._redirectPersistence)],
|
|
6846
6873
|
"redirectUser"
|
|
6847
6874
|
/* KeyName.REDIRECT_USER */
|
|
6848
6875
|
), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
|
|
@@ -7034,7 +7061,7 @@ function Lu(t, e) {
|
|
|
7034
7061
|
const n = Xs(t, "auth");
|
|
7035
7062
|
if (n.isInitialized()) {
|
|
7036
7063
|
const s = n.getImmediate(), i = n.getOptions();
|
|
7037
|
-
if (
|
|
7064
|
+
if (Wt(i, e ?? {}))
|
|
7038
7065
|
return s;
|
|
7039
7066
|
Be(
|
|
7040
7067
|
s,
|
|
@@ -7045,7 +7072,7 @@ function Lu(t, e) {
|
|
|
7045
7072
|
return n.initialize({ options: e });
|
|
7046
7073
|
}
|
|
7047
7074
|
function Ku(t, e) {
|
|
7048
|
-
const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(
|
|
7075
|
+
const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(ve);
|
|
7049
7076
|
e != null && e.errorMap && t._updateErrorMap(e.errorMap), t._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
|
7050
7077
|
}
|
|
7051
7078
|
function Ju(t, e, n) {
|
|
@@ -7241,7 +7268,7 @@ class Ze extends hi {
|
|
|
7241
7268
|
e.pendingToken = this.pendingToken;
|
|
7242
7269
|
else {
|
|
7243
7270
|
const n = {};
|
|
7244
|
-
this.idToken && (n.id_token = this.idToken), this.accessToken && (n.access_token = this.accessToken), this.secret && (n.oauth_token_secret = this.secret), n.providerId = this.providerId, this.nonce && !this.pendingToken && (n.nonce = this.nonce), e.postBody =
|
|
7271
|
+
this.idToken && (n.id_token = this.idToken), this.accessToken && (n.access_token = this.accessToken), this.secret && (n.oauth_token_secret = this.secret), n.providerId = this.providerId, this.nonce && !this.pendingToken && (n.nonce = this.nonce), e.postBody = Ot(n);
|
|
7245
7272
|
}
|
|
7246
7273
|
return e;
|
|
7247
7274
|
}
|
|
@@ -7315,7 +7342,7 @@ class mi {
|
|
|
7315
7342
|
* See the License for the specific language governing permissions and
|
|
7316
7343
|
* limitations under the License.
|
|
7317
7344
|
*/
|
|
7318
|
-
class
|
|
7345
|
+
class jt extends mi {
|
|
7319
7346
|
constructor() {
|
|
7320
7347
|
super(...arguments), this.scopes = [];
|
|
7321
7348
|
}
|
|
@@ -7350,7 +7377,7 @@ class Gt extends mi {
|
|
|
7350
7377
|
* See the License for the specific language governing permissions and
|
|
7351
7378
|
* limitations under the License.
|
|
7352
7379
|
*/
|
|
7353
|
-
class Ie extends
|
|
7380
|
+
class Ie extends jt {
|
|
7354
7381
|
constructor() {
|
|
7355
7382
|
super(
|
|
7356
7383
|
"facebook.com"
|
|
@@ -7421,7 +7448,7 @@ Ie.PROVIDER_ID = "facebook.com";
|
|
|
7421
7448
|
* See the License for the specific language governing permissions and
|
|
7422
7449
|
* limitations under the License.
|
|
7423
7450
|
*/
|
|
7424
|
-
class Pe extends
|
|
7451
|
+
class Pe extends jt {
|
|
7425
7452
|
constructor() {
|
|
7426
7453
|
super(
|
|
7427
7454
|
"google.com"
|
|
@@ -7497,7 +7524,7 @@ Pe.PROVIDER_ID = "google.com";
|
|
|
7497
7524
|
* See the License for the specific language governing permissions and
|
|
7498
7525
|
* limitations under the License.
|
|
7499
7526
|
*/
|
|
7500
|
-
class Oe extends
|
|
7527
|
+
class Oe extends jt {
|
|
7501
7528
|
constructor() {
|
|
7502
7529
|
super(
|
|
7503
7530
|
"github.com"
|
|
@@ -7561,7 +7588,7 @@ Oe.PROVIDER_ID = "github.com";
|
|
|
7561
7588
|
* See the License for the specific language governing permissions and
|
|
7562
7589
|
* limitations under the License.
|
|
7563
7590
|
*/
|
|
7564
|
-
class Te extends
|
|
7591
|
+
class Te extends jt {
|
|
7565
7592
|
constructor() {
|
|
7566
7593
|
super(
|
|
7567
7594
|
"twitter.com"
|
|
@@ -7677,10 +7704,10 @@ function Mr(t) {
|
|
|
7677
7704
|
* See the License for the specific language governing permissions and
|
|
7678
7705
|
* limitations under the License.
|
|
7679
7706
|
*/
|
|
7680
|
-
class
|
|
7707
|
+
class Kt extends qe {
|
|
7681
7708
|
constructor(e, n, r, s) {
|
|
7682
7709
|
var i;
|
|
7683
|
-
super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this,
|
|
7710
|
+
super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this, Kt.prototype), this.customData = {
|
|
7684
7711
|
appName: e.name,
|
|
7685
7712
|
tenantId: (i = e.tenantId) !== null && i !== void 0 ? i : void 0,
|
|
7686
7713
|
_serverResponse: n.customData._serverResponse,
|
|
@@ -7688,16 +7715,16 @@ class Lt extends qe {
|
|
|
7688
7715
|
};
|
|
7689
7716
|
}
|
|
7690
7717
|
static _fromErrorAndOperation(e, n, r, s) {
|
|
7691
|
-
return new
|
|
7718
|
+
return new Kt(e, n, r, s);
|
|
7692
7719
|
}
|
|
7693
7720
|
}
|
|
7694
7721
|
function fi(t, e, n, r) {
|
|
7695
7722
|
return (e === "reauthenticate" ? n._getReauthenticationResolver(t) : n._getIdTokenResponse(t)).catch((i) => {
|
|
7696
|
-
throw i.code === "auth/multi-factor-auth-required" ?
|
|
7723
|
+
throw i.code === "auth/multi-factor-auth-required" ? Kt._fromErrorAndOperation(t, i, e, r) : i;
|
|
7697
7724
|
});
|
|
7698
7725
|
}
|
|
7699
7726
|
async function tl(t, e, n = !1) {
|
|
7700
|
-
const r = await
|
|
7727
|
+
const r = await Bt(t, e._linkToIdToken(t.auth, await t.getIdToken()), n);
|
|
7701
7728
|
return Le._forOperation(t, "link", r);
|
|
7702
7729
|
}
|
|
7703
7730
|
/**
|
|
@@ -7722,7 +7749,7 @@ async function nl(t, e, n = !1) {
|
|
|
7722
7749
|
return Promise.reject(Re(r));
|
|
7723
7750
|
const s = "reauthenticate";
|
|
7724
7751
|
try {
|
|
7725
|
-
const i = await
|
|
7752
|
+
const i = await Bt(t, fi(r, s, e, t), n);
|
|
7726
7753
|
M(
|
|
7727
7754
|
i.idToken,
|
|
7728
7755
|
r,
|
|
@@ -7823,7 +7850,7 @@ function al(t, e, n, r) {
|
|
|
7823
7850
|
function ol(t, e, n) {
|
|
7824
7851
|
return ht(t).beforeAuthStateChanged(e, n);
|
|
7825
7852
|
}
|
|
7826
|
-
const
|
|
7853
|
+
const Jt = "__sak";
|
|
7827
7854
|
/**
|
|
7828
7855
|
* @license
|
|
7829
7856
|
* Copyright 2019 Google LLC
|
|
@@ -7846,7 +7873,7 @@ class gi {
|
|
|
7846
7873
|
}
|
|
7847
7874
|
_isAvailable() {
|
|
7848
7875
|
try {
|
|
7849
|
-
return this.storage ? (this.storage.setItem(
|
|
7876
|
+
return this.storage ? (this.storage.setItem(Jt, "1"), this.storage.removeItem(Jt), Promise.resolve(!0)) : Promise.resolve(!1);
|
|
7850
7877
|
} catch {
|
|
7851
7878
|
return Promise.resolve(!1);
|
|
7852
7879
|
}
|
|
@@ -8266,7 +8293,7 @@ function hl(t) {
|
|
|
8266
8293
|
* See the License for the specific language governing permissions and
|
|
8267
8294
|
* limitations under the License.
|
|
8268
8295
|
*/
|
|
8269
|
-
function
|
|
8296
|
+
function vi() {
|
|
8270
8297
|
return typeof de().WorkerGlobalScope < "u" && typeof de().importScripts == "function";
|
|
8271
8298
|
}
|
|
8272
8299
|
async function ml() {
|
|
@@ -8283,7 +8310,7 @@ function fl() {
|
|
|
8283
8310
|
return ((t = navigator == null ? void 0 : navigator.serviceWorker) === null || t === void 0 ? void 0 : t.controller) || null;
|
|
8284
8311
|
}
|
|
8285
8312
|
function gl() {
|
|
8286
|
-
return
|
|
8313
|
+
return vi() ? self : null;
|
|
8287
8314
|
}
|
|
8288
8315
|
/**
|
|
8289
8316
|
* @license
|
|
@@ -8301,8 +8328,8 @@ function gl() {
|
|
|
8301
8328
|
* See the License for the specific language governing permissions and
|
|
8302
8329
|
* limitations under the License.
|
|
8303
8330
|
*/
|
|
8304
|
-
const
|
|
8305
|
-
class
|
|
8331
|
+
const wi = "firebaseLocalStorageDb", pl = 1, _t = "firebaseLocalStorage", Bi = "fbase_key";
|
|
8332
|
+
class Yt {
|
|
8306
8333
|
constructor(e) {
|
|
8307
8334
|
this.request = e;
|
|
8308
8335
|
}
|
|
@@ -8317,27 +8344,27 @@ class jt {
|
|
|
8317
8344
|
}
|
|
8318
8345
|
}
|
|
8319
8346
|
function cn(t, e) {
|
|
8320
|
-
return t.transaction([
|
|
8347
|
+
return t.transaction([_t], e ? "readwrite" : "readonly").objectStore(_t);
|
|
8321
8348
|
}
|
|
8322
8349
|
function yl() {
|
|
8323
|
-
const t = indexedDB.deleteDatabase(
|
|
8324
|
-
return new
|
|
8350
|
+
const t = indexedDB.deleteDatabase(wi);
|
|
8351
|
+
return new Yt(t).toPromise();
|
|
8325
8352
|
}
|
|
8326
8353
|
function jn() {
|
|
8327
|
-
const t = indexedDB.open(
|
|
8354
|
+
const t = indexedDB.open(wi, pl);
|
|
8328
8355
|
return new Promise((e, n) => {
|
|
8329
8356
|
t.addEventListener("error", () => {
|
|
8330
8357
|
n(t.error);
|
|
8331
8358
|
}), t.addEventListener("upgradeneeded", () => {
|
|
8332
8359
|
const r = t.result;
|
|
8333
8360
|
try {
|
|
8334
|
-
r.createObjectStore(
|
|
8361
|
+
r.createObjectStore(_t, { keyPath: Bi });
|
|
8335
8362
|
} catch (s) {
|
|
8336
8363
|
n(s);
|
|
8337
8364
|
}
|
|
8338
8365
|
}), t.addEventListener("success", async () => {
|
|
8339
8366
|
const r = t.result;
|
|
8340
|
-
r.objectStoreNames.contains(
|
|
8367
|
+
r.objectStoreNames.contains(_t) ? e(r) : (r.close(), await yl(), e(await jn()));
|
|
8341
8368
|
});
|
|
8342
8369
|
});
|
|
8343
8370
|
}
|
|
@@ -8346,17 +8373,17 @@ async function Ir(t, e, n) {
|
|
|
8346
8373
|
[Bi]: e,
|
|
8347
8374
|
value: n
|
|
8348
8375
|
});
|
|
8349
|
-
return new
|
|
8376
|
+
return new Yt(r).toPromise();
|
|
8350
8377
|
}
|
|
8351
8378
|
async function bl(t, e) {
|
|
8352
|
-
const n = cn(t, !1).get(e), r = await new
|
|
8379
|
+
const n = cn(t, !1).get(e), r = await new Yt(n).toPromise();
|
|
8353
8380
|
return r === void 0 ? null : r.value;
|
|
8354
8381
|
}
|
|
8355
8382
|
function Pr(t, e) {
|
|
8356
8383
|
const n = cn(t, !0).delete(e);
|
|
8357
|
-
return new
|
|
8384
|
+
return new Yt(n).toPromise();
|
|
8358
8385
|
}
|
|
8359
|
-
const
|
|
8386
|
+
const vl = 800, wl = 3;
|
|
8360
8387
|
class Di {
|
|
8361
8388
|
constructor() {
|
|
8362
8389
|
this.type = "LOCAL", this._shouldAllowMigration = !0, this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.pendingWrites = 0, this.receiver = null, this.sender = null, this.serviceWorkerReceiverAvailable = !1, this.activeServiceWorker = null, this._workerInitializationPromise = this.initializeServiceWorkerMessaging().then(() => {
|
|
@@ -8373,7 +8400,7 @@ class Di {
|
|
|
8373
8400
|
const r = await this._openDb();
|
|
8374
8401
|
return await e(r);
|
|
8375
8402
|
} catch (r) {
|
|
8376
|
-
if (n++ >
|
|
8403
|
+
if (n++ > wl)
|
|
8377
8404
|
throw r;
|
|
8378
8405
|
this.db && (this.db.close(), this.db = void 0);
|
|
8379
8406
|
}
|
|
@@ -8383,7 +8410,7 @@ class Di {
|
|
|
8383
8410
|
* postMessage interface to send these events to the worker ourselves.
|
|
8384
8411
|
*/
|
|
8385
8412
|
async initializeServiceWorkerMessaging() {
|
|
8386
|
-
return
|
|
8413
|
+
return vi() ? this.initializeReceiver() : this.initializeSender();
|
|
8387
8414
|
}
|
|
8388
8415
|
/**
|
|
8389
8416
|
* As the worker we should listen to events from the main window.
|
|
@@ -8446,7 +8473,7 @@ class Di {
|
|
|
8446
8473
|
if (!indexedDB)
|
|
8447
8474
|
return !1;
|
|
8448
8475
|
const e = await jn();
|
|
8449
|
-
return await Ir(e,
|
|
8476
|
+
return await Ir(e, Jt, "1"), await Pr(e, Jt), !0;
|
|
8450
8477
|
} catch {
|
|
8451
8478
|
}
|
|
8452
8479
|
return !1;
|
|
@@ -8472,7 +8499,7 @@ class Di {
|
|
|
8472
8499
|
async _poll() {
|
|
8473
8500
|
const e = await this._withRetries((s) => {
|
|
8474
8501
|
const i = cn(s, !1).getAll();
|
|
8475
|
-
return new
|
|
8502
|
+
return new Yt(i).toPromise();
|
|
8476
8503
|
});
|
|
8477
8504
|
if (!e)
|
|
8478
8505
|
return [];
|
|
@@ -8494,7 +8521,7 @@ class Di {
|
|
|
8494
8521
|
s(n);
|
|
8495
8522
|
}
|
|
8496
8523
|
startPolling() {
|
|
8497
|
-
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(),
|
|
8524
|
+
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), vl);
|
|
8498
8525
|
}
|
|
8499
8526
|
stopPolling() {
|
|
8500
8527
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
|
@@ -8508,7 +8535,7 @@ class Di {
|
|
|
8508
8535
|
}
|
|
8509
8536
|
Di.type = "LOCAL";
|
|
8510
8537
|
const Bl = Di;
|
|
8511
|
-
new
|
|
8538
|
+
new Gt(3e4, 6e4);
|
|
8512
8539
|
/**
|
|
8513
8540
|
* @license
|
|
8514
8541
|
* Copyright 2021 Google LLC
|
|
@@ -8526,7 +8553,7 @@ new Tt(3e4, 6e4);
|
|
|
8526
8553
|
* limitations under the License.
|
|
8527
8554
|
*/
|
|
8528
8555
|
function Dl(t, e) {
|
|
8529
|
-
return e ?
|
|
8556
|
+
return e ? ve(e) : (M(
|
|
8530
8557
|
t._popupRedirectResolver,
|
|
8531
8558
|
t,
|
|
8532
8559
|
"argument-error"
|
|
@@ -8699,7 +8726,7 @@ class Ci {
|
|
|
8699
8726
|
* See the License for the specific language governing permissions and
|
|
8700
8727
|
* limitations under the License.
|
|
8701
8728
|
*/
|
|
8702
|
-
const Il = new
|
|
8729
|
+
const Il = new Gt(2e3, 1e4);
|
|
8703
8730
|
class _e extends Ci {
|
|
8704
8731
|
constructor(e, n, r, s, i) {
|
|
8705
8732
|
super(e, n, s, i), this.provider = r, this.authWindow = null, this.pollId = null, _e.currentPopupAction && _e.currentPopupAction.cancel(), _e.currentPopupAction = this;
|
|
@@ -8785,7 +8812,7 @@ _e.currentPopupAction = null;
|
|
|
8785
8812
|
* See the License for the specific language governing permissions and
|
|
8786
8813
|
* limitations under the License.
|
|
8787
8814
|
*/
|
|
8788
|
-
const Pl = "pendingRedirect",
|
|
8815
|
+
const Pl = "pendingRedirect", Qt = /* @__PURE__ */ new Map();
|
|
8789
8816
|
class Ol extends Ci {
|
|
8790
8817
|
constructor(e, n, r = !1) {
|
|
8791
8818
|
super(e, [
|
|
@@ -8801,7 +8828,7 @@ class Ol extends Ci {
|
|
|
8801
8828
|
* just return it.
|
|
8802
8829
|
*/
|
|
8803
8830
|
async execute() {
|
|
8804
|
-
let e =
|
|
8831
|
+
let e = Qt.get(this.auth._key());
|
|
8805
8832
|
if (!e) {
|
|
8806
8833
|
try {
|
|
8807
8834
|
const r = await Tl(this.resolver, this.auth) ? await super.execute() : null;
|
|
@@ -8809,9 +8836,9 @@ class Ol extends Ci {
|
|
|
8809
8836
|
} catch (n) {
|
|
8810
8837
|
e = () => Promise.reject(n);
|
|
8811
8838
|
}
|
|
8812
|
-
|
|
8839
|
+
Qt.set(this.auth._key(), e);
|
|
8813
8840
|
}
|
|
8814
|
-
return this.bypassAuthState ||
|
|
8841
|
+
return this.bypassAuthState || Qt.set(this.auth._key(), () => Promise.resolve(null)), e();
|
|
8815
8842
|
}
|
|
8816
8843
|
async onAuthEvent(e) {
|
|
8817
8844
|
if (e.type === "signInViaRedirect")
|
|
@@ -8840,13 +8867,13 @@ async function Tl(t, e) {
|
|
|
8840
8867
|
return await r._remove(n), s;
|
|
8841
8868
|
}
|
|
8842
8869
|
function Gl(t, e) {
|
|
8843
|
-
|
|
8870
|
+
Qt.set(t._key(), e);
|
|
8844
8871
|
}
|
|
8845
8872
|
function jl(t) {
|
|
8846
|
-
return
|
|
8873
|
+
return ve(t._redirectPersistence);
|
|
8847
8874
|
}
|
|
8848
8875
|
function Yl(t) {
|
|
8849
|
-
return
|
|
8876
|
+
return Ht(Pl, t.config.apiKey, t.name);
|
|
8850
8877
|
}
|
|
8851
8878
|
async function Vl(t, e, n = !1) {
|
|
8852
8879
|
if (pe(t.app))
|
|
@@ -9007,7 +9034,7 @@ function Ql(t) {
|
|
|
9007
9034
|
* See the License for the specific language governing permissions and
|
|
9008
9035
|
* limitations under the License.
|
|
9009
9036
|
*/
|
|
9010
|
-
const Xl = new
|
|
9037
|
+
const Xl = new Gt(3e4, 6e4);
|
|
9011
9038
|
function Tr() {
|
|
9012
9039
|
const t = de().___jsl;
|
|
9013
9040
|
if (t != null && t.H) {
|
|
@@ -9050,12 +9077,12 @@ function Sl(t) {
|
|
|
9050
9077
|
}, Wu(`${zu()}?onload=${c}`).catch((l) => n(l));
|
|
9051
9078
|
}
|
|
9052
9079
|
}).catch((e) => {
|
|
9053
|
-
throw
|
|
9080
|
+
throw Xt = null, e;
|
|
9054
9081
|
});
|
|
9055
9082
|
}
|
|
9056
|
-
let
|
|
9083
|
+
let Xt = null;
|
|
9057
9084
|
function Ul(t) {
|
|
9058
|
-
return
|
|
9085
|
+
return Xt = Xt || Sl(t), Xt;
|
|
9059
9086
|
}
|
|
9060
9087
|
/**
|
|
9061
9088
|
* @license
|
|
@@ -9073,7 +9100,7 @@ function Ul(t) {
|
|
|
9073
9100
|
* See the License for the specific language governing permissions and
|
|
9074
9101
|
* limitations under the License.
|
|
9075
9102
|
*/
|
|
9076
|
-
const Wl = new
|
|
9103
|
+
const Wl = new Gt(5e3, 15e3), zl = "__/auth/iframe", Zl = "emulator/auth/iframe", Ll = {
|
|
9077
9104
|
style: {
|
|
9078
9105
|
position: "absolute",
|
|
9079
9106
|
top: "-100px",
|
|
@@ -9099,11 +9126,11 @@ function Jl(t) {
|
|
|
9099
9126
|
const n = e.emulator ? Zn(e, Zl) : `https://${t.config.authDomain}/${zl}`, r = {
|
|
9100
9127
|
apiKey: e.apiKey,
|
|
9101
9128
|
appName: t.name,
|
|
9102
|
-
v:
|
|
9129
|
+
v: Tt
|
|
9103
9130
|
}, s = Kl.get(t.config.apiHost);
|
|
9104
9131
|
s && (r.eid = s);
|
|
9105
9132
|
const i = t._getFrameworks();
|
|
9106
|
-
return i.length && (r.fw = i.join(",")), `${n}?${
|
|
9133
|
+
return i.length && (r.fw = i.join(",")), `${n}?${Ot(r).slice(1)}`;
|
|
9107
9134
|
}
|
|
9108
9135
|
async function _l(t) {
|
|
9109
9136
|
const e = await Ul(t), n = de().gapi;
|
|
@@ -9182,7 +9209,7 @@ function sA(t, e, n, r = eA, s = tA) {
|
|
|
9182
9209
|
left: a
|
|
9183
9210
|
}), A = K().toLowerCase();
|
|
9184
9211
|
n && (c = ii(A) ? nA : n), ri(A) && (e = e || rA, l.scrollbars = "yes");
|
|
9185
|
-
const f = Object.entries(l).reduce((B, [
|
|
9212
|
+
const f = Object.entries(l).reduce((B, [w, P]) => `${B}${w}=${P},`, "");
|
|
9186
9213
|
if (Ru(A) && c !== "_self")
|
|
9187
9214
|
return iA(e || "", c), new Gr(null);
|
|
9188
9215
|
const p = window.open(e || "", c, f);
|
|
@@ -9238,7 +9265,7 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9238
9265
|
appName: t.name,
|
|
9239
9266
|
authType: n,
|
|
9240
9267
|
redirectUrl: r,
|
|
9241
|
-
v:
|
|
9268
|
+
v: Tt,
|
|
9242
9269
|
eventId: s
|
|
9243
9270
|
};
|
|
9244
9271
|
if (e instanceof mi) {
|
|
@@ -9246,7 +9273,7 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9246
9273
|
for (const [f, p] of Object.entries({}))
|
|
9247
9274
|
a[f] = p;
|
|
9248
9275
|
}
|
|
9249
|
-
if (e instanceof
|
|
9276
|
+
if (e instanceof jt) {
|
|
9250
9277
|
const f = e.getScopes().filter((p) => p !== "");
|
|
9251
9278
|
f.length > 0 && (a.scopes = f.join(","));
|
|
9252
9279
|
}
|
|
@@ -9255,7 +9282,7 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9255
9282
|
for (const f of Object.keys(c))
|
|
9256
9283
|
c[f] === void 0 && delete c[f];
|
|
9257
9284
|
const l = await t._getAppCheckToken(), A = l ? `#${cA}=${encodeURIComponent(l)}` : "";
|
|
9258
|
-
return `${uA(t)}?${
|
|
9285
|
+
return `${uA(t)}?${Ot(c).slice(1)}${A}`;
|
|
9259
9286
|
}
|
|
9260
9287
|
function uA({ config: t }) {
|
|
9261
9288
|
return t.emulator ? Zn(t, oA) : `https://${t.authDomain}/${aA}`;
|
|
@@ -9423,7 +9450,7 @@ function hA(t) {
|
|
|
9423
9450
|
}
|
|
9424
9451
|
}
|
|
9425
9452
|
function mA(t) {
|
|
9426
|
-
|
|
9453
|
+
vt(new dt(
|
|
9427
9454
|
"auth",
|
|
9428
9455
|
(e, { options: n }) => {
|
|
9429
9456
|
const r = e.getProvider("app").getImmediate(), s = e.getProvider("heartbeat"), i = e.getProvider("app-check-internal"), { apiKey: a, authDomain: c } = r.options;
|
|
@@ -9449,7 +9476,7 @@ function mA(t) {
|
|
|
9449
9476
|
"auth-internal"
|
|
9450
9477
|
/* _ComponentName.AUTH_INTERNAL */
|
|
9451
9478
|
).initialize();
|
|
9452
|
-
})),
|
|
9479
|
+
})), vt(new dt(
|
|
9453
9480
|
"auth-internal",
|
|
9454
9481
|
(e) => {
|
|
9455
9482
|
const n = an(e.getProvider(
|
|
@@ -9558,7 +9585,7 @@ var un = class {
|
|
|
9558
9585
|
}
|
|
9559
9586
|
onUnsubscribe() {
|
|
9560
9587
|
}
|
|
9561
|
-
}, He, Ge, rt, Xr,
|
|
9588
|
+
}, He, Ge, rt, Xr, vA = (Xr = class extends un {
|
|
9562
9589
|
constructor() {
|
|
9563
9590
|
super();
|
|
9564
9591
|
G(this, He);
|
|
@@ -9599,7 +9626,7 @@ var un = class {
|
|
|
9599
9626
|
var e;
|
|
9600
9627
|
return typeof h(this, He) == "boolean" ? h(this, He) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
|
|
9601
9628
|
}
|
|
9602
|
-
}, He = new WeakMap(), Ge = new WeakMap(), rt = new WeakMap(), Xr), Mi = new
|
|
9629
|
+
}, He = new WeakMap(), Ge = new WeakMap(), rt = new WeakMap(), Xr), Mi = new vA(), wA = {
|
|
9603
9630
|
// We need the wrapper function syntax below instead of direct references to
|
|
9604
9631
|
// global setTimeout etc.
|
|
9605
9632
|
//
|
|
@@ -9623,7 +9650,7 @@ var un = class {
|
|
|
9623
9650
|
//
|
|
9624
9651
|
// We settle for type safety for the TimeoutProvider type, and accept that
|
|
9625
9652
|
// this class is unsafe internally to allow for extension.
|
|
9626
|
-
G(this, oe,
|
|
9653
|
+
G(this, oe, wA);
|
|
9627
9654
|
G(this, Qe, !1);
|
|
9628
9655
|
}
|
|
9629
9656
|
setTimeoutProvider(t) {
|
|
@@ -9679,7 +9706,7 @@ function Fr(t, e) {
|
|
|
9679
9706
|
if (r) {
|
|
9680
9707
|
if (e.queryHash !== er(a, e.options))
|
|
9681
9708
|
return !1;
|
|
9682
|
-
} else if (!
|
|
9709
|
+
} else if (!Ct(e.queryKey, a))
|
|
9683
9710
|
return !1;
|
|
9684
9711
|
}
|
|
9685
9712
|
if (n !== "all") {
|
|
@@ -9695,24 +9722,24 @@ function kr(t, e) {
|
|
|
9695
9722
|
if (!e.options.mutationKey)
|
|
9696
9723
|
return !1;
|
|
9697
9724
|
if (n) {
|
|
9698
|
-
if (
|
|
9725
|
+
if (Dt(e.options.mutationKey) !== Dt(i))
|
|
9699
9726
|
return !1;
|
|
9700
|
-
} else if (!
|
|
9727
|
+
} else if (!Ct(e.options.mutationKey, i))
|
|
9701
9728
|
return !1;
|
|
9702
9729
|
}
|
|
9703
9730
|
return !(r && e.state.status !== r || s && !s(e));
|
|
9704
9731
|
}
|
|
9705
9732
|
function er(t, e) {
|
|
9706
|
-
return ((e == null ? void 0 : e.queryKeyHashFn) ||
|
|
9733
|
+
return ((e == null ? void 0 : e.queryKeyHashFn) || Dt)(t);
|
|
9707
9734
|
}
|
|
9708
|
-
function
|
|
9735
|
+
function Dt(t) {
|
|
9709
9736
|
return JSON.stringify(
|
|
9710
9737
|
t,
|
|
9711
9738
|
(e, n) => Fn(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
|
|
9712
9739
|
);
|
|
9713
9740
|
}
|
|
9714
|
-
function
|
|
9715
|
-
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((n) =>
|
|
9741
|
+
function Ct(t, e) {
|
|
9742
|
+
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((n) => Ct(t[n], e[n])) : !1;
|
|
9716
9743
|
}
|
|
9717
9744
|
var OA = Object.prototype.hasOwnProperty;
|
|
9718
9745
|
function xn(t, e, n = 0) {
|
|
@@ -9724,16 +9751,16 @@ function xn(t, e, n = 0) {
|
|
|
9724
9751
|
const i = (r ? t : Object.keys(t)).length, a = r ? e : Object.keys(e), c = a.length, l = r ? new Array(c) : {};
|
|
9725
9752
|
let A = 0;
|
|
9726
9753
|
for (let f = 0; f < c; f++) {
|
|
9727
|
-
const p = r ? f : a[f], B = t[p],
|
|
9728
|
-
if (B ===
|
|
9754
|
+
const p = r ? f : a[f], B = t[p], w = e[p];
|
|
9755
|
+
if (B === w) {
|
|
9729
9756
|
l[p] = B, (r ? f < i : OA.call(t, p)) && A++;
|
|
9730
9757
|
continue;
|
|
9731
9758
|
}
|
|
9732
|
-
if (B === null ||
|
|
9733
|
-
l[p] =
|
|
9759
|
+
if (B === null || w === null || typeof B != "object" || typeof w != "object") {
|
|
9760
|
+
l[p] = w;
|
|
9734
9761
|
continue;
|
|
9735
9762
|
}
|
|
9736
|
-
const P = xn(B,
|
|
9763
|
+
const P = xn(B, w, n + 1);
|
|
9737
9764
|
l[p] = P, P === B && A++;
|
|
9738
9765
|
}
|
|
9739
9766
|
return i === c && A === i ? t : l;
|
|
@@ -9793,11 +9820,11 @@ function YA(t, e, n = 0) {
|
|
|
9793
9820
|
const r = [e, ...t];
|
|
9794
9821
|
return n && r.length > n ? r.slice(0, -1) : r;
|
|
9795
9822
|
}
|
|
9796
|
-
var
|
|
9823
|
+
var $t = /* @__PURE__ */ Symbol();
|
|
9797
9824
|
function Ii(t, e) {
|
|
9798
|
-
return process.env.NODE_ENV !== "production" && t.queryFn ===
|
|
9825
|
+
return process.env.NODE_ENV !== "production" && t.queryFn === $t && console.error(
|
|
9799
9826
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
|
|
9800
|
-
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn ===
|
|
9827
|
+
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === $t ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
|
|
9801
9828
|
}
|
|
9802
9829
|
function hd(t, e) {
|
|
9803
9830
|
return typeof t == "function" ? t(...e) : !!t;
|
|
@@ -9942,12 +9969,12 @@ var L = kA(), st, je, it, Ur, RA = (Ur = class extends un {
|
|
|
9942
9969
|
isOnline() {
|
|
9943
9970
|
return h(this, st);
|
|
9944
9971
|
}
|
|
9945
|
-
}, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur),
|
|
9972
|
+
}, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur), en = new RA();
|
|
9946
9973
|
function qA(t) {
|
|
9947
9974
|
return Math.min(1e3 * 2 ** t, 3e4);
|
|
9948
9975
|
}
|
|
9949
9976
|
function Oi(t) {
|
|
9950
|
-
return (t ?? "online") === "online" ?
|
|
9977
|
+
return (t ?? "online") === "online" ? en.isOnline() : !0;
|
|
9951
9978
|
}
|
|
9952
9979
|
var kn = class extends Error {
|
|
9953
9980
|
constructor(t) {
|
|
@@ -9966,11 +9993,11 @@ function Ti(t) {
|
|
|
9966
9993
|
e = !0;
|
|
9967
9994
|
}, l = () => {
|
|
9968
9995
|
e = !1;
|
|
9969
|
-
}, A = () => Mi.isFocused() && (t.networkMode === "always" ||
|
|
9996
|
+
}, A = () => Mi.isFocused() && (t.networkMode === "always" || en.isOnline()) && t.canRun(), f = () => Oi(t.networkMode) && t.canRun(), p = (I) => {
|
|
9970
9997
|
i() || (r == null || r(), s.resolve(I));
|
|
9971
9998
|
}, B = (I) => {
|
|
9972
9999
|
i() || (r == null || r(), s.reject(I));
|
|
9973
|
-
},
|
|
10000
|
+
}, w = () => new Promise((I) => {
|
|
9974
10001
|
var V;
|
|
9975
10002
|
r = (R) => {
|
|
9976
10003
|
(i() || A()) && I(R);
|
|
@@ -9992,12 +10019,12 @@ function Ti(t) {
|
|
|
9992
10019
|
var U;
|
|
9993
10020
|
if (i())
|
|
9994
10021
|
return;
|
|
9995
|
-
const Q = t.retry ?? (Pi.isServer() ? 0 : 3), Y = t.retryDelay ?? qA,
|
|
10022
|
+
const Q = t.retry ?? (Pi.isServer() ? 0 : 3), Y = t.retryDelay ?? qA, v = typeof Y == "function" ? Y(n, R) : Y, H = Q === !0 || typeof Q == "number" && n < Q || typeof Q == "function" && Q(n, R);
|
|
9996
10023
|
if (e || !H) {
|
|
9997
10024
|
B(R);
|
|
9998
10025
|
return;
|
|
9999
10026
|
}
|
|
10000
|
-
n++, (U = t.onFail) == null || U.call(t, n, R), TA(
|
|
10027
|
+
n++, (U = t.onFail) == null || U.call(t, n, R), TA(v).then(() => A() ? void 0 : w()).then(() => {
|
|
10001
10028
|
e ? B(R) : P();
|
|
10002
10029
|
});
|
|
10003
10030
|
});
|
|
@@ -10010,7 +10037,7 @@ function Ti(t) {
|
|
|
10010
10037
|
cancelRetry: c,
|
|
10011
10038
|
continueRetry: l,
|
|
10012
10039
|
canStart: f,
|
|
10013
|
-
start: () => (f() ? P() :
|
|
10040
|
+
start: () => (f() ? P() : w().then(P), s)
|
|
10014
10041
|
};
|
|
10015
10042
|
}
|
|
10016
10043
|
var Xe, Wr, Gi = (Wr = class {
|
|
@@ -10038,8 +10065,8 @@ var Xe, Wr, Gi = (Wr = class {
|
|
|
10038
10065
|
function NA(t) {
|
|
10039
10066
|
return {
|
|
10040
10067
|
onFetch: (e, n) => {
|
|
10041
|
-
var f, p, B,
|
|
10042
|
-
const r = e.options, s = (B = (p = (f = e.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : p.fetchMore) == null ? void 0 : B.direction, i = ((
|
|
10068
|
+
var f, p, B, w, P;
|
|
10069
|
+
const r = e.options, s = (B = (p = (f = e.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : p.fetchMore) == null ? void 0 : B.direction, i = ((w = e.state.data) == null ? void 0 : w.pages) || [], a = ((P = e.state.data) == null ? void 0 : P.pageParams) || [];
|
|
10043
10070
|
let c = { pages: [], pageParams: [] }, l = 0;
|
|
10044
10071
|
const A = async () => {
|
|
10045
10072
|
let I = !1;
|
|
@@ -10049,16 +10076,16 @@ function NA(t) {
|
|
|
10049
10076
|
() => e.signal,
|
|
10050
10077
|
() => I = !0
|
|
10051
10078
|
);
|
|
10052
|
-
}, R = Ii(e.options, e.fetchOptions), Q = async (Y,
|
|
10079
|
+
}, R = Ii(e.options, e.fetchOptions), Q = async (Y, v, H) => {
|
|
10053
10080
|
if (I)
|
|
10054
10081
|
return Promise.reject(e.signal.reason);
|
|
10055
|
-
if (
|
|
10082
|
+
if (v == null && Y.pages.length)
|
|
10056
10083
|
return Promise.resolve(Y);
|
|
10057
10084
|
const ee = (() => {
|
|
10058
10085
|
const g = {
|
|
10059
10086
|
client: e.client,
|
|
10060
10087
|
queryKey: e.queryKey,
|
|
10061
|
-
pageParam:
|
|
10088
|
+
pageParam: v,
|
|
10062
10089
|
direction: H ? "backward" : "forward",
|
|
10063
10090
|
meta: e.options.meta
|
|
10064
10091
|
};
|
|
@@ -10066,22 +10093,22 @@ function NA(t) {
|
|
|
10066
10093
|
})(), q = await R(ee), { maxPages: u } = e.options, m = H ? YA : jA;
|
|
10067
10094
|
return {
|
|
10068
10095
|
pages: m(Y.pages, q, u),
|
|
10069
|
-
pageParams: m(Y.pageParams,
|
|
10096
|
+
pageParams: m(Y.pageParams, v, u)
|
|
10070
10097
|
};
|
|
10071
10098
|
};
|
|
10072
10099
|
if (s && i.length) {
|
|
10073
|
-
const Y = s === "backward",
|
|
10100
|
+
const Y = s === "backward", v = Y ? HA : Nr, H = {
|
|
10074
10101
|
pages: i,
|
|
10075
10102
|
pageParams: a
|
|
10076
|
-
}, U =
|
|
10103
|
+
}, U = v(r, H);
|
|
10077
10104
|
c = await Q(H, U, Y);
|
|
10078
10105
|
} else {
|
|
10079
10106
|
const Y = t ?? i.length;
|
|
10080
10107
|
do {
|
|
10081
|
-
const
|
|
10082
|
-
if (l > 0 &&
|
|
10108
|
+
const v = l === 0 ? a[0] ?? r.initialPageParam : Nr(r, c);
|
|
10109
|
+
if (l > 0 && v == null)
|
|
10083
10110
|
break;
|
|
10084
|
-
c = await Q(c,
|
|
10111
|
+
c = await Q(c, v), l++;
|
|
10085
10112
|
} while (l < Y);
|
|
10086
10113
|
}
|
|
10087
10114
|
return c;
|
|
@@ -10116,7 +10143,7 @@ function HA(t, { pages: e, pageParams: n }) {
|
|
|
10116
10143
|
var r;
|
|
10117
10144
|
return e.length > 0 ? (r = t.getPreviousPageParam) == null ? void 0 : r.call(t, e[0], e, n[0], n) : void 0;
|
|
10118
10145
|
}
|
|
10119
|
-
var at, Se, ot, re, Ue, S,
|
|
10146
|
+
var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
10120
10147
|
constructor(e) {
|
|
10121
10148
|
super();
|
|
10122
10149
|
G(this, ne);
|
|
@@ -10126,9 +10153,9 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10126
10153
|
G(this, re);
|
|
10127
10154
|
G(this, Ue);
|
|
10128
10155
|
G(this, S);
|
|
10129
|
-
G(this,
|
|
10156
|
+
G(this, Et);
|
|
10130
10157
|
G(this, We);
|
|
10131
|
-
D(this, We, !1), D(this,
|
|
10158
|
+
D(this, We, !1), D(this, Et, e.defaultOptions), this.setOptions(e.options), this.observers = [], D(this, Ue, e.client), D(this, re, h(this, Ue).getQueryCache()), this.queryKey = e.queryKey, this.queryHash = e.queryHash, D(this, Se, Qr(this.options)), this.state = e.state ?? h(this, Se), this.scheduleGc();
|
|
10132
10159
|
}
|
|
10133
10160
|
get meta() {
|
|
10134
10161
|
return this.options.meta;
|
|
@@ -10141,7 +10168,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10141
10168
|
return (e = h(this, S)) == null ? void 0 : e.promise;
|
|
10142
10169
|
}
|
|
10143
10170
|
setOptions(e) {
|
|
10144
|
-
if (this.options = { ...h(this,
|
|
10171
|
+
if (this.options = { ...h(this, Et), ...e }, e != null && e._type && D(this, at, e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
10145
10172
|
const n = Qr(this.options);
|
|
10146
10173
|
n.data !== void 0 && (this.setState(
|
|
10147
10174
|
Hr(n.data, n.dataUpdatedAt)
|
|
@@ -10183,7 +10210,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10183
10210
|
);
|
|
10184
10211
|
}
|
|
10185
10212
|
isDisabled() {
|
|
10186
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
10213
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === $t || !this.isFetched();
|
|
10187
10214
|
}
|
|
10188
10215
|
isFetched() {
|
|
10189
10216
|
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
@@ -10224,7 +10251,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10224
10251
|
this.state.isInvalidated || z(this, ne, me).call(this, { type: "invalidate" });
|
|
10225
10252
|
}
|
|
10226
10253
|
async fetch(e, n) {
|
|
10227
|
-
var A, f, p, B,
|
|
10254
|
+
var A, f, p, B, w, P, I, V, R, Q, Y;
|
|
10228
10255
|
if (this.state.fetchStatus !== "idle" && // If the promise in the retryer is already rejected, we have to definitely
|
|
10229
10256
|
// re-start the fetch; there is a chance that the query is still in a
|
|
10230
10257
|
// pending state when that happens
|
|
@@ -10235,19 +10262,19 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10235
10262
|
return h(this, S).continueRetry(), h(this, S).promise;
|
|
10236
10263
|
}
|
|
10237
10264
|
if (e && this.setOptions(e), !this.options.queryFn) {
|
|
10238
|
-
const
|
|
10239
|
-
|
|
10265
|
+
const v = this.observers.find((H) => H.options.queryFn);
|
|
10266
|
+
v && this.setOptions(v.options);
|
|
10240
10267
|
}
|
|
10241
10268
|
process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
|
|
10242
10269
|
"As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"
|
|
10243
10270
|
));
|
|
10244
|
-
const r = new AbortController(), s = (
|
|
10245
|
-
Object.defineProperty(
|
|
10271
|
+
const r = new AbortController(), s = (v) => {
|
|
10272
|
+
Object.defineProperty(v, "signal", {
|
|
10246
10273
|
enumerable: !0,
|
|
10247
10274
|
get: () => (D(this, We, !0), r.signal)
|
|
10248
10275
|
});
|
|
10249
10276
|
}, i = () => {
|
|
10250
|
-
const
|
|
10277
|
+
const v = Ii(this.options, n), U = (() => {
|
|
10251
10278
|
const ee = {
|
|
10252
10279
|
client: h(this, Ue),
|
|
10253
10280
|
queryKey: this.queryKey,
|
|
@@ -10256,12 +10283,12 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10256
10283
|
return s(ee), ee;
|
|
10257
10284
|
})();
|
|
10258
10285
|
return D(this, We, !1), this.options.persister ? this.options.persister(
|
|
10259
|
-
|
|
10286
|
+
v,
|
|
10260
10287
|
U,
|
|
10261
10288
|
this
|
|
10262
|
-
) :
|
|
10289
|
+
) : v(U);
|
|
10263
10290
|
}, c = (() => {
|
|
10264
|
-
const
|
|
10291
|
+
const v = {
|
|
10265
10292
|
fetchOptions: n,
|
|
10266
10293
|
options: this.options,
|
|
10267
10294
|
queryKey: this.queryKey,
|
|
@@ -10269,21 +10296,21 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10269
10296
|
state: this.state,
|
|
10270
10297
|
fetchFn: i
|
|
10271
10298
|
};
|
|
10272
|
-
return s(
|
|
10299
|
+
return s(v), v;
|
|
10273
10300
|
})(), l = h(this, at) === "infinite" ? NA(
|
|
10274
10301
|
this.options.pages
|
|
10275
10302
|
) : this.options.behavior;
|
|
10276
10303
|
l == null || l.onFetch(c, this), D(this, ot, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((f = c.fetchOptions) == null ? void 0 : f.meta)) && z(this, ne, me).call(this, { type: "fetch", meta: (p = c.fetchOptions) == null ? void 0 : p.meta }), D(this, S, Ti({
|
|
10277
10304
|
initialPromise: n == null ? void 0 : n.initialPromise,
|
|
10278
10305
|
fn: c.fetchFn,
|
|
10279
|
-
onCancel: (
|
|
10280
|
-
|
|
10306
|
+
onCancel: (v) => {
|
|
10307
|
+
v instanceof kn && v.revert && this.setState({
|
|
10281
10308
|
...h(this, ot),
|
|
10282
10309
|
fetchStatus: "idle"
|
|
10283
10310
|
}), r.abort();
|
|
10284
10311
|
},
|
|
10285
|
-
onFail: (
|
|
10286
|
-
z(this, ne, me).call(this, { type: "failed", failureCount:
|
|
10312
|
+
onFail: (v, H) => {
|
|
10313
|
+
z(this, ne, me).call(this, { type: "failed", failureCount: v, error: H });
|
|
10287
10314
|
},
|
|
10288
10315
|
onPause: () => {
|
|
10289
10316
|
z(this, ne, me).call(this, { type: "pause" });
|
|
@@ -10297,45 +10324,45 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10297
10324
|
canRun: () => !0
|
|
10298
10325
|
}));
|
|
10299
10326
|
try {
|
|
10300
|
-
const
|
|
10301
|
-
if (
|
|
10327
|
+
const v = await h(this, S).start();
|
|
10328
|
+
if (v === void 0)
|
|
10302
10329
|
throw process.env.NODE_ENV !== "production" && console.error(
|
|
10303
10330
|
`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
|
|
10304
10331
|
), new Error(`${this.queryHash} data is undefined`);
|
|
10305
|
-
return this.setData(
|
|
10332
|
+
return this.setData(v), (w = (B = h(this, re).config).onSuccess) == null || w.call(B, v, this), (I = (P = h(this, re).config).onSettled) == null || I.call(
|
|
10306
10333
|
P,
|
|
10307
|
-
|
|
10334
|
+
v,
|
|
10308
10335
|
this.state.error,
|
|
10309
10336
|
this
|
|
10310
|
-
),
|
|
10311
|
-
} catch (
|
|
10312
|
-
if (
|
|
10313
|
-
if (
|
|
10337
|
+
), v;
|
|
10338
|
+
} catch (v) {
|
|
10339
|
+
if (v instanceof kn) {
|
|
10340
|
+
if (v.silent)
|
|
10314
10341
|
return h(this, S).promise;
|
|
10315
|
-
if (
|
|
10342
|
+
if (v.revert) {
|
|
10316
10343
|
if (this.state.data === void 0)
|
|
10317
|
-
throw
|
|
10344
|
+
throw v;
|
|
10318
10345
|
return this.state.data;
|
|
10319
10346
|
}
|
|
10320
10347
|
}
|
|
10321
10348
|
throw z(this, ne, me).call(this, {
|
|
10322
10349
|
type: "error",
|
|
10323
|
-
error:
|
|
10350
|
+
error: v
|
|
10324
10351
|
}), (R = (V = h(this, re).config).onError) == null || R.call(
|
|
10325
10352
|
V,
|
|
10326
|
-
|
|
10353
|
+
v,
|
|
10327
10354
|
this
|
|
10328
10355
|
), (Y = (Q = h(this, re).config).onSettled) == null || Y.call(
|
|
10329
10356
|
Q,
|
|
10330
10357
|
this.state.data,
|
|
10331
|
-
|
|
10358
|
+
v,
|
|
10332
10359
|
this
|
|
10333
|
-
),
|
|
10360
|
+
), v;
|
|
10334
10361
|
} finally {
|
|
10335
10362
|
this.scheduleGc();
|
|
10336
10363
|
}
|
|
10337
10364
|
}
|
|
10338
|
-
}, at = new WeakMap(), Se = new WeakMap(), ot = new WeakMap(), re = new WeakMap(), Ue = new WeakMap(), S = new WeakMap(),
|
|
10365
|
+
}, at = new WeakMap(), Se = new WeakMap(), ot = new WeakMap(), re = new WeakMap(), Ue = new WeakMap(), S = new WeakMap(), Et = new WeakMap(), We = new WeakMap(), ne = new WeakSet(), ji = function() {
|
|
10339
10366
|
return this.state.fetchStatus === "paused" && this.state.status === "pending";
|
|
10340
10367
|
}, me = function(e) {
|
|
10341
10368
|
const n = (r) => {
|
|
@@ -10444,15 +10471,15 @@ function Qr(t) {
|
|
|
10444
10471
|
fetchStatus: "idle"
|
|
10445
10472
|
};
|
|
10446
10473
|
}
|
|
10447
|
-
var
|
|
10474
|
+
var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
10448
10475
|
constructor(e) {
|
|
10449
10476
|
super();
|
|
10450
10477
|
G(this, ue);
|
|
10451
|
-
G(this,
|
|
10478
|
+
G(this, Mt);
|
|
10452
10479
|
G(this, ce);
|
|
10453
10480
|
G(this, Z);
|
|
10454
10481
|
G(this, ze);
|
|
10455
|
-
D(this,
|
|
10482
|
+
D(this, Mt, e.client), this.mutationId = e.mutationId, D(this, Z, e.mutationCache), D(this, ce, []), this.state = e.state || UA(), this.setOptions(e.options), this.scheduleGc();
|
|
10456
10483
|
}
|
|
10457
10484
|
setOptions(e) {
|
|
10458
10485
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -10483,11 +10510,11 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10483
10510
|
this.execute(this.state.variables);
|
|
10484
10511
|
}
|
|
10485
10512
|
async execute(e) {
|
|
10486
|
-
var a, c, l, A, f, p, B,
|
|
10513
|
+
var a, c, l, A, f, p, B, w, P, I, V, R, Q, Y, v, H, U, ee;
|
|
10487
10514
|
const n = () => {
|
|
10488
10515
|
z(this, ue, Me).call(this, { type: "continue" });
|
|
10489
10516
|
}, r = {
|
|
10490
|
-
client: h(this,
|
|
10517
|
+
client: h(this, Mt),
|
|
10491
10518
|
meta: this.options.meta,
|
|
10492
10519
|
mutationKey: this.options.mutationKey
|
|
10493
10520
|
};
|
|
@@ -10541,7 +10568,7 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10541
10568
|
e,
|
|
10542
10569
|
this.state.context,
|
|
10543
10570
|
r
|
|
10544
|
-
)), await ((
|
|
10571
|
+
)), await ((w = (B = h(this, Z).config).onSettled) == null ? void 0 : w.call(
|
|
10545
10572
|
B,
|
|
10546
10573
|
q,
|
|
10547
10574
|
null,
|
|
@@ -10582,8 +10609,8 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10582
10609
|
Promise.reject(u);
|
|
10583
10610
|
}
|
|
10584
10611
|
try {
|
|
10585
|
-
await ((H = (
|
|
10586
|
-
|
|
10612
|
+
await ((H = (v = h(this, Z).config).onSettled) == null ? void 0 : H.call(
|
|
10613
|
+
v,
|
|
10587
10614
|
void 0,
|
|
10588
10615
|
q,
|
|
10589
10616
|
this.state.variables,
|
|
@@ -10611,7 +10638,7 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10611
10638
|
h(this, Z).runNext(this);
|
|
10612
10639
|
}
|
|
10613
10640
|
}
|
|
10614
|
-
},
|
|
10641
|
+
}, Mt = new WeakMap(), ce = new WeakMap(), Z = new WeakMap(), ze = new WeakMap(), ue = new WeakSet(), Me = function(e) {
|
|
10615
10642
|
const n = (r) => {
|
|
10616
10643
|
switch (e.type) {
|
|
10617
10644
|
case "failed":
|
|
@@ -10688,19 +10715,19 @@ function UA() {
|
|
|
10688
10715
|
submittedAt: 0
|
|
10689
10716
|
};
|
|
10690
10717
|
}
|
|
10691
|
-
var fe, ae,
|
|
10718
|
+
var fe, ae, It, Lr, Yi = (Lr = class extends un {
|
|
10692
10719
|
constructor(n = {}) {
|
|
10693
10720
|
super();
|
|
10694
10721
|
G(this, fe);
|
|
10695
10722
|
G(this, ae);
|
|
10696
|
-
G(this,
|
|
10697
|
-
this.config = n, D(this, fe, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this,
|
|
10723
|
+
G(this, It);
|
|
10724
|
+
this.config = n, D(this, fe, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this, It, 0);
|
|
10698
10725
|
}
|
|
10699
10726
|
build(n, r, s) {
|
|
10700
10727
|
const i = new SA({
|
|
10701
10728
|
client: n,
|
|
10702
10729
|
mutationCache: this,
|
|
10703
|
-
mutationId: ++
|
|
10730
|
+
mutationId: ++xt(this, It)._,
|
|
10704
10731
|
options: n.defaultMutationOptions(r),
|
|
10705
10732
|
state: s
|
|
10706
10733
|
});
|
|
@@ -10708,7 +10735,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10708
10735
|
}
|
|
10709
10736
|
add(n) {
|
|
10710
10737
|
h(this, fe).add(n);
|
|
10711
|
-
const r =
|
|
10738
|
+
const r = Rt(n);
|
|
10712
10739
|
if (typeof r == "string") {
|
|
10713
10740
|
const s = h(this, ae).get(r);
|
|
10714
10741
|
s ? s.push(n) : h(this, ae).set(r, [n]);
|
|
@@ -10717,7 +10744,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10717
10744
|
}
|
|
10718
10745
|
remove(n) {
|
|
10719
10746
|
if (h(this, fe).delete(n)) {
|
|
10720
|
-
const r =
|
|
10747
|
+
const r = Rt(n);
|
|
10721
10748
|
if (typeof r == "string") {
|
|
10722
10749
|
const s = h(this, ae).get(r);
|
|
10723
10750
|
if (s)
|
|
@@ -10730,7 +10757,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10730
10757
|
this.notify({ type: "removed", mutation: n });
|
|
10731
10758
|
}
|
|
10732
10759
|
canRun(n) {
|
|
10733
|
-
const r =
|
|
10760
|
+
const r = Rt(n);
|
|
10734
10761
|
if (typeof r == "string") {
|
|
10735
10762
|
const s = h(this, ae).get(r), i = s == null ? void 0 : s.find(
|
|
10736
10763
|
(a) => a.state.status === "pending"
|
|
@@ -10741,7 +10768,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10741
10768
|
}
|
|
10742
10769
|
runNext(n) {
|
|
10743
10770
|
var s;
|
|
10744
|
-
const r =
|
|
10771
|
+
const r = Rt(n);
|
|
10745
10772
|
if (typeof r == "string") {
|
|
10746
10773
|
const i = (s = h(this, ae).get(r)) == null ? void 0 : s.find((a) => a !== n && a.state.isPaused);
|
|
10747
10774
|
return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
|
|
@@ -10782,8 +10809,8 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10782
10809
|
)
|
|
10783
10810
|
);
|
|
10784
10811
|
}
|
|
10785
|
-
}, fe = new WeakMap(), ae = new WeakMap(),
|
|
10786
|
-
function
|
|
10812
|
+
}, fe = new WeakMap(), ae = new WeakMap(), It = new WeakMap(), Lr);
|
|
10813
|
+
function Rt(t) {
|
|
10787
10814
|
var e;
|
|
10788
10815
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
10789
10816
|
}
|
|
@@ -10872,15 +10899,15 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
10872
10899
|
D(this, N, e.queryCache || new Vi()), D(this, Ye, e.mutationCache || new Yi()), D(this, Ve, e.defaultOptions || {}), D(this, ct, /* @__PURE__ */ new Map()), D(this, ut, /* @__PURE__ */ new Map()), D(this, xe, 0);
|
|
10873
10900
|
}
|
|
10874
10901
|
mount() {
|
|
10875
|
-
|
|
10902
|
+
xt(this, xe)._++, h(this, xe) === 1 && (D(this, lt, Mi.subscribe(async (e) => {
|
|
10876
10903
|
e && (await this.resumePausedMutations(), h(this, N).onFocus());
|
|
10877
|
-
})), D(this, At,
|
|
10904
|
+
})), D(this, At, en.subscribe(async (e) => {
|
|
10878
10905
|
e && (await this.resumePausedMutations(), h(this, N).onOnline());
|
|
10879
10906
|
})));
|
|
10880
10907
|
}
|
|
10881
10908
|
unmount() {
|
|
10882
10909
|
var e, n;
|
|
10883
|
-
|
|
10910
|
+
xt(this, xe)._--, h(this, xe) === 0 && ((e = h(this, lt)) == null || e.call(this), D(this, lt, void 0), (n = h(this, At)) == null || n.call(this), D(this, At, void 0));
|
|
10884
10911
|
}
|
|
10885
10912
|
isFetching(e) {
|
|
10886
10913
|
return h(this, N).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
@@ -11002,7 +11029,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11002
11029
|
return e._type = "infinite", this.ensureQueryData(e);
|
|
11003
11030
|
}
|
|
11004
11031
|
resumePausedMutations() {
|
|
11005
|
-
return
|
|
11032
|
+
return en.isOnline() ? h(this, Ye).resumePausedMutations() : Promise.resolve();
|
|
11006
11033
|
}
|
|
11007
11034
|
getQueryCache() {
|
|
11008
11035
|
return h(this, N);
|
|
@@ -11017,7 +11044,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11017
11044
|
D(this, Ve, e);
|
|
11018
11045
|
}
|
|
11019
11046
|
setQueryDefaults(e, n) {
|
|
11020
|
-
h(this, ct).set(
|
|
11047
|
+
h(this, ct).set(Dt(e), {
|
|
11021
11048
|
queryKey: e,
|
|
11022
11049
|
defaultOptions: n
|
|
11023
11050
|
});
|
|
@@ -11025,11 +11052,11 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11025
11052
|
getQueryDefaults(e) {
|
|
11026
11053
|
const n = [...h(this, ct).values()], r = {};
|
|
11027
11054
|
return n.forEach((s) => {
|
|
11028
|
-
|
|
11055
|
+
Ct(e, s.queryKey) && Object.assign(r, s.defaultOptions);
|
|
11029
11056
|
}), r;
|
|
11030
11057
|
}
|
|
11031
11058
|
setMutationDefaults(e, n) {
|
|
11032
|
-
h(this, ut).set(
|
|
11059
|
+
h(this, ut).set(Dt(e), {
|
|
11033
11060
|
mutationKey: e,
|
|
11034
11061
|
defaultOptions: n
|
|
11035
11062
|
});
|
|
@@ -11037,7 +11064,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11037
11064
|
getMutationDefaults(e) {
|
|
11038
11065
|
const n = [...h(this, ut).values()], r = {};
|
|
11039
11066
|
return n.forEach((s) => {
|
|
11040
|
-
|
|
11067
|
+
Ct(e, s.mutationKey) && Object.assign(r, s.defaultOptions);
|
|
11041
11068
|
}), r;
|
|
11042
11069
|
}
|
|
11043
11070
|
defaultQueryOptions(e) {
|
|
@@ -11052,7 +11079,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11052
11079
|
return n.queryHash || (n.queryHash = er(
|
|
11053
11080
|
n.queryKey,
|
|
11054
11081
|
n
|
|
11055
|
-
)), n.refetchOnReconnect === void 0 && (n.refetchOnReconnect = n.networkMode !== "always"), n.throwOnError === void 0 && (n.throwOnError = !!n.suspense), !n.networkMode && n.persister && (n.networkMode = "offlineFirst"), n.queryFn ===
|
|
11082
|
+
)), n.refetchOnReconnect === void 0 && (n.refetchOnReconnect = n.networkMode !== "always"), n.throwOnError === void 0 && (n.throwOnError = !!n.suspense), !n.networkMode && n.persister && (n.networkMode = "offlineFirst"), n.queryFn === $t && (n.enabled = !1), n;
|
|
11056
11083
|
}
|
|
11057
11084
|
defaultMutationOptions(e) {
|
|
11058
11085
|
return e != null && e._defaulted ? e : {
|
|
@@ -11137,7 +11164,7 @@ var KA = class extends Vi {
|
|
|
11137
11164
|
queryCache: t.queryCache || new KA(),
|
|
11138
11165
|
mutationCache: t.mutationCache || new JA()
|
|
11139
11166
|
};
|
|
11140
|
-
super(e), this.isRestoring =
|
|
11167
|
+
super(e), this.isRestoring = St(!1);
|
|
11141
11168
|
}
|
|
11142
11169
|
isFetching(t = {}) {
|
|
11143
11170
|
return super.isFetching(T(t));
|
|
@@ -11236,7 +11263,7 @@ var KA = class extends Vi {
|
|
|
11236
11263
|
};
|
|
11237
11264
|
const $A = Ki({
|
|
11238
11265
|
history: Ji(),
|
|
11239
|
-
routes: [...
|
|
11266
|
+
routes: [...bt, ...pt].map((t) => ({
|
|
11240
11267
|
...t,
|
|
11241
11268
|
component: os(
|
|
11242
11269
|
_r({
|
|
@@ -11247,10 +11274,10 @@ const $A = Ki({
|
|
|
11247
11274
|
});
|
|
11248
11275
|
$A.beforeEach((t) => {
|
|
11249
11276
|
var r;
|
|
11250
|
-
const { currentCountry: e } =
|
|
11277
|
+
const { currentCountry: e } = rn(), n = e.value;
|
|
11251
11278
|
if (!n) return !0;
|
|
11252
11279
|
if ((r = t.meta) != null && r.region && !t.meta.region[n]) {
|
|
11253
|
-
const s =
|
|
11280
|
+
const s = bt.find(
|
|
11254
11281
|
(i) => {
|
|
11255
11282
|
var a;
|
|
11256
11283
|
return ((a = i.meta) == null ? void 0 : a.sidebarDisplay) && (!i.meta.region || i.meta.region[n]);
|
|
@@ -11260,17 +11287,17 @@ $A.beforeEach((t) => {
|
|
|
11260
11287
|
}
|
|
11261
11288
|
return !0;
|
|
11262
11289
|
});
|
|
11263
|
-
const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ */
|
|
11290
|
+
const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ */ tn({
|
|
11264
11291
|
__name: "AppSidebar",
|
|
11265
11292
|
setup(t) {
|
|
11266
|
-
const e =
|
|
11293
|
+
const e = rn(), n = _i(), { t: r } = ns(), s = St(n.currentRoute.value.name);
|
|
11267
11294
|
$r(n.currentRoute, () => {
|
|
11268
11295
|
let A = n.currentRoute.value.name;
|
|
11269
11296
|
n.currentRoute.value.meta.parent && (A = n.currentRoute.value.meta.parent), s.value = A;
|
|
11270
11297
|
});
|
|
11271
|
-
const i =
|
|
11272
|
-
var B,
|
|
11273
|
-
if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((
|
|
11298
|
+
const i = bt.map((A) => {
|
|
11299
|
+
var B, w;
|
|
11300
|
+
if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((w = A.meta.region) != null && w[e.currentCountry.value]) || A.meta.section)
|
|
11274
11301
|
return;
|
|
11275
11302
|
const f = A.meta.sidebarDisplay, p = {
|
|
11276
11303
|
label: f.startsWith("i18n:") ? r(f.replaceAll("i18n:", "")) : f,
|
|
@@ -11280,12 +11307,12 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11280
11307
|
return n.push({ name: A.name });
|
|
11281
11308
|
}
|
|
11282
11309
|
};
|
|
11283
|
-
return A.meta.sidebarNew && (p.badge = () =>
|
|
11310
|
+
return A.meta.sidebarNew && (p.badge = () => vn(ea.FmPill, { label: "New" })), p;
|
|
11284
11311
|
}).filter((A) => !!A);
|
|
11285
11312
|
function a(A, f) {
|
|
11286
11313
|
return A.map((p) => {
|
|
11287
|
-
var B,
|
|
11288
|
-
return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], f) : (
|
|
11314
|
+
var B, w, P, I;
|
|
11315
|
+
return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], f) : (w = p.meta) != null && w.region && !((P = p.meta.region) != null && P[e.currentCountry.value]) ? [] : (I = p.meta) != null && I.sidebarDisplay ? p.meta.section !== f ? [] : [
|
|
11289
11316
|
{
|
|
11290
11317
|
label: p.meta.sidebarDisplay.startsWith("i18n:") ? r(p.meta.sidebarDisplay.replaceAll("i18n:", "")) : p.meta.sidebarDisplay,
|
|
11291
11318
|
value: p.name,
|
|
@@ -11310,7 +11337,16 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11310
11337
|
};
|
|
11311
11338
|
}).filter((A) => !!A), l = Nn(() => {
|
|
11312
11339
|
const A = [...i];
|
|
11313
|
-
return
|
|
11340
|
+
return A.push({
|
|
11341
|
+
label: "",
|
|
11342
|
+
value: "divider",
|
|
11343
|
+
disabled: !0
|
|
11344
|
+
}), A.push({
|
|
11345
|
+
label: r("financing.title"),
|
|
11346
|
+
icon: "credit_score",
|
|
11347
|
+
value: "divider",
|
|
11348
|
+
disabled: !0
|
|
11349
|
+
}), A.push(...a(bt, "financing")), ed(e.sessionUser.value) && (A.push({
|
|
11314
11350
|
label: "",
|
|
11315
11351
|
value: "divider",
|
|
11316
11352
|
disabled: !0
|
|
@@ -11341,7 +11377,7 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11341
11377
|
});
|
|
11342
11378
|
return (A, f) => {
|
|
11343
11379
|
const p = es("FmCollapsibleTabs");
|
|
11344
|
-
return
|
|
11380
|
+
return nn(), Hn(p, {
|
|
11345
11381
|
modelValue: s.value,
|
|
11346
11382
|
"onUpdate:modelValue": f[0] || (f[0] = (B) => s.value = B),
|
|
11347
11383
|
items: l.value,
|
|
@@ -11350,11 +11386,11 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11350
11386
|
};
|
|
11351
11387
|
}
|
|
11352
11388
|
});
|
|
11353
|
-
var nd = { firebase: { apiKey: "
|
|
11354
|
-
const bd = /* @__PURE__ */
|
|
11389
|
+
var nd = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" } };
|
|
11390
|
+
const bd = /* @__PURE__ */ tn({
|
|
11355
11391
|
__name: "App",
|
|
11356
11392
|
setup(t) {
|
|
11357
|
-
const { state: e } = Qo(), n =
|
|
11393
|
+
const { state: e } = Qo(), n = rn(), r = ts(), s = new _A();
|
|
11358
11394
|
Wi(xi, s);
|
|
11359
11395
|
const i = Ss(nd.firebase);
|
|
11360
11396
|
async function a() {
|
|
@@ -11371,12 +11407,12 @@ const bd = /* @__PURE__ */ en({
|
|
|
11371
11407
|
s.unmount();
|
|
11372
11408
|
}), (c, l) => {
|
|
11373
11409
|
const A = es("RouterView");
|
|
11374
|
-
return
|
|
11410
|
+
return nn(), Hn(A, {
|
|
11375
11411
|
key: ge(r).path
|
|
11376
11412
|
});
|
|
11377
11413
|
};
|
|
11378
11414
|
}
|
|
11379
|
-
}),
|
|
11415
|
+
}), vd = () => {
|
|
11380
11416
|
const t = [
|
|
11381
11417
|
{ "en-US": na, "th-TH": sa, "zh-CN": aa },
|
|
11382
11418
|
qi
|
|
@@ -11393,7 +11429,7 @@ const bd = /* @__PURE__ */ en({
|
|
|
11393
11429
|
},
|
|
11394
11430
|
{}
|
|
11395
11431
|
);
|
|
11396
|
-
},
|
|
11432
|
+
}, wd = [...pt, ...bt].map((t) => ({
|
|
11397
11433
|
...t,
|
|
11398
11434
|
component: os(
|
|
11399
11435
|
_r({ loader: t.component })
|
|
@@ -11401,7 +11437,7 @@ const bd = /* @__PURE__ */ en({
|
|
|
11401
11437
|
}));
|
|
11402
11438
|
export {
|
|
11403
11439
|
xa as A,
|
|
11404
|
-
|
|
11440
|
+
wd as B,
|
|
11405
11441
|
un as S,
|
|
11406
11442
|
yr as _,
|
|
11407
11443
|
Vn as a,
|
|
@@ -11429,5 +11465,5 @@ export {
|
|
|
11429
11465
|
ua as w,
|
|
11430
11466
|
ld as x,
|
|
11431
11467
|
bd as y,
|
|
11432
|
-
|
|
11468
|
+
vd as z
|
|
11433
11469
|
};
|