decord/alpha/source/modules/parent_tools/useIsParentalConsentBannerActive.tsx

59 lines
2 KiB
TypeScript
Raw Permalink Normal View History

2026-10-13 12:43:34 +00:00
// Module ID: 15465
// Function ID: 15466
2026-07-20 16:05:17 +00:00
// Name: useIsParentalConsentBannerActive
2026-10-13 12:43:34 +00:00
// Dependencies: [558, 576, 15466, 15468, 2]
2026-07-20 16:05:17 +00:00
2026-10-13 12:43:34 +00:00
// Module 15465 (useIsParentalConsentBannerActive)
2026-10-03 08:58:59 +00:00
import react from "react" /* 576 */;
2026-10-13 12:43:34 +00:00
import useParentalConsentWarning from "useParentalConsentWarning" /* 15466 */;
2026-10-03 08:58:59 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
2026-10-03 08:58:59 +00:00
let tmp;
2026-10-13 12:43:34 +00:00
const ParentalConsentWarningTypes = tmp(15468);
2026-10-08 09:57:35 +00:00
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useIsParentalConsentBannerActive() {
2026-10-03 08:58:59 +00:00
let tmp7;
const obj = react;
const cResult = obj.c(2);
const obj2 = useParentalConsentWarning;
const parentalConsentWarning = obj2.useParentalConsentWarning();
let surfaces1;
const first = cResult[0];
if (parentalConsentWarning != null) {
surfaces1 = parentalConsentWarning.surfaces;
}
if (first !== surfaces1) {
let hasItem;
if (parentalConsentWarning != null) {
const surfaces = parentalConsentWarning.surfaces;
if (surfaces != null) {
hasItem = surfaces.includes(ParentalConsentWarningTypes.ParentalConsentWarningSurface.BANNER);
}
}
let surfaces2;
if (parentalConsentWarning != null) {
surfaces2 = parentalConsentWarning.surfaces;
}
cResult[0] = surfaces2;
cResult[1] = hasItem;
tmp7 = hasItem;
} else {
tmp7 = cResult[1];
}
return true === tmp7;
2026-10-08 09:57:35 +00:00
}) : (function useIsParentalConsentBannerActive() {
2026-10-03 08:58:59 +00:00
const obj = useParentalConsentWarning;
const parentalConsentWarning = obj.useParentalConsentWarning();
2026-07-20 16:05:17 +00:00
let hasItem;
2026-07-29 08:29:29 +00:00
if (parentalConsentWarning != null) {
2026-07-20 16:05:17 +00:00
const surfaces = parentalConsentWarning.surfaces;
2026-07-29 08:29:29 +00:00
if (surfaces != null) {
hasItem = surfaces.includes(ParentalConsentWarningTypes.ParentalConsentWarningSurface.BANNER);
2026-07-20 16:05:17 +00:00
}
}
return true === hasItem;
2026-10-03 08:58:59 +00:00
});
const result = size.fileFinishedImporting("modules/parent_tools/useIsParentalConsentBannerActive.tsx");
export const useIsParentalConsentBannerActive = tmp2;