2026-10-01 06:55:13 +00:00
|
|
|
// Module ID: 8901
|
|
|
|
|
// Function ID: 8902
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: isApplicationAgeRestricted
|
2026-10-01 06:55:13 +00:00
|
|
|
// Dependencies: [5072, 8902, 5609, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-10-01 06:55:13 +00:00
|
|
|
// Module 8901 (isApplicationAgeRestricted)
|
|
|
|
|
import utils from "utils" /* 5609 */;
|
|
|
|
|
import AgeRestrictedApplicationCommandsExperimentDefault from "AgeRestrictedApplicationCommandsExperiment" /* 8902 */;
|
|
|
|
|
import ApplicationStore from "ApplicationStore" /* 5072 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/applications/utils/isApplicationAgeRestricted.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export default function isApplicationAgeRestricted(arg0) {
|
2026-07-20 16:05:17 +00:00
|
|
|
if (obj.getConfig({ location: "isApplicationAgeRestricted" }).enabled) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const application = ApplicationStore.getApplication(arg0);
|
2026-07-20 16:05:17 +00:00
|
|
|
let prop;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (application != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
prop = application.contentClassification;
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
return utils.isAgeRestrictedContentClassification(prop);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
obj = AgeRestrictedApplicationCommandsExperimentDefault;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|