react-native-timacare 3.3.18 → 3.3.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/lib/commonjs/components/MHeader.js +1 -1
  2. package/lib/commonjs/components/MHeader.js.flow +1 -1
  3. package/lib/commonjs/components/keyboardspace/index.js +1 -1
  4. package/lib/commonjs/components/keyboardspace/index.js.flow +0 -2
  5. package/lib/commonjs/components/keyboardspace/index.js.map +1 -1
  6. package/lib/commonjs/screens/detail-loan/DetailLoanTima.js +1 -1
  7. package/lib/commonjs/screens/detail-loan/DetailLoanTima.js.flow +145 -35
  8. package/lib/commonjs/screens/detail-loan/DetailLoanTima.js.map +1 -1
  9. package/lib/commonjs/screens/detail-loan/Info.js +1 -1
  10. package/lib/commonjs/screens/detail-loan/Info.js.flow +16 -8
  11. package/lib/commonjs/screens/detail-loan/Info.js.map +1 -1
  12. package/lib/commonjs/screens/detail-loan/Payment.js +1 -1
  13. package/lib/commonjs/screens/detail-loan/Payment.js.flow +19 -7
  14. package/lib/commonjs/screens/detail-loan/Payment.js.map +1 -1
  15. package/lib/commonjs/screens/detail-loan/PaymentAll.js +1 -1
  16. package/lib/commonjs/screens/detail-loan/PaymentAll.js.flow +49 -9
  17. package/lib/commonjs/screens/detail-loan/PaymentAll.js.map +1 -1
  18. package/lib/commonjs/screens/detail-loan/PaymentInfo.js +1 -1
  19. package/lib/commonjs/screens/detail-loan/PaymentInfo.js.flow +735 -85
  20. package/lib/commonjs/screens/detail-loan/PaymentInfo.js.map +1 -1
  21. package/lib/commonjs/screens/detail-loan/ShowQrCode.js +1 -1
  22. package/lib/commonjs/screens/detail-loan/ShowQrCode.js.flow +678 -35
  23. package/lib/commonjs/screens/detail-loan/ShowQrCode.js.map +1 -1
  24. package/lib/commonjs/screens/detail-loan/index.js +1 -1
  25. package/lib/commonjs/screens/detail-loan/index.js.flow +37 -33
  26. package/lib/commonjs/screens/detail-loan/index.js.map +1 -1
  27. package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js +1 -1
  28. package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js.flow +41 -12
  29. package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js.map +1 -1
  30. package/lib/commonjs/screens/guide-transfer-bank/index.js +1 -1
  31. package/lib/commonjs/screens/guide-transfer-bank/index.js.flow +228 -237
  32. package/lib/commonjs/screens/guide-transfer-bank/index.js.map +1 -1
  33. package/lib/commonjs/screens/home/Store.js +1 -1
  34. package/lib/commonjs/screens/home/Store.js.flow +4 -1
  35. package/lib/commonjs/screens/home/Store.js.map +1 -1
  36. package/lib/commonjs/screens/home/index.js +1 -1
  37. package/lib/commonjs/screens/home/index.js.flow +15 -30
  38. package/lib/commonjs/screens/home/index.js.map +1 -1
  39. package/lib/commonjs/screens/liveness-v2/index.js +1 -1
  40. package/lib/commonjs/screens/liveness-v2/index.js.flow +4 -4
  41. package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
  42. package/lib/commonjs/services/api/api.js +1 -1
  43. package/lib/commonjs/services/api/api.js.flow +16 -0
  44. package/lib/commonjs/services/api/api.js.map +1 -1
  45. package/lib/module/components/MHeader.js +1 -1
  46. package/lib/module/components/keyboardspace/index.js +1 -1
  47. package/lib/module/components/keyboardspace/index.js.map +1 -1
  48. package/lib/module/screens/detail-loan/DetailLoanTima.js +1 -1
  49. package/lib/module/screens/detail-loan/DetailLoanTima.js.map +1 -1
  50. package/lib/module/screens/detail-loan/Info.js +1 -1
  51. package/lib/module/screens/detail-loan/Info.js.map +1 -1
  52. package/lib/module/screens/detail-loan/Payment.js +1 -1
  53. package/lib/module/screens/detail-loan/Payment.js.map +1 -1
  54. package/lib/module/screens/detail-loan/PaymentAll.js +1 -1
  55. package/lib/module/screens/detail-loan/PaymentAll.js.map +1 -1
  56. package/lib/module/screens/detail-loan/PaymentInfo.js +1 -1
  57. package/lib/module/screens/detail-loan/PaymentInfo.js.map +1 -1
  58. package/lib/module/screens/detail-loan/ShowQrCode.js +1 -1
  59. package/lib/module/screens/detail-loan/ShowQrCode.js.map +1 -1
  60. package/lib/module/screens/detail-loan/index.js +1 -1
  61. package/lib/module/screens/detail-loan/index.js.map +1 -1
  62. package/lib/module/screens/guide-transfer-bank/TransferDetail.js +1 -1
  63. package/lib/module/screens/guide-transfer-bank/TransferDetail.js.map +1 -1
  64. package/lib/module/screens/guide-transfer-bank/index.js +1 -1
  65. package/lib/module/screens/guide-transfer-bank/index.js.map +1 -1
  66. package/lib/module/screens/home/Store.js +1 -1
  67. package/lib/module/screens/home/Store.js.map +1 -1
  68. package/lib/module/screens/home/index.js +1 -1
  69. package/lib/module/screens/home/index.js.map +1 -1
  70. package/lib/module/screens/liveness-v2/index.js +1 -1
  71. package/lib/module/screens/liveness-v2/index.js.map +1 -1
  72. package/lib/module/services/api/api.js +1 -1
  73. package/lib/module/services/api/api.js.map +1 -1
  74. package/lib/typescript/components/keyboardspace/index.d.ts.map +1 -1
  75. package/lib/typescript/screens/detail-loan/DetailLoanTima.d.ts.map +1 -1
  76. package/lib/typescript/screens/detail-loan/Info.d.ts.map +1 -1
  77. package/lib/typescript/screens/detail-loan/Payment.d.ts.map +1 -1
  78. package/lib/typescript/screens/detail-loan/PaymentAll.d.ts.map +1 -1
  79. package/lib/typescript/screens/detail-loan/PaymentInfo.d.ts.map +1 -1
  80. package/lib/typescript/screens/detail-loan/ShowQrCode.d.ts.map +1 -1
  81. package/lib/typescript/screens/detail-loan/index.d.ts.map +1 -1
  82. package/lib/typescript/screens/guide-transfer-bank/TransferDetail.d.ts.map +1 -1
  83. package/lib/typescript/screens/guide-transfer-bank/index.d.ts.map +1 -1
  84. package/lib/typescript/screens/home/Store.d.ts.map +1 -1
  85. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  86. package/lib/typescript/services/api/api.d.ts +16 -0
  87. package/lib/typescript/services/api/api.d.ts.map +1 -1
  88. package/package.json +2 -1
  89. package/src/components/MHeader.tsx +1 -1
  90. package/src/components/keyboardspace/index.tsx +0 -2
  91. package/src/screens/detail-loan/DetailLoanTima.tsx +145 -35
  92. package/src/screens/detail-loan/Info.tsx +16 -8
  93. package/src/screens/detail-loan/Payment.tsx +19 -7
  94. package/src/screens/detail-loan/PaymentAll.tsx +49 -9
  95. package/src/screens/detail-loan/PaymentInfo.tsx +735 -85
  96. package/src/screens/detail-loan/ShowQrCode.tsx +678 -35
  97. package/src/screens/detail-loan/index.tsx +37 -33
  98. package/src/screens/guide-transfer-bank/TransferDetail.tsx +41 -12
  99. package/src/screens/guide-transfer-bank/index.tsx +228 -237
  100. package/src/screens/home/Store.tsx +4 -1
  101. package/src/screens/home/index.tsx +15 -30
  102. package/src/screens/liveness-v2/index.tsx +4 -4
  103. package/src/services/api/api.ts +16 -0
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=MHeader;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _icons=require("../assets/icons");var _MText=require("./MText");var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _native=require("@react-navigation/native");var _reactNativeSafeAreaContext=require("react-native-safe-area-context");var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/components/MHeader.tsx";function MHeader(_ref){var title=_ref.title,onBack=_ref.onBack;var navigation=(0,_native.useNavigation)();var insets=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)();return _react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{zIndex:10000},__self:this,__source:{fileName:_jsxFileName,lineNumber:24,columnNumber:5}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',paddingTop:insets.top+16,paddingBottom:8,justifyContent:'space-between',paddingHorizontal:24,zIndex:10000},__self:this,__source:{fileName:_jsxFileName,lineNumber:30,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{display:'flex',flexDirection:'row',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:41,columnNumber:9}},onBack&&_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){if(onBack)onBack();},style:{width:32,height:32,justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:49,columnNumber:13}},_react.default.createElement(_icons.IconBackWhite,{__self:this,__source:{fileName:_jsxFileName,lineNumber:59,columnNumber:15}})),_react.default.createElement(_MText.MText,{style:{fontWeight:'bold',color:'white',fontSize:14},__self:this,__source:{fileName:_jsxFileName,lineNumber:62,columnNumber:11}},title)),_react.default.createElement(_reactNative.View,{style:{borderWidth:1,borderColor:'white',flexDirection:'row',borderRadius:16,height:30,alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:72,columnNumber:9}},_react.default.createElement(_reactNative.TouchableOpacity,{style:{paddingHorizontal:10},onPress:function onPress(){_reactNative.Linking.openURL("tel:1900633688");},__self:this,__source:{fileName:_jsxFileName,lineNumber:82,columnNumber:11}},_react.default.createElement(_icons.Call,{__self:this,__source:{fileName:_jsxFileName,lineNumber:90,columnNumber:13}})),_react.default.createElement(_reactNative.View,{style:{width:1,height:30,backgroundColor:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:92,columnNumber:11}}),_react.default.createElement(_reactNative.TouchableOpacity,{style:{paddingHorizontal:10},onPress:function onPress(){navigation.navigate('MyBank.Main');},__self:this,__source:{fileName:_jsxFileName,lineNumber:93,columnNumber:11}},_react.default.createElement(_icons.CloseIcon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:101,columnNumber:13}})))));}
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=MHeader;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _icons=require("../assets/icons");var _MText=require("./MText");var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _native=require("@react-navigation/native");var _reactNativeSafeAreaContext=require("react-native-safe-area-context");var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/components/MHeader.tsx";function MHeader(_ref){var title=_ref.title,onBack=_ref.onBack;var navigation=(0,_native.useNavigation)();var insets=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)();return _react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{zIndex:10000},__self:this,__source:{fileName:_jsxFileName,lineNumber:24,columnNumber:5}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',paddingTop:insets.top+16,paddingBottom:8,justifyContent:'space-between',paddingHorizontal:16,zIndex:10000},__self:this,__source:{fileName:_jsxFileName,lineNumber:30,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{display:'flex',flexDirection:'row',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:41,columnNumber:9}},onBack&&_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){if(onBack)onBack();},style:{width:32,height:32,justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:49,columnNumber:13}},_react.default.createElement(_icons.IconBackWhite,{__self:this,__source:{fileName:_jsxFileName,lineNumber:59,columnNumber:15}})),_react.default.createElement(_MText.MText,{style:{fontWeight:'bold',color:'white',fontSize:14},__self:this,__source:{fileName:_jsxFileName,lineNumber:62,columnNumber:11}},title)),_react.default.createElement(_reactNative.View,{style:{borderWidth:1,borderColor:'white',flexDirection:'row',borderRadius:16,height:30,alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:72,columnNumber:9}},_react.default.createElement(_reactNative.TouchableOpacity,{style:{paddingHorizontal:10},onPress:function onPress(){_reactNative.Linking.openURL("tel:1900633688");},__self:this,__source:{fileName:_jsxFileName,lineNumber:82,columnNumber:11}},_react.default.createElement(_icons.Call,{__self:this,__source:{fileName:_jsxFileName,lineNumber:90,columnNumber:13}})),_react.default.createElement(_reactNative.View,{style:{width:1,height:30,backgroundColor:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:92,columnNumber:11}}),_react.default.createElement(_reactNative.TouchableOpacity,{style:{paddingHorizontal:10},onPress:function onPress(){navigation.navigate('MyBank.Main');},__self:this,__source:{fileName:_jsxFileName,lineNumber:93,columnNumber:11}},_react.default.createElement(_icons.CloseIcon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:101,columnNumber:13}})))));}
2
2
  //# sourceMappingURL=MHeader.js.map
@@ -34,7 +34,7 @@ export default function MHeader({ title, onBack }: IProps) {
34
34
  paddingTop: insets.top + 16,
35
35
  paddingBottom: 8,
36
36
  justifyContent: 'space-between',
37
- paddingHorizontal: 24,
37
+ paddingHorizontal: 16,
38
38
  zIndex: 10000,
39
39
  }}
40
40
  >
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _this=this,_jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/components/keyboardspace/index.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}var styles=_reactNative.StyleSheet.create({container:{position:'absolute',bottom:0,left:0,right:0}});var defaultAnimation={duration:500,create:{duration:300,type:_reactNative.LayoutAnimation.Types.easeInEaseOut,property:_reactNative.LayoutAnimation.Properties.opacity},update:{type:_reactNative.LayoutAnimation.Types.spring,springDamping:200}};var KeyboardSpacer=function KeyboardSpacer(_ref){var _ref$topSpacing=_ref.topSpacing,topSpacing=_ref$topSpacing===void 0?0:_ref$topSpacing,_ref$onToggle=_ref.onToggle,onToggle=_ref$onToggle===void 0?function(){}:_ref$onToggle,style=_ref.style;var _useState=(0,_react.useState)(0),_useState2=(0,_slicedToArray2.default)(_useState,2),keyboardSpace=_useState2[0],setKeyboardSpace=_useState2[1];(0,_react.useEffect)(function(){var showEvent=_reactNative.Platform.OS==='android'?'keyboardDidShow':'keyboardWillShow';var hideEvent=_reactNative.Platform.OS==='android'?'keyboardDidHide':'keyboardWillHide';var onShow=function onShow(event){if(!(event!=null&&event.endCoordinates))return;var animationConfig=defaultAnimation;if(_reactNative.Platform.OS==='ios'){animationConfig=_reactNative.LayoutAnimation.create(event.duration,_reactNative.LayoutAnimation.Types[event.easing]||'keyboard',_reactNative.LayoutAnimation.Properties.opacity);}_reactNative.LayoutAnimation.configureNext(animationConfig);var screenHeight=_reactNative.Dimensions.get('window').height;var height=screenHeight-event.endCoordinates.screenY+topSpacing;setKeyboardSpace(height);onToggle(true,height);};var onHide=function onHide(event){var animationConfig=defaultAnimation;if(_reactNative.Platform.OS==='ios'){animationConfig=_reactNative.LayoutAnimation.create((event==null?void 0:event.duration)||250,_reactNative.LayoutAnimation.Types[event==null?void 0:event.easing]||'keyboard',_reactNative.LayoutAnimation.Properties.opacity);}_reactNative.LayoutAnimation.configureNext(animationConfig);setKeyboardSpace(0);onToggle(false,0);};var showSub=_reactNative.Keyboard.addListener(showEvent,onShow);var hideSub=_reactNative.Keyboard.addListener(hideEvent,onHide);return function(){showSub.remove();hideSub.remove();};},[topSpacing,onToggle]);return _react.default.createElement(_reactNative.View,{style:[styles.container,{height:keyboardSpace},style],__self:_this,__source:{fileName:_jsxFileName,lineNumber:103,columnNumber:10}});};var _default=exports.default=KeyboardSpacer;
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _this=this,_jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/components/keyboardspace/index.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}var styles=_reactNative.StyleSheet.create({container:{left:0,right:0}});var defaultAnimation={duration:500,create:{duration:300,type:_reactNative.LayoutAnimation.Types.easeInEaseOut,property:_reactNative.LayoutAnimation.Properties.opacity},update:{type:_reactNative.LayoutAnimation.Types.spring,springDamping:200}};var KeyboardSpacer=function KeyboardSpacer(_ref){var _ref$topSpacing=_ref.topSpacing,topSpacing=_ref$topSpacing===void 0?0:_ref$topSpacing,_ref$onToggle=_ref.onToggle,onToggle=_ref$onToggle===void 0?function(){}:_ref$onToggle,style=_ref.style;var _useState=(0,_react.useState)(0),_useState2=(0,_slicedToArray2.default)(_useState,2),keyboardSpace=_useState2[0],setKeyboardSpace=_useState2[1];(0,_react.useEffect)(function(){var showEvent=_reactNative.Platform.OS==='android'?'keyboardDidShow':'keyboardWillShow';var hideEvent=_reactNative.Platform.OS==='android'?'keyboardDidHide':'keyboardWillHide';var onShow=function onShow(event){if(!(event!=null&&event.endCoordinates))return;var animationConfig=defaultAnimation;if(_reactNative.Platform.OS==='ios'){animationConfig=_reactNative.LayoutAnimation.create(event.duration,_reactNative.LayoutAnimation.Types[event.easing]||'keyboard',_reactNative.LayoutAnimation.Properties.opacity);}_reactNative.LayoutAnimation.configureNext(animationConfig);var screenHeight=_reactNative.Dimensions.get('window').height;var height=screenHeight-event.endCoordinates.screenY+topSpacing;setKeyboardSpace(height);onToggle(true,height);};var onHide=function onHide(event){var animationConfig=defaultAnimation;if(_reactNative.Platform.OS==='ios'){animationConfig=_reactNative.LayoutAnimation.create((event==null?void 0:event.duration)||250,_reactNative.LayoutAnimation.Types[event==null?void 0:event.easing]||'keyboard',_reactNative.LayoutAnimation.Properties.opacity);}_reactNative.LayoutAnimation.configureNext(animationConfig);setKeyboardSpace(0);onToggle(false,0);};var showSub=_reactNative.Keyboard.addListener(showEvent,onShow);var hideSub=_reactNative.Keyboard.addListener(hideEvent,onHide);return function(){showSub.remove();hideSub.remove();};},[topSpacing,onToggle]);return _react.default.createElement(_reactNative.View,{style:[styles.container,{height:keyboardSpace},style],__self:_this,__source:{fileName:_jsxFileName,lineNumber:101,columnNumber:10}});};var _default=exports.default=KeyboardSpacer;
2
2
  //# sourceMappingURL=index.js.map
@@ -19,8 +19,6 @@ type Props = {
19
19
 
20
20
  const styles = StyleSheet.create({
21
21
  container: {
22
- position: 'absolute',
23
- bottom: 0,
24
22
  left: 0,
25
23
  right: 0,
26
24
  },
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_this","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","styles","StyleSheet","create","container","position","bottom","left","right","defaultAnimation","duration","type","LayoutAnimation","Types","easeInEaseOut","property","Properties","opacity","update","spring","springDamping","KeyboardSpacer","_ref","_ref$topSpacing","topSpacing","_ref$onToggle","onToggle","style","_useState","useState","_useState2","_slicedToArray2","keyboardSpace","setKeyboardSpace","useEffect","showEvent","Platform","OS","hideEvent","onShow","event","endCoordinates","animationConfig","easing","configureNext","screenHeight","Dimensions","height","screenY","onHide","showSub","Keyboard","addListener","hideSub","remove","createElement","View","__self","__source","fileName","lineNumber","columnNumber","_default","exports"],"sourceRoot":"../../../../src","sources":["components/keyboardspace/index.tsx"],"mappings":"+PACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBASsB,IAAAE,KAAA,MAAAC,YAAA,+FAAAC,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,YAAAN,wBAAAM,CAAA,CAAAE,CAAA,MAAAA,CAAA,EAAAF,CAAA,EAAAA,CAAA,CAAAI,UAAA,QAAAJ,CAAA,WAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAK,OAAA,CAAAL,CAAA,MAAAG,CAAA,CAAAJ,wBAAA,CAAAG,CAAA,KAAAC,CAAA,EAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,SAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,MAAAQ,CAAA,EAAAC,SAAA,OAAAC,CAAA,CAAAC,MAAA,CAAAC,cAAA,EAAAD,MAAA,CAAAE,wBAAA,SAAAC,CAAA,IAAAd,CAAA,gBAAAc,CAAA,EAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,CAAAc,CAAA,OAAAI,CAAA,CAAAR,CAAA,CAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,CAAAc,CAAA,OAAAI,CAAA,GAAAA,CAAA,CAAAX,GAAA,EAAAW,CAAA,CAAAC,GAAA,EAAAR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,CAACC,KAAK,CAAC2B,KAAK,cAALA,KAAK,CAAEG,MAAM,CAAC,EAAI,UAAU,CAClD/B,4BAAe,CAACI,UAAU,CAACC,OAC7B,CAAC,CACH,CAEAL,4BAAe,CAACgC,aAAa,CAACF,eAAe,CAAC,CAE9CT,gBAAgB,CAAC,CAAC,CAAC,CACnBP,QAAQ,CAAC,KAAK,CAAE,CAAC,CAAC,CACpB,CAAC,CAED,GAAM,CAAAwB,OAAO,CAAGC,qBAAQ,CAACC,WAAW,CAACjB,SAAS,CAAEI,MAAM,CAAC,CACvD,GAAM,CAAAc,OAAO,CAAGF,qBAAQ,CAACC,WAAW,CAACd,SAAS,CAAEW,MAAM,CAAC,CAEvD,MAAO,WAAM,CACXC,OAAO,CAACI,MAAM,CAAC,CAAC,CAChBD,OAAO,CAACC,MAAM,CAAC,CAAC,CAClB,CAAC,CACH,CAAC,CAAE,CAAC9B,UAAU,CAAEE,QAAQ,CAAC,CAAC,CAE1B,MAAO,CAAApD,MAAA,CAAAY,OAAA,CAAAqE,aAAA,CAAC9E,YAAA,CAAA+E,IAAI,EAAC7B,KAAK,CAAE,CAAC1B,MAAM,CAACG,SAAS,CAAE,CAAE2C,MAAM,CAAEf,aAAc,CAAC,CAAEL,KAAK,CAAE,CAAA8B,MAAA,CAAA/E,KAAA,CAAAgF,QAAA,EAAAC,QAAA,CAAAhF,YAAA,CAAAiF,UAAA,KAAAC,YAAA,KAAE,CAAC,CAC9E,CAAC,CAAC,IAAAC,QAAA,CAAAC,OAAA,CAAA7E,OAAA,CAEamC,cAAc"}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_this","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","styles","StyleSheet","create","container","left","right","defaultAnimation","duration","type","LayoutAnimation","Types","easeInEaseOut","property","Properties","opacity","update","spring","springDamping","KeyboardSpacer","_ref","_ref$topSpacing","topSpacing","_ref$onToggle","onToggle","style","_useState","useState","_useState2","_slicedToArray2","keyboardSpace","setKeyboardSpace","useEffect","showEvent","Platform","OS","hideEvent","onShow","event","endCoordinates","animationConfig","easing","configureNext","screenHeight","Dimensions","height","screenY","onHide","showSub","Keyboard","addListener","hideSub","remove","createElement","View","__self","__source","fileName","lineNumber","columnNumber","_default","exports"],"sourceRoot":"../../../../src","sources":["components/keyboardspace/index.tsx"],"mappings":"+PACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBASsB,IAAAE,KAAA,MAAAC,YAAA,+FAAAC,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,YAAAN,wBAAAM,CAAA,CAAAE,CAAA,MAAAA,CAAA,EAAAF,CAAA,EAAAA,CAAA,CAAAI,UAAA,QAAAJ,CAAA,WAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAK,OAAA,CAAAL,CAAA,MAAAG,CAAA,CAAAJ,wBAAA,CAAAG,CAAA,KAAAC,CAAA,EAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,SAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,MAAAQ,CAAA,EAAAC,SAAA,OAAAC,CAAA,CAAAC,MAAA,CAAAC,cAAA,EAAAD,MAAA,CAAAE,wBAAA,SAAAC,CAAA,IAAAd,CAAA,gBAAAc,CAAA,EAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,CAAAc,CAAA,OAAAI,CAAA,CAAAR,CAAA,CAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,CAAAc,CAAA,OAAAI,CAAA,GAAAA,CAAA,CAAAX,GAAA,EAAAW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,cAALA,KAAK,CAAEG,MAAM,CAAC,EAAI,UAAU,CAClD/B,4BAAe,CAACI,UAAU,CAACC,OAC7B,CAAC,CACH,CAEAL,4BAAe,CAACgC,aAAa,CAACF,eAAe,CAAC,CAE9CT,gBAAgB,CAAC,CAAC,CAAC,CACnBP,QAAQ,CAAC,KAAK,CAAE,CAAC,CAAC,CACpB,CAAC,CAED,GAAM,CAAAwB,OAAO,CAAGC,qBAAQ,CAACC,WAAW,CAACjB,SAAS,CAAEI,MAAM,CAAC,CACvD,GAAM,CAAAc,OAAO,CAAGF,qBAAQ,CAACC,WAAW,CAACd,SAAS,CAAEW,MAAM,CAAC,CAEvD,MAAO,WAAM,CACXC,OAAO,CAACI,MAAM,CAAC,CAAC,CAChBD,OAAO,CAACC,MAAM,CAAC,CAAC,CAClB,CAAC,CACH,CAAC,CAAE,CAAC9B,UAAU,CAAEE,QAAQ,CAAC,CAAC,CAE1B,MAAO,CAAAlD,MAAA,CAAAY,OAAA,CAAAmE,aAAA,CAAC5E,YAAA,CAAA6E,IAAI,EAAC7B,KAAK,CAAE,CAACxB,MAAM,CAACG,SAAS,CAAE,CAAEyC,MAAM,CAAEf,aAAc,CAAC,CAAEL,KAAK,CAAE,CAAA8B,MAAA,CAAA7E,KAAA,CAAA8E,QAAA,EAAAC,QAAA,CAAA9E,YAAA,CAAA+E,UAAA,KAAAC,YAAA,KAAE,CAAC,CAC9E,CAAC,CAAC,IAAAC,QAAA,CAAAC,OAAA,CAAA3E,OAAA,CAEaiC,cAAc"}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.DetailLoanTima=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _mobxReactLite=require("mobx-react-lite");var _native=require("@react-navigation/native");var _reactNative=require("react-native");var _MText=require("../../components/MText");var _utils=require("../../utils");var _api=require("../../services/api");var _theme=require("../../theme");var _CommonStyles=require("../CommonStyles");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/screens/detail-loan/DetailLoanTima.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}var DetailLoanTima=exports.DetailLoanTima=(0,_mobxReactLite.observer)(function DetailLoanTima(props){var _props$route2,_props$route2$params,_props$route2$params$,_data$paymentSchedule,_this=this;var navigation=(0,_native.useNavigation)();var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),isLoading=_useState2[0],setIsLoading=_useState2[1];var _useState3=(0,_react.useState)(),_useState4=(0,_slicedToArray2.default)(_useState3,2),data=_useState4[0],setData=_useState4[1];var getData=function getData(){var _props$route,_props$route$params,_props$route$params$l;setIsLoading(true);_api.Api.getInstance().getPaymentScheduleTima((_props$route=props.route)==null?void 0:(_props$route$params=_props$route.params)==null?void 0:(_props$route$params$l=_props$route$params.loan)==null?void 0:_props$route$params$l.id).then(function(response){setIsLoading(false);if(response.kind==='ok'){if(response.data.meta.errorCode===200){var _response$data;setData((_response$data=response.data)==null?void 0:_response$data.data);}else{var _response$data2,_response$data2$meta;_reactNative.Alert.alert('Thông báo',response==null?void 0:(_response$data2=response.data)==null?void 0:(_response$data2$meta=_response$data2.meta)==null?void 0:_response$data2$meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');}}).catch(function(err){setIsLoading(false);_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');});};(0,_react.useEffect)(function(){getData();},[]);return _react.default.createElement(_reactNative.View,{style:{flex:1,backgroundColor:'#FDFDFD'},__self:this,__source:{fileName:_jsxFileName,lineNumber:53,columnNumber:5}},_react.default.createElement(_MHeader.default,{title:"\u0110\u01A1n vay "+((_props$route2=props.route)==null?void 0:(_props$route2$params=_props$route2.params)==null?void 0:(_props$route2$params$=_props$route2$params.loan)==null?void 0:_props$route2$params$.id),onBack:function onBack(){return navigation.goBack();},__self:this,__source:{fileName:_jsxFileName,lineNumber:54,columnNumber:7}}),_react.default.createElement(_reactNative.SafeAreaView,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:58,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',paddingHorizontal:16,marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:59,columnNumber:9}},_react.default.createElement(_MText.MText,{style:{color:'black',fontWeight:'600',width:'35%'},__self:this,__source:{fileName:_jsxFileName,lineNumber:67,columnNumber:11}},"Ng\xE0y thanh to\xE1n"),_react.default.createElement(_MText.MText,{style:{color:'black',fontWeight:'600',width:'35%',textAlign:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:76,columnNumber:11}},"S\u1ED1 ti\u1EC1n thanh to\xE1n")),_react.default.createElement(_reactNative.ScrollView,{style:{flex:1,paddingHorizontal:16,marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:87,columnNumber:9}},data==null?void 0:(_data$paymentSchedule=data.paymentSchedule)==null?void 0:_data$paymentSchedule.map(function(item,index){return _react.default.createElement(_reactNative.View,{key:index,style:{flexDirection:'row',paddingVertical:16,borderBottomWidth:1,borderColor:_theme.color.border},__self:_this,__source:{fileName:_jsxFileName,lineNumber:89,columnNumber:13}},_react.default.createElement(_MText.MText,{style:[{width:'35%'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:98,columnNumber:15}},item!=null&&item.daysPayable?(0,_utils.formatDDMMYYY)(item==null?void 0:item.daysPayable):''),_react.default.createElement(_reactNative.View,{style:{width:'35%',alignItems:'center'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:107,columnNumber:15}},_react.default.createElement(_MText.MText,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:113,columnNumber:17}},(0,_utils.formatMoney)(item==null?void 0:item.payMoney)," VN\u0110"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:!(item!=null&&item.done)?'#F05123':'#27AE60',marginTop:4}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:114,columnNumber:17}},!(item!=null&&item.done)?'Chưa thanh toán':'Đã thanh toán')),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'flex-end'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:127,columnNumber:15}},_react.default.createElement(_reactNative.TouchableOpacity,{disabled:item==null?void 0:item.done,style:{borderRadius:8,height:32,paddingHorizontal:16,alignItems:'center',justifyContent:'center',borderWidth:1,borderColor:!(item!=null&&item.done)?_theme.color.primary:'#333333'},onPress:function onPress(){var _props$route3,_props$route3$params,_props$route3$params$;return navigation.navigate('QrPayment',{item:item,data:data,id:(_props$route3=props.route)==null?void 0:(_props$route3$params=_props$route3.params)==null?void 0:(_props$route3$params$=_props$route3$params.loan)==null?void 0:_props$route3$params$.id});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:133,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{color:!(item!=null&&item.done)?_theme.color.primary:'#333333'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:152,columnNumber:19}},"Thanh to\xE1n"))));})),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:162,columnNumber:9}})));});
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.DetailLoanTima=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _mobxReactLite=require("mobx-react-lite");var _native=require("@react-navigation/native");var _reactNative=require("react-native");var _icons=require("../../assets/icons");var _MText=require("../../components/MText");var _utils=require("../../utils");var _api=require("../../services/api");var _theme=require("../../theme");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _reactNativeSafeAreaContext=require("react-native-safe-area-context");var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/screens/detail-loan/DetailLoanTima.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}var DetailLoanTima=exports.DetailLoanTima=(0,_mobxReactLite.observer)(function DetailLoanTima(props){var _data$paymentSchedule,_this=this;var insets=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)();var navigation=(0,_native.useNavigation)();var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),isLoading=_useState2[0],setIsLoading=_useState2[1];var _useState3=(0,_react.useState)(),_useState4=(0,_slicedToArray2.default)(_useState3,2),data=_useState4[0],setData=_useState4[1];var _useState5=(0,_react.useState)(0),_useState6=(0,_slicedToArray2.default)(_useState5,2),moneyCloseLoan=_useState6[0],setMoneyCloseLoan=_useState6[1];var getData=function _callee(){var _props$route,_props$route$params,_props$route$params$l;return _regenerator.default.async(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:setIsLoading(true);_api.Api.getInstance().getPaymentScheduleTima((_props$route=props.route)==null?void 0:(_props$route$params=_props$route.params)==null?void 0:(_props$route$params$l=_props$route$params.loan)==null?void 0:_props$route$params$l.id).then(function(response){setIsLoading(false);if(response.kind==='ok'){if(response.data.meta.errorCode===200){var _response$data;setData((_response$data=response.data)==null?void 0:_response$data.data);}else{var _response$data2,_response$data2$meta;_reactNative.Alert.alert('Thông báo',response==null?void 0:(_response$data2=response.data)==null?void 0:(_response$data2$meta=_response$data2.meta)==null?void 0:_response$data2$meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');}}).catch(function(err){setIsLoading(false);_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');});case 2:case"end":return _context.stop();}},null,null,null,Promise);};var getMoneyCloseLoan=function _callee2(){var _props$route2,_props$route2$params,_props$route2$params$,response,_response$data3,_response$data3$data;return _regenerator.default.async(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.prev=0;setIsLoading(true);_context2.next=4;return _regenerator.default.awrap(_api.Api.getInstance().getMoneyCloseLoan((_props$route2=props.route)==null?void 0:(_props$route2$params=_props$route2.params)==null?void 0:(_props$route2$params$=_props$route2$params.loan)==null?void 0:_props$route2$params$.id));case 4:response=_context2.sent;if(response.kind==='ok'&&response.data.meta.errorCode===200){setMoneyCloseLoan((_response$data3=response.data)==null?void 0:(_response$data3$data=_response$data3.data)==null?void 0:_response$data3$data.totalMoneyCloseLoan);}else{}_context2.next=10;break;case 8:_context2.prev=8;_context2.t0=_context2["catch"](0);case 10:_context2.prev=10;setIsLoading(false);return _context2.finish(10);case 13:case"end":return _context2.stop();}},null,null,[[0,8,10,13]],Promise);};(0,_react.useEffect)(function(){getData();getMoneyCloseLoan();},[]);return _react.default.createElement(_reactNative.View,{style:{flex:1,backgroundColor:'#FDFDFD'},__self:this,__source:{fileName:_jsxFileName,lineNumber:73,columnNumber:5}},_react.default.createElement(_MHeader.default,{title:"Vay tr\u1EF1c tuy\u1EBFn 24/7",__self:this,__source:{fileName:_jsxFileName,lineNumber:74,columnNumber:7}}),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:75,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:$header,__self:this,__source:{fileName:_jsxFileName,lineNumber:76,columnNumber:9}},_react.default.createElement(_reactNative.TouchableOpacity,{style:$backButton,onPress:function onPress(){return navigation.goBack();},__self:this,__source:{fileName:_jsxFileName,lineNumber:77,columnNumber:11}},_react.default.createElement(_icons.IconBack,{__self:this,__source:{fileName:_jsxFileName,lineNumber:81,columnNumber:13}})),_react.default.createElement(_MText.MText,{style:{fontSize:16,fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:83,columnNumber:11}},"HD-1043102")),_react.default.createElement(_reactNative.View,{style:{backgroundColor:'#ECFFE8',flexDirection:'row',alignItems:'center',paddingHorizontal:16,paddingVertical:8,justifyContent:'space-between'},__self:this,__source:{fileName:_jsxFileName,lineNumber:93,columnNumber:9}},_react.default.createElement(_MText.MText,{style:{fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:103,columnNumber:11}},"M\xE3 H\u0110 gi\u1EA3i ng\xE2n"),_react.default.createElement(_MText.MText,{style:{fontSize:12,fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:110,columnNumber:11}},"TC-",data==null?void 0:data.codeId)),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',paddingHorizontal:16,marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:120,columnNumber:9}},_react.default.createElement(_MText.MText,{style:{color:'black',fontWeight:'600',width:'35%',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:128,columnNumber:11}},"Ng\xE0y thanh to\xE1n"),_react.default.createElement(_MText.MText,{style:{color:'black',fontWeight:'600',width:'40%',textAlign:'center',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:138,columnNumber:11}},"S\u1ED1 ti\u1EC1n thanh to\xE1n")),_react.default.createElement(_reactNative.ScrollView,{style:{flex:1,paddingHorizontal:16,marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:150,columnNumber:9}},data==null?void 0:(_data$paymentSchedule=data.paymentSchedule)==null?void 0:_data$paymentSchedule.map(function(item,index){return _react.default.createElement(_reactNative.View,{key:index,style:{flexDirection:'row',paddingVertical:16,borderBottomWidth:1,borderColor:_theme.color.border},__self:_this,__source:{fileName:_jsxFileName,lineNumber:152,columnNumber:13}},_react.default.createElement(_MText.MText,{style:[{width:'35%'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:161,columnNumber:15}},item!=null&&item.daysPayable?(0,_utils.formatDDMMYYY)(item==null?void 0:item.daysPayable):''),_react.default.createElement(_reactNative.View,{style:{width:'40%',alignItems:'center'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:170,columnNumber:15}},_react.default.createElement(_MText.MText,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:176,columnNumber:17}},(0,_utils.formatMoney)(item==null?void 0:item.payMoney)," VN\u0110"),_react.default.createElement(_MText.MText,{style:[{color:!(item!=null&&item.done)?'#F05123':'#27AE60',marginTop:4,fontSize:12}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:177,columnNumber:17}},!(item!=null&&item.done)?'Chưa thanh toán':'Đã thanh toán')),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'flex-end'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:190,columnNumber:15}},!(item!=null&&item.done)&&_react.default.createElement(_reactNative.TouchableOpacity,{disabled:item==null?void 0:item.done,style:{borderRadius:8,height:30,paddingHorizontal:8,alignItems:'center',justifyContent:'center',borderWidth:1,borderColor:!(item!=null&&item.done)?_theme.color.primary:'#333333'},onPress:function onPress(){var _props$route3,_props$route3$params,_props$route3$params$;return navigation.navigate('ShowQrCode',{item:item,data:data,id:(_props$route3=props.route)==null?void 0:(_props$route3$params=_props$route3.params)==null?void 0:(_props$route3$params$=_props$route3$params.loan)==null?void 0:_props$route3$params$.id});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:197,columnNumber:19}},_react.default.createElement(_MText.MText,{style:{color:!(item!=null&&item.done)?_theme.color.primary:'#333333',fontSize:12},__self:_this,__source:{fileName:_jsxFileName,lineNumber:216,columnNumber:21}},"Thanh to\xE1n"))));}),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){var _props$route4,_props$route4$params,_props$route4$params$;return navigation.navigate('ShowQrCode',{data:data,id:(_props$route4=props.route)==null?void 0:(_props$route4$params=_props$route4.params)==null?void 0:(_props$route4$params$=_props$route4$params.loan)==null?void 0:_props$route4$params$.id,isFullPayment:true,totalMoney:moneyCloseLoan});},style:{backgroundColor:'#FFEAD8',marginTop:24,borderRadius:24,height:40,alignItems:'center',justifyContent:'center',borderWidth:1,borderColor:'#F05123',marginBottom:insets.bottom+24},__self:this,__source:{fileName:_jsxFileName,lineNumber:229,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'#F05123',fontWeight:'500',fontFamily:'BeVietnamPro-Medium'},__self:this,__source:{fileName:_jsxFileName,lineNumber:250,columnNumber:13}},"Xem th\xF4ng tin t\u1EA5t to\xE1n"))),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:261,columnNumber:9}})));});var $backButton={position:'absolute',left:16};var $header={flexDirection:'row',alignItems:'center',paddingVertical:16,justifyContent:'center'};
2
2
  //# sourceMappingURL=DetailLoanTima.js.map
@@ -4,10 +4,10 @@ import { observer } from 'mobx-react-lite';
4
4
  import { useNavigation } from '@react-navigation/native';
5
5
  import {
6
6
  Alert,
7
- SafeAreaView,
8
7
  ScrollView,
9
8
  TouchableOpacity,
10
9
  View,
10
+ ViewStyle,
11
11
  } from 'react-native';
12
12
  import { IconBack } from '../../assets/icons';
13
13
  import { MText } from '../../components/MText';
@@ -17,13 +17,16 @@ import { color } from '../../theme';
17
17
  import { commonStyles } from '../CommonStyles';
18
18
  import Loading from '../../components/Loading';
19
19
  import MHeader from '../../components/MHeader';
20
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
20
21
 
21
22
  export const DetailLoanTima = observer(function DetailLoanTima(props: any) {
23
+ const insets = useSafeAreaInsets();
22
24
  const navigation = useNavigation();
23
25
  const [isLoading, setIsLoading] = useState(false);
24
26
  const [data, setData] = useState<any>();
27
+ const [moneyCloseLoan, setMoneyCloseLoan] = useState(0);
25
28
 
26
- const getData = () => {
29
+ const getData = async () => {
27
30
  setIsLoading(true);
28
31
  Api.getInstance()
29
32
  .getPaymentScheduleTima(props.route?.params?.loan?.id)
@@ -45,17 +48,75 @@ export const DetailLoanTima = observer(function DetailLoanTima(props: any) {
45
48
  });
46
49
  };
47
50
 
51
+ const getMoneyCloseLoan = async () => {
52
+ try {
53
+ setIsLoading(true);
54
+ const response = await Api.getInstance().getMoneyCloseLoan(
55
+ props.route?.params?.loan?.id
56
+ );
57
+ if (response.kind === 'ok' && response.data.meta.errorCode === 200) {
58
+ setMoneyCloseLoan(response.data?.data?.totalMoneyCloseLoan);
59
+ } else {
60
+ }
61
+ } catch (error) {
62
+ } finally {
63
+ setIsLoading(false);
64
+ }
65
+ };
66
+
48
67
  useEffect(() => {
49
68
  getData();
69
+ getMoneyCloseLoan();
50
70
  }, []);
51
71
 
52
72
  return (
53
73
  <View style={{ flex: 1, backgroundColor: '#FDFDFD' }}>
54
- <MHeader
55
- title={`Đơn vay ${props.route?.params?.loan?.id}`}
56
- onBack={() => navigation.goBack()}
57
- />
58
- <SafeAreaView style={{ flex: 1 }}>
74
+ <MHeader title={`Vay trực tuyến 24/7`} />
75
+ <View style={{ flex: 1 }}>
76
+ <View style={$header}>
77
+ <TouchableOpacity
78
+ style={$backButton}
79
+ onPress={() => navigation.goBack()}
80
+ >
81
+ <IconBack />
82
+ </TouchableOpacity>
83
+ <MText
84
+ style={{
85
+ fontSize: 16,
86
+ fontWeight: '600',
87
+ fontFamily: 'BeVietnamPro-SemiBold',
88
+ }}
89
+ >
90
+ HD-1043102
91
+ </MText>
92
+ </View>
93
+ <View
94
+ style={{
95
+ backgroundColor: '#ECFFE8',
96
+ flexDirection: 'row',
97
+ alignItems: 'center',
98
+ paddingHorizontal: 16,
99
+ paddingVertical: 8,
100
+ justifyContent: 'space-between',
101
+ }}
102
+ >
103
+ <MText
104
+ style={{
105
+ fontSize: 12,
106
+ }}
107
+ >
108
+ Mã HĐ giải ngân
109
+ </MText>
110
+ <MText
111
+ style={{
112
+ fontSize: 12,
113
+ fontWeight: '600',
114
+ fontFamily: 'BeVietnamPro-SemiBold',
115
+ }}
116
+ >
117
+ TC-{data?.codeId}
118
+ </MText>
119
+ </View>
59
120
  <View
60
121
  style={{
61
122
  flexDirection: 'row',
@@ -69,6 +130,7 @@ export const DetailLoanTima = observer(function DetailLoanTima(props: any) {
69
130
  color: 'black',
70
131
  fontWeight: '600',
71
132
  width: '35%',
133
+ fontFamily: 'BeVietnamPro-SemiBold',
72
134
  }}
73
135
  >
74
136
  Ngày thanh toán
@@ -77,8 +139,9 @@ export const DetailLoanTima = observer(function DetailLoanTima(props: any) {
77
139
  style={{
78
140
  color: 'black',
79
141
  fontWeight: '600',
80
- width: '35%',
142
+ width: '40%',
81
143
  textAlign: 'center',
144
+ fontFamily: 'BeVietnamPro-SemiBold',
82
145
  }}
83
146
  >
84
147
  Số tiền thanh toán
@@ -106,17 +169,17 @@ export const DetailLoanTima = observer(function DetailLoanTima(props: any) {
106
169
  </MText>
107
170
  <View
108
171
  style={{
109
- width: '35%',
172
+ width: '40%',
110
173
  alignItems: 'center',
111
174
  }}
112
175
  >
113
176
  <MText>{formatMoney(item?.payMoney)} VNĐ</MText>
114
177
  <MText
115
178
  style={[
116
- commonStyles.textNormal,
117
179
  {
118
180
  color: !item?.done ? '#F05123' : '#27AE60',
119
181
  marginTop: 4,
182
+ fontSize: 12,
120
183
  },
121
184
  ]}
122
185
  >
@@ -130,37 +193,84 @@ export const DetailLoanTima = observer(function DetailLoanTima(props: any) {
130
193
  justifyContent: 'flex-end',
131
194
  }}
132
195
  >
133
- <TouchableOpacity
134
- disabled={item?.done}
135
- style={{
136
- borderRadius: 8,
137
- height: 32,
138
- paddingHorizontal: 16,
139
- alignItems: 'center',
140
- justifyContent: 'center',
141
- borderWidth: 1,
142
- borderColor: !item?.done ? color.primary : '#333333',
143
- }}
144
- onPress={() =>
145
- navigation.navigate('QrPayment', {
146
- item,
147
- data,
148
- id: props.route?.params?.loan?.id,
149
- })
150
- }
151
- >
152
- <MText
153
- style={{ color: !item?.done ? color.primary : '#333333' }}
196
+ {!item?.done && (
197
+ <TouchableOpacity
198
+ disabled={item?.done}
199
+ style={{
200
+ borderRadius: 8,
201
+ height: 30,
202
+ paddingHorizontal: 8,
203
+ alignItems: 'center',
204
+ justifyContent: 'center',
205
+ borderWidth: 1,
206
+ borderColor: !item?.done ? color.primary : '#333333',
207
+ }}
208
+ onPress={() =>
209
+ navigation.navigate('ShowQrCode', {
210
+ item,
211
+ data,
212
+ id: props.route?.params?.loan?.id,
213
+ })
214
+ }
154
215
  >
155
- Thanh toán
156
- </MText>
157
- </TouchableOpacity>
216
+ <MText
217
+ style={{
218
+ color: !item?.done ? color.primary : '#333333',
219
+ fontSize: 12,
220
+ }}
221
+ >
222
+ Thanh toán
223
+ </MText>
224
+ </TouchableOpacity>
225
+ )}
158
226
  </View>
159
227
  </View>
160
228
  ))}
229
+ <TouchableOpacity
230
+ onPress={() =>
231
+ navigation.navigate('ShowQrCode', {
232
+ data,
233
+ id: props.route?.params?.loan?.id,
234
+ isFullPayment: true,
235
+ totalMoney: moneyCloseLoan,
236
+ })
237
+ }
238
+ style={{
239
+ backgroundColor: '#FFEAD8',
240
+ marginTop: 24,
241
+ borderRadius: 24,
242
+ height: 40,
243
+ alignItems: 'center',
244
+ justifyContent: 'center',
245
+ borderWidth: 1,
246
+ borderColor: '#F05123',
247
+ marginBottom: insets.bottom + 24,
248
+ }}
249
+ >
250
+ <MText
251
+ style={{
252
+ color: '#F05123',
253
+ fontWeight: '500',
254
+ fontFamily: 'BeVietnamPro-Medium',
255
+ }}
256
+ >
257
+ Xem thông tin tất toán
258
+ </MText>
259
+ </TouchableOpacity>
161
260
  </ScrollView>
162
261
  <Loading isLoading={isLoading} />
163
- </SafeAreaView>
262
+ </View>
164
263
  </View>
165
264
  );
166
265
  });
266
+ const $backButton: ViewStyle = {
267
+ position: 'absolute',
268
+ left: 16,
269
+ };
270
+
271
+ const $header: ViewStyle = {
272
+ flexDirection: 'row',
273
+ alignItems: 'center',
274
+ paddingVertical: 16,
275
+ justifyContent: 'center',
276
+ };
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_mobxReactLite","_native","_reactNative","_MText","_utils","_api","_theme","_CommonStyles","_Loading","_interopRequireDefault","_MHeader","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","DetailLoanTima","exports","observer","props","_props$route2","_props$route2$params","_props$route2$params$","_data$paymentSchedule","_this","navigation","useNavigation","_useState","useState","_useState2","_slicedToArray2","isLoading","setIsLoading","_useState3","_useState4","data","setData","getData","_props$route","_props$route$params","_props$route$params$l","Api","getInstance","getPaymentScheduleTima","route","params","loan","id","then","response","kind","meta","errorCode","_response$data","_response$data2","_response$data2$meta","Alert","alert","errorMessage","catch","err","useEffect","createElement","View","style","flex","backgroundColor","__self","__source","fileName","lineNumber","columnNumber","title","onBack","goBack","SafeAreaView","flexDirection","alignItems","paddingHorizontal","marginTop","MText","color","fontWeight","width","textAlign","ScrollView","paymentSchedule","map","item","index","key","paddingVertical","borderBottomWidth","borderColor","border","daysPayable","formatDDMMYYY","formatMoney","payMoney","commonStyles","textNormal","done","justifyContent","TouchableOpacity","disabled","borderRadius","height","borderWidth","primary","onPress","_props$route3","_props$route3$params","_props$route3$params$","navigate"],"sourceRoot":"../../../../src","sources":["screens/detail-loan/DetailLoanTima.tsx"],"mappings":"sQACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,cAAA,CAAAD,OAAA,oBACA,IAAAE,OAAA,CAAAF,OAAA,6BACA,IAAAG,YAAA,CAAAH,OAAA,iBAQA,IAAAI,MAAA,CAAAJ,OAAA,2BACA,IAAAK,MAAA,CAAAL,OAAA,gBACA,IAAAM,IAAA,CAAAN,OAAA,uBACA,IAAAO,MAAA,CAAAP,OAAA,gBACA,IAAAQ,aAAA,CAAAR,OAAA,oBACA,IAAAS,QAAA,CAAAC,sBAAA,CAAAV,OAAA,8BACA,IAAAW,QAAA,CAAAD,sBAAA,CAAAV,OAAA,8BAA+C,IAAAY,YAAA,mGAAAC,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,YAAAf,wBAAAe,CAAA,CAAAE,CAAA,MAAAA,CAAA,EAAAF,CAAA,EAAAA,CAAA,CAAAI,UAAA,QAAAJ,CAAA,WAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAK,OAAA,CAAAL,CAAA,MAAAG,CAAA,CAAAJ,wBAAA,CAAAG,CAAA,KAAAC,CAAA,EAAAA,CAAA,CAAAG,GAAA,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K,CAAE,CAAEiB,KAAK,CAAE,EAACO,IAAI,QAAJA,IAAI,CAAEa,IAAI,EAAGpB,YAAK,CAAC2B,OAAO,CAAG,SAAU,CAAE,CAAAzC,MAAA,CAAA3C,KAAA,CAAA4C,QAAA,EAAAC,QAAA,CAAA3E,YAAA,CAAA4E,UAAA,KAAAC,YAAA,MAC3D,eAEM,CACS,CACd,CACF,CAAC,EACR,CACS,CAAC,CACb3F,MAAA,CAAAqB,OAAA,CAAA6D,aAAA,CAACvE,QAAA,CAAAU,OAAO,EAAC8B,SAAS,CAAEA,SAAU,CAAAoC,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA3E,YAAA,CAAA4E,UAAA,KAAAC,YAAA,IAAE,CACpB,CACV,CAAC,CAEX,CAAC,CAAC"}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_mobxReactLite","_native","_reactNative","_icons","_MText","_utils","_api","_theme","_Loading","_interopRequireDefault","_MHeader","_reactNativeSafeAreaContext","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","DetailLoanTima","exports","observer","props","_data$paymentSchedule","_this","insets","useSafeAreaInsets","navigation","useNavigation","_useState","useState","_useState2","_slicedToArray2","isLoading","setIsLoading","_useState3","_useState4","data","setData","_useState5","_useState6","moneyCloseLoan","setMoneyCloseLoan","getData","_callee","_props$route","_props$route$params","_props$route$params$l","_regenerator","async","_callee$","_context","prev","next","Api","getInstance","getPaymentScheduleTima","route","params","loan","id","then","response","kind","meta","errorCode","_response$data","_response$data2","_response$data2$meta","Alert","alert","errorMessage","catch","err","stop","Promise","getMoneyCloseLoan","_callee2","_props$route2","_props$route2$params","_props$route2$params$","_response$data3","_response$data3$data","_callee2$","_context2","awrap","sent","totalMoneyCloseLoan","t0","finish","useEffect","createElement","View","style","flex","backgroundColor","__self","__source","fileName","lineNumber","columnNumber","title","$header","TouchableOpacity","$backButton","onPress","goBack","IconBack","MText","fontSize","fontWeight","fontFamily","flexDirection","alignItems","paddingHorizontal","paddingVertical","justifyContent","codeId","marginTop","color","width","textAlign","ScrollView","paymentSchedule","map","item","index","key","borderBottomWidth","borderColor","border","daysPayable","formatDDMMYYY","formatMoney","payMoney","done","disabled","borderRadius","height","borderWidth","primary","_props$route3","_props$route3$params","_props$route3$params$","navigate","_props$route4","_props$route4$params","_props$route4$params$","isFullPayment","totalMoney","marginBottom","bottom","position","left"],"sourceRoot":"../../../../src","sources":["screens/detail-loan/DetailLoanTima.tsx"],"mappings":"qVACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,cAAA,CAAAD,OAAA,oBACA,IAAAE,OAAA,CAAAF,OAAA,6BACA,IAAAG,YAAA,CAAAH,OAAA,iBAOA,IAAAI,MAAA,CAAAJ,OAAA,uBACA,IAAAK,MAAA,CAAAL,OAAA,2BACA,IAAAM,MAAA,CAAAN,OAAA,gBACA,IAAAO,IAAA,CAAAP,OAAA,uBACA,IAAAQ,MAAA,CAAAR,OAAA,gBAEA,IAAAS,QAAA,CAAAC,sBAAA,CAAAV,OAAA,8BACA,IAAAW,QAAA,CAAAD,sBAAA,CAAAV,OAAA,8BACA,IAAAY,2BAAA,CAAAZ,OAAA,mCAAmE,IAAAa,YAAA,mGAAAC,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,YAAAhB,wBAAAgB,CAAA,CAAAE,CAAA,MAAAA,CAAA,EAAAF,CAAA,EAAAA,CAAA,CAAAI,UAAA,QAAAJ,CAAA,WAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAK,OAAA,CAAAL,CAAA,MAAAG,CAAA,CAAAJ,wBAAA,CAAAG,CAAA,KAAAC,CAA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AE,QAAQ,CACpBE,eAAe,CAAE,EAAE,CACnBC,cAAc,CAAE,QAClB,CAAC"}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Info=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _native=require("@react-navigation/native");var _mobxReactLite=require("mobx-react-lite");var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _icons=require("../../assets/icons");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _MText=require("../../components/MText");var _navigation=require("../../navigation");var _utils=require("../../utils");var _CommonStyles=require("../CommonStyles");var _store=_interopRequireDefault(require("./store"));var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/screens/detail-loan/Info.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}var Info=exports.Info=(0,_mobxReactLite.observer)(function Info(_ref){var loan=_ref.loan;var navigation=(0,_native.useNavigation)();var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),isShow=_useState2[0],setIsShow=_useState2[1];var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),isLoading=_useState4[0],setIsLoading=_useState4[1];var _useState5=(0,_react.useState)(),_useState6=(0,_slicedToArray2.default)(_useState5,2),data=_useState6[0],setData=_useState6[1];var copyToClipboard=function copyToClipboard(string){_reactNative.Clipboard.setString(string);};var getData=function getData(){setIsLoading(true);_store.default.getDetailLoan(loan==null?void 0:loan.id,function(res){setIsLoading(false);setData(res);},function(){setIsLoading(false);});};(0,_react.useEffect)(function(){if(loan){getData();}},[loan]);return _react.default.createElement(_reactNative.View,{style:{margin:16,flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:54,columnNumber:5}},_react.default.createElement(_reactNative.ScrollView,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:55,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{borderWidth:1,borderColor:'#E0E0E0',backgroundColor:'white',padding:16,borderRadius:8,marginBottom:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:56,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between'},__self:this,__source:{fileName:_jsxFileName,lineNumber:66,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{paddingRight:15}],__self:this,__source:{fileName:_jsxFileName,lineNumber:69,columnNumber:13}},"M\xE3 \u0111\u01A1n vay gi\u1EA3i ng\xE2n"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{}],__self:this,__source:{fileName:_jsxFileName,lineNumber:72,columnNumber:13}},"TC-",data==null?void 0:data.codeId)),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:76,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{paddingRight:15}],__self:this,__source:{fileName:_jsxFileName,lineNumber:83,columnNumber:13}},"M\xE3 \u0111\u01A1n vay CIMB"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{}],__self:this,__source:{fileName:_jsxFileName,lineNumber:86,columnNumber:13}},data==null?void 0:data.cimbLoan)),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:90,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{paddingRight:15}],__self:this,__source:{fileName:_jsxFileName,lineNumber:97,columnNumber:13}},"S\u1ED1 ti\u1EC1n gi\u1EA3i ng\xE2n"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{}],__self:this,__source:{fileName:_jsxFileName,lineNumber:100,columnNumber:13}},(0,_utils.formatMoney)(data==null?void 0:data.loanAmount)," VND")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:104,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{paddingRight:15}],__self:this,__source:{fileName:_jsxFileName,lineNumber:111,columnNumber:13}},"Th\u1EDDi h\u1EA1n"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{}],__self:this,__source:{fileName:_jsxFileName,lineNumber:114,columnNumber:13}},data==null?void 0:data.loanTime," th\xE1ng")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:118,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{paddingRight:15}],__self:this,__source:{fileName:_jsxFileName,lineNumber:125,columnNumber:13}},"Ng\xE0y gi\u1EA3i ng\xE2n"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{}],__self:this,__source:{fileName:_jsxFileName,lineNumber:128,columnNumber:13}},(0,_utils.formatDDMMYYY)(data==null?void 0:data.disbursementAt))),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:132,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{paddingRight:15}],__self:this,__source:{fileName:_jsxFileName,lineNumber:139,columnNumber:13}},"Ng\xE0y \u0111\u1EBFn h\u1EA1n ti\u1EBFp theo"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{}],__self:this,__source:{fileName:_jsxFileName,lineNumber:142,columnNumber:13}},(0,_utils.formatDDMMYYY)(data==null?void 0:data.nextDate))),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:146,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{paddingRight:15}],__self:this,__source:{fileName:_jsxFileName,lineNumber:153,columnNumber:13}},"Tr\u1EA1ng th\xE1i \u0110\u01A1n vay"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{}],__self:this,__source:{fileName:_jsxFileName,lineNumber:156,columnNumber:13}},data==null?void 0:data.status))),_react.default.createElement(_reactNative.View,{style:{borderWidth:1,borderColor:'#E0E0E0',backgroundColor:'white',padding:16,borderRadius:8,marginBottom:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:161,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between'},__self:this,__source:{fileName:_jsxFileName,lineNumber:171,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#333333'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:174,columnNumber:13}},"T\u1ED5ng ph\u1EA3i tr\u1EA3"),_react.default.createElement(_reactNative.TouchableOpacity,{style:{flexDirection:'row',alignItems:'center'},onPress:function onPress(){return setIsShow(!isShow);},__self:this,__source:{fileName:_jsxFileName,lineNumber:177,columnNumber:13}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{color:'#F05123',paddingRight:5}],__self:this,__source:{fileName:_jsxFileName,lineNumber:181,columnNumber:15}},(0,_utils.formatMoney)((data==null?void 0:data.totalMoneyCIMB)+(data==null?void 0:data.totalMoneyTima))," VN\u0110"),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return setIsShow(!isShow);},__self:this,__source:{fileName:_jsxFileName,lineNumber:189,columnNumber:15}},_react.default.createElement(_icons.SpanIcon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:190,columnNumber:17}})))),isShow&&_react.default.createElement(_reactNative.View,{style:{paddingHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:195,columnNumber:13}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:196,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:203,columnNumber:17}},"Ngh\u0129a v\u1EE5 ph\u1EA3i tr\u1EA3 Tima"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:206,columnNumber:17}},(0,_utils.formatMoney)(data==null?void 0:data.totalMoneyTima)," VN\u0110")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:211,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282',marginLeft:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:218,columnNumber:17}},"Ph\xED ph\u1EA3i thanh to\xE1n"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:226,columnNumber:17}},(0,_utils.formatMoney)(data==null?void 0:data.timaMoneyConsultant)," VN\u0110")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:230,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282',marginLeft:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:237,columnNumber:17}},"Ph\xED ph\u1EA1t tr\u1EA3 ch\u1EADm"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:245,columnNumber:17}},(0,_utils.formatMoney)(data==null?void 0:data.timaMoneyFineLate)," VN\u0110")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:252,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:259,columnNumber:17}},"Ti\u1EC1n ph\u1EA3i thanh to\xE1n CIMB"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:262,columnNumber:17}},(0,_utils.formatMoney)(data==null?void 0:data.totalMoneyCIMB)," VN\u0110")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:266,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282',marginLeft:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:273,columnNumber:17}},"G\u1ED1c ph\u1EA3i thanh to\xE1n"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:281,columnNumber:17}},(0,_utils.formatMoney)(data==null?void 0:data.moneyOriginal)," VN\u0110")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:285,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282',marginLeft:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:292,columnNumber:17}},"L\xE3i ph\u1EA3i thanh to\xE1n"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:300,columnNumber:17}},(0,_utils.formatMoney)(data==null?void 0:data.moneyInterest)," VN\u0110")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:304,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282',marginLeft:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:311,columnNumber:17}},"Ph\xED ph\u1EA1t tr\u1EA3 ch\u1EADm"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:319,columnNumber:17}},(0,_utils.formatMoney)(data==null?void 0:data.moneyFineInterestLate)," VN\u0110")),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#E0E0E0',marginHorizontal:-16,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:323,columnNumber:15}})),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:333,columnNumber:11}},_react.default.createElement(_MText.MText,{__self:this,__source:{fileName:_jsxFileName,lineNumber:340,columnNumber:13}},"Tr\u1EA1ng th\xE1i"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#F05123'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:341,columnNumber:13}},"Ch\u01B0a thanh to\xE1n")))),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.PaymentInfo,{loan:data,isFull:false}));},__self:this,__source:{fileName:_jsxFileName,lineNumber:347,columnNumber:7}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF7A00','#EF4123'],style:{borderRadius:30,paddingHorizontal:24,alignItems:'center',justifyContent:'center',height:40},__self:this,__source:{fileName:_jsxFileName,lineNumber:357,columnNumber:9}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{color:'#FDFDFD'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:367,columnNumber:11}},"Thanh to\xE1n"))),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:372,columnNumber:7}}));});
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Info=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _native=require("@react-navigation/native");var _mobxReactLite=require("mobx-react-lite");var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _icons=require("../../assets/icons");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _MText=require("../../components/MText");var _navigation=require("../../navigation");var _utils=require("../../utils");var _CommonStyles=require("../CommonStyles");var _store=_interopRequireDefault(require("./store"));var _reactNativeSafeAreaContext=require("react-native-safe-area-context");var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/screens/detail-loan/Info.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}var Info=exports.Info=(0,_mobxReactLite.observer)(function Info(_ref){var loan=_ref.loan;var insets=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)();var navigation=(0,_native.useNavigation)();var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),isShow=_useState2[0],setIsShow=_useState2[1];var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),isLoading=_useState4[0],setIsLoading=_useState4[1];var _useState5=(0,_react.useState)(),_useState6=(0,_slicedToArray2.default)(_useState5,2),data=_useState6[0],setData=_useState6[1];var copyToClipboard=function copyToClipboard(string){_reactNative.Clipboard.setString(string);};var getData=function getData(){setIsLoading(true);_store.default.getDetailLoan(loan==null?void 0:loan.id,function(res){setIsLoading(false);setData(res);},function(){setIsLoading(false);});};(0,_react.useEffect)(function(){if(loan){getData();}},[loan]);return _react.default.createElement(_reactNative.View,{style:{margin:16,flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:50,columnNumber:5}},_react.default.createElement(_reactNative.ScrollView,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:51,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{borderWidth:1,borderColor:'#E0E0E0',backgroundColor:'white',padding:16,borderRadius:8,marginBottom:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:52,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between'},__self:this,__source:{fileName:_jsxFileName,lineNumber:62,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{paddingRight:15}],__self:this,__source:{fileName:_jsxFileName,lineNumber:65,columnNumber:13}},"M\xE3 \u0111\u01A1n vay gi\u1EA3i ng\xE2n"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{}],__self:this,__source:{fileName:_jsxFileName,lineNumber:68,columnNumber:13}},"TC-",data==null?void 0:data.codeId)),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:72,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{paddingRight:15}],__self:this,__source:{fileName:_jsxFileName,lineNumber:79,columnNumber:13}},"M\xE3 \u0111\u01A1n vay CIMB"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{}],__self:this,__source:{fileName:_jsxFileName,lineNumber:82,columnNumber:13}},data==null?void 0:data.cimbLoan)),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:86,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{paddingRight:15}],__self:this,__source:{fileName:_jsxFileName,lineNumber:93,columnNumber:13}},"S\u1ED1 ti\u1EC1n gi\u1EA3i ng\xE2n"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{}],__self:this,__source:{fileName:_jsxFileName,lineNumber:96,columnNumber:13}},(0,_utils.formatMoney)(data==null?void 0:data.loanAmount)," VND")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:100,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{paddingRight:15}],__self:this,__source:{fileName:_jsxFileName,lineNumber:107,columnNumber:13}},"Th\u1EDDi h\u1EA1n"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{}],__self:this,__source:{fileName:_jsxFileName,lineNumber:110,columnNumber:13}},data==null?void 0:data.loanTime," th\xE1ng")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:114,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{paddingRight:15}],__self:this,__source:{fileName:_jsxFileName,lineNumber:121,columnNumber:13}},"Ng\xE0y gi\u1EA3i ng\xE2n"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{}],__self:this,__source:{fileName:_jsxFileName,lineNumber:124,columnNumber:13}},(0,_utils.formatDDMMYYY)(data==null?void 0:data.disbursementAt))),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:128,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{paddingRight:15}],__self:this,__source:{fileName:_jsxFileName,lineNumber:135,columnNumber:13}},"Ng\xE0y \u0111\u1EBFn h\u1EA1n ti\u1EBFp theo"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{}],__self:this,__source:{fileName:_jsxFileName,lineNumber:138,columnNumber:13}},(0,_utils.formatDDMMYYY)(data==null?void 0:data.nextDate))),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:142,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{paddingRight:15}],__self:this,__source:{fileName:_jsxFileName,lineNumber:149,columnNumber:13}},"Tr\u1EA1ng th\xE1i \u0110\u01A1n vay"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{}],__self:this,__source:{fileName:_jsxFileName,lineNumber:152,columnNumber:13}},data==null?void 0:data.status))),_react.default.createElement(_reactNative.View,{style:{borderWidth:1,borderColor:'#E0E0E0',backgroundColor:'white',padding:16,borderRadius:8,marginBottom:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:157,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between'},__self:this,__source:{fileName:_jsxFileName,lineNumber:167,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#333333'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:170,columnNumber:13}},"T\u1ED5ng ph\u1EA3i tr\u1EA3"),_react.default.createElement(_reactNative.TouchableOpacity,{style:{flexDirection:'row',alignItems:'center'},onPress:function onPress(){return setIsShow(!isShow);},__self:this,__source:{fileName:_jsxFileName,lineNumber:173,columnNumber:13}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{color:'#F05123',paddingRight:5}],__self:this,__source:{fileName:_jsxFileName,lineNumber:177,columnNumber:15}},(0,_utils.formatMoney)((data==null?void 0:data.totalMoneyCIMB)+(data==null?void 0:data.totalMoneyTima))," VN\u0110"),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return setIsShow(!isShow);},__self:this,__source:{fileName:_jsxFileName,lineNumber:185,columnNumber:15}},_react.default.createElement(_icons.SpanIcon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:186,columnNumber:17}})))),isShow&&_react.default.createElement(_reactNative.View,{style:{paddingHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:191,columnNumber:13}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:192,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:199,columnNumber:17}},"Ngh\u0129a v\u1EE5 ph\u1EA3i tr\u1EA3 Tima"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:202,columnNumber:17}},(0,_utils.formatMoney)(data==null?void 0:data.totalMoneyTima)," VN\u0110")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:207,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282',marginLeft:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:214,columnNumber:17}},"Ph\xED ph\u1EA3i thanh to\xE1n"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:222,columnNumber:17}},(0,_utils.formatMoney)(data==null?void 0:data.timaMoneyConsultant)," VN\u0110")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:226,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282',marginLeft:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:233,columnNumber:17}},"Ph\xED ph\u1EA1t tr\u1EA3 ch\u1EADm"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:241,columnNumber:17}},(0,_utils.formatMoney)(data==null?void 0:data.timaMoneyFineLate)," VN\u0110")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:248,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:255,columnNumber:17}},"Ti\u1EC1n ph\u1EA3i thanh to\xE1n CIMB"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:258,columnNumber:17}},(0,_utils.formatMoney)(data==null?void 0:data.totalMoneyCIMB)," VN\u0110")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:262,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282',marginLeft:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:269,columnNumber:17}},"G\u1ED1c ph\u1EA3i thanh to\xE1n"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:277,columnNumber:17}},(0,_utils.formatMoney)(data==null?void 0:data.moneyOriginal)," VN\u0110")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:281,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282',marginLeft:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:288,columnNumber:17}},"L\xE3i ph\u1EA3i thanh to\xE1n"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:296,columnNumber:17}},(0,_utils.formatMoney)(data==null?void 0:data.moneyInterest)," VN\u0110")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:300,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282',marginLeft:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:307,columnNumber:17}},"Ph\xED ph\u1EA1t tr\u1EA3 ch\u1EADm"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#828282'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:315,columnNumber:17}},(0,_utils.formatMoney)(data==null?void 0:data.moneyFineInterestLate)," VN\u0110")),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#E0E0E0',marginHorizontal:-16,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:319,columnNumber:15}})),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:329,columnNumber:11}},_react.default.createElement(_MText.MText,{__self:this,__source:{fileName:_jsxFileName,lineNumber:336,columnNumber:13}},"Tr\u1EA1ng th\xE1i"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#F05123'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:337,columnNumber:13}},"Ch\u01B0a thanh to\xE1n")))),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.PaymentInfo,{loan:data,isFull:false}));},__self:this,__source:{fileName:_jsxFileName,lineNumber:343,columnNumber:7}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF7A00','#EF4123'],style:{borderRadius:30,paddingHorizontal:24,alignItems:'center',justifyContent:'center',height:40},__self:this,__source:{fileName:_jsxFileName,lineNumber:353,columnNumber:9}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{color:'#FDFDFD'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:363,columnNumber:11}},"Thanh to\xE1n"))),_react.default.createElement(_reactNative.View,{style:{marginBottom:insets.bottom,marginTop:8,flexDirection:'row',justifyContent:'center',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:368,columnNumber:7}},_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:377,columnNumber:9}},"Cung c\u1EA5p b\u1EDFi "),_react.default.createElement(_icons.CIMBBank,{__self:this,__source:{fileName:_jsxFileName,lineNumber:378,columnNumber:9}})),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:380,columnNumber:7}}));});
2
2
  //# sourceMappingURL=Info.js.map
@@ -1,27 +1,23 @@
1
- //@ts-nocheck
1
+ // @ts-nocheck
2
2
  import { StackActions, useNavigation } from '@react-navigation/native';
3
3
  import { observer } from 'mobx-react-lite';
4
4
  import React, { useEffect, useState } from 'react';
5
5
  import { Clipboard, ScrollView, TouchableOpacity, View } from 'react-native';
6
6
  import LinearGradient from 'react-native-linear-gradient';
7
- import {
8
- CIMBBank,
9
- IconCopy,
10
- IconTechcombank,
11
- SpanIcon,
12
- } from '../../assets/icons';
13
- import { Button } from '../../components';
7
+ import { CIMBBank, SpanIcon } from '../../assets/icons';
14
8
  import Loading from '../../components/Loading';
15
9
  import { MText } from '../../components/MText';
16
10
  import { ScreenNames } from '../../navigation';
17
11
  import { formatDDMMYYY, formatMoney } from '../../utils';
18
12
  import { commonStyles } from '../CommonStyles';
19
13
  import DetailLoanStore from './store';
14
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
20
15
 
21
16
  interface IProps {
22
17
  loan: any;
23
18
  }
24
19
  export const Info = observer(function Info({ loan }: IProps) {
20
+ const insets = useSafeAreaInsets();
25
21
  const navigation = useNavigation();
26
22
  const [isShow, setIsShow] = useState(false);
27
23
  const [isLoading, setIsLoading] = useState(false);
@@ -369,6 +365,18 @@ export const Info = observer(function Info({ loan }: IProps) {
369
365
  </MText>
370
366
  </LinearGradient>
371
367
  </TouchableOpacity>
368
+ <View
369
+ style={{
370
+ marginBottom: insets.bottom,
371
+ marginTop: 8,
372
+ flexDirection: 'row',
373
+ justifyContent: 'center',
374
+ alignItems: 'center',
375
+ }}
376
+ >
377
+ <MText style={{ fontSize: 12, color: '#333333' }}>Cung cấp bởi </MText>
378
+ <CIMBBank />
379
+ </View>
372
380
  <Loading isLoading={isLoading} />
373
381
  </View>
374
382
  );