Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
436 lines
26 KiB
TypeScript
436 lines
26 KiB
TypeScript
// Module ID: 5595
|
|
// Function ID: 5596
|
|
// Name: Platforms
|
|
// Dependencies: [1074, 2007, 575, 5596, 5597, 5598, 5599, 5600, 5601, 5602, 5603, 5604, 5605, 5606, 5607, 2008, 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, 5657, 5658, 5659, 5660, 5661, 5662, 5663, 5664, 5665, 5666, 5667, 5668, 5669, 5670, 5671, 5672, 5673, 5674, 5675, 5676, 5677, 5678, 5679, 5680, 5681, 5682, 5683, 5684, 5685, 5686, 5687, 5688, 5689, 5690, 5691, 5692, 5693, 5694, 5695, 5696, 5697, 5698, 5699, 5700, 5701, 5702, 5703, 5704, 5705, 5706, 5707, 5708, 5709, 5710, 5711, 5712, 5713, 5714, 5715, 5716, 5717, 12, 1366, 2]
|
|
|
|
// Module 5595 (Platforms)
|
|
import Constants from "Constants" /* 1074 */;
|
|
import URLUtilsDefault from "URLUtils" /* 1366 */;
|
|
import UserApplicationIdentityConstants from "UserApplicationIdentityConstants" /* 2007 */;
|
|
import socialSDKMigration from "socialSDKMigration" /* 2008 */;
|
|
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 _mod5657 from "module_5657" /* 5657 */;
|
|
import _mod5658 from "module_5658" /* 5658 */;
|
|
import _mod5659 from "module_5659" /* 5659 */;
|
|
import _mod5660 from "module_5660" /* 5660 */;
|
|
import _mod5661 from "module_5661" /* 5661 */;
|
|
import _mod5662 from "module_5662" /* 5662 */;
|
|
import _mod5663 from "module_5663" /* 5663 */;
|
|
import _mod5664 from "module_5664" /* 5664 */;
|
|
import _mod5665 from "module_5665" /* 5665 */;
|
|
import _mod5666 from "module_5666" /* 5666 */;
|
|
import _mod5667 from "module_5667" /* 5667 */;
|
|
import _mod5668 from "module_5668" /* 5668 */;
|
|
import _mod5669 from "module_5669" /* 5669 */;
|
|
import _mod5670 from "module_5670" /* 5670 */;
|
|
import _mod5671 from "module_5671" /* 5671 */;
|
|
import _mod5672 from "module_5672" /* 5672 */;
|
|
import _mod5673 from "module_5673" /* 5673 */;
|
|
import _mod5674 from "module_5674" /* 5674 */;
|
|
import _mod5675 from "module_5675" /* 5675 */;
|
|
import _mod5676 from "module_5676" /* 5676 */;
|
|
import _mod5677 from "module_5677" /* 5677 */;
|
|
import _mod5678 from "module_5678" /* 5678 */;
|
|
import _mod5679 from "module_5679" /* 5679 */;
|
|
import _mod5680 from "module_5680" /* 5680 */;
|
|
import _mod5681 from "module_5681" /* 5681 */;
|
|
import _mod5682 from "module_5682" /* 5682 */;
|
|
import _mod5683 from "module_5683" /* 5683 */;
|
|
import _mod5684 from "module_5684" /* 5684 */;
|
|
import _mod5685 from "module_5685" /* 5685 */;
|
|
import _mod5686 from "module_5686" /* 5686 */;
|
|
import _mod5687 from "module_5687" /* 5687 */;
|
|
import _mod5688 from "module_5688" /* 5688 */;
|
|
import _mod5689 from "module_5689" /* 5689 */;
|
|
import _mod5690 from "module_5690" /* 5690 */;
|
|
import _mod5691 from "module_5691" /* 5691 */;
|
|
import _mod5692 from "module_5692" /* 5692 */;
|
|
import _mod5693 from "module_5693" /* 5693 */;
|
|
import _mod5694 from "module_5694" /* 5694 */;
|
|
import _mod5695 from "module_5695" /* 5695 */;
|
|
import _mod5696 from "module_5696" /* 5696 */;
|
|
import _mod5697 from "module_5697" /* 5697 */;
|
|
import _mod5698 from "module_5698" /* 5698 */;
|
|
import _mod5699 from "module_5699" /* 5699 */;
|
|
import _mod5700 from "module_5700" /* 5700 */;
|
|
import _mod5701 from "module_5701" /* 5701 */;
|
|
import _mod5702 from "module_5702" /* 5702 */;
|
|
import _mod5703 from "module_5703" /* 5703 */;
|
|
import _mod5704 from "module_5704" /* 5704 */;
|
|
import _mod5705 from "module_5705" /* 5705 */;
|
|
import _mod5706 from "module_5706" /* 5706 */;
|
|
import _mod5707 from "module_5707" /* 5707 */;
|
|
import _mod5708 from "module_5708" /* 5708 */;
|
|
import _mod5709 from "module_5709" /* 5709 */;
|
|
import _mod5710 from "module_5710" /* 5710 */;
|
|
import _mod5711 from "module_5711" /* 5711 */;
|
|
import _mod5712 from "module_5712" /* 5712 */;
|
|
import _mod5713 from "module_5713" /* 5713 */;
|
|
import _mod5714 from "module_5714" /* 5714 */;
|
|
import _mod5715 from "module_5715" /* 5715 */;
|
|
import _mod5716 from "module_5716" /* 5716 */;
|
|
import _mod5717 from "module_5717" /* 5717 */;
|
|
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: _mod5596, darkPNG: _mod5596, whitePNG: _mod5597, lightSVG: _mod5598, darkSVG: _mod5598, whiteSVG: _mod5599 };
|
|
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: _mod5596, darkPNG: _mod5596, whitePNG: _mod5597, lightSVG: _mod5598, darkSVG: _mod5598, whiteSVG: _mod5599 };
|
|
obj3.icon = { lightPNG: _mod5600, darkPNG: _mod5600, whitePNG: _mod5601, lightSVG: _mod5602, darkSVG: _mod5602, whiteSVG: _mod5603 };
|
|
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: _mod5600, darkPNG: _mod5600, whitePNG: _mod5601, lightSVG: _mod5602, darkSVG: _mod5602, whiteSVG: _mod5603 };
|
|
obj5.icon = { lightPNG: _mod5604, darkPNG: _mod5604, whitePNG: _mod5605, lightSVG: _mod5606, darkSVG: _mod5606, whiteSVG: _mod5607, blackSVG: _mod5606 };
|
|
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: _mod5604, darkPNG: _mod5604, whitePNG: _mod5605, lightSVG: _mod5606, darkSVG: _mod5606, whiteSVG: _mod5607, blackSVG: _mod5606 };
|
|
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: _mod5608, darkPNG: _mod5608, whitePNG: _mod5609, lightSVG: _mod5610, darkSVG: _mod5610, whiteSVG: _mod5611 };
|
|
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: _mod5608, darkPNG: _mod5608, whitePNG: _mod5609, lightSVG: _mod5610, darkSVG: _mod5610, whiteSVG: _mod5611 };
|
|
obj10.icon = { lightPNG: _mod5612, darkPNG: _mod5613, whitePNG: _mod5614, lightSVG: _mod5615, darkSVG: _mod5616, whiteSVG: _mod5617 };
|
|
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: _mod5612, darkPNG: _mod5613, whitePNG: _mod5614, lightSVG: _mod5615, darkSVG: _mod5616, whiteSVG: _mod5617 };
|
|
obj12.icon = { lightPNG: _mod5618, darkPNG: _mod5618, whitePNG: _mod5619, lightSVG: _mod5620, darkSVG: _mod5620, whiteSVG: _mod5621 };
|
|
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: _mod5618, darkPNG: _mod5618, whitePNG: _mod5619, lightSVG: _mod5620, darkSVG: _mod5620, whiteSVG: _mod5621 };
|
|
obj14.icon = { lightPNG: _mod5622, darkPNG: _mod5622, whitePNG: _mod5623, lightSVG: _mod5624, darkSVG: _mod5624, whiteSVG: _mod5625 };
|
|
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: _mod5622, darkPNG: _mod5622, whitePNG: _mod5623, lightSVG: _mod5624, darkSVG: _mod5624, whiteSVG: _mod5625 };
|
|
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: _mod5626, darkPNG: _mod5627, whitePNG: _mod5627, lightSVG: _mod5628, darkSVG: _mod5629, whiteSVG: _mod5629 };
|
|
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: _mod5626, darkPNG: _mod5627, whitePNG: _mod5627, lightSVG: _mod5628, darkSVG: _mod5629, whiteSVG: _mod5629 };
|
|
obj19.icon = { lightPNG: _mod5630, darkPNG: _mod5630, whitePNG: _mod5631, lightSVG: _mod5632, darkSVG: _mod5632, whiteSVG: _mod5633 };
|
|
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: _mod5630, darkPNG: _mod5630, whitePNG: _mod5631, lightSVG: _mod5632, darkSVG: _mod5632, whiteSVG: _mod5633 };
|
|
obj21.icon = { lightPNG: _mod5634, darkPNG: _mod5634, whitePNG: _mod5635, lightSVG: _mod5636, darkSVG: _mod5636, whiteSVG: _mod5637 };
|
|
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: _mod5634, darkPNG: _mod5634, whitePNG: _mod5635, lightSVG: _mod5636, darkSVG: _mod5636, whiteSVG: _mod5637 };
|
|
obj23.icon = { lightPNG: _mod5638, darkPNG: _mod5638, whitePNG: _mod5639, lightSVG: _mod5640, darkSVG: _mod5640, whiteSVG: _mod5641 };
|
|
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: _mod5638, darkPNG: _mod5638, whitePNG: _mod5639, lightSVG: _mod5640, darkSVG: _mod5640, whiteSVG: _mod5641 };
|
|
obj25.icon = { lightPNG: _mod5642, darkPNG: _mod5643, whitePNG: _mod5644, lightSVG: _mod5645, darkSVG: _mod5646, whiteSVG: _mod5647 };
|
|
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: _mod5642, darkPNG: _mod5643, whitePNG: _mod5644, lightSVG: _mod5645, darkSVG: _mod5646, whiteSVG: _mod5647 };
|
|
obj27.icon = { lightPNG: _mod5648, darkPNG: _mod5648, whitePNG: _mod5649, lightSVG: _mod5650, darkSVG: _mod5650, whiteSVG: _mod5651 };
|
|
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: _mod5648, darkPNG: _mod5648, whitePNG: _mod5649, lightSVG: _mod5650, darkSVG: _mod5650, whiteSVG: _mod5651 };
|
|
obj29.icon = { lightPNG: _mod5652, darkPNG: _mod5653, whitePNG: _mod5653, lightSVG: _mod5654, darkSVG: _mod5655, whiteSVG: _mod5655, customPNG: _mod5656 };
|
|
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: _mod5652, darkPNG: _mod5653, whitePNG: _mod5653, lightSVG: _mod5654, darkSVG: _mod5655, whiteSVG: _mod5655, customPNG: _mod5656 };
|
|
obj31.icon = { lightPNG: _mod5657, darkPNG: _mod5657, whitePNG: _mod5658, lightSVG: _mod5659, darkSVG: _mod5659, whiteSVG: _mod5660 };
|
|
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: _mod5657, darkPNG: _mod5657, whitePNG: _mod5658, lightSVG: _mod5659, darkSVG: _mod5659, whiteSVG: _mod5660 };
|
|
obj33.icon = { lightPNG: _mod5661, darkPNG: _mod5662, whitePNG: _mod5662, lightSVG: _mod5663, darkSVG: _mod5664, whiteSVG: _mod5664 };
|
|
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: _mod5661, darkPNG: _mod5662, whitePNG: _mod5662, lightSVG: _mod5663, darkSVG: _mod5664, whiteSVG: _mod5664 };
|
|
obj35.icon = { lightPNG: _mod5665, darkPNG: _mod5666, whitePNG: _mod5666, lightSVG: _mod5667, darkSVG: _mod5668, whiteSVG: _mod5668 };
|
|
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: _mod5665, darkPNG: _mod5666, whitePNG: _mod5666, lightSVG: _mod5667, darkSVG: _mod5668, whiteSVG: _mod5668 };
|
|
obj37.icon = { lightPNG: _mod5666, darkPNG: _mod5665, whitePNG: _mod5665, lightSVG: _mod5668, darkSVG: _mod5667, whiteSVG: _mod5667 };
|
|
items[17] = obj37;
|
|
const obj39 = { type: PlatformTypes.EPIC_GAMES, name: "Epic Games", icon: null, enabled: true };
|
|
const obj38 = { lightPNG: _mod5666, darkPNG: _mod5665, whitePNG: _mod5665, lightSVG: _mod5668, darkSVG: _mod5667, whiteSVG: _mod5667 };
|
|
obj39.icon = { lightPNG: _mod5669, darkPNG: _mod5670, whitePNG: _mod5670, lightSVG: _mod5671, darkSVG: _mod5672, whiteSVG: _mod5672 };
|
|
items[18] = obj39;
|
|
const obj41 = { type: PlatformTypes.RIOT_GAMES, name: "Riot Games", icon: null, enabled: true, migrationData: null };
|
|
const obj40 = { lightPNG: _mod5669, darkPNG: _mod5670, whitePNG: _mod5670, lightSVG: _mod5671, darkSVG: _mod5672, whiteSVG: _mod5672 };
|
|
obj41.icon = { lightPNG: _mod5673, darkPNG: _mod5673, whitePNG: _mod5674, lightSVG: _mod5675, darkSVG: _mod5675, whiteSVG: _mod5676, blackSVG: _mod5677 };
|
|
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: _mod5673, darkPNG: _mod5673, whitePNG: _mod5674, lightSVG: _mod5675, darkSVG: _mod5675, whiteSVG: _mod5676, blackSVG: _mod5677 };
|
|
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: _mod5678, darkPNG: _mod5679, whitePNG: _mod5680, lightSVG: _mod5681, darkSVG: _mod5682, whiteSVG: _mod5683 };
|
|
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: _mod5678, darkPNG: _mod5679, whitePNG: _mod5680, lightSVG: _mod5681, darkSVG: _mod5682, whiteSVG: _mod5683 };
|
|
obj46.icon = { lightPNG: _mod5684, darkPNG: _mod5684, whitePNG: _mod5685, lightSVG: _mod5686, darkSVG: _mod5686, whiteSVG: _mod5687 };
|
|
items[21] = obj46;
|
|
const obj48 = { type: PlatformTypes.EBAY, name: "eBay", icon: null, enabled: true, hasMetadata: true, getPlatformUserUrl: null };
|
|
const obj47 = { lightPNG: _mod5684, darkPNG: _mod5684, whitePNG: _mod5685, lightSVG: _mod5686, darkSVG: _mod5686, whiteSVG: _mod5687 };
|
|
obj48.icon = { lightPNG: _mod5688, darkPNG: _mod5688, whitePNG: _mod5689, lightSVG: _mod5690, darkSVG: _mod5690, whiteSVG: _mod5691 };
|
|
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: _mod5688, darkPNG: _mod5688, whitePNG: _mod5689, lightSVG: _mod5690, darkSVG: _mod5690, whiteSVG: _mod5691 };
|
|
obj50.icon = { lightPNG: _mod5692, darkPNG: _mod5693, whitePNG: _mod5693, lightSVG: _mod5694, darkSVG: _mod5695, whiteSVG: _mod5695 };
|
|
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: _mod5692, darkPNG: _mod5693, whitePNG: _mod5693, lightSVG: _mod5694, darkSVG: _mod5695, whiteSVG: _mod5695 };
|
|
obj52.icon = { lightPNG: _mod5696, darkPNG: _mod5696, whitePNG: _mod5697, lightSVG: _mod5698, darkSVG: _mod5698, whiteSVG: _mod5699 };
|
|
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: _mod5696, darkPNG: _mod5696, whitePNG: _mod5697, lightSVG: _mod5698, darkSVG: _mod5698, whiteSVG: _mod5699 };
|
|
obj54.icon = { lightPNG: _mod5700, darkPNG: _mod5700, whitePNG: _mod5701, lightSVG: _mod5702, darkSVG: _mod5702, whiteSVG: _mod5703 };
|
|
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: _mod5700, darkPNG: _mod5700, whitePNG: _mod5701, lightSVG: _mod5702, darkSVG: _mod5702, whiteSVG: _mod5703 };
|
|
obj56.icon = { lightPNG: _mod5704, darkPNG: _mod5704, whitePNG: _mod5704, lightSVG: _mod5705, darkSVG: _mod5705, whiteSVG: _mod5706 };
|
|
items[26] = obj56;
|
|
const obj58 = { type: PlatformTypes.DOMAIN, name: "Domain", icon: null, getPlatformUserUrl: null, enabled: true };
|
|
const obj57 = { lightPNG: _mod5704, darkPNG: _mod5704, whitePNG: _mod5704, lightSVG: _mod5705, darkSVG: _mod5705, whiteSVG: _mod5706 };
|
|
obj58.icon = { lightPNG: _mod5707, darkPNG: _mod5708, whitePNG: _mod5708, lightSVG: _mod5709, darkSVG: _mod5710, whiteSVG: _mod5710 };
|
|
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: _mod5707, darkPNG: _mod5708, whitePNG: _mod5708, lightSVG: _mod5709, darkSVG: _mod5710, whiteSVG: _mod5710 };
|
|
obj60.icon = { lightPNG: _mod5711, darkPNG: _mod5711, whitePNG: _mod5711, lightSVG: _mod5712, darkSVG: _mod5712, whiteSVG: _mod5712 };
|
|
items[28] = obj60;
|
|
const obj62 = { type: PlatformTypes.META_QUEST_OR_HORIZON, name: "Meta Quest", icon: null, enabled: false };
|
|
const obj61 = { lightPNG: _mod5711, darkPNG: _mod5711, whitePNG: _mod5711, lightSVG: _mod5712, darkSVG: _mod5712, whiteSVG: _mod5712 };
|
|
obj62.icon = { lightPNG: _mod5713, darkPNG: _mod5714, whitePNG: _mod5715, lightSVG: _mod5716, darkSVG: _mod5717, whiteSVG: _mod5717 };
|
|
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);
|
|
}
|
|
};
|