@feedmepos/mf-payment 1.5.27-dev → 1.5.29-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-Cy1BbWNh.js → Actions.vue_vue_type_script_setup_true_lang-DGrZmVUQ.js} +2 -2
- package/dist/{Chargeback-Dl4rSQ5U.js → Chargeback-CocH4bON.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-B0ThjP1l.js → DocumentViewer.vue_vue_type_script_setup_true_lang-tGPnCbHL.js} +1 -1
- package/dist/{OnboardForm-D3q5YAEo.js → OnboardForm-BLk46c4b.js} +5 -5
- package/dist/{OnboardForm-BwuKMUCZ.js → OnboardForm-CqohYc7w.js} +5 -5
- package/dist/{OnboardSubmission-BBdqr387.js → OnboardSubmission-CIZuFLWF.js} +2 -2
- package/dist/{OnboardSubmission-D958LAp4.js → OnboardSubmission-CNJ-CYki.js} +5 -5
- package/dist/{PayoutAccount-DPkIAGxl.js → PayoutAccount-2vZvDUNZ.js} +5 -5
- package/dist/{PayoutAccount-DOrQRIwu.js → PayoutAccount-Qzl0EU8D.js} +4 -4
- package/dist/{PayoutAccountSetting-BeN4xXv3.js → PayoutAccountSetting-DfrRhtcP.js} +4 -4
- package/dist/{Restaurant-DlQV3dot.js → Restaurant-Ckh7iZ9v.js} +4 -4
- package/dist/{RestaurantSetting-Yb9S8Wfg.js → RestaurantSetting-CeHORT_l.js} +3 -3
- package/dist/Settlement-DWj3kJpX.js +490 -0
- package/dist/{Settlement-jznt2FLc.js → Settlement-Dkf0_6WU.js} +3 -3
- package/dist/{SettlementTransactions-DLVFBcdV.js → SettlementTransactions-B_-EF9FQ.js} +4 -4
- package/dist/{SettlementTransactions-Bm7D3JZu.js → SettlementTransactions-BfDzz9CE.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-DnWFKNCZ.js → Status.vue_vue_type_script_setup_true_lang-BRylU6yC.js} +1 -1
- package/dist/{Terminal-B6wzbr0C.js → Terminal-CO1Qqx4X.js} +5 -5
- package/dist/{TerminalSetting-BV1Uh1OM.js → TerminalSetting-14CDkcsr.js} +3 -3
- package/dist/Transaction-CkZKTFNI.js +473 -0
- package/dist/{Transaction-DL0_I7Ez.js → Transaction-LS_h6ecG.js} +6 -6
- package/dist/{TransactionOld-CDKLMs5_.js → TransactionOld-Bivy85L4.js} +6 -6
- package/dist/{app-U26B2g_2.js → app-DUlTcsCJ.js} +184 -152
- package/dist/app.js +1 -1
- package/dist/{assets-DvPzXLhl.js → assets-zMyaBFbU.js} +29 -28
- package/dist/components/SourceSelector.vue.d.ts +4 -1
- package/dist/{grafana-DwrmpEec.js → grafana-D_fIUdUm.js} +1 -1
- package/dist/{index-2-UOiJfz.js → index-BganQIV3.js} +1 -1
- package/dist/{index-zMl6AuFw.js → index-C87vsLzf.js} +1 -1
- package/dist/{index-DRKoa7dT.js → index-CcCcgcKj.js} +106 -101
- package/dist/{index-OA39241x.js → index-CsxAKwXK.js} +1 -1
- package/dist/{index-BxuQxtra.js → index-D7IY2VY_.js} +1 -1
- package/dist/{index-DcB4capd.js → index-DEC3wCyK.js} +1 -1
- package/dist/{index-zvJkckUa.js → index-DGCnviAy.js} +1 -1
- package/dist/{index-PpSEr3rk.js → index-WuRUC8sI.js} +2 -2
- package/dist/{index-BPKJne1Q.js → index-cOl7pH9_.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BYTNfOkc.js → index.vue_vue_type_script_setup_true_lang-H0-KLC0F.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-9xeRIv-9.js → payout-account-DyUwLBkF.js} +3 -3
- package/dist/stores/payoutAccount.d.ts +34 -34
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +34 -34
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +56 -56
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +56 -56
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +34 -34
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +34 -34
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +56 -56
- package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +4 -4
- 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/RevenueMonsterGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +4 -4
- package/dist/views/admin/settlement/SettlementTable.vue.d.ts +4 -0
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +14 -14
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +68 -68
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +44 -44
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +22 -22
- package/dist/views/settlement/SettlementTable.vue.d.ts +5 -1
- package/dist/views/settlement/cell/InvoiceStatus.vue.d.ts +5 -0
- package/package.json +2 -2
- package/dist/Settlement-CpmdJ84I.js +0 -444
- package/dist/Transaction-BAKFOtrH.js +0 -456
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { FmApp as Dn, routes as Ln, i18nMessages as Mn } from "@feedmepos/mf-financing";
|
|
2
2
|
import { createRouter as Bn, createWebHistory as Un, useRouter as xn, useRoute as Fn } from "vue-router";
|
|
3
3
|
import { computed as Dt, watch as G, defineComponent as Lt, ref as Hn, resolveComponent as Mt, openBlock as Bt, createBlock as Ut, h as qn, onMounted as $n, onBeforeMount as Vn, unref as jn } from "vue";
|
|
4
|
-
import { useCoreStore as
|
|
4
|
+
import { useCoreStore as Ve, useI18n as Wn } from "@feedmepos/mf-common";
|
|
5
5
|
import { defineStore as zn } from "pinia";
|
|
6
6
|
import { components as Gn } from "@feedmepos/ui-library";
|
|
7
7
|
const Kn = {
|
|
8
8
|
components: {
|
|
9
9
|
select: "Select filter entity",
|
|
10
|
+
select_payout_account: "Select payout account",
|
|
10
11
|
restaurant: "Restaurant",
|
|
11
12
|
device: "Device",
|
|
12
13
|
payout_account: "Payout Account"
|
|
@@ -15,8 +16,9 @@ const Kn = {
|
|
|
15
16
|
onboard_submission: "Payment Onboarding",
|
|
16
17
|
payout_account: "Payout Account",
|
|
17
18
|
transaction: "Transactions",
|
|
18
|
-
|
|
19
|
-
settlement: "Settlements"
|
|
19
|
+
transaction_new: "Transactions",
|
|
20
|
+
settlement: "Settlements",
|
|
21
|
+
rms_settlement: "(Fiuu) Settlements"
|
|
20
22
|
},
|
|
21
23
|
settlements: {
|
|
22
24
|
title: "Settlements",
|
|
@@ -29,7 +31,8 @@ const Kn = {
|
|
|
29
31
|
created_at: "Created At",
|
|
30
32
|
sales_amount: "Sales Amount",
|
|
31
33
|
fee: "Fee",
|
|
32
|
-
settlement_amount: "Settlement Amount"
|
|
34
|
+
settlement_amount: "Settlement Amount",
|
|
35
|
+
invoice_status: "Invoice Status"
|
|
33
36
|
},
|
|
34
37
|
dialog: {
|
|
35
38
|
title: "Settlements Transactions",
|
|
@@ -76,6 +79,11 @@ const Kn = {
|
|
|
76
79
|
fee: "Fee",
|
|
77
80
|
settlement_amount: "Settlement Amount"
|
|
78
81
|
}
|
|
82
|
+
},
|
|
83
|
+
invoice: {
|
|
84
|
+
title: "Invoices & e-Invoicing",
|
|
85
|
+
description: "You can now request, view, or download your official e-Invoices directly from your account.",
|
|
86
|
+
action: "View Invoices"
|
|
79
87
|
}
|
|
80
88
|
},
|
|
81
89
|
transactions: {
|
|
@@ -390,7 +398,8 @@ const Kn = {
|
|
|
390
398
|
payout_account: "บัญชีรับเงิน",
|
|
391
399
|
transaction: "ธุรกรรม",
|
|
392
400
|
"transaction-new": "ธุรกรรม",
|
|
393
|
-
settlement: "การโอนเงินเข้าบัญชี"
|
|
401
|
+
settlement: "การโอนเงินเข้าบัญชี",
|
|
402
|
+
rms_settlement: "(Fiuu) การโอนเงินเข้าบัญชี"
|
|
394
403
|
},
|
|
395
404
|
settlements: {
|
|
396
405
|
title: "การโอนเงินเข้าบัญชี",
|
|
@@ -403,7 +412,8 @@ const Kn = {
|
|
|
403
412
|
created_at: "วันที่สร้าง",
|
|
404
413
|
sales_amount: "ยอดขาย",
|
|
405
414
|
fee: "ค่าธรรมเนียม",
|
|
406
|
-
settlement_amount: "ยอดโอนเงิน"
|
|
415
|
+
settlement_amount: "ยอดโอนเงิน",
|
|
416
|
+
invoice_status: "สถานะใบแจ้งหนี้"
|
|
407
417
|
},
|
|
408
418
|
dialog: {
|
|
409
419
|
title: "ธุรกรรมการโอนเงินเข้าบัญชี",
|
|
@@ -450,6 +460,11 @@ const Kn = {
|
|
|
450
460
|
fee: "ค่าธรรมเนียม",
|
|
451
461
|
settlement_amount: "ยอดโอนเงิน"
|
|
452
462
|
}
|
|
463
|
+
},
|
|
464
|
+
invoice: {
|
|
465
|
+
title: "ใบแจ้งหนี้และ e-Invoice",
|
|
466
|
+
description: "คุณสามารถขอ ดู หรือดาวน์โหลด e-Invoice อย่างเป็นทางการได้โดยตรงจากบัญชีของคุณ",
|
|
467
|
+
action: "ดูใบแจ้งหนี้"
|
|
453
468
|
}
|
|
454
469
|
},
|
|
455
470
|
transactions: {
|
|
@@ -763,8 +778,9 @@ const Kn = {
|
|
|
763
778
|
onboard_submission: "支付开通",
|
|
764
779
|
payout_account: "结算账户",
|
|
765
780
|
transaction: "交易订单",
|
|
766
|
-
|
|
767
|
-
settlement: "交易结算"
|
|
781
|
+
transaction_new: "交易订单",
|
|
782
|
+
settlement: "交易结算",
|
|
783
|
+
rms_settlement: "(Fiuu) 交易结算"
|
|
768
784
|
},
|
|
769
785
|
settlements: {
|
|
770
786
|
title: "交易结算",
|
|
@@ -777,7 +793,8 @@ const Kn = {
|
|
|
777
793
|
created_at: "结算时间",
|
|
778
794
|
sales_amount: "营业金额",
|
|
779
795
|
fee: "服务费用",
|
|
780
|
-
settlement_amount: "结算金额"
|
|
796
|
+
settlement_amount: "结算金额",
|
|
797
|
+
invoice_status: "发票状态"
|
|
781
798
|
},
|
|
782
799
|
dialog: {
|
|
783
800
|
title: "结算订单详细",
|
|
@@ -824,6 +841,11 @@ const Kn = {
|
|
|
824
841
|
fee: "服务费",
|
|
825
842
|
settlement_amount: "结算金额"
|
|
826
843
|
}
|
|
844
|
+
},
|
|
845
|
+
invoice: {
|
|
846
|
+
title: "发票与电子发票",
|
|
847
|
+
description: "您现在可以直接从账户中申请、查看或下载您的官方电子发票。",
|
|
848
|
+
action: "查看发票"
|
|
827
849
|
}
|
|
828
850
|
},
|
|
829
851
|
transactions: {
|
|
@@ -1134,7 +1156,7 @@ const Kn = {
|
|
|
1134
1156
|
sidebarDisplay: "Restaurants",
|
|
1135
1157
|
section: "payment-gateway"
|
|
1136
1158
|
},
|
|
1137
|
-
component: () => import("./Restaurant-
|
|
1159
|
+
component: () => import("./Restaurant-Ckh7iZ9v.js")
|
|
1138
1160
|
},
|
|
1139
1161
|
{
|
|
1140
1162
|
path: "/admin/restaurants/:restaurantId",
|
|
@@ -1143,7 +1165,7 @@ const Kn = {
|
|
|
1143
1165
|
meta: {
|
|
1144
1166
|
parent: "mf-payment-admin.restaurant"
|
|
1145
1167
|
},
|
|
1146
|
-
component: () => import("./RestaurantSetting-
|
|
1168
|
+
component: () => import("./RestaurantSetting-CeHORT_l.js")
|
|
1147
1169
|
},
|
|
1148
1170
|
{
|
|
1149
1171
|
path: "/admin/payout-accounts",
|
|
@@ -1152,7 +1174,7 @@ const Kn = {
|
|
|
1152
1174
|
sidebarDisplay: "Payout Accounts",
|
|
1153
1175
|
section: "payment-gateway"
|
|
1154
1176
|
},
|
|
1155
|
-
component: () => import("./PayoutAccount-
|
|
1177
|
+
component: () => import("./PayoutAccount-2vZvDUNZ.js")
|
|
1156
1178
|
},
|
|
1157
1179
|
{
|
|
1158
1180
|
path: "/admin/payout-accounts/:accountId",
|
|
@@ -1161,7 +1183,7 @@ const Kn = {
|
|
|
1161
1183
|
meta: {
|
|
1162
1184
|
parent: "mf-payment-admin.payout-account"
|
|
1163
1185
|
},
|
|
1164
|
-
component: () => import("./PayoutAccountSetting-
|
|
1186
|
+
component: () => import("./PayoutAccountSetting-DfrRhtcP.js")
|
|
1165
1187
|
},
|
|
1166
1188
|
{
|
|
1167
1189
|
path: "/admin/onboarding",
|
|
@@ -1170,7 +1192,7 @@ const Kn = {
|
|
|
1170
1192
|
sidebarDisplay: "Payment Onboarding",
|
|
1171
1193
|
section: "payment-gateway"
|
|
1172
1194
|
},
|
|
1173
|
-
component: () => import("./OnboardSubmission-
|
|
1195
|
+
component: () => import("./OnboardSubmission-CNJ-CYki.js")
|
|
1174
1196
|
},
|
|
1175
1197
|
{
|
|
1176
1198
|
path: "/admin/onboarding/:submissionId",
|
|
@@ -1179,7 +1201,7 @@ const Kn = {
|
|
|
1179
1201
|
meta: {
|
|
1180
1202
|
parent: "mf-payment-admin.onboard-submission"
|
|
1181
1203
|
},
|
|
1182
|
-
component: () => import("./OnboardForm-
|
|
1204
|
+
component: () => import("./OnboardForm-BLk46c4b.js")
|
|
1183
1205
|
},
|
|
1184
1206
|
{
|
|
1185
1207
|
path: "/admin/terminal/pos",
|
|
@@ -1188,7 +1210,7 @@ const Kn = {
|
|
|
1188
1210
|
sidebarDisplay: "POS",
|
|
1189
1211
|
section: "device"
|
|
1190
1212
|
},
|
|
1191
|
-
component: () => import("./Terminal-
|
|
1213
|
+
component: () => import("./Terminal-CO1Qqx4X.js"),
|
|
1192
1214
|
props: {
|
|
1193
1215
|
type: "POS"
|
|
1194
1216
|
}
|
|
@@ -1200,7 +1222,7 @@ const Kn = {
|
|
|
1200
1222
|
sidebarDisplay: "Kiosks",
|
|
1201
1223
|
section: "device"
|
|
1202
1224
|
},
|
|
1203
|
-
component: () => import("./Terminal-
|
|
1225
|
+
component: () => import("./Terminal-CO1Qqx4X.js"),
|
|
1204
1226
|
props: {
|
|
1205
1227
|
type: "KIOSK"
|
|
1206
1228
|
}
|
|
@@ -1212,7 +1234,7 @@ const Kn = {
|
|
|
1212
1234
|
sidebarDisplay: "Terminals",
|
|
1213
1235
|
section: "device"
|
|
1214
1236
|
},
|
|
1215
|
-
component: () => import("./Terminal-
|
|
1237
|
+
component: () => import("./Terminal-CO1Qqx4X.js"),
|
|
1216
1238
|
props: {
|
|
1217
1239
|
type: "TERMINAL"
|
|
1218
1240
|
}
|
|
@@ -1224,7 +1246,7 @@ const Kn = {
|
|
|
1224
1246
|
meta: {
|
|
1225
1247
|
parent: "mf-payment-admin.pos"
|
|
1226
1248
|
},
|
|
1227
|
-
component: () => import("./TerminalSetting-
|
|
1249
|
+
component: () => import("./TerminalSetting-14CDkcsr.js")
|
|
1228
1250
|
},
|
|
1229
1251
|
{
|
|
1230
1252
|
path: "/admin/terminal/kiosk/:terminalId",
|
|
@@ -1233,7 +1255,7 @@ const Kn = {
|
|
|
1233
1255
|
meta: {
|
|
1234
1256
|
parent: "mf-payment-admin.kiosk"
|
|
1235
1257
|
},
|
|
1236
|
-
component: () => import("./TerminalSetting-
|
|
1258
|
+
component: () => import("./TerminalSetting-14CDkcsr.js")
|
|
1237
1259
|
},
|
|
1238
1260
|
{
|
|
1239
1261
|
path: "/admin/terminal/terminal/:terminalId",
|
|
@@ -1242,7 +1264,7 @@ const Kn = {
|
|
|
1242
1264
|
meta: {
|
|
1243
1265
|
parent: "mf-payment-admin.terminal"
|
|
1244
1266
|
},
|
|
1245
|
-
component: () => import("./TerminalSetting-
|
|
1267
|
+
component: () => import("./TerminalSetting-14CDkcsr.js")
|
|
1246
1268
|
},
|
|
1247
1269
|
{
|
|
1248
1270
|
path: "/admin/transaction",
|
|
@@ -1250,7 +1272,7 @@ const Kn = {
|
|
|
1250
1272
|
meta: {
|
|
1251
1273
|
sidebarDisplay: "Transactions"
|
|
1252
1274
|
},
|
|
1253
|
-
component: () => import("./Transaction-
|
|
1275
|
+
component: () => import("./Transaction-LS_h6ecG.js")
|
|
1254
1276
|
},
|
|
1255
1277
|
{
|
|
1256
1278
|
path: "/admin/chargeback",
|
|
@@ -1258,7 +1280,7 @@ const Kn = {
|
|
|
1258
1280
|
meta: {
|
|
1259
1281
|
sidebarDisplay: "Chargebacks"
|
|
1260
1282
|
},
|
|
1261
|
-
component: () => import("./Chargeback-
|
|
1283
|
+
component: () => import("./Chargeback-CocH4bON.js")
|
|
1262
1284
|
},
|
|
1263
1285
|
{
|
|
1264
1286
|
path: "/admin/settlement",
|
|
@@ -1266,7 +1288,7 @@ const Kn = {
|
|
|
1266
1288
|
meta: {
|
|
1267
1289
|
sidebarDisplay: "Settlements"
|
|
1268
1290
|
},
|
|
1269
|
-
component: () => import("./Settlement-
|
|
1291
|
+
component: () => import("./Settlement-Dkf0_6WU.js")
|
|
1270
1292
|
},
|
|
1271
1293
|
{
|
|
1272
1294
|
path: "/admin/settlement/:settlementId",
|
|
@@ -1275,9 +1297,9 @@ const Kn = {
|
|
|
1275
1297
|
meta: {
|
|
1276
1298
|
parent: "mf-payment-admin.settlement"
|
|
1277
1299
|
},
|
|
1278
|
-
component: () => import("./SettlementTransactions-
|
|
1300
|
+
component: () => import("./SettlementTransactions-B_-EF9FQ.js")
|
|
1279
1301
|
}
|
|
1280
|
-
],
|
|
1302
|
+
], ue = [
|
|
1281
1303
|
{
|
|
1282
1304
|
path: "",
|
|
1283
1305
|
redirect: { name: "mf-payment-payout-account" }
|
|
@@ -1285,7 +1307,7 @@ const Kn = {
|
|
|
1285
1307
|
{
|
|
1286
1308
|
path: "/payout-account",
|
|
1287
1309
|
name: "mf-payment-payout-account",
|
|
1288
|
-
component: () => import("./PayoutAccount-
|
|
1310
|
+
component: () => import("./PayoutAccount-Qzl0EU8D.js"),
|
|
1289
1311
|
meta: {
|
|
1290
1312
|
sidebarDisplay: "i18n:payment.routes.payout_account"
|
|
1291
1313
|
}
|
|
@@ -1293,7 +1315,7 @@ const Kn = {
|
|
|
1293
1315
|
{
|
|
1294
1316
|
path: "/onboard-submission",
|
|
1295
1317
|
name: "mf-payment-onboard-submission",
|
|
1296
|
-
component: () => import("./OnboardSubmission-
|
|
1318
|
+
component: () => import("./OnboardSubmission-CIZuFLWF.js"),
|
|
1297
1319
|
meta: {
|
|
1298
1320
|
sidebarDisplay: "i18n:payment.routes.onboard_submission",
|
|
1299
1321
|
region: { MY: !0, TH: !0 }
|
|
@@ -1303,7 +1325,7 @@ const Kn = {
|
|
|
1303
1325
|
path: "/onboard-submission/:type/:submission?",
|
|
1304
1326
|
name: "mf-payment-onboard-submission-form",
|
|
1305
1327
|
props: !0,
|
|
1306
|
-
component: () => import("./OnboardForm-
|
|
1328
|
+
component: () => import("./OnboardForm-CqohYc7w.js"),
|
|
1307
1329
|
meta: {
|
|
1308
1330
|
parent: "mf-payment-onboard-submission"
|
|
1309
1331
|
}
|
|
@@ -1311,7 +1333,7 @@ const Kn = {
|
|
|
1311
1333
|
{
|
|
1312
1334
|
path: "/transaction-old",
|
|
1313
1335
|
name: "mf-payment-old-transaction",
|
|
1314
|
-
component: () => import("./TransactionOld-
|
|
1336
|
+
component: () => import("./TransactionOld-Bivy85L4.js"),
|
|
1315
1337
|
meta: {
|
|
1316
1338
|
sidebarDisplay: "i18n:payment.routes.transaction"
|
|
1317
1339
|
}
|
|
@@ -1319,25 +1341,26 @@ const Kn = {
|
|
|
1319
1341
|
{
|
|
1320
1342
|
path: "/transaction",
|
|
1321
1343
|
name: "mf-payment-transaction",
|
|
1322
|
-
component: () => import("./Transaction-
|
|
1344
|
+
component: () => import("./Transaction-CkZKTFNI.js"),
|
|
1323
1345
|
meta: {
|
|
1324
|
-
sidebarDisplay: "i18n:payment.routes.
|
|
1346
|
+
sidebarDisplay: "i18n:payment.routes.transaction_new",
|
|
1325
1347
|
sidebarNew: !0
|
|
1326
1348
|
}
|
|
1327
1349
|
},
|
|
1328
1350
|
{
|
|
1329
1351
|
path: "/settlement",
|
|
1330
1352
|
name: "mf-payment-settlement",
|
|
1331
|
-
component: () => import("./Settlement-
|
|
1353
|
+
component: () => import("./Settlement-DWj3kJpX.js"),
|
|
1332
1354
|
meta: {
|
|
1333
|
-
sidebarDisplay: "i18n:payment.routes.settlement"
|
|
1355
|
+
sidebarDisplay: "i18n:payment.routes.settlement",
|
|
1356
|
+
region: { MY: !0, SG: !0 }
|
|
1334
1357
|
}
|
|
1335
1358
|
},
|
|
1336
1359
|
{
|
|
1337
1360
|
path: "/settlement/:settlementId",
|
|
1338
1361
|
name: "mf-payment-settlement-transaction",
|
|
1339
1362
|
props: !0,
|
|
1340
|
-
component: () => import("./SettlementTransactions-
|
|
1363
|
+
component: () => import("./SettlementTransactions-BfDzz9CE.js"),
|
|
1341
1364
|
meta: {
|
|
1342
1365
|
parent: "mf-payment-settlement"
|
|
1343
1366
|
}
|
|
@@ -1802,7 +1825,7 @@ function vr(n) {
|
|
|
1802
1825
|
return !1;
|
|
1803
1826
|
return !0;
|
|
1804
1827
|
}
|
|
1805
|
-
function
|
|
1828
|
+
function de(n, e) {
|
|
1806
1829
|
if (n === e)
|
|
1807
1830
|
return !0;
|
|
1808
1831
|
const t = Object.keys(n), r = Object.keys(e);
|
|
@@ -1811,7 +1834,7 @@ function ue(n, e) {
|
|
|
1811
1834
|
return !1;
|
|
1812
1835
|
const s = n[i], a = e[i];
|
|
1813
1836
|
if (at(s) && at(a)) {
|
|
1814
|
-
if (!
|
|
1837
|
+
if (!de(s, a))
|
|
1815
1838
|
return !1;
|
|
1816
1839
|
} else if (s !== a)
|
|
1817
1840
|
return !1;
|
|
@@ -1898,7 +1921,7 @@ class wr {
|
|
|
1898
1921
|
next: e,
|
|
1899
1922
|
error: t,
|
|
1900
1923
|
complete: r
|
|
1901
|
-
}, i.next === void 0 && (i.next =
|
|
1924
|
+
}, i.next === void 0 && (i.next = Se), i.error === void 0 && (i.error = Se), i.complete === void 0 && (i.complete = Se);
|
|
1902
1925
|
const s = this.unsubscribeOne.bind(this, this.observers.length);
|
|
1903
1926
|
return this.finalized && this.task.then(() => {
|
|
1904
1927
|
try {
|
|
@@ -1944,7 +1967,7 @@ function Tr(n, e) {
|
|
|
1944
1967
|
return !0;
|
|
1945
1968
|
return !1;
|
|
1946
1969
|
}
|
|
1947
|
-
function
|
|
1970
|
+
function Se() {
|
|
1948
1971
|
}
|
|
1949
1972
|
/**
|
|
1950
1973
|
* @license
|
|
@@ -2351,7 +2374,7 @@ function Lr() {
|
|
|
2351
2374
|
IDBCursor.prototype.continuePrimaryKey
|
|
2352
2375
|
]);
|
|
2353
2376
|
}
|
|
2354
|
-
const Wt = /* @__PURE__ */ new WeakMap(),
|
|
2377
|
+
const Wt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap();
|
|
2355
2378
|
function Mr(n) {
|
|
2356
2379
|
const e = new Promise((t, r) => {
|
|
2357
2380
|
const i = () => {
|
|
@@ -2369,7 +2392,7 @@ function Mr(n) {
|
|
|
2369
2392
|
}), We.set(e, n), e;
|
|
2370
2393
|
}
|
|
2371
2394
|
function Br(n) {
|
|
2372
|
-
if (
|
|
2395
|
+
if (Me.has(n))
|
|
2373
2396
|
return;
|
|
2374
2397
|
const e = new Promise((t, r) => {
|
|
2375
2398
|
const i = () => {
|
|
@@ -2381,13 +2404,13 @@ function Br(n) {
|
|
|
2381
2404
|
};
|
|
2382
2405
|
n.addEventListener("complete", s), n.addEventListener("error", a), n.addEventListener("abort", a);
|
|
2383
2406
|
});
|
|
2384
|
-
|
|
2407
|
+
Me.set(n, e);
|
|
2385
2408
|
}
|
|
2386
|
-
let
|
|
2409
|
+
let Be = {
|
|
2387
2410
|
get(n, e, t) {
|
|
2388
2411
|
if (n instanceof IDBTransaction) {
|
|
2389
2412
|
if (e === "done")
|
|
2390
|
-
return
|
|
2413
|
+
return Me.get(n);
|
|
2391
2414
|
if (e === "objectStoreNames")
|
|
2392
2415
|
return n.objectStoreNames || zt.get(n);
|
|
2393
2416
|
if (e === "store")
|
|
@@ -2403,30 +2426,30 @@ let Me = {
|
|
|
2403
2426
|
}
|
|
2404
2427
|
};
|
|
2405
2428
|
function Ur(n) {
|
|
2406
|
-
|
|
2429
|
+
Be = n(Be);
|
|
2407
2430
|
}
|
|
2408
2431
|
function xr(n) {
|
|
2409
2432
|
return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
|
|
2410
|
-
const r = n.call(
|
|
2433
|
+
const r = n.call(Ce(this), e, ...t);
|
|
2411
2434
|
return zt.set(r, e.sort ? e.sort() : [e]), N(r);
|
|
2412
2435
|
} : Lr().includes(n) ? function(...e) {
|
|
2413
|
-
return n.apply(
|
|
2436
|
+
return n.apply(Ce(this), e), N(Wt.get(this));
|
|
2414
2437
|
} : function(...e) {
|
|
2415
|
-
return N(n.apply(
|
|
2438
|
+
return N(n.apply(Ce(this), e));
|
|
2416
2439
|
};
|
|
2417
2440
|
}
|
|
2418
2441
|
function Fr(n) {
|
|
2419
|
-
return typeof n == "function" ? xr(n) : (n instanceof IDBTransaction && Br(n), Or(n, Dr()) ? new Proxy(n,
|
|
2442
|
+
return typeof n == "function" ? xr(n) : (n instanceof IDBTransaction && Br(n), Or(n, Dr()) ? new Proxy(n, Be) : n);
|
|
2420
2443
|
}
|
|
2421
2444
|
function N(n) {
|
|
2422
2445
|
if (n instanceof IDBRequest)
|
|
2423
2446
|
return Mr(n);
|
|
2424
|
-
if (
|
|
2425
|
-
return
|
|
2447
|
+
if (Re.has(n))
|
|
2448
|
+
return Re.get(n);
|
|
2426
2449
|
const e = Fr(n);
|
|
2427
|
-
return e !== n && (
|
|
2450
|
+
return e !== n && (Re.set(n, e), We.set(e, n)), e;
|
|
2428
2451
|
}
|
|
2429
|
-
const
|
|
2452
|
+
const Ce = (n) => We.get(n);
|
|
2430
2453
|
function Hr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
2431
2454
|
const a = indexedDB.open(n, e), c = N(a);
|
|
2432
2455
|
return r && a.addEventListener("upgradeneeded", (o) => {
|
|
@@ -2441,12 +2464,12 @@ function Hr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
|
2441
2464
|
}).catch(() => {
|
|
2442
2465
|
}), c;
|
|
2443
2466
|
}
|
|
2444
|
-
const qr = ["get", "getKey", "getAll", "getAllKeys", "count"], $r = ["put", "add", "delete", "clear"],
|
|
2467
|
+
const qr = ["get", "getKey", "getAll", "getAllKeys", "count"], $r = ["put", "add", "delete", "clear"], Ae = /* @__PURE__ */ new Map();
|
|
2445
2468
|
function lt(n, e) {
|
|
2446
2469
|
if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
|
|
2447
2470
|
return;
|
|
2448
|
-
if (
|
|
2449
|
-
return
|
|
2471
|
+
if (Ae.get(e))
|
|
2472
|
+
return Ae.get(e);
|
|
2450
2473
|
const t = e.replace(/FromIndex$/, ""), r = e !== t, i = $r.includes(t);
|
|
2451
2474
|
if (
|
|
2452
2475
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
|
@@ -2461,7 +2484,7 @@ function lt(n, e) {
|
|
|
2461
2484
|
i && o.done
|
|
2462
2485
|
]))[0];
|
|
2463
2486
|
};
|
|
2464
|
-
return
|
|
2487
|
+
return Ae.set(e, s), s;
|
|
2465
2488
|
}
|
|
2466
2489
|
Ur((n) => ({
|
|
2467
2490
|
...n,
|
|
@@ -2504,7 +2527,7 @@ function jr(n) {
|
|
|
2504
2527
|
const e = n.getComponent();
|
|
2505
2528
|
return (e == null ? void 0 : e.type) === "VERSION";
|
|
2506
2529
|
}
|
|
2507
|
-
const
|
|
2530
|
+
const Ue = "@firebase/app", ut = "0.10.13";
|
|
2508
2531
|
/**
|
|
2509
2532
|
* @license
|
|
2510
2533
|
* Copyright 2019 Google LLC
|
|
@@ -2538,8 +2561,8 @@ const T = new jt("@firebase/app"), Wr = "@firebase/app-compat", zr = "@firebase/
|
|
|
2538
2561
|
* See the License for the specific language governing permissions and
|
|
2539
2562
|
* limitations under the License.
|
|
2540
2563
|
*/
|
|
2541
|
-
const
|
|
2542
|
-
[
|
|
2564
|
+
const xe = "[DEFAULT]", bi = {
|
|
2565
|
+
[Ue]: "fire-core",
|
|
2543
2566
|
[Wr]: "fire-core-compat",
|
|
2544
2567
|
[Gr]: "fire-analytics",
|
|
2545
2568
|
[zr]: "fire-analytics-compat",
|
|
@@ -2584,7 +2607,7 @@ const Ue = "[DEFAULT]", bi = {
|
|
|
2584
2607
|
* See the License for the specific language governing permissions and
|
|
2585
2608
|
* limitations under the License.
|
|
2586
2609
|
*/
|
|
2587
|
-
const
|
|
2610
|
+
const he = /* @__PURE__ */ new Map(), yi = /* @__PURE__ */ new Map(), Fe = /* @__PURE__ */ new Map();
|
|
2588
2611
|
function dt(n, e) {
|
|
2589
2612
|
try {
|
|
2590
2613
|
n.container.addComponent(e);
|
|
@@ -2594,10 +2617,10 @@ function dt(n, e) {
|
|
|
2594
2617
|
}
|
|
2595
2618
|
function Y(n) {
|
|
2596
2619
|
const e = n.name;
|
|
2597
|
-
if (
|
|
2620
|
+
if (Fe.has(e))
|
|
2598
2621
|
return T.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
2599
|
-
|
|
2600
|
-
for (const t of
|
|
2622
|
+
Fe.set(e, n);
|
|
2623
|
+
for (const t of he.values())
|
|
2601
2624
|
dt(t, n);
|
|
2602
2625
|
for (const t of yi.values())
|
|
2603
2626
|
dt(t, n);
|
|
@@ -2720,7 +2743,7 @@ const te = _i;
|
|
|
2720
2743
|
function Kt(n, e = {}) {
|
|
2721
2744
|
let t = n;
|
|
2722
2745
|
typeof e != "object" && (e = { name: e });
|
|
2723
|
-
const r = Object.assign({ name:
|
|
2746
|
+
const r = Object.assign({ name: xe, automaticDataCollectionEnabled: !1 }, e), i = r.name;
|
|
2724
2747
|
if (typeof i != "string" || !i)
|
|
2725
2748
|
throw O.create("bad-app-name", {
|
|
2726
2749
|
appName: String(i)
|
|
@@ -2730,21 +2753,21 @@ function Kt(n, e = {}) {
|
|
|
2730
2753
|
"no-options"
|
|
2731
2754
|
/* AppError.NO_OPTIONS */
|
|
2732
2755
|
);
|
|
2733
|
-
const s =
|
|
2756
|
+
const s = he.get(i);
|
|
2734
2757
|
if (s) {
|
|
2735
|
-
if (
|
|
2758
|
+
if (de(t, s.options) && de(r, s.config))
|
|
2736
2759
|
return s;
|
|
2737
2760
|
throw O.create("duplicate-app", { appName: i });
|
|
2738
2761
|
}
|
|
2739
2762
|
const a = new Rr(i);
|
|
2740
|
-
for (const o of
|
|
2763
|
+
for (const o of Fe.values())
|
|
2741
2764
|
a.addComponent(o);
|
|
2742
2765
|
const c = new Ii(t, r, a);
|
|
2743
|
-
return
|
|
2766
|
+
return he.set(i, c), c;
|
|
2744
2767
|
}
|
|
2745
|
-
function wi(n =
|
|
2746
|
-
const e =
|
|
2747
|
-
if (!e && n ===
|
|
2768
|
+
function wi(n = xe) {
|
|
2769
|
+
const e = he.get(n);
|
|
2770
|
+
if (!e && n === xe && $t())
|
|
2748
2771
|
return Kt();
|
|
2749
2772
|
if (!e)
|
|
2750
2773
|
throw O.create("no-app", { appName: n });
|
|
@@ -2786,9 +2809,9 @@ function H(n, e, t) {
|
|
|
2786
2809
|
* limitations under the License.
|
|
2787
2810
|
*/
|
|
2788
2811
|
const Ti = "firebase-heartbeat-database", ki = 1, X = "firebase-heartbeat-store";
|
|
2789
|
-
let
|
|
2812
|
+
let Pe = null;
|
|
2790
2813
|
function Jt() {
|
|
2791
|
-
return
|
|
2814
|
+
return Pe || (Pe = Hr(Ti, ki, {
|
|
2792
2815
|
upgrade: (n, e) => {
|
|
2793
2816
|
switch (e) {
|
|
2794
2817
|
case 0:
|
|
@@ -2803,7 +2826,7 @@ function Jt() {
|
|
|
2803
2826
|
throw O.create("idb-open", {
|
|
2804
2827
|
originalErrorMessage: n.message
|
|
2805
2828
|
});
|
|
2806
|
-
})),
|
|
2829
|
+
})), Pe;
|
|
2807
2830
|
}
|
|
2808
2831
|
async function Ei(n) {
|
|
2809
2832
|
try {
|
|
@@ -3004,7 +3027,7 @@ function Ni(n) {
|
|
|
3004
3027
|
(e) => new Ci(e),
|
|
3005
3028
|
"PRIVATE"
|
|
3006
3029
|
/* ComponentType.PRIVATE */
|
|
3007
|
-
)), H(
|
|
3030
|
+
)), H(Ue, ut, n), H(Ue, ut, "esm2017"), H("fire-js", "");
|
|
3008
3031
|
}
|
|
3009
3032
|
Ni("");
|
|
3010
3033
|
var Oi = "firebase", Di = "10.14.1";
|
|
@@ -3064,12 +3087,12 @@ const Li = Xt, Qt = new Z("auth", "Firebase", Xt());
|
|
|
3064
3087
|
* See the License for the specific language governing permissions and
|
|
3065
3088
|
* limitations under the License.
|
|
3066
3089
|
*/
|
|
3067
|
-
const
|
|
3090
|
+
const pe = new jt("@firebase/auth");
|
|
3068
3091
|
function Mi(n, ...e) {
|
|
3069
|
-
|
|
3092
|
+
pe.logLevel <= p.WARN && pe.warn(`Auth (${te}): ${n}`, ...e);
|
|
3070
3093
|
}
|
|
3071
3094
|
function ae(n, ...e) {
|
|
3072
|
-
|
|
3095
|
+
pe.logLevel <= p.ERROR && pe.error(`Auth (${te}): ${n}`, ...e);
|
|
3073
3096
|
}
|
|
3074
3097
|
/**
|
|
3075
3098
|
* @license
|
|
@@ -3136,7 +3159,7 @@ function E(n, e) {
|
|
|
3136
3159
|
* See the License for the specific language governing permissions and
|
|
3137
3160
|
* limitations under the License.
|
|
3138
3161
|
*/
|
|
3139
|
-
function
|
|
3162
|
+
function He() {
|
|
3140
3163
|
var n;
|
|
3141
3164
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
|
|
3142
3165
|
}
|
|
@@ -3390,7 +3413,7 @@ const Fi = {
|
|
|
3390
3413
|
* limitations under the License.
|
|
3391
3414
|
*/
|
|
3392
3415
|
const Hi = new ne(3e4, 6e4);
|
|
3393
|
-
function
|
|
3416
|
+
function be(n, e) {
|
|
3394
3417
|
return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
|
|
3395
3418
|
}
|
|
3396
3419
|
async function z(n, e, t, r, i = {}) {
|
|
@@ -3538,14 +3561,14 @@ async function Vi(n, e = !1) {
|
|
|
3538
3561
|
return {
|
|
3539
3562
|
claims: i,
|
|
3540
3563
|
token: r,
|
|
3541
|
-
authTime: J(
|
|
3542
|
-
issuedAtTime: J(
|
|
3543
|
-
expirationTime: J(
|
|
3564
|
+
authTime: J(Ne(i.auth_time)),
|
|
3565
|
+
issuedAtTime: J(Ne(i.iat)),
|
|
3566
|
+
expirationTime: J(Ne(i.exp)),
|
|
3544
3567
|
signInProvider: a || null,
|
|
3545
3568
|
signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
|
|
3546
3569
|
};
|
|
3547
3570
|
}
|
|
3548
|
-
function
|
|
3571
|
+
function Ne(n) {
|
|
3549
3572
|
return Number(n) * 1e3;
|
|
3550
3573
|
}
|
|
3551
3574
|
function Je(n) {
|
|
@@ -3681,7 +3704,7 @@ class Wi {
|
|
|
3681
3704
|
* See the License for the specific language governing permissions and
|
|
3682
3705
|
* limitations under the License.
|
|
3683
3706
|
*/
|
|
3684
|
-
class
|
|
3707
|
+
class qe {
|
|
3685
3708
|
constructor(e, t) {
|
|
3686
3709
|
this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
|
|
3687
3710
|
}
|
|
@@ -3714,7 +3737,7 @@ class He {
|
|
|
3714
3737
|
* See the License for the specific language governing permissions and
|
|
3715
3738
|
* limitations under the License.
|
|
3716
3739
|
*/
|
|
3717
|
-
async function
|
|
3740
|
+
async function fe(n) {
|
|
3718
3741
|
var e;
|
|
3719
3742
|
const t = n.auth, r = await n.getIdToken(), i = await Q(n, sn(t, { idToken: r }));
|
|
3720
3743
|
h(
|
|
@@ -3734,14 +3757,14 @@ async function pe(n) {
|
|
|
3734
3757
|
phoneNumber: s.phoneNumber || null,
|
|
3735
3758
|
tenantId: s.tenantId || null,
|
|
3736
3759
|
providerData: c,
|
|
3737
|
-
metadata: new
|
|
3760
|
+
metadata: new qe(s.createdAt, s.lastLoginAt),
|
|
3738
3761
|
isAnonymous: u
|
|
3739
3762
|
};
|
|
3740
3763
|
Object.assign(n, d);
|
|
3741
3764
|
}
|
|
3742
3765
|
async function zi(n) {
|
|
3743
3766
|
const e = W(n);
|
|
3744
|
-
await
|
|
3767
|
+
await fe(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
3745
3768
|
}
|
|
3746
3769
|
function Gi(n, e) {
|
|
3747
3770
|
return [...n.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
|
|
@@ -3797,7 +3820,7 @@ async function Ki(n, e) {
|
|
|
3797
3820
|
};
|
|
3798
3821
|
}
|
|
3799
3822
|
async function Ji(n, e) {
|
|
3800
|
-
return z(n, "POST", "/v2/accounts:revokeToken",
|
|
3823
|
+
return z(n, "POST", "/v2/accounts:revokeToken", be(n, e));
|
|
3801
3824
|
}
|
|
3802
3825
|
/**
|
|
3803
3826
|
* @license
|
|
@@ -3915,7 +3938,7 @@ function S(n, e) {
|
|
|
3915
3938
|
class I {
|
|
3916
3939
|
constructor(e) {
|
|
3917
3940
|
var { uid: t, auth: r, stsTokenManager: i } = e, s = ze(e, ["uid", "auth", "stsTokenManager"]);
|
|
3918
|
-
this.providerId = "firebase", this.proactiveRefresh = new Wi(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = r, this.stsTokenManager = i, this.accessToken = i.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new
|
|
3941
|
+
this.providerId = "firebase", this.proactiveRefresh = new Wi(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = r, this.stsTokenManager = i, this.accessToken = i.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new qe(s.createdAt || void 0, s.lastLoginAt || void 0);
|
|
3919
3942
|
}
|
|
3920
3943
|
async getIdToken(e) {
|
|
3921
3944
|
const t = await Q(this, this.stsTokenManager.getToken(this.auth, e));
|
|
@@ -3963,7 +3986,7 @@ class I {
|
|
|
3963
3986
|
}
|
|
3964
3987
|
async _updateTokensIfNecessary(e, t = !1) {
|
|
3965
3988
|
let r = !1;
|
|
3966
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await
|
|
3989
|
+
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await fe(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
|
|
3967
3990
|
}
|
|
3968
3991
|
async delete() {
|
|
3969
3992
|
if (y(this.auth.app))
|
|
@@ -3997,16 +4020,16 @@ class I {
|
|
|
3997
4020
|
}
|
|
3998
4021
|
static _fromJSON(e, t) {
|
|
3999
4022
|
var r, i, s, a, c, o, l, u;
|
|
4000
|
-
const d = (r = t.displayName) !== null && r !== void 0 ? r : void 0, f = (i = t.email) !== null && i !== void 0 ? i : void 0, m = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, x = (a = t.photoURL) !== null && a !== void 0 ? a : void 0, et = (c = t.tenantId) !== null && c !== void 0 ? c : void 0,
|
|
4023
|
+
const d = (r = t.displayName) !== null && r !== void 0 ? r : void 0, f = (i = t.email) !== null && i !== void 0 ? i : void 0, m = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, x = (a = t.photoURL) !== null && a !== void 0 ? a : void 0, et = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, we = (o = t._redirectEventId) !== null && o !== void 0 ? o : void 0, tt = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, nt = (u = t.lastLoginAt) !== null && u !== void 0 ? u : void 0, { uid: Te, emailVerified: rt, isAnonymous: it, providerData: ke, stsTokenManager: st } = t;
|
|
4001
4024
|
h(
|
|
4002
|
-
|
|
4025
|
+
Te && st,
|
|
4003
4026
|
e,
|
|
4004
4027
|
"internal-error"
|
|
4005
4028
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
4006
4029
|
);
|
|
4007
4030
|
const Nn = q.fromJSON(this.name, st);
|
|
4008
4031
|
h(
|
|
4009
|
-
typeof
|
|
4032
|
+
typeof Te == "string",
|
|
4010
4033
|
e,
|
|
4011
4034
|
"internal-error"
|
|
4012
4035
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -4020,9 +4043,9 @@ class I {
|
|
|
4020
4043
|
e,
|
|
4021
4044
|
"internal-error"
|
|
4022
4045
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
4023
|
-
), S(m, e.name), S(x, e.name), S(et, e.name), S(
|
|
4024
|
-
const
|
|
4025
|
-
uid:
|
|
4046
|
+
), S(m, e.name), S(x, e.name), S(et, e.name), S(we, e.name), S(tt, e.name), S(nt, e.name);
|
|
4047
|
+
const Ee = new I({
|
|
4048
|
+
uid: Te,
|
|
4026
4049
|
auth: e,
|
|
4027
4050
|
email: f,
|
|
4028
4051
|
emailVerified: rt,
|
|
@@ -4035,7 +4058,7 @@ class I {
|
|
|
4035
4058
|
createdAt: tt,
|
|
4036
4059
|
lastLoginAt: nt
|
|
4037
4060
|
});
|
|
4038
|
-
return
|
|
4061
|
+
return ke && Array.isArray(ke) && (Ee.providerData = ke.map((On) => Object.assign({}, On))), we && (Ee._redirectEventId = we), Ee;
|
|
4039
4062
|
}
|
|
4040
4063
|
/**
|
|
4041
4064
|
* Initialize a User from an idToken server response
|
|
@@ -4051,7 +4074,7 @@ class I {
|
|
|
4051
4074
|
stsTokenManager: i,
|
|
4052
4075
|
isAnonymous: r
|
|
4053
4076
|
});
|
|
4054
|
-
return await
|
|
4077
|
+
return await fe(s), s;
|
|
4055
4078
|
}
|
|
4056
4079
|
/**
|
|
4057
4080
|
* Initialize a User from an idToken server response
|
|
@@ -4081,7 +4104,7 @@ class I {
|
|
|
4081
4104
|
phoneNumber: i.phoneNumber || null,
|
|
4082
4105
|
tenantId: i.tenantId || null,
|
|
4083
4106
|
providerData: s,
|
|
4084
|
-
metadata: new
|
|
4107
|
+
metadata: new qe(i.createdAt, i.lastLoginAt),
|
|
4085
4108
|
isAnonymous: !(i.email && i.passwordHash) && !(s != null && s.length)
|
|
4086
4109
|
};
|
|
4087
4110
|
return Object.assign(o, l), o;
|
|
@@ -4412,7 +4435,7 @@ class Qi {
|
|
|
4412
4435
|
* limitations under the License.
|
|
4413
4436
|
*/
|
|
4414
4437
|
async function Zi(n, e = {}) {
|
|
4415
|
-
return z(n, "GET", "/v2/passwordPolicy",
|
|
4438
|
+
return z(n, "GET", "/v2/passwordPolicy", be(n, e));
|
|
4416
4439
|
}
|
|
4417
4440
|
/**
|
|
4418
4441
|
* @license
|
|
@@ -4606,7 +4629,7 @@ class ns {
|
|
|
4606
4629
|
}
|
|
4607
4630
|
async reloadAndSetCurrentUserOrClear(e) {
|
|
4608
4631
|
try {
|
|
4609
|
-
await
|
|
4632
|
+
await fe(e);
|
|
4610
4633
|
} catch (t) {
|
|
4611
4634
|
if ((t == null ? void 0 : t.code) !== "auth/network-request-failed")
|
|
4612
4635
|
return this.directlySetCurrentUser(null);
|
|
@@ -4851,7 +4874,7 @@ class ns {
|
|
|
4851
4874
|
return t != null && t.error && Mi(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
|
|
4852
4875
|
}
|
|
4853
4876
|
}
|
|
4854
|
-
function
|
|
4877
|
+
function ye(n) {
|
|
4855
4878
|
return W(n);
|
|
4856
4879
|
}
|
|
4857
4880
|
class It {
|
|
@@ -4923,7 +4946,7 @@ function os(n, e) {
|
|
|
4923
4946
|
const t = Gt(n, "auth");
|
|
4924
4947
|
if (t.isInitialized()) {
|
|
4925
4948
|
const i = t.getImmediate(), s = t.getOptions();
|
|
4926
|
-
if (
|
|
4949
|
+
if (de(s, e ?? {}))
|
|
4927
4950
|
return i;
|
|
4928
4951
|
k(
|
|
4929
4952
|
i,
|
|
@@ -4938,7 +4961,7 @@ function cs(n, e) {
|
|
|
4938
4961
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
|
4939
4962
|
}
|
|
4940
4963
|
function ls(n, e, t) {
|
|
4941
|
-
const r =
|
|
4964
|
+
const r = ye(n);
|
|
4942
4965
|
h(
|
|
4943
4966
|
r._canInitEmulator,
|
|
4944
4967
|
r,
|
|
@@ -5047,7 +5070,7 @@ class bn {
|
|
|
5047
5070
|
* limitations under the License.
|
|
5048
5071
|
*/
|
|
5049
5072
|
async function V(n, e) {
|
|
5050
|
-
return nn(n, "POST", "/v1/accounts:signInWithIdp",
|
|
5073
|
+
return nn(n, "POST", "/v1/accounts:signInWithIdp", be(n, e));
|
|
5051
5074
|
}
|
|
5052
5075
|
/**
|
|
5053
5076
|
* @license
|
|
@@ -5566,10 +5589,10 @@ function Tt(n) {
|
|
|
5566
5589
|
* See the License for the specific language governing permissions and
|
|
5567
5590
|
* limitations under the License.
|
|
5568
5591
|
*/
|
|
5569
|
-
class
|
|
5592
|
+
class me extends L {
|
|
5570
5593
|
constructor(e, t, r, i) {
|
|
5571
5594
|
var s;
|
|
5572
|
-
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this,
|
|
5595
|
+
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this, me.prototype), this.customData = {
|
|
5573
5596
|
appName: e.name,
|
|
5574
5597
|
tenantId: (s = e.tenantId) !== null && s !== void 0 ? s : void 0,
|
|
5575
5598
|
_serverResponse: t.customData._serverResponse,
|
|
@@ -5577,12 +5600,12 @@ class fe extends L {
|
|
|
5577
5600
|
};
|
|
5578
5601
|
}
|
|
5579
5602
|
static _fromErrorAndOperation(e, t, r, i) {
|
|
5580
|
-
return new
|
|
5603
|
+
return new me(e, t, r, i);
|
|
5581
5604
|
}
|
|
5582
5605
|
}
|
|
5583
5606
|
function vn(n, e, t, r) {
|
|
5584
5607
|
return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
|
|
5585
|
-
throw s.code === "auth/multi-factor-auth-required" ?
|
|
5608
|
+
throw s.code === "auth/multi-factor-auth-required" ? me._fromErrorAndOperation(n, s, e, r) : s;
|
|
5586
5609
|
});
|
|
5587
5610
|
}
|
|
5588
5611
|
async function ps(n, e, t = !1) {
|
|
@@ -5679,7 +5702,7 @@ async function ms(n, e, t = !1) {
|
|
|
5679
5702
|
* limitations under the License.
|
|
5680
5703
|
*/
|
|
5681
5704
|
async function gs(n, e) {
|
|
5682
|
-
return nn(n, "POST", "/v1/accounts:signInWithCustomToken",
|
|
5705
|
+
return nn(n, "POST", "/v1/accounts:signInWithCustomToken", be(n, e));
|
|
5683
5706
|
}
|
|
5684
5707
|
/**
|
|
5685
5708
|
* @license
|
|
@@ -5700,7 +5723,7 @@ async function gs(n, e) {
|
|
|
5700
5723
|
async function _s(n, e) {
|
|
5701
5724
|
if (y(n.app))
|
|
5702
5725
|
return Promise.reject(D(n));
|
|
5703
|
-
const t =
|
|
5726
|
+
const t = ye(n), r = await gs(t, {
|
|
5704
5727
|
token: e,
|
|
5705
5728
|
returnSecureToken: !0
|
|
5706
5729
|
}), i = await U._fromIdTokenResponse(t, "signIn", r);
|
|
@@ -5712,7 +5735,7 @@ function bs(n, e, t, r) {
|
|
|
5712
5735
|
function ys(n, e, t) {
|
|
5713
5736
|
return W(n).beforeAuthStateChanged(e, t);
|
|
5714
5737
|
}
|
|
5715
|
-
const
|
|
5738
|
+
const ge = "__sak";
|
|
5716
5739
|
/**
|
|
5717
5740
|
* @license
|
|
5718
5741
|
* Copyright 2019 Google LLC
|
|
@@ -5735,7 +5758,7 @@ class In {
|
|
|
5735
5758
|
}
|
|
5736
5759
|
_isAvailable() {
|
|
5737
5760
|
try {
|
|
5738
|
-
return this.storage ? (this.storage.setItem(
|
|
5761
|
+
return this.storage ? (this.storage.setItem(ge, "1"), this.storage.removeItem(ge), Promise.resolve(!0)) : Promise.resolve(!1);
|
|
5739
5762
|
} catch {
|
|
5740
5763
|
return Promise.resolve(!1);
|
|
5741
5764
|
}
|
|
@@ -5929,7 +5952,7 @@ function Ts(n) {
|
|
|
5929
5952
|
* See the License for the specific language governing permissions and
|
|
5930
5953
|
* limitations under the License.
|
|
5931
5954
|
*/
|
|
5932
|
-
class
|
|
5955
|
+
class ve {
|
|
5933
5956
|
constructor(e) {
|
|
5934
5957
|
this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
|
|
5935
5958
|
}
|
|
@@ -5943,7 +5966,7 @@ class ye {
|
|
|
5943
5966
|
const t = this.receivers.find((i) => i.isListeningto(e));
|
|
5944
5967
|
if (t)
|
|
5945
5968
|
return t;
|
|
5946
|
-
const r = new
|
|
5969
|
+
const r = new ve(e);
|
|
5947
5970
|
return this.receivers.push(r), r;
|
|
5948
5971
|
}
|
|
5949
5972
|
isListeningto(e) {
|
|
@@ -5997,7 +6020,7 @@ class ye {
|
|
|
5997
6020
|
this.handlersMap[e] && t && this.handlersMap[e].delete(t), (!t || this.handlersMap[e].size === 0) && delete this.handlersMap[e], Object.keys(this.handlersMap).length === 0 && this.eventTarget.removeEventListener("message", this.boundEventHandler);
|
|
5998
6021
|
}
|
|
5999
6022
|
}
|
|
6000
|
-
|
|
6023
|
+
ve.receivers = [];
|
|
6001
6024
|
/**
|
|
6002
6025
|
* @license
|
|
6003
6026
|
* Copyright 2020 Google LLC
|
|
@@ -6190,7 +6213,7 @@ function Cs() {
|
|
|
6190
6213
|
* See the License for the specific language governing permissions and
|
|
6191
6214
|
* limitations under the License.
|
|
6192
6215
|
*/
|
|
6193
|
-
const Sn = "firebaseLocalStorageDb", As = 1,
|
|
6216
|
+
const Sn = "firebaseLocalStorageDb", As = 1, _e = "firebaseLocalStorage", Rn = "fbase_key";
|
|
6194
6217
|
class ie {
|
|
6195
6218
|
constructor(e) {
|
|
6196
6219
|
this.request = e;
|
|
@@ -6205,14 +6228,14 @@ class ie {
|
|
|
6205
6228
|
});
|
|
6206
6229
|
}
|
|
6207
6230
|
}
|
|
6208
|
-
function
|
|
6209
|
-
return n.transaction([
|
|
6231
|
+
function Ie(n, e) {
|
|
6232
|
+
return n.transaction([_e], e ? "readwrite" : "readonly").objectStore(_e);
|
|
6210
6233
|
}
|
|
6211
6234
|
function Ps() {
|
|
6212
6235
|
const n = indexedDB.deleteDatabase(Sn);
|
|
6213
6236
|
return new ie(n).toPromise();
|
|
6214
6237
|
}
|
|
6215
|
-
function
|
|
6238
|
+
function $e() {
|
|
6216
6239
|
const n = indexedDB.open(Sn, As);
|
|
6217
6240
|
return new Promise((e, t) => {
|
|
6218
6241
|
n.addEventListener("error", () => {
|
|
@@ -6220,29 +6243,29 @@ function qe() {
|
|
|
6220
6243
|
}), n.addEventListener("upgradeneeded", () => {
|
|
6221
6244
|
const r = n.result;
|
|
6222
6245
|
try {
|
|
6223
|
-
r.createObjectStore(
|
|
6246
|
+
r.createObjectStore(_e, { keyPath: Rn });
|
|
6224
6247
|
} catch (i) {
|
|
6225
6248
|
t(i);
|
|
6226
6249
|
}
|
|
6227
6250
|
}), n.addEventListener("success", async () => {
|
|
6228
6251
|
const r = n.result;
|
|
6229
|
-
r.objectStoreNames.contains(
|
|
6252
|
+
r.objectStoreNames.contains(_e) ? e(r) : (r.close(), await Ps(), e(await $e()));
|
|
6230
6253
|
});
|
|
6231
6254
|
});
|
|
6232
6255
|
}
|
|
6233
6256
|
async function kt(n, e, t) {
|
|
6234
|
-
const r =
|
|
6257
|
+
const r = Ie(n, !0).put({
|
|
6235
6258
|
[Rn]: e,
|
|
6236
6259
|
value: t
|
|
6237
6260
|
});
|
|
6238
6261
|
return new ie(r).toPromise();
|
|
6239
6262
|
}
|
|
6240
6263
|
async function Ns(n, e) {
|
|
6241
|
-
const t =
|
|
6264
|
+
const t = Ie(n, !1).get(e), r = await new ie(t).toPromise();
|
|
6242
6265
|
return r === void 0 ? null : r.value;
|
|
6243
6266
|
}
|
|
6244
6267
|
function Et(n, e) {
|
|
6245
|
-
const t =
|
|
6268
|
+
const t = Ie(n, !0).delete(e);
|
|
6246
6269
|
return new ie(t).toPromise();
|
|
6247
6270
|
}
|
|
6248
6271
|
const Os = 800, Ds = 3;
|
|
@@ -6253,7 +6276,7 @@ class Cn {
|
|
|
6253
6276
|
});
|
|
6254
6277
|
}
|
|
6255
6278
|
async _openDb() {
|
|
6256
|
-
return this.db ? this.db : (this.db = await
|
|
6279
|
+
return this.db ? this.db : (this.db = await $e(), this.db);
|
|
6257
6280
|
}
|
|
6258
6281
|
async _withRetries(e) {
|
|
6259
6282
|
let t = 0;
|
|
@@ -6278,7 +6301,7 @@ class Cn {
|
|
|
6278
6301
|
* As the worker we should listen to events from the main window.
|
|
6279
6302
|
*/
|
|
6280
6303
|
async initializeReceiver() {
|
|
6281
|
-
this.receiver =
|
|
6304
|
+
this.receiver = ve._getInstance(Cs()), this.receiver._subscribe("keyChanged", async (e, t) => ({
|
|
6282
6305
|
keyProcessed: (await this._poll()).includes(t.key)
|
|
6283
6306
|
})), this.receiver._subscribe("ping", async (e, t) => [
|
|
6284
6307
|
"keyChanged"
|
|
@@ -6334,8 +6357,8 @@ class Cn {
|
|
|
6334
6357
|
try {
|
|
6335
6358
|
if (!indexedDB)
|
|
6336
6359
|
return !1;
|
|
6337
|
-
const e = await
|
|
6338
|
-
return await kt(e,
|
|
6360
|
+
const e = await $e();
|
|
6361
|
+
return await kt(e, ge, "1"), await Et(e, ge), !0;
|
|
6339
6362
|
} catch {
|
|
6340
6363
|
}
|
|
6341
6364
|
return !1;
|
|
@@ -6360,7 +6383,7 @@ class Cn {
|
|
|
6360
6383
|
}
|
|
6361
6384
|
async _poll() {
|
|
6362
6385
|
const e = await this._withRetries((i) => {
|
|
6363
|
-
const s =
|
|
6386
|
+
const s = Ie(i, !1).getAll();
|
|
6364
6387
|
return new ie(s).toPromise();
|
|
6365
6388
|
});
|
|
6366
6389
|
if (!e)
|
|
@@ -6740,7 +6763,7 @@ function Ws(n) {
|
|
|
6740
6763
|
async function zs(n, e, t = !1) {
|
|
6741
6764
|
if (y(n.app))
|
|
6742
6765
|
return Promise.reject(D(n));
|
|
6743
|
-
const r =
|
|
6766
|
+
const r = ye(n), i = Ms(r, e), a = await new qs(r, i, t).execute();
|
|
6744
6767
|
return a && !t && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
|
|
6745
6768
|
}
|
|
6746
6769
|
/**
|
|
@@ -6868,7 +6891,7 @@ async function Zs(n) {
|
|
|
6868
6891
|
);
|
|
6869
6892
|
}
|
|
6870
6893
|
function ea(n) {
|
|
6871
|
-
const e =
|
|
6894
|
+
const e = He(), { protocol: t, hostname: r } = new URL(e);
|
|
6872
6895
|
if (n.startsWith("chrome-extension://")) {
|
|
6873
6896
|
const a = new URL(n);
|
|
6874
6897
|
return a.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && a.hostname === r;
|
|
@@ -7165,7 +7188,7 @@ function Ia({ config: n }) {
|
|
|
7165
7188
|
* See the License for the specific language governing permissions and
|
|
7166
7189
|
* limitations under the License.
|
|
7167
7190
|
*/
|
|
7168
|
-
const
|
|
7191
|
+
const Oe = "webStorageSupport";
|
|
7169
7192
|
class wa {
|
|
7170
7193
|
constructor() {
|
|
7171
7194
|
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = kn, this._completeRedirectFn = zs, this._overrideRedirectResult = Vs;
|
|
@@ -7175,12 +7198,12 @@ class wa {
|
|
|
7175
7198
|
async _openPopup(e, t, r, i) {
|
|
7176
7199
|
var s;
|
|
7177
7200
|
E((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
|
7178
|
-
const a = await At(e, t, r,
|
|
7201
|
+
const a = await At(e, t, r, He(), i);
|
|
7179
7202
|
return ga(e, a, Qe());
|
|
7180
7203
|
}
|
|
7181
7204
|
async _openRedirect(e, t, r, i) {
|
|
7182
7205
|
await this._originValidation(e);
|
|
7183
|
-
const s = await At(e, t, r,
|
|
7206
|
+
const s = await At(e, t, r, He(), i);
|
|
7184
7207
|
return Es(s), new Promise(() => {
|
|
7185
7208
|
});
|
|
7186
7209
|
}
|
|
@@ -7208,9 +7231,9 @@ class wa {
|
|
|
7208
7231
|
}), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = t, r;
|
|
7209
7232
|
}
|
|
7210
7233
|
_isIframeWebStorageSupported(e, t) {
|
|
7211
|
-
this.iframes[e._key()].send(
|
|
7234
|
+
this.iframes[e._key()].send(Oe, { type: Oe }, (i) => {
|
|
7212
7235
|
var s;
|
|
7213
|
-
const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[
|
|
7236
|
+
const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[Oe];
|
|
7214
7237
|
a !== void 0 && t(!!a), k(
|
|
7215
7238
|
e,
|
|
7216
7239
|
"internal-error"
|
|
@@ -7341,7 +7364,7 @@ function Sa(n) {
|
|
|
7341
7364
|
})), Y(new j(
|
|
7342
7365
|
"auth-internal",
|
|
7343
7366
|
(e) => {
|
|
7344
|
-
const t =
|
|
7367
|
+
const t = ye(e.getProvider(
|
|
7345
7368
|
"auth"
|
|
7346
7369
|
/* _ComponentName.AUTH */
|
|
7347
7370
|
).getImmediate());
|
|
@@ -7434,7 +7457,7 @@ Sa(
|
|
|
7434
7457
|
const Oa = Bn({
|
|
7435
7458
|
history: Un(),
|
|
7436
7459
|
routes: [
|
|
7437
|
-
...
|
|
7460
|
+
...ue,
|
|
7438
7461
|
...K,
|
|
7439
7462
|
{
|
|
7440
7463
|
path: "/forbidden",
|
|
@@ -7443,7 +7466,7 @@ const Oa = Bn({
|
|
|
7443
7466
|
}
|
|
7444
7467
|
]
|
|
7445
7468
|
});
|
|
7446
|
-
let
|
|
7469
|
+
let De, Le;
|
|
7447
7470
|
Oa.beforeEach(async (n) => {
|
|
7448
7471
|
const {
|
|
7449
7472
|
sessionUser: e,
|
|
@@ -7451,10 +7474,10 @@ Oa.beforeEach(async (n) => {
|
|
|
7451
7474
|
currentBusiness: r,
|
|
7452
7475
|
readRestaurants: i,
|
|
7453
7476
|
changeRestaurant: s
|
|
7454
|
-
} =
|
|
7477
|
+
} = Ve();
|
|
7455
7478
|
if (n.name && n.name.startsWith("mf-payment-admin")) {
|
|
7456
7479
|
if (!e.value) {
|
|
7457
|
-
|
|
7480
|
+
De || (De = new Promise((c) => {
|
|
7458
7481
|
const o = G(e, (l) => {
|
|
7459
7482
|
var u, d;
|
|
7460
7483
|
l && (o(), c(
|
|
@@ -7462,12 +7485,12 @@ Oa.beforeEach(async (n) => {
|
|
|
7462
7485
|
));
|
|
7463
7486
|
});
|
|
7464
7487
|
}));
|
|
7465
|
-
const a = await
|
|
7488
|
+
const a = await De;
|
|
7466
7489
|
return a || { name: "mf-payment-forbidden" };
|
|
7467
7490
|
}
|
|
7468
7491
|
return !0;
|
|
7469
7492
|
}
|
|
7470
|
-
return !r.value || !t.value ? (
|
|
7493
|
+
return !r.value || !t.value ? (Le || (Le = Promise.all([
|
|
7471
7494
|
new Promise(async (a) => {
|
|
7472
7495
|
const c = G(r, (o) => {
|
|
7473
7496
|
o && (c(), a(!0));
|
|
@@ -7479,17 +7502,17 @@ Oa.beforeEach(async (n) => {
|
|
|
7479
7502
|
}), o = await i();
|
|
7480
7503
|
await s(o == null ? void 0 : o.at(0));
|
|
7481
7504
|
})
|
|
7482
|
-
]).then((a) => !0)),
|
|
7505
|
+
]).then((a) => !0)), Le) : !0;
|
|
7483
7506
|
});
|
|
7484
7507
|
const Da = /* @__PURE__ */ Lt({
|
|
7485
7508
|
__name: "AppSidebar",
|
|
7486
7509
|
setup(n) {
|
|
7487
|
-
const e =
|
|
7510
|
+
const e = Ve(), t = xn(), { t: r } = Wn(), i = Hn(t.currentRoute.value.name);
|
|
7488
7511
|
G(t.currentRoute, () => {
|
|
7489
7512
|
let l = t.currentRoute.value.name;
|
|
7490
7513
|
t.currentRoute.value.meta.parent && (l = t.currentRoute.value.meta.parent), i.value = l;
|
|
7491
7514
|
});
|
|
7492
|
-
const s =
|
|
7515
|
+
const s = ue.map((l) => {
|
|
7493
7516
|
var f, m;
|
|
7494
7517
|
if (!((f = l.meta) != null && f.sidebarDisplay) || l.meta.region && !((m = l.meta.region) != null && m[e.currentCountry.value]) || l.meta.section)
|
|
7495
7518
|
return;
|
|
@@ -7532,7 +7555,16 @@ const Da = /* @__PURE__ */ Lt({
|
|
|
7532
7555
|
}).filter((l) => !!l), o = Dt(() => {
|
|
7533
7556
|
var u, d;
|
|
7534
7557
|
const l = [...s];
|
|
7535
|
-
return
|
|
7558
|
+
return l.push({
|
|
7559
|
+
label: "",
|
|
7560
|
+
value: "divider",
|
|
7561
|
+
disabled: !0
|
|
7562
|
+
}), l.push({
|
|
7563
|
+
label: r("financing.title"),
|
|
7564
|
+
icon: "credit_score",
|
|
7565
|
+
value: "divider",
|
|
7566
|
+
disabled: !0
|
|
7567
|
+
}), l.push(...a(ue, "financing")), ((u = e.sessionUser.value) != null && u.role.isStaff || (d = e.sessionUser.value) != null && d.role.isAdmin) && (l.push({
|
|
7536
7568
|
label: "",
|
|
7537
7569
|
value: "divider",
|
|
7538
7570
|
disabled: !0
|
|
@@ -7576,7 +7608,7 @@ var La = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDo
|
|
|
7576
7608
|
const qa = /* @__PURE__ */ Lt({
|
|
7577
7609
|
__name: "App",
|
|
7578
7610
|
setup(n) {
|
|
7579
|
-
const { state: e } = er(), t =
|
|
7611
|
+
const { state: e } = er(), t = Ve(), r = Fn(), i = Kt(La.firebase);
|
|
7580
7612
|
async function s() {
|
|
7581
7613
|
const a = t.sessionUser.value;
|
|
7582
7614
|
if (!a || !a.token) return;
|
|
@@ -7611,7 +7643,7 @@ const qa = /* @__PURE__ */ Lt({
|
|
|
7611
7643
|
},
|
|
7612
7644
|
{}
|
|
7613
7645
|
);
|
|
7614
|
-
}, Va = [...K, ...
|
|
7646
|
+
}, Va = [...K, ...ue];
|
|
7615
7647
|
export {
|
|
7616
7648
|
mt as _,
|
|
7617
7649
|
qa as a,
|