var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Contract=void 0;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 _MText=require("../../components/MText");var _theme=require("../../theme");var _navigation=require("../../navigation");var _reactNativePdf=_interopRequireDefault(require("react-native-pdf"));var _jsxFileName="/Users/tima/Tima/react-native-timacare/src/screens/contract/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 Contract=exports.Contract=(0,_mobxReactLite.observer)(function Contract(props){var _props$route$params;var navigation=(0,_native.useNavigation)();var _useState=(0,_react.useState)(false),_useState2=(0,_slicedToArray2.default)(_useState,2),visible=_useState2[0],setIsVisible=_useState2[1];var complete=function complete(){navigation.dispatch(_native.CommonActions.reset({index:1,routes:[{name:_navigation.ScreenNames.Main}]}));};return _react.default.createElement(_reactNative.View,{style:{flex:1,backgroundColor:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:44,columnNumber:5}},_react.default.createElement(_reactNative.SafeAreaView,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:45,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:46,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.row,_CommonStyles.commonStyles.alignCenter,{paddingHorizontal:16,height:55}],__self:this,__source:{fileName:_jsxFileName,lineNumber:47,columnNumber:11}},_react.default.createElement(_MButton.default,{onPress:function onPress(){},style:{width:30,height:55,justifyContent:'center',alignItems:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:54,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:68,columnNumber:13}},'Hợp đồng đã ký')),_react.default.createElement(_reactNative.View,{style:{backgroundColor:_theme.color.border},__self:this,__source:{fileName:_jsxFileName,lineNumber:82,columnNumber:11}}),_react.default.createElement(_reactNativePdf.default,{source:{uri:(_props$route$params=props.route.params)==null?void 0:_props$route$params.uri,cache:true},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 presse: "+uri);},style:_CommonStyles.commonStyles.fill,__self:this,__source:{fileName:_jsxFileName,lineNumber:83,columnNumber:11}})),_react.default.createElement(_MButton.default,{onPress:complete,style:[_CommonStyles.commonStyles.alignCenter,_CommonStyles.commonStyles.justifyCenter,{marginHorizontal:16,marginVertical:10,backgroundColor:_theme.color.primary,height:50,borderRadius:4}],__self:this,__source:{fileName:_jsxFileName,lineNumber:100,columnNumber:9}},_react.default.createElement(_MText.MText,{style:[_CommonStyles.commonStyles.textNormalBold,{color:'white'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:114,columnNumber:11}},"\u0110\xF3ng"))));});
//# sourceMappingURL=index.js.map