decord/alpha/source/modules/video_backgrounds/useIsVideoBackgroundEnabled.tsx

59 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 11036
// Function ID: 11037
2026-10-03 08:58:59 +00:00
// Name: useIsVideoBackgroundEnabled
2026-10-09 10:00:15 +00:00
// Dependencies: [558, 576, 5268, 11037, 1382, 2]
2026-10-03 08:58:59 +00:00
2026-10-09 10:00:15 +00:00
// Module 11036 (useIsVideoBackgroundEnabled)
2026-10-03 08:58:59 +00:00
import react from "react" /* 576 */;
2026-10-09 10:00:15 +00:00
import VirtualBackgroundsIosExperimentDefault from "VirtualBackgroundsIosExperiment" /* 5268 */;
import useIsVideoBackgroundSupportedDefault from "useIsVideoBackgroundSupported" /* 11037 */;
2026-10-03 08:58:59 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
let tmp;
2026-10-09 10:00:15 +00:00
const PlatformUtils = tmp(1382);
2026-10-08 09:57:35 +00:00
let tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useIsVideoBackgroundEnabled(location) {
2026-10-03 08:58:59 +00:00
let tmp4;
const obj = react;
const cResult = obj.c(2);
if (cResult[0] !== location) {
const obj2 = { location };
cResult[0] = location;
cResult[1] = obj2;
tmp4 = obj2;
} else {
tmp4 = cResult[1];
}
const obj3 = VirtualBackgroundsIosExperimentDefault;
const enabled = obj3.useConfig(tmp4).enabled;
let tmp5 = useIsVideoBackgroundSupportedDefault();
if (tmp5) {
const tmpResult = PlatformUtils;
const isIOSResult = tmpResult.isIOS();
let tmp7 = !isIOSResult;
if (isIOSResult) {
tmp7 = enabled;
}
tmp5 = tmp7;
}
return tmp5;
2026-10-08 09:57:35 +00:00
}) : (function useIsVideoBackgroundEnabled(location) {
2026-10-03 08:58:59 +00:00
const obj = VirtualBackgroundsIosExperimentDefault;
const obj2 = { location };
const enabled = obj.useConfig(obj2).enabled;
let tmp2 = useIsVideoBackgroundSupportedDefault();
if (tmp2) {
const obj3 = PlatformUtils;
const isIOSResult = obj3.isIOS();
let tmp5 = !isIOSResult;
if (isIOSResult) {
tmp5 = enabled;
}
tmp2 = tmp5;
}
return tmp2;
});
const result = size.fileFinishedImporting("modules/video_backgrounds/useIsVideoBackgroundEnabled.tsx");
export default tmp2;