react-native-timacare 3.3.55 → 3.3.57-cccd

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 (612) hide show
  1. package/lib/commonjs/AppStore.js +1 -1
  2. package/lib/commonjs/AppStore.js.flow +7 -2
  3. package/lib/commonjs/AppStore.js.map +1 -1
  4. package/lib/commonjs/RNTimacare.js +1 -1
  5. package/lib/commonjs/RNTimacare.js.flow +7 -1
  6. package/lib/commonjs/RNTimacare.js.map +1 -1
  7. package/lib/commonjs/assets/icons/index.js +1 -1
  8. package/lib/commonjs/assets/icons/index.js.flow +10 -0
  9. package/lib/commonjs/assets/icons/index.js.map +1 -1
  10. package/lib/commonjs/assets/icons/modal_confirm.svg +15 -0
  11. package/lib/commonjs/assets/icons/modal_notice.svg +74 -0
  12. package/lib/commonjs/assets/icons/modal_success.svg +55 -0
  13. package/lib/commonjs/assets/icons/modal_warning.svg +48 -0
  14. package/lib/commonjs/assets/icons/user_security.svg +10 -0
  15. package/lib/commonjs/assets/tts/Frame1000011947.png +0 -0
  16. package/lib/commonjs/components/AppModal.js +2 -0
  17. package/lib/commonjs/components/AppModal.js.flow +34 -0
  18. package/lib/commonjs/components/AppModal.js.map +1 -0
  19. package/lib/commonjs/components/ItemTimaOne.js +2 -0
  20. package/lib/commonjs/components/{ItemTimaOneV3.js.flow → ItemTimaOne.js.flow} +1 -1
  21. package/lib/commonjs/components/ItemTimaOne.js.map +1 -0
  22. package/lib/commonjs/components/ModalNotification/AlertGlobal.js +2 -0
  23. package/lib/commonjs/components/ModalNotification/AlertGlobal.js.flow +100 -0
  24. package/lib/commonjs/components/ModalNotification/AlertGlobal.js.map +1 -0
  25. package/lib/commonjs/components/ModalNotification/index.js +2 -0
  26. package/lib/commonjs/components/ModalNotification/index.js.flow +224 -0
  27. package/lib/commonjs/components/ModalNotification/index.js.map +1 -0
  28. package/lib/commonjs/components/ModalOptionLoan.js +1 -1
  29. package/lib/commonjs/components/ModalOptionLoan.js.flow +15 -7
  30. package/lib/commonjs/components/ModalOptionLoan.js.map +1 -1
  31. package/lib/commonjs/components/ModalOptionLoanDigital.js +1 -1
  32. package/lib/commonjs/components/ModalOptionLoanDigital.js.flow +15 -7
  33. package/lib/commonjs/components/ModalOptionLoanDigital.js.map +1 -1
  34. package/lib/commonjs/navigation/primary-navigator.js +1 -1
  35. package/lib/commonjs/navigation/primary-navigator.js.flow +7 -0
  36. package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
  37. package/lib/commonjs/screens/NFC/OcrStart.js +2 -0
  38. package/lib/commonjs/screens/NFC/OcrStart.js.flow +171 -0
  39. package/lib/commonjs/screens/NFC/OcrStart.js.map +1 -0
  40. package/lib/commonjs/screens/NFC/ScanMRZ.js +2 -0
  41. package/lib/commonjs/screens/NFC/ScanMRZ.js.flow +563 -0
  42. package/lib/commonjs/screens/NFC/ScanMRZ.js.map +1 -0
  43. package/lib/commonjs/screens/SelectorStore.js +1 -1
  44. package/lib/commonjs/screens/SelectorStore.js.flow +7 -2
  45. package/lib/commonjs/screens/SelectorStore.js.map +1 -1
  46. package/lib/commonjs/screens/camera/CCCDCameraScreen.js +1 -1
  47. package/lib/commonjs/screens/camera/CCCDCameraScreen.js.flow +253 -187
  48. package/lib/commonjs/screens/camera/CCCDCameraScreen.js.map +1 -1
  49. package/lib/commonjs/screens/camera/index.js +1 -1
  50. package/lib/commonjs/screens/camera/index.js.flow +50 -54
  51. package/lib/commonjs/screens/camera/index.js.map +1 -1
  52. package/lib/commonjs/screens/cimb-sign/index.js +1 -1
  53. package/lib/commonjs/screens/cimb-sign/index.js.flow +10 -14
  54. package/lib/commonjs/screens/cimb-sign/index.js.map +1 -1
  55. package/lib/commonjs/screens/detail-loan/PaymentInfo.js +1 -1
  56. package/lib/commonjs/screens/detail-loan/PaymentInfo.js.flow +75 -54
  57. package/lib/commonjs/screens/detail-loan/PaymentInfo.js.map +1 -1
  58. package/lib/commonjs/screens/detail-loan/ShowQrCode.js +1 -1
  59. package/lib/commonjs/screens/detail-loan/ShowQrCode.js.flow +77 -54
  60. package/lib/commonjs/screens/detail-loan/ShowQrCode.js.map +1 -1
  61. package/lib/commonjs/screens/detail-loan/store.js +1 -1
  62. package/lib/commonjs/screens/detail-loan/store.js.flow +39 -7
  63. package/lib/commonjs/screens/detail-loan/store.js.map +1 -1
  64. package/lib/commonjs/screens/detail-loan-tima/InforLoan.js +1 -1
  65. package/lib/commonjs/screens/detail-loan-tima/InforLoan.js.flow +20 -4
  66. package/lib/commonjs/screens/detail-loan-tima/InforLoan.js.map +1 -1
  67. package/lib/commonjs/screens/detail-loan-tima/PaymentSchedule.js +1 -1
  68. package/lib/commonjs/screens/detail-loan-tima/PaymentSchedule.js.flow +19 -4
  69. package/lib/commonjs/screens/detail-loan-tima/PaymentSchedule.js.map +1 -1
  70. package/lib/commonjs/screens/digital-lending/Step6.js +1 -1
  71. package/lib/commonjs/screens/digital-lending/Step6.js.flow +24 -29
  72. package/lib/commonjs/screens/digital-lending/Step6.js.map +1 -1
  73. package/lib/commonjs/screens/digital-lending/store.js +1 -1
  74. package/lib/commonjs/screens/digital-lending/store.js.flow +113 -20
  75. package/lib/commonjs/screens/digital-lending/store.js.map +1 -1
  76. package/lib/commonjs/screens/eSign/Store.js +1 -1
  77. package/lib/commonjs/screens/eSign/Store.js.flow +69 -34
  78. package/lib/commonjs/screens/eSign/Store.js.map +1 -1
  79. package/lib/commonjs/screens/eSign/index.js +1 -1
  80. package/lib/commonjs/screens/eSign/index.js.flow +33 -34
  81. package/lib/commonjs/screens/eSign/index.js.map +1 -1
  82. package/lib/commonjs/screens/full-submit/accept_policy.js +1 -1
  83. package/lib/commonjs/screens/full-submit/accept_policy.js.flow +101 -85
  84. package/lib/commonjs/screens/full-submit/accept_policy.js.map +1 -1
  85. package/lib/commonjs/screens/full-submit/store.js +1 -1
  86. package/lib/commonjs/screens/full-submit/store.js.flow +157 -27
  87. package/lib/commonjs/screens/full-submit/store.js.map +1 -1
  88. package/lib/commonjs/screens/full-submit/update-info.js +1 -1
  89. package/lib/commonjs/screens/full-submit/update-info.js.flow +0 -1
  90. package/lib/commonjs/screens/full-submit/update-info.js.map +1 -1
  91. package/lib/commonjs/screens/home/DigitalTopupItem.js +1 -1
  92. package/lib/commonjs/screens/home/DigitalTopupItem.js.flow +15 -7
  93. package/lib/commonjs/screens/home/DigitalTopupItem.js.map +1 -1
  94. package/lib/commonjs/screens/home/ItemMotoBikeLoan.js +1 -1
  95. package/lib/commonjs/screens/home/ItemMotoBikeLoan.js.flow +16 -7
  96. package/lib/commonjs/screens/home/ItemMotoBikeLoan.js.map +1 -1
  97. package/lib/commonjs/screens/home/Store.js +1 -1
  98. package/lib/commonjs/screens/home/Store.js.flow +44 -23
  99. package/lib/commonjs/screens/home/Store.js.map +1 -1
  100. package/lib/commonjs/screens/home/index.js +1 -1
  101. package/lib/commonjs/screens/home/index.js.flow +306 -298
  102. package/lib/commonjs/screens/home/index.js.map +1 -1
  103. package/lib/commonjs/screens/liveness/LivenessStore.js +1 -1
  104. package/lib/commonjs/screens/liveness/LivenessStore.js.flow +111 -89
  105. package/lib/commonjs/screens/liveness/LivenessStore.js.map +1 -1
  106. package/lib/commonjs/screens/liveness/index.js +1 -1
  107. package/lib/commonjs/screens/liveness/index.js.flow +67 -68
  108. package/lib/commonjs/screens/liveness/index.js.map +1 -1
  109. package/lib/commonjs/screens/liveness-v2/index.js +1 -1
  110. package/lib/commonjs/screens/liveness-v2/index.js.flow +52 -52
  111. package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
  112. package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js +1 -1
  113. package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js.flow +20 -10
  114. package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -1
  115. package/lib/commonjs/screens/loan/UpdateLoan.js +1 -1
  116. package/lib/commonjs/screens/loan/UpdateLoan.js.flow +56 -23
  117. package/lib/commonjs/screens/loan/UpdateLoan.js.map +1 -1
  118. package/lib/commonjs/screens/motobike/InfoLoanMotobike.js +1 -1
  119. package/lib/commonjs/screens/motobike/InfoLoanMotobike.js.flow +43 -29
  120. package/lib/commonjs/screens/motobike/InfoLoanMotobike.js.map +1 -1
  121. package/lib/commonjs/screens/motobike/PolicyF88.js +1 -1
  122. package/lib/commonjs/screens/motobike/PolicyF88.js.flow +15 -6
  123. package/lib/commonjs/screens/motobike/PolicyF88.js.map +1 -1
  124. package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js +1 -1
  125. package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js.flow +13 -3
  126. package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js.map +1 -1
  127. package/lib/commonjs/screens/mrz-scanner/index.js +1 -1
  128. package/lib/commonjs/screens/mrz-scanner/index.js.flow +56 -55
  129. package/lib/commonjs/screens/mrz-scanner/index.js.map +1 -1
  130. package/lib/commonjs/screens/mrz-scanner/store.js +1 -1
  131. package/lib/commonjs/screens/mrz-scanner/store.js.flow +13 -3
  132. package/lib/commonjs/screens/mrz-scanner/store.js.map +1 -1
  133. package/lib/commonjs/screens/nationalID/Store.js +1 -1
  134. package/lib/commonjs/screens/nationalID/Store.js.flow +50 -29
  135. package/lib/commonjs/screens/nationalID/Store.js.map +1 -1
  136. package/lib/commonjs/screens/nationalID/index.js +1 -1
  137. package/lib/commonjs/screens/nationalID/index.js.flow +123 -219
  138. package/lib/commonjs/screens/nationalID/index.js.map +1 -1
  139. package/lib/commonjs/screens/nationalIDBack/Store.js +1 -1
  140. package/lib/commonjs/screens/nationalIDBack/Store.js.flow +44 -26
  141. package/lib/commonjs/screens/nationalIDBack/Store.js.map +1 -1
  142. package/lib/commonjs/screens/nationalIDBack/index.js +1 -1
  143. package/lib/commonjs/screens/nationalIDBack/index.js.flow +129 -210
  144. package/lib/commonjs/screens/nationalIDBack/index.js.map +1 -1
  145. package/lib/commonjs/screens/notification/ListLoanStore.js +1 -1
  146. package/lib/commonjs/screens/notification/ListLoanStore.js.flow +19 -4
  147. package/lib/commonjs/screens/notification/ListLoanStore.js.map +1 -1
  148. package/lib/commonjs/screens/notification/index.js +1 -1
  149. package/lib/commonjs/screens/notification/index.js.flow +0 -1
  150. package/lib/commonjs/screens/notification/index.js.map +1 -1
  151. package/lib/commonjs/screens/notification/store.js +1 -1
  152. package/lib/commonjs/screens/notification/store.js.flow +7 -2
  153. package/lib/commonjs/screens/notification/store.js.map +1 -1
  154. package/lib/commonjs/screens/personal/index.js +1 -1
  155. package/lib/commonjs/screens/personal/index.js.flow +21 -19
  156. package/lib/commonjs/screens/personal/index.js.map +1 -1
  157. package/lib/commonjs/screens/qualify/Store.js.flow +0 -1
  158. package/lib/commonjs/screens/qualify/Store.js.map +1 -1
  159. package/lib/commonjs/screens/quick-submit/store.js +1 -1
  160. package/lib/commonjs/screens/quick-submit/store.js.flow +85 -15
  161. package/lib/commonjs/screens/quick-submit/store.js.map +1 -1
  162. package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js +1 -1
  163. package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js.flow +20 -4
  164. package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js.map +1 -1
  165. package/lib/commonjs/screens/schedule-payment/store.js +1 -1
  166. package/lib/commonjs/screens/schedule-payment/store.js.flow +13 -5
  167. package/lib/commonjs/screens/schedule-payment/store.js.map +1 -1
  168. package/lib/commonjs/screens/selfie/SelfieStore.js +1 -1
  169. package/lib/commonjs/screens/selfie/SelfieStore.js.flow +25 -9
  170. package/lib/commonjs/screens/selfie/SelfieStore.js.map +1 -1
  171. package/lib/commonjs/screens/selfie/index.js +1 -1
  172. package/lib/commonjs/screens/selfie/index.js.flow +0 -1
  173. package/lib/commonjs/screens/selfie/index.js.map +1 -1
  174. package/lib/commonjs/screens/sign-tima/ViewContract.js +1 -1
  175. package/lib/commonjs/screens/sign-tima/ViewContract.js.flow +17 -18
  176. package/lib/commonjs/screens/sign-tima/ViewContract.js.map +1 -1
  177. package/lib/commonjs/screens/sign-tima/store.js +1 -1
  178. package/lib/commonjs/screens/sign-tima/store.js.flow +37 -7
  179. package/lib/commonjs/screens/sign-tima/store.js.map +1 -1
  180. package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js +1 -1
  181. package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js.flow +36 -10
  182. package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js.map +1 -1
  183. package/lib/commonjs/screens/toan-trinh-so/OCR.js +1 -1
  184. package/lib/commonjs/screens/toan-trinh-so/OCR.js.flow +321 -609
  185. package/lib/commonjs/screens/toan-trinh-so/OCR.js.map +1 -1
  186. package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js +1 -1
  187. package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js.flow +21 -4
  188. package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js.map +1 -1
  189. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js +1 -1
  190. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.flow +50 -54
  191. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.map +1 -1
  192. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js +1 -1
  193. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.flow +31 -25
  194. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
  195. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
  196. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.flow +88 -82
  197. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
  198. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js +1 -1
  199. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.flow +25 -5
  200. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
  201. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js +1 -1
  202. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.flow +19 -4
  203. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -1
  204. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js +1 -1
  205. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.flow +19 -4
  206. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -1
  207. package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js +1 -1
  208. package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.flow +42 -25
  209. package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.map +1 -1
  210. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js +1 -1
  211. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.flow +63 -56
  212. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
  213. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js +1 -1
  214. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.flow +63 -55
  215. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
  216. package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js +1 -1
  217. package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js.flow +50 -43
  218. package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js.map +1 -1
  219. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js +1 -1
  220. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.flow +275 -341
  221. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
  222. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js +1 -1
  223. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.flow +19 -4
  224. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.map +1 -1
  225. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js +1 -1
  226. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.flow +19 -4
  227. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
  228. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js +1 -1
  229. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.flow +19 -4
  230. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
  231. package/lib/commonjs/screens/toan-trinh-so/store.js +1 -1
  232. package/lib/commonjs/screens/toan-trinh-so/store.js.flow +82 -37
  233. package/lib/commonjs/screens/toan-trinh-so/store.js.map +1 -1
  234. package/lib/commonjs/screens/uploadVideo/index.js +1 -1
  235. package/lib/commonjs/screens/uploadVideo/index.js.flow +26 -21
  236. package/lib/commonjs/screens/uploadVideo/index.js.map +1 -1
  237. package/lib/commonjs/screens/uploadVideo/videoStore.js +1 -1
  238. package/lib/commonjs/screens/uploadVideo/videoStore.js.flow +19 -4
  239. package/lib/commonjs/screens/uploadVideo/videoStore.js.map +1 -1
  240. package/lib/commonjs/screens/v3/AssetInformation.js +1 -1
  241. package/lib/commonjs/screens/v3/AssetInformation.js.flow +35 -16
  242. package/lib/commonjs/screens/v3/AssetInformation.js.map +1 -1
  243. package/lib/commonjs/screens/v3/LoanBuyCar.js +1 -1
  244. package/lib/commonjs/screens/v3/LoanBuyCar.js.flow +35 -16
  245. package/lib/commonjs/screens/v3/LoanBuyCar.js.map +1 -1
  246. package/lib/commonjs/services/api/api.js +1 -1
  247. package/lib/commonjs/services/api/api.js.flow +23 -26
  248. package/lib/commonjs/services/api/api.js.map +1 -1
  249. package/lib/commonjs/utils/cameraCrop.js +2 -0
  250. package/lib/commonjs/utils/cameraCrop.js.flow +96 -0
  251. package/lib/commonjs/utils/cameraCrop.js.map +1 -0
  252. package/lib/module/AppStore.js +1 -1
  253. package/lib/module/AppStore.js.map +1 -1
  254. package/lib/module/RNTimacare.js +1 -1
  255. package/lib/module/RNTimacare.js.map +1 -1
  256. package/lib/module/assets/icons/index.js +1 -1
  257. package/lib/module/assets/icons/index.js.map +1 -1
  258. package/lib/module/assets/icons/modal_confirm.svg +15 -0
  259. package/lib/module/assets/icons/modal_notice.svg +74 -0
  260. package/lib/module/assets/icons/modal_success.svg +55 -0
  261. package/lib/module/assets/icons/modal_warning.svg +48 -0
  262. package/lib/module/assets/icons/user_security.svg +10 -0
  263. package/lib/module/assets/tts/Frame1000011947.png +0 -0
  264. package/lib/module/components/AppModal.js +2 -0
  265. package/lib/module/components/AppModal.js.map +1 -0
  266. package/lib/module/components/ItemTimaOne.js +2 -0
  267. package/lib/module/components/ItemTimaOne.js.map +1 -0
  268. package/lib/module/components/ModalNotification/AlertGlobal.js +2 -0
  269. package/lib/module/components/ModalNotification/AlertGlobal.js.map +1 -0
  270. package/lib/module/components/ModalNotification/index.js +2 -0
  271. package/lib/module/components/ModalNotification/index.js.map +1 -0
  272. package/lib/module/components/ModalOptionLoan.js +1 -1
  273. package/lib/module/components/ModalOptionLoan.js.map +1 -1
  274. package/lib/module/components/ModalOptionLoanDigital.js +1 -1
  275. package/lib/module/components/ModalOptionLoanDigital.js.map +1 -1
  276. package/lib/module/navigation/primary-navigator.js +1 -1
  277. package/lib/module/navigation/primary-navigator.js.map +1 -1
  278. package/lib/module/screens/NFC/OcrStart.js +2 -0
  279. package/lib/module/screens/NFC/OcrStart.js.map +1 -0
  280. package/lib/module/screens/NFC/ScanMRZ.js +2 -0
  281. package/lib/module/screens/NFC/ScanMRZ.js.map +1 -0
  282. package/lib/module/screens/SelectorStore.js +1 -1
  283. package/lib/module/screens/SelectorStore.js.map +1 -1
  284. package/lib/module/screens/camera/CCCDCameraScreen.js +1 -1
  285. package/lib/module/screens/camera/CCCDCameraScreen.js.map +1 -1
  286. package/lib/module/screens/camera/index.js +1 -1
  287. package/lib/module/screens/camera/index.js.map +1 -1
  288. package/lib/module/screens/cimb-sign/index.js +1 -1
  289. package/lib/module/screens/cimb-sign/index.js.map +1 -1
  290. package/lib/module/screens/detail-loan/PaymentInfo.js +1 -1
  291. package/lib/module/screens/detail-loan/PaymentInfo.js.map +1 -1
  292. package/lib/module/screens/detail-loan/ShowQrCode.js +1 -1
  293. package/lib/module/screens/detail-loan/ShowQrCode.js.map +1 -1
  294. package/lib/module/screens/detail-loan/store.js +1 -1
  295. package/lib/module/screens/detail-loan/store.js.map +1 -1
  296. package/lib/module/screens/detail-loan-tima/InforLoan.js +1 -1
  297. package/lib/module/screens/detail-loan-tima/InforLoan.js.map +1 -1
  298. package/lib/module/screens/detail-loan-tima/PaymentSchedule.js +1 -1
  299. package/lib/module/screens/detail-loan-tima/PaymentSchedule.js.map +1 -1
  300. package/lib/module/screens/digital-lending/Step6.js +1 -1
  301. package/lib/module/screens/digital-lending/Step6.js.map +1 -1
  302. package/lib/module/screens/digital-lending/store.js +1 -1
  303. package/lib/module/screens/digital-lending/store.js.map +1 -1
  304. package/lib/module/screens/eSign/Store.js +1 -1
  305. package/lib/module/screens/eSign/Store.js.map +1 -1
  306. package/lib/module/screens/eSign/index.js +1 -1
  307. package/lib/module/screens/eSign/index.js.map +1 -1
  308. package/lib/module/screens/full-submit/accept_policy.js +1 -1
  309. package/lib/module/screens/full-submit/accept_policy.js.map +1 -1
  310. package/lib/module/screens/full-submit/store.js +1 -1
  311. package/lib/module/screens/full-submit/store.js.map +1 -1
  312. package/lib/module/screens/full-submit/update-info.js +1 -1
  313. package/lib/module/screens/full-submit/update-info.js.map +1 -1
  314. package/lib/module/screens/home/DigitalTopupItem.js +1 -1
  315. package/lib/module/screens/home/DigitalTopupItem.js.map +1 -1
  316. package/lib/module/screens/home/ItemMotoBikeLoan.js +1 -1
  317. package/lib/module/screens/home/ItemMotoBikeLoan.js.map +1 -1
  318. package/lib/module/screens/home/Store.js +1 -1
  319. package/lib/module/screens/home/Store.js.map +1 -1
  320. package/lib/module/screens/home/index.js +1 -1
  321. package/lib/module/screens/home/index.js.map +1 -1
  322. package/lib/module/screens/liveness/LivenessStore.js +1 -1
  323. package/lib/module/screens/liveness/LivenessStore.js.map +1 -1
  324. package/lib/module/screens/liveness/index.js +1 -1
  325. package/lib/module/screens/liveness/index.js.map +1 -1
  326. package/lib/module/screens/liveness-v2/index.js +1 -1
  327. package/lib/module/screens/liveness-v2/index.js.map +1 -1
  328. package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js +1 -1
  329. package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -1
  330. package/lib/module/screens/loan/UpdateLoan.js +1 -1
  331. package/lib/module/screens/loan/UpdateLoan.js.map +1 -1
  332. package/lib/module/screens/motobike/InfoLoanMotobike.js +1 -1
  333. package/lib/module/screens/motobike/InfoLoanMotobike.js.map +1 -1
  334. package/lib/module/screens/motobike/PolicyF88.js +1 -1
  335. package/lib/module/screens/motobike/PolicyF88.js.map +1 -1
  336. package/lib/module/screens/motobike/ReviewLoanMotobike.js +1 -1
  337. package/lib/module/screens/motobike/ReviewLoanMotobike.js.map +1 -1
  338. package/lib/module/screens/mrz-scanner/index.js +1 -1
  339. package/lib/module/screens/mrz-scanner/index.js.map +1 -1
  340. package/lib/module/screens/mrz-scanner/store.js +1 -1
  341. package/lib/module/screens/mrz-scanner/store.js.map +1 -1
  342. package/lib/module/screens/nationalID/Store.js +1 -1
  343. package/lib/module/screens/nationalID/Store.js.map +1 -1
  344. package/lib/module/screens/nationalID/index.js +1 -1
  345. package/lib/module/screens/nationalID/index.js.map +1 -1
  346. package/lib/module/screens/nationalIDBack/Store.js +1 -1
  347. package/lib/module/screens/nationalIDBack/Store.js.map +1 -1
  348. package/lib/module/screens/nationalIDBack/index.js +1 -1
  349. package/lib/module/screens/nationalIDBack/index.js.map +1 -1
  350. package/lib/module/screens/notification/ListLoanStore.js +1 -1
  351. package/lib/module/screens/notification/ListLoanStore.js.map +1 -1
  352. package/lib/module/screens/notification/index.js +1 -1
  353. package/lib/module/screens/notification/index.js.map +1 -1
  354. package/lib/module/screens/notification/store.js +1 -1
  355. package/lib/module/screens/notification/store.js.map +1 -1
  356. package/lib/module/screens/personal/index.js +1 -1
  357. package/lib/module/screens/personal/index.js.map +1 -1
  358. package/lib/module/screens/qualify/Store.js.map +1 -1
  359. package/lib/module/screens/quick-submit/store.js +1 -1
  360. package/lib/module/screens/quick-submit/store.js.map +1 -1
  361. package/lib/module/screens/schedule-payment/DigitalSchedulePayment.js +1 -1
  362. package/lib/module/screens/schedule-payment/DigitalSchedulePayment.js.map +1 -1
  363. package/lib/module/screens/schedule-payment/store.js +1 -1
  364. package/lib/module/screens/schedule-payment/store.js.map +1 -1
  365. package/lib/module/screens/selfie/SelfieStore.js +1 -1
  366. package/lib/module/screens/selfie/SelfieStore.js.map +1 -1
  367. package/lib/module/screens/selfie/index.js +1 -1
  368. package/lib/module/screens/selfie/index.js.map +1 -1
  369. package/lib/module/screens/sign-tima/ViewContract.js +1 -1
  370. package/lib/module/screens/sign-tima/ViewContract.js.map +1 -1
  371. package/lib/module/screens/sign-tima/store.js +1 -1
  372. package/lib/module/screens/sign-tima/store.js.map +1 -1
  373. package/lib/module/screens/toan-trinh-so/LoanInterestRate.js +1 -1
  374. package/lib/module/screens/toan-trinh-so/LoanInterestRate.js.map +1 -1
  375. package/lib/module/screens/toan-trinh-so/OCR.js +1 -1
  376. package/lib/module/screens/toan-trinh-so/OCR.js.map +1 -1
  377. package/lib/module/screens/toan-trinh-so/RegisterBack.js +1 -1
  378. package/lib/module/screens/toan-trinh-so/RegisterBack.js.map +1 -1
  379. package/lib/module/screens/toan-trinh-so/RegisterCamera.js +1 -1
  380. package/lib/module/screens/toan-trinh-so/RegisterCamera.js.map +1 -1
  381. package/lib/module/screens/toan-trinh-so/ReviewInformation.js +1 -1
  382. package/lib/module/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
  383. package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
  384. package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
  385. package/lib/module/screens/toan-trinh-so/ReviewLoan.js +1 -1
  386. package/lib/module/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
  387. package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js +1 -1
  388. package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -1
  389. package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js +1 -1
  390. package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -1
  391. package/lib/module/screens/toan-trinh-so/TTSOTP.js +1 -1
  392. package/lib/module/screens/toan-trinh-so/TTSOTP.js.map +1 -1
  393. package/lib/module/screens/toan-trinh-so/TTSSelfie.js +1 -1
  394. package/lib/module/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
  395. package/lib/module/screens/toan-trinh-so/TTSSignLoan.js +1 -1
  396. package/lib/module/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
  397. package/lib/module/screens/toan-trinh-so/TopupLoanInfo.js +1 -1
  398. package/lib/module/screens/toan-trinh-so/TopupLoanInfo.js.map +1 -1
  399. package/lib/module/screens/toan-trinh-so/VehicleCamera.js +1 -1
  400. package/lib/module/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
  401. package/lib/module/screens/toan-trinh-so/VehicleRegistration.js +1 -1
  402. package/lib/module/screens/toan-trinh-so/VehicleRegistration.js.map +1 -1
  403. package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js +1 -1
  404. package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
  405. package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js +1 -1
  406. package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
  407. package/lib/module/screens/toan-trinh-so/store.js +1 -1
  408. package/lib/module/screens/toan-trinh-so/store.js.map +1 -1
  409. package/lib/module/screens/uploadVideo/index.js +1 -1
  410. package/lib/module/screens/uploadVideo/index.js.map +1 -1
  411. package/lib/module/screens/uploadVideo/videoStore.js +1 -1
  412. package/lib/module/screens/uploadVideo/videoStore.js.map +1 -1
  413. package/lib/module/screens/v3/AssetInformation.js +1 -1
  414. package/lib/module/screens/v3/AssetInformation.js.map +1 -1
  415. package/lib/module/screens/v3/LoanBuyCar.js +1 -1
  416. package/lib/module/screens/v3/LoanBuyCar.js.map +1 -1
  417. package/lib/module/services/api/api.js +1 -1
  418. package/lib/module/services/api/api.js.map +1 -1
  419. package/lib/module/utils/cameraCrop.js +2 -0
  420. package/lib/module/utils/cameraCrop.js.map +1 -0
  421. package/lib/typescript/AppStore.d.ts.map +1 -1
  422. package/lib/typescript/RNTimacare.d.ts.map +1 -1
  423. package/lib/typescript/assets/icons/index.d.ts +6 -1
  424. package/lib/typescript/assets/icons/index.d.ts.map +1 -1
  425. package/lib/typescript/components/AppModal.d.ts +18 -0
  426. package/lib/typescript/components/AppModal.d.ts.map +1 -0
  427. package/lib/typescript/components/ItemTimaOne.d.ts +7 -0
  428. package/lib/typescript/components/ItemTimaOne.d.ts.map +1 -0
  429. package/lib/typescript/components/ModalNotification/AlertGlobal.d.ts +30 -0
  430. package/lib/typescript/components/ModalNotification/AlertGlobal.d.ts.map +1 -0
  431. package/lib/typescript/components/ModalNotification/index.d.ts +35 -0
  432. package/lib/typescript/components/ModalNotification/index.d.ts.map +1 -0
  433. package/lib/typescript/components/ModalOptionLoan.d.ts.map +1 -1
  434. package/lib/typescript/components/ModalOptionLoanDigital.d.ts.map +1 -1
  435. package/lib/typescript/navigation/primary-navigator.d.ts +3 -0
  436. package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
  437. package/lib/typescript/screens/NFC/OcrStart.d.ts +2 -0
  438. package/lib/typescript/screens/NFC/OcrStart.d.ts.map +1 -0
  439. package/lib/typescript/screens/NFC/ScanMRZ.d.ts +15 -0
  440. package/lib/typescript/screens/NFC/ScanMRZ.d.ts.map +1 -0
  441. package/lib/typescript/screens/SelectorStore.d.ts.map +1 -1
  442. package/lib/typescript/screens/camera/CCCDCameraScreen.d.ts.map +1 -1
  443. package/lib/typescript/screens/camera/index.d.ts.map +1 -1
  444. package/lib/typescript/screens/cimb-sign/index.d.ts.map +1 -1
  445. package/lib/typescript/screens/detail-loan/ShowQrCode.d.ts.map +1 -1
  446. package/lib/typescript/screens/detail-loan/store.d.ts.map +1 -1
  447. package/lib/typescript/screens/detail-loan-tima/InforLoan.d.ts.map +1 -1
  448. package/lib/typescript/screens/detail-loan-tima/PaymentSchedule.d.ts.map +1 -1
  449. package/lib/typescript/screens/digital-lending/Step6.d.ts.map +1 -1
  450. package/lib/typescript/screens/digital-lending/store.d.ts.map +1 -1
  451. package/lib/typescript/screens/eSign/Store.d.ts.map +1 -1
  452. package/lib/typescript/screens/eSign/index.d.ts.map +1 -1
  453. package/lib/typescript/screens/full-submit/accept_policy.d.ts.map +1 -1
  454. package/lib/typescript/screens/full-submit/store.d.ts.map +1 -1
  455. package/lib/typescript/screens/full-submit/update-info.d.ts.map +1 -1
  456. package/lib/typescript/screens/home/DigitalTopupItem.d.ts.map +1 -1
  457. package/lib/typescript/screens/home/ItemMotoBikeLoan.d.ts.map +1 -1
  458. package/lib/typescript/screens/home/Store.d.ts.map +1 -1
  459. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  460. package/lib/typescript/screens/liveness/LivenessStore.d.ts.map +1 -1
  461. package/lib/typescript/screens/liveness/index.d.ts.map +1 -1
  462. package/lib/typescript/screens/loan/PreviewSchedulePaymentTopup.d.ts.map +1 -1
  463. package/lib/typescript/screens/loan/UpdateLoan.d.ts.map +1 -1
  464. package/lib/typescript/screens/motobike/InfoLoanMotobike.d.ts.map +1 -1
  465. package/lib/typescript/screens/motobike/PolicyF88.d.ts.map +1 -1
  466. package/lib/typescript/screens/motobike/ReviewLoanMotobike.d.ts.map +1 -1
  467. package/lib/typescript/screens/mrz-scanner/index.d.ts.map +1 -1
  468. package/lib/typescript/screens/mrz-scanner/store.d.ts.map +1 -1
  469. package/lib/typescript/screens/nationalID/Store.d.ts.map +1 -1
  470. package/lib/typescript/screens/nationalID/index.d.ts.map +1 -1
  471. package/lib/typescript/screens/nationalIDBack/Store.d.ts.map +1 -1
  472. package/lib/typescript/screens/nationalIDBack/index.d.ts.map +1 -1
  473. package/lib/typescript/screens/notification/ListLoanStore.d.ts.map +1 -1
  474. package/lib/typescript/screens/notification/index.d.ts.map +1 -1
  475. package/lib/typescript/screens/notification/store.d.ts.map +1 -1
  476. package/lib/typescript/screens/personal/index.d.ts.map +1 -1
  477. package/lib/typescript/screens/qualify/Store.d.ts.map +1 -1
  478. package/lib/typescript/screens/quick-submit/store.d.ts.map +1 -1
  479. package/lib/typescript/screens/schedule-payment/DigitalSchedulePayment.d.ts.map +1 -1
  480. package/lib/typescript/screens/schedule-payment/store.d.ts.map +1 -1
  481. package/lib/typescript/screens/selfie/SelfieStore.d.ts.map +1 -1
  482. package/lib/typescript/screens/selfie/index.d.ts.map +1 -1
  483. package/lib/typescript/screens/sign-tima/ViewContract.d.ts.map +1 -1
  484. package/lib/typescript/screens/sign-tima/store.d.ts.map +1 -1
  485. package/lib/typescript/screens/toan-trinh-so/LoanInterestRate.d.ts.map +1 -1
  486. package/lib/typescript/screens/toan-trinh-so/OCR.d.ts.map +1 -1
  487. package/lib/typescript/screens/toan-trinh-so/RegisterBack.d.ts.map +1 -1
  488. package/lib/typescript/screens/toan-trinh-so/RegisterCamera.d.ts.map +1 -1
  489. package/lib/typescript/screens/toan-trinh-so/ReviewInformation.d.ts.map +1 -1
  490. package/lib/typescript/screens/toan-trinh-so/ReviewInformationOther.d.ts.map +1 -1
  491. package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts.map +1 -1
  492. package/lib/typescript/screens/toan-trinh-so/TTSNationalIDBack.d.ts.map +1 -1
  493. package/lib/typescript/screens/toan-trinh-so/TTSNationalIDFront.d.ts.map +1 -1
  494. package/lib/typescript/screens/toan-trinh-so/TTSOTP.d.ts.map +1 -1
  495. package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts.map +1 -1
  496. package/lib/typescript/screens/toan-trinh-so/TTSSignLoan.d.ts.map +1 -1
  497. package/lib/typescript/screens/toan-trinh-so/TopupLoanInfo.d.ts.map +1 -1
  498. package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts.map +1 -1
  499. package/lib/typescript/screens/toan-trinh-so/VehicleRegistration.d.ts.map +1 -1
  500. package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationBack.d.ts.map +1 -1
  501. package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationFront.d.ts.map +1 -1
  502. package/lib/typescript/screens/toan-trinh-so/store.d.ts.map +1 -1
  503. package/lib/typescript/screens/uploadVideo/index.d.ts.map +1 -1
  504. package/lib/typescript/screens/uploadVideo/videoStore.d.ts.map +1 -1
  505. package/lib/typescript/screens/v3/AssetInformation.d.ts.map +1 -1
  506. package/lib/typescript/screens/v3/LoanBuyCar.d.ts.map +1 -1
  507. package/lib/typescript/services/api/api.d.ts.map +1 -1
  508. package/lib/typescript/utils/cameraCrop.d.ts +43 -0
  509. package/lib/typescript/utils/cameraCrop.d.ts.map +1 -0
  510. package/package.json +2 -1
  511. package/src/AppStore.tsx +7 -2
  512. package/src/RNTimacare.tsx +7 -1
  513. package/src/assets/icons/index.tsx +10 -0
  514. package/src/assets/icons/modal_confirm.svg +15 -0
  515. package/src/assets/icons/modal_notice.svg +74 -0
  516. package/src/assets/icons/modal_success.svg +55 -0
  517. package/src/assets/icons/modal_warning.svg +48 -0
  518. package/src/assets/icons/user_security.svg +10 -0
  519. package/src/assets/tts/Frame1000011947.png +0 -0
  520. package/src/components/AppModal.tsx +34 -0
  521. package/src/components/{ItemTimaOneV3.tsx → ItemTimaOne.tsx} +1 -1
  522. package/src/components/ModalNotification/AlertGlobal.tsx +100 -0
  523. package/src/components/ModalNotification/index.tsx +224 -0
  524. package/src/components/ModalOptionLoan.tsx +15 -7
  525. package/src/components/ModalOptionLoanDigital.tsx +15 -7
  526. package/src/navigation/primary-navigator.tsx +7 -0
  527. package/src/screens/NFC/OcrStart.tsx +171 -0
  528. package/src/screens/NFC/ScanMRZ.tsx +563 -0
  529. package/src/screens/SelectorStore.tsx +7 -2
  530. package/src/screens/camera/CCCDCameraScreen.tsx +253 -187
  531. package/src/screens/camera/index.tsx +50 -54
  532. package/src/screens/cimb-sign/index.tsx +10 -14
  533. package/src/screens/detail-loan/PaymentInfo.tsx +75 -54
  534. package/src/screens/detail-loan/ShowQrCode.tsx +77 -54
  535. package/src/screens/detail-loan/store.tsx +39 -7
  536. package/src/screens/detail-loan-tima/InforLoan.tsx +20 -4
  537. package/src/screens/detail-loan-tima/PaymentSchedule.tsx +19 -4
  538. package/src/screens/digital-lending/Step6.tsx +24 -29
  539. package/src/screens/digital-lending/store.tsx +113 -20
  540. package/src/screens/eSign/Store.tsx +69 -34
  541. package/src/screens/eSign/index.tsx +33 -34
  542. package/src/screens/full-submit/accept_policy.tsx +101 -85
  543. package/src/screens/full-submit/store.tsx +157 -27
  544. package/src/screens/full-submit/update-info.tsx +0 -1
  545. package/src/screens/home/DigitalTopupItem.tsx +15 -7
  546. package/src/screens/home/ItemMotoBikeLoan.tsx +16 -7
  547. package/src/screens/home/Store.tsx +44 -23
  548. package/src/screens/home/index.tsx +306 -298
  549. package/src/screens/liveness/LivenessStore.tsx +111 -89
  550. package/src/screens/liveness/index.tsx +67 -68
  551. package/src/screens/liveness-v2/index.tsx +52 -52
  552. package/src/screens/loan/PreviewSchedulePaymentTopup.tsx +20 -10
  553. package/src/screens/loan/UpdateLoan.tsx +56 -23
  554. package/src/screens/motobike/InfoLoanMotobike.tsx +43 -29
  555. package/src/screens/motobike/PolicyF88.tsx +15 -6
  556. package/src/screens/motobike/ReviewLoanMotobike.tsx +13 -3
  557. package/src/screens/mrz-scanner/index.tsx +56 -55
  558. package/src/screens/mrz-scanner/store.ts +13 -3
  559. package/src/screens/nationalID/Store.tsx +50 -29
  560. package/src/screens/nationalID/index.tsx +123 -219
  561. package/src/screens/nationalIDBack/Store.tsx +44 -26
  562. package/src/screens/nationalIDBack/index.tsx +129 -210
  563. package/src/screens/notification/ListLoanStore.tsx +19 -4
  564. package/src/screens/notification/index.tsx +0 -1
  565. package/src/screens/notification/store.tsx +7 -2
  566. package/src/screens/personal/index.tsx +21 -19
  567. package/src/screens/qualify/Store.tsx +0 -1
  568. package/src/screens/quick-submit/store.tsx +85 -15
  569. package/src/screens/schedule-payment/DigitalSchedulePayment.tsx +20 -4
  570. package/src/screens/schedule-payment/store.tsx +13 -5
  571. package/src/screens/selfie/SelfieStore.tsx +25 -9
  572. package/src/screens/selfie/index.tsx +0 -1
  573. package/src/screens/sign-tima/ViewContract.tsx +17 -18
  574. package/src/screens/sign-tima/store.tsx +37 -7
  575. package/src/screens/toan-trinh-so/LoanInterestRate.tsx +36 -10
  576. package/src/screens/toan-trinh-so/OCR.tsx +321 -609
  577. package/src/screens/toan-trinh-so/RegisterBack.tsx +21 -4
  578. package/src/screens/toan-trinh-so/RegisterCamera.tsx +50 -54
  579. package/src/screens/toan-trinh-so/ReviewInformation.tsx +31 -25
  580. package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +88 -82
  581. package/src/screens/toan-trinh-so/ReviewLoan.tsx +25 -5
  582. package/src/screens/toan-trinh-so/TTSNationalIDBack.tsx +19 -4
  583. package/src/screens/toan-trinh-so/TTSNationalIDFront.tsx +19 -4
  584. package/src/screens/toan-trinh-so/TTSOTP.tsx +42 -25
  585. package/src/screens/toan-trinh-so/TTSSelfie.tsx +63 -56
  586. package/src/screens/toan-trinh-so/TTSSignLoan.tsx +63 -55
  587. package/src/screens/toan-trinh-so/TopupLoanInfo.tsx +50 -43
  588. package/src/screens/toan-trinh-so/VehicleCamera.tsx +275 -341
  589. package/src/screens/toan-trinh-so/VehicleRegistration.tsx +19 -4
  590. package/src/screens/toan-trinh-so/VehicleRegistrationBack.tsx +19 -4
  591. package/src/screens/toan-trinh-so/VehicleRegistrationFront.tsx +19 -4
  592. package/src/screens/toan-trinh-so/store.ts +82 -37
  593. package/src/screens/uploadVideo/index.tsx +26 -21
  594. package/src/screens/uploadVideo/videoStore.tsx +19 -4
  595. package/src/screens/v3/AssetInformation.tsx +35 -16
  596. package/src/screens/v3/LoanBuyCar.tsx +35 -16
  597. package/src/services/api/api.ts +23 -26
  598. package/src/utils/cameraCrop.ts +96 -0
  599. package/lib/commonjs/components/ItemTimaOneV2.js +0 -2
  600. package/lib/commonjs/components/ItemTimaOneV2.js.flow +0 -617
  601. package/lib/commonjs/components/ItemTimaOneV2.js.map +0 -1
  602. package/lib/commonjs/components/ItemTimaOneV3.js +0 -2
  603. package/lib/commonjs/components/ItemTimaOneV3.js.map +0 -1
  604. package/lib/module/components/ItemTimaOneV2.js +0 -2
  605. package/lib/module/components/ItemTimaOneV2.js.map +0 -1
  606. package/lib/module/components/ItemTimaOneV3.js +0 -2
  607. package/lib/module/components/ItemTimaOneV3.js.map +0 -1
  608. package/lib/typescript/components/ItemTimaOneV2.d.ts +0 -7
  609. package/lib/typescript/components/ItemTimaOneV2.d.ts.map +0 -1
  610. package/lib/typescript/components/ItemTimaOneV3.d.ts +0 -7
  611. package/lib/typescript/components/ItemTimaOneV3.d.ts.map +0 -1
  612. package/src/components/ItemTimaOneV2.tsx +0 -617
@@ -2,7 +2,7 @@
2
2
  import { observable, action } from 'mobx';
3
3
  import { Api } from '../../services/api';
4
4
  import { myLog } from '../../utils/log';
5
- import { Alert } from 'react-native';
5
+ import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
6
6
  import { NATIONAL_ID, save, USER } from '../../utils/storage';
7
7
  import appStore from '../../AppStore';
8
8
 
@@ -38,35 +38,47 @@ class Store {
38
38
  onSuccess(response.data.data);
39
39
  }
40
40
  } else {
41
- Alert.alert(
42
- 'Thông báo',
43
- 'Vui lòng chụp đầy đủ không bị cắt góc CMND/CCCD mặt sau',
44
- [{ text: 'Đồng ý' }]
45
- );
41
+ AlertGlobal.show({
42
+ type: 'warning',
43
+ title: 'Thông báo',
44
+ message:
45
+ 'Vui lòng chụp đầy đủ không bị cắt góc CMND/CCCD mặt sau',
46
+ primaryText: 'Đồng ý',
47
+ });
46
48
  }
47
49
  } else {
48
- Alert.alert(
49
- 'Thông báo',
50
- `Vui lòng chụp đúng ảnh CMND/CCCD mặt sau`,
51
- [{ text: 'Đồng ý' }]
52
- );
50
+ AlertGlobal.show({
51
+ type: 'warning',
52
+ title: 'Thông báo',
53
+ message: `Vui lòng chụp đúng ảnh CMND/CCCD mặt sau`,
54
+ primaryText: 'Đồng ý',
55
+ });
53
56
  }
54
57
  } else {
55
- Alert.alert('Thông báo', `Vui lòng chụp đúng ảnh CMND/CCCD mặt sau`, [
56
- { text: 'Đồng ý' },
57
- ]);
58
+ AlertGlobal.show({
59
+ type: 'warning',
60
+ title: 'Thông báo',
61
+ message: `Vui lòng chụp đúng ảnh CMND/CCCD mặt sau`,
62
+ primaryText: 'Đồng ý',
63
+ });
58
64
  }
59
65
  } else {
60
- Alert.alert('Thông báo', response.data.meta.errorMessage, [
61
- { text: 'Đồng ý' },
62
- ]);
66
+ AlertGlobal.show({
67
+ type: 'warning',
68
+ title: 'Thông báo',
69
+ message: response.data.meta.errorMessage,
70
+ primaryText: 'Đồng ý',
71
+ });
63
72
  }
64
73
  } else {
65
74
  this.isLoading = false;
66
75
  this.isError = false;
67
- Alert.alert('Thông báo', 'Có lỗi xảy ra. Vui lòng thử lại sau', [
68
- { text: 'Đồng ý' },
69
- ]);
76
+ AlertGlobal.show({
77
+ type: 'warning',
78
+ title: 'Thông báo',
79
+ message: 'Có lỗi xảy ra. Vui lòng thử lại sau',
80
+ primaryText: 'Đồng ý',
81
+ });
70
82
  }
71
83
  }
72
84
 
@@ -85,17 +97,23 @@ class Store {
85
97
  }
86
98
  } else {
87
99
  if (onError) onError();
88
- Alert.alert('Thông báo', response.data.meta.errorMessage, [
89
- { text: 'Đồng ý' },
90
- ]);
100
+ AlertGlobal.show({
101
+ type: 'warning',
102
+ title: 'Thông báo',
103
+ message: response.data.meta.errorMessage,
104
+ primaryText: 'Đồng ý',
105
+ });
91
106
  }
92
107
  } else {
93
108
  this.isLoading = false;
94
109
  this.isError = false;
95
110
  if (onError) onError();
96
- Alert.alert('Thông báo', 'Có lỗi xảy ra. Vui lòng thử lại sau', [
97
- { text: 'Đồng ý' },
98
- ]);
111
+ AlertGlobal.show({
112
+ type: 'warning',
113
+ title: 'Thông báo',
114
+ message: 'Có lỗi xảy ra. Vui lòng thử lại sau',
115
+ primaryText: 'Đồng ý',
116
+ });
99
117
  }
100
118
  }
101
119
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_mobx","require","_api","_log","_reactNative","_storage","_AppStore","_interopRequireDefault","_class","_descriptor","_descriptor2","_descriptor3","_descriptor4","Store","_classCallCheck2","default","_initializerDefineProperty2","_createClass2","key","value","uploadNationalCard","body","loanbriefId","onSuccess","response","_response$data$data","_response$data$data2","_response$data$data3","_response$data$data$i","_regenerator","async","_context","prev","next","isLoading","awrap","Api","getInstance","ekycNationalCard","sent","myLog","kind","data","meta","errorCode","info","side","missingCorner","isError","save","NATIONAL_ID","nationalIdDate","appStore","nationalID","issueDate","Alert","alert","text","errorMessage","stop","Promise","uploadImage","onError","_context2","uploadDocument","_applyDecoratedDescriptor2","prototype","observable","configurable","enumerable","writable","initializer","action","Object","getOwnPropertyDescriptor","nationalIDStore","_default","exports"],"sourceRoot":"../../../../src","sources":["screens/nationalIDBack/Store.tsx"],"mappings":"81BACA,IAAAA,KAAA,CAAAC,OAAA,SACA,IAAAC,IAAA,CAAAD,OAAA,uBACA,IAAAE,IAAA,CAAAF,OAAA,oBACA,IAAAG,YAAA,CAAAH,OAAA,iBACA,IAAAI,QAAA,CAAAJ,OAAA,wBACA,IAAAK,SAAA,CAAAC,sBAAA,CAAAN,OAAA,oBAAsC,IAAAO,MAAA,CAAAC,WAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,YAAA,IAEhC,CAAAC,KAAK,EAAAL,MAAA,qBAAAK,MAAA,KAAAC,gBAAA,CAAAC,OAAA,OAAAF,KAAA,KAAAG,2BAAA,CAAAD,OAAA,mBAAAN,WAAA,UAA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,eAAe,CAAG,GAAI,CAAA9D,KAAK,CAAC,CAAC,CAAC,IAAA+D,QAAA,CAAAC,OAAA,CAAA9D,OAAA,CAErB4D,eAAe","ignoreList":[]}
1
+ {"version":3,"names":["_mobx","require","_api","_log","_AlertGlobal","_storage","_AppStore","_interopRequireDefault","_class","_descriptor","_descriptor2","_descriptor3","_descriptor4","Store","_classCallCheck2","default","_initializerDefineProperty2","_createClass2","key","value","uploadNationalCard","body","loanbriefId","onSuccess","response","_response$data$data","_response$data$data2","_response$data$data3","_response$data$data$i","_regenerator","async","_context","prev","next","isLoading","awrap","Api","getInstance","ekycNationalCard","sent","myLog","kind","data","meta","errorCode","info","side","missingCorner","isError","save","NATIONAL_ID","nationalIdDate","appStore","nationalID","issueDate","AlertGlobal","show","type","title","message","primaryText","errorMessage","stop","Promise","uploadImage","onError","_context2","uploadDocument","_applyDecoratedDescriptor2","prototype","observable","configurable","enumerable","writable","initializer","action","Object","getOwnPropertyDescriptor","nationalIDStore","_default","exports"],"sourceRoot":"../../../../src","sources":["screens/nationalIDBack/Store.tsx"],"mappings":"81BACA,IAAAA,KAAA,CAAAC,OAAA,SACA,IAAAC,IAAA,CAAAD,OAAA,uBACA,IAAAE,IAAA,CAAAF,OAAA,oBACA,IAAAG,YAAA,CAAAH,OAAA,mDACA,IAAAI,QAAA,CAAAJ,OAAA,wBACA,IAAAK,SAAA,CAAAC,sBAAA,CAAAN,OAAA,oBAAsC,IAAAO,MAAA,CAAAC,WAAA,CAAAC,YAAA,CAAAC,YAAA,CAAAC,YAAA,IAEhC,CAAAC,KAAK,EAAAL,MAAA,qBAAAK,MAAA,KAAAC,gBAAA,CAAAC,OAAA,OAAAF,KAAA,KAAAG,2BAAA,CAAAD,OAAA,mBAAAN,WAAA,UAAAO,2BAAA,CAAAD,OAAA,iBAAAL,YAAA,UAAAM,2BAAA,CAAAD,OAAA,cAAAJ,YAAA,UAAAK,2BAAA,CAAAD,OAAA,wBAAAH,YAAA,iBAAAK,aAAA,CAA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M,YAAM,EAAAC,MAAA,CAAAC,wBAAA,CAAArE,MAAA,CAAA6D,SAAA,gBAAA7D,MAAA,CAAA6D,SAAA,EAAA7D,MAAA,EAoCT,GAAM,CAAAsE,eAAe,CAAG,GAAI,CAAAjE,KAAK,CAAC,CAAC,CAAC,IAAAkE,QAAA,CAAAC,OAAA,CAAAjE,OAAA,CAErB+D,eAAe","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.NationalIDBack=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _native=require("@react-navigation/native");var _mobxReactLite=require("mobx-react-lite");var _CommonStyles=require("../CommonStyles");var _keyboardspace=_interopRequireDefault(require("../../components/keyboardspace"));var _MButton=_interopRequireDefault(require("../../components/MButton"));var _navigation=require("../../navigation");var _MText=require("../../components/MText");var _icons=require("../../assets/icons");var _Store=_interopRequireDefault(require("./Store"));var _Loading=_interopRequireDefault(require("../../components/Loading"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _LivenessStore=_interopRequireDefault(require("../liveness/LivenessStore"));var _jsxFileName="/Users/tima/Tima/react-native-timacare/src/screens/nationalIDBack/index.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var logoView={position:'absolute',width:'100%',height:'100%',resizeMode:'cover'};var _Dimensions$get=_reactNative.Dimensions.get('window'),screenWidth=_Dimensions$get.width,screenHeight=_Dimensions$get.height;var frameWidth=screenWidth*0.85;var frameHeight=frameWidth*0.63;var frameAspectRatio=frameWidth/frameHeight;var NationalIDBack=exports.NationalIDBack=(0,_mobxReactLite.observer)(function NationalIDBack(props){var _props$route$params,_this=this;var navigation=(0,_native.useNavigation)();var _useState=(0,_react.useState)(null),_useState2=(0,_slicedToArray2.default)(_useState,2),photo=_useState2[0],setPhoto=_useState2[1];var loan=(_props$route$params=props.route.params)==null?void 0:_props$route$params.loan;var _useState3=(0,_react.useState)(null),_useState4=(0,_slicedToArray2.default)(_useState3,2),base64=_useState4[0],setBase64=_useState4[1];var _useState5=(0,_react.useState)(false),_useState6=(0,_slicedToArray2.default)(_useState5,2),isLoading=_useState6[0],setIsLoading=_useState6[1];var nextStep=function nextStep(values){setIsLoading(true);var form2=new FormData();form2.append('image',{uri:photo,type:'image/jpg',name:'image.jpg'});form2.append('loanbriefId',loan.id);form2.append('TypeDocumentId',311);form2.append('UploadFrom',3);form2.append('SubTypeId',2);_Store.default.uploadImage(form2,function(){setIsLoading(false);navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.Selfie,{loan:loan}));},function(){setIsLoading(false);});};var takePhoto=function takePhoto(){_LivenessStore.default.getConfigOcr(function(data){if(data===1){navigation.push(_navigation.ScreenNames.CCCDCameraScreen,{front:false,callback:function callback(photo){setPhoto(photo);}});}else{navigation.push(_navigation.ScreenNames.Camera,{front:false,callback:function callback(photo){setPhoto(photo);},base64:function base64(data){setBase64(data);}});}},function(){navigation.push(_navigation.ScreenNames.Camera,{front:false,callback:function callback(photo){setPhoto(photo);},base64:function base64(data){setBase64(data);}});});};return _react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:115,columnNumber:5}},_react.default.createElement(_reactNative.Image,{source:require('../../assets/img/EKYC.png'),style:logoView,__self:this,__source:{fileName:_jsxFileName,lineNumber:116,columnNumber:7}}),_react.default.createElement(_MHeader.default,{title:"X\xE1c th\u1EF1c kh\xE1ch h\xE0ng",onBack:function onBack(){navigation.goBack();},__self:this,__source:{fileName:_jsxFileName,lineNumber:117,columnNumber:7}}),_react.default.createElement(_reactNative.SafeAreaView,{style:_CommonStyles.commonStyles.fill,__self:this,__source:{fileName:_jsxFileName,lineNumber:123,columnNumber:7}},_react.default.createElement(_reactNative.ScrollView,{style:_CommonStyles.commonStyles.fill,__self:this,__source:{fileName:_jsxFileName,lineNumber:124,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{},__self:this,__source:{fileName:_jsxFileName,lineNumber:125,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:{paddingHorizontal:16,paddingVertical:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:126,columnNumber:13}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:127,columnNumber:15}},_react.default.createElement(_icons.TimaSmallWhite,{__self:this,__source:{fileName:_jsxFileName,lineNumber:134,columnNumber:17}}),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{fontSize:16,color:'#FFFFFF',marginLeft:8}],__self:this,__source:{fileName:_jsxFileName,lineNumber:135,columnNumber:17}},"Ch\u1EE5p CMND/ CCCD m\u1EB7t sau")),_react.default.createElement(_reactNative.View,{style:{width:'100%',aspectRatio:frameAspectRatio,borderWidth:8,borderRadius:6,borderColor:'#FFFFFF',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:144,columnNumber:15}},_react.default.createElement(_reactNative.Image,{source:photo?{uri:photo}:require('../../assets/img/national_id_back.png'),style:{width:'100%',height:'100%',resizeMode:'cover'},__self:this,__source:{fileName:_jsxFileName,lineNumber:154,columnNumber:17}})),_react.default.createElement(_reactNative.View,{style:{marginTop:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:167,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{fontSize:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:168,columnNumber:17}},"L\u01B0u \xFD ch\u1EE5p CMND/ CCCD"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:16,alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:171,columnNumber:17}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:178,columnNumber:19}}),_react.default.createElement(_MText.MText,{style:{color:'#333333',marginLeft:8,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:179,columnNumber:19}},"N\xEAn \u0111\u1EB7t CCCD/ CMND l\xEAn m\u1EB7t ph\u1EB3ng \u0111\u1EC3 ch\u1EE5p")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:185,columnNumber:17}},_react.default.createElement(_icons.TimaSmall,{style:{marginTop:5},__self:this,__source:{fileName:_jsxFileName,lineNumber:186,columnNumber:19}}),_react.default.createElement(_MText.MText,{style:{color:'#333333',marginLeft:8,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:187,columnNumber:19}},"\u0110\u1EB7t CCCD/ CMND n\u1EB1m g\u1ECDn trong khung h\xECnh",'\n',"(Kh\xF4ng qu\xE1 nh\u1ECF hay qu\xE1 to l\xE0m m\u1EA5t chi ti\u1EBFt)")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:8,alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:194,columnNumber:17}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:201,columnNumber:19}}),_react.default.createElement(_MText.MText,{style:{color:'#333333',marginLeft:8,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:202,columnNumber:19}},"Ch\u1ECDn n\u01A1i \xE1nh s\xE1ng t\u1ED1t, tr\xE1nh l\xF3a/ ch\xF3i h\xECnh ch\u1EE5p")))))),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',paddingHorizontal:16,marginBottom:30},__self:this,__source:{fileName:_jsxFileName,lineNumber:212,columnNumber:9}},_react.default.createElement(_MButton.default,{onPress:function onPress(){takePhoto();},disabled:isLoading,style:[_CommonStyles.commonStyles.row,_CommonStyles.commonStyles.alignCenter,_CommonStyles.commonStyles.justifyCenter,{backgroundColor:'#FFFFFF',height:40,borderRadius:30,flex:1,marginRight:8,borderWidth:1,borderColor:'#EF4123'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:219,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#F05123'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:239,columnNumber:13}},"Ch\u1EE5p \u1EA3nh")),_react.default.createElement(_mobxReactLite.Observer,{__self:this,__source:{fileName:_jsxFileName,lineNumber:244,columnNumber:11}},function(){return _react.default.createElement(_MButton.default,{disabled:!photo||isLoading,onPress:nextStep,style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:246,columnNumber:15}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF7A00','#EF4123'],style:[_CommonStyles.commonStyles.alignCenter,_CommonStyles.commonStyles.justifyCenter,{height:40,borderRadius:30,marginLeft:8}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:251,columnNumber:17}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'white'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:263,columnNumber:19}},"Ti\u1EBFp t\u1EE5c")));})),(loan==null?void 0:loan.isPipelineCIMB)&&_react.default.createElement(_reactNative.View,{style:{marginBottom:24,marginTop:8,flexDirection:'row',justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:272,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:280,columnNumber:13}},"Cung c\u1EA5p b\u1EDFi",' '),_react.default.createElement(_icons.CIMBBank,{__self:this,__source:{fileName:_jsxFileName,lineNumber:283,columnNumber:13}})),_react.default.createElement(_keyboardspace.default,{__self:this,__source:{fileName:_jsxFileName,lineNumber:286,columnNumber:9}})),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:288,columnNumber:7}}));});
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.NationalIDBack=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _native=require("@react-navigation/native");var _mobxReactLite=require("mobx-react-lite");var _CommonStyles=require("../CommonStyles");var _keyboardspace=_interopRequireDefault(require("../../components/keyboardspace"));var _MButton=_interopRequireDefault(require("../../components/MButton"));var _navigation=require("../../navigation");var _MText=require("../../components/MText");var _icons=require("../../assets/icons");var _Store=_interopRequireDefault(require("./Store"));var _Loading=_interopRequireDefault(require("../../components/Loading"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _jsxFileName="/Users/tima/Tima/react-native-timacare/src/screens/nationalIDBack/index.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var frameAspectRatio=1/0.63;var NationalIDBack=exports.NationalIDBack=(0,_mobxReactLite.observer)(function NationalIDBack(props){var _props$route$params;var navigation=(0,_native.useNavigation)();var _useState=(0,_react.useState)(null),_useState2=(0,_slicedToArray2.default)(_useState,2),photo=_useState2[0],setPhoto=_useState2[1];var _useState3=(0,_react.useState)(null),_useState4=(0,_slicedToArray2.default)(_useState3,2),base64=_useState4[0],setBase64=_useState4[1];var _useState5=(0,_react.useState)(false),_useState6=(0,_slicedToArray2.default)(_useState5,2),isLoading=_useState6[0],setIsLoading=_useState6[1];var loan=(_props$route$params=props.route.params)==null?void 0:_props$route$params.loan;var nextStep=function nextStep(){setIsLoading(true);var form=new FormData();form.append('image',{uri:photo,type:'image/jpg',name:'image.jpg'});form.append('loanbriefId',loan.id);form.append('TypeDocumentId',311);form.append('UploadFrom',3);form.append('SubTypeId',2);_Store.default.uploadImage(form,function(){setIsLoading(false);navigation.dispatch(_native.StackActions.push(_navigation.ScreenNames.Selfie,{loan:loan}));},function(){setIsLoading(false);});};var takePhoto=function takePhoto(){navigation.push(_navigation.ScreenNames.CCCDCameraScreen,{front:false,callback:setPhoto});};return _react.default.createElement(_reactNative.View,{style:_CommonStyles.commonStyles.fill,__self:this,__source:{fileName:_jsxFileName,lineNumber:66,columnNumber:5}},_react.default.createElement(_reactNative.Image,{source:require('../../assets/img/EKYC.png'),style:styles.logo,__self:this,__source:{fileName:_jsxFileName,lineNumber:67,columnNumber:7}}),_react.default.createElement(_MHeader.default,{title:"X\xE1c th\u1EF1c kh\xE1ch h\xE0ng",onBack:function onBack(){return navigation.goBack();},__self:this,__source:{fileName:_jsxFileName,lineNumber:71,columnNumber:7}}),_react.default.createElement(_reactNative.SafeAreaView,{style:_CommonStyles.commonStyles.fill,__self:this,__source:{fileName:_jsxFileName,lineNumber:72,columnNumber:7}},_react.default.createElement(_reactNative.ScrollView,{style:_CommonStyles.commonStyles.fill,__self:this,__source:{fileName:_jsxFileName,lineNumber:73,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:styles.body,__self:this,__source:{fileName:_jsxFileName,lineNumber:74,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:styles.frontRow,__self:this,__source:{fileName:_jsxFileName,lineNumber:75,columnNumber:13}},_react.default.createElement(_icons.TimaSmallWhite,{__self:this,__source:{fileName:_jsxFileName,lineNumber:76,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,styles.frontLabel],__self:this,__source:{fileName:_jsxFileName,lineNumber:77,columnNumber:15}},"Ch\u1EE5p CMND/ CCCD m\u1EB7t sau")),_react.default.createElement(_reactNative.View,{style:styles.frame,__self:this,__source:{fileName:_jsxFileName,lineNumber:81,columnNumber:13}},_react.default.createElement(_reactNative.Image,{source:photo?{uri:photo}:require('../../assets/img/national_id_back.png'),style:styles.frameImage,__self:this,__source:{fileName:_jsxFileName,lineNumber:82,columnNumber:15}})),_react.default.createElement(_reactNative.View,{style:styles.noteSection,__self:this,__source:{fileName:_jsxFileName,lineNumber:91,columnNumber:13}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,styles.noteTitle],__self:this,__source:{fileName:_jsxFileName,lineNumber:92,columnNumber:15}},"L\u01B0u \xFD ch\u1EE5p CMND/ CCCD"),_react.default.createElement(_reactNative.View,{style:styles.noteRow,__self:this,__source:{fileName:_jsxFileName,lineNumber:95,columnNumber:15}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:96,columnNumber:17}}),_react.default.createElement(_MText.MText,{style:styles.noteText,__self:this,__source:{fileName:_jsxFileName,lineNumber:97,columnNumber:17}},"N\xEAn \u0111\u1EB7t CCCD/ CMND l\xEAn m\u1EB7t ph\u1EB3ng \u0111\u1EC3 ch\u1EE5p")),_react.default.createElement(_reactNative.View,{style:styles.noteRowTop,__self:this,__source:{fileName:_jsxFileName,lineNumber:101,columnNumber:15}},_react.default.createElement(_icons.TimaSmall,{style:styles.noteBulletTop,__self:this,__source:{fileName:_jsxFileName,lineNumber:102,columnNumber:17}}),_react.default.createElement(_MText.MText,{style:styles.noteText,__self:this,__source:{fileName:_jsxFileName,lineNumber:103,columnNumber:17}},"\u0110\u1EB7t CCCD/ CMND n\u1EB1m g\u1ECDn trong khung h\xECnh",'\n',"(Kh\xF4ng qu\xE1 nh\u1ECF hay qu\xE1 to l\xE0m m\u1EA5t chi ti\u1EBFt)")),_react.default.createElement(_reactNative.View,{style:styles.noteRow,__self:this,__source:{fileName:_jsxFileName,lineNumber:108,columnNumber:15}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:109,columnNumber:17}}),_react.default.createElement(_MText.MText,{style:styles.noteText,__self:this,__source:{fileName:_jsxFileName,lineNumber:110,columnNumber:17}},"Ch\u1ECDn n\u01A1i \xE1nh s\xE1ng t\u1ED1t, tr\xE1nh l\xF3a/ ch\xF3i h\xECnh ch\u1EE5p"))))),_react.default.createElement(_reactNative.View,{style:styles.actions,__self:this,__source:{fileName:_jsxFileName,lineNumber:117,columnNumber:9}},_react.default.createElement(_MButton.default,{onPress:takePhoto,disabled:isLoading,style:[_CommonStyles.commonStyles.row,_CommonStyles.commonStyles.alignCenter,_CommonStyles.commonStyles.justifyCenter,styles.captureBtn],__self:this,__source:{fileName:_jsxFileName,lineNumber:118,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,styles.captureText],__self:this,__source:{fileName:_jsxFileName,lineNumber:128,columnNumber:13}},"Ch\u1EE5p \u1EA3nh")),_react.default.createElement(_MButton.default,{disabled:!photo||isLoading,onPress:nextStep,style:_CommonStyles.commonStyles.fill,__self:this,__source:{fileName:_jsxFileName,lineNumber:133,columnNumber:11}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF7A00','#EF4123'],style:[_CommonStyles.commonStyles.alignCenter,_CommonStyles.commonStyles.justifyCenter,styles.gradientBtn],__self:this,__source:{fileName:_jsxFileName,lineNumber:138,columnNumber:13}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,styles.continueText],__self:this,__source:{fileName:_jsxFileName,lineNumber:146,columnNumber:15}},"Ti\u1EBFp t\u1EE5c")))),(loan==null?void 0:loan.isPipelineCIMB)&&_react.default.createElement(_reactNative.View,{style:styles.cimbRow,__self:this,__source:{fileName:_jsxFileName,lineNumber:153,columnNumber:11}},_react.default.createElement(_MText.MText,{style:styles.cimbText,__self:this,__source:{fileName:_jsxFileName,lineNumber:154,columnNumber:13}},"Cung c\u1EA5p b\u1EDFi "),_react.default.createElement(_icons.CIMBBank,{__self:this,__source:{fileName:_jsxFileName,lineNumber:155,columnNumber:13}})),_react.default.createElement(_keyboardspace.default,{__self:this,__source:{fileName:_jsxFileName,lineNumber:158,columnNumber:9}})),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:160,columnNumber:7}}));});var styles=_reactNative.StyleSheet.create({logo:{position:'absolute',width:'100%',height:'100%',resizeMode:'cover'},body:{paddingHorizontal:16,paddingVertical:16},frontRow:{flexDirection:'row',alignItems:'center',marginTop:16},frontLabel:{fontSize:16,color:'#FFFFFF',marginLeft:8},frame:{width:'100%',aspectRatio:frameAspectRatio,borderWidth:8,borderRadius:6,borderColor:'#FFFFFF',marginTop:16},frameImage:{width:'100%',height:'100%',resizeMode:'cover'},noteSection:{marginTop:24},noteTitle:{fontSize:16},noteRow:{flexDirection:'row',marginTop:16,alignItems:'center'},noteRowTop:{flexDirection:'row',marginTop:8},noteBulletTop:{marginTop:5},noteText:{color:'#333333',marginLeft:8,fontSize:12},actions:{flexDirection:'row',paddingHorizontal:16,marginBottom:30},captureBtn:{backgroundColor:'#FFFFFF',height:40,borderRadius:30,flex:1,marginRight:8,borderWidth:1,borderColor:'#EF4123'},captureText:{color:'#F05123'},gradientBtn:{height:40,borderRadius:30,marginLeft:8},continueText:{color:'white'},cimbRow:{marginBottom:24,marginTop:8,flexDirection:'row',justifyContent:'center'},cimbText:{fontSize:12,color:'#333333'}});
2
2
  //# sourceMappingURL=index.js.map
@@ -1,70 +1,50 @@
1
1
  //@ts-nocheck
2
2
  import React, { useState } from 'react';
3
3
  import {
4
- ActivityIndicator,
5
- Alert,
6
- Dimensions,
7
4
  Image,
8
- ImageStyle,
9
5
  SafeAreaView,
10
6
  ScrollView,
11
- TouchableOpacity,
7
+ StyleSheet,
12
8
  View,
13
9
  } from 'react-native';
14
10
  import { StackActions, useNavigation } from '@react-navigation/native';
15
- import { observer, Observer } from 'mobx-react-lite';
11
+ import { observer } from 'mobx-react-lite';
16
12
  import { commonStyles } from '../CommonStyles';
17
13
  import KeyboardSpacer from '../../components/keyboardspace';
18
14
  import MButton from '../../components/MButton';
19
- import { color } from '../../theme';
20
15
  import { ScreenNames } from '../../navigation';
21
16
  import { MText } from '../../components/MText';
22
- import {
23
- CIMBBank,
24
- IconBackWhite,
25
- TimaSmall,
26
- TimaSmallWhite,
27
- } from '../../assets/icons';
28
- import appStore from '../../AppStore';
17
+ import { CIMBBank, TimaSmall, TimaSmallWhite } from '../../assets/icons';
29
18
  import nationalIDStore from './Store';
30
19
  import Loading from '../../components/Loading';
31
20
  import LinearGradient from 'react-native-linear-gradient';
32
21
  import MHeader from '../../components/MHeader';
33
22
  import livenessStore from '../liveness/LivenessStore';
34
23
 
35
- const logoView: ImageStyle = {
36
- position: 'absolute',
37
- width: '100%',
38
- height: '100%',
39
- resizeMode: 'cover',
40
- };
41
-
42
- const { width: screenWidth, height: screenHeight } = Dimensions.get('window');
43
- const frameWidth = screenWidth * 0.85;
44
- const frameHeight = frameWidth * 0.63; // tỷ lệ giống CCCD
45
- const frameAspectRatio = frameWidth / frameHeight;
24
+ // Khung ảnh có chiều cao = 0.63 * chiều rộng nên tỉ lệ W/H = 1 / 0.63 (giống CCCD)
25
+ const frameAspectRatio = 1 / 0.63;
46
26
 
47
27
  export const NationalIDBack = observer(function NationalIDBack(props: any) {
48
28
  const navigation = useNavigation();
49
29
  const [photo, setPhoto] = useState(null);
50
- const loan = props.route.params?.loan;
51
30
  const [base64, setBase64] = useState(null);
52
31
  const [isLoading, setIsLoading] = useState(false);
32
+ const loan = props.route.params?.loan;
53
33
 
54
- const nextStep = (values) => {
34
+ const nextStep = () => {
55
35
  setIsLoading(true);
56
- const form2 = new FormData();
57
- form2.append('image', {
36
+ const form = new FormData();
37
+ form.append('image', {
58
38
  uri: photo,
59
39
  type: 'image/jpg',
60
40
  name: 'image.jpg',
61
41
  });
62
- form2.append('loanbriefId', loan.id);
63
- form2.append('TypeDocumentId', 311);
64
- form2.append('UploadFrom', 3);
65
- form2.append('SubTypeId', 2);
42
+ form.append('loanbriefId', loan.id);
43
+ form.append('TypeDocumentId', 311);
44
+ form.append('UploadFrom', 3);
45
+ form.append('SubTypeId', 2);
66
46
  nationalIDStore.uploadImage(
67
- form2,
47
+ form,
68
48
  () => {
69
49
  setIsLoading(false);
70
50
  navigation.dispatch(StackActions.push(ScreenNames.Selfie, { loan }));
@@ -76,210 +56,102 @@ export const NationalIDBack = observer(function NationalIDBack(props: any) {
76
56
  };
77
57
 
78
58
  const takePhoto = () => {
79
- livenessStore.getConfigOcr(
80
- (data) => {
81
- if (data === 1) {
82
- navigation.push(ScreenNames.CCCDCameraScreen, {
83
- front: false,
84
- callback: (photo) => {
85
- setPhoto(photo);
86
- },
87
- });
88
- } else {
89
- navigation.push(ScreenNames.Camera, {
90
- front: false,
91
- callback: (photo) => {
92
- setPhoto(photo);
93
- },
94
- base64: (data) => {
95
- setBase64(data);
96
- },
97
- });
98
- }
99
- },
100
- () => {
101
- navigation.push(ScreenNames.Camera, {
102
- front: false,
103
- callback: (photo) => {
104
- setPhoto(photo);
105
- },
106
- base64: (data) => {
107
- setBase64(data);
108
- },
109
- });
110
- }
111
- );
59
+ navigation.push(ScreenNames.CCCDCameraScreen, {
60
+ front: false,
61
+ callback: setPhoto,
62
+ });
112
63
  };
113
64
 
114
65
  return (
115
- <View style={{ flex: 1 }}>
116
- <Image source={require('../../assets/img/EKYC.png')} style={logoView} />
117
- <MHeader
118
- title="Xác thực khách hàng"
119
- onBack={() => {
120
- navigation.goBack();
121
- }}
66
+ <View style={commonStyles.fill}>
67
+ <Image
68
+ source={require('../../assets/img/EKYC.png')}
69
+ style={styles.logo}
122
70
  />
71
+ <MHeader title="Xác thực khách hàng" onBack={() => navigation.goBack()} />
123
72
  <SafeAreaView style={commonStyles.fill}>
124
73
  <ScrollView style={commonStyles.fill}>
125
- <View style={{}}>
126
- <View style={{ paddingHorizontal: 16, paddingVertical: 16 }}>
127
- <View
128
- style={{
129
- flexDirection: 'row',
130
- alignItems: 'center',
131
- marginTop: 16,
132
- }}
133
- >
134
- <TimaSmallWhite />
135
- <MText
136
- style={[
137
- commonStyles.textNormalBold,
138
- { fontSize: 16, color: '#FFFFFF', marginLeft: 8 },
139
- ]}
140
- >
141
- Chụp CMND/ CCCD mặt sau
74
+ <View style={styles.body}>
75
+ <View style={styles.frontRow}>
76
+ <TimaSmallWhite />
77
+ <MText style={[commonStyles.textNormalBold, styles.frontLabel]}>
78
+ Chụp CMND/ CCCD mặt sau
79
+ </MText>
80
+ </View>
81
+ <View style={styles.frame}>
82
+ <Image
83
+ source={
84
+ photo
85
+ ? { uri: photo }
86
+ : require('../../assets/img/national_id_back.png')
87
+ }
88
+ style={styles.frameImage}
89
+ />
90
+ </View>
91
+ <View style={styles.noteSection}>
92
+ <MText style={[commonStyles.textNormalBold, styles.noteTitle]}>
93
+ Lưu ý chụp CMND/ CCCD
94
+ </MText>
95
+ <View style={styles.noteRow}>
96
+ <TimaSmall />
97
+ <MText style={styles.noteText}>
98
+ Nên đặt CCCD/ CMND lên mặt phẳng để chụp
142
99
  </MText>
143
100
  </View>
144
- <View
145
- style={{
146
- width: '100%',
147
- aspectRatio: frameAspectRatio,
148
- borderWidth: 8,
149
- borderRadius: 6,
150
- borderColor: '#FFFFFF',
151
- marginTop: 16,
152
- }}
153
- >
154
- <Image
155
- source={
156
- photo
157
- ? { uri: photo }
158
- : require('../../assets/img/national_id_back.png')
159
- }
160
- style={{
161
- width: '100%',
162
- height: '100%',
163
- resizeMode: 'cover',
164
- }}
165
- />
101
+ <View style={styles.noteRowTop}>
102
+ <TimaSmall style={styles.noteBulletTop} />
103
+ <MText style={styles.noteText}>
104
+ Đặt CCCD/ CMND nằm gọn trong khung hình{'\n'}(Không quá nhỏ
105
+ hay quá to làm mất chi tiết)
106
+ </MText>
166
107
  </View>
167
- <View style={{ marginTop: 24 }}>
168
- <MText style={[commonStyles.textNormalBold, { fontSize: 16 }]}>
169
- Lưu ý chụp CMND/ CCCD
108
+ <View style={styles.noteRow}>
109
+ <TimaSmall />
110
+ <MText style={styles.noteText}>
111
+ Chọn nơi ánh sáng tốt, tránh lóa/ chói hình chụp
170
112
  </MText>
171
- <View
172
- style={{
173
- flexDirection: 'row',
174
- marginTop: 16,
175
- alignItems: 'center',
176
- }}
177
- >
178
- <TimaSmall />
179
- <MText
180
- style={{ color: '#333333', marginLeft: 8, fontSize: 12 }}
181
- >
182
- Nên đặt CCCD/ CMND lên mặt phẳng để chụp
183
- </MText>
184
- </View>
185
- <View style={{ flexDirection: 'row', marginTop: 8 }}>
186
- <TimaSmall style={{ marginTop: 5 }} />
187
- <MText
188
- style={{ color: '#333333', marginLeft: 8, fontSize: 12 }}
189
- >
190
- Đặt CCCD/ CMND nằm gọn trong khung hình{'\n'}(Không quá nhỏ
191
- hay quá to làm mất chi tiết)
192
- </MText>
193
- </View>
194
- <View
195
- style={{
196
- flexDirection: 'row',
197
- marginTop: 8,
198
- alignItems: 'center',
199
- }}
200
- >
201
- <TimaSmall />
202
- <MText
203
- style={{ color: '#333333', marginLeft: 8, fontSize: 12 }}
204
- >
205
- Chọn nơi ánh sáng tốt, tránh lóa/ chói hình chụp
206
- </MText>
207
- </View>
208
113
  </View>
209
114
  </View>
210
115
  </View>
211
116
  </ScrollView>
212
- <View
213
- style={{
214
- flexDirection: 'row',
215
- paddingHorizontal: 16,
216
- marginBottom: 30,
217
- }}
218
- >
117
+ <View style={styles.actions}>
219
118
  <MButton
220
- onPress={() => {
221
- takePhoto();
222
- }}
119
+ onPress={takePhoto}
223
120
  disabled={isLoading}
224
121
  style={[
225
122
  commonStyles.row,
226
123
  commonStyles.alignCenter,
227
124
  commonStyles.justifyCenter,
228
- {
229
- backgroundColor: '#FFFFFF',
230
- height: 40,
231
- borderRadius: 30,
232
- flex: 1,
233
- marginRight: 8,
234
- borderWidth: 1,
235
- borderColor: '#EF4123',
236
- },
125
+ styles.captureBtn,
237
126
  ]}
238
127
  >
239
- <MText style={[commonStyles.textNormal, { color: '#F05123' }]}>
128
+ <MText style={[commonStyles.textNormal, styles.captureText]}>
240
129
  Chụp ảnh
241
130
  </MText>
242
131
  </MButton>
243
132
 
244
- <Observer>
245
- {() => (
246
- <MButton
247
- disabled={!photo || isLoading}
248
- onPress={nextStep}
249
- style={{ flex: 1 }}
250
- >
251
- <LinearGradient
252
- colors={['#FF7A00', '#EF4123']}
253
- style={[
254
- commonStyles.alignCenter,
255
- commonStyles.justifyCenter,
256
- {
257
- height: 40,
258
- borderRadius: 30,
259
- marginLeft: 8,
260
- },
261
- ]}
262
- >
263
- <MText style={[commonStyles.textNormal, { color: 'white' }]}>
264
- Tiếp tục
265
- </MText>
266
- </LinearGradient>
267
- </MButton>
268
- )}
269
- </Observer>
133
+ <MButton
134
+ disabled={!photo || isLoading}
135
+ onPress={nextStep}
136
+ style={commonStyles.fill}
137
+ >
138
+ <LinearGradient
139
+ colors={['#FF7A00', '#EF4123']}
140
+ style={[
141
+ commonStyles.alignCenter,
142
+ commonStyles.justifyCenter,
143
+ styles.gradientBtn,
144
+ ]}
145
+ >
146
+ <MText style={[commonStyles.textNormal, styles.continueText]}>
147
+ Tiếp tục
148
+ </MText>
149
+ </LinearGradient>
150
+ </MButton>
270
151
  </View>
271
152
  {loan?.isPipelineCIMB && (
272
- <View
273
- style={{
274
- marginBottom: 24,
275
- marginTop: 8,
276
- flexDirection: 'row',
277
- justifyContent: 'center',
278
- }}
279
- >
280
- <MText style={{ fontSize: 12, color: '#333333' }}>
281
- Cung cấp bởi{' '}
282
- </MText>
153
+ <View style={styles.cimbRow}>
154
+ <MText style={styles.cimbText}>Cung cấp bởi </MText>
283
155
  <CIMBBank />
284
156
  </View>
285
157
  )}
@@ -289,3 +161,50 @@ export const NationalIDBack = observer(function NationalIDBack(props: any) {
289
161
  </View>
290
162
  );
291
163
  });
164
+
165
+ const styles = StyleSheet.create({
166
+ logo: {
167
+ position: 'absolute',
168
+ width: '100%',
169
+ height: '100%',
170
+ resizeMode: 'cover',
171
+ },
172
+ body: { paddingHorizontal: 16, paddingVertical: 16 },
173
+ frontRow: { flexDirection: 'row', alignItems: 'center', marginTop: 16 },
174
+ frontLabel: { fontSize: 16, color: '#FFFFFF', marginLeft: 8 },
175
+ frame: {
176
+ width: '100%',
177
+ aspectRatio: frameAspectRatio,
178
+ borderWidth: 8,
179
+ borderRadius: 6,
180
+ borderColor: '#FFFFFF',
181
+ marginTop: 16,
182
+ },
183
+ frameImage: { width: '100%', height: '100%', resizeMode: 'cover' },
184
+ noteSection: { marginTop: 24 },
185
+ noteTitle: { fontSize: 16 },
186
+ noteRow: { flexDirection: 'row', marginTop: 16, alignItems: 'center' },
187
+ noteRowTop: { flexDirection: 'row', marginTop: 8 },
188
+ noteBulletTop: { marginTop: 5 },
189
+ noteText: { color: '#333333', marginLeft: 8, fontSize: 12 },
190
+ actions: { flexDirection: 'row', paddingHorizontal: 16, marginBottom: 30 },
191
+ captureBtn: {
192
+ backgroundColor: '#FFFFFF',
193
+ height: 40,
194
+ borderRadius: 30,
195
+ flex: 1,
196
+ marginRight: 8,
197
+ borderWidth: 1,
198
+ borderColor: '#EF4123',
199
+ },
200
+ captureText: { color: '#F05123' },
201
+ gradientBtn: { height: 40, borderRadius: 30, marginLeft: 8 },
202
+ continueText: { color: 'white' },
203
+ cimbRow: {
204
+ marginBottom: 24,
205
+ marginTop: 8,
206
+ flexDirection: 'row',
207
+ justifyContent: 'center',
208
+ },
209
+ cimbText: { fontSize: 12, color: '#333333' },
210
+ });