react-native-timacare 3.1.72 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/assets/v3/index.js +1 -1
- package/lib/commonjs/assets/v3/index.js.flow +4 -0
- package/lib/commonjs/assets/v3/index.js.map +1 -1
- package/lib/commonjs/assets/v3/option1-active.svg +45 -0
- package/lib/commonjs/assets/v3/option2-disable.svg +18 -0
- package/lib/commonjs/assets/v3/option2.svg +32 -12
- package/lib/commonjs/components/ItemTimaOneV3.js +1 -1
- package/lib/commonjs/components/ItemTimaOneV3.js.flow +18 -15
- package/lib/commonjs/components/ItemTimaOneV3.js.map +1 -1
- package/lib/commonjs/components/ModalOptionLoan.js +1 -1
- package/lib/commonjs/components/ModalOptionLoan.js.flow +133 -106
- package/lib/commonjs/components/ModalOptionLoan.js.map +1 -1
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +4 -1
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.flow +9 -16
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js.flow +202 -536
- package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js.map +1 -1
- package/lib/commonjs/services/api/api-config.js +1 -1
- package/lib/commonjs/services/api/api-config.js.flow +2 -2
- package/lib/commonjs/services/api/api-config.js.map +1 -1
- package/lib/commonjs/services/api/api.js +1 -1
- package/lib/commonjs/services/api/api.js.flow +16 -0
- package/lib/commonjs/services/api/api.js.map +1 -1
- package/lib/module/assets/v3/index.js +1 -1
- package/lib/module/assets/v3/index.js.map +1 -1
- package/lib/module/assets/v3/option1-active.svg +45 -0
- package/lib/module/assets/v3/option2-disable.svg +18 -0
- package/lib/module/assets/v3/option2.svg +32 -12
- package/lib/module/components/ItemTimaOneV3.js +1 -1
- package/lib/module/components/ItemTimaOneV3.js.map +1 -1
- package/lib/module/components/ModalOptionLoan.js +1 -1
- package/lib/module/components/ModalOptionLoan.js.map +1 -1
- package/lib/module/screens/home/index.js +1 -1
- package/lib/module/screens/home/index.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSelfie.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TopupLoanInfo.js +1 -1
- package/lib/module/screens/toan-trinh-so/TopupLoanInfo.js.map +1 -1
- package/lib/module/services/api/api-config.js +1 -1
- package/lib/module/services/api/api-config.js.map +1 -1
- package/lib/module/services/api/api.js +1 -1
- package/lib/module/services/api/api.js.map +1 -1
- package/lib/typescript/assets/v3/index.d.ts +3 -1
- package/lib/typescript/assets/v3/index.d.ts.map +1 -1
- package/lib/typescript/components/ItemTimaOneV3.d.ts.map +1 -1
- package/lib/typescript/components/ModalOptionLoan.d.ts.map +1 -1
- package/lib/typescript/screens/home/index.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TopupLoanInfo.d.ts.map +1 -1
- package/lib/typescript/services/api/api.d.ts +16 -0
- package/lib/typescript/services/api/api.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/assets/v3/index.tsx +4 -0
- package/src/assets/v3/option1-active.svg +45 -0
- package/src/assets/v3/option2-disable.svg +18 -0
- package/src/assets/v3/option2.svg +32 -12
- package/src/components/ItemTimaOneV3.tsx +18 -15
- package/src/components/ModalOptionLoan.tsx +133 -106
- package/src/screens/home/index.tsx +4 -1
- package/src/screens/toan-trinh-so/TTSSelfie.tsx +9 -16
- package/src/screens/toan-trinh-so/TopupLoanInfo.tsx +202 -536
- package/src/services/api/api-config.ts +2 -2
- package/src/services/api/api.ts +16 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_native","_reactNativePermissions","_reactNativeCamera","_MText","_MButton","_interopRequireDefault","_CommonStyles","_icons","_Loading","_api","_navigation","_reactNativeDeviceInfo","_AppStore","_utils","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","TTSSelfie","props","_this","isFocused","useIsFocused","_useState","useState","_useState2","_slicedToArray2","shouldRenderCamera","setShouldRenderCamera","navigation","useNavigation","_useState3","_useState4","taking","setTaking","_useState5","_useState6","isLoading","setIsLoading","_useState7","_useState8","passPermission","setPassPermission","myCamera","useRef","requestPermissions","request","Platform","OS","PERMISSIONS","IOS","CAMERA","ANDROID","then","result","RESULTS","UNAVAILABLE","console","log","Alert","alert","text","DENIED","onPress","openSettings","LIMITED","GRANTED","BLOCKED","useEffect","_callee","_props$route","_props$route$params","_props$route$params$l","_props$route2","_props$route2$params","_props$route2$params$","_regenerator","async","_callee$","_context","prev","next","awrap","logEvent","event","createdAt","Date","deviceId","appStore","loanId","String","route","params","loan","id","utmSource","logEventFb","stop","Promise","timeout","setTimeout","clearTimeout","takePhoto","_callee2","options","data","_props$route3","_props$route3$params","_props$route3$params$","formData","response","_response$data","_props$route4","_props$route4$params","_response$data2","_response$data2$meta","_callee2$","_context2","width","pauseAfterCapture","fixOrientation","forceUpOrientation","orientation","RNCamera","Constants","Orientation","portrait","current","takePictureAsync","sent","uri","FormData","append","type","name","Api","getInstance","uploadImageAutoDE","kind","meta","errorCode","push","ScreenNames","ReviewInformation","errorMessage","createElement","View","style","flex","backgroundColor","pointerEvents","__self","__source","fileName","lineNumber","columnNumber","commonStyles","fill","Dimensions","height","marginVertical","flexDirection","alignItems","justifyContent","marginTop","DeviceInfo","hasNotch","goBack","position","left","IconBackWhite","MText","color","fontWeight","textAlgin","ref","defaultVideoQuality","VideoQuality","Type","front","maxZoom","captureAudio","androidCameraPermissionOptions","title","message","buttonPositive","buttonNegative","_ref","camera","status","recordAudioPermissionStatus","ActivityIndicator","bottom","right","Fragment","textAlign","fontSize","paddingHorizontal","TakePhotoSvg"],"sourceRoot":"../../../../src","sources":["screens/toan-trinh-so/TTSSelfie.tsx"],"mappings":"iVACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAOA,IAAAE,OAAA,CAAAF,OAAA,6BAKA,IAAAG,uBAAA,CAAAH,OAAA,6BAMA,IAAAI,kBAAA,CAAAJ,OAAA,wBACA,IAAAK,MAAA,CAAAL,OAAA,2BACA,IAAAM,QAAA,CAAAC,sBAAA,CAAAP,OAAA,8BACA,IAAAQ,aAAA,CAAAR,OAAA,oBACA,IAAAS,MAAA,CAAAT,OAAA,uBACA,IAAAU,QAAA,CAAAH,sBAAA,CAAAP,OAAA,8BACA,IAAAW,IAAA,CAAAX,OAAA,uBACA,IAAAY,WAAA,CAAAZ,OAAA,qBACA,IAAAa,sBAAA,CAAAN,sBAAA,CAAAP,OAAA,8BACA,IAAAc,SAAA,CAAAP,sBAAA,CAAAP,OAAA,oBACA,IAAAe,MAAA,CAAAf,OAAA,gBAAmD,IAAAgB,YAAA,gGAAAC,yBAAAC,CAAA,wBAAAC,OAAA,iBAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAF,wBAAA,UAAAA,yBAAAC,CAAA,SAAAA,CAAA,CAAAG,CAAA,CAAAD,CAAA,IAAAF,CAAA,YAAAnB,wBAAAmB,CAAA,CAAAE,CAAA,MAAAA,CAAA,EAAAF,CAAA,EAAAA,CAAA,CAAAI,UAAA,QAAAJ,CAAA,WAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAK,OAAA,CAAAL,CAAA,MAAAG,CAAA,CAAAJ,wBAAA,CAAAG,CAAA,KAAAC,CAAA,EAAAA,CAAA,CA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AAY,EAAA/C,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA7J,YAAA,CAAA8J,UAAA,KAAAC,YAAA,KAAE,CACR,CACL,CACN,CAEA,CACF,CAAC,CACL,IAAI,CAERjL,MAAA,CAAAyB,OAAA,CAAA8I,aAAA,CAAC3J,QAAA,CAAAa,OAAO,EAACkC,SAAS,CAAEA,SAAU,CAAAkH,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA7J,YAAA,CAAA8J,UAAA,KAAAC,YAAA,IAAE,CAC5B,CAAC,CAEX"}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_native","_reactNativePermissions","_reactNativeCamera","_MText","_MButton","_interopRequireDefault","_CommonStyles","_icons","_Loading","_api","_navigation","_reactNativeDeviceInfo","_AppStore","_utils","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","TTSSelfie","props","_this","isFocused","useIsFocused","_useState","useState","_useState2","_slicedToArray2","shouldRenderCamera","setShouldRenderCamera","navigation","useNavigation","_useState3","_useState4","taking","setTaking","_useState5","_useState6","isLoading","setIsLoading","_useState7","_useState8","passPermission","setPassPermission","myCamera","useRef","requestPermissions","request","Platform","OS","PERMISSIONS","IOS","CAMERA","ANDROID","then","result","RESULTS","UNAVAILABLE","console","log","Alert","alert","text","DENIED","onPress","openSettings","LIMITED","GRANTED","BLOCKED","useEffect","_callee","_props$route","_props$route$params","_props$route$params$l","_props$route2","_props$route2$params","_props$route2$params$","_regenerator","async","_callee$","_context","prev","next","awrap","logEvent","event","createdAt","Date","deviceId","appStore","loanId","String","route","params","loan","id","utmSource","logEventFb","stop","Promise","timeout","setTimeout","clearTimeout","takePhoto","_callee2","options","data","_props$route3","_props$route3$params","_props$route3$params$","formData","response","_response$data","_props$route4","_props$route4$params","_props$route4$params$","_props$route5","_props$route5$params","_props$route6","_props$route6$params","_response$data2","_response$data2$meta","_callee2$","_context2","width","pauseAfterCapture","fixOrientation","forceUpOrientation","orientation","RNCamera","Constants","Orientation","portrait","current","takePictureAsync","sent","uri","FormData","append","type","name","Api","getInstance","uploadImageAutoDE","kind","meta","errorCode","typeLoan","push","ScreenNames","TopupLoanInfo","ReviewInformation","errorMessage","createElement","View","style","flex","backgroundColor","pointerEvents","__self","__source","fileName","lineNumber","columnNumber","commonStyles","fill","Dimensions","height","marginVertical","flexDirection","alignItems","justifyContent","marginTop","DeviceInfo","hasNotch","goBack","position","left","IconBackWhite","MText","color","fontWeight","textAlgin","ref","defaultVideoQuality","VideoQuality","Type","front","maxZoom","captureAudio","androidCameraPermissionOptions","title","message","buttonPositive","buttonNegative","_ref","camera","status","recordAudioPermissionStatus","ActivityIndicator","bottom","right","Fragment","textAlign","fontSize","paddingHorizontal","TakePhotoSvg"],"sourceRoot":"../../../../src","sources":["screens/toan-trinh-so/TTSSelfie.tsx"],"mappings":"iVACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAOA,IAAAE,OAAA,CAAAF,OAAA,6BAKA,IAAAG,uBAAA,CAAAH,OAAA,6BAMA,IAAAI,kBAAA,CAAAJ,OAAA,wBACA,IAAAK,MAAA,CAAAL,OAAA,2BACA,IAAAM,QAAA,CAAAC,sBAAA,CAAAP,OAAA,8BACA,IAAAQ,aAAA,CAAAR,OAAA,oBACA,IAAAS,MAAA,CAAAT,OAAA,uBACA,IAAAU,QAAA,CAAAH,sBAAA,CAAAP,OAAA,8BACA,IAAAW,IAAA,CAAAX,OAAA,uBACA,IAAAY,WAAA,CAAAZ,OAAA,qBACA,IAAAa,sBAAA,CAAAN,sBAAA,CAAAP,OAAA,8BACA,IAAAc,SAAA,CAAAP,sBAAA,CAAAP,OAAA,oBACA,IAAAe,MAAA,CAAAf,OAAA,gBAAmD,IAAAgB,YAAA,gGAAAC,yBAAAC,CAAA,wBAAAC,OAAA,iBAAA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AE,CAC5B,CAAC,CAEX"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=TopupLoanInfo;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _CommonStyles=require("../CommonStyles");var _MText=require("../../components/MText");var _navigation=require("../../navigation");var _native=require("@react-navigation/native");var _svgs=require("../../assets/svgs");var _formik=require("formik");var _icons=require("../../assets/icons");var _AppStore=_interopRequireDefault(require("../../AppStore"));var _utils=require("../../utils");var _api=require("../../services/api");var _lodash=require("lodash");var _theme=require("../../theme");var _store=_interopRequireDefault(require("./store"));var _Loading=_interopRequireDefault(require("../../components/Loading"));var _MButton=_interopRequireDefault(require("../../components/MButton"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _moment=_interopRequireDefault(require("moment"));var yup=_interopRequireWildcard(require("yup"));var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/screens/toan-trinh-so/TopupLoanInfo.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}function TopupLoanInfo(props){var _this=this;var navigation=(0,_native.useNavigation)();var formRef=(0,_react.useRef)(null);var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),isLoading=_useState2[0],setIsLoading=_useState2[1];var getData=function _callee(){var _props$route,_props$route$params,_props$route$params$l,response,_response$data,_response$data$data$b,_response$data2,_response$data2$data,_response$data$data$b2,_response$data3,_response$data3$data,_response$data$data$b3,_response$data4,_response$data4$data,_response$data$data$b4,_response$data5,_response$data5$data,_response$data$data$l,_response$data6,_response$data6$data,_formatDDMMYYY,_response$data7,_response$data7$data,_response$data$data$r,_response$data8,_response$data8$data,_response$data9,_response$data9$data,_response$data$data$l2,_response$data11,_response$data11$data,_response$data$data$m,_response$data12,_response$data12$data,_response$data$data$m2,_response$data13,_response$data13$data,_response$data14,_response$data14$data,_response$data15,_response$data15$data,_response$data16,_response$data16$data,_response$data17,_response$data17$data,_formRef$current,_formRef$current2,_response$data18,_response$data18$data,_response$data20,_response$data20$data,_response$data21,_response$data21$data,_formRef$current3,_response$data$data$t,_response$data$data3,_formRef$current4,_response$data$data$c,_response$data$data4,_response$data10,_response$data10$data,_props$route$params$l2,_props$route2,_props$route2$params,_props$route2$params$,timeInsurenceCustomer,timeInsuranceProperty,_response$data19,_response$data19$data,_response$data22,_response$data22$data,_response$data23,_response$data23$data;return _regenerator.default.async(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.prev=0;setIsLoading(true);_context.next=4;return _regenerator.default.awrap(_api.Api.getInstance().getInfoLoanTopupTts((_props$route=props.route)==null?void 0:(_props$route$params=_props$route.params)==null?void 0:(_props$route$params$l=_props$route$params.loan)==null?void 0:_props$route$params$l.id));case 4:response=_context.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data=response.data)==null?void 0:_response$data.meta.errorCode)===200){formRef.current.setFieldValue('bankAccountName',(_response$data$data$b=response==null?void 0:(_response$data2=response.data)==null?void 0:(_response$data2$data=_response$data2.data)==null?void 0:_response$data2$data.bankAccountName)!=null?_response$data$data$b:'');formRef.current.setFieldValue('bankAccountNumber',(_response$data$data$b2=response==null?void 0:(_response$data3=response.data)==null?void 0:(_response$data3$data=_response$data3.data)==null?void 0:_response$data3$data.bankAccountNumber)!=null?_response$data$data$b2:'');formRef.current.setFieldValue('bankId',(_response$data$data$b3=response==null?void 0:(_response$data4=response.data)==null?void 0:(_response$data4$data=_response$data4.data)==null?void 0:_response$data4$data.bankId)!=null?_response$data$data$b3:null);formRef.current.setFieldValue('bankName',(_response$data$data$b4=response==null?void 0:(_response$data5=response.data)==null?void 0:(_response$data5$data=_response$data5.data)==null?void 0:_response$data5$data.bankName)!=null?_response$data$data$b4:'');formRef.current.setFieldValue('loanAmount',(_response$data$data$l=response==null?void 0:(_response$data6=response.data)==null?void 0:(_response$data6$data=_response$data6.data)==null?void 0:_response$data6$data.loanAmount)!=null?_response$data$data$l:0);formRef.current.setFieldValue('firstPaymentDate',(_formatDDMMYYY=(0,_utils.formatDDMMYYY)(response==null?void 0:(_response$data7=response.data)==null?void 0:(_response$data7$data=_response$data7.data)==null?void 0:_response$data7$data.firstPaymentDate))!=null?_formatDDMMYYY:'');formRef.current.setFieldValue('rateTypeId',(_response$data$data$r=response==null?void 0:(_response$data8=response.data)==null?void 0:(_response$data8$data=_response$data8.data)==null?void 0:_response$data8$data.rateTypeId)!=null?_response$data$data$r:null);if(response!=null&&(_response$data9=response.data)!=null&&(_response$data9$data=_response$data9.data)!=null&&_response$data9$data.rateTypeId){_AppStore.default.getLoanTimeByType(response==null?void 0:(_response$data10=response.data)==null?void 0:(_response$data10$data=_response$data10.data)==null?void 0:_response$data10$data.rateTypeId,(_props$route$params$l2=(_props$route2=props.route)==null?void 0:(_props$route2$params=_props$route2.params)==null?void 0:(_props$route2$params$=_props$route2$params.loan)==null?void 0:_props$route2$params$.typeLoan)!=null?_props$route$params$l2:0);}formRef.current.setFieldValue('loanTime',(_response$data$data$l2=response==null?void 0:(_response$data11=response.data)==null?void 0:(_response$data11$data=_response$data11.data)==null?void 0:_response$data11$data.loanTime)!=null?_response$data$data$l2:null);formRef.current.setFieldValue('moneyInsuranceProperty',(_response$data$data$m=response==null?void 0:(_response$data12=response.data)==null?void 0:(_response$data12$data=_response$data12.data)==null?void 0:_response$data12$data.moneyInsuranceProperty)!=null?_response$data$data$m:null);formRef.current.setFieldValue('moneyInsurenceCustomer',(_response$data$data$m2=response==null?void 0:(_response$data13=response.data)==null?void 0:(_response$data13$data=_response$data13.data)==null?void 0:_response$data13$data.moneyInsurenceCustomer)!=null?_response$data$data$m2:null);formRef.current.setFieldValue('buyInsuranceProperty',response!=null&&(_response$data14=response.data)!=null&&(_response$data14$data=_response$data14.data)!=null&&_response$data14$data.buyInsuranceProperty?response==null?void 0:(_response$data15=response.data)==null?void 0:(_response$data15$data=_response$data15.data)==null?void 0:_response$data15$data.buyInsuranceProperty:false);formRef.current.setFieldValue('buyInsurenceCustomer',response!=null&&(_response$data16=response.data)!=null&&(_response$data16$data=_response$data16.data)!=null&&_response$data16$data.buyInsurenceCustomer?response==null?void 0:(_response$data17=response.data)==null?void 0:(_response$data17$data=_response$data17.data)==null?void 0:_response$data17$data.buyInsurenceCustomer:false);timeInsurenceCustomer=_AppStore.default.listInsurenceTimeAll.find(function(x){var _response$data$data;return x.id===((_response$data$data=response.data.data)==null?void 0:_response$data$data.timeInsurenceCustomer);});(_formRef$current=formRef.current)==null?void 0:_formRef$current.setFieldValue('timeInsurenceCustomer',timeInsurenceCustomer);timeInsuranceProperty=_AppStore.default.listInsurenceTimeAll.find(function(x){var _response$data$data2;return x.id===((_response$data$data2=response.data.data)==null?void 0:_response$data$data2.timeInsuranceProperty);});(_formRef$current2=formRef.current)==null?void 0:_formRef$current2.setFieldValue('timeInsuranceProperty',timeInsuranceProperty);if((_response$data18=response.data)!=null&&(_response$data18$data=_response$data18.data)!=null&&_response$data18$data.brand){_store.default.getListYearCar((_response$data19=response.data)==null?void 0:(_response$data19$data=_response$data19.data)==null?void 0:_response$data19$data.brand);}if((_response$data20=response.data)!=null&&(_response$data20$data=_response$data20.data)!=null&&_response$data20$data.brand&&(_response$data21=response.data)!=null&&(_response$data21$data=_response$data21.data)!=null&&_response$data21$data.yearCar){_store.default.getListCar((_response$data22=response.data)==null?void 0:(_response$data22$data=_response$data22.data)==null?void 0:_response$data22$data.brand,(_response$data23=response.data)==null?void 0:(_response$data23$data=_response$data23.data)==null?void 0:_response$data23$data.yearCar);}(_formRef$current3=formRef.current)==null?void 0:_formRef$current3.setFieldValue('typeLoanBrief',(_response$data$data$t=(_response$data$data3=response.data.data)==null?void 0:_response$data$data3.typeLoanBrief)!=null?_response$data$data$t:null);(_formRef$current4=formRef.current)==null?void 0:_formRef$current4.setFieldValue('carTypeId',(_response$data$data$c=(_response$data$data4=response.data.data)==null?void 0:_response$data$data4.carTypeId)!=null?_response$data$data$c:null);}else{}}_context.next=13;break;case 9:_context.prev=9;_context.t0=_context["catch"](0);setIsLoading(false);console.log(_context.t0);case 13:case"end":return _context.stop();}},null,null,[[0,9]],Promise);};var getInfoInsurence=function _callee2(loanAmount,loanTime,rateTypeId,timeInsurenceCustomer,timeInsuranceProperty){var _props$route$params2,_props$route$params2$,response,_response$data24,_response$data24$meta,_formRef$current5,_response$data$data5,_formRef$current6,_response$data$data6,_formRef$current7,_response$data$data7,_response$data25,_response$data25$meta;return _regenerator.default.async(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.prev=0;setIsLoading(true);_context2.next=4;return _regenerator.default.awrap(_api.Api.getInstance().getInfoInsurence2((_props$route$params2=props.route.params)==null?void 0:(_props$route$params2$=_props$route$params2.loan)==null?void 0:_props$route$params2$.id,loanAmount,loanTime,rateTypeId,timeInsurenceCustomer,timeInsuranceProperty));case 4:response=_context2.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data24=response.data)==null?void 0:(_response$data24$meta=_response$data24.meta)==null?void 0:_response$data24$meta.errorCode)===200){(_formRef$current5=formRef.current)==null?void 0:_formRef$current5.setFieldValue('moneyInsurenceCustomer',(_response$data$data5=response.data.data)==null?void 0:_response$data$data5.moneyInsurenceCustomer);(_formRef$current6=formRef.current)==null?void 0:_formRef$current6.setFieldValue('moneyInsuranceProperty',(_response$data$data6=response.data.data)==null?void 0:_response$data$data6.moneyInsuranceProperty);(_formRef$current7=formRef.current)==null?void 0:_formRef$current7.setFieldValue('moneyInsurranceHospitalization',(_response$data$data7=response.data.data)==null?void 0:_response$data$data7.moneyInsurranceHospitalization);}else{_reactNative.Alert.alert('Thông báo',(_response$data25=response.data)==null?void 0:(_response$data25$meta=_response$data25.meta)==null?void 0:_response$data25$meta.errorMessage);}}else{}_context2.next=12;break;case 9:_context2.prev=9;_context2.t0=_context2["catch"](0);setIsLoading(false);case 12:case"end":return _context2.stop();}},null,null,[[0,9]],Promise);};var debounceCall=(0,_react.useCallback)((0,_lodash.debounce)(function(textParam){var _formRef$current$valu,_formRef$current$valu2,_formRef$current$valu3,_formRef$current$valu4,_formRef$current$valu5;getInfoInsurence(Number(textParam.replace(/\D/g,'')),formRef.current.values.loanTime,(_formRef$current$valu=formRef.current.values)==null?void 0:_formRef$current$valu.rateTypeId,(_formRef$current$valu2=(_formRef$current$valu3=formRef.current.values.timeInsurenceCustomer)==null?void 0:_formRef$current$valu3.id)!=null?_formRef$current$valu2:0,(_formRef$current$valu4=(_formRef$current$valu5=formRef.current.values.timeInsuranceProperty)==null?void 0:_formRef$current$valu5.id)!=null?_formRef$current$valu4:0);},2000),[]);(0,_react.useEffect)(function _callee3(){var _props$route3,_props$route3$params,_props$route3$params$,_props$route4,_props$route4$params,_props$route4$params$,_props$route5,_props$route5$params,_props$route5$params$;return _regenerator.default.async(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:getData();_store.default.getFirstPayment((_props$route3=props.route)==null?void 0:(_props$route3$params=_props$route3.params)==null?void 0:(_props$route3$params$=_props$route3$params.loan)==null?void 0:_props$route3$params$.id);_context3.next=4;return _regenerator.default.awrap((0,_utils.logEvent)('thongtinvay_started',{event:'thongtinvay_started',createdAt:new Date(),deviceId:_AppStore.default.deviceId,loanId:String((_props$route4=props.route)==null?void 0:(_props$route4$params=_props$route4.params)==null?void 0:(_props$route4$params$=_props$route4$params.loan)==null?void 0:_props$route4$params$.id),utmSource:(_props$route5=props.route)==null?void 0:(_props$route5$params=_props$route5.params)==null?void 0:(_props$route5$params$=_props$route5$params.loan)==null?void 0:_props$route5$params$.utmSource}));case 4:(0,_utils.logEventFb)('thongtinvay_started');case 5:case"end":return _context3.stop();}},null,null,null,Promise);},[]);var onSubmit=function _callee4(values){var _props$route6,_props$route6$params,_props$route6$params$,_values$timeInsurence,_values$timeInsurence2,_values$timeInsurance,_values$timeInsurance2,body,response,_response$data26,_response$data26$meta,_response$data27,_response$data27$meta;return _regenerator.default.async(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.prev=0;setIsLoading(true);body={loanBriefId:(_props$route6=props.route)==null?void 0:(_props$route6$params=_props$route6.params)==null?void 0:(_props$route6$params$=_props$route6$params.loan)==null?void 0:_props$route6$params$.id,loanAmount:Number(values.loanAmount),rateTypeId:values.rateTypeId,loanTime:values.loanTime,firstPaymentDate:(0,_moment.default)(values.firstPaymentDate,'DD/MM/YYYY').format('YYYY-MM-DD'),buyInsurenceCustomer:values==null?void 0:values.buyInsurenceCustomer,buyInsuranceProperty:values==null?void 0:values.buyInsuranceProperty,timeInsurenceCustomer:(_values$timeInsurence=values==null?void 0:(_values$timeInsurence2=values.timeInsurenceCustomer)==null?void 0:_values$timeInsurence2.id)!=null?_values$timeInsurence:0,timeInsuranceProperty:(_values$timeInsurance=values==null?void 0:(_values$timeInsurance2=values.timeInsuranceProperty)==null?void 0:_values$timeInsurance2.id)!=null?_values$timeInsurance:0,moneyInsurenceCustomer:values.moneyInsurenceCustomer,moneyInsuranceProperty:values.moneyInsuranceProperty};_context5.next=5;return _regenerator.default.awrap(_api.Api.getInstance().updateInfoLoanTopup(body));case 5:response=_context5.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data26=response.data)==null?void 0:(_response$data26$meta=_response$data26.meta)==null?void 0:_response$data26$meta.errorCode)===200){_reactNative.Alert.alert('Thông báo','Cập nhật thông tin thành công',[{text:'Đồng ý',onPress:function onPress(){var _props$route7,_props$route7$params,_props$route7$params$,_props$route8,_props$route8$params,_props$route8$params$;return _regenerator.default.async(function onPress$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return _regenerator.default.awrap((0,_utils.logEvent)('thongtinvay_completed',{event:'thongtinvay_completed',createdAt:new Date(),deviceId:_AppStore.default.deviceId,loanId:String((_props$route7=props.route)==null?void 0:(_props$route7$params=_props$route7.params)==null?void 0:(_props$route7$params$=_props$route7$params.loan)==null?void 0:_props$route7$params$.id),utmSource:(_props$route8=props.route)==null?void 0:(_props$route8$params=_props$route8.params)==null?void 0:(_props$route8$params$=_props$route8$params.loan)==null?void 0:_props$route8$params$.utmSource}));case 2:(0,_utils.logEventFb)('thongtinvay_completed');navigation.dispatch(_native.CommonActions.reset({index:1,routes:[{name:_navigation.ScreenNames.Main}]}));case 4:case"end":return _context4.stop();}},null,null,null,Promise);}}]);}else{_reactNative.Alert.alert('Thông báo',(_response$data27=response.data)==null?void 0:(_response$data27$meta=_response$data27.meta)==null?void 0:_response$data27$meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');}_context5.next=14;break;case 10:_context5.prev=10;_context5.t0=_context5["catch"](0);setIsLoading(false);console.log(_context5.t0);case 14:case"end":return _context5.stop();}},null,null,[[0,10]],Promise);};return _react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:272,columnNumber:5}},_react.default.createElement(_MHeader.default,{title:"Vay nhanh 24/7",__self:this,__source:{fileName:_jsxFileName,lineNumber:273,columnNumber:7}}),_react.default.createElement(_reactNative.View,{style:_CommonStyles.commonStyles.fill,__self:this,__source:{fileName:_jsxFileName,lineNumber:274,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:$h,__self:this,__source:{fileName:_jsxFileName,lineNumber:275,columnNumber:9}}),_react.default.createElement(_reactNative.View,{style:$bg,__self:this,__source:{fileName:_jsxFileName,lineNumber:276,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{paddingVertical:10,flexDirection:'row',alignItems:'center',paddingHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:277,columnNumber:11}},_react.default.createElement(_reactNative.TouchableOpacity,{style:{zIndex:1000},onPress:function onPress(){_reactNative.Alert.alert('Thoát cập nhật thông tin','Bạn có chắc chắn muốn thoát cập nhật thông tin không?',[{text:'Có',onPress:function onPress(){navigation.dispatch(_native.CommonActions.reset({index:1,routes:[{name:_navigation.ScreenNames.Main}]}));}},{text:'Không'}]);},__self:this,__source:{fileName:_jsxFileName,lineNumber:285,columnNumber:13}},_react.default.createElement(_svgs.IconBack,{__self:this,__source:{fileName:_jsxFileName,lineNumber:312,columnNumber:15}})),_react.default.createElement(_MText.MText,{style:$title,__self:this,__source:{fileName:_jsxFileName,lineNumber:314,columnNumber:13}},"Th\xF4ng tin chi ti\u1EBFt")),_react.default.createElement(_formik.Formik,{onSubmit:onSubmit,innerRef:formRef,initialValues:{loanAmount:'',rateTypeId:null,loanTime:null,firstPaymentDate:'',buyInsurenceCustomer:false,buyInsuranceProperty:false,timeInsurenceCustomer:null,timeInsuranceProperty:null,moneyInsurenceCustomer:null,moneyInsuranceProperty:null,bankId:null,bankName:'',bankAccountName:'',bankAccountNumber:''},validateOnBlur:false,validateOnChange:false,validationSchema:yup.object().shape({loanAmount:yup.string().required('Số tiền là bắt buộc'),rateTypeId:yup.number().required('Chọn hình thức thanh toán').nullable(),loanTime:yup.number().required('Thời gian vay là bắt buộc').nullable(),firstPaymentDate:yup.string().required('Ngày thanh toán đầu kỳ là bắt buộc')}),__self:this,__source:{fileName:_jsxFileName,lineNumber:316,columnNumber:11}},function(_ref){var _appStore$listRateTyp,_appStore$listRateTyp2,_values$timeInsurence5,_values$timeInsurence6,_values$timeInsurance7,_values$timeInsurance8;var values=_ref.values,errors=_ref.errors,setFieldValue=_ref.setFieldValue,handleSubmit=_ref.handleSubmit;return _react.default.createElement(_reactNative.View,{style:{flex:1,paddingHorizontal:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:353,columnNumber:15}},_react.default.createElement(_reactNative.ScrollView,{style:[_CommonStyles.commonStyles.fill],showsVerticalScrollIndicator:false,__self:_this,__source:{fileName:_jsxFileName,lineNumber:354,columnNumber:17}},_react.default.createElement(_MText.MText,{style:$title2,__self:_this,__source:{fileName:_jsxFileName,lineNumber:358,columnNumber:19}},"1.1 Th\xF4ng tin \u0111\u1EC1 ngh\u1ECB kho\u1EA3n vay"),_react.default.createElement(_reactNative.View,{style:$row,__self:_this,__source:{fileName:_jsxFileName,lineNumber:359,columnNumber:19}},_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:360,columnNumber:21}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:361,columnNumber:23}},"S\u1ED1 ti\u1EC1n \u0111\u1EC1 ngh\u1ECB vay"),_react.default.createElement(_reactNative.TextInput,{numberOfLines:1,style:[$textInput,{color:'#333333',fontSize:16,fontWeight:'500'}],value:(0,_utils.formatMoney)(values.loanAmount),onChangeText:function onChangeText(text){setFieldValue('loanAmount',text.replaceAll(',',''));debounceCall(text);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:362,columnNumber:23}}),errors&&errors.loanAmount&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:379,columnNumber:25}},errors.loanAmount)),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:382,columnNumber:21}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:383,columnNumber:23}},"H\xECnh th\u1EE9c thanh to\xE1n"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){navigation.push(_navigation.ScreenNames.MSelect,{title:'Chọn hình thức thanh toán',data:_AppStore.default.listRateType,callback:function callback(value){var _props$route$params$l3,_props$route9,_props$route9$params,_props$route9$params$;setFieldValue('rateTypeId',value==null?void 0:value.id);_AppStore.default.getLoanTimeByType(value==null?void 0:value.id,(_props$route$params$l3=(_props$route9=props.route)==null?void 0:(_props$route9$params=_props$route9.params)==null?void 0:(_props$route9$params$=_props$route9$params.loan)==null?void 0:_props$route9$params$.typeLoan)!=null?_props$route$params$l3:0);setFieldValue('loanTime',null);}});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:384,columnNumber:23}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:'#333333',fontSize:16,fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:401,columnNumber:25}},(_appStore$listRateTyp=_AppStore.default.listRateType)==null?void 0:(_appStore$listRateTyp2=_appStore$listRateTyp.find(function(x){return(x==null?void 0:x.id)===values.rateTypeId;}))==null?void 0:_appStore$listRateTyp2.name),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:417,columnNumber:25}})),errors&&errors.rateTypeId&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:420,columnNumber:25}},errors.rateTypeId))),_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:424,columnNumber:19}},"Th\u1EDDi gian vay"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){navigation.push(_navigation.ScreenNames.MSelect,{title:'Chọn thời gian vay',data:_AppStore.default.listLoanTimeByType,callback:function callback(value){var _values$timeInsurence3,_values$timeInsurence4,_values$timeInsurance3,_values$timeInsurance4;setFieldValue('loanTime',value==null?void 0:value.id);getInfoInsurence(values.loanAmount,value==null?void 0:value.id,values==null?void 0:values.rateTypeId,(_values$timeInsurence3=(_values$timeInsurence4=values.timeInsurenceCustomer)==null?void 0:_values$timeInsurence4.id)!=null?_values$timeInsurence3:0,(_values$timeInsurance3=(_values$timeInsurance4=values.timeInsuranceProperty)==null?void 0:_values$timeInsurance4.id)!=null?_values$timeInsurance3:0);}});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:425,columnNumber:19}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:'#333333',fontSize:16,fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:444,columnNumber:21}},values!=null&&values.loanTime?(values==null?void 0:values.loanTime)+" th\xE1ng":''),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:456,columnNumber:21}})),errors&&errors.loanTime&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:459,columnNumber:21}},errors.loanTime),_react.default.createElement(_MText.MText,{style:[$label,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:461,columnNumber:19}},"Ng\xE0y thanh to\xE1n k\u1EF3 \u0111\u1EA7u"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){navigation.push(_navigation.ScreenNames.MSelect,{title:'Ngày thanh toán kỳ đầu',data:_store.default.listFirstPayment,callback:function callback(value){setFieldValue('firstPaymentDate',value==null?void 0:value.name);}});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:464,columnNumber:19}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:'#333333',fontSize:16,fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:476,columnNumber:21}},values==null?void 0:values.firstPaymentDate),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:488,columnNumber:21}})),errors&&errors.firstPaymentDate&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:491,columnNumber:21}},errors.firstPaymentDate),_react.default.createElement(_reactNative.View,{style:{backgroundColor:'#FFF8F2',borderLeftWidth:1,borderRadius:8,padding:16,borderColor:_theme.color.primary,marginTop:10},__self:_this,__source:{fileName:_jsxFileName,lineNumber:494,columnNumber:19}},_react.default.createElement(_MText.MText,{style:{color:_theme.color.primary,fontWeight:'bold'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:504,columnNumber:21}},"B\u1EA3o hi\u1EC3m"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:10,marginTop:10},__self:_this,__source:{fileName:_jsxFileName,lineNumber:512,columnNumber:21}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setFieldValue('buyInsurenceCustomer',!values.buyInsurenceCustomer);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:520,columnNumber:23}},values.buyInsurenceCustomer===true?_react.default.createElement(_icons.CheckBoxActive,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:529,columnNumber:27}}):_react.default.createElement(_icons.CheckBox,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:531,columnNumber:27}})),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:534,columnNumber:23}},_react.default.createElement(_MText.MText,{style:{color:'#333333',fontSize:12,fontWeight:'bold'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:535,columnNumber:25}},"BH s\u1EE9c kho\u1EBB ng\u01B0\u1EDDi vay"),_react.default.createElement(_MText.MText,{style:{color:'#828282',fontSize:12,marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:544,columnNumber:25}},"S\u1ED1 ti\u1EC1n",' ',_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:552,columnNumber:27}},(0,_utils.formatMoney)(values.moneyInsurenceCustomer)," \u0111"))),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push(_navigation.ScreenNames.MSelect,{title:'Chọn thời gian',data:_AppStore.default.listInsurenceTimeAll,callback:function callback(value){var _values$timeInsurance5,_values$timeInsurance6;setFieldValue('timeInsurenceCustomer',value);getInfoInsurence(values.loanAmount,values.loanTime,values==null?void 0:values.rateTypeId,value==null?void 0:value.id,(_values$timeInsurance5=(_values$timeInsurance6=values.timeInsuranceProperty)==null?void 0:_values$timeInsurance6.id)!=null?_values$timeInsurance5:0);}});},style:{backgroundColor:'#FFFFFF',height:40,borderRadius:6,alignItems:'center',justifyContent:'space-between',flexDirection:'row',paddingHorizontal:10,borderWidth:1,borderColor:'#F5F5F5',width:_reactNative.Dimensions.get('window').width/3},__self:_this,__source:{fileName:_jsxFileName,lineNumber:562,columnNumber:23}},_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:592,columnNumber:25}},(_values$timeInsurence5=(_values$timeInsurence6=values.timeInsurenceCustomer)==null?void 0:_values$timeInsurence6.name)!=null?_values$timeInsurence5:'Chọn thời gian'),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:596,columnNumber:25}}))),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#EFEFEF',marginVertical:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:599,columnNumber:21}}),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:10,marginTop:10},__self:_this,__source:{fileName:_jsxFileName,lineNumber:606,columnNumber:21}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setFieldValue('buyInsuranceProperty',!values.buyInsuranceProperty);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:614,columnNumber:23}},values.buyInsuranceProperty===true?_react.default.createElement(_icons.CheckBoxActive,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:623,columnNumber:27}}):_react.default.createElement(_icons.CheckBox,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:625,columnNumber:27}})),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:628,columnNumber:23}},_react.default.createElement(_MText.MText,{style:{color:'#333333',fontSize:12,fontWeight:'bold'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:629,columnNumber:25}},"BH v\u1EADt ch\u1EA5t"),_react.default.createElement(_MText.MText,{style:{color:'#828282',fontSize:12,marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:638,columnNumber:25}},"S\u1ED1 ti\u1EC1n",' ',_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:646,columnNumber:27}},(0,_utils.formatMoney)(values.moneyInsuranceProperty)," \u0111"))),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push(_navigation.ScreenNames.MSelect,{title:'Chọn thời gian',data:_AppStore.default.listInsurenceTimeAll,callback:function callback(value){var _values$timeInsurence7,_values$timeInsurence8;setFieldValue('timeInsuranceProperty',value);getInfoInsurence(values.loanAmount,values.loanTime,values==null?void 0:values.rateTypeId,(_values$timeInsurence7=values==null?void 0:(_values$timeInsurence8=values.timeInsurenceCustomer)==null?void 0:_values$timeInsurence8.id)!=null?_values$timeInsurence7:0,value==null?void 0:value.id);}});},style:{backgroundColor:'#FFFFFF',height:40,borderRadius:6,alignItems:'center',justifyContent:'space-between',flexDirection:'row',paddingHorizontal:10,borderWidth:1,borderColor:'#F5F5F5',width:_reactNative.Dimensions.get('window').width/3},__self:_this,__source:{fileName:_jsxFileName,lineNumber:656,columnNumber:23}},_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:686,columnNumber:25}},(_values$timeInsurance7=(_values$timeInsurance8=values.timeInsuranceProperty)==null?void 0:_values$timeInsurance8.name)!=null?_values$timeInsurance7:'Chọn thời gian'),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:690,columnNumber:25}}))),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#BDBDBD',marginVertical:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:693,columnNumber:21}}),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',gap:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:700,columnNumber:21}},_react.default.createElement(_icons.Tick2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:701,columnNumber:23}}),_react.default.createElement(_MText.MText,{style:{fontSize:10,color:'#828282'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:702,columnNumber:23}},"Quy\u1EC1n l\u1EE3i b\u1EA3o hi\u1EC3m s\u1EE9c kho\u1EBB l\xEAn t\u1EDBi 100% t\u1EEB B\u1EA3o Minh",'\n',"(Tai n\u1EA1n, th\u01B0\u01A1ng t\u1EADt,...)")),_react.default.createElement(_reactNative.View,{style:{marginTop:8,flexDirection:'row',gap:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:713,columnNumber:21}},_react.default.createElement(_icons.Tick2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:716,columnNumber:23}}),_react.default.createElement(_MText.MText,{style:{fontSize:10,color:'#828282'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:717,columnNumber:23}},"Quy\u1EC1n l\u1EE3i b\u1EA3o hi\u1EC3m v\u1EADt ch\u1EA5t 100% t\u1EEB B\u1EA3o Minh"))),_react.default.createElement(_MText.MText,{style:[$title2,{marginTop:10}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:728,columnNumber:19}},"1.2 Th\xF4ng tin gi\u1EA3i ng\xE2n"),_react.default.createElement(_MText.MText,{style:[$label,{color:'rgba(125, 125, 125, 1)'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:731,columnNumber:19}},"Ng\xE2n h\xE0ng"),_react.default.createElement(_MText.MText,{style:{color:'rgba(51, 51, 51, 1)',fontSize:16,fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium',marginBottom:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:734,columnNumber:19}},values==null?void 0:values.bankName),_react.default.createElement(_MText.MText,{style:[$label,{color:'rgba(125, 125, 125, 1)'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:746,columnNumber:19}},"T\xEAn ch\u1EE7 th\u1EBB"),_react.default.createElement(_MText.MText,{style:{color:'rgba(51, 51, 51, 1)',fontSize:16,fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium',marginBottom:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:749,columnNumber:19}},values==null?void 0:values.bankAccountName),_react.default.createElement(_MText.MText,{style:[$label,{color:'rgba(125, 125, 125, 1)'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:761,columnNumber:19}},"S\u1ED1 t\xE0i kho\u1EA3n"),_react.default.createElement(_MText.MText,{style:{color:'rgba(51, 51, 51, 1)',fontSize:16,fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium',marginBottom:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:764,columnNumber:19}},values==null?void 0:values.bankAccountNumber),_react.default.createElement(_MButton.default,{onPress:function onPress(){handleSubmit();},style:{marginVertical:24},__self:_this,__source:{fileName:_jsxFileName,lineNumber:776,columnNumber:19}},_react.default.createElement(_reactNativeLinearGradient.default,{start:{x:1,y:0},end:{x:0,y:1},style:{height:40,borderRadius:30,alignItems:'center',justifyContent:'center'},colors:['#FF7A00','#EF4123'],__self:_this,__source:{fileName:_jsxFileName,lineNumber:784,columnNumber:21}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:795,columnNumber:23}},"X\xE1c nh\u1EADn")))));}))),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:811,columnNumber:7}}));}var $row={flexDirection:'row',marginBottom:16,gap:16};var $textInput={borderWidth:1,borderRadius:4,borderColor:'#E0E0E0',height:40,paddingHorizontal:8,fontFamily:'BeVietnamPro-Medium'};var $label={fontSize:14,color:'#333333',paddingBottom:5};var $title2={fontSize:16,fontWeight:'bold',color:'#333333',paddingBottom:10,marginTop:6};var $title={fontSize:16,fontWeight:'bold',color:'#333333',position:'absolute',left:0,right:0,textAlign:'center'};var $h={backgroundColor:'#EF592E',position:'absolute',height:30,width:'100%'};var $bg={borderTopLeftRadius:30,borderTopRightRadius:30,backgroundColor:'white',flex:1};var $select={flexDirection:'row',height:40,alignItems:'center',paddingHorizontal:8,borderWidth:1,borderRadius:4,borderColor:'#E0E0E0'};var $error={color:'#EB5757',fontSize:14,fontStyle:'italic',fontFamily:'BeVietnamPro-Thin',fontWeight:'300',marginTop:5};
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=TopupLoanInfo;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _CommonStyles=require("../CommonStyles");var _MText=require("../../components/MText");var _navigation=require("../../navigation");var _native=require("@react-navigation/native");var _svgs=require("../../assets/svgs");var _formik=require("formik");var _icons=require("../../assets/icons");var _AppStore=_interopRequireDefault(require("../../AppStore"));var _utils=require("../../utils");var _api=require("../../services/api");var _store=_interopRequireDefault(require("./store"));var _Loading=_interopRequireDefault(require("../../components/Loading"));var _MButton=_interopRequireDefault(require("../../components/MButton"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _moment=_interopRequireDefault(require("moment"));var yup=_interopRequireWildcard(require("yup"));var _reactNativeDatePicker=_interopRequireDefault(require("react-native-date-picker"));var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/screens/toan-trinh-so/TopupLoanInfo.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}function TopupLoanInfo(props){var _this=this;var navigation=(0,_native.useNavigation)();var formRef=(0,_react.useRef)(null);var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),isLoading=_useState2[0],setIsLoading=_useState2[1];var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),showDate=_useState4[0],setShowDate=_useState4[1];var getData=function _callee(){var _props$route,_props$route$params,_props$route$params$l,response,_response$data,_response$data2,_response$data2$data,_response$data3,_response$data3$data,_response$data4,_response$data4$data,_response$data$data$g,_response$data5,_response$data5$data,_response$data6,_response$data6$data,_response$data7,_response$data7$data,_response$data8,_response$data8$data,_response$data9,_response$data9$data,_response$data$data$b,_response$data10,_response$data10$data,_response$data$data$b2,_response$data11,_response$data11$data,_response$data$data$b3,_response$data12,_response$data12$data,_response$data$data$b4,_response$data13,_response$data13$data;return _regenerator.default.async(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.prev=0;setIsLoading(true);_context.next=4;return _regenerator.default.awrap(_api.Api.getInstance().getInfoCustomerV2((_props$route=props.route)==null?void 0:(_props$route$params=_props$route.params)==null?void 0:(_props$route$params$l=_props$route$params.loan)==null?void 0:_props$route$params$l.id));case 4:response=_context.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data=response.data)==null?void 0:_response$data.meta.errorCode)===200){formRef.current.setFieldValue('fullName',response==null?void 0:(_response$data2=response.data)==null?void 0:(_response$data2$data=_response$data2.data)==null?void 0:_response$data2$data.fullName);formRef.current.setFieldValue('dob',response!=null&&(_response$data3=response.data)!=null&&(_response$data3$data=_response$data3.data)!=null&&_response$data3$data.dob?(0,_utils.formatDDMMYYY)(response==null?void 0:(_response$data4=response.data)==null?void 0:(_response$data4$data=_response$data4.data)==null?void 0:_response$data4$data.dob):'');formRef.current.setFieldValue('gender',(_response$data$data$g=response==null?void 0:(_response$data5=response.data)==null?void 0:(_response$data5$data=_response$data5.data)==null?void 0:_response$data5$data.gender)!=null?_response$data$data$g:null);formRef.current.setFieldValue('nationalCard',response!=null&&(_response$data6=response.data)!=null&&(_response$data6$data=_response$data6.data)!=null&&_response$data6$data.nationalCard?response==null?void 0:(_response$data7=response.data)==null?void 0:(_response$data7$data=_response$data7.data)==null?void 0:_response$data7$data.nationalCard:'');formRef.current.setFieldValue('dateNationalId',response!=null&&(_response$data8=response.data)!=null&&(_response$data8$data=_response$data8.data)!=null&&_response$data8$data.dateNationalId?(0,_utils.formatDDMMYYY)(response==null?void 0:(_response$data9=response.data)==null?void 0:(_response$data9$data=_response$data9.data)==null?void 0:_response$data9$data.dateNationalId):'');formRef.current.setFieldValue('bankAccountName',(_response$data$data$b=response==null?void 0:(_response$data10=response.data)==null?void 0:(_response$data10$data=_response$data10.data)==null?void 0:_response$data10$data.bankAccountName)!=null?_response$data$data$b:'');formRef.current.setFieldValue('bankAccountNumber',(_response$data$data$b2=response==null?void 0:(_response$data11=response.data)==null?void 0:(_response$data11$data=_response$data11.data)==null?void 0:_response$data11$data.bankAccountNumber)!=null?_response$data$data$b2:'');formRef.current.setFieldValue('bankId',(_response$data$data$b3=response==null?void 0:(_response$data12=response.data)==null?void 0:(_response$data12$data=_response$data12.data)==null?void 0:_response$data12$data.bankId)!=null?_response$data$data$b3:null);formRef.current.setFieldValue('bankName',(_response$data$data$b4=response==null?void 0:(_response$data13=response.data)==null?void 0:(_response$data13$data=_response$data13.data)==null?void 0:_response$data13$data.bankName)!=null?_response$data$data$b4:'');}else{}}_context.next=13;break;case 9:_context.prev=9;_context.t0=_context["catch"](0);setIsLoading(false);console.log(_context.t0);case 13:case"end":return _context.stop();}},null,null,[[0,9]],Promise);};(0,_react.useEffect)(function(){getData();_store.default.getListBank();},[]);var onSubmit=function _callee2(values){var _props$route2,_props$route2$params,_props$route2$params$,body,response,_response$data14,_response$data14$meta,_response$data15,_response$data15$meta;return _regenerator.default.async(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.prev=0;setIsLoading(true);body={LoanBriefId:(_props$route2=props.route)==null?void 0:(_props$route2$params=_props$route2.params)==null?void 0:(_props$route2$params$=_props$route2$params.loan)==null?void 0:_props$route2$params$.id,DateNationalId:(0,_moment.default)(values.dateNationalId,'DD/MM/YYYY').format('YYYY-MM-DD'),bankId:values.bankId,bankAccountName:values==null?void 0:values.bankAccountName,bankAccountNumber:values==null?void 0:values.bankAccountNumber};_context3.next=5;return _regenerator.default.awrap(_api.Api.getInstance().updateInfoLoanTopupV2(body));case 5:response=_context3.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data14=response.data)==null?void 0:(_response$data14$meta=_response$data14.meta)==null?void 0:_response$data14$meta.errorCode)===200){_reactNative.Alert.alert('Thông báo','Cập nhật thông tin thành công',[{text:'Đồng ý',onPress:function onPress(){var _props$route3,_props$route3$params,_props$route3$params$,_props$route4,_props$route4$params,_props$route4$params$;return _regenerator.default.async(function onPress$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return _regenerator.default.awrap((0,_utils.logEvent)('thongtinvay_completed',{event:'thongtinvay_completed',createdAt:new Date(),deviceId:_AppStore.default.deviceId,loanId:String((_props$route3=props.route)==null?void 0:(_props$route3$params=_props$route3.params)==null?void 0:(_props$route3$params$=_props$route3$params.loan)==null?void 0:_props$route3$params$.id),utmSource:(_props$route4=props.route)==null?void 0:(_props$route4$params=_props$route4.params)==null?void 0:(_props$route4$params$=_props$route4$params.loan)==null?void 0:_props$route4$params$.utmSource}));case 2:(0,_utils.logEventFb)('thongtinvay_completed');navigation.dispatch(_native.CommonActions.reset({index:1,routes:[{name:_navigation.ScreenNames.Main}]}));case 4:case"end":return _context2.stop();}},null,null,null,Promise);}}]);}else{_reactNative.Alert.alert('Thông báo',(_response$data15=response.data)==null?void 0:(_response$data15$meta=_response$data15.meta)==null?void 0:_response$data15$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 10:_context3.prev=10;_context3.t0=_context3["catch"](0);setIsLoading(false);console.log(_context3.t0);case 14:case"end":return _context3.stop();}},null,null,[[0,10]],Promise);};return _react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:155,columnNumber:5}},_react.default.createElement(_MHeader.default,{title:"Vay nhanh 24/7",__self:this,__source:{fileName:_jsxFileName,lineNumber:156,columnNumber:7}}),_react.default.createElement(_reactNative.View,{style:_CommonStyles.commonStyles.fill,__self:this,__source:{fileName:_jsxFileName,lineNumber:157,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:$h,__self:this,__source:{fileName:_jsxFileName,lineNumber:158,columnNumber:9}}),_react.default.createElement(_reactNative.View,{style:$bg,__self:this,__source:{fileName:_jsxFileName,lineNumber:159,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{paddingVertical:10,flexDirection:'row',alignItems:'center',paddingHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:160,columnNumber:11}},_react.default.createElement(_reactNative.TouchableOpacity,{style:{zIndex:1000},onPress:function onPress(){_reactNative.Alert.alert('Thoát cập nhật thông tin','Bạn có chắc chắn muốn thoát cập nhật thông tin không?',[{text:'Có',onPress:function onPress(){navigation.dispatch(_native.CommonActions.reset({index:1,routes:[{name:_navigation.ScreenNames.Main}]}));}},{text:'Không'}]);},__self:this,__source:{fileName:_jsxFileName,lineNumber:168,columnNumber:13}},_react.default.createElement(_svgs.IconBack,{__self:this,__source:{fileName:_jsxFileName,lineNumber:195,columnNumber:15}})),_react.default.createElement(_MText.MText,{style:$title,__self:this,__source:{fileName:_jsxFileName,lineNumber:197,columnNumber:13}},"Th\xF4ng tin chi ti\u1EBFt")),_react.default.createElement(_formik.Formik,{onSubmit:onSubmit,innerRef:formRef,initialValues:{fullName:'',dob:'',gender:null,nationalCard:'',dateNationalId:'',bankId:null,bankName:'',bankAccountName:'',bankAccountNumber:''},validateOnBlur:false,validateOnChange:false,validationSchema:yup.object().shape({bankName:yup.string().required('Vui lòng chọn ngân hàng'),bankAccountName:yup.string().required('Vui lòng nhập chủ thẻ'),bankAccountNumber:yup.string().required('Vui lòng nhập số tài khoản')}),__self:this,__source:{fileName:_jsxFileName,lineNumber:199,columnNumber:11}},function(_ref){var values=_ref.values,errors=_ref.errors,setFieldValue=_ref.setFieldValue,handleSubmit=_ref.handleSubmit,handleChange=_ref.handleChange;return _react.default.createElement(_reactNative.View,{style:{flex:1,paddingHorizontal:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:230,columnNumber:15}},_react.default.createElement(_reactNative.ScrollView,{style:[_CommonStyles.commonStyles.fill],showsVerticalScrollIndicator:false,__self:_this,__source:{fileName:_jsxFileName,lineNumber:231,columnNumber:17}},_react.default.createElement(_MText.MText,{style:$title2,__self:_this,__source:{fileName:_jsxFileName,lineNumber:235,columnNumber:19}},"1.1 Th\xF4ng tin c\xE1 nh\xE2n"),_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:236,columnNumber:19}},"H\u1ECD v\xE0 t\xEAn"),_react.default.createElement(_reactNative.TextInput,{editable:false,style:[$textInput,{color:'#333333',fontSize:16,fontWeight:'500',fontFamily:'BeVietnamPro-Medium',backgroundColor:'#EAEAEA'}],value:values.fullName,__self:_this,__source:{fileName:_jsxFileName,lineNumber:237,columnNumber:19}}),errors&&errors.fullName&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:252,columnNumber:21}},errors.fullName),_react.default.createElement(_reactNative.View,{style:[$row,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:254,columnNumber:19}},_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.fill],__self:_this,__source:{fileName:_jsxFileName,lineNumber:255,columnNumber:21}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:256,columnNumber:23}},"Sinh ng\xE0y"),_react.default.createElement(_reactNative.TouchableOpacity,{style:[$select,{backgroundColor:'#EAEAEA'}],disabled:true,__self:_this,__source:{fileName:_jsxFileName,lineNumber:257,columnNumber:23}},_react.default.createElement(_MText.MText,{style:{color:'#333333',fontSize:16,fontWeight:'500',fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:261,columnNumber:25}},values.dob))),_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.fill],__self:_this,__source:{fileName:_jsxFileName,lineNumber:273,columnNumber:21}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:274,columnNumber:23}},"Gi\u1EDBi t\xEDnh"),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:true,style:[$select,{backgroundColor:'#EAEAEA'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:275,columnNumber:23}},_react.default.createElement(_MText.MText,{style:{color:'#333333',fontSize:16,fontWeight:'500',flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:279,columnNumber:25}},values.gender===0?'Nam':values.gender===1?'Nữ':''),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:293,columnNumber:25}})))),_react.default.createElement(_reactNative.View,{style:[$row],__self:_this,__source:{fileName:_jsxFileName,lineNumber:298,columnNumber:19}},_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.fill],__self:_this,__source:{fileName:_jsxFileName,lineNumber:299,columnNumber:21}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:300,columnNumber:23}},"S\u1ED1 CCCD/CMND"),_react.default.createElement(_reactNative.TextInput,{editable:false,keyboardType:"number-pad",style:[$textInput,{color:'#333333',fontSize:16,fontWeight:'500',backgroundColor:'#EAEAEA'}],value:values.nationalCard,onChangeText:handleChange('nationalCard'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:301,columnNumber:23}})),_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.fill],__self:_this,__source:{fileName:_jsxFileName,lineNumber:317,columnNumber:21}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:318,columnNumber:23}},"Ng\xE0y c\u1EA5p"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){setShowDate(true);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:319,columnNumber:23}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:values.dateNationalId!==''?'#333333':'#BDBDBD',fontSize:16,fontWeight:'500',flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:325,columnNumber:25}},values.dateNationalId!==''?values.dateNationalId:'DD/MM/YYYY'))),_react.default.createElement(_reactNativeDatePicker.default,{mode:"date",open:showDate,modal:true,title:"Ch\u1ECDn th\u1EDDi gian",locale:"vi",date:new Date(),onCancel:function onCancel(){setShowDate(false);},onConfirm:function onConfirm(date){setShowDate(false);setFieldValue('dateNationalId',(0,_utils.formatDDMMYYY)(date));},__self:_this,__source:{fileName:_jsxFileName,lineNumber:344,columnNumber:21}})),_react.default.createElement(_MText.MText,{style:[$title2],__self:_this,__source:{fileName:_jsxFileName,lineNumber:361,columnNumber:19}},"1.2 Th\xF4ng tin gi\u1EA3i ng\xE2n"),_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:362,columnNumber:19}},"Ng\xE2n h\xE0ng"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){navigation.push(_navigation.ScreenNames.CommonSelect,{title:'Chọn ngân hàng',data:_store.default.listBank,callback:function callback(value){setFieldValue('bankName',value.name);setFieldValue('bankId',value.id);}});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:363,columnNumber:19}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:'#333333',fontSize:16,fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:376,columnNumber:21}},values.bankName),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:388,columnNumber:21}})),errors&&errors.bankName&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:391,columnNumber:21}},errors.bankName),_react.default.createElement(_MText.MText,{style:[$label,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:393,columnNumber:19}},"T\xEAn s\u1ED1 t\xE0i kho\u1EA3n"),_react.default.createElement(_reactNative.TextInput,{numberOfLines:1,style:[$textInput,{color:'#333333',fontSize:16,fontWeight:'500'}],value:values.bankAccountName,onChangeText:handleChange('bankAccountName'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:396,columnNumber:19}}),errors&&errors.bankAccountName&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:410,columnNumber:21}},errors.bankAccountName),_react.default.createElement(_MText.MText,{style:[$label,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:412,columnNumber:19}},"S\u1ED1 t\xE0i kho\u1EA3n"),_react.default.createElement(_reactNative.TextInput,{keyboardType:"number-pad",numberOfLines:1,style:[$textInput,{color:'#333333',fontSize:16,fontWeight:'500'}],value:values.bankAccountNumber,onChangeText:handleChange('bankAccountNumber'),__self:_this,__source:{fileName:_jsxFileName,lineNumber:415,columnNumber:19}}),errors&&errors.bankAccountNumber&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:430,columnNumber:21}},errors.bankAccountNumber),_react.default.createElement(_reactNative.View,{style:{height:50},__self:_this,__source:{fileName:_jsxFileName,lineNumber:432,columnNumber:19}})),_react.default.createElement(_reactNative.View,{style:{position:'absolute',bottom:24,left:16,right:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:434,columnNumber:17}},_react.default.createElement(_MButton.default,{onPress:function onPress(){handleSubmit();},style:{marginVertical:24},__self:_this,__source:{fileName:_jsxFileName,lineNumber:442,columnNumber:19}},_react.default.createElement(_reactNativeLinearGradient.default,{start:{x:1,y:0},end:{x:0,y:1},style:{height:40,borderRadius:30,alignItems:'center',justifyContent:'center'},colors:['#FF7A00','#EF4123'],__self:_this,__source:{fileName:_jsxFileName,lineNumber:450,columnNumber:21}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:16},__self:_this,__source:{fileName:_jsxFileName,lineNumber:461,columnNumber:23}},"X\xE1c nh\u1EADn")))));}))),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:477,columnNumber:7}}));}var $row={flexDirection:'row',marginBottom:16,gap:16};var $textInput={borderWidth:1,borderRadius:4,borderColor:'#E0E0E0',height:40,paddingHorizontal:8,fontFamily:'BeVietnamPro-Medium'};var $label={fontSize:14,color:'#333333',paddingBottom:5};var $title2={fontSize:16,fontWeight:'bold',color:'#333333',paddingBottom:10,marginTop:6};var $title={fontSize:16,fontWeight:'bold',color:'#333333',position:'absolute',left:0,right:0,textAlign:'center'};var $h={backgroundColor:'#EF592E',position:'absolute',height:30,width:'100%'};var $bg={borderTopLeftRadius:30,borderTopRightRadius:30,backgroundColor:'white',flex:1};var $select={flexDirection:'row',height:40,alignItems:'center',paddingHorizontal:8,borderWidth:1,borderRadius:4,borderColor:'#E0E0E0'};var $error={color:'#EB5757',fontSize:14,fontStyle:'italic',fontFamily:'BeVietnamPro-Thin',fontWeight:'300',marginTop:5};
|
|
2
2
|
//# sourceMappingURL=TopupLoanInfo.js.map
|