decord/beta/source/modules/applications/utils/isApplicationAgeRestricted.tsx
github-actions 9b6fea255e chore: update source for beta 346.12
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-18 19:45:33 +00:00

28 lines
989 B
TypeScript

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