/* 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 (
{binding.useMemo(_fun90958, [channel.guild_id, value10, sectionDescriptors, property])}
);
}
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) => )(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) => )(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) => )(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) => )(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 = ;
} 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;
}