(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{628:function(e,t,r){"use strict";r.r(t);var n=r(19),c=r(11),a=r(12),s=r(14),i=r(13),o=r(5),u=r(0),l=r(23),f=r(17),p=r(1),h=r(46),b=r(70),j=r(92),v=r(53),d=r(71),O=r(421);function m(e){var t=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(e){return!1}}();return function(){var r,n=Object(o.a)(e);if(t){var c=Object(o.a)(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return Object(i.a)(this,r)}}var y=function(e){Object(s.a)(r,e);var t=m(r);function r(){var e;Object(c.a)(this,r);for(var a=arguments.length,s=new Array(a),i=0;i<a;i++)s[i]=arguments[i];return(e=t.call.apply(t,[this].concat(s))).state={search:""},e.renderPosts=function(e){return e.map((function(e){return Object(u.createElement)(O.a,Object(n.a)({key:"retriever-archive-".concat(e.id)},e))}))},e.renderSearch=function(t){e.setState({search:t})},e}return Object(a.a)(r,[{key:"noPostsFound",value:function(){var e=this.state.search,t=e?Object(p.sprintf)(Object(p.__)('No articles found when searching for "%s"'),e.trim()):Object(p.__)("No articles found.");return Object(u.createElement)(v.a,{title:t})}},{key:"render",value:function(){var e=this.state.search,t={per_page:18,context:"view"},r=this.props.page;return r&&(t.page=r),e&&(t.search=e),Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.Header,{title:Object(p.__)("Retriever"),onSearch:this.renderSearch}),Object(u.createElement)(d.a,{className:"grid",dispatch:this.props.receiveArticles,loader:Object(u.createElement)(j.a,null),meta:this.responseMeta,noPosts:this.noPostsFound(),paginationPath:"/retriever",path:"/wp-json/wp/v2/nisje-retriever",query:t,render:this.renderPosts}))}}]),r}(u.Component);t.default=Object(f.b)((function(e,t){return{page:t.match.params.page}}),(function(e){return Object(l.b)({receiveArticles:b.c},e)}))(y)}}]);