text: (window.webpackJsonp=window.webpackJsonp||[]).push([[3],{493:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(502);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=n,e&&e.__esModule?e:{default:e}).default;var e}})},502:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(78)),u=c(r(145)),o=c(r(146)),a=c(r(147)),i=c(r(148)),d=c(r(149)),f=r(3),l=(c(f),r(503));function c(e){return e&&e.__esModule?e:{default:e}}var s=(0,n.default)("div",{className:"container-fluid"},void 0,(0,n.default)("div",{className:"row"},void 0,(0,n.default)(f.Fragment,{},void 0,(0,n.default)(l.ErrorBoundary,{},void 0,"HOME")))),v=function(e){function t(){return(0,o.default)(this,t),(0,i.default)(this,(t.__proto__||(0,u.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,a.default)(t,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return s}}]),t}(f.Component);t.default=v},503:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(504);Object.defineProperty(t,"ErrorBoundary",{enumerable:!0,get:function(){return(e=n,e&&e.__esModule?e:{default:e}).default;var e}});var u=r(505);Object.defineProperty(t,"handleRequest",{enumerable:!0,get:function(){return u.handleRequest}});var o=r(525);Object.defineProperty(t,"uuid",{enumerable:!0,get:function(){return o.uuid}}),Object.defineProperty(t,"arrDiff",{enumerable:!0,get:function(){return o.arrDiff}})},504:function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(78)),u=l(r(145)),o=l(r(146)),a=l(r(147)),i=l(r(148)),d=l(r(149)),f=r(3);l(f);function l(e){return e&&e.__esModule?e:{default:e}}var c=(0,n.default)("div",{style:{padding:".75rem 1.25rem",marginBottom:"1rem",border:"1px solid transparent",borderRadius:".25rem",color:"#721c24",backgroundColor:"#f8d7da",borderColor:"#f5c6cb"}},void 0,"Something is going wrong!! This error is caught by ErrorBoundary feature in React 16 \\o/"),s=function(t){function r(e){(0,o.default)(this,r);var t=(0,i.default)(this,(r.__proto__||(0,u.default)(r)).call(this,e));return t.state={hasError:!1},t}return(0,d.default)(r,t),(0,a.default)(r,[{key:"componentDidCatch",value:function(t,r){e.log(t,r),this.setState({hasError:!0})}},{key:"render",value:function(){var e=this.state.hasError,t=this.props.children;return e?c:t}}]),r}(f.PureComponent);t.default=s}).call(this,r(37))},505:function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.handleRequest=void 0;var n,u=r(506),o=(n=u)&&n.__esModule?n:{default:n};t.handleRequest=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u="https://api.budapestrivercruise.co.uk/v1/rester/"+t,a=[];return o.default.get(u,r).then(function(e){a.push(e.data),n&&n(e.data)}).catch(function(t){a=t,e.error("ajaxerror",t)}).then(function(){}),a}}).call(this,r(37))},525:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrDiff=t.uuid=void 0;var n,u=r(209),o=(n=u)&&n.__esModule?n:{default:n};t.uuid=function(e){var t=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return(e||"")+"_"+(t()+t())+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()},t.arrDiff=function(e,t){for(var r=[],n=[],u=0;u<e.length;u+=1)r[e[u]]=!0;for(var a=0;a<t.length;a+=1)r[t[a]]?delete r[t[a]]:r[t[a]]=!0;return(0,o.default)(r).forEach(function(e){return n.push(e)}),n}}}]);
  //# sourceMappingURL=3-script.js.map