(window.webpackJsonp=window.webpackJsonp||[]).push([[43],{669:function(e,t,r){"use strict";r.r(t);var a=r(15),n=r(42),c=r(43),i=r(44),s=r(45),o=r(37),l=r(0),u=r(63),m=r(132),d=r(2),b=r(3),f=r(20),h=r(289),p=r(11),j=function(){return Object(l.createElement)("div",{className:"grid-item"},Object(l.createElement)("div",{className:"grid-item-inner grid-item-padding grid-item-loader"},Object(l.createElement)("div",{className:"box-loader animated-background-light"}),Object(l.createElement)("div",{className:"box-loader animated-background-light"})),Object(l.createElement)("span",{className:"grid-item-shadow"}))},O=function(e){var t=e.size,r=void 0===t?6:t,a=e.className;return Object(l.createElement)("div",{className:Object(p.classnames)("grid",a)},new Array(r).fill(0).map((function(e,t){return Object(l.createElement)(j,{key:"loader-box-".concat(t)})})))},v=r(206),g=r(290),E=r(22),y=r.n(E),N=r(4),w=r(638),k=r.n(w),R=r(13),_=r(64),A=r(28),P=r.n(A),x=r(205),L=Object(_.withViewportMatch)({isLarge:"small"})((function(e){var t=e.author,r=e.children,n=e.showAuthorLink,c=void 0===n||n,i=e.showAvatar,s=void 0===i||i,o=e.isLarge;if(!t)return null;var u=Object(p.classnames)("author",{"no-avatar":!s}),m=t.id||t.ID,d=t.name||t.display_name,b="span",f={};return c&&(b=R.Link,f.to="/members/".concat(m)),Object(l.createElement)("div",{className:u},Object(l.createElement)("div",null,Object(l.createElement)(b,Object(a.a)({className:"author-link"},f),s&&Object(l.createElement)(P.a,{id:m,size:o?40:30}),Object(l.createElement)(x.a,{className:"author-name"},d)),r&&Object(l.createElement)("span",{className:"author-extra-info"},r)))}));var B=function(e){Object(i.a)(u,e);var t,r,a=(t=u,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,a=Object(o.a)(t);if(r){var n=Object(o.a)(this).constructor;e=Reflect.construct(a,arguments,n)}else e=a.apply(this,arguments);return Object(s.a)(this,e)});function u(){return Object(n.a)(this,u),a.apply(this,arguments)}return Object(c.a)(u,[{key:"render",value:function(){var e=this.props,t=e.title,r=e.content,a=e.retriever,n=e.date,c=e.className,i=e.author;return Object(l.createElement)("div",{className:c},Object(l.createElement)("div",{className:"grid-item-inner"},Object(l.createElement)("div",{className:"grid-item-padding"},Object(l.createElement)(L,{author:i,showAuthorLink:!1,showAvatar:!1},y()(n).format("LL"))),Object(l.createElement)("div",{className:"grid-item-padding"},Object(l.createElement)(x.a,{className:"listing-title",tag:"h2"},t.rendered),Object(l.createElement)("span",null,Object(l.createElement)(k.a,{convertNewline:!0},r.rendered))),Object(l.createElement)("a",{className:"grid-item-link",href:Object(p.decodeEntities)(a.link),rel:"noopener noreferrer",target:"_blank"},Object(l.createElement)(N.VisuallyHidden,{as:"span"},Object(b.__)("Read article")))))}}]),u}(d.Component);B.defaultProps={className:"grid-item retriever",showAuthor:!1,author:{id:"retriever",name:"Retriever"}};var S=B;var F=function(e){Object(i.a)(m,e);var t,r,u=(t=m,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,a=Object(o.a)(t);if(r){var n=Object(o.a)(this).constructor;e=Reflect.construct(a,arguments,n)}else e=a.apply(this,arguments);return Object(s.a)(this,e)});function m(){var e;Object(n.a)(this,m);for(var t=arguments.length,r=new Array(t),c=0;c<t;c++)r[c]=arguments[c];return(e=u.call.apply(u,[this].concat(r))).state={search:""},e.renderPosts=function(e){return e.map((function(e){return Object(l.createElement)(S,Object(a.a)({key:"retriever-archive-".concat(e.id)},e))}))},e.renderSearch=function(t){e.setState({search:t})},e}return Object(c.a)(m,[{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(l.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(l.createElement)(l.Fragment,null,Object(l.createElement)(f.Header,{title:Object(b.__)("Retriever"),onSearch:this.renderSearch}),Object(l.createElement)(g.a,{className:"grid",dispatch:this.props.receiveArticles,loader:Object(l.createElement)(O,null),meta:this.responseMeta,noPosts:this.noPostsFound(),paginationPath:"/retriever",path:"/wp-json/wp/v2/nisje-retriever",query:t,render:this.renderPosts}))}}]),m}(d.Component);t.default=Object(m.b)((function(e,t){return{page:t.match.params.page}}),(function(e){return Object(u.b)({receiveArticles:h.c},e)}))(F)}}]);