/* Metro module 1824; source: unknown; dependencies: [29, 31, 27, 33, 1610, 1600, 1825] */ import ObjectWithoutProperties from './module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */ import React from './module-00031-React.js'; /* Metro dependency 31 */ import Module01610 from './module-01610.js'; /* Metro dependency 1610 */ import Module01825 from './module-01825.js'; /* Metro dependency 1825 */ import * as ReactNativeModule from './module-00027-ReactNative.js'; /* Metro dependency 27 */ import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */ import * as JsxRuntimeModule from './module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as Module01600Module from './module-01600.js'; /* Metro dependency 1600 */ import * as moduleValue2 from './module-01610.js'; /* Metro dependency 1610 */ function _fun19897(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1951:6, offset: 0x00eb78cd, size: 282 bytes, params: 8, frame: 19 const env0_0 = require; const env0_3 = ['ScrollViewComponent', 'bottomPadding', 'scrollIndicatorPadding', 'contentInset', 'scrollIndicatorInsets', 'inverted', 'contentOffsetY', 'applyWorkaroundForContentInsetHitTestBug', 'onContentInsetChange', 'children']; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); React; const forwardRef = (ReactModule).forwardRef; (ReactNativeModule).Platform; const createAnimatedComponent = Module01610.createAnimatedComponent; const ClippingScrollView = (Module01600Module).ClippingScrollView; const env0_6 = Reflect.apply(createAnimatedComponent, Module01610, [ClippingScrollView]); object = {code: 'function pnpm_indexTsx1(){const{inverted,bottomPadding,contentInset}=this.__closure;var _contentInset,_contentInset2,_contentInset3,_contentInset4;const dynamicTop=inverted?bottomPadding.value:0;const dynamicBottom=!inverted?bottomPadding.value:0;return{dynamic:{top:dynamicTop,bottom:dynamicBottom},effective:{top:dynamicTop+(((_contentInset=contentInset)===null||_contentInset===void 0?void 0:_contentInset.top)||0),bottom:dynamicBottom+(((_contentInset2=contentInset)===null||_contentInset2===void 0?void 0:_contentInset2.bottom)||0),left:((_contentInset3=contentInset)===null||_contentInset3===void 0?void 0:_contentInset3.left)||0,right:((_contentInset4=contentInset)===null||_contentInset4===void 0?void 0:_contentInset4.right)||0}};}'}; object = {code: 'function pnpm_indexTsx2(){const{insets}=this.__closure;return insets.value.effective;}'}; object = {code: 'function pnpm_indexTsx3(current,previous){const{onContentInsetChange,runOnJS}=this.__closure;if(!onContentInsetChange){return;}if(previous&¤t.top===previous.top&¤t.bottom===previous.bottom&¤t.left===previous.left&¤t.right===previous.right){return;}runOnJS(onContentInsetChange)(current);}'}; object = {code: 'function pnpm_indexTsx4(){const{insets,scrollIndicatorPadding,bottomPadding,inverted,scrollIndicatorInsets,contentOffsetY,prevContentOffsetY}=this.__closure;var _scrollIndicatorPaddi,_scrollIndicatorInset,_scrollIndicatorInset2,_scrollIndicatorInset3,_scrollIndicatorInset4;const{dynamic:dynamic,effective:effective}=insets.value;const indicatorPadding=(_scrollIndicatorPaddi=scrollIndicatorPadding)!==null&&_scrollIndicatorPaddi!==void 0?_scrollIndicatorPaddi:bottomPadding;const indicatorTop=(inverted?indicatorPadding.value:0)+(((_scrollIndicatorInset=scrollIndicatorInsets)===null||_scrollIndicatorInset===void 0?void 0:_scrollIndicatorInset.top)||0);const indicatorBottom=(!inverted?indicatorPadding.value:0)+(((_scrollIndicatorInset2=scrollIndicatorInsets)===null||_scrollIndicatorInset2===void 0?void 0:_scrollIndicatorInset2.bottom)||0);const result={contentInset:effective,scrollIndicatorInsets:{bottom:indicatorBottom,top:indicatorTop,right:(_scrollIndicatorInset3=scrollIndicatorInsets)===null||_scrollIndicatorInset3===void 0?void 0:_scrollIndicatorInset3.right,left:(_scrollIndicatorInset4=scrollIndicatorInsets)===null||_scrollIndicatorInset4===void 0?void 0:_scrollIndicatorInset4.left},contentInsetBottom:dynamic.bottom,contentInsetTop:dynamic.top};if(contentOffsetY){const curr=contentOffsetY.value;if(curr!==prevContentOffsetY.value){prevContentOffsetY.value=curr;result.contentOffset={x:0,y:curr};}}return result;}'}; exports.default = forwardRef(_fun19898); function _fun19898(a0, a1) { // fn#19898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1951:3071, offset: 0x00eb79e7, size: 739 bytes, params: 3, frame: 35 const ScrollViewComponent = a0.ScrollViewComponent; const bottomPadding = a0.bottomPadding; const scrollIndicatorPadding = a0.scrollIndicatorPadding; const contentInset = a0.contentInset; const scrollIndicatorInsets = a0.scrollIndicatorInsets; const scrollIndicatorInsets2 = scrollIndicatorInsets; const inverted = a0.inverted; const inverted2 = inverted; const contentOffsetY = a0.contentOffsetY; const applyWorkaroundForContentInsetHitTestBug = a0.applyWorkaroundForContentInsetHitTestBug; const onContentInsetChange = a0.onContentInsetChange; const onContentInsetChange2 = onContentInsetChange; const children = a0.children; let binding = inverted2; const value2 = undefined; const value3 = binding(a0, scrollIndicatorInsets2); const value4 = (moduleValue2).useSharedValue(null); const env0_7 = value4; const useDerivedValue = moduleValue2.useDerivedValue; let closure = pnpm_indexTsx1_19899; closure.__closure = {inverted: inverted, bottomPadding: bottomPadding, contentInset: contentInset}; closure.__workletHash = 788035152099; closure.__initData = env0_7; const value5 = Reflect.apply(useDerivedValue, moduleValue2, [closure, [inverted, contentInset == null ? value2 : contentInset.top, contentInset == null ? value2 : contentInset.bottom, contentInset == null ? value2 : contentInset.left, contentInset == null ? value2 : contentInset.right]]); const env0_8 = value5; const useAnimatedReaction = moduleValue2.useAnimatedReaction; closure = pnpm_indexTsx2_19900; closure.__closure = {insets: value5}; closure.__workletHash = 3359315898790; closure.__initData = env0_8; const pnpm_indexTsx3_199012 = pnpm_indexTsx3_19901; object = {onContentInsetChange: onContentInsetChange}; object.runOnJS = moduleValue2.runOnJS; pnpm_indexTsx3_199012.__closure = object; pnpm_indexTsx3_199012.__workletHash = 12461544130657; pnpm_indexTsx3_199012.__initData = env0_9; Reflect.apply(useAnimatedReaction, moduleValue2, [closure, pnpm_indexTsx3_199012, [onContentInsetChange]]); const useAnimatedProps = moduleValue2.useAnimatedProps; closure = pnpm_indexTsx4_19902; closure.__closure = {insets: value5, scrollIndicatorPadding: scrollIndicatorPadding, bottomPadding: bottomPadding, inverted: inverted, scrollIndicatorInsets: scrollIndicatorInsets, contentOffsetY: contentOffsetY, prevContentOffsetY: value4}; closure.__workletHash = 909305568735; closure.__initData = env0_10; const value6 = Reflect.apply(useAnimatedProps, moduleValue2, [closure, [scrollIndicatorInsets == null ? value2 : scrollIndicatorInsets.bottom, scrollIndicatorInsets == null ? value2 : scrollIndicatorInsets.top, scrollIndicatorInsets == null ? value2 : scrollIndicatorInsets.right, scrollIndicatorInsets == null ? value2 : scrollIndicatorInsets.left, inverted, contentOffsetY]]); binding = onContentInsetChange2; const container = (Module01825).container; const Object = global.Object; return ((Component) => )(binding); function pnpm_indexTsx1_19899() { // fn#19899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1951:3392, offset: 0x00eb7cca, size: 199 bytes, params: 1, frame: 10 const invertedBinding = inverted; const value2 = 0; const r8 = invertedBinding ? bottomPadding.value : value2; const r7 = inverted ? value2 : bottomPadding.value; const contentInsetBinding = contentInset; const value5 = undefined; let top = contentInsetBinding == null ? value5 : contentInset.top; top = !top ? value2 : top; let bottom = contentInset == null ? value5 : contentInset.bottom; bottom = !bottom ? value2 : bottom; let left = contentInset == null ? value5 : contentInset.left; left = !left ? value2 : left; let right = contentInset == null ? value5 : contentInset.right; right = !right ? value2 : right; return {dynamic: {top: r8, bottom: r7}, effective: {top: r8 + top, bottom: r7 + bottom, left: left, right: right}}; } function pnpm_indexTsx2_19900() { // fn#19900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1951:3865, offset: 0x00eb7d91, size: 20 bytes, params: 1, frame: 1 return env0_8.value.effective; } function pnpm_indexTsx3_19901(a0, a1) { // fn#19901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1951:3991, offset: 0x00eb7da5, size: 138 bytes, params: 3, frame: 14 var r1; let value = a1; if (onContentInsetChange) { r1 = value && a0.top === value.top; r1 = r1 && a0.bottom === value.bottom; r1 = r1 && a0.left === value.left; if (r1) { value = a0.right === value.right; r1 = value; } if (!r1) { value = environment.__proto__; value = require(1610) /* metro dependency 1610 */; value.runOnJS(onContentInsetChange)(a0); } } } function pnpm_indexTsx4_19902() { // fn#19902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1951:4273, offset: 0x00eb7e2f, size: 287 bytes, params: 1, frame: 11 var value8; const {dynamic, effective} = env0_8.value; const r8 = scrollIndicatorPadding ?? bottomPadding; const invertedBinding = inverted; const value3 = 0; const r6 = invertedBinding ? r8.value : value3; const scrollIndicatorInsetsBinding = scrollIndicatorInsets; const value5 = undefined; let top = scrollIndicatorInsetsBinding == null ? value5 : scrollIndicatorInsets.top; top = !top ? value3 : top; const value6 = r6 + top; const object = {contentInset: effective}; const r9 = inverted ? value3 : r8.value; let bottom = scrollIndicatorInsets == null ? value5 : scrollIndicatorInsets.bottom; bottom = !bottom ? value3 : bottom; object.scrollIndicatorInsets = {bottom: r9 + bottom, top: value6, right: scrollIndicatorInsets == null ? value5 : scrollIndicatorInsets.right, left: scrollIndicatorInsets == null ? value5 : scrollIndicatorInsets.left}; object.contentInsetBottom = dynamic.bottom; object.contentInsetTop = dynamic.top; if (contentOffsetY) { value8 = contentOffsetY.value; if (value8 !== env0_7.value) { env0_7.value = value8; object.contentOffset = {x: value3, y: value8}; } } return object; } } } global.__d(_fun19897, 1824, [29, 31, 27, 33, 1610, 1600, 1825]) /* metro module 1824, dependencies: [29, 31, 27, 33, 1610, 1600, 1825] */;