/* Metro module 6500; source: unknown; dependencies: [6365, 31, 33, 6382, 6381] */ 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 UseLayoutStateModule from './module-06381-useLayoutState.js'; /* Metro dependency 6381 */ import * as Module06382Module from './module-06382.js'; /* Metro dependency 6382 */ function _fun51182(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#51182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6678:6, offset: 0x0122b213, size: 174 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = ReactModule; const env0_3 = value.useLayoutEffect; const env0_4 = value.useMemo; const env0_5 = value.useRef; value = importDefault(31) /* metro dependency 31 */; value = value.memo(_fun51183); value.displayName = 'LayoutCommitObserver'; exports.LayoutCommitObserver = value; function _fun51183({children, onCommitLayoutEffect}) { // fn#51183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6678:193, offset: 0x0122b2c1, size: 244 bytes, params: 2, frame: 21 const value2 = (Module06382Module).useRecyclerViewContext(); const value4 = Module06365((UseLayoutStateModule).useLayoutState(0), 2); value4[0]; const property = value4[1]; const Set = global.Set; const value5 = Object.create(Set.prototype, {constructor: {value: Set}}); const set = new Set(); const current = useRef(set instanceof Object ? set : value5).current; useLayoutEffect(function() { if (!(current.size > 0 || onCommitLayoutEffect == null)) { onCommitLayoutEffect(); } }); const value7 = useMemo(function() { return {layout: _fun51186, getRef: _fun51188, getParentRef: _fun51189, getParentScrollViewRef: _fun51190, getScrollViewRef: _fun51191, markChildLayoutAsPending: _fun51192, unmarkChildLayoutAsPending: _fun51193}; }, [value2, current, property]); const RecyclerViewContextProvider = (Module06382Module).RecyclerViewContextProvider; return ( {children} ); function _fun51185() { // fn#51185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6678:403, offset: 0x0122b3e5, size: 76 bytes, params: 1, frame: 3 return {layout: layout_51186, getRef: getRef_51188, getParentRef: getParentRef_51189, getParentScrollViewRef: getParentScrollViewRef_51190, getScrollViewRef: getScrollViewRef_51191, markChildLayoutAsPending: markChildLayoutAsPending_51192, unmarkChildLayoutAsPending: unmarkChildLayoutAsPending_51193}; function layout_51186() { // fn#51186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6678:428, offset: 0x0122b431, size: 23 bytes, params: 1, frame: 11 env1_2(function(a0) { return a0 + 1; }); } function getRef_51188() { // fn#51188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6678:483, offset: 0x0122b448, size: 46 bytes, params: 1, frame: 11 const value = environment.__proto__; const value2 = null; const r1 = value2 == env1_1 ? undefined : env1_1.getRef(); return value2 != r1 ? r1 : value2; } function getParentRef_51189() { // fn#51189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6678:571, offset: 0x0122b476, size: 46 bytes, params: 1, frame: 11 const value = environment.__proto__; const value2 = null; const r1 = value2 == env1_1 ? undefined : env1_1.getParentRef(); return value2 != r1 ? r1 : value2; } function getParentScrollViewRef_51190() { // fn#51190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6678:681, offset: 0x0122b4a4, size: 46 bytes, params: 1, frame: 11 const value = environment.__proto__; const value2 = null; const r1 = value2 == env1_1 ? undefined : env1_1.getParentScrollViewRef(); return value2 != r1 ? r1 : value2; } function getScrollViewRef_51191() { // fn#51191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6678:805, offset: 0x0122b4d2, size: 46 bytes, params: 1, frame: 11 const value = environment.__proto__; const value2 = null; const r1 = value2 == env1_1 ? undefined : env1_1.getScrollViewRef(); return value2 != r1 ? r1 : value2; } function markChildLayoutAsPending_51192(a0) { // fn#51192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6678:925, offset: 0x0122b500, size: 49 bytes, params: 2, frame: 12 if (env1_1 != null) { env1_1.markChildLayoutAsPending(a0); } current.add(a0); } function unmarkChildLayoutAsPending_51193(a0) { // fn#51193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6678:1038, offset: 0x0122b531, size: 80 bytes, params: 2, frame: 12 if (env1_1 != null) { env1_1.unmarkChildLayoutAsPending(a0); } const currentBinding = current; if (currentBinding.has(a0)) { current.delete(a0); env1_4.layout(); } } } } } global.__d(_fun51182, 6500, [6365, 31, 33, 6382, 6381]) /* metro module 6500, dependencies: [6365, 31, 33, 6382, 6381] */;