Files
discord-decomp/sources/by-id/module-05425.jsx
T
2026-07-27 16:20:00 +03:00

40 lines
3.1 KiB
React

/* Metro module 5425; source: unknown; dependencies: [57, 31, 27, 33, 1588, 5411, 5420, 5408, 5407, 1485] */
function _fun47748(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5603:6, offset: 0x011cb70a, size: 227 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const StyleSheet = value.StyleSheet;
const env0_5 = value.View;
value = require(33) /* metro dependency 33 */;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
const env0_8 = StyleSheet.create({container: {'flex': 1, 'flexDirection': 'column-reverse'}, content: {flex: 1},
absolute: {'position': 'absolute', 'top': 0, 'left': 0, 'right': 0}});
exports.default = Screen_47749;
}
function Screen_47749({focused, modal, header, headerShown, headerTransparent, headerStatusBarHeight, navigation, route, children, style}) { // fn#47749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5603:327, offset: 0x011cb7ed, size: 651 bytes, params: 2, frame: 33
const env0_0 = (require(1588) /* metro dependency 1588 */).useSafeAreaFrame();
const value2 = (require(1588) /* metro dependency 1588 */).useSafeAreaInsets();
let binding = env0_4;
const value3 = binding.useContext(importDefault(5411) /* metro dependency 5411 */);
const value4 = binding.useContext(importDefault(5420) /* metro dependency 5420 */);
const env0_1 = modal !== undefined && modal;
const r6 = headerShown === undefined || headerShown;
const env0_2 = headerStatusBarHeight !== undefined ? headerStatusBarHeight : value3 ? 0 : value2.top;
const [property, env0_3] = env0_3Binding(env0_4.useState(_fun47750), 2);
const defaultImport = importDefault(5407) /* metro dependency 5407 */;
const r4 = focused ? 'auto' : 'no-hide-descendants';
binding = env0_8;
const items2 = [binding.container, style];
const content = binding.content;
const Provider = (importDefault(5411) /* metro dependency 5411 */).Provider;
const r10 = value3 || r6 !== false;
const Provider2 = (importDefault(5420) /* metro dependency 5420 */).Provider;
return ((Component) => <Component accessibilityElementsHidden={!focused} importantForAccessibility={r4} style={items2}><View style={content}><Provider value={r10}><Provider2 value={r6 ? property : value4 ?? 0}>{children}</Provider2></Provider></View>{r6 ? ((Provider) => <Provider value={navigation}>{((Provider) => <Provider value={route}><View onLayout={onLayout_47751} style={headerTransparent ? env0_8.absolute : null}>{header}</View></Provider>)((require(1485) /* metro dependency 1485 */).NavigationRouteContext.Provider)}</Provider>)((require(1485) /* metro dependency 1485 */).NavigationContext.Provider) : null}</Component>)(defaultImport);
}