var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.DigitalLending=void 0;var _react=_interopRequireWildcard(require("react"));var _mobxReactLite=require("mobx-react-lite");var _reactNative=require("react-native");var _native=require("@react-navigation/native");var _CommonStyles=require("../CommonStyles");var _store=_interopRequireDefault(require("./store"));var _Step=require("./Step1");var _Step2=require("./Step2");var _Step3=require("./Step3");var _Step4=require("./Step4");var _Step5=require("./Step5");var _Step6=require("./Step6");var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _jsxFileName="/Users/tima/Tima/react-native-timacare/src/screens/digital-lending/index.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var DigitalLending=exports.DigitalLending=(0,_mobxReactLite.observer)(function DigitalLending(props){var _props$route,_this=this;var navigation=(0,_native.useNavigation)();var loan=props==null?void 0:(_props$route=props.route)==null?void 0:_props$route.params;(0,_react.useEffect)(function(){_store.default.getDetailLoan(loan==null?void 0:loan.id);_store.default.getProvinces();_store.default.getJob();_store.default.getBrandProduct();_store.default.getBank();},[]);var renderView=function renderView(step){switch(step){case 1:return _react.default.createElement(_Step.Step1,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:47,columnNumber:16}});case 2:return _react.default.createElement(_Step2.Step2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:49,columnNumber:16}});case 3:return _react.default.createElement(_Step3.Step3,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:51,columnNumber:16}});case 4:return _react.default.createElement(_Step4.Step4,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:53,columnNumber:16}});case 5:return _react.default.createElement(_Step5.Step5,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:55,columnNumber:16}});case 6:return _react.default.createElement(_Step6.Step6,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:57,columnNumber:16}});default:null;}};return _react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.fill,{zIndex:1,backgroundColor:'white'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:64,columnNumber:5}},_react.default.createElement(_MHeader.default,{title:"Th\xF4ng tin c\xE1 nh\xE2n",onBack:function onBack(){navigation.pop();_store.default.clear();_store.default.data={};},__self:this,__source:{fileName:_jsxFileName,lineNumber:65,columnNumber:7}}),_react.default.createElement(_reactNative.SafeAreaView,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:73,columnNumber:7}},_react.default.createElement(_mobxReactLite.Observer,{__self:this,__source:{fileName:_jsxFileName,lineNumber:78,columnNumber:9}},function(){return renderView(_store.default.step);})));});
//# sourceMappingURL=index.js.map