PageSourceSearch

https://www.leseydins.com/js/963.js

js leseydins.com collected 2026-10-07 19:07:42 UTC 7,898 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunksiteref_mgs=self.webpackChunksiteref_mgs||[]).push([[963],{4963(t,e,a){a.r(e),a.d(e,{default:()=>l});const i={props:["actualite","readmoretxt","publieletxt"],computed:{photos(){if(!this.actualite.sliderModule||!this.actualite.sliderModule.urls)return[];try{const t=JSON.parse(this.actualite.sliderModule.urls);return Array.isArray(t)?t:[]}catch(t){return[]}}}};var s=a(707);const r={components:{Actualite:(0,s.A)(i,function(){var t=this,e=t._self._c;return e("div",{staticClass:"actualite-card",style:t.photos.length?{backgroundImage:"url(/imagecache/larger/"+t.photos[0]+")"}:{}},[e("div",{staticClass:"overlay-actualite-card"}),t._v(" "),e("div",{staticClass:"listing-actualite"},[t.actualite.textModule?[e("div",{staticClass:"subtitle-listing-actualite"},[t._v(t._s(t.actualite.textModule.subtitle))]),t._v(" "),e("div",{staticClass:"title-listing-actualite"},[e("p",[t._v(t._s(t.actualite.textModule.title))])])]:t._e(),t._v(" "),e("div",{staticClass:"meta-listing-actualite"},[e("div",{staticClass:"date-listing-actualite"},[t._v(t._s(t.publieletxt)+" "+t._s(t.actualite.formattedDate))]),t._v(" "),t.actualite.categories&&t.actualite.categories.length?e("div",{staticClass:"tags-listing-actualite"},[t._l(t.actualite.categories,function(a,i){return[e("span",{key:i},[t._v(t._s(a.tag_name))])]})],2):t._e()]),t._v(" "),t.actualite.localizedUrl&&"#"!==t.actualite.localizedUrl?e("a",{staticClass:"btn btn-primary",attrs:{href:t.actualite.localizedUrl}},[e("div",{staticClass:"btn-text"},[t._v("\n\t\t\t\t"+t._s(t.readmoretxt)+"\n\t\t\t")]),t._v(" "),e("div",{staticClass:"btn-picto btn-picto-arrow"},[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"18.132",height:"13.384",viewBox:"0 0 18.132 13.384"}},[e("g",{attrs:{id:"icons_arrow_right-black_big","data-name":"icons/arrow_right-black big",transform:"translate(0)"}},[e("g",{attrs:{id:"Group"}},[e("path",{attrs:{id:"Path_24","data-name":"Path 24",d:"M0,.69.691,0l6.7,6.692-6.7,6.692L0,12.693l6-6Z",transform:"translate(10.746)"}})]),t._v(" "),e("rect",{attrs:{id:"Rectangle_3","data-name":"Rectangle 3",width:"17.584",height:"0.977",transform:"translate(0 6.203)"}})])])])]):t._e()],2)])},[],!1,null,null,null).exports},data:function(){return{currentPage:1,filters:[]}},props:["actualites","maxperpage","readmoretxt","publieletxt","removefilterstxt","tagstxt","noresultstxt","pageprevtxt","pagenexttxt"],computed:{enabledFilters(){return this.filters.filter(t=>t.enabled)},filtersEnabled(){return 0!==this.enabledFilters.length},filteredActualites(){if(this.filtersEnabled){const t=new Set(this.enabledFilters.map(t=>t.name));return this.actualites.filter(e=>(e.categories||[]).some(e=>t.has(e.tag_name)))}return this.actualites},totalPages(){return Math.ceil(this.filteredActualites.length/this.maxperpage)},visiblePages(){const t=this.totalPages,e=this.currentPage,a=new Set;a.add(1),t>=2&&a.add(2),a.add(t),t>=2&&a.add(t-1);for(let i=Math.max(1,e-1);i<=Math.min(t,e+1);i++)a.add(i);const i=Array.from(a).filter(e=>e>=1&&e<=t).sort((t,e)=>t-e),s=[];let r=null;return i.forEach(t=>{null!==r&&t-r>1&&s.push("..."),s.push(t),r=t}),s},paginatedActualites(){const t=(this.currentPage-1)*this.maxperpage;return this.filteredActualites.slice(t,t+this.maxperpage)}},mounted:function(){let t=[];this.actualites.forEach(e=>{t=t.concat((e.categories||[]).map(t=>t.tag_name))}),t=t.filter((e,a)=>t.indexOf(e)===a),t.forEach(t=>{this.filters.push({enabled:!1,name:t})})},methods:{goToPage:function(t){this.currentPage=t,this.scrollToListingTop()},prevPage:function(){this.currentPage>1&&this.goToPage(this.currentPage-1)},nextPage:function(){this.currentPage<this.totalPages&&this.goToPage(this.currentPage+1)},scrollToListingTop:function(){const t=this.$refs.categoriesFilter||this.$el,e=window.innerWidth<=767?90:100,a=t.getBoundingClientRect().top+window.scrollY-e-20;window.scrollTo({top:a,behavior:"smooth"})},toggleFilter:function(t){this.filters[t].enabled=!this.filters[t].enabled,this.currentPage=1},clearFilters:function(){this.filters.forEach(t=>t.enabled=!1),this.currentPage=1}}};const l=(0,s.A)(r,function(){var t=this,e=t._self._c;return e("div",{staticClass:"listing-actualites-outer"},[t.filters.length?e("div",{ref:"categoriesFilter",staticClass:"categories-filter"},[e("div",{staticClass:"categories-filter-title"},[t._v(t._s(t.tagstxt))]),t._v(" "),e("div",{staticClass:"categories-filter-listing"},[t._l(t.filters,function(a,i){return[e("button",{key:i,staticClass:"categorie",class:a.enabled?"enabled":"",attrs:{type:"button"},on:{click:function(e){return t.toggleFilter(i)}}},[t._v("\n\t\t\t\t\t"+t._s(a.name)+"\n\t\t\t\t")])]})],2),t._v(" "),t.filtersEnabled?e("button",{staticClass:"clear-categories",attrs:{type:"button"},on:{click:function(e){return t.clearFilters()}}},[e("div",{staticClass:"clear-text"},[t._v(t._s(t.removefilterstxt))]),t._v(" "),e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10.028",height:"10.041",viewBox:"0 0 10.028 10.
1041"}},[e("path",{attrs:{d:"M128.493,138a.694.694,0,0,0,.492.211.675.675,0,0,0,.492-.211l3.821-3.822L137.121,138a.694.694,0,0,0,.492.211.675.675,0,0,0,.492-.211.715.715,0,0,0,0-1l-3.81-3.81,3.81-3.822a.715.715,0,0,0,0-1,.7.7,0,0,0-1,0L133.3,132.2l-3.821-3.81a.7.7,0,0,0-1,1l3.821,3.81-3.81,3.821A.68.68,0,0,0,128.493,138Z",transform:"translate(-128.279 -128.173)"}})])]):t._e()]):t._e(),t._v(" "),e("div",{staticClass:"listing-actualites"},[t.filteredActualites.length?e("div",{staticClass:"listing-actualites-container"},[t._l(t.paginatedActualites,function(a){return[e("Actualite",{key:a.id,attrs:{actualite:a,readmoretxt:t.readmoretxt,publieletxt:t.publieletxt}})]})],2):e("div",{staticClass:"listing-actualites-empty"},[t._v("\n\t\t\t"+t._s(t.noresultstxt)+"\n\t\t")]),t._v(" "),t.totalPages>1?e("div",{staticClass:"listing-actualites-pagination"},[e("button",{staticClass:"pagination-arrow",class:1===t.currentPage?"disabled":"",attrs:{type:"button",disabled:1===t.currentPage,"aria-label":t.pageprevtxt},on:{click:function(e){return t.prevPage()}}},[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14.993",height:"25.745",viewBox:"0 0 14.993 25.745"}},[e("path",{attrs:{d:"M14.464,1.057l-11.812,11.812,5.414,5.414,6.4,6.4",fill:"none",stroke:"currentColor","stroke-width":"3"}})])]),t._v(" "),t._l(t.visiblePages,function(a,i){return["..."===a?e("div",{key:"e"+i,staticClass:"pagination-ellipsis"},[t._v("...")]):e("button",{key:a,staticClass:"pagination-page",class:a===t.currentPage?"active":"",attrs:{type:"button"},on:{click:function(e){return t.goToPage(a)}}},[t._v("\n\t\t\t\t\t"+t._s(a)+"\n\t\t\t\t")])]}),t._v(" "),e("button",{staticClass:"pagination-arrow",class:t.currentPage===t.totalPages?"disabled":"",attrs:{type:"button",disabled:t.currentPage===t.totalPages,"aria-label":t.pagenexttxt},on:{click:function(e){return t.nextPage()}}},[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14.993",height:"25.745",viewBox:"0 0 14.993 25.745"}},[e("path",{attrs:{d:"M0.529,24.688l11.812-11.812L6.927,7.462l-6.4-6.4",fill:"none",stroke:"currentColor","stroke-width":"3"}})])])],2):t._e()])])},[],!1,null,null,null).exports},707(t,e,a){function i(t,e,a,i,s,r,l,n){var o,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=a,c._compiled=!0),i&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),l?(o=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(l)},c._ssrRegister=o):s&&(o=n?function(){s.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:s),o)if(c.functional){c._injectStyles=o;var u=c.render;c.render=function(t,e){return o.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,o):[o]}return{exports:t,options:c}}a.d(e,{A:()=>i})}}]);

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.