decord/source/modules/guilds_bar/native/GuildsBarGuildJoinRequestBadge.tsx

58 lines
2.6 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 15659
// Function ID: 15660
2026-07-20 16:05:17 +00:00
// Name: GuildsBarGuildJoinRequestBadge
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 17, 21, 4380, 712, 5265, 4205, 15660, 15661, 15662, 11856, 5374, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 15659 (GuildsBarGuildJoinRequestBadge)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
2026-08-25 06:04:03 +00:00
import MAX_RESULTS_PER_PAGE from "MAX_RESULTS_PER_PAGE" /* 4205 */;
import preloadDefault from "preload" /* 5374 */;
import registerAssetDefault from "registerAsset" /* 11856 */;
import registerAssetDefault2 from "registerAsset" /* 15660 */;
import registerAssetDefault3 from "registerAsset" /* 15661 */;
import registerAssetDefault4 from "registerAsset" /* 15662 */;
2026-08-24 06:08:38 +00:00
import { View } from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
noopAll;
2026-07-29 08:29:29 +00:00
createCacheKey = { badgeImageContainer: null, badgeImage: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { position: "absolute", bottom: -3, right: -3, height: 22, width: 22, borderColor: ThemesDefault.colors.BACKGROUND_BASE_LOWEST, borderWidth: 3, borderRadius: 11, justifyContent: "center", alignItems: "center", overflow: "hidden" };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { height: 16, width: 16, opacity: require("result").DARK_1_LIGHT_08 };
2026-08-24 06:08:38 +00:00
let closure_5 = createCacheKey.createStyles(createCacheKey);
2026-07-23 10:11:24 +00:00
const obj1 = { height: 16, width: 16, opacity: require("result").DARK_1_LIGHT_08 };
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/guilds_bar/native/GuildsBarGuildJoinRequestBadge.tsx");
2026-07-20 16:05:17 +00:00
export default function GuildsBarGuildJoinRequestBadge(joinRequestState) {
joinRequestState = joinRequestState.joinRequestState;
2026-08-24 06:08:38 +00:00
const tmp = callback();
if (MAX_RESULTS_PER_PAGE.GuildJoinRequestApplicationStatuses.REJECTED === joinRequestState) {
let tmp4 = registerAssetDefault2;
2026-08-25 06:04:03 +00:00
} else if (tmp2(4205).GuildJoinRequestApplicationStatuses.SUBMITTED === joinRequestState) {
2026-08-24 06:08:38 +00:00
tmp4 = registerAssetDefault3;
2026-08-25 06:04:03 +00:00
} else if (tmp2(4205).GuildJoinRequestApplicationStatuses.STARTED === joinRequestState) {
2026-08-24 06:08:38 +00:00
tmp4 = registerAssetDefault4;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
tmp4 = null;
2026-08-25 06:04:03 +00:00
if (tmp2(4205).GuildJoinRequestApplicationStatuses.APPROVED === joinRequestState) {
2026-08-24 06:08:38 +00:00
tmp4 = registerAssetDefault;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
let tmp9 = null;
if (null != tmp4) {
let obj = { pointerEvents: "none", style: null, children: null };
2026-07-20 16:05:17 +00:00
const items = [tmp.badgeImageContainer, joinRequestState.style];
2026-07-29 08:29:29 +00:00
obj[1] = items;
obj = { source: null, style: null };
obj[0] = tmp4;
obj[1] = tmp.badgeImage;
2026-08-24 06:08:38 +00:00
obj[2] = jsx(preloadDefault, { source: null, style: null });
2026-07-29 08:29:29 +00:00
tmp9 = <View source={null} style={null} />;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp9;
2026-07-20 16:05:17 +00:00
};