PageSourceSearch

https://batiscan.ca/1779.1042112f09be6d41.js

js batiscan.ca collected 2026-10-08 12:00:30 UTC 75,407 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpc=self.webpackChunkpc||[]).push([[1779],{41779:(vt,ae,_)=>{_.r(ae),_.d(ae,{CPRModule:()=>ds});var F=_(61594),S=_(9310);const H=(0,S.UX)("role"),J=(0,S.Mz)(H,s=>s.favoris),Xe=(0,S.Mz)(H,s=>s.favoris.length<1),Ve=s=>(0,S.Mz)(H,n=>n.favoris.some(o=>o.numeroDossier===s)),Tt=s=>(0,S.Mz)(H,n=>n.favoris.some(o=>o.matricule===s)),Se=(0,S.VP)("[CPR] ADD_FAVORI",(0,S.xk)()),le=(0,S.VP)("[CPR] SET_FAVORIS",(0,S.xk)()),Re=(0,S.VP)("[CPR] SAVE_FAVORIS"),He=(0,S.VP)("[CPR] DELETE_FAVORI",(0,S.xk)());var b=_(96354),It=_(5964),Me=_(25558),ue=_(23294),e=_(54438),_e=_(84412),ze=_(71985);let Ae=(()=>{var s;class n{checkKey(t){this[t]instanceof _e.t||(this[t]=localStorage.getItem(t)?new _e.t(JSON.parse(localStorage.getItem(t))):new _e.t([]))}get$(t){return this.checkKey(t),this[t].asObservable().pipe((0,b.T)(r=>r.slice()))}set$(t,r){return ze.c.create(i=>{try{localStorage.setItem(t,JSON.stringify(r))}catch(a){i.error(a)}this[t]||(this[t]=new _e.t([])),this[t].next(r),i.next(),i.complete()})}}return(s=n).\u0275fac=function(t){return new(t||s)},s.\u0275prov=e.jDH({token:s,factory:s.\u0275fac}),n})(),de=(()=>{var s;class n{constructor(t,r){this.localStorageService=t,this.store=r,this._consultesRecemment$=this.localStorageService.get$("consultesRecemment"),this.consultesRecemment$=this._consultesRecemment$.pipe((0,b.T)(i=>i.map(a=>Object.assign({},a,{isFavori$:this.store.select(Ve(a.numeroDossier))}))))}set$(t){return this.localStorageService.set$("consultesRecemment",t)}add$(t){return(t.numeroDossier?this.exist$(t.numeroDossier):this.existByMatricule$(t.matricule)).pipe((0,F.$)(),(0,It.p)(i=>!i),(0,Me.n)(()=>this._consultesRecemment$.pipe((0,F.$)())),(0,Me.n)(i=>this.set$([t,...i.splice(0,4)])))}exist$(t){return this._consultesRecemment$.pipe((0,b.T)(r=>!!r.find(i=>i.numeroDossier===t)))}existByMatricule$(t){return this._consultesRecemment$.pipe((0,b.T)(r=>!!r.find(i=>i.matricule===t)))}isEmpty$(){return this._consultesRecemment$.pipe((0,b.T)(t=>0===t.length),(0,ue.F)())}empty$(){return this.set$([])}}return(s=n).\u0275fac=function(t){return new(t||s)(e.KVO(Ae),e.KVO(S.il))},s.\u0275prov=e.jDH({token:s,factory:s.\u0275fac}),n})(),Ye=(()=>{var s;class n{constructor(t){this.consultesRecemmentService=t}resolve(t,r){return this.consultesRecemmentService.consultesRecemment$.pipe((0,F.$)())}}return(s=n).\u0275fac=function(t){return new(t||s)(e.KVO(de))},s.\u0275prov=e.jDH({token:s,factory:s.\u0275fac}),n})();var bt=_(15083),Lt=_(40334),$t=_(81018),R=_(51188),yt=_(37084),K=_(49823),O=_(60177),kt=_(81405),C=_(88974),We=_(3902),Q=_(86600),y=_(88834);const Dt=()=>["/consultation-du-role","role"],Ft=s=>({id:s}),Ut=s=>({matricule:s});function Gt(s,n){if(1&s&&(e.j41(0,"li")(1,"a",7)(2,"p",8),e.EFF(3),e.k0s()()()),2&s){const o=n.$implicit;e.R7$(),e.Y8G("routerLink",e.lJ4(3,Dt))("queryParams",o.numeroDossier?e.eq3(4,Ft,o.numeroDossier):e.eq3(6,Ut,o.matricule)),e.R7$(2),e.JRh(o.adresse)}}let xt=(()=>{var s;class n{constructor(t){this.consultesRecemmentService=t}ngOnInit(){this.consultesRecemment$=this.consultesRecemmentService.consultesRecemment$,this.emptyConsultesRecemment$=this.consultesRecemmentService.isEmpty$()}addFavori({}){}emptyHistory(){this.consultesRecemmentService.empty$().subscribe()}}return(s=n).\u0275fac=function(t){return new(t||s)(e.rXU(de))},s.\u0275cmp=e.VBU({type:s,selectors:[["vplus-consultes-recemment"]],decls:9,vars:6,consts:()=>{let o,t;return o="Consult\xE9s R\xE9cemment",t="Vider l'historique",[o,t,[1,"adresses-titre"],[1,"adresses-list","consultes-recemment-list"],[4,"ngFor","ngForOf"],[1,"stepper-bottom-actions"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-button","",1,"role-button",3,"routerLink","queryParams"],[1,"consultes-recemment-text"]]},template:function(t,r){1&t&&(e.j41(0,"h2",2),e.pXf(1,0),e.k0s(),e.j41(2,"ul",3),e.DNE(3,Gt,4,8,"li",4),e.nI1(4,"async"),e.k0s(),e.j41(5,"div",5)(6,"button",6),e.nI1(7,"async"),e.bIt("click",function(){return r.emptyHistory()}),e.pXf(8,1),e.k0s()()),2&t&&(e.R7$(3),e.Y8G("ngForOf",e.bMT(4,2,r.consultesRecemment$)),e.R7$(3),e.Y8G("disabled",e.bMT(7,4,r.emptyConsultesRecemment$)))},dependencies:[R.Wk,y.It,y.$z,O.Sq,C.oY,O.Jj],encapsulation:2}),n})();var Oe=_(35052),ee=_(72609),Bt=_(63851),Ne=_(56977),A=_(89417),jt=_(75574);const wt=()=>["/consultation-du-role","role"],Xt=s=>({id:s}),Vt=s=>({matricule:s});
1function Ht(s,n){if(1&s){const o=e.RV6();e.j41(0,"div",12)(1,"span"),e.pXf(2,1),e.k0s(),e.j41(3,"a",13),e.bIt("click",function(){e.eBV(o);const r=e.XpG();return e.Njj(r.redirectConnexionService.redirectConnection(r.redirectTo))}),e.pXf(4,2),e.k0s(),e.EFF(5,".\n"),e.k0s()}}function zt(s,n){if(1&s&&(e.j41(0,"ion-item",19)(1,"ion-avatar",20),e.nrm(2,"i",21),e.k0s(),e.j41(3,"ion-label")(4,"h3"),e.EFF(5),e.k0s(),e.j41(6,"h4"),e.EFF(7),e.k0s()()()),2&s){const o=n.$implicit,t=e.XpG(3);e.Y8G("routerLink",e.lJ4(4,wt))("queryParams",o.numeroDossier?e.eq3(5,Xt,o.numeroDossier):e.eq3(7,Vt,o.matricule)),e.R7$(5),e.JRh(o.alias?o.alias:t.defaultFavoriAlias),e.R7$(2),e.JRh(o.adresse)}}function Yt(s,n){if(1&s&&(e.j41(0,"ion-list",17),e.DNE(1,zt,8,9,"ion-item",18),e.nI1(2,"async"),e.k0s()),2&s){const o=e.XpG(2);e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,o.favoris$))}}function Wt(s,n){if(1&s){const o=e.RV6();e.j41(0,"ion-item",24)(1,"button",25),e.bIt("click",function(){const r=e.eBV(o).index,i=e.XpG(3);return e.Njj(i.deleteFavori(r))}),e.nrm(2,"i",26),e.k0s(),e.j41(3,"div",27)(4,"ion-item"),e.nrm(5,"ion-input",28),e.k0s(),e.j41(6,"ion-text")(7,"p"),e.EFF(8),e.k0s()()()()}if(2&s){const o=n.index,t=e.XpG(3);e.Y8G("formGroupName",o),e.R7$(8),e.JRh(t.favoris[o].adresse)}}function Zt(s,n){if(1&s&&(e.j41(0,"ul",22),e.DNE(1,Wt,9,2,"ion-item",23),e.k0s()),2&s){const o=e.XpG(2);e.R7$(),e.Y8G("ngForOf",o.form.controls)}}function qt(s,n){if(1&s&&(e.j41(0,"form",14),e.nI1(1,"async"),e.DNE(2,Yt,3,3,"ion-list",15)(3,Zt,2,1,"ul",16),e.k0s()),2&s){const o=e.XpG();e.Y8G("formGroup",o.form)("vplusSyncStore",e.bMT(1,5,o.favoris$))("vplusSyncAction",o.updateStoreAction),e.R7$(2),e.Y8G("ngIf",!o.editMode),e.R7$(),e.Y8G("ngIf",o.editMode)}}function Jt(s,n){if(1&s){const o=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){e.eBV(o);const r=e.XpG();return e.Njj(r.cancelEdit())}),e.pXf(1,3),e.k0s()}}function Kt(s,n){if(1&s){const o=e.RV6();e.j41(0,"button",30),e.bIt("click",function(){e.eBV(o);const r=e.XpG();return e.Njj(r.saveFavoris())}),e.pXf(1,4),e.k0s()}}
1function Qt(s,n){if(1&s){const o=e.RV6();e.j41(0,"button",30),e.bIt("click",function(){e.eBV(o);const r=e.XpG();return e.Njj(r.startEditMode())}),e.pXf(1,5),e.k0s()}}let en=(()=>{var s;class n extends ee.dI{constructor(t,r,i,a,l){super(),this.appConfig=t,this.formBuilder=r,this.redirectConnexionService=i,this.router=a,this.store=l,this.updateStoreAction=le,this.editMode=!1,this.defaultFavoriAlias="Favori sans titre",this.config=this.appConfig.appConfig,this.redirectTo=this.router.url}ngOnInit(){this.initForm(),this.isLoggedIn$=this.store.select(K.selectIsLoggedIn),this.favoris$=this.store.select(J),this.emptyFavoris$=this.store.select(Xe),this.favoris$.pipe((0,Ne.Q)(this.destroy$)).subscribe(t=>{this.favoris=t})}initForm(){this.form=this.formBuilder.array([]),this.form.setDefaultControlBuilder(this.createFavoriFormGroup.bind(this))}createFavoriFormGroup(){return new A.J3({id:new A.hs,alias:new A.hs,numeroDossier:new A.hs,matricule:new A.hs,adresse:new A.hs,coordonnees:new A.hs})}startEditMode(){this.favorisBK=[...this.favoris],this.editMode=!0}deleteFavori(t){this.store.dispatch(He({payload:this.favoris[t].id}))}cancelEdit(){this.store.dispatch(le({payload:this.favorisBK})),this.editMode=!1}saveFavoris(){this.store.dispatch(Re()),this.editMode=!1}}return(s=n).\u0275fac=function(t){return new(t||s)(e.rXU(Oe.o),e.rXU(A.ze),e.rXU(Bt.x),e.rXU(R.Ix),e.rXU(S.il))},s.\u0275cmp=e.VBU({type:s,selectors:[["vplus-favoris"]],features:[e.Vt3],decls:12,vars:13,consts:()=>{let o,t,r,i,a,l,c;return o="Favoris",t="Pour consulter ou ajouter des favoris, veuillez ",r="vous connecter",i="Nom du favori...",a="Annuler",l="Enregistrer",c="Modifier les favoris",[o,t,r,a,l,c,[1,"adresses-titre"],["class","favoris-logged-out",4,"ngIf"],[3,"formGroup","vplusSyncStore","vplusSyncAction",4,"ngIf"],[1,"stepper-bottom-actions"],["mat-raised-button","","class","custom-button-stroked custom-button-standard",3,"click",4,"ngIf"],["mat-raised-button","","class","custom-button-full custom-button-standard",3,"click",4,"ngIf"],[1,"favoris-logged-out"],[1,"link-pointer",3,"click"],[3,"formGroup","vplusSyncStore","vplusSyncAction"],["class","ion-favoris-list",4,"ngIf"],["class","adresses-list",4,"ngIf"],[1,"ion-favoris-list"],["button","",3,"routerLink","queryParams",4,"ngFor","ngForOf"],["button","",3,"routerLink","queryParams"],["slot","start"],[1,"vplus-icon","icon-favoris"],[1,"adresses-list"],["class","favoris-item",3,"formGroupName",4,"ngFor","ngForOf"],[1,"favoris-item",3,"formGroupName"],["mat-icon-button","","color","warn",1,"delete-fav-btn",3,"click"],[1,"icon-poubelle"],[1,"delete-fav-item"],["placeholder",i,"type","text","formControlName","alias"],["mat-raised-button","",1,"custom-button-stroked","custom-button-standard",3,"click"],["mat-raised-button","",1,"custom-button-full","custom-button-standard",3,"click"]]},template:function(t,r){1&t&&(e.j41(0,"h2",6),e.pXf(1,0),e.k0s(),e.DNE(2,Ht,6,0,"div",7),e.nI1(3,"async"),e.DNE(4,qt,4,7,"form",8),e.nI1(5,"async"),e.j41(6,"div",9),e.DNE(7,Jt,2,0,"button",10)(8,Kt,2,0,"button",11)(9,Qt,2,0,"button",11),e.nI1(10,"async"),e.nI1(11,"async"),e.k0s()),2&t&&(e.R7$(2),e.Y8G("ngIf",!e.bMT(3,5,r.isLoggedIn$)),e.R7$(2),e.Y8G("ngIf",e.bMT(5,7,r.isLoggedIn$)),e.R7$(3),e.Y8G("ngIf",r.editMode),e.R7$(),e.Y8G("ngIf",r.editMode),e.R7$(),e.Y8G("ngIf",!r.editMode&&e.bMT(10,9,r.isLoggedIn$)&&!e.bMT(11,11,r.emptyFavoris$)))},dependencies:[R.Wk,y.$z,y.iY,O.Sq,O.bT,A.qT,A.BC,A.cb,A.j4,A.JD,A.$R,jt.Q,C.mC,C.$w,C.uz,C.he,C.nf,C.IO,C.Gw,C.N7,O.Jj],styles:[".isDisabled[_ngcontent-%COMP%]{color:currentColor;cursor:not-allowed;opacity:.5;text-decoration:none}"]}),n})();const tn=()=>["/consultation-du-role","recherche"],nn=()=>["/consultation-du-role","carte"];let Ze=(()=>{var s;class n{constructor(t){this.route=t}ngOnInit(){var t;this.menuId=null!==(t=this.route.snapshot.data.menuId)&&void 0!==t?t:"mesAdressesDesktop"}}return(s=n).\u0275fac=function(t){return new(t||s)(e.rXU(R.nX))},s.\u0275cmp=e.VBU({type:s,selectors:[["vplus-side-bar"]],decls:12,vars:5,consts:()=>{let o,t;return o="Nouvelle recherche",t="Explorer la carte",[o,t,[3,"id"],[1,"hide-mobile","cpr-desktop-tabs"],["matRipple","","mat-list-item","","routerLinkActive","active-link",3,"routerLink"],["slot","start",1,"icon-search"],["matRipple","","mat-list-item","","routerLinkActive","active-link","queryParamsHandling","merge",3,"routerLink"],["slot","start",1,"icon-map-pin"]]},template:function(t,r){1&t&&(e.j41(0,"ion-content",2)(1,"mat-list",3)(2,"a",4),e.nrm(3,"i",5),e.j41(4,"label"),e.pXf(5,0),e.k0s()(),e.j41(6,"a",6),e.nrm(7,"i",7),e.j41(8,"label"),e.pXf(9,1),e.k0s()()(),e.nrm(10,"vplus-favoris")(11,"vplus-consultes-recemment"),e.k0s()),2&t&&(e.Y8G("id","mesAdresses"),e.R7$(2),e.Y8G("routerLink",e.lJ4(3,tn)),e.R7$(4),e.Y8G("routerLink",e.lJ4(4,nn)))},dependencies:[R.Wk,R.wQ,We.jt,We.YE,Q.r6,C.W9,C.oY,xt,en],encapsulation:2}),n})();const on=()=>["/consultation-du-role","mes-adresses"],sn=()=>["/consultation-du-role","recherche"],rn=()=>["/consultation-du-role","carte"];let qe=(()=>{var s;
1class n{constructor(){}}return(s=n).\u0275fac=function(t){return new(t||s)},s.\u0275cmp=e.VBU({type:s,selectors:[["vplus-cpr-tabs"]],decls:13,vars:6,consts:()=>{let o,t,r,i,a,l;return o="mes adresses",t="recherche",r="carte",i="Mes adresses",a="Rechercher",l="Explorer",[i,a,l,["slot","bottom",1,"vplus-tab-bar"],["routerDirection","root","routerLinkActive","active-link","tab",o,3,"routerLink"],[1,"icon-mes-adresses"],["routerDirection","root","routerLinkActive","active-link","tab",t,3,"routerLink"],[1,"icon-search"],["routerDirection","root","routerLinkActive","active-link","queryParamsHandling","merge","tab",r,3,"routerLink"],[1,"icon-map"]]},template:function(t,r){1&t&&(e.j41(0,"ion-tab-bar",3)(1,"ion-tab-button",4),e.nrm(2,"ion-icon",5),e.j41(3,"ion-label"),e.pXf(4,0),e.k0s()(),e.j41(5,"ion-tab-button",6),e.nrm(6,"ion-icon",7),e.j41(7,"ion-label"),e.pXf(8,1),e.k0s()(),e.j41(9,"ion-tab-button",8),e.nrm(10,"ion-icon",9),e.j41(11,"ion-label"),e.pXf(12,2),e.k0s()()()),2&t&&(e.R7$(),e.Y8G("routerLink",e.lJ4(3,on)),e.R7$(4),e.Y8G("routerLink",e.lJ4(4,sn)),e.R7$(4),e.Y8G("routerLink",e.lJ4(5,rn)))},dependencies:[R.Wk,R.wQ,C.iq,C.he,C.Jq,C.qW,C.N7],encapsulation:2}),n})();const an=s=>({"filter-searche-global-active":s});let cn=(()=>{var s;class n{constructor(){this.store=(0,e.WQX)(S.il),this.router=(0,e.WQX)(R.Ix),this.appMetaTags=(0,e.WQX)(yt.W),this.platform=(0,e.WQX)($t.OD),this.selectIsSearchHeaderVisible$=this.store.select(K.selectIsSearchHeaderVisible)}ngOnInit(){const t=window.innerWidth;this.redirect(t)}ionViewWillEnter(){this.appMetaTags.updateMetaTags("R\xf4le d'\xe9valuation"),this.setWebViewScrollDisabled(!0)}ionViewWillLeave(){this.setWebViewScrollDisabled(!1)}onResize(t){this.redirect(t.target.innerWidth)}onContentClick(){this.store.dispatch(K.Actions.setIsSearchHeaderVisible({payload:!1}))}setWebViewScrollDisabled(t){!bt.Ii.isNativePlatform()||!this.platform.is("ios")||Lt.s3.setScroll({isDisabled:t})}redirect(t){t>=960&&"/consultation-du-role/mes-adresses"===this.router.url&&this.router.navigate(["/consultation-du-role/recherche"])}}return(s=n).\u0275fac=function(t){return new(t||s)},s.\u0275cmp=e.VBU({type:s,selectors:[["vplus-cpr"]],decls:7,vars:7,consts:[["returnButtonType","home-button","headerTitle","",1,"hide-desktop","mobile-header",3,"menuId"],["id","cpr-main-area",3,"click","scrollY","ngClass"],[1,"cpr-main-area",3,"resize"],[1,"hide-mobile","responsive-fixed-height"],[1,"along-side-page"]],template:function(t,r){1&t&&(e.nrm(0,"vplus-mobile-header",0),e.j41(1,"ion-content",1),e.nI1(2,"async"),e.bIt("click",function(){return r.onContentClick()}),e.j41(3,"div",2),e.bIt("resize",function(a){return r.onResize(a)},!1,e.tSv),e.nrm(4,"vplus-side-bar",3)(5,"ion-router-outlet",4),e.k0s()(),e.nrm(6,"vplus-cpr-tabs")),2&t&&(e.Y8G("menuId","cpr-main-area"),e.R7$(),e.Y8G("scrollY",!1)("ngClass",e.eq3(5,an,e.bMT(2,3,r.selectIsSearchHeaderVisible$))))},dependencies:[O.YU,kt.f,C.W9,C.Rg,Ze,qe,O.Jj],encapsulation:2}),n})();const ln=()=>["/consultation-du-role","recherche"],un=()=>["/consultation-du-role","carte"];let _n=(()=>{var s;class n{constructor(){}}return(s=n).\u0275fac=function(t){return new(t||s)},s.\u0275cmp=e.VBU({type:s,selectors:[["vplus-cpr-header-menu-cpr"]],decls:9,vars:4,consts:()=>{let o,t;return o="Nouvelle recherche",t="Explorer la carte",[o,t,["routerLinkActive","active-link",3,"routerLink"],["slot","start",1,"icon-search"],["routerLinkActive","active-link","queryParamsHandling","merge",3,"routerLink"],["slot","start",1,"icon-map"]]},template:function(t,r){1&t&&(e.j41(0,"ion-button",2),e.nrm(1,"ion-icon",3),e.EFF(2,"\xa0 "),e.j41(3,"span"),e.pXf(4,0),e.k0s()(),e.j41(5,"ion-button",4),e.nrm(6,"ion-icon",5),e.j41(7,"span"),e.pXf(8,1),e.k0s()()),2&t&&(e.Y8G("routerLink",e.lJ4(2,ln)),e.R7$(5),e.Y8G("routerLink",e.lJ4(3,un)))},dependencies:[R.Wk,R.wQ,C.Jm,C.iq,C.N7],encapsulation:2}),n})();const U="/role/cpr";let G=(()=>{var s;class n{constructor(t){this.backendService=t}autoCompleteAddress(t){return this.backendService.get(`${U}/autocompleteaddress?input=${encodeURIComponent(t)}`)}autoCompleteMatricule(t){return this.backendService.get(`${U}/autocompletematricule?input=${encodeURIComponent(t)}`)}autoCompleteLot(t){return this.backendService.get(`${U}/autocompletelot?input=${encodeURIComponent(t)}`)}getFavoris(){return this.backendService.get(`${U}/favoris`)}saveFavoris(t){return this.backendService.post(`${U}/favoris/update`,t)}getMunCoordonnees(){return this.backendService.get(`${U}/coordonnees-municipalite`)}getMatriculesSimplesByBounds(t,r,i,a){return this.backendService.get(`${U}/matricules-simples-by-bounds/${t}/${r}/${i}/${a}`)}getAdressesByMatriculeSimple(t){return this.backendService.get(`${U}/adresses-by-matricule-simple/${t}`)}}return(s=n).\u0275fac=function(t){return new(t||s)(e.KVO(ee.m3))},s.\u0275prov=e.jDH({token:s,factory:s.\u0275fac}),n})();var Je=_(88141),te=_(7673);let Ke=(()=>{var s;
1class n{constructor(t,r){this.store=t,this.cprService=r}resolve(t,r){return this.store.select(K.selectIsLoggedIn).pipe((0,F.$)()).subscribe(i=>{this.loggedInUser=i}),this.loggedInUser?this.cprService.getFavoris().pipe((0,Je.M)(i=>this.store.dispatch(le({payload:i})))):(0,te.of)(!0)}}return(s=n).\u0275fac=function(t){return new(t||s)(e.KVO(S.il),e.KVO(G))},s.\u0275prov=e.jDH({token:s,factory:s.\u0275fac}),n})();var Qe=_(97656),dn=_(55430),pn=_(52486),et=_(45016);let tt=(()=>{var s;class n{constructor(t,r){this.googleMapsService=t,this.cprService=r}resolve(t,r){const i=t.queryParams.matricule;return i?this.cprService.getAdressesByMatriculeSimple(i):(0,te.of)(null)}}return(s=n).\u0275fac=function(t){return new(t||s)(e.KVO(et.s),e.KVO(G))},s.\u0275prov=e.jDH({token:s,factory:s.\u0275fac}),n})();var ve=_(89085),pe=_(70152),fn=_(98071),mn=_(6450);function nt(s,n,o){return o?nt(s,n).pipe((0,mn.I)(o)):new ze.c(t=>{const r=(...a)=>t.next(1===a.length?a[0]:a),i=s(r);return(0,fn.T)(n)?()=>n(r,i):void 0})}const{getOwnPropertyNames:hn,getOwnPropertySymbols:Cn}=Object,{hasOwnProperty:En}=Object.prototype;function Te(s,n){return function(t,r,i){return s(t,r,i)&&n(t,r,i)}}function fe(s){return function(o,t,r){if(!o||!t||"object"!=typeof o||"object"!=typeof t)return s(o,t,r);const{cache:i}=r,a=i.get(o),l=i.get(t);if(a&&l)return a===t&&l===o;i.set(o,t),i.set(t,o);const c=s(o,t,r);return i.delete(o),i.delete(t),c}}function ot(s){return hn(s).concat(Cn(s))}const Pn=Object.hasOwn||((s,n)=>En.call(s,n));function w(s,n){return s===n||!s&&!n&&s!=s&&n!=n}const Sn="__v",Rn="__o",Mn="_owner",{getOwnPropertyDescriptor:st,keys:rt}=Object;function An(s,n){return s.byteLength===n.byteLength&&me(new Uint8Array(s),new Uint8Array(n))}function On(s,n,o){let t=s.length;if(n.length!==t)return!1;for(;t-- >0;)if(!o.equals(s[t],n[t],t,t,s,n,o))return!1;return!0}function Nn(s,n){return s.byteLength===n.byteLength&&me(new Uint8Array(s.buffer,s.byteOffset,s.byteLength),new Uint8Array(n.buffer,n.byteOffset,n.byteLength))}function vn(s,n){return w(s.getTime(),n.getTime())}function Tn(s,n){return s.name===n.name&&s.message===n.message&&s.cause===n.cause&&s.stack===n.stack}function In(s,n){return s===n}function it(s,n,o){const t=s.size;if(t!==n.size)return!1;if(!t)return!0;const r=new Array(t),i=s.entries();let a,l,c=0;for(;(a=i.next())&&!a.done;){const u=n.entries();let d=!1,p=0;for(;(l=u.next())&&!l.done;){if(r[p]){p++;continue}const h=a.value,g=l.value;if(o.equals(h[0],g[0],c,p,s,n,o)&&o.equals(h[1],g[1],h[0],g[0],s,n,o)){d=r[p]=!0;break}p++}if(!d)return!1;c++}return!0}const bn=w;function Ln(s,n,o){const t=rt(s);let r=t.length;if(rt(n).length!==r)return!1;for(;r-- >0;)if(!ct(s,n,o,t[r]))return!1;return!0}function ne(s,n,o){const t=ot(s);let i,a,l,r=t.length;if(ot(n).length!==r)return!1;for(;r-- >0;)if(i=t[r],!ct(s,n,o,i)||(a=st(s,i),l=st(n,i),(a||l)&&(!a||!l||a.configurable!==l.configurable||a.enumerable!==l.enumerable||a.writable!==l.writable)))return!1;return!0}function $n(s,n){return w(s.valueOf(),n.valueOf())}function yn(s,n){return s.source===n.source&&s.flags===n.flags}function at(s,n,o){const t=s.size;if(t!==n.size)return!1;if(!t)return!0;const r=new Array(t),i=s.values();let a,l;for(;(a=i.next())&&!a.done;){const c=n.values();let u=!1,d=0;for(;(l=c.next())&&!l.done;){if(!r[d]&&o.equals(a.value,l.value,a.value,l.value,s,n,o)){u=r[d]=!0;break}d++}if(!u)return!1}return!0}function me(s,n){let o=s.byteLength;if(n.byteLength!==o||s.byteOffset!==n.byteOffset)return!1;for(;o-- >0;)if(s[o]!==n[o])return!1;return!0}function kn(s,n){return s.hostname===n.hostname&&s.pathname===n.pathname&&s.protocol===n.protocol&&s.port===n.port&&s.hash===n.hash&&s.username===n.username&&s.password===n.password}function ct(s,n,o,t){return!(t!==Mn&&t!==Rn&&t!==Sn||!s.$$typeof&&!n.$$typeof)||Pn(n,t)&&o.equals(s[t],n[t],t,t,s,n,o)}const Dn="[object ArrayBuffer]",Fn="[object Arguments]",Un="[object Boolean]",Gn="[object DataView]",xn="[object Date]",Bn="[object Error]",jn="[object Map]",wn="[object Number]",Xn="[object Object]",Vn="[object RegExp]",Hn="[object Set]",zn="[object String]",Yn={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array
1]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},Wn="[object URL]",Zn=Object.prototype.toString;const oe=x();function x(s={}){const{circular:n=!1,createInternalComparator:o,createState:t,strict:r=!1}=s,i=function Jn({circular:s,createCustomConfig:n,strict:o}){let t={areArrayBuffersEqual:An,areArraysEqual:o?ne:On,areDataViewsEqual:Nn,areDatesEqual:vn,areErrorsEqual:Tn,areFunctionsEqual:In,areMapsEqual:o?Te(it,ne):it,areNumbersEqual:bn,areObjectsEqual:o?ne:Ln,arePrimitiveWrappersEqual:$n,areRegExpsEqual:yn,areSetsEqual:o?Te(at,ne):at,areTypedArraysEqual:o?Te(me,ne):me,areUrlsEqual:kn,unknownTagComparators:void 0};if(n&&(t=Object.assign({},t,n(t))),s){const r=fe(t.areArraysEqual),i=fe(t.areMapsEqual),a=fe(t.areObjectsEqual),l=fe(t.areSetsEqual);t=Object.assign({},t,{areArraysEqual:r,areMapsEqual:i,areObjectsEqual:a,areSetsEqual:l})}return t}(s),a=function qn({areArrayBuffersEqual:s,areArraysEqual:n,areDataViewsEqual:o,areDatesEqual:t,areErrorsEqual:r,areFunctionsEqual:i,areMapsEqual:a,areNumbersEqual:l,areObjectsEqual:c,arePrimitiveWrappersEqual:u,areRegExpsEqual:d,areSetsEqual:p,areTypedArraysEqual:h,areUrlsEqual:g,unknownTagComparators:P}){return function(f,m,E){if(f===m)return!0;if(null==f||null==m)return!1;const L=typeof f;if(L!==typeof m)return!1;if("object"!==L)return"number"===L?l(f,m,E):"function"===L&&i(f,m,E);const D=f.constructor;if(D!==m.constructor)return!1;if(D===Object)return c(f,m,E);if(Array.isArray(f))return n(f,m,E);if(D===Date)return t(f,m,E);if(D===RegExp)return d(f,m,E);if(D===Map)return a(f,m,E);if(D===Set)return p(f,m,E);const T=Zn.call(f);if(T===xn)return t(f,m,E);if(T===Vn)return d(f,m,E);if(T===jn)return a(f,m,E);if(T===Hn)return p(f,m,E);if(T===Xn)return"function"!=typeof f.then&&"function"!=typeof m.then&&c(f,m,E);if(T===Wn)return g(f,m,E);if(T===Bn)return r(f,m,E);if(T===Fn)return c(f,m,E);if(Yn[T])return h(f,m,E);if(T===Dn)return s(f,m,E);if(T===Gn)return o(f,m,E);if(T===Un||T===wn||T===zn)return u(f,m,E);if(P){let q=P[T];if(!q){const k=function gn(s){return null!=s?s[Symbol.toStringTag]:void 0}(f);k&&(q=P[k])}if(q)return q(f,m,E)}return!1}}(i),l=o?o(a):function Kn(s){return function(n,o,t,r,i,a,l){return s(n,o,l)}}(a);return function Qn({circular:s,comparator:n,createState:o,equals:t,strict:r}){if(o)return function(l,c){const{cache:u=(s?new WeakMap:void 0),meta:d}=o();return n(l,c,{cache:u,equals:t,meta:d,strict:r})};if(s)return function(l,c){return n(l,c,{cache:new WeakMap,equals:t,meta:void 0,strict:r})};const i={cache:void 0,equals:t,meta:void 0,strict:r};return function(l,c){return n(l,c,i)}}({circular:n,comparator:a,createState:t,equals:l,strict:r})}x({strict:!0}),x({circular:!0}),x({circular:!0,strict:!0}),x({createInternalComparator:()=>w}),x({strict:!0,createInternalComparator:()=>w}),x({circular:!0,createInternalComparator:()=>w}),x({circular:!0,createInternalComparator:()=>w,strict:!0});const lt=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],M=new Uint32Array(96);class be{static from(n){if(!n||void 0===n.byteLength||n.buffer)throw new Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");const[o,t]=new Uint8Array(n,0,2);if(219!==o)throw new Error("Data does not appear to be in a KDBush format.");const r=t>>4;if(1!==r)throw new Error(`Got v${r} data when expected v1.`);const i=lt[15&t];if(!i)throw new Error("Unrecognized array type.");const[a]=new Uint16Array(n,2,1),[l]=new Uint32Array(n,4,1);return new be(l,a,i,void 0,n)}constructor(n,o=64,t=Float64Array,r=ArrayBuffer,i){if(isNaN(n)||n<0)throw new Error(`Unexpected numItems value: ${n}.`);this.numItems=+n,this.nodeSize=Math.min(Math.max(+o,2),65535),this.ArrayType=t,this.IndexArrayType=n<65536?Uint16Array:Uint32Array;const a=lt.indexOf(this.ArrayType),l=2*n*this.ArrayType.BYTES_PER_ELEMENT,c=n*this.IndexArrayType.BYTES_PER_ELEMENT,u=(8-c%8)%8;if(a<0)throw new Error(`Unexpected typed array class: ${t}.`);if(i)this.data=i,this.ids=new this.IndexArrayType(i,8,n),this.coords=new t(i,8+c+u,2*n),this._pos=2*n,this._finished=!0;else{const d=this.data=new r(8+l+c+u);this.ids=new this.IndexArrayType(d,8,n),this.coords=new t(d,8+c+u,2*n),this._pos=0,this._finished=!1,new Uint8Array(d,0,2).set([219,16+a]),new Uint16Array(d,2,1)[0]=o,new Uint32Array(d,4,1)[0]=n}}add(n,o){const t=this._pos>>1;return this.ids[t]=t,this.coords[this._pos++]=n,this.coords[this._pos++]=o,t}finish(){const n=this._pos>>1;if(n!==this.numItems)throw new Error(`Added ${n} items when expected ${this.numItems}.`);return Le(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(n,o,t,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:a,nodeSize:l}=this;M[0]=0,M[1]=i.length-1,M[2]=0;let c=3;const u=[];for(;c>0;){const d=M[--c],p=M[--c],h=M[--c];if(p-h<=l){for(let f=h;f<=p;f++){const m=a[2*f],E=a[2*f+1];m>=n&&m<=t&&E>=o&&E<=r&&u.push(i[f])}continue}const g=h+p>>1,P=a[2*g],N=a[2*g+1];P>=n&&P<=t&&N>=o&&N<=r&&u.push(i[g]),(0===d?n<=P:o<=N)&&(M[c++]=h,M[c++]=g-1,M[c++]=1-d),(0===d?t>=P:r>=N)&&(M[c++]=g+1,M[c++]=p,M[c++]=1-d)}return u}within(n,o,t){const r=[];return this.withinInto(n,o,t,r),r}withinInto(n,o,t,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:a,nodeSize:l}=this;M[0]=0,M[1]=i.length-1,M[2]=0;let c=3,u=0;const d=t*t;
vendor: 7,904 bytes, line 1
1for(;c>0;){const p=M[--c],h=M[--c],g=M[--c];if(h-g<=l){for(let m=g;m<=h;m++)_t(a[2*m],a[2*m+1],n,o)<=d&&(r[u++]=i[m]);continue}const P=g+h>>1,N=a[2*P],f=a[2*P+1];_t(N,f,n,o)<=d&&(r[u++]=i[P]),(0===p?n-t<=N:o-t<=f)&&(M[c++]=g,M[c++]=P-1,M[c++]=1-p),(0===p?n+t>=N:o+t>=f)&&(M[c++]=P+1,M[c++]=h,M[c++]=1-p)}return u}}function Le(s,n,o,t,r,i){if(r-t<=o)return;const a=t+r>>1;ut(s,n,a,t,r,i),Le(s,n,o,t,a-1,1-i),Le(s,n,o,a+1,r,1-i)}function ut(s,n,o,t,r,i){for(;r>t;){if(r-t>600){const u=r-t+1,d=o-t+1,p=Math.log(u),h=.5*Math.exp(2*p/3),g=.5*Math.sqrt(p*h*(u-h)/u)*(d-u/2<0?-1:1);ut(s,n,o,Math.max(t,Math.floor(o-d*h/u+g)),Math.min(r,Math.floor(o+(u-d)*h/u+g)),i)}const a=n[2*o+i];let l=t,c=r;for(re(s,n,t,o),n[2*r+i]>a&&re(s,n,t,r);l<c;){for(re(s,n,l,c),l++,c--;n[2*l+i]<a;)l++;for(;n[2*c+i]>a;)c--}n[2*t+i]===a?re(s,n,t,c):(c++,re(s,n,c,r)),c<=o&&(t=c+1),o<=c&&(r=c-1)}}function re(s,n,o,t){$e(s,o,t),$e(n,2*o,2*t),$e(n,2*o+1,2*t+1)}function $e(s,n,o){const t=s[n];s[n]=s[o],s[o]=t}function _t(s,n,o,t){const r=s-o,i=n-t;return r*r+i*i}const eo={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:s=>s},dt=Math.fround||(s=>n=>(s[0]=+n,s[0]))(new Float32Array(1)),B=3,j=5,pt=6;class ft{constructor(n){this.options=Object.assign(Object.create(eo),n),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(n){const{log:o,minZoom:t,maxZoom:r}=this.options;o&&console.time("total time");const i=`prepare ${n.length} points`;o&&console.time(i),this.points=n;const a=[];for(let c=0;c<n.length;c++){const u=n[c];if(!u.geometry)continue;const[d,p]=u.geometry.coordinates,h=dt(he(d)),g=dt(Ce(p));a.push(h,g,1/0,c,-1,1),this.options.reduce&&a.push(0)}let l=this.trees[r+1]=this._createTree(a);o&&console.timeEnd(i);for(let c=r;c>=t;c--){const u=+Date.now();l=this.trees[c]=this._createTree(this._cluster(l,c)),o&&console.log("z%d: %d clusters in %dms",c,l.numItems,+Date.now()-u)}return o&&console.timeEnd("total time"),this}getClusters(n,o){let t=((n[0]+180)%360+360)%360-180;const r=Math.max(-90,Math.min(90,n[1]));let i=180===n[2]?180:((n[2]+180)%360+360)%360-180;const a=Math.max(-90,Math.min(90,n[3]));if(n[2]-n[0]>=360)t=-180,i=180;else if(t>i){const p=this.getClusters([t,r,180,a],o),h=this.getClusters([-180,r,i,a],o);return p.concat(h)}const l=this.trees[this._limitZoom(o)],c=l.range(he(t),Ce(a),he(i),Ce(r)),u=l.data,d=[];for(const p of c){const h=this.stride*p;d.push(u[h+j]>1?mt(u,h,this.clusterProps):this.points[u[h+B]])}return d}getChildren(n){const o=this._getOriginId(n),t=this._getOriginZoom(n),r="No cluster with the specified id.",i=this.trees[t];if(!i)throw new Error(r);const a=i.data;if(o*this.stride>=a.length)throw new Error(r);const l=this.options.radius/(this.options.extent*Math.pow(2,t-1)),d=i.within(a[o*this.stride],a[o*this.stride+1],l),p=[];for(const h of d){const g=h*this.stride;a[g+4]===n&&p.push(a[g+j]>1?mt(a,g,this.clusterProps):this.points[a[g+B]])}if(0===p.length)throw new Error(r);return p}getLeaves(n,o,t){const r=[];return this._appendLeaves(r,n,o=o||10,t=t||0,0),r}getTile(n,o,t){const r=this.trees[this._limitZoom(n)],i=Math.pow(2,n),{extent:a,radius:l}=this.options,c=l/a,u=(t-c)/i,d=(t+1+c)/i,p={features:[]};return this._addTileFeatures(r.range((o-c)/i,u,(o+1+c)/i,d),r.data,o,t,i,p),0===o&&this._addTileFeatures(r.range(1-c/i,u,1,d),r.data,i,t,i,p),o===i-1&&this._addTileFeatures(r.range(0,u,c/i,d),r.data,-1,t,i,p),p.features.length?p:null}getClusterExpansionZoom(n){let o=this._getOriginZoom(n)-1;for(;o<=this.options.maxZoom;){const t=this.getChildren(n);if(o++,1!==t.length)break;n=t[0].properties.cluster_id}return o}_appendLeaves(n,o,t,r,i){const a=this.getChildren(o);for(const l of a){const c=l.properties;if(c&&c.cluster?i+c.point_count<=r?i+=c.point_count:i=this._appendLeaves(n,c.cluster_id,t,r,i):i<r?i++:n.push(l),n.length===t)break}return i}_createTree(n){const o=new be(n.length/this.stride|0,this.options.nodeSize,Float32Array);for(let t=0;t<n.length;t+=this.stride)o.add(n[t],n[t+1]);return o.finish(),o.data=n,o}_addTileFeatures(n,o,t,r,i,a){for(const l of n){const c=l*this.stride,u=o[c+j]>1;let d,p,h;if(u)d=ht(o,c,this.clusterProps),p=o[c],h=o[c+1];else{const N=this.points[o[c+B]];d=N.properties;const[f,m]=N.geometry.coordinates;p=he(f),h=Ce(m)}const g={type:1,geometry:[[Math.round(this.options.extent*(p*i-t)),Math.round(this.options.extent*(h*i-r))]],tags:d};let P;P=u||this.options.generateId?o[c+B]:this.points[o[c+B]].id,void 0!==P&&(g.id=P),a.features.push(g)}}_limitZoom(n){return Math.max(this.options.minZoom,Math.min(Math.floor(+n),this.options.maxZoom+1))}_cluster(n,o){const{radius:t,extent:r,reduce:i,minPoints:a}=this.options,l=t/(r*Math.pow(2,o)),c=n.data,u=[],d=this.stride;for(let p=0;p<c.length;p+=d){if(c[p+2]<=o)continue;c[p+2]=o;const h=c[p],g=c[p+1],P=n.within(c[p],c[p+1],l),N=c[p+j];let f=N;for(const m of P){const E=m*d;c[E+2]>o&&(f+=c[E+j])}if(f>N&&f>=a){let L,m=h*N,E=g*N,D=-1;const T=(p/d<<5)+(o+1)+this.points.length;for(const q of P){const k=q*d;if(c[k+2]<=o)continue;c[k+2]=o;const Nt=c[k+j];m+=c[k]*Nt,E+=c[k+1]*Nt,c[k+4]=T,i&&(L||(L=this._map(c,p,!0),D=this.clusterProps.length,this.clusterProps.push(L)),i(L,this._map(c,k)))}c[p+4]=T,u.push(m/f,E/f,1/0,T,-1,f),i&&u.push(D)}else{for(let m=0;m<d;m++)u.push(c[p+m]);if(f>1)for(const m of P){const E=m*d;if(!(c[E+2]<=o)){c[E+2]=o;for(let L=0;L<d;L++)u.push(c[E+L])}}}}return u}_getOriginId(n){return n-this.points.length>>5}_getOriginZoom(n){return(n-this.points.length)%32}_map(n,o,t){if(n[o+j]>1){const a=this.clusterProps[n[o+pt]];return t?Object.assign({},a):a}const r=this.points[n[o+B]].properties,i=this.options.map(r);return t&&i===r?Object.assign({},i):i}}function mt(s,n,o){return{type:"Feature",id:s[n+B],properties:ht(s,n,o),geometry:{type:"Point",coordinates:[to(s[n]),no(s[n+1])]}}}function ht(s,n,o){const t=s[n+j],r=t>=1e4?`${Math.round(t/1e3)}k`:t>=1e3?Math.round(t/100)/10+"k":t,i=s[n+pt],a=-1===i?{}:Object.assign({},o[i]);return Object.assign(a,{cluster:!0,cluster_id:s[n+B],point_count:t,point_count_abbreviated:r})}function he(s){return s/360+.5}function Ce(s){const n=Math.sin(s*Math.PI/180),o=.5-.25*Math.log((1+n)/(1-n))/Math.PI;return o<0?0:o>1?1:o}function to(s){return 360*(s-.5)}function no(s){const n=(180-360*s)*Math.PI/180;return 360*Math.atan(Math.exp(n))/Math.PI-90}"function"==typeof SuppressedError&&SuppressedError;class v{static isAdvancedMarkerAvailable(n){return google.maps.marker&&!0===n.getMapCapabilities().isAdvancedMarkersAvailable}static isAdvancedMarker(n){return google.maps.marker&&n instanceof google.maps.marker.AdvancedMarkerElement}static setMap(n,o){this.isAdvancedMarker(n)?n.map=o:n.setMap(o)}static getPosition(n){if(this.isAdvancedMarker(n)){if(n.position){if(n.position instanceof google.maps.LatLng)return n.position;if(Number.isFinite(n.position.lat)&&Number.isFinite(n.position.lng))return new google.maps.LatLng(n.position.lat,n.position.lng)}return new google.maps.LatLng(null)}return n.getPosition()}static getVisible(n){return!!this.isAdvancedMarker(n)||n.getVisible()}}class V{constructor({markers:n,position:o}){this.markers=[],n&&(this.markers=n),o&&(this._position=o instanceof google.maps.LatLng?o:new google.maps.LatLng(o))}get bounds(){if(0===this.markers.length&&!this._position)return;const n=new google.maps.LatLngBounds(this._position,this._position);for(const o of this.markers)n.extend(v.getPosition(o));return n}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(n=>v.getVisible(n)).length}push(n){this.markers.push(n)}delete(){this.marker&&(v.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}function $(s,n="assertion failed"){if(null==s)throw Error(n)}class De{constructor({maxZoom:n=16}){this.maxZoom=n}noop({markers:n}){return co(n)}}const co=s=>s.map(o=>new V({position:v.getPosition(o),markers:[o]}));
vendor: 1,056 bytes, line 1
1class lo extends De{constructor(n){var{maxZoom:o,radius:t=60}=n,r=function ie(s,n){var o={};for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&n.indexOf(t)<0&&(o[t]=s[t]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(t=Object.getOwnPropertySymbols(s);r<t.length;r++)n.indexOf(t[r])<0&&Object.prototype.propertyIsEnumerable.call(s,t[r])&&(o[t[r]]=s[t[r]])}return o}(n,["maxZoom","radius"]);super({maxZoom:o}),this.markers=[],this.clusters=[],this.state={zoom:-1},this.superCluster=new ft(Object.assign({maxZoom:this.maxZoom,radius:t},r))}calculate(n){let o=!1,t=n.map.getZoom();$(t),t=Math.round(t);const r={zoom:t};if(!oe(n.markers,this.markers)){o=!0,this.markers=[...n.markers];const i=this.markers.map(a=>{const l=v.getPosition(a);return{type:"Feature",geometry:{type:"Point",coordinates:[l.lng(),l.lat()]},properties:{marker:a}}});this.superCluster.load(i)}return o||(this.state.zoom<=this.maxZoom||r.zoom<=this.maxZoom)&&(o=!oe(this.state,r)),this.state=r,0===n.markers.length?(this.clusters=[],{clusters:this.cluster
1s,changed:o}):(o&&(this.clusters=this.cluster(n)),{clusters:this.clusters,changed:o})}cluster({map:n}){const o=n.getZoom();return $(o),this.superCluster.getClusters([-180,-90,180,90],Math.round(o)).map(t=>this.transformCluster(t))}transformCluster({geometry:{coordinates:[n,o]},properties:t}){if(t.cluster)return new V({markers:this.superCluster.getLeaves(t.cluster_id,1/0).map(i=>i.properties.marker),position:{lat:o,lng:n}});const r=t.marker;return new V({markers:[r],position:v.getPosition(r)})}}class uo{constructor(n,o){this.markers={sum:n.length};const t=o.map(i=>i.count),r=t.reduce((i,a)=>i+a,0);this.clusters={count:o.length,markers:{mean:r/o.length,sum:r,min:Math.min(...t),max:Math.max(...t)}}}}class _o{render({count:n,position:o},t,r){const a=`<svg fill="${n>Math.max(10,t.clusters.markers.mean)?"#ff0000":"#0000ff"}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">\n<circle cx="120" cy="120" opacity=".6" r="70" />\n<circle cx="120" cy="120" opacity=".3" r="90" />\n<circle cx="120" cy="120" opacity=".2" r="110" />\n<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${n}</text>\n</svg>`,l=`Cluster of ${n} markers`,c=Number(google.maps.Marker.MAX_ZINDEX)+n;if(v.isAdvancedMarkerAvailable(r)){const p=(new DOMParser).parseFromString(a,"image/svg+xml").documentElement;return p.setAttribute("transform","translate(0 25)"),new google.maps.marker.AdvancedMarkerElement({map:r,position:o,zIndex:c,title:l,content:p})}const u={position:o,zIndex:c,title:l,icon:{url:`data:image/svg+xml;base64,${btoa(a)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(u)}}class Fe{constructor(){!function po(s,n){for(let o in n.prototype)s.prototype[o]=n.prototype[o]}(Fe,google.maps.OverlayView)}}var z=function(s){return s.CLUSTERING_BEGIN="clusteringbegin",s.CLUSTERING_END="clusteringend",s.CLUSTER_CLICK="click",s.GMP_CLICK="gmp-click",s}(z||{});const fo=(s,n,o)=>{n.bounds&&o.fitBounds(n.bounds)};class mo extends Fe{constructor({map:n,markers:o=[],algorithmOptions:t={},algorithm:r=new lo(t),renderer:i=new _o,onClusterClick:a=fo}){super(),this.map=null,this.idleListener=null,this.markers=[...o],this.clusters=[],this.algorithm=r,this.renderer=i,this.onClusterClick=a,n&&this.setMap(n)}addMarker(n,o){this.markers.includes(n)||(this.markers.push(n),o||this.render())}addMarkers(n,o){n.forEach(t=>{this.addMarker(t,!0)}),o||this.render()}removeMarker(n,o){const t=this.markers.indexOf(n);return-1!==t&&(v.setMap(n,null),this.markers.splice(t,1),o||this.render(),!0)}removeMarkers(n,o){let t=!1;return n.forEach(r=>{t=this.removeMarker(r,!0)||t}),t&&!o&&this.render(),t}clearMarkers(n){this.markers.length=0,n||this.render()}render(){const n=this.getMap();if(n instanceof google.maps.Map&&n.getProjection()){google.maps.event.trigger(this,z.CLUSTERING_BEGIN,this);const{clusters:o,changed:t}=this.algorithm.calculate({markers:this.markers,map:n,mapCanvasProjection:this.getProjection()});if(t||null==t){const r=new Set;for(const a of o)1==a.markers.length&&r.add(a.markers[0]);const i=[];for(const a of this.clusters)null!=a.marker&&(1==a.markers.length?r.has(a.marker)||v.setMap(a.marker,null):i.push(a.marker));this.clusters=o,this.renderClusters(),requestAnimationFrame(()=>i.forEach(a=>v.setMap(a,null)))}google.maps.event.trigger(this,z.CLUSTERING_END,this)}}onAdd(){const n=this.getMap();$(n),this.idleListener=n.addListener("idle",this.render.bind(this)),this.render()}onRemove(){this.idleListener&&google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach(n=>v.setMap(n,null)),this.clusters.forEach(n=>n.delete()),this.clusters=[]}renderClusters(){const n=new uo(this.markers,this.clusters),o=this.getMap();this.clusters.forEach(t=>{if(1===t.markers.length)t.marker=t.markers[0];else if(t.marker=this.renderer.render(t,n,o),t.markers.forEach(r=>v.setMap(r,null)),this.onClusterClick){const r=v.isAdvancedMarker(t.marker)?z.GMP_CLICK:z.CLUSTER_CLICK;t.marker.addListener(r,i=>{google.maps.event.trigger(this,z.CLUSTER_CLICK,t),this.onClusterClick(i,t,o)})}v.setMap(t.marker,o)})}}var Ee=_(89079),Ue=_(92995),I=_(34006),Ge=_(82798);function ho(s,n){if(1&s&&(e.j41(0,"mat-option",8),e.EFF(1),e.k0s()),2&s){const o=n.$implicit;e.Y8G("value",o),e.R7$(),e.SpI(" ",o.apt?"Appartement "+o.apt:o.matricule," ")}}let Co=(()=>{var s;
1class n{constructor(t,r,i){this.dialogRef=t,this.formBuilder=r,this.data=i,this.adresses=[]}ngOnInit(){this.adresses=this.data.adresses,this.libelleSelect=this.adresses.every(t=>!!t.apt)?"Appartement":this.adresses.every(t=>!t.apt)?"Matricule":"Appartement ou matricule",this.form=this.formBuilder.group({selection:null})}onCloseConfirm(){this.form.value.selection&&this.dialogRef.close({numeroDossier:this.form.value.selection.numeroDossier,matricule:this.form.value.selection.matricule,confirm:!0})}onCloseCancel(){this.dialogRef.close({confirm:!1})}}return(s=n).\u0275fac=function(t){return new(t||s)(e.rXU(I.CP),e.rXU(A.ze),e.rXU(I.Vh))},s.\u0275cmp=e.VBU({type:s,selectors:[["select-ue-dialog"]],decls:10,vars:4,consts:()=>{let o,t;return o="ANNULER",t="CHOISIR",[o,t,["mat-dialog-title",""],[3,"formGroup"],["formControlName","selection",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],["mat-dialog-close","","mat-button","",3,"click"],["mat-button","",3,"click"],[3,"value"]]},template:function(t,r){1&t&&(e.j41(0,"h1",2),e.EFF(1),e.k0s(),e.j41(2,"form",3)(3,"mat-select",4),e.DNE(4,ho,2,2,"mat-option",5),e.k0s()(),e.j41(5,"mat-dialog-actions")(6,"button",6),e.bIt("click",function(){return r.onCloseCancel()}),e.pXf(7,0),e.k0s(),e.j41(8,"button",7),e.bIt("click",function(){return r.onCloseConfirm()}),e.pXf(9,1),e.k0s()()),2&t&&(e.R7$(),e.JRh(r.libelleSelect),e.R7$(),e.Y8G("formGroup",r.form),e.R7$(),e.Y8G("placeholder",r.libelleSelect),e.R7$(),e.Y8G("ngForOf",r.adresses))},dependencies:[Q.wT,Ge.VO,y.$z,I.tx,I.BI,I.E7,O.Sq,A.qT,A.BC,A.cb,A.j4,A.JD],encapsulation:2}),n})();var gt=_(14823);const Eo=()=>["/consultation-du-role","role"],go=s=>({id:s}),Po=s=>({matricule:s});function So(s,n){1&s&&e.nrm(0,"i",11)}function Ro(s,n){1&s&&e.nrm(0,"i",12)}function Mo(s,n){if(1&s&&(e.j41(0,"ion-card-content",13)(1,"a",14),e.nrm(2,"i",15),e.j41(3,"span"),e.pXf(4,0),e.k0s()()()),2&s){const o=e.XpG();e.R7$(),e.Y8G("routerLink",e.lJ4(2,Eo))("queryParams",o.mapInfoBox[0].numeroDossier?e.eq3(3,go,o.mapInfoBox[0].numeroDossier):e.eq3(5,Po,o.mapInfoBox[0].matricule))}}function Ao(s,n){if(1&s){const o=e.RV6();e.j41(0,"ion-card-content")(1,"div",16),e.pXf(2,1),e.k0s(),e.j41(3,"button",17),e.bIt("click",function(){e.eBV(o);const r=e.XpG();return e.Njj(r.openDialog())}),e.nrm(4,"i",15),e.j41(5,"span"),e.pXf(6,2),e.k0s()()()}}let Oo=(()=>{var s;class n{constructor(t,r,i,a){this.route=t,this.appConfig=r,this.dialog=i,this.router=a}ngOnInit(){this.mapInfoBox$=this.route.data.pipe((0,ve.E)("mapInfoBox")),this.mapInfoBoxSub=this.mapInfoBox$.subscribe(t=>{this.mapInfoBox=t})}openDialog(){this.dialog.open(Co,{data:{adresses:this.mapInfoBox},width:Ue.Uq.Medium}).afterClosed().subscribe(({confirm:r,numeroDossier:i,matricule:a})=>{r&&this.router.navigate(["/consultation-du-role","role"],{queryParams:i?{id:i}:{matricule:a}})})}ngOnDestroy(){this.mapInfoBoxSub&&this.mapInfoBoxSub.unsubscribe()}}return(s=n).\u0275fac=function(t){return new(t||s)(e.rXU(R.nX),e.rXU(Oe.o),e.rXU(I.bZ),e.rXU(R.Ix))},s.\u0275cmp=e.VBU({type:s,selectors:[["vplus-map-info-box"]],decls:10,vars:5,consts:()=>{let o,t,r;return o="R\xF4le d'\xE9valuation",t="Il y a plusieurs unit\xE9s d'\xE9valuation sur ce point",r="Choisir",[o,t,r,[1,"map-info-box-container"],[1,"img-container"],["class","ue-photo ue-photo-nondispo","matTooltip","Photo non disponible",4,"ngIf"],["class","ue-photo ue-photo-multiple",4,"ngIf"],[1,"content-container"],[1,"adresse-container"],["style","padding-top: 8px;",4,"ngIf"],[4,"ngIf"],["matTooltip","Photo non disponible",1,"ue-photo","ue-photo-nondispo"],[1,"ue-photo","ue-photo-multiple"],[2,"padding-top","8px"],["mat-raised-button","",1,"custom-button-full","custom-button-standard",3,"routerLink","queryParams"],[1,"icon-document"],[1,"padding-bottom-1"],["mat-raised-button","","color","primary",3,"click"]]},template:function(t,r){1&t&&(e.j41(0,"ion-card",3)(1,"div",4),e.DNE(2,So,1,0,"i",5)(3,Ro,1,0,"i",6),e.k0s(),e.j41(4,"div",7)(5,"ion-card-header",8)(6,"ion-card-subtitle"),e.EFF(7),e.k0s()(),e.DNE(8,Mo,5,7,"ion-card-content",9)(9,Ao,7,0,"ion-card-content",10),e.k0s()()),2&t&&(e.R7$(2),e.Y8G("ngIf",r.mapInfoBox.length<=1),e.R7$(),e.Y8G("ngIf",r.mapInfoBox.length>1),e.R7$(4),e.JRh(r.mapInfoBox[0].adresse),e.R7$(),e.Y8G("ngIf",r.mapInfoBox.length<=1),e.R7$(),e.Y8G("ngIf",r.mapInfoBox.length>1))},dependencies:[R.Wk,y.It,y.$z,gt.oV,O.bT,C.b_,C.I9,C.ME,C.HW,C.oY],styles:[".adresse-container[_ngcontent-%COMP%]{padding-bottom:8px}.ue-photo[_ngcontent-%COMP%]{height:90%;width:90%;background-position:center;background-size:contain;background-repeat:no-repeat}.ue-photo-nondispo[_ngcontent-%COMP%]{background-image:url(/assets/placeholders/cpr/[email protected])}.ue-photo-multiple[_ngcontent-%COMP%]{background-image:url(/assets/placeholders/cpr/[email protected])}"]}),n})();function No(s,n){1&s&&e.nrm(0,"vplus-map-info-box")}
1let vo=(()=>{var s;class n{constructor(){this.favoriMarkers=[],this.circles=[],this.mapInfoBox$=null,this.googleMapsService=(0,e.WQX)(et.s),this.route=(0,e.WQX)(R.nX),this.router=(0,e.WQX)(R.Ix),this.cprService=(0,e.WQX)(G),this.store=(0,e.WQX)(S.il),this.destroyRef=(0,e.WQX)(e.abz)}ngOnInit(){this.mapInfoBox$=this.route.data.pipe((0,ve.E)("mapInfoBox")),this.favoris$=this.store.select(J)}ngAfterViewInit(){this.prepareMap()}prepareMap(){let t;this.route.snapshot.queryParams.matricule?this.mapInfoBox$.pipe((0,F.$)(),(0,b.T)(r=>r[0])).subscribe(({coordonnees:r})=>{t={center:{lat:r.latitude,lng:r.longitude},zoom:18,fullscreenControl:!1,streetViewControl:!0,streetViewControlOptions:{position:3},cameraControl:!0,cameraControlOptions:{position:7}},this.createMap(t)}):this.cprService.getMunCoordonnees().pipe((0,Ee.pQ)(this.destroyRef)).subscribe(r=>{t={center:{lat:r.latitude,lng:r.longitude},zoom:15,streetViewControl:!0,streetViewControlOptions:{position:3},fullscreenControl:!1,cameraControl:!0,cameraControlOptions:{position:7}},this.createMap(t)})}createMap(t){this.map=this.googleMapsService.createMap("#google-map-container",t),this.createSelectionMarker(),nt(i=>this.map.addListener("bounds_changed",i)).pipe((0,Ee.pQ)(this.destroyRef),(0,pe.B)(200)).subscribe(()=>{this.drawAdresses()}),this.setFavorisMarkers()}createSelectionMarker(){let t={lat:0,lng:0},r=!1;const i={url:"assets/map/marker.png",scaledSize:new window.google.maps.Size(28,36)};this.route.snapshot.queryParams.matricule&&this.mapInfoBox$.pipe((0,F.$)(),(0,b.T)(a=>a[0])).subscribe(({coordonnees:a})=>{t={lat:a.latitude,lng:a.longitude},r=!0}),this.selectionMarker=this.googleMapsService.createMarker({position:t,map:this.map,visible:r,optimized:!1,icon:i,zIndex:99999999})}drawAdresses(){const t=this.map.getBounds(),r=t.getNorthEast().toJSON(),i=t.getSouthWest
1().toJSON();this.cprService.getMatriculesSimplesByBounds(i.lat,r.lat,i.lng,r.lng).pipe((0,Ee.pQ)(this.destroyRef)).subscribe(a=>{this.cluster&&this.cluster.clearMarkers(),this.circles.forEach(c=>c.setMap(null)),this.circles=[],a.forEach(c=>{const u=this.googleMapsService.createCircle(c.coordonnees.latitude,c.coordonnees.longitude);u.addListener("click",()=>{this.clickOnUE(c.matriculeSimple,{lat:c.coordonnees.latitude,lng:c.coordonnees.longitude})}),u.set("matriculeSimple",c.matriculeSimple),this.circles.push(u)});const l={render:({count:c,position:u})=>{let d=0;c>100?d=4:c>50?d=3:c>20?d=2:c>10&&(d=1);const h=53+6*d;return new google.maps.Marker({position:u,icon:{url:`assets/map/clusterer/m${d+1}.png`,scaledSize:new google.maps.Size(h,h),anchor:new google.maps.Point(h/2,h/2)},label:{text:String(c),color:"white",fontSize:"12px",fontWeight:"bold"},zIndex:Number(google.maps.Marker.MAX_ZINDEX)+c})}};this.cluster?this.cluster.addMarkers(this.circles):this.cluster=new mo({map:this.map,markers:this.circles,renderer:l})})}clickOnUE(t,{lat:r,lng:i}){this.selectionMarker.setPosition({lat:r,lng:i}),this.selectionMarker.setVisible(!0),this.router.navigate(["/consultation-du-role","carte"],{queryParams:{matricule:t}})}setFavorisMarkers(){this.favoris$.pipe((0,Ee.pQ)(this.destroyRef)).subscribe(t=>{t.forEach(r=>{this.favoriMarkers.find(i=>i.get("matricule")===r.matricule)||this.createFavoriMarker(r.coordonnees,r.matricule)}),this.favoriMarkers.forEach(r=>{const i=r.get("matricule");t.find(a=>a.matricule===i)||this.deleteFavoriMarker(i)})})}createFavoriMarker({latitude:t,longitude:r},i){const a=this.googleMapsService.createStar(this.map,t,r);a.addListener("click",()=>{this.clickOnUE(i.substring(0,12),{lat:t,lng:r})}),a.set("matricule",i),this.favoriMarkers.push(a)}deleteFavoriMarker(t){this.favoriMarkers.forEach((r,i)=>{if(r.get("matricule")==t)return this.favoriMarkers[i].setMap(null),void(this.favoriMarkers=[...this.favoriMarkers.slice(0,i),...this.favoriMarkers.slice(i+1)])})}}return(s=n).\u0275fac=function(t){return new(t||s)},s.\u0275cmp=e.VBU({type:s,selectors:[["vplus-map-panel"]],decls:4,vars:3,consts:[["id","cprMap"],["id","google-map-container"],[4,"ngIf"]],template:function(t,r){1&t&&(e.j41(0,"ion-content",0),e.nrm(1,"div",1),e.DNE(2,No,1,0,"vplus-map-info-box",2),e.nI1(3,"async"),e.k0s()),2&t&&(e.R7$(2),e.Y8G("ngIf",null!==e.bMT(3,1,r.mapInfoBox$)))},dependencies:[O.bT,C.W9,Oo,O.Jj],encapsulation:2}),n})(),To=(()=>{var s;class n{constructor(t,r,i){this.dialogRef=t,this.data=r,this.router=i}redirectAccueil(){this.router.navigate(["/accueil"]),setTimeout(()=>{this.dialogRef.close()},500)}}return(s=n).\u0275fac=function(t){return new(t||s)(e.rXU(I.CP),e.rXU(I.Vh),e.rXU(R.Ix))},s.\u0275cmp=e.VBU({type:s,selectors:[["vplus-service-indisponible-dialog"]],decls:11,vars:2,consts:()=>{let o;return o="Retourner \xE0 l'accueil",[o,[1,"not-found-container"],[1,"not-found-artwork"],["src","shared/assets/svg/not-found.svg"],[1,"not-found-content"],[1,"justify-center"],["mat-raised-button","",1,"custom-button-standard","custom-button-full",3,"click"]]},template:function(t,r){1&t&&(e.j41(0,"div",1)(1,"div",2),e.nrm(2,"img",3),e.k0s(),e.j41(3,"div",4)(4,"h2"),e.EFF(5),e.k0s(),e.j41(6,"p"),e.EFF(7),e.k0s(),e.j41(8,"div",5)(9,"button",6),e.bIt("click",function(){return r.redirectAccueil()}),e.pXf(10,0),e.k0s()()()()),2&t&&(e.R7$(5),e.JRh(r.data.title),e.R7$(2),e.JRh(r.data.content))},dependencies:[y.$z],styles:[".not-found-container[_ngcontent-%COMP%]{display:flex;max-width:800px;margin:36px auto 0;align-items:center;flex-wrap:wrap;justify-content:space-between;padding:0 24px}.not-found-container[_ngcontent-%COMP%]   .not-found-artwork[_ngcontent-%COMP%]{width:100%;text-align:center;margin-bottom:1.5rem}.not-found-container[_ngcontent-%COMP%]   .not-found-content[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}.not-found-container[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-top:0;font-weight:700}.not-found-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--standard-text-color);padding-bottom:1rem;line-height:1.5rem}.not-found-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:60%;height:auto;@include for-tablet-landscape-up{width: 100%;}}"]}),n})(),xe=(()=>{var s;
1class n{constructor(t,r){this.router=t,this.dialog=r,this.RATE_LIMIT_DURATION=36e4}resolve(t,r){return this.isRateLimited()&&this.showRateLimitDialog(),(0,te.of)(null)}isRateLimited(){const t=localStorage.getItem("rateLimitEnd");return t&&Date.now()<parseInt(t,10)}showRateLimitDialog(){this.dialog.open(To,{width:Ue.Uq.Medium,disableClose:!0,data:{title:"Limite de consultations par heure atteinte",content:"Le nombre maximum de consultations a \xE9t\xE9 temporairement atteint. Veuillez r\xE9essayer plus tard."}})}}return(s=n).\u0275fac=function(t){return new(t||s)(e.KVO(R.Ix),e.KVO(I.bZ))},s.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),n})();var ge=_(64075),Be=_(21413),je=_(59042),Y=_(32102),W=_(60850);const Io=["inputRef"];function bo(s,n){if(1&s){const o=e.RV6();e.j41(0,"mat-option",7),e.bIt("click",function(){const r=e.eBV(o).index,i=e.XpG();return e.Njj(i.onSelectAddress(r))}),e.EFF(1),e.k0s()}if(2&s){const o=n.$implicit;e.Y8G("value",o),e.R7$(),e.SpI(" ",o," ")}}function Lo(s,n){if(1&s&&(e.j41(0,"mat-option",11),e.EFF(1),e.k0s()),2&s){const o=n.$implicit;e.Y8G("value",o),e.R7$(),e.SpI(" ",o.apt?o.apt:o.matricule," ")}}function $o(s,n){if(1&s){const o=e.RV6();e.j41(0,"mat-form-field",8)(1,"mat-select",9),e.bIt("selectionChange",function(r){e.eBV(o);const i=e.XpG();return e.Njj(i.onSelectAppartement(r))}),e.DNE(2,Lo,2,2,"mat-option",10),e.k0s()()}if(2&s){const o=e.XpG();e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("placeholder",o.libelleSelect),e.R7$(),e.Y8G("ngForOf",o.aptArray)}}let Pt=(()=>{var s;class n extends ee.dI{constructor(t,r,i){super(),this.cprService=t,this.router=r,this.renderer=i,this.keyUpSubject$=new Be.B}ngOnInit(){this.id=(0,ge.SiN)(),this.keyUpSubject$.pipe((0,pe.B)(250),(0,ue.F)(),(0,Ne.Q)(this.destroy$)).subscribe(t=>{t&&this.autocompleteSearch(t.target.value)})}ngAfterViewInit(){this.inputRef=this.renderer.selectRootElement(this.inputView.nativeElement)}autocompleteSearch(t){if(!t||!/[a-zA-Z].*[a-zA-Z]/.test(t.trim()))return this.aptArray=null,void(this.listedItems=[]);this.cprService.autoCompleteAddress(t).pipe((0,Ne.Q)(this.destroy$)).subscribe(r=>{this.resultsArray=r,this.listedItems=0!==t.length?r.map(i=>i.adresse):[]},r=>this.listedItems=[])}selectAdresse(){1===this.selectedAddress.info.length?(this.inputRef.value="",this.aptArray=null,this.router.navigate(["/consultation-du-role","role"],{queryParams:this.selectedAddress.info[0].noDossier?{id:this.selectedAddress.info[0].noDossier}:{matricule:this.selectedAddress.info[0].matricule}})):(this.inputRef.value=this.selectedAddress.adresse,this.aptArray=this.selectedAddress.info,this.libelleSelect=this.aptArray.every(t=>!!t.apt)?"Appartement":this.aptArray.every(t=>!t.apt)?"Matricule":"Appartement ou matricule"),this.resultsArray=[],this.listedItems=[],this.inputRef.blur(),this.keyUpSubject$.next("")}onSelectAddress(t){this.selectedAddress=this.resultsArray[t],this.selectAdresse()}onSelectAppartement(t){const r=t.value.numeroDossier,i=t.value.matricule,a=t.value.apt;let l;l=this.selectedAddress.info.filter(c=>c.noDossier===r),0===l.length&&(l=this.selectedAddress.info.filter(c=>c.matricule===i)),l=l.filter(c=>c.apt===a),this.selectedAddress.info=l,this.selectAdresse()}ngOnDestroy(){super.ngOnDestroy()}}return(s=n).\u0275fac=function(t){return new(t||s)(e.rXU(G),e.rXU(R.Ix),e.rXU(e.sFG))},s.\u0275cmp=e.VBU({type:s,selectors:[["vplus-recherche-adresse"]],viewQuery:function(t,r){if(1&t&&e.GBs(Io,5),2&t){let i;e.mGM(i=e.lsd())&&(r.inputView=i.first)}},features:[e.Vt3],decls:8,vars:5,consts:()=>{let o;return o="Adresse...",[["inputRef",""],["auto","matAutocomplete"],["appearance","outline",1,"custom-search-input",3,"floatLabel"],["matPrefix","",1,"icon-search"],["matInput","","placeholder",o,"type","text",3,"keyup","id","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],["class","apt-field",3,"floatLabel",4,"ngIf"],[3,"click","value"],[1,"apt-field",3,"floatLabel"],[3,"selectionChange","placeholder"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]]},template:function(t,r){if(1&t){const i=e.RV6();e.j41(0,"mat-form-field",2),e.nrm(1,"i",3),e.j41(2,"input",4,0),e.bIt("keyup",function(l){return e.eBV(i),e.Njj(r.keyUpSubject$.next(l))}),e.k0s(),e.j41(4,"mat-autocomplete",null,1),e.DNE(6,bo,2,2,"mat-option",5),e.k0s()(),e.DNE(7,$o,3,3,"mat-form-field",6)}if(2&t){const i=e.sdS(5);e.Y8G("floatLabel","never"),e.R7$(2),e.Y8G("id",r.id)("matAutocomplete",i),e.R7$(4),e.Y8G("ngForOf",r.listedItems),e.R7$(),e.Y8G("ngIf",r.aptArray)}},dependencies:[je.fg,Y.rl,Y.JW,W.$3,Q.wT,W.pN,Ge.VO,O.Sq,O.bT],encapsulation:2}),n})();const yo=["inputRef"];function ko(s,n){if(1&s){const o=e.RV6();e.j41(0,"mat-option",7),e.bIt("click",function(){const r=e.eBV(o).index,i=e.XpG();return e.Njj(i.onSelectLot(r))}),e.EFF(1),e.k0s()}if(2&s){const o=n.$implicit;e.Y8G("value",o),e.R7$(),e.SpI(" ",o," ")}}function Do(s,n){if(1&s&&(e.j41(0,"mat-option",11),e.EFF(1),e.k0s()),2&s){const o=n.$implicit;e.Y8G("value",o),e.R7$(),e.SpI(" ",o.matricule," ")}}function Fo(s,n){if(1&s){const o=e.RV6();e.j41(0,"mat-form-field",8)(1,"mat-select",9),e.bIt("selectionChange",function(r){e.eBV(o);const i=e.XpG();return e.Njj(i.onSelectMatricule(r))}),e.DNE(2,Do,2,2,"mat-option",10),e.k0s()()}if(2&s){const o=e.XpG();e.Y8G("floatLabel","never"),e.R7$(2),e.Y8G("ngForOf",o.matriculeArray)}}let Uo=(()=>{var s;
1class n{constructor(t,r,i){this.cprService=t,this.router=r,this.renderer=i,this.keyUpSubject$=new Be.B}ngOnInit(){this.id=(0,ge.SiN)(),this.keyUpSubject$.pipe((0,pe.B)(250),(0,ue.F)()).subscribe(t=>{t&&this.autocompleteSearch(t.target.value)})}ngAfterViewInit(){this.inputRef=this.renderer.selectRootElement(this.inputView.nativeElement)}autocompleteSearch(t){if(!t||!/[a-zA-Z0-9].*[a-zA-Z0-9]/.test(t.trim()))return this.matriculeArray=null,void(this.listedItems=[]);this.cprService.autoCompleteLot(t).subscribe(r=>{this.resultsArray=r,this.listedItems=0!==t.length?r.map(i=>i.noLot):[]},r=>this.listedItems=[])}selectLot(){1===this.selectedLot.info.length?(this.inputRef.value="",this.router.navigate(["/consultation-du-role","role"],{queryParams:this.selectedLot.info[0].noDossier?{id:this.selectedLot.info[0].noDossier}:{matricule:this.selectedLot.info[0].matricule}})):(this.inputRef.value=this.selectedLot.noLot,this.matriculeArray=this.selectedLot.info),this.resultsArray=[],this.inputRef.blur(),this.keyUpSubject$.next("")}onSelectLot(t){this.selectedLot=this.resultsArray[t],this.selectLot()}onSelectMatricule(t){if(this.selectedLot.info.noDossier){const r=t.value.noDossier;this.selectedLot.info=this.selectedLot.info.filter(i=>i.noDossier===r)}else{const r=t.value.matricule;this.selectedLot.info=this.selectedLot.info.filter(i=>i.matricule===r)}this.selectLot()}ngOnDestroy(){this.matriculeArray=[]}}return(s=n).\u0275fac=function(t){return new(t||s)(e.rXU(G),e.rXU(R.Ix),e.rXU(e.sFG))},s.\u0275cmp=e.VBU({type:s,selectors:[["vplus-recherche-lot"]],viewQuery:function(t,r){if(1&t&&e.GBs(yo,5),2&t){let i;e.mGM(i=e.lsd())&&(r.inputView=i.first)}},decls:8,vars:5,consts:()=>{let o,t;return o="Num\xE9ro de lot...",t="Matricule",[["inputRef",""],["auto","matAutocomplete"],["appearance","outline",1,"custom-search-input",3,"floatLabel"],["matPrefix","",1,"icon-search"],["matInput","","placeholder",o,"type","text",3,"keyup","id","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"floatLabel",4,"ngIf"],[3,"click","value"],[3,"floatLabel"],["placeholder",t,3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]]},template:function(t,r){if(1&t){const i=e.RV6();e.j41(0,"mat-form-field",2),e.nrm(1,"i",3),e.j41(2,"input",4,0),e.bIt("keyup",function(l){return e.eBV(i),e.Njj(r.keyUpSubject$.next(l))}),e.k0s(),e.j41(4,"mat-autocomplete",null,1),e.DNE(6,ko,2,2,"mat-option",5),e.k0s()(),e.DNE(7,Fo,3,2,"mat-form-field",6)}if(2&t){const i=e.sdS(5);e.Y8G("floatLabel","never"),e.R7$(2),e.Y8G("id",r.id)("matAutocomplete",i),e.R7$(4),e.Y8G("ngForOf",r.listedItems),e.R7$(),e.Y8G("ngIf",r.matriculeArray)}},dependencies:[je.fg,Y.rl,Y.JW,W.$3,Q.wT,W.pN,Ge.VO,O.Sq,O.bT],encapsulation:2}),n})();const Go=["matriculeInput"],xo=["lotInput"];function Bo(s,n){if(1&s){const o=e.RV6();e.j41(0,"mat-option",6),e.bIt("click",function(){const r=e.eBV(o).index,i=e.XpG();return e.Njj(i.onSelectElement(r))}),e.EFF(1),e.k0s()}if(2&s){const o=n.$implicit;e.Y8G("value",o),e.R7$(),e.SpI(" ",o," ")}}let jo=(()=>{var s;class n{constructor(t,r,i){this.cprService=t,this.router=r,this.renderer=i,this.keyUpSubject$=new Be.B}ngOnInit(){this.id=(0,ge.SiN)(),this.keyUpSubject$.pipe((0,pe.B)(250),(0,ue.F)()).subscribe(t=>{t&&this.autocompleteSearch(t.target.value)})}ngAfterViewInit(){this.matriculeInputRef=this.renderer.selectRootElement(this.matriculeInput.nativeElement)}autocompleteSearch(t){t&&/[a-zA-Z0-9].*[a-zA-Z0-9]/.test(t.trim())?this.cprService.autoCompleteMatricule(t).subscribe(r=>{this.resultsArray=r,this.listedItems=0!==t.length?r.map(i=>i.matricule):[]},r=>this.listedItems=[]):this.listedItems=[]}selectElement(t){this.router.navigate(["/consultation-du-role","role"],{queryParams:t.noDossier?{id:t.noDossier}:{matricule:t.matricule}}),this.resultsArray=[],this.keyUpSubject$.next(""),this.matriculeInputRef.value="",this.matriculeInputRef.blur()}onSelectElement(t){this.selectElement(this.resultsArray[t])}}return(s=n).\u0275fac=function(t){return new(t||s)(e.rXU(G),e.rXU(R.Ix),e.rXU(e.sFG))},s.\u0275cmp=e.VBU({type:s,selectors:[["vplus-recherche-matricule"]],viewQuery:function(t,r){if(1&t&&(e.GBs(Go,5),e.GBs(xo,5)),2&t){let i;e.mGM(i=e.lsd())&&(r.matriculeInput=i.first),e.mGM(i=e.lsd())&&(r.lotInput=i.first)}},decls:7,vars:4,consts:()=>{let o;return o="Matricule...",[["matriculeInput",""],["auto","matAutocomplete"],["appearance","outline",1,"custom-search-input",3,"floatLabel"],["matPrefix","",1,"icon-search"],["matInput","","placeholder",o,"type","string",3,"keyup","id","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"click","value"]]},template:function(t,r){if(1&t){const i=e.RV6();e.j41(0,"mat-form-field",2),e.nrm(1,"i",3),e.j41(2,"input",4,0),e.bIt("keyup",function(l){return e.eBV(i),e.Njj(r.keyUpSubject$.next(l))}),e.k0s(),e.j41(4,"mat-autocomplete",null,1),e.DNE(6,Bo,2,2,"mat-option",5),e.k0s()()}if(2&t){const i=e.sdS(5);e.Y8G("floatLabel","never"),e.R7$(2),e.Y8G("id",r.id)("matAutocomplete",i),e.R7$(4),e.Y8G("ngForOf",r.listedItems)}},dependencies:[je.fg,Y.rl,Y.JW,W.$3,Q.wT,W.pN,O.Sq],encapsulation:2}),n})();function wo(s,n){1&s&&(e.j41(0,"section",19),e.nrm(1,"vplus-recherche-adresse",10),e.k0s())}function Xo(s,n){1&s&&(e.j41(0,"section",19),e.nrm(1,"vplus-recherche-matricule",10),e.k0s())}function Vo(s,n){1&s&&(e.j41(0,"section",19),e.nrm(1,"vplus-recherche-lot",10),e.k0s())}let Ho=(()=>{var s;
1class n{constructor(){}}return(s=n).\u0275fac=function(t){return new(t||s)},s.\u0275cmp=e.VBU({type:s,selectors:[["vplus-recherche"]],decls:37,vars:3,consts:()=>{let o,t,r,i,a,l;return o="Par adresse",t="Par matricule",r="Par num\xE9ro de lot",i="Adresse",a="Matricule",l="No de lot",[["searchType",""],o,t,r,i,a,l,["id","cprRecherche",1,"along-side-padding"],[1,"hide-mobile"],[1,"section-title"],[1,"horizontal-space"],[1,"hide-desktop"],["value","1"],["checked","","value","1"],["value","2"],["value","3"],["class","padding-top-2",4,"ngIf"],[1,"placeholder-icon"],["src","/assets/svg/cpr-artwork.svg"],[1,"padding-top-2"]]},template:function(t,r){if(1&t&&(e.j41(0,"ion-content",7)(1,"div",8)(2,"section")(3,"div",9)(4,"h2"),e.pXf(5,1),e.k0s(),e.nrm(6,"hr"),e.k0s(),e.nrm(7,"vplus-recherche-adresse",10),e.k0s(),e.j41(8,"section")(9,"div",9)(10,"h2"),e.pXf(11,2),e.k0s(),e.nrm(12,"hr"),e.k0s(),e.nrm(13,"vplus-recherche-matricule",10),e.k0s(),e.j41(14,"section")(15,"div",9)(16,"h2"),e.pXf(17,3),e.k0s(),e.nrm(18,"hr"),e.k0s(),e.nrm(19,"vplus-recherche-lot",10),e.k0s()(),e.j41(20,"div",11)(21,"ion-segment",12,0)(23,"ion-segment-button",13)(24,"ion-label"),e.pXf(25,4),e.k0s()(),e.j41(26,"ion-segment-button",14)(27,"ion-label"),e.pXf(28,5),e.k0s()(),e.j41(29,"ion-segment-button",15)(30,"ion-label"),e.pXf(31,6),e.k0s()()(),e.DNE(32,wo,2,0,"section",16)(33,Xo,2,0,"section",16)(34,Vo,2,0,"section",16),e.j41(35,"div",17),e.nrm(36,"img",18),e.k0s()()()),2&t){const i=e.sdS(22);e.R7$(32),e.Y8G("ngIf","1"===i.value),e.R7$(),e.Y8G("ngIf","2"===i.value),e.R7$(),e.Y8G("ngIf","3"===i.value)}},dependencies:[O.bT,C.W9,C.he,C.Gp,C.eP,C.Je,Pt,Uo,jo],encapsulation:2}),n})();var zo=_(2578),Yo=_.n(zo);let Wo=(()=>{var s;class n{constructor(t,r){this.dialogRef=t,this.data=r,this.adresse="",this.numeroDossier=""}ngOnInit(){this.numeroDossier=this.data.numeroDossier,this.adresse=this.data.adresse}onCloseConfirm(t){this.dialogRef.close({confirm:!0,alias:t})}onCloseCancel(){this.dialogRef.close({confirm:!1})}}return(s=n).\u0275fac=function(t){return new(t||s)(e.rXU(I.CP),e.rXU(I.Vh))},s.\u0275cmp=e.VBU({type:s,selectors:[["my-alias-dialog"]],decls:10,vars:1,consts:()=>{let o,t,r;return o="Nommer votre favori",t="ANNULER",r="OK",[["input",""],o,t,r,["mat-dialog-title",""],["autofocus","","type","text",3,"keyup.enter","placeholder"],["mat-dialog-close","","mat-button","",3,"click"],["mat-button","",3,"click"]]},template:function(t,r){if(1&t){const i=e.RV6();e.j41(0,"h1",4),e.pXf(1,1),e.k0s(),e.j41(2,"mat-dialog-content")(3,"input",5,0),e.bIt("keyup.enter",function(){e.eBV(i);const l=e.sdS(4);return e.Njj(r.onCloseConfirm(l.value))}),e.k0s()(),e.j41(5,"mat-dialog-actions")(6,"button",6),e.bIt("click",function(){return e.eBV(i),e.Njj(r.onCloseCancel())}),e.pXf(7,2),e.k0s(),e.j41(8,"button",7),e.bIt("click",function(){e.eBV(i);const l=e.sdS(4);return e.Njj(r.onCloseConfirm(l.value))}),e.pXf(9,3),e.k0s()()}2&t&&(e.R7$(3),e.Y8G("placeholder",r.adresse))},dependencies:[y.$z,I.tx,I.BI,I.E7,I.Yi],encapsulation:2}),n})();var Zo=_(78718);const qo=s=>({"role-ripple":s}),St=()=>["/consultation-du-role","carte"],Rt=s=>({matricule:s});function Jo(s,n){if(1&s&&(e.j41(0,"option",24),e.EFF(1),e.k0s()),2&s){const o=n.$implicit,t=e.XpG().ngIf;e.Y8G("selected",o===t.annee)("value",o),e.R7$(),e.JRh(o)}}function Ko(s,n){if(1&s){const o=e.RV6();e.j41(0,"ion-content",3)(1,"div",4)(2,"div",5),e.nrm(3,"vplus-recherche-adresse",6),e.j41(4,"div",7)(5,"button",8),e.nI1(6,"async"),e.nI1(7,"async"),e.bIt("click",function(){const r=e.eBV(o).ngIf,i=e.XpG();return e.Njj(i.addFavori(r.numeroDossier,r.adresse,r.coordonnees,r.role.matricule))}),e.nrm(8,"i",9),e.k0s(),e.j41(9,"a",10),e.nrm(10,"i",11),e.k0s(),e.j41(11,"a",12),e.bIt("click",function(){e.eBV(o);const r=e.XpG();return e.Njj(r.downloadPDF())}),e.nrm(12,"i",13),e.k0s()(),e.j41(13,"ion-fab",14)(14,"ion-fab-button",15),e.nrm(15,"ion-icon",16),e.k0s(),e.j41(16,"ion-fab-list")(17,"ion-fab-button",17),e.nI1(18,"async"),e.nI1(19,"async"),e.bIt("click",function(){const r=e.eBV(o).ngIf,i=e.XpG();
1return e.Njj(i.addFavori(r.numeroDossier,r.adresse,r.coordonnees,r.role.matricule))}),e.nrm(20,"ion-icon",9),e.k0s(),e.j41(21,"ion-fab-button",18),e.nrm(22,"ion-icon",11),e.k0s(),e.j41(23,"ion-fab-button",19),e.nrm(24,"ion-icon",13),e.k0s()()()(),e.j41(25,"div",20)(26,"h2"),e.EFF(27),e.k0s(),e.j41(28,"p"),e.pXf(29,1),e.k0s(),e.j41(30,"select",21,0),e.bIt("change",function(){e.eBV(o);const r=e.sdS(31),i=e.XpG();return e.Njj(i.changeRoleYear(r.value))}),e.DNE(32,Jo,2,3,"option",22),e.k0s()(),e.nrm(33,"vplus-role",23),e.k0s()()}if(2&s){const o=n.ngIf,t=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(22,qo,t.isLoading)),e.R7$(4),e.Y8G("disabled",e.bMT(6,14,o.isFavori$)||!e.bMT(7,16,t.isLoggedIn$)),e.R7$(4),e.Y8G("routerLink",e.lJ4(24,St))("queryParams",e.eq3(25,Rt,o.role.matricule.substring(0,12))),e.R7$(8),e.Y8G("disabled",e.bMT(18,18,o.isFavori$)||!e.bMT(19,20,t.isLoggedIn$)),e.R7$(4),e.Y8G("routerLink",e.lJ4(27,St))("queryParams",e.eq3(28,Rt,o.role.matricule.substring(0,12))),e.R7$(2),e.BMQ("href",t.pdfUrl),e.R7$(4),e.SpI(" ",t.appOrganisation," "),e.R7$(3),e.Y8G("disabled",o.anneesFormattes.length<=1)("value",o.anneesFormattes[o.anneesFormattes.length-1]),e.R7$(2),e.Y8G("ngForOf",o.anneesFormattes.slice().reverse()),e.R7$(),e.Y8G("rapport",o.role)("adressHide",o.isAdresseProprioHidden)}}let Qo=(()=>{var s;class n{constructor(t,r,i,a,l,c){this.dialog=t,this.router=r,this.route=i,this.store=a,this.backendService=l,this.appConfig=c}ngOnInit(){this.appOrganisation=this.appConfig.appConfig.appOrganisation,this.ue$=this.route.data.pipe((0,ve.E)("ue")),this.isLoggedIn$=this.store.select(K.selectIsLoggedIn),this.ueSub=this.ue$.subscribe(t=>{if(t){const r=null!=t&&t.matricule?t.matricule.replace(/(?:-0+)+$/,""):(null==t?void 0:t.numeroDossier)||"",i=`${t.annee}-${t.annee+1}-${t.annee+2}`;this.ue=t,this.pdfUrl=this.backendService.buildApiUrl(t.numeroDossier?`/role/pdf?numeroDossier=${t.numeroDossier}&anneeRole=${t.annee}`:`/role/pdf?matricule=${t.matricule}&anneeRole=${t.annee}`),this.setRipple(1e3),this.fileName=r?`role_${r}_${i}.pdf`:"role.pdf",t.isFavori$.subscribe(a=>{this.isFavori=a})}})}setRipple(t){this.isLoading=!0,setTimeout(()=>{this.isLoading=!1},t)}changeRoleYear(t){const r={annee:t.slice(0,4)};this.router.navigate([],{queryParams:r,queryParamsHandling:"merge"})}addFavori(t,r,i,a){this.dialog.open(Wo,{data:{numeroDossier:t,adresse:r},width:Ue.Uq.Medium}).afterClosed().subscribe(({confirm:c,alias:u})=>{c&&this.store.dispatch(Se({payload:{id:(0,ge.SiN)(),alias:u,numeroDossier:t,adresse:r,matricule:a,coordonnees:i}}))})}downloadPDF(){this.ue&&this.backendService.getBlobFile(this.pdfUrl,!0).subscribe(r=>{const i=window.URL.createObjectURL(r);window.open(i,"_blank"),Yo().saveAs(r,this.fileName)})}ngOnDestroy(){this.ueSub&&this.ueSub.unsubscribe()}}return(s=n).\u0275fac=function(t){return new(t||s)(e.rXU(I.bZ),e.rXU(R.Ix),e.rXU(R.nX),e.rXU(S.il),e.rXU(ee.m3),e.rXU(Oe.o))},s.\u0275cmp=e.VBU({type:s,selectors:[["vplus-role-panel"]],decls:2,vars:3,consts:()=>{let o,t,r,i,a,l,c;return o="Ajouter aux favoris",t="Afficher sur la carte",r="T\xE9l\xE9charger au format PDF",i="Ajouter aux favoris",a="Afficher sur la carte",l="T\xE9l\xE9charger au format PDF",c="En vigueur pour les exercices financiers :",[["selectRole",""],c,["id","rolePanel","class","role-container",4,"ngIf"],["id","rolePanel",1,"role-container"],[3,"ngClass"],[1,"role-container-header"],[1,"horizontal-space"],[1,"role-toolbar","hide-mobile"],["mat-fab","","matTooltip",o,"color","primary",3,"click","disabled"],[1,"icon-favoris"],["mat-fab","","color","primary","matTooltip",t,3,"routerLink","queryParams"],[1,"icon-map"],["mat-fab","","color","primary","matTooltip",r,3,"click"],[1,"icon-pdf"],["vertical","top","horizontal","end","slot","fixed",1,"hide-desktop"],[1,"vplus-fab-primary"],[1,"icon-more-vertical"],["matTooltip",i,1,"vplus-fab-light",3,"click","disabled"],["matTooltip",a,1,"vplus-fab-light",3,"routerLink","queryParams"],["matTooltip",l,"target","_blank",1,"vplus-fab-light"],[1,"role-container-content"],[1,"select-year",3,"change","disabled","value"],[3,"selected","value",4,"ngFor","ngForOf"],[1,"vertical-space",3,"rapport","adressHide"],[3,"selected","value"]]},template:function(t,r){1&t&&(e.DNE(0,Ko,34,30,"ion-content",2),e.nI1(1,"async")),2&t&&e.Y8G("ngIf",e.bMT(1,1,r.ue$))},dependencies:[R.Wk,y.FH,y.Sr,gt.oV,O.YU,O.Sq,O.bT,A.xH,A.y7,C.W9,C.Q8,C.YW,C.OL,C.iq,C.N7,C.oY,Zo.a,Pt,O.Jj],encapsulation:2}),n})();var we=_(99437),es=_(27468);const Pe="/role/search";let Mt=(()=>{var s;
1class n{constructor(t,r){this.backendService=t,this.route=r}searchByNoDossier(t,r=null,i=null,a=null){const l={noDossier:t,...!!r&&{dernierRole:r},...!!i&&{anneeDebutRole:i},...!!a&&{top:a}};return this.backendService.get(`${Pe}/info-ue?`,l)}searchAnneesByNoDossier(t,r=null,i=null,a=null){const l={noDossier:t,...!!r&&{dernierRole:r},...!!i&&{anneeDebutRole:i},...!!a&&{top:a}};return this.backendService.get(`${Pe}/annees-ue?`,l)}searchByMatricule(t,r=null,i=null,a=null){const l={matricule:t,...!!r&&{dernierRole:r},...!!i&&{anneeDebutRole:i},...!!a&&{top:a}};return this.backendService.get(`${Pe}/info-ue?`,l)}searchAnneesByMatricule(t,r=null,i=null,a=null){const l={matricule:t,...!!r&&{dernierRole:r},...!!i&&{anneeDebutRole:i},...!!a&&{top:a}};return this.backendService.get(`${Pe}/annees-ue?`,l)}}return(s=n).\u0275fac=function(t){return new(t||s)(e.KVO(ee.m3),e.KVO(R.nX))},s.\u0275prov=e.jDH({token:s,factory:s.\u0275fac}),n})(),At=(()=>{var s;class n{constructor(t,r,i,a){this.uesService=t,this.consultesRecemmentService=r,this.store=i,this.router=a,this.RATE_LIMIT_DURATION=36e4}resolve(t,r){const i=t.queryParams.annee,a=t.queryParams.id,l=t.queryParams.matricule;return a?this.fetchDataAndProcess(this.getAnneesRole$(a),this.getRole$(a,i),a,l):this.fetchDataAndProcess(this.getAnneesRoleByMatricule$(l),this.getRoleByMatricule$(l,i),a,l)}fetchDataAndProcess(t,r,i,a){return(0,es.p)(t,r).pipe((0,Je.M)(([l,{adresseFormatte:d,coordonnees:p}])=>{this.consultesRecemmentService.add$({matricule:a,numeroDossier:i,adresse:d,coordonnees:p}).subscribe()}),(0,b.T)(([l,{rapport:c,anneeDebutRole:u,adresseFormatte:d,coordonnees:p,isAdresseProprioHidden:h}])=>{const g=l.map(P=>`${P} - ${P+1} - ${P+2}`);return{annees:l,anneesFormattes:g,role:c,annee:u,adresse:d,numeroDossier:i,matricule:a,coordonnees:p,isAdresseProprioHidden:h,isFavori$:this.store.select(i?Ve(i):Tt(a))}}),(0,we.W)(l=>{if(429===l.status){const c=Date.now()+this.RATE_LIMIT_DURATION;return localStorage.setItem("rateLimitEnd",c.toString()),this.router.navigate(["consultation-du-role","recherche"])}return(0,te.of)(null)}))}getAnneesRole$(t){return this.uesService.searchAnneesByNoDossier(t,null,null,1e3).pipe((0,b.T)(r=>r.map(i=>i.anneeDebutRole)))}getRole$(t,r){return this.uesService.searchByNoDossier(t,!r,r).pi
1pe((0,b.T)(i=>i[0]))}getSearchByYearObject(t){return t?{type:"anneeDebutRole",value:t,partial:!0}:{type:"dernierRole",value:"1"}}getAnneesRoleByMatricule$(t){return this.uesService.searchAnneesByMatricule(t,null,null,1e3).pipe((0,b.T)(r=>r.map(i=>i.anneeDebutRole)))}getRoleByMatricule$(t,r){return this.uesService.searchByMatricule(t,!r,r).pipe((0,b.T)(i=>i[0]))}}return(s=n).\u0275fac=function(t){return new(t||s)(e.KVO(Mt),e.KVO(de),e.KVO(S.il),e.KVO(R.Ix))},s.\u0275prov=e.jDH({token:s,factory:s.\u0275fac}),n})();const ts=R.iI.forChild([{path:"",component:cn,resolve:{favoris:Ke,consultesRecemment:Ye},children:[{path:"role",runGuardsAndResolvers:"paramsOrQueryParamsChange",component:Qo,resolve:{ue:At,rate:xe}},{path:"recherche",runGuardsAndResolvers:"paramsOrQueryParamsChange",component:Ho,resolve:{rate:xe}},{path:"mes-adresses",runGuardsAndResolvers:"paramsOrQueryParamsChange",component:Ze,data:{menuId:"rechercheMobile"}},{path:"carte",runGuardsAndResolvers:"paramsOrQueryParamsChange",component:vo,resolve:{googleMaps:Qe.R,mapInfoBox:tt}},{path:"",redirectTo:"recherche",pathMatch:"full"}]},{path:"",component:_n,outlet:"header"},{path:"",component:qe,outlet:"mobile-tabs"},{path:"connexion/:target",component:pn.n,canActivate:[dn.Q]},{path:"**",redirectTo:"/accueil",pathMatch:"full"}]);var Z=_(77339),ns=_(39974),os=_(54360),ss=_(57908);let is=(()=>{var s;class n{constructor(t,r,i){this.dialog=t,this.localStorageService=r,this.zone=i,this.favoris$=this.localStorageService.get$("favoris"),this.buff$=this.favoris$.pipe(function rs(s,n=null){return n=null!=n?n:s,(0,ns.N)((o,t)=>{let r=[],i=0;o.subscribe((0,os._)(t,a=>{let l=null;i++%n==0&&r.push([]);for(const c of r)c.push(a),s<=c.length&&(l=null!=l?l:[],l.push(c));if(l)for(const c of l)(0,ss.o)(r,c),t.next(c)},()=>{for(const a of r)t.next(a);t.complete()},void 0,()=>{r=null}))})}(2,1))}}return(s=n).\u0275fac=function(t){return new(t||s)(e.KVO(I.bZ),e.KVO(Ae),e.KVO(e.SKi))},s.\u0275prov=e.jDH({token:s,factory:s.\u0275fac}),n})();var Ot=_(18810);let as=(()=>{var s;class n{constructor(t,r,i){this.actions$=t,this.store=r,this.cprService=i,this.addFavori$=(0,Z.EH)(()=>this.actions$.pipe((0,Z.gp)(Se),(0,b.T)(()=>Re()),(0,we.W)(a=>(0,Ot.$)(a)))),this.saveFavoris$=(0,Z.EH)(()=>this.actions$.pipe((0,Z.gp)(Re),(0,Me.n)(()=>this.cprService.saveFavoris(this.favoris).pipe((0,we.W)(a=>(0,Ot.$)(a))))),{dispatch:!1}),this.favoris$=this.store.select(J),this.favorisSub=this.favoris$.subscribe(a=>{this.favoris=a})}ngOnDestroy(){this.favorisSub.unsubscribe()}}return(s=n).\u0275fac=function(t){return new(t||s)(e.KVO(Z.En),e.KVO(S.il),e.KVO(G))},s.\u0275prov=e.jDH({token:s,factory:s.\u0275fac}),n})();const cs=(0,S.vy)([],(0,S.on)(Se,(s,{payload:n})=>[...s,n]),(0,S.on)(le,(s,{payload:n})=>[...n]),(0,S.on)(He,(s,{payload:n})=>s.filter(o=>o.id!==n))),us={favoris:function ls(s,n){return cs(s,n)}};var _s=_(10916);let ds=(()=>{var s;class n{}return(s=n).\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.$C({type:s}),s.\u0275inj=e.G2t({providers:[de,is,Ae,Mt,G,Ye,Ke,Qe.R,tt,At,xe],imports:[ts,_s.G,S.md.forFeature("role",us),Z.Vm.forFeature([as])]}),n})()},55430:(vt,ae,_)=>{_.d(ae,{Q:()=>H});var F=_(35052),S=_(51188),ce=_(54438);const H=()=>{const J=(0,ce.WQX)(S.Ix);return!!(0,ce.WQX)(F.o).appConfig.allowConnection||J.createUrlTree(["page-non-trouvee"])}}}]);

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.