490 lines
27 KiB
TypeScript
490 lines
27 KiB
TypeScript
// Module ID: 5596
|
|
// Function ID: 5597
|
|
// Name: Platforms
|
|
// Dependencies: [1086, 2013, 587, 5597, 5598, 5599, 5600, 5601, 5602, 5603, 5604, 5605, 5606, 5607, 5608, 2014, 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, 5718, 12, 1372, 2]
|
|
|
|
// Module 5596 (Platforms)
|
|
import Constants from "Constants" /* 1086 */;
|
|
import URLUtilsDefault from "URLUtils" /* 1372 */;
|
|
import UserApplicationIdentityConstants from "UserApplicationIdentityConstants" /* 2013 */;
|
|
import socialSDKMigration from "socialSDKMigration" /* 2014 */;
|
|
import AssetRegistry from "AssetRegistry" /* 5597 */;
|
|
import AssetRegistry2 from "AssetRegistry" /* 5598 */;
|
|
import AssetRegistry3 from "AssetRegistry" /* 5599 */;
|
|
import AssetRegistry4 from "AssetRegistry" /* 5600 */;
|
|
import AssetRegistry5 from "AssetRegistry" /* 5601 */;
|
|
import AssetRegistry6 from "AssetRegistry" /* 5602 */;
|
|
import AssetRegistry7 from "AssetRegistry" /* 5603 */;
|
|
import AssetRegistry8 from "AssetRegistry" /* 5604 */;
|
|
import AssetRegistry9 from "AssetRegistry" /* 5605 */;
|
|
import AssetRegistry10 from "AssetRegistry" /* 5606 */;
|
|
import AssetRegistry11 from "AssetRegistry" /* 5607 */;
|
|
import AssetRegistry12 from "AssetRegistry" /* 5608 */;
|
|
import AssetRegistry13 from "AssetRegistry" /* 5609 */;
|
|
import AssetRegistry14 from "AssetRegistry" /* 5610 */;
|
|
import AssetRegistry15 from "AssetRegistry" /* 5611 */;
|
|
import AssetRegistry16 from "AssetRegistry" /* 5612 */;
|
|
import AssetRegistry17 from "AssetRegistry" /* 5613 */;
|
|
import AssetRegistry18 from "AssetRegistry" /* 5614 */;
|
|
import AssetRegistry19 from "AssetRegistry" /* 5615 */;
|
|
import AssetRegistry20 from "AssetRegistry" /* 5616 */;
|
|
import AssetRegistry21 from "AssetRegistry" /* 5617 */;
|
|
import AssetRegistry22 from "AssetRegistry" /* 5618 */;
|
|
import AssetRegistry23 from "AssetRegistry" /* 5619 */;
|
|
import AssetRegistry24 from "AssetRegistry" /* 5620 */;
|
|
import AssetRegistry25 from "AssetRegistry" /* 5621 */;
|
|
import AssetRegistry26 from "AssetRegistry" /* 5622 */;
|
|
import AssetRegistry27 from "AssetRegistry" /* 5623 */;
|
|
import AssetRegistry28 from "AssetRegistry" /* 5624 */;
|
|
import AssetRegistry29 from "AssetRegistry" /* 5625 */;
|
|
import AssetRegistry30 from "AssetRegistry" /* 5626 */;
|
|
import AssetRegistry31 from "AssetRegistry" /* 5627 */;
|
|
import AssetRegistry32 from "AssetRegistry" /* 5628 */;
|
|
import AssetRegistry33 from "AssetRegistry" /* 5629 */;
|
|
import AssetRegistry34 from "AssetRegistry" /* 5630 */;
|
|
import AssetRegistry35 from "AssetRegistry" /* 5631 */;
|
|
import AssetRegistry36 from "AssetRegistry" /* 5632 */;
|
|
import AssetRegistry37 from "AssetRegistry" /* 5633 */;
|
|
import AssetRegistry38 from "AssetRegistry" /* 5634 */;
|
|
import AssetRegistry39 from "AssetRegistry" /* 5635 */;
|
|
import AssetRegistry40 from "AssetRegistry" /* 5636 */;
|
|
import AssetRegistry41 from "AssetRegistry" /* 5637 */;
|
|
import AssetRegistry42 from "AssetRegistry" /* 5638 */;
|
|
import AssetRegistry43 from "AssetRegistry" /* 5639 */;
|
|
import AssetRegistry44 from "AssetRegistry" /* 5640 */;
|
|
import AssetRegistry45 from "AssetRegistry" /* 5641 */;
|
|
import AssetRegistry46 from "AssetRegistry" /* 5642 */;
|
|
import AssetRegistry47 from "AssetRegistry" /* 5643 */;
|
|
import AssetRegistry48 from "AssetRegistry" /* 5644 */;
|
|
import AssetRegistry49 from "AssetRegistry" /* 5645 */;
|
|
import AssetRegistry50 from "AssetRegistry" /* 5646 */;
|
|
import AssetRegistry51 from "AssetRegistry" /* 5647 */;
|
|
import AssetRegistry52 from "AssetRegistry" /* 5648 */;
|
|
import AssetRegistry53 from "AssetRegistry" /* 5649 */;
|
|
import AssetRegistry54 from "AssetRegistry" /* 5650 */;
|
|
import AssetRegistry55 from "AssetRegistry" /* 5651 */;
|
|
import AssetRegistry56 from "AssetRegistry" /* 5652 */;
|
|
import AssetRegistry57 from "AssetRegistry" /* 5653 */;
|
|
import AssetRegistry58 from "AssetRegistry" /* 5654 */;
|
|
import AssetRegistry59 from "AssetRegistry" /* 5655 */;
|
|
import AssetRegistry60 from "AssetRegistry" /* 5656 */;
|
|
import AssetRegistry61 from "AssetRegistry" /* 5657 */;
|
|
import AssetRegistry62 from "AssetRegistry" /* 5658 */;
|
|
import AssetRegistry63 from "AssetRegistry" /* 5659 */;
|
|
import AssetRegistry64 from "AssetRegistry" /* 5660 */;
|
|
import AssetRegistry65 from "AssetRegistry" /* 5661 */;
|
|
import AssetRegistry66 from "AssetRegistry" /* 5662 */;
|
|
import AssetRegistry67 from "AssetRegistry" /* 5663 */;
|
|
import AssetRegistry68 from "AssetRegistry" /* 5664 */;
|
|
import AssetRegistry69 from "AssetRegistry" /* 5665 */;
|
|
import AssetRegistry70 from "AssetRegistry" /* 5666 */;
|
|
import AssetRegistry71 from "AssetRegistry" /* 5667 */;
|
|
import AssetRegistry72 from "AssetRegistry" /* 5668 */;
|
|
import AssetRegistry73 from "AssetRegistry" /* 5669 */;
|
|
import AssetRegistry74 from "AssetRegistry" /* 5670 */;
|
|
import AssetRegistry75 from "AssetRegistry" /* 5671 */;
|
|
import AssetRegistry76 from "AssetRegistry" /* 5672 */;
|
|
import AssetRegistry77 from "AssetRegistry" /* 5673 */;
|
|
import AssetRegistry78 from "AssetRegistry" /* 5674 */;
|
|
import AssetRegistry79 from "AssetRegistry" /* 5675 */;
|
|
import AssetRegistry80 from "AssetRegistry" /* 5676 */;
|
|
import AssetRegistry81 from "AssetRegistry" /* 5677 */;
|
|
import AssetRegistry82 from "AssetRegistry" /* 5678 */;
|
|
import AssetRegistry83 from "AssetRegistry" /* 5679 */;
|
|
import AssetRegistry84 from "AssetRegistry" /* 5680 */;
|
|
import AssetRegistry85 from "AssetRegistry" /* 5681 */;
|
|
import AssetRegistry86 from "AssetRegistry" /* 5682 */;
|
|
import AssetRegistry87 from "AssetRegistry" /* 5683 */;
|
|
import AssetRegistry88 from "AssetRegistry" /* 5684 */;
|
|
import AssetRegistry89 from "AssetRegistry" /* 5685 */;
|
|
import AssetRegistry90 from "AssetRegistry" /* 5686 */;
|
|
import AssetRegistry91 from "AssetRegistry" /* 5687 */;
|
|
import AssetRegistry92 from "AssetRegistry" /* 5688 */;
|
|
import AssetRegistry93 from "AssetRegistry" /* 5689 */;
|
|
import AssetRegistry94 from "AssetRegistry" /* 5690 */;
|
|
import AssetRegistry95 from "AssetRegistry" /* 5691 */;
|
|
import AssetRegistry96 from "AssetRegistry" /* 5692 */;
|
|
import AssetRegistry97 from "AssetRegistry" /* 5693 */;
|
|
import AssetRegistry98 from "AssetRegistry" /* 5694 */;
|
|
import AssetRegistry99 from "AssetRegistry" /* 5695 */;
|
|
import AssetRegistry100 from "AssetRegistry" /* 5696 */;
|
|
import AssetRegistry101 from "AssetRegistry" /* 5697 */;
|
|
import AssetRegistry102 from "AssetRegistry" /* 5698 */;
|
|
import AssetRegistry103 from "AssetRegistry" /* 5699 */;
|
|
import AssetRegistry104 from "AssetRegistry" /* 5700 */;
|
|
import AssetRegistry105 from "AssetRegistry" /* 5701 */;
|
|
import AssetRegistry106 from "AssetRegistry" /* 5702 */;
|
|
import AssetRegistry107 from "AssetRegistry" /* 5703 */;
|
|
import AssetRegistry108 from "AssetRegistry" /* 5704 */;
|
|
import AssetRegistry109 from "AssetRegistry" /* 5705 */;
|
|
import AssetRegistry110 from "AssetRegistry" /* 5706 */;
|
|
import AssetRegistry111 from "AssetRegistry" /* 5707 */;
|
|
import AssetRegistry112 from "AssetRegistry" /* 5708 */;
|
|
import AssetRegistry113 from "AssetRegistry" /* 5709 */;
|
|
import AssetRegistry114 from "AssetRegistry" /* 5710 */;
|
|
import AssetRegistry115 from "AssetRegistry" /* 5711 */;
|
|
import AssetRegistry116 from "AssetRegistry" /* 5712 */;
|
|
import AssetRegistry117 from "AssetRegistry" /* 5713 */;
|
|
import AssetRegistry118 from "AssetRegistry" /* 5714 */;
|
|
import AssetRegistry119 from "AssetRegistry" /* 5715 */;
|
|
import AssetRegistry120 from "AssetRegistry" /* 5716 */;
|
|
import AssetRegistry121 from "AssetRegistry" /* 5717 */;
|
|
import AssetRegistry122 from "AssetRegistry" /* 5718 */;
|
|
import shims_mod from "shims" /* 587 */;
|
|
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;
|