119 lines
6.3 KiB
React
119 lines
6.3 KiB
React
/* Metro module 6424; source: unknown; dependencies: [6365, 31, 33, 6382, 6418, 6422] */
|
|
import React from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import Module06365 from './module-06365.js'; /* Metro dependency 6365 */
|
|
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from './module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as Module06382Module from './module-06382.js'; /* Metro dependency 6382 */
|
|
import * as CompatModule from './module-06418-Compat.js'; /* Metro dependency 6418 */
|
|
import * as ViewHolderModule from './module-06422-ViewHolder.jsx'; /* Metro dependency 6422 */
|
|
|
|
function _fun50380(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#50380, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6602:6, offset: 0x01218169, size: 159 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.ViewHolderCollection = ViewHolderCollection;
|
|
function ViewHolderCollection({data, renderStack, getLayout, refHolder, onSizeChanged, renderItem, extraData, viewHolderCollectionRef, getChildContainerLayout, onCommitLayoutEffect, CellRendererComponent, ItemSeparatorComponent, onCommitEffect, horizontal, getAdjustmentMargin, currentStickyIndex, hideStickyHeaderRelatedCell}) { // fn#50381, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6602:221, offset: 0x01218208, size: 576 bytes, params: 2, frame: 28
|
|
var Array;
|
|
var from;
|
|
var value;
|
|
const [property, property2] = refHolder(onCommitLayoutEffect.useState(0), 2);
|
|
const childContainerLayout = getChildContainerLayout();
|
|
const value8 = childContainerLayout == null;
|
|
const r13 = horizontal ? value8 ? undefined : childContainerLayout.height : value8 ? undefined : childContainerLayout.width;
|
|
const env0_15 = (Module06382Module).useRecyclerViewContext();
|
|
useLayoutEffect(_fun50382, [r13]);
|
|
useLayoutEffect(_fun50383, [property]);
|
|
useEffect(_fun50384, [property]);
|
|
useImperativeHandle(viewHolderCollectionRef, function() {
|
|
return {commitLayout: _fun50386};
|
|
}, [property2]);
|
|
const r6 = data && data.length > 0;
|
|
object = {width: horizontal ? childContainerLayout?.width : undefined, height: childContainerLayout?.height,
|
|
marginTop: horizontal ? undefined : getAdjustmentMargin(),
|
|
marginLeft: horizontal ? getAdjustmentMargin() : undefined, opacity: property > 0 ? 1 : 0};
|
|
const CompatView = (CompatModule).CompatView;
|
|
const r7 = r6 && object;
|
|
let r4 = childContainerLayout && r6;
|
|
if (r4) {
|
|
Array = global.Array;
|
|
from = Array.from;
|
|
value = renderStack.entries();
|
|
value = Reflect.apply(from, Array, [value, _fun50388]);
|
|
r4 = value;
|
|
}
|
|
return (
|
|
<CompatView style={r7}>
|
|
{r4}
|
|
</CompatView>
|
|
);
|
|
function _fun50382() { // fn#50382, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6602:739, offset: 0x01218448, size: 41 bytes, params: 1, frame: 10
|
|
if (env0_13 > 0) {
|
|
if (env0_15 != null) {
|
|
env0_15.layout();
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun50383() { // fn#50383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6602:787, offset: 0x01218471, size: 37 bytes, params: 1, frame: 10
|
|
if (env0_13 > 0) {
|
|
if (onCommitLayoutEffect != null) {
|
|
onCommitLayoutEffect();
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun50384() { // fn#50384, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6602:828, offset: 0x01218496, size: 37 bytes, params: 1, frame: 10
|
|
if (env0_13 > 0) {
|
|
if (onCommitEffect != null) {
|
|
onCommitEffect();
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun50385() { // fn#50385, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6602:871, offset: 0x012184bb, size: 16 bytes, params: 1, frame: 2
|
|
return {commitLayout: commitLayout};
|
|
function commitLayout() { // fn#50386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6602:902, offset: 0x012184cb, size: 23 bytes, params: 1, frame: 11
|
|
env1_14(function(a0) {
|
|
return a0 + 1;
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
function _fun50388(a0) { // fn#50388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6602:1199, offset: 0x012184e2, size: 252 bytes, params: 2, frame: 21
|
|
const value = environment.__proto__;
|
|
const value2 = undefined;
|
|
const value3 = env1_2(a0, 2);
|
|
const property = value3[0];
|
|
const index = value3[1].index;
|
|
const property2 = data[index];
|
|
const r5 = ItemSeparatorComponent ? data[index + 1] : value2;
|
|
const ViewHolder = (ViewHolderModule).ViewHolder;
|
|
const Object = global.Object;
|
|
return (
|
|
<ViewHolder
|
|
index={index}
|
|
item={property2}
|
|
trailingItem={r5}
|
|
layout={Object.assign({}, getLayout(index))}
|
|
refHolder={refHolder}
|
|
onSizeChanged={onSizeChanged}
|
|
target="Cell"
|
|
renderItem={renderItem}
|
|
extraData={extraData}
|
|
CellRendererComponent={CellRendererComponent}
|
|
ItemSeparatorComponent={ItemSeparatorComponent}
|
|
horizontal={horizontal}
|
|
hidden={hideStickyHeaderRelatedCell && currentStickyIndex === index}
|
|
key={property}
|
|
/>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun50380, 6424, [6365, 31, 33, 6382, 6418,
|
|
6422]) /* metro module 6424, dependencies: [6365, 31, 33, 6382, 6418, 6422] */;
|