Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,136 @@
|
||||
/* Metro module 11204; source: modules/applications/native/AppInteractionInfoActionSheet.tsx; dependencies: [31, 27, 1885, 1867, 1878, 33, 4501, 1585, 11205, 8042, 566, 8061, 6819, 4573, 1244, 5278, 8743, 1305, 6275, 2] */
|
||||
function _fun85612(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11390:6, offset: 0x01f7570e, size: 286 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const userRecord = importDefault(1885) /* metro dependency 1885: UserRecord */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.jsxs;
|
||||
const env0_10 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({itemContainer: {'flexDirection': 'row',
|
||||
'paddingVertical': 12, 'paddingHorizontal': 16, 'alignItems': 'center'}, itemLabel: {'flexDirection': 'column',
|
||||
'alignItems': 'flex-start', 'paddingLeft': 12}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/applications/native/AppInteractionInfoActionSheet.tsx');
|
||||
exports.default = AppInteractionInfoActionSheet;
|
||||
}
|
||||
|
||||
function AppInteractionInfoActionSheet({message, guildId, onBack}) { // fn#85613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11390:480, offset: 0x01f7582c, size: 1537 bytes, params: 2, frame: 37
|
||||
var r17;
|
||||
var r6;
|
||||
var r5;
|
||||
var userRecord;
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
var items5;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var username;
|
||||
var items2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var format;
|
||||
var ShLXXB;
|
||||
var items3;
|
||||
var items4;
|
||||
var object2;
|
||||
var items6;
|
||||
var items7;
|
||||
let env0_3 = undefined;
|
||||
const styles = useStyles();
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const binding = env0_3;
|
||||
const useMemo = binding.useMemo;
|
||||
let object = [onBack];
|
||||
const value3 = Reflect.apply(useMemo, binding, [_fun85614, object]);
|
||||
let interactionMetadata = message.interactionMetadata;
|
||||
const r1 = interactionMetadata == null ? undefined : interactionMetadata.authorizing_integration_owners[(require(8042) /* metro dependency 8042: ApplicationIntegrationType */).ApplicationIntegrationType.USER_INSTALL];
|
||||
interactionMetadata = message.interactionMetadata;
|
||||
env0_3 = interactionMetadata == null ? undefined : interactionMetadata.authorizing_integration_owners[(require(8042) /* metro dependency 8042: ApplicationIntegrationType */).ApplicationIntegrationType.GUILD_INSTALL];
|
||||
interactionMetadata = message.interactionMetadata;
|
||||
const env0_4 = interactionMetadata == null ? undefined : interactionMetadata.user.id;
|
||||
const user2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], _fun85615);
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun85616);
|
||||
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getUser(id);
|
||||
});
|
||||
env0_3.useEffect(_fun85618, [user2, r1]);
|
||||
if (user != null) {
|
||||
r17 = user;
|
||||
} else {
|
||||
userRecord = new UserRecord(message.interactionMetadata?.user);
|
||||
}
|
||||
if (guild != null) {
|
||||
var viewBindingProps = {style: styles.itemContainer};
|
||||
items3 = [((Component) => <Component guild={guild} size={(require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes.SMALL_32} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */)];
|
||||
var viewBindingProps2 = {style: styles.itemLabel};
|
||||
items4 = [<Text variant="text-md/semibold" color="mobile-text-heading-primary">{guild.name}</Text>];
|
||||
items4[1] = <Text variant="text-xs/medium" color="text-subtle">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.ShLXXB,
|
||||
|
||||
{application: message.author.username})}</Text>;
|
||||
items3[1] = <View {...viewBindingProps2}>{items4}</View>;
|
||||
r6 = <View {...viewBindingProps}>{items3}</View>;
|
||||
} else if (user2 != null) {
|
||||
object = {onPress: onPress_85619};
|
||||
var viewBindingProps = {style: styles.itemContainer};
|
||||
items5 = [((Avatar) => <Avatar user={user2} size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.REFRESH_MEDIUM_32} guildId={guildId} />)((require(1305) /* metro dependency 1305: native */).Avatar)];
|
||||
var viewBindingProps2 = {style: styles.itemLabel};
|
||||
username = user2.username;
|
||||
items2 = [<Text variant="text-md/semibold" color="mobile-text-heading-primary">{username}</Text>];
|
||||
format = intl.format;
|
||||
ShLXXB = (require(1244) /* metro dependency 1244: indexNative */).t.ShLXXB;
|
||||
username = message.author.username;
|
||||
items2[1] = <Text variant="text-xs/medium" color="text-subtle">{Reflect.apply(format, intl, [ShLXXB,
|
||||
{application: username}])}</Text>;
|
||||
items5[1] = <View {...viewBindingProps2}>{items2}</View>;
|
||||
r6 = <PressableOpacity {...object}><View {...viewBindingProps}>{items5}</View></PressableOpacity>;
|
||||
} else {
|
||||
r6 = null;
|
||||
}
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const object3 = {paddingBottom: bottom};
|
||||
if (r17 != null) {
|
||||
object2 = {onPress: onPress_85620};
|
||||
var viewBindingProps = {style: styles.itemContainer};
|
||||
items6 = [((Avatar) => <Avatar user={r17} size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.REFRESH_MEDIUM_32} guildId={guildId} />)((require(1305) /* metro dependency 1305: native */).Avatar)];
|
||||
var viewBindingProps2 = {style: styles.itemLabel};
|
||||
items7 = [<Text variant="text-md/semibold" color="mobile-text-heading-primary">{r17.username}</Text>];
|
||||
items7[1] = <Text variant="text-xs/medium" color="text-subtle">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['04gxNg'])}</Text>;
|
||||
items6[1] = <View {...viewBindingProps2}>{items7}</View>;
|
||||
r5 = <PressableOpacity {...object2}><View {...viewBindingProps}>{items6}</View></PressableOpacity>;
|
||||
} else {
|
||||
r5 = null;
|
||||
}
|
||||
return (
|
||||
<BottomSheet header={value3} bodyStyles={object3}>
|
||||
{r6}
|
||||
{r5}
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun85614() { // fn#85614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11390:601, offset: 0x01f75e2d, size: 51 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component onBack={onBack} />)(importDefault(11205) /* metro dependency 11205: ContextMenuSubmenuActionSheetHeader */);
|
||||
}
|
||||
|
||||
function _fun85618() { // fn#85618, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11390:1107, offset: 0x01f75e96, size: 71 bytes, params: 1, frame: 12
|
||||
var value4;
|
||||
if (user == null && env0_2 != null) {
|
||||
value4 = environment.__proto__;
|
||||
(require(8061) /* metro dependency 8061: UserActionCreators */).getUser(env0_2);
|
||||
}
|
||||
}
|
||||
|
||||
function AppInteractionInfoActionSheetOnPress() { // fn#85619, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11390:1681, owner: AppInteractionInfoActionSheet.onPress, offset: 0x01f75edd, size: 63 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(8743) /* metro dependency 8743: showUserProfileActionSheet */)({userId: user.id,
|
||||
channelId: message.channel_id});
|
||||
}
|
||||
|
||||
function AppInteractionInfoActionSheetOnPress_85620() { // fn#85620, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11390:2268, owner: AppInteractionInfoActionSheet.onPress, offset: 0x01f75f1c, size: 63 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(8743) /* metro dependency 8743: showUserProfileActionSheet */)({userId: user.id,
|
||||
channelId: message.channel_id});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,98 @@
|
||||
/* Metro module 8706; source: modules/applications/native/BotTag.tsx; dependencies: [31, 27, 4238, 33, 4501, 697, 1244, 8707, 4573, 2] */
|
||||
function _fun68373(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8891:6, offset: 0x01c4c41c, size: 426 bytes, params: 8, frame: 25
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const closure = getBotLabel;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const BotTagTypes = (require(4238) /* metro dependency 4238: ApplicationConstants */).BotTagTypes;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {'paddingLeft': 4, 'paddingRight': 4, 'borderRadius': null, 'display': 'flex',
|
||||
'flexDirection': 'row', 'justifyContent': 'center', 'alignItems': 'center', 'gap': 1};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
object3.tag = object4;
|
||||
object3.verifiedTagLeftPadding = {paddingLeft: 1};
|
||||
let BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
||||
object3.tagNormal = {backgroundColor: BACKGROUND_BRAND};
|
||||
let WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
|
||||
object3.tagInverted = {backgroundColor: WHITE};
|
||||
WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
|
||||
object3.tagTextNormal = {color: WHITE};
|
||||
BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
||||
object3.tagTextInverted = {color: BACKGROUND_BRAND};
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object3]);
|
||||
const closure2 = BotTag;
|
||||
closure2.Types = BotTagTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/applications/native/BotTag.tsx');
|
||||
exports.default = closure2;
|
||||
exports.getBotLabel = closure;
|
||||
}
|
||||
|
||||
function getBotLabel() { // fn#68374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8891:593, offset: 0x01c4c5c6, size: 254 bytes, params: 1, frame: 16
|
||||
var r0;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const value = a0;
|
||||
const r2 = value !== undefined ? value : BotTagTypes.BOT;
|
||||
const SYSTEM_DM = BotTagTypes.SYSTEM_DM;
|
||||
if (SYSTEM_DM === r2) {
|
||||
r0 = intl.string(t.lKQ7Wt);
|
||||
} else if (BotTagTypes.OFFICIAL === r2) {
|
||||
r0 = intl.string(t.lKQ7Wt);
|
||||
} else if (BotTagTypes.SERVER === r2) {
|
||||
r0 = intl.string(t.PuJGuM);
|
||||
} else {
|
||||
BotTagTypes.BOT;
|
||||
r0 = intl.string(t['9RNkeF']);
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function BotTag({invertColor, type = BotTagTypes.BOT, style, verified}) { // fn#68375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8891:865, offset: 0x01c4c6c4, size: 640 bytes, params: 2, frame: 26
|
||||
var r6;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
invertColor = !(invertColor === undefined) && invertColor;
|
||||
const styles = useStyles();
|
||||
const botLabel = getBotLabel(type);
|
||||
const OFFICIAL = BotTagTypes.OFFICIAL;
|
||||
const r2 = type === OFFICIAL || type === BotTagTypes.SYSTEM_DM;
|
||||
const r0 = verified || r2;
|
||||
if (r0) {
|
||||
const CheckmarkSmallBoldIcon = (require(8707) /* metro dependency 8707: CheckmarkSmallBoldIcon */).CheckmarkSmallBoldIcon;
|
||||
r6 = <CheckmarkSmallBoldIcon size="xs" color={(importDefault(697) /* metro dependency 697: native */).colors.WHITE} />;
|
||||
} else {
|
||||
r6 = null;
|
||||
}
|
||||
const r12 = invertColor ? styles.tagInverted : styles.tagNormal;
|
||||
const r10 = invertColor ? styles.tagTextInverted : styles.tagTextNormal;
|
||||
const verifiedTagLeftPadding = r6 != null ? styles.verifiedTagLeftPadding : null;
|
||||
const r4 = r2 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['7s687k']) : r0 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.g76OcH) : type === BotTagTypes.SERVER ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['39trQT']) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qwJHjo);
|
||||
const items2 = [styles.tag, r12, style, verifiedTagLeftPadding];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View
|
||||
style={items2}
|
||||
accessible
|
||||
accessibilityRole="image"
|
||||
accessibilityLabel={r4}
|
||||
>
|
||||
{r6}
|
||||
<Text
|
||||
variant="text-xs/semibold"
|
||||
lineClamp={1}
|
||||
maxFontSizeMultiplier={2}
|
||||
style={[r10]}
|
||||
>
|
||||
{botLabel}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user