Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,82 @@
|
||||
/* Metro module 11867; source: modules/application_commands/native/ApplicationCommandItem.tsx; dependencies: [31, 27, 1945, 11018, 33, 4501, 697, 4584, 566, 11752, 5278, 1244, 5475, 4573, 2] */
|
||||
function _fun90990(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12053:6, offset: 0x0204ed84, size: 243 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 guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
|
||||
const env0_6 = (require(11018) /* metro dependency 11018: ApplicationCommandsConstants */).AUTOCOMPLETE_ROW_HEIGHT;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun90991);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/native/ApplicationCommandItem.tsx');
|
||||
exports.default = _default_90992;
|
||||
}
|
||||
|
||||
function _fun90991(a0) { // fn#90991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12053:216, offset: 0x0204ee77, size: 187 bytes, params: 2, frame: 16
|
||||
const object3 = {};
|
||||
const object5 = {'flexDirection': 'row', 'paddingVertical': 8, 'paddingHorizontal': 16, 'alignItems': 'center'};
|
||||
const Math = global.Math;
|
||||
object5.height = Math.max(a0 * AUTOCOMPLETE_ROW_HEIGHT, AUTOCOMPLETE_ROW_HEIGHT);
|
||||
object3.applicationCommandItem = object5;
|
||||
const INTERACTIVE_BACKGROUND_HOVER = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_BACKGROUND_HOVER;
|
||||
object3.highlightedApplicationCommandItem = {backgroundColor: INTERACTIVE_BACKGROUND_HOVER};
|
||||
const object6 = {'width': 32, 'height': 32, 'borderRadius': null, 'marginRight': 16};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object3.applicationCommandIcon = object6;
|
||||
object3.applicationCommandDescriptionWrapper = {'flexDirection': 'column', 'flexShrink': 1, 'alignSelf': 'flex-end'};
|
||||
object3.applicationCommandSectionName = {'paddingLeft': 16, 'marginLeft': 'auto'};
|
||||
return object3;
|
||||
}
|
||||
|
||||
function _default_90992({command, onPress, section, guildId, showIcon, highlighted}) { // fn#90992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12053:707, offset: 0x0204ef32, size: 688 bytes, params: 2, frame: 28
|
||||
showIcon = showIcon === undefined || showIcon;
|
||||
highlighted = !(highlighted === undefined) && highlighted;
|
||||
const styles = useStyles((require(4584) /* metro dependency 4584: useFontScale */).useFontScale());
|
||||
const member = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildMemberStore], _fun90993);
|
||||
const value6 = env0_3.useMemo(_fun90994, [section, member]);
|
||||
const r8 = member?.nick != null ? member.nick : section?.name;
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const eo8b3e = (require(1244) /* metro dependency 1244: indexNative */).t.eo8b3e;
|
||||
const object = {applicationName: r8};
|
||||
object.commandDescription = command.displayDescription;
|
||||
object.commandName = command.displayName;
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, styles.applicationCommandItem, undefined);
|
||||
copyDataProperties(object4, highlighted ? styles.highlightedApplicationCommandItem : {}, undefined);
|
||||
const items2 = [showIcon && value6 != null && ((Component) => <Component style={styles.applicationCommandIcon} source={value6} />)(importDefault(5475) /* metro dependency 5475: FastImage */)];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[1] = <View style={styles.applicationCommandDescriptionWrapper}><Text lineClamp={1} variant="text-md/semibold" color="mobile-text-heading-primary">{'/ ' + command.displayName}</Text><Text lineClamp={1} variant="text-xs/medium" color="text-default">{command.displayDescription}</Text></View>;
|
||||
items2[2] = <Text style={styles.applicationCommandSectionName} variant="eyebrow" color="text-muted">{r8}</Text>;
|
||||
return (
|
||||
<PressableOpacity
|
||||
accessibilityLabel={Reflect.apply(formatToPlainString, intl, [eo8b3e, object])}
|
||||
style={object4}
|
||||
accessibilityRole="button"
|
||||
onPress={onPress}
|
||||
>
|
||||
{items2}
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun90993() { // fn#90993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12053:854, offset: 0x0204f1e2, size: 79 bytes, params: 1, frame: 13
|
||||
var value3;
|
||||
if (guildId != null) {
|
||||
if (section?.botId != null) {
|
||||
value3 = environment.__proto__;
|
||||
return GuildMemberStore.getMember(guildId, section.botId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun90994() { // fn#90994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12053:948, offset: 0x0204f231, size: 50 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
return (require(11752) /* metro dependency 11752: ApplicationCommandUtils */).getApplicationCommandsIconSource(section,
|
||||
member);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user