decord/beta/source/modules/applications/utils/isApplicationAgeRestricted.tsx
github-actions e7a050048e chore: update source for beta 347.7
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-21 19:31:18 +00:00

28 lines
989 B
TypeScript

// Module ID: 9516
// Function ID: 9517
// Name: isApplicationAgeRestricted
// Dependencies: [4985, 9517, 5330, 2]
// Exports: default
// Module 9516 (isApplicationAgeRestricted)
import utils from "utils" /* 5330 */;
import AgeRestrictedApplicationCommandsExperimentDefault from "AgeRestrictedApplicationCommandsExperiment" /* 9517 */;
import ApplicationStore from "ApplicationStore" /* 4985 */;
require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/applications/utils/isApplicationAgeRestricted.tsx");
export default function isApplicationAgeRestricted(arg0) {
if (obj.getConfig({ location: "isApplicationAgeRestricted" }).enabled) {
const application = ApplicationStore.getApplication(arg0);
let prop;
if (application != null) {
prop = application.contentClassification;
}
return utils.isAgeRestrictedContentClassification(prop);
} else {
return false;
}
obj = AgeRestrictedApplicationCommandsExperimentDefault;
};