(window.webpackJsonp=window.webpackJsonp||[]).push([[34,12],{1015:function(t,e,n){var content=n(1035);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(7).default)("3305fa51",content,!0,{sourceMap:!1})},1034:function(t,e,n){"use strict";n(1015)},1035:function(t,e,n){var o=n(6)((function(i){return i[1]}));o.push([t.i,".news-portal{display:flex;flex-direction:column;gap:50px}.news-portal__container{display:flex;flex-direction:column;padding:0}.news-portal__articles-title{font-size:30px;font-weight:400}.see-more-btn__news{align-self:end;-webkit-text-decoration:none;text-decoration:none}.see-more-btn__news:hover{-webkit-text-decoration:underline;text-decoration:underline}.news-portal-item{display:flex;gap:20px;justify-content:space-between;width:100%}.news-portal-item__img-container{height:344px;transition:.2s linear;width:570px}.news-portal-item__img-container--image{height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.news-portal-item__content{max-height:308px;transition:.2s linear;width:570px}.news-portal-item__content--title{font-size:24px;font-weight:400}.news-portal-item__content--text{display:-webkit-box!important;font-size:16px;font-weight:400;line-height:20px;max-height:232px;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:8;-webkit-box-orient:vertical;margin-bottom:20px;white-space:normal}.news-portal-item__content--read-more-btn{font-size:16px;font-weight:700;-webkit-text-decoration:none;text-decoration:none;text-transform:none}.reversed{flex-direction:row-reverse}@media(max-width:1262px)and (min-width:960px){.news-portal-item__content,.news-portal-item__img-container{width:435px}.see-more-btn__news{padding-right:25px}}@media(max-width:959px){.news-portal-item{flex-wrap:wrap;justify-content:center}.news-portal__articles-title{text-align:center;width:100%}.news-portal__container{gap:20px}.see-more-btn__news{padding-right:15%}}@media(max-width:600px){.news-portal-item__img-container{max-width:100vw}.news-portal-item__content{margin-bottom:10px;max-width:100vw;padding:0 20px}.news-portal-item__content--read-more-btn{margin:0 20px}}",""]),o.locals={},t.exports=o},1043:function(t,e,n){"use strict";n.r(e);var o=n(403),r=n(982),l=n(570),c=n(990),d=(n(47),n(13),n(27),n(434),n(226),n(35),{props:{isLandingPage:Boolean,news:{type:Array,default:null}},data:function(){return{perPage:this.isLandingPage?2:6,page:1}},computed:{pages:function(){return this.news?Math.ceil(this.news.length/6):1},slicedNews:function(){var t=this.page*this.perPage-this.perPage,e=t+this.perPage;return this.news.slice(t,e)}},methods:{viewState:function(t){return!!(this.isLandingPage&&t<2)||!this.isLandingPage},nextPage:function(t){this.pageNumber=t},endOfArticles:function(){return this.slicedNews.length!==this.news.length},getImage:function(t){return null==t||null==t.imgUrl||void 0===t.imgUrl?null:(void 0===String.prototype.replaceAll&&(String.prototype.replaceAll=function(t,e){return this.replace(new RegExp(t,"g"),(function(){return e}))}),t.imgUrl.replaceAll('"',""))},formatBody:function(text){return void 0===String.prototype.replaceAll&&(String.prototype.replaceAll=function(t,e){return this.replace(new RegExp(t,"g"),(function(){return e}))}),text.replaceAll("\n","</br>")}}}),m=(n(1034),n(3)),component=Object(m.a)(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"news-portal pa-0"},[t._l(t.slicedNews,(function(n,i){return e(r.a,{key:i,staticClass:"news-portal__container",style:n==t.slicedNews[t.slicedNews.length-1]?"gap: 0px;":""},[t.viewState(i)?e("div",[e("div",{staticClass:"news-portal-item",class:{reversed:i%2}},[e("div",{staticClass:"news-portal-item__img-container"},[e(l.a,{staticClass:"news-portal-item__img-container--image",attrs:{src:t.getImage(n)}})],1),t._v(" "),e("div",[e("div",{staticClass:"news-portal-item__content"},[e("h2",{staticClass:"news-portal-item__content--title primary-font"},[t._v(t._s(n.title))]),t._v(" "),e("div",{staticClass:"mt-5 secondary-font"},[e("h3",[t._v(t._s(n.subTitle))]),t._v(" "),e("div",{staticClass:"news-portal-item__content--text",domProps:{innerHTML:t._s(t.formatBody(n.body))}})])]),t._v(" "),e(o.a,{staticClass:"news-portal-item__content--read-more-btn font-weight-bold secondary-font",staticStyle:{border:"2px solid"},attrs:{id:"article-button",rounded:"",outlined:"",color:"primary",width:"102"}},[e("NuxtLink",{staticStyle:{"text-decoration":"none"},attrs:{to:"/news/"+n.id}},[t._v(" Les mer ")])],1)],1)])]):t._e()])})),t._v(" "),!t.isLandingPage&&t.news.length>6?e(c.a,{staticClass:"pb-6",attrs:{id:"pagination",length:t.pages},on:{input:t.nextPage},model:{value:t.page,callback:function(e){t.page=e},expression:"page"}}):t._e()],2)}),[],!1,null,null,null);e.default=component.exports},1096:function(t,e,n){var content=n(1165);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(7).default)("7bfca97e",content,!0,{sourceMap:!1})},1164:function(t,e,n){"use strict";n(1096)},1165:function(t,e,n){var o=n(6)((function(i){return i[1]}));o.push([t.i,'.news-portal{font-family:"Niveau Grotesk",sans-serif!important;margin:0 auto;max-width:1170px;padding:0}.news-portal__title{font-weight:700;line-height:0px;margin-left:10px}@media(max-width:959px){.news-portal__title{padding-left:100px}}.news-portal .load-more-icon-btn-container{margin-top:20px;text-align:center}.news-portal .load-more-icon-btn-container .load-more-icon-btn:after{background-color:transparent!important}.news-portal .load-more-icon-btn-container .load-more-icon-btn{align-self:flex-end;animation-duration:4s;animation-iteration-count:infinite;height:100px;transform-origin:bottom;width:100px}.news-portal .load-more-icon-btn-container .load-more-icon-btn:hover{animation-name:bounce;animation-timing-function:ease}@keyframes bounce{0%{transform:translateY(0)}50%{transform:translateY(30px)}to{transform:translateY(0)}}',""]),o.locals={},t.exports=o},1221:function(t,e,n){"use strict";n.r(e);var o=n(982),r=(n(16),n(10),n(9),n(4),n(20),n(12),n(21),n(0)),l=n(2),c=(n(17),n(1043)),d=n(136);function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}var w={head:function(){var t,e;return{title:"Nyheter",titleTemplate:"%s |  ".concat(this.$store.getters["cmsConfigHomepage/getChainName"]),meta:[{hid:"og:title",name:"og:title",content:"Nyheter |  ".concat(this.$store.getters["cmsConfigHomepage/getChainName"])},{hid:"og:description",name:"og:description",content:null===(t=this.$store.getters["cmsConfigHomepage/getCmsConfigHomepage"])||void 0===t?void 0:t.homepageDescription},{hid:"og:url",name:"og:url",content:null===(e=this.$store.getters["cmsConfigHomepage/getCmsConfigHomepage"])||void 0===e?void 0:e.siteUrl},{hid:"og:image",name:"og:image",content:this.$store.getters["cmsConfigHomepage/getLogo"]}]}},layout:"HomepageLayout",components:{newsComponent:c.default},name:"news",data:function(){return{isLandingPage:!1}},computed:{news:function(){return this.$store.getters["news/getNews"]}},methods:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){Object(l.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(d.mapWaitingActions)("news",{fetchNewsBySiteIds:"loading initailize homepage fetchNewsBySiteIds"})),created:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.news.length||t.fetchNewsBySiteIds();case 1:case"end":return e.stop()}}),e)})))()}},f=w,h=(n(1164),n(3)),component=Object(h.a)(f,(function(){var t=this,e=t._self._c;return e(o.a,{staticClass:"news-portal",class:!t.isLandingPage&&t.news.length<=6?"pb-5":""},[e("news-component",{staticClass:"component mt-6",attrs:{isLandingPage:t.isLandingPage,news:t.news}})],1)}),[],!1,null,null,null);e.default=component.exports}}]);
//# sourceMappingURL=1367807.js.map