@feedmepos/mf-payment 1.0.8-beta.1 → 1.0.9
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-CJFgqM4l.js → PayoutAccount-Br3Cug44.js} +3 -3
- package/dist/{PayoutAccount-Bch4NyZ0.js → PayoutAccount-g2FDE-px.js} +5 -5
- package/dist/{PayoutAccountSelector.vue_vue_type_script_setup_true_lang-BP6q-hFB.js → PayoutAccountSelector.vue_vue_type_script_setup_true_lang-COl_Wwn4.js} +2 -2
- package/dist/{PayoutAccountSetting-ZyfRCfGk.js → PayoutAccountSetting-Ma0Kk96H.js} +4 -4
- package/dist/{Restaurant-BkZTwxbW.js → Restaurant-E-KrKN8f.js} +4 -4
- package/dist/{RestaurantSetting-B-6TIlEz.js → RestaurantSetting-B0n1_tSv.js} +4 -4
- package/dist/{Settlement-DIbZhKmU.js → Settlement-C7bSbTBb.js} +3 -3
- package/dist/{Settlement-B4DGdy3Z.js → Settlement-D-2hI9k8.js} +3 -3
- package/dist/{SettlementTransactions-CcUR059w.js → SettlementTransactions-D8UziVjz.js} +4 -4
- package/dist/{SettlementTransactions-DOpIZzMe.js → SettlementTransactions-Wq5NIhMx.js} +4 -4
- package/dist/{Terminal-DcBrNedN.js → Terminal-BsEhnhbP.js} +5 -5
- package/dist/{TerminalSetting-CjO6adlh.js → TerminalSetting-DaxogFY0.js} +3 -3
- package/dist/{TerminalTransaction--CyKOaoc.js → TerminalTransaction-BVoXsl_B.js} +6 -6
- package/dist/TerminalTransaction-Dg9akSQ7.js +819 -0
- package/dist/{Transaction-BnOf8Hy-.js → Transaction-CWsdRULE.js} +5 -5
- package/dist/{Transaction-BUH8Npkc.js → Transaction-f7MyYTeG.js} +7 -7
- package/dist/{TransactionOld-BxF9MPxi.js → TransactionOld-Dg1VfoPL.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-BU3AojN2.js → TransactionTable.vue_vue_type_script_setup_true_lang-BvVe_h5o.js} +30 -29
- package/dist/{app-CghWRans.js → app-Btr2qPjz.js} +522 -522
- package/dist/app.js +1 -1
- package/dist/{assets-BlR1tOyc.js → assets-Df86JtwT.js} +1 -1
- package/dist/{grafana-Cjo03wNg.js → grafana-D_odlNlk.js} +12 -12
- package/dist/{index-DpvLozPw.js → index-88uVCPBC.js} +1 -1
- package/dist/{index-CzA12mtK.js → index-B0Il8Cyt.js} +1 -1
- package/dist/{index-C1_RqNm1.js → index-B3bL56uQ.js} +1 -1
- package/dist/{index-CX_SK10F.js → index-C04zXgLq.js} +1 -1
- package/dist/{index-Ci3t7V3E.js → index-C4CzRp85.js} +2 -2
- package/dist/{index-CKNecOPU.js → index-Ce0UCIxc.js} +1 -1
- package/dist/{index-B8l4k29l.js → index-DSsz2xN0.js} +1 -1
- package/dist/{index-DzXOPu7i.js → index-DjUkx9xh.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-B_Lm1Dd5.js → index.vue_vue_type_script_setup_true_lang-6UaAppN6.js} +1 -1
- package/dist/model/transaction.d.ts +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-hMXDhYLK.js → payout-account-DTIZuvPO.js} +2 -2
- package/dist/{transaction-taqGa8Ay.js → transaction-DeAbXoT4.js} +15 -11
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/TerminalTransaction-CEYzW5Vz.js +0 -819
@@ -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
|
2
|
+
import { computed as Lt, watch as J, defineComponent as Ut, ref as xn, resolveComponent as Bt, openBlock as xt, createBlock as Wt, h as Wn, onMounted as jn, onBeforeMount as Fn } from "vue";
|
3
3
|
import { useCoreStore as He } from "@feedmepos/mf-common";
|
4
4
|
import { defineStore as Hn } from "pinia";
|
5
|
-
import { components as
|
6
|
-
const
|
5
|
+
import { components as Vn } from "@feedmepos/ui-library";
|
6
|
+
const Ve = [
|
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-E-KrKN8f.js")
|
14
14
|
},
|
15
15
|
{
|
16
16
|
path: "/admin/restaurants/:restaurantId",
|
@@ -19,7 +19,7 @@ const Ge = [
|
|
19
19
|
meta: {
|
20
20
|
parent: "mf-payment-admin.restaurant"
|
21
21
|
},
|
22
|
-
component: () => import("./RestaurantSetting-
|
22
|
+
component: () => import("./RestaurantSetting-B0n1_tSv.js")
|
23
23
|
},
|
24
24
|
{
|
25
25
|
path: "/admin/payout-accounts",
|
@@ -27,7 +27,7 @@ const Ge = [
|
|
27
27
|
meta: {
|
28
28
|
sidebarDisplay: "Payout Accounts"
|
29
29
|
},
|
30
|
-
component: () => import("./PayoutAccount-
|
30
|
+
component: () => import("./PayoutAccount-g2FDE-px.js")
|
31
31
|
},
|
32
32
|
{
|
33
33
|
path: "/admin/payout-accounts/:accountId",
|
@@ -36,7 +36,7 @@ const Ge = [
|
|
36
36
|
meta: {
|
37
37
|
parent: "mf-payment-admin.payout-account"
|
38
38
|
},
|
39
|
-
component: () => import("./PayoutAccountSetting-
|
39
|
+
component: () => import("./PayoutAccountSetting-Ma0Kk96H.js")
|
40
40
|
},
|
41
41
|
{
|
42
42
|
path: "/admin/terminal",
|
@@ -44,7 +44,7 @@ const Ge = [
|
|
44
44
|
meta: {
|
45
45
|
sidebarDisplay: "Terminals"
|
46
46
|
},
|
47
|
-
component: () => import("./Terminal-
|
47
|
+
component: () => import("./Terminal-BsEhnhbP.js")
|
48
48
|
},
|
49
49
|
{
|
50
50
|
path: "/admin/terminal/:terminalId",
|
@@ -53,7 +53,7 @@ const Ge = [
|
|
53
53
|
meta: {
|
54
54
|
parent: "mf-payment-admin.terminal"
|
55
55
|
},
|
56
|
-
component: () => import("./TerminalSetting-
|
56
|
+
component: () => import("./TerminalSetting-DaxogFY0.js")
|
57
57
|
},
|
58
58
|
{
|
59
59
|
path: "/admin/terminal-transaction",
|
@@ -61,7 +61,7 @@ const Ge = [
|
|
61
61
|
meta: {
|
62
62
|
sidebarDisplay: "Terminal Transactions"
|
63
63
|
},
|
64
|
-
component: () => import("./TerminalTransaction
|
64
|
+
component: () => import("./TerminalTransaction-BVoXsl_B.js")
|
65
65
|
},
|
66
66
|
{
|
67
67
|
path: "/admin/transaction",
|
@@ -69,7 +69,7 @@ const Ge = [
|
|
69
69
|
meta: {
|
70
70
|
sidebarDisplay: "Online Transactions"
|
71
71
|
},
|
72
|
-
component: () => import("./Transaction-
|
72
|
+
component: () => import("./Transaction-f7MyYTeG.js")
|
73
73
|
},
|
74
74
|
{
|
75
75
|
path: "/admin/settlement",
|
@@ -77,7 +77,7 @@ const Ge = [
|
|
77
77
|
meta: {
|
78
78
|
sidebarDisplay: "Settlements"
|
79
79
|
},
|
80
|
-
component: () => import("./Settlement-
|
80
|
+
component: () => import("./Settlement-C7bSbTBb.js")
|
81
81
|
},
|
82
82
|
{
|
83
83
|
path: "/admin/settlement/:settlementId",
|
@@ -86,9 +86,9 @@ const Ge = [
|
|
86
86
|
meta: {
|
87
87
|
parent: "mf-payment-admin.settlement"
|
88
88
|
},
|
89
|
-
component: () => import("./SettlementTransactions-
|
89
|
+
component: () => import("./SettlementTransactions-Wq5NIhMx.js")
|
90
90
|
}
|
91
|
-
],
|
91
|
+
], Ge = [
|
92
92
|
{
|
93
93
|
path: "",
|
94
94
|
redirect: { name: "mf-payment-payout-account" }
|
@@ -96,7 +96,7 @@ const Ge = [
|
|
96
96
|
{
|
97
97
|
path: "/payout-account",
|
98
98
|
name: "mf-payment-payout-account",
|
99
|
-
component: () => import("./PayoutAccount-
|
99
|
+
component: () => import("./PayoutAccount-Br3Cug44.js"),
|
100
100
|
meta: {
|
101
101
|
sidebarDisplay: "Payout Accounts"
|
102
102
|
}
|
@@ -104,7 +104,7 @@ const Ge = [
|
|
104
104
|
{
|
105
105
|
path: "/transaction-old",
|
106
106
|
name: "mf-payment-old-transaction",
|
107
|
-
component: () => import("./TransactionOld-
|
107
|
+
component: () => import("./TransactionOld-Dg1VfoPL.js"),
|
108
108
|
meta: {
|
109
109
|
sidebarDisplay: "Transactions"
|
110
110
|
}
|
@@ -116,12 +116,12 @@ const Ge = [
|
|
116
116
|
sidebarDisplay: "Terminal Transactions",
|
117
117
|
sidebarNew: !0
|
118
118
|
},
|
119
|
-
component: () => import("./TerminalTransaction-
|
119
|
+
component: () => import("./TerminalTransaction-Dg9akSQ7.js")
|
120
120
|
},
|
121
121
|
{
|
122
122
|
path: "/transaction",
|
123
123
|
name: "mf-payment-transaction",
|
124
|
-
component: () => import("./Transaction-
|
124
|
+
component: () => import("./Transaction-CWsdRULE.js"),
|
125
125
|
meta: {
|
126
126
|
sidebarDisplay: "Online Transactions",
|
127
127
|
sidebarNew: !0
|
@@ -130,7 +130,7 @@ const Ge = [
|
|
130
130
|
{
|
131
131
|
path: "/settlement",
|
132
132
|
name: "mf-payment-settlement",
|
133
|
-
component: () => import("./Settlement-
|
133
|
+
component: () => import("./Settlement-D-2hI9k8.js"),
|
134
134
|
meta: {
|
135
135
|
sidebarDisplay: "Settlements"
|
136
136
|
}
|
@@ -139,12 +139,12 @@ const Ge = [
|
|
139
139
|
path: "/settlement/:settlementId",
|
140
140
|
name: "mf-payment-settlement-transaction",
|
141
141
|
props: !0,
|
142
|
-
component: () => import("./SettlementTransactions-
|
142
|
+
component: () => import("./SettlementTransactions-D8UziVjz.js"),
|
143
143
|
meta: {
|
144
144
|
parent: "mf-payment-settlement"
|
145
145
|
}
|
146
146
|
}
|
147
|
-
],
|
147
|
+
], Gn = Hn("mf-payment-iframe", () => {
|
148
148
|
const n = {
|
149
149
|
isIframe: !1
|
150
150
|
}, e = Lt(() => n);
|
@@ -156,7 +156,7 @@ const Ge = [
|
|
156
156
|
init: t
|
157
157
|
};
|
158
158
|
});
|
159
|
-
var ot = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_01468cf5-6eea-4a12-a7a2-ff642ca3a951", 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.12.0 linux x64", npm_config_always_auth: "", CI: "true", npm_package_dependencies_vue: "^3.2.25", npm_config_bin_links: "true", npm_config_wrap_output: "", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_01468cf5-6eea-4a12-a7a2-ff642ca3a951", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/22.12.0/x64/bin/node", npm_package_devDependencies_vite: "^5.2.11", npm_package_devDependencies__tsconfig_node20: "^20.1.4", npm_config_init_version: "1.0.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "ghs_1DwdiFaLv5rQ1vxYXetuIhG3XmR4CY0QgZBY", 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.11.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: "716", npm_package_dependencies_moment: "^2.29.4", npm_package_dependencies_dotenv: "^16.0.3", npm_package_dependencies__feedmepos_ui_library: "^1.3.5", 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: "20241215.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.10/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.4/x64", JOURNAL_STREAM: "8:6427", 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: "12621975992", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "f3b4f9115554861447de0765448872013ddb105f", 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.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6NzQyMTNhY2EtYjEwNC00ZjdiLWE0NTItOTVmY2VhYTA5OGIzOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMDQ4IERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46NzQyMTNhY2EtYjEwNC00ZjdiLWE0NTItOTVmY2VhYTA5OGIzOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMDQ4IiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiNGUwZDk5YWMtYWE0My00ODYyLWE1OWItYzFkYmE4MTVmNmM5Iiwic2lkIjoiNDVhZDRmNGEtMGJkNi00NzgzLWEwNmMtNTFjNmRkNGY2Yzc3IiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJzaGFcIjpcImYzYjRmOTExNTU1NDg2MTQ0N2RlMDc2NTQ0ODg3MjAxM2RkYjEwNWZcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2VcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJ1bl9pZFwiOlwiMTI2MjE5NzU5OTJcIixcInJ1bl9udW1iZXJcIjpcIjExMVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLWRldlwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiZXZlbnRfbmFtZVwiOlwicHVzaFwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wYXltZW50LW1mLXBvcnRhbC1kZXYueWFtbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCJmM2I0ZjkxMTU1NTQ4NjE0NDdkZTA3NjU0NDg4NzIwMTNkZGIxMDVmXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLWRldi55YW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCJmM2I0ZjkxMTU1NTQ4NjE0NDdkZTA3NjU0NDg4NzIwMTNkZGIxMDVmXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoaWQiOiI3NDIxM2FjYS1iMTA0LTRmN2ItYTQ1Mi05NWZjZWFhMDk4YjMuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3MzYxMDEyMDgsImV4cCI6MTczNjEyNDAwOH0.MSs9qDwN8z1yldtdIWKzQsM02LmU53TRfEINA6PWCLESSgt3RcX9wDhoITJ_lmlDI-dg3VUMtdsf9ErTSb8-jqlrT1RHO_BE9ChteGkLD0abKZ1xtdN7h37SseETS3h6V0_gcX3dlhMUJPUq0ZzVF7zAor0PoKYsNKGPhLuCiWNLv097k4-W3xNXjEpL_1qTSrNf73ebkDyKB0ksCtYpafSBQI1I002eC2p_jqlkjE-Eyf9dQ-eBVsk7xK5mDYmkDNMSoYkS4nLlJGLumLU7l9xuaM1GMjBnBz8ST0sH2D75xja23_ub1W5KpUSB07VuIYxvvF4akY84gB9UWApqew", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1736101861070-0.7581216929841568:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1736101860914-0.2145157602509986:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1736101860759-0.9929366778810389:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/22.12.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_3df57ea4-d14c-43fd-825a-0db3879db182", INVOCATION_ID: "3e95a7dc23d044e8a840a01883240e50", 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: "111", 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 420", 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.8-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: "f3b4f9115554861447de0765448872013ddb105f", 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_qrcode: "^1.5.1", 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_01468cf5-6eea-4a12-a7a2-ff642ca3a951", 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/74213aca-b104-4f7b-a452-95fceaa098b3/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_01468cf5-6eea-4a12-a7a2-ff642ca3a951", 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_01468cf5-6eea-4a12-a7a2-ff642ca3a951", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_dependencies__feedmepos_payment_entity: "^0.0.13", 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" };
|
159
|
+
var at = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_989b75e7-60cf-4620-8c2e-aa3a674418bb", 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.12.0 linux x64", npm_config_always_auth: "", CI: "true", npm_package_dependencies_vue: "^3.2.25", npm_config_bin_links: "true", npm_config_wrap_output: "", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_989b75e7-60cf-4620-8c2e-aa3a674418bb", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/22.12.0/x64/bin/node", npm_package_devDependencies_vite: "^5.2.11", npm_package_devDependencies__tsconfig_node20: "^20.1.4", npm_config_init_version: "1.0.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "ghs_SFEZ2Kt8OLtfMmSoYDjPm80P0jtOQT3Ub0ez", 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.11.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: "708", npm_package_dependencies_moment: "^2.29.4", npm_package_dependencies_dotenv: "^16.0.3", npm_package_dependencies__feedmepos_ui_library: "^1.3.5", 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: "20241215.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.10/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.4/x64", JOURNAL_STREAM: "8:7194", 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: "12622149738", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "2c2fbef2b69250f00acf2b6a447d816d1f1a7eb9", 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.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6NDU2NTBmOWMtMDYzYi00OTkxLWE2OTAtM2I1NjcxMzVjMTgyOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMDUyIERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46NDU2NTBmOWMtMDYzYi00OTkxLWE2OTAtM2I1NjcxMzVjMTgyOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMDUyIiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiZWUxNjE4M2QtZWI4ZC00NDhjLTkwNjEtOTgxOGQ4NWMwZDU4Iiwic2lkIjoiOWUwODgwYjAtM2UzMy00Y2FjLWE1OTItZGVlNjE1YWFiM2E1IiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjN9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwic2hhXCI6XCIyYzJmYmVmMmI2OTI1MGYwMGFjZjJiNmE0NDdkODE2ZDFmMWE3ZWI5XCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJydW5faWRcIjpcIjEyNjIyMTQ5NzM4XCIsXCJydW5fbnVtYmVyXCI6XCIxNFwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLXByb2RcIixcImhlYWRfcmVmXCI6XCJcIixcImJhc2VfcmVmXCI6XCJcIixcImV2ZW50X25hbWVcIjpcInB1c2hcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcGF5bWVudC1tZi1wb3J0YWwtcHJvZC55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwid29ya2Zsb3dfc2hhXCI6XCIyYzJmYmVmMmI2OTI1MGYwMGFjZjJiNmE0NDdkODE2ZDFmMWE3ZWI5XCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLXByb2QueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjJjMmZiZWYyYjY5MjUwZjAwYWNmMmI2YTQ0N2Q4MTZkMWYxYTdlYjlcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL21haW4iLCJvcmNoaWQiOiI0NTY1MGY5Yy0wNjNiLTQ5OTEtYTY5MC0zYjU2NzEzNWMxODIuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3MzYxMDI5NjksImV4cCI6MTczNjEyNTc2OX0.kGGY6Y94gsI8s3IiyeTrYl51dyXw87FcubEEHNdEh2wWMy0pjmvC-LszgjJP1BH-IYwXOkQ9y6xZawLg2lkbLB3IVgFSXJajtVkJ2AwR9-bPddiWutdTeZZFPnzYvn5J6w-Vrko-iUlmsrJ063ZmuG66ajdekQXjUeN-YSlXeOLah6UlQeKfHPDL2xnJnJ9DEwqsheVNi99wtPelHF8RNZH9ctqpX10FTHUVx4jTHjRp8BfC1Olj6Wf_Gf0q-ssW5smfPLUPT-o1604Wa3UnUR0Ic87w2lyQzIupRRy9xiy18QdjrBxqxW-XFC51dmEtk01gzccT0ygR62eIqtlV4A", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1736103619670-0.36149349504839456:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1736103619514-0.17511444214373428:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1736103619357-0.46767590024978656:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/22.12.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_b9f58d2c-ff67-4ffa-a3d5-5f662638f312", INVOCATION_ID: "20fd9dbcc7154dfd96361ee32bf46d2a", 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: "14", 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 423", 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.9", 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: "2c2fbef2b69250f00acf2b6a447d816d1f1a7eb9", 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_qrcode: "^1.5.1", 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_989b75e7-60cf-4620-8c2e-aa3a674418bb", 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/45650f9c-063b-4991-a690-3b567135c182/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_989b75e7-60cf-4620-8c2e-aa3a674418bb", 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_989b75e7-60cf-4620-8c2e-aa3a674418bb", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_dependencies__feedmepos_payment_entity: "^0.0.13", 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" };
|
160
160
|
/**
|
161
161
|
* @license
|
162
162
|
* Copyright 2017 Google LLC
|
@@ -173,7 +173,7 @@ var ot = { 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 jt = 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 Vt = 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++], o = n[t++], a = n[t++], c = ((i & 7) << 18 | (s & 63) << 12 | (o & 63) << 6 | a & 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++], o = n[t++];
|
199
|
+
e[r++] = String.fromCharCode((i & 15) << 12 | (s & 63) << 6 | o & 63);
|
200
200
|
}
|
201
201
|
}
|
202
202
|
return e.join("");
|
203
|
-
},
|
203
|
+
}, Ft = {
|
204
204
|
/**
|
205
205
|
* Maps bytes to characters.
|
206
206
|
*/
|
@@ -259,9 +259,9 @@ const Vt = 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 || (
|
262
|
+
const s = n[i], o = i + 1 < n.length, a = o ? n[i + 1] : 0, c = i + 2 < n.length, l = c ? n[i + 2] : 0, u = s >> 2, p = (s & 3) << 4 | a >> 4;
|
263
|
+
let m = (a & 15) << 2 | l >> 6, I = l & 63;
|
264
|
+
c || (I = 64, o || (m = 64)), r.push(t[u], t[p], t[m], t[I]);
|
265
265
|
}
|
266
266
|
return r.join("");
|
267
267
|
},
|
@@ -274,7 +274,7 @@ const Vt = 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(jt(n), e);
|
278
278
|
},
|
279
279
|
/**
|
280
280
|
* Base64-decode a string.
|
@@ -306,19 +306,19 @@ const Vt = 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++)], a = 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 ||
|
314
|
+
if (++i, s == null || a == null || l == null || p == null)
|
315
315
|
throw new $n();
|
316
|
-
const m = s << 2 |
|
316
|
+
const m = s << 2 | a >> 4;
|
317
317
|
if (r.push(m), l !== 64) {
|
318
|
-
const
|
319
|
-
if (r.push(
|
320
|
-
const
|
321
|
-
r.push(
|
318
|
+
const I = a << 4 & 240 | l >> 2;
|
319
|
+
if (r.push(I), p !== 64) {
|
320
|
+
const x = l << 6 & 192 | p;
|
321
|
+
r.push(x);
|
322
322
|
}
|
323
323
|
}
|
324
324
|
}
|
@@ -342,14 +342,14 @@ class $n extends Error {
|
|
342
342
|
super(...arguments), this.name = "DecodeBase64StringError";
|
343
343
|
}
|
344
344
|
}
|
345
|
-
const
|
346
|
-
const e =
|
347
|
-
return
|
345
|
+
const Jn = function(n) {
|
346
|
+
const e = jt(n);
|
347
|
+
return Ft.encodeByteArray(e, !0);
|
348
348
|
}, le = function(n) {
|
349
|
-
return
|
349
|
+
return Jn(n).replace(/\./g, "");
|
350
350
|
}, Ht = function(n) {
|
351
351
|
try {
|
352
|
-
return
|
352
|
+
return Ft.decodeString(n, !0);
|
353
353
|
} catch (e) {
|
354
354
|
console.error("base64Decode failed: ", e);
|
355
355
|
}
|
@@ -371,7 +371,7 @@ const Zn = 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 Zn() {
|
375
375
|
if (typeof self < "u")
|
376
376
|
return self;
|
377
377
|
if (typeof window < "u")
|
@@ -396,10 +396,10 @@ function Jn() {
|
|
396
396
|
* See the License for the specific language governing permissions and
|
397
397
|
* limitations under the License.
|
398
398
|
*/
|
399
|
-
const
|
400
|
-
if (typeof process > "u" || typeof
|
399
|
+
const Xn = () => Zn().__FIREBASE_DEFAULTS__, Yn = () => {
|
400
|
+
if (typeof process > "u" || typeof at > "u")
|
401
401
|
return;
|
402
|
-
const n =
|
402
|
+
const n = at.__FIREBASE_DEFAULTS__;
|
403
403
|
if (n)
|
404
404
|
return JSON.parse(n);
|
405
405
|
}, Kn = () => {
|
@@ -415,16 +415,16 @@ const Yn = () => Jn().__FIREBASE_DEFAULTS__, Xn = () => {
|
|
415
415
|
return e && JSON.parse(e);
|
416
416
|
}, ze = () => {
|
417
417
|
try {
|
418
|
-
return
|
418
|
+
return Xn() || Yn() || Kn();
|
419
419
|
} catch (n) {
|
420
420
|
console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);
|
421
421
|
return;
|
422
422
|
}
|
423
|
-
},
|
423
|
+
}, Vt = (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
|
+
}, Co = (n) => {
|
427
|
+
const e = Vt(n);
|
428
428
|
if (!e)
|
429
429
|
return;
|
430
430
|
const t = e.lastIndexOf(":");
|
@@ -432,7 +432,7 @@ const Yn = () => Jn().__FIREBASE_DEFAULTS__, Xn = () => {
|
|
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
|
+
}, Gt = () => {
|
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 No(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 Na(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 o = 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 Na(n, e) {
|
|
516
516
|
}, n);
|
517
517
|
return [
|
518
518
|
le(JSON.stringify(t)),
|
519
|
-
le(JSON.stringify(
|
519
|
+
le(JSON.stringify(o)),
|
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 or = "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 = or, 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], o = s ? ar(s, r) : "Error", a = `${this.serviceName}: ${o} (${i}).`;
|
614
|
+
return new M(i, a, r);
|
615
615
|
}
|
616
616
|
}
|
617
|
-
function
|
617
|
+
function ar(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], o = e[i];
|
638
|
+
if (ct(s) && ct(o)) {
|
639
|
+
if (!de(s, o))
|
640
640
|
return !1;
|
641
|
-
} else if (s !==
|
641
|
+
} else if (s !== o)
|
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 G {
|
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, o] of this.instancesDeferred.entries()) {
|
949
|
+
const a = this.normalizeInstanceIdentifier(s);
|
950
|
+
r === a && o.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 o = this.instances.get(i);
|
967
|
+
return o && e(o, i), () => {
|
968
968
|
s.delete(e);
|
969
969
|
};
|
970
970
|
}
|
@@ -1088,7 +1088,7 @@ const gr = {
|
|
1088
1088
|
warn: h.WARN,
|
1089
1089
|
error: h.ERROR,
|
1090
1090
|
silent: h.SILENT
|
1091
|
-
},
|
1091
|
+
}, Ir = h.INFO, vr = {
|
1092
1092
|
[h.DEBUG]: "log",
|
1093
1093
|
[h.VERBOSE]: "log",
|
1094
1094
|
[h.INFO]: "info",
|
@@ -1097,7 +1097,7 @@ const gr = {
|
|
1097
1097
|
}, br = (n, e, ...t) => {
|
1098
1098
|
if (e < n.logLevel)
|
1099
1099
|
return;
|
1100
|
-
const r = (/* @__PURE__ */ new Date()).toISOString(), i =
|
1100
|
+
const r = (/* @__PURE__ */ new Date()).toISOString(), i = vr[e];
|
1101
1101
|
if (i)
|
1102
1102
|
console[i](`[${r}] ${n.name}:`, ...t);
|
1103
1103
|
else
|
@@ -1111,7 +1111,7 @@ class $t {
|
|
1111
1111
|
* @param name The name that the logs will be associated with
|
1112
1112
|
*/
|
1113
1113
|
constructor(e) {
|
1114
|
-
this.name = e, this._logLevel =
|
1114
|
+
this.name = e, this._logLevel = Ir, this._logHandler = br, this._userLogHandler = null;
|
1115
1115
|
}
|
1116
1116
|
get logLevel() {
|
1117
1117
|
return this._logLevel;
|
@@ -1176,20 +1176,20 @@ function Tr() {
|
|
1176
1176
|
IDBCursor.prototype.continuePrimaryKey
|
1177
1177
|
]);
|
1178
1178
|
}
|
1179
|
-
const
|
1179
|
+
const Jt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), $e = /* @__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", o);
|
1184
1184
|
}, s = () => {
|
1185
|
-
t(
|
1186
|
-
},
|
1185
|
+
t(N(n.result)), i();
|
1186
|
+
}, o = () => {
|
1187
1187
|
r(n.error), i();
|
1188
1188
|
};
|
1189
|
-
n.addEventListener("success", s), n.addEventListener("error",
|
1189
|
+
n.addEventListener("success", s), n.addEventListener("error", o);
|
1190
1190
|
});
|
1191
1191
|
return e.then((t) => {
|
1192
|
-
t instanceof IDBCursor &&
|
1192
|
+
t instanceof IDBCursor && Jt.set(t, n);
|
1193
1193
|
}).catch(() => {
|
1194
1194
|
}), $e.set(e, n), e;
|
1195
1195
|
}
|
@@ -1198,13 +1198,13 @@ function Rr(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", o), n.removeEventListener("abort", o);
|
1202
1202
|
}, s = () => {
|
1203
1203
|
t(), i();
|
1204
|
-
},
|
1204
|
+
}, o = () => {
|
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", o), n.addEventListener("abort", o);
|
1208
1208
|
});
|
1209
1209
|
Me.set(n, e);
|
1210
1210
|
}
|
@@ -1214,11 +1214,11 @@ 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 || Zt.get(n);
|
1218
1218
|
if (e === "store")
|
1219
1219
|
return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]);
|
1220
1220
|
}
|
1221
|
-
return
|
1221
|
+
return N(n[e]);
|
1222
1222
|
},
|
1223
1223
|
set(n, e, t) {
|
1224
1224
|
return n[e] = t, !0;
|
@@ -1233,17 +1233,17 @@ function kr(n) {
|
|
1233
1233
|
function Sr(n) {
|
1234
1234
|
return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
|
1235
1235
|
const r = n.call(Se(this), e, ...t);
|
1236
|
-
return
|
1236
|
+
return Zt.set(r, e.sort ? e.sort() : [e]), N(r);
|
1237
1237
|
} : Tr().includes(n) ? function(...e) {
|
1238
|
-
return n.apply(Se(this), e),
|
1238
|
+
return n.apply(Se(this), e), N(Jt.get(this));
|
1239
1239
|
} : function(...e) {
|
1240
|
-
return
|
1240
|
+
return N(n.apply(Se(this), e));
|
1241
1241
|
};
|
1242
1242
|
}
|
1243
1243
|
function Ar(n) {
|
1244
1244
|
return typeof n == "function" ? Sr(n) : (n instanceof IDBTransaction && Rr(n), yr(n, Er()) ? new Proxy(n, Le) : n);
|
1245
1245
|
}
|
1246
|
-
function
|
1246
|
+
function N(n) {
|
1247
1247
|
if (n instanceof IDBRequest)
|
1248
1248
|
return wr(n);
|
1249
1249
|
if (ke.has(n))
|
@@ -1253,36 +1253,36 @@ function C(n) {
|
|
1253
1253
|
}
|
1254
1254
|
const Se = (n) => $e.get(n);
|
1255
1255
|
function Or(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
1256
|
-
const
|
1257
|
-
return r &&
|
1258
|
-
r(
|
1259
|
-
}), t &&
|
1256
|
+
const o = indexedDB.open(n, e), a = N(o);
|
1257
|
+
return r && o.addEventListener("upgradeneeded", (c) => {
|
1258
|
+
r(N(o.result), c.oldVersion, c.newVersion, N(o.transaction), c);
|
1259
|
+
}), t && o.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
|
+
)), a.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
|
+
}), a;
|
1268
1268
|
}
|
1269
|
-
const
|
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
1273
|
if (Ae.get(e))
|
1274
1274
|
return Ae.get(e);
|
1275
|
-
const t = e.replace(/FromIndex$/, ""), r = e !== t, i =
|
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
|
-
!(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i ||
|
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(o, ...a) {
|
1282
|
+
const c = this.transaction(o, i ? "readwrite" : "readonly");
|
1283
1283
|
let l = c.store;
|
1284
|
-
return r && (l = l.index(
|
1285
|
-
l[t](...
|
1284
|
+
return r && (l = l.index(a.shift())), (await Promise.all([
|
1285
|
+
l[t](...a),
|
1286
1286
|
i && c.done
|
1287
1287
|
]))[0];
|
1288
1288
|
};
|
@@ -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 $t("@firebase/app"), Mr = "@firebase/app-compat", Lr = "@firebase/analytics-compat", Ur = "@firebase/analytics", Br = "@firebase/app-check-compat",
|
1349
|
+
const T = new $t("@firebase/app"), Mr = "@firebase/app-compat", Lr = "@firebase/analytics-compat", Ur = "@firebase/analytics", Br = "@firebase/app-check-compat", xr = "@firebase/app-check", Wr = "@firebase/auth", jr = "@firebase/auth-compat", Fr = "@firebase/database", Hr = "@firebase/data-connect", Vr = "@firebase/database-compat", Gr = "@firebase/functions", zr = "@firebase/functions-compat", $r = "@firebase/installations", Jr = "@firebase/installations-compat", Zr = "@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", oi = "10.14.1";
|
1350
1350
|
/**
|
1351
1351
|
* @license
|
1352
1352
|
* Copyright 2019 Google LLC
|
@@ -1363,25 +1363,25 @@ 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]", ai = {
|
1367
1367
|
[Ue]: "fire-core",
|
1368
1368
|
[Mr]: "fire-core-compat",
|
1369
1369
|
[Ur]: "fire-analytics",
|
1370
1370
|
[Lr]: "fire-analytics-compat",
|
1371
|
-
[
|
1371
|
+
[xr]: "fire-app-check",
|
1372
1372
|
[Br]: "fire-app-check-compat",
|
1373
|
-
[
|
1374
|
-
[
|
1375
|
-
[
|
1373
|
+
[Wr]: "fire-auth",
|
1374
|
+
[jr]: "fire-auth-compat",
|
1375
|
+
[Fr]: "fire-rtdb",
|
1376
1376
|
[Hr]: "fire-data-connect",
|
1377
|
-
[
|
1378
|
-
[
|
1377
|
+
[Vr]: "fire-rtdb-compat",
|
1378
|
+
[Gr]: "fire-fn",
|
1379
1379
|
[zr]: "fire-fn-compat",
|
1380
1380
|
[$r]: "fire-iid",
|
1381
|
-
[
|
1382
|
-
[
|
1383
|
-
[
|
1384
|
-
[
|
1381
|
+
[Jr]: "fire-iid-compat",
|
1382
|
+
[Zr]: "fire-fcm",
|
1383
|
+
[Xr]: "fire-fcm-compat",
|
1384
|
+
[Yr]: "fire-perf",
|
1385
1385
|
[Kr]: "fire-perf-compat",
|
1386
1386
|
[qr]: "fire-rc",
|
1387
1387
|
[Qr]: "fire-rc-compat",
|
@@ -1409,7 +1409,7 @@ const Be = "[DEFAULT]", oi = {
|
|
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(), xe = /* @__PURE__ */ new Map();
|
1413
1413
|
function pt(n, e) {
|
1414
1414
|
try {
|
1415
1415
|
n.container.addComponent(e);
|
@@ -1417,22 +1417,22 @@ function pt(n, e) {
|
|
1417
1417
|
T.debug(`Component ${e.name} failed to register with FirebaseApp ${n.name}`, t);
|
1418
1418
|
}
|
1419
1419
|
}
|
1420
|
-
function
|
1420
|
+
function X(n) {
|
1421
1421
|
const e = n.name;
|
1422
|
-
if (
|
1422
|
+
if (xe.has(e))
|
1423
1423
|
return T.debug(`There were multiple attempts to register component ${e}.`), !1;
|
1424
|
-
|
1424
|
+
xe.set(e, n);
|
1425
1425
|
for (const t of ue.values())
|
1426
1426
|
pt(t, n);
|
1427
1427
|
for (const t of ci.values())
|
1428
1428
|
pt(t, n);
|
1429
1429
|
return !0;
|
1430
1430
|
}
|
1431
|
-
function
|
1431
|
+
function Xt(n, e) {
|
1432
1432
|
const t = n.container.getProvider("heartbeat").getImmediate({ optional: !0 });
|
1433
1433
|
return t && t.triggerHeartbeat(), n.container.getProvider(e);
|
1434
1434
|
}
|
1435
|
-
function
|
1435
|
+
function v(n) {
|
1436
1436
|
return n.settings !== void 0;
|
1437
1437
|
}
|
1438
1438
|
/**
|
@@ -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 G(
|
1489
1489
|
"app",
|
1490
1490
|
() => this,
|
1491
1491
|
"PUBLIC"
|
@@ -1541,8 +1541,8 @@ 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 =
|
1545
|
-
function
|
1544
|
+
const ee = oi;
|
1545
|
+
function Yt(n, e = {}) {
|
1546
1546
|
let t = n;
|
1547
1547
|
typeof e != "object" && (e = { name: e });
|
1548
1548
|
const r = Object.assign({ name: Be, automaticDataCollectionEnabled: !1 }, e), i = r.name;
|
@@ -1550,7 +1550,7 @@ function Xt(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 = Gt()), !t)
|
1554
1554
|
throw D.create(
|
1555
1555
|
"no-options"
|
1556
1556
|
/* AppError.NO_OPTIONS */
|
@@ -1561,33 +1561,33 @@ function Xt(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 o = new _r(i);
|
1565
|
+
for (const c of xe.values())
|
1566
|
+
o.addComponent(c);
|
1567
|
+
const a = new di(t, r, o);
|
1568
|
+
return ue.set(i, a), a;
|
1569
1569
|
}
|
1570
1570
|
function ui(n = Be) {
|
1571
1571
|
const e = ue.get(n);
|
1572
|
-
if (!e && n === Be &&
|
1573
|
-
return
|
1572
|
+
if (!e && n === Be && Gt())
|
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 j(n, e, t) {
|
1579
1579
|
var r;
|
1580
|
-
let i = (r =
|
1580
|
+
let i = (r = ai[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|\//), o = e.match(/\s|\//);
|
1583
|
+
if (s || o) {
|
1584
|
+
const a = [
|
1585
1585
|
`Unable to register library "${i}" with version "${e}":`
|
1586
1586
|
];
|
1587
|
-
s &&
|
1587
|
+
s && a.push(`library name "${i}" contains illegal characters (whitespace or "/")`), s && o && a.push("and"), o && a.push(`version name "${e}" contains illegal characters (whitespace or "/")`), T.warn(a.join(" "));
|
1588
1588
|
return;
|
1589
1589
|
}
|
1590
|
-
|
1590
|
+
X(new G(
|
1591
1591
|
`${i}-version`,
|
1592
1592
|
() => ({ library: i, version: e }),
|
1593
1593
|
"VERSION"
|
@@ -1610,7 +1610,7 @@ function V(n, e, t) {
|
|
1610
1610
|
* See the License for the specific language governing permissions and
|
1611
1611
|
* limitations under the License.
|
1612
1612
|
*/
|
1613
|
-
const hi = "firebase-heartbeat-database", pi = 1,
|
1613
|
+
const hi = "firebase-heartbeat-database", pi = 1, Y = "firebase-heartbeat-store";
|
1614
1614
|
let Oe = null;
|
1615
1615
|
function Kt() {
|
1616
1616
|
return Oe || (Oe = Or(hi, pi, {
|
@@ -1618,7 +1618,7 @@ function Kt() {
|
|
1618
1618
|
switch (e) {
|
1619
1619
|
case 0:
|
1620
1620
|
try {
|
1621
|
-
n.createObjectStore(
|
1621
|
+
n.createObjectStore(Y);
|
1622
1622
|
} catch (t) {
|
1623
1623
|
console.warn(t);
|
1624
1624
|
}
|
@@ -1632,7 +1632,7 @@ function Kt() {
|
|
1632
1632
|
}
|
1633
1633
|
async function fi(n) {
|
1634
1634
|
try {
|
1635
|
-
const t = (await Kt()).transaction(
|
1635
|
+
const t = (await Kt()).transaction(Y), r = await t.objectStore(Y).get(qt(n));
|
1636
1636
|
return await t.done, r;
|
1637
1637
|
} catch (e) {
|
1638
1638
|
if (e instanceof M)
|
@@ -1647,8 +1647,8 @@ async function fi(n) {
|
|
1647
1647
|
}
|
1648
1648
|
async function ft(n, e) {
|
1649
1649
|
try {
|
1650
|
-
const r = (await Kt()).transaction(
|
1651
|
-
await r.objectStore(
|
1650
|
+
const r = (await Kt()).transaction(Y, "readwrite");
|
1651
|
+
await r.objectStore(Y).put(e, qt(n)), await r.done;
|
1652
1652
|
} catch (t) {
|
1653
1653
|
if (t instanceof M)
|
1654
1654
|
T.warn(t.message);
|
@@ -1684,7 +1684,7 @@ class gi {
|
|
1684
1684
|
constructor(e) {
|
1685
1685
|
this.container = e, this._heartbeatsCache = null;
|
1686
1686
|
const t = this.container.getProvider("app").getImmediate();
|
1687
|
-
this._storage = new
|
1687
|
+
this._storage = new vi(t), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
|
1688
1688
|
}
|
1689
1689
|
/**
|
1690
1690
|
* Called to report a heartbeat. The function will generate
|
@@ -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((o) => o.date === s) ? void 0 : (this._heartbeatsCache.heartbeats.push({ date: s, agent: i }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((o) => {
|
1701
|
+
const a = new Date(o.date).valueOf();
|
1702
|
+
return Date.now() - a <= _i;
|
1703
1703
|
}), this._storage.overwrite(this._heartbeatsCache));
|
1704
1704
|
} catch (r) {
|
1705
1705
|
T.warn(r);
|
@@ -1717,7 +1717,7 @@ class gi {
|
|
1717
1717
|
try {
|
1718
1718
|
if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
|
1719
1719
|
return "";
|
1720
|
-
const t = mt(), { heartbeatsToSend: r, unsentEntries: i } =
|
1720
|
+
const t = mt(), { heartbeatsToSend: r, unsentEntries: i } = Ii(this._heartbeatsCache.heartbeats), s = le(JSON.stringify({ version: 2, heartbeats: r }));
|
1721
1721
|
return this._heartbeatsCache.lastSentHeartbeatDate = t, i.length > 0 ? (this._heartbeatsCache.heartbeats = i, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), s;
|
1722
1722
|
} catch (t) {
|
1723
1723
|
return T.warn(t), "";
|
@@ -1727,11 +1727,11 @@ class gi {
|
|
1727
1727
|
function mt() {
|
1728
1728
|
return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
|
1729
1729
|
}
|
1730
|
-
function
|
1730
|
+
function Ii(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((o) => o.agent === i.agent);
|
1735
1735
|
if (s) {
|
1736
1736
|
if (s.dates.push(i.date), _t(t) > e) {
|
1737
1737
|
s.dates.pop();
|
@@ -1751,7 +1751,7 @@ function vi(n, e = mi) {
|
|
1751
1751
|
unsentEntries: r
|
1752
1752
|
};
|
1753
1753
|
}
|
1754
|
-
class
|
1754
|
+
class vi {
|
1755
1755
|
constructor(e) {
|
1756
1756
|
this.app = e, this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
|
1757
1757
|
}
|
@@ -1819,17 +1819,17 @@ function _t(n) {
|
|
1819
1819
|
* limitations under the License.
|
1820
1820
|
*/
|
1821
1821
|
function bi(n) {
|
1822
|
-
|
1822
|
+
X(new G(
|
1823
1823
|
"platform-logger",
|
1824
1824
|
(e) => new Dr(e),
|
1825
1825
|
"PRIVATE"
|
1826
1826
|
/* ComponentType.PRIVATE */
|
1827
|
-
)),
|
1827
|
+
)), X(new G(
|
1828
1828
|
"heartbeat",
|
1829
1829
|
(e) => new gi(e),
|
1830
1830
|
"PRIVATE"
|
1831
1831
|
/* ComponentType.PRIVATE */
|
1832
|
-
)),
|
1832
|
+
)), j(Ue, ht, n), j(Ue, ht, "esm2017"), j("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
|
+
j(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 Je(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")
|
@@ -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 Ze(n, ...e);
|
1917
1917
|
}
|
1918
1918
|
function _(n, ...e) {
|
1919
|
-
return
|
1919
|
+
return Ze(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 Ze(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 Je(n, ...e) {
|
|
1936
1936
|
}
|
1937
1937
|
function d(n, e, ...t) {
|
1938
1938
|
if (!n)
|
1939
|
-
throw
|
1939
|
+
throw Ze(e, ...t);
|
1940
1940
|
}
|
1941
1941
|
function b(n) {
|
1942
1942
|
const e = "INTERNAL ASSERTION FAILED: " + n;
|
@@ -1961,14 +1961,14 @@ 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 We() {
|
1965
1965
|
var n;
|
1966
1966
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
|
1967
1967
|
}
|
1968
1968
|
function Ri() {
|
1969
|
-
return
|
1969
|
+
return It() === "http:" || It() === "https:";
|
1970
1970
|
}
|
1971
|
-
function
|
1971
|
+
function It() {
|
1972
1972
|
var n;
|
1973
1973
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.protocol) || null;
|
1974
1974
|
}
|
@@ -2048,7 +2048,7 @@ class te {
|
|
2048
2048
|
* See the License for the specific language governing permissions and
|
2049
2049
|
* limitations under the License.
|
2050
2050
|
*/
|
2051
|
-
function
|
2051
|
+
function Xe(n, e) {
|
2052
2052
|
R(n.emulator, "Emulator should always be set here");
|
2053
2053
|
const { url: t } = n.emulator;
|
2054
2054
|
return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
|
@@ -2220,11 +2220,11 @@ function ge(n, e) {
|
|
2220
2220
|
}
|
2221
2221
|
async function $(n, e, t, r, i = {}) {
|
2222
2222
|
return rn(n, i, async () => {
|
2223
|
-
let s = {},
|
2224
|
-
r && (e === "GET" ?
|
2223
|
+
let s = {}, o = {};
|
2224
|
+
r && (e === "GET" ? o = r : s = {
|
2225
2225
|
body: JSON.stringify(r)
|
2226
2226
|
});
|
2227
|
-
const
|
2227
|
+
const a = Q(Object.assign({ key: n.config.apiKey }, o)).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()(on(n, n.config.apiHost, t, a), l);
|
2240
2240
|
});
|
2241
2241
|
}
|
2242
2242
|
async function rn(n, e, t) {
|
2243
2243
|
n._canInitEmulator = !1;
|
2244
2244
|
const r = Object.assign(Object.assign({}, Ai), e);
|
2245
2245
|
try {
|
2246
|
-
const i = new
|
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 o = await s.json();
|
2252
|
+
if ("needConfirmation" in o)
|
2253
|
+
throw ie(n, "account-exists-with-different-credential", o);
|
2254
|
+
if (s.ok && !("errorMessage" in o))
|
2255
|
+
return o;
|
2256
2256
|
{
|
2257
|
-
const
|
2257
|
+
const a = s.ok ? o.errorMessage : o.error.message, [c, l] = a.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", o);
|
2260
2260
|
if (c === "EMAIL_EXISTS")
|
2261
|
-
throw ie(n, "email-already-in-use",
|
2261
|
+
throw ie(n, "email-already-in-use", o);
|
2262
2262
|
if (c === "USER_DISABLED")
|
2263
|
-
throw ie(n, "user-disabled",
|
2263
|
+
throw ie(n, "user-disabled", o);
|
2264
2264
|
const u = r[c] || c.toLowerCase().replace(/[_\s]+/g, "-");
|
2265
2265
|
if (l)
|
2266
2266
|
throw tn(n, u, l);
|
@@ -2278,11 +2278,11 @@ async function sn(n, e, t, r, i = {}) {
|
|
2278
2278
|
_serverResponse: s
|
2279
2279
|
}), s;
|
2280
2280
|
}
|
2281
|
-
function
|
2281
|
+
function on(n, e, t, r) {
|
2282
2282
|
const i = `${e}${t}?${r}`;
|
2283
|
-
return n.config.emulator ?
|
2283
|
+
return n.config.emulator ? Xe(n.config, i) : `${n.config.apiScheme}://${i}`;
|
2284
2284
|
}
|
2285
|
-
class
|
2285
|
+
class Ci {
|
2286
2286
|
constructor(e) {
|
2287
2287
|
this.auth = e, this.timer = null, this.promise = new Promise((t, r) => {
|
2288
2288
|
this.timer = setTimeout(() => r(_(
|
@@ -2320,10 +2320,10 @@ function ie(n, e, t) {
|
|
2320
2320
|
* See the License for the specific language governing permissions and
|
2321
2321
|
* limitations under the License.
|
2322
2322
|
*/
|
2323
|
-
async function
|
2323
|
+
async function Ni(n, e) {
|
2324
2324
|
return $(n, "POST", "/v1/accounts:delete", e);
|
2325
2325
|
}
|
2326
|
-
async function
|
2326
|
+
async function an(n, e) {
|
2327
2327
|
return $(n, "POST", "/v1/accounts:lookup", e);
|
2328
2328
|
}
|
2329
2329
|
/**
|
@@ -2342,7 +2342,7 @@ async function on(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 Z(n) {
|
2346
2346
|
if (n)
|
2347
2347
|
try {
|
2348
2348
|
const e = new Date(Number(n));
|
@@ -2352,28 +2352,28 @@ function J(n) {
|
|
2352
2352
|
}
|
2353
2353
|
}
|
2354
2354
|
async function Di(n, e = !1) {
|
2355
|
-
const t = z(n), r = await t.getIdToken(e), i =
|
2355
|
+
const t = z(n), r = await t.getIdToken(e), i = Ye(r);
|
2356
2356
|
d(
|
2357
2357
|
i && i.exp && i.auth_time && i.iat,
|
2358
2358
|
t.auth,
|
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, o = 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: Z(Ce(i.auth_time)),
|
2367
|
+
issuedAtTime: Z(Ce(i.iat)),
|
2368
|
+
expirationTime: Z(Ce(i.exp)),
|
2369
|
+
signInProvider: o || null,
|
2370
2370
|
signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
|
2371
2371
|
};
|
2372
2372
|
}
|
2373
|
-
function
|
2373
|
+
function Ce(n) {
|
2374
2374
|
return Number(n) * 1e3;
|
2375
2375
|
}
|
2376
|
-
function
|
2376
|
+
function Ye(n) {
|
2377
2377
|
const [e, t, r] = n.split(".");
|
2378
2378
|
if (e === void 0 || t === void 0 || r === void 0)
|
2379
2379
|
return se("JWT malformed, contained fewer than 3 sections"), null;
|
@@ -2384,8 +2384,8 @@ function Xe(n) {
|
|
2384
2384
|
return se("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
|
2385
2385
|
}
|
2386
2386
|
}
|
2387
|
-
function
|
2388
|
-
const e =
|
2387
|
+
function vt(n) {
|
2388
|
+
const e = Ye(n);
|
2389
2389
|
return d(
|
2390
2390
|
e,
|
2391
2391
|
"internal-error"
|
@@ -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 je {
|
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 = Z(this.lastLoginAt), this.creationTime = Z(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 Ve {
|
|
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, an(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 o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? cn(s.providerUserInfo) : [], a = Ui(n.providerData, o), c = n.isAnonymous, l = !(n.email && s.passwordHash) && !(a != null && a.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: a,
|
2562
|
+
metadata: new je(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 = Je(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, o = on(n, i, "/v1/token", `key=${s}`), a = await n._getAdditionalHeaders();
|
2609
|
+
return a[
|
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()(o, {
|
2613
2613
|
method: "POST",
|
2614
|
-
headers:
|
2614
|
+
headers: a,
|
2615
2615
|
body: r
|
2616
2616
|
});
|
2617
2617
|
});
|
@@ -2621,7 +2621,7 @@ async function Bi(n, e) {
|
|
2621
2621
|
refreshToken: t.refresh_token
|
2622
2622
|
};
|
2623
2623
|
}
|
2624
|
-
async function
|
2624
|
+
async function xi(n, e) {
|
2625
2625
|
return $(n, "POST", "/v2/accounts:revokeToken", ge(n, e));
|
2626
2626
|
}
|
2627
2627
|
/**
|
@@ -2640,7 +2640,7 @@ async function Fi(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 F {
|
2644
2644
|
constructor() {
|
2645
2645
|
this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
|
2646
2646
|
}
|
@@ -2661,7 +2661,7 @@ class j {
|
|
2661
2661
|
"internal-error"
|
2662
2662
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2663
2663
|
);
|
2664
|
-
const t = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) :
|
2664
|
+
const t = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : vt(e.idToken);
|
2665
2665
|
this.updateTokensAndExpiration(e.idToken, e.refreshToken, t);
|
2666
2666
|
}
|
2667
2667
|
updateFromIdToken(e) {
|
@@ -2670,7 +2670,7 @@ class j {
|
|
2670
2670
|
"internal-error"
|
2671
2671
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2672
2672
|
);
|
2673
|
-
const t =
|
2673
|
+
const t = vt(e);
|
2674
2674
|
this.updateTokensAndExpiration(e, null, t);
|
2675
2675
|
}
|
2676
2676
|
async getToken(e, t = !1) {
|
@@ -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, o = new F();
|
2696
2696
|
return r && (d(typeof r == "string", "internal-error", {
|
2697
2697
|
appName: e
|
2698
|
-
}),
|
2698
|
+
}), o.refreshToken = r), i && (d(typeof i == "string", "internal-error", {
|
2699
2699
|
appName: e
|
2700
|
-
}),
|
2700
|
+
}), o.accessToken = i), s && (d(typeof s == "number", "internal-error", {
|
2701
2701
|
appName: e
|
2702
|
-
}),
|
2702
|
+
}), o.expirationTime = s), o;
|
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 F(), this.toJSON());
|
2716
2716
|
}
|
2717
2717
|
_performRefresh() {
|
2718
2718
|
return b("not implemented");
|
@@ -2739,8 +2739,8 @@ function k(n, 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 = Je(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 je(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));
|
@@ -2791,10 +2791,10 @@ class y {
|
|
2791
2791
|
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await pe(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
|
2792
2792
|
}
|
2793
2793
|
async delete() {
|
2794
|
-
if (
|
2794
|
+
if (v(this.auth.app))
|
2795
2795
|
return Promise.reject(P(this.auth));
|
2796
2796
|
const e = await this.getIdToken();
|
2797
|
-
return await K(this,
|
2797
|
+
return await K(this, Ni(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
2798
2798
|
}
|
2799
2799
|
toJSON() {
|
2800
2800
|
return Object.assign(Object.assign({
|
@@ -2821,15 +2821,15 @@ 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,
|
2824
|
+
var r, i, s, o, a, 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, I = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, x = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, tt = (a = t.tenantId) !== null && a !== void 0 ? a : 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: ot } = t;
|
2826
2826
|
d(
|
2827
|
-
Ee &&
|
2827
|
+
Ee && ot,
|
2828
2828
|
e,
|
2829
2829
|
"internal-error"
|
2830
2830
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2831
2831
|
);
|
2832
|
-
const Pn =
|
2832
|
+
const Pn = F.fromJSON(this.name, ot);
|
2833
2833
|
d(
|
2834
2834
|
typeof Ee == "string",
|
2835
2835
|
e,
|
@@ -2845,7 +2845,7 @@ class y {
|
|
2845
2845
|
e,
|
2846
2846
|
"internal-error"
|
2847
2847
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2848
|
-
), k(
|
2848
|
+
), k(I, e.name), k(x, 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,8 +2853,8 @@ class y {
|
|
2853
2853
|
emailVerified: it,
|
2854
2854
|
displayName: p,
|
2855
2855
|
isAnonymous: st,
|
2856
|
-
photoURL:
|
2857
|
-
phoneNumber:
|
2856
|
+
photoURL: x,
|
2857
|
+
phoneNumber: I,
|
2858
2858
|
tenantId: tt,
|
2859
2859
|
stsTokenManager: Pn,
|
2860
2860
|
createdAt: nt,
|
@@ -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 F();
|
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) : [], o = !(i.email && i.passwordHash) && !(s != null && s.length), a = new F();
|
2894
|
+
a.updateFromIdToken(r);
|
2895
2895
|
const c = new y({
|
2896
2896
|
uid: i.localId,
|
2897
2897
|
auth: e,
|
2898
|
-
stsTokenManager:
|
2899
|
-
isAnonymous:
|
2898
|
+
stsTokenManager: a,
|
2899
|
+
isAnonymous: o
|
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 je(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 oe(n, e, t) {
|
2994
2994
|
return `firebase:${n}:${e}:${t}`;
|
2995
2995
|
}
|
2996
2996
|
class H {
|
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 = oe(this.userKey, i.apiKey, s), this.fullPersistenceKey = oe("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());
|
@@ -3030,23 +3030,23 @@ class H {
|
|
3030
3030
|
return l;
|
3031
3031
|
}))).filter((l) => l);
|
3032
3032
|
let s = i[0] || E(yt);
|
3033
|
-
const
|
3034
|
-
let
|
3033
|
+
const o = oe(r, e.config.apiKey, e.name);
|
3034
|
+
let a = null;
|
3035
3035
|
for (const l of t)
|
3036
3036
|
try {
|
3037
|
-
const u = await l._get(
|
3037
|
+
const u = await l._get(o);
|
3038
3038
|
if (u) {
|
3039
3039
|
const p = y._fromJSON(e, u);
|
3040
|
-
l !== s && (
|
3040
|
+
l !== s && (a = 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 H(s, e, r) : (s = c[0],
|
3046
|
+
return !s._shouldAllowMigration || !c.length ? new H(s, e, r) : (s = c[0], a && await s._set(o, a.toJSON()), await Promise.all(t.map(async (l) => {
|
3047
3047
|
if (l !== s)
|
3048
3048
|
try {
|
3049
|
-
await l._remove(
|
3049
|
+
await l._remove(o);
|
3050
3050
|
} catch {
|
3051
3051
|
}
|
3052
3052
|
})), new H(s, e, r));
|
@@ -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 Wi(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 ji() {
|
3132
3132
|
return rr() && document.documentMode === 10;
|
3133
3133
|
}
|
3134
3134
|
function gn(n = f()) {
|
@@ -3150,7 +3150,7 @@ function gn(n = f()) {
|
|
3150
3150
|
* See the License for the specific language governing permissions and
|
3151
3151
|
* limitations under the License.
|
3152
3152
|
*/
|
3153
|
-
function
|
3153
|
+
function In(n, e = []) {
|
3154
3154
|
let t;
|
3155
3155
|
switch (n) {
|
3156
3156
|
case "Browser":
|
@@ -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 Fi {
|
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((o, a) => {
|
3190
3190
|
try {
|
3191
3191
|
const c = e(s);
|
3192
|
-
a(c);
|
3193
|
-
} catch (c) {
|
3194
3192
|
o(c);
|
3193
|
+
} catch (c) {
|
3194
|
+
a(c);
|
3195
3195
|
}
|
3196
3196
|
});
|
3197
3197
|
r.onAbort = t, this.queue.push(r);
|
@@ -3255,20 +3255,20 @@ async function Hi(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 Vi = 6;
|
3259
|
+
class Gi {
|
3260
3260
|
constructor(e) {
|
3261
3261
|
var t, r, i, s;
|
3262
|
-
const
|
3263
|
-
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t =
|
3262
|
+
const o = e.customStrengthOptions;
|
3263
|
+
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Vi, o.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = o.maxPasswordLength), o.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = o.containsLowercaseCharacter), o.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = o.containsUppercaseCharacter), o.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = o.containsNumericCharacter), o.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = o.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, o, a;
|
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 = (o = c.containsNumericCharacter) !== null && o !== void 0 ? o : !0), c.isValid && (c.isValid = (a = c.containsNonAlphanumericCharacter) !== null && a !== void 0 ? a : !0), c;
|
3272
3272
|
}
|
3273
3273
|
/**
|
3274
3274
|
* Validates that the password meets the length options for the policy.
|
@@ -3345,7 +3345,7 @@ class Wi {
|
|
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 Fi(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 () => {
|
@@ -3381,7 +3381,7 @@ class zi {
|
|
3381
3381
|
}
|
3382
3382
|
async initializeCurrentUserFromIdToken(e) {
|
3383
3383
|
try {
|
3384
|
-
const t = await
|
3384
|
+
const t = await an(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);
|
@@ -3389,18 +3389,18 @@ class zi {
|
|
3389
3389
|
}
|
3390
3390
|
async initializeCurrentUser(e) {
|
3391
3391
|
var t;
|
3392
|
-
if (
|
3393
|
-
const
|
3394
|
-
return
|
3395
|
-
setTimeout(() => this.initializeCurrentUserFromIdToken(
|
3392
|
+
if (v(this.app)) {
|
3393
|
+
const o = this.app.settings.authIdToken;
|
3394
|
+
return o ? new Promise((a) => {
|
3395
|
+
setTimeout(() => this.initializeCurrentUserFromIdToken(o).then(a, a));
|
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 o = (t = this.redirectUser) === null || t === void 0 ? void 0 : t._redirectEventId, a = i == null ? void 0 : i._redirectEventId, c = await this.tryRedirectSignIn(e);
|
3403
|
+
(!o || o === a) && (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 (o) {
|
3412
|
+
i = r, this._popupRedirectResolver._overrideRedirectResult(this, () => Promise.reject(o));
|
3413
3413
|
}
|
3414
3414
|
return i ? this.reloadAndSetCurrentUserOrClear(i) : this.directlySetCurrentUser(null);
|
3415
3415
|
}
|
@@ -3445,7 +3445,7 @@ class zi {
|
|
3445
3445
|
this._deleted = !0;
|
3446
3446
|
}
|
3447
3447
|
async updateCurrentUser(e) {
|
3448
|
-
if (
|
3448
|
+
if (v(this.app))
|
3449
3449
|
return Promise.reject(P(this));
|
3450
3450
|
const t = e ? z(e) : null;
|
3451
3451
|
return t && d(
|
@@ -3467,14 +3467,14 @@ class zi {
|
|
3467
3467
|
});
|
3468
3468
|
}
|
3469
3469
|
async signOut() {
|
3470
|
-
return
|
3470
|
+
return v(this.app) ? Promise.reject(P(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
|
3471
3471
|
null,
|
3472
3472
|
/* skipBeforeStateCallbacks */
|
3473
3473
|
!0
|
3474
3474
|
));
|
3475
3475
|
}
|
3476
3476
|
setPersistence(e) {
|
3477
|
-
return
|
3477
|
+
return v(this.app) ? Promise.reject(P(this)) : this.queue(async () => {
|
3478
3478
|
await this.assertedPersistence.setPersistence(E(e));
|
3479
3479
|
});
|
3480
3480
|
}
|
@@ -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 Hi(this), t = new
|
3493
|
+
const e = await Hi(this), t = new Gi(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 xi(this, r);
|
3534
3534
|
}
|
3535
3535
|
}
|
3536
3536
|
toJSON() {
|
@@ -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 o = !1;
|
3606
|
+
const a = this._isInitialized ? Promise.resolve() : this._initializationPromise;
|
3607
3607
|
if (d(
|
3608
|
-
|
3608
|
+
a,
|
3609
3609
|
this,
|
3610
3610
|
"internal-error"
|
3611
3611
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3612
|
-
),
|
3613
|
-
|
3612
|
+
), a.then(() => {
|
3613
|
+
o || s(this.currentUser);
|
3614
3614
|
}), typeof t == "function") {
|
3615
3615
|
const c = e.addObserver(t, r, i);
|
3616
3616
|
return () => {
|
3617
|
-
|
3617
|
+
o = !0, c();
|
3618
3618
|
};
|
3619
3619
|
} else {
|
3620
3620
|
const c = e.addObserver(t);
|
3621
3621
|
return () => {
|
3622
|
-
|
3622
|
+
o = !0, c();
|
3623
3623
|
};
|
3624
3624
|
}
|
3625
3625
|
}
|
@@ -3643,7 +3643,7 @@ class zi {
|
|
3643
3643
|
), this.persistenceManager;
|
3644
3644
|
}
|
3645
3645
|
_logFramework(e) {
|
3646
|
-
!e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion =
|
3646
|
+
!e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = In(this.config.clientPlatform, this._getFrameworks()));
|
3647
3647
|
}
|
3648
3648
|
_getFrameworks() {
|
3649
3649
|
return this.frameworks;
|
@@ -3676,7 +3676,7 @@ class zi {
|
|
3676
3676
|
return t != null && t.error && wi(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
|
3677
3677
|
}
|
3678
3678
|
}
|
3679
|
-
function
|
3679
|
+
function Ie(n) {
|
3680
3680
|
return z(n);
|
3681
3681
|
}
|
3682
3682
|
class Tt {
|
@@ -3719,13 +3719,13 @@ let qe = {
|
|
3719
3719
|
function $i(n) {
|
3720
3720
|
qe = n;
|
3721
3721
|
}
|
3722
|
-
function
|
3722
|
+
function Ji(n) {
|
3723
3723
|
return qe.loadJS(n);
|
3724
3724
|
}
|
3725
|
-
function
|
3725
|
+
function Zi() {
|
3726
3726
|
return qe.gapiScript;
|
3727
3727
|
}
|
3728
|
-
function
|
3728
|
+
function Xi(n) {
|
3729
3729
|
return `__${n}${Math.floor(Math.random() * 1e6)}`;
|
3730
3730
|
}
|
3731
3731
|
/**
|
@@ -3744,8 +3744,8 @@ function Yi(n) {
|
|
3744
3744
|
* See the License for the specific language governing permissions and
|
3745
3745
|
* limitations under the License.
|
3746
3746
|
*/
|
3747
|
-
function
|
3748
|
-
const t =
|
3747
|
+
function Yi(n, e) {
|
3748
|
+
const t = Xt(n, "auth");
|
3749
3749
|
if (t.isInitialized()) {
|
3750
3750
|
const i = t.getImmediate(), s = t.getOptions();
|
3751
3751
|
if (de(s, e ?? {}))
|
@@ -3763,7 +3763,7 @@ function Ki(n, e) {
|
|
3763
3763
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
3764
3764
|
}
|
3765
3765
|
function qi(n, e, t) {
|
3766
|
-
const r =
|
3766
|
+
const r = Ie(n);
|
3767
3767
|
d(
|
3768
3768
|
r._canInitEmulator,
|
3769
3769
|
r,
|
@@ -3775,20 +3775,20 @@ function qi(n, e, t) {
|
|
3775
3775
|
"invalid-emulator-scheme"
|
3776
3776
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
3777
3777
|
);
|
3778
|
-
const i = !1, s =
|
3779
|
-
r.config.emulator = { url: `${s}//${
|
3780
|
-
host:
|
3781
|
-
port:
|
3778
|
+
const i = !1, s = vn(e), { host: o, port: a } = Qi(e), c = a === null ? "" : `:${a}`;
|
3779
|
+
r.config.emulator = { url: `${s}//${o}${c}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
|
3780
|
+
host: o,
|
3781
|
+
port: a,
|
3782
3782
|
protocol: s.replace(":", ""),
|
3783
3783
|
options: Object.freeze({ disableWarnings: i })
|
3784
3784
|
}), es();
|
3785
3785
|
}
|
3786
|
-
function
|
3786
|
+
function vn(n) {
|
3787
3787
|
const e = n.indexOf(":");
|
3788
3788
|
return e < 0 ? "" : n.substr(0, e + 1);
|
3789
3789
|
}
|
3790
3790
|
function Qi(n) {
|
3791
|
-
const e =
|
3791
|
+
const e = vn(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
|
3792
3792
|
if (!t)
|
3793
3793
|
return { host: "", port: null };
|
3794
3794
|
const r = t[2].split("@").pop() || "", i = /^(\[[^\]]+\])(:|$)/.exec(r);
|
@@ -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, o] = r.split(":");
|
3800
|
+
return { host: s, port: wt(o) };
|
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 V(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 = Je(t, ["providerId", "signInMethod"]);
|
3929
3929
|
if (!r || !i)
|
3930
3930
|
return null;
|
3931
|
-
const
|
3932
|
-
return
|
3931
|
+
const o = new U(r, i);
|
3932
|
+
return o.idToken = s.idToken || void 0, o.accessToken = s.accessToken || void 0, o.secret = s.secret, o.nonce = s.nonce, o.pendingToken = s.pendingToken || null, o;
|
3933
3933
|
}
|
3934
3934
|
/** @internal */
|
3935
3935
|
_getIdTokenResponse(e) {
|
3936
3936
|
const t = this.buildRequest();
|
3937
|
-
return
|
3937
|
+
return V(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, V(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, V(e, t);
|
3948
3948
|
}
|
3949
3949
|
buildRequest() {
|
3950
3950
|
const e = {
|
@@ -4275,7 +4275,7 @@ O.PROVIDER_ID = "github.com";
|
|
4275
4275
|
* See the License for the specific language governing permissions and
|
4276
4276
|
* limitations under the License.
|
4277
4277
|
*/
|
4278
|
-
class
|
4278
|
+
class C extends ne {
|
4279
4279
|
constructor() {
|
4280
4280
|
super(
|
4281
4281
|
"twitter.com"
|
@@ -4290,8 +4290,8 @@ class N extends ne {
|
|
4290
4290
|
*/
|
4291
4291
|
static credential(e, t) {
|
4292
4292
|
return U._fromParams({
|
4293
|
-
providerId:
|
4294
|
-
signInMethod:
|
4293
|
+
providerId: C.PROVIDER_ID,
|
4294
|
+
signInMethod: C.TWITTER_SIGN_IN_METHOD,
|
4295
4295
|
oauthToken: e,
|
4296
4296
|
oauthTokenSecret: t
|
4297
4297
|
});
|
@@ -4302,7 +4302,7 @@ class N extends ne {
|
|
4302
4302
|
* @param userCredential - The user credential.
|
4303
4303
|
*/
|
4304
4304
|
static credentialFromResult(e) {
|
4305
|
-
return
|
4305
|
+
return C.credentialFromTaggedObject(e);
|
4306
4306
|
}
|
4307
4307
|
/**
|
4308
4308
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
@@ -4311,7 +4311,7 @@ class N extends ne {
|
|
4311
4311
|
* @param userCredential - The user credential.
|
4312
4312
|
*/
|
4313
4313
|
static credentialFromError(e) {
|
4314
|
-
return
|
4314
|
+
return C.credentialFromTaggedObject(e.customData || {});
|
4315
4315
|
}
|
4316
4316
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
4317
4317
|
if (!e)
|
@@ -4320,14 +4320,14 @@ class N extends ne {
|
|
4320
4320
|
if (!t || !r)
|
4321
4321
|
return null;
|
4322
4322
|
try {
|
4323
|
-
return
|
4323
|
+
return C.credential(t, r);
|
4324
4324
|
} catch {
|
4325
4325
|
return null;
|
4326
4326
|
}
|
4327
4327
|
}
|
4328
4328
|
}
|
4329
|
-
|
4330
|
-
|
4329
|
+
C.TWITTER_SIGN_IN_METHOD = "twitter.com";
|
4330
|
+
C.PROVIDER_ID = "twitter.com";
|
4331
4331
|
/**
|
4332
4332
|
* @license
|
4333
4333
|
* 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), o = Rt(r);
|
4353
4353
|
return new B({
|
4354
4354
|
user: s,
|
4355
|
-
providerId:
|
4355
|
+
providerId: o,
|
4356
4356
|
_tokenResponse: r,
|
4357
4357
|
operationType: t
|
4358
4358
|
});
|
@@ -4432,7 +4432,7 @@ async function ns(n, e, t = !1) {
|
|
4432
4432
|
*/
|
4433
4433
|
async function rs(n, e, t = !1) {
|
4434
4434
|
const { auth: r } = n;
|
4435
|
-
if (
|
4435
|
+
if (v(r.app))
|
4436
4436
|
return Promise.reject(P(r));
|
4437
4437
|
const i = "reauthenticate";
|
4438
4438
|
try {
|
@@ -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 o = Ye(s.idToken);
|
4447
4447
|
d(
|
4448
|
-
|
4448
|
+
o,
|
4449
4449
|
r,
|
4450
4450
|
"internal-error"
|
4451
4451
|
/* AuthErrorCode.INTERNAL_ERROR */
|
4452
4452
|
);
|
4453
|
-
const { sub:
|
4453
|
+
const { sub: a } = o;
|
4454
4454
|
return d(
|
4455
|
-
n.uid ===
|
4455
|
+
n.uid === a,
|
4456
4456
|
r,
|
4457
4457
|
"user-mismatch"
|
4458
4458
|
/* AuthErrorCode.USER_MISMATCH */
|
@@ -4482,7 +4482,7 @@ async function rs(n, e, t = !1) {
|
|
4482
4482
|
* limitations under the License.
|
4483
4483
|
*/
|
4484
4484
|
async function is(n, e, t = !1) {
|
4485
|
-
if (
|
4485
|
+
if (v(n.app))
|
4486
4486
|
return Promise.reject(P(n));
|
4487
4487
|
const r = "signIn", i = await En(n, r, e), s = await B._fromIdTokenResponse(n, r, i);
|
4488
4488
|
return t || await n._updateCurrentUser(s.user), s;
|
@@ -4522,16 +4522,16 @@ 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
|
4526
|
-
if (
|
4525
|
+
async function os(n, e) {
|
4526
|
+
if (v(n.app))
|
4527
4527
|
return Promise.reject(P(n));
|
4528
|
-
const t =
|
4528
|
+
const t = Ie(n), r = await ss(t, {
|
4529
4529
|
token: e,
|
4530
4530
|
returnSecureToken: !0
|
4531
4531
|
}), i = await B._fromIdTokenResponse(t, "signIn", r);
|
4532
4532
|
return await t._updateCurrentUser(i.user), i;
|
4533
4533
|
}
|
4534
|
-
function
|
4534
|
+
function as(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((o, a, c) => {
|
4616
|
+
this.notifyListeners(o, 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 o = this.storage.getItem(r);
|
4624
|
+
!t && this.localCache[r] === o || this.notifyListeners(r, o);
|
4625
4625
|
}, s = this.storage.getItem(r);
|
4626
|
-
|
4626
|
+
ji() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i, ds) : i();
|
4627
4627
|
}
|
4628
4628
|
notifyListeners(e, t) {
|
4629
4629
|
this.localCache[e] = t;
|
@@ -4754,7 +4754,7 @@ function hs(n) {
|
|
4754
4754
|
* See the License for the specific language governing permissions and
|
4755
4755
|
* limitations under the License.
|
4756
4756
|
*/
|
4757
|
-
class
|
4757
|
+
class ve {
|
4758
4758
|
constructor(e) {
|
4759
4759
|
this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
|
4760
4760
|
}
|
@@ -4768,7 +4768,7 @@ class Ie {
|
|
4768
4768
|
const t = this.receivers.find((i) => i.isListeningto(e));
|
4769
4769
|
if (t)
|
4770
4770
|
return t;
|
4771
|
-
const r = new
|
4771
|
+
const r = new ve(e);
|
4772
4772
|
return this.receivers.push(r), r;
|
4773
4773
|
}
|
4774
4774
|
isListeningto(e) {
|
@@ -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, o = this.handlersMap[i];
|
4789
|
+
if (!(o != null && o.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 a = Array.from(o).map(async (l) => l(t.origin, s)), c = await hs(a);
|
4797
4797
|
t.ports[0].postMessage({
|
4798
4798
|
status: "done",
|
4799
4799
|
eventId: r,
|
@@ -4822,7 +4822,7 @@ class Ie {
|
|
4822
4822
|
this.handlersMap[e] && t && this.handlersMap[e].delete(t), (!t || this.handlersMap[e].size === 0) && delete this.handlersMap[e], Object.keys(this.handlersMap).length === 0 && this.eventTarget.removeEventListener("message", this.boundEventHandler);
|
4823
4823
|
}
|
4824
4824
|
}
|
4825
|
-
|
4825
|
+
ve.receivers = [];
|
4826
4826
|
/**
|
4827
4827
|
* @license
|
4828
4828
|
* Copyright 2020 Google LLC
|
@@ -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, o;
|
4897
|
+
return new Promise((a, 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
|
+
o = {
|
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), a(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(o), i.port1.addEventListener("message", o.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
|
+
o && this.removeMessageHandler(o);
|
4942
4942
|
});
|
4943
4943
|
}
|
4944
4944
|
}
|
@@ -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 An = "firebaseLocalStorageDb",
|
5018
|
+
const An = "firebaseLocalStorageDb", Is = 1, _e = "firebaseLocalStorage", On = "fbase_key";
|
5019
5019
|
class re {
|
5020
5020
|
constructor(e) {
|
5021
5021
|
this.request = e;
|
@@ -5033,12 +5033,12 @@ class re {
|
|
5033
5033
|
function be(n, e) {
|
5034
5034
|
return n.transaction([_e], e ? "readwrite" : "readonly").objectStore(_e);
|
5035
5035
|
}
|
5036
|
-
function
|
5036
|
+
function vs() {
|
5037
5037
|
const n = indexedDB.deleteDatabase(An);
|
5038
5038
|
return new re(n).toPromise();
|
5039
5039
|
}
|
5040
|
-
function
|
5041
|
-
const n = indexedDB.open(An,
|
5040
|
+
function Fe() {
|
5041
|
+
const n = indexedDB.open(An, Is);
|
5042
5042
|
return new Promise((e, t) => {
|
5043
5043
|
n.addEventListener("error", () => {
|
5044
5044
|
t(n.error);
|
@@ -5051,7 +5051,7 @@ 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
|
5054
|
+
r.objectStoreNames.contains(_e) ? e(r) : (r.close(), await vs(), e(await Fe()));
|
5055
5055
|
});
|
5056
5056
|
});
|
5057
5057
|
}
|
@@ -5071,14 +5071,14 @@ function St(n, e) {
|
|
5071
5071
|
return new re(t).toPromise();
|
5072
5072
|
}
|
5073
5073
|
const ys = 800, Es = 3;
|
5074
|
-
class
|
5074
|
+
class Cn {
|
5075
5075
|
constructor() {
|
5076
5076
|
this.type = "LOCAL", this._shouldAllowMigration = !0, this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.pendingWrites = 0, this.receiver = null, this.sender = null, this.serviceWorkerReceiverAvailable = !1, this.activeServiceWorker = null, this._workerInitializationPromise = this.initializeServiceWorkerMessaging().then(() => {
|
5077
5077
|
}, () => {
|
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 Fe(), this.db);
|
5082
5082
|
}
|
5083
5083
|
async _withRetries(e) {
|
5084
5084
|
let t = 0;
|
@@ -5103,7 +5103,7 @@ class Nn {
|
|
5103
5103
|
* As the worker we should listen to events from the main window.
|
5104
5104
|
*/
|
5105
5105
|
async initializeReceiver() {
|
5106
|
-
this.receiver =
|
5106
|
+
this.receiver = ve._getInstance(gs()), this.receiver._subscribe("keyChanged", async (e, t) => ({
|
5107
5107
|
keyProcessed: (await this._poll()).includes(t.key)
|
5108
5108
|
})), this.receiver._subscribe("ping", async (e, t) => [
|
5109
5109
|
"keyChanged"
|
@@ -5159,7 +5159,7 @@ class Nn {
|
|
5159
5159
|
try {
|
5160
5160
|
if (!indexedDB)
|
5161
5161
|
return !1;
|
5162
|
-
const e = await
|
5162
|
+
const e = await Fe();
|
5163
5163
|
return await kt(e, me, "1"), await St(e, me), !0;
|
5164
5164
|
} catch {
|
5165
5165
|
}
|
@@ -5220,8 +5220,8 @@ class Nn {
|
|
5220
5220
|
this.listeners[e] && (this.listeners[e].delete(t), this.listeners[e].size === 0 && delete this.listeners[e]), Object.keys(this.listeners).length === 0 && this.stopPolling();
|
5221
5221
|
}
|
5222
5222
|
}
|
5223
|
-
|
5224
|
-
const Ts =
|
5223
|
+
Cn.type = "LOCAL";
|
5224
|
+
const Ts = Cn;
|
5225
5225
|
new te(3e4, 6e4);
|
5226
5226
|
/**
|
5227
5227
|
* @license
|
@@ -5272,13 +5272,13 @@ class et extends bn {
|
|
5272
5272
|
), this.params = e;
|
5273
5273
|
}
|
5274
5274
|
_getIdTokenResponse(e) {
|
5275
|
-
return
|
5275
|
+
return V(e, this._buildIdpRequest());
|
5276
5276
|
}
|
5277
5277
|
_linkToIdToken(e, t) {
|
5278
|
-
return
|
5278
|
+
return V(e, this._buildIdpRequest(t));
|
5279
5279
|
}
|
5280
5280
|
_getReauthenticationResolver(e) {
|
5281
|
-
return
|
5281
|
+
return V(e, this._buildIdpRequest());
|
5282
5282
|
}
|
5283
5283
|
_buildIdpRequest(e) {
|
5284
5284
|
const t = {
|
@@ -5330,7 +5330,7 @@ async function Ss(n) {
|
|
5330
5330
|
* See the License for the specific language governing permissions and
|
5331
5331
|
* limitations under the License.
|
5332
5332
|
*/
|
5333
|
-
class
|
5333
|
+
class Nn {
|
5334
5334
|
constructor(e, t, r, i, s = !1) {
|
5335
5335
|
this.auth = e, this.resolver = r, this.user = i, this.bypassAuthState = s, this.pendingPromise = null, this.eventManager = null, this.filter = Array.isArray(t) ? t : [t];
|
5336
5336
|
}
|
@@ -5345,9 +5345,9 @@ class Cn {
|
|
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: o, type: a } = e;
|
5349
|
+
if (o) {
|
5350
|
+
this.reject(o);
|
5351
5351
|
return;
|
5352
5352
|
}
|
5353
5353
|
const c = {
|
@@ -5360,7 +5360,7 @@ class Cn {
|
|
5360
5360
|
bypassAuthState: this.bypassAuthState
|
5361
5361
|
};
|
5362
5362
|
try {
|
5363
|
-
this.resolve(await this.getIdpTask(
|
5363
|
+
this.resolve(await this.getIdpTask(a)(c));
|
5364
5364
|
} catch (l) {
|
5365
5365
|
this.reject(l);
|
5366
5366
|
}
|
@@ -5414,9 +5414,9 @@ class Cn {
|
|
5414
5414
|
* limitations under the License.
|
5415
5415
|
*/
|
5416
5416
|
const As = new te(2e3, 1e4);
|
5417
|
-
class
|
5417
|
+
class W 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, W.currentPopupAction && W.currentPopupAction.cancel(), W.currentPopupAction = this;
|
5420
5420
|
}
|
5421
5421
|
async executeNotNull() {
|
5422
5422
|
const e = await this.execute();
|
@@ -5458,7 +5458,7 @@ class x extends Cn {
|
|
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, W.currentPopupAction = null;
|
5462
5462
|
}
|
5463
5463
|
pollUserCancellation() {
|
5464
5464
|
const e = () => {
|
@@ -5482,7 +5482,7 @@ class x extends Cn {
|
|
5482
5482
|
e();
|
5483
5483
|
}
|
5484
5484
|
}
|
5485
|
-
|
5485
|
+
W.currentPopupAction = null;
|
5486
5486
|
/**
|
5487
5487
|
* @license
|
5488
5488
|
* Copyright 2020 Google LLC
|
@@ -5499,8 +5499,8 @@ x.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",
|
5503
|
-
class
|
5502
|
+
const Os = "pendingRedirect", ae = /* @__PURE__ */ new Map();
|
5503
|
+
class Cs extends Nn {
|
5504
5504
|
constructor(e, t, r = !1) {
|
5505
5505
|
super(e, [
|
5506
5506
|
"signInViaRedirect",
|
@@ -5515,17 +5515,17 @@ class Ns extends Cn {
|
|
5515
5515
|
* just return it.
|
5516
5516
|
*/
|
5517
5517
|
async execute() {
|
5518
|
-
let e =
|
5518
|
+
let e = ae.get(this.auth._key());
|
5519
5519
|
if (!e) {
|
5520
5520
|
try {
|
5521
|
-
const r = await
|
5521
|
+
const r = await Ns(this.resolver, this.auth) ? await super.execute() : null;
|
5522
5522
|
e = () => Promise.resolve(r);
|
5523
5523
|
} catch (t) {
|
5524
5524
|
e = () => Promise.reject(t);
|
5525
5525
|
}
|
5526
|
-
|
5526
|
+
ae.set(this.auth._key(), e);
|
5527
5527
|
}
|
5528
|
-
return this.bypassAuthState ||
|
5528
|
+
return this.bypassAuthState || ae.set(this.auth._key(), () => Promise.resolve(null)), e();
|
5529
5529
|
}
|
5530
5530
|
async onAuthEvent(e) {
|
5531
5531
|
if (e.type === "signInViaRedirect")
|
@@ -5546,7 +5546,7 @@ class Ns extends Cn {
|
|
5546
5546
|
cleanUp() {
|
5547
5547
|
}
|
5548
5548
|
}
|
5549
|
-
async function
|
5549
|
+
async function Ns(n, e) {
|
5550
5550
|
const t = Ms(e), r = Ps(n);
|
5551
5551
|
if (!await r._isAvailable())
|
5552
5552
|
return !1;
|
@@ -5554,19 +5554,19 @@ async function Cs(n, e) {
|
|
5554
5554
|
return await r._remove(t), i;
|
5555
5555
|
}
|
5556
5556
|
function Ds(n, e) {
|
5557
|
-
|
5557
|
+
ae.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 oe(Os, n.config.apiKey, n.name);
|
5564
5564
|
}
|
5565
5565
|
async function Ls(n, e, t = !1) {
|
5566
|
-
if (
|
5566
|
+
if (v(n.app))
|
5567
5567
|
return Promise.reject(P(n));
|
5568
|
-
const r =
|
5569
|
-
return
|
5568
|
+
const r = Ie(n), i = ws(r, e), o = await new Cs(r, i, t).execute();
|
5569
|
+
return o && !t && (delete o.user._redirectEventId, await r._persistUserIfCurrent(o.user), await r._setRedirectUser(null, e)), o;
|
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 || !xs(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
|
5605
5605
|
}
|
5606
5606
|
sendToConsumer(e, t) {
|
5607
5607
|
var r;
|
@@ -5628,7 +5628,7 @@ function At(n) {
|
|
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 xs(n) {
|
5632
5632
|
switch (n.type) {
|
5633
5633
|
case "signInViaRedirect":
|
5634
5634
|
case "linkViaRedirect":
|
@@ -5656,7 +5656,7 @@ function Fs(n) {
|
|
5656
5656
|
* See the License for the specific language governing permissions and
|
5657
5657
|
* limitations under the License.
|
5658
5658
|
*/
|
5659
|
-
async function
|
5659
|
+
async function Ws(n, e = {}) {
|
5660
5660
|
return $(n, "GET", "/v1/projects", e);
|
5661
5661
|
}
|
5662
5662
|
/**
|
@@ -5675,14 +5675,14 @@ async function xs(n, e = {}) {
|
|
5675
5675
|
* See the License for the specific language governing permissions and
|
5676
5676
|
* limitations under the License.
|
5677
5677
|
*/
|
5678
|
-
const
|
5678
|
+
const js = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Fs = /^https?/;
|
5679
5679
|
async function Hs(n) {
|
5680
5680
|
if (n.config.emulator)
|
5681
5681
|
return;
|
5682
|
-
const { authorizedDomains: e } = await
|
5682
|
+
const { authorizedDomains: e } = await Ws(n);
|
5683
5683
|
for (const t of e)
|
5684
5684
|
try {
|
5685
|
-
if (
|
5685
|
+
if (Vs(t))
|
5686
5686
|
return;
|
5687
5687
|
} catch {
|
5688
5688
|
}
|
@@ -5692,15 +5692,15 @@ async function Hs(n) {
|
|
5692
5692
|
/* AuthErrorCode.INVALID_ORIGIN */
|
5693
5693
|
);
|
5694
5694
|
}
|
5695
|
-
function
|
5696
|
-
const e =
|
5695
|
+
function Vs(n) {
|
5696
|
+
const e = We(), { protocol: t, hostname: r } = new URL(e);
|
5697
5697
|
if (n.startsWith("chrome-extension://")) {
|
5698
|
-
const
|
5699
|
-
return
|
5698
|
+
const o = new URL(n);
|
5699
|
+
return o.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && o.hostname === r;
|
5700
5700
|
}
|
5701
|
-
if (!
|
5701
|
+
if (!Fs.test(t))
|
5702
5702
|
return !1;
|
5703
|
-
if (
|
5703
|
+
if (js.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 Gs(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 Gs = 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 o() {
|
5738
5738
|
Ot(), gapi.load("gapi.iframes", {
|
5739
5739
|
callback: () => {
|
5740
5740
|
e(gapi.iframes.getContext());
|
@@ -5746,22 +5746,22 @@ function zs(n) {
|
|
5746
5746
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
5747
5747
|
));
|
5748
5748
|
},
|
5749
|
-
timeout:
|
5749
|
+
timeout: Gs.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
|
+
o();
|
5756
5756
|
else {
|
5757
|
-
const
|
5758
|
-
return g()[
|
5759
|
-
gapi.load ?
|
5757
|
+
const a = Xi("iframefcb");
|
5758
|
+
return g()[a] = () => {
|
5759
|
+
gapi.load ? o() : t(_(
|
5760
5760
|
n,
|
5761
5761
|
"network-request-failed"
|
5762
5762
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
5763
5763
|
));
|
5764
|
-
},
|
5764
|
+
}, Ji(`${Zi()}?onload=${a}`).catch((c) => t(c));
|
5765
5765
|
}
|
5766
5766
|
}).catch((e) => {
|
5767
5767
|
throw ce = null, e;
|
@@ -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 Js = new te(5e3, 15e3), Zs = "__/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 ?
|
5813
|
+
const t = e.emulator ? Xe(e, Xs) : `https://${n.config.authDomain}/${Zs}`, r = {
|
5814
5814
|
apiKey: e.apiKey,
|
5815
5815
|
appName: n.name,
|
5816
5816
|
v: ee
|
@@ -5830,25 +5830,25 @@ async function Qs(n) {
|
|
5830
5830
|
where: document.body,
|
5831
5831
|
url: qs(n),
|
5832
5832
|
messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
|
5833
|
-
attributes:
|
5833
|
+
attributes: Ys,
|
5834
5834
|
dontclear: !0
|
5835
5835
|
}, (r) => new Promise(async (i, s) => {
|
5836
5836
|
await r.restyle({
|
5837
5837
|
// Prevent iframe from closing on mouse out.
|
5838
5838
|
setHideOnLeave: !1
|
5839
5839
|
});
|
5840
|
-
const
|
5840
|
+
const o = _(
|
5841
5841
|
n,
|
5842
5842
|
"network-request-failed"
|
5843
5843
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
5844
|
-
),
|
5845
|
-
s(
|
5846
|
-
},
|
5844
|
+
), a = g().setTimeout(() => {
|
5845
|
+
s(o);
|
5846
|
+
}, Js.get());
|
5847
5847
|
function c() {
|
5848
|
-
g().clearTimeout(
|
5848
|
+
g().clearTimeout(a), i(r);
|
5849
5849
|
}
|
5850
5850
|
r.ping(c).then(c, () => {
|
5851
|
-
s(
|
5851
|
+
s(o);
|
5852
5852
|
});
|
5853
5853
|
}));
|
5854
5854
|
}
|
@@ -5868,13 +5868,13 @@ 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 eo = {
|
5872
5872
|
location: "yes",
|
5873
5873
|
resizable: "yes",
|
5874
5874
|
statusbar: "yes",
|
5875
5875
|
toolbar: "no"
|
5876
|
-
},
|
5877
|
-
class
|
5876
|
+
}, to = 500, no = 600, ro = "_blank", io = "http://localhost";
|
5877
|
+
class Ct {
|
5878
5878
|
constructor(e) {
|
5879
5879
|
this.window = e, this.associatedEvent = null;
|
5880
5880
|
}
|
@@ -5886,20 +5886,20 @@ class Nt {
|
|
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 so(n, e, t, r = to, i = no) {
|
5890
|
+
const s = Math.max((window.screen.availHeight - i) / 2, 0).toString(), o = Math.max((window.screen.availWidth - r) / 2, 0).toString();
|
5891
|
+
let a = "";
|
5892
|
+
const c = Object.assign(Object.assign({}, eo), {
|
5893
5893
|
width: r.toString(),
|
5894
5894
|
height: i.toString(),
|
5895
5895
|
top: s,
|
5896
|
-
left:
|
5896
|
+
left: o
|
5897
5897
|
}), l = f().toLowerCase();
|
5898
|
-
t && (
|
5899
|
-
const u = Object.entries(c).reduce((m, [
|
5900
|
-
if (
|
5901
|
-
return
|
5902
|
-
const p = window.open(e || "",
|
5898
|
+
t && (a = hn(l) ? ro : t), dn(l) && (e = e || io, c.scrollbars = "yes");
|
5899
|
+
const u = Object.entries(c).reduce((m, [I, x]) => `${m}${I}=${x},`, "");
|
5900
|
+
if (Wi(l) && a !== "_self")
|
5901
|
+
return oo(e || "", a), new Ct(null);
|
5902
|
+
const p = window.open(e || "", a, u);
|
5903
5903
|
d(
|
5904
5904
|
p,
|
5905
5905
|
n,
|
@@ -5910,9 +5910,9 @@ function sa(n, e, t, r = ta, i = na) {
|
|
5910
5910
|
p.focus();
|
5911
5911
|
} catch {
|
5912
5912
|
}
|
5913
|
-
return new
|
5913
|
+
return new Ct(p);
|
5914
5914
|
}
|
5915
|
-
function
|
5915
|
+
function oo(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,8 +5934,8 @@ function aa(n, e) {
|
|
5934
5934
|
* See the License for the specific language governing permissions and
|
5935
5935
|
* limitations under the License.
|
5936
5936
|
*/
|
5937
|
-
const
|
5938
|
-
async function
|
5937
|
+
const ao = "__/auth/handler", co = "emulator/auth/handler", lo = encodeURIComponent("fac");
|
5938
|
+
async function Nt(n, e, t, r, i, s) {
|
5939
5939
|
d(
|
5940
5940
|
n.config.authDomain,
|
5941
5941
|
n,
|
@@ -5947,7 +5947,7 @@ async function Ct(n, e, t, r, i, s) {
|
|
5947
5947
|
"invalid-api-key"
|
5948
5948
|
/* AuthErrorCode.INVALID_API_KEY */
|
5949
5949
|
);
|
5950
|
-
const
|
5950
|
+
const o = {
|
5951
5951
|
apiKey: n.config.apiKey,
|
5952
5952
|
appName: n.name,
|
5953
5953
|
authType: t,
|
@@ -5956,23 +5956,23 @@ async function Ct(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), o.providerId = e.providerId || "", lr(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
|
5960
5960
|
for (const [u, p] of Object.entries({}))
|
5961
|
-
|
5961
|
+
o[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 && (o.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 && (o.tid = n.tenantId);
|
5968
|
+
const a = o;
|
5969
|
+
for (const u of Object.keys(a))
|
5970
|
+
a[u] === void 0 && delete a[u];
|
5971
|
+
const c = await n._getAppCheckToken(), l = c ? `#${lo}=${encodeURIComponent(c)}` : "";
|
5972
|
+
return `${uo(n)}?${Q(a).slice(1)}${l}`;
|
5973
5973
|
}
|
5974
|
-
function
|
5975
|
-
return n.emulator ?
|
5974
|
+
function uo({ config: n }) {
|
5975
|
+
return n.emulator ? Xe(n, co) : `https://${n.authDomain}/${ao}`;
|
5976
5976
|
}
|
5977
5977
|
/**
|
5978
5978
|
* @license
|
@@ -5990,8 +5990,8 @@ function da({ config: n }) {
|
|
5990
5990
|
* See the License for the specific language governing permissions and
|
5991
5991
|
* limitations under the License.
|
5992
5992
|
*/
|
5993
|
-
const
|
5994
|
-
class
|
5993
|
+
const Ne = "webStorageSupport";
|
5994
|
+
class ho {
|
5995
5995
|
constructor() {
|
5996
5996
|
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = kn, this._completeRedirectFn = Ls, this._overrideRedirectResult = Ds;
|
5997
5997
|
}
|
@@ -6000,12 +6000,12 @@ class ua {
|
|
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 o = await Nt(e, t, r, We(), i);
|
6004
|
+
return so(e, o, Qe());
|
6005
6005
|
}
|
6006
6006
|
async _openRedirect(e, t, r, i) {
|
6007
6007
|
await this._originValidation(e);
|
6008
|
-
const s = await
|
6008
|
+
const s = await Nt(e, t, r, We(), i);
|
6009
6009
|
return fs(s), new Promise(() => {
|
6010
6010
|
});
|
6011
6011
|
}
|
@@ -6033,10 +6033,10 @@ class ua {
|
|
6033
6033
|
}), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = t, r;
|
6034
6034
|
}
|
6035
6035
|
_isIframeWebStorageSupported(e, t) {
|
6036
|
-
this.iframes[e._key()].send(
|
6036
|
+
this.iframes[e._key()].send(Ne, { type: Ne }, (i) => {
|
6037
6037
|
var s;
|
6038
|
-
const
|
6039
|
-
|
6038
|
+
const o = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[Ne];
|
6039
|
+
o !== void 0 && t(!!o), w(
|
6040
6040
|
e,
|
6041
6041
|
"internal-error"
|
6042
6042
|
/* AuthErrorCode.INTERNAL_ERROR */
|
@@ -6051,7 +6051,7 @@ class ua {
|
|
6051
6051
|
return gn() || un() || Ke();
|
6052
6052
|
}
|
6053
6053
|
}
|
6054
|
-
const
|
6054
|
+
const po = ho;
|
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 fo {
|
6073
6073
|
constructor(e) {
|
6074
6074
|
this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
|
6075
6075
|
}
|
@@ -6120,7 +6120,7 @@ class pa {
|
|
6120
6120
|
* See the License for the specific language governing permissions and
|
6121
6121
|
* limitations under the License.
|
6122
6122
|
*/
|
6123
|
-
function
|
6123
|
+
function mo(n) {
|
6124
6124
|
switch (n) {
|
6125
6125
|
case "Node":
|
6126
6126
|
return "node";
|
@@ -6136,20 +6136,20 @@ function fa(n) {
|
|
6136
6136
|
return;
|
6137
6137
|
}
|
6138
6138
|
}
|
6139
|
-
function
|
6140
|
-
|
6139
|
+
function _o(n) {
|
6140
|
+
X(new G(
|
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: o, authDomain: a } = r.options;
|
6144
|
+
d(o && !o.includes(":"), "invalid-api-key", { appName: r.name });
|
6145
6145
|
const c = {
|
6146
|
-
apiKey:
|
6147
|
-
authDomain:
|
6146
|
+
apiKey: o,
|
6147
|
+
authDomain: a,
|
6148
6148
|
clientPlatform: n,
|
6149
6149
|
apiHost: "identitytoolkit.googleapis.com",
|
6150
6150
|
tokenApiHost: "securetoken.googleapis.com",
|
6151
6151
|
apiScheme: "https",
|
6152
|
-
sdkClientVersion:
|
6152
|
+
sdkClientVersion: In(n)
|
6153
6153
|
}, l = new zi(r, i, s, c);
|
6154
6154
|
return Ki(l, t), l;
|
6155
6155
|
},
|
@@ -6163,21 +6163,21 @@ function ma(n) {
|
|
6163
6163
|
"auth-internal"
|
6164
6164
|
/* _ComponentName.AUTH_INTERNAL */
|
6165
6165
|
).initialize();
|
6166
|
-
})),
|
6166
|
+
})), X(new G(
|
6167
6167
|
"auth-internal",
|
6168
6168
|
(e) => {
|
6169
|
-
const t =
|
6169
|
+
const t = Ie(e.getProvider(
|
6170
6170
|
"auth"
|
6171
6171
|
/* _ComponentName.AUTH */
|
6172
6172
|
).getImmediate());
|
6173
|
-
return ((r) => new
|
6173
|
+
return ((r) => new fo(r))(t);
|
6174
6174
|
},
|
6175
6175
|
"PRIVATE"
|
6176
6176
|
/* ComponentType.PRIVATE */
|
6177
6177
|
).setInstantiationMode(
|
6178
6178
|
"EXPLICIT"
|
6179
6179
|
/* InstantiationMode.EXPLICIT */
|
6180
|
-
)),
|
6180
|
+
)), j(Dt, Pt, mo(n)), j(Dt, Pt, "esm2017");
|
6181
6181
|
}
|
6182
6182
|
/**
|
6183
6183
|
* @license
|
@@ -6195,11 +6195,11 @@ function ma(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 go = 5 * 60, Io = zt("authIdTokenMaxAge") || go;
|
6199
6199
|
let Mt = null;
|
6200
|
-
const
|
6200
|
+
const vo = (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 > Io)
|
6203
6203
|
return;
|
6204
6204
|
const i = t == null ? void 0 : t.token;
|
6205
6205
|
Mt !== i && (Mt = i, await fetch(n, {
|
@@ -6209,12 +6209,12 @@ const va = (n) => async (e) => {
|
|
6209
6209
|
} : {}
|
6210
6210
|
}));
|
6211
6211
|
};
|
6212
|
-
function
|
6213
|
-
const e =
|
6212
|
+
function bo(n = ui()) {
|
6213
|
+
const e = Xt(n, "auth");
|
6214
6214
|
if (e.isInitialized())
|
6215
6215
|
return e.getImmediate();
|
6216
|
-
const t =
|
6217
|
-
popupRedirectResolver:
|
6216
|
+
const t = Yi(n, {
|
6217
|
+
popupRedirectResolver: po,
|
6218
6218
|
persistence: [
|
6219
6219
|
Ts,
|
6220
6220
|
us,
|
@@ -6224,14 +6224,14 @@ function Ia(n = ui()) {
|
|
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 o = vo(s.toString());
|
6228
|
+
cs(t, o, () => o(t.currentUser)), as(t, (a) => o(a));
|
6229
6229
|
}
|
6230
6230
|
}
|
6231
|
-
const i =
|
6231
|
+
const i = Vt("auth");
|
6232
6232
|
return i && qi(t, `http://${i}`), t;
|
6233
6233
|
}
|
6234
|
-
function
|
6234
|
+
function yo() {
|
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
|
}
|
@@ -6245,23 +6245,23 @@ $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", yo().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
|
+
_o(
|
6256
6256
|
"Browser"
|
6257
6257
|
/* ClientPlatform.BROWSER */
|
6258
6258
|
);
|
6259
|
-
const
|
6259
|
+
const Eo = Ln({
|
6260
6260
|
history: Un(),
|
6261
|
-
routes: [...
|
6261
|
+
routes: [...Ge, ...Ve]
|
6262
6262
|
});
|
6263
6263
|
let De, Pe;
|
6264
|
-
|
6264
|
+
Eo.beforeEach(async (n) => {
|
6265
6265
|
const {
|
6266
6266
|
sessionUser: e,
|
6267
6267
|
currentRestaurant: t,
|
@@ -6269,118 +6269,118 @@ ya.beforeEach(async (n) => {
|
|
6269
6269
|
readRestaurants: i,
|
6270
6270
|
changeRestaurant: s
|
6271
6271
|
} = He();
|
6272
|
-
return n.name.startsWith("mf-payment-admin") ? e.value ? !0 : (De || (De = new Promise((
|
6273
|
-
const
|
6272
|
+
return n.name.startsWith("mf-payment-admin") ? e.value ? !0 : (De || (De = new Promise((o) => {
|
6273
|
+
const a = J(e, (c) => {
|
6274
6274
|
var l;
|
6275
|
-
c && (
|
6275
|
+
c && (a(), o(((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 (o) => {
|
6279
|
+
const a = J(r, (c) => {
|
6280
|
+
c && (a(), o(!0));
|
6281
6281
|
});
|
6282
6282
|
}),
|
6283
|
-
new Promise(async (
|
6284
|
-
const
|
6285
|
-
l && (
|
6283
|
+
new Promise(async (o) => {
|
6284
|
+
const a = J(t, (l) => {
|
6285
|
+
l && (a(), o(!0));
|
6286
6286
|
}), c = await i();
|
6287
6287
|
await s(c == null ? void 0 : c.at(0));
|
6288
6288
|
})
|
6289
|
-
]).then((
|
6289
|
+
]).then((o) => !0)), Pe) : !0;
|
6290
6290
|
});
|
6291
|
-
const
|
6291
|
+
const To = /* @__PURE__ */ Ut({
|
6292
6292
|
__name: "AppSidebar",
|
6293
6293
|
setup(n) {
|
6294
|
-
const e = He(), t = Bn(), r =
|
6295
|
-
|
6296
|
-
let
|
6297
|
-
t.currentRoute.value.meta.parent && (
|
6294
|
+
const e = He(), t = Bn(), r = xn(t.currentRoute.value.name);
|
6295
|
+
J(t.currentRoute, () => {
|
6296
|
+
let a = t.currentRoute.value.name;
|
6297
|
+
t.currentRoute.value.meta.parent && (a = t.currentRoute.value.meta.parent), r.value = a;
|
6298
6298
|
});
|
6299
|
-
const i =
|
6299
|
+
const i = Ge.map((a) => {
|
6300
6300
|
var l;
|
6301
|
-
if (!((l =
|
6301
|
+
if (!((l = a.meta) != null && l.sidebarDisplay))
|
6302
6302
|
return;
|
6303
6303
|
const c = {
|
6304
|
-
label:
|
6305
|
-
value:
|
6304
|
+
label: a.meta.sidebarDisplay,
|
6305
|
+
value: a.name,
|
6306
6306
|
action: () => {
|
6307
|
-
if (t.currentRoute.value.name !==
|
6308
|
-
return t.push({ name:
|
6307
|
+
if (t.currentRoute.value.name !== a.name)
|
6308
|
+
return t.push({ name: a.name });
|
6309
6309
|
}
|
6310
6310
|
};
|
6311
|
-
return
|
6312
|
-
}).filter((
|
6311
|
+
return a.meta.sidebarNew && (c.badge = () => Wn(Vn.FmPill, { label: "New" })), c;
|
6312
|
+
}).filter((a) => !!a), s = Ve.map((a) => {
|
6313
6313
|
var c;
|
6314
|
-
if ((c =
|
6314
|
+
if ((c = a.meta) != null && c.sidebarDisplay)
|
6315
6315
|
return {
|
6316
|
-
label:
|
6317
|
-
value:
|
6316
|
+
label: a.meta.sidebarDisplay,
|
6317
|
+
value: a.name,
|
6318
6318
|
action: () => {
|
6319
|
-
if (t.currentRoute.value.name !==
|
6320
|
-
return t.push({ name:
|
6319
|
+
if (t.currentRoute.value.name !== a.name)
|
6320
|
+
return t.push({ name: a.name });
|
6321
6321
|
}
|
6322
6322
|
};
|
6323
|
-
}).filter((
|
6323
|
+
}).filter((a) => !!a), o = Lt(() => {
|
6324
6324
|
var c;
|
6325
|
-
const
|
6326
|
-
return (c = e.sessionUser.value) != null && c.isInternal && (
|
6325
|
+
const a = [...i];
|
6326
|
+
return (c = e.sessionUser.value) != null && c.isInternal && (a.push({
|
6327
6327
|
label: "",
|
6328
6328
|
value: "divider",
|
6329
6329
|
disabled: !0
|
6330
|
-
}),
|
6330
|
+
}), a.push({
|
6331
6331
|
label: "Admin Panel",
|
6332
6332
|
icon: "admin_panel_settings",
|
6333
6333
|
value: "divider",
|
6334
6334
|
disabled: !0
|
6335
|
-
}),
|
6335
|
+
}), a.push(...s)), a;
|
6336
6336
|
});
|
6337
|
-
return (
|
6337
|
+
return (a, c) => {
|
6338
6338
|
const l = Bt("FmCollapsibleTabs");
|
6339
|
-
return
|
6339
|
+
return xt(), Wt(l, {
|
6340
6340
|
modelValue: r.value,
|
6341
6341
|
"onUpdate:modelValue": c[0] || (c[0] = (u) => r.value = u),
|
6342
|
-
items:
|
6342
|
+
items: o.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 wo = { authClientId: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, assetBucketUrl: "static.feedme.cc" };
|
6349
|
+
const Do = /* @__PURE__ */ Ut({
|
6350
6350
|
__name: "App",
|
6351
6351
|
setup(n) {
|
6352
|
-
const { state: e } =
|
6352
|
+
const { state: e } = Gn(), t = He(), r = Yt(wo.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 o = await s.getCustomToken(), a = bo(r);
|
6357
|
+
await os(a, o);
|
6358
6358
|
}
|
6359
|
-
return i(),
|
6359
|
+
return i(), J(t.sessionUser, i), jn(() => {
|
6360
6360
|
e.isIframe && parent.postMessage({ event: "ready" }, "*");
|
6361
|
-
}),
|
6362
|
-
t.registerSidebarComponent(
|
6363
|
-
}), (s,
|
6364
|
-
const
|
6365
|
-
return
|
6361
|
+
}), Fn(() => {
|
6362
|
+
t.registerSidebarComponent(To);
|
6363
|
+
}), (s, o) => {
|
6364
|
+
const a = Bt("RouterView");
|
6365
|
+
return xt(), Wt(a);
|
6366
6366
|
};
|
6367
6367
|
}
|
6368
|
-
}),
|
6369
|
-
...
|
6370
|
-
...
|
6368
|
+
}), Po = [
|
6369
|
+
...Ve,
|
6370
|
+
...Ge
|
6371
6371
|
];
|
6372
6372
|
export {
|
6373
|
-
|
6373
|
+
G as C,
|
6374
6374
|
M as F,
|
6375
6375
|
ee as S,
|
6376
|
-
|
6377
|
-
|
6378
|
-
|
6376
|
+
X as _,
|
6377
|
+
Xt as a,
|
6378
|
+
Co as b,
|
6379
6379
|
ui as c,
|
6380
|
-
|
6380
|
+
No as d,
|
6381
6381
|
gt as e,
|
6382
|
-
|
6382
|
+
Po as f,
|
6383
6383
|
z as g,
|
6384
|
-
|
6385
|
-
|
6384
|
+
Do as h,
|
6385
|
+
j as r
|
6386
6386
|
};
|