decord/source/modules/auth/native/useOrientationLock.tsx
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

42 lines
1.2 KiB
TypeScript

// Module ID: 16072
// Function ID: 16073
// Name: useOrientationLock
// Dependencies: [19, 4586, 1608, 7016, 8420, 2]
// Exports: default
// Module 16072 (useOrientationLock)
import DeviceUtils from "DeviceUtils" /* 4586 */;
import useWideAuthViewDefault from "useWideAuthView" /* 7016 */;
import noop from "module_19" /* 19 */;
require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/auth/native/useOrientationLock.tsx");
export default function usePortraitOrientationOnly() {
const tmp = useWideAuthViewDefault();
closure_0 = tmp;
const items = [tmp];
const effect = noop.useEffect(() => {
const isIpadOSResult = DeviceUtils.isIpadOS();
let tmp4 = !isIpadOSResult;
if (!isIpadOSResult) {
tmp4 = !tmp(1608).isMetaQuest();
const tmpResult = tmp(1608);
}
if (tmp4) {
tmp4 = !closure_0;
}
closure_0 = tmp4;
if (tmp4) {
tmp(8420).lockOrientation("PORTRAIT", false);
const tmpResult2 = tmp(8420);
}
return () => {
if (closure_0) {
closure_0(dependencyMap[4]).unlockOrientation({ unlockAfterRotatingToPreviousLock: false });
const obj = closure_0(dependencyMap[4]);
}
};
}, items);
};