@feedmepos/mf-payment 1.0.21 → 1.0.22-beta.1
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-DzKdUKmV.js → PayoutAccount-BZTTGOFh.js} +5 -5
- package/dist/{PayoutAccount-B7AcwN_T.js → PayoutAccount-CwoA24JH.js} +3 -3
- package/dist/{PayoutAccountSetting-DVBkuuMB.js → PayoutAccountSetting-BcIMtCpl.js} +3 -3
- package/dist/{Restaurant-BuHPUb7P.js → Restaurant-WfXXzIXe.js} +4 -4
- package/dist/{RestaurantSetting-ClBO9LKr.js → RestaurantSetting-Iah2FIHD.js} +3 -3
- package/dist/{Settlement-XwoM8eCO.js → Settlement-ClaEFau0.js} +3 -3
- package/dist/{Settlement-BfSJM3o3.js → Settlement-DFeSSyuD.js} +3 -3
- package/dist/{SettlementTransactions-DpQtRcmQ.js → SettlementTransactions-DYRHBU2q.js} +4 -4
- package/dist/{SettlementTransactions-CwLpblhI.js → SettlementTransactions-Q4uxGzAT.js} +4 -4
- package/dist/{Terminal-mczOgrkz.js → Terminal-Oyz0DVbc.js} +6 -6
- package/dist/{TerminalSetting-FL4R7Lkl.js → TerminalSetting-CyQGeoVa.js} +3 -3
- package/dist/{TerminalTransaction-DMNY5QyF.js → TerminalTransaction-BgkewAyb.js} +6 -6
- package/dist/{TerminalTransaction-D_ChD-lm.js → TerminalTransaction-DsoDyf1F.js} +5 -5
- package/dist/{Transaction-C1tCJh4r.js → Transaction-CwPOQmeR.js} +5 -5
- package/dist/{Transaction-CPQ1ZsFF.js → Transaction-CxRzwGsQ.js} +6 -6
- package/dist/{TransactionOld-CePdRLVZ.js → TransactionOld-Dc7iDAmX.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-BWRLuHWY.js → TransactionTable.vue_vue_type_script_setup_true_lang-DHo7h5ec.js} +2 -2
- package/dist/{app-bYIrBuz3.js → app-lsoYwMfI.js} +520 -520
- package/dist/app.js +1 -1
- package/dist/{assets-KG4uvxcA.js → assets-yNkhkckI.js} +42 -41
- package/dist/{grafana-CcOutogZ.js → grafana-C0lDaEM8.js} +2 -2
- package/dist/helpers/assets.d.ts +2 -2
- package/dist/{index-DEYCH-KV.js → index-7JP5KfeF.js} +1 -1
- package/dist/{index-cFAbS1jG.js → index-BCjfVXDw.js} +1 -1
- package/dist/{index-DwmgchX0.js → index-C7GLLU3e.js} +1 -1
- package/dist/{index-CmYWX9Ae.js → index-CA4AIOD-.js} +1 -1
- package/dist/{index-BLwCN1kn.js → index-DLjHw3ck.js} +1 -1
- package/dist/{index-B_Fm_ZV3.js → index-Dr0QpQBZ.js} +1 -1
- package/dist/{index-DVGIipJI.js → index-DwGEqo54.js} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-ae7c7Wai.js → index.vue_vue_type_script_setup_true_lang-Dv0yGqcV.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-Bp_DuccW.js → payout-account-QkwQ_tRQ.js} +2 -2
- package/dist/{transaction-CA4NDsPk.js → transaction-EGAGBJLc.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -1,16 +1,16 @@
|
|
1
1
|
import { createRouter as Ln, createWebHistory as Un, useRouter as Bn } from "vue-router";
|
2
|
-
import { computed as Lt, watch as
|
3
|
-
import { useCoreStore as
|
4
|
-
import { defineStore as
|
5
|
-
import { components as
|
6
|
-
const
|
2
|
+
import { computed as Lt, watch as $, defineComponent as Ut, ref as Fn, resolveComponent as Bt, openBlock as Ft, createBlock as Ht, h as Hn, onMounted as xn, onBeforeMount as Vn } from "vue";
|
3
|
+
import { useCoreStore as je } from "@feedmepos/mf-common";
|
4
|
+
import { defineStore as jn } from "pinia";
|
5
|
+
import { components as Gn } from "@feedmepos/ui-library";
|
6
|
+
const Ge = [
|
7
7
|
{
|
8
8
|
path: "/admin/restaurants",
|
9
9
|
name: "mf-payment-admin.restaurant",
|
10
10
|
meta: {
|
11
11
|
sidebarDisplay: "Restaurants"
|
12
12
|
},
|
13
|
-
component: () => import("./Restaurant-
|
13
|
+
component: () => import("./Restaurant-WfXXzIXe.js")
|
14
14
|
},
|
15
15
|
{
|
16
16
|
path: "/admin/restaurants/:restaurantId",
|
@@ -19,7 +19,7 @@ const Ve = [
|
|
19
19
|
meta: {
|
20
20
|
parent: "mf-payment-admin.restaurant"
|
21
21
|
},
|
22
|
-
component: () => import("./RestaurantSetting-
|
22
|
+
component: () => import("./RestaurantSetting-Iah2FIHD.js")
|
23
23
|
},
|
24
24
|
{
|
25
25
|
path: "/admin/payout-accounts",
|
@@ -27,7 +27,7 @@ const Ve = [
|
|
27
27
|
meta: {
|
28
28
|
sidebarDisplay: "Payout Accounts"
|
29
29
|
},
|
30
|
-
component: () => import("./PayoutAccount-
|
30
|
+
component: () => import("./PayoutAccount-BZTTGOFh.js")
|
31
31
|
},
|
32
32
|
{
|
33
33
|
path: "/admin/payout-accounts/:accountId",
|
@@ -36,7 +36,7 @@ const Ve = [
|
|
36
36
|
meta: {
|
37
37
|
parent: "mf-payment-admin.payout-account"
|
38
38
|
},
|
39
|
-
component: () => import("./PayoutAccountSetting-
|
39
|
+
component: () => import("./PayoutAccountSetting-BcIMtCpl.js")
|
40
40
|
},
|
41
41
|
{
|
42
42
|
path: "/admin/terminal",
|
@@ -44,7 +44,7 @@ const Ve = [
|
|
44
44
|
meta: {
|
45
45
|
sidebarDisplay: "Terminals"
|
46
46
|
},
|
47
|
-
component: () => import("./Terminal-
|
47
|
+
component: () => import("./Terminal-Oyz0DVbc.js")
|
48
48
|
},
|
49
49
|
{
|
50
50
|
path: "/admin/terminal/:terminalId",
|
@@ -53,7 +53,7 @@ const Ve = [
|
|
53
53
|
meta: {
|
54
54
|
parent: "mf-payment-admin.terminal"
|
55
55
|
},
|
56
|
-
component: () => import("./TerminalSetting-
|
56
|
+
component: () => import("./TerminalSetting-CyQGeoVa.js")
|
57
57
|
},
|
58
58
|
{
|
59
59
|
path: "/admin/terminal-transaction",
|
@@ -61,7 +61,7 @@ const Ve = [
|
|
61
61
|
meta: {
|
62
62
|
sidebarDisplay: "Terminal Transactions"
|
63
63
|
},
|
64
|
-
component: () => import("./TerminalTransaction-
|
64
|
+
component: () => import("./TerminalTransaction-BgkewAyb.js")
|
65
65
|
},
|
66
66
|
{
|
67
67
|
path: "/admin/transaction",
|
@@ -69,7 +69,7 @@ const Ve = [
|
|
69
69
|
meta: {
|
70
70
|
sidebarDisplay: "Online Transactions"
|
71
71
|
},
|
72
|
-
component: () => import("./Transaction-
|
72
|
+
component: () => import("./Transaction-CxRzwGsQ.js")
|
73
73
|
},
|
74
74
|
{
|
75
75
|
path: "/admin/settlement",
|
@@ -77,7 +77,7 @@ const Ve = [
|
|
77
77
|
meta: {
|
78
78
|
sidebarDisplay: "Settlements"
|
79
79
|
},
|
80
|
-
component: () => import("./Settlement-
|
80
|
+
component: () => import("./Settlement-DFeSSyuD.js")
|
81
81
|
},
|
82
82
|
{
|
83
83
|
path: "/admin/settlement/:settlementId",
|
@@ -86,9 +86,9 @@ const Ve = [
|
|
86
86
|
meta: {
|
87
87
|
parent: "mf-payment-admin.settlement"
|
88
88
|
},
|
89
|
-
component: () => import("./SettlementTransactions-
|
89
|
+
component: () => import("./SettlementTransactions-DYRHBU2q.js")
|
90
90
|
}
|
91
|
-
],
|
91
|
+
], We = [
|
92
92
|
{
|
93
93
|
path: "",
|
94
94
|
redirect: { name: "mf-payment-payout-account" }
|
@@ -96,7 +96,7 @@ const Ve = [
|
|
96
96
|
{
|
97
97
|
path: "/payout-account",
|
98
98
|
name: "mf-payment-payout-account",
|
99
|
-
component: () => import("./PayoutAccount-
|
99
|
+
component: () => import("./PayoutAccount-CwoA24JH.js"),
|
100
100
|
meta: {
|
101
101
|
sidebarDisplay: "Payout Accounts"
|
102
102
|
}
|
@@ -104,7 +104,7 @@ const Ve = [
|
|
104
104
|
{
|
105
105
|
path: "/transaction-old",
|
106
106
|
name: "mf-payment-old-transaction",
|
107
|
-
component: () => import("./TransactionOld-
|
107
|
+
component: () => import("./TransactionOld-Dc7iDAmX.js"),
|
108
108
|
meta: {
|
109
109
|
sidebarDisplay: "Transactions"
|
110
110
|
}
|
@@ -116,12 +116,12 @@ const Ve = [
|
|
116
116
|
sidebarDisplay: "Terminal Transactions",
|
117
117
|
sidebarNew: !0
|
118
118
|
},
|
119
|
-
component: () => import("./TerminalTransaction-
|
119
|
+
component: () => import("./TerminalTransaction-DsoDyf1F.js")
|
120
120
|
},
|
121
121
|
{
|
122
122
|
path: "/transaction",
|
123
123
|
name: "mf-payment-transaction",
|
124
|
-
component: () => import("./Transaction-
|
124
|
+
component: () => import("./Transaction-CwPOQmeR.js"),
|
125
125
|
meta: {
|
126
126
|
sidebarDisplay: "Online Transactions",
|
127
127
|
sidebarNew: !0
|
@@ -130,7 +130,7 @@ const Ve = [
|
|
130
130
|
{
|
131
131
|
path: "/settlement",
|
132
132
|
name: "mf-payment-settlement",
|
133
|
-
component: () => import("./Settlement-
|
133
|
+
component: () => import("./Settlement-ClaEFau0.js"),
|
134
134
|
meta: {
|
135
135
|
sidebarDisplay: "Settlements"
|
136
136
|
}
|
@@ -139,12 +139,12 @@ const Ve = [
|
|
139
139
|
path: "/settlement/:settlementId",
|
140
140
|
name: "mf-payment-settlement-transaction",
|
141
141
|
props: !0,
|
142
|
-
component: () => import("./SettlementTransactions-
|
142
|
+
component: () => import("./SettlementTransactions-Q4uxGzAT.js"),
|
143
143
|
meta: {
|
144
144
|
parent: "mf-payment-settlement"
|
145
145
|
}
|
146
146
|
}
|
147
|
-
],
|
147
|
+
], Wn = jn("mf-payment-iframe", () => {
|
148
148
|
const n = {
|
149
149
|
isIframe: !1
|
150
150
|
}, e = Lt(() => n);
|
@@ -156,7 +156,7 @@ const Ve = [
|
|
156
156
|
init: t
|
157
157
|
};
|
158
158
|
});
|
159
|
-
var at = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_8cfaf721-8cb2-45ae-9630-ce1e05e21c25", 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.13.1 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_8cfaf721-8cb2-45ae-9630-ce1e05e21c25", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/22.13.1/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_ePf6KER3k2KiptiYN85DB2QEJBOhSm3UQnie", 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.12.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", 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.8.21", 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: "709", 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: "20250209.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.6/x64", JOURNAL_STREAM: "8:6666", GITHUB_WORKFLOW: "payment-mf-portal-prod", _: "/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: "13301637882", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "d8d5b5cfd76eb02712b483803576fe160fb12bb4", 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-prod.yaml@refs/heads/main", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ikh5cTROQVRBanNucUM3bWRydEFoaHJDUjJfUSJ9.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6MzcyMDVlMDUtNmM1NC00OTFiLWI5MjItM2NjNzAxY2Y0MDY4OmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMTg3IERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46MzcyMDVlMDUtNmM1NC00OTFiLWI5MjItM2NjNzAxY2Y0MDY4OmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMTg3IiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiNTA2MDhlYmMtYzU1Zi00YjUxLWE4NTYtYWIxYjNhMzdhZmZjIiwic2lkIjoiNThmN2M0ZDYtYTE5MC00ZWRiLThjNWYtYzMxMjFmYzY5NDJlIiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjN9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwic2hhXCI6XCJkOGQ1YjVjZmQ3NmViMDI3MTJiNDgzODAzNTc2ZmUxNjBmYjEyYmI0XCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJydW5faWRcIjpcIjEzMzAxNjM3ODgyXCIsXCJydW5fbnVtYmVyXCI6XCIyOFwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLXByb2RcIixcImhlYWRfcmVmXCI6XCJcIixcImJhc2VfcmVmXCI6XCJcIixcImV2ZW50X25hbWVcIjpcInB1c2hcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcGF5bWVudC1tZi1wb3J0YWwtcHJvZC55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwid29ya2Zsb3dfc2hhXCI6XCJkOGQ1YjVjZmQ3NmViMDI3MTJiNDgzODAzNTc2ZmUxNjBmYjEyYmI0XCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLXByb2QueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcImQ4ZDViNWNmZDc2ZWIwMjcxMmI0ODM4MDM1NzZmZTE2MGZiMTJiYjRcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL21haW4iLCJvcmNoaWQiOiIzNzIwNWUwNS02YzU0LTQ5MWItYjkyMi0zY2M3MDFjZjQwNjguZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3Mzk0MjY3ODAsImV4cCI6MTczOTQ0OTU4MH0.iLGE3eHNXDXszyNftEpt7zA8sjlkqj0lMQslVSwXwG9T5ajXKxXqsBLpBHSCDo0LvtiiHKyllfF_YeW8v0CE_tmZjubwMbb6Wd86xaA2UhVhKf027i-cpTenCJ3nCKFzFSLs1bN0wZ9l3sjF_j3MB8yBXx9MRdilOApcoaLG6lZpup3hPzrrCMXsTBKCOgxTmREJVSfVwW7Nr7u-I8USJdKGhNNfNgWrW7Pu0yJ3s3OC_XfqnFSL_J3Gi7HI3pCimMR3Cf5OuFIS5EabyoW2ubgtQ26T3TxC3aJOU5c7rKlW-gKiTUcnKHw8SZrsZ3xvEQL8vH8gtXAmOhYOfeEbtQ", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1739427429136-0.19729808395145088:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.13.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.13.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.13.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1739427428976-0.9315147036604599:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.13.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.13.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.13.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1739427428819-0.46413813235053003:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.13.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.13.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.13.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.13.1/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.13.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_c28fa5df-1810-4bf2-a635-e187d50bde57", INVOCATION_ID: "175e1b303b20417abf3ccca5fd0d31de", 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: "28", 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 308", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/payment-service", STATS_D_D: "false", npm_lifecycle_script: "vite build --mode fmmf:prod", 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:prod", 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.0.21", GITHUB_REF_PROTECTED: "false", npm_config_argv: '{"remain":[],"cooked":["run","deploy:prod"],"original":["deploy:prod"]}', npm_package_devDependencies__types_dinero_js: "^1.9.0", npm_package_dependencies_uuid: "^9.0.0", npm_package_dependencies_buffer: "^6.0.3", 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: "d8d5b5cfd76eb02712b483803576fe160fb12bb4", 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/main", 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_8cfaf721-8cb2-45ae-9630-ce1e05e21c25", 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/37205e05-6c54-491b-b922-3cc701cf4068/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_8cfaf721-8cb2-45ae-9630-ce1e05e21c25", 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_rasterizehtml: "^1.3.1", npm_package_dependencies_i18next_http_backend: "^1.4.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_8cfaf721-8cb2-45ae-9630-ce1e05e21c25", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_dependencies__feedmepos_payment_entity: "^0.0.15", NODE_ENV: "production", ENVIRONMENT: "production", FIREBASE_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", FIREBASE_AUTH_DOMAIN: "feedme-253402.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-253402.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-253402", FIREBASE_STORAGE_BUCKET: "image.feedme.cc", FIREBASE_MESSAGING_SENDER_ID: "128512026847", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", FIREBASE_MEASUREMENT_ID: "G-LTKS7N2HQS", ASSET_STORAGE_BUCKET: "static.feedme.cc", GOOGLE_MAP_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", AUTH_CLIENT_ID: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476" };
|
159
|
+
var ot = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_012ddd1a-d6fd-483b-8141-0adee908a6ad", 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.13.1 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_012ddd1a-d6fd-483b-8141-0adee908a6ad", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/22.13.1/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_1NECEhQVGVFcztazhXDeY6Xtcjg2Hl4dUqpt", 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.12.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", 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.8.21", 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: "719", 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: "20250209.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.6/x64", JOURNAL_STREAM: "8:7187", 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: "13302912395", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "d91641e0e7d0962c6f8be3752acfc298295616a1", 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.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6N2U1ZmYxNjAtOGFhNS00ZTZmLWE1MDUtM2JhZTIyYTVjNGQ2OmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMTg5IERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46N2U1ZmYxNjAtOGFhNS00ZTZmLWE1MDUtM2JhZTIyYTVjNGQ2OmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMTg5IiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiMWNiNDczYzAtODU0OC00NzY2LTkxNmItNzE1N2IwZGU1OWViIiwic2lkIjoiMzM4NTkzNzgtM2JmMi00NjA3LThiMGQtOGU0YjhlOTcxOTJiIiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJzaGFcIjpcImQ5MTY0MWUwZTdkMDk2MmM2ZjhiZTM3NTJhY2ZjMjk4Mjk1NjE2YTFcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2VcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJ1bl9pZFwiOlwiMTMzMDI5MTIzOTVcIixcInJ1bl9udW1iZXJcIjpcIjEzM1wiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLWRldlwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiZXZlbnRfbmFtZVwiOlwicHVzaFwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wYXltZW50LW1mLXBvcnRhbC1kZXYueWFtbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCJkOTE2NDFlMGU3ZDA5NjJjNmY4YmUzNzUyYWNmYzI5ODI5NTYxNmExXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLWRldi55YW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCJkOTE2NDFlMGU3ZDA5NjJjNmY4YmUzNzUyYWNmYzI5ODI5NTYxNmExXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoaWQiOiI3ZTVmZjE2MC04YWE1LTRlNmYtYTUwNS0zYmFlMjJhNWM0ZDYuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3Mzk0MzI2MDMsImV4cCI6MTczOTQ1NTQwM30.glSKWOuaW_38Ykbv9apbwNZtz5Y2OZaBeKZXeRncOWhrppfEsPNBHMHqljzPZsNKXQIdHJK0teZjqGXBKChDNWfOK1FPCHRhK55X-9bHFS0EcUqaMQDJDAQfy5wUVJjPq1zmulm4gtZ5mbyX5KVCgVRhlQMHTNC-Uw8X0dJ-qmQKXngzDBDhU_dg7IgaQNHzflk1Plj9mB0CYP1s6CScldAxzMFnWArNUVpjrf9XCjvrEINBqxH4CutEw0k3KleVORc87irb9FpT4SOWbUzo9tak_C_Dn10ZU6wy2YtItINJ5RLknhK7K5BLOelEhZq9w6100-FSRTPxZW7DiHZXyQ", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1739433256807-0.6019581677550596:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.13.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.13.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.13.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1739433256651-0.8465565124146479:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.13.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.13.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.13.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1739433256498-0.19685096187617712:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.13.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.13.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.13.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.13.1/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.13.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_5d30d400-1ebb-46fc-be09-a39da7782a96", INVOCATION_ID: "aefbc08a1e0e4276bb37e10c151510e0", 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: "133", 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 301", 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.0.22-beta.1", 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_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: "d91641e0e7d0962c6f8be3752acfc298295616a1", 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_012ddd1a-d6fd-483b-8141-0adee908a6ad", 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/7e5ff160-8aa5-4e6f-a505-3bae22a5c4d6/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_012ddd1a-d6fd-483b-8141-0adee908a6ad", 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_rasterizehtml: "^1.3.1", npm_package_dependencies_i18next_http_backend: "^1.4.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_012ddd1a-d6fd-483b-8141-0adee908a6ad", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_dependencies__feedmepos_payment_entity: "^0.0.15", 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" };
|
160
160
|
/**
|
161
161
|
* @license
|
162
162
|
* Copyright 2017 Google LLC
|
@@ -173,7 +173,7 @@ var at = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_sta
|
|
173
173
|
* See the License for the specific language governing permissions and
|
174
174
|
* limitations under the License.
|
175
175
|
*/
|
176
|
-
const
|
176
|
+
const xt = function(n) {
|
177
177
|
const e = [];
|
178
178
|
let t = 0;
|
179
179
|
for (let r = 0; r < n.length; r++) {
|
@@ -192,15 +192,15 @@ const Ht = function(n) {
|
|
192
192
|
const s = n[t++];
|
193
193
|
e[r++] = String.fromCharCode((i & 31) << 6 | s & 63);
|
194
194
|
} else if (i > 239 && i < 365) {
|
195
|
-
const s = n[t++],
|
195
|
+
const s = n[t++], a = n[t++], o = n[t++], c = ((i & 7) << 18 | (s & 63) << 12 | (a & 63) << 6 | o & 63) - 65536;
|
196
196
|
e[r++] = String.fromCharCode(55296 + (c >> 10)), e[r++] = String.fromCharCode(56320 + (c & 1023));
|
197
197
|
} else {
|
198
|
-
const s = n[t++],
|
199
|
-
e[r++] = String.fromCharCode((i & 15) << 12 | (s & 63) << 6 |
|
198
|
+
const s = n[t++], a = n[t++];
|
199
|
+
e[r++] = String.fromCharCode((i & 15) << 12 | (s & 63) << 6 | a & 63);
|
200
200
|
}
|
201
201
|
}
|
202
202
|
return e.join("");
|
203
|
-
},
|
203
|
+
}, Vt = {
|
204
204
|
/**
|
205
205
|
* Maps bytes to characters.
|
206
206
|
*/
|
@@ -259,9 +259,9 @@ const Ht = function(n) {
|
|
259
259
|
this.init_();
|
260
260
|
const t = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
|
261
261
|
for (let i = 0; i < n.length; i += 3) {
|
262
|
-
const s = n[i],
|
263
|
-
let m = (
|
264
|
-
c || (v = 64,
|
262
|
+
const s = n[i], a = i + 1 < n.length, o = a ? n[i + 1] : 0, c = i + 2 < n.length, l = c ? n[i + 2] : 0, u = s >> 2, p = (s & 3) << 4 | o >> 4;
|
263
|
+
let m = (o & 15) << 2 | l >> 6, v = l & 63;
|
264
|
+
c || (v = 64, a || (m = 64)), r.push(t[u], t[p], t[m], t[v]);
|
265
265
|
}
|
266
266
|
return r.join("");
|
267
267
|
},
|
@@ -274,7 +274,7 @@ const Ht = function(n) {
|
|
274
274
|
* @return The base64 encoded string.
|
275
275
|
*/
|
276
276
|
encodeString(n, e) {
|
277
|
-
return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(
|
277
|
+
return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(xt(n), e);
|
278
278
|
},
|
279
279
|
/**
|
280
280
|
* Base64-decode a string.
|
@@ -306,19 +306,19 @@ const Ht = function(n) {
|
|
306
306
|
this.init_();
|
307
307
|
const t = e ? this.charToByteMapWebSafe_ : this.charToByteMap_, r = [];
|
308
308
|
for (let i = 0; i < n.length; ) {
|
309
|
-
const s = t[n.charAt(i++)],
|
309
|
+
const s = t[n.charAt(i++)], o = i < n.length ? t[n.charAt(i)] : 0;
|
310
310
|
++i;
|
311
311
|
const l = i < n.length ? t[n.charAt(i)] : 64;
|
312
312
|
++i;
|
313
313
|
const p = i < n.length ? t[n.charAt(i)] : 64;
|
314
|
-
if (++i, s == null ||
|
315
|
-
throw new
|
316
|
-
const m = s << 2 |
|
314
|
+
if (++i, s == null || o == null || l == null || p == null)
|
315
|
+
throw new Zn();
|
316
|
+
const m = s << 2 | o >> 4;
|
317
317
|
if (r.push(m), l !== 64) {
|
318
|
-
const v =
|
318
|
+
const v = o << 4 & 240 | l >> 2;
|
319
319
|
if (r.push(v), p !== 64) {
|
320
|
-
const
|
321
|
-
r.push(
|
320
|
+
const F = l << 6 & 192 | p;
|
321
|
+
r.push(F);
|
322
322
|
}
|
323
323
|
}
|
324
324
|
}
|
@@ -337,19 +337,19 @@ const Ht = function(n) {
|
|
337
337
|
}
|
338
338
|
}
|
339
339
|
};
|
340
|
-
class
|
340
|
+
class Zn extends Error {
|
341
341
|
constructor() {
|
342
342
|
super(...arguments), this.name = "DecodeBase64StringError";
|
343
343
|
}
|
344
344
|
}
|
345
|
-
const
|
346
|
-
const e =
|
347
|
-
return
|
345
|
+
const $n = function(n) {
|
346
|
+
const e = xt(n);
|
347
|
+
return Vt.encodeByteArray(e, !0);
|
348
348
|
}, le = function(n) {
|
349
|
-
return
|
350
|
-
},
|
349
|
+
return $n(n).replace(/\./g, "");
|
350
|
+
}, jt = function(n) {
|
351
351
|
try {
|
352
|
-
return
|
352
|
+
return Vt.decodeString(n, !0);
|
353
353
|
} catch (e) {
|
354
354
|
console.error("base64Decode failed: ", e);
|
355
355
|
}
|
@@ -371,7 +371,7 @@ const Jn = function(n) {
|
|
371
371
|
* See the License for the specific language governing permissions and
|
372
372
|
* limitations under the License.
|
373
373
|
*/
|
374
|
-
function
|
374
|
+
function Jn() {
|
375
375
|
if (typeof self < "u")
|
376
376
|
return self;
|
377
377
|
if (typeof window < "u")
|
@@ -396,10 +396,10 @@ function Zn() {
|
|
396
396
|
* See the License for the specific language governing permissions and
|
397
397
|
* limitations under the License.
|
398
398
|
*/
|
399
|
-
const Xn = () =>
|
400
|
-
if (typeof process > "u" || typeof
|
399
|
+
const Xn = () => Jn().__FIREBASE_DEFAULTS__, Yn = () => {
|
400
|
+
if (typeof process > "u" || typeof ot > "u")
|
401
401
|
return;
|
402
|
-
const n =
|
402
|
+
const n = ot.__FIREBASE_DEFAULTS__;
|
403
403
|
if (n)
|
404
404
|
return JSON.parse(n);
|
405
405
|
}, Kn = () => {
|
@@ -411,7 +411,7 @@ const Xn = () => Zn().__FIREBASE_DEFAULTS__, Yn = () => {
|
|
411
411
|
} catch {
|
412
412
|
return;
|
413
413
|
}
|
414
|
-
const e = n &&
|
414
|
+
const e = n && jt(n[1]);
|
415
415
|
return e && JSON.parse(e);
|
416
416
|
}, ze = () => {
|
417
417
|
try {
|
@@ -420,11 +420,11 @@ const Xn = () => Zn().__FIREBASE_DEFAULTS__, Yn = () => {
|
|
420
420
|
console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);
|
421
421
|
return;
|
422
422
|
}
|
423
|
-
},
|
423
|
+
}, Gt = (n) => {
|
424
424
|
var e, t;
|
425
425
|
return (t = (e = ze()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || t === void 0 ? void 0 : t[n];
|
426
|
-
},
|
427
|
-
const e =
|
426
|
+
}, Oa = (n) => {
|
427
|
+
const e = Gt(n);
|
428
428
|
if (!e)
|
429
429
|
return;
|
430
430
|
const t = e.lastIndexOf(":");
|
@@ -432,7 +432,7 @@ const Xn = () => Zn().__FIREBASE_DEFAULTS__, Yn = () => {
|
|
432
432
|
throw new Error(`Invalid host ${e} with no separate hostname and port!`);
|
433
433
|
const r = parseInt(e.substring(t + 1), 10);
|
434
434
|
return e[0] === "[" ? [e.substring(1, t - 1), r] : [e.substring(0, t), r];
|
435
|
-
},
|
435
|
+
}, Wt = () => {
|
436
436
|
var n;
|
437
437
|
return (n = ze()) === null || n === void 0 ? void 0 : n.config;
|
438
438
|
}, zt = (n) => {
|
@@ -491,7 +491,7 @@ class qn {
|
|
491
491
|
* See the License for the specific language governing permissions and
|
492
492
|
* limitations under the License.
|
493
493
|
*/
|
494
|
-
function
|
494
|
+
function Ca(n, e) {
|
495
495
|
if (n.uid)
|
496
496
|
throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');
|
497
497
|
const t = {
|
@@ -500,7 +500,7 @@ function No(n, e) {
|
|
500
500
|
}, r = e || "demo-project", i = n.iat || 0, s = n.sub || n.user_id;
|
501
501
|
if (!s)
|
502
502
|
throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");
|
503
|
-
const
|
503
|
+
const a = Object.assign({
|
504
504
|
// Set all required fields to decent defaults
|
505
505
|
iss: `https://securetoken.google.com/${r}`,
|
506
506
|
aud: r,
|
@@ -516,7 +516,7 @@ function No(n, e) {
|
|
516
516
|
}, n);
|
517
517
|
return [
|
518
518
|
le(JSON.stringify(t)),
|
519
|
-
le(JSON.stringify(
|
519
|
+
le(JSON.stringify(a)),
|
520
520
|
""
|
521
521
|
].join(".");
|
522
522
|
}
|
@@ -599,10 +599,10 @@ function sr() {
|
|
599
599
|
* See the License for the specific language governing permissions and
|
600
600
|
* limitations under the License.
|
601
601
|
*/
|
602
|
-
const
|
602
|
+
const ar = "FirebaseError";
|
603
603
|
class M extends Error {
|
604
604
|
constructor(e, t, r) {
|
605
|
-
super(t), this.code = e, this.customData = r, this.name =
|
605
|
+
super(t), this.code = e, this.customData = r, this.name = ar, Object.setPrototypeOf(this, M.prototype), Error.captureStackTrace && Error.captureStackTrace(this, q.prototype.create);
|
606
606
|
}
|
607
607
|
}
|
608
608
|
class q {
|
@@ -610,11 +610,11 @@ class q {
|
|
610
610
|
this.service = e, this.serviceName = t, this.errors = r;
|
611
611
|
}
|
612
612
|
create(e, ...t) {
|
613
|
-
const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e],
|
614
|
-
return new M(i,
|
613
|
+
const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ? or(s, r) : "Error", o = `${this.serviceName}: ${a} (${i}).`;
|
614
|
+
return new M(i, o, r);
|
615
615
|
}
|
616
616
|
}
|
617
|
-
function
|
617
|
+
function or(n, e) {
|
618
618
|
return n.replace(cr, (t, r) => {
|
619
619
|
const i = e[r];
|
620
620
|
return i != null ? String(i) : `<${r}?>`;
|
@@ -634,11 +634,11 @@ function de(n, e) {
|
|
634
634
|
for (const i of t) {
|
635
635
|
if (!r.includes(i))
|
636
636
|
return !1;
|
637
|
-
const s = n[i],
|
638
|
-
if (ct(s) && ct(
|
639
|
-
if (!de(s,
|
637
|
+
const s = n[i], a = e[i];
|
638
|
+
if (ct(s) && ct(a)) {
|
639
|
+
if (!de(s, a))
|
640
640
|
return !1;
|
641
|
-
} else if (s !==
|
641
|
+
} else if (s !== a)
|
642
642
|
return !1;
|
643
643
|
}
|
644
644
|
for (const i of r)
|
@@ -790,7 +790,7 @@ function Re() {
|
|
790
790
|
function z(n) {
|
791
791
|
return n && n._delegate ? n._delegate : n;
|
792
792
|
}
|
793
|
-
class
|
793
|
+
class W {
|
794
794
|
/**
|
795
795
|
*
|
796
796
|
* @param name The public service name, e.g. app, auth, firestore, database
|
@@ -945,9 +945,9 @@ class pr {
|
|
945
945
|
instanceIdentifier: r,
|
946
946
|
options: t
|
947
947
|
});
|
948
|
-
for (const [s,
|
949
|
-
const
|
950
|
-
r ===
|
948
|
+
for (const [s, a] of this.instancesDeferred.entries()) {
|
949
|
+
const o = this.normalizeInstanceIdentifier(s);
|
950
|
+
r === o && a.resolve(i);
|
951
951
|
}
|
952
952
|
return i;
|
953
953
|
}
|
@@ -963,8 +963,8 @@ class pr {
|
|
963
963
|
var r;
|
964
964
|
const i = this.normalizeInstanceIdentifier(t), s = (r = this.onInitCallbacks.get(i)) !== null && r !== void 0 ? r : /* @__PURE__ */ new Set();
|
965
965
|
s.add(e), this.onInitCallbacks.set(i, s);
|
966
|
-
const
|
967
|
-
return
|
966
|
+
const a = this.instances.get(i);
|
967
|
+
return a && e(a, i), () => {
|
968
968
|
s.delete(e);
|
969
969
|
};
|
970
970
|
}
|
@@ -1103,7 +1103,7 @@ const gr = {
|
|
1103
1103
|
else
|
1104
1104
|
throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`);
|
1105
1105
|
};
|
1106
|
-
class
|
1106
|
+
class Zt {
|
1107
1107
|
/**
|
1108
1108
|
* Gives you an instance of a Logger to capture messages according to
|
1109
1109
|
* Firebase's logging scheme.
|
@@ -1176,35 +1176,35 @@ function Tr() {
|
|
1176
1176
|
IDBCursor.prototype.continuePrimaryKey
|
1177
1177
|
]);
|
1178
1178
|
}
|
1179
|
-
const
|
1179
|
+
const $t = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap();
|
1180
1180
|
function wr(n) {
|
1181
1181
|
const e = new Promise((t, r) => {
|
1182
1182
|
const i = () => {
|
1183
|
-
n.removeEventListener("success", s), n.removeEventListener("error",
|
1183
|
+
n.removeEventListener("success", s), n.removeEventListener("error", a);
|
1184
1184
|
}, s = () => {
|
1185
1185
|
t(N(n.result)), i();
|
1186
|
-
},
|
1186
|
+
}, a = () => {
|
1187
1187
|
r(n.error), i();
|
1188
1188
|
};
|
1189
|
-
n.addEventListener("success", s), n.addEventListener("error",
|
1189
|
+
n.addEventListener("success", s), n.addEventListener("error", a);
|
1190
1190
|
});
|
1191
1191
|
return e.then((t) => {
|
1192
|
-
t instanceof IDBCursor &&
|
1192
|
+
t instanceof IDBCursor && $t.set(t, n);
|
1193
1193
|
}).catch(() => {
|
1194
|
-
}),
|
1194
|
+
}), Ze.set(e, n), e;
|
1195
1195
|
}
|
1196
1196
|
function Rr(n) {
|
1197
1197
|
if (Me.has(n))
|
1198
1198
|
return;
|
1199
1199
|
const e = new Promise((t, r) => {
|
1200
1200
|
const i = () => {
|
1201
|
-
n.removeEventListener("complete", s), n.removeEventListener("error",
|
1201
|
+
n.removeEventListener("complete", s), n.removeEventListener("error", a), n.removeEventListener("abort", a);
|
1202
1202
|
}, s = () => {
|
1203
1203
|
t(), i();
|
1204
|
-
},
|
1204
|
+
}, a = () => {
|
1205
1205
|
r(n.error || new DOMException("AbortError", "AbortError")), i();
|
1206
1206
|
};
|
1207
|
-
n.addEventListener("complete", s), n.addEventListener("error",
|
1207
|
+
n.addEventListener("complete", s), n.addEventListener("error", a), n.addEventListener("abort", a);
|
1208
1208
|
});
|
1209
1209
|
Me.set(n, e);
|
1210
1210
|
}
|
@@ -1214,7 +1214,7 @@ let Le = {
|
|
1214
1214
|
if (e === "done")
|
1215
1215
|
return Me.get(n);
|
1216
1216
|
if (e === "objectStoreNames")
|
1217
|
-
return n.objectStoreNames ||
|
1217
|
+
return n.objectStoreNames || Jt.get(n);
|
1218
1218
|
if (e === "store")
|
1219
1219
|
return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]);
|
1220
1220
|
}
|
@@ -1227,68 +1227,68 @@ let Le = {
|
|
1227
1227
|
return n instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in n;
|
1228
1228
|
}
|
1229
1229
|
};
|
1230
|
-
function
|
1230
|
+
function kr(n) {
|
1231
1231
|
Le = n(Le);
|
1232
1232
|
}
|
1233
|
-
function
|
1233
|
+
function Sr(n) {
|
1234
1234
|
return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
|
1235
|
-
const r = n.call(
|
1236
|
-
return
|
1235
|
+
const r = n.call(Se(this), e, ...t);
|
1236
|
+
return Jt.set(r, e.sort ? e.sort() : [e]), N(r);
|
1237
1237
|
} : Tr().includes(n) ? function(...e) {
|
1238
|
-
return n.apply(
|
1238
|
+
return n.apply(Se(this), e), N($t.get(this));
|
1239
1239
|
} : function(...e) {
|
1240
|
-
return N(n.apply(
|
1240
|
+
return N(n.apply(Se(this), e));
|
1241
1241
|
};
|
1242
1242
|
}
|
1243
|
-
function
|
1244
|
-
return typeof n == "function" ?
|
1243
|
+
function Ar(n) {
|
1244
|
+
return typeof n == "function" ? Sr(n) : (n instanceof IDBTransaction && Rr(n), yr(n, Er()) ? new Proxy(n, Le) : n);
|
1245
1245
|
}
|
1246
1246
|
function N(n) {
|
1247
1247
|
if (n instanceof IDBRequest)
|
1248
1248
|
return wr(n);
|
1249
|
-
if (
|
1250
|
-
return
|
1251
|
-
const e =
|
1252
|
-
return e !== n && (
|
1249
|
+
if (ke.has(n))
|
1250
|
+
return ke.get(n);
|
1251
|
+
const e = Ar(n);
|
1252
|
+
return e !== n && (ke.set(n, e), Ze.set(e, n)), e;
|
1253
1253
|
}
|
1254
|
-
const
|
1254
|
+
const Se = (n) => Ze.get(n);
|
1255
1255
|
function Or(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
1256
|
-
const
|
1257
|
-
return r &&
|
1258
|
-
r(N(
|
1259
|
-
}), t &&
|
1256
|
+
const a = indexedDB.open(n, e), o = N(a);
|
1257
|
+
return r && a.addEventListener("upgradeneeded", (c) => {
|
1258
|
+
r(N(a.result), c.oldVersion, c.newVersion, N(a.transaction), c);
|
1259
|
+
}), t && a.addEventListener("blocked", (c) => t(
|
1260
1260
|
// Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
|
1261
1261
|
c.oldVersion,
|
1262
1262
|
c.newVersion,
|
1263
1263
|
c
|
1264
|
-
)),
|
1264
|
+
)), o.then((c) => {
|
1265
1265
|
s && c.addEventListener("close", () => s()), i && c.addEventListener("versionchange", (l) => i(l.oldVersion, l.newVersion, l));
|
1266
1266
|
}).catch(() => {
|
1267
|
-
}),
|
1267
|
+
}), o;
|
1268
1268
|
}
|
1269
|
-
const Cr = ["get", "getKey", "getAll", "getAllKeys", "count"], Nr = ["put", "add", "delete", "clear"],
|
1269
|
+
const Cr = ["get", "getKey", "getAll", "getAllKeys", "count"], Nr = ["put", "add", "delete", "clear"], Ae = /* @__PURE__ */ new Map();
|
1270
1270
|
function ut(n, e) {
|
1271
1271
|
if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
|
1272
1272
|
return;
|
1273
|
-
if (
|
1274
|
-
return
|
1273
|
+
if (Ae.get(e))
|
1274
|
+
return Ae.get(e);
|
1275
1275
|
const t = e.replace(/FromIndex$/, ""), r = e !== t, i = Nr.includes(t);
|
1276
1276
|
if (
|
1277
1277
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
1278
1278
|
!(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || Cr.includes(t))
|
1279
1279
|
)
|
1280
1280
|
return;
|
1281
|
-
const s = async function(
|
1282
|
-
const c = this.transaction(
|
1281
|
+
const s = async function(a, ...o) {
|
1282
|
+
const c = this.transaction(a, i ? "readwrite" : "readonly");
|
1283
1283
|
let l = c.store;
|
1284
|
-
return r && (l = l.index(
|
1285
|
-
l[t](...
|
1284
|
+
return r && (l = l.index(o.shift())), (await Promise.all([
|
1285
|
+
l[t](...o),
|
1286
1286
|
i && c.done
|
1287
1287
|
]))[0];
|
1288
1288
|
};
|
1289
|
-
return
|
1289
|
+
return Ae.set(e, s), s;
|
1290
1290
|
}
|
1291
|
-
|
1291
|
+
kr((n) => ({
|
1292
1292
|
...n,
|
1293
1293
|
get: (e, t, r) => ut(e, t) || n.get(e, t, r),
|
1294
1294
|
has: (e, t) => !!ut(e, t) || n.has(e, t)
|
@@ -1346,7 +1346,7 @@ const Ue = "@firebase/app", ht = "0.10.13";
|
|
1346
1346
|
* See the License for the specific language governing permissions and
|
1347
1347
|
* limitations under the License.
|
1348
1348
|
*/
|
1349
|
-
const T = new
|
1349
|
+
const T = new Zt("@firebase/app"), Mr = "@firebase/app-compat", Lr = "@firebase/analytics-compat", Ur = "@firebase/analytics", Br = "@firebase/app-check-compat", Fr = "@firebase/app-check", Hr = "@firebase/auth", xr = "@firebase/auth-compat", Vr = "@firebase/database", jr = "@firebase/data-connect", Gr = "@firebase/database-compat", Wr = "@firebase/functions", zr = "@firebase/functions-compat", Zr = "@firebase/installations", $r = "@firebase/installations-compat", Jr = "@firebase/messaging", Xr = "@firebase/messaging-compat", Yr = "@firebase/performance", Kr = "@firebase/performance-compat", qr = "@firebase/remote-config", Qr = "@firebase/remote-config-compat", ei = "@firebase/storage", ti = "@firebase/storage-compat", ni = "@firebase/firestore", ri = "@firebase/vertexai-preview", ii = "@firebase/firestore-compat", si = "firebase", ai = "10.14.1";
|
1350
1350
|
/**
|
1351
1351
|
* @license
|
1352
1352
|
* Copyright 2019 Google LLC
|
@@ -1363,23 +1363,23 @@ const T = new $t("@firebase/app"), Mr = "@firebase/app-compat", Lr = "@firebase/
|
|
1363
1363
|
* See the License for the specific language governing permissions and
|
1364
1364
|
* limitations under the License.
|
1365
1365
|
*/
|
1366
|
-
const Be = "[DEFAULT]",
|
1366
|
+
const Be = "[DEFAULT]", oi = {
|
1367
1367
|
[Ue]: "fire-core",
|
1368
1368
|
[Mr]: "fire-core-compat",
|
1369
1369
|
[Ur]: "fire-analytics",
|
1370
1370
|
[Lr]: "fire-analytics-compat",
|
1371
|
-
[
|
1371
|
+
[Fr]: "fire-app-check",
|
1372
1372
|
[Br]: "fire-app-check-compat",
|
1373
|
-
[
|
1374
|
-
[
|
1375
|
-
[
|
1376
|
-
[
|
1377
|
-
[
|
1378
|
-
[
|
1373
|
+
[Hr]: "fire-auth",
|
1374
|
+
[xr]: "fire-auth-compat",
|
1375
|
+
[Vr]: "fire-rtdb",
|
1376
|
+
[jr]: "fire-data-connect",
|
1377
|
+
[Gr]: "fire-rtdb-compat",
|
1378
|
+
[Wr]: "fire-fn",
|
1379
1379
|
[zr]: "fire-fn-compat",
|
1380
|
-
[
|
1381
|
-
[
|
1382
|
-
[
|
1380
|
+
[Zr]: "fire-iid",
|
1381
|
+
[$r]: "fire-iid-compat",
|
1382
|
+
[Jr]: "fire-fcm",
|
1383
1383
|
[Xr]: "fire-fcm-compat",
|
1384
1384
|
[Yr]: "fire-perf",
|
1385
1385
|
[Kr]: "fire-perf-compat",
|
@@ -1409,7 +1409,7 @@ const Be = "[DEFAULT]", ai = {
|
|
1409
1409
|
* See the License for the specific language governing permissions and
|
1410
1410
|
* limitations under the License.
|
1411
1411
|
*/
|
1412
|
-
const ue = /* @__PURE__ */ new Map(), ci = /* @__PURE__ */ new Map(),
|
1412
|
+
const ue = /* @__PURE__ */ new Map(), ci = /* @__PURE__ */ new Map(), Fe = /* @__PURE__ */ new Map();
|
1413
1413
|
function pt(n, e) {
|
1414
1414
|
try {
|
1415
1415
|
n.container.addComponent(e);
|
@@ -1419,9 +1419,9 @@ function pt(n, e) {
|
|
1419
1419
|
}
|
1420
1420
|
function X(n) {
|
1421
1421
|
const e = n.name;
|
1422
|
-
if (
|
1422
|
+
if (Fe.has(e))
|
1423
1423
|
return T.debug(`There were multiple attempts to register component ${e}.`), !1;
|
1424
|
-
|
1424
|
+
Fe.set(e, n);
|
1425
1425
|
for (const t of ue.values())
|
1426
1426
|
pt(t, n);
|
1427
1427
|
for (const t of ci.values())
|
@@ -1485,7 +1485,7 @@ const li = {
|
|
1485
1485
|
*/
|
1486
1486
|
class di {
|
1487
1487
|
constructor(e, t, r) {
|
1488
|
-
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
|
1488
|
+
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(
|
1489
1489
|
"app",
|
1490
1490
|
() => this,
|
1491
1491
|
"PUBLIC"
|
@@ -1541,7 +1541,7 @@ class di {
|
|
1541
1541
|
* See the License for the specific language governing permissions and
|
1542
1542
|
* limitations under the License.
|
1543
1543
|
*/
|
1544
|
-
const ee =
|
1544
|
+
const ee = ai;
|
1545
1545
|
function Yt(n, e = {}) {
|
1546
1546
|
let t = n;
|
1547
1547
|
typeof e != "object" && (e = { name: e });
|
@@ -1550,7 +1550,7 @@ function Yt(n, e = {}) {
|
|
1550
1550
|
throw D.create("bad-app-name", {
|
1551
1551
|
appName: String(i)
|
1552
1552
|
});
|
1553
|
-
if (t || (t =
|
1553
|
+
if (t || (t = Wt()), !t)
|
1554
1554
|
throw D.create(
|
1555
1555
|
"no-options"
|
1556
1556
|
/* AppError.NO_OPTIONS */
|
@@ -1561,33 +1561,33 @@ function Yt(n, e = {}) {
|
|
1561
1561
|
return s;
|
1562
1562
|
throw D.create("duplicate-app", { appName: i });
|
1563
1563
|
}
|
1564
|
-
const
|
1565
|
-
for (const c of
|
1566
|
-
|
1567
|
-
const
|
1568
|
-
return ue.set(i,
|
1564
|
+
const a = new _r(i);
|
1565
|
+
for (const c of Fe.values())
|
1566
|
+
a.addComponent(c);
|
1567
|
+
const o = new di(t, r, a);
|
1568
|
+
return ue.set(i, o), o;
|
1569
1569
|
}
|
1570
1570
|
function ui(n = Be) {
|
1571
1571
|
const e = ue.get(n);
|
1572
|
-
if (!e && n === Be &&
|
1572
|
+
if (!e && n === Be && Wt())
|
1573
1573
|
return Yt();
|
1574
1574
|
if (!e)
|
1575
1575
|
throw D.create("no-app", { appName: n });
|
1576
1576
|
return e;
|
1577
1577
|
}
|
1578
|
-
function
|
1578
|
+
function x(n, e, t) {
|
1579
1579
|
var r;
|
1580
|
-
let i = (r =
|
1580
|
+
let i = (r = oi[n]) !== null && r !== void 0 ? r : n;
|
1581
1581
|
t && (i += `-${t}`);
|
1582
|
-
const s = i.match(/\s|\//),
|
1583
|
-
if (s ||
|
1584
|
-
const
|
1582
|
+
const s = i.match(/\s|\//), a = e.match(/\s|\//);
|
1583
|
+
if (s || a) {
|
1584
|
+
const o = [
|
1585
1585
|
`Unable to register library "${i}" with version "${e}":`
|
1586
1586
|
];
|
1587
|
-
s &&
|
1587
|
+
s && o.push(`library name "${i}" contains illegal characters (whitespace or "/")`), s && a && o.push("and"), a && o.push(`version name "${e}" contains illegal characters (whitespace or "/")`), T.warn(o.join(" "));
|
1588
1588
|
return;
|
1589
1589
|
}
|
1590
|
-
X(new
|
1590
|
+
X(new W(
|
1591
1591
|
`${i}-version`,
|
1592
1592
|
() => ({ library: i, version: e }),
|
1593
1593
|
"VERSION"
|
@@ -1697,9 +1697,9 @@ class gi {
|
|
1697
1697
|
var e, t;
|
1698
1698
|
try {
|
1699
1699
|
const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s = mt();
|
1700
|
-
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((
|
1701
|
-
const
|
1702
|
-
return Date.now() -
|
1700
|
+
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) => {
|
1701
|
+
const o = new Date(a.date).valueOf();
|
1702
|
+
return Date.now() - o <= _i;
|
1703
1703
|
}), this._storage.overwrite(this._heartbeatsCache));
|
1704
1704
|
} catch (r) {
|
1705
1705
|
T.warn(r);
|
@@ -1731,7 +1731,7 @@ function vi(n, e = mi) {
|
|
1731
1731
|
const t = [];
|
1732
1732
|
let r = n.slice();
|
1733
1733
|
for (const i of n) {
|
1734
|
-
const s = t.find((
|
1734
|
+
const s = t.find((a) => a.agent === i.agent);
|
1735
1735
|
if (s) {
|
1736
1736
|
if (s.dates.push(i.date), _t(t) > e) {
|
1737
1737
|
s.dates.pop();
|
@@ -1819,17 +1819,17 @@ function _t(n) {
|
|
1819
1819
|
* limitations under the License.
|
1820
1820
|
*/
|
1821
1821
|
function bi(n) {
|
1822
|
-
X(new
|
1822
|
+
X(new W(
|
1823
1823
|
"platform-logger",
|
1824
1824
|
(e) => new Dr(e),
|
1825
1825
|
"PRIVATE"
|
1826
1826
|
/* ComponentType.PRIVATE */
|
1827
|
-
)), X(new
|
1827
|
+
)), X(new W(
|
1828
1828
|
"heartbeat",
|
1829
1829
|
(e) => new gi(e),
|
1830
1830
|
"PRIVATE"
|
1831
1831
|
/* ComponentType.PRIVATE */
|
1832
|
-
)),
|
1832
|
+
)), x(Ue, ht, n), x(Ue, ht, "esm2017"), x("fire-js", "");
|
1833
1833
|
}
|
1834
1834
|
bi("");
|
1835
1835
|
var yi = "firebase", Ei = "10.14.1";
|
@@ -1849,7 +1849,7 @@ var yi = "firebase", Ei = "10.14.1";
|
|
1849
1849
|
* See the License for the specific language governing permissions and
|
1850
1850
|
* limitations under the License.
|
1851
1851
|
*/
|
1852
|
-
|
1852
|
+
x(yi, Ei, "app");
|
1853
1853
|
var gt = function() {
|
1854
1854
|
return gt = Object.assign || function(e) {
|
1855
1855
|
for (var t, r = 1, i = arguments.length; r < i; r++) {
|
@@ -1859,7 +1859,7 @@ var gt = function() {
|
|
1859
1859
|
return e;
|
1860
1860
|
}, gt.apply(this, arguments);
|
1861
1861
|
};
|
1862
|
-
function
|
1862
|
+
function $e(n, e) {
|
1863
1863
|
var t = {};
|
1864
1864
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
|
1865
1865
|
if (n != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -1889,7 +1889,7 @@ const Ti = Qt, en = new q("auth", "Firebase", Qt());
|
|
1889
1889
|
* See the License for the specific language governing permissions and
|
1890
1890
|
* limitations under the License.
|
1891
1891
|
*/
|
1892
|
-
const he = new
|
1892
|
+
const he = new Zt("@firebase/auth");
|
1893
1893
|
function wi(n, ...e) {
|
1894
1894
|
he.logLevel <= h.WARN && he.warn(`Auth (${ee}): ${n}`, ...e);
|
1895
1895
|
}
|
@@ -1913,10 +1913,10 @@ function se(n, ...e) {
|
|
1913
1913
|
* limitations under the License.
|
1914
1914
|
*/
|
1915
1915
|
function w(n, ...e) {
|
1916
|
-
throw
|
1916
|
+
throw Je(n, ...e);
|
1917
1917
|
}
|
1918
1918
|
function _(n, ...e) {
|
1919
|
-
return
|
1919
|
+
return Je(n, ...e);
|
1920
1920
|
}
|
1921
1921
|
function tn(n, e, t) {
|
1922
1922
|
const r = Object.assign(Object.assign({}, Ti()), { [e]: t });
|
@@ -1927,7 +1927,7 @@ function tn(n, e, t) {
|
|
1927
1927
|
function P(n) {
|
1928
1928
|
return tn(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
|
1929
1929
|
}
|
1930
|
-
function
|
1930
|
+
function Je(n, ...e) {
|
1931
1931
|
if (typeof n != "string") {
|
1932
1932
|
const t = e[0], r = [...e.slice(1)];
|
1933
1933
|
return r[0] && (r[0].appName = n.name), n._errorFactory.create(t, ...r);
|
@@ -1936,7 +1936,7 @@ function Ze(n, ...e) {
|
|
1936
1936
|
}
|
1937
1937
|
function d(n, e, ...t) {
|
1938
1938
|
if (!n)
|
1939
|
-
throw
|
1939
|
+
throw Je(e, ...t);
|
1940
1940
|
}
|
1941
1941
|
function b(n) {
|
1942
1942
|
const e = "INTERNAL ASSERTION FAILED: " + n;
|
@@ -1961,7 +1961,7 @@ function R(n, e) {
|
|
1961
1961
|
* See the License for the specific language governing permissions and
|
1962
1962
|
* limitations under the License.
|
1963
1963
|
*/
|
1964
|
-
function
|
1964
|
+
function He() {
|
1965
1965
|
var n;
|
1966
1966
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
|
1967
1967
|
}
|
@@ -1988,7 +1988,7 @@ function vt() {
|
|
1988
1988
|
* See the License for the specific language governing permissions and
|
1989
1989
|
* limitations under the License.
|
1990
1990
|
*/
|
1991
|
-
function
|
1991
|
+
function ki() {
|
1992
1992
|
return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
|
1993
1993
|
// This is especially true for Cordova apps which have unreliable
|
1994
1994
|
// navigator.onLine behavior unless cordova-plugin-network-information is
|
@@ -1996,7 +1996,7 @@ function Si() {
|
|
1996
1996
|
// defines navigator.connection.
|
1997
1997
|
(Ri() || tr() || "connection" in navigator) ? navigator.onLine : !0;
|
1998
1998
|
}
|
1999
|
-
function
|
1999
|
+
function Si() {
|
2000
2000
|
if (typeof navigator > "u")
|
2001
2001
|
return null;
|
2002
2002
|
const n = navigator;
|
@@ -2029,7 +2029,7 @@ class te {
|
|
2029
2029
|
this.shortDelay = e, this.longDelay = t, R(t > e, "Short delay should be less than long delay!"), this.isMobile = Qn() || nr();
|
2030
2030
|
}
|
2031
2031
|
get() {
|
2032
|
-
return
|
2032
|
+
return ki() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
2033
2033
|
}
|
2034
2034
|
}
|
2035
2035
|
/**
|
@@ -2123,7 +2123,7 @@ class nn {
|
|
2123
2123
|
* See the License for the specific language governing permissions and
|
2124
2124
|
* limitations under the License.
|
2125
2125
|
*/
|
2126
|
-
const
|
2126
|
+
const Ai = {
|
2127
2127
|
// Custom token errors.
|
2128
2128
|
CREDENTIAL_MISMATCH: "custom-token-mismatch",
|
2129
2129
|
// This can only happen if the SDK sends a bad request.
|
@@ -2218,13 +2218,13 @@ const Oi = new te(3e4, 6e4);
|
|
2218
2218
|
function ge(n, e) {
|
2219
2219
|
return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
|
2220
2220
|
}
|
2221
|
-
async function
|
2221
|
+
async function Z(n, e, t, r, i = {}) {
|
2222
2222
|
return rn(n, i, async () => {
|
2223
|
-
let s = {},
|
2224
|
-
r && (e === "GET" ?
|
2223
|
+
let s = {}, a = {};
|
2224
|
+
r && (e === "GET" ? a = r : s = {
|
2225
2225
|
body: JSON.stringify(r)
|
2226
2226
|
});
|
2227
|
-
const
|
2227
|
+
const o = Q(Object.assign({ key: n.config.apiKey }, a)).slice(1), c = await n._getAdditionalHeaders();
|
2228
2228
|
c[
|
2229
2229
|
"Content-Type"
|
2230
2230
|
/* HttpHeader.CONTENT_TYPE */
|
@@ -2236,31 +2236,31 @@ async function $(n, e, t, r, i = {}) {
|
|
2236
2236
|
method: e,
|
2237
2237
|
headers: c
|
2238
2238
|
}, s);
|
2239
|
-
return er() || (l.referrerPolicy = "no-referrer"), nn.fetch()(
|
2239
|
+
return er() || (l.referrerPolicy = "no-referrer"), nn.fetch()(an(n, n.config.apiHost, t, o), l);
|
2240
2240
|
});
|
2241
2241
|
}
|
2242
2242
|
async function rn(n, e, t) {
|
2243
2243
|
n._canInitEmulator = !1;
|
2244
|
-
const r = Object.assign(Object.assign({},
|
2244
|
+
const r = Object.assign(Object.assign({}, Ai), e);
|
2245
2245
|
try {
|
2246
2246
|
const i = new Ci(n), s = await Promise.race([
|
2247
2247
|
t(),
|
2248
2248
|
i.promise
|
2249
2249
|
]);
|
2250
2250
|
i.clearNetworkTimeout();
|
2251
|
-
const
|
2252
|
-
if ("needConfirmation" in
|
2253
|
-
throw ie(n, "account-exists-with-different-credential",
|
2254
|
-
if (s.ok && !("errorMessage" in
|
2255
|
-
return
|
2251
|
+
const a = await s.json();
|
2252
|
+
if ("needConfirmation" in a)
|
2253
|
+
throw ie(n, "account-exists-with-different-credential", a);
|
2254
|
+
if (s.ok && !("errorMessage" in a))
|
2255
|
+
return a;
|
2256
2256
|
{
|
2257
|
-
const
|
2257
|
+
const o = s.ok ? a.errorMessage : a.error.message, [c, l] = o.split(" : ");
|
2258
2258
|
if (c === "FEDERATED_USER_ID_ALREADY_LINKED")
|
2259
|
-
throw ie(n, "credential-already-in-use",
|
2259
|
+
throw ie(n, "credential-already-in-use", a);
|
2260
2260
|
if (c === "EMAIL_EXISTS")
|
2261
|
-
throw ie(n, "email-already-in-use",
|
2261
|
+
throw ie(n, "email-already-in-use", a);
|
2262
2262
|
if (c === "USER_DISABLED")
|
2263
|
-
throw ie(n, "user-disabled",
|
2263
|
+
throw ie(n, "user-disabled", a);
|
2264
2264
|
const u = r[c] || c.toLowerCase().replace(/[_\s]+/g, "-");
|
2265
2265
|
if (l)
|
2266
2266
|
throw tn(n, u, l);
|
@@ -2273,12 +2273,12 @@ async function rn(n, e, t) {
|
|
2273
2273
|
}
|
2274
2274
|
}
|
2275
2275
|
async function sn(n, e, t, r, i = {}) {
|
2276
|
-
const s = await
|
2276
|
+
const s = await Z(n, e, t, r, i);
|
2277
2277
|
return "mfaPendingCredential" in s && w(n, "multi-factor-auth-required", {
|
2278
2278
|
_serverResponse: s
|
2279
2279
|
}), s;
|
2280
2280
|
}
|
2281
|
-
function
|
2281
|
+
function an(n, e, t, r) {
|
2282
2282
|
const i = `${e}${t}?${r}`;
|
2283
2283
|
return n.config.emulator ? Xe(n.config, i) : `${n.config.apiScheme}://${i}`;
|
2284
2284
|
}
|
@@ -2321,10 +2321,10 @@ function ie(n, e, t) {
|
|
2321
2321
|
* limitations under the License.
|
2322
2322
|
*/
|
2323
2323
|
async function Ni(n, e) {
|
2324
|
-
return
|
2324
|
+
return Z(n, "POST", "/v1/accounts:delete", e);
|
2325
2325
|
}
|
2326
|
-
async function
|
2327
|
-
return
|
2326
|
+
async function on(n, e) {
|
2327
|
+
return Z(n, "POST", "/v1/accounts:lookup", e);
|
2328
2328
|
}
|
2329
2329
|
/**
|
2330
2330
|
* @license
|
@@ -2342,7 +2342,7 @@ async function an(n, e) {
|
|
2342
2342
|
* See the License for the specific language governing permissions and
|
2343
2343
|
* limitations under the License.
|
2344
2344
|
*/
|
2345
|
-
function
|
2345
|
+
function J(n) {
|
2346
2346
|
if (n)
|
2347
2347
|
try {
|
2348
2348
|
const e = new Date(Number(n));
|
@@ -2359,14 +2359,14 @@ async function Di(n, e = !1) {
|
|
2359
2359
|
"internal-error"
|
2360
2360
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2361
2361
|
);
|
2362
|
-
const s = typeof i.firebase == "object" ? i.firebase : void 0,
|
2362
|
+
const s = typeof i.firebase == "object" ? i.firebase : void 0, a = s == null ? void 0 : s.sign_in_provider;
|
2363
2363
|
return {
|
2364
2364
|
claims: i,
|
2365
2365
|
token: r,
|
2366
|
-
authTime:
|
2367
|
-
issuedAtTime:
|
2368
|
-
expirationTime:
|
2369
|
-
signInProvider:
|
2366
|
+
authTime: J(Ce(i.auth_time)),
|
2367
|
+
issuedAtTime: J(Ce(i.iat)),
|
2368
|
+
expirationTime: J(Ce(i.exp)),
|
2369
|
+
signInProvider: a || null,
|
2370
2370
|
signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
|
2371
2371
|
};
|
2372
2372
|
}
|
@@ -2378,7 +2378,7 @@ function Ye(n) {
|
|
2378
2378
|
if (e === void 0 || t === void 0 || r === void 0)
|
2379
2379
|
return se("JWT malformed, contained fewer than 3 sections"), null;
|
2380
2380
|
try {
|
2381
|
-
const i =
|
2381
|
+
const i = jt(t);
|
2382
2382
|
return i ? JSON.parse(i) : (se("Failed to decode base64 JWT payload"), null);
|
2383
2383
|
} catch (i) {
|
2384
2384
|
return se("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
|
@@ -2506,12 +2506,12 @@ class Mi {
|
|
2506
2506
|
* See the License for the specific language governing permissions and
|
2507
2507
|
* limitations under the License.
|
2508
2508
|
*/
|
2509
|
-
class
|
2509
|
+
class xe {
|
2510
2510
|
constructor(e, t) {
|
2511
2511
|
this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
|
2512
2512
|
}
|
2513
2513
|
_initializeTime() {
|
2514
|
-
this.lastSignInTime =
|
2514
|
+
this.lastSignInTime = J(this.lastLoginAt), this.creationTime = J(this.createdAt);
|
2515
2515
|
}
|
2516
2516
|
_copy(e) {
|
2517
2517
|
this.createdAt = e.createdAt, this.lastLoginAt = e.lastLoginAt, this._initializeTime();
|
@@ -2541,7 +2541,7 @@ class He {
|
|
2541
2541
|
*/
|
2542
2542
|
async function pe(n) {
|
2543
2543
|
var e;
|
2544
|
-
const t = n.auth, r = await n.getIdToken(), i = await K(n,
|
2544
|
+
const t = n.auth, r = await n.getIdToken(), i = await K(n, on(t, { idToken: r }));
|
2545
2545
|
d(
|
2546
2546
|
i == null ? void 0 : i.users.length,
|
2547
2547
|
t,
|
@@ -2550,7 +2550,7 @@ async function pe(n) {
|
|
2550
2550
|
);
|
2551
2551
|
const s = i.users[0];
|
2552
2552
|
n._notifyReloadListener(s);
|
2553
|
-
const
|
2553
|
+
const a = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? cn(s.providerUserInfo) : [], o = Ui(n.providerData, a), c = n.isAnonymous, l = !(n.email && s.passwordHash) && !(o != null && o.length), u = c ? l : !1, p = {
|
2554
2554
|
uid: s.localId,
|
2555
2555
|
displayName: s.displayName || null,
|
2556
2556
|
photoURL: s.photoUrl || null,
|
@@ -2558,8 +2558,8 @@ async function pe(n) {
|
|
2558
2558
|
emailVerified: s.emailVerified || !1,
|
2559
2559
|
phoneNumber: s.phoneNumber || null,
|
2560
2560
|
tenantId: s.tenantId || null,
|
2561
|
-
providerData:
|
2562
|
-
metadata: new
|
2561
|
+
providerData: o,
|
2562
|
+
metadata: new xe(s.createdAt, s.lastLoginAt),
|
2563
2563
|
isAnonymous: u
|
2564
2564
|
};
|
2565
2565
|
Object.assign(n, p);
|
@@ -2573,7 +2573,7 @@ function Ui(n, e) {
|
|
2573
2573
|
}
|
2574
2574
|
function cn(n) {
|
2575
2575
|
return n.map((e) => {
|
2576
|
-
var { providerId: t } = e, r =
|
2576
|
+
var { providerId: t } = e, r = $e(e, ["providerId"]);
|
2577
2577
|
return {
|
2578
2578
|
providerId: t,
|
2579
2579
|
uid: r.rawId || "",
|
@@ -2605,13 +2605,13 @@ async function Bi(n, e) {
|
|
2605
2605
|
const r = Q({
|
2606
2606
|
grant_type: "refresh_token",
|
2607
2607
|
refresh_token: e
|
2608
|
-
}).slice(1), { tokenApiHost: i, apiKey: s } = n.config,
|
2609
|
-
return
|
2608
|
+
}).slice(1), { tokenApiHost: i, apiKey: s } = n.config, a = an(n, i, "/v1/token", `key=${s}`), o = await n._getAdditionalHeaders();
|
2609
|
+
return o[
|
2610
2610
|
"Content-Type"
|
2611
2611
|
/* HttpHeader.CONTENT_TYPE */
|
2612
|
-
] = "application/x-www-form-urlencoded", nn.fetch()(
|
2612
|
+
] = "application/x-www-form-urlencoded", nn.fetch()(a, {
|
2613
2613
|
method: "POST",
|
2614
|
-
headers:
|
2614
|
+
headers: o,
|
2615
2615
|
body: r
|
2616
2616
|
});
|
2617
2617
|
});
|
@@ -2621,8 +2621,8 @@ async function Bi(n, e) {
|
|
2621
2621
|
refreshToken: t.refresh_token
|
2622
2622
|
};
|
2623
2623
|
}
|
2624
|
-
async function
|
2625
|
-
return
|
2624
|
+
async function Fi(n, e) {
|
2625
|
+
return Z(n, "POST", "/v2/accounts:revokeToken", ge(n, e));
|
2626
2626
|
}
|
2627
2627
|
/**
|
2628
2628
|
* @license
|
@@ -2640,7 +2640,7 @@ async function xi(n, e) {
|
|
2640
2640
|
* See the License for the specific language governing permissions and
|
2641
2641
|
* limitations under the License.
|
2642
2642
|
*/
|
2643
|
-
class
|
2643
|
+
class V {
|
2644
2644
|
constructor() {
|
2645
2645
|
this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
|
2646
2646
|
}
|
@@ -2692,14 +2692,14 @@ class j {
|
|
2692
2692
|
this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + r * 1e3;
|
2693
2693
|
}
|
2694
2694
|
static fromJSON(e, t) {
|
2695
|
-
const { refreshToken: r, accessToken: i, expirationTime: s } = t,
|
2695
|
+
const { refreshToken: r, accessToken: i, expirationTime: s } = t, a = new V();
|
2696
2696
|
return r && (d(typeof r == "string", "internal-error", {
|
2697
2697
|
appName: e
|
2698
|
-
}),
|
2698
|
+
}), a.refreshToken = r), i && (d(typeof i == "string", "internal-error", {
|
2699
2699
|
appName: e
|
2700
|
-
}),
|
2700
|
+
}), a.accessToken = i), s && (d(typeof s == "number", "internal-error", {
|
2701
2701
|
appName: e
|
2702
|
-
}),
|
2702
|
+
}), a.expirationTime = s), a;
|
2703
2703
|
}
|
2704
2704
|
toJSON() {
|
2705
2705
|
return {
|
@@ -2712,7 +2712,7 @@ class j {
|
|
2712
2712
|
this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
|
2713
2713
|
}
|
2714
2714
|
_clone() {
|
2715
|
-
return Object.assign(new
|
2715
|
+
return Object.assign(new V(), this.toJSON());
|
2716
2716
|
}
|
2717
2717
|
_performRefresh() {
|
2718
2718
|
return b("not implemented");
|
@@ -2734,13 +2734,13 @@ class j {
|
|
2734
2734
|
* See the License for the specific language governing permissions and
|
2735
2735
|
* limitations under the License.
|
2736
2736
|
*/
|
2737
|
-
function
|
2737
|
+
function k(n, e) {
|
2738
2738
|
d(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
|
2739
2739
|
}
|
2740
2740
|
class y {
|
2741
2741
|
constructor(e) {
|
2742
|
-
var { uid: t, auth: r, stsTokenManager: i } = e, s =
|
2743
|
-
this.providerId = "firebase", this.proactiveRefresh = new Mi(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
|
2742
|
+
var { uid: t, auth: r, stsTokenManager: i } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
|
2743
|
+
this.providerId = "firebase", this.proactiveRefresh = new Mi(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 xe(s.createdAt || void 0, s.lastLoginAt || void 0);
|
2744
2744
|
}
|
2745
2745
|
async getIdToken(e) {
|
2746
2746
|
const t = await K(this, this.stsTokenManager.getToken(this.auth, e));
|
@@ -2821,21 +2821,21 @@ class y {
|
|
2821
2821
|
return this.stsTokenManager.refreshToken || "";
|
2822
2822
|
}
|
2823
2823
|
static _fromJSON(e, t) {
|
2824
|
-
var r, i, s,
|
2825
|
-
const p = (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,
|
2824
|
+
var r, i, s, a, o, c, l, u;
|
2825
|
+
const p = (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 = (o = t.tenantId) !== null && o !== void 0 ? o : void 0, ye = (c = t._redirectEventId) !== null && c !== void 0 ? c : void 0, nt = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, rt = (u = t.lastLoginAt) !== null && u !== void 0 ? u : void 0, { uid: Ee, emailVerified: it, isAnonymous: st, providerData: Te, stsTokenManager: at } = t;
|
2826
2826
|
d(
|
2827
|
-
Ee &&
|
2827
|
+
Ee && at,
|
2828
2828
|
e,
|
2829
2829
|
"internal-error"
|
2830
2830
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2831
2831
|
);
|
2832
|
-
const Pn =
|
2832
|
+
const Pn = V.fromJSON(this.name, at);
|
2833
2833
|
d(
|
2834
2834
|
typeof Ee == "string",
|
2835
2835
|
e,
|
2836
2836
|
"internal-error"
|
2837
2837
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2838
|
-
),
|
2838
|
+
), k(p, e.name), k(m, e.name), d(
|
2839
2839
|
typeof it == "boolean",
|
2840
2840
|
e,
|
2841
2841
|
"internal-error"
|
@@ -2845,7 +2845,7 @@ class y {
|
|
2845
2845
|
e,
|
2846
2846
|
"internal-error"
|
2847
2847
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2848
|
-
),
|
2848
|
+
), k(v, e.name), k(F, e.name), k(tt, e.name), k(ye, e.name), k(nt, e.name), k(rt, e.name);
|
2849
2849
|
const we = new y({
|
2850
2850
|
uid: Ee,
|
2851
2851
|
auth: e,
|
@@ -2853,7 +2853,7 @@ class y {
|
|
2853
2853
|
emailVerified: it,
|
2854
2854
|
displayName: p,
|
2855
2855
|
isAnonymous: st,
|
2856
|
-
photoURL:
|
2856
|
+
photoURL: F,
|
2857
2857
|
phoneNumber: v,
|
2858
2858
|
tenantId: tt,
|
2859
2859
|
stsTokenManager: Pn,
|
@@ -2868,7 +2868,7 @@ class y {
|
|
2868
2868
|
* @param idTokenResponse
|
2869
2869
|
*/
|
2870
2870
|
static async _fromIdTokenResponse(e, t, r = !1) {
|
2871
|
-
const i = new
|
2871
|
+
const i = new V();
|
2872
2872
|
i.updateFromServerResponse(t);
|
2873
2873
|
const s = new y({
|
2874
2874
|
uid: t.localId,
|
@@ -2890,13 +2890,13 @@ class y {
|
|
2890
2890
|
"internal-error"
|
2891
2891
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2892
2892
|
);
|
2893
|
-
const s = i.providerUserInfo !== void 0 ? cn(i.providerUserInfo) : [],
|
2894
|
-
|
2893
|
+
const s = i.providerUserInfo !== void 0 ? cn(i.providerUserInfo) : [], a = !(i.email && i.passwordHash) && !(s != null && s.length), o = new V();
|
2894
|
+
o.updateFromIdToken(r);
|
2895
2895
|
const c = new y({
|
2896
2896
|
uid: i.localId,
|
2897
2897
|
auth: e,
|
2898
|
-
stsTokenManager:
|
2899
|
-
isAnonymous:
|
2898
|
+
stsTokenManager: o,
|
2899
|
+
isAnonymous: a
|
2900
2900
|
}), l = {
|
2901
2901
|
uid: i.localId,
|
2902
2902
|
displayName: i.displayName || null,
|
@@ -2906,7 +2906,7 @@ class y {
|
|
2906
2906
|
phoneNumber: i.phoneNumber || null,
|
2907
2907
|
tenantId: i.tenantId || null,
|
2908
2908
|
providerData: s,
|
2909
|
-
metadata: new
|
2909
|
+
metadata: new xe(i.createdAt, i.lastLoginAt),
|
2910
2910
|
isAnonymous: !(i.email && i.passwordHash) && !(s != null && s.length)
|
2911
2911
|
};
|
2912
2912
|
return Object.assign(c, l), c;
|
@@ -2990,14 +2990,14 @@ const yt = ln;
|
|
2990
2990
|
* See the License for the specific language governing permissions and
|
2991
2991
|
* limitations under the License.
|
2992
2992
|
*/
|
2993
|
-
function
|
2993
|
+
function ae(n, e, t) {
|
2994
2994
|
return `firebase:${n}:${e}:${t}`;
|
2995
2995
|
}
|
2996
|
-
class
|
2996
|
+
class j {
|
2997
2997
|
constructor(e, t, r) {
|
2998
2998
|
this.persistence = e, this.auth = t, this.userKey = r;
|
2999
2999
|
const { config: i, name: s } = this.auth;
|
3000
|
-
this.fullUserKey =
|
3000
|
+
this.fullUserKey = ae(this.userKey, i.apiKey, s), this.fullPersistenceKey = ae("persistence", i.apiKey, s), this.boundEventHandler = t._onStorageEvent.bind(t), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
|
3001
3001
|
}
|
3002
3002
|
setCurrentUser(e) {
|
3003
3003
|
return this.persistence._set(this.fullUserKey, e.toJSON());
|
@@ -3024,32 +3024,32 @@ class W {
|
|
3024
3024
|
}
|
3025
3025
|
static async create(e, t, r = "authUser") {
|
3026
3026
|
if (!t.length)
|
3027
|
-
return new
|
3027
|
+
return new j(E(yt), e, r);
|
3028
3028
|
const i = (await Promise.all(t.map(async (l) => {
|
3029
3029
|
if (await l._isAvailable())
|
3030
3030
|
return l;
|
3031
3031
|
}))).filter((l) => l);
|
3032
3032
|
let s = i[0] || E(yt);
|
3033
|
-
const
|
3034
|
-
let
|
3033
|
+
const a = ae(r, e.config.apiKey, e.name);
|
3034
|
+
let o = null;
|
3035
3035
|
for (const l of t)
|
3036
3036
|
try {
|
3037
|
-
const u = await l._get(
|
3037
|
+
const u = await l._get(a);
|
3038
3038
|
if (u) {
|
3039
3039
|
const p = y._fromJSON(e, u);
|
3040
|
-
l !== s && (
|
3040
|
+
l !== s && (o = p), s = l;
|
3041
3041
|
break;
|
3042
3042
|
}
|
3043
3043
|
} catch {
|
3044
3044
|
}
|
3045
3045
|
const c = i.filter((l) => l._shouldAllowMigration);
|
3046
|
-
return !s._shouldAllowMigration || !c.length ? new
|
3046
|
+
return !s._shouldAllowMigration || !c.length ? new j(s, e, r) : (s = c[0], o && await s._set(a, o.toJSON()), await Promise.all(t.map(async (l) => {
|
3047
3047
|
if (l !== s)
|
3048
3048
|
try {
|
3049
|
-
await l._remove(
|
3049
|
+
await l._remove(a);
|
3050
3050
|
} catch {
|
3051
3051
|
}
|
3052
|
-
})), new
|
3052
|
+
})), new j(s, e, r));
|
3053
3053
|
}
|
3054
3054
|
}
|
3055
3055
|
/**
|
@@ -3124,11 +3124,11 @@ function _n(n = f()) {
|
|
3124
3124
|
function Ke(n = f()) {
|
3125
3125
|
return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
|
3126
3126
|
}
|
3127
|
-
function
|
3127
|
+
function Hi(n = f()) {
|
3128
3128
|
var e;
|
3129
3129
|
return Ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
3130
3130
|
}
|
3131
|
-
function
|
3131
|
+
function xi() {
|
3132
3132
|
return rr() && document.documentMode === 10;
|
3133
3133
|
}
|
3134
3134
|
function gn(n = f()) {
|
@@ -3181,17 +3181,17 @@ function vn(n, e = []) {
|
|
3181
3181
|
* See the License for the specific language governing permissions and
|
3182
3182
|
* limitations under the License.
|
3183
3183
|
*/
|
3184
|
-
class
|
3184
|
+
class Vi {
|
3185
3185
|
constructor(e) {
|
3186
3186
|
this.auth = e, this.queue = [];
|
3187
3187
|
}
|
3188
3188
|
pushCallback(e, t) {
|
3189
|
-
const r = (s) => new Promise((
|
3189
|
+
const r = (s) => new Promise((a, o) => {
|
3190
3190
|
try {
|
3191
3191
|
const c = e(s);
|
3192
|
-
o(c);
|
3193
|
-
} catch (c) {
|
3194
3192
|
a(c);
|
3193
|
+
} catch (c) {
|
3194
|
+
o(c);
|
3195
3195
|
}
|
3196
3196
|
});
|
3197
3197
|
r.onAbort = t, this.queue.push(r);
|
@@ -3236,8 +3236,8 @@ class ji {
|
|
3236
3236
|
* See the License for the specific language governing permissions and
|
3237
3237
|
* limitations under the License.
|
3238
3238
|
*/
|
3239
|
-
async function
|
3240
|
-
return
|
3239
|
+
async function ji(n, e = {}) {
|
3240
|
+
return Z(n, "GET", "/v2/passwordPolicy", ge(n, e));
|
3241
3241
|
}
|
3242
3242
|
/**
|
3243
3243
|
* @license
|
@@ -3255,20 +3255,20 @@ async function Wi(n, e = {}) {
|
|
3255
3255
|
* See the License for the specific language governing permissions and
|
3256
3256
|
* limitations under the License.
|
3257
3257
|
*/
|
3258
|
-
const
|
3259
|
-
class
|
3258
|
+
const Gi = 6;
|
3259
|
+
class Wi {
|
3260
3260
|
constructor(e) {
|
3261
3261
|
var t, r, i, s;
|
3262
|
-
const
|
3263
|
-
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t =
|
3262
|
+
const a = e.customStrengthOptions;
|
3263
|
+
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = a.minPasswordLength) !== null && t !== void 0 ? t : Gi, a.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = a.maxPasswordLength), a.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = a.containsLowercaseCharacter), a.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = a.containsUppercaseCharacter), a.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = a.containsNumericCharacter), a.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = a.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (i = (r = e.allowedNonAlphanumericCharacters) === null || r === void 0 ? void 0 : r.join("")) !== null && i !== void 0 ? i : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
|
3264
3264
|
}
|
3265
3265
|
validatePassword(e) {
|
3266
|
-
var t, r, i, s,
|
3266
|
+
var t, r, i, s, a, o;
|
3267
3267
|
const c = {
|
3268
3268
|
isValid: !0,
|
3269
3269
|
passwordPolicy: this
|
3270
3270
|
};
|
3271
|
-
return this.validatePasswordLengthOptions(e, c), this.validatePasswordCharacterOptions(e, c), c.isValid && (c.isValid = (t = c.meetsMinPasswordLength) !== null && t !== void 0 ? t : !0), c.isValid && (c.isValid = (r = c.meetsMaxPasswordLength) !== null && r !== void 0 ? r : !0), c.isValid && (c.isValid = (i = c.containsLowercaseLetter) !== null && i !== void 0 ? i : !0), c.isValid && (c.isValid = (s = c.containsUppercaseLetter) !== null && s !== void 0 ? s : !0), c.isValid && (c.isValid = (
|
3271
|
+
return this.validatePasswordLengthOptions(e, c), this.validatePasswordCharacterOptions(e, c), c.isValid && (c.isValid = (t = c.meetsMinPasswordLength) !== null && t !== void 0 ? t : !0), c.isValid && (c.isValid = (r = c.meetsMaxPasswordLength) !== null && r !== void 0 ? r : !0), c.isValid && (c.isValid = (i = c.containsLowercaseLetter) !== null && i !== void 0 ? i : !0), c.isValid && (c.isValid = (s = c.containsUppercaseLetter) !== null && s !== void 0 ? s : !0), c.isValid && (c.isValid = (a = c.containsNumericCharacter) !== null && a !== void 0 ? a : !0), c.isValid && (c.isValid = (o = c.containsNonAlphanumericCharacter) !== null && o !== void 0 ? o : !0), c;
|
3272
3272
|
}
|
3273
3273
|
/**
|
3274
3274
|
* Validates that the password meets the length options for the policy.
|
@@ -3345,12 +3345,12 @@ class Gi {
|
|
3345
3345
|
*/
|
3346
3346
|
class zi {
|
3347
3347
|
constructor(e, t, r, i) {
|
3348
|
-
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 Tt(this), this.idTokenSubscription = new Tt(this), this.beforeStateQueue = new
|
3348
|
+
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 Tt(this), this.idTokenSubscription = new Tt(this), this.beforeStateQueue = new Vi(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;
|
3349
3349
|
}
|
3350
3350
|
_initializeWithPersistence(e, t) {
|
3351
3351
|
return t && (this._popupRedirectResolver = E(t)), this._initializationPromise = this.queue(async () => {
|
3352
3352
|
var r, i;
|
3353
|
-
if (!this._deleted && (this.persistenceManager = await
|
3353
|
+
if (!this._deleted && (this.persistenceManager = await j.create(this, e), !this._deleted)) {
|
3354
3354
|
if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
|
3355
3355
|
try {
|
3356
3356
|
await this._popupRedirectResolver._initialize(this);
|
@@ -3381,7 +3381,7 @@ class zi {
|
|
3381
3381
|
}
|
3382
3382
|
async initializeCurrentUserFromIdToken(e) {
|
3383
3383
|
try {
|
3384
|
-
const t = await
|
3384
|
+
const t = await on(this, { idToken: e }), r = await y._fromGetAccountInfoResponse(this, t, e);
|
3385
3385
|
await this.directlySetCurrentUser(r);
|
3386
3386
|
} catch (t) {
|
3387
3387
|
console.warn("FirebaseServerApp could not login user with provided authIdToken: ", t), await this.directlySetCurrentUser(null);
|
@@ -3390,17 +3390,17 @@ class zi {
|
|
3390
3390
|
async initializeCurrentUser(e) {
|
3391
3391
|
var t;
|
3392
3392
|
if (I(this.app)) {
|
3393
|
-
const
|
3394
|
-
return
|
3395
|
-
setTimeout(() => this.initializeCurrentUserFromIdToken(
|
3393
|
+
const a = this.app.settings.authIdToken;
|
3394
|
+
return a ? new Promise((o) => {
|
3395
|
+
setTimeout(() => this.initializeCurrentUserFromIdToken(a).then(o, o));
|
3396
3396
|
}) : this.directlySetCurrentUser(null);
|
3397
3397
|
}
|
3398
3398
|
const r = await this.assertedPersistence.getCurrentUser();
|
3399
3399
|
let i = r, s = !1;
|
3400
3400
|
if (e && this.config.authDomain) {
|
3401
3401
|
await this.getOrInitRedirectPersistenceManager();
|
3402
|
-
const
|
3403
|
-
(!
|
3402
|
+
const a = (t = this.redirectUser) === null || t === void 0 ? void 0 : t._redirectEventId, o = i == null ? void 0 : i._redirectEventId, c = await this.tryRedirectSignIn(e);
|
3403
|
+
(!a || a === o) && (c != null && c.user) && (i = c.user, s = !0);
|
3404
3404
|
}
|
3405
3405
|
if (!i)
|
3406
3406
|
return this.directlySetCurrentUser(null);
|
@@ -3408,8 +3408,8 @@ class zi {
|
|
3408
3408
|
if (s)
|
3409
3409
|
try {
|
3410
3410
|
await this.beforeStateQueue.runMiddleware(i);
|
3411
|
-
} catch (
|
3412
|
-
i = r, this._popupRedirectResolver._overrideRedirectResult(this, () => Promise.reject(
|
3411
|
+
} catch (a) {
|
3412
|
+
i = r, this._popupRedirectResolver._overrideRedirectResult(this, () => Promise.reject(a));
|
3413
3413
|
}
|
3414
3414
|
return i ? this.reloadAndSetCurrentUserOrClear(i) : this.directlySetCurrentUser(null);
|
3415
3415
|
}
|
@@ -3439,7 +3439,7 @@ class zi {
|
|
3439
3439
|
return this.directlySetCurrentUser(e);
|
3440
3440
|
}
|
3441
3441
|
useDeviceLanguage() {
|
3442
|
-
this.languageCode =
|
3442
|
+
this.languageCode = Si();
|
3443
3443
|
}
|
3444
3444
|
async _delete() {
|
3445
3445
|
this._deleted = !0;
|
@@ -3490,7 +3490,7 @@ class zi {
|
|
3490
3490
|
return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
|
3491
3491
|
}
|
3492
3492
|
async _updatePasswordPolicy() {
|
3493
|
-
const e = await
|
3493
|
+
const e = await ji(this), t = new Wi(e);
|
3494
3494
|
this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
|
3495
3495
|
}
|
3496
3496
|
_getPersistence() {
|
@@ -3530,7 +3530,7 @@ class zi {
|
|
3530
3530
|
token: e,
|
3531
3531
|
idToken: t
|
3532
3532
|
};
|
3533
|
-
this.tenantId != null && (r.tenantId = this.tenantId), await
|
3533
|
+
this.tenantId != null && (r.tenantId = this.tenantId), await Fi(this, r);
|
3534
3534
|
}
|
3535
3535
|
}
|
3536
3536
|
toJSON() {
|
@@ -3554,7 +3554,7 @@ class zi {
|
|
3554
3554
|
this,
|
3555
3555
|
"argument-error"
|
3556
3556
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
3557
|
-
), this.redirectPersistenceManager = await
|
3557
|
+
), this.redirectPersistenceManager = await j.create(
|
3558
3558
|
this,
|
3559
3559
|
[E(t._redirectPersistence)],
|
3560
3560
|
"redirectUser"
|
@@ -3602,24 +3602,24 @@ class zi {
|
|
3602
3602
|
return () => {
|
3603
3603
|
};
|
3604
3604
|
const s = typeof t == "function" ? t : t.next.bind(t);
|
3605
|
-
let
|
3606
|
-
const
|
3605
|
+
let a = !1;
|
3606
|
+
const o = this._isInitialized ? Promise.resolve() : this._initializationPromise;
|
3607
3607
|
if (d(
|
3608
|
-
|
3608
|
+
o,
|
3609
3609
|
this,
|
3610
3610
|
"internal-error"
|
3611
3611
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3612
|
-
),
|
3613
|
-
|
3612
|
+
), o.then(() => {
|
3613
|
+
a || s(this.currentUser);
|
3614
3614
|
}), typeof t == "function") {
|
3615
3615
|
const c = e.addObserver(t, r, i);
|
3616
3616
|
return () => {
|
3617
|
-
|
3617
|
+
a = !0, c();
|
3618
3618
|
};
|
3619
3619
|
} else {
|
3620
3620
|
const c = e.addObserver(t);
|
3621
3621
|
return () => {
|
3622
|
-
|
3622
|
+
a = !0, c();
|
3623
3623
|
};
|
3624
3624
|
}
|
3625
3625
|
}
|
@@ -3716,13 +3716,13 @@ let qe = {
|
|
3716
3716
|
recaptchaEnterpriseScript: "",
|
3717
3717
|
gapiScript: ""
|
3718
3718
|
};
|
3719
|
-
function
|
3719
|
+
function Zi(n) {
|
3720
3720
|
qe = n;
|
3721
3721
|
}
|
3722
|
-
function
|
3722
|
+
function $i(n) {
|
3723
3723
|
return qe.loadJS(n);
|
3724
3724
|
}
|
3725
|
-
function
|
3725
|
+
function Ji() {
|
3726
3726
|
return qe.gapiScript;
|
3727
3727
|
}
|
3728
3728
|
function Xi(n) {
|
@@ -3775,10 +3775,10 @@ function qi(n, e, t) {
|
|
3775
3775
|
"invalid-emulator-scheme"
|
3776
3776
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
3777
3777
|
);
|
3778
|
-
const i = !1, s = In(e), { host:
|
3779
|
-
r.config.emulator = { url: `${s}//${
|
3780
|
-
host:
|
3781
|
-
port:
|
3778
|
+
const i = !1, s = In(e), { host: a, port: o } = Qi(e), c = o === null ? "" : `:${o}`;
|
3779
|
+
r.config.emulator = { url: `${s}//${a}${c}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
|
3780
|
+
host: a,
|
3781
|
+
port: o,
|
3782
3782
|
protocol: s.replace(":", ""),
|
3783
3783
|
options: Object.freeze({ disableWarnings: i })
|
3784
3784
|
}), es();
|
@@ -3796,8 +3796,8 @@ function Qi(n) {
|
|
3796
3796
|
const s = i[1];
|
3797
3797
|
return { host: s, port: wt(r.substr(s.length + 1)) };
|
3798
3798
|
} else {
|
3799
|
-
const [s,
|
3800
|
-
return { host: s, port: wt(
|
3799
|
+
const [s, a] = r.split(":");
|
3800
|
+
return { host: s, port: wt(a) };
|
3801
3801
|
}
|
3802
3802
|
}
|
3803
3803
|
function wt(n) {
|
@@ -3871,7 +3871,7 @@ class bn {
|
|
3871
3871
|
* See the License for the specific language governing permissions and
|
3872
3872
|
* limitations under the License.
|
3873
3873
|
*/
|
3874
|
-
async function
|
3874
|
+
async function G(n, e) {
|
3875
3875
|
return sn(n, "POST", "/v1/accounts:signInWithIdp", ge(n, e));
|
3876
3876
|
}
|
3877
3877
|
/**
|
@@ -3925,26 +3925,26 @@ class U extends bn {
|
|
3925
3925
|
* @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
|
3926
3926
|
*/
|
3927
3927
|
static fromJSON(e) {
|
3928
|
-
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s =
|
3928
|
+
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = $e(t, ["providerId", "signInMethod"]);
|
3929
3929
|
if (!r || !i)
|
3930
3930
|
return null;
|
3931
|
-
const
|
3932
|
-
return
|
3931
|
+
const a = new U(r, i);
|
3932
|
+
return a.idToken = s.idToken || void 0, a.accessToken = s.accessToken || void 0, a.secret = s.secret, a.nonce = s.nonce, a.pendingToken = s.pendingToken || null, a;
|
3933
3933
|
}
|
3934
3934
|
/** @internal */
|
3935
3935
|
_getIdTokenResponse(e) {
|
3936
3936
|
const t = this.buildRequest();
|
3937
|
-
return
|
3937
|
+
return G(e, t);
|
3938
3938
|
}
|
3939
3939
|
/** @internal */
|
3940
3940
|
_linkToIdToken(e, t) {
|
3941
3941
|
const r = this.buildRequest();
|
3942
|
-
return r.idToken = t,
|
3942
|
+
return r.idToken = t, G(e, r);
|
3943
3943
|
}
|
3944
3944
|
/** @internal */
|
3945
3945
|
_getReauthenticationResolver(e) {
|
3946
3946
|
const t = this.buildRequest();
|
3947
|
-
return t.autoCreate = !1,
|
3947
|
+
return t.autoCreate = !1, G(e, t);
|
3948
3948
|
}
|
3949
3949
|
buildRequest() {
|
3950
3950
|
const e = {
|
@@ -4064,7 +4064,7 @@ class ne extends yn {
|
|
4064
4064
|
* See the License for the specific language governing permissions and
|
4065
4065
|
* limitations under the License.
|
4066
4066
|
*/
|
4067
|
-
class
|
4067
|
+
class S extends ne {
|
4068
4068
|
constructor() {
|
4069
4069
|
super(
|
4070
4070
|
"facebook.com"
|
@@ -4085,8 +4085,8 @@ class A extends ne {
|
|
4085
4085
|
*/
|
4086
4086
|
static credential(e) {
|
4087
4087
|
return U._fromParams({
|
4088
|
-
providerId:
|
4089
|
-
signInMethod:
|
4088
|
+
providerId: S.PROVIDER_ID,
|
4089
|
+
signInMethod: S.FACEBOOK_SIGN_IN_METHOD,
|
4090
4090
|
accessToken: e
|
4091
4091
|
});
|
4092
4092
|
}
|
@@ -4096,7 +4096,7 @@ class A extends ne {
|
|
4096
4096
|
* @param userCredential - The user credential.
|
4097
4097
|
*/
|
4098
4098
|
static credentialFromResult(e) {
|
4099
|
-
return
|
4099
|
+
return S.credentialFromTaggedObject(e);
|
4100
4100
|
}
|
4101
4101
|
/**
|
4102
4102
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
@@ -4105,20 +4105,20 @@ class A extends ne {
|
|
4105
4105
|
* @param userCredential - The user credential.
|
4106
4106
|
*/
|
4107
4107
|
static credentialFromError(e) {
|
4108
|
-
return
|
4108
|
+
return S.credentialFromTaggedObject(e.customData || {});
|
4109
4109
|
}
|
4110
4110
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
4111
4111
|
if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
|
4112
4112
|
return null;
|
4113
4113
|
try {
|
4114
|
-
return
|
4114
|
+
return S.credential(e.oauthAccessToken);
|
4115
4115
|
} catch {
|
4116
4116
|
return null;
|
4117
4117
|
}
|
4118
4118
|
}
|
4119
4119
|
}
|
4120
|
-
|
4121
|
-
|
4120
|
+
S.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
|
4121
|
+
S.PROVIDER_ID = "facebook.com";
|
4122
4122
|
/**
|
4123
4123
|
* @license
|
4124
4124
|
* Copyright 2020 Google LLC
|
@@ -4135,7 +4135,7 @@ A.PROVIDER_ID = "facebook.com";
|
|
4135
4135
|
* See the License for the specific language governing permissions and
|
4136
4136
|
* limitations under the License.
|
4137
4137
|
*/
|
4138
|
-
class
|
4138
|
+
class A extends ne {
|
4139
4139
|
constructor() {
|
4140
4140
|
super(
|
4141
4141
|
"google.com"
|
@@ -4157,8 +4157,8 @@ class k extends ne {
|
|
4157
4157
|
*/
|
4158
4158
|
static credential(e, t) {
|
4159
4159
|
return U._fromParams({
|
4160
|
-
providerId:
|
4161
|
-
signInMethod:
|
4160
|
+
providerId: A.PROVIDER_ID,
|
4161
|
+
signInMethod: A.GOOGLE_SIGN_IN_METHOD,
|
4162
4162
|
idToken: e,
|
4163
4163
|
accessToken: t
|
4164
4164
|
});
|
@@ -4169,7 +4169,7 @@ class k extends ne {
|
|
4169
4169
|
* @param userCredential - The user credential.
|
4170
4170
|
*/
|
4171
4171
|
static credentialFromResult(e) {
|
4172
|
-
return
|
4172
|
+
return A.credentialFromTaggedObject(e);
|
4173
4173
|
}
|
4174
4174
|
/**
|
4175
4175
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
@@ -4178,7 +4178,7 @@ class k extends ne {
|
|
4178
4178
|
* @param userCredential - The user credential.
|
4179
4179
|
*/
|
4180
4180
|
static credentialFromError(e) {
|
4181
|
-
return
|
4181
|
+
return A.credentialFromTaggedObject(e.customData || {});
|
4182
4182
|
}
|
4183
4183
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
4184
4184
|
if (!e)
|
@@ -4187,14 +4187,14 @@ class k extends ne {
|
|
4187
4187
|
if (!t && !r)
|
4188
4188
|
return null;
|
4189
4189
|
try {
|
4190
|
-
return
|
4190
|
+
return A.credential(t, r);
|
4191
4191
|
} catch {
|
4192
4192
|
return null;
|
4193
4193
|
}
|
4194
4194
|
}
|
4195
4195
|
}
|
4196
|
-
|
4197
|
-
|
4196
|
+
A.GOOGLE_SIGN_IN_METHOD = "google.com";
|
4197
|
+
A.PROVIDER_ID = "google.com";
|
4198
4198
|
/**
|
4199
4199
|
* @license
|
4200
4200
|
* Copyright 2020 Google LLC
|
@@ -4349,10 +4349,10 @@ class B {
|
|
4349
4349
|
this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
|
4350
4350
|
}
|
4351
4351
|
static async _fromIdTokenResponse(e, t, r, i = !1) {
|
4352
|
-
const s = await y._fromIdTokenResponse(e, r, i),
|
4352
|
+
const s = await y._fromIdTokenResponse(e, r, i), a = Rt(r);
|
4353
4353
|
return new B({
|
4354
4354
|
user: s,
|
4355
|
-
providerId:
|
4355
|
+
providerId: a,
|
4356
4356
|
_tokenResponse: r,
|
4357
4357
|
operationType: t
|
4358
4358
|
});
|
@@ -4443,16 +4443,16 @@ async function rs(n, e, t = !1) {
|
|
4443
4443
|
"internal-error"
|
4444
4444
|
/* AuthErrorCode.INTERNAL_ERROR */
|
4445
4445
|
);
|
4446
|
-
const
|
4446
|
+
const a = Ye(s.idToken);
|
4447
4447
|
d(
|
4448
|
-
|
4448
|
+
a,
|
4449
4449
|
r,
|
4450
4450
|
"internal-error"
|
4451
4451
|
/* AuthErrorCode.INTERNAL_ERROR */
|
4452
4452
|
);
|
4453
|
-
const { sub:
|
4453
|
+
const { sub: o } = a;
|
4454
4454
|
return d(
|
4455
|
-
n.uid ===
|
4455
|
+
n.uid === o,
|
4456
4456
|
r,
|
4457
4457
|
"user-mismatch"
|
4458
4458
|
/* AuthErrorCode.USER_MISMATCH */
|
@@ -4522,7 +4522,7 @@ async function ss(n, e) {
|
|
4522
4522
|
* See the License for the specific language governing permissions and
|
4523
4523
|
* limitations under the License.
|
4524
4524
|
*/
|
4525
|
-
async function
|
4525
|
+
async function as(n, e) {
|
4526
4526
|
if (I(n.app))
|
4527
4527
|
return Promise.reject(P(n));
|
4528
4528
|
const t = ve(n), r = await ss(t, {
|
@@ -4531,7 +4531,7 @@ async function os(n, e) {
|
|
4531
4531
|
}), i = await B._fromIdTokenResponse(t, "signIn", r);
|
4532
4532
|
return await t._updateCurrentUser(i.user), i;
|
4533
4533
|
}
|
4534
|
-
function
|
4534
|
+
function os(n, e, t, r) {
|
4535
4535
|
return z(n).onIdTokenChanged(e, t, r);
|
4536
4536
|
}
|
4537
4537
|
function cs(n, e, t) {
|
@@ -4612,18 +4612,18 @@ class wn extends Tn {
|
|
4612
4612
|
}
|
4613
4613
|
onStorageEvent(e, t = !1) {
|
4614
4614
|
if (!e.key) {
|
4615
|
-
this.forAllChangedKeys((
|
4616
|
-
this.notifyListeners(
|
4615
|
+
this.forAllChangedKeys((a, o, c) => {
|
4616
|
+
this.notifyListeners(a, c);
|
4617
4617
|
});
|
4618
4618
|
return;
|
4619
4619
|
}
|
4620
4620
|
const r = e.key;
|
4621
4621
|
t ? this.detachListener() : this.stopPolling();
|
4622
4622
|
const i = () => {
|
4623
|
-
const
|
4624
|
-
!t && this.localCache[r] ===
|
4623
|
+
const a = this.storage.getItem(r);
|
4624
|
+
!t && this.localCache[r] === a || this.notifyListeners(r, a);
|
4625
4625
|
}, s = this.storage.getItem(r);
|
4626
|
-
|
4626
|
+
xi() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i, ds) : i();
|
4627
4627
|
}
|
4628
4628
|
notifyListeners(e, t) {
|
4629
4629
|
this.localCache[e] = t;
|
@@ -4706,7 +4706,7 @@ class Rn extends Tn {
|
|
4706
4706
|
}
|
4707
4707
|
}
|
4708
4708
|
Rn.type = "SESSION";
|
4709
|
-
const
|
4709
|
+
const kn = Rn;
|
4710
4710
|
/**
|
4711
4711
|
* @license
|
4712
4712
|
* Copyright 2019 Google LLC
|
@@ -4785,15 +4785,15 @@ class Ie {
|
|
4785
4785
|
*
|
4786
4786
|
*/
|
4787
4787
|
async handleEvent(e) {
|
4788
|
-
const t = e, { eventId: r, eventType: i, data: s } = t.data,
|
4789
|
-
if (!(
|
4788
|
+
const t = e, { eventId: r, eventType: i, data: s } = t.data, a = this.handlersMap[i];
|
4789
|
+
if (!(a != null && a.size))
|
4790
4790
|
return;
|
4791
4791
|
t.ports[0].postMessage({
|
4792
4792
|
status: "ack",
|
4793
4793
|
eventId: r,
|
4794
4794
|
eventType: i
|
4795
4795
|
});
|
4796
|
-
const
|
4796
|
+
const o = Array.from(a).map(async (l) => l(t.origin, s)), c = await hs(o);
|
4797
4797
|
t.ports[0].postMessage({
|
4798
4798
|
status: "done",
|
4799
4799
|
eventId: r,
|
@@ -4893,8 +4893,8 @@ class ps {
|
|
4893
4893
|
"connection_unavailable"
|
4894
4894
|
/* _MessageError.CONNECTION_UNAVAILABLE */
|
4895
4895
|
);
|
4896
|
-
let s,
|
4897
|
-
return new Promise((
|
4896
|
+
let s, a;
|
4897
|
+
return new Promise((o, c) => {
|
4898
4898
|
const l = Qe("", 20);
|
4899
4899
|
i.port1.start();
|
4900
4900
|
const u = setTimeout(() => {
|
@@ -4903,7 +4903,7 @@ class ps {
|
|
4903
4903
|
/* _MessageError.UNSUPPORTED_EVENT */
|
4904
4904
|
));
|
4905
4905
|
}, r);
|
4906
|
-
|
4906
|
+
a = {
|
4907
4907
|
messageChannel: i,
|
4908
4908
|
onMessage(p) {
|
4909
4909
|
const m = p;
|
@@ -4922,7 +4922,7 @@ class ps {
|
|
4922
4922
|
);
|
4923
4923
|
break;
|
4924
4924
|
case "done":
|
4925
|
-
clearTimeout(s),
|
4925
|
+
clearTimeout(s), o(m.data.response);
|
4926
4926
|
break;
|
4927
4927
|
default:
|
4928
4928
|
clearTimeout(u), clearTimeout(s), c(new Error(
|
@@ -4932,13 +4932,13 @@ class ps {
|
|
4932
4932
|
break;
|
4933
4933
|
}
|
4934
4934
|
}
|
4935
|
-
}, this.handlers.add(
|
4935
|
+
}, this.handlers.add(a), i.port1.addEventListener("message", a.onMessage), this.target.postMessage({
|
4936
4936
|
eventType: e,
|
4937
4937
|
eventId: l,
|
4938
4938
|
data: t
|
4939
4939
|
}, [i.port2]);
|
4940
4940
|
}).finally(() => {
|
4941
|
-
|
4941
|
+
a && this.removeMessageHandler(a);
|
4942
4942
|
});
|
4943
4943
|
}
|
4944
4944
|
}
|
@@ -4980,7 +4980,7 @@ function fs(n) {
|
|
4980
4980
|
* See the License for the specific language governing permissions and
|
4981
4981
|
* limitations under the License.
|
4982
4982
|
*/
|
4983
|
-
function
|
4983
|
+
function Sn() {
|
4984
4984
|
return typeof g().WorkerGlobalScope < "u" && typeof g().importScripts == "function";
|
4985
4985
|
}
|
4986
4986
|
async function ms() {
|
@@ -4997,7 +4997,7 @@ function _s() {
|
|
4997
4997
|
return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
|
4998
4998
|
}
|
4999
4999
|
function gs() {
|
5000
|
-
return
|
5000
|
+
return Sn() ? self : null;
|
5001
5001
|
}
|
5002
5002
|
/**
|
5003
5003
|
* @license
|
@@ -5015,7 +5015,7 @@ function gs() {
|
|
5015
5015
|
* See the License for the specific language governing permissions and
|
5016
5016
|
* limitations under the License.
|
5017
5017
|
*/
|
5018
|
-
const
|
5018
|
+
const An = "firebaseLocalStorageDb", vs = 1, _e = "firebaseLocalStorage", On = "fbase_key";
|
5019
5019
|
class re {
|
5020
5020
|
constructor(e) {
|
5021
5021
|
this.request = e;
|
@@ -5034,11 +5034,11 @@ function be(n, e) {
|
|
5034
5034
|
return n.transaction([_e], e ? "readwrite" : "readonly").objectStore(_e);
|
5035
5035
|
}
|
5036
5036
|
function Is() {
|
5037
|
-
const n = indexedDB.deleteDatabase(
|
5037
|
+
const n = indexedDB.deleteDatabase(An);
|
5038
5038
|
return new re(n).toPromise();
|
5039
5039
|
}
|
5040
|
-
function
|
5041
|
-
const n = indexedDB.open(
|
5040
|
+
function Ve() {
|
5041
|
+
const n = indexedDB.open(An, vs);
|
5042
5042
|
return new Promise((e, t) => {
|
5043
5043
|
n.addEventListener("error", () => {
|
5044
5044
|
t(n.error);
|
@@ -5051,11 +5051,11 @@ function je() {
|
|
5051
5051
|
}
|
5052
5052
|
}), n.addEventListener("success", async () => {
|
5053
5053
|
const r = n.result;
|
5054
|
-
r.objectStoreNames.contains(_e) ? e(r) : (r.close(), await Is(), e(await
|
5054
|
+
r.objectStoreNames.contains(_e) ? e(r) : (r.close(), await Is(), e(await Ve()));
|
5055
5055
|
});
|
5056
5056
|
});
|
5057
5057
|
}
|
5058
|
-
async function
|
5058
|
+
async function kt(n, e, t) {
|
5059
5059
|
const r = be(n, !0).put({
|
5060
5060
|
[On]: e,
|
5061
5061
|
value: t
|
@@ -5066,7 +5066,7 @@ async function bs(n, e) {
|
|
5066
5066
|
const t = be(n, !1).get(e), r = await new re(t).toPromise();
|
5067
5067
|
return r === void 0 ? null : r.value;
|
5068
5068
|
}
|
5069
|
-
function
|
5069
|
+
function St(n, e) {
|
5070
5070
|
const t = be(n, !0).delete(e);
|
5071
5071
|
return new re(t).toPromise();
|
5072
5072
|
}
|
@@ -5078,7 +5078,7 @@ class Cn {
|
|
5078
5078
|
});
|
5079
5079
|
}
|
5080
5080
|
async _openDb() {
|
5081
|
-
return this.db ? this.db : (this.db = await
|
5081
|
+
return this.db ? this.db : (this.db = await Ve(), this.db);
|
5082
5082
|
}
|
5083
5083
|
async _withRetries(e) {
|
5084
5084
|
let t = 0;
|
@@ -5097,7 +5097,7 @@ class Cn {
|
|
5097
5097
|
* postMessage interface to send these events to the worker ourselves.
|
5098
5098
|
*/
|
5099
5099
|
async initializeServiceWorkerMessaging() {
|
5100
|
-
return
|
5100
|
+
return Sn() ? this.initializeReceiver() : this.initializeSender();
|
5101
5101
|
}
|
5102
5102
|
/**
|
5103
5103
|
* As the worker we should listen to events from the main window.
|
@@ -5159,8 +5159,8 @@ class Cn {
|
|
5159
5159
|
try {
|
5160
5160
|
if (!indexedDB)
|
5161
5161
|
return !1;
|
5162
|
-
const e = await
|
5163
|
-
return await
|
5162
|
+
const e = await Ve();
|
5163
|
+
return await kt(e, me, "1"), await St(e, me), !0;
|
5164
5164
|
} catch {
|
5165
5165
|
}
|
5166
5166
|
return !1;
|
@@ -5174,14 +5174,14 @@ class Cn {
|
|
5174
5174
|
}
|
5175
5175
|
}
|
5176
5176
|
async _set(e, t) {
|
5177
|
-
return this._withPendingWrite(async () => (await this._withRetries((r) =>
|
5177
|
+
return this._withPendingWrite(async () => (await this._withRetries((r) => kt(r, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
|
5178
5178
|
}
|
5179
5179
|
async _get(e) {
|
5180
5180
|
const t = await this._withRetries((r) => bs(r, e));
|
5181
5181
|
return this.localCache[e] = t, t;
|
5182
5182
|
}
|
5183
5183
|
async _remove(e) {
|
5184
|
-
return this._withPendingWrite(async () => (await this._withRetries((t) =>
|
5184
|
+
return this._withPendingWrite(async () => (await this._withRetries((t) => St(t, e)), delete this.localCache[e], this.notifyServiceWorker(e)));
|
5185
5185
|
}
|
5186
5186
|
async _poll() {
|
5187
5187
|
const e = await this._withRetries((i) => {
|
@@ -5272,13 +5272,13 @@ class et extends bn {
|
|
5272
5272
|
), this.params = e;
|
5273
5273
|
}
|
5274
5274
|
_getIdTokenResponse(e) {
|
5275
|
-
return
|
5275
|
+
return G(e, this._buildIdpRequest());
|
5276
5276
|
}
|
5277
5277
|
_linkToIdToken(e, t) {
|
5278
|
-
return
|
5278
|
+
return G(e, this._buildIdpRequest(t));
|
5279
5279
|
}
|
5280
5280
|
_getReauthenticationResolver(e) {
|
5281
|
-
return
|
5281
|
+
return G(e, this._buildIdpRequest());
|
5282
5282
|
}
|
5283
5283
|
_buildIdpRequest(e) {
|
5284
5284
|
const t = {
|
@@ -5296,7 +5296,7 @@ class et extends bn {
|
|
5296
5296
|
function Rs(n) {
|
5297
5297
|
return is(n.auth, new et(n), n.bypassAuthState);
|
5298
5298
|
}
|
5299
|
-
function
|
5299
|
+
function ks(n) {
|
5300
5300
|
const { auth: e, user: t } = n;
|
5301
5301
|
return d(
|
5302
5302
|
t,
|
@@ -5305,7 +5305,7 @@ function Ss(n) {
|
|
5305
5305
|
/* AuthErrorCode.INTERNAL_ERROR */
|
5306
5306
|
), rs(t, new et(n), n.bypassAuthState);
|
5307
5307
|
}
|
5308
|
-
async function
|
5308
|
+
async function Ss(n) {
|
5309
5309
|
const { auth: e, user: t } = n;
|
5310
5310
|
return d(
|
5311
5311
|
t,
|
@@ -5345,9 +5345,9 @@ class Nn {
|
|
5345
5345
|
});
|
5346
5346
|
}
|
5347
5347
|
async onAuthEvent(e) {
|
5348
|
-
const { urlResponse: t, sessionId: r, postBody: i, tenantId: s, error:
|
5349
|
-
if (
|
5350
|
-
this.reject(
|
5348
|
+
const { urlResponse: t, sessionId: r, postBody: i, tenantId: s, error: a, type: o } = e;
|
5349
|
+
if (a) {
|
5350
|
+
this.reject(a);
|
5351
5351
|
return;
|
5352
5352
|
}
|
5353
5353
|
const c = {
|
@@ -5360,7 +5360,7 @@ class Nn {
|
|
5360
5360
|
bypassAuthState: this.bypassAuthState
|
5361
5361
|
};
|
5362
5362
|
try {
|
5363
|
-
this.resolve(await this.getIdpTask(
|
5363
|
+
this.resolve(await this.getIdpTask(o)(c));
|
5364
5364
|
} catch (l) {
|
5365
5365
|
this.reject(l);
|
5366
5366
|
}
|
@@ -5375,10 +5375,10 @@ class Nn {
|
|
5375
5375
|
return Rs;
|
5376
5376
|
case "linkViaPopup":
|
5377
5377
|
case "linkViaRedirect":
|
5378
|
-
return
|
5378
|
+
return Ss;
|
5379
5379
|
case "reauthViaPopup":
|
5380
5380
|
case "reauthViaRedirect":
|
5381
|
-
return
|
5381
|
+
return ks;
|
5382
5382
|
default:
|
5383
5383
|
w(
|
5384
5384
|
this.auth,
|
@@ -5413,10 +5413,10 @@ class Nn {
|
|
5413
5413
|
* See the License for the specific language governing permissions and
|
5414
5414
|
* limitations under the License.
|
5415
5415
|
*/
|
5416
|
-
const
|
5417
|
-
class
|
5416
|
+
const As = new te(2e3, 1e4);
|
5417
|
+
class H extends Nn {
|
5418
5418
|
constructor(e, t, r, i, s) {
|
5419
|
-
super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null,
|
5419
|
+
super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null, H.currentPopupAction && H.currentPopupAction.cancel(), H.currentPopupAction = this;
|
5420
5420
|
}
|
5421
5421
|
async executeNotNull() {
|
5422
5422
|
const e = await this.execute();
|
@@ -5458,7 +5458,7 @@ class F extends Nn {
|
|
5458
5458
|
));
|
5459
5459
|
}
|
5460
5460
|
cleanUp() {
|
5461
|
-
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null,
|
5461
|
+
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, H.currentPopupAction = null;
|
5462
5462
|
}
|
5463
5463
|
pollUserCancellation() {
|
5464
5464
|
const e = () => {
|
@@ -5477,12 +5477,12 @@ class F extends Nn {
|
|
5477
5477
|
);
|
5478
5478
|
return;
|
5479
5479
|
}
|
5480
|
-
this.pollId = window.setTimeout(e,
|
5480
|
+
this.pollId = window.setTimeout(e, As.get());
|
5481
5481
|
};
|
5482
5482
|
e();
|
5483
5483
|
}
|
5484
5484
|
}
|
5485
|
-
|
5485
|
+
H.currentPopupAction = null;
|
5486
5486
|
/**
|
5487
5487
|
* @license
|
5488
5488
|
* Copyright 2020 Google LLC
|
@@ -5499,7 +5499,7 @@ F.currentPopupAction = null;
|
|
5499
5499
|
* See the License for the specific language governing permissions and
|
5500
5500
|
* limitations under the License.
|
5501
5501
|
*/
|
5502
|
-
const Os = "pendingRedirect",
|
5502
|
+
const Os = "pendingRedirect", oe = /* @__PURE__ */ new Map();
|
5503
5503
|
class Cs extends Nn {
|
5504
5504
|
constructor(e, t, r = !1) {
|
5505
5505
|
super(e, [
|
@@ -5515,7 +5515,7 @@ class Cs extends Nn {
|
|
5515
5515
|
* just return it.
|
5516
5516
|
*/
|
5517
5517
|
async execute() {
|
5518
|
-
let e =
|
5518
|
+
let e = oe.get(this.auth._key());
|
5519
5519
|
if (!e) {
|
5520
5520
|
try {
|
5521
5521
|
const r = await Ns(this.resolver, this.auth) ? await super.execute() : null;
|
@@ -5523,9 +5523,9 @@ class Cs extends Nn {
|
|
5523
5523
|
} catch (t) {
|
5524
5524
|
e = () => Promise.reject(t);
|
5525
5525
|
}
|
5526
|
-
|
5526
|
+
oe.set(this.auth._key(), e);
|
5527
5527
|
}
|
5528
|
-
return this.bypassAuthState ||
|
5528
|
+
return this.bypassAuthState || oe.set(this.auth._key(), () => Promise.resolve(null)), e();
|
5529
5529
|
}
|
5530
5530
|
async onAuthEvent(e) {
|
5531
5531
|
if (e.type === "signInViaRedirect")
|
@@ -5554,19 +5554,19 @@ async function Ns(n, e) {
|
|
5554
5554
|
return await r._remove(t), i;
|
5555
5555
|
}
|
5556
5556
|
function Ds(n, e) {
|
5557
|
-
|
5557
|
+
oe.set(n._key(), e);
|
5558
5558
|
}
|
5559
5559
|
function Ps(n) {
|
5560
5560
|
return E(n._redirectPersistence);
|
5561
5561
|
}
|
5562
5562
|
function Ms(n) {
|
5563
|
-
return
|
5563
|
+
return ae(Os, n.config.apiKey, n.name);
|
5564
5564
|
}
|
5565
5565
|
async function Ls(n, e, t = !1) {
|
5566
5566
|
if (I(n.app))
|
5567
5567
|
return Promise.reject(P(n));
|
5568
|
-
const r = ve(n), i = ws(r, e),
|
5569
|
-
return
|
5568
|
+
const r = ve(n), i = ws(r, e), a = await new Cs(r, i, t).execute();
|
5569
|
+
return a && !t && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
|
5570
5570
|
}
|
5571
5571
|
/**
|
5572
5572
|
* @license
|
@@ -5601,7 +5601,7 @@ class Bs {
|
|
5601
5601
|
let t = !1;
|
5602
5602
|
return this.consumers.forEach((r) => {
|
5603
5603
|
this.isEventForConsumer(e, r) && (t = !0, this.sendToConsumer(e, r), this.saveEventToCache(e));
|
5604
|
-
}), this.hasHandledPotentialRedirect || !
|
5604
|
+
}), this.hasHandledPotentialRedirect || !Fs(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
|
5605
5605
|
}
|
5606
5606
|
sendToConsumer(e, t) {
|
5607
5607
|
var r;
|
@@ -5616,19 +5616,19 @@ class Bs {
|
|
5616
5616
|
return t.filter.includes(e.type) && r;
|
5617
5617
|
}
|
5618
5618
|
hasEventBeenHandled(e) {
|
5619
|
-
return Date.now() - this.lastProcessedEventTime >= Us && this.cachedEventUids.clear(), this.cachedEventUids.has(
|
5619
|
+
return Date.now() - this.lastProcessedEventTime >= Us && this.cachedEventUids.clear(), this.cachedEventUids.has(At(e));
|
5620
5620
|
}
|
5621
5621
|
saveEventToCache(e) {
|
5622
|
-
this.cachedEventUids.add(
|
5622
|
+
this.cachedEventUids.add(At(e)), this.lastProcessedEventTime = Date.now();
|
5623
5623
|
}
|
5624
5624
|
}
|
5625
|
-
function
|
5625
|
+
function At(n) {
|
5626
5626
|
return [n.type, n.eventId, n.sessionId, n.tenantId].filter((e) => e).join("-");
|
5627
5627
|
}
|
5628
5628
|
function Dn({ type: n, error: e }) {
|
5629
5629
|
return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
|
5630
5630
|
}
|
5631
|
-
function
|
5631
|
+
function Fs(n) {
|
5632
5632
|
switch (n.type) {
|
5633
5633
|
case "signInViaRedirect":
|
5634
5634
|
case "linkViaRedirect":
|
@@ -5656,8 +5656,8 @@ function xs(n) {
|
|
5656
5656
|
* See the License for the specific language governing permissions and
|
5657
5657
|
* limitations under the License.
|
5658
5658
|
*/
|
5659
|
-
async function
|
5660
|
-
return
|
5659
|
+
async function Hs(n, e = {}) {
|
5660
|
+
return Z(n, "GET", "/v1/projects", e);
|
5661
5661
|
}
|
5662
5662
|
/**
|
5663
5663
|
* @license
|
@@ -5675,14 +5675,14 @@ async function Fs(n, e = {}) {
|
|
5675
5675
|
* See the License for the specific language governing permissions and
|
5676
5676
|
* limitations under the License.
|
5677
5677
|
*/
|
5678
|
-
const
|
5679
|
-
async function
|
5678
|
+
const xs = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Vs = /^https?/;
|
5679
|
+
async function js(n) {
|
5680
5680
|
if (n.config.emulator)
|
5681
5681
|
return;
|
5682
|
-
const { authorizedDomains: e } = await
|
5682
|
+
const { authorizedDomains: e } = await Hs(n);
|
5683
5683
|
for (const t of e)
|
5684
5684
|
try {
|
5685
|
-
if (
|
5685
|
+
if (Gs(t))
|
5686
5686
|
return;
|
5687
5687
|
} catch {
|
5688
5688
|
}
|
@@ -5692,15 +5692,15 @@ async function Ws(n) {
|
|
5692
5692
|
/* AuthErrorCode.INVALID_ORIGIN */
|
5693
5693
|
);
|
5694
5694
|
}
|
5695
|
-
function
|
5696
|
-
const e =
|
5695
|
+
function Gs(n) {
|
5696
|
+
const e = He(), { protocol: t, hostname: r } = new URL(e);
|
5697
5697
|
if (n.startsWith("chrome-extension://")) {
|
5698
|
-
const
|
5699
|
-
return
|
5698
|
+
const a = new URL(n);
|
5699
|
+
return a.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && a.hostname === r;
|
5700
5700
|
}
|
5701
|
-
if (!
|
5701
|
+
if (!Vs.test(t))
|
5702
5702
|
return !1;
|
5703
|
-
if (
|
5703
|
+
if (xs.test(n))
|
5704
5704
|
return r === n;
|
5705
5705
|
const i = n.replace(/\./g, "\\.");
|
5706
5706
|
return new RegExp("^(.+\\." + i + "|" + i + ")$", "i").test(r);
|
@@ -5721,7 +5721,7 @@ function Vs(n) {
|
|
5721
5721
|
* See the License for the specific language governing permissions and
|
5722
5722
|
* limitations under the License.
|
5723
5723
|
*/
|
5724
|
-
const
|
5724
|
+
const Ws = new te(3e4, 6e4);
|
5725
5725
|
function Ot() {
|
5726
5726
|
const n = g().___jsl;
|
5727
5727
|
if (n != null && n.H) {
|
@@ -5734,7 +5734,7 @@ function Ot() {
|
|
5734
5734
|
function zs(n) {
|
5735
5735
|
return new Promise((e, t) => {
|
5736
5736
|
var r, i, s;
|
5737
|
-
function
|
5737
|
+
function a() {
|
5738
5738
|
Ot(), gapi.load("gapi.iframes", {
|
5739
5739
|
callback: () => {
|
5740
5740
|
e(gapi.iframes.getContext());
|
@@ -5746,29 +5746,29 @@ function zs(n) {
|
|
5746
5746
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
5747
5747
|
));
|
5748
5748
|
},
|
5749
|
-
timeout:
|
5749
|
+
timeout: Ws.get()
|
5750
5750
|
});
|
5751
5751
|
}
|
5752
5752
|
if (!((i = (r = g().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
|
5753
5753
|
e(gapi.iframes.getContext());
|
5754
5754
|
else if (!((s = g().gapi) === null || s === void 0) && s.load)
|
5755
|
-
|
5755
|
+
a();
|
5756
5756
|
else {
|
5757
|
-
const
|
5758
|
-
return g()[
|
5759
|
-
gapi.load ?
|
5757
|
+
const o = Xi("iframefcb");
|
5758
|
+
return g()[o] = () => {
|
5759
|
+
gapi.load ? a() : t(_(
|
5760
5760
|
n,
|
5761
5761
|
"network-request-failed"
|
5762
5762
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
5763
5763
|
));
|
5764
|
-
},
|
5764
|
+
}, $i(`${Ji()}?onload=${o}`).catch((c) => t(c));
|
5765
5765
|
}
|
5766
5766
|
}).catch((e) => {
|
5767
5767
|
throw ce = null, e;
|
5768
5768
|
});
|
5769
5769
|
}
|
5770
5770
|
let ce = null;
|
5771
|
-
function
|
5771
|
+
function Zs(n) {
|
5772
5772
|
return ce = ce || zs(n), ce;
|
5773
5773
|
}
|
5774
5774
|
/**
|
@@ -5787,7 +5787,7 @@ function $s(n) {
|
|
5787
5787
|
* See the License for the specific language governing permissions and
|
5788
5788
|
* limitations under the License.
|
5789
5789
|
*/
|
5790
|
-
const
|
5790
|
+
const $s = new te(5e3, 15e3), Js = "__/auth/iframe", Xs = "emulator/auth/iframe", Ys = {
|
5791
5791
|
style: {
|
5792
5792
|
position: "absolute",
|
5793
5793
|
top: "-100px",
|
@@ -5810,7 +5810,7 @@ function qs(n) {
|
|
5810
5810
|
"auth-domain-config-required"
|
5811
5811
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
5812
5812
|
);
|
5813
|
-
const t = e.emulator ? Xe(e, Xs) : `https://${n.config.authDomain}/${
|
5813
|
+
const t = e.emulator ? Xe(e, Xs) : `https://${n.config.authDomain}/${Js}`, r = {
|
5814
5814
|
apiKey: e.apiKey,
|
5815
5815
|
appName: n.name,
|
5816
5816
|
v: ee
|
@@ -5820,7 +5820,7 @@ function qs(n) {
|
|
5820
5820
|
return s.length && (r.fw = s.join(",")), `${t}?${Q(r).slice(1)}`;
|
5821
5821
|
}
|
5822
5822
|
async function Qs(n) {
|
5823
|
-
const e = await
|
5823
|
+
const e = await Zs(n), t = g().gapi;
|
5824
5824
|
return d(
|
5825
5825
|
t,
|
5826
5826
|
n,
|
@@ -5837,18 +5837,18 @@ async function Qs(n) {
|
|
5837
5837
|
// Prevent iframe from closing on mouse out.
|
5838
5838
|
setHideOnLeave: !1
|
5839
5839
|
});
|
5840
|
-
const
|
5840
|
+
const a = _(
|
5841
5841
|
n,
|
5842
5842
|
"network-request-failed"
|
5843
5843
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
5844
|
-
),
|
5845
|
-
s(
|
5846
|
-
},
|
5844
|
+
), o = g().setTimeout(() => {
|
5845
|
+
s(a);
|
5846
|
+
}, $s.get());
|
5847
5847
|
function c() {
|
5848
|
-
g().clearTimeout(
|
5848
|
+
g().clearTimeout(o), i(r);
|
5849
5849
|
}
|
5850
5850
|
r.ping(c).then(c, () => {
|
5851
|
-
s(
|
5851
|
+
s(a);
|
5852
5852
|
});
|
5853
5853
|
}));
|
5854
5854
|
}
|
@@ -5868,12 +5868,12 @@ async function Qs(n) {
|
|
5868
5868
|
* See the License for the specific language governing permissions and
|
5869
5869
|
* limitations under the License.
|
5870
5870
|
*/
|
5871
|
-
const
|
5871
|
+
const ea = {
|
5872
5872
|
location: "yes",
|
5873
5873
|
resizable: "yes",
|
5874
5874
|
statusbar: "yes",
|
5875
5875
|
toolbar: "no"
|
5876
|
-
},
|
5876
|
+
}, ta = 500, na = 600, ra = "_blank", ia = "http://localhost";
|
5877
5877
|
class Ct {
|
5878
5878
|
constructor(e) {
|
5879
5879
|
this.window = e, this.associatedEvent = null;
|
@@ -5886,20 +5886,20 @@ class Ct {
|
|
5886
5886
|
}
|
5887
5887
|
}
|
5888
5888
|
}
|
5889
|
-
function
|
5890
|
-
const s = Math.max((window.screen.availHeight - i) / 2, 0).toString(),
|
5891
|
-
let
|
5892
|
-
const c = Object.assign(Object.assign({},
|
5889
|
+
function sa(n, e, t, r = ta, i = na) {
|
5890
|
+
const s = Math.max((window.screen.availHeight - i) / 2, 0).toString(), a = Math.max((window.screen.availWidth - r) / 2, 0).toString();
|
5891
|
+
let o = "";
|
5892
|
+
const c = Object.assign(Object.assign({}, ea), {
|
5893
5893
|
width: r.toString(),
|
5894
5894
|
height: i.toString(),
|
5895
5895
|
top: s,
|
5896
|
-
left:
|
5896
|
+
left: a
|
5897
5897
|
}), l = f().toLowerCase();
|
5898
|
-
t && (
|
5899
|
-
const u = Object.entries(c).reduce((m, [v,
|
5900
|
-
if (
|
5901
|
-
return
|
5902
|
-
const p = window.open(e || "",
|
5898
|
+
t && (o = hn(l) ? ra : t), dn(l) && (e = e || ia, c.scrollbars = "yes");
|
5899
|
+
const u = Object.entries(c).reduce((m, [v, F]) => `${m}${v}=${F},`, "");
|
5900
|
+
if (Hi(l) && o !== "_self")
|
5901
|
+
return aa(e || "", o), new Ct(null);
|
5902
|
+
const p = window.open(e || "", o, u);
|
5903
5903
|
d(
|
5904
5904
|
p,
|
5905
5905
|
n,
|
@@ -5912,7 +5912,7 @@ function so(n, e, t, r = to, i = no) {
|
|
5912
5912
|
}
|
5913
5913
|
return new Ct(p);
|
5914
5914
|
}
|
5915
|
-
function
|
5915
|
+
function aa(n, e) {
|
5916
5916
|
const t = document.createElement("a");
|
5917
5917
|
t.href = n, t.target = e;
|
5918
5918
|
const r = document.createEvent("MouseEvent");
|
@@ -5934,7 +5934,7 @@ function oo(n, e) {
|
|
5934
5934
|
* See the License for the specific language governing permissions and
|
5935
5935
|
* limitations under the License.
|
5936
5936
|
*/
|
5937
|
-
const
|
5937
|
+
const oa = "__/auth/handler", ca = "emulator/auth/handler", la = encodeURIComponent("fac");
|
5938
5938
|
async function Nt(n, e, t, r, i, s) {
|
5939
5939
|
d(
|
5940
5940
|
n.config.authDomain,
|
@@ -5947,7 +5947,7 @@ async function Nt(n, e, t, r, i, s) {
|
|
5947
5947
|
"invalid-api-key"
|
5948
5948
|
/* AuthErrorCode.INVALID_API_KEY */
|
5949
5949
|
);
|
5950
|
-
const
|
5950
|
+
const a = {
|
5951
5951
|
apiKey: n.config.apiKey,
|
5952
5952
|
appName: n.name,
|
5953
5953
|
authType: t,
|
@@ -5956,23 +5956,23 @@ async function Nt(n, e, t, r, i, s) {
|
|
5956
5956
|
eventId: i
|
5957
5957
|
};
|
5958
5958
|
if (e instanceof yn) {
|
5959
|
-
e.setDefaultLanguage(n.languageCode),
|
5959
|
+
e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "", lr(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
|
5960
5960
|
for (const [u, p] of Object.entries({}))
|
5961
|
-
|
5961
|
+
a[u] = p;
|
5962
5962
|
}
|
5963
5963
|
if (e instanceof ne) {
|
5964
5964
|
const u = e.getScopes().filter((p) => p !== "");
|
5965
|
-
u.length > 0 && (
|
5965
|
+
u.length > 0 && (a.scopes = u.join(","));
|
5966
5966
|
}
|
5967
|
-
n.tenantId && (
|
5968
|
-
const
|
5969
|
-
for (const u of Object.keys(
|
5970
|
-
|
5971
|
-
const c = await n._getAppCheckToken(), l = c ? `#${
|
5972
|
-
return `${
|
5967
|
+
n.tenantId && (a.tid = n.tenantId);
|
5968
|
+
const o = a;
|
5969
|
+
for (const u of Object.keys(o))
|
5970
|
+
o[u] === void 0 && delete o[u];
|
5971
|
+
const c = await n._getAppCheckToken(), l = c ? `#${la}=${encodeURIComponent(c)}` : "";
|
5972
|
+
return `${da(n)}?${Q(o).slice(1)}${l}`;
|
5973
5973
|
}
|
5974
|
-
function
|
5975
|
-
return n.emulator ? Xe(n,
|
5974
|
+
function da({ config: n }) {
|
5975
|
+
return n.emulator ? Xe(n, ca) : `https://${n.authDomain}/${oa}`;
|
5976
5976
|
}
|
5977
5977
|
/**
|
5978
5978
|
* @license
|
@@ -5991,21 +5991,21 @@ function uo({ config: n }) {
|
|
5991
5991
|
* limitations under the License.
|
5992
5992
|
*/
|
5993
5993
|
const Ne = "webStorageSupport";
|
5994
|
-
class
|
5994
|
+
class ua {
|
5995
5995
|
constructor() {
|
5996
|
-
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence =
|
5996
|
+
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = kn, this._completeRedirectFn = Ls, this._overrideRedirectResult = Ds;
|
5997
5997
|
}
|
5998
5998
|
// Wrapping in async even though we don't await anywhere in order
|
5999
5999
|
// to make sure errors are raised as promise rejections
|
6000
6000
|
async _openPopup(e, t, r, i) {
|
6001
6001
|
var s;
|
6002
6002
|
R((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
6003
|
-
const
|
6004
|
-
return
|
6003
|
+
const a = await Nt(e, t, r, He(), i);
|
6004
|
+
return sa(e, a, Qe());
|
6005
6005
|
}
|
6006
6006
|
async _openRedirect(e, t, r, i) {
|
6007
6007
|
await this._originValidation(e);
|
6008
|
-
const s = await Nt(e, t, r,
|
6008
|
+
const s = await Nt(e, t, r, He(), i);
|
6009
6009
|
return fs(s), new Promise(() => {
|
6010
6010
|
});
|
6011
6011
|
}
|
@@ -6035,8 +6035,8 @@ class ho {
|
|
6035
6035
|
_isIframeWebStorageSupported(e, t) {
|
6036
6036
|
this.iframes[e._key()].send(Ne, { type: Ne }, (i) => {
|
6037
6037
|
var s;
|
6038
|
-
const
|
6039
|
-
|
6038
|
+
const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[Ne];
|
6039
|
+
a !== void 0 && t(!!a), w(
|
6040
6040
|
e,
|
6041
6041
|
"internal-error"
|
6042
6042
|
/* AuthErrorCode.INTERNAL_ERROR */
|
@@ -6045,13 +6045,13 @@ class ho {
|
|
6045
6045
|
}
|
6046
6046
|
_originValidation(e) {
|
6047
6047
|
const t = e._key();
|
6048
|
-
return this.originValidationPromises[t] || (this.originValidationPromises[t] =
|
6048
|
+
return this.originValidationPromises[t] || (this.originValidationPromises[t] = js(e)), this.originValidationPromises[t];
|
6049
6049
|
}
|
6050
6050
|
get _shouldInitProactively() {
|
6051
6051
|
return gn() || un() || Ke();
|
6052
6052
|
}
|
6053
6053
|
}
|
6054
|
-
const
|
6054
|
+
const ha = ua;
|
6055
6055
|
var Dt = "@firebase/auth", Pt = "1.7.9";
|
6056
6056
|
/**
|
6057
6057
|
* @license
|
@@ -6069,7 +6069,7 @@ var Dt = "@firebase/auth", Pt = "1.7.9";
|
|
6069
6069
|
* See the License for the specific language governing permissions and
|
6070
6070
|
* limitations under the License.
|
6071
6071
|
*/
|
6072
|
-
class
|
6072
|
+
class pa {
|
6073
6073
|
constructor(e) {
|
6074
6074
|
this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
|
6075
6075
|
}
|
@@ -6120,7 +6120,7 @@ class fo {
|
|
6120
6120
|
* See the License for the specific language governing permissions and
|
6121
6121
|
* limitations under the License.
|
6122
6122
|
*/
|
6123
|
-
function
|
6123
|
+
function fa(n) {
|
6124
6124
|
switch (n) {
|
6125
6125
|
case "Node":
|
6126
6126
|
return "node";
|
@@ -6136,15 +6136,15 @@ function mo(n) {
|
|
6136
6136
|
return;
|
6137
6137
|
}
|
6138
6138
|
}
|
6139
|
-
function
|
6140
|
-
X(new
|
6139
|
+
function ma(n) {
|
6140
|
+
X(new W(
|
6141
6141
|
"auth",
|
6142
6142
|
(e, { options: t }) => {
|
6143
|
-
const r = e.getProvider("app").getImmediate(), i = e.getProvider("heartbeat"), s = e.getProvider("app-check-internal"), { apiKey:
|
6144
|
-
d(
|
6143
|
+
const r = e.getProvider("app").getImmediate(), i = e.getProvider("heartbeat"), s = e.getProvider("app-check-internal"), { apiKey: a, authDomain: o } = r.options;
|
6144
|
+
d(a && !a.includes(":"), "invalid-api-key", { appName: r.name });
|
6145
6145
|
const c = {
|
6146
|
-
apiKey:
|
6147
|
-
authDomain:
|
6146
|
+
apiKey: a,
|
6147
|
+
authDomain: o,
|
6148
6148
|
clientPlatform: n,
|
6149
6149
|
apiHost: "identitytoolkit.googleapis.com",
|
6150
6150
|
tokenApiHost: "securetoken.googleapis.com",
|
@@ -6163,21 +6163,21 @@ function _o(n) {
|
|
6163
6163
|
"auth-internal"
|
6164
6164
|
/* _ComponentName.AUTH_INTERNAL */
|
6165
6165
|
).initialize();
|
6166
|
-
})), X(new
|
6166
|
+
})), X(new W(
|
6167
6167
|
"auth-internal",
|
6168
6168
|
(e) => {
|
6169
6169
|
const t = ve(e.getProvider(
|
6170
6170
|
"auth"
|
6171
6171
|
/* _ComponentName.AUTH */
|
6172
6172
|
).getImmediate());
|
6173
|
-
return ((r) => new
|
6173
|
+
return ((r) => new pa(r))(t);
|
6174
6174
|
},
|
6175
6175
|
"PRIVATE"
|
6176
6176
|
/* ComponentType.PRIVATE */
|
6177
6177
|
).setInstantiationMode(
|
6178
6178
|
"EXPLICIT"
|
6179
6179
|
/* InstantiationMode.EXPLICIT */
|
6180
|
-
)),
|
6180
|
+
)), x(Dt, Pt, fa(n)), x(Dt, Pt, "esm2017");
|
6181
6181
|
}
|
6182
6182
|
/**
|
6183
6183
|
* @license
|
@@ -6195,11 +6195,11 @@ function _o(n) {
|
|
6195
6195
|
* See the License for the specific language governing permissions and
|
6196
6196
|
* limitations under the License.
|
6197
6197
|
*/
|
6198
|
-
const
|
6198
|
+
const _a = 5 * 60, ga = zt("authIdTokenMaxAge") || _a;
|
6199
6199
|
let Mt = null;
|
6200
|
-
const
|
6200
|
+
const va = (n) => async (e) => {
|
6201
6201
|
const t = e && await e.getIdTokenResult(), r = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
|
6202
|
-
if (r && r >
|
6202
|
+
if (r && r > ga)
|
6203
6203
|
return;
|
6204
6204
|
const i = t == null ? void 0 : t.token;
|
6205
6205
|
Mt !== i && (Mt = i, await fetch(n, {
|
@@ -6209,33 +6209,33 @@ const Io = (n) => async (e) => {
|
|
6209
6209
|
} : {}
|
6210
6210
|
}));
|
6211
6211
|
};
|
6212
|
-
function
|
6212
|
+
function Ia(n = ui()) {
|
6213
6213
|
const e = Xt(n, "auth");
|
6214
6214
|
if (e.isInitialized())
|
6215
6215
|
return e.getImmediate();
|
6216
6216
|
const t = Yi(n, {
|
6217
|
-
popupRedirectResolver:
|
6217
|
+
popupRedirectResolver: ha,
|
6218
6218
|
persistence: [
|
6219
6219
|
Ts,
|
6220
6220
|
us,
|
6221
|
-
|
6221
|
+
kn
|
6222
6222
|
]
|
6223
6223
|
}), r = zt("authTokenSyncURL");
|
6224
6224
|
if (r && typeof isSecureContext == "boolean" && isSecureContext) {
|
6225
6225
|
const s = new URL(r, location.origin);
|
6226
6226
|
if (location.origin === s.origin) {
|
6227
|
-
const
|
6228
|
-
cs(t,
|
6227
|
+
const a = va(s.toString());
|
6228
|
+
cs(t, a, () => a(t.currentUser)), os(t, (o) => a(o));
|
6229
6229
|
}
|
6230
6230
|
}
|
6231
|
-
const i =
|
6231
|
+
const i = Gt("auth");
|
6232
6232
|
return i && qi(t, `http://${i}`), t;
|
6233
6233
|
}
|
6234
|
-
function
|
6234
|
+
function ba() {
|
6235
6235
|
var n, e;
|
6236
6236
|
return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
|
6237
6237
|
}
|
6238
|
-
|
6238
|
+
Zi({
|
6239
6239
|
loadJS(n) {
|
6240
6240
|
return new Promise((e, t) => {
|
6241
6241
|
const r = document.createElement("script");
|
@@ -6245,142 +6245,142 @@ $i({
|
|
6245
6245
|
/* AuthErrorCode.INTERNAL_ERROR */
|
6246
6246
|
);
|
6247
6247
|
s.customData = i, t(s);
|
6248
|
-
}, r.type = "text/javascript", r.charset = "UTF-8",
|
6248
|
+
}, r.type = "text/javascript", r.charset = "UTF-8", ba().appendChild(r);
|
6249
6249
|
});
|
6250
6250
|
},
|
6251
6251
|
gapiScript: "https://apis.google.com/js/api.js",
|
6252
6252
|
recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
|
6253
6253
|
recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
|
6254
6254
|
});
|
6255
|
-
|
6255
|
+
ma(
|
6256
6256
|
"Browser"
|
6257
6257
|
/* ClientPlatform.BROWSER */
|
6258
6258
|
);
|
6259
|
-
const
|
6259
|
+
const ya = Ln({
|
6260
6260
|
history: Un(),
|
6261
|
-
routes: [...
|
6261
|
+
routes: [...We, ...Ge]
|
6262
6262
|
});
|
6263
6263
|
let De, Pe;
|
6264
|
-
|
6264
|
+
ya.beforeEach(async (n) => {
|
6265
6265
|
const {
|
6266
6266
|
sessionUser: e,
|
6267
6267
|
currentRestaurant: t,
|
6268
6268
|
currentBusiness: r,
|
6269
6269
|
readRestaurants: i,
|
6270
6270
|
changeRestaurant: s
|
6271
|
-
} =
|
6272
|
-
return n.name.startsWith("mf-payment-admin") ? e.value ? !0 : (De || (De = new Promise((
|
6273
|
-
const
|
6271
|
+
} = je();
|
6272
|
+
return n.name.startsWith("mf-payment-admin") ? e.value ? !0 : (De || (De = new Promise((a) => {
|
6273
|
+
const o = $(e, (c) => {
|
6274
6274
|
var l;
|
6275
|
-
c && (
|
6275
|
+
c && (o(), a(((l = e.value) == null ? void 0 : l.isInternal) ?? !1));
|
6276
6276
|
});
|
6277
6277
|
})), De) : !r.value || !t.value ? (Pe || (Pe = Promise.all([
|
6278
|
-
new Promise(async (
|
6279
|
-
const
|
6280
|
-
c && (
|
6278
|
+
new Promise(async (a) => {
|
6279
|
+
const o = $(r, (c) => {
|
6280
|
+
c && (o(), a(!0));
|
6281
6281
|
});
|
6282
6282
|
}),
|
6283
|
-
new Promise(async (
|
6284
|
-
const
|
6285
|
-
l && (
|
6283
|
+
new Promise(async (a) => {
|
6284
|
+
const o = $(t, (l) => {
|
6285
|
+
l && (o(), a(!0));
|
6286
6286
|
}), c = await i();
|
6287
6287
|
await s(c == null ? void 0 : c.at(0));
|
6288
6288
|
})
|
6289
|
-
]).then((
|
6289
|
+
]).then((a) => !0)), Pe) : !0;
|
6290
6290
|
});
|
6291
|
-
const
|
6291
|
+
const Ea = /* @__PURE__ */ Ut({
|
6292
6292
|
__name: "AppSidebar",
|
6293
6293
|
setup(n) {
|
6294
|
-
const e =
|
6295
|
-
|
6296
|
-
let
|
6297
|
-
t.currentRoute.value.meta.parent && (
|
6294
|
+
const e = je(), t = Bn(), r = Fn(t.currentRoute.value.name);
|
6295
|
+
$(t.currentRoute, () => {
|
6296
|
+
let o = t.currentRoute.value.name;
|
6297
|
+
t.currentRoute.value.meta.parent && (o = t.currentRoute.value.meta.parent), r.value = o;
|
6298
6298
|
});
|
6299
|
-
const i =
|
6299
|
+
const i = We.map((o) => {
|
6300
6300
|
var l;
|
6301
|
-
if (!((l =
|
6301
|
+
if (!((l = o.meta) != null && l.sidebarDisplay))
|
6302
6302
|
return;
|
6303
6303
|
const c = {
|
6304
|
-
label:
|
6305
|
-
value:
|
6304
|
+
label: o.meta.sidebarDisplay,
|
6305
|
+
value: o.name,
|
6306
6306
|
action: () => {
|
6307
|
-
if (t.currentRoute.value.name !==
|
6308
|
-
return t.push({ name:
|
6307
|
+
if (t.currentRoute.value.name !== o.name)
|
6308
|
+
return t.push({ name: o.name });
|
6309
6309
|
}
|
6310
6310
|
};
|
6311
|
-
return
|
6312
|
-
}).filter((
|
6311
|
+
return o.meta.sidebarNew && (c.badge = () => Hn(Gn.FmPill, { label: "New" })), c;
|
6312
|
+
}).filter((o) => !!o), s = Ge.map((o) => {
|
6313
6313
|
var c;
|
6314
|
-
if ((c =
|
6314
|
+
if ((c = o.meta) != null && c.sidebarDisplay)
|
6315
6315
|
return {
|
6316
|
-
label:
|
6317
|
-
value:
|
6316
|
+
label: o.meta.sidebarDisplay,
|
6317
|
+
value: o.name,
|
6318
6318
|
action: () => {
|
6319
|
-
if (t.currentRoute.value.name !==
|
6320
|
-
return t.push({ name:
|
6319
|
+
if (t.currentRoute.value.name !== o.name)
|
6320
|
+
return t.push({ name: o.name });
|
6321
6321
|
}
|
6322
6322
|
};
|
6323
|
-
}).filter((
|
6323
|
+
}).filter((o) => !!o), a = Lt(() => {
|
6324
6324
|
var c;
|
6325
|
-
const
|
6326
|
-
return (c = e.sessionUser.value) != null && c.isInternal && (
|
6325
|
+
const o = [...i];
|
6326
|
+
return (c = e.sessionUser.value) != null && c.isInternal && (o.push({
|
6327
6327
|
label: "",
|
6328
6328
|
value: "divider",
|
6329
6329
|
disabled: !0
|
6330
|
-
}),
|
6330
|
+
}), o.push({
|
6331
6331
|
label: "Admin Panel",
|
6332
6332
|
icon: "admin_panel_settings",
|
6333
6333
|
value: "divider",
|
6334
6334
|
disabled: !0
|
6335
|
-
}),
|
6335
|
+
}), o.push(...s)), o;
|
6336
6336
|
});
|
6337
|
-
return (
|
6337
|
+
return (o, c) => {
|
6338
6338
|
const l = Bt("FmCollapsibleTabs");
|
6339
|
-
return
|
6339
|
+
return Ft(), Ht(l, {
|
6340
6340
|
modelValue: r.value,
|
6341
6341
|
"onUpdate:modelValue": c[0] || (c[0] = (u) => r.value = u),
|
6342
|
-
items:
|
6342
|
+
items: a.value,
|
6343
6343
|
class: "py-16 px-8 w-[240px]"
|
6344
6344
|
}, null, 8, ["modelValue", "items"]);
|
6345
6345
|
};
|
6346
6346
|
}
|
6347
6347
|
});
|
6348
|
-
var
|
6349
|
-
const
|
6348
|
+
var Ta = { 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" };
|
6349
|
+
const Na = /* @__PURE__ */ Ut({
|
6350
6350
|
__name: "App",
|
6351
6351
|
setup(n) {
|
6352
|
-
const { state: e } =
|
6352
|
+
const { state: e } = Wn(), t = je(), r = Yt(Ta.firebase);
|
6353
6353
|
async function i() {
|
6354
6354
|
const s = t.sessionUser.value;
|
6355
6355
|
if (!s || !s.token) return;
|
6356
|
-
const
|
6357
|
-
await
|
6356
|
+
const a = await s.getCustomToken(), o = Ia(r);
|
6357
|
+
await as(o, a);
|
6358
6358
|
}
|
6359
|
-
return i(),
|
6359
|
+
return i(), $(t.sessionUser, i), xn(() => {
|
6360
6360
|
e.isIframe && parent.postMessage({ event: "ready" }, "*");
|
6361
|
-
}),
|
6362
|
-
t.registerSidebarComponent(
|
6363
|
-
}), (s,
|
6364
|
-
const
|
6365
|
-
return
|
6361
|
+
}), Vn(() => {
|
6362
|
+
t.registerSidebarComponent(Ea);
|
6363
|
+
}), (s, a) => {
|
6364
|
+
const o = Bt("RouterView");
|
6365
|
+
return Ft(), Ht(o);
|
6366
6366
|
};
|
6367
6367
|
}
|
6368
|
-
}),
|
6369
|
-
...
|
6370
|
-
...
|
6368
|
+
}), Da = [
|
6369
|
+
...Ge,
|
6370
|
+
...We
|
6371
6371
|
];
|
6372
6372
|
export {
|
6373
|
-
|
6373
|
+
W as C,
|
6374
6374
|
M as F,
|
6375
6375
|
ee as S,
|
6376
6376
|
X as _,
|
6377
6377
|
Xt as a,
|
6378
|
-
|
6378
|
+
Oa as b,
|
6379
6379
|
ui as c,
|
6380
|
-
|
6380
|
+
Ca as d,
|
6381
6381
|
gt as e,
|
6382
|
-
|
6382
|
+
Da as f,
|
6383
6383
|
z as g,
|
6384
|
-
|
6385
|
-
|
6384
|
+
Na as h,
|
6385
|
+
x as r
|
6386
6386
|
};
|