1"use strict";(self.webpackChunkpc=self.webpackChunkpc||[]).push([[8531],{35793:(T,M,e)=>{e.d(M,{O:()=>f});var h=e(72609),C=e(56977),m=e(37084),v=e(14041),c=e(49823),n=e(54438),u=e(9310),p=e(51188),s=e(60177),d=e(81405),P=e(88974),E=e(12394),O=e(94668),r=e(87748),L=e(9249);const I=l=>({"filter-searche-global-active":l}),A=l=>({"container-center":l});function B(l,D){1&l&&n.nrm(0,"vplus-article-non-publiee")}function U(l,D){if(1&l&&(n.qex(0),n.nrm(1,"vplus-evenement-article",4)(2,"vplus-ion-scroll-top")(3,"app-copyright-footer"),n.bVm()),2&l){const i=n.XpG();n.R7$(),n.Y8G("evenement",i.currentEvenement)}}let f=(()=>{var l;class D extends h.dI{constructor(t,o,a){super(),this.store=t,this.appMetaTags=o,this.activatedRoute=a,this.class="article-entity",this.isPreview=!1,this.selectIsSearchHeaderVisible$=this.store.select(c.selectIsSearchHeaderVisible)}ngOnInit(){var t,o,a,_;this.isPreview=null!==(t=null!==(o=null===(a=this.activatedRoute)||void 0===a||null===(a=a.parent)||void 0===a?void 0:a.snapshot.data.preview)&&void 0!==o?o:null===(_=this.activatedRoute)||void 0===_?void 0:_.snapshot.data.preview)&&void 0!==t&&t,this.store.select(v.q$).pipe((0,C.Q)(this.destroy$)).subscribe(g=>{this.currentEvenement=g,this.changeMetaTags()})}onContentClick(){this.store.dispatch(c.Actions.setIsSearchHeaderVisible({payload:!1}))}ionViewWillEnter(){this.changeMetaTags()}changeMetaTags(){var t,o,a,_;this.appMetaTags.updateMetaTags(null===(t=this.currentEvenement)||void 0===t?void 0:t.titre,null===(o=this.currentEvenement)||void 0===o?void 0:o.article.extrait,null===(a=this.currentEvenement)||void 0===a||null===(a=a.article.image)||void 0===a?void 0:a.url,null===(_=this.currentEvenement)||void 0===_?void 0:_.article.imageAltText)}}return(l=D).\u0275fac=function(t){return new(t||l)(n.rXU(u.il),n.rXU(m.W),n.rXU(p.nX))},l.\u0275cmp=n.VBU({type:l,selectors:[["vplus-evenement-conteneur"]],hostVars:2,hostBindings:function(t,o){2&t&&n.HbH(o.class)},features:[n.Vt3],decls:6,vars:15,consts:[[1,"hide-desktop","mobile-header",3,"defaultHref","headerTitle","returnButtonType","menuId"],["scrollEvents","true",3,"click","id","ngClass"],[1,"main-page-container","flex",3,"ngClass"],[4,"ngIf"],[3,"evenement"]],template:function(t,o){1&t&&(n.nrm(0,"vplus-mobile-header",0),n.j41(1,"ion-content",1),n.nI1(2,"async"),n.bIt("click",function(){return o.onContentClick()}),n.j41(3,"div",2),n.DNE(4,B,1,0,"vplus-article-non-publiee",3)(5,U,4,1,"ng-container",3),n.k0s()()),2&t&&(n.Y8G("defaultHref",o.currentEvenement.isVisiblePortailCitoyen?"/evenement/liste":"")("headerTitle","")("returnButtonType",o.currentEvenement.isVisiblePortailCitoyen?"back-button":"home-button")("menuId",o.currentEvenement.id),n.R7$(),n.Y8G("id",o.currentEvenement.id)("ngClass",n.eq3(11,I,n.bMT(2,9,o.selectIsSearchHeaderVisible$))),n.R7$(2),n.Y8G("ngClass",n.eq3(13,A,!o.currentEvenement.isVisiblePortailCitoyen)),n.R7$(),n.Y8G("ngIf",!o.currentEvenement.isVisiblePortailCitoyen&&!o.isPreview),n.R7$(),n.Y8G("ngIf",o.currentEvenement.isVisiblePortailCitoyen||o.isPreview))},dependencies:[s.YU,s.bT,d.f,P.W9,E.g,O.j,r.G,L.o,s.Jj],encapsulation:2}),D})()},9249:(T,M,e)=>{e.d(M,{o:()=>U});var h=e(90835),C=e(50154),m=e(97586),v=e.n(m),c=e(35052),n=e(50370),u=e(92995),p=e(70394),d=(e(84298),e(98377)),P=e(2578),r=(e(95390),e(54438)),L=e(51188),I=e(59191);const A=["itineraire"],B=["froalaContainer"];let U=(()=>{var f;class l{constructor(i,t,o){this.appConfig=i,this.activatedRoute=t,this.localisationService=o,this.inParticipationCitoyenne=!1,this.sameMonth=!1,this.showCountdown=!1,this.breadcrumb=[],this.isPreview=!1,this.timezone=v().tz.guess(),this.isLocalisationFr=this.localisationService.getCurrentLocalisation()===u.fi.FR,this.formatDate=this.isLocalisationFr?"D MMMM":"MMMM D",this.days=null,this.hours=null,this.minutes=null,this.seconds=null,this.googleMapOptions={gestureHandling:"cooperative",disableDefaultUI:!1,fullscreenControl:!1,streetViewControl:!1,mapTypeControl:!1,disableDoubleClickZoom:!1,scrollwheel:null},v().locale(o.getCurrentLocalisation()),this.evenementModule=i.appConfig.moduleName.evenement,this.config=this.appConfig.appConfig}ngOnInit(){var i,t,o,a;this.isPreview=null!==(i=null!==(t=null===(o=this.activatedRoute)||void 0===o||null===(o=o.parent)||void 0===o?void 0:o.snapshot.data.preview)&&void 0!==t?t:null===(a=this.activatedRoute)||void 0===a?void 0:a.snapshot.data.preview)&&void 0!==i&&i,this.wiId=this.evenement.id,this.articleId=this.evenement.article.i
1d;const _=JSON.parse(JSON.stringify(this.evenement));_.formattedDate=h.A.getFormattedDate(_,this.timezone,this.isLocalisationFr);const g=_.contact.telephone;if(g){const y=C.Ay.createMask(this.isLocalisationFr?this.appConfig.appConfig.telMaskOQLFObjet:this.appConfig.appConfig.telMaskObjet);_.contact.telephone=y.resolve(g).substring(this.isLocalisationFr?1:0)}this.formattedEvent=_,this.startCountdown(_.dateDebut),this.inParticipationCitoyenne||this.generateBreadcrumb();const{googleCalendarLink:R,outlookLink:K,icsLink:W}=h.A.generateCalendarLinks(this.formattedEvent);this.googleCalendarLink=R,this.outlookLink=K,this.icsLink=W}ionViewDidLeave(){this.froalaContainer&&this.froalaContainer.pauseVideos()}scrollToMap(){this.itineraire.nativeElement.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}getAspectRatio(i){this.imgRatio=i}addToCalendar(i){i!==p.a.Ics?window.open(i===p.a.Google?this.googleCalendarLink:this.outlookLink,"_blank, noopener"):(0,P.saveAs)(this.icsLink,this.formattedEvent.titre+".ics")}startCountdown(i){const t=new Date(i).getTime();t<(new Date).getTime()||(this.showCountdown=!0,this.updateCountdown(t),this.countdownInterval=setInterval(()=>{this.updateCountdown(t)},1e3))}updateCountdown(i){const o=i-(new Date).getTime(),a=Math.floor(o/864e5),_=Math.floor(o%864e5/36e5),g=Math.floor(o%36e5/6e4),R=Math.floor(o%6e4/1e3);this.days=a>0?a:0,this.hours=_>0?_:0,this.minutes=g>0?g:0,this.seconds=R>0?R:0}generateBreadcrumb(){this.breadcrumb.push(new n.J(this.isLocalisationFr?this.evenementModule.name:"Events","/"+this.evenementModule.url)),this.breadcrumb.push(new n.J(this.formattedEvent.titre,""))}isEqualDay(i,t){return t.getDate()===i.getDate()&&this.isEqualMonth(i,t)}isEqualMonth(i,t){return t.getMonth()===i.getMonth()&&t.getFullYear()===i.getFullYear()}isEqualHour(i,t){return Math.floor(i.getTime()/1e3/60)===Math.floor(t.getTime()/1e3/60)}ngOnDestroy(){this.countdownInterval&&clearInterval(this.countdownInterval)}}return(f=l).\u0275fac=function(i){return new(i||f)(r.rXU(c.o),r.rXU(L.nX),r.rXU(d.A))},f.\u0275cmp=r.VBU({type:f,selectors:[["vplus-evenement-article"]],viewQuery:function(i,t){if(1&i&&(r.GBs(A,5),r.GBs(B,5)),2&i){let o;r.mGM(o=r.lsd())&&(t.itineraire=o.first),r.mGM(o=r.lsd())&&(t.froalaContainer=o.first)}},inputs:{evenement:"evenement",inParticipationCitoyenne:"inParticipationCitoyenne"},decls:1,vars:10,consts:[["wiTable","General.Evenement",3,"article","inParticipationCitoyenne","breadcrumb","articleModule","isPreview","googleCalendarLink","outlookLink","icsLink","articleType","formattedDate"]],template:function(i,t){1&i&&r.nrm(0,"vplus-article",0),2&i&&r.Y8G("article",t.evenement)("inParticipationCitoyenne",t.inParticipationCitoyenne)("breadcrumb",t.breadcrumb)("articleModule",t.evenementModule)("isPreview",t.isPreview)("googleCalendarLink",t.googleCalendarLink)("outlookLink",t.outlookLink)("icsLink",t.icsLink)("articleType","evenement")("formattedDate",t.formattedEvent.formattedDate)},dependencies:[I.o],encapsulation:2}),l})()},58531:(T,M,e)=>{e.d(M,{F:()=>p});var h=e(35793),C=e(55099),m=e(9249),v=e(18666),c=e(51188),n=e(10916),u=e(54438);let p=(()=>{var s;class d{}return(s=d).\u0275fac=function(E){return new(E||s)},s.\u0275mod=u.$C({type:s}),s.\u0275inj=u.G2t({providers:[v.R,h.O,m.o,C.k],imports:[n.G,c.iI]}),d})()},55099:(T,M,e)=>{e.d(M,{k:()=>p});var h=e(14041),C=e(96354),m=e(99437),v=e(18666),c=e(54438),n=e(9310),u=e(51188);let p=(()=>{var s;class d{constructor(E,O,r){this.store=E,this.evenementService=O,this.router=r}resolve(E){const O=E.params.slug;return(E.data.preview?this.evenementService.fetchPreview(O):this.evenementService.fetch(O)).pipe((0,C.T)(L=>this.store.dispatch(h.En.setCurrentEvenement({payload:L}))),(0,m.W)(L=>this.router.navigate(["page-non-trouvee"])))}}return(s=d).\u0275fac=function(E){return new(E||s)(c.KVO(n.il),c.KVO(v.R),c.KVO(u.Ix))},s.\u0275prov=c.jDH({token:s,factory:s.\u0275fac}),d})()},18666:(T,M,e)=>{e.d(M,{R:()=>c});var h=e(72609),C=e(98377),m=e(54438);const v="/evenement";let c=(()=>{var n;class u{constructor(s,d){this.backend=s,this.localisationService=d}fetch(s){return this.backend.get(`${v}/${s}?localisation=${this.localisationService.getCurrentLocalisation()}`)}fetchPreview(s){return this.backend.get(`${v}/preview/${s}?localisation=${this.localisationService.getCurrentLocalisation()}`)}fetchAll(){return this.backend.get(`${v}/liste?localisation=${this.localisationService.getCurrentLocalisation()}`)}}return(n=u).\u0275fac=function(s){return new(s||n)(m.KVO(h.m3),m.KVO(C.A))},n.\u0275prov=m.jDH({token:n,factory:n.\u0275fac}),u})()}}]);
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.