(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{552:function(e,t,r){"use strict";r.r(t);var a=r(20),n=r(6),c=r(7),s=r(9),i=r(8),o=r(10),h=r(0),u=r(17),p=r(15),l=r(13),b=r(1),j=r(49),d=r(45),O=r(69),v=r(43),f=r(54),m=r(293),w=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)(m.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(b.sprintf)(Object(b.__)('No articles found when searching for "%s"'),e.trim()):Object(b.__)("No articles found.");return Object(h.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(h.createElement)("div",null,Object(h.createElement)(d.a,{searchButton:Object(b.__)("Search Retriever"),searchPlaceholder:Object(b.__)("Search Retriever"),renderSearch:this.renderSearch,heading:Object(b.__)("Retriever")}),Object(h.createElement)(f.a,{className:"grid",path:"/wp-json/wp/v2/nisje-retriever",query:t,render:this.renderPosts,loader:Object(h.createElement)(O.a,null),noPosts:this.noPostsFound(),paginationPath:"/retriever",dispatch:this.props.receiveArticles,meta:this.responseMeta}))}}]),t}(l.Component);t.default=Object(p.b)((function(e,t){return{page:t.match.params.page}}),(function(e){return Object(u.b)({receiveArticles:j.c},e)}))(w)}}]);