react-native-timacare 3.1.65 → 3.1.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/AppStore.js +1 -1
- package/lib/commonjs/AppStore.js.flow +4 -2
- package/lib/commonjs/AppStore.js.map +1 -1
- package/lib/commonjs/assets/v3/home.svg +5 -0
- package/lib/commonjs/assets/v3/index.js +2 -0
- package/lib/commonjs/assets/v3/index.js.flow +38 -0
- package/lib/commonjs/assets/v3/index.js.map +1 -0
- package/lib/commonjs/assets/v3/option1.svg +27 -0
- package/lib/commonjs/assets/v3/option2.svg +25 -0
- package/lib/commonjs/assets/v3/step1-success.svg +39 -0
- package/lib/commonjs/assets/v3/step1.svg +90 -0
- package/lib/commonjs/assets/v3/step2-disable.svg +14 -0
- package/lib/commonjs/assets/v3/step2-success.svg +8 -0
- package/lib/commonjs/assets/v3/step2.svg +37 -0
- package/lib/commonjs/assets/v3/step3-disable.svg +17 -0
- package/lib/commonjs/assets/v3/step3-success.svg +17 -0
- package/lib/commonjs/assets/v3/step3.svg +45 -0
- package/lib/commonjs/assets/v3/step4-disable.svg +11 -0
- package/lib/commonjs/assets/v3/step4-success.svg +11 -0
- package/lib/commonjs/assets/v3/step4.svg +29 -0
- package/lib/commonjs/assets/v3/step5-disable.svg +17 -0
- package/lib/commonjs/assets/v3/step5-success.svg +17 -0
- package/lib/commonjs/assets/v3/step5.svg +45 -0
- package/lib/commonjs/components/ItemTimaOneV2.js +2 -0
- package/lib/commonjs/components/ItemTimaOneV2.js.flow +617 -0
- package/lib/commonjs/components/ItemTimaOneV2.js.map +1 -0
- package/lib/commonjs/components/ItemTimaOneV3.js +2 -0
- package/lib/commonjs/components/ItemTimaOneV3.js.flow +558 -0
- package/lib/commonjs/components/ItemTimaOneV3.js.map +1 -0
- package/lib/commonjs/components/MText.js +1 -1
- package/lib/commonjs/components/MText.js.flow +1 -1
- package/lib/commonjs/components/ModalOptionLoan.js +2 -0
- package/lib/commonjs/components/ModalOptionLoan.js.flow +242 -0
- package/lib/commonjs/components/ModalOptionLoan.js.map +1 -0
- package/lib/commonjs/navigation/primary-navigator.js +1 -1
- package/lib/commonjs/navigation/primary-navigator.js.flow +12 -0
- package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
- package/lib/commonjs/screens/eSign/index.js +1 -1
- package/lib/commonjs/screens/eSign/index.js.flow +53 -41
- package/lib/commonjs/screens/eSign/index.js.map +1 -1
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +64 -625
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/commonjs/screens/mySignViettel/Layer_3.png +0 -0
- package/lib/commonjs/screens/mySignViettel/index.js +2 -0
- package/lib/commonjs/screens/mySignViettel/index.js.flow +278 -0
- package/lib/commonjs/screens/mySignViettel/index.js.map +1 -0
- package/lib/commonjs/screens/sign-tima/ViewContract.js +1 -1
- package/lib/commonjs/screens/sign-tima/ViewContract.js.flow +57 -43
- package/lib/commonjs/screens/sign-tima/ViewContract.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/OCR.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/OCR.js.flow +1 -1
- package/lib/commonjs/screens/toan-trinh-so/OCR.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js.flow +9 -2
- package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.flow +110 -7
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.flow +9 -8
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.flow +43 -169
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.flow +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.flow +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.flow +17 -14
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.flow +71 -12
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.flow +133 -43
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.flow +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.flow +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.flow +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/store.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/store.js.flow +2 -2
- package/lib/commonjs/screens/toan-trinh-so/store.js.map +1 -1
- package/lib/commonjs/screens/v3/AssetInformation.js +2 -0
- package/lib/commonjs/screens/v3/AssetInformation.js.flow +690 -0
- package/lib/commonjs/screens/v3/AssetInformation.js.map +1 -0
- package/lib/commonjs/services/api/api.js +1 -1
- package/lib/commonjs/services/api/api.js.flow +196 -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 +2 -0
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/module/AppStore.js +1 -1
- package/lib/module/AppStore.js.map +1 -1
- package/lib/module/assets/v3/home.svg +5 -0
- package/lib/module/assets/v3/index.js +2 -0
- package/lib/module/assets/v3/index.js.map +1 -0
- package/lib/module/assets/v3/option1.svg +27 -0
- package/lib/module/assets/v3/option2.svg +25 -0
- package/lib/module/assets/v3/step1-success.svg +39 -0
- package/lib/module/assets/v3/step1.svg +90 -0
- package/lib/module/assets/v3/step2-disable.svg +14 -0
- package/lib/module/assets/v3/step2-success.svg +8 -0
- package/lib/module/assets/v3/step2.svg +37 -0
- package/lib/module/assets/v3/step3-disable.svg +17 -0
- package/lib/module/assets/v3/step3-success.svg +17 -0
- package/lib/module/assets/v3/step3.svg +45 -0
- package/lib/module/assets/v3/step4-disable.svg +11 -0
- package/lib/module/assets/v3/step4-success.svg +11 -0
- package/lib/module/assets/v3/step4.svg +29 -0
- package/lib/module/assets/v3/step5-disable.svg +17 -0
- package/lib/module/assets/v3/step5-success.svg +17 -0
- package/lib/module/assets/v3/step5.svg +45 -0
- package/lib/module/components/ItemTimaOneV2.js +2 -0
- package/lib/module/components/ItemTimaOneV2.js.map +1 -0
- package/lib/module/components/ItemTimaOneV3.js +2 -0
- package/lib/module/components/ItemTimaOneV3.js.map +1 -0
- package/lib/module/components/MText.js +1 -1
- package/lib/module/components/ModalOptionLoan.js +2 -0
- package/lib/module/components/ModalOptionLoan.js.map +1 -0
- package/lib/module/navigation/primary-navigator.js +1 -1
- package/lib/module/navigation/primary-navigator.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/home/index.js +1 -1
- package/lib/module/screens/home/index.js.map +1 -1
- package/lib/module/screens/mySignViettel/Layer_3.png +0 -0
- package/lib/module/screens/mySignViettel/index.js +2 -0
- package/lib/module/screens/mySignViettel/index.js.map +1 -0
- 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/toan-trinh-so/OCR.js +1 -1
- package/lib/module/screens/toan-trinh-so/OCR.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/RegisterBack.js +1 -1
- package/lib/module/screens/toan-trinh-so/RegisterBack.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformation.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewLoan.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSelfie.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSignLoan.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleCamera.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistration.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistration.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/store.js +1 -1
- package/lib/module/screens/toan-trinh-so/store.js.map +1 -1
- package/lib/module/screens/v3/AssetInformation.js +2 -0
- package/lib/module/screens/v3/AssetInformation.js.map +1 -0
- 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/typescript/AppStore.d.ts +2 -2
- package/lib/typescript/AppStore.d.ts.map +1 -1
- package/lib/typescript/assets/v3/index.d.ts +19 -0
- package/lib/typescript/assets/v3/index.d.ts.map +1 -0
- package/lib/typescript/components/ItemTimaOneV2.d.ts +7 -0
- package/lib/typescript/components/ItemTimaOneV2.d.ts.map +1 -0
- package/lib/typescript/components/ItemTimaOneV3.d.ts +7 -0
- package/lib/typescript/components/ItemTimaOneV3.d.ts.map +1 -0
- package/lib/typescript/components/ModalOptionLoan.d.ts +8 -0
- package/lib/typescript/components/ModalOptionLoan.d.ts.map +1 -0
- package/lib/typescript/navigation/primary-navigator.d.ts +2 -0
- package/lib/typescript/navigation/primary-navigator.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/mySignViettel/index.d.ts +2 -0
- package/lib/typescript/screens/mySignViettel/index.d.ts.map +1 -0
- package/lib/typescript/screens/sign-tima/ViewContract.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/RegisterBack.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/ReviewInformation.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/ReviewInformationOther.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSSignLoan.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts.map +1 -1
- package/lib/typescript/screens/v3/AssetInformation.d.ts +2 -0
- package/lib/typescript/screens/v3/AssetInformation.d.ts.map +1 -0
- package/lib/typescript/services/api/api.d.ts +192 -0
- package/lib/typescript/services/api/api.d.ts.map +1 -1
- package/lib/typescript/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/AppStore.tsx +4 -2
- package/src/assets/v3/home.svg +5 -0
- package/src/assets/v3/index.tsx +38 -0
- package/src/assets/v3/option1.svg +27 -0
- package/src/assets/v3/option2.svg +25 -0
- package/src/assets/v3/step1-success.svg +39 -0
- package/src/assets/v3/step1.svg +90 -0
- package/src/assets/v3/step2-disable.svg +14 -0
- package/src/assets/v3/step2-success.svg +8 -0
- package/src/assets/v3/step2.svg +37 -0
- package/src/assets/v3/step3-disable.svg +17 -0
- package/src/assets/v3/step3-success.svg +17 -0
- package/src/assets/v3/step3.svg +45 -0
- package/src/assets/v3/step4-disable.svg +11 -0
- package/src/assets/v3/step4-success.svg +11 -0
- package/src/assets/v3/step4.svg +29 -0
- package/src/assets/v3/step5-disable.svg +17 -0
- package/src/assets/v3/step5-success.svg +17 -0
- package/src/assets/v3/step5.svg +45 -0
- package/src/components/ItemTimaOneV2.tsx +617 -0
- package/src/components/ItemTimaOneV3.tsx +558 -0
- package/src/components/MText.tsx +1 -1
- package/src/components/ModalOptionLoan.tsx +242 -0
- package/src/navigation/primary-navigator.tsx +12 -0
- package/src/screens/eSign/index.tsx +53 -41
- package/src/screens/home/index.tsx +64 -625
- package/src/screens/mySignViettel/Layer_3.png +0 -0
- package/src/screens/mySignViettel/index.tsx +278 -0
- package/src/screens/sign-tima/ViewContract.tsx +57 -43
- package/src/screens/toan-trinh-so/OCR.tsx +1 -1
- package/src/screens/toan-trinh-so/RegisterBack.tsx +9 -2
- package/src/screens/toan-trinh-so/ReviewInformation.tsx +110 -7
- package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +9 -8
- package/src/screens/toan-trinh-so/ReviewLoan.tsx +43 -169
- package/src/screens/toan-trinh-so/TTSNationalIDBack.tsx +1 -1
- package/src/screens/toan-trinh-so/TTSNationalIDFront.tsx +1 -1
- package/src/screens/toan-trinh-so/TTSSelfie.tsx +17 -14
- package/src/screens/toan-trinh-so/TTSSignLoan.tsx +71 -12
- package/src/screens/toan-trinh-so/VehicleCamera.tsx +133 -43
- package/src/screens/toan-trinh-so/VehicleRegistration.tsx +1 -1
- package/src/screens/toan-trinh-so/VehicleRegistrationBack.tsx +1 -1
- package/src/screens/toan-trinh-so/VehicleRegistrationFront.tsx +1 -1
- package/src/screens/toan-trinh-so/store.ts +2 -2
- package/src/screens/v3/AssetInformation.tsx +690 -0
- package/src/services/api/api.ts +196 -0
- package/src/utils/index.tsx +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_MHeader","_interopRequireDefault","_native","_Loading","_CommonStyles","_MButton","_MText","_icons","_reactNativeLinearGradient","_api","_navigation","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","logoView","position","width","height","resizeMode","$flex","flex","TTSNationalIDBack","props","navigation","useNavigation","_useState","useState","_useState2","_slicedToArray2","photo","setPhoto","_useState3","_useState4","isLoading","setIsLoading","useEffect","_props$route","_props$route$params","route","params","uri","_props$route2","_props$route2$params","takePhoto","_props$route3","_props$route3$params","push","ScreenNames","OCR","loan","callback","nextStep","_callee","_props$route4","_props$route4$params","_props$route4$params$","formData","response","_response$data","_response$data$meta","_props$route5","_props$route5$params","_response$data2","_response$data2$meta","_regenerator","async","_callee$","_context","prev","next","FormData","append","id","type","name","awrap","Api","getInstance","uploadImageOcr","sent","kind","data","meta","errorCode","TTSSelfie","Alert","alert","errorMessage","t0","console","log","stop","Promise","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","Image","source","title","onBack","goBack","SafeAreaView","commonStyles","fill","ScrollView","paddingHorizontal","paddingBottom","flexDirection","alignItems","marginTop","TimaSmallWhite","MText","textNormalBold","fontSize","color","marginLeft","Dimensions","borderWidth","borderRadius","borderColor","TimaSmall","marginBottom","onPress","disabled","row","alignCenter","justifyCenter","backgroundColor","marginRight","textNormal","colors"],"sourceRoot":"../../../../src","sources":["screens/toan-trinh-so/TTSNationalIDBack.tsx"],"mappings":"yVACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAWA,IAAAE,QAAA,CAAAC,sBAAA,CAAAH,OAAA,8BACA,IAAAI,OAAA,CAAAJ,OAAA,6BAKA,IAAAK,QAAA,CAAAF,sBAAA,CAAAH,OAAA,8BACA,IAAAM,aAAA,CAAAN,OAAA,oBACA,IAAAO,QAAA,CAAAJ,sBAAA,CAAAH,OAAA,8BACA,IAAAQ,MAAA,CAAAR,OAAA,2BACA,IAAAS,MAAA,CAAAT,OAAA,uBACA,IAAAU,0BAAA,CAAAP,sBAAA,CAAAH,OAAA,kCACA,IAAAW,IAAA,CAAAX,OAAA,uBACA,IAAAY,WAAA,CAAAZ,OAAA,qBAA+C,IAAAa,YAAA,wGAAAC,yBAAAC,CAAA,wBAAAC,OA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AAa,OAAO,EACNiI,QAAQ,CAAE,CAACnG,KAAK,EAAII,SAAU,CAC9B8D,KAAK,CAAE,CAAE3E,IAAI,CAAE,CAAE,CAAE,CACnB2G,OAAO,CAAE,SAAAA,QAAA,CAAM,CACb5E,QAAQ,CAAC,CAAC,CACZ,CAAE,CAAA6C,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA1G,YAAA,CAAA2G,UAAA,KAAAC,YAAA,MAEF3H,MAAA,CAAAsB,OAAA,CAAA8F,aAAA,CAACxG,0BAAA,CAAAU,OAAc,EACbwI,MAAM,CAAE,CAAC,SAAS,CAAE,SAAS,CAAE,CAC/BxC,KAAK,CAAE,CACLY,0BAAY,CAACuB,WAAW,CACxBvB,0BAAY,CAACwB,aAAa,CAC1B,CACElH,MAAM,CAAE,EAAE,CACV0G,YAAY,CAAE,EAAE,CAChBH,UAAU,CAAE,CACd,CAAC,CACD,CAAAxB,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA1G,YAAA,CAAA2G,UAAA,KAAAC,YAAA,MAEF3H,MAAA,CAAAsB,OAAA,CAAA8F,aAAA,CAAC1G,MAAA,CAAAiI,KAAK,EAACrB,KAAK,CAAE,CAACY,0BAAY,CAAC2B,UAAU,CAAE,CAAEf,KAAK,CAAE,OAAQ,CAAC,CAAE,CAAAvB,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA1G,YAAA,CAAA2G,UAAA,KAAAC,YAAA,MAAC,oBAEtD,CACO,CACT,CACL,CACM,CAAC,CACf3H,MAAA,CAAAsB,OAAA,CAAA8F,aAAA,CAAC7G,QAAA,CAAAe,OAAO,EAACkC,SAAS,CAAEA,SAAU,CAAA+D,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA1G,YAAA,CAAA2G,UAAA,KAAAC,YAAA,IAAE,CAC5B,CAAC,CAEX"}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_MHeader","_interopRequireDefault","_native","_Loading","_CommonStyles","_MButton","_MText","_icons","_reactNativeLinearGradient","_api","_navigation","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","logoView","position","width","height","resizeMode","$flex","flex","TTSNationalIDBack","props","navigation","useNavigation","_useState","useState","_useState2","_slicedToArray2","photo","setPhoto","_useState3","_useState4","isLoading","setIsLoading","useEffect","_props$route","_props$route$params","route","params","uri","_props$route2","_props$route2$params","takePhoto","_props$route3","_props$route3$params","push","ScreenNames","OCR","loan","callback","nextStep","_callee","_props$route4","_props$route4$params","_props$route4$params$","formData","response","_response$data","_response$data$meta","_props$route5","_props$route5$params","_response$data2","_response$data2$meta","_regenerator","async","_callee$","_context","prev","next","FormData","append","id","type","name","awrap","Api","getInstance","uploadImageAutoDE","sent","kind","data","meta","errorCode","TTSSelfie","Alert","alert","errorMessage","t0","console","log","stop","Promise","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","Image","source","title","onBack","goBack","SafeAreaView","commonStyles","fill","ScrollView","paddingHorizontal","paddingBottom","flexDirection","alignItems","marginTop","TimaSmallWhite","MText","textNormalBold","fontSize","color","marginLeft","Dimensions","borderWidth","borderRadius","borderColor","TimaSmall","marginBottom","onPress","disabled","row","alignCenter","justifyCenter","backgroundColor","marginRight","textNormal","colors"],"sourceRoot":"../../../../src","sources":["screens/toan-trinh-so/TTSNationalIDBack.tsx"],"mappings":"yVACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAWA,IAAAE,QAAA,CAAAC,sBAAA,CAAAH,OAAA,8BACA,IAAAI,OAAA,CAAAJ,OAAA,6BAKA,IAAAK,QAAA,CAAAF,sBAAA,CAAAH,OAAA,8BACA,IAAAM,aAAA,CAAAN,OAAA,oBACA,IAAAO,QAAA,CAAAJ,sBAAA,CAAAH,OAAA,8BACA,IAAAQ,MAAA,CAAAR,OAAA,2BACA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D,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA1G,YAAA,CAAA2G,UAAA,KAAAC,YAAA,IAAE,CAC5B,CAAC,CAEX"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.TTSNationalIDFront=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _mobxReactLite=require("mobx-react-lite");var _native=require("@react-navigation/native");var _reactNative=require("react-native");var _MText=require("../../components/MText");var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _CommonStyles=require("../CommonStyles");var _icons=require("../../assets/icons");var _MButton=_interopRequireDefault(require("../../components/MButton"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _navigation=require("../../navigation");var _api=require("../../services/api");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _AppStore=_interopRequireDefault(require("../../AppStore"));var _utils=require("../../utils");var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/screens/toan-trinh-so/TTSNationalIDFront.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}var logoView={position:'absolute',width:'100%',height:'100%',resizeMode:'cover'};var $flex={flex:1};var TTSNationalIDFront=exports.TTSNationalIDFront=(0,_mobxReactLite.observer)(function TTSNationalIDFront(props){var navigation=(0,_native.useNavigation)();var _useState=(0,_react.useState)(null),_useState2=(0,_slicedToArray2.default)(_useState,2),photo=_useState2[0],setPhoto=_useState2[1];var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),isLoading=_useState4[0],setIsLoading=_useState4[1];(0,_react.useEffect)(function _callee(){var _props$route,_props$route$params,_props$route3,_props$route3$params,_props$route3$params$,_props$route4,_props$route4$params,_props$route4$params$;var _props$route2,_props$route2$params;return _regenerator.default.async(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(props!=null&&(_props$route=props.route)!=null&&(_props$route$params=_props$route.params)!=null&&_props$route$params.uri){setPhoto(props==null?void 0:(_props$route2=props.route)==null?void 0:(_props$route2$params=_props$route2.params)==null?void 0:_props$route2$params.uri);}_context.next=3;return _regenerator.default.awrap((0,_utils.logEvent)('cccd_started',{event:'cccd_started',createdAt:new Date(),deviceId:_AppStore.default.deviceId,loanId:String((_props$route3=props.route)==null?void 0:(_props$route3$params=_props$route3.params)==null?void 0:(_props$route3$params$=_props$route3$params.loan)==null?void 0:_props$route3$params$.id),utmSource:(_props$route4=props.route)==null?void 0:(_props$route4$params=_props$route4.params)==null?void 0:(_props$route4$params$=_props$route4$params.loan)==null?void 0:_props$route4$params$.utmSource}));case 3:(0,_utils.logEventFb)('cccd_started');case 4:case"end":return _context.stop();}},null,null,null,Promise);},[]);var takePhoto=function takePhoto(){var _props$route5,_props$route5$params;navigation.push(_navigation.ScreenNames.OCR,{loan:props==null?void 0:(_props$route5=props.route)==null?void 0:(_props$route5$params=_props$route5.params)==null?void 0:_props$route5$params.loan,front:true,callback:function callback(photo){setPhoto(photo);}});};var nextStep=function _callee2(){var _props$route6,_props$route6$params,_props$route6$params$,formData,response,_response$data,_response$data$meta,_props$route7,_props$route7$params,_response$data2,_response$data2$meta;return _regenerator.default.async(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.prev=0;setIsLoading(true);formData=new FormData();formData.append('LoanBriefId',props==null?void 0:(_props$route6=props.route)==null?void 0:(_props$route6$params=_props$route6.params)==null?void 0:(_props$route6$params$=_props$route6$params.loan)==null?void 0:_props$route6$params$.id);formData.append('TypeDocumentId',311);formData.append('SubTypeId',1);formData.append('image',{uri:photo,type:'image/jpg',name:'image.jpg'});_context2.next=9;return _regenerator.default.awrap(_api.Api.getInstance().uploadImageOcr(formData));case 9:response=_context2.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data=response.data)==null?void 0:(_response$data$meta=_response$data.meta)==null?void 0:_response$data$meta.errorCode)===200){navigation.push(_navigation.ScreenNames.OCR,{front:false,loan:props==null?void 0:(_props$route7=props.route)==null?void 0:(_props$route7$params=_props$route7.params)==null?void 0:_props$route7$params.loan});}else{_reactNative.Alert.alert('Thông báo',(_response$data2=response.data)==null?void 0:(_response$data2$meta=_response$data2.meta)==null?void 0:_response$data2$meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');}_context2.next=19;break;case 14:_context2.prev=14;_context2.t0=_context2["catch"](0);console.log(_context2.t0);_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');setIsLoading(false);case 19:case"end":return _context2.stop();}},null,null,[[0,14]],Promise);};return _react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:109,columnNumber:5}},_react.default.createElement(_reactNative.Image,{source:require('../../assets/img/EKYC.png'),style:logoView,__self:this,__source:{fileName:_jsxFileName,lineNumber:110,columnNumber:7}}),_react.default.createElement(_MHeader.default,{title:"Ch\u1EE5p \u1EA3nh 2 m\u1EB7t",onBack:function onBack(){navigation.goBack();},__self:this,__source:{fileName:_jsxFileName,lineNumber:111,columnNumber:7}}),_react.default.createElement(_reactNative.SafeAreaView,{style:_CommonStyles.commonStyles.fill,__self:this,__source:{fileName:_jsxFileName,lineNumber:117,columnNumber:7}},_react.default.createElement(_reactNative.ScrollView,{style:_CommonStyles.commonStyles.fill,__self:this,__source:{fileName:_jsxFileName,lineNumber:118,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{paddingHorizontal:16,paddingBottom:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:119,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:120,columnNumber:13}},_react.default.createElement(_icons.TimaSmallWhite,{__self:this,__source:{fileName:_jsxFileName,lineNumber:127,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{fontSize:16,color:'#FFFFFF',marginLeft:8}],__self:this,__source:{fileName:_jsxFileName,lineNumber:128,columnNumber:15}},"Ch\u1EE5p CMND/ CCCD m\u1EB7t tr\u01B0\u1EDBc")),_react.default.createElement(_reactNative.Image,{source:photo?{uri:photo}:require('../../assets/img/national_id.png'),style:{width:_reactNative.Dimensions.get('window').width-32,height:(_reactNative.Dimensions.get('window').width-32)*250/360,borderWidth:8,borderRadius:6,borderColor:'#FFFFFF',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:137,columnNumber:13}}),_react.default.createElement(_reactNative.View,{style:{marginTop:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:153,columnNumber:13}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{fontSize:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:154,columnNumber:15}},"L\u01B0u \xFD ch\u1EE5p CMND/ CCCD"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:16,alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:157,columnNumber:15}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:164,columnNumber:17}}),_react.default.createElement(_MText.MText,{style:{color:'#333333',marginLeft:8,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:165,columnNumber:17}},"N\xEAn \u0111\u1EB7t CCCD/ CMND l\xEAn m\u1EB7t ph\u1EB3ng \u0111\u1EC3 ch\u1EE5p")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:171,columnNumber:15}},_react.default.createElement(_icons.TimaSmall,{style:{marginTop:5},__self:this,__source:{fileName:_jsxFileName,lineNumber:172,columnNumber:17}}),_react.default.createElement(_MText.MText,{style:{color:'#333333',marginLeft:8,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:173,columnNumber:17}},"\u0110\u1EB7t CCCD/ CMND n\u1EB1m g\u1ECDn trong khung h\xECnh",'\n',"(Kh\xF4ng qu\xE1 nh\u1ECF hay qu\xE1 to l\xE0m m\u1EA5t chi ti\u1EBFt)")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:8,alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:180,columnNumber:15}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:187,columnNumber:17}}),_react.default.createElement(_MText.MText,{style:{color:'#333333',marginLeft:8,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:188,columnNumber:17}},"Ch\u1ECDn n\u01A1i \xE1nh s\xE1ng t\u1ED1t, tr\xE1nh l\xF3a/ ch\xF3i h\xECnh ch\u1EE5p"))))),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',paddingHorizontal:16,marginBottom:30},__self:this,__source:{fileName:_jsxFileName,lineNumber:197,columnNumber:9}},_react.default.createElement(_MButton.default,{onPress:function onPress(){takePhoto();},disabled:isLoading,style:[_CommonStyles.commonStyles.row,_CommonStyles.commonStyles.alignCenter,_CommonStyles.commonStyles.justifyCenter,{backgroundColor:'#FFFFFF',height:40,borderRadius:30,flex:1,marginRight:8,borderWidth:1,borderColor:'#EF4123'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:204,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#F05123'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:224,columnNumber:13}},"Ch\u1EE5p l\u1EA1i")),_react.default.createElement(_MButton.default,{disabled:!photo||isLoading,style:{flex:1},onPress:function onPress(){nextStep();},__self:this,__source:{fileName:_jsxFileName,lineNumber:229,columnNumber:11}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF7A00','#EF4123'],style:[_CommonStyles.commonStyles.alignCenter,_CommonStyles.commonStyles.justifyCenter,{height:40,borderRadius:30,marginLeft:8}],__self:this,__source:{fileName:_jsxFileName,lineNumber:236,columnNumber:13}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'white'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:248,columnNumber:15}},"Ti\u1EBFp t\u1EE5c"))))),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:255,columnNumber:7}}));});
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.TTSNationalIDFront=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _mobxReactLite=require("mobx-react-lite");var _native=require("@react-navigation/native");var _reactNative=require("react-native");var _MText=require("../../components/MText");var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _CommonStyles=require("../CommonStyles");var _icons=require("../../assets/icons");var _MButton=_interopRequireDefault(require("../../components/MButton"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _navigation=require("../../navigation");var _api=require("../../services/api");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _AppStore=_interopRequireDefault(require("../../AppStore"));var _utils=require("../../utils");var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/screens/toan-trinh-so/TTSNationalIDFront.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}var logoView={position:'absolute',width:'100%',height:'100%',resizeMode:'cover'};var $flex={flex:1};var TTSNationalIDFront=exports.TTSNationalIDFront=(0,_mobxReactLite.observer)(function TTSNationalIDFront(props){var navigation=(0,_native.useNavigation)();var _useState=(0,_react.useState)(null),_useState2=(0,_slicedToArray2.default)(_useState,2),photo=_useState2[0],setPhoto=_useState2[1];var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),isLoading=_useState4[0],setIsLoading=_useState4[1];(0,_react.useEffect)(function _callee(){var _props$route,_props$route$params,_props$route3,_props$route3$params,_props$route3$params$,_props$route4,_props$route4$params,_props$route4$params$;var _props$route2,_props$route2$params;return _regenerator.default.async(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(props!=null&&(_props$route=props.route)!=null&&(_props$route$params=_props$route.params)!=null&&_props$route$params.uri){setPhoto(props==null?void 0:(_props$route2=props.route)==null?void 0:(_props$route2$params=_props$route2.params)==null?void 0:_props$route2$params.uri);}_context.next=3;return _regenerator.default.awrap((0,_utils.logEvent)('cccd_started',{event:'cccd_started',createdAt:new Date(),deviceId:_AppStore.default.deviceId,loanId:String((_props$route3=props.route)==null?void 0:(_props$route3$params=_props$route3.params)==null?void 0:(_props$route3$params$=_props$route3$params.loan)==null?void 0:_props$route3$params$.id),utmSource:(_props$route4=props.route)==null?void 0:(_props$route4$params=_props$route4.params)==null?void 0:(_props$route4$params$=_props$route4$params.loan)==null?void 0:_props$route4$params$.utmSource}));case 3:(0,_utils.logEventFb)('cccd_started');case 4:case"end":return _context.stop();}},null,null,null,Promise);},[]);var takePhoto=function takePhoto(){var _props$route5,_props$route5$params;navigation.push(_navigation.ScreenNames.OCR,{loan:props==null?void 0:(_props$route5=props.route)==null?void 0:(_props$route5$params=_props$route5.params)==null?void 0:_props$route5$params.loan,front:true,callback:function callback(photo){setPhoto(photo);}});};var nextStep=function _callee2(){var _props$route6,_props$route6$params,_props$route6$params$,formData,response,_response$data,_response$data$meta,_props$route7,_props$route7$params,_response$data2,_response$data2$meta;return _regenerator.default.async(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.prev=0;setIsLoading(true);formData=new FormData();formData.append('LoanBriefId',props==null?void 0:(_props$route6=props.route)==null?void 0:(_props$route6$params=_props$route6.params)==null?void 0:(_props$route6$params$=_props$route6$params.loan)==null?void 0:_props$route6$params$.id);formData.append('TypeDocumentId',311);formData.append('SubTypeId',1);formData.append('image',{uri:photo,type:'image/jpg',name:'image.jpg'});_context2.next=9;return _regenerator.default.awrap(_api.Api.getInstance().uploadImageAutoDE(formData));case 9:response=_context2.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data=response.data)==null?void 0:(_response$data$meta=_response$data.meta)==null?void 0:_response$data$meta.errorCode)===200){navigation.push(_navigation.ScreenNames.OCR,{front:false,loan:props==null?void 0:(_props$route7=props.route)==null?void 0:(_props$route7$params=_props$route7.params)==null?void 0:_props$route7$params.loan});}else{_reactNative.Alert.alert('Thông báo',(_response$data2=response.data)==null?void 0:(_response$data2$meta=_response$data2.meta)==null?void 0:_response$data2$meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');}_context2.next=19;break;case 14:_context2.prev=14;_context2.t0=_context2["catch"](0);console.log(_context2.t0);_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');setIsLoading(false);case 19:case"end":return _context2.stop();}},null,null,[[0,14]],Promise);};return _react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:109,columnNumber:5}},_react.default.createElement(_reactNative.Image,{source:require('../../assets/img/EKYC.png'),style:logoView,__self:this,__source:{fileName:_jsxFileName,lineNumber:110,columnNumber:7}}),_react.default.createElement(_MHeader.default,{title:"Ch\u1EE5p \u1EA3nh 2 m\u1EB7t",onBack:function onBack(){navigation.goBack();},__self:this,__source:{fileName:_jsxFileName,lineNumber:111,columnNumber:7}}),_react.default.createElement(_reactNative.SafeAreaView,{style:_CommonStyles.commonStyles.fill,__self:this,__source:{fileName:_jsxFileName,lineNumber:117,columnNumber:7}},_react.default.createElement(_reactNative.ScrollView,{style:_CommonStyles.commonStyles.fill,__self:this,__source:{fileName:_jsxFileName,lineNumber:118,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{paddingHorizontal:16,paddingBottom:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:119,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',alignItems:'center',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:120,columnNumber:13}},_react.default.createElement(_icons.TimaSmallWhite,{__self:this,__source:{fileName:_jsxFileName,lineNumber:127,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{fontSize:16,color:'#FFFFFF',marginLeft:8}],__self:this,__source:{fileName:_jsxFileName,lineNumber:128,columnNumber:15}},"Ch\u1EE5p CMND/ CCCD m\u1EB7t tr\u01B0\u1EDBc")),_react.default.createElement(_reactNative.Image,{source:photo?{uri:photo}:require('../../assets/img/national_id.png'),style:{width:_reactNative.Dimensions.get('window').width-32,height:(_reactNative.Dimensions.get('window').width-32)*250/360,borderWidth:8,borderRadius:6,borderColor:'#FFFFFF',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:137,columnNumber:13}}),_react.default.createElement(_reactNative.View,{style:{marginTop:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:153,columnNumber:13}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{fontSize:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:154,columnNumber:15}},"L\u01B0u \xFD ch\u1EE5p CMND/ CCCD"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:16,alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:157,columnNumber:15}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:164,columnNumber:17}}),_react.default.createElement(_MText.MText,{style:{color:'#333333',marginLeft:8,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:165,columnNumber:17}},"N\xEAn \u0111\u1EB7t CCCD/ CMND l\xEAn m\u1EB7t ph\u1EB3ng \u0111\u1EC3 ch\u1EE5p")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:8},__self:this,__source:{fileName:_jsxFileName,lineNumber:171,columnNumber:15}},_react.default.createElement(_icons.TimaSmall,{style:{marginTop:5},__self:this,__source:{fileName:_jsxFileName,lineNumber:172,columnNumber:17}}),_react.default.createElement(_MText.MText,{style:{color:'#333333',marginLeft:8,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:173,columnNumber:17}},"\u0110\u1EB7t CCCD/ CMND n\u1EB1m g\u1ECDn trong khung h\xECnh",'\n',"(Kh\xF4ng qu\xE1 nh\u1ECF hay qu\xE1 to l\xE0m m\u1EA5t chi ti\u1EBFt)")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:8,alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:180,columnNumber:15}},_react.default.createElement(_icons.TimaSmall,{__self:this,__source:{fileName:_jsxFileName,lineNumber:187,columnNumber:17}}),_react.default.createElement(_MText.MText,{style:{color:'#333333',marginLeft:8,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:188,columnNumber:17}},"Ch\u1ECDn n\u01A1i \xE1nh s\xE1ng t\u1ED1t, tr\xE1nh l\xF3a/ ch\xF3i h\xECnh ch\u1EE5p"))))),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',paddingHorizontal:16,marginBottom:30},__self:this,__source:{fileName:_jsxFileName,lineNumber:197,columnNumber:9}},_react.default.createElement(_MButton.default,{onPress:function onPress(){takePhoto();},disabled:isLoading,style:[_CommonStyles.commonStyles.row,_CommonStyles.commonStyles.alignCenter,_CommonStyles.commonStyles.justifyCenter,{backgroundColor:'#FFFFFF',height:40,borderRadius:30,flex:1,marginRight:8,borderWidth:1,borderColor:'#EF4123'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:204,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'#F05123'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:224,columnNumber:13}},"Ch\u1EE5p l\u1EA1i")),_react.default.createElement(_MButton.default,{disabled:!photo||isLoading,style:{flex:1},onPress:function onPress(){nextStep();},__self:this,__source:{fileName:_jsxFileName,lineNumber:229,columnNumber:11}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF7A00','#EF4123'],style:[_CommonStyles.commonStyles.alignCenter,_CommonStyles.commonStyles.justifyCenter,{height:40,borderRadius:30,marginLeft:8}],__self:this,__source:{fileName:_jsxFileName,lineNumber:236,columnNumber:13}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'white'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:248,columnNumber:15}},"Ti\u1EBFp t\u1EE5c"))))),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:255,columnNumber:7}}));});
|
|
2
2
|
//# sourceMappingURL=TTSNationalIDFront.js.map
|
|
@@ -84,7 +84,7 @@ export const TTSNationalIDFront = observer(function TTSNationalIDFront(props) {
|
|
|
84
84
|
name: 'image.jpg',
|
|
85
85
|
});
|
|
86
86
|
|
|
87
|
-
const response = await Api.getInstance().
|
|
87
|
+
const response = await Api.getInstance().uploadImageAutoDE(formData);
|
|
88
88
|
setIsLoading(false);
|
|
89
89
|
if (response.kind === 'ok') {
|
|
90
90
|
if (response.data?.meta?.errorCode === 200) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_mobxReactLite","_native","_reactNative","_MText","_MHeader","_interopRequireDefault","_CommonStyles","_icons","_MButton","_reactNativeLinearGradient","_navigation","_api","_Loading","_AppStore","_utils","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","logoView","position","width","height","resizeMode","$flex","flex","TTSNationalIDFront","exports","observer","props","navigation","useNavigation","_useState","useState","_useState2","_slicedToArray2","photo","setPhoto","_useState3","_useState4","isLoading","setIsLoading","useEffect","_callee","_props$route","_props$route$params","_props$route3","_props$route3$params","_props$route3$params$","_props$route4","_props$route4$params","_props$route4$params$","_props$route2","_props$route2$params","_regenerator","async","_callee$","_context","prev","next","route","params","uri","awrap","logEvent","event","createdAt","Date","deviceId","appStore","loanId","String","loan","id","utmSource","logEventFb","stop","Promise","takePhoto","_props$route5","_props$route5$params","push","ScreenNames","OCR","front","callback","nextStep","_callee2","_props$route6","_props$route6$params","_props$route6$params$","formData","response","_response$data","_response$data$meta","_props$route7","_props$route7$params","_response$data2","_response$data2$meta","_callee2$","_context2","FormData","append","type","name","Api","getInstance","uploadImageOcr","sent","kind","data","meta","errorCode","Alert","alert","errorMessage","t0","console","log","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","Image","source","title","onBack","goBack","SafeAreaView","commonStyles","fill","ScrollView","paddingHorizontal","paddingBottom","flexDirection","alignItems","marginTop","TimaSmallWhite","MText","textNormalBold","fontSize","color","marginLeft","Dimensions","borderWidth","borderRadius","borderColor","TimaSmall","marginBottom","onPress","disabled","row","alignCenter","justifyCenter","backgroundColor","marginRight","textNormal","colors"],"sourceRoot":"../../../../src","sources":["screens/toan-trinh-so/TTSNationalIDFront.tsx"],"mappings":"yVACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,cAAA,CAAAD,OAAA,oBACA,IAAAE,OAAA,CAAAF,OAAA,6BAKA,IAAAG,YAAA,CAAAH,OAAA,iBAaA,IAAAI,MAAA,CAAAJ,OAAA,2BACA,IAAAK,QAAA,CAAAC,sBAAA,CAAAN,OAAA,8BACA,IAAAO,aAAA,CAAAP,OAAA,oBACA,IAAAQ,MAAA,CAAAR,OAAA,uBACA,IAAAS,QAAA,CAAAH,sBAAA,CAAAN,OAAA,8BACA,IAAAU,0BAAA,CAAAJ,sBAAA,CAAAN,OAAA,kCACA,IAAAW,WAAA,CAAAX,OAAA,qBACA,IAAAY,IAAA,CAAAZ,OAAA,uBACA,IAAAa,QAAA,CAAAP,sBAAA,CAAAN,OAAA,8BACA,IAAAc,SAAA,CAAAR,sBAAA,CAAAN,OAAA,oBACA,IAAAe,MAAA,CAAAf,OAAA,gBAAmD,IAAAgB,YAAA,yGAAAC,yBAAAC,CAAA,wBAAAC,OAAA,iBAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAF,wBAAA,UAAAA,yBAAAC,CAAA,SAAAA,CAAA,CAAAG,CAAA,CAAAD,CAAA,IAAAF,CAAA,YAAAnB,wBAAAmB,CAAA,CAAAE,CAAA,MAAAA,CAAA,EAAAF,CAAA,EAAAA,CAAA,CAAAI,UAAA,QAAAJ,CAAA,WAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAK,OAAA,CAAAL,CAAA,MAA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,CAC1B,CACEvI,MAAM,CAAE,EAAE,CACV+H,YAAY,CAAE,EAAE,CAChBH,UAAU,CAAE,CACd,CAAC,CACD,CAAAxB,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA/H,YAAA,CAAAgI,UAAA,KAAAC,YAAA,MAEFnJ,MAAA,CAAAyB,OAAA,CAAAmH,aAAA,CAACtI,MAAA,CAAA6J,KAAK,EAACrB,KAAK,CAAE,CAACY,0BAAY,CAAC2B,UAAU,CAAE,CAAEf,KAAK,CAAE,OAAQ,CAAC,CAAE,CAAAvB,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA/H,YAAA,CAAAgI,UAAA,KAAAC,YAAA,MAAC,oBAEtD,CACO,CACT,CACL,CACM,CAAC,CACfnJ,MAAA,CAAAyB,OAAA,CAAAmH,aAAA,CAAC7H,QAAA,CAAAU,OAAO,EAACoC,SAAS,CAAEA,SAAU,CAAAkF,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA/H,YAAA,CAAAgI,UAAA,KAAAC,YAAA,IAAE,CAC5B,CAAC,CAEX,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_mobxReactLite","_native","_reactNative","_MText","_MHeader","_interopRequireDefault","_CommonStyles","_icons","_MButton","_reactNativeLinearGradient","_navigation","_api","_Loading","_AppStore","_utils","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","logoView","position","width","height","resizeMode","$flex","flex","TTSNationalIDFront","exports","observer","props","navigation","useNavigation","_useState","useState","_useState2","_slicedToArray2","photo","setPhoto","_useState3","_useState4","isLoading","setIsLoading","useEffect","_callee","_props$route","_props$route$params","_props$route3","_props$route3$params","_props$route3$params$","_props$route4","_props$route4$params","_props$route4$params$","_props$route2","_props$route2$params","_regenerator","async","_callee$","_context","prev","next","route","params","uri","awrap","logEvent","event","createdAt","Date","deviceId","appStore","loanId","String","loan","id","utmSource","logEventFb","stop","Promise","takePhoto","_props$route5","_props$route5$params","push","ScreenNames","OCR","front","callback","nextStep","_callee2","_props$route6","_props$route6$params","_props$route6$params$","formData","response","_response$data","_response$data$meta","_props$route7","_props$route7$params","_response$data2","_response$data2$meta","_callee2$","_context2","FormData","append","type","name","Api","getInstance","uploadImageAutoDE","sent","kind","data","meta","errorCode","Alert","alert","errorMessage","t0","console","log","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","Image","source","title","onBack","goBack","SafeAreaView","commonStyles","fill","ScrollView","paddingHorizontal","paddingBottom","flexDirection","alignItems","marginTop","TimaSmallWhite","MText","textNormalBold","fontSize","color","marginLeft","Dimensions","borderWidth","borderRadius","borderColor","TimaSmall","marginBottom","onPress","disabled","row","alignCenter","justifyCenter","backgroundColor","marginRight","textNormal","colors"],"sourceRoot":"../../../../src","sources":["screens/toan-trinh-so/TTSNationalIDFront.tsx"],"mappings":"yVACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,cAAA,CAAAD,OAAA,oBACA,IAAAE,OAAA,CAAAF,OAAA,6BAKA,IAAAG,YAAA,CAAAH,OAAA,iBAaA,IAAAI,MAAA,CAAAJ,OAAA,2BACA,IAAAK,QAAA,CAAAC,sBAAA,CAAAN,OAAA,8BACA,IAAAO,aAAA,CAAAP,OAAA,oBACA,IAAAQ,MAAA,CAAAR,OAAA,uBACA,IAAAS,QAAA,CAAAH,sBAAA,CAAAN,OAAA,8BACA,IAAAU,0BAAA,CAAAJ,sBAAA,CAAAN,OAAA,kCACA,IAAAW,WAAA,CAAAX,OAAA,qBACA,IAAAY,IAAA,CAAAZ,OAAA,uBACA,IAAAa,QAAA,CAAAP,sBAAA,CAAAN,OAAA,8BACA,IAAAc,SAAA,CAAAR,sBAAA,CAAAN,OAAA,oBACA,IAAAe,MAAA,CAAAf,OAAA,gBAAmD,IAAAgB,YAAA,yGAAAC,yBAAAC,CAAA,wBAAAC,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AA,CAAM,CACbnE,QAAQ,CAAC,CAAC,CACZ,CAAE,CAAAoC,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA/H,YAAA,CAAAgI,UAAA,KAAAC,YAAA,MAEFnJ,MAAA,CAAAyB,OAAA,CAAAmH,aAAA,CAAChI,0BAAA,CAAAa,OAAc,EACb6J,MAAM,CAAE,CAAC,SAAS,CAAE,SAAS,CAAE,CAC/BxC,KAAK,CAAE,CACLY,0BAAY,CAACuB,WAAW,CACxBvB,0BAAY,CAACwB,aAAa,CAC1B,CACEvI,MAAM,CAAE,EAAE,CACV+H,YAAY,CAAE,EAAE,CAChBH,UAAU,CAAE,CACd,CAAC,CACD,CAAAxB,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA/H,YAAA,CAAAgI,UAAA,KAAAC,YAAA,MAEFnJ,MAAA,CAAAyB,OAAA,CAAAmH,aAAA,CAACtI,MAAA,CAAA6J,KAAK,EAACrB,KAAK,CAAE,CAACY,0BAAY,CAAC2B,UAAU,CAAE,CAAEf,KAAK,CAAE,OAAQ,CAAC,CAAE,CAAAvB,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA/H,YAAA,CAAAgI,UAAA,KAAAC,YAAA,MAAC,oBAEtD,CACO,CACT,CACL,CACM,CAAC,CACfnJ,MAAA,CAAAyB,OAAA,CAAAmH,aAAA,CAAC7H,QAAA,CAAAU,OAAO,EAACoC,SAAS,CAAEA,SAAU,CAAAkF,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA/H,YAAA,CAAAgI,UAAA,KAAAC,YAAA,IAAE,CAC5B,CAAC,CAEX,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=TTSSelfie;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 _reactNativePermissions=require("react-native-permissions");var _reactNativeCamera=require("react-native-camera");var _MText=require("../../components/MText");var _MButton=_interopRequireDefault(require("../../components/MButton"));var _CommonStyles=require("../CommonStyles");var _icons=require("../../assets/icons");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _api=require("../../services/api");var _navigation=require("../../navigation");var _reactNativeDeviceInfo=_interopRequireDefault(require("react-native-device-info"));var _AppStore=_interopRequireDefault(require("../../AppStore"));var _utils=require("../../utils");var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/screens/toan-trinh-so/TTSSelfie.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}function TTSSelfie(props){var _this=this;var isFocused=(0,_native.useIsFocused)();var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),shouldRenderCamera=_useState2[0],setShouldRenderCamera=_useState2[1];var navigation=(0,_native.useNavigation)();var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),taking=_useState4[0],setTaking=_useState4[1];var _useState5=(0,_react.useState)(false),_useState6=(0,_slicedToArray2.default)(_useState5,2),isLoading=_useState6[0],setIsLoading=_useState6[1];var _useState7=(0,_react.useState)(false),_useState8=(0,_slicedToArray2.default)(_useState7,2),passPermission=_useState8[0],setPassPermission=_useState8[1];var myCamera=(0,_react.useRef)(null);var requestPermissions=function requestPermissions(){(0,_reactNativePermissions.request)(_reactNative.Platform.OS==='ios'?_reactNativePermissions.PERMISSIONS.IOS.CAMERA:_reactNativePermissions.PERMISSIONS.ANDROID.CAMERA).then(function(result){switch(result){case _reactNativePermissions.RESULTS.UNAVAILABLE:console.log('This feature is not available (on this device / in this context)');_reactNative.Alert.alert('Thông báo','Máy ảnh trên thiết bị không tương thích.\nVui lòng kiểm tra lại thiết bị!',[{text:'Đồng ý'}]);break;case _reactNativePermissions.RESULTS.DENIED:console.log('The permission has not been requested / is denied but requestable');_reactNative.Alert.alert('Thông báo','Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',[{text:'Đồng ý',onPress:function onPress(){if(_reactNative.Platform.OS==='ios'){(0,_reactNativePermissions.openSettings)();}else{requestPermissions();}}}]);break;case _reactNativePermissions.RESULTS.LIMITED:console.log('The permission is limited: some actions are possible');_reactNative.Alert.alert('Thông báo','Quyền máy ảnh bị hạn chế. Vui lòng kiểm tra lại để tiếp tục!',[{text:'Đồng ý',onPress:function onPress(){if(_reactNative.Platform.OS==='ios'){(0,_reactNativePermissions.openSettings)();}else{requestPermissions();}}}]);break;case _reactNativePermissions.RESULTS.GRANTED:console.log('The permission is granted');setPassPermission(true);break;case _reactNativePermissions.RESULTS.BLOCKED:console.log('The permission is denied and not requestable anymore');_reactNative.Alert.alert('Thông báo','Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',[{text:'Đồng ý',onPress:function onPress(){if(_reactNative.Platform.OS==='ios'){(0,_reactNativePermissions.openSettings)();}else{(0,_reactNativePermissions.openSettings)();}}}]);break;}});};(0,_react.useEffect)(function _callee(){var _props$route,_props$route$params,_props$route$params$l,_props$route2,_props$route2$params,_props$route2$params$;return _regenerator.default.async(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:requestPermissions();_context.next=3;return _regenerator.default.awrap((0,_utils.logEvent)('cccd_completed',{event:'cccd_completed',createdAt:new Date(),deviceId:_AppStore.default.deviceId,loanId:String(props==null?void 0:(_props$route=props.route)==null?void 0:(_props$route$params=_props$route.params)==null?void 0:(_props$route$params$l=_props$route$params.loan)==null?void 0:_props$route$params$l.id),utmSource:props==null?void 0:(_props$route2=props.route)==null?void 0:(_props$route2$params=_props$route2.params)==null?void 0:(_props$route2$params$=_props$route2$params.loan)==null?void 0:_props$route2$params$.utmSource}));case 3:(0,_utils.logEventFb)('cccd_completed');case 4:case"end":return _context.stop();}},null,null,null,Promise);},[]);(0,_react.useEffect)(function(){var timeout;if(isFocused){timeout=setTimeout(function(){setShouldRenderCamera(true);},500);}else{setShouldRenderCamera(false);}return function(){return clearTimeout(timeout);};},[isFocused]);var takePhoto=function _callee2(){var options,data,_props$route3,_props$route3$params,_props$route3$params$,formData,response,_response$data,_props$route4,_props$route4$params,_props$route4$params$,_props$route5,_props$route5$params,_response$data2,_response$data2$meta;return _regenerator.default.async(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:setTaking(true);options={width:720,pauseAfterCapture:true,fixOrientation:false,forceUpOrientation:false,orientation:_reactNativeCamera.RNCamera.Constants.Orientation.portrait};_context2.next=4;return _regenerator.default.awrap(myCamera.current.takePictureAsync(options));case 4:data=_context2.sent;setTaking(false);if(!data.uri){_context2.next=17;break;}setIsLoading(true);formData=new FormData();formData.append('LoanBriefId',props==null?void 0:(_props$route3=props.route)==null?void 0:(_props$route3$params=_props$route3.params)==null?void 0:(_props$route3$params$=_props$route3$params.loan)==null?void 0:_props$route3$params$.id);formData.append('TypeDocumentId',125);formData.append('image',{uri:data.uri,type:'image/jpg',name:'image.jpg'});_context2.next=14;return _regenerator.default.awrap(_api.Api.getInstance().uploadImageOcr(formData));case 14:response=_context2.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data=response.data)==null?void 0:_response$data.meta.errorCode)===200){if((props==null?void 0:(_props$route4=props.route)==null?void 0:(_props$route4$params=_props$route4.params)==null?void 0:(_props$route4$params$=_props$route4$params.loan)==null?void 0:_props$route4$params$.typeLoan)===5){navigation.push(_navigation.ScreenNames.VehicleCamera,{front:true,loan:props==null?void 0:(_props$route5=props.route)==null?void 0:(_props$route5$params=_props$route5.params)==null?void 0:_props$route5$params.loan});}else{navigation.dispatch(_native.CommonActions.reset({index:1,routes:[{name:_navigation.ScreenNames.Main}]}));}}else{_reactNative.Alert.alert('Thông báo',(_response$data2=response.data)==null?void 0:(_response$data2$meta=_response$data2.meta)==null?void 0:_response$data2$meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');}case 17:case"end":return _context2.stop();}},null,null,null,Promise);};return _react.default.createElement(_reactNative.View,{style:{flex:1,backgroundColor:'black'},pointerEvents:'box-none',__self:this,__source:{fileName:_jsxFileName,lineNumber:202,columnNumber:5}},passPermission&&shouldRenderCamera?_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.fill,{width:_reactNative.Dimensions.get('window').width,height:_reactNative.Dimensions.get('window').height}],__self:this,__source:{fileName:_jsxFileName,lineNumber:207,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{marginVertical:24,flexDirection:'row',alignItems:'center',justifyContent:'center',marginTop:_reactNativeDeviceInfo.default.hasNotch()?70:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:216,columnNumber:11}},_react.default.createElement(_MButton.default,{onPress:function onPress(){navigation.goBack();},style:{position:'absolute',left:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:225,columnNumber:13}},_react.default.createElement(_icons.IconBackWhite,{__self:this,__source:{fileName:_jsxFileName,lineNumber:234,columnNumber:15}})),_react.default.createElement(_MText.MText,{style:{color:'white',fontWeight:'bold',textAlgin:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:236,columnNumber:13}},"X\xE1c th\u1EF1c khu\xF4n m\u1EB7t")),_react.default.createElement(_reactNativeCamera.RNCamera,{ref:myCamera,defaultVideoQuality:_reactNativeCamera.RNCamera.Constants.VideoQuality['720p'],style:{width:_reactNative.Dimensions.get('window').width,height:_reactNative.Dimensions.get('window').width*4/3.1},type:_reactNativeCamera.RNCamera.Constants.Type.front,maxZoom:1,captureAudio:false,androidCameraPermissionOptions:{title:'Permission to use camera',message:'We need your permission to use your camera',buttonPositive:'Ok',buttonNegative:'Cancel'},__self:this,__source:{fileName:_jsxFileName,lineNumber:246,columnNumber:11}},function(_ref){var camera=_ref.camera,status=_ref.status,recordAudioPermissionStatus=_ref.recordAudioPermissionStatus;if(status!=='READY')return _react.default.createElement(_reactNative.ActivityIndicator,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:264,columnNumber:46}});}),_react.default.createElement(_reactNative.View,{style:{position:'absolute',bottom:20,left:0,right:0},__self:this,__source:{fileName:_jsxFileName,lineNumber:268,columnNumber:11}},!taking&&_react.default.createElement(_react.default.Fragment,null,_react.default.createElement(_MText.MText,{style:{color:'white',textAlign:'center',fontSize:14,paddingHorizontal:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:278,columnNumber:17}},"Xin vui l\xF2ng nh\xECn th\u1EB3ng, khu\xF4n m\u1EB7t \u1EDF trong khung h\xECnh, \xE1nh s\xE1ng \u0111\u1EE7 r\xF5 n\xE9t khu\xF4n m\u1EB7t"),_react.default.createElement(_reactNative.View,{style:{alignItems:'center',marginVertical:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:289,columnNumber:17}},_react.default.createElement(_MButton.default,{onPress:function onPress(){takePhoto();},__self:this,__source:{fileName:_jsxFileName,lineNumber:295,columnNumber:19}},_react.default.createElement(_icons.TakePhotoSvg,{__self:this,__source:{fileName:_jsxFileName,lineNumber:300,columnNumber:21}})))))):null,_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:309,columnNumber:7}}));}
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=TTSSelfie;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 _reactNativePermissions=require("react-native-permissions");var _reactNativeCamera=require("react-native-camera");var _MText=require("../../components/MText");var _MButton=_interopRequireDefault(require("../../components/MButton"));var _CommonStyles=require("../CommonStyles");var _icons=require("../../assets/icons");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _api=require("../../services/api");var _navigation=require("../../navigation");var _reactNativeDeviceInfo=_interopRequireDefault(require("react-native-device-info"));var _AppStore=_interopRequireDefault(require("../../AppStore"));var _utils=require("../../utils");var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/screens/toan-trinh-so/TTSSelfie.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}function TTSSelfie(props){var _this=this;var isFocused=(0,_native.useIsFocused)();var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),shouldRenderCamera=_useState2[0],setShouldRenderCamera=_useState2[1];var navigation=(0,_native.useNavigation)();var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),taking=_useState4[0],setTaking=_useState4[1];var _useState5=(0,_react.useState)(false),_useState6=(0,_slicedToArray2.default)(_useState5,2),isLoading=_useState6[0],setIsLoading=_useState6[1];var _useState7=(0,_react.useState)(false),_useState8=(0,_slicedToArray2.default)(_useState7,2),passPermission=_useState8[0],setPassPermission=_useState8[1];var myCamera=(0,_react.useRef)(null);var requestPermissions=function requestPermissions(){(0,_reactNativePermissions.request)(_reactNative.Platform.OS==='ios'?_reactNativePermissions.PERMISSIONS.IOS.CAMERA:_reactNativePermissions.PERMISSIONS.ANDROID.CAMERA).then(function(result){switch(result){case _reactNativePermissions.RESULTS.UNAVAILABLE:console.log('This feature is not available (on this device / in this context)');_reactNative.Alert.alert('Thông báo','Máy ảnh trên thiết bị không tương thích.\nVui lòng kiểm tra lại thiết bị!',[{text:'Đồng ý'}]);break;case _reactNativePermissions.RESULTS.DENIED:console.log('The permission has not been requested / is denied but requestable');_reactNative.Alert.alert('Thông báo','Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',[{text:'Đồng ý',onPress:function onPress(){if(_reactNative.Platform.OS==='ios'){(0,_reactNativePermissions.openSettings)();}else{requestPermissions();}}}]);break;case _reactNativePermissions.RESULTS.LIMITED:console.log('The permission is limited: some actions are possible');_reactNative.Alert.alert('Thông báo','Quyền máy ảnh bị hạn chế. Vui lòng kiểm tra lại để tiếp tục!',[{text:'Đồng ý',onPress:function onPress(){if(_reactNative.Platform.OS==='ios'){(0,_reactNativePermissions.openSettings)();}else{requestPermissions();}}}]);break;case _reactNativePermissions.RESULTS.GRANTED:console.log('The permission is granted');setPassPermission(true);break;case _reactNativePermissions.RESULTS.BLOCKED:console.log('The permission is denied and not requestable anymore');_reactNative.Alert.alert('Thông báo','Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',[{text:'Đồng ý',onPress:function onPress(){if(_reactNative.Platform.OS==='ios'){(0,_reactNativePermissions.openSettings)();}else{(0,_reactNativePermissions.openSettings)();}}}]);break;}});};(0,_react.useEffect)(function _callee(){var _props$route,_props$route$params,_props$route$params$l,_props$route2,_props$route2$params,_props$route2$params$;return _regenerator.default.async(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:requestPermissions();_context.next=3;return _regenerator.default.awrap((0,_utils.logEvent)('cccd_completed',{event:'cccd_completed',createdAt:new Date(),deviceId:_AppStore.default.deviceId,loanId:String(props==null?void 0:(_props$route=props.route)==null?void 0:(_props$route$params=_props$route.params)==null?void 0:(_props$route$params$l=_props$route$params.loan)==null?void 0:_props$route$params$l.id),utmSource:props==null?void 0:(_props$route2=props.route)==null?void 0:(_props$route2$params=_props$route2.params)==null?void 0:(_props$route2$params$=_props$route2$params.loan)==null?void 0:_props$route2$params$.utmSource}));case 3:(0,_utils.logEventFb)('cccd_completed');case 4:case"end":return _context.stop();}},null,null,null,Promise);},[]);(0,_react.useEffect)(function(){var timeout;if(isFocused){timeout=setTimeout(function(){setShouldRenderCamera(true);},500);}else{setShouldRenderCamera(false);}return function(){return clearTimeout(timeout);};},[isFocused]);var takePhoto=function _callee2(){var options,data,_props$route3,_props$route3$params,_props$route3$params$,formData,response,_response$data,_props$route4,_props$route4$params,_response$data2,_response$data2$meta;return _regenerator.default.async(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:setTaking(true);options={width:720,pauseAfterCapture:true,fixOrientation:false,forceUpOrientation:false,orientation:_reactNativeCamera.RNCamera.Constants.Orientation.portrait};_context2.next=4;return _regenerator.default.awrap(myCamera.current.takePictureAsync(options));case 4:data=_context2.sent;setTaking(false);if(!data.uri){_context2.next=17;break;}setIsLoading(true);formData=new FormData();formData.append('LoanBriefId',props==null?void 0:(_props$route3=props.route)==null?void 0:(_props$route3$params=_props$route3.params)==null?void 0:(_props$route3$params$=_props$route3$params.loan)==null?void 0:_props$route3$params$.id);formData.append('TypeDocumentId',125);formData.append('image',{uri:data.uri,type:'image/jpg',name:'image.jpg'});_context2.next=14;return _regenerator.default.awrap(_api.Api.getInstance().uploadImageAutoDE(formData));case 14:response=_context2.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data=response.data)==null?void 0:_response$data.meta.errorCode)===200){navigation.push(_navigation.ScreenNames.ReviewInformation,{loan:props==null?void 0:(_props$route4=props.route)==null?void 0:(_props$route4$params=_props$route4.params)==null?void 0:_props$route4$params.loan});}else{_reactNative.Alert.alert('Thông báo',(_response$data2=response.data)==null?void 0:(_response$data2$meta=_response$data2.meta)==null?void 0:_response$data2$meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');}case 17:case"end":return _context2.stop();}},null,null,null,Promise);};return _react.default.createElement(_reactNative.View,{style:{flex:1,backgroundColor:'black'},pointerEvents:'box-none',__self:this,__source:{fileName:_jsxFileName,lineNumber:205,columnNumber:5}},passPermission&&shouldRenderCamera?_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.fill,{width:_reactNative.Dimensions.get('window').width,height:_reactNative.Dimensions.get('window').height}],__self:this,__source:{fileName:_jsxFileName,lineNumber:210,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{marginVertical:24,flexDirection:'row',alignItems:'center',justifyContent:'center',marginTop:_reactNativeDeviceInfo.default.hasNotch()?70:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:219,columnNumber:11}},_react.default.createElement(_MButton.default,{onPress:function onPress(){navigation.goBack();},style:{position:'absolute',left:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:228,columnNumber:13}},_react.default.createElement(_icons.IconBackWhite,{__self:this,__source:{fileName:_jsxFileName,lineNumber:237,columnNumber:15}})),_react.default.createElement(_MText.MText,{style:{color:'white',fontWeight:'bold',textAlgin:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:239,columnNumber:13}},"X\xE1c th\u1EF1c khu\xF4n m\u1EB7t")),_react.default.createElement(_reactNativeCamera.RNCamera,{ref:myCamera,defaultVideoQuality:_reactNativeCamera.RNCamera.Constants.VideoQuality['720p'],style:{width:_reactNative.Dimensions.get('window').width,height:_reactNative.Dimensions.get('window').width*4/3.1},type:_reactNativeCamera.RNCamera.Constants.Type.front,maxZoom:1,captureAudio:false,androidCameraPermissionOptions:{title:'Permission to use camera',message:'We need your permission to use your camera',buttonPositive:'Ok',buttonNegative:'Cancel'},__self:this,__source:{fileName:_jsxFileName,lineNumber:249,columnNumber:11}},function(_ref){var camera=_ref.camera,status=_ref.status,recordAudioPermissionStatus=_ref.recordAudioPermissionStatus;if(status!=='READY')return _react.default.createElement(_reactNative.ActivityIndicator,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:267,columnNumber:46}});}),_react.default.createElement(_reactNative.View,{style:{position:'absolute',bottom:20,left:0,right:0},__self:this,__source:{fileName:_jsxFileName,lineNumber:271,columnNumber:11}},!taking&&_react.default.createElement(_react.default.Fragment,null,_react.default.createElement(_MText.MText,{style:{color:'white',textAlign:'center',fontSize:14,paddingHorizontal:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:281,columnNumber:17}},"Xin vui l\xF2ng nh\xECn th\u1EB3ng, khu\xF4n m\u1EB7t \u1EDF trong khung h\xECnh, \xE1nh s\xE1ng \u0111\u1EE7 r\xF5 n\xE9t khu\xF4n m\u1EB7t"),_react.default.createElement(_reactNative.View,{style:{alignItems:'center',marginVertical:24},__self:this,__source:{fileName:_jsxFileName,lineNumber:292,columnNumber:17}},_react.default.createElement(_MButton.default,{onPress:function onPress(){takePhoto();},__self:this,__source:{fileName:_jsxFileName,lineNumber:298,columnNumber:19}},_react.default.createElement(_icons.TakePhotoSvg,{__self:this,__source:{fileName:_jsxFileName,lineNumber:303,columnNumber:21}})))))):null,_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:312,columnNumber:7}}));}
|
|
2
2
|
//# sourceMappingURL=TTSSelfie.js.map
|
|
@@ -172,23 +172,26 @@ export default function TTSSelfie(props: any) {
|
|
|
172
172
|
type: 'image/jpg',
|
|
173
173
|
name: 'image.jpg',
|
|
174
174
|
});
|
|
175
|
-
const response = await Api.getInstance().
|
|
175
|
+
const response = await Api.getInstance().uploadImageAutoDE(formData);
|
|
176
176
|
setIsLoading(false);
|
|
177
177
|
if (response.kind === 'ok') {
|
|
178
178
|
if (response.data?.meta.errorCode === 200) {
|
|
179
|
-
if (props?.route?.params?.loan?.typeLoan === 5) {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
} else {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}
|
|
179
|
+
// if (props?.route?.params?.loan?.typeLoan === 5) {
|
|
180
|
+
// navigation.push(ScreenNames.VehicleCamera, {
|
|
181
|
+
// front: true,
|
|
182
|
+
// loan: props?.route?.params?.loan,
|
|
183
|
+
// });
|
|
184
|
+
// } else {
|
|
185
|
+
// navigation.dispatch(
|
|
186
|
+
// CommonActions.reset({
|
|
187
|
+
// index: 1,
|
|
188
|
+
// routes: [{ name: ScreenNames.Main }],
|
|
189
|
+
// })
|
|
190
|
+
// );
|
|
191
|
+
// }
|
|
192
|
+
navigation.push(ScreenNames.ReviewInformation, {
|
|
193
|
+
loan: props?.route?.params?.loan,
|
|
194
|
+
});
|
|
192
195
|
} else {
|
|
193
196
|
Alert.alert('Thông báo', response.data?.meta?.errorMessage);
|
|
194
197
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_native","_reactNativePermissions","_reactNativeCamera","_MText","_MButton","_interopRequireDefault","_CommonStyles","_icons","_Loading","_api","_navigation","_reactNativeDeviceInfo","_AppStore","_utils","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","TTSSelfie","props","_this","isFocused","useIsFocused","_useState","useState","_useState2","_slicedToArray2","shouldRenderCamera","setShouldRenderCamera","navigation","useNavigation","_useState3","_useState4","taking","setTaking","_useState5","_useState6","isLoading","setIsLoading","_useState7","_useState8","passPermission","setPassPermission","myCamera","useRef","requestPermissions","request","Platform","OS","PERMISSIONS","IOS","CAMERA","ANDROID","then","result","RESULTS","UNAVAILABLE","console","log","Alert","alert","text","DENIED","onPress","openSettings","LIMITED","GRANTED","BLOCKED","useEffect","_callee","_props$route","_props$route$params","_props$route$params$l","_props$route2","_props$route2$params","_props$route2$params$","_regenerator","async","_callee$","_context","prev","next","awrap","logEvent","event","createdAt","Date","deviceId","appStore","loanId","String","route","params","loan","id","utmSource","logEventFb","stop","Promise","timeout","setTimeout","clearTimeout","takePhoto","_callee2","options","data","_props$route3","_props$route3$params","_props$route3$params$","formData","response","_response$data","_props$route4","_props$route4$params","_props$route4$params$","_props$route5","_props$route5$params","_response$data2","_response$data2$meta","_callee2$","_context2","width","pauseAfterCapture","fixOrientation","forceUpOrientation","orientation","RNCamera","Constants","Orientation","portrait","current","takePictureAsync","sent","uri","FormData","append","type","name","Api","getInstance","uploadImageOcr","kind","meta","errorCode","typeLoan","push","ScreenNames","VehicleCamera","front","dispatch","CommonActions","reset","index","routes","Main","errorMessage","createElement","View","style","flex","backgroundColor","pointerEvents","__self","__source","fileName","lineNumber","columnNumber","commonStyles","fill","Dimensions","height","marginVertical","flexDirection","alignItems","justifyContent","marginTop","DeviceInfo","hasNotch","goBack","position","left","IconBackWhite","MText","color","fontWeight","textAlgin","ref","defaultVideoQuality","VideoQuality","Type","maxZoom","captureAudio","androidCameraPermissionOptions","title","message","buttonPositive","buttonNegative","_ref","camera","status","recordAudioPermissionStatus","ActivityIndicator","bottom","right","Fragment","textAlign","fontSize","paddingHorizontal","TakePhotoSvg"],"sourceRoot":"../../../../src","sources":["screens/toan-trinh-so/TTSSelfie.tsx"],"mappings":"iVACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAOA,IAAAE,OAAA,CAAAF,OAAA,6BAKA,IAAAG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,CAAC,CAAC,CACb,CAAE,CAAA4D,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAAxK,YAAA,CAAAyK,UAAA,KAAAC,YAAA,MAEF5L,MAAA,CAAAyB,OAAA,CAAAyJ,aAAA,CAACvK,MAAA,CAAA2N,YAAY,EAAA9C,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAAxK,YAAA,CAAAyK,UAAA,KAAAC,YAAA,KAAE,CACR,CACL,CACN,CAEA,CACF,CAAC,CACL,IAAI,CAER5L,MAAA,CAAAyB,OAAA,CAAAyJ,aAAA,CAACtK,QAAA,CAAAa,OAAO,EAACkC,SAAS,CAAEA,SAAU,CAAA6H,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAAxK,YAAA,CAAAyK,UAAA,KAAAC,YAAA,IAAE,CAC5B,CAAC,CAEX"}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_native","_reactNativePermissions","_reactNativeCamera","_MText","_MButton","_interopRequireDefault","_CommonStyles","_icons","_Loading","_api","_navigation","_reactNativeDeviceInfo","_AppStore","_utils","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","TTSSelfie","props","_this","isFocused","useIsFocused","_useState","useState","_useState2","_slicedToArray2","shouldRenderCamera","setShouldRenderCamera","navigation","useNavigation","_useState3","_useState4","taking","setTaking","_useState5","_useState6","isLoading","setIsLoading","_useState7","_useState8","passPermission","setPassPermission","myCamera","useRef","requestPermissions","request","Platform","OS","PERMISSIONS","IOS","CAMERA","ANDROID","then","result","RESULTS","UNAVAILABLE","console","log","Alert","alert","text","DENIED","onPress","openSettings","LIMITED","GRANTED","BLOCKED","useEffect","_callee","_props$route","_props$route$params","_props$route$params$l","_props$route2","_props$route2$params","_props$route2$params$","_regenerator","async","_callee$","_context","prev","next","awrap","logEvent","event","createdAt","Date","deviceId","appStore","loanId","String","route","params","loan","id","utmSource","logEventFb","stop","Promise","timeout","setTimeout","clearTimeout","takePhoto","_callee2","options","data","_props$route3","_props$route3$params","_props$route3$params$","formData","response","_response$data","_props$route4","_props$route4$params","_response$data2","_response$data2$meta","_callee2$","_context2","width","pauseAfterCapture","fixOrientation","forceUpOrientation","orientation","RNCamera","Constants","Orientation","portrait","current","takePictureAsync","sent","uri","FormData","append","type","name","Api","getInstance","uploadImageAutoDE","kind","meta","errorCode","push","ScreenNames","ReviewInformation","errorMessage","createElement","View","style","flex","backgroundColor","pointerEvents","__self","__source","fileName","lineNumber","columnNumber","commonStyles","fill","Dimensions","height","marginVertical","flexDirection","alignItems","justifyContent","marginTop","DeviceInfo","hasNotch","goBack","position","left","IconBackWhite","MText","color","fontWeight","textAlgin","ref","defaultVideoQuality","VideoQuality","Type","front","maxZoom","captureAudio","androidCameraPermissionOptions","title","message","buttonPositive","buttonNegative","_ref","camera","status","recordAudioPermissionStatus","ActivityIndicator","bottom","right","Fragment","textAlign","fontSize","paddingHorizontal","TakePhotoSvg"],"sourceRoot":"../../../../src","sources":["screens/toan-trinh-so/TTSSelfie.tsx"],"mappings":"iVACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAOA,IAAAE,OAAA,CAAAF,OAAA,6BAKA,IAAAG,uBAAA,CAAAH,OAAA,6BAMA,IAAAI,kBAAA,CAAAJ,OAAA,wBACA,IAAAK,MAAA,CAAAL,OAAA,2BACA,IAAAM,QAAA,CAAAC,sBAAA,CAAAP,OAAA,8BACA,IAAAQ,aAAA,CAAAR,OAAA,oBACA,IAAAS,MAAA,CAAAT,OAAA,uBACA,IAAAU,QAAA,CAAAH,sBAAA,CAAAP,OAAA,8BACA,IAAAW,IAAA,CAAAX,OAAA,uBACA,IAAAY,WAAA,CAAAZ,OAAA,qBACA,IAAAa,sBAAA,CAAAN,sBAAA,CAAAP,OAAA,8BACA,IAAAc,SAAA,CAAAP,sBAAA,C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A8I,aAAA,CAACpK,YAAA,CAAAqK,IAAI,EACHC,KAAK,CAAE,CACLe,UAAU,CAAE,QAAQ,CACpBF,cAAc,CAAE,EAClB,CAAE,CAAAT,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA7J,YAAA,CAAA8J,UAAA,KAAAC,YAAA,MAEFjL,MAAA,CAAAyB,OAAA,CAAA8I,aAAA,CAAC/J,QAAA,CAAAiB,OAAO,EACN4D,OAAO,CAAE,SAAAA,QAAA,CAAM,CACbuC,SAAS,CAAC,CAAC,CACb,CAAE,CAAAiD,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA7J,YAAA,CAAA8J,UAAA,KAAAC,YAAA,MAEFjL,MAAA,CAAAyB,OAAA,CAAA8I,aAAA,CAAC5J,MAAA,CAAAiN,YAAY,EAAA/C,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA7J,YAAA,CAAA8J,UAAA,KAAAC,YAAA,KAAE,CACR,CACL,CACN,CAEA,CACF,CAAC,CACL,IAAI,CAERjL,MAAA,CAAAyB,OAAA,CAAA8I,aAAA,CAAC3J,QAAA,CAAAa,OAAO,EAACkC,SAAS,CAAEA,SAAU,CAAAkH,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA7J,YAAA,CAAA8J,UAAA,KAAAC,YAAA,IAAE,CAC5B,CAAC,CAEX"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=TTSSignLoan;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 _MText=require("../../components/MText");var _icons=require("../../assets/icons");var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _native=require("@react-navigation/native");var _navigation=require("../../navigation");var _reactNativePdf=_interopRequireDefault(require("react-native-pdf"));var _api=require("../../services/api");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _utils=require("../../utils");var _store=_interopRequireDefault(require("./store"));var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/screens/toan-trinh-so/TTSSignLoan.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}function TTSSignLoan(props){var _props$route,_props$route$params;var loan=props==null?void 0:(_props$route=props.route)==null?void 0:(_props$route$params=_props$route.params)==null?void 0:_props$route$params.loan;var _React$useState=_react.default.useState(false),_React$useState2=(0,_slicedToArray2.default)(_React$useState,2),isLoading=_React$useState2[0],setIsLoading=_React$useState2[1];var _React$useState3=_react.default.useState(null),_React$useState4=(0,_slicedToArray2.default)(_React$useState3,2),contract=_React$useState4[0],setContract=_React$useState4[1];var _React$useState5=_react.default.useState(1),_React$useState6=(0,_slicedToArray2.default)(_React$useState5,2),step=_React$useState6[0],setStep=_React$useState6[1];var _React$useState7=_react.default.useState(false),_React$useState8=(0,_slicedToArray2.default)(_React$useState7,2),isAgree=_React$useState8[0],setIsAgree=_React$useState8[1];var navigation=(0,_native.useNavigation)();var getContract=function _callee(){var response,_response$data,_response$data$meta,_response$data2,_response$data3,_response$data3$meta;return _regenerator.default.async(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.prev=0;setIsLoading(true);_context.next=4;return _regenerator.default.awrap(_api.Api.getInstance().previewContract(loan==null?void 0:loan.id));case 4:response=_context.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data=response.data)==null?void 0:(_response$data$meta=_response$data.meta)==null?void 0:_response$data$meta.errorCode)===200){setContract((_response$data2=response.data)==null?void 0:_response$data2.data);}else{_reactNative.Alert.alert('Thông báo',((_response$data3=response.data)==null?void 0:(_response$data3$meta=_response$data3.meta)==null?void 0:_response$data3$meta.errorMessage)||'Có lỗi xảy ra. Vui lòng thử lại sau.');}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau.');}_context.next=12;break;case 9:_context.prev=9;_context.t0=_context["catch"](0);setIsLoading(false);case 12:case"end":return _context.stop();}},null,null,[[0,9]],Promise);};(0,_react.useEffect)(function _callee2(){var _props$route2,_props$route2$params,_props$route2$params$,_props$route3,_props$route3$params,_props$route3$params$,_props$route4,_props$route4$params,_props$route4$params$,_props$route5,_props$route5$params,_props$route5$params$;return _regenerator.default.async(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:if(!loan){_context2.next=5;break;}getContract();_context2.next=4;return _regenerator.default.awrap((0,_utils.logEvent)('kyhopdong_started',{event:'kyhopdong_started',createdAt:new Date(),deviceId:appStore.deviceId,loanId:String(props==null?void 0:(_props$route2=props.route)==null?void 0:(_props$route2$params=_props$route2.params)==null?void 0:(_props$route2$params$=_props$route2$params.loan)==null?void 0:_props$route2$params$.id),utmSource:props==null?void 0:(_props$route3=props.route)==null?void 0:(_props$route3$params=_props$route3.params)==null?void 0:(_props$route3$params$=_props$route3$params.loan)==null?void 0:_props$route3$params$.utmSource}));case 4:(0,_utils.logEventFb)('kyhopdong_started',{event:'kyhopdong_started',createdAt:new Date(),deviceId:appStore.deviceId,loanId:props==null?void 0:(_props$route4=props.route)==null?void 0:(_props$route4$params=_props$route4.params)==null?void 0:(_props$route4$params$=_props$route4$params.loan)==null?void 0:_props$route4$params$.id,utmSource:props==null?void 0:(_props$route5=props.route)==null?void 0:(_props$route5$params=_props$route5.params)==null?void 0:(_props$route5$params$=_props$route5$params.loan)==null?void 0:_props$route5$params$.utmSource});case 5:case"end":return _context2.stop();}},null,null,null,Promise);},[]);var signLoan=function signLoan(){if(!isAgree){_reactNative.Alert.alert('Thông báo','Bạn cần đồng ý với tất cả những điều kiện trong hợp đồng trước khi ký.');return;}if(contract===null){_reactNative.Alert.alert('Thông báo','Không tạo được hợp đồng');return;}if(!(contract!=null&&contract.base64_hopdongdichvu)||(contract==null?void 0:contract.base64_hopdongdichvu)===null){_reactNative.Alert.alert('Thông báo','Hợp đồng dịch vụ chưa tồn tại. Không thể ký hợp đồng');return;}if(!(contract!=null&&contract.base64_giaoket_1)||(contract==null?void 0:contract.base64_giaoket_1)===null){_reactNative.Alert.alert('Thông báo','Giao kết cho vay chưa tồn tại. Không thể ký hợp đồng');return;}_store.default.signViettel(loan==null?void 0:loan.id,function _callee3(){return _regenerator.default.async(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:navigation.dispatch(_native.CommonActions.reset({index:1,routes:[{name:_navigation.ScreenNames.Main}]}));case 1:case"end":return _context3.stop();}},null,null,null,Promise);});};return _react.default.createElement(_reactNative.View,{style:{backgroundColor:'#ffffff',flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:116,columnNumber:5}},_react.default.createElement(_reactNative.SafeAreaView,{style:{backgroundColor:'#ffffff',flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:122,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{paddingVertical:16,borderBottomWidth:1,borderBottomColor:'#F2F2F2'},__self:this,__source:{fileName:_jsxFileName,lineNumber:128,columnNumber:9}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){if(step===1){navigation.dispatch(_native.CommonActions.reset({index:1,routes:[{name:_navigation.ScreenNames.Main}]}));}else{setStep(1);}},style:{position:'absolute',left:10,top:16,width:25,height:25,zIndex:1000,alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:135,columnNumber:11}},_react.default.createElement(_icons.IconBack,{__self:this,__source:{fileName:_jsxFileName,lineNumber:158,columnNumber:13}})),_react.default.createElement(_MText.MText,{style:{fontSize:16,color:'#333333',fontWeight:'bold',textAlign:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:160,columnNumber:11}},"\u0110\u1EC1 ngh\u1ECB giao k\u1EBFt tho\u1EA3 thu\u1EADn cho vay")),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:172,columnNumber:9}},step===1?_react.default.createElement(_reactNativePdf.default,{source:{uri:'data:application/pdf;base64,'+(contract==null?void 0:contract.base64_hopdongdichvu)},onLoadComplete:function onLoadComplete(numberOfPages,filePath){console.log("Number of pages: "+numberOfPages);},onPageChanged:function onPageChanged(page,numberOfPages){console.log("Current page: "+page);},onError:function onError(error){console.log(error);},onPressLink:function onPressLink(uri){console.log("Link pressed: "+uri);},style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:174,columnNumber:13}}):_react.default.createElement(_reactNativePdf.default,{source:{uri:'data:application/pdf;base64,'+(contract==null?void 0:contract.base64_giaoket_1)},onLoadComplete:function onLoadComplete(numberOfPages,filePath){console.log("Number of pages: "+numberOfPages);},onPageChanged:function onPageChanged(page,numberOfPages){console.log("Current page: "+page);},onError:function onError(error){console.log(error);},onPressLink:function onPressLink(uri){console.log("Link pressed: "+uri);},style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:197,columnNumber:13}})),_react.default.createElement(_reactNative.View,{style:{borderTopWidth:1,borderTopColor:'#F2F2F2',paddingVertical:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:221,columnNumber:9}},step===2&&_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',gap:10,paddingHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:229,columnNumber:13}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return setIsAgree(!isAgree);},__self:this,__source:{fileName:_jsxFileName,lineNumber:236,columnNumber:15}},isAgree?_react.default.createElement(_icons.CheckBoxActive,{__self:this,__source:{fileName:_jsxFileName,lineNumber:237,columnNumber:28}}):_react.default.createElement(_icons.CheckBox,{__self:this,__source:{fileName:_jsxFileName,lineNumber:237,columnNumber:49}})),_react.default.createElement(_MText.MText,{style:{color:'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:239,columnNumber:15}},"T\xF4i \u0111\u1ED3ng \xFD v\u1EDBi t\u1EA5t c\u1EA3 nh\u1EEFng \u0111i\u1EC1u ki\u1EC7n trong h\u1EE3p \u0111\u1ED3ng.")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',gap:6,marginTop:16,marginHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:248,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:{height:4,backgroundColor:step===1?'#FF7A00':'#FFEAD8',flex:1,borderRadius:6},__self:this,__source:{fileName:_jsxFileName,lineNumber:256,columnNumber:13}}),_react.default.createElement(_reactNative.View,{style:{height:4,backgroundColor:step===2?'#FF7A00':'#F2F2F2',flex:1,borderRadius:6},__self:this,__source:{fileName:_jsxFileName,lineNumber:264,columnNumber:13}})),step===1?_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return setStep(2);},style:{height:40,alignItems:'center',justifyContent:'center',borderWidth:1,borderColor:'#FF7A00',marginHorizontal:16,borderRadius:6,marginTop:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:274,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'#FF7A00',fontSize:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:287,columnNumber:15}},"Ti\u1EBFp t\u1EE5c")):_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){signLoan();},style:{marginTop:10,marginHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:297,columnNumber:13}},_react.default.createElement(_reactNativeLinearGradient.default,{start:{x:1,y:0},end:{x:0,y:1},style:{height:40,borderRadius:6,alignItems:'center',justifyContent:'center'},colors:['#FF7A00','#EF4123'],__self:this,__source:{fileName:_jsxFileName,lineNumber:306,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:317,columnNumber:17}},"X\xE1c nh\u1EADn k\xFD"))))),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:330,columnNumber:7}}));}
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=TTSSignLoan;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 _MText=require("../../components/MText");var _icons=require("../../assets/icons");var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _native=require("@react-navigation/native");var _navigation=require("../../navigation");var _reactNativePdf=_interopRequireDefault(require("react-native-pdf"));var _api=require("../../services/api");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _utils=require("../../utils");var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/screens/toan-trinh-so/TTSSignLoan.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}function TTSSignLoan(props){var _props$route,_props$route$params;var loan=props==null?void 0:(_props$route=props.route)==null?void 0:(_props$route$params=_props$route.params)==null?void 0:_props$route$params.loan;var _React$useState=_react.default.useState(false),_React$useState2=(0,_slicedToArray2.default)(_React$useState,2),isLoading=_React$useState2[0],setIsLoading=_React$useState2[1];var _React$useState3=_react.default.useState(null),_React$useState4=(0,_slicedToArray2.default)(_React$useState3,2),contract=_React$useState4[0],setContract=_React$useState4[1];var _React$useState5=_react.default.useState(1),_React$useState6=(0,_slicedToArray2.default)(_React$useState5,2),step=_React$useState6[0],setStep=_React$useState6[1];var _React$useState7=_react.default.useState(false),_React$useState8=(0,_slicedToArray2.default)(_React$useState7,2),isAgree=_React$useState8[0],setIsAgree=_React$useState8[1];var navigation=(0,_native.useNavigation)();var getContract=function _callee(){var response,_response$data,_response$data$meta,_response$data2,_response$data3,_response$data3$meta;return _regenerator.default.async(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.prev=0;setIsLoading(true);_context.next=4;return _regenerator.default.awrap(_api.Api.getInstance().previewContract(loan==null?void 0:loan.id));case 4:response=_context.sent;setIsLoading(false);if(response.kind==='ok'){if(((_response$data=response.data)==null?void 0:(_response$data$meta=_response$data.meta)==null?void 0:_response$data$meta.errorCode)===200){setContract((_response$data2=response.data)==null?void 0:_response$data2.data);}else{_reactNative.Alert.alert('Thông báo',((_response$data3=response.data)==null?void 0:(_response$data3$meta=_response$data3.meta)==null?void 0:_response$data3$meta.errorMessage)||'Có lỗi xảy ra. Vui lòng thử lại sau.',[{text:'Đồng ý',onPress:function onPress(){navigation.dispatch(_native.CommonActions.reset({index:1,routes:[{name:_navigation.ScreenNames.Main}]}));}}]);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau.');}_context.next=12;break;case 9:_context.prev=9;_context.t0=_context["catch"](0);setIsLoading(false);case 12:_context.prev=12;setIsLoading(false);return _context.finish(12);case 15:case"end":return _context.stop();}},null,null,[[0,9,12,15]],Promise);};(0,_react.useEffect)(function _callee2(){var _props$route2,_props$route2$params,_props$route2$params$,_props$route3,_props$route3$params,_props$route3$params$,_props$route4,_props$route4$params,_props$route4$params$,_props$route5,_props$route5$params,_props$route5$params$;return _regenerator.default.async(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:if(!loan){_context2.next=5;break;}getContract();_context2.next=4;return _regenerator.default.awrap((0,_utils.logEvent)('kyhopdong_started',{event:'kyhopdong_started',createdAt:new Date(),deviceId:appStore.deviceId,loanId:String(props==null?void 0:(_props$route2=props.route)==null?void 0:(_props$route2$params=_props$route2.params)==null?void 0:(_props$route2$params$=_props$route2$params.loan)==null?void 0:_props$route2$params$.id),utmSource:props==null?void 0:(_props$route3=props.route)==null?void 0:(_props$route3$params=_props$route3.params)==null?void 0:(_props$route3$params$=_props$route3$params.loan)==null?void 0:_props$route3$params$.utmSource}));case 4:(0,_utils.logEventFb)('kyhopdong_started',{event:'kyhopdong_started',createdAt:new Date(),deviceId:appStore.deviceId,loanId:props==null?void 0:(_props$route4=props.route)==null?void 0:(_props$route4$params=_props$route4.params)==null?void 0:(_props$route4$params$=_props$route4$params.loan)==null?void 0:_props$route4$params$.id,utmSource:props==null?void 0:(_props$route5=props.route)==null?void 0:(_props$route5$params=_props$route5.params)==null?void 0:(_props$route5$params$=_props$route5$params.loan)==null?void 0:_props$route5$params$.utmSource});case 5:case"end":return _context2.stop();}},null,null,null,Promise);},[]);var signLoan=function _callee3(){var response,_response$data4,_response$data5,_response$data6,_response$data6$meta;return _regenerator.default.async(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:if(isAgree){_context3.next=3;break;}_reactNative.Alert.alert('Thông báo','Bạn cần đồng ý với tất cả những điều kiện trong hợp đồng trước khi ký.');return _context3.abrupt("return");case 3:if(!(contract===null)){_context3.next=6;break;}_reactNative.Alert.alert('Thông báo','Không tạo được hợp đồng');return _context3.abrupt("return");case 6:if(!(!(contract!=null&&contract.base64_hopdongdichvu)||(contract==null?void 0:contract.base64_hopdongdichvu)===null)){_context3.next=9;break;}_reactNative.Alert.alert('Thông báo','Hợp đồng dịch vụ chưa tồn tại. Không thể ký hợp đồng');return _context3.abrupt("return");case 9:if(!(!(contract!=null&&contract.base64_giaoket_1)||(contract==null?void 0:contract.base64_giaoket_1)===null)){_context3.next=12;break;}_reactNative.Alert.alert('Thông báo','Giao kết cho vay chưa tồn tại. Không thể ký hợp đồng');return _context3.abrupt("return");case 12:_context3.prev=12;setIsLoading(true);_context3.next=16;return _regenerator.default.awrap(_api.Api.getInstance().sign_viettel_for_borrower({loanBriefId:loan==null?void 0:loan.id}));case 16:response=_context3.sent;if(response.kind==='ok'&&response.data.meta.errorCode===200){if((_response$data4=response.data)!=null&&_response$data4.data){navigation.push(_navigation.ScreenNames.MySignViettel,{url:response==null?void 0:(_response$data5=response.data)==null?void 0:_response$data5.data});}else{_reactNative.Alert.alert('Thông báo','Vui lòng kiểm tra tin nhắn để hoàn tất ký hợp đồng',[{text:'Xác nhận',onPress:function onPress(){navigation.dispatch(_native.CommonActions.reset({index:1,routes:[{name:_navigation.ScreenNames.Main}]}));}}]);}}else{_reactNative.Alert.alert('Thông báo',((_response$data6=response.data)==null?void 0:(_response$data6$meta=_response$data6.meta)==null?void 0:_response$data6$meta.errorMessage)||'Có lỗi xảy ra. Vui lòng thử lại sau.',[{text:'OK',onPress:function onPress(){navigation.dispatch(_native.CommonActions.reset({index:1,routes:[{name:_navigation.ScreenNames.Main}]}));}}]);}_context3.next=23;break;case 20:_context3.prev=20;_context3.t0=_context3["catch"](12);console.log(_context3.t0);case 23:_context3.prev=23;setIsLoading(false);return _context3.finish(23);case 26:case"end":return _context3.stop();}},null,null,[[12,20,23,26]],Promise);};return _react.default.createElement(_reactNative.View,{style:{backgroundColor:'#ffffff',flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:175,columnNumber:5}},_react.default.createElement(_reactNative.SafeAreaView,{style:{backgroundColor:'#ffffff',flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:181,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{paddingVertical:16,borderBottomWidth:1,borderBottomColor:'#F2F2F2'},__self:this,__source:{fileName:_jsxFileName,lineNumber:187,columnNumber:9}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){if(step===1){navigation.dispatch(_native.CommonActions.reset({index:1,routes:[{name:_navigation.ScreenNames.Main}]}));}else{setStep(1);}},style:{position:'absolute',left:10,top:16,width:25,height:25,zIndex:1000,alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:194,columnNumber:11}},_react.default.createElement(_icons.IconBack,{__self:this,__source:{fileName:_jsxFileName,lineNumber:217,columnNumber:13}})),_react.default.createElement(_MText.MText,{style:{fontSize:16,color:'#333333',fontWeight:'bold',textAlign:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:219,columnNumber:11}},"\u0110\u1EC1 ngh\u1ECB giao k\u1EBFt tho\u1EA3 thu\u1EADn cho vay")),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:231,columnNumber:9}},step===1?_react.default.createElement(_reactNativePdf.default,{source:{uri:'data:application/pdf;base64,'+(contract==null?void 0:contract.base64_hopdongdichvu)},onLoadComplete:function onLoadComplete(numberOfPages,filePath){console.log("Number of pages: "+numberOfPages);},onPageChanged:function onPageChanged(page,numberOfPages){console.log("Current page: "+page);},onError:function onError(error){console.log(error);},onPressLink:function onPressLink(uri){console.log("Link pressed: "+uri);},style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:233,columnNumber:13}}):_react.default.createElement(_reactNativePdf.default,{source:{uri:'data:application/pdf;base64,'+(contract==null?void 0:contract.base64_giaoket_1)},onLoadComplete:function onLoadComplete(numberOfPages,filePath){console.log("Number of pages: "+numberOfPages);},onPageChanged:function onPageChanged(page,numberOfPages){console.log("Current page: "+page);},onError:function onError(error){console.log(error);},onPressLink:function onPressLink(uri){console.log("Link pressed: "+uri);},style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:256,columnNumber:13}})),_react.default.createElement(_reactNative.View,{style:{borderTopWidth:1,borderTopColor:'#F2F2F2',paddingVertical:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:280,columnNumber:9}},step===2&&_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',gap:10,paddingHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:288,columnNumber:13}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return setIsAgree(!isAgree);},__self:this,__source:{fileName:_jsxFileName,lineNumber:295,columnNumber:15}},isAgree?_react.default.createElement(_icons.CheckBoxActive,{__self:this,__source:{fileName:_jsxFileName,lineNumber:296,columnNumber:28}}):_react.default.createElement(_icons.CheckBox,{__self:this,__source:{fileName:_jsxFileName,lineNumber:296,columnNumber:49}})),_react.default.createElement(_MText.MText,{style:{color:'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:298,columnNumber:15}},"T\xF4i \u0111\u1ED3ng \xFD v\u1EDBi t\u1EA5t c\u1EA3 nh\u1EEFng \u0111i\u1EC1u ki\u1EC7n trong h\u1EE3p \u0111\u1ED3ng.")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',gap:6,marginTop:16,marginHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:307,columnNumber:11}},_react.default.createElement(_reactNative.View,{style:{height:4,backgroundColor:step===1?'#FF7A00':'#FFEAD8',flex:1,borderRadius:6},__self:this,__source:{fileName:_jsxFileName,lineNumber:315,columnNumber:13}}),_react.default.createElement(_reactNative.View,{style:{height:4,backgroundColor:step===2?'#FF7A00':'#F2F2F2',flex:1,borderRadius:6},__self:this,__source:{fileName:_jsxFileName,lineNumber:323,columnNumber:13}})),step===1?_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return setStep(2);},style:{height:40,alignItems:'center',justifyContent:'center',borderWidth:1,borderColor:'#FF7A00',marginHorizontal:16,borderRadius:6,marginTop:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:333,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'#FF7A00',fontSize:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:346,columnNumber:15}},"Ti\u1EBFp t\u1EE5c")):_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){signLoan();},style:{marginTop:10,marginHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:356,columnNumber:13}},_react.default.createElement(_reactNativeLinearGradient.default,{start:{x:1,y:0},end:{x:0,y:1},style:{height:40,borderRadius:6,alignItems:'center',justifyContent:'center'},colors:['#FF7A00','#EF4123'],__self:this,__source:{fileName:_jsxFileName,lineNumber:365,columnNumber:15}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:376,columnNumber:17}},"X\xE1c nh\u1EADn k\xFD"))))),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:389,columnNumber:7}}));}
|
|
2
2
|
//# sourceMappingURL=TTSSignLoan.js.map
|
|
@@ -39,7 +39,20 @@ export default function TTSSignLoan(props) {
|
|
|
39
39
|
Alert.alert(
|
|
40
40
|
'Thông báo',
|
|
41
41
|
response.data?.meta?.errorMessage ||
|
|
42
|
-
'Có lỗi xảy ra. Vui lòng thử lại sau.'
|
|
42
|
+
'Có lỗi xảy ra. Vui lòng thử lại sau.',
|
|
43
|
+
[
|
|
44
|
+
{
|
|
45
|
+
text: 'Đồng ý',
|
|
46
|
+
onPress: () => {
|
|
47
|
+
navigation.dispatch(
|
|
48
|
+
CommonActions.reset({
|
|
49
|
+
index: 1,
|
|
50
|
+
routes: [{ name: ScreenNames.Main }],
|
|
51
|
+
})
|
|
52
|
+
);
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
]
|
|
43
56
|
);
|
|
44
57
|
}
|
|
45
58
|
} else {
|
|
@@ -47,6 +60,8 @@ export default function TTSSignLoan(props) {
|
|
|
47
60
|
}
|
|
48
61
|
} catch (error) {
|
|
49
62
|
setIsLoading(false);
|
|
63
|
+
} finally {
|
|
64
|
+
setIsLoading(false);
|
|
50
65
|
}
|
|
51
66
|
};
|
|
52
67
|
|
|
@@ -70,7 +85,7 @@ export default function TTSSignLoan(props) {
|
|
|
70
85
|
}
|
|
71
86
|
}, []);
|
|
72
87
|
|
|
73
|
-
const signLoan = () => {
|
|
88
|
+
const signLoan = async () => {
|
|
74
89
|
if (!isAgree) {
|
|
75
90
|
Alert.alert(
|
|
76
91
|
'Thông báo',
|
|
@@ -78,7 +93,6 @@ export default function TTSSignLoan(props) {
|
|
|
78
93
|
);
|
|
79
94
|
return;
|
|
80
95
|
}
|
|
81
|
-
|
|
82
96
|
if (contract === null) {
|
|
83
97
|
Alert.alert('Thông báo', 'Không tạo được hợp đồng');
|
|
84
98
|
return;
|
|
@@ -101,15 +115,60 @@ export default function TTSSignLoan(props) {
|
|
|
101
115
|
);
|
|
102
116
|
return;
|
|
103
117
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
118
|
+
try {
|
|
119
|
+
setIsLoading(true);
|
|
120
|
+
const response = await Api.getInstance().sign_viettel_for_borrower({
|
|
121
|
+
loanBriefId: loan?.id,
|
|
122
|
+
});
|
|
123
|
+
if (response.kind === 'ok' && response.data.meta.errorCode === 200) {
|
|
124
|
+
if (response.data?.data) {
|
|
125
|
+
navigation.push(ScreenNames.MySignViettel, {
|
|
126
|
+
url: response?.data?.data,
|
|
127
|
+
});
|
|
128
|
+
} else {
|
|
129
|
+
Alert.alert(
|
|
130
|
+
'Thông báo',
|
|
131
|
+
'Vui lòng kiểm tra tin nhắn để hoàn tất ký hợp đồng',
|
|
132
|
+
[
|
|
133
|
+
{
|
|
134
|
+
text: 'Xác nhận',
|
|
135
|
+
onPress: () => {
|
|
136
|
+
navigation.dispatch(
|
|
137
|
+
CommonActions.reset({
|
|
138
|
+
index: 1,
|
|
139
|
+
routes: [{ name: ScreenNames.Main }],
|
|
140
|
+
})
|
|
141
|
+
);
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
]
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
} else {
|
|
148
|
+
Alert.alert(
|
|
149
|
+
'Thông báo',
|
|
150
|
+
response.data?.meta?.errorMessage ||
|
|
151
|
+
'Có lỗi xảy ra. Vui lòng thử lại sau.',
|
|
152
|
+
[
|
|
153
|
+
{
|
|
154
|
+
text: 'OK',
|
|
155
|
+
onPress: () => {
|
|
156
|
+
navigation.dispatch(
|
|
157
|
+
CommonActions.reset({
|
|
158
|
+
index: 1,
|
|
159
|
+
routes: [{ name: ScreenNames.Main }],
|
|
160
|
+
})
|
|
161
|
+
);
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
]
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
} catch (error) {
|
|
168
|
+
console.log(error);
|
|
169
|
+
} finally {
|
|
170
|
+
setIsLoading(false);
|
|
171
|
+
}
|
|
113
172
|
};
|
|
114
173
|
|
|
115
174
|
return (
|