@feedmepos/mf-payment 1.4.47 → 1.5.0-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-sYaYPQ_s.js → Actions.vue_vue_type_script_setup_true_lang-DGbH2LsQ.js} +43 -43
- package/dist/{AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js → AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js} +13 -13
- package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-I9eO197f.js +47 -0
- package/dist/{Chargeback-BftBez0p.js → Chargeback-19afdT_4.js} +83 -83
- package/dist/{DateRangePicker.vue_vue_type_script_setup_true_lang-XZ7OzGau.js → DateRangePicker.vue_vue_type_script_setup_true_lang-kymnzYpd.js} +1 -1
- package/dist/DocumentViewer.vue_vue_type_script_setup_true_lang-CzwG5dCO.js +77 -0
- package/dist/Forbidden-CSTZjebc.js +38 -0
- package/dist/Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js +45 -0
- package/dist/{OnboardForm-Bk5eHmN0.js → OnboardForm-Cc6JOr09.js} +596 -528
- package/dist/{OnboardForm-DURv3s6I.js → OnboardForm-Do6ar3sx.js} +363 -347
- package/dist/{OnboardSubmission-BOiXSkVB.js → OnboardSubmission-B-leoVPo.js} +4 -4
- package/dist/{OnboardSubmission-Bjf_EOKq.js → OnboardSubmission-Dj8AGb69.js} +8 -8
- package/dist/PDFViewer-DgyyGDHl.js +23209 -0
- package/dist/{PayoutAccount-Ban4QG9e.js → PayoutAccount--1J5ubvX.js} +341 -312
- package/dist/{PayoutAccount-D-oQ4vID.js → PayoutAccount-ChGlsZ-O.js} +75 -75
- package/dist/{PayoutAccountSetting-YYswVooL.js → PayoutAccountSetting-BC0ANAqY.js} +281 -266
- package/dist/{Restaurant-26r7Q01z.js → Restaurant-ZiTHtFZJ.js} +79 -79
- package/dist/{RestaurantSelector.vue_vue_type_script_setup_true_lang-Bzj_sdSY.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-DG3iyjkK.js} +3 -3
- package/dist/{RestaurantSetting-D1APrvzM.js → RestaurantSetting-M1jYaGwx.js} +5 -5
- package/dist/{SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js → SelectAll.vue_vue_type_script_setup_true_lang-BNZTqdoF.js} +5 -5
- package/dist/{Settlement-CWX5RKwL.js → Settlement-Cj2W8VfH.js} +7 -7
- package/dist/{Settlement-Ix55QLVB.js → Settlement-D_nmqYEC.js} +12 -15
- package/dist/{SettlementTransactions-DYAlKO__.js → SettlementTransactions-Ch9jeQU6.js} +99 -99
- package/dist/{SettlementTransactions-BIodJ6DN.js → SettlementTransactions-DK1ONvn6.js} +55 -55
- package/dist/{Status.vue_vue_type_script_setup_true_lang-B5iI3OiL.js → Status.vue_vue_type_script_setup_true_lang-BP5m6Vic.js} +9 -9
- package/dist/Terminal-CoPPPePw.js +1135 -0
- package/dist/{TerminalSetting-BiaGvysm.js → TerminalSetting-PWs1fyFe.js} +549 -425
- package/dist/{Transaction-D51QiCaP.js → Transaction-BirTp8t6.js} +82 -82
- package/dist/{Transaction-ouagKBic.js → Transaction-CegzBK7m.js} +65 -65
- package/dist/{TransactionOld-CCzonxUD.js → TransactionOld-DqGMuWvL.js} +9 -9
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/api/document/index.d.ts +4 -0
- package/dist/{app-COvZzQVV.js → app-D6U0uODp.js} +426 -490
- package/dist/app.js +1 -1
- package/dist/{assets--JQWdCl5.js → assets-DtwUojcS.js} +1 -1
- package/dist/components/AdminLayout.vue.d.ts +3 -3
- package/dist/components/AutoCopyCell.vue.d.ts +1 -1
- package/dist/components/DocumentViewer.vue.d.ts +16 -0
- package/dist/components/ImagePreview.vue.d.ts +3 -3
- package/dist/components/Layout.vue.d.ts +3 -3
- package/dist/components/PDFViewer.vue.d.ts +4 -4
- package/dist/components/RestaurantSelector.vue.d.ts +1 -1
- package/dist/components/RouteCell.vue.d.ts +1 -1
- package/dist/{grafana-22PXAn1O.js → grafana-fZyobMgN.js} +1 -1
- package/dist/{index-B0uA-O38.js → index--K2ipr4H.js} +7 -7
- package/dist/{index-cCTvH31Z.js → index-BJNCcdvT.js} +22132 -24859
- package/dist/{index-Blb5YaYR.js → index-C-YBwRQp.js} +3 -3
- package/dist/{index-Ctn4LFui.js → index-CMN40t8e.js} +1 -1
- package/dist/{index-DR0voetw.js → index-CbONxZz2.js} +17 -13
- package/dist/{index-BLyx8ZQr.js → index-CtkwL_6R.js} +1 -1
- package/dist/{index-B9kHmV6p.js → index-D69RnDa7.js} +19 -19
- package/dist/index-_u7l8cO3.js +27 -0
- package/dist/{index-B0-Kn6Mw.js → index-eLZ3BErV.js} +12 -12
- package/dist/{index.vue_vue_type_script_setup_true_lang-NUicoOT2.js → index.vue_vue_type_script_setup_true_lang-zxkA_YTt.js} +50 -50
- package/dist/model/payout-account.d.ts +2 -2
- package/dist/{Forbidden-Dqw0MqyC.js → no-data-BRmo6XOO.js} +2 -35
- package/dist/package.json +13 -7
- package/dist/{payout-account-DQZ0J8Ds.js → payout-account-CVYMFqu9.js} +78 -77
- package/dist/plugins.d.ts +1 -5
- package/dist/stores/payoutAccount.d.ts +16 -16
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{validator-D5jtpt9A.js → validator-DzjyJnvv.js} +842 -763
- package/dist/views/Forbidden.vue.d.ts +1 -1
- package/dist/views/admin/chargeback/cell/Actions.vue.d.ts +1 -1
- package/dist/views/admin/onboard-submission/cell/SignatureBoard.vue.d.ts +2 -1
- package/dist/views/admin/onboard-submission/cell/UploadButton.vue.d.ts +3 -2
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +17 -17
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +17 -17
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +22 -22
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +22 -22
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +17 -17
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +22 -22
- package/dist/views/admin/payout-account/tabs/cell/Actions.vue.d.ts +1 -1
- package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/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/cell/LogButton.vue.d.ts +1 -1
- package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +118 -244
- 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 +4 -4
- 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 +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +28 -8
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +1 -1
- package/dist/views/admin/terminal/cell/ID.vue.d.ts +1 -1
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +29 -9
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +29 -9
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +250 -0
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +28 -8
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +28 -8
- package/dist/views/admin/transaction/cell/Actions.vue.d.ts +1 -1
- package/dist/views/admin/transaction/cell/BillSeqNumber.vue.d.ts +1 -1
- package/dist/views/onboard-submission/cell/SignatureBoard.vue.d.ts +2 -1
- package/dist/views/onboard-submission/cell/UploadButton.vue.d.ts +6 -5
- package/dist/views/payout-account/PayoutAccountDialog.vue.d.ts +2 -2
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +32 -32
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +68 -68
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +34 -34
- package/dist/views/transaction/cell/Actions.vue.d.ts +1 -1
- package/dist/views/transaction/cell/BillSeqNumber.vue.d.ts +1 -1
- package/package.json +26 -20
- package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-DP8STuAT.js +0 -47
- package/dist/Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js +0 -45
- package/dist/PDFViewer-DHKBD99J.js +0 -22433
- package/dist/Terminal-CrM7EzkM.js +0 -1095
- package/dist/plugins-DuKITasE.js +0 -1366
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { FmApp as
|
|
2
|
-
import { createRouter as
|
|
3
|
-
import { computed as
|
|
4
|
-
import { useCoreStore as
|
|
5
|
-
import { defineStore as
|
|
6
|
-
import { components as
|
|
7
|
-
const
|
|
1
|
+
import { FmApp as Ln, routes as Nt, i18nMessages as Mn } from "@feedmepos/mf-financing";
|
|
2
|
+
import { createRouter as Un, createWebHistory as xn, useRouter as Fn, useRoute as Bn } from "vue-router";
|
|
3
|
+
import { computed as Lt, watch as q, defineComponent as Mt, ref as $n, resolveComponent as Ut, openBlock as xt, createBlock as Ft, h as Hn, onMounted as Vn, onBeforeMount as jn, unref as Wn } from "vue";
|
|
4
|
+
import { useCoreStore as je, useI18n as zn } from "@feedmepos/mf-common";
|
|
5
|
+
import { defineStore as Gn } from "pinia";
|
|
6
|
+
import { components as qn } from "@feedmepos/ui-library";
|
|
7
|
+
const Kn = {
|
|
8
8
|
components: {
|
|
9
9
|
select: "Select filter entity",
|
|
10
10
|
restaurant: "Restaurant",
|
|
@@ -179,9 +179,9 @@ const Jn = {
|
|
|
179
179
|
service2: "SoftPOS Card Payment"
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
+
}, Jn = {
|
|
183
|
+
payment: Kn
|
|
182
184
|
}, Yn = {
|
|
183
|
-
payment: Jn
|
|
184
|
-
}, Xn = {
|
|
185
185
|
components: {
|
|
186
186
|
select: "选择筛选对象",
|
|
187
187
|
restaurant: "餐厅",
|
|
@@ -356,8 +356,8 @@ const Jn = {
|
|
|
356
356
|
service2: "SoftPOS银行卡支付"
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
},
|
|
360
|
-
payment:
|
|
359
|
+
}, Xn = {
|
|
360
|
+
payment: Yn
|
|
361
361
|
}, K = [
|
|
362
362
|
{
|
|
363
363
|
path: "/admin/restaurants",
|
|
@@ -366,7 +366,7 @@ const Jn = {
|
|
|
366
366
|
sidebarDisplay: "Restaurants",
|
|
367
367
|
section: "payment-gateway"
|
|
368
368
|
},
|
|
369
|
-
component: () => import("./Restaurant-
|
|
369
|
+
component: () => import("./Restaurant-ZiTHtFZJ.js")
|
|
370
370
|
},
|
|
371
371
|
{
|
|
372
372
|
path: "/admin/restaurants/:restaurantId",
|
|
@@ -375,7 +375,7 @@ const Jn = {
|
|
|
375
375
|
meta: {
|
|
376
376
|
parent: "mf-payment-admin.restaurant"
|
|
377
377
|
},
|
|
378
|
-
component: () => import("./RestaurantSetting-
|
|
378
|
+
component: () => import("./RestaurantSetting-M1jYaGwx.js")
|
|
379
379
|
},
|
|
380
380
|
{
|
|
381
381
|
path: "/admin/payout-accounts",
|
|
@@ -384,7 +384,7 @@ const Jn = {
|
|
|
384
384
|
sidebarDisplay: "Payout Accounts",
|
|
385
385
|
section: "payment-gateway"
|
|
386
386
|
},
|
|
387
|
-
component: () => import("./PayoutAccount-
|
|
387
|
+
component: () => import("./PayoutAccount-ChGlsZ-O.js")
|
|
388
388
|
},
|
|
389
389
|
{
|
|
390
390
|
path: "/admin/payout-accounts/:accountId",
|
|
@@ -393,7 +393,7 @@ const Jn = {
|
|
|
393
393
|
meta: {
|
|
394
394
|
parent: "mf-payment-admin.payout-account"
|
|
395
395
|
},
|
|
396
|
-
component: () => import("./PayoutAccountSetting-
|
|
396
|
+
component: () => import("./PayoutAccountSetting-BC0ANAqY.js")
|
|
397
397
|
},
|
|
398
398
|
{
|
|
399
399
|
path: "/admin/onboarding",
|
|
@@ -402,7 +402,7 @@ const Jn = {
|
|
|
402
402
|
sidebarDisplay: "Payment Onboarding",
|
|
403
403
|
section: "payment-gateway"
|
|
404
404
|
},
|
|
405
|
-
component: () => import("./OnboardSubmission-
|
|
405
|
+
component: () => import("./OnboardSubmission-Dj8AGb69.js")
|
|
406
406
|
},
|
|
407
407
|
{
|
|
408
408
|
path: "/admin/onboarding/:submissionId",
|
|
@@ -411,7 +411,7 @@ const Jn = {
|
|
|
411
411
|
meta: {
|
|
412
412
|
parent: "mf-payment-admin.onboard-submission"
|
|
413
413
|
},
|
|
414
|
-
component: () => import("./OnboardForm-
|
|
414
|
+
component: () => import("./OnboardForm-Do6ar3sx.js")
|
|
415
415
|
},
|
|
416
416
|
{
|
|
417
417
|
path: "/admin/terminal/pos",
|
|
@@ -420,7 +420,7 @@ const Jn = {
|
|
|
420
420
|
sidebarDisplay: "POS",
|
|
421
421
|
section: "device"
|
|
422
422
|
},
|
|
423
|
-
component: () => import("./Terminal-
|
|
423
|
+
component: () => import("./Terminal-CoPPPePw.js"),
|
|
424
424
|
props: {
|
|
425
425
|
type: "POS"
|
|
426
426
|
}
|
|
@@ -432,7 +432,7 @@ const Jn = {
|
|
|
432
432
|
sidebarDisplay: "Kiosks",
|
|
433
433
|
section: "device"
|
|
434
434
|
},
|
|
435
|
-
component: () => import("./Terminal-
|
|
435
|
+
component: () => import("./Terminal-CoPPPePw.js"),
|
|
436
436
|
props: {
|
|
437
437
|
type: "KIOSK"
|
|
438
438
|
}
|
|
@@ -444,7 +444,7 @@ const Jn = {
|
|
|
444
444
|
sidebarDisplay: "Terminals",
|
|
445
445
|
section: "device"
|
|
446
446
|
},
|
|
447
|
-
component: () => import("./Terminal-
|
|
447
|
+
component: () => import("./Terminal-CoPPPePw.js"),
|
|
448
448
|
props: {
|
|
449
449
|
type: "TERMINAL"
|
|
450
450
|
}
|
|
@@ -456,7 +456,7 @@ const Jn = {
|
|
|
456
456
|
meta: {
|
|
457
457
|
parent: "mf-payment-admin.pos"
|
|
458
458
|
},
|
|
459
|
-
component: () => import("./TerminalSetting-
|
|
459
|
+
component: () => import("./TerminalSetting-PWs1fyFe.js")
|
|
460
460
|
},
|
|
461
461
|
{
|
|
462
462
|
path: "/admin/terminal/kiosk/:terminalId",
|
|
@@ -465,7 +465,7 @@ const Jn = {
|
|
|
465
465
|
meta: {
|
|
466
466
|
parent: "mf-payment-admin.kiosk"
|
|
467
467
|
},
|
|
468
|
-
component: () => import("./TerminalSetting-
|
|
468
|
+
component: () => import("./TerminalSetting-PWs1fyFe.js")
|
|
469
469
|
},
|
|
470
470
|
{
|
|
471
471
|
path: "/admin/terminal/terminal/:terminalId",
|
|
@@ -474,7 +474,7 @@ const Jn = {
|
|
|
474
474
|
meta: {
|
|
475
475
|
parent: "mf-payment-admin.terminal"
|
|
476
476
|
},
|
|
477
|
-
component: () => import("./TerminalSetting-
|
|
477
|
+
component: () => import("./TerminalSetting-PWs1fyFe.js")
|
|
478
478
|
},
|
|
479
479
|
{
|
|
480
480
|
path: "/admin/transaction",
|
|
@@ -482,7 +482,7 @@ const Jn = {
|
|
|
482
482
|
meta: {
|
|
483
483
|
sidebarDisplay: "Transactions"
|
|
484
484
|
},
|
|
485
|
-
component: () => import("./Transaction-
|
|
485
|
+
component: () => import("./Transaction-BirTp8t6.js")
|
|
486
486
|
},
|
|
487
487
|
{
|
|
488
488
|
path: "/admin/chargeback",
|
|
@@ -490,7 +490,7 @@ const Jn = {
|
|
|
490
490
|
meta: {
|
|
491
491
|
sidebarDisplay: "Chargebacks"
|
|
492
492
|
},
|
|
493
|
-
component: () => import("./Chargeback-
|
|
493
|
+
component: () => import("./Chargeback-19afdT_4.js")
|
|
494
494
|
},
|
|
495
495
|
{
|
|
496
496
|
path: "/admin/settlement",
|
|
@@ -498,7 +498,7 @@ const Jn = {
|
|
|
498
498
|
meta: {
|
|
499
499
|
sidebarDisplay: "Settlements"
|
|
500
500
|
},
|
|
501
|
-
component: () => import("./Settlement-
|
|
501
|
+
component: () => import("./Settlement-D_nmqYEC.js")
|
|
502
502
|
},
|
|
503
503
|
{
|
|
504
504
|
path: "/admin/settlement/:settlementId",
|
|
@@ -507,7 +507,7 @@ const Jn = {
|
|
|
507
507
|
meta: {
|
|
508
508
|
parent: "mf-payment-admin.settlement"
|
|
509
509
|
},
|
|
510
|
-
component: () => import("./SettlementTransactions-
|
|
510
|
+
component: () => import("./SettlementTransactions-Ch9jeQU6.js")
|
|
511
511
|
}
|
|
512
512
|
], ue = [
|
|
513
513
|
{
|
|
@@ -517,7 +517,7 @@ const Jn = {
|
|
|
517
517
|
{
|
|
518
518
|
path: "/payout-account",
|
|
519
519
|
name: "mf-payment-payout-account",
|
|
520
|
-
component: () => import("./PayoutAccount
|
|
520
|
+
component: () => import("./PayoutAccount--1J5ubvX.js"),
|
|
521
521
|
meta: {
|
|
522
522
|
sidebarDisplay: "i18n:payment.routes.payout_account"
|
|
523
523
|
}
|
|
@@ -525,7 +525,7 @@ const Jn = {
|
|
|
525
525
|
{
|
|
526
526
|
path: "/onboard-submission",
|
|
527
527
|
name: "mf-payment-onboard-submission",
|
|
528
|
-
component: () => import("./OnboardSubmission-
|
|
528
|
+
component: () => import("./OnboardSubmission-B-leoVPo.js"),
|
|
529
529
|
meta: {
|
|
530
530
|
sidebarDisplay: "i18n:payment.routes.onboard_submission",
|
|
531
531
|
region: { MY: !0 }
|
|
@@ -535,7 +535,7 @@ const Jn = {
|
|
|
535
535
|
path: "/onboard-submission/:type/:submission?",
|
|
536
536
|
name: "mf-payment-onboard-submission-form",
|
|
537
537
|
props: !0,
|
|
538
|
-
component: () => import("./OnboardForm-
|
|
538
|
+
component: () => import("./OnboardForm-Cc6JOr09.js"),
|
|
539
539
|
meta: {
|
|
540
540
|
parent: "mf-payment-onboard-submission"
|
|
541
541
|
}
|
|
@@ -543,7 +543,7 @@ const Jn = {
|
|
|
543
543
|
{
|
|
544
544
|
path: "/transaction-old",
|
|
545
545
|
name: "mf-payment-old-transaction",
|
|
546
|
-
component: () => import("./TransactionOld-
|
|
546
|
+
component: () => import("./TransactionOld-DqGMuWvL.js"),
|
|
547
547
|
meta: {
|
|
548
548
|
sidebarDisplay: "i18n:payment.routes.transaction"
|
|
549
549
|
}
|
|
@@ -551,7 +551,7 @@ const Jn = {
|
|
|
551
551
|
{
|
|
552
552
|
path: "/transaction",
|
|
553
553
|
name: "mf-payment-transaction",
|
|
554
|
-
component: () => import("./Transaction-
|
|
554
|
+
component: () => import("./Transaction-CegzBK7m.js"),
|
|
555
555
|
meta: {
|
|
556
556
|
sidebarDisplay: "i18n:payment.routes.transaction-new",
|
|
557
557
|
sidebarNew: !0
|
|
@@ -560,7 +560,7 @@ const Jn = {
|
|
|
560
560
|
{
|
|
561
561
|
path: "/settlement",
|
|
562
562
|
name: "mf-payment-settlement",
|
|
563
|
-
component: () => import("./Settlement-
|
|
563
|
+
component: () => import("./Settlement-Cj2W8VfH.js"),
|
|
564
564
|
meta: {
|
|
565
565
|
sidebarDisplay: "i18n:payment.routes.settlement"
|
|
566
566
|
}
|
|
@@ -569,7 +569,7 @@ const Jn = {
|
|
|
569
569
|
path: "/settlement/:settlementId",
|
|
570
570
|
name: "mf-payment-settlement-transaction",
|
|
571
571
|
props: !0,
|
|
572
|
-
component: () => import("./SettlementTransactions-
|
|
572
|
+
component: () => import("./SettlementTransactions-DK1ONvn6.js"),
|
|
573
573
|
meta: {
|
|
574
574
|
parent: "mf-payment-settlement"
|
|
575
575
|
}
|
|
@@ -577,11 +577,11 @@ const Jn = {
|
|
|
577
577
|
{
|
|
578
578
|
path: "/financing",
|
|
579
579
|
name: "mf-payment-financing",
|
|
580
|
-
component:
|
|
580
|
+
component: Ln,
|
|
581
581
|
meta: {
|
|
582
582
|
useChildrenRoutes: !0
|
|
583
583
|
},
|
|
584
|
-
children:
|
|
584
|
+
children: Nt.map((n) => ({
|
|
585
585
|
...n,
|
|
586
586
|
meta: {
|
|
587
587
|
...n.meta,
|
|
@@ -591,11 +591,11 @@ const Jn = {
|
|
|
591
591
|
}))
|
|
592
592
|
}
|
|
593
593
|
];
|
|
594
|
-
console.log(
|
|
595
|
-
const
|
|
594
|
+
console.log(Nt);
|
|
595
|
+
const Qn = Gn("mf-payment-iframe", () => {
|
|
596
596
|
const n = {
|
|
597
597
|
isIframe: !1
|
|
598
|
-
}, e =
|
|
598
|
+
}, e = Lt(() => n);
|
|
599
599
|
function t(r) {
|
|
600
600
|
n.isIframe = r;
|
|
601
601
|
}
|
|
@@ -636,7 +636,7 @@ const Zn = qn("mf-payment-iframe", () => {
|
|
|
636
636
|
* See the License for the specific language governing permissions and
|
|
637
637
|
* limitations under the License.
|
|
638
638
|
*/
|
|
639
|
-
const
|
|
639
|
+
const Bt = function(n) {
|
|
640
640
|
const e = [];
|
|
641
641
|
let t = 0;
|
|
642
642
|
for (let r = 0; r < n.length; r++) {
|
|
@@ -644,7 +644,7 @@ const $t = function(n) {
|
|
|
644
644
|
i < 128 ? e[t++] = i : i < 2048 ? (e[t++] = i >> 6 | 192, e[t++] = i & 63 | 128) : (i & 64512) === 55296 && r + 1 < n.length && (n.charCodeAt(r + 1) & 64512) === 56320 ? (i = 65536 + ((i & 1023) << 10) + (n.charCodeAt(++r) & 1023), e[t++] = i >> 18 | 240, e[t++] = i >> 12 & 63 | 128, e[t++] = i >> 6 & 63 | 128, e[t++] = i & 63 | 128) : (e[t++] = i >> 12 | 224, e[t++] = i >> 6 & 63 | 128, e[t++] = i & 63 | 128);
|
|
645
645
|
}
|
|
646
646
|
return e;
|
|
647
|
-
},
|
|
647
|
+
}, Zn = function(n) {
|
|
648
648
|
const e = [];
|
|
649
649
|
let t = 0, r = 0;
|
|
650
650
|
for (; t < n.length; ) {
|
|
@@ -663,7 +663,7 @@ const $t = function(n) {
|
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
return e.join("");
|
|
666
|
-
},
|
|
666
|
+
}, $t = {
|
|
667
667
|
/**
|
|
668
668
|
* Maps bytes to characters.
|
|
669
669
|
*/
|
|
@@ -737,7 +737,7 @@ const $t = function(n) {
|
|
|
737
737
|
* @return The base64 encoded string.
|
|
738
738
|
*/
|
|
739
739
|
encodeString(n, e) {
|
|
740
|
-
return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(
|
|
740
|
+
return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(Bt(n), e);
|
|
741
741
|
},
|
|
742
742
|
/**
|
|
743
743
|
* Base64-decode a string.
|
|
@@ -748,7 +748,7 @@ const $t = function(n) {
|
|
|
748
748
|
* @return string representing the decoded value.
|
|
749
749
|
*/
|
|
750
750
|
decodeString(n, e) {
|
|
751
|
-
return this.HAS_NATIVE_SUPPORT && !e ? atob(n) :
|
|
751
|
+
return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : Zn(this.decodeStringToByteArray(n, e));
|
|
752
752
|
},
|
|
753
753
|
/**
|
|
754
754
|
* Base64-decode a string.
|
|
@@ -775,7 +775,7 @@ const $t = function(n) {
|
|
|
775
775
|
++i;
|
|
776
776
|
const d = i < n.length ? t[n.charAt(i)] : 64;
|
|
777
777
|
if (++i, s == null || c == null || l == null || d == null)
|
|
778
|
-
throw new
|
|
778
|
+
throw new er();
|
|
779
779
|
const p = s << 2 | c >> 4;
|
|
780
780
|
if (r.push(p), l !== 64) {
|
|
781
781
|
const m = c << 4 & 240 | l >> 2;
|
|
@@ -800,19 +800,19 @@ const $t = function(n) {
|
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
802
|
};
|
|
803
|
-
class
|
|
803
|
+
class er extends Error {
|
|
804
804
|
constructor() {
|
|
805
805
|
super(...arguments), this.name = "DecodeBase64StringError";
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
|
-
const
|
|
809
|
-
const e =
|
|
810
|
-
return
|
|
811
|
-
},
|
|
812
|
-
return
|
|
808
|
+
const tr = function(n) {
|
|
809
|
+
const e = Bt(n);
|
|
810
|
+
return $t.encodeByteArray(e, !0);
|
|
811
|
+
}, Ht = function(n) {
|
|
812
|
+
return tr(n).replace(/\./g, "");
|
|
813
813
|
}, Vt = function(n) {
|
|
814
814
|
try {
|
|
815
|
-
return
|
|
815
|
+
return $t.decodeString(n, !0);
|
|
816
816
|
} catch (e) {
|
|
817
817
|
console.error("base64Decode failed: ", e);
|
|
818
818
|
}
|
|
@@ -834,7 +834,7 @@ const nr = function(n) {
|
|
|
834
834
|
* See the License for the specific language governing permissions and
|
|
835
835
|
* limitations under the License.
|
|
836
836
|
*/
|
|
837
|
-
function
|
|
837
|
+
function nr() {
|
|
838
838
|
if (typeof self < "u")
|
|
839
839
|
return self;
|
|
840
840
|
if (typeof window < "u")
|
|
@@ -859,13 +859,13 @@ function rr() {
|
|
|
859
859
|
* See the License for the specific language governing permissions and
|
|
860
860
|
* limitations under the License.
|
|
861
861
|
*/
|
|
862
|
-
const
|
|
862
|
+
const rr = () => nr().__FIREBASE_DEFAULTS__, ir = () => {
|
|
863
863
|
if (typeof process > "u" || typeof process.env > "u")
|
|
864
864
|
return;
|
|
865
865
|
const n = process.env.__FIREBASE_DEFAULTS__;
|
|
866
866
|
if (n)
|
|
867
867
|
return JSON.parse(n);
|
|
868
|
-
},
|
|
868
|
+
}, sr = () => {
|
|
869
869
|
if (typeof document > "u")
|
|
870
870
|
return;
|
|
871
871
|
let n;
|
|
@@ -876,31 +876,22 @@ const ir = () => rr().__FIREBASE_DEFAULTS__, sr = () => {
|
|
|
876
876
|
}
|
|
877
877
|
const e = n && Vt(n[1]);
|
|
878
878
|
return e && JSON.parse(e);
|
|
879
|
-
},
|
|
879
|
+
}, We = () => {
|
|
880
880
|
try {
|
|
881
|
-
return
|
|
881
|
+
return rr() || ir() || sr();
|
|
882
882
|
} catch (n) {
|
|
883
883
|
console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);
|
|
884
884
|
return;
|
|
885
885
|
}
|
|
886
|
-
},
|
|
886
|
+
}, ar = (n) => {
|
|
887
887
|
var e, t;
|
|
888
|
-
return (t = (e =
|
|
889
|
-
},
|
|
890
|
-
const e = jt(n);
|
|
891
|
-
if (!e)
|
|
892
|
-
return;
|
|
893
|
-
const t = e.lastIndexOf(":");
|
|
894
|
-
if (t <= 0 || t + 1 === e.length)
|
|
895
|
-
throw new Error(`Invalid host ${e} with no separate hostname and port!`);
|
|
896
|
-
const r = parseInt(e.substring(t + 1), 10);
|
|
897
|
-
return e[0] === "[" ? [e.substring(1, t - 1), r] : [e.substring(0, t), r];
|
|
898
|
-
}, Wt = () => {
|
|
888
|
+
return (t = (e = We()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || t === void 0 ? void 0 : t[n];
|
|
889
|
+
}, jt = () => {
|
|
899
890
|
var n;
|
|
900
|
-
return (n =
|
|
901
|
-
},
|
|
891
|
+
return (n = We()) === null || n === void 0 ? void 0 : n.config;
|
|
892
|
+
}, Wt = (n) => {
|
|
902
893
|
var e;
|
|
903
|
-
return (e =
|
|
894
|
+
return (e = We()) === null || e === void 0 ? void 0 : e[`_${n}`];
|
|
904
895
|
};
|
|
905
896
|
/**
|
|
906
897
|
* @license
|
|
@@ -938,51 +929,6 @@ class or {
|
|
|
938
929
|
};
|
|
939
930
|
}
|
|
940
931
|
}
|
|
941
|
-
/**
|
|
942
|
-
* @license
|
|
943
|
-
* Copyright 2021 Google LLC
|
|
944
|
-
*
|
|
945
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
946
|
-
* you may not use this file except in compliance with the License.
|
|
947
|
-
* You may obtain a copy of the License at
|
|
948
|
-
*
|
|
949
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
950
|
-
*
|
|
951
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
952
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
953
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
954
|
-
* See the License for the specific language governing permissions and
|
|
955
|
-
* limitations under the License.
|
|
956
|
-
*/
|
|
957
|
-
function $a(n, e) {
|
|
958
|
-
if (n.uid)
|
|
959
|
-
throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');
|
|
960
|
-
const t = {
|
|
961
|
-
alg: "none",
|
|
962
|
-
type: "JWT"
|
|
963
|
-
}, r = e || "demo-project", i = n.iat || 0, s = n.sub || n.user_id;
|
|
964
|
-
if (!s)
|
|
965
|
-
throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");
|
|
966
|
-
const a = Object.assign({
|
|
967
|
-
// Set all required fields to decent defaults
|
|
968
|
-
iss: `https://securetoken.google.com/${r}`,
|
|
969
|
-
aud: r,
|
|
970
|
-
iat: i,
|
|
971
|
-
exp: i + 3600,
|
|
972
|
-
auth_time: i,
|
|
973
|
-
sub: s,
|
|
974
|
-
user_id: s,
|
|
975
|
-
firebase: {
|
|
976
|
-
sign_in_provider: "custom",
|
|
977
|
-
identities: {}
|
|
978
|
-
}
|
|
979
|
-
}, n);
|
|
980
|
-
return [
|
|
981
|
-
de(JSON.stringify(t)),
|
|
982
|
-
de(JSON.stringify(a)),
|
|
983
|
-
""
|
|
984
|
-
].join(".");
|
|
985
|
-
}
|
|
986
932
|
/**
|
|
987
933
|
* @license
|
|
988
934
|
* Copyright 2017 Google LLC
|
|
@@ -1090,7 +1036,7 @@ function yr(n) {
|
|
|
1090
1036
|
return !1;
|
|
1091
1037
|
return !0;
|
|
1092
1038
|
}
|
|
1093
|
-
function
|
|
1039
|
+
function de(n, e) {
|
|
1094
1040
|
if (n === e)
|
|
1095
1041
|
return !0;
|
|
1096
1042
|
const t = Object.keys(n), r = Object.keys(e);
|
|
@@ -1098,8 +1044,8 @@ function he(n, e) {
|
|
|
1098
1044
|
if (!r.includes(i))
|
|
1099
1045
|
return !1;
|
|
1100
1046
|
const s = n[i], a = e[i];
|
|
1101
|
-
if (
|
|
1102
|
-
if (!
|
|
1047
|
+
if (at(s) && at(a)) {
|
|
1048
|
+
if (!de(s, a))
|
|
1103
1049
|
return !1;
|
|
1104
1050
|
} else if (s !== a)
|
|
1105
1051
|
return !1;
|
|
@@ -1109,7 +1055,7 @@ function he(n, e) {
|
|
|
1109
1055
|
return !1;
|
|
1110
1056
|
return !0;
|
|
1111
1057
|
}
|
|
1112
|
-
function
|
|
1058
|
+
function at(n) {
|
|
1113
1059
|
return n !== null && typeof n == "object";
|
|
1114
1060
|
}
|
|
1115
1061
|
/**
|
|
@@ -1186,7 +1132,7 @@ class br {
|
|
|
1186
1132
|
next: e,
|
|
1187
1133
|
error: t,
|
|
1188
1134
|
complete: r
|
|
1189
|
-
}, i.next === void 0 && (i.next =
|
|
1135
|
+
}, i.next === void 0 && (i.next = ke), i.error === void 0 && (i.error = ke), i.complete === void 0 && (i.complete = ke);
|
|
1190
1136
|
const s = this.unsubscribeOne.bind(this, this.observers.length);
|
|
1191
1137
|
return this.finalized && this.task.then(() => {
|
|
1192
1138
|
try {
|
|
@@ -1232,7 +1178,7 @@ function Ir(n, e) {
|
|
|
1232
1178
|
return !0;
|
|
1233
1179
|
return !1;
|
|
1234
1180
|
}
|
|
1235
|
-
function
|
|
1181
|
+
function ke() {
|
|
1236
1182
|
}
|
|
1237
1183
|
/**
|
|
1238
1184
|
* @license
|
|
@@ -1551,22 +1497,22 @@ const kr = {
|
|
|
1551
1497
|
warn: f.WARN,
|
|
1552
1498
|
error: f.ERROR,
|
|
1553
1499
|
silent: f.SILENT
|
|
1554
|
-
}, Ar = f.INFO,
|
|
1500
|
+
}, Ar = f.INFO, Cr = {
|
|
1555
1501
|
[f.DEBUG]: "log",
|
|
1556
1502
|
[f.VERBOSE]: "log",
|
|
1557
1503
|
[f.INFO]: "info",
|
|
1558
1504
|
[f.WARN]: "warn",
|
|
1559
1505
|
[f.ERROR]: "error"
|
|
1560
|
-
},
|
|
1506
|
+
}, Rr = (n, e, ...t) => {
|
|
1561
1507
|
if (e < n.logLevel)
|
|
1562
1508
|
return;
|
|
1563
|
-
const r = (/* @__PURE__ */ new Date()).toISOString(), i =
|
|
1509
|
+
const r = (/* @__PURE__ */ new Date()).toISOString(), i = Cr[e];
|
|
1564
1510
|
if (i)
|
|
1565
1511
|
console[i](`[${r}] ${n.name}:`, ...t);
|
|
1566
1512
|
else
|
|
1567
1513
|
throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`);
|
|
1568
1514
|
};
|
|
1569
|
-
class
|
|
1515
|
+
class zt {
|
|
1570
1516
|
/**
|
|
1571
1517
|
* Gives you an instance of a Logger to capture messages according to
|
|
1572
1518
|
* Firebase's logging scheme.
|
|
@@ -1574,7 +1520,7 @@ class Gt {
|
|
|
1574
1520
|
* @param name The name that the logs will be associated with
|
|
1575
1521
|
*/
|
|
1576
1522
|
constructor(e) {
|
|
1577
|
-
this.name = e, this._logLevel = Ar, this._logHandler =
|
|
1523
|
+
this.name = e, this._logLevel = Ar, this._logHandler = Rr, this._userLogHandler = null;
|
|
1578
1524
|
}
|
|
1579
1525
|
get logLevel() {
|
|
1580
1526
|
return this._logLevel;
|
|
@@ -1622,9 +1568,9 @@ class Gt {
|
|
|
1622
1568
|
}
|
|
1623
1569
|
}
|
|
1624
1570
|
const Pr = (n, e) => e.some((t) => n instanceof t);
|
|
1625
|
-
let
|
|
1571
|
+
let ot, ct;
|
|
1626
1572
|
function Or() {
|
|
1627
|
-
return
|
|
1573
|
+
return ot || (ot = [
|
|
1628
1574
|
IDBDatabase,
|
|
1629
1575
|
IDBObjectStore,
|
|
1630
1576
|
IDBIndex,
|
|
@@ -1633,13 +1579,13 @@ function Or() {
|
|
|
1633
1579
|
]);
|
|
1634
1580
|
}
|
|
1635
1581
|
function Dr() {
|
|
1636
|
-
return
|
|
1582
|
+
return ct || (ct = [
|
|
1637
1583
|
IDBCursor.prototype.advance,
|
|
1638
1584
|
IDBCursor.prototype.continue,
|
|
1639
1585
|
IDBCursor.prototype.continuePrimaryKey
|
|
1640
1586
|
]);
|
|
1641
1587
|
}
|
|
1642
|
-
const
|
|
1588
|
+
const Gt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap();
|
|
1643
1589
|
function Nr(n) {
|
|
1644
1590
|
const e = new Promise((t, r) => {
|
|
1645
1591
|
const i = () => {
|
|
@@ -1652,12 +1598,12 @@ function Nr(n) {
|
|
|
1652
1598
|
n.addEventListener("success", s), n.addEventListener("error", a);
|
|
1653
1599
|
});
|
|
1654
1600
|
return e.then((t) => {
|
|
1655
|
-
t instanceof IDBCursor &&
|
|
1601
|
+
t instanceof IDBCursor && Gt.set(t, n);
|
|
1656
1602
|
}).catch(() => {
|
|
1657
|
-
}),
|
|
1603
|
+
}), ze.set(e, n), e;
|
|
1658
1604
|
}
|
|
1659
1605
|
function Lr(n) {
|
|
1660
|
-
if (
|
|
1606
|
+
if (Me.has(n))
|
|
1661
1607
|
return;
|
|
1662
1608
|
const e = new Promise((t, r) => {
|
|
1663
1609
|
const i = () => {
|
|
@@ -1669,15 +1615,15 @@ function Lr(n) {
|
|
|
1669
1615
|
};
|
|
1670
1616
|
n.addEventListener("complete", s), n.addEventListener("error", a), n.addEventListener("abort", a);
|
|
1671
1617
|
});
|
|
1672
|
-
|
|
1618
|
+
Me.set(n, e);
|
|
1673
1619
|
}
|
|
1674
|
-
let
|
|
1620
|
+
let Ue = {
|
|
1675
1621
|
get(n, e, t) {
|
|
1676
1622
|
if (n instanceof IDBTransaction) {
|
|
1677
1623
|
if (e === "done")
|
|
1678
|
-
return
|
|
1624
|
+
return Me.get(n);
|
|
1679
1625
|
if (e === "objectStoreNames")
|
|
1680
|
-
return n.objectStoreNames ||
|
|
1626
|
+
return n.objectStoreNames || qt.get(n);
|
|
1681
1627
|
if (e === "store")
|
|
1682
1628
|
return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]);
|
|
1683
1629
|
}
|
|
@@ -1691,30 +1637,30 @@ let xe = {
|
|
|
1691
1637
|
}
|
|
1692
1638
|
};
|
|
1693
1639
|
function Mr(n) {
|
|
1694
|
-
|
|
1640
|
+
Ue = n(Ue);
|
|
1695
1641
|
}
|
|
1696
1642
|
function Ur(n) {
|
|
1697
1643
|
return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
|
|
1698
1644
|
const r = n.call(Ce(this), e, ...t);
|
|
1699
|
-
return
|
|
1645
|
+
return qt.set(r, e.sort ? e.sort() : [e]), O(r);
|
|
1700
1646
|
} : Dr().includes(n) ? function(...e) {
|
|
1701
|
-
return n.apply(Ce(this), e), O(
|
|
1647
|
+
return n.apply(Ce(this), e), O(Gt.get(this));
|
|
1702
1648
|
} : function(...e) {
|
|
1703
1649
|
return O(n.apply(Ce(this), e));
|
|
1704
1650
|
};
|
|
1705
1651
|
}
|
|
1706
1652
|
function xr(n) {
|
|
1707
|
-
return typeof n == "function" ? Ur(n) : (n instanceof IDBTransaction && Lr(n), Pr(n, Or()) ? new Proxy(n,
|
|
1653
|
+
return typeof n == "function" ? Ur(n) : (n instanceof IDBTransaction && Lr(n), Pr(n, Or()) ? new Proxy(n, Ue) : n);
|
|
1708
1654
|
}
|
|
1709
1655
|
function O(n) {
|
|
1710
1656
|
if (n instanceof IDBRequest)
|
|
1711
1657
|
return Nr(n);
|
|
1712
|
-
if (
|
|
1713
|
-
return
|
|
1658
|
+
if (Ae.has(n))
|
|
1659
|
+
return Ae.get(n);
|
|
1714
1660
|
const e = xr(n);
|
|
1715
|
-
return e !== n && (
|
|
1661
|
+
return e !== n && (Ae.set(n, e), ze.set(e, n)), e;
|
|
1716
1662
|
}
|
|
1717
|
-
const Ce = (n) =>
|
|
1663
|
+
const Ce = (n) => ze.get(n);
|
|
1718
1664
|
function Fr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
1719
1665
|
const a = indexedDB.open(n, e), c = O(a);
|
|
1720
1666
|
return r && a.addEventListener("upgradeneeded", (o) => {
|
|
@@ -1729,12 +1675,12 @@ function Fr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
|
1729
1675
|
}).catch(() => {
|
|
1730
1676
|
}), c;
|
|
1731
1677
|
}
|
|
1732
|
-
const Br = ["get", "getKey", "getAll", "getAllKeys", "count"], $r = ["put", "add", "delete", "clear"],
|
|
1733
|
-
function
|
|
1678
|
+
const Br = ["get", "getKey", "getAll", "getAllKeys", "count"], $r = ["put", "add", "delete", "clear"], Re = /* @__PURE__ */ new Map();
|
|
1679
|
+
function lt(n, e) {
|
|
1734
1680
|
if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
|
|
1735
1681
|
return;
|
|
1736
|
-
if (
|
|
1737
|
-
return
|
|
1682
|
+
if (Re.get(e))
|
|
1683
|
+
return Re.get(e);
|
|
1738
1684
|
const t = e.replace(/FromIndex$/, ""), r = e !== t, i = $r.includes(t);
|
|
1739
1685
|
if (
|
|
1740
1686
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
|
@@ -1749,12 +1695,12 @@ function ut(n, e) {
|
|
|
1749
1695
|
i && o.done
|
|
1750
1696
|
]))[0];
|
|
1751
1697
|
};
|
|
1752
|
-
return
|
|
1698
|
+
return Re.set(e, s), s;
|
|
1753
1699
|
}
|
|
1754
1700
|
Mr((n) => ({
|
|
1755
1701
|
...n,
|
|
1756
|
-
get: (e, t, r) =>
|
|
1757
|
-
has: (e, t) => !!
|
|
1702
|
+
get: (e, t, r) => lt(e, t) || n.get(e, t, r),
|
|
1703
|
+
has: (e, t) => !!lt(e, t) || n.has(e, t)
|
|
1758
1704
|
}));
|
|
1759
1705
|
/**
|
|
1760
1706
|
* @license
|
|
@@ -1792,7 +1738,7 @@ function Vr(n) {
|
|
|
1792
1738
|
const e = n.getComponent();
|
|
1793
1739
|
return (e == null ? void 0 : e.type) === "VERSION";
|
|
1794
1740
|
}
|
|
1795
|
-
const
|
|
1741
|
+
const xe = "@firebase/app", ut = "0.10.13";
|
|
1796
1742
|
/**
|
|
1797
1743
|
* @license
|
|
1798
1744
|
* Copyright 2019 Google LLC
|
|
@@ -1809,7 +1755,7 @@ const Fe = "@firebase/app", dt = "0.10.13";
|
|
|
1809
1755
|
* See the License for the specific language governing permissions and
|
|
1810
1756
|
* limitations under the License.
|
|
1811
1757
|
*/
|
|
1812
|
-
const E = new
|
|
1758
|
+
const E = new zt("@firebase/app"), jr = "@firebase/app-compat", Wr = "@firebase/analytics-compat", zr = "@firebase/analytics", Gr = "@firebase/app-check-compat", qr = "@firebase/app-check", Kr = "@firebase/auth", Jr = "@firebase/auth-compat", Yr = "@firebase/database", Xr = "@firebase/data-connect", Qr = "@firebase/database-compat", Zr = "@firebase/functions", ei = "@firebase/functions-compat", ti = "@firebase/installations", ni = "@firebase/installations-compat", ri = "@firebase/messaging", ii = "@firebase/messaging-compat", si = "@firebase/performance", ai = "@firebase/performance-compat", oi = "@firebase/remote-config", ci = "@firebase/remote-config-compat", li = "@firebase/storage", ui = "@firebase/storage-compat", di = "@firebase/firestore", hi = "@firebase/vertexai-preview", fi = "@firebase/firestore-compat", pi = "firebase", mi = "10.14.1";
|
|
1813
1759
|
/**
|
|
1814
1760
|
* @license
|
|
1815
1761
|
* Copyright 2019 Google LLC
|
|
@@ -1826,8 +1772,8 @@ const E = new Gt("@firebase/app"), jr = "@firebase/app-compat", Wr = "@firebase/
|
|
|
1826
1772
|
* See the License for the specific language governing permissions and
|
|
1827
1773
|
* limitations under the License.
|
|
1828
1774
|
*/
|
|
1829
|
-
const
|
|
1830
|
-
[
|
|
1775
|
+
const Fe = "[DEFAULT]", gi = {
|
|
1776
|
+
[xe]: "fire-core",
|
|
1831
1777
|
[jr]: "fire-core-compat",
|
|
1832
1778
|
[zr]: "fire-analytics",
|
|
1833
1779
|
[Wr]: "fire-analytics-compat",
|
|
@@ -1872,8 +1818,8 @@ const Be = "[DEFAULT]", gi = {
|
|
|
1872
1818
|
* See the License for the specific language governing permissions and
|
|
1873
1819
|
* limitations under the License.
|
|
1874
1820
|
*/
|
|
1875
|
-
const
|
|
1876
|
-
function
|
|
1821
|
+
const he = /* @__PURE__ */ new Map(), _i = /* @__PURE__ */ new Map(), Be = /* @__PURE__ */ new Map();
|
|
1822
|
+
function dt(n, e) {
|
|
1877
1823
|
try {
|
|
1878
1824
|
n.container.addComponent(e);
|
|
1879
1825
|
} catch (t) {
|
|
@@ -1882,16 +1828,16 @@ function ht(n, e) {
|
|
|
1882
1828
|
}
|
|
1883
1829
|
function Y(n) {
|
|
1884
1830
|
const e = n.name;
|
|
1885
|
-
if (
|
|
1831
|
+
if (Be.has(e))
|
|
1886
1832
|
return E.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
1887
|
-
|
|
1888
|
-
for (const t of
|
|
1889
|
-
|
|
1833
|
+
Be.set(e, n);
|
|
1834
|
+
for (const t of he.values())
|
|
1835
|
+
dt(t, n);
|
|
1890
1836
|
for (const t of _i.values())
|
|
1891
|
-
|
|
1837
|
+
dt(t, n);
|
|
1892
1838
|
return !0;
|
|
1893
1839
|
}
|
|
1894
|
-
function
|
|
1840
|
+
function Kt(n, e) {
|
|
1895
1841
|
const t = n.container.getProvider("heartbeat").getImmediate({ optional: !0 });
|
|
1896
1842
|
return t && t.triggerHeartbeat(), n.container.getProvider(e);
|
|
1897
1843
|
}
|
|
@@ -2005,35 +1951,35 @@ class vi {
|
|
|
2005
1951
|
* limitations under the License.
|
|
2006
1952
|
*/
|
|
2007
1953
|
const te = mi;
|
|
2008
|
-
function
|
|
1954
|
+
function Jt(n, e = {}) {
|
|
2009
1955
|
let t = n;
|
|
2010
1956
|
typeof e != "object" && (e = { name: e });
|
|
2011
|
-
const r = Object.assign({ name:
|
|
1957
|
+
const r = Object.assign({ name: Fe, automaticDataCollectionEnabled: !1 }, e), i = r.name;
|
|
2012
1958
|
if (typeof i != "string" || !i)
|
|
2013
1959
|
throw D.create("bad-app-name", {
|
|
2014
1960
|
appName: String(i)
|
|
2015
1961
|
});
|
|
2016
|
-
if (t || (t =
|
|
1962
|
+
if (t || (t = jt()), !t)
|
|
2017
1963
|
throw D.create(
|
|
2018
1964
|
"no-options"
|
|
2019
1965
|
/* AppError.NO_OPTIONS */
|
|
2020
1966
|
);
|
|
2021
|
-
const s =
|
|
1967
|
+
const s = he.get(i);
|
|
2022
1968
|
if (s) {
|
|
2023
|
-
if (
|
|
1969
|
+
if (de(t, s.options) && de(r, s.config))
|
|
2024
1970
|
return s;
|
|
2025
1971
|
throw D.create("duplicate-app", { appName: i });
|
|
2026
1972
|
}
|
|
2027
1973
|
const a = new Sr(i);
|
|
2028
|
-
for (const o of
|
|
1974
|
+
for (const o of Be.values())
|
|
2029
1975
|
a.addComponent(o);
|
|
2030
1976
|
const c = new vi(t, r, a);
|
|
2031
|
-
return
|
|
1977
|
+
return he.set(i, c), c;
|
|
2032
1978
|
}
|
|
2033
|
-
function bi(n =
|
|
2034
|
-
const e =
|
|
2035
|
-
if (!e && n ===
|
|
2036
|
-
return
|
|
1979
|
+
function bi(n = Fe) {
|
|
1980
|
+
const e = he.get(n);
|
|
1981
|
+
if (!e && n === Fe && jt())
|
|
1982
|
+
return Jt();
|
|
2037
1983
|
if (!e)
|
|
2038
1984
|
throw D.create("no-app", { appName: n });
|
|
2039
1985
|
return e;
|
|
@@ -2074,9 +2020,9 @@ function $(n, e, t) {
|
|
|
2074
2020
|
* limitations under the License.
|
|
2075
2021
|
*/
|
|
2076
2022
|
const Ii = "firebase-heartbeat-database", wi = 1, X = "firebase-heartbeat-store";
|
|
2077
|
-
let
|
|
2078
|
-
function
|
|
2079
|
-
return
|
|
2023
|
+
let Pe = null;
|
|
2024
|
+
function Yt() {
|
|
2025
|
+
return Pe || (Pe = Fr(Ii, wi, {
|
|
2080
2026
|
upgrade: (n, e) => {
|
|
2081
2027
|
switch (e) {
|
|
2082
2028
|
case 0:
|
|
@@ -2091,11 +2037,11 @@ function Xt() {
|
|
|
2091
2037
|
throw D.create("idb-open", {
|
|
2092
2038
|
originalErrorMessage: n.message
|
|
2093
2039
|
});
|
|
2094
|
-
})),
|
|
2040
|
+
})), Pe;
|
|
2095
2041
|
}
|
|
2096
2042
|
async function Ei(n) {
|
|
2097
2043
|
try {
|
|
2098
|
-
const t = (await
|
|
2044
|
+
const t = (await Yt()).transaction(X), r = await t.objectStore(X).get(Xt(n));
|
|
2099
2045
|
return await t.done, r;
|
|
2100
2046
|
} catch (e) {
|
|
2101
2047
|
if (e instanceof L)
|
|
@@ -2108,10 +2054,10 @@ async function Ei(n) {
|
|
|
2108
2054
|
}
|
|
2109
2055
|
}
|
|
2110
2056
|
}
|
|
2111
|
-
async function
|
|
2057
|
+
async function ht(n, e) {
|
|
2112
2058
|
try {
|
|
2113
|
-
const r = (await
|
|
2114
|
-
await r.objectStore(X).put(e,
|
|
2059
|
+
const r = (await Yt()).transaction(X, "readwrite");
|
|
2060
|
+
await r.objectStore(X).put(e, Xt(n)), await r.done;
|
|
2115
2061
|
} catch (t) {
|
|
2116
2062
|
if (t instanceof L)
|
|
2117
2063
|
E.warn(t.message);
|
|
@@ -2123,7 +2069,7 @@ async function ft(n, e) {
|
|
|
2123
2069
|
}
|
|
2124
2070
|
}
|
|
2125
2071
|
}
|
|
2126
|
-
function
|
|
2072
|
+
function Xt(n) {
|
|
2127
2073
|
return `${n.name}!${n.options.appId}`;
|
|
2128
2074
|
}
|
|
2129
2075
|
/**
|
|
@@ -2147,7 +2093,7 @@ class ki {
|
|
|
2147
2093
|
constructor(e) {
|
|
2148
2094
|
this.container = e, this._heartbeatsCache = null;
|
|
2149
2095
|
const t = this.container.getProvider("app").getImmediate();
|
|
2150
|
-
this._storage = new
|
|
2096
|
+
this._storage = new Ci(t), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
|
|
2151
2097
|
}
|
|
2152
2098
|
/**
|
|
2153
2099
|
* Called to report a heartbeat. The function will generate
|
|
@@ -2159,7 +2105,7 @@ class ki {
|
|
|
2159
2105
|
async triggerHeartbeat() {
|
|
2160
2106
|
var e, t;
|
|
2161
2107
|
try {
|
|
2162
|
-
const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s =
|
|
2108
|
+
const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s = ft();
|
|
2163
2109
|
return ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null && (this._heartbeatsCache = await this._heartbeatsCachePromise, ((t = this._heartbeatsCache) === null || t === void 0 ? void 0 : t.heartbeats) == null) || this._heartbeatsCache.lastSentHeartbeatDate === s || this._heartbeatsCache.heartbeats.some((a) => a.date === s) ? void 0 : (this._heartbeatsCache.heartbeats.push({ date: s, agent: i }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((a) => {
|
|
2164
2110
|
const c = new Date(a.date).valueOf();
|
|
2165
2111
|
return Date.now() - c <= Si;
|
|
@@ -2180,14 +2126,14 @@ class ki {
|
|
|
2180
2126
|
try {
|
|
2181
2127
|
if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
|
|
2182
2128
|
return "";
|
|
2183
|
-
const t =
|
|
2129
|
+
const t = ft(), { heartbeatsToSend: r, unsentEntries: i } = Ai(this._heartbeatsCache.heartbeats), s = Ht(JSON.stringify({ version: 2, heartbeats: r }));
|
|
2184
2130
|
return this._heartbeatsCache.lastSentHeartbeatDate = t, i.length > 0 ? (this._heartbeatsCache.heartbeats = i, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), s;
|
|
2185
2131
|
} catch (t) {
|
|
2186
2132
|
return E.warn(t), "";
|
|
2187
2133
|
}
|
|
2188
2134
|
}
|
|
2189
2135
|
}
|
|
2190
|
-
function
|
|
2136
|
+
function ft() {
|
|
2191
2137
|
return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
|
|
2192
2138
|
}
|
|
2193
2139
|
function Ai(n, e = Ti) {
|
|
@@ -2196,14 +2142,14 @@ function Ai(n, e = Ti) {
|
|
|
2196
2142
|
for (const i of n) {
|
|
2197
2143
|
const s = t.find((a) => a.agent === i.agent);
|
|
2198
2144
|
if (s) {
|
|
2199
|
-
if (s.dates.push(i.date),
|
|
2145
|
+
if (s.dates.push(i.date), pt(t) > e) {
|
|
2200
2146
|
s.dates.pop();
|
|
2201
2147
|
break;
|
|
2202
2148
|
}
|
|
2203
2149
|
} else if (t.push({
|
|
2204
2150
|
agent: i.agent,
|
|
2205
2151
|
dates: [i.date]
|
|
2206
|
-
}),
|
|
2152
|
+
}), pt(t) > e) {
|
|
2207
2153
|
t.pop();
|
|
2208
2154
|
break;
|
|
2209
2155
|
}
|
|
@@ -2214,7 +2160,7 @@ function Ai(n, e = Ti) {
|
|
|
2214
2160
|
unsentEntries: r
|
|
2215
2161
|
};
|
|
2216
2162
|
}
|
|
2217
|
-
class
|
|
2163
|
+
class Ci {
|
|
2218
2164
|
constructor(e) {
|
|
2219
2165
|
this.app = e, this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
|
|
2220
2166
|
}
|
|
@@ -2236,7 +2182,7 @@ class Ri {
|
|
|
2236
2182
|
var t;
|
|
2237
2183
|
if (await this._canUseIndexedDBPromise) {
|
|
2238
2184
|
const i = await this.read();
|
|
2239
|
-
return
|
|
2185
|
+
return ht(this.app, {
|
|
2240
2186
|
lastSentHeartbeatDate: (t = e.lastSentHeartbeatDate) !== null && t !== void 0 ? t : i.lastSentHeartbeatDate,
|
|
2241
2187
|
heartbeats: e.heartbeats
|
|
2242
2188
|
});
|
|
@@ -2248,7 +2194,7 @@ class Ri {
|
|
|
2248
2194
|
var t;
|
|
2249
2195
|
if (await this._canUseIndexedDBPromise) {
|
|
2250
2196
|
const i = await this.read();
|
|
2251
|
-
return
|
|
2197
|
+
return ht(this.app, {
|
|
2252
2198
|
lastSentHeartbeatDate: (t = e.lastSentHeartbeatDate) !== null && t !== void 0 ? t : i.lastSentHeartbeatDate,
|
|
2253
2199
|
heartbeats: [
|
|
2254
2200
|
...i.heartbeats,
|
|
@@ -2259,8 +2205,8 @@ class Ri {
|
|
|
2259
2205
|
return;
|
|
2260
2206
|
}
|
|
2261
2207
|
}
|
|
2262
|
-
function
|
|
2263
|
-
return
|
|
2208
|
+
function pt(n) {
|
|
2209
|
+
return Ht(
|
|
2264
2210
|
// heartbeatsCache wrapper properties
|
|
2265
2211
|
JSON.stringify({ version: 2, heartbeats: n })
|
|
2266
2212
|
).length;
|
|
@@ -2281,7 +2227,7 @@ function mt(n) {
|
|
|
2281
2227
|
* See the License for the specific language governing permissions and
|
|
2282
2228
|
* limitations under the License.
|
|
2283
2229
|
*/
|
|
2284
|
-
function
|
|
2230
|
+
function Ri(n) {
|
|
2285
2231
|
Y(new W(
|
|
2286
2232
|
"platform-logger",
|
|
2287
2233
|
(e) => new Hr(e),
|
|
@@ -2292,9 +2238,9 @@ function Ci(n) {
|
|
|
2292
2238
|
(e) => new ki(e),
|
|
2293
2239
|
"PRIVATE"
|
|
2294
2240
|
/* ComponentType.PRIVATE */
|
|
2295
|
-
)), $(
|
|
2241
|
+
)), $(xe, ut, n), $(xe, ut, "esm2017"), $("fire-js", "");
|
|
2296
2242
|
}
|
|
2297
|
-
|
|
2243
|
+
Ri("");
|
|
2298
2244
|
var Pi = "firebase", Oi = "10.14.1";
|
|
2299
2245
|
/**
|
|
2300
2246
|
* @license
|
|
@@ -2313,16 +2259,16 @@ var Pi = "firebase", Oi = "10.14.1";
|
|
|
2313
2259
|
* limitations under the License.
|
|
2314
2260
|
*/
|
|
2315
2261
|
$(Pi, Oi, "app");
|
|
2316
|
-
var
|
|
2317
|
-
return
|
|
2262
|
+
var mt = function() {
|
|
2263
|
+
return mt = Object.assign || function(e) {
|
|
2318
2264
|
for (var t, r = 1, i = arguments.length; r < i; r++) {
|
|
2319
2265
|
t = arguments[r];
|
|
2320
2266
|
for (var s in t) Object.prototype.hasOwnProperty.call(t, s) && (e[s] = t[s]);
|
|
2321
2267
|
}
|
|
2322
2268
|
return e;
|
|
2323
|
-
},
|
|
2269
|
+
}, mt.apply(this, arguments);
|
|
2324
2270
|
};
|
|
2325
|
-
function
|
|
2271
|
+
function Ge(n, e) {
|
|
2326
2272
|
var t = {};
|
|
2327
2273
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
|
|
2328
2274
|
if (n != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -2330,12 +2276,12 @@ function qe(n, e) {
|
|
|
2330
2276
|
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(n, r[i]) && (t[r[i]] = n[r[i]]);
|
|
2331
2277
|
return t;
|
|
2332
2278
|
}
|
|
2333
|
-
function
|
|
2279
|
+
function Qt() {
|
|
2334
2280
|
return {
|
|
2335
2281
|
"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."
|
|
2336
2282
|
};
|
|
2337
2283
|
}
|
|
2338
|
-
const Di =
|
|
2284
|
+
const Di = Qt, Zt = new Z("auth", "Firebase", Qt());
|
|
2339
2285
|
/**
|
|
2340
2286
|
* @license
|
|
2341
2287
|
* Copyright 2020 Google LLC
|
|
@@ -2352,12 +2298,12 @@ const Di = Zt, en = new Z("auth", "Firebase", Zt());
|
|
|
2352
2298
|
* See the License for the specific language governing permissions and
|
|
2353
2299
|
* limitations under the License.
|
|
2354
2300
|
*/
|
|
2355
|
-
const
|
|
2301
|
+
const fe = new zt("@firebase/auth");
|
|
2356
2302
|
function Ni(n, ...e) {
|
|
2357
|
-
|
|
2303
|
+
fe.logLevel <= f.WARN && fe.warn(`Auth (${te}): ${n}`, ...e);
|
|
2358
2304
|
}
|
|
2359
2305
|
function ae(n, ...e) {
|
|
2360
|
-
|
|
2306
|
+
fe.logLevel <= f.ERROR && fe.error(`Auth (${te}): ${n}`, ...e);
|
|
2361
2307
|
}
|
|
2362
2308
|
/**
|
|
2363
2309
|
* @license
|
|
@@ -2376,30 +2322,30 @@ function ae(n, ...e) {
|
|
|
2376
2322
|
* limitations under the License.
|
|
2377
2323
|
*/
|
|
2378
2324
|
function T(n, ...e) {
|
|
2379
|
-
throw
|
|
2325
|
+
throw qe(n, ...e);
|
|
2380
2326
|
}
|
|
2381
2327
|
function _(n, ...e) {
|
|
2382
|
-
return
|
|
2328
|
+
return qe(n, ...e);
|
|
2383
2329
|
}
|
|
2384
|
-
function
|
|
2330
|
+
function en(n, e, t) {
|
|
2385
2331
|
const r = Object.assign(Object.assign({}, Di()), { [e]: t });
|
|
2386
2332
|
return new Z("auth", "Firebase", r).create(e, {
|
|
2387
2333
|
appName: n.name
|
|
2388
2334
|
});
|
|
2389
2335
|
}
|
|
2390
2336
|
function N(n) {
|
|
2391
|
-
return
|
|
2337
|
+
return en(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
|
|
2392
2338
|
}
|
|
2393
|
-
function
|
|
2339
|
+
function qe(n, ...e) {
|
|
2394
2340
|
if (typeof n != "string") {
|
|
2395
2341
|
const t = e[0], r = [...e.slice(1)];
|
|
2396
2342
|
return r[0] && (r[0].appName = n.name), n._errorFactory.create(t, ...r);
|
|
2397
2343
|
}
|
|
2398
|
-
return
|
|
2344
|
+
return Zt.create(n, ...e);
|
|
2399
2345
|
}
|
|
2400
2346
|
function h(n, e, ...t) {
|
|
2401
2347
|
if (!n)
|
|
2402
|
-
throw
|
|
2348
|
+
throw qe(e, ...t);
|
|
2403
2349
|
}
|
|
2404
2350
|
function b(n) {
|
|
2405
2351
|
const e = "INTERNAL ASSERTION FAILED: " + n;
|
|
@@ -2424,14 +2370,14 @@ function S(n, e) {
|
|
|
2424
2370
|
* See the License for the specific language governing permissions and
|
|
2425
2371
|
* limitations under the License.
|
|
2426
2372
|
*/
|
|
2427
|
-
function
|
|
2373
|
+
function $e() {
|
|
2428
2374
|
var n;
|
|
2429
2375
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
|
|
2430
2376
|
}
|
|
2431
2377
|
function Li() {
|
|
2432
|
-
return
|
|
2378
|
+
return gt() === "http:" || gt() === "https:";
|
|
2433
2379
|
}
|
|
2434
|
-
function
|
|
2380
|
+
function gt() {
|
|
2435
2381
|
var n;
|
|
2436
2382
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.protocol) || null;
|
|
2437
2383
|
}
|
|
@@ -2511,7 +2457,7 @@ class ne {
|
|
|
2511
2457
|
* See the License for the specific language governing permissions and
|
|
2512
2458
|
* limitations under the License.
|
|
2513
2459
|
*/
|
|
2514
|
-
function
|
|
2460
|
+
function Ke(n, e) {
|
|
2515
2461
|
S(n.emulator, "Emulator should always be set here");
|
|
2516
2462
|
const { url: t } = n.emulator;
|
|
2517
2463
|
return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
|
|
@@ -2532,7 +2478,7 @@ function Je(n, e) {
|
|
|
2532
2478
|
* See the License for the specific language governing permissions and
|
|
2533
2479
|
* limitations under the License.
|
|
2534
2480
|
*/
|
|
2535
|
-
class
|
|
2481
|
+
class tn {
|
|
2536
2482
|
static initialize(e, t, r) {
|
|
2537
2483
|
this.fetchImpl = e, t && (this.headersImpl = t), r && (this.responseImpl = r);
|
|
2538
2484
|
}
|
|
@@ -2678,11 +2624,11 @@ const xi = {
|
|
|
2678
2624
|
* limitations under the License.
|
|
2679
2625
|
*/
|
|
2680
2626
|
const Fi = new ne(3e4, 6e4);
|
|
2681
|
-
function
|
|
2627
|
+
function ye(n, e) {
|
|
2682
2628
|
return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
|
|
2683
2629
|
}
|
|
2684
2630
|
async function G(n, e, t, r, i = {}) {
|
|
2685
|
-
return
|
|
2631
|
+
return nn(n, i, async () => {
|
|
2686
2632
|
let s = {}, a = {};
|
|
2687
2633
|
r && (e === "GET" ? a = r : s = {
|
|
2688
2634
|
body: JSON.stringify(r)
|
|
@@ -2699,10 +2645,10 @@ async function G(n, e, t, r, i = {}) {
|
|
|
2699
2645
|
method: e,
|
|
2700
2646
|
headers: o
|
|
2701
2647
|
}, s);
|
|
2702
|
-
return lr() || (l.referrerPolicy = "no-referrer"),
|
|
2648
|
+
return lr() || (l.referrerPolicy = "no-referrer"), tn.fetch()(sn(n, n.config.apiHost, t, c), l);
|
|
2703
2649
|
});
|
|
2704
2650
|
}
|
|
2705
|
-
async function
|
|
2651
|
+
async function nn(n, e, t) {
|
|
2706
2652
|
n._canInitEmulator = !1;
|
|
2707
2653
|
const r = Object.assign(Object.assign({}, xi), e);
|
|
2708
2654
|
try {
|
|
@@ -2726,7 +2672,7 @@ async function rn(n, e, t) {
|
|
|
2726
2672
|
throw se(n, "user-disabled", a);
|
|
2727
2673
|
const u = r[o] || o.toLowerCase().replace(/[_\s]+/g, "-");
|
|
2728
2674
|
if (l)
|
|
2729
|
-
throw
|
|
2675
|
+
throw en(n, u, l);
|
|
2730
2676
|
T(n, u);
|
|
2731
2677
|
}
|
|
2732
2678
|
} catch (i) {
|
|
@@ -2735,15 +2681,15 @@ async function rn(n, e, t) {
|
|
|
2735
2681
|
T(n, "network-request-failed", { message: String(i) });
|
|
2736
2682
|
}
|
|
2737
2683
|
}
|
|
2738
|
-
async function
|
|
2684
|
+
async function rn(n, e, t, r, i = {}) {
|
|
2739
2685
|
const s = await G(n, e, t, r, i);
|
|
2740
2686
|
return "mfaPendingCredential" in s && T(n, "multi-factor-auth-required", {
|
|
2741
2687
|
_serverResponse: s
|
|
2742
2688
|
}), s;
|
|
2743
2689
|
}
|
|
2744
|
-
function
|
|
2690
|
+
function sn(n, e, t, r) {
|
|
2745
2691
|
const i = `${e}${t}?${r}`;
|
|
2746
|
-
return n.config.emulator ?
|
|
2692
|
+
return n.config.emulator ? Ke(n.config, i) : `${n.config.apiScheme}://${i}`;
|
|
2747
2693
|
}
|
|
2748
2694
|
class Bi {
|
|
2749
2695
|
constructor(e) {
|
|
@@ -2786,7 +2732,7 @@ function se(n, e, t) {
|
|
|
2786
2732
|
async function $i(n, e) {
|
|
2787
2733
|
return G(n, "POST", "/v1/accounts:delete", e);
|
|
2788
2734
|
}
|
|
2789
|
-
async function
|
|
2735
|
+
async function an(n, e) {
|
|
2790
2736
|
return G(n, "POST", "/v1/accounts:lookup", e);
|
|
2791
2737
|
}
|
|
2792
2738
|
/**
|
|
@@ -2815,7 +2761,7 @@ function J(n) {
|
|
|
2815
2761
|
}
|
|
2816
2762
|
}
|
|
2817
2763
|
async function Hi(n, e = !1) {
|
|
2818
|
-
const t = z(n), r = await t.getIdToken(e), i =
|
|
2764
|
+
const t = z(n), r = await t.getIdToken(e), i = Je(r);
|
|
2819
2765
|
h(
|
|
2820
2766
|
i && i.exp && i.auth_time && i.iat,
|
|
2821
2767
|
t.auth,
|
|
@@ -2826,17 +2772,17 @@ async function Hi(n, e = !1) {
|
|
|
2826
2772
|
return {
|
|
2827
2773
|
claims: i,
|
|
2828
2774
|
token: r,
|
|
2829
|
-
authTime: J(
|
|
2830
|
-
issuedAtTime: J(
|
|
2831
|
-
expirationTime: J(
|
|
2775
|
+
authTime: J(Oe(i.auth_time)),
|
|
2776
|
+
issuedAtTime: J(Oe(i.iat)),
|
|
2777
|
+
expirationTime: J(Oe(i.exp)),
|
|
2832
2778
|
signInProvider: a || null,
|
|
2833
2779
|
signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
|
|
2834
2780
|
};
|
|
2835
2781
|
}
|
|
2836
|
-
function
|
|
2782
|
+
function Oe(n) {
|
|
2837
2783
|
return Number(n) * 1e3;
|
|
2838
2784
|
}
|
|
2839
|
-
function
|
|
2785
|
+
function Je(n) {
|
|
2840
2786
|
const [e, t, r] = n.split(".");
|
|
2841
2787
|
if (e === void 0 || t === void 0 || r === void 0)
|
|
2842
2788
|
return ae("JWT malformed, contained fewer than 3 sections"), null;
|
|
@@ -2847,8 +2793,8 @@ function Ye(n) {
|
|
|
2847
2793
|
return ae("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
|
|
2848
2794
|
}
|
|
2849
2795
|
}
|
|
2850
|
-
function
|
|
2851
|
-
const e =
|
|
2796
|
+
function _t(n) {
|
|
2797
|
+
const e = Je(n);
|
|
2852
2798
|
return h(
|
|
2853
2799
|
e,
|
|
2854
2800
|
"internal-error"
|
|
@@ -2969,7 +2915,7 @@ class ji {
|
|
|
2969
2915
|
* See the License for the specific language governing permissions and
|
|
2970
2916
|
* limitations under the License.
|
|
2971
2917
|
*/
|
|
2972
|
-
class
|
|
2918
|
+
class He {
|
|
2973
2919
|
constructor(e, t) {
|
|
2974
2920
|
this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
|
|
2975
2921
|
}
|
|
@@ -3002,9 +2948,9 @@ class Ve {
|
|
|
3002
2948
|
* See the License for the specific language governing permissions and
|
|
3003
2949
|
* limitations under the License.
|
|
3004
2950
|
*/
|
|
3005
|
-
async function
|
|
2951
|
+
async function pe(n) {
|
|
3006
2952
|
var e;
|
|
3007
|
-
const t = n.auth, r = await n.getIdToken(), i = await Q(n,
|
|
2953
|
+
const t = n.auth, r = await n.getIdToken(), i = await Q(n, an(t, { idToken: r }));
|
|
3008
2954
|
h(
|
|
3009
2955
|
i == null ? void 0 : i.users.length,
|
|
3010
2956
|
t,
|
|
@@ -3013,7 +2959,7 @@ async function me(n) {
|
|
|
3013
2959
|
);
|
|
3014
2960
|
const s = i.users[0];
|
|
3015
2961
|
n._notifyReloadListener(s);
|
|
3016
|
-
const a = !((e = s.providerUserInfo) === null || e === void 0) && e.length ?
|
|
2962
|
+
const a = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? on(s.providerUserInfo) : [], c = zi(n.providerData, a), o = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), u = o ? l : !1, d = {
|
|
3017
2963
|
uid: s.localId,
|
|
3018
2964
|
displayName: s.displayName || null,
|
|
3019
2965
|
photoURL: s.photoUrl || null,
|
|
@@ -3022,21 +2968,21 @@ async function me(n) {
|
|
|
3022
2968
|
phoneNumber: s.phoneNumber || null,
|
|
3023
2969
|
tenantId: s.tenantId || null,
|
|
3024
2970
|
providerData: c,
|
|
3025
|
-
metadata: new
|
|
2971
|
+
metadata: new He(s.createdAt, s.lastLoginAt),
|
|
3026
2972
|
isAnonymous: u
|
|
3027
2973
|
};
|
|
3028
2974
|
Object.assign(n, d);
|
|
3029
2975
|
}
|
|
3030
2976
|
async function Wi(n) {
|
|
3031
2977
|
const e = z(n);
|
|
3032
|
-
await
|
|
2978
|
+
await pe(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
3033
2979
|
}
|
|
3034
2980
|
function zi(n, e) {
|
|
3035
2981
|
return [...n.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
|
|
3036
2982
|
}
|
|
3037
|
-
function
|
|
2983
|
+
function on(n) {
|
|
3038
2984
|
return n.map((e) => {
|
|
3039
|
-
var { providerId: t } = e, r =
|
|
2985
|
+
var { providerId: t } = e, r = Ge(e, ["providerId"]);
|
|
3040
2986
|
return {
|
|
3041
2987
|
providerId: t,
|
|
3042
2988
|
uid: r.rawId || "",
|
|
@@ -3064,15 +3010,15 @@ function cn(n) {
|
|
|
3064
3010
|
* limitations under the License.
|
|
3065
3011
|
*/
|
|
3066
3012
|
async function Gi(n, e) {
|
|
3067
|
-
const t = await
|
|
3013
|
+
const t = await nn(n, {}, async () => {
|
|
3068
3014
|
const r = ee({
|
|
3069
3015
|
grant_type: "refresh_token",
|
|
3070
3016
|
refresh_token: e
|
|
3071
|
-
}).slice(1), { tokenApiHost: i, apiKey: s } = n.config, a =
|
|
3017
|
+
}).slice(1), { tokenApiHost: i, apiKey: s } = n.config, a = sn(n, i, "/v1/token", `key=${s}`), c = await n._getAdditionalHeaders();
|
|
3072
3018
|
return c[
|
|
3073
3019
|
"Content-Type"
|
|
3074
3020
|
/* HttpHeader.CONTENT_TYPE */
|
|
3075
|
-
] = "application/x-www-form-urlencoded",
|
|
3021
|
+
] = "application/x-www-form-urlencoded", tn.fetch()(a, {
|
|
3076
3022
|
method: "POST",
|
|
3077
3023
|
headers: c,
|
|
3078
3024
|
body: r
|
|
@@ -3085,7 +3031,7 @@ async function Gi(n, e) {
|
|
|
3085
3031
|
};
|
|
3086
3032
|
}
|
|
3087
3033
|
async function qi(n, e) {
|
|
3088
|
-
return G(n, "POST", "/v2/accounts:revokeToken",
|
|
3034
|
+
return G(n, "POST", "/v2/accounts:revokeToken", ye(n, e));
|
|
3089
3035
|
}
|
|
3090
3036
|
/**
|
|
3091
3037
|
* @license
|
|
@@ -3124,7 +3070,7 @@ class H {
|
|
|
3124
3070
|
"internal-error"
|
|
3125
3071
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3126
3072
|
);
|
|
3127
|
-
const t = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) :
|
|
3073
|
+
const t = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : _t(e.idToken);
|
|
3128
3074
|
this.updateTokensAndExpiration(e.idToken, e.refreshToken, t);
|
|
3129
3075
|
}
|
|
3130
3076
|
updateFromIdToken(e) {
|
|
@@ -3133,7 +3079,7 @@ class H {
|
|
|
3133
3079
|
"internal-error"
|
|
3134
3080
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3135
3081
|
);
|
|
3136
|
-
const t =
|
|
3082
|
+
const t = _t(e);
|
|
3137
3083
|
this.updateTokensAndExpiration(e, null, t);
|
|
3138
3084
|
}
|
|
3139
3085
|
async getToken(e, t = !1) {
|
|
@@ -3202,8 +3148,8 @@ function k(n, e) {
|
|
|
3202
3148
|
}
|
|
3203
3149
|
class I {
|
|
3204
3150
|
constructor(e) {
|
|
3205
|
-
var { uid: t, auth: r, stsTokenManager: i } = e, s =
|
|
3206
|
-
this.providerId = "firebase", this.proactiveRefresh = new ji(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
|
|
3151
|
+
var { uid: t, auth: r, stsTokenManager: i } = e, s = Ge(e, ["uid", "auth", "stsTokenManager"]);
|
|
3152
|
+
this.providerId = "firebase", this.proactiveRefresh = new ji(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 He(s.createdAt || void 0, s.lastLoginAt || void 0);
|
|
3207
3153
|
}
|
|
3208
3154
|
async getIdToken(e) {
|
|
3209
3155
|
const t = await Q(this, this.stsTokenManager.getToken(this.auth, e));
|
|
@@ -3251,7 +3197,7 @@ class I {
|
|
|
3251
3197
|
}
|
|
3252
3198
|
async _updateTokensIfNecessary(e, t = !1) {
|
|
3253
3199
|
let r = !1;
|
|
3254
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await
|
|
3200
|
+
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await pe(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
|
|
3255
3201
|
}
|
|
3256
3202
|
async delete() {
|
|
3257
3203
|
if (v(this.auth.app))
|
|
@@ -3285,45 +3231,45 @@ class I {
|
|
|
3285
3231
|
}
|
|
3286
3232
|
static _fromJSON(e, t) {
|
|
3287
3233
|
var r, i, s, a, c, o, l, u;
|
|
3288
|
-
const d = (r = t.displayName) !== null && r !== void 0 ? r : void 0, p = (i = t.email) !== null && i !== void 0 ? i : void 0, m = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, F = (a = t.photoURL) !== null && a !== void 0 ? a : void 0,
|
|
3234
|
+
const d = (r = t.displayName) !== null && r !== void 0 ? r : void 0, p = (i = t.email) !== null && i !== void 0 ? i : void 0, m = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, F = (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: Ee, emailVerified: rt, isAnonymous: it, providerData: Te, stsTokenManager: st } = t;
|
|
3289
3235
|
h(
|
|
3290
|
-
|
|
3236
|
+
Ee && st,
|
|
3291
3237
|
e,
|
|
3292
3238
|
"internal-error"
|
|
3293
3239
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3294
3240
|
);
|
|
3295
|
-
const
|
|
3241
|
+
const Dn = H.fromJSON(this.name, st);
|
|
3296
3242
|
h(
|
|
3297
|
-
typeof
|
|
3243
|
+
typeof Ee == "string",
|
|
3298
3244
|
e,
|
|
3299
3245
|
"internal-error"
|
|
3300
3246
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3301
3247
|
), k(d, e.name), k(p, e.name), h(
|
|
3302
|
-
typeof
|
|
3248
|
+
typeof rt == "boolean",
|
|
3303
3249
|
e,
|
|
3304
3250
|
"internal-error"
|
|
3305
3251
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3306
3252
|
), h(
|
|
3307
|
-
typeof
|
|
3253
|
+
typeof it == "boolean",
|
|
3308
3254
|
e,
|
|
3309
3255
|
"internal-error"
|
|
3310
3256
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3311
|
-
), k(m, e.name), k(F, e.name), k(
|
|
3312
|
-
const
|
|
3313
|
-
uid:
|
|
3257
|
+
), k(m, e.name), k(F, e.name), k(et, e.name), k(we, e.name), k(tt, e.name), k(nt, e.name);
|
|
3258
|
+
const Se = new I({
|
|
3259
|
+
uid: Ee,
|
|
3314
3260
|
auth: e,
|
|
3315
3261
|
email: p,
|
|
3316
|
-
emailVerified:
|
|
3262
|
+
emailVerified: rt,
|
|
3317
3263
|
displayName: d,
|
|
3318
|
-
isAnonymous:
|
|
3264
|
+
isAnonymous: it,
|
|
3319
3265
|
photoURL: F,
|
|
3320
3266
|
phoneNumber: m,
|
|
3321
|
-
tenantId:
|
|
3322
|
-
stsTokenManager:
|
|
3323
|
-
createdAt:
|
|
3324
|
-
lastLoginAt:
|
|
3267
|
+
tenantId: et,
|
|
3268
|
+
stsTokenManager: Dn,
|
|
3269
|
+
createdAt: tt,
|
|
3270
|
+
lastLoginAt: nt
|
|
3325
3271
|
});
|
|
3326
|
-
return
|
|
3272
|
+
return Te && Array.isArray(Te) && (Se.providerData = Te.map((Nn) => Object.assign({}, Nn))), we && (Se._redirectEventId = we), Se;
|
|
3327
3273
|
}
|
|
3328
3274
|
/**
|
|
3329
3275
|
* Initialize a User from an idToken server response
|
|
@@ -3339,7 +3285,7 @@ class I {
|
|
|
3339
3285
|
stsTokenManager: i,
|
|
3340
3286
|
isAnonymous: r
|
|
3341
3287
|
});
|
|
3342
|
-
return await
|
|
3288
|
+
return await pe(s), s;
|
|
3343
3289
|
}
|
|
3344
3290
|
/**
|
|
3345
3291
|
* Initialize a User from an idToken server response
|
|
@@ -3353,7 +3299,7 @@ class I {
|
|
|
3353
3299
|
"internal-error"
|
|
3354
3300
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3355
3301
|
);
|
|
3356
|
-
const s = i.providerUserInfo !== void 0 ?
|
|
3302
|
+
const s = i.providerUserInfo !== void 0 ? on(i.providerUserInfo) : [], a = !(i.email && i.passwordHash) && !(s != null && s.length), c = new H();
|
|
3357
3303
|
c.updateFromIdToken(r);
|
|
3358
3304
|
const o = new I({
|
|
3359
3305
|
uid: i.localId,
|
|
@@ -3369,7 +3315,7 @@ class I {
|
|
|
3369
3315
|
phoneNumber: i.phoneNumber || null,
|
|
3370
3316
|
tenantId: i.tenantId || null,
|
|
3371
3317
|
providerData: s,
|
|
3372
|
-
metadata: new
|
|
3318
|
+
metadata: new He(i.createdAt, i.lastLoginAt),
|
|
3373
3319
|
isAnonymous: !(i.email && i.passwordHash) && !(s != null && s.length)
|
|
3374
3320
|
};
|
|
3375
3321
|
return Object.assign(o, l), o;
|
|
@@ -3391,11 +3337,11 @@ class I {
|
|
|
3391
3337
|
* See the License for the specific language governing permissions and
|
|
3392
3338
|
* limitations under the License.
|
|
3393
3339
|
*/
|
|
3394
|
-
const
|
|
3340
|
+
const yt = /* @__PURE__ */ new Map();
|
|
3395
3341
|
function w(n) {
|
|
3396
3342
|
S(n instanceof Function, "Expected a class definition");
|
|
3397
|
-
let e =
|
|
3398
|
-
return e ? (S(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(),
|
|
3343
|
+
let e = yt.get(n);
|
|
3344
|
+
return e ? (S(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), yt.set(n, e), e);
|
|
3399
3345
|
}
|
|
3400
3346
|
/**
|
|
3401
3347
|
* @license
|
|
@@ -3413,7 +3359,7 @@ function w(n) {
|
|
|
3413
3359
|
* See the License for the specific language governing permissions and
|
|
3414
3360
|
* limitations under the License.
|
|
3415
3361
|
*/
|
|
3416
|
-
class
|
|
3362
|
+
class cn {
|
|
3417
3363
|
constructor() {
|
|
3418
3364
|
this.type = "NONE", this.storage = {};
|
|
3419
3365
|
}
|
|
@@ -3435,8 +3381,8 @@ class ln {
|
|
|
3435
3381
|
_removeListener(e, t) {
|
|
3436
3382
|
}
|
|
3437
3383
|
}
|
|
3438
|
-
|
|
3439
|
-
const
|
|
3384
|
+
cn.type = "NONE";
|
|
3385
|
+
const vt = cn;
|
|
3440
3386
|
/**
|
|
3441
3387
|
* @license
|
|
3442
3388
|
* Copyright 2019 Google LLC
|
|
@@ -3487,12 +3433,12 @@ class V {
|
|
|
3487
3433
|
}
|
|
3488
3434
|
static async create(e, t, r = "authUser") {
|
|
3489
3435
|
if (!t.length)
|
|
3490
|
-
return new V(w(
|
|
3436
|
+
return new V(w(vt), e, r);
|
|
3491
3437
|
const i = (await Promise.all(t.map(async (l) => {
|
|
3492
3438
|
if (await l._isAvailable())
|
|
3493
3439
|
return l;
|
|
3494
3440
|
}))).filter((l) => l);
|
|
3495
|
-
let s = i[0] || w(
|
|
3441
|
+
let s = i[0] || w(vt);
|
|
3496
3442
|
const a = oe(r, e.config.apiKey, e.name);
|
|
3497
3443
|
let c = null;
|
|
3498
3444
|
for (const l of t)
|
|
@@ -3531,29 +3477,29 @@ class V {
|
|
|
3531
3477
|
* See the License for the specific language governing permissions and
|
|
3532
3478
|
* limitations under the License.
|
|
3533
3479
|
*/
|
|
3534
|
-
function
|
|
3480
|
+
function bt(n) {
|
|
3535
3481
|
const e = n.toLowerCase();
|
|
3536
3482
|
if (e.includes("opera/") || e.includes("opr/") || e.includes("opios/"))
|
|
3537
3483
|
return "Opera";
|
|
3538
|
-
if (
|
|
3484
|
+
if (hn(e))
|
|
3539
3485
|
return "IEMobile";
|
|
3540
3486
|
if (e.includes("msie") || e.includes("trident/"))
|
|
3541
3487
|
return "IE";
|
|
3542
3488
|
if (e.includes("edge/"))
|
|
3543
3489
|
return "Edge";
|
|
3544
|
-
if (
|
|
3490
|
+
if (ln(e))
|
|
3545
3491
|
return "Firefox";
|
|
3546
3492
|
if (e.includes("silk/"))
|
|
3547
3493
|
return "Silk";
|
|
3548
|
-
if (
|
|
3494
|
+
if (pn(e))
|
|
3549
3495
|
return "Blackberry";
|
|
3550
|
-
if (
|
|
3496
|
+
if (mn(e))
|
|
3551
3497
|
return "Webos";
|
|
3552
|
-
if (
|
|
3498
|
+
if (un(e))
|
|
3553
3499
|
return "Safari";
|
|
3554
|
-
if ((e.includes("chrome/") ||
|
|
3500
|
+
if ((e.includes("chrome/") || dn(e)) && !e.includes("edge/"))
|
|
3555
3501
|
return "Chrome";
|
|
3556
|
-
if (
|
|
3502
|
+
if (fn(e))
|
|
3557
3503
|
return "Android";
|
|
3558
3504
|
{
|
|
3559
3505
|
const t = /([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/, r = n.match(t);
|
|
@@ -3562,40 +3508,40 @@ function It(n) {
|
|
|
3562
3508
|
}
|
|
3563
3509
|
return "Other";
|
|
3564
3510
|
}
|
|
3565
|
-
function
|
|
3511
|
+
function ln(n = g()) {
|
|
3566
3512
|
return /firefox\//i.test(n);
|
|
3567
3513
|
}
|
|
3568
|
-
function
|
|
3514
|
+
function un(n = g()) {
|
|
3569
3515
|
const e = n.toLowerCase();
|
|
3570
3516
|
return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
|
|
3571
3517
|
}
|
|
3572
|
-
function
|
|
3518
|
+
function dn(n = g()) {
|
|
3573
3519
|
return /crios\//i.test(n);
|
|
3574
3520
|
}
|
|
3575
|
-
function
|
|
3521
|
+
function hn(n = g()) {
|
|
3576
3522
|
return /iemobile/i.test(n);
|
|
3577
3523
|
}
|
|
3578
|
-
function
|
|
3524
|
+
function fn(n = g()) {
|
|
3579
3525
|
return /android/i.test(n);
|
|
3580
3526
|
}
|
|
3581
|
-
function
|
|
3527
|
+
function pn(n = g()) {
|
|
3582
3528
|
return /blackberry/i.test(n);
|
|
3583
3529
|
}
|
|
3584
|
-
function
|
|
3530
|
+
function mn(n = g()) {
|
|
3585
3531
|
return /webos/i.test(n);
|
|
3586
3532
|
}
|
|
3587
|
-
function
|
|
3533
|
+
function Ye(n = g()) {
|
|
3588
3534
|
return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
|
|
3589
3535
|
}
|
|
3590
3536
|
function Ki(n = g()) {
|
|
3591
3537
|
var e;
|
|
3592
|
-
return
|
|
3538
|
+
return Ye(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
|
3593
3539
|
}
|
|
3594
3540
|
function Ji() {
|
|
3595
3541
|
return hr() && document.documentMode === 10;
|
|
3596
3542
|
}
|
|
3597
|
-
function
|
|
3598
|
-
return
|
|
3543
|
+
function gn(n = g()) {
|
|
3544
|
+
return Ye(n) || fn(n) || mn(n) || pn(n) || /windows phone/i.test(n) || hn(n);
|
|
3599
3545
|
}
|
|
3600
3546
|
/**
|
|
3601
3547
|
* @license
|
|
@@ -3613,14 +3559,14 @@ function _n(n = g()) {
|
|
|
3613
3559
|
* See the License for the specific language governing permissions and
|
|
3614
3560
|
* limitations under the License.
|
|
3615
3561
|
*/
|
|
3616
|
-
function
|
|
3562
|
+
function _n(n, e = []) {
|
|
3617
3563
|
let t;
|
|
3618
3564
|
switch (n) {
|
|
3619
3565
|
case "Browser":
|
|
3620
|
-
t =
|
|
3566
|
+
t = bt(g());
|
|
3621
3567
|
break;
|
|
3622
3568
|
case "Worker":
|
|
3623
|
-
t = `${
|
|
3569
|
+
t = `${bt(g())}-${n}`;
|
|
3624
3570
|
break;
|
|
3625
3571
|
default:
|
|
3626
3572
|
t = n;
|
|
@@ -3700,7 +3646,7 @@ class Yi {
|
|
|
3700
3646
|
* limitations under the License.
|
|
3701
3647
|
*/
|
|
3702
3648
|
async function Xi(n, e = {}) {
|
|
3703
|
-
return G(n, "GET", "/v2/passwordPolicy",
|
|
3649
|
+
return G(n, "GET", "/v2/passwordPolicy", ye(n, e));
|
|
3704
3650
|
}
|
|
3705
3651
|
/**
|
|
3706
3652
|
* @license
|
|
@@ -3808,7 +3754,7 @@ class Zi {
|
|
|
3808
3754
|
*/
|
|
3809
3755
|
class es {
|
|
3810
3756
|
constructor(e, t, r, i) {
|
|
3811
|
-
this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new
|
|
3757
|
+
this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new It(this), this.idTokenSubscription = new It(this), this.beforeStateQueue = new Yi(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 = Zt, 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 = i.sdkClientVersion;
|
|
3812
3758
|
}
|
|
3813
3759
|
_initializeWithPersistence(e, t) {
|
|
3814
3760
|
return t && (this._popupRedirectResolver = w(t)), this._initializationPromise = this.queue(async () => {
|
|
@@ -3844,7 +3790,7 @@ class es {
|
|
|
3844
3790
|
}
|
|
3845
3791
|
async initializeCurrentUserFromIdToken(e) {
|
|
3846
3792
|
try {
|
|
3847
|
-
const t = await
|
|
3793
|
+
const t = await an(this, { idToken: e }), r = await I._fromGetAccountInfoResponse(this, t, e);
|
|
3848
3794
|
await this.directlySetCurrentUser(r);
|
|
3849
3795
|
} catch (t) {
|
|
3850
3796
|
console.warn("FirebaseServerApp could not login user with provided authIdToken: ", t), await this.directlySetCurrentUser(null);
|
|
@@ -3894,7 +3840,7 @@ class es {
|
|
|
3894
3840
|
}
|
|
3895
3841
|
async reloadAndSetCurrentUserOrClear(e) {
|
|
3896
3842
|
try {
|
|
3897
|
-
await
|
|
3843
|
+
await pe(e);
|
|
3898
3844
|
} catch (t) {
|
|
3899
3845
|
if ((t == null ? void 0 : t.code) !== "auth/network-request-failed")
|
|
3900
3846
|
return this.directlySetCurrentUser(null);
|
|
@@ -4106,7 +4052,7 @@ class es {
|
|
|
4106
4052
|
), this.persistenceManager;
|
|
4107
4053
|
}
|
|
4108
4054
|
_logFramework(e) {
|
|
4109
|
-
!e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion =
|
|
4055
|
+
!e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = _n(this.config.clientPlatform, this._getFrameworks()));
|
|
4110
4056
|
}
|
|
4111
4057
|
_getFrameworks() {
|
|
4112
4058
|
return this.frameworks;
|
|
@@ -4139,10 +4085,10 @@ class es {
|
|
|
4139
4085
|
return t != null && t.error && Ni(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
|
|
4140
4086
|
}
|
|
4141
4087
|
}
|
|
4142
|
-
function
|
|
4088
|
+
function ve(n) {
|
|
4143
4089
|
return z(n);
|
|
4144
4090
|
}
|
|
4145
|
-
class
|
|
4091
|
+
class It {
|
|
4146
4092
|
constructor(e) {
|
|
4147
4093
|
this.auth = e, this.observer = null, this.addObserver = vr((t) => this.observer = t);
|
|
4148
4094
|
}
|
|
@@ -4171,7 +4117,7 @@ class wt {
|
|
|
4171
4117
|
* See the License for the specific language governing permissions and
|
|
4172
4118
|
* limitations under the License.
|
|
4173
4119
|
*/
|
|
4174
|
-
let
|
|
4120
|
+
let Xe = {
|
|
4175
4121
|
async loadJS() {
|
|
4176
4122
|
throw new Error("Unable to load external scripts");
|
|
4177
4123
|
},
|
|
@@ -4180,13 +4126,13 @@ let Qe = {
|
|
|
4180
4126
|
gapiScript: ""
|
|
4181
4127
|
};
|
|
4182
4128
|
function ts(n) {
|
|
4183
|
-
|
|
4129
|
+
Xe = n;
|
|
4184
4130
|
}
|
|
4185
4131
|
function ns(n) {
|
|
4186
|
-
return
|
|
4132
|
+
return Xe.loadJS(n);
|
|
4187
4133
|
}
|
|
4188
4134
|
function rs() {
|
|
4189
|
-
return
|
|
4135
|
+
return Xe.gapiScript;
|
|
4190
4136
|
}
|
|
4191
4137
|
function is(n) {
|
|
4192
4138
|
return `__${n}${Math.floor(Math.random() * 1e6)}`;
|
|
@@ -4208,10 +4154,10 @@ function is(n) {
|
|
|
4208
4154
|
* limitations under the License.
|
|
4209
4155
|
*/
|
|
4210
4156
|
function ss(n, e) {
|
|
4211
|
-
const t =
|
|
4157
|
+
const t = Kt(n, "auth");
|
|
4212
4158
|
if (t.isInitialized()) {
|
|
4213
4159
|
const i = t.getImmediate(), s = t.getOptions();
|
|
4214
|
-
if (
|
|
4160
|
+
if (de(s, e ?? {}))
|
|
4215
4161
|
return i;
|
|
4216
4162
|
T(
|
|
4217
4163
|
i,
|
|
@@ -4226,7 +4172,7 @@ function as(n, e) {
|
|
|
4226
4172
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
|
4227
4173
|
}
|
|
4228
4174
|
function os(n, e, t) {
|
|
4229
|
-
const r =
|
|
4175
|
+
const r = ve(n);
|
|
4230
4176
|
h(
|
|
4231
4177
|
r._canInitEmulator,
|
|
4232
4178
|
r,
|
|
@@ -4238,7 +4184,7 @@ function os(n, e, t) {
|
|
|
4238
4184
|
"invalid-emulator-scheme"
|
|
4239
4185
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
|
4240
4186
|
);
|
|
4241
|
-
const i = !1, s =
|
|
4187
|
+
const i = !1, s = yn(e), { host: a, port: c } = cs(e), o = c === null ? "" : `:${c}`;
|
|
4242
4188
|
r.config.emulator = { url: `${s}//${a}${o}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
|
|
4243
4189
|
host: a,
|
|
4244
4190
|
port: c,
|
|
@@ -4246,24 +4192,24 @@ function os(n, e, t) {
|
|
|
4246
4192
|
options: Object.freeze({ disableWarnings: i })
|
|
4247
4193
|
}), ls();
|
|
4248
4194
|
}
|
|
4249
|
-
function
|
|
4195
|
+
function yn(n) {
|
|
4250
4196
|
const e = n.indexOf(":");
|
|
4251
4197
|
return e < 0 ? "" : n.substr(0, e + 1);
|
|
4252
4198
|
}
|
|
4253
4199
|
function cs(n) {
|
|
4254
|
-
const e =
|
|
4200
|
+
const e = yn(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
|
|
4255
4201
|
if (!t)
|
|
4256
4202
|
return { host: "", port: null };
|
|
4257
4203
|
const r = t[2].split("@").pop() || "", i = /^(\[[^\]]+\])(:|$)/.exec(r);
|
|
4258
4204
|
if (i) {
|
|
4259
4205
|
const s = i[1];
|
|
4260
|
-
return { host: s, port:
|
|
4206
|
+
return { host: s, port: wt(r.substr(s.length + 1)) };
|
|
4261
4207
|
} else {
|
|
4262
4208
|
const [s, a] = r.split(":");
|
|
4263
|
-
return { host: s, port:
|
|
4209
|
+
return { host: s, port: wt(a) };
|
|
4264
4210
|
}
|
|
4265
4211
|
}
|
|
4266
|
-
function
|
|
4212
|
+
function wt(n) {
|
|
4267
4213
|
if (!n)
|
|
4268
4214
|
return null;
|
|
4269
4215
|
const e = Number(n);
|
|
@@ -4292,7 +4238,7 @@ function ls() {
|
|
|
4292
4238
|
* See the License for the specific language governing permissions and
|
|
4293
4239
|
* limitations under the License.
|
|
4294
4240
|
*/
|
|
4295
|
-
class
|
|
4241
|
+
class vn {
|
|
4296
4242
|
/** @internal */
|
|
4297
4243
|
constructor(e, t) {
|
|
4298
4244
|
this.providerId = e, this.signInMethod = t;
|
|
@@ -4335,7 +4281,7 @@ class bn {
|
|
|
4335
4281
|
* limitations under the License.
|
|
4336
4282
|
*/
|
|
4337
4283
|
async function j(n, e) {
|
|
4338
|
-
return
|
|
4284
|
+
return rn(n, "POST", "/v1/accounts:signInWithIdp", ye(n, e));
|
|
4339
4285
|
}
|
|
4340
4286
|
/**
|
|
4341
4287
|
* @license
|
|
@@ -4354,7 +4300,7 @@ async function j(n, e) {
|
|
|
4354
4300
|
* limitations under the License.
|
|
4355
4301
|
*/
|
|
4356
4302
|
const us = "http://localhost";
|
|
4357
|
-
class U extends
|
|
4303
|
+
class U extends vn {
|
|
4358
4304
|
constructor() {
|
|
4359
4305
|
super(...arguments), this.pendingToken = null;
|
|
4360
4306
|
}
|
|
@@ -4388,7 +4334,7 @@ class U extends bn {
|
|
|
4388
4334
|
* @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
|
|
4389
4335
|
*/
|
|
4390
4336
|
static fromJSON(e) {
|
|
4391
|
-
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s =
|
|
4337
|
+
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = Ge(t, ["providerId", "signInMethod"]);
|
|
4392
4338
|
if (!r || !i)
|
|
4393
4339
|
return null;
|
|
4394
4340
|
const a = new U(r, i);
|
|
@@ -4439,7 +4385,7 @@ class U extends bn {
|
|
|
4439
4385
|
* See the License for the specific language governing permissions and
|
|
4440
4386
|
* limitations under the License.
|
|
4441
4387
|
*/
|
|
4442
|
-
class
|
|
4388
|
+
class bn {
|
|
4443
4389
|
/**
|
|
4444
4390
|
* Constructor for generic OAuth providers.
|
|
4445
4391
|
*
|
|
@@ -4492,7 +4438,7 @@ class In {
|
|
|
4492
4438
|
* See the License for the specific language governing permissions and
|
|
4493
4439
|
* limitations under the License.
|
|
4494
4440
|
*/
|
|
4495
|
-
class re extends
|
|
4441
|
+
class re extends bn {
|
|
4496
4442
|
constructor() {
|
|
4497
4443
|
super(...arguments), this.scopes = [];
|
|
4498
4444
|
}
|
|
@@ -4598,7 +4544,7 @@ A.PROVIDER_ID = "facebook.com";
|
|
|
4598
4544
|
* See the License for the specific language governing permissions and
|
|
4599
4545
|
* limitations under the License.
|
|
4600
4546
|
*/
|
|
4601
|
-
class
|
|
4547
|
+
class C extends re {
|
|
4602
4548
|
constructor() {
|
|
4603
4549
|
super(
|
|
4604
4550
|
"google.com"
|
|
@@ -4620,8 +4566,8 @@ class R extends re {
|
|
|
4620
4566
|
*/
|
|
4621
4567
|
static credential(e, t) {
|
|
4622
4568
|
return U._fromParams({
|
|
4623
|
-
providerId:
|
|
4624
|
-
signInMethod:
|
|
4569
|
+
providerId: C.PROVIDER_ID,
|
|
4570
|
+
signInMethod: C.GOOGLE_SIGN_IN_METHOD,
|
|
4625
4571
|
idToken: e,
|
|
4626
4572
|
accessToken: t
|
|
4627
4573
|
});
|
|
@@ -4632,7 +4578,7 @@ class R extends re {
|
|
|
4632
4578
|
* @param userCredential - The user credential.
|
|
4633
4579
|
*/
|
|
4634
4580
|
static credentialFromResult(e) {
|
|
4635
|
-
return
|
|
4581
|
+
return C.credentialFromTaggedObject(e);
|
|
4636
4582
|
}
|
|
4637
4583
|
/**
|
|
4638
4584
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -4641,7 +4587,7 @@ class R extends re {
|
|
|
4641
4587
|
* @param userCredential - The user credential.
|
|
4642
4588
|
*/
|
|
4643
4589
|
static credentialFromError(e) {
|
|
4644
|
-
return
|
|
4590
|
+
return C.credentialFromTaggedObject(e.customData || {});
|
|
4645
4591
|
}
|
|
4646
4592
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
|
4647
4593
|
if (!e)
|
|
@@ -4650,14 +4596,14 @@ class R extends re {
|
|
|
4650
4596
|
if (!t && !r)
|
|
4651
4597
|
return null;
|
|
4652
4598
|
try {
|
|
4653
|
-
return
|
|
4599
|
+
return C.credential(t, r);
|
|
4654
4600
|
} catch {
|
|
4655
4601
|
return null;
|
|
4656
4602
|
}
|
|
4657
4603
|
}
|
|
4658
4604
|
}
|
|
4659
|
-
|
|
4660
|
-
|
|
4605
|
+
C.GOOGLE_SIGN_IN_METHOD = "google.com";
|
|
4606
|
+
C.PROVIDER_ID = "google.com";
|
|
4661
4607
|
/**
|
|
4662
4608
|
* @license
|
|
4663
4609
|
* Copyright 2020 Google LLC
|
|
@@ -4674,7 +4620,7 @@ R.PROVIDER_ID = "google.com";
|
|
|
4674
4620
|
* See the License for the specific language governing permissions and
|
|
4675
4621
|
* limitations under the License.
|
|
4676
4622
|
*/
|
|
4677
|
-
class
|
|
4623
|
+
class R extends re {
|
|
4678
4624
|
constructor() {
|
|
4679
4625
|
super(
|
|
4680
4626
|
"github.com"
|
|
@@ -4688,8 +4634,8 @@ class C extends re {
|
|
|
4688
4634
|
*/
|
|
4689
4635
|
static credential(e) {
|
|
4690
4636
|
return U._fromParams({
|
|
4691
|
-
providerId:
|
|
4692
|
-
signInMethod:
|
|
4637
|
+
providerId: R.PROVIDER_ID,
|
|
4638
|
+
signInMethod: R.GITHUB_SIGN_IN_METHOD,
|
|
4693
4639
|
accessToken: e
|
|
4694
4640
|
});
|
|
4695
4641
|
}
|
|
@@ -4699,7 +4645,7 @@ class C extends re {
|
|
|
4699
4645
|
* @param userCredential - The user credential.
|
|
4700
4646
|
*/
|
|
4701
4647
|
static credentialFromResult(e) {
|
|
4702
|
-
return
|
|
4648
|
+
return R.credentialFromTaggedObject(e);
|
|
4703
4649
|
}
|
|
4704
4650
|
/**
|
|
4705
4651
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -4708,20 +4654,20 @@ class C extends re {
|
|
|
4708
4654
|
* @param userCredential - The user credential.
|
|
4709
4655
|
*/
|
|
4710
4656
|
static credentialFromError(e) {
|
|
4711
|
-
return
|
|
4657
|
+
return R.credentialFromTaggedObject(e.customData || {});
|
|
4712
4658
|
}
|
|
4713
4659
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
|
4714
4660
|
if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
|
|
4715
4661
|
return null;
|
|
4716
4662
|
try {
|
|
4717
|
-
return
|
|
4663
|
+
return R.credential(e.oauthAccessToken);
|
|
4718
4664
|
} catch {
|
|
4719
4665
|
return null;
|
|
4720
4666
|
}
|
|
4721
4667
|
}
|
|
4722
4668
|
}
|
|
4723
|
-
|
|
4724
|
-
|
|
4669
|
+
R.GITHUB_SIGN_IN_METHOD = "github.com";
|
|
4670
|
+
R.PROVIDER_ID = "github.com";
|
|
4725
4671
|
/**
|
|
4726
4672
|
* @license
|
|
4727
4673
|
* Copyright 2020 Google LLC
|
|
@@ -4812,7 +4758,7 @@ class x {
|
|
|
4812
4758
|
this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
|
|
4813
4759
|
}
|
|
4814
4760
|
static async _fromIdTokenResponse(e, t, r, i = !1) {
|
|
4815
|
-
const s = await I._fromIdTokenResponse(e, r, i), a =
|
|
4761
|
+
const s = await I._fromIdTokenResponse(e, r, i), a = Et(r);
|
|
4816
4762
|
return new x({
|
|
4817
4763
|
user: s,
|
|
4818
4764
|
providerId: a,
|
|
@@ -4826,7 +4772,7 @@ class x {
|
|
|
4826
4772
|
/* reload */
|
|
4827
4773
|
!0
|
|
4828
4774
|
);
|
|
4829
|
-
const i =
|
|
4775
|
+
const i = Et(r);
|
|
4830
4776
|
return new x({
|
|
4831
4777
|
user: e,
|
|
4832
4778
|
providerId: i,
|
|
@@ -4835,7 +4781,7 @@ class x {
|
|
|
4835
4781
|
});
|
|
4836
4782
|
}
|
|
4837
4783
|
}
|
|
4838
|
-
function
|
|
4784
|
+
function Et(n) {
|
|
4839
4785
|
return n.providerId ? n.providerId : "phoneNumber" in n ? "phone" : null;
|
|
4840
4786
|
}
|
|
4841
4787
|
/**
|
|
@@ -4854,10 +4800,10 @@ function Tt(n) {
|
|
|
4854
4800
|
* See the License for the specific language governing permissions and
|
|
4855
4801
|
* limitations under the License.
|
|
4856
4802
|
*/
|
|
4857
|
-
class
|
|
4803
|
+
class me extends L {
|
|
4858
4804
|
constructor(e, t, r, i) {
|
|
4859
4805
|
var s;
|
|
4860
|
-
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this,
|
|
4806
|
+
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this, me.prototype), this.customData = {
|
|
4861
4807
|
appName: e.name,
|
|
4862
4808
|
tenantId: (s = e.tenantId) !== null && s !== void 0 ? s : void 0,
|
|
4863
4809
|
_serverResponse: t.customData._serverResponse,
|
|
@@ -4865,12 +4811,12 @@ class ge extends L {
|
|
|
4865
4811
|
};
|
|
4866
4812
|
}
|
|
4867
4813
|
static _fromErrorAndOperation(e, t, r, i) {
|
|
4868
|
-
return new
|
|
4814
|
+
return new me(e, t, r, i);
|
|
4869
4815
|
}
|
|
4870
4816
|
}
|
|
4871
|
-
function
|
|
4817
|
+
function In(n, e, t, r) {
|
|
4872
4818
|
return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
|
|
4873
|
-
throw s.code === "auth/multi-factor-auth-required" ?
|
|
4819
|
+
throw s.code === "auth/multi-factor-auth-required" ? me._fromErrorAndOperation(n, s, e, r) : s;
|
|
4874
4820
|
});
|
|
4875
4821
|
}
|
|
4876
4822
|
async function ds(n, e, t = !1) {
|
|
@@ -4899,14 +4845,14 @@ async function hs(n, e, t = !1) {
|
|
|
4899
4845
|
return Promise.reject(N(r));
|
|
4900
4846
|
const i = "reauthenticate";
|
|
4901
4847
|
try {
|
|
4902
|
-
const s = await Q(n,
|
|
4848
|
+
const s = await Q(n, In(r, i, e, n), t);
|
|
4903
4849
|
h(
|
|
4904
4850
|
s.idToken,
|
|
4905
4851
|
r,
|
|
4906
4852
|
"internal-error"
|
|
4907
4853
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
4908
4854
|
);
|
|
4909
|
-
const a =
|
|
4855
|
+
const a = Je(s.idToken);
|
|
4910
4856
|
h(
|
|
4911
4857
|
a,
|
|
4912
4858
|
r,
|
|
@@ -4947,7 +4893,7 @@ async function hs(n, e, t = !1) {
|
|
|
4947
4893
|
async function fs(n, e, t = !1) {
|
|
4948
4894
|
if (v(n.app))
|
|
4949
4895
|
return Promise.reject(N(n));
|
|
4950
|
-
const r = "signIn", i = await
|
|
4896
|
+
const r = "signIn", i = await In(n, r, e), s = await x._fromIdTokenResponse(n, r, i);
|
|
4951
4897
|
return t || await n._updateCurrentUser(s.user), s;
|
|
4952
4898
|
}
|
|
4953
4899
|
/**
|
|
@@ -4967,7 +4913,7 @@ async function fs(n, e, t = !1) {
|
|
|
4967
4913
|
* limitations under the License.
|
|
4968
4914
|
*/
|
|
4969
4915
|
async function ps(n, e) {
|
|
4970
|
-
return
|
|
4916
|
+
return rn(n, "POST", "/v1/accounts:signInWithCustomToken", ye(n, e));
|
|
4971
4917
|
}
|
|
4972
4918
|
/**
|
|
4973
4919
|
* @license
|
|
@@ -4988,7 +4934,7 @@ async function ps(n, e) {
|
|
|
4988
4934
|
async function ms(n, e) {
|
|
4989
4935
|
if (v(n.app))
|
|
4990
4936
|
return Promise.reject(N(n));
|
|
4991
|
-
const t =
|
|
4937
|
+
const t = ve(n), r = await ps(t, {
|
|
4992
4938
|
token: e,
|
|
4993
4939
|
returnSecureToken: !0
|
|
4994
4940
|
}), i = await x._fromIdTokenResponse(t, "signIn", r);
|
|
@@ -5000,7 +4946,7 @@ function gs(n, e, t, r) {
|
|
|
5000
4946
|
function _s(n, e, t) {
|
|
5001
4947
|
return z(n).beforeAuthStateChanged(e, t);
|
|
5002
4948
|
}
|
|
5003
|
-
const
|
|
4949
|
+
const ge = "__sak";
|
|
5004
4950
|
/**
|
|
5005
4951
|
* @license
|
|
5006
4952
|
* Copyright 2019 Google LLC
|
|
@@ -5017,13 +4963,13 @@ const _e = "__sak";
|
|
|
5017
4963
|
* See the License for the specific language governing permissions and
|
|
5018
4964
|
* limitations under the License.
|
|
5019
4965
|
*/
|
|
5020
|
-
class
|
|
4966
|
+
class wn {
|
|
5021
4967
|
constructor(e, t) {
|
|
5022
4968
|
this.storageRetriever = e, this.type = t;
|
|
5023
4969
|
}
|
|
5024
4970
|
_isAvailable() {
|
|
5025
4971
|
try {
|
|
5026
|
-
return this.storage ? (this.storage.setItem(
|
|
4972
|
+
return this.storage ? (this.storage.setItem(ge, "1"), this.storage.removeItem(ge), Promise.resolve(!0)) : Promise.resolve(!1);
|
|
5027
4973
|
} catch {
|
|
5028
4974
|
return Promise.resolve(!1);
|
|
5029
4975
|
}
|
|
@@ -5059,13 +5005,13 @@ class En {
|
|
|
5059
5005
|
* limitations under the License.
|
|
5060
5006
|
*/
|
|
5061
5007
|
const ys = 1e3, vs = 10;
|
|
5062
|
-
class
|
|
5008
|
+
class En extends wn {
|
|
5063
5009
|
constructor() {
|
|
5064
5010
|
super(
|
|
5065
5011
|
() => window.localStorage,
|
|
5066
5012
|
"LOCAL"
|
|
5067
5013
|
/* PersistenceType.LOCAL */
|
|
5068
|
-
), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.fallbackToPolling =
|
|
5014
|
+
), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.fallbackToPolling = gn(), this._shouldAllowMigration = !0;
|
|
5069
5015
|
}
|
|
5070
5016
|
forAllChangedKeys(e) {
|
|
5071
5017
|
for (const t of Object.keys(this.listeners)) {
|
|
@@ -5137,8 +5083,8 @@ class Tn extends En {
|
|
|
5137
5083
|
await super._remove(e), delete this.localCache[e];
|
|
5138
5084
|
}
|
|
5139
5085
|
}
|
|
5140
|
-
|
|
5141
|
-
const bs =
|
|
5086
|
+
En.type = "LOCAL";
|
|
5087
|
+
const bs = En;
|
|
5142
5088
|
/**
|
|
5143
5089
|
* @license
|
|
5144
5090
|
* Copyright 2020 Google LLC
|
|
@@ -5155,7 +5101,7 @@ const bs = Tn;
|
|
|
5155
5101
|
* See the License for the specific language governing permissions and
|
|
5156
5102
|
* limitations under the License.
|
|
5157
5103
|
*/
|
|
5158
|
-
class
|
|
5104
|
+
class Tn extends wn {
|
|
5159
5105
|
constructor() {
|
|
5160
5106
|
super(
|
|
5161
5107
|
() => window.sessionStorage,
|
|
@@ -5168,8 +5114,8 @@ class Sn extends En {
|
|
|
5168
5114
|
_removeListener(e, t) {
|
|
5169
5115
|
}
|
|
5170
5116
|
}
|
|
5171
|
-
|
|
5172
|
-
const
|
|
5117
|
+
Tn.type = "SESSION";
|
|
5118
|
+
const Sn = Tn;
|
|
5173
5119
|
/**
|
|
5174
5120
|
* @license
|
|
5175
5121
|
* Copyright 2019 Google LLC
|
|
@@ -5217,7 +5163,7 @@ function Is(n) {
|
|
|
5217
5163
|
* See the License for the specific language governing permissions and
|
|
5218
5164
|
* limitations under the License.
|
|
5219
5165
|
*/
|
|
5220
|
-
class
|
|
5166
|
+
class be {
|
|
5221
5167
|
constructor(e) {
|
|
5222
5168
|
this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
|
|
5223
5169
|
}
|
|
@@ -5231,7 +5177,7 @@ class Ie {
|
|
|
5231
5177
|
const t = this.receivers.find((i) => i.isListeningto(e));
|
|
5232
5178
|
if (t)
|
|
5233
5179
|
return t;
|
|
5234
|
-
const r = new
|
|
5180
|
+
const r = new be(e);
|
|
5235
5181
|
return this.receivers.push(r), r;
|
|
5236
5182
|
}
|
|
5237
5183
|
isListeningto(e) {
|
|
@@ -5285,7 +5231,7 @@ class Ie {
|
|
|
5285
5231
|
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);
|
|
5286
5232
|
}
|
|
5287
5233
|
}
|
|
5288
|
-
|
|
5234
|
+
be.receivers = [];
|
|
5289
5235
|
/**
|
|
5290
5236
|
* @license
|
|
5291
5237
|
* Copyright 2020 Google LLC
|
|
@@ -5302,7 +5248,7 @@ Ie.receivers = [];
|
|
|
5302
5248
|
* See the License for the specific language governing permissions and
|
|
5303
5249
|
* limitations under the License.
|
|
5304
5250
|
*/
|
|
5305
|
-
function
|
|
5251
|
+
function Qe(n = "", e = 10) {
|
|
5306
5252
|
let t = "";
|
|
5307
5253
|
for (let r = 0; r < e; r++)
|
|
5308
5254
|
t += Math.floor(Math.random() * 10);
|
|
@@ -5358,7 +5304,7 @@ class ws {
|
|
|
5358
5304
|
);
|
|
5359
5305
|
let s, a;
|
|
5360
5306
|
return new Promise((c, o) => {
|
|
5361
|
-
const l =
|
|
5307
|
+
const l = Qe("", 20);
|
|
5362
5308
|
i.port1.start();
|
|
5363
5309
|
const u = setTimeout(() => {
|
|
5364
5310
|
o(new Error(
|
|
@@ -5443,7 +5389,7 @@ function Es(n) {
|
|
|
5443
5389
|
* See the License for the specific language governing permissions and
|
|
5444
5390
|
* limitations under the License.
|
|
5445
5391
|
*/
|
|
5446
|
-
function
|
|
5392
|
+
function kn() {
|
|
5447
5393
|
return typeof y().WorkerGlobalScope < "u" && typeof y().importScripts == "function";
|
|
5448
5394
|
}
|
|
5449
5395
|
async function Ts() {
|
|
@@ -5460,7 +5406,7 @@ function Ss() {
|
|
|
5460
5406
|
return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
|
|
5461
5407
|
}
|
|
5462
5408
|
function ks() {
|
|
5463
|
-
return
|
|
5409
|
+
return kn() ? self : null;
|
|
5464
5410
|
}
|
|
5465
5411
|
/**
|
|
5466
5412
|
* @license
|
|
@@ -5478,7 +5424,7 @@ function ks() {
|
|
|
5478
5424
|
* See the License for the specific language governing permissions and
|
|
5479
5425
|
* limitations under the License.
|
|
5480
5426
|
*/
|
|
5481
|
-
const
|
|
5427
|
+
const An = "firebaseLocalStorageDb", As = 1, _e = "firebaseLocalStorage", Cn = "fbase_key";
|
|
5482
5428
|
class ie {
|
|
5483
5429
|
constructor(e) {
|
|
5484
5430
|
this.request = e;
|
|
@@ -5493,55 +5439,55 @@ class ie {
|
|
|
5493
5439
|
});
|
|
5494
5440
|
}
|
|
5495
5441
|
}
|
|
5496
|
-
function
|
|
5497
|
-
return n.transaction([
|
|
5442
|
+
function Ie(n, e) {
|
|
5443
|
+
return n.transaction([_e], e ? "readwrite" : "readonly").objectStore(_e);
|
|
5498
5444
|
}
|
|
5499
|
-
function
|
|
5500
|
-
const n = indexedDB.deleteDatabase(
|
|
5445
|
+
function Cs() {
|
|
5446
|
+
const n = indexedDB.deleteDatabase(An);
|
|
5501
5447
|
return new ie(n).toPromise();
|
|
5502
5448
|
}
|
|
5503
|
-
function
|
|
5504
|
-
const n = indexedDB.open(
|
|
5449
|
+
function Ve() {
|
|
5450
|
+
const n = indexedDB.open(An, As);
|
|
5505
5451
|
return new Promise((e, t) => {
|
|
5506
5452
|
n.addEventListener("error", () => {
|
|
5507
5453
|
t(n.error);
|
|
5508
5454
|
}), n.addEventListener("upgradeneeded", () => {
|
|
5509
5455
|
const r = n.result;
|
|
5510
5456
|
try {
|
|
5511
|
-
r.createObjectStore(
|
|
5457
|
+
r.createObjectStore(_e, { keyPath: Cn });
|
|
5512
5458
|
} catch (i) {
|
|
5513
5459
|
t(i);
|
|
5514
5460
|
}
|
|
5515
5461
|
}), n.addEventListener("success", async () => {
|
|
5516
5462
|
const r = n.result;
|
|
5517
|
-
r.objectStoreNames.contains(
|
|
5463
|
+
r.objectStoreNames.contains(_e) ? e(r) : (r.close(), await Cs(), e(await Ve()));
|
|
5518
5464
|
});
|
|
5519
5465
|
});
|
|
5520
5466
|
}
|
|
5521
|
-
async function
|
|
5522
|
-
const r =
|
|
5467
|
+
async function Tt(n, e, t) {
|
|
5468
|
+
const r = Ie(n, !0).put({
|
|
5523
5469
|
[Cn]: e,
|
|
5524
5470
|
value: t
|
|
5525
5471
|
});
|
|
5526
5472
|
return new ie(r).toPromise();
|
|
5527
5473
|
}
|
|
5528
|
-
async function
|
|
5529
|
-
const t =
|
|
5474
|
+
async function Rs(n, e) {
|
|
5475
|
+
const t = Ie(n, !1).get(e), r = await new ie(t).toPromise();
|
|
5530
5476
|
return r === void 0 ? null : r.value;
|
|
5531
5477
|
}
|
|
5532
|
-
function
|
|
5533
|
-
const t =
|
|
5478
|
+
function St(n, e) {
|
|
5479
|
+
const t = Ie(n, !0).delete(e);
|
|
5534
5480
|
return new ie(t).toPromise();
|
|
5535
5481
|
}
|
|
5536
5482
|
const Ps = 800, Os = 3;
|
|
5537
|
-
class
|
|
5483
|
+
class Rn {
|
|
5538
5484
|
constructor() {
|
|
5539
5485
|
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(() => {
|
|
5540
5486
|
}, () => {
|
|
5541
5487
|
});
|
|
5542
5488
|
}
|
|
5543
5489
|
async _openDb() {
|
|
5544
|
-
return this.db ? this.db : (this.db = await
|
|
5490
|
+
return this.db ? this.db : (this.db = await Ve(), this.db);
|
|
5545
5491
|
}
|
|
5546
5492
|
async _withRetries(e) {
|
|
5547
5493
|
let t = 0;
|
|
@@ -5560,13 +5506,13 @@ class Pn {
|
|
|
5560
5506
|
* postMessage interface to send these events to the worker ourselves.
|
|
5561
5507
|
*/
|
|
5562
5508
|
async initializeServiceWorkerMessaging() {
|
|
5563
|
-
return
|
|
5509
|
+
return kn() ? this.initializeReceiver() : this.initializeSender();
|
|
5564
5510
|
}
|
|
5565
5511
|
/**
|
|
5566
5512
|
* As the worker we should listen to events from the main window.
|
|
5567
5513
|
*/
|
|
5568
5514
|
async initializeReceiver() {
|
|
5569
|
-
this.receiver =
|
|
5515
|
+
this.receiver = be._getInstance(ks()), this.receiver._subscribe("keyChanged", async (e, t) => ({
|
|
5570
5516
|
keyProcessed: (await this._poll()).includes(t.key)
|
|
5571
5517
|
})), this.receiver._subscribe("ping", async (e, t) => [
|
|
5572
5518
|
"keyChanged"
|
|
@@ -5622,8 +5568,8 @@ class Pn {
|
|
|
5622
5568
|
try {
|
|
5623
5569
|
if (!indexedDB)
|
|
5624
5570
|
return !1;
|
|
5625
|
-
const e = await
|
|
5626
|
-
return await
|
|
5571
|
+
const e = await Ve();
|
|
5572
|
+
return await Tt(e, ge, "1"), await St(e, ge), !0;
|
|
5627
5573
|
} catch {
|
|
5628
5574
|
}
|
|
5629
5575
|
return !1;
|
|
@@ -5637,18 +5583,18 @@ class Pn {
|
|
|
5637
5583
|
}
|
|
5638
5584
|
}
|
|
5639
5585
|
async _set(e, t) {
|
|
5640
|
-
return this._withPendingWrite(async () => (await this._withRetries((r) =>
|
|
5586
|
+
return this._withPendingWrite(async () => (await this._withRetries((r) => Tt(r, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
|
|
5641
5587
|
}
|
|
5642
5588
|
async _get(e) {
|
|
5643
|
-
const t = await this._withRetries((r) =>
|
|
5589
|
+
const t = await this._withRetries((r) => Rs(r, e));
|
|
5644
5590
|
return this.localCache[e] = t, t;
|
|
5645
5591
|
}
|
|
5646
5592
|
async _remove(e) {
|
|
5647
|
-
return this._withPendingWrite(async () => (await this._withRetries((t) =>
|
|
5593
|
+
return this._withPendingWrite(async () => (await this._withRetries((t) => St(t, e)), delete this.localCache[e], this.notifyServiceWorker(e)));
|
|
5648
5594
|
}
|
|
5649
5595
|
async _poll() {
|
|
5650
5596
|
const e = await this._withRetries((i) => {
|
|
5651
|
-
const s =
|
|
5597
|
+
const s = Ie(i, !1).getAll();
|
|
5652
5598
|
return new ie(s).toPromise();
|
|
5653
5599
|
});
|
|
5654
5600
|
if (!e)
|
|
@@ -5683,8 +5629,8 @@ class Pn {
|
|
|
5683
5629
|
this.listeners[e] && (this.listeners[e].delete(t), this.listeners[e].size === 0 && delete this.listeners[e]), Object.keys(this.listeners).length === 0 && this.stopPolling();
|
|
5684
5630
|
}
|
|
5685
5631
|
}
|
|
5686
|
-
|
|
5687
|
-
const Ds =
|
|
5632
|
+
Rn.type = "LOCAL";
|
|
5633
|
+
const Ds = Rn;
|
|
5688
5634
|
new ne(3e4, 6e4);
|
|
5689
5635
|
/**
|
|
5690
5636
|
* @license
|
|
@@ -5726,7 +5672,7 @@ function Ns(n, e) {
|
|
|
5726
5672
|
* See the License for the specific language governing permissions and
|
|
5727
5673
|
* limitations under the License.
|
|
5728
5674
|
*/
|
|
5729
|
-
class
|
|
5675
|
+
class Ze extends vn {
|
|
5730
5676
|
constructor(e) {
|
|
5731
5677
|
super(
|
|
5732
5678
|
"custom",
|
|
@@ -5757,7 +5703,7 @@ class et extends bn {
|
|
|
5757
5703
|
}
|
|
5758
5704
|
}
|
|
5759
5705
|
function Ls(n) {
|
|
5760
|
-
return fs(n.auth, new
|
|
5706
|
+
return fs(n.auth, new Ze(n), n.bypassAuthState);
|
|
5761
5707
|
}
|
|
5762
5708
|
function Ms(n) {
|
|
5763
5709
|
const { auth: e, user: t } = n;
|
|
@@ -5766,7 +5712,7 @@ function Ms(n) {
|
|
|
5766
5712
|
e,
|
|
5767
5713
|
"internal-error"
|
|
5768
5714
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5769
|
-
), hs(t, new
|
|
5715
|
+
), hs(t, new Ze(n), n.bypassAuthState);
|
|
5770
5716
|
}
|
|
5771
5717
|
async function Us(n) {
|
|
5772
5718
|
const { auth: e, user: t } = n;
|
|
@@ -5775,7 +5721,7 @@ async function Us(n) {
|
|
|
5775
5721
|
e,
|
|
5776
5722
|
"internal-error"
|
|
5777
5723
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5778
|
-
), ds(t, new
|
|
5724
|
+
), ds(t, new Ze(n), n.bypassAuthState);
|
|
5779
5725
|
}
|
|
5780
5726
|
/**
|
|
5781
5727
|
* @license
|
|
@@ -5793,7 +5739,7 @@ async function Us(n) {
|
|
|
5793
5739
|
* See the License for the specific language governing permissions and
|
|
5794
5740
|
* limitations under the License.
|
|
5795
5741
|
*/
|
|
5796
|
-
class
|
|
5742
|
+
class Pn {
|
|
5797
5743
|
constructor(e, t, r, i, s = !1) {
|
|
5798
5744
|
this.auth = e, this.resolver = r, this.user = i, this.bypassAuthState = s, this.pendingPromise = null, this.eventManager = null, this.filter = Array.isArray(t) ? t : [t];
|
|
5799
5745
|
}
|
|
@@ -5877,7 +5823,7 @@ class On {
|
|
|
5877
5823
|
* limitations under the License.
|
|
5878
5824
|
*/
|
|
5879
5825
|
const xs = new ne(2e3, 1e4);
|
|
5880
|
-
class B extends
|
|
5826
|
+
class B extends Pn {
|
|
5881
5827
|
constructor(e, t, r, i, s) {
|
|
5882
5828
|
super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null, B.currentPopupAction && B.currentPopupAction.cancel(), B.currentPopupAction = this;
|
|
5883
5829
|
}
|
|
@@ -5892,7 +5838,7 @@ class B extends On {
|
|
|
5892
5838
|
}
|
|
5893
5839
|
async onExecution() {
|
|
5894
5840
|
S(this.filter.length === 1, "Popup operations only handle one event");
|
|
5895
|
-
const e =
|
|
5841
|
+
const e = Qe();
|
|
5896
5842
|
this.authWindow = await this.resolver._openPopup(
|
|
5897
5843
|
this.auth,
|
|
5898
5844
|
this.provider,
|
|
@@ -5963,7 +5909,7 @@ B.currentPopupAction = null;
|
|
|
5963
5909
|
* limitations under the License.
|
|
5964
5910
|
*/
|
|
5965
5911
|
const Fs = "pendingRedirect", ce = /* @__PURE__ */ new Map();
|
|
5966
|
-
class Bs extends
|
|
5912
|
+
class Bs extends Pn {
|
|
5967
5913
|
constructor(e, t, r = !1) {
|
|
5968
5914
|
super(e, [
|
|
5969
5915
|
"signInViaRedirect",
|
|
@@ -6028,7 +5974,7 @@ function js(n) {
|
|
|
6028
5974
|
async function Ws(n, e, t = !1) {
|
|
6029
5975
|
if (v(n.app))
|
|
6030
5976
|
return Promise.reject(N(n));
|
|
6031
|
-
const r =
|
|
5977
|
+
const r = ve(n), i = Ns(r, e), a = await new Bs(r, i, t).execute();
|
|
6032
5978
|
return a && !t && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
|
|
6033
5979
|
}
|
|
6034
5980
|
/**
|
|
@@ -6068,7 +6014,7 @@ class Gs {
|
|
|
6068
6014
|
}
|
|
6069
6015
|
sendToConsumer(e, t) {
|
|
6070
6016
|
var r;
|
|
6071
|
-
if (e.error && !
|
|
6017
|
+
if (e.error && !On(e)) {
|
|
6072
6018
|
const i = ((r = e.error.code) === null || r === void 0 ? void 0 : r.split("auth/")[1]) || "internal-error";
|
|
6073
6019
|
t.onError(_(this.auth, i));
|
|
6074
6020
|
} else
|
|
@@ -6079,16 +6025,16 @@ class Gs {
|
|
|
6079
6025
|
return t.filter.includes(e.type) && r;
|
|
6080
6026
|
}
|
|
6081
6027
|
hasEventBeenHandled(e) {
|
|
6082
|
-
return Date.now() - this.lastProcessedEventTime >= zs && this.cachedEventUids.clear(), this.cachedEventUids.has(
|
|
6028
|
+
return Date.now() - this.lastProcessedEventTime >= zs && this.cachedEventUids.clear(), this.cachedEventUids.has(kt(e));
|
|
6083
6029
|
}
|
|
6084
6030
|
saveEventToCache(e) {
|
|
6085
|
-
this.cachedEventUids.add(
|
|
6031
|
+
this.cachedEventUids.add(kt(e)), this.lastProcessedEventTime = Date.now();
|
|
6086
6032
|
}
|
|
6087
6033
|
}
|
|
6088
|
-
function
|
|
6034
|
+
function kt(n) {
|
|
6089
6035
|
return [n.type, n.eventId, n.sessionId, n.tenantId].filter((e) => e).join("-");
|
|
6090
6036
|
}
|
|
6091
|
-
function
|
|
6037
|
+
function On({ type: n, error: e }) {
|
|
6092
6038
|
return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
|
|
6093
6039
|
}
|
|
6094
6040
|
function qs(n) {
|
|
@@ -6098,7 +6044,7 @@ function qs(n) {
|
|
|
6098
6044
|
case "reauthViaRedirect":
|
|
6099
6045
|
return !0;
|
|
6100
6046
|
case "unknown":
|
|
6101
|
-
return
|
|
6047
|
+
return On(n);
|
|
6102
6048
|
default:
|
|
6103
6049
|
return !1;
|
|
6104
6050
|
}
|
|
@@ -6156,7 +6102,7 @@ async function Xs(n) {
|
|
|
6156
6102
|
);
|
|
6157
6103
|
}
|
|
6158
6104
|
function Qs(n) {
|
|
6159
|
-
const e =
|
|
6105
|
+
const e = $e(), { protocol: t, hostname: r } = new URL(e);
|
|
6160
6106
|
if (n.startsWith("chrome-extension://")) {
|
|
6161
6107
|
const a = new URL(n);
|
|
6162
6108
|
return a.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && a.hostname === r;
|
|
@@ -6185,7 +6131,7 @@ function Qs(n) {
|
|
|
6185
6131
|
* limitations under the License.
|
|
6186
6132
|
*/
|
|
6187
6133
|
const Zs = new ne(3e4, 6e4);
|
|
6188
|
-
function
|
|
6134
|
+
function At() {
|
|
6189
6135
|
const n = y().___jsl;
|
|
6190
6136
|
if (n != null && n.H) {
|
|
6191
6137
|
for (const e of Object.keys(n.H))
|
|
@@ -6198,12 +6144,12 @@ function ea(n) {
|
|
|
6198
6144
|
return new Promise((e, t) => {
|
|
6199
6145
|
var r, i, s;
|
|
6200
6146
|
function a() {
|
|
6201
|
-
|
|
6147
|
+
At(), gapi.load("gapi.iframes", {
|
|
6202
6148
|
callback: () => {
|
|
6203
6149
|
e(gapi.iframes.getContext());
|
|
6204
6150
|
},
|
|
6205
6151
|
ontimeout: () => {
|
|
6206
|
-
|
|
6152
|
+
At(), t(_(
|
|
6207
6153
|
n,
|
|
6208
6154
|
"network-request-failed"
|
|
6209
6155
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -6273,7 +6219,7 @@ function oa(n) {
|
|
|
6273
6219
|
"auth-domain-config-required"
|
|
6274
6220
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
|
6275
6221
|
);
|
|
6276
|
-
const t = e.emulator ?
|
|
6222
|
+
const t = e.emulator ? Ke(e, ia) : `https://${n.config.authDomain}/${ra}`, r = {
|
|
6277
6223
|
apiKey: e.apiKey,
|
|
6278
6224
|
appName: n.name,
|
|
6279
6225
|
v: te
|
|
@@ -6358,7 +6304,7 @@ function pa(n, e, t, r = ua, i = da) {
|
|
|
6358
6304
|
top: s,
|
|
6359
6305
|
left: a
|
|
6360
6306
|
}), l = g().toLowerCase();
|
|
6361
|
-
t && (c =
|
|
6307
|
+
t && (c = dn(l) ? ha : t), ln(l) && (e = e || fa, o.scrollbars = "yes");
|
|
6362
6308
|
const u = Object.entries(o).reduce((p, [m, F]) => `${p}${m}=${F},`, "");
|
|
6363
6309
|
if (Ki(l) && c !== "_self")
|
|
6364
6310
|
return ma(e || "", c), new Ct(null);
|
|
@@ -6398,7 +6344,7 @@ function ma(n, e) {
|
|
|
6398
6344
|
* limitations under the License.
|
|
6399
6345
|
*/
|
|
6400
6346
|
const ga = "__/auth/handler", _a = "emulator/auth/handler", ya = encodeURIComponent("fac");
|
|
6401
|
-
async function
|
|
6347
|
+
async function Rt(n, e, t, r, i, s) {
|
|
6402
6348
|
h(
|
|
6403
6349
|
n.config.authDomain,
|
|
6404
6350
|
n,
|
|
@@ -6418,7 +6364,7 @@ async function Pt(n, e, t, r, i, s) {
|
|
|
6418
6364
|
v: te,
|
|
6419
6365
|
eventId: i
|
|
6420
6366
|
};
|
|
6421
|
-
if (e instanceof
|
|
6367
|
+
if (e instanceof bn) {
|
|
6422
6368
|
e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "", yr(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
|
|
6423
6369
|
for (const [u, d] of Object.entries({}))
|
|
6424
6370
|
a[u] = d;
|
|
@@ -6435,7 +6381,7 @@ async function Pt(n, e, t, r, i, s) {
|
|
|
6435
6381
|
return `${va(n)}?${ee(c).slice(1)}${l}`;
|
|
6436
6382
|
}
|
|
6437
6383
|
function va({ config: n }) {
|
|
6438
|
-
return n.emulator ?
|
|
6384
|
+
return n.emulator ? Ke(n, _a) : `https://${n.authDomain}/${ga}`;
|
|
6439
6385
|
}
|
|
6440
6386
|
/**
|
|
6441
6387
|
* @license
|
|
@@ -6453,22 +6399,22 @@ function va({ config: n }) {
|
|
|
6453
6399
|
* See the License for the specific language governing permissions and
|
|
6454
6400
|
* limitations under the License.
|
|
6455
6401
|
*/
|
|
6456
|
-
const
|
|
6402
|
+
const De = "webStorageSupport";
|
|
6457
6403
|
class ba {
|
|
6458
6404
|
constructor() {
|
|
6459
|
-
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence =
|
|
6405
|
+
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Sn, this._completeRedirectFn = Ws, this._overrideRedirectResult = Hs;
|
|
6460
6406
|
}
|
|
6461
6407
|
// Wrapping in async even though we don't await anywhere in order
|
|
6462
6408
|
// to make sure errors are raised as promise rejections
|
|
6463
6409
|
async _openPopup(e, t, r, i) {
|
|
6464
6410
|
var s;
|
|
6465
6411
|
S((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
|
6466
|
-
const a = await
|
|
6467
|
-
return pa(e, a,
|
|
6412
|
+
const a = await Rt(e, t, r, $e(), i);
|
|
6413
|
+
return pa(e, a, Qe());
|
|
6468
6414
|
}
|
|
6469
6415
|
async _openRedirect(e, t, r, i) {
|
|
6470
6416
|
await this._originValidation(e);
|
|
6471
|
-
const s = await
|
|
6417
|
+
const s = await Rt(e, t, r, $e(), i);
|
|
6472
6418
|
return Es(s), new Promise(() => {
|
|
6473
6419
|
});
|
|
6474
6420
|
}
|
|
@@ -6496,9 +6442,9 @@ class ba {
|
|
|
6496
6442
|
}), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = t, r;
|
|
6497
6443
|
}
|
|
6498
6444
|
_isIframeWebStorageSupported(e, t) {
|
|
6499
|
-
this.iframes[e._key()].send(
|
|
6445
|
+
this.iframes[e._key()].send(De, { type: De }, (i) => {
|
|
6500
6446
|
var s;
|
|
6501
|
-
const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[
|
|
6447
|
+
const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[De];
|
|
6502
6448
|
a !== void 0 && t(!!a), T(
|
|
6503
6449
|
e,
|
|
6504
6450
|
"internal-error"
|
|
@@ -6511,11 +6457,11 @@ class ba {
|
|
|
6511
6457
|
return this.originValidationPromises[t] || (this.originValidationPromises[t] = Xs(e)), this.originValidationPromises[t];
|
|
6512
6458
|
}
|
|
6513
6459
|
get _shouldInitProactively() {
|
|
6514
|
-
return
|
|
6460
|
+
return gn() || un() || Ye();
|
|
6515
6461
|
}
|
|
6516
6462
|
}
|
|
6517
6463
|
const Ia = ba;
|
|
6518
|
-
var
|
|
6464
|
+
var Pt = "@firebase/auth", Ot = "1.7.9";
|
|
6519
6465
|
/**
|
|
6520
6466
|
* @license
|
|
6521
6467
|
* Copyright 2020 Google LLC
|
|
@@ -6612,7 +6558,7 @@ function Ta(n) {
|
|
|
6612
6558
|
apiHost: "identitytoolkit.googleapis.com",
|
|
6613
6559
|
tokenApiHost: "securetoken.googleapis.com",
|
|
6614
6560
|
apiScheme: "https",
|
|
6615
|
-
sdkClientVersion:
|
|
6561
|
+
sdkClientVersion: _n(n)
|
|
6616
6562
|
}, l = new es(r, i, s, o);
|
|
6617
6563
|
return as(l, t), l;
|
|
6618
6564
|
},
|
|
@@ -6629,7 +6575,7 @@ function Ta(n) {
|
|
|
6629
6575
|
})), Y(new W(
|
|
6630
6576
|
"auth-internal",
|
|
6631
6577
|
(e) => {
|
|
6632
|
-
const t =
|
|
6578
|
+
const t = ve(e.getProvider(
|
|
6633
6579
|
"auth"
|
|
6634
6580
|
/* _ComponentName.AUTH */
|
|
6635
6581
|
).getImmediate());
|
|
@@ -6640,7 +6586,7 @@ function Ta(n) {
|
|
|
6640
6586
|
).setInstantiationMode(
|
|
6641
6587
|
"EXPLICIT"
|
|
6642
6588
|
/* InstantiationMode.EXPLICIT */
|
|
6643
|
-
)), $(
|
|
6589
|
+
)), $(Pt, Ot, Ea(n)), $(Pt, Ot, "esm2017");
|
|
6644
6590
|
}
|
|
6645
6591
|
/**
|
|
6646
6592
|
* @license
|
|
@@ -6658,22 +6604,22 @@ function Ta(n) {
|
|
|
6658
6604
|
* See the License for the specific language governing permissions and
|
|
6659
6605
|
* limitations under the License.
|
|
6660
6606
|
*/
|
|
6661
|
-
const Sa = 5 * 60, ka =
|
|
6662
|
-
let
|
|
6607
|
+
const Sa = 5 * 60, ka = Wt("authIdTokenMaxAge") || Sa;
|
|
6608
|
+
let Dt = null;
|
|
6663
6609
|
const Aa = (n) => async (e) => {
|
|
6664
6610
|
const t = e && await e.getIdTokenResult(), r = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
|
|
6665
6611
|
if (r && r > ka)
|
|
6666
6612
|
return;
|
|
6667
6613
|
const i = t == null ? void 0 : t.token;
|
|
6668
|
-
|
|
6614
|
+
Dt !== i && (Dt = i, await fetch(n, {
|
|
6669
6615
|
method: i ? "POST" : "DELETE",
|
|
6670
6616
|
headers: i ? {
|
|
6671
6617
|
Authorization: `Bearer ${i}`
|
|
6672
6618
|
} : {}
|
|
6673
6619
|
}));
|
|
6674
6620
|
};
|
|
6675
|
-
function
|
|
6676
|
-
const e =
|
|
6621
|
+
function Ca(n = bi()) {
|
|
6622
|
+
const e = Kt(n, "auth");
|
|
6677
6623
|
if (e.isInitialized())
|
|
6678
6624
|
return e.getImmediate();
|
|
6679
6625
|
const t = ss(n, {
|
|
@@ -6681,9 +6627,9 @@ function Ra(n = bi()) {
|
|
|
6681
6627
|
persistence: [
|
|
6682
6628
|
Ds,
|
|
6683
6629
|
bs,
|
|
6684
|
-
|
|
6630
|
+
Sn
|
|
6685
6631
|
]
|
|
6686
|
-
}), r =
|
|
6632
|
+
}), r = Wt("authTokenSyncURL");
|
|
6687
6633
|
if (r && typeof isSecureContext == "boolean" && isSecureContext) {
|
|
6688
6634
|
const s = new URL(r, location.origin);
|
|
6689
6635
|
if (location.origin === s.origin) {
|
|
@@ -6691,10 +6637,10 @@ function Ra(n = bi()) {
|
|
|
6691
6637
|
_s(t, a, () => a(t.currentUser)), gs(t, (c) => a(c));
|
|
6692
6638
|
}
|
|
6693
6639
|
}
|
|
6694
|
-
const i =
|
|
6640
|
+
const i = ar("auth");
|
|
6695
6641
|
return i && os(t, `http://${i}`), t;
|
|
6696
6642
|
}
|
|
6697
|
-
function
|
|
6643
|
+
function Ra() {
|
|
6698
6644
|
var n, e;
|
|
6699
6645
|
return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
|
|
6700
6646
|
}
|
|
@@ -6708,7 +6654,7 @@ ts({
|
|
|
6708
6654
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
6709
6655
|
);
|
|
6710
6656
|
s.customData = i, t(s);
|
|
6711
|
-
}, r.type = "text/javascript", r.charset = "UTF-8",
|
|
6657
|
+
}, r.type = "text/javascript", r.charset = "UTF-8", Ra().appendChild(r);
|
|
6712
6658
|
});
|
|
6713
6659
|
},
|
|
6714
6660
|
gapiScript: "https://apis.google.com/js/api.js",
|
|
@@ -6719,19 +6665,19 @@ Ta(
|
|
|
6719
6665
|
"Browser"
|
|
6720
6666
|
/* ClientPlatform.BROWSER */
|
|
6721
6667
|
);
|
|
6722
|
-
const Pa =
|
|
6723
|
-
history:
|
|
6668
|
+
const Pa = Un({
|
|
6669
|
+
history: xn(),
|
|
6724
6670
|
routes: [
|
|
6725
6671
|
...ue,
|
|
6726
6672
|
...K,
|
|
6727
6673
|
{
|
|
6728
6674
|
path: "/forbidden",
|
|
6729
6675
|
name: "mf-payment-forbidden",
|
|
6730
|
-
component: () => import("./Forbidden-
|
|
6676
|
+
component: () => import("./Forbidden-CSTZjebc.js")
|
|
6731
6677
|
}
|
|
6732
6678
|
]
|
|
6733
6679
|
});
|
|
6734
|
-
let
|
|
6680
|
+
let Ne, Le;
|
|
6735
6681
|
Pa.beforeEach(async (n) => {
|
|
6736
6682
|
const {
|
|
6737
6683
|
sessionUser: e,
|
|
@@ -6739,10 +6685,10 @@ Pa.beforeEach(async (n) => {
|
|
|
6739
6685
|
currentBusiness: r,
|
|
6740
6686
|
readRestaurants: i,
|
|
6741
6687
|
changeRestaurant: s
|
|
6742
|
-
} =
|
|
6688
|
+
} = je();
|
|
6743
6689
|
if (n.name && n.name.startsWith("mf-payment-admin")) {
|
|
6744
6690
|
if (!e.value) {
|
|
6745
|
-
|
|
6691
|
+
Ne || (Ne = new Promise((c) => {
|
|
6746
6692
|
const o = q(e, (l) => {
|
|
6747
6693
|
var u, d;
|
|
6748
6694
|
l && (o(), c(
|
|
@@ -6750,12 +6696,12 @@ Pa.beforeEach(async (n) => {
|
|
|
6750
6696
|
));
|
|
6751
6697
|
});
|
|
6752
6698
|
}));
|
|
6753
|
-
const a = await
|
|
6699
|
+
const a = await Ne;
|
|
6754
6700
|
return a || { name: "mf-payment-forbidden" };
|
|
6755
6701
|
}
|
|
6756
6702
|
return !0;
|
|
6757
6703
|
}
|
|
6758
|
-
return !r.value || !t.value ? (
|
|
6704
|
+
return !r.value || !t.value ? (Le || (Le = Promise.all([
|
|
6759
6705
|
new Promise(async (a) => {
|
|
6760
6706
|
const c = q(r, (o) => {
|
|
6761
6707
|
o && (c(), a(!0));
|
|
@@ -6767,12 +6713,12 @@ Pa.beforeEach(async (n) => {
|
|
|
6767
6713
|
}), o = await i();
|
|
6768
6714
|
await s(o == null ? void 0 : o.at(0));
|
|
6769
6715
|
})
|
|
6770
|
-
]).then((a) => !0)),
|
|
6716
|
+
]).then((a) => !0)), Le) : !0;
|
|
6771
6717
|
});
|
|
6772
|
-
const Oa = /* @__PURE__ */
|
|
6718
|
+
const Oa = /* @__PURE__ */ Mt({
|
|
6773
6719
|
__name: "AppSidebar",
|
|
6774
6720
|
setup(n) {
|
|
6775
|
-
const e =
|
|
6721
|
+
const e = je(), t = Fn(), { t: r } = zn(), i = $n(t.currentRoute.value.name);
|
|
6776
6722
|
q(t.currentRoute, () => {
|
|
6777
6723
|
let l = t.currentRoute.value.name;
|
|
6778
6724
|
t.currentRoute.value.meta.parent && (l = t.currentRoute.value.meta.parent), i.value = l;
|
|
@@ -6789,7 +6735,7 @@ const Oa = /* @__PURE__ */ Ut({
|
|
|
6789
6735
|
return t.push({ name: l.name });
|
|
6790
6736
|
}
|
|
6791
6737
|
};
|
|
6792
|
-
return l.meta.sidebarNew && (d.badge = () =>
|
|
6738
|
+
return l.meta.sidebarNew && (d.badge = () => Hn(qn.FmPill, { label: "New" })), d;
|
|
6793
6739
|
}).filter((l) => !!l);
|
|
6794
6740
|
function a(l, u) {
|
|
6795
6741
|
return l.map((d) => {
|
|
@@ -6817,7 +6763,7 @@ const Oa = /* @__PURE__ */ Ut({
|
|
|
6817
6763
|
return t.push({ name: l.name });
|
|
6818
6764
|
}
|
|
6819
6765
|
};
|
|
6820
|
-
}).filter((l) => !!l), o =
|
|
6766
|
+
}).filter((l) => !!l), o = Lt(() => {
|
|
6821
6767
|
var u, d;
|
|
6822
6768
|
const l = [...s];
|
|
6823
6769
|
return l.push({
|
|
@@ -6859,8 +6805,8 @@ const Oa = /* @__PURE__ */ Ut({
|
|
|
6859
6805
|
}), l.push(...c)), l;
|
|
6860
6806
|
});
|
|
6861
6807
|
return (l, u) => {
|
|
6862
|
-
const d =
|
|
6863
|
-
return
|
|
6808
|
+
const d = Ut("FmCollapsibleTabs");
|
|
6809
|
+
return xt(), Ft(d, {
|
|
6864
6810
|
modelValue: i.value,
|
|
6865
6811
|
"onUpdate:modelValue": u[0] || (u[0] = (p) => i.value = p),
|
|
6866
6812
|
items: o.value,
|
|
@@ -6869,30 +6815,30 @@ const Oa = /* @__PURE__ */ Ut({
|
|
|
6869
6815
|
};
|
|
6870
6816
|
}
|
|
6871
6817
|
});
|
|
6872
|
-
var Da = {
|
|
6873
|
-
const
|
|
6818
|
+
var Da = { 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" } };
|
|
6819
|
+
const Ba = /* @__PURE__ */ Mt({
|
|
6874
6820
|
__name: "App",
|
|
6875
6821
|
setup(n) {
|
|
6876
|
-
const { state: e } =
|
|
6822
|
+
const { state: e } = Qn(), t = je(), r = Bn(), i = Jt(Da.firebase);
|
|
6877
6823
|
async function s() {
|
|
6878
6824
|
const a = t.sessionUser.value;
|
|
6879
6825
|
if (!a || !a.token) return;
|
|
6880
|
-
const c = await a.getCustomToken(), o =
|
|
6826
|
+
const c = await a.getCustomToken(), o = Ca(i);
|
|
6881
6827
|
await ms(o, c);
|
|
6882
6828
|
}
|
|
6883
|
-
return s(), q(t.sessionUser, s),
|
|
6829
|
+
return s(), q(t.sessionUser, s), Vn(() => {
|
|
6884
6830
|
e.isIframe && parent.postMessage({ event: "ready" }, "*");
|
|
6885
|
-
}),
|
|
6831
|
+
}), jn(() => {
|
|
6886
6832
|
t.registerSidebarComponent(Oa);
|
|
6887
6833
|
}), (a, c) => {
|
|
6888
|
-
const o =
|
|
6889
|
-
return
|
|
6890
|
-
key:
|
|
6834
|
+
const o = Ut("RouterView");
|
|
6835
|
+
return xt(), Ft(o, {
|
|
6836
|
+
key: Wn(r).path
|
|
6891
6837
|
});
|
|
6892
6838
|
};
|
|
6893
6839
|
}
|
|
6894
|
-
}),
|
|
6895
|
-
const n = [{ "en-US":
|
|
6840
|
+
}), $a = () => {
|
|
6841
|
+
const n = [{ "en-US": Jn, "zh-CN": Xn }, Mn], e = new Set(
|
|
6896
6842
|
n.flatMap((t) => Object.keys(t))
|
|
6897
6843
|
);
|
|
6898
6844
|
return Array.from(e).reduce(
|
|
@@ -6905,20 +6851,10 @@ const Ha = /* @__PURE__ */ Ut({
|
|
|
6905
6851
|
},
|
|
6906
6852
|
{}
|
|
6907
6853
|
);
|
|
6908
|
-
},
|
|
6854
|
+
}, Ha = [...K, ...ue];
|
|
6909
6855
|
export {
|
|
6910
|
-
|
|
6911
|
-
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
Y as a,
|
|
6915
|
-
Jt as b,
|
|
6916
|
-
Ba as c,
|
|
6917
|
-
bi as d,
|
|
6918
|
-
$a as e,
|
|
6919
|
-
ja as f,
|
|
6920
|
-
z as g,
|
|
6921
|
-
Ha as h,
|
|
6922
|
-
Va as i,
|
|
6923
|
-
$ as r
|
|
6856
|
+
mt as _,
|
|
6857
|
+
Ba as a,
|
|
6858
|
+
$a as i,
|
|
6859
|
+
Ha as r
|
|
6924
6860
|
};
|