decord/source/modules/guilds_bar/native/GuildsBarGuildJoinRequestBadge.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

57 lines
2.6 KiB
TypeScript

// Module ID: 16301
// Function ID: 16302
// Name: GuildsBarGuildJoinRequestBadge
// Dependencies: [19, 17, 21, 4560, 576, 5441, 4384, 16302, 16303, 16304, 12293, 5587, 2]
// Exports: default
// Module 16301 (GuildsBarGuildJoinRequestBadge)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 576 */;
import MAX_RESULTS_PER_PAGE from "MAX_RESULTS_PER_PAGE" /* 4384 */;
import preloadDefault from "preload" /* 5587 */;
import registerAssetDefault from "registerAsset" /* 12293 */;
import registerAssetDefault2 from "registerAsset" /* 16302 */;
import registerAssetDefault3 from "registerAsset" /* 16303 */;
import registerAssetDefault4 from "registerAsset" /* 16304 */;
import { View } from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
require = arg1;
noopAll;
createCacheKey = { badgeImageContainer: null, badgeImage: null };
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" };
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { height: 16, width: 16, opacity: require("result").DARK_1_LIGHT_08 };
let closure_5 = createCacheKey.createStyles(createCacheKey);
const obj1 = { height: 16, width: 16, opacity: require("result").DARK_1_LIGHT_08 };
const result = require("set").fileFinishedImporting("modules/guilds_bar/native/GuildsBarGuildJoinRequestBadge.tsx");
export default function GuildsBarGuildJoinRequestBadge(joinRequestState) {
joinRequestState = joinRequestState.joinRequestState;
const tmp = callback();
if (MAX_RESULTS_PER_PAGE.GuildJoinRequestApplicationStatuses.REJECTED === joinRequestState) {
let tmp4 = registerAssetDefault2;
} else if (tmp2(4384).GuildJoinRequestApplicationStatuses.SUBMITTED === joinRequestState) {
tmp4 = registerAssetDefault3;
} else if (tmp2(4384).GuildJoinRequestApplicationStatuses.STARTED === joinRequestState) {
tmp4 = registerAssetDefault4;
} else {
tmp4 = null;
if (tmp2(4384).GuildJoinRequestApplicationStatuses.APPROVED === joinRequestState) {
tmp4 = registerAssetDefault;
}
}
let tmp9 = null;
if (null != tmp4) {
let obj = { pointerEvents: "none", style: null, children: null };
const items = [tmp.badgeImageContainer, joinRequestState.style];
obj[1] = items;
obj = { source: null, style: null };
obj[0] = tmp4;
obj[1] = tmp.badgeImage;
obj[2] = jsx(preloadDefault, { source: null, style: null });
tmp9 = <View source={null} style={null} />;
}
return tmp9;
};