1"use strict";(self.webpackChunkpc=self.webpackChunkpc||[]).push([[1779],{41779:(vt,ae,p)=>{p.r(ae),p.d(ae,{CPRModule:()=>lr});var F=p(61594),P=p(9310);const H=(0,P.UX)("role"),J=(0,P.Mz)(H,r=>r.favoris),Xe=(0,P.Mz)(H,r=>r.favoris.length<1),Ve=r=>(0,P.Mz)(H,n=>n.favoris.some(o=>o.numeroDossier===r)),Tt=r=>(0,P.Mz)(H,n=>n.favoris.some(o=>o.matricule===r)),Se=(0,P.VP)("[CPR] ADD_FAVORI",(0,P.xk)()),le=(0,P.VP)("[CPR] SET_FAVORIS",(0,P.xk)()),Re=(0,P.VP)("[CPR] SAVE_FAVORIS"),He=(0,P.VP)("[CPR] DELETE_FAVORI",(0,P.xk)());var b=p(96354),It=p(5964),Me=p(25558),ue=p(23294),e=p(54438),_e=p(84412),ze=p(71985);let Ae=(()=>{var r;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)(s=>s.slice()))}set$(t,s){return ze.c.create(i=>{try{localStorage.setItem(t,JSON.stringify(s))}catch(a){i.error(a)}this[t]||(this[t]=new _e.t([])),this[t].next(s),i.next(),i.complete()})}}return(r=n).\u0275fac=function(t){return new(t||r)},r.\u0275prov=e.jDH({token:r,factory:r.\u0275fac}),n})(),de=(()=>{var r;class n{constructor(t,s){this.localStorageService=t,this.store=s,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)(s=>!!s.find(i=>i.numeroDossier===t)))}existByMatricule$(t){return this._consultesRecemment$.pipe((0,b.T)(s=>!!s.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(r=n).\u0275fac=function(t){return new(t||r)(e.KVO(Ae),e.KVO(P.il))},r.\u0275prov=e.jDH({token:r,factory:r.\u0275fac}),n})(),Ye=(()=>{var r;class n{constructor(t){this.consultesRecemmentService=t}resolve(t,s){return this.consultesRecemmentService.consultesRecemment$.pipe((0,F.$)())}}return(r=n).\u0275fac=function(t){return new(t||r)(e.KVO(de))},r.\u0275prov=e.jDH({token:r,factory:r.\u0275fac}),n})();var bt=p(37084),K=p(49823),S=p(51188),O=p(60177),Lt=p(81405),C=p(88974),Ze=p(3902),Q=p(86600),y=p(88834);const $t=()=>["/consultation-du-role","role"],yt=r=>({id:r}),kt=r=>({matricule:r});function Dt(r,n){if(1&r&&(e.j41(0,"li")(1,"a",7)(2,"p",8),e.EFF(3),e.k0s()()()),2&r){const o=n.$implicit;e.R7$(),e.Y8G("routerLink",e.lJ4(3,$t))("queryParams",o.numeroDossier?e.eq3(4,yt,o.numeroDossier):e.eq3(6,kt,o.matricule)),e.R7$(2),e.JRh(o.adresse)}}let Ft=(()=>{var r;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(r=n).\u0275fac=function(t){return new(t||r)(e.rXU(de))},r.\u0275cmp=e.VBU({type:r,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,s){1&t&&(e.j41(0,"h2",2),e.pXf(1,0),e.k0s(),e.j41(2,"ul",3),e.DNE(3,Dt,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 s.emptyHistory()}),e.pXf(8,1),e.k0s()()),2&t&&(e.R7$(3),e.Y8G("ngForOf",e.bMT(4,2,s.consultesRecemment$)),e.R7$(3),e.Y8G("disabled",e.bMT(7,4,s.emptyConsultesRecemment$)))},dependencies:[S.Wk,y.It,y.$z,O.Sq,C.oY,O.Jj],encapsulation:2}),n})();var Oe=p(35052),ee=p(17370),Ut=p(63851),Ne=p(56977),A=p(89417),Gt=p(75574);const xt=()=>["/consultation-du-role","role"],Bt=r=>({id:r}),jt=r=>({matricule:r});function wt(r,n){if(1&r){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 s=e.XpG();return e.Njj(s.redirectConnexionService.redirectConnection(s.redirectTo))}),e.pXf(4,2),e.k0s(),e.EFF(5,".\n"),e.k0s()}}
1function Xt(r,n){if(1&r&&(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&r){const o=n.$implicit,t=e.XpG(3);e.Y8G("routerLink",e.lJ4(4,xt))("queryParams",o.numeroDossier?e.eq3(5,Bt,o.numeroDossier):e.eq3(7,jt,o.matricule)),e.R7$(5),e.JRh(o.alias?o.alias:t.defaultFavoriAlias),e.R7$(2),e.JRh(o.adresse)}}function Vt(r,n){if(1&r&&(e.j41(0,"ion-list",17),e.DNE(1,Xt,8,9,"ion-item",18),e.nI1(2,"async"),e.k0s()),2&r){const o=e.XpG(2);e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,o.favoris$))}}function Ht(r,n){if(1&r){const o=e.RV6();e.j41(0,"ion-item",24)(1,"button",25),e.bIt("click",function(){const s=e.eBV(o).index,i=e.XpG(3);return e.Njj(i.deleteFavori(s))}),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&r){const o=n.index,t=e.XpG(3);e.Y8G("formGroupName",o),e.R7$(8),e.JRh(t.favoris[o].adresse)}}function zt(r,n){if(1&r&&(e.j41(0,"ul",22),e.DNE(1,Ht,9,2,"ion-item",23),e.k0s()),2&r){const o=e.XpG(2);e.R7$(),e.Y8G("ngForOf",o.form.controls)}}function Yt(r,n){if(1&r&&(e.j41(0,"form",14),e.nI1(1,"async"),e.DNE(2,Vt,3,3,"ion-list",15)(3,zt,2,1,"ul",16),e.k0s()),2&r){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 Zt(r,n){if(1&r){const o=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){e.eBV(o);const s=e.XpG();return e.Njj(s.cancelEdit())}),e.pXf(1,3),e.k0s()}}function Wt(r,n){if(1&r){const o=e.RV6();e.j41(0,"button",30),e.bIt("click",function(){e.eBV(o);const s=e.XpG();return e.Njj(s.saveFavoris())}),e.pXf(1,4),e.k0s()}}function qt(r,n){if(1&r){const o=e.RV6();e.j41(0,"button",30),e.bIt("click",function(){e.eBV(o);const s=e.XpG();return e.Njj(s.startEditMode())}),e.pXf(1,5),e.k0s()}}let Jt=(()=>{var r;class n extends ee.dI{constructor(t,s,i,a,l){super(),this.appConfig=t,this.formBuilder=s,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(r=n).\u0275fac=function(t){return new(t||r)(e.rXU(Oe.o),e.rXU(A.ze),e.rXU(Ut.x),e.rXU(S.Ix),e.rXU(P.il))},r.\u0275cmp=e.VBU({type:r,selectors:[["vplus-favoris"]],features:[e.Vt3],decls:12,vars:13,consts:()=>{let o,t,s,i,a,l,c;return o="Favoris",t="Pour consulter ou ajouter des favoris, veuillez ",s="vous connecter",i="Nom du favori...",a="Annuler",l="Enregistrer",c="Modifier les favoris",[o,t,s,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,s){1&t&&(e.j41(0,"h2",6),e.pXf(1,0),e.k0s(),e.DNE(2,wt,6,0,"div",7),e.nI1(3,"async"),e.DNE(4,Yt,4,7,"form",8),e.nI1(5,"async"),e.j41(6,"div",9),e.DNE(7,Zt,2,0,"button",10)(8,Wt,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,s.isLoggedIn$)),e.R7$(2),e.Y8G("ngIf",e.bMT(5,7,s.isLoggedIn$)),e.R7$(3),e.Y8G("ngIf",s.editMode),e.R7$(),e.Y8G("ngIf",s.editMode),e.R7$(),e.Y8G("ngIf",!s.editMode&&e.bMT(10,9,s.isLoggedIn$)&&!e.bMT(11,11,s.emptyFavoris$)))},dependencies:[S.Wk,y.$z,y.iY,O.Sq,O.bT,A.qT,A.BC,A.cb,A.j4,A.JD,A.$R,Gt.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 Kt=()=>["/consultation-du-role","recherche"],Qt=()=>["/consultation-du-role","carte"];let We=(()=>{var r;class n{constructor(t){this.route=t}ngOnInit(){var t;
1this.menuId=null!==(t=this.route.snapshot.data.menuId)&&void 0!==t?t:"mesAdressesDesktop"}}return(r=n).\u0275fac=function(t){return new(t||r)(e.rXU(S.nX))},r.\u0275cmp=e.VBU({type:r,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,s){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,Kt)),e.R7$(4),e.Y8G("routerLink",e.lJ4(4,Qt)))},dependencies:[S.Wk,S.wQ,Ze.jt,Ze.YE,Q.r6,C.W9,C.oY,Ft,Jt],encapsulation:2}),n})();const en=()=>["/consultation-du-role","mes-adresses"],tn=()=>["/consultation-du-role","recherche"],nn=()=>["/consultation-du-role","carte"];let qe=(()=>{var r;class n{constructor(){}}return(r=n).\u0275fac=function(t){return new(t||r)},r.\u0275cmp=e.VBU({type:r,selectors:[["vplus-cpr-tabs"]],decls:13,vars:6,consts:()=>{let o,t,s,i,a,l;return o="mes adresses",t="recherche",s="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",s,3,"routerLink"],[1,"icon-map"]]},template:function(t,s){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,en)),e.R7$(4),e.Y8G("routerLink",e.lJ4(4,tn)),e.R7$(4),e.Y8G("routerLink",e.lJ4(5,nn)))},dependencies:[S.Wk,S.wQ,C.iq,C.he,C.Jq,C.qW,C.N7],encapsulation:2}),n})();const on=r=>({"filter-searche-global-active":r});let rn=(()=>{var r;class n{constructor(t,s,i){this.store=t,this.router=s,this.appMetaTags=i,this.selectIsSearchHeaderVisible$=this.store.select(K.selectIsSearchHeaderVisible)}ngOnInit(){const t=window.innerWidth;this.redirect(t)}ionViewWillEnter(){this.appMetaTags.updateMetaTags("R\xf4le d'\xe9valuation")}onResize(t){this.redirect(t.target.innerWidth)}onContentClick(){this.store.dispatch(K.Actions.setIsSearchHeaderVisible({payload:!1}))}redirect(t){t>=960&&"/consultation-du-role/mes-adresses"===this.router.url&&this.router.navigate(["/consultation-du-role/recherche"])}}return(r=n).\u0275fac=function(t){return new(t||r)(e.rXU(P.il),e.rXU(S.Ix),e.rXU(bt.W))},r.\u0275cmp=e.VBU({type:r,selectors:[["vplus-cpr"]],decls:7,vars:6,consts:[["returnButtonType","home-button","headerTitle","",1,"hide-desktop","mobile-header",3,"menuId"],["id","cpr-main-area",3,"click","ngClass"],[1,"cpr-main-area",3,"resize"],[1,"hide-mobile","responsive-fixed-height"],[1,"along-side-page"]],template:function(t,s){1&t&&(e.nrm(0,"vplus-mobile-header",0),e.j41(1,"ion-content",1),e.nI1(2,"async"),e.bIt("click",function(){return s.onContentClick()}),e.j41(3,"div",2),e.bIt("resize",function(a){return s.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("ngClass",e.eq3(4,on,e.bMT(2,2,s.selectIsSearchHeaderVisible$))))},dependencies:[O.YU,Lt.f,C.W9,C.Rg,We,qe,O.Jj],encapsulation:2}),n})();const sn=()=>["/consultation-du-role","recherche"],an=()=>["/consultation-du-role","carte"];let cn=(()=>{var r;class n{constructor(){}}return(r=n).\u0275fac=function(t){return new(t||r)},r.\u0275cmp=e.VBU({type:r,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,s){1&t&&(e.j41(0,"ion-button",2),e.nrm(1,"ion-icon",3),e.
1EFF(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,sn)),e.R7$(5),e.Y8G("routerLink",e.lJ4(3,an)))},dependencies:[S.Wk,S.wQ,C.Jm,C.iq,C.N7],encapsulation:2}),n})();const U="/role/cpr";let G=(()=>{var r;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,s,i,a){return this.backendService.get(`${U}/matricules-simples-by-bounds/${t}/${s}/${i}/${a}`)}getAdressesByMatriculeSimple(t){return this.backendService.get(`${U}/adresses-by-matricule-simple/${t}`)}}return(r=n).\u0275fac=function(t){return new(t||r)(e.KVO(ee.m3))},r.\u0275prov=e.jDH({token:r,factory:r.\u0275fac}),n})();var Je=p(88141),te=p(7673);let Ke=(()=>{var r;class n{constructor(t,s){this.store=t,this.cprService=s}resolve(t,s){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(r=n).\u0275fac=function(t){return new(t||r)(e.KVO(P.il),e.KVO(G))},r.\u0275prov=e.jDH({token:r,factory:r.\u0275fac}),n})();var Qe=p(97656),ln=p(55430),un=p(52486),et=p(45016);let tt=(()=>{var r;class n{constructor(t,s){this.googleMapsService=t,this.cprService=s}resolve(t,s){const i=t.queryParams.matricule;return i?this.cprService.getAdressesByMatriculeSimple(i):(0,te.of)(null)}}return(r=n).\u0275fac=function(t){return new(t||r)(e.KVO(et.s),e.KVO(G))},r.\u0275prov=e.jDH({token:r,factory:r.\u0275fac}),n})();var ve=p(89085),pe=p(70152),_n=p(98071),dn=p(6450);function nt(r,n,o){return o?nt(r,n).pipe((0,dn.I)(o)):new ze.c(t=>{const s=(...a)=>t.next(1===a.length?a[0]:a),i=r(s);return(0,_n.T)(n)?()=>n(s,i):void 0})}const{getOwnPropertyNames:pn,getOwnPropertySymbols:fn}=Object,{hasOwnProperty:mn}=Object.prototype;function Te(r,n){return function(t,s,i){return r(t,s,i)&&n(t,s,i)}}function fe(r){return function(o,t,s){if(!o||!t||"object"!=typeof o||"object"!=typeof t)return r(o,t,s);const{cache:i}=s,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=r(o,t,s);return i.delete(o),i.delete(t),c}}function ot(r){return pn(r).concat(fn(r))}const Cn=Object.hasOwn||((r,n)=>mn.call(r,n));function w(r,n){return r===n||!r&&!n&&r!=r&&n!=n}const En="__v",gn="__o",Pn="_owner",{getOwnPropertyDescriptor:rt,keys:st}=Object;function Sn(r,n){return r.byteLength===n.byteLength&&me(new Uint8Array(r),new Uint8Array(n))}function Rn(r,n,o){let t=r.length;if(n.length!==t)return!1;for(;t-- >0;)if(!o.equals(r[t],n[t],t,t,r,n,o))return!1;return!0}function Mn(r,n){return r.byteLength===n.byteLength&&me(new Uint8Array(r.buffer,r.byteOffset,r.byteLength),new Uint8Array(n.buffer,n.byteOffset,n.byteLength))}function An(r,n){return w(r.getTime(),n.getTime())}function On(r,n){return r.name===n.name&&r.message===n.message&&r.cause===n.cause&&r.stack===n.stack}function Nn(r,n){return r===n}function it(r,n,o){const t=r.size;if(t!==n.size)return!1;if(!t)return!0;const s=new Array(t),i=r.entries();let a,l,c=0;for(;(a=i.next())&&!a.done;){const u=n.entries();let _=!1,d=0;for(;(l=u.next())&&!l.done;){if(s[d]){d++;continue}const h=a.value,E=l.value;if(o.equals(h[0],E[0],c,d,r,n,o)&&o.equals(h[1],E[1],h[0],E[0],r,n,o)){_=s[d]=!0;break}d++}if(!_)return!1;c++}return!0}const vn=w;function Tn(r,n,o){const t=st(r);let s=t.length;if(st(n).length!==s)return!1;for(;s-- >0;)if(!ct(r,n,o,t[s]))return!1;return!0}function ne(r,n,o){const t=ot(r);let i,a,l,s=t.length;if(ot(n).length!==s)return!1;for(;s-- >0;)if(i=t[s],!ct(r,n,o,i)||(a=rt(r,i),l=rt(n,i),(a||l)&&(!a||!l||a.configurable!==l.configurable||a.enumerable!==l.enumerable||a.writable!==l.writable)))return!1;return!0}function In(r,n){return w(r.valueOf(),n.valueOf())}function bn(r,n){return r.source===n.source&&r.flags===n.flags}function at(r,n,o){const t=r.size;if(t!==n.size)return!1;if(!t)return!0;const s=new Array(t),i=r.values();let a,l;for(;(a=i.next())&&!a.done;){const c=n.values();let u=!1,_=0;for(;(l=c.next())&&!l.done;){if(!s[_]&&o.equals(a.value,l.value,a.value,l.value,r,n,o)){u=s[_]=!0;break}_++}if(!u)return!1}return!0}function me(r,n){let o=r.byteLength;if(n.byteLength!==o||r.byteOffset!==n.byteOffset)return!1;for(;o-- >0;)if(r[o]!==n[o])return!1;return!0}function Ln(r,n){return r.hostname===n.hostname&&r.pathname===n.pathname&&r.protocol===n.protocol&&r.port===n.port&&r.hash===n.hash&&r.username===n.username&&r.password===n.password}
1function ct(r,n,o,t){return!(t!==Pn&&t!==gn&&t!==En||!r.$$typeof&&!n.$$typeof)||Cn(n,t)&&o.equals(r[t],n[t],t,t,r,n,o)}const $n="[object ArrayBuffer]",yn="[object Arguments]",kn="[object Boolean]",Dn="[object DataView]",Fn="[object Date]",Un="[object Error]",Gn="[object Map]",xn="[object Number]",Bn="[object Object]",jn="[object RegExp]",wn="[object Set]",Xn="[object String]",Vn={"[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]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},Hn="[object URL]",zn=Object.prototype.toString;const oe=x();function x(r={}){const{circular:n=!1,createInternalComparator:o,createState:t,strict:s=!1}=r,i=function Zn({circular:r,createCustomConfig:n,strict:o}){let t={areArrayBuffersEqual:Sn,areArraysEqual:o?ne:Rn,areDataViewsEqual:Mn,areDatesEqual:An,areErrorsEqual:On,areFunctionsEqual:Nn,areMapsEqual:o?Te(it,ne):it,areNumbersEqual:vn,areObjectsEqual:o?ne:Tn,arePrimitiveWrappersEqual:In,areRegExpsEqual:bn,areSetsEqual:o?Te(at,ne):at,areTypedArraysEqual:o?Te(me,ne):me,areUrlsEqual:Ln,unknownTagComparators:void 0};if(n&&(t=Object.assign({},t,n(t))),r){const s=fe(t.areArraysEqual),i=fe(t.areMapsEqual),a=fe(t.areObjectsEqual),l=fe(t.areSetsEqual);t=Object.assign({},t,{areArraysEqual:s,areMapsEqual:i,areObjectsEqual:a,areSetsEqual:l})}return t}(r),a=function Yn({areArrayBuffersEqual:r,areArraysEqual:n,areDataViewsEqual:o,areDatesEqual:t,areErrorsEqual:s,areFunctionsEqual:i,areMapsEqual:a,areNumbersEqual:l,areObjectsEqual:c,arePrimitiveWrappersEqual:u,areRegExpsEqual:_,areSetsEqual:d,areTypedArraysEqual:h,areUrlsEqual:E,unknownTagComparators:R}){return function(f,m,g){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,g):"function"===L&&i(f,m,g);const D=f.constructor;if(D!==m.constructor)return!1;if(D===Object)return c(f,m,g);if(Array.isArray(f))return n(f,m,g);if(D===Date)return t(f,m,g);if(D===RegExp)return _(f,m,g);if(D===Map)return a(f,m,g);if(D===Set)return d(f,m,g);const T=zn.call(f);if(T===Fn)return t(f,m,g);if(T===jn)return _(f,m,g);if(T===Gn)return a(f,m,g);if(T===wn)return d(f,m,g);if(T===Bn)return"function"!=typeof f.then&&"function"!=typeof m.then&&c(f,m,g);if(T===Hn)return E(f,m,g);if(T===Un)return s(f,m,g);if(T===yn)return c(f,m,g);if(Vn[T])return h(f,m,g);if(T===$n)return r(f,m,g);if(T===Dn)return o(f,m,g);if(T===kn||T===xn||T===Xn)return u(f,m,g);if(R){let q=R[T];if(!q){const k=function hn(r){return null!=r?r[Symbol.toStringTag]:void 0}(f);k&&(q=R[k])}if(q)return q(f,m,g)}return!1}}(i),l=o?o(a):function Wn(r){return function(n,o,t,s,i,a,l){return r(n,o,l)}}(a);return function qn({circular:r,comparator:n,createState:o,equals:t,strict:s}){if(o)return function(l,c){const{cache:u=(r?new WeakMap:void 0),meta:_}=o();return n(l,c,{cache:u,equals:t,meta:_,strict:s})};if(r)return function(l,c){return n(l,c,{cache:new WeakMap,equals:t,meta:void 0,strict:s})};const i={cache:void 0,equals:t,meta:void 0,strict:s};return function(l,c){return n(l,c,i)}}({circular:n,comparator:a,createState:t,equals:l,strict:s})}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 s=t>>4;if(1!==s)throw new Error(`Got v${s} 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,s=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 _=this.data=new s(8+l+c+u);this.ids=new this.IndexArrayType(_,8,n),this.coords=new t(_,8+c+u,2*n),this._pos=0,this._finished=!1,new Uint8Array(_,0,2).set([219,16+a]),new Uint16Array(_,2,1)[0]=o,new Uint32Array(_,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,s){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 _=M[--c],d=M[--c],h=M[--c];if(d-h<=l){for(let f=h;f<=d;f++){const m=a[2*f],g=a[2*f+1];m>=n&&m<=t&&g>=o&&g<=s&&u.push(i[f])}continue}const E=h+d>>1,R=a[2*E],N=a[2*E+1];R>=n&&R<=t&&N>=o&&N<=s&&u.push(i[E]),(0===_?n<=R:o<=N)&&(M[c++]=h,M[c++]=E-1,M[c++]=1-_),(0===_?t>=R:s>=N)&&(M[c++]=E+1,M[c++]=d,M[c++]=1-_)}return u}within(n,o,t){const s=[];return this.withinInto(n,o,t,s),s}withinInto(n,o,t,s){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 _=t*t;for(;c>0;){const d=M[--c],h=M[--c],E=M[--c];if(h-E<=l){for(let m=E;m<=h;m++)_t(a[2*m],a[2*m+1],n,o)<=_&&(s[u++]=i[m]);continue}const R=E+h>>1,N=a[2*R],f=a[2*R+1];
1_t(N,f,n,o)<=_&&(s[u++]=i[R]),(0===d?n-t<=N:o-t<=f)&&(M[c++]=E,M[c++]=R-1,M[c++]=1-d),(0===d?n+t>=N:o+t>=f)&&(M[c++]=R+1,M[c++]=h,M[c++]=1-d)}return u}}function Le(r,n,o,t,s,i){if(s-t<=o)return;const a=t+s>>1;ut(r,n,a,t,s,i),Le(r,n,o,t,a-1,1-i),Le(r,n,o,a+1,s,1-i)}function ut(r,n,o,t,s,i){for(;s>t;){if(s-t>600){const u=s-t+1,_=o-t+1,d=Math.log(u),h=.5*Math.exp(2*d/3),E=.5*Math.sqrt(d*h*(u-h)/u)*(_-u/2<0?-1:1);ut(r,n,o,Math.max(t,Math.floor(o-_*h/u+E)),Math.min(s,Math.floor(o+(u-_)*h/u+E)),i)}const a=n[2*o+i];let l=t,c=s;for(se(r,n,t,o),n[2*s+i]>a&&se(r,n,t,s);l<c;){for(se(r,n,l,c),l++,c--;n[2*l+i]<a;)l++;for(;n[2*c+i]>a;)c--}n[2*t+i]===a?se(r,n,t,c):(c++,se(r,n,c,s)),c<=o&&(t=c+1),o<=c&&(s=c-1)}}function se(r,n,o,t){$e(r,o,t),$e(n,2*o,2*t),$e(n,2*o+1,2*t+1)}function $e(r,n,o){const t=r[n];r[n]=r[o],r[o]=t}function _t(r,n,o,t){const s=r-o,i=n-t;return s*s+i*i}const Jn={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:r=>r},dt=Math.fround||(r=>n=>(r[0]=+n,r[0]))(new Float32Array(1)),B=3,j=5,pt=6;class ft{constructor(n){this.options=Object.assign(Object.create(Jn),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:s}=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]=u.geometry.coordinates,h=dt(he(_)),E=dt(Ce(d));a.push(h,E,1/0,c,-1,1),this.options.reduce&&a.push(0)}let l=this.trees[s+1]=this._createTree(a);o&&console.timeEnd(i);for(let c=s;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 s=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 d=this.getClusters([t,s,180,a],o),h=this.getClusters([-180,s,i,a],o);return d.concat(h)}const l=this.trees[this._limitZoom(o)],c=l.range(he(t),Ce(a),he(i),Ce(s)),u=l.data,_=[];for(const d of c){const h=this.stride*d;_.push(u[h+j]>1?mt(u,h,this.clusterProps):this.points[u[h+B]])}return _}getChildren(n){const o=this._getOriginId(n),t=this._getOriginZoom(n),s="No cluster with the specified id.",i=this.trees[t];if(!i)throw new Error(s);const a=i.data;if(o*this.stride>=a.length)throw new Error(s);const l=this.options.radius/(this.options.extent*Math.pow(2,t-1)),_=i.within(a[o*this.stride],a[o*this.stride+1],l),d=[];for(const h of _){const E=h*this.stride;a[E+4]===n&&d.push(a[E+j]>1?mt(a,E,this.clusterProps):this.points[a[E+B]])}if(0===d.length)throw new Error(s);return d}getLeaves(n,o,t){const s=[];return this._appendLeaves(s,n,o=o||10,t=t||0,0),s}getTile(n,o,t){const s=this.trees[this._limitZoom(n)],i=Math.pow(2,n),{extent:a,radius:l}=this.options,c=l/a,u=(t-c)/i,_=(t+1+c)/i,d={features:[]};return this._addTileFeatures(s.range((o-c)/i,u,(o+1+c)/i,_),s.data,o,t,i,d),0===o&&this._addTileFeatures(s.range(1-c/i,u,1,_),s.data,i,t,i,d),o===i-1&&this._addTileFeatures(s.range(0,u,c/i,_),s.data,-1,t,i,d),d.features.length?d: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,s,i){const a=this.getChildren(o);for(const l of a){const c=l.properties;if(c&&c.cluster?i+c.point_count<=s?i+=c.point_count:i=this._appendLeaves(n,c.cluster_id,t,s,i):i<s?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,s,i,a){for(const l of n){const c=l*this.stride,u=o[c+j]>1;let _,d,h;if(u)_=ht(o,c,this.clusterProps),d=o[c],h=o[c+1];else{const N=this.points[o[c+B]];_=N.properties;const[f,m]=N.geometry.coordinates;d=he(f),h=Ce(m)}const E={type:1,geometry:[[Math.round(this.options.extent*(d*i-t)),Math.round(this.options.extent*(h*i-s))]],tags:_};let R;R=u||this.options.generateId?o[c+B]:this.points[o[c+B]].id,void 0!==R&&(E.id=R),a.features.push(E)}}_limitZoom(n){return Math.max(this.options.minZoom,Math.min(Math.floor(+n),this.options.maxZoom+1))}_cluster(n,o){const{radius:t,extent:s,reduce:i,minPoints:a}=this.options,l=t/(s*Math.pow(2,o)),c=n.data,u=[],_=this.stride;for(let d=0;d<c.length;d+=_){if(c[d+2]<=o)continue;c[d+2]=o;const h=c[d],E=c[d+1],R=n.within(c[d],c[d+1],l),N=c[d+j];let f=N;for(const m of R){const g=m*_;c[g+2]>o&&(f+=c[g+j])}if(f>N&&f>=a){let L,m=h*N,g=E*N,D=-1;const T=(d/_<<5)+(o+1)+this.points.length;for(const q of R){const k=q*_;if(c[k+2]<=o)continue;c[k+2]=o;const Nt=c[k+j];m+=c[k]*Nt,g+=c[k+1]*Nt,c[k+4]=T,i&&(L||(L=this._map(c,d,!0),D=this.clusterProps.length,this.clusterProps.push(L)),i(L,this._map(c,k)))}c[d+4]=T,u.push(m/f,g/f,1/0,T,-1,f),i&&u.push(D)}else{for(let m=0;m<_;m++)u.push(c[d+m]);if(f>1)for(const m of R){const g=m*_;if(!(c[g+2]<=o)){c[g+2]=o;for(let L=0;L<_;L++)u.push(c[g+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 s=this.points[n[o+B]].properties,i=this.options.map(s);return t&&i===s?Object.assign({},i):i}}function mt(r,n,o){return{type:"Feature",id:r[n+B],properties:ht(r,n,o),geometry:{type:"Point",coordinates:[Kn(r[n]),Qn(r[n+1])]}}}function ht(r,n,o){const t=r[n+j],s=t>=1e4?`${Math.round(t/1e3)}k`:t>=1e3?Math.round(t/100)/10+"k":t,i=r[n+pt],a=-1===i?{}:Object.assign({},o[i]);return Object.assign(a,{cluster:!0,cluster_id:r[n+B],point_count:t,point_count_abbreviated:s})}function he(r){return r/360+.5}function Ce(r){const n=Math.sin(r*Math.PI/180),o=.5-.25*Math.log((1+n)/(1-n))/Math.PI;return o<0?0:o>1?1:o}function Kn(r){return 360*(r-.5)}function Qn(r){const n=(180-360*r)*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 $(r,n="assertion failed"){if(null==r)throw Error(n)}class De{constructor({maxZoom:n=16}){this.maxZoom=n}noop({markers:n}){return so(n)}}const so=r=>r.map(o=>new V({position:v.getPosition(o),markers:[o]}));
vendor: 1,056 bytes, line 1
1class io extends De{constructor(n){var{maxZoom:o,radius:t=60}=n,s=function ie(r,n){var o={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&n.indexOf(t)<0&&(o[t]=r[t]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(t=Object.getOwnPropertySymbols(r);s<t.length;s++)n.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(r,t[s])&&(o[t[s]]=r[t[s]])}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},s))}calculate(n){let o=!1,t=n.map.getZoom();$(t),t=Math.round(t);const s={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||s.zoom<=this.maxZoom)&&(o=!oe(this.state,s)),this.state=s,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 s=t.marker;return new V({markers:[s],position:v.getPosition(s)})}}class ao{constructor(n,o){this.markers={sum:n.length};const t=o.map(i=>i.count),s=t.reduce((i,a)=>i+a,0);this.clusters={count:o.length,markers:{mean:s/o.length,sum:s,min:Math.min(...t),max:Math.max(...t)}}}}class co{render({count:n,position:o},t,s){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(s)){const d=(new DOMParser).parseFromString(a,"image/svg+xml").documentElement;return d.setAttribute("transform","translate(0 25)"),new google.maps.marker.AdvancedMarkerElement({map:s,position:o,zIndex:c,title:l,content:d})}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 lo(r,n){for(let o in n.prototype)r.prototype[o]=n.prototype[o]}(Fe,google.maps.OverlayView)}}var z=function(r){return r.CLUSTERING_BEGIN="clusteringbegin",r.CLUSTERING_END="clusteringend",r.CLUSTER_CLICK="click",r.GMP_CLICK="gmp-click",r}(z||{});const uo=(r,n,o)=>{n.bounds&&o.fitBounds(n.bounds)};class _o extends Fe{constructor({map:n,markers:o=[],algorithmOptions:t={},algorithm:s=new io(t),renderer:i=new co,onClusterClick:a=uo}){super(),this.map=null,this.idleListener=null,this.markers=[...o],this.clusters=[],this.algorithm=s,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(s=>{t=this.removeMarker(s,!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 s=new Set;for(const a of o)1==a.markers.length&&s.add(a.markers[0]);const i=[];for(const a of this.clusters)null!=a.marker&&(1==a.markers.length?s.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 ao(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(s=>v.setMap(s,null)),this.onClusterClick){const s=v.isAdvancedMarker(t.marker)?z.GMP_CLICK:z.CLUSTER_CLICK;t.marker.addListener(s,i=>{google.maps.event.trigger(this,z.CLUSTER_CLICK,t),this.onClusterClick(i,t,o)})}v.setMap(t.marker,o)})}}var Ee=p(89079),Ue=p(51564),I=p(34006),Ge=p(82798);function po(r,n){if(1&r&&(e.j41(0,"mat-option",8),e.EFF(1),e.k0s()),2&r){const o=n.$implicit;e.Y8G("value",o),e.R7$(),e.SpI(" ",o.apt?"Appartement "+o.apt:o.matricule," ")}}let fo=(()=>{var r;class n{constructor(t,s,i){this.dialogRef=t,this.formBuilder=s,this.data=i,this.adresses=[]}ngOnInit(){this.adresses=this.data.adresses,this.libelleSelect=this.adresses.every(t=>!!t.apt)?"Appartement":this.adresses.every(t=>
1!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(r=n).\u0275fac=function(t){return new(t||r)(e.rXU(I.CP),e.rXU(A.ze),e.rXU(I.Vh))},r.\u0275cmp=e.VBU({type:r,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,s){1&t&&(e.j41(0,"h1",2),e.EFF(1),e.k0s(),e.j41(2,"form",3)(3,"mat-select",4),e.DNE(4,po,2,2,"mat-option",5),e.k0s()(),e.j41(5,"mat-dialog-actions")(6,"button",6),e.bIt("click",function(){return s.onCloseCancel()}),e.pXf(7,0),e.k0s(),e.j41(8,"button",7),e.bIt("click",function(){return s.onCloseConfirm()}),e.pXf(9,1),e.k0s()()),2&t&&(e.R7$(),e.JRh(s.libelleSelect),e.R7$(),e.Y8G("formGroup",s.form),e.R7$(),e.Y8G("placeholder",s.libelleSelect),e.R7$(),e.Y8G("ngForOf",s.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=p(14823);const mo=()=>["/consultation-du-role","role"],ho=r=>({id:r}),Co=r=>({matricule:r});function Eo(r,n){1&r&&e.nrm(0,"i",11)}function go(r,n){1&r&&e.nrm(0,"i",12)}function Po(r,n){if(1&r&&(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&r){const o=e.XpG();e.R7$(),e.Y8G("routerLink",e.lJ4(2,mo))("queryParams",o.mapInfoBox[0].numeroDossier?e.eq3(3,ho,o.mapInfoBox[0].numeroDossier):e.eq3(5,Co,o.mapInfoBox[0].matricule))}}function So(r,n){if(1&r){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 s=e.XpG();return e.Njj(s.openDialog())}),e.nrm(4,"i",15),e.j41(5,"span"),e.pXf(6,2),e.k0s()()()}}let Ro=(()=>{var r;class n{constructor(t,s,i,a){this.route=t,this.appConfig=s,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(fo,{data:{adresses:this.mapInfoBox},width:Ue.Uq.Medium}).afterClosed().subscribe(({confirm:s,numeroDossier:i,matricule:a})=>{s&&this.router.navigate(["/consultation-du-role","role"],{queryParams:i?{id:i}:{matricule:a}})})}ngOnDestroy(){this.mapInfoBoxSub&&this.mapInfoBoxSub.unsubscribe()}}return(r=n).\u0275fac=function(t){return new(t||r)(e.rXU(S.nX),e.rXU(Oe.o),e.rXU(I.bZ),e.rXU(S.Ix))},r.\u0275cmp=e.VBU({type:r,selectors:[["vplus-map-info-box"]],decls:10,vars:5,consts:()=>{let o,t,s;return o="R\xF4le d'\xE9valuation",t="Il y a plusieurs unit\xE9s d'\xE9valuation sur ce point",s="Choisir",[o,t,s,[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,s){1&t&&(e.j41(0,"ion-card",3)(1,"div",4),e.DNE(2,Eo,1,0,"i",5)(3,go,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,Po,5,7,"ion-card-content",9)(9,So,7,0,"ion-card-content",10),e.k0s()()),2&t&&(e.R7$(2),e.Y8G("ngIf",s.mapInfoBox.length<=1),e.R7$(),e.Y8G("ngIf",s.mapInfoBox.length>1),e.R7$(4),e.JRh(s.mapInfoBox[0].adresse),e.R7$(),e.Y8G("ngIf",s.mapInfoBox.length<=1),e.R7$(),e.Y8G("ngIf",s.mapInfoBox.length>1))},dependencies:[S.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 Mo(r,n){1&r&&e.nrm(0,"vplus-map-info-box")}
1let Ao=(()=>{var r;class n{constructor(){this.favoriMarkers=[],this.circles=[],this.mapInfoBox$=null,this.googleMapsService=(0,e.WQX)(et.s),this.route=(0,e.WQX)(S.nX),this.router=(0,e.WQX)(S.Ix),this.cprService=(0,e.WQX)(G),this.store=(0,e.WQX)(P.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)(s=>s[0])).subscribe(({coordonnees:s})=>{t={center:{lat:s.latitude,lng:s.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(s=>{t={center:{lat:s.latitude,lng:s.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},s=!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},s=!0}),this.selectionMarker=this.googleMapsService.createMarker({position:t,map:this.map,visible:s,optimized:!1,icon:i,zIndex:99999999})}drawAdresses(){const t=this.map.getBounds(),s=t.getNorthEast().toJSON(),i=t.getSouthWest
1().toJSON();this.cprService.getMatriculesSimplesByBounds(i.lat,s.lat,i.lng,s.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 _=0;c>100?_=4:c>50?_=3:c>20?_=2:c>10&&(_=1);const h=53+6*_;return new google.maps.Marker({position:u,icon:{url:`assets/map/clusterer/m${_+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 _o({map:this.map,markers:this.circles,renderer:l})})}clickOnUE(t,{lat:s,lng:i}){this.selectionMarker.setPosition({lat:s,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(s=>{this.favoriMarkers.find(i=>i.get("matricule")===s.matricule)||this.createFavoriMarker(s.coordonnees,s.matricule)}),this.favoriMarkers.forEach(s=>{const i=s.get("matricule");t.find(a=>a.matricule===i)||this.deleteFavoriMarker(i)})})}createFavoriMarker({latitude:t,longitude:s},i){const a=this.googleMapsService.createStar(this.map,t,s);a.addListener("click",()=>{this.clickOnUE(i.substring(0,12),{lat:t,lng:s})}),a.set("matricule",i),this.favoriMarkers.push(a)}deleteFavoriMarker(t){this.favoriMarkers.forEach((s,i)=>{if(s.get("matricule")==t)return this.favoriMarkers[i].setMap(null),void(this.favoriMarkers=[...this.favoriMarkers.slice(0,i),...this.favoriMarkers.slice(i+1)])})}}return(r=n).\u0275fac=function(t){return new(t||r)},r.\u0275cmp=e.VBU({type:r,selectors:[["vplus-map-panel"]],decls:4,vars:3,consts:[["id","cprMap"],["id","google-map-container"],[4,"ngIf"]],template:function(t,s){1&t&&(e.j41(0,"ion-content",0),e.nrm(1,"div",1),e.DNE(2,Mo,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,s.mapInfoBox$)))},dependencies:[O.bT,C.W9,Ro,O.Jj],encapsulation:2}),n})(),Oo=(()=>{var r;class n{constructor(t,s,i){this.dialogRef=t,this.data=s,this.router=i}redirectAccueil(){this.router.navigate(["/accueil"]),setTimeout(()=>{this.dialogRef.close()},500)}}return(r=n).\u0275fac=function(t){return new(t||r)(e.rXU(I.CP),e.rXU(I.Vh),e.rXU(S.Ix))},r.\u0275cmp=e.VBU({type:r,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,s){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 s.redirectAccueil()}),e.pXf(10,0),e.k0s()()()()),2&t&&(e.R7$(5),e.JRh(s.data.title),e.R7$(2),e.JRh(s.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 r;class n{constructor(t,s){this.router=t,this.dialog=s,this.RATE_LIMIT_DURATION=36e4}resolve(t,s){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(Oo,{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(r=n).\u0275fac=function(t){return new(t||r)(e.KVO(S.Ix),e.KVO(I.bZ))},r.\u0275prov=e.jDH({token:r,factory:r.\u0275fac,providedIn:"root"}),n})();var ge=p(30049),Be=p(21413),je=p(59042),Y=p(32102),Z=p(60850);const No=["inputRef"];function vo(r,n){if(1&r){const o=e.RV6();e.j41(0,"mat-option",7),e.bIt("click",function(){const s=e.eBV(o).index,i=e.XpG();return e.Njj(i.onSelectAddress(s))}),e.EFF(1),e.k0s()}if(2&r){const o=n.$implicit;e.Y8G("value",o),e.R7$(),e.SpI(" ",o," ")}}function To(r,n){if(1&r&&(e.j41(0,"mat-option",11),e.EFF(1),e.k0s()),2&r){const o=n.$implicit;e.Y8G("value",o),e.R7$(),e.SpI(" ",o.apt?o.apt:o.matricule," ")}}function Io(r,n){if(1&r){const o=e.RV6();e.j41(0,"mat-form-field",8)(1,"mat-select",9),e.bIt("selectionChange",function(s){e.eBV(o);const i=e.XpG();return e.Njj(i.onSelectAppartement(s))}),e.DNE(2,To,2,2,"mat-option",10),e.k0s()()}if(2&r){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 r;class n extends ee.dI{constructor(t,s,i){super(),this.cprService=t,this.router=s,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.inputVie
1w.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(s=>{this.resultsArray=s,this.listedItems=0!==t.length?s.map(i=>i.adresse):[]},s=>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 s=t.value.numeroDossier,i=t.value.matricule,a=t.value.apt;let l;l=this.selectedAddress.info.filter(c=>c.noDossier===s),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(r=n).\u0275fac=function(t){return new(t||r)(e.rXU(G),e.rXU(S.Ix),e.rXU(e.sFG))},r.\u0275cmp=e.VBU({type:r,selectors:[["vplus-recherche-adresse"]],viewQuery:function(t,s){if(1&t&&e.GBs(No,5),2&t){let i;e.mGM(i=e.lsd())&&(s.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,s){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(s.keyUpSubject$.next(l))}),e.k0s(),e.j41(4,"mat-autocomplete",null,1),e.DNE(6,vo,2,2,"mat-option",5),e.k0s()(),e.DNE(7,Io,3,3,"mat-form-field",6)}if(2&t){const i=e.sdS(5);e.Y8G("floatLabel","never"),e.R7$(2),e.Y8G("id",s.id)("matAutocomplete",i),e.R7$(4),e.Y8G("ngForOf",s.listedItems),e.R7$(),e.Y8G("ngIf",s.aptArray)}},dependencies:[je.fg,Y.rl,Y.JW,Z.$3,Q.wT,Z.pN,Ge.VO,O.Sq,O.bT],encapsulation:2}),n})();const bo=["inputRef"];function Lo(r,n){if(1&r){const o=e.RV6();e.j41(0,"mat-option",7),e.bIt("click",function(){const s=e.eBV(o).index,i=e.XpG();return e.Njj(i.onSelectLot(s))}),e.EFF(1),e.k0s()}if(2&r){const o=n.$implicit;e.Y8G("value",o),e.R7$(),e.SpI(" ",o," ")}}function $o(r,n){if(1&r&&(e.j41(0,"mat-option",11),e.EFF(1),e.k0s()),2&r){const o=n.$implicit;e.Y8G("value",o),e.R7$(),e.SpI(" ",o.matricule," ")}}function yo(r,n){if(1&r){const o=e.RV6();e.j41(0,"mat-form-field",8)(1,"mat-select",9),e.bIt("selectionChange",function(s){e.eBV(o);const i=e.XpG();return e.Njj(i.onSelectMatricule(s))}),e.DNE(2,$o,2,2,"mat-option",10),e.k0s()()}if(2&r){const o=e.XpG();e.Y8G("floatLabel","never"),e.R7$(2),e.Y8G("ngForOf",o.matriculeArray)}}let ko=(()=>{var r;class n{constructor(t,s,i){this.cprService=t,this.router=s,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(s=>{this.resultsArray=s,this.listedItems=0!==t.length?s.map(i=>i.noLot):[]},s=>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 s=t.value.noDossier;this.selectedLot.info=this.selectedLot.info.filter(i=>i.noDossier===s)}else{const s=t.value.matricule;this.selectedLot.info=this.selectedLot.info.filter(i=>i.matricule===s)}this.selectLot()}ngOnDestroy(){this.matriculeArray=[]}}return(r=n).\u0275fac=function(t){return new(t||r)(e.rXU(G),e.rXU(S.Ix),e.rXU(e.sFG))},r.\u0275cmp=e.VBU({type:r,selectors:[["vplus-recherche-lot"]],viewQuery:function(t,s){if(1&t&&e.GBs(bo,5),2&t){let i;
1e.mGM(i=e.lsd())&&(s.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,s){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(s.keyUpSubject$.next(l))}),e.k0s(),e.j41(4,"mat-autocomplete",null,1),e.DNE(6,Lo,2,2,"mat-option",5),e.k0s()(),e.DNE(7,yo,3,2,"mat-form-field",6)}if(2&t){const i=e.sdS(5);e.Y8G("floatLabel","never"),e.R7$(2),e.Y8G("id",s.id)("matAutocomplete",i),e.R7$(4),e.Y8G("ngForOf",s.listedItems),e.R7$(),e.Y8G("ngIf",s.matriculeArray)}},dependencies:[je.fg,Y.rl,Y.JW,Z.$3,Q.wT,Z.pN,Ge.VO,O.Sq,O.bT],encapsulation:2}),n})();const Do=["matriculeInput"],Fo=["lotInput"];function Uo(r,n){if(1&r){const o=e.RV6();e.j41(0,"mat-option",6),e.bIt("click",function(){const s=e.eBV(o).index,i=e.XpG();return e.Njj(i.onSelectElement(s))}),e.EFF(1),e.k0s()}if(2&r){const o=n.$implicit;e.Y8G("value",o),e.R7$(),e.SpI(" ",o," ")}}let Go=(()=>{var r;class n{constructor(t,s,i){this.cprService=t,this.router=s,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(s=>{this.resultsArray=s,this.listedItems=0!==t.length?s.map(i=>i.matricule):[]},s=>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(r=n).\u0275fac=function(t){return new(t||r)(e.rXU(G),e.rXU(S.Ix),e.rXU(e.sFG))},r.\u0275cmp=e.VBU({type:r,selectors:[["vplus-recherche-matricule"]],viewQuery:function(t,s){if(1&t&&(e.GBs(Do,5),e.GBs(Fo,5)),2&t){let i;e.mGM(i=e.lsd())&&(s.matriculeInput=i.first),e.mGM(i=e.lsd())&&(s.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,s){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(s.keyUpSubject$.next(l))}),e.k0s(),e.j41(4,"mat-autocomplete",null,1),e.DNE(6,Uo,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",s.id)("matAutocomplete",i),e.R7$(4),e.Y8G("ngForOf",s.listedItems)}},dependencies:[je.fg,Y.rl,Y.JW,Z.$3,Q.wT,Z.pN,O.Sq],encapsulation:2}),n})();function xo(r,n){1&r&&(e.j41(0,"section",19),e.nrm(1,"vplus-recherche-adresse",10),e.k0s())}function Bo(r,n){1&r&&(e.j41(0,"section",19),e.nrm(1,"vplus-recherche-matricule",10),e.k0s())}function jo(r,n){1&r&&(e.j41(0,"section",19),e.nrm(1,"vplus-recherche-lot",10),e.k0s())}let wo=(()=>{var r;class n{constructor(){}}return(r=n).\u0275fac=function(t){return new(t||r)},r.\u0275cmp=e.VBU({type:r,selectors:[["vplus-recherche"]],decls:37,vars:3,consts:()=>{let o,t,s,i,a,l;return o="Par adresse",t="Par matricule",s="Par num\xE9ro de lot",i="Adresse",a="Matricule",l="No de lot",[["searchType",""],o,t,s,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,s){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,xo,2,0,"section",16)(33,Bo,2,0,"section",16)(34,jo,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)}}
1,dependencies:[O.bT,C.W9,C.he,C.Gp,C.eP,C.Je,Pt,ko,Go],encapsulation:2}),n})();var Xo=p(2578),Vo=p.n(Xo);let Ho=(()=>{var r;class n{constructor(t,s){this.dialogRef=t,this.data=s,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(r=n).\u0275fac=function(t){return new(t||r)(e.rXU(I.CP),e.rXU(I.Vh))},r.\u0275cmp=e.VBU({type:r,selectors:[["my-alias-dialog"]],decls:10,vars:1,consts:()=>{let o,t,s;return o="Nommer votre favori",t="ANNULER",s="OK",[["input",""],o,t,s,["mat-dialog-title",""],["autofocus","","type","text",3,"keyup.enter","placeholder"],["mat-dialog-close","","mat-button","",3,"click"],["mat-button","",3,"click"]]},template:function(t,s){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(s.onCloseConfirm(l.value))}),e.k0s()(),e.j41(5,"mat-dialog-actions")(6,"button",6),e.bIt("click",function(){return e.eBV(i),e.Njj(s.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(s.onCloseConfirm(l.value))}),e.pXf(9,3),e.k0s()()}2&t&&(e.R7$(3),e.Y8G("placeholder",s.adresse))},dependencies:[y.$z,I.tx,I.BI,I.E7,I.Yi],encapsulation:2}),n})();var zo=p(78718);const Yo=r=>({"role-ripple":r}),St=()=>["/consultation-du-role","carte"],Rt=r=>({matricule:r});function Zo(r,n){if(1&r&&(e.j41(0,"option",24),e.EFF(1),e.k0s()),2&r){const o=n.$implicit,t=e.XpG().ngIf;e.Y8G("selected",o===t.annee)("value",o),e.R7$(),e.JRh(o)}}function Wo(r,n){if(1&r){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 s=e.eBV(o).ngIf,i=e.XpG();return e.Njj(i.addFavori(s.numeroDossier,s.adresse,s.coordonnees,s.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 s=e.XpG();return e.Njj(s.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 s=e.eBV(o).ngIf,i=e.XpG();return e.Njj(i.addFavori(s.numeroDossier,s.adresse,s.coordonnees,s.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 s=e.sdS(31),i=e.XpG();return e.Njj(i.changeRoleYear(s.value))}),e.DNE(32,Zo,2,3,"option",22),e.k0s()(),e.nrm(33,"vplus-role",23),e.k0s()()}if(2&r){const o=n.ngIf,t=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(21,Yo,t.isLoading)),e.R7$(4),e.Y8G("disabled",e.bMT(6,13,o.isFavori$)||!e.bMT(7,15,t.isLoggedIn$)),e.R7$(4),e.Y8G("routerLink",e.lJ4(23,St))("queryParams",e.eq3(24,Rt,o.role.matricule.substring(0,12))),e.R7$(8),e.Y8G("disabled",e.bMT(18,17,o.isFavori$)||!e.bMT(19,19,t.isLoggedIn$)),e.R7$(4),e.Y8G("routerLink",e.lJ4(26,St))("queryParams",e.eq3(27,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)}}let qo=(()=>{var r;class n{constructor(t,s,i,a,l,c){this.dialog=t,this.router=s,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 s=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=s?`role_${s}_${i}.pdf`:"role.pdf",t.isFavori$.subscribe(a=>{this.isFavori=a})}})}setRipple(t){this.isLoading=!0,setTimeout(()=>{this.isLoading=!1},t)}changeRoleYear(t){const s={annee:t.slice(0,4)};this.router.navigate([],{queryParams:s,queryParamsHandling:"merge"})}addFavori(t,s,i,a){this.dialog.open(Ho,{data:{numeroDossier:t,adresse:s},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:s,matricule:a,coordonnees:i}}))})}downloadPDF(){this.ue&&this.backendService.getBlobFile(this.pdfUrl,!0).subscribe(s=>{const i=window.URL.createObjectURL(s);window.open(i,"_blank"),Vo().saveAs(s,this.fileName)})}ngOnDestroy(){this.ueSub&&this.ueSub.unsubscribe()}}return(r=n).\u0275fac=function(t){return new(t||r)(e.rXU(I.bZ),e.rXU(S.Ix),e.rXU(S.nX),e.rXU(P.il),e.rXU(ee.m3),e.rXU(Oe.o))},r.\u0275cmp=e.VBU({type:r,selectors:[["vplus-role-panel"]],decls:2,vars:3,consts:()=>{let o,t,s,i,a,l,c;return o="Ajouter aux favoris",t="Afficher sur la carte",s="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",s,3,"click"],[1,"icon-pdf"],["vertical","to
1p","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"],[3,"selected","value"]]},template:function(t,s){1&t&&(e.DNE(0,Wo,34,29,"ion-content",2),e.nI1(1,"async")),2&t&&e.Y8G("ngIf",e.bMT(1,1,s.ue$))},dependencies:[S.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=p(99437),Jo=p(27468);const Pe="/role/search";let Mt=(()=>{var r;class n{constructor(t,s){this.backendService=t,this.route=s}searchByNoDossier(t,s=null,i=null,a=null){const l={noDossier:t,...!!s&&{dernierRole:s},...!!i&&{anneeDebutRole:i},...!!a&&{top:a}};return this.backendService.get(`${Pe}/info-ue?`,l)}searchAnneesByNoDossier(t,s=null,i=null,a=null){const l={noDossier:t,...!!s&&{dernierRole:s},...!!i&&{anneeDebutRole:i},...!!a&&{top:a}};return this.backendService.get(`${Pe}/annees-ue?`,l)}searchByMatricule(t,s=null,i=null,a=null){const l={matricule:t,...!!s&&{dernierRole:s},...!!i&&{anneeDebutRole:i},...!!a&&{top:a}};return this.backendService.get(`${Pe}/info-ue?`,l)}searchAnneesByMatricule(t,s=null,i=null,a=null){const l={matricule:t,...!!s&&{dernierRole:s},...!!i&&{anneeDebutRole:i},...!!a&&{top:a}};return this.backendService.get(`${Pe}/annees-ue?`,l)}}return(r=n).\u0275fac=function(t){return new(t||r)(e.KVO(ee.m3),e.KVO(S.nX))},r.\u0275prov=e.jDH({token:r,factory:r.\u0275fac}),n})(),At=(()=>{var r;class n{constructor(t,s,i,a){this.uesService=t,this.consultesRecemmentService=s,this.store=i,this.router=a,this.RATE_LIMIT_DURATION=36e4}resolve(t,s){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,s,i,a){return(0,Jo.p)(t,s).pipe((0,Je.M)(([l,{adresseFormatte:_,coordonnees:d}])=>{this.consultesRecemmentService.add$({matricule:a,numeroDossier:i,adresse:_,coordonnees:d}).subscribe()}),(0,b.T)(([l,{rapport:c,anneeDebutRole:u,adresseFormatte:_,coordonnees:d}])=>{const h=l.map(E=>`${E} - ${E+1} - ${E+2}`);return{annees:l,anneesFormattes:h,role:c,annee:u,adresse:_,numeroDossier:i,matricule:a,coordonnees:d,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)(s=>s.map(i=>i.anneeDebutRole)))}getRole$(t,s){return this.uesService.searchByNoDossier(t,!s,s).pipe((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)(s=>s.map(i=>i.anneeDebutRole)))}getRoleByMatricule$(t,s){return this.uesService.searchByMatricule(t,!s,s).pipe((0,b.T)(i=>i[0]))}}return(r=n).\u0275fac=function(t){return new(t||r)(e.KVO(Mt),e.KVO(de),e.KVO(P.il),e.KVO(S.Ix))},r.\u0275prov=e.jDH({token:r,factory:r.\u0275fac}),n})();const Ko=S.iI.forChild([{path:"",component:rn,resolve:{favoris:Ke,consultesRecemment:Ye},children:[{path:"role",runGuardsAndResolvers:"paramsOrQueryParamsChange",component:qo,resolve:{ue:At,rate:xe}},{path:"recherche",runGuardsAndResolvers:"paramsOrQueryParamsChange",component:wo,resolve:{rate:xe}},{path:"mes-adresses",runGuardsAndResolvers:"paramsOrQueryParamsChange",component:We,data:{menuId:"rechercheMobile"}},{path:"carte",runGuardsAndResolvers:"paramsOrQueryParamsChange",component:Ao,resolve:{googleMaps:Qe.R,mapInfoBox:tt}},{path:"",redirectTo:"recherche",pathMatch:"full"}]},{path:"",component:cn,outlet:"header"},{path:"",component:qe,outlet:"mobile-tabs"},{path:"connexion/:target",component:un.n,canActivate:[ln.Q]},{path:"**",redirectTo:"/accueil",pathMatch:"full"}]);var W=p(77339),Qo=p(39974),er=p(54360),tr=p(57908);let or=(()=>{var r;class n{constructor(t,s,i){this.dialog=t,this.localStorageService=s,this.zone=i,this.favoris$=this.localStorageService.get$("favoris"),this.buff$=this.favoris$.pipe(function nr(r,n=null){return n=null!=n?n:r,(0,Qo.N)((o,t)=>{let s=[],i=0;o.subscribe((0,er._)(t,a=>{let l=null;i++%n==0&&s.push([]);for(const c of s)c.push(a),r<=c.length&&(l=null!=l?l:[],l.push(c));if(l)for(const c of l)(0,tr.o)(s,c),t.next(c)},()=>{for(const a of s)t.next(a);t.complete()},void 0,()=>{s=null}))})}(2,1))}}return(r=n).\u0275fac=function(t){return new(t||r)(e.KVO(I.bZ),e.KVO(Ae),e.KVO(e.SKi))},r.\u0275prov=e.jDH({token:r,factory:r.\u0275fac}),n})();var Ot=p(18810);let rr=(()=>{var r;class n{constructor(t,s,i){this.actions$=t,this.store=s,this.cprService=i,this.addFavori$=(0,W.EH)(()=>this.actions$.pipe((0,W.gp)(Se),(0,b.T)(()=>Re()),(0,we.W)(a=>(0,Ot.$)(a)))),this.saveFavoris$=(0,W.EH)(()=>
1this.actions$.pipe((0,W.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(r=n).\u0275fac=function(t){return new(t||r)(e.KVO(W.En),e.KVO(P.il),e.KVO(G))},r.\u0275prov=e.jDH({token:r,factory:r.\u0275fac}),n})();const sr=(0,P.vy)([],(0,P.on)(Se,(r,{payload:n})=>[...r,n]),(0,P.on)(le,(r,{payload:n})=>[...n]),(0,P.on)(He,(r,{payload:n})=>r.filter(o=>o.id!==n))),ar={favoris:function ir(r,n){return sr(r,n)}};var cr=p(10916);let lr=(()=>{var r;class n{}return(r=n).\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.$C({type:r}),r.\u0275inj=e.G2t({providers:[de,or,Ae,Mt,G,Ye,Ke,Qe.R,tt,At,xe],imports:[Ko,cr.G,P.md.forFeature("role",ar),W.Vm.forFeature([rr])]}),n})()},55430:(vt,ae,p)=>{p.d(ae,{Q:()=>H});var F=p(35052),P=p(51188),ce=p(54438);const H=()=>{const J=(0,ce.WQX)(P.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.