react-native-timacare 3.3.17 → 3.3.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.
- package/lib/commonjs/screens/home/DigitalTopupItem.js +1 -1
- package/lib/commonjs/screens/home/DigitalTopupItem.js.flow +272 -4
- package/lib/commonjs/screens/home/DigitalTopupItem.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.flow +30 -46
- package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.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 +5 -8
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.flow +21 -23
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
- package/lib/module/screens/home/DigitalTopupItem.js +1 -1
- package/lib/module/screens/home/DigitalTopupItem.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/RegisterCamera.js +1 -1
- package/lib/module/screens/toan-trinh-so/RegisterCamera.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/VehicleCamera.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
- package/lib/typescript/screens/home/DigitalTopupItem.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/RegisterCamera.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/VehicleCamera.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/screens/home/DigitalTopupItem.tsx +272 -4
- package/src/screens/toan-trinh-so/RegisterCamera.tsx +30 -46
- package/src/screens/toan-trinh-so/TTSSelfie.tsx +5 -8
- package/src/screens/toan-trinh-so/VehicleCamera.tsx +21 -23
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=VehicleCamera;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));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 _native=require("@react-navigation/native");var _reactNativeModal=_interopRequireDefault(require("react-native-modal"));var _MText=require("../../components/MText");var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _icons=require("../../assets/icons");var _MButton=_interopRequireDefault(require("../../components/MButton"));var _reactNativePermissions=require("react-native-permissions");var _reactNativeCamera=require("react-native-camera");var _CommonStyles=require("../CommonStyles");var _navigation=require("../../navigation");var _storage=require("../../utils/storage");var _reactNativeImageCropPicker=_interopRequireDefault(require("react-native-image-crop-picker"));var _reactNativeImagePicker=require("react-native-image-picker");var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/screens/toan-trinh-so/VehicleCamera.tsx",_this=this;function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}var _Dimensions$get=_reactNative.Dimensions.get('window'),screenWidth=_Dimensions$get.width,screenHeight=_Dimensions$get.height;var frameWidth=screenWidth*0.85;var frameHeight=frameWidth*0.63;var frameLeft=(screenWidth-frameWidth)/2;var frameTop=(screenWidth*4/3-frameHeight)/2;function VehicleCamera(props){var _props$route,_props$route$params;var isFocused=(0,_native.useIsFocused)();var _useState=(0,_react.useState)(0),_useState2=(0,_slicedToArray2.default)(_useState,2),cameraKey=_useState2[0],setCameraKey=_useState2[1];(0,_react.useEffect)(function(){if(isFocused){setCameraKey(function(prev){return prev+1;});}},[isFocused]);var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),shouldRenderCamera=_useState4[0],setShouldRenderCamera=_useState4[1];var navigation=(0,_native.useNavigation)();var _useState5=(0,_react.useState)(false),_useState6=(0,_slicedToArray2.default)(_useState5,2),showModal=_useState6[0],setShowModal=_useState6[1];var _useState7=(0,_react.useState)(props!=null&&(_props$route=props.route)!=null&&(_props$route$params=_props$route.params)!=null&&_props$route$params.front?'Chụp đăng ký xe mặt trước':'Chụp đăng ký xe mặt sau'),_useState8=(0,_slicedToArray2.default)(_useState7,2),title=_useState8[0],setTitle=_useState8[1];var _useState9=(0,_react.useState)(false),_useState10=(0,_slicedToArray2.default)(_useState9,2),taking=_useState10[0],setTaking=_useState10[1];var _useState11=(0,_react.useState)(false),_useState12=(0,_slicedToArray2.default)(_useState11,2),passPermission=_useState12[0],setPassPermission=_useState12[1];var myCamera=(0,_react.useRef)(null);var takePhoto=function _callee(){var _props$route2,_props$route2$params,_props$route4,_props$route4$params;var options,data,_props$route3,_props$route3$params,_props$route5,_props$route5$params,_props$route6,_props$route6$params;return _regenerator.default.async(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:setTaking(true);options={base64:true,pauseAfterCapture:true,fixOrientation:false,forceUpOrientation:false,orientation:_reactNativeCamera.RNCamera.Constants.Orientation.portrait};_context.next=4;return _regenerator.default.awrap(myCamera.current.takePictureAsync(options));case 4:data=_context.sent;setTaking(false);if(props!=null&&(_props$route2=props.route)!=null&&(_props$route2$params=_props$route2.params)!=null&&_props$route2$params.front){navigation.push(_navigation.ScreenNames.VehicleRegistrationFront,{uri:data==null?void 0:data.uri,loan:props==null?void 0:(_props$route3=props.route)==null?void 0:(_props$route3$params=_props$route3.params)==null?void 0:_props$route3$params.loan});}else if((_props$route4=props.route)!=null&&(_props$route4$params=_props$route4.params)!=null&&_props$route4$params.callback){navigation.goBack();(_props$route5=props.route)==null?void 0:(_props$route5$params=_props$route5.params)==null?void 0:_props$route5$params.callback(data==null?void 0:data.uri);}else{navigation.push(_navigation.ScreenNames.VehicleRegistrationBack,{uri:data==null?void 0:data.uri,loan:props==null?void 0:(_props$route6=props.route)==null?void 0:(_props$route6$params=_props$route6.params)==null?void 0:_props$route6$params.loan});}case 7:case"end":return _context.stop();}},null,null,null,Promise);};var requestPermissions=function requestPermissions(){(0,_reactNativePermissions.request)(_reactNative.Platform.OS==='ios'?_reactNativePermissions.PERMISSIONS.IOS.CAMERA:_reactNativePermissions.PERMISSIONS.ANDROID.CAMERA).then(function(result){switch(result){case _reactNativePermissions.RESULTS.UNAVAILABLE:console.log('This feature is not available (on this device / in this context)');Alert.alert('Thông báo','Máy ảnh trên thiết bị không tương thích.\nVui lòng kiểm tra lại thiết bị!',[{text:'Đồng ý'}]);break;case _reactNativePermissions.RESULTS.DENIED:console.log('The permission has not been requested / is denied but requestable');Alert.alert('Thông báo','Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',[{text:'Đồng ý',onPress:function onPress(){if(_reactNative.Platform.OS==='ios'){(0,_reactNativePermissions.openSettings)();}else{requestPermissions();}}}]);break;case _reactNativePermissions.RESULTS.LIMITED:console.log('The permission is limited: some actions are possible');Alert.alert('Thông báo','Quyền máy ảnh bị hạn chế. Vui lòng kiểm tra lại để tiếp tục!',[{text:'Đồng ý',onPress:function onPress(){if(_reactNative.Platform.OS==='ios'){(0,_reactNativePermissions.openSettings)();}else{requestPermissions();}}}]);break;case _reactNativePermissions.RESULTS.GRANTED:console.log('The permission is granted');setPassPermission(true);break;case _reactNativePermissions.RESULTS.BLOCKED:console.log('The permission is denied and not requestable anymore');Alert.alert('Thông báo','Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',[{text:'Đồng ý',onPress:function onPress(){if(_reactNative.Platform.OS==='ios'){(0,_reactNativePermissions.openSettings)();}else{(0,_reactNativePermissions.openSettings)();}}}]);break;}});};var loadIntro=function _callee2(){var intro;return _regenerator.default.async(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return _regenerator.default.awrap((0,_storage.load)(_storage.OCR_V2));case 2:intro=_context2.sent;if(!intro){setShowModal(true);}else{setShowModal(false);}case 4:case"end":return _context2.stop();}},null,null,null,Promise);};(0,_react.useEffect)(function(){requestPermissions();loadIntro();},[]);(0,_react.useEffect)(function(){var timeout;if(isFocused){timeout=setTimeout(function(){setShouldRenderCamera(true);},500);}else{setShouldRenderCamera(false);}return function(){return clearTimeout(timeout);};},[isFocused]);var pickImageFromGallery=function _callee3(){var result,_props$route7,_props$route7$params,_props$route9,_props$route9$params,_result$assets$,_props$route8,_props$route8$params,_props$route10,_props$route10$params,_result$assets$2,_result$assets$3,_props$route11,_props$route11$params;return _regenerator.default.async(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:if(!(_reactNative.Platform.OS==='android')){_context3.next=7;break;}_context3.next=3;return _regenerator.default.awrap((0,_reactNativeImagePicker.launchImageLibrary)({mediaType:'photo'}));case 3:result=_context3.sent;if(result.assets){if(props!=null&&(_props$route7=props.route)!=null&&(_props$route7$params=_props$route7.params)!=null&&_props$route7$params.front){navigation.push(_navigation.ScreenNames.VehicleRegistrationFront,{uri:(_result$assets$=result.assets[0])==null?void 0:_result$assets$.uri,loan:props==null?void 0:(_props$route8=props.route)==null?void 0:(_props$route8$params=_props$route8.params)==null?void 0:_props$route8$params.loan});}else if((_props$route9=props.route)!=null&&(_props$route9$params=_props$route9.params)!=null&&_props$route9$params.callback){navigation.goBack();(_props$route10=props.route)==null?void 0:(_props$route10$params=_props$route10.params)==null?void 0:_props$route10$params.callback((_result$assets$2=result.assets[0])==null?void 0:_result$assets$2.uri);}else{navigation.push(_navigation.ScreenNames.VehicleRegistrationBack,{uri:(_result$assets$3=result.assets[0])==null?void 0:_result$assets$3.uri,loan:props==null?void 0:(_props$route11=props.route)==null?void 0:(_props$route11$params=_props$route11.params)==null?void 0:_props$route11$params.loan});}}_context3.next=8;break;case 7:_reactNativeImageCropPicker.default.openPicker({}).then(function(image){var _props$route12,_props$route12$params,_props$route14,_props$route14$params;if(props!=null&&(_props$route12=props.route)!=null&&(_props$route12$params=_props$route12.params)!=null&&_props$route12$params.front){var _props$route13,_props$route13$params;navigation.push(_navigation.ScreenNames.VehicleRegistrationFront,{uri:_reactNative.Platform.OS==='android'?image==null?void 0:image.path:'file://'+(image==null?void 0:image.path),loan:props==null?void 0:(_props$route13=props.route)==null?void 0:(_props$route13$params=_props$route13.params)==null?void 0:_props$route13$params.loan});}else if((_props$route14=props.route)!=null&&(_props$route14$params=_props$route14.params)!=null&&_props$route14$params.callback){var _props$route15,_props$route15$params;navigation.goBack();(_props$route15=props.route)==null?void 0:(_props$route15$params=_props$route15.params)==null?void 0:_props$route15$params.callback(_reactNative.Platform.OS==='android'?image==null?void 0:image.path:'file://'+(image==null?void 0:image.path));}else{var _props$route16,_props$route16$params;navigation.push(_navigation.ScreenNames.VehicleRegistrationBack,{uri:_reactNative.Platform.OS==='android'?image==null?void 0:image.path:'file://'+(image==null?void 0:image.path),loan:props==null?void 0:(_props$route16=props.route)==null?void 0:(_props$route16$params=_props$route16.params)==null?void 0:_props$route16$params.loan});}});case 8:case"end":return _context3.stop();}},null,null,null,Promise);};return _react.default.createElement(_reactNative.View,{style:[$flex,{backgroundColor:'#000'}],pointerEvents:'box-none',__self:this,__source:{fileName:_jsxFileName,lineNumber:259,columnNumber:5}},passPermission&&shouldRenderCamera?_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:264,columnNumber:9}},_react.default.createElement(_reactNativeCamera.RNCamera,{key:cameraKey,ref:myCamera,defaultVideoQuality:_reactNativeCamera.RNCamera.Constants.VideoQuality['720p'],style:{flex:1},maxZoom:1,androidCameraPermissionOptions:{title:'Permission to use camera',message:'We need your permission to use your camera',buttonPositive:'Ok',buttonNegative:'Cancel'},quality:0.8,pictureSize:"1280x720",__self:this,__source:{fileName:_jsxFileName,lineNumber:265,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:$overlay,__self:this,__source:{fileName:_jsxFileName,lineNumber:282,columnNumber:13}},_react.default.createElement(_reactNative.View,{style:$darkOverlayTop,__self:this,__source:{fileName:_jsxFileName,lineNumber:283,columnNumber:15}}),_react.default.createElement(_reactNative.View,{style:$row,__self:this,__source:{fileName:_jsxFileName,lineNumber:284,columnNumber:15}},_react.default.createElement(_reactNative.View,{style:$darkOverlaySide,__self:this,__source:{fileName:_jsxFileName,lineNumber:285,columnNumber:17}}),_react.default.createElement(_reactNative.View,{style:$frameBorder,__self:this,__source:{fileName:_jsxFileName,lineNumber:286,columnNumber:17}},_react.default.createElement(Corner,{style:{top:0,left:0,borderTopWidth:CORNER_WIDTH,borderLeftWidth:CORNER_WIDTH,borderColor:BORDER_COLOR},__self:this,__source:{fileName:_jsxFileName,lineNumber:288,columnNumber:19}}),_react.default.createElement(Corner,{style:{top:0,right:0,borderTopWidth:CORNER_WIDTH,borderRightWidth:CORNER_WIDTH,borderColor:BORDER_COLOR},__self:this,__source:{fileName:_jsxFileName,lineNumber:299,columnNumber:19}}),_react.default.createElement(Corner,{style:{bottom:0,left:0,borderBottomWidth:CORNER_WIDTH,borderLeftWidth:CORNER_WIDTH,borderColor:BORDER_COLOR},__self:this,__source:{fileName:_jsxFileName,lineNumber:310,columnNumber:19}}),_react.default.createElement(Corner,{style:{bottom:0,right:0,borderBottomWidth:CORNER_WIDTH,borderRightWidth:CORNER_WIDTH,borderColor:BORDER_COLOR},__self:this,__source:{fileName:_jsxFileName,lineNumber:321,columnNumber:19}})),_react.default.createElement(_reactNative.View,{style:$darkOverlaySide,__self:this,__source:{fileName:_jsxFileName,lineNumber:331,columnNumber:17}})),_react.default.createElement(_reactNative.View,{style:$darkOverlayBottom,__self:this,__source:{fileName:_jsxFileName,lineNumber:333,columnNumber:15}}))),_react.default.createElement(_reactNative.View,{style:{position:'absolute',bottom:20,left:0,right:0,zIndex:1000},__self:this,__source:{fileName:_jsxFileName,lineNumber:337,columnNumber:11}},!taking&&_react.default.createElement(_react.default.Fragment,null,_react.default.createElement(_MText.MText,{style:{color:'white',textAlign:'center',fontSize:14},__self:this,__source:{fileName:_jsxFileName,lineNumber:370,columnNumber:17}},"Vui l\xF2ng \u0111\u1EB7t gi\u1EA5y t\u1EDD n\u1EB1m v\u1EEBa khung h\xECnh ch\u1EEF nh\u1EADt,",'\n',"ch\u1EE5p \u0111\u1EE7 \xE1nh s\xE1ng v\xE0 r\xF5 n\xE9t."),_react.default.createElement(_reactNative.View,{style:{alignItems:'center',marginVertical:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:380,columnNumber:17}},_react.default.createElement(_MButton.default,{onPress:function onPress(){takePhoto();},__self:this,__source:{fileName:_jsxFileName,lineNumber:386,columnNumber:19}},_react.default.createElement(_icons.TakePhotoSvg,{__self:this,__source:{fileName:_jsxFileName,lineNumber:391,columnNumber:21}}))))),_react.default.createElement(_reactNative.SafeAreaView,{style:[_CommonStyles.commonStyles.fill,{position:'absolute',width:'100%',height:'100%'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:397,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.row,_CommonStyles.commonStyles.alignCenter,{paddingVertical:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:403,columnNumber:13}},_react.default.createElement(_MButton.default,{onPress:function onPress(){navigation.goBack();},style:[{width:48,height:48,zIndex:1000,position:'absolute',left:16,top:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:410,columnNumber:15}},_react.default.createElement(_icons.IconBackWhite,{__self:this,__source:{fileName:_jsxFileName,lineNumber:425,columnNumber:17}})),_react.default.createElement(_reactNative.View,{style:{flex:1,alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:427,columnNumber:15}},_react.default.createElement(_MText.MText,{style:$title,__self:this,__source:{fileName:_jsxFileName,lineNumber:428,columnNumber:17}},"\u0110\u0102NG K\xDD XE"))),_react.default.createElement(_MText.MText,{style:{color:'white',textAlign:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:431,columnNumber:13}},title))):_react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:442,columnNumber:9}}),_react.default.createElement(_reactNativeModal.default,{isVisible:showModal,style:$modal,backdropTransitionInTiming:0,animationOutTiming:200,animationInTiming:200,animationIn:'slideInUp',animationOut:'fadeOutDown',useNativeDriverForBackdrop:true,useNativeDriver:true,__self:this,__source:{fileName:_jsxFileName,lineNumber:444,columnNumber:7}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:$container,__self:this,__source:{fileName:_jsxFileName,lineNumber:455,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:$paddingV,__self:this,__source:{fileName:_jsxFileName,lineNumber:456,columnNumber:11}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setShowModal(false);setTimeout(function(){navigation.goBack();},100);},style:{width:24,height:24,position:'absolute',left:16,top:24,alignItems:'center',zIndex:10000},__self:this,__source:{fileName:_jsxFileName,lineNumber:457,columnNumber:13}},_react.default.createElement(_icons.CloseIcon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:474,columnNumber:15}})),_react.default.createElement(_MText.MText,{style:$title,__self:this,__source:{fileName:_jsxFileName,lineNumber:476,columnNumber:13}},"\u0110\u0102NG K\xDD XE"),_react.default.createElement(_MText.MText,{style:$description,__self:this,__source:{fileName:_jsxFileName,lineNumber:477,columnNumber:13}},"Ch\u1EE5p \u1EA3nh 2 m\u1EB7t \u0111\u0103ng k\xFD xe"),_react.default.createElement(_reactNative.Image,{source:require('../../assets/tts/vehicleStep.png'),style:$step,__self:this,__source:{fileName:_jsxFileName,lineNumber:479,columnNumber:13}}),_react.default.createElement(_reactNative.View,{style:$bg,__self:this,__source:{fileName:_jsxFileName,lineNumber:484,columnNumber:13}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'column',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:485,columnNumber:15}},_react.default.createElement(_reactNative.Image,{source:require('../../assets/tts/vehicleRegistration.png'),style:{width:'60%',height:120,resizeMode:'contain',marginVertical:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:491,columnNumber:17}}),_react.default.createElement(_MText.MText,{style:$title2,__self:this,__source:{fileName:_jsxFileName,lineNumber:500,columnNumber:17}},"B\u1EA1n vui l\xF2ng ch\u1EE5p \u1EA3nh",'\n',"\u0110\u0103ng k\xFD xe theo h\u01B0\u1EDBng d\u1EABn:")),_react.default.createElement(_reactNative.View,{style:{marginTop:10,paddingHorizontal:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:505,columnNumber:15}},_react.default.createElement(_reactNative.View,{style:$row,__self:this,__source:{fileName:_jsxFileName,lineNumber:506,columnNumber:17}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:507,columnNumber:19}}),_react.default.createElement(_MText.MText,{style:$txt,__self:this,__source:{fileName:_jsxFileName,lineNumber:508,columnNumber:19}},"N\xEAn \u0111\u1EB7t \u0111\u0103ng k\xFD xe l\xEAn m\u1EB7t ph\u1EB3ng \u0111\u1EC3 ch\u1EE5p")),_react.default.createElement(_reactNative.View,{style:$row,__self:this,__source:{fileName:_jsxFileName,lineNumber:512,columnNumber:17}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:513,columnNumber:19}}),_react.default.createElement(_MText.MText,{style:$txt,__self:this,__source:{fileName:_jsxFileName,lineNumber:514,columnNumber:19}},"\u0110\u1EB7t \u0110\u0103ng k\xFD xe n\u1EB1m g\u1ECDn trong khung h\xECnh (Kh\xF4ng ",'\n'," qu\xE1 nh\u1ECF hay qu\xE1 to l\xE0m m\u1EA5t chi ti\u1EBFt)")),_react.default.createElement(_reactNative.View,{style:$row,__self:this,__source:{fileName:_jsxFileName,lineNumber:519,columnNumber:17}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:520,columnNumber:19}}),_react.default.createElement(_MText.MText,{style:$txt,__self:this,__source:{fileName:_jsxFileName,lineNumber:521,columnNumber:19}},"Ch\u1ECDn n\u01A1i \xE1nh s\xE1ng t\u1ED1t, tr\xE1nh l\xF3a/ ch\xF3i h\xECnh ch\u1EE5p")),_react.default.createElement(_reactNative.Image,{source:require('../../assets/tts/1000009872.png'),style:{width:'100%',height:100,resizeMode:'contain',marginTop:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:525,columnNumber:17}})),_react.default.createElement(_MButton.default,{onPress:function onPress(){setShowModal(false);(0,_storage.save)(_storage.OCR_V2,true);},style:{margin:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:536,columnNumber:15}},_react.default.createElement(_reactNativeLinearGradient.default,{start:{x:1,y:0},end:{x:0,y:1},style:{height:40,marginVertical:16,borderRadius:30,alignItems:'center',justifyContent:'center'},colors:['#FF7A00','#EF4123'],__self:this,__source:{fileName:_jsxFileName,lineNumber:545,columnNumber:17}},_react.default.createElement(_MText.MText,{style:$title,__self:this,__source:{fileName:_jsxFileName,lineNumber:557,columnNumber:19}},"Ti\u1EBFp t\u1EE5c"))))))));}var CORNER_SIZE=20;var CORNER_WIDTH=2;var BORDER_COLOR='#FDFDFD';var Corner=function Corner(_ref){var style=_ref.style;return _react.default.createElement(_reactNative.View,{style:[style,{position:'absolute',width:CORNER_SIZE,height:CORNER_SIZE}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:573,columnNumber:3}});};var overlayColor='rgba(22, 22, 22, 0.7)';var $overlay=(0,_extends2.default)({},_reactNative.StyleSheet.absoluteFillObject,{justifyContent:'center',alignItems:'center'});var $darkOverlayTop={width:'100%',height:(screenHeight-frameHeight)/2,backgroundColor:overlayColor};var $darkOverlayBottom={width:'100%',height:(screenHeight-frameHeight)/2,backgroundColor:overlayColor};var $darkOverlaySide={width:(screenWidth-frameWidth)/2,height:frameHeight,backgroundColor:overlayColor};var $frameBorder={width:frameWidth,height:frameHeight};var $row={flexDirection:'row',alignItems:'center',marginTop:5};var $txt={fontSize:12,marginLeft:5};var $bg={backgroundColor:'white',borderTopRightRadius:26,borderTopLeftRadius:26};var $step={height:40,width:'100%',resizeMode:'contain',marginTop:10,marginBottom:10};var $paddingV={paddingTop:16};var $title={fontSize:16,color:'white',fontWeight:'bold',textAlign:'center'};var $title2={fontSize:16,color:'#333333',fontWeight:'bold',textAlign:'center'};var $description={fontSize:12,color:'white',textAlign:'center'};var $flex={flex:1};var $modal={justifyContent:'flex-end',margin:0};var $container={borderTopRightRadius:26,borderTopLeftRadius:26};
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=VehicleCamera;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));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 _native=require("@react-navigation/native");var _reactNativeModal=_interopRequireDefault(require("react-native-modal"));var _MText=require("../../components/MText");var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _icons=require("../../assets/icons");var _MButton=_interopRequireDefault(require("../../components/MButton"));var _reactNativePermissions=require("react-native-permissions");var _reactNativeCamera=require("react-native-camera");var _CommonStyles=require("../CommonStyles");var _navigation=require("../../navigation");var _storage=require("../../utils/storage");var _reactNativeImageCropPicker=_interopRequireDefault(require("react-native-image-crop-picker"));var _reactNativeImagePicker=require("react-native-image-picker");var _reactNativeSafeAreaContext=require("react-native-safe-area-context");var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/screens/toan-trinh-so/VehicleCamera.tsx",_this=this;function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}var _Dimensions$get=_reactNative.Dimensions.get('window'),screenWidth=_Dimensions$get.width;var frameWidth=screenWidth*0.85;var frameHeight=frameWidth*0.63;function VehicleCamera(props){var _props$route,_props$route$params;var insets=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)();var isFocused=(0,_native.useIsFocused)();var _useState=(0,_react.useState)(0),_useState2=(0,_slicedToArray2.default)(_useState,2),cameraKey=_useState2[0],setCameraKey=_useState2[1];(0,_react.useEffect)(function(){if(isFocused){setCameraKey(function(prev){return prev+1;});}},[isFocused]);var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),shouldRenderCamera=_useState4[0],setShouldRenderCamera=_useState4[1];var navigation=(0,_native.useNavigation)();var _useState5=(0,_react.useState)(false),_useState6=(0,_slicedToArray2.default)(_useState5,2),showModal=_useState6[0],setShowModal=_useState6[1];var _useState7=(0,_react.useState)(props!=null&&(_props$route=props.route)!=null&&(_props$route$params=_props$route.params)!=null&&_props$route$params.front?'Chụp đăng ký xe mặt trước':'Chụp đăng ký xe mặt sau'),_useState8=(0,_slicedToArray2.default)(_useState7,2),title=_useState8[0],setTitle=_useState8[1];var _useState9=(0,_react.useState)(false),_useState10=(0,_slicedToArray2.default)(_useState9,2),taking=_useState10[0],setTaking=_useState10[1];var _useState11=(0,_react.useState)(false),_useState12=(0,_slicedToArray2.default)(_useState11,2),passPermission=_useState12[0],setPassPermission=_useState12[1];var myCamera=(0,_react.useRef)(null);var takePhoto=function _callee(){var _props$route2,_props$route2$params,_props$route4,_props$route4$params;var options,data,_props$route3,_props$route3$params,_props$route5,_props$route5$params,_props$route6,_props$route6$params;return _regenerator.default.async(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:setTaking(true);options={base64:true,pauseAfterCapture:true,fixOrientation:false,forceUpOrientation:false,orientation:_reactNativeCamera.RNCamera.Constants.Orientation.portrait};_context.next=4;return _regenerator.default.awrap(myCamera.current.takePictureAsync(options));case 4:data=_context.sent;setTaking(false);if(props!=null&&(_props$route2=props.route)!=null&&(_props$route2$params=_props$route2.params)!=null&&_props$route2$params.front){navigation.push(_navigation.ScreenNames.VehicleRegistrationFront,{uri:data==null?void 0:data.uri,loan:props==null?void 0:(_props$route3=props.route)==null?void 0:(_props$route3$params=_props$route3.params)==null?void 0:_props$route3$params.loan});}else if((_props$route4=props.route)!=null&&(_props$route4$params=_props$route4.params)!=null&&_props$route4$params.callback){navigation.goBack();(_props$route5=props.route)==null?void 0:(_props$route5$params=_props$route5.params)==null?void 0:_props$route5$params.callback(data==null?void 0:data.uri);}else{navigation.push(_navigation.ScreenNames.VehicleRegistrationBack,{uri:data==null?void 0:data.uri,loan:props==null?void 0:(_props$route6=props.route)==null?void 0:(_props$route6$params=_props$route6.params)==null?void 0:_props$route6$params.loan});}case 7:case"end":return _context.stop();}},null,null,null,Promise);};var requestPermissions=function requestPermissions(){(0,_reactNativePermissions.request)(_reactNative.Platform.OS==='ios'?_reactNativePermissions.PERMISSIONS.IOS.CAMERA:_reactNativePermissions.PERMISSIONS.ANDROID.CAMERA).then(function(result){switch(result){case _reactNativePermissions.RESULTS.UNAVAILABLE:console.log('This feature is not available (on this device / in this context)');_reactNative.Alert.alert('Thông báo','Máy ảnh trên thiết bị không tương thích.\nVui lòng kiểm tra lại thiết bị!',[{text:'Đồng ý'}]);break;case _reactNativePermissions.RESULTS.DENIED:console.log('The permission has not been requested / is denied but requestable');_reactNative.Alert.alert('Thông báo','Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',[{text:'Đồng ý',onPress:function onPress(){if(_reactNative.Platform.OS==='ios'){(0,_reactNativePermissions.openSettings)();}else{requestPermissions();}}}]);break;case _reactNativePermissions.RESULTS.LIMITED:console.log('The permission is limited: some actions are possible');_reactNative.Alert.alert('Thông báo','Quyền máy ảnh bị hạn chế. Vui lòng kiểm tra lại để tiếp tục!',[{text:'Đồng ý',onPress:function onPress(){if(_reactNative.Platform.OS==='ios'){(0,_reactNativePermissions.openSettings)();}else{requestPermissions();}}}]);break;case _reactNativePermissions.RESULTS.GRANTED:console.log('The permission is granted');setPassPermission(true);break;case _reactNativePermissions.RESULTS.BLOCKED:console.log('The permission is denied and not requestable anymore');_reactNative.Alert.alert('Thông báo','Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',[{text:'Đồng ý',onPress:function onPress(){if(_reactNative.Platform.OS==='ios'){(0,_reactNativePermissions.openSettings)();}else{(0,_reactNativePermissions.openSettings)();}}}]);break;}});};var loadIntro=function _callee2(){var intro;return _regenerator.default.async(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return _regenerator.default.awrap((0,_storage.load)(_storage.OCR_V2));case 2:intro=_context2.sent;if(!intro){setShowModal(true);}else{setShowModal(false);}case 4:case"end":return _context2.stop();}},null,null,null,Promise);};(0,_react.useEffect)(function(){requestPermissions();loadIntro();},[]);(0,_react.useEffect)(function(){var timeout;if(isFocused){timeout=setTimeout(function(){setShouldRenderCamera(true);},500);}else{setShouldRenderCamera(false);}return function(){return clearTimeout(timeout);};},[isFocused]);var pickImageFromGallery=function _callee3(){var result,_props$route7,_props$route7$params,_props$route9,_props$route9$params,_result$assets$,_props$route8,_props$route8$params,_props$route10,_props$route10$params,_result$assets$2,_result$assets$3,_props$route11,_props$route11$params;return _regenerator.default.async(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:if(!(_reactNative.Platform.OS==='android')){_context3.next=7;break;}_context3.next=3;return _regenerator.default.awrap((0,_reactNativeImagePicker.launchImageLibrary)({mediaType:'photo'}));case 3:result=_context3.sent;if(result.assets){if(props!=null&&(_props$route7=props.route)!=null&&(_props$route7$params=_props$route7.params)!=null&&_props$route7$params.front){navigation.push(_navigation.ScreenNames.VehicleRegistrationFront,{uri:(_result$assets$=result.assets[0])==null?void 0:_result$assets$.uri,loan:props==null?void 0:(_props$route8=props.route)==null?void 0:(_props$route8$params=_props$route8.params)==null?void 0:_props$route8$params.loan});}else if((_props$route9=props.route)!=null&&(_props$route9$params=_props$route9.params)!=null&&_props$route9$params.callback){navigation.goBack();(_props$route10=props.route)==null?void 0:(_props$route10$params=_props$route10.params)==null?void 0:_props$route10$params.callback((_result$assets$2=result.assets[0])==null?void 0:_result$assets$2.uri);}else{navigation.push(_navigation.ScreenNames.VehicleRegistrationBack,{uri:(_result$assets$3=result.assets[0])==null?void 0:_result$assets$3.uri,loan:props==null?void 0:(_props$route11=props.route)==null?void 0:(_props$route11$params=_props$route11.params)==null?void 0:_props$route11$params.loan});}}_context3.next=8;break;case 7:_reactNativeImageCropPicker.default.openPicker({}).then(function(image){var _props$route12,_props$route12$params,_props$route14,_props$route14$params;if(props!=null&&(_props$route12=props.route)!=null&&(_props$route12$params=_props$route12.params)!=null&&_props$route12$params.front){var _props$route13,_props$route13$params;navigation.push(_navigation.ScreenNames.VehicleRegistrationFront,{uri:_reactNative.Platform.OS==='android'?image==null?void 0:image.path:'file://'+(image==null?void 0:image.path),loan:props==null?void 0:(_props$route13=props.route)==null?void 0:(_props$route13$params=_props$route13.params)==null?void 0:_props$route13$params.loan});}else if((_props$route14=props.route)!=null&&(_props$route14$params=_props$route14.params)!=null&&_props$route14$params.callback){var _props$route15,_props$route15$params;navigation.goBack();(_props$route15=props.route)==null?void 0:(_props$route15$params=_props$route15.params)==null?void 0:_props$route15$params.callback(_reactNative.Platform.OS==='android'?image==null?void 0:image.path:'file://'+(image==null?void 0:image.path));}else{var _props$route16,_props$route16$params;navigation.push(_navigation.ScreenNames.VehicleRegistrationBack,{uri:_reactNative.Platform.OS==='android'?image==null?void 0:image.path:'file://'+(image==null?void 0:image.path),loan:props==null?void 0:(_props$route16=props.route)==null?void 0:(_props$route16$params=_props$route16.params)==null?void 0:_props$route16$params.loan});}});case 8:case"end":return _context3.stop();}},null,null,null,Promise);};return _react.default.createElement(_reactNative.View,{style:[$flex,{backgroundColor:'#000'}],pointerEvents:'box-none',__self:this,__source:{fileName:_jsxFileName,lineNumber:254,columnNumber:5}},passPermission&&shouldRenderCamera?_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:259,columnNumber:9}},_react.default.createElement(_reactNativeCamera.RNCamera,{key:cameraKey,ref:myCamera,defaultVideoQuality:_reactNativeCamera.RNCamera.Constants.VideoQuality['720p'],style:{flex:1},maxZoom:1,androidCameraPermissionOptions:{title:'Permission to use camera',message:'We need your permission to use your camera',buttonPositive:'Ok',buttonNegative:'Cancel'},quality:0.9,pictureSize:"1280x720",__self:this,__source:{fileName:_jsxFileName,lineNumber:260,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:$overlay,__self:this,__source:{fileName:_jsxFileName,lineNumber:277,columnNumber:13}},_react.default.createElement(_reactNative.View,{style:$darkOverlayTop,__self:this,__source:{fileName:_jsxFileName,lineNumber:278,columnNumber:15}}),_react.default.createElement(_reactNative.View,{style:$overlayRow,__self:this,__source:{fileName:_jsxFileName,lineNumber:279,columnNumber:15}},_react.default.createElement(_reactNative.View,{style:$darkOverlaySide,__self:this,__source:{fileName:_jsxFileName,lineNumber:280,columnNumber:17}}),_react.default.createElement(_reactNative.View,{style:$frameBorder,__self:this,__source:{fileName:_jsxFileName,lineNumber:281,columnNumber:17}},_react.default.createElement(Corner,{style:{top:0,left:0,borderTopWidth:CORNER_WIDTH,borderLeftWidth:CORNER_WIDTH,borderColor:BORDER_COLOR},__self:this,__source:{fileName:_jsxFileName,lineNumber:282,columnNumber:19}}),_react.default.createElement(Corner,{style:{top:0,right:0,borderTopWidth:CORNER_WIDTH,borderRightWidth:CORNER_WIDTH,borderColor:BORDER_COLOR},__self:this,__source:{fileName:_jsxFileName,lineNumber:292,columnNumber:19}}),_react.default.createElement(Corner,{style:{bottom:0,left:0,borderBottomWidth:CORNER_WIDTH,borderLeftWidth:CORNER_WIDTH,borderColor:BORDER_COLOR},__self:this,__source:{fileName:_jsxFileName,lineNumber:302,columnNumber:19}}),_react.default.createElement(Corner,{style:{bottom:0,right:0,borderBottomWidth:CORNER_WIDTH,borderRightWidth:CORNER_WIDTH,borderColor:BORDER_COLOR},__self:this,__source:{fileName:_jsxFileName,lineNumber:312,columnNumber:19}})),_react.default.createElement(_reactNative.View,{style:$darkOverlaySide,__self:this,__source:{fileName:_jsxFileName,lineNumber:322,columnNumber:17}})),_react.default.createElement(_reactNative.View,{style:$darkOverlayBottom,__self:this,__source:{fileName:_jsxFileName,lineNumber:324,columnNumber:15}}))),_react.default.createElement(_reactNative.View,{style:{position:'absolute',bottom:20,left:0,right:0,zIndex:1000},__self:this,__source:{fileName:_jsxFileName,lineNumber:328,columnNumber:11}},!taking&&_react.default.createElement(_react.default.Fragment,null,_react.default.createElement(_MText.MText,{style:{color:'white',textAlign:'center',fontSize:14},__self:this,__source:{fileName:_jsxFileName,lineNumber:361,columnNumber:17}},"Vui l\xF2ng \u0111\u1EB7t gi\u1EA5y t\u1EDD n\u1EB1m v\u1EEBa khung h\xECnh ch\u1EEF nh\u1EADt,",'\n',"ch\u1EE5p \u0111\u1EE7 \xE1nh s\xE1ng v\xE0 r\xF5 n\xE9t."),_react.default.createElement(_reactNative.View,{style:{alignItems:'center',marginVertical:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:371,columnNumber:17}},_react.default.createElement(_MButton.default,{onPress:function onPress(){takePhoto();},__self:this,__source:{fileName:_jsxFileName,lineNumber:377,columnNumber:19}},_react.default.createElement(_icons.TakePhotoSvg,{__self:this,__source:{fileName:_jsxFileName,lineNumber:382,columnNumber:21}}))))),_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.fill,{position:'absolute',width:'100%',height:'100%'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:388,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.row,_CommonStyles.commonStyles.alignCenter,{paddingVertical:16,marginTop:insets.top}],__self:this,__source:{fileName:_jsxFileName,lineNumber:394,columnNumber:13}},_react.default.createElement(_MButton.default,{onPress:function onPress(){navigation.goBack();},style:[{width:48,height:48,zIndex:1000,position:'absolute',left:16,top:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:401,columnNumber:15}},_react.default.createElement(_icons.IconBackWhite,{__self:this,__source:{fileName:_jsxFileName,lineNumber:416,columnNumber:17}})),_react.default.createElement(_reactNative.View,{style:{flex:1,alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:418,columnNumber:15}},_react.default.createElement(_MText.MText,{style:$title,__self:this,__source:{fileName:_jsxFileName,lineNumber:419,columnNumber:17}},"\u0110\u0102NG K\xDD XE"))),_react.default.createElement(_MText.MText,{style:{color:'white',textAlign:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:422,columnNumber:13}},title))):_react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:433,columnNumber:9}}),_react.default.createElement(_reactNativeModal.default,{isVisible:showModal,style:$modal,backdropTransitionInTiming:0,animationOutTiming:200,animationInTiming:200,animationIn:'slideInUp',animationOut:'fadeOutDown',useNativeDriverForBackdrop:true,useNativeDriver:true,__self:this,__source:{fileName:_jsxFileName,lineNumber:435,columnNumber:7}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:$container,__self:this,__source:{fileName:_jsxFileName,lineNumber:446,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:$paddingV,__self:this,__source:{fileName:_jsxFileName,lineNumber:447,columnNumber:11}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setShowModal(false);setTimeout(function(){navigation.goBack();},100);},style:{width:24,height:24,position:'absolute',left:16,top:24,alignItems:'center',zIndex:10000},__self:this,__source:{fileName:_jsxFileName,lineNumber:448,columnNumber:13}},_react.default.createElement(_icons.CloseIcon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:465,columnNumber:15}})),_react.default.createElement(_MText.MText,{style:$title,__self:this,__source:{fileName:_jsxFileName,lineNumber:467,columnNumber:13}},"\u0110\u0102NG K\xDD XE"),_react.default.createElement(_MText.MText,{style:$description,__self:this,__source:{fileName:_jsxFileName,lineNumber:468,columnNumber:13}},"Ch\u1EE5p \u1EA3nh 2 m\u1EB7t \u0111\u0103ng k\xFD xe"),_react.default.createElement(_reactNative.Image,{source:require('../../assets/tts/vehicleStep.png'),style:$step,__self:this,__source:{fileName:_jsxFileName,lineNumber:470,columnNumber:13}}),_react.default.createElement(_reactNative.View,{style:$bg,__self:this,__source:{fileName:_jsxFileName,lineNumber:475,columnNumber:13}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'column',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:476,columnNumber:15}},_react.default.createElement(_reactNative.Image,{source:require('../../assets/tts/vehicleRegistration.png'),style:{width:'60%',height:120,resizeMode:'contain',marginVertical:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:482,columnNumber:17}}),_react.default.createElement(_MText.MText,{style:$title2,__self:this,__source:{fileName:_jsxFileName,lineNumber:491,columnNumber:17}},"B\u1EA1n vui l\xF2ng ch\u1EE5p \u1EA3nh",'\n',"\u0110\u0103ng k\xFD xe theo h\u01B0\u1EDBng d\u1EABn:")),_react.default.createElement(_reactNative.View,{style:{marginTop:10,paddingHorizontal:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:496,columnNumber:15}},_react.default.createElement(_reactNative.View,{style:$row,__self:this,__source:{fileName:_jsxFileName,lineNumber:497,columnNumber:17}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:498,columnNumber:19}}),_react.default.createElement(_MText.MText,{style:$txt,__self:this,__source:{fileName:_jsxFileName,lineNumber:499,columnNumber:19}},"N\xEAn \u0111\u1EB7t \u0111\u0103ng k\xFD xe l\xEAn m\u1EB7t ph\u1EB3ng \u0111\u1EC3 ch\u1EE5p")),_react.default.createElement(_reactNative.View,{style:$row,__self:this,__source:{fileName:_jsxFileName,lineNumber:503,columnNumber:17}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:504,columnNumber:19}}),_react.default.createElement(_MText.MText,{style:$txt,__self:this,__source:{fileName:_jsxFileName,lineNumber:505,columnNumber:19}},"\u0110\u1EB7t \u0110\u0103ng k\xFD xe n\u1EB1m g\u1ECDn trong khung h\xECnh (Kh\xF4ng ",'\n'," qu\xE1 nh\u1ECF hay qu\xE1 to l\xE0m m\u1EA5t chi ti\u1EBFt)")),_react.default.createElement(_reactNative.View,{style:$row,__self:this,__source:{fileName:_jsxFileName,lineNumber:510,columnNumber:17}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:511,columnNumber:19}}),_react.default.createElement(_MText.MText,{style:$txt,__self:this,__source:{fileName:_jsxFileName,lineNumber:512,columnNumber:19}},"Ch\u1ECDn n\u01A1i \xE1nh s\xE1ng t\u1ED1t, tr\xE1nh l\xF3a/ ch\xF3i h\xECnh ch\u1EE5p")),_react.default.createElement(_reactNative.Image,{source:require('../../assets/tts/1000009872.png'),style:{width:'100%',height:100,resizeMode:'contain',marginTop:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:516,columnNumber:17}})),_react.default.createElement(_MButton.default,{onPress:function onPress(){setShowModal(false);(0,_storage.save)(_storage.OCR_V2,true);},style:{margin:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:527,columnNumber:15}},_react.default.createElement(_reactNativeLinearGradient.default,{start:{x:1,y:0},end:{x:0,y:1},style:{height:40,marginVertical:16,borderRadius:30,alignItems:'center',justifyContent:'center'},colors:['#FF7A00','#EF4123'],__self:this,__source:{fileName:_jsxFileName,lineNumber:536,columnNumber:17}},_react.default.createElement(_MText.MText,{style:$title,__self:this,__source:{fileName:_jsxFileName,lineNumber:548,columnNumber:19}},"Ti\u1EBFp t\u1EE5c"))))))));}var CORNER_SIZE=20;var CORNER_WIDTH=2;var BORDER_COLOR='#FDFDFD';var Corner=function Corner(_ref){var style=_ref.style;return _react.default.createElement(_reactNative.View,{style:[style,{position:'absolute',width:CORNER_SIZE,height:CORNER_SIZE}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:564,columnNumber:3}});};var overlayColor='rgba(22, 22, 22, 0.7)';var $overlay=(0,_extends2.default)({},_reactNative.StyleSheet.absoluteFillObject,{justifyContent:'center',alignItems:'center'});var $darkOverlayTop={width:'100%',flex:1,backgroundColor:overlayColor};var $darkOverlayBottom={width:'100%',flex:1,backgroundColor:overlayColor};var $darkOverlaySide={flex:1,height:frameHeight,backgroundColor:overlayColor};var $frameBorder={width:frameWidth,height:frameHeight};var $overlayRow={width:'100%',height:frameHeight,flexDirection:'row',alignItems:'center'};var $row={flexDirection:'row',alignItems:'center',marginTop:5};var $txt={fontSize:12,marginLeft:5};var $bg={backgroundColor:'white',borderTopRightRadius:26,borderTopLeftRadius:26};var $step={height:40,width:'100%',resizeMode:'contain',marginTop:10,marginBottom:10};var $paddingV={paddingTop:16};var $title={fontSize:16,color:'white',fontWeight:'bold',textAlign:'center'};var $title2={fontSize:16,color:'#333333',fontWeight:'bold',textAlign:'center'};var $description={fontSize:12,color:'white',textAlign:'center'};var $flex={flex:1};var $modal={justifyContent:'flex-end',margin:0};var $container={borderTopRightRadius:26,borderTopLeftRadius:26};
|
|
2
2
|
//# sourceMappingURL=VehicleCamera.js.map
|
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
// @ts-nocheck
|
|
2
2
|
import React, { useEffect, useRef, useState } from 'react';
|
|
3
3
|
import {
|
|
4
|
-
|
|
4
|
+
Alert,
|
|
5
5
|
Dimensions,
|
|
6
6
|
Image,
|
|
7
7
|
ImageStyle,
|
|
8
8
|
Platform,
|
|
9
|
-
SafeAreaView,
|
|
10
9
|
StyleSheet,
|
|
11
10
|
TextStyle,
|
|
12
11
|
TouchableOpacity,
|
|
13
12
|
View,
|
|
14
13
|
ViewStyle,
|
|
15
14
|
} from 'react-native';
|
|
16
|
-
import {
|
|
17
|
-
CommonActions,
|
|
18
|
-
useNavigation,
|
|
19
|
-
useIsFocused,
|
|
20
|
-
} from '@react-navigation/native';
|
|
15
|
+
import { useNavigation, useIsFocused } from '@react-navigation/native';
|
|
21
16
|
import Modal from 'react-native-modal';
|
|
22
17
|
import { MText } from '../../components/MText';
|
|
23
18
|
import LinearGradient from 'react-native-linear-gradient';
|
|
@@ -41,14 +36,14 @@ import { load, OCR_V2, save } from '../../utils/storage';
|
|
|
41
36
|
import { IconUpload } from '../../assets/svgs';
|
|
42
37
|
import ImagePicker from 'react-native-image-crop-picker';
|
|
43
38
|
import { launchImageLibrary } from 'react-native-image-picker';
|
|
39
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
44
40
|
|
|
45
|
-
const { width: screenWidth
|
|
41
|
+
const { width: screenWidth } = Dimensions.get('window');
|
|
46
42
|
const frameWidth = screenWidth * 0.85;
|
|
47
43
|
const frameHeight = frameWidth * 0.63; // tỷ lệ giống CCCD
|
|
48
|
-
const frameLeft = (screenWidth - frameWidth) / 2;
|
|
49
|
-
const frameTop = ((screenWidth * 4) / 3 - frameHeight) / 2;
|
|
50
44
|
|
|
51
45
|
export default function VehicleCamera(props: any) {
|
|
46
|
+
const insets = useSafeAreaInsets();
|
|
52
47
|
const isFocused = useIsFocused();
|
|
53
48
|
const [cameraKey, setCameraKey] = useState(0);
|
|
54
49
|
|
|
@@ -276,15 +271,14 @@ export default function VehicleCamera(props: any) {
|
|
|
276
271
|
buttonPositive: 'Ok',
|
|
277
272
|
buttonNegative: 'Cancel',
|
|
278
273
|
}}
|
|
279
|
-
quality={0.
|
|
274
|
+
quality={0.9}
|
|
280
275
|
pictureSize="1280x720"
|
|
281
276
|
>
|
|
282
277
|
<View style={$overlay}>
|
|
283
278
|
<View style={$darkOverlayTop} />
|
|
284
|
-
<View style={$
|
|
279
|
+
<View style={$overlayRow}>
|
|
285
280
|
<View style={$darkOverlaySide} />
|
|
286
281
|
<View style={$frameBorder}>
|
|
287
|
-
{/* Top Left */}
|
|
288
282
|
<Corner
|
|
289
283
|
style={{
|
|
290
284
|
top: 0,
|
|
@@ -295,7 +289,6 @@ export default function VehicleCamera(props: any) {
|
|
|
295
289
|
}}
|
|
296
290
|
/>
|
|
297
291
|
|
|
298
|
-
{/* Top Right */}
|
|
299
292
|
<Corner
|
|
300
293
|
style={{
|
|
301
294
|
top: 0,
|
|
@@ -306,7 +299,6 @@ export default function VehicleCamera(props: any) {
|
|
|
306
299
|
}}
|
|
307
300
|
/>
|
|
308
301
|
|
|
309
|
-
{/* Bottom Left */}
|
|
310
302
|
<Corner
|
|
311
303
|
style={{
|
|
312
304
|
bottom: 0,
|
|
@@ -317,7 +309,6 @@ export default function VehicleCamera(props: any) {
|
|
|
317
309
|
}}
|
|
318
310
|
/>
|
|
319
311
|
|
|
320
|
-
{/* Bottom Right */}
|
|
321
312
|
<Corner
|
|
322
313
|
style={{
|
|
323
314
|
bottom: 0,
|
|
@@ -394,7 +385,7 @@ export default function VehicleCamera(props: any) {
|
|
|
394
385
|
</>
|
|
395
386
|
)}
|
|
396
387
|
</View>
|
|
397
|
-
<
|
|
388
|
+
<View
|
|
398
389
|
style={[
|
|
399
390
|
commonStyles.fill,
|
|
400
391
|
{ position: 'absolute', width: '100%', height: '100%' },
|
|
@@ -404,7 +395,7 @@ export default function VehicleCamera(props: any) {
|
|
|
404
395
|
style={[
|
|
405
396
|
commonStyles.row,
|
|
406
397
|
commonStyles.alignCenter,
|
|
407
|
-
{ paddingVertical: 16 },
|
|
398
|
+
{ paddingVertical: 16, marginTop: insets.top },
|
|
408
399
|
]}
|
|
409
400
|
>
|
|
410
401
|
<MButton
|
|
@@ -436,7 +427,7 @@ export default function VehicleCamera(props: any) {
|
|
|
436
427
|
>
|
|
437
428
|
{title}
|
|
438
429
|
</MText>
|
|
439
|
-
</
|
|
430
|
+
</View>
|
|
440
431
|
</View>
|
|
441
432
|
) : (
|
|
442
433
|
<View></View>
|
|
@@ -592,17 +583,17 @@ const $overlay: ViewStyle = {
|
|
|
592
583
|
|
|
593
584
|
const $darkOverlayTop: ViewStyle = {
|
|
594
585
|
width: '100%',
|
|
595
|
-
|
|
586
|
+
flex: 1,
|
|
596
587
|
backgroundColor: overlayColor,
|
|
597
588
|
};
|
|
598
589
|
|
|
599
590
|
const $darkOverlayBottom: ViewStyle = {
|
|
600
591
|
width: '100%',
|
|
601
|
-
|
|
592
|
+
flex: 1,
|
|
602
593
|
backgroundColor: overlayColor,
|
|
603
594
|
};
|
|
604
595
|
const $darkOverlaySide: ViewStyle = {
|
|
605
|
-
|
|
596
|
+
flex: 1,
|
|
606
597
|
height: frameHeight,
|
|
607
598
|
backgroundColor: overlayColor,
|
|
608
599
|
};
|
|
@@ -611,6 +602,13 @@ const $frameBorder: ViewStyle = {
|
|
|
611
602
|
height: frameHeight,
|
|
612
603
|
};
|
|
613
604
|
|
|
605
|
+
const $overlayRow: ViewStyle = {
|
|
606
|
+
width: '100%',
|
|
607
|
+
height: frameHeight,
|
|
608
|
+
flexDirection: 'row',
|
|
609
|
+
alignItems: 'center',
|
|
610
|
+
};
|
|
611
|
+
|
|
614
612
|
const $row: ViewStyle = {
|
|
615
613
|
flexDirection: 'row',
|
|
616
614
|
alignItems: 'center',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_native","_reactNativeModal","_interopRequireDefault","_MText","_reactNativeLinearGradient","_icons","_MButton","_reactNativePermissions","_reactNativeCamera","_CommonStyles","_navigation","_storage","_reactNativeImageCropPicker","_reactNativeImagePicker","_jsxFileName","_this","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_Dimensions$get","Dimensions","screenWidth","width","screenHeight","height","frameWidth","frameHeight","frameLeft","frameTop","VehicleCamera","props","_props$route","_props$route$params","isFocused","useIsFocused","_useState","useState","_useState2","_slicedToArray2","cameraKey","setCameraKey","useEffect","prev","_useState3","_useState4","shouldRenderCamera","setShouldRenderCamera","navigation","useNavigation","_useState5","_useState6","showModal","setShowModal","_useState7","route","params","front","_useState8","title","setTitle","_useState9","_useState10","taking","setTaking","_useState11","_useState12","passPermission","setPassPermission","myCamera","useRef","takePhoto","_callee","_props$route2","_props$route2$params","_props$route4","_props$route4$params","options","data","_props$route3","_props$route3$params","_props$route5","_props$route5$params","_props$route6","_props$route6$params","_regenerator","async","_callee$","_context","next","base64","pauseAfterCapture","fixOrientation","forceUpOrientation","orientation","RNCamera","Constants","Orientation","portrait","awrap","current","takePictureAsync","sent","push","ScreenNames","VehicleRegistrationFront","uri","loan","callback","goBack","VehicleRegistrationBack","stop","Promise","requestPermissions","request","Platform","OS","PERMISSIONS","IOS","CAMERA","ANDROID","then","result","RESULTS","UNAVAILABLE","console","log","Alert","alert","text","DENIED","onPress","openSettings","LIMITED","GRANTED","BLOCKED","loadIntro","_callee2","intro","_callee2$","_context2","load","OCR_V2","timeout","setTimeout","clearTimeout","pickImageFromGallery","_callee3","_props$route7","_props$route7$params","_props$route9","_props$route9$params","_result$assets$","_props$route8","_props$route8$params","_props$route10","_props$route10$params","_result$assets$2","_result$assets$3","_props$route11","_props$route11$params","_callee3$","_context3","launchImageLibrary","mediaType","assets","ImagePicker","openPicker","image","_props$route12","_props$route12$params","_props$route14","_props$route14$params","_props$route13","_props$route13$params","path","_props$route15","_props$route15$params","_props$route16","_props$route16$params","createElement","View","style","$flex","backgroundColor","pointerEvents","__self","__source","fileName","lineNumber","columnNumber","flex","key","ref","defaultVideoQuality","VideoQuality","maxZoom","androidCameraPermissionOptions","message","buttonPositive","buttonNegative","quality","pictureSize","$overlay","$darkOverlayTop","$row","$darkOverlaySide","$frameBorder","Corner","top","left","borderTopWidth","CORNER_WIDTH","borderLeftWidth","borderColor","BORDER_COLOR","right","borderRightWidth","bottom","borderBottomWidth","$darkOverlayBottom","position","zIndex","Fragment","MText","color","textAlign","fontSize","alignItems","marginVertical","TakePhotoSvg","SafeAreaView","commonStyles","fill","row","alignCenter","paddingVertical","IconBackWhite","$title","isVisible","$modal","backdropTransitionInTiming","animationOutTiming","animationInTiming","animationIn","animationOut","useNativeDriverForBackdrop","useNativeDriver","colors","$container","$paddingV","TouchableOpacity","CloseIcon","$description","Image","source","$step","$bg","flexDirection","resizeMode","$title2","marginTop","paddingHorizontal","TimaSmall","$txt","save","margin","start","x","y","end","borderRadius","justifyContent","CORNER_SIZE","_ref","overlayColor","_extends2","StyleSheet","absoluteFillObject","marginLeft","borderTopRightRadius","borderTopLeftRadius","marginBottom","paddingTop","fontWeight"],"sourceRoot":"../../../../src","sources":["screens/toan-trinh-so/VehicleCamera.tsx"],"mappings":"qaACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAaA,IAAAE,OAAA,CAAAF,OAAA,6BAKA,IAAAG,iBAAA,CAAAC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,CAAG,CACxBX,QAAQ,CAAE,EAAE,CACZF,KAAK,CAAE,OAAO,CACd2D,UAAU,CAAE,MAAM,CAClB1D,SAAS,CAAE,QACb,CAAC,CAED,GAAM,CAAAkC,OAAkB,CAAG,CACzBjC,QAAQ,CAAE,EAAE,CACZF,KAAK,CAAE,SAAS,CAChB2D,UAAU,CAAE,MAAM,CAClB1D,SAAS,CAAE,QACb,CAAC,CAED,GAAM,CAAA2B,YAAuB,CAAG,CAC9B1B,QAAQ,CAAE,EAAE,CACZF,KAAK,CAAE,OAAO,CACdC,SAAS,CAAE,QACb,CAAC,CAED,GAAM,CAAA3C,KAAgB,CAAG,CACvBQ,IAAI,CAAE,CACR,CAAC,CAED,GAAM,CAAAiD,MAAiB,CAAG,CACxBgC,cAAc,CAAE,UAAU,CAC1BN,MAAM,CAAE,CACV,CAAC,CAED,GAAM,CAAAjB,UAAqB,CAAG,CAC5B+B,oBAAoB,CAAE,EAAE,CACxBC,mBAAmB,CAAE,EACvB,CAAC"}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_native","_reactNativeModal","_interopRequireDefault","_MText","_reactNativeLinearGradient","_icons","_MButton","_reactNativePermissions","_reactNativeCamera","_CommonStyles","_navigation","_storage","_reactNativeImageCropPicker","_reactNativeImagePicker","_reactNativeSafeAreaContext","_jsxFileName","_this","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_Dimensions$get","Dimensions","screenWidth","width","frameWidth","frameHeight","VehicleCamera","props","_props$route","_props$route$params","insets","useSafeAreaInsets","isFocused","useIsFocused","_useState","useState","_useState2","_slicedToArray2","cameraKey","setCameraKey","useEffect","prev","_useState3","_useState4","shouldRenderCamera","setShouldRenderCamera","navigation","useNavigation","_useState5","_useState6","showModal","setShowModal","_useState7","route","params","front","_useState8","title","setTitle","_useState9","_useState10","taking","setTaking","_useState11","_useState12","passPermission","setPassPermission","myCamera","useRef","takePhoto","_callee","_props$route2","_props$route2$params","_props$route4","_props$route4$params","options","data","_props$route3","_props$route3$params","_props$route5","_props$route5$params","_props$route6","_props$route6$params","_regenerator","async","_callee$","_context","next","base64","pauseAfterCapture","fixOrientation","forceUpOrientation","orientation","RNCamera","Constants","Orientation","portrait","awrap","current","takePictureAsync","sent","push","ScreenNames","VehicleRegistrationFront","uri","loan","callback","goBack","VehicleRegistrationBack","stop","Promise","requestPermissions","request","Platform","OS","PERMISSIONS","IOS","CAMERA","ANDROID","then","result","RESULTS","UNAVAILABLE","console","log","Alert","alert","text","DENIED","onPress","openSettings","LIMITED","GRANTED","BLOCKED","loadIntro","_callee2","intro","_callee2$","_context2","load","OCR_V2","timeout","setTimeout","clearTimeout","pickImageFromGallery","_callee3","_props$route7","_props$route7$params","_props$route9","_props$route9$params","_result$assets$","_props$route8","_props$route8$params","_props$route10","_props$route10$params","_result$assets$2","_result$assets$3","_props$route11","_props$route11$params","_callee3$","_context3","launchImageLibrary","mediaType","assets","ImagePicker","openPicker","image","_props$route12","_props$route12$params","_props$route14","_props$route14$params","_props$route13","_props$route13$params","path","_props$route15","_props$route15$params","_props$route16","_props$route16$params","createElement","View","style","$flex","backgroundColor","pointerEvents","__self","__source","fileName","lineNumber","columnNumber","flex","key","ref","defaultVideoQuality","VideoQuality","maxZoom","androidCameraPermissionOptions","message","buttonPositive","buttonNegative","quality","pictureSize","$overlay","$darkOverlayTop","$overlayRow","$darkOverlaySide","$frameBorder","Corner","top","left","borderTopWidth","CORNER_WIDTH","borderLeftWidth","borderColor","BORDER_COLOR","right","borderRightWidth","bottom","borderBottomWidth","$darkOverlayBottom","position","zIndex","Fragment","MText","color","textAlign","fontSize","alignItems","marginVertical","TakePhotoSvg","commonStyles","fill","height","row","alignCenter","paddingVertical","marginTop","IconBackWhite","$title","isVisible","$modal","backdropTransitionInTiming","animationOutTiming","animationInTiming","animationIn","animationOut","useNativeDriverForBackdrop","useNativeDriver","colors","$container","$paddingV","TouchableOpacity","CloseIcon","$description","Image","source","$step","$bg","flexDirection","resizeMode","$title2","paddingHorizontal","$row","TimaSmall","$txt","save","margin","start","x","y","end","borderRadius","justifyContent","CORNER_SIZE","_ref","overlayColor","_extends2","StyleSheet","absoluteFillObject","marginLeft","borderTopRightRadius","borderTopLeftRadius","marginBottom","paddingTop","fontWeight"],"sourceRoot":"../../../../src","sources":["screens/toan-trinh-so/VehicleCamera.tsx"],"mappings":"qaACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAYA,IAAAE,OAAA,CAAAF,OAAA,6BACA,IAAAG,iBAAA,CAAAC,sBAAA,CAAAJ,OAAA,wBACA,IAAAK,MAAA,CAAAL,OAAA,2BACA,IAAAM,0BAAA,CAAAF,sBAAA,CAAAJ,OAAA,kCACA,IAAAO,MAAA,CAAAP,OAAA,uBAMA,IAAAQ,QAAA,CAAAJ,sBAAA,CAAAJ,OAAA,8BACA,IAAAS,uBAAA,CAAAT,OAAA,6BAMA,IAAAU,kBAAA,CAAAV,OAAA,wBACA,IAAAW,aAAA,CAAAX,OAAA,oBACA,IAAAY,WAAA,CAAAZ,OAAA,qBACA,IAAAa,QAAA,CAAAb,OAAA,wBAEA,IAAAc,2BAAA,CAAAV,sBAAA,CAAAJ,OAAA,oCACA,IAAAe,uBAAA,CAAAf,OAAA,8BACA,IAAAgB,2BAAA,CAAAhB,OAAA,mCAAmE,IAAAiB,YAAA,2FAAAC,KAAA,eAAAC,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,YAAArB,wBAAAqB,CAAA,CAAAE,CAAA,MAAAA,CAAA,EAAAF,CAAA,EAAAA,CAAA,CAAAI,UAAA,QAAAJ,CAAA,WAAAA,C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Q,CAAE,EAAE,CACZqD,UAAU,CAAE,CACd,CAAC,CACD,GAAM,CAAAtB,GAAc,CAAG,CACrB1E,eAAe,CAAE,OAAO,CACxBiG,oBAAoB,CAAE,EAAE,CACxBC,mBAAmB,CAAE,EACvB,CAAC,CAED,GAAM,CAAAzB,KAAiB,CAAG,CACxBxB,MAAM,CAAE,EAAE,CACVhN,KAAK,CAAE,MAAM,CACb2O,UAAU,CAAE,SAAS,CACrBvB,SAAS,CAAE,EAAE,CACb8C,YAAY,CAAE,EAChB,CAAC,CAED,GAAM,CAAAhC,SAAoB,CAAG,CAC3BiC,UAAU,CAAE,EACd,CAAC,CAED,GAAM,CAAA7C,MAAiB,CAAG,CACxBZ,QAAQ,CAAE,EAAE,CACZF,KAAK,CAAE,OAAO,CACd4D,UAAU,CAAE,MAAM,CAClB3D,SAAS,CAAE,QACb,CAAC,CAED,GAAM,CAAAmC,OAAkB,CAAG,CACzBlC,QAAQ,CAAE,EAAE,CACZF,KAAK,CAAE,SAAS,CAChB4D,UAAU,CAAE,MAAM,CAClB3D,SAAS,CAAE,QACb,CAAC,CAED,GAAM,CAAA4B,YAAuB,CAAG,CAC9B3B,QAAQ,CAAE,EAAE,CACZF,KAAK,CAAE,OAAO,CACdC,SAAS,CAAE,QACb,CAAC,CAED,GAAM,CAAA3C,KAAgB,CAAG,CACvBQ,IAAI,CAAE,CACR,CAAC,CAED,GAAM,CAAAkD,MAAiB,CAAG,CACxBgC,cAAc,CAAE,UAAU,CAC1BN,MAAM,CAAE,CACV,CAAC,CAED,GAAM,CAAAjB,UAAqB,CAAG,CAC5B+B,oBAAoB,CAAE,EAAE,CACxBC,mBAAmB,CAAE,EACvB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=DigitalTopupItem;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _svgs=require("../../assets/svgs");var _utils=require("../../utils");var _MText=require("../../components/MText");var _reactNativeModal=_interopRequireDefault(require("react-native-modal"));var _digital_topup=require("../../assets/digital_topup");var _theme=require("../../theme");var _navigation=require("../../navigation");var _icons=require("../../assets/icons");var _api=require("../../services/api");var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/screens/home/DigitalTopupItem.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 DigitalTopupItem(_ref){var item=_ref.item,navigation=_ref.navigation,callback=_ref.callback;var _React$useState=_react.default.useState(false),_React$useState2=(0,_slicedToArray2.default)(_React$useState,2),showModal=_React$useState2[0],setShowModal=_React$useState2[1];var _React$useState3=_react.default.useState(false),_React$useState4=(0,_slicedToArray2.default)(_React$useState3,2),showModalInfo=_React$useState4[0],setShowModalInfo=_React$useState4[1];var _React$useState5=_react.default.useState(false),_React$useState6=(0,_slicedToArray2.default)(_React$useState5,2),isLoading=_React$useState6[0],setIsLoading=_React$useState6[1];(0,_react.useEffect)(function(){if(item&&(item==null?void 0:item.isPopupSuggestTopup)===true){setShowModalInfo(true);}},[item]);var onConfirm=function _callee(typeId){var _response$data,_response$data$meta,response;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().confirmLoanDigitalTopup({loanBriefId:item==null?void 0:item.id,typeId:typeId}));case 4:response=_context.sent;if((response==null?void 0:response.kind)==='ok'&&(response==null?void 0:(_response$data=response.data)==null?void 0:(_response$data$meta=_response$data.meta)==null?void 0:_response$data$meta.errorCode)===200){setShowModalInfo(false);if(callback){callback();}}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage||'Có lỗi xảy ra, vui lòng thử lại sau!');}_context.next=11;break;case 8:_context.prev=8;_context.t0=_context["catch"](0);_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra, vui lòng thử lại sau!');case 11:_context.prev=11;setIsLoading(false);return _context.finish(11);case 14:case"end":return _context.stop();}},null,null,[[0,8,11,14]],Promise);};return _react.default.createElement(_react.default.Fragment,null,_react.default.createElement(_reactNative.View,{style:{backgroundColor:'#FFFFFF',paddingHorizontal:16,marginBottom:16,borderRadius:8,borderWidth:0.5,borderColor:'#E0E0E0'},__self:this,__source:{fileName:_jsxFileName,lineNumber:83,columnNumber:7}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{borderTopLeftRadius:8,borderTopRightRadius:8,marginHorizontal:-16},__self:this,__source:{fileName:_jsxFileName,lineNumber:93,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',alignItems:'center',paddingHorizontal:16,paddingVertical:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:101,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:110,columnNumber:13}},_react.default.createElement(_svgs.IconMoney2,{__self:this,__source:{fileName:_jsxFileName,lineNumber:117,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:118,columnNumber:15}},"HD-",item==null?void 0:item.id)),_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'white',fontWeight:'bold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:127,columnNumber:13}},(0,_utils.formatMoney)(item==null?void 0:item.loanAmount),"\u0111"))),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:139,columnNumber:9}},_react.default.createElement(_reactNative.TouchableOpacity,{disabled:(item==null?void 0:item.step)===3?false:true,style:$action,onPress:function onPress(){navigation.push(_navigation.ScreenNames.ReviewLoan,{loan:item});},__self:this,__source:{fileName:_jsxFileName,lineNumber:146,columnNumber:11}},(item==null?void 0:item.step)<3?_react.default.createElement(_digital_topup.IconStep1Disable,{__self:this,__source:{fileName:_jsxFileName,lineNumber:156,columnNumber:15}}):(item==null?void 0:item.step)===3?_react.default.createElement(_digital_topup.IconStep1,{__self:this,__source:{fileName:_jsxFileName,lineNumber:158,columnNumber:15}}):_react.default.createElement(_digital_topup.IconStep1Success,{__self:this,__source:{fileName:_jsxFileName,lineNumber:160,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{textAlign:'center',fontSize:10,marginTop:5,color:(item==null?void 0:item.step)<3?'#999999':(item==null?void 0:item.step)===3?'#EF592E':'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:162,columnNumber:13}},"Th\xF4ng tin",'\n',"kho\u1EA3n vay")),_react.default.createElement(_reactNative.TouchableOpacity,{style:$action,disabled:(item==null?void 0:item.step)===4||(item==null?void 0:item.step)===5||(item==null?void 0:item.step)===6?false:true,onPress:function onPress(){if((item==null?void 0:item.step)===4){navigation.push(_navigation.ScreenNames.OCR,{loan:item,front:true});}else if((item==null?void 0:item.step)===5){if((item==null?void 0:item.typeLoan)===5){navigation.push(_navigation.ScreenNames.ReviewInformation,{loan:item});}else{navigation.push(_navigation.ScreenNames.TopupLoanInfo,{loan:item});}}else if((item==null?void 0:item.step)===6){navigation.push(_navigation.ScreenNames.ReviewInformationOther,{loan:item});}},__self:this,__source:{fileName:_jsxFileName,lineNumber:178,columnNumber:11}},(item==null?void 0:item.step)<4?_react.default.createElement(_digital_topup.IconStep2Disable,{__self:this,__source:{fileName:_jsxFileName,lineNumber:209,columnNumber:15}}):(item==null?void 0:item.step)===4||(item==null?void 0:item.step)===5||(item==null?void 0:item.step)===6?_react.default.createElement(_digital_topup.IconStep2,{__self:this,__source:{fileName:_jsxFileName,lineNumber:211,columnNumber:15}}):_react.default.createElement(_digital_topup.IconStep2Success,{__self:this,__source:{fileName:_jsxFileName,lineNumber:213,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{textAlign:'center',fontSize:10,marginTop:5,color:(item==null?void 0:item.step)<4?'#999999':(item==null?void 0:item.step)===4||(item==null?void 0:item.step)===5||(item==null?void 0:item.step)===6?'#EF592E':'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:215,columnNumber:13}},"Th\xF4ng tin",'\n',"c\xE1 nh\xE2n")),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:(item==null?void 0:item.step)===9?false:true,style:$action,onPress:function onPress(){navigation.push(_navigation.ScreenNames.LivenessV2,{loan:item});},__self:this,__source:{fileName:_jsxFileName,lineNumber:231,columnNumber:11}},(item==null?void 0:item.step)<9||(item==null?void 0:item.step)===100?_react.default.createElement(_digital_topup.IconStep3Disable,{__self:this,__source:{fileName:_jsxFileName,lineNumber:241,columnNumber:15}}):(item==null?void 0:item.step)===9?_react.default.createElement(_digital_topup.IconStep3,{__self:this,__source:{fileName:_jsxFileName,lineNumber:243,columnNumber:15}}):_react.default.createElement(_digital_topup.IconStep3Success,{__self:this,__source:{fileName:_jsxFileName,lineNumber:245,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{textAlign:'center',fontSize:10,marginTop:5,color:(item==null?void 0:item.step)<9||(item==null?void 0:item.step)===100?'#999999':(item==null?void 0:item.step)===9?'#EF592E':'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:247,columnNumber:13}},"EKYC")),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:(item==null?void 0:item.step)===10?false:true,style:$action,onPress:function onPress(){navigation.push(_navigation.ScreenNames.TTSSignLoan,{loan:item});},__self:this,__source:{fileName:_jsxFileName,lineNumber:263,columnNumber:11}},(item==null?void 0:item.step)<10||(item==null?void 0:item.step)===100?_react.default.createElement(_digital_topup.IconStep4Disable,{__self:this,__source:{fileName:_jsxFileName,lineNumber:273,columnNumber:15}}):(item==null?void 0:item.step)===10?_react.default.createElement(_digital_topup.IconStep4,{__self:this,__source:{fileName:_jsxFileName,lineNumber:275,columnNumber:15}}):_react.default.createElement(_digital_topup.IconStep4Success,{__self:this,__source:{fileName:_jsxFileName,lineNumber:277,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{textAlign:'center',fontSize:10,marginTop:5,color:(item==null?void 0:item.step)<10||(item==null?void 0:item.step)===100?'#999999':(item==null?void 0:item.step)===10?'#EF592E':'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:279,columnNumber:13}},"K\xFD h\u1EE3p",'\n',"\u0111\u1ED3ng"))),(item==null?void 0:item.step)!==11?_react.default.createElement(_reactNative.View,{style:{backgroundColor:'#FFF3E9',flexDirection:'row',alignItems:'center',gap:8,borderRadius:4,paddingHorizontal:8,paddingVertical:10,marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:298,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{fontSize:10,flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:310,columnNumber:13}},"H\u01B0\u1EDBng d\u1EABn c\xE1c b\u01B0\u1EDBc ho\xE0n thi\u1EC7n \u0111\u01A1n vay"),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return setShowModal(true);},__self:this,__source:{fileName:_jsxFileName,lineNumber:318,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{fontSize:10,color:_theme.color.primary,textDecorationLine:'underline'},__self:this,__source:{fileName:_jsxFileName,lineNumber:319,columnNumber:15}},"Xem th\xEAm"))):_react.default.createElement(_reactNative.View,{style:{backgroundColor:'#E8FFE9',flexDirection:'row',alignItems:'center',gap:8,borderRadius:4,paddingHorizontal:8,paddingVertical:10,marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:331,columnNumber:11}},_react.default.createElement(_svgs.IconTick,{__self:this,__source:{fileName:_jsxFileName,lineNumber:343,columnNumber:13}}),_react.default.createElement(_MText.MText,{style:{color:'#28A745',fontSize:10,flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:344,columnNumber:13}},"H\u1EE3p \u0111\u1ED3ng \u0111\xE3 k\xFD th\xE0nh c\xF4ng. Qu\xFD kh\xE1ch vui l\xF2ng ch\u1EDD Chuy\xEAn vi\xEAn t\u01B0 v\u1EA5n li\xEAn h\u1EC7 \u0111\u1EC3 ho\xE0n t\u1EA5t b\u01B0\u1EDBc gi\u1EA3i ng\xE2n.")),(item==null?void 0:item.step)!==11?_react.default.createElement(_reactNative.View,{style:$row,__self:this,__source:{fileName:_jsxFileName,lineNumber:352,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:{flex:1,paddingRight:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:353,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'#999999',fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:354,columnNumber:15}},"Tr\u1EA1ng th\xE1i"),_react.default.createElement(_MText.MText,{style:{fontSize:12,fontWeight:'bold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:362,columnNumber:15}},(item==null?void 0:item.step)<=1?'Chờ cập nhật thông tin tài sản':(item==null?void 0:item.step)===3?"Ch\u1EDD c\u1EADp nh\u1EADt th\xF4ng tin kho\u1EA3n vay":(item==null?void 0:item.step)===4||(item==null?void 0:item.step)===5||(item==null?void 0:item.step)===6?"Ch\u1EDD c\u1EADp nh\u1EADt th\xF4ng tin c\xE1 nh\xE2n":(item==null?void 0:item.step)===9?"Ch\u1EDD c\u1EADp nh\u1EADt eKYC":(item==null?void 0:item.step)===11?"H\u1EE3p \u0111\u1ED3ng \u0111\xE3 k\xFD th\xE0nh c\xF4ng. Vui l\xF2ng ch\u1EDD chuy\xEAn vi\xEAn t\u01B0 v\u1EA5n li\xEAn h\u1EC7":'Đơn vay đang trong quá trình xử lý')),(item==null?void 0:item.step)<=1?_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){if((item==null?void 0:item.typeLoan)===7){navigation.push(_navigation.ScreenNames.LoanBuyCar,{loan:item});}else{if((item==null?void 0:item.step)===0){navigation.push(_navigation.ScreenNames.VehicleCamera,{loan:item,front:true});}else{navigation.push(_navigation.ScreenNames.AssetInformation,{loan:item});}}},__self:this,__source:{fileName:_jsxFileName,lineNumber:382,columnNumber:15}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{height:30,alignItems:'center',justifyContent:'center',borderRadius:24,paddingHorizontal:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:402,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:412,columnNumber:19}},"C\u1EADp nh\u1EADt"))):(item==null?void 0:item.step)===3?_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){if((item==null?void 0:item.step)===3){navigation.push(_navigation.ScreenNames.ReviewLoan,{loan:item});}},__self:this,__source:{fileName:_jsxFileName,lineNumber:423,columnNumber:15}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{height:30,alignItems:'center',justifyContent:'center',borderRadius:24,paddingHorizontal:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:432,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:442,columnNumber:19}},"C\u1EADp nh\u1EADt"))):(item==null?void 0:item.step)===4||(item==null?void 0:item.step)===5||(item==null?void 0:item.step)===6?_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){if((item==null?void 0:item.step)===4){navigation.push(_navigation.ScreenNames.OCR,{loan:item,front:true});}else if((item==null?void 0:item.step)===5){if((item==null?void 0:item.typeLoan)===5){navigation.push(_navigation.ScreenNames.ReviewInformation,{loan:item});}else{navigation.push(_navigation.ScreenNames.TopupLoanInfo,{loan:item});}}else if((item==null?void 0:item.step)===6){navigation.push(_navigation.ScreenNames.ReviewInformationOther,{loan:item});}},__self:this,__source:{fileName:_jsxFileName,lineNumber:453,columnNumber:15}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{height:30,alignItems:'center',justifyContent:'center',borderRadius:24,paddingHorizontal:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:477,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:487,columnNumber:19}},"C\u1EADp nh\u1EADt"))):(item==null?void 0:item.step)===9?_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push(_navigation.ScreenNames.LivenessV2,{loan:item});},__self:this,__source:{fileName:_jsxFileName,lineNumber:498,columnNumber:15}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{height:30,alignItems:'center',justifyContent:'center',borderRadius:24,paddingHorizontal:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:505,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:515,columnNumber:19}},"C\u1EADp nh\u1EADt"))):(item==null?void 0:item.step)===10?_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push(_navigation.ScreenNames.TTSSignLoan,{loan:item});},__self:this,__source:{fileName:_jsxFileName,lineNumber:526,columnNumber:15}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{height:30,alignItems:'center',justifyContent:'center',borderRadius:24,paddingHorizontal:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:533,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:543,columnNumber:19}},"K\xFD h\u1EE3p \u0111\u1ED3ng"))):_react.default.createElement(_react.default.Fragment,null)):_react.default.createElement(_react.default.Fragment,null),(item==null?void 0:item.step)!==11?_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,backgroundColor:'#FFF2F2',marginHorizontal:-16,paddingVertical:10,borderBottomRightRadius:8,borderBottomLeftRadius:8,paddingHorizontal:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:561,columnNumber:11}},_react.default.createElement(_icons.Info,{__self:this,__source:{fileName:_jsxFileName,lineNumber:574,columnNumber:13}}),_react.default.createElement(_MText.MText,{style:[{fontSize:10,color:'#E40010',flex:1}],__self:this,__source:{fileName:_jsxFileName,lineNumber:575,columnNumber:13}},(item==null?void 0:item.step)<=1?'Vui lòng cập nhật thông tin tài sản để được giải ngân sớm nhất!':(item==null?void 0:item.step)===3?"Vui l\xF2ng c\u1EADp nh\u1EADt th\xF4ng tin kho\u1EA3n vay \u0111\u1EC3 \u0111\u01B0\u1EE3c gi\u1EA3i ng\xE2n s\u1EDBm nh\u1EA5t!":(item==null?void 0:item.step)===4||(item==null?void 0:item.step)===5||(item==null?void 0:item.step)===6?"Vui l\xF2ng c\u1EADp nh\u1EADt th\xF4ng tin c\xE1 nh\xE2n \u0111\u1EC3 \u0111\u01B0\u1EE3c gi\u1EA3i ng\xE2n s\u1EDBm nh\u1EA5t!":(item==null?void 0:item.step)===9?"B\u01B0\u1EDBc cu\u1ED1i c\xF9ng r\u1ED3i, vui l\xF2ng k\xFD h\u1EE3p \u0111\u1ED3ng \u0111\u1EC3 \u0111\u01B0\u1EE3c gi\u1EA3i ng\xE2n s\u1EDBm nh\u1EA5t nh\xE9!":'Đơn vay đang trong quá trình xử lý')):_react.default.createElement(_react.default.Fragment,null)),_react.default.createElement(_reactNativeModal.default,{visible:showModalInfo,backdropColor:'rgba(0,0,0,0.5)',backdropOpacity:1,__self:this,__source:{fileName:_jsxFileName,lineNumber:599,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{borderRadius:8,backgroundColor:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:604,columnNumber:9}},_react.default.createElement(_reactNative.Image,{source:require('../../assets/tts/Banner.png'),style:{width:'100%',borderTopLeftRadius:8,borderTopRightRadius:8,height:_reactNative.Dimensions.get('window').height/2*0.7,resizeMode:'cover'},__self:this,__source:{fileName:_jsxFileName,lineNumber:610,columnNumber:11}}),_react.default.createElement(_MText.MText,{style:{fontSize:16,fontWeight:'bold',textAlign:'center',marginVertical:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:620,columnNumber:11}},"Ch\xFAc m\u1EEBng b\u1EA1n!"),_react.default.createElement(_MText.MText,{style:{textAlign:'center',paddingHorizontal:16,color:'#828282'},__self:this,__source:{fileName:_jsxFileName,lineNumber:630,columnNumber:11}},"B\u1EA1n \u0111\xE3 \u0111\u01B0\u1EE3c ph\xEA duy\u1EC7t",' ',_react.default.createElement(_MText.MText,{style:{color:'#EF592E',fontWeight:'bold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:638,columnNumber:13}},item==null?void 0:item.productNameTopup),' ',"v\u1EDBi s\u1ED1 ti\u1EC1n l\xE0",' ',_react.default.createElement(_MText.MText,{style:{color:'#EF592E',fontWeight:'bold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:647,columnNumber:13}},(0,_utils.formatMoney)(item==null?void 0:item.loanAmount)),' ',"VN\u0110! Vui l\xF2ng eKYC - ho\xE0n thi\u1EC7n x\xE1c th\u1EF1c khu\xF4n m\u1EB7t v\xE0 k\xFD h\u1EE3p \u0111\u1ED3ng \u0111\u1EC3 \u0111\u01B0\u1EE3c gi\u1EA3i ng\xE2n"),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:isLoading,onPress:function onPress(){return onConfirm(1);},style:{borderWidth:1,borderColor:'#EF592E',borderRadius:24,paddingHorizontal:16,paddingVertical:10,alignSelf:'center',marginTop:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:658,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'#EF592E'},__self:this,__source:{fileName:_jsxFileName,lineNumber:671,columnNumber:13}},"X\xE1c nh\u1EADn kho\u1EA3n vay")),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:isLoading,onPress:function onPress(){return onConfirm(2);},style:{paddingHorizontal:16,paddingVertical:10,alignSelf:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:680,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'#8E8E93'},__self:this,__source:{fileName:_jsxFileName,lineNumber:689,columnNumber:13}},"T\xF4i c\u1EA7n vay s\u1ED1 ti\u1EC1n kh\xE1c")),_react.default.createElement(_reactNative.View,{style:{backgroundColor:'#EDF6FF',paddingVertical:8,borderBottomLeftRadius:8,borderBottomRightRadius:8,marginTop:16,alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:691,columnNumber:11}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setShowModalInfo(false);setTimeout(function(){navigation.push(_navigation.ScreenNames.LoanInterestRate,{loan:item});},300);},__self:this,__source:{fileName:_jsxFileName,lineNumber:701,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'#2F80ED',fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:711,columnNumber:15}},"B\u1EA3ng bi\u1EC3u l\xE3i ph\xED \u0111\u01A1n vay ","->"))))));}var $action={flexDirection:'column',alignItems:'center',gap:5};var $row={flexDirection:'row',paddingBottom:16,marginTop:16};
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=DigitalTopupItem;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _svgs=require("../../assets/svgs");var _utils=require("../../utils");var _MText=require("../../components/MText");var _reactNativeModal=_interopRequireDefault(require("react-native-modal"));var _digital_topup=require("../../assets/digital_topup");var _theme=require("../../theme");var _navigation=require("../../navigation");var _icons=require("../../assets/icons");var _api=require("../../services/api");var _v=require("../../assets/v3");var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/screens/home/DigitalTopupItem.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 DigitalTopupItem(_ref){var item=_ref.item,navigation=_ref.navigation,callback=_ref.callback;var _React$useState=_react.default.useState(false),_React$useState2=(0,_slicedToArray2.default)(_React$useState,2),showModal=_React$useState2[0],setShowModal=_React$useState2[1];var _React$useState3=_react.default.useState(false),_React$useState4=(0,_slicedToArray2.default)(_React$useState3,2),showModalInfo=_React$useState4[0],setShowModalInfo=_React$useState4[1];var _React$useState5=_react.default.useState(false),_React$useState6=(0,_slicedToArray2.default)(_React$useState5,2),isLoading=_React$useState6[0],setIsLoading=_React$useState6[1];(0,_react.useEffect)(function(){if(item&&(item==null?void 0:item.isPopupSuggestTopup)===true){setShowModalInfo(true);}},[item]);var onConfirm=function _callee(typeId){var _response$data,_response$data$meta,response;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().confirmLoanDigitalTopup({loanBriefId:item==null?void 0:item.id,typeId:typeId}));case 4:response=_context.sent;if((response==null?void 0:response.kind)==='ok'&&(response==null?void 0:(_response$data=response.data)==null?void 0:(_response$data$meta=_response$data.meta)==null?void 0:_response$data$meta.errorCode)===200){setShowModalInfo(false);if(callback){callback();}}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage||'Có lỗi xảy ra, vui lòng thử lại sau!');}_context.next=11;break;case 8:_context.prev=8;_context.t0=_context["catch"](0);_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra, vui lòng thử lại sau!');case 11:_context.prev=11;setIsLoading(false);return _context.finish(11);case 14:case"end":return _context.stop();}},null,null,[[0,8,11,14]],Promise);};return _react.default.createElement(_react.default.Fragment,null,_react.default.createElement(_reactNative.View,{style:{backgroundColor:'#FFFFFF',paddingHorizontal:16,marginBottom:16,borderRadius:8,borderWidth:0.5,borderColor:'#E0E0E0'},__self:this,__source:{fileName:_jsxFileName,lineNumber:95,columnNumber:7}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{borderTopLeftRadius:8,borderTopRightRadius:8,marginHorizontal:-16},__self:this,__source:{fileName:_jsxFileName,lineNumber:105,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',alignItems:'center',paddingHorizontal:16,paddingVertical:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:113,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:122,columnNumber:13}},_react.default.createElement(_svgs.IconMoney2,{__self:this,__source:{fileName:_jsxFileName,lineNumber:129,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:130,columnNumber:15}},"HD-",item==null?void 0:item.id)),_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'white',fontWeight:'bold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:139,columnNumber:13}},(0,_utils.formatMoney)(item==null?void 0:item.loanAmount),"\u0111"))),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:151,columnNumber:9}},_react.default.createElement(_reactNative.TouchableOpacity,{disabled:(item==null?void 0:item.step)===3?false:true,style:$action,onPress:function onPress(){navigation.push(_navigation.ScreenNames.ReviewLoan,{loan:item});},__self:this,__source:{fileName:_jsxFileName,lineNumber:158,columnNumber:11}},(item==null?void 0:item.step)<3?_react.default.createElement(_digital_topup.IconStep1Disable,{__self:this,__source:{fileName:_jsxFileName,lineNumber:168,columnNumber:15}}):(item==null?void 0:item.step)===3?_react.default.createElement(_digital_topup.IconStep1,{__self:this,__source:{fileName:_jsxFileName,lineNumber:170,columnNumber:15}}):_react.default.createElement(_digital_topup.IconStep1Success,{__self:this,__source:{fileName:_jsxFileName,lineNumber:172,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{textAlign:'center',fontSize:10,marginTop:5,color:(item==null?void 0:item.step)<3?'#999999':(item==null?void 0:item.step)===3?'#EF592E':'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:174,columnNumber:13}},"Th\xF4ng tin",'\n',"kho\u1EA3n vay")),_react.default.createElement(_reactNative.TouchableOpacity,{style:$action,disabled:(item==null?void 0:item.step)===4||(item==null?void 0:item.step)===5||(item==null?void 0:item.step)===6?false:true,onPress:function onPress(){if((item==null?void 0:item.step)===4){navigation.push(_navigation.ScreenNames.OCR,{loan:item,front:true});}else if((item==null?void 0:item.step)===5){if((item==null?void 0:item.typeLoan)===5){navigation.push(_navigation.ScreenNames.ReviewInformation,{loan:item});}else{navigation.push(_navigation.ScreenNames.TopupLoanInfo,{loan:item});}}else if((item==null?void 0:item.step)===6){navigation.push(_navigation.ScreenNames.ReviewInformationOther,{loan:item});}},__self:this,__source:{fileName:_jsxFileName,lineNumber:190,columnNumber:11}},(item==null?void 0:item.step)<4?_react.default.createElement(_digital_topup.IconStep2Disable,{__self:this,__source:{fileName:_jsxFileName,lineNumber:221,columnNumber:15}}):(item==null?void 0:item.step)===4||(item==null?void 0:item.step)===5||(item==null?void 0:item.step)===6?_react.default.createElement(_digital_topup.IconStep2,{__self:this,__source:{fileName:_jsxFileName,lineNumber:223,columnNumber:15}}):_react.default.createElement(_digital_topup.IconStep2Success,{__self:this,__source:{fileName:_jsxFileName,lineNumber:225,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{textAlign:'center',fontSize:10,marginTop:5,color:(item==null?void 0:item.step)<4?'#999999':(item==null?void 0:item.step)===4||(item==null?void 0:item.step)===5||(item==null?void 0:item.step)===6?'#EF592E':'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:227,columnNumber:13}},"Th\xF4ng tin",'\n',"c\xE1 nh\xE2n")),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:(item==null?void 0:item.step)===9?false:true,style:$action,onPress:function onPress(){navigation.push(_navigation.ScreenNames.LivenessV2,{loan:item});},__self:this,__source:{fileName:_jsxFileName,lineNumber:243,columnNumber:11}},(item==null?void 0:item.step)<9||(item==null?void 0:item.step)===100?_react.default.createElement(_digital_topup.IconStep3Disable,{__self:this,__source:{fileName:_jsxFileName,lineNumber:253,columnNumber:15}}):(item==null?void 0:item.step)===9?_react.default.createElement(_digital_topup.IconStep3,{__self:this,__source:{fileName:_jsxFileName,lineNumber:255,columnNumber:15}}):_react.default.createElement(_digital_topup.IconStep3Success,{__self:this,__source:{fileName:_jsxFileName,lineNumber:257,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{textAlign:'center',fontSize:10,marginTop:5,color:(item==null?void 0:item.step)<9||(item==null?void 0:item.step)===100?'#999999':(item==null?void 0:item.step)===9?'#EF592E':'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:259,columnNumber:13}},"EKYC")),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:(item==null?void 0:item.step)===10?false:true,style:$action,onPress:function onPress(){navigation.push(_navigation.ScreenNames.TTSSignLoan,{loan:item});},__self:this,__source:{fileName:_jsxFileName,lineNumber:275,columnNumber:11}},(item==null?void 0:item.step)<10||(item==null?void 0:item.step)===100?_react.default.createElement(_digital_topup.IconStep4Disable,{__self:this,__source:{fileName:_jsxFileName,lineNumber:285,columnNumber:15}}):(item==null?void 0:item.step)===10?_react.default.createElement(_digital_topup.IconStep4,{__self:this,__source:{fileName:_jsxFileName,lineNumber:287,columnNumber:15}}):_react.default.createElement(_digital_topup.IconStep4Success,{__self:this,__source:{fileName:_jsxFileName,lineNumber:289,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{textAlign:'center',fontSize:10,marginTop:5,color:(item==null?void 0:item.step)<10||(item==null?void 0:item.step)===100?'#999999':(item==null?void 0:item.step)===10?'#EF592E':'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:291,columnNumber:13}},"K\xFD h\u1EE3p",'\n',"\u0111\u1ED3ng"))),(item==null?void 0:item.step)!==11?_react.default.createElement(_reactNative.View,{style:{backgroundColor:'#FFF3E9',flexDirection:'row',alignItems:'center',gap:8,borderRadius:4,paddingHorizontal:8,paddingVertical:10,marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:310,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{fontSize:10,flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:322,columnNumber:13}},"H\u01B0\u1EDBng d\u1EABn c\xE1c b\u01B0\u1EDBc ho\xE0n thi\u1EC7n \u0111\u01A1n vay"),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return setShowModal(true);},__self:this,__source:{fileName:_jsxFileName,lineNumber:330,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{fontSize:10,color:_theme.color.primary,textDecorationLine:'underline'},__self:this,__source:{fileName:_jsxFileName,lineNumber:331,columnNumber:15}},"Xem th\xEAm"))):_react.default.createElement(_reactNative.View,{style:{backgroundColor:'#E8FFE9',flexDirection:'row',alignItems:'center',gap:8,borderRadius:4,paddingHorizontal:8,paddingVertical:10,marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:343,columnNumber:11}},_react.default.createElement(_svgs.IconTick,{__self:this,__source:{fileName:_jsxFileName,lineNumber:355,columnNumber:13}}),_react.default.createElement(_MText.MText,{style:{color:'#28A745',fontSize:10,flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:356,columnNumber:13}},"H\u1EE3p \u0111\u1ED3ng \u0111\xE3 k\xFD th\xE0nh c\xF4ng. Qu\xFD kh\xE1ch vui l\xF2ng ch\u1EDD Chuy\xEAn vi\xEAn t\u01B0 v\u1EA5n li\xEAn h\u1EC7 \u0111\u1EC3 ho\xE0n t\u1EA5t b\u01B0\u1EDBc gi\u1EA3i ng\xE2n.")),(item==null?void 0:item.step)!==11?_react.default.createElement(_reactNative.View,{style:$row,__self:this,__source:{fileName:_jsxFileName,lineNumber:364,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:{flex:1,paddingRight:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:365,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'#999999',fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:366,columnNumber:15}},"Tr\u1EA1ng th\xE1i"),_react.default.createElement(_MText.MText,{style:{fontSize:12,fontWeight:'bold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:374,columnNumber:15}},(item==null?void 0:item.step)<=1?'Chờ cập nhật thông tin tài sản':(item==null?void 0:item.step)===3?"Ch\u1EDD c\u1EADp nh\u1EADt th\xF4ng tin kho\u1EA3n vay":(item==null?void 0:item.step)===4||(item==null?void 0:item.step)===5||(item==null?void 0:item.step)===6?"Ch\u1EDD c\u1EADp nh\u1EADt th\xF4ng tin c\xE1 nh\xE2n":(item==null?void 0:item.step)===9?"Ch\u1EDD c\u1EADp nh\u1EADt eKYC":(item==null?void 0:item.step)===11?"H\u1EE3p \u0111\u1ED3ng \u0111\xE3 k\xFD th\xE0nh c\xF4ng. Vui l\xF2ng ch\u1EDD chuy\xEAn vi\xEAn t\u01B0 v\u1EA5n li\xEAn h\u1EC7":'Đơn vay đang trong quá trình xử lý')),(item==null?void 0:item.step)<=1?_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){if((item==null?void 0:item.typeLoan)===7){navigation.push(_navigation.ScreenNames.LoanBuyCar,{loan:item});}else{if((item==null?void 0:item.step)===0){navigation.push(_navigation.ScreenNames.VehicleCamera,{loan:item,front:true});}else{navigation.push(_navigation.ScreenNames.AssetInformation,{loan:item});}}},__self:this,__source:{fileName:_jsxFileName,lineNumber:394,columnNumber:15}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{height:30,alignItems:'center',justifyContent:'center',borderRadius:24,paddingHorizontal:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:414,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:424,columnNumber:19}},"C\u1EADp nh\u1EADt"))):(item==null?void 0:item.step)===3?_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){if((item==null?void 0:item.step)===3){navigation.push(_navigation.ScreenNames.ReviewLoan,{loan:item});}},__self:this,__source:{fileName:_jsxFileName,lineNumber:435,columnNumber:15}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{height:30,alignItems:'center',justifyContent:'center',borderRadius:24,paddingHorizontal:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:444,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:454,columnNumber:19}},"C\u1EADp nh\u1EADt"))):(item==null?void 0:item.step)===4||(item==null?void 0:item.step)===5||(item==null?void 0:item.step)===6?_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){if((item==null?void 0:item.step)===4){navigation.push(_navigation.ScreenNames.OCR,{loan:item,front:true});}else if((item==null?void 0:item.step)===5){if((item==null?void 0:item.typeLoan)===5){navigation.push(_navigation.ScreenNames.ReviewInformation,{loan:item});}else{navigation.push(_navigation.ScreenNames.TopupLoanInfo,{loan:item});}}else if((item==null?void 0:item.step)===6){navigation.push(_navigation.ScreenNames.ReviewInformationOther,{loan:item});}},__self:this,__source:{fileName:_jsxFileName,lineNumber:465,columnNumber:15}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{height:30,alignItems:'center',justifyContent:'center',borderRadius:24,paddingHorizontal:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:489,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:499,columnNumber:19}},"C\u1EADp nh\u1EADt"))):(item==null?void 0:item.step)===9?_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push(_navigation.ScreenNames.LivenessV2,{loan:item});},__self:this,__source:{fileName:_jsxFileName,lineNumber:510,columnNumber:15}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{height:30,alignItems:'center',justifyContent:'center',borderRadius:24,paddingHorizontal:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:517,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:527,columnNumber:19}},"C\u1EADp nh\u1EADt"))):(item==null?void 0:item.step)===10?_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push(_navigation.ScreenNames.TTSSignLoan,{loan:item});},__self:this,__source:{fileName:_jsxFileName,lineNumber:538,columnNumber:15}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{height:30,alignItems:'center',justifyContent:'center',borderRadius:24,paddingHorizontal:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:545,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:555,columnNumber:19}},"K\xFD h\u1EE3p \u0111\u1ED3ng"))):_react.default.createElement(_react.default.Fragment,null)):_react.default.createElement(_react.default.Fragment,null),(item==null?void 0:item.step)!==11?_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,backgroundColor:'#FFF2F2',marginHorizontal:-16,paddingVertical:10,borderBottomRightRadius:8,borderBottomLeftRadius:8,paddingHorizontal:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:573,columnNumber:11}},_react.default.createElement(_icons.Info,{__self:this,__source:{fileName:_jsxFileName,lineNumber:586,columnNumber:13}}),_react.default.createElement(_MText.MText,{style:[{fontSize:10,color:'#E40010',flex:1}],__self:this,__source:{fileName:_jsxFileName,lineNumber:587,columnNumber:13}},(item==null?void 0:item.step)<=1?'Vui lòng cập nhật thông tin tài sản để được giải ngân sớm nhất!':(item==null?void 0:item.step)===3?"Vui l\xF2ng c\u1EADp nh\u1EADt th\xF4ng tin kho\u1EA3n vay \u0111\u1EC3 \u0111\u01B0\u1EE3c gi\u1EA3i ng\xE2n s\u1EDBm nh\u1EA5t!":(item==null?void 0:item.step)===4||(item==null?void 0:item.step)===5||(item==null?void 0:item.step)===6?"Vui l\xF2ng c\u1EADp nh\u1EADt th\xF4ng tin c\xE1 nh\xE2n \u0111\u1EC3 \u0111\u01B0\u1EE3c gi\u1EA3i ng\xE2n s\u1EDBm nh\u1EA5t!":(item==null?void 0:item.step)===9?"B\u01B0\u1EDBc cu\u1ED1i c\xF9ng r\u1ED3i, vui l\xF2ng k\xFD h\u1EE3p \u0111\u1ED3ng \u0111\u1EC3 \u0111\u01B0\u1EE3c gi\u1EA3i ng\xE2n s\u1EDBm nh\u1EA5t nh\xE9!":'Đơn vay đang trong quá trình xử lý')):_react.default.createElement(_react.default.Fragment,null)),_react.default.createElement(_reactNativeModal.default,{isVisible:showModalInfo,backdropColor:"#000",backdropOpacity:0.5,__self:this,__source:{fileName:_jsxFileName,lineNumber:611,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{borderRadius:8,backgroundColor:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:616,columnNumber:9}},_react.default.createElement(_reactNative.Image,{source:require('../../assets/tts/Banner.png'),style:{width:'100%',borderTopLeftRadius:8,borderTopRightRadius:8,height:_reactNative.Dimensions.get('window').height/2*0.7,resizeMode:'cover'},__self:this,__source:{fileName:_jsxFileName,lineNumber:622,columnNumber:11}}),_react.default.createElement(_MText.MText,{style:{fontSize:16,fontWeight:'bold',textAlign:'center',marginVertical:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:632,columnNumber:11}},"Ch\xFAc m\u1EEBng b\u1EA1n!"),_react.default.createElement(_MText.MText,{style:{textAlign:'center',paddingHorizontal:16,color:'#828282'},__self:this,__source:{fileName:_jsxFileName,lineNumber:642,columnNumber:11}},"B\u1EA1n \u0111\xE3 \u0111\u01B0\u1EE3c ph\xEA duy\u1EC7t",' ',_react.default.createElement(_MText.MText,{style:{color:'#EF592E',fontWeight:'bold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:650,columnNumber:13}},item==null?void 0:item.productNameTopup),' ',"v\u1EDBi s\u1ED1 ti\u1EC1n l\xE0",' ',_react.default.createElement(_MText.MText,{style:{color:'#EF592E',fontWeight:'bold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:659,columnNumber:13}},(0,_utils.formatMoney)(item==null?void 0:item.loanAmount)),' ',"VN\u0110! Vui l\xF2ng eKYC - ho\xE0n thi\u1EC7n x\xE1c th\u1EF1c khu\xF4n m\u1EB7t v\xE0 k\xFD h\u1EE3p \u0111\u1ED3ng \u0111\u1EC3 \u0111\u01B0\u1EE3c gi\u1EA3i ng\xE2n"),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:isLoading,onPress:function onPress(){return onConfirm(1);},style:{borderWidth:1,borderColor:'#EF592E',borderRadius:24,paddingHorizontal:16,paddingVertical:10,alignSelf:'center',marginTop:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:670,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'#EF592E'},__self:this,__source:{fileName:_jsxFileName,lineNumber:683,columnNumber:13}},"X\xE1c nh\u1EADn kho\u1EA3n vay")),_react.default.createElement(_reactNative.TouchableOpacity,{disabled:isLoading,onPress:function onPress(){return onConfirm(2);},style:{paddingHorizontal:16,paddingVertical:10,alignSelf:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:692,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'#8E8E93'},__self:this,__source:{fileName:_jsxFileName,lineNumber:701,columnNumber:13}},"T\xF4i c\u1EA7n vay s\u1ED1 ti\u1EC1n kh\xE1c")),_react.default.createElement(_reactNative.View,{style:{backgroundColor:'#EDF6FF',paddingVertical:8,borderBottomLeftRadius:8,borderBottomRightRadius:8,marginTop:16,alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:703,columnNumber:11}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setShowModalInfo(false);setTimeout(function(){navigation.push(_navigation.ScreenNames.LoanInterestRate,{loan:item});},300);},__self:this,__source:{fileName:_jsxFileName,lineNumber:713,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'#2F80ED',fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:723,columnNumber:15}},"B\u1EA3ng bi\u1EC3u l\xE3i ph\xED \u0111\u01A1n vay ","->"))))),_react.default.createElement(_reactNativeModal.default,{isVisible:showModal,backdropColor:"#000",backdropOpacity:0.5,onBackdropPress:function onBackdropPress(){return setShowModal(false);},__self:this,__source:{fileName:_jsxFileName,lineNumber:731,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{borderRadius:12,backgroundColor:'white',padding:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:737,columnNumber:9}},_react.default.createElement(_MText.MText,{style:{fontSize:16,fontWeight:'bold',textAlign:'center',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:744,columnNumber:11}},"C\xE1c b\u01B0\u1EDBc ho\xE0n thi\u1EC7n kho\u1EA3n vay"),_react.default.createElement(_MText.MText,{style:{textAlign:'center',color:'#828282'},__self:this,__source:{fileName:_jsxFileName,lineNumber:754,columnNumber:11}},"Th\u1EF1c hi\u1EC7n theo c\xE1c b\u01B0\u1EDBc sau"),_react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:762,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:763,columnNumber:13}},_react.default.createElement(_reactNative.View,{style:{width:30,height:30,borderRadius:4,backgroundColor:'#FFF2F2',alignItems:'center',justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:771,columnNumber:15}},_react.default.createElement(_v.Icon2,{__self:this,__source:{fileName:_jsxFileName,lineNumber:781,columnNumber:17}})),_react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:783,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{fontWeight:'bold',fontSize:8,color:'#EF592E'},__self:this,__source:{fileName:_jsxFileName,lineNumber:784,columnNumber:17}},"B\u01B0\u1EDBc 1"),_react.default.createElement(_MText.MText,{style:{fontWeight:'bold',fontSize:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:789,columnNumber:17}},"TH\xD4NG TIN KHO\u1EA2N VAY"))),_react.default.createElement(_MText.MText,{style:{fontSize:10,marginTop:5},__self:this,__source:{fileName:_jsxFileName,lineNumber:794,columnNumber:13}},"Nh\u1EADp th\xF4ng tin: S\u1ED1 ti\u1EC1n vay, Th\u1EDDi h\u1EA1n vay, ...")),_react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:798,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:799,columnNumber:13}},_react.default.createElement(_reactNative.View,{style:{width:30,height:30,borderRadius:4,backgroundColor:'#FFF2F2',alignItems:'center',justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:807,columnNumber:15}},_react.default.createElement(_v.Icon3,{__self:this,__source:{fileName:_jsxFileName,lineNumber:817,columnNumber:17}})),_react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:819,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{fontWeight:'bold',fontSize:8,color:'#EF592E'},__self:this,__source:{fileName:_jsxFileName,lineNumber:820,columnNumber:17}},"B\u01B0\u1EDBc 2"),_react.default.createElement(_MText.MText,{style:{fontWeight:'bold',fontSize:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:825,columnNumber:17}},"TH\xD4NG TIN C\xC1 NH\xC2N"))),_react.default.createElement(_MText.MText,{style:{fontSize:10,marginTop:5},__self:this,__source:{fileName:_jsxFileName,lineNumber:830,columnNumber:13}},"Th\u1EF1c hi\u1EC7n NFC/ OCR gi\u1EA5y t\u1EDD CCCD/CC v\xE0 ch\u1EE5p 1 \u1EA3nh ch\xE2n dung")),_react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:834,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:835,columnNumber:13}},_react.default.createElement(_reactNative.View,{style:{width:30,height:30,borderRadius:4,backgroundColor:'#FFF2F2',alignItems:'center',justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:843,columnNumber:15}},_react.default.createElement(_v.Icon4,{__self:this,__source:{fileName:_jsxFileName,lineNumber:853,columnNumber:17}})),_react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:855,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{fontWeight:'bold',fontSize:8,color:'#EF592E'},__self:this,__source:{fileName:_jsxFileName,lineNumber:856,columnNumber:17}},"B\u01B0\u1EDBc 3"),_react.default.createElement(_MText.MText,{style:{fontWeight:'bold',fontSize:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:861,columnNumber:17}},"EKYC"))),_react.default.createElement(_MText.MText,{style:{fontSize:10,marginTop:5},__self:this,__source:{fileName:_jsxFileName,lineNumber:864,columnNumber:13}},"Th\u1EF1c hi\u1EC7n eKYC khu\xF4n m\u1EB7t")),_react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:868,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:869,columnNumber:13}},_react.default.createElement(_reactNative.View,{style:{width:30,height:30,borderRadius:4,backgroundColor:'#FFF2F2',alignItems:'center',justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:877,columnNumber:15}},_react.default.createElement(_v.Icon5,{__self:this,__source:{fileName:_jsxFileName,lineNumber:887,columnNumber:17}})),_react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:889,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{fontWeight:'bold',fontSize:8,color:'#EF592E'},__self:this,__source:{fileName:_jsxFileName,lineNumber:890,columnNumber:17}},"B\u01B0\u1EDBc 4"),_react.default.createElement(_MText.MText,{style:{fontWeight:'bold',fontSize:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:895,columnNumber:17}},"K\xDD H\u1EE2P \u0110\u1ED2NG"))),_react.default.createElement(_MText.MText,{style:{fontSize:10,marginTop:5},__self:this,__source:{fileName:_jsxFileName,lineNumber:900,columnNumber:13}},"K\xFD s\u1ED1 b\u1EB1ng OTP ho\u1EB7c qua \u1EE8ng d\u1EE5ng Mysign"),_react.default.createElement(_MText.MText,{style:{fontSize:10,color:'#999999'},__self:this,__source:{fileName:_jsxFileName,lineNumber:903,columnNumber:13}},"L\u01B0u \xFD: \u0110\u1EC3 b\u1EA3o m\u1EADt th\xF4ng tin c\xE1 nh\xE2n, h\u1EE3p \u0111\u1ED3ng s\u1EBD \u0111\u01B0\u1EE3c k\xFD t\u1EA1i Viettel qua \u1EE8ng d\u1EE5ng MySign, Website hopdongdientu.viettel.vn,...")),_react.default.createElement(_reactNative.View,{style:{backgroundColor:'#FFF8F2',padding:12,borderRadius:8,marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:908,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{fontSize:12,fontWeight:'bold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:916,columnNumber:13}},"\xDD ngh\u0129a bi\u1EC3u t\u01B0\u1EE3ng"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:16,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:919,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{fontSize:10,width:'35%'},__self:this,__source:{fileName:_jsxFileName,lineNumber:927,columnNumber:15}},"\u0110ang c\u1EA7n th\u1EF1c hi\u1EC7n"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:930,columnNumber:15}},_react.default.createElement(_v.Icon2,{__self:this,__source:{fileName:_jsxFileName,lineNumber:933,columnNumber:17}}),_react.default.createElement(_v.Icon3,{__self:this,__source:{fileName:_jsxFileName,lineNumber:934,columnNumber:17}}),_react.default.createElement(_v.Icon4,{__self:this,__source:{fileName:_jsxFileName,lineNumber:935,columnNumber:17}}),_react.default.createElement(_v.Icon5,{__self:this,__source:{fileName:_jsxFileName,lineNumber:936,columnNumber:17}}))),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:16,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:939,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{fontSize:10,width:'35%'},__self:this,__source:{fileName:_jsxFileName,lineNumber:947,columnNumber:15}},"Ch\u01B0a th\u1EC3 th\u1EF1c hi\u1EC7n"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:950,columnNumber:15}},_react.default.createElement(_v.Icon7,{__self:this,__source:{fileName:_jsxFileName,lineNumber:953,columnNumber:17}}),_react.default.createElement(_v.Icon8,{__self:this,__source:{fileName:_jsxFileName,lineNumber:954,columnNumber:17}}),_react.default.createElement(_v.Icon9,{__self:this,__source:{fileName:_jsxFileName,lineNumber:955,columnNumber:17}}),_react.default.createElement(_v.Icon10,{__self:this,__source:{fileName:_jsxFileName,lineNumber:956,columnNumber:17}}))),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:16,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:959,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{fontSize:10,width:'35%'},__self:this,__source:{fileName:_jsxFileName,lineNumber:967,columnNumber:15}},"\u0110\xE3 ho\xE0n th\xE0nh"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:970,columnNumber:15}},_react.default.createElement(_v.IconSuccess,{__self:this,__source:{fileName:_jsxFileName,lineNumber:973,columnNumber:17}})))),_react.default.createElement(_reactNative.TouchableOpacity,{style:{position:'absolute',top:16,right:16},onPress:function onPress(){return setShowModal(false);},__self:this,__source:{fileName:_jsxFileName,lineNumber:978,columnNumber:11}},_react.default.createElement(_icons.Close2Icon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:982,columnNumber:13}})))));}var $action={flexDirection:'column',alignItems:'center',gap:5};var $row={flexDirection:'row',paddingBottom:16,marginTop:16};
|
|
2
2
|
//# sourceMappingURL=DigitalTopupItem.js.map
|