This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

+75 -65
View File
@@ -1,7 +1,11 @@
/* Metro module 3837; source: modules/i18n/CountryCodeUtils.tsx; dependencies: [3838, 44, 1244, 3839, 3840, 2] */
import Module00044 from '../../by-id/module-00044.js'; /* Metro dependency 44 */
import Countries from '../../external/discord_common/js/shared/Countries.tsx'; /* Metro dependency 3838 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun31411(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3976:6, offset: 0x00ff7332, size: 2734 bytes, params: 8, frame: 19
const env0_0 = require;
const closure = getCountryCodeByCountryName;
const getCountryCodeByCountryName2 = getCountryCodeByCountryName;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object = {AF: function() {
@@ -515,79 +519,85 @@ function _fun31411(global, require, importDefault, importAll, module, exports, d
}, ZW: function() {
return require(dependencyMap[2]).intl.string(require(dependencyMap[2]).t.kQ6oLs);
}};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/i18n/CountryCodeUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/i18n/CountryCodeUtils.tsx');
exports.DEFAULT_COUNTRY_CODE_NAME = 'United States';
exports.getCountryCodeByCountryName = closure;
exports.getCountryCodeByCountryName = getCountryCodeByCountryName2;
exports.getCountryCodeByAlpha2 = getCountryCodeByAlpha2;
exports.getDefaultCountryCode = getDefaultCountryCode;
exports.getI18NCountryName = getI18NCountryName;
exports.getI18NCountryNameSafe = getI18NCountryNameSafe;
exports.convertToAlpha2 = convertToAlpha2;
}
function getCountryCodeByCountryName(a0) { // fn#31412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3976:114, offset: 0x00ff7de0, size: 91 bytes, params: 2, frame: 12
const env0_0 = a0;
let value = importDefault(3838) /* metro dependency 3838: Countries */;
value = value.find(_fun31413);
if (value != null) {
return {name: value.name, code: value.phoneCountryCode, alpha2: value.alpha2};
}
}
function getCountryCodeByAlpha2(a0) { // fn#31669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3976:12152, offset: 0x00ffbdf9, size: 91 bytes, params: 2, frame: 12
const env0_0 = a0;
let value = importDefault(3838) /* metro dependency 3838: Countries */;
value = value.find(_fun31670);
if (value != null) {
return {name: value.name, code: value.phoneCountryCode, alpha2: value.alpha2};
}
}
function getDefaultCountryCode() { // fn#31671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3976:12321, offset: 0x00ffbe6a, size: 54 bytes, params: 1, frame: 14
const countryCodeByCountryName = getCountryCodeByCountryName('United States');
(importDefault(44) /* metro dependency 44 */)(countryCodeByCountryName, 'Default country code cannot be missing.');
return countryCodeByCountryName;
}
function getI18NCountryName(a0) { // fn#31672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3976:12475, offset: 0x00ffbea0, size: 20 bytes, params: 2, frame: 9
return env0_3[a0]();
}
function getI18NCountryNameSafe(a0) { // fn#31673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3976:12546, offset: 0x00ffbeb4, size: 28 bytes, params: 2, frame: 10
const value = a0;
const property = env0_3[value];
return property == null ? value : property();
}
function convertToAlpha2(a0) { // fn#31674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3976:12632, offset: 0x00ffbed0, size: 292 bytes, params: 2, frame: 16
var value;
var property;
var Error;
if (a0.length === 2) {
property = (require(3839) /* metro dependency 3839: CountryCodes */).CountryCodes[a0];
if (property == null) {
Error = global.Error;
value = 'Invalid country code alpha2 ' + a0;
throw new Error();
function getCountryCodeByCountryName(a0) { // fn#31412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3976:114, offset: 0x00ff7de0, size: 91 bytes, params: 2, frame: 12
const env0_0 = a0;
let value = Countries;
value = value.find(_fun31413);
if (value != null) {
return {name: value.name, code: value.phoneCountryCode, alpha2: value.alpha2};
}
} else {
if (a0.length !== 3) {
Error = global.Error;
value = 'Bad country code passed: ' + a0 + ' with length ' + a0.length;
throw new Error();
}
var CountryCodesISO3to2 = (require(3840) /* metro dependency 3840: CountryCodesISO3to2 */).CountryCodesISO3to2;
property = CountryCodesISO3to2[a0];
if (property == null) {
Error = global.Error;
value = 'Could not find ' + a0 + ' in CountryCodesISO3to2';
throw new Error();
function _fun31413({name}) { // fn#31413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3976:174, offset: 0x00e6222e, size: 21 bytes, params: 2, frame: 2
return name === env0_0;
}
}
function getCountryCodeByAlpha2(a0) { // fn#31669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3976:12152, offset: 0x00ffbdf9, size: 91 bytes, params: 2, frame: 12
const env0_0 = a0;
let value = Countries;
value = value.find(_fun31670);
if (value != null) {
return {name: value.name, code: value.phoneCountryCode, alpha2: value.alpha2};
}
function _fun31670({alpha2}) { // fn#31670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3976:12207, offset: 0x00ffbe54, size: 22 bytes, params: 2, frame: 2
return alpha2 === env0_0;
}
}
function getDefaultCountryCode() { // fn#31671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3976:12321, offset: 0x00ffbe6a, size: 54 bytes, params: 1, frame: 14
const countryCodeByCountryName = getCountryCodeByCountryName('United States');
(Module00044)(countryCodeByCountryName, 'Default country code cannot be missing.');
return countryCodeByCountryName;
}
function getI18NCountryName(a0) { // fn#31672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3976:12475, offset: 0x00ffbea0, size: 20 bytes, params: 2, frame: 9
return env0_3[a0]();
}
function getI18NCountryNameSafe(a0) { // fn#31673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3976:12546, offset: 0x00ffbeb4, size: 28 bytes, params: 2, frame: 10
const value = a0;
const property = env0_3[value];
return property == null ? value : property();
}
function convertToAlpha2(a0) { // fn#31674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3976:12632, offset: 0x00ffbed0, size: 292 bytes, params: 2, frame: 16
var value;
var property;
var Error;
if (a0.length === 2) {
property = (require(3839) /* metro dependency 3839: CountryCodes */).CountryCodes[a0];
if (property == null) {
Error = global.Error;
value = 'Invalid country code alpha2 ' + a0;
throw new Error();
}
} else {
if (a0.length !== 3) {
Error = global.Error;
value = 'Bad country code passed: ' + a0 + ' with length ' + a0.length;
throw new Error();
}
var CountryCodesISO3to2 = (require(3840) /* metro dependency 3840: CountryCodesISO3to2 */).CountryCodesISO3to2;
property = CountryCodesISO3to2[a0];
if (property == null) {
Error = global.Error;
value = 'Could not find ' + a0 + ' in CountryCodesISO3to2';
throw new Error();
}
}
return property;
}
return property;
}
function _fun31670({alpha2}) { // fn#31670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3976:12207, offset: 0x00ffbe54, size: 22 bytes, params: 2, frame: 2
return alpha2 === env0_0;
}
global.__d(_fun31411, 3837, [3838, 44, 1244, 3839, 3840,
2]) /* metro module 3837, dependencies: [3838, 44, 1244, 3839, 3840, 2] */;