text: _N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[9],{RNiq:function(t,e,n){"use strict";n.r(e);var r=n("nKUr"),a=n("o0o1"),c=n.n(a),i=n("HaE+"),o=n("1OyB"),s=n("vuIU"),u=n("JX7q"),f=n("Ji7U"),h=n("md7G"),d=n("foSv"),l=n("q1tI"),p=n.n(l),v=n("X+Rt"),j=n("vDqi"),b=n.n(j);function O(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(d.a)(t);if(e){var a=Object(d.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(h.a)(this,n)}}var w={title:"Index title",description:"Index description"},g=function(t){Object(f.a)(n,t);var e=O(n);function n(t){var r;return Object(o.a)(this,n),(r=e.call(this,t)).state={loading:!0,dog:{}},r.fetchData=r.fetchData.bind(Object(u.a)(r)),r}return Object(s.a)(n,[{key:"componentDidMount",value:function(){var t=Object(i.a)(c.a.mark((function t(){return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.fetchData();case 2:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"fetchData",value:function(){var t=Object(i.a)(c.a.mark((function t(){var e,n;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.setState({loading:!0}),t.next=3,b.a.get("https://api.thedogapi.com/v1/images/search?limit=1");case 3:e=t.sent,n=e.data,this.setState({dog:n[0],loading:!1});case 6:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"render",value:function(){return Object(r.jsx)(v.a,{meta:w,children:Object(r.jsxs)("div",{children:[Object(r.jsx)("h1",{children:"This is the Front Page."}),Object(r.jsx)("h3",{children:"Random dog of the day:"}),Object(r.jsx)("img",{src:this.state.dog.url,alt:""})]})})}}]),n}(p.a.Component);e.default=g},vlRD:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n("RNiq")}])}},[["vlRD",0,2,1,3]]]);