/* Metro module 6424; source: unknown; dependencies: [6365, 31, 33, 6382, 6418, 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}); const env0_2 = importDefault(6365) /* metro dependency 6365 */; const value = require(31) /* metro dependency 31 */; const env0_3 = value.useEffect; const env0_4 = value.useImperativeHandle; const env0_5 = value.useLayoutEffect; const env0_6 = importDefault(31) /* metro dependency 31 */; const env0_7 = (require(33) /* metro dependency 33 */).jsx; 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 object2; 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 = (require(6382) /* metro dependency 6382 */).useRecyclerViewContext(); useLayoutEffect(_fun50382, [r13]); useLayoutEffect(_fun50383, [property]); useEffect(_fun50384, [property]); useImperativeHandle(viewHolderCollectionRef, function() { return {commitLayout: _fun50386}; }, [property2]); const r6 = data && data.length > 0; object2 = {width: horizontal ? childContainerLayout?.width : undefined, height: childContainerLayout?.height, marginTop: horizontal ? undefined : getAdjustmentMargin(), marginLeft: horizontal ? getAdjustmentMargin() : undefined, opacity: property > 0 ? 1 : 0}; const CompatView = (require(6418) /* metro dependency 6418 */).CompatView; const r7 = r6 && object2; 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 ( {r4} ); } 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 _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 = (require(6422) /* metro dependency 6422 */).ViewHolder; const Object = global.Object; return (