react-native-timacare 0.0.16 → 0.0.18

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 (29) hide show
  1. package/lib/commonjs/screens/full-submit/index.js +1 -1
  2. package/lib/commonjs/screens/full-submit/index.js.flow +14 -7
  3. package/lib/commonjs/screens/full-submit/index.js.map +1 -1
  4. package/lib/commonjs/screens/full-submit/store.js +1 -1
  5. package/lib/commonjs/screens/full-submit/store.js.flow +1 -0
  6. package/lib/commonjs/screens/full-submit/store.js.map +1 -1
  7. package/lib/commonjs/screens/full-submit/update-info.js +1 -1
  8. package/lib/commonjs/screens/full-submit/update-info.js.flow +11 -5
  9. package/lib/commonjs/screens/full-submit/update-info.js.map +1 -1
  10. package/lib/commonjs/screens/home/index.js +1 -1
  11. package/lib/commonjs/screens/home/index.js.flow +826 -793
  12. package/lib/commonjs/screens/home/index.js.map +1 -1
  13. package/lib/module/screens/full-submit/index.js +1 -1
  14. package/lib/module/screens/full-submit/index.js.map +1 -1
  15. package/lib/module/screens/full-submit/store.js +1 -1
  16. package/lib/module/screens/full-submit/store.js.map +1 -1
  17. package/lib/module/screens/full-submit/update-info.js +1 -1
  18. package/lib/module/screens/full-submit/update-info.js.map +1 -1
  19. package/lib/module/screens/home/index.js +1 -1
  20. package/lib/module/screens/home/index.js.map +1 -1
  21. package/lib/typescript/screens/full-submit/index.d.ts.map +1 -1
  22. package/lib/typescript/screens/full-submit/store.d.ts.map +1 -1
  23. package/lib/typescript/screens/full-submit/update-info.d.ts.map +1 -1
  24. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  25. package/package.json +1 -1
  26. package/src/screens/full-submit/index.tsx +14 -7
  27. package/src/screens/full-submit/store.tsx +1 -0
  28. package/src/screens/full-submit/update-info.tsx +11 -5
  29. package/src/screens/home/index.tsx +826 -793
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.FullSubmit=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _native=require("@react-navigation/native");var _mobxReactLite=require("mobx-react-lite");var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _icons=require("../../assets/icons");var _MText=require("../../components/MText");var _theme=require("../../theme");var _CommonStyles=require("../CommonStyles");var _store=_interopRequireDefault(require("./store"));var _updateDocument=require("./update-document");var _updateInfo=require("./update-info");var _jsxFileName="/Users/quangduc/Documents/Tima/tima-care-v2/src/screens/full-submit/index.tsx";function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}var FullSubmit=(0,_mobxReactLite.observer)(function FullSubmit(props){var _props$route$params;var navigation=(0,_native.useNavigation)();var _useState=(0,_react.useState)(1),_useState2=(0,_slicedToArray2.default)(_useState,2),tab=_useState2[0],setTab=_useState2[1];var loan=props==null?void 0:(_props$route$params=props.route.params)==null?void 0:_props$route$params.loan;return _react.default.createElement(_reactNative.View,{style:{flex:1,backgroundColor:'#FFFFFF'},__self:this,__source:{fileName:_jsxFileName,lineNumber:21,columnNumber:5}},_react.default.createElement(_reactNative.SafeAreaView,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:22,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.alignCenter,{alignItems:'center',height:50,justifyContent:'center'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:23,columnNumber:9}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.goBack();_store.default.tab=1;},style:{width:40,height:40,position:'absolute',left:8,alignItems:'center',justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:29,columnNumber:11}},_react.default.createElement(_icons.IconBack,{fill:_theme.color.textHeader,__self:this,__source:{fileName:_jsxFileName,lineNumber:43,columnNumber:13}})),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{color:_theme.color.textHeader,fontSize:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:45,columnNumber:11}},"Ho\xE0n thi\u1EC7n h\u1ED3 s\u01A1")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',borderWidth:1,borderColor:'#EF4123',borderRadius:30,marginHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:54,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:63,columnNumber:11}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:_store.default.tab===1?['#FF7A00','#EF4123']:['#FFFFFF','#FFFFFF'],style:{alignItems:'center',borderRadius:30,paddingVertical:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:67,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:_store.default.tab===1?'#FFFFFF':'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:79,columnNumber:15}},"1. C\u1EADp nh\u1EADt th\xF4ng tin"))),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:88,columnNumber:11}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:_store.default.tab===2?['#FF7A00','#EF4123']:['#FFFFFF','#FFFFFF'],style:{alignItems:'center',borderRadius:30,paddingVertical:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:94,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:_store.default.tab===2?'#FFFFFF':'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:106,columnNumber:15}},"2. Upload ch\u1EE9ng t\u1EEB")))),_store.default.tab===1?_react.default.createElement(_updateInfo.UpdateInfo,{loan:loan,__self:this,__source:{fileName:_jsxFileName,lineNumber:117,columnNumber:11}}):_react.default.createElement(_updateDocument.UpdateDocument,{loan:loan,__self:this,__source:{fileName:_jsxFileName,lineNumber:119,columnNumber:11}})));});exports.FullSubmit=FullSubmit;
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.FullSubmit=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _native=require("@react-navigation/native");var _mobxReactLite=require("mobx-react-lite");var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _icons=require("../../assets/icons");var _MText=require("../../components/MText");var _theme=require("../../theme");var _CommonStyles=require("../CommonStyles");var _store=_interopRequireDefault(require("./store"));var _updateDocument=require("./update-document");var _updateInfo=require("./update-info");var _jsxFileName="/Users/quangduc/Documents/Tima/tima-care-v2/src/screens/full-submit/index.tsx";function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}var FullSubmit=(0,_mobxReactLite.observer)(function FullSubmit(props){var _props$route$params,_this=this;var navigation=(0,_native.useNavigation)();var _useState=(0,_react.useState)(1),_useState2=(0,_slicedToArray2.default)(_useState,2),tab=_useState2[0],setTab=_useState2[1];var loan=props==null?void 0:(_props$route$params=props.route.params)==null?void 0:_props$route$params.loan;return _react.default.createElement(_reactNative.View,{style:{flex:1,backgroundColor:'#FFFFFF'},__self:this,__source:{fileName:_jsxFileName,lineNumber:22,columnNumber:5}},_react.default.createElement(_reactNative.SafeAreaView,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:23,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.alignCenter,{alignItems:'center',height:50,justifyContent:'center'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:24,columnNumber:9}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.goBack();_store.default.tab=1;},style:{width:40,height:40,position:'absolute',left:8,alignItems:'center',justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:30,columnNumber:11}},_react.default.createElement(_icons.IconBack,{fill:_theme.color.textHeader,__self:this,__source:{fileName:_jsxFileName,lineNumber:44,columnNumber:13}})),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{color:_theme.color.textHeader,fontSize:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:46,columnNumber:11}},"Ho\xE0n thi\u1EC7n h\u1ED3 s\u01A1")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',borderWidth:1,borderColor:'#EF4123',borderRadius:30,marginHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:55,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:64,columnNumber:11}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:_store.default.tab===1?['#FF7A00','#EF4123']:['#FFFFFF','#FFFFFF'],style:{alignItems:'center',borderRadius:30,paddingVertical:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:68,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:_store.default.tab===1?'#FFFFFF':'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:80,columnNumber:15}},"1. C\u1EADp nh\u1EADt th\xF4ng tin"))),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:89,columnNumber:11}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:_store.default.tab===2?['#FF7A00','#EF4123']:['#FFFFFF','#FFFFFF'],style:{alignItems:'center',borderRadius:30,paddingVertical:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:95,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:_store.default.tab===2?'#FFFFFF':'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:107,columnNumber:15}},"2. Upload ch\u1EE9ng t\u1EEB")))),_react.default.createElement(_mobxReactLite.Observer,{__self:this,__source:{fileName:_jsxFileName,lineNumber:117,columnNumber:9}},function(){return _react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:119,columnNumber:13}},tab===1?_react.default.createElement(_updateInfo.UpdateInfo,{loan:loan,callback:function callback(value){return setTab(value);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:121,columnNumber:17}}):_react.default.createElement(_updateDocument.UpdateDocument,{loan:loan,__self:_this,__source:{fileName:_jsxFileName,lineNumber:123,columnNumber:17}}));})));});exports.FullSubmit=FullSubmit;
2
2
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  //@ts-nocheck
2
2
  import { useNavigation } from '@react-navigation/native';
3
- import { observer } from 'mobx-react-lite';
4
- import React, { useState } from 'react';
3
+ import { observer, Observer } from 'mobx-react-lite';
4
+ import React, { useEffect, useState } from 'react';
5
5
  import { SafeAreaView, TouchableOpacity, View } from 'react-native';
6
6
  import LinearGradient from 'react-native-linear-gradient';
7
7
  import { IconBack } from '../../assets/icons';
@@ -17,6 +17,7 @@ export const FullSubmit = observer(function FullSubmit(props: any) {
17
17
  const navigation = useNavigation();
18
18
  const [tab, setTab] = useState(1);
19
19
  const loan = props?.route.params?.loan;
20
+
20
21
  return (
21
22
  <View style={{ flex: 1, backgroundColor: '#FFFFFF' }}>
22
23
  <SafeAreaView style={{ flex: 1 }}>
@@ -113,11 +114,17 @@ export const FullSubmit = observer(function FullSubmit(props: any) {
113
114
  </LinearGradient>
114
115
  </View>
115
116
  </View>
116
- {FullSubmitStore.tab === 1 ? (
117
- <UpdateInfo loan={loan} />
118
- ) : (
119
- <UpdateDocument loan={loan} />
120
- )}
117
+ <Observer>
118
+ {() => (
119
+ <View style={{ flex: 1 }}>
120
+ {tab === 1 ? (
121
+ <UpdateInfo loan={loan} callback={(value) => setTab(value)} />
122
+ ) : (
123
+ <UpdateDocument loan={loan} />
124
+ )}
125
+ </View>
126
+ )}
127
+ </Observer>
121
128
  </SafeAreaView>
122
129
  </View>
123
130
  );
@@ -1 +1 @@
1
- {"version":3,"names":["_native","require","_mobxReactLite","_react","_interopRequireWildcard","_reactNative","_reactNativeLinearGradient","_interopRequireDefault","_icons","_MText","_theme","_CommonStyles","_store","_updateDocument","_updateInfo","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","FullSubmit","observer","props","_props$route$params","navigation","useNavigation","_useState","useState","_useState2","_slicedToArray2","tab","setTab","loan","route","params","createElement","View","style","flex","backgroundColor","__self","__source","fileName","lineNumber","columnNumber","SafeAreaView","commonStyles","alignCenter","alignItems","height","justifyContent","TouchableOpacity","onPress","goBack","FullSubmitStore","width","position","left","IconBack","fill","color","textHeader","MText","textNormalBold","fontSize","flexDirection","borderWidth","borderColor","borderRadius","marginHorizontal","colors","paddingVertical","UpdateInfo","UpdateDocument","exports"],"sourceRoot":"../../../../src","sources":["screens/full-submit/index.tsx"],"mappings":"kQACA,IAAAA,OAAA,CAAAC,OAAA,6BACA,IAAAC,cAAA,CAAAD,OAAA,oBACA,IAAAE,MAAA,CAAAC,uBAAA,CAAAH,OAAA,WACA,IAAAI,YAAA,CAAAJ,OAAA,iBACA,IAAAK,0BAAA,CAAAC,sBAAA,CAAAN,OAAA,kCACA,IAAAO,MAAA,CAAAP,OAAA,uBAEA,IAAAQ,MAAA,CAAAR,OAAA,2BACA,IAAAS,MAAA,CAAAT,OAAA,gBACA,IAAAU,aAAA,CAAAV,OAAA,oBACA,IAAAW,MAAA,CAAAL,sBAAA,CAAAN,OAAA,aACA,IAAAY,eAAA,CAAAZ,OAAA,sBACA,IAAAa,WAAA,CAAAb,OAAA,kBAA2C,IAAAc,YAAA,0FAAAC,yBAAAC,WAAA,YAAAC,OAAA,8BAAAC,iBAAA,KAAAD,OAAA,OAAAE,gBAAA,KAAAF,OAAA,UAAAF,wBAAA,UAAAA,yBAAAC,WAAA,SAAAA,WAAA,CAAAG,gBAAA,CAAAD,iBAAA,IAAAF,WAAA,YAAAb,wBAAAiB,GAAA,CAAAJ,WAAA,MAAAA,WAAA,EAAAI,GAAA,EAAAA,GAAA,CAAAC,UAAA,SAAAD,GAAA,KAAAA,GAAA,gBAAAA,GAAA,oBAAAA,GAAA,sBAAAE,OAAA,CAAAF,GAAA,OA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,CAACxB,GAAG,GAAK,CAAC,CACxB7C,MAAA,CAAAoB,OAAA,CAAA8B,aAAA,CAACvC,WAAA,CAAA4E,UAAU,EAACxC,IAAI,CAAEA,IAAK,CAAAQ,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA7C,YAAA,CAAA8C,UAAA,KAAAC,YAAA,KAAE,CAAC,CAE1B3D,MAAA,CAAAoB,OAAA,CAAA8B,aAAA,CAACxC,eAAA,CAAA8E,cAAc,EAACzC,IAAI,CAAEA,IAAK,CAAAQ,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA7C,YAAA,CAAA8C,UAAA,KAAAC,YAAA,KAAE,CAEnB,CACV,CAAC,CAEX,CAAC,CAAC,CAAC8B,OAAA,CAAAtD,UAAA,CAAAA,UAAA"}
1
+ {"version":3,"names":["_native","require","_mobxReactLite","_react","_interopRequireWildcard","_reactNative","_reactNativeLinearGradient","_interopRequireDefault","_icons","_MText","_theme","_CommonStyles","_store","_updateDocument","_updateInfo","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","FullSubmit","observer","props","_props$route$params","_this","navigation","useNavigation","_useState","useState","_useState2","_slicedToArray2","tab","setTab","loan","route","params","createElement","View","style","flex","backgroundColor","__self","__source","fileName","lineNumber","columnNumber","SafeAreaView","commonStyles","alignCenter","alignItems","height","justifyContent","TouchableOpacity","onPress","goBack","FullSubmitStore","width","position","left","IconBack","fill","color","textHeader","MText","textNormalBold","fontSize","flexDirection","borderWidth","borderColor","borderRadius","marginHorizontal","colors","paddingVertical","Observer","UpdateInfo","callback","value","UpdateDocument","exports"],"sourceRoot":"../../../../src","sources":["screens/full-submit/index.tsx"],"mappings":"kQACA,IAAAA,OAAA,CAAAC,OAAA,6BACA,IAAAC,cAAA,CAAAD,OAAA,oBACA,IAAAE,MAA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AEA,IAAK,CAAC0C,QAAQ,CAAE,SAAAA,SAACC,KAAK,QAAK,CAAA5C,MAAM,CAAC4C,KAAK,CAAC,EAAC,CAAAnC,MAAA,CAAAjB,KAAA,CAAAkB,QAAA,EAAAC,QAAA,CAAA9C,YAAA,CAAA+C,UAAA,KAAAC,YAAA,KAAE,CAAC,CAE9D5D,MAAA,CAAAoB,OAAA,CAAA+B,aAAA,CAACzC,eAAA,CAAAkF,cAAc,EAAC5C,IAAI,CAAEA,IAAK,CAAAQ,MAAA,CAAAjB,KAAA,CAAAkB,QAAA,EAAAC,QAAA,CAAA9C,YAAA,CAAA+C,UAAA,KAAAC,YAAA,KAAE,CAE3B,CAAC,EAED,CACE,CACV,CAAC,CAEX,CAAC,CAAC,CAACiC,OAAA,CAAA1D,UAAA,CAAAA,UAAA"}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _initializerDefineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/initializerDefineProperty"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));var _applyDecoratedDescriptor2=_interopRequireDefault(require("@babel/runtime/helpers/applyDecoratedDescriptor"));var _initializerWarningHelper2=_interopRequireDefault(require("@babel/runtime/helpers/initializerWarningHelper"));var _mobx=require("mobx");var _reactNative=require("react-native");var _api=require("../../services/api");var _class,_descriptor,_descriptor2,_descriptor3,_descriptor4,_descriptor5,_descriptor6,_descriptor7,_descriptor8,_descriptor9,_descriptor10,_descriptor11,_descriptor12,_descriptor13,_descriptor14,_descriptor15;var Store=(_class=function(){function Store(){(0,_classCallCheck2.default)(this,Store);(0,_initializerDefineProperty2.default)(this,"isLoading",_descriptor,this);(0,_initializerDefineProperty2.default)(this,"listDocument",_descriptor2,this);(0,_initializerDefineProperty2.default)(this,"loadingDocument",_descriptor3,this);(0,_initializerDefineProperty2.default)(this,"listJobTitle",_descriptor4,this);(0,_initializerDefineProperty2.default)(this,"listSourceFund",_descriptor5,this);(0,_initializerDefineProperty2.default)(this,"listStatusWorking",_descriptor6,this);(0,_initializerDefineProperty2.default)(this,"listTypeMerried",_descriptor7,this);(0,_initializerDefineProperty2.default)(this,"listBanks",_descriptor8,this);(0,_initializerDefineProperty2.default)(this,"tab",_descriptor9,this);(0,_initializerDefineProperty2.default)(this,"loadingButton",_descriptor10,this);(0,_initializerDefineProperty2.default)(this,"loadingInsurance",_descriptor11,this);(0,_initializerDefineProperty2.default)(this,"dataInsurance",_descriptor12,this);(0,_initializerDefineProperty2.default)(this,"lstStatusJobCIMB",_descriptor13,this);(0,_initializerDefineProperty2.default)(this,"lstIncomeCIMB",_descriptor14,this);(0,_initializerDefineProperty2.default)(this,"lstPositionCIMB",_descriptor15,this);}(0,_createClass2.default)(Store,[{key:"getDetailLoan",value:function getDetailLoan(id,onSuccess){var response;return _regenerator.default.async(function getDetailLoan$(_context){while(1){switch(_context.prev=_context.next){case 0:this.isLoading=true;_context.prev=1;_context.next=4;return _regenerator.default.awrap(_api.Api.getInstance().getDetailFullSubmit(id));case 4:response=_context.sent;this.isLoading=false;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){if(onSuccess)onSuccess(response.data.data);}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Không thể lấy thông tin đơn vay');}_context.next=14;break;case 10:_context.prev=10;_context.t0=_context["catch"](1);this.isLoading=false;console.log(_context.t0);case 14:case"end":return _context.stop();}}},null,this,[[1,10]],Promise);}},{key:"getDocument",value:function getDocument(id){var response;return _regenerator.default.async(function getDocument$(_context2){while(1){switch(_context2.prev=_context2.next){case 0:this.loadingDocument=true;_context2.prev=1;_context2.next=4;return _regenerator.default.awrap(_api.Api.getInstance().getDocument(id));case 4:response=_context2.sent;this.loadingDocument=false;if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.listDocument=response.data.data;}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau.');}_context2.next=14;break;case 9:_context2.prev=9;_context2.t0=_context2["catch"](1);this.loadingDocument=false;_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau.');console.log(_context2.t0);case 14:case"end":return _context2.stop();}}},null,this,[[1,9]],Promise);}},{key:"uploadDocument",value:function uploadDocument(body,onSuccess){var response;return _regenerator.default.async(function uploadDocument$(_context3){while(1){switch(_context3.prev=_context3.next){case 0:this.loadingDocument=true;_context3.prev=1;_context3.next=4;return _regenerator.default.awrap(_api.Api.getInstance().uploadDocument(body));case 4:response=_context3.sent;this.loadingDocument=false;if(response.kind==='ok'){if(response.data.meta.errorCode===200){if(onSuccess)onSuccess();}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau.');}_context3.next=14;break;case 9:_context3.prev=9;_context3.t0=_context3["catch"](1);this.loadingDocument=false;_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau.');console.log(_context3.t0);case 14:case"end":return _context3.stop();}}},null,this,[[1,9]],Promise);}},{key:"getListSourceFund",value:function getListSourceFund(){var response;return _regenerator.default.async(function getListSourceFund$(_context4){while(1){switch(_context4.prev=_context4.next){case 0:_context4.prev=0;_context4.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getSourceFund());case 3:response=_context4.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.listSourceFund=response.data.data.map(function(item){return{id:item.code,name:item.vi};});}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Không lấy được danh sách nguồn thu nhập.');}_context4.next=11;break;case 8:_context4.prev=8;_context4.t0=_context4["catch"](0);console.log(_context4.t0);case 11:case"end":return _context4.stop();}}},null,this,[[0,8]],Promise);}},{key:"getListStatusWorking",value:function getListStatusWorking(){var response;return _regenerator.default.async(function getListStatusWorking$(_context5){while(1){switch(_context5.prev=_context5.next){case 0:_context5.prev=0;_context5.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getStatusWorking());case 3:response=_context5.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.listStatusWorking=response.data.data.map(function(item){return{id:item.code,name:item.vi};});}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Không lấy được trạng thái làm việc.');}_context5.next=11;break;case 8:_context5.prev=8;_context5.t0=_context5["catch"](0);console.log(_context5.t0);case 11:case"end":return _context5.stop();}}},null,this,[[0,8]],Promise);}},{key:"getListJobTitle",value:function getListJobTitle(){var response;return _regenerator.default.async(function getListJobTitle$(_context6){while(1){switch(_context6.prev=_context6.next){case 0:_context6.prev=0;_context6.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getJobTitle());case 3:response=_context6.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.listJobTitle=response.data.data.map(function(item){return{id:item.code,name:item.vi};});}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Không lấy được danh sách chức vụ.');}_context6.next=11;break;case 8:_context6.prev=8;_context6.t0=_context6["catch"](0);console.log(_context6.t0);case 11:case"end":return _context6.stop();}}},null,this,[[0,8]],Promise);}},{key:"getTypeMerried",value:function getTypeMerried(){var response;return _regenerator.default.async(function getTypeMerried$(_context7){while(1){switch(_context7.prev=_context7.next){case 0:_context7.prev=0;_context7.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getTypeMerried());case 3:response=_context7.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.listTypeMerried=response.data.data;}else{}}else{}_context7.next=11;break;case 8:_context7.prev=8;_context7.t0=_context7["catch"](0);console.log(_context7.t0);case 11:case"end":return _context7.stop();}}},null,this,[[0,8]],Promise);}},{key:"getListBank",value:function getListBank(){var response;return _regenerator.default.async(function getListBank$(_context8){while(1){switch(_context8.prev=_context8.next){case 0:_context8.prev=0;_context8.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getBanks());case 3:response=_context8.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.listBanks=response.data.data.map(function(item){return{id:item.bankId,name:item.name};});}else{}}else{}_context8.next=11;break;case 8:_context8.prev=8;_context8.t0=_context8["catch"](0);console.log(_context8.t0);case 11:case"end":return _context8.stop();}}},null,this,[[0,8]],Promise);}},{key:"fullSubmit",value:function fullSubmit(body,onSuccess){var response;return _regenerator.default.async(function fullSubmit$(_context9){while(1){switch(_context9.prev=_context9.next){case 0:this.loadingButton=true;_context9.prev=1;_context9.next=4;return _regenerator.default.awrap(_api.Api.getInstance().fullSubmit(body));case 4:response=_context9.sent;this.loadingButton=false;if(response.kind==='ok'){if(response.data.meta.errorCode===200){if(onSuccess)onSuccess();}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau.');}_context9.next=13;break;case 9:_context9.prev=9;_context9.t0=_context9["catch"](1);this.loadingButton=false;_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau.');case 13:case"end":return _context9.stop();}}},null,this,[[1,9]],Promise);}},{key:"confirmData",value:function confirmData(id,onSuccess){var response;return _regenerator.default.async(function confirmData$(_context10){while(1){switch(_context10.prev=_context10.next){case 0:this.loadingButton=true;_context10.prev=1;_context10.next=4;return _regenerator.default.awrap(_api.Api.getInstance().confirmData(id));case 4:response=_context10.sent;this.loadingButton=false;if(response.kind==='ok'){if(response.data.meta.errorCode===200){if(onSuccess)onSuccess();}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau.');}_context10.next=13;break;case 9:_context10.prev=9;_context10.t0=_context10["catch"](1);this.loadingButton=false;_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau.');case 13:case"end":return _context10.stop();}}},null,this,[[1,9]],Promise);}},{key:"getInsurance",value:function getInsurance(params){var response;return _regenerator.default.async(function getInsurance$(_context11){while(1){switch(_context11.prev=_context11.next){case 0:this.loadingInsurance=true;_context11.prev=1;_context11.next=4;return _regenerator.default.awrap(_api.Api.getInstance().getInsurance(params));case 4:response=_context11.sent;console.log(response);this.loadingInsurance=false;if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.dataInsurance=response.data.data;}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{this.loadingInsurance=false;_reactNative.Alert.alert('Thông báo','Không lấy được phí bảo hiểm.');}_context11.next=14;break;case 10:_context11.prev=10;_context11.t0=_context11["catch"](1);console.log(_context11.t0);this.loadingInsurance=false;case 14:case"end":return _context11.stop();}}},null,this,[[1,10]],Promise);}},{key:"confirmInsurance",value:function confirmInsurance(body,onSuccess){var response;return _regenerator.default.async(function confirmInsurance$(_context12){while(1){switch(_context12.prev=_context12.next){case 0:_context12.prev=0;_context12.next=3;return _regenerator.default.awrap(_api.Api.getInstance().confirmInsurance(body));case 3:response=_context12.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){if(onSuccess)onSuccess();}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau!');}_context12.next=11;break;case 8:_context12.prev=8;_context12.t0=_context12["catch"](0);console.log(_context12.t0);case 11:case"end":return _context12.stop();}}},null,null,[[0,8]],Promise);}},{key:"getPositionCIMB",value:function getPositionCIMB(){var response;return _regenerator.default.async(function getPositionCIMB$(_context13){while(1){switch(_context13.prev=_context13.next){case 0:_context13.prev=0;_context13.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getPositionCIMB());case 3:response=_context13.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.lstPositionCIMB=response.data.data;}else{}}else{}_context13.next=11;break;case 8:_context13.prev=8;_context13.t0=_context13["catch"](0);console.log(_context13.t0);case 11:case"end":return _context13.stop();}}},null,this,[[0,8]],Promise);}},{key:"getJobStatusCIMB",value:function getJobStatusCIMB(){var response;return _regenerator.default.async(function getJobStatusCIMB$(_context14){while(1){switch(_context14.prev=_context14.next){case 0:_context14.prev=0;_context14.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getJobStatusCIMB());case 3:response=_context14.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.lstStatusJobCIMB=response.data.data;}else{}}else{}_context14.next=11;break;case 8:_context14.prev=8;_context14.t0=_context14["catch"](0);console.log(_context14.t0);case 11:case"end":return _context14.stop();}}},null,this,[[0,8]],Promise);}},{key:"getIncomeCIMB",value:function getIncomeCIMB(){var response;return _regenerator.default.async(function getIncomeCIMB$(_context15){while(1){switch(_context15.prev=_context15.next){case 0:_context15.prev=0;_context15.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getIncomeCIMB());case 3:response=_context15.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.lstIncomeCIMB=response.data.data;}else{}}else{}_context15.next=11;break;case 8:_context15.prev=8;_context15.t0=_context15["catch"](0);console.log(_context15.t0);case 11:case"end":return _context15.stop();}}},null,this,[[0,8]],Promise);}}]);return Store;}(),(_descriptor=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"isLoading",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return false;}}),_descriptor2=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"listDocument",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor3=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"loadingDocument",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return false;}}),_descriptor4=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"listJobTitle",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor5=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"listSourceFund",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor6=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"listStatusWorking",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor7=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"listTypeMerried",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor8=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"listBanks",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor9=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"tab",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return 1;}}),_descriptor10=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"loadingButton",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return false;}}),_descriptor11=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"loadingInsurance",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return false;}}),_descriptor12=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"dataInsurance",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return null;}}),_descriptor13=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"lstStatusJobCIMB",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor14=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"lstIncomeCIMB",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor15=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"lstPositionCIMB",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getDetailLoan",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getDetailLoan"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getDocument",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getDocument"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"uploadDocument",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"uploadDocument"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getListSourceFund",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getListSourceFund"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getListStatusWorking",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getListStatusWorking"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getListJobTitle",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getListJobTitle"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getTypeMerried",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getTypeMerried"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getListBank",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getListBank"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"fullSubmit",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"fullSubmit"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"confirmData",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"confirmData"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getInsurance",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getInsurance"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"confirmInsurance",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"confirmInsurance"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getPositionCIMB",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getPositionCIMB"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getJobStatusCIMB",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getJobStatusCIMB"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getIncomeCIMB",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getIncomeCIMB"),_class.prototype)),_class);var FullSubmitStore=new Store();var _default=FullSubmitStore;exports.default=_default;
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _initializerDefineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/initializerDefineProperty"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));var _applyDecoratedDescriptor2=_interopRequireDefault(require("@babel/runtime/helpers/applyDecoratedDescriptor"));var _initializerWarningHelper2=_interopRequireDefault(require("@babel/runtime/helpers/initializerWarningHelper"));var _mobx=require("mobx");var _reactNative=require("react-native");var _api=require("../../services/api");var _class,_descriptor,_descriptor2,_descriptor3,_descriptor4,_descriptor5,_descriptor6,_descriptor7,_descriptor8,_descriptor9,_descriptor10,_descriptor11,_descriptor12,_descriptor13,_descriptor14,_descriptor15;var Store=(_class=function(){function Store(){(0,_classCallCheck2.default)(this,Store);(0,_initializerDefineProperty2.default)(this,"isLoading",_descriptor,this);(0,_initializerDefineProperty2.default)(this,"listDocument",_descriptor2,this);(0,_initializerDefineProperty2.default)(this,"loadingDocument",_descriptor3,this);(0,_initializerDefineProperty2.default)(this,"listJobTitle",_descriptor4,this);(0,_initializerDefineProperty2.default)(this,"listSourceFund",_descriptor5,this);(0,_initializerDefineProperty2.default)(this,"listStatusWorking",_descriptor6,this);(0,_initializerDefineProperty2.default)(this,"listTypeMerried",_descriptor7,this);(0,_initializerDefineProperty2.default)(this,"listBanks",_descriptor8,this);(0,_initializerDefineProperty2.default)(this,"tab",_descriptor9,this);(0,_initializerDefineProperty2.default)(this,"loadingButton",_descriptor10,this);(0,_initializerDefineProperty2.default)(this,"loadingInsurance",_descriptor11,this);(0,_initializerDefineProperty2.default)(this,"dataInsurance",_descriptor12,this);(0,_initializerDefineProperty2.default)(this,"lstStatusJobCIMB",_descriptor13,this);(0,_initializerDefineProperty2.default)(this,"lstIncomeCIMB",_descriptor14,this);(0,_initializerDefineProperty2.default)(this,"lstPositionCIMB",_descriptor15,this);}(0,_createClass2.default)(Store,[{key:"getDetailLoan",value:function getDetailLoan(id,onSuccess){var response;return _regenerator.default.async(function getDetailLoan$(_context){while(1){switch(_context.prev=_context.next){case 0:this.isLoading=true;_context.prev=1;_context.next=4;return _regenerator.default.awrap(_api.Api.getInstance().getDetailFullSubmit(id));case 4:response=_context.sent;this.isLoading=false;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){if(onSuccess)onSuccess(response.data.data);}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Không thể lấy thông tin đơn vay');}_context.next=14;break;case 10:_context.prev=10;_context.t0=_context["catch"](1);this.isLoading=false;console.log(_context.t0);case 14:case"end":return _context.stop();}}},null,this,[[1,10]],Promise);}},{key:"getDocument",value:function getDocument(id){var response;return _regenerator.default.async(function getDocument$(_context2){while(1){switch(_context2.prev=_context2.next){case 0:this.loadingDocument=true;_context2.prev=1;_context2.next=4;return _regenerator.default.awrap(_api.Api.getInstance().getDocument(id));case 4:response=_context2.sent;this.loadingDocument=false;if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.listDocument=response.data.data;}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau.');}_context2.next=14;break;case 9:_context2.prev=9;_context2.t0=_context2["catch"](1);this.loadingDocument=false;_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau.');console.log(_context2.t0);case 14:case"end":return _context2.stop();}}},null,this,[[1,9]],Promise);}},{key:"uploadDocument",value:function uploadDocument(body,onSuccess){var response;return _regenerator.default.async(function uploadDocument$(_context3){while(1){switch(_context3.prev=_context3.next){case 0:this.loadingDocument=true;_context3.prev=1;_context3.next=4;return _regenerator.default.awrap(_api.Api.getInstance().uploadDocument(body));case 4:response=_context3.sent;this.loadingDocument=false;if(response.kind==='ok'){if(response.data.meta.errorCode===200){if(onSuccess)onSuccess();}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau.');}_context3.next=14;break;case 9:_context3.prev=9;_context3.t0=_context3["catch"](1);this.loadingDocument=false;_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau.');console.log(_context3.t0);case 14:case"end":return _context3.stop();}}},null,this,[[1,9]],Promise);}},{key:"getListSourceFund",value:function getListSourceFund(){var response;return _regenerator.default.async(function getListSourceFund$(_context4){while(1){switch(_context4.prev=_context4.next){case 0:_context4.prev=0;_context4.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getSourceFund());case 3:response=_context4.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.listSourceFund=response.data.data.map(function(item){return{id:item.code,name:item.vi};});}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Không lấy được danh sách nguồn thu nhập.');}_context4.next=11;break;case 8:_context4.prev=8;_context4.t0=_context4["catch"](0);console.log(_context4.t0);case 11:case"end":return _context4.stop();}}},null,this,[[0,8]],Promise);}},{key:"getListStatusWorking",value:function getListStatusWorking(){var response;return _regenerator.default.async(function getListStatusWorking$(_context5){while(1){switch(_context5.prev=_context5.next){case 0:_context5.prev=0;_context5.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getStatusWorking());case 3:response=_context5.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.listStatusWorking=response.data.data.map(function(item){return{id:item.code,name:item.vi};});}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Không lấy được trạng thái làm việc.');}_context5.next=11;break;case 8:_context5.prev=8;_context5.t0=_context5["catch"](0);console.log(_context5.t0);case 11:case"end":return _context5.stop();}}},null,this,[[0,8]],Promise);}},{key:"getListJobTitle",value:function getListJobTitle(){var response;return _regenerator.default.async(function getListJobTitle$(_context6){while(1){switch(_context6.prev=_context6.next){case 0:_context6.prev=0;_context6.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getJobTitle());case 3:response=_context6.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.listJobTitle=response.data.data.map(function(item){return{id:item.code,name:item.vi};});}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Không lấy được danh sách chức vụ.');}_context6.next=11;break;case 8:_context6.prev=8;_context6.t0=_context6["catch"](0);console.log(_context6.t0);case 11:case"end":return _context6.stop();}}},null,this,[[0,8]],Promise);}},{key:"getTypeMerried",value:function getTypeMerried(){var response;return _regenerator.default.async(function getTypeMerried$(_context7){while(1){switch(_context7.prev=_context7.next){case 0:_context7.prev=0;_context7.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getTypeMerried());case 3:response=_context7.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.listTypeMerried=response.data.data;}else{}}else{}_context7.next=11;break;case 8:_context7.prev=8;_context7.t0=_context7["catch"](0);console.log(_context7.t0);case 11:case"end":return _context7.stop();}}},null,this,[[0,8]],Promise);}},{key:"getListBank",value:function getListBank(){var response;return _regenerator.default.async(function getListBank$(_context8){while(1){switch(_context8.prev=_context8.next){case 0:_context8.prev=0;_context8.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getBanks());case 3:response=_context8.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.listBanks=response.data.data.map(function(item){return{id:item.bankId,name:item.name};});}else{}}else{}_context8.next=11;break;case 8:_context8.prev=8;_context8.t0=_context8["catch"](0);console.log(_context8.t0);case 11:case"end":return _context8.stop();}}},null,this,[[0,8]],Promise);}},{key:"fullSubmit",value:function fullSubmit(body,onSuccess){var response;return _regenerator.default.async(function fullSubmit$(_context9){while(1){switch(_context9.prev=_context9.next){case 0:this.loadingButton=true;_context9.prev=1;_context9.next=4;return _regenerator.default.awrap(_api.Api.getInstance().fullSubmit(body));case 4:response=_context9.sent;this.loadingButton=false;if(response.kind==='ok'){if(response.data.meta.errorCode===200){if(onSuccess)onSuccess();}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau.');}_context9.next=13;break;case 9:_context9.prev=9;_context9.t0=_context9["catch"](1);this.loadingButton=false;_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau.');case 13:case"end":return _context9.stop();}}},null,this,[[1,9]],Promise);}},{key:"confirmData",value:function confirmData(id,onSuccess){var response;return _regenerator.default.async(function confirmData$(_context10){while(1){switch(_context10.prev=_context10.next){case 0:this.loadingButton=true;_context10.prev=1;_context10.next=4;return _regenerator.default.awrap(_api.Api.getInstance().confirmData(id));case 4:response=_context10.sent;this.loadingButton=false;if(response.kind==='ok'){if(response.data.meta.errorCode===200){if(onSuccess)onSuccess();this.tab=2;}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau.');}_context10.next=13;break;case 9:_context10.prev=9;_context10.t0=_context10["catch"](1);this.loadingButton=false;_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau.');case 13:case"end":return _context10.stop();}}},null,this,[[1,9]],Promise);}},{key:"getInsurance",value:function getInsurance(params){var response;return _regenerator.default.async(function getInsurance$(_context11){while(1){switch(_context11.prev=_context11.next){case 0:this.loadingInsurance=true;_context11.prev=1;_context11.next=4;return _regenerator.default.awrap(_api.Api.getInstance().getInsurance(params));case 4:response=_context11.sent;console.log(response);this.loadingInsurance=false;if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.dataInsurance=response.data.data;}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{this.loadingInsurance=false;_reactNative.Alert.alert('Thông báo','Không lấy được phí bảo hiểm.');}_context11.next=14;break;case 10:_context11.prev=10;_context11.t0=_context11["catch"](1);console.log(_context11.t0);this.loadingInsurance=false;case 14:case"end":return _context11.stop();}}},null,this,[[1,10]],Promise);}},{key:"confirmInsurance",value:function confirmInsurance(body,onSuccess){var response;return _regenerator.default.async(function confirmInsurance$(_context12){while(1){switch(_context12.prev=_context12.next){case 0:_context12.prev=0;_context12.next=3;return _regenerator.default.awrap(_api.Api.getInstance().confirmInsurance(body));case 3:response=_context12.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){if(onSuccess)onSuccess();}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau!');}_context12.next=11;break;case 8:_context12.prev=8;_context12.t0=_context12["catch"](0);console.log(_context12.t0);case 11:case"end":return _context12.stop();}}},null,null,[[0,8]],Promise);}},{key:"getPositionCIMB",value:function getPositionCIMB(){var response;return _regenerator.default.async(function getPositionCIMB$(_context13){while(1){switch(_context13.prev=_context13.next){case 0:_context13.prev=0;_context13.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getPositionCIMB());case 3:response=_context13.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.lstPositionCIMB=response.data.data;}else{}}else{}_context13.next=11;break;case 8:_context13.prev=8;_context13.t0=_context13["catch"](0);console.log(_context13.t0);case 11:case"end":return _context13.stop();}}},null,this,[[0,8]],Promise);}},{key:"getJobStatusCIMB",value:function getJobStatusCIMB(){var response;return _regenerator.default.async(function getJobStatusCIMB$(_context14){while(1){switch(_context14.prev=_context14.next){case 0:_context14.prev=0;_context14.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getJobStatusCIMB());case 3:response=_context14.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.lstStatusJobCIMB=response.data.data;}else{}}else{}_context14.next=11;break;case 8:_context14.prev=8;_context14.t0=_context14["catch"](0);console.log(_context14.t0);case 11:case"end":return _context14.stop();}}},null,this,[[0,8]],Promise);}},{key:"getIncomeCIMB",value:function getIncomeCIMB(){var response;return _regenerator.default.async(function getIncomeCIMB$(_context15){while(1){switch(_context15.prev=_context15.next){case 0:_context15.prev=0;_context15.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getIncomeCIMB());case 3:response=_context15.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.lstIncomeCIMB=response.data.data;}else{}}else{}_context15.next=11;break;case 8:_context15.prev=8;_context15.t0=_context15["catch"](0);console.log(_context15.t0);case 11:case"end":return _context15.stop();}}},null,this,[[0,8]],Promise);}}]);return Store;}(),(_descriptor=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"isLoading",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return false;}}),_descriptor2=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"listDocument",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor3=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"loadingDocument",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return false;}}),_descriptor4=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"listJobTitle",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor5=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"listSourceFund",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor6=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"listStatusWorking",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor7=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"listTypeMerried",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor8=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"listBanks",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor9=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"tab",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return 1;}}),_descriptor10=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"loadingButton",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return false;}}),_descriptor11=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"loadingInsurance",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return false;}}),_descriptor12=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"dataInsurance",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return null;}}),_descriptor13=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"lstStatusJobCIMB",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor14=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"lstIncomeCIMB",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor15=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"lstPositionCIMB",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getDetailLoan",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getDetailLoan"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getDocument",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getDocument"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"uploadDocument",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"uploadDocument"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getListSourceFund",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getListSourceFund"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getListStatusWorking",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getListStatusWorking"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getListJobTitle",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getListJobTitle"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getTypeMerried",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getTypeMerried"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getListBank",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getListBank"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"fullSubmit",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"fullSubmit"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"confirmData",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"confirmData"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getInsurance",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getInsurance"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"confirmInsurance",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"confirmInsurance"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getPositionCIMB",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getPositionCIMB"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getJobStatusCIMB",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getJobStatusCIMB"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getIncomeCIMB",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getIncomeCIMB"),_class.prototype)),_class);var FullSubmitStore=new Store();var _default=FullSubmitStore;exports.default=_default;
2
2
  //# sourceMappingURL=store.js.map
@@ -222,6 +222,7 @@ class Store {
222
222
  if (response.kind === 'ok') {
223
223
  if (response.data.meta.errorCode === 200) {
224
224
  if (onSuccess) onSuccess();
225
+ this.tab = 2;
225
226
  } else {
226
227
  Alert.alert('Thông báo', response.data.meta.errorMessage);
227
228
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_mobx","require","_reactNative","_api","_class","_descriptor","_descriptor2","_descriptor3","_descriptor4","_descriptor5","_descriptor6","_descriptor7","_descriptor8","_descriptor9","_descriptor10","_descriptor11","_descriptor12","_descriptor13","_descriptor14","_descriptor15","Store","_classCallCheck2","default","_initializerDefineProperty2","_createClass2","key","value","getDetailLoan","id","onSuccess","response","_regenerator","async","getDetailLoan$","_context","prev","next","isLoading","awrap","Api","getInstance","getDetailFullSubmit","sent","console","log","kind","data","meta","errorCode","Alert","alert","errorMessage","t0","stop","Promise","getDocument","getDocument$","_context2","loadingDocument","listDocument","uploadDocument","body","uploadDocument$","_context3","getListSourceFund","getListSourceFund$","_context4","getSourceFund","listSourceFund","map","item","code","name","vi","getListStatusWorking","getListStatusWorking$","_context5","getStatusWorking","listStatusWorking","getListJobTitle","getListJobTitle$","_context6","getJobTitle","listJobTitle","getTypeMerried","getTypeMerried$","_context7","listTypeMerried","getListBank","getListBank$","_context8","getBanks","listBanks","bankId","fullSubmit","fullSubmit$","_context9","loadingButton","confirmData","confirmData$","_context10","getInsurance","params","getInsurance$","_context11","loadingInsurance","dataInsurance","confirmInsurance","confirmInsurance$","_context12","getPositionCIMB","getPositionCIMB$","_context13","lstPositionCIMB","getJobStatusCIMB","getJobStatusCIMB$","_context14","lstStatusJobCIMB","getIncomeCIMB","getIncomeCIMB$","_context15","lstIncomeCIMB","_applyDecoratedDescriptor2","prototype","observable","configurable","enumerable","writable","initializer","action","Object","getOwnPropertyDescriptor","FullSubmitStore","_default","exports"],"sourceRoot":"../../../../src","sources":["screens/full-submit/store.tsx"],"mappings":"81BACA,IAAAA,KAAA,CAAAC,OAAA,SACA,IAAAC,YAAA,CAAAD,OAAA,iBACA,IAAAE,IAAA,CAAAF,OAAA,uBAAyC,IAAAG,MAAA,CAAAC,WAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,aAAA,CAAAC,aAAA,CAAAC,aAAA,CAAAC,aAAA,CAAAC,aAAA,CAAAC,aAAA,IAEnC,CAAAC,KAAK,EAAAhB,MAAA,qBAAAgB,MAAA,KAAAC,gBAAA,CAAAC,OAAA,OAAAF,KAAA,KAAAG,2BAAA,CAAAD,OAAA,mBAAAjB,WAAA,UAAAkB,2BAAA,CAAAD,OAAA,sBAAAhB,YAAA,UAAAiB,2BAAA,CAAAD,OAAA,yBAAAf,YAAA,UAAAgB,2BAAA,CAAAD,OAAA,sBAAAd,YAAA,UAAAe,2BAAA,CAAAD,OAAA,wBAAAb,YAAA,UAAAc,2BAAA,CAAAD,OAAA,2BAAAZ,YAAA,UAAAa,2BAAA,CAAAD,OAAA,yBAAAX,YAAA,UAAAY,2BAAA,CAAAD,OAAA,mBAAAV,YAAA,UAAAW,2BAAA,CAAAD,OAAA,aAAAT,YAAA,UAAAU,2BAAA,CAAAD,OAAA,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AuH,SAAA,qBAAAvH,MAAA,CAAAuH,SAAA,KAAAD,0BAAA,CAAApG,OAAA,EAAAlB,MAAA,CAAAuH,SAAA,oBAmBNM,YAAM,EAAAC,MAAA,CAAAC,wBAAA,CAAA/H,MAAA,CAAAuH,SAAA,oBAAAvH,MAAA,CAAAuH,SAAA,KAAAD,0BAAA,CAAApG,OAAA,EAAAlB,MAAA,CAAAuH,SAAA,qBAkBNM,YAAM,EAAAC,MAAA,CAAAC,wBAAA,CAAA/H,MAAA,CAAAuH,SAAA,qBAAAvH,MAAA,CAAAuH,SAAA,KAAAD,0BAAA,CAAApG,OAAA,EAAAlB,MAAA,CAAAuH,SAAA,kBAkBNM,YAAM,EAAAC,MAAA,CAAAC,wBAAA,CAAA/H,MAAA,CAAAuH,SAAA,kBAAAvH,MAAA,CAAAuH,SAAA,GAAAvH,MAAA,EAmBT,GAAM,CAAAgI,eAAe,CAAG,GAAI,CAAAhH,KAAK,CAAC,CAAC,CAAC,IAAAiH,QAAA,CACrBD,eAAe,CAAAE,OAAA,CAAAhH,OAAA,CAAA+G,QAAA"}
1
+ {"version":3,"names":["_mobx","require","_reactNative","_api","_class","_descriptor","_descriptor2","_descriptor3","_descriptor4","_descriptor5","_descriptor6","_descriptor7","_descriptor8","_descriptor9","_descriptor10","_descriptor11","_descriptor12","_descriptor13","_descriptor14","_descriptor15","Store","_classCallCheck2","default","_initializerDefineProperty2","_createClass2","key","value","getDetailLoan","id","onSuccess","response","_regenerator","async","getDetailLoan$","_context","prev","next","isLoading","awrap","Api","getInstance","getDetailFullSubmit","sent","console","log","kind","data","meta","errorCode","Alert","alert","errorMessage","t0","stop","Promise","getDocument","getDocument$","_context2","loadingDocument","listDocument","uploadDocument","body","uploadDocument$","_context3","getListSourceFund","getListSourceFund$","_context4","getSourceFund","listSourceFund","map","item","code","name","vi","getListStatusWorking","getListStatusWorking$","_context5","getStatusWorking","listStatusWorking","getListJobTitle","getListJobTitle$","_context6","getJobTitle","listJobTitle","getTypeMerried","getTypeMerried$","_context7","listTypeMerried","getListBank","getListBank$","_context8","getBanks","listBanks","bankId","fullSubmit","fullSubmit$","_context9","loadingButton","confirmData","confirmData$","_context10","tab","getInsurance","params","getInsurance$","_context11","loadingInsurance","dataInsurance","confirmInsurance","confirmInsurance$","_context12","getPositionCIMB","getPositionCIMB$","_context13","lstPositionCIMB","getJobStatusCIMB","getJobStatusCIMB$","_context14","lstStatusJobCIMB","getIncomeCIMB","getIncomeCIMB$","_context15","lstIncomeCIMB","_applyDecoratedDescriptor2","prototype","observable","configurable","enumerable","writable","initializer","action","Object","getOwnPropertyDescriptor","FullSubmitStore","_default","exports"],"sourceRoot":"../../../../src","sources":["screens/full-submit/store.tsx"],"mappings":"81BACA,IAAAA,KAAA,CAAAC,OAAA,SACA,IAAAC,YAAA,CAAAD,OAAA,iBACA,IAAAE,IAAA,CAAAF,OAAA,uBAAyC,IAAAG,MAAA,CAAAC,WAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,aAAA,CAAAC,aAAA,CAAAC,aAAA,CAAAC,aAAA,CAAAC,aAAA,CAAAC,aAAA,IAEnC,CAAAC,KAAK,EAAAhB,MAAA,qBAAAgB,MAAA,KAAAC,gBAAA,CAAAC,OAAA,OAAAF,KAAA,KAAAG,2BAAA,CAAAD,OAAA,mBAAAjB,WAAA,UAAAkB,2BAAA,CAAAD,OAAA,sBAAAhB,YAAA,UAAAiB,2BAAA,CAAAD,OAAA,yBAAAf,YAAA,UAAAgB,2BAAA,CAAAD,OAAA,sBAAAd,YAAA,UAAAe,2BAAA,CAAAD,OAAA,wBAAAb,YAAA,UAAAc,2BAAA,CAAAD,OAAA,2BAAAZ,YAAA,UAAAa,2BAAA,CAAAD,OAAA,yBAAAX,YAAA,UAAAY,2BAAA,CAAAD,OAAA,mBAAAV,YAAA,UAAAW,2BAAA,CAAAD,OAAA,aAAAT,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AAwH,SAAA,qBAsBNM,YAAM,EAAAC,MAAA,CAAAC,wBAAA,CAAAhI,MAAA,CAAAwH,SAAA,qBAAAxH,MAAA,CAAAwH,SAAA,KAAAD,0BAAA,CAAArG,OAAA,EAAAlB,MAAA,CAAAwH,SAAA,oBAmBNM,YAAM,EAAAC,MAAA,CAAAC,wBAAA,CAAAhI,MAAA,CAAAwH,SAAA,oBAAAxH,MAAA,CAAAwH,SAAA,KAAAD,0BAAA,CAAArG,OAAA,EAAAlB,MAAA,CAAAwH,SAAA,qBAkBNM,YAAM,EAAAC,MAAA,CAAAC,wBAAA,CAAAhI,MAAA,CAAAwH,SAAA,qBAAAxH,MAAA,CAAAwH,SAAA,KAAAD,0BAAA,CAAArG,OAAA,EAAAlB,MAAA,CAAAwH,SAAA,kBAkBNM,YAAM,EAAAC,MAAA,CAAAC,wBAAA,CAAAhI,MAAA,CAAAwH,SAAA,kBAAAxH,MAAA,CAAAwH,SAAA,GAAAxH,MAAA,EAmBT,GAAM,CAAAiI,eAAe,CAAG,GAAI,CAAAjH,KAAK,CAAC,CAAC,CAAC,IAAAkH,QAAA,CACrBD,eAAe,CAAAE,OAAA,CAAAjH,OAAA,CAAAgH,QAAA"}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.UpdateInfo=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _native=require("@react-navigation/native");var _formik=require("formik");var _mobxReactLite=require("mobx-react-lite");var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _icons=require("../../assets/icons");var _keyboardspace=_interopRequireDefault(require("../../components/keyboardspace"));var _MText=require("../../components/MText");var _navigation=require("../../navigation");var _theme=require("../../theme");var _utils=require("../../utils");var _CommonStyles=require("../CommonStyles");var yup=_interopRequireWildcard(require("yup"));var _store=_interopRequireDefault(require("./store"));var _CIMBLoading=_interopRequireDefault(require("../../components/CIMBLoading"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _AppStore=_interopRequireDefault(require("../../AppStore"));var _jsxFileName="/Users/quangduc/Documents/Tima/tima-care-v2/src/screens/full-submit/update-info.tsx";function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}var UpdateInfo=(0,_mobxReactLite.observer)(function UpdateInfo(_ref){var _this=this;var loan=_ref.loan;var navigation=(0,_native.useNavigation)();var ref=(0,_react.useRef)(null);var _useState=(0,_react.useState)(null),_useState2=(0,_slicedToArray2.default)(_useState,2),data=_useState2[0],setData=_useState2[1];(0,_react.useEffect)(function(){if(loan){_store.default.getDetailLoan(loan==null?void 0:loan.id,function(res){setData(res);ref.current.setFieldValue('rate',res!=null&&res.rate?""+(res==null?void 0:res.rate):'');ref.current.setFieldValue('loanAmount',res!=null&&res.loanAmount?res==null?void 0:res.loanAmount:'');ref.current.setFieldValue('loanTime',res!=null&&res.loanTime?res==null?void 0:res.loanTime:'');ref.current.setFieldValue('gender',(res==null?void 0:res.gender)===0?{id:0,name:'Nam'}:{id:1,name:'Nữ'});ref.current.setFieldValue('married',res!=null&&res.merried?_store.default.listTypeMerried.filter(function(item){return item.id===(res==null?void 0:res.merried);})[0]:null);ref.current.setFieldValue('statusWorking',res!=null&&res.jobStatusNameCIMB?{id:res==null?void 0:res.jobStatusCIMBId,name:res==null?void 0:res.jobStatusNameCIMB}:null);ref.current.setFieldValue('jobTitle',res!=null&&res.positionNameCIMB?{id:res==null?void 0:res.positionCIMBId,name:res==null?void 0:res.positionNameCIMB}:null);ref.current.setFieldValue('sourceFund',res!=null&&res.incomeNameCIMB?{id:res==null?void 0:res.incomeCIMBId,name:res==null?void 0:res.incomeNameCIMB}:null);ref.current.setFieldValue('taxCode',res!=null&&res.taxCode?res==null?void 0:res.taxCode:'');ref.current.setFieldValue('address',res!=null&&res.addressResident?res==null?void 0:res.addressResident:'');ref.current.setFieldValue('addressHouseHold',res!=null&&res.addressHouseHold?res==null?void 0:res.addressHouseHold:'');ref.current.setFieldValue('bank',res!=null&&res.bankId?{id:res==null?void 0:res.bankId,name:res==null?void 0:res.bankName}:null);ref.current.setFieldValue('bank_account',res!=null&&res.bankAccountNumber?res==null?void 0:res.bankAccountNumber:'');ref.current.setFieldValue('account_holder',res!=null&&res.bankAccountName?res==null?void 0:res.bankAccountName:'');});}},[loan]);var onSubmit=function onSubmit(values){var body={Id:data==null?void 0:data.id,LoanAmount:data==null?void 0:data.loanAmount,LoanTime:data==null?void 0:data.loanTime,Gender:values==null?void 0:values.gender.id,Merried:values==null?void 0:values.married.id,AddressResident:values.address,AddressHouseHold:values==null?void 0:values.addressHouseHold,EmploymentStatus:values.statusWorking.id,JobTitle:values.jobTitle.id,SourceOfFund:values.sourceFund.id,TaxCode:values.taxCode,LoanPurpose:values.purpose.id,BankId:values==null?void 0:values.bank.id,BankAccountName:values==null?void 0:values.account_holder,BankAccountNumber:values==null?void 0:values.bank_account,RequestForwardIP:_AppStore.default.publicIp,LocationLat:_AppStore.default.lat,LocationLong:_AppStore.default.long,CustomerDeviceID:_AppStore.default.deviceId,PartnerAppRefID:_AppStore.default.appRefID,UserDevicePayload:_AppStore.default.userDevicePayload,incomeCIMBId:values.sourceFund.id,jobStatusCIMBId:values.statusWorking.id,positionCIMBId:values.jobTitle.id};_store.default.fullSubmit(body,function(){_store.default.tab=2;});};return _react.default.createElement(_reactNative.View,{style:{flex:1,backgroundColor:'#FFFFFF'},__self:this,__source:{fileName:_jsxFileName,lineNumber:157,columnNumber:5}},_store.default.isLoading?_react.default.createElement(_reactNative.View,{style:{flex:1,alignItems:'center',justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:159,columnNumber:9}},_react.default.createElement(_reactNative.ActivityIndicator,{size:'small',color:_theme.color.primary,__self:this,__source:{fileName:_jsxFileName,lineNumber:162,columnNumber:11}})):_react.default.createElement(_reactNative.ScrollView,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:165,columnNumber:9}},_react.default.createElement(_formik.Formik,{innerRef:ref,initialValues:{loanAmount:'',terms:true,rate:'',gender:null,married:null,purpose:{id:3008,name:'Mua sắm trang thiết bị, vật dụng gia đình'},loanTime:'',statusWorking:null,jobTitle:null,sourceFund:null,taxCode:'',address:'',addressHouseHold:'',check:true,bank:null,bank_account:'',account_holder:''},onSubmit:onSubmit,validationSchema:yup.object().shape({terms:yup.bool().oneOf([true],''),statusWorking:yup.object().required('Vui lòng chọn tình trạng làm việc').nullable(),married:yup.object().required('Vui lòng chọn tình trạng hôn nhân').nullable(),gender:yup.object().required('Vui lòng chọn giới tính').nullable(),bank:yup.object().required('Vui lòng chọn ngân hàng').nullable(),jobTitle:yup.object().required('Vui lòng chọn chức vụ').nullable(),sourceFund:yup.object().required('Vui lòng chọn nguồn thu nhập').nullable(),address:yup.string().required('Vui lòng nhập địa chỉ nơi ở'),addressHouseHold:yup.string().required('Vui lòng nhập địa chỉ thường trú'),check:yup.bool().oneOf([true],''),bank_account:yup.string().required('Vui lòng nhập số tài khoản').matches(/^[0-9]*$/,'Định dạng không đúng'),account_holder:yup.string().required('Vui lòng nhập chủ tài khoản')}),__self:this,__source:{fileName:_jsxFileName,lineNumber:166,columnNumber:11}},function(_ref2){var _values$gender,_values$married,_values$statusWorking,_values$jobTitle,_values$sourceFund,_values$purpose,_values$bank;var values=_ref2.values,handleSubmit=_ref2.handleSubmit,setFieldValue=_ref2.setFieldValue,errors=_ref2.errors,handleChange=_ref2.handleChange,isValid=_ref2.isValid;return _react.default.createElement(_reactNative.View,{style:{margin:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:236,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{fontSize:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:237,columnNumber:17}},"TH\xD4NG TIN \u0110\u01A0N"),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:240,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:247,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:248,columnNumber:21}},"S\u1ED1 ti\u1EC1n vay (VND)"),_react.default.createElement(_reactNative.TextInput,{style:[styles.input,{backgroundColor:'#F2F3F5'}],value:(0,_utils.formatMoney)(values.loanAmount),onChangeText:handleChange('loanAmount'),keyboardType:"numeric",editable:false,__self:_this,__source:{fileName:_jsxFileName,lineNumber:251,columnNumber:21}})),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:259,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:260,columnNumber:21}},"K\u1EF3 h\u1EA1n"),_react.default.createElement(_reactNative.TextInput,{style:[styles.input,{backgroundColor:'#F2F3F5'}],value:values.loanTime+" th\xE1ng",onChangeText:handleChange('loanAmount'),keyboardType:"numeric",editable:false,__self:_this,__source:{fileName:_jsxFileName,lineNumber:261,columnNumber:21}}))),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:270,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:277,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:278,columnNumber:21}},"L\xE3i su\u1EA5t (%)"),_react.default.createElement(_reactNative.TextInput,{editable:false,style:[styles.input,{backgroundColor:'#F2F3F5'}],keyboardType:"numeric",value:values.rate,onChangeText:handleChange('rate'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:281,columnNumber:21}})),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:289,columnNumber:19}})),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:291,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:298,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:299,columnNumber:21}},"Gi\u1EDBi t\xEDnh ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:300,columnNumber:33}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:true,style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn giới tính',data:_utils.EnumGender,callback:function callback(value){setFieldValue('gender',value);}}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:302,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:325,columnNumber:23}},values.gender?(_values$gender=values.gender)==null?void 0:_values$gender.name:''),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:328,columnNumber:23}})),errors&&errors.gender&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:331,columnNumber:23}},errors.gender)),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:343,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:344,columnNumber:21}},"T\xECnh tr\u1EA1ng h\xF4n nh\xE2n",' ',_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:346,columnNumber:23}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:(loan==null?void 0:loan.typeLoan)===4?false:true,style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:(loan==null?void 0:loan.typeLoan)===4?'white':'#F2F3F5'}],onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn tình trạng hôn nhân',data:_store.default.listTypeMerried,callback:function callback(value){setFieldValue('married',value);}}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:348,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:372,columnNumber:23}},values.married?(_values$married=values.married)==null?void 0:_values$married.name:''),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:375,columnNumber:23}})),errors&&errors.merried&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:378,columnNumber:23}},errors.merried))),_react.default.createElement(_reactNative.View,{style:{marginTop:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:392,columnNumber:17}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:393,columnNumber:19}},"\u0110\u1ECBa ch\u1EC9 n\u01A1i \u1EDF ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:394,columnNumber:35}},"*")),_react.default.createElement(_reactNative.TextInput,{style:styles.input,value:values.address,onChangeText:handleChange('address'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:396,columnNumber:19}}),errors&&errors.address&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:402,columnNumber:21}},errors.address)),_react.default.createElement(_reactNative.View,{style:{marginTop:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:414,columnNumber:17}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:415,columnNumber:19}},"\u0110\u1ECBa ch\u1EC9 th\u01B0\u1EDDng tr\xFA ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:416,columnNumber:40}},"*")),_react.default.createElement(_reactNative.TextInput,{editable:false,style:[styles.input,{backgroundColor:'#F2F3F5'}],value:values.addressHouseHold,onChangeText:handleChange('addressHouseHold'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:418,columnNumber:19}}),errors&&errors.addressHouseHold&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:426,columnNumber:21}},errors.addressHouseHold)),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:439,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:446,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:447,columnNumber:21}},"T\xECnh tr\u1EA1ng vi\u1EC7c l\xE0m",' ',_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:449,columnNumber:23}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:(loan==null?void 0:loan.typeLoan)===4?'white':'#F2F3F5'}],disabled:(loan==null?void 0:loan.typeLoan)===4?false:true,onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Tình trạng làm việc',data:_store.default.lstStatusJobCIMB,callback:function callback(value){setFieldValue('statusWorking',value);}}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:451,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:475,columnNumber:23}},(_values$statusWorking=values.statusWorking)==null?void 0:_values$statusWorking.name),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:481,columnNumber:23}})),errors&&errors.statusWorking&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:484,columnNumber:23}},errors.statusWorking)),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:496,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:497,columnNumber:21}},"Ch\u1EE9c v\u1EE5 ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:498,columnNumber:31}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:(loan==null?void 0:loan.typeLoan)===4?'white':'#F2F3F5'}],disabled:(loan==null?void 0:loan.typeLoan)===4?false:true,onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn chức vụ',data:_store.default.lstPositionCIMB,callback:function callback(value){setFieldValue('jobTitle',value);}}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:500,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:524,columnNumber:23}},(_values$jobTitle=values.jobTitle)==null?void 0:_values$jobTitle.name),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:530,columnNumber:23}})),errors&&errors.jobTitle&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:533,columnNumber:23}},errors.jobTitle))),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:546,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:553,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:554,columnNumber:21}},"Ngu\u1ED3n thu nh\u1EADp ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:555,columnNumber:38}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center'}],onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Nguồn thu nhập',data:_store.default.lstIncomeCIMB,callback:function callback(value){setFieldValue('sourceFund',value);}}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:557,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:580,columnNumber:23}},(_values$sourceFund=values.sourceFund)==null?void 0:_values$sourceFund.name),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:586,columnNumber:23}})),errors&&errors.sourceFund&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:589,columnNumber:23}},errors.sourceFund)),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:601,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:602,columnNumber:21}},"M\xE3 s\u1ED1 thu\u1EBF"),_react.default.createElement(_reactNative.TextInput,{style:styles.input,keyboardType:"number-pad",value:values.taxCode,onChangeText:handleChange('taxCode'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:603,columnNumber:21}}))),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:611,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:618,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:619,columnNumber:21}},"M\u1EE5c \u0111\xEDch s\u1EED d\u1EE5ng v\u1ED1n"),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:true,style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:622,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:634,columnNumber:23}},values.purpose?(_values$purpose=values.purpose)==null?void 0:_values$purpose.name:''),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:640,columnNumber:23}}))),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:643,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:644,columnNumber:21}},"Ng\xE2n h\xE0ng"),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:true,style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn ngân hàng',data:_store.default.listBanks,callback:function callback(value){setFieldValue('bank',value);}}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:645,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:668,columnNumber:23}},values.bank?(_values$bank=values.bank)==null?void 0:_values$bank.name:''),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:674,columnNumber:23}})),errors&&errors.bank&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:677,columnNumber:23}},errors.bank))),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:690,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:697,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:698,columnNumber:21}},"S\u1ED1 t\xE0i kho\u1EA3n"),_react.default.createElement(_reactNative.TextInput,{numberOfLines:1,editable:false,style:[styles.input,{backgroundColor:'#F2F3F5'}],value:values.bank_account,onChangeText:handleChange('bank_account'),keyboardType:"numeric",__self:_this,__source:{fileName:_jsxFileName,lineNumber:701,columnNumber:21}}),errors&&errors.bank_account&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:711,columnNumber:23}},errors.bank_account)),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:723,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:724,columnNumber:21}},"Ch\u1EE7 t\xE0i kho\u1EA3n"),_react.default.createElement(_reactNative.TextInput,{numberOfLines:1,editable:false,style:[styles.input,{backgroundColor:'#F2F3F5'}],value:values.account_holder.toUpperCase(),onChangeText:handleChange('account_holder'),autoCapitalize:"characters",__self:_this,__source:{fileName:_jsxFileName,lineNumber:727,columnNumber:21}}),errors&&errors.account_holder&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:737,columnNumber:23}},errors.account_holder))),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#BDBDBD',marginVertical:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:750,columnNumber:17}}),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:757,columnNumber:17}},"\u0110i\u1EC1u ki\u1EC7n v\xE0 \u0111i\u1EC1u kho\u1EA3n:"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:760,columnNumber:17}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setFieldValue('terms',!values.terms);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:761,columnNumber:19}},!values.terms?_react.default.createElement(_icons.CheckBox,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:766,columnNumber:38}}):_react.default.createElement(_icons.CheckBoxActive,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:766,columnNumber:53}})),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setFieldValue('terms',!values.terms);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:768,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{marginLeft:8}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:773,columnNumber:21}},"T\xF4i \u0111\u1ED3ng \xFD v\u1EDBi",' ')),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.QuickTerm,{fullSubmit:true}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:777,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{color:'#EF4123'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:786,columnNumber:21}},"\u0111i\u1EC1u ki\u1EC7n v\xE0 \u0111i\u1EC1u kho\u1EA3n"))),_react.default.createElement(_reactNative.TouchableOpacity,{style:{flexDirection:'row',marginTop:16},onPress:function onPress(){setFieldValue('check',!values.check);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:797,columnNumber:17}},values.check?_react.default.createElement(_icons.CheckBoxActive,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:803,columnNumber:35}}):_react.default.createElement(_icons.CheckBox,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:803,columnNumber:56}}),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{marginLeft:8}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:804,columnNumber:19}},"T\xF4i x\xE1c nh\u1EADn nh\u1EEFng th\xF4ng tin sau:")),_react.default.createElement(_reactNative.View,{style:{paddingHorizontal:30,marginTop:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:808,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:809,columnNumber:19}},_react.default.createElement(_reactNative.View,{style:{height:5,width:5,backgroundColor:'black',borderRadius:30},__self:_this,__source:{fileName:_jsxFileName,lineNumber:810,columnNumber:21}}),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{marginLeft:5}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:818,columnNumber:21}},"T\xF4i \u0111ang s\u1ED1ng t\u1EA1i Vi\u1EC7t Nam")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:822,columnNumber:19}},_react.default.createElement(_reactNative.View,{style:{height:5,width:5,backgroundColor:'black',borderRadius:30},__self:_this,__source:{fileName:_jsxFileName,lineNumber:823,columnNumber:21}}),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{marginLeft:5}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:831,columnNumber:21}},"\u0110\u1ED3ng \xFD cung c\u1EA5p th\xF4ng tin cho b\xEAn th\u1EE9 ba")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:835,columnNumber:19}},_react.default.createElement(_reactNative.View,{style:{height:5,width:5,backgroundColor:'black',borderRadius:30},__self:_this,__source:{fileName:_jsxFileName,lineNumber:836,columnNumber:21}}),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{marginLeft:5}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:844,columnNumber:21}},"Kh\xF4ng l\xE0 ng\u01B0\u1EDDi nh\u1EADn \u1EE7y th\xE1c c\u1EE7a t\u1ED5",'\n',"ch\u1EE9c u\u1EF7 th\xE1c n\u01B0\u1EDBc ngo\xE0i")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:849,columnNumber:19}},_react.default.createElement(_reactNative.View,{style:{height:5,width:5,backgroundColor:'black',borderRadius:30},__self:_this,__source:{fileName:_jsxFileName,lineNumber:850,columnNumber:21}}),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{marginLeft:5}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:858,columnNumber:21}},"Kh\xF4ng l\xE0 th\u01B0\u1EDDng tr\xFA nh\xE2n/c\xF4ng d\xE2n t\u1EA1i M\u1EF9")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:862,columnNumber:19}},_react.default.createElement(_reactNative.View,{style:{height:5,width:5,backgroundColor:'black',borderRadius:30},__self:_this,__source:{fileName:_jsxFileName,lineNumber:863,columnNumber:21}}),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{marginLeft:5}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:871,columnNumber:21}},"Kh\xF4ng c\xF3 ng\u01B0\u1EDDi quen l\xE0m t\u1EA1i CIMB"))),_react.default.createElement(_reactNative.View,{style:{marginTop:40},__self:_this,__source:{fileName:_jsxFileName,lineNumber:876,columnNumber:17}},_react.default.createElement(_reactNative.TouchableOpacity,{disabled:!isValid||_store.default.loadingButton,onPress:function onPress(){return handleSubmit();},__self:_this,__source:{fileName:_jsxFileName,lineNumber:877,columnNumber:19}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:isValid?['#FF7A00','#EF4123']:['#BDBDBD','#BDBDBD'],style:{alignItems:'center',borderRadius:30,height:40,justifyContent:'center'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:881,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{color:'#FFFFFF'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:894,columnNumber:23}},"Ti\u1EBFp t\u1EE5c")))),_react.default.createElement(_keyboardspace.default,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:905,columnNumber:17}}));})),_react.default.createElement(_CIMBLoading.default,{isLoading:_store.default.loadingButton,__self:this,__source:{fileName:_jsxFileName,lineNumber:911,columnNumber:7}}));});exports.UpdateInfo=UpdateInfo;var styles=_reactNative.StyleSheet.create({input:{height:40,marginVertical:0,borderWidth:0.5,borderColor:'#E0E0E0',borderRadius:4,marginTop:8,paddingHorizontal:10,fontFamily:'Roboto',color:'#333333',fontWeight:'bold'}});
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.UpdateInfo=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _native=require("@react-navigation/native");var _formik=require("formik");var _mobxReactLite=require("mobx-react-lite");var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _icons=require("../../assets/icons");var _keyboardspace=_interopRequireDefault(require("../../components/keyboardspace"));var _MText=require("../../components/MText");var _navigation=require("../../navigation");var _theme=require("../../theme");var _utils=require("../../utils");var _CommonStyles=require("../CommonStyles");var yup=_interopRequireWildcard(require("yup"));var _store=_interopRequireDefault(require("./store"));var _CIMBLoading=_interopRequireDefault(require("../../components/CIMBLoading"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _AppStore=_interopRequireDefault(require("../../AppStore"));var _jsxFileName="/Users/quangduc/Documents/Tima/tima-care-v2/src/screens/full-submit/update-info.tsx";function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}var UpdateInfo=(0,_mobxReactLite.observer)(function UpdateInfo(_ref){var _this=this;var loan=_ref.loan,callback=_ref.callback;var navigation=(0,_native.useNavigation)();var ref=(0,_react.useRef)(null);var _useState=(0,_react.useState)(null),_useState2=(0,_slicedToArray2.default)(_useState,2),data=_useState2[0],setData=_useState2[1];(0,_react.useEffect)(function(){if(loan){_store.default.getDetailLoan(loan==null?void 0:loan.id,function(res){setData(res);ref.current.setFieldValue('rate',res!=null&&res.rate?""+(res==null?void 0:res.rate):'');ref.current.setFieldValue('loanAmount',res!=null&&res.loanAmount?res==null?void 0:res.loanAmount:'');ref.current.setFieldValue('loanTime',res!=null&&res.loanTime?res==null?void 0:res.loanTime:'');ref.current.setFieldValue('gender',(res==null?void 0:res.gender)===0?{id:0,name:'Nam'}:{id:1,name:'Nữ'});ref.current.setFieldValue('married',res!=null&&res.merried?_store.default.listTypeMerried.filter(function(item){return item.id===(res==null?void 0:res.merried);})[0]:null);ref.current.setFieldValue('statusWorking',res!=null&&res.jobStatusNameCIMB?{id:res==null?void 0:res.jobStatusCIMBId,name:res==null?void 0:res.jobStatusNameCIMB}:null);ref.current.setFieldValue('jobTitle',res!=null&&res.positionNameCIMB?{id:res==null?void 0:res.positionCIMBId,name:res==null?void 0:res.positionNameCIMB}:null);ref.current.setFieldValue('sourceFund',res!=null&&res.incomeNameCIMB?{id:res==null?void 0:res.incomeCIMBId,name:res==null?void 0:res.incomeNameCIMB}:null);ref.current.setFieldValue('taxCode',res!=null&&res.taxCode?res==null?void 0:res.taxCode:'');ref.current.setFieldValue('address',res!=null&&res.addressResident?res==null?void 0:res.addressResident:'');ref.current.setFieldValue('addressHouseHold',res!=null&&res.addressHouseHold?res==null?void 0:res.addressHouseHold:'');ref.current.setFieldValue('bank',res!=null&&res.bankId?{id:res==null?void 0:res.bankId,name:res==null?void 0:res.bankName}:null);ref.current.setFieldValue('bank_account',res!=null&&res.bankAccountNumber?res==null?void 0:res.bankAccountNumber:'');ref.current.setFieldValue('account_holder',res!=null&&res.bankAccountName?res==null?void 0:res.bankAccountName:'');});}},[loan]);var onSubmit=function onSubmit(values){var body={Id:data==null?void 0:data.id,LoanAmount:data==null?void 0:data.loanAmount,LoanTime:data==null?void 0:data.loanTime,Gender:values==null?void 0:values.gender.id,Merried:values==null?void 0:values.married.id,AddressResident:values.address,AddressHouseHold:values==null?void 0:values.addressHouseHold,TaxCode:values.taxCode,LoanPurpose:values.purpose.id,BankId:values==null?void 0:values.bank.id,BankAccountName:values==null?void 0:values.account_holder,BankAccountNumber:values==null?void 0:values.bank_account,RequestForwardIP:_AppStore.default.publicIp,LocationLat:_AppStore.default.lat,LocationLong:_AppStore.default.long,CustomerDeviceID:_AppStore.default.deviceId,PartnerAppRefID:_AppStore.default.appRefID,UserDevicePayload:_AppStore.default.userDevicePayload,incomeCIMBId:values.sourceFund.id,jobStatusCIMBId:values.statusWorking.id,positionCIMBId:values.jobTitle.id};_store.default.fullSubmit(body,function(){_store.default.tab=2;callback(2);});};return _react.default.createElement(_reactNative.View,{style:{flex:1,backgroundColor:'#FFFFFF'},__self:this,__source:{fileName:_jsxFileName,lineNumber:162,columnNumber:5}},_store.default.isLoading?_react.default.createElement(_reactNative.View,{style:{flex:1,alignItems:'center',justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:164,columnNumber:9}},_react.default.createElement(_reactNative.ActivityIndicator,{size:'small',color:_theme.color.primary,__self:this,__source:{fileName:_jsxFileName,lineNumber:167,columnNumber:11}})):_react.default.createElement(_reactNative.ScrollView,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:170,columnNumber:9}},_react.default.createElement(_formik.Formik,{innerRef:ref,initialValues:{loanAmount:'',terms:true,rate:'',gender:null,married:null,purpose:{id:3008,name:'Mua sắm trang thiết bị, vật dụng gia đình'},loanTime:'',statusWorking:null,jobTitle:null,sourceFund:null,taxCode:'',address:'',addressHouseHold:'',check:true,bank:null,bank_account:'',account_holder:''},onSubmit:onSubmit,validationSchema:yup.object().shape({terms:yup.bool().oneOf([true],''),statusWorking:yup.object().required('Vui lòng chọn tình trạng làm việc').nullable(),married:yup.object().required('Vui lòng chọn tình trạng hôn nhân').nullable(),gender:yup.object().required('Vui lòng chọn giới tính').nullable(),bank:yup.object().required('Vui lòng chọn ngân hàng').nullable(),jobTitle:yup.object().required('Vui lòng chọn chức vụ').nullable(),sourceFund:yup.object().required('Vui lòng chọn nguồn thu nhập').nullable(),address:yup.string().required('Vui lòng nhập địa chỉ nơi ở'),addressHouseHold:yup.string().required('Vui lòng nhập địa chỉ thường trú'),check:yup.bool().oneOf([true],''),bank_account:yup.string().required('Vui lòng nhập số tài khoản').matches(/^[0-9]*$/,'Định dạng không đúng'),account_holder:yup.string().required('Vui lòng nhập chủ tài khoản')}),__self:this,__source:{fileName:_jsxFileName,lineNumber:171,columnNumber:11}},function(_ref2){var _values$gender,_values$married,_values$statusWorking,_values$jobTitle,_values$sourceFund,_values$purpose,_values$bank;var values=_ref2.values,handleSubmit=_ref2.handleSubmit,setFieldValue=_ref2.setFieldValue,errors=_ref2.errors,handleChange=_ref2.handleChange,isValid=_ref2.isValid;return _react.default.createElement(_reactNative.View,{style:{margin:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:241,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{fontSize:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:242,columnNumber:17}},"TH\xD4NG TIN \u0110\u01A0N"),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:245,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:252,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:253,columnNumber:21}},"S\u1ED1 ti\u1EC1n vay (VND)"),_react.default.createElement(_reactNative.TextInput,{style:[styles.input,{backgroundColor:'#F2F3F5'}],value:(0,_utils.formatMoney)(values.loanAmount),onChangeText:handleChange('loanAmount'),keyboardType:"numeric",editable:false,__self:_this,__source:{fileName:_jsxFileName,lineNumber:256,columnNumber:21}})),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:264,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:265,columnNumber:21}},"K\u1EF3 h\u1EA1n"),_react.default.createElement(_reactNative.TextInput,{style:[styles.input,{backgroundColor:'#F2F3F5'}],value:values.loanTime+" th\xE1ng",onChangeText:handleChange('loanAmount'),keyboardType:"numeric",editable:false,__self:_this,__source:{fileName:_jsxFileName,lineNumber:266,columnNumber:21}}))),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:275,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:282,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:283,columnNumber:21}},"L\xE3i su\u1EA5t (%)"),_react.default.createElement(_reactNative.TextInput,{editable:false,style:[styles.input,{backgroundColor:'#F2F3F5'}],keyboardType:"numeric",value:values.rate,onChangeText:handleChange('rate'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:286,columnNumber:21}})),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:294,columnNumber:19}})),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:296,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:303,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:304,columnNumber:21}},"Gi\u1EDBi t\xEDnh ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:305,columnNumber:33}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:true,style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn giới tính',data:_utils.EnumGender,callback:function callback(value){setFieldValue('gender',value);}}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:307,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:330,columnNumber:23}},values.gender?(_values$gender=values.gender)==null?void 0:_values$gender.name:''),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:333,columnNumber:23}})),errors&&errors.gender&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:336,columnNumber:23}},errors.gender)),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:348,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:349,columnNumber:21}},"T\xECnh tr\u1EA1ng h\xF4n nh\xE2n",' ',_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:351,columnNumber:23}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:(loan==null?void 0:loan.typeLoan)===4?false:true,style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:(loan==null?void 0:loan.typeLoan)===4?'white':'#F2F3F5'}],onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn tình trạng hôn nhân',data:_store.default.listTypeMerried,callback:function callback(value){setFieldValue('married',value);}}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:353,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:377,columnNumber:23}},values.married?(_values$married=values.married)==null?void 0:_values$married.name:''),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:380,columnNumber:23}})),errors&&errors.merried&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:383,columnNumber:23}},errors.merried))),_react.default.createElement(_reactNative.View,{style:{marginTop:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:397,columnNumber:17}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:398,columnNumber:19}},"\u0110\u1ECBa ch\u1EC9 n\u01A1i \u1EDF ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:399,columnNumber:35}},"*")),_react.default.createElement(_reactNative.TextInput,{editable:false,style:[styles.input,{backgroundColor:'#F2F3F5'}],value:values.address,onChangeText:handleChange('address'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:401,columnNumber:19}}),errors&&errors.address&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:408,columnNumber:21}},errors.address)),_react.default.createElement(_reactNative.View,{style:{marginTop:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:420,columnNumber:17}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:421,columnNumber:19}},"\u0110\u1ECBa ch\u1EC9 th\u01B0\u1EDDng tr\xFA ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:422,columnNumber:40}},"*")),_react.default.createElement(_reactNative.TextInput,{editable:false,style:[styles.input,{backgroundColor:'#F2F3F5'}],value:values.addressHouseHold,onChangeText:handleChange('addressHouseHold'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:424,columnNumber:19}}),errors&&errors.addressHouseHold&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:432,columnNumber:21}},errors.addressHouseHold)),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:445,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:452,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:453,columnNumber:21}},"T\xECnh tr\u1EA1ng vi\u1EC7c l\xE0m",' ',_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:455,columnNumber:23}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:(loan==null?void 0:loan.typeLoan)===4?'white':'#F2F3F5'}],disabled:(loan==null?void 0:loan.typeLoan)===4?false:true,onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Tình trạng làm việc',data:_store.default.lstStatusJobCIMB,callback:function callback(value){setFieldValue('statusWorking',value);}}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:457,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:481,columnNumber:23}},(_values$statusWorking=values.statusWorking)==null?void 0:_values$statusWorking.name),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:487,columnNumber:23}})),errors&&errors.statusWorking&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:490,columnNumber:23}},errors.statusWorking)),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:502,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:503,columnNumber:21}},"Ch\u1EE9c v\u1EE5 ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:504,columnNumber:31}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:(loan==null?void 0:loan.typeLoan)===4?'white':'#F2F3F5'}],disabled:(loan==null?void 0:loan.typeLoan)===4?false:true,onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn chức vụ',data:_store.default.lstPositionCIMB,callback:function callback(value){setFieldValue('jobTitle',value);}}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:506,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:530,columnNumber:23}},(_values$jobTitle=values.jobTitle)==null?void 0:_values$jobTitle.name),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:536,columnNumber:23}})),errors&&errors.jobTitle&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:539,columnNumber:23}},errors.jobTitle))),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:552,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:559,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:560,columnNumber:21}},"Ngu\u1ED3n thu nh\u1EADp ",_react.default.createElement(_MText.MText,{style:{color:'red'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:561,columnNumber:38}},"*")),_react.default.createElement(_reactNative.TouchableOpacity,{style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center'}],onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Nguồn thu nhập',data:_store.default.lstIncomeCIMB,callback:function callback(value){setFieldValue('sourceFund',value);}}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:563,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:586,columnNumber:23}},(_values$sourceFund=values.sourceFund)==null?void 0:_values$sourceFund.name),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:592,columnNumber:23}})),errors&&errors.sourceFund&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:595,columnNumber:23}},errors.sourceFund)),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:607,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:608,columnNumber:21}},"M\xE3 s\u1ED1 thu\u1EBF"),_react.default.createElement(_reactNative.TextInput,{style:styles.input,keyboardType:"number-pad",value:values.taxCode,onChangeText:handleChange('taxCode'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:609,columnNumber:21}}))),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:617,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:624,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:625,columnNumber:21}},"M\u1EE5c \u0111\xEDch s\u1EED d\u1EE5ng v\u1ED1n"),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:true,style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:628,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:640,columnNumber:23}},values.purpose?(_values$purpose=values.purpose)==null?void 0:_values$purpose.name:''),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:646,columnNumber:23}}))),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:649,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:650,columnNumber:21}},"Ng\xE2n h\xE0ng"),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:true,style:[styles.input,{justifyContent:'space-between',flexDirection:'row',alignItems:'center',backgroundColor:'#F2F3F5'}],onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn ngân hàng',data:_store.default.listBanks,callback:function callback(value){setFieldValue('bank',value);}}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:651,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:674,columnNumber:23}},values.bank?(_values$bank=values.bank)==null?void 0:_values$bank.name:''),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:680,columnNumber:23}})),errors&&errors.bank&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:683,columnNumber:23}},errors.bank))),_react.default.createElement(_reactNative.View,{style:{marginTop:16,flexDirection:'row',justifyContent:'space-between'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:696,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginRight:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:703,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:704,columnNumber:21}},"S\u1ED1 t\xE0i kho\u1EA3n"),_react.default.createElement(_reactNative.TextInput,{numberOfLines:1,editable:false,style:[styles.input,{backgroundColor:'#F2F3F5'}],value:values.bank_account,onChangeText:handleChange('bank_account'),keyboardType:"numeric",__self:_this,__source:{fileName:_jsxFileName,lineNumber:707,columnNumber:21}}),errors&&errors.bank_account&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:717,columnNumber:23}},errors.bank_account)),_react.default.createElement(_reactNative.View,{style:{flex:1,marginLeft:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:729,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal],__self:_this,__source:{fileName:_jsxFileName,lineNumber:730,columnNumber:21}},"Ch\u1EE7 t\xE0i kho\u1EA3n"),_react.default.createElement(_reactNative.TextInput,{numberOfLines:1,editable:false,style:[styles.input,{backgroundColor:'#F2F3F5'}],value:values.account_holder.toUpperCase(),onChangeText:handleChange('account_holder'),autoCapitalize:"characters",__self:_this,__source:{fileName:_jsxFileName,lineNumber:733,columnNumber:21}}),errors&&errors.account_holder&&_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'red',fontStyle:'italic',marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:743,columnNumber:23}},errors.account_holder))),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#BDBDBD',marginVertical:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:756,columnNumber:17}}),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold],__self:_this,__source:{fileName:_jsxFileName,lineNumber:763,columnNumber:17}},"\u0110i\u1EC1u ki\u1EC7n v\xE0 \u0111i\u1EC1u kho\u1EA3n:"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:766,columnNumber:17}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setFieldValue('terms',!values.terms);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:767,columnNumber:19}},!values.terms?_react.default.createElement(_icons.CheckBox,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:772,columnNumber:38}}):_react.default.createElement(_icons.CheckBoxActive,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:772,columnNumber:53}})),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setFieldValue('terms',!values.terms);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:774,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{marginLeft:8}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:779,columnNumber:21}},"T\xF4i \u0111\u1ED3ng \xFD v\u1EDBi",' ')),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.QuickTerm,{fullSubmit:true}));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:783,columnNumber:19}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{color:'#EF4123'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:792,columnNumber:21}},"\u0111i\u1EC1u ki\u1EC7n v\xE0 \u0111i\u1EC1u kho\u1EA3n"))),_react.default.createElement(_reactNative.TouchableOpacity,{style:{flexDirection:'row',marginTop:16},onPress:function onPress(){setFieldValue('check',!values.check);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:803,columnNumber:17}},values.check?_react.default.createElement(_icons.CheckBoxActive,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:809,columnNumber:35}}):_react.default.createElement(_icons.CheckBox,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:809,columnNumber:56}}),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{marginLeft:8}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:810,columnNumber:19}},"T\xF4i x\xE1c nh\u1EADn nh\u1EEFng th\xF4ng tin sau:")),_react.default.createElement(_reactNative.View,{style:{paddingHorizontal:30,marginTop:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:814,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:815,columnNumber:19}},_react.default.createElement(_reactNative.View,{style:{height:5,width:5,backgroundColor:'black',borderRadius:30},__self:_this,__source:{fileName:_jsxFileName,lineNumber:816,columnNumber:21}}),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{marginLeft:5}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:824,columnNumber:21}},"T\xF4i \u0111ang s\u1ED1ng t\u1EA1i Vi\u1EC7t Nam")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:828,columnNumber:19}},_react.default.createElement(_reactNative.View,{style:{height:5,width:5,backgroundColor:'black',borderRadius:30},__self:_this,__source:{fileName:_jsxFileName,lineNumber:829,columnNumber:21}}),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{marginLeft:5}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:837,columnNumber:21}},"\u0110\u1ED3ng \xFD cung c\u1EA5p th\xF4ng tin cho b\xEAn th\u1EE9 ba")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:841,columnNumber:19}},_react.default.createElement(_reactNative.View,{style:{height:5,width:5,backgroundColor:'black',borderRadius:30},__self:_this,__source:{fileName:_jsxFileName,lineNumber:842,columnNumber:21}}),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{marginLeft:5}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:850,columnNumber:21}},"Kh\xF4ng l\xE0 ng\u01B0\u1EDDi nh\u1EADn \u1EE7y th\xE1c c\u1EE7a t\u1ED5",'\n',"ch\u1EE9c u\u1EF7 th\xE1c n\u01B0\u1EDBc ngo\xE0i")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:855,columnNumber:19}},_react.default.createElement(_reactNative.View,{style:{height:5,width:5,backgroundColor:'black',borderRadius:30},__self:_this,__source:{fileName:_jsxFileName,lineNumber:856,columnNumber:21}}),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{marginLeft:5}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:864,columnNumber:21}},"Kh\xF4ng l\xE0 th\u01B0\u1EDDng tr\xFA nh\xE2n/c\xF4ng d\xE2n t\u1EA1i M\u1EF9")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:868,columnNumber:19}},_react.default.createElement(_reactNative.View,{style:{height:5,width:5,backgroundColor:'black',borderRadius:30},__self:_this,__source:{fileName:_jsxFileName,lineNumber:869,columnNumber:21}}),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{marginLeft:5}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:877,columnNumber:21}},"Kh\xF4ng c\xF3 ng\u01B0\u1EDDi quen l\xE0m t\u1EA1i CIMB"))),_react.default.createElement(_reactNative.View,{style:{marginTop:40},__self:_this,__source:{fileName:_jsxFileName,lineNumber:882,columnNumber:17}},_react.default.createElement(_reactNative.TouchableOpacity,{disabled:!isValid||_store.default.loadingButton,onPress:function onPress(){return handleSubmit();},__self:_this,__source:{fileName:_jsxFileName,lineNumber:883,columnNumber:19}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:isValid?['#FF7A00','#EF4123']:['#BDBDBD','#BDBDBD'],style:{alignItems:'center',borderRadius:30,height:40,justifyContent:'center'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:887,columnNumber:21}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{color:'#FFFFFF'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:900,columnNumber:23}},"Ti\u1EBFp t\u1EE5c")))),_react.default.createElement(_keyboardspace.default,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:911,columnNumber:17}}));})),_react.default.createElement(_CIMBLoading.default,{isLoading:_store.default.loadingButton,__self:this,__source:{fileName:_jsxFileName,lineNumber:917,columnNumber:7}}));});exports.UpdateInfo=UpdateInfo;var styles=_reactNative.StyleSheet.create({input:{height:40,marginVertical:0,borderWidth:0.5,borderColor:'#E0E0E0',borderRadius:4,marginTop:8,paddingHorizontal:10,fontFamily:'Roboto',color:'#333333',fontWeight:'bold'}});
2
2
  //# sourceMappingURL=update-info.js.map
@@ -36,9 +36,13 @@ import appStore from '../../AppStore';
36
36
 
37
37
  interface IProps {
38
38
  loan: any;
39
+ callback: any;
39
40
  }
40
41
 
41
- export const UpdateInfo = observer(function UpdateInfo({ loan }: IProps) {
42
+ export const UpdateInfo = observer(function UpdateInfo({
43
+ loan,
44
+ callback,
45
+ }: IProps) {
42
46
  const navigation = useNavigation();
43
47
  const ref = useRef(null);
44
48
  const [data, setData] = useState(null);
@@ -129,9 +133,9 @@ export const UpdateInfo = observer(function UpdateInfo({ loan }: IProps) {
129
133
  Merried: values?.married.id,
130
134
  AddressResident: values.address,
131
135
  AddressHouseHold: values?.addressHouseHold,
132
- EmploymentStatus: values.statusWorking.id,
133
- JobTitle: values.jobTitle.id,
134
- SourceOfFund: values.sourceFund.id,
136
+ // EmploymentStatus: values.statusWorking.id,
137
+ // JobTitle: values.jobTitle.id,
138
+ // SourceOfFund: values.sourceFund.id,
135
139
  TaxCode: values.taxCode,
136
140
  LoanPurpose: values.purpose.id,
137
141
  BankId: values?.bank.id,
@@ -150,6 +154,7 @@ export const UpdateInfo = observer(function UpdateInfo({ loan }: IProps) {
150
154
 
151
155
  FullSubmitStore.fullSubmit(body, () => {
152
156
  FullSubmitStore.tab = 2;
157
+ callback(2);
153
158
  });
154
159
  };
155
160
 
@@ -394,7 +399,8 @@ export const UpdateInfo = observer(function UpdateInfo({ loan }: IProps) {
394
399
  Địa chỉ nơi ở <MText style={{ color: 'red' }}>*</MText>
395
400
  </MText>
396
401
  <TextInput
397
- style={styles.input}
402
+ editable={false}
403
+ style={[styles.input, { backgroundColor: '#F2F3F5' }]}
398
404
  value={values.address}
399
405
  onChangeText={handleChange('address')}
400
406
  />