decord/alpha/source/modules/applications/utils/isApplicationAgeRestricted.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

28 lines
989 B
TypeScript

// Module ID: 9603
// Function ID: 9604
// Name: isApplicationAgeRestricted
// Dependencies: [5056, 9604, 5416, 2]
// Exports: default
// Module 9603 (isApplicationAgeRestricted)
import utils from "utils" /* 5416 */;
import AgeRestrictedApplicationCommandsExperimentDefault from "AgeRestrictedApplicationCommandsExperiment" /* 9604 */;
import ApplicationStore from "ApplicationStore" /* 5056 */;
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;
};