Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,63 @@
|
||||
/* Metro module 6915; source: modules/guild/native/GuildBadgeV2.tsx; dependencies: [31, 33, 4501, 1305, 4002, 6916, 6918, 6917, 2] */
|
||||
function _fun55048(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7093:6, offset: 0x013743d4, size: 181 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_3 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({icon: {marginRight: 8}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild/native/GuildBadgeV2.tsx');
|
||||
exports.default = GuildBadgeV2;
|
||||
exports.hasGuildBadge = hasGuildBadge;
|
||||
}
|
||||
|
||||
function GuildBadgeV2(a0) { // fn#55049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7093:171, offset: 0x01374489, size: 253 bytes, params: 2, frame: 21
|
||||
const guild = a0.guild;
|
||||
const size = a0.size;
|
||||
const r9 = size !== undefined ? size : (require(1305) /* metro dependency 1305: native */).Icon.Sizes.MEDIUM;
|
||||
const value = null;
|
||||
const value2 = Object.create(value);
|
||||
value2.guild = 0;
|
||||
value2.size = 0;
|
||||
const value3 = copyDataProperties({}, a0, value2, undefined);
|
||||
const styles = useStyles();
|
||||
const sharedModule = require(4002) /* metro dependency 4002: shared */;
|
||||
const useThemeContext = sharedModule.useThemeContext;
|
||||
const theme = Reflect.apply(useThemeContext, sharedModule, []).theme;
|
||||
if (value == guild) {
|
||||
return value;
|
||||
}
|
||||
const guildBadgeImageSource = (require(6916) /* metro dependency 6916: GuildBadgeImageSource */).getGuildBadgeImageSource(guild,
|
||||
theme);
|
||||
if (value == guildBadgeImageSource) {
|
||||
return value;
|
||||
} else {
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
return (
|
||||
<Icon
|
||||
size={r9}
|
||||
source={guildBadgeImageSource}
|
||||
style={styles.icon}
|
||||
disableColor
|
||||
{...value3}
|
||||
/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function hasGuildBadge(a0, a1) { // fn#55050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7093:541, offset: 0x01374586, size: 132 bytes, params: 3, frame: 18
|
||||
var r0;
|
||||
var value;
|
||||
const guildTraits = (require(6918) /* metro dependency 6918: GuildTraits */).getGuildTraits(a0);
|
||||
const property = (require(6916) /* metro dependency 6916: GuildBadgeImageSource */).badgeVariants[(require(6917) /* metro dependency 6917: BadgeCategory */).getBadgeCategory(guildTraits)];
|
||||
const value4 = property != null;
|
||||
if (value4) {
|
||||
value = require(6916) /* metro dependency 6916: GuildBadgeImageSource */;
|
||||
value = value.resolveImageSource(property, guildTraits, a1) != null;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value4;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user