(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{569:function(e,t,r){"use strict";r.r(t);var c=r(0),n=r(1),a=r(6),s=r(7),o=r(8),l=r(9),i=r(10),u=r(4),p=r(19),b=r(15),O=r(12),f=r(29),j=r(11),h=r(27);function m(e){var t=e.alertItems;return Object(c.createElement)("div",{className:"alerts-wrapper clearfix"},t.map((function(e){return Object(c.createElement)("article",{key:"alert-".concat(e.id),className:Object(j.classnames)("alerts",e.color)},Object(c.createElement)(h.a,{tag:"h2",className:"alert-title"},e.title),Object(c.createElement)("div",null,Object(c.createElement)(h.a,{className:"alert-excerpt"},e.excerpt)),Object(c.createElement)(O.Link,{to:"/alert/".concat(e.id,"/")},Object(n.__)("Read more")))})))}var d=Object(b.b)((function(e){var t=e.settings.activeComponents.alerts;return{alertItems:t?t.settings.alerts:[]}}))(m),y=r(124),v=r(48),w=r(69),_=r(47),g=r(65);function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,c)}return r}function k(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,c=Object(u.a)(e);if(t){var n=Object(u.a)(this).constructor;r=Reflect.construct(c,arguments,n)}else r=c.apply(this,arguments);return Object(i.a)(this,r)}}var P=function(e){Object(l.a)(r,e);var t=k(r);function r(){var e;Object(s.a)(this,r);for(var c=arguments.length,n=new Array(c),a=0;a<c;a++)n[a]=arguments[a];return(e=t.call.apply(t,[this].concat(n))).state={search:""},e.renderSearch=function(t){e.setState({search:t})},e}return Object(o.a)(r,[{key:"calculateKeyQuery",value:function(){var e=this.props.params.typeId,t=this.state.search,r={per_page:18,context:"view"},c="home-cards";if(t&&(r.search=t,c="".concat(c,"-").concat(Object(g.a)())),e){switch(e){case"dekode-news":r.post_types="dekode-news, nisje-news-group";break;case"dekode-events":r.post_types="dekode-events, nisje-event-group";break;default:r.type=e}c="".concat(c,"-").concat(e)}return{key:c,query:r}}},{key:"noPostsFound",value:function(){var e=this.state.search,t=e?Object(n.sprintf)(Object(n.__)('No items found when searching for "%s"'),e.trim()):Object(n.__)("No items found.");return Object(c.createElement)(_.a,{title:t})}},{key:"getFilterActions",value:function(){var e=this.props.params.typeId,t=this.props.types,r=[{title:Object(n.__)("All"),href:"/",isActive:!e}],c=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){Object(a.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({"dekode-news":Object(n.__)("News"),"dekode-events":Object(n.__)("Events")},t);return Object.keys(c).forEach((function(t){var n=e===t;r.push({title:c[t],href:"/type/".concat(t),isActive:n})})),r}},{key:"render",value:function(){var e=this.props,t=e.loadingContent,r=e.params.typeId;if(t)return Object(c.createElement)("div",null,Object(c.createElement)(w.a,null));var a=this.calculateKeyQuery(),s=a.key,o=a.query,l=!(r||!1);return Object(c.createElement)("div",null,Object(c.createElement)(v.a,{filterActions:this.getFilterActions(),filterButton:Object(n.__)("Filter"),heading:Object(n.__)("Wall"),renderSearch:this.renderSearch,searchButton:Object(n.__)("Search"),searchPlaceholder:Object(n.__)("Search Wall")}),Object(c.createElement)(d,null),Object(c.createElement)(y.a,{id:s,key:s,query:o,showFrontPageCards:l,simpleLoader:0,template:"front-page"}))}}]),r}(c.Component);var S=Object(p.d)(O.withRouter,Object(b.b)((function(e,t){return{params:t.match.params,types:Object(f.c)(e)}})))(P),N=r(303);t.default=function(){return Object(c.createElement)("div",null,Object(c.createElement)("div",{className:"home-share-mobile"},Object(c.createElement)(N.a,null,Object(n.__)("Share"))),Object(c.createElement)("div",{className:"wall"},Object(c.createElement)(S,null)))}}}]);