@feedmepos/mf-payment 0.0.0-beta.3 → 0.0.0-beta.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{PayoutAccount-BVljEwn3.js → PayoutAccount-CAFAjyuW.js} +1 -1
- package/dist/{PayoutAccount-J3GJxUjj.js → PayoutAccount-CcKzwrCh.js} +1 -1
- package/dist/app.js +3 -3
- package/dist/{index-D-lMrCvM.js → index-IE-8HK_2.js} +179 -179
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
|
-
import { d as Vt, f as
|
2
|
-
var qe = { npm_package_dependencies_change_case: "^4.1.2", TERM_PROGRAM: "vscode", NODE: "/opt/homebrew/Cellar/node@18/18.20.4/bin/node",
|
1
|
+
import { d as Vt, f as zt, _ as X, m as Wt, g as Gt, b as Xe, a as ge, h as Ie } from "./index-DvzXwr90.js";
|
2
|
+
var qe = { npm_package_dependencies_change_case: "^4.1.2", TERM_PROGRAM: "vscode", npm_package_dependencies_vue3_lottie: "^2.2.3", NODE: "/opt/homebrew/Cellar/node@18/18.20.4/bin/node", npm_package_devDependencies_typescript: "~5.4.0", npm_package_dependencies_moment: "^2.29.4", npm_package_dependencies_axios: "^0.27.2", npm_package_scripts_prod: "vite --mode prod", INIT_CWD: "/Users/binbinliao/project/payment-service/mf-portal", npm_package_devDependencies_vite: "^5.2.11", npm_package_devDependencies_jest: "^29.6.3", TERM: "xterm-256color", SHELL: "/opt/homebrew/bin/fish", npm_package_dependencies_i18next_http_backend: "^1.4.1", TMPDIR: "/var/folders/59/2m_9ylk979b57yvk040bv3f00000gn/T/", npm_config_global_prefix: "/opt/homebrew", npm_package_scripts_serve_prod: "yarn && vite --mode production", npm_package_scripts_lint: "eslint --ext .ts,vue --ignore-path .gitignore . --fix", npm_package_exports___style: "./dist/style.css", TERM_PROGRAM_VERSION: "1.94.2", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_scripts_dev: "vite --mode dev", npm_package_dependencies_uuid: "^9.0.0", MallocNanoZone: "0", ORIGINAL_XDG_CURRENT_DESKTOP: "undefined", npm_package_scripts_build_only_prod: "pnpm build:mf:prod && pnpm build:dts && pnpm build-types && cp package.json ./dist", COLOR: "1", TERM_SESSION_ID: "w0t3p0:ED0ABF6E-9626-422E-A8AC-56426D2191BE", npm_config_registry: "https://registry.npmjs.org/", npm_package_devDependencies__rushstack_eslint_patch: "^1.1.3", npm_package_dependencies_vue_pdf_embed: "^2.1.0", npm_config_local_prefix: "/Users/binbinliao/project/payment-service/mf-portal", npm_package_dependencies_xlsx: "^0.18.5", USER: "binbinliao", npm_package_devDependencies_jest_transform_stub: "^2.0.0", npm_package_dependencies__feedmepos_mf_common: "^1.8.21", npm_package_dependencies__feedmepos_payment_entity: "^0.0.5-demo4", COMMAND_MODE: "unix2003", npm_config_globalconfig: "/opt/homebrew/etc/npmrc", npm_package_dependencies_vuedraggable: "^4.1.0", npm_package_scripts_build_mf_dev: "vite build --mode fmmf:dev", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", npm_package_exports___import: "./dist/app.js", PNPM_SCRIPT_SRC_DIR: "/Users/binbinliao/project/payment-service/mf-portal", npm_package_dependencies_i18next_browser_languagedetector: "^6.1.4", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.Z3wua9pG0j/Listeners", npm_package_devDependencies_postcss: "^8.4.47", npm_package_devDependencies_eslint: "^8.17.0", npm_package_devDependencies__types_jest: "^29.5.4", npm_package_dependencies_buffer: "^6.0.3", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_execpath: "/opt/homebrew/lib/node_modules/pnpm/bin/pnpm.cjs", TERM_FEATURES: "T3LrMSc7UUw9Ts3BFGsSyHNoSxF", npm_package_module: "./dist/app.js", npm_package_dependencies_google_maps: "^4.3.3", npm_package_dependencies__feedmepos_core: "^2.6.0", npm_config_frozen_lockfile: "", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", TERMINFO_DIRS: "/Applications/iTerm.app/Contents/Resources/terminfo:/usr/share/terminfo", PATH: "/Users/binbinliao/project/payment-service/mf-portal/node_modules/.bin:/opt/homebrew/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/binbinliao/project/payment-service/mf-portal/node_modules/.bin:/opt/homebrew/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/binbinliao/project/payment-service/mf-portal/node_modules/.bin:/Users/binbinliao/project/payment-service/node_modules/.bin:/Users/binbinliao/project/node_modules/.bin:/Users/binbinliao/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/opt/homebrew/Cellar/node@18/18.20.4/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/homebrew/opt/node@18/bin:/opt/homebrew/lib/ruby/gems/3.3.0/bin:/Users/binbinliao/development/flutter/flutter/bin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/iTerm.app/Contents/Resources/utilities", npm_package_dependencies_jspdf: "^2.5.1", npm_package_dependencies_vue: "^3.2.25", npm_package_dependencies_jsurl: "^0.1.5", LaunchInstanceID: "C42BF6EF-2715-4814-A781-68A54BC2AB1C", _: "/Users/binbinliao/project/payment-service/mf-portal/node_modules/.bin/vite", npm_config_userconfig: "/Users/binbinliao/.npmrc", npm_config_init_module: "/Users/binbinliao/.npm-init.js", npm_package_devDependencies_ts_jest: "^29.1.1", __CFBundleIdentifier: "com.microsoft.VSCode", npm_command: "run-script", npm_package_devDependencies_tailwindcss: "^3.4.14", PWD: "/Users/binbinliao/project/payment-service/mf-portal", npm_package_scripts_preview: "vite preview", npm_lifecycle_event: "build:mf:dev", npm_package_devDependencies__pinia_testing: "^0.1.3", npm_package_scripts_deploy_dev: "pnpm run build-only:dev && pnpm publish --tag beta --no-git-checks .", EDITOR: "vi", npm_package_name: "@feedmepos/mf-payment", LANG: "en_US.UTF-8", npm_package_devDependencies__babel_preset_env: "^7.22.10", npm_package_dependencies_file_saver: "^2.0.5", ITERM_PROFILE: "Default", npm_package_devDependencies_sass: "1.32.12", npm_package_devDependencies__vue_test_utils: "^2.4.1", npm_package_exports___types: "./dist/app.d.ts", npm_config_npm_version: "10.7.0", npm_package_dependencies_vue_country_flag_next: "^2.3.2", npm_package_dependencies_rasterizehtml: "^1.3.1", XPC_FLAGS: "0x0", VSCODE_GIT_ASKPASS_EXTRA_ARGS: "", npm_package_devDependencies_path: "^0.12.7", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_dependencies_jszip: "^3.10.1", npm_config_node_gyp: "/opt/homebrew/Cellar/node@18/18.20.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js", npm_package_devDependencies__types_jsurl: "^0.1.2", npm_package_version: "0.0.0-beta.4", XPC_SERVICE_NAME: "0", npm_package_devDependencies_autoprefixer: "^10.4.20", npm_package_devDependencies__types_dinero_js: "^1.9.0", npm_package_dependencies_pinia: "^2.1.7", VSCODE_INJECTION: "1", npm_package_type: "module", HOME: "/Users/binbinliao", SHLVL: "6", COLORFGBG: "15;0", npm_package_devDependencies_eslint_plugin_vue: "^9.1.0", npm_package_dependencies_vue_advanced_cropper: "^2.8.6", npm_package_scripts_test: "jest", VSCODE_GIT_ASKPASS_MAIN: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js", npm_package_dependencies_dotenv: "^16.0.3", LC_TERMINAL_VERSION: "3.5.3", npm_package_devDependencies__vue_vue3_jest: "^29.2.5", npm_package_devDependencies_ts_node: "^10.9.1", npm_package_devDependencies__vue_eslint_config_typescript: "^10.0.0", npm_package_dependencies_firebase: "^10.14.0", ITERM_SESSION_ID: "w0t3p0:ED0ABF6E-9626-422E-A8AC-56426D2191BE", npm_config_cache: "/Users/binbinliao/.npm", npm_package_scripts_build_only_dev: "pnpm build:mf:dev && pnpm build:dts && pnpm build-types && cp package.json ./dist && cd dist && pnpm version 0.0.0-beta.0 --no-git-tag-version", LOGNAME: "binbinliao", npm_lifecycle_script: "vite build --mode fmmf:dev", npm_package_dependencies_zod: "^3.23.8", VSCODE_GIT_IPC_HANDLE: "/var/folders/59/2m_9ylk979b57yvk040bv3f00000gn/T/vscode-git-b7145b54a5.sock", XDG_DATA_DIRS: "/usr/local/share:/usr/share:/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/contrib/terminal/common/scripts/fish_xdg_data", npm_package_devDependencies__tsconfig_node20: "^20.1.4", npm_config_user_agent: "pnpm/9.6.0 npm/? node/v18.20.4 darwin arm64", npm_package_devDependencies__types_uuid: "^8.3.4", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_devDependencies_cd: "^0.3.3", npm_package_devDependencies__types_file_saver: "^2.0.5", VSCODE_GIT_ASKPASS_NODE: "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)", GIT_ASKPASS: "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh", npm_package_devDependencies_jest_environment_jsdom: "^29.4.1", npm_package_dependencies__casl_ability: "^3.2.0", LC_TERMINAL: "iTerm2", npm_package_devDependencies__types_qrcode: "^1.5.0", npm_package_files_0: "dist", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_package_dependencies_vue_router: "^4.2.5", npm_package_dependencies__feedmepos_ui_library: "^1.2.44", npm_package_scripts_deploy_prod: "pnpm run build-only:prod && pnpm publish --no-git-checks .", SECURITYSESSIONID: "186a4", npm_package_dependencies_i18next: "^21.8.8", npm_node_execpath: "/opt/homebrew/Cellar/node@18/18.20.4/bin/node", npm_config_prefix: "/opt/homebrew", npm_package_devDependencies_vue_tsc: "^2.0.11", npm_package_dependencies_qrcode: "^1.5.1", npm_package_dependencies_i18next_vue: "^2.0.0-beta.0", COLORTERM: "truecolor", NODE_ENV: "production", 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", MAIN_BACKEND_URL: "", AUTH_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4" };
|
3
3
|
/**
|
4
4
|
* @license
|
5
5
|
* Copyright 2017 Google LLC
|
@@ -850,7 +850,7 @@ function wn() {
|
|
850
850
|
IDBCursor.prototype.continuePrimaryKey
|
851
851
|
]);
|
852
852
|
}
|
853
|
-
const Et = /* @__PURE__ */ new WeakMap(),
|
853
|
+
const Et = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap();
|
854
854
|
function Sn(t) {
|
855
855
|
const e = new Promise((n, r) => {
|
856
856
|
const s = () => {
|
@@ -868,7 +868,7 @@ function Sn(t) {
|
|
868
868
|
}), je.set(e, t), e;
|
869
869
|
}
|
870
870
|
function Dn(t) {
|
871
|
-
if (
|
871
|
+
if (Ue.has(t))
|
872
872
|
return;
|
873
873
|
const e = new Promise((n, r) => {
|
874
874
|
const s = () => {
|
@@ -880,13 +880,13 @@ function Dn(t) {
|
|
880
880
|
};
|
881
881
|
t.addEventListener("complete", i), t.addEventListener("error", o), t.addEventListener("abort", o);
|
882
882
|
});
|
883
|
-
|
883
|
+
Ue.set(t, e);
|
884
884
|
}
|
885
|
-
let
|
885
|
+
let $e = {
|
886
886
|
get(t, e, n) {
|
887
887
|
if (t instanceof IDBTransaction) {
|
888
888
|
if (e === "done")
|
889
|
-
return
|
889
|
+
return Ue.get(t);
|
890
890
|
if (e === "objectStoreNames")
|
891
891
|
return t.objectStoreNames || vt.get(t);
|
892
892
|
if (e === "store")
|
@@ -901,10 +901,10 @@ let Be = {
|
|
901
901
|
return t instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in t;
|
902
902
|
}
|
903
903
|
};
|
904
|
-
function An(t) {
|
905
|
-
Be = t(Be);
|
906
|
-
}
|
907
904
|
function In(t) {
|
905
|
+
$e = t($e);
|
906
|
+
}
|
907
|
+
function An(t) {
|
908
908
|
return t === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...n) {
|
909
909
|
const r = t.call(Te(this), e, ...n);
|
910
910
|
return vt.set(r, e.sort ? e.sort() : [e]), Y(r);
|
@@ -915,15 +915,15 @@ function In(t) {
|
|
915
915
|
};
|
916
916
|
}
|
917
917
|
function Tn(t) {
|
918
|
-
return typeof t == "function" ?
|
918
|
+
return typeof t == "function" ? An(t) : (t instanceof IDBTransaction && Dn(t), En(t, vn()) ? new Proxy(t, $e) : t);
|
919
919
|
}
|
920
920
|
function Y(t) {
|
921
921
|
if (t instanceof IDBRequest)
|
922
922
|
return Sn(t);
|
923
|
-
if (
|
924
|
-
return
|
923
|
+
if (Ae.has(t))
|
924
|
+
return Ae.get(t);
|
925
925
|
const e = Tn(t);
|
926
|
-
return e !== t && (
|
926
|
+
return e !== t && (Ae.set(t, e), je.set(e, t)), e;
|
927
927
|
}
|
928
928
|
const Te = (t) => je.get(t);
|
929
929
|
function Rn(t, e, { blocked: n, upgrade: r, blocking: s, terminated: i } = {}) {
|
@@ -962,7 +962,7 @@ function et(t, e) {
|
|
962
962
|
};
|
963
963
|
return Re.set(e, i), i;
|
964
964
|
}
|
965
|
-
|
965
|
+
In((t) => ({
|
966
966
|
...t,
|
967
967
|
get: (e, n, r) => et(e, n) || t.get(e, n, r),
|
968
968
|
has: (e, n) => !!et(e, n) || t.has(e, n)
|
@@ -1003,7 +1003,7 @@ function Nn(t) {
|
|
1003
1003
|
const e = t.getComponent();
|
1004
1004
|
return (e == null ? void 0 : e.type) === "VERSION";
|
1005
1005
|
}
|
1006
|
-
const
|
1006
|
+
const Be = "@firebase/app", tt = "0.10.12";
|
1007
1007
|
/**
|
1008
1008
|
* @license
|
1009
1009
|
* Copyright 2019 Google LLC
|
@@ -1020,7 +1020,7 @@ const Me = "@firebase/app", tt = "0.10.12";
|
|
1020
1020
|
* See the License for the specific language governing permissions and
|
1021
1021
|
* limitations under the License.
|
1022
1022
|
*/
|
1023
|
-
const V = new yn("@firebase/app"), Pn = "@firebase/app-compat",
|
1023
|
+
const V = new yn("@firebase/app"), Pn = "@firebase/app-compat", Un = "@firebase/analytics-compat", $n = "@firebase/analytics", Bn = "@firebase/app-check-compat", Mn = "@firebase/app-check", xn = "@firebase/auth", Ln = "@firebase/auth-compat", Fn = "@firebase/database", jn = "@firebase/data-connect", Hn = "@firebase/database-compat", Vn = "@firebase/functions", zn = "@firebase/functions-compat", Wn = "@firebase/installations", Gn = "@firebase/installations-compat", Yn = "@firebase/messaging", Kn = "@firebase/messaging-compat", Xn = "@firebase/performance", qn = "@firebase/performance-compat", Jn = "@firebase/remote-config", Zn = "@firebase/remote-config-compat", Qn = "@firebase/storage", er = "@firebase/storage-compat", tr = "@firebase/firestore", nr = "@firebase/vertexai-preview", rr = "@firebase/firestore-compat", sr = "firebase", ir = "10.14.0";
|
1024
1024
|
/**
|
1025
1025
|
* @license
|
1026
1026
|
* Copyright 2019 Google LLC
|
@@ -1037,21 +1037,21 @@ const V = new yn("@firebase/app"), Pn = "@firebase/app-compat", $n = "@firebase/
|
|
1037
1037
|
* See the License for the specific language governing permissions and
|
1038
1038
|
* limitations under the License.
|
1039
1039
|
*/
|
1040
|
-
const
|
1041
|
-
[
|
1040
|
+
const Me = "[DEFAULT]", or = {
|
1041
|
+
[Be]: "fire-core",
|
1042
1042
|
[Pn]: "fire-core-compat",
|
1043
|
-
[
|
1044
|
-
[
|
1045
|
-
[
|
1046
|
-
[
|
1043
|
+
[$n]: "fire-analytics",
|
1044
|
+
[Un]: "fire-analytics-compat",
|
1045
|
+
[Mn]: "fire-app-check",
|
1046
|
+
[Bn]: "fire-app-check-compat",
|
1047
1047
|
[xn]: "fire-auth",
|
1048
1048
|
[Ln]: "fire-auth-compat",
|
1049
1049
|
[Fn]: "fire-rtdb",
|
1050
1050
|
[jn]: "fire-data-connect",
|
1051
1051
|
[Hn]: "fire-rtdb-compat",
|
1052
1052
|
[Vn]: "fire-fn",
|
1053
|
-
[
|
1054
|
-
[
|
1053
|
+
[zn]: "fire-fn-compat",
|
1054
|
+
[Wn]: "fire-iid",
|
1055
1055
|
[Gn]: "fire-iid-compat",
|
1056
1056
|
[Yn]: "fire-fcm",
|
1057
1057
|
[Kn]: "fire-fcm-compat",
|
@@ -1216,7 +1216,7 @@ const dr = ir;
|
|
1216
1216
|
function pr(t, e = {}) {
|
1217
1217
|
let n = t;
|
1218
1218
|
typeof e != "object" && (e = { name: e });
|
1219
|
-
const r = Object.assign({ name:
|
1219
|
+
const r = Object.assign({ name: Me, automaticDataCollectionEnabled: !1 }, e), s = r.name;
|
1220
1220
|
if (typeof s != "string" || !s)
|
1221
1221
|
throw K.create("bad-app-name", {
|
1222
1222
|
appName: String(s)
|
@@ -1238,9 +1238,9 @@ function pr(t, e = {}) {
|
|
1238
1238
|
const a = new lr(n, r, o);
|
1239
1239
|
return ve.set(s, a), a;
|
1240
1240
|
}
|
1241
|
-
function hr(t =
|
1241
|
+
function hr(t = Me) {
|
1242
1242
|
const e = ve.get(t);
|
1243
|
-
if (!e && t ===
|
1243
|
+
if (!e && t === Me && bt())
|
1244
1244
|
return pr();
|
1245
1245
|
if (!e)
|
1246
1246
|
throw K.create("no-app", { appName: t });
|
@@ -1500,7 +1500,7 @@ function wr(t) {
|
|
1500
1500
|
(e) => new yr(e),
|
1501
1501
|
"PRIVATE"
|
1502
1502
|
/* ComponentType.PRIVATE */
|
1503
|
-
)), ae(
|
1503
|
+
)), ae(Be, tt, t), ae(Be, tt, "esm2017"), ae("fire-js", "");
|
1504
1504
|
}
|
1505
1505
|
wr("");
|
1506
1506
|
/**
|
@@ -1519,7 +1519,7 @@ wr("");
|
|
1519
1519
|
* See the License for the specific language governing permissions and
|
1520
1520
|
* limitations under the License.
|
1521
1521
|
*/
|
1522
|
-
const Dt = "firebasestorage.googleapis.com",
|
1522
|
+
const Dt = "firebasestorage.googleapis.com", It = "storageBucket", Sr = 2 * 60 * 1e3, Dr = 10 * 60 * 1e3;
|
1523
1523
|
/**
|
1524
1524
|
* @license
|
1525
1525
|
* Copyright 2017 Google LLC
|
@@ -1536,7 +1536,7 @@ const Dt = "firebasestorage.googleapis.com", At = "storageBucket", Sr = 2 * 60 *
|
|
1536
1536
|
* See the License for the specific language governing permissions and
|
1537
1537
|
* limitations under the License.
|
1538
1538
|
*/
|
1539
|
-
class
|
1539
|
+
class I extends re {
|
1540
1540
|
/**
|
1541
1541
|
* @param code - A `StorageErrorCode` string to be prefixed with 'storage/' and
|
1542
1542
|
* added to the end of the message.
|
@@ -1544,7 +1544,7 @@ class A extends re {
|
|
1544
1544
|
* @param status_ - Corresponding HTTP Status Code
|
1545
1545
|
*/
|
1546
1546
|
constructor(e, n, r = 0) {
|
1547
|
-
super(Oe(e), `Firebase Storage: ${n} (${Oe(e)})`), this.status_ = r, this.customData = { serverResponse: null }, this._baseMessage = this.message, Object.setPrototypeOf(this,
|
1547
|
+
super(Oe(e), `Firebase Storage: ${n} (${Oe(e)})`), this.status_ = r, this.customData = { serverResponse: null }, this._baseMessage = this.message, Object.setPrototypeOf(this, I.prototype);
|
1548
1548
|
}
|
1549
1549
|
get status() {
|
1550
1550
|
return this.status_;
|
@@ -1578,62 +1578,62 @@ function Oe(t) {
|
|
1578
1578
|
}
|
1579
1579
|
function He() {
|
1580
1580
|
const t = "An unknown error occurred, please check the error payload for server response.";
|
1581
|
-
return new
|
1582
|
-
}
|
1583
|
-
function Ar(t) {
|
1584
|
-
return new A(D.OBJECT_NOT_FOUND, "Object '" + t + "' does not exist.");
|
1581
|
+
return new I(D.UNKNOWN, t);
|
1585
1582
|
}
|
1586
1583
|
function Ir(t) {
|
1587
|
-
return new
|
1584
|
+
return new I(D.OBJECT_NOT_FOUND, "Object '" + t + "' does not exist.");
|
1585
|
+
}
|
1586
|
+
function Ar(t) {
|
1587
|
+
return new I(D.QUOTA_EXCEEDED, "Quota for bucket '" + t + "' exceeded, please view quota on https://firebase.google.com/pricing/.");
|
1588
1588
|
}
|
1589
1589
|
function Tr() {
|
1590
1590
|
const t = "User is not authenticated, please authenticate using Firebase Authentication and try again.";
|
1591
|
-
return new
|
1591
|
+
return new I(D.UNAUTHENTICATED, t);
|
1592
1592
|
}
|
1593
1593
|
function Rr() {
|
1594
|
-
return new
|
1594
|
+
return new I(D.UNAUTHORIZED_APP, "This app does not have permission to access Firebase Storage on this project.");
|
1595
1595
|
}
|
1596
1596
|
function kr(t) {
|
1597
|
-
return new
|
1597
|
+
return new I(D.UNAUTHORIZED, "User does not have permission to access '" + t + "'.");
|
1598
1598
|
}
|
1599
1599
|
function Or() {
|
1600
|
-
return new
|
1600
|
+
return new I(D.RETRY_LIMIT_EXCEEDED, "Max retry time for operation exceeded, please try again.");
|
1601
1601
|
}
|
1602
1602
|
function Cr() {
|
1603
|
-
return new
|
1603
|
+
return new I(D.CANCELED, "User canceled the upload/download.");
|
1604
1604
|
}
|
1605
1605
|
function Nr(t) {
|
1606
|
-
return new
|
1606
|
+
return new I(D.INVALID_URL, "Invalid URL '" + t + "'.");
|
1607
1607
|
}
|
1608
1608
|
function Pr(t) {
|
1609
|
-
return new
|
1609
|
+
return new I(D.INVALID_DEFAULT_BUCKET, "Invalid default bucket '" + t + "'.");
|
1610
|
+
}
|
1611
|
+
function Ur() {
|
1612
|
+
return new I(D.NO_DEFAULT_BUCKET, "No default bucket found. Did you set the '" + It + "' property when initializing the app?");
|
1610
1613
|
}
|
1611
1614
|
function $r() {
|
1612
|
-
return new
|
1615
|
+
return new I(D.CANNOT_SLICE_BLOB, "Cannot slice blob for upload. Please retry the upload.");
|
1613
1616
|
}
|
1614
1617
|
function Br() {
|
1615
|
-
return new
|
1618
|
+
return new I(D.NO_DOWNLOAD_URL, "The given file does not have any download URLs.");
|
1616
1619
|
}
|
1617
|
-
function Mr() {
|
1618
|
-
return new
|
1619
|
-
}
|
1620
|
-
function Ur(t) {
|
1621
|
-
return new A(D.UNSUPPORTED_ENVIRONMENT, `${t} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`);
|
1620
|
+
function Mr(t) {
|
1621
|
+
return new I(D.UNSUPPORTED_ENVIRONMENT, `${t} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`);
|
1622
1622
|
}
|
1623
1623
|
function Le(t) {
|
1624
|
-
return new
|
1624
|
+
return new I(D.INVALID_ARGUMENT, t);
|
1625
1625
|
}
|
1626
|
-
function
|
1627
|
-
return new
|
1626
|
+
function At() {
|
1627
|
+
return new I(D.APP_DELETED, "The Firebase app was deleted.");
|
1628
1628
|
}
|
1629
1629
|
function xr(t) {
|
1630
|
-
return new
|
1630
|
+
return new I(D.INVALID_ROOT_OPERATION, "The operation '" + t + "' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').");
|
1631
1631
|
}
|
1632
1632
|
function ce(t, e) {
|
1633
|
-
return new
|
1633
|
+
return new I(D.INVALID_FORMAT, "String does not match format '" + t + "': " + e);
|
1634
1634
|
}
|
1635
1635
|
function oe(t) {
|
1636
|
-
throw new
|
1636
|
+
throw new I(D.INTERNAL_ERROR, "Internal error: " + t);
|
1637
1637
|
}
|
1638
1638
|
/**
|
1639
1639
|
* @license
|
@@ -1651,7 +1651,7 @@ function oe(t) {
|
|
1651
1651
|
* See the License for the specific language governing permissions and
|
1652
1652
|
* limitations under the License.
|
1653
1653
|
*/
|
1654
|
-
class
|
1654
|
+
class B {
|
1655
1655
|
constructor(e, n) {
|
1656
1656
|
this.bucket = e, this.path_ = n;
|
1657
1657
|
}
|
@@ -1671,9 +1671,9 @@ class M {
|
|
1671
1671
|
static makeFromBucketSpec(e, n) {
|
1672
1672
|
let r;
|
1673
1673
|
try {
|
1674
|
-
r =
|
1674
|
+
r = B.makeFromUrl(e, n);
|
1675
1675
|
} catch {
|
1676
|
-
return new
|
1676
|
+
return new B(e, "");
|
1677
1677
|
}
|
1678
1678
|
if (r.path === "")
|
1679
1679
|
return r;
|
@@ -1689,7 +1689,7 @@ class M {
|
|
1689
1689
|
function p(C) {
|
1690
1690
|
C.path_ = decodeURIComponent(C.path);
|
1691
1691
|
}
|
1692
|
-
const E = "v[A-Za-z0-9_]+", g = n.replace(/[.]/g, "\\."), w = "(/([^?#]*).*)?$", S = new RegExp(`^https?://${g}/${E}/b/${s}/o${w}`, "i"), T = { bucket: 1, path: 3 }, j = n === Dt ? "(?:storage.googleapis.com|storage.cloud.google.com)" : n, O = "([^?#]*)",
|
1692
|
+
const E = "v[A-Za-z0-9_]+", g = n.replace(/[.]/g, "\\."), w = "(/([^?#]*).*)?$", S = new RegExp(`^https?://${g}/${E}/b/${s}/o${w}`, "i"), T = { bucket: 1, path: 3 }, j = n === Dt ? "(?:storage.googleapis.com|storage.cloud.google.com)" : n, O = "([^?#]*)", z = new RegExp(`^https?://${j}/${s}/${O}`, "i"), U = [
|
1693
1693
|
{ regex: a, indices: u, postModify: i },
|
1694
1694
|
{
|
1695
1695
|
regex: S,
|
@@ -1697,17 +1697,17 @@ class M {
|
|
1697
1697
|
postModify: p
|
1698
1698
|
},
|
1699
1699
|
{
|
1700
|
-
regex:
|
1700
|
+
regex: z,
|
1701
1701
|
indices: { bucket: 1, path: 2 },
|
1702
1702
|
postModify: p
|
1703
1703
|
}
|
1704
1704
|
];
|
1705
|
-
for (let C = 0; C <
|
1706
|
-
const L =
|
1705
|
+
for (let C = 0; C < U.length; C++) {
|
1706
|
+
const L = U[C], x = L.regex.exec(e);
|
1707
1707
|
if (x) {
|
1708
1708
|
const he = x[L.indices.bucket];
|
1709
1709
|
let q = x[L.indices.path];
|
1710
|
-
q || (q = ""), r = new
|
1710
|
+
q || (q = ""), r = new B(he, q), L.postModify(r);
|
1711
1711
|
break;
|
1712
1712
|
}
|
1713
1713
|
}
|
@@ -1761,22 +1761,22 @@ function Fr(t, e, n) {
|
|
1761
1761
|
function w() {
|
1762
1762
|
i && clearTimeout(i);
|
1763
1763
|
}
|
1764
|
-
function S(O, ...
|
1764
|
+
function S(O, ...z) {
|
1765
1765
|
if (p) {
|
1766
1766
|
w();
|
1767
1767
|
return;
|
1768
1768
|
}
|
1769
1769
|
if (O) {
|
1770
|
-
w(), E.call(null, O, ...
|
1770
|
+
w(), E.call(null, O, ...z);
|
1771
1771
|
return;
|
1772
1772
|
}
|
1773
1773
|
if (u() || o) {
|
1774
|
-
w(), E.call(null, O, ...
|
1774
|
+
w(), E.call(null, O, ...z);
|
1775
1775
|
return;
|
1776
1776
|
}
|
1777
1777
|
r < 64 && (r *= 2);
|
1778
|
-
let
|
1779
|
-
a === 1 ? (a = 2,
|
1778
|
+
let U;
|
1779
|
+
a === 1 ? (a = 2, U = 0) : U = (r + Math.random()) * 1e3, g(U);
|
1780
1780
|
}
|
1781
1781
|
let T = !1;
|
1782
1782
|
function j(O) {
|
@@ -1815,9 +1815,9 @@ function Ve(t) {
|
|
1815
1815
|
return typeof t == "string" || t instanceof String;
|
1816
1816
|
}
|
1817
1817
|
function ot(t) {
|
1818
|
-
return
|
1818
|
+
return ze() && t instanceof Blob;
|
1819
1819
|
}
|
1820
|
-
function
|
1820
|
+
function ze() {
|
1821
1821
|
return typeof Blob < "u";
|
1822
1822
|
}
|
1823
1823
|
function at(t, e, n, r) {
|
@@ -1876,7 +1876,7 @@ var ee;
|
|
1876
1876
|
* See the License for the specific language governing permissions and
|
1877
1877
|
* limitations under the License.
|
1878
1878
|
*/
|
1879
|
-
function
|
1879
|
+
function zr(t, e) {
|
1880
1880
|
const n = t >= 500 && t < 600, s = [
|
1881
1881
|
// Request Timeout: web server didn't receive full request in time.
|
1882
1882
|
408,
|
@@ -1901,7 +1901,7 @@ function Wr(t, e) {
|
|
1901
1901
|
* See the License for the specific language governing permissions and
|
1902
1902
|
* limitations under the License.
|
1903
1903
|
*/
|
1904
|
-
class
|
1904
|
+
class Wr {
|
1905
1905
|
constructor(e, n, r, s, i, o, a, u, p, E, g, w = !0) {
|
1906
1906
|
this.url_ = e, this.method_ = n, this.headers_ = r, this.body_ = s, this.successCodes_ = i, this.additionalRetryCodes_ = o, this.callback_ = a, this.errorCallback_ = u, this.timeout_ = p, this.progressCallback_ = E, this.connectionFactory_ = g, this.retry = w, this.pendingConnection_ = null, this.backoffId_ = null, this.canceled_ = !1, this.appDelete_ = !1, this.promise_ = new Promise((S, T) => {
|
1907
1907
|
this.resolve_ = S, this.reject_ = T, this.start_();
|
@@ -1925,7 +1925,7 @@ class zr {
|
|
1925
1925
|
this.progressCallback_ !== null && i.addUploadProgressListener(o), i.send(this.url_, this.method_, this.body_, this.headers_).then(() => {
|
1926
1926
|
this.progressCallback_ !== null && i.removeUploadProgressListener(o), this.pendingConnection_ = null;
|
1927
1927
|
const a = i.getErrorCode() === ee.NO_ERROR, u = i.getStatus();
|
1928
|
-
if (!a ||
|
1928
|
+
if (!a || zr(u, this.additionalRetryCodes_) && this.retry) {
|
1929
1929
|
const E = i.getErrorCode() === ee.ABORT;
|
1930
1930
|
r(!1, new be(!1, null, E));
|
1931
1931
|
return;
|
@@ -1946,7 +1946,7 @@ class zr {
|
|
1946
1946
|
const u = He();
|
1947
1947
|
u.serverResponse = a.getErrorText(), this.errorCallback_ ? o(this.errorCallback_(a, u)) : o(u);
|
1948
1948
|
} else if (s.canceled) {
|
1949
|
-
const u = this.appDelete_ ?
|
1949
|
+
const u = this.appDelete_ ? At() : Cr();
|
1950
1950
|
o(u);
|
1951
1951
|
} else {
|
1952
1952
|
const u = Or();
|
@@ -1983,7 +1983,7 @@ function Xr(t, e) {
|
|
1983
1983
|
}
|
1984
1984
|
function qr(t, e, n, r, s, i, o = !0) {
|
1985
1985
|
const a = Tt(t.urlParams), u = t.url + a, p = Object.assign({}, t.headers);
|
1986
|
-
return Kr(p, e), Gr(p, n), Yr(p, i), Xr(p, r), new
|
1986
|
+
return Kr(p, e), Gr(p, n), Yr(p, i), Xr(p, r), new Wr(u, t.method, p, t.body, t.successCodes, t.additionalRetryCodes, t.handler, t.errorHandler, t.timeout, t.progressCallback, s, o);
|
1987
1987
|
}
|
1988
1988
|
/**
|
1989
1989
|
* @license
|
@@ -2012,9 +2012,9 @@ function Zr(...t) {
|
|
2012
2012
|
n.append(t[r]);
|
2013
2013
|
return n.getBlob();
|
2014
2014
|
} else {
|
2015
|
-
if (
|
2015
|
+
if (ze())
|
2016
2016
|
return new Blob(t);
|
2017
|
-
throw new
|
2017
|
+
throw new I(D.UNSUPPORTED_ENVIRONMENT, "This browser doesn't seem to support creating Blobs");
|
2018
2018
|
}
|
2019
2019
|
}
|
2020
2020
|
function Qr(t, e, n) {
|
@@ -2038,7 +2038,7 @@ function Qr(t, e, n) {
|
|
2038
2038
|
*/
|
2039
2039
|
function es(t) {
|
2040
2040
|
if (typeof atob > "u")
|
2041
|
-
throw
|
2041
|
+
throw Mr("base-64");
|
2042
2042
|
return atob(t);
|
2043
2043
|
}
|
2044
2044
|
/**
|
@@ -2221,7 +2221,7 @@ class G {
|
|
2221
2221
|
}
|
2222
2222
|
}
|
2223
2223
|
static getBlob(...e) {
|
2224
|
-
if (
|
2224
|
+
if (ze()) {
|
2225
2225
|
const n = e.map((r) => r instanceof G ? r.data_ : r);
|
2226
2226
|
return new G(Zr.apply(null, n));
|
2227
2227
|
} else {
|
@@ -2343,7 +2343,7 @@ function Pt() {
|
|
2343
2343
|
}
|
2344
2344
|
function ls(t, e) {
|
2345
2345
|
function n() {
|
2346
|
-
const r = t.bucket, s = t.fullPath, i = new
|
2346
|
+
const r = t.bucket, s = t.fullPath, i = new B(r, s);
|
2347
2347
|
return e._makeStorageReference(i);
|
2348
2348
|
}
|
2349
2349
|
Object.defineProperty(t, "ref", { get: n });
|
@@ -2358,7 +2358,7 @@ function ds(t, e, n) {
|
|
2358
2358
|
}
|
2359
2359
|
return ls(r, t), r;
|
2360
2360
|
}
|
2361
|
-
function
|
2361
|
+
function Ut(t, e, n) {
|
2362
2362
|
const r = Ct(e);
|
2363
2363
|
return r === null ? null : ds(t, r, n);
|
2364
2364
|
}
|
@@ -2386,7 +2386,7 @@ function hs(t, e) {
|
|
2386
2386
|
}
|
2387
2387
|
return JSON.stringify(n);
|
2388
2388
|
}
|
2389
|
-
class
|
2389
|
+
class We {
|
2390
2390
|
constructor(e, n, r, s) {
|
2391
2391
|
this.url = e, this.method = n, this.handler = r, this.timeout = s, this.urlParams = {}, this.headers = {}, this.body = null, this.errorHandler = null, this.progressCallback = null, this.successCodes = [200], this.additionalRetryCodes = [];
|
2392
2392
|
}
|
@@ -2407,49 +2407,49 @@ class ze {
|
|
2407
2407
|
* See the License for the specific language governing permissions and
|
2408
2408
|
* limitations under the License.
|
2409
2409
|
*/
|
2410
|
-
function
|
2410
|
+
function $t(t) {
|
2411
2411
|
if (!t)
|
2412
2412
|
throw He();
|
2413
2413
|
}
|
2414
2414
|
function fs(t, e) {
|
2415
2415
|
function n(r, s) {
|
2416
|
-
const i =
|
2417
|
-
return
|
2416
|
+
const i = Ut(t, s, e);
|
2417
|
+
return $t(i !== null), i;
|
2418
2418
|
}
|
2419
2419
|
return n;
|
2420
2420
|
}
|
2421
2421
|
function _s(t, e) {
|
2422
2422
|
function n(r, s) {
|
2423
|
-
const i =
|
2424
|
-
return
|
2423
|
+
const i = Ut(t, s, e);
|
2424
|
+
return $t(i !== null), ps(i, s, t.host, t._protocol);
|
2425
2425
|
}
|
2426
2426
|
return n;
|
2427
2427
|
}
|
2428
|
-
function
|
2428
|
+
function Bt(t) {
|
2429
2429
|
function e(n, r) {
|
2430
2430
|
let s;
|
2431
|
-
return n.getStatus() === 401 ? /* This exact message string is the only consistent part of the */ /* server's error response that identifies it as an App Check error. */ n.getErrorText().includes("Firebase App Check token is invalid") ? s = Rr() : s = Tr() : n.getStatus() === 402 ? s =
|
2431
|
+
return n.getStatus() === 401 ? /* This exact message string is the only consistent part of the */ /* server's error response that identifies it as an App Check error. */ n.getErrorText().includes("Firebase App Check token is invalid") ? s = Rr() : s = Tr() : n.getStatus() === 402 ? s = Ar(t.bucket) : n.getStatus() === 403 ? s = kr(t.path) : s = r, s.status = n.getStatus(), s.serverResponse = r.serverResponse, s;
|
2432
2432
|
}
|
2433
2433
|
return e;
|
2434
2434
|
}
|
2435
|
-
function
|
2436
|
-
const e =
|
2435
|
+
function Mt(t) {
|
2436
|
+
const e = Bt(t);
|
2437
2437
|
function n(r, s) {
|
2438
2438
|
let i = e(r, s);
|
2439
|
-
return r.getStatus() === 404 && (i =
|
2439
|
+
return r.getStatus() === 404 && (i = Ir(t.path)), i.serverResponse = s.serverResponse, i;
|
2440
2440
|
}
|
2441
2441
|
return n;
|
2442
2442
|
}
|
2443
2443
|
function ms(t, e, n) {
|
2444
|
-
const r = e.fullServerUrl(), s = Se(r, t.host, t._protocol), i = "GET", o = t.maxOperationRetryTime, a = new
|
2445
|
-
return a.errorHandler =
|
2444
|
+
const r = e.fullServerUrl(), s = Se(r, t.host, t._protocol), i = "GET", o = t.maxOperationRetryTime, a = new We(s, i, _s(t, n), o);
|
2445
|
+
return a.errorHandler = Mt(e), a;
|
2446
2446
|
}
|
2447
2447
|
function gs(t, e) {
|
2448
2448
|
const n = e.fullServerUrl(), r = Se(n, t.host, t._protocol), s = "DELETE", i = t.maxOperationRetryTime;
|
2449
2449
|
function o(u, p) {
|
2450
2450
|
}
|
2451
|
-
const a = new
|
2452
|
-
return a.successCodes = [200, 204], a.errorHandler =
|
2451
|
+
const a = new We(r, s, o, i);
|
2452
|
+
return a.successCodes = [200, 204], a.errorHandler = Mt(e), a;
|
2453
2453
|
}
|
2454
2454
|
function bs(t, e) {
|
2455
2455
|
return t && t.contentType || e && e.type() || "application/octet-stream";
|
@@ -2463,10 +2463,10 @@ function Es(t, e, n, r, s) {
|
|
2463
2463
|
"X-Goog-Upload-Protocol": "multipart"
|
2464
2464
|
};
|
2465
2465
|
function a() {
|
2466
|
-
let
|
2466
|
+
let U = "";
|
2467
2467
|
for (let C = 0; C < 2; C++)
|
2468
|
-
|
2469
|
-
return
|
2468
|
+
U = U + Math.random().toString().slice(2);
|
2469
|
+
return U;
|
2470
2470
|
}
|
2471
2471
|
const u = a();
|
2472
2472
|
o["Content-Type"] = "multipart/related; boundary=" + u;
|
@@ -2480,9 +2480,9 @@ Content-Type: ` + p.contentType + `\r
|
|
2480
2480
|
`, w = `\r
|
2481
2481
|
--` + u + "--", S = G.getBlob(g, r, w);
|
2482
2482
|
if (S === null)
|
2483
|
-
throw
|
2484
|
-
const T = { name: p.fullPath }, j = Se(i, t.host, t._protocol), O = "POST",
|
2485
|
-
return H.urlParams = T, H.headers = o, H.body = S.uploadData(), H.errorHandler =
|
2483
|
+
throw $r();
|
2484
|
+
const T = { name: p.fullPath }, j = Se(i, t.host, t._protocol), O = "POST", z = t.maxUploadRetryTime, H = new We(j, O, fs(t, n), z);
|
2485
|
+
return H.urlParams = T, H.headers = o, H.body = S.uploadData(), H.errorHandler = Bt(e), H;
|
2486
2486
|
}
|
2487
2487
|
class vs {
|
2488
2488
|
constructor() {
|
@@ -2568,7 +2568,7 @@ function Ge() {
|
|
2568
2568
|
*/
|
2569
2569
|
class te {
|
2570
2570
|
constructor(e, n) {
|
2571
|
-
this._service = e, n instanceof
|
2571
|
+
this._service = e, n instanceof B ? this._location = n : this._location = B.makeFromUrl(n, e.host);
|
2572
2572
|
}
|
2573
2573
|
/**
|
2574
2574
|
* Returns the URL for the bucket and path this object references,
|
@@ -2585,7 +2585,7 @@ class te {
|
|
2585
2585
|
* A reference to the root of this object's bucket.
|
2586
2586
|
*/
|
2587
2587
|
get root() {
|
2588
|
-
const e = new
|
2588
|
+
const e = new B(this._location.bucket, "");
|
2589
2589
|
return this._newRef(this._service, e);
|
2590
2590
|
}
|
2591
2591
|
/**
|
@@ -2621,7 +2621,7 @@ class te {
|
|
2621
2621
|
const e = os(this._location.path);
|
2622
2622
|
if (e === null)
|
2623
2623
|
return null;
|
2624
|
-
const n = new
|
2624
|
+
const n = new B(this._location.bucket, e);
|
2625
2625
|
return new te(this._service, n);
|
2626
2626
|
}
|
2627
2627
|
/**
|
@@ -2645,17 +2645,17 @@ function Ds(t) {
|
|
2645
2645
|
const e = ms(t.storage, t._location, Pt());
|
2646
2646
|
return t.storage.makeRequestWithTokens(e, Ge).then((n) => {
|
2647
2647
|
if (n === null)
|
2648
|
-
throw
|
2648
|
+
throw Br();
|
2649
2649
|
return n;
|
2650
2650
|
});
|
2651
2651
|
}
|
2652
|
-
function
|
2652
|
+
function Is(t) {
|
2653
2653
|
t._throwIfRoot("deleteObject");
|
2654
2654
|
const e = gs(t.storage, t._location);
|
2655
2655
|
return t.storage.makeRequestWithTokens(e, Ge);
|
2656
2656
|
}
|
2657
|
-
function
|
2658
|
-
const n = as(t._location.path, e), r = new
|
2657
|
+
function As(t, e) {
|
2658
|
+
const n = as(t._location.path, e), r = new B(t._location.bucket, n);
|
2659
2659
|
return new te(t.storage, r);
|
2660
2660
|
}
|
2661
2661
|
/**
|
@@ -2684,11 +2684,11 @@ function xt(t, e) {
|
|
2684
2684
|
if (t instanceof Ye) {
|
2685
2685
|
const n = t;
|
2686
2686
|
if (n._bucket == null)
|
2687
|
-
throw
|
2687
|
+
throw Ur();
|
2688
2688
|
const r = new te(n, n._bucket);
|
2689
2689
|
return e != null ? xt(r, e) : r;
|
2690
2690
|
} else
|
2691
|
-
return e !== void 0 ?
|
2691
|
+
return e !== void 0 ? As(t, e) : t;
|
2692
2692
|
}
|
2693
2693
|
function ks(t, e) {
|
2694
2694
|
if (e && Ts(e)) {
|
@@ -2699,8 +2699,8 @@ function ks(t, e) {
|
|
2699
2699
|
return xt(t, e);
|
2700
2700
|
}
|
2701
2701
|
function ct(t, e) {
|
2702
|
-
const n = e == null ? void 0 : e[
|
2703
|
-
return n == null ? null :
|
2702
|
+
const n = e == null ? void 0 : e[It];
|
2703
|
+
return n == null ? null : B.makeFromBucketSpec(n, t);
|
2704
2704
|
}
|
2705
2705
|
function Os(t, e, n, r = {}) {
|
2706
2706
|
t.host = `${e}:${n}`, t._protocol = "http";
|
@@ -2709,7 +2709,7 @@ function Os(t, e, n, r = {}) {
|
|
2709
2709
|
}
|
2710
2710
|
class Ye {
|
2711
2711
|
constructor(e, n, r, s, i) {
|
2712
|
-
this.app = e, this._authProvider = n, this._appCheckProvider = r, this._url = s, this._firebaseVersion = i, this._bucket = null, this._host = Dt, this._protocol = "https", this._appId = null, this._deleted = !1, this._maxOperationRetryTime = Sr, this._maxUploadRetryTime = Dr, this._requests = /* @__PURE__ */ new Set(), s != null ? this._bucket =
|
2712
|
+
this.app = e, this._authProvider = n, this._appCheckProvider = r, this._url = s, this._firebaseVersion = i, this._bucket = null, this._host = Dt, this._protocol = "https", this._appId = null, this._deleted = !1, this._maxOperationRetryTime = Sr, this._maxUploadRetryTime = Dr, this._requests = /* @__PURE__ */ new Set(), s != null ? this._bucket = B.makeFromBucketSpec(s, this._host) : this._bucket = ct(this._host, this.app.options);
|
2713
2713
|
}
|
2714
2714
|
/**
|
2715
2715
|
* The host string for this service, in the form of `host` or
|
@@ -2719,7 +2719,7 @@ class Ye {
|
|
2719
2719
|
return this._host;
|
2720
2720
|
}
|
2721
2721
|
set host(e) {
|
2722
|
-
this._host = e, this._url != null ? this._bucket =
|
2722
|
+
this._host = e, this._url != null ? this._bucket = B.makeFromBucketSpec(this._url, e) : this._bucket = ct(e, this.app.options);
|
2723
2723
|
}
|
2724
2724
|
/**
|
2725
2725
|
* The maximum time to retry uploads in milliseconds.
|
@@ -2788,7 +2788,7 @@ class Ye {
|
|
2788
2788
|
*/
|
2789
2789
|
_makeRequest(e, n, r, s, i = !0) {
|
2790
2790
|
if (this._deleted)
|
2791
|
-
return new Lr(
|
2791
|
+
return new Lr(At());
|
2792
2792
|
{
|
2793
2793
|
const o = qr(e, this._appId, r, s, n, this._firebaseVersion, i);
|
2794
2794
|
return this._requests.add(o), o.getPromise().then(() => this._requests.delete(o), () => this._requests.delete(o)), o;
|
@@ -2827,7 +2827,7 @@ function Ns(t) {
|
|
2827
2827
|
return t = pe(t), Ds(t);
|
2828
2828
|
}
|
2829
2829
|
function Ps(t) {
|
2830
|
-
return t = pe(t),
|
2830
|
+
return t = pe(t), Is(t);
|
2831
2831
|
}
|
2832
2832
|
function dt(t, e) {
|
2833
2833
|
return t = pe(t), ks(t, e);
|
@@ -2837,24 +2837,24 @@ function pt(t = hr(), e) {
|
|
2837
2837
|
const r = cr(t, Lt).getImmediate({
|
2838
2838
|
identifier: e
|
2839
2839
|
}), s = nn("storage");
|
2840
|
-
return s &&
|
2840
|
+
return s && Us(r, ...s), r;
|
2841
2841
|
}
|
2842
|
-
function
|
2842
|
+
function Us(t, e, n, r = {}) {
|
2843
2843
|
Os(t, e, n, r);
|
2844
2844
|
}
|
2845
|
-
function
|
2845
|
+
function $s(t, { instanceIdentifier: e }) {
|
2846
2846
|
const n = t.getProvider("app").getImmediate(), r = t.getProvider("auth-internal"), s = t.getProvider("app-check-internal");
|
2847
2847
|
return new Ye(n, r, s, e, dr);
|
2848
2848
|
}
|
2849
|
-
function
|
2849
|
+
function Bs() {
|
2850
2850
|
we(new ue(
|
2851
2851
|
Lt,
|
2852
|
-
|
2852
|
+
$s,
|
2853
2853
|
"PUBLIC"
|
2854
2854
|
/* ComponentType.PUBLIC */
|
2855
2855
|
).setMultipleInstances(!0)), ae(ut, lt, ""), ae(ut, lt, "esm2017");
|
2856
2856
|
}
|
2857
|
-
|
2857
|
+
Bs();
|
2858
2858
|
const de = {
|
2859
2859
|
async update(t, e, n) {
|
2860
2860
|
const r = pt(void 0, n), s = dt(r, t);
|
@@ -2870,15 +2870,15 @@ var Ft = { exports: {} };
|
|
2870
2870
|
(function(n, r) {
|
2871
2871
|
t.exports = r();
|
2872
2872
|
})(Vt, function() {
|
2873
|
-
var n = 1e3, r = 6e4, s = 36e5, i = "millisecond", o = "second", a = "minute", u = "hour", p = "day", E = "week", g = "month", w = "quarter", S = "year", T = "date", j = "Invalid Date", O = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
2873
|
+
var n = 1e3, r = 6e4, s = 36e5, i = "millisecond", o = "second", a = "minute", u = "hour", p = "day", E = "week", g = "month", w = "quarter", S = "year", T = "date", j = "Invalid Date", O = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, z = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, H = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(f) {
|
2874
2874
|
var d = ["th", "st", "nd", "rd"], c = f % 100;
|
2875
2875
|
return "[" + f + (d[(c - 20) % 10] || d[c] || d[0]) + "]";
|
2876
|
-
} },
|
2876
|
+
} }, U = function(f, d, c) {
|
2877
2877
|
var h = String(f);
|
2878
2878
|
return !h || h.length >= d ? f : "" + Array(d + 1 - h.length).join(c) + f;
|
2879
|
-
}, C = { s:
|
2879
|
+
}, C = { s: U, z: function(f) {
|
2880
2880
|
var d = -f.utcOffset(), c = Math.abs(d), h = Math.floor(c / 60), l = c % 60;
|
2881
|
-
return (d <= 0 ? "+" : "-") +
|
2881
|
+
return (d <= 0 ? "+" : "-") + U(h, 2, "0") + ":" + U(l, 2, "0");
|
2882
2882
|
}, m: function f(d, c) {
|
2883
2883
|
if (d.date() < c.date()) return -f(c, d);
|
2884
2884
|
var h = 12 * (c.year() - d.year()) + (c.month() - d.month()), l = d.clone().add(h, g), _ = c - l < 0, m = d.clone().add(h + (_ ? -1 : 1), g);
|
@@ -2928,8 +2928,8 @@ var Ft = { exports: {} };
|
|
2928
2928
|
if (typeof l == "string" && !/Z$/i.test(l)) {
|
2929
2929
|
var m = l.match(O);
|
2930
2930
|
if (m) {
|
2931
|
-
var y = m[2] - 1 || 0,
|
2932
|
-
return _ ? new Date(Date.UTC(m[1], y, m[3] || 1, m[4] || 0, m[5] || 0, m[6] || 0,
|
2931
|
+
var y = m[2] - 1 || 0, A = (m[7] || "0").substring(0, 3);
|
2932
|
+
return _ ? new Date(Date.UTC(m[1], y, m[3] || 1, m[4] || 0, m[5] || 0, m[6] || 0, A)) : new Date(m[1], y, m[3] || 1, m[4] || 0, m[5] || 0, m[6] || 0, A);
|
2933
2933
|
}
|
2934
2934
|
}
|
2935
2935
|
return new Date(l);
|
@@ -2955,12 +2955,12 @@ var Ft = { exports: {} };
|
|
2955
2955
|
}, d.valueOf = function() {
|
2956
2956
|
return this.$d.getTime();
|
2957
2957
|
}, d.startOf = function(c, h) {
|
2958
|
-
var l = this, _ = !!b.u(h) || h, m = b.p(c), y = function(Z,
|
2959
|
-
var
|
2960
|
-
return _ ?
|
2961
|
-
},
|
2962
|
-
return b.w(l.toDate()[Z].apply(l.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(
|
2963
|
-
}, k = this.$W, N = this.$M,
|
2958
|
+
var l = this, _ = !!b.u(h) || h, m = b.p(c), y = function(Z, $) {
|
2959
|
+
var W = b.w(l.$u ? Date.UTC(l.$y, $, Z) : new Date(l.$y, $, Z), l);
|
2960
|
+
return _ ? W : W.endOf(p);
|
2961
|
+
}, A = function(Z, $) {
|
2962
|
+
return b.w(l.toDate()[Z].apply(l.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), l);
|
2963
|
+
}, k = this.$W, N = this.$M, M = this.$D, ne = "set" + (this.$u ? "UTC" : "");
|
2964
2964
|
switch (m) {
|
2965
2965
|
case S:
|
2966
2966
|
return _ ? y(1, 0) : y(31, 11);
|
@@ -2968,27 +2968,27 @@ var Ft = { exports: {} };
|
|
2968
2968
|
return _ ? y(1, N) : y(0, N + 1);
|
2969
2969
|
case E:
|
2970
2970
|
var J = this.$locale().weekStart || 0, se = (k < J ? k + 7 : k) - J;
|
2971
|
-
return y(_ ?
|
2971
|
+
return y(_ ? M - se : M + (6 - se), N);
|
2972
2972
|
case p:
|
2973
2973
|
case T:
|
2974
|
-
return
|
2974
|
+
return A(ne + "Hours", 0);
|
2975
2975
|
case u:
|
2976
|
-
return
|
2976
|
+
return A(ne + "Minutes", 1);
|
2977
2977
|
case a:
|
2978
|
-
return
|
2978
|
+
return A(ne + "Seconds", 2);
|
2979
2979
|
case o:
|
2980
|
-
return
|
2980
|
+
return A(ne + "Milliseconds", 3);
|
2981
2981
|
default:
|
2982
2982
|
return this.clone();
|
2983
2983
|
}
|
2984
2984
|
}, d.endOf = function(c) {
|
2985
2985
|
return this.startOf(c, !1);
|
2986
2986
|
}, d.$set = function(c, h) {
|
2987
|
-
var l, _ = b.p(c), m = "set" + (this.$u ? "UTC" : ""), y = (l = {}, l[p] = m + "Date", l[T] = m + "Date", l[g] = m + "Month", l[S] = m + "FullYear", l[u] = m + "Hours", l[a] = m + "Minutes", l[o] = m + "Seconds", l[i] = m + "Milliseconds", l)[_],
|
2987
|
+
var l, _ = b.p(c), m = "set" + (this.$u ? "UTC" : ""), y = (l = {}, l[p] = m + "Date", l[T] = m + "Date", l[g] = m + "Month", l[S] = m + "FullYear", l[u] = m + "Hours", l[a] = m + "Minutes", l[o] = m + "Seconds", l[i] = m + "Milliseconds", l)[_], A = _ === p ? this.$D + (h - this.$W) : h;
|
2988
2988
|
if (_ === g || _ === S) {
|
2989
2989
|
var k = this.clone().set(T, 1);
|
2990
|
-
k.$d[y](
|
2991
|
-
} else y && this.$d[y](
|
2990
|
+
k.$d[y](A), k.init(), this.$d = k.set(T, Math.min(this.$D, k.daysInMonth())).$d;
|
2991
|
+
} else y && this.$d[y](A);
|
2992
2992
|
return this.init(), this;
|
2993
2993
|
}, d.set = function(c, h) {
|
2994
2994
|
return this.clone().$set(c, h);
|
@@ -2998,30 +2998,30 @@ var Ft = { exports: {} };
|
|
2998
2998
|
var l, _ = this;
|
2999
2999
|
c = Number(c);
|
3000
3000
|
var m = b.p(h), y = function(N) {
|
3001
|
-
var
|
3002
|
-
return b.w(
|
3001
|
+
var M = R(_);
|
3002
|
+
return b.w(M.date(M.date() + Math.round(N * c)), _);
|
3003
3003
|
};
|
3004
3004
|
if (m === g) return this.set(g, this.$M + c);
|
3005
3005
|
if (m === S) return this.set(S, this.$y + c);
|
3006
3006
|
if (m === p) return y(1);
|
3007
3007
|
if (m === E) return y(7);
|
3008
|
-
var
|
3008
|
+
var A = (l = {}, l[a] = r, l[u] = s, l[o] = n, l)[m] || 1, k = this.$d.getTime() + c * A;
|
3009
3009
|
return b.w(k, this);
|
3010
3010
|
}, d.subtract = function(c, h) {
|
3011
3011
|
return this.add(-1 * c, h);
|
3012
3012
|
}, d.format = function(c) {
|
3013
3013
|
var h = this, l = this.$locale();
|
3014
3014
|
if (!this.isValid()) return l.invalidDate || j;
|
3015
|
-
var _ = c || "YYYY-MM-DDTHH:mm:ssZ", m = b.z(this), y = this.$H,
|
3016
|
-
return
|
3017
|
-
}, se = function(
|
3018
|
-
return b.s(y % 12 || 12,
|
3019
|
-
}, Z = ne || function(
|
3020
|
-
var me =
|
3015
|
+
var _ = c || "YYYY-MM-DDTHH:mm:ssZ", m = b.z(this), y = this.$H, A = this.$m, k = this.$M, N = l.weekdays, M = l.months, ne = l.meridiem, J = function($, W, ie, me) {
|
3016
|
+
return $ && ($[W] || $(h, _)) || ie[W].slice(0, me);
|
3017
|
+
}, se = function($) {
|
3018
|
+
return b.s(y % 12 || 12, $, "0");
|
3019
|
+
}, Z = ne || function($, W, ie) {
|
3020
|
+
var me = $ < 12 ? "AM" : "PM";
|
3021
3021
|
return ie ? me.toLowerCase() : me;
|
3022
3022
|
};
|
3023
|
-
return _.replace(
|
3024
|
-
return
|
3023
|
+
return _.replace(z, function($, W) {
|
3024
|
+
return W || function(ie) {
|
3025
3025
|
switch (ie) {
|
3026
3026
|
case "YY":
|
3027
3027
|
return String(h.$y).slice(-2);
|
@@ -3032,9 +3032,9 @@ var Ft = { exports: {} };
|
|
3032
3032
|
case "MM":
|
3033
3033
|
return b.s(k + 1, 2, "0");
|
3034
3034
|
case "MMM":
|
3035
|
-
return J(l.monthsShort, k,
|
3035
|
+
return J(l.monthsShort, k, M, 3);
|
3036
3036
|
case "MMMM":
|
3037
|
-
return J(
|
3037
|
+
return J(M, k);
|
3038
3038
|
case "D":
|
3039
3039
|
return h.$D;
|
3040
3040
|
case "DD":
|
@@ -3056,13 +3056,13 @@ var Ft = { exports: {} };
|
|
3056
3056
|
case "hh":
|
3057
3057
|
return se(2);
|
3058
3058
|
case "a":
|
3059
|
-
return Z(y,
|
3059
|
+
return Z(y, A, !0);
|
3060
3060
|
case "A":
|
3061
|
-
return Z(y,
|
3061
|
+
return Z(y, A, !1);
|
3062
3062
|
case "m":
|
3063
|
-
return String(
|
3063
|
+
return String(A);
|
3064
3064
|
case "mm":
|
3065
|
-
return b.s(
|
3065
|
+
return b.s(A, 2, "0");
|
3066
3066
|
case "s":
|
3067
3067
|
return String(h.$s);
|
3068
3068
|
case "ss":
|
@@ -3073,23 +3073,23 @@ var Ft = { exports: {} };
|
|
3073
3073
|
return m;
|
3074
3074
|
}
|
3075
3075
|
return null;
|
3076
|
-
}(
|
3076
|
+
}($) || m.replace(":", "");
|
3077
3077
|
});
|
3078
3078
|
}, d.utcOffset = function() {
|
3079
3079
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
3080
3080
|
}, d.diff = function(c, h, l) {
|
3081
|
-
var _, m = this, y = b.p(h),
|
3082
|
-
return b.m(m,
|
3081
|
+
var _, m = this, y = b.p(h), A = R(c), k = (A.utcOffset() - this.utcOffset()) * r, N = this - A, M = function() {
|
3082
|
+
return b.m(m, A);
|
3083
3083
|
};
|
3084
3084
|
switch (y) {
|
3085
3085
|
case S:
|
3086
|
-
_ =
|
3086
|
+
_ = M() / 12;
|
3087
3087
|
break;
|
3088
3088
|
case g:
|
3089
|
-
_ =
|
3089
|
+
_ = M();
|
3090
3090
|
break;
|
3091
3091
|
case w:
|
3092
|
-
_ =
|
3092
|
+
_ = M() / 3;
|
3093
3093
|
break;
|
3094
3094
|
case E:
|
3095
3095
|
_ = (N - k) / 6048e5;
|
@@ -3141,8 +3141,8 @@ var Ft = { exports: {} };
|
|
3141
3141
|
}, R.en = x[L], R.Ls = x, R.p = {}, R;
|
3142
3142
|
});
|
3143
3143
|
})(Ft);
|
3144
|
-
var
|
3145
|
-
const xs = /* @__PURE__ */
|
3144
|
+
var Ms = Ft.exports;
|
3145
|
+
const xs = /* @__PURE__ */ zt(Ms);
|
3146
3146
|
var Fe = function() {
|
3147
3147
|
return Fe = Object.assign || function(e) {
|
3148
3148
|
for (var n, r = 1, s = arguments.length; r < s; r++) {
|
@@ -3172,14 +3172,14 @@ function ht(t, e, n) {
|
|
3172
3172
|
function Vs(t) {
|
3173
3173
|
return t.charAt(0).toUpperCase() + t.substr(1);
|
3174
3174
|
}
|
3175
|
-
function
|
3175
|
+
function zs(t, e) {
|
3176
3176
|
var n = t.toLowerCase();
|
3177
3177
|
return e === 0 ? Vs(n) : n;
|
3178
3178
|
}
|
3179
3179
|
function De(t, e) {
|
3180
|
-
return e === void 0 && (e = {}), Hs(t, Fe({ delimiter: " ", transform:
|
3180
|
+
return e === void 0 && (e = {}), Hs(t, Fe({ delimiter: " ", transform: zs }, e));
|
3181
3181
|
}
|
3182
|
-
function
|
3182
|
+
function Ws(t, e = []) {
|
3183
3183
|
const n = JSON.parse(JSON.stringify(t));
|
3184
3184
|
return e.length > 0 && e.forEach((r) => {
|
3185
3185
|
n[r] !== void 0 && delete n[r];
|
@@ -3187,7 +3187,7 @@ function zs(t, e = []) {
|
|
3187
3187
|
}
|
3188
3188
|
function Gs(t, e) {
|
3189
3189
|
var r, s, i, o;
|
3190
|
-
const n = e ?
|
3190
|
+
const n = e ? Ws(e) : void 0;
|
3191
3191
|
return {
|
3192
3192
|
_id: (n == null ? void 0 : n._id) ?? "",
|
3193
3193
|
notifyUrl: (n == null ? void 0 : n.notifyUrl) ?? "",
|
@@ -3288,7 +3288,7 @@ async function Xs(t, e, n) {
|
|
3288
3288
|
notifyUrl: n.payoutSetting.store.event === X.F_PAYOUT_FOR.Enum.MARKETING ? "http://marketing-api-service:3000/customer/callback/store" : "http://order-backend:3000/backend/payment"
|
3289
3289
|
};
|
3290
3290
|
}
|
3291
|
-
const jt = Object.values(
|
3291
|
+
const jt = Object.values(Wt.F_BANK_NAME).map((t) => ({
|
3292
3292
|
label: De(t),
|
3293
3293
|
value: t
|
3294
3294
|
})), Ht = Object.values(X.F_BANK_TYPE.Values).map((t) => ({
|
@@ -3326,16 +3326,16 @@ const jt = Object.values(zt.F_BANK_NAME).map((t) => ({
|
|
3326
3326
|
);
|
3327
3327
|
},
|
3328
3328
|
async readBusinessPayoutAccounts() {
|
3329
|
-
return ge(await
|
3329
|
+
return ge(await Ie().get("/payout-accounts"));
|
3330
3330
|
},
|
3331
3331
|
async createBusinessPayoutAccounts(t) {
|
3332
3332
|
return ge(
|
3333
|
-
await
|
3333
|
+
await Ie().post("/payout-accounts", { ...t })
|
3334
3334
|
);
|
3335
3335
|
},
|
3336
3336
|
async updateBusinessPayoutAccounts(t, e) {
|
3337
3337
|
return ge(
|
3338
|
-
await
|
3338
|
+
await Ie().put(`/payout-accounts/${t}`, {
|
3339
3339
|
...e
|
3340
3340
|
})
|
3341
3341
|
);
|
@@ -3343,6 +3343,6 @@ const jt = Object.values(zt.F_BANK_NAME).map((t) => ({
|
|
3343
3343
|
};
|
3344
3344
|
export {
|
3345
3345
|
Qs as P,
|
3346
|
-
|
3346
|
+
Ws as c,
|
3347
3347
|
ei as p
|
3348
3348
|
};
|