// Module ID: 15081 // Function ID: 15082 // Name: NavigatorWithCaptchaHook // Dependencies: [32, 19, 17, 676, 21, 15082, 5270, 15091, 5785, 8478, 4303, 712, 15132, 8472, 1623, 8502, 15133, 8500, 5783, 501, 1236, 15134, 6934, 15138, 2] // Module 15081 (NavigatorWithCaptchaHook) import _slicedToArray from "_slicedToArray"; import importAllResult from "PlatformTypes"; import get_ActivityIndicator from "context"; import { AuthStates } from "ME"; import jsxProd from "_initialize"; import headerTitle from "headerTitle"; import createCacheKey from "createCacheKey"; let StyleSheet; let c10; let c5; let c9; let closure_6; let metroImportAll; const require = arg1; function NavigatorWithCaptchaHook() { let require; let tmp9; let obj = require(15132) /* useIsHCaptchaModalOpenTracking */; const isHCaptchaModalOpenTracking = obj.useIsHCaptchaModalOpenTracking(); const tmp6 = callback3(); const tmp5 = importDefault(8472)(); [tmp9, require] = callback(importAllResult.useState(AuthStates.WELCOME), 2); const tmp10 = callback(importAllResult.useState(false), 2); importDefault = tmp11; let obj1 = require(1623) /* KeyboardChatScrollView */; const keyboardState = obj1.useKeyboardState((height) => height.height); callback = importAllResult.useCallback((arg0) => { let name; if (arg0 != null) { if (arg0.routes[arg0.index] != null) { name = tmp3.name; } } if (name == null) { name = null; } closure_0(name); tmp11(false); }, []); obj = { backgroundImageSource: null, backgroundImageCover: true }; const tmp15 = closure_10; const tmp16 = closure_9; const tmp8 = callback(importAllResult.useState(AuthStates.WELCOME), 2); obj[0] = require(15133) /* registerAsset */; const children = [callback2(importDefault(8502), obj), ]; if (tmp5) { obj = { value: null, children: null }; obj[0] = tmp11; const items1 = [tmp6.wideOuterContainer, ]; let tmp24 = null; if (tmp13) { obj1 = { paddingBottom: null }; obj1[0] = keyboardState; tmp24 = obj1; } const obj2 = { style: null, children: null }; items1[1] = tmp24; obj2[0] = items1; const items2 = [tmp6.wideCard, , ]; let tmp25 = null; if (null != tmp9) { let num = obj[tmp9]; if (num == null) { num = 520; } const obj3 = { height: null }; obj3[0] = num; tmp25 = obj3; } items2[1] = tmp25; let obj4 = null; if (tmp13) { obj4 = { maxHeight: "100%", height: "100%", marginTop: 32, borderBottomLeftRadius: 0, borderBottomRightRadius: 0 }; } const obj5 = { style: null, children: null }; items2[2] = obj4; obj5[0] = items2; const obj6 = { screens: null, containerStyle: null, viewStyle: null, headerStatusBarHeight: 0, cardOverlayEnabled: false, cardShadowEnabled: false, initialRouteName: null, onWillFocus: null, onStateChange: null, headerStyle: null, headerLeftContainerStyle: null, disableHeaderAnimation: true }; obj6[0] = closure_12; obj6[1] = tmp6.cardContainer; let transparent = null; if (tmp9 === tmp7.WELCOME) { transparent = tmp6.transparent; } obj6[2] = transparent; obj6[6] = tmp7.WELCOME; obj6[7] = closure_5.dismiss; obj6[8] = callback; obj6[9] = tmp10[0] ? tmp6.wideHeader : tmp6.wideHeaderFlat; let num2 = 20; if (tmpResult.isAndroid()) { num2 = tmp4(712).space.PX_12; } const obj7 = { paddingLeft: null, paddingTop: null, paddingBottom: null }; obj7[0] = num2; obj7[1] = tmp4(712).space.PX_24; obj7[2] = tmp4(712).space.PX_16; obj6[10] = obj7; obj5[1] = tmp17(tmp(5783).Navigator, obj6); obj2[1] = tmp17(closure_6, obj5); obj[1] = tmp17(closure_6, obj2); let tmp17Result = tmp17(tmp(8500).WideAuthScrollContext.Provider, obj); tmpResult = tmp(501); } else { const obj8 = { screens: null, viewStyle: null, containerStyle: null, headerBackTitle: null, initialRouteName: null, onWillFocus: null, headerStyle: null }; obj8[0] = headerTitle; ({ transparent: obj4[1], transparent: obj4[2] } = tmp6); const intl = tmp(1236).intl; obj8[3] = intl.string(tmp(1236).t["13/7kX"]); obj8[4] = tmp7.WELCOME; obj8[5] = closure_5.dismiss; obj8[6] = { borderBottomWidth: 0 }; tmp17Result = tmp17(tmp(5783).Navigator, obj8); } children[1] = tmp17Result; return tmp15(tmp16, { children }); } let c4 = importAllResult; ({ Keyboard: c5, View: closure_6, StyleSheet } = get_ActivityIndicator); ({ jsx: metroImportAll, Fragment: c9, jsxs: c10 } = jsxProd); headerTitle = headerTitle.getAllAuthScreens(); headerTitle = Object.entries(headerTitle); let closure_12 = Object.fromEntries(headerTitle.map((arg0) => { let tmp; let tmp2; [tmp, tmp2] = arg0; const items = [tmp, ]; let obj = {}; let merged = Object.assign(tmp2); obj = null; if (tmp2.fullscreen) { obj = { fullscreen: false, headerTransparent: false }; } let merged1 = Object.assign(obj); let tmp6 = null; if (tmp !== AuthStates.MFA) { tmp6 = null; if (tmp !== tmp5.WELCOME) { obj = { headerLeft: null }; obj[0] = function headerLeft(arg0) { function backImage() { return callback2(callback(table[6]).HeaderBackImage, {}); } let obj = headerLeft; if (null != headerLeft.headerLeft) { obj = {}; const merged = Object.assign(arg0); obj.backImage = backImage; let headerLeftResult = obj.headerLeft(obj); } else { obj = {}; const merged1 = Object.assign(arg0); obj.backImage = backImage; headerLeftResult = outer1_8(outer1_0(outer1_2[7]).BackButtonWithTracking, obj); } return headerLeftResult; }; tmp6 = obj; } } const merged2 = Object.assign(tmp6); const items1 = [, , ]; ({ REGISTER_IDENTITY: arr2[0], LOGIN: arr2[1], AGE_GATE_UNDERAGE: arr2[2] } = AuthStates); let tmp8 = null; if (set.has(tmp)) { const obj1 = { cardStyleInterpolator: null }; obj1[0] = require(5785) /* createStackNavigator */.CardStyleInterpolators.forFadeFromCenter; tmp8 = obj1; } const merged3 = Object.assign(tmp8); items[1] = obj; return items; })); let num = 540; if (require("_crypto").hasWebAuthn) { num = 600; } let obj = {}; obj[AuthStates.LOGIN] = num; obj[AuthStates.MFA] = 600; obj = { transparent: { backgroundColor: "transparent" }, cardContainer: { flex: 1, position: "relative", backgroundColor: "transparent" }, wideOuterContainer: { flex: 1, justifyContent: "center" }, wideCard: null, wideHeaderFlat: null, wideHeader: null }; headerTitle = { backgroundColor: "transparent", borderRadius: require("Themes").radii.lg, maxWidth: 600, alignSelf: "center", width: "100%", maxHeight: "90%", overflow: "hidden", height: 520 }; obj[3] = headerTitle; obj[4] = { borderBottomWidth: 0, backgroundColor: require("Themes").colors.BACKGROUND_BASE_LOW }; createCacheKey = { borderBottomWidth: StyleSheet.hairlineWidth, borderBottomColor: require("Themes").colors.BORDER_SUBTLE, backgroundColor: require("Themes").colors.BACKGROUND_BASE_LOW }; obj[5] = createCacheKey; let closure_14 = createCacheKey.createStyles(obj); const context = importAllResult.createContext(() => { }); let obj2 = { borderBottomWidth: 0, backgroundColor: require("Themes").colors.BACKGROUND_BASE_LOW }; const memoResult = importAllResult.memo(function Auth() { const effect = importAllResult.useEffect(() => { callback2(15134).initialize(); return () => callback(table[21]).terminate(); }, []); const layoutEffect = importAllResult.useLayoutEffect(() => callback(6934).trackAppUIViewed(), []); importDefault(15138)(); let closure_0 = importAllResult.useRef(undefined); return callback2(context.Provider, { value: importAllResult.useCallback(() => callback(outer1_2[7]).getTrackRegTransition(callback), [])(), children: callback2(NavigatorWithCaptchaHook, {}) }); }); const result = require("get ActivityIndicator").fileFinishedImporting("modules/auth/native/components/Auth.tsx"); export default memoResult; export const TrackRegistrationContext = context;