/* Metro module 15362; source: modules/activities/native/applyActivityOrientationLock.tsx; dependencies: [4237, 10703, 7717, 2] */ import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 4237 */ import * as GetDefaultOrientationLockStateModule from './getDefaultOrientationLockState.tsx'; /* Metro dependency 10703 */ function _fun117442(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15559:6, offset: 0x024b320f, size: 117 bytes, params: 8, frame: 18 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/activities/native/applyActivityOrientationLock.tsx'); exports.default = applyActivityOrientationLock; function applyActivityOrientationLock(a0) { // fn#117443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15559:229, offset: 0x024b3284, size: 208 bytes, params: 2, frame: 15 const getIsTabletActivitySurface = GetDefaultOrientationLockStateModule.getIsTabletActivitySurface; if (!Reflect.apply(getIsTabletActivitySurface, GetDefaultOrientationLockStateModule, [])) { if (OrientationLockState.UNLOCKED === a0) { (require(7717) /* metro dependency 7717: DeviceOrientation */).unlockOrientation({unlockAfterRotatingToPreviousLock: true}); } else if (OrientationLockState.PORTRAIT === a0) { (require(7717) /* metro dependency 7717: DeviceOrientation */).lockOrientation('PORTRAIT', true); } else if (OrientationLockState.LANDSCAPE === a0) { (require(7717) /* metro dependency 7717: DeviceOrientation */).lockOrientation('LANDSCAPE', true); } } } } global.__d(_fun117442, 15362, [4237, 10703, 7717, 2]) /* metro module 15362, dependencies: [4237, 10703, 7717, 2] */;