react-native-timacare 1.0.14 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/screens/digital-lending/Step6.js +1 -1
- package/lib/commonjs/screens/digital-lending/Step6.js.flow +3 -4
- package/lib/commonjs/screens/digital-lending/Step6.js.map +1 -1
- package/lib/commonjs/screens/quick-submit/index.js +1 -1
- package/lib/commonjs/screens/quick-submit/index.js.flow +4 -8
- package/lib/commonjs/screens/quick-submit/index.js.map +1 -1
- package/lib/module/screens/digital-lending/Step6.js +1 -1
- package/lib/module/screens/digital-lending/Step6.js.map +1 -1
- package/lib/module/screens/quick-submit/index.js +1 -1
- package/lib/module/screens/quick-submit/index.js.map +1 -1
- package/lib/typescript/screens/digital-lending/Step6.d.ts.map +1 -1
- package/lib/typescript/screens/quick-submit/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/screens/digital-lending/Step6.tsx +3 -4
- package/src/screens/quick-submit/index.tsx +4 -8
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Step6=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _native=require("@react-navigation/native");var _mobxReactLite=require("mobx-react-lite");var _reactNative=require("react-native");var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _icons=require("../../assets/icons");var _MText=require("../../components/MText");var _store=_interopRequireDefault(require("./store"));var _navigation=require("../../navigation");var _reactNativeModal=_interopRequireDefault(require("react-native-modal"));var _jsxFileName="/Users/quangduc/Documents/Tima/tima-care-v2/src/screens/digital-lending/Step6.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}var Step6=exports.Step6=(0,_mobxReactLite.observer)(function Step6(){var navigation=(0,_native.useNavigation)();var _useState=(0,_react.useState)(1),_useState2=(0,_slicedToArray2.default)(_useState,2),check=_useState2[0],setCheck=_useState2[1];var _useState3=(0,_react.useState)(null),_useState4=(0,_slicedToArray2.default)(_useState3,2),photo=_useState4[0],setPhoto=_useState4[1];var _useState5=(0,_react.useState)(false),_useState6=(0,_slicedToArray2.default)(_useState5,2),showModal=_useState6[0],setShowModal=_useState6[1];var _useState7=(0,_react.useState)(null),_useState8=(0,_slicedToArray2.default)(_useState7,2),backPhoto=_useState8[0],setBackPhoto=_useState8[1];var _useState9=(0,_react.useState)(1),_useState10=(0,_slicedToArray2.default)(_useState9,2),step=_useState10[0],setStep=_useState10[1];return _react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:39,columnNumber:5}},_react.default.createElement(_reactNative.ScrollView,{style:{paddingHorizontal:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:40,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',alignItems:'center',paddingVertical:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:41,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{width:40,height:40,borderRadius:40,alignItems:'center',justifyContent:'center',shadowRadius:40,backgroundColor:'#FFF3E9',borderWidth:1,borderColor:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:49,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{fontWeight:'bold',color:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:62,columnNumber:13}},"01")),_react.default.createElement(_reactNative.View,{style:{width:40,height:40,borderRadius:40,alignItems:'center',justifyContent:'center',shadowRadius:40,backgroundColor:'#FFF3E9',borderWidth:1,borderColor:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:64,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'#FF8E4F',fontWeight:'bold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:77,columnNumber:13}},"02")),_react.default.createElement(_reactNative.View,{style:{width:40,height:40,borderRadius:40,alignItems:'center',justifyContent:'center',shadowRadius:40,backgroundColor:'#FFF3E9',borderWidth:1,borderColor:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:79,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'#FF8E4F',fontWeight:'bold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:92,columnNumber:13}},"03")),_react.default.createElement(_reactNative.View,{style:{width:40,height:40,borderRadius:40,alignItems:'center',justifyContent:'center',shadowRadius:40,backgroundColor:'#FFF3E9',borderWidth:1,borderColor:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:94,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'#FF8E4F',fontWeight:'bold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:107,columnNumber:13}},"04")),_react.default.createElement(_reactNative.View,{style:{width:40,height:40,borderRadius:40,alignItems:'center',justifyContent:'center',shadowRadius:40,backgroundColor:'#FFF3E9',borderWidth:1,borderColor:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:109,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'#FF8E4F',fontWeight:'bold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:122,columnNumber:13}},"05")),_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{width:40,height:40,borderRadius:40,alignItems:'center',justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:124,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{fontWeight:'bold',color:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:134,columnNumber:13}},"06")),_react.default.createElement(_icons.Line2Icon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:136,columnNumber:11}})),_react.default.createElement(_MText.MText,{style:{fontWeight:'bold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:138,columnNumber:9}},"TH\xD4NG TIN C\xC0 V\u1EB8T XE"),_react.default.createElement(_reactNative.View,{style:{marginVertical:8,borderWidth:1,borderRadius:8,borderColor:'#EB5757',padding:12,flexDirection:'row'},__self:this,__source:{fileName:_jsxFileName,lineNumber:139,columnNumber:9}},_react.default.createElement(_icons.ErrorIcon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:149,columnNumber:11}}),_react.default.createElement(_MText.MText,{style:{fontSize:12,flex:1,marginLeft:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:150,columnNumber:11}},"Cung c\u1EA5p h\xECnh \u1EA3nh \u0111\u0103ng k\xFD xe l\xE0 \u0111i\u1EC1u ki\u1EC7n b\u1EAFt bu\u1ED9c, b\u1EA1n vui l\xF2ng cung c\u1EA5p h\xECnh \u1EA3nh \u0111\u0103ng k\xFD xe \u0111\u1EC3 \u0111\u01A1n \u0111\u01B0\u1EE3c \u0111\u1EA9y \u0111i nhanh h\u01A1n.")),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#BDBDBD',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:155,columnNumber:9}}),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:156,columnNumber:9}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return setCheck(1);},__self:this,__source:{fileName:_jsxFileName,lineNumber:157,columnNumber:11}},check===1?_react.default.createElement(_icons.Check2Icon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:158,columnNumber:28}}):_react.default.createElement(_icons.Check1Icon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:158,columnNumber:45}})),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:160,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:161,columnNumber:13}},"T\xF4i x\xE1c nh\u1EADn \u0111ang gi\u1EEF \u0111\u0103ng k\xFD xe c\u1EE7a m\xECnh"),check===1&&_react.default.createElement(_reactNative.View,{style:{marginTop:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:165,columnNumber:15}},photo&&_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between'},__self:this,__source:{fileName:_jsxFileName,lineNumber:167,columnNumber:19}},_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:173,columnNumber:21}},_react.default.createElement(_reactNative.Image,{source:{uri:photo},style:{width:_reactNative.Dimensions.get('window').width/2-40,height:(_reactNative.Dimensions.get('window').width-120)*216/580,borderWidth:8,borderRadius:6},__self:this,__source:{fileName:_jsxFileName,lineNumber:174,columnNumber:23}}),photo&&_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:186,columnNumber:25}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push(_navigation.ScreenNames.Camera,{front:false,callback:function callback(photo){var _digitalLendingStore$;var formData=new FormData();formData.append('loanbriefId',_store.default==null?void 0:(_digitalLendingStore$=_store.default.data)==null?void 0:_digitalLendingStore$.loanBriefId);formData.append('TypeDocumentId',314);formData.append('image',{uri:photo,type:'image/jpg',name:'image.jpg'});_store.default.uploadCavet(formData,function(){setPhoto(photo);});}});},style:{flexDirection:'row',alignItems:'center',padding:8,borderWidth:1,borderRadius:6,borderColor:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:192,columnNumber:27}},_react.default.createElement(_icons.IConCamera,{__self:this,__source:{fileName:_jsxFileName,lineNumber:226,columnNumber:29}}),_react.default.createElement(_MText.MText,{style:{color:'#FF8E4F',marginLeft:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:227,columnNumber:29}},"Ch\u1EE5p l\u1EA1i m\u1EB7t tr\u01B0\u1EDBc")))),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:234,columnNumber:21}},_react.default.createElement(_reactNative.Image,{source:{uri:backPhoto},style:{width:_reactNative.Dimensions.get('window').width/2-40,height:(_reactNative.Dimensions.get('window').width-120)*216/580,borderWidth:8,borderRadius:6},__self:this,__source:{fileName:_jsxFileName,lineNumber:235,columnNumber:23}}),backPhoto&&_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:247,columnNumber:25}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push(_navigation.ScreenNames.Camera,{front:false,callback:function callback(photo){var _digitalLendingStore$2;var formData=new FormData();formData.append('loanbriefId',_store.default==null?void 0:(_digitalLendingStore$2=_store.default.data)==null?void 0:_digitalLendingStore$2.loanBriefId);formData.append('TypeDocumentId',314);formData.append('image',{uri:photo,type:'image/jpg',name:'image.jpg'});_store.default.uploadCavet(formData,function(){setBackPhoto(photo);});}});},style:{flexDirection:'row',alignItems:'center',padding:8,borderWidth:1,borderRadius:6,borderColor:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:248,columnNumber:27}},_react.default.createElement(_icons.IConCamera,{__self:this,__source:{fileName:_jsxFileName,lineNumber:282,columnNumber:29}}),_react.default.createElement(_MText.MText,{style:{color:'#FF8E4F',marginLeft:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:283,columnNumber:29}},"Ch\u1EE5p l\u1EA1i m\u1EB7t sau"))))),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:292,columnNumber:17}},(photo===null||backPhoto===null)&&_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push(_navigation.ScreenNames.Camera,{front:false,callback:function callback(photo){var _digitalLendingStore$3;var formData=new FormData();formData.append('loanbriefId',_store.default==null?void 0:(_digitalLendingStore$3=_store.default.data)==null?void 0:_digitalLendingStore$3.loanBriefId);formData.append('TypeDocumentId',314);formData.append('image',{uri:photo,type:'image/jpg',name:'image.jpg'});_store.default.uploadCavet(formData,function(){setPhoto(photo);setShowModal(true);});}});},style:{flexDirection:'row',alignItems:'center',padding:8,borderWidth:1,borderRadius:6,borderColor:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:294,columnNumber:21}},_react.default.createElement(_icons.IConCamera,{__self:this,__source:{fileName:_jsxFileName,lineNumber:326,columnNumber:23}}),_react.default.createElement(_MText.MText,{style:{color:'#FF8E4F',marginLeft:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:327,columnNumber:23}},"Ch\u1EE5p \u1EA3nh \u0111\u0103ng k\xFD xe")))))),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:337,columnNumber:9}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setCheck(2);setPhoto(null);setBackPhoto(null);},__self:this,__source:{fileName:_jsxFileName,lineNumber:338,columnNumber:11}},check===2?_react.default.createElement(_icons.Check2Icon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:345,columnNumber:28}}):_react.default.createElement(_icons.Check1Icon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:345,columnNumber:45}})),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:347,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:348,columnNumber:13}},"\u0110\u0103ng k\xFD xe c\u1EE7a t\xF4i hi\u1EC7n \u0111ang \u0111\u01B0\u1EE3c Tima gi\u1EEF")))),_react.default.createElement(_reactNative.View,{style:(0,_extends2.default)({backgroundColor:'white',shadowOffset:{width:2,height:1}},Platform.select({ios:{shadowColor:'rgba(0, 0, 0, 0.10)',shadowOpacity:0.2},android:{elevation:10}}),{paddingTop:12,paddingHorizontal:12,flexDirection:'row',paddingBottom:16,justifyContent:'space-between',alignItems:'center'}),__self:this,__source:{fileName:_jsxFileName,lineNumber:354,columnNumber:7}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return _store.default.step=5;},style:{paddingHorizontal:12,paddingVertical:8,borderRadius:40,flexDirection:'row',alignItems:'center',borderWidth:1,borderColor:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:378,columnNumber:9}},_react.default.createElement(_icons.Back2Icon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:390,columnNumber:11}}),_react.default.createElement(_MText.MText,{style:{marginLeft:5,color:'#FF8E4F',fontSize:16,fontWeight:'500'},__self:this,__source:{fileName:_jsxFileName,lineNumber:391,columnNumber:11}},"Tr\u1EDF l\u1EA1i")),_react.default.createElement(_icons.StepIcon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:402,columnNumber:9}}),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){_reactNative.Alert.alert('Vui lòng xác nhận lại','Những thông tin đã đúng với thông tin của bạn chưa?',[{text:'Xác nhận',onPress:function onPress(){_store.default.uploadLoanReborrow(_store.default.body,function(){_reactNative.Alert.alert('Cập nhật thông tin thành công','',[{text:'Đồng ý',onPress:function onPress(){navigation.pop();_store.default.clear();}}]);});}},{text:'Huỷ'}]);},disabled:check===1&&photo===null?true:false,__self:this,__source:{fileName:_jsxFileName,lineNumber:403,columnNumber:9}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:check===1&&photo===null?['#E0E0E0','#E0E0E0']:['#FF8E4F','#EF592E'],style:{paddingHorizontal:15,paddingVertical:8,borderRadius:40,flexDirection:'row',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:436,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:16,fontWeight:'500',marginRight:5},__self:this,__source:{fileName:_jsxFileName,lineNumber:450,columnNumber:13}},"L\u01B0u"),_react.default.createElement(_icons.NextIcon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:460,columnNumber:13}})))),_react.default.createElement(_reactNativeModal.default,{backdropColor:'rgba(153, 153, 153, 0.60)',isVisible:showModal,style:{justifyContent:'flex-end',margin:0},__self:this,__source:{fileName:_jsxFileName,lineNumber:464,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{backgroundColor:'white',borderTopRightRadius:30,borderTopLeftRadius:30,paddingHorizontal:16,borderTopColor:'#FF8E4F',borderTopWidth:4},__self:this,__source:{fileName:_jsxFileName,lineNumber:472,columnNumber:9}},_react.default.createElement(_MText.MText,{style:{fontSize:16,fontWeight:'bold',textAlign:'center',marginTop:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:482,columnNumber:11}},"Ki\u1EC3m tra l\u1EA1i m\u1EB7t tr\u01B0\u1EDBc \u0110KX"),_react.default.createElement(_MText.MText,{style:{fontSize:13,textAlign:'center',color:'#828282'},__self:this,__source:{fileName:_jsxFileName,lineNumber:492,columnNumber:11}},"Vui l\xF2ng x\xE1c nh\u1EADn \u1EA3nh b\u1EA1n ch\u1EE5p \u0111\xE3 \u0111\xFAng v\u1EDBi y\xEAu c\u1EA7u \u0111\u1EC3 tr\xE1nh tr\u01B0\u1EDDng h\u1EE3p ph\u1EA3i ch\u1EE5p l\u1EA1i."),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'center',marginTop:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:502,columnNumber:11}},step===1?_react.default.createElement(_reactNative.Image,{source:{uri:photo},style:{width:_reactNative.Dimensions.get('window').width-150,height:(_reactNative.Dimensions.get('window').width-120)*216/360,borderWidth:8,borderRadius:6},__self:this,__source:{fileName:_jsxFileName,lineNumber:510,columnNumber:15}}):_react.default.createElement(_reactNative.Image,{source:{uri:backPhoto},style:{width:_reactNative.Dimensions.get('window').width-150,height:(_reactNative.Dimensions.get('window').width-120)*216/360,borderWidth:8,borderRadius:6},__self:this,__source:{fileName:_jsxFileName,lineNumber:520,columnNumber:15}})),step===1?_react.default.createElement(_reactNative.TouchableOpacity,{style:{marginTop:12},onPress:function onPress(){setShowModal(false);navigation.push(_navigation.ScreenNames.Camera,{front:false,callback:function callback(photo){var _digitalLendingStore$4;var formData=new FormData();formData.append('loanbriefId',_store.default==null?void 0:(_digitalLendingStore$4=_store.default.data)==null?void 0:_digitalLendingStore$4.loanBriefId);formData.append('TypeDocumentId',314);formData.append('image',{uri:photo,type:'image/jpg',name:'image.jpg'});_store.default.uploadCavet(formData,function(){setPhoto(photo);setShowModal(true);});}});},__self:this,__source:{fileName:_jsxFileName,lineNumber:532,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'#EF592E',textAlign:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:558,columnNumber:15}},"Ch\u1EE5p l\u1EA1i m\u1EB7t tr\u01B0\u1EDBc")):_react.default.createElement(_reactNative.TouchableOpacity,{style:{marginTop:12},onPress:function onPress(){setShowModal(false);navigation.push(_navigation.ScreenNames.Camera,{front:false,callback:function callback(photo){var _digitalLendingStore$5;var formData=new FormData();formData.append('loanbriefId',_store.default==null?void 0:(_digitalLendingStore$5=_store.default.data)==null?void 0:_digitalLendingStore$5.loanBriefId);formData.append('TypeDocumentId',314);formData.append('image',{uri:photo,type:'image/jpg',name:'image.jpg'});_store.default.uploadCavet(formData,function(){setBackPhoto(photo);setShowModal(true);});}});},__self:this,__source:{fileName:_jsxFileName,lineNumber:563,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'#EF592E',textAlign:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:589,columnNumber:15}},"Ch\u1EE5p l\u1EA1i m\u1EB7t sau")),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){if(step===1){setStep(2);navigation.push(_navigation.ScreenNames.Camera,{front:false,callback:function callback(photo){var _digitalLendingStore$6;var formData=new FormData();formData.append('loanbriefId',_store.default==null?void 0:(_digitalLendingStore$6=_store.default.data)==null?void 0:_digitalLendingStore$6.loanBriefId);formData.append('TypeDocumentId',314);formData.append('image',{uri:photo,type:'image/jpg',name:'image.jpg'});_store.default.uploadCavet(formData,function(){setBackPhoto(photo);setShowModal(true);});}});}else{setShowModal(false);}},__self:this,__source:{fileName:_jsxFileName,lineNumber:594,columnNumber:11}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{paddingHorizontal:15,paddingVertical:8,borderRadius:40,flexDirection:'row',alignItems:'center',justifyContent:'center',marginVertical:20},__self:this,__source:{fileName:_jsxFileName,lineNumber:623,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:16,fontWeight:'500'},__self:this,__source:{fileName:_jsxFileName,lineNumber:635,columnNumber:15}},"Ti\u1EBFp t\u1EE5c"))))));});
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Step6=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _native=require("@react-navigation/native");var _mobxReactLite=require("mobx-react-lite");var _reactNative=require("react-native");var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _icons=require("../../assets/icons");var _MText=require("../../components/MText");var _store=_interopRequireDefault(require("./store"));var _navigation=require("../../navigation");var _reactNativeModal=_interopRequireDefault(require("react-native-modal"));var _jsxFileName="/Users/quangduc/Documents/Tima/tima-care-v2/src/screens/digital-lending/Step6.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}var Step6=exports.Step6=(0,_mobxReactLite.observer)(function Step6(){var navigation=(0,_native.useNavigation)();var _useState=(0,_react.useState)(1),_useState2=(0,_slicedToArray2.default)(_useState,2),check=_useState2[0],setCheck=_useState2[1];var _useState3=(0,_react.useState)(null),_useState4=(0,_slicedToArray2.default)(_useState3,2),photo=_useState4[0],setPhoto=_useState4[1];var _useState5=(0,_react.useState)(false),_useState6=(0,_slicedToArray2.default)(_useState5,2),showModal=_useState6[0],setShowModal=_useState6[1];var _useState7=(0,_react.useState)(null),_useState8=(0,_slicedToArray2.default)(_useState7,2),backPhoto=_useState8[0],setBackPhoto=_useState8[1];var _useState9=(0,_react.useState)(1),_useState10=(0,_slicedToArray2.default)(_useState9,2),step=_useState10[0],setStep=_useState10[1];return _react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:39,columnNumber:5}},_react.default.createElement(_reactNative.ScrollView,{style:{paddingHorizontal:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:40,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',alignItems:'center',paddingVertical:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:41,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{width:40,height:40,borderRadius:40,alignItems:'center',justifyContent:'center',shadowRadius:40,backgroundColor:'#FFF3E9',borderWidth:1,borderColor:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:49,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{fontWeight:'bold',color:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:62,columnNumber:13}},"01")),_react.default.createElement(_reactNative.View,{style:{width:40,height:40,borderRadius:40,alignItems:'center',justifyContent:'center',shadowRadius:40,backgroundColor:'#FFF3E9',borderWidth:1,borderColor:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:64,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'#FF8E4F',fontWeight:'bold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:77,columnNumber:13}},"02")),_react.default.createElement(_reactNative.View,{style:{width:40,height:40,borderRadius:40,alignItems:'center',justifyContent:'center',shadowRadius:40,backgroundColor:'#FFF3E9',borderWidth:1,borderColor:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:79,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'#FF8E4F',fontWeight:'bold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:92,columnNumber:13}},"03")),_react.default.createElement(_reactNative.View,{style:{width:40,height:40,borderRadius:40,alignItems:'center',justifyContent:'center',shadowRadius:40,backgroundColor:'#FFF3E9',borderWidth:1,borderColor:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:94,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'#FF8E4F',fontWeight:'bold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:107,columnNumber:13}},"04")),_react.default.createElement(_reactNative.View,{style:{width:40,height:40,borderRadius:40,alignItems:'center',justifyContent:'center',shadowRadius:40,backgroundColor:'#FFF3E9',borderWidth:1,borderColor:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:109,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'#FF8E4F',fontWeight:'bold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:122,columnNumber:13}},"05")),_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{width:40,height:40,borderRadius:40,alignItems:'center',justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:124,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{fontWeight:'bold',color:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:134,columnNumber:13}},"06")),_react.default.createElement(_icons.Line2Icon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:136,columnNumber:11}})),_react.default.createElement(_MText.MText,{style:{fontWeight:'bold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:138,columnNumber:9}},"TH\xD4NG TIN C\xC0 V\u1EB8T XE"),_react.default.createElement(_reactNative.View,{style:{marginVertical:8,borderWidth:1,borderRadius:8,borderColor:'#EB5757',padding:12,flexDirection:'row'},__self:this,__source:{fileName:_jsxFileName,lineNumber:139,columnNumber:9}},_react.default.createElement(_icons.ErrorIcon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:149,columnNumber:11}}),_react.default.createElement(_MText.MText,{style:{fontSize:12,flex:1,marginLeft:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:150,columnNumber:11}},"Cung c\u1EA5p h\xECnh \u1EA3nh \u0111\u0103ng k\xFD xe l\xE0 \u0111i\u1EC1u ki\u1EC7n b\u1EAFt bu\u1ED9c, b\u1EA1n vui l\xF2ng cung c\u1EA5p h\xECnh \u1EA3nh \u0111\u0103ng k\xFD xe \u0111\u1EC3 \u0111\u01A1n \u0111\u01B0\u1EE3c \u0111\u1EA9y \u0111i nhanh h\u01A1n.")),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#BDBDBD',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:155,columnNumber:9}}),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:156,columnNumber:9}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return setCheck(1);},__self:this,__source:{fileName:_jsxFileName,lineNumber:157,columnNumber:11}},check===1?_react.default.createElement(_icons.Check2Icon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:158,columnNumber:28}}):_react.default.createElement(_icons.Check1Icon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:158,columnNumber:45}})),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:160,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:161,columnNumber:13}},"T\xF4i x\xE1c nh\u1EADn \u0111ang gi\u1EEF \u0111\u0103ng k\xFD xe c\u1EE7a m\xECnh"),check===1&&_react.default.createElement(_reactNative.View,{style:{marginTop:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:165,columnNumber:15}},photo&&_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between'},__self:this,__source:{fileName:_jsxFileName,lineNumber:167,columnNumber:19}},_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:173,columnNumber:21}},_react.default.createElement(_reactNative.Image,{source:{uri:photo},style:{width:_reactNative.Dimensions.get('window').width/2-40,height:(_reactNative.Dimensions.get('window').width-120)*216/580,borderWidth:8,borderRadius:6},__self:this,__source:{fileName:_jsxFileName,lineNumber:174,columnNumber:23}}),photo&&_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:186,columnNumber:25}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push(_navigation.ScreenNames.Camera,{front:false,callback:function callback(photo){var _digitalLendingStore$;var formData=new FormData();formData.append('loanbriefId',_store.default==null?void 0:(_digitalLendingStore$=_store.default.data)==null?void 0:_digitalLendingStore$.loanBriefId);formData.append('TypeDocumentId',314);formData.append('image',{uri:photo,type:'image/jpg',name:'image.jpg'});_store.default.uploadCavet(formData,function(){setPhoto(photo);});}});},style:{flexDirection:'row',alignItems:'center',padding:8,borderWidth:1,borderRadius:6,borderColor:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:192,columnNumber:27}},_react.default.createElement(_icons.IConCamera,{__self:this,__source:{fileName:_jsxFileName,lineNumber:226,columnNumber:29}}),_react.default.createElement(_MText.MText,{style:{color:'#FF8E4F',marginLeft:2},__self:this,__source:{fileName:_jsxFileName,lineNumber:227,columnNumber:29}},"Ch\u1EE5p l\u1EA1i m\u1EB7t tr\u01B0\u1EDBc")))),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:5},__self:this,__source:{fileName:_jsxFileName,lineNumber:234,columnNumber:21}},_react.default.createElement(_reactNative.Image,{source:{uri:backPhoto},style:{width:_reactNative.Dimensions.get('window').width/2-40,height:(_reactNative.Dimensions.get('window').width-120)*216/580,borderWidth:8,borderRadius:6},__self:this,__source:{fileName:_jsxFileName,lineNumber:235,columnNumber:23}}),backPhoto&&_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:247,columnNumber:25}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push(_navigation.ScreenNames.Camera,{front:false,callback:function callback(photo){var _digitalLendingStore$2;var formData=new FormData();formData.append('loanbriefId',_store.default==null?void 0:(_digitalLendingStore$2=_store.default.data)==null?void 0:_digitalLendingStore$2.loanBriefId);formData.append('TypeDocumentId',314);formData.append('image',{uri:photo,type:'image/jpg',name:'image.jpg'});_store.default.uploadCavet(formData,function(){setBackPhoto(photo);});}});},style:{flexDirection:'row',alignItems:'center',padding:8,borderWidth:1,borderRadius:6,borderColor:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:248,columnNumber:27}},_react.default.createElement(_icons.IConCamera,{__self:this,__source:{fileName:_jsxFileName,lineNumber:282,columnNumber:29}}),_react.default.createElement(_MText.MText,{style:{color:'#FF8E4F',marginLeft:2},__self:this,__source:{fileName:_jsxFileName,lineNumber:283,columnNumber:29}},"Ch\u1EE5p l\u1EA1i m\u1EB7t sau"))))),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:292,columnNumber:17}},(photo===null||backPhoto===null)&&_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push(_navigation.ScreenNames.Camera,{front:false,callback:function callback(photo){var _digitalLendingStore$3;var formData=new FormData();formData.append('loanbriefId',_store.default==null?void 0:(_digitalLendingStore$3=_store.default.data)==null?void 0:_digitalLendingStore$3.loanBriefId);formData.append('TypeDocumentId',314);formData.append('image',{uri:photo,type:'image/jpg',name:'image.jpg'});_store.default.uploadCavet(formData,function(){setPhoto(photo);setShowModal(true);});}});},style:{flexDirection:'row',alignItems:'center',padding:8,borderWidth:1,borderRadius:6,borderColor:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:294,columnNumber:21}},_react.default.createElement(_icons.IConCamera,{__self:this,__source:{fileName:_jsxFileName,lineNumber:326,columnNumber:23}}),_react.default.createElement(_MText.MText,{style:{color:'#FF8E4F',marginLeft:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:327,columnNumber:23}},"Ch\u1EE5p \u1EA3nh \u0111\u0103ng k\xFD xe")))))),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:337,columnNumber:9}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setCheck(2);setPhoto(null);setBackPhoto(null);},__self:this,__source:{fileName:_jsxFileName,lineNumber:338,columnNumber:11}},check===2?_react.default.createElement(_icons.Check2Icon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:345,columnNumber:28}}):_react.default.createElement(_icons.Check1Icon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:345,columnNumber:45}})),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:347,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:348,columnNumber:13}},"\u0110\u0103ng k\xFD xe c\u1EE7a t\xF4i hi\u1EC7n \u0111ang \u0111\u01B0\u1EE3c Tima gi\u1EEF")))),_react.default.createElement(_reactNative.View,{style:(0,_extends2.default)({backgroundColor:'white',shadowOffset:{width:2,height:1}},Platform.select({ios:{shadowColor:'rgba(0, 0, 0, 0.10)',shadowOpacity:0.2},android:{elevation:10}}),{paddingTop:12,paddingHorizontal:12,flexDirection:'row',paddingBottom:16,justifyContent:'space-between',alignItems:'center'}),__self:this,__source:{fileName:_jsxFileName,lineNumber:354,columnNumber:7}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return _store.default.step=5;},style:{paddingHorizontal:12,paddingVertical:8,borderRadius:40,flexDirection:'row',alignItems:'center',borderWidth:1,borderColor:'#FF8E4F'},__self:this,__source:{fileName:_jsxFileName,lineNumber:378,columnNumber:9}},_react.default.createElement(_icons.Back2Icon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:390,columnNumber:11}}),_react.default.createElement(_MText.MText,{style:{marginLeft:5,color:'#FF8E4F',fontSize:16,fontWeight:'500'},__self:this,__source:{fileName:_jsxFileName,lineNumber:391,columnNumber:11}},"Tr\u1EDF l\u1EA1i")),_react.default.createElement(_icons.StepIcon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:402,columnNumber:9}}),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){_reactNative.Alert.alert('Vui lòng xác nhận lại','Những thông tin đã đúng với thông tin của bạn chưa?',[{text:'Xác nhận',onPress:function onPress(){_store.default.uploadLoanReborrow(_store.default.body,function(){_reactNative.Alert.alert('Cập nhật thông tin thành công','',[{text:'Đồng ý',onPress:function onPress(){navigation.pop();_store.default.clear();}}]);});}},{text:'Huỷ'}]);},disabled:check===1&&photo===null?true:false,__self:this,__source:{fileName:_jsxFileName,lineNumber:403,columnNumber:9}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:check===1&&photo===null?['#E0E0E0','#E0E0E0']:['#FF8E4F','#EF592E'],style:{paddingHorizontal:15,paddingVertical:8,borderRadius:40,flexDirection:'row',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:436,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:16,fontWeight:'500',marginRight:5},__self:this,__source:{fileName:_jsxFileName,lineNumber:450,columnNumber:13}},"L\u01B0u"),_react.default.createElement(_icons.NextIcon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:460,columnNumber:13}})))),_react.default.createElement(_reactNativeModal.default,{backdropColor:'rgba(153, 153, 153, 0.60)',isVisible:showModal,style:{justifyContent:'flex-end',margin:0},__self:this,__source:{fileName:_jsxFileName,lineNumber:464,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{backgroundColor:'white',borderTopRightRadius:30,borderTopLeftRadius:30,paddingHorizontal:16,borderTopColor:'#FF8E4F',borderTopWidth:4},__self:this,__source:{fileName:_jsxFileName,lineNumber:472,columnNumber:9}},_react.default.createElement(_MText.MText,{style:{fontSize:16,fontWeight:'bold',textAlign:'center',marginTop:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:482,columnNumber:11}},"Ki\u1EC3m tra l\u1EA1i m\u1EB7t tr\u01B0\u1EDBc \u0110KX"),_react.default.createElement(_MText.MText,{style:{fontSize:13,textAlign:'center',color:'#828282'},__self:this,__source:{fileName:_jsxFileName,lineNumber:492,columnNumber:11}},"Vui l\xF2ng x\xE1c nh\u1EADn \u1EA3nh b\u1EA1n ch\u1EE5p \u0111\xE3 \u0111\xFAng v\u1EDBi y\xEAu c\u1EA7u \u0111\u1EC3 tr\xE1nh tr\u01B0\u1EDDng h\u1EE3p ph\u1EA3i ch\u1EE5p l\u1EA1i."),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'center',marginTop:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:502,columnNumber:11}},step===1?_react.default.createElement(_reactNative.Image,{source:{uri:photo},style:{width:_reactNative.Dimensions.get('window').width-150,height:(_reactNative.Dimensions.get('window').width-120)*216/360,borderWidth:8,borderRadius:6},__self:this,__source:{fileName:_jsxFileName,lineNumber:510,columnNumber:15}}):_react.default.createElement(_reactNative.Image,{source:{uri:backPhoto},style:{width:_reactNative.Dimensions.get('window').width-150,height:(_reactNative.Dimensions.get('window').width-120)*216/360,borderWidth:8,borderRadius:6},__self:this,__source:{fileName:_jsxFileName,lineNumber:520,columnNumber:15}})),step===1?_react.default.createElement(_reactNative.TouchableOpacity,{style:{marginTop:12},onPress:function onPress(){setShowModal(false);navigation.push(_navigation.ScreenNames.Camera,{front:false,callback:function callback(photo){var _digitalLendingStore$4;var formData=new FormData();formData.append('loanbriefId',_store.default==null?void 0:(_digitalLendingStore$4=_store.default.data)==null?void 0:_digitalLendingStore$4.loanBriefId);formData.append('TypeDocumentId',314);formData.append('image',{uri:photo,type:'image/jpg',name:'image.jpg'});_store.default.uploadCavet(formData,function(){setPhoto(photo);setShowModal(true);});}});},__self:this,__source:{fileName:_jsxFileName,lineNumber:532,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'#EF592E',textAlign:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:558,columnNumber:15}},"Ch\u1EE5p l\u1EA1i m\u1EB7t tr\u01B0\u1EDBc")):_react.default.createElement(_reactNative.TouchableOpacity,{style:{marginTop:12},onPress:function onPress(){setShowModal(false);navigation.push(_navigation.ScreenNames.Camera,{front:false,callback:function callback(photo){var _digitalLendingStore$5;var formData=new FormData();formData.append('loanbriefId',_store.default==null?void 0:(_digitalLendingStore$5=_store.default.data)==null?void 0:_digitalLendingStore$5.loanBriefId);formData.append('TypeDocumentId',314);formData.append('image',{uri:photo,type:'image/jpg',name:'image.jpg'});_store.default.uploadCavet(formData,function(){setBackPhoto(photo);setShowModal(true);});}});},__self:this,__source:{fileName:_jsxFileName,lineNumber:563,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'#EF592E',textAlign:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:589,columnNumber:15}},"Ch\u1EE5p l\u1EA1i m\u1EB7t sau")),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){if(step===1){setStep(2);navigation.push(_navigation.ScreenNames.Camera,{front:false,callback:function callback(photo){var _digitalLendingStore$6;var formData=new FormData();formData.append('loanbriefId',_store.default==null?void 0:(_digitalLendingStore$6=_store.default.data)==null?void 0:_digitalLendingStore$6.loanBriefId);formData.append('TypeDocumentId',314);formData.append('image',{uri:photo,type:'image/jpg',name:'image.jpg'});_store.default.uploadCavet(formData,function(){setBackPhoto(photo);});}});}else{setShowModal(false);}},__self:this,__source:{fileName:_jsxFileName,lineNumber:594,columnNumber:11}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{paddingHorizontal:15,paddingVertical:8,borderRadius:40,flexDirection:'row',alignItems:'center',justifyContent:'center',marginVertical:20},__self:this,__source:{fileName:_jsxFileName,lineNumber:622,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:16,fontWeight:'500'},__self:this,__source:{fileName:_jsxFileName,lineNumber:634,columnNumber:15}},"Ti\u1EBFp t\u1EE5c"))))));});
|
|
2
2
|
//# sourceMappingURL=Step6.js.map
|
|
@@ -224,14 +224,14 @@ export const Step6 = observer(function Step6() {
|
|
|
224
224
|
}}
|
|
225
225
|
>
|
|
226
226
|
<IConCamera />
|
|
227
|
-
<MText style={{ color: '#FF8E4F', marginLeft:
|
|
227
|
+
<MText style={{ color: '#FF8E4F', marginLeft: 2 }}>
|
|
228
228
|
Chụp lại mặt trước
|
|
229
229
|
</MText>
|
|
230
230
|
</TouchableOpacity>
|
|
231
231
|
</View>
|
|
232
232
|
)}
|
|
233
233
|
</View>
|
|
234
|
-
<View style={{ flex: 1 }}>
|
|
234
|
+
<View style={{ flex: 1, marginLeft: 5 }}>
|
|
235
235
|
<Image
|
|
236
236
|
source={{ uri: backPhoto }}
|
|
237
237
|
style={{
|
|
@@ -280,7 +280,7 @@ export const Step6 = observer(function Step6() {
|
|
|
280
280
|
}}
|
|
281
281
|
>
|
|
282
282
|
<IConCamera />
|
|
283
|
-
<MText style={{ color: '#FF8E4F', marginLeft:
|
|
283
|
+
<MText style={{ color: '#FF8E4F', marginLeft: 2 }}>
|
|
284
284
|
Chụp lại mặt sau
|
|
285
285
|
</MText>
|
|
286
286
|
</TouchableOpacity>
|
|
@@ -611,7 +611,6 @@ export const Step6 = observer(function Step6() {
|
|
|
611
611
|
});
|
|
612
612
|
digitalLendingStore.uploadCavet(formData, () => {
|
|
613
613
|
setBackPhoto(photo);
|
|
614
|
-
setShowModal(true);
|
|
615
614
|
});
|
|
616
615
|
},
|
|
617
616
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_native","_mobxReactLite","_reactNative","_reactNativeLinearGradient","_interopRequireDefault","_icons","_MText","_store","_navigation","_reactNativeModal","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","Step6","exports","observer","navigation","useNavigation","_useState","useState","_useState2","_slicedToArray2","check","setCheck","_useState3","_useState4","photo","setPhoto","_useState5","_useState6","showModal","setShowModal","_useState7","_useState8","backPhoto","setBackPhoto","_useState9","_useState10","step","setStep","createElement","View","style","flex","__self","__source","fileName","lineNumber","columnNumber","ScrollView","paddingHorizontal","flexDirection","justifyContent","alignItems","paddingVertical","width","height","borderRadius","shadowRadius","backgroundColor","borderWidth","borderColor","MText","fontWeight","color","colors","Line2Icon","marginVertical","padding","ErrorIcon","fontSize","marginLeft","marginTop","TouchableOpacity","onPress","Check2Icon","Check1Icon","Image","source","uri","Dimensions","push","ScreenNames","Camera","front","callback","_digitalLendingStore$","formData","FormData","append","digitalLendingStore","data","loanBriefId","type","name","uploadCavet","IConCamera","_digitalLendingStore$2","_digitalLendingStore$3","_extends2","shadowOffset","Platform","select","ios","shadowColor","shadowOpacity","android","elevation","paddingTop","paddingBottom","Back2Icon","StepIcon","Alert","alert","text","uploadLoanReborrow","body","pop","clear","disabled","marginRight","NextIcon","backdropColor","isVisible","margin","borderTopRightRadius","borderTopLeftRadius","borderTopColor","borderTopWidth","textAlign","_digitalLendingStore$4","_digitalLendingStore$5","_digitalLendingStore$6"],"sourceRoot":"../../../../src","sources":["screens/digital-lending/Step6.tsx"],"mappings":"6UACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,OAAA,CAAAD,OAAA,6BACA,IAAAE,cAAA,CAAAF,OAAA,oBACA,IAAAG,YAAA,CAAAH,OAAA,iBAQA,IAAAI,0BAAA,CAAAC,sBAAA,CAAAL,OAAA,kCACA,IAAAM,MAAA,CAAAN,OAAA,uBAWA,IAAAO,MAAA,CAAAP,OAAA,2BACA,IAAAQ,MAAA,CAAAH,sBAAA,CAAAL,OAAA,aACA,IAAAS,WAAA,CAAAT,OAAA,qBACA,IAAAU,iBAAA,CAAAL,sBAAA,CAAAL,OAAA,wBAAuC,IAAAW,YAAA,8FAAAC,yBAAAC,CAAA,wBAAAC,OAAA,iBAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAF,wBAAA,UAAAA,yBAAAC,CAAA,SAAAA,CAAA,CAAAG,CAAA,CAAAD,CAAA,IAAAF,CAAA,YAAAd,wBAAAc,CAAA,CAAAE,CAAA,MAAAA,CAAA,EAAAF,CAAA,EAAAA,CAAA,CAAAI,UAAA,QAAAJ,CAAA,WAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAA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CAAE,CAC/BvB,KAAK,CAAE,CACLQ,iBAAiB,CAAE,EAAE,CACrBI,eAAe,CAAE,CAAC,CAClBG,YAAY,CAAE,EAAE,CAChBN,aAAa,CAAE,KAAK,CACpBE,UAAU,CAAE,QAAQ,CACpBD,cAAc,CAAE,QAAQ,CACxBe,cAAc,CAAE,EAClB,CAAE,CAAAvB,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAAvD,YAAA,CAAAwD,UAAA,KAAAC,YAAA,MAEFtE,MAAA,CAAAoB,OAAA,CAAA0C,aAAA,CAACrD,MAAA,CAAA2E,KAAK,EACJpB,KAAK,CAAE,CACLsB,KAAK,CAAE,OAAO,CACdM,QAAQ,CAAE,EAAE,CACZP,UAAU,CAAE,KACd,CAAE,CAAAnB,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAAvD,YAAA,CAAAwD,UAAA,KAAAC,YAAA,MACH,oBAEM,CACO,CACA,CACd,CACD,CACH,CAAC,CAEX,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_native","_mobxReactLite","_reactNative","_reactNativeLinearGradient","_interopRequireDefault","_icons","_MText","_store","_navigation","_reactNativeModal","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","Step6","exports","observer","navigation","useNavigation","_useState","useState","_useState2","_slicedToArray2","check","setCheck","_useState3","_useState4","photo","setPhoto","_useState5","_useState6","showModal","setShowModal","_useState7","_useState8","backPhoto","setBackPhoto","_useState9","_useState10","step","setStep","createElement","View","style","flex","__self","__source","fileName","lineNumber","columnNumber","ScrollView","paddingHorizontal","flexDirection","justifyContent","alignItems","paddingVertical","width","height","borderRadius","shadowRadius","backgroundColor","borderWidth","borderColor","MText","fontWeight","color","colors","Line2Icon","marginVertical","padding","ErrorIcon","fontSize","marginLeft","marginTop","TouchableOpacity","onPress","Check2Icon","Check1Icon","Image","source","uri","Dimensions","push","ScreenNames","Camera","front","callback","_digitalLendingStore$","formData","FormData","append","digitalLendingStore","data","loanBriefId","type","name","uploadCavet","IConCamera","_digitalLendingStore$2","_digitalLendingStore$3","_extends2","shadowOffset","Platform","select","ios","shadowColor","shadowOpacity","android","elevation","paddingTop","paddingBottom","Back2Icon","StepIcon","Alert","alert","text","uploadLoanReborrow","body","pop","clear","disabled","marginRight","NextIcon","backdropColor","isVisible","margin","borderTopRightRadius","borderTopLeftRadius","borderTopColor","borderTopWidth","textAlign","_digitalLendingStore$4","_digitalLendingStore$5","_digitalLendingStore$6"],"sourceRoot":"../../../../src","sources":["screens/digital-lending/Step6.tsx"],"mappings":"6UACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,OAAA,CAAAD,OAAA,6BACA,IAAAE,cAAA,CAAAF,OAAA,oBACA,IAAAG,YAAA,CAAAH,OAAA,iBAQA,IAAAI,0BAAA,CAAAC,sBAAA,CAAAL,OAAA,kCACA,IAAAM,MAAA,CAAAN,OAAA,uBAWA,IAAAO,MAAA,CAAAP,OAAA,2BACA,IAAAQ,MAAA,CAAAH,sBAAA,CAAAL,OAAA,aACA,IAAAS,WAAA,CAAAT,OAAA,qBACA,IAAAU,iBAAA,CAAAL,sBAAA,CAAAL,OAAA,wBAAuC,IAAAW,YAAA,8FAAAC,yBAAAC,CAAA,wBAAAC,OAAA,iBAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAF,wBAAA,UAAAA,yBAAAC,CAAA,SAAAA,CAAA,CAAAG,CAAA,CAAAD,CAAA,IAAAF,CAAA,YAAAd,wBAAAc,CAAA,CAAAE,CAAA,MAAAA,CAAA,EAAAF,CAAA,EAAAA,CAAA,CAAAI,UAAA,QAAAJ,CAAA,WAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAK,OAAA,CAAAL,CAAA,MAAAG,CAAA,CAAAJ,wBAAA,CAAAG,CAAA,KAA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AE,CAAC,CAClBG,YAAY,CAAE,EAAE,CAChBN,aAAa,CAAE,KAAK,CACpBE,UAAU,CAAE,QAAQ,CACpBD,cAAc,CAAE,QAAQ,CACxBe,cAAc,CAAE,EAClB,CAAE,CAAAvB,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAAvD,YAAA,CAAAwD,UAAA,KAAAC,YAAA,MAEFtE,MAAA,CAAAoB,OAAA,CAAA0C,aAAA,CAACrD,MAAA,CAAA2E,KAAK,EACJpB,KAAK,CAAE,CACLsB,KAAK,CAAE,OAAO,CACdM,QAAQ,CAAE,EAAE,CACZP,UAAU,CAAE,KACd,CAAE,CAAAnB,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAAvD,YAAA,CAAAwD,UAAA,KAAAC,YAAA,MACH,oBAEM,CACO,CACA,CACd,CACD,CACH,CAAC,CAEX,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.QuickSubmit=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _native=require("@react-navigation/native");var _formik=require("formik");var _mobxReactLite=require("mobx-react-lite");var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _icons=require("../../assets/icons");var _keyboardspace=_interopRequireDefault(require("../../components/keyboardspace"));var _MText=require("../../components/MText");var _CommonStyles=require("../CommonStyles");var _theme=require("../../theme");var yup=_interopRequireWildcard(require("yup"));var _store=_interopRequireDefault(require("./store"));var _navigation=require("../../navigation");var _utils=require("../../utils");var _moment=_interopRequireDefault(require("moment"));var _CIMBLoading=_interopRequireDefault(require("../../components/CIMBLoading"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _reactNativeDatePicker=_interopRequireDefault(require("react-native-date-picker"));var _jsxFileName="/Users/quangduc/Documents/Tima/tima-care-v2/src/screens/quick-submit/index.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}var cardRegExp=/^(\b\d{12}\b|\b\d{9}\b)$/;var QuickSubmit=exports.QuickSubmit=(0,_mobxReactLite.observer)(function QuickSubmit(props){var _props$route4,_props$route4$params,_props$route4$params$,_props$route5,_props$route5$params,_props$route5$params$,_this=this;var navigation=(0,_native.useNavigation)();var ref=(0,_react.useRef)(null);var _useState=(0,_react.useState)(null),_useState2=(0,_slicedToArray2.default)(_useState,2),loan=_useState2[0],setLoan=_useState2[1];var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),showDatePicker=_useState4[0],setShowDatePicker=_useState4[1];var _useState5=(0,_react.useState)(0),_useState6=(0,_slicedToArray2.default)(_useState5,2),typePicker=_useState6[0],setTypePicker=_useState6[1];var _useState7=(0,_react.useState)(false),_useState8=(0,_slicedToArray2.default)(_useState7,2),isLoading=_useState8[0],setIsLoading=_useState8[1];(0,_react.useEffect)(function(){var _props$route,_props$route$params,_props$route$params$l;setIsLoading(true);_store.default.getBrandProduct();_store.default.getProvinces();_store.default.getDetailLoan(props==null?void 0:(_props$route=props.route)==null?void 0:(_props$route$params=_props$route.params)==null?void 0:(_props$route$params$l=_props$route$params.loan)==null?void 0:_props$route$params$l.id,function(data){setLoan(data);ref.current.setFieldValue('fullName',data!=null&&data.fullName?data==null?void 0:data.fullName:'');ref.current.setFieldValue('dob',data!=null&&data.dob?data==null?void 0:data.dob:'');ref.current.setFieldValue('phone',data!=null&&data.phone?data==null?void 0:data.phone:'');ref.current.setFieldValue('nationalCard',data!=null&&data.nationalId?data==null?void 0:data.nationalId:'');ref.current.setFieldValue('nationalCardDate',data!=null&&data.dateNationalId?data==null?void 0:data.dateNationalId:'');ref.current.setFieldValue('email',data!=null&&data.email?data==null?void 0:data.email:'');ref.current.setFieldValue('loanAmount',data!=null&&data.loanAmount?data==null?void 0:data.loanAmount:0);ref.current.setFieldValue('loanTime',data!=null&&data.loanTime?data==null?void 0:data.loanTime:'');ref.current.setFieldValue('salary',data!=null&&data.totalIncome?data==null?void 0:data.totalIncome:0);ref.current.setFieldValue('province',data!=null&&data.provinceId?{id:data==null?void 0:data.provinceId,name:data==null?void 0:data.provinceName}:null);ref.current.setFieldValue('brand',data!=null&&data.brandId?{id:data==null?void 0:data.brandId,name:data==null?void 0:data.brandName}:null);if(data!=null&&data.brandId){_store.default.getYearProduct(data==null?void 0:data.brandId);}ref.current.setFieldValue('year',data!=null&&data.yearProductBrand?{id:data==null?void 0:data.yearProductBrand,name:"N\u0103m "+(data==null?void 0:data.yearProductBrand)}:null);if(data!=null&&data.yearProductBrand){_store.default.getModelProduct(data==null?void 0:data.brandId,data==null?void 0:data.yearProductBrand);}ref.current.setFieldValue('model',data!=null&&data.productBrandId?{id:data==null?void 0:data.productBrandId,name:data==null?void 0:data.productBrandName}:null);ref.current.setFieldValue('occupation',data!=null&&data.jobNameCIMB?{id:data==null?void 0:data.jobCIMBId,name:data==null?void 0:data.jobNameCIMB}:null);ref.current.setFieldValue('productId',data==null?void 0:data.productId),ref.current.setFieldValue('vehiclesCar',data!=null&&data.vehiclesCar?data==null?void 0:data.vehiclesCar:''),ref.current.setFieldValue('yearCar',data!=null&&data.yearCar?String(data==null?void 0:data.yearCar):''),ref.current.setFieldValue('brandCar',data!=null&&data.brandCar?data==null?void 0:data.brandCar:'');setIsLoading(false);},function(){setIsLoading(false);});},[]);var onSubmit=function onSubmit(values){var _props$route2,_props$route2$params,_props$route2$params$,_values$brand,_values$model,_values$year,_props$route3,_props$route3$params,_props$route3$params$,_values$occupation;var body={id:props==null?void 0:(_props$route2=props.route)==null?void 0:(_props$route2$params=_props$route2.params)==null?void 0:(_props$route2$params$=_props$route2$params.loan)==null?void 0:_props$route2$params$.id,fullName:values.fullName,dob:(0,_moment.default)(values.dob).format('YYYY-MM-DD'),phone:values==null?void 0:values.phone,nationalId:values.nationalCard,dateNationalId:(0,_moment.default)(values.nationalCardDate).format('YYYY-MM-DD'),email:values.email?values.email:'',provinceId:loan==null?void 0:loan.provinceId,address:loan==null?void 0:loan.address,loanAmount:values==null?void 0:values.loanAmount,loanTime:values==null?void 0:values.loanTime,totalIncome:values==null?void 0:values.salary,brandId:(_values$brand=values.brand)==null?void 0:_values$brand.id,productBrandId:(_values$model=values.model)==null?void 0:_values$model.id,yearProductBrand:(_values$year=values.year)==null?void 0:_values$year.id,districtId:loan==null?void 0:loan.districtId,wardId:loan==null?void 0:loan.wardId,jobId:loan==null?void 0:loan.jobId,jobCIMBId:(props==null?void 0:(_props$route3=props.route)==null?void 0:(_props$route3$params=_props$route3.params)==null?void 0:(_props$route3$params$=_props$route3$params.loan)==null?void 0:_props$route3$params$.typeLoan)===4?values==null?void 0:(_values$occupation=values.occupation)==null?void 0:_values$occupation.id:loan==null?void 0:loan.jobCIMBId,productId:loan==null?void 0:loan.productId,brandCar:loan==null?void 0:loan.brandCar,yearCar:loan==null?void 0:loan.yearCar,vehiclesCar:loan==null?void 0:loan.vehiclesCar};_store.default.quickSubmit(body,function(){navigation.dispatch(_native.CommonActions.reset({index:1,routes:[{name:_navigation.ScreenNames.Main}]}));});};return _react.default.createElement(_reactNative.View,{style:{flex:1,backgroundColor:'#FFFFFF'},__self:this,__source:{fileName:_jsxFileName,lineNumber:185,columnNumber:5}},_react.default.createElement(_reactNative.SafeAreaView,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:186,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.alignCenter,{alignItems:'center',height:50,justifyContent:'center'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:187,columnNumber:9}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return navigation.dispatch(_native.CommonActions.reset({index:1,routes:[{name:_navigation.ScreenNames.Main}]}));},style:{width:40,height:40,position:'absolute',left:8,alignItems:'center',justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:193,columnNumber:11}},_react.default.createElement(_icons.IconBack,{fill:_theme.color.textHeader,__self:this,__source:{fileName:_jsxFileName,lineNumber:211,columnNumber:13}})),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{color:_theme.color.textHeader,fontSize:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:214,columnNumber:11}},"Chu\u1EA9n b\u1ECB h\u1ED3 s\u01A1")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',borderWidth:1,borderColor:'#EF4123',borderRadius:30,marginHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:223,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{flex:1,alignItems:'center',paddingVertical:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:232,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:239,columnNumber:13}},"X\xE1c th\u1EF1c th\xF4ng tin")),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:241,columnNumber:11}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF7A00','#EF4123'],style:{flex:1,alignItems:'center',borderRadius:30,paddingVertical:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:246,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'#FFFFFF'},__self:this,__source:{fileName:_jsxFileName,lineNumber:255,columnNumber:15}},"C\u1EADp nh\u1EADt th\xF4ng tin")))),_react.default.createElement(_reactNative.ScrollView,{style:{flex:1,paddingHorizontal:16,marginVertical:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:259,columnNumber:9}},_react.default.createElement(_formik.Formik,{innerRef:ref,initialValues:{fullName:'',phone:'',dob:'',email:'',nationalCard:'',nationalCardDate:'',province:null,brand:null,year:null,model:null,loanAmount:'',loanTime:null,salary:'',occupation:null,productId:2,brandCar:'',yearCar:'',vehiclesCar:''},onSubmit:onSubmit,validationSchema:yup.object().shape({fullName:yup.string().required('Vui lòng nhập họ tên'),loanAmount:yup.number().required('Vui lòng nhập số tiền vay').min(1,'Vui lòng nhập số tiền vay'),nationalCard:yup.string().required('Vui lòng số CCCD/CMND').matches(cardRegExp,'Định dạng không đúng'),email:yup.string().matches(/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/,'Email không đúng định dạng'),salary:yup.number().required('Vui lòng nhập thu nhập').min(3000000,'Số tiền không được nhỏ hơn 3 triệu'),brand:(loan==null?void 0:loan.productId)!==8?yup.object().required('Vui lòng chọn hãng xe').nullable():null,year:(loan==null?void 0:loan.productId)!==8?yup.object().required('Vui lòng chọn năm sản xuất').nullable():null,model:(loan==null?void 0:loan.productId)!==8?yup.object().required('Vui lòng chọn dòng xe').nullable():null,occupation:((_props$route4=props.route)==null?void 0:(_props$route4$params=_props$route4.params)==null?void 0:(_props$route4$params$=_props$route4$params.loan)==null?void 0:_props$route4$params$.typeLoan)===4||((_props$route5=props.route)==null?void 0:(_props$route5$params=_props$route5.params)==null?void 0:(_props$route5$params$=_props$route5$params.loan)==null?void 0:_props$route5$params$.typeLoan)===2?yup.object().required('Vui lòng chọn nghề nghiệp').nullable():undefined}),__self:this,__source:{fileName:_jsxFileName,lineNumber:262,columnNumber:11}},function(_ref){var _values$province,_values$brand2,_values$year2,_values$model2,_props$route6,_props$route6$params,_props$route6$params$,_props$route7,_props$route7$params,_props$route7$params$,_props$route8,_props$route8$params,_props$route8$params$,_props$route9,_props$route9$params,_props$route9$params$,_props$route10,_props$route10$params,_props$route10$params2,_props$route11,_props$route11$params,_props$route11$params2,_values$occupation2;var handleChange=_ref.handleChange,errors=_ref.errors,values=_ref.values,handleSubmit=_ref.handleSubmit,setFieldValue=_ref.setFieldValue,isValid=_ref.isValid;return _react.default.createElement(_reactNative.View,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:338,columnNumber:15}},_react.default.createElement(_reactNative.View,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:339,columnNumber:17}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:340,columnNumber:19}},"H\u1ECD v\xE0 t\xEAn ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:341,columnNumber:31}},"*")),_react.default.createElement(_reactNative.TextInput,{editable:false,style:[styles.input,{backgroundColor:'#F2F3F5'}],value:values.fullName,onChangeText:handleChange('fullName'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:343,columnNumber:19}}),errors&&errors.fullName&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:351,columnNumber:21}},errors.fullName)),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:363,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:370,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:371,columnNumber:21}},"Sinh ng\xE0y ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:372,columnNumber:33}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:true,style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],onPress:function onPress(){setShowDatePicker(true);setTypePicker(0);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:374,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:390,columnNumber:23}},values.dob?(0,_utils.formatDDMMYYY)(values.dob):''))),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:395,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:396,columnNumber:21}},"S\u1ED1 \u0111i\u1EC7n tho\u1EA1i ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:397,columnNumber:37}},"*")),_react.default.createElement(_reactNative.TextInput,{style:[styles.input,{backgroundColor:'#F2F3F5'}],value:values.phone,onChangeText:handleChange('phone'),keyboardType:"phone-pad",editable:false,__self:_this,__source:{fileName:_jsxFileName,lineNumber:399,columnNumber:21}}),errors&&errors.phone&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:407,columnNumber:23}},errors.phone))),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:420,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:427,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:428,columnNumber:21}},"S\u1ED1 CCCD/CMND ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:429,columnNumber:36}},"*")),_react.default.createElement(_reactNative.TextInput,{style:[styles.input,{backgroundColor:'#F2F3F5'}],value:values.nationalCard,onChangeText:handleChange('nationalCard'),keyboardType:"numeric",editable:false,__self:_this,__source:{fileName:_jsxFileName,lineNumber:431,columnNumber:21}}),errors&&errors.nationalCard&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:440,columnNumber:23}},errors.nationalCard)),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:452,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:453,columnNumber:21}},"Ng\xE0y c\u1EA5p CMND/ CCCD",' ',_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:455,columnNumber:23}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:true,style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],onPress:function onPress(){setShowDatePicker(true);setTypePicker(1);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:465,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:481,columnNumber:23}},values.nationalCardDate?(0,_utils.formatDDMMYYY)(values.nationalCardDate):'')),errors&&errors.nationalCardDate&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:488,columnNumber:23}},errors.nationalCardDate))),_react.default.createElement(_reactNative.View,{style:{marginTop:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:501,columnNumber:17}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:502,columnNumber:19}},"Email"),_react.default.createElement(_reactNative.TextInput,{style:styles.input,value:values.email,onChangeText:handleChange('email'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:503,columnNumber:19}})),_react.default.createElement(_reactNative.View,{style:{marginTop:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:509,columnNumber:17}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:510,columnNumber:19}},"Th\xE0nh ph\u1ED1 sinh s\u1ED1ng",' ',_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:512,columnNumber:21}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:true,style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn tỉnh/thành phố',data:_store.default.listProvinces,callback:function callback(value){setFieldValue('province',value);}}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:514,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:537,columnNumber:21}},values.province?(_values$province=values.province)==null?void 0:_values$province.name:''),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:540,columnNumber:21}})),errors&&errors.province&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:543,columnNumber:21}},errors.province)),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:555,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:562,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:563,columnNumber:21}},"Lo\u1EA1i t\xE0i s\u1EA3n"),_react.default.createElement(_reactNative.View,{style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:566,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:577,columnNumber:23}},values.productId===8?'Ô tô':'Xe máy'),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:580,columnNumber:23}}))),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:583,columnNumber:19}})),values.productId!==8?_react.default.createElement(_react.default.Fragment,null,_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:587,columnNumber:21}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:594,columnNumber:23}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:595,columnNumber:25}},"H\xE3ng xe ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:596,columnNumber:35}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],disabled:true,onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn hãng xe',data:_store.default.listBrand,callback:function callback(value){setFieldValue('brand',value);_store.default.getYearProduct(value.id);setFieldValue('model',null);setFieldValue('year',null);}}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:598,columnNumber:25}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:624,columnNumber:27}},values.brand?(_values$brand2=values.brand)==null?void 0:_values$brand2.name:''),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:627,columnNumber:27}})),errors&&errors.brand&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:630,columnNumber:27}},errors.brand)),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:642,columnNumber:23}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:643,columnNumber:25}},"N\u0103m s\u1EA3n xu\u1EA5t ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:644,columnNumber:40}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],disabled:true,onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn năm sản xuất',data:_store.default.listYear,callback:function callback(value){var _values$brand3;setFieldValue('year',value);_store.default.getModelProduct((_values$brand3=values.brand)==null?void 0:_values$brand3.id,value.id);setFieldValue('model',null);}}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:646,columnNumber:25}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:674,columnNumber:27}},values.year?(_values$year2=values.year)==null?void 0:_values$year2.name:''),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:677,columnNumber:27}})),errors&&errors.year&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:680,columnNumber:27}},errors.year))),_react.default.createElement(_reactNative.View,{style:{marginTop:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:693,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:694,columnNumber:23}},"D\xF2ng xe ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:695,columnNumber:33}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],disabled:true,onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn dòng xe',data:_store.default.listModel,callback:function callback(value){setFieldValue('model',value);}}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:697,columnNumber:23}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:720,columnNumber:25}},values.model?(_values$model2=values.model)==null?void 0:_values$model2.name:''),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:723,columnNumber:25}})),errors&&errors.model&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:726,columnNumber:25}},errors.model))):_react.default.createElement(_react.default.Fragment,null,_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:741,columnNumber:21}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:748,columnNumber:23}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:749,columnNumber:25}},"H\xE3ng xe ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:750,columnNumber:35}},"*")),_react.default.createElement(_reactNative.View,{style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:752,columnNumber:25}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:763,columnNumber:27}},values.brandCar),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:766,columnNumber:27}}))),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:769,columnNumber:23}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:770,columnNumber:25}},"N\u0103m s\u1EA3n xu\u1EA5t ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:771,columnNumber:40}},"*")),_react.default.createElement(_reactNative.View,{style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:773,columnNumber:25}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:784,columnNumber:27}},values.yearCar),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:787,columnNumber:27}})))),_react.default.createElement(_reactNative.View,{style:{marginTop:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:791,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:792,columnNumber:23}},"D\xF2ng xe ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:793,columnNumber:33}},"*")),_react.default.createElement(_reactNative.View,{style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:795,columnNumber:23}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:806,columnNumber:25}},values.vehiclesCar),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:809,columnNumber:25}})))),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:814,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:821,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:822,columnNumber:21}},"S\u1ED1 ti\u1EC1n vay ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:823,columnNumber:35}},"*")),_react.default.createElement(_reactNative.TextInput,{style:[styles.input,{backgroundColor:'#F2F3F5'}],value:(0,_utils.formatMoney)(values.loanAmount),keyboardType:"numeric",editable:false,__self:_this,__source:{fileName:_jsxFileName,lineNumber:825,columnNumber:21}}),errors&&errors.loanAmount&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:840,columnNumber:23}},errors.loanAmount)),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:852,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:853,columnNumber:21}},"Th\u1EDDi gian vay"),_react.default.createElement(_reactNative.TextInput,{style:[styles.input,{backgroundColor:'#F2F3F5'}],value:values.loanTime+" Th\xE1ng",onChangeText:handleChange('loanTime'),keyboardType:"numeric",editable:false,__self:_this,__source:{fileName:_jsxFileName,lineNumber:856,columnNumber:21}}))),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:865,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:872,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:873,columnNumber:21}},"Thu nh\u1EADp (VND) ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:874,columnNumber:38}},"*")),_react.default.createElement(_reactNative.TextInput,{editable:false,style:[styles.input,{backgroundColor:'#F2F3F5'}],value:(0,_utils.formatMoney)(values.salary),onChangeText:function onChangeText(text){if(text===''){setFieldValue('salary',Number(0));}else{setFieldValue('salary',Number(text.split(',').join('')));}},keyboardType:"numeric",__self:_this,__source:{fileName:_jsxFileName,lineNumber:876,columnNumber:21}}),errors&&errors.salary&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:893,columnNumber:23}},errors.salary)),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:905,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:906,columnNumber:21}},"Ngh\u1EC1 nghi\u1EC7p ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:907,columnNumber:35}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:(props==null?void 0:(_props$route6=props.route)==null?void 0:(_props$route6$params=_props$route6.params)==null?void 0:(_props$route6$params$=_props$route6$params.loan)==null?void 0:_props$route6$params$.typeLoan)!==4&&((_props$route7=props.route)==null?void 0:(_props$route7$params=_props$route7.params)==null?void 0:(_props$route7$params$=_props$route7$params.loan)==null?void 0:_props$route7$params$.typeLoan)!==2?'#F2F3F5':'#FFFFFF'}],disabled:(props==null?void 0:(_props$route8=props.route)==null?void 0:(_props$route8$params=_props$route8.params)==null?void 0:(_props$route8$params$=_props$route8$params.loan)==null?void 0:_props$route8$params$.typeLoan)===4||((_props$route9=props.route)==null?void 0:(_props$route9$params=_props$route9.params)==null?void 0:(_props$route9$params$=_props$route9$params.loan)==null?void 0:_props$route9$params$.typeLoan)===2?false:true,onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn nghề nghiệp',data:_store.default.listJobCimb,callback:function callback(value){setFieldValue('occupation',value);}}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:909,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:941,columnNumber:23}},(props==null?void 0:(_props$route10=props.route)==null?void 0:(_props$route10$params=_props$route10.params)==null?void 0:(_props$route10$params2=_props$route10$params.loan)==null?void 0:_props$route10$params2.typeLoan)===4||(props==null?void 0:(_props$route11=props.route)==null?void 0:(_props$route11$params=_props$route11.params)==null?void 0:(_props$route11$params2=_props$route11$params.loan)==null?void 0:_props$route11$params2.typeLoan)===2?(_values$occupation2=values.occupation)==null?void 0:_values$occupation2.name:loan==null?void 0:loan.jobNameCIMB),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:950,columnNumber:23}})),errors&&errors.occupation&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:953,columnNumber:23}},errors.occupation))),_react.default.createElement(_reactNative.View,{style:{marginTop:40},__self:_this,__source:{fileName:_jsxFileName,lineNumber:992,columnNumber:17}},_react.default.createElement(_mobxReactLite.Observer,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:993,columnNumber:19}},function(){return _react.default.createElement(_reactNative.TouchableOpacity,{disabled:!isValid||_store.default.loadingButton,onPress:function onPress(){handleSubmit();},__self:_this,__source:{fileName:_jsxFileName,lineNumber:995,columnNumber:23}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:isValid?['#FF7A00','#EF4123']:['#BDBDBD','#BDBDBD'],style:{alignItems:'center',borderRadius:30,height:40,justifyContent:'center'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:1001,columnNumber:25}},_store.default.loadingButton?_react.default.createElement(_reactNative.ActivityIndicator,{color:'white',size:"small",__self:_this,__source:{fileName:_jsxFileName,lineNumber:1015,columnNumber:29}}):_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{color:'#FFFFFF'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:1017,columnNumber:29}},"Ti\u1EBFp t\u1EE5c")));})),_react.default.createElement(_reactNative.View,{style:{marginBottom:24,marginTop:8,flexDirection:'row',justifyContent:'center'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:1031,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:1039,columnNumber:19}},"Cung c\u1EA5p b\u1EDFi",' '),_react.default.createElement(_icons.CIMBBank,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:1042,columnNumber:19}})),_react.default.createElement(_keyboardspace.default,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:1044,columnNumber:17}}),_react.default.createElement(_reactNativeDatePicker.default,{mode:"date",open:showDatePicker,modal:true,title:"Ch\u1ECDn th\u1EDDi gian",locale:"vi",date:new Date(),onCancel:function onCancel(){setShowDatePicker(false);},onConfirm:function onConfirm(date){setShowDatePicker(false);if(typePicker===0){setFieldValue('dob',date);}if(typePicker===1){setFieldValue('nationalCardDate',date);}},__self:_this,__source:{fileName:_jsxFileName,lineNumber:1045,columnNumber:17}}));}))),_react.default.createElement(_CIMBLoading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:1070,columnNumber:7}}));});var styles=_reactNative.StyleSheet.create({input:{height:40,marginVertical:0,borderWidth:0.5,borderColor:'#E0E0E0',borderRadius:4,marginTop:8,paddingHorizontal:10,fontFamily:'Roboto',color:'#333333',fontWeight:'bold'}});
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.QuickSubmit=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _native=require("@react-navigation/native");var _formik=require("formik");var _mobxReactLite=require("mobx-react-lite");var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _icons=require("../../assets/icons");var _keyboardspace=_interopRequireDefault(require("../../components/keyboardspace"));var _MText=require("../../components/MText");var _CommonStyles=require("../CommonStyles");var _theme=require("../../theme");var yup=_interopRequireWildcard(require("yup"));var _store=_interopRequireDefault(require("./store"));var _navigation=require("../../navigation");var _utils=require("../../utils");var _moment=_interopRequireDefault(require("moment"));var _CIMBLoading=_interopRequireDefault(require("../../components/CIMBLoading"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _reactNativeDatePicker=_interopRequireDefault(require("react-native-date-picker"));var _jsxFileName="/Users/quangduc/Documents/Tima/tima-care-v2/src/screens/quick-submit/index.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}var cardRegExp=/^(\b\d{12}\b|\b\d{9}\b)$/;var QuickSubmit=exports.QuickSubmit=(0,_mobxReactLite.observer)(function QuickSubmit(props){var _this=this;var navigation=(0,_native.useNavigation)();var ref=(0,_react.useRef)(null);var _useState=(0,_react.useState)(null),_useState2=(0,_slicedToArray2.default)(_useState,2),loan=_useState2[0],setLoan=_useState2[1];var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),showDatePicker=_useState4[0],setShowDatePicker=_useState4[1];var _useState5=(0,_react.useState)(0),_useState6=(0,_slicedToArray2.default)(_useState5,2),typePicker=_useState6[0],setTypePicker=_useState6[1];var _useState7=(0,_react.useState)(false),_useState8=(0,_slicedToArray2.default)(_useState7,2),isLoading=_useState8[0],setIsLoading=_useState8[1];(0,_react.useEffect)(function(){var _props$route,_props$route$params,_props$route$params$l;setIsLoading(true);_store.default.getBrandProduct();_store.default.getProvinces();_store.default.getDetailLoan(props==null?void 0:(_props$route=props.route)==null?void 0:(_props$route$params=_props$route.params)==null?void 0:(_props$route$params$l=_props$route$params.loan)==null?void 0:_props$route$params$l.id,function(data){setLoan(data);ref.current.setFieldValue('fullName',data!=null&&data.fullName?data==null?void 0:data.fullName:'');ref.current.setFieldValue('dob',data!=null&&data.dob?data==null?void 0:data.dob:'');ref.current.setFieldValue('phone',data!=null&&data.phone?data==null?void 0:data.phone:'');ref.current.setFieldValue('nationalCard',data!=null&&data.nationalId?data==null?void 0:data.nationalId:'');ref.current.setFieldValue('nationalCardDate',data!=null&&data.dateNationalId?data==null?void 0:data.dateNationalId:'');ref.current.setFieldValue('email',data!=null&&data.email?data==null?void 0:data.email:'');ref.current.setFieldValue('loanAmount',data!=null&&data.loanAmount?data==null?void 0:data.loanAmount:0);ref.current.setFieldValue('loanTime',data!=null&&data.loanTime?data==null?void 0:data.loanTime:'');ref.current.setFieldValue('salary',data!=null&&data.totalIncome?data==null?void 0:data.totalIncome:0);ref.current.setFieldValue('province',data!=null&&data.provinceId?{id:data==null?void 0:data.provinceId,name:data==null?void 0:data.provinceName}:null);ref.current.setFieldValue('brand',data!=null&&data.brandId?{id:data==null?void 0:data.brandId,name:data==null?void 0:data.brandName}:null);if(data!=null&&data.brandId){_store.default.getYearProduct(data==null?void 0:data.brandId);}ref.current.setFieldValue('year',data!=null&&data.yearProductBrand?{id:data==null?void 0:data.yearProductBrand,name:"N\u0103m "+(data==null?void 0:data.yearProductBrand)}:null);if(data!=null&&data.yearProductBrand){_store.default.getModelProduct(data==null?void 0:data.brandId,data==null?void 0:data.yearProductBrand);}ref.current.setFieldValue('model',data!=null&&data.productBrandId?{id:data==null?void 0:data.productBrandId,name:data==null?void 0:data.productBrandName}:null);ref.current.setFieldValue('occupation',data!=null&&data.jobNameCIMB?{id:data==null?void 0:data.jobCIMBId,name:data==null?void 0:data.jobNameCIMB}:null);ref.current.setFieldValue('productId',data==null?void 0:data.productId),ref.current.setFieldValue('vehiclesCar',data!=null&&data.vehiclesCar?data==null?void 0:data.vehiclesCar:''),ref.current.setFieldValue('yearCar',data!=null&&data.yearCar?String(data==null?void 0:data.yearCar):''),ref.current.setFieldValue('brandCar',data!=null&&data.brandCar?data==null?void 0:data.brandCar:'');setIsLoading(false);},function(){setIsLoading(false);});},[]);var onSubmit=function onSubmit(values){var _props$route2,_props$route2$params,_props$route2$params$,_values$brand,_values$model,_values$year,_props$route3,_props$route3$params,_props$route3$params$,_values$occupation;var body={id:props==null?void 0:(_props$route2=props.route)==null?void 0:(_props$route2$params=_props$route2.params)==null?void 0:(_props$route2$params$=_props$route2$params.loan)==null?void 0:_props$route2$params$.id,fullName:values.fullName,dob:(0,_moment.default)(values.dob).format('YYYY-MM-DD'),phone:values==null?void 0:values.phone,nationalId:values.nationalCard,dateNationalId:(0,_moment.default)(values.nationalCardDate).format('YYYY-MM-DD'),email:values.email?values.email:'',provinceId:loan==null?void 0:loan.provinceId,address:loan==null?void 0:loan.address,loanAmount:values==null?void 0:values.loanAmount,loanTime:values==null?void 0:values.loanTime,totalIncome:values==null?void 0:values.salary,brandId:(_values$brand=values.brand)==null?void 0:_values$brand.id,productBrandId:(_values$model=values.model)==null?void 0:_values$model.id,yearProductBrand:(_values$year=values.year)==null?void 0:_values$year.id,districtId:loan==null?void 0:loan.districtId,wardId:loan==null?void 0:loan.wardId,jobId:loan==null?void 0:loan.jobId,jobCIMBId:(props==null?void 0:(_props$route3=props.route)==null?void 0:(_props$route3$params=_props$route3.params)==null?void 0:(_props$route3$params$=_props$route3$params.loan)==null?void 0:_props$route3$params$.typeLoan)===4?values==null?void 0:(_values$occupation=values.occupation)==null?void 0:_values$occupation.id:loan==null?void 0:loan.jobCIMBId,productId:loan==null?void 0:loan.productId,brandCar:loan==null?void 0:loan.brandCar,yearCar:loan==null?void 0:loan.yearCar,vehiclesCar:loan==null?void 0:loan.vehiclesCar};_store.default.quickSubmit(body,function(){navigation.dispatch(_native.CommonActions.reset({index:1,routes:[{name:_navigation.ScreenNames.Main}]}));});};return _react.default.createElement(_reactNative.View,{style:{flex:1,backgroundColor:'#FFFFFF'},__self:this,__source:{fileName:_jsxFileName,lineNumber:185,columnNumber:5}},_react.default.createElement(_reactNative.SafeAreaView,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:186,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.alignCenter,{alignItems:'center',height:50,justifyContent:'center'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:187,columnNumber:9}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return navigation.dispatch(_native.CommonActions.reset({index:1,routes:[{name:_navigation.ScreenNames.Main}]}));},style:{width:40,height:40,position:'absolute',left:8,alignItems:'center',justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:193,columnNumber:11}},_react.default.createElement(_icons.IconBack,{fill:_theme.color.textHeader,__self:this,__source:{fileName:_jsxFileName,lineNumber:211,columnNumber:13}})),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{color:_theme.color.textHeader,fontSize:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:214,columnNumber:11}},"Chu\u1EA9n b\u1ECB h\u1ED3 s\u01A1")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',borderWidth:1,borderColor:'#EF4123',borderRadius:30,marginHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:223,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{flex:1,alignItems:'center',paddingVertical:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:232,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:239,columnNumber:13}},"X\xE1c th\u1EF1c th\xF4ng tin")),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:241,columnNumber:11}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF7A00','#EF4123'],style:{flex:1,alignItems:'center',borderRadius:30,paddingVertical:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:246,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'#FFFFFF'},__self:this,__source:{fileName:_jsxFileName,lineNumber:255,columnNumber:15}},"C\u1EADp nh\u1EADt th\xF4ng tin")))),_react.default.createElement(_reactNative.ScrollView,{style:{flex:1,paddingHorizontal:16,marginVertical:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:259,columnNumber:9}},_react.default.createElement(_formik.Formik,{innerRef:ref,initialValues:{fullName:'',phone:'',dob:'',email:'',nationalCard:'',nationalCardDate:'',province:null,brand:null,year:null,model:null,loanAmount:'',loanTime:null,salary:'',occupation:null,productId:2,brandCar:'',yearCar:'',vehiclesCar:''},onSubmit:onSubmit,validationSchema:yup.object().shape({fullName:yup.string().required('Vui lòng nhập họ tên'),loanAmount:yup.number().required('Vui lòng nhập số tiền vay').min(1,'Vui lòng nhập số tiền vay'),nationalCard:yup.string().required('Vui lòng số CCCD/CMND').matches(cardRegExp,'Định dạng không đúng'),email:yup.string().matches(/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/,'Email không đúng định dạng'),salary:yup.number().required('Vui lòng nhập thu nhập').min(3000000,'Số tiền không được nhỏ hơn 3 triệu'),brand:(loan==null?void 0:loan.productId)!==8?yup.object().required('Vui lòng chọn hãng xe').nullable():null,year:(loan==null?void 0:loan.productId)!==8?yup.object().required('Vui lòng chọn năm sản xuất').nullable():null,model:(loan==null?void 0:loan.productId)!==8?yup.object().required('Vui lòng chọn dòng xe').nullable():null,occupation:yup.object().required('Vui lòng chọn nghề nghiệp').nullable()}),__self:this,__source:{fileName:_jsxFileName,lineNumber:262,columnNumber:11}},function(_ref){var _values$province,_values$brand2,_values$year2,_values$model2,_props$route4,_props$route4$params,_props$route4$params$,_props$route5,_props$route5$params,_props$route5$params$,_props$route6,_props$route6$params,_props$route6$params$,_props$route7,_props$route7$params,_props$route7$params$,_props$route8,_props$route8$params,_props$route8$params$,_props$route9,_props$route9$params,_props$route9$params$,_values$occupation2;var handleChange=_ref.handleChange,errors=_ref.errors,values=_ref.values,handleSubmit=_ref.handleSubmit,setFieldValue=_ref.setFieldValue,isValid=_ref.isValid;return _react.default.createElement(_reactNative.View,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:334,columnNumber:15}},_react.default.createElement(_reactNative.View,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:335,columnNumber:17}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:336,columnNumber:19}},"H\u1ECD v\xE0 t\xEAn ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:337,columnNumber:31}},"*")),_react.default.createElement(_reactNative.TextInput,{editable:false,style:[styles.input,{backgroundColor:'#F2F3F5'}],value:values.fullName,onChangeText:handleChange('fullName'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:339,columnNumber:19}}),errors&&errors.fullName&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:347,columnNumber:21}},errors.fullName)),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:359,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:366,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:367,columnNumber:21}},"Sinh ng\xE0y ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:368,columnNumber:33}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:true,style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],onPress:function onPress(){setShowDatePicker(true);setTypePicker(0);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:370,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:386,columnNumber:23}},values.dob?(0,_utils.formatDDMMYYY)(values.dob):''))),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:391,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:392,columnNumber:21}},"S\u1ED1 \u0111i\u1EC7n tho\u1EA1i ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:393,columnNumber:37}},"*")),_react.default.createElement(_reactNative.TextInput,{style:[styles.input,{backgroundColor:'#F2F3F5'}],value:values.phone,onChangeText:handleChange('phone'),keyboardType:"phone-pad",editable:false,__self:_this,__source:{fileName:_jsxFileName,lineNumber:395,columnNumber:21}}),errors&&errors.phone&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:403,columnNumber:23}},errors.phone))),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:416,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:423,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:424,columnNumber:21}},"S\u1ED1 CCCD/CMND ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:425,columnNumber:36}},"*")),_react.default.createElement(_reactNative.TextInput,{style:[styles.input,{backgroundColor:'#F2F3F5'}],value:values.nationalCard,onChangeText:handleChange('nationalCard'),keyboardType:"numeric",editable:false,__self:_this,__source:{fileName:_jsxFileName,lineNumber:427,columnNumber:21}}),errors&&errors.nationalCard&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:436,columnNumber:23}},errors.nationalCard)),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:448,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:449,columnNumber:21}},"Ng\xE0y c\u1EA5p CMND/ CCCD",' ',_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:451,columnNumber:23}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:true,style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],onPress:function onPress(){setShowDatePicker(true);setTypePicker(1);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:461,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:477,columnNumber:23}},values.nationalCardDate?(0,_utils.formatDDMMYYY)(values.nationalCardDate):'')),errors&&errors.nationalCardDate&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:484,columnNumber:23}},errors.nationalCardDate))),_react.default.createElement(_reactNative.View,{style:{marginTop:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:497,columnNumber:17}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:498,columnNumber:19}},"Email"),_react.default.createElement(_reactNative.TextInput,{style:styles.input,value:values.email,onChangeText:handleChange('email'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:499,columnNumber:19}})),_react.default.createElement(_reactNative.View,{style:{marginTop:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:505,columnNumber:17}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:506,columnNumber:19}},"Th\xE0nh ph\u1ED1 sinh s\u1ED1ng",' ',_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:508,columnNumber:21}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:true,style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn tỉnh/thành phố',data:_store.default.listProvinces,callback:function callback(value){setFieldValue('province',value);}}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:510,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:533,columnNumber:21}},values.province?(_values$province=values.province)==null?void 0:_values$province.name:''),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:536,columnNumber:21}})),errors&&errors.province&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:539,columnNumber:21}},errors.province)),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:551,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:558,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:559,columnNumber:21}},"Lo\u1EA1i t\xE0i s\u1EA3n"),_react.default.createElement(_reactNative.View,{style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:562,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:573,columnNumber:23}},values.productId===8?'Ô tô':'Xe máy'),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:576,columnNumber:23}}))),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:579,columnNumber:19}})),values.productId!==8?_react.default.createElement(_react.default.Fragment,null,_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:583,columnNumber:21}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:590,columnNumber:23}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:591,columnNumber:25}},"H\xE3ng xe ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:592,columnNumber:35}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],disabled:true,onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn hãng xe',data:_store.default.listBrand,callback:function callback(value){setFieldValue('brand',value);_store.default.getYearProduct(value.id);setFieldValue('model',null);setFieldValue('year',null);}}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:594,columnNumber:25}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:620,columnNumber:27}},values.brand?(_values$brand2=values.brand)==null?void 0:_values$brand2.name:''),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:623,columnNumber:27}})),errors&&errors.brand&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:626,columnNumber:27}},errors.brand)),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:638,columnNumber:23}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:639,columnNumber:25}},"N\u0103m s\u1EA3n xu\u1EA5t ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:640,columnNumber:40}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],disabled:true,onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn năm sản xuất',data:_store.default.listYear,callback:function callback(value){var _values$brand3;setFieldValue('year',value);_store.default.getModelProduct((_values$brand3=values.brand)==null?void 0:_values$brand3.id,value.id);setFieldValue('model',null);}}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:642,columnNumber:25}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:670,columnNumber:27}},values.year?(_values$year2=values.year)==null?void 0:_values$year2.name:''),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:673,columnNumber:27}})),errors&&errors.year&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:676,columnNumber:27}},errors.year))),_react.default.createElement(_reactNative.View,{style:{marginTop:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:689,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:690,columnNumber:23}},"D\xF2ng xe ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:691,columnNumber:33}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],disabled:true,onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn dòng xe',data:_store.default.listModel,callback:function callback(value){setFieldValue('model',value);}}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:693,columnNumber:23}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:716,columnNumber:25}},values.model?(_values$model2=values.model)==null?void 0:_values$model2.name:''),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:719,columnNumber:25}})),errors&&errors.model&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:722,columnNumber:25}},errors.model))):_react.default.createElement(_react.default.Fragment,null,_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:737,columnNumber:21}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:744,columnNumber:23}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:745,columnNumber:25}},"H\xE3ng xe ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:746,columnNumber:35}},"*")),_react.default.createElement(_reactNative.View,{style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:748,columnNumber:25}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:759,columnNumber:27}},values.brandCar),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:762,columnNumber:27}}))),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:765,columnNumber:23}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:766,columnNumber:25}},"N\u0103m s\u1EA3n xu\u1EA5t ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:767,columnNumber:40}},"*")),_react.default.createElement(_reactNative.View,{style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:769,columnNumber:25}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:780,columnNumber:27}},values.yearCar),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:783,columnNumber:27}})))),_react.default.createElement(_reactNative.View,{style:{marginTop:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:787,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:788,columnNumber:23}},"D\xF2ng xe ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:789,columnNumber:33}},"*")),_react.default.createElement(_reactNative.View,{style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:791,columnNumber:23}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:802,columnNumber:25}},values.vehiclesCar),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:805,columnNumber:25}})))),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:810,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:817,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:818,columnNumber:21}},"S\u1ED1 ti\u1EC1n vay ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:819,columnNumber:35}},"*")),_react.default.createElement(_reactNative.TextInput,{style:[styles.input,{backgroundColor:'#F2F3F5'}],value:(0,_utils.formatMoney)(values.loanAmount),keyboardType:"numeric",editable:false,__self:_this,__source:{fileName:_jsxFileName,lineNumber:821,columnNumber:21}}),errors&&errors.loanAmount&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:836,columnNumber:23}},errors.loanAmount)),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:848,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:849,columnNumber:21}},"Th\u1EDDi gian vay"),_react.default.createElement(_reactNative.TextInput,{style:[styles.input,{backgroundColor:'#F2F3F5'}],value:values.loanTime+" Th\xE1ng",onChangeText:handleChange('loanTime'),keyboardType:"numeric",editable:false,__self:_this,__source:{fileName:_jsxFileName,lineNumber:852,columnNumber:21}}))),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:861,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:868,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:869,columnNumber:21}},"Thu nh\u1EADp (VND) ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:870,columnNumber:38}},"*")),_react.default.createElement(_reactNative.TextInput,{editable:false,style:[styles.input,{backgroundColor:'#F2F3F5'}],value:(0,_utils.formatMoney)(values.salary),onChangeText:function onChangeText(text){if(text===''){setFieldValue('salary',Number(0));}else{setFieldValue('salary',Number(text.split(',').join('')));}},keyboardType:"numeric",__self:_this,__source:{fileName:_jsxFileName,lineNumber:872,columnNumber:21}}),errors&&errors.salary&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:889,columnNumber:23}},errors.salary)),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:901,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:902,columnNumber:21}},"Ngh\u1EC1 nghi\u1EC7p ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:903,columnNumber:35}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:(props==null?void 0:(_props$route4=props.route)==null?void 0:(_props$route4$params=_props$route4.params)==null?void 0:(_props$route4$params$=_props$route4$params.loan)==null?void 0:_props$route4$params$.typeLoan)!==4&&((_props$route5=props.route)==null?void 0:(_props$route5$params=_props$route5.params)==null?void 0:(_props$route5$params$=_props$route5$params.loan)==null?void 0:_props$route5$params$.typeLoan)!==2?'#F2F3F5':'#FFFFFF'}],disabled:(props==null?void 0:(_props$route6=props.route)==null?void 0:(_props$route6$params=_props$route6.params)==null?void 0:(_props$route6$params$=_props$route6$params.loan)==null?void 0:_props$route6$params$.typeLoan)===4||((_props$route7=props.route)==null?void 0:(_props$route7$params=_props$route7.params)==null?void 0:(_props$route7$params$=_props$route7$params.loan)==null?void 0:_props$route7$params$.typeLoan)===2?false:true,onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn nghề nghiệp',data:_store.default.listJobCimb,callback:function callback(value){setFieldValue('occupation',value);}}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:905,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:937,columnNumber:23}},(props==null?void 0:(_props$route8=props.route)==null?void 0:(_props$route8$params=_props$route8.params)==null?void 0:(_props$route8$params$=_props$route8$params.loan)==null?void 0:_props$route8$params$.typeLoan)===4||(props==null?void 0:(_props$route9=props.route)==null?void 0:(_props$route9$params=_props$route9.params)==null?void 0:(_props$route9$params$=_props$route9$params.loan)==null?void 0:_props$route9$params$.typeLoan)===2?(_values$occupation2=values.occupation)==null?void 0:_values$occupation2.name:loan==null?void 0:loan.jobNameCIMB),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:946,columnNumber:23}})),errors&&errors.occupation&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:949,columnNumber:23}},errors.occupation))),_react.default.createElement(_reactNative.View,{style:{marginTop:40},__self:_this,__source:{fileName:_jsxFileName,lineNumber:988,columnNumber:17}},_react.default.createElement(_mobxReactLite.Observer,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:989,columnNumber:19}},function(){return _react.default.createElement(_reactNative.TouchableOpacity,{disabled:!isValid||_store.default.loadingButton,onPress:function onPress(){handleSubmit();},__self:_this,__source:{fileName:_jsxFileName,lineNumber:991,columnNumber:23}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:isValid?['#FF7A00','#EF4123']:['#BDBDBD','#BDBDBD'],style:{alignItems:'center',borderRadius:30,height:40,justifyContent:'center'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:997,columnNumber:25}},_store.default.loadingButton?_react.default.createElement(_reactNative.ActivityIndicator,{color:'white',size:"small",__self:_this,__source:{fileName:_jsxFileName,lineNumber:1011,columnNumber:29}}):_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{color:'#FFFFFF'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:1013,columnNumber:29}},"Ti\u1EBFp t\u1EE5c")));})),_react.default.createElement(_reactNative.View,{style:{marginBottom:24,marginTop:8,flexDirection:'row',justifyContent:'center'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:1027,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:1035,columnNumber:19}},"Cung c\u1EA5p b\u1EDFi",' '),_react.default.createElement(_icons.CIMBBank,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:1038,columnNumber:19}})),_react.default.createElement(_keyboardspace.default,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:1040,columnNumber:17}}),_react.default.createElement(_reactNativeDatePicker.default,{mode:"date",open:showDatePicker,modal:true,title:"Ch\u1ECDn th\u1EDDi gian",locale:"vi",date:new Date(),onCancel:function onCancel(){setShowDatePicker(false);},onConfirm:function onConfirm(date){setShowDatePicker(false);if(typePicker===0){setFieldValue('dob',date);}if(typePicker===1){setFieldValue('nationalCardDate',date);}},__self:_this,__source:{fileName:_jsxFileName,lineNumber:1041,columnNumber:17}}));}))),_react.default.createElement(_CIMBLoading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:1066,columnNumber:7}}));});var styles=_reactNative.StyleSheet.create({input:{height:40,marginVertical:0,borderWidth:0.5,borderColor:'#E0E0E0',borderRadius:4,marginTop:8,paddingHorizontal:10,fontFamily:'Roboto',color:'#333333',fontWeight:'bold'}});
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -317,14 +317,10 @@ export const QuickSubmit = observer(function QuickSubmit(props: any) {
|
|
|
317
317
|
loan?.productId !== 8
|
|
318
318
|
? yup.object().required('Vui lòng chọn dòng xe').nullable()
|
|
319
319
|
: null,
|
|
320
|
-
occupation:
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
.object()
|
|
325
|
-
.required('Vui lòng chọn nghề nghiệp')
|
|
326
|
-
.nullable()
|
|
327
|
-
: undefined,
|
|
320
|
+
occupation: yup
|
|
321
|
+
.object()
|
|
322
|
+
.required('Vui lòng chọn nghề nghiệp')
|
|
323
|
+
.nullable(),
|
|
328
324
|
})}
|
|
329
325
|
>
|
|
330
326
|
{({
|