Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,225 @@
|
||||
/* Metro module 11855; source: modules/autocompleter/native/Autocomplete.tsx; dependencies: [31, 27, 1867, 3793, 1878, 661, 11018, 33, 4501, 697, 7972, 566, 3995, 1305, 9210, 6238, 6246, 1244, 8366, 6647, 4805, 4573, 5475, 11856, 11049, 5278, 10970, 22, 2] */
|
||||
function _fun90879(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12041:6, offset: 0x0204a4b2, size: 843 bytes, params: 8, frame: 25
|
||||
var object3;
|
||||
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 guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_8 = value.ChannelTypes;
|
||||
const Fonts = value.Fonts;
|
||||
const AUTOCOMPLETE_ROW_HEIGHT = (require(11018) /* metro dependency 11018: ApplicationCommandsConstants */).AUTOCOMPLETE_ROW_HEIGHT;
|
||||
const env0_9 = (require(33) /* metro dependency 33 */).jsx;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {height: AUTOCOMPLETE_ROW_HEIGHT, paddingVertical: 0};
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object4.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object3.row = object4;
|
||||
const INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE;
|
||||
const PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
|
||||
object3.leading = {fontSize: 16, color: INTERACTIVE_TEXT_ACTIVE, fontFamily: PRIMARY_SEMIBOLD};
|
||||
const TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
|
||||
object3.trailing = {fontSize: 14, color: TEXT_MUTED};
|
||||
const PRIMARY_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_400;
|
||||
object3.username = {color: PRIMARY_400};
|
||||
object3.emoji = {'width': 32, 'height': 32};
|
||||
object3.emojiImage = {resizeMode: 'contain'};
|
||||
const TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
|
||||
object3.emojiText = {'lineHeight': 32, 'fontSize': 27, 'textAlign': 'center', color: TEXT_DEFAULT};
|
||||
const object5 = {'width': 56, 'height': 56, 'marginHorizontal': 4, 'justifyContent': 'center',
|
||||
'alignItems': 'center'};
|
||||
const BACKGROUND_MOD_NORMAL = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_NORMAL;
|
||||
object5.backgroundColor = BACKGROUND_MOD_NORMAL;
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object3.stickerContainer = object5;
|
||||
object3.commandChoiceLoadingContainer = {'flex': 1, 'justifyContent': 'center'};
|
||||
const object6 = {};
|
||||
const BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
|
||||
object6.backgroundColor = BACKGROUND_MOD_MUTED;
|
||||
object6.height = 16;
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object6.alignSelf = 'flex-start';
|
||||
object3.commandChoiceLoadingItem = object6;
|
||||
object3.autocompleteIcon = {opacity: 0.6};
|
||||
const env0_10 = Reflect.apply(createStyles, value, [object3]);
|
||||
object3 = {User: User_90881, Global: Global, Role: Role_90884, Channel: Channel_90885, Emoji: Emoji_90886,
|
||||
EmojiPremiumUpsell: EmojiPremiumUpsell, Choice: Choice, ChoiceLoading: ChoiceLoading, Sticker: Sticker,
|
||||
Label: Label_90892};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/autocompleter/native/Autocomplete.tsx');
|
||||
exports.default = object3;
|
||||
exports.AUTOCOMPLETE_STICKER_NODE_SIZE = 56;
|
||||
exports.AUTOCOMPLETE_STICKER_NODE_MARGIN = 4;
|
||||
}
|
||||
|
||||
function AutocompleteLabel(a0) { // fn#90880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12041:1127, offset: 0x0204a7fd, size: 81 bytes, params: 2, frame: 15
|
||||
const styles = useStyles();
|
||||
const FormRow = (require(7972) /* metro dependency 7972: native */).FormRow;
|
||||
const Label = FormRow.Label;
|
||||
return <Label style={styles.leading} text={a0.text} />;
|
||||
}
|
||||
|
||||
function User_90881({user, nick, status, guildId, onPress}) { // fn#90881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12041:1242, offset: 0x0204a84e, size: 391 bytes, params: 2, frame: 25
|
||||
var object2;
|
||||
const styles = useStyles();
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([RelationshipStore], _fun90882);
|
||||
const FormRow = (require(7972) /* metro dependency 7972: native */).FormRow;
|
||||
object2 = {DEPRECATED_style: styles.row, onPress: onPress, accessibilityRole: 'menuitem'};
|
||||
let r10 = nick ?? value2;
|
||||
r10 = r10 ?? (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(user);
|
||||
object2.label = <AutocompleteLabel text={r10} />;
|
||||
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
|
||||
const SMALL = AvatarSizes.SMALL;
|
||||
object2.leading = <Avatar status={status} user={user} size={SMALL} guildId={guildId} autoStatusCutout />;
|
||||
const discordTag = importDefault(9210) /* metro dependency 9210: DiscordTag */;
|
||||
const username = styles.username;
|
||||
object2.trailing = ((Component) => <Component user={user} usernameStyle={[styles.trailing,
|
||||
username]} discriminatorStyle={styles.trailing} />)(discordTag);
|
||||
return <FormRow {...object2} />;
|
||||
}
|
||||
|
||||
function Global({text, description, onPress}) { // fn#90883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12041:1759, offset: 0x0204aa02, size: 140 bytes, params: 2, frame: 21
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const tableRowProps = {onPress: onPress, accessibilityRole: 'menuitem', label: <AutocompleteLabel text={text} />};
|
||||
const TableRowTrailingText = (require(6246) /* metro dependency 6246: TableRowTrailingTextNative */).TableRowTrailingText;
|
||||
tableRowProps.trailing = <TableRowTrailingText text={description} />;
|
||||
return <TableRow {...tableRowProps} />;
|
||||
}
|
||||
|
||||
function Role_90884({onPress, showDescription, name, colorString}) { // fn#90884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12041:1949, offset: 0x0204aa8e, size: 311 bytes, params: 2, frame: 23
|
||||
var r7;
|
||||
var intl;
|
||||
const styles = useStyles();
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const object2 = {onPress: onPress, accessibilityRole: 'menuitem'};
|
||||
const FormRow = (require(7972) /* metro dependency 7972: native */).FormRow;
|
||||
const Label = FormRow.Label;
|
||||
object2.label = <Label style={[styles.leading,
|
||||
colorString != null ? {color: colorString} : undefined]} text={'@' + name} />;
|
||||
const TableRowTrailingText = (require(6246) /* metro dependency 6246: TableRowTrailingTextNative */).TableRowTrailingText;
|
||||
if (showDescription) {
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r7 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.HrUmDH);
|
||||
} else {
|
||||
r7 = '';
|
||||
}
|
||||
object2.trailing = <TableRowTrailingText text={r7} />;
|
||||
return <TableRow {...object2} />;
|
||||
}
|
||||
|
||||
function Channel_90885({channel, category, onPress}) { // fn#90885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12041:2276, offset: 0x0204abc5, size: 364 bytes, params: 2, frame: 23
|
||||
const styles = useStyles();
|
||||
const getGuild = GuildStore.getGuild;
|
||||
const getGuildId = channel.getGuildId;
|
||||
const value2 = Reflect.apply(getGuild, GuildStore, [Reflect.apply(getGuildId, channel, [])]);
|
||||
const type = channel.type;
|
||||
const GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
|
||||
const r6 = type === GUILD_CATEGORY ? importDefault(8366) /* metro dependency 8366 */ : (require(6647) /* metro dependency 6647: ChannelUtils */).getChannelIconWithGuild(channel,
|
||||
value2);
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const icon = <Icon source={r6} style={styles.autocompleteIcon} />;
|
||||
const useChannelNameModule = require(4805) /* metro dependency 4805: useChannelName */;
|
||||
const channelName = useChannelNameModule.computeChannelName(channel, UserStore, RelationshipStore);
|
||||
const FormRow = (require(7972) /* metro dependency 7972: native */).FormRow;
|
||||
const formRowProps = {onPress: onPress, accessibilityRole: 'menuitem', leading: icon,
|
||||
label: <AutocompleteLabel text={channelName} />};
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
formRowProps.trailing = <Text style={styles.trailing} variant="text-sm/medium" color="text-muted">{category != null && category.name}</Text>;
|
||||
return <FormRow {...formRowProps} />;
|
||||
}
|
||||
|
||||
function Emoji_90886({name, url, surrogates, onPress}) { // fn#90886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12041:2754, offset: 0x0204ad31, size: 299 bytes, params: 2, frame: 21
|
||||
var r5;
|
||||
const styles = useStyles();
|
||||
if (url !== '') {
|
||||
r5 = ((Component) => <Component style={[styles.emoji,
|
||||
styles.emojiImage]} source={{uri: url}} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
|
||||
} else {
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
r5 = <LegacyText style={[styles.emoji, styles.emojiText]} allowFontScaling={false}>{surrogates}</LegacyText>;
|
||||
}
|
||||
const FormRow = (require(7972) /* metro dependency 7972: native */).FormRow;
|
||||
return (
|
||||
<FormRow
|
||||
onPress={onPress}
|
||||
accessibilityRole="menuitem"
|
||||
leading={r5}
|
||||
label={<AutocompleteLabel text={':' + name + ':'} />}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function EmojiPremiumUpsell({results, onPress}) { // fn#90887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12041:3100, offset: 0x0204ae5c, size: 110 bytes, params: 2, frame: 18
|
||||
const FormRow = (require(7972) /* metro dependency 7972: native */).FormRow;
|
||||
return (
|
||||
<FormRow
|
||||
onPress={onPress}
|
||||
accessibilityRole="menuitem"
|
||||
label={((Component) => <Component results={results} />)(importDefault(11856) /* metro dependency 11856: ChannelAutocompleteEmojiUpsell */)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function Choice({choice, onPress}) { // fn#90888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12041:3223, offset: 0x0204aeca, size: 102 bytes, params: 2, frame: 17
|
||||
const FormRow = (require(7972) /* metro dependency 7972: native */).FormRow;
|
||||
return (
|
||||
<FormRow
|
||||
onPress={onPress}
|
||||
accessibilityRole="menuitem"
|
||||
label={<AutocompleteLabel text={choice.displayName} />}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function ChoiceLoading() { // fn#90889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12041:3370, offset: 0x0204af30, size: 167 bytes, params: 1, frame: 21
|
||||
const styles = useStyles();
|
||||
const value2 = env0_3.useMemo(_fun90890, []);
|
||||
const FormRow = (require(7972) /* metro dependency 7972: native */).FormRow;
|
||||
return (
|
||||
<FormRow
|
||||
DEPRECATED_style={styles.row}
|
||||
leading={<View style={styles.commandChoiceLoadingContainer}><View style={[styles.commandChoiceLoadingItem,
|
||||
{width: value2}]} /></View>}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function Sticker({sticker, onPress, onLongPress, isInteracting}) { // fn#90891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12041:3627, offset: 0x0204b007, size: 191 bytes, params: 2, frame: 21
|
||||
const styles = useStyles();
|
||||
const value2 = (require(11049) /* metro dependency 11049: StickersHooks */).useShouldAnimateSticker(isInteracting);
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
return (
|
||||
<PressableOpacity
|
||||
accessibilityRole="menuitem"
|
||||
style={styles.stickerContainer}
|
||||
onPress={onPress}
|
||||
onLongPress={onLongPress}
|
||||
pointerEvents="box-only"
|
||||
>
|
||||
{((Component) => <Component sticker={sticker} size={40} animated={value2} />)(importDefault(10970) /* metro dependency 10970: Sticker */)}
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function Label_90892({label}) { // fn#90892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12041:3931, offset: 0x0204b0c6, size: 77 bytes, params: 2, frame: 17
|
||||
const FormRow = (require(7972) /* metro dependency 7972: native */).FormRow;
|
||||
return <FormRow label={<AutocompleteLabel text={label} />} />;
|
||||
}
|
||||
|
||||
function _fun90882() { // fn#90882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12041:1338, offset: 0x0204a9d5, size: 45 bytes, params: 1, frame: 12
|
||||
const guildIdBinding = guildId;
|
||||
const value2 = null;
|
||||
return value2 == guildIdBinding ? RelationshipStore.getNickname(user.id) : value2;
|
||||
}
|
||||
|
||||
function _fun90890() { // fn#90890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12041:3418, offset: 0x0204afd7, size: 48 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(22) /* metro dependency 22 */).random(100, 300);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user