1(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{488:function(e,t,n){"use strict";n.r(t);var r=n(2),c=(n(20),n(56),n(25),n(11),n(24),n(481)),l=(n(243),{components:{ModuleImage:n(135).a},props:{title:{type:String,required:!0,default:function(){return""}},category:{type:String,required:!1,default:function(){return""}},link:{type:String,required:!1,default:function(){return""}},duration:{type:Number,required:!1,default:function(){return""}},image:{type:String,required:!1,default:function(){return"thumbnail_placeholder.png"}}},methods:{showCursor:function(){this.$store.commit("setIsCursorText",!0),this.$store.commit("setCursorLabel","fr"===this.$i18n.locale?"Lire":"Read")},hideCursor:function(){this.$store.commit("setIsCursorText",!1)}}}),o=n(10),d=Object(o.a)(l,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("nuxt-link",{directives:[{name:"letter-effect-container",rawName:"v-letter-effect-container"}],staticClass:"news-article letters-container",attrs:{tag:"article",to:e.localePath("/news/"+e.link)},nativeOn:{mouseenter:function(t){return e.showCursor.apply(null,arguments)},mouseleave:function(t){return e.hideCursor.apply(null,arguments)},click:function(t){return t.preventDefault(),e.hideCursor.apply(null,arguments)}}},[e.image?n("ModuleImage",{directives:[{name:"reveal-img-hang",rawName:"v-reveal-img-hang"}],attrs:{src:e.image,fixationSrc:"Tape.png"}}):n("ModuleImage",{directives:[{name:"reveal-img-hang",rawName:"v-reveal-img-hang"}],attrs:{isSrcLocal:!0,src:"news/thumbnail_placeholder.png",fixationSrc:"Tape.png"}}),e._v(" "),n("p",{directives:[{name:"letter-effect",rawName:"v-letter-effect"}],staticClass:"news-article__infos"},[n("span",{staticClass:"category"},[e._v(e._s(e.category))]),e._v(" "),e.duration?n("span",[e._v(" · "+e._s(e.duration)+" "+e._s("fr"===e.$i18n.locale?"min de lecture":"min read"))]):e._e()]),e._v(" "),n("h3",{directives:[{name:"letter-effect",rawName:"v-letter-effect"}]},[e._v(e._s(e.title))]),e._v(" "),n("div",{directives:[{name:"letter-effect",rawName:"v-letter-effect"}],staticClass:"news-article__text"},[e._t("default")],2)],1)}),[],!1,null,null,null).exports,f={components:{StaticFooter:c.a,NewsArticle:d},data:function(){return{selectedCategory:"",currentPage:1,newsPerPage:15}},head:function(){return{title:"Serendipity Agency | "+("fr"===this.$i18n.locale?"Publications | ":"News | ")+this.selectedCategory,meta:[{hid:"description",name:"description",content:this.actualites.BannerText},{hid:"og:title",property:"og:title",content:"Serendipity Agency | "+("fr"===this.$i18n.locale?"Publications | ":"News | ")+this.selectedCategory},{hid:"og:url",property:"og:url",content:"https://serendipity-agency.ch"+this.localePath({name:"news"})+"?category="+this.selectedCategory},{hid:"og:image",property:"og:image",content:"https://fervent-rosalind-b5b872.netlify.app/img/thumbnail_serendipity.jpg"},{hid:"og:description",property:"og:description",content:this.actualites.BannerText},{hid:"twitter:title",name:"twitter:title",content:"Serendipity Agency | "+("fr"===this.$i18n.locale?"Publications | ":"News | ")+this.selectedCategory},{hid:"twitter:url",name:"twitter:url",content:"https://serendipity-agency.ch"+this.localePath({name:"news"})+"?category="+this.selectedCategory},{hid:"twitter:image",name:"twitter:image",content:"https://fervent-rosalind-b5b872.netlify.app/img/thumbnail_serendipity.jpg"},{hid:"twitter:description",name:"twitter:description",content:this.actualites.BannerText}]}},asyncData:function(e){return Object(r.a)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.$strapi,r=e.i18n,t.next=3,n.$categories.find({_locale:r.locale});case 3:return t.t0=t.sent,t.next=6,n.$articles.find({_locale:r.locale});case 6:return t.t1=t.sent,t.next=9,n.$footer.find({_locale:r.locale});case 9:return t.t2=t.sent,t.next=12,n.$actualites.find({_locale:r.locale});case 12:return t.t3=t.sent,t.abrupt("return",{categories:t.t0,news:t.t1,footer:t.t2,actualites:t.t3});case 14:case"end":return t.stop()}}),t)})))()},created:function(){this.selectedCategory=this.$route.query.category?this.$route.query.category:"fr"===this.$i18n.locale?"Tous":"All"},computed:{isMobile:function(){return this.$store.getters.isMobile},isMenuOpened:function(){return this.$store.getters.isMenuOpened},filteredNews:function(){var e=this.selectedCategory;return"Tous"===e||"All"===e?this.news:this.news.filter((function(t){return t.category.name===e}))},displayedNews:function(){var e=this.newsPerPage*(this.currentPage-1),t=e+this.newsPerPage;return t>this.filteredNews.length&&(t=this.filteredNews.length),this.filteredNews.slice(e,t).sort((function(a,b){return new Date(b.date)-new Date(a.date)}))}},methods:{selectCategory:function(e){this.currentPage=1,this.selectedCategory=e},callback:function(e){console.log("Page ".concat(e," was selected."))}},mounted:function(){window.scrollTo(0,0),this.$store.commit("setIsCursorText",!1)},transition:{mode:"out-in"}},m=Object(o.a)(f,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("main",{staticClass:"page news container-x",class:{"fade-out"
1:e.isMenuOpened}},[n("section",{directives:[{name:"letter-effect-container",rawName:"v-letter-effect-container"}],staticClass:"grid-12 letters-container"},[n("p",{directives:[{name:"letter-effect",rawName:"v-letter-effect"}],staticClass:"page-description"},[e._v(e._s(e.actualites.BannerText))])]),e._v(" "),n("section",{staticClass:"container-y"},[n("ul",{directives:[{name:"letter-effect-container",rawName:"v-letter-effect-container"}],staticClass:"news-filter letters-container",class:{"container-x":!e.isMobile}},[n("li",[n("nuxt-link",{staticClass:"news-filter__item",attrs:{to:e.localePath({name:"news",query:{category:"fr"===e.$i18n.locale?"Tous":"All"}}),tag:"a",exact:"","active-class":"active"},nativeOn:{click:function(t){return e.selectCategory("fr"===e.$i18n.locale?"Tous":"All")}}},[n("span",{directives:[{name:"letter-effect",rawName:"v-letter-effect"}]},[e._v(e._s("fr"===e.$i18n.locale?"Tous":"All"))])])],1),e._v(" "),e._l(e.categories,(function(t){return n("li",{key:t.id},[n("nuxt-link",{staticClass:"news-filter__item",attrs:{to:e.localePath({name:"news",query:{category:t.name}}),tag:"a",exact:"","active-class":"active"},nativeOn:{click:function(n){return e.selectCategory(t.name)}}},[n("h2",{directives:[{name:"letter-effect",rawName:"v-letter-effect"}]},[e._v(e._s(t.name))])])],1)}))],2),e._v(" "),0===e.displayedNews.length?n("p",{staticClass:"news-empty container-y"},[e._v(e._s("fr"===e.$i18n.locale?"Il n'y a pas d'actualité qui correspond à votre recherche...":"There is no news that matches your search ..."))]):n("transition-group",{staticClass:"news-list grid-3 container-y",attrs:{tag:"div",name:"fade",mode:"in-out"}},e._l(e.displayedNews,(function(t){return n("NewsArticle",{key:t.id,attrs:{link:t.slug,title:t.title,category:t.category.name,image:t.thumbnail?t.thumbnail.url:null,duration:t.readingTime}},[n("p",[e._v(e._s(t.excerpt))])])})),1),e._v(" "),n("client-only",[n("Pagination",{staticClass:"news-pagination",attrs:{records:e.filteredNews.length,"per-page":e.newsPerPage},on:{paginate:e.callback},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}})],1)],1),e._v(" "),n("StaticFooter",{attrs:{footer:e.footer}})],1)}),[],!1,null,null,null);t.default=m.exports}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.