2026-10-06 11:16:32 +00:00
|
|
|
// Module ID: 5904
|
|
|
|
|
// Function ID: 5905
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: utils
|
2026-10-06 11:16:32 +00:00
|
|
|
// Dependencies: [5905, 5907, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: isAgeRestrictedContentClassification
|
|
|
|
|
|
2026-10-06 11:16:32 +00:00
|
|
|
// Module 5904 (utils)
|
|
|
|
|
import ContentClassificationToAgeRestriction from "ContentClassificationToAgeRestriction" /* 5905 */;
|
|
|
|
|
import AgeRestrictionStatus from "AgeRestrictionStatus" /* 5907 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
let result = size.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-10-03 08:58:59 +00:00
|
|
|
const obj = { type: ContentClassificationToAgeRestriction.ContentClassificationVariant.MINIMAL, data: contentClassification };
|
|
|
|
|
const contentClassificationToAgeRestriction = ContentClassificationToAgeRestriction.contentClassificationToAgeRestriction;
|
|
|
|
|
ContentClassificationToAgeRestriction;
|
|
|
|
|
const result = 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;
|
|
|
|
|
};
|