Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,367 @@
|
||||
/* Metro module 11869; source: modules/application_commands/native/ApplicationCommandBar.tsx; dependencies: [57, 31, 27, 1945, 33, 4501, 697, 6235, 5278, 1244, 1305, 566, 11752, 5475, 4573, 7972, 6266, 11870, 2] */
|
||||
function _fun91003(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12055:6, offset: 0x0204f649, size: 963 bytes, params: 8, frame: 26
|
||||
var object5;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.View;
|
||||
const StyleSheet = value.StyleSheet;
|
||||
const env0_6 = value.ScrollView;
|
||||
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.Fragment;
|
||||
const env0_10 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object5 = {};
|
||||
const object6 = {flexDirection: 'column'};
|
||||
const MOBILE_COMMAND_BAR_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_COMMAND_BAR_BACKGROUND;
|
||||
object6.backgroundColor = MOBILE_COMMAND_BAR_BACKGROUND;
|
||||
const CHAT_INPUT_FLOATING_BORDER_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.CHAT_INPUT_FLOATING_BORDER_RADIUS;
|
||||
object6.borderRadius = CHAT_INPUT_FLOATING_BORDER_RADIUS;
|
||||
const CHAT_INPUT_FLOATING_ACCESSORY_BORDER_WIDTH = (importDefault(697) /* metro dependency 697: native */).modules.mobile.CHAT_INPUT_FLOATING_ACCESSORY_BORDER_WIDTH;
|
||||
object6.borderWidth = CHAT_INPUT_FLOATING_ACCESSORY_BORDER_WIDTH;
|
||||
const MOBILE_FLOATING_ACCESSORY_BORDER = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_FLOATING_ACCESSORY_BORDER;
|
||||
object6.borderColor = MOBILE_FLOATING_ACCESSORY_BORDER;
|
||||
object6.overflow = 'hidden';
|
||||
object5.applicationCommandBar = object6;
|
||||
const object7 = {'width': 24, 'height': 24, 'borderRadius': null, 'marginRight': 16};
|
||||
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
object5.applicationIcon = object7;
|
||||
object5.applicationTopWrapperScrollView = {'flexDirection': 'row', 'alignItems': 'center', 'paddingHorizontal': 16,
|
||||
'paddingVertical': 8};
|
||||
object5.applicationName = {'textAlignVertical': 'center', 'marginRight': 12};
|
||||
const object9 = {'width': null, 'marginVertical': 8, 'marginHorizontal': 12, 'backgroundColor': null,
|
||||
'height': '100%'};
|
||||
object9.width = StyleSheet.hairlineWidth;
|
||||
const BACKGROUND_MOD_NORMAL = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_NORMAL;
|
||||
object9.backgroundColor = BACKGROUND_MOD_NORMAL;
|
||||
object5.applicationOptionalOptionsDivider = object9;
|
||||
object5.applicationOptionalOptionsDividerWithNoRequired = {marginLeft: 4};
|
||||
object5.applicationOptionalOptionsIndicator = {'marginHorizontal': 4, 'paddingVertical': 8};
|
||||
object5.applicationDescriptionContainer = {flexShrink: 1};
|
||||
const MOBILE_COMMAND_BAR_DIVIDER = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_COMMAND_BAR_DIVIDER;
|
||||
object5.applicationDescriptionDivider = {marginLeft: 0, backgroundColor: MOBILE_COMMAND_BAR_DIVIDER};
|
||||
const object10 = {'marginHorizontal': 4, 'padding': 8, 'fontSize': 12, 'alignItems': 'center'};
|
||||
object10.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
const DARK_PRIMARY_800_LIGHT_PRIMARY_300 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_PRIMARY_800_LIGHT_PRIMARY_300;
|
||||
object10.backgroundColor = DARK_PRIMARY_800_LIGHT_PRIMARY_300;
|
||||
object5.applicationCommandOption = object10;
|
||||
const TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
|
||||
object5.applicationCommandOptionText = {color: TEXT_DEFAULT};
|
||||
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
||||
object5.activeCommandOption = {backgroundColor: BACKGROUND_BRAND};
|
||||
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
|
||||
object5.activeCommandOptionText = {color: WHITE};
|
||||
object5.completeCommandOptionText = {opacity: 0.5};
|
||||
const TEXT_FEEDBACK_CRITICAL = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_CRITICAL;
|
||||
object5.errorCommandOptionText = {color: TEXT_FEEDBACK_CRITICAL};
|
||||
object5.optionDescriptionContainer = {'overflow': 'hidden', 'paddingHorizontal': 16, 'paddingVertical': 8,
|
||||
'flexDirection': 'row'};
|
||||
const MOBILE_FLOATING_ACCESSORY_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_FLOATING_ACCESSORY_BACKGROUND;
|
||||
object5.descriptionEllipsis = {marginLeft: 10, backgroundColor: MOBILE_FLOATING_ACCESSORY_BACKGROUND};
|
||||
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
object5.descriptionEllipsisDots = {backgroundColor: INTERACTIVE_TEXT_DEFAULT};
|
||||
const DARK_PRIMARY_660_LIGHT_PRIMARY_300 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_PRIMARY_660_LIGHT_PRIMARY_300;
|
||||
object5.completeCommandOption = {backgroundColor: DARK_PRIMARY_660_LIGHT_PRIMARY_300};
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object5]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/native/ApplicationCommandBar.tsx');
|
||||
exports.default = _default_91009;
|
||||
}
|
||||
|
||||
function ApplicationCommandOptionItem(a0) { // fn#91004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12055:2157, offset: 0x0204fa0c, size: 501 bytes, params: 2, frame: 27
|
||||
const option = a0.option;
|
||||
const optionState = a0.optionState;
|
||||
const value = Object.create(null);
|
||||
value.option = 0;
|
||||
value.optionState = 0;
|
||||
const value2 = copyDataProperties({}, a0, value, undefined);
|
||||
const value4 = undefined;
|
||||
const styles = useStyles();
|
||||
const isActive = optionState == null ? value4 : optionState.isActive;
|
||||
let r9 = isActive != null && isActive;
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.accessibilityLabel = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.evoEHc,
|
||||
{optionName: option.displayName});
|
||||
object2.accessibilityRole = 'button';
|
||||
object2.disabled = r9;
|
||||
const value6 = !r9;
|
||||
object2.style = [styles.applicationCommandOption, r9 && styles.activeCommandOption,
|
||||
(r9 ? value6 : optionState == null || optionState.lastValidationResult == null ? value4 : optionState.lastValidationResult.success) && styles.completeCommandOption];
|
||||
copyDataProperties(object2, value2, value);
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
const items2 = [styles.applicationCommandOptionText];
|
||||
items2[1] = r9 && styles.activeCommandOptionText;
|
||||
items2[2] = (r9 ? value6 : optionState == null || optionState.lastValidationResult == null ? value4 : optionState.lastValidationResult.success) && styles.completeCommandOptionText;
|
||||
r9 = (r9 ? value6 : (optionState == null || optionState.lastValidationResult == null ? value4 : optionState.lastValidationResult.success) === false) && styles.errorCommandOptionText;
|
||||
items2[3] = r9;
|
||||
return (
|
||||
<PressableOpacity {...object2}>
|
||||
<LegacyText style={items2} numberOfLines={1}>
|
||||
{option.displayName}
|
||||
</LegacyText>
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function ApplicationCommandOptionDescription({command, option, optionState}) { // fn#91005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12055:2945, offset: 0x0204fc01, size: 675 bytes, params: 2, frame: 31
|
||||
var r8;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const value3 = (importDefault(6266) /* metro dependency 6266: usePrevious */)(option);
|
||||
const binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value4 = Reflect.apply(useState, binding, [undefined]);
|
||||
const binding2 = env0_3;
|
||||
const value5 = binding2(value4, 2);
|
||||
const property = value5[0];
|
||||
var env0_3 = value5[1];
|
||||
useState = binding.useState;
|
||||
const value6 = binding2(Reflect.apply(useState, binding, [0]), 2);
|
||||
const property2 = value6[0];
|
||||
const env0_5 = value6[1];
|
||||
useState = binding.useState;
|
||||
const value7 = binding2(Reflect.apply(useState, binding, [0]), 2);
|
||||
const property3 = value7[0];
|
||||
const env0_6 = value7[1];
|
||||
binding.useEffect(_fun91006, [value3, option, property2,
|
||||
(importDefault(6266) /* metro dependency 6266: usePrevious */)(property2)]);
|
||||
const value9 = binding.useCallback(_fun91007, [property]);
|
||||
const closure = onLayout_91008;
|
||||
const r5 = property === 1 && property3 === property2;
|
||||
const r6 = r5 ? 'text' : 'button';
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const view = <View style={styles.applicationDescriptionContainer}>{(optionState == null || optionState.lastValidationResult == null ? undefined : optionState.lastValidationResult.error) != null ? ((Text) => <Text lineClamp={property} onLayout={closure} variant="text-sm/medium" color="text-feedback-critical">{optionState.lastValidationResult.error}</Text>)((require(4573) /* metro dependency 4573: Text */).Text) : ((Text) => <Text lineClamp={property} onLayout={closure} variant="text-sm/medium" color="mobile-text-heading-primary">{option != null ? option.displayDescription : command.displayDescription}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</View>;
|
||||
if (property3 === property2) {
|
||||
r8 = null;
|
||||
} else {
|
||||
value = importDefault(11870) /* metro dependency 11870: DescriptionEllipsis */;
|
||||
value = ((Component) => <Component style={styles.descriptionEllipsis} dotStyle={styles.descriptionEllipsisDots} />)(value);
|
||||
r8 = value;
|
||||
}
|
||||
return (
|
||||
<PressableOpacity
|
||||
accessibilityRole={r6}
|
||||
disabled={r5}
|
||||
onPress={value9}
|
||||
>
|
||||
<View style={styles.optionDescriptionContainer}>
|
||||
{view}
|
||||
{r8}
|
||||
</View>
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function _default_91009({command, section, guildId, currentOption, optionStates, onPressOption}) { // fn#91009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12055:4105, offset: 0x0204ff71, size: 1077 bytes, params: 2, frame: 36
|
||||
var r7;
|
||||
var jsxRuntimeEnv0_9Binding;
|
||||
var items3;
|
||||
var intl;
|
||||
const env0_3 = currentOption;
|
||||
const env0_4 = optionStates;
|
||||
const styles = useStyles();
|
||||
const binding = env0_4;
|
||||
const value4 = binding.useRef(null);
|
||||
const env0_8 = binding.useRef({});
|
||||
let useState = binding.useState;
|
||||
const value5 = Reflect.apply(useState, binding, [false]);
|
||||
const binding2 = env0_3;
|
||||
const value6 = binding2(value5, 2);
|
||||
const property = value6[0];
|
||||
const env0_9 = value6[1];
|
||||
useState = binding.useState;
|
||||
const value7 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property2 = value7[0];
|
||||
const env0_10 = value7[1];
|
||||
useState = binding.useState;
|
||||
const value8 = binding2(Reflect.apply(useState, binding, []), 2);
|
||||
const property3 = value8[0];
|
||||
const env0_12 = value8[1];
|
||||
binding.useEffect(_fun91010, [command]);
|
||||
binding.useEffect(_fun91012, [currentOption]);
|
||||
binding.useEffect(_fun91013, [property3, styles]);
|
||||
const value9 = binding.useMemo(_fun91015, [section,
|
||||
(require(566) /* metro dependency 566: flux */).useStateFromStores([GuildMemberStore], _fun91014)]);
|
||||
const env0_14 = binding.useCallback(_fun91016, []);
|
||||
const r12 = currentOption?.name != null ? optionStates[currentOption?.name] : undefined;
|
||||
const items2 = [value9 != null && ((Component) => <Component style={styles.applicationIcon} source={value9} />)(importDefault(5475) /* metro dependency 5475: FastImage */)];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[1] = <Text style={styles.applicationName} lineClamp={1} variant="text-sm/semibold" color="mobile-text-heading-primary">{'/ ' + command.displayName}</Text>;
|
||||
items2[2] = command.options?.map(_fun91017);
|
||||
if (property) {
|
||||
jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
|
||||
items3 = [<View style={[styles.applicationOptionalOptionsDivider,
|
||||
!property2 && styles.applicationOptionalOptionsDividerWithNoRequired]} />];
|
||||
var textProps = {'style': null, 'lineClamp': 1, 'variant': 'eyebrow', 'color': 'text-muted',
|
||||
style: styles.applicationOptionalOptionsIndicator};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
items3[1] = <Text {...textProps}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.U19GM3)}</Text>;
|
||||
items3[2] = command.options?.map(_fun91020);
|
||||
r7 = <>{items3}</>;
|
||||
} else {
|
||||
r7 = null;
|
||||
}
|
||||
items2[3] = r7;
|
||||
const items4 = [<ScrollView ref={value4} contentContainerStyle={styles.applicationTopWrapperScrollView} keyboardShouldPersistTaps="always" showsHorizontalScrollIndicator={false} horizontal>{items2}</ScrollView>];
|
||||
const FormDivider = (require(7972) /* metro dependency 7972: native */).FormDivider;
|
||||
items4[1] = <FormDivider style={styles.applicationDescriptionDivider} />;
|
||||
items4[2] = <ApplicationCommandOptionDescription command={command} option={currentOption} optionState={r12} />;
|
||||
items4[3] = <FormDivider style={styles.applicationDescriptionDivider} />;
|
||||
return (
|
||||
<View style={styles.applicationCommandBar}>
|
||||
{items4}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun91006() { // fn#91006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12055:3159, offset: 0x0204fea4, size: 90 bytes, params: 1, frame: 12
|
||||
if (env0_1 !== option) {
|
||||
env0_5(0);
|
||||
env0_6(0);
|
||||
env0_3(undefined);
|
||||
} else if (env0_4 > 0 && env0_7 === 0) {
|
||||
env0_3(1);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun91007() { // fn#91007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12055:3243, offset: 0x0204fefe, size: 29 bytes, params: 1, frame: 11
|
||||
const binding = env0_3;
|
||||
const value = 1;
|
||||
binding(value !== env0_2 ? value : undefined);
|
||||
}
|
||||
|
||||
function ApplicationCommandOptionDescriptionOnLayout({nativeEvent}) { // fn#91008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12055:3293, owner: ApplicationCommandOptionDescription.onLayout, offset: 0x0204ff1b, size: 86 bytes, params: 2, frame: 13
|
||||
const height = nativeEvent.layout.height;
|
||||
const Math = global.Math;
|
||||
const value = Math.trunc(height);
|
||||
if (env0_2 === undefined || value > env0_4) {
|
||||
env0_5(value);
|
||||
}
|
||||
env0_6(value);
|
||||
}
|
||||
|
||||
function _fun91010() { // fn#91010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12055:4365, offset: 0x020503a6, size: 77 bytes, params: 1, frame: 13
|
||||
const env0_0 = false;
|
||||
const env0_1 = false;
|
||||
const options = command.options;
|
||||
if (options != null) {
|
||||
options.forEach(_fun91011);
|
||||
}
|
||||
env0_9(env0_0);
|
||||
env0_10(env0_1);
|
||||
}
|
||||
|
||||
function _fun91012() { // fn#91012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12055:4481, offset: 0x02050416, size: 40 bytes, params: 1, frame: 13
|
||||
const binding = env0_12;
|
||||
const currentOptionBinding = currentOption;
|
||||
const value2 = undefined;
|
||||
binding(currentOptionBinding == null ? value2 : currentOption.name);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun91013() { // fn#91013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12055:4531, offset: 0x0205043e, size: 104 bytes, params: 1, frame: 13
|
||||
var current;
|
||||
const value2 = null;
|
||||
const r4 = value2 != env0_11 ? env0_8.current[env0_11] : value2;
|
||||
if (value2 != r4) {
|
||||
current = env0_7.current;
|
||||
if (value2 != current) {
|
||||
current.scrollTo({x: r4.x - styles.applicationTopWrapperScrollView.paddingHorizontal, animated: true});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun91014() { // fn#91014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12055:4734, offset: 0x020504a6, 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 _fun91015() { // fn#91015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12055:4828, offset: 0x020504f5, size: 50 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
return (require(11752) /* metro dependency 11752: ApplicationCommandUtils */).getApplicationCommandsIconSource(section,
|
||||
member);
|
||||
}
|
||||
|
||||
function _fun91016({nativeEvent}, {name}) { // fn#91016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12055:4904, offset: 0x02050527, size: 75 bytes, params: 3, frame: 6
|
||||
const binding = env0_8;
|
||||
const current = binding.current;
|
||||
current[name] = {x: nativeEvent.layout.x, width: nativeEvent.layout.width};
|
||||
binding.current = current;
|
||||
}
|
||||
|
||||
function _fun91017(a0) { // fn#91017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12055:5518, offset: 0x02050572, size: 98 bytes, params: 2, frame: 18
|
||||
var environment;
|
||||
var r0;
|
||||
var object2;
|
||||
var optionStatesBinding;
|
||||
var name;
|
||||
const env0_0 = a0;
|
||||
const required = a0.required;
|
||||
let value = null;
|
||||
if (required) {
|
||||
value = environment.__proto__;
|
||||
object2 = {option: a0, onPress: onPress_91018};
|
||||
optionStatesBinding = optionStates;
|
||||
name = a0.name;
|
||||
object2.optionState = optionStatesBinding[name];
|
||||
object2.onLayout = onLayout_91019;
|
||||
name = a0.name;
|
||||
value = <ApplicationCommandOptionItem {...object2} key={name} />;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun91020(a0) { // fn#91020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12055:5977, offset: 0x02050615, size: 98 bytes, params: 2, frame: 18
|
||||
var environment;
|
||||
var r0;
|
||||
var object2;
|
||||
var optionStatesBinding;
|
||||
var name;
|
||||
const env0_0 = a0;
|
||||
const required = a0.required;
|
||||
let value = null;
|
||||
if (required) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
object2 = {option: a0, onPress: onPress_91021};
|
||||
optionStatesBinding = optionStates;
|
||||
name = a0.name;
|
||||
object2.optionState = optionStatesBinding[name];
|
||||
object2.onLayout = onLayout_91022;
|
||||
name = a0.name;
|
||||
value = <ApplicationCommandOptionItem {...object2} key={name} />;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun91011({required}) { // fn#91011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12055:4418, offset: 0x020503f3, size: 35 bytes, params: 2, frame: 2
|
||||
if (required !== true) {
|
||||
}
|
||||
}
|
||||
|
||||
function onPress_91018() { // fn#91018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12055:5581, offset: 0x020505d4, size: 38 bytes, params: 1, frame: 12
|
||||
const value = environment.__proto__;
|
||||
return onPressOption?.(env0_0);
|
||||
}
|
||||
|
||||
function onLayout_91019(a0) { // fn#91019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12055:5636, offset: 0x020505fa, size: 27 bytes, params: 2, frame: 13
|
||||
return env1_14(a0, env0_0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
/* Metro module 7873; source: modules/application_commands/native/ApplicationCommandBuiltIns.tsx; dependencies: [3793, 1878, 5066, 1909, 5068, 1244, 4805, 4647, 4603, 7067, 2] */
|
||||
function _fun63116(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8051:6, offset: 0x01b70e18, size: 284 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const BuiltInSectionId = (require(5066) /* metro dependency 5066: ApplicationCommandConstants */).BuiltInSectionId;
|
||||
object2 = {'id': '-15', 'untranslatedName': 'leave', 'displayName': 'leave'};
|
||||
const ApplicationCommandType = (require(1909) /* metro dependency 1909: Server */).ApplicationCommandType;
|
||||
const CHAT = ApplicationCommandType.CHAT;
|
||||
object2.type = CHAT;
|
||||
const ApplicationCommandInputType = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).ApplicationCommandInputType;
|
||||
let BUILT_IN = ApplicationCommandInputType.BUILT_IN;
|
||||
object2.inputType = BUILT_IN;
|
||||
BUILT_IN = BuiltInSectionId.BUILT_IN;
|
||||
object2.applicationId = BUILT_IN;
|
||||
Object.defineProperty(object2, 'untranslatedDescription', {get: function() {
|
||||
return require(dependencyMap[5]).intl.string(require(dependencyMap[5]).t['26C4oi']);
|
||||
}, set: undefined, enumerable: true, configurable: true});
|
||||
Object.defineProperty(object2, 'displayDescription', {get: function() {
|
||||
return require(dependencyMap[5]).intl.string(require(dependencyMap[5]).t['26C4oi']);
|
||||
}, set: undefined, enumerable: true, configurable: true});
|
||||
object2.predicate = function({channel}) {
|
||||
return channel != null && channel.isGroupDM();
|
||||
};
|
||||
object2.execute = execute_63120;
|
||||
const items2 = [object2];
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/native/ApplicationCommandBuiltIns.tsx');
|
||||
exports.default = items2;
|
||||
}
|
||||
|
||||
function execute_63120(a0, {channel}) { // fn#63120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8051:533, offset: 0x01b70f8f, size: 457 bytes, params: 3, frame: 24
|
||||
var r6;
|
||||
var r7;
|
||||
var channelName;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var object2;
|
||||
var value2;
|
||||
var format;
|
||||
var SSIVOu;
|
||||
var value4;
|
||||
var defaultImport;
|
||||
var show;
|
||||
if (channel != null) {
|
||||
channelName = (require(4805) /* metro dependency 4805: useChannelName */).computeChannelName(channel, UserStore,
|
||||
RelationshipStore);
|
||||
value2 = intl.formatToPlainString(t.hJ5Ap4, {name: channelName});
|
||||
format = intl.format;
|
||||
SSIVOu = t.SSIVOu;
|
||||
object2 = {name: channelName};
|
||||
if (channel.isManaged()) {
|
||||
value4 = intl.formatToPlainString(t.hVGjEW, {name: channelName});
|
||||
r6 = intl.format(t.IK1Qvs, {name: channelName});
|
||||
r7 = value4;
|
||||
} else {
|
||||
r6 = Reflect.apply(format, intl, [SSIVOu, object2]);
|
||||
r7 = value2;
|
||||
}
|
||||
defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
show = defaultImport.show;
|
||||
object2 = {title: r7, body: r6};
|
||||
object2.confirmText = intl.string(t['26C4oi']);
|
||||
object2.cancelText = intl.string(t['ETE/oC']);
|
||||
object2.onConfirm = onConfirm;
|
||||
Reflect.apply(show, defaultImport, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function execute_63120OnConfirm() { // fn#63121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8051:986, owner: execute_63120.onConfirm, offset: 0x01b71158, size: 158 bytes, params: 1, frame: 18
|
||||
var value;
|
||||
var property;
|
||||
var defaultImport;
|
||||
var closePrivateChannel;
|
||||
var value2;
|
||||
var id;
|
||||
var error;
|
||||
var defaultImport2;
|
||||
var sendBotMessage;
|
||||
var value3;
|
||||
var intl;
|
||||
var string;
|
||||
var t;
|
||||
try {
|
||||
value = environment.__proto__;
|
||||
property = dependencyMap[8];
|
||||
defaultImport = importDefault(property);
|
||||
closePrivateChannel = defaultImport.closePrivateChannel;
|
||||
value2 = environment;
|
||||
id = channel.id;
|
||||
Reflect.apply(closePrivateChannel, defaultImport, [id]);
|
||||
} catch (error) {
|
||||
defaultImport2 = importDefault(dependencyMap[9]);
|
||||
sendBotMessage = defaultImport2.sendBotMessage;
|
||||
value3 = environment;
|
||||
id = channel.id;
|
||||
intl = require(dependencyMap[5]).intl;
|
||||
string = intl.string;
|
||||
t = require(dependencyMap[5]).t;
|
||||
Reflect.apply(sendBotMessage, defaultImport2, [id, Reflect.apply(string, intl, [t['YOsuT/']])]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,658 @@
|
||||
/* Metro module 11861; source: modules/application_commands/native/ApplicationCommandDiscovery.tsx; dependencies: [57, 31, 27, 5066, 11862, 11018, 661, 33, 11863, 4501, 697, 4584, 11864, 8060, 1909, 7869, 3869, 1244, 4863, 22, 11865, 5068, 11866, 11867, 1305, 11080, 2] */
|
||||
function _fun90935(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:6, offset: 0x0204cc54, size: 453 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_90938 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_6 = value.View;
|
||||
const env0_7 = value.SectionList;
|
||||
value = require(5066) /* metro dependency 5066: ApplicationCommandConstants */;
|
||||
const env0_8 = value.BuiltInSectionId;
|
||||
const env0_9 = value.DISCOVERY_COMMANDS_QUERY_LIMIT;
|
||||
const env0_10 = (require(11862) /* metro dependency 11862: ApplicationCommandsCategoriesConstants */).ITEM_HEIGHT;
|
||||
const env0_11 = (require(11018) /* metro dependency 11018: ApplicationCommandsConstants */).AUTOCOMPLETE_ROW_HEIGHT;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_12 = value.AnalyticEvents;
|
||||
const env0_13 = value.SectionListElementType;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_14 = value.jsx;
|
||||
const env0_15 = value.Fragment;
|
||||
const env0_16 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const MOBILE_FLOATING_ACCESSORY_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_FLOATING_ACCESSORY_BACKGROUND;
|
||||
const env0_17 = Reflect.apply(createStyles, value, [{discoveryWrapper: {flex: 1}, noCommandsImage: {'height': 50,
|
||||
'width': 50, 'marginBottom': 16}, noCommandsContainer: {'padding': 0, 'height': 100},
|
||||
commandsList: {backgroundColor: MOBILE_FLOATING_ACCESSORY_BACKGROUND}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/native/ApplicationCommandDiscovery.tsx');
|
||||
exports.default = ApplicationCommandDiscovery;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_90936(a0, a1) { // fn#90936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:382, offset: 0x0204ce19, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun90937;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_90938(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_90938(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_90938(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun90937;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function ApplicationCommandDiscovery({style, onPressSlashItem, onHeightChange, channel, canOnlyUseTextCommands}) { // fn#90939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:1644, offset: 0x0204cf8d, size: 1066 bytes, params: 2, frame: 33
|
||||
const styles = useStyles();
|
||||
const value2 = (require(4584) /* metro dependency 4584: useFontScale */).useFontScale();
|
||||
const Math = global.Math;
|
||||
const value3 = Math.max(value2 * AUTOCOMPLETE_ROW_HEIGHT, AUTOCOMPLETE_ROW_HEIGHT);
|
||||
const env0_4 = value3;
|
||||
let binding = env0_5;
|
||||
const value5 = binding.useRef(null);
|
||||
var env0_5 = value5;
|
||||
const [property, property2] = env0_4(binding.useState(0), 2);
|
||||
const env0_8 = binding.useRef(false);
|
||||
const value8 = (require(11864) /* metro dependency 11864: ApplicationCommandDiscoveryManager */).useCommandDiscoveryManager(function(a0) {
|
||||
return a0.initialSectionId;
|
||||
});
|
||||
const applicationCommandQueryApiModule = importAll(8060) /* metro dependency 8060: ApplicationCommandQueryApi */;
|
||||
const useDiscovery = applicationCommandQueryApiModule.useDiscovery;
|
||||
const object2 = {};
|
||||
object2.context = {channel: channel, type: 'channel'};
|
||||
const object4 = {};
|
||||
const ApplicationCommandType = (require(1909) /* metro dependency 1909: Server */).ApplicationCommandType;
|
||||
const CHAT = ApplicationCommandType.CHAT;
|
||||
object4.commandTypes = [CHAT];
|
||||
const BuiltInCommandFilter = (require(7869) /* metro dependency 7869: ApplicationCommandQueryTypes */).BuiltInCommandFilter;
|
||||
object4.builtIns = canOnlyUseTextCommands ? BuiltInCommandFilter.ONLY_TEXT : BuiltInCommandFilter.ALLOW;
|
||||
object4.applicationCommands = !canOnlyUseTextCommands;
|
||||
object2.filters = object4;
|
||||
object2.options = {'placeholderCount': 3, 'limit': null, 'includeFrecency': true,
|
||||
limit: DISCOVERY_COMMANDS_QUERY_LIMIT};
|
||||
object2.allowFetch = true;
|
||||
const value9 = Reflect.apply(useDiscovery, applicationCommandQueryApiModule, [object2]);
|
||||
const sectionDescriptors = value9.sectionDescriptors;
|
||||
const env0_11 = value9.activeSections;
|
||||
const commandsByActiveSection = value9.commandsByActiveSection;
|
||||
const env0_13 = value9.hasMoreAfter;
|
||||
const loading = value9.loading;
|
||||
const filteredSectionId = value9.filteredSectionId;
|
||||
const env0_15 = value9.scrollDown;
|
||||
const filterSection = value9.filterSection;
|
||||
binding = env0_5;
|
||||
binding.useEffect(_fun90941, [filterSection, value8, property2, sectionDescriptors]);
|
||||
binding.useEffect(_fun90943, []);
|
||||
binding.useEffect(_fun90945, [commandsByActiveSection, onHeightChange, value3]);
|
||||
const value10 = binding.useCallback(_fun90948, [sectionDescriptors, filterSection, filteredSectionId]);
|
||||
const value11 = binding.useCallback(_fun90949, []);
|
||||
const value12 = binding.useCallback(_fun90950, []);
|
||||
const value13 = binding.useCallback(_fun90951, []);
|
||||
const env0_19 = binding.useMemo(_fun90955, [binding.useMemo(_fun90952, [sectionDescriptors, commandsByActiveSection,
|
||||
value3])]);
|
||||
return (
|
||||
<View style={[styles.discoveryWrapper, style]}>
|
||||
<SectionList
|
||||
ref={value5}
|
||||
sections={commandsByActiveSection}
|
||||
style={styles.commandsList}
|
||||
onScrollBeginDrag={value11}
|
||||
onScrollEndDrag={value12}
|
||||
onMomentumScrollEnd={value13}
|
||||
onScroll={onScroll_90959}
|
||||
scrollEventThrottle={16}
|
||||
keyExtractor={function(a0) {
|
||||
return a0.id;
|
||||
}}
|
||||
maintainVisibleContentPosition={loading ? {minIndexForVisible: 1} : null}
|
||||
renderItem={renderItem_90961}
|
||||
renderSectionHeader={renderSectionHeader_90964}
|
||||
getItemLayout={binding.useCallback(_fun90957, [value3])}
|
||||
stickySectionHeadersEnabled
|
||||
/>
|
||||
{binding.useMemo(_fun90958, [channel.guild_id, value10, sectionDescriptors, property])}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun90941() { // fn#90941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:2428, offset: 0x0204d3c2, size: 80 bytes, params: 1, frame: 13
|
||||
var index;
|
||||
if (env0_9 != null) {
|
||||
filterSection(env0_9);
|
||||
index = sectionDescriptors.findIndex(_fun90942);
|
||||
env0_7(index === -1 ? 0 : index);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun90943() { // fn#90943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:2524, offset: 0x0204d427, size: 135 bytes, params: 1, frame: 17
|
||||
const AccessibilityAnnouncer = (require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */).AccessibilityAnnouncer;
|
||||
const announce = AccessibilityAnnouncer.announce;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
Reflect.apply(announce, AccessibilityAnnouncer,
|
||||
[intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2wfLMm'])]);
|
||||
const appAnalyticsUtilsModule = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
const trackWithMetadata = appAnalyticsUtilsModule.trackWithMetadata;
|
||||
const APPLICATION_COMMAND_BROWSER_OPENED = AnalyticEvents.APPLICATION_COMMAND_BROWSER_OPENED;
|
||||
Reflect.apply(trackWithMetadata, appAnalyticsUtilsModule, [APPLICATION_COMMAND_BROWSER_OPENED]);
|
||||
return _fun90944;
|
||||
}
|
||||
|
||||
function _fun90945() { // fn#90945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:2749, offset: 0x0204d4d4, size: 51 bytes, params: 1, frame: 14
|
||||
if (onHeightChange != null) {
|
||||
onHeightChange(((a0, a1) => {
|
||||
var r0;
|
||||
var env0_0 = a1;
|
||||
var value = 0;
|
||||
if (value === a0.length) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = a0.reduce(_fun90947, value);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
})(commandsByActiveSection, env0_4));
|
||||
}
|
||||
}
|
||||
|
||||
function _fun90948(a0) { // fn#90948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:2980, offset: 0x0204d5b9, size: 138 bytes, params: 2, frame: 13
|
||||
var value2;
|
||||
const property = sectionDescriptors[a0];
|
||||
let id = property.id;
|
||||
if (id === filteredSectionId) {
|
||||
filterSection(null);
|
||||
env0_7(0);
|
||||
} else {
|
||||
id = property.id;
|
||||
value2 = environment.__proto__;
|
||||
if (id === BuiltInSectionId.FRECENCY) {
|
||||
filterSection(null);
|
||||
env0_7(0);
|
||||
} else {
|
||||
filterSection(property.id);
|
||||
env0_7(a0);
|
||||
}
|
||||
}
|
||||
const value = environment.__proto__;
|
||||
(require(11864) /* metro dependency 11864: ApplicationCommandDiscoveryManager */).updateInitialSectionId(undefined);
|
||||
}
|
||||
|
||||
function _fun90949() { // fn#90949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:3122, offset: 0x0204d643, size: 63 bytes, params: 1, frame: 12
|
||||
env0_8.current = true;
|
||||
const appAnalyticsUtilsModule = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
||||
const trackWithMetadata = appAnalyticsUtilsModule.trackWithMetadata;
|
||||
const APPLICATION_COMMAND_BROWSER_SCROLLED = AnalyticEvents.APPLICATION_COMMAND_BROWSER_SCROLLED;
|
||||
Reflect.apply(trackWithMetadata, appAnalyticsUtilsModule, [APPLICATION_COMMAND_BROWSER_SCROLLED]);
|
||||
}
|
||||
|
||||
function _fun90950({nativeEvent}) { // fn#90950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:3231, offset: 0x0204d682, size: 67 bytes, params: 2, frame: 5
|
||||
if (nativeEvent.contentOffset.y === nativeEvent.targetContentOffset?.y) {
|
||||
env0_8.current = false;
|
||||
}
|
||||
}
|
||||
|
||||
function _fun90951() { // fn#90951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:3363, offset: 0x0204d6c5, size: 19 bytes, params: 1, frame: 2
|
||||
env0_8.current = false;
|
||||
}
|
||||
|
||||
function _fun90952() { // fn#90952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:3400, offset: 0x0204d6d8, size: 83 bytes, params: 1, frame: 15
|
||||
var environment;
|
||||
var r2;
|
||||
var value3;
|
||||
var value4;
|
||||
const closure = _loop_90953;
|
||||
let value = environment.__proto__;
|
||||
value = _createForOfIteratorHelperLoose_90936(sectionDescriptors);
|
||||
const value2 = value();
|
||||
let done = value2.done;
|
||||
if (!done) {
|
||||
for (r2 = value2; true; r2 = value4) {
|
||||
value3 = r2.value;
|
||||
closure(value3);
|
||||
value4 = value();
|
||||
done = value4.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return [];
|
||||
}
|
||||
|
||||
function _fun90955() { // fn#90955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:3696, offset: 0x0204d7e8, size: 51 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(22) /* metro dependency 22 */).throttle(_fun90956, 100);
|
||||
}
|
||||
|
||||
function _fun90957(a0, a1) { // fn#90957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:3815, offset: 0x0204d8a4, size: 446 bytes, params: 3, frame: 30
|
||||
var r13;
|
||||
var r14;
|
||||
var r15;
|
||||
var r16;
|
||||
var r3;
|
||||
var r4;
|
||||
var r7;
|
||||
var r5;
|
||||
var value5;
|
||||
var value6;
|
||||
var data;
|
||||
var length;
|
||||
var value7;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
var value11;
|
||||
var value12;
|
||||
var value13;
|
||||
var value14;
|
||||
var value15;
|
||||
var FOOTER;
|
||||
var HEADER;
|
||||
const APPLICATION_SECTION_HEADER_HEIGHT = (require(11863) /* metro dependency 11863: ApplicationSectionHeader */).APPLICATION_SECTION_HEADER_HEIGHT;
|
||||
var object2;
|
||||
if (a0 == null) {
|
||||
object2 = {'length': 0, 'offset': 0};
|
||||
} else {
|
||||
var value = environment.__proto__;
|
||||
var ROW = SectionListElementType.ROW;
|
||||
var value2 = _createForOfIteratorHelperLoose_90936(a0);
|
||||
var value3 = value2();
|
||||
var done = value3.done;
|
||||
var value4 = 0;
|
||||
if (done) {
|
||||
r3 = value4;
|
||||
r4 = value4;
|
||||
r7 = ROW;
|
||||
} else {
|
||||
r13 = value4;
|
||||
r14 = value4;
|
||||
r15 = value4;
|
||||
r16 = value3;
|
||||
loopExit2: while (true) {
|
||||
value5 = r16.value;
|
||||
value6 = r15 + r14;
|
||||
data = value5.data;
|
||||
length = data.length;
|
||||
if (value6 + length + r13 + 1 >= a1) {
|
||||
if (a1 === r15 + r14 + r13) {
|
||||
HEADER = SectionListElementType.HEADER;
|
||||
r3 = r15;
|
||||
r4 = r14;
|
||||
r7 = HEADER;
|
||||
break loopExit2;
|
||||
}
|
||||
value11 = r15 + r14;
|
||||
if (a1 === value11 + value5.data.length + r13 + 1) {
|
||||
value14 = r15 + 1;
|
||||
value15 = r14 + value5.data.length;
|
||||
FOOTER = SectionListElementType.FOOTER;
|
||||
r3 = value14;
|
||||
r4 = value15;
|
||||
r7 = FOOTER;
|
||||
break loopExit2;
|
||||
}
|
||||
value12 = r15 + 1;
|
||||
value13 = r14 + (a1 - value12 - r14 - r13);
|
||||
ROW = SectionListElementType.ROW;
|
||||
r3 = value12;
|
||||
r4 = value13;
|
||||
r7 = ROW;
|
||||
break loopExit2;
|
||||
}
|
||||
value7 = r15 + 1;
|
||||
data = value5.data;
|
||||
length = data.length;
|
||||
value8 = r14 + length;
|
||||
value9 = r13 + 1;
|
||||
value10 = value2();
|
||||
done = value10.done;
|
||||
if (done) {
|
||||
r3 = value7;
|
||||
r4 = value8;
|
||||
r7 = ROW;
|
||||
break loopExit2;
|
||||
}
|
||||
r13 = value9;
|
||||
r14 = value8;
|
||||
r15 = value7;
|
||||
r16 = value10;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
ROW = SectionListElementType.ROW;
|
||||
if (ROW === r7) {
|
||||
r5 = env0_4;
|
||||
} else if (SectionListElementType.HEADER === r7) {
|
||||
r5 = APPLICATION_SECTION_HEADER_HEIGHT;
|
||||
} else {
|
||||
SectionListElementType.FOOTER;
|
||||
r5 = value4;
|
||||
}
|
||||
object2 = {length: r5};
|
||||
value = r3 * APPLICATION_SECTION_HEADER_HEIGHT;
|
||||
object2.offset = value + r4 * env0_4;
|
||||
}
|
||||
object2.index = a1;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun90958() { // fn#90958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:4358, offset: 0x0204da62, size: 82 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component onPressSection={env0_17} sections={sectionDescriptors} selectedIndex={env0_6} guildId={channel.guild_id} />)(importDefault(11865) /* metro dependency 11865: ApplicationCommandsCategories */);
|
||||
}
|
||||
|
||||
function ApplicationCommandDiscoveryOnScroll({nativeEvent}) { // fn#90959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:4624, owner: ApplicationCommandDiscovery.onScroll, offset: 0x0204dab4, size: 341 bytes, params: 2, frame: 23
|
||||
var r2;
|
||||
var length;
|
||||
var height;
|
||||
var scrollToLocation;
|
||||
var object2;
|
||||
var Math;
|
||||
var max;
|
||||
var commandsByActiveSectionBinding;
|
||||
var value3;
|
||||
const layoutMeasurement = nativeEvent.layoutMeasurement;
|
||||
const contentSize = nativeEvent.contentSize;
|
||||
const contentOffset = nativeEvent.contentOffset;
|
||||
const contentInset = nativeEvent.contentInset;
|
||||
const y = contentOffset.y;
|
||||
env0_19(y);
|
||||
let current = env0_8.current;
|
||||
if (!current) {
|
||||
length = activeSections.length;
|
||||
if (length > 0) {
|
||||
if (y < contentInset.top) {
|
||||
current = env0_5.current;
|
||||
if (current != null) {
|
||||
current.scrollToLocation({'sectionIndex': 0, 'itemIndex': 0, 'viewPosition': 0, 'animated': false});
|
||||
}
|
||||
} else if (y > contentSize.height - layoutMeasurement.height - contentInset.bottom) {
|
||||
current = env0_5.current;
|
||||
if (current != null) {
|
||||
scrollToLocation = current.scrollToLocation;
|
||||
object2 = {};
|
||||
length = activeSections.length;
|
||||
object2.sectionIndex = length - 1;
|
||||
Math = global.Math;
|
||||
max = Math.max;
|
||||
commandsByActiveSectionBinding = commandsByActiveSection;
|
||||
length = commandsByActiveSectionBinding.length;
|
||||
length = commandsByActiveSectionBinding[length - 1].data.length;
|
||||
object2.itemIndex = Reflect.apply(max, Math, [length - 1, 0]);
|
||||
object2.viewPosition = 1;
|
||||
object2.animated = false;
|
||||
Reflect.apply(scrollToLocation, current, [object2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
const hasMoreAfterBinding = hasMoreAfter;
|
||||
if (hasMoreAfterBinding) {
|
||||
height = layoutMeasurement.height;
|
||||
value3 = y + height;
|
||||
height = contentSize.height;
|
||||
r2 = value3 >= height - 3 * env0_4;
|
||||
} else {
|
||||
r2 = hasMoreAfterBinding;
|
||||
}
|
||||
if (r2) {
|
||||
scrollDown();
|
||||
}
|
||||
}
|
||||
|
||||
function ApplicationCommandDiscoveryRenderItem({item, section}) { // fn#90961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:5206, owner: ApplicationCommandDiscovery.renderItem, offset: 0x0204dc09, size: 234 bytes, params: 2, frame: 20
|
||||
var environment;
|
||||
const inputType = item.inputType;
|
||||
let value = environment.__proto__;
|
||||
const ApplicationCommandInputType = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).ApplicationCommandInputType;
|
||||
const PLACEHOLDER = ApplicationCommandInputType.PLACEHOLDER;
|
||||
if (inputType === PLACEHOLDER) {
|
||||
return ((Component) => <Component />)(importDefault(11866) /* metro dependency 11866: ApplicationCommandLoadingItem */);
|
||||
}
|
||||
const value3 = sectionDescriptors.find(function({id}) {
|
||||
return id === item.applicationId;
|
||||
});
|
||||
value = importDefault(11867) /* metro dependency 11867: ApplicationCommandItem */;
|
||||
const applicationId = item.applicationId;
|
||||
section = section.section;
|
||||
return ((Component) => <Component command={item} onPress={onPress_90963} section={value3} showIcon={applicationId !== section.id} guildId={channel.guild_id} />)(value);
|
||||
}
|
||||
|
||||
function ApplicationCommandDiscoveryRenderSectionHeader({section}) { // fn#90964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:5527, owner: ApplicationCommandDiscovery.renderSectionHeader, offset: 0x0204dd29, size: 312 bytes, params: 2, frame: 26
|
||||
var r5;
|
||||
var ThemedEmptyState;
|
||||
var object3;
|
||||
var intl;
|
||||
var format;
|
||||
var WoQXT6;
|
||||
var stylesBinding;
|
||||
const value = environment.__proto__;
|
||||
const jsxRuntimeEnv1_15Binding = jsxRuntimeEnv1_15;
|
||||
const value3 = ((Component) => <Component section={section.section} guildId={channel.guild_id} key={section.section.id} />)(importDefault(11863) /* metro dependency 11863: ApplicationSectionHeader */);
|
||||
const value4 = section.data.length === 0;
|
||||
if (value4) {
|
||||
ThemedEmptyState = (require(1305) /* metro dependency 1305: native */).ThemedEmptyState;
|
||||
var themedEmptyStateProps = {lightSource: importDefault(11080) /* metro dependency 11080 */,
|
||||
darkSource: importDefault(11080) /* metro dependency 11080 */};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
format = intl.format;
|
||||
WoQXT6 = (require(1244) /* metro dependency 1244: indexNative */).t.WoQXT6;
|
||||
section = section.section;
|
||||
themedEmptyStateProps.body = Reflect.apply(format, intl, [WoQXT6, {applicationName: section.name}]);
|
||||
stylesBinding = styles;
|
||||
themedEmptyStateProps.containerStyle = stylesBinding.noCommandsContainer;
|
||||
themedEmptyStateProps.imageStyle = stylesBinding.noCommandsImage;
|
||||
r5 = <ThemedEmptyState {...themedEmptyStateProps} />;
|
||||
} else {
|
||||
r5 = value4;
|
||||
}
|
||||
return (
|
||||
<>
|
||||
{value3}
|
||||
{r5}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun90942({id}) { // fn#90942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:2469, offset: 0x0204d412, size: 21 bytes, params: 2, frame: 2
|
||||
return id === env1_9;
|
||||
}
|
||||
|
||||
function _fun90944() { // fn#90944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:2683, offset: 0x0204d4ae, size: 38 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
(require(11864) /* metro dependency 11864: ApplicationCommandDiscoveryManager */).updateInitialSectionId(undefined);
|
||||
}
|
||||
|
||||
function _fun90946(a0, a1) { // fn#90946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:2766, offset: 0x0204d507, size: 46 bytes, params: 3, frame: 14
|
||||
var r0;
|
||||
const env0_0 = a1;
|
||||
const length = a0.length;
|
||||
let value = 0;
|
||||
if (value === length) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = a0.reduce(_fun90947, value);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _loop_90953(a0) { // fn#90953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:3430, offset: 0x0204d72b, size: 157 bytes, params: 2, frame: 13
|
||||
var environment;
|
||||
var value2;
|
||||
const env0_0 = a0;
|
||||
let value = environment.__proto__;
|
||||
const index = commandsByActiveSection.findIndex(_fun90954);
|
||||
if (index >= 0) {
|
||||
value = commandsByActiveSection[index].data.length * env1_4;
|
||||
value2 = environment.__proto__.__proto__;
|
||||
value += (require(11863) /* metro dependency 11863: ApplicationSectionHeader */).APPLICATION_SECTION_HEADER_HEIGHT;
|
||||
value += env0_0;
|
||||
env0_1.push(value);
|
||||
} else {
|
||||
env0_1.push(env0_0);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun90956(a0) { // fn#90956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:3720, offset: 0x0204d81b, size: 137 bytes, params: 2, frame: 17
|
||||
var r3;
|
||||
var r4;
|
||||
var r2;
|
||||
var value3;
|
||||
var value4;
|
||||
let length = env1_18.length;
|
||||
const value2 = 0;
|
||||
reducibleJoin6: while (true) {
|
||||
if (!(value2 < length)) {
|
||||
r2 = value2;
|
||||
break reducibleJoin6;
|
||||
}
|
||||
if (value2 === env1_18[value2]) {
|
||||
r3 = value2;
|
||||
r4 = value2;
|
||||
} else {
|
||||
if (!(a0 >= env1_18[value2])) {
|
||||
r2 = value2;
|
||||
break reducibleJoin6;
|
||||
}
|
||||
r3 = value2;
|
||||
r4 = value2;
|
||||
}
|
||||
reducibleLoop3: while (true) {
|
||||
value3 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
||||
value4 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
||||
length = env1_18.length;
|
||||
if (value4 < length) {
|
||||
if (value2 === env1_18[value4]) {
|
||||
r3 = value4;
|
||||
r4 = value3;
|
||||
continue reducibleLoop3;
|
||||
}
|
||||
if (a0 >= env1_18[value4]) {
|
||||
r3 = value4;
|
||||
r4 = value3;
|
||||
continue reducibleLoop3;
|
||||
}
|
||||
r2 = value3;
|
||||
break reducibleJoin6;
|
||||
}
|
||||
r2 = value3;
|
||||
break reducibleJoin6;
|
||||
}
|
||||
}
|
||||
env1_7(r2);
|
||||
}
|
||||
|
||||
function renderItemOnPress_90963() { // fn#90963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:5399, owner: ApplicationCommandDiscovery.renderItem.onPress, offset: 0x0204dcf3, size: 54 bytes, params: 1, frame: 16
|
||||
const value = environment.__proto__;
|
||||
return onPressSlashItem?.(item, env0_2, section.section);
|
||||
}
|
||||
|
||||
function _fun90947(a0, a1) { // fn#90947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12047:2798, offset: 0x0204d535, size: 132 bytes, params: 3, frame: 13
|
||||
var r0;
|
||||
var value;
|
||||
const APPLICATION_SECTION_HEADER_HEIGHT = (require(11863) /* metro dependency 11863: ApplicationSectionHeader */).APPLICATION_SECTION_HEADER_HEIGHT;
|
||||
if (a1.data.length === 0) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
value = APPLICATION_SECTION_HEADER_HEIGHT + 160;
|
||||
r0 = value;
|
||||
} else {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
value = require + ITEM_HEIGHT;
|
||||
value = a0 + (APPLICATION_SECTION_HEADER_HEIGHT + value * a1.data.length);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
/* Metro module 11868; source: modules/application_commands/native/ApplicationCommandList.tsx; dependencies: [31, 27, 11018, 33, 8060, 1909, 7869, 5068, 11866, 11867, 2] */
|
||||
function _fun90995(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12054:6, offset: 0x0204f263, size: 194 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).FlatList;
|
||||
const AUTOCOMPLETE_ROW_HEIGHT = (require(11018) /* metro dependency 11018: ApplicationCommandsConstants */).AUTOCOMPLETE_ROW_HEIGHT;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_7 = 3 * AUTOCOMPLETE_ROW_HEIGHT;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/native/ApplicationCommandList.tsx');
|
||||
exports.default = _default_90996;
|
||||
}
|
||||
|
||||
function _default_90996({style, channel, onPressCommandItem, query, ItemSeparatorComponent, getItemLayout, onCommandsChange}) { // fn#90996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12054:188, offset: 0x0204f325, size: 406 bytes, params: 2, frame: 27
|
||||
const applicationCommandQueryApiModule = importAll(8060) /* metro dependency 8060: ApplicationCommandQueryApi */;
|
||||
const useQuery = applicationCommandQueryApiModule.useQuery;
|
||||
const object3 = {channel: channel, type: 'channel'};
|
||||
const object4 = {text: query};
|
||||
const ApplicationCommandType = (require(1909) /* metro dependency 1909: Server */).ApplicationCommandType;
|
||||
const CHAT = ApplicationCommandType.CHAT;
|
||||
object4.commandTypes = [CHAT];
|
||||
const ScoreMethod = (require(7869) /* metro dependency 7869: ApplicationCommandQueryTypes */).ScoreMethod;
|
||||
const COMMAND_OR_APPLICATION = ScoreMethod.COMMAND_OR_APPLICATION;
|
||||
const value3 = Reflect.apply(useQuery, applicationCommandQueryApiModule, [object3, object4, {'placeholderCount': 3,
|
||||
'limit': 7, scoreMethod: COMMAND_OR_APPLICATION}]);
|
||||
const commands = value3.commands;
|
||||
const sections = value3.sections;
|
||||
const env0_4 = sections;
|
||||
const scrollDown = value3.scrollDown;
|
||||
const binding = env0_4;
|
||||
const value4 = binding.useCallback(_fun90997, [sections, channel.guild_id, onPressCommandItem]);
|
||||
binding.useEffect(_fun91000, [commands?.length, onCommandsChange]);
|
||||
return (
|
||||
<FlatList
|
||||
style={style}
|
||||
keyExtractor={function(a0) {
|
||||
return a0.id;
|
||||
}}
|
||||
data={commands}
|
||||
renderItem={value4}
|
||||
ItemSeparatorComponent={ItemSeparatorComponent}
|
||||
getItemLayout={getItemLayout}
|
||||
onScroll={env0_4.useCallback(_fun91001, [scrollDown])}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun90997({item, index}) { // fn#90997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12054:554, offset: 0x0204f4bb, size: 230 bytes, params: 2, frame: 20
|
||||
const inputType = item.inputType;
|
||||
const ApplicationCommandInputType = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).ApplicationCommandInputType;
|
||||
const PLACEHOLDER = ApplicationCommandInputType.PLACEHOLDER;
|
||||
if (inputType === PLACEHOLDER) {
|
||||
return ((Component) => <Component />)(importDefault(11866) /* metro dependency 11866: ApplicationCommandLoadingItem */);
|
||||
}
|
||||
return ((Component) => <Component command={item} section={sections?.find(function({id}) {
|
||||
return id === item.applicationId;
|
||||
})} onPress={onPress_90999} guildId={channel.guild_id} highlighted={index === 0} />)(importDefault(11867) /* metro dependency 11867: ApplicationCommandItem */);
|
||||
}
|
||||
|
||||
function _fun91000() { // fn#91000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12054:847, offset: 0x0204f5bd, size: 62 bytes, params: 1, frame: 14
|
||||
if (onCommandsChange != null) {
|
||||
onCommandsChange(commands?.length ?? 0);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun91001({nativeEvent}) { // fn#91001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12054:960, offset: 0x0204f5fb, size: 78 bytes, params: 2, frame: 10
|
||||
if (nativeEvent.contentOffset.y + nativeEvent.layoutMeasurement.height >= nativeEvent.contentSize.height - env1_7) {
|
||||
scrollDown();
|
||||
}
|
||||
}
|
||||
|
||||
function onPress_90999() { // fn#90999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12054:764, offset: 0x0204f5a1, size: 28 bytes, params: 1, frame: 13
|
||||
return onPressCommandItem(item, env0_1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/* Metro module 11866; source: modules/application_commands/native/ApplicationCommandLoadingItem.tsx; dependencies: [31, 27, 11018, 33, 4501, 697, 4584, 2] */
|
||||
function _fun90987(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12052:6, offset: 0x0204eb0e, size: 223 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
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 env0_4 = (require(11018) /* metro dependency 11018: ApplicationCommandsConstants */).AUTOCOMPLETE_ROW_HEIGHT;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun90988);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/native/ApplicationCommandLoadingItem.tsx');
|
||||
exports.default = _default_90989;
|
||||
}
|
||||
|
||||
function _fun90988(a0) { // fn#90988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12052:209, offset: 0x0204ebed, size: 227 bytes, params: 2, frame: 16
|
||||
const object3 = {};
|
||||
const object4 = {'flexDirection': 'row', 'paddingVertical': 4, 'paddingHorizontal': 16, 'alignItems': 'center'};
|
||||
const Math = global.Math;
|
||||
object4.height = Math.max(a0 * AUTOCOMPLETE_ROW_HEIGHT, AUTOCOMPLETE_ROW_HEIGHT);
|
||||
object3.applicationCommandLoadingItem = object4;
|
||||
object3.applicationCommandLoadingLeftWrapper = {'flexDirection': 'column', 'width': '75%', 'height': '100%',
|
||||
'justifyContent': 'space-between'};
|
||||
let BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
|
||||
object3.applicationCommandLoadingName = {'backgroundColor': null, 'height': 16, 'borderRadius': 16, 'width': '20%',
|
||||
backgroundColor: BACKGROUND_MOD_STRONG};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object3.applicationCommandLoadingDescription = {'backgroundColor': null, 'height': 16, 'borderRadius': 16,
|
||||
'width': '80%', backgroundColor: BACKGROUND_BASE_LOW};
|
||||
BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
|
||||
object3.applicationCommandLoadingSectionName = {'backgroundColor': null, 'paddingLeft': 16, 'width': '25%',
|
||||
'marginLeft': 'auto', 'height': 16, 'borderRadius': 16, backgroundColor: BACKGROUND_MOD_STRONG};
|
||||
return object3;
|
||||
}
|
||||
|
||||
function _default_90989() { // fn#90989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12052:888, offset: 0x0204ecd0, size: 180 bytes, params: 1, frame: 19
|
||||
const styles = useStyles((require(4584) /* metro dependency 4584: useFontScale */).useFontScale());
|
||||
let view = <View style={styles.applicationCommandLoadingName} />;
|
||||
view = <View style={styles.applicationCommandLoadingLeftWrapper}>{view}<View style={styles.applicationCommandLoadingDescription} /></View>;
|
||||
return (
|
||||
<View style={styles.applicationCommandLoadingItem}>
|
||||
{view}
|
||||
<View style={styles.applicationCommandLoadingSectionName} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,80 @@
|
||||
/* Metro module 11752; source: modules/application_commands/native/ApplicationCommandUtils.tsx; dependencies: [4645, 4644, 5066, 1423, 11753, 11754, 5068, 1860, 11093, 7879, 2] */
|
||||
function _fun90058(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11938:6, offset: 0x02028f7a, size: 175 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(4645) /* metro dependency 4645: DraftStore */).DraftType;
|
||||
const uploadAttachmentStore = importDefault(4644) /* metro dependency 4644: UploadAttachmentStore */;
|
||||
const env0_5 = (require(5066) /* metro dependency 5066: ApplicationCommandConstants */).BuiltInSectionId;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/native/ApplicationCommandUtils.tsx');
|
||||
exports.getApplicationCommandsIconSource = getApplicationCommandsIconSource;
|
||||
exports.openCommandAttachmentPreview = openCommandAttachmentPreview;
|
||||
}
|
||||
|
||||
function getApplicationCommandsIconSource(a0, a1) { // fn#90059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11938:286, offset: 0x02029029, size: 308 bytes, params: 3, frame: 17
|
||||
var r2;
|
||||
var getApplicationIconSource;
|
||||
var application;
|
||||
if (a0 == null) {
|
||||
return null;
|
||||
}
|
||||
const id = a0.id;
|
||||
var value;
|
||||
const BUILT_IN = BuiltInSectionId.BUILT_IN;
|
||||
if (BUILT_IN === id) {
|
||||
return (importDefault(1423) /* metro dependency 1423: AvatarUtils */).makeSource(importDefault(11753) /* metro dependency 11753 */);
|
||||
}
|
||||
const FRECENCY = BuiltInSectionId.FRECENCY;
|
||||
if (FRECENCY === id) {
|
||||
return (importDefault(1423) /* metro dependency 1423: AvatarUtils */).makeSource(importDefault(11754) /* metro dependency 11754 */);
|
||||
}
|
||||
const type = a0.type;
|
||||
const value2 = undefined;
|
||||
const ApplicationCommandSectionType = (require(5068) /* metro dependency 5068: ApplicationCommandTypes */).ApplicationCommandSectionType;
|
||||
const APPLICATION = ApplicationCommandSectionType.APPLICATION;
|
||||
if (type === APPLICATION) {
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
getApplicationIconSource = value.getApplicationIconSource;
|
||||
application = a0.application;
|
||||
value = Reflect.apply(getApplicationIconSource, value, [{id: a0.id, icon: a0.icon,
|
||||
bot: application == null ? value2 : application.bot, botIconFirst: true, guildMember: a1}]);
|
||||
r2 = value;
|
||||
} else {
|
||||
r2 = importDefault(1860) /* metro dependency 1860 */;
|
||||
}
|
||||
return r2;
|
||||
}
|
||||
|
||||
function openCommandAttachmentPreview(a0, a1, a2, a3) { // fn#90060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11938:671, offset: 0x0202915d, size: 132 bytes, params: 5, frame: 17
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const getUpload = UploadAttachmentStore.getUpload;
|
||||
const SlashCommand = DraftType.SlashCommand;
|
||||
const value2 = Reflect.apply(getUpload, UploadAttachmentStore, [a1, a2, SlashCommand]);
|
||||
if (value2 != null) {
|
||||
(importDefault(11093) /* metro dependency 11093: showUploadPreviewActionSheet */)({channelId: a1,
|
||||
disableSpoiler: true, onClose: a3, onRemove: onRemove, upload: value2});
|
||||
}
|
||||
}
|
||||
|
||||
function openCommandAttachmentPreviewOnRemove() { // fn#90061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11938:823, owner: openCommandAttachmentPreview.onRemove, offset: 0x020291e1, size: 189 bytes, params: 1, frame: 18
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
const value2 = undefined;
|
||||
const defaultImport = importDefault(7879) /* metro dependency 7879: UploadAttachmentActionCreators */;
|
||||
const remove = defaultImport.remove;
|
||||
const id = env0_3.id;
|
||||
const SlashCommand = DraftType.SlashCommand;
|
||||
Reflect.apply(remove, defaultImport, [require, id, SlashCommand]);
|
||||
const r5 = env0_0 == null || env0_0.props.activeCommand == null || env0_0.props.activeCommand.options == null ? value2 : env0_0.props.activeCommand.options.find(function({name}) {
|
||||
return name === importDefault;
|
||||
});
|
||||
if (r5 != null) {
|
||||
if (env0_0 != null) {
|
||||
env0_0.insertOrJumpCommandOption(r5, value2, false, {displayText: ''});
|
||||
}
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,161 @@
|
||||
/* Metro module 11695; source: modules/application_commands/native/ApplicationCommandValidationUtils.tsx; dependencies: [2] */
|
||||
function _fun89658(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89658, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11881:6, offset: 0x02019297, size: 109 bytes, params: 8, frame: 16
|
||||
const _arrayLikeToArray_89661 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/native/ApplicationCommandValidationUtils.tsx');
|
||||
exports.getFirstInvalidOption = getFirstInvalidOption;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_89659(a0, a1) { // fn#89659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11881:46, offset: 0x02019304, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun89660;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_89661(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_89661(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_89661(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun89660;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function getFirstInvalidOption({options}, a1) { // fn#89662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11881:1139, offset: 0x02019478, size: 111 bytes, params: 3, frame: 16
|
||||
var r3;
|
||||
var value3;
|
||||
var name;
|
||||
var property;
|
||||
var required;
|
||||
var success;
|
||||
var value4;
|
||||
if (options != null) {
|
||||
var value;
|
||||
value = _createForOfIteratorHelperLoose_89659(options);
|
||||
var value2 = value();
|
||||
var done = value2.done;
|
||||
if (!done) {
|
||||
r3 = value2;
|
||||
reducibleLoop2: while (true) {
|
||||
value3 = r3.value;
|
||||
name = value3.name;
|
||||
property = a1[name];
|
||||
required = value3.required;
|
||||
if (required) {
|
||||
reducibleJoin4: while (true) {
|
||||
if (property == null) {
|
||||
return value3;
|
||||
}
|
||||
break reducibleJoin4;
|
||||
}
|
||||
}
|
||||
if (property != null) {
|
||||
success = property.success;
|
||||
reducibleJoin7: while (true) {
|
||||
if (!success) {
|
||||
return value3;
|
||||
}
|
||||
break reducibleJoin7;
|
||||
}
|
||||
}
|
||||
value4 = value();
|
||||
done = value4.done;
|
||||
if (done) {
|
||||
return null;
|
||||
}
|
||||
r3 = value4;
|
||||
continue reducibleLoop2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,188 @@
|
||||
/* Metro module 11865; source: modules/application_commands/native/ApplicationCommandsCategories.tsx; dependencies: [31, 27, 1310, 1945, 11862, 33, 4501, 697, 566, 11752, 5475, 5278, 1244, 1357, 4081, 4082, 4564, 4002, 2] */
|
||||
function _fun90974(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12051:6, offset: 0x0204e2c5, size: 542 bytes, params: 8, frame: 29
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value2.View;
|
||||
const env0_5 = value2.StyleSheet;
|
||||
const env0_6 = value2.FlatList;
|
||||
const themeStore = importDefault(1310) /* metro dependency 1310: ThemeStore */;
|
||||
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
|
||||
const applicationCommandsCategoriesConstantsModule = require(11862) /* metro dependency 11862: ApplicationCommandsCategoriesConstants */;
|
||||
const ICON_SIZE = applicationCommandsCategoriesConstantsModule.ICON_SIZE;
|
||||
const NODE_SIZE = applicationCommandsCategoriesConstantsModule.NODE_SIZE;
|
||||
const NODE_MARGIN = applicationCommandsCategoriesConstantsModule.NODE_MARGIN;
|
||||
const env0_9 = applicationCommandsCategoriesConstantsModule.ITEM_WIDTH;
|
||||
const value4 = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value4.jsx;
|
||||
const env0_11 = value4.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {'backgroundColor': null, 'borderTopWidth': null, 'borderTopColor': null, 'paddingHorizontal': 8,
|
||||
'paddingVertical': 4, 'flexDirection': 'row', 'alignItems': 'center'};
|
||||
const MOBILE_COMMAND_CATEGORIES_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_COMMAND_CATEGORIES_BACKGROUND;
|
||||
object4.backgroundColor = MOBILE_COMMAND_CATEGORIES_BACKGROUND;
|
||||
const CHAT_INPUT_COMMAND_CATEGORIES_BORDER_TOP_WIDTH = (importDefault(697) /* metro dependency 697: native */).modules.mobile.CHAT_INPUT_COMMAND_CATEGORIES_BORDER_TOP_WIDTH;
|
||||
object4.borderTopWidth = CHAT_INPUT_COMMAND_CATEGORIES_BORDER_TOP_WIDTH;
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object4.borderTopColor = BORDER_SUBTLE;
|
||||
object3.container = object4;
|
||||
object3.categoryImage = {height: ICON_SIZE, width: ICON_SIZE, borderRadius: ICON_SIZE / 2};
|
||||
object3.fadedItem = {opacity: 0.5};
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
object3.activeItem = {opacity: 1, backgroundColor: BACKGROUND_BASE_LOWER};
|
||||
object3.item = {marginVertical: NODE_MARGIN, marginHorizontal: NODE_MARGIN, height: NODE_SIZE, width: NODE_SIZE,
|
||||
borderRadius: NODE_SIZE / 2, alignItems: 'center', justifyContent: 'center'};
|
||||
const env0_12 = Reflect.apply(createStyles, createStylesModule, [object3]);
|
||||
const env0_13 = value.memo(_fun90975);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/native/ApplicationCommandsCategories.tsx');
|
||||
exports.default = _default_90979;
|
||||
}
|
||||
|
||||
function _fun90975({section, handlePressCategory, active, index, guildId}) { // fn#90975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12051:862, offset: 0x0204e4e3, size: 437 bytes, params: 2, frame: 25
|
||||
const styles = useStyles();
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
const value2 = guildId.useMemo(_fun90977, [section, Reflect.apply(useStateFromStores, fluxModule,
|
||||
[[GuildMemberStore], _fun90976])]);
|
||||
const r8 = value2 != null && ((Component) => <Component style={styles.categoryImage} source={value2} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
return (
|
||||
<PressableOpacity
|
||||
onPress={function() {
|
||||
return handlePressCategory(index);
|
||||
}}
|
||||
accessibilityRole="button"
|
||||
accessibilityLabel={active ? Reflect.apply(formatToPlainString, intl, [t.yl24Gd,
|
||||
{applicationName: section.name}]) : Reflect.apply(formatToPlainString, intl, [t['9uqD4O'],
|
||||
{applicationName: section.name}])}
|
||||
key={section.name}
|
||||
>
|
||||
<View style={[styles.item, active ? styles.activeItem : styles.fadedItem]}>
|
||||
{r8}
|
||||
</View>
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function _default_90979({style, sections, onPressSection, selectedIndex, guildId}) { // fn#90979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12051:1535, offset: 0x0204e719, size: 563 bytes, params: 2, frame: 28
|
||||
var r6;
|
||||
var VisualEffectView;
|
||||
var moduleValue2;
|
||||
const styles = useStyles();
|
||||
const mobileVisualRefreshExperimentModule = require(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */;
|
||||
const useMobileVisualRefreshConfig = mobileVisualRefreshExperimentModule.useMobileVisualRefreshConfig;
|
||||
const enabled = Reflect.apply(useMobileVisualRefreshConfig, mobileVisualRefreshExperimentModule,
|
||||
[{location: 'ApplicationCommandsCategories'}]).enabled;
|
||||
const binding = env0_3;
|
||||
var env0_3 = binding.useRef(null);
|
||||
const env0_4 = binding.useRef(null);
|
||||
const env0_5 = binding.useRef(null);
|
||||
const value2 = binding.useRef(null);
|
||||
binding.useEffect(_fun90980, [selectedIndex]);
|
||||
const value3 = binding.useCallback(function(a0) {
|
||||
onPressSection(a0);
|
||||
require(dependencyMap[14]).triggerHapticFeedback(importDefault(dependencyMap[15]).IMPACT_LIGHT);
|
||||
}, [onPressSection]);
|
||||
const value4 = binding.useCallback(_fun90982, []);
|
||||
const value5 = binding.useCallback(_fun90983, []);
|
||||
const value6 = binding.useCallback(function(a0, a1) {
|
||||
return {length: ITEM_WIDTH, offset: ITEM_WIDTH * a1, index: a1};
|
||||
}, []);
|
||||
const value7 = binding.useCallback(_fun90985, [selectedIndex, value3, guildId]);
|
||||
const items2 = [styles.container, style];
|
||||
if (enabled) {
|
||||
r6 = !enabled;
|
||||
} else {
|
||||
VisualEffectView = importDefault(4564) /* metro dependency 4564: VisualEffectView */;
|
||||
moduleValue2 = require(4002) /* metro dependency 4002: shared */;
|
||||
r6 = <VisualEffectView blurTheme={moduleValue2.isThemeDark(ThemeStore.theme) ? 'dark' : 'light'} style={StyleSheet.absoluteFill} />;
|
||||
}
|
||||
return (
|
||||
<View style={items2}>
|
||||
{r6}
|
||||
<FlatList
|
||||
ref={value2}
|
||||
getItemLayout={value6}
|
||||
data={sections}
|
||||
keyboardShouldPersistTaps="always"
|
||||
horizontal
|
||||
keyExtractor={function(a0) {
|
||||
return a0.id;
|
||||
}}
|
||||
renderItem={value7}
|
||||
showsHorizontalScrollIndicator={false}
|
||||
onScroll={value4}
|
||||
onLayout={value5}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun90976() { // fn#90976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12051:977, offset: 0x0204e698, 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 _fun90977() { // fn#90977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12051:1071, offset: 0x0204e6e7, size: 50 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
return (require(11752) /* metro dependency 11752: ApplicationCommandUtils */).getApplicationCommandsIconSource(section,
|
||||
member);
|
||||
}
|
||||
|
||||
function _fun90980() { // fn#90980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12051:1786, offset: 0x0204e94c, size: 135 bytes, params: 1, frame: 12
|
||||
var selectedIndexBinding;
|
||||
var value2;
|
||||
var value3;
|
||||
let current = env0_3.current;
|
||||
if (current != null) {
|
||||
current = env0_4.current;
|
||||
if (current != null) {
|
||||
current = env0_6.current;
|
||||
if (current != null) {
|
||||
current = env0_5.current;
|
||||
if (current != null) {
|
||||
selectedIndexBinding = selectedIndex;
|
||||
value2 = environment.__proto__;
|
||||
value3 = selectedIndexBinding * ITEM_WIDTH;
|
||||
current = env0_4.current;
|
||||
if (value3 > current || value3 < env0_3.current) {
|
||||
current = env0_6.current;
|
||||
current.scrollToOffset({offset: value3});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun90982({nativeEvent}) { // fn#90982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12051:2053, offset: 0x0204ea1e, size: 67 bytes, params: 2, frame: 5
|
||||
const contentOffset = nativeEvent.contentOffset;
|
||||
const layoutMeasurement = nativeEvent.layoutMeasurement;
|
||||
env0_3.current = contentOffset.x;
|
||||
env0_4.current = contentOffset.x + layoutMeasurement.width;
|
||||
}
|
||||
|
||||
function _fun90983({nativeEvent}) { // fn#90983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12051:2176, offset: 0x0204ea61, size: 64 bytes, params: 2, frame: 4
|
||||
const layout = nativeEvent.layout;
|
||||
env0_3.current = 0;
|
||||
env0_4.current = layout.width;
|
||||
env0_5.current = layout.width;
|
||||
}
|
||||
|
||||
function _fun90985({item, index}) { // fn#90985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12051:2339, offset: 0x0204eac0, size: 78 bytes, params: 2, frame: 16
|
||||
return ((Component) => <Component active={index === selectedIndex} section={item} index={index} handlePressCategory={env0_7} guildId={guildId} />)(env1_13);
|
||||
}
|
||||
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
/* Metro module 11862; source: modules/application_commands/native/ApplicationCommandsCategoriesConstants.tsx; dependencies: [2] */
|
||||
function _fun90965(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12048:6, offset: 0x0204de61, size: 114 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/native/ApplicationCommandsCategoriesConstants.tsx');
|
||||
exports.ICON_SIZE = 24;
|
||||
exports.NODE_SIZE = 32;
|
||||
exports.NODE_MARGIN = 4;
|
||||
exports.ITEM_WIDTH = 40;
|
||||
exports.ITEM_HEIGHT = 40;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/* Metro module 11018; source: modules/application_commands/native/ApplicationCommandsConstants.tsx; dependencies: [477, 2] */
|
||||
function _fun84402(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11204:6, offset: 0x01f48922, size: 118 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
value = value.isAndroid();
|
||||
const r1 = value ? 64 : 56;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/native/ApplicationCommandsConstants.tsx');
|
||||
exports.AUTOCOMPLETE_ROW_HEIGHT = 48;
|
||||
exports.AUTOCOMPLETE_EMOJI_ROW_HEIGHT = r1;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
/* Metro module 11863; source: modules/application_commands/native/ApplicationSectionHeader.tsx; dependencies: [31, 27, 1945, 33, 4501, 697, 566, 11752, 1244, 5475, 4573, 2] */
|
||||
function _fun90966(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12049:6, offset: 0x0204ded3, size: 314 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
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 guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
|
||||
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;
|
||||
object2 = {};
|
||||
const MOBILE_FLOATING_ACCESSORY_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_FLOATING_ACCESSORY_BACKGROUND;
|
||||
object2.applicationHeaderWrapper = {'flexDirection': 'row', 'alignItems': 'center', 'height': 32,
|
||||
'backgroundColor': null, 'paddingHorizontal': 16, backgroundColor: MOBILE_FLOATING_ACCESSORY_BACKGROUND};
|
||||
const object4 = {'width': 16, 'height': 16, 'borderRadius': null, 'marginRight': 8};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object2.applicationIcon = object4;
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/native/ApplicationSectionHeader.tsx');
|
||||
exports.default = _default_90967;
|
||||
exports.APPLICATION_SECTION_HEADER_HEIGHT = 32;
|
||||
}
|
||||
|
||||
function _default_90967({section, guildId}) { // fn#90967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12049:438, offset: 0x0204e00d, size: 373 bytes, params: 2, frame: 23
|
||||
const styles = useStyles();
|
||||
const member = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildMemberStore], _fun90968);
|
||||
const applicationCommandsIconSource = (require(11752) /* metro dependency 11752: ApplicationCommandUtils */).getApplicationCommandsIconSource(section,
|
||||
member);
|
||||
const r8 = member?.nick != null ? member.nick : section?.name;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const property = (require(1244) /* metro dependency 1244: indexNative */).t['Ocw/sM'];
|
||||
const object = {applicationName: r8};
|
||||
const r6 = applicationCommandsIconSource != null && ((Component) => <Component style={styles.applicationIcon} source={applicationCommandsIconSource} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View
|
||||
style={styles.applicationHeaderWrapper}
|
||||
accessibilityLabel={Reflect.apply(formatToPlainString, intl, [property, object])}
|
||||
>
|
||||
{r6}
|
||||
<Text variant="eyebrow" color="interactive-text-default">
|
||||
{r8}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun90968() { // fn#90968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12049:508, offset: 0x0204e182, 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/* Metro module 15230; source: modules/application_commands/native/ContextMenuCommandAppScreen.tsx; dependencies: [31, 33, 4501, 697, 5463, 7705, 15229, 8671, 2] */
|
||||
function _fun116514(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15427:6, offset: 0x0248c55d, size: 200 bytes, params: 8, frame: 21
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
const env0_4 = Reflect.apply(createStyles, createStylesModule, [{list: {marginHorizontal: PX_16}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/native/ContextMenuCommandAppScreen.tsx');
|
||||
exports.default = ContextMenuCommandAppScreen;
|
||||
}
|
||||
|
||||
function ContextMenuCommandAppScreen(a0) { // fn#116515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15427:301, offset: 0x0248c625, size: 255 bytes, params: 2, frame: 23
|
||||
const {section, commands, onPressCommand} = a0.route.params;
|
||||
const env0_2 = onPressCommand;
|
||||
const insets = (importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)({includeKeyboardHeight: true}).insets;
|
||||
const value2 = (importDefault(7705) /* metro dependency 7705: useScaledRowHeight */)();
|
||||
const binding = env0_2;
|
||||
const value3 = binding.useMemo(function() {
|
||||
return [commands.length];
|
||||
}, [commands.length]);
|
||||
const value4 = binding.useCallback(_fun116517, [commands, onPressCommand, section]);
|
||||
const styles = useStyles();
|
||||
return ((Component) => <Component style={styles.list} sections={value3} estimatedListSize="windowSize" itemSize={value2} insetEnd={insets.bottom} renderItem={value4} />)(importDefault(8671) /* metro dependency 8671: FastestListAndroid */);
|
||||
}
|
||||
|
||||
function _fun116517(a0, a1) { // fn#116517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15427:515, offset: 0x0248c73a, size: 119 bytes, params: 3, frame: 20
|
||||
const commandsBinding = commands;
|
||||
const property = commandsBinding[a1];
|
||||
return ((Component) => <Component item={property} onPress={onPress_116518} section={section} start={a1 === 0} end={a1 === commandsBinding.length - 1} key={property.id} />)(importDefault(15229) /* metro dependency 15229: ContextMenuCommandItem */);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,131 @@
|
||||
/* Metro module 15229; source: modules/application_commands/native/ContextMenuCommandItem.tsx; dependencies: [31, 27, 33, 4501, 697, 6238, 22, 1244, 11752, 5475, 1909, 4058, 2] */
|
||||
function _fun116508(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116508, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15426:6, offset: 0x0248bfc8, size: 369 bytes, params: 8, frame: 22
|
||||
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 env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object3 = {};
|
||||
const object5 = {'width': 32, 'height': 32};
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object3.commandIcon = object5;
|
||||
let BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
|
||||
object3.loadingIcon = {backgroundColor: BACKGROUND_MOD_MUTED};
|
||||
const object6 = {};
|
||||
BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
|
||||
object6.backgroundColor = BACKGROUND_MOD_MUTED;
|
||||
object6.height = 24;
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
object3.loadingName = object6;
|
||||
const env0_6 = Reflect.apply(createStyles, createStylesModule, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/native/ContextMenuCommandItem.tsx');
|
||||
exports.default = ContextMenuCommandItem;
|
||||
exports.ContextMenuCommandLoadingItem = ContextMenuCommandLoadingItem;
|
||||
exports.ContextMenuCommandEmptyItem = ContextMenuCommandEmptyItem;
|
||||
exports.ContextMenuCommandAppItem = ContextMenuCommandAppItem;
|
||||
}
|
||||
|
||||
function ContextMenuCommandItem({item, onPress, section, start, end}) { // fn#116509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15426:503, offset: 0x0248c139, size: 290 bytes, params: 2, frame: 24
|
||||
const styles = useStyles();
|
||||
const value3 = env0_3.useMemo(_fun116510, [item, section?.name]);
|
||||
const applicationCommandsIconSource = (require(11752) /* metro dependency 11752: ApplicationCommandUtils */).getApplicationCommandsIconSource(section);
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const displayName = item.displayName;
|
||||
const r7 = applicationCommandsIconSource != null && ((Component) => <Component style={styles.commandIcon} source={applicationCommandsIconSource} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
|
||||
const SendMessageIcon = (require(4058) /* metro dependency 4058: SendMessageIcon */).SendMessageIcon;
|
||||
return (
|
||||
<TableRow
|
||||
accessibilityLabel={value3}
|
||||
onPress={onPress}
|
||||
label={displayName}
|
||||
icon={r7}
|
||||
trailing={<SendMessageIcon />}
|
||||
start={start}
|
||||
end={end}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function ContextMenuCommandLoadingItem({start, end}) { // fn#116511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15426:1147, offset: 0x0248c31c, size: 219 bytes, params: 2, frame: 24
|
||||
const styles = useStyles();
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const items2 = [styles.loadingName];
|
||||
let value = importDefault(22) /* metro dependency 22 */;
|
||||
value = value.random(60, 80);
|
||||
items2[1] = {width: '' + value + '%'};
|
||||
return (
|
||||
<TableRow
|
||||
label={<View style={items2} />}
|
||||
icon={<View style={[styles.commandIcon, styles.loadingIcon]} />}
|
||||
start={start}
|
||||
end={end}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function ContextMenuCommandEmptyItem({start, end}) { // fn#116512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15426:1406, offset: 0x0248c3f7, size: 171 bytes, params: 2, frame: 22
|
||||
const styles = useStyles();
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const YSNlV2 = (require(1244) /* metro dependency 1244: indexNative */).t.YSNlV2;
|
||||
return (
|
||||
<TableRow
|
||||
label={Reflect.apply(string, intl, [YSNlV2])}
|
||||
icon={<View style={[styles.commandIcon, styles.loadingIcon]} />}
|
||||
start={start}
|
||||
end={end}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function ContextMenuCommandAppItem({section, onPress, start, end}) { // fn#116513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15426:1634, offset: 0x0248c4a2, size: 187 bytes, params: 2, frame: 22
|
||||
var r6;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const applicationCommandsIconSource = (require(11752) /* metro dependency 11752: ApplicationCommandUtils */).getApplicationCommandsIconSource(section);
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const name = section.name;
|
||||
const value3 = applicationCommandsIconSource != null;
|
||||
if (value3) {
|
||||
value = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
value = ((Component) => <Component style={styles.commandIcon} source={applicationCommandsIconSource} />)(value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value3;
|
||||
}
|
||||
return (
|
||||
<TableRow
|
||||
onPress={onPress}
|
||||
label={name}
|
||||
icon={r6}
|
||||
start={start}
|
||||
end={end}
|
||||
arrow
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun116510() { // fn#116510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15426:602, offset: 0x0248c25b, size: 193 bytes, params: 1, frame: 17
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const type = item.type;
|
||||
const value3 = undefined;
|
||||
const ApplicationCommandType = (require(1909) /* metro dependency 1909: Server */).ApplicationCommandType;
|
||||
const MESSAGE = ApplicationCommandType.MESSAGE;
|
||||
if (MESSAGE === type) {
|
||||
return intl.formatToPlainString(t.Pk4Mz3, {applicationName: section == null ? value3 : section.name,
|
||||
commandName: item.displayName});
|
||||
}
|
||||
const USER = ApplicationCommandType.USER;
|
||||
if (USER === type) {
|
||||
return intl.formatToPlainString(t.Pk4Mz3, {applicationName: section == null ? value3 : section.name,
|
||||
commandName: item.displayName});
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
/* Metro module 15227; source: modules/application_commands/native/ContextMenuCommandNavigator.tsx; dependencies: [31, 27, 33, 9884, 4501, 697, 4884, 5280, 1585, 9603, 1244, 15228, 15230, 2] */
|
||||
function _fun116476(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15424:6, offset: 0x0248ae64, size: 293 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
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;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
const env0_7 = (require(9884) /* metro dependency 9884 */).createNativeStackNavigator();
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object2.container = {flex: 1, backgroundColor: BACKGROUND_BASE_LOWEST};
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
object2.content = {backgroundColor: BACKGROUND_BASE_LOWER};
|
||||
const env0_8 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/native/ContextMenuCommandNavigator.tsx');
|
||||
exports.default = ContextMenuCommandNavigator;
|
||||
}
|
||||
|
||||
function ContextMenuCommandNavigator() { // fn#116477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15424:461, offset: 0x0248af89, size: 351 bytes, params: 1, frame: 26
|
||||
const styles = useStyles();
|
||||
let binding = env0_3;
|
||||
binding.useLayoutEffect(_fun116478, []);
|
||||
const env0_1 = (require(5280) /* metro dependency 5280: NavigatorNative */).useAccessibilityNativeStackOptions();
|
||||
const {left, right} = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)();
|
||||
const items2 = [styles.container];
|
||||
items2[1] = {paddingLeft: left, paddingRight: right};
|
||||
binding = env0_7;
|
||||
const Navigator = binding.Navigator;
|
||||
const object = {screenOptions: screenOptions_116479};
|
||||
let Screen = binding.Screen;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const PHjkRE = (require(1244) /* metro dependency 1244: indexNative */).t.PHjkRE;
|
||||
const screen = <Screen name="root" options={{title: Reflect.apply(string, intl,
|
||||
[PHjkRE])}} getComponent={function() {
|
||||
return require(dependencyMap[11]).default;
|
||||
}} />;
|
||||
Screen = binding.Screen;
|
||||
return (
|
||||
<View style={items2}>
|
||||
<Navigator {...object}>
|
||||
{screen}
|
||||
<Screen
|
||||
name="app"
|
||||
options={function({route}) {
|
||||
route = route.params.section;
|
||||
return {title: route?.name};
|
||||
}}
|
||||
getComponent={function() {
|
||||
return require(dependencyMap[12]).default;
|
||||
}}
|
||||
/>
|
||||
</Navigator>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun116478() { // fn#116478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15424:529, offset: 0x0248b0e8, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (require(4884) /* metro dependency 4884: TTIAnalyticsUtils */).trackAppUIViewed();
|
||||
}
|
||||
|
||||
function ContextMenuCommandNavigatorScreenOptions({navigation, route}) { // fn#116479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15424:748, owner: ContextMenuCommandNavigator.screenOptions, offset: 0x0248b10d, size: 192 bytes, params: 2, frame: 16
|
||||
var r6;
|
||||
var environment;
|
||||
var r2;
|
||||
var value2;
|
||||
var value4;
|
||||
const object2 = {};
|
||||
object2.contentStyle = styles.content;
|
||||
object2.headerShadowVisible = false;
|
||||
object2.headerTitle = headerTitle_116480;
|
||||
object2.headerTitleAlign = 'center';
|
||||
const getState = navigation.getState;
|
||||
if (Reflect.apply(getState, navigation, []).routes[0].key === route.key) {
|
||||
value4 = environment.__proto__;
|
||||
r2 = (require(9603) /* metro dependency 9603: HeaderShared */).getRenderModalCloseImage(navigation);
|
||||
r6 = require;
|
||||
} else {
|
||||
value2 = environment.__proto__;
|
||||
r2 = (require(9603) /* metro dependency 9603: HeaderShared */).getRenderModalBackImage(navigation);
|
||||
}
|
||||
object2.headerLeft = r2;
|
||||
copyDataProperties(object2, env0_1, r6);
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,332 @@
|
||||
/* Metro module 15228; source: modules/application_commands/native/ContextMenuCommandRootScreen.tsx; dependencies: [57, 31, 27, 1867, 5066, 33, 4501, 697, 566, 8060, 7869, 8050, 5463, 7705, 8518, 1244, 4573, 15229, 6984, 8671, 2] */
|
||||
function _fun116484(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15425:6, offset: 0x0248b271, size: 384 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(27) /* metro dependency 27 */).View;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
let value = require(5066) /* metro dependency 5066: ApplicationCommandConstants */;
|
||||
const env0_8 = value.CONTEXT_MENU_COMMANDS_QUERY_LIMIT;
|
||||
const env0_9 = value.BuiltInSectionId;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value.jsx;
|
||||
const env0_11 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.container = {flex: 1, marginHorizontal: PX_16};
|
||||
const object4 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingTop = PX_16;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.paddingBottom = PX_8;
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
object4.backgroundColor = BACKGROUND_BASE_LOWER;
|
||||
object2.sectionHeader = object4;
|
||||
const env0_12 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/native/ContextMenuCommandRootScreen.tsx');
|
||||
exports.default = ContextMenuCommandRootScreen;
|
||||
}
|
||||
|
||||
function ContextMenuCommandRootScreen(a0) { // fn#116485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15425:568, offset: 0x0248b3f1, size: 1323 bytes, params: 2, frame: 32
|
||||
var object10;
|
||||
var object2;
|
||||
var object3;
|
||||
var SearchField;
|
||||
var object8;
|
||||
var intl;
|
||||
const navigation = a0.navigation;
|
||||
const {channel, commandType, commandTargetId, onPressAppCommand, onClose} = a0.route.params;
|
||||
const env0_4 = onClose;
|
||||
const value = undefined;
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
return GuildStore.getGuild(channel.guild_id);
|
||||
});
|
||||
const env0_5 = guild;
|
||||
let binding = env0_5;
|
||||
const env0_6 = binding.useRef(false);
|
||||
const value4 = env0_4(binding.useState(''), 2);
|
||||
const value5 = 0;
|
||||
const property = value4[value5];
|
||||
const property2 = value4[1];
|
||||
const value6 = property !== '';
|
||||
binding.useEffect(function() {
|
||||
return navigation.addListener('beforeRemove', _fun116488);
|
||||
}, [navigation, onClose]);
|
||||
const applicationCommandQueryApiModule = importAll(8060) /* metro dependency 8060: ApplicationCommandQueryApi */;
|
||||
const useDiscovery = applicationCommandQueryApiModule.useDiscovery;
|
||||
object10 = {context: {channel: channel, type: 'channel'}};
|
||||
object10.filters = {text: value6 ? property : value, commandTypes: [commandType]};
|
||||
const object9 = {};
|
||||
object9.limit = CONTEXT_MENU_COMMANDS_QUERY_LIMIT;
|
||||
object9.includeFrecency = !value6;
|
||||
const COMMAND_OR_APPLICATION = value6 ? (require(7869) /* metro dependency 7869: ApplicationCommandQueryTypes */).ScoreMethod.COMMAND_OR_APPLICATION : value;
|
||||
object9.scoreMethod = COMMAND_OR_APPLICATION;
|
||||
object10.options = object9;
|
||||
object10.allowFetch = true;
|
||||
const {commands, commandsByActiveSection, sectionDescriptors, loading} = Reflect.apply(useDiscovery,
|
||||
applicationCommandQueryApiModule, [object10]);
|
||||
binding = env0_5;
|
||||
const useMemo = binding.useMemo;
|
||||
const sections = Reflect.apply(useMemo, binding, [function() {
|
||||
sectionDescriptors.forEach(_fun116490);
|
||||
return {sections: {}};
|
||||
}, [sectionDescriptors]]).sections;
|
||||
const value8 = binding.useCallback(_fun116491, [channel, commandTargetId, guild, navigation, onPressAppCommand]);
|
||||
const value9 = binding.useCallback(_fun116492, [commandsByActiveSection, navigation, value8]);
|
||||
const value10 = binding.useMemo(_fun116494, [loading, commands.length, commandsByActiveSection]);
|
||||
const frecencyItems = value10.frecencyItems;
|
||||
const value11 = binding.useMemo(_fun116499, [loading, commands, value6, frecencyItems, value10.appItems]);
|
||||
const insets = (importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)({includeKeyboardHeight: true}).insets;
|
||||
const value12 = (importDefault(7705) /* metro dependency 7705: useScaledRowHeight */)();
|
||||
const value13 = binding.useMemo(_fun116501, [value11]);
|
||||
const styles = useStyles();
|
||||
const value14 = (require(8518) /* metro dependency 8518: useScaledTextLineHeightAndroid */).useScaledTextLineHeight('text-sm/semibold');
|
||||
const value15 = binding.useCallback(_fun116503, [loading, commands.length, value6, frecencyItems.length,
|
||||
styles.sectionHeader]);
|
||||
const value16 = binding.useCallback(_fun116504, [value11, value8, value9, sections]);
|
||||
const value17 = binding.useMemo(_fun116507, [loading, commands.length, value6, value14,
|
||||
styles.sectionHeader.paddingTop, styles.sectionHeader.paddingBottom]);
|
||||
let r6 = value6 || !loading && commands.length > value5;
|
||||
if (r6) {
|
||||
object2 = {};
|
||||
object3 = {};
|
||||
object3.marginBottom = value6 ? (importDefault(697) /* metro dependency 697: native */).space.PX_16 : value5;
|
||||
object2.style = object3;
|
||||
SearchField = (require(6984) /* metro dependency 6984: SearchFieldNative */).SearchField;
|
||||
object8 = {size: 'md', onChange: property2};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object8.placeholder = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.m1UwbP);
|
||||
r6 = <View {...object2}><SearchField {...object8} /></View>;
|
||||
}
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{r6}
|
||||
{((Component) => <Component sections={value13} estimatedListSize="windowSize" itemSize={value12} insetEnd={insets.bottom} renderItem={value16} renderSectionHeader={value15} sectionHeaderSize={value17} />)(importDefault(8671) /* metro dependency 8671: FastestListAndroid */)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun116487() { // fn#116487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15425:855, offset: 0x0248b93c, size: 34 bytes, params: 1, frame: 13
|
||||
return navigation.addListener('beforeRemove', _fun116488);
|
||||
}
|
||||
|
||||
function _fun116489() { // fn#116489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15425:1242, offset: 0x0248b988, size: 41 bytes, params: 1, frame: 12
|
||||
sectionDescriptors.forEach(_fun116490);
|
||||
return {sections: {}};
|
||||
}
|
||||
|
||||
function _fun116491(a0) { // fn#116491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15425:1337, offset: 0x0248b9b1, size: 147 bytes, params: 2, frame: 15
|
||||
if (onPressAppCommand != null) {
|
||||
onPressAppCommand();
|
||||
}
|
||||
env0_6.current = true;
|
||||
(importDefault(8050) /* metro dependency 8050: executeCommand */)({command: a0, optionValues: {},
|
||||
context: {channel: channel, guild: guild}, commandTargetId: commandTargetId});
|
||||
(navigation.getParent() ?? navigation).goBack();
|
||||
}
|
||||
|
||||
function _fun116492(a0) { // fn#116492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15425:1528, offset: 0x0248ba44, size: 103 bytes, params: 2, frame: 16
|
||||
const env0_0 = a0;
|
||||
const value2 = commandsByActiveSection.find(_fun116493);
|
||||
const value3 = undefined;
|
||||
const r5 = (value2 == null ? value3 : value2.data) ?? [];
|
||||
const navigationBinding = navigation;
|
||||
navigationBinding.navigate('app', {section: a0, commands: r5, onPressCommand: env0_13});
|
||||
return value3;
|
||||
}
|
||||
|
||||
function _fun116494() { // fn#116494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15425:1696, offset: 0x0248baab, size: 167 bytes, params: 1, frame: 16
|
||||
var r2;
|
||||
var object2;
|
||||
var value;
|
||||
if (loading) {
|
||||
object2 = {frecencyItems: [], appItems: []};
|
||||
} else {
|
||||
if (commands.length === 0) {
|
||||
return {frecencyItems: [], appItems: []};
|
||||
}
|
||||
var value2 = commandsByActiveSection.find(function(a0) {
|
||||
return a0.section.id === BuiltInSectionId.FRECENCY;
|
||||
});
|
||||
value = commandsByActiveSection.filter(function(a0) {
|
||||
return a0.section.id !== BuiltInSectionId.FRECENCY;
|
||||
});
|
||||
object2 = {};
|
||||
r2 = value2 == null ? undefined : value2.data.map(function(a0) {
|
||||
return {type: 'command', command: a0};
|
||||
});
|
||||
r2 = r2 ?? [];
|
||||
object2.frecencyItems = r2;
|
||||
object2.appItems = value.map(function({section}) {
|
||||
return {type: 'app', section: section};
|
||||
});
|
||||
}
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun116499() { // fn#116499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15425:2077, offset: 0x0248bbc2, size: 186 bytes, params: 1, frame: 13
|
||||
var object;
|
||||
if (loading) {
|
||||
object = {type: 'placeholder'};
|
||||
object = [[object]];
|
||||
} else {
|
||||
var length = commands.length;
|
||||
if (length === 0) {
|
||||
object = {type: 'no_commands'};
|
||||
object = [[object]];
|
||||
return object;
|
||||
}
|
||||
if (result) {
|
||||
return [commands.map(function(a0) {
|
||||
return {type: 'command', command: a0};
|
||||
})];
|
||||
}
|
||||
object = [];
|
||||
length = frecencyItems.length;
|
||||
if (length > 0) {
|
||||
object.push(frecencyItems);
|
||||
}
|
||||
length = appItems.length;
|
||||
if (length > 0) {
|
||||
object.push(appItems);
|
||||
}
|
||||
}
|
||||
return object;
|
||||
}
|
||||
|
||||
function _fun116501() { // fn#116501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15425:2368, offset: 0x0248bc7c, size: 28 bytes, params: 1, frame: 11
|
||||
return env0_17.map(function(a0) {
|
||||
return a0.length;
|
||||
});
|
||||
}
|
||||
|
||||
function _fun116503(a0) { // fn#116503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15425:2481, offset: 0x0248bc98, size: 269 bytes, params: 2, frame: 17
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
if (loading) {
|
||||
return null;
|
||||
}
|
||||
if (commands.length === 0) {
|
||||
return null;
|
||||
}
|
||||
if (result) {
|
||||
return null;
|
||||
}
|
||||
const r4 = a0 !== 0 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.PHjkRE) : frecencyItems.length > 0 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.V0w2ap) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.PHjkRE);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
variant={env0_19}
|
||||
color="text-default"
|
||||
style={styles.sectionHeader}
|
||||
>
|
||||
{r4}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun116504(a0, a1) { // fn#116504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15425:2773, offset: 0x0248bda5, size: 405 bytes, params: 3, frame: 22
|
||||
var environment;
|
||||
var ContextMenuCommandAppItem;
|
||||
var object2;
|
||||
var section;
|
||||
var value4;
|
||||
var ContextMenuCommandItem;
|
||||
var command;
|
||||
var sectionsBinding;
|
||||
const property = env0_17[a0][a1];
|
||||
const value2 = a1 === 0;
|
||||
const value3 = a1 === env0_17[a0].length - 1;
|
||||
const type = property.type;
|
||||
if (type === 'placeholder') {
|
||||
value = environment.__proto__;
|
||||
const ContextMenuCommandLoadingItem = (require(15229) /* metro dependency 15229: ContextMenuCommandItem */).ContextMenuCommandLoadingItem;
|
||||
return (
|
||||
<ContextMenuCommandLoadingItem
|
||||
start={value2}
|
||||
end={value3}
|
||||
key="placeholder"
|
||||
/>
|
||||
);
|
||||
}
|
||||
if (type === 'no_commands') {
|
||||
value = environment.__proto__;
|
||||
const ContextMenuCommandEmptyItem = (require(15229) /* metro dependency 15229: ContextMenuCommandItem */).ContextMenuCommandEmptyItem;
|
||||
return (
|
||||
<ContextMenuCommandEmptyItem
|
||||
start={value2}
|
||||
end={value3}
|
||||
key="no_commands"
|
||||
/>
|
||||
);
|
||||
}
|
||||
if (type === 'command') {
|
||||
value4 = environment.__proto__;
|
||||
ContextMenuCommandItem = importDefault(15229) /* metro dependency 15229: ContextMenuCommandItem */;
|
||||
object2 = {};
|
||||
command = property.command;
|
||||
object2.item = command;
|
||||
object2.onPress = onPress_116505;
|
||||
sectionsBinding = sections;
|
||||
command = property.command;
|
||||
object2.section = sectionsBinding[command.applicationId];
|
||||
object2.start = value2;
|
||||
object2.end = value3;
|
||||
command = property.command;
|
||||
return <ContextMenuCommandItem {...object2} key={command.id} />;
|
||||
}
|
||||
if (type === 'app') {
|
||||
value = environment.__proto__;
|
||||
ContextMenuCommandAppItem = (require(15229) /* metro dependency 15229: ContextMenuCommandItem */).ContextMenuCommandAppItem;
|
||||
object2 = {};
|
||||
section = property.section;
|
||||
object2.section = section;
|
||||
object2.onPress = onPress_116506;
|
||||
object2.start = value2;
|
||||
object2.end = value3;
|
||||
section = property.section;
|
||||
return <ContextMenuCommandAppItem {...object2} key={section.id} />;
|
||||
}
|
||||
}
|
||||
|
||||
function _fun116507() { // fn#116507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15425:3321, offset: 0x0248bf74, size: 84 bytes, params: 1, frame: 4
|
||||
var r0;
|
||||
var binding;
|
||||
var sectionHeader;
|
||||
var value3;
|
||||
const loadingBinding = loading;
|
||||
const value2 = 0;
|
||||
if (loadingBinding) {
|
||||
r0 = value2;
|
||||
} else if (value2 === commands.length) {
|
||||
r0 = value2;
|
||||
} else if (result) {
|
||||
r0 = value2;
|
||||
} else {
|
||||
binding = env0_20;
|
||||
sectionHeader = styles.sectionHeader;
|
||||
value3 = binding + sectionHeader.paddingTop;
|
||||
sectionHeader = styles.sectionHeader;
|
||||
r0 = value3 + sectionHeader.paddingBottom;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun116488() { // fn#116488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15425:889, offset: 0x0248b95e, size: 42 bytes, params: 1, frame: 11
|
||||
if (!(env1_6.current || onClose == null)) {
|
||||
onClose();
|
||||
}
|
||||
}
|
||||
|
||||
function onPress_116505() { // fn#116505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15425:3086, offset: 0x0248bf3a, size: 29 bytes, params: 1, frame: 11
|
||||
return env1_13(env0_0.command);
|
||||
}
|
||||
|
||||
function onPress_116506() { // fn#116506, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15425:3248, offset: 0x0248bf57, size: 29 bytes, params: 1, frame: 11
|
||||
return env1_14(env0_0.section);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,17 @@
|
||||
/* Metro module 9900; source: modules/application_commands/native/showExecutedApplicationCommandPopout.tsx; dependencies: [4080, 9901, 1962, 2] */
|
||||
function _fun77584(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10086:6, offset: 0x01e02018, size: 103 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/native/showExecutedApplicationCommandPopout.tsx');
|
||||
exports.default = showExecutedApplicationCommandPopout;
|
||||
}
|
||||
|
||||
function showExecutedApplicationCommandPopout(a0) { // fn#77585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10086:212, offset: 0x01e0207f, size: 105 bytes, params: 2, frame: 18
|
||||
const defaultImport = importDefault(dependencyMap[0]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
let value = require(dependencyMap[2]);
|
||||
value = value(dependencyMap[1], dependencyMap.paths);
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'ExecutedCommandPopout:' + a0.messageId, a0]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user