react-native-timacare 3.3.65 → 3.3.66

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.
Files changed (57) hide show
  1. package/lib/commonjs/components/AlertLoan.js +1 -1
  2. package/lib/commonjs/components/AlertLoan.js.flow +1 -0
  3. package/lib/commonjs/components/AlertLoan.js.map +1 -1
  4. package/lib/commonjs/screens/motobike/InfoLoanMotobike.js +1 -1
  5. package/lib/commonjs/screens/motobike/InfoLoanMotobike.js.flow +3 -2
  6. package/lib/commonjs/screens/motobike/InfoLoanMotobike.js.map +1 -1
  7. package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js +1 -1
  8. package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js.flow +1 -0
  9. package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js.map +1 -1
  10. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js +1 -1
  11. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.flow +1 -0
  12. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
  13. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
  14. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.flow +1 -0
  15. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
  16. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js +1 -1
  17. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.flow +1 -0
  18. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
  19. package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js +1 -1
  20. package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js.flow +8 -5
  21. package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js.map +1 -1
  22. package/lib/commonjs/screens/v3/AssetInformation.js +1 -1
  23. package/lib/commonjs/screens/v3/AssetInformation.js.flow +1 -0
  24. package/lib/commonjs/screens/v3/AssetInformation.js.map +1 -1
  25. package/lib/commonjs/screens/v3/ReviewInfoLoanBuyCar.js +1 -1
  26. package/lib/commonjs/screens/v3/ReviewInfoLoanBuyCar.js.flow +1 -0
  27. package/lib/commonjs/screens/v3/ReviewInfoLoanBuyCar.js.map +1 -1
  28. package/lib/module/components/AlertLoan.js +1 -1
  29. package/lib/module/components/AlertLoan.js.map +1 -1
  30. package/lib/module/screens/motobike/InfoLoanMotobike.js +1 -1
  31. package/lib/module/screens/motobike/InfoLoanMotobike.js.map +1 -1
  32. package/lib/module/screens/motobike/ReviewLoanMotobike.js +1 -1
  33. package/lib/module/screens/motobike/ReviewLoanMotobike.js.map +1 -1
  34. package/lib/module/screens/toan-trinh-so/ReviewInformation.js +1 -1
  35. package/lib/module/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
  36. package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
  37. package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
  38. package/lib/module/screens/toan-trinh-so/ReviewLoan.js +1 -1
  39. package/lib/module/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
  40. package/lib/module/screens/toan-trinh-so/TopupLoanInfo.js +1 -1
  41. package/lib/module/screens/toan-trinh-so/TopupLoanInfo.js.map +1 -1
  42. package/lib/module/screens/v3/AssetInformation.js +1 -1
  43. package/lib/module/screens/v3/AssetInformation.js.map +1 -1
  44. package/lib/module/screens/v3/ReviewInfoLoanBuyCar.js +1 -1
  45. package/lib/module/screens/v3/ReviewInfoLoanBuyCar.js.map +1 -1
  46. package/lib/typescript/components/AlertLoan.d.ts.map +1 -1
  47. package/lib/typescript/screens/toan-trinh-so/TopupLoanInfo.d.ts.map +1 -1
  48. package/package.json +1 -1
  49. package/src/components/AlertLoan.tsx +1 -0
  50. package/src/screens/motobike/InfoLoanMotobike.tsx +3 -2
  51. package/src/screens/motobike/ReviewLoanMotobike.tsx +1 -0
  52. package/src/screens/toan-trinh-so/ReviewInformation.tsx +1 -0
  53. package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +1 -0
  54. package/src/screens/toan-trinh-so/ReviewLoan.tsx +1 -0
  55. package/src/screens/toan-trinh-so/TopupLoanInfo.tsx +8 -5
  56. package/src/screens/v3/AssetInformation.tsx +1 -0
  57. package/src/screens/v3/ReviewInfoLoanBuyCar.tsx +1 -0
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=TopupLoanInfo;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _CommonStyles=require("../CommonStyles");var _MText=require("../../components/MText");var _navigation=require("../../navigation");var _native=require("@react-navigation/native");var _svgs=require("../../assets/svgs");var _formik=require("formik");var _icons=require("../../assets/icons");var _AppStore=_interopRequireDefault(require("../../AppStore"));var _utils=require("../../utils");var _api=require("../../services/api");var _store=_interopRequireDefault(require("./store"));var _Loading=_interopRequireDefault(require("../../components/Loading"));var _MButton=_interopRequireDefault(require("../../components/MButton"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _moment=_interopRequireDefault(require("moment"));var yup=_interopRequireWildcard(require("yup"));var _reactNativeDatePicker=_interopRequireDefault(require("react-native-date-picker"));var _AlertGlobal=require("../../components/ModalNotification/AlertGlobal");var _jsxFileName="/Users/tima/Tima/react-native-timacare/src/screens/toan-trinh-so/TopupLoanInfo.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t3 in e)"default"!==_t3&&{}.hasOwnProperty.call(e,_t3)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t3))&&(i.get||i.set)?o(f,_t3,i):f[_t3]=e[_t3]);return f;})(e,t);}function TopupLoanInfo(props){var _this=this;var navigation=(0,_native.useNavigation)();var formRef=(0,_react.useRef)(null);var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),isLoading=_useState2[0],setIsLoading=_useState2[1];var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),showDate=_useState4[0],setShowDate=_useState4[1];var getData=function _callee(){var _props$route,_props$route$params,_props$route$params$l,response,_response$data,_response$data2,_response$data2$data,_response$data3,_response$data3$data,_response$data4,_response$data4$data,_response$data$data$g,_response$data5,_response$data5$data,_response$data6,_response$data6$data,_response$data7,_response$data7$data,_response$data8,_response$data8$data,_response$data9,_response$data9$data,_response$data$data$b,_response$data0,_response$data0$data,_response$data$data$b2,_response$data1,_response$data1$data,_response$data$data$b3,_response$data10,_response$data10$data,_response$data$data$b4,_response$data11,_response$data11$data,_t;return _regenerator.default.async(function(_context){while(1)switch(_context.prev=_context.next){case 0:_context.prev=0;setIsLoading(true);_context.next=1;return _regenerator.default.awrap(_api.Api.getInstance().getInfoCustomerV2((_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));case 1:response=_context.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data=response.data)==null?void 0:_response$data.meta.errorCode)===200){formRef.current.setFieldValue('fullName',response==null?void 0:(_response$data2=response.data)==null?void 0:(_response$data2$data=_response$data2.data)==null?void 0:_response$data2$data.fullName);formRef.current.setFieldValue('dob',response!=null&&(_response$data3=response.data)!=null&&(_response$data3$data=_response$data3.data)!=null&&_response$data3$data.dob?(0,_utils.formatDDMMYYY)(response==null?void 0:(_response$data4=response.data)==null?void 0:(_response$data4$data=_response$data4.data)==null?void 0:_response$data4$data.dob):'');formRef.current.setFieldValue('gender',(_response$data$data$g=response==null?void 0:(_response$data5=response.data)==null?void 0:(_response$data5$data=_response$data5.data)==null?void 0:_response$data5$data.gender)!=null?_response$data$data$g:null);formRef.current.setFieldValue('nationalCard',response!=null&&(_response$data6=response.data)!=null&&(_response$data6$data=_response$data6.data)!=null&&_response$data6$data.nationalCard?response==null?void 0:(_response$data7=response.data)==null?void 0:(_response$data7$data=_response$data7.data)==null?void 0:_response$data7$data.nationalCard:'');formRef.current.setFieldValue('dateNationalId',response!=null&&(_response$data8=response.data)!=null&&(_response$data8$data=_response$data8.data)!=null&&_response$data8$data.dateNationalId?(0,_utils.formatDDMMYYY)(response==null?void 0:(_response$data9=response.data)==null?void 0:(_response$data9$data=_response$data9.data)==null?void 0:_response$data9$data.dateNationalId):'');formRef.current.setFieldValue('bankAccountName',(_response$data$data$b=response==null?void 0:(_response$data0=response.data)==null?void 0:(_response$data0$data=_response$data0.data)==null?void 0:_response$data0$data.bankAccountName)!=null?_response$data$data$b:'');formRef.current.setFieldValue('bankAccountNumber',(_response$data$data$b2=response==null?void 0:(_response$data1=response.data)==null?void 0:(_response$data1$data=_response$data1.data)==null?void 0:_response$data1$data.bankAccountNumber)!=null?_response$data$data$b2:'');formRef.current.setFieldValue('bankId',(_response$data$data$b3=response==null?void 0:(_response$data10=response.data)==null?void 0:(_response$data10$data=_response$data10.data)==null?void 0:_response$data10$data.bankId)!=null?_response$data$data$b3:null);formRef.current.setFieldValue('bankName',(_response$data$data$b4=response==null?void 0:(_response$data11=response.data)==null?void 0:(_response$data11$data=_response$data11.data)==null?void 0:_response$data11$data.bankName)!=null?_response$data$data$b4:'');}else{}}_context.next=3;break;case 2:_context.prev=2;_t=_context["catch"](0);setIsLoading(false);console.log(_t);case 3:case"end":return _context.stop();}},null,null,[[0,2]],Promise);};(0,_react.useEffect)(function(){getData();_store.default.getListBank();},[]);var onSubmit=function _callee2(values){var _props$route2,_props$route2$params,_props$route2$params$,body,response,_response$data12,_response$data12$meta,_response$data13,_response$data13$meta,_t2;return _regenerator.default.async(function(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.prev=0;setIsLoading(true);body={LoanBriefId:(_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,DateNationalId:(0,_moment.default)(values.dateNationalId,'DD/MM/YYYY').format('YYYY-MM-DD'),bankId:values.bankId,bankAccountName:values==null?void 0:values.bankAccountName,bankAccountNumber:values==null?void 0:values.bankAccountNumber};_context3.next=1;return _regenerator.default.awrap(_api.Api.getInstance().updateInfoLoanTopupV2(body));case 1:response=_context3.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data12=response.data)==null?void 0:(_response$data12$meta=_response$data12.meta)==null?void 0:_response$data12$meta.errorCode)===200){_AlertGlobal.AlertGlobal.show({type:'success',title:'Thông báo',message:'Cập nhật thông tin thành công',primaryText:'Đồng ý',onPrimaryPress:function onPrimaryPress(){var _props$route3,_props$route3$params,_props$route3$params$,_props$route4,_props$route4$params,_props$route4$params$;return _regenerator.default.async(function(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=1;return _regenerator.default.awrap((0,_utils.logEvent)('thongtinvay_completed',{event:'thongtinvay_completed',createdAt:new Date(),deviceId:_AppStore.default.deviceId,loanId:String((_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$.id),utmSource:(_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$.utmSource}));case 1:(0,_utils.logEventFb)('thongtinvay_completed');navigation.dispatch(_native.CommonActions.reset({index:1,routes:[{name:_navigation.ScreenNames.Main}]}));case 2:case"end":return _context2.stop();}},null,null,null,Promise);}});}else{_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:(_response$data13=response.data)==null?void 0:(_response$data13$meta=_response$data13.meta)==null?void 0:_response$data13$meta.errorMessage,primaryText:'Đóng'});}}else{_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Có lỗi xảy ra. Vui lòng thử lại sau',primaryText:'Đóng'});}_context3.next=3;break;case 2:_context3.prev=2;_t2=_context3["catch"](0);setIsLoading(false);console.log(_t2);case 3:case"end":return _context3.stop();}},null,null,[[0,2]],Promise);};return _react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:166,columnNumber:5}},_react.default.createElement(_MHeader.default,{title:"Vay Online 24/7",__self:this,__source:{fileName:_jsxFileName,lineNumber:167,columnNumber:7}}),_react.default.createElement(_reactNative.View,{style:_CommonStyles.commonStyles.fill,__self:this,__source:{fileName:_jsxFileName,lineNumber:168,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:$h,__self:this,__source:{fileName:_jsxFileName,lineNumber:169,columnNumber:9}}),_react.default.createElement(_reactNative.View,{style:$bg,__self:this,__source:{fileName:_jsxFileName,lineNumber:170,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{paddingVertical:10,flexDirection:'row',alignItems:'center',paddingHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:171,columnNumber:11}},_react.default.createElement(_reactNative.TouchableOpacity,{style:{zIndex:1000},onPress:function onPress(){_AlertGlobal.AlertGlobal.show({type:'confirm',title:'Thoát cập nhật thông tin',message:'Bạn có chắc chắn muốn thoát cập nhật thông tin không?',primaryText:'Có',onPrimaryPress:function onPrimaryPress(){navigation.dispatch(_native.CommonActions.reset({index:1,routes:[{name:_navigation.ScreenNames.Main}]}));},secondaryText:'Không'});},__self:this,__source:{fileName:_jsxFileName,lineNumber:179,columnNumber:13}},_react.default.createElement(_svgs.IconBack,{__self:this,__source:{fileName:_jsxFileName,lineNumber:202,columnNumber:15}})),_react.default.createElement(_MText.MText,{style:$title,__self:this,__source:{fileName:_jsxFileName,lineNumber:204,columnNumber:13}},"Th\xF4ng tin chi ti\u1EBFt")),_react.default.createElement(_formik.Formik,{onSubmit:onSubmit,innerRef:formRef,initialValues:{fullName:'',dob:'',gender:null,nationalCard:'',dateNationalId:'',bankId:null,bankName:'',bankAccountName:'',bankAccountNumber:''},validateOnBlur:false,validateOnChange:false,validationSchema:yup.object().shape({dateNationalId:yup.string().required('Vui lòng chọn ngày cấp CCCD'),bankName:yup.string().required('Vui lòng chọn ngân hàng'),bankAccountName:yup.string().required('Vui lòng nhập chủ thẻ'),bankAccountNumber:yup.string().required('Vui lòng nhập số tài khoản')}),__self:this,__source:{fileName:_jsxFileName,lineNumber:206,columnNumber:11}},function(_ref){var values=_ref.values,errors=_ref.errors,setFieldValue=_ref.setFieldValue,handleSubmit=_ref.handleSubmit,handleChange=_ref.handleChange;return _react.default.createElement(_reactNative.View,{style:{flex:1,paddingHorizontal:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:238,columnNumber:15}},_react.default.createElement(_reactNative.ScrollView,{style:[_CommonStyles.commonStyles.fill],showsVerticalScrollIndicator:false,__self:_this,__source:{fileName:_jsxFileName,lineNumber:239,columnNumber:17}},_react.default.createElement(_MText.MText,{style:$title2,__self:_this,__source:{fileName:_jsxFileName,lineNumber:243,columnNumber:19}},"1.1 Th\xF4ng tin c\xE1 nh\xE2n"),_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:244,columnNumber:19}},"H\u1ECD v\xE0 t\xEAn"),_react.default.createElement(_reactNative.TextInput,{editable:false,style:[$textInput,{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium',backgroundColor:'#EAEAEA'}],value:values.fullName,__self:_this,__source:{fileName:_jsxFileName,lineNumber:245,columnNumber:19}}),errors&&errors.fullName&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:259,columnNumber:21}},errors.fullName),_react.default.createElement(_reactNative.View,{style:[$row,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:261,columnNumber:19}},_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.fill],__self:_this,__source:{fileName:_jsxFileName,lineNumber:262,columnNumber:21}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:263,columnNumber:23}},"Sinh ng\xE0y"),_react.default.createElement(_reactNative.TouchableOpacity,{style:[$select,{backgroundColor:'#EAEAEA'}],disabled:true,__self:_this,__source:{fileName:_jsxFileName,lineNumber:264,columnNumber:23}},_react.default.createElement(_MText.MText,{style:{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:268,columnNumber:25}},values.dob))),_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.fill],__self:_this,__source:{fileName:_jsxFileName,lineNumber:279,columnNumber:21}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:280,columnNumber:23}},"Gi\u1EDBi t\xEDnh"),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:true,style:[$select,{backgroundColor:'#EAEAEA'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:281,columnNumber:23}},_react.default.createElement(_MText.MText,{style:{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium',flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:285,columnNumber:25}},values.gender===0?'Nam':values.gender===1?'Nữ':''),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:299,columnNumber:25}})))),_react.default.createElement(_reactNative.View,{style:[$row],__self:_this,__source:{fileName:_jsxFileName,lineNumber:304,columnNumber:19}},_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.fill],__self:_this,__source:{fileName:_jsxFileName,lineNumber:305,columnNumber:21}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:306,columnNumber:23}},"S\u1ED1 CCCD/CMND"),_react.default.createElement(_reactNative.TextInput,{editable:false,keyboardType:"number-pad",style:[$textInput,{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium',backgroundColor:'#EAEAEA'}],value:values.nationalCard,onChangeText:handleChange('nationalCard'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:307,columnNumber:23}})),_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.fill],__self:_this,__source:{fileName:_jsxFileName,lineNumber:323,columnNumber:21}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:324,columnNumber:23}},"Ng\xE0y c\u1EA5p"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){setShowDate(true);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:325,columnNumber:23}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:values.dateNationalId!==''?'#333333':'#BDBDBD',fontSize:16,fontWeight:'500',flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:331,columnNumber:25}},values.dateNationalId!==''?values.dateNationalId:'DD/MM/YYYY')),errors&&errors.dateNationalId&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:349,columnNumber:21}},errors.dateNationalId)),_react.default.createElement(_reactNativeDatePicker.default,{mode:"date",open:showDate,modal:true,title:"Ch\u1ECDn th\u1EDDi gian",locale:"vi",date:new Date(),onCancel:function onCancel(){setShowDate(false);},onConfirm:function onConfirm(date){setShowDate(false);setFieldValue('dateNationalId',(0,_utils.formatDDMMYYY)(date));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:353,columnNumber:21}})),_react.default.createElement(_MText.MText,{style:[$title2],__self:_this,__source:{fileName:_jsxFileName,lineNumber:370,columnNumber:19}},"1.2 Th\xF4ng tin gi\u1EA3i ng\xE2n"),_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:371,columnNumber:19}},"Ng\xE2n h\xE0ng"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){navigation.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn ngân hàng',data:_store.default.listBank,callback:function callback(value){setFieldValue('bankName',value.name);setFieldValue('bankId',value.id);}});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:372,columnNumber:19}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:'#333333',fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:385,columnNumber:21}},values.bankName),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:396,columnNumber:21}})),errors&&errors.bankName&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:399,columnNumber:21}},errors.bankName),_react.default.createElement(_MText.MText,{style:[$label,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:401,columnNumber:19}},"T\xEAn s\u1ED1 t\xE0i kho\u1EA3n"),_react.default.createElement(_reactNative.TextInput,{numberOfLines:1,style:[$textInput,{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium'}],value:values.bankAccountName,onChangeText:handleChange('bankAccountName'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:404,columnNumber:19}}),errors&&errors.bankAccountName&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:418,columnNumber:21}},errors.bankAccountName),_react.default.createElement(_MText.MText,{style:[$label,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:420,columnNumber:19}},"S\u1ED1 t\xE0i kho\u1EA3n"),_react.default.createElement(_reactNative.TextInput,{keyboardType:"number-pad",numberOfLines:1,style:[$textInput,{color:'#333333',fontSize:16,fontWeight:'500'}],value:values.bankAccountNumber,onChangeText:handleChange('bankAccountNumber'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:423,columnNumber:19}}),errors&&errors.bankAccountNumber&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:438,columnNumber:21}},errors.bankAccountNumber),_react.default.createElement(_reactNative.View,{style:{height:50},__self:_this,__source:{fileName:_jsxFileName,lineNumber:440,columnNumber:19}})),_react.default.createElement(_reactNative.View,{style:{position:'absolute',bottom:24,left:16,right:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:442,columnNumber:17}},_react.default.createElement(_MButton.default,{onPress:function onPress(){handleSubmit();},style:{marginVertical:24},__self:_this,__source:{fileName:_jsxFileName,lineNumber:450,columnNumber:19}},_react.default.createElement(_reactNativeLinearGradient.default,{start:{x:1,y:0},end:{x:0,y:1},style:{height:40,borderRadius:30,alignItems:'center',justifyContent:'center'},colors:['#FF7A00','#EF4123'],__self:_this,__source:{fileName:_jsxFileName,lineNumber:458,columnNumber:21}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:469,columnNumber:23}},"X\xE1c nh\u1EADn")))));}))),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:485,columnNumber:7}}));}var $row={flexDirection:'row',marginBottom:16,gap:16};var $textInput={borderWidth:1,borderRadius:4,borderColor:'#E0E0E0',height:40,paddingHorizontal:8,fontFamily:'BeVietnamPro-Medium'};var $label={fontSize:14,color:'#333333',paddingBottom:5};var $title2={fontSize:16,fontWeight:'bold',color:'#333333',paddingBottom:10,marginTop:6};var $title={fontSize:16,fontWeight:'bold',color:'#333333',position:'absolute',left:0,right:0,textAlign:'center'};var $h={backgroundColor:'#EF592E',position:'absolute',height:30,width:'100%'};var $bg={borderTopLeftRadius:30,borderTopRightRadius:30,backgroundColor:'white',flex:1};var $select={flexDirection:'row',height:40,alignItems:'center',paddingHorizontal:8,borderWidth:1,borderRadius:4,borderColor:'#E0E0E0'};var $error={color:'#EB5757',fontSize:14,fontStyle:'italic',fontFamily:'BeVietnamPro-Thin',fontWeight:'300',marginTop:5};
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=TopupLoanInfo;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _CommonStyles=require("../CommonStyles");var _MText=require("../../components/MText");var _navigation=require("../../navigation");var _native=require("@react-navigation/native");var _svgs=require("../../assets/svgs");var _formik=require("formik");var _icons=require("../../assets/icons");var _AppStore=_interopRequireDefault(require("../../AppStore"));var _utils=require("../../utils");var _api=require("../../services/api");var _store=_interopRequireDefault(require("./store"));var _Loading=_interopRequireDefault(require("../../components/Loading"));var _MButton=_interopRequireDefault(require("../../components/MButton"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _moment=_interopRequireDefault(require("moment"));var yup=_interopRequireWildcard(require("yup"));var _reactNativeDatePicker=_interopRequireDefault(require("react-native-date-picker"));var _AlertGlobal=require("../../components/ModalNotification/AlertGlobal");var _jsxFileName="/Users/tima/Tima/react-native-timacare/src/screens/toan-trinh-so/TopupLoanInfo.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t3 in e)"default"!==_t3&&{}.hasOwnProperty.call(e,_t3)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t3))&&(i.get||i.set)?o(f,_t3,i):f[_t3]=e[_t3]);return f;})(e,t);}function TopupLoanInfo(props){var _this=this;var navigation=(0,_native.useNavigation)();var formRef=(0,_react.useRef)(null);var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),isLoading=_useState2[0],setIsLoading=_useState2[1];var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),showDate=_useState4[0],setShowDate=_useState4[1];var getData=function _callee(){var _props$route,_props$route$params,_props$route$params$l,response,_response$data,_response$data2,_response$data2$data,_response$data3,_response$data3$data,_response$data4,_response$data4$data,_response$data$data$g,_response$data5,_response$data5$data,_response$data6,_response$data6$data,_response$data7,_response$data7$data,_response$data8,_response$data8$data,_response$data9,_response$data9$data,_response$data$data$b,_response$data0,_response$data0$data,_response$data$data$b2,_response$data1,_response$data1$data,_response$data$data$b3,_response$data10,_response$data10$data,_response$data$data$b4,_response$data11,_response$data11$data,_t;return _regenerator.default.async(function(_context){while(1)switch(_context.prev=_context.next){case 0:_context.prev=0;setIsLoading(true);_context.next=1;return _regenerator.default.awrap(_api.Api.getInstance().getInfoCustomerV2((_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));case 1:response=_context.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data=response.data)==null?void 0:_response$data.meta.errorCode)===200){formRef.current.setFieldValue('fullName',response==null?void 0:(_response$data2=response.data)==null?void 0:(_response$data2$data=_response$data2.data)==null?void 0:_response$data2$data.fullName);formRef.current.setFieldValue('dob',response!=null&&(_response$data3=response.data)!=null&&(_response$data3$data=_response$data3.data)!=null&&_response$data3$data.dob?(0,_utils.formatDDMMYYY)(response==null?void 0:(_response$data4=response.data)==null?void 0:(_response$data4$data=_response$data4.data)==null?void 0:_response$data4$data.dob):'');formRef.current.setFieldValue('gender',(_response$data$data$g=response==null?void 0:(_response$data5=response.data)==null?void 0:(_response$data5$data=_response$data5.data)==null?void 0:_response$data5$data.gender)!=null?_response$data$data$g:null);formRef.current.setFieldValue('nationalCard',response!=null&&(_response$data6=response.data)!=null&&(_response$data6$data=_response$data6.data)!=null&&_response$data6$data.nationalCard?response==null?void 0:(_response$data7=response.data)==null?void 0:(_response$data7$data=_response$data7.data)==null?void 0:_response$data7$data.nationalCard:'');formRef.current.setFieldValue('dateNationalId',response!=null&&(_response$data8=response.data)!=null&&(_response$data8$data=_response$data8.data)!=null&&_response$data8$data.dateNationalId?(0,_utils.formatDDMMYYY)(response==null?void 0:(_response$data9=response.data)==null?void 0:(_response$data9$data=_response$data9.data)==null?void 0:_response$data9$data.dateNationalId):'');formRef.current.setFieldValue('bankAccountName',(_response$data$data$b=response==null?void 0:(_response$data0=response.data)==null?void 0:(_response$data0$data=_response$data0.data)==null?void 0:_response$data0$data.bankAccountName)!=null?_response$data$data$b:'');formRef.current.setFieldValue('bankAccountNumber',(_response$data$data$b2=response==null?void 0:(_response$data1=response.data)==null?void 0:(_response$data1$data=_response$data1.data)==null?void 0:_response$data1$data.bankAccountNumber)!=null?_response$data$data$b2:'');formRef.current.setFieldValue('bankId',(_response$data$data$b3=response==null?void 0:(_response$data10=response.data)==null?void 0:(_response$data10$data=_response$data10.data)==null?void 0:_response$data10$data.bankId)!=null?_response$data$data$b3:null);formRef.current.setFieldValue('bankName',(_response$data$data$b4=response==null?void 0:(_response$data11=response.data)==null?void 0:(_response$data11$data=_response$data11.data)==null?void 0:_response$data11$data.bankName)!=null?_response$data$data$b4:'');}else{}}_context.next=3;break;case 2:_context.prev=2;_t=_context["catch"](0);setIsLoading(false);console.log(_t);case 3:case"end":return _context.stop();}},null,null,[[0,2]],Promise);};(0,_react.useEffect)(function(){getData();_store.default.getListBank();},[]);var onSubmit=function _callee2(values){var _props$route2,_props$route2$params,_props$route2$params$,body,response,_response$data12,_response$data12$meta,_response$data13,_response$data13$meta,_t2;return _regenerator.default.async(function(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.prev=0;setIsLoading(true);body={LoanBriefId:(_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,DateNationalId:(0,_moment.default)(values.dateNationalId,'DD/MM/YYYY').format('YYYY-MM-DD'),bankId:values.bankId,bankAccountName:values==null?void 0:values.bankAccountName,bankAccountNumber:values==null?void 0:values.bankAccountNumber};_context3.next=1;return _regenerator.default.awrap(_api.Api.getInstance().updateInfoLoanTopupV2(body));case 1:response=_context3.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data12=response.data)==null?void 0:(_response$data12$meta=_response$data12.meta)==null?void 0:_response$data12$meta.errorCode)===200){_AlertGlobal.AlertGlobal.show({type:'success',title:'Thông báo',message:'Cập nhật thông tin thành công',primaryText:'Đồng ý',onPrimaryPress:function onPrimaryPress(){var _props$route3,_props$route3$params,_props$route3$params$,_props$route4,_props$route4$params,_props$route4$params$;return _regenerator.default.async(function(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=1;return _regenerator.default.awrap((0,_utils.logEvent)('thongtinvay_completed',{event:'thongtinvay_completed',createdAt:new Date(),deviceId:_AppStore.default.deviceId,loanId:String((_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$.id),utmSource:(_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$.utmSource}));case 1:(0,_utils.logEventFb)('thongtinvay_completed');navigation.dispatch(_native.CommonActions.reset({index:1,routes:[{name:_navigation.ScreenNames.Main}]}));case 2:case"end":return _context2.stop();}},null,null,null,Promise);}});}else{_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:(_response$data13=response.data)==null?void 0:(_response$data13$meta=_response$data13.meta)==null?void 0:_response$data13$meta.errorMessage,primaryText:'Đóng'});}}else{_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Có lỗi xảy ra. Vui lòng thử lại sau',primaryText:'Đóng'});}_context3.next=3;break;case 2:_context3.prev=2;_t2=_context3["catch"](0);setIsLoading(false);console.log(_t2);case 3:case"end":return _context3.stop();}},null,null,[[0,2]],Promise);};return _react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:166,columnNumber:5}},_react.default.createElement(_MHeader.default,{title:"Vay Online 24/7",__self:this,__source:{fileName:_jsxFileName,lineNumber:167,columnNumber:7}}),_react.default.createElement(_reactNative.View,{style:_CommonStyles.commonStyles.fill,__self:this,__source:{fileName:_jsxFileName,lineNumber:168,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:$h,__self:this,__source:{fileName:_jsxFileName,lineNumber:169,columnNumber:9}}),_react.default.createElement(_reactNative.View,{style:$bg,__self:this,__source:{fileName:_jsxFileName,lineNumber:170,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{paddingVertical:10,flexDirection:'row',alignItems:'center',paddingHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:171,columnNumber:11}},_react.default.createElement(_reactNative.TouchableOpacity,{style:{zIndex:1000},onPress:function onPress(){_AlertGlobal.AlertGlobal.show({type:'confirm',title:'Thoát cập nhật thông tin',message:'Bạn có chắc chắn muốn thoát cập nhật thông tin không?',primaryText:'Có',onPrimaryPress:function onPrimaryPress(){navigation.dispatch(_native.CommonActions.reset({index:1,routes:[{name:_navigation.ScreenNames.Main}]}));},secondaryText:'Không'});},__self:this,__source:{fileName:_jsxFileName,lineNumber:179,columnNumber:13}},_react.default.createElement(_svgs.IconBack,{__self:this,__source:{fileName:_jsxFileName,lineNumber:202,columnNumber:15}})),_react.default.createElement(_MText.MText,{style:$title,__self:this,__source:{fileName:_jsxFileName,lineNumber:204,columnNumber:13}},"Th\xF4ng tin chi ti\u1EBFt")),_react.default.createElement(_formik.Formik,{onSubmit:onSubmit,innerRef:formRef,initialValues:{fullName:'',dob:'',gender:null,nationalCard:'',dateNationalId:'',bankId:null,bankName:'',bankAccountName:'',bankAccountNumber:''},validateOnBlur:false,validateOnChange:false,validationSchema:yup.object().shape({dateNationalId:yup.string().required('Vui lòng chọn ngày cấp CCCD'),bankName:yup.string().required('Vui lòng chọn ngân hàng'),bankAccountName:yup.string().required('Vui lòng nhập chủ thẻ'),bankAccountNumber:yup.string().required('Vui lòng nhập số tài khoản')}),__self:this,__source:{fileName:_jsxFileName,lineNumber:206,columnNumber:11}},function(_ref){var values=_ref.values,errors=_ref.errors,setFieldValue=_ref.setFieldValue,handleSubmit=_ref.handleSubmit,handleChange=_ref.handleChange;return _react.default.createElement(_reactNative.View,{style:{flex:1,paddingHorizontal:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:240,columnNumber:15}},_react.default.createElement(_reactNative.ScrollView,{style:[_CommonStyles.commonStyles.fill],showsVerticalScrollIndicator:false,__self:_this,__source:{fileName:_jsxFileName,lineNumber:241,columnNumber:17}},_react.default.createElement(_MText.MText,{style:$title2,__self:_this,__source:{fileName:_jsxFileName,lineNumber:245,columnNumber:19}},"1.1 Th\xF4ng tin c\xE1 nh\xE2n"),_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:246,columnNumber:19}},"H\u1ECD v\xE0 t\xEAn"),_react.default.createElement(_reactNative.TextInput,{editable:false,style:[$textInput,{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium',backgroundColor:'#EAEAEA'}],value:values.fullName,__self:_this,__source:{fileName:_jsxFileName,lineNumber:247,columnNumber:19}}),errors&&errors.fullName&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:261,columnNumber:21}},errors.fullName),_react.default.createElement(_reactNative.View,{style:[$row,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:263,columnNumber:19}},_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.fill],__self:_this,__source:{fileName:_jsxFileName,lineNumber:264,columnNumber:21}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:265,columnNumber:23}},"Sinh ng\xE0y"),_react.default.createElement(_reactNative.TouchableOpacity,{style:[$select,{backgroundColor:'#EAEAEA'}],disabled:true,__self:_this,__source:{fileName:_jsxFileName,lineNumber:266,columnNumber:23}},_react.default.createElement(_MText.MText,{style:{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:270,columnNumber:25}},values.dob))),_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.fill],__self:_this,__source:{fileName:_jsxFileName,lineNumber:281,columnNumber:21}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:282,columnNumber:23}},"Gi\u1EDBi t\xEDnh"),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:true,style:[$select,{backgroundColor:'#EAEAEA'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:283,columnNumber:23}},_react.default.createElement(_MText.MText,{style:{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium',flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:287,columnNumber:25}},values.gender===0?'Nam':values.gender===1?'Nữ':''),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:301,columnNumber:25}})))),_react.default.createElement(_reactNative.View,{style:[$row],__self:_this,__source:{fileName:_jsxFileName,lineNumber:306,columnNumber:19}},_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.fill],__self:_this,__source:{fileName:_jsxFileName,lineNumber:307,columnNumber:21}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:308,columnNumber:23}},"S\u1ED1 CCCD/CMND"),_react.default.createElement(_reactNative.TextInput,{editable:false,keyboardType:"number-pad",style:[$textInput,{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium',backgroundColor:'#EAEAEA'}],value:values.nationalCard,onChangeText:handleChange('nationalCard'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:309,columnNumber:23}})),_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.fill],__self:_this,__source:{fileName:_jsxFileName,lineNumber:325,columnNumber:21}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:326,columnNumber:23}},"Ng\xE0y c\u1EA5p"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){setShowDate(true);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:327,columnNumber:23}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:values.dateNationalId!==''?'#333333':'#BDBDBD',fontSize:16,fontWeight:'500',flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:333,columnNumber:25}},values.dateNationalId!==''?values.dateNationalId:'DD/MM/YYYY')),errors&&errors.dateNationalId&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:351,columnNumber:25}},errors.dateNationalId)),_react.default.createElement(_reactNativeDatePicker.default,{mode:"date",open:showDate,modal:true,title:"Ch\u1ECDn th\u1EDDi gian",locale:"vi",date:new Date(),onCancel:function onCancel(){setShowDate(false);},onConfirm:function onConfirm(date){setShowDate(false);setFieldValue('dateNationalId',(0,_utils.formatDDMMYYY)(date));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:355,columnNumber:21}})),_react.default.createElement(_MText.MText,{style:[$title2],__self:_this,__source:{fileName:_jsxFileName,lineNumber:372,columnNumber:19}},"1.2 Th\xF4ng tin gi\u1EA3i ng\xE2n"),_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:373,columnNumber:19}},"Ng\xE2n h\xE0ng"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){navigation.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn ngân hàng',data:_store.default.listBank,callback:function callback(value){setFieldValue('bankName',value.name);setFieldValue('bankId',value.id);}});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:374,columnNumber:19}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:'#333333',fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:387,columnNumber:21}},values.bankName),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:398,columnNumber:21}})),errors&&errors.bankName&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:401,columnNumber:21}},errors.bankName),_react.default.createElement(_MText.MText,{style:[$label,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:403,columnNumber:19}},"T\xEAn s\u1ED1 t\xE0i kho\u1EA3n"),_react.default.createElement(_reactNative.TextInput,{numberOfLines:1,style:[$textInput,{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium'}],value:values.bankAccountName,onChangeText:handleChange('bankAccountName'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:406,columnNumber:19}}),errors&&errors.bankAccountName&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:420,columnNumber:21}},errors.bankAccountName),_react.default.createElement(_MText.MText,{style:[$label,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:422,columnNumber:19}},"S\u1ED1 t\xE0i kho\u1EA3n"),_react.default.createElement(_reactNative.TextInput,{keyboardType:"number-pad",numberOfLines:1,style:[$textInput,{color:'#333333',fontSize:16,fontWeight:'500'}],value:values.bankAccountNumber,onChangeText:handleChange('bankAccountNumber'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:425,columnNumber:19}}),errors&&errors.bankAccountNumber&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:440,columnNumber:21}},errors.bankAccountNumber),_react.default.createElement(_reactNative.View,{style:{height:50},__self:_this,__source:{fileName:_jsxFileName,lineNumber:442,columnNumber:19}})),_react.default.createElement(_reactNative.View,{style:{position:'absolute',bottom:24,left:16,right:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:444,columnNumber:17}},_react.default.createElement(_MButton.default,{onPress:function onPress(){handleSubmit();},style:{marginVertical:24},__self:_this,__source:{fileName:_jsxFileName,lineNumber:452,columnNumber:19}},_react.default.createElement(_reactNativeLinearGradient.default,{start:{x:1,y:0},end:{x:0,y:1},style:{height:40,borderRadius:30,alignItems:'center',justifyContent:'center'},colors:['#FF7A00','#EF4123'],__self:_this,__source:{fileName:_jsxFileName,lineNumber:460,columnNumber:21}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:471,columnNumber:23}},"X\xE1c nh\u1EADn")))));}))),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:487,columnNumber:7}}));}var $row={flexDirection:'row',marginBottom:16,gap:16};var $textInput={borderWidth:1,borderRadius:4,borderColor:'#E0E0E0',height:40,paddingHorizontal:8,fontFamily:'BeVietnamPro-Medium',fontSize:14};var $label={fontSize:14,color:'#333333',paddingBottom:5};var $title2={fontSize:16,fontWeight:'bold',color:'#333333',paddingBottom:10,marginTop:6};var $title={fontSize:16,fontWeight:'bold',color:'#333333',position:'absolute',left:0,right:0,textAlign:'center'};var $h={backgroundColor:'#EF592E',position:'absolute',height:30,width:'100%'};var $bg={borderTopLeftRadius:30,borderTopRightRadius:30,backgroundColor:'white',flex:1};var $select={flexDirection:'row',height:40,alignItems:'center',paddingHorizontal:8,borderWidth:1,borderRadius:4,borderColor:'#E0E0E0'};var $error={color:'#EB5757',fontSize:14,fontStyle:'italic',fontFamily:'BeVietnamPro-Thin',fontWeight:'300',marginTop:5};
2
2
  //# sourceMappingURL=TopupLoanInfo.js.map
@@ -220,7 +220,9 @@ export default function TopupLoanInfo(props) {
220
220
  validateOnBlur={false}
221
221
  validateOnChange={false}
222
222
  validationSchema={yup.object().shape({
223
- dateNationalId: yup.string().required('Vui lòng chọn ngày cấp CCCD'),
223
+ dateNationalId: yup
224
+ .string()
225
+ .required('Vui lòng chọn ngày cấp CCCD'),
224
226
  bankName: yup.string().required('Vui lòng chọn ngân hàng'),
225
227
  bankAccountName: yup.string().required('Vui lòng nhập chủ thẻ'),
226
228
  bankAccountNumber: yup
@@ -293,8 +295,8 @@ export default function TopupLoanInfo(props) {
293
295
  {values.gender === 0
294
296
  ? 'Nam'
295
297
  : values.gender === 1
296
- ? 'Nữ'
297
- : ''}
298
+ ? 'Nữ'
299
+ : ''}
298
300
  </MText>
299
301
  <DropDown2 />
300
302
  </TouchableOpacity>
@@ -346,8 +348,8 @@ export default function TopupLoanInfo(props) {
346
348
  </MText>
347
349
  </TouchableOpacity>
348
350
  {errors && errors.dateNationalId && (
349
- <MText style={$error}>{errors.dateNationalId}</MText>
350
- )}
351
+ <MText style={$error}>{errors.dateNationalId}</MText>
352
+ )}
351
353
  </View>
352
354
 
353
355
  <DatePicker
@@ -500,6 +502,7 @@ const $textInput: ViewStyle = {
500
502
  height: 40,
501
503
  paddingHorizontal: 8,
502
504
  fontFamily: 'BeVietnamPro-Medium',
505
+ fontSize: 14,
503
506
  };
504
507
 
505
508
  const $label: TextStyle = {
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_MHeader","_interopRequireDefault","_CommonStyles","_MText","_navigation","_native","_svgs","_formik","_icons","_AppStore","_utils","_api","_store","_Loading","_MButton","_reactNativeLinearGradient","_moment","yup","_reactNativeDatePicker","_AlertGlobal","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t3","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","TopupLoanInfo","props","_this","navigation","useNavigation","formRef","useRef","_useState","useState","_useState2","_slicedToArray2","isLoading","setIsLoading","_useState3","_useState4","showDate","setShowDate","getData","_callee","_props$route","_props$route$params","_props$route$params$l","response","_response$data","_response$data2","_response$data2$data","_response$data3","_response$data3$data","_response$data4","_response$data4$data","_response$data$data$g","_response$data5","_response$data5$data","_response$data6","_response$data6$data","_response$data7","_response$data7$data","_response$data8","_response$data8$data","_response$data9","_response$data9$data","_response$data$data$b","_response$data0","_response$data0$data","_response$data$data$b2","_response$data1","_response$data1$data","_response$data$data$b3","_response$data10","_response$data10$data","_response$data$data$b4","_response$data11","_response$data11$data","_t","_regenerator","async","_context","prev","next","awrap","Api","getInstance","getInfoCustomerV2","route","params","loan","id","sent","kind","data","meta","errorCode","current","setFieldValue","fullName","dob","formatDDMMYYY","gender","nationalCard","dateNationalId","bankAccountName","bankAccountNumber","bankId","bankName","console","log","stop","Promise","useEffect","ttsStore","getListBank","onSubmit","_callee2","values","_props$route2","_props$route2$params","_props$route2$params$","body","_response$data12","_response$data12$meta","_response$data13","_response$data13$meta","_t2","_context3","LoanBriefId","DateNationalId","moment","format","updateInfoLoanTopupV2","AlertGlobal","show","type","title","message","primaryText","onPrimaryPress","_props$route3","_props$route3$params","_props$route3$params$","_props$route4","_props$route4$params","_props$route4$params$","_context2","logEvent","event","createdAt","Date","deviceId","appStore","loanId","String","utmSource","logEventFb","dispatch","CommonActions","reset","index","routes","name","ScreenNames","Main","errorMessage","createElement","View","style","flex","__self","__source","fileName","lineNumber","columnNumber","commonStyles","fill","$h","$bg","paddingVertical","flexDirection","alignItems","paddingHorizontal","TouchableOpacity","zIndex","onPress","secondaryText","IconBack","MText","$title","Formik","innerRef","initialValues","validateOnBlur","validateOnChange","validationSchema","object","shape","string","required","_ref","errors","handleSubmit","handleChange","ScrollView","showsVerticalScrollIndicator","$title2","$label","TextInput","editable","$textInput","color","fontWeight","fontFamily","backgroundColor","value","$error","$row","marginTop","$select","disabled","DropDown2","keyboardType","onChangeText","numberOfLines","fontSize","mode","open","modal","locale","date","onCancel","onConfirm","push","CommonSelect","listBank","callback","height","position","bottom","left","right","marginVertical","start","x","y","end","borderRadius","justifyContent","colors","marginBottom","gap","borderWidth","borderColor","paddingBottom","textAlign","width","borderTopLeftRadius","borderTopRightRadius","fontStyle"],"sourceRoot":"../../../../src","sources":["screens/toan-trinh-so/TopupLoanInfo.tsx"],"mappings":"qVACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBASA,IAAAE,QAAA,CAAAC,sBAAA,CAAAH,OAAA,8BACA,IAAAI,aAAA,CAAAJ,OAAA,oBACA,IAAAK,MAAA,CAAAL,OAAA,2BACA,IAAAM,WAAA,CAAAN,OAAA,qBACA,IAAAO,OAAA,CAAAP,OAAA,6BACA,IAAAQ,KAAA,CAAAR,OAAA,sBACA,IAAAS,OAAA,CAAAT,OAAA,WACA,IAAAU,MAAA,CAAAV,OAAA,uBACA,IAAAW,SAAA,CAAAR,sBAAA,CAAAH,OAAA,oBACA,IAAAY,MAAA,CAAAZ,OAAA,gBACA,IAAAa,IAAA,CAAAb,OAAA,uBAGA,IAAAc,MAAA,CAAAX,sBAAA,CAAAH,OAAA,aACA,IAAAe,QAAA,CAAAZ,sBAAA,CAAAH,OAAA,8BACA,IAAAgB,QAAA,CAAAb,sBAAA,CAAAH,OAAA,8BACA,IAAAiB,0BAAA,CAAAd,sBAAA,CAAAH,OAAA,kCACA,IAAAkB,OAAA,CAAAf,sBAAA,CAAAH,OAAA,YACA,IAAAmB,GAAA,CAAApB,uBAAA,CAAAC,OAAA,SACA,IAAAoB,sBAAA,CAAAjB,sBAAA,CAAAH,OAAA,8BACA,IAAAqB,YAAA,CAAArB,OAAA,mDAA6E,IAAAsB,YAAA,+FAAAvB,wBAAAwB,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAA1B,uBAAA,UAAAA,wBAAAwB,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,CAAAK,UAAA,QAAAL,CAAA,KAAAM,C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UAAU,CAAE,MAAM,CAClBD,KAAK,CAAE,SAAS,CAChB2B,QAAQ,CAAE,UAAU,CACpBE,IAAI,CAAE,CAAC,CACPC,KAAK,CAAE,CAAC,CACRc,SAAS,CAAE,QACb,CAAC,CACD,GAAM,CAAA9E,EAAa,CAAG,CACpBqC,eAAe,CAAE,SAAS,CAC1BwB,QAAQ,CAAE,UAAU,CACpBD,MAAM,CAAE,EAAE,CACVmB,KAAK,CAAE,MACT,CAAC,CAED,GAAM,CAAA9E,GAAc,CAAG,CACrB+E,mBAAmB,CAAE,EAAE,CACvBC,oBAAoB,CAAE,EAAE,CACxB5C,eAAe,CAAE,OAAO,CACxB7C,IAAI,CAAE,CACR,CAAC,CAED,GAAM,CAAAkD,OAAkB,CAAG,CACzBvC,aAAa,CAAE,KAAK,CACpByD,MAAM,CAAE,EAAE,CACVxD,UAAU,CAAE,QAAQ,CACpBC,iBAAiB,CAAE,CAAC,CACpBsE,WAAW,CAAE,CAAC,CACdL,YAAY,CAAE,CAAC,CACfM,WAAW,CAAE,SACf,CAAC,CAED,GAAM,CAAArC,MAAiB,CAAG,CACxBL,KAAK,CAAE,SAAS,CAChBc,QAAQ,CAAE,EAAE,CACZkC,SAAS,CAAE,QAAQ,CACnB9C,UAAU,CAAE,mBAAmB,CAC/BD,UAAU,CAAE,KAAK,CACjBM,SAAS,CAAE,CACb,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_MHeader","_interopRequireDefault","_CommonStyles","_MText","_navigation","_native","_svgs","_formik","_icons","_AppStore","_utils","_api","_store","_Loading","_MButton","_reactNativeLinearGradient","_moment","yup","_reactNativeDatePicker","_AlertGlobal","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t3","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","TopupLoanInfo","props","_this","navigation","useNavigation","formRef","useRef","_useState","useState","_useState2","_slicedToArray2","isLoading","setIsLoading","_useState3","_useState4","showDate","setShowDate","getData","_callee","_props$route","_props$route$params","_props$route$params$l","response","_response$data","_response$data2","_response$data2$data","_response$data3","_response$data3$data","_response$data4","_response$data4$data","_response$data$data$g","_response$data5","_response$data5$data","_response$data6","_response$data6$data","_response$data7","_response$data7$data","_response$data8","_response$data8$data","_response$data9","_response$data9$data","_response$data$data$b","_response$data0","_response$data0$data","_response$data$data$b2","_response$data1","_response$data1$data","_response$data$data$b3","_response$data10","_response$data10$data","_response$data$data$b4","_response$data11","_response$data11$data","_t","_regenerator","async","_context","prev","next","awrap","Api","getInstance","getInfoCustomerV2","route","params","loan","id","sent","kind","data","meta","errorCode","current","setFieldValue","fullName","dob","formatDDMMYYY","gender","nationalCard","dateNationalId","bankAccountName","bankAccountNumber","bankId","bankName","console","log","stop","Promise","useEffect","ttsStore","getListBank","onSubmit","_callee2","values","_props$route2","_props$route2$params","_props$route2$params$","body","_response$data12","_response$data12$meta","_response$data13","_response$data13$meta","_t2","_context3","LoanBriefId","DateNationalId","moment","format","updateInfoLoanTopupV2","AlertGlobal","show","type","title","message","primaryText","onPrimaryPress","_props$route3","_props$route3$params","_props$route3$params$","_props$route4","_props$route4$params","_props$route4$params$","_context2","logEvent","event","createdAt","Date","deviceId","appStore","loanId","String","utmSource","logEventFb","dispatch","CommonActions","reset","index","routes","name","ScreenNames","Main","errorMessage","createElement","View","style","flex","__self","__source","fileName","lineNumber","columnNumber","commonStyles","fill","$h","$bg","paddingVertical","flexDirection","alignItems","paddingHorizontal","TouchableOpacity","zIndex","onPress","secondaryText","IconBack","MText","$title","Formik","innerRef","initialValues","validateOnBlur","validateOnChange","validationSchema","object","shape","string","required","_ref","errors","handleSubmit","handleChange","ScrollView","showsVerticalScrollIndicator","$title2","$label","TextInput","editable","$textInput","color","fontWeight","fontFamily","backgroundColor","value","$error","$row","marginTop","$select","disabled","DropDown2","keyboardType","onChangeText","numberOfLines","fontSize","mode","open","modal","locale","date","onCancel","onConfirm","push","CommonSelect","listBank","callback","height","position","bottom","left","right","marginVertical","start","x","y","end","borderRadius","justifyContent","colors","marginBottom","gap","borderWidth","borderColor","paddingBottom","textAlign","width","borderTopLeftRadius","borderTopRightRadius","fontStyle"],"sourceRoot":"../../../../src","sources":["screens/toan-trinh-so/TopupLoanInfo.tsx"],"mappings":"qVACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBASA,IAAAE,QAAA,CAAAC,sBAAA,CAAAH,OAAA,8BACA,IAAAI,aAAA,CAAAJ,OAAA,oBACA,IAAAK,MAAA,CAAAL,OAAA,2BACA,IAAAM,WAAA,CAAAN,OAAA,qBACA,IAAAO,OAAA,CAAAP,OAAA,6BACA,IAAAQ,KAAA,CAAAR,OAAA,sBACA,IAAAS,OAAA,CAAAT,OAAA,WACA,IAAAU,MAAA,CAAAV,OAAA,uBACA,IAAAW,SAAA,CAAAR,sBAAA,CAAAH,OAAA,oBACA,IAAAY,MAAA,CAAAZ,OAAA,gBACA,IAAAa,IAAA,CAAAb,OAAA,uBAGA,IAAAc,MAAA,CAAAX,sBAAA,CAAAH,OAAA,aACA,IAAAe,QAAA,CAAAZ,sBAAA,CAAAH,OAAA,8BACA,IAAAgB,QAAA,CAAAb,sBAAA,CAAAH,OAAA,8BACA,IAAAiB,0BAAA,CAAAd,sBAAA,CAAAH,OAAA,kCACA,IAAAkB,OAAA,CAAAf,sBAAA,CAAAH,OAAA,YACA,IAAAmB,GAAA,CAAApB,uBAAA,CAAAC,OAAA,SACA,IAAAoB,sBAAA,CAAAjB,sBAAA,CAAAH,OAAA,8BACA,IAAAqB,YAAA,CAAArB,OAAA,mDAA6E,IAAAsB,YAAA,+FAAAvB,wBAAAwB,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAA1B,uBAAA,UAAAA,wBAAAwB,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,C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CAAC,CAED,GAAM,CAAA7B,MAAiB,CAAG,CACxBoC,QAAQ,CAAE,EAAE,CACZb,UAAU,CAAE,MAAM,CAClBD,KAAK,CAAE,SAAS,CAChB2B,QAAQ,CAAE,UAAU,CACpBE,IAAI,CAAE,CAAC,CACPC,KAAK,CAAE,CAAC,CACRc,SAAS,CAAE,QACb,CAAC,CACD,GAAM,CAAA9E,EAAa,CAAG,CACpBqC,eAAe,CAAE,SAAS,CAC1BwB,QAAQ,CAAE,UAAU,CACpBD,MAAM,CAAE,EAAE,CACVmB,KAAK,CAAE,MACT,CAAC,CAED,GAAM,CAAA9E,GAAc,CAAG,CACrB+E,mBAAmB,CAAE,EAAE,CACvBC,oBAAoB,CAAE,EAAE,CACxB5C,eAAe,CAAE,OAAO,CACxB7C,IAAI,CAAE,CACR,CAAC,CAED,GAAM,CAAAkD,OAAkB,CAAG,CACzBvC,aAAa,CAAE,KAAK,CACpByD,MAAM,CAAE,EAAE,CACVxD,UAAU,CAAE,QAAQ,CACpBC,iBAAiB,CAAE,CAAC,CACpBsE,WAAW,CAAE,CAAC,CACdL,YAAY,CAAE,CAAC,CACfM,WAAW,CAAE,SACf,CAAC,CAED,GAAM,CAAArC,MAAiB,CAAG,CACxBL,KAAK,CAAE,SAAS,CAChBc,QAAQ,CAAE,EAAE,CACZkC,SAAS,CAAE,QAAQ,CACnB9C,UAAU,CAAE,mBAAmB,CAC/BD,UAAU,CAAE,KAAK,CACjBM,SAAS,CAAE,CACb,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.AssetInformation=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _mobxReactLite=require("mobx-react-lite");var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _AlertGlobal=require("../../components/ModalNotification/AlertGlobal");var _icons=require("../../assets/icons");var _MText=require("../../components/MText");var _formik=require("formik");var _navigation=require("../../navigation");var _store=_interopRequireDefault(require("../toan-trinh-so/store"));var _native=require("@react-navigation/native");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _MButton=_interopRequireDefault(require("../../components/MButton"));var _utils=require("../../utils");var _keyboardspace=_interopRequireDefault(require("../../components/keyboardspace"));var yup=_interopRequireWildcard(require("yup"));var _api=require("../../services/api");var _jsxFileName="/Users/tima/Tima/react-native-timacare/src/screens/v3/AssetInformation.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t3 in e)"default"!==_t3&&{}.hasOwnProperty.call(e,_t3)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t3))&&(i.get||i.set)?o(f,_t3,i):f[_t3]=e[_t3]);return f;})(e,t);}var AssetInformation=exports.AssetInformation=(0,_mobxReactLite.observer)(function AssetInformation(props){var _props$route,_props$route$params,_this=this;var navigation=(0,_native.useNavigation)();var formRef=(0,_react.useRef)(null);var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),isLoading=_useState2[0],setIsLoading=_useState2[1];var loan=props==null?void 0:(_props$route=props.route)==null?void 0:(_props$route$params=_props$route.params)==null?void 0:_props$route$params.loan;var getData=function _callee(){var _response$data,_response$data$meta,response,_formRef$current,_response$data$data$b,_response$data$data,_formRef$current2,_response$data$data$y,_response$data$data2,_formRef$current3,_response$data$data$v,_response$data$data3,_formRef$current4,_response$data$data$p,_response$data$data4,_formRef$current5,_response$data$data$c,_response$data$data5,_formRef$current6,_response$data$data$e,_response$data$data6,_formRef$current7,_response$data$data$o,_response$data$data7,_formRef$current8,_response$data$data$m,_response$data$data8,_formRef$current9,_response$data$data$m2,_response$data$data9,_response$data2,_response$data2$data,_response$data4,_response$data4$data,_response$data5,_response$data5$data,_formRef$current0,_response$data$data$t,_response$data$data0,_formRef$current1,_response$data$data$c2,_response$data$data1,_response$data3,_response$data3$data,_response$data6,_response$data6$data,_response$data7,_response$data7$data,_response$data8,_response$data8$meta,_t;return _regenerator.default.async(function(_context){while(1)switch(_context.prev=_context.next){case 0:_context.prev=0;setIsLoading(true);_context.next=1;return _regenerator.default.awrap(_api.Api.getInstance().getAssetAutoDE(loan==null?void 0:loan.id));case 1:response=_context.sent;setIsLoading(false);if(response.kind==='ok'&&((_response$data=response.data)==null?void 0:(_response$data$meta=_response$data.meta)==null?void 0:_response$data$meta.errorCode)===200){(_formRef$current=formRef.current)==null?void 0:_formRef$current.setFieldValue('brand',(_response$data$data$b=(_response$data$data=response.data.data)==null?void 0:_response$data$data.brand)!=null?_response$data$data$b:'');(_formRef$current2=formRef.current)==null?void 0:_formRef$current2.setFieldValue('yearCar',(_response$data$data$y=(_response$data$data2=response.data.data)==null?void 0:_response$data$data2.yearCar)!=null?_response$data$data$y:null);(_formRef$current3=formRef.current)==null?void 0:_formRef$current3.setFieldValue('vehicles',(_response$data$data$v=(_response$data$data3=response.data.data)==null?void 0:_response$data$data3.vehicles)!=null?_response$data$data$v:'');(_formRef$current4=formRef.current)==null?void 0:_formRef$current4.setFieldValue('plateNumber',(_response$data$data$p=(_response$data$data4=response.data.data)==null?void 0:_response$data$data4.plateNumber)!=null?_response$data$data$p:'');(_formRef$current5=formRef.current)==null?void 0:_formRef$current5.setFieldValue('chassis',(_response$data$data$c=(_response$data$data5=response.data.data)==null?void 0:_response$data$data5.chassis)!=null?_response$data$data$c:'');(_formRef$current6=formRef.current)==null?void 0:_formRef$current6.setFieldValue('engine',(_response$data$data$e=(_response$data$data6=response.data.data)==null?void 0:_response$data$data6.engine)!=null?_response$data$data$e:'');(_formRef$current7=formRef.current)==null?void 0:_formRef$current7.setFieldValue('ownerFullName',(_response$data$data$o=(_response$data$data7=response.data.data)==null?void 0:_response$data$data7.ownerFullName)!=null?_response$data$data$o:'');(_formRef$current8=formRef.current)==null?void 0:_formRef$current8.setFieldValue('motobikeCertificateNumber',(_response$data$data$m=(_response$data$data8=response.data.data)==null?void 0:_response$data$data8.motobikeCertificateNumber)!=null?_response$data$data$m:'');(_formRef$current9=formRef.current)==null?void 0:_formRef$current9.setFieldValue('motobikeCertificateDate',(_response$data$data$m2=(_response$data$data9=response.data.data)==null?void 0:_response$data$data9.motobikeCertificateDate)!=null?_response$data$data$m2:'');if((_response$data2=response.data)!=null&&(_response$data2$data=_response$data2.data)!=null&&_response$data2$data.brand){_store.default.getListYearCar((_response$data3=response.data)==null?void 0:(_response$data3$data=_response$data3.data)==null?void 0:_response$data3$data.brand);}if((_response$data4=response.data)!=null&&(_response$data4$data=_response$data4.data)!=null&&_response$data4$data.brand&&(_response$data5=response.data)!=null&&(_response$data5$data=_response$data5.data)!=null&&_response$data5$data.yearCar){_store.default.getListCar((_response$data6=response.data)==null?void 0:(_response$data6$data=_response$data6.data)==null?void 0:_response$data6$data.brand,(_response$data7=response.data)==null?void 0:(_response$data7$data=_response$data7.data)==null?void 0:_response$data7$data.yearCar);}(_formRef$current0=formRef.current)==null?void 0:_formRef$current0.setFieldValue('typeLoanBrief',(_response$data$data$t=(_response$data$data0=response.data.data)==null?void 0:_response$data$data0.typeLoanBrief)!=null?_response$data$data$t:null);(_formRef$current1=formRef.current)==null?void 0:_formRef$current1.setFieldValue('carTypeId',(_response$data$data$c2=(_response$data$data1=response.data.data)==null?void 0:_response$data$data1.carTypeId)!=null?_response$data$data$c2:null);}else{_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:((_response$data8=response.data)==null?void 0:(_response$data8$meta=_response$data8.meta)==null?void 0:_response$data8$meta.errorMessage)||'Có lỗi xảy ra. Vui lòng thử lại sau!',primaryText:'Đóng'});}_context.next=3;break;case 2:_context.prev=2;_t=_context["catch"](0);_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Có lỗi xảy ra. Vui lòng thử lại sau!',primaryText:'Đóng'});case 3:_context.prev=3;setIsLoading(false);return _context.finish(3);case 4:case"end":return _context.stop();}},null,null,[[0,2,3,4]],Promise);};(0,_react.useEffect)(function(){_store.default.getListBrand();if(loan){getData();}},[]);var onSubmit=function _callee2(values){var body,response,_response$data9,_response$data9$meta,_response$data0,_response$data0$meta,_t2;return _regenerator.default.async(function(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.prev=0;setIsLoading(true);body={loanBriefId:loan==null?void 0:loan.id,brand:values==null?void 0:values.brand,yearCar:Number(values.yearCar),vehicles:values==null?void 0:values.vehicles,plateNumber:values==null?void 0:values.plateNumber,chassis:values==null?void 0:values.chassis,engine:values==null?void 0:values.engine,ownerFullName:values==null?void 0:values.ownerFullName,motobikeCertificateNumber:values==null?void 0:values.motobikeCertificateNumber,motobikeCertificateDate:values==null?void 0:values.motobikeCertificateDate,vehicleInspectionExpirationDate:values==null?void 0:values.vehicleInspectionExpirationDate,typeLoanBrief:values==null?void 0:values.typeLoanBrief,carTypeId:values==null?void 0:values.carTypeId};_context2.next=1;return _regenerator.default.awrap(_api.Api.getInstance().updateAssetAutoDE(body));case 1:response=_context2.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data9=response.data)==null?void 0:(_response$data9$meta=_response$data9.meta)==null?void 0:_response$data9$meta.errorCode)===200){_AlertGlobal.AlertGlobal.show({type:'success',title:'Thông báo',message:'Cập nhật thông tin tài sản thành công',primaryText:'Đồng ý',onPrimaryPress:function onPrimaryPress(){navigation.navigate(_navigation.ScreenNames.Main);}});}else{_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:(_response$data0=response.data)==null?void 0:(_response$data0$meta=_response$data0.meta)==null?void 0:_response$data0$meta.errorMessage,primaryText:'Đóng'});}}else{_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Có lỗi xảy ra. Vui lòng thử lại sau',primaryText:'Đóng'});}_context2.next=3;break;case 2:_context2.prev=2;_t2=_context2["catch"](0);console.log(_t2);case 3:case"end":return _context2.stop();}},null,null,[[0,2]],Promise);};return _react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:178,columnNumber:5}},_react.default.createElement(_MHeader.default,{title:"Vay tr\u1EF1c tuy\u1EBFn 24/7",__self:this,__source:{fileName:_jsxFileName,lineNumber:179,columnNumber:7}}),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:180,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:$h,__self:this,__source:{fileName:_jsxFileName,lineNumber:181,columnNumber:9}}),_react.default.createElement(_reactNative.View,{style:$bg,__self:this,__source:{fileName:_jsxFileName,lineNumber:182,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{paddingVertical:16,flexDirection:'row',alignItems:'center',paddingHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:183,columnNumber:11}},_react.default.createElement(_reactNative.TouchableOpacity,{style:{zIndex:1000},onPress:function onPress(){navigation.navigate(_navigation.ScreenNames.Main);},__self:this,__source:{fileName:_jsxFileName,lineNumber:191,columnNumber:13}},_react.default.createElement(_icons.IconBack,{__self:this,__source:{fileName:_jsxFileName,lineNumber:199,columnNumber:15}})),_react.default.createElement(_MText.MText,{style:$title,__self:this,__source:{fileName:_jsxFileName,lineNumber:201,columnNumber:13}},"Th\xF4ng tin chi ti\u1EBFt")),_react.default.createElement(_formik.Formik,{onSubmit:onSubmit,innerRef:formRef,validateOnBlur:false,validateOnChange:false,initialValues:{brand:'',yearCar:null,vehicles:'',plateNumber:'',chassis:'',engine:'',ownerFullName:'',motobikeCertificateNumber:'',motobikeCertificateDate:'',vehicleInspectionExpirationDate:'',typeLoanBrief:1,carTypeId:null},validationSchema:yup.object().shape({brand:yup.string().required('Vui lòng chọn hãng xe'),yearCar:yup.string().required('Vui lòng chọn năm sản xuất').nullable(),vehicles:yup.string().required('Vui lòng chọn xe').nullable(),plateNumber:yup.string().required('Vui lòng nhập biển số'),chassis:yup.string().required('Vui lòng nhập số khung'),engine:yup.string().required('Vui lòng nhập số máy'),ownerFullName:yup.string().required('Vui lòng nhập chủ xe'),motobikeCertificateNumber:yup.string().required('Vui lòng nhập số đăng ký xe'),motobikeCertificateDate:yup.string().required('Vui lòng nhập ngày đăng ký'),vehicleInspectionExpirationDate:yup.string().required('Vui lòng nhập ngày đăng ký'),typeLoanBrief:yup.number().required('Vui lòng chọn loại tài sản').nullable(),carTypeId:yup.number().required('Vui lòng chọn loại xe').nullable()}),__self:this,__source:{fileName:_jsxFileName,lineNumber:204,columnNumber:11}},function(_ref){var _EnumTypeAsset$find,_EnumTypeCar$find;var values=_ref.values,setFieldValue=_ref.setFieldValue,errors=_ref.errors,handleSubmit=_ref.handleSubmit,handleChange=_ref.handleChange;return _react.default.createElement(_reactNative.ScrollView,{style:{paddingHorizontal:16,flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:260,columnNumber:15}},_react.default.createElement(_MText.MText,{style:$title2,__self:_this,__source:{fileName:_jsxFileName,lineNumber:261,columnNumber:17}},"Th\xF4ng tin t\xE0i s\u1EA3n"),_react.default.createElement(_reactNative.View,{style:$row,__self:_this,__source:{fileName:_jsxFileName,lineNumber:262,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:263,columnNumber:19}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:264,columnNumber:21}},"H\xE3ng xe"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){navigation.push(_navigation.ScreenNames.CommonSelect,{title:'Hãng xe',data:_store.default.listBrand,callback:function callback(value){setFieldValue('brand',value.name);setFieldValue('yearCar',null);setFieldValue('vehicles',null);_store.default.getListYearCar(value.name);}});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:265,columnNumber:21}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:'#333333',fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:280,columnNumber:23}},values==null?void 0:values.brand),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:291,columnNumber:23}})),errors&&errors.brand&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:294,columnNumber:23}},errors.brand)),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:297,columnNumber:19}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:298,columnNumber:21}},"N\u0103m s\u1EA3n xu\u1EA5t"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){navigation.push(_navigation.ScreenNames.CommonSelect,{title:'Năm sản xuất',data:_store.default.listYear,callback:function callback(value){setFieldValue('yearCar',value.name);setFieldValue('vehicles',null);_store.default.getListCar(values.brand,value.name);}});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:299,columnNumber:21}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:'#333333',fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:313,columnNumber:23}},values==null?void 0:values.yearCar),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:324,columnNumber:23}})),errors&&errors.yearCar&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:327,columnNumber:23}},errors.yearCar))),_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:331,columnNumber:17}},"T\xEAn xe/ Phi\xEAn b\u1EA3n xe"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){navigation.push(_navigation.ScreenNames.CommonSelect,{title:'Tên xe/ Phiên bản xe',data:_store.default.listCar,callback:function callback(value){setFieldValue('vehicles',value.name);}});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:332,columnNumber:17}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:'#333333',fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:344,columnNumber:19}},values.vehicles),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:355,columnNumber:19}})),errors&&errors.vehicles&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:358,columnNumber:19}},errors.vehicles),_react.default.createElement(_reactNative.View,{style:[$row,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:360,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:361,columnNumber:19}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:362,columnNumber:21}},"Bi\u1EC3n s\u1ED1 xe"),_react.default.createElement(_reactNative.TextInput,{placeholder:"30A-99999",placeholderTextColor:'#B3B3B3',numberOfLines:1,style:[$textInput,{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium'}],value:values.plateNumber,onChangeText:handleChange('plateNumber'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:363,columnNumber:21}}),errors&&errors.plateNumber&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:379,columnNumber:23}},errors.plateNumber)),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:382,columnNumber:19}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:383,columnNumber:21}},"S\u1ED1 \u0111\u0103ng k\xFD xe"),_react.default.createElement(_reactNative.TextInput,{placeholder:"Nh\u1EADp s\u1ED1 \u0111\u0103ng k\xFD xe",placeholderTextColor:'#B3B3B3',numberOfLines:1,style:[$textInput,{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium'}],value:values.motobikeCertificateNumber,onChangeText:handleChange('motobikeCertificateNumber'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:384,columnNumber:21}}),errors&&errors.motobikeCertificateNumber&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:400,columnNumber:23}},errors.motobikeCertificateNumber))),_react.default.createElement(_reactNative.View,{style:[$row,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:406,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:407,columnNumber:19}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:408,columnNumber:21}},"Ng\xE0y \u0111\u0103ng k\xFD xe"),_react.default.createElement(_reactNative.TextInput,{numberOfLines:1,style:[$textInput,{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium'}],placeholder:"DD/MM/YYYY",placeholderTextColor:"#BDBDBD",value:values.motobikeCertificateDate,onChangeText:handleChange('motobikeCertificateDate'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:409,columnNumber:21}}),errors&&errors.motobikeCertificateDate&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:425,columnNumber:23}},errors.motobikeCertificateDate)),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:430,columnNumber:19}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:431,columnNumber:21}},"Ng\xE0y h\u1EBFt h\u1EA1n \u0111\u0103ng ki\u1EC3m"),_react.default.createElement(_reactNative.TextInput,{numberOfLines:1,style:[$textInput,{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium'}],placeholder:"DD/MM/YYYY",placeholderTextColor:"#BDBDBD",value:values.vehicleInspectionExpirationDate,onChangeText:handleChange('vehicleInspectionExpirationDate'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:432,columnNumber:21}}),errors&&errors.vehicleInspectionExpirationDate&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:450,columnNumber:23}},errors.vehicleInspectionExpirationDate))),_react.default.createElement(_reactNative.View,{style:[$row,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:456,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:457,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[$label],__self:_this,__source:{fileName:_jsxFileName,lineNumber:458,columnNumber:21}},"S\u1ED1 khung"),_react.default.createElement(_reactNative.TextInput,{placeholder:"Nh\u1EADp s\u1ED1 khung",placeholderTextColor:'#B3B3B3',numberOfLines:1,style:[$textInput,{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium'}],value:values.chassis,onChangeText:handleChange('chassis'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:459,columnNumber:21}}),errors&&errors.chassis&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:475,columnNumber:23}},errors.chassis)),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:478,columnNumber:19}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:479,columnNumber:21}},"S\u1ED1 m\xE1y"),_react.default.createElement(_reactNative.TextInput,{placeholder:"Nh\u1EADp s\u1ED1 m\xE1y",placeholderTextColor:'#B3B3B3',numberOfLines:1,style:[$textInput,{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium'}],value:values.engine,onChangeText:handleChange('engine'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:480,columnNumber:21}}),errors&&errors.engine&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:496,columnNumber:23}},errors.engine))),_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:500,columnNumber:17}},"H\u1ECD t\xEAn ch\u1EE7 xe"),_react.default.createElement(_reactNative.TextInput,{numberOfLines:1,style:[$textInput,{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium'}],placeholder:"Nh\u1EADp h\u1ECD t\xEAn ch\u1EE7 xe",placeholderTextColor:'#B3B3B3',value:values.ownerFullName,onChangeText:handleChange('ownerFullName'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:501,columnNumber:17}}),errors&&errors.ownerFullName&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:517,columnNumber:19}},errors.ownerFullName),_react.default.createElement(_reactNative.View,{style:[$row,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:519,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:520,columnNumber:19}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:521,columnNumber:21}},"Lo\u1EA1i t\xE0i s\u1EA3n"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){navigation.push(_navigation.ScreenNames.MSelect,{title:'Loại tài sản',data:_utils.EnumTypeAsset,callback:function callback(value){setFieldValue('typeLoanBrief',value.id);}});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:522,columnNumber:21}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:'#333333',fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:534,columnNumber:23}},(_EnumTypeAsset$find=_utils.EnumTypeAsset.find(function(x){return x.id===values.typeLoanBrief;}))==null?void 0:_EnumTypeAsset$find.name),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:549,columnNumber:23}})),errors&&errors.typeLoanBrief&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:552,columnNumber:23}},errors.typeLoanBrief)),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:555,columnNumber:19}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:556,columnNumber:21}},"Lo\u1EA1i xe"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){navigation.push(_navigation.ScreenNames.MSelect,{title:'Loại xe',data:_utils.EnumTypeCar,callback:function callback(value){setFieldValue('carTypeId',value.id);}});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:557,columnNumber:21}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:'#333333',fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:569,columnNumber:23}},(_EnumTypeCar$find=_utils.EnumTypeCar.find(function(x){return x.id===values.carTypeId;}))==null?void 0:_EnumTypeCar$find.name),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:583,columnNumber:23}})),errors&&errors.carTypeId&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:586,columnNumber:23}},errors.carTypeId))));}),_react.default.createElement(_MButton.default,{onPress:function onPress(){var _formRef$current10;(_formRef$current10=formRef.current)==null?void 0:_formRef$current10.handleSubmit();},style:{marginVertical:24,marginHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:594,columnNumber:11}},_react.default.createElement(_reactNativeLinearGradient.default,{start:{x:1,y:0},end:{x:0,y:1},style:{height:40,marginVertical:16,borderRadius:30,alignItems:'center',justifyContent:'center'},colors:['#FF7A00','#EF4123'],__self:this,__source:{fileName:_jsxFileName,lineNumber:603,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:615,columnNumber:15}},"Ti\u1EBFp t\u1EE5c"))),_react.default.createElement(_keyboardspace.default,{__self:this,__source:{fileName:_jsxFileName,lineNumber:625,columnNumber:11}}))),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:628,columnNumber:7}}));});var $error={color:'#EB5757',fontSize:14,fontStyle:'italic',fontFamily:'BeVietnamPro-Thin',fontWeight:'300',marginTop:5};var $label={fontSize:14,color:'#333333',paddingBottom:5};var $title={fontSize:16,fontWeight:'bold',color:'#333333',position:'absolute',left:0,right:0,textAlign:'center'};var $h={backgroundColor:'#EF592E',position:'absolute',height:30,width:'100%'};var $bg={borderTopLeftRadius:30,borderTopRightRadius:30,backgroundColor:'white',flex:1};var $title2={fontSize:16,fontWeight:'bold',color:'#333333',paddingBottom:10,marginTop:6};var $row={flexDirection:'row',marginBottom:16,gap:16};var $select={flexDirection:'row',height:40,alignItems:'center',paddingHorizontal:8,borderWidth:1,borderRadius:4,borderColor:'#E0E0E0'};var $textInput={borderWidth:1,borderRadius:4,borderColor:'#E0E0E0',height:40,paddingHorizontal:8,fontFamily:'BeVietnamPro-Medium'};
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.AssetInformation=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _mobxReactLite=require("mobx-react-lite");var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _AlertGlobal=require("../../components/ModalNotification/AlertGlobal");var _icons=require("../../assets/icons");var _MText=require("../../components/MText");var _formik=require("formik");var _navigation=require("../../navigation");var _store=_interopRequireDefault(require("../toan-trinh-so/store"));var _native=require("@react-navigation/native");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _MButton=_interopRequireDefault(require("../../components/MButton"));var _utils=require("../../utils");var _keyboardspace=_interopRequireDefault(require("../../components/keyboardspace"));var yup=_interopRequireWildcard(require("yup"));var _api=require("../../services/api");var _jsxFileName="/Users/tima/Tima/react-native-timacare/src/screens/v3/AssetInformation.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t3 in e)"default"!==_t3&&{}.hasOwnProperty.call(e,_t3)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t3))&&(i.get||i.set)?o(f,_t3,i):f[_t3]=e[_t3]);return f;})(e,t);}var AssetInformation=exports.AssetInformation=(0,_mobxReactLite.observer)(function AssetInformation(props){var _props$route,_props$route$params,_this=this;var navigation=(0,_native.useNavigation)();var formRef=(0,_react.useRef)(null);var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),isLoading=_useState2[0],setIsLoading=_useState2[1];var loan=props==null?void 0:(_props$route=props.route)==null?void 0:(_props$route$params=_props$route.params)==null?void 0:_props$route$params.loan;var getData=function _callee(){var _response$data,_response$data$meta,response,_formRef$current,_response$data$data$b,_response$data$data,_formRef$current2,_response$data$data$y,_response$data$data2,_formRef$current3,_response$data$data$v,_response$data$data3,_formRef$current4,_response$data$data$p,_response$data$data4,_formRef$current5,_response$data$data$c,_response$data$data5,_formRef$current6,_response$data$data$e,_response$data$data6,_formRef$current7,_response$data$data$o,_response$data$data7,_formRef$current8,_response$data$data$m,_response$data$data8,_formRef$current9,_response$data$data$m2,_response$data$data9,_response$data2,_response$data2$data,_response$data4,_response$data4$data,_response$data5,_response$data5$data,_formRef$current0,_response$data$data$t,_response$data$data0,_formRef$current1,_response$data$data$c2,_response$data$data1,_response$data3,_response$data3$data,_response$data6,_response$data6$data,_response$data7,_response$data7$data,_response$data8,_response$data8$meta,_t;return _regenerator.default.async(function(_context){while(1)switch(_context.prev=_context.next){case 0:_context.prev=0;setIsLoading(true);_context.next=1;return _regenerator.default.awrap(_api.Api.getInstance().getAssetAutoDE(loan==null?void 0:loan.id));case 1:response=_context.sent;setIsLoading(false);if(response.kind==='ok'&&((_response$data=response.data)==null?void 0:(_response$data$meta=_response$data.meta)==null?void 0:_response$data$meta.errorCode)===200){(_formRef$current=formRef.current)==null?void 0:_formRef$current.setFieldValue('brand',(_response$data$data$b=(_response$data$data=response.data.data)==null?void 0:_response$data$data.brand)!=null?_response$data$data$b:'');(_formRef$current2=formRef.current)==null?void 0:_formRef$current2.setFieldValue('yearCar',(_response$data$data$y=(_response$data$data2=response.data.data)==null?void 0:_response$data$data2.yearCar)!=null?_response$data$data$y:null);(_formRef$current3=formRef.current)==null?void 0:_formRef$current3.setFieldValue('vehicles',(_response$data$data$v=(_response$data$data3=response.data.data)==null?void 0:_response$data$data3.vehicles)!=null?_response$data$data$v:'');(_formRef$current4=formRef.current)==null?void 0:_formRef$current4.setFieldValue('plateNumber',(_response$data$data$p=(_response$data$data4=response.data.data)==null?void 0:_response$data$data4.plateNumber)!=null?_response$data$data$p:'');(_formRef$current5=formRef.current)==null?void 0:_formRef$current5.setFieldValue('chassis',(_response$data$data$c=(_response$data$data5=response.data.data)==null?void 0:_response$data$data5.chassis)!=null?_response$data$data$c:'');(_formRef$current6=formRef.current)==null?void 0:_formRef$current6.setFieldValue('engine',(_response$data$data$e=(_response$data$data6=response.data.data)==null?void 0:_response$data$data6.engine)!=null?_response$data$data$e:'');(_formRef$current7=formRef.current)==null?void 0:_formRef$current7.setFieldValue('ownerFullName',(_response$data$data$o=(_response$data$data7=response.data.data)==null?void 0:_response$data$data7.ownerFullName)!=null?_response$data$data$o:'');(_formRef$current8=formRef.current)==null?void 0:_formRef$current8.setFieldValue('motobikeCertificateNumber',(_response$data$data$m=(_response$data$data8=response.data.data)==null?void 0:_response$data$data8.motobikeCertificateNumber)!=null?_response$data$data$m:'');(_formRef$current9=formRef.current)==null?void 0:_formRef$current9.setFieldValue('motobikeCertificateDate',(_response$data$data$m2=(_response$data$data9=response.data.data)==null?void 0:_response$data$data9.motobikeCertificateDate)!=null?_response$data$data$m2:'');if((_response$data2=response.data)!=null&&(_response$data2$data=_response$data2.data)!=null&&_response$data2$data.brand){_store.default.getListYearCar((_response$data3=response.data)==null?void 0:(_response$data3$data=_response$data3.data)==null?void 0:_response$data3$data.brand);}if((_response$data4=response.data)!=null&&(_response$data4$data=_response$data4.data)!=null&&_response$data4$data.brand&&(_response$data5=response.data)!=null&&(_response$data5$data=_response$data5.data)!=null&&_response$data5$data.yearCar){_store.default.getListCar((_response$data6=response.data)==null?void 0:(_response$data6$data=_response$data6.data)==null?void 0:_response$data6$data.brand,(_response$data7=response.data)==null?void 0:(_response$data7$data=_response$data7.data)==null?void 0:_response$data7$data.yearCar);}(_formRef$current0=formRef.current)==null?void 0:_formRef$current0.setFieldValue('typeLoanBrief',(_response$data$data$t=(_response$data$data0=response.data.data)==null?void 0:_response$data$data0.typeLoanBrief)!=null?_response$data$data$t:null);(_formRef$current1=formRef.current)==null?void 0:_formRef$current1.setFieldValue('carTypeId',(_response$data$data$c2=(_response$data$data1=response.data.data)==null?void 0:_response$data$data1.carTypeId)!=null?_response$data$data$c2:null);}else{_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:((_response$data8=response.data)==null?void 0:(_response$data8$meta=_response$data8.meta)==null?void 0:_response$data8$meta.errorMessage)||'Có lỗi xảy ra. Vui lòng thử lại sau!',primaryText:'Đóng'});}_context.next=3;break;case 2:_context.prev=2;_t=_context["catch"](0);_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Có lỗi xảy ra. Vui lòng thử lại sau!',primaryText:'Đóng'});case 3:_context.prev=3;setIsLoading(false);return _context.finish(3);case 4:case"end":return _context.stop();}},null,null,[[0,2,3,4]],Promise);};(0,_react.useEffect)(function(){_store.default.getListBrand();if(loan){getData();}},[]);var onSubmit=function _callee2(values){var body,response,_response$data9,_response$data9$meta,_response$data0,_response$data0$meta,_t2;return _regenerator.default.async(function(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.prev=0;setIsLoading(true);body={loanBriefId:loan==null?void 0:loan.id,brand:values==null?void 0:values.brand,yearCar:Number(values.yearCar),vehicles:values==null?void 0:values.vehicles,plateNumber:values==null?void 0:values.plateNumber,chassis:values==null?void 0:values.chassis,engine:values==null?void 0:values.engine,ownerFullName:values==null?void 0:values.ownerFullName,motobikeCertificateNumber:values==null?void 0:values.motobikeCertificateNumber,motobikeCertificateDate:values==null?void 0:values.motobikeCertificateDate,vehicleInspectionExpirationDate:values==null?void 0:values.vehicleInspectionExpirationDate,typeLoanBrief:values==null?void 0:values.typeLoanBrief,carTypeId:values==null?void 0:values.carTypeId};_context2.next=1;return _regenerator.default.awrap(_api.Api.getInstance().updateAssetAutoDE(body));case 1:response=_context2.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data9=response.data)==null?void 0:(_response$data9$meta=_response$data9.meta)==null?void 0:_response$data9$meta.errorCode)===200){_AlertGlobal.AlertGlobal.show({type:'success',title:'Thông báo',message:'Cập nhật thông tin tài sản thành công',primaryText:'Đồng ý',onPrimaryPress:function onPrimaryPress(){navigation.navigate(_navigation.ScreenNames.Main);}});}else{_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:(_response$data0=response.data)==null?void 0:(_response$data0$meta=_response$data0.meta)==null?void 0:_response$data0$meta.errorMessage,primaryText:'Đóng'});}}else{_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Có lỗi xảy ra. Vui lòng thử lại sau',primaryText:'Đóng'});}_context2.next=3;break;case 2:_context2.prev=2;_t2=_context2["catch"](0);console.log(_t2);case 3:case"end":return _context2.stop();}},null,null,[[0,2]],Promise);};return _react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:178,columnNumber:5}},_react.default.createElement(_MHeader.default,{title:"Vay tr\u1EF1c tuy\u1EBFn 24/7",__self:this,__source:{fileName:_jsxFileName,lineNumber:179,columnNumber:7}}),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:180,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:$h,__self:this,__source:{fileName:_jsxFileName,lineNumber:181,columnNumber:9}}),_react.default.createElement(_reactNative.View,{style:$bg,__self:this,__source:{fileName:_jsxFileName,lineNumber:182,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{paddingVertical:16,flexDirection:'row',alignItems:'center',paddingHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:183,columnNumber:11}},_react.default.createElement(_reactNative.TouchableOpacity,{style:{zIndex:1000},onPress:function onPress(){navigation.navigate(_navigation.ScreenNames.Main);},__self:this,__source:{fileName:_jsxFileName,lineNumber:191,columnNumber:13}},_react.default.createElement(_icons.IconBack,{__self:this,__source:{fileName:_jsxFileName,lineNumber:199,columnNumber:15}})),_react.default.createElement(_MText.MText,{style:$title,__self:this,__source:{fileName:_jsxFileName,lineNumber:201,columnNumber:13}},"Th\xF4ng tin chi ti\u1EBFt")),_react.default.createElement(_formik.Formik,{onSubmit:onSubmit,innerRef:formRef,validateOnBlur:false,validateOnChange:false,initialValues:{brand:'',yearCar:null,vehicles:'',plateNumber:'',chassis:'',engine:'',ownerFullName:'',motobikeCertificateNumber:'',motobikeCertificateDate:'',vehicleInspectionExpirationDate:'',typeLoanBrief:1,carTypeId:null},validationSchema:yup.object().shape({brand:yup.string().required('Vui lòng chọn hãng xe'),yearCar:yup.string().required('Vui lòng chọn năm sản xuất').nullable(),vehicles:yup.string().required('Vui lòng chọn xe').nullable(),plateNumber:yup.string().required('Vui lòng nhập biển số'),chassis:yup.string().required('Vui lòng nhập số khung'),engine:yup.string().required('Vui lòng nhập số máy'),ownerFullName:yup.string().required('Vui lòng nhập chủ xe'),motobikeCertificateNumber:yup.string().required('Vui lòng nhập số đăng ký xe'),motobikeCertificateDate:yup.string().required('Vui lòng nhập ngày đăng ký'),vehicleInspectionExpirationDate:yup.string().required('Vui lòng nhập ngày đăng ký'),typeLoanBrief:yup.number().required('Vui lòng chọn loại tài sản').nullable(),carTypeId:yup.number().required('Vui lòng chọn loại xe').nullable()}),__self:this,__source:{fileName:_jsxFileName,lineNumber:204,columnNumber:11}},function(_ref){var _EnumTypeAsset$find,_EnumTypeCar$find;var values=_ref.values,setFieldValue=_ref.setFieldValue,errors=_ref.errors,handleSubmit=_ref.handleSubmit,handleChange=_ref.handleChange;return _react.default.createElement(_reactNative.ScrollView,{style:{paddingHorizontal:16,flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:260,columnNumber:15}},_react.default.createElement(_MText.MText,{style:$title2,__self:_this,__source:{fileName:_jsxFileName,lineNumber:261,columnNumber:17}},"Th\xF4ng tin t\xE0i s\u1EA3n"),_react.default.createElement(_reactNative.View,{style:$row,__self:_this,__source:{fileName:_jsxFileName,lineNumber:262,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:263,columnNumber:19}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:264,columnNumber:21}},"H\xE3ng xe"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){navigation.push(_navigation.ScreenNames.CommonSelect,{title:'Hãng xe',data:_store.default.listBrand,callback:function callback(value){setFieldValue('brand',value.name);setFieldValue('yearCar',null);setFieldValue('vehicles',null);_store.default.getListYearCar(value.name);}});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:265,columnNumber:21}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:'#333333',fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:280,columnNumber:23}},values==null?void 0:values.brand),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:291,columnNumber:23}})),errors&&errors.brand&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:294,columnNumber:23}},errors.brand)),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:297,columnNumber:19}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:298,columnNumber:21}},"N\u0103m s\u1EA3n xu\u1EA5t"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){navigation.push(_navigation.ScreenNames.CommonSelect,{title:'Năm sản xuất',data:_store.default.listYear,callback:function callback(value){setFieldValue('yearCar',value.name);setFieldValue('vehicles',null);_store.default.getListCar(values.brand,value.name);}});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:299,columnNumber:21}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:'#333333',fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:313,columnNumber:23}},values==null?void 0:values.yearCar),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:324,columnNumber:23}})),errors&&errors.yearCar&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:327,columnNumber:23}},errors.yearCar))),_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:331,columnNumber:17}},"T\xEAn xe/ Phi\xEAn b\u1EA3n xe"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){navigation.push(_navigation.ScreenNames.CommonSelect,{title:'Tên xe/ Phiên bản xe',data:_store.default.listCar,callback:function callback(value){setFieldValue('vehicles',value.name);}});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:332,columnNumber:17}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:'#333333',fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:344,columnNumber:19}},values.vehicles),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:355,columnNumber:19}})),errors&&errors.vehicles&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:358,columnNumber:19}},errors.vehicles),_react.default.createElement(_reactNative.View,{style:[$row,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:360,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:361,columnNumber:19}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:362,columnNumber:21}},"Bi\u1EC3n s\u1ED1 xe"),_react.default.createElement(_reactNative.TextInput,{placeholder:"30A-99999",placeholderTextColor:'#B3B3B3',numberOfLines:1,style:[$textInput,{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium'}],value:values.plateNumber,onChangeText:handleChange('plateNumber'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:363,columnNumber:21}}),errors&&errors.plateNumber&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:379,columnNumber:23}},errors.plateNumber)),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:382,columnNumber:19}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:383,columnNumber:21}},"S\u1ED1 \u0111\u0103ng k\xFD xe"),_react.default.createElement(_reactNative.TextInput,{placeholder:"Nh\u1EADp s\u1ED1 \u0111\u0103ng k\xFD xe",placeholderTextColor:'#B3B3B3',numberOfLines:1,style:[$textInput,{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium'}],value:values.motobikeCertificateNumber,onChangeText:handleChange('motobikeCertificateNumber'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:384,columnNumber:21}}),errors&&errors.motobikeCertificateNumber&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:400,columnNumber:23}},errors.motobikeCertificateNumber))),_react.default.createElement(_reactNative.View,{style:[$row,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:406,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:407,columnNumber:19}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:408,columnNumber:21}},"Ng\xE0y \u0111\u0103ng k\xFD xe"),_react.default.createElement(_reactNative.TextInput,{numberOfLines:1,style:[$textInput,{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium'}],placeholder:"DD/MM/YYYY",placeholderTextColor:"#BDBDBD",value:values.motobikeCertificateDate,onChangeText:handleChange('motobikeCertificateDate'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:409,columnNumber:21}}),errors&&errors.motobikeCertificateDate&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:425,columnNumber:23}},errors.motobikeCertificateDate)),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:430,columnNumber:19}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:431,columnNumber:21}},"Ng\xE0y h\u1EBFt h\u1EA1n \u0111\u0103ng ki\u1EC3m"),_react.default.createElement(_reactNative.TextInput,{numberOfLines:1,style:[$textInput,{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium'}],placeholder:"DD/MM/YYYY",placeholderTextColor:"#BDBDBD",value:values.vehicleInspectionExpirationDate,onChangeText:handleChange('vehicleInspectionExpirationDate'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:432,columnNumber:21}}),errors&&errors.vehicleInspectionExpirationDate&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:450,columnNumber:23}},errors.vehicleInspectionExpirationDate))),_react.default.createElement(_reactNative.View,{style:[$row,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:456,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:457,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[$label],__self:_this,__source:{fileName:_jsxFileName,lineNumber:458,columnNumber:21}},"S\u1ED1 khung"),_react.default.createElement(_reactNative.TextInput,{placeholder:"Nh\u1EADp s\u1ED1 khung",placeholderTextColor:'#B3B3B3',numberOfLines:1,style:[$textInput,{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium'}],value:values.chassis,onChangeText:handleChange('chassis'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:459,columnNumber:21}}),errors&&errors.chassis&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:475,columnNumber:23}},errors.chassis)),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:478,columnNumber:19}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:479,columnNumber:21}},"S\u1ED1 m\xE1y"),_react.default.createElement(_reactNative.TextInput,{placeholder:"Nh\u1EADp s\u1ED1 m\xE1y",placeholderTextColor:'#B3B3B3',numberOfLines:1,style:[$textInput,{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium'}],value:values.engine,onChangeText:handleChange('engine'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:480,columnNumber:21}}),errors&&errors.engine&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:496,columnNumber:23}},errors.engine))),_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:500,columnNumber:17}},"H\u1ECD t\xEAn ch\u1EE7 xe"),_react.default.createElement(_reactNative.TextInput,{numberOfLines:1,style:[$textInput,{color:'#333333',fontWeight:'500',fontFamily:'BeVietnamPro-Medium'}],placeholder:"Nh\u1EADp h\u1ECD t\xEAn ch\u1EE7 xe",placeholderTextColor:'#B3B3B3',value:values.ownerFullName,onChangeText:handleChange('ownerFullName'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:501,columnNumber:17}}),errors&&errors.ownerFullName&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:517,columnNumber:19}},errors.ownerFullName),_react.default.createElement(_reactNative.View,{style:[$row,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:519,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:520,columnNumber:19}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:521,columnNumber:21}},"Lo\u1EA1i t\xE0i s\u1EA3n"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){navigation.push(_navigation.ScreenNames.MSelect,{title:'Loại tài sản',data:_utils.EnumTypeAsset,callback:function callback(value){setFieldValue('typeLoanBrief',value.id);}});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:522,columnNumber:21}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:'#333333',fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:534,columnNumber:23}},(_EnumTypeAsset$find=_utils.EnumTypeAsset.find(function(x){return x.id===values.typeLoanBrief;}))==null?void 0:_EnumTypeAsset$find.name),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:549,columnNumber:23}})),errors&&errors.typeLoanBrief&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:552,columnNumber:23}},errors.typeLoanBrief)),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:555,columnNumber:19}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:556,columnNumber:21}},"Lo\u1EA1i xe"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){navigation.push(_navigation.ScreenNames.MSelect,{title:'Loại xe',data:_utils.EnumTypeCar,callback:function callback(value){setFieldValue('carTypeId',value.id);}});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:557,columnNumber:21}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:'#333333',fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:569,columnNumber:23}},(_EnumTypeCar$find=_utils.EnumTypeCar.find(function(x){return x.id===values.carTypeId;}))==null?void 0:_EnumTypeCar$find.name),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:583,columnNumber:23}})),errors&&errors.carTypeId&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:586,columnNumber:23}},errors.carTypeId))));}),_react.default.createElement(_MButton.default,{onPress:function onPress(){var _formRef$current10;(_formRef$current10=formRef.current)==null?void 0:_formRef$current10.handleSubmit();},style:{marginVertical:24,marginHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:594,columnNumber:11}},_react.default.createElement(_reactNativeLinearGradient.default,{start:{x:1,y:0},end:{x:0,y:1},style:{height:40,marginVertical:16,borderRadius:30,alignItems:'center',justifyContent:'center'},colors:['#FF7A00','#EF4123'],__self:this,__source:{fileName:_jsxFileName,lineNumber:603,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:615,columnNumber:15}},"Ti\u1EBFp t\u1EE5c"))),_react.default.createElement(_keyboardspace.default,{__self:this,__source:{fileName:_jsxFileName,lineNumber:625,columnNumber:11}}))),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:628,columnNumber:7}}));});var $error={color:'#EB5757',fontSize:14,fontStyle:'italic',fontFamily:'BeVietnamPro-Thin',fontWeight:'300',marginTop:5};var $label={fontSize:14,color:'#333333',paddingBottom:5};var $title={fontSize:16,fontWeight:'bold',color:'#333333',position:'absolute',left:0,right:0,textAlign:'center'};var $h={backgroundColor:'#EF592E',position:'absolute',height:30,width:'100%'};var $bg={borderTopLeftRadius:30,borderTopRightRadius:30,backgroundColor:'white',flex:1};var $title2={fontSize:16,fontWeight:'bold',color:'#333333',paddingBottom:10,marginTop:6};var $row={flexDirection:'row',marginBottom:16,gap:16};var $select={flexDirection:'row',height:40,alignItems:'center',paddingHorizontal:8,borderWidth:1,borderRadius:4,borderColor:'#E0E0E0'};var $textInput={borderWidth:1,borderRadius:4,borderColor:'#E0E0E0',height:40,paddingHorizontal:8,fontFamily:'BeVietnamPro-Medium',fontSize:14};
2
2
  //# sourceMappingURL=AssetInformation.js.map
@@ -701,4 +701,5 @@ const $textInput: ViewStyle = {
701
701
  height: 40,
702
702
  paddingHorizontal: 8,
703
703
  fontFamily: 'BeVietnamPro-Medium',
704
+ fontSize: 14,
704
705
  };