"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.ResetPasswordSent=void 0;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _Instruction=require("../components/Instruction");var _reactNativePaper=require("react-native-paper");var _MaterialIcons=_interopRequireDefault(require("react-native-vector-icons/MaterialIcons"));var _ToggleButton=require("../components/ToggleButton");var _native=require("@react-navigation/native");var _reactAuthShared=require("@brightlayer-ui/react-auth-shared");var _jsxFileName="/home/circleci/login-workflow/login-workflow/src/subScreens/ResetPasswordSent.tsx";var makeContainerStyles=function makeContainerStyles(theme){return _reactNative.StyleSheet.create({safeContainer:{height:'100%',backgroundColor:theme.colors.surface,flex:1,justifyContent:'space-between'},mainContainer:{flex:1},containerMargins:{marginHorizontal:16},iconContainer:{marginTop:60,marginBottom:16,alignSelf:'center'}});};var makeStyles=function makeStyles(){return _reactNative.StyleSheet.create({wideButton:{height:60,paddingVertical:8}});};var ResetPasswordSent=function ResetPasswordSent(props){var _routeParams$email;var theme=(0,_reactNativePaper.useTheme)(props.theme);var _useLanguageLocale=(0,_reactAuthShared.useLanguageLocale)(),t=_useLanguageLocale.t;var navigation=(0,_native.useNavigation)();var route=(0,_native.useRoute)();var containerStyles=makeContainerStyles(theme);var styles=makeStyles();var routeParams=route.params;var email=(_routeParams$email=routeParams===null||routeParams===void 0?void 0:routeParams.email)!==null&&_routeParams$email!==void 0?_routeParams$email:'';return _react.default.createElement(_reactNative.SafeAreaView,{style:containerStyles.safeContainer,__source:{fileName:_jsxFileName,lineNumber:86,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'center'},__source:{fileName:_jsxFileName,lineNumber:87,columnNumber:13}},_react.default.createElement(_reactNative.View,{style:{maxWidth:600},__source:{fileName:_jsxFileName,lineNumber:88,columnNumber:17}},_react.default.createElement(_MaterialIcons.default,{name:'mail-outline',style:containerStyles.iconContainer,size:100,color:theme.colors.placeholder,__source:{fileName:_jsxFileName,lineNumber:89,columnNumber:21}}),_react.default.createElement(_Instruction.Instruction,{text:t('blui:FORGOT_PASSWORD.LINK_SENT',{replace:{email:email}}),style:containerStyles.containerMargins,hasBottomBorder:false,__source:{fileName:_jsxFileName,lineNumber:96,columnNumber:21}}))),_react.default.createElement(_reactNative.View,{style:[styles.wideButton,containerStyles.containerMargins],__source:{fileName:_jsxFileName,lineNumber:106,columnNumber:13}},_react.default.createElement(_reactNative.View,{style:{flex:1},__source:{fileName:_jsxFileName,lineNumber:107,columnNumber:17}},_react.default.createElement(_ToggleButton.ToggleButton,{text:t('blui:ACTIONS.DONE'),onPress:function onPress(){return navigation.navigate('Login');},__source:{fileName:_jsxFileName,lineNumber:108,columnNumber:21}}))));};exports.ResetPasswordSent=ResetPasswordSent;
//# sourceMappingURL=ResetPasswordSent.js.map