This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,157 +1,173 @@
/* Metro module 8671; source: modules/fastest_list/FastestList.android.tsx; dependencies: [153, 31, 33, 4017, 8672, 6277, 8673, 8674, 8676, 8677, 8678, 8681, 8682, 8685, 2] */
import Module00153 from '../../by-id/module-00153.js'; /* Metro dependency 153 */
import ReanimatedRexport from '../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import FastestListNativeComponent from '../../external/discord_common/js/packages/rtn-codegen/js/FastestListNativeComponent.tsx'; /* Metro dependency 8672 */
import UseFastestListComputedStylesAndroid from './useFastestListComputedStyles.android.tsx'; /* Metro dependency 8673 */
import UseFastestListUnexpectedItemSizeCallbackAndroid from './useFastestListUnexpectedItemSizeCallback.android.tsx'; /* Metro dependency 8674 */
import UseFastestListPropsEstimatedListSizeNative from './props/useFastestListPropsEstimatedListSize.native.tsx'; /* Metro dependency 8676 */
import UseFastestListPropsPlaceholderAndroid from './props/useFastestListPropsPlaceholder.android.tsx'; /* Metro dependency 8677 */
import UseFastestListSectionsAndroid from './useFastestListSections.android.tsx'; /* Metro dependency 8678 */
import UseFastestListPropsScrollReportingNative from './props/useFastestListPropsScrollReporting.native.tsx'; /* Metro dependency 8681 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as Module06277Module from '../../by-id/module-06277.js'; /* Metro dependency 6277 */
function _fun68223(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8856:6, offset: 0x01c44099, size: 305 bytes, params: 8, frame: 23
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importDefault(153) /* metro dependency 153 */;
let value = importAll(31) /* metro dependency 31 */;
const value2 = require(33) /* metro dependency 33 */;
const env0_4 = value2.jsx;
const env0_5 = value2.Fragment;
const env0_6 = value2.jsxs;
const animatedComponent = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).createAnimatedComponent(importDefault(8672) /* metro dependency 8672: FastestListNativeComponent */);
const env0_7 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).createAnimatedComponent(importDefault(8672) /* metro dependency 8672: FastestListNativeComponent */);
const value5 = require(6277) /* metro dependency 6277 */;
const createBottomSheetScrollableComponent = value5.createBottomSheetScrollableComponent;
const SCROLLABLE_TYPE = value5.SCROLLABLE_TYPE;
Module00153;
let value = ReactModule;
const animatedComponent = (ReanimatedRexport).createAnimatedComponent(FastestListNativeComponent);
const env0_7 = (ReanimatedRexport).createAnimatedComponent(FastestListNativeComponent);
const createBottomSheetScrollableComponent = Module06277Module.createBottomSheetScrollableComponent;
const SCROLLABLE_TYPE = Module06277Module.SCROLLABLE_TYPE;
const SCROLLVIEW = SCROLLABLE_TYPE.SCROLLVIEW;
const env0_8 = Reflect.apply(createBottomSheetScrollableComponent, value5, [SCROLLVIEW, animatedComponent]);
const env0_8 = Reflect.apply(createBottomSheetScrollableComponent, Module06277Module, [SCROLLVIEW, animatedComponent]);
value = value.forwardRef(FastestList);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/fastest_list/FastestList.android.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/fastest_list/FastestList.android.tsx');
exports.default = value;
}
function FastestList(a0, a1) { // fn#68224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8856:347, offset: 0x01c441ca, size: 1029 bytes, params: 3, frame: 59
var r0;
const env0_0 = a0;
const accessibilityLabel = a0.accessibilityLabel;
const enabled = a0.enabled;
const r3 = enabled === undefined || enabled;
const estimatedListSize = a0.estimatedListSize;
const horizontal = a0.horizontal;
const r23 = horizontal !== undefined && horizontal;
const keyboardDismissMode = a0.keyboardDismissMode;
const keyExtractor = a0.keyExtractor;
const inActionSheet = a0.inActionSheet;
const r6 = inActionSheet !== undefined && inActionSheet;
const insetStart = a0.insetStart;
value = 0;
const r38 = insetStart === undefined ? value : insetStart;
const insetEnd = a0.insetEnd;
const r37 = insetEnd === undefined ? value : insetEnd;
const itemSize = a0.itemSize;
const listId = a0.listId;
const listFooterSize = a0.listFooterSize;
const listFooterAlwaysMounted = a0.listFooterAlwaysMounted;
const listHeaderSize = a0.listHeaderSize;
const listHeaderAlwaysMounted = a0.listHeaderAlwaysMounted;
const onLayout = a0.onLayout;
const placeholderConfig = a0.placeholderConfig;
const placeholdersForceEnabled = a0.placeholdersForceEnabled;
const renderAhead = a0.renderAhead;
const r28 = renderAhead === undefined ? 'nominal' : renderAhead;
const renderItem = a0.renderItem;
const renderListFooter = a0.renderListFooter;
const renderListHeader = a0.renderListHeader;
const renderSectionHeader = a0.renderSectionHeader;
const renderSectionFooter = a0.renderSectionFooter;
const scrollEventThrottle = a0.scrollEventThrottle;
const r27 = scrollEventThrottle === undefined ? 32 : scrollEventThrottle;
const scrollReporting = a0.scrollReporting;
const sections = a0.sections;
const sectionHeaderSize = a0.sectionHeaderSize;
const sectionFooterSize = a0.sectionFooterSize;
const showsHorizontalScrollIndicator = a0.showsHorizontalScrollIndicator;
const r26 = showsHorizontalScrollIndicator === undefined || showsHorizontalScrollIndicator;
const showsVerticalScrollIndicator = a0.showsVerticalScrollIndicator;
const r25 = showsVerticalScrollIndicator === undefined || showsVerticalScrollIndicator;
var styleBinding = a0.style;
const wrapChildren = a0.wrapChildren;
const binding = env0_3;
const value2 = binding.useRef(null);
const value3 = binding.useRef(null);
const value4 = binding.useRef(a0);
binding.useEffect(_fun68225, [a0]);
var {style, marginEnd,
marginStart} = (importDefault(8673) /* metro dependency 8673: useFastestListComputedStylesAndroid */)({style: styleBinding});
binding.useImperativeHandle(a1, function() {
return {scrollToTop: _fun68227, scrollToLocation: _fun68228};
});
const value6 = (importDefault(8674) /* metro dependency 8674: useFastestListUnexpectedItemSizeCallbackAndroid */)(value4);
const value7 = binding.useCallback(_fun68229, [value3]);
const value8 = (importDefault(8676) /* metro dependency 8676: useFastestListPropsEstimatedListSizeNative */)({estimatedListSize: estimatedListSize,
horizontal: r23});
const value9 = (importDefault(8677) /* metro dependency 8677: useFastestListPropsPlaceholderAndroid */)(placeholderConfig);
const useMemo = binding.useMemo;
const value11 = (importDefault(8678) /* metro dependency 8678: useFastestListSectionsAndroid */)({fastestListId: Reflect.apply(useMemo,
binding, [_fun68230, [listId]]), itemSize: itemSize, keyExtractor: keyExtractor, listFooterSize: listFooterSize,
listHeaderSize: listHeaderSize, sections: sections, sectionHeaderSize: sectionHeaderSize,
sectionFooterSize: sectionFooterSize});
const {onScroll, onScrollBeginDrag,
onScrollEndDrag} = (importDefault(8681) /* metro dependency 8681: useFastestListPropsScrollReportingNative */)(a0,
r23);
if (r3) {
if (placeholderConfig != null) {
r0 = <>{((Component) => <Component accessibilityLabel={accessibilityLabel} horizontal={r23} insetStart={r38} insetEnd={r37} keyboardDismissOnDrag={keyboardDismissMode === 'on-drag' || keyboardDismissMode === 'interactive'} onUnexpectedItemSize={value6} onLayout={onLayout} onScroll={onScroll} onScrollBeginDrag={onScrollBeginDrag} onScrollEndDrag={onScrollEndDrag} onVisibleItemsChanged={value7} placeholderConfig={value9} ref={value2} renderAhead={r28} scrollEventThrottle={r27} sectionsVersioned={value11} showsHorizontalScrollIndicator={r26} showsVerticalScrollIndicator={r25} style={styleBinding} />)(r6 ? env0_8 : scrollReporting === 'animatedScrollPosition' || scrollReporting === 'animatedCallbacks' ? env0_7 : importDefault(8672) /* metro dependency 8672: FastestListNativeComponent */)}{((Component) => <Component estimatedListSize={value8} horizontal={r23} listFooterAlwaysMounted={listFooterAlwaysMounted} listHeaderAlwaysMounted={listHeaderAlwaysMounted} marginEnd={marginEnd} marginStart={marginStart} placeholdersForceEnabled={placeholdersForceEnabled} ref={value3} renderItem={renderItem} renderListFooter={renderListFooter} renderListHeader={renderListHeader} renderSectionFooter={renderSectionFooter} renderSectionHeader={renderSectionHeader} sectionsVersioned={value11} wrapChildren={wrapChildren} />)(importDefault(8682) /* metro dependency 8682: FastestListChildrenAndroid */)}</>;
function FastestList(a0, a1) { // fn#68224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8856:347, offset: 0x01c441ca, size: 1029 bytes, params: 3, frame: 59
var r0;
const env0_0 = a0;
const accessibilityLabel = a0.accessibilityLabel;
const enabled = a0.enabled;
const r3 = enabled === undefined || enabled;
const estimatedListSize = a0.estimatedListSize;
const horizontal = a0.horizontal;
const r23 = horizontal !== undefined && horizontal;
const keyboardDismissMode = a0.keyboardDismissMode;
const keyExtractor = a0.keyExtractor;
const inActionSheet = a0.inActionSheet;
const r6 = inActionSheet !== undefined && inActionSheet;
const insetStart = a0.insetStart;
value = 0;
const r38 = insetStart === undefined ? value : insetStart;
const insetEnd = a0.insetEnd;
const r37 = insetEnd === undefined ? value : insetEnd;
const itemSize = a0.itemSize;
const listId = a0.listId;
const listFooterSize = a0.listFooterSize;
const listFooterAlwaysMounted = a0.listFooterAlwaysMounted;
const listHeaderSize = a0.listHeaderSize;
const listHeaderAlwaysMounted = a0.listHeaderAlwaysMounted;
const onLayout = a0.onLayout;
const placeholderConfig = a0.placeholderConfig;
const placeholdersForceEnabled = a0.placeholdersForceEnabled;
const renderAhead = a0.renderAhead;
const r28 = renderAhead === undefined ? 'nominal' : renderAhead;
const renderItem = a0.renderItem;
const renderListFooter = a0.renderListFooter;
const renderListHeader = a0.renderListHeader;
const renderSectionHeader = a0.renderSectionHeader;
const renderSectionFooter = a0.renderSectionFooter;
const scrollEventThrottle = a0.scrollEventThrottle;
const r27 = scrollEventThrottle === undefined ? 32 : scrollEventThrottle;
const scrollReporting = a0.scrollReporting;
const sections = a0.sections;
const sectionHeaderSize = a0.sectionHeaderSize;
const sectionFooterSize = a0.sectionFooterSize;
const showsHorizontalScrollIndicator = a0.showsHorizontalScrollIndicator;
const r26 = showsHorizontalScrollIndicator === undefined || showsHorizontalScrollIndicator;
const showsVerticalScrollIndicator = a0.showsVerticalScrollIndicator;
const r25 = showsVerticalScrollIndicator === undefined || showsVerticalScrollIndicator;
var styleBinding = a0.style;
const wrapChildren = a0.wrapChildren;
const binding = env0_3;
const value2 = binding.useRef(null);
const value3 = binding.useRef(null);
const value4 = binding.useRef(a0);
binding.useEffect(_fun68225, [a0]);
var {style, marginEnd,
marginStart} = (UseFastestListComputedStylesAndroid)({style: styleBinding});
binding.useImperativeHandle(a1, function() {
return {scrollToTop: _fun68227, scrollToLocation: _fun68228};
});
const value6 = (UseFastestListUnexpectedItemSizeCallbackAndroid)(value4);
const value7 = binding.useCallback(_fun68229, [value3]);
const value8 = (UseFastestListPropsEstimatedListSizeNative)({estimatedListSize: estimatedListSize,
horizontal: r23});
const value9 = (UseFastestListPropsPlaceholderAndroid)(placeholderConfig);
const useMemo = binding.useMemo;
const value11 = (UseFastestListSectionsAndroid)({fastestListId: Reflect.apply(useMemo,
binding, [_fun68230, [listId]]), itemSize: itemSize, keyExtractor: keyExtractor, listFooterSize: listFooterSize,
listHeaderSize: listHeaderSize, sections: sections, sectionHeaderSize: sectionHeaderSize,
sectionFooterSize: sectionFooterSize});
const {onScroll, onScrollBeginDrag,
onScrollEndDrag} = (UseFastestListPropsScrollReportingNative)(a0,
r23);
if (r3) {
if (placeholderConfig != null) {
r0 = (
<>
{((Component) => <Component accessibilityLabel={accessibilityLabel} horizontal={r23} insetStart={r38} insetEnd={r37} keyboardDismissOnDrag={keyboardDismissMode === 'on-drag' || keyboardDismissMode === 'interactive'} onUnexpectedItemSize={value6} onLayout={onLayout} onScroll={onScroll} onScrollBeginDrag={onScrollBeginDrag} onScrollEndDrag={onScrollEndDrag} onVisibleItemsChanged={value7} placeholderConfig={value9} ref={value2} renderAhead={r28} scrollEventThrottle={r27} sectionsVersioned={value11} showsHorizontalScrollIndicator={r26} showsVerticalScrollIndicator={r25} style={styleBinding} />)(r6 ? env0_8 : scrollReporting === 'animatedScrollPosition' || scrollReporting === 'animatedCallbacks' ? env0_7 : importDefault(8672) /* metro dependency 8672: FastestListNativeComponent */)}
{((Component) => <Component estimatedListSize={value8} horizontal={r23} listFooterAlwaysMounted={listFooterAlwaysMounted} listHeaderAlwaysMounted={listHeaderAlwaysMounted} marginEnd={marginEnd} marginStart={marginStart} placeholdersForceEnabled={placeholdersForceEnabled} ref={value3} renderItem={renderItem} renderListFooter={renderListFooter} renderListHeader={renderListHeader} renderSectionFooter={renderSectionFooter} renderSectionHeader={renderSectionHeader} sectionsVersioned={value11} wrapChildren={wrapChildren} />)(importDefault(8682) /* metro dependency 8682: FastestListChildrenAndroid */)}
</>
);
} else {
value = importDefault(8685) /* metro dependency 8685: FastestListIos */;
value = ((Component) => <Component {...a0} />)(value);
r0 = value;
}
} else {
value = importDefault(8685) /* metro dependency 8685: FastestListIos */;
value = ((Component) => <Component {...a0} />)(value);
r0 = value;
}
} else {
value = importDefault(8685) /* metro dependency 8685: FastestListIos */;
value = ((Component) => <Component {...a0} />)(value);
r0 = value;
}
return r0;
}
return r0;
function _fun68225() { // fn#68225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8856:1259, offset: 0x01c445cf, size: 21 bytes, params: 1, frame: 2
JsxRuntimeModule.jsx.current = env0_0;
}
function _fun68225() { // fn#68225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8856:1259, offset: 0x01c445cf, size: 21 bytes, params: 1, frame: 2
env0_4.current = env0_0;
}
function _fun68226() { // fn#68226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8856:1382, offset: 0x01c445e4, size: 30 bytes, params: 1, frame: 3
return {scrollToTop: scrollToTop_68227, scrollToLocation: scrollToLocation_68228};
function scrollToTop_68227() { // fn#68227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8856:1400, offset: 0x01c44602, size: 81 bytes, params: 1, frame: 15
var value2;
var Commands;
let value = a0;
const r4 = value !== undefined ? value : false;
value = environment.__proto__;
if (env1_2.current != null) {
value2 = environment.__proto__.__proto__;
Commands = (require(8672) /* metro dependency 8672: FastestListNativeComponent */).Commands;
Commands.scrollToTop(env1_2.current, r4);
}
}
function _fun68226() { // fn#68226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8856:1382, offset: 0x01c445e4, size: 30 bytes, params: 1, frame: 3
return {scrollToTop: scrollToTop_68227, scrollToLocation: scrollToLocation_68228};
}
function scrollToLocation_68228({section, item, animated, paddingStart}) { // fn#68228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8856:1488, offset: 0x01c44653, size: 123 bytes, params: 2, frame: 21
var value2;
var Commands;
animated = !(animated === undefined) && animated;
paddingStart = paddingStart === undefined ? 0 : paddingStart;
const value = environment.__proto__;
if (env1_2.current != null) {
value2 = environment.__proto__.__proto__;
Commands = (require(8672) /* metro dependency 8672: FastestListNativeComponent */).Commands;
Commands.scrollToLocation(env1_2.current, section, item, animated, paddingStart);
}
}
function _fun68229(a0) { // fn#68229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8856:1656, offset: 0x01c446ce, size: 42 bytes, params: 2, frame: 11
const current = env0_3.current;
if (current != null) {
current.setVisibleItems(a0.nativeEvent);
}
}
}
function _fun68230() { // fn#68230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8856:1804, offset: 0x01c446f8, size: 73 bytes, params: 1, frame: 15
const listId2 = listId ?? 'fst';
const binding = env1_9;
const value3 = typeof binding === 'bigint' ? binding : +binding;
env1_9 = typeof value3 === 'bigint' ? value3 + 1n : +value3 + 1;
return '' + listId2 + '-' + value3;
}
function _fun68229(a0) { // fn#68229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8856:1656, offset: 0x01c446ce, size: 42 bytes, params: 2, frame: 11
const current = env0_3.current;
if (current != null) {
current.setVisibleItems(a0.nativeEvent);
}
}
function scrollToTop_68227() { // fn#68227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8856:1400, offset: 0x01c44602, size: 81 bytes, params: 1, frame: 15
var value2;
var Commands;
let value = a0;
const r4 = value !== undefined ? value : false;
value = environment.__proto__;
if (env1_2.current != null) {
value2 = environment.__proto__.__proto__;
Commands = (require(8672) /* metro dependency 8672: FastestListNativeComponent */).Commands;
Commands.scrollToTop(env1_2.current, r4);
}
}
function _fun68230() { // fn#68230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8856:1804, offset: 0x01c446f8, size: 73 bytes, params: 1, frame: 15
const listId2 = listId ?? 'fst';
const binding = env1_9;
const value3 = typeof binding === 'bigint' ? binding : +binding;
env1_9 = typeof value3 === 'bigint' ? value3 + 1n : +value3 + 1;
return '' + listId2 + '-' + value3;
}
function scrollToLocation_68228({section, item, animated, paddingStart}) { // fn#68228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8856:1488, offset: 0x01c44653, size: 123 bytes, params: 2, frame: 21
var value2;
var Commands;
animated = !(animated === undefined) && animated;
paddingStart = paddingStart === undefined ? 0 : paddingStart;
const value = environment.__proto__;
if (env1_2.current != null) {
value2 = environment.__proto__.__proto__;
Commands = (require(8672) /* metro dependency 8672: FastestListNativeComponent */).Commands;
Commands.scrollToLocation(env1_2.current, section, item, animated, paddingStart);
}
}
global.__d(_fun68223, 8671, [153, 31, 33, 4017, 8672, 6277, 8673, 8674, 8676, 8677, 8678, 8681, 8682, 8685,
2]) /* metro module 8671, dependencies: [153, 31, 33, 4017, 8672, 6277, 8673, 8674, 8676, 8677, 8678, 8681, 8682, 8685, 2] */;
+132 -124
View File
@@ -1,4 +1,11 @@
/* Metro module 8685; source: modules/fastest_list/FastestList.ios.tsx; dependencies: [31, 33, 8681, 8676, 8140, 8679, 2] */
import UseFastestListPropsEstimatedListSizeNative from './props/useFastestListPropsEstimatedListSize.native.tsx'; /* Metro dependency 8676 */
import UseFastestListPropsScrollReportingNative from './props/useFastestListPropsScrollReporting.native.tsx'; /* Metro dependency 8681 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FastListModule from '../../lib/native/FastList.tsx'; /* Metro dependency 8140 */
function _fun68277(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8870:6, offset: 0x01c46df1, size: 164 bytes, params: 8, frame: 18
const env0_0 = require;
const getBatchesToRender = function(a0) {
@@ -13,137 +20,138 @@ function _fun68277(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
value = value.forwardRef(_fun68279);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/fastest_list/FastestList.ios.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/fastest_list/FastestList.ios.tsx');
exports.default = value;
}
function _fun68279(a0, a1) { // fn#68279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8870:245, offset: 0x01c46ec4, size: 752 bytes, params: 3, frame: 53
const accessibilityLabel = a0.accessibilityLabel;
a0.enabled;
const estimatedListSize = a0.estimatedListSize;
let horizontal = a0.horizontal;
const value = undefined;
horizontal = !(horizontal === value) && horizontal;
const inActionSheet = a0.inActionSheet;
const insetStart = a0.insetStart;
const insetEnd = a0.insetEnd;
const itemSize = a0.itemSize;
const keyboardDismissMode = a0.keyboardDismissMode;
const keyboardShouldPersistTaps = a0.keyboardShouldPersistTaps;
const keyExtractor = a0.keyExtractor;
const listFooterSize = a0.listFooterSize;
let listFooterAlwaysMounted = a0.listFooterAlwaysMounted;
listFooterAlwaysMounted = !(listFooterAlwaysMounted === value) && listFooterAlwaysMounted;
const listHeaderSize = a0.listHeaderSize;
let listHeaderAlwaysMounted = a0.listHeaderAlwaysMounted;
listHeaderAlwaysMounted = !(listHeaderAlwaysMounted === value) && listHeaderAlwaysMounted;
const onLayout = a0.onLayout;
let renderAhead = a0.renderAhead;
renderAhead = renderAhead === value ? 'nominal' : renderAhead;
const renderItem = a0.renderItem;
const renderListFooter = a0.renderListFooter;
const renderListHeader = a0.renderListHeader;
const renderSectionHeader = a0.renderSectionHeader;
const renderSectionFooter = a0.renderSectionFooter;
const scrollEventThrottle = a0.scrollEventThrottle;
const scrollIndicatorInsetEnd = a0.scrollIndicatorInsetEnd;
const scrollIndicatorInsetStart = a0.scrollIndicatorInsetStart;
const env0_3 = scrollIndicatorInsetStart;
const sectionHeaderSize = a0.sectionHeaderSize;
let sectionHeaderIsSticky = a0.sectionHeaderIsSticky;
sectionHeaderIsSticky = sectionHeaderIsSticky === value || sectionHeaderIsSticky;
const sectionFooterSize = a0.sectionFooterSize;
const sections = a0.sections;
const showsHorizontalScrollIndicator = a0.showsHorizontalScrollIndicator;
const showsVerticalScrollIndicator = a0.showsVerticalScrollIndicator;
const style = a0.style;
const object2 = {'accessibilityLabel': 0, 'enabled': 0, 'estimatedListSize': 0, 'horizontal': 0, 'inActionSheet': 0,
'insetStart': 0, 'insetEnd': 0, 'itemSize': 0, 'keyboardDismissMode': 0, 'keyboardShouldPersistTaps': 0,
'keyExtractor': 0, 'listFooterSize': 0, 'listFooterAlwaysMounted': 0, 'listHeaderSize': 0,
'listHeaderAlwaysMounted': 0, 'onLayout': 0, 'renderAhead': 0, 'renderItem': 0, 'renderListFooter': 0,
'renderListHeader': 0, 'renderSectionHeader': 0, 'renderSectionFooter': 0, 'scrollEventThrottle': 0,
'scrollIndicatorInsetEnd': 0, 'scrollIndicatorInsetStart': 0, 'sectionHeaderSize': 0,
'sectionHeaderIsSticky': 0, 'sectionFooterSize': 0, 'sections': 0, 'showsHorizontalScrollIndicator': 0,
'showsVerticalScrollIndicator': 0, 'style': 0};
silentSetPrototypeOf(object2, null, undefined);
const value7 = copyDataProperties({}, a0, object2, undefined);
const {onScroll, onScrollBeginDrag,
onScrollEndDrag} = (importDefault(8681) /* metro dependency 8681: useFastestListPropsScrollReportingNative */)(value7,
horizontal);
const value10 = (importDefault(8676) /* metro dependency 8676: useFastestListPropsEstimatedListSizeNative */)({estimatedListSize: estimatedListSize,
horizontal: horizontal});
const binding = env0_3;
const value11 = binding.useCallback(_fun68280, [keyExtractor]);
const value12 = binding.useMemo(function() {
var r0;
var horizontalBinding;
var object;
var scrollIndicatorInsetStartBinding = scrollIndicatorInsetStart;
if (scrollIndicatorInsetStartBinding != null) {
horizontalBinding = horizontal;
object = {};
scrollIndicatorInsetStartBinding = scrollIndicatorInsetStart;
if (horizontalBinding) {
object.left = scrollIndicatorInsetStartBinding;
object.right = scrollIndicatorInsetEnd;
r0 = object;
function _fun68279(a0, a1) { // fn#68279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8870:245, offset: 0x01c46ec4, size: 752 bytes, params: 3, frame: 53
const accessibilityLabel = a0.accessibilityLabel;
a0.enabled;
const estimatedListSize = a0.estimatedListSize;
let horizontal = a0.horizontal;
const value = undefined;
horizontal = !(horizontal === value) && horizontal;
const inActionSheet = a0.inActionSheet;
const insetStart = a0.insetStart;
const insetEnd = a0.insetEnd;
const itemSize = a0.itemSize;
const keyboardDismissMode = a0.keyboardDismissMode;
const keyboardShouldPersistTaps = a0.keyboardShouldPersistTaps;
const keyExtractor = a0.keyExtractor;
const listFooterSize = a0.listFooterSize;
let listFooterAlwaysMounted = a0.listFooterAlwaysMounted;
listFooterAlwaysMounted = !(listFooterAlwaysMounted === value) && listFooterAlwaysMounted;
const listHeaderSize = a0.listHeaderSize;
let listHeaderAlwaysMounted = a0.listHeaderAlwaysMounted;
listHeaderAlwaysMounted = !(listHeaderAlwaysMounted === value) && listHeaderAlwaysMounted;
const onLayout = a0.onLayout;
let renderAhead = a0.renderAhead;
renderAhead = renderAhead === value ? 'nominal' : renderAhead;
const renderItem = a0.renderItem;
const renderListFooter = a0.renderListFooter;
const renderListHeader = a0.renderListHeader;
const renderSectionHeader = a0.renderSectionHeader;
const renderSectionFooter = a0.renderSectionFooter;
const scrollEventThrottle = a0.scrollEventThrottle;
const scrollIndicatorInsetEnd = a0.scrollIndicatorInsetEnd;
const scrollIndicatorInsetStart = a0.scrollIndicatorInsetStart;
const scrollIndicatorInsetStart2 = scrollIndicatorInsetStart;
const sectionHeaderSize = a0.sectionHeaderSize;
let sectionHeaderIsSticky = a0.sectionHeaderIsSticky;
sectionHeaderIsSticky = sectionHeaderIsSticky === value || sectionHeaderIsSticky;
const sectionFooterSize = a0.sectionFooterSize;
const sections = a0.sections;
const showsHorizontalScrollIndicator = a0.showsHorizontalScrollIndicator;
const showsVerticalScrollIndicator = a0.showsVerticalScrollIndicator;
const style = a0.style;
let object = {'accessibilityLabel': 0, 'enabled': 0, 'estimatedListSize': 0, 'horizontal': 0, 'inActionSheet': 0,
'insetStart': 0, 'insetEnd': 0, 'itemSize': 0, 'keyboardDismissMode': 0, 'keyboardShouldPersistTaps': 0,
'keyExtractor': 0, 'listFooterSize': 0, 'listFooterAlwaysMounted': 0, 'listHeaderSize': 0,
'listHeaderAlwaysMounted': 0, 'onLayout': 0, 'renderAhead': 0, 'renderItem': 0, 'renderListFooter': 0,
'renderListHeader': 0, 'renderSectionHeader': 0, 'renderSectionFooter': 0, 'scrollEventThrottle': 0,
'scrollIndicatorInsetEnd': 0, 'scrollIndicatorInsetStart': 0, 'sectionHeaderSize': 0,
'sectionHeaderIsSticky': 0, 'sectionFooterSize': 0, 'sections': 0, 'showsHorizontalScrollIndicator': 0,
'showsVerticalScrollIndicator': 0, 'style': 0};
silentSetPrototypeOf(object, null, undefined);
const value7 = copyDataProperties({}, a0, object, undefined);
const {onScroll, onScrollBeginDrag,
onScrollEndDrag} = (UseFastestListPropsScrollReportingNative)(value7,
horizontal);
const value10 = (UseFastestListPropsEstimatedListSizeNative)({estimatedListSize: estimatedListSize,
horizontal: horizontal});
const binding = scrollIndicatorInsetStart2;
const value11 = binding.useCallback(_fun68280, [keyExtractor]);
const value12 = binding.useMemo(function() {
var r0;
var horizontalBinding;
var object;
var scrollIndicatorInsetStartBinding = scrollIndicatorInsetStart;
if (scrollIndicatorInsetStartBinding != null) {
horizontalBinding = horizontal;
object = {};
scrollIndicatorInsetStartBinding = scrollIndicatorInsetStart;
if (horizontalBinding) {
object.left = scrollIndicatorInsetStartBinding;
object.right = scrollIndicatorInsetEnd;
r0 = object;
} else {
object.top = scrollIndicatorInsetStartBinding;
object.bottom = scrollIndicatorInsetEnd;
r0 = object;
}
} else if (scrollIndicatorInsetEnd == null) {
r0 = undefined;
} else {
object.top = scrollIndicatorInsetStartBinding;
object.bottom = scrollIndicatorInsetEnd;
r0 = object;
horizontalBinding = horizontal;
object = {};
scrollIndicatorInsetStartBinding = scrollIndicatorInsetStart;
if (horizontalBinding) {
object.left = scrollIndicatorInsetStartBinding;
object.right = scrollIndicatorInsetEnd;
r0 = object;
} else {
object.top = scrollIndicatorInsetStartBinding;
object.bottom = scrollIndicatorInsetEnd;
r0 = object;
}
}
} else if (scrollIndicatorInsetEnd == null) {
r0 = undefined;
} else {
horizontalBinding = horizontal;
object = {};
scrollIndicatorInsetStartBinding = scrollIndicatorInsetStart;
if (horizontalBinding) {
object.left = scrollIndicatorInsetStartBinding;
object.right = scrollIndicatorInsetEnd;
r0 = object;
} else {
object.top = scrollIndicatorInsetStartBinding;
object.bottom = scrollIndicatorInsetEnd;
r0 = object;
return r0;
}, [horizontal, scrollIndicatorInsetEnd, scrollIndicatorInsetStart]);
return ((Component) => <Component accessibilityLabel={accessibilityLabel} automaticallyAdjustsScrollIndicatorInsets={value12 == null} batchesToRender={getBatchesToRender(renderAhead)} chunkBase={value10} stickySectionsVariant={sectionHeaderIsSticky ? 'default' : 'disabled'} footerSize={listFooterSize} getRecyclerKey={value11} headerSize={listHeaderSize} horizontal={horizontal} inActionSheet={inActionSheet} insetStart={insetStart} insetEnd={insetEnd} itemSize={itemSize} keyboardDismissMode={keyboardDismissMode} keyboardShouldPersistTaps={keyboardShouldPersistTaps} onLayout={onLayout} onScroll={value7.scrollReporting === 'animatedScrollPosition' ? value : onScroll} onScrollBeginDrag={onScrollBeginDrag} onScrollEndDrag={onScrollEndDrag} optimizeListItemRender ref={a1} renderItem={renderItem} renderFooter={renderListFooter} renderHeader={renderListHeader} renderSection={renderSectionHeader} renderSectionFooter={renderSectionFooter} scrollEventThrottle={scrollEventThrottle} scrollIndicatorInsets={value12} scrollPosValue={value7.scrollReporting !== 'animatedScrollPosition' ? value : value7.scrollPosition} sections={sections} sectionSize={sectionHeaderSize} sectionFooterSize={sectionFooterSize} showsHorizontalScrollIndicator={showsHorizontalScrollIndicator} showsVerticalScrollIndicator={showsVerticalScrollIndicator} stickyHeaderFooter={listHeaderAlwaysMounted || listFooterAlwaysMounted} style={style} />)(value7.scrollReporting === 'animatedCallbacks' ? (require(8140) /* metro dependency 8140: FastList */).AnimatedFastList : importDefault(8140) /* metro dependency 8140: FastList */);
function _fun68280(a0, a1, a2) { // fn#68280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8870:1032, offset: 0x01c471b4, size: 320 bytes, params: 4, frame: 19
var r0;
let value = a2;
const value3 = undefined;
const FastListItemTypes = (FastListModule).FastListItemTypes;
const ITEM = FastListItemTypes.ITEM;
if (ITEM === a0) {
if (keyExtractor == null) {
r0 = value3;
} else {
value = keyExtractor((importDefault(8679) /* metro dependency 8679: FastestListItemType */).ITEM, a1,
value ?? -1);
r0 = value;
}
return r0;
}
const SECTION = FastListItemTypes.SECTION;
if (SECTION === a0) {
return keyExtractor == null ? value3 : keyExtractor((importDefault(8679) /* metro dependency 8679: FastestListItemType */).SECTION_HEADER,
a1, -1);
}
const SECTION_FOOTER = FastListItemTypes.SECTION_FOOTER;
if (SECTION_FOOTER === a0) {
return keyExtractor == null ? value3 : keyExtractor((importDefault(8679) /* metro dependency 8679: FastestListItemType */).SECTION_FOOTER,
a1, -1);
}
return value3;
}
return r0;
}, [horizontal, scrollIndicatorInsetEnd, scrollIndicatorInsetStart]);
return ((Component) => <Component accessibilityLabel={accessibilityLabel} automaticallyAdjustsScrollIndicatorInsets={value12 == null} batchesToRender={getBatchesToRender(renderAhead)} chunkBase={value10} stickySectionsVariant={sectionHeaderIsSticky ? 'default' : 'disabled'} footerSize={listFooterSize} getRecyclerKey={value11} headerSize={listHeaderSize} horizontal={horizontal} inActionSheet={inActionSheet} insetStart={insetStart} insetEnd={insetEnd} itemSize={itemSize} keyboardDismissMode={keyboardDismissMode} keyboardShouldPersistTaps={keyboardShouldPersistTaps} onLayout={onLayout} onScroll={value7.scrollReporting === 'animatedScrollPosition' ? value : onScroll} onScrollBeginDrag={onScrollBeginDrag} onScrollEndDrag={onScrollEndDrag} optimizeListItemRender ref={a1} renderItem={renderItem} renderFooter={renderListFooter} renderHeader={renderListHeader} renderSection={renderSectionHeader} renderSectionFooter={renderSectionFooter} scrollEventThrottle={scrollEventThrottle} scrollIndicatorInsets={value12} scrollPosValue={value7.scrollReporting !== 'animatedScrollPosition' ? value : value7.scrollPosition} sections={sections} sectionSize={sectionHeaderSize} sectionFooterSize={sectionFooterSize} showsHorizontalScrollIndicator={showsHorizontalScrollIndicator} showsVerticalScrollIndicator={showsVerticalScrollIndicator} stickyHeaderFooter={listHeaderAlwaysMounted || listFooterAlwaysMounted} style={style} />)(value7.scrollReporting === 'animatedCallbacks' ? (require(8140) /* metro dependency 8140: FastList */).AnimatedFastList : importDefault(8140) /* metro dependency 8140: FastList */);
}
function _fun68280(a0, a1, a2) { // fn#68280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8870:1032, offset: 0x01c471b4, size: 320 bytes, params: 4, frame: 19
var r0;
let value = a2;
const value3 = undefined;
const FastListItemTypes = (require(8140) /* metro dependency 8140: FastList */).FastListItemTypes;
const ITEM = FastListItemTypes.ITEM;
if (ITEM === a0) {
if (keyExtractor == null) {
r0 = value3;
} else {
value = keyExtractor((importDefault(8679) /* metro dependency 8679: FastestListItemType */).ITEM, a1,
value ?? -1);
r0 = value;
}
return r0;
}
const SECTION = FastListItemTypes.SECTION;
if (SECTION === a0) {
return keyExtractor == null ? value3 : keyExtractor((importDefault(8679) /* metro dependency 8679: FastestListItemType */).SECTION_HEADER,
a1, -1);
}
const SECTION_FOOTER = FastListItemTypes.SECTION_FOOTER;
if (SECTION_FOOTER === a0) {
return keyExtractor == null ? value3 : keyExtractor((importDefault(8679) /* metro dependency 8679: FastestListItemType */).SECTION_FOOTER,
a1, -1);
}
return value3;
}
global.__d(_fun68277, 8685, [31, 33, 8681, 8676, 8140, 8679,
2]) /* metro module 8685, dependencies: [31, 33, 8681, 8676, 8140, 8679, 2] */;
@@ -1,472 +1,496 @@
/* Metro module 8682; source: modules/fastest_list/FastestListChildren.android.tsx; dependencies: [57, 31, 27, 33, 4501, 8683, 628, 8684, 8613, 2] */
import Module00057 from '../../by-id/module-00057.js'; /* Metro dependency 57 */
import GetFastestListVisibleItemsDefault from './getFastestListVisibleItemsDefault.tsx'; /* Metro dependency 8683 */
import GetFastestListVisibleItemsWithErrorCheckingNative from './utils/getFastestListVisibleItemsWithErrorChecking.native.tsx'; /* Metro dependency 8684 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
function _fun68263(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8867:6, offset: 0x01c45f7e, size: 293 bytes, params: 8, frame: 22
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({portal: {'position': 'absolute',
let value = ReactModule;
const env0_6 = (CreateStylesModule).createStyles({portal: {'position': 'absolute',
'opacity': 0, 'height': 0, 'top': 0}});
object2 = {items: []};
object = {items: []};
const Map = global.Map;
const value3 = Object.create(Map.prototype, {constructor: {value: Map}});
const map = new Map();
object2.keys = map instanceof Object ? map : value3;
object2.keyIndex = 0;
object.keys = map instanceof Object ? map : value3;
object.keyIndex = 0;
value = value.memo(value.forwardRef(_fun68264));
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/fastest_list/FastestListChildren.android.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/fastest_list/FastestListChildren.android.tsx');
exports.default = value;
}
function _fun68264({estimatedListSize, horizontal, listFooterAlwaysMounted, listHeaderAlwaysMounted, placeholdersForceEnabled, marginEnd, marginStart, sectionsVersioned, renderItem, renderListFooter, renderListHeader, renderSectionFooter, renderSectionHeader, wrapChildren}, a1) { // fn#68264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8867:282, offset: 0x01c460a3, size: 481 bytes, params: 3, frame: 31
horizontal = !(horizontal === undefined) && horizontal;
const env0_2 = listFooterAlwaysMounted;
const env0_3 = listHeaderAlwaysMounted;
placeholdersForceEnabled = !(placeholdersForceEnabled === undefined) && placeholdersForceEnabled;
const env0_7 = sectionsVersioned;
wrapChildren = !(wrapChildren === undefined) && wrapChildren;
const styles = useStyles();
const binding = env0_3;
const value2 = binding.useMemo(function() {
return [styles.portal, {left: marginStart, right: marginEnd}];
}, [styles.portal, marginStart, marginEnd]);
const [property, env0_16] = env0_2(binding.useState(_fun68266), 2);
binding.useImperativeHandle(a1, function() {
return {setVisibleItems: _fun68268};
}, []);
const env0_17 = binding.useRef(env0_7);
const value5 = binding.useMemo(_fun68270, [horizontal, listFooterAlwaysMounted, listHeaderAlwaysMounted,
placeholdersForceEnabled, renderItem, renderListFooter, renderListHeader, renderSectionFooter,
renderSectionHeader, sectionsVersioned, property, wrapChildren]);
binding.useEffect(_fun68272, [value5]);
return (
<View pointerEvents="none" style={value2}>
{value5.items}
</View>
);
}
function _fun68266() { // fn#68266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8867:659, offset: 0x01c462b1, size: 55 bytes, params: 1, frame: 13
const value = environment.__proto__;
return (importDefault(8683) /* metro dependency 8683: getFastestListVisibleItemsDefault */)({estimatedListSize: estimatedListSize,
sectionsVersioned: sectionsVersioned});
}
function _fun68267() { // fn#68267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8867:766, offset: 0x01c462e8, size: 18 bytes, params: 1, frame: 2
return {setVisibleItems: setVisibleItems};
}
function _fun68270() { // fn#68270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8867:858, offset: 0x01c4634c, size: 1853 bytes, params: 1, frame: 76
var r41;
var r54;
var r53;
var r52;
var r59;
var r58;
var r57;
var r31;
var r32;
var r37;
var r2;
var r7;
var r8;
var r5;
var r16;
var r34;
var r35;
var r36;
var placeholdersForceEnabledBinding;
var value9;
var value10;
var sizes;
var property;
var value11;
var value12;
var value13;
var push;
var jsxRuntimeEnv1_5Binding;
var PortalToNativeViewNative;
var object;
var value14;
var value15;
var keyId;
var item;
var itemSize;
var size;
var value16;
var value17;
var value18;
var PortalToNativeViewNative2;
var object5;
var value19;
var next;
var value20;
var value21;
var PortalToNativeViewNative3;
var object6;
var value22;
var value23;
var value24;
var value25;
var value26;
var value28;
var Math;
var value29;
var value30;
var value31;
var value33;
var value34;
var value35;
var PortalToNativeViewNative4;
var value36;
var value37;
var PortalToNativeViewNative5;
var value38;
const {keysAreUniform, listId, itemKeys, itemSizes, itemSizeIsUniform, listFooterKey, listFooterSize, listHeaderKey,
listHeaderSize, sectionsId, sections, sectionFooterKeys, sectionFooterSizeIsUniform, sectionFooterSizes,
sectionHeaderKeys, sectionHeaderSizeIsUniform, sectionHeaderSizes} = sectionsVersioned;
const closure = fastestListChildJSX;
if (sectionsId !== env0_15.sectionsId) {
return env0_17.current;
}
const keyIndex = env0_17.current.keyIndex;
let Map = global.Map;
let keys = env0_17.current.keys;
let map = new Map(keys);
Map = global.Map;
map = new Map();
const items3 = [];
const items2 = [];
const {sectionStart, sectionEnd, itemStart,
itemEnd} = (importDefault(8684) /* metro dependency 8684: getFastestListVisibleItemsWithErrorCheckingNative */)(listId,
env0_15, sections);
const value8 = 0;
if (sectionStart <= sectionEnd) {
r41 = sectionStart;
while (true) {
if (!placeholdersForceEnabled) {
if (r41 !== sectionStart) {
r54 = value8;
continue;
}
r54 = itemStart;
continue;
if (r41 === sectionEnd) {
r53 = itemEnd;
continue;
}
value9 = sections[r41] - 1;
r53 = value9;
if (!(r54 <= r53)) {
break;
}
r52 = r54;
while (true) {
value10 = renderItem(r41, r52);
if (itemSizeIsUniform) {
sizes = itemSizes[value8].sizes;
r59 = sizes[value8];
} else {
sizes = itemSizes[r41].sizes;
r59 = sizes[r52];
}
if (keysAreUniform) {
keys = itemKeys[value8].keys;
property = keys[value8];
r58 = property;
} else {
keys = itemKeys[r41].keys;
property = keys[r52];
r58 = property;
}
if (r58 !== '') {
r57 = r58;
continue;
}
value11 = 's' + r41 + '-i' + r52;
r57 = value11;
value12 = '' + listId + '-' + r57;
value13 = map.get(value12);
if (value13 != null) {
map.set(value12, value13);
map.delete(value12);
push = items3.push;
jsxRuntimeEnv1_5Binding = jsxRuntimeEnv1_5;
PortalToNativeViewNative = importDefault(8613) /* metro dependency 8613: PortalToNativeViewNative */;
object = {portalId: value12, children: closure(value10, r59)};
Reflect.apply(push, items3, [<PortalToNativeViewNative {...object} key={'' + value13} />]);
} else {
items2.push({keyId: value12, item: value10, itemSize: r59});
}
value14 = typeof r52 === 'bigint' ? r52 + 1n : +r52 + 1;
if (value14 <= r53) {
r52 = value14;
continue;
}
break;
}
}
value15 = typeof r41 === 'bigint' ? r41 + 1n : +r41 + 1;
if (value15 <= sectionEnd) {
r41 = value15;
continue;
}
break;
}
}
let length = items2.length;
if (value8 < length) {
r31 = value8;
r32 = keyIndex;
while (true) {
property = items2[r31];
keyId = property.keyId;
item = property.item;
itemSize = property.itemSize;
size = map.size;
if (size > value8) {
value19 = map.keys();
next = value19.next;
value20 = Reflect.apply(next, value19, []).value;
value21 = map.get(value20);
map.set(keyId, value21);
map.delete(value20);
push = items3.push;
jsxRuntimeEnv1_5Binding = jsxRuntimeEnv1_5;
PortalToNativeViewNative3 = importDefault(8613) /* metro dependency 8613: PortalToNativeViewNative */;
object6 = {portalId: keyId, children: closure(item, itemSize)};
Reflect.apply(push, items3, [<PortalToNativeViewNative3 {...object6} key={'' + value21} />]);
r37 = r32;
} else {
value16 = typeof r32 === 'bigint' ? r32 : +r32;
value17 = typeof value16 === 'bigint' ? value16 + 1n : +value16 + 1;
value18 = 'key-' + value16;
map.set(keyId, value18);
push = items3.push;
jsxRuntimeEnv1_5Binding = jsxRuntimeEnv1_5;
PortalToNativeViewNative2 = importDefault(8613) /* metro dependency 8613: PortalToNativeViewNative */;
object5 = {portalId: keyId, children: closure(item, itemSize)};
Reflect.apply(push, items3, [<PortalToNativeViewNative2 {...object5} key={'' + value18} />]);
r37 = value17;
}
value22 = typeof r31 === 'bigint' ? r31 + 1n : +r31 + 1;
length = items2.length;
if (value22 < length) {
r31 = value22;
r32 = r37;
continue;
}
r2 = r37;
break;
}
} else {
r2 = keyIndex;
}
if (renderListHeader != null) {
if (listHeaderSize > value8) {
if (listHeaderAlwaysMounted) {
r32 = listHeaderKey === '' ? 'lh' : listHeaderKey;
items3.push(((Component) => <Component portalId={'' + listId + '-' + r32} key={r32}>{closure(renderListHeader(),
listHeaderSize)}</Component>)(importDefault(8613) /* metro dependency 8613: PortalToNativeViewNative */));
} else {
placeholdersForceEnabledBinding = placeholdersForceEnabled;
value23 = false;
if (placeholdersForceEnabledBinding) {
r7 = value23;
} else if (value8 !== itemStart) {
r7 = value23;
} else {
value24 = sectionStart - 1;
value25 = true;
if (value24 >= value8) {
r31 = value24;
while (true) {
if (sections[r31] > value8) {
r7 = value23;
break;
}
value26 = typeof r31 === 'bigint' ? r31 - 1n : +r31 - 1;
if (value26 >= value8) {
r31 = value26;
continue;
}
r7 = value25;
break;
}
} else {
r7 = value25;
}
}
if (r7) {
r32 = listHeaderKey === '' ? 'lh' : listHeaderKey;
items3.push(((Component) => <Component portalId={'' + listId + '-' + r32} key={r32}>{closure(renderListHeader(),
listHeaderSize)}</Component>)(importDefault(8613) /* metro dependency 8613: PortalToNativeViewNative */));
}
}
}
}
if (renderListFooter != null) {
if (listFooterSize > value8) {
if (listFooterAlwaysMounted) {
value33 = '' + listId + '-' + (listFooterKey === '' ? 'lf' : listFooterKey);
items3.push(((Component) => <Component portalId={value33} key={value33}>{closure(renderListFooter(),
listFooterSize)}</Component>)(importDefault(8613) /* metro dependency 8613: PortalToNativeViewNative */));
} else {
placeholdersForceEnabledBinding = placeholdersForceEnabled;
value28 = false;
if (placeholdersForceEnabledBinding) {
r5 = value28;
} else {
Math = global.Math;
if (itemEnd !== Math.max(sections[sectionEnd] - 1, value8)) {
r5 = value28;
} else {
value29 = sectionEnd + 1;
length = sections.length;
value30 = true;
if (value29 < length) {
r8 = value29;
while (true) {
if (sections[r8] > value8) {
r5 = value28;
break;
}
value31 = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1;
length = sections.length;
if (value31 < length) {
r8 = value31;
continue;
}
r5 = value30;
break;
}
} else {
r5 = value30;
}
}
}
if (r5) {
value33 = '' + listId + '-' + (listFooterKey === '' ? 'lf' : listFooterKey);
items3.push(((Component) => <Component portalId={value33} key={value33}>{closure(renderListFooter(),
listFooterSize)}</Component>)(importDefault(8613) /* metro dependency 8613: PortalToNativeViewNative */));
}
}
}
}
if (sectionStart <= sectionEnd) {
r16 = sectionStart;
while (true) {
if (!placeholdersForceEnabled) {
r34 = sectionFooterSizeIsUniform ? sectionFooterSizes[value8] : sectionFooterSizes[r16];
if (!(r34 > value8)) {
continue;
}
if (renderSectionFooter == null) {
continue;
}
r31 = keysAreUniform ? sectionFooterKeys[value8] : sectionFooterKeys[r16];
if (r31 !== '') {
r35 = r31;
continue;
}
value34 = 'sf' + r16;
r35 = value34;
value35 = '' + listId + '-' + r35;
push = items3.push;
jsxRuntimeEnv1_5Binding = jsxRuntimeEnv1_5;
PortalToNativeViewNative4 = importDefault(8613) /* metro dependency 8613: PortalToNativeViewNative */;
Reflect.apply(push, items3,
[<PortalToNativeViewNative4 portalId={value35} key={value35}>{closure(renderSectionFooter(r16),
r34)}</PortalToNativeViewNative4>]);
if (sectionHeaderSizeIsUniform) {
property = sectionHeaderSizes[value8];
r32 = property;
} else {
property = sectionHeaderSizes[r16];
r32 = property;
}
if (r32 > value8) {
if (renderSectionHeader == null) {
break;
}
if (keysAreUniform) {
property = sectionHeaderKeys[value8];
r31 = property;
} else {
property = sectionHeaderKeys[r16];
r31 = property;
}
if (r31 !== '') {
r36 = r31;
continue;
}
value36 = 'sh' + r16;
r36 = value36;
value37 = '' + listId + '-' + r36;
push = items3.push;
jsxRuntimeEnv1_5Binding = jsxRuntimeEnv1_5;
PortalToNativeViewNative5 = importDefault(8613) /* metro dependency 8613: PortalToNativeViewNative */;
Reflect.apply(push, items3,
[<PortalToNativeViewNative5 portalId={value37} key={value37}>{closure(renderSectionHeader(r16),
r32)}</PortalToNativeViewNative5>]);
break;
}
break;
}
value38 = typeof r16 === 'bigint' ? r16 + 1n : +r16 + 1;
if (value38 <= sectionEnd) {
r16 = value38;
continue;
}
break;
}
}
return {items: items3, keys: map, keyIndex: r2};
}
function _fun68272() { // fn#68272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8867:3249, offset: 0x01c46b22, size: 21 bytes, params: 1, frame: 2
env0_17.current = env0_18;
}
function setVisibleItems(a0) { // fn#68268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8867:788, offset: 0x01c462fa, size: 32 bytes, params: 2, frame: 11
const env0_0 = a0;
env1_16(_fun68269);
}
function fastestListChildJSX(a0, a1) { // fn#68271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8867:1220, offset: 0x01c46a89, size: 153 bytes, params: 3, frame: 19
var horizontalBinding;
var value4;
const value = a1;
if (wrapChildren) {
horizontalBinding = horizontal;
value4 = undefined;
function _fun68264({estimatedListSize, horizontal, listFooterAlwaysMounted, listHeaderAlwaysMounted, placeholdersForceEnabled, marginEnd, marginStart, sectionsVersioned, renderItem, renderListFooter, renderListHeader, renderSectionFooter, renderSectionHeader, wrapChildren}, a1) { // fn#68264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8867:282, offset: 0x01c460a3, size: 481 bytes, params: 3, frame: 31
horizontal = !(horizontal === undefined) && horizontal;
const listFooterAlwaysMounted2 = listFooterAlwaysMounted;
const listHeaderAlwaysMounted2 = listHeaderAlwaysMounted;
placeholdersForceEnabled = !(placeholdersForceEnabled === undefined) && placeholdersForceEnabled;
const sectionsVersioned2 = sectionsVersioned;
wrapChildren = !(wrapChildren === undefined) && wrapChildren;
const styles = useStyles();
const binding = listHeaderAlwaysMounted2;
const value2 = binding.useMemo(function() {
return [styles.portal, {left: marginStart, right: marginEnd}];
}, [styles.portal, marginStart, marginEnd]);
const [property, env0_16] = listFooterAlwaysMounted2(binding.useState(_fun68266), 2);
binding.useImperativeHandle(a1, function() {
return {setVisibleItems: _fun68268};
}, []);
const env0_17 = binding.useRef(sectionsVersioned2);
const value5 = binding.useMemo(_fun68270, [horizontal, listFooterAlwaysMounted, listHeaderAlwaysMounted,
placeholdersForceEnabled, renderItem, renderListFooter, renderListHeader, renderSectionFooter,
renderSectionHeader, sectionsVersioned, property, wrapChildren]);
binding.useEffect(_fun68272, [value5]);
return (
<View
style={{width: horizontalBinding ? value : value4, height: horizontal ? value4 : value,
overflow: 'hidden'}}
collapsable={false}
>
{a0}
<View pointerEvents="none" style={value2}>
{value5.items}
</View>
);
function _fun68266() { // fn#68266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8867:659, offset: 0x01c462b1, size: 55 bytes, params: 1, frame: 13
const value = environment.__proto__;
return (GetFastestListVisibleItemsDefault)({estimatedListSize: estimatedListSize,
sectionsVersioned: sectionsVersioned});
}
function _fun68267() { // fn#68267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8867:766, offset: 0x01c462e8, size: 18 bytes, params: 1, frame: 2
return {setVisibleItems: setVisibleItems};
function setVisibleItems(a0) { // fn#68268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8867:788, offset: 0x01c462fa, size: 32 bytes, params: 2, frame: 11
const env0_0 = a0;
env1_16(_fun68269);
function _fun68269(a0) { // fn#68269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8867:795, offset: 0x01c4631a, size: 50 bytes, params: 2, frame: 14
const value = a0;
return (importDefault(628) /* metro dependency 628: shallowEqual */)(value, env0_0) ? value : env0_0;
}
}
}
function _fun68270() { // fn#68270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8867:858, offset: 0x01c4634c, size: 1853 bytes, params: 1, frame: 76
var r41;
var r54;
var r53;
var r52;
var r59;
var r58;
var r57;
var r31;
var r32;
var r37;
var r2;
var r7;
var r8;
var r5;
var r16;
var r34;
var r35;
var r36;
var placeholdersForceEnabledBinding;
var value9;
var value10;
var sizes;
var property;
var value11;
var value12;
var value13;
var push;
var jsxRuntimeEnv1_5Binding;
var PortalToNativeViewNative;
var object2;
var value14;
var value15;
var keyId;
var item;
var itemSize;
var size;
var value16;
var value17;
var value18;
var PortalToNativeViewNative2;
var object3;
var value19;
var next;
var value20;
var value21;
var PortalToNativeViewNative3;
var object4;
var value22;
var value23;
var value24;
var value25;
var value26;
var value28;
var Math;
var value29;
var value30;
var value31;
var value33;
var value34;
var value35;
var PortalToNativeViewNative4;
var value36;
var value37;
var PortalToNativeViewNative5;
var value38;
const {keysAreUniform, listId, itemKeys, itemSizes, itemSizeIsUniform, listFooterKey, listFooterSize, listHeaderKey,
listHeaderSize, sectionsId, sections, sectionFooterKeys, sectionFooterSizeIsUniform, sectionFooterSizes,
sectionHeaderKeys, sectionHeaderSizeIsUniform, sectionHeaderSizes} = sectionsVersioned;
const fastestListChildJSX2 = fastestListChildJSX;
if (sectionsId !== env0_15.sectionsId) {
return env0_17.current;
}
const keyIndex = env0_17.current.keyIndex;
let Map = global.Map;
let keys = env0_17.current.keys;
let map = new Map(keys);
Map = global.Map;
map = new Map();
const items3 = [];
const items2 = [];
const {sectionStart, sectionEnd, itemStart,
itemEnd} = (GetFastestListVisibleItemsWithErrorCheckingNative)(listId,
env0_15, sections);
const value8 = 0;
if (sectionStart <= sectionEnd) {
r41 = sectionStart;
while (true) {
if (!placeholdersForceEnabled) {
if (r41 !== sectionStart) {
r54 = value8;
continue;
}
r54 = itemStart;
continue;
if (r41 === sectionEnd) {
r53 = itemEnd;
continue;
}
value9 = sections[r41] - 1;
r53 = value9;
if (!(r54 <= r53)) {
break;
}
r52 = r54;
while (true) {
value10 = renderItem(r41, r52);
if (itemSizeIsUniform) {
sizes = itemSizes[value8].sizes;
r59 = sizes[value8];
} else {
sizes = itemSizes[r41].sizes;
r59 = sizes[r52];
}
if (keysAreUniform) {
keys = itemKeys[value8].keys;
property = keys[value8];
r58 = property;
} else {
keys = itemKeys[r41].keys;
property = keys[r52];
r58 = property;
}
if (r58 !== '') {
r57 = r58;
continue;
}
value11 = 's' + r41 + '-i' + r52;
r57 = value11;
value12 = '' + listId + '-' + r57;
value13 = map.get(value12);
if (value13 != null) {
map.set(value12, value13);
map.delete(value12);
push = items3.push;
jsxRuntimeEnv1_5Binding = jsxRuntimeEnv1_5;
PortalToNativeViewNative = importDefault(8613) /* metro dependency 8613: PortalToNativeViewNative */;
object2 = {portalId: value12, children: fastestListChildJSX2(value10, r59)};
Reflect.apply(push, items3, [<PortalToNativeViewNative {...object2} key={'' + value13} />]);
} else {
items2.push({keyId: value12, item: value10, itemSize: r59});
}
value14 = typeof r52 === 'bigint' ? r52 + 1n : +r52 + 1;
if (value14 <= r53) {
r52 = value14;
continue;
}
break;
}
}
value15 = typeof r41 === 'bigint' ? r41 + 1n : +r41 + 1;
if (value15 <= sectionEnd) {
r41 = value15;
continue;
}
break;
}
}
let length = items2.length;
if (value8 < length) {
r31 = value8;
r32 = keyIndex;
while (true) {
property = items2[r31];
keyId = property.keyId;
item = property.item;
itemSize = property.itemSize;
size = map.size;
if (size > value8) {
value19 = map.keys();
next = value19.next;
value20 = Reflect.apply(next, value19, []).value;
value21 = map.get(value20);
map.set(keyId, value21);
map.delete(value20);
push = items3.push;
jsxRuntimeEnv1_5Binding = jsxRuntimeEnv1_5;
PortalToNativeViewNative3 = importDefault(8613) /* metro dependency 8613: PortalToNativeViewNative */;
object4 = {portalId: keyId, children: fastestListChildJSX2(item, itemSize)};
Reflect.apply(push, items3, [<PortalToNativeViewNative3 {...object4} key={'' + value21} />]);
r37 = r32;
} else {
value16 = typeof r32 === 'bigint' ? r32 : +r32;
value17 = typeof value16 === 'bigint' ? value16 + 1n : +value16 + 1;
value18 = 'key-' + value16;
map.set(keyId, value18);
push = items3.push;
jsxRuntimeEnv1_5Binding = jsxRuntimeEnv1_5;
PortalToNativeViewNative2 = importDefault(8613) /* metro dependency 8613: PortalToNativeViewNative */;
object3 = {portalId: keyId, children: fastestListChildJSX2(item, itemSize)};
Reflect.apply(push, items3, [<PortalToNativeViewNative2 {...object3} key={'' + value18} />]);
r37 = value17;
}
value22 = typeof r31 === 'bigint' ? r31 + 1n : +r31 + 1;
length = items2.length;
if (value22 < length) {
r31 = value22;
r32 = r37;
continue;
}
r2 = r37;
break;
}
} else {
r2 = keyIndex;
}
if (renderListHeader != null) {
if (listHeaderSize > value8) {
if (listHeaderAlwaysMounted) {
r32 = listHeaderKey === '' ? 'lh' : listHeaderKey;
items3.push(((Component) => <Component portalId={'' + listId + '-' + r32} key={r32}>{fastestListChildJSX2(renderListHeader(),
listHeaderSize)}</Component>)(importDefault(8613) /* metro dependency 8613: PortalToNativeViewNative */));
} else {
placeholdersForceEnabledBinding = placeholdersForceEnabled;
value23 = false;
if (placeholdersForceEnabledBinding) {
r7 = value23;
} else if (value8 !== itemStart) {
r7 = value23;
} else {
value24 = sectionStart - 1;
value25 = true;
if (value24 >= value8) {
r31 = value24;
while (true) {
if (sections[r31] > value8) {
r7 = value23;
break;
}
value26 = typeof r31 === 'bigint' ? r31 - 1n : +r31 - 1;
if (value26 >= value8) {
r31 = value26;
continue;
}
r7 = value25;
break;
}
} else {
r7 = value25;
}
}
if (r7) {
r32 = listHeaderKey === '' ? 'lh' : listHeaderKey;
items3.push(((Component) => <Component portalId={'' + listId + '-' + r32} key={r32}>{fastestListChildJSX2(renderListHeader(),
listHeaderSize)}</Component>)(importDefault(8613) /* metro dependency 8613: PortalToNativeViewNative */));
}
}
}
}
if (renderListFooter != null) {
if (listFooterSize > value8) {
if (listFooterAlwaysMounted) {
value33 = '' + listId + '-' + (listFooterKey === '' ? 'lf' : listFooterKey);
items3.push(((Component) => <Component portalId={value33} key={value33}>{fastestListChildJSX2(renderListFooter(),
listFooterSize)}</Component>)(importDefault(8613) /* metro dependency 8613: PortalToNativeViewNative */));
} else {
placeholdersForceEnabledBinding = placeholdersForceEnabled;
value28 = false;
if (placeholdersForceEnabledBinding) {
r5 = value28;
} else {
Math = global.Math;
if (itemEnd !== Math.max(sections[sectionEnd] - 1, value8)) {
r5 = value28;
} else {
value29 = sectionEnd + 1;
length = sections.length;
value30 = true;
if (value29 < length) {
r8 = value29;
while (true) {
if (sections[r8] > value8) {
r5 = value28;
break;
}
value31 = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1;
length = sections.length;
if (value31 < length) {
r8 = value31;
continue;
}
r5 = value30;
break;
}
} else {
r5 = value30;
}
}
}
if (r5) {
value33 = '' + listId + '-' + (listFooterKey === '' ? 'lf' : listFooterKey);
items3.push(((Component) => <Component portalId={value33} key={value33}>{fastestListChildJSX2(renderListFooter(),
listFooterSize)}</Component>)(importDefault(8613) /* metro dependency 8613: PortalToNativeViewNative */));
}
}
}
}
if (sectionStart <= sectionEnd) {
r16 = sectionStart;
while (true) {
if (!placeholdersForceEnabled) {
r34 = sectionFooterSizeIsUniform ? sectionFooterSizes[value8] : sectionFooterSizes[r16];
if (!(r34 > value8)) {
continue;
}
if (renderSectionFooter == null) {
continue;
}
r31 = keysAreUniform ? sectionFooterKeys[value8] : sectionFooterKeys[r16];
if (r31 !== '') {
r35 = r31;
continue;
}
value34 = 'sf' + r16;
r35 = value34;
value35 = '' + listId + '-' + r35;
push = items3.push;
jsxRuntimeEnv1_5Binding = jsxRuntimeEnv1_5;
PortalToNativeViewNative4 = importDefault(8613) /* metro dependency 8613: PortalToNativeViewNative */;
Reflect.apply(push, items3,
[<PortalToNativeViewNative4 portalId={value35} key={value35}>{fastestListChildJSX2(renderSectionFooter(r16),
r34)}</PortalToNativeViewNative4>]);
if (sectionHeaderSizeIsUniform) {
property = sectionHeaderSizes[value8];
r32 = property;
} else {
property = sectionHeaderSizes[r16];
r32 = property;
}
if (r32 > value8) {
if (renderSectionHeader == null) {
break;
}
if (keysAreUniform) {
property = sectionHeaderKeys[value8];
r31 = property;
} else {
property = sectionHeaderKeys[r16];
r31 = property;
}
if (r31 !== '') {
r36 = r31;
continue;
}
value36 = 'sh' + r16;
r36 = value36;
value37 = '' + listId + '-' + r36;
push = items3.push;
jsxRuntimeEnv1_5Binding = jsxRuntimeEnv1_5;
PortalToNativeViewNative5 = importDefault(8613) /* metro dependency 8613: PortalToNativeViewNative */;
Reflect.apply(push, items3,
[<PortalToNativeViewNative5 portalId={value37} key={value37}>{fastestListChildJSX2(renderSectionHeader(r16),
r32)}</PortalToNativeViewNative5>]);
break;
}
break;
}
value38 = typeof r16 === 'bigint' ? r16 + 1n : +r16 + 1;
if (value38 <= sectionEnd) {
r16 = value38;
continue;
}
break;
}
}
return {items: items3, keys: map, keyIndex: r2};
function fastestListChildJSX(a0, a1) { // fn#68271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8867:1220, offset: 0x01c46a89, size: 153 bytes, params: 3, frame: 19
var horizontalBinding;
var value4;
const value = a1;
if (wrapChildren) {
horizontalBinding = horizontal;
value4 = undefined;
return (
<View
style={{
width: horizontalBinding ? value : value4,
height: horizontal ? value4 : value,
overflow: 'hidden',
}}
collapsable={false}
>
{a0}
</View>
);
}
const binding = env2_3;
if (binding.isValidElement(a0)) {
return a0;
}
const Error = global.Error;
throw new Error('Must return a single child element.');
}
}
function _fun68272() { // fn#68272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8867:3249, offset: 0x01c46b22, size: 21 bytes, params: 1, frame: 2
env0_17.current = env0_18;
}
}
const binding = env2_3;
if (binding.isValidElement(a0)) {
return a0;
}
const Error = global.Error;
throw new Error('Must return a single child element.');
}
function _fun68269(a0) { // fn#68269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8867:795, offset: 0x01c4631a, size: 50 bytes, params: 2, frame: 14
const value = a0;
return (importDefault(628) /* metro dependency 628: shallowEqual */)(value, env0_0) ? value : env0_0;
}
global.__d(_fun68263, 8682, [57, 31, 27, 33, 4501, 8683, 628, 8684, 8613,
2]) /* metro module 8682, dependencies: [57, 31, 27, 33, 4501, 8683, 628, 8684, 8613, 2] */;
@@ -1,19 +1,21 @@
/* Metro module 8679; source: modules/fastest_list/FastestListItemType.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun68257(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8864:6, offset: 0x01c45c66, size: 162 bytes, params: 8, frame: 16
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {ITEM: 0};
object2[0] = 'ITEM';
object2.LIST_HEADER = 1;
object2[1] = 'LIST_HEADER';
object2.LIST_FOOTER = 2;
object2[2] = 'LIST_FOOTER';
object2.SECTION_HEADER = 3;
object2[3] = 'SECTION_HEADER';
object2.SECTION_FOOTER = 4;
object2[4] = 'SECTION_FOOTER';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/fastest_list/FastestListItemType.tsx');
exports.default = object2;
object = {ITEM: 0};
object[0] = 'ITEM';
object.LIST_HEADER = 1;
object[1] = 'LIST_HEADER';
object.LIST_FOOTER = 2;
object[2] = 'LIST_FOOTER';
object.SECTION_HEADER = 3;
object[3] = 'SECTION_HEADER';
object.SECTION_FOOTER = 4;
object[4] = 'SECTION_FOOTER';
(FileImportTrackerModule).fileFinishedImporting('modules/fastest_list/FastestListItemType.tsx');
exports.default = object;
}
global.__d(_fun68257, 8679, [2]) /* metro module 8679, dependencies: [2] */;
@@ -1,8 +1,10 @@
/* Metro module 8683; source: modules/fastest_list/getFastestListVisibleItemsDefault.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun68273(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8868:6, offset: 0x01c46b37, size: 87 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/fastest_list/getFastestListVisibleItemsDefault.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/fastest_list/getFastestListVisibleItemsDefault.tsx');
exports.default = getFastestListVisibleItemsDefault;
}
@@ -30,8 +32,8 @@ function getFastestListVisibleItemsDefault({estimatedListSize, sectionsVersioned
const sectionFooterSizes = sectionsVersioned.sectionFooterSizes;
const sectionHeaderSizeIsUniform = sectionsVersioned.sectionHeaderSizeIsUniform;
const sectionHeaderSizes = sectionsVersioned.sectionHeaderSizes;
const object2 = {'sectionsId': null, 'sectionStart': 0, 'sectionEnd': 0, 'itemStart': 0, 'itemEnd': -1};
object2.sectionsId = sectionsId;
const object = {'sectionsId': null, 'sectionStart': 0, 'sectionEnd': 0, 'itemStart': 0, 'itemEnd': -1};
object.sectionsId = sectionsId;
if (!(listHeaderSize >= estimatedListSize)) {
var length = sections.length;
if (0 < length) {
@@ -41,8 +43,8 @@ function getFastestListVisibleItemsDefault({estimatedListSize, sectionsVersioned
if (sections[r2] === 0) {
r14 = r10;
} else {
object2.sectionEnd = r2;
object2.itemEnd = 0;
object.sectionEnd = r2;
object.itemEnd = 0;
if (sectionHeaderSizeIsUniform) {
property = sectionHeaderSizes[0];
r1 = property;
@@ -52,7 +54,7 @@ function getFastestListVisibleItemsDefault({estimatedListSize, sectionsVersioned
}
value2 = r10 + r1;
if (value2 >= estimatedListSize) {
return object2;
return object;
}
reducibleJoin20: while (true) {
reducibleJoin13: while (true) {
@@ -63,7 +65,7 @@ function getFastestListVisibleItemsDefault({estimatedListSize, sectionsVersioned
r17 = 0;
r18 = value2;
reducibleLoop8: while (true) {
object2.itemEnd = r17;
object.itemEnd = r17;
if (itemSizeIsUniform) {
sizes = itemSizes[0].sizes;
property = sizes[0];
@@ -75,7 +77,7 @@ function getFastestListVisibleItemsDefault({estimatedListSize, sectionsVersioned
}
value3 = r18 + r1;
if (value3 >= estimatedListSize) {
return object2;
return object;
}
value4 = typeof r17 === 'bigint' ? r17 + 1n : +r17 + 1;
if (value4 < sections[r2]) {
@@ -96,7 +98,7 @@ function getFastestListVisibleItemsDefault({estimatedListSize, sectionsVersioned
}
value5 = r16 + r1;
if (value5 >= estimatedListSize) {
return object2;
return object;
}
r14 = value5;
break reducibleJoin20;
@@ -105,7 +107,7 @@ function getFastestListVisibleItemsDefault({estimatedListSize, sectionsVersioned
value6 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
length = sections.length;
if (!(value6 < length)) {
return object2;
return object;
}
r2 = value6;
r10 = r14;
@@ -113,6 +115,7 @@ function getFastestListVisibleItemsDefault({estimatedListSize, sectionsVersioned
}
}
}
return object2;
return object;
}
global.__d(_fun68273, 8683, [2]) /* metro module 8683, dependencies: [2] */;
@@ -1,98 +1,105 @@
/* Metro module 7699; source: modules/fastest_list/placeholders/useFastestListTableRowPlaceholderConfig.native.tsx; dependencies: [31, 4501, 697, 1305, 6235, 7700, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as LegacyTokensModule from '../../../design/migrations/native/LegacyTokens.tsx'; /* Metro dependency 6235 */
import * as FastestListPropsPlaceholderModule from '../props/FastestListPropsPlaceholder.tsx'; /* Metro dependency 7700 */
function _fun61482(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7877:6, offset: 0x01b41856, size: 424 bytes, params: 8, frame: 24
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
let value = require(4501) /* metro dependency 4501: createStyles */;
let value = CreateStylesModule;
const createStyles = value.createStyles;
object2 = {};
object = {};
const CARD_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CARD_BACKGROUND_DEFAULT;
object2.placeholder = {backgroundColor: CARD_BACKGROUND_DEFAULT};
const object5 = {};
const AVATAR_SIZE_MAP = (require(1305) /* metro dependency 1305: native */).AVATAR_SIZE_MAP;
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
object.placeholder = {backgroundColor: CARD_BACKGROUND_DEFAULT};
const object3 = {};
const AVATAR_SIZE_MAP = (NativeModule).AVATAR_SIZE_MAP;
const AvatarSizes = (NativeModule).AvatarSizes;
let REFRESH_MEDIUM_32 = AvatarSizes.REFRESH_MEDIUM_32;
object5.width = AVATAR_SIZE_MAP[REFRESH_MEDIUM_32];
object3.width = AVATAR_SIZE_MAP[REFRESH_MEDIUM_32];
REFRESH_MEDIUM_32 = AvatarSizes.REFRESH_MEDIUM_32;
object5.height = AVATAR_SIZE_MAP[REFRESH_MEDIUM_32];
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl;
object3.height = AVATAR_SIZE_MAP[REFRESH_MEDIUM_32];
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl;
let BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
object5.backgroundColor = BACKGROUND_MOD_MUTED;
object2.placeholderAvatar = object5;
const object6 = {height: 20};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object3.backgroundColor = BACKGROUND_MOD_MUTED;
object.placeholderAvatar = object3;
const object4 = {height: 20};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
object6.backgroundColor = BACKGROUND_MOD_MUTED;
object2.placeholderUsername = object6;
const DIVIDER_BACKGROUND = (require(6235) /* metro dependency 6235: LegacyTokens */).DIVIDER_BACKGROUND;
object2.placeholderDivider = {backgroundColor: DIVIDER_BACKGROUND};
value = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/fastest_list/placeholders/useFastestListTableRowPlaceholderConfig.native.tsx');
object4.backgroundColor = BACKGROUND_MOD_MUTED;
object.placeholderUsername = object4;
const DIVIDER_BACKGROUND = (LegacyTokensModule).DIVIDER_BACKGROUND;
object.placeholderDivider = {backgroundColor: DIVIDER_BACKGROUND};
value = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/fastest_list/placeholders/useFastestListTableRowPlaceholderConfig.native.tsx');
exports.default = useFastestListTableRowPlaceholderConfig;
exports.useFastestListTableRowPlaceholderStyles = value;
function useFastestListTableRowPlaceholderConfig() { // fn#61483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7877:748, offset: 0x01b419fe, size: 49 bytes, params: 1, frame: 14
const styles = useStyles();
return ReactModule.useMemo(_fun61484, [styles]);
function _fun61484() { // fn#61484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7877:827, offset: 0x01b41a2f, size: 639 bytes, params: 1, frame: 20
const object = {};
let value = environment.__proto__;
const FastestListPropsPlaceholderType = (FastestListPropsPlaceholderModule).FastestListPropsPlaceholderType;
const FEED_ITEM = FastestListPropsPlaceholderType.FEED_ITEM;
object.type = FEED_ITEM;
object.shape = 'circle';
const stylesBinding = styles;
object.backgroundColorHex = stylesBinding.placeholder.backgroundColor;
object.colorHex = stylesBinding.placeholderAvatar.backgroundColor;
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object.labelPadding = PX_16;
object.labelPaddingInnerRatio = 0;
object.labelSize = stylesBinding.placeholderUsername.height;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object.padding = PX_12;
object.shapeSize = stylesBinding.placeholderAvatar.width;
const object2 = {divider: true};
object2.dividerColorHex = stylesBinding.placeholderDivider.backgroundColor;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
value = PX_12 + stylesBinding.placeholderAvatar.width;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.dividerPaddingLeft = value + PX_16;
const object3 = {};
const object4 = {};
const SHAPE = FastestListPropsPlaceholderType.SHAPE;
object4.type = SHAPE;
object4.shape = 'rect';
object4.colorHex = stylesBinding.placeholder.backgroundColor;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingVertical = PX_16;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const PX_96 = (importDefault(697) /* metro dependency 697: native */).space.PX_96;
object4.width = PX_96;
object3.sectionHeader = object4;
const object5 = {};
copyDataProperties(object5, object, require);
copyDataProperties(object5, object2, require);
object3.sectionItem = object5;
const object6 = {};
copyDataProperties(object6, object, require);
copyDataProperties(object6, object2, require);
object6['borderTopLeftRadius'] = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object6['borderTopRightRadius'] = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object3.sectionItemAtFront = object6;
const object7 = {};
copyDataProperties(object7, object, require);
object7['borderBottomLeftRadius'] = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object7['borderBottomRightRadius'] = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object3.sectionItemAtRear = object7;
const object8 = {};
copyDataProperties(object8, object, require);
object8['borderRadius'] = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object3.sectionItemSingleton = object8;
return object3;
}
}
}
function useFastestListTableRowPlaceholderConfig() { // fn#61483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7877:748, offset: 0x01b419fe, size: 49 bytes, params: 1, frame: 14
const styles = useStyles();
return env0_3.useMemo(_fun61484, [styles]);
}
function _fun61484() { // fn#61484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7877:827, offset: 0x01b41a2f, size: 639 bytes, params: 1, frame: 20
const object9 = {};
let value = environment.__proto__;
const FastestListPropsPlaceholderType = (require(7700) /* metro dependency 7700: FastestListPropsPlaceholder */).FastestListPropsPlaceholderType;
const FEED_ITEM = FastestListPropsPlaceholderType.FEED_ITEM;
object9.type = FEED_ITEM;
object9.shape = 'circle';
const stylesBinding = styles;
object9.backgroundColorHex = stylesBinding.placeholder.backgroundColor;
object9.colorHex = stylesBinding.placeholderAvatar.backgroundColor;
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object9.labelPadding = PX_16;
object9.labelPaddingInnerRatio = 0;
object9.labelSize = stylesBinding.placeholderUsername.height;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object9.padding = PX_12;
object9.shapeSize = stylesBinding.placeholderAvatar.width;
const object10 = {divider: true};
object10.dividerColorHex = stylesBinding.placeholderDivider.backgroundColor;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
value = PX_12 + stylesBinding.placeholderAvatar.width;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object10.dividerPaddingLeft = value + PX_16;
const object11 = {};
const object12 = {};
const SHAPE = FastestListPropsPlaceholderType.SHAPE;
object12.type = SHAPE;
object12.shape = 'rect';
object12.colorHex = stylesBinding.placeholder.backgroundColor;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object12.paddingVertical = PX_16;
object12.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const PX_96 = (importDefault(697) /* metro dependency 697: native */).space.PX_96;
object12.width = PX_96;
object11.sectionHeader = object12;
const object13 = {};
copyDataProperties(object13, object9, require);
copyDataProperties(object13, object10, require);
object11.sectionItem = object13;
const object14 = {};
copyDataProperties(object14, object9, require);
copyDataProperties(object14, object10, require);
object14['borderTopLeftRadius'] = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object14['borderTopRightRadius'] = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object11.sectionItemAtFront = object14;
const object15 = {};
copyDataProperties(object15, object9, require);
object15['borderBottomLeftRadius'] = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object15['borderBottomRightRadius'] = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object11.sectionItemAtRear = object15;
const object16 = {};
copyDataProperties(object16, object9, require);
object16['borderRadius'] = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object11.sectionItemSingleton = object16;
return object11;
}
global.__d(_fun61482, 7699, [31, 4501, 697, 1305, 6235, 7700,
2]) /* metro module 7699, dependencies: [31, 4501, 697, 1305, 6235, 7700, 2] */;
@@ -1,15 +1,17 @@
/* Metro module 7700; source: modules/fastest_list/props/FastestListPropsPlaceholder.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun61485(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7878:6, offset: 0x01b41cae, size: 128 bytes, params: 8, frame: 16
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {NONE: 0};
object2[0] = 'NONE';
object2.SHAPE = 1;
object2[1] = 'SHAPE';
object2.FEED_ITEM = 2;
object2[2] = 'FEED_ITEM';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/fastest_list/props/FastestListPropsPlaceholder.tsx');
exports.FastestListPropsPlaceholderType = object2;
object = {NONE: 0};
object[0] = 'NONE';
object.SHAPE = 1;
object[1] = 'SHAPE';
object.FEED_ITEM = 2;
object[2] = 'FEED_ITEM';
(FileImportTrackerModule).fileFinishedImporting('modules/fastest_list/props/FastestListPropsPlaceholder.tsx');
exports.FastestListPropsPlaceholderType = object;
}
global.__d(_fun61485, 7700, [2]) /* metro module 7700, dependencies: [2] */;
@@ -1,34 +1,37 @@
/* Metro module 8676; source: modules/fastest_list/props/useFastestListPropsEstimatedListSize.native.tsx; dependencies: [57, 31, 1478, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun68243(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8861:6, offset: 0x01c44fed, size: 133 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
const env0_3 = importAll(31) /* metro dependency 31 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/fastest_list/props/useFastestListPropsEstimatedListSize.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/fastest_list/props/useFastestListPropsEstimatedListSize.native.tsx');
exports.default = useFastestListPropsEstimatedListSize;
}
function useFastestListPropsEstimatedListSize({estimatedListSize, horizontal}) { // fn#68244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8861:234, offset: 0x01c45072, size: 79 bytes, params: 2, frame: 13
const value = Module00057(ReactModule.useState(_fun68245), 2);
const property = value[0];
value[1];
return property;
function _fun68245() { // fn#68245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8861:334, offset: 0x01c450c1, size: 80 bytes, params: 1, frame: 13
var r0;
var horizontalBinding;
var value;
if (estimatedListSize === 'windowSize') {
horizontalBinding = horizontal;
value = environment.__proto__;
value = require(1478) /* metro dependency 1478: useWindowDimensionsNative */;
value = value.getWindowDimensions();
r0 = horizontalBinding ? value.width : value.height;
} else {
r0 = estimatedListSize;
}
return r0;
}
function useFastestListPropsEstimatedListSize({estimatedListSize, horizontal}) { // fn#68244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8861:234, offset: 0x01c45072, size: 79 bytes, params: 2, frame: 13
const value = env0_2(env0_3.useState(_fun68245), 2);
const property = value[0];
value[1];
return property;
}
function _fun68245() { // fn#68245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8861:334, offset: 0x01c450c1, size: 80 bytes, params: 1, frame: 13
var r0;
var horizontalBinding;
var value;
if (estimatedListSize === 'windowSize') {
horizontalBinding = horizontal;
value = environment.__proto__;
value = require(1478) /* metro dependency 1478: useWindowDimensionsNative */;
value = value.getWindowDimensions();
r0 = horizontalBinding ? value.width : value.height;
} else {
r0 = estimatedListSize;
}
return r0;
}
global.__d(_fun68243, 8676, [57, 31, 1478, 2]) /* metro module 8676, dependencies: [57, 31, 1478, 2] */;
@@ -1,155 +1,158 @@
/* Metro module 8677; source: modules/fastest_list/props/useFastestListPropsPlaceholder.android.tsx; dependencies: [31, 7700, 4000, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FastestListPropsPlaceholderModule from './FastestListPropsPlaceholder.tsx'; /* Metro dependency 7700 */
function _fun68246(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8862:6, offset: 0x01c45111, size: 166 bytes, params: 8, frame: 18
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
object2 = {};
const FastestListPropsPlaceholderType = (require(7700) /* metro dependency 7700: FastestListPropsPlaceholder */).FastestListPropsPlaceholderType;
object = {};
const FastestListPropsPlaceholderType = (FastestListPropsPlaceholderModule).FastestListPropsPlaceholderType;
const NONE = FastestListPropsPlaceholderType.NONE;
object2.sectionItem = {type: NONE};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/fastest_list/props/useFastestListPropsPlaceholder.android.tsx');
object.sectionItem = {type: NONE};
(FileImportTrackerModule).fileFinishedImporting('modules/fastest_list/props/useFastestListPropsPlaceholder.android.tsx');
exports.default = useFastestListPropsPlaceholder;
}
function createNativePlaceholderConfig(a0) { // fn#68247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8862:174, offset: 0x01c451b7, size: 1115 bytes, params: 2, frame: 20
var r1;
var r7;
var borderRadius;
var value6;
var divider;
var moduleValue;
var moduleValue2;
var labelPaddingInnerRatio;
var value10;
var verticalAlignment;
let value = undefined;
const type = a0 == null ? value : a0.type;
const object2 = {borderRadius: value, borderTopLeftRadius: value, borderTopRightRadius: value,
borderBottomLeftRadius: value, borderBottomRightRadius: value, divider: value, dividerColorRgba: value,
dividerPaddingLeft: value, dividerPaddingRight: value, placeholderShape: value,
placeholderShapeColorRgba: value, placeholderShapeCount: value, placeholderShapeGap: value,
placeholderShapePaddingHorizontal: value, placeholderShapePaddingVertical: value,
placeholderFeedBackgroundColorRgba: value, placeholderFeedColorRgba: value, placeholderFeedLabelPadding: value,
placeholderFeedLabelPaddingInnerRatio: value, placeholderFeedLabelSize: value,
placeholderFeedLabelSecondarySize: value, placeholderFeedPadding: value, placeholderFeedShape: value,
placeholderFeedShapeSize: value};
object2.placeholderType = type ?? (require(7700) /* metro dependency 7700: FastestListPropsPlaceholder */).FastestListPropsPlaceholderType.NONE;
object2.width = value;
object2.height = value;
object2.verticalAlignment = value;
object2.horizontalAlignment = value;
if (a0 == null) {
return object2;
}
const value4 = 1;
let FastestListPropsPlaceholderType = require(dependencyMap[value4]).FastestListPropsPlaceholderType;
const NONE = FastestListPropsPlaceholderType.NONE;
if (NONE === type) {
return object2;
}
FastestListPropsPlaceholderType = require(dependencyMap[value4]).FastestListPropsPlaceholderType;
const SHAPE = FastestListPropsPlaceholderType.SHAPE;
if (SHAPE === type) {
borderRadius = a0.borderRadius;
value10 = 0;
r7 = borderRadius ?? value10;
object2.borderRadius = r7;
object2.placeholderShape = a0.shape;
r7 = a0.spaceGap ?? value10;
object2.placeholderShapeGap = r7;
r7 = a0.paddingHorizontal ?? value10;
object2.placeholderShapePaddingHorizontal = r7;
object2.placeholderShapePaddingVertical = a0.paddingVertical ?? value10;
value = require(4000) /* metro dependency 4000: ColorUtils */;
object2.placeholderShapeColorRgba = value.hexToRgbaString(a0.colorHex, a0.opacity);
r1 = a0.shapeCount ?? value4;
object2.placeholderShapeCount = r1;
object2.width = a0.width;
object2.height = a0.height;
verticalAlignment = a0.verticalAlignment;
value = 'center';
object2.verticalAlignment = verticalAlignment ?? value;
r1 = a0.horizonalAlignment ?? value;
object2.horizontalAlignment = r1;
return object2;
}
FastestListPropsPlaceholderType = require(dependencyMap[value4]).FastestListPropsPlaceholderType;
const FEED_ITEM = FastestListPropsPlaceholderType.FEED_ITEM;
if (FEED_ITEM === type) {
borderRadius = a0.borderRadius;
value6 = 0;
r7 = borderRadius ?? value6;
object2.borderRadius = r7;
r7 = a0.borderTopLeftRadius ?? value6;
object2.borderTopLeftRadius = r7;
r7 = a0.borderTopRightRadius ?? value6;
object2.borderTopRightRadius = r7;
r7 = a0.borderBottomLeftRadius ?? value6;
object2.borderBottomLeftRadius = r7;
r7 = a0.borderBottomRightRadius ?? value6;
object2.borderBottomRightRadius = r7;
divider = a0.divider;
r7 = divider != null && divider;
object2.divider = r7;
if (a0.dividerColorHex != null) {
moduleValue = require(4000) /* metro dependency 4000: ColorUtils */;
r7 = moduleValue.hexToRgbaString(a0.dividerColorHex);
} else {
r7 = value;
function createNativePlaceholderConfig(a0) { // fn#68247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8862:174, offset: 0x01c451b7, size: 1115 bytes, params: 2, frame: 20
var r1;
var r7;
var borderRadius;
var value6;
var divider;
var moduleValue;
var moduleValue2;
var labelPaddingInnerRatio;
var value10;
var verticalAlignment;
let value = undefined;
const type = a0 == null ? value : a0.type;
const object = {borderRadius: value, borderTopLeftRadius: value, borderTopRightRadius: value,
borderBottomLeftRadius: value, borderBottomRightRadius: value, divider: value, dividerColorRgba: value,
dividerPaddingLeft: value, dividerPaddingRight: value, placeholderShape: value,
placeholderShapeColorRgba: value, placeholderShapeCount: value, placeholderShapeGap: value,
placeholderShapePaddingHorizontal: value, placeholderShapePaddingVertical: value,
placeholderFeedBackgroundColorRgba: value, placeholderFeedColorRgba: value, placeholderFeedLabelPadding: value,
placeholderFeedLabelPaddingInnerRatio: value, placeholderFeedLabelSize: value,
placeholderFeedLabelSecondarySize: value, placeholderFeedPadding: value, placeholderFeedShape: value,
placeholderFeedShapeSize: value};
object.placeholderType = type ?? (require(7700) /* metro dependency 7700: FastestListPropsPlaceholder */).FastestListPropsPlaceholderType.NONE;
object.width = value;
object.height = value;
object.verticalAlignment = value;
object.horizontalAlignment = value;
if (a0 == null) {
return object;
}
object2.dividerColorRgba = r7;
r7 = a0.dividerPaddingLeft ?? value6;
object2.dividerPaddingLeft = r7;
r7 = a0.dividerPaddingRight ?? value6;
object2.dividerPaddingRight = r7;
if (a0.backgroundColorHex != null) {
moduleValue2 = require(4000) /* metro dependency 4000: ColorUtils */;
r7 = moduleValue2.hexToRgbaString(a0.backgroundColorHex);
} else {
r7 = value;
const value4 = 1;
let FastestListPropsPlaceholderType = require(dependencyMap[value4]).FastestListPropsPlaceholderType;
const NONE = FastestListPropsPlaceholderType.NONE;
if (NONE === type) {
return object;
}
object2.placeholderFeedBackgroundColorRgba = r7;
value = require(4000) /* metro dependency 4000: ColorUtils */;
object2.placeholderFeedColorRgba = value.hexToRgbaString(a0.colorHex);
object2.placeholderFeedLabelSize = a0.labelSize;
r7 = a0.labelSecondarySize ?? value6;
object2.placeholderFeedLabelSecondarySize = r7;
object2.placeholderFeedLabelPadding = a0.labelPadding;
labelPaddingInnerRatio = a0.labelPaddingInnerRatio;
value = 0.4;
r7 = labelPaddingInnerRatio ?? value;
object2.placeholderFeedLabelPaddingInnerRatio = r7;
object2.placeholderFeedPadding = a0.padding ?? value6;
object2.placeholderFeedShape = a0.shape;
object2.placeholderFeedShapeSize = a0.shapeSize;
return object2;
FastestListPropsPlaceholderType = require(dependencyMap[value4]).FastestListPropsPlaceholderType;
const SHAPE = FastestListPropsPlaceholderType.SHAPE;
if (SHAPE === type) {
borderRadius = a0.borderRadius;
value10 = 0;
r7 = borderRadius ?? value10;
object.borderRadius = r7;
object.placeholderShape = a0.shape;
r7 = a0.spaceGap ?? value10;
object.placeholderShapeGap = r7;
r7 = a0.paddingHorizontal ?? value10;
object.placeholderShapePaddingHorizontal = r7;
object.placeholderShapePaddingVertical = a0.paddingVertical ?? value10;
value = require(4000) /* metro dependency 4000: ColorUtils */;
object.placeholderShapeColorRgba = value.hexToRgbaString(a0.colorHex, a0.opacity);
r1 = a0.shapeCount ?? value4;
object.placeholderShapeCount = r1;
object.width = a0.width;
object.height = a0.height;
verticalAlignment = a0.verticalAlignment;
value = 'center';
object.verticalAlignment = verticalAlignment ?? value;
r1 = a0.horizonalAlignment ?? value;
object.horizontalAlignment = r1;
return object;
}
FastestListPropsPlaceholderType = require(dependencyMap[value4]).FastestListPropsPlaceholderType;
const FEED_ITEM = FastestListPropsPlaceholderType.FEED_ITEM;
if (FEED_ITEM === type) {
borderRadius = a0.borderRadius;
value6 = 0;
r7 = borderRadius ?? value6;
object.borderRadius = r7;
r7 = a0.borderTopLeftRadius ?? value6;
object.borderTopLeftRadius = r7;
r7 = a0.borderTopRightRadius ?? value6;
object.borderTopRightRadius = r7;
r7 = a0.borderBottomLeftRadius ?? value6;
object.borderBottomLeftRadius = r7;
r7 = a0.borderBottomRightRadius ?? value6;
object.borderBottomRightRadius = r7;
divider = a0.divider;
r7 = divider != null && divider;
object.divider = r7;
if (a0.dividerColorHex != null) {
moduleValue = require(4000) /* metro dependency 4000: ColorUtils */;
r7 = moduleValue.hexToRgbaString(a0.dividerColorHex);
} else {
r7 = value;
}
object.dividerColorRgba = r7;
r7 = a0.dividerPaddingLeft ?? value6;
object.dividerPaddingLeft = r7;
r7 = a0.dividerPaddingRight ?? value6;
object.dividerPaddingRight = r7;
if (a0.backgroundColorHex != null) {
moduleValue2 = require(4000) /* metro dependency 4000: ColorUtils */;
r7 = moduleValue2.hexToRgbaString(a0.backgroundColorHex);
} else {
r7 = value;
}
object.placeholderFeedBackgroundColorRgba = r7;
value = require(4000) /* metro dependency 4000: ColorUtils */;
object.placeholderFeedColorRgba = value.hexToRgbaString(a0.colorHex);
object.placeholderFeedLabelSize = a0.labelSize;
r7 = a0.labelSecondarySize ?? value6;
object.placeholderFeedLabelSecondarySize = r7;
object.placeholderFeedLabelPadding = a0.labelPadding;
labelPaddingInnerRatio = a0.labelPaddingInnerRatio;
value = 0.4;
r7 = labelPaddingInnerRatio ?? value;
object.placeholderFeedLabelPaddingInnerRatio = r7;
object.placeholderFeedPadding = a0.padding ?? value6;
object.placeholderFeedShape = a0.shape;
object.placeholderFeedShapeSize = a0.shapeSize;
return object;
}
const Error = global.Error;
value = 'Invalid placeholder type: ' + type;
const value5 = Object.create(Error.prototype, {constructor: {value: Error}});
const error = new Error(value);
throw error instanceof Object ? error : value5;
}
const Error = global.Error;
value = 'Invalid placeholder type: ' + type;
const value5 = Object.create(Error.prototype, {constructor: {value: Error}});
const error = new Error(value);
throw error instanceof Object ? error : value5;
}
function useFastestListPropsPlaceholder() { // fn#68248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8862:3160, offset: 0x01c45612, size: 57 bytes, params: 1, frame: 14
const value = a0;
return env0_2.useMemo(_fun68249, [value !== undefined ? value : env0_3]);
}
function useFastestListPropsPlaceholder() { // fn#68248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8862:3160, offset: 0x01c45612, size: 57 bytes, params: 1, frame: 14
const value = a0;
return ReactModule.useMemo(_fun68249, [value !== undefined ? value : env0_3]);
function _fun68249() { // fn#68249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8862:3223, offset: 0x01c4564b, size: 148 bytes, params: 1, frame: 13
const object = {};
const createNativePlaceholderConfigBinding = createNativePlaceholderConfig;
const binding = env0_0;
object.listFooter = createNativePlaceholderConfigBinding(binding.listFooter);
object.listHeader = createNativePlaceholderConfigBinding(binding.listHeader);
object.sectionFooter = createNativePlaceholderConfigBinding(binding.sectionFooter);
object.sectionHeader = createNativePlaceholderConfigBinding(binding.sectionHeader);
object.sectionItem = createNativePlaceholderConfigBinding(binding.sectionItem);
object.sectionItemAtFront = createNativePlaceholderConfigBinding(binding.sectionItemAtFront);
object.sectionItemAtRear = createNativePlaceholderConfigBinding(binding.sectionItemAtRear);
object.sectionItemSingleton = createNativePlaceholderConfigBinding(binding.sectionItemSingleton);
return object;
}
}
function _fun68249() { // fn#68249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8862:3223, offset: 0x01c4564b, size: 148 bytes, params: 1, frame: 13
const object2 = {};
const createNativePlaceholderConfigBinding = createNativePlaceholderConfig;
const binding = env0_0;
object2.listFooter = createNativePlaceholderConfigBinding(binding.listFooter);
object2.listHeader = createNativePlaceholderConfigBinding(binding.listHeader);
object2.sectionFooter = createNativePlaceholderConfigBinding(binding.sectionFooter);
object2.sectionHeader = createNativePlaceholderConfigBinding(binding.sectionHeader);
object2.sectionItem = createNativePlaceholderConfigBinding(binding.sectionItem);
object2.sectionItemAtFront = createNativePlaceholderConfigBinding(binding.sectionItemAtFront);
object2.sectionItemAtRear = createNativePlaceholderConfigBinding(binding.sectionItemAtRear);
object2.sectionItemSingleton = createNativePlaceholderConfigBinding(binding.sectionItemSingleton);
return object2;
}
global.__d(_fun68246, 8677, [31, 7700, 4000, 2]) /* metro module 8677, dependencies: [31, 7700, 4000, 2] */;
@@ -1,40 +1,44 @@
/* Metro module 8681; source: modules/fastest_list/props/useFastestListPropsScrollReporting.native.tsx; dependencies: [4017, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReanimatedRexportModule from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
function _fun68260(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8866:6, offset: 0x01c45dfd, size: 112 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object = {code: 'function useFastestListPropsScrollReportingNativeTsx1(event){const{scrollPosition,horizontal}=this.__closure;if(scrollPosition!=null){scrollPosition.set(horizontal?event.contentOffset.x:event.contentOffset.y);}}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/fastest_list/props/useFastestListPropsScrollReporting.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/fastest_list/props/useFastestListPropsScrollReporting.native.tsx');
exports.default = useFastestListPropsScrollReporting;
}
function useFastestListPropsScrollReporting(a0, a1) { // fn#68261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8866:435, offset: 0x01c45e6d, size: 214 bytes, params: 3, frame: 18
const env0_0 = a1;
let scrollReporting = a0.scrollReporting;
const scrollPosition = scrollReporting !== 'animatedScrollPosition' ? undefined : a0.scrollPosition;
const useAnimatedScrollHandler = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useAnimatedScrollHandler;
const closure = function(a0) {
var set;
var contentOffset;
var scrollPositionBinding = scrollPosition;
if (scrollPositionBinding != null) {
scrollPositionBinding = scrollPosition;
set = scrollPositionBinding.set;
contentOffset = a0.contentOffset;
Reflect.apply(set, scrollPositionBinding, [require ? contentOffset.x : contentOffset.y]);
function useFastestListPropsScrollReporting(a0, a1) { // fn#68261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8866:435, offset: 0x01c45e6d, size: 214 bytes, params: 3, frame: 18
const env0_0 = a1;
let scrollReporting = a0.scrollReporting;
const scrollPosition = scrollReporting !== 'animatedScrollPosition' ? undefined : a0.scrollPosition;
const useAnimatedScrollHandler = (ReanimatedRexportModule).useAnimatedScrollHandler;
const closure = function(a0) {
var set;
var contentOffset;
var scrollPositionBinding = scrollPosition;
if (scrollPositionBinding != null) {
scrollPositionBinding = scrollPosition;
set = scrollPositionBinding.set;
contentOffset = a0.contentOffset;
Reflect.apply(set, scrollPositionBinding, [require ? contentOffset.x : contentOffset.y]);
}
};
closure.__closure = {scrollPosition: scrollPosition, horizontal: a1};
closure.__workletHash = 14196294214838;
closure.__initData = env0_2;
value = Reflect.apply(useAnimatedScrollHandler, value, [{onScroll: closure}]);
scrollReporting = a0.scrollReporting;
if (scrollReporting === 'animatedScrollPosition') {
return {onScroll: value};
}
};
closure.__closure = {scrollPosition: scrollPosition, horizontal: a1};
closure.__workletHash = 14196294214838;
closure.__initData = env0_2;
value = Reflect.apply(useAnimatedScrollHandler, value, [{onScroll: closure}]);
scrollReporting = a0.scrollReporting;
if (scrollReporting === 'animatedScrollPosition') {
return {onScroll: value};
if (scrollReporting === 'animatedCallbacks') {
return {onScroll: a0.scrollHandlerAnimated};
}
return {onScroll: a0.onScroll, onScrollBeginDrag: a0.onScrollBeginDrag, onScrollEndDrag: a0.onScrollEndDrag};
}
if (scrollReporting === 'animatedCallbacks') {
return {onScroll: a0.scrollHandlerAnimated};
}
return {onScroll: a0.onScroll, onScrollBeginDrag: a0.onScrollBeginDrag, onScrollEndDrag: a0.onScrollEndDrag};
}
global.__d(_fun68260, 8681, [4017, 2]) /* metro module 8681, dependencies: [4017, 2] */;
@@ -1,54 +1,57 @@
/* Metro module 8673; source: modules/fastest_list/useFastestListComputedStyles.android.tsx; dependencies: [31, 27, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun68235(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8858:6, offset: 0x01c44921, size: 128 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importAll(31) /* metro dependency 31 */;
const env0_1 = (require(27) /* metro dependency 27 */).StyleSheet;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/fastest_list/useFastestListComputedStyles.android.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/fastest_list/useFastestListComputedStyles.android.tsx');
exports.default = function({style}) {
return style.useMemo(_fun68237, [style]);
};
function useFastestListComputedStyles({style}) { // fn#68236, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8858:232, offset: 0x01c449a1, size: 49 bytes, params: 2, frame: 14
return style.useMemo(_fun68237, [style]);
function _fun68237() { // fn#68237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8858:299, offset: 0x01c449d2, size: 580 bytes, params: 1, frame: 19
let value = environment.__proto__;
const flatten = StyleSheet.flatten;
let r0 = style != null ? [style ?? ({flex: 1})] : {flex: 1};
value = Reflect.apply(flatten, StyleSheet, [r0]);
const value2 = undefined;
r0 = (value == null ? value2 : value.marginStart) ?? (value == null ? value2 : value.marginLeft);
r0 = r0 ?? (value == null ? value2 : value.marginHorizontal);
r0 = r0 ?? (value == null ? value2 : value.margin);
const value3 = 0;
const r2 = r0 ?? value3;
r0 = (value == null ? value2 : value.paddingStart) ?? (value == null ? value2 : value.paddingLeft);
r0 = r0 ?? (value == null ? value2 : value.paddingHorizontal);
r0 = r0 ?? (value == null ? value2 : value.padding);
const r1 = r0 ?? value3;
if (typeof r2 !== 'number') {
throw new global.Error('FastestList: marginStart and marginEnd must be numbers.');
}
if (typeof r1 !== 'number') {
throw new global.Error('FastestList: marginStart and marginEnd must be numbers.');
}
r0 = (value == null ? value2 : value.marginEnd) ?? (value == null ? value2 : value.marginRight);
r0 = r0 ?? (value == null ? value2 : value.marginHorizontal);
r0 = r0 ?? (value == null ? value2 : value.margin);
const r3 = r0 ?? value3;
r0 = (value == null ? value2 : value.paddingEnd) ?? (value == null ? value2 : value.paddingRight);
r0 = r0 ?? (value == null ? value2 : value.paddingHorizontal);
r0 = r0 ?? (value == null ? value2 : value.padding);
const r4 = r0 ?? value3;
if (typeof r3 !== 'number') {
throw new global.Error('FastestList: paddingStart and paddingEnd must be numbers.');
}
if (typeof r4 !== 'number') {
throw new global.Error('FastestList: paddingStart and paddingEnd must be numbers.');
}
return {style: value, marginEnd: r3 + r4, marginStart: r2 + r1};
}
}
}
function useFastestListComputedStyles({style}) { // fn#68236, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8858:232, offset: 0x01c449a1, size: 49 bytes, params: 2, frame: 14
return style.useMemo(_fun68237, [style]);
}
function _fun68237() { // fn#68237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8858:299, offset: 0x01c449d2, size: 580 bytes, params: 1, frame: 19
let value = environment.__proto__;
const flatten = StyleSheet.flatten;
let r0 = style != null ? [style ?? ({flex: 1})] : {flex: 1};
value = Reflect.apply(flatten, StyleSheet, [r0]);
const value2 = undefined;
r0 = (value == null ? value2 : value.marginStart) ?? (value == null ? value2 : value.marginLeft);
r0 = r0 ?? (value == null ? value2 : value.marginHorizontal);
r0 = r0 ?? (value == null ? value2 : value.margin);
const value3 = 0;
const r2 = r0 ?? value3;
r0 = (value == null ? value2 : value.paddingStart) ?? (value == null ? value2 : value.paddingLeft);
r0 = r0 ?? (value == null ? value2 : value.paddingHorizontal);
r0 = r0 ?? (value == null ? value2 : value.padding);
const r1 = r0 ?? value3;
if (typeof r2 !== 'number') {
throw new global.Error('FastestList: marginStart and marginEnd must be numbers.');
}
if (typeof r1 !== 'number') {
throw new global.Error('FastestList: marginStart and marginEnd must be numbers.');
}
r0 = (value == null ? value2 : value.marginEnd) ?? (value == null ? value2 : value.marginRight);
r0 = r0 ?? (value == null ? value2 : value.marginHorizontal);
r0 = r0 ?? (value == null ? value2 : value.margin);
const r3 = r0 ?? value3;
r0 = (value == null ? value2 : value.paddingEnd) ?? (value == null ? value2 : value.paddingRight);
r0 = r0 ?? (value == null ? value2 : value.paddingHorizontal);
r0 = r0 ?? (value == null ? value2 : value.padding);
const r4 = r0 ?? value3;
if (typeof r3 !== 'number') {
throw new global.Error('FastestList: paddingStart and paddingEnd must be numbers.');
}
if (typeof r4 !== 'number') {
throw new global.Error('FastestList: paddingStart and paddingEnd must be numbers.');
}
return {style: value, marginEnd: r3 + r4, marginStart: r2 + r1};
}
global.__d(_fun68235, 8673, [31, 27, 2]) /* metro module 8673, dependencies: [31, 27, 2] */;
@@ -1,304 +1,316 @@
/* Metro module 8678; source: modules/fastest_list/useFastestListSections.android.tsx; dependencies: [31, 6518, 8679, 8680, 2] */
import GetFastestListSectionsWithErrorCheckingNative from './utils/getFastestListSectionsWithErrorChecking.native.tsx'; /* Metro dependency 8680 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun68250(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8863:6, offset: 0x01c456df, size: 117 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/fastest_list/useFastestListSections.android.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/fastest_list/useFastestListSections.android.tsx');
exports.default = useFastestListSections;
}
function useFastestListSections({fastestListId, itemSize, keyExtractor, listFooterSize, listHeaderSize, sections, sectionHeaderSize, sectionFooterSize}) { // fn#68251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8863:205, offset: 0x01c45754, size: 265 bytes, params: 2, frame: 25
const keyExtractor2 = keyExtractor;
listFooterSize = listFooterSize === undefined ? 0 : listFooterSize;
listHeaderSize = listHeaderSize === undefined ? 0 : listHeaderSize;
sectionHeaderSize = sectionHeaderSize === undefined ? 0 : sectionHeaderSize;
sectionFooterSize = sectionFooterSize === undefined ? 0 : sectionFooterSize;
const value2 = (importDefault(6518) /* metro dependency 6518: useInitialValue */)(function() {
var env0_0 = 0;
return {getId: _fun68253, incrementId: _fun68254};
});
const binding = keyExtractor2;
const value = binding.useMemo(_fun68255, [keyExtractor, itemSize, listFooterSize, listHeaderSize, sectionHeaderSize,
sectionFooterSize, fastestListId, value2, sections]);
binding.useEffect(_fun68256, [value2, value]);
return (GetFastestListSectionsWithErrorCheckingNative)(value);
function _fun68252() { // fn#68252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8863:390, offset: 0x01c4585d, size: 36 bytes, params: 1, frame: 3
return {getId: getId_68253, incrementId: incrementId};
function getId_68253() { // fn#68253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8863:416, offset: 0x01c45881, size: 31 bytes, params: 1, frame: 11
return '' + env0_0;
}
function useFastestListSections({fastestListId, itemSize, keyExtractor, listFooterSize, listHeaderSize, sections, sectionHeaderSize, sectionFooterSize}) { // fn#68251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8863:205, offset: 0x01c45754, size: 265 bytes, params: 2, frame: 25
const env0_2 = keyExtractor;
listFooterSize = listFooterSize === undefined ? 0 : listFooterSize;
listHeaderSize = listHeaderSize === undefined ? 0 : listHeaderSize;
sectionHeaderSize = sectionHeaderSize === undefined ? 0 : sectionHeaderSize;
sectionFooterSize = sectionFooterSize === undefined ? 0 : sectionFooterSize;
const value2 = (importDefault(6518) /* metro dependency 6518: useInitialValue */)(function() {
var env0_0 = 0;
return {getId: _fun68253, incrementId: _fun68254};
});
const binding = env0_2;
const value = binding.useMemo(_fun68255, [keyExtractor, itemSize, listFooterSize, listHeaderSize, sectionHeaderSize,
sectionFooterSize, fastestListId, value2, sections]);
binding.useEffect(_fun68256, [value2, value]);
return (importDefault(8680) /* metro dependency 8680: getFastestListSectionsWithErrorCheckingNative */)(value);
}
function incrementId() { // fn#68254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8863:439, offset: 0x011bbb71, size: 19 bytes, params: 1, frame: 3
const binding = env0_0;
const value2 = typeof binding === 'bigint' ? binding : +binding;
env0_0 = typeof value2 === 'bigint' ? value2 + 1n : +value2 + 1;
return value2;
}
function _fun68252() { // fn#68252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8863:390, offset: 0x01c4585d, size: 36 bytes, params: 1, frame: 3
return {getId: getId_68253, incrementId: incrementId};
}
}
function _fun68255() { // fn#68255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8863:464, offset: 0x01c458a0, size: 945 bytes, params: 1, frame: 46
var r0;
var r21;
var r29;
var r32;
var value5;
var LIST_FOOTER;
var value6;
var value9;
var LIST_HEADER;
var value10;
var push;
var length;
var value14;
var value15;
var SECTION_HEADER;
var value16;
var SECTION_FOOTER;
var value17;
var property;
var sizes;
var keys;
var ITEM;
var value18;
var value19;
var value20;
const items7 = [];
const value2 = typeof itemSize === 'number';
const items2 = [];
const r13 = typeof listFooterSize === 'number' ? listFooterSize : listFooterSize();
let keyExtractorBinding = keyExtractor;
const value4 = undefined;
reducibleJoin5: while (true) {
if (keyExtractorBinding == null) {
r0 = value4;
break reducibleJoin5;
}
keyExtractorBinding = keyExtractor;
value5 = environment.__proto__;
LIST_FOOTER = (importDefault(8679) /* metro dependency 8679: FastestListItemType */).LIST_FOOTER;
value6 = keyExtractorBinding(LIST_FOOTER, 0, 0);
r0 = value6;
break reducibleJoin5;
}
const value7 = '';
const r14 = r0 ?? value7;
const r11 = typeof listHeaderSize === 'number' ? listHeaderSize : listHeaderSize();
keyExtractorBinding = keyExtractor;
reducibleJoin11: while (true) {
if (keyExtractorBinding == null) {
r0 = value4;
break reducibleJoin11;
}
keyExtractorBinding = keyExtractor;
value9 = environment.__proto__;
LIST_HEADER = (importDefault(8679) /* metro dependency 8679: FastestListItemType */).LIST_HEADER;
value10 = keyExtractorBinding(LIST_HEADER, 0, 0);
r0 = value10;
break reducibleJoin11;
}
const r12 = r0 ?? value7;
const items3 = [];
const items4 = [];
const value11 = typeof sectionHeaderSize === 'number';
const items5 = [];
const items6 = [];
const value12 = typeof sectionFooterSize === 'number';
const value13 = keyExtractor == null;
reducibleJoin14: while (true) {
if (value13) {
push = items7.push;
Reflect.apply(push, items7, [{keys: ['']}]);
push = items3.push;
Reflect.apply(push, items3, [value7]);
push = items5.push;
Reflect.apply(push, items5, [value7]);
break reducibleJoin14;
}
break reducibleJoin14;
}
reducibleJoin16: while (true) {
if (value2) {
push = items2.push;
Reflect.apply(push, items2, [{sizes: [itemSize]}]);
break reducibleJoin16;
}
break reducibleJoin16;
}
reducibleJoin18: while (true) {
if (value11) {
push = items4.push;
Reflect.apply(push, items4, [sectionHeaderSize]);
break reducibleJoin18;
}
break reducibleJoin18;
}
reducibleJoin20: while (true) {
if (value12) {
push = items6.push;
Reflect.apply(push, items6, [sectionFooterSize]);
break reducibleJoin20;
}
break reducibleJoin20;
}
reducibleJoin47: while (true) {
reducibleJoin24: while (true) {
if (value12) {
function _fun68255() { // fn#68255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8863:464, offset: 0x01c458a0, size: 945 bytes, params: 1, frame: 46
var r0;
var r21;
var r29;
var r32;
var value5;
var LIST_FOOTER;
var value6;
var value9;
var LIST_HEADER;
var value10;
var push;
var length;
var value14;
var value15;
var SECTION_HEADER;
var value16;
var SECTION_FOOTER;
var value17;
var property;
var sizes;
var keys;
var ITEM;
var value18;
var value19;
var value20;
const items7 = [];
const value2 = typeof itemSize === 'number';
const items2 = [];
const r13 = typeof listFooterSize === 'number' ? listFooterSize : listFooterSize();
let keyExtractorBinding = keyExtractor;
const value4 = undefined;
reducibleJoin5: while (true) {
if (keyExtractorBinding == null) {
r0 = value4;
break reducibleJoin5;
}
keyExtractorBinding = keyExtractor;
value5 = environment.__proto__;
LIST_FOOTER = (importDefault(8679) /* metro dependency 8679: FastestListItemType */).LIST_FOOTER;
value6 = keyExtractorBinding(LIST_FOOTER, 0, 0);
r0 = value6;
break reducibleJoin5;
}
const value7 = '';
const r14 = r0 ?? value7;
const r11 = typeof listHeaderSize === 'number' ? listHeaderSize : listHeaderSize();
keyExtractorBinding = keyExtractor;
reducibleJoin11: while (true) {
if (keyExtractorBinding == null) {
r0 = value4;
break reducibleJoin11;
}
keyExtractorBinding = keyExtractor;
value9 = environment.__proto__;
LIST_HEADER = (importDefault(8679) /* metro dependency 8679: FastestListItemType */).LIST_HEADER;
value10 = keyExtractorBinding(LIST_HEADER, 0, 0);
r0 = value10;
break reducibleJoin11;
}
const r12 = r0 ?? value7;
const items3 = [];
const items4 = [];
const value11 = typeof sectionHeaderSize === 'number';
const items5 = [];
const items6 = [];
const value12 = typeof sectionFooterSize === 'number';
const value13 = keyExtractor == null;
reducibleJoin14: while (true) {
if (value13) {
push = items7.push;
Reflect.apply(push, items7, [{keys: ['']}]);
push = items3.push;
Reflect.apply(push, items3, [value7]);
push = items5.push;
Reflect.apply(push, items5, [value7]);
break reducibleJoin14;
}
break reducibleJoin14;
}
reducibleJoin16: while (true) {
if (value2) {
push = items2.push;
Reflect.apply(push, items2, [{sizes: [itemSize]}]);
break reducibleJoin16;
}
break reducibleJoin16;
}
reducibleJoin18: while (true) {
if (value11) {
if (value2) {
if (value13) {
break reducibleJoin47;
push = items4.push;
Reflect.apply(push, items4, [sectionHeaderSize]);
break reducibleJoin18;
}
break reducibleJoin18;
}
reducibleJoin20: while (true) {
if (value12) {
push = items6.push;
Reflect.apply(push, items6, [sectionFooterSize]);
break reducibleJoin20;
}
break reducibleJoin20;
}
reducibleJoin47: while (true) {
reducibleJoin24: while (true) {
if (value12) {
if (value11) {
if (value2) {
if (value13) {
break reducibleJoin47;
}
break reducibleJoin24;
}
break reducibleJoin24;
}
break reducibleJoin24;
}
break reducibleJoin24;
}
break reducibleJoin24;
}
break reducibleJoin24;
}
length = sections.length;
value14 = 0;
value15 = environment.__proto__;
if (!(value14 < length)) {
break reducibleJoin47;
}
r21 = value14;
reducibleLoop25: while (true) {
reducibleJoin27: while (true) {
if (value11) {
break reducibleJoin27;
length = sections.length;
value14 = 0;
value15 = environment.__proto__;
if (!(value14 < length)) {
break reducibleJoin47;
}
push = items4.push;
Reflect.apply(push, items4, [sectionHeaderSize(r21)]);
break reducibleJoin27;
}
reducibleJoin29: while (true) {
if (value12) {
break reducibleJoin29;
}
push = items6.push;
Reflect.apply(push, items6, [sectionFooterSize(r21)]);
break reducibleJoin29;
}
reducibleJoin33: while (true) {
if (value13) {
break reducibleJoin33;
}
push = items3.push;
keyExtractorBinding = keyExtractor;
SECTION_HEADER = (importDefault(8679) /* metro dependency 8679: FastestListItemType */).SECTION_HEADER;
value16 = keyExtractorBinding(SECTION_HEADER, r21, value14);
r0 = value16 ?? value7;
Reflect.apply(push, items3, [r0]);
push = items5.push;
keyExtractorBinding = keyExtractor;
SECTION_FOOTER = (importDefault(8679) /* metro dependency 8679: FastestListItemType */).SECTION_FOOTER;
value17 = keyExtractorBinding(SECTION_FOOTER, r21, value14);
r29 = value17 ?? value7;
Reflect.apply(push, items5, [r29]);
break reducibleJoin33;
}
reducibleJoin46: while (true) {
reducibleJoin39: while (true) {
if (value2) {
if (value13) {
break reducibleJoin46;
r21 = value14;
reducibleLoop25: while (true) {
reducibleJoin27: while (true) {
if (value11) {
break reducibleJoin27;
}
property = sections[r21];
reducibleJoin37: while (true) {
push = items4.push;
Reflect.apply(push, items4, [sectionHeaderSize(r21)]);
break reducibleJoin27;
}
reducibleJoin29: while (true) {
if (value12) {
break reducibleJoin29;
}
push = items6.push;
Reflect.apply(push, items6, [sectionFooterSize(r21)]);
break reducibleJoin29;
}
reducibleJoin33: while (true) {
if (value13) {
break reducibleJoin33;
}
push = items3.push;
keyExtractorBinding = keyExtractor;
SECTION_HEADER = (importDefault(8679) /* metro dependency 8679: FastestListItemType */).SECTION_HEADER;
value16 = keyExtractorBinding(SECTION_HEADER, r21, value14);
r0 = value16 ?? value7;
Reflect.apply(push, items3, [r0]);
push = items5.push;
keyExtractorBinding = keyExtractor;
SECTION_FOOTER = (importDefault(8679) /* metro dependency 8679: FastestListItemType */).SECTION_FOOTER;
value17 = keyExtractorBinding(SECTION_FOOTER, r21, value14);
r29 = value17 ?? value7;
Reflect.apply(push, items5, [r29]);
break reducibleJoin33;
}
reducibleJoin46: while (true) {
reducibleJoin39: while (true) {
if (value2) {
if (value13) {
break reducibleJoin46;
}
property = sections[r21];
reducibleJoin37: while (true) {
if (value2) {
break reducibleJoin37;
}
push = items2.push;
Reflect.apply(push, items2, [{sizes: []}]);
break reducibleJoin37;
}
if (value13) {
break reducibleJoin39;
}
push = items7.push;
Reflect.apply(push, items7, [{keys: []}]);
break reducibleJoin39;
}
property = sections[r21];
reducibleJoin37: while (true) {
if (value2) {
break reducibleJoin37;
}
push = items2.push;
Reflect.apply(push, items2, [{sizes: []}]);
break reducibleJoin37;
}
push = items2.push;
Reflect.apply(push, items2, [{sizes: []}]);
break reducibleJoin37;
}
if (value13) {
if (value13) {
break reducibleJoin39;
}
push = items7.push;
Reflect.apply(push, items7, [{keys: []}]);
break reducibleJoin39;
}
push = items7.push;
Reflect.apply(push, items7, [{keys: []}]);
break reducibleJoin39;
}
property = sections[r21];
reducibleJoin37: while (true) {
if (value2) {
break reducibleJoin37;
if (!(value14 < property)) {
break reducibleJoin46;
}
push = items2.push;
Reflect.apply(push, items2, [{sizes: []}]);
break reducibleJoin37;
}
if (value13) {
break reducibleJoin39;
}
push = items7.push;
Reflect.apply(push, items7, [{keys: []}]);
break reducibleJoin39;
}
if (!(value14 < property)) {
break reducibleJoin46;
}
r29 = value14;
reducibleLoop40: while (true) {
reducibleJoin42: while (true) {
if (value2) {
break reducibleJoin42;
r29 = value14;
reducibleLoop40: while (true) {
reducibleJoin42: while (true) {
if (value2) {
break reducibleJoin42;
}
sizes = items2[r21].sizes;
push = sizes.push;
Reflect.apply(push, sizes, [itemSize(r21, r29)]);
break reducibleJoin42;
}
reducibleJoin45: while (true) {
if (value13) {
break reducibleJoin45;
}
keys = items7[r21].keys;
push = keys.push;
keyExtractorBinding = keyExtractor;
ITEM = (importDefault(8679) /* metro dependency 8679: FastestListItemType */).ITEM;
value18 = keyExtractorBinding(ITEM, r21, r29);
r32 = value18 ?? value7;
Reflect.apply(push, keys, [r32]);
break reducibleJoin45;
}
value19 = typeof r29 === 'bigint' ? r29 + 1n : +r29 + 1;
if (value19 < property) {
r29 = value19;
continue reducibleLoop40;
}
break reducibleJoin46;
}
sizes = items2[r21].sizes;
push = sizes.push;
Reflect.apply(push, sizes, [itemSize(r21, r29)]);
break reducibleJoin42;
break reducibleJoin46;
}
reducibleJoin45: while (true) {
if (value13) {
break reducibleJoin45;
}
keys = items7[r21].keys;
push = keys.push;
keyExtractorBinding = keyExtractor;
ITEM = (importDefault(8679) /* metro dependency 8679: FastestListItemType */).ITEM;
value18 = keyExtractorBinding(ITEM, r21, r29);
r32 = value18 ?? value7;
Reflect.apply(push, keys, [r32]);
break reducibleJoin45;
value20 = typeof r21 === 'bigint' ? r21 + 1n : +r21 + 1;
length = sections.length;
if (value20 < length) {
r21 = value20;
continue reducibleLoop25;
}
value19 = typeof r29 === 'bigint' ? r29 + 1n : +r29 + 1;
if (value19 < property) {
r29 = value19;
continue reducibleLoop40;
}
break reducibleJoin46;
break reducibleJoin47;
}
break reducibleJoin46;
break reducibleJoin47;
}
value20 = typeof r21 === 'bigint' ? r21 + 1n : +r21 + 1;
length = sections.length;
if (value20 < length) {
r21 = value20;
continue reducibleLoop25;
}
break reducibleJoin47;
const object2 = {keysAreUniform: value13};
object2.listId = fastestListId;
object2.listFooterKey = r14;
object2.listFooterSize = r13;
object2.listHeaderKey = r12;
object2.listHeaderSize = r11;
object2.sections = sections;
object2.sectionsId = env0_8.getId();
object2.sectionHeaderKeys = items3;
object2.sectionHeaderSizes = items4;
object2.sectionHeaderSizeIsUniform = value11;
object2.sectionFooterKeys = items5;
object2.sectionFooterSizes = items6;
object2.sectionFooterSizeIsUniform = value12;
object2.itemKeys = items7;
object2.itemSizeIsUniform = value2;
object2.itemSizes = items2;
return object2;
}
break reducibleJoin47;
function _fun68256() { // fn#68256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8863:1581, offset: 0x01c45c51, size: 21 bytes, params: 1, frame: 9
env0_8.incrementId();
}
}
const object = {keysAreUniform: value13};
object.listId = fastestListId;
object.listFooterKey = r14;
object.listFooterSize = r13;
object.listHeaderKey = r12;
object.listHeaderSize = r11;
object.sections = sections;
object.sectionsId = env0_8.getId();
object.sectionHeaderKeys = items3;
object.sectionHeaderSizes = items4;
object.sectionHeaderSizeIsUniform = value11;
object.sectionFooterKeys = items5;
object.sectionFooterSizes = items6;
object.sectionFooterSizeIsUniform = value12;
object.itemKeys = items7;
object.itemSizeIsUniform = value2;
object.itemSizes = items2;
return object;
}
function _fun68256() { // fn#68256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8863:1581, offset: 0x01c45c51, size: 21 bytes, params: 1, frame: 9
env0_8.incrementId();
}
function getId_68253() { // fn#68253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8863:416, offset: 0x01c45881, size: 31 bytes, params: 1, frame: 11
return '' + env0_0;
}
global.__d(_fun68250, 8678, [31, 6518, 8679, 8680,
2]) /* metro module 8678, dependencies: [31, 6518, 8679, 8680, 2] */;
@@ -1,52 +1,55 @@
/* Metro module 8674; source: modules/fastest_list/useFastestListUnexpectedItemSizeCallback.android.tsx; dependencies: [31, 8675, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun68238(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68238, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8859:6, offset: 0x01c44c16, size: 114 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/fastest_list/useFastestListUnexpectedItemSizeCallback.android.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/fastest_list/useFastestListUnexpectedItemSizeCallback.android.tsx');
exports.default = useFastestListUnexpectedItemSizeCallback;
}
function useFastestListUnexpectedItemSizeCallback(a0) { // fn#68239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8859:223, offset: 0x01c44c88, size: 44 bytes, params: 2, frame: 14
const env0_0 = a0;
return env0_2.useCallback(_fun68240, [a0]);
}
function _fun68240({nativeEvent}) { // fn#68240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8859:298, offset: 0x01c44cb4, size: 618 bytes, params: 2, frame: 24
var name;
const current = env0_0.current;
const r4 = nativeEvent.isSectionHeader ? (current.renderSectionHeader == null ? undefined : current.renderSectionHeader(nativeEvent.section)) ?? undefined : nativeEvent.isSectionFooter ? (current.renderSectionFooter == null ? undefined : current.renderSectionFooter(nativeEvent.section)) ?? undefined : current.renderItem(nativeEvent.section,
nativeEvent.item) ?? undefined;
const props = r4?.props;
let type = r4?.type;
if (typeof type !== 'function') {
type = type?.type;
if (typeof type !== 'function') {
name = undefined;
} else {
name = type.name;
name = name.length > 0 ? type.name : undefined;
}
} else {
name = type.name;
if (name.length > 0) {
name = type.name;
} else {
type = type?.type;
function useFastestListUnexpectedItemSizeCallback(a0) { // fn#68239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8859:223, offset: 0x01c44c88, size: 44 bytes, params: 2, frame: 14
const env0_0 = a0;
return ReactModule.useCallback(_fun68240, [a0]);
function _fun68240({nativeEvent}) { // fn#68240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8859:298, offset: 0x01c44cb4, size: 618 bytes, params: 2, frame: 24
var name;
const current = env0_0.current;
const r4 = nativeEvent.isSectionHeader ? (current.renderSectionHeader == null ? undefined : current.renderSectionHeader(nativeEvent.section)) ?? undefined : nativeEvent.isSectionFooter ? (current.renderSectionFooter == null ? undefined : current.renderSectionFooter(nativeEvent.section)) ?? undefined : current.renderItem(nativeEvent.section,
nativeEvent.item) ?? undefined;
const props = r4?.props;
let type = r4?.type;
if (typeof type !== 'function') {
name = undefined;
type = type?.type;
if (typeof type !== 'function') {
name = undefined;
} else {
name = type.name;
name = name.length > 0 ? type.name : undefined;
}
} else {
name = type.name;
name = name.length > 0 ? type.name : undefined;
if (name.length > 0) {
name = type.name;
} else {
type = type?.type;
if (typeof type !== 'function') {
name = undefined;
} else {
name = type.name;
name = name.length > 0 ? type.name : undefined;
}
}
}
const r2 = name == null ? global.Object.keys(props).join(',') : undefined;
const r6 = nativeEvent.isSectionHeader ? 'Section header at section ' + nativeEvent.section + '.' : nativeEvent.isSectionFooter ? 'Section footer at section ' + nativeEvent.section + '.' : 'Item at section ' + nativeEvent.section + ' and index ' + nativeEvent.item + '.';
const value = environment.__proto__;
(require(8675) /* metro dependency 8675: FastestListLoggerNative */).logFastestListError('Expected item size mismatch.',
{detailMessage: 'Expected item size ' + nativeEvent.sizeExpected + ', but got ' + nativeEvent.size + '.',
itemPosition: r6, itemName: name ?? 'Unknown component.', itemProps: r2, listId: env0_0.current.listId});
}
}
const r2 = name == null ? global.Object.keys(props).join(',') : undefined;
const r6 = nativeEvent.isSectionHeader ? 'Section header at section ' + nativeEvent.section + '.' : nativeEvent.isSectionFooter ? 'Section footer at section ' + nativeEvent.section + '.' : 'Item at section ' + nativeEvent.section + ' and index ' + nativeEvent.item + '.';
const value = environment.__proto__;
(require(8675) /* metro dependency 8675: FastestListLoggerNative */).logFastestListError('Expected item size mismatch.',
{detailMessage: 'Expected item size ' + nativeEvent.sizeExpected + ', but got ' + nativeEvent.size + '.',
itemPosition: r6, itemName: name ?? 'Unknown component.', itemProps: r2, listId: env0_0.current.listId});
}
global.__d(_fun68238, 8674, [31, 8675, 2]) /* metro module 8674, dependencies: [31, 8675, 2] */;
@@ -1,15 +1,20 @@
/* Metro module 8675; source: modules/fastest_list/utils/FastestListLogger.native.tsx; dependencies: [3, 1216, 2] */
import Logger from '../../debug/Logger.tsx'; /* Metro dependency 3 */
import SentryUtilsNative from '../../../utils/SentryUtils.native.tsx'; /* Metro dependency 1216 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun68241(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8860:6, offset: 0x01c44f1e, size: 140 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importDefault(3) /* metro dependency 3: Logger */;
let value = Logger;
value = new value('FastestList');
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/fastest_list/utils/FastestListLogger.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/fastest_list/utils/FastestListLogger.native.tsx');
exports.logFastestListError = logFastestListError;
function logFastestListError(a0, a1) { // fn#68242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8860:237, offset: 0x01c44faa, size: 67 bytes, params: 3, frame: 15
env0_2.error(a0, a1);
(SentryUtilsNative).captureMessage(a0, {extra: a1});
}
}
function logFastestListError(a0, a1) { // fn#68242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8860:237, offset: 0x01c44faa, size: 67 bytes, params: 3, frame: 15
env0_2.error(a0, a1);
(importDefault(1216) /* metro dependency 1216: SentryUtilsNative */).captureMessage(a0, {extra: a1});
}
global.__d(_fun68241, 8675, [3, 1216, 2]) /* metro module 8675, dependencies: [3, 1216, 2] */;
@@ -1,29 +1,32 @@
/* Metro module 8680; source: modules/fastest_list/utils/getFastestListSectionsWithErrorChecking.native.tsx; dependencies: [8675, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun68258(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8865:6, offset: 0x01c45d08, size: 96 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/fastest_list/utils/getFastestListSectionsWithErrorChecking.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/fastest_list/utils/getFastestListSectionsWithErrorChecking.native.tsx');
exports.default = getFastestListSectionsWithErrorChecking;
}
function getFastestListSectionsWithErrorChecking(a0) { // fn#68259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8865:213, offset: 0x01c45d68, size: 149 bytes, params: 2, frame: 14
var logFastestListError;
var object2;
let length = a0.itemSizes.length;
let value = length > 1000;
if (value || a0.itemKeys.length > 1000) {
value = require(8675) /* metro dependency 8675: FastestListLoggerNative */;
logFastestListError = value.logFastestListError;
object2 = {};
length = a0.itemSizes.length;
object2.itemSizesLength = length;
length = a0.itemKeys.length;
object2.itemKeysLength = length;
object2.listId = a0.listId;
object2.detail = 'Using non-uniform item sizes or list keys forces a full iteration of the list entries. This will cause performance issues on slower devices, please consider using a uniform configuration.';
Reflect.apply(logFastestListError, value, ['Non-uniform configuration with large data set detected.', object2]);
function getFastestListSectionsWithErrorChecking(a0) { // fn#68259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8865:213, offset: 0x01c45d68, size: 149 bytes, params: 2, frame: 14
var logFastestListError;
var object;
let length = a0.itemSizes.length;
let value = length > 1000;
if (value || a0.itemKeys.length > 1000) {
value = require(8675) /* metro dependency 8675: FastestListLoggerNative */;
logFastestListError = value.logFastestListError;
object = {};
length = a0.itemSizes.length;
object.itemSizesLength = length;
length = a0.itemKeys.length;
object.itemKeysLength = length;
object.listId = a0.listId;
object.detail = 'Using non-uniform item sizes or list keys forces a full iteration of the list entries. This will cause performance issues on slower devices, please consider using a uniform configuration.';
Reflect.apply(logFastestListError, value, ['Non-uniform configuration with large data set detected.', object]);
}
return a0;
}
return a0;
}
global.__d(_fun68258, 8680, [8675, 2]) /* metro module 8680, dependencies: [8675, 2] */;
@@ -1,23 +1,26 @@
/* Metro module 8684; source: modules/fastest_list/utils/getFastestListVisibleItemsWithErrorChecking.native.tsx; dependencies: [8675, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun68275(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8869:6, offset: 0x01c46cbe, size: 96 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/fastest_list/utils/getFastestListVisibleItemsWithErrorChecking.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/fastest_list/utils/getFastestListVisibleItemsWithErrorChecking.native.tsx');
exports.default = getFastestListVisibleItemsWithErrorChecking;
function getFastestListVisibleItemsWithErrorChecking(a0, a1, a2) { // fn#68276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8869:217, offset: 0x01c46d1e, size: 211 bytes, params: 4, frame: 16
if (a1.sectionStart > a2.length || a1.sectionEnd > a2.length) {
(require(8675) /* metro dependency 8675: FastestListLoggerNative */).logFastestListError('Visible items `sectionStart/End` is greater than the number of sections',
{listId: a0, sections: a2, visibleItems: a1});
}
if (a1.itemStart > a2[a1.sectionStart] || a1.itemEnd > a2[a1.sectionEnd]) {
(require(8675) /* metro dependency 8675: FastestListLoggerNative */).logFastestListError('Visible items `itemStart/End` is greater than the number of items in the first section',
{listId: a0, sections: a2, visibleItems: a1});
}
return a1;
}
}
function getFastestListVisibleItemsWithErrorChecking(a0, a1, a2) { // fn#68276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8869:217, offset: 0x01c46d1e, size: 211 bytes, params: 4, frame: 16
if (a1.sectionStart > a2.length || a1.sectionEnd > a2.length) {
(require(8675) /* metro dependency 8675: FastestListLoggerNative */).logFastestListError('Visible items `sectionStart/End` is greater than the number of sections',
{listId: a0, sections: a2, visibleItems: a1});
}
if (a1.itemStart > a2[a1.sectionStart] || a1.itemEnd > a2[a1.sectionEnd]) {
(require(8675) /* metro dependency 8675: FastestListLoggerNative */).logFastestListError('Visible items `itemStart/End` is greater than the number of items in the first section',
{listId: a0, sections: a2, visibleItems: a1});
}
return a1;
}
global.__d(_fun68275, 8684, [8675, 2]) /* metro module 8684, dependencies: [8675, 2] */;