decord/source/modules/age_assurance/useAgeGroupPresentation.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

63 lines
2.4 KiB
TypeScript

// Module ID: 14719
// Function ID: 14720
// Name: AgeGroupState
// Dependencies: [1074, 4773, 8411, 2024, 8413, 1114, 2]
// Exports: handleOpenAgeGatedContentArticle, handleShowAgeVerification, useAgeGroupState, useAgeGroupValueLabel
// Module 14719 (AgeGroupState)
import set from "set" /* 2 */;
import ME from "ME" /* 1074 */;
import combinedDefault from "combined" /* 2024 */;
import useAgeVerificationRunner from "useAgeVerificationRunner" /* 4773 */;
import openIncodeAgeVerificationModalDefault from "openIncodeAgeVerificationModal" /* 8411 */;
import AgeVerificationModalEntryPoint from "AgeVerificationModalEntryPoint" /* 8413 */;
const HelpdeskArticles = ME.HelpdeskArticles;
let obj = { ADULT: "adult", TEEN: "teen", UNVERIFIED: "unverified" };
let result = set.fileFinishedImporting("modules/age_assurance/useAgeGroupPresentation.tsx");
export const AgeGroupState = obj;
export const useAgeGroupState = function useAgeGroupState() {
obj = useAgeVerificationRunner;
const isAgeVerified = obj.useIsAgeVerified();
if (obj2.useIsVerifiedTeen()) {
let TEEN = tmp2.TEEN;
} else {
TEEN = isAgeVerified ? tmp2.ADULT : tmp2.UNVERIFIED;
}
return TEEN;
};
export const handleOpenAgeGatedContentArticle = function handleOpenAgeGatedContentArticle() {
obj = openIncodeAgeVerificationModalDefault;
obj.openUrl(combinedDefault.getArticleURL(HelpdeskArticles.TIGGER_PAWTECT_LEARN_MORE));
};
export const handleShowAgeVerification = function handleShowAgeVerification() {
obj = openIncodeAgeVerificationModalDefault;
obj = { entryPoint: AgeVerificationModalEntryPoint.AgeVerificationModalEntryPoint.ACCOUNT_AGE_GROUP };
const result = obj.showAgeVerificationGetStartedModal(obj);
};
export const useAgeGroupValueLabel = function useAgeGroupValueLabel() {
obj = useAgeVerificationRunner;
const isAgeVerified = obj.useIsAgeVerified();
if (obj2.useIsVerifiedTeen()) {
let UNVERIFIED = tmp4.TEEN;
let tmp5 = tmp4;
} else if (isAgeVerified) {
UNVERIFIED = tmp4.ADULT;
tmp5 = tmp4;
} else {
UNVERIFIED = tmp4.UNVERIFIED;
tmp5 = tmp4;
}
if (tmp5.ADULT === UNVERIFIED) {
const intl3 = tmp(1114).intl;
return intl3.string(tmp(1114).t.XxRj7f);
} else if (tmp5.TEEN === UNVERIFIED) {
const intl2 = tmp(1114).intl;
return intl2.string(tmp(1114).t.sK0dmH);
} else if (tmp5.UNVERIFIED === UNVERIFIED) {
const intl = tmp(1114).intl;
return intl.string(tmp(1114).t.lKDPGA);
}
obj2 = useAgeVerificationRunner;
};