617 lines
29 KiB
React
617 lines
29 KiB
React
/* Metro module 6364; source: unknown; dependencies: [6365, 6371, 31, 27, 33, 6373, 6381, 6383, 6410, 6415, 6416, 6405, 6408, 6414, 6382, 6417, 6394, 6421, 6418, 6423, 6424] */
|
|
function _fun49904(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:6, offset: 0x0120cb53, size: 284 bytes, params: 8, frame: 20
|
|
const env0_0 = require;
|
|
const env0_2 = ['horizontal', 'renderItem', 'data', 'extraData', 'onLoad', 'CellRendererComponent', 'overrideProps',
|
|
'refreshing', 'onRefresh', 'progressViewOffset', 'ListEmptyComponent', 'ListHeaderComponent',
|
|
'ListHeaderComponentStyle', 'ListFooterComponent', 'ListFooterComponentStyle', 'ItemSeparatorComponent',
|
|
'renderScrollComponent', 'style', 'stickyHeaderIndices', 'maintainVisibleContentPosition',
|
|
'onCommitLayoutEffect', 'onChangeStickyIndex', 'stickyHeaderConfig'];
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importDefault(6365) /* metro dependency 6365 */;
|
|
const env0_4 = importDefault(6371) /* metro dependency 6371 */;
|
|
let value = require(31) /* metro dependency 31 */;
|
|
const env0_5 = value.useCallback;
|
|
const env0_6 = value.useLayoutEffect;
|
|
const env0_7 = value.useMemo;
|
|
const env0_8 = value.useRef;
|
|
const forwardRef = value.forwardRef;
|
|
const env0_9 = value.useState;
|
|
const env0_10 = value.useId;
|
|
value = importDefault(31) /* metro dependency 31 */;
|
|
const value2 = require(27) /* metro dependency 27 */;
|
|
const env0_11 = value2.Animated;
|
|
const env0_12 = value2.I18nManager;
|
|
const value3 = require(33) /* metro dependency 33 */;
|
|
const env0_13 = value3.jsx;
|
|
const env0_14 = value3.jsxs;
|
|
const closure = RecyclerViewComponent;
|
|
closure.displayName = 'FlashList';
|
|
exports.RecyclerView = value.memo(forwardRef(closure));
|
|
}
|
|
|
|
function RecyclerViewComponent(a0, a1) { // fn#49905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:746, offset: 0x0120cc6f, size: 1811 bytes, params: 3, frame: 57
|
|
var startRenderingFromBottom;
|
|
var r5;
|
|
var r6;
|
|
const horizontal = a0.horizontal;
|
|
const renderItem = a0.renderItem;
|
|
const data = a0.data;
|
|
const env0_2 = data;
|
|
const extraData = a0.extraData;
|
|
const env0_3 = extraData;
|
|
const onLoad = a0.onLoad;
|
|
const CellRendererComponent = a0.CellRendererComponent;
|
|
const overrideProps = a0.overrideProps;
|
|
a0.refreshing;
|
|
a0.onRefresh;
|
|
a0.progressViewOffset;
|
|
a0.ListEmptyComponent;
|
|
a0.ListHeaderComponent;
|
|
a0.ListHeaderComponentStyle;
|
|
a0.ListFooterComponent;
|
|
a0.ListFooterComponentStyle;
|
|
const ItemSeparatorComponent = a0.ItemSeparatorComponent;
|
|
a0.renderScrollComponent;
|
|
const style = a0.style;
|
|
const stickyHeaderIndices = a0.stickyHeaderIndices;
|
|
const env0_4 = stickyHeaderIndices;
|
|
const maintainVisibleContentPosition = a0.maintainVisibleContentPosition;
|
|
const env0_6 = a0.onCommitLayoutEffect;
|
|
const onChangeStickyIndex = a0.onChangeStickyIndex;
|
|
const stickyHeaderConfig = a0.stickyHeaderConfig;
|
|
let binding = env0_4;
|
|
let value2 = undefined;
|
|
const value3 = binding(a0, env0_2);
|
|
const value4 = useState(_fun49906);
|
|
const value5 = 1;
|
|
const value6 = env0_3(value4, value5);
|
|
const value7 = 0;
|
|
let property = value6[value7];
|
|
property.startTracking();
|
|
const value8 = null;
|
|
const offset = value8 == stickyHeaderConfig ? value2 : stickyHeaderConfig.offset;
|
|
const r2 = value8 != offset ? offset : value7;
|
|
const useNativeDriver = value8 == stickyHeaderConfig ? value2 : stickyHeaderConfig.useNativeDriver;
|
|
const r1 = value8 == useNativeDriver || useNativeDriver;
|
|
const hideRelatedCell = value8 == stickyHeaderConfig ? value2 : stickyHeaderConfig.hideRelatedCell;
|
|
const r26 = value8 != hideRelatedCell && hideRelatedCell;
|
|
const value11 = useRef(value8);
|
|
const value12 = useRef(value8);
|
|
const env0_14 = useRef(value8);
|
|
const env0_15 = useRef(value2);
|
|
const Set = global.Set;
|
|
const value13 = Object.create(Set.prototype, {constructor: {value: Set}});
|
|
const set = new Set();
|
|
const current = useRef(set instanceof Object ? set : value13).current;
|
|
const Value = Animated.Value;
|
|
const value15 = Object.create(Value.prototype, {constructor: {value: Value}});
|
|
const value16 = new Value(value7);
|
|
const current2 = useRef(value16 instanceof Object ? value16 : value15).current;
|
|
const env0_18 = useRef(value8);
|
|
const value18 = useRef(value8);
|
|
const value19 = (require(6381) /* metro dependency 6381 */).useLayoutState(value7);
|
|
binding = env0_3;
|
|
const value20 = binding(value19, 2);
|
|
value20[value7];
|
|
property = value20[value5];
|
|
const value21 = binding(useState(value7), 2);
|
|
value21[value7];
|
|
const env0_21 = value21[value5];
|
|
const value22 = binding(useState(-1), 2);
|
|
const property2 = value22[value7];
|
|
const env0_23 = value22[value5];
|
|
const value23 = useMemo(function() {
|
|
var Map = global.Map;
|
|
var value = Object.create(Map.prototype, {constructor: {value: Map}});
|
|
var value2 = new Map();
|
|
return value2 instanceof Object ? value2 : value;
|
|
}, []);
|
|
const {recyclerViewManager,
|
|
velocityTracker} = (require(6383) /* metro dependency 6383 */).useRecyclerViewManager(a0);
|
|
const value25 = (require(6410) /* metro dependency 6410 */).useRecyclerViewController(recyclerViewManager, a1,
|
|
value11, value18);
|
|
const env0_27 = value25.applyOffsetCorrection;
|
|
const computeFirstVisibleIndexForOffsetCorrection = value25.computeFirstVisibleIndexForOffsetCorrection;
|
|
const env0_29 = value25.applyInitialScrollIndex;
|
|
const handlerMethods = value25.handlerMethods;
|
|
const value26 = useRef(value8);
|
|
(require(6415) /* metro dependency 6415 */).useOnListLoad(recyclerViewManager, onLoad);
|
|
const moduleValue5 = require(6416) /* metro dependency 6416 */;
|
|
const useBoundDetection = moduleValue5.useBoundDetection;
|
|
const checkBounds = Reflect.apply(useBoundDetection, moduleValue5, [recyclerViewManager, value11]).checkBounds;
|
|
let r24 = I18nManager.isRTL && horizontal;
|
|
useLayoutEffect(_fun49908);
|
|
useLayoutEffect(_fun49909);
|
|
const value27 = useCallback(_fun49912, [checkBounds, computeFirstVisibleIndexForOffsetCorrection, horizontal, r24,
|
|
recyclerViewManager, velocityTracker]);
|
|
const value28 = (require(6382) /* metro dependency 6382 */).useRecyclerViewContext();
|
|
const value29 = useId();
|
|
const value30 = useMemo(function() {
|
|
return {layout: _fun49916, getRef: _fun49918, getParentRef: _fun49919, getParentScrollViewRef: _fun49920,
|
|
getScrollViewRef: _fun49921, markChildLayoutAsPending: _fun49922, unmarkChildLayoutAsPending: _fun49923};
|
|
}, [handlerMethods, value28, current, recyclerViewManager.isDisposed, property]);
|
|
const value31 = useCallback(_fun49924, [value30, recyclerViewManager]);
|
|
const {refreshControl, renderHeader, renderFooter, renderEmpty, CompatScrollView,
|
|
renderStickyHeaderBackdrop} = (require(6417) /* metro dependency 6417 */).useSecondaryProps(a0);
|
|
if (!recyclerViewManager.getIsFirstLayoutComplete() && recyclerViewManager.getDataLength() > value7) {
|
|
if (value8 != value28) {
|
|
value28.markChildLayoutAsPending(value29);
|
|
}
|
|
}
|
|
const value36 = useMemo(_fun49925, [data, stickyHeaderIndices, r2, renderItem, current2, horizontal,
|
|
recyclerViewManager, extraData, property2, onChangeStickyIndex, r26]);
|
|
const value37 = useMemo(_fun49927, [value27, current2, value36, r1]);
|
|
const shouldMaintainVisibleContentPosition2 = recyclerViewManager.shouldMaintainVisibleContentPosition();
|
|
const value38 = useMemo(_fun49928, [maintainVisibleContentPosition, shouldMaintainVisibleContentPosition2]);
|
|
const getDataLength = recyclerViewManager.getDataLength;
|
|
const value39 = Reflect.apply(getDataLength, recyclerViewManager, []) > value7;
|
|
if (value39) {
|
|
startRenderingFromBottom = value8 == maintainVisibleContentPosition ? value2 : maintainVisibleContentPosition.startRenderingFromBottom;
|
|
r5 = value8 != startRenderingFromBottom;
|
|
r6 = startRenderingFromBottom;
|
|
} else {
|
|
r5 = value39;
|
|
r6 = value2;
|
|
}
|
|
r5 = r5 && r6;
|
|
const value41 = useMemo(_fun49929, [horizontal, r2]);
|
|
const value42 = useMemo(_fun49930, [horizontal, shouldMaintainVisibleContentPosition2]);
|
|
const RecyclerViewContextProvider = (require(6382) /* metro dependency 6382 */).RecyclerViewContextProvider;
|
|
const CompatView = (require(6418) /* metro dependency 6418 */).CompatView;
|
|
const compatViewProps = {style: [{flex: horizontal ? value2 : value5, overflow: 'hidden'}, style], ref: value12,
|
|
collapsable: false, onLayout: onLayout_49931};
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const object = {horizontal: horizontal, ref: value11, onScroll: value37, maintainVisibleContentPosition: value38,
|
|
refreshControl: refreshControl};
|
|
const items2 = [value42];
|
|
items2[1] = r24 && value41;
|
|
items2[2] = renderHeader;
|
|
r24 = !r24 && value41;
|
|
items2[3] = r24;
|
|
const ViewHolderCollection = (require(6424) /* metro dependency 6424 */).ViewHolderCollection;
|
|
items2[4] = <ViewHolderCollection viewHolderCollectionRef={value26} data={data} horizontal={horizontal} renderStack={recyclerViewManager.getRenderStack()} getLayout={function(a0) {
|
|
return recyclerViewManager.getLayout(a0);
|
|
}} getAdjustmentMargin={getAdjustmentMargin} refHolder={value23} onSizeChanged={value31} renderItem={renderItem} extraData={extraData} onCommitLayoutEffect={onCommitLayoutEffect} onCommitEffect={onCommitEffect} CellRendererComponent={CellRendererComponent} ItemSeparatorComponent={ItemSeparatorComponent} getChildContainerLayout={getChildContainerLayout} currentStickyIndex={property2} hideStickyHeaderRelatedCell={r26} />;
|
|
items2[5] = renderEmpty;
|
|
items2[6] = renderFooter;
|
|
return (
|
|
<RecyclerViewContextProvider value={value30}>
|
|
<CompatView {...compatViewProps}>
|
|
<CompatScrollView
|
|
{...Reflect.apply(assign, Object, [{}, value3, object, overrideProps, {children: items2}])}
|
|
/>
|
|
{stickyHeaderIndices && stickyHeaderIndices.length > value7 ? renderStickyHeaderBackdrop : value8}
|
|
{value36}
|
|
</CompatView>
|
|
</RecyclerViewContextProvider>
|
|
);
|
|
}
|
|
|
|
function _fun49906() { // fn#49906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:1277, offset: 0x0120d382, size: 53 bytes, params: 1, frame: 11
|
|
let value = environment.__proto__;
|
|
const RenderTimeTracker = (require(6373) /* metro dependency 6373 */).RenderTimeTracker;
|
|
value = Object.create(RenderTimeTracker.prototype, {constructor: {value: RenderTimeTracker}});
|
|
const renderTimeTracker = new RenderTimeTracker();
|
|
return renderTimeTracker instanceof Object ? renderTimeTracker : value;
|
|
}
|
|
|
|
function _fun49908() { // fn#49908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:2148, offset: 0x0120d3d5, size: 285 bytes, params: 1, frame: 18
|
|
var r5;
|
|
var value2;
|
|
var moduleValue;
|
|
var measureParentSize;
|
|
var value3;
|
|
var moduleValue2;
|
|
var measureFirstChildLayout;
|
|
var value4;
|
|
let current = env0_13.current;
|
|
if (current) {
|
|
current = env0_14.current;
|
|
if (current) {
|
|
value2 = environment.__proto__;
|
|
moduleValue = require(6405) /* metro dependency 6405 */;
|
|
measureParentSize = moduleValue.measureParentSize;
|
|
current = env0_13.current;
|
|
value3 = Reflect.apply(measureParentSize, moduleValue, [current]);
|
|
moduleValue2 = require(6405) /* metro dependency 6405 */;
|
|
measureFirstChildLayout = moduleValue2.measureFirstChildLayout;
|
|
current = env0_14.current;
|
|
value4 = Reflect.apply(measureFirstChildLayout, moduleValue2, [current, env0_13.current]);
|
|
env0_15.current = value3;
|
|
r5 = horizontal ? value4.x - value3.x : value4.y - value3.y;
|
|
recyclerViewManager.updateLayoutParams({width: horizontal ? value3.width : value4.width,
|
|
height: horizontal ? value4.height : value3.height},
|
|
env0_33 && recyclerViewManager.hasLayout() ? r5 - recyclerViewManager.getChildContainerDimensions().width : r5);
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun49909() { // fn#49909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:2465, offset: 0x0120d4f2, size: 311 bytes, params: 1, frame: 21
|
|
var environment;
|
|
var r1;
|
|
var Array;
|
|
var from;
|
|
var binding;
|
|
var value3;
|
|
var hasExceededMaxRendersWithoutCommit2;
|
|
var console;
|
|
var warn;
|
|
var value4;
|
|
var recyclerViewManagerBinding;
|
|
var current2;
|
|
const size = current.size;
|
|
const value2 = 0;
|
|
if (!(size > value2)) {
|
|
Array = global.Array;
|
|
from = Array.from;
|
|
binding = env0_24;
|
|
value3 = Reflect.apply(from, Array, [binding, _fun49910]);
|
|
binding = env0_8;
|
|
hasExceededMaxRendersWithoutCommit2 = binding.hasExceededMaxRendersWithoutCommit();
|
|
if (hasExceededMaxRendersWithoutCommit2) {
|
|
console = global.console;
|
|
warn = console.warn;
|
|
value4 = environment.__proto__;
|
|
Reflect.apply(warn, console,
|
|
[(require(6408) /* metro dependency 6408 */).WarningMessages.exceededMaxRendersWithoutCommit]);
|
|
}
|
|
recyclerViewManagerBinding = recyclerViewManager;
|
|
if (recyclerViewManagerBinding.modifyChildrenLayout(value3, data?.length ?? value2)) {
|
|
if (hasExceededMaxRendersWithoutCommit2) {
|
|
current2 = env0_31.current;
|
|
if (current2 != null) {
|
|
current2.commitLayout();
|
|
}
|
|
applyOffsetCorrection();
|
|
} else {
|
|
env0_21(function(a0) {
|
|
return a0 + 1;
|
|
});
|
|
}
|
|
} else {
|
|
current2 = env0_31.current;
|
|
if (current2 != null) {
|
|
current2.commitLayout();
|
|
}
|
|
applyOffsetCorrection();
|
|
}
|
|
r1 = horizontal && recyclerViewManager.hasLayout();
|
|
r1 = r1 && recyclerViewManager.getWindowSize().height > value2;
|
|
if (r1) {
|
|
if (env0_35 != null) {
|
|
env0_35.unmarkChildLayoutAsPending(env0_36);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun49912(a0) { // fn#49912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:3021, offset: 0x0120d68f, size: 319 bytes, params: 2, frame: 21
|
|
var environment;
|
|
var r7;
|
|
var r8;
|
|
var horizontalBinding;
|
|
var nativeEvent;
|
|
var contentOffset;
|
|
var value2;
|
|
var moduleValue;
|
|
var adjustOffsetForRTL;
|
|
var width;
|
|
var velocityTrackerBinding;
|
|
var current;
|
|
if (!recyclerViewManager.ignoreScrollEvents) {
|
|
horizontalBinding = horizontal;
|
|
nativeEvent = a0.nativeEvent;
|
|
contentOffset = nativeEvent.contentOffset;
|
|
r7 = horizontalBinding ? contentOffset.x : contentOffset.y;
|
|
if (env0_33) {
|
|
value2 = environment.__proto__;
|
|
moduleValue = require(6414) /* metro dependency 6414 */;
|
|
adjustOffsetForRTL = moduleValue.adjustOffsetForRTL;
|
|
nativeEvent = a0.nativeEvent;
|
|
width = nativeEvent.contentSize.width;
|
|
nativeEvent = a0.nativeEvent;
|
|
r8 = Reflect.apply(adjustOffsetForRTL, moduleValue, [r7, width, nativeEvent.layoutMeasurement.width]);
|
|
} else {
|
|
r8 = r7;
|
|
}
|
|
velocityTrackerBinding = velocityTracker;
|
|
velocityTrackerBinding.computeVelocity(r8, recyclerViewManager.getAbsoluteLastScrollOffset(),
|
|
global.Boolean(horizontal), _fun49913);
|
|
current = env0_18.current;
|
|
if (current != null) {
|
|
current.reportScrollEvent(a0.nativeEvent);
|
|
}
|
|
checkBounds();
|
|
recyclerViewManager.recordInteraction();
|
|
recyclerViewManager.computeItemViewability();
|
|
if (recyclerViewManager.props.onScroll != null) {
|
|
recyclerViewManager.props.onScroll(a0);
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun49915() { // fn#49915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:3720, offset: 0x0120d842, size: 76 bytes, params: 1, frame: 3
|
|
return {layout: layout, getRef: function() {
|
|
return recyclerViewManager.isDisposed ? null : handlerMethods;
|
|
}, getParentRef: getParentRef, getParentScrollViewRef: getParentScrollViewRef, getScrollViewRef: getScrollViewRef,
|
|
markChildLayoutAsPending: function(a0) {
|
|
current.add(a0);
|
|
}, unmarkChildLayoutAsPending: unmarkChildLayoutAsPending};
|
|
}
|
|
|
|
function _fun49924(a0, a1) { // fn#49924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:4346, offset: 0x0120d976, size: 285 bytes, params: 3, frame: 23
|
|
var moduleValue2;
|
|
const layout = recyclerViewManager.getLayout(a0);
|
|
let Math = global.Math;
|
|
let max = Math.max;
|
|
const Math2 = global.Math;
|
|
const min = Math2.min;
|
|
const width = layout.width;
|
|
const maxWidth = layout.maxWidth;
|
|
const value3 = Infinity;
|
|
let r2 = maxWidth ?? value3;
|
|
const value4 = Reflect.apply(min, Math2, [width, r2]);
|
|
const minWidth = layout.minWidth;
|
|
const value5 = 0;
|
|
const value6 = Reflect.apply(max, Math, [value4, minWidth ?? value5]);
|
|
Math = global.Math;
|
|
max = Math.max;
|
|
const Math3 = global.Math;
|
|
const value8 = Reflect.apply(max, Math, [Math3.min(layout.height, layout.maxHeight ?? value3),
|
|
layout.minHeight ?? value5]);
|
|
const moduleValue = require(6405) /* metro dependency 6405 */;
|
|
const value10 = moduleValue.areDimensionsNotEqual(value6, a1.width);
|
|
if (value10) {
|
|
r2 = value10;
|
|
} else {
|
|
moduleValue2 = moduleValue;
|
|
r2 = moduleValue2.areDimensionsNotEqual(value8, a1.height);
|
|
}
|
|
if (r2) {
|
|
env0_37.layout();
|
|
}
|
|
}
|
|
|
|
function _fun49925() { // fn#49925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:4943, offset: 0x0120da93, size: 251 bytes, params: 1, frame: 16
|
|
var environment;
|
|
var horizontalBinding;
|
|
var value2;
|
|
var Error;
|
|
var stickyHeadersNotSupportedForHorizontal;
|
|
if (data) {
|
|
if (data.length > 0) {
|
|
if (stickyHeaderIndices) {
|
|
if (stickyHeaderIndices.length > 0) {
|
|
horizontalBinding = horizontal;
|
|
value2 = environment.__proto__;
|
|
if (horizontalBinding) {
|
|
Error = global.Error;
|
|
stickyHeadersNotSupportedForHorizontal = (require(6394) /* metro dependency 6394 */).ErrorMessages.stickyHeadersNotSupportedForHorizontal;
|
|
throw new Error();
|
|
}
|
|
const StickyHeaders = (require(6421) /* metro dependency 6421 */).StickyHeaders;
|
|
return (
|
|
<StickyHeaders
|
|
stickyHeaderIndices={stickyHeaderIndices}
|
|
stickyHeaderOffset={env0_9}
|
|
data={data}
|
|
renderItem={renderItem}
|
|
scrollY={current}
|
|
stickyHeaderRef={env0_18}
|
|
recyclerViewManager={recyclerViewManager}
|
|
extraData={extraData}
|
|
onChangeStickyIndex={onChangeStickyIndex}
|
|
/>
|
|
);
|
|
}
|
|
return null;
|
|
}
|
|
return null;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function _fun49927() { // fn#49927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:5358, offset: 0x0120dbc4, size: 89 bytes, params: 1, frame: 17
|
|
return env0_38 ? Animated.event([{nativeEvent: {contentOffset: {y: current}}}], {useNativeDriver: env0_10,
|
|
listener: env0_34}) : env0_34;
|
|
}
|
|
|
|
function _fun49928() { // fn#49928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:5527, offset: 0x0120dc1d, size: 51 bytes, params: 1, frame: 15
|
|
var Object;
|
|
if (env0_39) {
|
|
Object = global.Object;
|
|
return Object.assign({}, maintainVisibleContentPosition, {minIndexForVisible: 0});
|
|
}
|
|
}
|
|
|
|
function _fun49929() { // fn#49929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:5690, offset: 0x0120dc50, size: 109 bytes, params: 1, frame: 18
|
|
let value = environment.__proto__;
|
|
value = undefined;
|
|
const CompatView = (require(6418) /* metro dependency 6418 */).CompatView;
|
|
horizontalBinding = horizontal;
|
|
const value3 = 0;
|
|
return (
|
|
<CompatView
|
|
style={{marginTop: horizontal ? value : env0_9, height: horizontalBinding ? value : value3,
|
|
width: horizontal ? value3 : value}}
|
|
ref={env0_14}
|
|
/>
|
|
);
|
|
}
|
|
|
|
function _fun49930() { // fn#49930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:5818, offset: 0x0120dcbd, size: 88 bytes, params: 1, frame: 17
|
|
if (env0_39) {
|
|
const ScrollAnchor = (require(6423) /* metro dependency 6423 */).ScrollAnchor;
|
|
return <ScrollAnchor horizontal={global.Boolean(horizontal)} scrollAnchorRef={env0_19} />;
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
function RecyclerViewComponentOnLayout(a0) { // fn#49931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:6085, owner: RecyclerViewComponent.onLayout, offset: 0x0120dd15, size: 200 bytes, params: 2, frame: 22
|
|
var height2;
|
|
let value = environment.__proto__;
|
|
const value2 = undefined;
|
|
const moduleValue = require(6405) /* metro dependency 6405 */;
|
|
let areDimensionsNotEqual = moduleValue.areDimensionsNotEqual;
|
|
const width2 = a0.nativeEvent.layout.width;
|
|
let current = env0_15.current;
|
|
const width = current == null ? value2 : current.width;
|
|
const value4 = 0;
|
|
let r2 = width ?? value4;
|
|
const value5 = Reflect.apply(areDimensionsNotEqual, moduleValue, [width2, r2]);
|
|
if (value5) {
|
|
r2 = value5;
|
|
} else {
|
|
value = moduleValue;
|
|
areDimensionsNotEqual = value.areDimensionsNotEqual;
|
|
height2 = a0.nativeEvent.layout.height;
|
|
current = env0_15.current;
|
|
value = Reflect.apply(areDimensionsNotEqual, value, [height2,
|
|
(current == null ? value2 : current.height) ?? value4]);
|
|
r2 = value;
|
|
}
|
|
if (r2) {
|
|
env0_37.layout();
|
|
}
|
|
return value2;
|
|
}
|
|
|
|
function getAdjustmentMargin() { // fn#49933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:6694, owner: RecyclerViewComponent.getAdjustmentMargin, offset: 0x0120ddf4, size: 138 bytes, params: 1, frame: 14
|
|
var r4;
|
|
var r1;
|
|
var recyclerViewManagerBinding;
|
|
var horizontalBinding;
|
|
var windowSize;
|
|
var childContainerDimensions;
|
|
var Math;
|
|
if (env0_40) {
|
|
recyclerViewManagerBinding = recyclerViewManager;
|
|
if (recyclerViewManagerBinding.hasLayout()) {
|
|
horizontalBinding = horizontal;
|
|
windowSize = recyclerViewManager.getWindowSize();
|
|
r4 = horizontalBinding ? windowSize.width : windowSize.height;
|
|
horizontalBinding = horizontal;
|
|
childContainerDimensions = recyclerViewManager.getChildContainerDimensions();
|
|
r1 = horizontalBinding ? childContainerDimensions.width : childContainerDimensions.height;
|
|
Math = global.Math;
|
|
return Math.max(0, r4 - r1 - recyclerViewManager.firstItemOffset);
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
function onCommitLayoutEffect() { // fn#49934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:7019, owner: RecyclerViewComponent.onCommitLayoutEffect, offset: 0x0120de7e, size: 60 bytes, params: 1, frame: 14
|
|
applyInitialScrollIndex();
|
|
if (env0_35 != null) {
|
|
env0_35.unmarkChildLayoutAsPending(env0_36);
|
|
}
|
|
if (onCommitLayoutEffect != null) {
|
|
onCommitLayoutEffect();
|
|
}
|
|
}
|
|
|
|
function onCommitEffect() { // fn#49935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:7129, owner: RecyclerViewComponent.onCommitEffect, offset: 0x0120deba, size: 94 bytes, params: 1, frame: 13
|
|
const binding = env0_8;
|
|
binding.markRenderComplete();
|
|
const recyclerViewManagerBinding = recyclerViewManager;
|
|
const updateAverageRenderTime = recyclerViewManagerBinding.updateAverageRenderTime;
|
|
const getAverageRenderTime = binding.getAverageRenderTime;
|
|
Reflect.apply(updateAverageRenderTime, recyclerViewManagerBinding, [Reflect.apply(getAverageRenderTime, binding,
|
|
[])]);
|
|
applyInitialScrollIndex();
|
|
checkBounds();
|
|
recyclerViewManager.computeItemViewability();
|
|
recyclerViewManager.animationOptimizationsEnabled = false;
|
|
}
|
|
|
|
function getChildContainerLayout() { // fn#49936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:7379, owner: RecyclerViewComponent.getChildContainerLayout, offset: 0x0120df18, size: 38 bytes, params: 1, frame: 10
|
|
return recyclerViewManager.hasLayout() ? recyclerViewManager.getChildContainerDimensions() : undefined;
|
|
}
|
|
|
|
function _fun49910(a0) { // fn#49910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:2521, offset: 0x0120d629, size: 102 bytes, params: 2, frame: 16
|
|
let value = environment.__proto__.__proto__;
|
|
const value2 = env2_3(a0, 2);
|
|
const property = value2[0];
|
|
const property2 = value2[1];
|
|
const object2 = {index: property};
|
|
value = require(6405) /* metro dependency 6405 */;
|
|
const measureItemLayout = value.measureItemLayout;
|
|
const current = property2.current;
|
|
const recyclerViewManagerBinding = recyclerViewManager;
|
|
object2.dimensions = Reflect.apply(measureItemLayout, value, [current,
|
|
recyclerViewManagerBinding.tryGetLayout(property)]);
|
|
return object2;
|
|
}
|
|
|
|
function _fun49913(a0, a1) { // fn#49913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:3309, offset: 0x0120d7ce, size: 116 bytes, params: 3, frame: 14
|
|
let recyclerViewManagerBinding = recyclerViewManager;
|
|
if (!recyclerViewManagerBinding.ignoreScrollEvents) {
|
|
if (a1) {
|
|
computeFirstVisibleIndexForOffsetCorrection();
|
|
if (recyclerViewManager.isOffsetProjectionEnabled) {
|
|
recyclerViewManager.resetVelocityCompute();
|
|
recyclerViewManagerBinding = recyclerViewManager;
|
|
if (recyclerViewManagerBinding.updateScrollOffset(env0_0, a0)) {
|
|
env1_21(function(a0) {
|
|
return a0 + 1;
|
|
});
|
|
}
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
recyclerViewManagerBinding = recyclerViewManager;
|
|
if (recyclerViewManagerBinding.updateScrollOffset(env0_0, a0)) {
|
|
env1_21(function(a0) {
|
|
return a0 + 1;
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
function layout() { // fn#49916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:3745, offset: 0x0120d88e, size: 23 bytes, params: 1, frame: 11
|
|
env1_20(function(a0) {
|
|
return a0 + 1;
|
|
});
|
|
}
|
|
|
|
function getParentRef() { // fn#49919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:3862, offset: 0x0120d8bd, size: 46 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__;
|
|
const value2 = null;
|
|
const r1 = value2 == env1_35 ? undefined : env1_35.getRef();
|
|
return value2 != r1 ? r1 : value2;
|
|
}
|
|
|
|
function getParentScrollViewRef() { // fn#49920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:3968, offset: 0x0120d8eb, size: 46 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__;
|
|
const value2 = null;
|
|
const r1 = value2 == env1_35 ? undefined : env1_35.getScrollViewRef();
|
|
return value2 != r1 ? r1 : value2;
|
|
}
|
|
|
|
function getScrollViewRef() { // fn#49921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:4088, offset: 0x0120d919, size: 14 bytes, params: 1, frame: 1
|
|
return env1_12.current;
|
|
}
|
|
|
|
function unmarkChildLayoutAsPending(a0) { // fn#49923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:4233, offset: 0x0120d93f, size: 55 bytes, params: 2, frame: 12
|
|
const currentBinding = current;
|
|
if (currentBinding.has(a0)) {
|
|
current.delete(a0);
|
|
env1_37.layout();
|
|
}
|
|
}
|
|
|
|
function onChangeStickyIndex(a0) { // fn#49926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6542:5250, offset: 0x0120db8e, size: 54 bytes, params: 2, frame: 13
|
|
if (env1_11) {
|
|
env1_23(a0);
|
|
}
|
|
if (onChangeStickyIndex != null) {
|
|
onChangeStickyIndex(a0, env1_22);
|
|
}
|
|
}
|
|
|