Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
55 lines
2.4 KiB
TypeScript
55 lines
2.4 KiB
TypeScript
// Module ID: 16459
|
|
// Function ID: 16460
|
|
// Name: GuildsBarGuildJoinRequestBadge
|
|
// Dependencies: [19, 17, 21, 4640, 576, 5529, 4464, 16460, 16461, 16462, 12441, 5675, 2]
|
|
// Exports: default
|
|
|
|
// Module 16459 (GuildsBarGuildJoinRequestBadge)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import MemberVerificationTypes from "MemberVerificationTypes" /* 4464 */;
|
|
import FastImageDefault from "FastImage" /* 5675 */;
|
|
import _modDef12441 from "module_12441" /* 12441 */;
|
|
import _modDef16460 from "module_16460" /* 16460 */;
|
|
import _modDef16461 from "module_16461" /* 16461 */;
|
|
import _modDef16462 from "module_16462" /* 16462 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
const View = fn(17).View;
|
|
const jsx = fn(21).jsx;
|
|
const createStyles = fn(4640);
|
|
let obj2 = { badgeImageContainer: null, badgeImage: null };
|
|
let size = { position: "absolute", bottom: -3, right: -3, height: 22, width: 22, borderColor: nativeDefault.colors.BACKGROUND_BASE_LOWEST, borderWidth: 3, borderRadius: 11, justifyContent: "center", alignItems: "center", overflow: "hidden" };
|
|
obj2.badgeImageContainer = size;
|
|
const size1 = { height: 16, width: 16, opacity: fn(5529).DARK_1_LIGHT_08 };
|
|
obj2.badgeImage = size1;
|
|
let closure_5 = createStyles.createStyles(obj2);
|
|
size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/guilds_bar/native/GuildsBarGuildJoinRequestBadge.tsx");
|
|
|
|
export default function GuildsBarGuildJoinRequestBadge(joinRequestState) {
|
|
joinRequestState = joinRequestState.joinRequestState;
|
|
const tmp = closure_5();
|
|
if (MemberVerificationTypes.GuildJoinRequestApplicationStatuses.REJECTED === joinRequestState) {
|
|
let tmp4 = _modDef16460;
|
|
} else if (tmp2(4464).GuildJoinRequestApplicationStatuses.SUBMITTED === joinRequestState) {
|
|
tmp4 = _modDef16461;
|
|
} else if (tmp2(4464).GuildJoinRequestApplicationStatuses.STARTED === joinRequestState) {
|
|
tmp4 = _modDef16462;
|
|
} else {
|
|
tmp4 = null;
|
|
if (tmp2(4464).GuildJoinRequestApplicationStatuses.APPROVED === joinRequestState) {
|
|
tmp4 = _modDef12441;
|
|
}
|
|
}
|
|
let tmp9 = null;
|
|
if (null != tmp4) {
|
|
const obj = { pointerEvents: "none", style: null, children: null };
|
|
const items = [tmp.badgeImageContainer, joinRequestState.style];
|
|
obj.style = items;
|
|
const obj2 = { source: tmp4, style: tmp.badgeImage };
|
|
obj.children = jsx(FastImageDefault, { source: tmp4, style: tmp.badgeImage });
|
|
tmp9 = <View pointerEvents="none" style={null}>{null}</View>;
|
|
}
|
|
return tmp9;
|
|
};
|