2026-08-25 06:04:03 +00:00
|
|
|
// Module ID: 15361
|
|
|
|
|
// Function ID: 15362
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: usePortraitOrientationOnly
|
2026-08-25 06:04:03 +00:00
|
|
|
// Dependencies: [19, 4359, 1625, 8629, 9042, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-25 06:04:03 +00:00
|
|
|
// Module 15361 (usePortraitOrientationOnly)
|
|
|
|
|
import useWideAuthViewDefault from "useWideAuthView" /* 8629 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
import closure_3 from "noop" /* 19 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
const require = arg1;
|
|
|
|
|
const result = require("set").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];
|
|
|
|
|
const effect = React.useEffect(() => {
|
2026-08-24 06:08:38 +00:00
|
|
|
const isIpadOSResult = callback(closure_1_2[1]).isIpadOS();
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp4 = !isIpadOSResult;
|
|
|
|
|
if (!isIpadOSResult) {
|
|
|
|
|
let tmpResult = tmp(tmp2[2]);
|
|
|
|
|
tmp4 = !tmpResult.isMetaQuest();
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp4) {
|
2026-08-24 06:08:38 +00:00
|
|
|
tmp4 = !callback;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
callback = tmp4;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp4) {
|
|
|
|
|
tmpResult = tmp(tmp2[4]);
|
|
|
|
|
tmpResult.lockOrientation("PORTRAIT", false);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return () => {
|
2026-08-24 06:08:38 +00:00
|
|
|
if (callback) {
|
|
|
|
|
callback(closure_1_2[4]).unlockOrientation({ unlockAfterRotatingToPreviousLock: false });
|
|
|
|
|
const obj = callback(closure_1_2[4]);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}, items);
|
|
|
|
|
};
|