react-native-timacare 3.1.66 → 3.1.67

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 +558 -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 +242 -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 +558 -0
  226. package/src/components/MText.tsx +1 -1
  227. package/src/components/ModalOptionLoan.tsx +242 -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,558 @@
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 > 1}
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}
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
+ style={$action}
252
+ onPress={() => {
253
+ if (item?.step === 4) {
254
+ navigation.push(ScreenNames.OCR, {
255
+ loan: item,
256
+ front: true,
257
+ });
258
+ } else if (item?.step === 5) {
259
+ navigation.push(ScreenNames.ReviewInformation, {
260
+ loan: item,
261
+ });
262
+ } else if (item?.step === 6) {
263
+ navigation.push(ScreenNames.ReviewInformationOther, {
264
+ loan: item,
265
+ });
266
+ }
267
+ }}
268
+ >
269
+ {item?.step < 4 ? (
270
+ <IconStep3Disable />
271
+ ) : item?.step === 4 || item?.step === 5 || item?.step === 6 ? (
272
+ <IconStep3 />
273
+ ) : (
274
+ <IconStep3Success />
275
+ )}
276
+ <MText
277
+ style={{
278
+ textAlign: 'center',
279
+ fontSize: 10,
280
+ marginTop: 5,
281
+ color: '#333333',
282
+ }}
283
+ >
284
+ Thông tin{'\n'}cá nhân
285
+ </MText>
286
+ </TouchableOpacity>
287
+ <TouchableOpacity
288
+ disabled={item?.step < 9}
289
+ style={$action}
290
+ onPress={() => {
291
+ navigation.push(ScreenNames.LivenessV2, {
292
+ loan: item,
293
+ });
294
+ }}
295
+ >
296
+ {item?.step < 9 ? (
297
+ <IconStep4Disable />
298
+ ) : item?.step === 9 ? (
299
+ <IconStep4 />
300
+ ) : (
301
+ <IconStep4Success />
302
+ )}
303
+ <MText
304
+ style={{
305
+ textAlign: 'center',
306
+ fontSize: 10,
307
+ marginTop: 5,
308
+ color: '#333333',
309
+ }}
310
+ >
311
+ EKYC
312
+ </MText>
313
+ </TouchableOpacity>
314
+ <TouchableOpacity
315
+ disabled={item?.step < 10}
316
+ style={$action}
317
+ onPress={() => {
318
+ navigation.push(ScreenNames.TTSSignLoan, {
319
+ loan: item,
320
+ });
321
+ }}
322
+ >
323
+ {item?.step < 10 ? (
324
+ <IconStep5Disable />
325
+ ) : item?.step === 10 ? (
326
+ <IconStep5 />
327
+ ) : (
328
+ <IconStep5Success />
329
+ )}
330
+ <MText
331
+ style={{
332
+ textAlign: 'center',
333
+ fontSize: 10,
334
+ marginTop: 5,
335
+ color: '#333333',
336
+ }}
337
+ >
338
+ Ký hợp{'\n'}đồng
339
+ </MText>
340
+ </TouchableOpacity>
341
+ </View>
342
+
343
+ <View
344
+ style={{
345
+ flexDirection: 'row',
346
+ alignItems: 'center',
347
+ gap: 8,
348
+ marginTop: 16,
349
+ backgroundColor: item?.step === 11 ? '#E8FFE9' : '#FFF2F2',
350
+ paddingHorizontal: 10,
351
+ paddingVertical: 10,
352
+ borderRadius: 4,
353
+ justifyContent: 'space-between',
354
+ marginBottom: 16,
355
+ }}
356
+ >
357
+ <View
358
+ style={{
359
+ flexDirection: 'row',
360
+ alignItems: 'center',
361
+ gap: 8,
362
+ flex: 1,
363
+ paddingRight: 24,
364
+ }}
365
+ >
366
+ {item?.step === 8 ? <IconTick /> : <Info />}
367
+ <MText
368
+ style={{
369
+ color: item?.step === 11 ? '#28A745' : '#E40010',
370
+ fontSize: 10,
371
+ }}
372
+ >
373
+ {item?.step <= 1
374
+ ? 'Cập nhật thông tin tài sản'
375
+ : item?.step === 3
376
+ ? `Cập nhật thông tin khoản vay`
377
+ : item?.step === 4 || item?.step === 5 || item?.step === 6
378
+ ? `Cập nhật thông tin cá nhân`
379
+ : item?.step === 9
380
+ ? `Tiếp tục eKYC và Ký hợp đồng để${'\n'}giải ngân nhanh nhất`
381
+ : item?.step === 11
382
+ ? `Hợp đồng đã ký thành công. Vui lòng chờ chuyên viên tư vấn liên hệ`
383
+ : 'Đơn vay đang trong quá trình xử lý'}
384
+ </MText>
385
+ </View>
386
+ {item?.step <= 1 ? (
387
+ <TouchableOpacity
388
+ onPress={() => {
389
+ if (item?.step === 0) {
390
+ navigation.push(ScreenNames.VehicleCamera, {
391
+ loan: item,
392
+ front: true,
393
+ });
394
+ } else {
395
+ navigation.push(ScreenNames.AssetInformation, {
396
+ loan: item,
397
+ });
398
+ }
399
+ }}
400
+ >
401
+ <LinearGradient
402
+ colors={['#FF8E4F', '#EF592E']}
403
+ style={{
404
+ height: 24,
405
+ alignItems: 'center',
406
+ justifyContent: 'center',
407
+ borderRadius: 24,
408
+ paddingHorizontal: 10,
409
+ }}
410
+ >
411
+ <MText
412
+ style={{
413
+ color: 'white',
414
+ fontSize: 10,
415
+ }}
416
+ >
417
+ Cập nhật
418
+ </MText>
419
+ </LinearGradient>
420
+ </TouchableOpacity>
421
+ ) : item?.step === 3 ? (
422
+ <TouchableOpacity
423
+ onPress={() => {
424
+ if (item?.step === 3) {
425
+ if (item?.typeLoan === 5) {
426
+ navigation.push(ScreenNames.ReviewLoan, {
427
+ loan: item,
428
+ });
429
+ } else if (item?.typeLoan === 6) {
430
+ navigation.push(ScreenNames.TopupLoanInfo, {
431
+ loan: item,
432
+ });
433
+ }
434
+ }
435
+ }}
436
+ >
437
+ <LinearGradient
438
+ colors={['#FF8E4F', '#EF592E']}
439
+ style={{
440
+ height: 24,
441
+ alignItems: 'center',
442
+ justifyContent: 'center',
443
+ borderRadius: 24,
444
+ paddingHorizontal: 10,
445
+ }}
446
+ >
447
+ <MText
448
+ style={{
449
+ color: 'white',
450
+ fontSize: 10,
451
+ }}
452
+ >
453
+ Cập nhật thông tin
454
+ </MText>
455
+ </LinearGradient>
456
+ </TouchableOpacity>
457
+ ) : item?.step === 4 || item?.step === 5 || item?.step === 6 ? (
458
+ <TouchableOpacity
459
+ onPress={() => {
460
+ if (item?.step === 4) {
461
+ navigation.push(ScreenNames.OCR, {
462
+ loan: item,
463
+ front: true,
464
+ });
465
+ } else if (item?.step === 5) {
466
+ navigation.push(ScreenNames.ReviewInformation, {
467
+ loan: item,
468
+ });
469
+ } else if (item?.step === 6) {
470
+ navigation.push(ScreenNames.ReviewInformationOther, {
471
+ loan: item,
472
+ });
473
+ }
474
+ }}
475
+ >
476
+ <LinearGradient
477
+ colors={['#FF8E4F', '#EF592E']}
478
+ style={{
479
+ height: 24,
480
+ alignItems: 'center',
481
+ justifyContent: 'center',
482
+ borderRadius: 24,
483
+ paddingHorizontal: 10,
484
+ }}
485
+ >
486
+ <MText
487
+ style={{
488
+ color: 'white',
489
+ fontSize: 10,
490
+ }}
491
+ >
492
+ Cập nhật thông tin
493
+ </MText>
494
+ </LinearGradient>
495
+ </TouchableOpacity>
496
+ ) : item?.step === 9 ? (
497
+ <TouchableOpacity
498
+ onPress={() => {
499
+ navigation.push(ScreenNames.LivenessV2, {
500
+ loan: item,
501
+ });
502
+ }}
503
+ >
504
+ <LinearGradient
505
+ colors={['#FF8E4F', '#EF592E']}
506
+ style={{
507
+ height: 24,
508
+ alignItems: 'center',
509
+ justifyContent: 'center',
510
+ borderRadius: 24,
511
+ paddingHorizontal: 10,
512
+ }}
513
+ >
514
+ <MText
515
+ style={{
516
+ color: 'white',
517
+ fontSize: 10,
518
+ }}
519
+ >
520
+ Đi tới EKYC
521
+ </MText>
522
+ </LinearGradient>
523
+ </TouchableOpacity>
524
+ ) : item?.step === 10 ? (
525
+ <TouchableOpacity
526
+ onPress={() => {
527
+ navigation.push(ScreenNames.TTSSignLoan, {
528
+ loan: item,
529
+ });
530
+ }}
531
+ >
532
+ <LinearGradient
533
+ colors={['#FF8E4F', '#EF592E']}
534
+ style={{
535
+ height: 24,
536
+ alignItems: 'center',
537
+ justifyContent: 'center',
538
+ borderRadius: 24,
539
+ paddingHorizontal: 10,
540
+ }}
541
+ >
542
+ <MText
543
+ style={{
544
+ color: 'white',
545
+ fontSize: 10,
546
+ }}
547
+ >
548
+ Ký hợp đồng
549
+ </MText>
550
+ </LinearGradient>
551
+ </TouchableOpacity>
552
+ ) : (
553
+ <></>
554
+ )}
555
+ </View>
556
+ </View>
557
+ );
558
+ }
@@ -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,