(this.webpackJsonpst_blogpost_component=this.webpackJsonpst_blogpost_component||[]).push([[0],{67:function(e,t,n){"use strict";n.r(t);var i=n(4),r=n.n(i),s=n(53),o=n.n(s),a=n(0),c=n(1),h=n(23),l=n(2),d=n(3),u=n(47),p=n(92),b=n(95),j=n(96),g=n(97),f=n(94),O=n(98),w=n(91),m=n(9),W=function(){var e=window;return{innerWidth:e.innerWidth,innerHeight:e.innerHeight}},v=function(e){Object(l.a)(n,e);var t=Object(d.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e)).state={url:null,height:0},i.render=function(){var e=i.props.args.title,t=i.props.args.subtitle,n=i.props.args.description,r=i.props.args.url,s=i.props.args.github,o=i.props.args.img_path,a=i.props.args.post,c=i.props.args.date,h={minWidth:"100",maxWidth:"100",transitionDuration:"0.3s",height:i.state.height};return Object(m.jsx)("div",{style:{padding:"0.5rem"},children:Object(m.jsxs)(p.a,{variant:"outlined",style:h,children:[e&&Object(m.jsx)(b.a,{title:e,subheader:c}),o&&Object(m.jsx)(j.a,{component:"img",height:"200",src:o}),Object(m.jsxs)(g.a,{children:[t&&Object(m.jsx)(b.a,{subheader:t}),n&&Object(m.jsx)(f.a,{variant:"body2",children:n})]}),Object(m.jsxs)(O.a,{disableSpacing:!0,children:[s&&Object(m.jsx)(w.a,{size:"small",onClick:function(){return window.open(s,"_blank")},children:"github"}),r&&Object(m.jsx)(w.a,{size:"small",onClick:function(){return window.open(r,"_blank")},children:"link"}),a&&Object(m.jsx)(w.a,{size:"small",onClick:function(){return i.setState((function(){return{url:a}}),(function(){return u.a.setComponentValue(i.state.url)}))},children:"Open Article"})]})]})})},i._handleWindowResize=i._handleWindowResize.bind(Object(h.a)(i)),i}return Object(c.a)(n,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this._handleWindowResize),this._handleWindowResize()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this._handleWindowResize),this._handleWindowResize()}},{key:"_handleWindowResize",value:function(){W().innerWidth<200?this.setState((function(){return{height:Math.floor(700)}})):W().innerWidth<300?this.setState((function(){return{height:Math.floor(600)}})):W().innerWidth<440?this.setState((function(){return{height:Math.floor(500)}})):this.setState((function(){return{height:Math.floor(450)}})),console.log(W()),console.log(this.state.height)}}]),n}(u.b),x=Object(u.c)(v);o.a.render(Object(m.jsx)(r.a.StrictMode,{children:Object(m.jsx)(x,{})}),document.getElementById("root"))}},[[67,1,2]]]);
//# sourceMappingURL=main.bbd810e7.chunk.js.map