/* Metro module 4536; source: unknown; dependencies: [29, 31, 27, 33, 4534, 4519, 4537, 4525, 4540, 4514] */ import ObjectWithoutProperties from './module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */ import Module04514 from './module-04514.jsx'; /* Metro dependency 4514 */ import Module04519 from './module-04519.js'; /* Metro dependency 4519 */ import Module04537 from './module-04537.jsx'; /* Metro dependency 4537 */ 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 ScreenStackHeaderModule from './module-04525-ScreenStackHeader.jsx'; /* Metro dependency 4525 */ import * as Module04534Module from './module-04534.jsx'; /* Metro dependency 4534 */ function _fun38689(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4714:6, offset: 0x010c73f5, size: 245 bytes, params: 8, frame: 19 const env0_0 = require; const env0_3 = ['children', 'headerConfig', 'activityState', 'shouldFreeze', 'stackPresentation', 'sheetAllowedDetents', 'contentStyle', 'style', 'screenId', 'onHeaderHeightChange', 'unstable_sheetFooter']; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = ReactModule; const StyleSheet = ReactNativeModule.StyleSheet; value = value.forwardRef(ScreenStackItem); const env0_10 = StyleSheet.create({container: {flex: 1}, absoluteWithNoBottom: {'position': 'absolute', 'top': 0, 'start': 0, 'end': 0}}); exports.default = value; function ScreenStackItem(a0, a1) { // fn#38690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4714:401, offset: 0x010c74ea, size: 830 bytes, params: 3, frame: 35 const children = a0.children; const headerConfig = a0.headerConfig; const activityState = a0.activityState; const shouldFreeze = a0.shouldFreeze; const stackPresentation = a0.stackPresentation; const sheetAllowedDetents = a0.sheetAllowedDetents; const contentStyle = a0.contentStyle; const style = a0.style; const screenId = a0.screenId; const onHeaderHeightChange = a0.onHeaderHeightChange; const unstable_sheetFooter = a0.unstable_sheetFooter; let binding = env0_4; const value2 = undefined; const value3 = binding(a0, env0_3); binding = env0_5; const env0_1 = binding.useRef(null); const useContext = binding.useContext; const RNSScreensRefContext = (Module04534Module).RNSScreensRefContext; const env0_2 = Reflect.apply(useContext, binding, [RNSScreensRefContext]); binding.useImperativeHandle(a1, _fun38691); const r12 = stackPresentation ?? 'push'; const hidden = headerConfig == null ? value2 : headerConfig.hidden; let r2 = hidden != null && hidden; binding = env0_5; var env0_4 = binding.useRef(r2); binding.useEffect(_fun38692, [r2, r12]); let r5 = value2 === (value3 == null ? value2 : value3.scrollEdgeEffects) || global.Object.values(value3.scrollEdgeEffects).some(function(a0) { return a0 !== 'hidden'; }); r2 = value2 !== (headerConfig == null ? value2 : headerConfig.blurEffect) && headerConfig.blurEffect !== 'none'; const defaultImport = Module04519; r5 = r5 && r2 && false; defaultImport(r5, '[RNScreens] Using both `blurEffect` and `scrollEdgeEffects` simultaneously may cause overlapping effects.'); Platform.constants.reactNativeVersion.minor; const r23 = r12 !== 'formSheet' ? env0_10.container : sheetAllowedDetents === 'fitToContents' ? env0_10.absoluteWithNoBottom : env0_10.container; const jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8; const items2 = [ ((Component) => {children})(Module04537), ]; const ScreenStackHeaderConfig = (ScreenStackHeaderModule).ScreenStackHeaderConfig; let Object = global.Object; let assign = Object.assign; items2[1] = ; items2[2] = r12 === 'formSheet' && unstable_sheetFooter && ((FooterComponent) => {unstable_sheetFooter()})((require(4540) /* metro dependency 4540 */).FooterComponent); const fragment = ( <> {items2} ); Object = global.Object; assign = Object.assign; const largeTitle = headerConfig == null ? value2 : headerConfig.largeTitle; return ((Component) => )(Module04514); function _fun38691() { // fn#38691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4714:736, offset: 0x010c45f2, size: 14 bytes, params: 1, frame: 1 return env0_1.current; } function _fun38692() { // fn#38692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4714:856, offset: 0x010c7828, size: 58 bytes, params: 1, frame: 13 const value = environment.__proto__; (Module04519)(false, "Dynamically changing header's visibility in modals will result in remounting the screen and losing all local state."); env0_4.current = env0_3; } function ScreenStackItemRef(a0) { // fn#38694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4714:1771, owner: ScreenStackItem.ref, offset: 0x010c786f, size: 93 bytes, params: 2, frame: 14 var current; env0_1.current = a0; if (env0_2 !== null) { current = env0_2.current; if (a0 === null) { delete current[screenId]; } else { current[screenId] = {current: a0}; } } else { global.console.warn('Looks like RNSScreensRefContext is missing. Make sure the ScreenStack component is wrapped in it'); } } } } global.__d(_fun38689, 4536, [29, 31, 27, 33, 4534, 4519, 4537, 4525, 4540, 4514]) /* metro module 4536, dependencies: [29, 31, 27, 33, 4534, 4519, 4537, 4525, 4540, 4514] */;