2026-09-24 10:59:02 +00:00
|
|
|
// Module ID: 16420
|
|
|
|
|
// Function ID: 16421
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: useOrientationLock
|
2026-09-24 10:59:02 +00:00
|
|
|
// Dependencies: [19, 4808, 1609, 7275, 8682, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-24 10:59:02 +00:00
|
|
|
// Module 16420 (useOrientationLock)
|
|
|
|
|
import DeviceUtils from "DeviceUtils" /* 4808 */;
|
|
|
|
|
import useWideAuthViewDefault from "useWideAuthView" /* 7275 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import noop from "module_19" /* 19 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/auth/native/useOrientationLock.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function usePortraitOrientationOnly() {
|
2026-08-24 06:08:38 +00:00
|
|
|
const tmp = useWideAuthViewDefault();
|
|
|
|
|
closure_0 = tmp;
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [tmp];
|
2026-09-10 05:38:07 +00:00
|
|
|
const effect = noop.useEffect(() => {
|
|
|
|
|
const isIpadOSResult = DeviceUtils.isIpadOS();
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp4 = !isIpadOSResult;
|
|
|
|
|
if (!isIpadOSResult) {
|
2026-09-15 14:23:42 +00:00
|
|
|
tmp4 = !tmp(1609).isMetaQuest();
|
|
|
|
|
const tmpResult = tmp(1609);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp4) {
|
2026-09-10 05:38:07 +00:00
|
|
|
tmp4 = !closure_0;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
closure_0 = tmp4;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp4) {
|
2026-09-24 10:59:02 +00:00
|
|
|
tmp(8682).lockOrientation("PORTRAIT", false);
|
|
|
|
|
const tmpResult2 = tmp(8682);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return () => {
|
2026-09-10 05:38:07 +00:00
|
|
|
if (closure_0) {
|
|
|
|
|
closure_0(dependencyMap[4]).unlockOrientation({ unlockAfterRotatingToPreviousLock: false });
|
|
|
|
|
const obj = closure_0(dependencyMap[4]);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}, items);
|
|
|
|
|
};
|