react-native-timacare 3.3.56-alert → 3.3.58-cccd

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/lib/commonjs/assets/icons/index.js +1 -1
  2. package/lib/commonjs/assets/icons/index.js.flow +2 -0
  3. package/lib/commonjs/assets/icons/index.js.map +1 -1
  4. package/lib/commonjs/assets/icons/modal_confirm.svg +5 -5
  5. package/lib/commonjs/assets/icons/modal_notice.svg +32 -32
  6. package/lib/commonjs/assets/icons/modal_success.svg +26 -26
  7. package/lib/commonjs/assets/icons/modal_warning.svg +21 -21
  8. package/lib/commonjs/assets/icons/user_security.svg +10 -0
  9. package/lib/commonjs/assets/tts/Frame1000011947.png +0 -0
  10. package/lib/commonjs/components/AlertLoan.js +1 -1
  11. package/lib/commonjs/components/AlertLoan.js.flow +1 -1
  12. package/lib/commonjs/components/AlertLoan.js.map +1 -1
  13. package/lib/commonjs/components/AppModal.js +1 -1
  14. package/lib/commonjs/components/AppModal.js.flow +40 -2
  15. package/lib/commonjs/components/AppModal.js.map +1 -1
  16. package/lib/commonjs/components/ItemTimaOne.js +1 -1
  17. package/lib/commonjs/components/ItemTimaOne.js.flow +1 -1
  18. package/lib/commonjs/components/ItemTimaOne.js.map +1 -1
  19. package/lib/commonjs/components/ModalNotification/AlertGlobal.js +1 -1
  20. package/lib/commonjs/components/ModalNotification/AlertGlobal.js.flow +92 -33
  21. package/lib/commonjs/components/ModalNotification/AlertGlobal.js.map +1 -1
  22. package/lib/commonjs/components/ModalNotification/index.js +1 -1
  23. package/lib/commonjs/components/ModalNotification/index.js.flow +7 -0
  24. package/lib/commonjs/components/ModalNotification/index.js.map +1 -1
  25. package/lib/commonjs/components/ModalOptionLoan.js +1 -1
  26. package/lib/commonjs/components/ModalOptionLoan.js.flow +1 -1
  27. package/lib/commonjs/components/ModalOptionLoan.js.map +1 -1
  28. package/lib/commonjs/components/ModalOptionLoanDigital.js +1 -1
  29. package/lib/commonjs/components/ModalOptionLoanDigital.js.flow +1 -1
  30. package/lib/commonjs/components/ModalOptionLoanDigital.js.map +1 -1
  31. package/lib/commonjs/components/modalStack.js +2 -0
  32. package/lib/commonjs/components/modalStack.js.flow +47 -0
  33. package/lib/commonjs/components/modalStack.js.map +1 -0
  34. package/lib/commonjs/navigation/primary-navigator.js +1 -1
  35. package/lib/commonjs/navigation/primary-navigator.js.flow +7 -0
  36. package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
  37. package/lib/commonjs/screens/NFC/OcrStart.js +2 -0
  38. package/lib/commonjs/screens/NFC/OcrStart.js.flow +171 -0
  39. package/lib/commonjs/screens/NFC/OcrStart.js.map +1 -0
  40. package/lib/commonjs/screens/NFC/ScanMRZ.js +2 -0
  41. package/lib/commonjs/screens/NFC/ScanMRZ.js.flow +563 -0
  42. package/lib/commonjs/screens/NFC/ScanMRZ.js.map +1 -0
  43. package/lib/commonjs/screens/camera/CCCDCameraScreen.js +1 -1
  44. package/lib/commonjs/screens/camera/CCCDCameraScreen.js.flow +203 -133
  45. package/lib/commonjs/screens/camera/CCCDCameraScreen.js.map +1 -1
  46. package/lib/commonjs/screens/camera/index.js +1 -1
  47. package/lib/commonjs/screens/camera/index.js.flow +1 -1
  48. package/lib/commonjs/screens/camera/index.js.map +1 -1
  49. package/lib/commonjs/screens/detail-loan/PaymentInfo.js +1 -1
  50. package/lib/commonjs/screens/detail-loan/PaymentInfo.js.flow +1 -1
  51. package/lib/commonjs/screens/detail-loan/PaymentInfo.js.map +1 -1
  52. package/lib/commonjs/screens/detail-loan/ShowQrCode.js +1 -1
  53. package/lib/commonjs/screens/detail-loan/ShowQrCode.js.flow +1 -1
  54. package/lib/commonjs/screens/detail-loan/ShowQrCode.js.map +1 -1
  55. package/lib/commonjs/screens/digital-lending/Step6.js +1 -1
  56. package/lib/commonjs/screens/digital-lending/Step6.js.flow +1 -1
  57. package/lib/commonjs/screens/digital-lending/Step6.js.map +1 -1
  58. package/lib/commonjs/screens/eSign/index.js +1 -1
  59. package/lib/commonjs/screens/eSign/index.js.flow +1 -1
  60. package/lib/commonjs/screens/eSign/index.js.map +1 -1
  61. package/lib/commonjs/screens/home/DigitalTopupItem.js +1 -1
  62. package/lib/commonjs/screens/home/DigitalTopupItem.js.flow +1 -1
  63. package/lib/commonjs/screens/home/DigitalTopupItem.js.map +1 -1
  64. package/lib/commonjs/screens/home/ItemMotoBikeLoan.js +1 -1
  65. package/lib/commonjs/screens/home/ItemMotoBikeLoan.js.flow +1 -1
  66. package/lib/commonjs/screens/home/ItemMotoBikeLoan.js.map +1 -1
  67. package/lib/commonjs/screens/home/index.js +1 -1
  68. package/lib/commonjs/screens/home/index.js.flow +8 -113
  69. package/lib/commonjs/screens/home/index.js.map +1 -1
  70. package/lib/commonjs/screens/nationalID/index.js +1 -1
  71. package/lib/commonjs/screens/nationalID/index.js.flow +123 -218
  72. package/lib/commonjs/screens/nationalID/index.js.map +1 -1
  73. package/lib/commonjs/screens/nationalIDBack/index.js +1 -1
  74. package/lib/commonjs/screens/nationalIDBack/index.js.flow +129 -209
  75. package/lib/commonjs/screens/nationalIDBack/index.js.map +1 -1
  76. package/lib/commonjs/screens/payment-evidence/ModalGuideline.js +1 -1
  77. package/lib/commonjs/screens/payment-evidence/ModalGuideline.js.flow +1 -1
  78. package/lib/commonjs/screens/payment-evidence/ModalGuideline.js.map +1 -1
  79. package/lib/commonjs/screens/toan-trinh-so/OCR.js +1 -1
  80. package/lib/commonjs/screens/toan-trinh-so/OCR.js.flow +270 -556
  81. package/lib/commonjs/screens/toan-trinh-so/OCR.js.map +1 -1
  82. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js +1 -1
  83. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.flow +1 -1
  84. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.map +1 -1
  85. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js +1 -1
  86. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.flow +226 -288
  87. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
  88. package/lib/commonjs/utils/cameraCrop.js +2 -0
  89. package/lib/commonjs/utils/cameraCrop.js.flow +96 -0
  90. package/lib/commonjs/utils/cameraCrop.js.map +1 -0
  91. package/lib/module/assets/icons/index.js +1 -1
  92. package/lib/module/assets/icons/index.js.map +1 -1
  93. package/lib/module/assets/icons/modal_confirm.svg +5 -5
  94. package/lib/module/assets/icons/modal_notice.svg +32 -32
  95. package/lib/module/assets/icons/modal_success.svg +26 -26
  96. package/lib/module/assets/icons/modal_warning.svg +21 -21
  97. package/lib/module/assets/icons/user_security.svg +10 -0
  98. package/lib/module/assets/tts/Frame1000011947.png +0 -0
  99. package/lib/module/components/AlertLoan.js +1 -1
  100. package/lib/module/components/AlertLoan.js.map +1 -1
  101. package/lib/module/components/AppModal.js +1 -1
  102. package/lib/module/components/AppModal.js.map +1 -1
  103. package/lib/module/components/ItemTimaOne.js +1 -1
  104. package/lib/module/components/ItemTimaOne.js.map +1 -1
  105. package/lib/module/components/ModalNotification/AlertGlobal.js +1 -1
  106. package/lib/module/components/ModalNotification/AlertGlobal.js.map +1 -1
  107. package/lib/module/components/ModalNotification/index.js +1 -1
  108. package/lib/module/components/ModalNotification/index.js.map +1 -1
  109. package/lib/module/components/ModalOptionLoan.js +1 -1
  110. package/lib/module/components/ModalOptionLoan.js.map +1 -1
  111. package/lib/module/components/ModalOptionLoanDigital.js +1 -1
  112. package/lib/module/components/ModalOptionLoanDigital.js.map +1 -1
  113. package/lib/module/components/modalStack.js +2 -0
  114. package/lib/module/components/modalStack.js.map +1 -0
  115. package/lib/module/navigation/primary-navigator.js +1 -1
  116. package/lib/module/navigation/primary-navigator.js.map +1 -1
  117. package/lib/module/screens/NFC/OcrStart.js +2 -0
  118. package/lib/module/screens/NFC/OcrStart.js.map +1 -0
  119. package/lib/module/screens/NFC/ScanMRZ.js +2 -0
  120. package/lib/module/screens/NFC/ScanMRZ.js.map +1 -0
  121. package/lib/module/screens/camera/CCCDCameraScreen.js +1 -1
  122. package/lib/module/screens/camera/CCCDCameraScreen.js.map +1 -1
  123. package/lib/module/screens/camera/index.js +1 -1
  124. package/lib/module/screens/camera/index.js.map +1 -1
  125. package/lib/module/screens/detail-loan/PaymentInfo.js +1 -1
  126. package/lib/module/screens/detail-loan/PaymentInfo.js.map +1 -1
  127. package/lib/module/screens/detail-loan/ShowQrCode.js +1 -1
  128. package/lib/module/screens/detail-loan/ShowQrCode.js.map +1 -1
  129. package/lib/module/screens/digital-lending/Step6.js +1 -1
  130. package/lib/module/screens/digital-lending/Step6.js.map +1 -1
  131. package/lib/module/screens/eSign/index.js +1 -1
  132. package/lib/module/screens/eSign/index.js.map +1 -1
  133. package/lib/module/screens/home/DigitalTopupItem.js +1 -1
  134. package/lib/module/screens/home/DigitalTopupItem.js.map +1 -1
  135. package/lib/module/screens/home/ItemMotoBikeLoan.js +1 -1
  136. package/lib/module/screens/home/ItemMotoBikeLoan.js.map +1 -1
  137. package/lib/module/screens/home/index.js +1 -1
  138. package/lib/module/screens/home/index.js.map +1 -1
  139. package/lib/module/screens/nationalID/index.js +1 -1
  140. package/lib/module/screens/nationalID/index.js.map +1 -1
  141. package/lib/module/screens/nationalIDBack/index.js +1 -1
  142. package/lib/module/screens/nationalIDBack/index.js.map +1 -1
  143. package/lib/module/screens/payment-evidence/ModalGuideline.js +1 -1
  144. package/lib/module/screens/payment-evidence/ModalGuideline.js.map +1 -1
  145. package/lib/module/screens/toan-trinh-so/OCR.js +1 -1
  146. package/lib/module/screens/toan-trinh-so/OCR.js.map +1 -1
  147. package/lib/module/screens/toan-trinh-so/RegisterCamera.js +1 -1
  148. package/lib/module/screens/toan-trinh-so/RegisterCamera.js.map +1 -1
  149. package/lib/module/screens/toan-trinh-so/VehicleCamera.js +1 -1
  150. package/lib/module/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
  151. package/lib/module/utils/cameraCrop.js +2 -0
  152. package/lib/module/utils/cameraCrop.js.map +1 -0
  153. package/lib/typescript/assets/icons/index.d.ts +2 -1
  154. package/lib/typescript/assets/icons/index.d.ts.map +1 -1
  155. package/lib/typescript/components/AppModal.d.ts +6 -1
  156. package/lib/typescript/components/AppModal.d.ts.map +1 -1
  157. package/lib/typescript/components/ModalNotification/AlertGlobal.d.ts +20 -4
  158. package/lib/typescript/components/ModalNotification/AlertGlobal.d.ts.map +1 -1
  159. package/lib/typescript/components/ModalNotification/index.d.ts +6 -1
  160. package/lib/typescript/components/ModalNotification/index.d.ts.map +1 -1
  161. package/lib/typescript/components/modalStack.d.ts +11 -0
  162. package/lib/typescript/components/modalStack.d.ts.map +1 -0
  163. package/lib/typescript/navigation/primary-navigator.d.ts +3 -0
  164. package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
  165. package/lib/typescript/screens/NFC/OcrStart.d.ts +2 -0
  166. package/lib/typescript/screens/NFC/OcrStart.d.ts.map +1 -0
  167. package/lib/typescript/screens/NFC/ScanMRZ.d.ts +15 -0
  168. package/lib/typescript/screens/NFC/ScanMRZ.d.ts.map +1 -0
  169. package/lib/typescript/screens/camera/CCCDCameraScreen.d.ts.map +1 -1
  170. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  171. package/lib/typescript/screens/nationalID/index.d.ts.map +1 -1
  172. package/lib/typescript/screens/nationalIDBack/index.d.ts.map +1 -1
  173. package/lib/typescript/screens/toan-trinh-so/OCR.d.ts.map +1 -1
  174. package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts.map +1 -1
  175. package/lib/typescript/utils/cameraCrop.d.ts +43 -0
  176. package/lib/typescript/utils/cameraCrop.d.ts.map +1 -0
  177. package/package.json +2 -1
  178. package/src/assets/icons/index.tsx +2 -0
  179. package/src/assets/icons/modal_confirm.svg +5 -5
  180. package/src/assets/icons/modal_notice.svg +32 -32
  181. package/src/assets/icons/modal_success.svg +26 -26
  182. package/src/assets/icons/modal_warning.svg +21 -21
  183. package/src/assets/icons/user_security.svg +10 -0
  184. package/src/assets/tts/Frame1000011947.png +0 -0
  185. package/src/components/AlertLoan.tsx +1 -1
  186. package/src/components/AppModal.tsx +40 -2
  187. package/src/components/ItemTimaOne.tsx +1 -1
  188. package/src/components/ModalNotification/AlertGlobal.tsx +92 -33
  189. package/src/components/ModalNotification/index.tsx +7 -0
  190. package/src/components/ModalOptionLoan.tsx +1 -1
  191. package/src/components/ModalOptionLoanDigital.tsx +1 -1
  192. package/src/components/modalStack.ts +47 -0
  193. package/src/navigation/primary-navigator.tsx +7 -0
  194. package/src/screens/NFC/OcrStart.tsx +171 -0
  195. package/src/screens/NFC/ScanMRZ.tsx +563 -0
  196. package/src/screens/camera/CCCDCameraScreen.tsx +203 -133
  197. package/src/screens/camera/index.tsx +1 -1
  198. package/src/screens/detail-loan/PaymentInfo.tsx +1 -1
  199. package/src/screens/detail-loan/ShowQrCode.tsx +1 -1
  200. package/src/screens/digital-lending/Step6.tsx +1 -1
  201. package/src/screens/eSign/index.tsx +1 -1
  202. package/src/screens/home/DigitalTopupItem.tsx +1 -1
  203. package/src/screens/home/ItemMotoBikeLoan.tsx +1 -1
  204. package/src/screens/home/index.tsx +8 -113
  205. package/src/screens/nationalID/index.tsx +123 -218
  206. package/src/screens/nationalIDBack/index.tsx +129 -209
  207. package/src/screens/payment-evidence/ModalGuideline.tsx +1 -1
  208. package/src/screens/toan-trinh-so/OCR.tsx +270 -556
  209. package/src/screens/toan-trinh-so/RegisterCamera.tsx +1 -1
  210. package/src/screens/toan-trinh-so/VehicleCamera.tsx +226 -288
  211. package/src/utils/cameraCrop.ts +96 -0
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_mobxReactLite","require","_react","_interopRequireWildcard","_reactNative","_reactNativeMrzScanner","_reactNativeVisionCamera","_reactNativeImageManipulator","_interopRequireDefault","_reactNativeImageCropPicker","_reactNativeImagePicker","_AlertGlobal","_reactNativeSafeAreaContext","_native","_icons","_svgs","_MText","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t3","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","NFCReader","NativeModules","ORANGE","CARD_ASPECT_RATIO","getNfcStatus","_callee","status","_t","_regenerator","async","_context","prev","next","Platform","OS","abrupt","supported","enabled","awrap","sent","stop","Promise","promptEnableNfc","AlertGlobal","show","type","title","message","primaryText","secondaryText","onPrimaryPress","Linking","sendIntent","catch","getImageSize","uri","resolve","reject","Image","getSize","width","height","computeCropRegion","exports","photoW","photoH","frameW","frameH","rotated","w","h","scale","Math","max","cropW","min","round","cropH","cropX","cropY","originX","originY","ScanMRZ","props","_props$route$params$i","_props$route","_props$route$params","_props$route2","_props$route2$params","insets","useSafeAreaInsets","navigation","useNavigation","isFocused","useIsFocused","scannerRef","useRef","cameraRef","frameLayout","_useState","useState","route","params","initialMode","_useState2","_slicedToArray2","mode","setMode","_useState3","_useState4","autoCapture","setAutoCapture","_useState5","_useState6","hasPermission","setHasPermission","_useState7","_useState8","cameraReady","setCameraReady","_useState9","_useState0","taking","setTaking","_useState1","_useState10","captured","setCaptured","device","useCameraDevice","format","useCameraFormat","photoResolution","front","useEffect","PermissionsAndroid","request","PERMISSIONS","CAMERA","buttonPositive","buttonNegative","then","RESULTS","GRANTED","_props$route3","_props$route3$params","_ref","switchToNfc","_callee2","_await$getNfcStatus","_context2","timeout","setTimeout","clearTimeout","handleDetected","useCallback","result","_result$idNumber","Alert","alert","fullName","idNumber","documentNumber","dateOfBirth","dateOfExpiry","valid","join","text","onPress","_scannerRef$current","current","resume","handleError","error","cropToFrame","_callee3","_frameLayout$current","_await$getImageSize","crop","_context3","console","log","RNImageManipulator","manipulate","compress","takePicture","_callee4","photo","cropped","_t2","_context4","takePhoto","qualityPrioritization","path","finish","pickImageFromGallery","_callee5","_result$assets","_result$assets$","_context5","launchImageLibrary","mediaType","assets","ImagePicker","openPicker","image","usePhoto","_props$route$params$o","_props$route4","_props$route4$params","_props$route5","_props$route5$params","callback","onCaptured","goBack","createElement","View","style","styles","container","__self","__source","fileName","lineNumber","columnNumber","header","paddingTop","top","TouchableOpacity","hitSlop","bottom","left","right","IconBack","tabs","tab","tabActive","tabInactive","MText","tabTextActive","tabTextInactive","Fragment","instruction","cameraWrap","MrzScannerView","ref","StyleSheet","absoluteFill","onMrzDetected","onError","corner","cornerTL","cornerTR","cornerBL","cornerBR","checkboxRow","v","activeOpacity","Text","checkboxLabel","checkbox","checkboxChecked","checkmark","hint","photoFrame","onLayout","nativeEvent","layout","source","resizeMode","Camera","isActive","previewActions","retakeButton","retakeText","useButton","useText","galleryButton","IconUpload","galleryText","spacer","marginTop","marginBottom","captureButton","disabled","TakePhotoSvg","_default","observer","create","flex","backgroundColor","flexDirection","alignItems","paddingHorizontal","justifyContent","gap","paddingVertical","borderRadius","color","fontSize","fontWeight","textAlign","lineHeight","marginHorizontal","overflow","aspectRatio","position","borderColor","borderTopWidth","borderLeftWidth","borderTopLeftRadius","borderRightWidth","borderTopRightRadius","borderBottomWidth","borderBottomLeftRadius","borderBottomRightRadius","borderWidth","alignSelf"],"sourceRoot":"../../../../src","sources":["screens/NFC/ScanMRZ.tsx"],"mappings":"wWACA,IAAAA,cAAA,CAAAC,OAAA,oBACA,IAAAC,MAAA,CAAAC,uBAAA,CAAAF,OAAA,WACA,IAAAG,YAAA,CAAAH,OAAA,iBAYA,IAAAI,sBAAA,CAAAJ,OAAA,6BAMA,IAAAK,wBAAA,CAAAL,OAAA,+BAKA,IAAAM,4BAAA,CAAAC,sBAAA,CAAAP,OAAA,gDACA,IAAAQ,2BAAA,CAAAD,sBAAA,CAAAP,OAAA,oCACA,IAAAS,uBAAA,CAAAT,OAAA,8BACA,IAAAU,YAAA,CAAAV,OAAA,mDACA,IAAAW,2BAAA,CAAAX,OAAA,mCACA,IAAAY,OAAA,CAAAZ,OAAA,6BACA,IAAAa,MAAA,CAAAb,OAAA,uBACA,IAAAc,KAAA,CAAAd,OAAA,sBACA,IAAAe,MAAA,CAAAf,OAAA,2BAA+C,IAAAgB,KAAA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AS,CAAE,EAAE,CACbsB,gBAAgB,CAAE,EACpB,CAAC,CACD9B,YAAY,CAAE,CACZgB,IAAI,CAAE,CAAC,CACPpO,MAAM,CAAE,EAAE,CACV4O,YAAY,CAAE,EAAE,CAChBmB,WAAW,CAAE,CAAC,CACdT,WAAW,CAAE7R,MAAM,CACnB8Q,UAAU,CAAE,QAAQ,CACpBE,cAAc,CAAE,QAClB,CAAC,CACDpB,UAAU,CAAE,CAAEwB,KAAK,CAAEpR,MAAM,CAAEqR,QAAQ,CAAE,EAAE,CAAEC,UAAU,CAAE,KAAM,CAAC,CAC9DzB,SAAS,CAAE,CACTc,IAAI,CAAE,CAAC,CACPpO,MAAM,CAAE,EAAE,CACV4O,YAAY,CAAE,EAAE,CAChBP,eAAe,CAAE5Q,MAAM,CACvB8Q,UAAU,CAAE,QAAQ,CACpBE,cAAc,CAAE,QAClB,CAAC,CACDlB,OAAO,CAAE,CAAEsB,KAAK,CAAE,SAAS,CAAEC,QAAQ,CAAE,EAAE,CAAEC,UAAU,CAAE,KAAM,CAC/D,CAAC,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=CCCDCameraScreen;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));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 _reactNativeVisionCamera=require("react-native-vision-camera");var _icons=require("../../assets/icons");var _MText=require("../../components/MText");var _AlertGlobal=require("../../components/ModalNotification/AlertGlobal");var _native=require("@react-navigation/native");var _reactNativeSafeAreaContext=require("react-native-safe-area-context");var _CommonStyles=require("../CommonStyles");var _reactNativePermissions=require("react-native-permissions");var _jsxFileName="/Users/tima/Tima/react-native-timacare/src/screens/camera/CCCDCameraScreen.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t2 in e)"default"!==_t2&&{}.hasOwnProperty.call(e,_t2)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t2))&&(i.get||i.set)?o(f,_t2,i):f[_t2]=e[_t2]);return f;})(e,t);}function CCCDCameraScreen(props){var _props$route2,_props$route2$params;var insets=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)();var navigation=(0,_native.useNavigation)();var isFocused=(0,_native.useIsFocused)();var myCamera=(0,_react.useRef)(null);var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),passPermission=_useState2[0],setPassPermission=_useState2[1];var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),shouldRenderCamera=_useState4[0],setShouldRenderCamera=_useState4[1];var device=(0,_reactNativeVisionCamera.useCameraDevice)('back');var format=(0,_reactNativeVisionCamera.useCameraFormat)(device,[{photoResolution:{width:1280,height:720}}]);var takePicture=function _callee(){var _props$route,_props$route$params,data,_t;return _regenerator.default.async(function(_context){while(1)switch(_context.prev=_context.next){case 0:if(!(myCamera.current==null)){_context.next=1;break;}return _context.abrupt("return");case 1:_context.prev=1;_context.next=2;return _regenerator.default.awrap(myCamera.current.takePhoto({qualityPrioritization:'quality'}));case 2:data=_context.sent;navigation.goBack();if((_props$route=props.route)!=null&&(_props$route$params=_props$route.params)!=null&&_props$route$params.callback){props.route.params.callback('file://'+data.path);}_context.next=4;break;case 3:_context.prev=3;_t=_context["catch"](1);console.error(_t);case 4:case"end":return _context.stop();}},null,null,[[1,3]],Promise);};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)');_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'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ị!',primaryText:'Đồng ý'});break;case _reactNativePermissions.RESULTS.DENIED:console.log('The permission has not been requested / is denied but requestable');_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',primaryText:'Đồng ý',onPrimaryPress:function onPrimaryPress(){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');_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Quyền máy ảnh bị hạn chế. Vui lòng kiểm tra lại để tiếp tục!',primaryText:'Đồng ý',onPrimaryPress:function onPrimaryPress(){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');_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',primaryText:'Đồng ý',onPrimaryPress:function onPrimaryPress(){if(_reactNative.Platform.OS==='ios'){(0,_reactNativePermissions.openSettings)();}else{(0,_reactNativePermissions.openSettings)();}}});break;}});};(0,_react.useEffect)(function(){_requestPermissions();},[]);(0,_react.useEffect)(function(){var timeout;if(isFocused){timeout=setTimeout(function(){setShouldRenderCamera(true);},500);}else{setShouldRenderCamera(false);}return function(){return clearTimeout(timeout);};},[isFocused]);if(!passPermission&&!shouldRenderCamera){return _react.default.createElement(_reactNative.View,{style:_CommonStyles.commonStyles.fill,__self:this,__source:{fileName:_jsxFileName,lineNumber:156,columnNumber:7}},_react.default.createElement(_reactNative.ActivityIndicator,{size:"large",color:"#0000ff",__self:this,__source:{fileName:_jsxFileName,lineNumber:157,columnNumber:9}}));}return _react.default.createElement(_reactNative.View,{style:{flex:1,backgroundColor:'black'},pointerEvents:'box-none',__self:this,__source:{fileName:_jsxFileName,lineNumber:163,columnNumber:5}},_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:167,columnNumber:7}},device?_react.default.createElement(_reactNative.View,{style:$cameraFrame,__self:this,__source:{fileName:_jsxFileName,lineNumber:180,columnNumber:11}},_react.default.createElement(_reactNativeVisionCamera.Camera,{ref:myCamera,style:_reactNative.StyleSheet.absoluteFill,device:device,isActive:true,photo:true,format:format,__self:this,__source:{fileName:_jsxFileName,lineNumber:181,columnNumber:13}})):_react.default.createElement(_reactNative.ActivityIndicator,{__self:this,__source:{fileName:_jsxFileName,lineNumber:191,columnNumber:11}})),_react.default.createElement(_reactNative.View,{style:[$back,{top:insets.top+16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:195,columnNumber:7}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){navigation.goBack();},style:{position:'absolute',left:0,width:48,height:48,zIndex:1000,alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:196,columnNumber:9}},_react.default.createElement(_icons.IconBackWhite,{__self:this,__source:{fileName:_jsxFileName,lineNumber:209,columnNumber:11}})),_react.default.createElement(_MText.MText,{style:{textAlign:'center',zIndex:10,color:'#FFFFFF',fontSize:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:211,columnNumber:9}},props!=null&&(_props$route2=props.route)!=null&&(_props$route2$params=_props$route2.params)!=null&&_props$route2$params.front?'Chụp CMND/ CCCD mặt trước':'Chụp CMND/ CCCD mặt sau')),_react.default.createElement(_reactNative.View,{style:{position:'absolute',bottom:insets.bottom,alignSelf:'center',flexDirection:'column',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:224,columnNumber:7}},_react.default.createElement(_MText.MText,{style:{color:'#fff',marginBottom:16,textAlign:'center',paddingHorizontal:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:233,columnNumber:9}},"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(_reactNative.TouchableOpacity,{onPress:takePicture,__self:this,__source:{fileName:_jsxFileName,lineNumber:244,columnNumber:9}},_react.default.createElement(_icons.TakePhotoSvg,{__self:this,__source:{fileName:_jsxFileName,lineNumber:245,columnNumber:11}}))));}var overlayColor='rgba(22, 22, 22, 0.7)';var $back={position:'absolute',left:0,right:0};var $cameraFrame={width:_reactNative.Dimensions.get('window').width,height:260,overflow:'hidden',backgroundColor:'black'};var $overlay=(0,_extends2.default)({},_reactNative.StyleSheet.absoluteFillObject,{justifyContent:'center',alignItems:'center'});var $container={flex:1,backgroundColor:'#000'};var $row={flexDirection:'row',alignItems:'center'};var $darkOverlayTop={width:'100%',backgroundColor:overlayColor};var $darkOverlayBottom={width:'100%',backgroundColor:overlayColor};var $darkOverlaySide={backgroundColor:overlayColor};var $frameBorder={};
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=CCCDCameraScreen;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 _reactNativeVisionCamera=require("react-native-vision-camera");var _icons=require("../../assets/icons");var _MText=require("../../components/MText");var _AlertGlobal=require("../../components/ModalNotification/AlertGlobal");var _native=require("@react-navigation/native");var _reactNativeSafeAreaContext=require("react-native-safe-area-context");var _CommonStyles=require("../CommonStyles");var _reactNativePermissions=require("react-native-permissions");var _cameraCrop=require("../../utils/cameraCrop");var _jsxFileName="/Users/tima/Tima/react-native-timacare/src/screens/camera/CCCDCameraScreen.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t4 in e)"default"!==_t4&&{}.hasOwnProperty.call(e,_t4)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t4))&&(i.get||i.set)?o(f,_t4,i):f[_t4]=e[_t4]);return f;})(e,t);}var ORANGE='#F05123';var CARD_ASPECT_RATIO=85.6/54;var FRAME_ASPECT=CARD_ASPECT_RATIO;function CCCDCameraScreen(props){var _props$route2,_props$route2$params;var insets=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)();var navigation=(0,_native.useNavigation)();var isFocused=(0,_native.useIsFocused)();var myCamera=(0,_react.useRef)(null);var frameSize=(0,_react.useRef)({width:0,height:0});var focusTimer=(0,_react.useRef)(null);var takingRef=(0,_react.useRef)(false);var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),passPermission=_useState2[0],setPassPermission=_useState2[1];var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),shouldRenderCamera=_useState4[0],setShouldRenderCamera=_useState4[1];var _useState5=(0,_react.useState)(null),_useState6=(0,_slicedToArray2.default)(_useState5,2),focusPoint=_useState6[0],setFocusPoint=_useState6[1];var devices=(0,_reactNativeVisionCamera.useCameraDevices)();var device=(0,_react.useMemo)(function(){return(0,_cameraCrop.pickClosestFocusDevice)(devices,'back');},[devices]);var focusAt=(0,_react.useCallback)(function _callee(x,y){var cam,_t;return _regenerator.default.async(function(_context){while(1)switch(_context.prev=_context.next){case 0:cam=myCamera.current;if(!(cam==null||!(device!=null&&device.supportsFocus))){_context.next=1;break;}return _context.abrupt("return");case 1:setFocusPoint({x:x,y:y});if(focusTimer.current)clearTimeout(focusTimer.current);focusTimer.current=setTimeout(function(){return setFocusPoint(null);},800);_context.prev=2;_context.next=3;return _regenerator.default.awrap(cam.focus({x:x,y:y}));case 3:_context.next=5;break;case 4:_context.prev=4;_t=_context["catch"](2);case 5:case"end":return _context.stop();}},null,null,[[2,4]],Promise);},[device]);var takePicture=function _callee2(){var _props$route,_props$route$params,_frameSize$current,fw,fh,data,uri,_t2,_t3;return _regenerator.default.async(function(_context2){while(1)switch(_context2.prev=_context2.next){case 0:if(!(myCamera.current==null||takingRef.current)){_context2.next=1;break;}return _context2.abrupt("return");case 1:takingRef.current=true;_context2.prev=2;_frameSize$current=frameSize.current,fw=_frameSize$current.width,fh=_frameSize$current.height;if(!(device!=null&&device.supportsFocus&&fw&&fh)){_context2.next=6;break;}_context2.prev=3;_context2.next=4;return _regenerator.default.awrap(myCamera.current.focus({x:fw/2,y:fh/2}));case 4:_context2.next=6;break;case 5:_context2.prev=5;_t2=_context2["catch"](3);case 6:_context2.next=7;return _regenerator.default.awrap(myCamera.current.takePhoto({qualityPrioritization:'quality'}));case 7:data=_context2.sent;_context2.next=8;return _regenerator.default.awrap((0,_cameraCrop.cropPhotoToAspect)(data,FRAME_ASPECT));case 8:uri=_context2.sent;navigation.goBack();if((_props$route=props.route)!=null&&(_props$route$params=_props$route.params)!=null&&_props$route$params.callback){props.route.params.callback(uri);}_context2.next=10;break;case 9:_context2.prev=9;_t3=_context2["catch"](2);console.error(_t3);takingRef.current=false;case 10:case"end":return _context2.stop();}},null,null,[[2,9],[3,5]],Promise);};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)');_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'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ị!',primaryText:'Đồng ý'});break;case _reactNativePermissions.RESULTS.DENIED:console.log('The permission has not been requested / is denied but requestable');_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',primaryText:'Đồng ý',onPrimaryPress:function onPrimaryPress(){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');_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Quyền máy ảnh bị hạn chế. Vui lòng kiểm tra lại để tiếp tục!',primaryText:'Đồng ý',onPrimaryPress:function onPrimaryPress(){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');_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',primaryText:'Đồng ý',onPrimaryPress:function onPrimaryPress(){if(_reactNative.Platform.OS==='ios'){(0,_reactNativePermissions.openSettings)();}else{(0,_reactNativePermissions.openSettings)();}}});break;}});};(0,_react.useEffect)(function(){_requestPermissions();return function(){if(focusTimer.current)clearTimeout(focusTimer.current);};},[]);(0,_react.useEffect)(function(){var timeout;if(isFocused){timeout=setTimeout(function(){setShouldRenderCamera(true);},500);}else{setShouldRenderCamera(false);}return function(){return clearTimeout(timeout);};},[isFocused]);if(!passPermission&&!shouldRenderCamera){return _react.default.createElement(_reactNative.View,{style:_CommonStyles.commonStyles.fill,__self:this,__source:{fileName:_jsxFileName,lineNumber:209,columnNumber:7}},_react.default.createElement(_reactNative.ActivityIndicator,{size:"large",color:"#0000ff",__self:this,__source:{fileName:_jsxFileName,lineNumber:210,columnNumber:9}}));}return _react.default.createElement(_reactNative.View,{style:styles.container,__self:this,__source:{fileName:_jsxFileName,lineNumber:216,columnNumber:5}},_react.default.createElement(_reactNative.View,{style:[styles.header,{paddingTop:insets.top+16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:217,columnNumber:7}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return navigation.goBack();},hitSlop:{top:12,bottom:12,left:12,right:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:218,columnNumber:9}},_react.default.createElement(_icons.IconBack,{__self:this,__source:{fileName:_jsxFileName,lineNumber:222,columnNumber:11}})),_react.default.createElement(_reactNative.View,{style:styles.titleWrap,__self:this,__source:{fileName:_jsxFileName,lineNumber:224,columnNumber:9}},_react.default.createElement(_MText.MText,{style:styles.headerTitle,__self:this,__source:{fileName:_jsxFileName,lineNumber:225,columnNumber:11}},"CMND / CCCD"))),_react.default.createElement(_MText.MText,{style:styles.instruction,__self:this,__source:{fileName:_jsxFileName,lineNumber:229,columnNumber:7}},props!=null&&(_props$route2=props.route)!=null&&(_props$route2$params=_props$route2.params)!=null&&_props$route2$params.front?'Chụp CMND/ CCCD mặt trước':'Chụp CMND/ CCCD mặt sau'),_react.default.createElement(_reactNative.View,{style:styles.photoFrame,onLayout:function onLayout(e){frameSize.current=e.nativeEvent.layout;},onStartShouldSetResponder:function onStartShouldSetResponder(){return true;},onResponderRelease:function onResponderRelease(e){return focusAt(e.nativeEvent.locationX,e.nativeEvent.locationY);},__self:this,__source:{fileName:_jsxFileName,lineNumber:237,columnNumber:7}},device?_react.default.createElement(_reactNativeVisionCamera.Camera,{ref:myCamera,style:_reactNative.StyleSheet.absoluteFill,device:device,isActive:isFocused,photo:true,__self:this,__source:{fileName:_jsxFileName,lineNumber:248,columnNumber:11}}):null,_react.default.createElement(_reactNative.View,{style:[styles.corner,styles.cornerTL],__self:this,__source:{fileName:_jsxFileName,lineNumber:256,columnNumber:9}}),_react.default.createElement(_reactNative.View,{style:[styles.corner,styles.cornerTR],__self:this,__source:{fileName:_jsxFileName,lineNumber:257,columnNumber:9}}),_react.default.createElement(_reactNative.View,{style:[styles.corner,styles.cornerBL],__self:this,__source:{fileName:_jsxFileName,lineNumber:258,columnNumber:9}}),_react.default.createElement(_reactNative.View,{style:[styles.corner,styles.cornerBR],__self:this,__source:{fileName:_jsxFileName,lineNumber:259,columnNumber:9}}),focusPoint&&_react.default.createElement(_reactNative.View,{pointerEvents:"none",style:[styles.focusRing,{left:focusPoint.x-32,top:focusPoint.y-32}],__self:this,__source:{fileName:_jsxFileName,lineNumber:261,columnNumber:11}})),_react.default.createElement(_reactNative.View,{style:styles.spacer,__self:this,__source:{fileName:_jsxFileName,lineNumber:271,columnNumber:7}}),_react.default.createElement(_MText.MText,{style:[styles.hint,{marginTop:0,marginBottom:20}],__self:this,__source:{fileName:_jsxFileName,lineNumber:272,columnNumber:7}},"\u0110\u01B0a gi\u1EA5y t\u1EDD l\u1EA1i g\u1EA7n cho v\u1EEBa khung, ch\u1EA1m v\xE0o m\xE0n h\xECnh",'\n',"\u0111\u1EC3 l\u1EA5y n\xE9t n\u1EBFu \u1EA3nh b\u1ECB m\u1EDD."),_react.default.createElement(_reactNative.TouchableOpacity,{style:[styles.captureButton,{marginBottom:insets.bottom+24}],onPress:takePicture,__self:this,__source:{fileName:_jsxFileName,lineNumber:276,columnNumber:7}},_react.default.createElement(_icons.TakePhotoSvg,{__self:this,__source:{fileName:_jsxFileName,lineNumber:280,columnNumber:9}})));}var styles=_reactNative.StyleSheet.create({container:{flex:1,backgroundColor:'#FFFFFF'},header:{flexDirection:'row',alignItems:'center',paddingHorizontal:16,paddingTop:8},titleWrap:{flex:1,alignItems:'center',justifyContent:'center',marginRight:24},headerTitle:{color:'#333333',fontSize:16,fontWeight:'600'},instruction:{textAlign:'center',color:'#333333',fontSize:14,lineHeight:20,marginTop:20,marginBottom:28},photoFrame:{marginHorizontal:24,aspectRatio:CARD_ASPECT_RATIO,borderRadius:8,overflow:'hidden',backgroundColor:'#000000'},corner:{position:'absolute',width:26,height:26,borderColor:ORANGE},focusRing:{position:'absolute',width:64,height:64,borderRadius:8,borderWidth:1.5,borderColor:'#FFD54A'},cornerTL:{top:0,left:0,borderTopWidth:4,borderLeftWidth:4,borderTopLeftRadius:8},cornerTR:{top:0,right:0,borderTopWidth:4,borderRightWidth:4,borderTopRightRadius:8},cornerBL:{bottom:0,left:0,borderBottomWidth:4,borderLeftWidth:4,borderBottomLeftRadius:8},cornerBR:{bottom:0,right:0,borderBottomWidth:4,borderRightWidth:4,borderBottomRightRadius:8},hint:{textAlign:'center',color:'#555555',fontSize:13,lineHeight:19,marginTop:48},spacer:{flex:1},captureButton:{alignSelf:'center'}});
2
2
  //# sourceMappingURL=CCCDCameraScreen.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeVisionCamera","_icons","_MText","_AlertGlobal","_native","_reactNativeSafeAreaContext","_CommonStyles","_reactNativePermissions","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t2","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","CCCDCameraScreen","props","_props$route2","_props$route2$params","insets","useSafeAreaInsets","navigation","useNavigation","isFocused","useIsFocused","myCamera","useRef","_useState","useState","_useState2","_slicedToArray2","passPermission","setPassPermission","_useState3","_useState4","shouldRenderCamera","setShouldRenderCamera","device","useCameraDevice","format","useCameraFormat","photoResolution","width","height","takePicture","_callee","_props$route","_props$route$params","data","_t","_regenerator","async","_context","prev","next","current","abrupt","awrap","takePhoto","qualityPrioritization","sent","goBack","route","params","callback","path","console","error","stop","Promise","requestPermissions","request","Platform","OS","PERMISSIONS","IOS","CAMERA","ANDROID","then","result","RESULTS","UNAVAILABLE","log","AlertGlobal","show","type","title","message","primaryText","DENIED","onPrimaryPress","openSettings","LIMITED","GRANTED","BLOCKED","useEffect","timeout","setTimeout","clearTimeout","createElement","View","style","commonStyles","fill","__self","__source","fileName","lineNumber","columnNumber","ActivityIndicator","size","color","flex","backgroundColor","pointerEvents","alignCenter","justifyCenter","position","Dimensions","$cameraFrame","Camera","ref","StyleSheet","absoluteFill","isActive","photo","$back","top","TouchableOpacity","onPress","left","zIndex","alignItems","IconBackWhite","MText","textAlign","fontSize","front","bottom","alignSelf","flexDirection","marginBottom","paddingHorizontal","TakePhotoSvg","overlayColor","right","overflow","$overlay","_extends2","absoluteFillObject","justifyContent","$container","$row","$darkOverlayTop","$darkOverlayBottom","$darkOverlaySide","$frameBorder"],"sourceRoot":"../../../../src","sources":["screens/camera/CCCDCameraScreen.tsx"],"mappings":"waACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAQA,IAAAE,wBAAA,CAAAF,OAAA,+BAKA,IAAAG,MAAA,CAAAH,OAAA,uBACA,IAAAI,MAAA,CAAAJ,OAAA,2BACA,IAAAK,YAAA,CAAAL,OAAA,mDACA,IAAAM,OAAA,CAAAN,OAAA,6BACA,IAAAO,2BAAA,CAAAP,OAAA,mCACA,IAAAQ,aAAA,CAAAR,OAAA,oBACA,IAAAS,uBAAA,CAAAT,OAAA,6BAKkC,IAAAU,YAAA,2FAAAX,wBAAAY,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAd,uBAAA,UAAAA,wB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IAAI,CAAE,CAAC,CACPC,eAAe,CAAE,MACnB,CAAC,CAED,GAAM,CAAAuC,IAAe,CAAG,CACtBZ,aAAa,CAAE,KAAK,CACpBR,UAAU,CAAE,QACd,CAAC,CAED,GAAM,CAAAqB,eAA0B,CAAG,CACjC/G,KAAK,CAAE,MAAM,CACbuE,eAAe,CAAE+B,YACnB,CAAC,CAED,GAAM,CAAAU,kBAA6B,CAAG,CACpChH,KAAK,CAAE,MAAM,CACbuE,eAAe,CAAE+B,YACnB,CAAC,CACD,GAAM,CAAAW,gBAA2B,CAAG,CAClC1C,eAAe,CAAE+B,YACnB,CAAC,CACD,GAAM,CAAAY,YAAuB,CAAG,CAGhC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeVisionCamera","_icons","_MText","_AlertGlobal","_native","_reactNativeSafeAreaContext","_CommonStyles","_reactNativePermissions","_cameraCrop","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t4","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ORANGE","CARD_ASPECT_RATIO","FRAME_ASPECT","CCCDCameraScreen","props","_props$route2","_props$route2$params","insets","useSafeAreaInsets","navigation","useNavigation","isFocused","useIsFocused","myCamera","useRef","frameSize","width","height","focusTimer","takingRef","_useState","useState","_useState2","_slicedToArray2","passPermission","setPassPermission","_useState3","_useState4","shouldRenderCamera","setShouldRenderCamera","_useState5","_useState6","focusPoint","setFocusPoint","devices","useCameraDevices","device","useMemo","pickClosestFocusDevice","focusAt","useCallback","_callee","x","y","cam","_t","_regenerator","async","_context","prev","next","current","supportsFocus","abrupt","clearTimeout","setTimeout","awrap","focus","stop","Promise","takePicture","_callee2","_props$route","_props$route$params","_frameSize$current","fw","fh","data","uri","_t2","_t3","_context2","takePhoto","qualityPrioritization","sent","cropPhotoToAspect","goBack","route","params","callback","console","error","requestPermissions","request","Platform","OS","PERMISSIONS","IOS","CAMERA","ANDROID","then","result","RESULTS","UNAVAILABLE","log","AlertGlobal","show","type","title","message","primaryText","DENIED","onPrimaryPress","openSettings","LIMITED","GRANTED","BLOCKED","useEffect","timeout","createElement","View","style","commonStyles","fill","__self","__source","fileName","lineNumber","columnNumber","ActivityIndicator","size","color","styles","container","header","paddingTop","top","TouchableOpacity","onPress","hitSlop","bottom","left","right","IconBack","titleWrap","MText","headerTitle","instruction","front","photoFrame","onLayout","nativeEvent","layout","onStartShouldSetResponder","onResponderRelease","locationX","locationY","Camera","ref","StyleSheet","absoluteFill","isActive","photo","corner","cornerTL","cornerTR","cornerBL","cornerBR","pointerEvents","focusRing","spacer","hint","marginTop","marginBottom","captureButton","TakePhotoSvg","create","flex","backgroundColor","flexDirection","alignItems","paddingHorizontal","justifyContent","marginRight","fontSize","fontWeight","textAlign","lineHeight","marginHorizontal","aspectRatio","borderRadius","overflow","position","borderColor","borderWidth","borderTopWidth","borderLeftWidth","borderTopLeftRadius","borderRightWidth","borderTopRightRadius","borderBottomWidth","borderBottomLeftRadius","borderBottomRightRadius","alignSelf"],"sourceRoot":"../../../../src","sources":["screens/camera/CCCDCameraScreen.tsx"],"mappings":"wVACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WAOA,IAAAC,YAAA,CAAAD,OAAA,iBAOA,IAAAE,wBAAA,CAAAF,OAAA,+BAIA,IAAAG,MAAA,CAAAH,OAAA,uBACA,IAAAI,MAAA,CAAAJ,OAAA,2BACA,IAAAK,YAAA,CAAAL,OAAA,mDACA,IAAAM,OAAA,CAAAN,OAAA,6BACA,IAAAO,2BAAA,CAAAP,OAAA,mCACA,IAAAQ,aAAA,CAAAR,OAAA,oBACA,IAAAS,uBAAA,CAAAT,OAAA,6BAMA,IAAAU,WAAA,CAAAV,OAAA,2BAGgC,IAAAW,YAAA,2FAAAZ,wBAAAa,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAf,uB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AC1B,CAAC,CACDlC,QAAQ,CAAE,CACR3B,MAAM,CAAE,CAAC,CACTE,KAAK,CAAE,CAAC,CACR0D,iBAAiB,CAAE,CAAC,CACpBF,gBAAgB,CAAE,CAAC,CACnBI,uBAAuB,CAAE,CAC3B,CAAC,CACD/B,IAAI,CAAE,CACJe,SAAS,CAAE,QAAQ,CACnBvD,KAAK,CAAE,SAAS,CAChBqD,QAAQ,CAAE,EAAE,CACZG,UAAU,CAAE,EAAE,CACdf,SAAS,CAAE,EACb,CAAC,CACDF,MAAM,CAAE,CAAEO,IAAI,CAAE,CAAE,CAAC,CACnBH,aAAa,CAAE,CAAE6B,SAAS,CAAE,QAAS,CACvC,CAAC,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Camera=void 0;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 _native=require("@react-navigation/native");var _mobxReactLite=require("mobx-react-lite");var _CommonStyles=require("../CommonStyles");var _MButton=_interopRequireDefault(require("../../components/MButton"));var _reactNativePermissions=require("react-native-permissions");var _reactNativeVisionCamera=require("react-native-vision-camera");var _icons=require("../../assets/icons");var _Store=_interopRequireDefault(require("./Store"));var _MText=require("../../components/MText");var _AlertGlobal=require("../../components/ModalNotification/AlertGlobal");var _reactNativeModal=_interopRequireDefault(require("react-native-modal"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _reactNativeFs=_interopRequireDefault(require("react-native-fs"));var _jsxFileName="/Users/tima/Tima/react-native-timacare/src/screens/camera/index.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var cameraStore=new _Store.default();var Camera=exports.Camera=(0,_mobxReactLite.observer)(function Camera(props){var navigation=(0,_native.useNavigation)();var isFocused=(0,_native.useIsFocused)();var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),shouldRenderCamera=_useState2[0],setShouldRenderCamera=_useState2[1];var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),passPermission=_useState4[0],setPassPermission=_useState4[1];var _useState5=(0,_react.useState)(false),_useState6=(0,_slicedToArray2.default)(_useState5,2),flash=_useState6[0],setFlash=_useState6[1];var _useState7=(0,_react.useState)(props.route.params.front),_useState8=(0,_slicedToArray2.default)(_useState7,2),front=_useState8[0],setFront=_useState8[1];var _useState9=(0,_react.useState)(props.route.params.selfie),_useState0=(0,_slicedToArray2.default)(_useState9,1),selfie=_useState0[0];var _useState1=(0,_react.useState)(false),_useState10=(0,_slicedToArray2.default)(_useState1,2),taking=_useState10[0],setTaking=_useState10[1];var _useState11=(0,_react.useState)(false),_useState12=(0,_slicedToArray2.default)(_useState11,2),showModal=_useState12[0],setShowModal=_useState12[1];var myCamera=(0,_react.useRef)(null);var device=(0,_reactNativeVisionCamera.useCameraDevice)(front?'front':'back');var format=(0,_reactNativeVisionCamera.useCameraFormat)(device,[{photoResolution:{width:1280,height:720}}]);var takePhoto=function _callee(){var data,uri,base64;return _regenerator.default.async(function(_context){while(1)switch(_context.prev=_context.next){case 0:if(!(myCamera.current==null||taking)){_context.next=1;break;}return _context.abrupt("return");case 1:setTaking(true);_context.next=2;return _regenerator.default.awrap(myCamera.current.takePhoto({qualityPrioritization:'quality'}));case 2:data=_context.sent;uri='file://'+data.path;setTaking(false);navigation.goBack();if(props.route.params.callback){props.route.params.callback(uri);}if(!props.route.params.base64){_context.next=4;break;}_context.next=3;return _regenerator.default.awrap(_reactNativeFs.default.readFile(data.path,'base64'));case 3:base64=_context.sent;props.route.params.base64(base64);case 4:case"end":return _context.stop();}},null,null,null,Promise);};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)');_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'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ị!',primaryText:'Đồng ý'});break;case _reactNativePermissions.RESULTS.DENIED:console.log('The permission has not been requested / is denied but requestable');_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',primaryText:'Đồng ý',onPrimaryPress:function onPrimaryPress(){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');_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Quyền máy ảnh bị hạn chế. Vui lòng kiểm tra lại để tiếp tục!',primaryText:'Đồng ý',onPrimaryPress:function onPrimaryPress(){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');_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',primaryText:'Đồng ý'});break;}});};(0,_react.useEffect)(function(){_requestPermissions();if(selfie){cameraStore.interval=setInterval(function(){if(new Date().getTime()-cameraStore.lastFace>1000){cameraStore.isFace=false;}},1000);}return function(){clearInterval(cameraStore.interval);};},[]);var handlerFace=function handlerFace(event){if(event.type==='face'){cameraStore.isFace=true;cameraStore.lastFace=new Date().getTime();}};(0,_react.useEffect)(function(){var timeout;if(isFocused){timeout=setTimeout(function(){setShouldRenderCamera(true);},500);}else{setShouldRenderCamera(false);}return function(){return clearTimeout(timeout);};},[isFocused]);return _react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.fill,{backgroundColor:'black'}],pointerEvents:'box-none',__self:this,__source:{fileName:_jsxFileName,lineNumber:211,columnNumber:5}},passPermission&&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:216,columnNumber:9}},device?_react.default.createElement(_reactNativeVisionCamera.Camera,{ref:myCamera,style:{width:_reactNative.Dimensions.get('window').width,height:'100%'},device:device,isActive:true,photo:true,format:format,torch:flash&&device.hasTorch?'on':'off',__self:this,__source:{fileName:_jsxFileName,lineNumber:229,columnNumber:13}}):_react.default.createElement(_reactNative.ActivityIndicator,{__self:this,__source:{fileName:_jsxFileName,lineNumber:242,columnNumber:13}})),_react.default.createElement(_reactNative.SafeAreaView,{style:[_CommonStyles.commonStyles.fill,{position:'absolute',width:'100%',height:'100%'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:247,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.row,_CommonStyles.commonStyles.alignCenter,{paddingHorizontal:16,marginTop:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:253,columnNumber:9}},_react.default.createElement(_MButton.default,{onPress:function onPress(){navigation.goBack();},style:[{width:48,height:48,zIndex:1000}],__self:this,__source:{fileName:_jsxFileName,lineNumber:260,columnNumber:11}},_react.default.createElement(_icons.IconBackWhite,{__self:this,__source:{fileName:_jsxFileName,lineNumber:267,columnNumber:13}})),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:269,columnNumber:11}})),_react.default.createElement(_reactNative.View,{style:{flex:0,justifyContent:'center',position:'absolute',bottom:0,width:'100%'},__self:this,__source:{fileName:_jsxFileName,lineNumber:271,columnNumber:9}},!props.route.params.front&&_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'white',textAlign:'center',backgroundColor:'#00000099',paddingVertical:12}],__self:this,__source:{fileName:_jsxFileName,lineNumber:281,columnNumber:13}},"Vui l\xF2ng \u0111\u1EB7t gi\u1EA5y t\u1EDD n\u1EB1m v\u1EEBa khung h\xECnh,",'\n',"ch\u1EE5p \u0111\u1EE7 \xE1nh s\xE1ng v\xE0 r\xF5 n\xE9t."),props.route.params.selfie&&_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'white',textAlign:'center',backgroundColor:'#00000099',paddingVertical:12}],__self:this,__source:{fileName:_jsxFileName,lineNumber:297,columnNumber:13}},"Xin vui l\xF2ng nh\xECn th\u1EB3ng, khu\xF4n m\u1EB7t \u1EDF trong",'\n',"khung h\xECnh, \xE1nh s\xE1ng \u0111\u1EE7 r\xF5 n\xE9t khu\xF4n m\u1EB7t"),taking?_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.alignCenter,_CommonStyles.commonStyles.justifyCenter,{width:64,height:64,alignSelf:'center'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:328,columnNumber:13}},_react.default.createElement(_reactNative.ActivityIndicator,{color:'white',size:"large",__self:this,__source:{fileName:_jsxFileName,lineNumber:335,columnNumber:15}})):_react.default.createElement(_MButton.default,{onPress:function onPress(){return takePhoto();},style:[_CommonStyles.commonStyles.alignCenter,_CommonStyles.commonStyles.justifyCenter,{margin:24}],__self:this,__source:{fileName:_jsxFileName,lineNumber:338,columnNumber:13}},_react.default.createElement(_icons.TakePhotoSvg,{__self:this,__source:{fileName:_jsxFileName,lineNumber:348,columnNumber:15}})))),_react.default.createElement(_reactNativeModal.default,{isVisible:showModal,__self:this,__source:{fileName:_jsxFileName,lineNumber:353,columnNumber:7}},_react.default.createElement(_reactNative.SafeAreaView,{style:{backgroundColor:'#FFFFFF',borderRadius:4},__self:this,__source:{fileName:_jsxFileName,lineNumber:354,columnNumber:9}},_react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:355,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[{marginTop:16,color:'#F05123',fontSize:16,textAlign:'center',fontWeight:'bold'}],center:true,__self:this,__source:{fileName:_jsxFileName,lineNumber:356,columnNumber:13}},"B2: X\xC1C TH\u1EF0C KHU\xD4N M\u1EB6T"),_react.default.createElement(_reactNative.View,{style:{alignItems:'center',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:370,columnNumber:13}},_react.default.createElement(_icons.Selfie,{__self:this,__source:{fileName:_jsxFileName,lineNumber:371,columnNumber:15}})),_react.default.createElement(_MText.MText,{style:{color:'#333333',textAlign:'center',fontSize:16,fontWeight:'600',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:373,columnNumber:13}},"B\u1EA1n vui l\xF2ng ch\u1EE5p \u1EA3nh",'\n',"khu\xF4n m\u1EB7t theo h\u01B0\u1EDBng d\u1EABn:"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:16,alignItems:'center',paddingHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:385,columnNumber:13}},_react.default.createElement(_icons.TimaNormal,{width:12,__self:this,__source:{fileName:_jsxFileName,lineNumber:393,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{color:'#333333',marginLeft:8,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:394,columnNumber:15}},"Gi\u1EEF \u0111i\u1EC7n tho\u1EA1i \u1ED5n \u0111\u1ECBnh, th\u1EB3ng m\u1EB7t")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',paddingHorizontal:16,alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:398,columnNumber:13}},_react.default.createElement(_icons.TimaNormal,{width:12,__self:this,__source:{fileName:_jsxFileName,lineNumber:405,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{color:'#333333',marginLeft:8,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:406,columnNumber:15}},"\u0110i\u1EC1u ch\u1EC9nh khu\xF4n m\u1EB7t n\u1EB1m g\u1ECDn trong v\xF2ng tr\xF2n")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',paddingHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:410,columnNumber:13}},_react.default.createElement(_icons.TimaNormal,{width:12,__self:this,__source:{fileName:_jsxFileName,lineNumber:416,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{color:'#333333',marginLeft:8,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:417,columnNumber:15}},"Th\u1EF1c hi\u1EC7n quay tr\xE1i, ph\u1EA3i theo h\u01B0\u1EDBng d\u1EABn \u0111\u1EC3",'\n'," ho\xE0n th\xE0nh x\xE1c th\u1EF1c khu\xF4n m\u1EB7t")),_react.default.createElement(_reactNative.View,{style:{marginTop:24,paddingHorizontal:50},__self:this,__source:{fileName:_jsxFileName,lineNumber:422,columnNumber:13}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return setShowModal(false);},__self:this,__source:{fileName:_jsxFileName,lineNumber:423,columnNumber:15}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF7A00','#EF4123'],style:{alignItems:'center',borderRadius:30,alignContent:'center',paddingVertical:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:424,columnNumber:17}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{color:'#ffffff'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:433,columnNumber:19}},"Ti\u1EBFp t\u1EE5c")))),_react.default.createElement(_reactNative.View,{style:{marginBottom:24,marginTop:8,flexDirection:'row',justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:441,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:449,columnNumber:15}},"Cung c\u1EA5p b\u1EDFi",' '),_react.default.createElement(_icons.CIMBBank,{__self:this,__source:{fileName:_jsxFileName,lineNumber:452,columnNumber:15}}))))));});
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Camera=void 0;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 _native=require("@react-navigation/native");var _mobxReactLite=require("mobx-react-lite");var _CommonStyles=require("../CommonStyles");var _MButton=_interopRequireDefault(require("../../components/MButton"));var _reactNativePermissions=require("react-native-permissions");var _reactNativeVisionCamera=require("react-native-vision-camera");var _icons=require("../../assets/icons");var _Store=_interopRequireDefault(require("./Store"));var _MText=require("../../components/MText");var _AlertGlobal=require("../../components/ModalNotification/AlertGlobal");var _AppModal=_interopRequireDefault(require("../../components/AppModal"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _reactNativeFs=_interopRequireDefault(require("react-native-fs"));var _jsxFileName="/Users/tima/Tima/react-native-timacare/src/screens/camera/index.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var cameraStore=new _Store.default();var Camera=exports.Camera=(0,_mobxReactLite.observer)(function Camera(props){var navigation=(0,_native.useNavigation)();var isFocused=(0,_native.useIsFocused)();var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),shouldRenderCamera=_useState2[0],setShouldRenderCamera=_useState2[1];var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),passPermission=_useState4[0],setPassPermission=_useState4[1];var _useState5=(0,_react.useState)(false),_useState6=(0,_slicedToArray2.default)(_useState5,2),flash=_useState6[0],setFlash=_useState6[1];var _useState7=(0,_react.useState)(props.route.params.front),_useState8=(0,_slicedToArray2.default)(_useState7,2),front=_useState8[0],setFront=_useState8[1];var _useState9=(0,_react.useState)(props.route.params.selfie),_useState0=(0,_slicedToArray2.default)(_useState9,1),selfie=_useState0[0];var _useState1=(0,_react.useState)(false),_useState10=(0,_slicedToArray2.default)(_useState1,2),taking=_useState10[0],setTaking=_useState10[1];var _useState11=(0,_react.useState)(false),_useState12=(0,_slicedToArray2.default)(_useState11,2),showModal=_useState12[0],setShowModal=_useState12[1];var myCamera=(0,_react.useRef)(null);var device=(0,_reactNativeVisionCamera.useCameraDevice)(front?'front':'back');var format=(0,_reactNativeVisionCamera.useCameraFormat)(device,[{photoResolution:{width:1280,height:720}}]);var takePhoto=function _callee(){var data,uri,base64;return _regenerator.default.async(function(_context){while(1)switch(_context.prev=_context.next){case 0:if(!(myCamera.current==null||taking)){_context.next=1;break;}return _context.abrupt("return");case 1:setTaking(true);_context.next=2;return _regenerator.default.awrap(myCamera.current.takePhoto({qualityPrioritization:'quality'}));case 2:data=_context.sent;uri='file://'+data.path;setTaking(false);navigation.goBack();if(props.route.params.callback){props.route.params.callback(uri);}if(!props.route.params.base64){_context.next=4;break;}_context.next=3;return _regenerator.default.awrap(_reactNativeFs.default.readFile(data.path,'base64'));case 3:base64=_context.sent;props.route.params.base64(base64);case 4:case"end":return _context.stop();}},null,null,null,Promise);};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)');_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'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ị!',primaryText:'Đồng ý'});break;case _reactNativePermissions.RESULTS.DENIED:console.log('The permission has not been requested / is denied but requestable');_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',primaryText:'Đồng ý',onPrimaryPress:function onPrimaryPress(){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');_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Quyền máy ảnh bị hạn chế. Vui lòng kiểm tra lại để tiếp tục!',primaryText:'Đồng ý',onPrimaryPress:function onPrimaryPress(){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');_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',primaryText:'Đồng ý'});break;}});};(0,_react.useEffect)(function(){_requestPermissions();if(selfie){cameraStore.interval=setInterval(function(){if(new Date().getTime()-cameraStore.lastFace>1000){cameraStore.isFace=false;}},1000);}return function(){clearInterval(cameraStore.interval);};},[]);var handlerFace=function handlerFace(event){if(event.type==='face'){cameraStore.isFace=true;cameraStore.lastFace=new Date().getTime();}};(0,_react.useEffect)(function(){var timeout;if(isFocused){timeout=setTimeout(function(){setShouldRenderCamera(true);},500);}else{setShouldRenderCamera(false);}return function(){return clearTimeout(timeout);};},[isFocused]);return _react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.fill,{backgroundColor:'black'}],pointerEvents:'box-none',__self:this,__source:{fileName:_jsxFileName,lineNumber:211,columnNumber:5}},passPermission&&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:216,columnNumber:9}},device?_react.default.createElement(_reactNativeVisionCamera.Camera,{ref:myCamera,style:{width:_reactNative.Dimensions.get('window').width,height:'100%'},device:device,isActive:true,photo:true,format:format,torch:flash&&device.hasTorch?'on':'off',__self:this,__source:{fileName:_jsxFileName,lineNumber:229,columnNumber:13}}):_react.default.createElement(_reactNative.ActivityIndicator,{__self:this,__source:{fileName:_jsxFileName,lineNumber:242,columnNumber:13}})),_react.default.createElement(_reactNative.SafeAreaView,{style:[_CommonStyles.commonStyles.fill,{position:'absolute',width:'100%',height:'100%'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:247,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.row,_CommonStyles.commonStyles.alignCenter,{paddingHorizontal:16,marginTop:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:253,columnNumber:9}},_react.default.createElement(_MButton.default,{onPress:function onPress(){navigation.goBack();},style:[{width:48,height:48,zIndex:1000}],__self:this,__source:{fileName:_jsxFileName,lineNumber:260,columnNumber:11}},_react.default.createElement(_icons.IconBackWhite,{__self:this,__source:{fileName:_jsxFileName,lineNumber:267,columnNumber:13}})),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:269,columnNumber:11}})),_react.default.createElement(_reactNative.View,{style:{flex:0,justifyContent:'center',position:'absolute',bottom:0,width:'100%'},__self:this,__source:{fileName:_jsxFileName,lineNumber:271,columnNumber:9}},!props.route.params.front&&_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'white',textAlign:'center',backgroundColor:'#00000099',paddingVertical:12}],__self:this,__source:{fileName:_jsxFileName,lineNumber:281,columnNumber:13}},"Vui l\xF2ng \u0111\u1EB7t gi\u1EA5y t\u1EDD n\u1EB1m v\u1EEBa khung h\xECnh,",'\n',"ch\u1EE5p \u0111\u1EE7 \xE1nh s\xE1ng v\xE0 r\xF5 n\xE9t."),props.route.params.selfie&&_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'white',textAlign:'center',backgroundColor:'#00000099',paddingVertical:12}],__self:this,__source:{fileName:_jsxFileName,lineNumber:297,columnNumber:13}},"Xin vui l\xF2ng nh\xECn th\u1EB3ng, khu\xF4n m\u1EB7t \u1EDF trong",'\n',"khung h\xECnh, \xE1nh s\xE1ng \u0111\u1EE7 r\xF5 n\xE9t khu\xF4n m\u1EB7t"),taking?_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.alignCenter,_CommonStyles.commonStyles.justifyCenter,{width:64,height:64,alignSelf:'center'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:328,columnNumber:13}},_react.default.createElement(_reactNative.ActivityIndicator,{color:'white',size:"large",__self:this,__source:{fileName:_jsxFileName,lineNumber:335,columnNumber:15}})):_react.default.createElement(_MButton.default,{onPress:function onPress(){return takePhoto();},style:[_CommonStyles.commonStyles.alignCenter,_CommonStyles.commonStyles.justifyCenter,{margin:24}],__self:this,__source:{fileName:_jsxFileName,lineNumber:338,columnNumber:13}},_react.default.createElement(_icons.TakePhotoSvg,{__self:this,__source:{fileName:_jsxFileName,lineNumber:348,columnNumber:15}})))),_react.default.createElement(_AppModal.default,{isVisible:showModal,__self:this,__source:{fileName:_jsxFileName,lineNumber:353,columnNumber:7}},_react.default.createElement(_reactNative.SafeAreaView,{style:{backgroundColor:'#FFFFFF',borderRadius:4},__self:this,__source:{fileName:_jsxFileName,lineNumber:354,columnNumber:9}},_react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:355,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[{marginTop:16,color:'#F05123',fontSize:16,textAlign:'center',fontWeight:'bold'}],center:true,__self:this,__source:{fileName:_jsxFileName,lineNumber:356,columnNumber:13}},"B2: X\xC1C TH\u1EF0C KHU\xD4N M\u1EB6T"),_react.default.createElement(_reactNative.View,{style:{alignItems:'center',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:370,columnNumber:13}},_react.default.createElement(_icons.Selfie,{__self:this,__source:{fileName:_jsxFileName,lineNumber:371,columnNumber:15}})),_react.default.createElement(_MText.MText,{style:{color:'#333333',textAlign:'center',fontSize:16,fontWeight:'600',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:373,columnNumber:13}},"B\u1EA1n vui l\xF2ng ch\u1EE5p \u1EA3nh",'\n',"khu\xF4n m\u1EB7t theo h\u01B0\u1EDBng d\u1EABn:"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:16,alignItems:'center',paddingHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:385,columnNumber:13}},_react.default.createElement(_icons.TimaNormal,{width:12,__self:this,__source:{fileName:_jsxFileName,lineNumber:393,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{color:'#333333',marginLeft:8,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:394,columnNumber:15}},"Gi\u1EEF \u0111i\u1EC7n tho\u1EA1i \u1ED5n \u0111\u1ECBnh, th\u1EB3ng m\u1EB7t")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',paddingHorizontal:16,alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:398,columnNumber:13}},_react.default.createElement(_icons.TimaNormal,{width:12,__self:this,__source:{fileName:_jsxFileName,lineNumber:405,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{color:'#333333',marginLeft:8,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:406,columnNumber:15}},"\u0110i\u1EC1u ch\u1EC9nh khu\xF4n m\u1EB7t n\u1EB1m g\u1ECDn trong v\xF2ng tr\xF2n")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',paddingHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:410,columnNumber:13}},_react.default.createElement(_icons.TimaNormal,{width:12,__self:this,__source:{fileName:_jsxFileName,lineNumber:416,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{color:'#333333',marginLeft:8,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:417,columnNumber:15}},"Th\u1EF1c hi\u1EC7n quay tr\xE1i, ph\u1EA3i theo h\u01B0\u1EDBng d\u1EABn \u0111\u1EC3",'\n'," ho\xE0n th\xE0nh x\xE1c th\u1EF1c khu\xF4n m\u1EB7t")),_react.default.createElement(_reactNative.View,{style:{marginTop:24,paddingHorizontal:50},__self:this,__source:{fileName:_jsxFileName,lineNumber:422,columnNumber:13}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return setShowModal(false);},__self:this,__source:{fileName:_jsxFileName,lineNumber:423,columnNumber:15}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF7A00','#EF4123'],style:{alignItems:'center',borderRadius:30,alignContent:'center',paddingVertical:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:424,columnNumber:17}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{color:'#ffffff'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:433,columnNumber:19}},"Ti\u1EBFp t\u1EE5c")))),_react.default.createElement(_reactNative.View,{style:{marginBottom:24,marginTop:8,flexDirection:'row',justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:441,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:449,columnNumber:15}},"Cung c\u1EA5p b\u1EDFi",' '),_react.default.createElement(_icons.CIMBBank,{__self:this,__source:{fileName:_jsxFileName,lineNumber:452,columnNumber:15}}))))));});
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_native","_mobxReactLite","_CommonStyles","_MButton","_interopRequireDefault","_reactNativePermissions","_reactNativeVisionCamera","_icons","_Store","_MText","_AlertGlobal","_reactNativeModal","_reactNativeLinearGradient","_reactNativeFs","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","cameraStore","Store","Camera","exports","observer","props","navigation","useNavigation","isFocused","useIsFocused","_useState","useState","_useState2","_slicedToArray2","shouldRenderCamera","setShouldRenderCamera","_useState3","_useState4","passPermission","setPassPermission","_useState5","_useState6","flash","setFlash","_useState7","route","params","front","_useState8","setFront","_useState9","selfie","_useState0","_useState1","_useState10","taking","setTaking","_useState11","_useState12","showModal","setShowModal","myCamera","useRef","device","useCameraDevice","format","useCameraFormat","photoResolution","width","height","takePhoto","_callee","data","uri","base64","_regenerator","async","_context","prev","next","current","abrupt","awrap","qualityPrioritization","sent","path","goBack","callback","RNFS","readFile","stop","Promise","requestPermissions","request","Platform","OS","PERMISSIONS","IOS","CAMERA","ANDROID","then","result","RESULTS","UNAVAILABLE","console","log","AlertGlobal","show","type","title","message","primaryText","DENIED","onPrimaryPress","openSettings","LIMITED","GRANTED","BLOCKED","useEffect","interval","setInterval","Date","getTime","lastFace","isFace","clearInterval","handlerFace","event","timeout","setTimeout","clearTimeout","createElement","View","style","commonStyles","fill","backgroundColor","pointerEvents","__self","__source","fileName","lineNumber","columnNumber","alignCenter","justifyCenter","position","Dimensions","ref","isActive","photo","torch","hasTorch","ActivityIndicator","SafeAreaView","row","paddingHorizontal","marginTop","onPress","zIndex","IconBackWhite","flex","justifyContent","bottom","MText","textNormal","color","textAlign","paddingVertical","alignSelf","size","margin","TakePhotoSvg","isVisible","borderRadius","fontSize","fontWeight","center","alignItems","Selfie","flexDirection","TimaNormal","marginLeft","TouchableOpacity","colors","alignContent","textNormalBold","marginBottom","CIMBBank"],"sourceRoot":"../../../../src","sources":["screens/camera/index.tsx"],"mappings":"6UACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAcA,IAAAE,OAAA,CAAAF,OAAA,6BAKA,IAAAG,cAAA,CAAAH,OAAA,oBACA,IAAAI,aAAA,CAAAJ,OAAA,oBACA,IAAAK,QAAA,CAAAC,sBAAA,CAAAN,OAAA,8BAEA,IAAAO,uBAAA,CAAAP,OAAA,6BAMA,IAAAQ,wBAAA,CAAAR,OAAA,+BAKA,IAAAS,MAAA,CAAAT,OAAA,uBAaA,IAAAU,MAAA,CAAAJ,sBAAA,CAAAN,OAAA,aACA,IAAAW,MAAA,CAAAX,OAAA,2BACA,IAAAY,YAAA,CAAAZ,OAAA,mDACA,IAAAa,iBAAA,CAAAP,sBAAA,CAAAN,OAAA,wBACA,IAAAc,0BAAA,CAAAR,sBAAA,CAAAN,OAAA,kCACA,IAAAe,cAAA,CAAAT,sBAAA,CAAAN,OAAA,qBAAmC,IAAAgB,YAAA,gFAAAjB,wBAAAkB,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAA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AAAC,QAAA,CAAA7I,YAAA,CAAA8I,UAAA,KAAAC,YAAA,MAAC,wBACpC,CAAC,GACR,CAAC,CACRjK,MAAA,CAAA6B,OAAA,CAAAyH,aAAA,CAAC3I,MAAA,CAAAmM,QAAQ,EAAAjD,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA7I,YAAA,CAAA8I,UAAA,KAAAC,YAAA,KAAE,CACP,CACF,CACM,CACT,CACH,CAAC,CAEX,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_native","_mobxReactLite","_CommonStyles","_MButton","_interopRequireDefault","_reactNativePermissions","_reactNativeVisionCamera","_icons","_Store","_MText","_AlertGlobal","_AppModal","_reactNativeLinearGradient","_reactNativeFs","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","cameraStore","Store","Camera","exports","observer","props","navigation","useNavigation","isFocused","useIsFocused","_useState","useState","_useState2","_slicedToArray2","shouldRenderCamera","setShouldRenderCamera","_useState3","_useState4","passPermission","setPassPermission","_useState5","_useState6","flash","setFlash","_useState7","route","params","front","_useState8","setFront","_useState9","selfie","_useState0","_useState1","_useState10","taking","setTaking","_useState11","_useState12","showModal","setShowModal","myCamera","useRef","device","useCameraDevice","format","useCameraFormat","photoResolution","width","height","takePhoto","_callee","data","uri","base64","_regenerator","async","_context","prev","next","current","abrupt","awrap","qualityPrioritization","sent","path","goBack","callback","RNFS","readFile","stop","Promise","requestPermissions","request","Platform","OS","PERMISSIONS","IOS","CAMERA","ANDROID","then","result","RESULTS","UNAVAILABLE","console","log","AlertGlobal","show","type","title","message","primaryText","DENIED","onPrimaryPress","openSettings","LIMITED","GRANTED","BLOCKED","useEffect","interval","setInterval","Date","getTime","lastFace","isFace","clearInterval","handlerFace","event","timeout","setTimeout","clearTimeout","createElement","View","style","commonStyles","fill","backgroundColor","pointerEvents","__self","__source","fileName","lineNumber","columnNumber","alignCenter","justifyCenter","position","Dimensions","ref","isActive","photo","torch","hasTorch","ActivityIndicator","SafeAreaView","row","paddingHorizontal","marginTop","onPress","zIndex","IconBackWhite","flex","justifyContent","bottom","MText","textNormal","color","textAlign","paddingVertical","alignSelf","size","margin","TakePhotoSvg","isVisible","borderRadius","fontSize","fontWeight","center","alignItems","Selfie","flexDirection","TimaNormal","marginLeft","TouchableOpacity","colors","alignContent","textNormalBold","marginBottom","CIMBBank"],"sourceRoot":"../../../../src","sources":["screens/camera/index.tsx"],"mappings":"6UACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAcA,IAAAE,OAAA,CAAAF,OAAA,6BAKA,IAAAG,cAAA,CAAAH,OAAA,oBACA,IAAAI,aAAA,CAAAJ,OAAA,oBACA,IAAAK,QAAA,CAAAC,sBAAA,CAAAN,OAAA,8BAEA,IAAAO,uBAAA,CAAAP,OAAA,6BAMA,IAAAQ,wBAAA,CAAAR,OAAA,+BAKA,IAAAS,MAAA,CAAAT,OAAA,uBAaA,IAAAU,MAAA,CAAAJ,sBAAA,CAAAN,OAAA,aACA,IAAAW,MAAA,CAAAX,OAAA,2BACA,IAAAY,YAAA,CAAAZ,OAAA,mDACA,IAAAa,SAAA,CAAAP,sBAAA,CAAAN,OAAA,+BACA,IAAAc,0BAAA,CAAAR,sBAAA,CAAAN,OAAA,kCACA,IAAAe,cAAA,CAAAT,sBAAA,CAAAN,OAAA,qBAAmC,IAAAgB,YAAA,gFAAAjB,wBAAAkB,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAApB,uBAAA,UAAAA,wBAAAkB,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,CAAAK,UAAA,QAAAL,CAAA,KAAAM,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAC,SAAA,MA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A,CAAA7I,YAAA,CAAA8I,UAAA,KAAAC,YAAA,KAAE,CACP,CACF,CACM,CACT,CACH,CAAC,CAEX,CAAC,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.PaymentInfo=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _native=require("@react-navigation/native");var _mobxReactLite=require("mobx-react-lite");var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _api=require("../../services/api");var _icons=require("../../assets/icons");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _AlertGlobal=require("../../components/ModalNotification/AlertGlobal");var _MText=require("../../components/MText");var _utils=require("../../utils");var _CommonStyles=require("../CommonStyles");var _store=_interopRequireDefault(require("./store"));var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _reactNativeBlobUtil=_interopRequireDefault(require("react-native-blob-util"));var _cameraRoll=require("@react-native-camera-roll/camera-roll");var _moment=_interopRequireDefault(require("moment"));var _reactNativeModal=_interopRequireDefault(require("react-native-modal"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _rnTourguide=require("rn-tourguide");var _reactNativeSafeAreaContext=require("react-native-safe-area-context");var _storage=require("../../utils/storage");var _jsxFileName="/Users/tima/Tima/react-native-timacare/src/screens/detail-loan/PaymentInfo.tsx",_this=this;function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var logoView={position:'absolute',width:'100%',height:'100%',resizeMode:'cover'};var PaymentInfo=exports.PaymentInfo=(0,_mobxReactLite.observer)(function PaymentInfo(props){return _react.default.createElement(_rnTourguide.TourGuideProvider,{borderRadius:8,maskOffset:4,tooltipComponent:TransferContentTooltip,tooltipStyle:$tourTooltipPosition,backdropColor:"rgba(0, 0, 0, 0.35)",androidStatusBarVisible:true,verticalOffset:_reactNative.Platform.OS==='android'?_reactNative.StatusBar.currentHeight-25:0,__self:this,__source:{fileName:_jsxFileName,lineNumber:57,columnNumber:5}},_react.default.createElement(PaymentInfoContent,(0,_extends2.default)({},props,{__self:this,__source:{fileName:_jsxFileName,lineNumber:68,columnNumber:7}})));});var TransferContentTooltip=function TransferContentTooltip(_ref){var currentStep=_ref.currentStep,handleStop=_ref.handleStop;return _react.default.createElement(_reactNative.View,{style:$tourTooltip,__self:_this,__source:{fileName:_jsxFileName,lineNumber:75,columnNumber:5}},_react.default.createElement(_MText.MText,{style:$tourTooltipText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:76,columnNumber:7}},currentStep==null?void 0:currentStep.text),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:handleStop,style:$tourTooltipButton,__self:_this,__source:{fileName:_jsxFileName,lineNumber:77,columnNumber:7}},_react.default.createElement(_MText.MText,{style:$tourTooltipButtonText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:78,columnNumber:9}},"\u0110\u1ED3ng \xFD")),_react.default.createElement(_reactNative.View,{style:$tourTooltipArrow,__self:_this,__source:{fileName:_jsxFileName,lineNumber:80,columnNumber:7}}));};var PaymentInfoContent=(0,_mobxReactLite.observer)(function PaymentInfoContent(props){var _props$route,_props$route$params5,_props$route3,_props$route3$params;var insets=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)();var navigation=(0,_native.useNavigation)();var scrollViewRef=(0,_react.useRef)(null);var transferContentRef=(0,_react.useRef)(null);var transferContentY=(0,_react.useRef)(0);var transferContentHeight=(0,_react.useRef)(0);var scrollViewHeight=(0,_react.useRef)(0);var scrollContentHeight=(0,_react.useRef)(0);var startGuideTimeout=(0,_react.useRef)();var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),shouldStartGuide=_useState2[0],setShouldStartGuide=_useState2[1];var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),isGuideRunning=_useState4[0],setIsGuideRunning=_useState4[1];var _useState5=(0,_react.useState)(),_useState6=(0,_slicedToArray2.default)(_useState5,2),data=_useState6[0],setData=_useState6[1];var _useState7=(0,_react.useState)(),_useState8=(0,_slicedToArray2.default)(_useState7,2),linkImage=_useState8[0],setLinkImage=_useState8[1];var _useState9=(0,_react.useState)(false),_useState0=(0,_slicedToArray2.default)(_useState9,2),isLoading=_useState0[0],setIsLoading=_useState0[1];var _useState1=(0,_react.useState)(false),_useState10=(0,_slicedToArray2.default)(_useState1,2),showGuide=_useState10[0],setShowGuide=_useState10[1];var _useTourGuideControll=(0,_rnTourguide.useTourGuideController)(),canStart=_useTourGuideControll.canStart,start=_useTourGuideControll.start,eventEmitter=_useTourGuideControll.eventEmitter;var getLinkQr=function getLinkQr(money){var _props$route$params,_props$route$params$l;setIsLoading(true);_api.Api.getInstance().getQrPayment({LoanBriefId:props==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,TypeCloseLoan:props!=null&&props.route.params.isFull?1:0,Money:money}).then(function(response){setIsLoading(false);if(response.kind==='ok'){if(response.data.meta.errorCode===200){var _response$data,_response$data$data,_props$route$params2;setLinkImage((_response$data=response.data)==null?void 0:(_response$data$data=_response$data.data)==null?void 0:_response$data$data.fullPath);if(props!=null&&(_props$route$params2=props.route.params)!=null&&_props$route$params2.isFull){setShowGuide(true);}else{setShouldStartGuide(true);}}else{var _response$data2,_response$data2$meta;_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:response==null?void 0:(_response$data2=response.data)==null?void 0:(_response$data2$meta=_response$data2.meta)==null?void 0:_response$data2$meta.errorMessage,primaryText:'Đóng'});}}else{_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Có lỗi xảy ra. Vui lòng thử lại sau',primaryText:'Đóng'});}}).catch(function(err){_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Có lỗi xảy ra. Vui lòng thử lại sau',primaryText:'Đóng'});setIsLoading(false);});};var getData=function getData(){var _props$route$params3,_props$route$params3$;setIsLoading(true);_store.default.getPaymentInfo(props==null?void 0:(_props$route$params3=props.route.params)==null?void 0:(_props$route$params3$=_props$route$params3.loan)==null?void 0:_props$route$params3$.id,props!=null&&props.route.params.isFull?2:1,function(res){setData(res);getLinkQr(res==null?void 0:res.totalMoney);},function(){setIsLoading(false);});};(0,_react.useEffect)(function(){getData();},[]);(0,_react.useEffect)(function(){var handleStartGuide=function handleStartGuide(){return setIsGuideRunning(true);};var handleStopGuide=function handleStopGuide(){return setIsGuideRunning(false);};eventEmitter==null?void 0:eventEmitter.on('start',handleStartGuide);eventEmitter==null?void 0:eventEmitter.on('stop',handleStopGuide);return function(){eventEmitter==null?void 0:eventEmitter.off('start',handleStartGuide);eventEmitter==null?void 0:eventEmitter.off('stop',handleStopGuide);};},[eventEmitter]);var scrollToTransferContent=function scrollToTransferContent(){var _scrollViewRef$curren2,_transferContentRef$c;var scrollToY=function scrollToY(y){var _scrollViewRef$curren;var targetHeight=arguments.length>1&&arguments[1]!==undefined?arguments[1]:transferContentHeight.current;var viewportHeight=scrollViewHeight.current||_reactNative.Dimensions.get('window').height;var contentHeight=scrollContentHeight.current||viewportHeight;var maxScrollY=Math.max(contentHeight-viewportHeight,0);var minTopForTooltip=120;var bottomGap=80;var preferredTargetTop=Math.min(Math.max(viewportHeight*0.42,minTopForTooltip),Math.max(viewportHeight-targetHeight-bottomGap,minTopForTooltip));var nextScrollY=Math.min(Math.max(y-preferredTargetTop,0),maxScrollY);(_scrollViewRef$curren=scrollViewRef.current)==null?void 0:_scrollViewRef$curren.scrollTo({y:nextScrollY,animated:true});};var innerViewNode=(_scrollViewRef$curren2=scrollViewRef.current)==null?void 0:_scrollViewRef$curren2.getInnerViewNode==null?void 0:_scrollViewRef$curren2.getInnerViewNode();if(innerViewNode&&(_transferContentRef$c=transferContentRef.current)!=null&&_transferContentRef$c.measureLayout){transferContentRef.current.measureLayout(innerViewNode,function(_x,y,_width,height){return scrollToY(y,height);},function(){return scrollToY(transferContentY.current);});}else{scrollToY(transferContentY.current);}};var startGuide=function _callee(){var guide;return _regenerator.default.async(function(_context){while(1)switch(_context.prev=_context.next){case 0:_context.next=1;return _regenerator.default.awrap((0,_storage.load)('show_guide_qr_code'));case 1:guide=_context.sent;if(!guide){scrollToTransferContent();startGuideTimeout.current=setTimeout(function(){start(1);setShouldStartGuide(false);(0,_storage.save)('show_guide_qr_code','true');},450);}else{setShouldStartGuide(false);}case 2:case"end":return _context.stop();}},null,null,null,Promise);};(0,_react.useEffect)(function(){var _props$route$params4;if(!(props!=null&&(_props$route$params4=props.route.params)!=null&&_props$route$params4.isFull)&&shouldStartGuide&&canStart){startGuide();}return function(){if(startGuideTimeout.current){clearTimeout(startGuideTimeout.current);}};},[canStart,shouldStartGuide,start]);return _react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:250,columnNumber:5}},_react.default.createElement(_MHeader.default,{title:"Vay tr\u1EF1c tuy\u1EBFn 24/7",__self:this,__source:{fileName:_jsxFileName,lineNumber:251,columnNumber:7}}),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:252,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:$header,__self:this,__source:{fileName:_jsxFileName,lineNumber:253,columnNumber:9}},_react.default.createElement(_reactNative.TouchableOpacity,{style:$backButton,onPress:function onPress(){return navigation.goBack();},__self:this,__source:{fileName:_jsxFileName,lineNumber:254,columnNumber:11}},_react.default.createElement(_icons.IconBack,{__self:this,__source:{fileName:_jsxFileName,lineNumber:258,columnNumber:13}})),_react.default.createElement(_MText.MText,{style:{fontSize:16,fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:260,columnNumber:11}},props!=null&&props.route.params.isFull?'TẤT TOÁN HỢP ĐỒNG':'THANH TOÁN KỲ')),_react.default.createElement(_reactNative.ScrollView,{ref:scrollViewRef,scrollEnabled:!isGuideRunning,onLayout:function onLayout(event){scrollViewHeight.current=event.nativeEvent.layout.height;},onContentSizeChange:function onContentSizeChange(_width,height){scrollContentHeight.current=height;},style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:270,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{marginHorizontal:16,marginBottom:16,backgroundColor:'white',borderRadius:8,padding:16,shadowColor:'#000000',shadowOffset:{width:1,height:1},shadowOpacity:0.2},__self:this,__source:{fileName:_jsxFileName,lineNumber:281,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{fontWeight:'300',textAlign:'center'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:296,columnNumber:13}},"\u0110\u1EC3 thanh to\xE1n h\u1EE3p \u0111\u1ED3ng, vui l\xF2ng chuy\u1EC3n kho\u1EA3n t\u1EDBi"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{textAlign:'center',marginTop:5}],__self:this,__source:{fileName:_jsxFileName,lineNumber:304,columnNumber:13}},data==null?void 0:data.vaBankName),_react.default.createElement(_reactNative.View,{style:{flexDirection:'column',justifyContent:'center',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:312,columnNumber:13}},_react.default.createElement(_reactNative.Image,{source:{uri:linkImage},style:{width:_reactNative.Dimensions.get('window').width-100,height:_reactNative.Dimensions.get('window').width-100,resizeMode:'contain'},__self:this,__source:{fileName:_jsxFileName,lineNumber:319,columnNumber:15}}),_react.default.createElement(_reactNative.TouchableOpacity,{style:{marginTop:10,flexDirection:'row',alignItems:'center',gap:5,backgroundColor:'#FFF7F0',borderWidth:1,borderColor:'#EF592E',borderRadius:4,paddingHorizontal:8,paddingVertical:4},onPress:function _callee2(){return _regenerator.default.async(function(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_reactNativeBlobUtil.default.config({fileCache:true,appendExt:'png'}).fetch('GET',linkImage).then(function(res){_cameraRoll.CameraRoll.saveAsset(res.data,{type:'photo'}).then(function(){_AlertGlobal.AlertGlobal.show({type:'success',title:'Thông báo',message:'Tải mã QR thành công',primaryText:'Đóng'});}).catch(function(error){_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Có lỗi xảy ra. Vui lòng thử lại sau',primaryText:'Đóng'});console.log(error);});}).catch(function(error){console.log(error);_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Có lỗi xảy ra. Vui lòng thử lại sau',primaryText:'Đóng'});});case 1:case"end":return _context2.stop();}},null,null,null,Promise);},__self:this,__source:{fileName:_jsxFileName,lineNumber:329,columnNumber:15}},_react.default.createElement(_icons.IconDownload,{__self:this,__source:{fileName:_jsxFileName,lineNumber:379,columnNumber:17}}),_react.default.createElement(_MText.MText,{style:{color:'rgba(51, 51, 51, 1)',fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:380,columnNumber:17}},"T\u1EA3i m\xE3 QR"))),_react.default.createElement(_reactNative.View,{style:{height:1,marginVertical:16,backgroundColor:'#E0E0E0'},__self:this,__source:{fileName:_jsxFileName,lineNumber:390,columnNumber:13}}),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{fontWeight:'300'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:397,columnNumber:13}},"S\u1ED1 t\xE0i kho\u1EA3n"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:400,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'rgba(61, 61, 61, 1)',fontWeight:'600',fontSize:16,fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:407,columnNumber:15}},data==null?void 0:data.vaAccount),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return copyToClipboard(data==null?void 0:data.vaAccount);},__self:this,__source:{fileName:_jsxFileName,lineNumber:417,columnNumber:15}},_react.default.createElement(_icons.IconCopy,{__self:this,__source:{fileName:_jsxFileName,lineNumber:420,columnNumber:17}}))),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{fontWeight:'300',marginTop:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:424,columnNumber:13}},"T\xEAn t\xE0i kho\u1EA3n th\u1EE5 h\u01B0\u1EDFng"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:432,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'rgba(61, 61, 61, 1)',fontWeight:'600',fontSize:16,fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:439,columnNumber:15}},data==null?void 0:data.accountName)),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{fontWeight:'300',marginTop:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:450,columnNumber:13}},"S\u1ED1 ti\u1EC1n ph\u1EA3i tr\u1EA3"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:458,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'rgba(61, 61, 61, 1)',fontWeight:'600',fontSize:16,fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:465,columnNumber:15}},' ',(0,_utils.formatMoney)(data==null?void 0:data.totalMoney)," VN\u0110 ",'\n',' ',_react.default.createElement(_MText.MText,{style:{color:'#828282',fontSize:10,fontStyle:'italic'},__self:this,__source:{fileName:_jsxFileName,lineNumber:475,columnNumber:17}},"S\u1ED1 ti\u1EC1n \u0111\u01B0\u1EE3c t\xEDnh \u0111\u1EBFn ng\xE0y ",(0,_moment.default)().format('DD/MM/YYYY'))),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return copyToClipboard(String(data==null?void 0:data.totalMoney));},__self:this,__source:{fileName:_jsxFileName,lineNumber:485,columnNumber:15}},_react.default.createElement(_icons.IconCopy,{__self:this,__source:{fileName:_jsxFileName,lineNumber:488,columnNumber:17}}))),_react.default.createElement(_rnTourguide.TourGuideZone,{zone:1,text:'Để hệ thống ghi nhận chính xác khoản thanh toán, bạn đừng quên sao chép đúng nội dung chuyển khoản nhé!',tooltipBottomOffset:-45,style:$transferGuideZone,__self:this,__source:{fileName:_jsxFileName,lineNumber:492,columnNumber:13}},_react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:500,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{fontWeight:'300'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:501,columnNumber:17}},"N\u1ED9i dung chuy\u1EC3n kho\u1EA3n",' ',_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#EB5757',fontWeight:'300'},__self:this,__source:{fileName:_jsxFileName,lineNumber:503,columnNumber:19}},"(B\u1EAFt bu\u1ED9c)")),_react.default.createElement(_reactNative.View,{ref:transferContentRef,onLayout:function onLayout(event){transferContentY.current=event.nativeEvent.layout.y;transferContentHeight.current=event.nativeEvent.layout.height;},style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'},__self:this,__source:{fileName:_jsxFileName,lineNumber:513,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{color:'rgba(61, 61, 61, 1)',fontWeight:'600',fontSize:16,fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:526,columnNumber:19}},props!=null&&(_props$route=props.route)!=null&&(_props$route$params5=_props$route.params)!=null&&_props$route$params5.isFull?"Tat toan TC"+(data==null?void 0:data.codeId):"TC"+(data==null?void 0:data.codeId)),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){var _props$route2,_props$route2$params;return _reactNative.Clipboard.setString(props!=null&&(_props$route2=props.route)!=null&&(_props$route2$params=_props$route2.params)!=null&&_props$route2$params.isFull?"Tat toan TC"+(data==null?void 0:data.codeId):"TC"+(data==null?void 0:data.codeId));},__self:this,__source:{fileName:_jsxFileName,lineNumber:538,columnNumber:19}},_react.default.createElement(_icons.IconCopy,{__self:this,__source:{fileName:_jsxFileName,lineNumber:547,columnNumber:21}}))))),_react.default.createElement(_reactNative.View,{style:{backgroundColor:'#FFF2F2',padding:10,borderRadius:8,marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:553,columnNumber:13}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{fontSize:12,color:'#EB5757'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:561,columnNumber:15}},"*L\u01B0u \xFD:"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{fontSize:12,marginTop:5}],__self:this,__source:{fileName:_jsxFileName,lineNumber:569,columnNumber:15}},"- Th\xF4ng tin t\xE0i kho\u1EA3n d\u1ECBch v\u1EE5 h\u1ED7 tr\u1EE3 thu h\u1ED9 cung c\u1EA5p b\u1EDFi GPay",' '),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{fontSize:12,marginTop:5}],__self:this,__source:{fileName:_jsxFileName,lineNumber:577,columnNumber:15}},"- S\u1ED1 ti\u1EC1n thanh to\xE1n s\u1EBD \u0111\u01B0\u1EE3c CIMB ph\xE2n b\u1ED5 theo th\u1EE9 t\u1EF1 \u0111\u01B0\u1EE3c quy \u0111\u1ECBnh trong \u0110i\u1EC1u ki\u1EC7n & \u0110i\u1EC1u kho\u1EA3n c\u1EE7a s\u1EA3n ph\u1EA9m")))),_react.default.createElement(_reactNative.View,{style:{marginBottom:insets.bottom},__self:this,__source:{fileName:_jsxFileName,lineNumber:589,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',padding:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:594,columnNumber:11}},_react.default.createElement(_MText.MText,{__self:this,__source:{fileName:_jsxFileName,lineNumber:602,columnNumber:13}},"H\u01B0\u1EDBng d\u1EABn chuy\u1EC3n ti\u1EC1n"),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){if(props!=null&&props.route.params.isFull){setShowGuide(true);}else{navigation.push('GuideTransferBank');}},__self:this,__source:{fileName:_jsxFileName,lineNumber:603,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'#2F80ED',textDecorationLine:'underline'},__self:this,__source:{fileName:_jsxFileName,lineNumber:612,columnNumber:15}},"Xem chi ti\u1EBFt"))),(props==null?void 0:(_props$route3=props.route)==null?void 0:(_props$route3$params=_props$route3.params)==null?void 0:_props$route3$params.isFull)&&_react.default.createElement(_reactNative.TouchableOpacity,{style:{marginHorizontal:16,marginBottom:16},onPress:function onPress(){_AlertGlobal.AlertGlobal.show({type:'confirm',title:'Xác nhận tất toán',message:'Bạn có chắc muốn gửi YÊU CẦU TẤT TOÁN hợp đồng không?',primaryText:'Có',onPrimaryPress:function onPrimaryPress(){var _props$route$params6,_props$route$params6$,_response$data3,_response$data3$meta;var response,_response$data4,_response$data4$meta;return _regenerator.default.async(function(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=1;return _regenerator.default.awrap(_api.Api.getInstance().confirm_final_settlement({loanBriefId:props==null?void 0:(_props$route$params6=props.route.params)==null?void 0:(_props$route$params6$=_props$route$params6.loan)==null?void 0:_props$route$params6$.id}));case 1:response=_context3.sent;if(response.kind==='ok'&&((_response$data3=response.data)==null?void 0:(_response$data3$meta=_response$data3.meta)==null?void 0:_response$data3$meta.errorCode)===200){_AlertGlobal.AlertGlobal.show({type:'success',title:'GỬI YÊU CẦU THÀNH CÔNG!',message:'Yêu cầu tất toán đang được Tima xử lý, vui lòng chờ trong ít phút.',primaryText:'Đồng ý',onPrimaryPress:function onPrimaryPress(){navigation.navigate('Main');}});}else{_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:(response==null?void 0:(_response$data4=response.data)==null?void 0:(_response$data4$meta=_response$data4.meta)==null?void 0:_response$data4$meta.errorMessage)||'Có lỗi xảy ra. Vui lòng thử lại sau',primaryText:'Đóng'});}case 2:case"end":return _context3.stop();}},null,null,null,Promise);},secondaryText:'Không'});},__self:this,__source:{fileName:_jsxFileName,lineNumber:620,columnNumber:13}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF7A00','#EF4123'],style:{alignItems:'center',borderRadius:30,height:40,justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:664,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{color:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:673,columnNumber:17}},"X\xE1c nh\u1EADn t\u1EA5t to\xE1n"))))),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:685,columnNumber:7}}),_react.default.createElement(_reactNativeModal.default,{isVisible:showGuide,onBackdropPress:function onBackdropPress(){return setShowGuide(false);},style:{justifyContent:'flex-end',margin:0},__self:this,__source:{fileName:_jsxFileName,lineNumber:687,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{backgroundColor:'white',borderTopLeftRadius:30,borderTopRightRadius:30},__self:this,__source:{fileName:_jsxFileName,lineNumber:692,columnNumber:9}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{borderTopLeftRadius:30,borderTopRightRadius:30,paddingBottom:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:699,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:{padding:16,alignItems:'center',gap:4},__self:this,__source:{fileName:_jsxFileName,lineNumber:707,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{fontSize:16,fontWeight:'600',color:'white',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:708,columnNumber:15}},"C\xC1C B\u01AF\u1EDAC T\u1EA4T TO\xC1N"),_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:718,columnNumber:15}},"C\xF3 2 b\u01B0\u1EDBc, vui l\xF2ng \u0111\u1ECDc k\u0129 th\xF4ng tin"))),_react.default.createElement(_reactNative.View,{style:{backgroundColor:'white',borderTopLeftRadius:30,borderTopRightRadius:30,top:-24,padding:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:728,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold',color:'#EF592E'},__self:this,__source:{fileName:_jsxFileName,lineNumber:737,columnNumber:13}},"B\u01AF\u1EDAC 1: CHUY\u1EC2N KHO\u1EA2N"),_react.default.createElement(_MText.MText,{style:{fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:746,columnNumber:13}},"C\xE1ch 1: Thanh to\xE1n b\u1EB1ng QR (Khuy\u1EBFn ngh\u1ECB)"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:755,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:763,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:764,columnNumber:15}},"L\u01B0u ho\u1EB7c qu\xE9t m\xE3 QR")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:768,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:776,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:777,columnNumber:15}},"M\u1EDF app ng\xE2n h\xE0ng v\xE0 thanh to\xE1n")),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'rgba(224, 224, 224, 1)',marginVertical:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:781,columnNumber:13}}),_react.default.createElement(_MText.MText,{style:{fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:788,columnNumber:13}},"C\xE1ch 2: Chuy\u1EC3n kho\u1EA3n th\u1EE7 c\xF4ng"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:796,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:804,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:805,columnNumber:15}},"Copy th\xF4ng tin t\xE0i kho\u1EA3n (S\u1ED1 TK, Ng\xE2n h\xE0ng, S\u1ED1 ti\u1EC1n)")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:809,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:817,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:818,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{color:'#EB5757',fontSize:12,fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:819,columnNumber:17}},"B\u1EAET BU\u1ED8C:"),' ',"Copy \u0111\xFAng \u201CN\u1ED9i dung chuy\u1EC3n kho\u1EA3n\u201D")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:832,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:840,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:841,columnNumber:15}},"M\u1EDF app ng\xE2n h\xE0ng v\xE0 thanh to\xE1n")),_react.default.createElement(_reactNative.View,{style:{height:12,backgroundColor:'#FFF3E9',marginVertical:10,marginHorizontal:-16},__self:this,__source:{fileName:_jsxFileName,lineNumber:845,columnNumber:13}}),_react.default.createElement(_MText.MText,{style:{fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold',color:'#EF592E'},__self:this,__source:{fileName:_jsxFileName,lineNumber:853,columnNumber:13}},"B\u01AF\u1EDAC 2:"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:862,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:870,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:871,columnNumber:15}},"Ch\u1ECDn \u201CX\xE1c nh\u1EADn t\u1EA5t to\xE1n\u201D \u0111\u1EC3 g\u1EEDi y\xEAu c\u1EA7u t\u1EDBi Tima th\u1EF1c hi\u1EC7n \u201CT\u1EA5t to\xE1n h\u1EE3p \u0111\u1ED3ng\u201D"))),_react.default.createElement(_reactNative.TouchableOpacity,{style:{position:'absolute',left:16,top:16},onPress:function onPress(){return setShowGuide(false);},__self:this,__source:{fileName:_jsxFileName,lineNumber:877,columnNumber:11}},_react.default.createElement(_icons.CloseIcon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:881,columnNumber:13}})))));});var $backButton={position:'absolute',left:16};var $header={flexDirection:'row',alignItems:'center',paddingVertical:16,justifyContent:'center'};var $tourTooltipPosition={alignItems:'flex-end',overflow:'visible',paddingHorizontal:16,paddingTop:0,paddingBottom:0,borderRadius:0};var $tourTooltip={width:224,minHeight:84,backgroundColor:'white',borderRadius:8,paddingHorizontal:12,paddingTop:10,paddingBottom:12,shadowColor:'#000',shadowOffset:{width:0,height:2},shadowOpacity:0.18,shadowRadius:8,elevation:8};var $tourTooltipText={color:'#333333',fontSize:10,lineHeight:16,fontWeight:'400'};var $tourTooltipButton={alignSelf:'flex-end',marginTop:6};var $tourTooltipButtonText={color:'#EF592E',fontSize:10,lineHeight:16,textDecorationLine:'underline'};var $tourTooltipArrow={position:'absolute',right:18,bottom:-10,width:0,height:0,borderLeftWidth:8,borderRightWidth:8,borderTopWidth:10,borderLeftColor:'transparent',borderRightColor:'transparent',borderTopColor:'white'};var $transferGuideZone={backgroundColor:'white',borderRadius:8,borderWidth:2,borderColor:'white',marginTop:16};
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.PaymentInfo=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _native=require("@react-navigation/native");var _mobxReactLite=require("mobx-react-lite");var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _api=require("../../services/api");var _icons=require("../../assets/icons");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _AlertGlobal=require("../../components/ModalNotification/AlertGlobal");var _MText=require("../../components/MText");var _utils=require("../../utils");var _CommonStyles=require("../CommonStyles");var _store=_interopRequireDefault(require("./store"));var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _reactNativeBlobUtil=_interopRequireDefault(require("react-native-blob-util"));var _cameraRoll=require("@react-native-camera-roll/camera-roll");var _moment=_interopRequireDefault(require("moment"));var _AppModal=_interopRequireDefault(require("../../components/AppModal"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _rnTourguide=require("rn-tourguide");var _reactNativeSafeAreaContext=require("react-native-safe-area-context");var _storage=require("../../utils/storage");var _jsxFileName="/Users/tima/Tima/react-native-timacare/src/screens/detail-loan/PaymentInfo.tsx",_this=this;function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var logoView={position:'absolute',width:'100%',height:'100%',resizeMode:'cover'};var PaymentInfo=exports.PaymentInfo=(0,_mobxReactLite.observer)(function PaymentInfo(props){return _react.default.createElement(_rnTourguide.TourGuideProvider,{borderRadius:8,maskOffset:4,tooltipComponent:TransferContentTooltip,tooltipStyle:$tourTooltipPosition,backdropColor:"rgba(0, 0, 0, 0.35)",androidStatusBarVisible:true,verticalOffset:_reactNative.Platform.OS==='android'?_reactNative.StatusBar.currentHeight-25:0,__self:this,__source:{fileName:_jsxFileName,lineNumber:57,columnNumber:5}},_react.default.createElement(PaymentInfoContent,(0,_extends2.default)({},props,{__self:this,__source:{fileName:_jsxFileName,lineNumber:68,columnNumber:7}})));});var TransferContentTooltip=function TransferContentTooltip(_ref){var currentStep=_ref.currentStep,handleStop=_ref.handleStop;return _react.default.createElement(_reactNative.View,{style:$tourTooltip,__self:_this,__source:{fileName:_jsxFileName,lineNumber:75,columnNumber:5}},_react.default.createElement(_MText.MText,{style:$tourTooltipText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:76,columnNumber:7}},currentStep==null?void 0:currentStep.text),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:handleStop,style:$tourTooltipButton,__self:_this,__source:{fileName:_jsxFileName,lineNumber:77,columnNumber:7}},_react.default.createElement(_MText.MText,{style:$tourTooltipButtonText,__self:_this,__source:{fileName:_jsxFileName,lineNumber:78,columnNumber:9}},"\u0110\u1ED3ng \xFD")),_react.default.createElement(_reactNative.View,{style:$tourTooltipArrow,__self:_this,__source:{fileName:_jsxFileName,lineNumber:80,columnNumber:7}}));};var PaymentInfoContent=(0,_mobxReactLite.observer)(function PaymentInfoContent(props){var _props$route,_props$route$params5,_props$route3,_props$route3$params;var insets=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)();var navigation=(0,_native.useNavigation)();var scrollViewRef=(0,_react.useRef)(null);var transferContentRef=(0,_react.useRef)(null);var transferContentY=(0,_react.useRef)(0);var transferContentHeight=(0,_react.useRef)(0);var scrollViewHeight=(0,_react.useRef)(0);var scrollContentHeight=(0,_react.useRef)(0);var startGuideTimeout=(0,_react.useRef)();var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),shouldStartGuide=_useState2[0],setShouldStartGuide=_useState2[1];var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),isGuideRunning=_useState4[0],setIsGuideRunning=_useState4[1];var _useState5=(0,_react.useState)(),_useState6=(0,_slicedToArray2.default)(_useState5,2),data=_useState6[0],setData=_useState6[1];var _useState7=(0,_react.useState)(),_useState8=(0,_slicedToArray2.default)(_useState7,2),linkImage=_useState8[0],setLinkImage=_useState8[1];var _useState9=(0,_react.useState)(false),_useState0=(0,_slicedToArray2.default)(_useState9,2),isLoading=_useState0[0],setIsLoading=_useState0[1];var _useState1=(0,_react.useState)(false),_useState10=(0,_slicedToArray2.default)(_useState1,2),showGuide=_useState10[0],setShowGuide=_useState10[1];var _useTourGuideControll=(0,_rnTourguide.useTourGuideController)(),canStart=_useTourGuideControll.canStart,start=_useTourGuideControll.start,eventEmitter=_useTourGuideControll.eventEmitter;var getLinkQr=function getLinkQr(money){var _props$route$params,_props$route$params$l;setIsLoading(true);_api.Api.getInstance().getQrPayment({LoanBriefId:props==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,TypeCloseLoan:props!=null&&props.route.params.isFull?1:0,Money:money}).then(function(response){setIsLoading(false);if(response.kind==='ok'){if(response.data.meta.errorCode===200){var _response$data,_response$data$data,_props$route$params2;setLinkImage((_response$data=response.data)==null?void 0:(_response$data$data=_response$data.data)==null?void 0:_response$data$data.fullPath);if(props!=null&&(_props$route$params2=props.route.params)!=null&&_props$route$params2.isFull){setShowGuide(true);}else{setShouldStartGuide(true);}}else{var _response$data2,_response$data2$meta;_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:response==null?void 0:(_response$data2=response.data)==null?void 0:(_response$data2$meta=_response$data2.meta)==null?void 0:_response$data2$meta.errorMessage,primaryText:'Đóng'});}}else{_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Có lỗi xảy ra. Vui lòng thử lại sau',primaryText:'Đóng'});}}).catch(function(err){_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Có lỗi xảy ra. Vui lòng thử lại sau',primaryText:'Đóng'});setIsLoading(false);});};var getData=function getData(){var _props$route$params3,_props$route$params3$;setIsLoading(true);_store.default.getPaymentInfo(props==null?void 0:(_props$route$params3=props.route.params)==null?void 0:(_props$route$params3$=_props$route$params3.loan)==null?void 0:_props$route$params3$.id,props!=null&&props.route.params.isFull?2:1,function(res){setData(res);getLinkQr(res==null?void 0:res.totalMoney);},function(){setIsLoading(false);});};(0,_react.useEffect)(function(){getData();},[]);(0,_react.useEffect)(function(){var handleStartGuide=function handleStartGuide(){return setIsGuideRunning(true);};var handleStopGuide=function handleStopGuide(){return setIsGuideRunning(false);};eventEmitter==null?void 0:eventEmitter.on('start',handleStartGuide);eventEmitter==null?void 0:eventEmitter.on('stop',handleStopGuide);return function(){eventEmitter==null?void 0:eventEmitter.off('start',handleStartGuide);eventEmitter==null?void 0:eventEmitter.off('stop',handleStopGuide);};},[eventEmitter]);var scrollToTransferContent=function scrollToTransferContent(){var _scrollViewRef$curren2,_transferContentRef$c;var scrollToY=function scrollToY(y){var _scrollViewRef$curren;var targetHeight=arguments.length>1&&arguments[1]!==undefined?arguments[1]:transferContentHeight.current;var viewportHeight=scrollViewHeight.current||_reactNative.Dimensions.get('window').height;var contentHeight=scrollContentHeight.current||viewportHeight;var maxScrollY=Math.max(contentHeight-viewportHeight,0);var minTopForTooltip=120;var bottomGap=80;var preferredTargetTop=Math.min(Math.max(viewportHeight*0.42,minTopForTooltip),Math.max(viewportHeight-targetHeight-bottomGap,minTopForTooltip));var nextScrollY=Math.min(Math.max(y-preferredTargetTop,0),maxScrollY);(_scrollViewRef$curren=scrollViewRef.current)==null?void 0:_scrollViewRef$curren.scrollTo({y:nextScrollY,animated:true});};var innerViewNode=(_scrollViewRef$curren2=scrollViewRef.current)==null?void 0:_scrollViewRef$curren2.getInnerViewNode==null?void 0:_scrollViewRef$curren2.getInnerViewNode();if(innerViewNode&&(_transferContentRef$c=transferContentRef.current)!=null&&_transferContentRef$c.measureLayout){transferContentRef.current.measureLayout(innerViewNode,function(_x,y,_width,height){return scrollToY(y,height);},function(){return scrollToY(transferContentY.current);});}else{scrollToY(transferContentY.current);}};var startGuide=function _callee(){var guide;return _regenerator.default.async(function(_context){while(1)switch(_context.prev=_context.next){case 0:_context.next=1;return _regenerator.default.awrap((0,_storage.load)('show_guide_qr_code'));case 1:guide=_context.sent;if(!guide){scrollToTransferContent();startGuideTimeout.current=setTimeout(function(){start(1);setShouldStartGuide(false);(0,_storage.save)('show_guide_qr_code','true');},450);}else{setShouldStartGuide(false);}case 2:case"end":return _context.stop();}},null,null,null,Promise);};(0,_react.useEffect)(function(){var _props$route$params4;if(!(props!=null&&(_props$route$params4=props.route.params)!=null&&_props$route$params4.isFull)&&shouldStartGuide&&canStart){startGuide();}return function(){if(startGuideTimeout.current){clearTimeout(startGuideTimeout.current);}};},[canStart,shouldStartGuide,start]);return _react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:250,columnNumber:5}},_react.default.createElement(_MHeader.default,{title:"Vay tr\u1EF1c tuy\u1EBFn 24/7",__self:this,__source:{fileName:_jsxFileName,lineNumber:251,columnNumber:7}}),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:252,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:$header,__self:this,__source:{fileName:_jsxFileName,lineNumber:253,columnNumber:9}},_react.default.createElement(_reactNative.TouchableOpacity,{style:$backButton,onPress:function onPress(){return navigation.goBack();},__self:this,__source:{fileName:_jsxFileName,lineNumber:254,columnNumber:11}},_react.default.createElement(_icons.IconBack,{__self:this,__source:{fileName:_jsxFileName,lineNumber:258,columnNumber:13}})),_react.default.createElement(_MText.MText,{style:{fontSize:16,fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:260,columnNumber:11}},props!=null&&props.route.params.isFull?'TẤT TOÁN HỢP ĐỒNG':'THANH TOÁN KỲ')),_react.default.createElement(_reactNative.ScrollView,{ref:scrollViewRef,scrollEnabled:!isGuideRunning,onLayout:function onLayout(event){scrollViewHeight.current=event.nativeEvent.layout.height;},onContentSizeChange:function onContentSizeChange(_width,height){scrollContentHeight.current=height;},style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:270,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{marginHorizontal:16,marginBottom:16,backgroundColor:'white',borderRadius:8,padding:16,shadowColor:'#000000',shadowOffset:{width:1,height:1},shadowOpacity:0.2},__self:this,__source:{fileName:_jsxFileName,lineNumber:281,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{fontWeight:'300',textAlign:'center'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:296,columnNumber:13}},"\u0110\u1EC3 thanh to\xE1n h\u1EE3p \u0111\u1ED3ng, vui l\xF2ng chuy\u1EC3n kho\u1EA3n t\u1EDBi"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{textAlign:'center',marginTop:5}],__self:this,__source:{fileName:_jsxFileName,lineNumber:304,columnNumber:13}},data==null?void 0:data.vaBankName),_react.default.createElement(_reactNative.View,{style:{flexDirection:'column',justifyContent:'center',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:312,columnNumber:13}},_react.default.createElement(_reactNative.Image,{source:{uri:linkImage},style:{width:_reactNative.Dimensions.get('window').width-100,height:_reactNative.Dimensions.get('window').width-100,resizeMode:'contain'},__self:this,__source:{fileName:_jsxFileName,lineNumber:319,columnNumber:15}}),_react.default.createElement(_reactNative.TouchableOpacity,{style:{marginTop:10,flexDirection:'row',alignItems:'center',gap:5,backgroundColor:'#FFF7F0',borderWidth:1,borderColor:'#EF592E',borderRadius:4,paddingHorizontal:8,paddingVertical:4},onPress:function _callee2(){return _regenerator.default.async(function(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_reactNativeBlobUtil.default.config({fileCache:true,appendExt:'png'}).fetch('GET',linkImage).then(function(res){_cameraRoll.CameraRoll.saveAsset(res.data,{type:'photo'}).then(function(){_AlertGlobal.AlertGlobal.show({type:'success',title:'Thông báo',message:'Tải mã QR thành công',primaryText:'Đóng'});}).catch(function(error){_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Có lỗi xảy ra. Vui lòng thử lại sau',primaryText:'Đóng'});console.log(error);});}).catch(function(error){console.log(error);_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:'Có lỗi xảy ra. Vui lòng thử lại sau',primaryText:'Đóng'});});case 1:case"end":return _context2.stop();}},null,null,null,Promise);},__self:this,__source:{fileName:_jsxFileName,lineNumber:329,columnNumber:15}},_react.default.createElement(_icons.IconDownload,{__self:this,__source:{fileName:_jsxFileName,lineNumber:379,columnNumber:17}}),_react.default.createElement(_MText.MText,{style:{color:'rgba(51, 51, 51, 1)',fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:380,columnNumber:17}},"T\u1EA3i m\xE3 QR"))),_react.default.createElement(_reactNative.View,{style:{height:1,marginVertical:16,backgroundColor:'#E0E0E0'},__self:this,__source:{fileName:_jsxFileName,lineNumber:390,columnNumber:13}}),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{fontWeight:'300'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:397,columnNumber:13}},"S\u1ED1 t\xE0i kho\u1EA3n"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:400,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'rgba(61, 61, 61, 1)',fontWeight:'600',fontSize:16,fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:407,columnNumber:15}},data==null?void 0:data.vaAccount),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return copyToClipboard(data==null?void 0:data.vaAccount);},__self:this,__source:{fileName:_jsxFileName,lineNumber:417,columnNumber:15}},_react.default.createElement(_icons.IconCopy,{__self:this,__source:{fileName:_jsxFileName,lineNumber:420,columnNumber:17}}))),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{fontWeight:'300',marginTop:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:424,columnNumber:13}},"T\xEAn t\xE0i kho\u1EA3n th\u1EE5 h\u01B0\u1EDFng"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:432,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'rgba(61, 61, 61, 1)',fontWeight:'600',fontSize:16,fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:439,columnNumber:15}},data==null?void 0:data.accountName)),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{fontWeight:'300',marginTop:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:450,columnNumber:13}},"S\u1ED1 ti\u1EC1n ph\u1EA3i tr\u1EA3"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'space-between',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:458,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'rgba(61, 61, 61, 1)',fontWeight:'600',fontSize:16,fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:465,columnNumber:15}},' ',(0,_utils.formatMoney)(data==null?void 0:data.totalMoney)," VN\u0110 ",'\n',' ',_react.default.createElement(_MText.MText,{style:{color:'#828282',fontSize:10,fontStyle:'italic'},__self:this,__source:{fileName:_jsxFileName,lineNumber:475,columnNumber:17}},"S\u1ED1 ti\u1EC1n \u0111\u01B0\u1EE3c t\xEDnh \u0111\u1EBFn ng\xE0y ",(0,_moment.default)().format('DD/MM/YYYY'))),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return copyToClipboard(String(data==null?void 0:data.totalMoney));},__self:this,__source:{fileName:_jsxFileName,lineNumber:485,columnNumber:15}},_react.default.createElement(_icons.IconCopy,{__self:this,__source:{fileName:_jsxFileName,lineNumber:488,columnNumber:17}}))),_react.default.createElement(_rnTourguide.TourGuideZone,{zone:1,text:'Để hệ thống ghi nhận chính xác khoản thanh toán, bạn đừng quên sao chép đúng nội dung chuyển khoản nhé!',tooltipBottomOffset:-45,style:$transferGuideZone,__self:this,__source:{fileName:_jsxFileName,lineNumber:492,columnNumber:13}},_react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:500,columnNumber:15}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{fontWeight:'300'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:501,columnNumber:17}},"N\u1ED9i dung chuy\u1EC3n kho\u1EA3n",' ',_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#EB5757',fontWeight:'300'},__self:this,__source:{fileName:_jsxFileName,lineNumber:503,columnNumber:19}},"(B\u1EAFt bu\u1ED9c)")),_react.default.createElement(_reactNative.View,{ref:transferContentRef,onLayout:function onLayout(event){transferContentY.current=event.nativeEvent.layout.y;transferContentHeight.current=event.nativeEvent.layout.height;},style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'},__self:this,__source:{fileName:_jsxFileName,lineNumber:513,columnNumber:17}},_react.default.createElement(_MText.MText,{style:{color:'rgba(61, 61, 61, 1)',fontWeight:'600',fontSize:16,fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:526,columnNumber:19}},props!=null&&(_props$route=props.route)!=null&&(_props$route$params5=_props$route.params)!=null&&_props$route$params5.isFull?"Tat toan TC"+(data==null?void 0:data.codeId):"TC"+(data==null?void 0:data.codeId)),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){var _props$route2,_props$route2$params;return _reactNative.Clipboard.setString(props!=null&&(_props$route2=props.route)!=null&&(_props$route2$params=_props$route2.params)!=null&&_props$route2$params.isFull?"Tat toan TC"+(data==null?void 0:data.codeId):"TC"+(data==null?void 0:data.codeId));},__self:this,__source:{fileName:_jsxFileName,lineNumber:538,columnNumber:19}},_react.default.createElement(_icons.IconCopy,{__self:this,__source:{fileName:_jsxFileName,lineNumber:547,columnNumber:21}}))))),_react.default.createElement(_reactNative.View,{style:{backgroundColor:'#FFF2F2',padding:10,borderRadius:8,marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:553,columnNumber:13}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{fontSize:12,color:'#EB5757'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:561,columnNumber:15}},"*L\u01B0u \xFD:"),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{fontSize:12,marginTop:5}],__self:this,__source:{fileName:_jsxFileName,lineNumber:569,columnNumber:15}},"- Th\xF4ng tin t\xE0i kho\u1EA3n d\u1ECBch v\u1EE5 h\u1ED7 tr\u1EE3 thu h\u1ED9 cung c\u1EA5p b\u1EDFi GPay",' '),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{fontSize:12,marginTop:5}],__self:this,__source:{fileName:_jsxFileName,lineNumber:577,columnNumber:15}},"- S\u1ED1 ti\u1EC1n thanh to\xE1n s\u1EBD \u0111\u01B0\u1EE3c CIMB ph\xE2n b\u1ED5 theo th\u1EE9 t\u1EF1 \u0111\u01B0\u1EE3c quy \u0111\u1ECBnh trong \u0110i\u1EC1u ki\u1EC7n & \u0110i\u1EC1u kho\u1EA3n c\u1EE7a s\u1EA3n ph\u1EA9m")))),_react.default.createElement(_reactNative.View,{style:{marginBottom:insets.bottom},__self:this,__source:{fileName:_jsxFileName,lineNumber:589,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',padding:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:594,columnNumber:11}},_react.default.createElement(_MText.MText,{__self:this,__source:{fileName:_jsxFileName,lineNumber:602,columnNumber:13}},"H\u01B0\u1EDBng d\u1EABn chuy\u1EC3n ti\u1EC1n"),_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){if(props!=null&&props.route.params.isFull){setShowGuide(true);}else{navigation.push('GuideTransferBank');}},__self:this,__source:{fileName:_jsxFileName,lineNumber:603,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'#2F80ED',textDecorationLine:'underline'},__self:this,__source:{fileName:_jsxFileName,lineNumber:612,columnNumber:15}},"Xem chi ti\u1EBFt"))),(props==null?void 0:(_props$route3=props.route)==null?void 0:(_props$route3$params=_props$route3.params)==null?void 0:_props$route3$params.isFull)&&_react.default.createElement(_reactNative.TouchableOpacity,{style:{marginHorizontal:16,marginBottom:16},onPress:function onPress(){_AlertGlobal.AlertGlobal.show({type:'confirm',title:'Xác nhận tất toán',message:'Bạn có chắc muốn gửi YÊU CẦU TẤT TOÁN hợp đồng không?',primaryText:'Có',onPrimaryPress:function onPrimaryPress(){var _props$route$params6,_props$route$params6$,_response$data3,_response$data3$meta;var response,_response$data4,_response$data4$meta;return _regenerator.default.async(function(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=1;return _regenerator.default.awrap(_api.Api.getInstance().confirm_final_settlement({loanBriefId:props==null?void 0:(_props$route$params6=props.route.params)==null?void 0:(_props$route$params6$=_props$route$params6.loan)==null?void 0:_props$route$params6$.id}));case 1:response=_context3.sent;if(response.kind==='ok'&&((_response$data3=response.data)==null?void 0:(_response$data3$meta=_response$data3.meta)==null?void 0:_response$data3$meta.errorCode)===200){_AlertGlobal.AlertGlobal.show({type:'success',title:'GỬI YÊU CẦU THÀNH CÔNG!',message:'Yêu cầu tất toán đang được Tima xử lý, vui lòng chờ trong ít phút.',primaryText:'Đồng ý',onPrimaryPress:function onPrimaryPress(){navigation.navigate('Main');}});}else{_AlertGlobal.AlertGlobal.show({type:'warning',title:'Thông báo',message:(response==null?void 0:(_response$data4=response.data)==null?void 0:(_response$data4$meta=_response$data4.meta)==null?void 0:_response$data4$meta.errorMessage)||'Có lỗi xảy ra. Vui lòng thử lại sau',primaryText:'Đóng'});}case 2:case"end":return _context3.stop();}},null,null,null,Promise);},secondaryText:'Không'});},__self:this,__source:{fileName:_jsxFileName,lineNumber:620,columnNumber:13}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF7A00','#EF4123'],style:{alignItems:'center',borderRadius:30,height:40,justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:664,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{color:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:673,columnNumber:17}},"X\xE1c nh\u1EADn t\u1EA5t to\xE1n"))))),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:685,columnNumber:7}}),_react.default.createElement(_AppModal.default,{isVisible:showGuide,onBackdropPress:function onBackdropPress(){return setShowGuide(false);},style:{justifyContent:'flex-end',margin:0},__self:this,__source:{fileName:_jsxFileName,lineNumber:687,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{backgroundColor:'white',borderTopLeftRadius:30,borderTopRightRadius:30},__self:this,__source:{fileName:_jsxFileName,lineNumber:692,columnNumber:9}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],style:{borderTopLeftRadius:30,borderTopRightRadius:30,paddingBottom:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:699,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:{padding:16,alignItems:'center',gap:4},__self:this,__source:{fileName:_jsxFileName,lineNumber:707,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{fontSize:16,fontWeight:'600',color:'white',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:708,columnNumber:15}},"C\xC1C B\u01AF\u1EDAC T\u1EA4T TO\xC1N"),_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:718,columnNumber:15}},"C\xF3 2 b\u01B0\u1EDBc, vui l\xF2ng \u0111\u1ECDc k\u0129 th\xF4ng tin"))),_react.default.createElement(_reactNative.View,{style:{backgroundColor:'white',borderTopLeftRadius:30,borderTopRightRadius:30,top:-24,padding:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:728,columnNumber:11}},_react.default.createElement(_MText.MText,{style:{fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold',color:'#EF592E'},__self:this,__source:{fileName:_jsxFileName,lineNumber:737,columnNumber:13}},"B\u01AF\u1EDAC 1: CHUY\u1EC2N KHO\u1EA2N"),_react.default.createElement(_MText.MText,{style:{fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:746,columnNumber:13}},"C\xE1ch 1: Thanh to\xE1n b\u1EB1ng QR (Khuy\u1EBFn ngh\u1ECB)"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:755,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:763,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:764,columnNumber:15}},"L\u01B0u ho\u1EB7c qu\xE9t m\xE3 QR")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:768,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:776,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:777,columnNumber:15}},"M\u1EDF app ng\xE2n h\xE0ng v\xE0 thanh to\xE1n")),_react.default.createElement(_reactNative.View,{style:{height:1,backgroundColor:'rgba(224, 224, 224, 1)',marginVertical:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:781,columnNumber:13}}),_react.default.createElement(_MText.MText,{style:{fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:788,columnNumber:13}},"C\xE1ch 2: Chuy\u1EC3n kho\u1EA3n th\u1EE7 c\xF4ng"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:796,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:804,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:805,columnNumber:15}},"Copy th\xF4ng tin t\xE0i kho\u1EA3n (S\u1ED1 TK, Ng\xE2n h\xE0ng, S\u1ED1 ti\u1EC1n)")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:809,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:817,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:818,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{color:'#EB5757',fontSize:12,fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold'},__self:this,__source:{fileName:_jsxFileName,lineNumber:819,columnNumber:17}},"B\u1EAET BU\u1ED8C:"),' ',"Copy \u0111\xFAng \u201CN\u1ED9i dung chuy\u1EC3n kho\u1EA3n\u201D")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:832,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:840,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:841,columnNumber:15}},"M\u1EDF app ng\xE2n h\xE0ng v\xE0 thanh to\xE1n")),_react.default.createElement(_reactNative.View,{style:{height:12,backgroundColor:'#FFF3E9',marginVertical:10,marginHorizontal:-16},__self:this,__source:{fileName:_jsxFileName,lineNumber:845,columnNumber:13}}),_react.default.createElement(_MText.MText,{style:{fontWeight:'600',fontFamily:'BeVietnamPro-SemiBold',color:'#EF592E'},__self:this,__source:{fileName:_jsxFileName,lineNumber:853,columnNumber:13}},"B\u01AF\u1EDAC 2:"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',gap:8,marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:862,columnNumber:13}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:870,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{flex:1,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:871,columnNumber:15}},"Ch\u1ECDn \u201CX\xE1c nh\u1EADn t\u1EA5t to\xE1n\u201D \u0111\u1EC3 g\u1EEDi y\xEAu c\u1EA7u t\u1EDBi Tima th\u1EF1c hi\u1EC7n \u201CT\u1EA5t to\xE1n h\u1EE3p \u0111\u1ED3ng\u201D"))),_react.default.createElement(_reactNative.TouchableOpacity,{style:{position:'absolute',left:16,top:16},onPress:function onPress(){return setShowGuide(false);},__self:this,__source:{fileName:_jsxFileName,lineNumber:877,columnNumber:11}},_react.default.createElement(_icons.CloseIcon,{__self:this,__source:{fileName:_jsxFileName,lineNumber:881,columnNumber:13}})))));});var $backButton={position:'absolute',left:16};var $header={flexDirection:'row',alignItems:'center',paddingVertical:16,justifyContent:'center'};var $tourTooltipPosition={alignItems:'flex-end',overflow:'visible',paddingHorizontal:16,paddingTop:0,paddingBottom:0,borderRadius:0};var $tourTooltip={width:224,minHeight:84,backgroundColor:'white',borderRadius:8,paddingHorizontal:12,paddingTop:10,paddingBottom:12,shadowColor:'#000',shadowOffset:{width:0,height:2},shadowOpacity:0.18,shadowRadius:8,elevation:8};var $tourTooltipText={color:'#333333',fontSize:10,lineHeight:16,fontWeight:'400'};var $tourTooltipButton={alignSelf:'flex-end',marginTop:6};var $tourTooltipButtonText={color:'#EF592E',fontSize:10,lineHeight:16,textDecorationLine:'underline'};var $tourTooltipArrow={position:'absolute',right:18,bottom:-10,width:0,height:0,borderLeftWidth:8,borderRightWidth:8,borderTopWidth:10,borderLeftColor:'transparent',borderRightColor:'transparent',borderTopColor:'white'};var $transferGuideZone={backgroundColor:'white',borderRadius:8,borderWidth:2,borderColor:'white',marginTop:16};
2
2
  //# sourceMappingURL=PaymentInfo.js.map