(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{553:function(e,t,r){"use strict";r.r(t);var a=r(19),n=r(6),c=r(7),s=r(9),i=r(8),o=r(10),h=r(0),u=r(16),p=r(14),l=r(1),b=r(50),j=r(45),d=r(69),O=r(42),v=r(54),f=r(292),m=function(e){function t(){var e,r;Object(n.a)(this,t);for(var c=arguments.length,o=new Array(c),u=0;u<c;u++)o[u]=arguments[u];return(r=Object(s.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(o)))).state={search:""},r.renderPosts=function(e){return e.map((function(e){return Object(h.createElement)(f.a,Object(a.a)({key:"retriever-archive-".concat(e.id)},e))}))},r.renderSearch=function(e){r.setState({search:e})},r}return Object(o.a)(t,e),Object(c.a)(t,[{key:"noPostsFound",value:function(){var e=this.state.search,t=e?Object(l.sprintf)(Object(l.__)('No articles found when searching for "%s"'),e.trim()):Object(l.__)("No articles found.");return Object(h.createElement)(O.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(h.createElement)("div",null,Object(h.createElement)(j.a,{searchButton:Object(l.__)("Search Retriever"),searchPlaceholder:Object(l.__)("Search Retriever"),renderSearch:this.renderSearch,heading:Object(l.__)("Retriever")}),Object(h.createElement)(v.a,{className:"grid",path:"/wp-json/wp/v2/nisje-retriever",query:t,render:this.renderPosts,loader:Object(h.createElement)(d.a,null),noPosts:this.noPostsFound(),paginationPath:"/retriever",dispatch:this.props.receiveArticles,meta:this.responseMeta}))}}]),t}(h.Component);t.default=Object(p.b)((function(e,t){return{page:t.match.params.page}}),(function(e){return Object(u.b)({receiveArticles:b.c},e)}))(m)}}]);