(this.webpackJsonpbitdeals=this.webpackJsonpbitdeals||[]).push([[26,28],{856:function(t,n,e){"use strict";function a(t,n){var e=t.match.params||{},a=n.match.params||{};return e.param1!==a.param1||e.param2!==a.param2||e.param3!==a.param3}e.d(n,"a",(function(){return a}))},909:function(t,n,e){"use strict";e.r(n);var a=e(32),c=e(12),s=e(11),o=e(16),r=e(17),i=e(18),u=e.n(i),d=e(830),p=e(0),l=e.n(p),m=e(95),h=e(167),j=e(45),b=e(158),f=e(856),O=e(971),v=e(918),g=e(1),x=function(t){Object(o.a)(e,t);var n=Object(r.a)(e);function e(t){var s;return Object(c.a)(this,e),(s=n.call(this,t)).setParams=function(){var t=s.props.match.params.param1;s.props.documentId&&(t=s.props.documentId),s.setState({documentId:t},(function(){return s.load()}))},s.m=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"menu.",e=s.props.intl;return e.formatMessage({id:n+t})},s.load=Object(a.a)(u.a.mark((function t(){var n;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s.setState({pending:!0}),fetch("".concat(null===(n=window.appConfig)||void 0===n?void 0:n.publicContentPath,"/").concat(s.props.intl.locale,"/").concat(s.state.documentId,".md")).then((function(t){t.ok?t.text().then((function(t){t.includes("<!DOCTYPE html>")?s.setState({pending:!1,notFound:!0,content:null}):s.setState({pending:!1,notFound:!1,content:t})})):s.setState({pending:!1,notFound:!0,content:null})}));case 2:case"end":return t.stop()}}),t)}))),s.state={pending:!1,documentId:null,notFound:!1},s}return Object(s.a)(e,[{key:"componentDidMount",value:function(){this.setParams()}},{key:"componentDidUpdate",value:function(t){Object(f.a)(t,this.props)&&this.setParams(),t.intl.locale!==this.props.intl.locale&&this.load()}},{key:"render",value:function(){return Object(g.jsxs)(g.Fragment,{children:[this.state.notFound&&Object(g.jsx)(b.a,{code:404,status:404}),Object(g.jsx)(d.a,{spinning:this.state.pending,children:this.state.content&&Object(g.jsxs)(g.Fragment,{children:[Object(g.jsx)(m.a,{children:Object(g.jsx)("title",{children:this.m(this.state.documentId)})}),Object(g.jsx)("div",{className:"markdown",children:Object(g.jsx)(O.a,{remarkPlugins:[v.a],children:this.state.content})})]})})]})}}]),e}(l.a.Component);n.default=Object(j.h)(Object(h.c)(x))},964:function(t,n,e){"use strict";e.r(n);var a=e(12),c=e(11),s=e(16),o=e(17),r=e(0),i=e.n(r),u=e(167),d=e(909),p=e(1),l=function(t){Object(s.a)(e,t);var n=Object(o.a)(e);function e(){return Object(a.a)(this,e),n.apply(this,arguments)}return Object(c.a)(e,[{key:"render",value:function(){return Object(p.jsx)(p.Fragment,{children:Object(p.jsx)(d.default,{documentId:"index"})})}}]),e}(i.a.Component);n.default=Object(u.c)(l)}}]);