/* Metro module 15793; source: modules/nuf/native/components/NewUserModal.tsx; dependencies: [57, 31, 27, 33, 9884, 4501, 697, 15794, 1962, 4497, 5280, 15791, 5080, 15792, 5286, 477, 14357, 15795, 12013, 12002, 15796, 15798, 2] */ function _fun121332(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121332, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16001:6, offset: 0x02544b39, size: 290 bytes, params: 8, frame: 21 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(57) /* metro dependency 57 */; const env0_4 = importAll(31) /* metro dependency 31 */; const env0_5 = (require(27) /* metro dependency 27 */).NativeModules; let value = require(33) /* metro dependency 33 */; const env0_6 = value.jsx; const env0_7 = value.jsxs; const env0_8 = (require(9884) /* metro dependency 9884 */).createNativeStackNavigator(); value = require(4501) /* metro dependency 4501: createStyles */; const createStyles = value.createStyles; const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW; const env0_9 = Reflect.apply(createStyles, value, [{header: {'borderBottomWidth': 0, 'backgroundColor': null, 'shadowColor': 'transparent', backgroundColor: BACKGROUND_BASE_LOW}}]); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/nuf/native/components/NewUserModal.tsx'); exports.default = NewUserModal; } function NewUserModal({initialRouteName, initialOnboardingStepIndex}) { // fn#121333, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16001:429, offset: 0x02544c5b, size: 593 bytes, params: 2, frame: 23 var object2; const env0_0 = useStyles(); let binding = env0_4; let useState = binding.useState; const value2 = Reflect.apply(useState, binding, [initialOnboardingStepIndex]); const binding2 = env0_3; const value3 = binding2(value2, 2); const property = value3[0]; const env0_2 = value3[1]; useState = binding.useState; const value4 = binding2(Reflect.apply(useState, binding, [initialOnboardingStepIndex]), 2); const property2 = value4[0]; var env0_4 = value4[1]; const env0_5 = binding.useRef(null); const env0_6 = (require(5280) /* metro dependency 5280: NavigatorNative */).useAccessibilityNativeStackOptions(); const value5 = binding.useCallback(_fun121334, [property2, property]); (require(5286) /* metro dependency 5286: useNavigatorBackPressHandlerNative */).useNavigatorBackPressHandler(function() { var MinimizeApp = NativeModules.MinimizeApp; MinimizeApp.minimizeApp(); return true; }); const Navigator = env0_8.Navigator; object2 = {screenOptions: screenOptions_121337}; const value6 = 'choose-avatar'; object2.initialRouteName = initialRouteName ?? value6; binding = env0_8; let Screen = binding.Screen; const items2 = []; Screen = binding.Screen; items2[1] = ; Screen = binding.Screen; items2[2] = ; Screen = binding.Screen; items2[3] = ; Screen = binding.Screen; items2[4] = ; return ( {items2} ); } function _fun121334(a0) { // fn#121334, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16001:672, offset: 0x02544eac, size: 85 bytes, params: 2, frame: 16 let value = a0; value = (require(15791) /* metro dependency 15791: NewUserUtils */).getNextOnboardingStep(value != null && value, env0_3, env0_1); value.then(_fun121335); } function NewUserModalScreenOptions({navigation}) { // fn#121337, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16001:1044, owner: NewUserModal.screenOptions, offset: 0x02544fc2, size: 163 bytes, params: 2, frame: 15 env0_5.current = navigation; const object2 = {'headerStyle': null, 'headerShadowVisible': false, 'title': '', 'headerLeft': null, 'headerRight': null, 'fullScreenGestureEnabled': false}; object2.headerStyle = styles.header; object2.headerLeft = function() { return null; }; object2.headerRight = function() { return null; }; object2.presentation = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() ? 'transparentModal' : 'card'; object2.animation = 'slide_from_right'; object2.headerBackVisible = false; copyDataProperties(object2, env0_6, require); return object2; } function NewUserModalOptions() { // fn#121342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16001:1566, owner: NewUserModal.options, offset: 0x02545086, size: 18 bytes, params: 1, frame: 2 return {headerRight: headerRight_121343}; } function _fun121335({lastShownStepIndex, onboardingStepIndex, continueNavigation}) { // fn#121335, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16001:729, offset: 0x02544f01, size: 166 bytes, params: 2, frame: 17 const NEW_USER_MODAL_KEY = (require(15792) /* metro dependency 15792: NewUserModalTypes */).NEW_USER_MODAL_KEY; var value2; var moduleValue; env1_2(onboardingStepIndex); env1_4(lastShownStepIndex); if (continueNavigation) { if (env1_5.current != null) { value2 = environment.__proto__.__proto__; moduleValue = require(15791) /* metro dependency 15791: NewUserUtils */; moduleValue.continueToNextStep(onboardingStepIndex, env1_5.current); } else { value = environment.__proto__.__proto__; (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey(NEW_USER_MODAL_KEY); } } else { value = environment.__proto__.__proto__; (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey(NEW_USER_MODAL_KEY); } } function optionsHeaderRight_121343(a0) { // fn#121343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16001:1584, owner: NewUserModal.options.headerRight, offset: 0x02545098, size: 67 bytes, params: 2, frame: 15 var environment; const value = environment.__proto__.__proto__; return ((Component) => )(importDefault(12013) /* metro dependency 12013: SkipHeaderButton */); } function headerRightOnPress_121344() { // fn#121344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16001:1612, owner: NewUserModal.options.headerRight.onPress, offset: 0x025450db, size: 25 bytes, params: 1, frame: 11 handleChooseAvatarSkip(env2_7); } function handleChooseAvatarSkip(a0) { // fn#121345, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16001:1616, owner: NewUserModal.options.headerRight.onPress.handleChooseAvatarSkip, offset: 0x025450f4, size: 100 bytes, params: 2, frame: 16 var environment; const env0_0 = a0; const value = environment.__proto__.__proto__.__proto__.__proto__; (require(4497) /* metro dependency 4497: useAlertStoreNative */).openAlert('skip-avatar-upload', ((Component) => )(env4_4.lazy(_fun121346))); } function _fun121346() { // fn#121346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16001:1665, offset: 0x02545158, size: 45 bytes, params: 1, frame: 13 const value = environment.__proto__.__proto__.__proto__.__proto__.__proto__; return require(dependencyMap[8])(dependencyMap[7], dependencyMap.paths); }