462 lines
27 KiB
TypeScript
462 lines
27 KiB
TypeScript
/* Metro module 4915; source: lib/Platforms.tsx; dependencies: [661, 4916, 696, 4917, 4918, 4919, 4920, 4921, 4922, 4923, 4924, 4925, 4926, 4927, 4928, 4929, 4930, 4931, 4932, 4933, 4934, 4935, 4936, 4937, 4938, 4939, 4940, 4941, 4942, 4943, 4944, 4945, 4946, 4947, 4948, 4949, 4950, 4951, 4952, 4953, 4954, 4955, 4956, 4957, 4958, 4959, 4960, 4961, 4962, 4963, 4964, 4965, 4966, 4967, 4968, 4969, 4970, 4971, 4972, 4973, 4974, 4975, 4976, 4977, 4978, 4979, 4980, 4981, 4982, 4983, 4984, 4985, 4986, 4987, 4988, 4989, 4990, 4991, 4992, 4993, 4994, 4995, 4996, 4997, 4998, 4999, 5000, 5001, 5002, 5003, 5004, 5005, 5006, 5007, 5008, 5009, 5010, 5011, 5012, 5013, 5014, 5015, 5016, 5017, 5018, 5019, 5020, 5021, 5022, 5023, 5024, 5025, 5026, 5027, 5028, 5029, 5030, 5031, 5032, 5033, 5034, 5035, 5036, 5037, 5038, 22, 1471, 2] */
|
|
import Module00022 from '../by-id/module-00022.js'; /* Metro dependency 22 */
|
|
import URLUtils from '../utils/URLUtils.tsx'; /* Metro dependency 1471 */
|
|
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as UserApplicationIdentityConstantsModule from '../modules/user_application_identity/UserApplicationIdentityConstants.tsx'; /* Metro dependency 4916 */
|
|
|
|
function _fun43433(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#43433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5093:6, offset: 0x01153251, size: 5089 bytes, params: 8, frame: 30
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const PlatformTypes = (ConstantsModule).PlatformTypes;
|
|
const ApplicationIdentityConnections = (UserApplicationIdentityConstantsModule).ApplicationIdentityConnections;
|
|
object = {};
|
|
const TWITCH = PlatformTypes.TWITCH;
|
|
object.type = TWITCH;
|
|
object.name = 'Twitch';
|
|
object.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('PLATFORM_TWITCH');
|
|
object.icon = {lightPNG: require(4917) /* metro dependency 4917 */,
|
|
darkPNG: require(4917) /* metro dependency 4917 */, whitePNG: require(4918) /* metro dependency 4918 */,
|
|
lightSVG: require(4919) /* metro dependency 4919 */, darkSVG: require(4919) /* metro dependency 4919 */,
|
|
whiteSVG: require(4920) /* metro dependency 4920 */};
|
|
object.enabled = true;
|
|
object.getPlatformUserUrl = function({name}) {
|
|
return 'https://www.twitch.tv/' + (0, global.encodeURIComponent)(name);
|
|
};
|
|
object.domains = ['twitch.tv', 'twitch.com'];
|
|
const items2 = [object];
|
|
object = {};
|
|
const YOUTUBE = PlatformTypes.YOUTUBE;
|
|
object.type = YOUTUBE;
|
|
object.name = 'YouTube';
|
|
object.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('PLATFORM_YOUTUBE');
|
|
object.icon = {lightPNG: require(4921) /* metro dependency 4921 */,
|
|
darkPNG: require(4921) /* metro dependency 4921 */, whitePNG: require(4922) /* metro dependency 4922 */,
|
|
lightSVG: require(4923) /* metro dependency 4923 */, darkSVG: require(4923) /* metro dependency 4923 */,
|
|
whiteSVG: require(4924) /* metro dependency 4924 */};
|
|
object.enabled = true;
|
|
object.getPlatformUserUrl = function({id}) {
|
|
return 'https://www.youtube.com/channel/' + (0, global.encodeURIComponent)(id);
|
|
};
|
|
object.domains = ['youtube.com', 'youtu.be'];
|
|
items2[1] = object;
|
|
object = {};
|
|
const BATTLENET = PlatformTypes.BATTLENET;
|
|
object.type = BATTLENET;
|
|
object.name = 'Battle.net';
|
|
object.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('PLATFORM_BATTLENET');
|
|
object.icon = {lightPNG: require(4925) /* metro dependency 4925 */,
|
|
darkPNG: require(4925) /* metro dependency 4925 */, whitePNG: require(4926) /* metro dependency 4926 */,
|
|
lightSVG: require(4927) /* metro dependency 4927 */, darkSVG: require(4927) /* metro dependency 4927 */,
|
|
whiteSVG: require(4928) /* metro dependency 4928 */};
|
|
object.enabled = true;
|
|
items2[2] = object;
|
|
object = {'type': null, 'name': 'Bluesky', 'icon': null, 'enabled': true, 'getPlatformUserUrl': null,
|
|
'isFederated': true, 'hasMetadata': true};
|
|
const BLUESKY = PlatformTypes.BLUESKY;
|
|
object.type = BLUESKY;
|
|
object.icon = {lightPNG: require(4929) /* metro dependency 4929 */,
|
|
darkPNG: require(4929) /* metro dependency 4929 */, whitePNG: require(4930) /* metro dependency 4930 */,
|
|
lightSVG: require(4931) /* metro dependency 4931 */, darkSVG: require(4931) /* metro dependency 4931 */,
|
|
whiteSVG: require(4932) /* metro dependency 4932 */};
|
|
object.getPlatformUserUrl = function({id}) {
|
|
var value = (0, global.encodeURIComponent)(id);
|
|
value = value.replaceAll('%3A', ':');
|
|
return 'https://bsky.app/profile/' + value;
|
|
};
|
|
items2[3] = object;
|
|
object = {};
|
|
const BUNGIE = PlatformTypes.BUNGIE;
|
|
object.type = BUNGIE;
|
|
object.name = 'Bungie.net';
|
|
object.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('PLATFORM_BUNGIE');
|
|
object.icon = {lightPNG: require(4933) /* metro dependency 4933 */,
|
|
darkPNG: require(4934) /* metro dependency 4934 */, whitePNG: require(4935) /* metro dependency 4935 */,
|
|
lightSVG: require(4936) /* metro dependency 4936 */, darkSVG: require(4937) /* metro dependency 4937 */,
|
|
whiteSVG: require(4938) /* metro dependency 4938 */};
|
|
object.enabled = true;
|
|
items2[4] = object;
|
|
object = {};
|
|
const SKYPE = PlatformTypes.SKYPE;
|
|
object.type = SKYPE;
|
|
object.name = 'Skype';
|
|
object.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('PLATFORM_SKYPE');
|
|
object.icon = {lightPNG: require(4939) /* metro dependency 4939 */,
|
|
darkPNG: require(4939) /* metro dependency 4939 */, whitePNG: require(4940) /* metro dependency 4940 */,
|
|
lightSVG: require(4941) /* metro dependency 4941 */, darkSVG: require(4941) /* metro dependency 4941 */,
|
|
whiteSVG: require(4942) /* metro dependency 4942 */};
|
|
object.enabled = false;
|
|
object.getPlatformUserUrl = function({id}) {
|
|
return 'skype:' + (0, global.encodeURIComponent)(id) + '?userinfo';
|
|
};
|
|
items2[5] = object;
|
|
object = {};
|
|
const LEAGUE_OF_LEGENDS = PlatformTypes.LEAGUE_OF_LEGENDS;
|
|
object.type = LEAGUE_OF_LEGENDS;
|
|
object.name = 'League of Legends';
|
|
object.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('PLATFORM_LOL');
|
|
object.icon = {lightPNG: require(4943) /* metro dependency 4943 */,
|
|
darkPNG: require(4943) /* metro dependency 4943 */, whitePNG: require(4944) /* metro dependency 4944 */,
|
|
lightSVG: require(4945) /* metro dependency 4945 */, darkSVG: require(4945) /* metro dependency 4945 */,
|
|
whiteSVG: require(4946) /* metro dependency 4946 */};
|
|
object.enabled = true;
|
|
let RIOT_GAMES = ApplicationIdentityConnections.RIOT_GAMES;
|
|
object.replacedBy = RIOT_GAMES;
|
|
items2[6] = object;
|
|
object = {};
|
|
const STEAM = PlatformTypes.STEAM;
|
|
object.type = STEAM;
|
|
object.name = 'Steam';
|
|
object.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('PLATFORM_STEAM');
|
|
object.icon = {lightPNG: require(4947) /* metro dependency 4947 */,
|
|
darkPNG: require(4948) /* metro dependency 4948 */, whitePNG: require(4948) /* metro dependency 4948 */,
|
|
lightSVG: require(4949) /* metro dependency 4949 */, darkSVG: require(4950) /* metro dependency 4950 */,
|
|
whiteSVG: require(4950) /* metro dependency 4950 */};
|
|
object.enabled = true;
|
|
object.getPlatformUserUrl = function({id}) {
|
|
return 'https://steamcommunity.com/profiles/' + (0, global.encodeURIComponent)(id);
|
|
};
|
|
object.hasMetadata = true;
|
|
items2[7] = object;
|
|
object = {};
|
|
const REDDIT = PlatformTypes.REDDIT;
|
|
object.type = REDDIT;
|
|
object.name = 'Reddit';
|
|
object.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('PLATFORM_REDDIT');
|
|
object.icon = {lightPNG: require(4951) /* metro dependency 4951 */,
|
|
darkPNG: require(4951) /* metro dependency 4951 */, whitePNG: require(4952) /* metro dependency 4952 */,
|
|
lightSVG: require(4953) /* metro dependency 4953 */, darkSVG: require(4953) /* metro dependency 4953 */,
|
|
whiteSVG: require(4954) /* metro dependency 4954 */};
|
|
object.enabled = true;
|
|
object.domains = ['reddit.com'];
|
|
object.getPlatformUserUrl = function({name}) {
|
|
return 'https://www.reddit.com/u/' + (0, global.encodeURIComponent)(name);
|
|
};
|
|
object.hasMetadata = true;
|
|
items2[8] = object;
|
|
object = {};
|
|
const FACEBOOK = PlatformTypes.FACEBOOK;
|
|
object.type = FACEBOOK;
|
|
object.name = 'Facebook';
|
|
object.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('PLATFORM_FACEBOOK');
|
|
object.icon = {lightPNG: require(4955) /* metro dependency 4955 */,
|
|
darkPNG: require(4955) /* metro dependency 4955 */, whitePNG: require(4956) /* metro dependency 4956 */,
|
|
lightSVG: require(4957) /* metro dependency 4957 */, darkSVG: require(4957) /* metro dependency 4957 */,
|
|
whiteSVG: require(4958) /* metro dependency 4958 */};
|
|
object.domains = ['facebook.com'];
|
|
object.enabled = true;
|
|
items2[9] = object;
|
|
object = {};
|
|
const TWITTER_LEGACY = PlatformTypes.TWITTER_LEGACY;
|
|
object.type = TWITTER_LEGACY;
|
|
object.name = 'Twitter';
|
|
object.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('PLATFORM_TWITTER');
|
|
object.icon = {lightPNG: require(4959) /* metro dependency 4959 */,
|
|
darkPNG: require(4959) /* metro dependency 4959 */, whitePNG: require(4960) /* metro dependency 4960 */,
|
|
lightSVG: require(4961) /* metro dependency 4961 */, darkSVG: require(4961) /* metro dependency 4961 */,
|
|
whiteSVG: require(4962) /* metro dependency 4962 */};
|
|
object.enabled = false;
|
|
object.getPlatformUserUrl = function({name}) {
|
|
return 'https://twitter.com/' + (0, global.encodeURIComponent)(name);
|
|
};
|
|
object.domains = ['twitter.com'];
|
|
object.hasMetadata = true;
|
|
items2[10] = object;
|
|
object = {};
|
|
const TWITTER = PlatformTypes.TWITTER;
|
|
object.type = TWITTER;
|
|
object.name = 'X';
|
|
object.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('PLATFORM_TWITTER');
|
|
object.icon = {lightPNG: require(4963) /* metro dependency 4963 */,
|
|
darkPNG: require(4964) /* metro dependency 4964 */, whitePNG: require(4965) /* metro dependency 4965 */,
|
|
lightSVG: require(4966) /* metro dependency 4966 */, darkSVG: require(4967) /* metro dependency 4967 */,
|
|
whiteSVG: require(4968) /* metro dependency 4968 */};
|
|
object.enabled = true;
|
|
object.getPlatformUserUrl = function({name}) {
|
|
return 'https://x.com/' + (0, global.encodeURIComponent)(name);
|
|
};
|
|
object.domains = ['x.com'];
|
|
object.hasMetadata = true;
|
|
items2[11] = object;
|
|
object = {};
|
|
const SPOTIFY = PlatformTypes.SPOTIFY;
|
|
object.type = SPOTIFY;
|
|
object.name = 'Spotify';
|
|
object.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('PLATFORM_SPOTIFY');
|
|
object.icon = {lightPNG: require(4969) /* metro dependency 4969 */,
|
|
darkPNG: require(4969) /* metro dependency 4969 */, whitePNG: require(4970) /* metro dependency 4970 */,
|
|
lightSVG: require(4971) /* metro dependency 4971 */, darkSVG: require(4971) /* metro dependency 4971 */,
|
|
whiteSVG: require(4972) /* metro dependency 4972 */};
|
|
object.enabled = true;
|
|
object.getPlatformUserUrl = function({id}) {
|
|
return 'https://open.spotify.com/user/' + (0, global.encodeURIComponent)(id);
|
|
};
|
|
items2[12] = object;
|
|
object = {};
|
|
const XBOX = PlatformTypes.XBOX;
|
|
object.type = XBOX;
|
|
object.name = 'Xbox';
|
|
object.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('PLATFORM_XBOX');
|
|
object.icon = {lightPNG: require(4973) /* metro dependency 4973 */,
|
|
darkPNG: require(4974) /* metro dependency 4974 */, whitePNG: require(4974) /* metro dependency 4974 */,
|
|
lightSVG: require(4975) /* metro dependency 4975 */, darkSVG: require(4976) /* metro dependency 4976 */,
|
|
whiteSVG: require(4976) /* metro dependency 4976 */, customPNG: require(4977) /* metro dependency 4977 */};
|
|
object.enabled = true;
|
|
items2[13] = object;
|
|
object = {};
|
|
const SAMSUNG = PlatformTypes.SAMSUNG;
|
|
object.type = SAMSUNG;
|
|
object.name = 'Samsung Galaxy';
|
|
object.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('PLATFORM_SAMSUNG');
|
|
object.icon = {lightPNG: require(4978) /* metro dependency 4978 */,
|
|
darkPNG: require(4978) /* metro dependency 4978 */, whitePNG: require(4979) /* metro dependency 4979 */,
|
|
lightSVG: require(4980) /* metro dependency 4980 */, darkSVG: require(4980) /* metro dependency 4980 */,
|
|
whiteSVG: require(4981) /* metro dependency 4981 */};
|
|
object.enabled = false;
|
|
items2[14] = object;
|
|
object = {};
|
|
const GITHUB = PlatformTypes.GITHUB;
|
|
object.type = GITHUB;
|
|
object.name = 'GitHub';
|
|
object.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('PLATFORM_GITHUB');
|
|
object.icon = {lightPNG: require(4982) /* metro dependency 4982 */,
|
|
darkPNG: require(4983) /* metro dependency 4983 */, whitePNG: require(4983) /* metro dependency 4983 */,
|
|
lightSVG: require(4984) /* metro dependency 4984 */, darkSVG: require(4985) /* metro dependency 4985 */,
|
|
whiteSVG: require(4985) /* metro dependency 4985 */};
|
|
object.enabled = true;
|
|
object.getPlatformUserUrl = function({name}) {
|
|
return 'https://github.com/' + (0, global.encodeURIComponent)(name);
|
|
};
|
|
object.domains = ['github.com'];
|
|
items2[15] = object;
|
|
object = {};
|
|
const PLAYSTATION = PlatformTypes.PLAYSTATION;
|
|
object.type = PLAYSTATION;
|
|
object.name = 'PlayStation Network';
|
|
object.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('PLATFORM_PLAYSTATION');
|
|
object.icon = {lightPNG: require(4986) /* metro dependency 4986 */,
|
|
darkPNG: require(4987) /* metro dependency 4987 */, whitePNG: require(4987) /* metro dependency 4987 */,
|
|
lightSVG: require(4988) /* metro dependency 4988 */, darkSVG: require(4989) /* metro dependency 4989 */,
|
|
whiteSVG: require(4989) /* metro dependency 4989 */};
|
|
object.enabled = true;
|
|
items2[16] = object;
|
|
object = {};
|
|
const PLAYSTATION_STAGING = PlatformTypes.PLAYSTATION_STAGING;
|
|
object.type = PLAYSTATION_STAGING;
|
|
object.name = 'PlayStation Network (Staging)';
|
|
object.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('PLATFORM_PLAYSTATION');
|
|
object.icon = {lightPNG: require(4987) /* metro dependency 4987 */,
|
|
darkPNG: require(4986) /* metro dependency 4986 */, whitePNG: require(4986) /* metro dependency 4986 */,
|
|
lightSVG: require(4989) /* metro dependency 4989 */, darkSVG: require(4988) /* metro dependency 4988 */,
|
|
whiteSVG: require(4988) /* metro dependency 4988 */};
|
|
object.enabled = false;
|
|
items2[17] = object;
|
|
object = {};
|
|
const EPIC_GAMES = PlatformTypes.EPIC_GAMES;
|
|
object.type = EPIC_GAMES;
|
|
object.name = 'Epic Games';
|
|
object.icon = {lightPNG: require(4990) /* metro dependency 4990 */,
|
|
darkPNG: require(4991) /* metro dependency 4991 */, whitePNG: require(4991) /* metro dependency 4991 */,
|
|
lightSVG: require(4992) /* metro dependency 4992 */, darkSVG: require(4993) /* metro dependency 4993 */,
|
|
whiteSVG: require(4993) /* metro dependency 4993 */};
|
|
object.enabled = true;
|
|
items2[18] = object;
|
|
object = {};
|
|
RIOT_GAMES = PlatformTypes.RIOT_GAMES;
|
|
object.type = RIOT_GAMES;
|
|
object.name = 'Riot Games';
|
|
object.icon = {lightPNG: require(4994) /* metro dependency 4994 */,
|
|
darkPNG: require(4994) /* metro dependency 4994 */, whitePNG: require(4995) /* metro dependency 4995 */,
|
|
lightSVG: require(4996) /* metro dependency 4996 */, darkSVG: require(4996) /* metro dependency 4996 */,
|
|
whiteSVG: require(4997) /* metro dependency 4997 */, blackSVG: require(4998) /* metro dependency 4998 */};
|
|
object.enabled = true;
|
|
RIOT_GAMES = ApplicationIdentityConnections.RIOT_GAMES;
|
|
object.replacedBy = RIOT_GAMES;
|
|
items2[19] = object;
|
|
object = {};
|
|
const ROBLOX = PlatformTypes.ROBLOX;
|
|
object.type = ROBLOX;
|
|
object.name = 'Roblox';
|
|
object.icon = {lightPNG: require(4999) /* metro dependency 4999 */,
|
|
darkPNG: require(5000) /* metro dependency 5000 */, whitePNG: require(5001) /* metro dependency 5001 */,
|
|
lightSVG: require(5002) /* metro dependency 5002 */, darkSVG: require(5003) /* metro dependency 5003 */,
|
|
whiteSVG: require(5004) /* metro dependency 5004 */};
|
|
object.enabled = true;
|
|
object.getPlatformUserUrl = function({id}) {
|
|
return 'https://roblox.com/users/' + (0, global.encodeURIComponent)(id) + '/profile';
|
|
};
|
|
items2[20] = object;
|
|
object = {'type': null, 'name': 'PayPal', 'icon': null, 'enabled': true, 'hasMetadata': true};
|
|
const PAYPAL = PlatformTypes.PAYPAL;
|
|
object.type = PAYPAL;
|
|
object.icon = {lightPNG: require(5005) /* metro dependency 5005 */,
|
|
darkPNG: require(5005) /* metro dependency 5005 */, whitePNG: require(5006) /* metro dependency 5006 */,
|
|
lightSVG: require(5007) /* metro dependency 5007 */, darkSVG: require(5007) /* metro dependency 5007 */,
|
|
whiteSVG: require(5008) /* metro dependency 5008 */};
|
|
items2[21] = object;
|
|
object = {'type': null, 'name': 'eBay', 'icon': null, 'enabled': true, 'hasMetadata': true};
|
|
const EBAY = PlatformTypes.EBAY;
|
|
object.type = EBAY;
|
|
object.icon = {lightPNG: require(5009) /* metro dependency 5009 */,
|
|
darkPNG: require(5009) /* metro dependency 5009 */, whitePNG: require(5010) /* metro dependency 5010 */,
|
|
lightSVG: require(5011) /* metro dependency 5011 */, darkSVG: require(5011) /* metro dependency 5011 */,
|
|
whiteSVG: require(5012) /* metro dependency 5012 */};
|
|
object.getPlatformUserUrl = function({name}) {
|
|
return 'https://www.ebay.com/usr/' + (0, global.encodeURIComponent)(name);
|
|
};
|
|
items2[22] = object;
|
|
object = {'type': null, 'name': 'TikTok', 'icon': null, 'enabled': true, 'hasMetadata': true};
|
|
const TIKTOK = PlatformTypes.TIKTOK;
|
|
object.type = TIKTOK;
|
|
object.icon = {lightPNG: require(5013) /* metro dependency 5013 */,
|
|
darkPNG: require(5014) /* metro dependency 5014 */, whitePNG: require(5014) /* metro dependency 5014 */,
|
|
lightSVG: require(5015) /* metro dependency 5015 */, darkSVG: require(5016) /* metro dependency 5016 */,
|
|
whiteSVG: require(5016) /* metro dependency 5016 */};
|
|
object.domains = ['tiktok.com'];
|
|
object.getPlatformUserUrl = function({name}) {
|
|
return 'https://www.tiktok.com/@' + (0, global.encodeURIComponent)(name);
|
|
};
|
|
items2[23] = object;
|
|
object = {};
|
|
const INSTAGRAM = PlatformTypes.INSTAGRAM;
|
|
object.type = INSTAGRAM;
|
|
object.name = 'Instagram';
|
|
object.icon = {lightPNG: require(5017) /* metro dependency 5017 */,
|
|
darkPNG: require(5017) /* metro dependency 5017 */, whitePNG: require(5018) /* metro dependency 5018 */,
|
|
lightSVG: require(5019) /* metro dependency 5019 */, darkSVG: require(5019) /* metro dependency 5019 */,
|
|
whiteSVG: require(5020) /* metro dependency 5020 */};
|
|
object.enabled = false;
|
|
object.domains = ['instagram.com'];
|
|
object.getPlatformUserUrl = function({name}) {
|
|
return 'https://www.instagram.com/' + (0, global.encodeURIComponent)(name);
|
|
};
|
|
items2[24] = object;
|
|
object = {'type': null, 'name': 'Mastodon', 'icon': null, 'enabled': false, 'getPlatformUserUrl': null,
|
|
'isFederated': true, 'hasMetadata': true};
|
|
const MASTODON = PlatformTypes.MASTODON;
|
|
object.type = MASTODON;
|
|
object.icon = {lightPNG: require(5021) /* metro dependency 5021 */,
|
|
darkPNG: require(5021) /* metro dependency 5021 */, whitePNG: require(5022) /* metro dependency 5022 */,
|
|
lightSVG: require(5023) /* metro dependency 5023 */, darkSVG: require(5023) /* metro dependency 5023 */,
|
|
whiteSVG: require(5024) /* metro dependency 5024 */};
|
|
object.getPlatformUserUrl = function(a0) {
|
|
return a0.id;
|
|
};
|
|
items2[25] = object;
|
|
object = {};
|
|
const CRUNCHYROLL = PlatformTypes.CRUNCHYROLL;
|
|
object.type = CRUNCHYROLL;
|
|
object.name = 'Crunchyroll';
|
|
object.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('PLATFORM_CRUNCHYROLL');
|
|
object.icon = {lightPNG: require(5025) /* metro dependency 5025 */,
|
|
darkPNG: require(5025) /* metro dependency 5025 */, whitePNG: require(5025) /* metro dependency 5025 */,
|
|
lightSVG: require(5026) /* metro dependency 5026 */, darkSVG: require(5026) /* metro dependency 5026 */,
|
|
whiteSVG: require(5027) /* metro dependency 5027 */};
|
|
object.enabled = true;
|
|
items2[26] = object;
|
|
object = {};
|
|
const DOMAIN = PlatformTypes.DOMAIN;
|
|
object.type = DOMAIN;
|
|
object.name = 'Domain';
|
|
object.icon = {lightPNG: require(5028) /* metro dependency 5028 */,
|
|
darkPNG: require(5029) /* metro dependency 5029 */, whitePNG: require(5029) /* metro dependency 5029 */,
|
|
lightSVG: require(5030) /* metro dependency 5030 */, darkSVG: require(5031) /* metro dependency 5031 */,
|
|
whiteSVG: require(5031) /* metro dependency 5031 */};
|
|
object.getPlatformUserUrl = function({id}) {
|
|
return 'https://' + id + '/';
|
|
};
|
|
object.enabled = true;
|
|
items2[27] = object;
|
|
object = {};
|
|
const AMAZON_MUSIC = PlatformTypes.AMAZON_MUSIC;
|
|
object.type = AMAZON_MUSIC;
|
|
object.name = 'Amazon Music';
|
|
object.icon = {lightPNG: require(5032) /* metro dependency 5032 */,
|
|
darkPNG: require(5032) /* metro dependency 5032 */, whitePNG: require(5032) /* metro dependency 5032 */,
|
|
lightSVG: require(5033) /* metro dependency 5033 */, darkSVG: require(5033) /* metro dependency 5033 */,
|
|
whiteSVG: require(5033) /* metro dependency 5033 */};
|
|
object.enabled = true;
|
|
items2[28] = object;
|
|
object = {};
|
|
const META_QUEST_OR_HORIZON = PlatformTypes.META_QUEST_OR_HORIZON;
|
|
object.type = META_QUEST_OR_HORIZON;
|
|
object.name = 'Meta Quest';
|
|
object.icon = {lightPNG: require(5034) /* metro dependency 5034 */,
|
|
darkPNG: require(5035) /* metro dependency 5035 */, whitePNG: require(5036) /* metro dependency 5036 */,
|
|
lightSVG: require(5037) /* metro dependency 5037 */, darkSVG: require(5038) /* metro dependency 5038 */,
|
|
whiteSVG: require(5038) /* metro dependency 5038 */};
|
|
object.enabled = false;
|
|
items2[29] = object;
|
|
const env0_3 = (Module00022).keyBy(items2, 'type');
|
|
const env0_4 = {};
|
|
items2.forEach(function(a0) {
|
|
var env0_0 = a0;
|
|
var domains = a0.domains;
|
|
if (domains != null) {
|
|
domains.forEach(_fun43451);
|
|
}
|
|
});
|
|
object = {get: get_43452, getByUrl: getByUrl, isSupported: isSupported_43454, map: map_43455, filter: filter_43456,
|
|
find: find_43458};
|
|
(FileImportTrackerModule).fileFinishedImporting('lib/Platforms.tsx');
|
|
exports.default = object;
|
|
function _fun43450(a0) { // fn#43450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5093:7705, offset: 0x0115490f, size: 40 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
const domains = a0.domains;
|
|
if (domains != null) {
|
|
domains.forEach(_fun43451);
|
|
}
|
|
function _fun43451(a0) { // fn#43451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5093:7747, offset: 0x01154937, size: 25 bytes, params: 2, frame: 3
|
|
env1_4[a0] = env0_0;
|
|
}
|
|
|
|
}
|
|
|
|
function get_43452(a0) { // fn#43452, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5093:7771, offset: 0x01154950, size: 28 bytes, params: 2, frame: 3
|
|
const property = env0_3[a0];
|
|
const value = null;
|
|
return value != property ? property : value;
|
|
}
|
|
|
|
function getByUrl(a0) { // fn#43453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5093:7814, offset: 0x0115496c, size: 99 bytes, params: 2, frame: 13
|
|
var hostname;
|
|
const value2 = (URLUtils).toURLSafe(a0);
|
|
if (value2 != null) {
|
|
hostname = value2.hostname;
|
|
return env0_4[hostname.startsWith('www.') ? hostname.slice(4) : hostname];
|
|
}
|
|
}
|
|
|
|
function isSupported_43454(a0) { // fn#43454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5093:7946, offset: 0x011549cf, size: 42 bytes, params: 2, frame: 13
|
|
const Object = global.Object;
|
|
return Object.prototype.hasOwnProperty.call(env0_3, a0);
|
|
}
|
|
|
|
function map_43455(a0) { // fn#43455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5093:7995, offset: 0x011549f9, size: 22 bytes, params: 2, frame: 11
|
|
return env0_2.map(a0);
|
|
}
|
|
|
|
function filter_43456(a0) { // fn#43456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5093:8007, offset: 0x01154a0f, size: 40 bytes, params: 2, frame: 11
|
|
const value = env0_2.filter(a0);
|
|
value.sort(function({name}, {name}) {
|
|
return name.localeCompare(name);
|
|
});
|
|
return value;
|
|
}
|
|
|
|
function find_43458(a0) { // fn#43458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5093:8100, offset: 0x01154a54, size: 23 bytes, params: 2, frame: 11
|
|
return env0_2.find(a0);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun43433, 4915, [661, 4916, 696, 4917, 4918, 4919, 4920, 4921, 4922, 4923, 4924, 4925, 4926, 4927, 4928,
|
|
4929, 4930, 4931, 4932, 4933, 4934, 4935, 4936, 4937, 4938, 4939, 4940, 4941, 4942, 4943, 4944, 4945, 4946,
|
|
4947, 4948, 4949, 4950, 4951, 4952, 4953, 4954, 4955, 4956, 4957, 4958, 4959, 4960, 4961, 4962, 4963, 4964,
|
|
4965, 4966, 4967, 4968, 4969, 4970, 4971, 4972, 4973, 4974, 4975, 4976, 4977, 4978, 4979, 4980, 4981, 4982,
|
|
4983, 4984, 4985, 4986, 4987, 4988, 4989, 4990, 4991, 4992, 4993, 4994, 4995, 4996, 4997, 4998, 4999, 5000,
|
|
5001, 5002, 5003, 5004, 5005, 5006, 5007, 5008, 5009, 5010, 5011, 5012, 5013, 5014, 5015, 5016, 5017, 5018,
|
|
5019, 5020, 5021, 5022, 5023, 5024, 5025, 5026, 5027, 5028, 5029, 5030, 5031, 5032, 5033, 5034, 5035, 5036,
|
|
5037, 5038, 22, 1471,
|
|
2]) /* metro module 4915, dependencies: [661, 4916, 696, 4917, 4918, 4919, 4920, 4921, 4922, 4923, 4924, 4925, 4926, 4927, 4928, 4929, 4930, 4931, 4932, 4933, 4934, 4935, 4936, 4937, 4938, 4939, 4940, 4941, 4942, 4943, 4944, 4945, 4946, 4947, 4948, 4949, 4950, 4951, 4952, 4953, 4954, 4955, 4956, 4957, 4958, 4959, 4960, 4961, 4962, 4963, 4964, 4965, 4966, 4967, 4968, 4969, 4970, 4971, 4972, 4973, 4974, 4975, 4976, 4977, 4978, 4979, 4980, 4981, 4982, 4983, 4984, 4985, 4986, 4987, 4988, 4989, 4990, 4991, 4992, 4993, 4994, 4995, 4996, 4997, 4998, 4999, 5000, 5001, 5002, 5003, 5004, 5005, 5006, 5007, 5008, 5009, 5010, 5011, 5012, 5013, 5014, 5015, 5016, 5017, 5018, 5019, 5020, 5021, 5022, 5023, 5024, 5025, 5026, 5027, 5028, 5029, 5030, 5031, 5032, 5033, 5034, 5035, 5036, 5037, 5038, 22, 1471, 2] */;
|