decord/alpha/source/modules/activities/native/doesOrientationMatchLockState.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

34 lines
866 B
TypeScript

// Module ID: 9807
// Function ID: 9808
// Name: doesOrientationMatchLockState
// Dependencies: [2004, 2]
// Exports: default
// Module 9807 (doesOrientationMatchLockState)
import Constants from "Constants" /* 2004 */;
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;
if (!tmp) {
tmp = arg1 === OrientationLockState.UNLOCKED;
}
let tmp3 = arg0;
if (!tmp) {
let tmp4 = !tmp3;
if (!tmp3) {
tmp4 = arg1 === OrientationLockState.PORTRAIT;
}
tmp = tmp4;
}
if (!tmp) {
if (tmp3) {
tmp3 = arg1 === OrientationLockState.LANDSCAPE;
}
tmp = tmp3;
}
return tmp;
};