var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.FullSubmit=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _native=require("@react-navigation/native");var _mobxReactLite=require("mobx-react-lite");var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _MText=require("../../components/MText");var _store=_interopRequireDefault(require("./store"));var _updateDocument=require("./update-document");var _updateInfo=require("./update-info");var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _jsxFileName="/Users/tima/Tima/react-native-timacare/src/screens/full-submit/index.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var FullSubmit=exports.FullSubmit=(0,_mobxReactLite.observer)(function FullSubmit(props){var _props$route$params,_this=this;var navigation=(0,_native.useNavigation)();var _useState=(0,_react.useState)(1),_useState2=(0,_slicedToArray2.default)(_useState,2),tab=_useState2[0],setTab=_useState2[1];var loan=props==null?void 0:(_props$route$params=props.route.params)==null?void 0:_props$route$params.loan;return _react.default.createElement(_reactNative.View,{style:{flex:1,backgroundColor:'#FFFFFF'},__self:this,__source:{fileName:_jsxFileName,lineNumber:23,columnNumber:5}},_react.default.createElement(_MHeader.default,{title:"Ho\xE0n thi\u1EC7n h\u1ED3 s\u01A1",onBack:function onBack(){if(tab===2){setTab(1);}else{navigation.goBack();}},__self:this,__source:{fileName:_jsxFileName,lineNumber:24,columnNumber:7}}),_react.default.createElement(_reactNative.SafeAreaView,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:34,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',borderWidth:1,borderColor:'#EF4123',borderRadius:30,marginHorizontal:16,marginTop:16,marginBottom:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:35,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:46,columnNumber:11}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:_store.default.tab===1?['#FF7A00','#EF4123']:['#FFFFFF','#FFFFFF'],style:{alignItems:'center',borderRadius:30,paddingVertical:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:47,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:_store.default.tab===1?'#FFFFFF':'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:59,columnNumber:15}},"1. C\u1EADp nh\u1EADt th\xF4ng tin"))),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:68,columnNumber:11}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:_store.default.tab===2?['#FF7A00','#EF4123']:['#FFFFFF','#FFFFFF'],style:{alignItems:'center',borderRadius:30,paddingVertical:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:73,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:_store.default.tab===2?'#FFFFFF':'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:85,columnNumber:15}},"2. Upload ch\u1EE9ng t\u1EEB")))),_react.default.createElement(_mobxReactLite.Observer,{__self:this,__source:{fileName:_jsxFileName,lineNumber:95,columnNumber:9}},function(){return _react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:97,columnNumber:13}},tab===1?_react.default.createElement(_updateInfo.UpdateInfo,{loan:loan,callback:function callback(value){return setTab(value);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:99,columnNumber:17}}):_react.default.createElement(_updateDocument.UpdateDocument,{loan:loan,__self:_this,__source:{fileName:_jsxFileName,lineNumber:101,columnNumber:17}}));})));});
//# sourceMappingURL=index.js.map