react-native-timacare 2.0.10 → 2.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/lib/commonjs/index.js +1 -1
  2. package/lib/commonjs/index.js.flow +2 -0
  3. package/lib/commonjs/index.js.map +1 -1
  4. package/lib/commonjs/navigation/primary-navigator.js +1 -1
  5. package/lib/commonjs/navigation/primary-navigator.js.flow +6 -0
  6. package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
  7. package/lib/commonjs/screens/camera/index.js +1 -1
  8. package/lib/commonjs/screens/camera/index.js.flow +1 -1
  9. package/lib/commonjs/screens/camera/index.js.map +1 -1
  10. package/lib/commonjs/screens/eSign/PreviewContract.js +2 -0
  11. package/lib/commonjs/screens/eSign/PreviewContract.js.flow +76 -0
  12. package/lib/commonjs/screens/eSign/PreviewContract.js.map +1 -0
  13. package/lib/commonjs/screens/eSign/Store.js +1 -1
  14. package/lib/commonjs/screens/eSign/Store.js.flow +22 -1
  15. package/lib/commonjs/screens/eSign/Store.js.map +1 -1
  16. package/lib/commonjs/screens/eSign/index.js +1 -1
  17. package/lib/commonjs/screens/eSign/index.js.flow +281 -181
  18. package/lib/commonjs/screens/eSign/index.js.map +1 -1
  19. package/lib/commonjs/screens/home/index.js +1 -1
  20. package/lib/commonjs/screens/home/index.js.flow +1 -9
  21. package/lib/commonjs/screens/home/index.js.map +1 -1
  22. package/lib/commonjs/screens/liveness/LivenessStore.js +1 -1
  23. package/lib/commonjs/screens/liveness/LivenessStore.js.flow +2 -1
  24. package/lib/commonjs/screens/liveness/LivenessStore.js.map +1 -1
  25. package/lib/commonjs/screens/liveness-v2/index.js +1 -1
  26. package/lib/commonjs/screens/liveness-v2/index.js.flow +13 -0
  27. package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
  28. package/lib/commonjs/screens/selfie/SelfieStore.js +1 -1
  29. package/lib/commonjs/screens/selfie/SelfieStore.js.flow +2 -0
  30. package/lib/commonjs/screens/selfie/SelfieStore.js.map +1 -1
  31. package/lib/commonjs/screens/selfie/index.js +1 -1
  32. package/lib/commonjs/screens/selfie/index.js.flow +1 -0
  33. package/lib/commonjs/screens/selfie/index.js.map +1 -1
  34. package/lib/commonjs/services/api/api-config.js +1 -1
  35. package/lib/commonjs/services/api/api-config.js.flow +2 -2
  36. package/lib/commonjs/services/api/api-config.js.map +1 -1
  37. package/lib/commonjs/services/api/api.js +1 -1
  38. package/lib/commonjs/services/api/api.js.flow +17 -0
  39. package/lib/commonjs/services/api/api.js.map +1 -1
  40. package/lib/module/index.js +1 -1
  41. package/lib/module/index.js.map +1 -1
  42. package/lib/module/navigation/primary-navigator.js +1 -1
  43. package/lib/module/navigation/primary-navigator.js.map +1 -1
  44. package/lib/module/screens/camera/index.js +1 -1
  45. package/lib/module/screens/camera/index.js.map +1 -1
  46. package/lib/module/screens/eSign/PreviewContract.js +2 -0
  47. package/lib/module/screens/eSign/PreviewContract.js.map +1 -0
  48. package/lib/module/screens/eSign/Store.js +1 -1
  49. package/lib/module/screens/eSign/Store.js.map +1 -1
  50. package/lib/module/screens/eSign/index.js +1 -1
  51. package/lib/module/screens/eSign/index.js.map +1 -1
  52. package/lib/module/screens/home/index.js +1 -1
  53. package/lib/module/screens/home/index.js.map +1 -1
  54. package/lib/module/screens/liveness/LivenessStore.js +1 -1
  55. package/lib/module/screens/liveness/LivenessStore.js.map +1 -1
  56. package/lib/module/screens/liveness-v2/index.js +1 -1
  57. package/lib/module/screens/liveness-v2/index.js.map +1 -1
  58. package/lib/module/screens/selfie/SelfieStore.js +1 -1
  59. package/lib/module/screens/selfie/SelfieStore.js.map +1 -1
  60. package/lib/module/screens/selfie/index.js +1 -1
  61. package/lib/module/screens/selfie/index.js.map +1 -1
  62. package/lib/module/services/api/api-config.js +1 -1
  63. package/lib/module/services/api/api-config.js.map +1 -1
  64. package/lib/module/services/api/api.js +1 -1
  65. package/lib/module/services/api/api.js.map +1 -1
  66. package/lib/typescript/index.d.ts.map +1 -1
  67. package/lib/typescript/navigation/primary-navigator.d.ts +1 -0
  68. package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
  69. package/lib/typescript/screens/eSign/PreviewContract.d.ts +2 -0
  70. package/lib/typescript/screens/eSign/PreviewContract.d.ts.map +1 -0
  71. package/lib/typescript/screens/eSign/Store.d.ts +1 -0
  72. package/lib/typescript/screens/eSign/Store.d.ts.map +1 -1
  73. package/lib/typescript/screens/eSign/index.d.ts.map +1 -1
  74. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  75. package/lib/typescript/screens/liveness/LivenessStore.d.ts.map +1 -1
  76. package/lib/typescript/screens/liveness-v2/index.d.ts.map +1 -1
  77. package/lib/typescript/screens/selfie/SelfieStore.d.ts +1 -0
  78. package/lib/typescript/screens/selfie/SelfieStore.d.ts.map +1 -1
  79. package/lib/typescript/screens/selfie/index.d.ts.map +1 -1
  80. package/lib/typescript/services/api/api.d.ts +16 -0
  81. package/lib/typescript/services/api/api.d.ts.map +1 -1
  82. package/package.json +1 -1
  83. package/src/index.tsx +2 -0
  84. package/src/navigation/primary-navigator.tsx +6 -0
  85. package/src/screens/camera/index.tsx +1 -1
  86. package/src/screens/eSign/PreviewContract.tsx +76 -0
  87. package/src/screens/eSign/Store.tsx +22 -1
  88. package/src/screens/eSign/index.tsx +281 -181
  89. package/src/screens/home/index.tsx +1 -9
  90. package/src/screens/liveness/LivenessStore.tsx +2 -1
  91. package/src/screens/liveness-v2/index.tsx +13 -0
  92. package/src/screens/selfie/SelfieStore.tsx +2 -0
  93. package/src/screens/selfie/index.tsx +1 -0
  94. package/src/services/api/api-config.ts +2 -2
  95. package/src/services/api/api.ts +17 -0
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.TimaCareNavigation=void 0;var _react=_interopRequireWildcard(require("react"));var _reactNativeSafeAreaContext=require("react-native-safe-area-context");var _reactNativeScreens=require("react-native-screens");var _AppStore=_interopRequireDefault(require("./AppStore"));var _navigation=require("./navigation");var _jsxFileName="/Users/tima/Desktop/tima-care-v2/src/index.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;}(0,_reactNativeScreens.enableScreens)();function TimaCareNavigator(){(0,_react.useEffect)(function(){_AppStore.default.getDeviceId();_AppStore.default.getPublicIp();_AppStore.default.getAppId();_AppStore.default.getDevicePayload();},[]);return _react.default.createElement(_react.StrictMode,{__self:this,__source:{fileName:_jsxFileName,lineNumber:21,columnNumber:5}},_react.default.createElement(_reactNativeSafeAreaContext.SafeAreaProvider,{initialSafeAreaInsets:_reactNativeSafeAreaContext.initialWindowSafeAreaInsets,__self:this,__source:{fileName:_jsxFileName,lineNumber:22,columnNumber:7}},_react.default.createElement(_navigation.PrimaryNavigator,{__self:this,__source:{fileName:_jsxFileName,lineNumber:23,columnNumber:9}})));}var TimaCareNavigation=exports.TimaCareNavigation=TimaCareNavigator;
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.TimaCareNavigation=void 0;var _react=_interopRequireWildcard(require("react"));var _reactNativeSafeAreaContext=require("react-native-safe-area-context");var _reactNativeScreens=require("react-native-screens");var _AppStore=_interopRequireDefault(require("./AppStore"));var _navigation=require("./navigation");var _reactNative=require("react-native");var _jsxFileName="/Users/tima/Desktop/tima-care-v2/src/index.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;}(0,_reactNativeScreens.enableScreens)();_reactNative.LogBox.ignoreAllLogs();function TimaCareNavigator(){(0,_react.useEffect)(function(){_AppStore.default.getDeviceId();_AppStore.default.getPublicIp();_AppStore.default.getAppId();_AppStore.default.getDevicePayload();},[]);return _react.default.createElement(_react.StrictMode,{__self:this,__source:{fileName:_jsxFileName,lineNumber:23,columnNumber:5}},_react.default.createElement(_reactNativeSafeAreaContext.SafeAreaProvider,{initialSafeAreaInsets:_reactNativeSafeAreaContext.initialWindowSafeAreaInsets,__self:this,__source:{fileName:_jsxFileName,lineNumber:24,columnNumber:7}},_react.default.createElement(_navigation.PrimaryNavigator,{__self:this,__source:{fileName:_jsxFileName,lineNumber:25,columnNumber:9}})));}var TimaCareNavigation=exports.TimaCareNavigation=TimaCareNavigator;
2
2
  //# sourceMappingURL=index.js.map
@@ -7,7 +7,9 @@ import {
7
7
  import { enableScreens } from 'react-native-screens';
8
8
  import appStore from './AppStore';
9
9
  import { PrimaryNavigator } from './navigation';
10
+ import { LogBox } from 'react-native';
10
11
  enableScreens();
12
+ LogBox.ignoreAllLogs();
11
13
 
12
14
  function TimaCareNavigator() {
13
15
  useEffect(() => {
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNativeSafeAreaContext","_reactNativeScreens","_AppStore","_interopRequireDefault","_navigation","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","enableScreens","TimaCareNavigator","useEffect","appStore","getDeviceId","getPublicIp","getAppId","getDevicePayload","createElement","StrictMode","__self","__source","fileName","lineNumber","columnNumber","SafeAreaProvider","initialSafeAreaInsets","initialWindowSafeAreaInsets","PrimaryNavigator","TimaCareNavigation","exports"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"8KACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,2BAAA,CAAAD,OAAA,mCAIA,IAAAE,mBAAA,CAAAF,OAAA,yBACA,IAAAG,SAAA,CAAAC,sBAAA,CAAAJ,OAAA,gBACA,IAAAK,WAAA,CAAAL,OAAA,iBAAgD,IAAAM,YAAA,2DAAAC,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,YAAAT,wBAAAS,CAAA,CAAAE,CAAA,MAAAA,CAAA,EAAAF,CAAA,EAAAA,CAAA,CAAAI,UAAA,QAAAJ,CAAA,WAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAK,OAAA,CAAAL,CAAA,MAAAG,CAAA,CAAAJ,wBAAA,CAAAG,CAAA,KAAAC,CAAA,EAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,SAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,MAAAQ,CAAA,EAAAC,SAAA,OAAAC,CAAA,CAAAC,MAAA,CAAAC,cAAA,EAAAD,MAAA,CAAAE,wBAAA,SAAAC,CAAA,IAAAd,CAAA,gBAAA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AAA,CAAAlC,YAAA,CAAAmC,UAAA,IAAAC,YAAA,IAAE,CACH,CACR,CAAC,CAEjB,CAEO,GAAM,CAAAK,kBAAkB,CAAAC,OAAA,CAAAD,kBAAA,CAAGlB,iBAAiB"}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNativeSafeAreaContext","_reactNativeScreens","_AppStore","_interopRequireDefault","_navigation","_reactNative","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","enableScreens","LogBox","ignoreAllLogs","TimaCareNavigator","useEffect","appStore","getDeviceId","getPublicIp","getAppId","getDevicePayload","createElement","StrictMode","__self","__source","fileName","lineNumber","columnNumber","SafeAreaProvider","initialSafeAreaInsets","initialWindowSafeAreaInsets","PrimaryNavigator","TimaCareNavigation","exports"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"8KACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,2BAAA,CAAAD,OAAA,mCAIA,IAAAE,mBAAA,CAAAF,OAAA,yBACA,IAAAG,SAAA,CAAAC,sBAAA,CAAAJ,OAAA,gBACA,IAAAK,WAAA,CAAAL,OAAA,iBACA,IAAAM,YAAA,CAAAN,OAAA,iBAAsC,IAAAO,YAAA,2DAAAC,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,YAAAV,wBAAAU,CAAA,CAAAE,CAAA,MAAAA,CAAA,EAAAF,CAAA,EAAAA,CAAA,CAAAI,UAAA,QAAAJ,CAAA,WAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAK,OAAA,CAAAL,CAAA,MAAAG,CAAA,CAAAJ,wBAAA,CAAAG,CA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AAAyB,aAAA,CAACtC,2BAAA,CAAA6C,gBAAgB,EAACC,qBAAqB,CAAEC,uDAA4B,CAAAP,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAApC,YAAA,CAAAqC,UAAA,IAAAC,YAAA,KACnE/C,MAAA,CAAAgB,OAAA,CAAAyB,aAAA,CAAClC,WAAA,CAAA4C,gBAAgB,EAAAR,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAApC,YAAA,CAAAqC,UAAA,IAAAC,YAAA,IAAE,CACH,CACR,CAAC,CAEjB,CAEO,GAAM,CAAAK,kBAAkB,CAAAC,OAAA,CAAAD,kBAAA,CAAGlB,iBAAiB"}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.PrimaryNavigator=PrimaryNavigator;exports.canExit=exports.ScreenNames=void 0;var _react=_interopRequireDefault(require("react"));var _nativeStack=require("react-native-screens/native-stack");var _screens=require("../screens");var _otp=require("../screens/otp");var _nationalID=require("../screens/nationalID");var _selfie=require("../screens/selfie");var _register=require("../screens/register");var _camera=require("../screens/camera");var _TermScreen=require("../screens/terms/TermScreen");var _liveness=require("../screens/liveness");var _eSign=require("../screens/eSign");var _nationalIDBack=require("../screens/nationalIDBack");var _contract=require("../screens/contract");var _uploadVideo=require("../screens/uploadVideo");var _qualify=require("../screens/qualify");var _loginWithPassword=require("../screens/loginWithPassword");var _forgotPassword=require("../screens/forgotPassword");var _setPassword=require("../screens/setPassword");var _confirmPassword=require("../screens/setPassword/confirmPassword");var _quickSubmit=require("../screens/quick-submit");var _select=require("../components/select");var _fullSubmit=require("../screens/full-submit");var _introduction=require("../screens/introduction");var _cimbSign=require("../screens/cimb-sign");var _schedulePayment=require("../screens/schedule-payment");var _notification=require("../screens/notification");var _paymentList=require("../screens/schedule-payment/payment-list");var _CIMBxTima=require("../screens/home/CIMBxTima");var _QuickTerm=require("../screens/terms/QuickTerm");var _PaymentInfo=require("../screens/detail-loan/PaymentInfo");var _selfie2=require("../screens/full-submit/selfie");var _paymentEvidence=require("../screens/payment-evidence");var _guideTransferBank=require("../screens/guide-transfer-bank");var _TransferDetail=_interopRequireDefault(require("../screens/guide-transfer-bank/TransferDetail"));var _ViewContract=require("../screens/sign-tima/ViewContract");var _ConfirmContract=require("../screens/sign-tima/ConfirmContract");var _PaymentAll=require("../screens/detail-loan/PaymentAll");var _detailLoan=require("../screens/detail-loan");var _Guideline=_interopRequireDefault(require("../screens/payment-evidence/Guideline"));var _accept_policy=require("../screens/full-submit/accept_policy");var _digitalLending=require("../screens/digital-lending");var _DetailLoanTima=require("../screens/detail-loan/DetailLoanTima");var _mrzScanner=_interopRequireDefault(require("../screens/mrz-scanner"));var _livenessV=require("../screens/liveness-v2");var _jsxFileName="/Users/tima/Desktop/tima-care-v2/src/navigation/primary-navigator.tsx";var ScreenNames=exports.ScreenNames={Splash:'Splash',Main:'Main',Support:'Support',Compare:'Compare',OTP:'OTP',NationalID:'NationalID',Selfie:'Selfie',RegisterMotor:'RegisterMotor',Register:'Register',Camera:'Camera',Terms:'Terms',LiveNess:'LiveNess',ESign:'ESign',NationalIDBack:'NationalIDBack',Contract:'Contract',Video:'Video',Qualify:'Qualify',LoginWithPassword:'LoginWithPassword',ForgotPassword:'ForgotPassword',SetPassword:'SetPassword',ConfirmPassword:'ConfirmPassword',TopUp:'TopUp',QuickSubmit:'QuickSubmit',Introduction:'Introduction',FullSubmit:'FullSubmit',CommonSelect:'CommonSelect',UpdateLoan:'UpdateLoan',CIMBSign:'CIMBSign',SchedulePayment:'SchedulePayment',Notification:'Notification',PaymentList:'PaymentList',CIMBxTima:'CIMBxTima',QuickTerm:'QuickTerm',DetailLoan:'DetailLoan',PaymentInfo:'PaymentInfo',CimbSelfie:'CimbSelfie',PaymentEvidence:'PaymentEvidence',GuideTransferBank:'GuideTransferBank',TransferDetail:'TransferDetail',PaymentAll:'PaymentAll',ViewContract:'ViewContract',ConfirmContract:'ConfirmContract',Guideline:'Guideline',AcceptPolicy:'AcceptPolicy',DigitalLending:'DigitalLending',DetailLoanTima:'DetailLoanTima',MRZScanner:'MRZScanner',LivenessV2:'LivenessV2'};var Stack=(0,_nativeStack.createNativeStackNavigator)();function PrimaryNavigator(){return _react.default.createElement(Stack.Navigator,{initialRouteName:ScreenNames.Main,screenOptions:{headerShown:false,gestureEnabled:true},__self:this,__source:{fileName:_jsxFileName,lineNumber:109,columnNumber:5}},_react.default.createElement(Stack.Screen,{name:ScreenNames.Splash,component:_screens.Splash,__self:this,__source:{fileName:_jsxFileName,lineNumber:116,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.Register,component:_register.Register,__self:this,__source:{fileName:_jsxFileName,lineNumber:117,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.Main,component:_screens.Main,__self:this,__source:{fileName:_jsxFileName,lineNumber:118,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.OTP,component:_otp.OTP,__self:this,__source:{fileName:_jsxFileName,lineNumber:119,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.NationalID,component:_nationalID.NationalID,__self:this,__source:{fileName:_jsxFileName,lineNumber:120,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.Selfie,component:_selfie.Selfie,__self:this,__source:{fileName:_jsxFileName,lineNumber:121,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.Camera,component:_camera.Camera,__self:this,__source:{fileName:_jsxFileName,lineNumber:122,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.Terms,component:_TermScreen.TermScreen,__self:this,__source:{fileName:_jsxFileName,lineNumber:123,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.LiveNess,component:_liveness.LiveNess,__self:this,__source:{fileName:_jsxFileName,lineNumber:124,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.ESign,component:_eSign.ESign,__self:this,__source:{fileName:_jsxFileName,lineNumber:125,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.NationalIDBack,component:_nationalIDBack.NationalIDBack,__self:this,__source:{fileName:_jsxFileName,lineNumber:126,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.DetailLoan,component:_detailLoan.DetailLoan,__self:this,__source:{fileName:_jsxFileName,lineNumber:130,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.Contract,component:_contract.Contract,__self:this,__source:{fileName:_jsxFileName,lineNumber:131,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.Video,component:_uploadVideo.Video,__self:this,__source:{fileName:_jsxFileName,lineNumber:132,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.Qualify,component:_qualify.Qualify,__self:this,__source:{fileName:_jsxFileName,lineNumber:133,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.LoginWithPassword,component:_loginWithPassword.LoginWithPassword,__self:this,__source:{fileName:_jsxFileName,lineNumber:134,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.ForgotPassword,component:_forgotPassword.ForgotPassword,__self:this,__source:{fileName:_jsxFileName,lineNumber:138,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.SetPassword,component:_setPassword.SetPassword,__self:this,__source:{fileName:_jsxFileName,lineNumber:142,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.ConfirmPassword,component:_confirmPassword.ConfirmPassword,__self:this,__source:{fileName:_jsxFileName,lineNumber:143,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.QuickSubmit,component:_quickSubmit.QuickSubmit,__self:this,__source:{fileName:_jsxFileName,lineNumber:147,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.Introduction,component:_introduction.Introduction,__self:this,__source:{fileName:_jsxFileName,lineNumber:148,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.FullSubmit,component:_fullSubmit.FullSubmit,__self:this,__source:{fileName:_jsxFileName,lineNumber:149,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.CommonSelect,component:_select.CommonSelect,__self:this,__source:{fileName:_jsxFileName,lineNumber:150,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.CIMBSign,component:_cimbSign.CIMBSign,__self:this,__source:{fileName:_jsxFileName,lineNumber:151,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.SchedulePayment,component:_schedulePayment.SchedulePayment,__self:this,__source:{fileName:_jsxFileName,lineNumber:152,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.Notification,component:_notification.Notification,__self:this,__source:{fileName:_jsxFileName,lineNumber:156,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.PaymentList,component:_paymentList.PaymentList,__self:this,__source:{fileName:_jsxFileName,lineNumber:157,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.CIMBxTima,component:_CIMBxTima.CIMBxTima,__self:this,__source:{fileName:_jsxFileName,lineNumber:158,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.QuickTerm,component:_QuickTerm.QuickTerm,__self:this,__source:{fileName:_jsxFileName,lineNumber:159,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.PaymentInfo,component:_PaymentInfo.PaymentInfo,__self:this,__source:{fileName:_jsxFileName,lineNumber:160,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.CimbSelfie,component:_selfie2.CimbSelfie,__self:this,__source:{fileName:_jsxFileName,lineNumber:161,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.PaymentEvidence,component:_paymentEvidence.PaymentEvidence,__self:this,__source:{fileName:_jsxFileName,lineNumber:162,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.GuideTransferBank,component:_guideTransferBank.GuideTransferBank,__self:this,__source:{fileName:_jsxFileName,lineNumber:166,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.TransferDetail,component:_TransferDetail.default,__self:this,__source:{fileName:_jsxFileName,lineNumber:170,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.PaymentAll,component:_PaymentAll.PaymentAll,__self:this,__source:{fileName:_jsxFileName,lineNumber:174,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.ViewContract,component:_ViewContract.ViewContract,__self:this,__source:{fileName:_jsxFileName,lineNumber:175,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.ConfirmContract,component:_ConfirmContract.ConfirmContract,__self:this,__source:{fileName:_jsxFileName,lineNumber:176,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.Guideline,component:_Guideline.default,__self:this,__source:{fileName:_jsxFileName,lineNumber:180,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.AcceptPolicy,component:_accept_policy.AcceptPolicy,__self:this,__source:{fileName:_jsxFileName,lineNumber:181,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.DigitalLending,component:_digitalLending.DigitalLending,__self:this,__source:{fileName:_jsxFileName,lineNumber:182,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.DetailLoanTima,component:_DetailLoanTima.DetailLoanTima,__self:this,__source:{fileName:_jsxFileName,lineNumber:186,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.MRZScanner,component:_mrzScanner.default,__self:this,__source:{fileName:_jsxFileName,lineNumber:190,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.LivenessV2,component:_livenessV.LivenessV2,__self:this,__source:{fileName:_jsxFileName,lineNumber:191,columnNumber:7}}));}var exitRoutes=['welcome'];var canExit=exports.canExit=function canExit(routeName){return exitRoutes.includes(routeName);};
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.PrimaryNavigator=PrimaryNavigator;exports.canExit=exports.ScreenNames=void 0;var _react=_interopRequireDefault(require("react"));var _nativeStack=require("react-native-screens/native-stack");var _screens=require("../screens");var _otp=require("../screens/otp");var _nationalID=require("../screens/nationalID");var _selfie=require("../screens/selfie");var _register=require("../screens/register");var _camera=require("../screens/camera");var _TermScreen=require("../screens/terms/TermScreen");var _liveness=require("../screens/liveness");var _eSign=require("../screens/eSign");var _nationalIDBack=require("../screens/nationalIDBack");var _contract=require("../screens/contract");var _uploadVideo=require("../screens/uploadVideo");var _qualify=require("../screens/qualify");var _loginWithPassword=require("../screens/loginWithPassword");var _forgotPassword=require("../screens/forgotPassword");var _setPassword=require("../screens/setPassword");var _confirmPassword=require("../screens/setPassword/confirmPassword");var _quickSubmit=require("../screens/quick-submit");var _select=require("../components/select");var _fullSubmit=require("../screens/full-submit");var _introduction=require("../screens/introduction");var _cimbSign=require("../screens/cimb-sign");var _schedulePayment=require("../screens/schedule-payment");var _notification=require("../screens/notification");var _paymentList=require("../screens/schedule-payment/payment-list");var _CIMBxTima=require("../screens/home/CIMBxTima");var _QuickTerm=require("../screens/terms/QuickTerm");var _PaymentInfo=require("../screens/detail-loan/PaymentInfo");var _selfie2=require("../screens/full-submit/selfie");var _paymentEvidence=require("../screens/payment-evidence");var _guideTransferBank=require("../screens/guide-transfer-bank");var _TransferDetail=_interopRequireDefault(require("../screens/guide-transfer-bank/TransferDetail"));var _ViewContract=require("../screens/sign-tima/ViewContract");var _ConfirmContract=require("../screens/sign-tima/ConfirmContract");var _PaymentAll=require("../screens/detail-loan/PaymentAll");var _detailLoan=require("../screens/detail-loan");var _Guideline=_interopRequireDefault(require("../screens/payment-evidence/Guideline"));var _accept_policy=require("../screens/full-submit/accept_policy");var _digitalLending=require("../screens/digital-lending");var _DetailLoanTima=require("../screens/detail-loan/DetailLoanTima");var _mrzScanner=_interopRequireDefault(require("../screens/mrz-scanner"));var _livenessV=require("../screens/liveness-v2");var _PreviewContract=_interopRequireDefault(require("../screens/eSign/PreviewContract"));var _jsxFileName="/Users/tima/Desktop/tima-care-v2/src/navigation/primary-navigator.tsx";var ScreenNames=exports.ScreenNames={Splash:'Splash',Main:'Main',Support:'Support',Compare:'Compare',OTP:'OTP',NationalID:'NationalID',Selfie:'Selfie',RegisterMotor:'RegisterMotor',Register:'Register',Camera:'Camera',Terms:'Terms',LiveNess:'LiveNess',ESign:'ESign',NationalIDBack:'NationalIDBack',Contract:'Contract',Video:'Video',Qualify:'Qualify',LoginWithPassword:'LoginWithPassword',ForgotPassword:'ForgotPassword',SetPassword:'SetPassword',ConfirmPassword:'ConfirmPassword',TopUp:'TopUp',QuickSubmit:'QuickSubmit',Introduction:'Introduction',FullSubmit:'FullSubmit',CommonSelect:'CommonSelect',UpdateLoan:'UpdateLoan',CIMBSign:'CIMBSign',SchedulePayment:'SchedulePayment',Notification:'Notification',PaymentList:'PaymentList',CIMBxTima:'CIMBxTima',QuickTerm:'QuickTerm',DetailLoan:'DetailLoan',PaymentInfo:'PaymentInfo',CimbSelfie:'CimbSelfie',PaymentEvidence:'PaymentEvidence',GuideTransferBank:'GuideTransferBank',TransferDetail:'TransferDetail',PaymentAll:'PaymentAll',ViewContract:'ViewContract',ConfirmContract:'ConfirmContract',Guideline:'Guideline',AcceptPolicy:'AcceptPolicy',DigitalLending:'DigitalLending',DetailLoanTima:'DetailLoanTima',MRZScanner:'MRZScanner',LivenessV2:'LivenessV2',PreviewContract:'PreviewContract'};var Stack=(0,_nativeStack.createNativeStackNavigator)();function PrimaryNavigator(){return _react.default.createElement(Stack.Navigator,{initialRouteName:ScreenNames.Main,screenOptions:{headerShown:false,gestureEnabled:true},__self:this,__source:{fileName:_jsxFileName,lineNumber:111,columnNumber:5}},_react.default.createElement(Stack.Screen,{name:ScreenNames.Splash,component:_screens.Splash,__self:this,__source:{fileName:_jsxFileName,lineNumber:118,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.Register,component:_register.Register,__self:this,__source:{fileName:_jsxFileName,lineNumber:119,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.Main,component:_screens.Main,__self:this,__source:{fileName:_jsxFileName,lineNumber:120,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.OTP,component:_otp.OTP,__self:this,__source:{fileName:_jsxFileName,lineNumber:121,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.NationalID,component:_nationalID.NationalID,__self:this,__source:{fileName:_jsxFileName,lineNumber:122,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.Selfie,component:_selfie.Selfie,__self:this,__source:{fileName:_jsxFileName,lineNumber:123,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.Camera,component:_camera.Camera,__self:this,__source:{fileName:_jsxFileName,lineNumber:124,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.Terms,component:_TermScreen.TermScreen,__self:this,__source:{fileName:_jsxFileName,lineNumber:125,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.LiveNess,component:_liveness.LiveNess,__self:this,__source:{fileName:_jsxFileName,lineNumber:126,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.ESign,component:_eSign.ESign,__self:this,__source:{fileName:_jsxFileName,lineNumber:127,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.NationalIDBack,component:_nationalIDBack.NationalIDBack,__self:this,__source:{fileName:_jsxFileName,lineNumber:128,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.DetailLoan,component:_detailLoan.DetailLoan,__self:this,__source:{fileName:_jsxFileName,lineNumber:132,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.Contract,component:_contract.Contract,__self:this,__source:{fileName:_jsxFileName,lineNumber:133,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.Video,component:_uploadVideo.Video,__self:this,__source:{fileName:_jsxFileName,lineNumber:134,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.Qualify,component:_qualify.Qualify,__self:this,__source:{fileName:_jsxFileName,lineNumber:135,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.LoginWithPassword,component:_loginWithPassword.LoginWithPassword,__self:this,__source:{fileName:_jsxFileName,lineNumber:136,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.ForgotPassword,component:_forgotPassword.ForgotPassword,__self:this,__source:{fileName:_jsxFileName,lineNumber:140,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.SetPassword,component:_setPassword.SetPassword,__self:this,__source:{fileName:_jsxFileName,lineNumber:144,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.ConfirmPassword,component:_confirmPassword.ConfirmPassword,__self:this,__source:{fileName:_jsxFileName,lineNumber:145,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.QuickSubmit,component:_quickSubmit.QuickSubmit,__self:this,__source:{fileName:_jsxFileName,lineNumber:149,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.Introduction,component:_introduction.Introduction,__self:this,__source:{fileName:_jsxFileName,lineNumber:150,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.FullSubmit,component:_fullSubmit.FullSubmit,__self:this,__source:{fileName:_jsxFileName,lineNumber:151,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.CommonSelect,component:_select.CommonSelect,__self:this,__source:{fileName:_jsxFileName,lineNumber:152,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.CIMBSign,component:_cimbSign.CIMBSign,__self:this,__source:{fileName:_jsxFileName,lineNumber:153,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.SchedulePayment,component:_schedulePayment.SchedulePayment,__self:this,__source:{fileName:_jsxFileName,lineNumber:154,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.Notification,component:_notification.Notification,__self:this,__source:{fileName:_jsxFileName,lineNumber:158,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.PaymentList,component:_paymentList.PaymentList,__self:this,__source:{fileName:_jsxFileName,lineNumber:159,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.CIMBxTima,component:_CIMBxTima.CIMBxTima,__self:this,__source:{fileName:_jsxFileName,lineNumber:160,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.QuickTerm,component:_QuickTerm.QuickTerm,__self:this,__source:{fileName:_jsxFileName,lineNumber:161,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.PaymentInfo,component:_PaymentInfo.PaymentInfo,__self:this,__source:{fileName:_jsxFileName,lineNumber:162,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.CimbSelfie,component:_selfie2.CimbSelfie,__self:this,__source:{fileName:_jsxFileName,lineNumber:163,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.PaymentEvidence,component:_paymentEvidence.PaymentEvidence,__self:this,__source:{fileName:_jsxFileName,lineNumber:164,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.GuideTransferBank,component:_guideTransferBank.GuideTransferBank,__self:this,__source:{fileName:_jsxFileName,lineNumber:168,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.TransferDetail,component:_TransferDetail.default,__self:this,__source:{fileName:_jsxFileName,lineNumber:172,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.PaymentAll,component:_PaymentAll.PaymentAll,__self:this,__source:{fileName:_jsxFileName,lineNumber:176,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.ViewContract,component:_ViewContract.ViewContract,__self:this,__source:{fileName:_jsxFileName,lineNumber:177,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.ConfirmContract,component:_ConfirmContract.ConfirmContract,__self:this,__source:{fileName:_jsxFileName,lineNumber:178,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.Guideline,component:_Guideline.default,__self:this,__source:{fileName:_jsxFileName,lineNumber:182,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.AcceptPolicy,component:_accept_policy.AcceptPolicy,__self:this,__source:{fileName:_jsxFileName,lineNumber:183,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.DigitalLending,component:_digitalLending.DigitalLending,__self:this,__source:{fileName:_jsxFileName,lineNumber:184,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.DetailLoanTima,component:_DetailLoanTima.DetailLoanTima,__self:this,__source:{fileName:_jsxFileName,lineNumber:188,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.MRZScanner,component:_mrzScanner.default,__self:this,__source:{fileName:_jsxFileName,lineNumber:192,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.LivenessV2,component:_livenessV.LivenessV2,__self:this,__source:{fileName:_jsxFileName,lineNumber:193,columnNumber:7}}),_react.default.createElement(Stack.Screen,{name:ScreenNames.PreviewContract,component:_PreviewContract.default,__self:this,__source:{fileName:_jsxFileName,lineNumber:194,columnNumber:7}}));}var exitRoutes=['welcome'];var canExit=exports.canExit=function canExit(routeName){return exitRoutes.includes(routeName);};
2
2
  //# sourceMappingURL=primary-navigator.js.map
@@ -50,6 +50,7 @@ import { DigitalLending } from '../screens/digital-lending';
50
50
  import { DetailLoanTima } from '../screens/detail-loan/DetailLoanTima';
51
51
  import MRZScanner from '../screens/mrz-scanner';
52
52
  import { LivenessV2 } from '../screens/liveness-v2';
53
+ import PreviewContract from '../screens/eSign/PreviewContract';
53
54
 
54
55
  export const ScreenNames = {
55
56
  Splash: 'Splash',
@@ -100,6 +101,7 @@ export const ScreenNames = {
100
101
  DetailLoanTima: 'DetailLoanTima',
101
102
  MRZScanner: 'MRZScanner',
102
103
  LivenessV2: 'LivenessV2',
104
+ PreviewContract: 'PreviewContract',
103
105
  };
104
106
 
105
107
  const Stack = createNativeStackNavigator();
@@ -189,6 +191,10 @@ export function PrimaryNavigator() {
189
191
  />
190
192
  <Stack.Screen name={ScreenNames.MRZScanner} component={MRZScanner} />
191
193
  <Stack.Screen name={ScreenNames.LivenessV2} component={LivenessV2} />
194
+ <Stack.Screen
195
+ name={ScreenNames.PreviewContract}
196
+ component={PreviewContract}
197
+ />
192
198
  </Stack.Navigator>
193
199
  );
194
200
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_nativeStack","_screens","_otp","_nationalID","_selfie","_register","_camera","_TermScreen","_liveness","_eSign","_nationalIDBack","_contract","_uploadVideo","_qualify","_loginWithPassword","_forgotPassword","_setPassword","_confirmPassword","_quickSubmit","_select","_fullSubmit","_introduction","_cimbSign","_schedulePayment","_notification","_paymentList","_CIMBxTima","_QuickTerm","_PaymentInfo","_selfie2","_paymentEvidence","_guideTransferBank","_TransferDetail","_ViewContract","_ConfirmContract","_PaymentAll","_detailLoan","_Guideline","_accept_policy","_digitalLending","_DetailLoanTima","_mrzScanner","_livenessV","_jsxFileName","ScreenNames","exports","Splash","Main","Support","Compare","OTP","NationalID","Selfie","RegisterMotor","Register","Camera","Terms","LiveNess","ESign","NationalIDBack","Contract","Video","Qualify","LoginWithPassword","ForgotPassword","SetPassword","ConfirmPassword","TopUp","QuickSubmit","Introduction","FullSubmit","CommonSelect","UpdateLoan","CIMBSign","SchedulePayment","Notification","PaymentList","CIMBxTima","QuickTerm","DetailLoan","PaymentInfo","CimbSelfie","PaymentEvidence","GuideTransferBank","TransferDetail","PaymentAll","ViewContract","ConfirmContract","Guideline","AcceptPolicy","DigitalLending","DetailLoanTima","MRZScanner","LivenessV2","Stack","createNativeStackNavigator","PrimaryNavigator","default","createElement","Navigator","initialRouteName","screenOptions","headerShown","gestureEnabled","__self","__source","fileName","lineNumber","columnNumber","Screen","name","component","TermScreen","exitRoutes","canExit","routeName","includes"],"sourceRoot":"../../../src","sources":["navigation/prim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CAAAC,aAAA,CAACJ,KAAK,CAACe,MAAM,EACXC,IAAI,CAAElE,WAAW,CAAC8C,cAAe,CACjCqB,SAAS,CAAErB,8BAAe,CAAAc,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA/D,YAAA,CAAAgE,UAAA,KAAAC,YAAA,IAC3B,CAAC,CACF/G,MAAA,CAAAoG,OAAA,CAAAC,aAAA,CAACJ,KAAK,CAACe,MAAM,EACXC,IAAI,CAAElE,WAAW,CAAC+C,cAAe,CACjCoB,SAAS,CAAEpB,8BAAe,CAAAa,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA/D,YAAA,CAAAgE,UAAA,KAAAC,YAAA,IAC3B,CAAC,CACF/G,MAAA,CAAAoG,OAAA,CAAAC,aAAA,CAACJ,KAAK,CAACe,MAAM,EAACC,IAAI,CAAElE,WAAW,CAACgD,UAAW,CAACmB,SAAS,CAAEnB,mBAAW,CAAAY,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA/D,YAAA,CAAAgE,UAAA,KAAAC,YAAA,IAAE,CAAC,CACrE/G,MAAA,CAAAoG,OAAA,CAAAC,aAAA,CAACJ,KAAK,CAACe,MAAM,EAACC,IAAI,CAAElE,WAAW,CAACiD,UAAW,CAACkB,SAAS,CAAElB,qBAAW,CAAAW,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA/D,YAAA,CAAAgE,UAAA,KAAAC,YAAA,IAAE,CACrD,CAAC,CAEtB,CAEA,GAAM,CAAAK,UAAU,CAAG,CAAC,SAAS,CAAC,CACvB,GAAM,CAAAC,OAAO,CAAArE,OAAA,CAAAqE,OAAA,CAAG,QAAV,CAAAA,OAAOA,CAAIC,SAAiB,QAAK,CAAAF,UAAU,CAACG,QAAQ,CAACD,SAAS,CAAC"}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_nativeStack","_screens","_otp","_nationalID","_selfie","_register","_camera","_TermScreen","_liveness","_eSign","_nationalIDBack","_contract","_uploadVideo","_qualify","_loginWithPassword","_forgotPassword","_setPassword","_confirmPassword","_quickSubmit","_select","_fullSubmit","_introduction","_cimbSign","_schedulePayment","_notification","_paymentList","_CIMBxTima","_QuickTerm","_PaymentInfo","_selfie2","_paymentEvidence","_guideTransferBank","_TransferDetail","_ViewContract","_ConfirmContract","_PaymentAll","_detailLoan","_Guideline","_accept_policy","_digitalLending","_DetailLoanTima","_mrzScanner","_livenessV","_PreviewContract","_jsxFileName","ScreenNames","exports","Splash","Main","Support","Compare","OTP","NationalID","Selfie","RegisterMotor","Register","Camera","Terms","LiveNess","ESign","NationalIDBack","Contract","Video","Qualify","LoginWithPassword","ForgotPassword","SetPassword","ConfirmPassword","TopUp","QuickSubmit","Introduction","FullSubmit","CommonSelect","UpdateLoan","CIMBSign","SchedulePayment","Notification","PaymentList","CIMBxTima","QuickTerm","DetailLoan","PaymentInfo","CimbSelfie","PaymentEvidence","GuideTransferBank","TransferDetail","PaymentAll","ViewContract","ConfirmContract","Guideline","AcceptPolicy","DigitalLending","DetailLoanTima","MRZScanner","LivenessV2","PreviewContract","Stack","createNativeStackNavigator","PrimaryNavigator","default","createElement","Navigator","initialRouteName","screenOptions","headerShown","gestureEnabled","__self","__source","fileName","lineNumber","columnNumber","Screen","name","component","TermScreen","exitRoutes","canExit","routeName","includes"],"sourceRoot":"../../../src","sources":["navigation/primary-navigator.tsx"],"mappings":"iOAOA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WAEA,IAAAC,YAAA,CAAAD,OAAA,sCACA,IAAAE,QAAA,CAAAF,OAAA,eACA,IAAAG,IAAA,CAAAH,OAAA,mBACA,IAAAI,WAAA,CAAAJ,OAAA,0BACA,IAAAK,OAAA,CAAAL,OAAA,sBACA,IAAAM,SAAA,CAAAN,OAAA,wBACA,IAAAO,OAAA,CAAAP,OAAA,sBACA,IAAAQ,WAAA,CAAAR,OAAA,gCACA,IAAAS,SAAA,CAAAT,OAAA,wBACA,IAAAU,MAAA,CAAAV,OAAA,qBACA,IAAAW,eAAA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AAEnE,WAAW,CAAC+C,cAAe,CACjCqB,SAAS,CAAErB,8BAAe,CAAAc,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAAhE,YAAA,CAAAiE,UAAA,KAAAC,YAAA,IAC3B,CAAC,CACFjH,MAAA,CAAAsG,OAAA,CAAAC,aAAA,CAACJ,KAAK,CAACe,MAAM,EAACC,IAAI,CAAEnE,WAAW,CAACgD,UAAW,CAACoB,SAAS,CAAEpB,mBAAW,CAAAa,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAAhE,YAAA,CAAAiE,UAAA,KAAAC,YAAA,IAAE,CAAC,CACrEjH,MAAA,CAAAsG,OAAA,CAAAC,aAAA,CAACJ,KAAK,CAACe,MAAM,EAACC,IAAI,CAAEnE,WAAW,CAACiD,UAAW,CAACmB,SAAS,CAAEnB,qBAAW,CAAAY,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAAhE,YAAA,CAAAiE,UAAA,KAAAC,YAAA,IAAE,CAAC,CACrEjH,MAAA,CAAAsG,OAAA,CAAAC,aAAA,CAACJ,KAAK,CAACe,MAAM,EACXC,IAAI,CAAEnE,WAAW,CAACkD,eAAgB,CAClCkB,SAAS,CAAElB,wBAAgB,CAAAW,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAAhE,YAAA,CAAAiE,UAAA,KAAAC,YAAA,IAC5B,CACc,CAAC,CAEtB,CAEA,GAAM,CAAAK,UAAU,CAAG,CAAC,SAAS,CAAC,CACvB,GAAM,CAAAC,OAAO,CAAAtE,OAAA,CAAAsE,OAAA,CAAG,QAAV,CAAAA,OAAOA,CAAIC,SAAiB,QAAK,CAAAF,UAAU,CAACG,QAAQ,CAACD,SAAS,CAAC"}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Camera=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _native=require("@react-navigation/native");var _mobxReactLite=require("mobx-react-lite");var _CommonStyles=require("../CommonStyles");var _MButton=_interopRequireDefault(require("../../components/MButton"));var _theme=require("../../theme");var _reactNativePermissions=require("react-native-permissions");var _reactNativeCamera=require("react-native-camera");var _icons=require("../../assets/icons");var _Store=_interopRequireDefault(require("./Store"));var _MText=require("../../components/MText");var _reactNativeModal=_interopRequireDefault(require("react-native-modal"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _jsxFileName="/Users/tima/Desktop/tima-care-v2/src/screens/camera/index.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 cameraStore=new _Store.default();var Camera=exports.Camera=(0,_mobxReactLite.observer)(function Camera(props){var _this=this;var navigation=(0,_native.useNavigation)();var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),passPermission=_useState2[0],setPassPermission=_useState2[1];var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),flash=_useState4[0],setFlash=_useState4[1];var _useState5=(0,_react.useState)(props.route.params.front),_useState6=(0,_slicedToArray2.default)(_useState5,2),front=_useState6[0],setFront=_useState6[1];var _useState7=(0,_react.useState)(props.route.params.selfie),_useState8=(0,_slicedToArray2.default)(_useState7,1),selfie=_useState8[0];var _useState9=(0,_react.useState)(false),_useState10=(0,_slicedToArray2.default)(_useState9,2),taking=_useState10[0],setTaking=_useState10[1];var _useState11=(0,_react.useState)(false),_useState12=(0,_slicedToArray2.default)(_useState11,2),showModal=_useState12[0],setShowModal=_useState12[1];var myCamera=(0,_react.useRef)(null);var takePhoto=function _callee(){var options,data;return _regenerator.default.async(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:setTaking(true);options={width:720,base64:true,pauseAfterCapture:true,fixOrientation:false,forceUpOrientation:false,orientation:_reactNativeCamera.RNCamera.Constants.Orientation.portrait};_context.next=4;return _regenerator.default.awrap(myCamera.current.takePictureAsync(options));case 4:data=_context.sent;setTaking(false);navigation.goBack();if(props.route.params.callback){props.route.params.callback(data.uri);}if(props.route.params.base64){props.route.params.base64(data.base64);}case 9:case"end":return _context.stop();}},null,null,null,Promise);};var requestPermissions=function requestPermissions(){(0,_reactNativePermissions.request)(_reactNative.Platform.OS==='ios'?_reactNativePermissions.PERMISSIONS.IOS.CAMERA:_reactNativePermissions.PERMISSIONS.ANDROID.CAMERA).then(function(result){switch(result){case _reactNativePermissions.RESULTS.UNAVAILABLE:console.log('This feature is not available (on this device / in this context)');_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 ý'}]);break;}});};(0,_react.useEffect)(function(){requestPermissions();if(selfie){cameraStore.interval=setInterval(function(){if(new Date().getTime()-cameraStore.lastFace>1000){cameraStore.isFace=false;}},1000);}return function(){clearInterval(cameraStore.interval);};},[]);var handlerFace=function handlerFace(event){if(event.type==='face'){cameraStore.isFace=true;cameraStore.lastFace=new Date().getTime();}};return _react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.fill,{backgroundColor:'black'}],pointerEvents:'box-none',__self:this,__source:{fileName:_jsxFileName,lineNumber:188,columnNumber:5}},passPermission&&_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.alignCenter,_CommonStyles.commonStyles.fill,_CommonStyles.commonStyles.justifyCenter,{position:'absolute',width:_reactNative.Dimensions.get('window').width,height:_reactNative.Dimensions.get('window').height}],__self:this,__source:{fileName:_jsxFileName,lineNumber:193,columnNumber:9}},_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},maxZoom:1,zoom:0.005,type:front?_reactNativeCamera.RNCamera.Constants.Type.front:_reactNativeCamera.RNCamera.Constants.Type.back,flashMode:flash?_reactNativeCamera.RNCamera.Constants.FlashMode.on:_reactNativeCamera.RNCamera.Constants.FlashMode.off,androidCameraPermissionOptions:{title:'Permission to use camera',message:'We need your permission to use your camera',buttonPositive:'Ok',buttonNegative:'Cancel'},androidRecordAudioPermissionOptions:{title:'Permission to use audio recording',message:'We need your permission to use your audio',buttonPositive:'Ok',buttonNegative:'Cancel'},__self:this,__source:{fileName:_jsxFileName,lineNumber:205,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:242,columnNumber:46}});})),_react.default.createElement(_reactNative.SafeAreaView,{style:[_CommonStyles.commonStyles.fill,{position:'absolute',width:'100%',height:'100%'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:248,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.row,_CommonStyles.commonStyles.alignCenter,{paddingHorizontal:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:254,columnNumber:9}},_react.default.createElement(_MButton.default,{onPress:function onPress(){navigation.goBack();},style:[{width:48,height:48,zIndex:1000}],__self:this,__source:{fileName:_jsxFileName,lineNumber:261,columnNumber:11}},_react.default.createElement(_icons.IconBackWhite,{__self:this,__source:{fileName:_jsxFileName,lineNumber:268,columnNumber:13}})),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:270,columnNumber:11}})),_react.default.createElement(_reactNative.View,{style:{flex:0,justifyContent:'center',position:'absolute',bottom:0,width:'100%'},__self:this,__source:{fileName:_jsxFileName,lineNumber:272,columnNumber:9}},!props.route.params.front&&_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'white',textAlign:'center',backgroundColor:'#00000099',paddingVertical:12}],__self:this,__source:{fileName:_jsxFileName,lineNumber:282,columnNumber:13}},"Vui l\xF2ng \u0111\u1EB7t gi\u1EA5y t\u1EDD n\u1EB1m v\u1EEBa khung h\xECnh,",'\n',"ch\u1EE5p \u0111\u1EE7 \xE1nh s\xE1ng v\xE0 r\xF5 n\xE9t."),props.route.params.selfie&&_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'white',textAlign:'center',backgroundColor:'#00000099',paddingVertical:12}],__self:this,__source:{fileName:_jsxFileName,lineNumber:298,columnNumber:13}},"Xin vui l\xF2ng nh\xECn th\u1EB3ng, khu\xF4n m\u1EB7t \u1EDF trong",'\n',"khung h\xECnh, \xE1nh s\xE1ng \u0111\u1EE7 r\xF5 n\xE9t khu\xF4n m\u1EB7t"),taking?_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.alignCenter,_CommonStyles.commonStyles.justifyCenter,{width:64,height:64,alignSelf:'center'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:329,columnNumber:13}},_react.default.createElement(_reactNative.ActivityIndicator,{color:'white',size:"large",__self:this,__source:{fileName:_jsxFileName,lineNumber:336,columnNumber:15}})):_react.default.createElement(_MButton.default,{onPress:function onPress(){return takePhoto();},style:[_CommonStyles.commonStyles.alignCenter,_CommonStyles.commonStyles.justifyCenter,{flex:0,borderRadius:64/2,width:64,height:64,borderWidth:5,borderColor:_theme.color.primary,paddingHorizontal:20,alignSelf:'center',margin:24}],__self:this,__source:{fileName:_jsxFileName,lineNumber:339,columnNumber:13}},_react.default.createElement(_reactNative.View,{style:{width:40,height:40,backgroundColor:_theme.color.primary,borderRadius:40/2,borderWidth:2,borderColor:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:357,columnNumber:15}})))),_react.default.createElement(_reactNativeModal.default,{isVisible:showModal,__self:this,__source:{fileName:_jsxFileName,lineNumber:371,columnNumber:7}},_react.default.createElement(_reactNative.SafeAreaView,{style:{backgroundColor:'#FFFFFF',borderRadius:4},__self:this,__source:{fileName:_jsxFileName,lineNumber:372,columnNumber:9}},_react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:373,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[{marginTop:16,color:'#F05123',fontSize:16,textAlign:'center',fontWeight:'bold'}],center:true,__self:this,__source:{fileName:_jsxFileName,lineNumber:374,columnNumber:13}},"B2: X\xC1C TH\u1EF0C KHU\xD4N M\u1EB6T"),_react.default.createElement(_reactNative.View,{style:{alignItems:'center',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:388,columnNumber:13}},_react.default.createElement(_icons.Selfie,{__self:this,__source:{fileName:_jsxFileName,lineNumber:389,columnNumber:15}})),_react.default.createElement(_MText.MText,{style:{color:'#333333',textAlign:'center',fontSize:16,fontWeight:'600',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:391,columnNumber:13}},"B\u1EA1n vui l\xF2ng ch\u1EE5p \u1EA3nh",'\n',"khu\xF4n m\u1EB7t theo h\u01B0\u1EDBng d\u1EABn:"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:16,alignItems:'center',paddingHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:403,columnNumber:13}},_react.default.createElement(_icons.TimaNormal,{width:12,__self:this,__source:{fileName:_jsxFileName,lineNumber:411,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{color:'#333333',marginLeft:8,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:412,columnNumber:15}},"Gi\u1EEF \u0111i\u1EC7n tho\u1EA1i \u1ED5n \u0111\u1ECBnh, th\u1EB3ng m\u1EB7t")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',paddingHorizontal:16,alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:416,columnNumber:13}},_react.default.createElement(_icons.TimaNormal,{width:12,__self:this,__source:{fileName:_jsxFileName,lineNumber:423,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{color:'#333333',marginLeft:8,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:424,columnNumber:15}},"\u0110i\u1EC1u ch\u1EC9nh khu\xF4n m\u1EB7t n\u1EB1m g\u1ECDn trong v\xF2ng tr\xF2n")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',paddingHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:428,columnNumber:13}},_react.default.createElement(_icons.TimaNormal,{width:12,__self:this,__source:{fileName:_jsxFileName,lineNumber:434,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{color:'#333333',marginLeft:8,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:435,columnNumber:15}},"Th\u1EF1c hi\u1EC7n quay tr\xE1i, ph\u1EA3i theo h\u01B0\u1EDBng d\u1EABn \u0111\u1EC3",'\n'," ho\xE0n th\xE0nh x\xE1c th\u1EF1c khu\xF4n m\u1EB7t")),_react.default.createElement(_reactNative.View,{style:{marginTop:24,paddingHorizontal:50},__self:this,__source:{fileName:_jsxFileName,lineNumber:440,columnNumber:13}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return setShowModal(false);},__self:this,__source:{fileName:_jsxFileName,lineNumber:441,columnNumber:15}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF7A00','#EF4123'],style:{alignItems:'center',borderRadius:30,alignContent:'center',paddingVertical:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:442,columnNumber:17}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{color:'#ffffff'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:451,columnNumber:19}},"Ti\u1EBFp t\u1EE5c")))),_react.default.createElement(_reactNative.View,{style:{marginBottom:24,marginTop:8,flexDirection:'row',justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:459,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:467,columnNumber:15}},"Cung c\u1EA5p b\u1EDFi",' '),_react.default.createElement(_icons.CIMBBank,{__self:this,__source:{fileName:_jsxFileName,lineNumber:470,columnNumber:15}}))))));});
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Camera=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _native=require("@react-navigation/native");var _mobxReactLite=require("mobx-react-lite");var _CommonStyles=require("../CommonStyles");var _MButton=_interopRequireDefault(require("../../components/MButton"));var _theme=require("../../theme");var _reactNativePermissions=require("react-native-permissions");var _reactNativeCamera=require("react-native-camera");var _icons=require("../../assets/icons");var _Store=_interopRequireDefault(require("./Store"));var _MText=require("../../components/MText");var _reactNativeModal=_interopRequireDefault(require("react-native-modal"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _jsxFileName="/Users/tima/Desktop/tima-care-v2/src/screens/camera/index.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 cameraStore=new _Store.default();var Camera=exports.Camera=(0,_mobxReactLite.observer)(function Camera(props){var _this=this;var navigation=(0,_native.useNavigation)();var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),passPermission=_useState2[0],setPassPermission=_useState2[1];var _useState3=(0,_react.useState)(false),_useState4=(0,_slicedToArray2.default)(_useState3,2),flash=_useState4[0],setFlash=_useState4[1];var _useState5=(0,_react.useState)(props.route.params.front),_useState6=(0,_slicedToArray2.default)(_useState5,2),front=_useState6[0],setFront=_useState6[1];var _useState7=(0,_react.useState)(props.route.params.selfie),_useState8=(0,_slicedToArray2.default)(_useState7,1),selfie=_useState8[0];var _useState9=(0,_react.useState)(false),_useState10=(0,_slicedToArray2.default)(_useState9,2),taking=_useState10[0],setTaking=_useState10[1];var _useState11=(0,_react.useState)(false),_useState12=(0,_slicedToArray2.default)(_useState11,2),showModal=_useState12[0],setShowModal=_useState12[1];var myCamera=(0,_react.useRef)(null);var takePhoto=function _callee(){var options,data;return _regenerator.default.async(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:setTaking(true);options={width:720,base64:true,pauseAfterCapture:true,fixOrientation:false,forceUpOrientation:false,orientation:_reactNativeCamera.RNCamera.Constants.Orientation.portrait};_context.next=4;return _regenerator.default.awrap(myCamera.current.takePictureAsync(options));case 4:data=_context.sent;setTaking(false);navigation.goBack();if(props.route.params.callback){props.route.params.callback(data.uri);}if(props.route.params.base64){props.route.params.base64(data.base64);}case 9:case"end":return _context.stop();}},null,null,null,Promise);};var requestPermissions=function requestPermissions(){(0,_reactNativePermissions.request)(_reactNative.Platform.OS==='ios'?_reactNativePermissions.PERMISSIONS.IOS.CAMERA:_reactNativePermissions.PERMISSIONS.ANDROID.CAMERA).then(function(result){switch(result){case _reactNativePermissions.RESULTS.UNAVAILABLE:console.log('This feature is not available (on this device / in this context)');_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 ý'}]);break;}});};(0,_react.useEffect)(function(){requestPermissions();if(selfie){cameraStore.interval=setInterval(function(){if(new Date().getTime()-cameraStore.lastFace>1000){cameraStore.isFace=false;}},1000);}return function(){clearInterval(cameraStore.interval);};},[]);var handlerFace=function handlerFace(event){if(event.type==='face'){cameraStore.isFace=true;cameraStore.lastFace=new Date().getTime();}};return _react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.fill,{backgroundColor:'black'}],pointerEvents:'box-none',__self:this,__source:{fileName:_jsxFileName,lineNumber:188,columnNumber:5}},passPermission&&_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.alignCenter,_CommonStyles.commonStyles.fill,_CommonStyles.commonStyles.justifyCenter,{position:'absolute',width:_reactNative.Dimensions.get('window').width,height:_reactNative.Dimensions.get('window').height}],__self:this,__source:{fileName:_jsxFileName,lineNumber:193,columnNumber:9}},_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},maxZoom:1,zoom:props.route.params.selfie?0:0.005,type:front?_reactNativeCamera.RNCamera.Constants.Type.front:_reactNativeCamera.RNCamera.Constants.Type.back,flashMode:flash?_reactNativeCamera.RNCamera.Constants.FlashMode.on:_reactNativeCamera.RNCamera.Constants.FlashMode.off,androidCameraPermissionOptions:{title:'Permission to use camera',message:'We need your permission to use your camera',buttonPositive:'Ok',buttonNegative:'Cancel'},androidRecordAudioPermissionOptions:{title:'Permission to use audio recording',message:'We need your permission to use your audio',buttonPositive:'Ok',buttonNegative:'Cancel'},__self:this,__source:{fileName:_jsxFileName,lineNumber:205,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:242,columnNumber:46}});})),_react.default.createElement(_reactNative.SafeAreaView,{style:[_CommonStyles.commonStyles.fill,{position:'absolute',width:'100%',height:'100%'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:248,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.row,_CommonStyles.commonStyles.alignCenter,{paddingHorizontal:16}],__self:this,__source:{fileName:_jsxFileName,lineNumber:254,columnNumber:9}},_react.default.createElement(_MButton.default,{onPress:function onPress(){navigation.goBack();},style:[{width:48,height:48,zIndex:1000}],__self:this,__source:{fileName:_jsxFileName,lineNumber:261,columnNumber:11}},_react.default.createElement(_icons.IconBackWhite,{__self:this,__source:{fileName:_jsxFileName,lineNumber:268,columnNumber:13}})),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:270,columnNumber:11}})),_react.default.createElement(_reactNative.View,{style:{flex:0,justifyContent:'center',position:'absolute',bottom:0,width:'100%'},__self:this,__source:{fileName:_jsxFileName,lineNumber:272,columnNumber:9}},!props.route.params.front&&_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'white',textAlign:'center',backgroundColor:'#00000099',paddingVertical:12}],__self:this,__source:{fileName:_jsxFileName,lineNumber:282,columnNumber:13}},"Vui l\xF2ng \u0111\u1EB7t gi\u1EA5y t\u1EDD n\u1EB1m v\u1EEBa khung h\xECnh,",'\n',"ch\u1EE5p \u0111\u1EE7 \xE1nh s\xE1ng v\xE0 r\xF5 n\xE9t."),props.route.params.selfie&&_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormal,{color:'white',textAlign:'center',backgroundColor:'#00000099',paddingVertical:12}],__self:this,__source:{fileName:_jsxFileName,lineNumber:298,columnNumber:13}},"Xin vui l\xF2ng nh\xECn th\u1EB3ng, khu\xF4n m\u1EB7t \u1EDF trong",'\n',"khung h\xECnh, \xE1nh s\xE1ng \u0111\u1EE7 r\xF5 n\xE9t khu\xF4n m\u1EB7t"),taking?_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.alignCenter,_CommonStyles.commonStyles.justifyCenter,{width:64,height:64,alignSelf:'center'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:329,columnNumber:13}},_react.default.createElement(_reactNative.ActivityIndicator,{color:'white',size:"large",__self:this,__source:{fileName:_jsxFileName,lineNumber:336,columnNumber:15}})):_react.default.createElement(_MButton.default,{onPress:function onPress(){return takePhoto();},style:[_CommonStyles.commonStyles.alignCenter,_CommonStyles.commonStyles.justifyCenter,{flex:0,borderRadius:64/2,width:64,height:64,borderWidth:5,borderColor:_theme.color.primary,paddingHorizontal:20,alignSelf:'center',margin:24}],__self:this,__source:{fileName:_jsxFileName,lineNumber:339,columnNumber:13}},_react.default.createElement(_reactNative.View,{style:{width:40,height:40,backgroundColor:_theme.color.primary,borderRadius:40/2,borderWidth:2,borderColor:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:357,columnNumber:15}})))),_react.default.createElement(_reactNativeModal.default,{isVisible:showModal,__self:this,__source:{fileName:_jsxFileName,lineNumber:371,columnNumber:7}},_react.default.createElement(_reactNative.SafeAreaView,{style:{backgroundColor:'#FFFFFF',borderRadius:4},__self:this,__source:{fileName:_jsxFileName,lineNumber:372,columnNumber:9}},_react.default.createElement(_reactNative.View,{__self:this,__source:{fileName:_jsxFileName,lineNumber:373,columnNumber:11}},_react.default.createElement(_MText.MText,{style:[{marginTop:16,color:'#F05123',fontSize:16,textAlign:'center',fontWeight:'bold'}],center:true,__self:this,__source:{fileName:_jsxFileName,lineNumber:374,columnNumber:13}},"B2: X\xC1C TH\u1EF0C KHU\xD4N M\u1EB6T"),_react.default.createElement(_reactNative.View,{style:{alignItems:'center',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:388,columnNumber:13}},_react.default.createElement(_icons.Selfie,{__self:this,__source:{fileName:_jsxFileName,lineNumber:389,columnNumber:15}})),_react.default.createElement(_MText.MText,{style:{color:'#333333',textAlign:'center',fontSize:16,fontWeight:'600',marginTop:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:391,columnNumber:13}},"B\u1EA1n vui l\xF2ng ch\u1EE5p \u1EA3nh",'\n',"khu\xF4n m\u1EB7t theo h\u01B0\u1EDBng d\u1EABn:"),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',marginTop:16,alignItems:'center',paddingHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:403,columnNumber:13}},_react.default.createElement(_icons.TimaNormal,{width:12,__self:this,__source:{fileName:_jsxFileName,lineNumber:411,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{color:'#333333',marginLeft:8,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:412,columnNumber:15}},"Gi\u1EEF \u0111i\u1EC7n tho\u1EA1i \u1ED5n \u0111\u1ECBnh, th\u1EB3ng m\u1EB7t")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',paddingHorizontal:16,alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:416,columnNumber:13}},_react.default.createElement(_icons.TimaNormal,{width:12,__self:this,__source:{fileName:_jsxFileName,lineNumber:423,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{color:'#333333',marginLeft:8,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:424,columnNumber:15}},"\u0110i\u1EC1u ch\u1EC9nh khu\xF4n m\u1EB7t n\u1EB1m g\u1ECDn trong v\xF2ng tr\xF2n")),_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',paddingHorizontal:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:428,columnNumber:13}},_react.default.createElement(_icons.TimaNormal,{width:12,__self:this,__source:{fileName:_jsxFileName,lineNumber:434,columnNumber:15}}),_react.default.createElement(_MText.MText,{style:{color:'#333333',marginLeft:8,fontSize:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:435,columnNumber:15}},"Th\u1EF1c hi\u1EC7n quay tr\xE1i, ph\u1EA3i theo h\u01B0\u1EDBng d\u1EABn \u0111\u1EC3",'\n'," ho\xE0n th\xE0nh x\xE1c th\u1EF1c khu\xF4n m\u1EB7t")),_react.default.createElement(_reactNative.View,{style:{marginTop:24,paddingHorizontal:50},__self:this,__source:{fileName:_jsxFileName,lineNumber:440,columnNumber:13}},_react.default.createElement(_reactNative.TouchableOpacity,{onPress:function onPress(){return setShowModal(false);},__self:this,__source:{fileName:_jsxFileName,lineNumber:441,columnNumber:15}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF7A00','#EF4123'],style:{alignItems:'center',borderRadius:30,alignContent:'center',paddingVertical:12},__self:this,__source:{fileName:_jsxFileName,lineNumber:442,columnNumber:17}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{color:'#ffffff'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:451,columnNumber:19}},"Ti\u1EBFp t\u1EE5c")))),_react.default.createElement(_reactNative.View,{style:{marginBottom:24,marginTop:8,flexDirection:'row',justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:459,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{fontSize:12,color:'#333333'},__self:this,__source:{fileName:_jsxFileName,lineNumber:467,columnNumber:15}},"Cung c\u1EA5p b\u1EDFi",' '),_react.default.createElement(_icons.CIMBBank,{__self:this,__source:{fileName:_jsxFileName,lineNumber:470,columnNumber:15}}))))));});
2
2
  //# sourceMappingURL=index.js.map
@@ -210,7 +210,7 @@ export const Camera = observer(function Camera(props: any) {
210
210
  height: (Dimensions.get('window').width * 4) / 3.1,
211
211
  }}
212
212
  maxZoom={1}
213
- zoom={0.005}
213
+ zoom={props.route.params.selfie ? 0 : 0.005}
214
214
  type={
215
215
  front
216
216
  ? RNCamera.Constants.Type.front
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_native","_mobxReactLite","_CommonStyles","_MButton","_interopRequireDefault","_theme","_reactNativePermissions","_reactNativeCamera","_icons","_Store","_MText","_reactNativeModal","_reactNativeLinearGradient","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","cameraStore","Store","Camera","exports","observer","props","_this","navigation","useNavigation","_useState","useState","_useState2","_slicedToArray2","passPermission","setPassPermission","_useState3","_useState4","flash","setFlash","_useState5","route","params","front","_useState6","setFront","_useState7","selfie","_useState8","_useState9","_useState10","taking","setTaking","_useState11","_useState12","showModal","setShowModal","myCamera","useRef","takePhoto","_callee","options","data","_regenerator","async","_callee$","_context","prev","next","width","base64","pauseAfterCapture","fixOrientation","forceUpOrientation","orientation","RNCamera","Constants","Orientation","portrait","awrap","current","takePictureAsync","sent","goBack","callback","uri","stop","Promise","requestPermissions","request","Platform","OS","PERMISSIONS","IOS","CAMERA","ANDROID","then","result","RESULTS","UNAVAILABLE","console","log","Alert","alert","text","DENIED","onPress","openSettings","LIMITED","GRANTED","BLOCKED","useEffect","interval","setInterval","Date","getTime","lastFace","isFace","clearInterval","handlerFace","event","type","createElement","View","style","commonStyles","fill","backgroundColor","pointerEvents","__self","__source","fileName","lineNumber","columnNumber","alignCenter","justifyCenter","position","Dimensions","height","ref","defaultVideoQuality","VideoQuality","maxZoom","zoom","Type","back","flashMode","FlashMode","on","off","androidCameraPermissionOptions","title","message","buttonPositive","buttonNegative","androidRecordAudioPermissionOptions","_ref","camera","status","recordAudioPermissionStatus","ActivityIndicator","SafeAreaView","row","paddingHorizontal","zIndex","IconBackWhite","flex","justifyContent","bottom","MText","textNormal","color","textAlign","paddingVertical","alignSelf","size","borderRadius","borderWidth","borderColor","primary","margin","isVisible","marginTop","fontSize","fontWeight","center","alignItems","Selfie","flexDirection","TimaNormal","marginLeft","TouchableOpacity","colors","alignContent","textNormalBold","marginBottom","CIMBBank"],"sourceRoot":"../../../../src","sources":["screens/camera/index.tsx"],"mappings":"6UACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAeA,IAAAE,OAAA,CAAAF,OAAA,6BACA,IAAAG,cAAA,CAAAH,OAAA,oBACA,IAAAI,aAAA,CAAAJ,OAAA,oBACA,IAAAK,QAAA,CAAAC,sBAAA,CAAAN,OAAA,8BACA,IAAAO,MAAA,CAAAP,OAAA,gBACA,IAAAQ,uBAAA,CAAAR,OAAA,6BAMA,IAAAS,kBAAA,CAAAT,OAAA,wBACA,IAAAU,MAAA,CAAAV,OAAA,uBAYA,IAAAW,MAAA,CAAAL,sBAAA,CAAAN,OAAA,aACA,IAAAY,MAAA,CAAAZ,OAAA,2BACA,IAAAa,iBAAA,CAAAP,sBAAA,CAAAN,OAAA,wBACA,IAAAc,0BAAA,CAAAR,sBAAA,CAAAN,OAAA,kCAA0D,IAAAe,YAAA,0EAAAC,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,YAAAlB,wBAAAkB,CAAA,CAAAE,CAAA,MAAAA,CAAA,EAAAF,CAAA,EAAAA,CAAA,CAAAI,UAAA,QAAAJ,CAAA,WAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAK,OAAA,CAAAL,CAAA,MAAAG,CAAA,CAAAJ,wBAAA,CAAAG,CAAA,KAAAC,CAAA,EAAAA,CAAA,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,CAAC,CAEX,CAAC,CAAC"}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_native","_mobxReactLite","_CommonStyles","_MButton","_interopRequireDefault","_theme","_reactNativePermissions","_reactNativeCamera","_icons","_Store","_MText","_reactNativeModal","_reactNativeLinearGradient","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","cameraStore","Store","Camera","exports","observer","props","_this","navigation","useNavigation","_useState","useState","_useState2","_slicedToArray2","passPermission","setPassPermission","_useState3","_useState4","flash","setFlash","_useState5","route","params","front","_useState6","setFront","_useState7","selfie","_useState8","_useState9","_useState10","taking","setTaking","_useState11","_useState12","showModal","setShowModal","myCamera","useRef","takePhoto","_callee","options","data","_regenerator","async","_callee$","_context","prev","next","width","base64","pauseAfterCapture","fixOrientation","forceUpOrientation","orientation","RNCamera","Constants","Orientation","portrait","awrap","current","takePictureAsync","sent","goBack","callback","uri","stop","Promise","requestPermissions","request","Platform","OS","PERMISSIONS","IOS","CAMERA","ANDROID","then","result","RESULTS","UNAVAILABLE","console","log","Alert","alert","text","DENIED","onPress","openSettings","LIMITED","GRANTED","BLOCKED","useEffect","interval","setInterval","Date","getTime","lastFace","isFace","clearInterval","handlerFace","event","type","createElement","View","style","commonStyles","fill","backgroundColor","pointerEvents","__self","__source","fileName","lineNumber","columnNumber","alignCenter","justifyCenter","position","Dimensions","height","ref","defaultVideoQuality","VideoQuality","maxZoom","zoom","Type","back","flashMode","FlashMode","on","off","androidCameraPermissionOptions","title","message","buttonPositive","buttonNegative","androidRecordAudioPermissionOptions","_ref","camera","status","recordAudioPermissionStatus","ActivityIndicator","SafeAreaView","row","paddingHorizontal","zIndex","IconBackWhite","flex","justifyContent","bottom","MText","textNormal","color","textAlign","paddingVertical","alignSelf","size","borderRadius","borderWidth","borderColor","primary","margin","isVisible","marginTop","fontSize","fontWeight","center","alignItems","Selfie","flexDirection","TimaNormal","marginLeft","TouchableOpacity","colors","alignContent","textNormalBold","marginBottom","CIMBBank"],"sourceRoot":"../../../../src","sources":["screens/camera/index.tsx"],"mappings":"6UACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAeA,IAAAE,OAAA,CAAAF,OAAA,6BACA,IAAAG,cAAA,CAAAH,OAAA,oBACA,IAAAI,aAAA,CAAAJ,OAAA,oBACA,IAAAK,QAAA,CAAAC,sBAAA,CAAAN,OAAA,8BACA,IAAAO,MAAA,CAAAP,OAAA,gBACA,IAAAQ,uBAAA,CAAAR,OAAA,6BAMA,IAAAS,kBAAA,CAAAT,OAAA,wBACA,IAAAU,MAAA,CAAAV,OAAA,uBAYA,IAAAW,MAAA,CAAAL,sBAAA,CAAAN,OAAA,aACA,IAAAY,MAAA,CAAAZ,OAAA,2BACA,IAAAa,iBAAA,CAAAP,sBAAA,CAAAN,OAAA,wBACA,IAAAc,0BAAA,CAAAR,sBAAA,CAAAN,OAAA,kCAA0D,IAAAe,YAAA,0EAAAC,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,YAAAlB,wBAAAkB,CAAA,CAAAE,CAAA,MAAAA,CAAA,EAAAF,CAAA,EAAAA,CAAA,CAAAI,UAAA,QAAAJ,CAAA,WAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAK,OAAA,CAAAL,CAAA,MAAAG,CAAA,CAAAJ,wBAAA,CAAAG,CAAA,KAAAC,CAAA,EAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,SAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,MAAAQ,CAAA,EAAAC,SAAA,OAAAC,CAAA,CAAAC,MAAA,CAAAC,cAAA,EAA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time/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=PreviewContract;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _MText=require("../../components/MText");var _theme=require("../../theme");var _icons=require("../../assets/icons");var _CommonStyles=require("../CommonStyles");var _MButton=_interopRequireDefault(require("../../components/MButton"));var _native=require("@react-navigation/native");var _reactNativePdf=_interopRequireDefault(require("react-native-pdf"));var _jsxFileName="/Users/tima/Desktop/tima-care-v2/src/screens/eSign/PreviewContract.tsx";function PreviewContract(props){var _props$route;var navigation=(0,_native.useNavigation)();var source=props==null?void 0:(_props$route=props.route)==null?void 0:_props$route.params;return _react.default.createElement(_reactNative.View,{style:{flex:1,backgroundColor:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:16,columnNumber:5}},_react.default.createElement(_reactNative.SafeAreaView,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:17,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.row,_CommonStyles.commonStyles.alignCenter,{paddingHorizontal:16,height:55}],__self:this,__source:{fileName:_jsxFileName,lineNumber:18,columnNumber:9}},_react.default.createElement(_MButton.default,{onPress:function onPress(){navigation.goBack();},style:{width:30,height:55,justifyContent:'center',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:25,columnNumber:11}},_react.default.createElement(_icons.IconBack,{width:18,height:18,fill:'black',__self:this,__source:{fileName:_jsxFileName,lineNumber:37,columnNumber:13}})),_react.default.createElement(_MText.MText,{style:{marginRight:30,fontSize:16,paddingHorizontal:4,color:_theme.color.headerColor,fontWeight:'bold',textAlign:'center',flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:40,columnNumber:11}})),_react.default.createElement(_reactNative.View,{style:{backgroundColor:_theme.color.border},__self:this,__source:{fileName:_jsxFileName,lineNumber:52,columnNumber:9}}),_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:53,columnNumber:9}},_react.default.createElement(_reactNativePdf.default,{source:source,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:54,columnNumber:11}}))));}
2
+ //# sourceMappingURL=PreviewContract.js.map
@@ -0,0 +1,76 @@
1
+ //@ts-nocheck
2
+ import React from 'react';
3
+ import { SafeAreaView, View } from 'react-native';
4
+ import { MText } from '../../components/MText';
5
+ import { color } from '../../theme';
6
+ import { IconBack } from '../../assets/icons';
7
+ import { commonStyles } from '../CommonStyles';
8
+ import MButton from '../../components/MButton';
9
+ import { useNavigation } from '@react-navigation/native';
10
+ import Pdf from 'react-native-pdf';
11
+
12
+ export default function PreviewContract(props: any) {
13
+ const navigation = useNavigation();
14
+ const source = props?.route?.params;
15
+ return (
16
+ <View style={{ flex: 1, backgroundColor: 'white' }}>
17
+ <SafeAreaView style={{ flex: 1 }}>
18
+ <View
19
+ style={[
20
+ commonStyles.row,
21
+ commonStyles.alignCenter,
22
+ { paddingHorizontal: 16, height: 55 },
23
+ ]}
24
+ >
25
+ <MButton
26
+ //@ts-ignore
27
+ onPress={() => {
28
+ navigation.goBack();
29
+ }}
30
+ style={{
31
+ width: 30,
32
+ height: 55,
33
+ justifyContent: 'center',
34
+ alignItems: 'center',
35
+ }}
36
+ >
37
+ <IconBack width={18} height={18} fill={'black'} />
38
+ </MButton>
39
+
40
+ <MText
41
+ style={{
42
+ marginRight: 30,
43
+ fontSize: 16,
44
+ paddingHorizontal: 4,
45
+ color: color.headerColor,
46
+ fontWeight: 'bold',
47
+ textAlign: 'center',
48
+ flex: 1,
49
+ }}
50
+ ></MText>
51
+ </View>
52
+ <View style={{ backgroundColor: color.border }} />
53
+ <View style={{ flex: 1 }}>
54
+ <Pdf
55
+ source={source}
56
+ onLoadComplete={(numberOfPages, filePath) => {
57
+ console.log(`Number of pages: ${numberOfPages}`);
58
+ }}
59
+ onPageChanged={(page, numberOfPages) => {
60
+ console.log(`Current page: ${page}`);
61
+ }}
62
+ onError={(error) => {
63
+ console.log(error);
64
+ }}
65
+ onPressLink={(uri) => {
66
+ console.log(`Link pressed: ${uri}`);
67
+ }}
68
+ style={{
69
+ flex: 1,
70
+ }}
71
+ />
72
+ </View>
73
+ </SafeAreaView>
74
+ </View>
75
+ );
76
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_MText","_theme","_icons","_CommonStyles","_MButton","_native","_reactNativePdf","_jsxFileName","PreviewContract","props","_props$route","navigation","useNavigation","source","route","params","default","createElement","View","style","flex","backgroundColor","__self","__source","fileName","lineNumber","columnNumber","SafeAreaView","commonStyles","row","alignCenter","paddingHorizontal","height","onPress","goBack","width","justifyContent","alignItems","IconBack","fill","MText","marginRight","fontSize","color","headerColor","fontWeight","textAlign","border","onLoadComplete","numberOfPages","filePath","console","log","onPageChanged","page","onError","error","onPressLink","uri"],"sourceRoot":"../../../../src","sources":["screens/eSign/PreviewContract.tsx"],"mappings":"4KACA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBACA,IAAAE,MAAA,CAAAF,OAAA,2BACA,IAAAG,MAAA,CAAAH,OAAA,gBACA,IAAAI,MAAA,CAAAJ,OAAA,uBACA,IAAAK,aAAA,CAAAL,OAAA,oBACA,IAAAM,QAAA,CAAAP,sBAAA,CAAAC,OAAA,8BACA,IAAAO,OAAA,CAAAP,OAAA,6BACA,IAAAQ,eAAA,CAAAT,sBAAA,CAAAC,OAAA,sBAAmC,IAAAS,YAAA,0EAEpB,QAAS,CAAAC,eAAeA,CAACC,KAAU,CAAE,KAAAC,YAAA,CAClD,GAAM,CAAAC,UAAU,CAAG,GAAAC,qBAAa,EAAC,CAAC,CAClC,GAAM,CAAAC,MAAM,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SAAAA,cAACC,IAAI,CAAEL,aAAa,CAAK,CACtCE,OAAO,CAACC,GAAG,kBAAkBE,IAAM,CAAC,CACtC,CAAE,CACFC,OAAO,CAAE,SAAAA,QAACC,KAAK,CAAK,CAClBL,OAAO,CAACC,GAAG,CAACI,KAAK,CAAC,CACpB,CAAE,CACFC,WAAW,CAAE,SAAAA,YAACC,GAAG,CAAK,CACpBP,OAAO,CAACC,GAAG,kBAAkBM,GAAK,CAAC,CACrC,CAAE,CACFvC,KAAK,CAAE,CACLC,IAAI,CAAE,CACR,CAAE,CAAAE,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAAjB,YAAA,CAAAkB,UAAA,IAAAC,YAAA,KACH,CACG,CACM,CACV,CAAC,CAEX"}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _initializerDefineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/initializerDefineProperty"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));var _applyDecoratedDescriptor2=_interopRequireDefault(require("@babel/runtime/helpers/applyDecoratedDescriptor"));var _initializerWarningHelper2=_interopRequireDefault(require("@babel/runtime/helpers/initializerWarningHelper"));var _mobx=require("mobx");var _api=require("../../services/api");var _log=require("../../utils/log");var _reactNative=require("react-native");var _class,_descriptor,_descriptor2,_descriptor3,_descriptor4,_descriptor5,_descriptor6,_descriptor7,_descriptor8;var Store=(_class=function(){function Store(){(0,_classCallCheck2.default)(this,Store);(0,_initializerDefineProperty2.default)(this,"isLoading",_descriptor,this);(0,_initializerDefineProperty2.default)(this,"isError",_descriptor2,this);(0,_initializerDefineProperty2.default)(this,"signLoading",_descriptor3,this);(0,_initializerDefineProperty2.default)(this,"reSendOTPLoading",_descriptor4,this);(0,_initializerDefineProperty2.default)(this,"countDown",_descriptor5,this);(0,_initializerDefineProperty2.default)(this,"currentTime",_descriptor6,this);(0,_initializerDefineProperty2.default)(this,"linkPreview",_descriptor7,this);(0,_initializerDefineProperty2.default)(this,"linkContract",_descriptor8,this);}(0,_createClass2.default)(Store,[{key:"signContractForBorrower",value:function signContractForBorrower(body,onSuccess,onFailure){var response;return _regenerator.default.async(function signContractForBorrower$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.next=2;return _regenerator.default.awrap(_api.Api.getInstance().signContractForBorrower(body));case 2:response=_context.sent;(0,_log.myLog)(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.isError=false;this.linkPreview=response.data.data;if(onSuccess){onSuccess(response.data.data);}}else{if(onFailure){onFailure();}_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage,[{text:'Đồng ý'}]);}}else{this.isLoading=false;this.isError=false;if(onFailure){onFailure();}_reactNative.Alert.alert('Thông báo','Lỗi đã xảy ra. Vui lòng thực hiện lại',[{text:'Đồng ý'}]);}case 5:case"end":return _context.stop();}},null,this,null,Promise);}},{key:"confirmSignContractForBorrower",value:function confirmSignContractForBorrower(body,onSuccess,onFailure){var response;return _regenerator.default.async(function confirmSignContractForBorrower$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.prev=0;this.isLoading=true;_context2.next=4;return _regenerator.default.awrap(_api.Api.getInstance().confirmSignContractForBorrower(body));case 4:response=_context2.sent;this.isLoading=false;(0,_log.myLog)(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.linkContract=response.data.data;if(onSuccess){onSuccess(response.data.data);}}else{if(onFailure){onFailure();}_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage,[{text:'Đồng ý'}]);}}else{if(onFailure){onFailure();}_reactNative.Alert.alert('Thông báo','Lỗi đã xảy ra. Vui lòng thực hiện lại',[{text:'Đồng ý'}]);}_context2.next=14;break;case 10:_context2.prev=10;_context2.t0=_context2["catch"](0);if(onFailure){onFailure();}_reactNative.Alert.alert('Thông báo','Lỗi đã xảy ra. Vui lòng thực hiện lại',[{text:'Đồng ý'}]);case 14:case"end":return _context2.stop();}},null,this,[[0,10]],Promise);}},{key:"reSendOTP",value:function reSendOTP(body,onSuccess,onFailure){var response;return _regenerator.default.async(function reSendOTP$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.prev=0;this.reSendOTPLoading=true;_context3.next=4;return _regenerator.default.awrap(_api.Api.getInstance().eSignSendOTP(body));case 4:response=_context3.sent;this.reSendOTPLoading=false;(0,_log.myLog)(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){if(onSuccess){onSuccess(response.data.data);}}else{if(onFailure){onFailure();}_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage,[{text:'Đồng ý'}]);}}else{if(onFailure){onFailure();}_reactNative.Alert.alert('Thông báo','Lỗi đã xảy ra. Vui lòng thực hiện lại',[{text:'Đồng ý'}]);}_context3.next=14;break;case 10:_context3.prev=10;_context3.t0=_context3["catch"](0);if(onFailure){onFailure();}_reactNative.Alert.alert('Thông báo','Lỗi đã xảy ra. Vui lòng thực hiện lại',[{text:'Đồng ý'}]);case 14:case"end":return _context3.stop();}},null,this,[[0,10]],Promise);}}]);return Store;}(),(_descriptor=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"isLoading",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return false;}}),_descriptor2=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"isError",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return false;}}),_descriptor3=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"signLoading",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return false;}}),_descriptor4=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"reSendOTPLoading",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return false;}}),_descriptor5=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"countDown",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:null}),_descriptor6=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"currentTime",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return 300;}}),_descriptor7=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"linkPreview",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return'';}}),_descriptor8=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"linkContract",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return'';}}),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"signContractForBorrower",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"signContractForBorrower"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"confirmSignContractForBorrower",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"confirmSignContractForBorrower"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"reSendOTP",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"reSendOTP"),_class.prototype)),_class);var eSignStore=new Store();var _default=exports.default=eSignStore;
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _initializerDefineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/initializerDefineProperty"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));var _applyDecoratedDescriptor2=_interopRequireDefault(require("@babel/runtime/helpers/applyDecoratedDescriptor"));var _initializerWarningHelper2=_interopRequireDefault(require("@babel/runtime/helpers/initializerWarningHelper"));var _mobx=require("mobx");var _api=require("../../services/api");var _log=require("../../utils/log");var _reactNative=require("react-native");var _class,_descriptor,_descriptor2,_descriptor3,_descriptor4,_descriptor5,_descriptor6,_descriptor7,_descriptor8;var Store=(_class=function(){function Store(){(0,_classCallCheck2.default)(this,Store);(0,_initializerDefineProperty2.default)(this,"isLoading",_descriptor,this);(0,_initializerDefineProperty2.default)(this,"isError",_descriptor2,this);(0,_initializerDefineProperty2.default)(this,"signLoading",_descriptor3,this);(0,_initializerDefineProperty2.default)(this,"reSendOTPLoading",_descriptor4,this);(0,_initializerDefineProperty2.default)(this,"countDown",_descriptor5,this);(0,_initializerDefineProperty2.default)(this,"currentTime",_descriptor6,this);(0,_initializerDefineProperty2.default)(this,"linkPreview",_descriptor7,this);(0,_initializerDefineProperty2.default)(this,"linkContract",_descriptor8,this);}(0,_createClass2.default)(Store,[{key:"signContractForBorrower",value:function signContractForBorrower(body,onSuccess,onFailure){var response;return _regenerator.default.async(function signContractForBorrower$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.next=2;return _regenerator.default.awrap(_api.Api.getInstance().signContractForBorrower(body));case 2:response=_context.sent;(0,_log.myLog)(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.isError=false;this.linkPreview=response.data.data;if(onSuccess){onSuccess(response.data.data);}}else{if(onFailure){onFailure();}_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage,[{text:'Đồng ý'}]);}}else{this.isLoading=false;this.isError=false;if(onFailure){onFailure();}_reactNative.Alert.alert('Thông báo','Lỗi đã xảy ra. Vui lòng thực hiện lại',[{text:'Đồng ý'}]);}case 5:case"end":return _context.stop();}},null,this,null,Promise);}},{key:"confirmSignContractForBorrower",value:function confirmSignContractForBorrower(body,onSuccess,onFailure){var response;return _regenerator.default.async(function confirmSignContractForBorrower$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.prev=0;this.isLoading=true;_context2.next=4;return _regenerator.default.awrap(_api.Api.getInstance().confirmSignContractForBorrower(body));case 4:response=_context2.sent;this.isLoading=false;(0,_log.myLog)(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.linkContract=response.data.data;if(onSuccess){onSuccess(response.data.data);}}else{if(onFailure){onFailure();}_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage,[{text:'Đồng ý'}]);}}else{if(onFailure){onFailure();}_reactNative.Alert.alert('Thông báo','Lỗi đã xảy ra. Vui lòng thực hiện lại',[{text:'Đồng ý'}]);}_context2.next=14;break;case 10:_context2.prev=10;_context2.t0=_context2["catch"](0);if(onFailure){onFailure();}_reactNative.Alert.alert('Thông báo','Lỗi đã xảy ra. Vui lòng thực hiện lại',[{text:'Đồng ý'}]);case 14:case"end":return _context2.stop();}},null,this,[[0,10]],Promise);}},{key:"reSendOTP",value:function reSendOTP(body,onSuccess,onFailure){var response;return _regenerator.default.async(function reSendOTP$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.prev=0;this.reSendOTPLoading=true;_context3.next=4;return _regenerator.default.awrap(_api.Api.getInstance().eSignSendOTP(body));case 4:response=_context3.sent;this.reSendOTPLoading=false;(0,_log.myLog)(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){if(onSuccess){onSuccess(response.data.data);}}else{if(onFailure){onFailure();}_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage,[{text:'Đồng ý'}]);}}else{if(onFailure){onFailure();}_reactNative.Alert.alert('Thông báo','Lỗi đã xảy ra. Vui lòng thực hiện lại',[{text:'Đồng ý'}]);}_context3.next=14;break;case 10:_context3.prev=10;_context3.t0=_context3["catch"](0);if(onFailure){onFailure();}_reactNative.Alert.alert('Thông báo','Lỗi đã xảy ra. Vui lòng thực hiện lại',[{text:'Đồng ý'}]);case 14:case"end":return _context3.stop();}},null,this,[[0,10]],Promise);}},{key:"getPreviewContract",value:function getPreviewContract(id,onSuccess,onError){var response;return _regenerator.default.async(function getPreviewContract$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.prev=0;_context4.next=3;return _regenerator.default.awrap(_api.Api.getInstance().previewContract(id));case 3:response=_context4.sent;if(response.kind==='ok'){if(response.data.meta.errorCode===200){if(onSuccess)onSuccess(response.data.data);}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);if(onError)onError();}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');if(onError)onError();}_context4.next=11;break;case 7:_context4.prev=7;_context4.t0=_context4["catch"](0);_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau');if(onError)onError();case 11:case"end":return _context4.stop();}},null,null,[[0,7]],Promise);}}]);return Store;}(),(_descriptor=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"isLoading",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return false;}}),_descriptor2=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"isError",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return false;}}),_descriptor3=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"signLoading",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return false;}}),_descriptor4=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"reSendOTPLoading",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return false;}}),_descriptor5=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"countDown",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:null}),_descriptor6=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"currentTime",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return 10;}}),_descriptor7=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"linkPreview",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return'';}}),_descriptor8=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"linkContract",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return'';}}),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"signContractForBorrower",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"signContractForBorrower"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"confirmSignContractForBorrower",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"confirmSignContractForBorrower"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"reSendOTP",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"reSendOTP"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getPreviewContract",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getPreviewContract"),_class.prototype)),_class);var eSignStore=new Store();var _default=exports.default=eSignStore;
2
2
  //# sourceMappingURL=Store.js.map
@@ -11,7 +11,7 @@ class Store {
11
11
  @observable reSendOTPLoading = false;
12
12
 
13
13
  @observable countDown;
14
- @observable currentTime = 300;
14
+ @observable currentTime = 10;
15
15
 
16
16
  @observable linkPreview = '';
17
17
  @observable linkContract = '';
@@ -125,6 +125,27 @@ class Store {
125
125
  ]);
126
126
  }
127
127
  }
128
+
129
+ @action
130
+ async getPreviewContract(id, onSuccess, onError) {
131
+ try {
132
+ const response = await Api.getInstance().previewContract(id);
133
+ if (response.kind === 'ok') {
134
+ if (response.data.meta.errorCode === 200) {
135
+ if (onSuccess) onSuccess(response.data.data);
136
+ } else {
137
+ Alert.alert('Thông báo', response.data.meta.errorMessage);
138
+ if (onError) onError();
139
+ }
140
+ } else {
141
+ Alert.alert('Thông báo', 'Có lỗi xảy ra. Vui lòng thử lại sau');
142
+ if (onError) onError();
143
+ }
144
+ } catch (error) {
145
+ Alert.alert('Thông báo', 'Có lỗi xảy ra. Vui lòng thử lại sau');
146
+ if (onError) onError();
147
+ }
148
+ }
128
149
  }
129
150
  const eSignStore = new Store();
130
151
  export default eSignStore;