71 lines
3.6 KiB
React
71 lines
3.6 KiB
React
/* Metro module 5445; source: unknown; dependencies: [57, 29, 31, 27, 33] */
|
|
import ObjectWithoutProperties from './module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
|
|
import Module00057 from './module-00057.js'; /* Metro dependency 57 */
|
|
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 */
|
|
|
|
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});
|
|
let value = ReactModule;
|
|
const StyleSheet = ReactNativeModule.StyleSheet;
|
|
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 layout2 = layout;
|
|
const style = a0.style;
|
|
let binding = env0_2;
|
|
const value2 = binding(a0, layout2);
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun47960, 5445, [57, 29, 31, 27, 33]) /* metro module 5445, dependencies: [57, 29, 31, 27, 33] */;
|