text: "use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),_react=require("react"),_react2=_interopRequireDefault(_react),_http=require("./utils/http"),_http2=_interopRequireDefault(_http),ErrorBoundary=function(e){function t(){_classCallCheck(this,t);var e=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.state={IE:!1},e}return _inherits(t,e),_createClass(t,[{key:"componentDidCatch",value:function(e,t){!!window.MSInputMethodContext&&document.documentMode;_http2.default.post("/data/log_error",{stacktrace:e.toString()+"\n"+e.stack,url:window.location.href,type:"client"})}},{key:"render",value:function(){return this.state.IE?_react2.default.createElement("h3",null,_react2.default.createElement("center",null,_react2.default.createElement("a",{href:"http://outdatedbrowser.com"},"Unfortunately your browser is too old to work with our website.",_react2.default.createElement("br",null),"We recommend you install one of the latest browsers by clicking here."),".")):this.props.children}}]),t}(_react2.default.Component);exports.default=ErrorBoundary;