Files
discord-decomp/sources/modules/age_assurance/AgeVerificationConstants.tsx
T
2026-07-28 01:06:53 +03:00

86 lines
5.8 KiB
TypeScript

/* Metro module 5262; source: modules/age_assurance/AgeVerificationConstants.tsx; dependencies: [661, 5074, 1244, 5263, 1948, 2742, 2] */
import HelpdeskUtils from '../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
import AgeVerificationActionCreatorsNative from './AgeVerificationActionCreators.native.tsx'; /* Metro dependency 5263 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as AgeVerificationAnalyticsUtilsModule from './AgeVerificationAnalyticsUtils.tsx'; /* Metro dependency 5074 */
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 Set = global.Set;
const AgeVerificationModalEntryPoint = (AgeVerificationAnalyticsUtilsModule).AgeVerificationModalEntryPoint;
const NSFW_GUILD = AgeVerificationModalEntryPoint.NSFW_GUILD;
const set = new Set([NSFW_GUILD]);
const object2 = {FACIAL_AGE_ESTIMATION: 1};
object2[1] = 'FACIAL_AGE_ESTIMATION';
object2.ID_VERIFICATION = 2;
object2[2] = 'ID_VERIFICATION';
object2.MODULAR = 3;
object2[3] = 'MODULAR';
object2.GOOGLE_WALLET = 9;
object2[9] = 'GOOGLE_WALLET';
const object3 = {};
const FACIAL_AGE_ESTIMATION = object2.FACIAL_AGE_ESTIMATION;
const object4 = {title: (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */)['2yLvkS']};
object4.description = (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).eJmat5;
object3[FACIAL_AGE_ESTIMATION] = object4;
const ID_VERIFICATION = object2.ID_VERIFICATION;
const object5 = {};
object5.title = (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).dwkwo0;
const ZdmRwW = (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).ZdmRwW;
object5.description = ZdmRwW;
object3[ID_VERIFICATION] = object5;
const GOOGLE_WALLET = object2.GOOGLE_WALLET;
const object6 = {};
const Y9sLpR = (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).Y9sLpR;
object6.title = Y9sLpR;
object6.description = (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).dah4bF;
object3[GOOGLE_WALLET] = object6;
(FileImportTrackerModule).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 = object2;
exports.VERIFICATION_METHOD_TITLE_MAP = object3;
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 object = {};
const intl = (IndexNativeModule).intl;
const string = intl.string;
const t = (IndexNativeModule).t;
const HphYKp = t.HphYKp;
object.title = Reflect.apply(string, intl, [HphYKp]);
object.description = intl.string(t['GCZC+9']);
return [object, {title: intl.string(t.nkO4L3), description: intl.string(t.rHZFsH)}, {title: intl.string(t.aVwLfn),
description: intl.format(t.n5vd1E, {handleOnHelpUrlHook: handleOnHelpUrlHook})}];
function handleOnHelpUrlHook() { // 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 = AgeVerificationActionCreatorsNative;
const openUrl = defaultImport.openUrl;
const defaultImport2 = 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]);
}
}
}
global.__d(_fun46806, 5262, [661, 5074, 1244, 5263, 1948, 2742,
2]) /* metro module 5262, dependencies: [661, 5074, 1244, 5263, 1948, 2742, 2] */;