@feedmepos/mf-payment 1.1.7-beta.2 → 1.1.7-beta.4
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/{PayoutAccount-CTGMi_PX.js → PayoutAccount-7TEE2BzE.js} +5 -5
- package/dist/{PayoutAccount-CmdOJR3H.js → PayoutAccount-DwKI9IhW.js} +3 -3
- package/dist/{PayoutAccountSetting-CjrCD_d1.js → PayoutAccountSetting-C2ISSDKv.js} +3 -3
- package/dist/{Restaurant-OdusOWQW.js → Restaurant-BXWgyQGg.js} +4 -4
- package/dist/{RestaurantSetting-Ex1C9Sm0.js → RestaurantSetting-B2zqIloE.js} +3 -3
- package/dist/{Settlement-B7HpwvU5.js → Settlement-6eU_HP7K.js} +3 -3
- package/dist/Settlement-CBhBo7w7.js +219 -0
- package/dist/{SettlementTransactions-Can9YWKo.js → SettlementTransactions-C4Hj7cKF.js} +20 -16
- package/dist/{SettlementTransactions--0nVkfix.js → SettlementTransactions-DAzU50AC.js} +3 -3
- package/dist/{Terminal-Bk9PaUWE.js → Terminal-D-mwA9bo.js} +5 -5
- package/dist/{TerminalSetting-DY91cG8K.js → TerminalSetting-ByPtWVqu.js} +3 -3
- package/dist/{Transaction-B0mm21J6.js → Transaction-C1Z1g1Oh.js} +5 -5
- package/dist/{Transaction-4VcaNM-I.js → Transaction-CCjNEXsW.js} +6 -6
- package/dist/{TransactionOld-BBjyfmEP.js → TransactionOld-xW6kfmjb.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-CFxM2Kdo.js → TransactionTable.vue_vue_type_script_setup_true_lang-CU6q9oND.js} +3 -3
- package/dist/{app-BqfjZZ5M.js → app-DSu8Bqxt.js} +367 -365
- package/dist/app.d.ts +2 -0
- package/dist/app.js +1 -1
- package/dist/{assets-Dt65qI3E.js → assets-BYZLC205.js} +1 -1
- package/dist/{grafana-DYfiInW0.js → grafana-B-ZEJ__-.js} +1 -1
- package/dist/{index-Cg9oAjSw.js → index-B5I6xD5e.js} +1 -1
- package/dist/{index-BLk57IkI.js → index-CEbxMc8H.js} +12 -9
- package/dist/{index-CqPoOkrc.js → index-ClUkVJXR.js} +1 -1
- package/dist/{index-CLm4m9aq.js → index-EJS3NJlp.js} +796 -796
- package/dist/{index-DUS0JnIE.js → index-Yd0Q7mxR.js} +1 -1
- package/dist/{index-OxQY2Y3u.js → index-yIQx0FT4.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Bp8Y1T2v.js → index.vue_vue_type_script_setup_true_lang-BHvwhRYU.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-7HSkCqOD.js → payout-account-DgcZA_FW.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/Settlement-BzqXBGs7.js +0 -194
@@ -1,9 +1,9 @@
|
|
1
1
|
import { createRouter as Ln, createWebHistory as Un, useRouter as Bn, useRoute as Fn } from "vue-router";
|
2
|
-
import { computed as Lt, watch as
|
2
|
+
import { computed as Lt, watch as $, defineComponent as Ut, ref as xn, resolveComponent as Bt, openBlock as Ft, createBlock as xt, h as jn, onMounted as Vn, onBeforeMount as Hn, unref as Gn } from "vue";
|
3
3
|
import { useCoreStore as Ge, useI18n as Wn } from "@feedmepos/mf-common";
|
4
4
|
import { defineStore as zn } from "pinia";
|
5
|
-
import { components as
|
6
|
-
const
|
5
|
+
import { components as Zn } from "@feedmepos/ui-library";
|
6
|
+
const $n = {
|
7
7
|
select: "Select filter entity",
|
8
8
|
restaurant: "Restaurant",
|
9
9
|
device: "Device",
|
@@ -64,6 +64,7 @@ const Zn = {
|
|
64
64
|
method: "Method",
|
65
65
|
status: "Status",
|
66
66
|
type: "Type",
|
67
|
+
payFor: "For",
|
67
68
|
transaction_at: "Transaction At",
|
68
69
|
sales_amount: "Sales Amount",
|
69
70
|
fee: "Fee",
|
@@ -143,7 +144,7 @@ const Zn = {
|
|
143
144
|
}
|
144
145
|
}
|
145
146
|
}, qn = {
|
146
|
-
components:
|
147
|
+
components: $n,
|
147
148
|
routes: Jn,
|
148
149
|
settlements: Xn,
|
149
150
|
transactions: Yn,
|
@@ -209,6 +210,7 @@ const Zn = {
|
|
209
210
|
method: "支付方法",
|
210
211
|
status: "状态",
|
211
212
|
type: "类型",
|
213
|
+
payFor: "于",
|
212
214
|
transaction_at: "交易时间",
|
213
215
|
sales_amount: "营业金额",
|
214
216
|
fee: "服务费",
|
@@ -301,7 +303,7 @@ const Zn = {
|
|
301
303
|
sidebarDisplay: "Restaurants",
|
302
304
|
section: "payment-gateway"
|
303
305
|
},
|
304
|
-
component: () => import("./Restaurant-
|
306
|
+
component: () => import("./Restaurant-BXWgyQGg.js")
|
305
307
|
},
|
306
308
|
{
|
307
309
|
path: "/admin/restaurants/:restaurantId",
|
@@ -310,7 +312,7 @@ const Zn = {
|
|
310
312
|
meta: {
|
311
313
|
parent: "mf-payment-admin.restaurant"
|
312
314
|
},
|
313
|
-
component: () => import("./RestaurantSetting-
|
315
|
+
component: () => import("./RestaurantSetting-B2zqIloE.js")
|
314
316
|
},
|
315
317
|
{
|
316
318
|
path: "/admin/payout-accounts",
|
@@ -319,7 +321,7 @@ const Zn = {
|
|
319
321
|
sidebarDisplay: "Payout Accounts",
|
320
322
|
section: "payment-gateway"
|
321
323
|
},
|
322
|
-
component: () => import("./PayoutAccount-
|
324
|
+
component: () => import("./PayoutAccount-7TEE2BzE.js")
|
323
325
|
},
|
324
326
|
{
|
325
327
|
path: "/admin/payout-accounts/:accountId",
|
@@ -328,7 +330,7 @@ const Zn = {
|
|
328
330
|
meta: {
|
329
331
|
parent: "mf-payment-admin.payout-account"
|
330
332
|
},
|
331
|
-
component: () => import("./PayoutAccountSetting-
|
333
|
+
component: () => import("./PayoutAccountSetting-C2ISSDKv.js")
|
332
334
|
},
|
333
335
|
{
|
334
336
|
path: "/admin/terminal/pos",
|
@@ -337,7 +339,7 @@ const Zn = {
|
|
337
339
|
sidebarDisplay: "POS",
|
338
340
|
section: "device"
|
339
341
|
},
|
340
|
-
component: () => import("./Terminal-
|
342
|
+
component: () => import("./Terminal-D-mwA9bo.js"),
|
341
343
|
props: {
|
342
344
|
type: "POS"
|
343
345
|
}
|
@@ -349,7 +351,7 @@ const Zn = {
|
|
349
351
|
sidebarDisplay: "Kiosks",
|
350
352
|
section: "device"
|
351
353
|
},
|
352
|
-
component: () => import("./Terminal-
|
354
|
+
component: () => import("./Terminal-D-mwA9bo.js"),
|
353
355
|
props: {
|
354
356
|
type: "KIOSK"
|
355
357
|
}
|
@@ -361,7 +363,7 @@ const Zn = {
|
|
361
363
|
sidebarDisplay: "Terminals",
|
362
364
|
section: "device"
|
363
365
|
},
|
364
|
-
component: () => import("./Terminal-
|
366
|
+
component: () => import("./Terminal-D-mwA9bo.js"),
|
365
367
|
props: {
|
366
368
|
type: "TERMINAL"
|
367
369
|
}
|
@@ -373,7 +375,7 @@ const Zn = {
|
|
373
375
|
meta: {
|
374
376
|
parent: "mf-payment-admin.pos"
|
375
377
|
},
|
376
|
-
component: () => import("./TerminalSetting-
|
378
|
+
component: () => import("./TerminalSetting-ByPtWVqu.js")
|
377
379
|
},
|
378
380
|
{
|
379
381
|
path: "/admin/terminal/kiosk/:terminalId",
|
@@ -382,7 +384,7 @@ const Zn = {
|
|
382
384
|
meta: {
|
383
385
|
parent: "mf-payment-admin.kiosk"
|
384
386
|
},
|
385
|
-
component: () => import("./TerminalSetting-
|
387
|
+
component: () => import("./TerminalSetting-ByPtWVqu.js")
|
386
388
|
},
|
387
389
|
{
|
388
390
|
path: "/admin/terminal/terminal/:terminalId",
|
@@ -391,7 +393,7 @@ const Zn = {
|
|
391
393
|
meta: {
|
392
394
|
parent: "mf-payment-admin.terminal"
|
393
395
|
},
|
394
|
-
component: () => import("./TerminalSetting-
|
396
|
+
component: () => import("./TerminalSetting-ByPtWVqu.js")
|
395
397
|
},
|
396
398
|
{
|
397
399
|
path: "/admin/transaction",
|
@@ -399,7 +401,7 @@ const Zn = {
|
|
399
401
|
meta: {
|
400
402
|
sidebarDisplay: "Transactions"
|
401
403
|
},
|
402
|
-
component: () => import("./Transaction-
|
404
|
+
component: () => import("./Transaction-C1Z1g1Oh.js")
|
403
405
|
},
|
404
406
|
{
|
405
407
|
path: "/admin/settlement",
|
@@ -407,7 +409,7 @@ const Zn = {
|
|
407
409
|
meta: {
|
408
410
|
sidebarDisplay: "Settlements"
|
409
411
|
},
|
410
|
-
component: () => import("./Settlement-
|
412
|
+
component: () => import("./Settlement-CBhBo7w7.js")
|
411
413
|
},
|
412
414
|
{
|
413
415
|
path: "/admin/settlement/:settlementId",
|
@@ -416,7 +418,7 @@ const Zn = {
|
|
416
418
|
meta: {
|
417
419
|
parent: "mf-payment-admin.settlement"
|
418
420
|
},
|
419
|
-
component: () => import("./SettlementTransactions
|
421
|
+
component: () => import("./SettlementTransactions-DAzU50AC.js")
|
420
422
|
}
|
421
423
|
], We = [
|
422
424
|
{
|
@@ -426,7 +428,7 @@ const Zn = {
|
|
426
428
|
{
|
427
429
|
path: "/payout-account",
|
428
430
|
name: "mf-payment-payout-account",
|
429
|
-
component: () => import("./PayoutAccount-
|
431
|
+
component: () => import("./PayoutAccount-DwKI9IhW.js"),
|
430
432
|
meta: {
|
431
433
|
sidebarDisplay: "i18n:routes.payout_account"
|
432
434
|
}
|
@@ -434,7 +436,7 @@ const Zn = {
|
|
434
436
|
{
|
435
437
|
path: "/transaction-old",
|
436
438
|
name: "mf-payment-old-transaction",
|
437
|
-
component: () => import("./TransactionOld-
|
439
|
+
component: () => import("./TransactionOld-xW6kfmjb.js"),
|
438
440
|
meta: {
|
439
441
|
sidebarDisplay: "i18n:routes.transaction"
|
440
442
|
}
|
@@ -442,7 +444,7 @@ const Zn = {
|
|
442
444
|
{
|
443
445
|
path: "/transaction",
|
444
446
|
name: "mf-payment-transaction",
|
445
|
-
component: () => import("./Transaction-
|
447
|
+
component: () => import("./Transaction-CCjNEXsW.js"),
|
446
448
|
meta: {
|
447
449
|
sidebarDisplay: "i18n:routes.transaction-new",
|
448
450
|
sidebarNew: !0
|
@@ -451,7 +453,7 @@ const Zn = {
|
|
451
453
|
{
|
452
454
|
path: "/settlement",
|
453
455
|
name: "mf-payment-settlement",
|
454
|
-
component: () => import("./Settlement-
|
456
|
+
component: () => import("./Settlement-6eU_HP7K.js"),
|
455
457
|
meta: {
|
456
458
|
sidebarDisplay: "i18n:routes.settlement"
|
457
459
|
}
|
@@ -460,7 +462,7 @@ const Zn = {
|
|
460
462
|
path: "/settlement/:settlementId",
|
461
463
|
name: "mf-payment-settlement-transaction",
|
462
464
|
props: !0,
|
463
|
-
component: () => import("./SettlementTransactions-
|
465
|
+
component: () => import("./SettlementTransactions-C4Hj7cKF.js"),
|
464
466
|
meta: {
|
465
467
|
parent: "mf-payment-settlement"
|
466
468
|
}
|
@@ -477,7 +479,7 @@ const Zn = {
|
|
477
479
|
init: t
|
478
480
|
};
|
479
481
|
});
|
480
|
-
var ot = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_1c2ef822-4422-4820-b5fd-0910de669f51", npm_package_devDependencies_ts_node: "^10.9.1", npm_package_dependencies_zod: "^3.23.8", npm_package_dependencies_dinero_js: "^1.9.1", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies_jest: "^29.6.3", npm_package_dependencies_vue_pdf_embed: "^2.1.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v22.14.0 linux x64", npm_config_always_auth: "", CI: "true", npm_package_dependencies_vue: "^3.2.25", npm_config_bin_links: "true", npm_config_wrap_output: "", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_1c2ef822-4422-4820-b5fd-0910de669f51", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/22.14.0/x64/bin/node", npm_package_devDependencies_vite: "^5.2.11", npm_package_devDependencies__tsconfig_node20: "^20.1.4", npm_config_init_version: "1.0.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "ghs_cGbOEgD0ChUYiAty1Jy0ArO5FPoRdj49LeYJ", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies_sass: "1.32.12", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_dependencies_jspdf: "^2.5.1", npm_package_scripts_build_mf_dev: "vite build --mode fmmf:dev", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies_change_case: "^4.1.2", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.13", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.0.13004108", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_package_dependencies__feedmepos_mf_common: "^1.11.6", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_devDependencies__types_file_saver: "^2.0.5", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "711", npm_package_dependencies_moment: "^2.29.4", npm_package_dependencies_dotenv: "^16.0.3", npm_package_dependencies__feedmepos_ui_library: "^1.3.9", npm_package_scripts_postinstall: "yarn --cwd .. && yarn --cwd ../package/common && yarn --cwd ../package/entity", npm_config_feedmepos_registry: "https://npm.pkg.github.com/", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: 'Development always based on production and add "-beta.version" in behind. Every deployment from development to production will increment based on semantic versioninig.', npm_package_devDependencies_typescript: "~5.4.0", npm_package_devDependencies_tailwindcss: "^3.4.14", npm_package_dependencies_i18next: "^21.8.8", npm_package_dependencies__casl_ability: "^3.2.0", npm_package_scripts_build_only_dev: "yarn build:mf:dev && yarn build:dts && yarn build-types && cp package.json ./dist", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_vue_tsc: "^2.0.11", npm_package_devDependencies__babel_preset_env: "^7.22.10", npm_package_dependencies_xlsx: "^0.18.5", npm_package_dependencies_google_maps: "^4.3.3", npm_package_scripts_build_only_prod: "yarn build:mf:prod && yarn build:dts && yarn build-types && cp package.json ./dist", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250323.1.0", npm_package_dependencies_i18next_vue: "^2.0.0-beta.0", npm_package_scripts_dev: "vite --mode dev", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_scripts_prod: "vite --mode prod", npm_package_type: "module", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.7/x64", JOURNAL_STREAM: "8:6329", GITHUB_WORKFLOW: "payment-mf-portal-dev", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "^29.1.1", npm_package_devDependencies_autoprefixer: "^10.4.20", npm_package_devDependencies__types_jest: "^29.5.4", npm_package_dependencies_i18next_browser_languagedetector: "^6.1.4", npm_package_module: "./dist/app.js", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_devDependencies__types_uuid: "^8.3.4", npm_package_scripts_lint: "eslint --ext .ts,vue --ignore-path .gitignore . --fix", npm_config_registry: "https://registry.yarnpkg.com", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "14301912146", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "c37851dbf682578cf178032499481f775f0e3503", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_exports___import: "./dist/app.js", npm_config_ignore_scripts: "", GITHUB_WORKFLOW_REF: "feedmepos/payment-service/.github/workflows/payment-mf-portal-dev.yaml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ikh5cTROQVRBanNucUM3bWRydEFoaHJDUjJfUSJ9.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6MTQ3YzBkMzAtMzlmOC00NWU4LWE4YTItYTA2MDQ2ODFiMzQwOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xNDM1IERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46MTQ3YzBkMzAtMzlmOC00NWU4LWE4YTItYTA2MDQ2ODFiMzQwOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xNDM1IiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiYjllMDVhMGMtMWNjNi00NDViLWEzZjUtODMyYzFiZGRiZWU5Iiwic2lkIjoiMDVjZjIzNzgtYWQ1ZS00ZDQyLWJkMjAtYjk5NTZjZTdkNjM4IiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJzaGFcIjpcImMzNzg1MWRiZjY4MjU3OGNmMTc4MDMyNDk5NDgxZjc3NWYwZTM1MDNcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2VcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJ1bl9pZFwiOlwiMTQzMDE5MTIxNDZcIixcInJ1bl9udW1iZXJcIjpcIjE2MVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLWRldlwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiZXZlbnRfbmFtZVwiOlwicHVzaFwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wYXltZW50LW1mLXBvcnRhbC1kZXYueWFtbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCJjMzc4NTFkYmY2ODI1NzhjZjE3ODAzMjQ5OTQ4MWY3NzVmMGUzNTAzXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLWRldi55YW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCJjMzc4NTFkYmY2ODI1NzhjZjE3ODAzMjQ5OTQ4MWY3NzVmMGUzNTAzXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoaWQiOiIxNDdjMGQzMC0zOWY4LTQ1ZTgtYThhMi1hMDYwNDY4MWIzNDAuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3NDQwMDQ5MTYsImV4cCI6MTc0NDAyNzcxNn0.Q4SXbc59dCInK2EcvjWvGj5w2oOMRQxeHBserf2TD8ZYxo7WgjjVMXCQPI9xVq53HwXT1QuU8NidTWUqwpUWslmQgrKpLq0LQn08yXYj9ceyDesrqWLfkzX9e0ZWEfze6sFPU0vbJSuAUXdrM0qeE5BG4B0kN3yorfMcWt-H7aGJhsTp8V5iqyLMMw-_bAn7qPQaq7t0Pj2vPDXjiAliIJ1AnzMZ8tuV7IL6NVuyz064a24fBn7Hxh_4__-cbxrBOBKupJGT-l_MVbICToOm5s0VdM-JAy1a1bUZJqXEXz6-zivDoctHwJXCmC6JxTYzyyIY9TgisbY_oPJZECGaBA", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1744005556413-0.11305535275431278:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1744005556254-0.2520776262359794:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1744005556096-0.3183336273337194:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/22.14.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_3964043d-3d90-40e8-a3c4-b04676f7ebf6", INVOCATION_ID: "40d6aeffea0945649200dfc4dd4f8cf1", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_devDependencies__types_qrcode: "^1.5.0", npm_package_devDependencies__types_jsurl: "^0.1.2", npm_package_dependencies_file_saver: "^2.0.5", npm_package_scripts_deploy_dev: "yarn build-only:dev && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .", npm_package_name: "@feedmepos/mf-payment", GITHUB_ACTION: "__run", GITHUB_RUN_NUMBER: "161", GITHUB_TRIGGERING_ACTOR: "Oskang09", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_dependencies_vue_country_flag_next: "^2.3.2", npm_package_scripts_deploy_prod: "yarn build-only:prod && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .", npm_package_dependencies_vue_advanced_cropper: "^2.8.6", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.17.0", npm_package_devDependencies__vue_test_utils: "^2.4.1", npm_package_devDependencies__vue_eslint_config_typescript: "^10.0.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 250", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/payment-service", STATS_D_D: "false", npm_lifecycle_script: "vite build --mode fmmf:dev", npm_package_dependencies__feedmepos_core: "^2.6.0", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^2.2.3", npm_package_scripts_test: "jest", npm_config_version_git_message: "v%s", GITHUB_REPOSITORY_ID: "690979260", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:mf:dev", npm_package_devDependencies_jest_transform_stub: "^2.0.0", npm_package_devDependencies_jest_environment_jsdom: "^29.4.1", npm_package_devDependencies__rushstack_eslint_patch: "^1.1.3", npm_package_dependencies_vuedraggable: "^4.1.0", npm_package_version: "1.1.7-beta.2", GITHUB_REF_PROTECTED: "false", npm_config_argv: '{"remain":[],"cooked":["run","deploy:dev"],"original":["deploy:dev"]}', npm_package_devDependencies__types_dinero_js: "^1.9.0", npm_package_dependencies_uuid: "^9.0.0", npm_package_dependencies_buffer: "^6.0.3", npm_package_dependencies_vue_i18n: "10.0.5", npm_config__feedmepos_registry: "https://npm.pkg.github.com/", GITHUB_WORKSPACE: "/home/runner/work/payment-service/payment-service", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", RUNNER_PERFLOG: "/home/runner/perflog", GITHUB_SHA: "c37851dbf682578cf178032499481f775f0e3503", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_dependencies_vue_router: "^4.2.5", npm_package_exports___style: "./dist/style.css", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "Oskang09", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_config_strict_ssl: "true", npm_package_devDependencies_path: "^0.12.7", npm_package_dependencies_jszip: "^3.10.1", npm_package_dependencies_jsurl: "^0.1.5", npm_package_dependencies_firebase: "^10.14.0", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_1c2ef822-4422-4820-b5fd-0910de669f51", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/payment-service/payment-service/mf-portal", GITHUB_ACTOR_ID: "15674107", RUNNER_WORKSPACE: "/home/runner/work/payment-service", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://pipelinesghubeus11.actions.githubusercontent.com/uhMzCspeMtZD05BczWutTDpLRkQb1I4q0fwG0tss4R7H4Wpw9s/00000000-0000-0000-0000-000000000000/_apis/distributedtask/hubs/Actions/plans/147c0d30-39f8-45e8-a8a2-a0604681b340/jobs/e07742bd-189a-5079-918b-43f8b2f94b89/idtoken?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_1c2ef822-4422-4820-b5fd-0910de669f51", npm_package_dependencies_qrcode_vue: "^3.6.0", npm_package_exports___types: "./dist/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_devDependencies_postcss: "^8.4.47", npm_package_devDependencies_eslint_plugin_vue: "^9.1.0", npm_package_devDependencies__vue_vue3_jest: "^29.2.5", npm_package_devDependencies__pinia_testing: "^0.1.3", npm_config_save_prefix: "^", npm_config_ignore_optional: "", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_devDependencies_cd: "^0.3.3", npm_package_dependencies_i18next_http_backend: "^1.4.1", npm_package_dependencies_rasterizehtml: "^1.3.1", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", INIT_CWD: "/home/runner/work/payment-service/payment-service/mf-portal", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_1c2ef822-4422-4820-b5fd-0910de669f51", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_dependencies__feedmepos_payment_entity: "^0.1.0", NODE_ENV: "production", ENVIRONMENT: "development", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", FIREBASE_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", FIREBASE_MESSAGING_SENDER_ID: "458797803788", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", ASSET_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", GOOGLE_MAP_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", AUTH_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4" };
|
482
|
+
var ot = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_89205783-55a0-49f3-b7c5-10ea171f1384", npm_package_devDependencies_ts_node: "^10.9.1", npm_package_dependencies_zod: "^3.23.8", npm_package_dependencies_dinero_js: "^1.9.1", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies_jest: "^29.6.3", npm_package_dependencies_vue_pdf_embed: "^2.1.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v22.14.0 linux x64", npm_config_always_auth: "", CI: "true", npm_package_dependencies_vue: "^3.2.25", npm_config_bin_links: "true", npm_config_wrap_output: "", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_89205783-55a0-49f3-b7c5-10ea171f1384", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/22.14.0/x64/bin/node", npm_package_devDependencies_vite: "^5.2.11", npm_package_devDependencies__tsconfig_node20: "^20.1.4", npm_config_init_version: "1.0.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "ghs_3VR6qsFe24IOxHP381VFxzjm2739Kp3reI8L", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies_sass: "1.32.12", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_dependencies_jspdf: "^2.5.1", npm_package_scripts_build_mf_dev: "vite build --mode fmmf:dev", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies_change_case: "^4.1.2", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.13", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.0.13004108", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_package_dependencies__feedmepos_mf_common: "^1.11.6", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_devDependencies__types_file_saver: "^2.0.5", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "708", npm_package_dependencies_moment: "^2.29.4", npm_package_dependencies_dotenv: "^16.0.3", npm_package_dependencies__feedmepos_ui_library: "^1.3.9", npm_package_scripts_postinstall: "yarn --cwd .. && yarn --cwd ../package/common && yarn --cwd ../package/entity", npm_config_feedmepos_registry: "https://npm.pkg.github.com/", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: 'Development always based on production and add "-beta.version" in behind. Every deployment from development to production will increment based on semantic versioninig.', npm_package_devDependencies_typescript: "~5.4.0", npm_package_devDependencies_tailwindcss: "^3.4.14", npm_package_dependencies_i18next: "^21.8.8", npm_package_dependencies__casl_ability: "^3.2.0", npm_package_scripts_build_only_dev: "yarn build:mf:dev && yarn build:dts && yarn build-types && cp package.json ./dist", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_vue_tsc: "^2.0.11", npm_package_devDependencies__babel_preset_env: "^7.22.10", npm_package_dependencies_xlsx: "^0.18.5", npm_package_dependencies_google_maps: "^4.3.3", npm_package_scripts_build_only_prod: "yarn build:mf:prod && yarn build:dts && yarn build-types && cp package.json ./dist", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250323.1.0", npm_package_dependencies_i18next_vue: "^2.0.0-beta.0", npm_package_scripts_dev: "vite --mode dev", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_scripts_prod: "vite --mode prod", npm_package_type: "module", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.7/x64", JOURNAL_STREAM: "8:6028", GITHUB_WORKFLOW: "payment-mf-portal-dev", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "^29.1.1", npm_package_devDependencies_autoprefixer: "^10.4.20", npm_package_devDependencies__types_jest: "^29.5.4", npm_package_dependencies_i18next_browser_languagedetector: "^6.1.4", npm_package_module: "./dist/app.js", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_devDependencies__types_uuid: "^8.3.4", npm_package_scripts_lint: "eslint --ext .ts,vue --ignore-path .gitignore . --fix", npm_config_registry: "https://registry.yarnpkg.com", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "14303739685", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "b9605574e260fd49c432cc5c5d2f3eea578a0176", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_exports___import: "./dist/app.js", npm_config_ignore_scripts: "", GITHUB_WORKFLOW_REF: "feedmepos/payment-service/.github/workflows/payment-mf-portal-dev.yaml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ikh5cTROQVRBanNucUM3bWRydEFoaHJDUjJfUSJ9.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6YTg5ZTJjNWYtNTJiNi00ZTgzLWI2ZjktMjFmY2Q2OTgwMTQ5OmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xNDQxIERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46YTg5ZTJjNWYtNTJiNi00ZTgzLWI2ZjktMjFmY2Q2OTgwMTQ5OmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xNDQxIiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiY2ExOTUzNjQtNTY2MS00OTRjLTk5ZjUtMjQxM2U2YjIzNTNkIiwic2lkIjoiZTcxZDNiN2EtNjk5Ny00MTU1LTgyZGUtM2YzZjNkMGM1MmZmIiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJzaGFcIjpcImI5NjA1NTc0ZTI2MGZkNDljNDMyY2M1YzVkMmYzZWVhNTc4YTAxNzZcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2VcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJ1bl9pZFwiOlwiMTQzMDM3Mzk2ODVcIixcInJ1bl9udW1iZXJcIjpcIjE2NFwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLWRldlwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiZXZlbnRfbmFtZVwiOlwicHVzaFwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wYXltZW50LW1mLXBvcnRhbC1kZXYueWFtbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCJiOTYwNTU3NGUyNjBmZDQ5YzQzMmNjNWM1ZDJmM2VlYTU3OGEwMTc2XCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLWRldi55YW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCJiOTYwNTU3NGUyNjBmZDQ5YzQzMmNjNWM1ZDJmM2VlYTU3OGEwMTc2XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoaWQiOiJhODllMmM1Zi01MmI2LTRlODMtYjZmOS0yMWZjZDY5ODAxNDkuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3NDQwMTE2MjIsImV4cCI6MTc0NDAzNDQyMn0.r6LbxA_ArrDTcaQ69_6WIROfXjMd9nYIafuI7v98yoz5owTgCPzJ88euB_Kwz-k5iBDs0ncRWeD2pcyReeOxtFgRwfr5GXf06Tfimz7ciPrYax3ZGym2CoDyglNtJHZAVyR-B-BVvS5by_9WD0W8pMGL1x4cV20Oz2R9ezQ5NmvFvW6Yrj1zrxQ7WohXtThpP5cZVrwVP9vuGvx5-AHGn5slBJ0nAqNuosXorZ_8P0MNVx57vfjMRnYHdB0N8U19XbTxKdkUq1snJyNUduYCWE1D77mi6BeueAMjkIgD3mymAUkujBg2L7jZmslRry6V3_myWoOpO7pFWot80pFthg", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1744012258282-0.09335054937524889:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1744012258119-0.31327519926879166:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1744012257959-0.39213652275769606:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/22.14.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_030e5190-c60d-43de-8d1a-bb2d46bcf34b", INVOCATION_ID: "73a9e09b03aa42daba80055efe38a364", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_devDependencies__types_qrcode: "^1.5.0", npm_package_devDependencies__types_jsurl: "^0.1.2", npm_package_dependencies_file_saver: "^2.0.5", npm_package_scripts_deploy_dev: "yarn build-only:dev && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .", npm_package_name: "@feedmepos/mf-payment", GITHUB_ACTION: "__run", GITHUB_RUN_NUMBER: "164", GITHUB_TRIGGERING_ACTOR: "Oskang09", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_dependencies_vue_country_flag_next: "^2.3.2", npm_package_scripts_deploy_prod: "yarn build-only:prod && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .", npm_package_dependencies_vue_advanced_cropper: "^2.8.6", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.17.0", npm_package_devDependencies__vue_test_utils: "^2.4.1", npm_package_devDependencies__vue_eslint_config_typescript: "^10.0.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 51", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/payment-service", STATS_D_D: "false", npm_lifecycle_script: "vite build --mode fmmf:dev", npm_package_dependencies__feedmepos_core: "^2.6.0", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^2.2.3", npm_package_scripts_test: "jest", npm_config_version_git_message: "v%s", GITHUB_REPOSITORY_ID: "690979260", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:mf:dev", npm_package_devDependencies_jest_transform_stub: "^2.0.0", npm_package_devDependencies_jest_environment_jsdom: "^29.4.1", npm_package_devDependencies__rushstack_eslint_patch: "^1.1.3", npm_package_dependencies_vuedraggable: "^4.1.0", npm_package_version: "1.1.7-beta.4", GITHUB_REF_PROTECTED: "false", npm_config_argv: '{"remain":[],"cooked":["run","deploy:dev"],"original":["deploy:dev"]}', npm_package_devDependencies__types_dinero_js: "^1.9.0", npm_package_dependencies_uuid: "^9.0.0", npm_package_dependencies_buffer: "^6.0.3", npm_package_dependencies_vue_i18n: "10.0.5", npm_config__feedmepos_registry: "https://npm.pkg.github.com/", GITHUB_WORKSPACE: "/home/runner/work/payment-service/payment-service", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", RUNNER_PERFLOG: "/home/runner/perflog", GITHUB_SHA: "b9605574e260fd49c432cc5c5d2f3eea578a0176", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_dependencies_vue_router: "^4.2.5", npm_package_exports___style: "./dist/style.css", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "Oskang09", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_config_strict_ssl: "true", npm_package_devDependencies_path: "^0.12.7", npm_package_dependencies_jszip: "^3.10.1", npm_package_dependencies_jsurl: "^0.1.5", npm_package_dependencies_firebase: "^10.14.0", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_89205783-55a0-49f3-b7c5-10ea171f1384", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/payment-service/payment-service/mf-portal", GITHUB_ACTOR_ID: "15674107", RUNNER_WORKSPACE: "/home/runner/work/payment-service", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://pipelinesghubeus11.actions.githubusercontent.com/uhMzCspeMtZD05BczWutTDpLRkQb1I4q0fwG0tss4R7H4Wpw9s/00000000-0000-0000-0000-000000000000/_apis/distributedtask/hubs/Actions/plans/a89e2c5f-52b6-4e83-b6f9-21fcd6980149/jobs/e07742bd-189a-5079-918b-43f8b2f94b89/idtoken?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_89205783-55a0-49f3-b7c5-10ea171f1384", npm_package_dependencies_qrcode_vue: "^3.6.0", npm_package_exports___types: "./dist/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_devDependencies_postcss: "^8.4.47", npm_package_devDependencies_eslint_plugin_vue: "^9.1.0", npm_package_devDependencies__vue_vue3_jest: "^29.2.5", npm_package_devDependencies__pinia_testing: "^0.1.3", npm_config_save_prefix: "^", npm_config_ignore_optional: "", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_devDependencies_cd: "^0.3.3", npm_package_dependencies_i18next_http_backend: "^1.4.1", npm_package_dependencies_rasterizehtml: "^1.3.1", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", INIT_CWD: "/home/runner/work/payment-service/payment-service/mf-portal", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_89205783-55a0-49f3-b7c5-10ea171f1384", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_dependencies__feedmepos_payment_entity: "^0.1.0", NODE_ENV: "production", ENVIRONMENT: "development", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", FIREBASE_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", FIREBASE_MESSAGING_SENDER_ID: "458797803788", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", ASSET_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", GOOGLE_MAP_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", AUTH_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4" };
|
481
483
|
/**
|
482
484
|
* @license
|
483
485
|
* Copyright 2017 Google LLC
|
@@ -521,7 +523,7 @@ const jt = function(n) {
|
|
521
523
|
}
|
522
524
|
}
|
523
525
|
return e.join("");
|
524
|
-
},
|
526
|
+
}, Vt = {
|
525
527
|
/**
|
526
528
|
* Maps bytes to characters.
|
527
529
|
*/
|
@@ -581,8 +583,8 @@ const jt = function(n) {
|
|
581
583
|
const t = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
|
582
584
|
for (let i = 0; i < n.length; i += 3) {
|
583
585
|
const s = n[i], a = i + 1 < n.length, c = a ? n[i + 1] : 0, o = i + 2 < n.length, l = o ? n[i + 2] : 0, d = s >> 2, h = (s & 3) << 4 | c >> 4;
|
584
|
-
let
|
585
|
-
o || (v = 64, a || (
|
586
|
+
let m = (c & 15) << 2 | l >> 6, v = l & 63;
|
587
|
+
o || (v = 64, a || (m = 64)), r.push(t[d], t[h], t[m], t[v]);
|
586
588
|
}
|
587
589
|
return r.join("");
|
588
590
|
},
|
@@ -634,8 +636,8 @@ const jt = function(n) {
|
|
634
636
|
const h = i < n.length ? t[n.charAt(i)] : 64;
|
635
637
|
if (++i, s == null || c == null || l == null || h == null)
|
636
638
|
throw new or();
|
637
|
-
const
|
638
|
-
if (r.push(
|
639
|
+
const m = s << 2 | c >> 4;
|
640
|
+
if (r.push(m), l !== 64) {
|
639
641
|
const v = c << 4 & 240 | l >> 2;
|
640
642
|
if (r.push(v), h !== 64) {
|
641
643
|
const F = l << 6 & 192 | h;
|
@@ -665,12 +667,12 @@ class or extends Error {
|
|
665
667
|
}
|
666
668
|
const cr = function(n) {
|
667
669
|
const e = jt(n);
|
668
|
-
return
|
670
|
+
return Vt.encodeByteArray(e, !0);
|
669
671
|
}, de = function(n) {
|
670
672
|
return cr(n).replace(/\./g, "");
|
671
|
-
},
|
673
|
+
}, Ht = function(n) {
|
672
674
|
try {
|
673
|
-
return
|
675
|
+
return Vt.decodeString(n, !0);
|
674
676
|
} catch (e) {
|
675
677
|
console.error("base64Decode failed: ", e);
|
676
678
|
}
|
@@ -732,7 +734,7 @@ const dr = () => lr().__FIREBASE_DEFAULTS__, ur = () => {
|
|
732
734
|
} catch {
|
733
735
|
return;
|
734
736
|
}
|
735
|
-
const e = n &&
|
737
|
+
const e = n && Ht(n[1]);
|
736
738
|
return e && JSON.parse(e);
|
737
739
|
}, ze = () => {
|
738
740
|
try {
|
@@ -857,15 +859,15 @@ function za(n, e) {
|
|
857
859
|
* See the License for the specific language governing permissions and
|
858
860
|
* limitations under the License.
|
859
861
|
*/
|
860
|
-
function
|
862
|
+
function f() {
|
861
863
|
return typeof navigator < "u" && typeof navigator.userAgent == "string" ? navigator.userAgent : "";
|
862
864
|
}
|
863
|
-
function
|
865
|
+
function mr() {
|
864
866
|
return typeof window < "u" && // @ts-ignore Setting up an broadly applicable index signature for Window
|
865
867
|
// just to deal with this case would probably be a bad idea.
|
866
|
-
!!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(
|
868
|
+
!!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(f());
|
867
869
|
}
|
868
|
-
function
|
870
|
+
function fr() {
|
869
871
|
return typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers";
|
870
872
|
}
|
871
873
|
function _r() {
|
@@ -876,7 +878,7 @@ function gr() {
|
|
876
878
|
return typeof navigator == "object" && navigator.product === "ReactNative";
|
877
879
|
}
|
878
880
|
function vr() {
|
879
|
-
const n =
|
881
|
+
const n = f();
|
880
882
|
return n.indexOf("MSIE ") >= 0 || n.indexOf("Trident/") >= 0;
|
881
883
|
}
|
882
884
|
function Ir() {
|
@@ -931,17 +933,17 @@ class q {
|
|
931
933
|
this.service = e, this.serviceName = t, this.errors = r;
|
932
934
|
}
|
933
935
|
create(e, ...t) {
|
934
|
-
const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ?
|
936
|
+
const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ? Tr(s, r) : "Error", c = `${this.serviceName}: ${a} (${i}).`;
|
935
937
|
return new M(i, c, r);
|
936
938
|
}
|
937
939
|
}
|
938
|
-
function
|
939
|
-
return n.replace(
|
940
|
+
function Tr(n, e) {
|
941
|
+
return n.replace(Er, (t, r) => {
|
940
942
|
const i = e[r];
|
941
943
|
return i != null ? String(i) : `<${r}?>`;
|
942
944
|
});
|
943
945
|
}
|
944
|
-
const
|
946
|
+
const Er = /\{\$([^}]+)}/g;
|
945
947
|
function wr(n) {
|
946
948
|
for (const e in n)
|
947
949
|
if (Object.prototype.hasOwnProperty.call(n, e))
|
@@ -994,11 +996,11 @@ function Q(n) {
|
|
994
996
|
}) : e.push(encodeURIComponent(t) + "=" + encodeURIComponent(r));
|
995
997
|
return e.length ? "&" + e.join("&") : "";
|
996
998
|
}
|
997
|
-
function
|
998
|
-
const t = new
|
999
|
+
function Rr(n, e) {
|
1000
|
+
const t = new kr(n, e);
|
999
1001
|
return t.subscribe.bind(t);
|
1000
1002
|
}
|
1001
|
-
class
|
1003
|
+
class kr {
|
1002
1004
|
/**
|
1003
1005
|
* @param executor Function which can make calls to a single Observer
|
1004
1006
|
* as a proxy.
|
@@ -1036,7 +1038,7 @@ class Rr {
|
|
1036
1038
|
let i;
|
1037
1039
|
if (e === void 0 && t === void 0 && r === void 0)
|
1038
1040
|
throw new Error("Missing Observer.");
|
1039
|
-
|
1041
|
+
Sr(e, [
|
1040
1042
|
"next",
|
1041
1043
|
"error",
|
1042
1044
|
"complete"
|
@@ -1044,7 +1046,7 @@ class Rr {
|
|
1044
1046
|
next: e,
|
1045
1047
|
error: t,
|
1046
1048
|
complete: r
|
1047
|
-
}, i.next === void 0 && (i.next =
|
1049
|
+
}, i.next === void 0 && (i.next = ke), i.error === void 0 && (i.error = ke), i.complete === void 0 && (i.complete = ke);
|
1048
1050
|
const s = this.unsubscribeOne.bind(this, this.observers.length);
|
1049
1051
|
return this.finalized && this.task.then(() => {
|
1050
1052
|
try {
|
@@ -1082,7 +1084,7 @@ class Rr {
|
|
1082
1084
|
}));
|
1083
1085
|
}
|
1084
1086
|
}
|
1085
|
-
function
|
1087
|
+
function Sr(n, e) {
|
1086
1088
|
if (typeof n != "object" || n === null)
|
1087
1089
|
return !1;
|
1088
1090
|
for (const t of e)
|
@@ -1090,7 +1092,7 @@ function Ar(n, e) {
|
|
1090
1092
|
return !0;
|
1091
1093
|
return !1;
|
1092
1094
|
}
|
1093
|
-
function
|
1095
|
+
function ke() {
|
1094
1096
|
}
|
1095
1097
|
/**
|
1096
1098
|
* @license
|
@@ -1167,7 +1169,7 @@ const L = "[DEFAULT]";
|
|
1167
1169
|
* See the License for the specific language governing permissions and
|
1168
1170
|
* limitations under the License.
|
1169
1171
|
*/
|
1170
|
-
class
|
1172
|
+
class Ar {
|
1171
1173
|
constructor(e, t) {
|
1172
1174
|
this.name = e, this.container = t, this.component = null, this.instances = /* @__PURE__ */ new Map(), this.instancesDeferred = /* @__PURE__ */ new Map(), this.instancesOptions = /* @__PURE__ */ new Map(), this.onInitCallbacks = /* @__PURE__ */ new Map();
|
1173
1175
|
}
|
@@ -1218,7 +1220,7 @@ class Sr {
|
|
1218
1220
|
if (this.component)
|
1219
1221
|
throw Error(`Component for ${this.name} has already been provided`);
|
1220
1222
|
if (this.component = e, !!this.shouldAutoInitialize()) {
|
1221
|
-
if (
|
1223
|
+
if (Nr(e))
|
1222
1224
|
try {
|
1223
1225
|
this.getOrInitializeService({ instanceIdentifier: L });
|
1224
1226
|
} catch {
|
@@ -1324,7 +1326,7 @@ class Sr {
|
|
1324
1326
|
function Or(n) {
|
1325
1327
|
return n === L ? void 0 : n;
|
1326
1328
|
}
|
1327
|
-
function
|
1329
|
+
function Nr(n) {
|
1328
1330
|
return n.instantiationMode === "EAGER";
|
1329
1331
|
}
|
1330
1332
|
/**
|
@@ -1343,7 +1345,7 @@ function Cr(n) {
|
|
1343
1345
|
* See the License for the specific language governing permissions and
|
1344
1346
|
* limitations under the License.
|
1345
1347
|
*/
|
1346
|
-
class
|
1348
|
+
class Cr {
|
1347
1349
|
constructor(e) {
|
1348
1350
|
this.name = e, this.providers = /* @__PURE__ */ new Map();
|
1349
1351
|
}
|
@@ -1375,7 +1377,7 @@ class Dr {
|
|
1375
1377
|
getProvider(e) {
|
1376
1378
|
if (this.providers.has(e))
|
1377
1379
|
return this.providers.get(e);
|
1378
|
-
const t = new
|
1380
|
+
const t = new Ar(e, this);
|
1379
1381
|
return this.providers.set(e, t), t;
|
1380
1382
|
}
|
1381
1383
|
getProviders() {
|
@@ -1402,7 +1404,7 @@ var p;
|
|
1402
1404
|
(function(n) {
|
1403
1405
|
n[n.DEBUG = 0] = "DEBUG", n[n.VERBOSE = 1] = "VERBOSE", n[n.INFO = 2] = "INFO", n[n.WARN = 3] = "WARN", n[n.ERROR = 4] = "ERROR", n[n.SILENT = 5] = "SILENT";
|
1404
1406
|
})(p || (p = {}));
|
1405
|
-
const
|
1407
|
+
const Dr = {
|
1406
1408
|
debug: p.DEBUG,
|
1407
1409
|
verbose: p.VERBOSE,
|
1408
1410
|
info: p.INFO,
|
@@ -1424,7 +1426,7 @@ const Nr = {
|
|
1424
1426
|
else
|
1425
1427
|
throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`);
|
1426
1428
|
};
|
1427
|
-
class
|
1429
|
+
class Zt {
|
1428
1430
|
/**
|
1429
1431
|
* Gives you an instance of a Logger to capture messages according to
|
1430
1432
|
* Firebase's logging scheme.
|
@@ -1444,7 +1446,7 @@ class $t {
|
|
1444
1446
|
}
|
1445
1447
|
// Workaround for setter/getter having to be the same type.
|
1446
1448
|
setLogLevel(e) {
|
1447
|
-
this._logLevel = typeof e == "string" ?
|
1449
|
+
this._logLevel = typeof e == "string" ? Dr[e] : e;
|
1448
1450
|
}
|
1449
1451
|
get logHandler() {
|
1450
1452
|
return this._logHandler;
|
@@ -1497,22 +1499,22 @@ function Fr() {
|
|
1497
1499
|
IDBCursor.prototype.continuePrimaryKey
|
1498
1500
|
]);
|
1499
1501
|
}
|
1500
|
-
const
|
1502
|
+
const $t = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap();
|
1501
1503
|
function xr(n) {
|
1502
1504
|
const e = new Promise((t, r) => {
|
1503
1505
|
const i = () => {
|
1504
1506
|
n.removeEventListener("success", s), n.removeEventListener("error", a);
|
1505
1507
|
}, s = () => {
|
1506
|
-
t(
|
1508
|
+
t(C(n.result)), i();
|
1507
1509
|
}, a = () => {
|
1508
1510
|
r(n.error), i();
|
1509
1511
|
};
|
1510
1512
|
n.addEventListener("success", s), n.addEventListener("error", a);
|
1511
1513
|
});
|
1512
1514
|
return e.then((t) => {
|
1513
|
-
t instanceof IDBCursor &&
|
1515
|
+
t instanceof IDBCursor && $t.set(t, n);
|
1514
1516
|
}).catch(() => {
|
1515
|
-
}),
|
1517
|
+
}), Ze.set(e, n), e;
|
1516
1518
|
}
|
1517
1519
|
function jr(n) {
|
1518
1520
|
if (Le.has(n))
|
@@ -1539,7 +1541,7 @@ let Ue = {
|
|
1539
1541
|
if (e === "store")
|
1540
1542
|
return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]);
|
1541
1543
|
}
|
1542
|
-
return
|
1544
|
+
return C(n[e]);
|
1543
1545
|
},
|
1544
1546
|
set(n, e, t) {
|
1545
1547
|
return n[e] = t, !0;
|
@@ -1548,35 +1550,35 @@ let Ue = {
|
|
1548
1550
|
return n instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in n;
|
1549
1551
|
}
|
1550
1552
|
};
|
1551
|
-
function
|
1553
|
+
function Vr(n) {
|
1552
1554
|
Ue = n(Ue);
|
1553
1555
|
}
|
1554
|
-
function
|
1556
|
+
function Hr(n) {
|
1555
1557
|
return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
|
1556
|
-
const r = n.call(
|
1557
|
-
return Jt.set(r, e.sort ? e.sort() : [e]),
|
1558
|
+
const r = n.call(Ae(this), e, ...t);
|
1559
|
+
return Jt.set(r, e.sort ? e.sort() : [e]), C(r);
|
1558
1560
|
} : Fr().includes(n) ? function(...e) {
|
1559
|
-
return n.apply(
|
1561
|
+
return n.apply(Ae(this), e), C($t.get(this));
|
1560
1562
|
} : function(...e) {
|
1561
|
-
return
|
1563
|
+
return C(n.apply(Ae(this), e));
|
1562
1564
|
};
|
1563
1565
|
}
|
1564
1566
|
function Gr(n) {
|
1565
|
-
return typeof n == "function" ?
|
1567
|
+
return typeof n == "function" ? Hr(n) : (n instanceof IDBTransaction && jr(n), Ur(n, Br()) ? new Proxy(n, Ue) : n);
|
1566
1568
|
}
|
1567
|
-
function
|
1569
|
+
function C(n) {
|
1568
1570
|
if (n instanceof IDBRequest)
|
1569
1571
|
return xr(n);
|
1570
|
-
if (
|
1571
|
-
return
|
1572
|
+
if (Se.has(n))
|
1573
|
+
return Se.get(n);
|
1572
1574
|
const e = Gr(n);
|
1573
|
-
return e !== n && (
|
1575
|
+
return e !== n && (Se.set(n, e), Ze.set(e, n)), e;
|
1574
1576
|
}
|
1575
|
-
const
|
1577
|
+
const Ae = (n) => Ze.get(n);
|
1576
1578
|
function Wr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
1577
|
-
const a = indexedDB.open(n, e), c =
|
1579
|
+
const a = indexedDB.open(n, e), c = C(a);
|
1578
1580
|
return r && a.addEventListener("upgradeneeded", (o) => {
|
1579
|
-
r(
|
1581
|
+
r(C(a.result), o.oldVersion, o.newVersion, C(a.transaction), o);
|
1580
1582
|
}), t && a.addEventListener("blocked", (o) => t(
|
1581
1583
|
// Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
|
1582
1584
|
o.oldVersion,
|
@@ -1587,13 +1589,13 @@ function Wr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
1587
1589
|
}).catch(() => {
|
1588
1590
|
}), c;
|
1589
1591
|
}
|
1590
|
-
const zr = ["get", "getKey", "getAll", "getAllKeys", "count"],
|
1592
|
+
const zr = ["get", "getKey", "getAll", "getAllKeys", "count"], Zr = ["put", "add", "delete", "clear"], Oe = /* @__PURE__ */ new Map();
|
1591
1593
|
function ut(n, e) {
|
1592
1594
|
if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
|
1593
1595
|
return;
|
1594
1596
|
if (Oe.get(e))
|
1595
1597
|
return Oe.get(e);
|
1596
|
-
const t = e.replace(/FromIndex$/, ""), r = e !== t, i =
|
1598
|
+
const t = e.replace(/FromIndex$/, ""), r = e !== t, i = Zr.includes(t);
|
1597
1599
|
if (
|
1598
1600
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
1599
1601
|
!(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || zr.includes(t))
|
@@ -1609,7 +1611,7 @@ function ut(n, e) {
|
|
1609
1611
|
};
|
1610
1612
|
return Oe.set(e, s), s;
|
1611
1613
|
}
|
1612
|
-
|
1614
|
+
Vr((n) => ({
|
1613
1615
|
...n,
|
1614
1616
|
get: (e, t, r) => ut(e, t) || n.get(e, t, r),
|
1615
1617
|
has: (e, t) => !!ut(e, t) || n.has(e, t)
|
@@ -1630,7 +1632,7 @@ Hr((n) => ({
|
|
1630
1632
|
* See the License for the specific language governing permissions and
|
1631
1633
|
* limitations under the License.
|
1632
1634
|
*/
|
1633
|
-
class
|
1635
|
+
class $r {
|
1634
1636
|
constructor(e) {
|
1635
1637
|
this.container = e;
|
1636
1638
|
}
|
@@ -1667,7 +1669,7 @@ const Be = "@firebase/app", ht = "0.10.13";
|
|
1667
1669
|
* See the License for the specific language governing permissions and
|
1668
1670
|
* limitations under the License.
|
1669
1671
|
*/
|
1670
|
-
const
|
1672
|
+
const E = new Zt("@firebase/app"), Xr = "@firebase/app-compat", Yr = "@firebase/analytics-compat", Kr = "@firebase/analytics", qr = "@firebase/app-check-compat", Qr = "@firebase/app-check", ei = "@firebase/auth", ti = "@firebase/auth-compat", ni = "@firebase/database", ri = "@firebase/data-connect", ii = "@firebase/database-compat", si = "@firebase/functions", ai = "@firebase/functions-compat", oi = "@firebase/installations", ci = "@firebase/installations-compat", li = "@firebase/messaging", di = "@firebase/messaging-compat", ui = "@firebase/performance", hi = "@firebase/performance-compat", pi = "@firebase/remote-config", mi = "@firebase/remote-config-compat", fi = "@firebase/storage", _i = "@firebase/storage-compat", gi = "@firebase/firestore", vi = "@firebase/vertexai-preview", Ii = "@firebase/firestore-compat", bi = "firebase", yi = "10.14.1";
|
1671
1673
|
/**
|
1672
1674
|
* @license
|
1673
1675
|
* Copyright 2019 Google LLC
|
@@ -1684,7 +1686,7 @@ const T = new $t("@firebase/app"), Xr = "@firebase/app-compat", Yr = "@firebase/
|
|
1684
1686
|
* See the License for the specific language governing permissions and
|
1685
1687
|
* limitations under the License.
|
1686
1688
|
*/
|
1687
|
-
const Fe = "[DEFAULT]",
|
1689
|
+
const Fe = "[DEFAULT]", Ti = {
|
1688
1690
|
[Be]: "fire-core",
|
1689
1691
|
[Xr]: "fire-core-compat",
|
1690
1692
|
[Kr]: "fire-analytics",
|
@@ -1705,8 +1707,8 @@ const Fe = "[DEFAULT]", Ei = {
|
|
1705
1707
|
[ui]: "fire-perf",
|
1706
1708
|
[hi]: "fire-perf-compat",
|
1707
1709
|
[pi]: "fire-rc",
|
1708
|
-
[
|
1709
|
-
[
|
1710
|
+
[mi]: "fire-rc-compat",
|
1711
|
+
[fi]: "fire-gcs",
|
1710
1712
|
[_i]: "fire-gcs-compat",
|
1711
1713
|
[gi]: "fire-fst",
|
1712
1714
|
[Ii]: "fire-fst-compat",
|
@@ -1730,22 +1732,22 @@ const Fe = "[DEFAULT]", Ei = {
|
|
1730
1732
|
* See the License for the specific language governing permissions and
|
1731
1733
|
* limitations under the License.
|
1732
1734
|
*/
|
1733
|
-
const he = /* @__PURE__ */ new Map(),
|
1735
|
+
const he = /* @__PURE__ */ new Map(), Ei = /* @__PURE__ */ new Map(), xe = /* @__PURE__ */ new Map();
|
1734
1736
|
function pt(n, e) {
|
1735
1737
|
try {
|
1736
1738
|
n.container.addComponent(e);
|
1737
1739
|
} catch (t) {
|
1738
|
-
|
1740
|
+
E.debug(`Component ${e.name} failed to register with FirebaseApp ${n.name}`, t);
|
1739
1741
|
}
|
1740
1742
|
}
|
1741
1743
|
function X(n) {
|
1742
1744
|
const e = n.name;
|
1743
1745
|
if (xe.has(e))
|
1744
|
-
return
|
1746
|
+
return E.debug(`There were multiple attempts to register component ${e}.`), !1;
|
1745
1747
|
xe.set(e, n);
|
1746
1748
|
for (const t of he.values())
|
1747
1749
|
pt(t, n);
|
1748
|
-
for (const t of
|
1750
|
+
for (const t of Ei.values())
|
1749
1751
|
pt(t, n);
|
1750
1752
|
return !0;
|
1751
1753
|
}
|
@@ -1787,7 +1789,7 @@ const wi = {
|
|
1787
1789
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
1788
1790
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
1789
1791
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
1790
|
-
},
|
1792
|
+
}, D = new q("app", "Firebase", wi);
|
1791
1793
|
/**
|
1792
1794
|
* @license
|
1793
1795
|
* Copyright 2019 Google LLC
|
@@ -1804,7 +1806,7 @@ const wi = {
|
|
1804
1806
|
* See the License for the specific language governing permissions and
|
1805
1807
|
* limitations under the License.
|
1806
1808
|
*/
|
1807
|
-
class
|
1809
|
+
class Ri {
|
1808
1810
|
constructor(e, t, r) {
|
1809
1811
|
this._isDeleted = !1, this._options = Object.assign({}, e), this._config = Object.assign({}, t), this._name = t.name, this._automaticDataCollectionEnabled = t.automaticDataCollectionEnabled, this._container = r, this.container.addComponent(new W(
|
1810
1812
|
"app",
|
@@ -1843,7 +1845,7 @@ class ki {
|
|
1843
1845
|
*/
|
1844
1846
|
checkDestroyed() {
|
1845
1847
|
if (this.isDeleted)
|
1846
|
-
throw
|
1848
|
+
throw D.create("app-deleted", { appName: this._name });
|
1847
1849
|
}
|
1848
1850
|
}
|
1849
1851
|
/**
|
@@ -1868,11 +1870,11 @@ function Yt(n, e = {}) {
|
|
1868
1870
|
typeof e != "object" && (e = { name: e });
|
1869
1871
|
const r = Object.assign({ name: Fe, automaticDataCollectionEnabled: !1 }, e), i = r.name;
|
1870
1872
|
if (typeof i != "string" || !i)
|
1871
|
-
throw
|
1873
|
+
throw D.create("bad-app-name", {
|
1872
1874
|
appName: String(i)
|
1873
1875
|
});
|
1874
1876
|
if (t || (t = Wt()), !t)
|
1875
|
-
throw
|
1877
|
+
throw D.create(
|
1876
1878
|
"no-options"
|
1877
1879
|
/* AppError.NO_OPTIONS */
|
1878
1880
|
);
|
@@ -1880,32 +1882,32 @@ function Yt(n, e = {}) {
|
|
1880
1882
|
if (s) {
|
1881
1883
|
if (ue(t, s.options) && ue(r, s.config))
|
1882
1884
|
return s;
|
1883
|
-
throw
|
1885
|
+
throw D.create("duplicate-app", { appName: i });
|
1884
1886
|
}
|
1885
|
-
const a = new
|
1887
|
+
const a = new Cr(i);
|
1886
1888
|
for (const o of xe.values())
|
1887
1889
|
a.addComponent(o);
|
1888
|
-
const c = new
|
1890
|
+
const c = new Ri(t, r, a);
|
1889
1891
|
return he.set(i, c), c;
|
1890
1892
|
}
|
1891
|
-
function
|
1893
|
+
function ki(n = Fe) {
|
1892
1894
|
const e = he.get(n);
|
1893
1895
|
if (!e && n === Fe && Wt())
|
1894
1896
|
return Yt();
|
1895
1897
|
if (!e)
|
1896
|
-
throw
|
1898
|
+
throw D.create("no-app", { appName: n });
|
1897
1899
|
return e;
|
1898
1900
|
}
|
1899
1901
|
function j(n, e, t) {
|
1900
1902
|
var r;
|
1901
|
-
let i = (r =
|
1903
|
+
let i = (r = Ti[n]) !== null && r !== void 0 ? r : n;
|
1902
1904
|
t && (i += `-${t}`);
|
1903
1905
|
const s = i.match(/\s|\//), a = e.match(/\s|\//);
|
1904
1906
|
if (s || a) {
|
1905
1907
|
const c = [
|
1906
1908
|
`Unable to register library "${i}" with version "${e}":`
|
1907
1909
|
];
|
1908
|
-
s && c.push(`library name "${i}" contains illegal characters (whitespace or "/")`), s && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`),
|
1910
|
+
s && c.push(`library name "${i}" contains illegal characters (whitespace or "/")`), s && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`), E.warn(c.join(" "));
|
1909
1911
|
return;
|
1910
1912
|
}
|
1911
1913
|
X(new W(
|
@@ -1931,10 +1933,10 @@ function j(n, e, t) {
|
|
1931
1933
|
* See the License for the specific language governing permissions and
|
1932
1934
|
* limitations under the License.
|
1933
1935
|
*/
|
1934
|
-
const
|
1935
|
-
let
|
1936
|
+
const Si = "firebase-heartbeat-database", Ai = 1, Y = "firebase-heartbeat-store";
|
1937
|
+
let Ne = null;
|
1936
1938
|
function Kt() {
|
1937
|
-
return
|
1939
|
+
return Ne || (Ne = Wr(Si, Ai, {
|
1938
1940
|
upgrade: (n, e) => {
|
1939
1941
|
switch (e) {
|
1940
1942
|
case 0:
|
@@ -1946,10 +1948,10 @@ function Kt() {
|
|
1946
1948
|
}
|
1947
1949
|
}
|
1948
1950
|
}).catch((n) => {
|
1949
|
-
throw
|
1951
|
+
throw D.create("idb-open", {
|
1950
1952
|
originalErrorMessage: n.message
|
1951
1953
|
});
|
1952
|
-
})),
|
1954
|
+
})), Ne;
|
1953
1955
|
}
|
1954
1956
|
async function Oi(n) {
|
1955
1957
|
try {
|
@@ -1957,27 +1959,27 @@ async function Oi(n) {
|
|
1957
1959
|
return await t.done, r;
|
1958
1960
|
} catch (e) {
|
1959
1961
|
if (e instanceof M)
|
1960
|
-
|
1962
|
+
E.warn(e.message);
|
1961
1963
|
else {
|
1962
|
-
const t =
|
1964
|
+
const t = D.create("idb-get", {
|
1963
1965
|
originalErrorMessage: e == null ? void 0 : e.message
|
1964
1966
|
});
|
1965
|
-
|
1967
|
+
E.warn(t.message);
|
1966
1968
|
}
|
1967
1969
|
}
|
1968
1970
|
}
|
1969
|
-
async function
|
1971
|
+
async function mt(n, e) {
|
1970
1972
|
try {
|
1971
1973
|
const r = (await Kt()).transaction(Y, "readwrite");
|
1972
1974
|
await r.objectStore(Y).put(e, qt(n)), await r.done;
|
1973
1975
|
} catch (t) {
|
1974
1976
|
if (t instanceof M)
|
1975
|
-
|
1977
|
+
E.warn(t.message);
|
1976
1978
|
else {
|
1977
|
-
const r =
|
1979
|
+
const r = D.create("idb-set", {
|
1978
1980
|
originalErrorMessage: t == null ? void 0 : t.message
|
1979
1981
|
});
|
1980
|
-
|
1982
|
+
E.warn(r.message);
|
1981
1983
|
}
|
1982
1984
|
}
|
1983
1985
|
}
|
@@ -2000,8 +2002,8 @@ function qt(n) {
|
|
2000
2002
|
* See the License for the specific language governing permissions and
|
2001
2003
|
* limitations under the License.
|
2002
2004
|
*/
|
2003
|
-
const
|
2004
|
-
class
|
2005
|
+
const Ni = 1024, Ci = 30 * 24 * 60 * 60 * 1e3;
|
2006
|
+
class Di {
|
2005
2007
|
constructor(e) {
|
2006
2008
|
this.container = e, this._heartbeatsCache = null;
|
2007
2009
|
const t = this.container.getProvider("app").getImmediate();
|
@@ -2017,13 +2019,13 @@ class Ni {
|
|
2017
2019
|
async triggerHeartbeat() {
|
2018
2020
|
var e, t;
|
2019
2021
|
try {
|
2020
|
-
const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s =
|
2022
|
+
const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s = ft();
|
2021
2023
|
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) => {
|
2022
2024
|
const c = new Date(a.date).valueOf();
|
2023
|
-
return Date.now() - c <=
|
2025
|
+
return Date.now() - c <= Ci;
|
2024
2026
|
}), this._storage.overwrite(this._heartbeatsCache));
|
2025
2027
|
} catch (r) {
|
2026
|
-
|
2028
|
+
E.warn(r);
|
2027
2029
|
}
|
2028
2030
|
}
|
2029
2031
|
/**
|
@@ -2038,17 +2040,17 @@ class Ni {
|
|
2038
2040
|
try {
|
2039
2041
|
if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
|
2040
2042
|
return "";
|
2041
|
-
const t =
|
2043
|
+
const t = ft(), { heartbeatsToSend: r, unsentEntries: i } = Pi(this._heartbeatsCache.heartbeats), s = de(JSON.stringify({ version: 2, heartbeats: r }));
|
2042
2044
|
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;
|
2043
2045
|
} catch (t) {
|
2044
|
-
return
|
2046
|
+
return E.warn(t), "";
|
2045
2047
|
}
|
2046
2048
|
}
|
2047
2049
|
}
|
2048
|
-
function
|
2050
|
+
function ft() {
|
2049
2051
|
return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
|
2050
2052
|
}
|
2051
|
-
function Pi(n, e =
|
2053
|
+
function Pi(n, e = Ni) {
|
2052
2054
|
const t = [];
|
2053
2055
|
let r = n.slice();
|
2054
2056
|
for (const i of n) {
|
@@ -2094,7 +2096,7 @@ class Mi {
|
|
2094
2096
|
var t;
|
2095
2097
|
if (await this._canUseIndexedDBPromise) {
|
2096
2098
|
const i = await this.read();
|
2097
|
-
return
|
2099
|
+
return mt(this.app, {
|
2098
2100
|
lastSentHeartbeatDate: (t = e.lastSentHeartbeatDate) !== null && t !== void 0 ? t : i.lastSentHeartbeatDate,
|
2099
2101
|
heartbeats: e.heartbeats
|
2100
2102
|
});
|
@@ -2106,7 +2108,7 @@ class Mi {
|
|
2106
2108
|
var t;
|
2107
2109
|
if (await this._canUseIndexedDBPromise) {
|
2108
2110
|
const i = await this.read();
|
2109
|
-
return
|
2111
|
+
return mt(this.app, {
|
2110
2112
|
lastSentHeartbeatDate: (t = e.lastSentHeartbeatDate) !== null && t !== void 0 ? t : i.lastSentHeartbeatDate,
|
2111
2113
|
heartbeats: [
|
2112
2114
|
...i.heartbeats,
|
@@ -2142,12 +2144,12 @@ function _t(n) {
|
|
2142
2144
|
function Li(n) {
|
2143
2145
|
X(new W(
|
2144
2146
|
"platform-logger",
|
2145
|
-
(e) => new
|
2147
|
+
(e) => new $r(e),
|
2146
2148
|
"PRIVATE"
|
2147
2149
|
/* ComponentType.PRIVATE */
|
2148
2150
|
)), X(new W(
|
2149
2151
|
"heartbeat",
|
2150
|
-
(e) => new
|
2152
|
+
(e) => new Di(e),
|
2151
2153
|
"PRIVATE"
|
2152
2154
|
/* ComponentType.PRIVATE */
|
2153
2155
|
)), j(Be, ht, n), j(Be, ht, "esm2017"), j("fire-js", "");
|
@@ -2180,7 +2182,7 @@ var gt = function() {
|
|
2180
2182
|
return e;
|
2181
2183
|
}, gt.apply(this, arguments);
|
2182
2184
|
};
|
2183
|
-
function
|
2185
|
+
function $e(n, e) {
|
2184
2186
|
var t = {};
|
2185
2187
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
|
2186
2188
|
if (n != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -2210,7 +2212,7 @@ const Fi = Qt, en = new q("auth", "Firebase", Qt());
|
|
2210
2212
|
* See the License for the specific language governing permissions and
|
2211
2213
|
* limitations under the License.
|
2212
2214
|
*/
|
2213
|
-
const pe = new
|
2215
|
+
const pe = new Zt("@firebase/auth");
|
2214
2216
|
function xi(n, ...e) {
|
2215
2217
|
pe.logLevel <= p.WARN && pe.warn(`Auth (${ee}): ${n}`, ...e);
|
2216
2218
|
}
|
@@ -2263,7 +2265,7 @@ function b(n) {
|
|
2263
2265
|
const e = "INTERNAL ASSERTION FAILED: " + n;
|
2264
2266
|
throw se(e), new Error(e);
|
2265
2267
|
}
|
2266
|
-
function
|
2268
|
+
function R(n, e) {
|
2267
2269
|
n || b(e);
|
2268
2270
|
}
|
2269
2271
|
/**
|
@@ -2309,7 +2311,7 @@ function vt() {
|
|
2309
2311
|
* See the License for the specific language governing permissions and
|
2310
2312
|
* limitations under the License.
|
2311
2313
|
*/
|
2312
|
-
function
|
2314
|
+
function Vi() {
|
2313
2315
|
return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
|
2314
2316
|
// This is especially true for Cordova apps which have unreliable
|
2315
2317
|
// navigator.onLine behavior unless cordova-plugin-network-information is
|
@@ -2317,7 +2319,7 @@ function Hi() {
|
|
2317
2319
|
// defines navigator.connection.
|
2318
2320
|
(ji() || _r() || "connection" in navigator) ? navigator.onLine : !0;
|
2319
2321
|
}
|
2320
|
-
function
|
2322
|
+
function Hi() {
|
2321
2323
|
if (typeof navigator > "u")
|
2322
2324
|
return null;
|
2323
2325
|
const n = navigator;
|
@@ -2347,10 +2349,10 @@ function Vi() {
|
|
2347
2349
|
*/
|
2348
2350
|
class te {
|
2349
2351
|
constructor(e, t) {
|
2350
|
-
this.shortDelay = e, this.longDelay = t,
|
2352
|
+
this.shortDelay = e, this.longDelay = t, R(t > e, "Short delay should be less than long delay!"), this.isMobile = mr() || gr();
|
2351
2353
|
}
|
2352
2354
|
get() {
|
2353
|
-
return
|
2355
|
+
return Vi() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
2354
2356
|
}
|
2355
2357
|
}
|
2356
2358
|
/**
|
@@ -2370,7 +2372,7 @@ class te {
|
|
2370
2372
|
* limitations under the License.
|
2371
2373
|
*/
|
2372
2374
|
function Xe(n, e) {
|
2373
|
-
|
2375
|
+
R(n.emulator, "Emulator should always be set here");
|
2374
2376
|
const { url: t } = n.emulator;
|
2375
2377
|
return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
|
2376
2378
|
}
|
@@ -2539,7 +2541,7 @@ const Wi = new te(3e4, 6e4);
|
|
2539
2541
|
function ve(n, e) {
|
2540
2542
|
return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
|
2541
2543
|
}
|
2542
|
-
async function
|
2544
|
+
async function Z(n, e, t, r, i = {}) {
|
2543
2545
|
return rn(n, i, async () => {
|
2544
2546
|
let s = {}, a = {};
|
2545
2547
|
r && (e === "GET" ? a = r : s = {
|
@@ -2557,7 +2559,7 @@ async function $(n, e, t, r, i = {}) {
|
|
2557
2559
|
method: e,
|
2558
2560
|
headers: o
|
2559
2561
|
}, s);
|
2560
|
-
return
|
2562
|
+
return fr() || (l.referrerPolicy = "no-referrer"), nn.fetch()(an(n, n.config.apiHost, t, c), l);
|
2561
2563
|
});
|
2562
2564
|
}
|
2563
2565
|
async function rn(n, e, t) {
|
@@ -2594,7 +2596,7 @@ async function rn(n, e, t) {
|
|
2594
2596
|
}
|
2595
2597
|
}
|
2596
2598
|
async function sn(n, e, t, r, i = {}) {
|
2597
|
-
const s = await
|
2599
|
+
const s = await Z(n, e, t, r, i);
|
2598
2600
|
return "mfaPendingCredential" in s && w(n, "multi-factor-auth-required", {
|
2599
2601
|
_serverResponse: s
|
2600
2602
|
}), s;
|
@@ -2641,11 +2643,11 @@ function ie(n, e, t) {
|
|
2641
2643
|
* See the License for the specific language governing permissions and
|
2642
2644
|
* limitations under the License.
|
2643
2645
|
*/
|
2644
|
-
async function
|
2645
|
-
return
|
2646
|
+
async function Zi(n, e) {
|
2647
|
+
return Z(n, "POST", "/v1/accounts:delete", e);
|
2646
2648
|
}
|
2647
2649
|
async function on(n, e) {
|
2648
|
-
return
|
2650
|
+
return Z(n, "POST", "/v1/accounts:lookup", e);
|
2649
2651
|
}
|
2650
2652
|
/**
|
2651
2653
|
* @license
|
@@ -2672,7 +2674,7 @@ function J(n) {
|
|
2672
2674
|
} catch {
|
2673
2675
|
}
|
2674
2676
|
}
|
2675
|
-
async function
|
2677
|
+
async function $i(n, e = !1) {
|
2676
2678
|
const t = z(n), r = await t.getIdToken(e), i = Ye(r);
|
2677
2679
|
u(
|
2678
2680
|
i && i.exp && i.auth_time && i.iat,
|
@@ -2684,14 +2686,14 @@ async function Zi(n, e = !1) {
|
|
2684
2686
|
return {
|
2685
2687
|
claims: i,
|
2686
2688
|
token: r,
|
2687
|
-
authTime: J(
|
2688
|
-
issuedAtTime: J(
|
2689
|
-
expirationTime: J(
|
2689
|
+
authTime: J(Ce(i.auth_time)),
|
2690
|
+
issuedAtTime: J(Ce(i.iat)),
|
2691
|
+
expirationTime: J(Ce(i.exp)),
|
2690
2692
|
signInProvider: a || null,
|
2691
2693
|
signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
|
2692
2694
|
};
|
2693
2695
|
}
|
2694
|
-
function
|
2696
|
+
function Ce(n) {
|
2695
2697
|
return Number(n) * 1e3;
|
2696
2698
|
}
|
2697
2699
|
function Ye(n) {
|
@@ -2699,7 +2701,7 @@ function Ye(n) {
|
|
2699
2701
|
if (e === void 0 || t === void 0 || r === void 0)
|
2700
2702
|
return se("JWT malformed, contained fewer than 3 sections"), null;
|
2701
2703
|
try {
|
2702
|
-
const i =
|
2704
|
+
const i = Ht(t);
|
2703
2705
|
return i ? JSON.parse(i) : (se("Failed to decode base64 JWT payload"), null);
|
2704
2706
|
} catch (i) {
|
2705
2707
|
return se("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
|
@@ -2827,7 +2829,7 @@ class Xi {
|
|
2827
2829
|
* See the License for the specific language governing permissions and
|
2828
2830
|
* limitations under the License.
|
2829
2831
|
*/
|
2830
|
-
class
|
2832
|
+
class Ve {
|
2831
2833
|
constructor(e, t) {
|
2832
2834
|
this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
|
2833
2835
|
}
|
@@ -2860,7 +2862,7 @@ class He {
|
|
2860
2862
|
* See the License for the specific language governing permissions and
|
2861
2863
|
* limitations under the License.
|
2862
2864
|
*/
|
2863
|
-
async function
|
2865
|
+
async function me(n) {
|
2864
2866
|
var e;
|
2865
2867
|
const t = n.auth, r = await n.getIdToken(), i = await K(n, on(t, { idToken: r }));
|
2866
2868
|
u(
|
@@ -2880,21 +2882,21 @@ async function fe(n) {
|
|
2880
2882
|
phoneNumber: s.phoneNumber || null,
|
2881
2883
|
tenantId: s.tenantId || null,
|
2882
2884
|
providerData: c,
|
2883
|
-
metadata: new
|
2885
|
+
metadata: new Ve(s.createdAt, s.lastLoginAt),
|
2884
2886
|
isAnonymous: d
|
2885
2887
|
};
|
2886
2888
|
Object.assign(n, h);
|
2887
2889
|
}
|
2888
2890
|
async function Yi(n) {
|
2889
2891
|
const e = z(n);
|
2890
|
-
await
|
2892
|
+
await me(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
2891
2893
|
}
|
2892
2894
|
function Ki(n, e) {
|
2893
2895
|
return [...n.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
|
2894
2896
|
}
|
2895
2897
|
function cn(n) {
|
2896
2898
|
return n.map((e) => {
|
2897
|
-
var { providerId: t } = e, r =
|
2899
|
+
var { providerId: t } = e, r = $e(e, ["providerId"]);
|
2898
2900
|
return {
|
2899
2901
|
providerId: t,
|
2900
2902
|
uid: r.rawId || "",
|
@@ -2943,7 +2945,7 @@ async function qi(n, e) {
|
|
2943
2945
|
};
|
2944
2946
|
}
|
2945
2947
|
async function Qi(n, e) {
|
2946
|
-
return
|
2948
|
+
return Z(n, "POST", "/v2/accounts:revokeToken", ve(n, e));
|
2947
2949
|
}
|
2948
2950
|
/**
|
2949
2951
|
* @license
|
@@ -2961,7 +2963,7 @@ async function Qi(n, e) {
|
|
2961
2963
|
* See the License for the specific language governing permissions and
|
2962
2964
|
* limitations under the License.
|
2963
2965
|
*/
|
2964
|
-
class
|
2966
|
+
class V {
|
2965
2967
|
constructor() {
|
2966
2968
|
this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
|
2967
2969
|
}
|
@@ -3013,7 +3015,7 @@ class H {
|
|
3013
3015
|
this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + r * 1e3;
|
3014
3016
|
}
|
3015
3017
|
static fromJSON(e, t) {
|
3016
|
-
const { refreshToken: r, accessToken: i, expirationTime: s } = t, a = new
|
3018
|
+
const { refreshToken: r, accessToken: i, expirationTime: s } = t, a = new V();
|
3017
3019
|
return r && (u(typeof r == "string", "internal-error", {
|
3018
3020
|
appName: e
|
3019
3021
|
}), a.refreshToken = r), i && (u(typeof i == "string", "internal-error", {
|
@@ -3033,7 +3035,7 @@ class H {
|
|
3033
3035
|
this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
|
3034
3036
|
}
|
3035
3037
|
_clone() {
|
3036
|
-
return Object.assign(new
|
3038
|
+
return Object.assign(new V(), this.toJSON());
|
3037
3039
|
}
|
3038
3040
|
_performRefresh() {
|
3039
3041
|
return b("not implemented");
|
@@ -3055,13 +3057,13 @@ class H {
|
|
3055
3057
|
* See the License for the specific language governing permissions and
|
3056
3058
|
* limitations under the License.
|
3057
3059
|
*/
|
3058
|
-
function
|
3060
|
+
function k(n, e) {
|
3059
3061
|
u(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
|
3060
3062
|
}
|
3061
3063
|
class y {
|
3062
3064
|
constructor(e) {
|
3063
|
-
var { uid: t, auth: r, stsTokenManager: i } = e, s =
|
3064
|
-
this.providerId = "firebase", this.proactiveRefresh = new Xi(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
|
3065
|
+
var { uid: t, auth: r, stsTokenManager: i } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
|
3066
|
+
this.providerId = "firebase", this.proactiveRefresh = new Xi(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 Ve(s.createdAt || void 0, s.lastLoginAt || void 0);
|
3065
3067
|
}
|
3066
3068
|
async getIdToken(e) {
|
3067
3069
|
const t = await K(this, this.stsTokenManager.getToken(this.auth, e));
|
@@ -3073,7 +3075,7 @@ class y {
|
|
3073
3075
|
), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
|
3074
3076
|
}
|
3075
3077
|
getIdTokenResult(e) {
|
3076
|
-
return
|
3078
|
+
return $i(this, e);
|
3077
3079
|
}
|
3078
3080
|
reload() {
|
3079
3081
|
return Yi(this);
|
@@ -3109,13 +3111,13 @@ class y {
|
|
3109
3111
|
}
|
3110
3112
|
async _updateTokensIfNecessary(e, t = !1) {
|
3111
3113
|
let r = !1;
|
3112
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await
|
3114
|
+
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await me(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
|
3113
3115
|
}
|
3114
3116
|
async delete() {
|
3115
3117
|
if (I(this.auth.app))
|
3116
3118
|
return Promise.reject(P(this.auth));
|
3117
3119
|
const e = await this.getIdToken();
|
3118
|
-
return await K(this,
|
3120
|
+
return await K(this, Zi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
3119
3121
|
}
|
3120
3122
|
toJSON() {
|
3121
3123
|
return Object.assign(Object.assign({
|
@@ -3143,20 +3145,20 @@ class y {
|
|
3143
3145
|
}
|
3144
3146
|
static _fromJSON(e, t) {
|
3145
3147
|
var r, i, s, a, c, o, l, d;
|
3146
|
-
const h = (r = t.displayName) !== null && r !== void 0 ? r : void 0,
|
3148
|
+
const h = (r = t.displayName) !== null && r !== void 0 ? r : void 0, m = (i = t.email) !== null && i !== void 0 ? i : void 0, v = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, F = (a = t.photoURL) !== null && a !== void 0 ? a : void 0, tt = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, Te = (o = t._redirectEventId) !== null && o !== void 0 ? o : void 0, nt = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, rt = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: Ee, emailVerified: it, isAnonymous: st, providerData: we, stsTokenManager: at } = t;
|
3147
3149
|
u(
|
3148
|
-
|
3150
|
+
Ee && at,
|
3149
3151
|
e,
|
3150
3152
|
"internal-error"
|
3151
3153
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3152
3154
|
);
|
3153
|
-
const Pn =
|
3155
|
+
const Pn = V.fromJSON(this.name, at);
|
3154
3156
|
u(
|
3155
|
-
typeof
|
3157
|
+
typeof Ee == "string",
|
3156
3158
|
e,
|
3157
3159
|
"internal-error"
|
3158
3160
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3159
|
-
),
|
3161
|
+
), k(h, e.name), k(m, e.name), u(
|
3160
3162
|
typeof it == "boolean",
|
3161
3163
|
e,
|
3162
3164
|
"internal-error"
|
@@ -3166,11 +3168,11 @@ class y {
|
|
3166
3168
|
e,
|
3167
3169
|
"internal-error"
|
3168
3170
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3169
|
-
),
|
3170
|
-
const
|
3171
|
-
uid:
|
3171
|
+
), k(v, e.name), k(F, e.name), k(tt, e.name), k(Te, e.name), k(nt, e.name), k(rt, e.name);
|
3172
|
+
const Re = new y({
|
3173
|
+
uid: Ee,
|
3172
3174
|
auth: e,
|
3173
|
-
email:
|
3175
|
+
email: m,
|
3174
3176
|
emailVerified: it,
|
3175
3177
|
displayName: h,
|
3176
3178
|
isAnonymous: st,
|
@@ -3181,7 +3183,7 @@ class y {
|
|
3181
3183
|
createdAt: nt,
|
3182
3184
|
lastLoginAt: rt
|
3183
3185
|
});
|
3184
|
-
return we && Array.isArray(we) && (
|
3186
|
+
return we && Array.isArray(we) && (Re.providerData = we.map((Mn) => Object.assign({}, Mn))), Te && (Re._redirectEventId = Te), Re;
|
3185
3187
|
}
|
3186
3188
|
/**
|
3187
3189
|
* Initialize a User from an idToken server response
|
@@ -3189,7 +3191,7 @@ class y {
|
|
3189
3191
|
* @param idTokenResponse
|
3190
3192
|
*/
|
3191
3193
|
static async _fromIdTokenResponse(e, t, r = !1) {
|
3192
|
-
const i = new
|
3194
|
+
const i = new V();
|
3193
3195
|
i.updateFromServerResponse(t);
|
3194
3196
|
const s = new y({
|
3195
3197
|
uid: t.localId,
|
@@ -3197,7 +3199,7 @@ class y {
|
|
3197
3199
|
stsTokenManager: i,
|
3198
3200
|
isAnonymous: r
|
3199
3201
|
});
|
3200
|
-
return await
|
3202
|
+
return await me(s), s;
|
3201
3203
|
}
|
3202
3204
|
/**
|
3203
3205
|
* Initialize a User from an idToken server response
|
@@ -3211,7 +3213,7 @@ class y {
|
|
3211
3213
|
"internal-error"
|
3212
3214
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3213
3215
|
);
|
3214
|
-
const s = i.providerUserInfo !== void 0 ? cn(i.providerUserInfo) : [], a = !(i.email && i.passwordHash) && !(s != null && s.length), c = new
|
3216
|
+
const s = i.providerUserInfo !== void 0 ? cn(i.providerUserInfo) : [], a = !(i.email && i.passwordHash) && !(s != null && s.length), c = new V();
|
3215
3217
|
c.updateFromIdToken(r);
|
3216
3218
|
const o = new y({
|
3217
3219
|
uid: i.localId,
|
@@ -3227,7 +3229,7 @@ class y {
|
|
3227
3229
|
phoneNumber: i.phoneNumber || null,
|
3228
3230
|
tenantId: i.tenantId || null,
|
3229
3231
|
providerData: s,
|
3230
|
-
metadata: new
|
3232
|
+
metadata: new Ve(i.createdAt, i.lastLoginAt),
|
3231
3233
|
isAnonymous: !(i.email && i.passwordHash) && !(s != null && s.length)
|
3232
3234
|
};
|
3233
3235
|
return Object.assign(o, l), o;
|
@@ -3250,10 +3252,10 @@ class y {
|
|
3250
3252
|
* limitations under the License.
|
3251
3253
|
*/
|
3252
3254
|
const bt = /* @__PURE__ */ new Map();
|
3253
|
-
function
|
3254
|
-
|
3255
|
+
function T(n) {
|
3256
|
+
R(n instanceof Function, "Expected a class definition");
|
3255
3257
|
let e = bt.get(n);
|
3256
|
-
return e ? (
|
3258
|
+
return e ? (R(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), bt.set(n, e), e);
|
3257
3259
|
}
|
3258
3260
|
/**
|
3259
3261
|
* @license
|
@@ -3314,7 +3316,7 @@ const yt = ln;
|
|
3314
3316
|
function ae(n, e, t) {
|
3315
3317
|
return `firebase:${n}:${e}:${t}`;
|
3316
3318
|
}
|
3317
|
-
class
|
3319
|
+
class H {
|
3318
3320
|
constructor(e, t, r) {
|
3319
3321
|
this.persistence = e, this.auth = t, this.userKey = r;
|
3320
3322
|
const { config: i, name: s } = this.auth;
|
@@ -3345,12 +3347,12 @@ class V {
|
|
3345
3347
|
}
|
3346
3348
|
static async create(e, t, r = "authUser") {
|
3347
3349
|
if (!t.length)
|
3348
|
-
return new
|
3350
|
+
return new H(T(yt), e, r);
|
3349
3351
|
const i = (await Promise.all(t.map(async (l) => {
|
3350
3352
|
if (await l._isAvailable())
|
3351
3353
|
return l;
|
3352
3354
|
}))).filter((l) => l);
|
3353
|
-
let s = i[0] ||
|
3355
|
+
let s = i[0] || T(yt);
|
3354
3356
|
const a = ae(r, e.config.apiKey, e.name);
|
3355
3357
|
let c = null;
|
3356
3358
|
for (const l of t)
|
@@ -3364,13 +3366,13 @@ class V {
|
|
3364
3366
|
} catch {
|
3365
3367
|
}
|
3366
3368
|
const o = i.filter((l) => l._shouldAllowMigration);
|
3367
|
-
return !s._shouldAllowMigration || !o.length ? new
|
3369
|
+
return !s._shouldAllowMigration || !o.length ? new H(s, e, r) : (s = o[0], c && await s._set(a, c.toJSON()), await Promise.all(t.map(async (l) => {
|
3368
3370
|
if (l !== s)
|
3369
3371
|
try {
|
3370
3372
|
await l._remove(a);
|
3371
3373
|
} catch {
|
3372
3374
|
}
|
3373
|
-
})), new
|
3375
|
+
})), new H(s, e, r));
|
3374
3376
|
}
|
3375
3377
|
}
|
3376
3378
|
/**
|
@@ -3389,7 +3391,7 @@ class V {
|
|
3389
3391
|
* See the License for the specific language governing permissions and
|
3390
3392
|
* limitations under the License.
|
3391
3393
|
*/
|
3392
|
-
function
|
3394
|
+
function Tt(n) {
|
3393
3395
|
const e = n.toLowerCase();
|
3394
3396
|
if (e.includes("opera/") || e.includes("opr/") || e.includes("opios/"))
|
3395
3397
|
return "Opera";
|
@@ -3403,7 +3405,7 @@ function Et(n) {
|
|
3403
3405
|
return "Firefox";
|
3404
3406
|
if (e.includes("silk/"))
|
3405
3407
|
return "Silk";
|
3406
|
-
if (
|
3408
|
+
if (fn(e))
|
3407
3409
|
return "Blackberry";
|
3408
3410
|
if (_n(e))
|
3409
3411
|
return "Webos";
|
@@ -3411,7 +3413,7 @@ function Et(n) {
|
|
3411
3413
|
return "Safari";
|
3412
3414
|
if ((e.includes("chrome/") || hn(e)) && !e.includes("edge/"))
|
3413
3415
|
return "Chrome";
|
3414
|
-
if (
|
3416
|
+
if (mn(e))
|
3415
3417
|
return "Android";
|
3416
3418
|
{
|
3417
3419
|
const t = /([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/, r = n.match(t);
|
@@ -3420,40 +3422,40 @@ function Et(n) {
|
|
3420
3422
|
}
|
3421
3423
|
return "Other";
|
3422
3424
|
}
|
3423
|
-
function dn(n =
|
3425
|
+
function dn(n = f()) {
|
3424
3426
|
return /firefox\//i.test(n);
|
3425
3427
|
}
|
3426
|
-
function un(n =
|
3428
|
+
function un(n = f()) {
|
3427
3429
|
const e = n.toLowerCase();
|
3428
3430
|
return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
|
3429
3431
|
}
|
3430
|
-
function hn(n =
|
3432
|
+
function hn(n = f()) {
|
3431
3433
|
return /crios\//i.test(n);
|
3432
3434
|
}
|
3433
|
-
function pn(n =
|
3435
|
+
function pn(n = f()) {
|
3434
3436
|
return /iemobile/i.test(n);
|
3435
3437
|
}
|
3436
|
-
function
|
3438
|
+
function mn(n = f()) {
|
3437
3439
|
return /android/i.test(n);
|
3438
3440
|
}
|
3439
|
-
function
|
3441
|
+
function fn(n = f()) {
|
3440
3442
|
return /blackberry/i.test(n);
|
3441
3443
|
}
|
3442
|
-
function _n(n =
|
3444
|
+
function _n(n = f()) {
|
3443
3445
|
return /webos/i.test(n);
|
3444
3446
|
}
|
3445
|
-
function Ke(n =
|
3447
|
+
function Ke(n = f()) {
|
3446
3448
|
return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
|
3447
3449
|
}
|
3448
|
-
function es(n =
|
3450
|
+
function es(n = f()) {
|
3449
3451
|
var e;
|
3450
3452
|
return Ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
3451
3453
|
}
|
3452
3454
|
function ts() {
|
3453
3455
|
return vr() && document.documentMode === 10;
|
3454
3456
|
}
|
3455
|
-
function gn(n =
|
3456
|
-
return Ke(n) ||
|
3457
|
+
function gn(n = f()) {
|
3458
|
+
return Ke(n) || mn(n) || _n(n) || fn(n) || /windows phone/i.test(n) || pn(n);
|
3457
3459
|
}
|
3458
3460
|
/**
|
3459
3461
|
* @license
|
@@ -3475,10 +3477,10 @@ function vn(n, e = []) {
|
|
3475
3477
|
let t;
|
3476
3478
|
switch (n) {
|
3477
3479
|
case "Browser":
|
3478
|
-
t =
|
3480
|
+
t = Tt(f());
|
3479
3481
|
break;
|
3480
3482
|
case "Worker":
|
3481
|
-
t = `${
|
3483
|
+
t = `${Tt(f())}-${n}`;
|
3482
3484
|
break;
|
3483
3485
|
default:
|
3484
3486
|
t = n;
|
@@ -3558,7 +3560,7 @@ class ns {
|
|
3558
3560
|
* limitations under the License.
|
3559
3561
|
*/
|
3560
3562
|
async function rs(n, e = {}) {
|
3561
|
-
return
|
3563
|
+
return Z(n, "GET", "/v2/passwordPolicy", ve(n, e));
|
3562
3564
|
}
|
3563
3565
|
/**
|
3564
3566
|
* @license
|
@@ -3666,12 +3668,12 @@ class ss {
|
|
3666
3668
|
*/
|
3667
3669
|
class as {
|
3668
3670
|
constructor(e, t, r, i) {
|
3669
|
-
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
|
3671
|
+
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 Et(this), this.idTokenSubscription = new Et(this), this.beforeStateQueue = new ns(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 = en, 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;
|
3670
3672
|
}
|
3671
3673
|
_initializeWithPersistence(e, t) {
|
3672
|
-
return t && (this._popupRedirectResolver =
|
3674
|
+
return t && (this._popupRedirectResolver = T(t)), this._initializationPromise = this.queue(async () => {
|
3673
3675
|
var r, i;
|
3674
|
-
if (!this._deleted && (this.persistenceManager = await
|
3676
|
+
if (!this._deleted && (this.persistenceManager = await H.create(this, e), !this._deleted)) {
|
3675
3677
|
if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
|
3676
3678
|
try {
|
3677
3679
|
await this._popupRedirectResolver._initialize(this);
|
@@ -3752,7 +3754,7 @@ class as {
|
|
3752
3754
|
}
|
3753
3755
|
async reloadAndSetCurrentUserOrClear(e) {
|
3754
3756
|
try {
|
3755
|
-
await
|
3757
|
+
await me(e);
|
3756
3758
|
} catch (t) {
|
3757
3759
|
if ((t == null ? void 0 : t.code) !== "auth/network-request-failed")
|
3758
3760
|
return this.directlySetCurrentUser(null);
|
@@ -3760,7 +3762,7 @@ class as {
|
|
3760
3762
|
return this.directlySetCurrentUser(e);
|
3761
3763
|
}
|
3762
3764
|
useDeviceLanguage() {
|
3763
|
-
this.languageCode =
|
3765
|
+
this.languageCode = Hi();
|
3764
3766
|
}
|
3765
3767
|
async _delete() {
|
3766
3768
|
this._deleted = !0;
|
@@ -3796,7 +3798,7 @@ class as {
|
|
3796
3798
|
}
|
3797
3799
|
setPersistence(e) {
|
3798
3800
|
return I(this.app) ? Promise.reject(P(this)) : this.queue(async () => {
|
3799
|
-
await this.assertedPersistence.setPersistence(
|
3801
|
+
await this.assertedPersistence.setPersistence(T(e));
|
3800
3802
|
});
|
3801
3803
|
}
|
3802
3804
|
_getRecaptchaConfig() {
|
@@ -3869,15 +3871,15 @@ class as {
|
|
3869
3871
|
}
|
3870
3872
|
async getOrInitRedirectPersistenceManager(e) {
|
3871
3873
|
if (!this.redirectPersistenceManager) {
|
3872
|
-
const t = e &&
|
3874
|
+
const t = e && T(e) || this._popupRedirectResolver;
|
3873
3875
|
u(
|
3874
3876
|
t,
|
3875
3877
|
this,
|
3876
3878
|
"argument-error"
|
3877
3879
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
3878
|
-
), this.redirectPersistenceManager = await
|
3880
|
+
), this.redirectPersistenceManager = await H.create(
|
3879
3881
|
this,
|
3880
|
-
[
|
3882
|
+
[T(t._redirectPersistence)],
|
3881
3883
|
"redirectUser"
|
3882
3884
|
/* KeyName.REDIRECT_USER */
|
3883
3885
|
), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
|
@@ -4000,9 +4002,9 @@ class as {
|
|
4000
4002
|
function Ie(n) {
|
4001
4003
|
return z(n);
|
4002
4004
|
}
|
4003
|
-
class
|
4005
|
+
class Et {
|
4004
4006
|
constructor(e) {
|
4005
|
-
this.auth = e, this.observer = null, this.addObserver =
|
4007
|
+
this.auth = e, this.observer = null, this.addObserver = Rr((t) => this.observer = t);
|
4006
4008
|
}
|
4007
4009
|
get next() {
|
4008
4010
|
return u(
|
@@ -4080,7 +4082,7 @@ function us(n, e) {
|
|
4080
4082
|
return t.initialize({ options: e });
|
4081
4083
|
}
|
4082
4084
|
function hs(n, e) {
|
4083
|
-
const t = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(t) ? t : [t]).map(
|
4085
|
+
const t = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(t) ? t : [t]).map(T);
|
4084
4086
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
4085
4087
|
}
|
4086
4088
|
function ps(n, e, t) {
|
@@ -4096,19 +4098,19 @@ function ps(n, e, t) {
|
|
4096
4098
|
"invalid-emulator-scheme"
|
4097
4099
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
4098
4100
|
);
|
4099
|
-
const i = !1, s = In(e), { host: a, port: c } =
|
4101
|
+
const i = !1, s = In(e), { host: a, port: c } = ms(e), o = c === null ? "" : `:${c}`;
|
4100
4102
|
r.config.emulator = { url: `${s}//${a}${o}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
|
4101
4103
|
host: a,
|
4102
4104
|
port: c,
|
4103
4105
|
protocol: s.replace(":", ""),
|
4104
4106
|
options: Object.freeze({ disableWarnings: i })
|
4105
|
-
}),
|
4107
|
+
}), fs();
|
4106
4108
|
}
|
4107
4109
|
function In(n) {
|
4108
4110
|
const e = n.indexOf(":");
|
4109
4111
|
return e < 0 ? "" : n.substr(0, e + 1);
|
4110
4112
|
}
|
4111
|
-
function
|
4113
|
+
function ms(n) {
|
4112
4114
|
const e = In(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
|
4113
4115
|
if (!t)
|
4114
4116
|
return { host: "", port: null };
|
@@ -4127,7 +4129,7 @@ function wt(n) {
|
|
4127
4129
|
const e = Number(n);
|
4128
4130
|
return isNaN(e) ? null : e;
|
4129
4131
|
}
|
4130
|
-
function
|
4132
|
+
function fs() {
|
4131
4133
|
function n() {
|
4132
4134
|
const e = document.createElement("p"), t = e.style;
|
4133
4135
|
e.innerText = "Running in emulator mode. Do not use with production credentials.", t.position = "fixed", t.width = "100%", t.backgroundColor = "#ffffff", t.border = ".1em solid #000000", t.color = "#b50000", t.bottom = "0px", t.left = "0px", t.margin = "0px", t.zIndex = "10000", t.textAlign = "center", e.classList.add("firebase-emulator-warning"), document.body.appendChild(e);
|
@@ -4246,7 +4248,7 @@ class U extends bn {
|
|
4246
4248
|
* @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
|
4247
4249
|
*/
|
4248
4250
|
static fromJSON(e) {
|
4249
|
-
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s =
|
4251
|
+
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = $e(t, ["providerId", "signInMethod"]);
|
4250
4252
|
if (!r || !i)
|
4251
4253
|
return null;
|
4252
4254
|
const a = new U(r, i);
|
@@ -4385,7 +4387,7 @@ class ne extends yn {
|
|
4385
4387
|
* See the License for the specific language governing permissions and
|
4386
4388
|
* limitations under the License.
|
4387
4389
|
*/
|
4388
|
-
class
|
4390
|
+
class S extends ne {
|
4389
4391
|
constructor() {
|
4390
4392
|
super(
|
4391
4393
|
"facebook.com"
|
@@ -4406,8 +4408,8 @@ class A extends ne {
|
|
4406
4408
|
*/
|
4407
4409
|
static credential(e) {
|
4408
4410
|
return U._fromParams({
|
4409
|
-
providerId:
|
4410
|
-
signInMethod:
|
4411
|
+
providerId: S.PROVIDER_ID,
|
4412
|
+
signInMethod: S.FACEBOOK_SIGN_IN_METHOD,
|
4411
4413
|
accessToken: e
|
4412
4414
|
});
|
4413
4415
|
}
|
@@ -4417,7 +4419,7 @@ class A extends ne {
|
|
4417
4419
|
* @param userCredential - The user credential.
|
4418
4420
|
*/
|
4419
4421
|
static credentialFromResult(e) {
|
4420
|
-
return
|
4422
|
+
return S.credentialFromTaggedObject(e);
|
4421
4423
|
}
|
4422
4424
|
/**
|
4423
4425
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
@@ -4426,20 +4428,20 @@ class A extends ne {
|
|
4426
4428
|
* @param userCredential - The user credential.
|
4427
4429
|
*/
|
4428
4430
|
static credentialFromError(e) {
|
4429
|
-
return
|
4431
|
+
return S.credentialFromTaggedObject(e.customData || {});
|
4430
4432
|
}
|
4431
4433
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
4432
4434
|
if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
|
4433
4435
|
return null;
|
4434
4436
|
try {
|
4435
|
-
return
|
4437
|
+
return S.credential(e.oauthAccessToken);
|
4436
4438
|
} catch {
|
4437
4439
|
return null;
|
4438
4440
|
}
|
4439
4441
|
}
|
4440
4442
|
}
|
4441
|
-
|
4442
|
-
|
4443
|
+
S.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
|
4444
|
+
S.PROVIDER_ID = "facebook.com";
|
4443
4445
|
/**
|
4444
4446
|
* @license
|
4445
4447
|
* Copyright 2020 Google LLC
|
@@ -4456,7 +4458,7 @@ A.PROVIDER_ID = "facebook.com";
|
|
4456
4458
|
* See the License for the specific language governing permissions and
|
4457
4459
|
* limitations under the License.
|
4458
4460
|
*/
|
4459
|
-
class
|
4461
|
+
class A extends ne {
|
4460
4462
|
constructor() {
|
4461
4463
|
super(
|
4462
4464
|
"google.com"
|
@@ -4478,8 +4480,8 @@ class S extends ne {
|
|
4478
4480
|
*/
|
4479
4481
|
static credential(e, t) {
|
4480
4482
|
return U._fromParams({
|
4481
|
-
providerId:
|
4482
|
-
signInMethod:
|
4483
|
+
providerId: A.PROVIDER_ID,
|
4484
|
+
signInMethod: A.GOOGLE_SIGN_IN_METHOD,
|
4483
4485
|
idToken: e,
|
4484
4486
|
accessToken: t
|
4485
4487
|
});
|
@@ -4490,7 +4492,7 @@ class S extends ne {
|
|
4490
4492
|
* @param userCredential - The user credential.
|
4491
4493
|
*/
|
4492
4494
|
static credentialFromResult(e) {
|
4493
|
-
return
|
4495
|
+
return A.credentialFromTaggedObject(e);
|
4494
4496
|
}
|
4495
4497
|
/**
|
4496
4498
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
@@ -4499,7 +4501,7 @@ class S extends ne {
|
|
4499
4501
|
* @param userCredential - The user credential.
|
4500
4502
|
*/
|
4501
4503
|
static credentialFromError(e) {
|
4502
|
-
return
|
4504
|
+
return A.credentialFromTaggedObject(e.customData || {});
|
4503
4505
|
}
|
4504
4506
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
4505
4507
|
if (!e)
|
@@ -4508,14 +4510,14 @@ class S extends ne {
|
|
4508
4510
|
if (!t && !r)
|
4509
4511
|
return null;
|
4510
4512
|
try {
|
4511
|
-
return
|
4513
|
+
return A.credential(t, r);
|
4512
4514
|
} catch {
|
4513
4515
|
return null;
|
4514
4516
|
}
|
4515
4517
|
}
|
4516
4518
|
}
|
4517
|
-
|
4518
|
-
|
4519
|
+
A.GOOGLE_SIGN_IN_METHOD = "google.com";
|
4520
|
+
A.PROVIDER_ID = "google.com";
|
4519
4521
|
/**
|
4520
4522
|
* @license
|
4521
4523
|
* Copyright 2020 Google LLC
|
@@ -4596,7 +4598,7 @@ O.PROVIDER_ID = "github.com";
|
|
4596
4598
|
* See the License for the specific language governing permissions and
|
4597
4599
|
* limitations under the License.
|
4598
4600
|
*/
|
4599
|
-
class
|
4601
|
+
class N extends ne {
|
4600
4602
|
constructor() {
|
4601
4603
|
super(
|
4602
4604
|
"twitter.com"
|
@@ -4611,8 +4613,8 @@ class C extends ne {
|
|
4611
4613
|
*/
|
4612
4614
|
static credential(e, t) {
|
4613
4615
|
return U._fromParams({
|
4614
|
-
providerId:
|
4615
|
-
signInMethod:
|
4616
|
+
providerId: N.PROVIDER_ID,
|
4617
|
+
signInMethod: N.TWITTER_SIGN_IN_METHOD,
|
4616
4618
|
oauthToken: e,
|
4617
4619
|
oauthTokenSecret: t
|
4618
4620
|
});
|
@@ -4623,7 +4625,7 @@ class C extends ne {
|
|
4623
4625
|
* @param userCredential - The user credential.
|
4624
4626
|
*/
|
4625
4627
|
static credentialFromResult(e) {
|
4626
|
-
return
|
4628
|
+
return N.credentialFromTaggedObject(e);
|
4627
4629
|
}
|
4628
4630
|
/**
|
4629
4631
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
@@ -4632,7 +4634,7 @@ class C extends ne {
|
|
4632
4634
|
* @param userCredential - The user credential.
|
4633
4635
|
*/
|
4634
4636
|
static credentialFromError(e) {
|
4635
|
-
return
|
4637
|
+
return N.credentialFromTaggedObject(e.customData || {});
|
4636
4638
|
}
|
4637
4639
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
4638
4640
|
if (!e)
|
@@ -4641,14 +4643,14 @@ class C extends ne {
|
|
4641
4643
|
if (!t || !r)
|
4642
4644
|
return null;
|
4643
4645
|
try {
|
4644
|
-
return
|
4646
|
+
return N.credential(t, r);
|
4645
4647
|
} catch {
|
4646
4648
|
return null;
|
4647
4649
|
}
|
4648
4650
|
}
|
4649
4651
|
}
|
4650
|
-
|
4651
|
-
|
4652
|
+
N.TWITTER_SIGN_IN_METHOD = "twitter.com";
|
4653
|
+
N.PROVIDER_ID = "twitter.com";
|
4652
4654
|
/**
|
4653
4655
|
* @license
|
4654
4656
|
* Copyright 2020 Google LLC
|
@@ -4670,7 +4672,7 @@ class B {
|
|
4670
4672
|
this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
|
4671
4673
|
}
|
4672
4674
|
static async _fromIdTokenResponse(e, t, r, i = !1) {
|
4673
|
-
const s = await y._fromIdTokenResponse(e, r, i), a =
|
4675
|
+
const s = await y._fromIdTokenResponse(e, r, i), a = Rt(r);
|
4674
4676
|
return new B({
|
4675
4677
|
user: s,
|
4676
4678
|
providerId: a,
|
@@ -4684,7 +4686,7 @@ class B {
|
|
4684
4686
|
/* reload */
|
4685
4687
|
!0
|
4686
4688
|
);
|
4687
|
-
const i =
|
4689
|
+
const i = Rt(r);
|
4688
4690
|
return new B({
|
4689
4691
|
user: e,
|
4690
4692
|
providerId: i,
|
@@ -4693,7 +4695,7 @@ class B {
|
|
4693
4695
|
});
|
4694
4696
|
}
|
4695
4697
|
}
|
4696
|
-
function
|
4698
|
+
function Rt(n) {
|
4697
4699
|
return n.providerId ? n.providerId : "phoneNumber" in n ? "phone" : null;
|
4698
4700
|
}
|
4699
4701
|
/**
|
@@ -4712,10 +4714,10 @@ function kt(n) {
|
|
4712
4714
|
* See the License for the specific language governing permissions and
|
4713
4715
|
* limitations under the License.
|
4714
4716
|
*/
|
4715
|
-
class
|
4717
|
+
class fe extends M {
|
4716
4718
|
constructor(e, t, r, i) {
|
4717
4719
|
var s;
|
4718
|
-
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this,
|
4720
|
+
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this, fe.prototype), this.customData = {
|
4719
4721
|
appName: e.name,
|
4720
4722
|
tenantId: (s = e.tenantId) !== null && s !== void 0 ? s : void 0,
|
4721
4723
|
_serverResponse: t.customData._serverResponse,
|
@@ -4723,12 +4725,12 @@ class me extends M {
|
|
4723
4725
|
};
|
4724
4726
|
}
|
4725
4727
|
static _fromErrorAndOperation(e, t, r, i) {
|
4726
|
-
return new
|
4728
|
+
return new fe(e, t, r, i);
|
4727
4729
|
}
|
4728
4730
|
}
|
4729
|
-
function
|
4731
|
+
function Tn(n, e, t, r) {
|
4730
4732
|
return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
|
4731
|
-
throw s.code === "auth/multi-factor-auth-required" ?
|
4733
|
+
throw s.code === "auth/multi-factor-auth-required" ? fe._fromErrorAndOperation(n, s, e, r) : s;
|
4732
4734
|
});
|
4733
4735
|
}
|
4734
4736
|
async function gs(n, e, t = !1) {
|
@@ -4757,7 +4759,7 @@ async function vs(n, e, t = !1) {
|
|
4757
4759
|
return Promise.reject(P(r));
|
4758
4760
|
const i = "reauthenticate";
|
4759
4761
|
try {
|
4760
|
-
const s = await K(n,
|
4762
|
+
const s = await K(n, Tn(r, i, e, n), t);
|
4761
4763
|
u(
|
4762
4764
|
s.idToken,
|
4763
4765
|
r,
|
@@ -4805,7 +4807,7 @@ async function vs(n, e, t = !1) {
|
|
4805
4807
|
async function Is(n, e, t = !1) {
|
4806
4808
|
if (I(n.app))
|
4807
4809
|
return Promise.reject(P(n));
|
4808
|
-
const r = "signIn", i = await
|
4810
|
+
const r = "signIn", i = await Tn(n, r, e), s = await B._fromIdTokenResponse(n, r, i);
|
4809
4811
|
return t || await n._updateCurrentUser(s.user), s;
|
4810
4812
|
}
|
4811
4813
|
/**
|
@@ -4852,10 +4854,10 @@ async function ys(n, e) {
|
|
4852
4854
|
}), i = await B._fromIdTokenResponse(t, "signIn", r);
|
4853
4855
|
return await t._updateCurrentUser(i.user), i;
|
4854
4856
|
}
|
4855
|
-
function
|
4857
|
+
function Ts(n, e, t, r) {
|
4856
4858
|
return z(n).onIdTokenChanged(e, t, r);
|
4857
4859
|
}
|
4858
|
-
function
|
4860
|
+
function Es(n, e, t) {
|
4859
4861
|
return z(n).beforeAuthStateChanged(e, t);
|
4860
4862
|
}
|
4861
4863
|
const _e = "__sak";
|
@@ -4875,7 +4877,7 @@ const _e = "__sak";
|
|
4875
4877
|
* See the License for the specific language governing permissions and
|
4876
4878
|
* limitations under the License.
|
4877
4879
|
*/
|
4878
|
-
class
|
4880
|
+
class En {
|
4879
4881
|
constructor(e, t) {
|
4880
4882
|
this.storageRetriever = e, this.type = t;
|
4881
4883
|
}
|
@@ -4916,8 +4918,8 @@ class Tn {
|
|
4916
4918
|
* See the License for the specific language governing permissions and
|
4917
4919
|
* limitations under the License.
|
4918
4920
|
*/
|
4919
|
-
const ws = 1e3,
|
4920
|
-
class wn extends
|
4921
|
+
const ws = 1e3, Rs = 10;
|
4922
|
+
class wn extends En {
|
4921
4923
|
constructor() {
|
4922
4924
|
super(
|
4923
4925
|
() => window.localStorage,
|
@@ -4944,7 +4946,7 @@ class wn extends Tn {
|
|
4944
4946
|
const a = this.storage.getItem(r);
|
4945
4947
|
!t && this.localCache[r] === a || this.notifyListeners(r, a);
|
4946
4948
|
}, s = this.storage.getItem(r);
|
4947
|
-
ts() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i,
|
4949
|
+
ts() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i, Rs) : i();
|
4948
4950
|
}
|
4949
4951
|
notifyListeners(e, t) {
|
4950
4952
|
this.localCache[e] = t;
|
@@ -4996,7 +4998,7 @@ class wn extends Tn {
|
|
4996
4998
|
}
|
4997
4999
|
}
|
4998
5000
|
wn.type = "LOCAL";
|
4999
|
-
const
|
5001
|
+
const ks = wn;
|
5000
5002
|
/**
|
5001
5003
|
* @license
|
5002
5004
|
* Copyright 2020 Google LLC
|
@@ -5013,7 +5015,7 @@ const Rs = wn;
|
|
5013
5015
|
* See the License for the specific language governing permissions and
|
5014
5016
|
* limitations under the License.
|
5015
5017
|
*/
|
5016
|
-
class
|
5018
|
+
class Rn extends En {
|
5017
5019
|
constructor() {
|
5018
5020
|
super(
|
5019
5021
|
() => window.sessionStorage,
|
@@ -5026,8 +5028,8 @@ class kn extends Tn {
|
|
5026
5028
|
_removeListener(e, t) {
|
5027
5029
|
}
|
5028
5030
|
}
|
5029
|
-
|
5030
|
-
const
|
5031
|
+
Rn.type = "SESSION";
|
5032
|
+
const kn = Rn;
|
5031
5033
|
/**
|
5032
5034
|
* @license
|
5033
5035
|
* Copyright 2019 Google LLC
|
@@ -5044,7 +5046,7 @@ const Rn = kn;
|
|
5044
5046
|
* See the License for the specific language governing permissions and
|
5045
5047
|
* limitations under the License.
|
5046
5048
|
*/
|
5047
|
-
function
|
5049
|
+
function Ss(n) {
|
5048
5050
|
return Promise.all(n.map(async (e) => {
|
5049
5051
|
try {
|
5050
5052
|
return {
|
@@ -5114,7 +5116,7 @@ class be {
|
|
5114
5116
|
eventId: r,
|
5115
5117
|
eventType: i
|
5116
5118
|
});
|
5117
|
-
const c = Array.from(a).map(async (l) => l(t.origin, s)), o = await
|
5119
|
+
const c = Array.from(a).map(async (l) => l(t.origin, s)), o = await Ss(c);
|
5118
5120
|
t.ports[0].postMessage({
|
5119
5121
|
status: "done",
|
5120
5122
|
eventId: r,
|
@@ -5182,7 +5184,7 @@ function Qe(n = "", e = 10) {
|
|
5182
5184
|
* See the License for the specific language governing permissions and
|
5183
5185
|
* limitations under the License.
|
5184
5186
|
*/
|
5185
|
-
class
|
5187
|
+
class As {
|
5186
5188
|
constructor(e) {
|
5187
5189
|
this.target = e, this.handlers = /* @__PURE__ */ new Set();
|
5188
5190
|
}
|
@@ -5227,9 +5229,9 @@ class Ss {
|
|
5227
5229
|
a = {
|
5228
5230
|
messageChannel: i,
|
5229
5231
|
onMessage(h) {
|
5230
|
-
const
|
5231
|
-
if (
|
5232
|
-
switch (
|
5232
|
+
const m = h;
|
5233
|
+
if (m.data.eventId === l)
|
5234
|
+
switch (m.data.status) {
|
5233
5235
|
case "ack":
|
5234
5236
|
clearTimeout(d), s = setTimeout(
|
5235
5237
|
() => {
|
@@ -5243,7 +5245,7 @@ class Ss {
|
|
5243
5245
|
);
|
5244
5246
|
break;
|
5245
5247
|
case "done":
|
5246
|
-
clearTimeout(s), c(
|
5248
|
+
clearTimeout(s), c(m.data.response);
|
5247
5249
|
break;
|
5248
5250
|
default:
|
5249
5251
|
clearTimeout(d), clearTimeout(s), o(new Error(
|
@@ -5301,10 +5303,10 @@ function Os(n) {
|
|
5301
5303
|
* See the License for the specific language governing permissions and
|
5302
5304
|
* limitations under the License.
|
5303
5305
|
*/
|
5304
|
-
function
|
5306
|
+
function Sn() {
|
5305
5307
|
return typeof g().WorkerGlobalScope < "u" && typeof g().importScripts == "function";
|
5306
5308
|
}
|
5307
|
-
async function
|
5309
|
+
async function Ns() {
|
5308
5310
|
if (!(navigator != null && navigator.serviceWorker))
|
5309
5311
|
return null;
|
5310
5312
|
try {
|
@@ -5313,12 +5315,12 @@ async function Cs() {
|
|
5313
5315
|
return null;
|
5314
5316
|
}
|
5315
5317
|
}
|
5316
|
-
function
|
5318
|
+
function Cs() {
|
5317
5319
|
var n;
|
5318
5320
|
return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
|
5319
5321
|
}
|
5320
|
-
function
|
5321
|
-
return
|
5322
|
+
function Ds() {
|
5323
|
+
return Sn() ? self : null;
|
5322
5324
|
}
|
5323
5325
|
/**
|
5324
5326
|
* @license
|
@@ -5336,7 +5338,7 @@ function Ns() {
|
|
5336
5338
|
* See the License for the specific language governing permissions and
|
5337
5339
|
* limitations under the License.
|
5338
5340
|
*/
|
5339
|
-
const
|
5341
|
+
const An = "firebaseLocalStorageDb", Ps = 1, ge = "firebaseLocalStorage", On = "fbase_key";
|
5340
5342
|
class re {
|
5341
5343
|
constructor(e) {
|
5342
5344
|
this.request = e;
|
@@ -5355,11 +5357,11 @@ function ye(n, e) {
|
|
5355
5357
|
return n.transaction([ge], e ? "readwrite" : "readonly").objectStore(ge);
|
5356
5358
|
}
|
5357
5359
|
function Ms() {
|
5358
|
-
const n = indexedDB.deleteDatabase(
|
5360
|
+
const n = indexedDB.deleteDatabase(An);
|
5359
5361
|
return new re(n).toPromise();
|
5360
5362
|
}
|
5361
|
-
function
|
5362
|
-
const n = indexedDB.open(
|
5363
|
+
function He() {
|
5364
|
+
const n = indexedDB.open(An, Ps);
|
5363
5365
|
return new Promise((e, t) => {
|
5364
5366
|
n.addEventListener("error", () => {
|
5365
5367
|
t(n.error);
|
@@ -5372,11 +5374,11 @@ function Ve() {
|
|
5372
5374
|
}
|
5373
5375
|
}), n.addEventListener("success", async () => {
|
5374
5376
|
const r = n.result;
|
5375
|
-
r.objectStoreNames.contains(ge) ? e(r) : (r.close(), await Ms(), e(await
|
5377
|
+
r.objectStoreNames.contains(ge) ? e(r) : (r.close(), await Ms(), e(await He()));
|
5376
5378
|
});
|
5377
5379
|
});
|
5378
5380
|
}
|
5379
|
-
async function
|
5381
|
+
async function kt(n, e, t) {
|
5380
5382
|
const r = ye(n, !0).put({
|
5381
5383
|
[On]: e,
|
5382
5384
|
value: t
|
@@ -5387,19 +5389,19 @@ async function Ls(n, e) {
|
|
5387
5389
|
const t = ye(n, !1).get(e), r = await new re(t).toPromise();
|
5388
5390
|
return r === void 0 ? null : r.value;
|
5389
5391
|
}
|
5390
|
-
function
|
5392
|
+
function St(n, e) {
|
5391
5393
|
const t = ye(n, !0).delete(e);
|
5392
5394
|
return new re(t).toPromise();
|
5393
5395
|
}
|
5394
5396
|
const Us = 800, Bs = 3;
|
5395
|
-
class
|
5397
|
+
class Nn {
|
5396
5398
|
constructor() {
|
5397
5399
|
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(() => {
|
5398
5400
|
}, () => {
|
5399
5401
|
});
|
5400
5402
|
}
|
5401
5403
|
async _openDb() {
|
5402
|
-
return this.db ? this.db : (this.db = await
|
5404
|
+
return this.db ? this.db : (this.db = await He(), this.db);
|
5403
5405
|
}
|
5404
5406
|
async _withRetries(e) {
|
5405
5407
|
let t = 0;
|
@@ -5418,13 +5420,13 @@ class Cn {
|
|
5418
5420
|
* postMessage interface to send these events to the worker ourselves.
|
5419
5421
|
*/
|
5420
5422
|
async initializeServiceWorkerMessaging() {
|
5421
|
-
return
|
5423
|
+
return Sn() ? this.initializeReceiver() : this.initializeSender();
|
5422
5424
|
}
|
5423
5425
|
/**
|
5424
5426
|
* As the worker we should listen to events from the main window.
|
5425
5427
|
*/
|
5426
5428
|
async initializeReceiver() {
|
5427
|
-
this.receiver = be._getInstance(
|
5429
|
+
this.receiver = be._getInstance(Ds()), this.receiver._subscribe("keyChanged", async (e, t) => ({
|
5428
5430
|
keyProcessed: (await this._poll()).includes(t.key)
|
5429
5431
|
})), this.receiver._subscribe("ping", async (e, t) => [
|
5430
5432
|
"keyChanged"
|
@@ -5440,9 +5442,9 @@ class Cn {
|
|
5440
5442
|
*/
|
5441
5443
|
async initializeSender() {
|
5442
5444
|
var e, t;
|
5443
|
-
if (this.activeServiceWorker = await
|
5445
|
+
if (this.activeServiceWorker = await Ns(), !this.activeServiceWorker)
|
5444
5446
|
return;
|
5445
|
-
this.sender = new
|
5447
|
+
this.sender = new As(this.activeServiceWorker);
|
5446
5448
|
const r = await this.sender._send(
|
5447
5449
|
"ping",
|
5448
5450
|
{},
|
@@ -5464,7 +5466,7 @@ class Cn {
|
|
5464
5466
|
* @param key - Storage key which changed.
|
5465
5467
|
*/
|
5466
5468
|
async notifyServiceWorker(e) {
|
5467
|
-
if (!(!this.sender || !this.activeServiceWorker ||
|
5469
|
+
if (!(!this.sender || !this.activeServiceWorker || Cs() !== this.activeServiceWorker))
|
5468
5470
|
try {
|
5469
5471
|
await this.sender._send(
|
5470
5472
|
"keyChanged",
|
@@ -5480,8 +5482,8 @@ class Cn {
|
|
5480
5482
|
try {
|
5481
5483
|
if (!indexedDB)
|
5482
5484
|
return !1;
|
5483
|
-
const e = await
|
5484
|
-
return await
|
5485
|
+
const e = await He();
|
5486
|
+
return await kt(e, _e, "1"), await St(e, _e), !0;
|
5485
5487
|
} catch {
|
5486
5488
|
}
|
5487
5489
|
return !1;
|
@@ -5495,14 +5497,14 @@ class Cn {
|
|
5495
5497
|
}
|
5496
5498
|
}
|
5497
5499
|
async _set(e, t) {
|
5498
|
-
return this._withPendingWrite(async () => (await this._withRetries((r) =>
|
5500
|
+
return this._withPendingWrite(async () => (await this._withRetries((r) => kt(r, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
|
5499
5501
|
}
|
5500
5502
|
async _get(e) {
|
5501
5503
|
const t = await this._withRetries((r) => Ls(r, e));
|
5502
5504
|
return this.localCache[e] = t, t;
|
5503
5505
|
}
|
5504
5506
|
async _remove(e) {
|
5505
|
-
return this._withPendingWrite(async () => (await this._withRetries((t) =>
|
5507
|
+
return this._withPendingWrite(async () => (await this._withRetries((t) => St(t, e)), delete this.localCache[e], this.notifyServiceWorker(e)));
|
5506
5508
|
}
|
5507
5509
|
async _poll() {
|
5508
5510
|
const e = await this._withRetries((i) => {
|
@@ -5541,8 +5543,8 @@ class Cn {
|
|
5541
5543
|
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();
|
5542
5544
|
}
|
5543
5545
|
}
|
5544
|
-
|
5545
|
-
const Fs =
|
5546
|
+
Nn.type = "LOCAL";
|
5547
|
+
const Fs = Nn;
|
5546
5548
|
new te(3e4, 6e4);
|
5547
5549
|
/**
|
5548
5550
|
* @license
|
@@ -5561,7 +5563,7 @@ new te(3e4, 6e4);
|
|
5561
5563
|
* limitations under the License.
|
5562
5564
|
*/
|
5563
5565
|
function xs(n, e) {
|
5564
|
-
return e ?
|
5566
|
+
return e ? T(e) : (u(
|
5565
5567
|
n._popupRedirectResolver,
|
5566
5568
|
n,
|
5567
5569
|
"argument-error"
|
@@ -5617,7 +5619,7 @@ class et extends bn {
|
|
5617
5619
|
function js(n) {
|
5618
5620
|
return Is(n.auth, new et(n), n.bypassAuthState);
|
5619
5621
|
}
|
5620
|
-
function
|
5622
|
+
function Vs(n) {
|
5621
5623
|
const { auth: e, user: t } = n;
|
5622
5624
|
return u(
|
5623
5625
|
t,
|
@@ -5626,7 +5628,7 @@ function Hs(n) {
|
|
5626
5628
|
/* AuthErrorCode.INTERNAL_ERROR */
|
5627
5629
|
), vs(t, new et(n), n.bypassAuthState);
|
5628
5630
|
}
|
5629
|
-
async function
|
5631
|
+
async function Hs(n) {
|
5630
5632
|
const { auth: e, user: t } = n;
|
5631
5633
|
return u(
|
5632
5634
|
t,
|
@@ -5651,7 +5653,7 @@ async function Vs(n) {
|
|
5651
5653
|
* See the License for the specific language governing permissions and
|
5652
5654
|
* limitations under the License.
|
5653
5655
|
*/
|
5654
|
-
class
|
5656
|
+
class Cn {
|
5655
5657
|
constructor(e, t, r, i, s = !1) {
|
5656
5658
|
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];
|
5657
5659
|
}
|
@@ -5696,10 +5698,10 @@ class Dn {
|
|
5696
5698
|
return js;
|
5697
5699
|
case "linkViaPopup":
|
5698
5700
|
case "linkViaRedirect":
|
5699
|
-
return
|
5701
|
+
return Hs;
|
5700
5702
|
case "reauthViaPopup":
|
5701
5703
|
case "reauthViaRedirect":
|
5702
|
-
return
|
5704
|
+
return Vs;
|
5703
5705
|
default:
|
5704
5706
|
w(
|
5705
5707
|
this.auth,
|
@@ -5709,10 +5711,10 @@ class Dn {
|
|
5709
5711
|
}
|
5710
5712
|
}
|
5711
5713
|
resolve(e) {
|
5712
|
-
|
5714
|
+
R(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
|
5713
5715
|
}
|
5714
5716
|
reject(e) {
|
5715
|
-
|
5717
|
+
R(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
|
5716
5718
|
}
|
5717
5719
|
unregisterAndCleanUp() {
|
5718
5720
|
this.eventManager && this.eventManager.unregisterConsumer(this), this.pendingPromise = null, this.cleanUp();
|
@@ -5735,7 +5737,7 @@ class Dn {
|
|
5735
5737
|
* limitations under the License.
|
5736
5738
|
*/
|
5737
5739
|
const Gs = new te(2e3, 1e4);
|
5738
|
-
class x extends
|
5740
|
+
class x extends Cn {
|
5739
5741
|
constructor(e, t, r, i, s) {
|
5740
5742
|
super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null, x.currentPopupAction && x.currentPopupAction.cancel(), x.currentPopupAction = this;
|
5741
5743
|
}
|
@@ -5749,7 +5751,7 @@ class x extends Dn {
|
|
5749
5751
|
), e;
|
5750
5752
|
}
|
5751
5753
|
async onExecution() {
|
5752
|
-
|
5754
|
+
R(this.filter.length === 1, "Popup operations only handle one event");
|
5753
5755
|
const e = Qe();
|
5754
5756
|
this.authWindow = await this.resolver._openPopup(
|
5755
5757
|
this.auth,
|
@@ -5821,7 +5823,7 @@ x.currentPopupAction = null;
|
|
5821
5823
|
* limitations under the License.
|
5822
5824
|
*/
|
5823
5825
|
const Ws = "pendingRedirect", oe = /* @__PURE__ */ new Map();
|
5824
|
-
class zs extends
|
5826
|
+
class zs extends Cn {
|
5825
5827
|
constructor(e, t, r = !1) {
|
5826
5828
|
super(e, [
|
5827
5829
|
"signInViaRedirect",
|
@@ -5839,7 +5841,7 @@ class zs extends Dn {
|
|
5839
5841
|
let e = oe.get(this.auth._key());
|
5840
5842
|
if (!e) {
|
5841
5843
|
try {
|
5842
|
-
const r = await
|
5844
|
+
const r = await Zs(this.resolver, this.auth) ? await super.execute() : null;
|
5843
5845
|
e = () => Promise.resolve(r);
|
5844
5846
|
} catch (t) {
|
5845
5847
|
e = () => Promise.reject(t);
|
@@ -5867,18 +5869,18 @@ class zs extends Dn {
|
|
5867
5869
|
cleanUp() {
|
5868
5870
|
}
|
5869
5871
|
}
|
5870
|
-
async function
|
5872
|
+
async function Zs(n, e) {
|
5871
5873
|
const t = Xs(e), r = Js(n);
|
5872
5874
|
if (!await r._isAvailable())
|
5873
5875
|
return !1;
|
5874
5876
|
const i = await r._get(t) === "true";
|
5875
5877
|
return await r._remove(t), i;
|
5876
5878
|
}
|
5877
|
-
function
|
5879
|
+
function $s(n, e) {
|
5878
5880
|
oe.set(n._key(), e);
|
5879
5881
|
}
|
5880
5882
|
function Js(n) {
|
5881
|
-
return
|
5883
|
+
return T(n._redirectPersistence);
|
5882
5884
|
}
|
5883
5885
|
function Xs(n) {
|
5884
5886
|
return ae(Ws, n.config.apiKey, n.name);
|
@@ -5926,7 +5928,7 @@ class qs {
|
|
5926
5928
|
}
|
5927
5929
|
sendToConsumer(e, t) {
|
5928
5930
|
var r;
|
5929
|
-
if (e.error && !
|
5931
|
+
if (e.error && !Dn(e)) {
|
5930
5932
|
const i = ((r = e.error.code) === null || r === void 0 ? void 0 : r.split("auth/")[1]) || "internal-error";
|
5931
5933
|
t.onError(_(this.auth, i));
|
5932
5934
|
} else
|
@@ -5937,16 +5939,16 @@ class qs {
|
|
5937
5939
|
return t.filter.includes(e.type) && r;
|
5938
5940
|
}
|
5939
5941
|
hasEventBeenHandled(e) {
|
5940
|
-
return Date.now() - this.lastProcessedEventTime >= Ks && this.cachedEventUids.clear(), this.cachedEventUids.has(
|
5942
|
+
return Date.now() - this.lastProcessedEventTime >= Ks && this.cachedEventUids.clear(), this.cachedEventUids.has(At(e));
|
5941
5943
|
}
|
5942
5944
|
saveEventToCache(e) {
|
5943
|
-
this.cachedEventUids.add(
|
5945
|
+
this.cachedEventUids.add(At(e)), this.lastProcessedEventTime = Date.now();
|
5944
5946
|
}
|
5945
5947
|
}
|
5946
|
-
function
|
5948
|
+
function At(n) {
|
5947
5949
|
return [n.type, n.eventId, n.sessionId, n.tenantId].filter((e) => e).join("-");
|
5948
5950
|
}
|
5949
|
-
function
|
5951
|
+
function Dn({ type: n, error: e }) {
|
5950
5952
|
return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
|
5951
5953
|
}
|
5952
5954
|
function Qs(n) {
|
@@ -5956,7 +5958,7 @@ function Qs(n) {
|
|
5956
5958
|
case "reauthViaRedirect":
|
5957
5959
|
return !0;
|
5958
5960
|
case "unknown":
|
5959
|
-
return
|
5961
|
+
return Dn(n);
|
5960
5962
|
default:
|
5961
5963
|
return !1;
|
5962
5964
|
}
|
@@ -5978,7 +5980,7 @@ function Qs(n) {
|
|
5978
5980
|
* limitations under the License.
|
5979
5981
|
*/
|
5980
5982
|
async function ea(n, e = {}) {
|
5981
|
-
return
|
5983
|
+
return Z(n, "GET", "/v1/projects", e);
|
5982
5984
|
}
|
5983
5985
|
/**
|
5984
5986
|
* @license
|
@@ -6140,7 +6142,7 @@ function pa(n) {
|
|
6140
6142
|
const s = n._getFrameworks();
|
6141
6143
|
return s.length && (r.fw = s.join(",")), `${t}?${Q(r).slice(1)}`;
|
6142
6144
|
}
|
6143
|
-
async function
|
6145
|
+
async function ma(n) {
|
6144
6146
|
const e = await oa(n), t = g().gapi;
|
6145
6147
|
return u(
|
6146
6148
|
t,
|
@@ -6189,13 +6191,13 @@ async function fa(n) {
|
|
6189
6191
|
* See the License for the specific language governing permissions and
|
6190
6192
|
* limitations under the License.
|
6191
6193
|
*/
|
6192
|
-
const
|
6194
|
+
const fa = {
|
6193
6195
|
location: "yes",
|
6194
6196
|
resizable: "yes",
|
6195
6197
|
statusbar: "yes",
|
6196
6198
|
toolbar: "no"
|
6197
6199
|
}, _a = 500, ga = 600, va = "_blank", Ia = "http://localhost";
|
6198
|
-
class
|
6200
|
+
class Nt {
|
6199
6201
|
constructor(e) {
|
6200
6202
|
this.window = e, this.associatedEvent = null;
|
6201
6203
|
}
|
@@ -6210,16 +6212,16 @@ class Ct {
|
|
6210
6212
|
function ba(n, e, t, r = _a, i = ga) {
|
6211
6213
|
const s = Math.max((window.screen.availHeight - i) / 2, 0).toString(), a = Math.max((window.screen.availWidth - r) / 2, 0).toString();
|
6212
6214
|
let c = "";
|
6213
|
-
const o = Object.assign(Object.assign({},
|
6215
|
+
const o = Object.assign(Object.assign({}, fa), {
|
6214
6216
|
width: r.toString(),
|
6215
6217
|
height: i.toString(),
|
6216
6218
|
top: s,
|
6217
6219
|
left: a
|
6218
|
-
}), l =
|
6220
|
+
}), l = f().toLowerCase();
|
6219
6221
|
t && (c = hn(l) ? va : t), dn(l) && (e = e || Ia, o.scrollbars = "yes");
|
6220
|
-
const d = Object.entries(o).reduce((
|
6222
|
+
const d = Object.entries(o).reduce((m, [v, F]) => `${m}${v}=${F},`, "");
|
6221
6223
|
if (es(l) && c !== "_self")
|
6222
|
-
return ya(e || "", c), new
|
6224
|
+
return ya(e || "", c), new Nt(null);
|
6223
6225
|
const h = window.open(e || "", c, d);
|
6224
6226
|
u(
|
6225
6227
|
h,
|
@@ -6231,7 +6233,7 @@ function ba(n, e, t, r = _a, i = ga) {
|
|
6231
6233
|
h.focus();
|
6232
6234
|
} catch {
|
6233
6235
|
}
|
6234
|
-
return new
|
6236
|
+
return new Nt(h);
|
6235
6237
|
}
|
6236
6238
|
function ya(n, e) {
|
6237
6239
|
const t = document.createElement("a");
|
@@ -6255,8 +6257,8 @@ function ya(n, e) {
|
|
6255
6257
|
* See the License for the specific language governing permissions and
|
6256
6258
|
* limitations under the License.
|
6257
6259
|
*/
|
6258
|
-
const
|
6259
|
-
async function
|
6260
|
+
const Ta = "__/auth/handler", Ea = "emulator/auth/handler", wa = encodeURIComponent("fac");
|
6261
|
+
async function Ct(n, e, t, r, i, s) {
|
6260
6262
|
u(
|
6261
6263
|
n.config.authDomain,
|
6262
6264
|
n,
|
@@ -6290,10 +6292,10 @@ async function Dt(n, e, t, r, i, s) {
|
|
6290
6292
|
for (const d of Object.keys(c))
|
6291
6293
|
c[d] === void 0 && delete c[d];
|
6292
6294
|
const o = await n._getAppCheckToken(), l = o ? `#${wa}=${encodeURIComponent(o)}` : "";
|
6293
|
-
return `${
|
6295
|
+
return `${Ra(n)}?${Q(c).slice(1)}${l}`;
|
6294
6296
|
}
|
6295
|
-
function
|
6296
|
-
return n.emulator ? Xe(n,
|
6297
|
+
function Ra({ config: n }) {
|
6298
|
+
return n.emulator ? Xe(n, Ea) : `https://${n.authDomain}/${Ta}`;
|
6297
6299
|
}
|
6298
6300
|
/**
|
6299
6301
|
* @license
|
@@ -6311,22 +6313,22 @@ function ka({ config: n }) {
|
|
6311
6313
|
* See the License for the specific language governing permissions and
|
6312
6314
|
* limitations under the License.
|
6313
6315
|
*/
|
6314
|
-
const
|
6315
|
-
class
|
6316
|
+
const De = "webStorageSupport";
|
6317
|
+
class ka {
|
6316
6318
|
constructor() {
|
6317
|
-
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence =
|
6319
|
+
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = kn, this._completeRedirectFn = Ys, this._overrideRedirectResult = $s;
|
6318
6320
|
}
|
6319
6321
|
// Wrapping in async even though we don't await anywhere in order
|
6320
6322
|
// to make sure errors are raised as promise rejections
|
6321
6323
|
async _openPopup(e, t, r, i) {
|
6322
6324
|
var s;
|
6323
|
-
|
6324
|
-
const a = await
|
6325
|
+
R((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
6326
|
+
const a = await Ct(e, t, r, je(), i);
|
6325
6327
|
return ba(e, a, Qe());
|
6326
6328
|
}
|
6327
6329
|
async _openRedirect(e, t, r, i) {
|
6328
6330
|
await this._originValidation(e);
|
6329
|
-
const s = await
|
6331
|
+
const s = await Ct(e, t, r, je(), i);
|
6330
6332
|
return Os(s), new Promise(() => {
|
6331
6333
|
});
|
6332
6334
|
}
|
@@ -6334,7 +6336,7 @@ class Ra {
|
|
6334
6336
|
const t = e._key();
|
6335
6337
|
if (this.eventManagers[t]) {
|
6336
6338
|
const { manager: i, promise: s } = this.eventManagers[t];
|
6337
|
-
return i ? Promise.resolve(i) : (
|
6339
|
+
return i ? Promise.resolve(i) : (R(s, "If manager is not set, promise should be"), s);
|
6338
6340
|
}
|
6339
6341
|
const r = this.initAndGetManager(e);
|
6340
6342
|
return this.eventManagers[t] = { promise: r }, r.catch(() => {
|
@@ -6342,7 +6344,7 @@ class Ra {
|
|
6342
6344
|
}), r;
|
6343
6345
|
}
|
6344
6346
|
async initAndGetManager(e) {
|
6345
|
-
const t = await
|
6347
|
+
const t = await ma(e), r = new qs(e);
|
6346
6348
|
return t.register("authEvent", (i) => (u(
|
6347
6349
|
i == null ? void 0 : i.authEvent,
|
6348
6350
|
e,
|
@@ -6354,9 +6356,9 @@ class Ra {
|
|
6354
6356
|
}), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = t, r;
|
6355
6357
|
}
|
6356
6358
|
_isIframeWebStorageSupported(e, t) {
|
6357
|
-
this.iframes[e._key()].send(
|
6359
|
+
this.iframes[e._key()].send(De, { type: De }, (i) => {
|
6358
6360
|
var s;
|
6359
|
-
const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[
|
6361
|
+
const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[De];
|
6360
6362
|
a !== void 0 && t(!!a), w(
|
6361
6363
|
e,
|
6362
6364
|
"internal-error"
|
@@ -6372,8 +6374,8 @@ class Ra {
|
|
6372
6374
|
return gn() || un() || Ke();
|
6373
6375
|
}
|
6374
6376
|
}
|
6375
|
-
const
|
6376
|
-
var
|
6377
|
+
const Sa = ka;
|
6378
|
+
var Dt = "@firebase/auth", Pt = "1.7.9";
|
6377
6379
|
/**
|
6378
6380
|
* @license
|
6379
6381
|
* Copyright 2020 Google LLC
|
@@ -6390,7 +6392,7 @@ var Nt = "@firebase/auth", Pt = "1.7.9";
|
|
6390
6392
|
* See the License for the specific language governing permissions and
|
6391
6393
|
* limitations under the License.
|
6392
6394
|
*/
|
6393
|
-
class
|
6395
|
+
class Aa {
|
6394
6396
|
constructor(e) {
|
6395
6397
|
this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
|
6396
6398
|
}
|
@@ -6457,7 +6459,7 @@ function Oa(n) {
|
|
6457
6459
|
return;
|
6458
6460
|
}
|
6459
6461
|
}
|
6460
|
-
function
|
6462
|
+
function Na(n) {
|
6461
6463
|
X(new W(
|
6462
6464
|
"auth",
|
6463
6465
|
(e, { options: t }) => {
|
@@ -6491,14 +6493,14 @@ function Ca(n) {
|
|
6491
6493
|
"auth"
|
6492
6494
|
/* _ComponentName.AUTH */
|
6493
6495
|
).getImmediate());
|
6494
|
-
return ((r) => new
|
6496
|
+
return ((r) => new Aa(r))(t);
|
6495
6497
|
},
|
6496
6498
|
"PRIVATE"
|
6497
6499
|
/* ComponentType.PRIVATE */
|
6498
6500
|
).setInstantiationMode(
|
6499
6501
|
"EXPLICIT"
|
6500
6502
|
/* InstantiationMode.EXPLICIT */
|
6501
|
-
)), j(
|
6503
|
+
)), j(Dt, Pt, Oa(n)), j(Dt, Pt, "esm2017");
|
6502
6504
|
}
|
6503
6505
|
/**
|
6504
6506
|
* @license
|
@@ -6516,11 +6518,11 @@ function Ca(n) {
|
|
6516
6518
|
* See the License for the specific language governing permissions and
|
6517
6519
|
* limitations under the License.
|
6518
6520
|
*/
|
6519
|
-
const
|
6521
|
+
const Ca = 5 * 60, Da = zt("authIdTokenMaxAge") || Ca;
|
6520
6522
|
let Mt = null;
|
6521
6523
|
const Pa = (n) => async (e) => {
|
6522
6524
|
const t = e && await e.getIdTokenResult(), r = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
|
6523
|
-
if (r && r >
|
6525
|
+
if (r && r > Da)
|
6524
6526
|
return;
|
6525
6527
|
const i = t == null ? void 0 : t.token;
|
6526
6528
|
Mt !== i && (Mt = i, await fetch(n, {
|
@@ -6530,23 +6532,23 @@ const Pa = (n) => async (e) => {
|
|
6530
6532
|
} : {}
|
6531
6533
|
}));
|
6532
6534
|
};
|
6533
|
-
function Ma(n =
|
6535
|
+
function Ma(n = ki()) {
|
6534
6536
|
const e = Xt(n, "auth");
|
6535
6537
|
if (e.isInitialized())
|
6536
6538
|
return e.getImmediate();
|
6537
6539
|
const t = us(n, {
|
6538
|
-
popupRedirectResolver:
|
6540
|
+
popupRedirectResolver: Sa,
|
6539
6541
|
persistence: [
|
6540
6542
|
Fs,
|
6541
|
-
|
6542
|
-
|
6543
|
+
ks,
|
6544
|
+
kn
|
6543
6545
|
]
|
6544
6546
|
}), r = zt("authTokenSyncURL");
|
6545
6547
|
if (r && typeof isSecureContext == "boolean" && isSecureContext) {
|
6546
6548
|
const s = new URL(r, location.origin);
|
6547
6549
|
if (location.origin === s.origin) {
|
6548
6550
|
const a = Pa(s.toString());
|
6549
|
-
|
6551
|
+
Es(t, a, () => a(t.currentUser)), Ts(t, (c) => a(c));
|
6550
6552
|
}
|
6551
6553
|
}
|
6552
6554
|
const i = Gt("auth");
|
@@ -6573,7 +6575,7 @@ os({
|
|
6573
6575
|
recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
|
6574
6576
|
recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
|
6575
6577
|
});
|
6576
|
-
|
6578
|
+
Na(
|
6577
6579
|
"Browser"
|
6578
6580
|
/* ClientPlatform.BROWSER */
|
6579
6581
|
);
|
@@ -6591,18 +6593,18 @@ Ua.beforeEach(async (n) => {
|
|
6591
6593
|
changeRestaurant: s
|
6592
6594
|
} = Ge();
|
6593
6595
|
return n.name.startsWith("mf-payment-admin") ? e.value ? !0 : (Pe || (Pe = new Promise((a) => {
|
6594
|
-
const c =
|
6596
|
+
const c = $(e, (o) => {
|
6595
6597
|
var l;
|
6596
6598
|
o && (c(), a(((l = e.value) == null ? void 0 : l.isInternal) ?? !1));
|
6597
6599
|
});
|
6598
6600
|
})), Pe) : !r.value || !t.value ? (Me || (Me = Promise.all([
|
6599
6601
|
new Promise(async (a) => {
|
6600
|
-
const c =
|
6602
|
+
const c = $(r, (o) => {
|
6601
6603
|
o && (c(), a(!0));
|
6602
6604
|
});
|
6603
6605
|
}),
|
6604
6606
|
new Promise(async (a) => {
|
6605
|
-
const c =
|
6607
|
+
const c = $(t, (l) => {
|
6606
6608
|
l && (c(), a(!0));
|
6607
6609
|
}), o = await i();
|
6608
6610
|
await s(o == null ? void 0 : o.at(0));
|
@@ -6613,13 +6615,13 @@ const Ba = /* @__PURE__ */ Ut({
|
|
6613
6615
|
__name: "AppSidebar",
|
6614
6616
|
setup(n) {
|
6615
6617
|
const e = Ge(), t = Bn(), { t: r } = Wn(), i = xn(t.currentRoute.value.name);
|
6616
|
-
|
6618
|
+
$(t.currentRoute, () => {
|
6617
6619
|
let l = t.currentRoute.value.name;
|
6618
6620
|
t.currentRoute.value.meta.parent && (l = t.currentRoute.value.meta.parent), i.value = l;
|
6619
6621
|
});
|
6620
6622
|
const s = We.map((l) => {
|
6621
|
-
var
|
6622
|
-
if (!((
|
6623
|
+
var m;
|
6624
|
+
if (!((m = l.meta) != null && m.sidebarDisplay))
|
6623
6625
|
return;
|
6624
6626
|
const d = l.meta.sidebarDisplay, h = {
|
6625
6627
|
label: d.startsWith("i18n:") ? r(d.replaceAll("i18n:", "")) : d,
|
@@ -6629,7 +6631,7 @@ const Ba = /* @__PURE__ */ Ut({
|
|
6629
6631
|
return t.push({ name: l.name });
|
6630
6632
|
}
|
6631
6633
|
};
|
6632
|
-
return l.meta.sidebarNew && (h.badge = () => jn(
|
6634
|
+
return l.meta.sidebarNew && (h.badge = () => jn(Zn.FmPill, { label: "New" })), h;
|
6633
6635
|
}).filter((l) => !!l), a = le.map((l) => {
|
6634
6636
|
var d;
|
6635
6637
|
if ((d = l.meta) != null && d.sidebarDisplay && !l.meta.section)
|
@@ -6688,7 +6690,7 @@ const Ba = /* @__PURE__ */ Ut({
|
|
6688
6690
|
const h = Bt("FmCollapsibleTabs");
|
6689
6691
|
return Ft(), xt(h, {
|
6690
6692
|
modelValue: i.value,
|
6691
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
6693
|
+
"onUpdate:modelValue": d[0] || (d[0] = (m) => i.value = m),
|
6692
6694
|
items: o.value,
|
6693
6695
|
class: "py-16 px-8 w-[240px]"
|
6694
6696
|
}, null, 8, ["modelValue", "items"]);
|
@@ -6696,7 +6698,7 @@ const Ba = /* @__PURE__ */ Ut({
|
|
6696
6698
|
}
|
6697
6699
|
});
|
6698
6700
|
var Fa = { authClientId: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", 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" }, assetBucketUrl: "feedme-dev-4c3ef.appspot.com" };
|
6699
|
-
const
|
6701
|
+
const Za = /* @__PURE__ */ Ut({
|
6700
6702
|
__name: "App",
|
6701
6703
|
setup(n) {
|
6702
6704
|
const { state: e } = sr(), t = Ge(), r = Fn(), i = Yt(Fa.firebase);
|
@@ -6706,9 +6708,9 @@ const $a = /* @__PURE__ */ Ut({
|
|
6706
6708
|
const c = await a.getCustomToken(), o = Ma(i);
|
6707
6709
|
await ys(o, c);
|
6708
6710
|
}
|
6709
|
-
return s(),
|
6711
|
+
return s(), $(t.sessionUser, s), Vn(() => {
|
6710
6712
|
e.isIframe && parent.postMessage({ event: "ready" }, "*");
|
6711
|
-
}),
|
6713
|
+
}), Hn(() => {
|
6712
6714
|
t.registerSidebarComponent(Ba);
|
6713
6715
|
}), (a, c) => {
|
6714
6716
|
const o = Bt("RouterView");
|
@@ -6717,7 +6719,7 @@ const $a = /* @__PURE__ */ Ut({
|
|
6717
6719
|
});
|
6718
6720
|
};
|
6719
6721
|
}
|
6720
|
-
}),
|
6722
|
+
}), $a = {
|
6721
6723
|
"en-US": qn,
|
6722
6724
|
"zh-CN": ir
|
6723
6725
|
}, Ja = [...le, ...We];
|
@@ -6728,12 +6730,12 @@ export {
|
|
6728
6730
|
X as _,
|
6729
6731
|
Xt as a,
|
6730
6732
|
Wa as b,
|
6731
|
-
|
6733
|
+
ki as c,
|
6732
6734
|
za as d,
|
6733
6735
|
gt as e,
|
6734
6736
|
Ja as f,
|
6735
6737
|
z as g,
|
6736
|
-
|
6737
|
-
|
6738
|
+
Za as h,
|
6739
|
+
$a as i,
|
6738
6740
|
j as r
|
6739
6741
|
};
|