react-native-timacare 3.1.2 → 3.1.4-beta
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.
- package/lib/commonjs/assets/icons/cam2.svg +5 -0
- package/lib/commonjs/assets/icons/chip.svg +20 -0
- package/lib/commonjs/assets/icons/index.js +1 -1
- package/lib/commonjs/assets/icons/index.js.flow +8 -0
- package/lib/commonjs/assets/icons/index.js.map +1 -1
- package/lib/commonjs/assets/icons/ocr.svg +11 -0
- package/lib/commonjs/assets/icons/takePhoto.svg +20 -0
- package/lib/commonjs/assets/icons/tima_small.svg +12 -23
- package/lib/commonjs/assets/svgs/back.svg +4 -0
- package/lib/commonjs/assets/svgs/complete.svg +27 -0
- package/lib/commonjs/assets/svgs/currentStep.svg +28 -0
- package/lib/commonjs/assets/svgs/edit.svg +42 -0
- package/lib/commonjs/assets/svgs/edit_success.svg +15 -0
- package/lib/commonjs/assets/svgs/ekyc.svg +18 -0
- package/lib/commonjs/assets/svgs/ekyc_success.svg +6 -0
- package/lib/commonjs/assets/svgs/index.js +2 -0
- package/lib/commonjs/assets/svgs/index.js.flow +23 -0
- package/lib/commonjs/assets/svgs/index.js.map +1 -0
- package/lib/commonjs/assets/svgs/nextStep.svg +21 -0
- package/lib/commonjs/assets/svgs/notify.svg +18 -0
- package/lib/commonjs/assets/svgs/orc_success.svg +11 -0
- package/lib/commonjs/assets/tts/1000009864.png +0 -0
- package/lib/commonjs/assets/tts/1000009872.png +0 -0
- package/lib/commonjs/assets/tts/1000011964.png +0 -0
- package/lib/commonjs/assets/tts/Banner.png +0 -0
- package/lib/commonjs/assets/tts/Frame 1000011947.png +0 -0
- package/lib/commonjs/assets/tts/Frame1000011946.png +0 -0
- package/lib/commonjs/assets/tts/Frame1000011953.png +0 -0
- package/lib/commonjs/assets/tts/back.png +0 -0
- package/lib/commonjs/assets/tts/front.png +0 -0
- package/lib/commonjs/assets/tts/otp.png +0 -0
- package/lib/commonjs/assets/tts/vehicleRegistration.png +0 -0
- package/lib/commonjs/assets/tts/vehicleStep.png +0 -0
- package/lib/commonjs/components/CIMBLoading.js +1 -1
- package/lib/commonjs/components/CIMBLoading.js.map +1 -1
- package/lib/commonjs/components/CommonSelect.js +1 -1
- package/lib/commonjs/components/CommonSelect.js.map +1 -1
- package/lib/commonjs/components/Loading.js +1 -1
- package/lib/commonjs/components/Loading.js.map +1 -1
- package/lib/commonjs/components/MButton.js +1 -1
- package/lib/commonjs/components/MButton.js.map +1 -1
- package/lib/commonjs/components/MHeader.js +1 -1
- package/lib/commonjs/components/MHeader.js.flow +1 -1
- package/lib/commonjs/components/MHeader.js.map +1 -1
- package/lib/commonjs/components/MSelect.js +2 -0
- package/lib/commonjs/components/MSelect.js.flow +78 -0
- package/lib/commonjs/components/MSelect.js.map +1 -0
- package/lib/commonjs/components/MText.js +1 -1
- package/lib/commonjs/components/MText.js.map +1 -1
- package/lib/commonjs/components/MyTextInput.js +1 -1
- package/lib/commonjs/components/MyTextInput.js.map +1 -1
- package/lib/commonjs/components/StepIndicator.js +2 -0
- package/lib/commonjs/components/StepIndicator.js.flow +85 -0
- package/lib/commonjs/components/StepIndicator.js.map +1 -0
- package/lib/commonjs/components/keyboardspace/index.js +1 -1
- package/lib/commonjs/components/keyboardspace/index.js.map +1 -1
- package/lib/commonjs/components/logoTima/index.js +1 -1
- package/lib/commonjs/components/logoTima/index.js.map +1 -1
- package/lib/commonjs/components/select/index.js +1 -1
- package/lib/commonjs/components/select/index.js.flow +19 -3
- package/lib/commonjs/components/select/index.js.map +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/index.js.flow +3 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/navigation/primary-navigator.js +1 -1
- package/lib/commonjs/navigation/primary-navigator.js.flow +81 -1
- package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
- package/lib/commonjs/navigation/root-navigator.js +1 -1
- package/lib/commonjs/navigation/root-navigator.js.map +1 -1
- package/lib/commonjs/screens/Selector.js +1 -1
- package/lib/commonjs/screens/Selector.js.map +1 -1
- package/lib/commonjs/screens/camera/index.js +1 -1
- package/lib/commonjs/screens/camera/index.js.flow +1 -1
- package/lib/commonjs/screens/camera/index.js.map +1 -1
- package/lib/commonjs/screens/cimb-sign/index.js +1 -1
- package/lib/commonjs/screens/cimb-sign/index.js.map +1 -1
- package/lib/commonjs/screens/contract/index.js +1 -1
- package/lib/commonjs/screens/contract/index.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/DetailLoanTima.js +1 -1
- package/lib/commonjs/screens/detail-loan/DetailLoanTima.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/Info.js +1 -1
- package/lib/commonjs/screens/detail-loan/Info.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/Payment.js +1 -1
- package/lib/commonjs/screens/detail-loan/Payment.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/PaymentAll.js +1 -1
- package/lib/commonjs/screens/detail-loan/PaymentAll.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/PaymentInfo.js +1 -1
- package/lib/commonjs/screens/detail-loan/PaymentInfo.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/QrPayment.js +1 -1
- package/lib/commonjs/screens/detail-loan/QrPayment.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/ShowQrCode.js +1 -1
- package/lib/commonjs/screens/detail-loan/ShowQrCode.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/index.js +1 -1
- package/lib/commonjs/screens/detail-loan/index.js.map +1 -1
- package/lib/commonjs/screens/digital-lending/Step1.js +1 -1
- package/lib/commonjs/screens/digital-lending/Step1.js.map +1 -1
- package/lib/commonjs/screens/digital-lending/Step2.js +1 -1
- package/lib/commonjs/screens/digital-lending/Step2.js.map +1 -1
- package/lib/commonjs/screens/digital-lending/Step3.js +1 -1
- package/lib/commonjs/screens/digital-lending/Step3.js.map +1 -1
- package/lib/commonjs/screens/digital-lending/Step4.js +1 -1
- package/lib/commonjs/screens/digital-lending/Step4.js.map +1 -1
- package/lib/commonjs/screens/digital-lending/Step5.js +1 -1
- package/lib/commonjs/screens/digital-lending/Step5.js.map +1 -1
- package/lib/commonjs/screens/digital-lending/Step6.js +1 -1
- package/lib/commonjs/screens/digital-lending/Step6.js.map +1 -1
- package/lib/commonjs/screens/digital-lending/index.js +1 -1
- package/lib/commonjs/screens/digital-lending/index.js.map +1 -1
- package/lib/commonjs/screens/eSign/PreviewContract.js +1 -1
- package/lib/commonjs/screens/eSign/PreviewContract.js.map +1 -1
- package/lib/commonjs/screens/eSign/Store.js +1 -1
- package/lib/commonjs/screens/eSign/Store.js.flow +9 -2
- package/lib/commonjs/screens/eSign/Store.js.map +1 -1
- package/lib/commonjs/screens/eSign/index.js +1 -1
- package/lib/commonjs/screens/eSign/index.js.flow +4 -1
- package/lib/commonjs/screens/eSign/index.js.map +1 -1
- package/lib/commonjs/screens/forgotPassword/index.js +1 -1
- package/lib/commonjs/screens/forgotPassword/index.js.map +1 -1
- package/lib/commonjs/screens/full-submit/accept_policy.js +1 -1
- package/lib/commonjs/screens/full-submit/accept_policy.js.map +1 -1
- package/lib/commonjs/screens/full-submit/index.js +1 -1
- package/lib/commonjs/screens/full-submit/index.js.flow +7 -7
- package/lib/commonjs/screens/full-submit/index.js.map +1 -1
- package/lib/commonjs/screens/full-submit/selfie.js +1 -1
- package/lib/commonjs/screens/full-submit/selfie.js.map +1 -1
- package/lib/commonjs/screens/full-submit/update-document.js +1 -1
- package/lib/commonjs/screens/full-submit/update-document.js.flow +1 -1
- package/lib/commonjs/screens/full-submit/update-document.js.map +1 -1
- package/lib/commonjs/screens/full-submit/update-info.js +1 -1
- package/lib/commonjs/screens/full-submit/update-info.js.flow +1 -1
- package/lib/commonjs/screens/full-submit/update-info.js.map +1 -1
- package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js +1 -1
- package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js.map +1 -1
- package/lib/commonjs/screens/guide-transfer-bank/index.js +1 -1
- package/lib/commonjs/screens/guide-transfer-bank/index.js.map +1 -1
- package/lib/commonjs/screens/home/CIMBxTima.js +1 -1
- package/lib/commonjs/screens/home/CIMBxTima.js.map +1 -1
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +1809 -1400
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/commonjs/screens/intro/index.js +1 -1
- package/lib/commonjs/screens/intro/index.js.map +1 -1
- package/lib/commonjs/screens/introduction/index.js +1 -1
- package/lib/commonjs/screens/introduction/index.js.map +1 -1
- package/lib/commonjs/screens/liveness/LivenessStore.js +1 -1
- package/lib/commonjs/screens/liveness/LivenessStore.js.flow +87 -1
- package/lib/commonjs/screens/liveness/LivenessStore.js.map +1 -1
- package/lib/commonjs/screens/liveness/index.js +1 -1
- package/lib/commonjs/screens/liveness/index.js.map +1 -1
- package/lib/commonjs/screens/liveness-v2/index.js +1 -1
- package/lib/commonjs/screens/liveness-v2/index.js.flow +36 -23
- package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
- package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js +1 -1
- package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -1
- package/lib/commonjs/screens/loan/UpdateLoan.js +1 -1
- package/lib/commonjs/screens/loan/UpdateLoan.js.map +1 -1
- package/lib/commonjs/screens/loginWithPassword/index.js +1 -1
- package/lib/commonjs/screens/loginWithPassword/index.js.map +1 -1
- package/lib/commonjs/screens/main/index.js +1 -1
- package/lib/commonjs/screens/main/index.js.map +1 -1
- package/lib/commonjs/screens/mrz-scanner/index.js +1 -1
- package/lib/commonjs/screens/mrz-scanner/index.js.flow +2 -2
- package/lib/commonjs/screens/mrz-scanner/index.js.map +1 -1
- package/lib/commonjs/screens/nationalID/index.js +1 -1
- package/lib/commonjs/screens/nationalID/index.js.map +1 -1
- package/lib/commonjs/screens/nationalIDBack/index.js +1 -1
- package/lib/commonjs/screens/nationalIDBack/index.js.map +1 -1
- package/lib/commonjs/screens/notification/index.js +1 -1
- package/lib/commonjs/screens/notification/index.js.map +1 -1
- package/lib/commonjs/screens/otp/index.js +1 -1
- package/lib/commonjs/screens/otp/index.js.map +1 -1
- package/lib/commonjs/screens/payment-evidence/Guideline.js +1 -1
- package/lib/commonjs/screens/payment-evidence/Guideline.js.map +1 -1
- package/lib/commonjs/screens/payment-evidence/ModalGuideline.js +1 -1
- package/lib/commonjs/screens/payment-evidence/ModalGuideline.js.map +1 -1
- package/lib/commonjs/screens/payment-evidence/index.js +1 -1
- package/lib/commonjs/screens/payment-evidence/index.js.map +1 -1
- package/lib/commonjs/screens/personal/index.js +1 -1
- package/lib/commonjs/screens/personal/index.js.map +1 -1
- package/lib/commonjs/screens/qualify/index.js +1 -1
- package/lib/commonjs/screens/qualify/index.js.map +1 -1
- package/lib/commonjs/screens/quick-submit/index.js +1 -1
- package/lib/commonjs/screens/quick-submit/index.js.map +1 -1
- package/lib/commonjs/screens/register/index.js +1 -1
- package/lib/commonjs/screens/register/index.js.flow +3 -1
- package/lib/commonjs/screens/register/index.js.map +1 -1
- package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js +1 -1
- package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js.map +1 -1
- package/lib/commonjs/screens/schedule-payment/index.js +1 -1
- package/lib/commonjs/screens/schedule-payment/index.js.map +1 -1
- package/lib/commonjs/screens/schedule-payment/payment-list.js +1 -1
- package/lib/commonjs/screens/schedule-payment/payment-list.js.map +1 -1
- package/lib/commonjs/screens/selfie/index.js +1 -1
- package/lib/commonjs/screens/selfie/index.js.map +1 -1
- package/lib/commonjs/screens/setPassword/confirmPassword.js +1 -1
- package/lib/commonjs/screens/setPassword/confirmPassword.js.map +1 -1
- package/lib/commonjs/screens/setPassword/index.js +1 -1
- package/lib/commonjs/screens/setPassword/index.js.map +1 -1
- package/lib/commonjs/screens/sign-tima/ConfirmContract.js +1 -1
- package/lib/commonjs/screens/sign-tima/ConfirmContract.js.map +1 -1
- package/lib/commonjs/screens/sign-tima/ViewContract.js +1 -1
- package/lib/commonjs/screens/sign-tima/ViewContract.js.map +1 -1
- package/lib/commonjs/screens/splash/index.js +1 -1
- package/lib/commonjs/screens/splash/index.js.map +1 -1
- package/lib/commonjs/screens/terms/QuickTerm.js +1 -1
- package/lib/commonjs/screens/terms/QuickTerm.js.map +1 -1
- package/lib/commonjs/screens/terms/TermScreen.js +1 -1
- package/lib/commonjs/screens/terms/TermScreen.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js +2 -0
- package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js.flow +373 -0
- package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js.map +1 -0
- package/lib/commonjs/screens/toan-trinh-so/OCR.js +2 -0
- package/lib/commonjs/screens/toan-trinh-so/OCR.js.flow +831 -0
- package/lib/commonjs/screens/toan-trinh-so/OCR.js.map +1 -0
- package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js +2 -0
- package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.flow +467 -0
- package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.map +1 -0
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js +2 -0
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.flow +1007 -0
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.map +1 -0
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js +2 -0
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.flow +791 -0
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -0
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js +2 -0
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.flow +1200 -0
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.map +1 -0
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js +2 -0
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.flow +242 -0
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -0
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js +2 -0
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.flow +247 -0
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -0
- package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js +2 -0
- package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.flow +356 -0
- package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.map +1 -0
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js +2 -0
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.flow +267 -0
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.map +1 -0
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js +2 -0
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.flow +143 -0
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.map +1 -0
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js +2 -0
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.flow +477 -0
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.map +1 -0
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js +2 -0
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.flow +197 -0
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.map +1 -0
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js +2 -0
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.flow +239 -0
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -0
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js +2 -0
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.flow +240 -0
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -0
- package/lib/commonjs/screens/toan-trinh-so/store.js +2 -0
- package/lib/commonjs/screens/toan-trinh-so/store.js.flow +237 -0
- package/lib/commonjs/screens/toan-trinh-so/store.js.map +1 -0
- package/lib/commonjs/screens/uploadVideo/index.js +1 -1
- package/lib/commonjs/screens/uploadVideo/index.js.map +1 -1
- package/lib/commonjs/services/api/api-config.js +1 -1
- package/lib/commonjs/services/api/api-config.js.flow +2 -2
- package/lib/commonjs/services/api/api-config.js.map +1 -1
- package/lib/commonjs/services/api/api.js +1 -1
- package/lib/commonjs/services/api/api.js.flow +235 -0
- package/lib/commonjs/services/api/api.js.map +1 -1
- package/lib/commonjs/utils/index.js +1 -1
- package/lib/commonjs/utils/index.js.flow +67 -45
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/commonjs/utils/storage/storage.js +1 -1
- package/lib/commonjs/utils/storage/storage.js.flow +4 -0
- package/lib/commonjs/utils/storage/storage.js.map +1 -1
- package/lib/module/assets/icons/cam2.svg +5 -0
- package/lib/module/assets/icons/chip.svg +20 -0
- package/lib/module/assets/icons/index.js +1 -1
- package/lib/module/assets/icons/index.js.map +1 -1
- package/lib/module/assets/icons/ocr.svg +11 -0
- package/lib/module/assets/icons/takePhoto.svg +20 -0
- package/lib/module/assets/icons/tima_small.svg +12 -23
- package/lib/module/assets/svgs/back.svg +4 -0
- package/lib/module/assets/svgs/complete.svg +27 -0
- package/lib/module/assets/svgs/currentStep.svg +28 -0
- package/lib/module/assets/svgs/edit.svg +42 -0
- package/lib/module/assets/svgs/edit_success.svg +15 -0
- package/lib/module/assets/svgs/ekyc.svg +18 -0
- package/lib/module/assets/svgs/ekyc_success.svg +6 -0
- package/lib/module/assets/svgs/index.js +2 -0
- package/lib/module/assets/svgs/index.js.map +1 -0
- package/lib/module/assets/svgs/nextStep.svg +21 -0
- package/lib/module/assets/svgs/notify.svg +18 -0
- package/lib/module/assets/svgs/orc_success.svg +11 -0
- package/lib/module/assets/tts/1000009864.png +0 -0
- package/lib/module/assets/tts/1000009872.png +0 -0
- package/lib/module/assets/tts/1000011964.png +0 -0
- package/lib/module/assets/tts/Banner.png +0 -0
- package/lib/module/assets/tts/Frame 1000011947.png +0 -0
- package/lib/module/assets/tts/Frame1000011946.png +0 -0
- package/lib/module/assets/tts/Frame1000011953.png +0 -0
- package/lib/module/assets/tts/back.png +0 -0
- package/lib/module/assets/tts/front.png +0 -0
- package/lib/module/assets/tts/otp.png +0 -0
- package/lib/module/assets/tts/vehicleRegistration.png +0 -0
- package/lib/module/assets/tts/vehicleStep.png +0 -0
- package/lib/module/components/CIMBLoading.js +1 -1
- package/lib/module/components/CIMBLoading.js.map +1 -1
- package/lib/module/components/CommonSelect.js +1 -1
- package/lib/module/components/CommonSelect.js.map +1 -1
- package/lib/module/components/Loading.js +1 -1
- package/lib/module/components/Loading.js.map +1 -1
- package/lib/module/components/MButton.js +1 -1
- package/lib/module/components/MButton.js.map +1 -1
- package/lib/module/components/MHeader.js +1 -1
- package/lib/module/components/MHeader.js.map +1 -1
- package/lib/module/components/MSelect.js +2 -0
- package/lib/module/components/MSelect.js.map +1 -0
- package/lib/module/components/MText.js +1 -1
- package/lib/module/components/MText.js.map +1 -1
- package/lib/module/components/MyTextInput.js +1 -1
- package/lib/module/components/MyTextInput.js.map +1 -1
- package/lib/module/components/StepIndicator.js +2 -0
- package/lib/module/components/StepIndicator.js.map +1 -0
- package/lib/module/components/keyboardspace/index.js +1 -1
- package/lib/module/components/keyboardspace/index.js.map +1 -1
- package/lib/module/components/logoTima/index.js +1 -1
- package/lib/module/components/logoTima/index.js.map +1 -1
- package/lib/module/components/select/index.js +1 -1
- package/lib/module/components/select/index.js.map +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/navigation/primary-navigator.js +1 -1
- package/lib/module/navigation/primary-navigator.js.map +1 -1
- package/lib/module/navigation/root-navigator.js +1 -1
- package/lib/module/navigation/root-navigator.js.map +1 -1
- package/lib/module/screens/Selector.js +1 -1
- package/lib/module/screens/Selector.js.map +1 -1
- package/lib/module/screens/camera/index.js +1 -1
- package/lib/module/screens/camera/index.js.map +1 -1
- package/lib/module/screens/cimb-sign/index.js +1 -1
- package/lib/module/screens/cimb-sign/index.js.map +1 -1
- package/lib/module/screens/contract/index.js +1 -1
- package/lib/module/screens/contract/index.js.map +1 -1
- package/lib/module/screens/detail-loan/DetailLoanTima.js +1 -1
- package/lib/module/screens/detail-loan/DetailLoanTima.js.map +1 -1
- package/lib/module/screens/detail-loan/Info.js +1 -1
- package/lib/module/screens/detail-loan/Info.js.map +1 -1
- package/lib/module/screens/detail-loan/Payment.js +1 -1
- package/lib/module/screens/detail-loan/Payment.js.map +1 -1
- package/lib/module/screens/detail-loan/PaymentAll.js +1 -1
- package/lib/module/screens/detail-loan/PaymentAll.js.map +1 -1
- package/lib/module/screens/detail-loan/PaymentInfo.js +1 -1
- package/lib/module/screens/detail-loan/PaymentInfo.js.map +1 -1
- package/lib/module/screens/detail-loan/QrPayment.js +1 -1
- package/lib/module/screens/detail-loan/QrPayment.js.map +1 -1
- package/lib/module/screens/detail-loan/ShowQrCode.js +1 -1
- package/lib/module/screens/detail-loan/ShowQrCode.js.map +1 -1
- package/lib/module/screens/detail-loan/index.js +1 -1
- package/lib/module/screens/detail-loan/index.js.map +1 -1
- package/lib/module/screens/digital-lending/Step1.js +1 -1
- package/lib/module/screens/digital-lending/Step1.js.map +1 -1
- package/lib/module/screens/digital-lending/Step2.js +1 -1
- package/lib/module/screens/digital-lending/Step2.js.map +1 -1
- package/lib/module/screens/digital-lending/Step3.js +1 -1
- package/lib/module/screens/digital-lending/Step3.js.map +1 -1
- package/lib/module/screens/digital-lending/Step4.js +1 -1
- package/lib/module/screens/digital-lending/Step4.js.map +1 -1
- package/lib/module/screens/digital-lending/Step5.js +1 -1
- package/lib/module/screens/digital-lending/Step5.js.map +1 -1
- package/lib/module/screens/digital-lending/Step6.js +1 -1
- package/lib/module/screens/digital-lending/Step6.js.map +1 -1
- package/lib/module/screens/digital-lending/index.js +1 -1
- package/lib/module/screens/digital-lending/index.js.map +1 -1
- package/lib/module/screens/eSign/PreviewContract.js +1 -1
- package/lib/module/screens/eSign/PreviewContract.js.map +1 -1
- package/lib/module/screens/eSign/Store.js +1 -1
- package/lib/module/screens/eSign/Store.js.map +1 -1
- package/lib/module/screens/eSign/index.js +1 -1
- package/lib/module/screens/eSign/index.js.map +1 -1
- package/lib/module/screens/forgotPassword/index.js +1 -1
- package/lib/module/screens/forgotPassword/index.js.map +1 -1
- package/lib/module/screens/full-submit/accept_policy.js +1 -1
- package/lib/module/screens/full-submit/accept_policy.js.map +1 -1
- package/lib/module/screens/full-submit/index.js +1 -1
- package/lib/module/screens/full-submit/index.js.map +1 -1
- package/lib/module/screens/full-submit/selfie.js +1 -1
- package/lib/module/screens/full-submit/selfie.js.map +1 -1
- package/lib/module/screens/full-submit/update-document.js +1 -1
- package/lib/module/screens/full-submit/update-document.js.map +1 -1
- package/lib/module/screens/full-submit/update-info.js +1 -1
- package/lib/module/screens/full-submit/update-info.js.map +1 -1
- package/lib/module/screens/guide-transfer-bank/TransferDetail.js +1 -1
- package/lib/module/screens/guide-transfer-bank/TransferDetail.js.map +1 -1
- package/lib/module/screens/guide-transfer-bank/index.js +1 -1
- package/lib/module/screens/guide-transfer-bank/index.js.map +1 -1
- package/lib/module/screens/home/CIMBxTima.js +1 -1
- package/lib/module/screens/home/CIMBxTima.js.map +1 -1
- package/lib/module/screens/home/index.js +1 -1
- package/lib/module/screens/home/index.js.map +1 -1
- package/lib/module/screens/intro/index.js +1 -1
- package/lib/module/screens/intro/index.js.map +1 -1
- package/lib/module/screens/introduction/index.js +1 -1
- package/lib/module/screens/introduction/index.js.map +1 -1
- package/lib/module/screens/liveness/LivenessStore.js +1 -1
- package/lib/module/screens/liveness/LivenessStore.js.map +1 -1
- package/lib/module/screens/liveness/index.js +1 -1
- package/lib/module/screens/liveness/index.js.map +1 -1
- package/lib/module/screens/liveness-v2/index.js +1 -1
- package/lib/module/screens/liveness-v2/index.js.map +1 -1
- package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js +1 -1
- package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -1
- package/lib/module/screens/loan/UpdateLoan.js +1 -1
- package/lib/module/screens/loan/UpdateLoan.js.map +1 -1
- package/lib/module/screens/loginWithPassword/index.js +1 -1
- package/lib/module/screens/loginWithPassword/index.js.map +1 -1
- package/lib/module/screens/main/index.js +1 -1
- package/lib/module/screens/main/index.js.map +1 -1
- package/lib/module/screens/mrz-scanner/index.js +1 -1
- package/lib/module/screens/mrz-scanner/index.js.map +1 -1
- package/lib/module/screens/nationalID/index.js +1 -1
- package/lib/module/screens/nationalID/index.js.map +1 -1
- package/lib/module/screens/nationalIDBack/index.js +1 -1
- package/lib/module/screens/nationalIDBack/index.js.map +1 -1
- package/lib/module/screens/notification/index.js +1 -1
- package/lib/module/screens/notification/index.js.map +1 -1
- package/lib/module/screens/otp/index.js +1 -1
- package/lib/module/screens/otp/index.js.map +1 -1
- package/lib/module/screens/payment-evidence/Guideline.js +1 -1
- package/lib/module/screens/payment-evidence/Guideline.js.map +1 -1
- package/lib/module/screens/payment-evidence/ModalGuideline.js +1 -1
- package/lib/module/screens/payment-evidence/ModalGuideline.js.map +1 -1
- package/lib/module/screens/payment-evidence/index.js +1 -1
- package/lib/module/screens/payment-evidence/index.js.map +1 -1
- package/lib/module/screens/personal/index.js +1 -1
- package/lib/module/screens/personal/index.js.map +1 -1
- package/lib/module/screens/qualify/index.js +1 -1
- package/lib/module/screens/qualify/index.js.map +1 -1
- package/lib/module/screens/quick-submit/index.js +1 -1
- package/lib/module/screens/quick-submit/index.js.map +1 -1
- package/lib/module/screens/register/index.js +1 -1
- package/lib/module/screens/register/index.js.map +1 -1
- package/lib/module/screens/schedule-payment/DigitalSchedulePayment.js +1 -1
- package/lib/module/screens/schedule-payment/DigitalSchedulePayment.js.map +1 -1
- package/lib/module/screens/schedule-payment/index.js +1 -1
- package/lib/module/screens/schedule-payment/index.js.map +1 -1
- package/lib/module/screens/schedule-payment/payment-list.js +1 -1
- package/lib/module/screens/schedule-payment/payment-list.js.map +1 -1
- package/lib/module/screens/selfie/index.js +1 -1
- package/lib/module/screens/selfie/index.js.map +1 -1
- package/lib/module/screens/setPassword/confirmPassword.js +1 -1
- package/lib/module/screens/setPassword/confirmPassword.js.map +1 -1
- package/lib/module/screens/setPassword/index.js +1 -1
- package/lib/module/screens/setPassword/index.js.map +1 -1
- package/lib/module/screens/sign-tima/ConfirmContract.js +1 -1
- package/lib/module/screens/sign-tima/ConfirmContract.js.map +1 -1
- package/lib/module/screens/sign-tima/ViewContract.js +1 -1
- package/lib/module/screens/sign-tima/ViewContract.js.map +1 -1
- package/lib/module/screens/splash/index.js +1 -1
- package/lib/module/screens/splash/index.js.map +1 -1
- package/lib/module/screens/terms/QuickTerm.js +1 -1
- package/lib/module/screens/terms/QuickTerm.js.map +1 -1
- package/lib/module/screens/terms/TermScreen.js +1 -1
- package/lib/module/screens/terms/TermScreen.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/LoanInterestRate.js +2 -0
- package/lib/module/screens/toan-trinh-so/LoanInterestRate.js.map +1 -0
- package/lib/module/screens/toan-trinh-so/OCR.js +2 -0
- package/lib/module/screens/toan-trinh-so/OCR.js.map +1 -0
- package/lib/module/screens/toan-trinh-so/RegisterCamera.js +2 -0
- package/lib/module/screens/toan-trinh-so/RegisterCamera.js.map +1 -0
- package/lib/module/screens/toan-trinh-so/ReviewInformation.js +2 -0
- package/lib/module/screens/toan-trinh-so/ReviewInformation.js.map +1 -0
- package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js +2 -0
- package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -0
- package/lib/module/screens/toan-trinh-so/ReviewLoan.js +2 -0
- package/lib/module/screens/toan-trinh-so/ReviewLoan.js.map +1 -0
- package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js +2 -0
- package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -0
- package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js +2 -0
- package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -0
- package/lib/module/screens/toan-trinh-so/TTSOTP.js +2 -0
- package/lib/module/screens/toan-trinh-so/TTSOTP.js.map +1 -0
- package/lib/module/screens/toan-trinh-so/TTSSelfie.js +2 -0
- package/lib/module/screens/toan-trinh-so/TTSSelfie.js.map +1 -0
- package/lib/module/screens/toan-trinh-so/TTSSignLoan.js +2 -0
- package/lib/module/screens/toan-trinh-so/TTSSignLoan.js.map +1 -0
- package/lib/module/screens/toan-trinh-so/VehicleCamera.js +2 -0
- package/lib/module/screens/toan-trinh-so/VehicleCamera.js.map +1 -0
- package/lib/module/screens/toan-trinh-so/VehicleRegistration.js +2 -0
- package/lib/module/screens/toan-trinh-so/VehicleRegistration.js.map +1 -0
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js +2 -0
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -0
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js +2 -0
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -0
- package/lib/module/screens/toan-trinh-so/store.js +2 -0
- package/lib/module/screens/toan-trinh-so/store.js.map +1 -0
- package/lib/module/screens/uploadVideo/index.js +1 -1
- package/lib/module/screens/uploadVideo/index.js.map +1 -1
- package/lib/module/services/api/api-config.js +1 -1
- package/lib/module/services/api/api-config.js.map +1 -1
- package/lib/module/services/api/api.js +1 -1
- package/lib/module/services/api/api.js.map +1 -1
- package/lib/module/utils/index.js +1 -1
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/storage/storage.js +1 -1
- package/lib/module/utils/storage/storage.js.map +1 -1
- package/lib/typescript/assets/icons/index.d.ts +5 -1
- package/lib/typescript/assets/icons/index.d.ts.map +1 -1
- package/lib/typescript/assets/svgs/index.d.ts +12 -0
- package/lib/typescript/assets/svgs/index.d.ts.map +1 -0
- package/lib/typescript/components/MSelect.d.ts +2 -0
- package/lib/typescript/components/MSelect.d.ts.map +1 -0
- package/lib/typescript/components/StepIndicator.d.ts +5 -0
- package/lib/typescript/components/StepIndicator.d.ts.map +1 -0
- package/lib/typescript/components/select/index.d.ts.map +1 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/navigation/primary-navigator.d.ts +16 -0
- package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
- package/lib/typescript/screens/eSign/Store.d.ts +1 -1
- package/lib/typescript/screens/eSign/Store.d.ts.map +1 -1
- package/lib/typescript/screens/eSign/index.d.ts.map +1 -1
- package/lib/typescript/screens/home/index.d.ts.map +1 -1
- package/lib/typescript/screens/liveness/LivenessStore.d.ts +1 -0
- package/lib/typescript/screens/liveness/LivenessStore.d.ts.map +1 -1
- package/lib/typescript/screens/liveness-v2/index.d.ts.map +1 -1
- package/lib/typescript/screens/register/index.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/LoanInterestRate.d.ts +2 -0
- package/lib/typescript/screens/toan-trinh-so/LoanInterestRate.d.ts.map +1 -0
- package/lib/typescript/screens/toan-trinh-so/OCR.d.ts +2 -0
- package/lib/typescript/screens/toan-trinh-so/OCR.d.ts.map +1 -0
- package/lib/typescript/screens/toan-trinh-so/RegisterCamera.d.ts +2 -0
- package/lib/typescript/screens/toan-trinh-so/RegisterCamera.d.ts.map +1 -0
- package/lib/typescript/screens/toan-trinh-so/ReviewInformation.d.ts +2 -0
- package/lib/typescript/screens/toan-trinh-so/ReviewInformation.d.ts.map +1 -0
- package/lib/typescript/screens/toan-trinh-so/ReviewInformationOther.d.ts +2 -0
- package/lib/typescript/screens/toan-trinh-so/ReviewInformationOther.d.ts.map +1 -0
- package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts +2 -0
- package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts.map +1 -0
- package/lib/typescript/screens/toan-trinh-so/TTSNationalIDBack.d.ts +2 -0
- package/lib/typescript/screens/toan-trinh-so/TTSNationalIDBack.d.ts.map +1 -0
- package/lib/typescript/screens/toan-trinh-so/TTSNationalIDFront.d.ts +2 -0
- package/lib/typescript/screens/toan-trinh-so/TTSNationalIDFront.d.ts.map +1 -0
- package/lib/typescript/screens/toan-trinh-so/TTSOTP.d.ts +2 -0
- package/lib/typescript/screens/toan-trinh-so/TTSOTP.d.ts.map +1 -0
- package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts +2 -0
- package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts.map +1 -0
- package/lib/typescript/screens/toan-trinh-so/TTSSignLoan.d.ts +2 -0
- package/lib/typescript/screens/toan-trinh-so/TTSSignLoan.d.ts.map +1 -0
- package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts +2 -0
- package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts.map +1 -0
- package/lib/typescript/screens/toan-trinh-so/VehicleRegistration.d.ts +2 -0
- package/lib/typescript/screens/toan-trinh-so/VehicleRegistration.d.ts.map +1 -0
- package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationBack.d.ts +2 -0
- package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationBack.d.ts.map +1 -0
- package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationFront.d.ts +2 -0
- package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationFront.d.ts.map +1 -0
- package/lib/typescript/screens/toan-trinh-so/store.d.ts +26 -0
- package/lib/typescript/screens/toan-trinh-so/store.d.ts.map +1 -0
- package/lib/typescript/services/api/api.d.ts +224 -0
- package/lib/typescript/services/api/api.d.ts.map +1 -1
- package/lib/typescript/utils/index.d.ts +8 -0
- package/lib/typescript/utils/index.d.ts.map +1 -1
- package/lib/typescript/utils/storage/storage.d.ts +3 -0
- package/lib/typescript/utils/storage/storage.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/assets/icons/cam2.svg +5 -0
- package/src/assets/icons/chip.svg +20 -0
- package/src/assets/icons/index.tsx +8 -0
- package/src/assets/icons/ocr.svg +11 -0
- package/src/assets/icons/takePhoto.svg +20 -0
- package/src/assets/icons/tima_small.svg +12 -23
- package/src/assets/svgs/back.svg +4 -0
- package/src/assets/svgs/complete.svg +27 -0
- package/src/assets/svgs/currentStep.svg +28 -0
- package/src/assets/svgs/edit.svg +42 -0
- package/src/assets/svgs/edit_success.svg +15 -0
- package/src/assets/svgs/ekyc.svg +18 -0
- package/src/assets/svgs/ekyc_success.svg +6 -0
- package/src/assets/svgs/index.tsx +23 -0
- package/src/assets/svgs/nextStep.svg +21 -0
- package/src/assets/svgs/notify.svg +18 -0
- package/src/assets/svgs/orc_success.svg +11 -0
- package/src/assets/tts/1000009864.png +0 -0
- package/src/assets/tts/1000009872.png +0 -0
- package/src/assets/tts/1000011964.png +0 -0
- package/src/assets/tts/Banner.png +0 -0
- package/src/assets/tts/Frame 1000011947.png +0 -0
- package/src/assets/tts/Frame1000011946.png +0 -0
- package/src/assets/tts/Frame1000011953.png +0 -0
- package/src/assets/tts/back.png +0 -0
- package/src/assets/tts/front.png +0 -0
- package/src/assets/tts/otp.png +0 -0
- package/src/assets/tts/vehicleRegistration.png +0 -0
- package/src/assets/tts/vehicleStep.png +0 -0
- package/src/components/MHeader.tsx +1 -1
- package/src/components/MSelect.tsx +78 -0
- package/src/components/StepIndicator.tsx +85 -0
- package/src/components/select/index.tsx +19 -3
- package/src/index.tsx +3 -1
- package/src/navigation/primary-navigator.tsx +81 -1
- package/src/screens/camera/index.tsx +1 -1
- package/src/screens/eSign/Store.tsx +9 -2
- package/src/screens/eSign/index.tsx +4 -1
- package/src/screens/full-submit/index.tsx +7 -7
- package/src/screens/full-submit/update-document.tsx +1 -1
- package/src/screens/full-submit/update-info.tsx +1 -1
- package/src/screens/home/index.tsx +1809 -1400
- package/src/screens/liveness/LivenessStore.tsx +87 -1
- package/src/screens/liveness-v2/index.tsx +36 -23
- package/src/screens/mrz-scanner/index.tsx +2 -2
- package/src/screens/register/index.tsx +3 -1
- package/src/screens/toan-trinh-so/LoanInterestRate.tsx +373 -0
- package/src/screens/toan-trinh-so/OCR.tsx +831 -0
- package/src/screens/toan-trinh-so/RegisterCamera.tsx +467 -0
- package/src/screens/toan-trinh-so/ReviewInformation.tsx +1007 -0
- package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +791 -0
- package/src/screens/toan-trinh-so/ReviewLoan.tsx +1200 -0
- package/src/screens/toan-trinh-so/TTSNationalIDBack.tsx +242 -0
- package/src/screens/toan-trinh-so/TTSNationalIDFront.tsx +247 -0
- package/src/screens/toan-trinh-so/TTSOTP.tsx +356 -0
- package/src/screens/toan-trinh-so/TTSSelfie.tsx +267 -0
- package/src/screens/toan-trinh-so/TTSSignLoan.tsx +143 -0
- package/src/screens/toan-trinh-so/VehicleCamera.tsx +477 -0
- package/src/screens/toan-trinh-so/VehicleRegistration.tsx +197 -0
- package/src/screens/toan-trinh-so/VehicleRegistrationBack.tsx +239 -0
- package/src/screens/toan-trinh-so/VehicleRegistrationFront.tsx +240 -0
- package/src/screens/toan-trinh-so/store.ts +237 -0
- package/src/services/api/api-config.ts +2 -2
- package/src/services/api/api.ts +235 -0
- package/src/utils/index.tsx +67 -45
- package/src/utils/storage/storage.ts +4 -0
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { observable, action, toJS, makeAutoObservable } from 'mobx';
|
|
3
|
+
import { Api } from '../../services/api';
|
|
4
|
+
|
|
5
|
+
class Store {
|
|
6
|
+
listProvince = []
|
|
7
|
+
listDistrict = []
|
|
8
|
+
listWard = []
|
|
9
|
+
|
|
10
|
+
listDistrict2 = []
|
|
11
|
+
listWard2 = []
|
|
12
|
+
listBank = []
|
|
13
|
+
listCar = []
|
|
14
|
+
listYear = []
|
|
15
|
+
listBrand = []
|
|
16
|
+
|
|
17
|
+
listRelationship = []
|
|
18
|
+
|
|
19
|
+
constructor() {
|
|
20
|
+
makeAutoObservable(this);
|
|
21
|
+
}
|
|
22
|
+
async getProvinces() {
|
|
23
|
+
try {
|
|
24
|
+
const response = await Api.getInstance().getProvinces({});
|
|
25
|
+
if (response.kind === 'ok') {
|
|
26
|
+
if (response.data.meta.errorCode === 200) {
|
|
27
|
+
this.listProvince = response.data.data.map((item: any) => {
|
|
28
|
+
return { id: item.provinceId, name: item.name };
|
|
29
|
+
});
|
|
30
|
+
} else {
|
|
31
|
+
Alert.alert('Thông báo', response.data.meta.errorMessage);
|
|
32
|
+
}
|
|
33
|
+
} else {
|
|
34
|
+
Alert.alert('Thông báo', 'Không lấy được danh sách thành phố.');
|
|
35
|
+
}
|
|
36
|
+
} catch (error) {
|
|
37
|
+
console.log(error);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
async getDistrict(id, onSuccess?) {
|
|
42
|
+
try {
|
|
43
|
+
const response = await Api.getInstance().getDistricts(id);
|
|
44
|
+
if (response.kind === 'ok') {
|
|
45
|
+
if (response.data.meta.errorCode === 200) {
|
|
46
|
+
if (onSuccess) {
|
|
47
|
+
onSuccess(
|
|
48
|
+
response.data.data.map((item: any) => {
|
|
49
|
+
return { id: item.districtId, name: item.name };
|
|
50
|
+
})
|
|
51
|
+
);
|
|
52
|
+
} else {
|
|
53
|
+
this.listDistrict = response.data.data.map((item: any) => {
|
|
54
|
+
return { id: item.districtId, name: item.name };
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
} else {
|
|
58
|
+
Alert.alert('Thông báo', response.data.meta.errorMessage);
|
|
59
|
+
}
|
|
60
|
+
} else {
|
|
61
|
+
Alert.alert('Thông báo', 'Không lấy được danh sách quận huyện.');
|
|
62
|
+
}
|
|
63
|
+
} catch (error) {
|
|
64
|
+
console.log(error);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
async getWard(id, onSuccess?) {
|
|
70
|
+
try {
|
|
71
|
+
const response = await Api.getInstance().getWards(id);
|
|
72
|
+
if (response.kind === 'ok') {
|
|
73
|
+
if (response.data.meta.errorCode === 200) {
|
|
74
|
+
if (onSuccess) {
|
|
75
|
+
onSuccess(
|
|
76
|
+
response.data.data.map((item: any) => {
|
|
77
|
+
return { id: item.wardId, name: item.name };
|
|
78
|
+
})
|
|
79
|
+
);
|
|
80
|
+
} else {
|
|
81
|
+
this.listWard = response.data.data.map((item: any) => {
|
|
82
|
+
return { id: item.wardId, name: item.name };
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
} else {
|
|
86
|
+
Alert.alert('Thông báo', response.data.meta.errorMessage);
|
|
87
|
+
}
|
|
88
|
+
} else {
|
|
89
|
+
Alert.alert('Thông báo', 'Không lấy được danh sách quận huyện.');
|
|
90
|
+
}
|
|
91
|
+
} catch (error) {
|
|
92
|
+
console.log(error);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
async getDistrict2(id, onSuccess?) {
|
|
97
|
+
try {
|
|
98
|
+
const response = await Api.getInstance().getDistricts(id);
|
|
99
|
+
if (response.kind === 'ok') {
|
|
100
|
+
if (response.data.meta.errorCode === 200) {
|
|
101
|
+
if (onSuccess) {
|
|
102
|
+
onSuccess(
|
|
103
|
+
response.data.data.map((item: any) => {
|
|
104
|
+
return { id: item.districtId, name: item.name };
|
|
105
|
+
})
|
|
106
|
+
);
|
|
107
|
+
} else {
|
|
108
|
+
this.listDistrict2 = response.data.data.map((item: any) => {
|
|
109
|
+
return { id: item.districtId, name: item.name };
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
} else {
|
|
113
|
+
Alert.alert('Thông báo', response.data.meta.errorMessage);
|
|
114
|
+
}
|
|
115
|
+
} else {
|
|
116
|
+
Alert.alert('Thông báo', 'Không lấy được danh sách quận huyện.');
|
|
117
|
+
}
|
|
118
|
+
} catch (error) {
|
|
119
|
+
console.log(error);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
async getWard2(id, onSuccess?) {
|
|
125
|
+
try {
|
|
126
|
+
const response = await Api.getInstance().getWards(id);
|
|
127
|
+
if (response.kind === 'ok') {
|
|
128
|
+
if (response.data.meta.errorCode === 200) {
|
|
129
|
+
if (onSuccess) {
|
|
130
|
+
onSuccess(
|
|
131
|
+
response.data.data.map((item: any) => {
|
|
132
|
+
return { id: item.wardId, name: item.name };
|
|
133
|
+
})
|
|
134
|
+
);
|
|
135
|
+
} else {
|
|
136
|
+
this.listWard2 = response.data.data.map((item: any) => {
|
|
137
|
+
return { id: item.wardId, name: item.name };
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
} else {
|
|
141
|
+
Alert.alert('Thông báo', response.data.meta.errorMessage);
|
|
142
|
+
}
|
|
143
|
+
} else {
|
|
144
|
+
Alert.alert('Thông báo', 'Không lấy được danh sách quận huyện.');
|
|
145
|
+
}
|
|
146
|
+
} catch (error) {
|
|
147
|
+
console.log(error);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
async getListBank() {
|
|
152
|
+
try {
|
|
153
|
+
const response = await Api.getInstance().getBanks();
|
|
154
|
+
if (response.kind === 'ok') {
|
|
155
|
+
if (response.data.meta.errorCode === 200) {
|
|
156
|
+
this.listBank = response.data.data.map((item: any) => {
|
|
157
|
+
return { id: item.bankId, name: `${item?.bankCode} - ${item?.name}` };
|
|
158
|
+
});
|
|
159
|
+
} else {
|
|
160
|
+
}
|
|
161
|
+
} else {
|
|
162
|
+
}
|
|
163
|
+
} catch (error) {
|
|
164
|
+
console.log(error);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
async getListBrand() {
|
|
169
|
+
try {
|
|
170
|
+
const response = await Api.getInstance().getBrandCar();
|
|
171
|
+
if (response.kind === 'ok') {
|
|
172
|
+
if (response.data.meta.errorCode === 200) {
|
|
173
|
+
this.listBrand = response.data.data.map((item: any) => {
|
|
174
|
+
return { id: item, name: item };
|
|
175
|
+
});
|
|
176
|
+
} else {
|
|
177
|
+
}
|
|
178
|
+
} else {
|
|
179
|
+
}
|
|
180
|
+
} catch (error) {
|
|
181
|
+
console.log(error);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
async getListYearCar(name) {
|
|
186
|
+
try {
|
|
187
|
+
const response = await Api.getInstance().getYearCar(name);
|
|
188
|
+
if (response.kind === 'ok') {
|
|
189
|
+
if (response.data.meta.errorCode === 200) {
|
|
190
|
+
this.listYear = response.data.data.map((item: any) => {
|
|
191
|
+
return { id: item, name: item };
|
|
192
|
+
});
|
|
193
|
+
} else {
|
|
194
|
+
}
|
|
195
|
+
} else {
|
|
196
|
+
}
|
|
197
|
+
} catch (error) {
|
|
198
|
+
console.log(error);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
async getListCar(name, year) {
|
|
203
|
+
try {
|
|
204
|
+
const response = await Api.getInstance().getNameCar(name, year);
|
|
205
|
+
if (response.kind === 'ok') {
|
|
206
|
+
if (response.data.meta.errorCode === 200) {
|
|
207
|
+
this.listCar = response.data.data.map((item: any) => {
|
|
208
|
+
return { id: item, name: item };
|
|
209
|
+
});
|
|
210
|
+
} else {
|
|
211
|
+
}
|
|
212
|
+
} else {
|
|
213
|
+
}
|
|
214
|
+
} catch (error) {
|
|
215
|
+
console.log(error);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
async getRelationship() {
|
|
220
|
+
try {
|
|
221
|
+
const response = await Api.getInstance().getRelationship();
|
|
222
|
+
if (response.kind === 'ok') {
|
|
223
|
+
if (response.data.meta.errorCode === 200) {
|
|
224
|
+
this.listRelationship = response.data.data
|
|
225
|
+
} else {
|
|
226
|
+
}
|
|
227
|
+
} else {
|
|
228
|
+
}
|
|
229
|
+
} catch (error) {
|
|
230
|
+
console.log(error);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
const ttsStore = new Store();
|
|
237
|
+
export default ttsStore;
|
package/src/services/api/api.ts
CHANGED
|
@@ -2392,6 +2392,23 @@ export class Api {
|
|
|
2392
2392
|
}
|
|
2393
2393
|
}
|
|
2394
2394
|
|
|
2395
|
+
async verifyLiveness2(body: any) {
|
|
2396
|
+
// make the api call
|
|
2397
|
+
const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autode/liveness`, body)
|
|
2398
|
+
myLog(response)
|
|
2399
|
+
// the typical ways to die when calling an api
|
|
2400
|
+
if (!response.ok) {
|
|
2401
|
+
const problem = getGeneralApiProblem(response)
|
|
2402
|
+
if (problem) return problem
|
|
2403
|
+
}
|
|
2404
|
+
// transform the data into the format we are expecting
|
|
2405
|
+
try {
|
|
2406
|
+
return { kind: "ok", data: response.data }
|
|
2407
|
+
} catch {
|
|
2408
|
+
return { kind: "bad-data" }
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2411
|
+
|
|
2395
2412
|
async saveImages(body: any) {
|
|
2396
2413
|
// make the api call
|
|
2397
2414
|
const response: ApiResponse<any> = await this.apisauce.post(`api/v1.0/timacare/save_image_liveness`, body)
|
|
@@ -2627,4 +2644,222 @@ export class Api {
|
|
|
2627
2644
|
return { kind: "bad-data" }
|
|
2628
2645
|
}
|
|
2629
2646
|
}
|
|
2647
|
+
|
|
2648
|
+
|
|
2649
|
+
// toàn trình số
|
|
2650
|
+
//api update chứng từ để ocr
|
|
2651
|
+
async uploadImageOcr(data) {
|
|
2652
|
+
// make the api call
|
|
2653
|
+
const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autode/upload_image`, data, { headers: { 'Content-Type': 'multipart/form-data' } })
|
|
2654
|
+
// the typical ways to die when calling an api
|
|
2655
|
+
if (!response.ok) {
|
|
2656
|
+
const problem = getGeneralApiProblem(response)
|
|
2657
|
+
if (problem) return problem
|
|
2658
|
+
}
|
|
2659
|
+
// transform the data into the format we are expecting
|
|
2660
|
+
try {
|
|
2661
|
+
return { kind: "ok", data: response.data }
|
|
2662
|
+
} catch {
|
|
2663
|
+
return { kind: "bad-data" }
|
|
2664
|
+
}
|
|
2665
|
+
}
|
|
2666
|
+
|
|
2667
|
+
// api lưu thông tin nfc
|
|
2668
|
+
async saveNfcInfo(data) {
|
|
2669
|
+
// make the api call
|
|
2670
|
+
const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autode/save_info_nfc`, data)
|
|
2671
|
+
// the typical ways to die when calling an api
|
|
2672
|
+
if (!response.ok) {
|
|
2673
|
+
const problem = getGeneralApiProblem(response)
|
|
2674
|
+
if (problem) return problem
|
|
2675
|
+
}
|
|
2676
|
+
// transform the data into the format we are expecting
|
|
2677
|
+
try {
|
|
2678
|
+
return { kind: "ok", data: response.data }
|
|
2679
|
+
} catch {
|
|
2680
|
+
return { kind: "bad-data" }
|
|
2681
|
+
}
|
|
2682
|
+
}
|
|
2683
|
+
|
|
2684
|
+
// Lấy thông tin khách hàng (luồng mới)
|
|
2685
|
+
async getInfoCustomer(id) {
|
|
2686
|
+
// make the api call
|
|
2687
|
+
const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autode/get_info_customer?loanBriefId=${id}`)
|
|
2688
|
+
// the typical ways to die when calling an api
|
|
2689
|
+
if (!response.ok) {
|
|
2690
|
+
const problem = getGeneralApiProblem(response)
|
|
2691
|
+
if (problem) return problem
|
|
2692
|
+
}
|
|
2693
|
+
// transform the data into the format we are expecting
|
|
2694
|
+
try {
|
|
2695
|
+
return { kind: "ok", data: response.data }
|
|
2696
|
+
} catch {
|
|
2697
|
+
return { kind: "bad-data" }
|
|
2698
|
+
}
|
|
2699
|
+
}
|
|
2700
|
+
|
|
2701
|
+
// API cập nhập thông tin khách hàng (luồng mới)
|
|
2702
|
+
|
|
2703
|
+
async updateInfoCustomer(body) {
|
|
2704
|
+
// make the api call
|
|
2705
|
+
const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autode/update_info_customer`, body)
|
|
2706
|
+
// the typical ways to die when calling an api
|
|
2707
|
+
if (!response.ok) {
|
|
2708
|
+
const problem = getGeneralApiProblem(response)
|
|
2709
|
+
if (problem) return problem
|
|
2710
|
+
}
|
|
2711
|
+
// transform the data into the format we are expecting
|
|
2712
|
+
try {
|
|
2713
|
+
return { kind: "ok", data: response.data }
|
|
2714
|
+
} catch {
|
|
2715
|
+
return { kind: "bad-data" }
|
|
2716
|
+
}
|
|
2717
|
+
}
|
|
2718
|
+
|
|
2719
|
+
// Lấy thông tin khoản vay (luồng mới)
|
|
2720
|
+
async getInfoLoan(id) {
|
|
2721
|
+
// make the api call
|
|
2722
|
+
const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autode/get_info_borrow?loanBriefId=${id}`)
|
|
2723
|
+
// the typical ways to die when calling an api
|
|
2724
|
+
if (!response.ok) {
|
|
2725
|
+
const problem = getGeneralApiProblem(response)
|
|
2726
|
+
if (problem) return problem
|
|
2727
|
+
}
|
|
2728
|
+
// transform the data into the format we are expecting
|
|
2729
|
+
try {
|
|
2730
|
+
return { kind: "ok", data: response.data }
|
|
2731
|
+
} catch {
|
|
2732
|
+
return { kind: "bad-data" }
|
|
2733
|
+
}
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
async getInfoInsurence2(id, loanAmount, loanTime, rateTypeId, timeInsurenceCustomer, timeInsuranceProperty) {
|
|
2737
|
+
// make the api call
|
|
2738
|
+
const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autode/reget_info_insurence?id=${id}&loanAmount=${loanAmount}&loanTime=${loanTime}&rateTypeId=${rateTypeId}&timeInsurenceCustomer=${timeInsurenceCustomer}&timeInsuranceProperty=${timeInsuranceProperty}`)
|
|
2739
|
+
myLog(response)
|
|
2740
|
+
// the typical ways to die when calling an api
|
|
2741
|
+
if (!response.ok) {
|
|
2742
|
+
const problem = getGeneralApiProblem(response)
|
|
2743
|
+
if (problem) return problem
|
|
2744
|
+
}
|
|
2745
|
+
// transform the data into the format we are expecting
|
|
2746
|
+
try {
|
|
2747
|
+
return { kind: "ok", data: response.data }
|
|
2748
|
+
} catch {
|
|
2749
|
+
return { kind: "bad-data" }
|
|
2750
|
+
}
|
|
2751
|
+
}
|
|
2752
|
+
|
|
2753
|
+
async getBrandCar() {
|
|
2754
|
+
// make the api call
|
|
2755
|
+
const response: ApiResponse<any> = await this.apisauce.get(`api/v1.0/dictionary/get_brand_car`)
|
|
2756
|
+
// the typical ways to die when calling an api
|
|
2757
|
+
if (!response.ok) {
|
|
2758
|
+
const problem = getGeneralApiProblem(response)
|
|
2759
|
+
if (problem) return problem
|
|
2760
|
+
}
|
|
2761
|
+
// transform the data into the format we are expecting
|
|
2762
|
+
try {
|
|
2763
|
+
return { kind: "ok", data: response.data }
|
|
2764
|
+
} catch {
|
|
2765
|
+
return { kind: "bad-data" }
|
|
2766
|
+
}
|
|
2767
|
+
}
|
|
2768
|
+
|
|
2769
|
+
async getYearCar(name) {
|
|
2770
|
+
// make the api call
|
|
2771
|
+
const response: ApiResponse<any> = await this.apisauce.get(`api/v1.0/dictionary/get_year_car?brand=${name}`)
|
|
2772
|
+
// the typical ways to die when calling an api
|
|
2773
|
+
if (!response.ok) {
|
|
2774
|
+
const problem = getGeneralApiProblem(response)
|
|
2775
|
+
if (problem) return problem
|
|
2776
|
+
}
|
|
2777
|
+
// transform the data into the format we are expecting
|
|
2778
|
+
try {
|
|
2779
|
+
return { kind: "ok", data: response.data }
|
|
2780
|
+
} catch {
|
|
2781
|
+
return { kind: "bad-data" }
|
|
2782
|
+
}
|
|
2783
|
+
}
|
|
2784
|
+
|
|
2785
|
+
async getNameCar(name, year) {
|
|
2786
|
+
// make the api call
|
|
2787
|
+
const response: ApiResponse<any> = await this.apisauce.get(`api/v1.0/dictionary/get_vehicles_car?brand=${name}&year=${year}`)
|
|
2788
|
+
// the typical ways to die when calling an api
|
|
2789
|
+
if (!response.ok) {
|
|
2790
|
+
const problem = getGeneralApiProblem(response)
|
|
2791
|
+
if (problem) return problem
|
|
2792
|
+
}
|
|
2793
|
+
// transform the data into the format we are expecting
|
|
2794
|
+
try {
|
|
2795
|
+
return { kind: "ok", data: response.data }
|
|
2796
|
+
} catch {
|
|
2797
|
+
return { kind: "bad-data" }
|
|
2798
|
+
}
|
|
2799
|
+
}
|
|
2800
|
+
|
|
2801
|
+
async updateInfoLoan(body) {
|
|
2802
|
+
// make the api call
|
|
2803
|
+
const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autode/update_info_borrow`, body)
|
|
2804
|
+
// the typical ways to die when calling an api
|
|
2805
|
+
if (!response.ok) {
|
|
2806
|
+
const problem = getGeneralApiProblem(response)
|
|
2807
|
+
if (problem) return problem
|
|
2808
|
+
}
|
|
2809
|
+
// transform the data into the format we are expecting
|
|
2810
|
+
try {
|
|
2811
|
+
return { kind: "ok", data: response.data }
|
|
2812
|
+
} catch {
|
|
2813
|
+
return { kind: "bad-data" }
|
|
2814
|
+
}
|
|
2815
|
+
}
|
|
2816
|
+
|
|
2817
|
+
// Lấy thông tin công việc (luồng mới)
|
|
2818
|
+
async getInfoJob(id) {
|
|
2819
|
+
// make the api call
|
|
2820
|
+
const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autode/get_info_job?loanBriefId=${id}`)
|
|
2821
|
+
// the typical ways to die when calling an api
|
|
2822
|
+
if (!response.ok) {
|
|
2823
|
+
const problem = getGeneralApiProblem(response)
|
|
2824
|
+
if (problem) return problem
|
|
2825
|
+
}
|
|
2826
|
+
// transform the data into the format we are expecting
|
|
2827
|
+
try {
|
|
2828
|
+
return { kind: "ok", data: response.data }
|
|
2829
|
+
} catch {
|
|
2830
|
+
return { kind: "bad-data" }
|
|
2831
|
+
}
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2834
|
+
async updateInfoJob(body) {
|
|
2835
|
+
// make the api call
|
|
2836
|
+
const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autode/update_info_job`, body)
|
|
2837
|
+
// the typical ways to die when calling an api
|
|
2838
|
+
if (!response.ok) {
|
|
2839
|
+
const problem = getGeneralApiProblem(response)
|
|
2840
|
+
if (problem) return problem
|
|
2841
|
+
}
|
|
2842
|
+
// transform the data into the format we are expecting
|
|
2843
|
+
try {
|
|
2844
|
+
return { kind: "ok", data: response.data }
|
|
2845
|
+
} catch {
|
|
2846
|
+
return { kind: "bad-data" }
|
|
2847
|
+
}
|
|
2848
|
+
}
|
|
2849
|
+
|
|
2850
|
+
async getRelationship() {
|
|
2851
|
+
// make the api call
|
|
2852
|
+
const response: ApiResponse<any> = await this.apisauce.get(`api/v1.0/landingpage/get_relative_family`)
|
|
2853
|
+
// the typical ways to die when calling an api
|
|
2854
|
+
if (!response.ok) {
|
|
2855
|
+
const problem = getGeneralApiProblem(response)
|
|
2856
|
+
if (problem) return problem
|
|
2857
|
+
}
|
|
2858
|
+
// transform the data into the format we are expecting
|
|
2859
|
+
try {
|
|
2860
|
+
return { kind: "ok", data: response.data }
|
|
2861
|
+
} catch {
|
|
2862
|
+
return { kind: "bad-data" }
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2630
2865
|
}
|
package/src/utils/index.tsx
CHANGED
|
@@ -1,97 +1,119 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
|
-
import moment from
|
|
2
|
+
import moment from 'moment';
|
|
3
3
|
|
|
4
4
|
export const formatMoney = (x) => {
|
|
5
5
|
try {
|
|
6
6
|
// if (x) {
|
|
7
7
|
x = x
|
|
8
8
|
.toString()
|
|
9
|
-
.replace(/,/g,
|
|
9
|
+
.replace(/,/g, '')
|
|
10
10
|
.match(/^[-+]?[0-9]*?[0-9]+$/g)
|
|
11
|
-
.join(
|
|
11
|
+
.join('');
|
|
12
12
|
// x = Number(x);
|
|
13
13
|
// x = Number.isNaN(x) ? 0 : x;
|
|
14
|
-
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g,
|
|
14
|
+
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
15
15
|
// } else {
|
|
16
16
|
// return '0';
|
|
17
17
|
// }
|
|
18
18
|
} catch (e) {
|
|
19
|
-
return
|
|
19
|
+
return '';
|
|
20
20
|
}
|
|
21
|
-
}
|
|
21
|
+
};
|
|
22
22
|
|
|
23
23
|
export const getMoney = (x) => {
|
|
24
24
|
try {
|
|
25
|
-
x = x.toString().replace(/,|\./g,
|
|
26
|
-
return Number(x)
|
|
25
|
+
x = x.toString().replace(/,|\./g, '');
|
|
26
|
+
return Number(x);
|
|
27
27
|
} catch (e) {
|
|
28
|
-
return 0
|
|
28
|
+
return 0;
|
|
29
29
|
}
|
|
30
|
-
}
|
|
30
|
+
};
|
|
31
31
|
|
|
32
32
|
export const removeAccent = (str) => {
|
|
33
|
-
str = str?.toLowerCase()
|
|
34
|
-
str = str.replace(/A|Á|À|Ã|Ạ|Â|Ấ|Ầ|Ẫ|Ậ|Ă|Ắ|Ằ|Ẵ|Ặ/g,
|
|
35
|
-
str = str.replace(/à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ/g,
|
|
36
|
-
str = str.replace(/E|É|È|Ẽ|Ẹ|Ê|Ế|Ề|Ễ|Ệ/,
|
|
37
|
-
str = str.replace(/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ/g,
|
|
38
|
-
str = str.replace(/I|Í|Ì|Ĩ|Ị/g,
|
|
39
|
-
str = str.replace(/ì|í|ị|ỉ|ĩ/g,
|
|
40
|
-
str = str.replace(/O|Ó|Ò|Õ|Ọ|Ô|Ố|Ồ|Ỗ|Ộ|Ơ|Ớ|Ờ|Ỡ|Ợ/g,
|
|
41
|
-
str = str.replace(/ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ/g,
|
|
42
|
-
str = str.replace(/U|Ú|Ù|Ũ|Ụ|Ư|Ứ|Ừ|Ữ|Ự/g,
|
|
43
|
-
str = str.replace(/ù|ú|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ/g,
|
|
44
|
-
str = str.replace(/Y|Ý|Ỳ|Ỹ|Ỵ/g,
|
|
45
|
-
str = str.replace(/ỳ|ý|ỵ|ỷ|ỹ/g,
|
|
46
|
-
str = str.replace(/Đ/g,
|
|
47
|
-
str = str.replace(/đ/g,
|
|
33
|
+
str = str?.toLowerCase();
|
|
34
|
+
str = str.replace(/A|Á|À|Ã|Ạ|Â|Ấ|Ầ|Ẫ|Ậ|Ă|Ắ|Ằ|Ẵ|Ặ/g, 'A');
|
|
35
|
+
str = str.replace(/à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ/g, 'a');
|
|
36
|
+
str = str.replace(/E|É|È|Ẽ|Ẹ|Ê|Ế|Ề|Ễ|Ệ/, 'E');
|
|
37
|
+
str = str.replace(/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ/g, 'e');
|
|
38
|
+
str = str.replace(/I|Í|Ì|Ĩ|Ị/g, 'I');
|
|
39
|
+
str = str.replace(/ì|í|ị|ỉ|ĩ/g, 'i');
|
|
40
|
+
str = str.replace(/O|Ó|Ò|Õ|Ọ|Ô|Ố|Ồ|Ỗ|Ộ|Ơ|Ớ|Ờ|Ỡ|Ợ/g, 'O');
|
|
41
|
+
str = str.replace(/ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ/g, 'o');
|
|
42
|
+
str = str.replace(/U|Ú|Ù|Ũ|Ụ|Ư|Ứ|Ừ|Ữ|Ự/g, 'U');
|
|
43
|
+
str = str.replace(/ù|ú|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ/g, 'u');
|
|
44
|
+
str = str.replace(/Y|Ý|Ỳ|Ỹ|Ỵ/g, 'Y');
|
|
45
|
+
str = str.replace(/ỳ|ý|ỵ|ỷ|ỹ/g, 'y');
|
|
46
|
+
str = str.replace(/Đ/g, 'D');
|
|
47
|
+
str = str.replace(/đ/g, 'd');
|
|
48
48
|
// Some system encode vietnamese combining accent as individual utf-8 characters
|
|
49
|
-
str = str.replace(/\u0300|\u0301|\u0303|\u0309|\u0323/g,
|
|
50
|
-
str = str.replace(/\u02C6|\u0306|\u031B/g,
|
|
51
|
-
return str
|
|
52
|
-
}
|
|
49
|
+
str = str.replace(/\u0300|\u0301|\u0303|\u0309|\u0323/g, ''); // Huyền sắc hỏi ngã nặng
|
|
50
|
+
str = str.replace(/\u02C6|\u0306|\u031B/g, ''); // Â, Ê, Ă, Ơ, Ư
|
|
51
|
+
return str;
|
|
52
|
+
};
|
|
53
53
|
|
|
54
54
|
export const formatDDMMYYY = (date) => {
|
|
55
55
|
if (date) {
|
|
56
|
-
return moment(date).format(
|
|
56
|
+
return moment(date).format('DD/MM/YYYY');
|
|
57
57
|
}
|
|
58
|
-
return null
|
|
59
|
-
}
|
|
58
|
+
return null;
|
|
59
|
+
};
|
|
60
60
|
|
|
61
61
|
export const EnumGender = [
|
|
62
62
|
{
|
|
63
63
|
id: 0,
|
|
64
|
-
name:
|
|
64
|
+
name: 'Nam',
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
id: 1,
|
|
68
|
-
name:
|
|
68
|
+
name: 'Nữ',
|
|
69
69
|
},
|
|
70
|
-
]
|
|
70
|
+
];
|
|
71
71
|
|
|
72
72
|
export const EnumMaritalStatus = [
|
|
73
73
|
{
|
|
74
74
|
id: 0,
|
|
75
|
-
name:
|
|
75
|
+
name: 'Chưa kết hôn',
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
id: 1,
|
|
79
|
-
name:
|
|
79
|
+
name: 'Đã kết hôn',
|
|
80
80
|
},
|
|
81
|
-
]
|
|
81
|
+
];
|
|
82
82
|
|
|
83
83
|
export const EnumPurpose = [
|
|
84
84
|
{
|
|
85
85
|
id: 3008,
|
|
86
|
-
name:
|
|
86
|
+
name: 'Mua sắm trang thiết bị, vật dụng gia đình',
|
|
87
87
|
},
|
|
88
|
-
]
|
|
88
|
+
];
|
|
89
89
|
|
|
90
90
|
export const diffDays = (fromDate, toDate) => {
|
|
91
|
-
const oneDay = 24 * 60 * 60 * 1000 // hours*minutes*seconds*milliseconds
|
|
92
|
-
const firstDate = new Date(fromDate)
|
|
93
|
-
const secondDate = new Date(toDate)
|
|
91
|
+
const oneDay = 24 * 60 * 60 * 1000; // hours*minutes*seconds*milliseconds
|
|
92
|
+
const firstDate = new Date(fromDate);
|
|
93
|
+
const secondDate = new Date(toDate);
|
|
94
94
|
|
|
95
95
|
//@ts-ignore
|
|
96
|
-
return Math.round(Math.abs((firstDate - secondDate) / oneDay))
|
|
97
|
-
}
|
|
96
|
+
return Math.round(Math.abs((firstDate - secondDate) / oneDay));
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export const EnumTypeCar = [
|
|
100
|
+
{
|
|
101
|
+
id: 1,
|
|
102
|
+
name: 'Xe con/xe bán tải',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
id: 2,
|
|
106
|
+
name: 'Xe tải/ xe khách',
|
|
107
|
+
},
|
|
108
|
+
];
|
|
109
|
+
|
|
110
|
+
export const EnumTypeAsset = [
|
|
111
|
+
{
|
|
112
|
+
id: 1,
|
|
113
|
+
name: 'Cá nhân',
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
id: 2,
|
|
117
|
+
name: 'Doanh nghiệp',
|
|
118
|
+
},
|
|
119
|
+
];
|
|
@@ -8,6 +8,10 @@ export const REGISTER_MOTOR = 'REGISTER_MOTOR'
|
|
|
8
8
|
export const INTRO = 'INTRO'
|
|
9
9
|
export const PHONE = 'PHONE'
|
|
10
10
|
|
|
11
|
+
export const OCR_V1 = "OCR_V1"
|
|
12
|
+
export const OCR_V2 = "OCR_V2"
|
|
13
|
+
export const OCR_V3 = "OCR_V3"
|
|
14
|
+
|
|
11
15
|
/**
|
|
12
16
|
* Loads a string from storage.
|
|
13
17
|
*
|