2026-09-05 10:56:28 +00:00
|
|
|
// Module ID: 5112
|
|
|
|
|
// Function ID: 5113
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: isAgeRestrictedContentClassification
|
2026-09-05 10:56:28 +00:00
|
|
|
// Dependencies: [5113, 5115, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: isAgeRestrictedContentClassification
|
|
|
|
|
|
2026-09-05 10:56:28 +00:00
|
|
|
// Module 5112 (isAgeRestrictedContentClassification)
|
2026-08-24 06:08:38 +00:00
|
|
|
import set from "set" /* 2 */;
|
2026-09-05 10:56:28 +00:00
|
|
|
import contentClassificationToAgeRestrictionConclusion from "contentClassificationToAgeRestrictionConclusion" /* 5113 */;
|
|
|
|
|
import AgeRestrictionStatus from "AgeRestrictionStatus" /* 5115 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
|
|
|
|
|
let result = set.fileFinishedImporting("modules/content_classification/utils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const isAgeRestrictedContentClassification = function isAgeRestrictedContentClassification(contentClassification) {
|
|
|
|
|
let tmp = null != contentClassification;
|
|
|
|
|
if (tmp) {
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj = contentClassificationToAgeRestrictionConclusion;
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { type: null, data: null };
|
2026-08-24 06:08:38 +00:00
|
|
|
obj[0] = contentClassificationToAgeRestrictionConclusion.ContentClassificationVariant.MINIMAL;
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[1] = contentClassification;
|
2026-07-20 16:05:17 +00:00
|
|
|
const result = obj.contentClassificationToAgeRestriction(obj);
|
2026-08-24 06:08:38 +00:00
|
|
|
tmp = result === AgeRestrictionStatus.AgeRestrictionStatus.ADULT;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
};
|