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

146 lines
9.2 KiB
TypeScript

/* Metro module 5470; source: modules/age_assurance/native/AgeVerificationGetStartedModal.tsx; dependencies: [31, 33, 4501, 697, 5080, 5282, 5471, 6251, 6252, 6262, 491, 5074, 5280, 1244, 2] */
function _fun48062(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#48062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:6, offset: 0x011d8ae4, size: 272 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
const env0_5 = Reflect.apply(createStyles, createStylesModule,
[{headerStyle: {backgroundColor: BACKGROUND_BASE_LOWER, shadowColor: 'transparent'}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/native/AgeVerificationGetStartedModal.tsx');
exports.default = AgeVerificationGetStartedModal;
exports.AgeVerificationGetStartedModalScenes = {INTRO: 'INTRO', RETRY: 'RETRY',
EXPRESSIVE_INTRO: 'EXPRESSIVE_INTRO', GOOGLE_WALLET_VERIFICATION: 'GOOGLE_WALLET_VERIFICATION'};
}
function getInitialRouteName(a0, a1) { // fn#48063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:395, offset: 0x011d8bf4, size: 43 bytes, params: 3, frame: 3
const binding = env0_6;
return a1 ? binding.EXPRESSIVE_INTRO : a0 ? binding.RETRY : binding.INTRO;
}
function AgeVerificationGetStartedModal({entryPoint, isRetry, useEmbeddedMethods, classificationId, onComplete}) { // fn#48064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:583, offset: 0x011d8c1f, size: 334 bytes, params: 2, frame: 22
useEmbeddedMethods = !(useEmbeddedMethods === undefined) && useEmbeddedMethods;
const env0_3 = classificationId;
const styles = useStyles();
const binding = env0_3;
const value2 = binding.useMemo(_fun48065, []);
const value3 = binding.useMemo(_fun48066, [styles, value2, classificationId, onComplete, entryPoint]);
binding.useEffect(_fun48079, [value2, entryPoint, binding.useMemo(function() {
var r0;
var isRetryBinding;
var property;
if (useEmbeddedMethods) {
r0 = require(dependencyMap[11]).AgeVerificationModalVersion.EXPRESSIVE_PRIMARY;
} else {
isRetryBinding = isRetry;
property = require(dependencyMap[11]).AgeVerificationModalVersion;
r0 = isRetryBinding ? property.RETRY : property.PRIMARY;
}
return r0;
}, [useEmbeddedMethods, isRetry])]);
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
const navigatorProps = {screens: value3, initialRouteName: getInitialRouteName(isRetry, useEmbeddedMethods)};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
navigatorProps.headerBackTitle = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX']);
return <Navigator {...navigatorProps} />;
}
function _fun48065() { // fn#48065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:728, offset: 0x011d8d6d, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (require(491) /* metro dependency 491 */).v4();
}
function _fun48066() { // fn#48066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:764, offset: 0x011d8d92, size: 38 bytes, params: 1, frame: 19
return getScreens_48067(styles, env0_6, entryPoint, classificationId, onComplete);
}
function _fun48079() { // fn#48079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1910, offset: 0x011d90df, size: 55 bytes, params: 1, frame: 16
let value = environment.__proto__;
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
value.trackAgeVerificationModalViewed(env0_6, env0_7, entryPoint);
}
function getScreens_48067(a0, a1, a2, a3, a4) { // fn#48067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:768, offset: 0x011d8db8, size: 362 bytes, params: 6, frame: 21
var environment;
const env0_0 = a1;
const env0_1 = a2;
const env0_2 = a3;
const env0_3 = a4;
const closure = getScreens_48067CloseModal;
const object6 = {};
const value = environment.__proto__.__proto__;
const INTRO = env2_6.INTRO;
const object7 = {};
object7.headerStyle = a0.headerStyle;
object7.headerTitle = function() {
return null;
};
object7.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(closure);
object7.render = render_48071;
object6[INTRO] = object7;
const RETRY = env2_6.RETRY;
const object8 = {};
object8.headerStyle = a0.headerStyle;
object8.headerTitle = function() {
return null;
};
object8.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(closure);
object8.render = render_48073;
object6[RETRY] = object8;
const EXPRESSIVE_INTRO = env2_6.EXPRESSIVE_INTRO;
const object9 = {};
object9.headerStyle = a0.headerStyle;
object9.headerTitle = function() {
return null;
};
object9.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(closure);
object9.render = render_48075;
object6[EXPRESSIVE_INTRO] = object9;
const GOOGLE_WALLET_VERIFICATION = env2_6.GOOGLE_WALLET_VERIFICATION;
const object10 = {};
object10.headerStyle = a0.headerStyle;
object10.headerTitle = function() {
return null;
};
object10.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderBackButton();
object10.render = render_48077;
object6[GOOGLE_WALLET_VERIFICATION] = object10;
return object6;
}
function getScreens_48067CloseModal() { // fn#48068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:814, owner: getScreens_48067.closeModal, offset: 0x011d8f22, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__.__proto__;
return (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
}
function closeModalWithOnComplete() { // fn#48069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:857, owner: getScreens_48067.closeModalWithOnComplete, offset: 0x011d8f47, size: 33 bytes, params: 1, frame: 11
getScreens_48067CloseModal();
if (env0_3 != null) {
env0_3();
}
}
function getScreens_48067Render() { // fn#48071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1013, owner: getScreens_48067.render, offset: 0x011d8f68, size: 69 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={getScreens_48067CloseModal} modalSessionId={require} entryPoint={importDefault} />)(importDefault(5471) /* metro dependency 5471: AgeVerificationIntroScreen */);
}
function getScreens_48067Render_48073() { // fn#48073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1197, owner: getScreens_48067.render, offset: 0x011d8fad, size: 60 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={getScreens_48067CloseModal} modalSessionId={require} />)(importDefault(6251) /* metro dependency 6251: AgeVerificationRetryScreen */);
}
function getScreens_48067Render_48075(a0, a1) { // fn#48075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1379, owner: getScreens_48067.render, offset: 0x011d8fe9, size: 86 bytes, params: 3, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={closeModalWithOnComplete} modalSessionId={require} classificationId={importAll} entryPoint={importDefault} navigation={a1} />)(importDefault(6252) /* metro dependency 6252: AgeVerificationEmbeddedIntroScreen */);
}
function getScreens_48067Render_48077() { // fn#48077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1622, owner: getScreens_48067.render, offset: 0x011d903f, size: 60 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={closeModalWithOnComplete} modalSessionId={require} />)(importDefault(6262) /* metro dependency 6262: GoogleWalletVerificationScreen */);
}