react-native-timacare 3.3.11 → 3.3.13

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 (238) hide show
  1. package/lib/commonjs/RNTimacare.js +1 -1
  2. package/lib/commonjs/RNTimacare.js.flow +2 -11
  3. package/lib/commonjs/RNTimacare.js.map +1 -1
  4. package/lib/commonjs/assets/digital_topup/index.js +2 -0
  5. package/lib/commonjs/assets/digital_topup/index.js.flow +28 -0
  6. package/lib/commonjs/assets/digital_topup/index.js.map +1 -0
  7. package/lib/commonjs/assets/digital_topup/step1.svg +31 -0
  8. package/lib/commonjs/assets/digital_topup/step1_disable.svg +31 -0
  9. package/lib/commonjs/assets/digital_topup/step1_success.svg +21 -0
  10. package/lib/commonjs/assets/digital_topup/step2.svg +39 -0
  11. package/lib/commonjs/assets/digital_topup/step2_disable.svg +16 -0
  12. package/lib/commonjs/assets/digital_topup/step2_success.svg +21 -0
  13. package/lib/commonjs/assets/digital_topup/step3.svg +23 -0
  14. package/lib/commonjs/assets/digital_topup/step3_disable.svg +10 -0
  15. package/lib/commonjs/assets/digital_topup/step3_success.svg +21 -0
  16. package/lib/commonjs/assets/digital_topup/step4_disable.svg +16 -0
  17. package/lib/commonjs/assets/digital_topup/step4_success.svg +21 -0
  18. package/lib/commonjs/components/AlertLoan.js +1 -1
  19. package/lib/commonjs/components/AlertLoan.js.flow +1 -1
  20. package/lib/commonjs/components/AlertLoan.js.map +1 -1
  21. package/lib/commonjs/components/ItemTimaOneV3.js +1 -1
  22. package/lib/commonjs/components/ItemTimaOneV3.js.flow +1 -5
  23. package/lib/commonjs/components/ItemTimaOneV3.js.map +1 -1
  24. package/lib/commonjs/components/MHeader.js +1 -1
  25. package/lib/commonjs/components/MHeader.js.flow +3 -2
  26. package/lib/commonjs/components/MHeader.js.map +1 -1
  27. package/lib/commonjs/components/ModalOptionLoan.js +1 -1
  28. package/lib/commonjs/components/ModalOptionLoan.js.flow +4 -2
  29. package/lib/commonjs/components/ModalOptionLoan.js.map +1 -1
  30. package/lib/commonjs/components/ModalOptionLoanDigital.js +2 -0
  31. package/lib/commonjs/components/ModalOptionLoanDigital.js.flow +297 -0
  32. package/lib/commonjs/components/ModalOptionLoanDigital.js.map +1 -0
  33. package/lib/commonjs/navigation/primary-navigator.js +1 -1
  34. package/lib/commonjs/navigation/primary-navigator.js.flow +0 -3
  35. package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
  36. package/lib/commonjs/screens/camera/CCCDCameraScreen.js +1 -1
  37. package/lib/commonjs/screens/camera/CCCDCameraScreen.js.flow +299 -126
  38. package/lib/commonjs/screens/camera/CCCDCameraScreen.js.map +1 -1
  39. package/lib/commonjs/screens/detail-loan/QrPayment.js +1 -1
  40. package/lib/commonjs/screens/detail-loan/QrPayment.js.flow +1 -0
  41. package/lib/commonjs/screens/detail-loan/QrPayment.js.map +1 -1
  42. package/lib/commonjs/screens/detail-loan/ShowQrCode.js +1 -1
  43. package/lib/commonjs/screens/detail-loan/ShowQrCode.js.flow +1 -1
  44. package/lib/commonjs/screens/detail-loan/ShowQrCode.js.map +1 -1
  45. package/lib/commonjs/screens/home/DigitalTopupItem.js +2 -0
  46. package/lib/commonjs/screens/home/DigitalTopupItem.js.flow +562 -0
  47. package/lib/commonjs/screens/home/DigitalTopupItem.js.map +1 -0
  48. package/lib/commonjs/screens/home/index.js +1 -1
  49. package/lib/commonjs/screens/home/index.js.flow +49 -4
  50. package/lib/commonjs/screens/home/index.js.map +1 -1
  51. package/lib/commonjs/screens/liveness-v2/index.js +1 -1
  52. package/lib/commonjs/screens/liveness-v2/index.js.flow +12 -9
  53. package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
  54. package/lib/commonjs/screens/nationalID/index.js +1 -1
  55. package/lib/commonjs/screens/nationalID/index.js.flow +4 -2
  56. package/lib/commonjs/screens/nationalID/index.js.map +1 -1
  57. package/lib/commonjs/screens/nationalIDBack/index.js +1 -1
  58. package/lib/commonjs/screens/nationalIDBack/index.js.flow +3 -1
  59. package/lib/commonjs/screens/nationalIDBack/index.js.map +1 -1
  60. package/lib/commonjs/screens/toan-trinh-so/OCR.js +1 -1
  61. package/lib/commonjs/screens/toan-trinh-so/OCR.js.flow +3 -1
  62. package/lib/commonjs/screens/toan-trinh-so/OCR.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 +1 -375
  65. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
  66. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js +1 -1
  67. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.flow +12 -9
  68. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -1
  69. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js +1 -1
  70. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.flow +16 -10
  71. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
  72. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js +1 -1
  73. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.flow +18 -15
  74. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
  75. package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js +1 -1
  76. package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js.flow +1 -1
  77. package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.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 +8 -1
  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 +20 -17
  83. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.map +1 -1
  84. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js +1 -1
  85. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.flow +14 -9
  86. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
  87. package/lib/commonjs/screens/uploadVideo/index.js +1 -1
  88. package/lib/commonjs/screens/uploadVideo/index.js.flow +109 -61
  89. package/lib/commonjs/screens/uploadVideo/index.js.map +1 -1
  90. package/lib/commonjs/screens/uploadVideo/videoStore.js +1 -1
  91. package/lib/commonjs/screens/uploadVideo/videoStore.js.flow +4 -4
  92. package/lib/commonjs/screens/uploadVideo/videoStore.js.map +1 -1
  93. package/lib/commonjs/sdkConfig.js +1 -1
  94. package/lib/commonjs/sdkConfig.js.flow +6 -0
  95. package/lib/commonjs/sdkConfig.js.map +1 -1
  96. package/lib/commonjs/services/api/api.js +1 -1
  97. package/lib/commonjs/services/api/api.js.flow +32 -0
  98. package/lib/commonjs/services/api/api.js.map +1 -1
  99. package/lib/module/RNTimacare.js +1 -1
  100. package/lib/module/RNTimacare.js.map +1 -1
  101. package/lib/module/assets/digital_topup/index.js +2 -0
  102. package/lib/module/assets/digital_topup/index.js.map +1 -0
  103. package/lib/module/assets/digital_topup/step1.svg +31 -0
  104. package/lib/module/assets/digital_topup/step1_disable.svg +31 -0
  105. package/lib/module/assets/digital_topup/step1_success.svg +21 -0
  106. package/lib/module/assets/digital_topup/step2.svg +39 -0
  107. package/lib/module/assets/digital_topup/step2_disable.svg +16 -0
  108. package/lib/module/assets/digital_topup/step2_success.svg +21 -0
  109. package/lib/module/assets/digital_topup/step3.svg +23 -0
  110. package/lib/module/assets/digital_topup/step3_disable.svg +10 -0
  111. package/lib/module/assets/digital_topup/step3_success.svg +21 -0
  112. package/lib/module/assets/digital_topup/step4_disable.svg +16 -0
  113. package/lib/module/assets/digital_topup/step4_success.svg +21 -0
  114. package/lib/module/components/AlertLoan.js +1 -1
  115. package/lib/module/components/AlertLoan.js.map +1 -1
  116. package/lib/module/components/ItemTimaOneV3.js +1 -1
  117. package/lib/module/components/ItemTimaOneV3.js.map +1 -1
  118. package/lib/module/components/MHeader.js +1 -1
  119. package/lib/module/components/MHeader.js.map +1 -1
  120. package/lib/module/components/ModalOptionLoan.js +1 -1
  121. package/lib/module/components/ModalOptionLoan.js.map +1 -1
  122. package/lib/module/components/ModalOptionLoanDigital.js +2 -0
  123. package/lib/module/components/ModalOptionLoanDigital.js.map +1 -0
  124. package/lib/module/navigation/primary-navigator.js +1 -1
  125. package/lib/module/navigation/primary-navigator.js.map +1 -1
  126. package/lib/module/screens/camera/CCCDCameraScreen.js +1 -1
  127. package/lib/module/screens/camera/CCCDCameraScreen.js.map +1 -1
  128. package/lib/module/screens/detail-loan/QrPayment.js +1 -1
  129. package/lib/module/screens/detail-loan/QrPayment.js.map +1 -1
  130. package/lib/module/screens/detail-loan/ShowQrCode.js +1 -1
  131. package/lib/module/screens/detail-loan/ShowQrCode.js.map +1 -1
  132. package/lib/module/screens/home/DigitalTopupItem.js +2 -0
  133. package/lib/module/screens/home/DigitalTopupItem.js.map +1 -0
  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/liveness-v2/index.js +1 -1
  137. package/lib/module/screens/liveness-v2/index.js.map +1 -1
  138. package/lib/module/screens/nationalID/index.js +1 -1
  139. package/lib/module/screens/nationalID/index.js.map +1 -1
  140. package/lib/module/screens/nationalIDBack/index.js +1 -1
  141. package/lib/module/screens/nationalIDBack/index.js.map +1 -1
  142. package/lib/module/screens/toan-trinh-so/OCR.js +1 -1
  143. package/lib/module/screens/toan-trinh-so/OCR.js.map +1 -1
  144. package/lib/module/screens/toan-trinh-so/ReviewLoan.js +1 -1
  145. package/lib/module/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
  146. package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js +1 -1
  147. package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -1
  148. package/lib/module/screens/toan-trinh-so/TTSSelfie.js +1 -1
  149. package/lib/module/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
  150. package/lib/module/screens/toan-trinh-so/TTSSignLoan.js +1 -1
  151. package/lib/module/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
  152. package/lib/module/screens/toan-trinh-so/TopupLoanInfo.js +1 -1
  153. package/lib/module/screens/toan-trinh-so/TopupLoanInfo.js.map +1 -1
  154. package/lib/module/screens/toan-trinh-so/VehicleCamera.js +1 -1
  155. package/lib/module/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
  156. package/lib/module/screens/toan-trinh-so/VehicleRegistration.js +1 -1
  157. package/lib/module/screens/toan-trinh-so/VehicleRegistration.js.map +1 -1
  158. package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js +1 -1
  159. package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
  160. package/lib/module/screens/uploadVideo/index.js +1 -1
  161. package/lib/module/screens/uploadVideo/index.js.map +1 -1
  162. package/lib/module/screens/uploadVideo/videoStore.js +1 -1
  163. package/lib/module/screens/uploadVideo/videoStore.js.map +1 -1
  164. package/lib/module/sdkConfig.js +1 -1
  165. package/lib/module/sdkConfig.js.map +1 -1
  166. package/lib/module/services/api/api.js +1 -1
  167. package/lib/module/services/api/api.js.map +1 -1
  168. package/lib/typescript/RNTimacare.d.ts +1 -1
  169. package/lib/typescript/RNTimacare.d.ts.map +1 -1
  170. package/lib/typescript/assets/digital_topup/index.d.ts +14 -0
  171. package/lib/typescript/assets/digital_topup/index.d.ts.map +1 -0
  172. package/lib/typescript/components/ItemTimaOneV3.d.ts.map +1 -1
  173. package/lib/typescript/components/MHeader.d.ts.map +1 -1
  174. package/lib/typescript/components/ModalOptionLoan.d.ts.map +1 -1
  175. package/lib/typescript/components/ModalOptionLoanDigital.d.ts +9 -0
  176. package/lib/typescript/components/ModalOptionLoanDigital.d.ts.map +1 -0
  177. package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
  178. package/lib/typescript/screens/camera/CCCDCameraScreen.d.ts.map +1 -1
  179. package/lib/typescript/screens/detail-loan/QrPayment.d.ts.map +1 -1
  180. package/lib/typescript/screens/home/DigitalTopupItem.d.ts +7 -0
  181. package/lib/typescript/screens/home/DigitalTopupItem.d.ts.map +1 -0
  182. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  183. package/lib/typescript/screens/liveness-v2/index.d.ts.map +1 -1
  184. package/lib/typescript/screens/nationalID/index.d.ts.map +1 -1
  185. package/lib/typescript/screens/nationalIDBack/index.d.ts.map +1 -1
  186. package/lib/typescript/screens/toan-trinh-so/OCR.d.ts.map +1 -1
  187. package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts.map +1 -1
  188. package/lib/typescript/screens/toan-trinh-so/TTSNationalIDFront.d.ts.map +1 -1
  189. package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts.map +1 -1
  190. package/lib/typescript/screens/toan-trinh-so/TTSSignLoan.d.ts.map +1 -1
  191. package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts.map +1 -1
  192. package/lib/typescript/screens/toan-trinh-so/VehicleRegistration.d.ts.map +1 -1
  193. package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationFront.d.ts.map +1 -1
  194. package/lib/typescript/screens/uploadVideo/index.d.ts.map +1 -1
  195. package/lib/typescript/sdkConfig.d.ts.map +1 -1
  196. package/lib/typescript/services/api/api.d.ts +32 -0
  197. package/lib/typescript/services/api/api.d.ts.map +1 -1
  198. package/package.json +3 -2
  199. package/src/RNTimacare.tsx +2 -11
  200. package/src/assets/digital_topup/index.tsx +28 -0
  201. package/src/assets/digital_topup/step1.svg +31 -0
  202. package/src/assets/digital_topup/step1_disable.svg +31 -0
  203. package/src/assets/digital_topup/step1_success.svg +21 -0
  204. package/src/assets/digital_topup/step2.svg +39 -0
  205. package/src/assets/digital_topup/step2_disable.svg +16 -0
  206. package/src/assets/digital_topup/step2_success.svg +21 -0
  207. package/src/assets/digital_topup/step3.svg +23 -0
  208. package/src/assets/digital_topup/step3_disable.svg +10 -0
  209. package/src/assets/digital_topup/step3_success.svg +21 -0
  210. package/src/assets/digital_topup/step4_disable.svg +16 -0
  211. package/src/assets/digital_topup/step4_success.svg +21 -0
  212. package/src/components/AlertLoan.tsx +1 -1
  213. package/src/components/ItemTimaOneV3.tsx +1 -5
  214. package/src/components/MHeader.tsx +3 -2
  215. package/src/components/ModalOptionLoan.tsx +4 -2
  216. package/src/components/ModalOptionLoanDigital.tsx +297 -0
  217. package/src/navigation/primary-navigator.tsx +0 -3
  218. package/src/screens/camera/CCCDCameraScreen.tsx +299 -126
  219. package/src/screens/detail-loan/QrPayment.tsx +1 -0
  220. package/src/screens/detail-loan/ShowQrCode.tsx +1 -1
  221. package/src/screens/home/DigitalTopupItem.tsx +562 -0
  222. package/src/screens/home/index.tsx +49 -4
  223. package/src/screens/liveness-v2/index.tsx +12 -9
  224. package/src/screens/nationalID/index.tsx +4 -2
  225. package/src/screens/nationalIDBack/index.tsx +3 -1
  226. package/src/screens/toan-trinh-so/OCR.tsx +3 -1
  227. package/src/screens/toan-trinh-so/ReviewLoan.tsx +1 -375
  228. package/src/screens/toan-trinh-so/TTSNationalIDFront.tsx +12 -9
  229. package/src/screens/toan-trinh-so/TTSSelfie.tsx +16 -10
  230. package/src/screens/toan-trinh-so/TTSSignLoan.tsx +18 -15
  231. package/src/screens/toan-trinh-so/TopupLoanInfo.tsx +1 -1
  232. package/src/screens/toan-trinh-so/VehicleCamera.tsx +8 -1
  233. package/src/screens/toan-trinh-so/VehicleRegistration.tsx +20 -17
  234. package/src/screens/toan-trinh-so/VehicleRegistrationFront.tsx +14 -9
  235. package/src/screens/uploadVideo/index.tsx +109 -61
  236. package/src/screens/uploadVideo/videoStore.tsx +4 -4
  237. package/src/sdkConfig.ts +6 -0
  238. package/src/services/api/api.ts +32 -0
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.OCR=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _mobxReactLite=require("mobx-react-lite");var _reactNative=require("react-native");var _MText=require("../../components/MText");var _storage=require("../../utils/storage");var _reactNativePermissions=require("react-native-permissions");var _reactNativeCamera=require("react-native-camera");var _reactNativeModal=_interopRequireDefault(require("react-native-modal"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _icons=require("../../assets/icons");var _MButton=_interopRequireDefault(require("../../components/MButton"));var _CommonStyles=require("../CommonStyles");var _native=require("@react-navigation/native");var _textRecognition=_interopRequireDefault(require("@react-native-ml-kit/text-recognition"));var _navigation=require("../../navigation");var _api=require("../../services/api");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _reactNativeDeviceInfo=_interopRequireDefault(require("react-native-device-info"));var _svgs=require("../../assets/svgs");var _reactNativeImageCropPicker=_interopRequireDefault(require("react-native-image-crop-picker"));var _reactNativeImagePicker=require("react-native-image-picker");var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/screens/toan-trinh-so/OCR.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}var NFCReader=_reactNative.NativeModules.NFCReader;var OCR=exports.OCR=(0,_mobxReactLite.observer)(function OCR(props){var _props$route24,_props$route24$params,_this=this;var isFocused=(0,_native.useIsFocused)();var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),isLoading=_useState2[0],setIsLoading=_useState2[1];var navigation=(0,_native.useNavigation)();var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),showModal=_useState4[0],setShowModal=_useState4[1];var _useState5=(0,_react.useState)('passport'),_useState6=(0,_slicedToArray2.default)(_useState5,2),type=_useState6[0],setType=_useState6[1];var _useState7=(0,_react.useState)(false),_useState8=(0,_slicedToArray2.default)(_useState7,2),taking=_useState8[0],setTaking=_useState8[1];var _useState9=(0,_react.useState)(false),_useState10=(0,_slicedToArray2.default)(_useState9,2),passPermission=_useState10[0],setPassPermission=_useState10[1];var _useState11=(0,_react.useState)(false),_useState12=(0,_slicedToArray2.default)(_useState11,2),shouldRenderCamera=_useState12[0],setShouldRenderCamera=_useState12[1];var myCamera=(0,_react.useRef)(null);var requestPermissions=function requestPermissions(){(0,_reactNativePermissions.request)(_reactNative.Platform.OS==='ios'?_reactNativePermissions.PERMISSIONS.IOS.CAMERA:_reactNativePermissions.PERMISSIONS.ANDROID.CAMERA).then(function(result){switch(result){case _reactNativePermissions.RESULTS.UNAVAILABLE:console.log('This feature is not available (on this device / in this context)');_reactNative.Alert.alert('Thông báo','Máy ảnh trên thiết bị không tương thích.\nVui lòng kiểm tra lại thiết bị!',[{text:'Đồng ý'}]);break;case _reactNativePermissions.RESULTS.DENIED:console.log('The permission has not been requested / is denied but requestable');_reactNative.Alert.alert('Thông báo','Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',[{text:'Đồng ý',onPress:function onPress(){if(_reactNative.Platform.OS==='ios'){(0,_reactNativePermissions.openSettings)();}else{requestPermissions();}}}]);break;case _reactNativePermissions.RESULTS.LIMITED:console.log('The permission is limited: some actions are possible');_reactNative.Alert.alert('Thông báo','Quyền máy ảnh bị hạn chế. Vui lòng kiểm tra lại để tiếp tục!',[{text:'Đồng ý',onPress:function onPress(){if(_reactNative.Platform.OS==='ios'){(0,_reactNativePermissions.openSettings)();}else{requestPermissions();}}}]);break;case _reactNativePermissions.RESULTS.GRANTED:console.log('The permission is granted');setPassPermission(true);break;case _reactNativePermissions.RESULTS.BLOCKED:console.log('The permission is denied and not requestable anymore');_reactNative.Alert.alert('Thông báo','Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',[{text:'Đồng ý',onPress:function onPress(){if(_reactNative.Platform.OS==='ios'){(0,_reactNativePermissions.openSettings)();}else{(0,_reactNativePermissions.openSettings)();}}}]);break;}});};(0,_react.useEffect)(function(){var timeout;if(isFocused){timeout=setTimeout(function(){setShouldRenderCamera(true);},500);}else{setShouldRenderCamera(false);}return function(){return clearTimeout(timeout);};},[isFocused]);var loadIntro=function _callee(){var intro;return _regenerator.default.async(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.next=2;return _regenerator.default.awrap((0,_storage.load)(_storage.OCR_V1));case 2:intro=_context.sent;if(!intro){setShowModal(true);}case 4:case"end":return _context.stop();}},null,null,null,Promise);};(0,_react.useEffect)(function(){requestPermissions();loadIntro();},[]);(0,_react.useEffect)(function(){var unsubscribe=navigation.addListener('blur',function(){var _myCamera$current;(_myCamera$current=myCamera.current)==null?void 0:_myCamera$current.pausePreview();});return unsubscribe;},[navigation]);var saveDataNfc=function _callee2(body){var _props$route,_props$route$params,_props$route$params$l,response,_response$data,_response$data$meta,_response$data2,_response$data2$meta;return _regenerator.default.async(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.prev=0;_context2.next=3;return _regenerator.default.awrap(_api.Api.getInstance().saveNfcInfo((0,_extends2.default)({},body,{loanBriefId:props==null?void 0:(_props$route=props.route)==null?void 0:(_props$route$params=_props$route.params)==null?void 0:(_props$route$params$l=_props$route$params.loan)==null?void 0:_props$route$params$l.id})));case 3:response=_context2.sent;if(response.kind==='ok'){if(((_response$data=response.data)==null?void 0:(_response$data$meta=_response$data.meta)==null?void 0:_response$data$meta.errorCode)===200){setTimeout(function(){var _props$route2,_props$route2$params;navigation.push(_navigation.ScreenNames.TTSSelfie,{loan:props==null?void 0:(_props$route2=props.route)==null?void 0:(_props$route2$params=_props$route2.params)==null?void 0:_props$route2$params.loan});},500);}else{_reactNative.Alert.alert('Thông báo',response==null?void 0:(_response$data2=response.data)==null?void 0:(_response$data2$meta=_response$data2.meta)==null?void 0:_response$data2$meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');}_context2.next=10;break;case 7:_context2.prev=7;_context2.t0=_context2["catch"](0);console.log(_context2.t0);case 10:case"end":return _context2.stop();}},null,null,[[0,7]],Promise);};var convertToDate=function convertToDate(input,end){var yearPrefix=input.substring(0,2);var year=end?'20'+yearPrefix:parseInt(yearPrefix)>20?'19'+yearPrefix:'20'+yearPrefix;var month=input.substring(2,4);var day=input.substring(4,6);return year+'-'+month+'-'+day;};var extractMRZInfo=function extractMRZInfo(text){var documentNumber='';var birthDate='';var expirationDate='';var regex1=/VNM(\d{9})/;var match1=text.match(regex1);if(match1){documentNumber=match1[1];}console.log('documentNumber',documentNumber);var regex=/(\d{6}).[MF](\d{6})/;var match=text.replace(/ /g,'').match(regex);if(match){console.log({documentNumber:documentNumber,birthDate:match[1],expirationDate:match[2]});birthDate=match[1],expirationDate=match[2];}else{return null;}if(documentNumber&&birthDate&&expirationDate){try{NFCReader.readNFCCard(documentNumber,convertToDate(birthDate,false),convertToDate(expirationDate,true),function(error,response){try{var convertData=JSON.parse(response);saveDataNfc(convertData);}catch(e){console.log(e);}});}catch(e){console.log(e);}}};var handleTextRecognition=function _callee3(imagePath){var result;return _regenerator.default.async(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.prev=0;_context3.next=3;return _regenerator.default.awrap(_textRecognition.default.recognize(imagePath));case 3:result=_context3.sent;extractMRZInfo(result.text);_context3.next=10;break;case 7:_context3.prev=7;_context3.t0=_context3["catch"](0);console.log(_context3.t0);case 10:case"end":return _context3.stop();}},null,null,[[0,7]],Promise);};var scanNfc=function _callee4(){var options,data;return _regenerator.default.async(function _callee4$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:if(!myCamera.current){_context4.next=7;break;}options={quality:0.8,base64:true};_context4.next=4;return _regenerator.default.awrap(myCamera.current.takePictureAsync(options));case 4:data=_context4.sent;_context4.next=7;return _regenerator.default.awrap(handleTextRecognition(data.uri));case 7:case"end":return _context4.stop();}},null,null,null,Promise);};var takePhoto=function _callee5(){var _props$route3,_props$route3$params,_props$route4,_props$route4$params,_props$route6,_props$route6$params,_props$route7,_props$route7$params;var options,data,_props$route5,_props$route5$params,_props$route8,_props$route8$params,_props$route9,_props$route9$params;return _regenerator.default.async(function _callee5$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:setTaking(true);options={base64:true,pauseAfterCapture:true,fixOrientation:false,forceUpOrientation:false,orientation:_reactNativeCamera.RNCamera.Constants.Orientation.portrait,quality:0.8,pictureSize:'1280x720'};_context5.next=4;return _regenerator.default.awrap(myCamera.current.takePictureAsync(options));case 4:data=_context5.sent;setTaking(false);if(props!=null&&(_props$route3=props.route)!=null&&(_props$route3$params=_props$route3.params)!=null&&_props$route3$params.front&&!((_props$route4=props.route)!=null&&(_props$route4$params=_props$route4.params)!=null&&_props$route4$params.callback)){navigation.push(_navigation.ScreenNames.TTSNationalIDFront,{uri:data==null?void 0:data.uri,loan:props==null?void 0:(_props$route5=props.route)==null?void 0:(_props$route5$params=_props$route5.params)==null?void 0:_props$route5$params.loan});}else if(!(props!=null&&(_props$route6=props.route)!=null&&(_props$route6$params=_props$route6.params)!=null&&_props$route6$params.front)&&!((_props$route7=props.route)!=null&&(_props$route7$params=_props$route7.params)!=null&&_props$route7$params.callback)){navigation.push(_navigation.ScreenNames.TTSNationalIDBack,{uri:data==null?void 0:data.uri,loan:props==null?void 0:(_props$route8=props.route)==null?void 0:(_props$route8$params=_props$route8.params)==null?void 0:_props$route8$params.loan});}else{navigation.goBack();(_props$route9=props.route)==null?void 0:(_props$route9$params=_props$route9.params)==null?void 0:_props$route9$params.callback(data==null?void 0:data.uri);}case 7:case"end":return _context5.stop();}},null,null,null,Promise);};var pickImageFromGallery=function _callee6(){var result,_props$route10,_props$route10$params,_props$route11,_props$route11$params,_props$route13,_props$route13$params,_props$route14,_props$route14$params,_result$assets$,_props$route12,_props$route12$params,_result$assets$2,_props$route15,_props$route15$params,_props$route16,_props$route16$params,_result$assets$3;return _regenerator.default.async(function _callee6$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:if(!(_reactNative.Platform.OS==='android')){_context6.next=7;break;}_context6.next=3;return _regenerator.default.awrap((0,_reactNativeImagePicker.launchImageLibrary)({mediaType:'photo'}));case 3:result=_context6.sent;if(result.assets){if(props!=null&&(_props$route10=props.route)!=null&&(_props$route10$params=_props$route10.params)!=null&&_props$route10$params.front&&!((_props$route11=props.route)!=null&&(_props$route11$params=_props$route11.params)!=null&&_props$route11$params.callback)){navigation.push(_navigation.ScreenNames.TTSNationalIDFront,{uri:(_result$assets$=result.assets[0])==null?void 0:_result$assets$.uri,loan:props==null?void 0:(_props$route12=props.route)==null?void 0:(_props$route12$params=_props$route12.params)==null?void 0:_props$route12$params.loan});}else if(!(props!=null&&(_props$route13=props.route)!=null&&(_props$route13$params=_props$route13.params)!=null&&_props$route13$params.front)&&!((_props$route14=props.route)!=null&&(_props$route14$params=_props$route14.params)!=null&&_props$route14$params.callback)){navigation.push(_navigation.ScreenNames.TTSNationalIDBack,{uri:(_result$assets$2=result.assets[0])==null?void 0:_result$assets$2.uri,loan:props==null?void 0:(_props$route15=props.route)==null?void 0:(_props$route15$params=_props$route15.params)==null?void 0:_props$route15$params.loan});}else{navigation.goBack();(_props$route16=props.route)==null?void 0:(_props$route16$params=_props$route16.params)==null?void 0:_props$route16$params.callback((_result$assets$3=result.assets[0])==null?void 0:_result$assets$3.uri);}}_context6.next=8;break;case 7:_reactNativeImageCropPicker.default.openPicker({}).then(function(image){var _props$route17,_props$route17$params,_props$route18,_props$route18$params,_props$route20,_props$route20$params,_props$route21,_props$route21$params;if(props!=null&&(_props$route17=props.route)!=null&&(_props$route17$params=_props$route17.params)!=null&&_props$route17$params.front&&!((_props$route18=props.route)!=null&&(_props$route18$params=_props$route18.params)!=null&&_props$route18$params.callback)){var _props$route19,_props$route19$params;navigation.push(_navigation.ScreenNames.TTSNationalIDFront,{uri:_reactNative.Platform.OS==='android'?image==null?void 0:image.path:'file://'+(image==null?void 0:image.path),loan:props==null?void 0:(_props$route19=props.route)==null?void 0:(_props$route19$params=_props$route19.params)==null?void 0:_props$route19$params.loan});}else if(!(props!=null&&(_props$route20=props.route)!=null&&(_props$route20$params=_props$route20.params)!=null&&_props$route20$params.front)&&!((_props$route21=props.route)!=null&&(_props$route21$params=_props$route21.params)!=null&&_props$route21$params.callback)){var _props$route22,_props$route22$params;navigation.push(_navigation.ScreenNames.TTSNationalIDBack,{uri:_reactNative.Platform.OS==='android'?image==null?void 0:image.path:'file://'+(image==null?void 0:image.path),loan:props==null?void 0:(_props$route22=props.route)==null?void 0:(_props$route22$params=_props$route22.params)==null?void 0:_props$route22$params.loan});}else{var _props$route23,_props$route23$params;navigation.goBack();(_props$route23=props.route)==null?void 0:(_props$route23$params=_props$route23.params)==null?void 0:_props$route23$params.callback(_reactNative.Platform.OS==='android'?image==null?void 0:image.path:'file://'+(image==null?void 0:image.path));}});case 8:case"end":return _context6.stop();}},null,null,null,Promise);};return _react.default.createElement(_reactNative.View,{style:{flex:1,backgroundColor:'black'},pointerEvents:'box-none',__self:this,__source:{fileName:_jsxFileName,lineNumber:374,columnNumber:5}},_react.default.createElement(_reactNative.View,{style:{alignItems:'center',position:'absolute',top:_reactNativeDeviceInfo.default.hasNotch()?70:24,left:0,right:0,zIndex:100},__self:this,__source:{fileName:_jsxFileName,lineNumber:378,columnNumber:7}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.navigate(_navigation.ScreenNames.Main);},style:{position:'absolute',left:10,top:4,width:24,height:24,alignItems:'center',justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:388,columnNumber:9}},_react.default.createElement(_icons.IconBackWhite,{__self:this,__source:{fileName:_jsxFileName,lineNumber:402,columnNumber:11}})),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',padding:2,borderRadius:4,alignItems:'center',backgroundColor:'transparent'},__self:this,__source:{fileName:_jsxFileName,lineNumber:404,columnNumber:9}}),_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:16,textAlign:'center',padding:16,marginTop:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:489,columnNumber:9}},type==='passport'&&props!=null&&(_props$route24=props.route)!=null&&(_props$route24$params=_props$route24.params)!=null&&_props$route24$params.front?'Chụp CMND/ CCCD mặt trước':type==='passport'?'Chụp CMND/ CCCD mặt sau':'Dùng camera để quét chuỗi ký tự mặt sau thẻ CCCD gắn chíp ở phía dưới')),passPermission&&type==='passport'&&shouldRenderCamera?_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.alignCenter,_CommonStyles.commonStyles.fill,_CommonStyles.commonStyles.justifyCenter,{position:'absolute',width:_reactNative.Dimensions.get('window').width,height:_reactNative.Dimensions.get('window').height}],__self:this,__source:{fileName:_jsxFileName,lineNumber:507,columnNumber:9}},_react.default.createElement(_reactNativeCamera.RNCamera,{ref:myCamera,defaultVideoQuality:_reactNativeCamera.RNCamera.Constants.VideoQuality['720p'],style:{width:_reactNative.Dimensions.get('window').width,height:260,overflow:'hidden'},maxZoom:1,__self:this,__source:{fileName:_jsxFileName,lineNumber:519,columnNumber:11}},function(_ref){var camera=_ref.camera,status=_ref.status,recordAudioPermissionStatus=_ref.recordAudioPermissionStatus;if(status!=='READY')return _react.default.createElement(_reactNative.ActivityIndicator,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:530,columnNumber:46}});}),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){pickImageFromGallery();},style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:533,columnNumber:11}},_react.default.createElement(_svgs.IconUpload,{__self:this,__source:{fileName:_jsxFileName,lineNumber:544,columnNumber:13}}),_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:545,columnNumber:13}},"T\u1EA3i \u1EA3nh t\u1EEB th\u01B0 vi\u1EC7n")),_react.default.createElement(_reactNative.View,{style:styles.buttonContainer,__self:this,__source:{fileName:_jsxFileName,lineNumber:555,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:14,textAlign:'center',padding:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:556,columnNumber:13}},"Vui l\xF2ng \u0111\u1EB7t gi\u1EA5y t\u1EDD n\u1EB1m v\u1EEBa khung h\xECnh ch\u1EEF nh\u1EADt, ch\u1EE5p \u0111\u1EE7 \xE1nh s\xE1ng v\xE0 r\xF5 n\xE9t."),_react.default.createElement(_MButton.default,{onPress:function onPress(){takePhoto();},__self:this,__source:{fileName:_jsxFileName,lineNumber:567,columnNumber:13}},_react.default.createElement(_icons.TakePhotoSvg,{__self:this,__source:{fileName:_jsxFileName,lineNumber:572,columnNumber:15}})))):passPermission&&type==='nfc'&&shouldRenderCamera?_react.default.createElement(_react.default.Fragment,null,_react.default.createElement(_reactNativeCamera.RNCamera,{ref:myCamera,style:styles.camera,type:_reactNativeCamera.RNCamera.Constants.Type.back,captureAudio:false,__self:this,__source:{fileName:_jsxFileName,lineNumber:578,columnNumber:11}}),_react.default.createElement(_reactNative.View,{style:styles.overlay,__self:this,__source:{fileName:_jsxFileName,lineNumber:584,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:styles.overlayTop,__self:this,__source:{fileName:_jsxFileName,lineNumber:585,columnNumber:13}}),_react.default.createElement(_reactNative.View,{style:styles.overlayCenter,__self:this,__source:{fileName:_jsxFileName,lineNumber:586,columnNumber:13}},_react.default.createElement(_reactNative.View,{style:styles.overlayLeft,__self:this,__source:{fileName:_jsxFileName,lineNumber:587,columnNumber:15}}),_react.default.createElement(_reactNative.View,{style:styles.overlayRect,__self:this,__source:{fileName:_jsxFileName,lineNumber:588,columnNumber:15}}),_react.default.createElement(_reactNative.View,{style:styles.overlayRight,__self:this,__source:{fileName:_jsxFileName,lineNumber:589,columnNumber:15}})),_react.default.createElement(_reactNative.View,{style:styles.overlayBottom,__self:this,__source:{fileName:_jsxFileName,lineNumber:591,columnNumber:13}})),_react.default.createElement(_reactNative.View,{style:styles.buttonContainer,__self:this,__source:{fileName:_jsxFileName,lineNumber:593,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:14,textAlign:'center',padding:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:594,columnNumber:13}},"Vui l\xF2ng \u0111\u1EB7t chu\u1ED7i k\xED t\u1EF1 n\u1EB1m v\u1EEBa khung h\xECnh ch\u1EEF nh\u1EADt, ch\u1EE5p \u0111\u1EE7 \xE1nh s\xE1ng v\xE0 r\xF5 n\xE9t."),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){scanNfc();},__self:this,__source:{fileName:_jsxFileName,lineNumber:605,columnNumber:13}},_react.default.createElement(_icons.TakePhotoSvg,{__self:this,__source:{fileName:_jsxFileName,lineNumber:610,columnNumber:15}})))):_react.default.createElement(_react.default.Fragment,null),_react.default.createElement(_reactNativeModal.default,{isVisible:showModal,style:$modal,backdropTransitionInTiming:0,nimationOutTiming:200,animationInTiming:200,animationIn:'slideInUp',animationOut:'fadeOutDown',useNativeDriverForBackdrop:true,useNativeDriver:true,__self:this,__source:{fileName:_jsxFileName,lineNumber:618,columnNumber:7}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:$container,__self:this,__source:{fileName:_jsxFileName,lineNumber:629,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:$paddingV,__self:this,__source:{fileName:_jsxFileName,lineNumber:630,columnNumber:11}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setShowModal(false);setTimeout(function(){navigation.goBack();},100);},style:{width:24,height:24,position:'absolute',left:16,top:24,alignItems:'center',zIndex:10000},__self:this,__source:{fileName:_jsxFileName,lineNumber:631,columnNumber:13}},_react.default.createElement(_icons.CloseIcon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:648,columnNumber:15}})),_react.default.createElement(_MText.MText,{style:$title,__self:this,__source:{fileName:_jsxFileName,lineNumber:650,columnNumber:13}},"NH\u1EACN DI\u1EC6N GI\u1EA4Y T\u1EDC T\xD9Y TH\xC2N"),_react.default.createElement(_MText.MText,{style:$description,__self:this,__source:{fileName:_jsxFileName,lineNumber:651,columnNumber:13}},"Ch\u1EE5p \u1EA3nh 2 m\u1EB7t ho\u1EB7c NFC CCCD/ CMND"),_react.default.createElement(_reactNative.Image,{source:require('../../assets/tts/vehicleStep.png'),style:$step,__self:this,__source:{fileName:_jsxFileName,lineNumber:655,columnNumber:13}}),_react.default.createElement(_reactNative.View,{style:$bg,__self:this,__source:{fileName:_jsxFileName,lineNumber:660,columnNumber:13}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'column',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:661,columnNumber:15}},_react.default.createElement(_reactNative.Image,{source:require('../../assets/tts/Frame1000011946.png'),style:{width:'60%',height:70,resizeMode:'contain',marginVertical:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:667,columnNumber:17}})),_react.default.createElement(_reactNative.View,{style:{marginTop:10,paddingHorizontal:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:677,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[$title2,{textAlign:'left'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:678,columnNumber:17}},"C\xE1ch 1: NFC (\xC1p d\u1EE5ng cho CCCD g\u1EAFn chip)"),_react.default.createElement(_reactNative.View,{style:$row,__self:this,__source:{fileName:_jsxFileName,lineNumber:681,columnNumber:17}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:682,columnNumber:19}}),_react.default.createElement(_MText.MText,{style:$txt,__self:this,__source:{fileName:_jsxFileName,lineNumber:683,columnNumber:19}},"\u0110\u1EB7t ph\u1EA7n chip \u0111\u1ED3ng g\u1EA7n l\u1EA1i v\u1EDBi ph\u1EA7n ph\xEDa tr\xEAn c\u1EE7a",'\n',"m\u1EB7t l\u01B0ng \u0111i\u1EC7n tho\u1EA1i")),_react.default.createElement(_reactNative.View,{style:$row,__self:this,__source:{fileName:_jsxFileName,lineNumber:688,columnNumber:17}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:689,columnNumber:19}}),_react.default.createElement(_MText.MText,{style:$txt,__self:this,__source:{fileName:_jsxFileName,lineNumber:690,columnNumber:19}},"Gi\u1EEF nguy\xEAn cho \u0111\u1EBFn khi \u0111\u1ECDc xong th\xF4ng tin th\u1EBB")),_react.default.createElement(_reactNative.Image,{source:require('../../assets/tts/Frame1000011953.png'),style:{width:'100%',height:70,resizeMode:'contain',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:694,columnNumber:17}})),_react.default.createElement(_reactNative.View,{style:{marginTop:10,paddingHorizontal:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:704,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[$title2,{textAlign:'left'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:705,columnNumber:17}},"C\xE1ch 2: Ch\u1EE5p 2 m\u1EB7t"),_react.default.createElement(_reactNative.View,{style:$row,__self:this,__source:{fileName:_jsxFileName,lineNumber:708,columnNumber:17}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:709,columnNumber:19}}),_react.default.createElement(_MText.MText,{style:$txt,__self:this,__source:{fileName:_jsxFileName,lineNumber:710,columnNumber:19}},"N\xEAn \u0111\u1EB7t CCCD/ CMND l\xEAn m\u1EB7t ph\u1EB3ng \u0111\u1EC3 ch\u1EE5p")),_react.default.createElement(_reactNative.View,{style:$row,__self:this,__source:{fileName:_jsxFileName,lineNumber:714,columnNumber:17}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:715,columnNumber:19}}),_react.default.createElement(_MText.MText,{style:$txt,__self:this,__source:{fileName:_jsxFileName,lineNumber:716,columnNumber:19}},"\u0110\u1EB7t CCCD/ CMND n\u1EB1m g\u1ECDn trong khung h\xECnh (Kh\xF4ng ",'\n'," qu\xE1 nh\u1ECF hay qu\xE1 to l\xE0m m\u1EA5t chi ti\u1EBFt)")),_react.default.createElement(_reactNative.View,{style:$row,__self:this,__source:{fileName:_jsxFileName,lineNumber:721,columnNumber:17}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:722,columnNumber:19}}),_react.default.createElement(_MText.MText,{style:$txt,__self:this,__source:{fileName:_jsxFileName,lineNumber:723,columnNumber:19}},"Ch\u1ECDn n\u01A1i \xE1nh s\xE1ng t\u1ED1t, tr\xE1nh l\xF3a/ ch\xF3i h\xECnh ch\u1EE5p")),_react.default.createElement(_reactNative.Image,{source:require('../../assets/tts/Frame1000011947.png'),style:{width:'100%',height:80,resizeMode:'contain',marginTop:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:727,columnNumber:17}})),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',margin:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:738,columnNumber:15}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setType('passport');setShowModal(false);(0,_storage.save)(_storage.OCR_V1,true);},style:{flex:1,borderWidth:1,borderColor:'#EF592E',height:40,alignItems:'center',justifyContent:'center',borderRadius:40},__self:this,__source:{fileName:_jsxFileName,lineNumber:745,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{color:'#EF592E',fontSize:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:762,columnNumber:19}},"Ch\u1EE5p 2 m\u1EB7t"))),_react.default.createElement(_reactNative.View,{style:{height:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:804,columnNumber:15}}))))),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:810,columnNumber:7}}));});var $row={flexDirection:'row',alignItems:'center',marginTop:5};var $txt={fontSize:12,marginLeft:5};var $bg={backgroundColor:'white',borderTopRightRadius:26,borderTopLeftRadius:26};var $step={height:40,width:'100%',resizeMode:'contain',marginTop:10,marginBottom:10};var $paddingV={paddingTop:16};var $title={fontSize:16,color:'white',fontWeight:'bold',textAlign:'center'};var $title2={fontSize:16,color:'#333333',fontWeight:'bold',textAlign:'center'};var $description={fontSize:12,color:'white',textAlign:'center'};var $flex={flex:1};var $modal={justifyContent:'flex-end',margin:0};var $container={borderTopRightRadius:26,borderTopLeftRadius:26};var styles=_reactNative.StyleSheet.create({container:{flex:1},camera:{flex:1},buttonContainer:{flex:0,flexDirection:'column',justifyContent:'center',alignItems:'center',position:'absolute',bottom:40,left:0,right:0,zIndex:1000},captureButton:{width:56,height:56,borderRadius:35,backgroundColor:'white',justifyContent:'center',alignItems:'center'},innerCaptureButton:{width:60,height:60,borderRadius:30,backgroundColor:'red'},overlay:{position:'absolute',top:0,left:0,right:0,bottom:0,justifyContent:'center',alignItems:'center'},overlayTop:{flex:1,backgroundColor:'black',width:'100%'},overlayCenter:{flexDirection:'row'},overlayLeft:{flex:1,backgroundColor:'black'},overlayRect:{width:'90%',height:100,borderColor:'white',borderWidth:2,justifyContent:'center',alignItems:'center'},instructionText:{color:'white',textAlign:'center',paddingHorizontal:10,fontSize:14,position:'absolute',top:-50},overlayRight:{flex:1,backgroundColor:'black'},overlayBottom:{flex:1,backgroundColor:'black',width:'100%'},mrzContainer:{padding:10},mrzText:{fontSize:16}});
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.OCR=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _mobxReactLite=require("mobx-react-lite");var _reactNative=require("react-native");var _MText=require("../../components/MText");var _storage=require("../../utils/storage");var _reactNativePermissions=require("react-native-permissions");var _reactNativeCamera=require("react-native-camera");var _reactNativeModal=_interopRequireDefault(require("react-native-modal"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _icons=require("../../assets/icons");var _MButton=_interopRequireDefault(require("../../components/MButton"));var _CommonStyles=require("../CommonStyles");var _native=require("@react-navigation/native");var _textRecognition=_interopRequireDefault(require("@react-native-ml-kit/text-recognition"));var _navigation=require("../../navigation");var _api=require("../../services/api");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _svgs=require("../../assets/svgs");var _reactNativeImageCropPicker=_interopRequireDefault(require("react-native-image-crop-picker"));var _reactNativeImagePicker=require("react-native-image-picker");var _reactNativeSafeAreaContext=require("react-native-safe-area-context");var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/screens/toan-trinh-so/OCR.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}var NFCReader=_reactNative.NativeModules.NFCReader;var OCR=exports.OCR=(0,_mobxReactLite.observer)(function OCR(props){var _props$route24,_props$route24$params,_this=this;var insets=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)();var isFocused=(0,_native.useIsFocused)();var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),isLoading=_useState2[0],setIsLoading=_useState2[1];var navigation=(0,_native.useNavigation)();var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),showModal=_useState4[0],setShowModal=_useState4[1];var _useState5=(0,_react.useState)('passport'),_useState6=(0,_slicedToArray2.default)(_useState5,2),type=_useState6[0],setType=_useState6[1];var _useState7=(0,_react.useState)(false),_useState8=(0,_slicedToArray2.default)(_useState7,2),taking=_useState8[0],setTaking=_useState8[1];var _useState9=(0,_react.useState)(false),_useState10=(0,_slicedToArray2.default)(_useState9,2),passPermission=_useState10[0],setPassPermission=_useState10[1];var _useState11=(0,_react.useState)(false),_useState12=(0,_slicedToArray2.default)(_useState11,2),shouldRenderCamera=_useState12[0],setShouldRenderCamera=_useState12[1];var myCamera=(0,_react.useRef)(null);var requestPermissions=function requestPermissions(){(0,_reactNativePermissions.request)(_reactNative.Platform.OS==='ios'?_reactNativePermissions.PERMISSIONS.IOS.CAMERA:_reactNativePermissions.PERMISSIONS.ANDROID.CAMERA).then(function(result){switch(result){case _reactNativePermissions.RESULTS.UNAVAILABLE:console.log('This feature is not available (on this device / in this context)');_reactNative.Alert.alert('Thông báo','Máy ảnh trên thiết bị không tương thích.\nVui lòng kiểm tra lại thiết bị!',[{text:'Đồng ý'}]);break;case _reactNativePermissions.RESULTS.DENIED:console.log('The permission has not been requested / is denied but requestable');_reactNative.Alert.alert('Thông báo','Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',[{text:'Đồng ý',onPress:function onPress(){if(_reactNative.Platform.OS==='ios'){(0,_reactNativePermissions.openSettings)();}else{requestPermissions();}}}]);break;case _reactNativePermissions.RESULTS.LIMITED:console.log('The permission is limited: some actions are possible');_reactNative.Alert.alert('Thông báo','Quyền máy ảnh bị hạn chế. Vui lòng kiểm tra lại để tiếp tục!',[{text:'Đồng ý',onPress:function onPress(){if(_reactNative.Platform.OS==='ios'){(0,_reactNativePermissions.openSettings)();}else{requestPermissions();}}}]);break;case _reactNativePermissions.RESULTS.GRANTED:console.log('The permission is granted');setPassPermission(true);break;case _reactNativePermissions.RESULTS.BLOCKED:console.log('The permission is denied and not requestable anymore');_reactNative.Alert.alert('Thông báo','Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',[{text:'Đồng ý',onPress:function onPress(){if(_reactNative.Platform.OS==='ios'){(0,_reactNativePermissions.openSettings)();}else{(0,_reactNativePermissions.openSettings)();}}}]);break;}});};(0,_react.useEffect)(function(){var timeout;if(isFocused){timeout=setTimeout(function(){setShouldRenderCamera(true);},500);}else{setShouldRenderCamera(false);}return function(){return clearTimeout(timeout);};},[isFocused]);var loadIntro=function _callee(){var intro;return _regenerator.default.async(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.next=2;return _regenerator.default.awrap((0,_storage.load)(_storage.OCR_V1));case 2:intro=_context.sent;if(!intro){setShowModal(true);}case 4:case"end":return _context.stop();}},null,null,null,Promise);};(0,_react.useEffect)(function(){requestPermissions();loadIntro();},[]);(0,_react.useEffect)(function(){var unsubscribe=navigation.addListener('blur',function(){var _myCamera$current;(_myCamera$current=myCamera.current)==null?void 0:_myCamera$current.pausePreview();});return unsubscribe;},[navigation]);var saveDataNfc=function _callee2(body){var _props$route,_props$route$params,_props$route$params$l,response,_response$data,_response$data$meta,_response$data2,_response$data2$meta;return _regenerator.default.async(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.prev=0;_context2.next=3;return _regenerator.default.awrap(_api.Api.getInstance().saveNfcInfo((0,_extends2.default)({},body,{loanBriefId:props==null?void 0:(_props$route=props.route)==null?void 0:(_props$route$params=_props$route.params)==null?void 0:(_props$route$params$l=_props$route$params.loan)==null?void 0:_props$route$params$l.id})));case 3:response=_context2.sent;if(response.kind==='ok'){if(((_response$data=response.data)==null?void 0:(_response$data$meta=_response$data.meta)==null?void 0:_response$data$meta.errorCode)===200){setTimeout(function(){var _props$route2,_props$route2$params;navigation.push(_navigation.ScreenNames.TTSSelfie,{loan:props==null?void 0:(_props$route2=props.route)==null?void 0:(_props$route2$params=_props$route2.params)==null?void 0:_props$route2$params.loan});},500);}else{_reactNative.Alert.alert('Thông báo',response==null?void 0:(_response$data2=response.data)==null?void 0:(_response$data2$meta=_response$data2.meta)==null?void 0:_response$data2$meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');}_context2.next=10;break;case 7:_context2.prev=7;_context2.t0=_context2["catch"](0);console.log(_context2.t0);case 10:case"end":return _context2.stop();}},null,null,[[0,7]],Promise);};var convertToDate=function convertToDate(input,end){var yearPrefix=input.substring(0,2);var year=end?'20'+yearPrefix:parseInt(yearPrefix)>20?'19'+yearPrefix:'20'+yearPrefix;var month=input.substring(2,4);var day=input.substring(4,6);return year+'-'+month+'-'+day;};var extractMRZInfo=function extractMRZInfo(text){var documentNumber='';var birthDate='';var expirationDate='';var regex1=/VNM(\d{9})/;var match1=text.match(regex1);if(match1){documentNumber=match1[1];}console.log('documentNumber',documentNumber);var regex=/(\d{6}).[MF](\d{6})/;var match=text.replace(/ /g,'').match(regex);if(match){console.log({documentNumber:documentNumber,birthDate:match[1],expirationDate:match[2]});birthDate=match[1],expirationDate=match[2];}else{return null;}if(documentNumber&&birthDate&&expirationDate){try{NFCReader.readNFCCard(documentNumber,convertToDate(birthDate,false),convertToDate(expirationDate,true),function(error,response){try{var convertData=JSON.parse(response);saveDataNfc(convertData);}catch(e){console.log(e);}});}catch(e){console.log(e);}}};var handleTextRecognition=function _callee3(imagePath){var result;return _regenerator.default.async(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.prev=0;_context3.next=3;return _regenerator.default.awrap(_textRecognition.default.recognize(imagePath));case 3:result=_context3.sent;extractMRZInfo(result.text);_context3.next=10;break;case 7:_context3.prev=7;_context3.t0=_context3["catch"](0);console.log(_context3.t0);case 10:case"end":return _context3.stop();}},null,null,[[0,7]],Promise);};var scanNfc=function _callee4(){var options,data;return _regenerator.default.async(function _callee4$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:if(!myCamera.current){_context4.next=7;break;}options={quality:0.8,base64:true};_context4.next=4;return _regenerator.default.awrap(myCamera.current.takePictureAsync(options));case 4:data=_context4.sent;_context4.next=7;return _regenerator.default.awrap(handleTextRecognition(data.uri));case 7:case"end":return _context4.stop();}},null,null,null,Promise);};var takePhoto=function _callee5(){var _props$route3,_props$route3$params,_props$route4,_props$route4$params,_props$route6,_props$route6$params,_props$route7,_props$route7$params;var options,data,_props$route5,_props$route5$params,_props$route8,_props$route8$params,_props$route9,_props$route9$params;return _regenerator.default.async(function _callee5$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:setTaking(true);options={base64:true,pauseAfterCapture:true,fixOrientation:false,forceUpOrientation:false,orientation:_reactNativeCamera.RNCamera.Constants.Orientation.portrait,quality:0.8,pictureSize:'1280x720'};_context5.next=4;return _regenerator.default.awrap(myCamera.current.takePictureAsync(options));case 4:data=_context5.sent;setTaking(false);if(props!=null&&(_props$route3=props.route)!=null&&(_props$route3$params=_props$route3.params)!=null&&_props$route3$params.front&&!((_props$route4=props.route)!=null&&(_props$route4$params=_props$route4.params)!=null&&_props$route4$params.callback)){navigation.push(_navigation.ScreenNames.TTSNationalIDFront,{uri:data==null?void 0:data.uri,loan:props==null?void 0:(_props$route5=props.route)==null?void 0:(_props$route5$params=_props$route5.params)==null?void 0:_props$route5$params.loan});}else if(!(props!=null&&(_props$route6=props.route)!=null&&(_props$route6$params=_props$route6.params)!=null&&_props$route6$params.front)&&!((_props$route7=props.route)!=null&&(_props$route7$params=_props$route7.params)!=null&&_props$route7$params.callback)){navigation.push(_navigation.ScreenNames.TTSNationalIDBack,{uri:data==null?void 0:data.uri,loan:props==null?void 0:(_props$route8=props.route)==null?void 0:(_props$route8$params=_props$route8.params)==null?void 0:_props$route8$params.loan});}else{navigation.goBack();(_props$route9=props.route)==null?void 0:(_props$route9$params=_props$route9.params)==null?void 0:_props$route9$params.callback(data==null?void 0:data.uri);}case 7:case"end":return _context5.stop();}},null,null,null,Promise);};var pickImageFromGallery=function _callee6(){var result,_props$route10,_props$route10$params,_props$route11,_props$route11$params,_props$route13,_props$route13$params,_props$route14,_props$route14$params,_result$assets$,_props$route12,_props$route12$params,_result$assets$2,_props$route15,_props$route15$params,_props$route16,_props$route16$params,_result$assets$3;return _regenerator.default.async(function _callee6$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:if(!(_reactNative.Platform.OS==='android')){_context6.next=7;break;}_context6.next=3;return _regenerator.default.awrap((0,_reactNativeImagePicker.launchImageLibrary)({mediaType:'photo'}));case 3:result=_context6.sent;if(result.assets){if(props!=null&&(_props$route10=props.route)!=null&&(_props$route10$params=_props$route10.params)!=null&&_props$route10$params.front&&!((_props$route11=props.route)!=null&&(_props$route11$params=_props$route11.params)!=null&&_props$route11$params.callback)){navigation.push(_navigation.ScreenNames.TTSNationalIDFront,{uri:(_result$assets$=result.assets[0])==null?void 0:_result$assets$.uri,loan:props==null?void 0:(_props$route12=props.route)==null?void 0:(_props$route12$params=_props$route12.params)==null?void 0:_props$route12$params.loan});}else if(!(props!=null&&(_props$route13=props.route)!=null&&(_props$route13$params=_props$route13.params)!=null&&_props$route13$params.front)&&!((_props$route14=props.route)!=null&&(_props$route14$params=_props$route14.params)!=null&&_props$route14$params.callback)){navigation.push(_navigation.ScreenNames.TTSNationalIDBack,{uri:(_result$assets$2=result.assets[0])==null?void 0:_result$assets$2.uri,loan:props==null?void 0:(_props$route15=props.route)==null?void 0:(_props$route15$params=_props$route15.params)==null?void 0:_props$route15$params.loan});}else{navigation.goBack();(_props$route16=props.route)==null?void 0:(_props$route16$params=_props$route16.params)==null?void 0:_props$route16$params.callback((_result$assets$3=result.assets[0])==null?void 0:_result$assets$3.uri);}}_context6.next=8;break;case 7:_reactNativeImageCropPicker.default.openPicker({}).then(function(image){var _props$route17,_props$route17$params,_props$route18,_props$route18$params,_props$route20,_props$route20$params,_props$route21,_props$route21$params;if(props!=null&&(_props$route17=props.route)!=null&&(_props$route17$params=_props$route17.params)!=null&&_props$route17$params.front&&!((_props$route18=props.route)!=null&&(_props$route18$params=_props$route18.params)!=null&&_props$route18$params.callback)){var _props$route19,_props$route19$params;navigation.push(_navigation.ScreenNames.TTSNationalIDFront,{uri:_reactNative.Platform.OS==='android'?image==null?void 0:image.path:'file://'+(image==null?void 0:image.path),loan:props==null?void 0:(_props$route19=props.route)==null?void 0:(_props$route19$params=_props$route19.params)==null?void 0:_props$route19$params.loan});}else if(!(props!=null&&(_props$route20=props.route)!=null&&(_props$route20$params=_props$route20.params)!=null&&_props$route20$params.front)&&!((_props$route21=props.route)!=null&&(_props$route21$params=_props$route21.params)!=null&&_props$route21$params.callback)){var _props$route22,_props$route22$params;navigation.push(_navigation.ScreenNames.TTSNationalIDBack,{uri:_reactNative.Platform.OS==='android'?image==null?void 0:image.path:'file://'+(image==null?void 0:image.path),loan:props==null?void 0:(_props$route22=props.route)==null?void 0:(_props$route22$params=_props$route22.params)==null?void 0:_props$route22$params.loan});}else{var _props$route23,_props$route23$params;navigation.goBack();(_props$route23=props.route)==null?void 0:(_props$route23$params=_props$route23.params)==null?void 0:_props$route23$params.callback(_reactNative.Platform.OS==='android'?image==null?void 0:image.path:'file://'+(image==null?void 0:image.path));}});case 8:case"end":return _context6.stop();}},null,null,null,Promise);};return _react.default.createElement(_reactNative.View,{style:{flex:1,backgroundColor:'black'},pointerEvents:'box-none',__self:this,__source:{fileName:_jsxFileName,lineNumber:376,columnNumber:5}},_react.default.createElement(_reactNative.View,{style:{alignItems:'center',position:'absolute',top:insets.top+16,left:0,right:0,zIndex:100},__self:this,__source:{fileName:_jsxFileName,lineNumber:380,columnNumber:7}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.navigate(_navigation.ScreenNames.Main);},style:{position:'absolute',left:10,top:4,width:24,height:24,alignItems:'center',justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:390,columnNumber:9}},_react.default.createElement(_icons.IconBackWhite,{__self:this,__source:{fileName:_jsxFileName,lineNumber:404,columnNumber:11}})),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',padding:2,borderRadius:4,alignItems:'center',backgroundColor:'transparent'},__self:this,__source:{fileName:_jsxFileName,lineNumber:406,columnNumber:9}}),_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:16,textAlign:'center',padding:16,marginTop:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:491,columnNumber:9}},type==='passport'&&props!=null&&(_props$route24=props.route)!=null&&(_props$route24$params=_props$route24.params)!=null&&_props$route24$params.front?'Chụp CMND/ CCCD mặt trước':type==='passport'?'Chụp CMND/ CCCD mặt sau':'Dùng camera để quét chuỗi ký tự mặt sau thẻ CCCD gắn chíp ở phía dưới')),passPermission&&type==='passport'&&shouldRenderCamera?_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.alignCenter,_CommonStyles.commonStyles.fill,_CommonStyles.commonStyles.justifyCenter,{position:'absolute',width:_reactNative.Dimensions.get('window').width,height:_reactNative.Dimensions.get('window').height}],__self:this,__source:{fileName:_jsxFileName,lineNumber:509,columnNumber:9}},_react.default.createElement(_reactNativeCamera.RNCamera,{ref:myCamera,defaultVideoQuality:_reactNativeCamera.RNCamera.Constants.VideoQuality['720p'],style:{width:_reactNative.Dimensions.get('window').width,height:260,overflow:'hidden'},maxZoom:1,__self:this,__source:{fileName:_jsxFileName,lineNumber:521,columnNumber:11}},function(_ref){var camera=_ref.camera,status=_ref.status,recordAudioPermissionStatus=_ref.recordAudioPermissionStatus;if(status!=='READY')return _react.default.createElement(_reactNative.ActivityIndicator,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:532,columnNumber:46}});}),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){pickImageFromGallery();},style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:535,columnNumber:11}},_react.default.createElement(_svgs.IconUpload,{__self:this,__source:{fileName:_jsxFileName,lineNumber:546,columnNumber:13}}),_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:547,columnNumber:13}},"T\u1EA3i \u1EA3nh t\u1EEB th\u01B0 vi\u1EC7n")),_react.default.createElement(_reactNative.View,{style:styles.buttonContainer,__self:this,__source:{fileName:_jsxFileName,lineNumber:557,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:14,textAlign:'center',padding:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:558,columnNumber:13}},"Vui l\xF2ng \u0111\u1EB7t gi\u1EA5y t\u1EDD n\u1EB1m v\u1EEBa khung h\xECnh ch\u1EEF nh\u1EADt, ch\u1EE5p \u0111\u1EE7 \xE1nh s\xE1ng v\xE0 r\xF5 n\xE9t."),_react.default.createElement(_MButton.default,{onPress:function onPress(){takePhoto();},__self:this,__source:{fileName:_jsxFileName,lineNumber:569,columnNumber:13}},_react.default.createElement(_icons.TakePhotoSvg,{__self:this,__source:{fileName:_jsxFileName,lineNumber:574,columnNumber:15}})))):passPermission&&type==='nfc'&&shouldRenderCamera?_react.default.createElement(_react.default.Fragment,null,_react.default.createElement(_reactNativeCamera.RNCamera,{ref:myCamera,style:styles.camera,type:_reactNativeCamera.RNCamera.Constants.Type.back,captureAudio:false,__self:this,__source:{fileName:_jsxFileName,lineNumber:580,columnNumber:11}}),_react.default.createElement(_reactNative.View,{style:styles.overlay,__self:this,__source:{fileName:_jsxFileName,lineNumber:586,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:styles.overlayTop,__self:this,__source:{fileName:_jsxFileName,lineNumber:587,columnNumber:13}}),_react.default.createElement(_reactNative.View,{style:styles.overlayCenter,__self:this,__source:{fileName:_jsxFileName,lineNumber:588,columnNumber:13}},_react.default.createElement(_reactNative.View,{style:styles.overlayLeft,__self:this,__source:{fileName:_jsxFileName,lineNumber:589,columnNumber:15}}),_react.default.createElement(_reactNative.View,{style:styles.overlayRect,__self:this,__source:{fileName:_jsxFileName,lineNumber:590,columnNumber:15}}),_react.default.createElement(_reactNative.View,{style:styles.overlayRight,__self:this,__source:{fileName:_jsxFileName,lineNumber:591,columnNumber:15}})),_react.default.createElement(_reactNative.View,{style:styles.overlayBottom,__self:this,__source:{fileName:_jsxFileName,lineNumber:593,columnNumber:13}})),_react.default.createElement(_reactNative.View,{style:styles.buttonContainer,__self:this,__source:{fileName:_jsxFileName,lineNumber:595,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:14,textAlign:'center',padding:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:596,columnNumber:13}},"Vui l\xF2ng \u0111\u1EB7t chu\u1ED7i k\xED t\u1EF1 n\u1EB1m v\u1EEBa khung h\xECnh ch\u1EEF nh\u1EADt, ch\u1EE5p \u0111\u1EE7 \xE1nh s\xE1ng v\xE0 r\xF5 n\xE9t."),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){scanNfc();},__self:this,__source:{fileName:_jsxFileName,lineNumber:607,columnNumber:13}},_react.default.createElement(_icons.TakePhotoSvg,{__self:this,__source:{fileName:_jsxFileName,lineNumber:612,columnNumber:15}})))):_react.default.createElement(_react.default.Fragment,null),_react.default.createElement(_reactNativeModal.default,{isVisible:showModal,style:$modal,backdropTransitionInTiming:0,nimationOutTiming:200,animationInTiming:200,animationIn:'slideInUp',animationOut:'fadeOutDown',useNativeDriverForBackdrop:true,useNativeDriver:true,__self:this,__source:{fileName:_jsxFileName,lineNumber:620,columnNumber:7}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:$container,__self:this,__source:{fileName:_jsxFileName,lineNumber:631,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:$paddingV,__self:this,__source:{fileName:_jsxFileName,lineNumber:632,columnNumber:11}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setShowModal(false);setTimeout(function(){navigation.goBack();},100);},style:{width:24,height:24,position:'absolute',left:16,top:24,alignItems:'center',zIndex:10000},__self:this,__source:{fileName:_jsxFileName,lineNumber:633,columnNumber:13}},_react.default.createElement(_icons.CloseIcon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:650,columnNumber:15}})),_react.default.createElement(_MText.MText,{style:$title,__self:this,__source:{fileName:_jsxFileName,lineNumber:652,columnNumber:13}},"NH\u1EACN DI\u1EC6N GI\u1EA4Y T\u1EDC T\xD9Y TH\xC2N"),_react.default.createElement(_MText.MText,{style:$description,__self:this,__source:{fileName:_jsxFileName,lineNumber:653,columnNumber:13}},"Ch\u1EE5p \u1EA3nh 2 m\u1EB7t ho\u1EB7c NFC CCCD/ CMND"),_react.default.createElement(_reactNative.Image,{source:require('../../assets/tts/vehicleStep.png'),style:$step,__self:this,__source:{fileName:_jsxFileName,lineNumber:657,columnNumber:13}}),_react.default.createElement(_reactNative.View,{style:$bg,__self:this,__source:{fileName:_jsxFileName,lineNumber:662,columnNumber:13}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'column',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:663,columnNumber:15}},_react.default.createElement(_reactNative.Image,{source:require('../../assets/tts/Frame1000011946.png'),style:{width:'60%',height:70,resizeMode:'contain',marginVertical:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:669,columnNumber:17}})),_react.default.createElement(_reactNative.View,{style:{marginTop:10,paddingHorizontal:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:679,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[$title2,{textAlign:'left'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:680,columnNumber:17}},"C\xE1ch 1: NFC (\xC1p d\u1EE5ng cho CCCD g\u1EAFn chip)"),_react.default.createElement(_reactNative.View,{style:$row,__self:this,__source:{fileName:_jsxFileName,lineNumber:683,columnNumber:17}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:684,columnNumber:19}}),_react.default.createElement(_MText.MText,{style:$txt,__self:this,__source:{fileName:_jsxFileName,lineNumber:685,columnNumber:19}},"\u0110\u1EB7t ph\u1EA7n chip \u0111\u1ED3ng g\u1EA7n l\u1EA1i v\u1EDBi ph\u1EA7n ph\xEDa tr\xEAn c\u1EE7a",'\n',"m\u1EB7t l\u01B0ng \u0111i\u1EC7n tho\u1EA1i")),_react.default.createElement(_reactNative.View,{style:$row,__self:this,__source:{fileName:_jsxFileName,lineNumber:690,columnNumber:17}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:691,columnNumber:19}}),_react.default.createElement(_MText.MText,{style:$txt,__self:this,__source:{fileName:_jsxFileName,lineNumber:692,columnNumber:19}},"Gi\u1EEF nguy\xEAn cho \u0111\u1EBFn khi \u0111\u1ECDc xong th\xF4ng tin th\u1EBB")),_react.default.createElement(_reactNative.Image,{source:require('../../assets/tts/Frame1000011953.png'),style:{width:'100%',height:70,resizeMode:'contain',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:696,columnNumber:17}})),_react.default.createElement(_reactNative.View,{style:{marginTop:10,paddingHorizontal:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:706,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[$title2,{textAlign:'left'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:707,columnNumber:17}},"C\xE1ch 2: Ch\u1EE5p 2 m\u1EB7t"),_react.default.createElement(_reactNative.View,{style:$row,__self:this,__source:{fileName:_jsxFileName,lineNumber:710,columnNumber:17}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:711,columnNumber:19}}),_react.default.createElement(_MText.MText,{style:$txt,__self:this,__source:{fileName:_jsxFileName,lineNumber:712,columnNumber:19}},"N\xEAn \u0111\u1EB7t CCCD/ CMND l\xEAn m\u1EB7t ph\u1EB3ng \u0111\u1EC3 ch\u1EE5p")),_react.default.createElement(_reactNative.View,{style:$row,__self:this,__source:{fileName:_jsxFileName,lineNumber:716,columnNumber:17}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:717,columnNumber:19}}),_react.default.createElement(_MText.MText,{style:$txt,__self:this,__source:{fileName:_jsxFileName,lineNumber:718,columnNumber:19}},"\u0110\u1EB7t CCCD/ CMND n\u1EB1m g\u1ECDn trong khung h\xECnh (Kh\xF4ng ",'\n'," qu\xE1 nh\u1ECF hay qu\xE1 to l\xE0m m\u1EA5t chi ti\u1EBFt)")),_react.default.createElement(_reactNative.View,{style:$row,__self:this,__source:{fileName:_jsxFileName,lineNumber:723,columnNumber:17}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:724,columnNumber:19}}),_react.default.createElement(_MText.MText,{style:$txt,__self:this,__source:{fileName:_jsxFileName,lineNumber:725,columnNumber:19}},"Ch\u1ECDn n\u01A1i \xE1nh s\xE1ng t\u1ED1t, tr\xE1nh l\xF3a/ ch\xF3i h\xECnh ch\u1EE5p")),_react.default.createElement(_reactNative.Image,{source:require('../../assets/tts/Frame1000011947.png'),style:{width:'100%',height:80,resizeMode:'contain',marginTop:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:729,columnNumber:17}})),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',margin:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:740,columnNumber:15}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setType('passport');setShowModal(false);(0,_storage.save)(_storage.OCR_V1,true);},style:{flex:1,borderWidth:1,borderColor:'#EF592E',height:40,alignItems:'center',justifyContent:'center',borderRadius:40},__self:this,__source:{fileName:_jsxFileName,lineNumber:747,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{color:'#EF592E',fontSize:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:764,columnNumber:19}},"Ch\u1EE5p 2 m\u1EB7t"))),_react.default.createElement(_reactNative.View,{style:{height:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:806,columnNumber:15}}))))),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:812,columnNumber:7}}));});var $row={flexDirection:'row',alignItems:'center',marginTop:5};var $txt={fontSize:12,marginLeft:5};var $bg={backgroundColor:'white',borderTopRightRadius:26,borderTopLeftRadius:26};var $step={height:40,width:'100%',resizeMode:'contain',marginTop:10,marginBottom:10};var $paddingV={paddingTop:16};var $title={fontSize:16,color:'white',fontWeight:'bold',textAlign:'center'};var $title2={fontSize:16,color:'#333333',fontWeight:'bold',textAlign:'center'};var $description={fontSize:12,color:'white',textAlign:'center'};var $flex={flex:1};var $modal={justifyContent:'flex-end',margin:0};var $container={borderTopRightRadius:26,borderTopLeftRadius:26};var styles=_reactNative.StyleSheet.create({container:{flex:1},camera:{flex:1},buttonContainer:{flex:0,flexDirection:'column',justifyContent:'center',alignItems:'center',position:'absolute',bottom:40,left:0,right:0,zIndex:1000},captureButton:{width:56,height:56,borderRadius:35,backgroundColor:'white',justifyContent:'center',alignItems:'center'},innerCaptureButton:{width:60,height:60,borderRadius:30,backgroundColor:'red'},overlay:{position:'absolute',top:0,left:0,right:0,bottom:0,justifyContent:'center',alignItems:'center'},overlayTop:{flex:1,backgroundColor:'black',width:'100%'},overlayCenter:{flexDirection:'row'},overlayLeft:{flex:1,backgroundColor:'black'},overlayRect:{width:'90%',height:100,borderColor:'white',borderWidth:2,justifyContent:'center',alignItems:'center'},instructionText:{color:'white',textAlign:'center',paddingHorizontal:10,fontSize:14,position:'absolute',top:-50},overlayRight:{flex:1,backgroundColor:'black'},overlayBottom:{flex:1,backgroundColor:'black',width:'100%'},mrzContainer:{padding:10},mrzText:{fontSize:16}});
2
2
  //# sourceMappingURL=OCR.js.map
@@ -50,10 +50,12 @@ import DeviceInfo from 'react-native-device-info';
50
50
  import { IconUpload } from '../../assets/svgs';
51
51
  import ImagePicker from 'react-native-image-crop-picker';
52
52
  import { launchImageLibrary } from 'react-native-image-picker';
53
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
53
54
 
54
55
  const { NFCReader } = NativeModules;
55
56
 
56
57
  export const OCR = observer(function OCR(props: any) {
58
+ const insets = useSafeAreaInsets();
57
59
  const isFocused = useIsFocused();
58
60
  const [isLoading, setIsLoading] = useState(false);
59
61
  const navigation = useNavigation();
@@ -379,7 +381,7 @@ export const OCR = observer(function OCR(props: any) {
379
381
  style={{
380
382
  alignItems: 'center',
381
383
  position: 'absolute',
382
- top: DeviceInfo.hasNotch() ? 70 : 24,
384
+ top: insets.top + 16,
383
385
  left: 0,
384
386
  right: 0,
385
387
  zIndex: 100,
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_mobxReactLite","_reactNative","_MText","_storage","_reactNativePermissions","_reactNativeCamera","_reactNativeModal","_interopRequireDefault","_reactNativeLinearGradient","_icons","_MButton","_CommonStyles","_native","_textRecognition","_navigation","_api","_Loading","_reactNativeDeviceInfo","_svgs","_reactNativeImageCropPicker","_reactNativeImagePicker","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","NFCReader","NativeModules","OCR","exports","observer","props","_props$route24","_props$route24$params","_this","isFocused","useIsFocused","_useState","useState","_useState2","_slicedToArray2","isLoading","setIsLoading","navigation","useNavigation","_useState3","_useState4","showModal","setShowModal","_useState5","_useState6","type","setType","_useState7","_useState8","taking","setTaking","_useState9","_useState10","passPermission","setPassPermission","_useState11","_useState12","shouldRenderCamera","setShouldRenderCamera","myCamera","useRef","requestPermissions","request","Platform","OS","PERMISSIONS","IOS","CAMERA","ANDROID","then","result","RESULTS","UNAVAILABLE","console","log","Alert","alert","text","DENIED","onPress","openSettings","LIMITED","GRANTED","BLOCKED","useEffect","timeout","setTimeout","clearTimeout","loadIntro","_callee","intro","_regenerator","async","_callee$","_context","prev","next","awrap","load","OCR_V1","sent","stop","Promise","unsubscribe","addListener","_myCamera$current","current","pausePreview","saveDataNfc","_callee2","body","_props$route","_props$route$params","_props$route$params$l","response","_response$data","_response$data$meta","_response$data2","_response$data2$meta","_callee2$","_context2","Api","getInstance","saveNfcInfo","_extends2","loanBriefId","route","params","loan","id","kind","data","meta","errorCode","_props$route2","_props$route2$params","push","ScreenNames","TTSSelfie","errorMessage","t0","convertToDate","input","end","yearPrefix","substring","year","parseInt","month","day","extractMRZInfo","documentNumber","birthDate","expirationDate","regex1","match1","match","regex","replace","readNFCCard","error","convertData","JSON","parse","handleTextRecognition","_callee3","imagePath","_callee3$","_context3","TextRecognition","recognize","scanNfc","_callee4","options","_callee4$","_context4","quality","base64","takePictureAsync","uri","takePhoto","_callee5","_props$route3","_props$route3$params","_props$route4","_props$route4$params","_props$route6","_props$route6$params","_props$route7","_props$route7$params","_props$route5","_props$route5$params","_props$route8","_props$route8$params","_props$route9","_props$route9$params","_callee5$","_context5","pauseAfterCapture","fixOrientation","forceUpOrientation","orientation","RNCamera","Constants","Orientation","portrait","pictureSize","front","callback","TTSNationalIDFront","TTSNationalIDBack","goBack","pickImageFromGallery","_callee6","_props$route10","_props$route10$params","_props$route11","_props$route11$params","_props$route13","_props$route13$params","_props$route14","_props$route14$params","_result$assets$","_props$route12","_props$route12$params","_result$assets$2","_props$route15","_props$route15$params","_props$route16","_props$route16$params","_result$assets$3","_callee6$","_context6","launchImageLibrary","mediaType","assets","ImagePicker","openPicker","image","_props$route17","_props$route17$params","_props$route18","_props$route18$params","_props$route20","_props$route20$params","_props$route21","_props$route21$params","_props$route19","_props$route19$params","path","_props$route22","_props$route22$params","_props$route23","_props$route23$params","createElement","View","style","flex","backgroundColor","pointerEvents","__self","__source","fileName","lineNumber","columnNumber","alignItems","position","top","DeviceInfo","hasNotch","left","right","zIndex","TouchableOpacity","navigate","Main","width","height","justifyContent","IconBackWhite","flexDirection","padding","borderRadius","MText","color","fontSize","textAlign","marginTop","commonStyles","alignCenter","fill","justifyCenter","Dimensions","ref","defaultVideoQuality","VideoQuality","overflow","maxZoom","_ref","camera","status","recordAudioPermissionStatus","ActivityIndicator","gap","IconUpload","styles","buttonContainer","TakePhotoSvg","Fragment","Type","back","captureAudio","overlay","overlayTop","overlayCenter","overlayLeft","overlayRect","overlayRight","overlayBottom","isVisible","$modal","backdropTransitionInTiming","nimationOutTiming","animationInTiming","animationIn","animationOut","useNativeDriverForBackdrop","useNativeDriver","colors","$container","$paddingV","CloseIcon","$title","$description","Image","source","$step","$bg","resizeMode","marginVertical","paddingHorizontal","$title2","$row","TimaSmall","$txt","margin","save","borderWidth","borderColor","marginLeft","borderTopRightRadius","borderTopLeftRadius","marginBottom","paddingTop","fontWeight","$flex","StyleSheet","create","container","bottom","captureButton","innerCaptureButton","instructionText","mrzContainer","mrzText"],"sourceRoot":"../../../../src","sources":["screens/toan-trinh-so/OCR.tsx"],"mappings":"0ZACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,cAAA,CAAAD,OAAA,oBACA,IAAAE,YAAA,CAAAF,OAAA,iBAeA,IAAAG,MAAA,CAAAH,OAAA,2BACA,IAAAI,QAAA,CAAAJ,OAAA,wBACA,IAAAK,uBAAA,CAAAL,OAAA,6BAMA,IAAAM,kBAAA,CAAAN,OAAA,wBACA,IAAAO,iBAAA,CAAAC,sBAAA,CAAAR,OAAA,wBACA,IAAAS,0BAAA,CAAAD,sBAAA,CAAAR,OAAA,kC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CAAE,OACnB,CAAC,CACD0D,WAAW,CAAE,CACXxC,KAAK,CAAE,KAAK,CACZC,MAAM,CAAE,GAAG,CACXuE,WAAW,CAAE,OAAO,CACpBD,WAAW,CAAE,CAAC,CACdrE,cAAc,CAAE,QAAQ,CACxBb,UAAU,CAAE,QACd,CAAC,CACDiG,eAAe,CAAE,CACf9E,KAAK,CAAE,OAAO,CACdE,SAAS,CAAE,QAAQ,CACnBsD,iBAAiB,CAAE,EAAE,CACrBvD,QAAQ,CAAE,EAAE,CACZnB,QAAQ,CAAE,UAAU,CACpBC,GAAG,CAAE,CAAC,EACR,CAAC,CACDkD,YAAY,CAAE,CACZ5D,IAAI,CAAE,CAAC,CACPC,eAAe,CAAE,OACnB,CAAC,CACD4D,aAAa,CAAE,CACb7D,IAAI,CAAE,CAAC,CACPC,eAAe,CAAE,OAAO,CACxBkB,KAAK,CAAE,MACT,CAAC,CACDuF,YAAY,CAAE,CACZlF,OAAO,CAAE,EACX,CAAC,CACDmF,OAAO,CAAE,CACP/E,QAAQ,CAAE,EACZ,CACF,CAAC,CAAC"}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_mobxReactLite","_reactNative","_MText","_storage","_reactNativePermissions","_reactNativeCamera","_reactNativeModal","_interopRequireDefault","_reactNativeLinearGradient","_icons","_MButton","_CommonStyles","_native","_textRecognition","_navigation","_api","_Loading","_svgs","_reactNativeImageCropPicker","_reactNativeImagePicker","_reactNativeSafeAreaContext","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","NFCReader","NativeModules","OCR","exports","observer","props","_props$route24","_props$route24$params","_this","insets","useSafeAreaInsets","isFocused","useIsFocused","_useState","useState","_useState2","_slicedToArray2","isLoading","setIsLoading","navigation","useNavigation","_useState3","_useState4","showModal","setShowModal","_useState5","_useState6","type","setType","_useState7","_useState8","taking","setTaking","_useState9","_useState10","passPermission","setPassPermission","_useState11","_useState12","shouldRenderCamera","setShouldRenderCamera","myCamera","useRef","requestPermissions","request","Platform","OS","PERMISSIONS","IOS","CAMERA","ANDROID","then","result","RESULTS","UNAVAILABLE","console","log","Alert","alert","text","DENIED","onPress","openSettings","LIMITED","GRANTED","BLOCKED","useEffect","timeout","setTimeout","clearTimeout","loadIntro","_callee","intro","_regenerator","async","_callee$","_context","prev","next","awrap","load","OCR_V1","sent","stop","Promise","unsubscribe","addListener","_myCamera$current","current","pausePreview","saveDataNfc","_callee2","body","_props$route","_props$route$params","_props$route$params$l","response","_response$data","_response$data$meta","_response$data2","_response$data2$meta","_callee2$","_context2","Api","getInstance","saveNfcInfo","_extends2","loanBriefId","route","params","loan","id","kind","data","meta","errorCode","_props$route2","_props$route2$params","push","ScreenNames","TTSSelfie","errorMessage","t0","convertToDate","input","end","yearPrefix","substring","year","parseInt","month","day","extractMRZInfo","documentNumber","birthDate","expirationDate","regex1","match1","match","regex","replace","readNFCCard","error","convertData","JSON","parse","handleTextRecognition","_callee3","imagePath","_callee3$","_context3","TextRecognition","recognize","scanNfc","_callee4","options","_callee4$","_context4","quality","base64","takePictureAsync","uri","takePhoto","_callee5","_props$route3","_props$route3$params","_props$route4","_props$route4$params","_props$route6","_props$route6$params","_props$route7","_props$route7$params","_props$route5","_props$route5$params","_props$route8","_props$route8$params","_props$route9","_props$route9$params","_callee5$","_context5","pauseAfterCapture","fixOrientation","forceUpOrientation","orientation","RNCamera","Constants","Orientation","portrait","pictureSize","front","callback","TTSNationalIDFront","TTSNationalIDBack","goBack","pickImageFromGallery","_callee6","_props$route10","_props$route10$params","_props$route11","_props$route11$params","_props$route13","_props$route13$params","_props$route14","_props$route14$params","_result$assets$","_props$route12","_props$route12$params","_result$assets$2","_props$route15","_props$route15$params","_props$route16","_props$route16$params","_result$assets$3","_callee6$","_context6","launchImageLibrary","mediaType","assets","ImagePicker","openPicker","image","_props$route17","_props$route17$params","_props$route18","_props$route18$params","_props$route20","_props$route20$params","_props$route21","_props$route21$params","_props$route19","_props$route19$params","path","_props$route22","_props$route22$params","_props$route23","_props$route23$params","createElement","View","style","flex","backgroundColor","pointerEvents","__self","__source","fileName","lineNumber","columnNumber","alignItems","position","top","left","right","zIndex","TouchableOpacity","navigate","Main","width","height","justifyContent","IconBackWhite","flexDirection","padding","borderRadius","MText","color","fontSize","textAlign","marginTop","commonStyles","alignCenter","fill","justifyCenter","Dimensions","ref","defaultVideoQuality","VideoQuality","overflow","maxZoom","_ref","camera","status","recordAudioPermissionStatus","ActivityIndicator","gap","IconUpload","styles","buttonContainer","TakePhotoSvg","Fragment","Type","back","captureAudio","overlay","overlayTop","overlayCenter","overlayLeft","overlayRect","overlayRight","overlayBottom","isVisible","$modal","backdropTransitionInTiming","nimationOutTiming","animationInTiming","animationIn","animationOut","useNativeDriverForBackdrop","useNativeDriver","colors","$container","$paddingV","CloseIcon","$title","$description","Image","source","$step","$bg","resizeMode","marginVertical","paddingHorizontal","$title2","$row","TimaSmall","$txt","margin","save","borderWidth","borderColor","marginLeft","borderTopRightRadius","borderTopLeftRadius","marginBottom","paddingTop","fontWeight","$flex","StyleSheet","create","container","bottom","captureButton","innerCaptureButton","instructionText","mrzContainer","mrzText"],"sourceRoot":"../../../../src","sources":["screens/toan-trinh-so/OCR.tsx"],"mappings":"0ZACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,cAAA,CAAAD,OAAA,oBACA,IAAAE,YAAA,CAAAF,OAAA,iBAeA,IAAAG,MAAA,CAAAH,OAAA,2BACA,IAAAI,QAAA,CAAAJ,OAAA,wBACA,IAAAK,uBAAA,CAAAL,OAAA,6BAMA,IAAAM,kBAAA,CAAAN,OAAA,wBACA,IAAAO,iBAAA,CAAAC,sBAAA,CAAAR,OAAA,wBACA,IAAAS,0BAAA,CAAAD,sBAAA,CAAAR,OAAA,kCACA,IAAAU,MAAA,CAAAV,OAAA,uBAQA,IAAAW,QAAA,CAAAH,sBAAA,CAAAR,OAAA,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C,MAAM,CAAE,GAAG,CACXuE,WAAW,CAAE,OAAO,CACpBD,WAAW,CAAE,CAAC,CACdrE,cAAc,CAAE,QAAQ,CACxBX,UAAU,CAAE,QACd,CAAC,CACD+F,eAAe,CAAE,CACf9E,KAAK,CAAE,OAAO,CACdE,SAAS,CAAE,QAAQ,CACnBsD,iBAAiB,CAAE,EAAE,CACrBvD,QAAQ,CAAE,EAAE,CACZjB,QAAQ,CAAE,UAAU,CACpBC,GAAG,CAAE,CAAC,EACR,CAAC,CACDgD,YAAY,CAAE,CACZ1D,IAAI,CAAE,CAAC,CACPC,eAAe,CAAE,OACnB,CAAC,CACD0D,aAAa,CAAE,CACb3D,IAAI,CAAE,CAAC,CACPC,eAAe,CAAE,OAAO,CACxBgB,KAAK,CAAE,MACT,CAAC,CACDuF,YAAY,CAAE,CACZlF,OAAO,CAAE,EACX,CAAC,CACDmF,OAAO,CAAE,CACP/E,QAAQ,CAAE,EACZ,CACF,CAAC,CAAC"}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=ReviewLoan;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _CommonStyles=require("../CommonStyles");var _native=require("@react-navigation/native");var _svgs=require("../../assets/svgs");var _MText=require("../../components/MText");var _formik=require("formik");var _icons=require("../../assets/icons");var _theme=require("../../theme");var _utils=require("../../utils");var _AppStore=_interopRequireDefault(require("../../AppStore"));var _navigation=require("../../navigation");var _keyboardspace=_interopRequireDefault(require("../../components/keyboardspace"));var _MButton=_interopRequireDefault(require("../../components/MButton"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _api=require("../../services/api");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _lodash=require("lodash");var _moment=_interopRequireDefault(require("moment"));var _store=_interopRequireDefault(require("./store"));var yup=_interopRequireWildcard(require("yup"));var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/screens/toan-trinh-so/ReviewLoan.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}function ReviewLoan(props){var _this=this;var navigation=(0,_native.useNavigation)();var formRef=(0,_react.useRef)(null);var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),isLoading=_useState2[0],setIsLoading=_useState2[1];var onSubmit=function _callee(values){var _props$route,_props$route$params,_props$route$params$l,_values$timeInsurence,_values$timeInsurence2,_values$timeInsurance,_values$timeInsurance2,body,response,_response$data,_response$data$meta,_props$route2,_props$route2$params,_response$data2,_response$data2$meta;return _regenerator.default.async(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.prev=0;setIsLoading(true);body={loanBriefId:(_props$route=props.route)==null?void 0:(_props$route$params=_props$route.params)==null?void 0:(_props$route$params$l=_props$route$params.loan)==null?void 0:_props$route$params$l.id,loanAmount:Number(values.loanAmount),rateTypeId:values.rateTypeId,loanTime:values.loanTime,firstPaymentDate:(0,_moment.default)(values.firstPaymentDate,'DD/MM/YYYY').format('YYYY-MM-DD'),buyInsurenceCustomer:values==null?void 0:values.buyInsurenceCustomer,buyInsuranceProperty:values==null?void 0:values.buyInsuranceProperty,timeInsurenceCustomer:(_values$timeInsurence=values==null?void 0:(_values$timeInsurence2=values.timeInsurenceCustomer)==null?void 0:_values$timeInsurence2.id)!=null?_values$timeInsurence:0,timeInsuranceProperty:(_values$timeInsurance=values==null?void 0:(_values$timeInsurance2=values.timeInsuranceProperty)==null?void 0:_values$timeInsurance2.id)!=null?_values$timeInsurance:0,moneyInsurenceCustomer:values.moneyInsurenceCustomer,moneyInsuranceProperty:values.moneyInsuranceProperty};_context.next=5;return _regenerator.default.awrap(_api.Api.getInstance().updateInfoLoanV2(body));case 5:response=_context.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data=response.data)==null?void 0:(_response$data$meta=_response$data.meta)==null?void 0:_response$data$meta.errorCode)===200){navigation.push(_navigation.ScreenNames.OCR,{loan:(_props$route2=props.route)==null?void 0:(_props$route2$params=_props$route2.params)==null?void 0:_props$route2$params.loan,front:true});}else{_reactNative.Alert.alert('Thông báo',(_response$data2=response.data)==null?void 0:(_response$data2$meta=_response$data2.meta)==null?void 0:_response$data2$meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');}_context.next=14;break;case 10:_context.prev=10;_context.t0=_context["catch"](0);setIsLoading(false);console.log(_context.t0);case 14:case"end":return _context.stop();}},null,null,[[0,10]],Promise);};var getData=function _callee2(){var _props$route3,_props$route3$params,_props$route3$params$,response,_response$data3,_response$data$data$l,_response$data4,_response$data4$data,_formatDDMMYYY,_response$data5,_response$data5$data,_response$data$data$r,_response$data6,_response$data6$data,_response$data7,_response$data7$data,_response$data$data$l2,_response$data9,_response$data9$data,_response$data$data$m,_response$data10,_response$data10$data,_response$data$data$m2,_response$data11,_response$data11$data,_response$data12,_response$data12$data,_response$data13,_response$data13$data,_response$data14,_response$data14$data,_response$data15,_response$data15$data,_formRef$current,_formRef$current2,_response$data8,_response$data8$data,_props$route$params$l2,_props$route4,_props$route4$params,_props$route4$params$,timeInsurenceCustomer,timeInsuranceProperty;return _regenerator.default.async(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.prev=0;setIsLoading(true);_context2.next=4;return _regenerator.default.awrap(_api.Api.getInstance().getInfoLoanAutoDEV2((_props$route3=props.route)==null?void 0:(_props$route3$params=_props$route3.params)==null?void 0:(_props$route3$params$=_props$route3$params.loan)==null?void 0:_props$route3$params$.id));case 4:response=_context2.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data3=response.data)==null?void 0:_response$data3.meta.errorCode)===200){formRef.current.setFieldValue('loanAmount',(_response$data$data$l=response==null?void 0:(_response$data4=response.data)==null?void 0:(_response$data4$data=_response$data4.data)==null?void 0:_response$data4$data.loanAmount)!=null?_response$data$data$l:0);formRef.current.setFieldValue('firstPaymentDate',(_formatDDMMYYY=(0,_utils.formatDDMMYYY)(response==null?void 0:(_response$data5=response.data)==null?void 0:(_response$data5$data=_response$data5.data)==null?void 0:_response$data5$data.firstPaymentDate))!=null?_formatDDMMYYY:'');formRef.current.setFieldValue('rateTypeId',(_response$data$data$r=response==null?void 0:(_response$data6=response.data)==null?void 0:(_response$data6$data=_response$data6.data)==null?void 0:_response$data6$data.rateTypeId)!=null?_response$data$data$r:null);if(response!=null&&(_response$data7=response.data)!=null&&(_response$data7$data=_response$data7.data)!=null&&_response$data7$data.rateTypeId){_AppStore.default.getLoanTimeByType(response==null?void 0:(_response$data8=response.data)==null?void 0:(_response$data8$data=_response$data8.data)==null?void 0:_response$data8$data.rateTypeId,(_props$route$params$l2=(_props$route4=props.route)==null?void 0:(_props$route4$params=_props$route4.params)==null?void 0:(_props$route4$params$=_props$route4$params.loan)==null?void 0:_props$route4$params$.typeLoan)!=null?_props$route$params$l2:0);}formRef.current.setFieldValue('loanTime',(_response$data$data$l2=response==null?void 0:(_response$data9=response.data)==null?void 0:(_response$data9$data=_response$data9.data)==null?void 0:_response$data9$data.loanTime)!=null?_response$data$data$l2:null);formRef.current.setFieldValue('moneyInsuranceProperty',(_response$data$data$m=response==null?void 0:(_response$data10=response.data)==null?void 0:(_response$data10$data=_response$data10.data)==null?void 0:_response$data10$data.moneyInsuranceProperty)!=null?_response$data$data$m:null);formRef.current.setFieldValue('moneyInsurenceCustomer',(_response$data$data$m2=response==null?void 0:(_response$data11=response.data)==null?void 0:(_response$data11$data=_response$data11.data)==null?void 0:_response$data11$data.moneyInsurenceCustomer)!=null?_response$data$data$m2:null);formRef.current.setFieldValue('buyInsuranceProperty',response!=null&&(_response$data12=response.data)!=null&&(_response$data12$data=_response$data12.data)!=null&&_response$data12$data.buyInsuranceProperty?response==null?void 0:(_response$data13=response.data)==null?void 0:(_response$data13$data=_response$data13.data)==null?void 0:_response$data13$data.buyInsuranceProperty:false);formRef.current.setFieldValue('buyInsurenceCustomer',response!=null&&(_response$data14=response.data)!=null&&(_response$data14$data=_response$data14.data)!=null&&_response$data14$data.buyInsurenceCustomer?response==null?void 0:(_response$data15=response.data)==null?void 0:(_response$data15$data=_response$data15.data)==null?void 0:_response$data15$data.buyInsurenceCustomer:false);timeInsurenceCustomer=_AppStore.default.listInsurenceTimeAll.find(function(x){var _response$data$data;return x.id===((_response$data$data=response.data.data)==null?void 0:_response$data$data.timeInsurenceCustomer);});(_formRef$current=formRef.current)==null?void 0:_formRef$current.setFieldValue('timeInsurenceCustomer',timeInsurenceCustomer);timeInsuranceProperty=_AppStore.default.listInsurenceTimeAll.find(function(x){var _response$data$data2;return x.id===((_response$data$data2=response.data.data)==null?void 0:_response$data$data2.timeInsuranceProperty);});(_formRef$current2=formRef.current)==null?void 0:_formRef$current2.setFieldValue('timeInsuranceProperty',timeInsuranceProperty);}else{}}_context2.next=13;break;case 9:_context2.prev=9;_context2.t0=_context2["catch"](0);setIsLoading(false);console.log(_context2.t0);case 13:case"end":return _context2.stop();}},null,null,[[0,9]],Promise);};(0,_react.useEffect)(function(){var _props$route5,_props$route5$params,_props$route5$params$;getData();_store.default.getFirstPayment((_props$route5=props.route)==null?void 0:(_props$route5$params=_props$route5.params)==null?void 0:(_props$route5$params$=_props$route5$params.loan)==null?void 0:_props$route5$params$.id);_AppStore.default.getRateTypeAll();},[]);var getInfoInsurence=function _callee3(loanAmount,loanTime,rateTypeId,timeInsurenceCustomer,timeInsuranceProperty){var _props$route$params2,_props$route$params2$,response,_response$data16,_response$data16$meta,_formRef$current3,_response$data$data3,_formRef$current4,_response$data$data4,_formRef$current5,_response$data$data5,_response$data17,_response$data17$meta;return _regenerator.default.async(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.prev=0;setIsLoading(true);_context3.next=4;return _regenerator.default.awrap(_api.Api.getInstance().getInfoInsurence2((_props$route$params2=props.route.params)==null?void 0:(_props$route$params2$=_props$route$params2.loan)==null?void 0:_props$route$params2$.id,loanAmount,loanTime,rateTypeId,timeInsurenceCustomer,timeInsuranceProperty));case 4:response=_context3.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data16=response.data)==null?void 0:(_response$data16$meta=_response$data16.meta)==null?void 0:_response$data16$meta.errorCode)===200){(_formRef$current3=formRef.current)==null?void 0:_formRef$current3.setFieldValue('moneyInsurenceCustomer',(_response$data$data3=response.data.data)==null?void 0:_response$data$data3.moneyInsurenceCustomer);(_formRef$current4=formRef.current)==null?void 0:_formRef$current4.setFieldValue('moneyInsuranceProperty',(_response$data$data4=response.data.data)==null?void 0:_response$data$data4.moneyInsuranceProperty);(_formRef$current5=formRef.current)==null?void 0:_formRef$current5.setFieldValue('moneyInsurranceHospitalization',(_response$data$data5=response.data.data)==null?void 0:_response$data$data5.moneyInsurranceHospitalization);}else{_reactNative.Alert.alert('Thông báo',(_response$data17=response.data)==null?void 0:(_response$data17$meta=_response$data17.meta)==null?void 0:_response$data17$meta.errorMessage);}}else{}_context3.next=12;break;case 9:_context3.prev=9;_context3.t0=_context3["catch"](0);setIsLoading(false);case 12:case"end":return _context3.stop();}},null,null,[[0,9]],Promise);};var debounceCall=(0,_react.useCallback)((0,_lodash.debounce)(function(textParam){var _formRef$current$valu,_formRef$current$valu2,_formRef$current$valu3,_formRef$current$valu4,_formRef$current$valu5;getInfoInsurence(Number(textParam.replace(/\D/g,'')),formRef.current.values.loanTime,(_formRef$current$valu=formRef.current.values)==null?void 0:_formRef$current$valu.rateTypeId,(_formRef$current$valu2=(_formRef$current$valu3=formRef.current.values.timeInsurenceCustomer)==null?void 0:_formRef$current$valu3.id)!=null?_formRef$current$valu2:0,(_formRef$current$valu4=(_formRef$current$valu5=formRef.current.values.timeInsuranceProperty)==null?void 0:_formRef$current$valu5.id)!=null?_formRef$current$valu4:0);},2000),[]);return _react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:224,columnNumber:5}},_react.default.createElement(_MHeader.default,{title:"Vay tr\u1EF1c tuy\u1EBFn 24/7",__self:this,__source:{fileName:_jsxFileName,lineNumber:225,columnNumber:7}}),_react.default.createElement(_reactNative.View,{style:_CommonStyles.commonStyles.fill,__self:this,__source:{fileName:_jsxFileName,lineNumber:226,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:$h,__self:this,__source:{fileName:_jsxFileName,lineNumber:227,columnNumber:9}}),_react.default.createElement(_reactNative.View,{style:$bg,__self:this,__source:{fileName:_jsxFileName,lineNumber:228,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{paddingVertical:10,flexDirection:'row',alignItems:'center',paddingHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:229,columnNumber:11}},_react.default.createElement(_reactNative.TouchableOpacity,{style:{zIndex:1000},onPress:function onPress(){navigation.navigate(_navigation.ScreenNames.Main);},__self:this,__source:{fileName:_jsxFileName,lineNumber:237,columnNumber:13}},_react.default.createElement(_svgs.IconBack,{__self:this,__source:{fileName:_jsxFileName,lineNumber:245,columnNumber:15}})),_react.default.createElement(_MText.MText,{style:$title,__self:this,__source:{fileName:_jsxFileName,lineNumber:247,columnNumber:13}},"Th\xF4ng tin chi ti\u1EBFt")),_react.default.createElement(_formik.Formik,{validateOnBlur:false,validateOnChange:false,innerRef:formRef,onSubmit:onSubmit,initialValues:{loanAmount:'',rateTypeId:null,loanTime:null,firstPaymentDate:'',buyInsurenceCustomer:false,buyInsuranceProperty:false,timeInsurenceCustomer:null,timeInsuranceProperty:null,moneyInsurenceCustomer:null,moneyInsuranceProperty:null},validationSchema:yup.object().shape({loanAmount:yup.string().required('Số tiền là bắt buộc'),rateTypeId:yup.number().required('HTTT là bắt buộc').nullable(),loanTime:yup.number().required('Thời gian vay là bắt buộc').nullable(),firstPaymentDate:yup.string().required('Ngày thanh toán đầu kỳ là bắt buộc')}),__self:this,__source:{fileName:_jsxFileName,lineNumber:250,columnNumber:11}},function(_ref){var _appStore$listRateTyp,_appStore$listRateTyp2,_values$timeInsurence5,_values$timeInsurence6,_values$timeInsurance7,_values$timeInsurance8;var values=_ref.values,setFieldValue=_ref.setFieldValue,errors=_ref.errors,handleSubmit=_ref.handleSubmit,handleChange=_ref.handleChange;return _react.default.createElement(_reactNative.ScrollView,{style:[_CommonStyles.commonStyles.fill,{paddingHorizontal:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:286,columnNumber:15}},_react.default.createElement(_MText.MText,{style:$title2,__self:_this,__source:{fileName:_jsxFileName,lineNumber:289,columnNumber:17}},"Th\xF4ng tin \u0111\u1EC1 ngh\u1ECB kho\u1EA3n vay"),_react.default.createElement(_reactNative.View,{style:$row,__self:_this,__source:{fileName:_jsxFileName,lineNumber:290,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:291,columnNumber:19}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:292,columnNumber:21}},"S\u1ED1 ti\u1EC1n \u0111\u1EC1 ngh\u1ECB vay"),_react.default.createElement(_reactNative.TextInput,{numberOfLines:1,style:[$textInput,{color:'#EF592E',fontSize:16,fontWeight:'500'}],value:(0,_utils.formatMoney)(values.loanAmount),onChangeText:function onChangeText(text){setFieldValue('loanAmount',text.replaceAll(',',''));debounceCall(text);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:293,columnNumber:21}}),errors&&errors.loanAmount&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:310,columnNumber:23}},errors.loanAmount)),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:313,columnNumber:19}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:314,columnNumber:21}},"H\xECnh th\u1EE9c thanh to\xE1n"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){navigation.push(_navigation.ScreenNames.MSelect,{title:'Chọn hình thức thanh toán',data:_AppStore.default.listRateType,callback:function callback(value){var _props$route$params$l3,_props$route6,_props$route6$params,_props$route6$params$;setFieldValue('rateTypeId',value==null?void 0:value.id);_AppStore.default.getLoanTimeByType(value==null?void 0:value.id,(_props$route$params$l3=props==null?void 0:(_props$route6=props.route)==null?void 0:(_props$route6$params=_props$route6.params)==null?void 0:(_props$route6$params$=_props$route6$params.loan)==null?void 0:_props$route6$params$.typeLoan)!=null?_props$route$params$l3:0);setFieldValue('loanTime',null);}});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:315,columnNumber:21}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:'#333333',fontSize:16,fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:332,columnNumber:23}},(_appStore$listRateTyp=_AppStore.default.listRateType)==null?void 0:(_appStore$listRateTyp2=_appStore$listRateTyp.find(function(x){return(x==null?void 0:x.id)===values.rateTypeId;}))==null?void 0:_appStore$listRateTyp2.name),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:348,columnNumber:23}})),errors&&errors.rateTypeId&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:351,columnNumber:23}},errors.rateTypeId))),_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:356,columnNumber:17}},"Th\u1EDDi gian vay"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){navigation.push(_navigation.ScreenNames.MSelect,{title:'Chọn thời gian vay',data:_AppStore.default.listLoanTimeByType,callback:function callback(value){var _values$timeInsurence3,_values$timeInsurence4,_values$timeInsurance3,_values$timeInsurance4;setFieldValue('loanTime',value==null?void 0:value.id);getInfoInsurence(values.loanAmount,value==null?void 0:value.id,values==null?void 0:values.rateTypeId,(_values$timeInsurence3=(_values$timeInsurence4=values.timeInsurenceCustomer)==null?void 0:_values$timeInsurence4.id)!=null?_values$timeInsurence3:0,(_values$timeInsurance3=(_values$timeInsurance4=values.timeInsuranceProperty)==null?void 0:_values$timeInsurance4.id)!=null?_values$timeInsurance3:0);}});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:357,columnNumber:17}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:'#333333',fontSize:16,fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:376,columnNumber:19}},values!=null&&values.loanTime?(values==null?void 0:values.loanTime)+" th\xE1ng":''),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:388,columnNumber:19}})),errors&&errors.loanTime&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:391,columnNumber:19}},errors.loanTime),_react.default.createElement(_MText.MText,{style:[$label,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:394,columnNumber:17}},"Ng\xE0y thanh to\xE1n k\u1EF3 \u0111\u1EA7u"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){navigation.push(_navigation.ScreenNames.MSelect,{title:'Ngày thanh toán kỳ đầu',data:_store.default.listFirstPayment,callback:function callback(value){setFieldValue('firstPaymentDate',value==null?void 0:value.name);}});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:397,columnNumber:17}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:'#333333',fontSize:16,fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:409,columnNumber:19}},values==null?void 0:values.firstPaymentDate),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:421,columnNumber:19}})),errors&&errors.firstPaymentDate&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:424,columnNumber:19}},errors.firstPaymentDate),_react.default.createElement(_reactNative.View,{style:{backgroundColor:'#FFF8F2',borderLeftWidth:1,borderRadius:8,padding:16,borderColor:_theme.color.primary,marginTop:10},__self:_this,__source:{fileName:_jsxFileName,lineNumber:427,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{color:_theme.color.primary,fontWeight:'bold'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:437,columnNumber:19}},"B\u1EA3o hi\u1EC3m"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:10,marginTop:10},__self:_this,__source:{fileName:_jsxFileName,lineNumber:445,columnNumber:19}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setFieldValue('buyInsurenceCustomer',!values.buyInsurenceCustomer);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:453,columnNumber:21}},values.buyInsurenceCustomer===true?_react.default.createElement(_icons.CheckBoxActive,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:462,columnNumber:25}}):_react.default.createElement(_icons.CheckBox,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:464,columnNumber:25}})),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:467,columnNumber:21}},_react.default.createElement(_MText.MText,{style:{color:'#333333',fontSize:12,fontWeight:'bold'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:468,columnNumber:23}},"BH s\u1EE9c kho\u1EBB ng\u01B0\u1EDDi vay"),_react.default.createElement(_MText.MText,{style:{color:'#828282',fontSize:12,marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:477,columnNumber:23}},"S\u1ED1 ti\u1EC1n",' ',_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:485,columnNumber:25}},(0,_utils.formatMoney)(values.moneyInsurenceCustomer)," \u0111"))),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push(_navigation.ScreenNames.MSelect,{title:'Chọn thời gian',data:_AppStore.default.listInsurenceTimeAll,callback:function callback(value){var _values$timeInsurance5,_values$timeInsurance6;setFieldValue('timeInsurenceCustomer',value);getInfoInsurence(values.loanAmount,values.loanTime,values==null?void 0:values.rateTypeId,value==null?void 0:value.id,(_values$timeInsurance5=(_values$timeInsurance6=values.timeInsuranceProperty)==null?void 0:_values$timeInsurance6.id)!=null?_values$timeInsurance5:0);}});},style:{backgroundColor:'#FFFFFF',height:40,borderRadius:6,alignItems:'center',justifyContent:'space-between',flexDirection:'row',paddingHorizontal:10,borderWidth:1,borderColor:'#F5F5F5',width:_reactNative.Dimensions.get('window').width/3},__self:_this,__source:{fileName:_jsxFileName,lineNumber:495,columnNumber:21}},_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:525,columnNumber:23}},(_values$timeInsurence5=(_values$timeInsurence6=values.timeInsurenceCustomer)==null?void 0:_values$timeInsurence6.name)!=null?_values$timeInsurence5:'Chọn thời gian'),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:528,columnNumber:23}}))),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#EFEFEF',marginVertical:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:531,columnNumber:19}}),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:10,marginTop:10},__self:_this,__source:{fileName:_jsxFileName,lineNumber:538,columnNumber:19}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setFieldValue('buyInsuranceProperty',!values.buyInsuranceProperty);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:546,columnNumber:21}},values.buyInsuranceProperty===true?_react.default.createElement(_icons.CheckBoxActive,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:555,columnNumber:25}}):_react.default.createElement(_icons.CheckBox,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:557,columnNumber:25}})),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:560,columnNumber:21}},_react.default.createElement(_MText.MText,{style:{color:'#333333',fontSize:12,fontWeight:'bold'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:561,columnNumber:23}},"BH v\u1EADt ch\u1EA5t"),_react.default.createElement(_MText.MText,{style:{color:'#828282',fontSize:12,marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:570,columnNumber:23}},"S\u1ED1 ti\u1EC1n",' ',_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:578,columnNumber:25}},(0,_utils.formatMoney)(values.moneyInsuranceProperty)," \u0111"))),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push(_navigation.ScreenNames.MSelect,{title:'Chọn thời gian',data:_AppStore.default.listInsurenceTimeAll,callback:function callback(value){var _values$timeInsurence7,_values$timeInsurence8;setFieldValue('timeInsuranceProperty',value);getInfoInsurence(values.loanAmount,values.loanTime,values==null?void 0:values.rateTypeId,(_values$timeInsurence7=values==null?void 0:(_values$timeInsurence8=values.timeInsurenceCustomer)==null?void 0:_values$timeInsurence8.id)!=null?_values$timeInsurence7:0,value==null?void 0:value.id);}});},style:{backgroundColor:'#FFFFFF',height:40,borderRadius:6,alignItems:'center',justifyContent:'space-between',flexDirection:'row',paddingHorizontal:10,borderWidth:1,borderColor:'#F5F5F5',width:_reactNative.Dimensions.get('window').width/3},__self:_this,__source:{fileName:_jsxFileName,lineNumber:588,columnNumber:21}},_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:618,columnNumber:23}},(_values$timeInsurance7=(_values$timeInsurance8=values.timeInsuranceProperty)==null?void 0:_values$timeInsurance8.name)!=null?_values$timeInsurance7:'Chọn thời gian'),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:621,columnNumber:23}}))),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#BDBDBD',marginVertical:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:624,columnNumber:19}}),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',gap:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:631,columnNumber:19}},_react.default.createElement(_icons.Tick2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:632,columnNumber:21}}),_react.default.createElement(_MText.MText,{style:{fontSize:10,color:'#828282'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:633,columnNumber:21}},"Quy\u1EC1n l\u1EE3i b\u1EA3o hi\u1EC3m s\u1EE9c kho\u1EBB l\xEAn t\u1EDBi 100% t\u1EEB B\u1EA3o Minh",'\n',"(Tai n\u1EA1n, th\u01B0\u01A1ng t\u1EADt,...)")),_react.default.createElement(_reactNative.View,{style:{marginTop:8,flexDirection:'row',gap:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:644,columnNumber:19}},_react.default.createElement(_icons.Tick2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:645,columnNumber:21}}),_react.default.createElement(_MText.MText,{style:{fontSize:10,color:'#828282'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:646,columnNumber:21}},"Quy\u1EC1n l\u1EE3i b\u1EA3o hi\u1EC3m v\u1EADt ch\u1EA5t 100% t\u1EEB B\u1EA3o Minh"))));}),_react.default.createElement(_MButton.default,{onPress:function onPress(){var _formRef$current6;(_formRef$current6=formRef.current)==null?void 0:_formRef$current6.handleSubmit();},style:{marginVertical:24,marginHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:1033,columnNumber:11}},_react.default.createElement(_reactNativeLinearGradient.default,{start:{x:1,y:0},end:{x:0,y:1},style:{height:40,marginVertical:16,borderRadius:30,alignItems:'center',justifyContent:'center'},colors:['#FF7A00','#EF4123'],__self:this,__source:{fileName:_jsxFileName,lineNumber:1042,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:1054,columnNumber:15}},"Ti\u1EBFp t\u1EE5c"))),_react.default.createElement(_keyboardspace.default,{__self:this,__source:{fileName:_jsxFileName,lineNumber:1064,columnNumber:11}}))),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:1067,columnNumber:7}}));}var $select={flexDirection:'row',height:40,alignItems:'center',paddingHorizontal:8,borderWidth:1,borderRadius:4,borderColor:'#E0E0E0'};var $row={flexDirection:'row',marginBottom:16,gap:16};var $textInput={borderWidth:1,borderRadius:4,borderColor:'#E0E0E0',height:40,paddingHorizontal:8,fontFamily:'BeVietnamPro-Medium'};var $label={fontSize:14,color:'#333333',paddingBottom:5};var $title2={fontSize:16,fontWeight:'bold',color:'#333333',paddingBottom:10,marginTop:6};var $title={fontSize:16,fontWeight:'bold',color:'#333333',position:'absolute',left:0,right:0,textAlign:'center'};var $h={backgroundColor:'#EF592E',position:'absolute',height:30,width:'100%'};var $bg={borderTopLeftRadius:30,borderTopRightRadius:30,backgroundColor:'white',flex:1};var $error={color:'#EB5757',fontSize:14,fontStyle:'italic',fontFamily:'BeVietnamPro-Thin',fontWeight:'300',marginTop:5};
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=ReviewLoan;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _CommonStyles=require("../CommonStyles");var _native=require("@react-navigation/native");var _svgs=require("../../assets/svgs");var _MText=require("../../components/MText");var _formik=require("formik");var _icons=require("../../assets/icons");var _theme=require("../../theme");var _utils=require("../../utils");var _AppStore=_interopRequireDefault(require("../../AppStore"));var _navigation=require("../../navigation");var _keyboardspace=_interopRequireDefault(require("../../components/keyboardspace"));var _MButton=_interopRequireDefault(require("../../components/MButton"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _api=require("../../services/api");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _lodash=require("lodash");var _moment=_interopRequireDefault(require("moment"));var _store=_interopRequireDefault(require("./store"));var yup=_interopRequireWildcard(require("yup"));var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/screens/toan-trinh-so/ReviewLoan.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}function ReviewLoan(props){var _this=this;var navigation=(0,_native.useNavigation)();var formRef=(0,_react.useRef)(null);var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),isLoading=_useState2[0],setIsLoading=_useState2[1];var onSubmit=function _callee(values){var _props$route,_props$route$params,_props$route$params$l,_values$timeInsurence,_values$timeInsurence2,_values$timeInsurance,_values$timeInsurance2,body,response,_response$data,_response$data$meta,_props$route2,_props$route2$params,_response$data2,_response$data2$meta;return _regenerator.default.async(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.prev=0;setIsLoading(true);body={loanBriefId:(_props$route=props.route)==null?void 0:(_props$route$params=_props$route.params)==null?void 0:(_props$route$params$l=_props$route$params.loan)==null?void 0:_props$route$params$l.id,loanAmount:Number(values.loanAmount),rateTypeId:values.rateTypeId,loanTime:values.loanTime,firstPaymentDate:(0,_moment.default)(values.firstPaymentDate,'DD/MM/YYYY').format('YYYY-MM-DD'),buyInsurenceCustomer:values==null?void 0:values.buyInsurenceCustomer,buyInsuranceProperty:values==null?void 0:values.buyInsuranceProperty,timeInsurenceCustomer:(_values$timeInsurence=values==null?void 0:(_values$timeInsurence2=values.timeInsurenceCustomer)==null?void 0:_values$timeInsurence2.id)!=null?_values$timeInsurence:0,timeInsuranceProperty:(_values$timeInsurance=values==null?void 0:(_values$timeInsurance2=values.timeInsuranceProperty)==null?void 0:_values$timeInsurance2.id)!=null?_values$timeInsurance:0,moneyInsurenceCustomer:values.moneyInsurenceCustomer,moneyInsuranceProperty:values.moneyInsuranceProperty};_context.next=5;return _regenerator.default.awrap(_api.Api.getInstance().updateInfoLoanV2(body));case 5:response=_context.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data=response.data)==null?void 0:(_response$data$meta=_response$data.meta)==null?void 0:_response$data$meta.errorCode)===200){navigation.push(_navigation.ScreenNames.OCR,{loan:(_props$route2=props.route)==null?void 0:(_props$route2$params=_props$route2.params)==null?void 0:_props$route2$params.loan,front:true});}else{_reactNative.Alert.alert('Thông báo',(_response$data2=response.data)==null?void 0:(_response$data2$meta=_response$data2.meta)==null?void 0:_response$data2$meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');}_context.next=14;break;case 10:_context.prev=10;_context.t0=_context["catch"](0);setIsLoading(false);console.log(_context.t0);case 14:case"end":return _context.stop();}},null,null,[[0,10]],Promise);};var getData=function _callee2(){var _props$route3,_props$route3$params,_props$route3$params$,response,_response$data3,_response$data$data$l,_response$data4,_response$data4$data,_formatDDMMYYY,_response$data5,_response$data5$data,_response$data$data$r,_response$data6,_response$data6$data,_response$data7,_response$data7$data,_response$data$data$l2,_response$data9,_response$data9$data,_response$data$data$m,_response$data10,_response$data10$data,_response$data$data$m2,_response$data11,_response$data11$data,_response$data12,_response$data12$data,_response$data13,_response$data13$data,_response$data14,_response$data14$data,_response$data15,_response$data15$data,_formRef$current,_formRef$current2,_response$data8,_response$data8$data,_props$route$params$l2,_props$route4,_props$route4$params,_props$route4$params$,timeInsurenceCustomer,timeInsuranceProperty;return _regenerator.default.async(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.prev=0;setIsLoading(true);_context2.next=4;return _regenerator.default.awrap(_api.Api.getInstance().getInfoLoanAutoDEV2((_props$route3=props.route)==null?void 0:(_props$route3$params=_props$route3.params)==null?void 0:(_props$route3$params$=_props$route3$params.loan)==null?void 0:_props$route3$params$.id));case 4:response=_context2.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data3=response.data)==null?void 0:_response$data3.meta.errorCode)===200){formRef.current.setFieldValue('loanAmount',(_response$data$data$l=response==null?void 0:(_response$data4=response.data)==null?void 0:(_response$data4$data=_response$data4.data)==null?void 0:_response$data4$data.loanAmount)!=null?_response$data$data$l:0);formRef.current.setFieldValue('firstPaymentDate',(_formatDDMMYYY=(0,_utils.formatDDMMYYY)(response==null?void 0:(_response$data5=response.data)==null?void 0:(_response$data5$data=_response$data5.data)==null?void 0:_response$data5$data.firstPaymentDate))!=null?_formatDDMMYYY:'');formRef.current.setFieldValue('rateTypeId',(_response$data$data$r=response==null?void 0:(_response$data6=response.data)==null?void 0:(_response$data6$data=_response$data6.data)==null?void 0:_response$data6$data.rateTypeId)!=null?_response$data$data$r:null);if(response!=null&&(_response$data7=response.data)!=null&&(_response$data7$data=_response$data7.data)!=null&&_response$data7$data.rateTypeId){_AppStore.default.getLoanTimeByType(response==null?void 0:(_response$data8=response.data)==null?void 0:(_response$data8$data=_response$data8.data)==null?void 0:_response$data8$data.rateTypeId,(_props$route$params$l2=(_props$route4=props.route)==null?void 0:(_props$route4$params=_props$route4.params)==null?void 0:(_props$route4$params$=_props$route4$params.loan)==null?void 0:_props$route4$params$.typeLoan)!=null?_props$route$params$l2:0);}formRef.current.setFieldValue('loanTime',(_response$data$data$l2=response==null?void 0:(_response$data9=response.data)==null?void 0:(_response$data9$data=_response$data9.data)==null?void 0:_response$data9$data.loanTime)!=null?_response$data$data$l2:null);formRef.current.setFieldValue('moneyInsuranceProperty',(_response$data$data$m=response==null?void 0:(_response$data10=response.data)==null?void 0:(_response$data10$data=_response$data10.data)==null?void 0:_response$data10$data.moneyInsuranceProperty)!=null?_response$data$data$m:null);formRef.current.setFieldValue('moneyInsurenceCustomer',(_response$data$data$m2=response==null?void 0:(_response$data11=response.data)==null?void 0:(_response$data11$data=_response$data11.data)==null?void 0:_response$data11$data.moneyInsurenceCustomer)!=null?_response$data$data$m2:null);formRef.current.setFieldValue('buyInsuranceProperty',response!=null&&(_response$data12=response.data)!=null&&(_response$data12$data=_response$data12.data)!=null&&_response$data12$data.buyInsuranceProperty?response==null?void 0:(_response$data13=response.data)==null?void 0:(_response$data13$data=_response$data13.data)==null?void 0:_response$data13$data.buyInsuranceProperty:false);formRef.current.setFieldValue('buyInsurenceCustomer',response!=null&&(_response$data14=response.data)!=null&&(_response$data14$data=_response$data14.data)!=null&&_response$data14$data.buyInsurenceCustomer?response==null?void 0:(_response$data15=response.data)==null?void 0:(_response$data15$data=_response$data15.data)==null?void 0:_response$data15$data.buyInsurenceCustomer:false);timeInsurenceCustomer=_AppStore.default.listInsurenceTimeAll.find(function(x){var _response$data$data;return x.id===((_response$data$data=response.data.data)==null?void 0:_response$data$data.timeInsurenceCustomer);});(_formRef$current=formRef.current)==null?void 0:_formRef$current.setFieldValue('timeInsurenceCustomer',timeInsurenceCustomer);timeInsuranceProperty=_AppStore.default.listInsurenceTimeAll.find(function(x){var _response$data$data2;return x.id===((_response$data$data2=response.data.data)==null?void 0:_response$data$data2.timeInsuranceProperty);});(_formRef$current2=formRef.current)==null?void 0:_formRef$current2.setFieldValue('timeInsuranceProperty',timeInsuranceProperty);}else{}}_context2.next=13;break;case 9:_context2.prev=9;_context2.t0=_context2["catch"](0);setIsLoading(false);console.log(_context2.t0);case 13:case"end":return _context2.stop();}},null,null,[[0,9]],Promise);};(0,_react.useEffect)(function(){var _props$route5,_props$route5$params,_props$route5$params$;getData();_store.default.getFirstPayment((_props$route5=props.route)==null?void 0:(_props$route5$params=_props$route5.params)==null?void 0:(_props$route5$params$=_props$route5$params.loan)==null?void 0:_props$route5$params$.id);_AppStore.default.getRateTypeAll();},[]);var getInfoInsurence=function _callee3(loanAmount,loanTime,rateTypeId,timeInsurenceCustomer,timeInsuranceProperty){var _props$route$params2,_props$route$params2$,response,_response$data16,_response$data16$meta,_formRef$current3,_response$data$data3,_formRef$current4,_response$data$data4,_formRef$current5,_response$data$data5,_response$data17,_response$data17$meta;return _regenerator.default.async(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.prev=0;setIsLoading(true);_context3.next=4;return _regenerator.default.awrap(_api.Api.getInstance().getInfoInsurence2((_props$route$params2=props.route.params)==null?void 0:(_props$route$params2$=_props$route$params2.loan)==null?void 0:_props$route$params2$.id,loanAmount,loanTime,rateTypeId,timeInsurenceCustomer,timeInsuranceProperty));case 4:response=_context3.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data16=response.data)==null?void 0:(_response$data16$meta=_response$data16.meta)==null?void 0:_response$data16$meta.errorCode)===200){(_formRef$current3=formRef.current)==null?void 0:_formRef$current3.setFieldValue('moneyInsurenceCustomer',(_response$data$data3=response.data.data)==null?void 0:_response$data$data3.moneyInsurenceCustomer);(_formRef$current4=formRef.current)==null?void 0:_formRef$current4.setFieldValue('moneyInsuranceProperty',(_response$data$data4=response.data.data)==null?void 0:_response$data$data4.moneyInsuranceProperty);(_formRef$current5=formRef.current)==null?void 0:_formRef$current5.setFieldValue('moneyInsurranceHospitalization',(_response$data$data5=response.data.data)==null?void 0:_response$data$data5.moneyInsurranceHospitalization);}else{_reactNative.Alert.alert('Thông báo',(_response$data17=response.data)==null?void 0:(_response$data17$meta=_response$data17.meta)==null?void 0:_response$data17$meta.errorMessage);}}else{}_context3.next=12;break;case 9:_context3.prev=9;_context3.t0=_context3["catch"](0);setIsLoading(false);case 12:case"end":return _context3.stop();}},null,null,[[0,9]],Promise);};var debounceCall=(0,_react.useCallback)((0,_lodash.debounce)(function(textParam){var _formRef$current$valu,_formRef$current$valu2,_formRef$current$valu3,_formRef$current$valu4,_formRef$current$valu5;getInfoInsurence(Number(textParam.replace(/\D/g,'')),formRef.current.values.loanTime,(_formRef$current$valu=formRef.current.values)==null?void 0:_formRef$current$valu.rateTypeId,(_formRef$current$valu2=(_formRef$current$valu3=formRef.current.values.timeInsurenceCustomer)==null?void 0:_formRef$current$valu3.id)!=null?_formRef$current$valu2:0,(_formRef$current$valu4=(_formRef$current$valu5=formRef.current.values.timeInsuranceProperty)==null?void 0:_formRef$current$valu5.id)!=null?_formRef$current$valu4:0);},2000),[]);return _react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:224,columnNumber:5}},_react.default.createElement(_MHeader.default,{title:"Vay Online 24/7",__self:this,__source:{fileName:_jsxFileName,lineNumber:225,columnNumber:7}}),_react.default.createElement(_reactNative.View,{style:_CommonStyles.commonStyles.fill,__self:this,__source:{fileName:_jsxFileName,lineNumber:226,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:$h,__self:this,__source:{fileName:_jsxFileName,lineNumber:227,columnNumber:9}}),_react.default.createElement(_reactNative.View,{style:$bg,__self:this,__source:{fileName:_jsxFileName,lineNumber:228,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{paddingVertical:10,flexDirection:'row',alignItems:'center',paddingHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:229,columnNumber:11}},_react.default.createElement(_reactNative.TouchableOpacity,{style:{zIndex:1000},onPress:function onPress(){navigation.navigate(_navigation.ScreenNames.Main);},__self:this,__source:{fileName:_jsxFileName,lineNumber:237,columnNumber:13}},_react.default.createElement(_svgs.IconBack,{__self:this,__source:{fileName:_jsxFileName,lineNumber:245,columnNumber:15}})),_react.default.createElement(_MText.MText,{style:$title,__self:this,__source:{fileName:_jsxFileName,lineNumber:247,columnNumber:13}},"Th\xF4ng tin chi ti\u1EBFt")),_react.default.createElement(_formik.Formik,{validateOnBlur:false,validateOnChange:false,innerRef:formRef,onSubmit:onSubmit,initialValues:{loanAmount:'',rateTypeId:null,loanTime:null,firstPaymentDate:'',buyInsurenceCustomer:false,buyInsuranceProperty:false,timeInsurenceCustomer:null,timeInsuranceProperty:null,moneyInsurenceCustomer:null,moneyInsuranceProperty:null},validationSchema:yup.object().shape({loanAmount:yup.string().required('Số tiền là bắt buộc'),rateTypeId:yup.number().required('HTTT là bắt buộc').nullable(),loanTime:yup.number().required('Thời gian vay là bắt buộc').nullable(),firstPaymentDate:yup.string().required('Ngày thanh toán đầu kỳ là bắt buộc')}),__self:this,__source:{fileName:_jsxFileName,lineNumber:250,columnNumber:11}},function(_ref){var _appStore$listRateTyp,_appStore$listRateTyp2,_values$timeInsurence5,_values$timeInsurence6,_values$timeInsurance7,_values$timeInsurance8;var values=_ref.values,setFieldValue=_ref.setFieldValue,errors=_ref.errors,handleSubmit=_ref.handleSubmit,handleChange=_ref.handleChange;return _react.default.createElement(_reactNative.ScrollView,{style:[_CommonStyles.commonStyles.fill,{paddingHorizontal:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:286,columnNumber:15}},_react.default.createElement(_MText.MText,{style:$title2,__self:_this,__source:{fileName:_jsxFileName,lineNumber:289,columnNumber:17}},"Th\xF4ng tin \u0111\u1EC1 ngh\u1ECB kho\u1EA3n vay"),_react.default.createElement(_reactNative.View,{style:$row,__self:_this,__source:{fileName:_jsxFileName,lineNumber:290,columnNumber:17}},_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:291,columnNumber:19}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:292,columnNumber:21}},"S\u1ED1 ti\u1EC1n \u0111\u1EC1 ngh\u1ECB vay"),_react.default.createElement(_reactNative.TextInput,{numberOfLines:1,style:[$textInput,{color:'#EF592E',fontSize:16,fontWeight:'500'}],value:(0,_utils.formatMoney)(values.loanAmount),onChangeText:function onChangeText(text){setFieldValue('loanAmount',text.replaceAll(',',''));debounceCall(text);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:293,columnNumber:21}}),errors&&errors.loanAmount&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:310,columnNumber:23}},errors.loanAmount)),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:313,columnNumber:19}},_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:314,columnNumber:21}},"H\xECnh th\u1EE9c thanh to\xE1n"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){navigation.push(_navigation.ScreenNames.MSelect,{title:'Chọn hình thức thanh toán',data:_AppStore.default.listRateType,callback:function callback(value){var _props$route$params$l3,_props$route6,_props$route6$params,_props$route6$params$;setFieldValue('rateTypeId',value==null?void 0:value.id);_AppStore.default.getLoanTimeByType(value==null?void 0:value.id,(_props$route$params$l3=props==null?void 0:(_props$route6=props.route)==null?void 0:(_props$route6$params=_props$route6.params)==null?void 0:(_props$route6$params$=_props$route6$params.loan)==null?void 0:_props$route6$params$.typeLoan)!=null?_props$route$params$l3:0);setFieldValue('loanTime',null);}});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:315,columnNumber:21}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:'#333333',fontSize:16,fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:332,columnNumber:23}},(_appStore$listRateTyp=_AppStore.default.listRateType)==null?void 0:(_appStore$listRateTyp2=_appStore$listRateTyp.find(function(x){return(x==null?void 0:x.id)===values.rateTypeId;}))==null?void 0:_appStore$listRateTyp2.name),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:348,columnNumber:23}})),errors&&errors.rateTypeId&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:351,columnNumber:23}},errors.rateTypeId))),_react.default.createElement(_MText.MText,{style:$label,__self:_this,__source:{fileName:_jsxFileName,lineNumber:356,columnNumber:17}},"Th\u1EDDi gian vay"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){navigation.push(_navigation.ScreenNames.MSelect,{title:'Chọn thời gian vay',data:_AppStore.default.listLoanTimeByType,callback:function callback(value){var _values$timeInsurence3,_values$timeInsurence4,_values$timeInsurance3,_values$timeInsurance4;setFieldValue('loanTime',value==null?void 0:value.id);getInfoInsurence(values.loanAmount,value==null?void 0:value.id,values==null?void 0:values.rateTypeId,(_values$timeInsurence3=(_values$timeInsurence4=values.timeInsurenceCustomer)==null?void 0:_values$timeInsurence4.id)!=null?_values$timeInsurence3:0,(_values$timeInsurance3=(_values$timeInsurance4=values.timeInsuranceProperty)==null?void 0:_values$timeInsurance4.id)!=null?_values$timeInsurance3:0);}});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:357,columnNumber:17}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:'#333333',fontSize:16,fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:376,columnNumber:19}},values!=null&&values.loanTime?(values==null?void 0:values.loanTime)+" th\xE1ng":''),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:388,columnNumber:19}})),errors&&errors.loanTime&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:391,columnNumber:19}},errors.loanTime),_react.default.createElement(_MText.MText,{style:[$label,{marginTop:16}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:394,columnNumber:17}},"Ng\xE0y thanh to\xE1n k\u1EF3 \u0111\u1EA7u"),_react.default.createElement(_reactNative.TouchableOpacity,{style:$select,onPress:function onPress(){navigation.push(_navigation.ScreenNames.MSelect,{title:'Ngày thanh toán kỳ đầu',data:_store.default.listFirstPayment,callback:function callback(value){setFieldValue('firstPaymentDate',value==null?void 0:value.name);}});},__self:_this,__source:{fileName:_jsxFileName,lineNumber:397,columnNumber:17}},_react.default.createElement(_MText.MText,{numberOfLines:1,style:{color:'#333333',fontSize:16,fontWeight:'500',flex:1,fontFamily:'BeVietnamPro-Medium'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:409,columnNumber:19}},values==null?void 0:values.firstPaymentDate),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:421,columnNumber:19}})),errors&&errors.firstPaymentDate&&_react.default.createElement(_MText.MText,{style:$error,__self:_this,__source:{fileName:_jsxFileName,lineNumber:424,columnNumber:19}},errors.firstPaymentDate),_react.default.createElement(_reactNative.View,{style:{backgroundColor:'#FFF8F2',borderLeftWidth:1,borderRadius:8,padding:16,borderColor:_theme.color.primary,marginTop:10},__self:_this,__source:{fileName:_jsxFileName,lineNumber:427,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{color:_theme.color.primary,fontWeight:'bold'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:437,columnNumber:19}},"B\u1EA3o hi\u1EC3m"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:10,marginTop:10},__self:_this,__source:{fileName:_jsxFileName,lineNumber:445,columnNumber:19}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setFieldValue('buyInsurenceCustomer',!values.buyInsurenceCustomer);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:453,columnNumber:21}},values.buyInsurenceCustomer===true?_react.default.createElement(_icons.CheckBoxActive,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:462,columnNumber:25}}):_react.default.createElement(_icons.CheckBox,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:464,columnNumber:25}})),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:467,columnNumber:21}},_react.default.createElement(_MText.MText,{style:{color:'#333333',fontSize:12,fontWeight:'bold'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:468,columnNumber:23}},"BH s\u1EE9c kho\u1EBB ng\u01B0\u1EDDi vay"),_react.default.createElement(_MText.MText,{style:{color:'#828282',fontSize:12,marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:477,columnNumber:23}},"S\u1ED1 ti\u1EC1n",' ',_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:485,columnNumber:25}},(0,_utils.formatMoney)(values.moneyInsurenceCustomer)," \u0111"))),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push(_navigation.ScreenNames.MSelect,{title:'Chọn thời gian',data:_AppStore.default.listInsurenceTimeAll,callback:function callback(value){var _values$timeInsurance5,_values$timeInsurance6;setFieldValue('timeInsurenceCustomer',value);getInfoInsurence(values.loanAmount,values.loanTime,values==null?void 0:values.rateTypeId,value==null?void 0:value.id,(_values$timeInsurance5=(_values$timeInsurance6=values.timeInsuranceProperty)==null?void 0:_values$timeInsurance6.id)!=null?_values$timeInsurance5:0);}});},style:{backgroundColor:'#FFFFFF',height:40,borderRadius:6,alignItems:'center',justifyContent:'space-between',flexDirection:'row',paddingHorizontal:10,borderWidth:1,borderColor:'#F5F5F5',width:_reactNative.Dimensions.get('window').width/3},__self:_this,__source:{fileName:_jsxFileName,lineNumber:495,columnNumber:21}},_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:525,columnNumber:23}},(_values$timeInsurence5=(_values$timeInsurence6=values.timeInsurenceCustomer)==null?void 0:_values$timeInsurence6.name)!=null?_values$timeInsurence5:'Chọn thời gian'),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:528,columnNumber:23}}))),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#EFEFEF',marginVertical:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:531,columnNumber:19}}),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:10,marginTop:10},__self:_this,__source:{fileName:_jsxFileName,lineNumber:538,columnNumber:19}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){setFieldValue('buyInsuranceProperty',!values.buyInsuranceProperty);},__self:_this,__source:{fileName:_jsxFileName,lineNumber:546,columnNumber:21}},values.buyInsuranceProperty===true?_react.default.createElement(_icons.CheckBoxActive,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:555,columnNumber:25}}):_react.default.createElement(_icons.CheckBox,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:557,columnNumber:25}})),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:_this,__source:{fileName:_jsxFileName,lineNumber:560,columnNumber:21}},_react.default.createElement(_MText.MText,{style:{color:'#333333',fontSize:12,fontWeight:'bold'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:561,columnNumber:23}},"BH v\u1EADt ch\u1EA5t"),_react.default.createElement(_MText.MText,{style:{color:'#828282',fontSize:12,marginTop:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:570,columnNumber:23}},"S\u1ED1 ti\u1EC1n",' ',_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:578,columnNumber:25}},(0,_utils.formatMoney)(values.moneyInsuranceProperty)," \u0111"))),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.push(_navigation.ScreenNames.MSelect,{title:'Chọn thời gian',data:_AppStore.default.listInsurenceTimeAll,callback:function callback(value){var _values$timeInsurence7,_values$timeInsurence8;setFieldValue('timeInsuranceProperty',value);getInfoInsurence(values.loanAmount,values.loanTime,values==null?void 0:values.rateTypeId,(_values$timeInsurence7=values==null?void 0:(_values$timeInsurence8=values.timeInsurenceCustomer)==null?void 0:_values$timeInsurence8.id)!=null?_values$timeInsurence7:0,value==null?void 0:value.id);}});},style:{backgroundColor:'#FFFFFF',height:40,borderRadius:6,alignItems:'center',justifyContent:'space-between',flexDirection:'row',paddingHorizontal:10,borderWidth:1,borderColor:'#F5F5F5',width:_reactNative.Dimensions.get('window').width/3},__self:_this,__source:{fileName:_jsxFileName,lineNumber:588,columnNumber:21}},_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:618,columnNumber:23}},(_values$timeInsurance7=(_values$timeInsurance8=values.timeInsuranceProperty)==null?void 0:_values$timeInsurance8.name)!=null?_values$timeInsurance7:'Chọn thời gian'),_react.default.createElement(_icons.DropDown2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:621,columnNumber:23}}))),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'#BDBDBD',marginVertical:8},__self:_this,__source:{fileName:_jsxFileName,lineNumber:624,columnNumber:19}}),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',gap:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:631,columnNumber:19}},_react.default.createElement(_icons.Tick2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:632,columnNumber:21}}),_react.default.createElement(_MText.MText,{style:{fontSize:10,color:'#828282'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:633,columnNumber:21}},"Quy\u1EC1n l\u1EE3i b\u1EA3o hi\u1EC3m s\u1EE9c kho\u1EBB l\xEAn t\u1EDBi 100% t\u1EEB B\u1EA3o Minh",'\n',"(Tai n\u1EA1n, th\u01B0\u01A1ng t\u1EADt,...)")),_react.default.createElement(_reactNative.View,{style:{marginTop:8,flexDirection:'row',gap:5},__self:_this,__source:{fileName:_jsxFileName,lineNumber:644,columnNumber:19}},_react.default.createElement(_icons.Tick2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:645,columnNumber:21}}),_react.default.createElement(_MText.MText,{style:{fontSize:10,color:'#828282'},__self:_this,__source:{fileName:_jsxFileName,lineNumber:646,columnNumber:21}},"Quy\u1EC1n l\u1EE3i b\u1EA3o hi\u1EC3m v\u1EADt ch\u1EA5t 100% t\u1EEB B\u1EA3o Minh"))));}),_react.default.createElement(_MButton.default,{onPress:function onPress(){var _formRef$current6;(_formRef$current6=formRef.current)==null?void 0:_formRef$current6.handleSubmit();},style:{marginVertical:24,marginHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:659,columnNumber:11}},_react.default.createElement(_reactNativeLinearGradient.default,{start:{x:1,y:0},end:{x:0,y:1},style:{height:40,marginVertical:16,borderRadius:30,alignItems:'center',justifyContent:'center'},colors:['#FF7A00','#EF4123'],__self:this,__source:{fileName:_jsxFileName,lineNumber:668,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:680,columnNumber:15}},"Ti\u1EBFp t\u1EE5c"))),_react.default.createElement(_keyboardspace.default,{__self:this,__source:{fileName:_jsxFileName,lineNumber:690,columnNumber:11}}))),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:693,columnNumber:7}}));}var $select={flexDirection:'row',height:40,alignItems:'center',paddingHorizontal:8,borderWidth:1,borderRadius:4,borderColor:'#E0E0E0'};var $row={flexDirection:'row',marginBottom:16,gap:16};var $textInput={borderWidth:1,borderRadius:4,borderColor:'#E0E0E0',height:40,paddingHorizontal:8,fontFamily:'BeVietnamPro-Medium'};var $label={fontSize:14,color:'#333333',paddingBottom:5};var $title2={fontSize:16,fontWeight:'bold',color:'#333333',paddingBottom:10,marginTop:6};var $title={fontSize:16,fontWeight:'bold',color:'#333333',position:'absolute',left:0,right:0,textAlign:'center'};var $h={backgroundColor:'#EF592E',position:'absolute',height:30,width:'100%'};var $bg={borderTopLeftRadius:30,borderTopRightRadius:30,backgroundColor:'white',flex:1};var $error={color:'#EB5757',fontSize:14,fontStyle:'italic',fontFamily:'BeVietnamPro-Thin',fontWeight:'300',marginTop:5};
2
2
  //# sourceMappingURL=ReviewLoan.js.map