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

69 lines
3.1 KiB
React

/* Metro module 5445; source: unknown; dependencies: [57, 29, 31, 27, 33] */
function _fun47960(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5623:6, offset: 0x011d4f0d, size: 237 bytes, params: 8, frame: 19
const env0_0 = ['enabled', 'layout', 'style'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_1 = importDefault(57) /* metro dependency 57 */;
const env0_2 = importDefault(29) /* metro dependency 29 */;
let value = importAll(31) /* metro dependency 31 */;
const value2 = require(27) /* metro dependency 27 */;
const StyleSheet = value2.StyleSheet;
const env0_4 = value2.View;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
value = value.forwardRef(CardSheet);
const env0_6 = StyleSheet.create({page: {minHeight: '100%'}, card: {'flex': 1, 'overflow': 'hidden'}});
exports.default = value;
}
function CardSheet(a0, a1) { // fn#47961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5623:225, offset: 0x011d4ffa, size: 269 bytes, params: 3, frame: 25
const enabled = a0.enabled;
const layout = a0.layout;
const env0_0 = layout;
const style = a0.style;
let binding = env0_2;
const value2 = binding(a0, env0_0);
binding = env0_3;
let useState = binding.useState;
const value3 = Reflect.apply(useState, binding, [false]);
const binding2 = env0_1;
const value4 = binding2(value3, 2);
const property = value4[0];
var env0_1 = value4[1];
useState = binding.useState;
const value5 = binding2(Reflect.apply(useState, binding, ['auto']), 2);
const property2 = value5[0];
var env0_2 = value5[1];
binding.useImperativeHandle(a1, _fun47962);
binding.useEffect(_fun47963, [layout.height, layout.width]);
const Object = global.Object;
return (
<View
{...Object.assign({}, value2, {pointerEvents: property2,
style: [enabled && property ? env0_6.page : env0_6.card, style]})}
/>
);
}
function _fun47962() { // fn#47962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5623:411, offset: 0x011d5107, size: 16 bytes, params: 1, frame: 2
return {setPointerEvents: env0_2};
}
function _fun47963() { // fn#47963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5623:465, offset: 0x011d5117, size: 114 bytes, params: 1, frame: 13
var body;
var clientWidth;
let document = global.document;
if (typeof document !== 'undefined') {
document = global.document;
body = document.body;
if (body) {
document = global.document;
body = document.body;
clientWidth = body.clientWidth;
document = global.document;
body = document.body;
env0_1(clientWidth === layout.width && body.clientHeight === layout.height);
}
}
}