Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
110 lines
3.4 KiB
TypeScript
110 lines
3.4 KiB
TypeScript
// Module ID: 5671
|
|
// Function ID: 5672
|
|
// Name: GuildBadge
|
|
// Dependencies: [19, 1074, 21, 5672, 5673, 5674, 5675, 1971, 1176, 2]
|
|
|
|
// Module 5671 (GuildBadge)
|
|
import native from "native" /* 1176 */;
|
|
import GuildRecordUtils from "GuildRecordUtils" /* 1971 */;
|
|
import _modDef5672 from "module_5672" /* 5672 */;
|
|
import _modDef5673 from "module_5673" /* 5673 */;
|
|
import _modDef5674 from "module_5674" /* 5674 */;
|
|
import _modDef5675 from "module_5675" /* 5675 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
function getGuildBadgeSource(guild, flag) {
|
|
let has = guild;
|
|
let NONE = obj.NONE;
|
|
const VERIFIED = GuildFeatures.VERIFIED;
|
|
if (null == guild) {
|
|
if (!tmp3) {
|
|
const PARTNERED = tmp2.PARTNERED;
|
|
if (null == has) {
|
|
if (tmp11) {
|
|
NONE = flag ? tmp.PARTNERED_BLACK : tmp.PARTNERED;
|
|
}
|
|
return obj2[NONE];
|
|
} else {
|
|
obj2 = GuildRecordUtils;
|
|
if (obj2.isGuildRecord(has)) {
|
|
const features6 = has.features;
|
|
has = features6.has;
|
|
let hasItem = has(PARTNERED);
|
|
} else {
|
|
const _Array2 = Array;
|
|
if (Array.isArray(has.features)) {
|
|
const features5 = has.features;
|
|
hasItem = features5.includes(PARTNERED);
|
|
} else {
|
|
const features4 = has.features;
|
|
let hasItem1;
|
|
if (features4 != null) {
|
|
hasItem1 = features4.has(PARTNERED);
|
|
}
|
|
hasItem = Boolean(hasItem1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
obj = GuildRecordUtils;
|
|
if (obj.isGuildRecord(has)) {
|
|
const features3 = has.features;
|
|
let hasItem2 = features3.has(VERIFIED);
|
|
} else {
|
|
const _Array = Array;
|
|
if (Array.isArray(has.features)) {
|
|
const features2 = has.features;
|
|
hasItem2 = features2.includes(VERIFIED);
|
|
} else {
|
|
const features = has.features;
|
|
let hasItem3;
|
|
if (features != null) {
|
|
hasItem3 = features.has(VERIFIED);
|
|
}
|
|
hasItem2 = Boolean(hasItem3);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
class GuildBadge {
|
|
constructor(arg0) {
|
|
flag = global.monocolored;
|
|
if (flag === undefined) {
|
|
flag = false;
|
|
}
|
|
MEDIUM = global.size;
|
|
if (MEDIUM === undefined) {
|
|
tmp = GuildBadge;
|
|
MEDIUM = GuildBadge.Sizes.MEDIUM;
|
|
}
|
|
tmp2 = null;
|
|
merged = Object.assign(global, Object.assign({ guild: 0, monocolored: 0, size: 0 }));
|
|
tmp4 = getGuildBadgeSource(global.guild, flag);
|
|
if (null != tmp4) {
|
|
tmp5 = jsx;
|
|
tmp6 = closure_0;
|
|
tmp7 = closure_1;
|
|
obj = {};
|
|
tmp8 = obj;
|
|
tmp9 = merged;
|
|
merged1 = Object.assign(merged);
|
|
obj.size = MEDIUM;
|
|
obj.source = tmp4;
|
|
tmp2 = jsx(closure_0(closure_1[8]).Icon, obj);
|
|
}
|
|
return tmp2;
|
|
}
|
|
}
|
|
const GuildFeatures = fn(1074).GuildFeatures;
|
|
const jsx = fn(21).jsx;
|
|
let obj = { PARTNERED: 0, [0]: "PARTNERED", VERIFIED: 1, [1]: "VERIFIED", PARTNERED_BLACK: 2, [2]: "PARTNERED_BLACK", VERIFIED_BLACK: 3, [3]: "VERIFIED_BLACK", NONE: 4, [4]: "NONE" };
|
|
let obj2 = { [VERIFIED]: _modDef5672, [PARTNERED]: _modDef5673, [VERIFIED_BLACK]: _modDef5674, [PARTNERED_BLACK]: _modDef5675, [obj.NONE]: null };
|
|
({ VERIFIED, PARTNERED, VERIFIED_BLACK, PARTNERED_BLACK } = obj);
|
|
GuildBadge.Sizes = fn(1176).Icon.Sizes;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/guild/native/GuildBadge.tsx");
|
|
|
|
export default GuildBadge;
|
|
export { getGuildBadgeSource };
|