2026-08-26 06:04:24 +00:00
|
|
|
// Module ID: 5005
|
|
|
|
|
// Function ID: 5006
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: isAgeRestrictedContentClassification
|
2026-08-26 06:04:24 +00:00
|
|
|
// Dependencies: [5006, 5008, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: isAgeRestrictedContentClassification
|
|
|
|
|
|
2026-08-26 06:04:24 +00:00
|
|
|
// Module 5005 (isAgeRestrictedContentClassification)
|
2026-08-24 06:08:38 +00:00
|
|
|
import set from "set" /* 2 */;
|
2026-08-26 06:04:24 +00:00
|
|
|
import contentClassificationToAgeRestrictionConclusion from "contentClassificationToAgeRestrictionConclusion" /* 5006 */;
|
|
|
|
|
import AgeRestrictionStatus from "AgeRestrictionStatus" /* 5008 */;
|
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;
|
|
|
|
|
};
|