decord/beta/source/modules/activities/native/doesOrientationMatchLockState.tsx
2026-10-12 16:32:48 +00:00

28 lines
854 B
TypeScript

// Module ID: 10925
// Function ID: 10926
// Name: doesOrientationMatchLockState
// Dependencies: [2024, 2]
// Exports: default
// Module 10925 (doesOrientationMatchLockState)
import Constants from "Constants" /* 2024 */;
import size from "module_2" /* 2 */;
const OrientationLockState = Constants.OrientationLockState;
const result = size.fileFinishedImporting("modules/activities/native/doesOrientationMatchLockState.tsx");
export default function doesOrientationMatchLockState(arg0, arg1) {
let tmp = null == arg1 || arg1 === OrientationLockState.UNLOCKED;
let tmp3 = arg0;
if (!tmp) {
tmp = !tmp3 && arg1 === OrientationLockState.PORTRAIT;
const tmp4 = !tmp3 && arg1 === OrientationLockState.PORTRAIT;
}
if (!tmp) {
if (tmp3) {
tmp3 = arg1 === OrientationLockState.LANDSCAPE;
}
tmp = tmp3;
}
return tmp;
};