// Module ID: 9595 // Function ID: 9596 // Name: useAgeGroupPresentation // Dependencies: [1085, 558, 5906, 7497, 2127, 5916, 576, 1126, 2] // Exports: handleOpenAgeGatedContentArticle, handleShowAgeVerification // Module 9595 (useAgeGroupPresentation) import react from "react" /* 576 */; import Constants from "Constants" /* 1085 */; import intl4 from "intl" /* 1126 */; import HelpdeskUtilsDefault from "HelpdeskUtils" /* 2127 */; import AgeVerificationUtils from "AgeVerificationUtils" /* 5906 */; import AgeVerificationAnalyticsUtils from "AgeVerificationAnalyticsUtils" /* 5916 */; import AgeVerificationActionCreatorsDefault from "AgeVerificationActionCreators" /* 7497 */; import ReactCompilerGating_mod from "ReactCompilerGating" /* 558 */; import size from "module_2" /* 2 */; const HelpdeskArticles = Constants.HelpdeskArticles; const AgeGroupState = { ADULT: "adult", TEEN: "teen", UNVERIFIED: "unverified" }; let ReactCompilerGating = ReactCompilerGating_mod; const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useAgeGroupState() { let TEEN; const obj = AgeVerificationUtils; const isAgeVerified = obj.useIsAgeVerified(); const obj2 = AgeVerificationUtils; if (obj2.useIsVerifiedTeen()) { TEEN = tmp2.TEEN; } else { TEEN = isAgeVerified ? tmp2.ADULT : tmp2.UNVERIFIED; } return TEEN; }) : (function useAgeGroupState() { let TEEN; const obj = AgeVerificationUtils; const isAgeVerified = obj.useIsAgeVerified(); const obj2 = AgeVerificationUtils; if (obj2.useIsVerifiedTeen()) { TEEN = tmp2.TEEN; } else { TEEN = isAgeVerified ? tmp2.ADULT : tmp2.UNVERIFIED; } return TEEN; }); let closure_5 = tmp2; ReactCompilerGating = ReactCompilerGating_mod; const tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? (function useAgeGroupValueLabel() { const obj = react; const cResult = obj.c(3); const tmp4 = closure_5(); if (obj.ADULT === tmp4) { let first; const _Symbol3 = Symbol; if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) { const intl3 = tmp(1126).intl; const stringResult = intl3.string(intl4.t.XxRj7f); cResult[0] = stringResult; first = stringResult; } else { first = cResult[0]; } return first; } else if (obj.TEEN === tmp4) { let tmp10; const _Symbol2 = Symbol; if (cResult[1] === Symbol.for("react.memo_cache_sentinel")) { const intl2 = tmp(1126).intl; const stringResult1 = intl2.string(intl4.t.sK0dmH); cResult[1] = stringResult1; tmp10 = stringResult1; } else { tmp10 = cResult[1]; } return tmp10; } else if (obj.UNVERIFIED === tmp4) { let tmp7; const _Symbol = Symbol; if (cResult[2] === Symbol.for("react.memo_cache_sentinel")) { const intl = tmp(1126).intl; const stringResult2 = intl.string(intl4.t.lKDPGA); cResult[2] = stringResult2; tmp7 = stringResult2; } else { tmp7 = cResult[2]; } return tmp7; } }) : (function useAgeGroupValueLabel() { const tmp = closure_5(); if (obj.ADULT === tmp) { const intl3 = intl4.intl; return intl3.string(intl4.t.XxRj7f); } else if (obj.TEEN === tmp) { const intl2 = intl4.intl; return intl2.string(intl4.t.sK0dmH); } else if (obj.UNVERIFIED === tmp) { const intl = intl4.intl; return intl.string(intl4.t.lKDPGA); } }); let result = size.fileFinishedImporting("modules/age_assurance/useAgeGroupPresentation.tsx"); export { AgeGroupState }; export const useAgeGroupState = tmp2; export const handleOpenAgeGatedContentArticle = function handleOpenAgeGatedContentArticle() { const openUrl = AgeVerificationActionCreatorsDefault.openUrl; AgeVerificationActionCreatorsDefault; const obj = HelpdeskUtilsDefault; openUrl(obj.getArticleURL(HelpdeskArticles.TIGGER_PAWTECT_LEARN_MORE)); }; export const handleShowAgeVerification = function handleShowAgeVerification() { const obj = AgeVerificationActionCreatorsDefault; const obj2 = { entryPoint: AgeVerificationAnalyticsUtils.AgeVerificationModalEntryPoint.ACCOUNT_AGE_GROUP }; const result = obj.showAgeVerificationGetStartedModal(obj2); }; export const useAgeGroupValueLabel = tmp3;