2026-09-30 07:29:52 +00:00
|
|
|
// Module ID: 15826
|
|
|
|
|
// Function ID: 15827
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: useOrientationLock
|
2026-09-30 07:29:52 +00:00
|
|
|
// Dependencies: [19, 4842, 1610, 6559, 7975, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-30 07:29:52 +00:00
|
|
|
// Module 15826 (useOrientationLock)
|
|
|
|
|
import DeviceUtils from "DeviceUtils" /* 4842 */;
|
|
|
|
|
import useWideAuthViewDefault from "useWideAuthView" /* 6559 */;
|
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-26 08:31:33 +00:00
|
|
|
tmp4 = !tmp(1610).isMetaQuest();
|
|
|
|
|
const tmpResult = tmp(1610);
|
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-30 07:29:52 +00:00
|
|
|
tmp(7975).lockOrientation("PORTRAIT", false);
|
|
|
|
|
const tmpResult2 = tmp(7975);
|
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);
|
|
|
|
|
};
|