(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{559:function(e,t,r){"use strict";r.r(t);var n=r(19),c=r(7),a=r(8),i=r(9),s=r(10),o=r(4),u=r(0),h=r(16),l=r(13),f=r(1),p=r(51),b=r(45),v=r(70),d=r(44),j=r(55),O=r(301);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)}}]);