"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.ResetPasswordSuccess=void 0;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _CompleteSplash=require("./CompleteSplash");var _ToggleButton=require("../components/ToggleButton");var _CloseHeader=require("../components/CloseHeader");var _native=require("@react-navigation/native");var _reactAuthShared=require("@brightlayer-ui/react-auth-shared");var _reactNativePaper=require("react-native-paper");var _jsxFileName="/home/circleci/login-workflow/login-workflow/src/subScreens/ResetPasswordSuccess.tsx";var makeContainerStyles=function makeContainerStyles(theme){return _reactNative.StyleSheet.create({safeContainer:{flex:1,backgroundColor:theme.colors.surface},mainContainer:{flex:1,zIndex:2},containerMargins:{marginHorizontal:16},buttonContainer:{bottom:48,zIndex:2,width:'90%',marginHorizontal:'5%'}});};var ResetPasswordSuccess=function ResetPasswordSuccess(props){var theme=(0,_reactNativePaper.useTheme)(props.theme);var _useLanguageLocale=(0,_reactAuthShared.useLanguageLocale)(),t=_useLanguageLocale.t;var navigation=(0,_native.useNavigation)();var containerStyles=makeContainerStyles(theme);var titleText=t('blui:PASSWORD_RESET.SUCCESS_MESSAGE');var bodyText=t('blui:CHANGE_PASSWORD.SUCCESS_MESSAGE');return _react.default.createElement(_reactNative.View,{style:{height:'100%'},__source:{fileName:_jsxFileName,lineNumber:68,columnNumber:9}},_react.default.createElement(_CloseHeader.CloseHeader,{title:t('blui:FORMS.RESET_PASSWORD'),backAction:function backAction(){return navigation.navigate('Login');},backgroundColor:(theme.dark?theme.colors.actionPalette.active:theme.colors.primary)||theme.colors.primary,__source:{fileName:_jsxFileName,lineNumber:69,columnNumber:13}}),_react.default.createElement(_reactNative.SafeAreaView,{style:containerStyles.safeContainer,__source:{fileName:_jsxFileName,lineNumber:76,columnNumber:13}},_react.default.createElement(_CompleteSplash.CompleteSplashScreen,{boldTitle:titleText,bodyText:bodyText,icon:'vpn-key',__source:{fileName:_jsxFileName,lineNumber:77,columnNumber:17}}),_react.default.createElement(_ToggleButton.ToggleButton,{text:t('blui:ACTIONS.DONE'),style:containerStyles.buttonContainer,onPress:function onPress(){return navigation.navigate('Login');},__source:{fileName:_jsxFileName,lineNumber:79,columnNumber:17}})));};exports.ResetPasswordSuccess=ResetPasswordSuccess;
//# sourceMappingURL=ResetPasswordSuccess.js.map