68 lines
4.2 KiB
TypeScript
68 lines
4.2 KiB
TypeScript
/* Metro module 1478; source: modules/screen/useWindowDimensions.native.tsx; dependencies: [31, 1479, 1481, 2] */
|
|
import DimensionsStoreAndroid from './native/DimensionsStore.android.tsx'; /* Metro dependency 1479 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
|
|
function _fun16936(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#16936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1605:6, offset: 0x00e5f6d7, size: 155 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {ignoreKeyboard: false};
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/screen/useWindowDimensions.native.tsx');
|
|
exports.default = useWindowDimensions_16937;
|
|
exports.getWindowDimensions = getWindowDimensions;
|
|
function useWindowDimensions_16937() { // fn#16937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1605:227, offset: 0x00e5f772, size: 133 bytes, params: 1, frame: 17
|
|
const value = a0;
|
|
const r0 = value !== undefined ? value : env0_4;
|
|
let ignoreKeyboard = r0.ignoreKeyboard;
|
|
ignoreKeyboard = !(ignoreKeyboard === undefined) && ignoreKeyboard;
|
|
const r6 = r0.appEntryKey ?? (require(1481) /* metro dependency 1481: AppEntryKeyContext */).useAppEntryKey();
|
|
const useMemo = ReactModule.useMemo;
|
|
return DimensionsStoreAndroid(Reflect.apply(useMemo, ReactModule, [_fun16938, [ignoreKeyboard, r6]]));
|
|
function _fun16938() { // fn#16938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1605:353, offset: 0x00e5f7f7, size: 48 bytes, params: 1, frame: 13
|
|
return ignoreKeyboard ? ((a0) => {
|
|
var env0_0 = a0;
|
|
return _fun16940;
|
|
})(env0_1) : ((a0) => {
|
|
var env0_0 = a0;
|
|
return _fun16942;
|
|
})(env0_1);
|
|
function _fun16939(a0) { // fn#16939, offset: 0x00e5f827, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun16940;
|
|
function _fun16940({byAppEntry}) { // fn#16940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1605:363, offset: 0x00e5f837, size: 28 bytes, params: 2, frame: 2
|
|
return byAppEntry[env0_0].windowDimensionsIgnoringKeyboard;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun16941(a0) { // fn#16941, offset: 0x00e5f853, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun16942;
|
|
function _fun16942({byAppEntry}) { // fn#16942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1605:423, offset: 0x00e5f863, size: 28 bytes, params: 2, frame: 2
|
|
return byAppEntry[env0_0].windowDimensions;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function getWindowDimensions() { // fn#16943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1605:506, offset: 0x00e5f87f, size: 88 bytes, params: 1, frame: 11
|
|
const value = a0;
|
|
const r2 = value !== undefined ? value : env0_4;
|
|
let ignoreKeyboard = r2.ignoreKeyboard;
|
|
ignoreKeyboard = !(ignoreKeyboard === undefined) && ignoreKeyboard;
|
|
let appEntryKey = r2.appEntryKey;
|
|
appEntryKey = appEntryKey === undefined ? 'main' : appEntryKey;
|
|
const dimensionsStoreAndroidBinding = DimensionsStoreAndroid;
|
|
const getState = dimensionsStoreAndroidBinding.getState;
|
|
const property = Reflect.apply(getState, dimensionsStoreAndroidBinding, []).byAppEntry[appEntryKey];
|
|
return ignoreKeyboard ? property.windowDimensionsIgnoringKeyboard : property.windowDimensions;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun16936, 1478, [31, 1479, 1481, 2]) /* metro module 1478, dependencies: [31, 1479, 1481, 2] */;
|