Files
discord-decomp/sources/modules/age_assurance/AgeVerificationConstants.tsx
T
2026-07-27 16:20:00 +03:00

78 lines
5.2 KiB
TypeScript

/* Metro module 5262; source: modules/age_assurance/AgeVerificationConstants.tsx; dependencies: [661, 5074, 1244, 5263, 1948, 2742, 2] */
function _fun46806(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5440:6, offset: 0x011af157, size: 494 bytes, params: 8, frame: 24
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
const Set = global.Set;
const AgeVerificationModalEntryPoint = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalEntryPoint;
const NSFW_GUILD = AgeVerificationModalEntryPoint.NSFW_GUILD;
const set = new Set([NSFW_GUILD]);
const object = {FACIAL_AGE_ESTIMATION: 1};
object[1] = 'FACIAL_AGE_ESTIMATION';
object.ID_VERIFICATION = 2;
object[2] = 'ID_VERIFICATION';
object.MODULAR = 3;
object[3] = 'MODULAR';
object.GOOGLE_WALLET = 9;
object[9] = 'GOOGLE_WALLET';
const object7 = {};
const FACIAL_AGE_ESTIMATION = object.FACIAL_AGE_ESTIMATION;
const object8 = {title: (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */)['2yLvkS']};
object8.description = (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).eJmat5;
object7[FACIAL_AGE_ESTIMATION] = object8;
const ID_VERIFICATION = object.ID_VERIFICATION;
const object9 = {};
object9.title = (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).dwkwo0;
const ZdmRwW = (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).ZdmRwW;
object9.description = ZdmRwW;
object7[ID_VERIFICATION] = object9;
const GOOGLE_WALLET = object.GOOGLE_WALLET;
const object10 = {};
const Y9sLpR = (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).Y9sLpR;
object10.title = Y9sLpR;
object10.description = (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).dah4bF;
object7[GOOGLE_WALLET] = object10;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/AgeVerificationConstants.tsx');
exports.FULLSCREEN_AGE_VERIFICATION_ENTRY_POINTS = set;
exports.getAgeVerificationGetStartedSteps = getAgeVerificationGetStartedSteps;
exports.AGE_VERIFICATION_MODAL_KEY = 'AGE_VERIFICATION_MODAL_KEY';
exports.AGE_VERIFICATION_GET_STARTED_MODAL_KEY = 'AGE_VERIFICATION_GET_STARTED_MODAL_KEY';
exports.AGE_VERIFICATION_QUEST_UNSUPPORTED_ALERT_KEY = 'AGE_VERIFICATION_QUEST_UNSUPPORTED_ALERT_KEY';
exports.VerificationVendorName = {K_ID: 'K_ID', GOOGLE_WALLET: 'GOOGLE_WALLET'};
exports.VerificationMethod = object;
exports.VERIFICATION_METHOD_TITLE_MAP = object7;
}
function getAgeVerificationGetStartedSteps(a0) { // fn#46807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5440:830, offset: 0x011af345, size: 362 bytes, params: 2, frame: 19
const env0_0 = a0;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const HphYKp = t.HphYKp;
object2.title = Reflect.apply(string, intl, [HphYKp]);
object2.description = intl.string(t['GCZC+9']);
return [object2, {title: intl.string(t.nkO4L3), description: intl.string(t.rHZFsH)}, {title: intl.string(t.aVwLfn),
description: intl.format(t.n5vd1E, {handleOnHelpUrlHook: handleOnHelpUrlHook})}];
}
function getAgeVerificationGetStartedStepsHandleOnHelpUrlHook() { // fn#46808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5440:1144, owner: getAgeVerificationGetStartedSteps.handleOnHelpUrlHook, offset: 0x011af4af, size: 149 bytes, params: 1, frame: 18
let value = environment.__proto__;
const defaultImport = importDefault(5263) /* metro dependency 5263: AgeVerificationActionCreatorsNative */;
const openUrl = defaultImport.openUrl;
const defaultImport2 = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport2.getArticleURL;
const TIGGER_PAWTECT_SYSTEM_DMS = HelpdeskArticles.TIGGER_PAWTECT_SYSTEM_DMS;
Reflect.apply(openUrl, defaultImport, [Reflect.apply(getArticleURL, defaultImport2, [TIGGER_PAWTECT_SYSTEM_DMS])]);
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
const binding = env0_0;
const AgeVerificationModalVersion = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalVersion;
const PRIMARY = AgeVerificationModalVersion.PRIMARY;
const AgeVerificationModalCta = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalCta;
const SYSTEM_DMS_LEARN_MORE = AgeVerificationModalCta.SYSTEM_DMS_LEARN_MORE;
Reflect.apply(trackAgeVerificationModalClicked, value, [binding, PRIMARY, SYSTEM_DMS_LEARN_MORE]);
}