decord/source/modules/applications/utils/isApplicationAgeRestricted.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

28 lines
989 B
TypeScript

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