decord/source/modules/activities/native/doesOrientationMatchLockState.tsx
2026-07-23 10:11:24 +00:00

32 lines
784 B
TypeScript

// Module ID: 10602
// Function ID: 82710
// Name: doesOrientationMatchLockState
// Dependencies: [4155, 2]
// Exports: default
// Module 10602 (doesOrientationMatchLockState)
import { OrientationLockState } from "items3";
const result = require("set").fileFinishedImporting("modules/activities/native/doesOrientationMatchLockState.tsx");
export default function doesOrientationMatchLockState(arg0, arg1) {
let tmp = arg0;
let tmp2 = null == arg1;
if (!tmp2) {
tmp2 = arg1 === OrientationLockState.UNLOCKED;
}
if (!tmp2) {
let tmp4 = !tmp;
if (tmp4) {
tmp4 = arg1 === OrientationLockState.PORTRAIT;
}
tmp2 = tmp4;
}
if (!tmp2) {
if (tmp) {
tmp = arg1 === OrientationLockState.LANDSCAPE;
}
tmp2 = tmp;
}
return tmp2;
};