490 lines
27 KiB
TypeScript
490 lines
27 KiB
TypeScript
// Module ID: 5763
|
|
// Function ID: 5764
|
|
// Name: Platforms
|
|
// Dependencies: [1085, 2026, 586, 5764, 5765, 5766, 5767, 5768, 5769, 5770, 5771, 5772, 5773, 5774, 5775, 2027, 5776, 5777, 5778, 5779, 5780, 5781, 5782, 5783, 5784, 5785, 5786, 5787, 5788, 5789, 5790, 5791, 5792, 5793, 5794, 5795, 5796, 5797, 5798, 5799, 5800, 5801, 5802, 5803, 5804, 5805, 5806, 5807, 5808, 5809, 5810, 5811, 5812, 5813, 5814, 5815, 5816, 5817, 5818, 5819, 5820, 5821, 5822, 5823, 5824, 5825, 5826, 5827, 5828, 5829, 5830, 5831, 5832, 5833, 5834, 5835, 5836, 5837, 5838, 5839, 5840, 5841, 5842, 5843, 5844, 5845, 5846, 5847, 5848, 5849, 5850, 5851, 5852, 5853, 5854, 5855, 5856, 5857, 5858, 5859, 5860, 5861, 5862, 5863, 5864, 5865, 5866, 5867, 5868, 5869, 5870, 5871, 5872, 5873, 5874, 5875, 5876, 5877, 5878, 5879, 5880, 5881, 5882, 5883, 5884, 5885, 12, 1384, 2]
|
|
|
|
// Module 5763 (Platforms)
|
|
import Constants from "Constants" /* 1085 */;
|
|
import URLUtilsDefault from "URLUtils" /* 1384 */;
|
|
import UserApplicationIdentityConstants from "UserApplicationIdentityConstants" /* 2026 */;
|
|
import socialSDKMigration from "socialSDKMigration" /* 2027 */;
|
|
import AssetRegistry from "AssetRegistry" /* 5764 */;
|
|
import AssetRegistry2 from "AssetRegistry" /* 5765 */;
|
|
import AssetRegistry3 from "AssetRegistry" /* 5766 */;
|
|
import AssetRegistry4 from "AssetRegistry" /* 5767 */;
|
|
import AssetRegistry5 from "AssetRegistry" /* 5768 */;
|
|
import AssetRegistry6 from "AssetRegistry" /* 5769 */;
|
|
import AssetRegistry7 from "AssetRegistry" /* 5770 */;
|
|
import AssetRegistry8 from "AssetRegistry" /* 5771 */;
|
|
import AssetRegistry9 from "AssetRegistry" /* 5772 */;
|
|
import AssetRegistry10 from "AssetRegistry" /* 5773 */;
|
|
import AssetRegistry11 from "AssetRegistry" /* 5774 */;
|
|
import AssetRegistry12 from "AssetRegistry" /* 5775 */;
|
|
import AssetRegistry13 from "AssetRegistry" /* 5776 */;
|
|
import AssetRegistry14 from "AssetRegistry" /* 5777 */;
|
|
import AssetRegistry15 from "AssetRegistry" /* 5778 */;
|
|
import AssetRegistry16 from "AssetRegistry" /* 5779 */;
|
|
import AssetRegistry17 from "AssetRegistry" /* 5780 */;
|
|
import AssetRegistry18 from "AssetRegistry" /* 5781 */;
|
|
import AssetRegistry19 from "AssetRegistry" /* 5782 */;
|
|
import AssetRegistry20 from "AssetRegistry" /* 5783 */;
|
|
import AssetRegistry21 from "AssetRegistry" /* 5784 */;
|
|
import AssetRegistry22 from "AssetRegistry" /* 5785 */;
|
|
import AssetRegistry23 from "AssetRegistry" /* 5786 */;
|
|
import AssetRegistry24 from "AssetRegistry" /* 5787 */;
|
|
import AssetRegistry25 from "AssetRegistry" /* 5788 */;
|
|
import AssetRegistry26 from "AssetRegistry" /* 5789 */;
|
|
import AssetRegistry27 from "AssetRegistry" /* 5790 */;
|
|
import AssetRegistry28 from "AssetRegistry" /* 5791 */;
|
|
import AssetRegistry29 from "AssetRegistry" /* 5792 */;
|
|
import AssetRegistry30 from "AssetRegistry" /* 5793 */;
|
|
import AssetRegistry31 from "AssetRegistry" /* 5794 */;
|
|
import AssetRegistry32 from "AssetRegistry" /* 5795 */;
|
|
import AssetRegistry33 from "AssetRegistry" /* 5796 */;
|
|
import AssetRegistry34 from "AssetRegistry" /* 5797 */;
|
|
import AssetRegistry35 from "AssetRegistry" /* 5798 */;
|
|
import AssetRegistry36 from "AssetRegistry" /* 5799 */;
|
|
import AssetRegistry37 from "AssetRegistry" /* 5800 */;
|
|
import AssetRegistry38 from "AssetRegistry" /* 5801 */;
|
|
import AssetRegistry39 from "AssetRegistry" /* 5802 */;
|
|
import AssetRegistry40 from "AssetRegistry" /* 5803 */;
|
|
import AssetRegistry41 from "AssetRegistry" /* 5804 */;
|
|
import AssetRegistry42 from "AssetRegistry" /* 5805 */;
|
|
import AssetRegistry43 from "AssetRegistry" /* 5806 */;
|
|
import AssetRegistry44 from "AssetRegistry" /* 5807 */;
|
|
import AssetRegistry45 from "AssetRegistry" /* 5808 */;
|
|
import AssetRegistry46 from "AssetRegistry" /* 5809 */;
|
|
import AssetRegistry47 from "AssetRegistry" /* 5810 */;
|
|
import AssetRegistry48 from "AssetRegistry" /* 5811 */;
|
|
import AssetRegistry49 from "AssetRegistry" /* 5812 */;
|
|
import AssetRegistry50 from "AssetRegistry" /* 5813 */;
|
|
import AssetRegistry51 from "AssetRegistry" /* 5814 */;
|
|
import AssetRegistry52 from "AssetRegistry" /* 5815 */;
|
|
import AssetRegistry53 from "AssetRegistry" /* 5816 */;
|
|
import AssetRegistry54 from "AssetRegistry" /* 5817 */;
|
|
import AssetRegistry55 from "AssetRegistry" /* 5818 */;
|
|
import AssetRegistry56 from "AssetRegistry" /* 5819 */;
|
|
import AssetRegistry57 from "AssetRegistry" /* 5820 */;
|
|
import AssetRegistry58 from "AssetRegistry" /* 5821 */;
|
|
import AssetRegistry59 from "AssetRegistry" /* 5822 */;
|
|
import AssetRegistry60 from "AssetRegistry" /* 5823 */;
|
|
import AssetRegistry61 from "AssetRegistry" /* 5824 */;
|
|
import AssetRegistry62 from "AssetRegistry" /* 5825 */;
|
|
import AssetRegistry63 from "AssetRegistry" /* 5826 */;
|
|
import AssetRegistry64 from "AssetRegistry" /* 5827 */;
|
|
import AssetRegistry65 from "AssetRegistry" /* 5828 */;
|
|
import AssetRegistry66 from "AssetRegistry" /* 5829 */;
|
|
import AssetRegistry67 from "AssetRegistry" /* 5830 */;
|
|
import AssetRegistry68 from "AssetRegistry" /* 5831 */;
|
|
import AssetRegistry69 from "AssetRegistry" /* 5832 */;
|
|
import AssetRegistry70 from "AssetRegistry" /* 5833 */;
|
|
import AssetRegistry71 from "AssetRegistry" /* 5834 */;
|
|
import AssetRegistry72 from "AssetRegistry" /* 5835 */;
|
|
import AssetRegistry73 from "AssetRegistry" /* 5836 */;
|
|
import AssetRegistry74 from "AssetRegistry" /* 5837 */;
|
|
import AssetRegistry75 from "AssetRegistry" /* 5838 */;
|
|
import AssetRegistry76 from "AssetRegistry" /* 5839 */;
|
|
import AssetRegistry77 from "AssetRegistry" /* 5840 */;
|
|
import AssetRegistry78 from "AssetRegistry" /* 5841 */;
|
|
import AssetRegistry79 from "AssetRegistry" /* 5842 */;
|
|
import AssetRegistry80 from "AssetRegistry" /* 5843 */;
|
|
import AssetRegistry81 from "AssetRegistry" /* 5844 */;
|
|
import AssetRegistry82 from "AssetRegistry" /* 5845 */;
|
|
import AssetRegistry83 from "AssetRegistry" /* 5846 */;
|
|
import AssetRegistry84 from "AssetRegistry" /* 5847 */;
|
|
import AssetRegistry85 from "AssetRegistry" /* 5848 */;
|
|
import AssetRegistry86 from "AssetRegistry" /* 5849 */;
|
|
import AssetRegistry87 from "AssetRegistry" /* 5850 */;
|
|
import AssetRegistry88 from "AssetRegistry" /* 5851 */;
|
|
import AssetRegistry89 from "AssetRegistry" /* 5852 */;
|
|
import AssetRegistry90 from "AssetRegistry" /* 5853 */;
|
|
import AssetRegistry91 from "AssetRegistry" /* 5854 */;
|
|
import AssetRegistry92 from "AssetRegistry" /* 5855 */;
|
|
import AssetRegistry93 from "AssetRegistry" /* 5856 */;
|
|
import AssetRegistry94 from "AssetRegistry" /* 5857 */;
|
|
import AssetRegistry95 from "AssetRegistry" /* 5858 */;
|
|
import AssetRegistry96 from "AssetRegistry" /* 5859 */;
|
|
import AssetRegistry97 from "AssetRegistry" /* 5860 */;
|
|
import AssetRegistry98 from "AssetRegistry" /* 5861 */;
|
|
import AssetRegistry99 from "AssetRegistry" /* 5862 */;
|
|
import AssetRegistry100 from "AssetRegistry" /* 5863 */;
|
|
import AssetRegistry101 from "AssetRegistry" /* 5864 */;
|
|
import AssetRegistry102 from "AssetRegistry" /* 5865 */;
|
|
import AssetRegistry103 from "AssetRegistry" /* 5866 */;
|
|
import AssetRegistry104 from "AssetRegistry" /* 5867 */;
|
|
import AssetRegistry105 from "AssetRegistry" /* 5868 */;
|
|
import AssetRegistry106 from "AssetRegistry" /* 5869 */;
|
|
import AssetRegistry107 from "AssetRegistry" /* 5870 */;
|
|
import AssetRegistry108 from "AssetRegistry" /* 5871 */;
|
|
import AssetRegistry109 from "AssetRegistry" /* 5872 */;
|
|
import AssetRegistry110 from "AssetRegistry" /* 5873 */;
|
|
import AssetRegistry111 from "AssetRegistry" /* 5874 */;
|
|
import AssetRegistry112 from "AssetRegistry" /* 5875 */;
|
|
import AssetRegistry113 from "AssetRegistry" /* 5876 */;
|
|
import AssetRegistry114 from "AssetRegistry" /* 5877 */;
|
|
import AssetRegistry115 from "AssetRegistry" /* 5878 */;
|
|
import AssetRegistry116 from "AssetRegistry" /* 5879 */;
|
|
import AssetRegistry117 from "AssetRegistry" /* 5880 */;
|
|
import AssetRegistry118 from "AssetRegistry" /* 5881 */;
|
|
import AssetRegistry119 from "AssetRegistry" /* 5882 */;
|
|
import AssetRegistry120 from "AssetRegistry" /* 5883 */;
|
|
import AssetRegistry121 from "AssetRegistry" /* 5884 */;
|
|
import AssetRegistry122 from "AssetRegistry" /* 5885 */;
|
|
import shims_mod from "shims" /* 586 */;
|
|
import module_12 from "module_12" /* 12 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
let domains, hasOwnProperty;
|
|
|
|
let obj16;
|
|
let obj43;
|
|
let obj7;
|
|
let shims;
|
|
const PlatformTypes = Constants.PlatformTypes;
|
|
const ApplicationIdentityAppIds = UserApplicationIdentityConstants.ApplicationIdentityAppIds;
|
|
let obj = {
|
|
type: PlatformTypes.TWITCH,
|
|
name: "Twitch",
|
|
color: shims.unsafe_getRawColor("PLATFORM_TWITCH"),
|
|
icon: { lightPNG: AssetRegistry, darkPNG: AssetRegistry, whitePNG: AssetRegistry2, lightSVG: AssetRegistry3, darkSVG: AssetRegistry3, whiteSVG: AssetRegistry4 },
|
|
enabled: true,
|
|
getPlatformUserUrl(name) {
|
|
return "https://www.twitch.tv/" + encodeURIComponent(name.name);
|
|
},
|
|
domains: ["twitch.tv", "twitch.com"]
|
|
};
|
|
shims = shims_mod;
|
|
const items = [obj, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ];
|
|
const obj3 = {
|
|
type: PlatformTypes.YOUTUBE,
|
|
name: "YouTube",
|
|
color: shims.unsafe_getRawColor("PLATFORM_YOUTUBE"),
|
|
icon: { lightPNG: AssetRegistry5, darkPNG: AssetRegistry5, whitePNG: AssetRegistry6, lightSVG: AssetRegistry7, darkSVG: AssetRegistry7, whiteSVG: AssetRegistry8 },
|
|
enabled: true,
|
|
getPlatformUserUrl(id) {
|
|
return "https://www.youtube.com/channel/" + encodeURIComponent(id.id);
|
|
},
|
|
domains: ["youtube.com", "youtu.be"]
|
|
};
|
|
({ lightPNG: AssetRegistry, darkPNG: AssetRegistry, whitePNG: AssetRegistry2, lightSVG: AssetRegistry3, darkSVG: AssetRegistry3, whiteSVG: AssetRegistry4 });
|
|
shims = shims_mod;
|
|
items[1] = obj3;
|
|
const obj5 = { type: PlatformTypes.BATTLENET, name: "Battle.net", color: shims.unsafe_getRawColor("PLATFORM_BATTLENET"), icon: { lightPNG: AssetRegistry9, darkPNG: AssetRegistry9, whitePNG: AssetRegistry10, lightSVG: AssetRegistry11, darkSVG: AssetRegistry11, whiteSVG: AssetRegistry12, blackSVG: AssetRegistry11 }, enabled: true, migrationData: obj7 };
|
|
({ lightPNG: AssetRegistry5, darkPNG: AssetRegistry5, whitePNG: AssetRegistry6, lightSVG: AssetRegistry7, darkSVG: AssetRegistry7, whiteSVG: AssetRegistry8 });
|
|
shims = shims_mod;
|
|
obj7 = {
|
|
replacedBy: ApplicationIdentityAppIds.BATTLENET,
|
|
getMigrationExperimentEnabled(location) {
|
|
const battlenetSocialSDKMigrationExperiment = socialSDKMigration.battlenetSocialSDKMigrationExperiment;
|
|
const obj = { location };
|
|
return battlenetSocialSDKMigrationExperiment.getConfig(obj).enabled;
|
|
},
|
|
helpCenterLink: "https://discord.com/blog/link-world-of-warcraft-with-discord",
|
|
deprecationDate: new Date("2026-09-22Z-07:00")
|
|
};
|
|
({ lightPNG: AssetRegistry9, darkPNG: AssetRegistry9, whitePNG: AssetRegistry10, lightSVG: AssetRegistry11, darkSVG: AssetRegistry11, whiteSVG: AssetRegistry12, blackSVG: AssetRegistry11 });
|
|
items[2] = obj5;
|
|
const obj8 = {
|
|
type: PlatformTypes.BLUESKY,
|
|
name: "Bluesky",
|
|
icon: { lightPNG: AssetRegistry13, darkPNG: AssetRegistry13, whitePNG: AssetRegistry14, lightSVG: AssetRegistry15, darkSVG: AssetRegistry15, whiteSVG: AssetRegistry16 },
|
|
enabled: true,
|
|
getPlatformUserUrl(id) {
|
|
const encodeURIComponentResult = encodeURIComponent(id.id);
|
|
return "https://bsky.app/profile/" + encodeURIComponentResult.replaceAll("%3A", ":");
|
|
},
|
|
isFederated: true,
|
|
hasMetadata: true
|
|
};
|
|
new Date("2026-09-22Z-07:00");
|
|
items[3] = obj8;
|
|
const obj10 = { type: PlatformTypes.BUNGIE, name: "Bungie.net", color: shims.unsafe_getRawColor("PLATFORM_BUNGIE"), icon: { lightPNG: AssetRegistry17, darkPNG: AssetRegistry18, whitePNG: AssetRegistry19, lightSVG: AssetRegistry20, darkSVG: AssetRegistry21, whiteSVG: AssetRegistry22 }, enabled: true };
|
|
({ lightPNG: AssetRegistry13, darkPNG: AssetRegistry13, whitePNG: AssetRegistry14, lightSVG: AssetRegistry15, darkSVG: AssetRegistry15, whiteSVG: AssetRegistry16 });
|
|
shims = shims_mod;
|
|
items[4] = obj10;
|
|
const obj12 = {
|
|
type: PlatformTypes.SKYPE,
|
|
name: "Skype",
|
|
color: shims.unsafe_getRawColor("PLATFORM_SKYPE"),
|
|
icon: { lightPNG: AssetRegistry23, darkPNG: AssetRegistry23, whitePNG: AssetRegistry24, lightSVG: AssetRegistry25, darkSVG: AssetRegistry25, whiteSVG: AssetRegistry26 },
|
|
enabled: false,
|
|
getPlatformUserUrl(id) {
|
|
return "skype:" + encodeURIComponent(id.id) + "?userinfo";
|
|
}
|
|
};
|
|
({ lightPNG: AssetRegistry17, darkPNG: AssetRegistry18, whitePNG: AssetRegistry19, lightSVG: AssetRegistry20, darkSVG: AssetRegistry21, whiteSVG: AssetRegistry22 });
|
|
shims = shims_mod;
|
|
items[5] = obj12;
|
|
const obj14 = { type: PlatformTypes.LEAGUE_OF_LEGENDS, name: "League of Legends", color: shims.unsafe_getRawColor("PLATFORM_LOL"), icon: { lightPNG: AssetRegistry27, darkPNG: AssetRegistry27, whitePNG: AssetRegistry28, lightSVG: AssetRegistry29, darkSVG: AssetRegistry29, whiteSVG: AssetRegistry30 }, enabled: true, migrationData: obj16 };
|
|
({ lightPNG: AssetRegistry23, darkPNG: AssetRegistry23, whitePNG: AssetRegistry24, lightSVG: AssetRegistry25, darkSVG: AssetRegistry25, whiteSVG: AssetRegistry26 });
|
|
shims = shims_mod;
|
|
obj16 = {
|
|
replacedBy: ApplicationIdentityAppIds.RIOT_GAMES,
|
|
getMigrationExperimentEnabled() {
|
|
return true;
|
|
},
|
|
helpCenterLink: "https://www.riotgames.com/en/riot-games-discord-account-linking",
|
|
deprecationDate: new Date("2026-07-10Z-07:00")
|
|
};
|
|
({ lightPNG: AssetRegistry27, darkPNG: AssetRegistry27, whitePNG: AssetRegistry28, lightSVG: AssetRegistry29, darkSVG: AssetRegistry29, whiteSVG: AssetRegistry30 });
|
|
items[6] = obj14;
|
|
const obj17 = {
|
|
type: PlatformTypes.STEAM,
|
|
name: "Steam",
|
|
color: shims.unsafe_getRawColor("PLATFORM_STEAM"),
|
|
icon: { lightPNG: AssetRegistry31, darkPNG: AssetRegistry32, whitePNG: AssetRegistry32, lightSVG: AssetRegistry33, darkSVG: AssetRegistry34, whiteSVG: AssetRegistry34 },
|
|
enabled: true,
|
|
getPlatformUserUrl(id) {
|
|
return "https://steamcommunity.com/profiles/" + encodeURIComponent(id.id);
|
|
},
|
|
hasMetadata: true
|
|
};
|
|
new Date("2026-07-10Z-07:00");
|
|
shims = shims_mod;
|
|
items[7] = obj17;
|
|
const obj19 = {
|
|
type: PlatformTypes.REDDIT,
|
|
name: "Reddit",
|
|
color: shims.unsafe_getRawColor("PLATFORM_REDDIT"),
|
|
icon: { lightPNG: AssetRegistry35, darkPNG: AssetRegistry35, whitePNG: AssetRegistry36, lightSVG: AssetRegistry37, darkSVG: AssetRegistry37, whiteSVG: AssetRegistry38 },
|
|
enabled: true,
|
|
domains: ["reddit.com"],
|
|
getPlatformUserUrl(name) {
|
|
return "https://www.reddit.com/u/" + encodeURIComponent(name.name);
|
|
},
|
|
hasMetadata: true
|
|
};
|
|
({ lightPNG: AssetRegistry31, darkPNG: AssetRegistry32, whitePNG: AssetRegistry32, lightSVG: AssetRegistry33, darkSVG: AssetRegistry34, whiteSVG: AssetRegistry34 });
|
|
shims = shims_mod;
|
|
items[8] = obj19;
|
|
const obj21 = { type: PlatformTypes.FACEBOOK, name: "Facebook", color: shims.unsafe_getRawColor("PLATFORM_FACEBOOK"), icon: { lightPNG: AssetRegistry39, darkPNG: AssetRegistry39, whitePNG: AssetRegistry40, lightSVG: AssetRegistry41, darkSVG: AssetRegistry41, whiteSVG: AssetRegistry42 }, domains: ["facebook.com"], enabled: true };
|
|
({ lightPNG: AssetRegistry35, darkPNG: AssetRegistry35, whitePNG: AssetRegistry36, lightSVG: AssetRegistry37, darkSVG: AssetRegistry37, whiteSVG: AssetRegistry38 });
|
|
shims = shims_mod;
|
|
items[9] = obj21;
|
|
const obj23 = {
|
|
type: PlatformTypes.TWITTER_LEGACY,
|
|
name: "Twitter",
|
|
color: shims.unsafe_getRawColor("PLATFORM_TWITTER"),
|
|
icon: { lightPNG: AssetRegistry43, darkPNG: AssetRegistry43, whitePNG: AssetRegistry44, lightSVG: AssetRegistry45, darkSVG: AssetRegistry45, whiteSVG: AssetRegistry46 },
|
|
enabled: false,
|
|
getPlatformUserUrl(name) {
|
|
return "https://twitter.com/" + encodeURIComponent(name.name);
|
|
},
|
|
domains: ["twitter.com"],
|
|
hasMetadata: true
|
|
};
|
|
({ lightPNG: AssetRegistry39, darkPNG: AssetRegistry39, whitePNG: AssetRegistry40, lightSVG: AssetRegistry41, darkSVG: AssetRegistry41, whiteSVG: AssetRegistry42 });
|
|
shims = shims_mod;
|
|
items[10] = obj23;
|
|
const obj25 = {
|
|
type: PlatformTypes.TWITTER,
|
|
name: "X",
|
|
color: shims.unsafe_getRawColor("PLATFORM_TWITTER"),
|
|
icon: { lightPNG: AssetRegistry47, darkPNG: AssetRegistry48, whitePNG: AssetRegistry49, lightSVG: AssetRegistry50, darkSVG: AssetRegistry51, whiteSVG: AssetRegistry52 },
|
|
enabled: true,
|
|
getPlatformUserUrl(name) {
|
|
return "https://x.com/" + encodeURIComponent(name.name);
|
|
},
|
|
domains: ["x.com"],
|
|
hasMetadata: true
|
|
};
|
|
({ lightPNG: AssetRegistry43, darkPNG: AssetRegistry43, whitePNG: AssetRegistry44, lightSVG: AssetRegistry45, darkSVG: AssetRegistry45, whiteSVG: AssetRegistry46 });
|
|
shims = shims_mod;
|
|
items[11] = obj25;
|
|
const obj27 = {
|
|
type: PlatformTypes.SPOTIFY,
|
|
name: "Spotify",
|
|
color: shims.unsafe_getRawColor("PLATFORM_SPOTIFY"),
|
|
icon: { lightPNG: AssetRegistry53, darkPNG: AssetRegistry53, whitePNG: AssetRegistry54, lightSVG: AssetRegistry55, darkSVG: AssetRegistry55, whiteSVG: AssetRegistry56 },
|
|
enabled: true,
|
|
getPlatformUserUrl(id) {
|
|
return "https://open.spotify.com/user/" + encodeURIComponent(id.id);
|
|
}
|
|
};
|
|
({ lightPNG: AssetRegistry47, darkPNG: AssetRegistry48, whitePNG: AssetRegistry49, lightSVG: AssetRegistry50, darkSVG: AssetRegistry51, whiteSVG: AssetRegistry52 });
|
|
shims = shims_mod;
|
|
items[12] = obj27;
|
|
const obj29 = { type: PlatformTypes.XBOX, name: "Xbox", color: shims.unsafe_getRawColor("PLATFORM_XBOX"), icon: { lightPNG: AssetRegistry57, darkPNG: AssetRegistry58, whitePNG: AssetRegistry58, lightSVG: AssetRegistry59, darkSVG: AssetRegistry60, whiteSVG: AssetRegistry60, customPNG: AssetRegistry61 }, enabled: true };
|
|
({ lightPNG: AssetRegistry53, darkPNG: AssetRegistry53, whitePNG: AssetRegistry54, lightSVG: AssetRegistry55, darkSVG: AssetRegistry55, whiteSVG: AssetRegistry56 });
|
|
shims = shims_mod;
|
|
items[13] = obj29;
|
|
const obj31 = { type: PlatformTypes.SAMSUNG, name: "Samsung Galaxy", color: shims.unsafe_getRawColor("PLATFORM_SAMSUNG"), icon: { lightPNG: AssetRegistry62, darkPNG: AssetRegistry62, whitePNG: AssetRegistry63, lightSVG: AssetRegistry64, darkSVG: AssetRegistry64, whiteSVG: AssetRegistry65 }, enabled: false };
|
|
({ lightPNG: AssetRegistry57, darkPNG: AssetRegistry58, whitePNG: AssetRegistry58, lightSVG: AssetRegistry59, darkSVG: AssetRegistry60, whiteSVG: AssetRegistry60, customPNG: AssetRegistry61 });
|
|
shims = shims_mod;
|
|
items[14] = obj31;
|
|
const obj33 = {
|
|
type: PlatformTypes.GITHUB,
|
|
name: "GitHub",
|
|
color: shims.unsafe_getRawColor("PLATFORM_GITHUB"),
|
|
icon: { lightPNG: AssetRegistry66, darkPNG: AssetRegistry67, whitePNG: AssetRegistry67, lightSVG: AssetRegistry68, darkSVG: AssetRegistry69, whiteSVG: AssetRegistry69 },
|
|
enabled: true,
|
|
getPlatformUserUrl(name) {
|
|
return "https://github.com/" + encodeURIComponent(name.name);
|
|
},
|
|
domains: ["github.com"]
|
|
};
|
|
({ lightPNG: AssetRegistry62, darkPNG: AssetRegistry62, whitePNG: AssetRegistry63, lightSVG: AssetRegistry64, darkSVG: AssetRegistry64, whiteSVG: AssetRegistry65 });
|
|
shims = shims_mod;
|
|
items[15] = obj33;
|
|
const obj35 = { type: PlatformTypes.PLAYSTATION, name: "PlayStation Network", color: shims.unsafe_getRawColor("PLATFORM_PLAYSTATION"), icon: { lightPNG: AssetRegistry70, darkPNG: AssetRegistry71, whitePNG: AssetRegistry71, lightSVG: AssetRegistry72, darkSVG: AssetRegistry73, whiteSVG: AssetRegistry73 }, enabled: true };
|
|
({ lightPNG: AssetRegistry66, darkPNG: AssetRegistry67, whitePNG: AssetRegistry67, lightSVG: AssetRegistry68, darkSVG: AssetRegistry69, whiteSVG: AssetRegistry69 });
|
|
shims = shims_mod;
|
|
items[16] = obj35;
|
|
const obj37 = { type: PlatformTypes.PLAYSTATION_STAGING, name: "PlayStation Network (Staging)", color: shims.unsafe_getRawColor("PLATFORM_PLAYSTATION"), icon: { lightPNG: AssetRegistry71, darkPNG: AssetRegistry70, whitePNG: AssetRegistry70, lightSVG: AssetRegistry73, darkSVG: AssetRegistry72, whiteSVG: AssetRegistry72 }, enabled: false };
|
|
({ lightPNG: AssetRegistry70, darkPNG: AssetRegistry71, whitePNG: AssetRegistry71, lightSVG: AssetRegistry72, darkSVG: AssetRegistry73, whiteSVG: AssetRegistry73 });
|
|
shims = shims_mod;
|
|
items[17] = obj37;
|
|
const obj39 = { type: PlatformTypes.EPIC_GAMES, name: "Epic Games", icon: { lightPNG: AssetRegistry74, darkPNG: AssetRegistry75, whitePNG: AssetRegistry75, lightSVG: AssetRegistry76, darkSVG: AssetRegistry77, whiteSVG: AssetRegistry77 }, enabled: true };
|
|
({ lightPNG: AssetRegistry71, darkPNG: AssetRegistry70, whitePNG: AssetRegistry70, lightSVG: AssetRegistry73, darkSVG: AssetRegistry72, whiteSVG: AssetRegistry72 });
|
|
items[18] = obj39;
|
|
const obj41 = { type: PlatformTypes.RIOT_GAMES, name: "Riot Games", icon: { lightPNG: AssetRegistry78, darkPNG: AssetRegistry78, whitePNG: AssetRegistry79, lightSVG: AssetRegistry80, darkSVG: AssetRegistry80, whiteSVG: AssetRegistry81, blackSVG: AssetRegistry82 }, enabled: true, migrationData: obj43 };
|
|
({ lightPNG: AssetRegistry74, darkPNG: AssetRegistry75, whitePNG: AssetRegistry75, lightSVG: AssetRegistry76, darkSVG: AssetRegistry77, whiteSVG: AssetRegistry77 });
|
|
obj43 = {
|
|
replacedBy: ApplicationIdentityAppIds.RIOT_GAMES,
|
|
getMigrationExperimentEnabled() {
|
|
return true;
|
|
},
|
|
helpCenterLink: "https://www.riotgames.com/en/riot-games-discord-account-linking",
|
|
deprecationDate: new Date("2026-07-10Z-07:00")
|
|
};
|
|
({ lightPNG: AssetRegistry78, darkPNG: AssetRegistry78, whitePNG: AssetRegistry79, lightSVG: AssetRegistry80, darkSVG: AssetRegistry80, whiteSVG: AssetRegistry81, blackSVG: AssetRegistry82 });
|
|
items[19] = obj41;
|
|
const obj44 = {
|
|
type: PlatformTypes.ROBLOX,
|
|
name: "Roblox",
|
|
icon: { lightPNG: AssetRegistry83, darkPNG: AssetRegistry84, whitePNG: AssetRegistry85, lightSVG: AssetRegistry86, darkSVG: AssetRegistry87, whiteSVG: AssetRegistry88 },
|
|
enabled: true,
|
|
getPlatformUserUrl(id) {
|
|
return "https://roblox.com/users/" + encodeURIComponent(id.id) + "/profile";
|
|
}
|
|
};
|
|
new Date("2026-07-10Z-07:00");
|
|
items[20] = obj44;
|
|
const obj46 = { type: PlatformTypes.PAYPAL, name: "PayPal", icon: { lightPNG: AssetRegistry89, darkPNG: AssetRegistry89, whitePNG: AssetRegistry90, lightSVG: AssetRegistry91, darkSVG: AssetRegistry91, whiteSVG: AssetRegistry92 }, enabled: true, hasMetadata: true };
|
|
({ lightPNG: AssetRegistry83, darkPNG: AssetRegistry84, whitePNG: AssetRegistry85, lightSVG: AssetRegistry86, darkSVG: AssetRegistry87, whiteSVG: AssetRegistry88 });
|
|
items[21] = obj46;
|
|
const obj48 = {
|
|
type: PlatformTypes.EBAY,
|
|
name: "eBay",
|
|
icon: { lightPNG: AssetRegistry93, darkPNG: AssetRegistry93, whitePNG: AssetRegistry94, lightSVG: AssetRegistry95, darkSVG: AssetRegistry95, whiteSVG: AssetRegistry96 },
|
|
enabled: true,
|
|
hasMetadata: true,
|
|
getPlatformUserUrl(name) {
|
|
return "https://www.ebay.com/usr/" + encodeURIComponent(name.name);
|
|
}
|
|
};
|
|
({ lightPNG: AssetRegistry89, darkPNG: AssetRegistry89, whitePNG: AssetRegistry90, lightSVG: AssetRegistry91, darkSVG: AssetRegistry91, whiteSVG: AssetRegistry92 });
|
|
items[22] = obj48;
|
|
const obj50 = {
|
|
type: PlatformTypes.TIKTOK,
|
|
name: "TikTok",
|
|
icon: { lightPNG: AssetRegistry97, darkPNG: AssetRegistry98, whitePNG: AssetRegistry98, lightSVG: AssetRegistry99, darkSVG: AssetRegistry100, whiteSVG: AssetRegistry100 },
|
|
enabled: false,
|
|
hasMetadata: true,
|
|
domains: ["tiktok.com"],
|
|
getPlatformUserUrl(name) {
|
|
return "https://www.tiktok.com/@" + encodeURIComponent(name.name);
|
|
}
|
|
};
|
|
({ lightPNG: AssetRegistry93, darkPNG: AssetRegistry93, whitePNG: AssetRegistry94, lightSVG: AssetRegistry95, darkSVG: AssetRegistry95, whiteSVG: AssetRegistry96 });
|
|
items[23] = obj50;
|
|
const obj52 = {
|
|
type: PlatformTypes.INSTAGRAM,
|
|
name: "Instagram",
|
|
icon: { lightPNG: AssetRegistry101, darkPNG: AssetRegistry101, whitePNG: AssetRegistry102, lightSVG: AssetRegistry103, darkSVG: AssetRegistry103, whiteSVG: AssetRegistry104 },
|
|
enabled: false,
|
|
domains: ["instagram.com"],
|
|
getPlatformUserUrl(name) {
|
|
return "https://www.instagram.com/" + encodeURIComponent(name.name);
|
|
}
|
|
};
|
|
({ lightPNG: AssetRegistry97, darkPNG: AssetRegistry98, whitePNG: AssetRegistry98, lightSVG: AssetRegistry99, darkSVG: AssetRegistry100, whiteSVG: AssetRegistry100 });
|
|
items[24] = obj52;
|
|
const obj54 = {
|
|
type: PlatformTypes.MASTODON,
|
|
name: "Mastodon",
|
|
icon: { lightPNG: AssetRegistry105, darkPNG: AssetRegistry105, whitePNG: AssetRegistry106, lightSVG: AssetRegistry107, darkSVG: AssetRegistry107, whiteSVG: AssetRegistry108 },
|
|
enabled: false,
|
|
getPlatformUserUrl(id) {
|
|
return id.id;
|
|
},
|
|
isFederated: true,
|
|
hasMetadata: true
|
|
};
|
|
({ lightPNG: AssetRegistry101, darkPNG: AssetRegistry101, whitePNG: AssetRegistry102, lightSVG: AssetRegistry103, darkSVG: AssetRegistry103, whiteSVG: AssetRegistry104 });
|
|
items[25] = obj54;
|
|
const obj56 = { type: PlatformTypes.CRUNCHYROLL, name: "Crunchyroll", color: shims.unsafe_getRawColor("PLATFORM_CRUNCHYROLL"), icon: { lightPNG: AssetRegistry109, darkPNG: AssetRegistry109, whitePNG: AssetRegistry109, lightSVG: AssetRegistry110, darkSVG: AssetRegistry110, whiteSVG: AssetRegistry111 }, enabled: true };
|
|
({ lightPNG: AssetRegistry105, darkPNG: AssetRegistry105, whitePNG: AssetRegistry106, lightSVG: AssetRegistry107, darkSVG: AssetRegistry107, whiteSVG: AssetRegistry108 });
|
|
shims = shims_mod;
|
|
items[26] = obj56;
|
|
const obj58 = {
|
|
type: PlatformTypes.DOMAIN,
|
|
name: "Domain",
|
|
icon: { lightPNG: AssetRegistry112, darkPNG: AssetRegistry113, whitePNG: AssetRegistry113, lightSVG: AssetRegistry114, darkSVG: AssetRegistry115, whiteSVG: AssetRegistry115 },
|
|
getPlatformUserUrl(id) {
|
|
return "https://" + id.id + "/";
|
|
},
|
|
enabled: true
|
|
};
|
|
({ lightPNG: AssetRegistry109, darkPNG: AssetRegistry109, whitePNG: AssetRegistry109, lightSVG: AssetRegistry110, darkSVG: AssetRegistry110, whiteSVG: AssetRegistry111 });
|
|
items[27] = obj58;
|
|
const obj60 = { type: PlatformTypes.AMAZON_MUSIC, name: "Amazon Music", icon: { lightPNG: AssetRegistry116, darkPNG: AssetRegistry116, whitePNG: AssetRegistry116, lightSVG: AssetRegistry117, darkSVG: AssetRegistry117, whiteSVG: AssetRegistry117 }, enabled: true };
|
|
({ lightPNG: AssetRegistry112, darkPNG: AssetRegistry113, whitePNG: AssetRegistry113, lightSVG: AssetRegistry114, darkSVG: AssetRegistry115, whiteSVG: AssetRegistry115 });
|
|
items[28] = obj60;
|
|
const obj62 = { type: PlatformTypes.META_QUEST_OR_HORIZON, name: "Meta Quest", icon: { lightPNG: AssetRegistry118, darkPNG: AssetRegistry119, whitePNG: AssetRegistry120, lightSVG: AssetRegistry121, darkSVG: AssetRegistry122, whiteSVG: AssetRegistry122 }, enabled: false };
|
|
({ lightPNG: AssetRegistry116, darkPNG: AssetRegistry116, whitePNG: AssetRegistry116, lightSVG: AssetRegistry117, darkSVG: AssetRegistry117, whiteSVG: AssetRegistry117 });
|
|
items[29] = obj62;
|
|
({ lightPNG: AssetRegistry118, darkPNG: AssetRegistry119, whitePNG: AssetRegistry120, lightSVG: AssetRegistry121, darkSVG: AssetRegistry122, whiteSVG: AssetRegistry122 });
|
|
let closure_4 = module_12.keyBy(items, "type");
|
|
let closure_5 = {};
|
|
let item = items.forEach((domains) => {
|
|
let closure_0 = domains;
|
|
domains = domains.domains;
|
|
if (domains != null) {
|
|
const item = domains.forEach((item) => {
|
|
closure_5[item] = domains;
|
|
});
|
|
}
|
|
});
|
|
const obj64 = {
|
|
get(arg0) {
|
|
let tmp = closure_4[arg0];
|
|
if (tmp == null) {
|
|
tmp = null;
|
|
}
|
|
return tmp;
|
|
},
|
|
getByUrl(url) {
|
|
const obj = URLUtilsDefault;
|
|
const toURLSafeResult = obj.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(arg0) {
|
|
hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
return hasOwnProperty.call(closure_4, arg0);
|
|
},
|
|
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);
|
|
}
|
|
};
|
|
const result = size.fileFinishedImporting("lib/Platforms.tsx");
|
|
|
|
export default obj64;
|