(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{635:function(e,t,r){"use strict";r.r(t);var n=r(21),c=r(9),a=r(10),i=r(12),s=r(11),o=r(6),u=r(0),h=r(23),l=r(18),f=r(1),p=r(70),b=r(52),v=r(91),d=r(51),j=r(71),O=r(431);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(s.a)(this,r)}}var y=function(e){Object(i.a)(r,e);var t=m(r);function r(){var e;Object(c.a)(this,r);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).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(f.sprintf)(Object(f.__)('No articles found when searching for "%s"'),e.trim()):Object(f.__)("No articles found.");return Object(u.createElement)(d.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)("div",null,Object(u.createElement)(b.a,{heading:Object(f.__)("Retriever"),renderSearch:this.renderSearch,searchButton:Object(f.__)("Search Retriever"),searchPlaceholder:Object(f.__)("Search Retriever")}),Object(u.createElement)(j.a,{className:"grid",dispatch:this.props.receiveArticles,loader:Object(u.createElement)(v.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(l.b)((function(e,t){return{page:t.match.params.page}}),(function(e){return Object(h.b)({receiveArticles:p.c},e)}))(y)}}]);