var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.CIMBSign=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _native=require("@react-navigation/native");var _mobxReactLite=require("mobx-react-lite");var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _reactNativeWebview=_interopRequireDefault(require("react-native-webview"));var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _jsxFileName="/Users/tima/Tima/react-native-timacare/src/screens/cimb-sign/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 CIMBSign=exports.CIMBSign=(0,_mobxReactLite.observer)(function CIMBSign(props){var _props$route$params;var navigation=(0,_native.useNavigation)();var _useState=(0,_react.useState)(null),_useState2=(0,_slicedToArray2.default)(_useState,2),stateWebView=_useState2[0],setStateWebView=_useState2[1];return _react.default.createElement(_reactNative.View,{style:{flex:1,backgroundColor:'#FFFFFF'},__self:this,__source:{fileName:_jsxFileName,lineNumber:18,columnNumber:5}},_react.default.createElement(_MHeader.default,{title:"K\xFD h\u1EE3p \u0111\u1ED3ng",onBack:function onBack(){if(stateWebView&&stateWebView!=null&&stateWebView.url.includes('contract-status-approval')){navigation.goBack();}else{_reactNative.Alert.alert('Cảnh báo','Bạn có chắc chắn muốn rời khỏi màn hình ký hợp đồng?',[{text:'Đồng ý',onPress:function onPress(){return navigation.goBack();}},{text:'Huỷ'}]);}},style:{width:40,height:40,position:'absolute',left:8,alignItems:'center',justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:19,columnNumber:7}}),_react.default.createElement(_reactNative.SafeAreaView,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:52,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{flex:1,marginBottom:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:53,columnNumber:9}},_react.default.createElement(_reactNativeWebview.default,{source:{uri:props==null?void 0:(_props$route$params=props.route.params)==null?void 0:_props$route$params.url},style:{flex:1},onNavigationStateChange:function onNavigationStateChange(value){return setStateWebView(value);},__self:this,__source:{fileName:_jsxFileName,lineNumber:54,columnNumber:11}}))));});
//# sourceMappingURL=index.js.map