decord/source/lib/Platforms.tsx
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

436 lines
26 KiB
TypeScript

// Module ID: 5333
// Function ID: 5334
// Name: Platforms
// Dependencies: [1074, 1921, 575, 5334, 5335, 5336, 5337, 5338, 5339, 5340, 5341, 5342, 5343, 5344, 5345, 1922, 5346, 5347, 5348, 5349, 5350, 5351, 5352, 5353, 5354, 5355, 5356, 5357, 5358, 5359, 5360, 5361, 5362, 5363, 5364, 5365, 5366, 5367, 5368, 5369, 5370, 5371, 5372, 5373, 5374, 5375, 5376, 5377, 5378, 5379, 5380, 5381, 5382, 5383, 5384, 5385, 5386, 5387, 5388, 5389, 5390, 5391, 5392, 5393, 5394, 5395, 5396, 5397, 5398, 5399, 5400, 5401, 5402, 5403, 5404, 5405, 5406, 5407, 5408, 5409, 5410, 5411, 5412, 5413, 5414, 5415, 5416, 5417, 5418, 5419, 5420, 5421, 5422, 5423, 5424, 5425, 5426, 5427, 5428, 5429, 5430, 5431, 5432, 5433, 5434, 5435, 5436, 5437, 5438, 5439, 5440, 5441, 5442, 5443, 5444, 5445, 5446, 5447, 5448, 5449, 5450, 5451, 5452, 5453, 5454, 5455, 12, 1365, 2]
// Module 5333 (Platforms)
import Constants from "Constants" /* 1074 */;
import URLUtilsDefault from "URLUtils" /* 1365 */;
import UserApplicationIdentityConstants from "UserApplicationIdentityConstants" /* 1921 */;
import socialSDKMigration from "socialSDKMigration" /* 1922 */;
import _mod5334 from "module_5334" /* 5334 */;
import _mod5335 from "module_5335" /* 5335 */;
import _mod5336 from "module_5336" /* 5336 */;
import _mod5337 from "module_5337" /* 5337 */;
import _mod5338 from "module_5338" /* 5338 */;
import _mod5339 from "module_5339" /* 5339 */;
import _mod5340 from "module_5340" /* 5340 */;
import _mod5341 from "module_5341" /* 5341 */;
import _mod5342 from "module_5342" /* 5342 */;
import _mod5343 from "module_5343" /* 5343 */;
import _mod5344 from "module_5344" /* 5344 */;
import _mod5345 from "module_5345" /* 5345 */;
import _mod5346 from "module_5346" /* 5346 */;
import _mod5347 from "module_5347" /* 5347 */;
import _mod5348 from "module_5348" /* 5348 */;
import _mod5349 from "module_5349" /* 5349 */;
import _mod5350 from "module_5350" /* 5350 */;
import _mod5351 from "module_5351" /* 5351 */;
import _mod5352 from "module_5352" /* 5352 */;
import _mod5353 from "module_5353" /* 5353 */;
import _mod5354 from "module_5354" /* 5354 */;
import _mod5355 from "module_5355" /* 5355 */;
import _mod5356 from "module_5356" /* 5356 */;
import _mod5357 from "module_5357" /* 5357 */;
import _mod5358 from "module_5358" /* 5358 */;
import _mod5359 from "module_5359" /* 5359 */;
import _mod5360 from "module_5360" /* 5360 */;
import _mod5361 from "module_5361" /* 5361 */;
import _mod5362 from "module_5362" /* 5362 */;
import _mod5363 from "module_5363" /* 5363 */;
import _mod5364 from "module_5364" /* 5364 */;
import _mod5365 from "module_5365" /* 5365 */;
import _mod5366 from "module_5366" /* 5366 */;
import _mod5367 from "module_5367" /* 5367 */;
import _mod5368 from "module_5368" /* 5368 */;
import _mod5369 from "module_5369" /* 5369 */;
import _mod5370 from "module_5370" /* 5370 */;
import _mod5371 from "module_5371" /* 5371 */;
import _mod5372 from "module_5372" /* 5372 */;
import _mod5373 from "module_5373" /* 5373 */;
import _mod5374 from "module_5374" /* 5374 */;
import _mod5375 from "module_5375" /* 5375 */;
import _mod5376 from "module_5376" /* 5376 */;
import _mod5377 from "module_5377" /* 5377 */;
import _mod5378 from "module_5378" /* 5378 */;
import _mod5379 from "module_5379" /* 5379 */;
import _mod5380 from "module_5380" /* 5380 */;
import _mod5381 from "module_5381" /* 5381 */;
import _mod5382 from "module_5382" /* 5382 */;
import _mod5383 from "module_5383" /* 5383 */;
import _mod5384 from "module_5384" /* 5384 */;
import _mod5385 from "module_5385" /* 5385 */;
import _mod5386 from "module_5386" /* 5386 */;
import _mod5387 from "module_5387" /* 5387 */;
import _mod5388 from "module_5388" /* 5388 */;
import _mod5389 from "module_5389" /* 5389 */;
import _mod5390 from "module_5390" /* 5390 */;
import _mod5391 from "module_5391" /* 5391 */;
import _mod5392 from "module_5392" /* 5392 */;
import _mod5393 from "module_5393" /* 5393 */;
import _mod5394 from "module_5394" /* 5394 */;
import _mod5395 from "module_5395" /* 5395 */;
import _mod5396 from "module_5396" /* 5396 */;
import _mod5397 from "module_5397" /* 5397 */;
import _mod5398 from "module_5398" /* 5398 */;
import _mod5399 from "module_5399" /* 5399 */;
import _mod5400 from "module_5400" /* 5400 */;
import _mod5401 from "module_5401" /* 5401 */;
import _mod5402 from "module_5402" /* 5402 */;
import _mod5403 from "module_5403" /* 5403 */;
import _mod5404 from "module_5404" /* 5404 */;
import _mod5405 from "module_5405" /* 5405 */;
import _mod5406 from "module_5406" /* 5406 */;
import _mod5407 from "module_5407" /* 5407 */;
import _mod5408 from "module_5408" /* 5408 */;
import _mod5409 from "module_5409" /* 5409 */;
import _mod5410 from "module_5410" /* 5410 */;
import _mod5411 from "module_5411" /* 5411 */;
import _mod5412 from "module_5412" /* 5412 */;
import _mod5413 from "module_5413" /* 5413 */;
import _mod5414 from "module_5414" /* 5414 */;
import _mod5415 from "module_5415" /* 5415 */;
import _mod5416 from "module_5416" /* 5416 */;
import _mod5417 from "module_5417" /* 5417 */;
import _mod5418 from "module_5418" /* 5418 */;
import _mod5419 from "module_5419" /* 5419 */;
import _mod5420 from "module_5420" /* 5420 */;
import _mod5421 from "module_5421" /* 5421 */;
import _mod5422 from "module_5422" /* 5422 */;
import _mod5423 from "module_5423" /* 5423 */;
import _mod5424 from "module_5424" /* 5424 */;
import _mod5425 from "module_5425" /* 5425 */;
import _mod5426 from "module_5426" /* 5426 */;
import _mod5427 from "module_5427" /* 5427 */;
import _mod5428 from "module_5428" /* 5428 */;
import _mod5429 from "module_5429" /* 5429 */;
import _mod5430 from "module_5430" /* 5430 */;
import _mod5431 from "module_5431" /* 5431 */;
import _mod5432 from "module_5432" /* 5432 */;
import _mod5433 from "module_5433" /* 5433 */;
import _mod5434 from "module_5434" /* 5434 */;
import _mod5435 from "module_5435" /* 5435 */;
import _mod5436 from "module_5436" /* 5436 */;
import _mod5437 from "module_5437" /* 5437 */;
import _mod5438 from "module_5438" /* 5438 */;
import _mod5439 from "module_5439" /* 5439 */;
import _mod5440 from "module_5440" /* 5440 */;
import _mod5441 from "module_5441" /* 5441 */;
import _mod5442 from "module_5442" /* 5442 */;
import _mod5443 from "module_5443" /* 5443 */;
import _mod5444 from "module_5444" /* 5444 */;
import _mod5445 from "module_5445" /* 5445 */;
import _mod5446 from "module_5446" /* 5446 */;
import _mod5447 from "module_5447" /* 5447 */;
import _mod5448 from "module_5448" /* 5448 */;
import _mod5449 from "module_5449" /* 5449 */;
import _mod5450 from "module_5450" /* 5450 */;
import _mod5451 from "module_5451" /* 5451 */;
import _mod5452 from "module_5452" /* 5452 */;
import _mod5453 from "module_5453" /* 5453 */;
import _mod5454 from "module_5454" /* 5454 */;
import _mod5455 from "module_5455" /* 5455 */;
import shims_mod from "shims" /* 575 */;
import apply from "module_12" /* 12 */;
import size from "module_2" /* 2 */;
const PlatformTypes = Constants.PlatformTypes;
const ApplicationIdentityAppIds = UserApplicationIdentityConstants.ApplicationIdentityAppIds;
let obj = { type: PlatformTypes.TWITCH, name: "Twitch", color: null, icon: null, enabled: true, getPlatformUserUrl: null, domains: null };
let shims = shims_mod;
obj.color = shims.unsafe_getRawColor("PLATFORM_TWITCH");
obj.icon = { lightPNG: _mod5334, darkPNG: _mod5334, whitePNG: _mod5335, lightSVG: _mod5336, darkSVG: _mod5336, whiteSVG: _mod5337 };
obj.getPlatformUserUrl = function getPlatformUserUrl(name) {
return "https://www.twitch.tv/" + encodeURIComponent(name.name);
};
obj.domains = ["twitch.tv", "twitch.com"];
const items = [obj, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ];
const obj3 = { type: PlatformTypes.YOUTUBE, name: "YouTube", color: null, icon: null, enabled: true, getPlatformUserUrl: null, domains: null };
let shims = shims_mod;
obj3.color = shims.unsafe_getRawColor("PLATFORM_YOUTUBE");
const obj2 = { lightPNG: _mod5334, darkPNG: _mod5334, whitePNG: _mod5335, lightSVG: _mod5336, darkSVG: _mod5336, whiteSVG: _mod5337 };
obj3.icon = { lightPNG: _mod5338, darkPNG: _mod5338, whitePNG: _mod5339, lightSVG: _mod5340, darkSVG: _mod5340, whiteSVG: _mod5341 };
obj3.getPlatformUserUrl = function getPlatformUserUrl(id) {
return "https://www.youtube.com/channel/" + encodeURIComponent(id.id);
};
obj3.domains = ["youtube.com", "youtu.be"];
items[1] = obj3;
const obj5 = { type: PlatformTypes.BATTLENET, name: "Battle.net", color: null, icon: null, enabled: true, migrationData: null };
let shims = shims_mod;
obj5.color = shims.unsafe_getRawColor("PLATFORM_BATTLENET");
const obj4 = { lightPNG: _mod5338, darkPNG: _mod5338, whitePNG: _mod5339, lightSVG: _mod5340, darkSVG: _mod5340, whiteSVG: _mod5341 };
obj5.icon = { lightPNG: _mod5342, darkPNG: _mod5342, whitePNG: _mod5343, lightSVG: _mod5344, darkSVG: _mod5344, whiteSVG: _mod5345, blackSVG: _mod5344 };
const obj7 = {
replacedBy: ApplicationIdentityAppIds.BATTLENET,
getMigrationExperimentEnabled(location) {
const battlenetSocialSDKMigrationExperiment = socialSDKMigration.battlenetSocialSDKMigrationExperiment;
return battlenetSocialSDKMigrationExperiment.getConfig({ location }).enabled;
},
helpCenterLink: "https://discord.com/blog/link-world-of-warcraft-with-discord",
deprecationDate: null
};
const obj6 = { lightPNG: _mod5342, darkPNG: _mod5342, whitePNG: _mod5343, lightSVG: _mod5344, darkSVG: _mod5344, whiteSVG: _mod5345, blackSVG: _mod5344 };
obj7.deprecationDate = new Date("2026-09-22Z-07:00");
obj5.migrationData = obj7;
items[2] = obj5;
const obj8 = { type: PlatformTypes.BLUESKY, name: "Bluesky", icon: null, enabled: true, getPlatformUserUrl: null, isFederated: true, hasMetadata: true };
const date = new Date("2026-09-22Z-07:00");
obj8.icon = { lightPNG: _mod5346, darkPNG: _mod5346, whitePNG: _mod5347, lightSVG: _mod5348, darkSVG: _mod5348, whiteSVG: _mod5349 };
obj8.getPlatformUserUrl = function getPlatformUserUrl(id) {
return "https://bsky.app/profile/" + encodeURIComponent(id.id).replaceAll("%3A", ":");
};
items[3] = obj8;
const obj10 = { type: PlatformTypes.BUNGIE, name: "Bungie.net", color: null, icon: null, enabled: true };
let shims = shims_mod;
obj10.color = shims.unsafe_getRawColor("PLATFORM_BUNGIE");
const obj9 = { lightPNG: _mod5346, darkPNG: _mod5346, whitePNG: _mod5347, lightSVG: _mod5348, darkSVG: _mod5348, whiteSVG: _mod5349 };
obj10.icon = { lightPNG: _mod5350, darkPNG: _mod5351, whitePNG: _mod5352, lightSVG: _mod5353, darkSVG: _mod5354, whiteSVG: _mod5355 };
items[4] = obj10;
const obj12 = { type: PlatformTypes.SKYPE, name: "Skype", color: null, icon: null, enabled: false, getPlatformUserUrl: null };
let shims = shims_mod;
obj12.color = shims.unsafe_getRawColor("PLATFORM_SKYPE");
const obj11 = { lightPNG: _mod5350, darkPNG: _mod5351, whitePNG: _mod5352, lightSVG: _mod5353, darkSVG: _mod5354, whiteSVG: _mod5355 };
obj12.icon = { lightPNG: _mod5356, darkPNG: _mod5356, whitePNG: _mod5357, lightSVG: _mod5358, darkSVG: _mod5358, whiteSVG: _mod5359 };
obj12.getPlatformUserUrl = function getPlatformUserUrl(id) {
return "skype:" + encodeURIComponent(id.id) + "?userinfo";
};
items[5] = obj12;
const obj14 = { type: PlatformTypes.LEAGUE_OF_LEGENDS, name: "League of Legends", color: null, icon: null, enabled: true, migrationData: null };
let shims = shims_mod;
obj14.color = shims.unsafe_getRawColor("PLATFORM_LOL");
const obj13 = { lightPNG: _mod5356, darkPNG: _mod5356, whitePNG: _mod5357, lightSVG: _mod5358, darkSVG: _mod5358, whiteSVG: _mod5359 };
obj14.icon = { lightPNG: _mod5360, darkPNG: _mod5360, whitePNG: _mod5361, lightSVG: _mod5362, darkSVG: _mod5362, whiteSVG: _mod5363 };
const obj16 = {
replacedBy: ApplicationIdentityAppIds.RIOT_GAMES,
getMigrationExperimentEnabled() {
return true;
},
helpCenterLink: "https://www.riotgames.com/en/riot-games-discord-account-linking",
deprecationDate: null
};
const obj15 = { lightPNG: _mod5360, darkPNG: _mod5360, whitePNG: _mod5361, lightSVG: _mod5362, darkSVG: _mod5362, whiteSVG: _mod5363 };
obj16.deprecationDate = new Date("2026-07-10Z-07:00");
obj14.migrationData = obj16;
items[6] = obj14;
const obj17 = { type: PlatformTypes.STEAM, name: "Steam", color: null, icon: null, enabled: true, getPlatformUserUrl: null, hasMetadata: true };
let shims = shims_mod;
obj17.color = shims.unsafe_getRawColor("PLATFORM_STEAM");
const date1 = new Date("2026-07-10Z-07:00");
obj17.icon = { lightPNG: _mod5364, darkPNG: _mod5365, whitePNG: _mod5365, lightSVG: _mod5366, darkSVG: _mod5367, whiteSVG: _mod5367 };
obj17.getPlatformUserUrl = function getPlatformUserUrl(id) {
return "https://steamcommunity.com/profiles/" + encodeURIComponent(id.id);
};
items[7] = obj17;
const obj19 = { type: PlatformTypes.REDDIT, name: "Reddit", color: null, icon: null, enabled: true, domains: null, getPlatformUserUrl: null, hasMetadata: true };
let shims = shims_mod;
obj19.color = shims.unsafe_getRawColor("PLATFORM_REDDIT");
const obj18 = { lightPNG: _mod5364, darkPNG: _mod5365, whitePNG: _mod5365, lightSVG: _mod5366, darkSVG: _mod5367, whiteSVG: _mod5367 };
obj19.icon = { lightPNG: _mod5368, darkPNG: _mod5368, whitePNG: _mod5369, lightSVG: _mod5370, darkSVG: _mod5370, whiteSVG: _mod5371 };
obj19.domains = ["reddit.com"];
obj19.getPlatformUserUrl = function getPlatformUserUrl(name) {
return "https://www.reddit.com/u/" + encodeURIComponent(name.name);
};
items[8] = obj19;
const obj21 = { type: PlatformTypes.FACEBOOK, name: "Facebook", color: null, icon: null, domains: null, enabled: true };
let shims = shims_mod;
obj21.color = shims.unsafe_getRawColor("PLATFORM_FACEBOOK");
const obj20 = { lightPNG: _mod5368, darkPNG: _mod5368, whitePNG: _mod5369, lightSVG: _mod5370, darkSVG: _mod5370, whiteSVG: _mod5371 };
obj21.icon = { lightPNG: _mod5372, darkPNG: _mod5372, whitePNG: _mod5373, lightSVG: _mod5374, darkSVG: _mod5374, whiteSVG: _mod5375 };
obj21.domains = ["facebook.com"];
items[9] = obj21;
const obj23 = { type: PlatformTypes.TWITTER_LEGACY, name: "Twitter", color: null, icon: null, enabled: false, getPlatformUserUrl: null, domains: null, hasMetadata: true };
let shims = shims_mod;
obj23.color = shims.unsafe_getRawColor("PLATFORM_TWITTER");
const obj22 = { lightPNG: _mod5372, darkPNG: _mod5372, whitePNG: _mod5373, lightSVG: _mod5374, darkSVG: _mod5374, whiteSVG: _mod5375 };
obj23.icon = { lightPNG: _mod5376, darkPNG: _mod5376, whitePNG: _mod5377, lightSVG: _mod5378, darkSVG: _mod5378, whiteSVG: _mod5379 };
obj23.getPlatformUserUrl = function getPlatformUserUrl(name) {
return "https://twitter.com/" + encodeURIComponent(name.name);
};
obj23.domains = ["twitter.com"];
items[10] = obj23;
const obj25 = { type: PlatformTypes.TWITTER, name: "X", color: null, icon: null, enabled: true, getPlatformUserUrl: null, domains: null, hasMetadata: true };
let shims = shims_mod;
obj25.color = shims.unsafe_getRawColor("PLATFORM_TWITTER");
const obj24 = { lightPNG: _mod5376, darkPNG: _mod5376, whitePNG: _mod5377, lightSVG: _mod5378, darkSVG: _mod5378, whiteSVG: _mod5379 };
obj25.icon = { lightPNG: _mod5380, darkPNG: _mod5381, whitePNG: _mod5382, lightSVG: _mod5383, darkSVG: _mod5384, whiteSVG: _mod5385 };
obj25.getPlatformUserUrl = function getPlatformUserUrl(name) {
return "https://x.com/" + encodeURIComponent(name.name);
};
obj25.domains = ["x.com"];
items[11] = obj25;
const obj27 = { type: PlatformTypes.SPOTIFY, name: "Spotify", color: null, icon: null, enabled: true, getPlatformUserUrl: null };
let shims = shims_mod;
obj27.color = shims.unsafe_getRawColor("PLATFORM_SPOTIFY");
const obj26 = { lightPNG: _mod5380, darkPNG: _mod5381, whitePNG: _mod5382, lightSVG: _mod5383, darkSVG: _mod5384, whiteSVG: _mod5385 };
obj27.icon = { lightPNG: _mod5386, darkPNG: _mod5386, whitePNG: _mod5387, lightSVG: _mod5388, darkSVG: _mod5388, whiteSVG: _mod5389 };
obj27.getPlatformUserUrl = function getPlatformUserUrl(id) {
return "https://open.spotify.com/user/" + encodeURIComponent(id.id);
};
items[12] = obj27;
const obj29 = { type: PlatformTypes.XBOX, name: "Xbox", color: null, icon: null, enabled: true };
let shims = shims_mod;
obj29.color = shims.unsafe_getRawColor("PLATFORM_XBOX");
const obj28 = { lightPNG: _mod5386, darkPNG: _mod5386, whitePNG: _mod5387, lightSVG: _mod5388, darkSVG: _mod5388, whiteSVG: _mod5389 };
obj29.icon = { lightPNG: _mod5390, darkPNG: _mod5391, whitePNG: _mod5391, lightSVG: _mod5392, darkSVG: _mod5393, whiteSVG: _mod5393, customPNG: _mod5394 };
items[13] = obj29;
const obj31 = { type: PlatformTypes.SAMSUNG, name: "Samsung Galaxy", color: null, icon: null, enabled: false };
let shims = shims_mod;
obj31.color = shims.unsafe_getRawColor("PLATFORM_SAMSUNG");
const obj30 = { lightPNG: _mod5390, darkPNG: _mod5391, whitePNG: _mod5391, lightSVG: _mod5392, darkSVG: _mod5393, whiteSVG: _mod5393, customPNG: _mod5394 };
obj31.icon = { lightPNG: _mod5395, darkPNG: _mod5395, whitePNG: _mod5396, lightSVG: _mod5397, darkSVG: _mod5397, whiteSVG: _mod5398 };
items[14] = obj31;
const obj33 = { type: PlatformTypes.GITHUB, name: "GitHub", color: null, icon: null, enabled: true, getPlatformUserUrl: null, domains: null };
let shims = shims_mod;
obj33.color = shims.unsafe_getRawColor("PLATFORM_GITHUB");
const obj32 = { lightPNG: _mod5395, darkPNG: _mod5395, whitePNG: _mod5396, lightSVG: _mod5397, darkSVG: _mod5397, whiteSVG: _mod5398 };
obj33.icon = { lightPNG: _mod5399, darkPNG: _mod5400, whitePNG: _mod5400, lightSVG: _mod5401, darkSVG: _mod5402, whiteSVG: _mod5402 };
obj33.getPlatformUserUrl = function getPlatformUserUrl(name) {
return "https://github.com/" + encodeURIComponent(name.name);
};
obj33.domains = ["github.com"];
items[15] = obj33;
const obj35 = { type: PlatformTypes.PLAYSTATION, name: "PlayStation Network", color: null, icon: null, enabled: true };
let shims = shims_mod;
obj35.color = shims.unsafe_getRawColor("PLATFORM_PLAYSTATION");
const obj34 = { lightPNG: _mod5399, darkPNG: _mod5400, whitePNG: _mod5400, lightSVG: _mod5401, darkSVG: _mod5402, whiteSVG: _mod5402 };
obj35.icon = { lightPNG: _mod5403, darkPNG: _mod5404, whitePNG: _mod5404, lightSVG: _mod5405, darkSVG: _mod5406, whiteSVG: _mod5406 };
items[16] = obj35;
const obj37 = { type: PlatformTypes.PLAYSTATION_STAGING, name: "PlayStation Network (Staging)", color: null, icon: null, enabled: false };
let shims = shims_mod;
obj37.color = shims.unsafe_getRawColor("PLATFORM_PLAYSTATION");
const obj36 = { lightPNG: _mod5403, darkPNG: _mod5404, whitePNG: _mod5404, lightSVG: _mod5405, darkSVG: _mod5406, whiteSVG: _mod5406 };
obj37.icon = { lightPNG: _mod5404, darkPNG: _mod5403, whitePNG: _mod5403, lightSVG: _mod5406, darkSVG: _mod5405, whiteSVG: _mod5405 };
items[17] = obj37;
const obj39 = { type: PlatformTypes.EPIC_GAMES, name: "Epic Games", icon: null, enabled: true };
const obj38 = { lightPNG: _mod5404, darkPNG: _mod5403, whitePNG: _mod5403, lightSVG: _mod5406, darkSVG: _mod5405, whiteSVG: _mod5405 };
obj39.icon = { lightPNG: _mod5407, darkPNG: _mod5408, whitePNG: _mod5408, lightSVG: _mod5409, darkSVG: _mod5410, whiteSVG: _mod5410 };
items[18] = obj39;
const obj41 = { type: PlatformTypes.RIOT_GAMES, name: "Riot Games", icon: null, enabled: true, migrationData: null };
const obj40 = { lightPNG: _mod5407, darkPNG: _mod5408, whitePNG: _mod5408, lightSVG: _mod5409, darkSVG: _mod5410, whiteSVG: _mod5410 };
obj41.icon = { lightPNG: _mod5411, darkPNG: _mod5411, whitePNG: _mod5412, lightSVG: _mod5413, darkSVG: _mod5413, whiteSVG: _mod5414, blackSVG: _mod5415 };
const obj43 = {
replacedBy: ApplicationIdentityAppIds.RIOT_GAMES,
getMigrationExperimentEnabled() {
return true;
},
helpCenterLink: "https://www.riotgames.com/en/riot-games-discord-account-linking",
deprecationDate: null
};
const obj42 = { lightPNG: _mod5411, darkPNG: _mod5411, whitePNG: _mod5412, lightSVG: _mod5413, darkSVG: _mod5413, whiteSVG: _mod5414, blackSVG: _mod5415 };
obj43.deprecationDate = new Date("2026-07-10Z-07:00");
obj41.migrationData = obj43;
items[19] = obj41;
const obj44 = { type: PlatformTypes.ROBLOX, name: "Roblox", icon: null, enabled: true, getPlatformUserUrl: null };
const date2 = new Date("2026-07-10Z-07:00");
obj44.icon = { lightPNG: _mod5416, darkPNG: _mod5417, whitePNG: _mod5418, lightSVG: _mod5419, darkSVG: _mod5420, whiteSVG: _mod5421 };
obj44.getPlatformUserUrl = function getPlatformUserUrl(id) {
return "https://roblox.com/users/" + encodeURIComponent(id.id) + "/profile";
};
items[20] = obj44;
const obj46 = { type: PlatformTypes.PAYPAL, name: "PayPal", icon: null, enabled: true, hasMetadata: true };
const obj45 = { lightPNG: _mod5416, darkPNG: _mod5417, whitePNG: _mod5418, lightSVG: _mod5419, darkSVG: _mod5420, whiteSVG: _mod5421 };
obj46.icon = { lightPNG: _mod5422, darkPNG: _mod5422, whitePNG: _mod5423, lightSVG: _mod5424, darkSVG: _mod5424, whiteSVG: _mod5425 };
items[21] = obj46;
const obj48 = { type: PlatformTypes.EBAY, name: "eBay", icon: null, enabled: true, hasMetadata: true, getPlatformUserUrl: null };
const obj47 = { lightPNG: _mod5422, darkPNG: _mod5422, whitePNG: _mod5423, lightSVG: _mod5424, darkSVG: _mod5424, whiteSVG: _mod5425 };
obj48.icon = { lightPNG: _mod5426, darkPNG: _mod5426, whitePNG: _mod5427, lightSVG: _mod5428, darkSVG: _mod5428, whiteSVG: _mod5429 };
obj48.getPlatformUserUrl = function getPlatformUserUrl(name) {
return "https://www.ebay.com/usr/" + encodeURIComponent(name.name);
};
items[22] = obj48;
const obj50 = { type: PlatformTypes.TIKTOK, name: "TikTok", icon: null, enabled: false, hasMetadata: true, domains: null, getPlatformUserUrl: null };
const obj49 = { lightPNG: _mod5426, darkPNG: _mod5426, whitePNG: _mod5427, lightSVG: _mod5428, darkSVG: _mod5428, whiteSVG: _mod5429 };
obj50.icon = { lightPNG: _mod5430, darkPNG: _mod5431, whitePNG: _mod5431, lightSVG: _mod5432, darkSVG: _mod5433, whiteSVG: _mod5433 };
obj50.domains = ["tiktok.com"];
obj50.getPlatformUserUrl = function getPlatformUserUrl(name) {
return "https://www.tiktok.com/@" + encodeURIComponent(name.name);
};
items[23] = obj50;
const obj52 = { type: PlatformTypes.INSTAGRAM, name: "Instagram", icon: null, enabled: false, domains: null, getPlatformUserUrl: null };
const obj51 = { lightPNG: _mod5430, darkPNG: _mod5431, whitePNG: _mod5431, lightSVG: _mod5432, darkSVG: _mod5433, whiteSVG: _mod5433 };
obj52.icon = { lightPNG: _mod5434, darkPNG: _mod5434, whitePNG: _mod5435, lightSVG: _mod5436, darkSVG: _mod5436, whiteSVG: _mod5437 };
obj52.domains = ["instagram.com"];
obj52.getPlatformUserUrl = function getPlatformUserUrl(name) {
return "https://www.instagram.com/" + encodeURIComponent(name.name);
};
items[24] = obj52;
const obj54 = { type: PlatformTypes.MASTODON, name: "Mastodon", icon: null, enabled: false, getPlatformUserUrl: null, isFederated: true, hasMetadata: true };
const obj53 = { lightPNG: _mod5434, darkPNG: _mod5434, whitePNG: _mod5435, lightSVG: _mod5436, darkSVG: _mod5436, whiteSVG: _mod5437 };
obj54.icon = { lightPNG: _mod5438, darkPNG: _mod5438, whitePNG: _mod5439, lightSVG: _mod5440, darkSVG: _mod5440, whiteSVG: _mod5441 };
obj54.getPlatformUserUrl = function getPlatformUserUrl(id) {
return id.id;
};
items[25] = obj54;
const obj56 = { type: PlatformTypes.CRUNCHYROLL, name: "Crunchyroll", color: null, icon: null, enabled: true };
let shims = shims_mod;
obj56.color = shims.unsafe_getRawColor("PLATFORM_CRUNCHYROLL");
const obj55 = { lightPNG: _mod5438, darkPNG: _mod5438, whitePNG: _mod5439, lightSVG: _mod5440, darkSVG: _mod5440, whiteSVG: _mod5441 };
obj56.icon = { lightPNG: _mod5442, darkPNG: _mod5442, whitePNG: _mod5442, lightSVG: _mod5443, darkSVG: _mod5443, whiteSVG: _mod5444 };
items[26] = obj56;
const obj58 = { type: PlatformTypes.DOMAIN, name: "Domain", icon: null, getPlatformUserUrl: null, enabled: true };
const obj57 = { lightPNG: _mod5442, darkPNG: _mod5442, whitePNG: _mod5442, lightSVG: _mod5443, darkSVG: _mod5443, whiteSVG: _mod5444 };
obj58.icon = { lightPNG: _mod5445, darkPNG: _mod5446, whitePNG: _mod5446, lightSVG: _mod5447, darkSVG: _mod5448, whiteSVG: _mod5448 };
obj58.getPlatformUserUrl = function getPlatformUserUrl(id) {
return "https://" + id.id + "/";
};
items[27] = obj58;
const obj60 = { type: PlatformTypes.AMAZON_MUSIC, name: "Amazon Music", icon: null, enabled: true };
const obj59 = { lightPNG: _mod5445, darkPNG: _mod5446, whitePNG: _mod5446, lightSVG: _mod5447, darkSVG: _mod5448, whiteSVG: _mod5448 };
obj60.icon = { lightPNG: _mod5449, darkPNG: _mod5449, whitePNG: _mod5449, lightSVG: _mod5450, darkSVG: _mod5450, whiteSVG: _mod5450 };
items[28] = obj60;
const obj62 = { type: PlatformTypes.META_QUEST_OR_HORIZON, name: "Meta Quest", icon: null, enabled: false };
const obj61 = { lightPNG: _mod5449, darkPNG: _mod5449, whitePNG: _mod5449, lightSVG: _mod5450, darkSVG: _mod5450, whiteSVG: _mod5450 };
obj62.icon = { lightPNG: _mod5451, darkPNG: _mod5452, whitePNG: _mod5453, lightSVG: _mod5454, darkSVG: _mod5455, whiteSVG: _mod5455 };
items[29] = obj62;
let closure_4 = apply.keyBy(items, "type");
let closure_5 = {};
let item = items.forEach((domains) => {
closure_0 = domains;
domains = domains.domains;
if (domains != null) {
const item = domains.forEach((item) => {
closure_5[item] = closure_0;
});
}
});
const result = size.fileFinishedImporting("lib/Platforms.tsx");
export default {
get(arg0) {
let tmp = closure_4[arg0];
if (tmp == null) {
tmp = null;
}
return tmp;
},
getByUrl(url) {
const toURLSafeResult = URLUtilsDefault.toURLSafe(url);
if (null != toURLSafeResult) {
const hostname = toURLSafeResult.hostname;
let substr = hostname;
if (hostname.startsWith("www.")) {
substr = hostname.slice(4);
}
return closure_5[substr];
}
},
isSupported(key10009) {
hasOwnProperty = Object.prototype.hasOwnProperty;
const call = hasOwnProperty.call;
return typeof call === "unknown" ? hasOwnProperty(key10009) : call(closure_4, key10009);
},
map(arg0) {
return items.map(arg0);
},
filter(arg0) {
const found = items.filter(arg0);
const sorted = found.sort((name, name2) => {
name = name.name;
return name.localeCompare(name2.name);
});
return found;
},
find(_messages) {
return items.find(_messages);
}
};