react-native-timacare 3.1.66 → 3.1.68

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 (250) hide show
  1. package/lib/commonjs/AppStore.js +1 -1
  2. package/lib/commonjs/AppStore.js.flow +4 -2
  3. package/lib/commonjs/AppStore.js.map +1 -1
  4. package/lib/commonjs/assets/v3/home.svg +5 -0
  5. package/lib/commonjs/assets/v3/index.js +2 -0
  6. package/lib/commonjs/assets/v3/index.js.flow +38 -0
  7. package/lib/commonjs/assets/v3/index.js.map +1 -0
  8. package/lib/commonjs/assets/v3/option1.svg +27 -0
  9. package/lib/commonjs/assets/v3/option2.svg +25 -0
  10. package/lib/commonjs/assets/v3/step1-success.svg +39 -0
  11. package/lib/commonjs/assets/v3/step1.svg +90 -0
  12. package/lib/commonjs/assets/v3/step2-disable.svg +14 -0
  13. package/lib/commonjs/assets/v3/step2-success.svg +8 -0
  14. package/lib/commonjs/assets/v3/step2.svg +37 -0
  15. package/lib/commonjs/assets/v3/step3-disable.svg +17 -0
  16. package/lib/commonjs/assets/v3/step3-success.svg +17 -0
  17. package/lib/commonjs/assets/v3/step3.svg +45 -0
  18. package/lib/commonjs/assets/v3/step4-disable.svg +11 -0
  19. package/lib/commonjs/assets/v3/step4-success.svg +11 -0
  20. package/lib/commonjs/assets/v3/step4.svg +29 -0
  21. package/lib/commonjs/assets/v3/step5-disable.svg +17 -0
  22. package/lib/commonjs/assets/v3/step5-success.svg +17 -0
  23. package/lib/commonjs/assets/v3/step5.svg +45 -0
  24. package/lib/commonjs/components/ItemTimaOneV2.js +2 -0
  25. package/lib/commonjs/components/ItemTimaOneV2.js.flow +617 -0
  26. package/lib/commonjs/components/ItemTimaOneV2.js.map +1 -0
  27. package/lib/commonjs/components/ItemTimaOneV3.js +2 -0
  28. package/lib/commonjs/components/ItemTimaOneV3.js.flow +563 -0
  29. package/lib/commonjs/components/ItemTimaOneV3.js.map +1 -0
  30. package/lib/commonjs/components/MText.js +1 -1
  31. package/lib/commonjs/components/MText.js.flow +1 -1
  32. package/lib/commonjs/components/ModalOptionLoan.js +2 -0
  33. package/lib/commonjs/components/ModalOptionLoan.js.flow +247 -0
  34. package/lib/commonjs/components/ModalOptionLoan.js.map +1 -0
  35. package/lib/commonjs/navigation/primary-navigator.js +1 -1
  36. package/lib/commonjs/navigation/primary-navigator.js.flow +12 -0
  37. package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
  38. package/lib/commonjs/screens/eSign/index.js +1 -1
  39. package/lib/commonjs/screens/eSign/index.js.flow +22 -16
  40. package/lib/commonjs/screens/eSign/index.js.map +1 -1
  41. package/lib/commonjs/screens/home/index.js +1 -1
  42. package/lib/commonjs/screens/home/index.js.flow +64 -625
  43. package/lib/commonjs/screens/home/index.js.map +1 -1
  44. package/lib/commonjs/screens/mySignViettel/Layer_3.png +0 -0
  45. package/lib/commonjs/screens/mySignViettel/index.js +2 -0
  46. package/lib/commonjs/screens/mySignViettel/index.js.flow +278 -0
  47. package/lib/commonjs/screens/mySignViettel/index.js.map +1 -0
  48. package/lib/commonjs/screens/sign-tima/ViewContract.js +1 -1
  49. package/lib/commonjs/screens/sign-tima/ViewContract.js.flow +22 -16
  50. package/lib/commonjs/screens/sign-tima/ViewContract.js.map +1 -1
  51. package/lib/commonjs/screens/toan-trinh-so/OCR.js +1 -1
  52. package/lib/commonjs/screens/toan-trinh-so/OCR.js.flow +1 -1
  53. package/lib/commonjs/screens/toan-trinh-so/OCR.js.map +1 -1
  54. package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js +1 -1
  55. package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js.flow +9 -2
  56. package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js.map +1 -1
  57. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js +1 -1
  58. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.flow +110 -7
  59. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
  60. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
  61. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.flow +9 -8
  62. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
  63. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js +1 -1
  64. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.flow +43 -169
  65. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
  66. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js +1 -1
  67. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.flow +1 -1
  68. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -1
  69. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js +1 -1
  70. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.flow +1 -1
  71. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -1
  72. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js +1 -1
  73. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.flow +17 -14
  74. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
  75. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js +1 -1
  76. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.flow +38 -19
  77. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
  78. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js +1 -1
  79. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.flow +133 -43
  80. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
  81. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js +1 -1
  82. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.flow +1 -1
  83. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.map +1 -1
  84. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js +1 -1
  85. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.flow +1 -1
  86. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
  87. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js +1 -1
  88. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.flow +1 -1
  89. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
  90. package/lib/commonjs/screens/toan-trinh-so/store.js +1 -1
  91. package/lib/commonjs/screens/toan-trinh-so/store.js.flow +1 -1
  92. package/lib/commonjs/screens/toan-trinh-so/store.js.map +1 -1
  93. package/lib/commonjs/screens/v3/AssetInformation.js +2 -0
  94. package/lib/commonjs/screens/v3/AssetInformation.js.flow +690 -0
  95. package/lib/commonjs/screens/v3/AssetInformation.js.map +1 -0
  96. package/lib/commonjs/services/api/api.js +1 -1
  97. package/lib/commonjs/services/api/api.js.flow +196 -0
  98. package/lib/commonjs/services/api/api.js.map +1 -1
  99. package/lib/commonjs/utils/index.js +1 -1
  100. package/lib/commonjs/utils/index.js.flow +2 -0
  101. package/lib/commonjs/utils/index.js.map +1 -1
  102. package/lib/module/AppStore.js +1 -1
  103. package/lib/module/AppStore.js.map +1 -1
  104. package/lib/module/assets/v3/home.svg +5 -0
  105. package/lib/module/assets/v3/index.js +2 -0
  106. package/lib/module/assets/v3/index.js.map +1 -0
  107. package/lib/module/assets/v3/option1.svg +27 -0
  108. package/lib/module/assets/v3/option2.svg +25 -0
  109. package/lib/module/assets/v3/step1-success.svg +39 -0
  110. package/lib/module/assets/v3/step1.svg +90 -0
  111. package/lib/module/assets/v3/step2-disable.svg +14 -0
  112. package/lib/module/assets/v3/step2-success.svg +8 -0
  113. package/lib/module/assets/v3/step2.svg +37 -0
  114. package/lib/module/assets/v3/step3-disable.svg +17 -0
  115. package/lib/module/assets/v3/step3-success.svg +17 -0
  116. package/lib/module/assets/v3/step3.svg +45 -0
  117. package/lib/module/assets/v3/step4-disable.svg +11 -0
  118. package/lib/module/assets/v3/step4-success.svg +11 -0
  119. package/lib/module/assets/v3/step4.svg +29 -0
  120. package/lib/module/assets/v3/step5-disable.svg +17 -0
  121. package/lib/module/assets/v3/step5-success.svg +17 -0
  122. package/lib/module/assets/v3/step5.svg +45 -0
  123. package/lib/module/components/ItemTimaOneV2.js +2 -0
  124. package/lib/module/components/ItemTimaOneV2.js.map +1 -0
  125. package/lib/module/components/ItemTimaOneV3.js +2 -0
  126. package/lib/module/components/ItemTimaOneV3.js.map +1 -0
  127. package/lib/module/components/MText.js +1 -1
  128. package/lib/module/components/ModalOptionLoan.js +2 -0
  129. package/lib/module/components/ModalOptionLoan.js.map +1 -0
  130. package/lib/module/navigation/primary-navigator.js +1 -1
  131. package/lib/module/navigation/primary-navigator.js.map +1 -1
  132. package/lib/module/screens/eSign/index.js +1 -1
  133. package/lib/module/screens/eSign/index.js.map +1 -1
  134. package/lib/module/screens/home/index.js +1 -1
  135. package/lib/module/screens/home/index.js.map +1 -1
  136. package/lib/module/screens/mySignViettel/Layer_3.png +0 -0
  137. package/lib/module/screens/mySignViettel/index.js +2 -0
  138. package/lib/module/screens/mySignViettel/index.js.map +1 -0
  139. package/lib/module/screens/sign-tima/ViewContract.js +1 -1
  140. package/lib/module/screens/sign-tima/ViewContract.js.map +1 -1
  141. package/lib/module/screens/toan-trinh-so/OCR.js +1 -1
  142. package/lib/module/screens/toan-trinh-so/OCR.js.map +1 -1
  143. package/lib/module/screens/toan-trinh-so/RegisterBack.js +1 -1
  144. package/lib/module/screens/toan-trinh-so/RegisterBack.js.map +1 -1
  145. package/lib/module/screens/toan-trinh-so/ReviewInformation.js +1 -1
  146. package/lib/module/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
  147. package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
  148. package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
  149. package/lib/module/screens/toan-trinh-so/ReviewLoan.js +1 -1
  150. package/lib/module/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
  151. package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js +1 -1
  152. package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -1
  153. package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js +1 -1
  154. package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -1
  155. package/lib/module/screens/toan-trinh-so/TTSSelfie.js +1 -1
  156. package/lib/module/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
  157. package/lib/module/screens/toan-trinh-so/TTSSignLoan.js +1 -1
  158. package/lib/module/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
  159. package/lib/module/screens/toan-trinh-so/VehicleCamera.js +1 -1
  160. package/lib/module/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
  161. package/lib/module/screens/toan-trinh-so/VehicleRegistration.js +1 -1
  162. package/lib/module/screens/toan-trinh-so/VehicleRegistration.js.map +1 -1
  163. package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js +1 -1
  164. package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
  165. package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js +1 -1
  166. package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
  167. package/lib/module/screens/toan-trinh-so/store.js +1 -1
  168. package/lib/module/screens/toan-trinh-so/store.js.map +1 -1
  169. package/lib/module/screens/v3/AssetInformation.js +2 -0
  170. package/lib/module/screens/v3/AssetInformation.js.map +1 -0
  171. package/lib/module/services/api/api.js +1 -1
  172. package/lib/module/services/api/api.js.map +1 -1
  173. package/lib/module/utils/index.js +1 -1
  174. package/lib/module/utils/index.js.map +1 -1
  175. package/lib/typescript/AppStore.d.ts +2 -2
  176. package/lib/typescript/AppStore.d.ts.map +1 -1
  177. package/lib/typescript/assets/v3/index.d.ts +19 -0
  178. package/lib/typescript/assets/v3/index.d.ts.map +1 -0
  179. package/lib/typescript/components/ItemTimaOneV2.d.ts +7 -0
  180. package/lib/typescript/components/ItemTimaOneV2.d.ts.map +1 -0
  181. package/lib/typescript/components/ItemTimaOneV3.d.ts +7 -0
  182. package/lib/typescript/components/ItemTimaOneV3.d.ts.map +1 -0
  183. package/lib/typescript/components/ModalOptionLoan.d.ts +8 -0
  184. package/lib/typescript/components/ModalOptionLoan.d.ts.map +1 -0
  185. package/lib/typescript/navigation/primary-navigator.d.ts +2 -0
  186. package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
  187. package/lib/typescript/screens/eSign/index.d.ts.map +1 -1
  188. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  189. package/lib/typescript/screens/mySignViettel/index.d.ts +2 -0
  190. package/lib/typescript/screens/mySignViettel/index.d.ts.map +1 -0
  191. package/lib/typescript/screens/sign-tima/ViewContract.d.ts.map +1 -1
  192. package/lib/typescript/screens/toan-trinh-so/RegisterBack.d.ts.map +1 -1
  193. package/lib/typescript/screens/toan-trinh-so/ReviewInformation.d.ts.map +1 -1
  194. package/lib/typescript/screens/toan-trinh-so/ReviewInformationOther.d.ts.map +1 -1
  195. package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts.map +1 -1
  196. package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts.map +1 -1
  197. package/lib/typescript/screens/toan-trinh-so/TTSSignLoan.d.ts.map +1 -1
  198. package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts.map +1 -1
  199. package/lib/typescript/screens/v3/AssetInformation.d.ts +2 -0
  200. package/lib/typescript/screens/v3/AssetInformation.d.ts.map +1 -0
  201. package/lib/typescript/services/api/api.d.ts +192 -0
  202. package/lib/typescript/services/api/api.d.ts.map +1 -1
  203. package/lib/typescript/utils/index.d.ts.map +1 -1
  204. package/package.json +1 -1
  205. package/src/AppStore.tsx +4 -2
  206. package/src/assets/v3/home.svg +5 -0
  207. package/src/assets/v3/index.tsx +38 -0
  208. package/src/assets/v3/option1.svg +27 -0
  209. package/src/assets/v3/option2.svg +25 -0
  210. package/src/assets/v3/step1-success.svg +39 -0
  211. package/src/assets/v3/step1.svg +90 -0
  212. package/src/assets/v3/step2-disable.svg +14 -0
  213. package/src/assets/v3/step2-success.svg +8 -0
  214. package/src/assets/v3/step2.svg +37 -0
  215. package/src/assets/v3/step3-disable.svg +17 -0
  216. package/src/assets/v3/step3-success.svg +17 -0
  217. package/src/assets/v3/step3.svg +45 -0
  218. package/src/assets/v3/step4-disable.svg +11 -0
  219. package/src/assets/v3/step4-success.svg +11 -0
  220. package/src/assets/v3/step4.svg +29 -0
  221. package/src/assets/v3/step5-disable.svg +17 -0
  222. package/src/assets/v3/step5-success.svg +17 -0
  223. package/src/assets/v3/step5.svg +45 -0
  224. package/src/components/ItemTimaOneV2.tsx +617 -0
  225. package/src/components/ItemTimaOneV3.tsx +563 -0
  226. package/src/components/MText.tsx +1 -1
  227. package/src/components/ModalOptionLoan.tsx +247 -0
  228. package/src/navigation/primary-navigator.tsx +12 -0
  229. package/src/screens/eSign/index.tsx +22 -16
  230. package/src/screens/home/index.tsx +64 -625
  231. package/src/screens/mySignViettel/Layer_3.png +0 -0
  232. package/src/screens/mySignViettel/index.tsx +278 -0
  233. package/src/screens/sign-tima/ViewContract.tsx +22 -16
  234. package/src/screens/toan-trinh-so/OCR.tsx +1 -1
  235. package/src/screens/toan-trinh-so/RegisterBack.tsx +9 -2
  236. package/src/screens/toan-trinh-so/ReviewInformation.tsx +110 -7
  237. package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +9 -8
  238. package/src/screens/toan-trinh-so/ReviewLoan.tsx +43 -169
  239. package/src/screens/toan-trinh-so/TTSNationalIDBack.tsx +1 -1
  240. package/src/screens/toan-trinh-so/TTSNationalIDFront.tsx +1 -1
  241. package/src/screens/toan-trinh-so/TTSSelfie.tsx +17 -14
  242. package/src/screens/toan-trinh-so/TTSSignLoan.tsx +38 -19
  243. package/src/screens/toan-trinh-so/VehicleCamera.tsx +133 -43
  244. package/src/screens/toan-trinh-so/VehicleRegistration.tsx +1 -1
  245. package/src/screens/toan-trinh-so/VehicleRegistrationBack.tsx +1 -1
  246. package/src/screens/toan-trinh-so/VehicleRegistrationFront.tsx +1 -1
  247. package/src/screens/toan-trinh-so/store.ts +1 -1
  248. package/src/screens/v3/AssetInformation.tsx +690 -0
  249. package/src/services/api/api.ts +196 -0
  250. package/src/utils/index.tsx +2 -0
@@ -0,0 +1,563 @@
1
+ //@ts-nocheck
2
+ import React from 'react';
3
+ import { TouchableOpacity, View, ViewStyle } from 'react-native';
4
+ import LinearGradient from 'react-native-linear-gradient';
5
+ import { IconMoney2, IconTick } from '../assets/svgs';
6
+ import { formatMoney } from '../utils';
7
+ import { MText } from './MText';
8
+ import {
9
+ IconStep1,
10
+ IconStep1Success,
11
+ IconStep2,
12
+ IconStep2Disable,
13
+ IconStep2Success,
14
+ IconStep3,
15
+ IconStep3Disable,
16
+ IconStep3Success,
17
+ IconStep4,
18
+ IconStep4Disable,
19
+ IconStep4Success,
20
+ IconStep5,
21
+ IconStep5Disable,
22
+ IconStep5Success,
23
+ } from '../assets/v3';
24
+ import { Info } from '../assets/icons';
25
+ import { ScreenNames } from '../navigation';
26
+
27
+ interface IProps {
28
+ item: any;
29
+ navigation: any;
30
+ }
31
+
32
+ const $action: ViewStyle = {
33
+ flexDirection: 'column',
34
+ alignItems: 'center',
35
+ gap: 5,
36
+ };
37
+
38
+ export default function ItemTimaOneV3({ item, navigation }: IProps) {
39
+ return (
40
+ <View
41
+ style={{
42
+ backgroundColor: '#FFFFFF',
43
+ paddingHorizontal: 16,
44
+ marginBottom: 16,
45
+ borderRadius: 8,
46
+ borderWidth: 0.5,
47
+ borderColor: '#E0E0E0',
48
+ }}
49
+ >
50
+ <LinearGradient
51
+ colors={
52
+ item?.listLoanAllAutoDE && item?.listLoanAllAutoDE.length > 0
53
+ ? ['#4CBA3D', '#98D788']
54
+ : ['#FF8E4F', '#EF592E']
55
+ }
56
+ style={{
57
+ borderTopLeftRadius: 8,
58
+ borderTopRightRadius: 8,
59
+ marginHorizontal: -16,
60
+ }}
61
+ >
62
+ <View
63
+ style={{
64
+ flexDirection: 'row',
65
+ justifyContent: 'space-between',
66
+ alignItems: 'center',
67
+ paddingHorizontal: 16,
68
+ paddingVertical: 8,
69
+ }}
70
+ >
71
+ <View
72
+ style={{
73
+ flexDirection: 'row',
74
+ alignItems: 'center',
75
+ gap: 8,
76
+ }}
77
+ >
78
+ <IconMoney2 />
79
+ <MText
80
+ style={{
81
+ fontSize: 12,
82
+ color: 'white',
83
+ }}
84
+ >
85
+ HD-{item?.id}
86
+ </MText>
87
+ </View>
88
+ <MText
89
+ style={{
90
+ fontSize: 12,
91
+ color: 'white',
92
+ fontWeight: 'bold',
93
+ }}
94
+ >
95
+ {item?.listLoanAllAutoDE && item?.listLoanAllAutoDE.length > 0
96
+ ? formatMoney(
97
+ item?.listLoanAllAutoDE.reduce(
98
+ (sum, item) => sum + item.totalMoney,
99
+ 0
100
+ )
101
+ )
102
+ : formatMoney(item?.loanAmount)}
103
+ đ
104
+ </MText>
105
+ </View>
106
+ </LinearGradient>
107
+
108
+ {item?.listLoanAllAutoDE && item?.listLoanAllAutoDE.length > 0 && (
109
+ <View
110
+ style={{
111
+ marginHorizontal: -16,
112
+ backgroundColor: '#ECFFE8',
113
+ paddingHorizontal: 16,
114
+ paddingVertical: 8,
115
+ }}
116
+ >
117
+ <View
118
+ style={{
119
+ flexDirection: 'row',
120
+ justifyContent: 'space-between',
121
+ }}
122
+ >
123
+ <MText
124
+ style={{
125
+ fontSize: 10,
126
+ color: '#878787',
127
+ marginLeft: 24,
128
+ }}
129
+ >
130
+ Số tiền giải ngân
131
+ </MText>
132
+ <MText
133
+ style={{
134
+ fontSize: 10,
135
+ color: '#333333',
136
+ }}
137
+ >
138
+ {formatMoney(
139
+ item?.listLoanAllAutoDE.reduce(
140
+ (sum, item) => sum + item.loanAmount,
141
+ 0
142
+ )
143
+ )}{' '}
144
+ đ
145
+ </MText>
146
+ </View>
147
+ <View
148
+ style={{
149
+ flexDirection: 'row',
150
+ justifyContent: 'space-between',
151
+ marginTop: 6,
152
+ }}
153
+ >
154
+ <MText
155
+ style={{
156
+ fontSize: 10,
157
+ color: '#878787',
158
+ marginLeft: 24,
159
+ }}
160
+ >
161
+ Số tiền bảo hiểm
162
+ </MText>
163
+ <MText
164
+ style={{
165
+ fontSize: 10,
166
+ color: '#333333',
167
+ }}
168
+ >
169
+ {formatMoney(
170
+ item?.listLoanAllAutoDE.reduce(
171
+ (sum, item) => sum + item.insurenceMoney,
172
+ 0
173
+ )
174
+ )}{' '}
175
+ đ
176
+ </MText>
177
+ </View>
178
+ </View>
179
+ )}
180
+
181
+ <View
182
+ style={{
183
+ flexDirection: 'row',
184
+ justifyContent: 'space-between',
185
+ marginTop:
186
+ item?.listLoanAllAutoDE && item?.listLoanAllAutoDE.length > 0
187
+ ? 16
188
+ : 32,
189
+ paddingHorizontal: 24,
190
+ }}
191
+ >
192
+ {/* Đơn topup = 6 sẽ không có phần thông tin tài sản */}
193
+ {item?.typeLoan === 5 && (
194
+ <TouchableOpacity
195
+ disabled={item?.step === 0 || item?.step === 1 ? false : true}
196
+ style={$action}
197
+ onPress={() => {
198
+ if (item?.step === 0) {
199
+ navigation.push(ScreenNames.VehicleCamera, {
200
+ loan: item,
201
+ front: true,
202
+ });
203
+ } else {
204
+ navigation.push(ScreenNames.AssetInformation, {
205
+ loan: item,
206
+ });
207
+ }
208
+ }}
209
+ >
210
+ {item?.step <= 1 ? <IconStep1 /> : <IconStep1Success />}
211
+ <MText
212
+ style={{
213
+ textAlign: 'center',
214
+ fontSize: 10,
215
+ marginTop: 5,
216
+ color: '#333333',
217
+ }}
218
+ >
219
+ Thông tin{'\n'}tài sản
220
+ </MText>
221
+ </TouchableOpacity>
222
+ )}
223
+ <TouchableOpacity
224
+ disabled={item?.step === 3 ? false : true}
225
+ style={$action}
226
+ onPress={() => {
227
+ navigation.push(ScreenNames.ReviewLoan, {
228
+ loan: item,
229
+ });
230
+ }}
231
+ >
232
+ {item?.step < 3 ? (
233
+ <IconStep2Disable />
234
+ ) : item?.step === 3 ? (
235
+ <IconStep2 />
236
+ ) : (
237
+ <IconStep2Success />
238
+ )}
239
+ <MText
240
+ style={{
241
+ textAlign: 'center',
242
+ fontSize: 10,
243
+ marginTop: 5,
244
+ color: '#333333',
245
+ }}
246
+ >
247
+ Thông tin{'\n'}khoản vay
248
+ </MText>
249
+ </TouchableOpacity>
250
+ <TouchableOpacity
251
+ disabled={
252
+ item?.step === 4 || item?.step === 5 || item?.step === 6
253
+ ? false
254
+ : true
255
+ }
256
+ style={$action}
257
+ onPress={() => {
258
+ if (item?.step === 4) {
259
+ navigation.push(ScreenNames.OCR, {
260
+ loan: item,
261
+ front: true,
262
+ });
263
+ } else if (item?.step === 5) {
264
+ navigation.push(ScreenNames.ReviewInformation, {
265
+ loan: item,
266
+ });
267
+ } else if (item?.step === 6) {
268
+ navigation.push(ScreenNames.ReviewInformationOther, {
269
+ loan: item,
270
+ });
271
+ }
272
+ }}
273
+ >
274
+ {item?.step < 4 ? (
275
+ <IconStep3Disable />
276
+ ) : item?.step === 4 || item?.step === 5 || item?.step === 6 ? (
277
+ <IconStep3 />
278
+ ) : (
279
+ <IconStep3Success />
280
+ )}
281
+ <MText
282
+ style={{
283
+ textAlign: 'center',
284
+ fontSize: 10,
285
+ marginTop: 5,
286
+ color: '#333333',
287
+ }}
288
+ >
289
+ Thông tin{'\n'}cá nhân
290
+ </MText>
291
+ </TouchableOpacity>
292
+ <TouchableOpacity
293
+ disabled={item?.step === 9 ? false : true}
294
+ style={$action}
295
+ onPress={() => {
296
+ navigation.push(ScreenNames.LivenessV2, {
297
+ loan: item,
298
+ });
299
+ }}
300
+ >
301
+ {item?.step < 9 || item?.step === 100 ? (
302
+ <IconStep4Disable />
303
+ ) : item?.step === 9 ? (
304
+ <IconStep4 />
305
+ ) : (
306
+ <IconStep4Success />
307
+ )}
308
+ <MText
309
+ style={{
310
+ textAlign: 'center',
311
+ fontSize: 10,
312
+ marginTop: 5,
313
+ color: '#333333',
314
+ }}
315
+ >
316
+ EKYC
317
+ </MText>
318
+ </TouchableOpacity>
319
+ <TouchableOpacity
320
+ disabled={item?.step === 10 ? false : true}
321
+ style={$action}
322
+ onPress={() => {
323
+ navigation.push(ScreenNames.TTSSignLoan, {
324
+ loan: item,
325
+ });
326
+ }}
327
+ >
328
+ {item?.step < 10 || item?.step === 100 ? (
329
+ <IconStep5Disable />
330
+ ) : item?.step === 10 ? (
331
+ <IconStep5 />
332
+ ) : (
333
+ <IconStep5Success />
334
+ )}
335
+ <MText
336
+ style={{
337
+ textAlign: 'center',
338
+ fontSize: 10,
339
+ marginTop: 5,
340
+ color: '#333333',
341
+ }}
342
+ >
343
+ Ký hợp{'\n'}đồng
344
+ </MText>
345
+ </TouchableOpacity>
346
+ </View>
347
+
348
+ <View
349
+ style={{
350
+ flexDirection: 'row',
351
+ alignItems: 'center',
352
+ gap: 8,
353
+ marginTop: 16,
354
+ backgroundColor: item?.step === 11 ? '#E8FFE9' : '#FFF2F2',
355
+ paddingHorizontal: 10,
356
+ paddingVertical: 10,
357
+ borderRadius: 4,
358
+ justifyContent: 'space-between',
359
+ marginBottom: 16,
360
+ }}
361
+ >
362
+ <View
363
+ style={{
364
+ flexDirection: 'row',
365
+ alignItems: 'center',
366
+ gap: 8,
367
+ flex: 1,
368
+ paddingRight: 24,
369
+ }}
370
+ >
371
+ {item?.step === 8 ? <IconTick /> : <Info />}
372
+ <MText
373
+ style={{
374
+ color: item?.step === 11 ? '#28A745' : '#E40010',
375
+ fontSize: 10,
376
+ }}
377
+ >
378
+ {item?.step <= 1
379
+ ? 'Cập nhật thông tin tài sản'
380
+ : item?.step === 3
381
+ ? `Cập nhật thông tin khoản vay`
382
+ : item?.step === 4 || item?.step === 5 || item?.step === 6
383
+ ? `Cập nhật thông tin cá nhân`
384
+ : item?.step === 9
385
+ ? `Tiếp tục eKYC và Ký hợp đồng để${'\n'}giải ngân nhanh nhất`
386
+ : item?.step === 11
387
+ ? `Hợp đồng đã ký thành công. Vui lòng chờ chuyên viên tư vấn liên hệ`
388
+ : 'Đơn vay đang trong quá trình xử lý'}
389
+ </MText>
390
+ </View>
391
+ {item?.step <= 1 ? (
392
+ <TouchableOpacity
393
+ onPress={() => {
394
+ if (item?.step === 0) {
395
+ navigation.push(ScreenNames.VehicleCamera, {
396
+ loan: item,
397
+ front: true,
398
+ });
399
+ } else {
400
+ navigation.push(ScreenNames.AssetInformation, {
401
+ loan: item,
402
+ });
403
+ }
404
+ }}
405
+ >
406
+ <LinearGradient
407
+ colors={['#FF8E4F', '#EF592E']}
408
+ style={{
409
+ height: 24,
410
+ alignItems: 'center',
411
+ justifyContent: 'center',
412
+ borderRadius: 24,
413
+ paddingHorizontal: 10,
414
+ }}
415
+ >
416
+ <MText
417
+ style={{
418
+ color: 'white',
419
+ fontSize: 10,
420
+ }}
421
+ >
422
+ Cập nhật
423
+ </MText>
424
+ </LinearGradient>
425
+ </TouchableOpacity>
426
+ ) : item?.step === 3 ? (
427
+ <TouchableOpacity
428
+ onPress={() => {
429
+ if (item?.step === 3) {
430
+ if (item?.typeLoan === 5) {
431
+ navigation.push(ScreenNames.ReviewLoan, {
432
+ loan: item,
433
+ });
434
+ } else if (item?.typeLoan === 6) {
435
+ navigation.push(ScreenNames.TopupLoanInfo, {
436
+ loan: item,
437
+ });
438
+ }
439
+ }
440
+ }}
441
+ >
442
+ <LinearGradient
443
+ colors={['#FF8E4F', '#EF592E']}
444
+ style={{
445
+ height: 24,
446
+ alignItems: 'center',
447
+ justifyContent: 'center',
448
+ borderRadius: 24,
449
+ paddingHorizontal: 10,
450
+ }}
451
+ >
452
+ <MText
453
+ style={{
454
+ color: 'white',
455
+ fontSize: 10,
456
+ }}
457
+ >
458
+ Cập nhật thông tin
459
+ </MText>
460
+ </LinearGradient>
461
+ </TouchableOpacity>
462
+ ) : item?.step === 4 || item?.step === 5 || item?.step === 6 ? (
463
+ <TouchableOpacity
464
+ onPress={() => {
465
+ if (item?.step === 4) {
466
+ navigation.push(ScreenNames.OCR, {
467
+ loan: item,
468
+ front: true,
469
+ });
470
+ } else if (item?.step === 5) {
471
+ navigation.push(ScreenNames.ReviewInformation, {
472
+ loan: item,
473
+ });
474
+ } else if (item?.step === 6) {
475
+ navigation.push(ScreenNames.ReviewInformationOther, {
476
+ loan: item,
477
+ });
478
+ }
479
+ }}
480
+ >
481
+ <LinearGradient
482
+ colors={['#FF8E4F', '#EF592E']}
483
+ style={{
484
+ height: 24,
485
+ alignItems: 'center',
486
+ justifyContent: 'center',
487
+ borderRadius: 24,
488
+ paddingHorizontal: 10,
489
+ }}
490
+ >
491
+ <MText
492
+ style={{
493
+ color: 'white',
494
+ fontSize: 10,
495
+ }}
496
+ >
497
+ Cập nhật thông tin
498
+ </MText>
499
+ </LinearGradient>
500
+ </TouchableOpacity>
501
+ ) : item?.step === 9 ? (
502
+ <TouchableOpacity
503
+ onPress={() => {
504
+ navigation.push(ScreenNames.LivenessV2, {
505
+ loan: item,
506
+ });
507
+ }}
508
+ >
509
+ <LinearGradient
510
+ colors={['#FF8E4F', '#EF592E']}
511
+ style={{
512
+ height: 24,
513
+ alignItems: 'center',
514
+ justifyContent: 'center',
515
+ borderRadius: 24,
516
+ paddingHorizontal: 10,
517
+ }}
518
+ >
519
+ <MText
520
+ style={{
521
+ color: 'white',
522
+ fontSize: 10,
523
+ }}
524
+ >
525
+ Đi tới EKYC
526
+ </MText>
527
+ </LinearGradient>
528
+ </TouchableOpacity>
529
+ ) : item?.step === 10 ? (
530
+ <TouchableOpacity
531
+ onPress={() => {
532
+ navigation.push(ScreenNames.TTSSignLoan, {
533
+ loan: item,
534
+ });
535
+ }}
536
+ >
537
+ <LinearGradient
538
+ colors={['#FF8E4F', '#EF592E']}
539
+ style={{
540
+ height: 24,
541
+ alignItems: 'center',
542
+ justifyContent: 'center',
543
+ borderRadius: 24,
544
+ paddingHorizontal: 10,
545
+ }}
546
+ >
547
+ <MText
548
+ style={{
549
+ color: 'white',
550
+ fontSize: 10,
551
+ }}
552
+ >
553
+ Ký hợp đồng
554
+ </MText>
555
+ </LinearGradient>
556
+ </TouchableOpacity>
557
+ ) : (
558
+ <></>
559
+ )}
560
+ </View>
561
+ </View>
562
+ );
563
+ }
@@ -10,7 +10,7 @@ export const MText = (props) => {
10
10
  style={[
11
11
  {
12
12
  fontFamily: 'BeVietnamPro-Regular',
13
- color: '#211F1F',
13
+ color: '#333333',
14
14
  fontSize: 14,
15
15
  },
16
16
  props.style,