Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4975.js (118.4 MB)
436 lines
26 KiB
TypeScript
436 lines
26 KiB
TypeScript
// Module ID: 5534
|
|
// Function ID: 5535
|
|
// Name: Platforms
|
|
// Dependencies: [1078, 2009, 579, 5535, 5536, 5537, 5538, 5539, 5540, 5541, 5542, 5543, 5544, 5545, 5546, 2010, 5547, 5548, 5549, 5550, 5551, 5552, 5553, 5554, 5555, 5556, 5557, 5558, 5559, 5560, 5561, 5562, 5563, 5564, 5565, 5566, 5567, 5568, 5569, 5570, 5571, 5572, 5573, 5574, 5575, 5576, 5577, 5578, 5579, 5580, 5581, 5582, 5583, 5584, 5585, 5586, 5587, 5588, 5589, 5590, 5591, 5592, 5593, 5594, 5595, 5596, 5597, 5598, 5599, 5600, 5601, 5602, 5603, 5604, 5605, 5606, 5607, 5608, 5609, 5610, 5611, 5612, 5613, 5614, 5615, 5616, 5617, 5618, 5619, 5620, 5621, 5622, 5623, 5624, 5625, 5626, 5627, 5628, 5629, 5630, 5631, 5632, 5633, 5634, 5635, 5636, 5637, 5638, 5639, 5640, 5641, 5642, 5643, 5644, 5645, 5646, 5647, 5648, 5649, 5650, 5651, 5652, 5653, 5654, 5655, 5656, 12, 1370, 2]
|
|
|
|
// Module 5534 (Platforms)
|
|
import Constants from "Constants" /* 1078 */;
|
|
import URLUtilsDefault from "URLUtils" /* 1370 */;
|
|
import UserApplicationIdentityConstants from "UserApplicationIdentityConstants" /* 2009 */;
|
|
import socialSDKMigration from "socialSDKMigration" /* 2010 */;
|
|
import _mod5535 from "module_5535" /* 5535 */;
|
|
import _mod5536 from "module_5536" /* 5536 */;
|
|
import _mod5537 from "module_5537" /* 5537 */;
|
|
import _mod5538 from "module_5538" /* 5538 */;
|
|
import _mod5539 from "module_5539" /* 5539 */;
|
|
import _mod5540 from "module_5540" /* 5540 */;
|
|
import _mod5541 from "module_5541" /* 5541 */;
|
|
import _mod5542 from "module_5542" /* 5542 */;
|
|
import _mod5543 from "module_5543" /* 5543 */;
|
|
import _mod5544 from "module_5544" /* 5544 */;
|
|
import _mod5545 from "module_5545" /* 5545 */;
|
|
import _mod5546 from "module_5546" /* 5546 */;
|
|
import _mod5547 from "module_5547" /* 5547 */;
|
|
import _mod5548 from "module_5548" /* 5548 */;
|
|
import _mod5549 from "module_5549" /* 5549 */;
|
|
import _mod5550 from "module_5550" /* 5550 */;
|
|
import _mod5551 from "module_5551" /* 5551 */;
|
|
import _mod5552 from "module_5552" /* 5552 */;
|
|
import _mod5553 from "module_5553" /* 5553 */;
|
|
import _mod5554 from "module_5554" /* 5554 */;
|
|
import _mod5555 from "module_5555" /* 5555 */;
|
|
import _mod5556 from "module_5556" /* 5556 */;
|
|
import _mod5557 from "module_5557" /* 5557 */;
|
|
import _mod5558 from "module_5558" /* 5558 */;
|
|
import _mod5559 from "module_5559" /* 5559 */;
|
|
import _mod5560 from "module_5560" /* 5560 */;
|
|
import _mod5561 from "module_5561" /* 5561 */;
|
|
import _mod5562 from "module_5562" /* 5562 */;
|
|
import _mod5563 from "module_5563" /* 5563 */;
|
|
import _mod5564 from "module_5564" /* 5564 */;
|
|
import _mod5565 from "module_5565" /* 5565 */;
|
|
import _mod5566 from "module_5566" /* 5566 */;
|
|
import _mod5567 from "module_5567" /* 5567 */;
|
|
import _mod5568 from "module_5568" /* 5568 */;
|
|
import _mod5569 from "module_5569" /* 5569 */;
|
|
import _mod5570 from "module_5570" /* 5570 */;
|
|
import _mod5571 from "module_5571" /* 5571 */;
|
|
import _mod5572 from "module_5572" /* 5572 */;
|
|
import _mod5573 from "module_5573" /* 5573 */;
|
|
import _mod5574 from "module_5574" /* 5574 */;
|
|
import _mod5575 from "module_5575" /* 5575 */;
|
|
import _mod5576 from "module_5576" /* 5576 */;
|
|
import _mod5577 from "module_5577" /* 5577 */;
|
|
import _mod5578 from "module_5578" /* 5578 */;
|
|
import _mod5579 from "module_5579" /* 5579 */;
|
|
import _mod5580 from "module_5580" /* 5580 */;
|
|
import _mod5581 from "module_5581" /* 5581 */;
|
|
import _mod5582 from "module_5582" /* 5582 */;
|
|
import _mod5583 from "module_5583" /* 5583 */;
|
|
import _mod5584 from "module_5584" /* 5584 */;
|
|
import _mod5585 from "module_5585" /* 5585 */;
|
|
import _mod5586 from "module_5586" /* 5586 */;
|
|
import _mod5587 from "module_5587" /* 5587 */;
|
|
import _mod5588 from "module_5588" /* 5588 */;
|
|
import _mod5589 from "module_5589" /* 5589 */;
|
|
import _mod5590 from "module_5590" /* 5590 */;
|
|
import _mod5591 from "module_5591" /* 5591 */;
|
|
import _mod5592 from "module_5592" /* 5592 */;
|
|
import _mod5593 from "module_5593" /* 5593 */;
|
|
import _mod5594 from "module_5594" /* 5594 */;
|
|
import _mod5595 from "module_5595" /* 5595 */;
|
|
import _mod5596 from "module_5596" /* 5596 */;
|
|
import _mod5597 from "module_5597" /* 5597 */;
|
|
import _mod5598 from "module_5598" /* 5598 */;
|
|
import _mod5599 from "module_5599" /* 5599 */;
|
|
import _mod5600 from "module_5600" /* 5600 */;
|
|
import _mod5601 from "module_5601" /* 5601 */;
|
|
import _mod5602 from "module_5602" /* 5602 */;
|
|
import _mod5603 from "module_5603" /* 5603 */;
|
|
import _mod5604 from "module_5604" /* 5604 */;
|
|
import _mod5605 from "module_5605" /* 5605 */;
|
|
import _mod5606 from "module_5606" /* 5606 */;
|
|
import _mod5607 from "module_5607" /* 5607 */;
|
|
import _mod5608 from "module_5608" /* 5608 */;
|
|
import _mod5609 from "module_5609" /* 5609 */;
|
|
import _mod5610 from "module_5610" /* 5610 */;
|
|
import _mod5611 from "module_5611" /* 5611 */;
|
|
import _mod5612 from "module_5612" /* 5612 */;
|
|
import _mod5613 from "module_5613" /* 5613 */;
|
|
import _mod5614 from "module_5614" /* 5614 */;
|
|
import _mod5615 from "module_5615" /* 5615 */;
|
|
import _mod5616 from "module_5616" /* 5616 */;
|
|
import _mod5617 from "module_5617" /* 5617 */;
|
|
import _mod5618 from "module_5618" /* 5618 */;
|
|
import _mod5619 from "module_5619" /* 5619 */;
|
|
import _mod5620 from "module_5620" /* 5620 */;
|
|
import _mod5621 from "module_5621" /* 5621 */;
|
|
import _mod5622 from "module_5622" /* 5622 */;
|
|
import _mod5623 from "module_5623" /* 5623 */;
|
|
import _mod5624 from "module_5624" /* 5624 */;
|
|
import _mod5625 from "module_5625" /* 5625 */;
|
|
import _mod5626 from "module_5626" /* 5626 */;
|
|
import _mod5627 from "module_5627" /* 5627 */;
|
|
import _mod5628 from "module_5628" /* 5628 */;
|
|
import _mod5629 from "module_5629" /* 5629 */;
|
|
import _mod5630 from "module_5630" /* 5630 */;
|
|
import _mod5631 from "module_5631" /* 5631 */;
|
|
import _mod5632 from "module_5632" /* 5632 */;
|
|
import _mod5633 from "module_5633" /* 5633 */;
|
|
import _mod5634 from "module_5634" /* 5634 */;
|
|
import _mod5635 from "module_5635" /* 5635 */;
|
|
import _mod5636 from "module_5636" /* 5636 */;
|
|
import _mod5637 from "module_5637" /* 5637 */;
|
|
import _mod5638 from "module_5638" /* 5638 */;
|
|
import _mod5639 from "module_5639" /* 5639 */;
|
|
import _mod5640 from "module_5640" /* 5640 */;
|
|
import _mod5641 from "module_5641" /* 5641 */;
|
|
import _mod5642 from "module_5642" /* 5642 */;
|
|
import _mod5643 from "module_5643" /* 5643 */;
|
|
import _mod5644 from "module_5644" /* 5644 */;
|
|
import _mod5645 from "module_5645" /* 5645 */;
|
|
import _mod5646 from "module_5646" /* 5646 */;
|
|
import _mod5647 from "module_5647" /* 5647 */;
|
|
import _mod5648 from "module_5648" /* 5648 */;
|
|
import _mod5649 from "module_5649" /* 5649 */;
|
|
import _mod5650 from "module_5650" /* 5650 */;
|
|
import _mod5651 from "module_5651" /* 5651 */;
|
|
import _mod5652 from "module_5652" /* 5652 */;
|
|
import _mod5653 from "module_5653" /* 5653 */;
|
|
import _mod5654 from "module_5654" /* 5654 */;
|
|
import _mod5655 from "module_5655" /* 5655 */;
|
|
import _mod5656 from "module_5656" /* 5656 */;
|
|
import shims_mod from "shims" /* 579 */;
|
|
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: _mod5535, darkPNG: _mod5535, whitePNG: _mod5536, lightSVG: _mod5537, darkSVG: _mod5537, whiteSVG: _mod5538 };
|
|
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: _mod5535, darkPNG: _mod5535, whitePNG: _mod5536, lightSVG: _mod5537, darkSVG: _mod5537, whiteSVG: _mod5538 };
|
|
obj3.icon = { lightPNG: _mod5539, darkPNG: _mod5539, whitePNG: _mod5540, lightSVG: _mod5541, darkSVG: _mod5541, whiteSVG: _mod5542 };
|
|
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: _mod5539, darkPNG: _mod5539, whitePNG: _mod5540, lightSVG: _mod5541, darkSVG: _mod5541, whiteSVG: _mod5542 };
|
|
obj5.icon = { lightPNG: _mod5543, darkPNG: _mod5543, whitePNG: _mod5544, lightSVG: _mod5545, darkSVG: _mod5545, whiteSVG: _mod5546, blackSVG: _mod5545 };
|
|
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: _mod5543, darkPNG: _mod5543, whitePNG: _mod5544, lightSVG: _mod5545, darkSVG: _mod5545, whiteSVG: _mod5546, blackSVG: _mod5545 };
|
|
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: _mod5547, darkPNG: _mod5547, whitePNG: _mod5548, lightSVG: _mod5549, darkSVG: _mod5549, whiteSVG: _mod5550 };
|
|
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: _mod5547, darkPNG: _mod5547, whitePNG: _mod5548, lightSVG: _mod5549, darkSVG: _mod5549, whiteSVG: _mod5550 };
|
|
obj10.icon = { lightPNG: _mod5551, darkPNG: _mod5552, whitePNG: _mod5553, lightSVG: _mod5554, darkSVG: _mod5555, whiteSVG: _mod5556 };
|
|
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: _mod5551, darkPNG: _mod5552, whitePNG: _mod5553, lightSVG: _mod5554, darkSVG: _mod5555, whiteSVG: _mod5556 };
|
|
obj12.icon = { lightPNG: _mod5557, darkPNG: _mod5557, whitePNG: _mod5558, lightSVG: _mod5559, darkSVG: _mod5559, whiteSVG: _mod5560 };
|
|
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: _mod5557, darkPNG: _mod5557, whitePNG: _mod5558, lightSVG: _mod5559, darkSVG: _mod5559, whiteSVG: _mod5560 };
|
|
obj14.icon = { lightPNG: _mod5561, darkPNG: _mod5561, whitePNG: _mod5562, lightSVG: _mod5563, darkSVG: _mod5563, whiteSVG: _mod5564 };
|
|
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: _mod5561, darkPNG: _mod5561, whitePNG: _mod5562, lightSVG: _mod5563, darkSVG: _mod5563, whiteSVG: _mod5564 };
|
|
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: _mod5565, darkPNG: _mod5566, whitePNG: _mod5566, lightSVG: _mod5567, darkSVG: _mod5568, whiteSVG: _mod5568 };
|
|
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: _mod5565, darkPNG: _mod5566, whitePNG: _mod5566, lightSVG: _mod5567, darkSVG: _mod5568, whiteSVG: _mod5568 };
|
|
obj19.icon = { lightPNG: _mod5569, darkPNG: _mod5569, whitePNG: _mod5570, lightSVG: _mod5571, darkSVG: _mod5571, whiteSVG: _mod5572 };
|
|
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: _mod5569, darkPNG: _mod5569, whitePNG: _mod5570, lightSVG: _mod5571, darkSVG: _mod5571, whiteSVG: _mod5572 };
|
|
obj21.icon = { lightPNG: _mod5573, darkPNG: _mod5573, whitePNG: _mod5574, lightSVG: _mod5575, darkSVG: _mod5575, whiteSVG: _mod5576 };
|
|
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: _mod5573, darkPNG: _mod5573, whitePNG: _mod5574, lightSVG: _mod5575, darkSVG: _mod5575, whiteSVG: _mod5576 };
|
|
obj23.icon = { lightPNG: _mod5577, darkPNG: _mod5577, whitePNG: _mod5578, lightSVG: _mod5579, darkSVG: _mod5579, whiteSVG: _mod5580 };
|
|
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: _mod5577, darkPNG: _mod5577, whitePNG: _mod5578, lightSVG: _mod5579, darkSVG: _mod5579, whiteSVG: _mod5580 };
|
|
obj25.icon = { lightPNG: _mod5581, darkPNG: _mod5582, whitePNG: _mod5583, lightSVG: _mod5584, darkSVG: _mod5585, whiteSVG: _mod5586 };
|
|
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: _mod5581, darkPNG: _mod5582, whitePNG: _mod5583, lightSVG: _mod5584, darkSVG: _mod5585, whiteSVG: _mod5586 };
|
|
obj27.icon = { lightPNG: _mod5587, darkPNG: _mod5587, whitePNG: _mod5588, lightSVG: _mod5589, darkSVG: _mod5589, whiteSVG: _mod5590 };
|
|
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: _mod5587, darkPNG: _mod5587, whitePNG: _mod5588, lightSVG: _mod5589, darkSVG: _mod5589, whiteSVG: _mod5590 };
|
|
obj29.icon = { lightPNG: _mod5591, darkPNG: _mod5592, whitePNG: _mod5592, lightSVG: _mod5593, darkSVG: _mod5594, whiteSVG: _mod5594, customPNG: _mod5595 };
|
|
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: _mod5591, darkPNG: _mod5592, whitePNG: _mod5592, lightSVG: _mod5593, darkSVG: _mod5594, whiteSVG: _mod5594, customPNG: _mod5595 };
|
|
obj31.icon = { lightPNG: _mod5596, darkPNG: _mod5596, whitePNG: _mod5597, lightSVG: _mod5598, darkSVG: _mod5598, whiteSVG: _mod5599 };
|
|
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: _mod5596, darkPNG: _mod5596, whitePNG: _mod5597, lightSVG: _mod5598, darkSVG: _mod5598, whiteSVG: _mod5599 };
|
|
obj33.icon = { lightPNG: _mod5600, darkPNG: _mod5601, whitePNG: _mod5601, lightSVG: _mod5602, darkSVG: _mod5603, whiteSVG: _mod5603 };
|
|
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: _mod5600, darkPNG: _mod5601, whitePNG: _mod5601, lightSVG: _mod5602, darkSVG: _mod5603, whiteSVG: _mod5603 };
|
|
obj35.icon = { lightPNG: _mod5604, darkPNG: _mod5605, whitePNG: _mod5605, lightSVG: _mod5606, darkSVG: _mod5607, whiteSVG: _mod5607 };
|
|
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: _mod5604, darkPNG: _mod5605, whitePNG: _mod5605, lightSVG: _mod5606, darkSVG: _mod5607, whiteSVG: _mod5607 };
|
|
obj37.icon = { lightPNG: _mod5605, darkPNG: _mod5604, whitePNG: _mod5604, lightSVG: _mod5607, darkSVG: _mod5606, whiteSVG: _mod5606 };
|
|
items[17] = obj37;
|
|
const obj39 = { type: PlatformTypes.EPIC_GAMES, name: "Epic Games", icon: null, enabled: true };
|
|
const obj38 = { lightPNG: _mod5605, darkPNG: _mod5604, whitePNG: _mod5604, lightSVG: _mod5607, darkSVG: _mod5606, whiteSVG: _mod5606 };
|
|
obj39.icon = { lightPNG: _mod5608, darkPNG: _mod5609, whitePNG: _mod5609, lightSVG: _mod5610, darkSVG: _mod5611, whiteSVG: _mod5611 };
|
|
items[18] = obj39;
|
|
const obj41 = { type: PlatformTypes.RIOT_GAMES, name: "Riot Games", icon: null, enabled: true, migrationData: null };
|
|
const obj40 = { lightPNG: _mod5608, darkPNG: _mod5609, whitePNG: _mod5609, lightSVG: _mod5610, darkSVG: _mod5611, whiteSVG: _mod5611 };
|
|
obj41.icon = { lightPNG: _mod5612, darkPNG: _mod5612, whitePNG: _mod5613, lightSVG: _mod5614, darkSVG: _mod5614, whiteSVG: _mod5615, blackSVG: _mod5616 };
|
|
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: _mod5612, darkPNG: _mod5612, whitePNG: _mod5613, lightSVG: _mod5614, darkSVG: _mod5614, whiteSVG: _mod5615, blackSVG: _mod5616 };
|
|
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: _mod5617, darkPNG: _mod5618, whitePNG: _mod5619, lightSVG: _mod5620, darkSVG: _mod5621, whiteSVG: _mod5622 };
|
|
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: _mod5617, darkPNG: _mod5618, whitePNG: _mod5619, lightSVG: _mod5620, darkSVG: _mod5621, whiteSVG: _mod5622 };
|
|
obj46.icon = { lightPNG: _mod5623, darkPNG: _mod5623, whitePNG: _mod5624, lightSVG: _mod5625, darkSVG: _mod5625, whiteSVG: _mod5626 };
|
|
items[21] = obj46;
|
|
const obj48 = { type: PlatformTypes.EBAY, name: "eBay", icon: null, enabled: true, hasMetadata: true, getPlatformUserUrl: null };
|
|
const obj47 = { lightPNG: _mod5623, darkPNG: _mod5623, whitePNG: _mod5624, lightSVG: _mod5625, darkSVG: _mod5625, whiteSVG: _mod5626 };
|
|
obj48.icon = { lightPNG: _mod5627, darkPNG: _mod5627, whitePNG: _mod5628, lightSVG: _mod5629, darkSVG: _mod5629, whiteSVG: _mod5630 };
|
|
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: _mod5627, darkPNG: _mod5627, whitePNG: _mod5628, lightSVG: _mod5629, darkSVG: _mod5629, whiteSVG: _mod5630 };
|
|
obj50.icon = { lightPNG: _mod5631, darkPNG: _mod5632, whitePNG: _mod5632, lightSVG: _mod5633, darkSVG: _mod5634, whiteSVG: _mod5634 };
|
|
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: _mod5631, darkPNG: _mod5632, whitePNG: _mod5632, lightSVG: _mod5633, darkSVG: _mod5634, whiteSVG: _mod5634 };
|
|
obj52.icon = { lightPNG: _mod5635, darkPNG: _mod5635, whitePNG: _mod5636, lightSVG: _mod5637, darkSVG: _mod5637, whiteSVG: _mod5638 };
|
|
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: _mod5635, darkPNG: _mod5635, whitePNG: _mod5636, lightSVG: _mod5637, darkSVG: _mod5637, whiteSVG: _mod5638 };
|
|
obj54.icon = { lightPNG: _mod5639, darkPNG: _mod5639, whitePNG: _mod5640, lightSVG: _mod5641, darkSVG: _mod5641, whiteSVG: _mod5642 };
|
|
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: _mod5639, darkPNG: _mod5639, whitePNG: _mod5640, lightSVG: _mod5641, darkSVG: _mod5641, whiteSVG: _mod5642 };
|
|
obj56.icon = { lightPNG: _mod5643, darkPNG: _mod5643, whitePNG: _mod5643, lightSVG: _mod5644, darkSVG: _mod5644, whiteSVG: _mod5645 };
|
|
items[26] = obj56;
|
|
const obj58 = { type: PlatformTypes.DOMAIN, name: "Domain", icon: null, getPlatformUserUrl: null, enabled: true };
|
|
const obj57 = { lightPNG: _mod5643, darkPNG: _mod5643, whitePNG: _mod5643, lightSVG: _mod5644, darkSVG: _mod5644, whiteSVG: _mod5645 };
|
|
obj58.icon = { lightPNG: _mod5646, darkPNG: _mod5647, whitePNG: _mod5647, lightSVG: _mod5648, darkSVG: _mod5649, whiteSVG: _mod5649 };
|
|
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: _mod5646, darkPNG: _mod5647, whitePNG: _mod5647, lightSVG: _mod5648, darkSVG: _mod5649, whiteSVG: _mod5649 };
|
|
obj60.icon = { lightPNG: _mod5650, darkPNG: _mod5650, whitePNG: _mod5650, lightSVG: _mod5651, darkSVG: _mod5651, whiteSVG: _mod5651 };
|
|
items[28] = obj60;
|
|
const obj62 = { type: PlatformTypes.META_QUEST_OR_HORIZON, name: "Meta Quest", icon: null, enabled: false };
|
|
const obj61 = { lightPNG: _mod5650, darkPNG: _mod5650, whitePNG: _mod5650, lightSVG: _mod5651, darkSVG: _mod5651, whiteSVG: _mod5651 };
|
|
obj62.icon = { lightPNG: _mod5652, darkPNG: _mod5653, whitePNG: _mod5654, lightSVG: _mod5655, darkSVG: _mod5656, whiteSVG: _mod5656 };
|
|
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(cResult) {
|
|
return items.find(cResult);
|
|
}
|
|
};
|