1"use strict";(self.webpackChunkpc=self.webpackChunkpc||[]).push([[1506],{24339:(vt,mn,C)=>{C.d(mn,{b:()=>e});var Rn=C(7673),Ln=C(1807),Ke=C(25558),Un=C(96354),bn=C(17446),te=C(54438);let e=(()=>{var V;class je{constructor(m){this.utilisateurService=m}validateAdresse(){return m=>""===m.value||null===m.value?(0,Rn.of)(null):(0,Ln.O)(300).pipe((0,Ke.n)(()=>this.utilisateurService.validateAdresse(m.value).pipe((0,Un.T)(Ze=>!0===Ze.invalidAddress?{invalidAddress:!0}:null))))}}return(V=je).\u0275fac=function(m){return new(m||V)(te.KVO(bn.$))},V.\u0275prov=te.jDH({token:V,factory:V.\u0275fac}),je})()},31506:(vt,mn,C)=>{C.r(mn),C.d(mn,{UtilisateurModule:()=>z1});var Rn=C(20305),Ln=C(24339),Ke=C(5412),Un=C(41814),bn=C(59559),te=C(35052),e=C(54438),V=C(51188);let je=(()=>{var t;class _{constructor(n,i){this.appConfig=n,this.router=i}canActivate(n,i){return!!this.appConfig.appConfig.citoyenForm.activateCarteCitoyenne||(this.router.navigate(["accueil"]),!1)}}return(t=_).\u0275fac=function(n){return new(n||t)(e.KVO(te.o),e.KVO(V.Ix))},t.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}),_})();var T=C(49823),m=C(53387),Ze=C(61594),ae=C(25558),K=C(7673),j=C(9310);let en=(()=>{var t;class _{constructor(n,i){this.alerteService=n,this.store=i}resolve(){return this.store.select(T.selectModulesActifs).pipe((0,Ze.$)(),(0,ae.n)(n=>n.includes(m.AL.Alerte)?this.alerteService.fetchCategories():(0,K.of)([])))}}return(t=_).\u0275fac=function(n){return new(n||t)(e.KVO(Ke.V),e.KVO(j.il))},t.\u0275prov=e.jDH({token:t,factory:t.\u0275fac}),_})();var $t=C(95658),vn=C(66345),Y=C(20986),Q=C(96354);let Jn=(()=>{var t;class _{constructor(n,i){this.router=n,this.store=i}canActivate(n,i){return this.store.select(Y.OA).pipe((0,Ze.$)(),(0,Q.T)(s=>s?(this.store.dispatch(Y.En.setAccessVerifierCourriel({payload:!1})),!0):(this.router.navigate(["/utilisateur/connexion"]),!1)))}}return(t=_).\u0275fac=function(n){return new(n||t)(e.KVO(V.Ix),e.KVO(j.il))},t.\u0275prov=e.jDH({token:t,factory:t.\u0275fac}),_})();var M=C(77339),me=C(96697),Me=C(88141);let Qn=(()=>{var t;class _{constructor(n,i,s){this.appConfig=n,this.router=i,this.store=s}canActivate(n,i){if(this.isCarteActive=this.appConfig.appConfig.citoyenForm.activateCarteCitoyenne,this.store.select(T.selectModulesActifs).pipe((0,me.s)(1),(0,Me.M)(s=>{this.moduleActiviteIsActif=s.includes(m.AL.Activite)})).subscribe(),this.moduleActiviteIsActif||this.isCarteActive){const s=Object.fromEntries(Object.entries(n.queryParams).filter(([r,c])=>null!=c&&""!==c));return n.data=s,!0}return this.router.navigate(["accueil"]),!1}}return(t=_).\u0275fac=function(n){return new(n||t)(e.KVO(te.o),e.KVO(V.Ix),e.KVO(j.il))},t.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}),_})();var $n=C(98472),Ae=C(55869),Fn=C(45398),Ft=C(95338);let nn=(()=>{var t;class _{constructor(n,i){this.alerteService=n,this.store=i}resolve(){return this.store.select(T.selectModulesActifs).pipe((0,Ze.$)(),(0,Q.T)(n=>n.includes(m.AL.Alerte)?this.alerteService.fetchServicesOfferts():(0,K.of)([])))}}return(t=_).\u0275fac=function(n){return new(n||t)(e.KVO(Ke.V),e.KVO(j.il))},t.\u0275prov=e.jDH({token:t,factory:t.\u0275fac}),_})();var we=C(10916),tn=C(49193),Gt=C(24319),z=C(29824),D=C(66560),Kn=C(31397),oe=C(99437),Dt=C(983),yt=C(39974),Zn=C(54360),Xt=C(58750),kt=C(1807),jt=C(30786),p=C(92995),ke=C(98377),ce=C(17446);let wt=(()=>{var t;class _{constructor(n,i,s,r,c,d){this.actions$=n,this.store=i,this.appConfig=s,this.utilisateurService=r,this.router=c,this.localisationService=d,this.signUp$=(0,M.EH)(()=>this.actions$.pipe((0,M.gp)(z.signUp),(0,Q.T)(a=>a.payload),(0,Kn.Z)(a=>this.utilisateurService.signUp({user:a.user,newEmplacements:a.newEmplacements,shouldUpdateAddress:a.shouldUpdateAddress,journalEvenement:a.journalEvenement,queryParam:a.queryParam}).pipe((0,Q.T)(()=>{this.store.dispatch(z.signUpSuccess({payload:a.user}))}),(0,oe.W)(u=>(this.store.dispatch(z.signUpFail()),this.store.dispatch(new D.ShowSnackBar("EmailInUse"===u.type?"Le courriel que vous avez entr\xE9 est d\xE9j\xE0 utilis\xE9":"L'utilisateur n'a pas pu \xEAtre cr\xE9\xE9",T.EnumSnackBarType.Ec
1hec)),(0,K.of)(u)))))),{dispatch:!1}),this.signUpSuccess$=(0,M.EH)(()=>this.actions$.pipe((0,M.gp)(z.signUpSuccess),(0,Q.T)(a=>a.payload),(0,Me.M)(a=>{this.store.dispatch(z.setAccessVerifierCourriel({payload:!0})),this.store.dispatch(z.setSignUpEmail({payload:a.courriel}))}),(0,Q.T)(a=>this.router.navigateByUrl("/utilisateur/verifier-courriel")),(0,oe.W)(a=>{throw a})),{dispatch:!1}),this.errorUserCreateOrEdit$=(0,M.EH)(()=>this.actions$.pipe((0,M.gp)(z.showSnackBarErrorUserCreateOrEdit),(0,Me.M)(a=>{const u=a.renseignementPersoInvalid?"Impossible de valider vos renseignements personnels car certains champs comportent des erreurs":"Impossible de cr\xE9er votre compte car vos abonnements aux communications ne r\xE9pondent pas aux exigences";this.store.dispatch(new D.ShowSnackBar(u,T.EnumSnackBarType.Echec))})),{dispatch:!1}),this.deleteCompte$=(0,M.EH)(()=>this.actions$.pipe((0,M.gp)(z.deleteCompte),(0,ae.n)(()=>this.utilisateurService.deleteCompte()),(0,Q.T)(()=>(this.store.dispatch(z.deleteCompteSuccess()),this.store.dispatch(new T.Actions.Logout),this.store.dispatch(T.Actions.setIsFirstLoggedIn({payload:!1})),this.router.navigate(["accueil"]),new D.ShowSnackBar("Votre compte a bien \xE9t\xE9 supprim\xE9"))),(0,oe.W)(()=>(0,K.of)(new D.ShowSnackBar("Une erreur est survenue, veuillez r\xE9essayer",T.EnumSnackBarType.Echec))),function xt(t){let o,_=1/0;return null!=t&&("object"==typeof t?({count:_=1/0,delay:o}=t):_=t),_<=0?()=>Dt.w:(0,yt.N)((n,i)=>{let r,s=0;const c=()=>{if(null==r||r.unsubscribe(),r=null,null!=o){const a="number"==typeof o?(0,kt.O)(o):(0,Xt.Tg)(o(s)),u=(0,Zn._)(i,()=>{u.unsubscribe(),d()});a.subscribe(u)}else d()},d=()=>{let a=!1;r=n.subscribe((0,Zn._)(i,void 0,()=>{++s<_?r?c():a=!0:i.complete()})),a&&c()};d()})}())),this.sendSmsVerification$=(0,M.EH)(()=>this.actions$.pipe((0,M.gp)(z.sendSmsVerification),(0,ae.n)(()=>this.utilisateurService.sendSmsVerification().pipe((0,Q.T)(a=>new D.ShowSnackBar("Le SMS a bien \xE9t\xE9 envoy\xE9")),(0,oe.W)(a=>(0,K.of)(new D.ShowSnackBar("Une erreur est survenue, veuillez r\xE9essayer",T.EnumSnackBarType.Echec))))))),this.sendCodeChangementCourriel$=(0,M.EH)(()=>this.actions$.pipe((0,M.gp)(z.sendCodeChangementCourriel),(0,Q.T)(a=>a.courriel),(0,ae.n)(a=>this.utilisateurService.getCodeChangementCourriel(a)),(0,Q.T)(a=>(this.store.dispatch(new D.ShowSnackBar("Un code de v\xE9rification a \xE9t\xE9 envoy\xE9 \xE0"+" "+a.courriel)),z.sendCodeChangementCourrielSucess())),(0,oe.W)(a=>(0,K.of)(new D.ShowSnackBar("Une erreur est survenue, veuillez r\xE9essayer",T.EnumSnackBarType.Echec))))),this.updateCourriel$=(0,M.EH)(()=>this.actions$.pipe((0,M.gp)(z.updateCourriel),(0,Q.T)(a=>a.payload),(0,ae.n)(a=>this.utilisateurService.updateCourriel(a.courriel,a.codeVerification,a.journalEvenement)),(0,Q.T)(a=>a.isUpdated?(this.store.dispatch(new D.ShowSnackBar("Adresse courriel modifi\xE9e avec succ\xE8s. Veuillez vous connecter avec votre nouvelle adresse")),z.updateCourrielSuccess()):z.updateCourrielInvalid()),(0,oe.W)(a=>(0,K.of)(new D.ShowSnackBar("Une erreur est survenue, veuillez r\xE9essayer",T.EnumSnackBarType.Echec))))),this.insertAddressNotFound$=(0,M.EH)(()=>this.actions$.pipe((0,M.gp)(z.insertAddressNotFound),(0,Q.T)(a=>a.adresseNotFound),(0,Kn.Z)(a=>this.utilisateurService.insertAddressNotFound(a).pipe((0,Q.T)(()=>{this.store.dispatch(z.insertAddressNotFoundSuccess())}),(0,oe.W)(u=>(this.store.dispatch(z.insertAddressNotFoundFailed({message:u.message})),(0,K.of)(u)))))),{dispatch:!1}),this.upsertCitizenCard$=(0,M.EH)(()=>this.actions$.pipe((0,M.gp)(z.upsertCitizenCard),(0,Q.T)(a=>a.payload),(0,jt.p)(a=>this.utilisateurService.upsertCarteCitoyenne(a.carteCitoyenne,a.perId,a.emplacements,a.journalEvenement).pipe((0,ae.n)(()=>this.utilisateurService.getInfoCarteCitoyenne(a.perId).pipe((0,Q.T)(u=>{const S=this.isFr?`Demande de ${a.carteCitoyenne.isRenouvellement?"renouvellement de":""} \xab ${this.appConfig.getNomCarteCitoyenneCapital()} - ${a.carteCitoyenne.isRenouvellement?u.accesRenouvellement:null==u?void 0:u.currentAcces} \xbb envoy\xe9e avec succ\xe8s`:`"${this.appConfig.getNomCarteCitoyenneCapital()} - ${a.carteCitoyenne.isRenouvellement?u.accesRenouvellement:null==u?void 0:u.currentAcces}" ${a.carteCitoyenne.isRenouvellement?"renewal":""} application sent successfully`;return this.store.dispatch(new D.ShowSnackBar(S)),z.upsertCitizenCardSuccess({payload:a.carteCitoyenne})}),(0,oe.W)(u=>(this.store.dispatch(new D.ShowSnackBar("Erreur lors de l'envoi de la demande de carte",T.EnumSnackBarType.Ec
1hec)),(0,K.of)(u))))))))),this.upsertFamily$=(0,M.EH)(()=>this.actions$.pipe((0,M.gp)(z.upsertFamily),(0,Q.T)(a=>a.famille),(0,ae.n)(a=>this.utilisateurService.upsertFamille(a,new T.Personne)),(0,Q.T)(({savedFamille:a,perId:u})=>(this.store.dispatch(new D.ShowSnackBar("Famille cr\xE9\xE9e avec succ\xE8s")),z.upsertFamilySuccess({savedFamille:a,perId:u}))),(0,oe.W)(()=>(0,K.of)(new D.ShowSnackBar("Une erreur est survenue, veuillez r\xE9essayer",T.EnumSnackBarType.Echec))))),this.renameFamily$=(0,M.EH)(()=>this.actions$.pipe((0,M.gp)(z.renameFamily),(0,ae.n)(a=>this.utilisateurService.renameFamille(a.famId,a.newName,a.perId)),(0,Q.T)(({newName:a})=>(this.store.dispatch(new D.ShowSnackBar("Famille renomm\xE9e avec succ\xE8s")),z.renameFamilySuccess({newName:a}))),(0,oe.W)(()=>(0,K.of)(new D.ShowSnackBar("Une erreur est survenue, veuillez r\xE9essayer",T.EnumSnackBarType.Echec))))),this.addChildFamily$=(0,M.EH)(()=>this.actions$.pipe((0,M.gp)(z.addChildFamily),(0,ae.n)(({famille:a,enfant:u,isHampsteadEnfantExisting:S=!1})=>this.utilisateurService.upsertFamille(a,u,S).pipe((0,Q.T)(({savedFamille:E,perId:P})=>(this.store.dispatch(new D.ShowSnackBar(u.perId?"Enfant modifi\xE9 avec succ\xE8s":"Enfant cr\xE9\xE9 avec succ\xE8s")),z.addChildFamilySuccess({savedFamille:E,perId:P}))),(0,oe.W)(E=>(this.store.dispatch(new D.ShowSnackBar("Erreur lors de l'ajout de l'enfant",T.EnumSnackBarType.Echec)),(0,K.of)(E))))))),this.updateEnfant$=(0,M.EH)(()=>this.actions$.pipe((0,M.gp)(z.updateEnfant),(0,ae.n)(({enfant:a})=>this.utilisateurService.updateEnfant(a).pipe((0,Q.T)(()=>(this.store.dispatch(new D.ShowSnackBar("Enfant modifi\xE9 avec succ\xE8s")),z.updateEnfantSuccess())),(0,oe.W)(u=>(this.store.dispatch(new D.ShowSnackBar("Erreur lors de la modification de l'enfant",T.EnumSnackBarType.Echec)),(0,K.of)(u))))))),this.upsertCitizenCardChild$=(0,M.EH)(()=>this.actions$.pipe((0,M.gp)(z.upsertChildCitizenCard),(0,ae.n)(a=>this.utilisateurService.upsertCarteCitoyenneEnfant(a.enfant,a.carteParent,a.emplacements,a.isRenouvellement,a.journalEvenement).pipe((0,Q.T)(()=>(this.store.dispatch(new D.ShowSnackBar(this.isFr?`Demande de ${a.isRenouvellement?"renouvellement de":""} \xab ${this.appConfig.getNomCarteCitoyenneCapital()} - ${a.enfant.nomAcces} \xbb envoy\xe9e avec succ\xe8s`:`"${this.appConfig.getNomCarteCitoyenneCapital()} - ${a.enfant.nomAcces}" ${a.isRenouvellement?"renewal":""} application sent successfully`)),z.upsertChildCitizenCardSucces())),(0,oe.W)(u=>(this.store.dispatch(new D.ShowSnackBar("Erreur lors de la cr\xE9ation de la carte de l'enfant",T.EnumSnackBarType.Echec)),(0,K.of)(u))))))),this.deleteFamily$=(0,M.EH)(()=>this.actions$.pipe((0,M.gp)(z.deleteFamily),(0,Q.T)(a=>a.famId),(0,ae.n)(a=>this.utilisateurService.deleteFamille(a).pipe((0,Q.T)(u=>u.deleted?(this.store.dispatch(new D.ShowSnackBar("Votre famille a \xE9t\xE9 supprim\xE9e avec succ\xE8s")),z.deleteFamilySuccess()):new D.ShowSnackBar("Impossible de supprimer une famille utilis\xE9e par un abonnement",T.EnumSnackBarType.Echec)),(0,oe.W)(u=>(this.store.dispatch(new D.ShowSnackBar("Une erreur est survenue. Impossible de supprimer la famille",T.EnumSnackBarType.Echec)),(0,K.of)(u))))))),this.deleteMembreFamille$=(0,M.EH)(()=>this.actions$.pipe((0,M.gp)(z.deleteMemberFamily),(0,ae.n)(a=>this.utilisateurService.deleteMembreFamille(a.familleId,a.perId,a.familleNom)),(0,Q.T)(({returnValue:a,familleId:u,perId:S})=>{if(0===a)return this.store.dispatch(new D.ShowSnackBar("Membre retir\xE9 avec succ\xE8s")),z.deleteMemberFamilySuccess({returnValue:a,familleId:u,perId:S});this.store.dispatch(new D.ShowSnackBar("Erreur lors du retrait de membre de la famille",T.EnumSnackBarType.Echec))}),(0,oe.W)(a=>(this.store.dispatch(new D.ShowSnackBar("Erreur lors du retrait de membre de la famille",T.EnumSnackBarType.Echec)),(0,K.of)(a))))),this.inviteAdultFamily$=(0,M.EH)(()=>this.actions$.pipe((0,M.gp)(z.inviteAdultFamily),(0,ae.n)(a=>this.utilisateurService.inviteAdultFamily(a)),(0,Q.T)(()=>(this.store.dispatch(new D.ShowSnackBar("Adulte invit\xE9 avec succ\xE8s")),z.inviteAdultFamilySuccess())),(0,oe.W)(a=>(this.store.dispatch(new D.ShowSnackBar("Erreur lors du retrait de l'enfant",T.EnumSnackBarType.Ec
1hec)),(0,K.of)(a))))),this.replyInvitationFamily$=(0,M.EH)(()=>this.actions$.pipe((0,M.gp)(z.replyInvitationFamille),(0,ae.n)(a=>this.utilisateurService.addAdultFamily(a.famille,a.isAccepted,a.invitationId)),(0,Q.T)(({isAccepted:a})=>(a?this.router.navigateByUrl("/utilisateur/profil/(profil:familles)"):this.router.navigate(["accueil"]),z.replyInvitationFamilleSuccess())),(0,oe.W)(a=>(this.store.dispatch(new D.ShowSnackBar("Vous \xEAtes d\xE9j\xE0 un membre de cette famille, Veuillez contacter l'administrateur de la famille",T.EnumSnackBarType.Echec)),(0,K.of)(a))))),this.leaveFamily$=(0,M.EH)(()=>this.actions$.pipe((0,M.gp)(z.leaveFamille),(0,ae.n)(a=>this.utilisateurService.deleteMembreFamille(a.familleId,a.perId,a.familleNom)),(0,Q.T)(()=>(this.store.dispatch(new D.ShowSnackBar("Vous avez quitt\xE9 la famille avec succ\xE8s")),z.leaveFamilleSuccess())),(0,oe.W)(a=>(this.store.dispatch(new D.ShowSnackBar("Erreur survenue",T.EnumSnackBarType.Echec)),(0,K.of)(a))))),this.isFr=this.localisationService.getCurrentLocalisation()===p.fi.FR}}return(t=_).\u0275fac=function(n){return new(n||t)(e.KVO(M.En),e.KVO(j.il),e.KVO(te.o),e.KVO(ce.$),e.KVO(V.Ix),e.KVO(ke.A))},t.\u0275prov=e.jDH({token:t,factory:t.\u0275fac}),_})();const Vt=(0,j.vy)(Y.xG.canAccessVerifierCourriel,(0,j.on)(Y.En.setAccessVerifierCourriel,(t,{payload:_})=>_)),Ht=(0,j.vy)(Y.xG.signUpEmail,(0,j.on)(Y.En.setSignUpEmail,(t,{payload:_})=>_)),Bt={canAccessVerifierCourriel:function zt(t,_){return Vt(t,_)},signUpEmail:function Yt(t,_){return Ht(t,_)}};var A=C(60177),de=C(81405),$=C(88974),l=C(89417),ge=C(37084),et=C(84572),nt=C(17098),Ne=C(67376),ee=C(34006),g=C(89079);function qt(t,_){1&t&&(e.j41(0,"h2",11),e.pXf(1,5),e.k0s())}function Wt(t,_){1&t&&(e.j41(0,"h2",11),e.pXf(1,6),e.k0s())}let tt=(()=>{var t;class _{constructor(n,i){this.dialogRef=n,this.data=i,this.confirmResponse={sendSmsVerification:!0}}}return(t=_).\u0275fac=function(n){return new(n||t)(e.rXU(ee.CP),e.rXU(ee.Vh))},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-verification-telephone-citoyen-dialog"]],decls:16,vars:5,consts:()=>{let o,n,i,s,r,c,d;return o="Un message texte vous sera envoy\xE9* afin de confirmer votre abonnement aux communications de",n=". Votre num\xE9ro sera utilis\xE9 pour la r\xE9ception de communications en lien avec vos cat\xE9gories d'abonnement une fois confirm\xE9.",i="*Frais standards de messagerie et de donn\xE9es applicables. La fr\xE9quence des communications varie. R\xE9pondez AIDE pour de l'aide ou ARRET pour vous d\xE9sabonner.",s="Annuler",r="Confirmer ",c="Changement de num\xE9ro de t\xE9l\xE9phone",d="Abonnement aux messages textes",[o,n,i,s,r,c,d,["class","form-section-title",4,"ngIf"],["mat-dialog-actions","",1,"dialog-buttons-section"],["fill","outline","tabindex","1",1,"ion-custom-button-outline","ion-cu
1stom-button-standard","margin-right-1",3,"mat-dialog-close"],[1,"ion-custom-button-standard","ion-custom-button-full",3,"mat-dialog-close"],[1,"form-section-title"]]},template:function(n,i){1&n&&(e.DNE(0,qt,2,0,"h2",7)(1,Wt,2,0,"h2",7),e.j41(2,"p")(3,"span"),e.pXf(4,0),e.k0s(),e.EFF(5),e.j41(6,"span"),e.pXf(7,1),e.k0s()(),e.j41(8,"p")(9,"small"),e.pXf(10,2),e.k0s()(),e.j41(11,"div",8)(12,"ion-button",9),e.pXf(13,3),e.k0s(),e.j41(14,"ion-button",10),e.pXf(15,4),e.k0s()()),2&n&&(e.Y8G("ngIf",!i.data.fromAbonnement),e.R7$(),e.Y8G("ngIf",i.data.fromAbonnement),e.R7$(4),e.SpI("\xa0",i.data.ville,""),e.R7$(7),e.Y8G("mat-dialog-close",!1),e.R7$(2),e.Y8G("mat-dialog-close",i.confirmResponse))},dependencies:[ee.tx,ee.E7,A.bT,$.Jm],encapsulation:2}),_})();var Jt=C(30450),R=C(32102),Nn=C(75824);const Qt=t=>({"padding-form-mobile":t}),Kt=t=>({"margin-form":t}),Zt=t=>({"border-bottom":t}),eo=(t,_)=>["categories",t,_],no=t=>({"margin-top-2":t});function to(t,_){1&t&&e.nrm(0,"vplus-loading-spinner")}function oo(t,_){1&t&&(e.j41(0,"h2",10),e.pXf(1,2),e.k0s())}function io(t,_){1&t&&(e.j41(0,"h2",11),e.pXf(1,3),e.k0s())}function _o(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",13),e.nrm(1,"i",21),e.j41(2,"p"),e.EFF(3),e.k0s(),e.j41(4,"a",22),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.correctPhoneNumber("telephone"))}),e.pXf(5,4),e.k0s()()}if(2&t){const o=e.XpG(2);e.R7$(3),e.SpI(" ",o.labels.msgAbonnementTelephone,"")}}function so(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",13),e.nrm(1,"i",21),e.j41(2,"p"),e.EFF(3),e.k0s(),e.j41(4,"a",22),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.correctPhoneNumber("typeTelephone"))}),e.pXf(5,5),e.k0s()()}if(2&t){const o=e.XpG(2);e.R7$(3),e.SpI("",o.labels.msgAbonnementTelephoneFixe," ")}}function ro(t,_){if(1&t&&(e.j41(0,"div",28)(1,"mat-slide-toggle",29),e.EFF(2),e.k0s()()),2&t){let o;const n=_.$implicit,i=e.XpG().$implicit,s=e.XpG(2);e.R7$(),e.Y8G("formControlName",s.getServiceControlName(n))("disabled",!s.canEditMoyensCommunication||(null==(o=s.abonnementsForm.get(e.l_i(3,eo,i.id,s.getServiceControlName(n))))?null:o.disabled)),e.R7$(),e.SpI(" ",s.EnumCommunicationTypeNoms[n]," ")}}function ao(t,_){if(1&t&&(e.j41(0,"div")(1,"mat-error",30),e.EFF(2),e.k0s()()),2&t){const o=e.XpG().$implicit,n=e.XpG(2);e.R7$(2),e.JRh(n.getMsgErreurAbonnementObligatoireAuMoinUnMoyen(o))}}function lo(t,_){if(1&t&&(e.j41(0,"div",23)(1,"div",24)(2,"h3"),e.EFF(3),e.k0s(),e.j41(4,"div",25),e.nrm(5,"i",26),e.k0s()(),e.j41(6,"p",27),e.EFF(7),e.k0s(),e.Z7z(8,ro,3,6,"div",28,e.Vm6),e.DNE(10,ao,3,1,"div"),e.k0s()),2&t){let o;const n=_.$implicit,i=_.last,s=e.XpG(2);e.Y8G("formGroupName",n.id)("ngClass",e.eq3(8,Zt,!i)),e.R7$(3),e.Lme(" ",n.nom," ",n.regleAbonnement===s.EnumCategorieRegleAbonnement.obligatoireTousMoyens?" *":n.regleAbonnement===s.EnumCategorieRegleAbonnement.obligatoireAuMoinsUnMoyen?" **":n.regleAbonnement===s.EnumCategorieRegleAbonnement.obligatoireMoyensSpecifique?" ***":""," "),e.R7$(2),e.HbH(n.icone),e.R7$(2),e.JRh(n.description),e.R7$(),e.Dyx(n.servicesOfferts),e.R7$(2),e.vxM(10,null!=(o=s.abonnementsForm.get("categories"))&&null!=(o=o.get(n.id))&&null!=o.errors&&o.errors.atLeastOneRequired&&null!=(o=s.abonnementsForm.get("categories"))&&null!=(o=o.get(n.id))&&o.touched?10:-1)}}function co(t,_){if(1&t&&(e.j41(0,"p",18),e.EFF(1),e.k0s()),2&t){const o=e.XpG(2);e.R7$(),e.SpI("",o.labels.msgCategorieObligatoireTousMoyens," ")}}function uo(t,_){if(1&t&&(e.j41(0,"p",18),e.EFF(1),e.k0s()),2&t){const o=e.XpG(2);e.R7$(),e.SpI("",o.labels.msgCategorieObligatoireAuMoinUnMoyen," ")}}function Co(t,_){if(1&t&&(e.j41(0,"p",18),e.EFF(1),e.k0s()),2&t){const o=e.XpG(2);e.R7$(),e.SpI("",o.labels.msgCategorieObligatoireAuMoyensSpecifique," ")}}function Eo(t,_){if(1&t&&(e.j41(0,"div",19),e.nrm(1,"i",31),e.j41(2,"div",32)(3,"p"),e.EFF(4),e.k0s(),e.j41(5,"p")(6,"small"),e.EFF(7),e.k0s()()()()),2&t){const o=e.XpG(2);e.R7$(4),e.E5c(" ",o.labels.msgSmsConfirmationPart1,"\xa0",o.appConfig.appConfig.munNom,"",o.labels.msgSmsConfirmationPart2," "),e.R7$(3),e.JRh(o.labels.msgSmsConfirmationFraisNote)}}function To(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",20),e.nrm(1,"input",33),e.j41(2,"ion-button",34),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.modifier())}),e.pXf(3,6),e.k0s()()}if(2&t){const o=e.XpG(2);e.R7$(2),e.Y8G("ngClass",e.eq3(1,no,o.parCourriel))}}function So(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",7)(1,"form",8),e.bIt("ngSubmit",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.modifier())}),e.j41(2,"div",9),e.DNE(3,oo,2,0,"h2",10)(4,io,2,0,"h2",11),e.j41(5,"h4",12),e.pXf(6,0),e.k0s(),e.DNE(7,_o,6,1,"div",13)(8,so,6,1,"div",13),e.j41(9,"div",14)(10,"mat-slide-toggle",15),e.pXf(11,1),e.k0s()(),e.j41(12,"div",16),e.DNE(13,lo,11,10,"div",17)(14,co,2,1,"p",18)(15,uo,2,1,"p",18)(16,Co,2,1,"p",18)(17,Eo,8,4,"div",19),e.k0s()(),e.DNE(18,To,4,3,"div",20),e.k0s()()}if(2&t){const o=e.XpG();e.Y8G("ngClass",e.eq3(13,Qt,!o.isSignUp)),e.R7$(),e.Y8G("formGroup",o.abonnementsForm)("ngClass",e.eq3(15,Kt,o.parCourriel)),e.R7$(2),e.vxM(3,o.parCourriel||o.isSignUp?
1-1:3),e.R7$(),e.vxM(4,o.parCourriel?4:-1),e.R7$(3),e.vxM(7,o.userHasPhone||o.parCourriel||!o.servicesWithAppel&&!o.servicesWithTexto?-1:7),e.R7$(),e.vxM(8,o.userUseFixe&&!o.parCourriel&&o.servicesWithTexto?8:-1),e.R7$(5),e.Y8G("ngForOf",o.categorieList),e.R7$(),e.vxM(14,o.appHasCategorieObligatoireTousMoyens?14:-1),e.R7$(),e.vxM(15,o.appHasCategorieObligatoireAuMoinsUnMoyen?15:-1),e.R7$(),e.vxM(16,o.appHasCategorieObligatoireMoyensSpecifique?16:-1),e.R7$(),e.vxM(17,o.isSignUp&&o.appConfig.appConfig.useShortCode&&o.hasAbonneTextoSubscription()?17:-1),e.R7$(),e.vxM(18,o.isSignUp?-1:18)}}let Gn=(()=>{var t;class _{constructor(){this.isSignUp=!1,this.isFromMobile=!1,this.userHasPhone=!1,this.userUseFixe=!1,this.checkPhoneNumber=new e.bkB,this.servicesOffertsList=[],this.canEditMoyensCommunication=!0,this.isCitoyenInscrit=!0,this.citoyenHasCourriel=!0,this.parCourriel=!1,this.EnumCommunicationTypeCodeHR=p.X4,this.EnumCommunicationTypeNoms=p.zu,this.EnumCommunicationTypeIcons=p.Ov,this.EnumCategorieRegleAbonnement=p.r8,this.appHasCategorieObligatoireTousMoyens=!1,this.appHasCategorieObligatoireMoyensSpecifique=!1,this.appHasCategorieObligatoireAuMoinsUnMoyen=!1,this.dataLoaded=!1,this.servicesWithTexto=!1,this.servicesWithAppel=!1,this.labels={msgAbonnementTelephoneFixe:"Modifiez votre num\xE9ro de t\xE9l\xE9phone par un num\xE9ro de t\xE9l\xE9phone mobile pour recevoir des messages texte",msgAbonnementTelephone:"Ajoutez votre num\xE9ro de t\xE9l\xE9phone pour recevoir les communications par appel ou message texte",msgCategorieObligatoireTousMoyens:"* Tous les moyens de communication sont obligatoires pour cette cat\xE9gorie.",msgCategorieObligatoireAuMoinUnMoyen:"** Un minimum d\u2019un moyen de communication est requis pour cette cat\xE9gorie.",msgCategorieObligatoireAuMoyensSpecifique:"*** Certains moyens de communication sont obligatoires pour cette cat\xE9gorie.",msgSmsConfirmationPart1:"Un message texte vous sera envoy\xE9* afin de confirmer votre abonnement aux communications de",msgSmsConfirmationPart2:". Votre num\xE9ro sera utilis\xE9 pour la r\xE9ception de communications en lien avec vos cat\xE9gories d'abonnement une fois celui-ci confirm\xE9.",msgSmsConfirmationFraisNote:"*Frais standards de messagerie et de donn\xE9es applicables. La fr\xE9quence des communications varie.",error:{msgCategorieObligatoireAuMoinUnMoyen:"Un abonnement \xE0 l\u2019un des moyens de communication suivants est requis pour cette cat\xE9gorie :"}},this.hasAbonneTextoSubscription=(0,e.vPA)(!1),this.fb=(0,e.WQX)(l.ok),this.store=(0,e.WQX)(j.il),this.route=(0,e.WQX)(V.nX),this.appMetaTags=(0,e.WQX)(ge.W),this.appConfig=(0,e.WQX)(te.o),this.actions$=(0,e.WQX)(M.En),this.dialog=(0,e.WQX)(ee.bZ),this.utilisateurService=(0,e.WQX)(ce.$),this.router=(0,e.WQX)(V.Ix),this.destroyRef=(0,e.WQX)(e.abz)}ngOnInit(){this.appMetaTags.updateMetaTags("Abonnements aux communications"),this.servicesOffertsList$=this.route.snapshot.data.servicesOfferts,this.isSignUp&&(this.currentUserSnapshot=new T.Personne,this.initEditForm(this.currentUserSnapshot)),this.route.snapshot.queryParams.token||this.isSignUp?this.isSignUp||this.utilisateurService.getPersonneByToken(this.route.snapshot.queryParams.token).pipe((0,g.pQ)(this.destroyRef)).subscribe(n=>{var i;this.currentUserSnapshot=n.user,this.userHasPhone=!!this.currentUserSnapshot.telephone,this.userUseFixe=n.user.typeTelephone===nt.vR.Fixe.value,this.abonnementsForm||this.initEditForm(n.user),this.parCourriel=!0,this.isCitoyenInscrit=null===(i=this.currentUserSnapshot)||void 0===i?void 0:i.inscrit,this.citoyenHasCourriel=!!this.currentUserSnapshot.courriel}):this.store.select(T.selectCurrentUser).pipe((0,g.pQ)(this.destroyRef)).subscribe(n=>{this.currentUserSnapshot=n,this.userHasPhone=!!n.telephone,this.userUseFixe=n.typTelId===nt.vR.Fixe.value,this.abonnementsForm||this.initEditForm(n)})}ngOnChanges(n){(n.userHasPhone||n.userUseFixe)&&this.dataLoaded&&this.manageAbonnement(!this.userHasPhone)}correctPhoneNumber(n){this.isSignUp||this.router.navigate(this.isFromMobile?["/utilisateur/editer"]:["/utilisateur/profil",{outlets:{profil:["editer"]}}],{state:{eventData:n}}),this.checkPhoneNumber.emit(n)}initEditForm(n){this.abonnementsForm||(this.abonnementsForm=this.fb.group({id:{value:null==n?void 0:n.id,disabled:!1},abonneAllCat:null==n?void 0:n.abonneAllCat,categories:this.fb.group({}),hasAbonnementTexto:null==n?void 0:n.hasAbonnementTexto}
1)),(0,et.z)([this.servicesOffertsList$,(0,K.of)(this.route.snapshot.data.categoriesAlerte)]).pipe((0,g.pQ)(this.destroyRef)).subscribe(([i,s])=>{if(this.servicesOffertsList=i,!this.dataLoaded){this.categorieList=s,this.categorieList.sort((d,a)=>d.nom.localeCompare(a.nom,void 0,{sensitivity:"base"})),this.dataLoaded=!0;const r=this.abonnementsForm.controls.categories,c=(d,a,u,S)=>{let E=null==n?void 0:n.abonneAllCat;return(d.regleAbonnement===p.r8.obligatoireTousMoyens||d.regleAbonnement===p.r8.obligatoireMoyensSpecifique&&{[p.X4.Appel]:d.abonnementAppelObligatoire,[p.X4.SMS]:d.abonnementTextoObligatoire,[p.X4.Courriel]:d.abonnementCourrielObligatoire,[p.X4.NotificationPush]:d.abonnementPushObligatoire}[u])&&(E=!0),!(!a||!d.servicesOfferts.includes(u))&&(E||S)};this.categorieList=this.categorieList.map(d=>{var a,u,S,E;d.servicesOfferts=[],d.useTelephone&&i.includes(p.X4.Appel)&&(this.servicesWithAppel=!0,d.servicesOfferts.push(p.X4.Appel)),d.useTexto&&i.includes(p.X4.SMS)&&(this.servicesWithTexto=!0,d.servicesOfferts.push(p.X4.SMS)),d.useCourriel&&i.includes(p.X4.Courriel)&&d.servicesOfferts.push(p.X4.Courriel),d.usePush&&i.includes(p.X4.NotificationPush)&&d.servicesOfferts.push(p.X4.NotificationPush),d.regleAbonnement===p.r8.obligatoireTousMoyens&&(this.appHasCategorieObligatoireTousMoyens=!0),d.regleAbonnement===p.r8.obligatoireMoyensSpecifique&&(this.appHasCategorieObligatoireMoyensSpecifique=!0),d.regleAbonnement===p.r8.obligatoireAuMoinsUnMoyen&&(this.appHasCategorieObligatoireAuMoinsUnMoyen=!0),this.canEditMoyensCommunication=!(null==n?void 0:n.abonneAllCat);const O=c(d,this.userHasPhone,p.X4.Appel,null==n||null===(a=n.categories)||void 0===a||null===(a=a[d.id])||void 0===a?void 0:a.abonneAppel),f=c(d,this.userHasPhone&&!this.userUseFixe,p.X4.SMS,null==n||null===(u=n.categories)||void 0===u||null===(u=u[d.id])||void 0===u?void 0:u.abonneTexto),I=c(d,this.isCitoyenInscrit,p.X4.NotificationPush,null==n||null===(S=n.categories)||void 0===S||null===(S=S[d.id])||void 0===S?void 0:S.abonnePush),b=c(d,this.citoyenHasCourriel,p.X4.Courriel,null==n||null===(E=n.categories)||void 0===E||null===(E=E[d.id])||void 0===E?void 0:E.abonneCourriel),N=d.regleAbonnement===p.r8.obligatoireMoyensSpecifique,y=d.regleAbonnement===p.r8.obligatoireTousMoyens,G=new l.gE({abonneAppel:new l.MJ(O),abonneTexto:new l.MJ(f),abonnePush:new l.MJ(I),abonneCourriel:new l.MJ(b),regleAbonnement:new l.MJ(d.regleAbonnement),regleAbonnementCourrielObligatoire:new l.MJ(y||N&&d.abonnementCourrielObligatoire),regleAbonnementAppelObligatoire:new l.MJ(y||N&&d.abonnementAppelObligatoire),regleAbonnementTextoObligatoire:new l.MJ(y||N&&d.abonnementTextoObligatoire),regleAbonnementPushObligatoire:new l.MJ(y||N&&d.abonnementPushObligatoire)});var B,L;return d.regleAbonnement===p.r8.obligatoireAuMoinsUnMoyen&&G.setValidators([this.isAuMoinsUnMoyenValidator(d)]),(!this.userHasPhone||!this.canEditMoyensCommunication||N&&d.abonnementAppelObligatoire||d.regleAbonnement===p.r8.obligatoireTousMoyens)&&(null===(B=G.get("abonneAppel"))||void 0===B||B.disable()),(!this.userHasPhone||this.userUseFixe||!this.canEditMoyensCommunication||N&&d.abonnementTextoObligatoire||d.regleAbonnement===p.r8.obligatoireTousMoyens)&&(null===(L=G.get("abonneTexto"))||void 0===L||L.disable()),(!this.citoyenHasCourriel||!this.canEditMoyensCommunication||N&&d.abonnementCourrielObligatoire||d.regleAbonnement===p.r8.obligatoireTousMoyens)&&G.get("abonneCourriel").disable(),(!this.isCitoyenInscrit||!this.canEditMoyensCommunication||N&&d.abonnementPushObligatoire||d.regleAbonnement===p.r8.obligatoireTousMoyens)&&G.get("abonnePush").disable(),r.addControl(d.id,G),d}),this.labels.msgAbonnementTelephone=this.servicesWithAppel&&this.servicesWithTexto?this.labels.msgAbonnementTelephone:this.getMsgAbonnementTelephone(),this.currentUserSnapshot.categories=this.abonnementsForm.getRawValue().categories,this.updateHasAbonneTextoSubscription(),r.valueChanges.pipe((0,g.pQ)(this.destroyRef)).subscribe(()=>this.updateHasAbonneTextoSubscription())}}),this.abonnementsForm.get("abonneAllCat").valueChanges.pipe((0,g.pQ)(this.destroyRef)).subscribe(i=>{this.canEditMoyensCommunication=!i;const s=this.abonnementsForm.get("categories");this.categorieList.forEach(r=>{if(r.regleAbonnement!==p.r8.obligatoireTousMoyens){const c=s.get(r.id),d={[p.X4.Appel]:r.abonnementAppelObligatoire,[p.X4.SMS]:r.abonnementTextoObligatoire,[p.X4.Courriel]:r.abonnementCourrielObligatoire,[p.X4.NotificationPush]:r.abonnementPushObligatoire};
1r.servicesOfferts.forEach(a=>{const u=i||r.regleAbonnement===p.r8.obligatoireMoyensSpecifique&&d[a],S=this.getServiceControlName(a),E=c.get(S),P=a===p.X4.NotificationPush&&this.isCitoyenInscrit,O=(a===p.X4.Appel||a===p.X4.SMS&&!this.userUseFixe)&&this.userHasPhone,f=a===p.X4.Courriel&&this.citoyenHasCourriel;E.patchValue(!!(P||O||f)&&u),!i&&(r.regleAbonnement!==p.r8.obligatoireMoyensSpecifique||!d[a])&&(P||O||f)&&(r.regleAbonnement===p.r8.obligatoireMoyensSpecifique&&d[a]||E.enable())})}})})}isAuMoinsUnMoyenValidator(n){return i=>{const s=[];var r,c,d,a;return n.useTelephone&&n.abonnementAppelObligatoire&&s.push(null===(r=i.get("abonneAppel"))||void 0===r?void 0:r.value),n.useTexto&&n.abonnementTextoObligatoire&&s.push(null===(c=i.get("abonneTexto"))||void 0===c?void 0:c.value),n.usePush&&this.isCitoyenInscrit&&n.abonnementPushObligatoire&&s.push(null===(d=i.get("abonnePush"))||void 0===d?void 0:d.value),n.useCourriel&&this.citoyenHasCourriel&&n.abonnementCourrielObligatoire&&s.push(null===(a=i.get("abonneCourriel"))||void 0===a?void 0:a.value),0===s.length||s.some(Boolean)?null:{atLeastOneRequired:!0}}}getMsgErreurAbonnementObligatoireAuMoinUnMoyen(n){const i=[];return n.useTelephone&&n.abonnementAppelObligatoire&&i.push(p.zu.appel),n.useTexto&&n.abonnementTextoObligatoire&&i.push(p.zu.texto),n.useCourriel&&n.abonnementCourrielObligatoire&&i.push(p.zu.courriel),n.usePush&&n.abonnementPushObligatoire&&i.push(p.zu.pushNotif),`${this.labels.error.msgCategorieObligatoireAuMoinUnMoyen} ${i.join(", ")}`}manageAbonnement(n){const i=this.abonnementsForm.get("categories"),s=this.abonnementsForm.get("abonneAllCat").value;this.categorieList.forEach(r=>{const c=i.get(r.id),d={abonneAppel:r.abonnementAppelObligatoire,abonneTexto:r.abonnementTextoObligatoire,abonneCourriel:r.abonnementCourrielObligatoire};r.servicesOfferts.forEach(a=>{const u=this.getServiceControlName(a),S=c.get(u);if(S){const E=p.r8.obligatoireTousMoyens===r.regleAbonnement||s||r.regleAbonnement===p.r8.obligatoireMoyensSpecifique&&d[u];["abonneTexto","abonneAppel"].includes(u)&&(n||this.userUseFixe&&"abonneTexto"===u?(S.patchValue(!1),S.disable()):E?(S.patchValue(!0,{emitEvent:!1}),S.disable()):S.enable())}})})}updateHasAbonneTextoSubscription(){const n=this.abonnementsForm.getRawValue().categories;this.hasAbonneTextoSubscription.set(Object.values(null!=n?n:{}).some(i=>!0===i.abonneTexto))}getServiceControlName(n){switch(n){case p.X4.Appel:return"abonneAppel";case p.X4.SMS:return"abonneTexto";case p.X4.Courriel:return"abonneCourriel";case p.X4.NotificationPush:return"abonnePush";default:return""}}getMsgAbonnementTelephone(){return this.servicesWithAppel?"Ajoutez votre num\xE9ro de t\xE9l\xE9phone pour recevoir les communications par appel":this.servicesWithTexto?"Ajoutez votre num\xE9ro de t\xE9l\xE9phone pour recevoir les communications par message texte":""}modifier(){if(!this.abonnementsForm.valid)return this.abonnementsForm.markAllAsTouched(),void this.store.dispatch(z.showSnackBarErrorUserCreateOrEdit({renseignementPersoInvalid:!1}));const n=this.abonnementsForm.getRawValue(),i=Object.values(n.categories).some(c=>!0===c.abonneTexto);let s,r;this.abonnementsForm.get("hasAbonnementTexto").patchValue(i),n.hasAbonnementTexto=i,s=this.appConfig.appConfig.useShortCode&&this.currentUserSnapshot.telephone&&!this.currentUserSnapshot.hasAbonnementTexto&&i?this.dialog.open(tt,{data:{ville:this.appConfig.appConfig.munNom,fromAbonnement:!0},width:p.Uq.Large,disableClose:!0}).afterClosed():(0,K.of)({sendSmsVerification:!1}),(this.currentUserSnapshot.abonneAllCat!==n.abonneAllCat||this.isAbonnementChanged(this.currentUserSnapshot.categories,n.categories))&&(r=this.getAbonnementChanges(this.currentUserSnapshot.categories,n.categories,this.currentUserSnapshot.abonneAllCat!==n.abonneAllCat)),this.actions$.pipe((0,M.gp)(D.UPDATEUSERSUCCESS),(0,Q.T)(c=>c.payload),(0,g.pQ)(this.destroyRef)).subscribe(c=>{this.currentUserSnapshot={...this.currentUserSnapshot,...c},this.abonnementsForm.markAsPristine()}),s.pipe((0,g.pQ)(this.destroyRef)).subscribe(c=>{c&&this.store.dispatch(new D.UpdateAbonnements({user:{...n,shouldSe
1ndSmsVerification:c.sendSmsVerification,perId:this.currentUserSnapshot.perId,courriel:this.currentUserSnapshot.courriel},journalEvenement:r}))})}isAbonnementChanged(n,i){const s=a=>null!==a&&a,c=(0,Ne.mapValues)(n,a=>(0,Ne.mapValues)(a,s)),d=(0,Ne.mapValues)((0,Ne.pickBy)(i,u=>!(0,Ne.every)(u,S=>!1===s(S))),a=>(0,Ne.mapValues)(a,s));return!(0,Ne.isEqual)(c,d)}getAbonnementChanges(n,i,s=!1){var r;const c=new m.ow(this.currentUserSnapshot.prenom+" "+this.currentUserSnapshot.nom,p.zA.Citoyen),d=[],a=[],u=new Set([...Object.keys(n),...Object.keys(i)]),S={};if(u.forEach(O=>{const f=n[O]||{},I=i[O]||{},b={newValue:[],oldValue:[]};(0,Ne.forEach)(f,(N,y)=>{const G=I[y];!1===(null!=N&&N)&&!0===(null!=G&&G)?b.newValue.push(this.getMoyenDeCommByPersonne(y)):!0===(null!=N&&N)&&!1===(null!=G&&G)&&b.oldValue.push(this.getMoyenDeCommByPersonne(y))}),(0,Ne.forEach)(I,(N,y)=>{!(y in f)&&!0===(null!=N&&N)&&b.newValue.push(this.getMoyenDeCommByPersonne(y))}),(b.newValue.length>0||b.oldValue.length>0)&&(S[O]=b)}),s){const O=this.currentUserSnapshot.abonneAllCat?[{fr:"Oui",en:"Yes"}]:[{fr:"Non",en:"No"}],f=this.currentUserSnapshot.abonneAllCat?[{fr:"Non",en:"No"}]:[{fr:"Oui",en:"Yes"}];a.push({oldValue:{label:{fr:"Tous les th\xe9matiques",en:"All topics"},value:{label:O,value:O}},newValue:{label:{fr:"Tous les th\xe9matiques",en:"All topics"},value:{label:f,value:f}}})}Object.fromEntries(Object.entries(S).map(([O,f])=>{const I=this.categorieList.find(B=>B.id===O);if(I){var b,N,y,G;O=(null==I?void 0:I.nom)||O;const B={fr:null!==(b=null===(N=I.localisations.find(X=>X.lclzTag===p.fi.FR))||void 0===N?void 0:N.nom)&&void 0!==b?b:null==I?void 0:I.nom,en:null!==(y=null===(G=I.localisations.find(X=>X.lclzTag===p.fi.EN))||void 0===G?void 0:G.nom)&&void 0!==y?y:null==I?void 0:I.nom};a.push({newValue:{label:B,value:{label:f.newValue,value:f.newValue}},oldValue:{label:B,value:{label:f.oldValue,value:f.oldValue}}})}return[O,f]}));const E=a.map(O=>O.oldValue),P=a.map(O=>O.newValue);return(E.length||P.length)&&(c.details.push(new m.TM(p.Wp.ModificationAbonnements,E,P)),d.push(c)),null!=d&&null!==(r=d[0])&&void 0!==r&&null!==(r=r.details)&&void 0!==r&&r.length?d:null}getMoyenDeCommByPersonne(n){switch(n){case"abonneAppel":return{fr:"Appel",en:"Phone call"};case"abonneTexto":return{fr:"Message Texte",en:"SMS"};case"abonnePush":return{fr:"Notification push",en:"Push notification"};case"abonneCourriel":return{fr:"Courriel",en:"Email"}}}preventPanelExpansion(n){n.stopPropagation()}}return(t=_).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-abonnements-content"]],inputs:{isSignUp:"isSignUp",isFromMobile:"isFromMobile",userHasPhone:"userHasPhone",userUseFixe:"userUseFixe",abonnementsForm:"abonnementsForm"},outputs:{checkPhoneNumber:"checkPhoneNumber"},features:[e.OA$],decls:2,vars:1,consts:()=>{let o,n,i,s,r,c,d;return o="Je souhaite recevoir des communications sur les th\xE9matiques suivantes\xA0: ",n="Tout s\xE9lectionner",i="Abonnements aux communications",s="Mettre \xE0 jour mes pr\xE9f\xE9rences",r="Ajouter",c="Modifier",d=" Enregistrer ",[o,n,i,s,r,c,d,[1,"form-container","user-form-container",3,"ngClass"],[3,"ngSubmit","formGroup","ngClass"],[1,"abonnements-form-content"],[1,"form-section-title"],[1,"margin-top-2"],[1,"Abonnement-title"],[1,"alert"],[1,"checkbox-all-container"],["formControlName","abonneAllCat"],["formGroupName","categories",1,"checkbox-categorie-container"],["class","full-width categorie-details",3,"formGroupName","ngClass",4,"ngFor","ngForOf"],[1,"mandatory-note"],[1,"short-code-confirmation","flex-space-between"],[1,"edit-form-actions"],[1,"icon-alert-triangle"],[3,"click"],[1,"full-width","categorie-details",3,"formGroupName","ngClass"],[1,"communication-services"],[1,"services-icons"],[1,"active-service-icon"],[1,"categorie-desc"],[1,"services-options"],[1,"margin-bottom-1",3,"formControlName","disabled"],[1,"error-message"],[1,"icon-form-info"],[1,"short-code-confirmation-msg"],["type","submit","hidden",""],["expand","block",1,"ion-custom-button-standard","ion-custom-button-full","margin-top-15",3,"click","ngClass"]]},template:function(n,i){1&n&&e.DNE(0,to,1,0,"vplus-loading-spinner")(1,So,19,17),2&n&&e.vxM(0,i.dataLoaded?1:0)},dependencies:[Jt.sG,R.TL,A.YU,A.Sq,l.qT,l.BC,l.cb,l.j4,l.JD,l.$R,$.Jm,Nn.N],styles:[".checkbox-all-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding-top:2rem;padding-bottom:1rem}@media (max-width: 769px){.checkbox-all-container[_ngcontent-%COMP%]{padding-bottom:.5rem}}.checkbox-all-container[_ngcontent-%COMP%] .mat-slide-toggle-content{font-weight:500;font-size:16px}.checkbox-all-container[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{padding-left:6px;color:var(--primary-color)}@media (max-width: 769px){.categorie-details[_ngcontent-%COMP%]{padding-top:1rem;padding-bottom:1rem}}.margin-top-15[_ngcontent-%COMP%]{margin-top:15px}.services-options[_ngcontent-%COMP%]{display:contents}.services-options[_ngcontent-%COMP%] .mat-slide-toggle-content{font-size:14px!important}.services-options[_ngcontent-%COMP%] mat-slide-toggle[_ngcontent-%COMP%]{padding-right:36px}.padding-form-mobile[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:13px}
1.alert[_ngcontent-%COMP%]{border:1px solid var(--divider-color);border-radius:5px;padding-right:10px;padding-left:10px;margin-bottom:7px;display:flex;align-items:center;justify-content:space-between}@media (max-width: 769px){.alert[_ngcontent-%COMP%]{padding-right:15px;padding-left:15px}}@media (min-width: 769px){.alert[_ngcontent-%COMP%]{height:55px}}@media (max-width: 769px){.alert[_ngcontent-%COMP%]{margin-top:2rem}}.alert[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:var(--primary-color)!important;font-size:22px;padding-right:9px}@media (max-width: 769px){.alert[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:24px;padding-right:15px}}.alert[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:12px;flex:auto;line-height:1.6;font-weight:500}@media (max-width: 769px){.alert[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:13px}}.alert[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:600;font-size:14px;color:var(--primary-color);cursor:pointer}@media (max-width: 769px){.alert[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding-left:8px}}.error-message[_ngcontent-%COMP%]{padding-bottom:8px;font-size:small;color:var(--warn-color)}.alert-icon[_ngcontent-%COMP%]{font-size:24px;margin-right:10px}.Abonnement-title[_ngcontent-%COMP%]{font-size:23px!important;font-weight:700}@media (max-width: 769px){.Abonnement-title[_ngcontent-%COMP%]{font-size:18px!important}}.categorie-desc[_ngcontent-%COMP%]{margin-top:0;font-size:12px;line-height:1.4rem}@media (max-width: 769px){.categorie-desc[_ngcontent-%COMP%]{font-size:13px}}.communication-services[_ngcontent-%COMP%]{justify-content:space-between;align-items:center;display:flex;align-items:left}.communication-services[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1rem!important;font-weight:700}@media (max-width: 769px){.communication-services[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1.2rem!important}}.communication-services[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-left:9px;margin-right:5px;color:var(--divider-color)}.active-service-icon[_ngcontent-%COMP%]{color:#000!important;font-size:30px!important}.mandatory-note[_ngcontent-%COMP%]{font-size:12px;color:#1a1a1a;font-style:italic;line-height:1rem!important}.short-code-confirmation[_ngcontent-%COMP%]{background:var(--light-grey-color);padding:12px 16px;margin-top:1rem}.short-code-confirmation-msg[_ngcontent-%COMP%]{font-size:86%}.short-code-confirmation[_ngcontent-%COMP%] .icon-form-info[_ngcontent-%COMP%]{display:block;color:var(--primary-color);padding-top:2px;padding-right:8px}.short-code-confirmation[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;line-height:1.2rem}.short-code-confirmation[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:has(small){margin-top:1.5rem}"]}),_})();const po=t=>({"filter-searche-global-active":t});let mo=(()=>{var t;class _{constructor(n){this.store=n,this.selectIsSearchHeaderVisible$=this.store.select(T.selectIsSearchHeaderVisible)}onContentClick(){this.store.dispatch(T.Actions.setIsSearchHeaderVisible({payload:!1}))}}return(t=_).\u0275fac=function(n){return new(n||t)(e.rXU(j.il))},t.\u0275cmp=e.VBU({type:t,selectors:[["app-abonnements"]],decls:4,vars:10,consts:[[1,"hide-desktop","mobile-header",3,"defaultHref","headerTitle","returnButtonType","menuId"],["id","abonnements",3,"click","ngClass"],[3,"isFromMobile"]],template:function(n,i){1&n&&(e.nrm(0,"vplus-mobile-header",0),e.j41(1,"ion-content",1),e.nI1(2,"async"),e.bIt("click",function(){return i.onContentClick()}),e.nrm(3,"vplus-abonnements-content",2),e.k0s()),2&n&&(e.Y8G("defaultHref","utilisateur/profil")("headerTitle","")("returnButtonType","back-button")("menuId","abonnements"),e.R7$(),e.Y8G("ngClass",e.eq3(8,po,e.bMT(2,6,i.selectIsSearchHeaderVisible$))),e.R7$(2),e.Y8G("isFromMobile",!0))},dependencies:[A.YU,de.f,$.W9,Gn,A.Jj],encapsulation:2}),_})();var ot=C(68268),it=C(55288);let No=(()=>{var t;class _{constructor(n,i,s){this.appConfig=n,this.router=i,this.store=s}canActivate(n,i){return!this.appConfig.appConfig.citoyenForm.activateCarteCitoyenne||(this.store.dispatch(T.Actions.setIsFirstLoggedIn({payload:!1})),this.router.navigate(["/utilisateur/profil",{outlets:{profil:["carte"]}}]),!1)}}return(t=_).\u0275fac=function(n){return new(n||t)(e.KVO(te.o),e.KVO(V.Ix),e.KVO(j.il))},t.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}),_})();var fo=C(28167),Po=C(24788),Oo=C(50505),on=C(16695),Dn=C(11660),ue=C(88834),Mo=C(50127),w=C(64075),Ce=C(59042),Ie=C(14823);const Ao=()=>[];function go(t,_){if(1&t){const o=e.RV6();e.j41(0,"mat-error",17)(1,"span"),e.pXf(2,5),e.k0s(),e.EFF(3,"\xa0 "),e.j41(4,"a",29),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.sendActivationEmail())}),e.pXf(5,6),e.k0s(),e.EFF(6,"\xa0 "),e.j41(7,"span"),e.pXf(8,7),e.k0s()()}2&t&&(e.R7$(4),e.Y8G("routerLink",e.lJ4(1,Ao)))}function Io(t,_){1&t&&(e.j41(0,"mat-error",17),e.pXf(1,8),e.k0s())}function ho(t,_){1&t&&(e.j41(0,"mat-error",17),e.pXf(1,9),e.k0s())}function Ro(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,10),e.k0s())}function Lo(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,11),e.k0s())}function Uo(t,_){if(1&t){const o=e.RV6();e.j41(0,"mat-icon-button",30),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.togglePasswordVisibility())}),e.nrm(1,"i",31),e.k0s()}if(2&t){const o=e.XpG();e.FS9("matTooltip",o.passwordHidden?o.labels.showPassword:o.labels.hidePassword),e.R7$(),e.Y8G("ngClass",o.passwordHidden?"icon-eye":"icon-eye-off")}}function bo(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,12),e.k0s())}function vo(t,_){if(1&t&&(e.j41(0,"a",28),e.pXf(1,13),e.k0s()),2&t){const o=e.XpG();e.Y8G("queryParams",o.queryParam)}}let $o=(()=>{var t;class _{constructor(){this.fb=(0,e.WQX)(l.ok),this.store=(0,e.WQX)(j.il),this.actions$=(0,e.WQX)(M.En),this.router=(0,e.WQX)(V.nX),this.utilisateurService=(0,e.WQX)(ce.$),this.appConfig=(0,e.WQX)(te.o),this.authenticationService=(0,e.WQX)(on.k),this.passwordHidden=!0,this.isPasswordNotEmpty=!1,this.labels={showPassword:"Aff
1icher",hidePassword:"Masquer"}}ngOnInit(){this.appIsServitech="servitech"===this.appConfig.appConfig.appNom,this.queryParam=this.router.snapshot.queryParams,this.signInForm=this.fb.group({email:["",[l.k0.required,(0,w.Bjz)()]],password:["",l.k0.required]}),this.loginResponseSub=this.actions$.pipe((0,M.gp)(T.Actions.LOGINFAIL)).subscribe(({payload:n})=>{"InvalidEmailOrPassword"===n?this.signInForm.setErrors({invalidEmailOrPassword:!0}):"EmailNotVerified"===n?this.signInForm.setErrors({emailNotVerified:!0}):"TooManyRequests"===n&&this.signInForm.setErrors({tooManyRequests:!0})})}signIn(){this.signInForm.valid&&this.store.dispatch(new T.Actions.Login(this.signInForm.value))}onInput(n){this.isPasswordNotEmpty=this.signInForm.get("password").value.trim().length>0}sendActivationEmail(){this.utilisateurService.sendActivationEmail(this.signInForm.value.email).subscribe(i=>{this.store.dispatch(i.ok?new T.Actions.ShowSnackBar("Un lien pour activer votre compte vous a \xE9t\xE9 envoy\xE9 par courriel."):new T.Actions.ShowSnackBar("Une erreur est survenue, veuillez r\xE9essayer.",T.EnumSnackBarType.Echec)),this.signInForm.setErrors({}),this.signInForm.updateValueAndValidity()})}togglePasswordVisibility(){this.passwordHidden=!this.passwordHidden}ngOnDestroy(){this.loginResponseSub&&this.loginResponseSub.unsubscribe()}}return(t=_).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-auth-content"]],decls:30,vars:10,consts:()=>{let o,n,i,s,r,c,d,a,u,S,E,P,O,f,I,b;return o="Entrez votre courriel",n="Entrez votre mot de passe",i="Se connecter",s="Courriel",r="Mot de passe",c="Mot de passe oubli\xE9 ?",d=" Connexion ",a="Votre compte n'a pas \xE9t\xE9 activ\xE9. Veuillez",u="cliquez ici",S="pour recevoir un nouveau courriel d'activation.",E=" Adresse courriel ou mot de passe erron\xE9. ",P=" Trop de tentatives successives. Veuillez attendre et r\xE9essayer plus tard. ",O="Champ obligatoire ",f="Courriel non valide ",I="Champ obligatoire ",b=" Cr\xE9er un compte ",[i,s,r,c,d,a,u,S,E,P,O,f,I,b,[1,"margin-bottom-2"],[3,"ngSubmit","formGroup"],[1,"padding-bottom"],[1,"padding-bottom-12"],["appearance","outline"],["matInput","","type","email","placeholder",o,"formControlName","email"],[1,"password-container"],["matInput","","placeholder",n,"formControlName","password",3,"input","type"],["matSuffix","","aria-label","Toggle password visibility",1,"password-toggle",3,"matTooltip"],[1,"mdp-oublie-hint"],["routerLink","/utilisateur/reinitialiser-mdp"],[1,"login-form-actions"],["type","submit","hidden",""],["mat-raised-button","","type","submit",1,"custom-button-standard","custom-button-full"],["mat-stroked-button","","routerLink","/utilisateur/creer","type","button",1,"custom-button-standard","custom-button-stroked",3,"queryParams"],[3,"click","routerLink"],["matSuffix","","aria-label","Toggle password visibility",1,"password-toggle",3,"click","matTooltip"],[3,"ngClass"]]},template:function(n,i){1&n&&(e.j41(0,"h2",14),e.pXf(1,0),e.k0s(),e.j41(2,"form",15),e.bIt("ngSubmit",function(){return i.signIn()}),e.j41(3,"div",16)(4,"div"),e.DNE(5,go,9,2,"mat-error",17)(6,Io,2,0,"mat-error",17)(7,ho,2,0,"mat-error",17),e.k0s(),e.j41(8,"div")(9,"mat-label"),e.pXf(10,1),e.k0s(),e.j41(11,"mat-form-field",18),e.nrm(12,"input",19),e.DNE(13,Ro,2,0,"mat-error")(14,Lo,2,0,"mat-error"),e.k0s(),e.j41(15,"mat-label"),e.pXf(16,2),e.k0s(),e.j41(17,"mat-form-field",18)(18,"div",20)(19,"input",21),e.bIt("input",function(r){return i.onInput(r)}),e.k0s(),e.DNE(20,Uo,2,2,"mat-icon-button",22),e.k0s(),e.DNE(21,bo,2,0,"mat-error"),e.k0s(),e.j41(22,"mat-hint",23)(23,"a",24),e.pXf(24,3),e.k0s()()()(),e.j41(25,"div",25),e.nrm(26,"input",26),e.j41(27,"button",27),e.pXf(28,4),e.k0s(),e.DNE(29,vo,2,1,"a",28),e.k0s()()),2&n&&(e.R7$(2),e.Y8G("formGroup",i.signInForm),e.R7$(3),e.vxM(5,null!=i.signInForm.errors&&i.signInForm.errors.emailNotVerified?5:-1),e.R7$(),e.vxM(6,null!=i.signInForm.errors&&i.signInForm.errors.invalidEmailOrPassword?6:-1),e.R7$(),e.vxM(7,null!=i.signInForm.errors&&i.signInForm.errors.tooManyRequests?7:-1),e.R7$(6),e.vxM(13,null!=i.signInForm.controls.email.errors&&i.signInForm.controls.email.errors.required?13:-1),e.R7$(),e.vxM(14,i.signInForm.controls.email.hasError("invalidEmail")?14:-1),e.R7$(5),e.Y8G("type",i.passwordHidden?"password":"text"),e.R7$(),e.vxM(20,i.isPasswordNotEmpty?20:-1),e.R7$(),e.vxM(21,null!=i.signInForm.controls.password.errors&&i.signInForm.controls.password.errors.required?21:-1),e.R7$(8),e.vxM(29,i.appIsServitech?-1:29))},dependencies:[Ce.fg,R.rl,R.nJ,R.MV,R.TL,R.yw,ue.It,ue.$z,Ie.oV,A.YU,l.qT,l.me,l.BC,l.cb,l.j4,l.JD,$.oY,V.Wk],encapsulation:2}),_})();var yn=C(70702),he=C(72609),Re=C(32430);const Fo=t=>({secondes:t});function Go(t,_){if(1&t){const o=e.RV6();e.j41(0,"button",12),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.sendValidation(i.EnumA2fType.SMS))}),e.j41(1,"span",13)(2,"span"),e.pXf(3,3),e.k0s(),e.EFF(4),e.nI1(5,"imask"),e.k0s()()}if(2&t){const o=e.XpG(),n=e.XpG();e.Y8G("disabled",o.secondes>0),e.R7$(4),e.SpI("\xa0",e.i5U(5,2,n.telephoneBlanc,n.telBlancMaskObjet)," ")}}function Do(t,_){if(1&t&&(e.j41(0,"p",11)(1,"span"),e.pXf(2,4),e.k0s(),e.EFF(3),e.k0s()),2&t){const o=e.XpG();e.R7$(3),e.SpI("\xa0",o.secondes,"\xa0s ")}}function yo(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",7)(1,"div",8),e.DNE(2,Go,6,5,"button",9),e.j41(3,"button",10),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.sendValidation(i.EnumA2fType.Appel))}),e.j41(4,"span")(5,"span"),e.pXf(6,2),e.k0s(),e.EFF(7),e.nI1(8,"imask"),e.k0s()(),e.DNE(9,Do,4,1,"p",11),e.k0s()()}if(2&t){const o=_,n=e.XpG();e.R7$(2),e.vxM(2,n.canSendSms?2:-1),e.R7$(),e.Y8G("disabled",o.secondes>0),e.R7$(4),e.SpI("\xa0",e.i5U(8,4,n.telephoneBlanc,n.telBlancMaskObjet)," "),e.R7$(2),e.vxM(9,o.secondes?9:-1)}}
1let Xo=(()=>{var t;class _{constructor(){this.destroyRef=(0,e.WQX)(e.abz),this.store=(0,e.WQX)(j.il),this.appConfig=(0,e.WQX)(te.o),this.limitationDebit=(0,e.WQX)(he.Mt),this.EnumA2fType=p.tB,this.secondesAvantRenvoi$=this.limitationDebit.secondesAvantRenvoiMfa$}ngOnInit(){this.telBlancMaskObjet=this.appConfig.appConfig.telBlancMaskObjet,this.store.select(yn.oG).pipe((0,g.pQ)(this.destroyRef)).subscribe(n=>{this.telephoneBlanc=n.telephone,this.canSendSms=n.typTelId!==m._m.Fixe.value,this.token=n.token})}sendValidation(n){this.limitationDebit.secondesAvantRenvoiMfa>0||this.store.dispatch(D.sendMfaVerification({payload:{token:this.token,channel:n}}))}}return(t=_).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-mfa-send-content"]],decls:7,vars:5,consts:()=>{let o,n,i,s,r;return o="V\xE9rifier votre identit\xE9",n="Veuillez s\xE9lectionner la m\xE9thode de v\xE9rification que vous souhaitez utiliser pour v\xE9rifier votre identit\xE9 : ",i="Appeler au",s="Texter au",r="Un nouveau code pourra \xEAtre demand\xE9 dans",[o,n,i,s,r,[1,"margin-bottom-2"],[1,"padding-bottom-1"],[1,"justify-center"],[1,"mfa-button-container"],["mat-raised-button","","type","button",1,"custom-button-standard","custom-button-full","margin-bottom-2",3,"disabled"],["mat-raised-button","","type","button",1,"custom-button-standard","custom-button-full",3,"click","disabled"],[1,"margin-top-1"],["mat-raised-button","","type","button",1,"custom-button-standard","custom-button-full","margin-bottom-2",3,"click","disabled"],[1,"mfa-button-label-container"]]},template:function(n,i){if(1&n&&(e.j41(0,"h2",5),e.pXf(1,0),e.k0s(),e.j41(2,"div",6)(3,"p",5),e.pXf(4,1),e.k0s(),e.DNE(5,yo,10,7,"div",7),e.nI1(6,"async"),e.k0s()),2&n){let s;e.R7$(5),e.vxM(5,(s=e.eq3(3,Fo,e.bMT(6,1,i.secondesAvantRenvoi$)))?5:-1,s)}},dependencies:[ue.$z,A.Jj,Re.YH],styles:[".mfa-button-container[_ngcontent-%COMP%] .custom-button-standard[_ngcontent-%COMP%]{width:100%}.mfa-button-container[_ngcontent-%COMP%] .custom-button-standard[_ngcontent-%COMP%] .mat-mdc-button .mdc-button__label{width:100%}.mfa-button-container[_ngcontent-%COMP%] .custom-button-standard[_ngcontent-%COMP%] .mfa-button-label-container[_ngcontent-%COMP%]{width:100%}"]}),_})();var ko=C(65245);const xo=t=>({secondes:t});function jo(t,_){if(1&t&&(e.j41(0,"p")(1,"span"),e.pXf(2,2),e.k0s(),e.EFF(3),e.nI1(4,"imask"),e.j41(5,"span"),e.pXf(6,3),e.k0s()()),2&t){const o=e.XpG();e.R7$(3),e.SpI(" ",e.i5U(4,1,o.telephoneBlanc,o.telBlancMaskObjet),". ")}}function wo(t,_){if(1&t&&(e.j41(0,"p")(1,"span"),e.pXf(2,4),e.k0s(),e.EFF(3),e.nI1(4,"imask"),e.j41(5,"span"),e.pXf(6,5),e.k0s()()),2&t){const o=e.XpG();e.R7$(3),e.SpI(" ",e.i5U(4,1,o.telephoneBlanc,o.telBlancMaskObjet),"")}}function Vo(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,6),e.k0s())}function zo(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,7),e.k0s())}function Ho(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,8),e.k0s())}function Yo(t,_){if(1&t){const o=e.RV6();e.j41(0,"a",23),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.resendCode())}),e.pXf(1,9),e.k0s()}}function Bo(t,_){if(1&t&&(e.j41(0,"span",22)(1,"span"),e.pXf(2,10),e.k0s(),e.EFF(3),e.j41(4,"span"),e.pXf(5,11),e.k0s()()),2&t){const o=e.XpG();e.R7$(3),e.SpI("\xa0",o.secondes,"\xa0")}}function qo(t,_){if(1&t&&(e.j41(0,"div",17),e.DNE(1,Yo,2,0,"a",21)(2,Bo,6,1,"span",22),e.k0s()),2&t){const o=_;e.R7$(),e.vxM(1,o.secondes?-1:1),e.R7$(),e.vxM(2,o.secondes?2:-1)}}let Wo=(()=>{var t;class _{constructor(){this.destroyRef=(0,e.WQX)(e.abz),this.fb=(0,e.WQX)(l.ze),this.store=(0,e.WQX)(j.il),this.appConfig=(0,e.WQX)(te.o),this.actions$=(0,e.WQX)(M.En),this.limitationDebit=(0,e.WQX)(he.Mt),this.EnumA2fType=p.tB,this.secondesAvantRenvoi$=this.limitationDebit.secondesAvantRenvoiMfa$}ngOnInit(){this.codeForm=this.fb.group({code:["",[l.k0.required]]}),this.telBlancMaskObjet=this.appConfig.appConfig.telBlancMaskObjet,this.store.select(yn.oG).pipe((0,g.pQ)(this.destroyRef)).subscribe(n=>{this.telephoneBlanc=n.telephone,this.channel=n.channel,this.token=n.token}),this.store.select(yn.oG).pipe((0,ko.i)(1),(0,g.pQ)(this.destroyRef)).subscribe(()=>{this.store.dispatch(new D.ShowSnackBar("Code de confirmation renvoy\xE9 avec succ\xE8s"))}),this.actions$.pipe((0,M.gp)(D.validateMfaCodeFail),(0,g.pQ)(this.destroyRef)).subscribe(({payload:n})=>
1{this.codeForm.get("code").setErrors(429===n||60203===n?{tooManyRequests:!0}:{invalid:!0})})}validateCode(){this.codeForm.invalid?this.codeForm.markAllAsTouched():this.store.dispatch(D.validateMfaCode({payload:{token:this.token,code:this.codeForm.get("code").value}}))}resendCode(){this.limitationDebit.secondesAvantRenvoiMfa>0||this.store.dispatch(D.sendMfaVerification({payload:{token:this.token,channel:this.channel}}))}}return(t=_).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-mfa-validation-content"]],decls:18,vars:11,consts:()=>{let o,n,i,s,r,c,d,a,u,S,E,P,O;return o="Entrez votre code",n="Entrer le code de v\xE9rification",i=" V\xE9rifier et se connecter ",s="Un message texte a \xE9t\xE9 envoy\xE9 au",r="Veuillez entrer le code pour vous connecter :",c="Un appel est en cours au",d=". Veuillez entrer le code pour vous connecter :",a=" Veuillez entrer votre code de validation ",u=" Vous n\u2019avez pas saisi le code attendu. Veuillez r\xE9essayer. ",S=" Trop de tentatives successives. Veuillez attendre et r\xE9essayer plus tard. ",E=" Renvoyer le code ",P="Renvoyer le code dans",O="s",[n,i,s,r,c,d,a,u,S,E,P,O,[1,"margin-bottom-2"],[3,"ngSubmit","formGroup"],[1,"padding-bottom-24"],["appearance","outline"],["matInput","","type","text","placeholder",o,"formControlName","code"],[1,"resend-code"],[1,"login-form-actions"],["type","submit","hidden",""],["mat-raised-button","","type","submit",1,"custom-button-standard","custom-button-full"],[1,"sms-verification-link"],[1,"sms-verification-attente"],[1,"sms-verification-link",3,"click"]]},template:function(n,i){if(1&n&&(e.j41(0,"h2",12),e.pXf(1,0),e.k0s(),e.j41(2,"form",13),e.bIt("ngSubmit",function(){return i.validateCode()}),e.j41(3,"div",14),e.DNE(4,jo,7,4,"p")(5,wo,7,4,"p"),e.j41(6,"div")(7,"mat-form-field",15),e.nrm(8,"input",16),e.DNE(9,Vo,2,0,"mat-error")(10,zo,2,0,"mat-error")(11,Ho,2,0,"mat-error"),e.k0s(),e.DNE(12,qo,3,2,"div",17),e.nI1(13,"async"),e.k0s()(),e.j41(14,"div",18),e.nrm(15,"input",19),e.j41(16,"button",20),e.pXf(17,1),e.k0s()()()),2&n){let s;e.R7$(2),e.Y8G("formGroup",i.codeForm),e.R7$(2),e.vxM(4,i.channel===i.EnumA2fType.SMS?4:-1),e.R7$(),e.vxM(5,i.channel===i.EnumA2fType.Appel?5:-1),e.R7$(4),e.vxM(9,i.codeForm.controls.code.hasError("required")?9:-1),e.R7$(),e.vxM(10,i.codeForm.controls.code.hasError("invalid")?10:-1),e.R7$(),e.vxM(11,i.codeForm.controls.code.hasError("tooManyRequests")?11:-1),e.R7$(),e.vxM(12,(s=e.eq3(9,xo,e.bMT(13,7,i.secondesAvantRenvoi$)))?12:-1,s)}},dependencies:[Ce.fg,R.rl,R.TL,ue.$z,l.qT,l.me,l.BC,l.cb,l.j4,l.JD,A.Jj,Re.YH],styles:[".resend-code[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.resend-code[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),_})();function Jo(t,_){1&t&&e.nrm(0,"ion-back-button",4)}function Qo(t,_){if(1&t&&e.nrm(0,"img",8),2&t){const o=e.XpG();e.Y8G("imgUrl",o.defImgsLogo)}}function Ko(t,_){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const o=e.XpG();e.R7$(),e.JRh(o.config.munNom)}}function Zo(t,_){if(1&t){const o=e.RV6();e.j41(0,"a",10),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.changeLocalisation("en"===i.currentLocalisation?"fr":"en"))}),e.EFF(1),e.k0s()}if(2&t){const o=e.XpG();e.R7$(),e.SpI(" ","en"===o.currentLocalisation?"FR":"EN"," ")}}function ei(t,_){1&t&&e.nrm(0,"vplus-auth-content")}function ni(t,_){1&t&&e.nrm(0,"vplus-mfa-send-content")}function ti(t,_){1&t&&e.nrm(0,"vplus-mfa-validation-content")}let oi=(()=>{var t;class _{constructor(){this.appConfig=(0,e.WQX)(te.o),this.appMetaTags=(0,e.WQX)(ge.W),this.authenticationService=(0,e.WQX)(on.k),this.actions$=(0,e.WQX)(M.En),this.store=(0,e.WQX)(j.il),this.localisationService=(0,e.WQX)(ke.A),this.destroyRef=(0,e.WQX)(e.abz),this.document=(0,e.WQX)(A.qQ),this.oAuthService=(0,e.WQX)(Dn.T),this.EnumAuthStep={Credentials:"credentials",MfaSend:"mfaSend",MfaValidation:"mfaValidation"},this.currentStep=this.EnumAuthStep.Credentials,this.config=this.appConfig.appConfig,this.defImgsLogo=[],this.allowLocalisationParam=this.config.paramList[p.fW.AllowLocalisation],this.showReturnButton="msss"!==this.appConfig.appConfig.appNom,this.config.themeIsLocal?this.defImgsLogo.push(`${this.config.awsFilePath}/_ville_de_quebec/quebec.png`):(this.defImgsLogo.push(this.config.logoGrandUrl),this.defImgsLogo.push(this.config.logoUrl))}ngOnInit(){this.appConfig.useSSO?this.redirectSSO():this.appConfig.appConfig.useOAuth?this.redirectOAuth():(this.appElement=this.document.querySelector(".app-container"),this.actions$.pipe((0,M.gp)(D.startMfaVerification),(0,g.pQ)(this.destroyRef)).subscribe(()=>{this.currentStep=this.EnumAuthStep.MfaSend}),this.actions$.pipe((0,M.gp)(D.askMfaVerificationCode),(0,g.pQ)(this.destroyRef)).subscribe(()=>{this.store.dispatch(new D.ShowSnackBar("Code de confirmation envoy\xE9 avec succ\xE8s")),this.currentStep=this.EnumAuthStep.MfaValidation}))}redirectSSO(){this.authenticationService.getAuthUrl(this.document.location.href).pipe((0,me.s)(1)).subscribe(n=>{null!=n&&n.url&&(this.document.location.href=n.url)})}redirectOAuth(){this.oAuthService.startSigninMainWindow().pipe((0,g.pQ)(this.destroyRef)).subscribe()}ionViewWillEnter(){this.appMetaTags.updateMetaTags("Se connecter")}ionViewDidEnter(){this.appElement.classList.add("hide-header")}ionViewDidLeave(){this.currentStep=this.EnumAuthStep.Credentials,this.appElement.classList.remove("hide-header")}changeLocalisation(n){this.localisationService.redirectLocalisation(n)}}return(t=_).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-auth-container"]],decls:14,vars:8,consts:()=>{let o;return o="Retour",[["id","connexion"],[1,"login-page"],[1,"form-container","login-container"],[1,"login-page-header"],["mode","md","defaultHref","/accueil","icon","arrow-back","text",o],[1,"login-form"],[1,"logo-localisation-wrapper"],["routerLink","/accueil",1,"login-logo"],[3,"imgUrl"],["mat-button","",1,"localisation-link"],["mat-button","",1,"localisation-link",3,"click"]]},template:function(n,i){1&n&&(e.j41(0,"ion-content",0)(1,"div",1)(2,"div",2)(3,"div",3),e.DNE(4,Jo,1,0,"ion-back-button",4),e.k0s(),e.j41(5,"div",5)(6,"div",6)(7,"a",7),e.DNE(8,Qo,1,1,"img",8)(9,Ko,2,1),e.k0s(),e.DNE(10,Zo,2,1,"a",9),e.k0s(),e.DNE(11,ei,1,0,"vplus-auth-content")(12,ni,1,0,"vplus-mfa-se
1nd-content")(13,ti,1,0,"vplus-mfa-validation-content"),e.k0s()()()()),2&n&&(e.R7$(),e.AVh("msss","msss"===i.config.appNom),e.R7$(3),e.vxM(4,i.showReturnButton?4:-1),e.R7$(4),e.vxM(8,i.config.logoGrandUrl||i.config.logoUrl?8:9),e.R7$(2),e.vxM(10,i.allowLocalisationParam?10:-1),e.R7$(),e.vxM(11,i.currentStep===i.EnumAuthStep.Credentials?11:-1),e.R7$(),e.vxM(12,i.currentStep===i.EnumAuthStep.MfaSend?12:-1),e.R7$(),e.vxM(13,i.currentStep===i.EnumAuthStep.MfaValidation?13:-1))},dependencies:[ue.It,Mo.y,$.W9,$.el,$.oY,V.Wk,$o,Xo,Wo],encapsulation:2}),_})();var Xn=C(50154),Ve=C(89163),_t=C(5964),kn=C(35335),ze=C(21413);function He(t){return null==t?void 0:t.reduce((_,o)=>{var n;return _+(null===(n=o.adresseFormatte)||void 0===n?void 0:n.replace(/, (APP )?\d+$/,""))},"")}function Ye(t){return null==t?void 0:t.reduce((_,o)=>{var n;return _+(null!==(n=o.noAppartement)&&void 0!==n?n:"")},"")}function st(){return new l.gE({numeroAssurance:new l.MJ(null,{validators:[(0,w.aI8)()],updateOn:"blur"}),dateExpiration:new l.MJ(null,[(0,w.N8$)()]),nomMedecin:new l.MJ(null),telephoneMedecin:new l.MJ(null,{validators:[],updateOn:"blur"}),isAllergiesMedicaments:new l.MJ(null),listeAllergiesMedicaments:new l.MJ(null),medicamentsContreAllergies:new l.MJ(null),medicamentsAllergiesMedicamentueuse:new l.MJ(null),isAllergiesAlimentaires:new l.MJ(null),listeAllergiesAlimentaires:new l.MJ(null),medicamentsAllergiesAlimentaires:new l.MJ(null),medicamentsContreAllergiesAlimentaire:new l.MJ(null),injection:new l.MJ(null),isPriseMed:new l.MJ(null),medicationPrise:new l.MJ(null),troublesComportement:new l.MJ(null),descriptionComportement:new l.MJ(null),contactUrgence:new l.Yp([]),personneAutorisee:new l.Yp([])})}var Be=C(9454),ie=C(86600),xe=C(82798),rt=C(28528),at=C(95390),xn=C(53419),lt=C(23132),jn=C(73910);const ct=(t,_)=>_.id,ii=(t,_)=>_.value,_i=t=>({"margin-bottom-3":t}),si=t=>({carteRefuse:t}),ri=t=>({attenteReponse:t}),ai=()=>({carteActive:!0}),li=(t,_)=>({"icon-plus":t,"icon-minus":_});function ci(t,_){1&t&&e.nrm(0,"vplus-loading-spinner")}function di(t,_){if(1&t&&(e.j41(0,"li"),e.EFF(1),e.k0s()),2&t){const o=_.$implicit;e.R7$(),e.JRh(o)}}function ui(t,_){1&t&&(e.j41(0,"span"),e.pXf(1,7),e.k0s())}function Ci(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",42)(1,"button",43),e.bIt("click",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.markBanniereAsConsulted())}),e.nrm(2,"i",44),e.k0s(),e.j41(3,"h4"),e.EFF(4),e.nI1(5,"vplusMoment"),e.k0s(),e.j41(6,"span"),e.pXf(7,6),e.k0s(),e.j41(8,"ul"),e.Z7z(9,di,2,1,"li",null,e.Vm6),e.k0s(),e.DNE(11,ui,2,0,"span"),e.j41(12,"p",45),e.EFF(13),e.k0s()()}if(2&t){const o=e.XpG(3);e.R7$(4),e.E5c("",o.refuseLbl," ",e.ii3(5,5,o.infoCarte.dateEnvoi,!1,o.isFr?"DD/MM/yyyy":"MM/DD/yyyy",null)," ",o.labels.msgRefus," "),e.R7$(5),e.Dyx(o.raisonLabels),e.R7$(2),e.vxM(11,null!=o.infoCarte.raisonRefus&&o.infoCarte.raisonRefus.commentaire?11:-1),e.R7$(2),e.JRh(null==o.infoCarte.raisonRefus?null:o.infoCarte.raisonRefus.commentaire)}}function Ei(t,_){1&t&&(e.j41(0,"div",48),e.nrm(1,"i",57),e.k0s())}function Ti(t,_){if(1&t&&e.nrm(0,"vplus-img-shimmer",53),2&t){const o=e.XpG(5);e.Y8G("src",null==o.infoCarte.photo[0]?null:o.infoCarte.photo[0].url)("alt","photo personnelle")}}function Si(t,_){if(1&t&&e.DNE(0,Ti,1,2,"vplus-img-shimmer",53),2&t){const o=e.XpG(4);e.vxM(0,null!=o.infoCarte.photo[0]&&o.infoCarte.photo[0].url?0:-1)}}function pi(t,_){if(1&t&&(e.j41(0,"div",56),e.nrm(1,"i",58),e.j41(2,"label"),e.EFF(3),e.k0s()()),2&t){const o=e.XpG(4);e.R7$(3),e.JRh(o.attenteReponseLbl)}}function mi(t,_){if(1&t&&(e.j41(0,"div",46)(1,"div",47)(2,"div"),e.DNE(3,Ei,2,0,"div",48)(4,Si,1,1),e.k0s(),e.j41(5,"div")(6,"div",49)(7,"h4"),e.EFF(8),e.k0s(),e.j41(9,"h3"),e.EFF(10),e.k0s()(),e.j41(11,"div",50)(12,"div")(13,"label"),e.pXf(14,8),e.k0s(),e.j41(15,"span"),e.EFF(16),e.k0s()(),e.j41(17,"div")(18,"label"),e.pXf(19,9),e.k0s(),e.j41(20,"span"),e.EFF(21),e.nI1(22,"vplusMoment"),e.k0s()(),e.j41(23,"div")(24,"label"),e.pXf(25,10),e.k0s(),e.j41(26,"span",51),e.EFF(27),e.nI1(28,"truncate"),e.k0s()()()()(),e.j41(29,"div",52),e.nrm(30,"vplus-img-shimmer",53)(31,"qrcode",54),e.k0s(),e.nrm(32,"qrcode",55),e.k0s(),e.DNE(33,pi,4,1,"div",56)),2&t){const o=e.XpG(),n=o.attenteReponse,i=o.carteActive,s=e.XpG(2);e.R7$(3),e.vxM(3,(i||s.infoCarte.code===s.EnumStatutCarteCitoyenne.Expired.code)&&(!i||null!=s.infoCarte.photo[0]&&s.infoCarte.photo[0].url)||s.form.get("isRenouvellement").value||s.infoCarte.isRenouvellementRefuse?4:3),e.R7$(5),e.Lme("",s.currentUser.prenom," ",s.currentUser.nom,""),e.R7$(2),e.JRh(s.nomCarteNoPrefix),e.R7$(6),e.JRh(s.infoCarte.idIncremental),e.R7$(5),e.JRh(e.ii3(22,19,s.infoCarte.dateExpiration,!1,s.isFr?"DD/MM/yyyy":"MM/DD/yyyy",null)),e.R7$(5),e.Y8G("matTooltip",s.currentAccessName),e.R7$(),e.JRh(e.i5U(28,24,s.currentAccessName,36)),e.R7$(3),e.Y8G("src",s.appConfig.appConfig.logoGrandUrl)("alt","logo"),e.R7$(),e.Y8G("qrdata",s.infoCarte.idIncremental)("width",97)("errorCorrectionLevel","M")("margin",2),e.R7$(),e.Y8G("qrdata",s.infoCarte.idIncremental)("width",300)("errorCorrectionLevel","M")("margin",2),e.R7$(),e.vxM(33,n?33:-1)}}function Ni(t,_){if(1&t&&(e.j41(0,"div",64),e.nrm(1,"i",65),e.j41(2,"label")(3,"span"),e.pXf(4,11),e.k0s(),e.EFF(5),e.k0s()()),2&t){const o=e.XpG(4);e.R7$(5),e.SpI("\xa0",o.nomCarte,"")}}function fi(t,_){if(1&t&&(e.j41(0,"div",56),e.nrm(1,"i",58),e.j41(2,"label"),e.EFF(3),e.k0s()()),2&t){const o=e.XpG(4);e.R7$(3),e.JRh(o.attenteReponseLbl)}}function Pi(t,_){if(1&t&&(e.j41(0,"div",59)(1,"div",47)(2,"div"),e.qex(3),e.j41(4,"div",48),e.nrm(5,"i",57),e.k0s(),e.bVm(),e.k0s(),e.j41(6,"div")(7,"div",49),e.nrm(8,"span",60),e.k0s(),e.j41(9,"div",50)(10,"div",61),e.nrm(11,"span")(12,"span"),e.k0s(),e.j41(13,"div",61),e.nrm(14,"span")(15,"span"),e.k0s(),e.j41(16,"div",61),e.nrm(17,"span")(18,"span"),e.k0s()()()(),e.j41(19,"div",52),e.nrm(20,"span",62)(21,"span",63),e.k0s()(),e.DNE(22,Ni,6,1,"div",64)(23,fi,4,1)),2&t){const o=e.XpG().attenteReponse;e.R7$(22),e.vxM(22,o?23:22)}}function Oi(t,_){if(1&t&&(e.j41(0,"div",37)(1,"div",38)(2,"h2",39)(3,"span"),e.pXf(4,4),e.k0s(),e.j41(5,"span",40),e.EFF(6),e.k0s()(),e.j41(7,"p",41),e.pXf(8,5),e.k0s()(),e.DNE(9,Ci,14,10,"div",42)(10,mi,34,27)(11,Pi,24,1),e.k0s()),2&t){const o=_.carteActive,n=_.carteRefuse,i=e.XpG(2);e.Y8G("ngClass",e.eq3(5,_i,i.infoCarte.code!==i.EnumStatutCarteCitoyenne.Expired.code&&!i.form.get("isRenouvellement").value)),e.R7$(6),e.Lme("",null==i.currentUser?null:i.currentUser.prenom," ",null==i.currentUser?null:i.currentUser.nom,""),e.R7$(3),e.vxM(9,n||null!=i.infoCarte&&i.infoCarte.isRenouvellementRefuse&&!i.infoCarte.banniereIsConsulted?9:-1),e.R7$(),e.vxM(10,o||i.form.get("isRenouvellement").value||null!=i.infoCarte&&i.infoCarte.isRenouvellementRefuse?10:11)}}function Mi(t,_){1&t&&e.nrm(0,"div")}function Ai(t,_){if(1&t&&(e.j41(0,"div",67),e.nrm(1,"i",65),e.j41(2,"label")(3,"span"),e.pXf(4,12),e.k0s(),e.EFF(5),e.j41(6,"span"),e.pXf(7,13),e.k0s(),e.EFF(8),e.nI1(9,"vplusMoment"),e.k0s()()),2&t){const o=e.XpG(3);e.R7$(5),e.SpI("\xa0",o.nomCarte,"\xa0"),e.R7$(3),e.SpI("\xa0",e.brH(9,2,null==o.infoCarte?null:o.infoCarte.dateExpiration,!1,o.isFr?"DD/MM/YYYY":"MM/DD/YYYY"),"")}}function gi(t,_){if(1&t&&(e.j41(0,"h2",69)(1,"span"),e.pXf(2,14),e.k0s(),e.EFF(3,"\xa0"),e.j41(4,"span"),e.EFF(5),e.k0s()()),2&t){const o=e.XpG(4);e.R7$(5),e.JRh(o.nomCarte)}}function Ii(t,_){if(1&t){const o=e.RV6();e.j41(0,"mat-expansion-panel",70,2)(2,"mat-expansion-panel-header",71)(3,"mat-panel-title")(4,"span",72),e.EFF(5),e.k0s()(),e.nrm(6,"i"),e.k0s(),e.nrm(7,"vplus-froala-container",73),e.j41(8,"button",74),e.bIt("click",function(){const i=e.eBV(o).$implicit,s=e.XpG(4);return e.Njj(s.redirigerNextStep(i))}),e.j41(9,"span",75),e.pXf(10,15),e.k0s()()()}if(2&t){const o=_.$implicit,n=e.sdS(1),i=e.XpG(4);e.R7$(2),e.Y8G("collapsedHeight","fit-content")("expandedHeight","fit-content"),e.R7$(3),e.JRh(i.getDemandeLabel(o.nom)),e.R7$(),e.AVh("icon-plus",!n.expanded)("icon-minus",n.expanded),e.R7$(),e.Y8G("content",o.descriptionDemande)}}function hi(t,_){if(1&t&&(e.DNE(0,gi,6,1,"h2",69),e.j41(1,"div",68),e.Z7z(2,Ii,11,8,"mat-expansion-panel",70,ct),e.k0s()),2&t){const o=e.XpG(3);e.vxM(0,0!==o.accesArray.length?0:-1),e.R7$(2),e.Dyx(o.accesArray)}}function Ri(t,_){1&t&&e.nrm(0,"div")}
1function Li(t,_){if(1&t&&e.DNE(0,Ri,1,0,"div",76),2&t){e.XpG(2);const o=e.sdS(9);e.Y8G("ngTemplateOutlet",o)}}function Ui(t,_){if(1&t&&(e.j41(0,"div"),e.DNE(1,Mi,1,0,"div",66)(2,Ai,10,6,"div",67)(3,hi,4,1,"div",68)(4,Li,1,1,"div"),e.k0s()),2&t){e.XpG();const o=e.sdS(2),n=e.XpG();e.R7$(),e.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",e.eq3(5,si,!n.infoCarte.banniereIsConsulted&&n.infoCarte.code===n.EnumStatutCarteCitoyenne.Refused.code)),e.R7$(),e.vxM(2,n.infoCarte.code===n.EnumStatutCarteCitoyenne.Expired.code?2:-1),e.R7$(),e.vxM(3,(null==n.infoCarte||!n.infoCarte.isRenouvellementRefuse)&&n.accesArray.length>0?3:-1),e.R7$(),e.vxM(4,n.infoCarte.code===n.EnumStatutCarteCitoyenne.Expired.code||n.infoCarte.isRenouvellementRefuse?4:-1)}}function bi(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",77)(1,"div",96)(2,"i",97),e.bIt("click",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.retourFamilles.emit())}),e.k0s(),e.j41(3,"h2"),e.EFF(4),e.k0s()()()}if(2&t){const o=e.XpG(3);e.R7$(4),e.JRh(o.demandeAcces)}}function vi(t,_){if(1&t&&(e.j41(0,"h2",69),e.EFF(1),e.k0s()),2&t){const o=e.XpG(3);e.R7$(),e.JRh(o.demandeAcces)}}function $i(t,_){if(1&t&&(e.j41(0,"div",78),e.EFF(1),e.k0s()),2&t){const o=e.XpG(3);e.R7$(),e.JRh(o.descCarteEnfant)}}function Fi(t,_){1&t&&(e.j41(0,"h3",81),e.pXf(1,24),e.k0s())}function Gi(t,_){1&t&&(e.j41(0,"h3",81),e.pXf(1,25),e.k0s())}function Di(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,26),e.k0s())}function yi(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,27),e.k0s())}function Xi(t,_){if(1&t&&(e.j41(0,"mat-option",88),e.EFF(1),e.k0s()),2&t){const o=_.$implicit;e.Y8G("value",o.value),e.R7$(),e.JRh(o.label)}}function ki(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",99)(1,"button",100),e.bIt("click",function(){e.eBV(o);const i=e.XpG().$index,s=e.XpG(3);return e.Njj(s.deleteAddress(i))}),e.nrm(2,"i",101),e.k0s()()}}function xi(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",90)(1,"vplus-adresse-autocomplete",98),e.bIt("adresseChanged",function(i){const s=e.eBV(o).$index,r=e.XpG(3);return e.Njj(r.onAdresseChanged(i,s))}),e.k0s(),e.DNE(2,ki,3,0,"div",99),e.k0s()}if(2&t){const o=_.$implicit,n=_.$index,i=e.XpG(3);e.R7$(),e.Y8G("placeholder",0===n?i.labels.adressePostale:i.labels.adresse)("adresseControl",o.controls.adresse)("noAppartementControl",o.controls.noAppartement)("displayAddressNotFound",!1)("ngClass",i.adressesFormArray.length>1?"full-width-adresse":"width-adresse")("adresseVille",o.controls.adrVille.value),e.R7$(),e.vxM(2,i.adressesFormArray.length>1?2:-1)}}function ji(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",91)(1,"button",102),e.bIt("click",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.addAddress())}),e.nrm(2,"i",103),e.k0s(),e.j41(3,"label"),e.pXf(4,28),e.k0s()()}}function wi(t,_){1&t&&(e.j41(0,"mat-error",93),e.pXf(1,31),e.k0s())}function Vi(t,_){if(1&t){const o=e.RV6();e.j41(0,"div")(1,"h3",81)(2,"span"),e.pXf(3,29),e.k0s()(),e.j41(4,"div")(5,"p"),e.pXf(6,30),e.k0s(),e.j41(7,"vplus-file-uploader",104,3),e.bIt("onSelectFile",function(i){e.eBV(o);const s=e.XpG(3);return e.Njj(s.onSelectPic(i))})("uploadSuccess",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.onUploadPicSuccess())}),e.k0s(),e.DNE(9,wi,2,0,"mat-error",93),e.k0s()()}if(2&t){const o=e.XpG(3);e.R7$(7),e.Mz_("uploadPath","_citoyen/_images/",o.infoCarte.idIncremental,""),e.Y8G("isPublic",!1)("removeFileEvent",o.removePicSubject.asObservable()),e.R7$(2),e.vxM(9,o.form.controls.photo.touched&&null!=o.form.controls.photo.errors&&o.form.controls.photo.errors.required?9:-1)}}function zi(t,_){1&t&&(e.j41(0,"mat-error",93),e.pXf(1,32),e.k0s())}function Hi(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",95)(1,"button",105),e.bIt("click",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.save())}),e.pXf(2,33),e.k0s()()}if(2&t){const o=e.XpG(3);e.R7$(),e.Y8G("disabled",o.isSubmiting)}}function Yi(t,_){if(1&t){const o=e.RV6();e.j41(0,"div"),e.DNE(1,bi,5,1,"div",77)(2,vi,2,1)(3,$i,2,1,"div",78),e.j41(4,"form",79)(5,"div",80)(6,"div"),e.DNE(7,Fi,2,0,"h3",81)(8,Gi,2,0),e.j41(9,"p"),e.pXf(10,16),e.k0s(),e.j41(11,"h4",82),e.pXf(12,17),e.k0s(),e.j41(13,"div",83)(14,"mat-form-field",84)(15,"mat-label"),e.pXf(16,18),e.k0s(),e.nrm(17,"input",85),e.DNE(18,Di,2,0,"mat-error")(19,yi,2,0,"mat-error"),e.k0s(),e.j41(20,"mat-form-field",86)(21,"mat-label"),e.pXf(22,19),e.k0s(),e.j41(23,"mat-select",87),e.Z7z(24,Xi,2,2,"mat-option",88,ii),e.k0s(),e.j41(26,"mat-error"),e.pXf(27,20),e.k0s()()()(),e.j41(28,"div")(29,"div",89)(30,"h4",82),e.pXf(31,21),e.k0s(),e.j41(32,"p"),e.pXf(33,22),e.k0s(),e.Z7z(34,xi,3,7,"div",90,e.Vm6),e.DNE(36,ji,5,0,"div",91),e.k0s()(),e.DNE(37,Vi,10,5,"div"),e.j41(38,"div")(39,"h3",81)(40,"span"),e.pXf(41,23),e.k0s()(),e.j41(42,"div"),e.nrm(43,"vplus-froala-container",73),e.j41(44,"vplus-file-uploader",92,3),e.bIt("onSelectFile",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.onSelectFile())})("uploadSuccess",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.onUploadSuccess())}),e.k0s(),e.DNE(46,zi,2,0,"mat-error",93),e.k0s()()(),e.nrm(47,"input",94),e.DNE(48,Hi,3,1,"div",95),e.k0s()()}if(2&t){let o;const n=e.XpG(2);e.R7$(),e.vxM(1,n.isFromFamille?1:2),e.R7$(2),e.vxM(3,n.isFromFamille?3:-1),e.R7$(),e.Y8G("formGroup",n.form),e.R7$(3),e.vxM(7,n.isFromFamille?8:7),e.R7$(10),e.Y8G("required",!0)("imask",n.appConfig.appConfig.telMaskObjet)("unmask",!0),e.R7$(),e.vxM(18,n.form.controls.telephone.touched&&null!=n.form.controls.telephone.errors&&n.form.controls.telephone.errors.required?18:-1),e.R7$(),e.vxM(19,n.form.controls.telephone.touched&&null!=n.form.controls.telephone.errors&&n.form.controls.telephone.errors.pattern?19:-1),e.R7$(4),e.Y8G("required",(null==(o=n.form.get("telephone").value)?null:o.length)>0&&n.form&&(null==(o=n.form.get("telephone").value)?null:o.length)>0),e.R7$(),e.Dyx(n.EnumTypeTelephoneArray),e.R7$(10),e.Dyx(n.adressesFormArray.controls),e.R7$(2),e.vxM(36,n.adressesFormArray.length<3?36:-1),e.R7$(),e.vxM(37,n.isFromFamille?-1:37),e.R7$(6),e.Y8G("content",n.descDocuments),e.R7$(),e.Mz_("uploadPath","_citoyen/documents/",n.infoCarte.idIncremental,""),e.Y8G("isPublic",!1)("removeFileEvent",n.removeFileSubject.asObservable()),e.R7$(2),e.vxM(46,n.form.controls.preuveResidenceDocs.touched&&null!=n.form.controls.preuveResidenceDocs.errors&&n.form.controls.preuveResidenceDocs.errors.required?46:-1),e.R7$(2),e.vxM(48,n.isFromFamille?-1:48)}}function Bi(t,_){1&t&&e.nrm(0,"div")}function qi(t,_){if(1&t&&(e.j41(0,"div"),e.DNE(1,Bi,1,0,"div",66),e.k0s()),2&t){e.XpG
1();const o=e.sdS(2),n=e.XpG();e.R7$(),e.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",e.eq3(2,ri,n.attenteReponseLbl))}}function Wi(t,_){1&t&&e.nrm(0,"div")}function Ji(t,_){if(1&t&&(e.j41(0,"div",67),e.nrm(1,"i",65),e.j41(2,"label")(3,"span"),e.pXf(4,34),e.k0s(),e.EFF(5),e.j41(6,"span"),e.pXf(7,35),e.k0s(),e.EFF(8),e.nI1(9,"vplusMoment"),e.k0s()()),2&t){const o=e.XpG(3);e.R7$(5),e.SpI("\xa0",o.nomCarte,"\xa0"),e.R7$(3),e.SpI("\xa0",e.brH(9,2,null==o.infoCarte?null:o.infoCarte.dateExpiration,!1,o.isFr?"DD/MM/YYYY":"MM/DD/YYYY"),"")}}function Qi(t,_){1&t&&e.nrm(0,"div")}function Ki(t,_){if(1&t&&(e.j41(0,"div",106),e.DNE(1,Wi,1,0,"div",66)(2,Ji,10,6,"div",67)(3,Qi,1,0,"div",76),e.k0s()),2&t){e.XpG();const o=e.sdS(2),n=e.sdS(9),i=e.XpG();e.R7$(),e.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",e.lJ4(4,ai)),e.R7$(),e.vxM(2,i.infoCarte.code===i.EnumStatutCarteCitoyenne.Expired.code?2:-1),e.R7$(),e.Y8G("ngTemplateOutlet",n)}}function Zi(t,_){if(1&t){const o=e.RV6();e.j41(0,"mat-expansion-panel",70,2)(2,"mat-expansion-panel-header",71)(3,"mat-panel-title")(4,"span",72),e.EFF(5),e.k0s()(),e.nrm(6,"i",37),e.k0s(),e.nrm(7,"vplus-froala-container",73),e.j41(8,"button",74),e.bIt("click",function(){const i=e.eBV(o).$implicit,s=e.XpG(4);return e.Njj(s.redirigerDemandeCarte(i))}),e.j41(9,"span",75),e.pXf(10,36),e.k0s()()()}if(2&t){const o=_.$implicit,n=e.sdS(1),i=e.XpG(4);e.R7$(2),e.Y8G("collapsedHeight","fit-content")("expandedHeight","fit-content"),e.R7$(3),e.JRh(i.getDemandeLabel(o.nom,!0)),e.R7$(),e.Y8G("ngClass",e.l_i(5,li,!n.expanded,n.expanded)),e.R7$(),e.Y8G("content",o.descriptionDemande)}}function e_(t,_){if(1&t&&e.Z7z(0,Zi,11,8,"mat-expansion-panel",70,ct),2&t){const o=e.XpG(3);e.Dyx(o.accesArray)}}function n_(t,_){if(1&t&&(e.j41(0,"div",68),e.DNE(1,e_,2,0),e.k0s()),2&t){const o=e.XpG(2);e.AVh("margin-top-2",o.infoCarte.isRenouvellementRefuse),e.R7$(),e.vxM(1,(o.isCarteExpired||null==o.infoCarte.photo[0]||!o.infoCarte.photo[0].url||o.infoCarte.isRenouvellementRefuse||o.infoCarte.code===o.EnumStatutCarteCitoyenne.Expired.code)&&o.accesArray.length>0?1:-1)}}function t_(t,_){if(1&t&&(e.j41(0,"div"),e.DNE(1,Oi,12,7,"ng-template",null,0,e.C5r),e.j41(3,"div"),e.DNE(4,Ui,5,7)(5,Yi,49,19)(6,qi,2,4)(7,Ki,4,5),e.k0s()(),e.DNE(8,n_,2,3,"ng-template",null,1,e.C5r)),2&t){let o;const n=e.XpG();e.R7$(4),e.vxM(4,(o=n.currentStep)===n.EnumCarteCitoyenneStep.PasDeCarte?4:o===n.EnumCarteCitoyenneStep.FormCarte?5:o===n.EnumCarteCitoyenneStep.AttenteReponse?6:o===n.EnumCarteCitoyenneStep.Active?7:-1)}}let fn=(()=>{var t;class _{constructor(){this.fb=(0,e.WQX)(l.ok),this.store=(0,e.WQX)(j.il),this.appConfig=(0,e.WQX)(te.o),this.appMetaTags=(0,e.WQX)(ge.W),this.route=(0,e.WQX)(V.nX),this.actions$=(0,e.WQX)(M.En),this.utilisateurService=(0,e.WQX)(ce.$),this.localisationService=(0,e.WQX)(ke.A),this.destroyRef=(0,e.WQX)(e.abz),this.document=(0,e.WQX)(A.qQ),this.accesEnfant=null,this.isRenouvellementEnfant=!1,this.retourFamilles=new e.bkB,this.isInFormCarte=new e.bkB,this.EnumCarteCitoyenneStep={PasDeCarte:0,FormCarte:1,AttenteReponse:2,Active:3},this.labels={adressePostale:"Adresse postale",adresse:"Adresse",msgRefus:"a \xE9t\xE9 refus\xE9e."},this.isSubmiting=!1,this.isNewDemande=!1,this.currentStep=this.EnumCarteCitoyenneStep.PasDeCarte,this.removeFileSubject=new ze.B,this.removePicSubject=new ze.B,this.raisonLabels=[],this.dataLoaded=!1,this.accesArray=[],this.nomCarte=this.appConfig.getNomCarteCitoyenneCapital(),this.nomCarteNoPrefix=this.appConfig.getDefaultCarteConfig(),this.descCarteEnfant=`${"Vous devez \xEAtre le parent ou le tuteur l\xE9gal de l'enfant pour faire une demande de "} ${this.nomCarte}.`,this.EnumTypeTelephoneArray=Object.values(m.vR),this.EnumStatutCarteCitoyenne=m.mz,this.emplacements=[],this.isFromFamille=!1}ngOnInit(){this.isFromFamille=null!==this.form&&null!==this.accesEnfant,this.appMetaTags.updateMetaTags(this.nomCarte),this.isFr=this.localisationService.getCurrentLocalisation()===p.fi.FR,this.initForm(),this.store.select(T.selectCurrentUser).pipe((0,_t.p)(n=>!!n),(0,me.s)(1),(0,Me.M)(n=>this.currentUser=n),(0,ae.n)(n=>this.utilisateurService.getInfoCarteCitoyenne(n.perId)),(0,g.pQ)(this.destroyRef)).subscribe({next:n=>{var i,s;if(this.infoCarte=n.carteCitoyenne,this.isCarteExpired=this.checkExpirationDate(n.carteCitoyenne.dateExpiration),this.form.patchValue(this.infoCarte),0===this.form.get("adresses").value.length&&this.addAddress(),this.isFromFamille&&(this.redirigerNextStep(this.accesEnfant),this.form.get("photo").disable(),this.form.get("preuveResidenceDocs").patchValue(null)),this.accesArray=n.acces,this.currentAccess=this.isFr?`Acc\xe8s ${null==n?void 0:n.currentAcces}`:`${null==n?void 0:n.currentAcces} access`,this.currentAccessName=null!==(i=n.currentAcces)&&void 0!==i?i:"",!this.isFromFamille)if(this.infoCarte.code===m.mz.Sent.code||this.form.get("isRenouvellement").value)this.currentStep=this.EnumCarteCitoyenneStep.AttenteReponse,this.form.get("isRenouvellement").value&&(this.nomAccesRenouvellement=n.accesRenouvellement),this.attenteReponseLbl=this.getReponseLabel();else if(this.infoCarte.code===m.mz.Refused.code||null!==(s=this.infoCarte)&&void 0!==s&&s.isRenouvellementRefuse){var r,c,d,a;this.currentStep=this.EnumCarteCitoyenneStep.PasDeCarte,this.refuseLbl=this.isFr?`Votre demande de ${null!==(r=this.infoCarte)&&void 0!==r&&r.isRenouvellementRefuse?"renouvellement de":""} \xab ${this.nomCarte} - ${null!==(c=this.infoCarte)&&void 0!==c&&c.isRenouvellementRefuse?n.accesRenouvellement:this.currentAccessName} \xbb envoy\xe9e le`:`Your "${this.nomCarte} - ${null!==(d=this.infoCarte)&&void 0!==d&&d.isRenouvellementRefuse?n.accesRenouvellement:this.currentAccessName}" ${null!==(a=this.infoCarte)&&void 0!==a&&a.isRenouvellementRefuse?"renewal":""} request sent on`,this.infoCarte.raisonRefus.raisonIds.forEach(u=>{var S;this.raisonLabels.push(null===(S=Object.values(m.CW).find(E=>E.value===u))||void 0===S?void 0:S.label)})}else[m.mz.Activated.code,m.mz.Expired.code].includes(this.infoCarte.code)&&(this.currentStep=this.EnumCarteCitoyenneStep.Active);this.dataLoaded=!0},error:()=>{this.dataLoaded=!1}}),this.actions$.pipe((0,M.gp)(Y.En.upsertCitizenCardSuccess),(0,g.pQ)(this.destroyRef)).subscribe(()=>{this.isSubmiting=!1,this.redirigerNextStep(),this.infoCarte.isRenouvellementRefuse=!1,this.currentUser.telephone=this.form.get("telephone").value,this.currentUser.typTelId=this.form.get("typTelId").value,this.currentUser.adresses=this.form.get("adresses").value,this.store.dispatch(new T.A
1ctions.UpdateUserSuccess(this.currentUser))}),this.actions$.pipe((0,M.gp)(Y.En.upsertChildCitizenCardSucces),(0,g.pQ)(this.destroyRef)).subscribe(()=>{this.currentUser.telephone=this.form.get("telephone").value,this.currentUser.typTelId=this.form.get("typTelId").value,this.currentUser.adresses=this.form.get("adresses").value})}initForm(){this.form=this.fb.group({adresses:this.fb.array([]),ville:new l.MJ(null),telephone:new l.MJ(null,l.k0.pattern(this.appConfig.appConfig.telPattern)),typTelId:new l.MJ(null),photo:new l.MJ(null,l.k0.required),preuveResidenceDocs:new l.MJ(null,l.k0.required),dateActivation:new l.MJ(null),dateExpiration:new l.MJ(null),statut:new l.MJ(null),accesId:new l.MJ(null),isRenouvellement:new l.MJ(!1)}),this.adressesFormArray=this.form.controls.adresses,this.adressesFormArray.setDefaultControlBuilder(this.createAdresseFormControl.bind(this))}createAdresseFormControl(){return new l.gE({id:new l.MJ((0,w.SiN)()),adrId:new l.MJ,adresse:new l.MJ(null),noAppartement:new l.MJ(null),adresseFormatte:new l.MJ(null),adrVille:new l.MJ(null)})}addAddress(){this.adressesFormArray.length<3&&this.adressesFormArray.push(this.createAdresseFormControl())}deleteAddress(n=0){this.adressesFormArray.removeAt(n)}onAdresseChanged(n,i){n&&this.emplacements.splice(i,1,n),this.adressesFormArray.at(i).get("adresseFormatte").patchValue(null==n?void 0:n.adresse),this.adressesFormArray.at(i).get("adrVille").patchValue(null==n?void 0:n.adrVille),this.adressesFormArray.at(i).get("adrId").patchValue(null==n?void 0:n.adrId),this.form.markAsDirty()}getDemandeLabel(n,i=!1){return i?this.isFr?`Demande de renouvellement de \xab ${this.nomCarte} - ${n} \xbb`:`"${this.nomCarte} - ${n}" renewal request`:this.isFr?`Nouvelle demande de \xab ${this.nomCarte} - ${n} \xbb`:`New "${this.nomCarte} - ${n}" request`}markBanniereAsConsulted(){this.utilisateurService.markBanniereAsConsulted(this.infoCarte.id).pipe((0,g.pQ)(this.destroyRef)).subscribe({next:()=>{this.infoCarte.banniereIsConsulted=!0}})}checkExpirationDate(n){if(!n)return!1;const i=new Date(n),s=new Date;i.setHours(0,0,0,0);const r=new Date(s);return r.setMonth(r.getMonth()+2),i.getTime()<=r.getTime()}redirigerNextStep(n=null){this.currentStep++,this.currentStep===this.EnumCarteCitoyenneStep.FormCarte?(this.scrollToView(),this.form.get("accesId").patchValue(null==n?void 0:n.id),this.currentAccessName=null==n?void 0:n.nom,this.currentAccess=this.isFr?`Acc\xe8s ${this.currentAccessName}`:`${this.currentAccessName} Access`,this.demandeAcces=this.isFr?`Demande de ${this.isRenouvellementEnfant?"de renouvellement de":""} \xab ${this.nomCarte} - ${this.currentAccessName} \xbb`:`"${this.nomCarte} - ${this.currentAccessName}" ${this.isRenouvellementEnfant?"renewal":""} request`,this.descDocuments=null==n?void 0:n.descriptionDocuments,this.isInFormCarte.emit(!0)):this.currentStep===this.EnumCarteCitoyenneStep.AttenteReponse&&(this.scrollToView(),this.attenteReponseLbl=this.getReponseLabel(),this.isInFormCarte.emit(!1))}getReponseLabel(){var n,i;return this.form.get("isRenouvellement").value?this.isFr?`Votre demande de renouvellement de \xab ${this.nomCarte} - ${null!==(n=this.nomAccesRenouvellement)&&void 0!==n?n:this.currentAccessName} \xbb est en traitement.`:`Your "${this.nomCarte} - ${null!==(i=this.nomAccesRenouvellement)&&void 0!==i?i:this.currentAccessName}" renewal request is being processed.`:this.isFr?`Votre demande de \xab ${this.nomCarte} - ${this.currentAccessName} \xbb est en traitement.`:`Your "${this.nomCarte} - ${this.currentAccessName}" request is being processed.`}redirigerDemandeCarte(n){this.scrollToView(),this.form.get("accesId").patchValue(n.id),this.form.get("photo").patchValue(null),this.form.get("isRenouvellement").patchValue(!0),this.nomAccesRenouvellement=n.nom,this.demandeAcces=this.isFr?`Demande de renouvellement de \xab ${this.nomCarte} - ${this.nomAccesRenouvellement} \xbb`:`"${this.nomCarte} - ${this.nomAccesRenouvellement}" renewal request`,this.descDocuments=n.descriptionDocuments,this.currentStep=this.EnumCarteCitoyenneStep.FormCarte,this.isInFormCarte.emit(!0)}scrollToView(){const n=this.document.querySelector(".mon-profil-desktop-content");null==n||n.scrollIntoView({behavior:"smooth",block:"start"})}
1onSelectFile(){this.showFileLoader=!0}formSelectedData(n){const i=(0,Ve.n)("li",{className:"e-upload-file-list",attrs:{"data-file-name":n.name}}),s=(0,Ve.n)("IMG",{className:"upload-image",attrs:{alt:"Image"}}),r=(0,Ve.n)("span",{className:"wrapper"});r.appendChild(s),i.appendChild(r),this.readURL(i,n),setTimeout(()=>{this.document.querySelector(".photo-uploader .e-upload-files").appendChild(i)})}readURL(n,i){const s=n.querySelector(".upload-image"),r=i.rawFile,c=new FileReader;c.addEventListener("load",()=>{s.src=c.result},!1),r&&c.readAsDataURL(r)}onUploadSuccess(){this.showFileLoader=!1}removeFile(n){this.removeFileSubject.next(n)}onSelectPic(n){this.showPicLoader=!0,this.formSelectedData(n.filesData[0])}onUploadPicSuccess(){this.showPicLoader=!1}removePic(n){this.removePicSubject.next(n)}save(){if(this.isSubmiting)return;if(this.form.markAllAsTouched(),this.form.invalid)return void this.store.dispatch(new D.ShowSnackBar("Impossible d'envoyer votre demande car certains champs sont invalides",T.EnumSnackBarType.Echec));this.isSubmiting=!0;let n=this.form.value;const i=new m.ow(this.currentUser.prenom+" "+this.currentUser.nom,p.zA.Citoyen),s=[],r=[];if(this.currentUser.telephone!==n.telephone){const c=Xn.Ay.createMask(this.appConfig.appConfig.telMaskObjet);r.push({oldValue:{label:{fr:"Num\xe9ro principal",en:"Main phone"},value:{label:this.currentUser.telephone?c.resolve(this.currentUser.telephone):null,value:this.currentUser.telephone}},newValue:{label:{fr:"Num\xe9ro principal",en:"Main phone"},value:{label:n.telephone?c.resolve(n.telephone):null,value:n.telephone}}})}(0,K.of)(null).pipe((0,kn.c)(this.adressesFormArray.value.length===this.emplacements.length&&this.adressesFormArray.value.every((c,d)=>c.noAppartement===this.emplacements[d].adrNoApp)?0:1e3),(0,g.pQ)(this.destroyRef)).subscribe(()=>{var c,d,S,E,P,O,b,N,y,G;if(n=this.form.value,He(this.currentUser.adresses)!==He(n.adresses)&&r.push({oldValue:{label:{fr:"Adresse",en:"Address"},value:{label:null!==(S=null===(E=this.currentUser.adresses)||void 0===E?void 0:E.map(X=>{var W;return null===(W=X.adresseFormatte)||void 0===W?void 0:W.replace(/, (APP )?\d+$/,"")}))&&void 0!==S?S:null,value:this.currentUser.adresses}},newValue:{label:{fr:"Adresse",en:"Address"},value:{label:null!==(P=null===(O=n.adresses)||void 0===O?void 0:O.map(X=>{var W;return null===(W=X.adresseFormatte)||void 0===W?void 0:W.replace(/, (APP )?\d+$/,"")}))&&void 0!==P?P:null,value:n.adresses}}}),(this.currentUser.adresses.length>0&&null!==(c=this.currentUser.adresses)&&void 0!==c&&null!==(c=c[0])&&void 0!==c&&c.adresse?Ye(this.currentUser.adresses):null)!==(n.adresses.length>0&&null!==(d=n.adresses)&&void 0!==d&&null!==(d=d[0])&&void 0!==d&&d.adresse?Ye(n.adresses):null)&&r.push({oldValue:{label:{fr:"No d'appartement",en:"Apartment number"},value:{label:null!==(b=null===(N=this.currentUser.adresses)||void 0===N?void 0:N.map(X=>X.noAppartement).filter(X=>null!==X&&""!==X))&&void 0!==b?b:null,value:this.currentUser.adresses}},newValue:{label:{fr:"No d'appartement",en:"Apartment number"},value:{label:null!==(y=null===(G=n.adresses)||void 0===G?void 0:G.map(X=>X.noAppartement).filter(X=>null!==X&&""!==X))&&void 0!==y?y:null,value:n.adresses}}}),r.length>0){const X=r.map(F=>F.oldValue),W=r.map(F=>F.newValue);i.details.push(new m.TM(p.Wp.ModificationRenseignementsPersonnels,X,W)),s.push(i)}const B=new m.ow(this.currentUser.prenom+" "+this.currentUser.nom,p.zA.Citoyen);B.details.push(new m.TM(n.isRenouvellement?p.Wp.DemandeRenouvellementCarteCitoyenne:p.Wp.DemandeCreationCarteCitoyenne,null,null)),s.push(B);
1const L={carteCitoyenne:{...this.form.value,accesRenouvellement:this.nomAccesRenouvellement},perId:this.currentUser.perId,emplacements:this.emplacements,journalEvenement:s};this.store.dispatch(Y.En.upsertCitizenCard({payload:L}))})}}return(t=_).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-carte-citoyenne-content"]],inputs:{accesEnfant:"accesEnfant",isRenouvellementEnfant:"isRenouvellementEnfant"},outputs:{retourFamilles:"retourFamilles",isInFormCarte:"isInFormCarte"},decls:2,vars:1,consts:()=>{let o,n,i,s,r,c,d,a,u,S,E,P,O,f,I,b,N,y,G,B,L,X,W,F,x,re,_e,se,h,Z,ne,H,J,le,Pe;return o="Bonjour, ",n="Bienvenue sur votre espace citoyen",i="Raison(s) :",s="Pr\xE9cisions :",r="Identifiant",c="\xC9ch\xE9ance",d="Acc\xE8s",a="Vous n'avez pas encore la",u="Votre",S="est expir\xE9e depuis le :",E="Faites votre demande de",P="Nouvelle demande",O="Veuillez valider les coordonn\xE9es ci-dessous, celles-ci seront mises \xE0 jour dans votre profil.",f="T\xE9l\xE9phone",I="Num\xE9ro de t\xE9l\xE9phone",b="Type",N="Champ obligatoire",y="Adresse(s)",G="Assurez-vous que l'adresse de votre preuve de r\xE9sidence est incluse parmi vos adresses.",B="Documents requis *",L="Coordonn\xE9es",X="Coordonn\xE9es du parent (vous)",W="Champ obligatoire",F="T\xE9l\xE9phone non valide",x="Supprimer l'adresse",re="Ajouter une adresse",_e="Ajouter une adresse",se="Photo *",h="Photo r\xE9cente du visage. Assurez-vous de faire face \xE0 la cam\xE9ra.",Z="Champ obligatoire",ne="Champ obligatoire",H="Envoyer la demande",J="Votre",le="est expir\xE9e depuis le :",Pe="Demande de renouvellement",[["carteExample",""],["accordeonRenouvellement",""],["expansionPanel",""],["fileUploader",""],o,n,i,s,r,c,d,a,u,S,E,P,O,f,I,b,N,y,G,B,L,X,W,F,_e,se,h,Z,ne,H,J,le,Pe,[3,"ngClass"],[1,"margin-bottom-2","espace-citoyen-title"],[1,"margin-top-0"],[1,"primary-color"],[1,"font-weight-500"],[1,"demande-refuse","margin-bottom-3"],["mat-icon-button","",1,"banner-hide-button",3,"click"],[1,"icon-x-circle"],[1,"commentaire-refus"],[1,"citizen-card"],[1,"citizen-card-content"],[1,"citizen-card-icon"],[1,"citizen-card-title"],[1,"citizen-card-infos"],[3,"matTooltip"],[1,"citizen-card-footer"],[3,"src","alt"],[1,"qrcode-citoyen",3,"qrdata","width","errorCorrectionLevel","margin"],[1,"qrcode-citoyen-mobile",3,"qrdata","width","errorCorrectionLevel","margin"],[1,"hint","hint-pending","margin-top-1"],[1,"icon-user","icon-carte"],[1,"icon-loader"],[1,"citizen-card","placeholder"],[1,"card-title-placeholder"],[1,"card-info-placeholder"],[1,"card-logo-placeholder"],[1,"card-qrcode-placeholder"],[1,"hint","hint-no-card","margin-top-1"],[1,"icon-invalid"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"hint","hint-no-card","margin-bottom-2","margin-top-1"],[1,"acces-list"],[1,"margin-bottom-2"],["hideToggle","true",1,"outline-expansion-panel"],[1,"side-menu-element","list-categorie-item",3,"collapsedHeight","expandedHeight"],[1,"header-text"],[1,"margin-bottom-2","block",3,"content"],["mat-flat-button","","color","primary",3,"click"],[1,"button-demande"],[4,"ngTemplateOutlet"],[1,"family-title"],[1,"description-enfant"],[3,"formGroup"],[1,"flex-form-gap","margin-bottom-2"],[1,"margin-bottom-1"],[1,"margin-bottom-1","font-weight-500"],[1,"two-col-form-grid","champs-tel"],[1,"padding-mobile","num-tel"],["matInput","","type","tel","maskTelephoneEvents","","formControlName","telephone",3,"required","imask","unmask"],[1,"champ-type"],["formControlName","typTelId",3,"required"],[3,"value"],[1,"margin-bottom-1","full-width"],[1,"flex","align-center","flex-gap-1"],[1,"icon-button-with-label","margin-top-1"],["multiple","true","formControlName","preuveResidenceDocs","accept",".pdf,.jpg,.jpeg,.png,.gif,.webp,.heic",1,"primary-file-upload",3,"onSelectFile","uploadSuccess","isPublic","removeFileEvent","uploadPath"],[1,"margin-top-1"],["type","submit","hidden",""],[1,"flex","flex-end"],[1,"align-center","flex-start-imp"],[1,"icon-left-arrow","pointer-cursor",3,"click"],["isRequired","true",1,"field-custom-wrapper","full-width",3,"adresseChanged","placeholder","adresseControl","noAppartementControl","displayAddressNotFound","ngClass","adresseVille"],[1,"conteneur-delete-button"],["type","button","mat-icon-button","","matTooltip",x,3,"click"],[1,"icon-trash"],["type","button","mat-icon-button","","matTooltip",re,3,"click"],[1,"icon-plus"],["formControlName","photo","accept","image/*",1,"primary-file-upload","photo-uploader","citizen-card-photo-upload",3,"onSelectFile","uploadSuccess","isPublic","removeFileEvent","uploadPath"],["mat-flat-button","","color","primary",3,"click","disabled"],[1,"margin-mobile","margin-bottom-1"]]},template:function(n,i){1&n&&e.DNE(0,ci,1,0,"vplus-loading-spinner")(1,t_,10,1),2&n&&e.vxM(0,i.dataLoaded?1:0)},dependencies:[Be.GK,Be.Z2,Be.WN,Ce.fg,R.rl,R.nJ,R.TL,ie.wT,xe.VO,ue.$z,ue.iY,Ie.oV,A.YU,A.T3,l.qT,l.me,l.BC,l.cb,l.YS,l.j4,l.JD,rt.e,w.xGI,Re.Zq,at.m,xn.v,Nn.N,lt.A,Fn.c,jn.x,w.HOp],styles:[".citizen-card[_ngcontent-%COMP%]{position:relative;max-width:412px}.citizen-card.placeholder[_ngcontent-%COMP%] .citizen-card-infos[_ngcontent-%COMP%]{row-gap:28px}.card-title-placeholder[_ngcontent-%COMP%]{height:18px;background:var(--primary-color);border-radius:9px;width:100%;display:block;margin-bottom:24px}.card-logo-placeholder[_ngcontent-%COMP%]{height:16px;margin-top:8px;background:var(--primary-color-opacity-12);border-radius:17px;width:25%}.card-qrcode-placeholder[_ngcontent-%COMP%]{height:80px;width:80px;border-radius:4px;background:var(--light-grey-color);position:absolute;right:20px;bottom:20px} .citizen-card-photo-upload .upload-image{max-height:300px}.demande-refuse[_ngcontent-%COMP%]{padding:1.33rem;background-color:#ff3c4a1f;border:1px solid rgba(255,60,74,.24);border-radius:12px;position:relative}.demande-refuse[_ngcontent-%COMP%] .banner-hide-button[_ngcontent-%COMP%]{position:absolute;top:.5rem;right:.5rem}
1.demande-refuse[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0 0 1.33rem;max-width:calc(100% - 50px)}.description-enfant[_ngcontent-%COMP%]{padding-bottom:.5rem;margin-top:2rem;font-size:25px;text-decoration:underline}"]}),_})();const o_=t=>({"filter-searche-global-active":t});let dt=(()=>{var t;class _{constructor(){this.store=(0,e.WQX)(j.il),this.isInForm=!1,this.selectIsSearchHeaderVisible$=this.store.select(T.selectIsSearchHeaderVisible)}onStepChange(n){this.isInForm=n}onContentClick(){this.store.dispatch(T.Actions.setIsSearchHeaderVisible({payload:!1}))}}return(t=_).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-carte-citoyenne"]],decls:5,vars:9,consts:[[1,"hide-desktop","mobile-header",3,"defaultHref","headerTitle","returnButtonType","menuId"],["id","carte-citoyenne-mobile",3,"click","ngClass"],[1,"main-page-container","standard-page-content"],[3,"isInFormCarte"]],template:function(n,i){1&n&&(e.nrm(0,"vplus-mobile-header",0),e.j41(1,"ion-content",1),e.nI1(2,"async"),e.bIt("click",function(){return i.onContentClick()}),e.j41(3,"div",2)(4,"vplus-carte-citoyenne-content",3),e.bIt("isInFormCarte",function(r){return i.onStepChange(r)}),e.k0s()()()),2&n&&(e.Y8G("defaultHref","utilisateur/profil")("headerTitle","")("returnButtonType","back-button")("menuId","carte-citoyenne-mobile"),e.R7$(),e.Y8G("ngClass",e.eq3(7,o_,e.bMT(2,5,i.selectIsSearchHeaderVisible$))))},dependencies:[A.YU,de.f,$.W9,fn,A.Jj],encapsulation:2}),_})();var wn=C(56977),i_=C(97586),qe=C.n(i_),Pn=C(18359);function __(t,_){if(1&t&&(e.j41(0,"p")(1,"span"),e.EFF(2),e.k0s(),e.EFF(3,"\xa0 "),e.j41(4,"strong"),e.EFF(5),e.k0s()()),2&t){let o,n;const i=e.XpG();e.R7$(2),e.JRh(null!==(o=i.data.secureText)&&void 0!==o?o:i.labels.secureText),e.R7$(3),e.JRh(null!==(n=i.data.action)&&void 0!==n?n:i.labels.action)}}function s_(t,_){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const o=e.XpG();e.R7$(),e.SpI(" ",o.data.textSupp," ")}}function r_(t,_){if(1&t&&(e.j41(0,"mat-form-field",7),e.nrm(1,"input",8),e.k0s()),2&t){const o=e.XpG();e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("formControl",o.validateFormControl)}}let _n=(()=>{var t;class _{constructor(n,i){this.dialogRef=n,this.data=i,this.validateFormControl=new l.hs(""),this.disableConfirBtn=!0,this.subs=new Pn.yU,this.labels={secureText:"Pour confirmer la suppression de votre compte, veuillez inscrire",textSupp:"\xCAtes-vous s\xFBr de vouloir supprimer cet enfant?",action:"SUPPRIMER",actionWrite:"Supprimer",actionLabelButton:"Confirmer",innerHtml:`<strong class="warning-hint margin-bottom-2">\n <i class="icon-alert-triangle"></i>\n <span i18n>${"Cette action est permanente et irr\xE9versible"}</span>\n </strong>`,innerHtmlTitle:`<h2 class="form-section-title" >${"Confirmer la suppression de votre compte"}</h2>`}}ngOnInit(){this.subs.add(this.validateFormControl.valueChanges.subscribe(n=>{var i;return this.disableConfirBtn=n.toLowerCase()!==(null!==(i=this.data.actionWrite)&&void 0!==i?i:this.labels.actionWrite.toLowerCase())}))}onNoClick(){this.dialogRef.close(!1)}ngOnDestroy(){this.subs.unsubscribe()}}return(t=_).\u0275fac=function(n){return new(n||t)(e.rXU(ee.CP),e.rXU(ee.Vh))},t.\u0275cmp=e.VBU({type:t,selectors:[["citoyen-delete-dialog"]],decls:10,vars:8,consts:()=>{let o;return o="Annuler",[o,[3,"innerHtml"],[4,"ngIf"],["class","full-width","appearance","outline",3,"floatLabel",4,"ngIf"],["mat-dialog-actions","",1,"dialog-buttons-section"],["fill","outline","tabindex","1",1,"ion-custom-button-outline","ion-cu
1stom-button-standard",3,"click"],[1,"ion-custom-button-standard","ion-custom-button-full",3,"disabled","mat-dialog-close"],["appearance","outline",1,"full-width",3,"floatLabel"],["matInput","","placeholder","",3,"formControl"]]},template:function(n,i){1&n&&(e.nrm(0,"div",1),e.DNE(1,__,6,2,"p",2)(2,s_,2,1,"p",2)(3,r_,2,2,"mat-form-field",3),e.nrm(4,"div",1),e.j41(5,"div",4)(6,"ion-button",5),e.bIt("click",function(){return i.onNoClick()}),e.pXf(7,0),e.k0s(),e.j41(8,"ion-button",6),e.EFF(9),e.k0s()()),2&n&&(e.Y8G("innerHtml",i.data.innerHtmlTitle?i.data.innerHtmlTitle:i.labels.innerHtmlTitle,e.npT),e.R7$(),e.Y8G("ngIf",i.data.secureSupp),e.R7$(),e.Y8G("ngIf",i.data.textSupp),e.R7$(),e.Y8G("ngIf",i.data.secureSupp),e.R7$(),e.Y8G("innerHtml",i.data.innerHtml?i.data.innerHtml:i.labels.innerHtml,e.npT),e.R7$(4),e.Y8G("disabled",i.disableConfirBtn&&i.data.secureSupp)("mat-dialog-close",!0),e.R7$(),e.JRh(i.data.actionLabelButton?i.data.actionLabelButton:i.labels.actionLabelButton))},dependencies:[Ce.fg,R.rl,ee.tx,ee.E7,A.bT,l.me,l.BC,l.l_,$.Jm],encapsulation:2}),_})();var a_=C(42444),l_=C(46756);function c_(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,6),e.k0s())}function d_(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,7),e.k0s())}function u_(t,_){if(1&t&&(e.j41(0,"mat-option",19),e.EFF(1),e.k0s()),2&t){const o=_.$implicit;e.Y8G("value",o.id),e.R7$(),e.SpI(" ",o.nom," ")}}let C_=(()=>{var t;class _{constructor(n,i,s){this.fb=n,this.dialogRef=i,this.data=s,this.EnumFamilleMembreLien=m.Qu.sort((r,c)=>r.nom.localeCompare(c.nom))}ngOnInit(){this.form=this.fb.group({courriel:[null,[l.k0.required,(0,w.Bjz)()]],lien:[null,l.k0.required]})}save(){this.form.invalid?this.form.markAllAsTouched():this.dialogRef.close(this.form.value)}}return(t=_).\u0275fac=function(n){return new(n||t)(e.rXU(l.ze),e.rXU(ee.CP),e.rXU(ee.Vh))},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-invite-dialog"]],decls:22,vars:5,consts:()=>{let o,n,i,s,r,c,d,a;return o="Inviter un adulte",n="Courriel",i="Lien avec l'administrateur",s=" Champ obligatoire ",r="Annuler",c=" Inviter ",d=" Champ obligatoire ",a=" Courriel invalide ",[o,n,i,s,r,c,d,a,[3,"formGroup"],[1,"grid","fields","fields-mobile"],[1,"full-width"],["matInput","","type","text","formControlName","courriel","autocomplete","disabled"],[4,"ngIf"],[1,"lien-field","espace-champs"],["formControlName","lien"],[3,"value",4,"ngFor","ngForOf"],["mat-dialog-actions","",1,"dialog-buttons-section","envoyer-code-container","actions"],["mat-stroked-button","","color","primary","type","button",3,"mat-dialog-close"],["mat-flat-button","","color","primary",3,"click"],[3,"value"]]},template:function(n,i){1&n&&(e.j41(0,"h2"),e.pXf(1,0),e.k0s(),e.j41(2,"form",8)(3,"div",9)(4,"mat-form-field",10)(5,"mat-label"),e.pXf(6,1),e.k0s(),e.nrm(7,"input",11),e.DNE(8,c_,2,0,"mat-error",12)(9,d_,2,0,"mat-error",12),e.k0s(),e.j41(10,"mat-form-field",13)(11,"mat-label"),e.pXf(12,2),e.k0s(),e.j41(13,"mat-select",14),e.DNE(14,u_,2,2,"mat-option",15),e.k0s(),e.j41(15,"mat-error"),e.pXf(16,3),e.k0s()()(),e.j41(17,"div",16)(18,"button",17),e.pXf(19,4),e.k0s(),e.j41(20,"button",18),e.bIt("click",function(){return i.save()}),e.pXf(21,5),e.k0s()()()),2&n&&(e.R7$(2),e.Y8G("formGroup",i.form),e.R7$(6),e.Y8G("ngIf",i.form.get("courriel").touched&&i.form.get("courriel").hasError("required")),e.R7$(),e.Y8G("ngIf",i.form.get("courriel").touched&&i.form.get("courriel").hasError("invalidEmail")),e.R7$(5),e.Y8G("ngForOf",i.EnumFamilleMembreLien),e.R7$(4),e.Y8G("mat-dialog-close",!1))},dependencies:[Ce.fg,R.rl,R.nJ,R.TL,ie.wT,xe.VO,ue.$z,ee.tx,ee.E7,A.Sq,A.bT,l.qT,l.me,l.BC,l.cb,l.j4,l.JD],styles:[".mat-mdc-dialog-container{padding-left:28px!important;padding-right:28px!important}mat-form-field[_ngcontent-%COMP%]{padding-top:15px}.fields[_ngcontent-%COMP%]{grid-column-gap:1rem;grid-template-columns:1fr 1fr}@media (max-width: 1030px){.fields-mobile[_ngcontent-%COMP%]{display:block;padding-top:0rem!important}.lien-field[_ngcontent-%COMP%]{width:100%}.espace-champs[_ngcontent-%COMP%]{padding-top:1rem}}"]}),_})();var Oe=C(75263),On=C(81018),Ee=C(25084),Vn=C(59115),E_=C(64940);const T_=["carteParent"],We=(t,_)=>[t,_],S_=t=>[t],p_=(t,_,o)=>[t,_,o],m_=(t,_)=>({"icon-plus":t,"icon-minus":_});function N_(t,_){1&t&&e.nrm(0,"vplus-loading-spinner")}function f_(t,_){if(1&t){const o=e.RV6();e.j41(0,"vplus-intro-card",49),e.bIt("onClickButton",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.openPopup())}),e.k0s()}if(2&t){const o=e.XpG(2);e.Y8G("title",o.labels.pageTitle)("imgSrc",o.introCardContent.imgSrc)("description",o.introCardContent.description)("buttonLabel",o.introCardContent.buttonLabel)}}function P_(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",55),e.bIt("click",function(){const i=e.eBV(o).$implicit,s=e.XpG(4);return e.Njj(s.showFamily(i))}),e.j41(1,"div",56),e.nrm(2,"i",57),e.k0s(),e.j41(3,"div")(4,"h5"),e.
1EFF(5),e.k0s(),e.j41(6,"label",58),e.EFF(7),e.j41(8,"span"),e.pXf(9,7),e.k0s(),e.EFF(10),e.k0s()()()}if(2&t){const o=_.$implicit,n=e.XpG(4);e.R7$(5),e.JRh(n.labels.family+" "+o.nom),e.R7$(2),e.SpI("",o.membres.length," "),e.R7$(3),e.JRh(o.membres.length>=2?"s":"")}}function O_(t,_){if(1&t){const o=e.RV6();e.j41(0,"div")(1,"h2",50),e.EFF(2),e.k0s(),e.j41(3,"div",51)(4,"div",52),e.bIt("click",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.openPopup())}),e.j41(5,"div")(6,"span"),e.nrm(7,"i",53),e.k0s(),e.j41(8,"label"),e.pXf(9,6),e.k0s()()(),e.DNE(10,P_,11,3,"div",54),e.k0s()()}if(2&t){const o=e.XpG(3);e.R7$(2),e.JRh(o.labels.plusieursFamilles),e.R7$(8),e.Y8G("ngForOf",o.familles)}}function M_(t,_){if(1&t){const o=e.RV6();e.j41(0,"i",76),e.bIt("click",function(){e.eBV(o);const i=e.XpG(5);return e.Njj(i.retourListFamilles())}),e.k0s()}}function A_(t,_){if(1&t&&(e.j41(0,"a",63),e.nrm(1,"i",71),e.k0s()),2&t){e.XpG();const o=e.sdS(8);e.Y8G("matMenuTriggerFor",o)}}function g_(t,_){if(1&t){const o=e.RV6();e.j41(0,"a",77),e.bIt("click",function(){e.eBV(o);const i=e.XpG(5);return e.Njj(i.leaveFamily())}),e.nrm(1,"i",78),e.k0s()}}function I_(t,_){if(1&t){const o=e.RV6();e.j41(0,"button",65),e.bIt("click",function(){e.eBV(o);const i=e.XpG(5);return e.Njj(i.leaveFamily())}),e.nrm(1,"i",78),e.j41(2,"span"),e.pXf(3,12),e.k0s()()}}function h_(t,_){if(1&t){const o=e.RV6();e.j41(0,"button",65),e.bIt("click",function(){e.eBV(o);const i=e.XpG(5);return e.Njj(i.openPopup(!0))}),e.nrm(1,"i",66),e.j41(2,"span"),e.pXf(3,13),e.k0s()(),e.j41(4,"button",65),e.bIt("click",function(){e.eBV(o);const i=e.XpG(5);return e.Njj(i.deleteFamily(i.currentFamily.id,i.currentFamily.nom))}),e.nrm(5,"i",67),e.j41(6,"span"),e.pXf(7,14),e.k0s()()}}function R_(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",74)(1,"div",79),e.bIt("click",function(){e.eBV(o);const i=e.XpG(5);return e.Njj(i.addChildToFamily(i.currentFamily))}),e.j41(2,"span"),e.nrm(3,"i",53),e.k0s(),e.j41(4,"h5"),e.pXf(5,15),e.k0s()(),e.j41(6,"div",79),e.bIt("click",function(){e.eBV(o);const i=e.XpG(5);return e.Njj(i.inviteAdultToFamily())}),e.j41(7,"span"),e.nrm(8,"i",80),e.k0s(),e.j41(9,"h5"),e.pXf(10,16),e.k0s()()()}}function L_(t,_){1&t&&(e.j41(0,"span"),e.pXf(1,17),e.k0s())}function U_(t,_){if(1&t&&(e.j41(0,"div",81)(1,"div",82),e.nrm(2,"i",83),e.k0s(),e.j41(3,"div",84)(4,"h4"),e.EFF(5),e.k0s(),e.j41(6,"label")(7,"span"),e.EFF(8),e.k0s(),e.EFF(9,"\xa0 "),e.DNE(10,L_,2,0,"span"),e.k0s()()()),2&t){const o=e.XpG().$implicit,n=e.XpG(5);e.R7$(5),e.JRh(o.nomComplet),e.R7$(3),e.JRh(o.perId===n.currentFamily.requerantPerId?n.labels.contactPrincipal:n.getNomLien(o.lien)),e.R7$(2),e.vxM(10,o.perId===n.currentUser.perId?10:-1)}}function b_(t,_){1&t&&(e.j41(0,"div",87),e.nrm(1,"i",98),e.k0s())}function v_(t,_){if(1&t&&e.nrm(0,"vplus-img-shimmer",93),2&t){const o=e.XpG(2).$implicit;e.Y8G("src",null==o.photo?null:o.photo.url)("alt","photo personnelle")}}function $_(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",90)(1,"div",62)(2,"a",99),e.nrm(3,"i",100),e.k0s(),e.j41(4,"mat-menu",64,0)(6,"button",65),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2).$implicit,s=e.XpG(5);return e.Njj(s.consulterEnfant(i.perId))}),e.nrm(7,"i",101),e.j41(8,"span",102),e.pXf(9,19),e.k0s()(),e.j41(10,"button",65),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2).$implicit,s=e.XpG(5);return e.Njj(s.deleteMemberFamily(s.currentFamily.id,i,s.currentFamily.nom))}),e.nrm(11,"i",103),e.j41(12,"span",102),e.pXf(13,20),e.k0s()()()()()}if(2&t){const o=e.sdS(5);e.R7$(2),e.Y8G("matMenuTriggerFor",o)}}function F_(t,_){if(1&t&&(e.j41(0,"div")(1,"label"),e.pXf(2,21),e.k0s(),e.j41(3,"span"),e.EFF(4),e.nI1(5,"vplusMoment"),e.k0s()(),e.j41(6,"div")(7,"label"),e.pXf(8,22),e.k0s(),e.j41(9,"span"),e.EFF(10),e.k0s()()),2&t){const o=e.XpG(2).$implicit,n=e.XpG(5);e.R7$(4),e.JRh(e.ii3(5,2,o.dateExpirationCarte,!1,n.isFr?"DD/MM/yyyy":"MM/DD/yyyy",null)),e.R7$(6),e.JRh(o.nomAcces)}}function G_(t,_){1&t&&(e.j41(0,"div",104),e.nrm(1,"span")(2,"span"),e.k0s(),e.j41(3,"div",104),e.nrm(4,"span")(5,"span"),e.k0s())}function D_(t,_){if(1&t&&e.nrm(0,"vplus-img-shimmer",93),2&t){const o=e.XpG(7);e.Y8G("src",o.appConfig.appConfig.logoGrandUrl)("alt","logo")}}function y_(t,_){if(1&t){const o=e.RV6();e.j41(0,"button",106),e.bIt("click",function(){e.eBV(o);const i=e.XpG(3).$implicit,s=e.XpG(5);return e.Njj(s.askCard(i))}),e.EFF(1),e.nrm(2,"i",107),e.k0s()}if(2&t){const o=e.XpG(8);e.R7$(),e.SpI("",o.labels.askCard," ")}}function X_(t,_){if(1&t){const o=e.RV6();e.j41(0,"button",106),e.bIt("click",function(){e.eBV(o);const i=e.XpG(3).$implicit,s=e.XpG(5);return e.Njj(s.askCard(i))}),e.EFF(1),e.nrm(2,"i",107),e.k0s()}if(2&t){const o=e.XpG(8);e.R7$(),e.JRh(o.labels.askRenewalCard)}}function k_(t,_){1&t&&(e.j41(0,"div",94),e.nrm(1,"i",108),e.j41(2,"span"),e.pXf(3,23),e.k0s()())}function x_(t,_){if(1&t&&e.DNE(0,y_,3,1,"button",105)(1,X_,3,1,"button",105)(2,k_,4,0,"div",94),2&t){const o=e.XpG(2).$implicit,n=e.XpG(5);e.vxM(0,!o.statutCarte||e.l_i(3,We,n.EnumStatutCarteCitoyenne.Revoked.code,n.EnumStatutCarteCitoyenne.Refused.code).includes(o.statutCarte)&&(null==n.accesArray?null:n.accesArray.length)>0?0:-1),e.R7$(),e.vxM(1,(e.l_i(6,We,n.EnumStatutCarteCitoyenne.Activated.code,n.EnumStatutCarteCitoyenne.Expired.code).includes(o.statutCarte)&&o.isDateExpiringInTwoMonths||o.statutCarte===n.EnumStatutCarteCitoyenne.Expired.code||!
1o.photo.url&&o.statutCarte===n.EnumStatutCarteCitoyenne.Activated.code)&&(null==n.accesArray?null:n.accesArray.length)>0&&!o.isRenouvellement?1:-1),e.R7$(),e.vxM(2,o.isRenouvellement?2:-1)}}function j_(t,_){1&t&&(e.j41(0,"div",94),e.nrm(1,"i",108),e.j41(2,"span"),e.pXf(3,24),e.k0s()())}function w_(t,_){if(1&t&&(e.j41(0,"div",109),e.nrm(1,"i",110),e.j41(2,"span")(3,"span"),e.pXf(4,25),e.k0s(),e.EFF(5),e.k0s()()),2&t){const o=e.XpG(8);e.R7$(5),e.JRh(o.nomCarte)}}function V_(t,_){if(1&t&&e.DNE(0,j_,4,0,"div",94)(1,w_,6,1,"div",109),2&t){const o=e.XpG(2).$implicit,n=e.XpG(5);e.vxM(0,o.isRenouvellement?0:-1),e.R7$(),e.vxM(1,e.sMw(2,p_,n.EnumStatutCarteCitoyenne.Activated.code,n.EnumStatutCarteCitoyenne.Sent.code,n.EnumStatutCarteCitoyenne.Expired.code).includes(o.statutCarte)?-1:1)}}function z_(t,_){1&t&&(e.j41(0,"div",94),e.nrm(1,"i",108),e.j41(2,"span"),e.pXf(3,26),e.k0s()())}function H_(t,_){1&t&&(e.j41(0,"span"),e.pXf(1,27),e.k0s())}function Y_(t,_){if(1&t&&e.nrm(0,"qrcode",96),2&t){const o=e.XpG(2).$implicit;e.Y8G("qrdata",o.idIncremental)("width",300)("errorCorrectionLevel","M")("margin",2)}}function B_(t,_){if(1&t&&(e.j41(0,"div",97),e.nrm(1,"i",111),e.j41(2,"span"),e.EFF(3),e.j41(4,"span"),e.pXf(5,28),e.k0s(),e.EFF(6),e.nI1(7,"vplusMoment"),e.k0s()()),2&t){const o=e.XpG(2).$implicit,n=e.XpG(5);e.R7$(3),e.SpI("",n.nomCarte,"\xa0"),e.R7$(3),e.SpI("\xa0\xa0 ",e.brH(7,2,null==o?null:o.dateExpirationCarte,!1,n.isFr?"DD/MM/YYYY":"MM/DD/YYYY")," ")}}function q_(t,_){if(1&t&&(e.j41(0,"div",85)(1,"div",86)(2,"div"),e.DNE(3,b_,2,0,"div",87)(4,v_,1,2),e.k0s(),e.j41(5,"div")(6,"div",88)(7,"div",89)(8,"h4"),e.EFF(9),e.k0s(),e.j41(10,"h3"),e.EFF(11),e.k0s()(),e.DNE(12,$_,14,1,"div",90),e.k0s(),e.j41(13,"div",91)(14,"div")(15,"label"),e.pXf(16,18),e.k0s(),e.j41(17,"span"),e.EFF(18),e.k0s()(),e.DNE(19,F_,11,7)(20,G_,6,0),e.k0s()()(),e.j41(21,"div",92),e.DNE(22,D_,1,2,"vplus-img-shimmer",93)(23,x_,3,9)(24,V_,2,6)(25,z_,4,0,"div",94),e.j41(26,"span",95)(27,"span"),e.EFF(28),e.k0s(),e.EFF(29,"\xa0 "),e.DNE(30,H_,2,0,"span"),e.k0s()(),e.DNE(31,Y_,1,4,"qrcode",96)(32,B_,8,6,"div",97),e.k0s()),2&t){const o=e.XpG().$implicit,n=e.XpG(5);e.R7$(3),e.vxM(3,e.l_i(13,We,n.EnumStatutCarteCitoyenne.Activated.code,n.EnumStatutCarteCitoyenne.Expired.code).includes(o.statutCarte)&&null!==(null==o.photo?null:o.photo.url)?null!=o&&null!=o.photo&&o.photo.url?4:-1:3),e.R7$(6),e.JRh(o.nomComplet),e.R7$(2),e.SpI(" ",e.l_i(16,We,n.EnumStatutCarteCitoyenne.Activated.code,n.EnumStatutCarteCitoyenne.Expired.code).includes(o.statutCarte)&&!o.isRenouvellement?n.nomCarteNoPrefix:n.labels.citoyen," "),e.R7$(),e.vxM(12,o.isPrincipal?-1:12),e.R7$(6),e.JRh(o.idIncremental),e.R7$(),e.vxM(19,e.l_i(19,We,n.EnumStatutCarteCitoyenne.Activated.code,n.EnumStatutCarteCitoyenne.Expired.code).includes(o.statutCarte)?19:20),e.R7$(3),e.vxM(22,e.l_i(22,We,n.EnumStatutCarteCitoyenne.Activated.code,n.EnumStatutCarteCitoyenne.Expired.code).includes(o.statutCarte)?22:-1),e.R7$(),e.vxM(23,o.age<=16?23:24),e.R7$(2),e.vxM(25,o.statutCarte===n.EnumStatutCarteCitoyenne.Sent.code?25:-1),e.R7$(3),e.JRh(o.perId===n.currentFamily.requerantPerId?n.labels.contactPrincipal:n.getNomLien(o.lien)),e.R7$(2),e.vxM(30,o.perId===n.currentUser.perId?30:-1),e.R7$(),e.vxM(31,o.statutCarte===n.EnumStatutCarteCitoyenne.Activated.code?31:-1),e.R7$(),e.vxM(32,e.eq3(25,S_,n.EnumStatutCarteCitoyenne.Expired.code).includes(o.statutCarte)?32:-1)}}function W_(t,_){if(1&t&&(e.j41(0,"div"),e.DNE(1,U_,11,3,"div",81)(2,q_,33,27),e.k0s()),2&t){const o=e.XpG(5);e.R7$(),e.vxM(1,o.activateCarteCitoyenne?2:1)}}function J_(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",50)(1,"div",59),e.DNE(2,M_,1,0,"i",60),e.j41(3,"h2",61),e.EFF(4),e.k0s()(),e.j41(5,"div",62),e.DNE(6,A_,2,1,"a",63),e.j41(7,"mat-menu",64,0)(9,"button",65),e.bIt("click",function(){e.eBV(o);const i=e.XpG(4);return e.Njj(i.openPopup(!0))}),e.nrm(10,"i",66),e.j41(11,"span"),e.pXf(12,8),e.k0s()(),e.j41(13,"button",65),e.bIt("click",function(){e.eBV(o);const i=e.XpG(4);return e.Njj(i.deleteFamily(i.currentFamily.id,i.currentFamily.nom))}),e.nrm(14,"i",67),e.j41(15,"span"),e.pXf(16,9),e.k0s()()(),e.DNE(17,g_,2,0,"a",68),e.j41(18,"button",69),e.bIt("click",function(){e.eBV(o);const i=e.XpG(4);return e.Njj(i.openPopup())}),e.j41(19,"span"),e.pXf(20,10),e.k0s()()(),e.j41(21,"div",70)(22,"a",63),e.nrm(23,"i",71),e.k0s(),e.j41(24,"mat-menu",64,1),e.DNE(26,I_,4,0,"button",72)(27,h_,8,0),e.j41(28,"button",65),e.bIt("click",function(){e.eBV(o);const i=e.XpG(4);return e.Njj(i.openPopup())}),e.nrm(29,"i",53),e.j41(30,"span"),e.pXf(31,11),e.k0s()()()()(),e.j41(32,"div",73),e.DNE(33,R_,11,0,"div",74)(34,W_,3,1,"div",75),e.k0s()}if(2&t){const o=e.sdS(25),n=e.XpG(4);e.R7$(2),e.vxM(2,n.showReturnButton?2:-1),e.R7$(2),e.JRh(n.labels.family+" "+n.currentFamily.nom),e.R7$(2),e.vxM(6,n.isCurrentUserAdmin?6:-1),e.R7$(11),e.vxM(17,n.isCurrentUserAdmin?-1:17),e.R7$(5),e.Y8G("matMenuTriggerFor",o),e.R7$(4),e.vxM(26,n.isCurrentUserAdmin?27:26),e.R7$(7),e.vxM(33,n.isCurrentUserAdmin?33:-1),e.R7$(),e.Y8G("ngForOf",n.currentFamily.membres)}}function Q_(t,_){if(1&t){const o=e.RV6();e.qex(0),e.j41(1,"mat-expansion-panel",115,2)(3,"mat-expansion-panel-header",116)(4,"mat-panel-title")(5,"span",117),e.EFF(6),e.k0s()(),e.nrm(7,"i",118),e.k0s(),e.nrm(8,"vplus-froala-container",119),e.j41(9,"button",69),e.bIt("click",function(){const i=e.eBV(o).$implicit,s=e.XpG(6);return e.Njj(s.redirigerNextStep(i))}),e.j41(10,"span",120),e.EFF(11),e.k0s()()(),e.bVm()}if(2&t){const o=_.$implicit,n=e.sdS(2),i=e.XpG(6);e.R7$(3),e.Y8G("collapsedHeight","fit-content")("expandedHeight","fit-content"),e.R7$(3),e.JRh(o.nom),e.R7$(),e.Y8G("ngClass",e.l_i(6,m_,!n.expanded,n.expanded)),e.R7$(),e.Y8G("content",o.descriptionDemande),e.R7$(3),e.JRh(i.isRenouvellement?i.labels.renewalCard:i.labels.newRequest)}}function K_(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",112)(1,"div",59)(2,"i",76),e.bIt("click",function(){e.eBV(o);const i=e.XpG(5);return e.Njj(i.retourCurrentFamille(!0))}),e.k0s(),e.j41(3,"h2",61),e.EFF(4),e.j41(5,"span",113),e.EFF(6),e.k0s()()()(),e.j41(7,"div",114),e.DNE(8,Q_,12,9,"ng-container",75),e.k0s()}if(2&t){const o=e.XpG(5);e.R7$(4),e.SpI("",o.isRenouvellement?o.labels.renewalCardRequest:o.labels.cardRequest," "),e.R7$(2),e.JRh(o.enfant.nomComplet),e.R7$(2),e.Y8G("ngForOf",o.accesArray)}}function Z_(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,39),e.k0s())}function es(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,40),e.k0s())}function ns(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,41),e.k0s())}function ts(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,42),e.k0s())}function os(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,43),e.k0s())}function is(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,44),e.k0s())}function _s(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,45),e.k0s())}function ss(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,46),e.k0s())}function rs(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",123)(1,"h3",61),e.pXf(2,29),e.k0s()(),e.j41(3,"form",124)(4,"div",125)(5,"div")(6,"div",126)(7,"div",127)(8,"mat-form-field",128)(9,"mat-label"),e.pXf(10,30),e.k0s(),e.nrm(11,"input",129),e.DNE(12,Z_,2,0,"mat-error")(13,es,2,0,"mat-error"),e.k0s(),e.j41(14,"mat-form-field",130)(15,"mat-label"),e.pXf(16,31),e.k0s(),e.nrm(17,"input",131),e.DNE(18,ns,2,0,"mat-error")(19,ts,2,0,"mat-error"),e.k0s()(),e.j41(20,"div",132)(21,"mat-form-field",133)(22,"mat-label"),e.pXf(23,32),e.k0s(),e.nrm(24,"input",134),e.j41(25,"mat-hint",135),e.pXf(26,33),e.k0s(),e.nrm(27,"mat-datepicker-toggle",136)(28,"mat-datepicker",null,4),e.k0s(),e.DNE(30,os,2,0,"mat-error")(31,is,2,0,"mat-error"),e.k0s()()(),e.j41(32,"div")(33,"h3",137)(34,"span"),e.pXf(35,34),e.k0s()(),e.j41(36,"div")(37,"p"),e.pXf(38,35),e.k0s(),e.j41(39,"vplus-file-uploader",138,5),e.bIt("onSelectFile",function(i){e.eBV(o);const s=e.XpG(6);return e.Njj(s.onSelectPic(i))})("uploadSuccess",function(){e.eBV(o);const i=e.XpG(6);return e.Njj(i.onUploadPicSuccess())}),e.k0s(),e.nrm(41,"br"),e.DNE(42,_s,2,0,"mat-error"),e.k0s()(),e.j41(43,"div")(44,"h3",137)(45,"span"),e.pXf(46,36),e.k0s()(),e.j41(47,"div")(48,"p"),e.pXf(49,37),e.k0s(),e.j41(50,"vplus-file-uploader",139,5),e.bIt("onSelectFile",function(){e.eBV(o);const i=e.XpG(6);return e.Njj(i.onSelectFile())})("uploadSuccess",function(){e.eBV(o);const i=e.XpG(6);return e.Njj(i.onUploadSuccess())}
1),e.k0s(),e.nrm(52,"br"),e.DNE(53,ss,2,0,"mat-error"),e.k0s()()(),e.nrm(54,"input",140),e.j41(55,"div",141)(56,"button",142),e.bIt("click",function(){e.eBV(o);const i=e.XpG(6);return e.Njj(i.save())}),e.pXf(57,38),e.k0s()()()}if(2&t){const o=e.sdS(29),n=e.XpG(6);e.R7$(3),e.Y8G("formGroup",n.form),e.R7$(9),e.vxM(12,n.form.get("prenom").touched&&n.form.get("prenom").hasError("required")?12:-1),e.R7$(),e.vxM(13,n.form.get("prenom").touched&&n.form.get("prenom").hasError("invalidName")?13:-1),e.R7$(5),e.vxM(18,n.form.get("nom").touched&&n.form.get("nom").hasError("required")?18:-1),e.R7$(),e.vxM(19,n.form.get("nom").touched&&n.form.get("nom").hasError("invalidName")?19:-1),e.R7$(2),e.Y8G("floatLabel","Auto"),e.R7$(3),e.Y8G("matDatepicker",o)("max",n.today),e.R7$(3),e.Y8G("for",o),e.R7$(3),e.vxM(30,n.form.controls.dateNaissance.touched&&null!=n.form.controls.dateNaissance.errors&&n.form.controls.dateNaissance.errors.required?30:-1),e.R7$(),e.vxM(31,n.form.controls.dateNaissance.hasError("invalidAgeMaximal")?31:-1),e.R7$(8),e.Mz_("uploadPath","_citoyen/_images/",n.enfant.idIncremental,""),e.Y8G("isPublic",!1)("removeFileEvent",n.removePicSubject.asObservable()),e.R7$(3),e.vxM(42,n.form.controls.photo.touched&&null!=n.form.controls.photo.errors&&n.form.controls.photo.errors.required?42:-1),e.R7$(8),e.Mz_("uploadPath","_citoyen/documents/",n.enfant.idIncremental,""),e.Y8G("isPublic",!1)("removeFileEvent",n.removeFileSubject.asObservable()),e.R7$(3),e.vxM(53,n.form.controls.preuveParentageDocs.touched&&null!=n.form.controls.preuveParentageDocs.errors&&n.form.controls.preuveParentageDocs.errors.required?53:-1),e.R7$(3),e.Y8G("disabled",n.isSubmiting)}}function as(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",121)(1,"vplus-carte-citoyenne-content",122,3),e.bIt("retourFamilles",function(){e.eBV(o);const i=e.XpG(5);return e.Njj(i.retourCurrentFamille())})("isInFormCarte",function(i){e.eBV(o);const s=e.XpG(5);return e.Njj(s.onStepChange(i))}),e.k0s()(),e.DNE(3,rs,58,22)}if(2&t){const o=e.sdS(2),n=e.XpG(5);e.R7$(),e.Y8G("accesEnfant",n.acces)("isRenouvellementEnfant",n.isRenouvellement),e.R7$(2),e.vxM(3,o.dataLoaded?3:-1)}}function ls(t,_){if(1&t&&e.DNE(0,K_,9,3)(1,as,4,3),2&t){const o=e.XpG(4);e.vxM(0,o.formCarte?1:0)}}function cs(t,_){if(1&t&&e.DNE(0,J_,35,8)(1,ls,2,1),2&t){const o=e.XpG(3);e.vxM(0,o.isAskCard?1:0)}}function ds(t,_){if(1&t&&e.DNE(0,O_,11,2,"div")(1,cs,2,1),2&t){const o=e.XpG(2);e.vxM(0,o.currentFamily?1:0)}}function us(t,_){if(1&t&&e.DNE(0,f_,1,4,"vplus-intro-card",48)(1,ds,2,1),2&t){const o=e.XpG();e.vxM(0,o.hasFamily?1:0)}}let Mn=(()=>{var t;class _{constructor(){this.dialog=(0,e.WQX)(ee.bZ),this.route=(0,e.WQX)(V.nX),this.location=(0,e.WQX)(A.aZ),this.appMetaTags=(0,e.WQX)(ge.W),this.store=(0,e.WQX)(j.il),this.actions$=(0,e.WQX)(M.En),this.appConfig=(0,e.WQX)(te.o),this.fb=(0,e.WQX)(l.ok),this.utilisateurService=(0,e.WQX)(ce.$),this.localisationService=(0,e.WQX)(ke.A),this.destroyRef=(0,e.WQX)(e.abz),this.router=(0,e.WQX)(V.Ix),this.navCtrl=(0,e.WQX)(On.q9),this.isOnGoingForm=new e.bkB,this.familles=[],this.isFr=this.localisationService.getCurrentLocalisation()===p.fi.FR,this.EnumStatutCarteCitoyenne=m.mz,this.dataLoaded=!1,this.hasFamily=!1,this.accesArray=[],this.emplacements=[],this.EnumTypeTelephoneArray=Object.values(m.vR),this.removeFileSubject=new ze.B,this.removePicSubject=new ze.B,this.showReturnButton=!0,this.labels={pageTitle:"Cr\xE9er une nouvelle famille",ajouterNewTitle:"Nouvelle famille",contactPrincipal:"Administrateur",contact:"Contact :",adressePostale:"Adresse postale",adresse:"Adresse",citoyen:"Citoyen",family:"Famille",cardRequest:"Demande de carte pour",renewalCardRequest:"Demande de renouvellement pour",acces:"Acc\xE8s",askCard:"Demande de carte",askRenewalCard:"Renouveler la carte",renewalCard:"Demande de renouvellement",newRequest:"Nouvelle demande",plusieursFamilles:"Mes familles"},this.today=new Date,this.isOnGoingContent=!1,this.isSubmiting=!1}ngOnInit(){this.isOnGoingForm.pipe((0,g.pQ)(this.destroyRef)).subscribe(i=>{this.isOnGoingContent=i}),this.appMetaTags.updateMetaTags("Mes familles"),this.nomCarte=this.appConfig.getNomCarteCitoyenneCapital(),this.nomCarteNoPrefix=this.appConfig.getDefaultCarteConfig(),this.isCarteActive=this.appConfig.appConfig.citoyenForm.activateCarteCitoyenne,this.activateCarteCitoyenne=this.appConfig.appConfig.citoyenForm.activateCarteCitoyenne,this.labels.cardRequest=this.isFr?`Demande de Carte ${this.nomCarteNoPrefix} pour`:`${this.nomCarteNoPrefix} Card request for`,this.labels.renewalCardRequest=this.isFr?`Demande de renouvellement de Carte ${this.nomCarteNoPrefix} pour`:`${this.nomCarteNoPrefix} Card renewal request for`,this.store.select(T.selectModulesActifs).pipe((0,me.s)(1),(0,Me.M)(i=>{this.moduleActiviteIsActif=i.includes(m.AL.Activite)})).subscribe();const n={imgSrc:"assets/svg/famille-artwork.svg",buttonLabel:"Commencer"};switch(!0){case this.moduleActiviteIsActif&&this.isCarteActive:this.introCardContent={...n,description:this.isFr?`Cr\xe9er votre famille vous permet de g\xe9rer les Cartes ${this.nomCarteNoPrefix} des membres de votre famille ainsi que de g\xe9rer leurs inscriptions aux activit\xe9s et loisirs.`:`Creating your family allows you to manage the ${this.nomCarteNoPrefix} Cards of your family members as well as manage their registrations for activities and leisure.`};break;case this.moduleActiviteIsActif:this.introCardContent={...n,description:this.isFr?"Cr\xe9er votre famille vous permet de g\xe9rer les inscriptions des membres de votre famille aux activit\xe9s et loisirs.":"Creating your family allows you to manage your family members' registrations for activities and leisure."};break;case this.isCarteActive:this.introCardContent={...n,description:this.isFr?`Cr\xe9er votre famille vous permet de g\xe9rer les Cartes ${this.nomCarteNoPrefix} des membres de votre famille.`:`Creating your family allows you to manage the ${this.nomCarteNoPrefix} Cards of your family members.`}}this.store.select(T.selectCurrentUser).pipe((0,me.s)(1)).subscribe(i=>{this.currentUser=i}),this.utilisateurService.getFamilleByPerId(this.currentUser.perId).pipe((0,g.pQ)(this.destroyRef)).subscribe({next:i=>{var s;if(i.forEach(r=>this.sortMembresFamille(r)),this.familles=this.sortFamilles(i),this.setHasFamily(),this.route.
1snapshot.queryParams.famille||null!==(s=this.route.snapshot.data.params)&&void 0!==s&&s.famille){const r=i.findIndex(c=>c.id===(this.route.snapshot.queryParams.famille||this.route.snapshot.data.params.famille));-1!==r?this.showFamily(i[r]):this.retourListFamilles()}1===i.length&&(this.showReturnButton=!1,this.showFamily(i[0])),this.store.dispatch(Y.En.showReturnButton({showReturnButton:this.showReturnButton})),this.dataLoaded=!0},error:()=>{this.dataLoaded=!1}}),this.utilisateurService.getInfoCarteCitoyenne(this.currentUser.perId).pipe((0,g.pQ)(this.destroyRef)).subscribe({next:i=>{this.accesArray=i.acces}}),this.actions$.pipe((0,g.pQ)(this.destroyRef),(0,M.gp)(Y.En.upsertFamilySuccess),(0,Q.T)(i=>i)).subscribe(({savedFamille:i})=>{this.sortMembresFamille(i),this.familles.unshift(i),this.sortFamilles(this.familles),this.setHasFamily(),1===this.familles.length?(this.isCurrentUserAdmin=!0,this.currentFamily=i,this.showReturnButton=!1):(this.isCurrentUserAdmin=!1,this.currentFamily=null,this.showReturnButton=!0),this.store.dispatch(Y.En.showReturnButton({showReturnButton:this.showReturnButton}))}),this.actions$.pipe((0,g.pQ)(this.destroyRef),(0,M.gp)(Y.En.renameFamilySuccess),(0,Q.T)(i=>i)).subscribe(({newName:i})=>{this.currentFamily.nom=i}),this.actions$.pipe((0,M.gp)(Y.En.addChildFamilySuccess),(0,ae.n)(()=>this.utilisateurService.getFamilleByPerId(this.currentUser.perId)),(0,g.pQ)(this.destroyRef)).subscribe(i=>{this.currentFamily=i.find(r=>r.id===this.currentFamily.id),this.sortMembresFamille(this.currentFamily);const s=this.familles.findIndex(r=>
1r.id===this.currentFamily.id);this.familles.splice(s,1,this.currentFamily),this.currentFamily=this.familles[s]}),this.actions$.pipe((0,M.gp)(Y.En.deleteMemberFamilySuccess),(0,g.pQ)(this.destroyRef),(0,Q.T)(i=>i)).subscribe(i=>{const s=this.familles.findIndex(c=>c.id===i.familleId),r=this.familles[s].membres.findIndex(c=>c.perId===i.perId);this.familles[s].membres.splice(r,1),this.currentFamily.membres=this.familles[s].membres}),this.actions$.pipe((0,M.gp)(Y.En.upsertChildCitizenCardSucces),(0,ae.n)(()=>this.utilisateurService.getFamilleByPerId(this.currentUser.perId)),(0,g.pQ)(this.destroyRef)).subscribe(i=>{this.isSubmiting=!1,this.currentFamily=i.find(s=>s.id===this.currentFamily.id),this.sortMembresFamille(this.currentFamily),this.formCarte=!1,this.isAskCard=!1}),this.actions$.pipe((0,M.gp)(Y.En.leaveFamilleSuccess,Y.En.deleteFamilySuccess),(0,g.pQ)(this.destroyRef),(0,Q.T)(i=>i)).subscribe(()=>{const i=this.familles.findIndex(s=>s.id===this.currentFamily.id);this.familles.splice(i,1),this.setHasFamily(),1===this.familles.length?(this.showReturnButton=!1,this.showFamily(this.familles[0])):(this.currentFamily=null,this.showReturnButton=!0),this.store.dispatch(Y.En.showReturnButton({showReturnButton:this.showReturnButton}))}),this.actions$.pipe((0,g.pQ)(this.destroyRef),(0,M.gp)(Y.En.redirectListeFamilles),(0,Q.T)(i=>i)).subscribe(()=>{this.currentFamily=null,this.location.replaceState(`${window.location.pathname}`)})}openPopup(n=!1){var i;this.isOnGoingForm.emit(!0),this.dialog.open(a_.W,{data:{currentUser:this.currentUser,currentFamilyName:null===(i=this.currentFamily)||void 0===i?void 0:i.nom,isRename:n},width:p.Uq.Small,disableClose:!0}).afterClosed().pipe((0,g.pQ)(this.destroyRef)).subscribe(r=>{r&&this.store.dispatch(n?Y.En.renameFamily({famId:this.currentFamily.id,newName:r.nom,perId:this.currentUser.perId}):Y.En.upsertFamily({famille:r})),void 0!==r&&this.isOnGoingForm.emit(!1)})}addChildToFamily(n){this.isOnGoingForm.emit(!0),this.dialog.open(l_.S,{data:{currentUser:this.currentUser,famille:n},width:p.Uq.Large,disableClose:!0}).afterClosed().pipe((0,g.pQ)(this.destroyRef)).subscribe(s=>{null!=s&&s.famille&&this.store.dispatch(Y.En.addChildFamily(s)),void 0!==s&&this.isOnGoingForm.emit(!1)})}inviteAdultToFamily(){this.isOnGoingForm.emit(!0),this.dialog.open(C_,{width:p.Uq.Large,disableClose:!0}).afterClosed().pipe((0,g.pQ)(this.destroyRef)).subscribe(i=>{i&&this.store.dispatch(Y.En.inviteAdultFamily({nomFamille:this.currentFamily.nom,familleId:this.currentFamily.id,nomAdmin:`${this.currentUser.prenom} ${this.currentUser.nom}`,...i})),void 0!==i&&this.isOnGoingForm.emit(!1)})}deleteMemberFamily(n,i,s){this.isOnGoingForm.emit(!0),this.dialog.open(_n,{data:{innerHtmlTitle:`<h2 class="title-popup">${"Retrait de \xAB "}${i.nomComplet}${" \xBB de la famille \xAB "}${s}${" \xBB "}</h2>`,innerHtml:`<div class="padding-bottom margin-top-2 standard-text-color">${"\xCAtes-vous s\xFBr de vouloir retirer \xAB "}${i.nomComplet}${" \xBB de cette famille ?"}</div> <strong class="warning-hint margin-bottom-2">\n <i class="icon-alert-triangle"></i>\n <span i18n>${"Cette action est irr\xE9versible"}</span>\n </strong>`,secureSupp:!1,actionLabelButton:"Retirer"},panelClass:"delete-confirm-famille",width:p.Uq.Small}).afterClosed().pipe((0,g.pQ)(this.destroyRef)).subscribe(c=>{c&&this.store.dispatch(Y.En.deleteMemberFamily({familleId:n,perId:i.perId,familleNom:s})),void 0!==c&&this.isOnGoingForm.emit(!1)})}leaveFamily(){this.isOnGoingForm.emit(!0),this.dialog.open(_n,{data:{innerHtmlTitle:`<h2 class="title-popup" >${"Quitter la famille \xAB "}${this.currentFamily.nom}${" \xBB"}</h2>`,textSupp:"\xCAtes-vous s\xFBr de vouloir quitter cette famille?",secureSupp:!1},panelClass:"delete-confirm",width:p.Uq.Small}).afterClosed().pipe((0,g.pQ)(this.destroyRef)).subscribe(i=>{i&&this.store.dispatch(Y.En.leaveFamille({familleId:this.currentFamily.id,perId:this.currentUser.perId,familleNom:this.currentFamily.nom})),void 0!==i&&this.isOnGoingForm.emit(!1)})}deleteFamily(n,i){this.isOnGoingForm.emit(!0),this.dialog.open(_
1n,{data:{innerHtmlTitle:`<h2 class="title-popup">${this.isFr?`Suppression de la famille \xab ${i} \xbb`:`Deletion of "${i}" family`}</h2>`,innerHtml:`<div class="padding-bottom margin-top-2">${"\xCAtes-vous s\xFBr de vouloir supprimer cette famille ? En supprimant la famille, les membres de celle-ci ne seront pas supprim\xE9s mais vous n\u2019aurez plus acc\xE8s aux donn\xE9es d\u2019aucun membre de la famille."}</div> <strong class="warning-hint margin-bottom-2">\n <i class="icon-alert-triangle"></i>\n <span i18n>${"Cette action est irr\xE9versible"}</span>\n </strong>`,secureSupp:!1,actionLabelButton:"Supprimer"},panelClass:"delete-confirm-famille",width:p.Uq.Small}).afterClosed().pipe((0,g.pQ)(this.destroyRef)).subscribe(r=>{r&&this.store.dispatch(Y.En.deleteFamily({famId:n})),void 0!==r&&this.isOnGoingForm.emit(!1)})}showFamily(n){this.currentFamily=n,this.isCurrentUserAdmin=this.currentFamily.requerantPerId===this.currentUser.perId,this.location.replaceState(`${window.location.pathname}?famille=${this.currentFamily.id}`)}retourListFamilles(){this.isCurrentUserAdmin=!1,this.currentFamily=null,this.location.replaceState(`${window.location.pathname}`)}setHasFamily(){this.hasFamily=this.familles.length>0}sortMembresFamille(n){n.membres.sort((i,s)=>i.isPrincipal&&!s.isPrincipal?-1:!i.isPrincipal&&s.isPrincipal?1:0)}sortFamilles(n){return n.sort((i,s)=>i.nom.localeCompare(s.nom))}onStepChange(n){this.isOnGoingForm.emit(n)}retourCurrentFamille(n=!1){n?this.isAskCard=!1:window.confirm("Votre demande de carte en cours de cr\xE9ation sera perdue. \xCAtes-vous s\xFBr de vouloir quitter?")&&(this.formCarte=!1)}getNomLien(n){const i=m.Qu.find(s=>s.id===n);return null==i?void 0:i.nom}askCard(n){this.initForm(),this.dataLoaded=!1,this.utilisateurService.getInfoCarteCitoyenne(n.perId).pipe((0,g.pQ)(this.destroyRef)).subscribe({next:i=>{var s;this.accesArray=i.acces,this.form.patchValue(i.carteCitoyenne),this.isAskCard=!0,this.isRenouvellement=(n.statutCarte===m.mz.Activated.code&&n.isDateExpiringInTwoMonths||n.statutCarte===m.mz.Expired.code||!n.photo.url&&n.statutCarte===m.mz.Activated.code)&&(null===(s=this.accesArray)||void 0===s?void 0:s.length)>0,this.enfant=n,this.dataLoaded=!0}}),this.scrollToView()}initForm(){this.form=this.fb.group({carteParent:this.fb.group({}),nom:new l.MJ(null,[l.k0.required,(0,w.zl_)()]),prenom:new l.MJ(null,[l.k0.required,(0,w.zl_)()]),dateNaissance:new l.MJ(null,[l.k0.required,(0,w.HzN)()]),photo:new l.MJ(null,l.k0.required),preuveParentageDocs:new l.MJ(null,l.k0.required),dateActivation:new l.MJ(null),dateExpiration:new l.MJ(null),statut:new l.MJ(null),accesId:new l.MJ(null)})}scrollToView(){const n=document.querySelector(".mon-profil-desktop-content");null==n||n.scrollIntoView({behavior:"smooth",block:"start"})}redirigerNextStep(n){this.formCarte=!0,this.acces=n,this.form.patchValue(this.enfant),this.form.get("photo").patchValue(null),this.form.get("dateNaissance").patchValue(new Date(qe().tz(this.enfant.dateNaissance,"America/Toronto").format("YYYY-MM-DD HH:mm:ss.SSS"))),this.form.get("accesId").patchValue(n.id),this.descDocuments=n.descriptionDocuments,this.scrollToView()}onSelectFile(){this.showFileLoader=!0}formSelectedData(n){const i=(0,Ve.n)("li",{className:"e-upload-file-list",attrs:{"data-file-name":n.name}}),s=(0,Ve.n)("IMG",{className:"upload-image",attrs:{alt:"Image"}}),r=(0,Ve.n)("span",{className:"wrapper"});r.appendChild(s),i.appendChild(r),this.readURL(i,n),setTimeout(()=>{document.querySelector(".photo-uploader .e-upload-files").appendChild(i)})}readURL(n,i){const s=n.querySelector(".upload-image"),r=i.rawFile,c=new FileReader;c.addEventListener("load",()=>{s.src=c.result},!1),r&&c.readAsDataURL(r)}onUploadSuccess(){this.showFileLoader=!1}removeFile(n){this.removeFileSubject.next(n)}onSelectPic(n){this.showFileLoader=!0,this.formSelectedData(n.filesData[0])}onUploadPicSuccess(){this.showFileLoader=!1}removePic(n){this.removePicSubject.next(n)}save(){if(this.isSubmiting)return;if(this.form.markAllAsTouched(),this.carteParent.form.markAllAsTouched(),this.form.invali
1d||this.carteParent.form.invalid)return void this.store.dispatch(new D.ShowSnackBar("Impossible d'envoyer votre demande car certains champs sont invalides",T.EnumSnackBarType.Echec));this.isSubmiting=!0;const n=this.carteParent.form.value,i=this.form.value,s=new m.ow(this.currentUser.prenom+" "+this.currentUser.nom,p.zA.Citoyen),r=[],c=[],d=[];if(this.currentUser.telephone!==n.telephone){const a=Xn.Ay.createMask(this.appConfig.appConfig.telMaskObjet);c.push({oldValue:{label:{fr:"Num\xe9ro principal",en:"Main phone"},value:{label:this.currentUser.telephone?a.resolve(this.currentUser.telephone):null,value:this.currentUser.telephone}},newValue:{label:{fr:"Num\xe9ro principal",en:"Main phone"},value:{label:n.telephone?a.resolve(n.telephone):null,value:n.telephone}}})}(0,K.of)(null).pipe((0,g.pQ)(this.destroyRef),(0,kn.c)(this.carteParent.adressesFormArray.value.length===this.emplacements.length&&this.carteParent.adressesFormArray.value.every((a,u)=>a.noAppartement===this.emplacements[u].adrNoApp)?0:1e3)).subscribe(()=>{var a,u,S,E,f,I,b,N,B,L,X,W;if(He(this.currentUser.adresses)!==He(n.adresses)&&c.push({oldValue:{label:{fr:"Adresse",en:"Address"},value:{label:null!==(f=null===(I=this.currentUser.adresses)||void 0===I?void 0:I.map(h=>{var Z;return null===(Z=h.adresseFormatte)||void 0===Z?void 0:Z.replace(/, (APP )?\d+$/,"")}))&&void 0!==f?f:null,value:this.currentUser.adresses}},newValue:{label:{fr:"Adresse",en:"Address"},value:{label:null!==(b=null===(N=n.adresses)||void 0===N?void 0:N.map(h=>{var Z;return null===(Z=h.adresseFormatte)||void 0===Z?void 0:Z.replace(/, (APP )?\d+$/,"")}))&&void 0!==b?b:null,value:n.adresses}}}),(this.currentUser.adresses.length>0&&null!==(a=this.currentUser.adresses)&&void 0!==a&&null!==(a=a[0])&&void 0!==a&&a.adresse?Ye(this.currentUser.adresses):null)!==(n.adresses.length>0&&null!==(u=n.adresses)&&void 0!==u&&null!==(u=u[0])&&void 0!==u&&u.adresse?Ye(n.adresses):null)&&c.push({oldValue:{label:{fr:"No d'appartement",en:"Apartment number"},value:{label:null!==(B=null===(L=this.currentUser.adresses)||void 0===L?void 0:L.map(h=>h.noAppartement).filter(h=>null!==h&&""!==h))&&void 0!==B?B:null,value:this.currentUser.adresses}},newValue:{label:{fr:"No d'appartement",en:"Apartment number"},value:{label:null!==(X=null===(W=n.adresses)||void 0===W?void 0:W.map(h=>h.noAppartement).filter(h=>null!==h&&""!==h))&&void 0!==X?X:null,value:n.adresses}}}),c.length>0){const h=c.map(ne=>ne.oldValue),Z=c.map(ne=>ne.newValue);s.details.push(new m.TM(p.Wp.ModificationRenseignementsPersonnels,h,Z)),r.push(s)}const F=new m.ow(this.currentUser.prenom+" "+this.currentUser.nom,p.zA.Citoyen,!0);this.enfant.prenom!==i.prenom&&d.push({oldValue:{label:{fr:"Pr\xe9nom",en:"First name"},value:{label:this.enfant.prenom,value:this.enfant.prenom}},newValue:{label:{fr:"Pr\xe9nom",en:"First name"},value:{label:i.prenom,value:i.prenom}}}),this.enfant.nom!==i.nom&&d.push({oldValue:{label:{fr:"Nom",en:"Last name"},value:{label:this.enfant.nom,value:this.enfant.nom}},newValue:{label:{fr:"Nom",en:"Last name"},value:{label:i.nom,value:i.nom}}});const x=qe()(null!==(S=this.enfant.dateNaissance)&&void 0!==S?S:-1),re=qe()(null!==(E=i.dateNaissance)&&void 0!==E?E:-1);if((null==x?void 0:x.unix())!==re.unix()&&d.push({oldValue:{label:{fr:"Date de naissance",en:"Date of birth"},value:{label:this.enfant.dateNaissance?x.format("DD/MM/YYYY"):null,value:this.enfant.dateNaissance}},newValue:{label:{fr:"Date de naissance",en:"Date of birth"},value:{label:i.dateNaissance?re.format("DD/MM/YYYY"):null,value:i.dateNaissance}}}),d.length>0){const h=d.map(ne=>ne.oldValue),Z=d.map(ne=>ne.newValue);F.details.push(new m.TM(p.Wp.ModificationRenseignementsPersonnels,h,Z)),r.push(F)}const _e=new m.ow(this.currentUser.prenom+" "+this.currentUser.nom,p.zA.Citoyen,!0);_e.details.push(new m.TM(this.isRenouvellement?p.Wp.DemandeRenouvellementCarteCitoyenne:p.Wp.DemandeCreationCarteCitoyenne,null,null)),r.push(_e);const se={enfant:{...this.form.value,perId:this.enfant.perId,nomAcces:this.acces.nom},carteParent:{...this.carteParent.form.value,perId:this.currentUser.perId},emplacements:this.carteParent.emplacements,isRenouvellement:this.isRenouvellement,journalEvenement:r};this.store.dispatch(Y.En.upsertChildCitizenCard(se))})}consulterEnfant(n){"profil"===this.route.outlet?this.router.navigate(["/utilisateur/profil",{outlets:{profil:["enfant",n]}}]):this.navCtrl.navigateForward(["/utilisateur/enfant",n],{animated:!1})}}return(t=_).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-famille-content"]],viewQuery:function(n,i){if
1(1&n&&e.GBs(T_,5),2&n){let s;e.mGM(s=e.lsd())&&(i.carteParent=s.first)}},outputs:{isOnGoingForm:"isOnGoingForm"},features:[e.Jv_([{provide:ie.Ju,useValue:"fr-FR"},{provide:ie.de,useValue:w.dLJ},{provide:ie.MJ,useClass:Oe.QH},{provide:Oe.ij,useValue:{useUtc:!0}}])],decls:3,vars:1,consts:()=>{let o,n,i,s,r,c,d,a,u,S,E,P,O,f,I,b,N,y,G,B,L,X,W,F,x,re,_e,se,h,Z,ne,H,J,le,Pe,q,be,ve,$e,Fe,Ge,De,ye,Xe;return o="Nouvelle famille",n="membre",i="Quitter la famille",s="Renommer la famille",r="Supprimer la famille",c="Nouvelle famille",d="Nouvelle famille",a="Quitter la famille",u="Renommer la famille",S="Supprimer la famille",E="Ajouter un enfant",P="Inviter un adulte",O="(Vous)",f="Identifiant",I="Voir le profil",b="Retirer de la famille",N="\xC9ch\xE9ance",y="Acc\xE8s",G="Demande de renouvellement en traitement",B="Demande de renouvellement en traitement",L="Ce membre n'a pas la ",X="Demande en traitement",W="(Vous)",F="expir\xE9e depuis le :",x="Pr\xE9nom",re="Nom ",_e="Identification de l'enfant",se="Pr\xE9nom",h="Nom",Z="Date de naissance",ne="JJ/MM/AAAA",H="Photo de l\u2019enfant *",J="Photo r\xE9cente du visage. Assurez-vous de faire face \xE0 la cam\xE9ra.",le="Preuve de responsabilit\xE9 l\xE9gale *",Pe="Certificat de naissance ou bulletin scolaire",q="Envoyer la demande",be=" Champ obligatoire ",ve=" Champ invalide ",$e=" Champ obligatoire ",Fe=" Champ invalide ",Ge=" Champ obligatoire ",De=" Un enfant doit avoir moins de 16 ans ",ye=" Champ obligatoire ",Xe=" Champ obligatoire ",[["menu_desktop","matMenu"],["menu","matMenu"],["expansionPanel",""],["carteParent",""],["picker",""],["fileUploader",""],o,n,s,r,c,d,a,u,S,E,P,O,f,I,b,N,y,G,B,L,X,W,F,_e,se,h,Z,ne,H,J,le,Pe,q,be,ve,$e,Fe,Ge,De,ye,Xe,[1,"container-component"],[3,"title","imgSrc","description","buttonLabel"],[3,"onClickButton","title","imgSrc","description","buttonLabel"],[1,"family-title","margin-bottom-2"],[1,"family-card-container","col-4"],["mat-ripple","",1,"family-grid-button-large","pointer-cursor",3,"click"],[1,"icon-plus"],["class","family-card pointer-cursor","mat-ripple","",3,"click",4,"ngFor","ngForOf"],["mat-ripple","",1,"family-card","pointer-cursor",3,"click"],[1,"container-icon-famille"],[1,"icon-users"],[1,"famille-info"],[1,"align-center","flex"],[1,"icon-left-arrow","pointer-cursor"],[1,"no-margin"],[1,"desktop-buttons"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"famille-menu"],["mat-menu-item","",3,"click"],[1,"icon-modifier"],[1,"icon-poubelle"],["mat-icon-button","","matTooltip",i],["mat-flat-button","","color","primary",3,"click"],[1,"mobile-buttons"],[1,"icon-more-horizontal"],["mat-menu-item",""],[1,"family-card-container","col-3"],[1,"family-grid-button-container"],[4,"ngFor","ngForOf"],[1,"icon-left-arrow","pointer-cursor",3,"click"],["mat-icon-button","","matTooltip",i,3,"click"],[1,"icon-logout"],["matRipple","",1,"family-grid-button",3,"click"],[1,"icon-mail"],[1,"no-card-member"],[1,"no-card-member-avatar"],[1,"icon-user"],[1,"no-card-member-infos"],[1,"citizen-card"],[1,"citizen-card-content"],[1,"citizen-card-icon"],[1,"citizen-card-title"],[1,"citizen-info"],[1,"menu-membre-famille"],[1,"citizen-card-infos"],[1,"citizen-card-footer"],[3,"src","alt"],[1,"label","label-pending"],[1,"label","label-link"],[1,"qrcode-citoyen-mobile",3,"qrdata","width","errorCorrectionLevel","margin"],[1,"label","label-warning","font-size-15"],[1,"icon-user","icon-carte"],[3,"matMenuTriggerFor"],[1,"icon-more-horizontal","menu-membre-famille"],[1,"icon-user","font-size-18"],[1,"width-500"],[1,"icon-minus-circle","font-size-18"],[1,"card-info-placeholder"],["mat-flat-button","","color","primary",1,"citizen-card-button"],["mat-flat-button","","color","primary",1,"citizen-card-button",3,"click"],[1,"icon-arrow-up-right"],[1,"icon-loader"],[1,"label","label-warning"],[1,"icon-invalid"],[1,"icon-invalid","black-icone"],[1,"family-title"],[1,"primary-color"],[1,"acces-list","margin-top-2"],["hideToggle","true",1,"outline-expansion-panel"],[1,"side-menu-element","list-categorie-item",3,"collapsedHeight","expandedHeight"],[1,"header-text"],[3,"ngClass"],[1,"margin-bottom-2","block",3,"content"],[1,"button-demande"],[1,"carte-parent"],[3,"retourFamilles","isInFormCarte","accesEnfant","isRenouvellementEnfant"],[1,"family-title","margin-title"],[3,"formGroup"],[1,"flex-form-gap"],[1,"margin-bottom-1","full-width"],[1,"grid","fields"],[1,"full-width"],["matInput","","type","text","formControlName","prenom","placeholder",x,"autocomplete","disabled"],[1,"full-width","espace-champs"],["matInput","","type","text","formControlName","nom","placeholder",re,"autocomplete","disabled"],[1,"half-width","field-custom-wrapper"],["appearance","fill",1,"full-width","margin-bottom-0",3,"floatLabel"],["tabindex","-1","autocomplete","off","matInput","","formControlName","dateNaissance",3,"matDatepicker","max"],[1,"birthday-hint"],["matSuffix","",3,"for"],[1,"margin-bottom-1"],["formControlName","photo","accept","image/*",1,"primary-file-upload","photo-uploader",3,"onSelectFile","uploadSuccess","isPublic","removeFileEvent","uploadPath"],["multiple","true","formControlName","preuveParentageDocs","accept",".pdf,.jpg,.jpeg,.png,.gif,.webp,.heic",1,"primary-file-upload",3,"onSelectFile","uploadSuccess","isPublic","removeFileEvent","uploadPath"],["type","submit","hidden",""],[1,"flex","flex-end"],["mat-flat-button","","color","primary",3,"click","disabled"]]},template:function(n,i){1&n&&(e.j41(0,"div",47),e.DNE(1,N_,1,0,"vplus-loading-spinner")(2,us,2,1),e.k0s()),2&n&&(e.R7$(),e.vxM(1,i.dataLoaded?2:1))},dependencies:[Be.GK,Be.Z2,Be.WN,Ce.fg,R.rl,R.nJ,R.MV,R.TL,R.yw,ue.$z,ue.pQ,Ee.Vh,Ee.bZ,Ee.bU,Ie.oV,Vn.kk,Vn.fb,Vn.Cp,ie.r6,A.YU,A.Sq,l.qT,l.me,l.BC,l.cb,l.j4,l.JD,rt.e,E_.m,at.m,Nn.N,lt.A,Fn.c,fn,jn.x],styles:[".champs-tel[_ngcontent-%COMP%]{grid-template-columns:2fr 1fr}.fields[_ngcontent-%COMP%]{grid-column-gap:1rem;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.margin-title[_ngcontent-%COMP%]{margin-bottom:1.3rem}.icon-invalid[_ngcontent-%COMP%]{margin-right:8px}.icon-invalid.black-icone[_ngcontent-%COMP%]{color:#000!important}.menu-membre-famille[_ngcontent-%COMP%]{margin-top:-2.5rem;color:gray!important}.citizen-card-title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.citizen-info[_ngcontent-%COMP%]{display:flex;flex-direction:column}.mat-menu-panel[_ngcontent-%COMP%]{max-height:200px!important;overflow-y:auto}@media (min-width: 1200px){ .delete-confirm-famille{width:640px!important}} .delete-confirm-famille .dialog-buttons-section{padding-bottom:2.5rem;grid-column-gap:1rem} .delete-confirm-famille .margin-display{display:flex!important;align-items:center!important;gap:.85rem!important}"]}),_})();const Cs=t=>({"filter-searche-global-active":t});let ut=(()=>{var t;class _ extends he.dI{constructor(n,i){super(),this.store=n,this.actions$=i,this.showReturnButton=!0,this.isOnGoingForm=!1,this.selectIsSearchHeaderVisible$=this.store.select(T.selectIsSearchHeaderVisible)}ngOnInit(){this.actions$.pipe((0,M.gp)(Y.En.showReturnButton),(0,Q.T)(n=>n),(0,wn.Q)(this.destroy$)).subscribe(({showReturnButton:n})=>{this.showReturnButton=n})}onContentClick(){this.store.dispatch(T.Actions.setIsSearchHeaderVisible({payload:!1}))}handleForm(n){this.isOnGoingForm=n}}return(t=_).\u0275fac=function(n){return new(n||t)(e.rXU(j.il),e.rXU(M.En))},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-famille"]],features:[e.Vt3],decls:5,vars:10,consts:[[1,"hide-desktop","mobile-header",3,"defaultHref","headerTitle","returnButtonType","showReturnButton","menuId"],["id","famille-mobile",3,"click","ngClass"],[1,"main-page-container","standard-page-content"],[3,"isOnGoingForm"]],template:function(n,i){1&n&&(e.nrm(0,"vplus-mobile-header",0),e.j41(1,"ion-content",1),e.nI1(2,"async"),e.bIt("click",function(){return i.onContentClick()}),e.j41(3,"div",2)(4,"vplus-famille-content",3),e.bIt("isOnGoingForm",function(r){return i.handleForm(r)}),e.k0s()()()),2&n&&(e.Y8G("defaultHref","utilisateur/profil")("headerTitle","")("returnButtonType","back-button")("showReturnButton",i.showReturnButton)("menuId","famille-mobile"),e.R7$(),e.Y8G("ngClass",e.eq3(8,Cs,e.bMT(2,6,i.selectIsSearchHeaderVisible$))))},dependencies:[A.YU,de.f,$.W9,Mn,A.Jj],encapsulation:2}),_})();const An=t=>{if((t=>{return t instanceof fn?t.currentStep!==t.EnumCarteCitoyenneStep.FormCarte:t instanceof Mn?!(null!=t&&null!==(_=t.carteParent)&&void 0!==_&&_.dataLoaded&&t.isOnGoingContent):t instanceof dt?!t.isInForm:t instanceof ut&&!t.isOnGoingForm;var _})(t))return!0;const _="Votre demande de carte en cours de cr\xE9ation sera perdue. \xCAtes-vous s\xFBr de vouloir quitter?";return window.confirm(_)};var sn=C(36152),Ts=C(48235);const Ss=["ionContent"],ps=t=>({"filter-searche-global-active":t});let Ct=(()=>{var t;class _{constructor(){this.store=(0,e.WQX)(j.il),this.appConfig=(0,e.WQX)(te.o),this.route=(0,e.WQX)(V.nX)}ngOnInit(){this.selectIsSearchHeaderVisible$=this.store.select(T.selectIsSearchHeaderVisible),this.wiType=this.route.
1snapshot.data.module===m.AL.Requete?p.Op.Requete:p.Op.Permis,this.isForAdmin=1===parseInt(this.route.snapshot.queryParamMap.get("admin"),10)}onContentClick(){this.store.dispatch(T.Actions.setIsSearchHeaderVisible({payload:!1}))}ngAfterViewInit(){this.ionContent.scrollToTop()}ionViewWillLeave(){this.store.dispatch(Ts.En.resetCurrentWorkitem({payload:{type:this.wiType,fromOrganisation:this.isForAdmin}}))}}return(t=_).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-consulter-affectation-container"]],viewQuery:function(n,i){if(1&n&&e.GBs(Ss,5),2&n){let s;e.mGM(s=e.lsd())&&(i.ionContent=s.first)}},standalone:!0,features:[e.aNF],decls:5,vars:9,consts:[["ionContent",""],[1,"hide-desktop","mobile-header",3,"defaultHref","headerTitle","returnButtonType","menuId"],["id","requeteConsulter","scrollEvents","true",3,"click","ngClass"]],template:function(n,i){if(1&n){const s=e.RV6();e.nrm(0,"vplus-mobile-header",1),e.j41(1,"ion-content",2,0),e.nI1(3,"async"),e.bIt("click",function(){return e.eBV(s),e.Njj(i.onContentClick())}),e.nrm(4,"vplus-consulter-affectation"),e.k0s()}2&n&&(e.Y8G("defaultHref",i.isForAdmin?"/organisation/admin/requete/creation":"/requete")("headerTitle","")("returnButtonType","back-button")("menuId","requeteConsulter"),e.R7$(),e.Y8G("ngClass",e.eq3(7,ps,e.bMT(3,5,i.selectIsSearchHeaderVisible$))))},dependencies:[we.G,A.YU,de.f,$.W9,A.Jj,sn.B],encapsulation:2}),_})();var zn=C(10467);const ms=t=>({"filter-searche-global-active":t});let Ns=(()=>{var t;class _{constructor(){this.zone=(0,e.WQX)(e.SKi),this.platform=(0,e.WQX)(On.OD),this.navController=(0,e.WQX)(On.q9),this.utilisateurService=(0,e.WQX)(ce.$),this.store=(0,e.WQX)(j.il),this.router=(0,e.WQX)(V.Ix),this.appConfig=(0,e.WQX)(te.o),this.authenticationService=(0,e.WQX)(on.k),this.selectIsSearchHeaderVisible$=this.store.select(T.selectIsSearchHeaderVisible)}onContentClick(){this.store.dispatch(T.Actions.setIsSearchHeaderVisible({payload:!1}))}ionViewWillEnter(){this.emailSub=this.store.select(Y.hJ).subscribe(n=>{this.email=n})}sendActivationEmail(){this.utilisateurService.sendActivationEmail(this.email).subscribe({next:()=>{this.store.dispatch(new T.Actions.ShowSnackBar("Un lien pour activer votre compte vous a \xE9t\xE9 envoy\xE9 par courriel."))},error:n=>{429!==(null==n?void 0:n.status)&&this.store.dispatch(new T.Actions.ShowSnackBar("Une erreur est survenue, veuillez r\xE9essayer.",T.EnumSnackBarType.Echec))}})}proceedLogin(){var n=this;return(0,zn.A)(function*(){n.appConfig.useSSO?n.authenticationService.getAuthUrl(window.location.href).pipe((0,me.s)(1)).subscribe(i=>{null!=i&&i.url&&(window.location.href=i.url)}):n.platform.is("ios")||n.platform.is("android")?setTimeout(()=>{n.zone.run(()=>{n.navController.navigateForward("/utilisateur/connexion")})},50):n.router.navigate(["/utilisateur/connexion"])})()}ionViewDidLeave(){this.emailSub.unsubscribe()}}return(t=_).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-crl-verify"]],decls:16,vars:8,consts:()=>{let o,n,i,s,r;return o="Courriel d'activation envoy\xE9",n="Votre compte a \xE9t\xE9 cr\xE9\xE9 avec succ\xE8s. Vous devez maintenant l'activer afin de vous y connecter. Consultez votre bo\xEEte courriel et cliquez sur le lien d'activation pour finaliser votre inscription.",i=" Si vous ne le recevez pas d'ici quelques minutes, pensez \xE0 v\xE9rifier votre dossier de courriels ind\xE9sirables (pourriel).",s="Renvoyer le courriel d'activation",r=" Connexion ",[o,n,i,s,r,[1,"hide-desktop","mobile-header",3,"headerTitle","returnButtonType","menuId"],["id","courrielEnvoye",3,"click","ngClass"],[1,"email-verification"],[1,"icon-courriel"],[1,"form-section-title"],[2,"font-size","16px"],["mat-button","","color","primary",1,"margin-bottom-1",3,"click"],["expand","block",1,"ion-custom-button-full","ion-custom-button-standard",3,"click"]]},template:function(n,i){1&n&&(e.nrm(0,"vplus-mobile-header",5),e.j41(1,"ion-content",6),e.nI1(2,"async"),e.bIt("click",function(){return i.onContentClick()}),e.j41(3,"div",7),e.nrm(4,"i",8),e.j41(5,"h2",9),e.pXf(6,0),e.k0s(),e.j41(7,"p",10),e.pXf(8,1),e.k0s(),e.j41(9,"p",10),e.pXf(10,2),e.k0s(),e.j41(11,"div")(12,"button",11),e.bIt("click",function(){return i.sendActivationEmail()}),e.pXf(13,3),e.k0s(),e.j41(14,"ion-button",12),e.bIt("click",function(){return i.proceedLogin()}),e.pXf(15,4),e.k0s()()()()),2&n&&(e.Y8G("headerTitle","")("returnButtonType","home-button")("menuId","courrielEnvoye"),e.R7$(),e.Y8G("ngClass",e.eq3(6,ms,e.bMT(2,4,i.selectIsSearchHeaderVisible$))))},dependencies:[ue.$z,A.YU,de.f,$.Jm,$.W9,A.Jj],encapsulation:2}),_})(),Et=(()=>{var t;class _{constructor(n,i,s){this.store=n,this.dialog=i,this.appMetaTags=s,this.subscriptions=new Pn.yU}ngOnInit(){this.appMetaTags.updateMetaTags("Supprimer mon compte");const n=this.store.select(T.selectCurrentUser).subscribe(i=>{this.currentUser=i});this.subscriptions.add(n)}deleteUser(){this.store.dispatch(Y.En.deleteCompte())}openDeleteCitoyenDialog(){this.deleteCitoyenDialogRef=this.dialog.open(_
1n,{data:{secureSupp:!0},panelClass:"delete-confirm",width:p.Uq.Small}),this.deleteCitoyenDialogRef.afterClosed().subscribe(n=>{n&&this.deleteUser()})}ngOnDestroy(){this.subscriptions.unsubscribe()}}return(t=_).\u0275fac=function(n){return new(n||t)(e.rXU(j.il),e.rXU(ee.bZ),e.rXU(ge.W))},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-delete-user-content"]],decls:15,vars:0,consts:()=>{let o,n,i,s,r;return o="Supprimer mon compte",n=" Lorsque vous supprimez votre compte, vous ne pouvez plus en r\xE9cup\xE9rer le contenu ou les informations que vous avez partag\xE9es. ",i=" Vos informations personnelles seront quant \xE0 elles supprim\xE9es. ",s="Cette action est permanente et irr\xE9versible",r=" Supprimer mon compte ",[o,n,i,s,r,[1,"form-container","user-form-container","padding-form-mobile"],[1,"form-section-title"],[1,"margin-bottom-2"],[2,"margin-top","0"],[1,"warning-hint"],[1,"icon-alert-triangle"],[1,"edit-form-actions"],["expand","block",1,"ion-custom-button-standard","ion-custom-button-full","warn",3,"click"]]},template:function(n,i){1&n&&(e.j41(0,"div",5)(1,"h2",6),e.pXf(2,0),e.k0s(),e.j41(3,"div",7)(4,"p",8),e.pXf(5,1),e.k0s(),e.j41(6,"p"),e.pXf(7,2),e.k0s(),e.j41(8,"strong",9),e.nrm(9,"i",10),e.j41(10,"span"),e.pXf(11,3),e.k0s()()(),e.j41(12,"div",11)(13,"ion-button",12),e.bIt("click",function(){return i.openDeleteCitoyenDialog()}),e.pXf(14,4),e.k0s()()())},dependencies:[$.Jm],encapsulation:2}),_})();const fs=t=>({"filter-searche-global-active":t});let Ps=(()=>{var t;class _{constructor(n){this.store=n,this.selectIsSearchHeaderVisible$=this.store.select(T.selectIsSearchHeaderVisible)}onContentClick(){this.store.dispatch(T.Actions.setIsSearchHeaderVisible({payload:!1}))}}return(t=_).\u0275fac=function(n){return new(n||t)(e.rXU(j.il))},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-delete-user"]],decls:4,vars:9,consts:[[1,"hide-desktop","mobile-header",3,"defaultHref","headerTitle","returnButtonType","menuId"],["id","deleteUser",3,"click","ngClass"]],template:function(n,i){1&n&&(e.nrm(0,"vplus-mobile-header",0),e.j41(1,"ion-content",1),e.nI1(2,"async"),e.bIt("click",function(){return i.onContentClick()}),e.nrm(3,"vplus-delete-user-content"),e.k0s()),2&n&&(e.Y8G("defaultHref","utilisateur/profil")("headerTitle","")("returnButtonType","back-button")("menuId","deleteUser"),e.R7$(),e.Y8G("ngClass",e.eq3(7,fs,e.bMT(2,5,i.selectIsSearchHeaderVisible$))))},dependencies:[A.YU,de.f,$.W9,Et,A.Jj],encapsulation:2}),_})();const Os=t=>({"filter-searche-global-active":t});function Ms(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",8)(1,"button",9),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.desabonnerCategorie())}),e.pXf(2,0),e.k0s()()}}function As(t,_){1&t&&(e.j41(0,"div",8)(1,"a",10),e.pXf(2,1),e.k0s()())}let gs=(()=>{var t;class _ extends he.dI{constructor(n,i,s,r){super(),this.store=n,this.route=i,this.utilisateurService=s,this.localisationService=r,this.showUnsubButton=!0,this.selectIsSearchHeaderVisible$=this.store.select(T.selectIsSearchHeaderVisible)}ngOnInit(){const n=this.route.snapshot.queryParams.catNom;this.nomCategorie=this.localisationService.getCurrentLocalisation()===m.DP.Fr.shortedLabel.toLowerCase()?`\xab ${n} \xbb`:`"${n}"`,this.message="Cliquez sur le bouton suivant pour confirmer votre d\xE9sabonnement \xE0"+" "+this.nomCategorie}onContentClick(){this.store.dispatch(T.Actions.setIsSearchHeaderVisible({payload:!1}))}desabonnerCategorie(){this.utilisateurService.desabonnerCategorieAlerte(this.route.snapshot.queryParams.catId,this.route.snapshot.queryParams.token).pipe((0,wn.Q)(this.destroy$),(0,oe.W)(()=>(0,K.of)({code:"NO"}))).subscribe({next:s=>{this.showUnsubButton=!1,this.message="OK"===s.code?"Vous \xEAtes maintenant d\xE9sabonn\xE9 de"+" "+this.nomCategorie:"Vous \xEAtes d\xE9j\xE0 d\xE9sabonn\xE9 de"+" "+this.nomCategorie}})}}return(t=_).\u0275fac=function(n){return new(n||t)(e.rXU(j.il),e.rXU(V.nX),e.rXU(ce.$),e.rXU(ke.A))},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-desabonnement-categorie-alerte"]],features:[e.Vt3],decls:9,vars:8,consts:()=>{let o,n;return o="Se d\xE9sabonner",n="Retour \xE0 l'accueil",[o,n,["headerTitle","","returnButtonType","home-button","menuId","de
1sabonnementCategorieAlerte",1,"hide-desktop","mobile-header"],["id","desabonnementCategorieAlerte",3,"click","ngClass"],[1,"email-verification"],[1,"icon-courriel"],[1,"form-section-title"],["class","auth-form-actions",4,"ngIf"],[1,"auth-form-actions"],["mat-raised-button","",1,"custom-button-full","custom-button-standard","full-width","custom-button-center",3,"click"],["mat-raised-button","","routerLink","/accueil",1,"custom-button-full","custom-button-standard","full-width","custom-button-center"]]},template:function(n,i){1&n&&(e.nrm(0,"vplus-mobile-header",2),e.j41(1,"ion-content",3),e.nI1(2,"async"),e.bIt("click",function(){return i.onContentClick()}),e.j41(3,"div",4),e.nrm(4,"i",5),e.j41(5,"h2",6),e.EFF(6),e.k0s(),e.DNE(7,Ms,3,0,"div",7)(8,As,3,0,"div",7),e.k0s()()),2&n&&(e.R7$(),e.Y8G("ngClass",e.eq3(6,Os,e.bMT(2,4,i.selectIsSearchHeaderVisible$))),e.R7$(5),e.JRh(i.message),e.R7$(),e.Y8G("ngIf",i.showUnsubButton),e.R7$(),e.Y8G("ngIf",!i.showUnsubButton))},dependencies:[ue.It,ue.$z,A.YU,A.bT,de.f,$.W9,$.oY,V.Wk,A.Jj],encapsulation:2}),_})();function Hn(t,_){return o=>o.controls[t].value===o.controls[_].value?null:{notSame:!0}}function Is(t){return _=>{const o=_.parent;return o&&_.value!==o.get([t]).value?{mismatch:!0}:null}}function hs(t,_){1&t&&e.nrm(0,"i",11)}function Rs(t,_){1&t&&e.nrm(0,"i",12)}function Ls(t,_){1&t&&e.nrm(0,"i",13)}function Us(t,_){1&t&&e.nrm(0,"i",11)}function bs(t,_){1&t&&e.nrm(0,"i",12)}function vs(t,_){1&t&&e.nrm(0,"i",13)}function $s(t,_){1&t&&e.nrm(0,"i",11)}function Fs(t,_){1&t&&e.nrm(0,"i",12)}function Gs(t,_){1&t&&e.nrm(0,"i",13)}function Ds(t,_){1&t&&e.nrm(0,"i",11)}function ys(t,_){1&t&&e.nrm(0,"i",12)}function Xs(t,_){1&t&&e.nrm(0,"i",13)}function ks(t,_){if(1&t&&(e.j41(0,"span",5)(1,"div"),e.DNE(2,hs,1,0,"i",6)(3,Rs,1,0,"i",7)(4,Ls,1,0,"i",8),e.j41(5,"span",9),e.pXf(6,0),e.k0s()(),e.j41(7,"div"),e.DNE(8,Us,1,0,"i",6)(9,bs,1,0,"i",7)(10,vs,1,0,"i",8),e.j41(11,"span",9),e.pXf(12,1),e.k0s()(),e.j41(13,"div"),e.DNE(14,$s,1,0,"i",6)(15,Fs,1,0,"i",7)(16,Gs,1,0,"i",8),e.j41(17,"span",9),e.pXf(18,2),e.k0s()(),e.j41(19,"div"),e.DNE(20,Ds,1,0,"i",6)(21,ys,1,0,"i",7)(22,Xs,1,0,"i",8),e.j41(23,"span",10),e.pXf(24,3),e.k0s()()()),2&t){const o=e.XpG();e.R7$(2),e.Y8G("ngIf",(null==o.passwordFormControl.errors?null:o.passwordFormControl.errors.minlength)&&!o.formWasSubmitted),e.R7$(),e.Y8G("ngIf",(null==o.passwordFormControl.errors?null:o.passwordFormControl.errors.minlength)&&o.formWasSubmitted),e.R7$(),e.Y8G("ngIf",!(null!=o.passwordFormControl.errors&&o.passwordFormControl.errors.minlength)),e.R7$(4),e.Y8G("ngIf",(null==o.passwordFormControl.errors?null:o.passwordFormControl.errors.noLowerCaseCharacter)&&!o.formWasSubmitted),e.R7$(),e.Y8G("ngIf",(null==o.passwordFormControl.errors?null:o.passwordFormControl.errors.noLowerCaseCharacter)&&o.formWasSubmitted),e.R7$(),e.Y8G("ngIf",!(null!=o.passwordFormControl.errors&&o.passwordFormControl.errors.noLowerCaseCharacter)),e.R7$(4),e.Y8G("ngIf",(null==o.passwordFormControl.errors?null:o.passwordFormControl.errors.noUpperCaseCharacter)&&!o.formWasSubmitted),e.R7$(),e.Y8G("ngIf",(null==o.passwordFormControl.errors?null:o.passwordFormControl.errors.noUpperCaseCharacter)&&o.formWasSubmitted),e.R7$(),e.Y8G("ngIf",!(null!=o.passwordFormControl.errors&&o.passwordFormControl.errors.noUpperCaseCharacter)),e.R7$(4),e.Y8G("ngIf",(null==o.passwordFormControl.errors?null:o.passwordFormControl.errors.noSpecialCharacter)&&!o.formWasSubmitted),e.R7$(),e.Y8G("ngIf",(null==o.passwordFormControl.errors?null:o.passwordFormControl.errors.noSpecialCharacter)&&o.formWasSubmitted),e.R7$(),e.Y8G("ngIf",!(null!=o.passwordFormControl.errors&&o.passwordFormControl.errors.noSpecialCharacter))}}let Yn=(()=>{var t;class _{constructor(){this.formWasSubmitted=!1}ngOnInit(){this.passwordFormControl.addValidators([l.k0.minLength(8),(0,w.cBX)(),(0,w.E0m)(),(0,w.PQk)()])}}return(t=_).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-password-hint"]],inputs:{passwordFormControl:"passwordFormControl",formWasSubmitted:"formWasSubmitted"},decls:1,vars:1,consts:()=>{let o,n,i,s;return o="Minimum 8 caract\xE8res",n="Au moins une lettre minuscule",i="Au moins une lettre majuscule",s="Au moins un chiffre ou un caract\xE8re sp\xE9cial",[o,n,i,s,["class","password-hint",4,"ngIf"],[1,"password-hint"],["class","icon-circle",4,"ngIf"],["class","icon-x-circle-full",4,"ngIf"],["class","icon-check-circle-full",4,"ngIf"],[1,"password-hint-text"],[1,"password-hint-text","nowrap"],[1,"icon-circle"],[1,"icon-x-circle-full"],[1,"icon-check-circle-full"]]},template:function(n,i){1&n&&e.DNE(0,ks,25,12,"span",4),2&n&&e.Y8G("ngIf",i.passwordFormControl.value)},dependencies:[A.bT],styles:[".icon-check-circle-full[_ngcontent-%COMP%]{color:var(--approved-color)}.icon-x-circle-full[_ngcontent-%COMP%]{color:var(--warn-color)}
1.icon-circle[_ngcontent-%COMP%], .icon-x-circle-full[_ngcontent-%COMP%], .icon-check-circle-full[_ngcontent-%COMP%]{font-size:18px;display:inline-block;vertical-align:middle}.password-hint[_ngcontent-%COMP%]{gap:.25rem;display:flex;flex-direction:column}.password-hint[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px} .mat-mdc-form-field-hint vplus-password-hint{display:inline-block}"]}),_})();function xs(t,_){if(1&t){const o=e.RV6();e.j41(0,"mat-icon-button",25),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.toggleAncienPasswordVisibility())}),e.nrm(1,"i",26),e.k0s()}if(2&t){const o=e.XpG();e.FS9("matTooltip",o.ancienPasswordHidden?o.labels.showPassword:o.labels.hidePassword),e.R7$(),e.Y8G("ngClass",o.ancienPasswordHidden?"icon-eye":"icon-eye-off")}}function js(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,5),e.k0s())}function ws(t,_){if(1&t){const o=e.RV6();e.j41(0,"mat-icon-button",27),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.togglePasswordVisibility())}),e.nrm(1,"i",26),e.k0s()}if(2&t){const o=e.XpG();e.FS9("matTooltip",o.passwordHidden?o.labels.showPassword:o.labels.hidePassword),e.R7$(),e.Y8G("ngClass",o.passwordHidden?"icon-eye":"icon-eye-off")}}function Vs(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,6),e.k0s())}function zs(t,_){1&t&&e.nrm(0,"div",28)}function Hs(t,_){if(1&t){const o=e.RV6();e.j41(0,"mat-icon-button",25),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.togglePasswordConfirmationVisibility())}),e.nrm(1,"i",26),e.k0s()}if(2&t){const o=e.XpG();e.FS9("matTooltip",o.passwordConfirmationHidden?o.labels.showPassword:o.labels.hidePassword),e.R7$(),e.Y8G("ngClass",o.passwordConfirmationHidden?"icon-eye":"icon-eye-off")}}function Ys(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,7),e.k0s())}function Bs(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,8),e.k0s())}class qs{constructor(_){this.errorMessage=_}isErrorState(_,o){return _&&_.touched&&_.parent.hasError(this.errorMessage)}}let Tt=(()=>{var t;class _{get nouveauPassword(){return this.changePassForm.get("nvxPassword")}get confirmNouveauPassword(){return this.changePassForm.get("confirmNvxPassword")}constructor(n,i,s,r,c){this.fb=n,this.utilisateurService=i,this.store=s,this.route=r,this.appMetaTags=c,this.isChangePass=!1,this.passwordHidden=!0,this.passwordConfirmationHidden=!0,this.ancienPasswordHidden=!0,this.isPasswordNotEmpty=!1,this.isPasswordConfirmationEmpty=!1,this.isAncienPasswordNotEmpty=!1,this.matcher=new qs("notSame"),this.labels={showPassword:"Afficher",hidePassword:"Masquer"}}ngOnInit(){this.appMetaTags.updateMetaTags("Modifier mon mot de passe"),this.changePassForm=this.fb.group({oldPassword:["",l.k0.required],nvxPassword:["",[l.k0.required]],confirmNvxPassword:["",l.k0.required]}),this.changePassForm.setValidators(Hn("nvxPassword","confirmNvxPassword"))}changePasswordForm(){this.isChangePass=!0}togglePasswordVisibility(){this.passwordHidden=!this.passwordHidden}togglePasswordConfirmationVisibility(){this.passwordConfirmationHidden=!this.passwordConfirmationHidden}toggleAncienPasswordVisibility(){this.ancienPasswordHidden=!this.ancienPasswordHidden}onAncienInput(n){this.isAncienPasswordNotEmpty=this.changePassForm.get("oldPassword").value.trim().length>0}onInput(n){this.isPasswordNotEmpty=this.nouveauPassword.value.trim().length>0}onConfirmationInput(n){this.isPasswordConfirmationEmpty=this.confirmNouveauPassword.value.trim().length>0}changePassword(){this.utilisateurService.changePassword(this.changePassForm.value).pipe((0,oe.W)(n=>(this.store.dispatch(new T.Actions.ShowSnackBar("IncorrectPassword"===n.message?"Ancien mot de passe erron\xE9, veuillez r\xE9essayer":"Le mot de passe n'a pas \xE9t\xE9 chang\xE9",T.EnumSnackBarType.Echec)),(0,K.of)(n)))).subscribe(n=>{"PasswordChange"===n.message&&(this.store.dispatch(new T.Actions.ShowSnackBar("Le mot de passe a \xE9t\xE9 chang\xE9 avec succ\xE8s")),this.route.navigate(["utilisateur","profil",{outlets:{profil:"accueil"}}]))})}}return(t=_).\u0275fac=function(n){return new(n||t)(e.rXU(l.ze),e.rXU(ce.$),e.rXU(j.il),e.rXU(V.Ix),e.rXU(ge.W))},t.\u0275cmp=e.VBU({type:t,selectors:[["app-edit-password-content"]],decls:35,vars:15,consts:()=>{let o,n,i,s,r,c,d,a,u;return o="Modifier mon mot de passe",n="Ancien mot de passe",i="Nouveau mot de passe",s="Confirmer le nouveau mot de passe",r="Enregistrer",c=" Champ obligatoire ",d=" Champ obligatoire ",a=" Champ obligatoire ",u=" Les mots de passe saisis ne sont pas identiques ",[o,n,i,s,r,c,d,a,u,[1,"form-container","user-form-container","padding-form-mobile"],[3,"formGroup"],[1,"form-section-title"],[1,"edit-user-form-content"],[1,"password-container"],["matInput","","formControlName","oldPassword","autocomplete","current-password",3,"input","type"],["class","password-toggle","matSuffix","","aria-label","Toggle password visibility",3,"matTooltip","click",4,"ngIf"],[4,"ngIf"],["matInput","","minlength","8","formControlName","nvxPassword","autocomplete","new-password",3,"input","type"],["class","password-toggle","aria-label","Toggle password visibility",3,"matTooltip","click",4,"ngIf"],[3,"passwordFormControl"],["class","spacing-password-hint",4,"ngIf"],["matInput","","formControlName","confirmNvxPassword","autocomplete","new-password",3,"input","errorStateMatcher","type"],[1,"edit-form-actions"],["type","submit","hidden",""],["expand","block",1,"ion-custom-button-standard","ion-cu
1stom-button-full",3,"click","disabled"],["matSuffix","","aria-label","Toggle password visibility",1,"password-toggle",3,"click","matTooltip"],[3,"ngClass"],["aria-label","Toggle password visibility",1,"password-toggle",3,"click","matTooltip"],[1,"spacing-password-hint"]]},template:function(n,i){1&n&&(e.j41(0,"div",9)(1,"form",10)(2,"h2",11),e.pXf(3,0),e.k0s(),e.j41(4,"div",12)(5,"mat-form-field")(6,"mat-label"),e.pXf(7,1),e.k0s(),e.j41(8,"div",13)(9,"input",14),e.bIt("input",function(r){return i.onAncienInput(r)}),e.k0s(),e.DNE(10,xs,2,2,"mat-icon-button",15),e.k0s(),e.DNE(11,js,2,0,"mat-error",16),e.k0s()(),e.j41(12,"div",12)(13,"mat-form-field")(14,"mat-label"),e.pXf(15,2),e.k0s(),e.j41(16,"div",13)(17,"input",17),e.bIt("input",function(r){return i.onInput(r)}),e.k0s(),e.DNE(18,ws,2,2,"mat-icon-button",18),e.k0s(),e.DNE(19,Vs,2,0,"mat-error",16),e.j41(20,"mat-hint"),e.nrm(21,"vplus-password-hint",19),e.k0s()(),e.DNE(22,zs,1,0,"div",20),e.j41(23,"mat-form-field")(24,"mat-label"),e.pXf(25,3),e.k0s(),e.j41(26,"div",13)(27,"input",21),e.bIt("input",function(r){return i.onConfirmationInput(r)}),e.k0s(),e.DNE(28,Hs,2,2,"mat-icon-button",15),e.k0s(),e.DNE(29,Ys,2,0,"mat-error",16)(30,Bs,2,0,"mat-error",16),e.k0s()(),e.j41(31,"div",22),e.nrm(32,"input",23),e.j41(33,"ion-button",24),e.bIt("click",function(){return i.changePassword()}),e.pXf(34,4),e.k0s()()()()),2&n&&(e.R7$(),e.Y8G("formGroup",i.changePassForm),e.R7$(8),e.Y8G("type",i.ancienPasswordHidden?"password":"text"),e.R7$(),e.Y8G("ngIf",i.isAncienPasswordNotEmpty),e.R7$(),e.Y8G("ngIf",i.changePassForm.controls.oldPassword.touched&&(null==i.changePassForm.controls.oldPassword.errors?null:i.changePassForm.controls.oldPassword.errors.required)),e.R7$(6),e.Y8G("type",i.passwordHidden?"password":"text"),e.R7$(),e.Y8G("ngIf",i.isPasswordNotEmpty),e.R7$(),e.Y8G("ngIf",i.nouveauPassword.touched&&(null==i.nouveauPassword.errors?null:i.nouveauPassword.errors.required)),e.R7$(2),e.Y8G("passwordFormControl",i.nouveauPassword),e.R7$(),e.Y8G("ngIf",i.nouveauPassword.value),e.R7$(5),e.Y8G("errorStateMatcher",i.matcher)("type",i.passwordConfirmationHidden?"password":"text"),e.R7$(),e.Y8G("ngIf",i.isPasswordConfirmationEmpty),e.R7$(),e.Y8G("ngIf",i.confirmNouveauPassword.touched&&(null==i.confirmNouveauPassword.errors?null:i.confirmNouveauPassword.errors.required)),e.R7$(),e.Y8G("ngIf",i.confirmNouveauPassword.touched&&i.changePassForm.hasError("notSame")&&!(null!=i.confirmNouveauPassword.errors&&i.confirmNouveauPassword.errors.required)),e.R7$(3),e.Y8G("disabled",!i.changePassForm.valid))},dependencies:[Ce.fg,R.rl,R.nJ,R.MV,R.TL,R.yw,Ie.oV,A.YU,A.bT,l.qT,l.me,l.BC,l.cb,l.xh,l.j4,l.JD,$.Jm,Yn],styles:[".spacing-password-hint[_ngcontent-%COMP%]{margin-bottom:160px}"]}),_})();const Ws=t=>({"filter-searche-global-active":t});let Js=(()=>{var t;class _{constructor(n){this.store=n,this.selectIsSearchHeaderVisible$=this.store.select(T.selectIsSearchHeaderVisible)}onContentClick(){this.store.dispatch(T.Actions.setIsSearchHeaderVisible({payload:!1}))}}return(t=_).\u0275fac=function(n){return new(n||t)(e.rXU(j.il))},t.\u0275cmp=e.VBU({type:t,selectors:[["app-edit-password"]],decls:4,vars:9,consts:[[1,"hide-desktop","mobile-header",3,"defaultHref","headerTitle","returnButtonType","menuId"],["id","modifierPassword",3,"click","ngClass"]],template:function(n,i){1&n&&(e.nrm(0,"vplus-mobile-header",0),e.j41(1,"ion-content",1),e.nI1(2,"async"),e.bIt("click",function(){return i.onContentClick()}),e.nrm(3,"app-edit-password-content"),e.k0s()),2&n&&(e.Y8G("defaultHref","utilisateur/profil")("headerTitle","")("returnButtonType","back-button")("menuId","modifierPassword"),e.R7$(),e.Y8G("ngClass",e.eq3(7,Ws,e.bMT(2,5,i.selectIsSearchHeaderVisible$))))},dependencies:[A.YU,de.f,$.W9,Tt,A.Jj],encapsulation:2}),_})();function Qs(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,7),e.k0s())}function Ks(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,8),e.k0s())}function Zs(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,9),e.k0s())}function er(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,10),e.k0s())}function nr(t,_){if(1&t){const o=e.RV6();e.qex(0),e.j41(1,"h2",23),e.pXf(2,1),e.k0s(),e.j41(3,"p"),e.pXf(4,2),e.k0s(),e.j41(5,"p")(6,"mat-form-field",24)(7,"mat-label"),e.pXf(8,3),e.k0s(),e.j41(9,"input",25),e.bIt("keyup",function(){e.eBV(o);const i=e.XpG();
1return e.Njj(i.onKeyUpNewCourriel())}),e.k0s(),e.DNE(10,Qs,2,0,"mat-error",26)(11,Ks,2,0,"mat-error",26)(12,Zs,2,0,"mat-error",26),e.k0s()(),e.j41(13,"p")(14,"mat-form-field",24)(15,"mat-label"),e.pXf(16,4),e.k0s(),e.nrm(17,"input",27),e.DNE(18,er,2,0,"mat-error",26),e.k0s()(),e.j41(19,"div",28)(20,"ion-button",29),e.pXf(21,5),e.k0s(),e.j41(22,"ion-button",30),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.sendCodeVerification())}),e.pXf(23,6),e.k0s()(),e.bVm()}if(2&t){let o;const n=e.XpG();e.R7$(9),e.Y8G("id",n.ids.newCourriel),e.R7$(),e.Y8G("ngIf",n.form.get("newCourriel").touched&&(null==(o=n.form.get("newCourriel").errors)?null:o.required)),e.R7$(),e.Y8G("ngIf",n.form.get("newCourriel").touched&&n.form.get("newCourriel").hasError("invalidEmail")),e.R7$(),e.Y8G("ngIf",n.form.get("newCourriel").touched&&n.form.get("newCourriel").hasError("courrielUtilise")),e.R7$(5),e.Y8G("id",n.ids.confirmNewCourriel),e.R7$(),e.Y8G("ngIf",n.form.get("confirmNewCourriel").touched&&n.form.get("confirmNewCourriel").invalid),e.R7$(2),e.Y8G("mat-dialog-close",!1)}}function tr(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,18),e.k0s())}function or(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,19),e.k0s())}function ir(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,20),e.k0s())}function _r(t,_){if(1&t){const o=e.RV6();e.j41(0,"h2",23),e.pXf(1,11),e.k0s(),e.j41(2,"p")(3,"span"),e.pXf(4,12),e.k0s(),e.j41(5,"b"),e.EFF(6),e.k0s(),e.j41(7,"span"),e.pXf(8,13),e.k0s()(),e.j41(9,"p")(10,"span",31),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.resendCodeVerification())}),e.pXf(11,14),e.k0s()(),e.j41(12,"p")(13,"mat-form-field",32)(14,"mat-label"),e.pXf(15,15),e.k0s(),e.nrm(16,"input",33),e.DNE(17,tr,2,0,"mat-error",26)(18,or,2,0,"mat-error",26)(19,ir,2,0,"mat-error",26),e.k0s()(),e.j41(20,"div",34)(21,"ion-button",35),e.pXf(22,16),e.k0s(),e.j41(23,"ion-button",36),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.changeCourriel())}),e.pXf(24,17),e.k0s()()}if(2&t){let o,n,i;const s=e.XpG();e.R7$(6),e.SpI(" ",s.form.get("newCourriel").value," "),e.R7$(10),e.Y8G("id",s.ids.confirmNewCourriel),e.R7$(),e.Y8G("ngIf",null==(o=s.form.get("codeVerification").errors)?null:o.required),e.R7$(),e.Y8G("ngIf",null==(n=s.form.get("codeVerification").errors)?null:n.minlength),e.R7$(),e.Y8G("ngIf",null==(i=s.form.get("codeVerification").errors)?null:i.invalid),e.R7$(2),e.Y8G("mat-dialog-close",!1)}}let sr=(()=>{var t;class _{constructor(n,i,s,r,c,d,a){this.fb=n,this.dialogRef=i,this.store=s,this.action$=r,this.router=c,this.asyncCourrielValidators=d,this.data=a,this.subs=new Pn.yU,this.isCodeVerificationSent=!1,this.ids={newCourriel:(0,w.SiN)(),confirmNewCourriel:(0,w.SiN)(),codeVerification:(0,w.SiN)()}}ngOnInit(){this.form=this.fb.group({newCourriel:[null,[l.k0.required,(0,w.Bjz)()],[this.asyncCourrielValidators.validateCourrielCitoyen(this.data.perId)]],confirmNewCourriel:[null,[l.k0.required,Is("newCourriel")]],codeVerification:[null,[l.k0.required,l.k0.minLength(8)]]}),this.subs.add(this.action$.pipe((0,M.gp)(Y.En.sendCodeChangementCourrielSucess)).subscribe(()=>{this.isCodeVerificationSent=!0})),this.subs.add(this.action$.pipe((0,M.gp)(Y.En.updateCourrielSuccess)).subscribe(()=>{this.dialogRef.close(this.form.get("newCourriel").value),this.store.dispatch(new T.Actions.Logout),this.store.dispatch(T.Actions.setIsFirstLoggedIn({payload:!1})),this.router.navigate(["utilisateur","connexion"])})),this.subs.add(this.action$.pipe((0,M.gp)(Y.En.updateCourrielInvalid)).subscribe(()=>{this.form.get("codeVerification").setErrors({invalid:!0})}))}onKeyUpNewCourriel(){this.form.get("confirmNewCourriel").updateValueAndValidity()}sendCodeVerification(){if(this.form.get("newCourriel").invalid||this.form.get("confirmNewCourriel").invalid)return this.form.get("newCourriel").markAllAsTouched(),void this.form.get("confirmNewCourriel").markAllAsTouched();this.store.dispatch(Y.En.sendCodeChangementCourriel({courriel:this.form.get("newCourriel").value}))}resendCodeVerification(){this.store.dispatch(Y.En.sendCodeChangementCourriel({courriel:this.form.get("newCourriel").value}))}changeCourriel(){if(this.form.get("codeVerification").invalid)return void this.form.markAllAsTouched();const n=this.form.get("newCourriel").value,i=new m.ow(this.data.savedCurrentUser.prenom+" "+this.data.savedCurrentUser.nom,p.zA.Citoyen),s=[];this.data.savedCurrentUser.courriel!==n&&i.details.push(new m.TM(p.Wp.ModificationRenseignementsPersonnels,[{label:{fr:"Courriel",en:"Email"},value:{label:this.data.savedCurrentUser.courriel,value:this.data.savedCurrentUser.courriel}}],[{label:{fr:"Courriel",en:"Email"},value:{label:n,value:n}}])),s.push(i),this.store.dispatch(Y.En.updateCourriel({payload:{courriel:n,codeVerification:this.form.get("codeVerification").value,
1journalEvenement:s}}))}}return(t=_).\u0275fac=function(n){return new(n||t)(e.rXU(l.ze),e.rXU(ee.CP),e.rXU(j.il),e.rXU(M.En),e.rXU(V.Ix),e.rXU(vn.H),e.rXU(ee.Vh))},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-changement-courriel-dialog"]],decls:5,vars:3,consts:()=>{let o,n,i,s,r,c,d,a,u,S,E,P,O,f,I,b,N,y,G,B;return o="Modification de votre courriel",n=" La modification de votre adresse courriel entrainera la modification de votre identifiant pour vous connecter au Portail Citoyen. Un courriel contenant un code de v\xE9rification valide pour une dur\xE9e de 30 minutes sera envoy\xE9 \xE0 votre nouvelle adresse afin de la v\xE9rifier avant de proc\xE9der au changement. ",i="Nouveau courriel",s="Confirmer le nouveau courriel",r="Annuler",c=" Envoyer le code ",d=" Champ obligatoire ",a=" Courriel invalide ",u=" Adresse courriel d\xE9j\xE0 utilis\xE9e par un compte citoyen ",S=" Les courriels saisis ne sont pas identiques ",E="Modification de votre courriel",P="Entrer le code de v\xE9rification qui vous a \xE9t\xE9 envoy\xE9 \xE0",O=" pour confirmer la modification de votre adresse : ",f="Envoyer \xE0 nouveau",I="Code de v\xE9rification",b="Annuler",N=" Confirmer ",y="Le code de v\xE9rification est obligatoire ",G="Le code de v\xE9rification doit comporter 8 caract\xE8res ",B="Le code de v\xE9rification est invalide ",[["codeVerificationSent",""],o,n,i,s,r,c,d,a,u,S,E,P,O,f,I,b,N,y,G,B,[3,"formGroup"],[4,"ngIf","ngIfElse"],[1,"form-section-title"],[1,"full-width"],["matInput","","type","email","formControlName","newCourriel","autocomplete","disabled",3,"keyup","id"],[4,"ngIf"],["matInput","","type","email","formControlName","confirmNewCourriel","autocomplete","disabled",3,"id"],["mat-dialog-actions","",1,"dialog-buttons-section","envoyer-code-container"],["fill","outline","tabindex","1",1,"ion-custom-button-outline","ion-cu
1stom-button-standard","button-margin-right","button-full-width",3,"mat-dialog-close"],[1,"ion-custom-button-standard","ion-custom-button-full","button-full-width",3,"click"],[1,"resendCodeVerification",3,"click"],[1,"full-width","margin-bottom-1"],["autocomplete","disabled","matInput","","type","text","formControlName","codeVerification","maxlength","8",3,"id"],["mat-dialog-actions","",1,"dialog-buttons-section"],["fill","outline","tabindex","1",1,"ion-custom-button-outline","ion-custom-button-standard","margin-right-1",3,"mat-dialog-close"],[1,"ion-custom-button-standard","ion-custom-button-full",3,"click"]]},template:function(n,i){if(1&n&&(e.j41(0,"form",21),e.DNE(1,nr,24,7,"ng-container",22)(2,_r,25,6,"ng-template",null,0,e.C5r),e.nrm(4,"br"),e.k0s()),2&n){const s=e.sdS(3);e.Y8G("formGroup",i.form),e.R7$(),e.Y8G("ngIf",!i.isCodeVerificationSent)("ngIfElse",s)}},dependencies:[Ce.fg,R.rl,R.nJ,R.TL,ee.tx,ee.E7,A.bT,l.qT,l.me,l.BC,l.cb,l.tU,l.j4,l.JD,$.Jm],styles:[".resendCodeVerification[_ngcontent-%COMP%]{color:var(--ion-color-primary, #3880ff)}.resendCodeVerification[_ngcontent-%COMP%]:hover{cursor:pointer}.envoyer-code-container[_ngcontent-%COMP%]{gap:9px}@media (max-width: 600px){.envoyer-code-container[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse;width:inherit}}@media (max-width: 600px){.envoyer-code-container[_ngcontent-%COMP%] .button-full-width[_ngcontent-%COMP%]{width:100%}}@media (min-width: 600px){.envoyer-code-container[_ngcontent-%COMP%] .button-margin-right[_ngcontent-%COMP%]{margin-right:12px}}"]}),_})();const rr=["phoneNumber"],ar=["phoneNumberType"],Bn=(t,_)=>_.value;function lr(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,8),e.k0s())}function cr(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,9),e.k0s())}function dr(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,10),e.k0s())}function ur(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,11),e.k0s())}function Cr(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,12),e.k0s())}function Er(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,13),e.k0s())}function Tr(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,17),e.k0s())}function Sr(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,18),e.k0s())}function pr(t,_){if(1&t){const o=e.RV6();e.j41(0,"mat-hint",49),e.nrm(1,"i",53),e.EFF(2,"\xa0"),e.j41(3,"span"),e.pXf(4,19),e.k0s(),e.EFF(5,"\xa0-\xa0"),e.j41(6,"a",54),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.sendSMSConfirmation())}),e.pXf(7,20),e.k0s()()}}function mr(t,_){1&t&&(e.j41(0,"mat-hint",50),e.nrm(1,"i",55),e.EFF(2,"\xa0"),e.j41(3,"span"),e.pXf(4,21),e.k0s()())}function Nr(t,_){if(1&t&&(e.j41(0,"mat-option",52),e.EFF(1),e.k0s()),2&t){const o=_.$implicit;e.Y8G("value",o.value),e.R7$(),e.SpI(" ",o.label," ")}}function fr(t,_){if(1&t&&(e.j41(0,"div",42)(1,"mat-form-field")(2,"mat-label"),e.pXf(3,14),e.k0s(),e.nrm(4,"input",48,0),e.DNE(6,Tr,2,0,"mat-error")(7,Sr,2,0,"mat-error")(8,pr,8,0,"mat-hint",49)(9,mr,5,0,"mat-hint",50),e.k0s(),e.j41(10,"mat-form-field")(11,"mat-label"),e.pXf(12,15),e.k0s(),e.j41(13,"mat-select",51,1),e.Z7z(15,Nr,2,2,"mat-option",52,Bn),e.k0s(),e.j41(17,"mat-error"),e.pXf(18,16),e.k0s()()()),2&t){let o,n;const i=e.XpG();e.R7$(4),e.Y8G("required",i.citoyenForm.isPhoneRequired||(null==(o=i.editForm.get("typTelId").value)?null:o.length)>0)("imask",i.appConfig.appConfig.telMaskObjet)("unmask",!0),e.R7$(2),e.vxM(6,i.editForm.controls.telephone.touched&&null!=i.editForm.controls.telephone.errors&&i.editForm.controls.telephone.errors.required?6:-1),e.R7$(),e.vxM(7,i.editForm.controls.telephone.touched&&null!=i.editForm.controls.telephone.errors&&i.editForm.controls.telephone.errors.pattern?7:-1),e.R7$(),e.vxM(8,i.appConfig.appConfig.useShortCode&&i.editForm.get("telephone").value&&i.savedCurrentUser.hasAbonnementTexto&&i.telIsSameAsSaved&&!i.savedCurrentUser.isShortCodeVerified?8:-1),e.R7$(),e.vxM(9,i.appConfig.appConfig.useShortCode&&i.savedCurrentUser.hasAbonnementTexto&&i.telIsSameAsSaved&&i.savedCurrentUser.isShortCodeVerified?9:-1),e.R7$(4),e.Y8G("required",(null==(n=i.editForm.get("telephone").value)?null:n.length)>0&&i.editForm&&(null==(n=i.editForm.get("telephone").value)?null:n.length)>0),e.R7$(2),e.Dyx(i.EnumTypeTelephoneArray)}}function Pr(t,_){if(1&t&&(e.j41(0,"mat-option",52),e.EFF(1),e.k0s()),2&t){const o=_.$implicit;e.Y8G("value",o.value),e.R7$(),e.SpI(" ",o.label," ")}}function Or(t,_){if(1&t&&(e.j41(0,"mat-form-field")(1,"mat-label"),e.pXf(2,22),e.k0s(),e.j41(3,"mat-select",56),e.Z7z(4,Pr,2,2,"mat-option",52,Bn),e.k0s(),e.j41(6,"mat-error"),e.pXf(7,23),e.k0s()()),2&t){const o=e.XpG();e.R7$(3),e.Y8G("required",o.citoyenForm.isSexeRequired),e.R7$(),e.Dyx(o.sexeArray)}}function Mr(t,_){if(1&t&&(e.j41(0,"mat-option",52),e.EFF(1),e.k0s()),2&t){const o=_.$implicit;e.Y8G("value",o.value),e.R7$(),e.SpI(" ",o.label," ")}}function Ar(t,_){if(1&t&&(e.j41(0,"mat-form-field")(1,"mat-label"),e.pXf(2,24),e.k0s(),e.j41(3,"mat-select",57),e.Z7z(4,Mr,2,2,"mat-option",52,Bn),e.k0s(),e.j41(6,"mat-error"),e.pXf(7,25),e.k0s()()),2&t){const o=e.XpG();e.R7$(3),e.Y8G("required",o.citoyenForm.isLangComRequired),e.R7$(),e.Dyx(o.langComArray)}}function gr(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,28),e.k0s())}function Ir(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,29),e.k0s())}function hr(t,_){if(1&t&&(e.j41(0,"div",43)(1,"mat-form-field",58)(2,"mat-label"),e.pXf(3,26),e.k0s(),e.nrm(4,"input",59),e.j41(5,"mat-hint",60),e.pXf(6,27),e.k0s(),e.nrm(7,"mat-datepicker-toggle",61)(8,"mat-datepicker",null,2),e.k0s(),e.DNE(10,gr,2,0,"mat-error")(11,Ir,2,0,"mat-error"),e.k0s()),2&t){const o=e.sdS(9),n=e.XpG();e.R7$(),e.Y8G("floatLabel","Auto"),e.R7$(3),e.Y8G("required",n.citoyenForm.isDateNaissanceRequired)("matDatepicker",o)("max",n.today),e.R7$(3),e.Y8G("for",o),e.R7$(3),e.vxM(10,n.editForm.controls.dateNaissance.touched&&null!=n.editForm.controls.dateNaissance.errors&&n.editForm.controls.dateNaissance.errors.required?10:-1),e.R7$(),e.vxM(11,n.editForm.controls.dateNaissance.hasError("invalidAgeMinimal")?11:-1)}}function Rr(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",67)(1,"button",68),e.bIt("click",function(){e.eBV(o);const i=e.XpG().$index,s=e.XpG(2);return e.Njj(s.deleteAddress(i))}),e.nrm(2,"i",69),e.k0s()()}}function Lr(t,_){if(1&t){const o=e.RV6();e.j41(0,"div")(1,"div",64)(2,"div",65)(3,"vplus-adresse-autocomplete",66),e.bIt("adresseChanged",function(i){const s=e.eBV(o).$index,r=e.XpG(2);return e.Njj(r.onAdresseChanged(i,s))}),e.k0s()(),e.DNE(4,Rr,3,0,"div",67),e.k0s()()}if(2&t){const o=_.$implicit,n=_.$index,i=e.XpG(2);e.R7$(3),e.Y8G("placeholder",0===n?i.adressePostaleString:i.adresseString)("isRequired",i.citoyenForm.isAddressRequired&&0===n)("adresseControl",o.controls.adresse)("nomControl",i.editForm.get("nom"))("prenomControl",i.editForm.get("prenom"))("courrielControl",i.editForm.get("courriel"))("telephoneControl",i.editForm.get("telephone"))("noAppartementControl",o.controls.noAppartement)("displayAddressNotFound",!1)("ngClass",i.adressesFormArray.length>1?"full-width-adresse":"width-adresse")("adresseVille",o.controls.adrVille.value),e.R7$(),e.vxM(4,i.adressesFormArray.length>1?4:-1)}}function Ur(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",63)(1,"button",70),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.addAddress())}),e.nrm(2,"i",71),e.k0s(),e.j41(3,"span",72),e.pXf(4,31),e.k0s()()}}function br(t,_){if(1&t&&(e.j41(0,"div",44)(1,"h4",62)(2,"span"),e.pXf(3,30),e.k0s()(),e.Z7z(4,Lr,5,12,"div",null,e.Vm6),e.DNE(6,Ur,5,0,"div",63),e.k0s()),2&t){const o=e.XpG();e.R7$(4),e.Dyx(o.adressesFormArray.controls),e.R7$(2),e.vxM(6,o.adressesFormArray.length<3?6:-1)}}let St=(()=>{var t;class _{constructor(){this.fb=(0,e.WQX)(l.ok),this.store=(0,e.WQX)(j.il),this.dialog=(0,e.WQX)(ee.bZ),this.appConfig=(0,e.WQX)(te.o),this.appMetaTags=(0,e.WQX)(ge.W),this.actions$=(0,e.WQX)(M.En),this.destroyRef=(0,e.WQX)(e.abz),this.telIsSameAsSaved=!0,this.newEmplacements=[],this.sexeArray=Object.values(m.dz),this.langComArray=Object.values(m.DP),this.EnumTypeTelephoneArray=Object.values(m.vR),this.show
1FileLoader=!1,this.removeFileSubject=new ze.B,this.today=new Date,this.EnumSexeArray=Object.values(m.dz),this.EnumLangComArray=Object.values(m.DP),this.adressePostaleString="Adresse postale",this.adresseString="Adresse",this.emplacements=[],this.citoyenForm=this.appConfig.appConfig.citoyenForm,this.today.setDate(this.today.getDate())}ngOnInit(){this.appMetaTags.updateMetaTags("Renseignements personnels"),this.isHampstead="hampstead"===this.appConfig.appConfig.appNom;const n=history.state.eventData;n&&this.checkPhoneNumber(n),this.initEditForm(),this.store.select(T.selectCurrentUser).pipe((0,me.s)(1)).subscribe(i=>{var s;this.savedCurrentUser=i,this.editForm.patchValue(null!=i?i:{}),0===(null===(s=i.adresses)||void 0===s?void 0:s.length)&&this.addAddress()})}initEditForm(){this.editForm=this.fb.group({id:{value:null,disabled:!1},nom:[null,[l.k0.required,(0,w.zl_)()]],prenom:[null,[l.k0.required,(0,w.zl_)()]],courriel:{value:null,disabled:!0},typTelId:[null,this.getTypePhoneValidators()],telephone:[null,this.getPhoneValidators()],adresses:this.fb.array([]),dateNaissance:[null,(0,w.H04)()],sexe:null,langCom:null}),this.adressesFormArray=this.editForm.controls.adresses,this.adressesFormArray.setDefaultControlBuilder(this.createAdresseFormControl.bind(this)),this.addAddress(),this.editForm.get("telephone").valueChanges.pipe((0,g.pQ)(this.destroyRef)).subscribe(n=>{this.telIsSameAsSaved=n===this.savedCurrentUser.telephone,""===(null==n?void 0:n.trim())&&!this.citoyenForm.isPhoneRequired&&(this.editForm.get("typTelId").patchValue(null),this.editForm.get("typTelId").clearValidators()),this.editForm.get("typTelId").updateValueAndValidity({emitEvent:!1,onlySelf:!0})}),this.editForm.get("typTelId").valueChanges.pipe((0,g.pQ)(this.destroyRef)).subscribe(n=>{this.refreshPhoneValidators(n)})}createAdresseFormControl(){return new l.gE({id:new l.MJ((0,w.SiN)()),adresse:new l.MJ(null),noAppartement:new l.MJ(null),adresseFormatte:new l.MJ(null),adrVille:new l.MJ(null)})}addAddress(){this.adressesFormArray.length<3&&this.adressesFormArray.push(this.createAdresseFormControl())}deleteAddress(n=0){this.adressesFormArray.removeAt(n)}getPhoneValidators(n=null){if(!this.editForm)return;const i=null!=n?n:this.editForm.get("typTelId").value;return this.citoyenForm.isPhoneRequired||this.editForm&&(null==i?void 0:i.length)>0?[l.k0.required,l.k0.pattern(this.appConfig.appConfig.telPattern)]:[l.k0.pattern(this.appConfig.appConfig.telPattern)]}getTypePhoneValidators(){var n,i;return this.editForm&&(null===(n=this.editForm.get("telephone").value)||void 0===n?void 0:n.length)>0&&(null===(i=this.editForm.get("telephone").value)||void 0===i?void 0:i.length)>0?[l.k0.required]:[]}refreshPhoneValidators(n=null){this.editForm.get("telephone").clearValidators(),this.editForm.get("telephone").setValidators(this.getPhoneValidators(n)),this.editForm.get("telephone").updateValueAndValidity({emitEvent:!1,onlySelf:!0})}modifier(){if(this.editForm.markAllAsTouched(),this.editForm.invalid)return void this.store.dispatch(Y.En.showSnackBarErrorUserCreateOrEdit({renseignementPersoInvalid:!0}));const n=this.editForm.value;n.courriel=this.savedCurrentUser.courriel;const i=this.getjournalChanges();let s;s=this.appConfig.appConfig.useShortCode&&n.telephone&&this.savedCurrentUser.hasAbonnementTexto&&!this.telIsSameAsSaved?this.dialog.open(tt,{data:{ville:this.appConfig.appConfig.munNom},width:p.Uq.Large,disableClose:!0}).afterClosed():(0,K.of)({sendSmsVerification:!1});let r=this.newEmplacements;this.actions$.pipe((0,M.gp)(D.UPDATEUSERSUCCESS),(0,Q.T)(c=>c.payload),(0,g.pQ)(this.destroyRef)).subscribe(c=>{this.savedCurrentUser.isShortCodeVerified&&this.savedCurrentUser.telephone!==c.telephone&&(this.savedCurrentUser.isShortCodeVerified=!1),this.savedCurrentUser={...this.savedCurrentUser,...c},this.telIsSameAsSaved=!0,this.editForm.markAsPristine()}),s.pipe((0,kn.c)(this.adressesFormArray.value.length===this.emplacements.length&&this.adressesFormArray.value.every((c,d)=>c.noAppartement===this.emplacements[d].adrNoApp)?0:1e3),(0,g.pQ)(this.destroyRef)).subscribe(c=>
1{c&&(this.emplacements.forEach((a,u)=>{var S,E,P;this.adressesFormArray.value[u]&&(null===(S=this.adressesFormArray.at(u))||void 0===S||S.get("adrVille").patchValue(null==a?void 0:a.adrVille),null!=a&&a.isNew&&(a.adrNoApp=(null===(E=this.adressesFormArray.value[u])||void 0===E?void 0:E.noAppartement)!==(null==a?void 0:a.adrNoApp)?null===(P=this.adressesFormArray.value[u])||void 0===P?void 0:P.noAppartement:null==a?void 0:a.adrNoApp,a.id=(0,w.SiN)(),a.adrId=(0,w.SiN)(),this.newEmplacements.splice(u,1,(0,Ne.cloneDeep)(a))))}),r=this.newEmplacements,this.store.dispatch(D.updateProfile({payload:{user:n,newEmplacements:r,journalEvenement:i,sendSmsVerification:c.sendSmsVerification,shouldUpdateAddress:this.citoyenForm.hasAddress}})))})}confirmSuppression(){this.dialog.open(_n,{data:{secureSup:!0},width:p.Uq.Small}).afterClosed().pipe((0,g.pQ)(this.destroyRef)).subscribe(i=>{i&&this.store.dispatch(Y.En.deleteCompte())})}onAdresseChanged(n,i){n&&this.emplacements.splice(i,1,n),this.adressesFormArray.at(i).get("adresseFormatte").patchValue(null==n?void 0:n.adresse),this.adressesFormArray.at(i).get("adrVille").patchValue(null==n?void 0:n.adrVille),this.editForm.markAsDirty()}sendSMSConfirmation(){this.store.dispatch(Y.En.sendSmsVerification())}onInputBlur(n){var i;const s=null===(i=n.value)||void 0===i?void 0:i.trim();n.patchValue(s),s?n.updateValueAndValidity():n.setErrors({required:!0})}editCourriel(){this.dialog.open(sr,{data:{perId:this.savedCurrentUser.perId,savedCurrentUser:this.savedCurrentUser},width:p.Uq.Large}).afterClosed().pipe((0,g.pQ)(this.destroyRef)).subscribe(i=>{i&&(this.savedCurrentUser.courriel=i,this.editForm.get("courriel").patchValue(i))})}getjournalChanges(){var n,i,s,r,c,d,a;const u=new m.ow(this.savedCurrentUser.prenom+" "+this.savedCurrentUser.nom,p.zA.Citoyen),S=[],E=this.editForm.value,P=[];var O,f,I,b;this.savedCurrentUser.prenom!==E.prenom&&P.push({oldValue:{label:{fr:"Pr\xe9nom",en:"First name"},value:{label:this.savedCurrentUser.prenom,value:this.savedCurrentUser.prenom}},newValue:{label:{fr:"Pr\xe9nom",en:"First name"},value:{label:E.prenom,value:E.prenom}}}),this.savedCurrentUser.nom!==E.nom&&P.push({oldValue:{label:{fr:"Nom",en:"Last name"},value:{label:this.savedCurrentUser.nom,value:this.savedCurrentUser.nom}},newValue:{label:{fr:"Nom",en:"Last name"},value:{label:E.nom,value:E.nom}}}),this.savedCurrentUser.sexe!==E.sexe&&P.push({oldValue:{label:{fr:"Sexe",en:"Gender"},value:{label:null===(O=this.EnumSexeArray.find(J=>J.value===this.savedCurrentUser.sexe))||void 0===O?void 0:O.label,value:this.savedCurrentUser.sexe}},newValue:{label:{fr:"Sexe",en:"Gender"},value:{label:null===(f=this.EnumSexeArray.find(J=>J.value===E.sexe))||void 0===f?void 0:f.label,value:E.sexe}}}),this.savedCurrentUser.langCom!==E.langCom&&P.push({oldValue:{label:{fr:"Langue de pr\xe9f\xe9rence",en:"Language preference"},value:{label:null===(I=this.EnumLangComArray.find(J=>J.value===this.savedCurrentUser.langCom))||void 0===I?void 0:I.label,value:this.savedCurrentUser.langCom}},newValue:{label:{fr:"Langue de pr\xe9f\xe9rence",en:"Language preference"},value:{label:null===(b=this.EnumLangComArray.find(J=>J.value===E.langCom))||void 0===b?void 0:b.label,value:E.langCom}}});const N=qe()(null!==(n=this.savedCurrentUser.dateNaissance)&&void 0!==n?n:-1),y=qe()(null!==(i=E.dateNaissance)&&void 0!==i?i:-1);if((null==N?void 0:N.unix())!==y.unix()&&P.push({oldValue:{label:{fr:"Date de naissance",en:"Date of birth"},value:{label:this.savedCurrentUser.dateNaissance?N.format("DD/MM/YYYY"):null,value:this.savedCurrentUser.dateNaissance}},newValue:{label:{fr:"Date de naissance",en:"Date of birth"},value:{label:E.dateNaissance?y.format("DD/MM/YYYY"):null,value:E.dateNaissance}}}),this.savedCurrentUser.telephone!==E.telephone){const J=Xn.Px(this.appConfig.appConfig.telMaskObjet);P.push({oldValue:{label:{fr:"Num\xe9ro principal",en:"Main phone"},value:{label:this.savedCurrentUser.telephone?J.resolve(this.savedCurrentUser.telephone):null,value:this.savedCurrentUser.telephone}},newValue:{label:{fr:"Num\xe9ro principal",en:"Main phone"}
1,value:{label:E.telephone?J.resolve(E.telephone):null,value:E.telephone}}})}var L,X,W,F,_e,se,h,Z;(this.savedCurrentUser.adresses.length>0&&null!==(s=this.savedCurrentUser.adresses)&&void 0!==s&&null!==(s=s[0])&&void 0!==s&&s.adresse?He(this.savedCurrentUser.adresses):null)!==(E.adresses.length>0&&null!==(r=E.adresses)&&void 0!==r&&null!==(r=r[0])&&void 0!==r&&r.adresse?He(E.adresses):null)&&P.push({oldValue:{label:{fr:"Adresse",en:"Address"},value:{label:null!==(L=null===(X=this.savedCurrentUser.adresses)||void 0===X?void 0:X.map(J=>{var le;return null===(le=J.adresseFormatte)||void 0===le?void 0:le.replace(/, (APP )?\d+$/,"")}))&&void 0!==L?L:null,value:this.savedCurrentUser.adresses}},newValue:{label:{fr:"Adresse",en:"Address"},value:{label:null!==(W=null===(F=E.adresses)||void 0===F?void 0:F.map(J=>{var le;return null===(le=J.adresseFormatte)||void 0===le?void 0:le.replace(/, (APP )?\d+$/,"")}))&&void 0!==W?W:null,value:E.adresses}}}),(this.savedCurrentUser.adresses.length>0&&null!==(c=this.savedCurrentUser.adresses)&&void 0!==c&&null!==(c=c[0])&&void 0!==c&&c.adresse?Ye(this.savedCurrentUser.adresses):null)!==(E.adresses.length>0&&null!==(d=E.adresses)&&void 0!==d&&null!==(d=d[0])&&void 0!==d&&d.adresse?Ye(E.adresses):null)&&P.push({oldValue:{label:{fr:"No d'appartement",en:"Apartment number"},value:{label:null!==(_e=null===(se=this.savedCurrentUser.adresses)||void 0===se?void 0:se.map(J=>J.noAppartement).filter(J=>null!==J&&""!==J))&&void 0!==_e?_e:null,value:this.savedCurrentUser.adresses}},newValue:{label:{fr:"No d'appartement",en:"Apartment number"},value:{label:null!==(h=null===(Z=E.adresses)||void 0===Z?void 0:Z.map(J=>J.noAppartement).filter(J=>null!==J&&""!==J))&&void 0!==h?h:null,value:E.adresses}}});const ne=P.map(J=>J.oldValue),H=P.map(J=>J.newValue);return(ne.length||H.length)&&(u.details.push(new m.TM(p.Wp.ModificationRenseignementsPersonnels,ne,H)),S.push(u)),null!=S&&null!==(a=S[0])&&void 0!==a&&null!==(a=a.details)&&void 0!==a&&a.length?S:null}checkPhoneNumber(n){setTimeout(()=>{"typeTelephone"===n?this.phoneNumberType._elementRef.nativeElement.focus():this.phoneNumber.nativeElement.focus()},0)}}return(t=_).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-edit-user-content"]],viewQuery:function(n,i){if(1&n&&(e.GBs(rr,5),e.GBs(ar,5)),2&n){let s;e.mGM(s=e.lsd())&&(i.phoneNumber=s.first),e.mGM(s=e.lsd())&&(i.phoneNumberType=s.first)}},features:[e.Jv_([{provide:ie.Ju,useValue:"fr-FR"},{provide:ie.de,useValue:w.dLJ},{provide:ie.MJ,useClass:Oe.QH},{provide:Oe.ij,useValue:{useUtc:!0}}])],decls:35,vars:12,consts:()=>{let o,n,i,s,r,c,d,a,u,S,E,P,O,f,I,b,N,y,G,B,L,X,W,F,x,re,_e,se,h,Z,ne;return o=" Renseignements personnels",n="Pr\xE9nom",i="Nom",s="Courriel",r="Enregistrer",c="Champ obligatoire",d="Champ invalide",a="Champ obligatoire",u="Champ invalide",S=" Champ obligatoire ",E=" Courriel invalide ",P="T\xE9l\xE9phone",O="Type",f=" Champ obligatoire ",I=" Champ obligatoire ",b=" T\xE9l\xE9phone non valide ",N="Non v\xE9rifi\xE9",y="R\xE9-envoyer le SMS de v\xE9rification",G="V\xE9rifi\xE9",B="Sexe",L=" Champ obligatoire ",X="Langue de pr\xE9f\xE9rence",W=" Champ obligatoire ",F="Date de naissance",x="JJ/MM/AAAA",re="Champ obligatoire",_e=" Vous devez avoir 16 ans et plus pour vous inscrire ",se="Adresse(s)",h="Supprimer l'adresse",Z="Ajouter une adresse",ne="Ajouter une adresse",[["phoneNumber",""],["phoneNumberType",""],["picker",""],o,n,i,s,r,c,d,a,u,S,E,P,O,f,I,b,N,y,G,B,L,X,W,F,x,re,_e,se,ne,[1,"form-container","user-form-container","padding-form-mobile"],[3,"ngSubmit","formGroup"],[1,"form-section-title"],[1,"edit-user-form-content"],["matInput","","type","text","formControlName","prenom",3,"blur"],["matInput","","type","text","formControlName","nom",3,"blur"],[1,"courriel-edit"],["matInput","","type","email","formControlName","courriel"],[1,"text-link",3,"click"],[1,"icon-edit"],[1,"form-subdivision"],[1,"margin-bottom-2","field-custom-wrapper"],[1,"margin-bottom-1","full-width"],[1,"edit-form-actions"],["type","submit","hidden",""],["type","submit","expand","block",1,"ion-custom-button-standard","ion-cu
1stom-button-full"],["matInput","","type","tel","formControlName","telephone",3,"required","imask","unmask"],[1,"sms-verification"],[1,"sms-verification","sms-verification-verified"],["formControlName","typTelId",3,"required"],[3,"value"],[1,"icon-x-circle-full"],[1,"sms-verification-link",3,"click"],[1,"icon-valid"],["formControlName","sexe",3,"required"],["formControlName","langCom",3,"required"],["appearance","fill",1,"full-width","margin-bottom-0",3,"floatLabel"],["tabindex","-1","autocomplete","off","matInput","","formControlName","dateNaissance",3,"required","matDatepicker","max"],[1,"birthday-hint"],["matSuffix","",3,"for"],[1,"margin-bottom-1"],[1,"array-element-button"],[1,"element-flex"],[1,"address-array"],[1,"field-custom-wrapper","full-width",3,"adresseChanged","placeholder","isRequired","adresseControl","nomControl","prenomControl","courrielControl","telephoneControl","noAppartementControl","displayAddressNotFound","ngClass","adresseVille"],[1,"conteneur-delete-button"],["type","button","mat-button","","matTooltip",h,1,"publication-button","secondary-button","delete-adresse",3,"click"],[1,"icon-poubelle"],["type","button","mat-button","","matTooltip",Z,1,"publication-button","secondary-button","ajout-adresse",3,"click"],[1,"icon-nouvel-element"],[1,"array-element-button-text"]]},template:function(n,i){1&n&&(e.j41(0,"div",32)(1,"form",33),e.bIt("ngSubmit",function(){return i.modifier()}),e.j41(2,"h2",34),e.pXf(3,3),e.k0s(),e.j41(4,"div",35)(5,"mat-form-field")(6,"mat-label"),e.pXf(7,4),e.k0s(),e.j41(8,"input",36),e.bIt("blur",function(){return i.onInputBlur(i.editForm.get("prenom"))}),e.k0s(),e.DNE(9,lr,2,0,"mat-error")(10,cr,2,0,"mat-error"),e.k0s(),e.j41(11,"mat-form-field")(12,"mat-label"),e.pXf(13,5),e.k0s(),e.j41(14,"input",37),e.bIt("blur",function(){return i.onInputBlur(i.editForm.get("nom"))}),e.k0s(),e.DNE(15,dr,2,0,"mat-error")(16,ur,2,0,"mat-error"),e.k0s(),e.j41(17,"mat-form-field")(18,"mat-label"),e.pXf(19,6),e.k0s(),e.j41(20,"div",38),e.nrm(21,"input",39),e.j41(22,"a",40),e.bIt("click",function(){return i.editCourriel()}),e.nrm(23,"i",41),e.k0s()(),e.DNE(24,Cr,2,0,"mat-error")(25,Er,2,0,"mat-error"),e.k0s(),e.DNE(26,fr,19,8,"div",42)(27,Or,8,1,"mat-form-field")(28,Ar,8,1,"mat-form-field")(29,hr,12,7,"div",43)(30,br,7,1,"div",44),e.k0s(),e.j41(31,"div",45),e.nrm(32,"input",46),e.j41(33,"ion-button",47),e.pXf(34,7),e.k0s()()()()),2&n&&(e.R7$(),e.Y8G("formGroup",i.editForm),e.R7$(8),e.vxM(9,i.editForm.controls.prenom.hasError("required")?9:-1),e.R7$(),e.vxM(10,i.editForm.controls.prenom.hasError("invalidName")&&!i.editForm.controls.prenom.hasError("required")?10:-1),e.R7$(5),e.vxM(15,i.editForm.controls.nom.hasError("required")?15:-1),e.R7$(),e.vxM(16,i.editForm.controls.nom.hasError("invalidName")&&!i.editForm.controls.nom.hasError("required")?16:-1),e.R7$(8),e.vxM(24,i.editForm.controls.courriel.touched&&null!=i.editForm.controls.courriel.errors&&i.editForm.controls.courriel.errors.required?24:-1),e.R7$(),e.vxM(25,i.editForm.controls.courriel.touched&&i.editForm.controls.courriel.hasError("invalidEmail")?25:-1),e.R7$(),e.vxM(26,i.citoyenForm.hasPhone?26:-1),e.R7$(),e.vxM(27,i.citoyenForm.hasSexe?27:-1),e.R7$(),e.vxM(28,i.citoyenForm.hasLangCom?28:-1),e.R7$(),e.vxM(29,i.citoyenForm.hasDateNaissance?29:-1),e.R7$(),e.vxM(30,i.citoyenForm.hasAddress?30:-1))},dependencies:[Ce.fg,R.rl,R.nJ,R.MV,R.TL,R.yw,ie.wT,xe.VO,ue.$z,Ee.Vh,Ee.bZ,Ee.bU,Ie.oV,A.YU,l.qT,l.me,l.BC,l.cb,l.YS,l.j4,l.JD,Re.Zq,$.Jm,xn.v],styles:[".file-label-icon[_ngcontent-%COMP%]{align-self:center}.file-container[_ngcontent-%COMP%]{background-color:#efeded;padding:.5rem;border-radius:2px;margin-bottom:1rem;margin-top:.5rem;display:flex;flex-direction:row;justify-content:space-between}.file-icon[_ngcontent-%COMP%]{background:none;outline:none;font-size:1.2rem;color:#585757}.flex-files[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.courriel-edit[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}.courriel-edit[_ngcontent-%COMP%] a.text-link[_ngcontent-%COMP%]{cursor:pointer;pointer-events:auto}.courriel-edit[_ngcontent-%COMP%] a.text-link[_ngcontent-%COMP%]:active{background-color:var(--primary-color-opacity-24)}@media (max-width: 768px){.conteneur-delete-button[_ngcontent-%COMP%]{margin-top:-15px}}.ajout-adresse[_ngcontent-%COMP%]{margin-right:15px}.publication-button[_ngcontent-%COMP%]{border:none!important;font-size:20px!important;padding:0 8px!important;min-width:0!important;background:#262a411a;height:36px;width:36px;overflow:hidden}.publication-button[_ngcontent-%COMP%] .mat-button-focus-overlay, .publication-button[_ngcontent-%COMP%] .mat-ripple{overflow:visible}.conteneur-delete-button[_ngcontent-%COMP%]{padding-top:20px}.icon-poubelle[_ngcontent-%COMP%]{font-size:18px}.element-flex[_ngcontent-%COMP%]{display:flex}.delete-adresse[_ngcontent-%COMP%]{min-width:0px;padding:0;margin-right:2px}.full-width-adresse[_ngcontent-%COMP%] .adresse-inputs-container{padding-right:13px}@media (max-width: 700px){.full-width-adresse[_ngcontent-%COMP%] .adresse-inputs-container{width:calc(100vw - 72px)!important}}@media (min-width: 800px) and (max-width: 1020px){.full-width-adresse[_ngcontent-%COMP%] .adresse-inputs-container{width:calc(100vw - 102px)!important}}@media (min-width: 1130px) and (max-width: 1200px){.full-width-adresse[_ngcontent-%COMP%] .adresse-inputs-container{width:calc(100vw - 107px)!important}}@media (min-width: 800px) and (max-width: 1030px){.conteneur-delete-button[_ngcontent-%COMP%]{padding-top:10px}}@media (max-width: 700px){.conteneur-delete-button[_ngcontent-%COMP%]{padding-right:5px}}@media (max-width: 700px){.width-address[_ngcontent-%COMP%] .adresse-inputs-container{width:calc(100vw - 37px)!important}}.address-array[_ngcontent-%COMP%]{width:100%}.icon-nouvel-element[_ngcontent-%COMP%]{font-size:18px}.birthday-hint[_ngcontent-%COMP%]{font-size:.7rem}.sms-verification[_ngcontent-%COMP%]{padding-top:1px}.sms-verification-verified[_ngcontent-%COMP%], .sms-verification-verified[_ngcontent-%COMP%] .icon-valid[_ngcontent-%COMP%]{color:var(--approved-color)}.sms-verification-link[_ngcontent-%COMP%]{cursor:pointer}.max-width[_ngcontent-%COMP%]{max-width:100%!important}"]}),_})();const vr=t=>({"filter-searche-global-active":t});let $r=(()=>{var t;class _{constructor(n){this.store=n,this.selectIsSearchHeaderVisible$=this.store.select(T.selectIsSearchHeaderVisible)}onContentClick(){this.store.dispatch(T.Actions.setIsSearchHeaderVisible({payload:!1}))}}return(t=_).\u0275fac=function(n){return new(n||t)(e.rXU(j.il))},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-edit-user"]],decls:4,vars:9,consts:[[1,"hide-desktop","mobile-header",3,"defaultHref","headerTitle","returnButtonType","menuId"],["id","editUser",3,"click","ngClass"]],template:function(n,i){1&n&&(e.nrm(0,"vplus-mobile-header",0),e.j41(1,"ion-content",1),e.nI1(2,"async"),e.bIt("click",function(){return i.onContentClick()}),e.nrm(3,"vplus-edit-user-content"),e.k0s()),2&n&&(e.Y8G("defaultHref","utilisateur/profil")("headerTitle","")("returnButtonType","back-button")("menuId","editUser"),e.R7$(),e.Y8G("ngClass",e.eq3(7,vr,e.bMT(2,5,i.selectIsSearchHeaderVisible$))))},dependencies:[A.YU,de.f,$.W9,St,A.Jj],encapsulation:2}),_})();var Fr=C(27176),Je=C(2049);const pt=(t,_)=>_.id;function Gr(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,11),e.k0s())}function Dr(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,12),e.k0s())}function yr(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,13),e.k0s())}function Xr(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,14),e.k0s())}function kr(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,15),e.k0s())}function xr(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,18),e.k0s())}function jr(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,19),e.k0s())}function wr(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,21),e.k0s())}function Vr(t,_){if(1&t&&(e.j41(0,"mat-form-field")(1,"mat-label"),e.pXf(2,20),e.k0s(),e.nrm(3,"input",81),e.DNE(4,wr,2,0,"mat-error"),e.k0s()),2&t){let o;const n=e.XpG(2);e.R7$(4),e.vxM(4,null!=(o=n.form.get("medicamentsAllergiesMedicamentueuse"))&&o.touched&&null!=(o=n.form.get("medicamentsAllergiesMedicamentueuse"))&&null!=o.errors&&o.errors.required?4:-1)}}function zr(t,_){if(1&t&&(e.j41(0,"mat-form-field")(1,"mat-label"),e.pXf(2,16),e.k0s(),e.nrm(3,"input",79),e.DNE(4,xr,2,0,"mat-error"),e.k0s(),e.j41(5,"mat-form-field")(6,"mat-label"),e.pXf(7,17),e.k0s(),e.j41(8,"mat-select",80)(9,"mat-option",71),e.EFF(10),e.k0s(),e.j41(11,"mat-option",71),e.EFF(12),e.k0s()(),e.DNE(13,jr,2,0,"mat-error"),e.k0s(),e.DNE(14,Vr,5,1,"mat-form-field")),2&t){let o,n,i;const s=e.XpG();e.R7$(4),e.vxM(4,null!=(o=s.form.get("listeAllergiesMedicaments"))&&o.touched&&null!=(o=s.form.get("listeAllergiesMedicaments"))&&null!=o.errors&&o.errors.required?4:-1),e.R7$(4),e.Y8G("errorStateMatcher",s.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(),e.JRh(s.EnumYesOrNo.Oui),e.R7$(),e.Y8G("value",!1),e.R7$(),e.JRh(s.EnumYesOrNo.Non),e.R7$(),e.vxM(13,null!=(n=s.form.get("medicamentsContreAllergies"))&&n.touched&&null!=(n=s.form.get("medicamentsContreAllergies"))&&null!=n.errors&&n.errors.required?13:-1),e.R7$(),e.vxM(14,null!=(i=s.form.get("medicamentsContreAllergies"))&&i.value?14:-1)}}function Hr(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,24),e.k0s())}function Yr(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,25),e.k0s())}function Br(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,27),e.k0s())}function qr(t,_){if(1&t&&(e.j41(0,"mat-form-field")(1,"mat-label"),e.pXf(2,26),e.k0s(),e.nrm(3,"input",84),e.DNE(4,Br,2,0,"mat-error"),e.k0s()),2&t){let o;const n=e.XpG(2);e.R7$(4),e.vxM(4,null!=(o=n.form.get("medicamentsContreAllergiesAlimentaire"))&&o.touched&&null!=(o=n.form.get("medicamentsContreAllergiesAlimentaire"))&&null!=o.errors&&o.errors.required?4:-1)}}function Wr(t,_){if(1&t&&(e.j41(0,"mat-form-field")(1,"mat-label"),e.pXf(2,22),e.k0s(),e.nrm(3,"input",82),e.DNE(4,Hr,2,0,"mat-error"),e.k0s(),e.j41(5,"mat-form-field")(6,"mat-label"),e.pXf(7,23),e.k0s(),e.j41(8,"mat-select",83)(9,"mat-option",71),e.EFF(10),e.k0s(),e.j41(11,"mat-option",71),e.EFF(12),e.k0s()(),e.DNE(13,Yr,2,0,"mat-error"),e.k0s(),e.DNE(14,qr,5,1,"mat-form-field")),2&t){let o,n,i;const s=e.XpG();e.R7$(4),e.vxM(4,null!=(o=s.form.get("listeAllergiesAlimentaires"))&&o.touched&&null!=(o=s.form.get("listeAllergiesAlimentaires"))&&null!=o.errors&&o.errors.required?4:-1),e.R7$(4),e.Y8G("errorStateMatcher",s.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(),e.JRh(s.EnumYesOrNo.Oui),e.R7$(),e.Y8G("value",!1),e.R7$(),e.JRh(s.EnumYesOrNo.Non),e.R7$(),e.vxM(13,null!=(n=s.form.get("medicamentsAllergiesAlimentaires"))&&n.touched&&null!=(n=s.form.get("medicamentsAllergiesAlimentaires"))&&null!=n.errors&&n.errors.required?13:-1),e.R7$(),e.vxM(14,null!=(i=s.form.get("medicamentsAllergiesAlimentaires"))&&i.value?14:-1)}}function Jr(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,29),e.k0s())}function Qr(t,_){if(1&t&&(e.j41(0,"mat-form-field")(1,"mat-label"),e.pXf(2,28),e.k0s(),e.j41(3,"mat-select",85)(4,"mat-option",71),e.EFF(5),e.k0s(),e.j41(6,"mat-option",71),e.EFF(7),e.k0s()(),e.DNE(8,Jr,2,0,"mat-error"),e.k0s()),2&t){let o;const n=e.XpG();e.R7$(3),e.Y8G("errorStateMatcher",n.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(),e.JRh(n.EnumYesOrNo.Oui),e.R7$(),e.Y8G("value",!1),e.R7$(),e.JRh(n.EnumYesOrNo.Non),e.R7$(),e.vxM(8,null!=(o=n.form.get("injection"))&&o.touched&&null!=(o=n.form.get("injection"))&&null!=o.errors&&o.errors.required?8:-1)}}function Kr(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,31),e.k0s())}function Zr(t,_){if(1&t&&(e.j41(0,"mat-form-field")(1,"mat-label"),e.pXf(2,30),e.k0s(),e.nrm(3,"input",86),e.DNE(4,Kr,2,0,"mat-error"),e.k0s()),2&t){let o;const n=e.XpG();e.R7$(4),e.vxM(4,null!=(o=n.form.get("medicationPrise"))&&o.touched&&null!=(o=n.form.get("medicationPrise"))&&null!=o.errors&&o.errors.required?4:-1)}}function ea(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,33),e.k0s())}function na(t,_){if(1&t&&(e.j41(0,"mat-form-field")(1,"mat-label"),e.pXf(2,32),e.k0s(),e.nrm(3,"input",87),e.DNE(4,ea,2,0,"mat-error"),e.k0s()),2&t){let o;const n=e.XpG();e.R7$(4),e.vxM(4,null!=(o=n.form.get("descriptionComportement"))&&o.touched&&null!=(o=n.form.get("descriptionComportement"))&&null!=o.errors&&o.errors.required?4:-1)}}function ta(t,_){if(1&t&&(e.j41(0,"span"),e.pXf(1,39),e.k0s(),e.j41(2,"span"),e.EFF(3),e.k0s(),e.j41(4,"span"),e.pXf(5,40),e.k0s()),2&t){const o=e.XpG().$index;e.R7$(3),e.SpI(" ",o+1,"")}}function oa(t,_){if(1&t&&(e.j41(0,"span"),e.pXf(1,41),e.k0s(),e.j41(2,"span"),e.EFF(3),e.k0s()),2&t){const o=e.XpG().$index;e.R7$(3),e.SpI(" ",o+1,"")}}function ia(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,42),e.k0s())}function _a(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,43),e.k0s())}function sa(t,_){if(1&t&&(e.j41(0,"mat-option",71),e.EFF(1),e.k0s()),2&t){const o=_.$implicit;e.Y8G("value",o.id),e.R7$(),e.JRh(o.nom)}}function ra(t,_){1&t&&(e.j41(0,"span",97),e.pXf(1,44),e.k0s())}function aa(t,_){1&t&&(e.j41(0,"span",97),e.pXf(1,45),e.k0s())}function la(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",94)(1,"button",95),e.bIt("click",function(){e.eBV(o);const i=e.XpG().$index,s=e.XpG();return e.Njj(s.deleteContactUrgence(i))}),e.nrm(2,"i",96),e.k0s(),e.DNE(3,ra,2,0,"span",97)(4,aa,2,0),e.k0s()}if(2&t){const o=e.XpG(2);e.R7$(3),e.vxM(3,o.isEnfant?3:4)}}function ca(t,_){if(1&t&&(e.j41(0,"div",76)(1,"h4",88),e.DNE(2,ta,6,1)(3,oa,4,1),e.k0s(),e.j41(4,"div",61)(5,"div",62)(6,"mat-form-field")(7,"mat-label"),e.pXf(8,34),e.k0s(),e.nrm(9,"input",89),e.k0s(),e.j41(10,"mat-form-field")(11,"mat-label"),e.pXf(12,35),e.k0s(),e.nrm(13,"input",90),e.k0s()(),e.j41(14,"div",62)(15,"mat-form-field")(16,"mat-label"),e.pXf(17,36),e.k0s(),e.nrm(18,"input",91),e.DNE(19,ia,2,0,"mat-error"),e.k0s(),e.j41(20,"mat-form-field")(21,"mat-label"),e.pXf(22,37),e.k0s(),e.nrm(23,"input",92),e.DNE(24,_a,2,0,"mat-error"),e.k0s()(),e.j41(25,"div",62)(26,"mat-form-field")(27,"mat-label"),e.pXf(28,38),e.k0s(),e.j41(29,"mat-select",93),e.Z7z(30,sa,2,2,"mat-option",71,pt),e.k0s()()()(),e.DNE(32,la,5,1,"div",94),e.k0s()),2&t){let o,n;const i=_.$implicit,s=_.$index,r=e.XpG();e.Y8G("formGroupName",s),e.R7$(2),e.vxM(2,r.isEnfant?2:3),e.R7$(16),e.Y8G("imask",r.telMaskObjet)("unmask",!0),e.R7$(),e.vxM(19,null!=(o=i.get("telephoneCellulaire"))&&o.touched&&null!=(o=i.get("telephoneCellulaire"))&&o.hasError("pattern")?19:-1),e.R7$(4),e.Y8G("imask",r.telMaskObjet)("unmask",!0),e.R7$(),e.vxM(24,null!=(n=i.get("telephoneMaison"))&&n.touched&&null!=(n=i.get("telephoneMaison"))&&n.hasError("pattern")?24:-1),e.R7$(6),e.Dyx(r.EnumFamilleMembreLien),e.R7$(2),e.vxM(32,r.contactUrgenceFA.controls.length>1?32:-1)}}function da(t,_){1&t&&(e.j41(0,"span",97),e.pXf(1,46),e.k0s())}function ua(t,_){1&t&&(e.j41(0,"span",97),e.pXf(1,47),e.k0s())}function Ca(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",77)(1,"button",95),e.bIt("click",function(){e.eBV(o);const i=e.XpG();
1return e.Njj(i.addContactUrgence())}),e.nrm(2,"i",98),e.k0s(),e.DNE(3,da,2,0,"span",97)(4,ua,2,0),e.k0s()}if(2&t){const o=e.XpG();e.R7$(3),e.vxM(3,o.isEnfant?3:4)}}function Ea(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,56),e.k0s())}function Ta(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,57),e.k0s())}function Sa(t,_){if(1&t&&(e.j41(0,"mat-option",71),e.EFF(1),e.k0s()),2&t){const o=_.$implicit;e.Y8G("value",o.id),e.R7$(),e.JRh(o.nom)}}function pa(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",76)(1,"h4",88)(2,"span"),e.pXf(3,48),e.k0s(),e.j41(4,"span"),e.EFF(5),e.k0s(),e.j41(6,"span"),e.pXf(7,49),e.k0s()(),e.j41(8,"div",61)(9,"div",62)(10,"mat-form-field")(11,"mat-label"),e.pXf(12,50),e.k0s(),e.nrm(13,"input",89),e.k0s(),e.j41(14,"mat-form-field")(15,"mat-label"),e.pXf(16,51),e.k0s(),e.nrm(17,"input",90),e.k0s()(),e.j41(18,"div",62)(19,"mat-form-field")(20,"mat-label"),e.pXf(21,52),e.k0s(),e.nrm(22,"input",91),e.DNE(23,Ea,2,0,"mat-error"),e.k0s(),e.j41(24,"mat-form-field")(25,"mat-label"),e.pXf(26,53),e.k0s(),e.nrm(27,"input",92),e.DNE(28,Ta,2,0,"mat-error"),e.k0s()(),e.j41(29,"div",62)(30,"mat-form-field")(31,"mat-label"),e.pXf(32,54),e.k0s(),e.j41(33,"mat-select",93),e.Z7z(34,Sa,2,2,"mat-option",71,pt),e.k0s()()()(),e.j41(36,"div",94)(37,"button",95),e.bIt("click",function(){const i=e.eBV(o).$index,s=e.XpG(2);return e.Njj(s.deletePersonneAutorisee(i))}),e.nrm(38,"i",96),e.k0s(),e.j41(39,"span",97),e.pXf(40,55),e.k0s()()()}if(2&t){let o,n;const i=_.$implicit,s=_.$index,r=e.XpG(2);e.Y8G("formGroupName",s),e.R7$(5),e.SpI(" ",s+1,""),e.R7$(17),e.Y8G("imask",r.telMaskObjet)("unmask",!0),e.R7$(),e.vxM(23,null!=(o=i.get("telephoneCellulaire"))&&o.touched&&null!=(o=i.get("telephoneCellulaire"))&&o.hasError("pattern")?23:-1),e.R7$(4),e.Y8G("imask",r.telMaskObjet)("unmask",!0),e.R7$(),e.vxM(28,null!=(n=i.get("telephoneMaison"))&&n.touched&&null!=(n=i.get("telephoneMaison"))&&n.hasError("pattern")?28:-1),e.R7$(6),e.Dyx(r.EnumFamilleMembreLien)}}function ma(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",77)(1,"button",95),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.addPersonneAutorisee())}),e.nrm(2,"i",98),e.k0s(),e.j41(3,"span",97),e.pXf(4,58),e.k0s()()}}function Na(t,_){if(1&t&&(e.j41(0,"div",78),e.Z7z(1,pa,41,8,"div",76,e.fX1),e.DNE(3,ma,5,0,"div",77),e.k0s()),2&t){let o;const n=e.XpG();e.R7$(),e.Dyx(n.personneAutoriseeFA.controls),e.R7$(2),e.vxM(3,(null==(o=n.form.get("personneAutorisee"))||null==o.value?null:o.value.length)<5?3:-1)}}let mt=(()=>{var t;class _{constructor(){this.appConfig=(0,e.WQX)(te.o),this.destroyRef=(0,e.WQX)(e.abz),this.dateFormControl=new l.MJ(qe()()),this.isEnfant=!1,this.EnumYesOrNo=p.x2,this.assMaladieMask=w.trO,this.telMaskObjet=this.appConfig.appConfig.telMaskObjet,this.matcher=new w.HIC,this.EnumFamilleMembreLien=m.Qu.sort((n,i)=>n.nom.localeCompare(i.nom))}ngOnInit(){this.wireForm(),this.ficheSante&&this.patchForm(this.ficheSante)}ngOnChanges(n){n.ficheSante&&!n.ficheSante.firstChange&&this.ficheSante&&this.patchForm(this.ficheSante)}wireForm(){this.contactUrgenceFA=this.form.get("contactUrgence"),this.contactUrgenceFA.setDefaultControlBuilder(this.createFormContact.bind(this)),this.addContactUrgence(),this.personneAutoriseeFA=this.form.get("personneAutorisee"),this.personneAutoriseeFA.setDefaultControlBuilder(this.createFormContact.bind(this)),this.form.get("numeroAssurance").valueChanges.pipe((0,g.pQ)(this.destroyRef)).subscribe(n=>this.onNumeroAssuranceChange(n)),this.form.get("nomMedecin").valueChanges.pipe((0,g.pQ)(this.destroyRef)).subscribe(()=>this.refreshMedecinValidators()),this.form.get("isAllergiesMedicaments").valueChanges.pipe((0,g.pQ)(this.destroyRef)).subscribe(n=>{this.refreshConditionalValidator(n,"listeAllergiesMedicaments"),this.refreshConditionalValidator(n,"medicamentsContreAllergies"),n||this.form.get("medicamentsContreAllergies").setValue(null),this.refreshInjectionValidator()}),this.form.get("medicamentsContreAllergies").valueChanges.pipe((0,g.pQ)(this.destroyRef)).subscribe(n=>this.refreshConditionalValidator(n,"medicamentsAllergiesMedicamentueuse")),this.form.get("isAllergiesAlimentaires").valueChanges.pipe((0,g.pQ)(this.destroyRef)).subscribe(n=>{this.refreshConditionalValidator(n,"listeAllergiesAlimentaires"),this.refreshConditionalValidator(n,"medicamentsAllergiesAlimentaires"),n||this.form.get("medicamentsAllergiesAlimentaires").setValue(null),this.refreshInjectionValidator()}),this.form.get("medicamentsAllergiesAlimentaires").valueChanges.pipe((0,g.pQ)(this.destroyRef)).subscribe(n=>this.refreshConditionalValidator(n,"medicamentsContreAllergiesAlimentaire")),this.form.get("isPriseMed").valueChanges.pipe((0,g.pQ)(this.destroyRef)).subscribe(n=>this.refreshConditionalValidator(n,"medicationPrise")),this.form.get("troublesComportement").valueChanges.pipe((0,g.pQ)(this.destroyRef)).subscribe(n=>this.refreshConditionalValidator(n,"descriptionComportement"))}selectYear(n){const i=this.dateFormControl.value;i.year(n.year()),this.dateFormControl.setValue(i)}selectMonth(n,i,s){const r=this.dateFormControl.value;r.month(n.month()),s.setValue(r),i.close()}onDateExpirationKeypress(n){/[\d/]/.test(n.key)||n.preventDefault()}onNumeroAssuranceChange(n){const i=this.form.get("dateExpiration");(null==n?void 0:n.trim().length)>0?i.addValidators(l.k0.required):i.removeValidators(l.k0.required),i.updateV
1alueAndValidity({onlySelf:!0})}refreshMedecinValidators(){var n;const i=this.form.get("nomMedecin"),s=this.form.get("telephoneMedecin"),r=!(null===(n=i.value)||void 0===n||!n.trim());s.setValidators(r?[l.k0.required,l.k0.pattern(this.appConfig.appConfig.telPattern)]:[l.k0.pattern(this.appConfig.appConfig.telPattern)]),s.updateValueAndValidity({onlySelf:!0})}refreshInjectionValidator(){const n=this.form.get("injection");this.form.get("isAllergiesMedicaments").value||this.form.get("isAllergiesAlimentaires").value?n.addValidators(l.k0.required):(n.clearValidators(),n.setErrors(null)),n.markAsUntouched(),n.updateValueAndValidity({onlySelf:!0})}refreshConditionalValidator(n,i){const s=this.form.get(i);n?s.addValidators(l.k0.required):(s.clearValidators(),s.setErrors(null)),s.markAsUntouched(),s.updateValueAndValidity({onlySelf:!0})}createFormContact(){const n=this.appConfig.appConfig.telPattern;return new l.gE({prenom:new l.MJ(null),nom:new l.MJ(null),telephoneCellulaire:new l.MJ(null,{validators:[l.k0.pattern(n)],updateOn:"blur"}),telephoneMaison:new l.MJ(null,{validators:[l.k0.pattern(n)],updateOn:"blur"}),lien:new l.MJ(null)})}addContactUrgence(){this.contactUrgenceFA.length<3&&this.contactUrgenceFA.push(this.createFormContact())}deleteContactUrgence(n){this.contactUrgenceFA.length<=1||this.contactUrgenceFA.removeAt(n)}addPersonneAutorisee(){this.personneAutoriseeFA.length<5&&this.personneAutoriseeFA.push(this.createFormContact())}deletePersonneAutorisee(n){this.personneAutoriseeFA.removeAt(n)}patchForm(n){this.form.patchValue(n),0===this.contactUrgenceFA.length&&this.addContactUrgence()}}return(t=_).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-fiche-sante-form"]],inputs:{form:"form",ficheSante:"ficheSante",isEnfant:"isEnfant"},standalone:!0,features:[e.Jv_([{provide:ie.MJ,useClass:Oe.QH,deps:[ie.Ju,Oe.ij]},{provide:ie.de,useValue:w.JKX}]),e.OA$,e.aNF],decls:74,vars:42,consts:()=>{let o,n,i,s,r,c,d,a,u,S,E,P,O,f,I,b,N,y,G,B,L,X,W,F,x,re,_e,se,h,Z,ne,H,J,le,Pe,q,be,ve,$e,Fe,Ge,De,ye,Xe,k,an,ln,cn,dn,un,Cn,En,Tn,Sn,pn,v,Rt,Lt,Ut,bt;return o="AAAA 0000 0000",n="MM/AAAA",i="Informations m\xE9dicales",s="Num\xE9ro d'assurance maladie",r="Date d'expiration",c="Nom du m\xE9decin",d="T\xE9l\xE9phone du m\xE9decin",a="Allergies m\xE9dicamenteuses",u="Allergies alimentaires",S="Prise de m\xE9dication",E="Maladie(s) et trouble(s) de comportement",P="Informations sur les contacts",O="Format attendu : AAAA 0000 0000",f="Champ obligatoire",I="Date invalide",b="Champ obligatoire",N="T\xE9l\xE9phone non valide",y="Veuillez pr\xE9ciser les allergies m\xE9dicamenteuses",G="Des m\xE9dicaments sont-ils utilis\xE9s pour traiter les allergies m\xE9dicamenteuses?",B="Champ obligatoire",L="Champ obligatoire",X="Veuillez pr\xE9ciser les m\xE9dicaments utilis\xE9s pour traiter les allergies m\xE9dicamenteuses",W="Champ obligatoire",F="Veuillez pr\xE9ciser les allergies alimentaires",x="Des m\xE9dicaments sont-ils utilis\xE9s pour traiter les allergies alimentaires?",re="Champ obligatoire",_e="Champ obligatoire",se="Veuillez pr\xE9ciser les m\xE9dicaments utilis\xE9s pour traiter les allergies alimentaires",h="Champ obligatoire",Z="A-t-il son auto-injecteur d'adr\xE9naline (EpiPen) avec lui?",ne="Champ obligatoire",H="Veuillez pr\xE9ciser la m\xE9dication prise, incluant les quantit\xE9s et moments",J="Champ obligatoire",le="Veuillez pr\xE9ciser les maladies et troubles de comportement",Pe="Champ obligatoire",q="Pr\xE9nom",be="Nom",ve="T\xE9l\xE9phone cellulaire",$e="T\xE9l\xE9phone maison",Fe="Lien",Ge="Contact en cas d'urgence",De=" (autre qu'un tuteur l\xE9gal)",ye="Contact en cas d'urgence",Xe="T\xE9l\xE9phone non valide",k="T\xE9l\xE9phone non valide",an="Retirer le contact en cas d'urgence (autre qu'un tuteur l\xE9gal)",ln="Retirer le contact en cas d'urgence",cn="Ajouter un contact en cas d'urgence (autre qu'un tuteur l\xE9gal)",dn="Ajouter un contact en cas d'urgence",un="Personne autoris\xE9e \xE0 quitter avec l'enfant",Cn=" (autre qu'un tuteur l\xE9gal)",En="Pr\xE9nom",Tn="Nom",Sn="T\xE9l\xE9phone cellulaire",pn="T\xE9l\xE9phone maison",v="Lien",Rt="Retirer la personne autoris\xE9e \xE0 quitter avec l'enfant (autre qu'un tuteur l\xE9gal)",Lt="T\xE9l\xE9phone non valide",Ut="T\xE9l\xE9phone non valide",bt="Ajouter une personne autoris\xE9e \xE0 quitter avec l'enfant (autre qu'un tuteur l\xE9gal)",[["picker",""],i,s,r,c,d,a,u,S,E,P,O,f,I,b,N,y,G,B,L,X,W,F,x,re,_e,se,h,Z,ne,H,J,le,Pe,q,be,ve,$e,Fe,Ge,De,ye,Xe,k,an,ln,cn,dn,un,Cn,En,Tn,Sn,pn,v,Rt,Lt,Ut,bt,[1,"form-container","user-form-container",3,"formGroup"],[1,"form-section-subtitle"],[1,"fiche-sante-form-content"],[1,"form-subdivision"],[3,"floatLabel"],["matInput","","type","text","formControlName","numeroAssurance","placeholder",o,3,"imask"],["tabindex","-1","autocomplete","off","matInput","","formControlName","dateE
1xpiration","placeholder",n,3,"keypress","matDatepicker"],["matSuffix","",3,"for"],["startView","multi-year",3,"yearSelected","monthSelected"],["matInput","","formControlName","nomMedecin"],["matInput","","formControlName","telephoneMedecin","type","tel","maskTelephoneEvents","",3,"errorStateMatcher","imask","unmask"],["formControlName","isAllergiesMedicaments",3,"errorStateMatcher"],[3,"value"],["formControlName","isAllergiesAlimentaires",3,"errorStateMatcher"],["formControlName","isPriseMed",3,"errorStateMatcher"],["formControlName","troublesComportement",3,"errorStateMatcher"],["formArrayName","contactUrgence"],[1,"contact-urgence-item",3,"formGroupName"],[1,"array-element-button","margin-top-1"],["formArrayName","personneAutorisee",1,"margin-top-1"],["matInput","","type","text","formControlName","listeAllergiesMedicaments"],["formControlName","medicamentsContreAllergies",3,"errorStateMatcher"],["matInput","","type","text","formControlName","medicamentsAllergiesMedicamentueuse"],["matInput","","type","text","formControlName","listeAllergiesAlimentaires"],["formControlName","medicamentsAllergiesAlimentaires",3,"errorStateMatcher"],["matInput","","type","text","formControlName","medicamentsContreAllergiesAlimentaire"],["formControlName","injection",3,"errorStateMatcher"],["matInput","","type","text","formControlName","medicationPrise"],["matInput","","type","text","formControlName","descriptionComportement"],[1,"sub-title-info"],["matInput","","formControlName","prenom"],["matInput","","formControlName","nom"],["matInput","","formControlName","telephoneCellulaire","type","tel","maskTelephoneEvents","",3,"imask","unmask"],["matInput","","formControlName","telephoneMaison","type","tel","maskTelephoneEvents","",3,"imask","unmask"],["formControlName","lien"],[1,"array-element-button"],["type","button","mat-button","",1,"item-action-button","secondary-button",3,"click"],[1,"icon-poubelle"],[1,"array-element-button-text"],[1,"icon-nouvel-element"]]},template:function(n,i){if(1&n){const s=e.RV6();e.j41(0,"div",59)(1,"h3",60),e.pXf(2,1),e.k0s(),e.j41(3,"div",61)(4,"div",62)(5,"mat-form-field",63)(6,"mat-label"),e.pXf(7,2),e.k0s(),e.nrm(8,"input",64),e.DNE(9,Gr,2,0,"mat-error"),e.k0s(),e.j41(10,"mat-form-field",63)(11,"input",65),e.bIt("keypress",function(c){return e.eBV(s),e.Njj(i.onDateExpirationKeypress(c))}),e.k0s(),e.j41(12,"mat-label"),e.pXf(13,3),e.k0s(),e.nrm(14,"mat-datepicker-toggle",66),e.j41(15,"mat-datepicker",67,0),e.bIt("yearSelected",function(c){return e.eBV(s),e.Njj(i.selectYear(c))})("monthSelected",function(c){e.eBV(s);const d=e.sdS(16);return e.Njj(i.selectMonth(c,d,i.form.get("dateExpiration")))}),e.k0s(),e.DNE(17,Dr,2,0,"mat-error")(18,yr,2,0,"mat-error"),e.k0s()(),e.j41(19,"div",62)(20,"mat-form-field")(21,"mat-label"),e.pXf(22,4),e.k0s(),e.nrm(23,"input",68),e.k0s(),e.j41(24,"mat-form-field")(25,"mat-label"),e.pXf(26,5),e.k0s(),e.nrm(27,"input",69),e.DNE(28,Xr,2,0,"mat-error")(29,kr,2,0,"mat-error"),e.k0s()(),e.j41(30,"mat-form-field")(31,"mat-label"),e.pXf(32,6),e.k0s(),e.j41(33,"mat-select",70)(34,"mat-option",71),e.EFF(35),e.k0s(),e.j41(36,"mat-option",71),e.EFF(37),e.k0s()()(),e.DNE(38,zr,15,8),e.j41(39,"mat-form-field")(40,"mat-label"),e.pXf(41,7),e.k0s(),e.j41(42,"mat-select",72)(43,"mat-option",71),e.EFF(44),e.k0s(),e.j41(45,"mat-option",71),e.EFF(46),e.k0s()()(),e.DNE(47,Wr,15,8)(48,Qr,9,6,"mat-form-field"),e.j41(49,"mat-form-field")(50,"mat-label"),e.pXf(51,8),e.k0s(),e.j41(52,"mat-select",73)(53,"mat-option",71),e.EFF(54),e.k0s(),e.j41(55,"mat-option",71),e.EFF(56),e.k0s()()(),e.DNE(57,Zr,5,1,"mat-form-field"),e.j41(58,"mat-form-field")(59,"mat-label"),e.pXf(60,9),e.k0s(),e.j41(61,"mat-select",74)(62,"mat-option",71),e.EFF(63),e.k0s(),e.j41(64,"mat-option",71),e.EFF(65),e.k0s()()(),e.DNE(66,na,5,1,"mat-form-field"),e.k0s(),e.j41(67,"h3",60),e.pXf(68,10),e.k0s(),e.j41(69,"div",75),e.Z7z(70,ca,33,9,"div",76,e.fX1),e.DNE(72,Ca,5,1,"div",77),e.k0s(),e.DNE(73,Na,4,1,"div",78),e.k0s()}if(2&n){let s,r,c,d,a,u,S,E,P,O,f;const I=e.sdS(16);e.Y8G("formGroup",i.form),e.R7$(5),e.Y8G("floatLabel","always"),e.R7$(3),e.Y8G("imask",i.assMaladieMask),e.R7$(),e.vxM(9,null!=(s=i.form.get("numeroAssurance"))&&s.touched&&null!=(s=i.form.get("numeroAssurance"))&&s.hasError("numeroAssuranceInvalide")?9:-1),e.R7$(),e.Y8G("floatLabel","always"),e.R7$(),e.Y8G("matDatepicker",I),e.BMQ("maxlength",7),e.R7$(3),e.Y8G("for",I),e.R7$(3),e.vxM(17,null==(r=i.form.get("dateExpiration"))||!r.touched||null==(r=i.form.get("dateExpiration"))||!r.hasError("required")||null!=(r=i.form.get("dateExpiration"))&&r.hasError("matDatepickerParse")?-1:17),e.R7$(),e.vxM(18,null!=(c=i.form.get("dateExpiration"))&&c.errors&&(null!=(c=i.form.get("dateExpiration"))&&c.hasError("matDatepickerParse")||null==(c=i.form.get("dateExpiration"))||!c.hasError("required"))&&null!=(c=i.form.get("dateExpiration"))&&c.touched?18:-1),e.R7$(9),e.Y8G("errorStateMatcher",i.matcher)("imask",i.telMaskObjet)("unmask",!0),e.R7$(),e.vxM(28,null!=(d=i.form.get("telephoneMedecin"))&&d.touched&&null!=(d=i.form.get("telephoneMedecin"))&&null!=d.errors&&d.errors.required?28:-1),e.R7$(),e.vxM(29,null!=(a=i.form.get("telephoneMedecin"))&&a.touched&&null!=(a=i.form.get("telephoneMedecin"))&&a.hasError("pattern")?29:-1),e.R7$(4),e.Y8G("errorStateMatcher",i.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(),e.JRh(i.EnumYesOrNo.Oui),e.R7$(),e.Y8G("value",!1),e.R7$(),e.JRh(i.EnumYesOrNo.Non),e.R7$(),e.vxM(38,null!=(u=i.form.get("isAllergiesMedicaments"))&&u.value?38:-1),e.R7$(4),e.Y8G("errorStateMatcher",i.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(),e.JRh(i.EnumYesOrNo.Oui),e.R7$(),e.Y8G("value",!1),e.R7$(),e.JRh(i.EnumYesOrNo.Non),e.R7$(),e.vxM(47,null!=(S=i.form.get("isAllergiesAlimentaires"))&&S.value?47:-1),e.R7$(),e.vxM(48,null!=(E=i.form.get("isAllergiesMedicaments"))&&E.value||null!=(E=i.form.get("isAllergiesAlimentaires"))&&E.value?48:-1),e.R7$(4),e.Y8G("errorStateMatcher",i.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(),e.JRh(i.EnumYesOrNo.Oui),e.R7$(),e.Y8G("value",!1),e.R7$(),e.JRh(i.EnumYesOrNo.Non),e.R7$(),e.vxM(57,null!=(P=i.form.get("isPriseMed"))&&P.value?57:-1),e.R7$(4),e.Y8G("errorStateMatcher",i.matcher),e.R7$(),e.Y8G("value",!0),e.R7$(),e.JRh(i.EnumYesOrNo.Oui),e.R7$(),e.Y8G("value",!1),e.R7$(),e.JRh(i.EnumYesOrNo.Non),e.R7$(),e.vxM(66,null!=(O=i.form.get("troublesComportement"))&&O.value?66:-1),e.R7$(4),e.Dyx(i.contactUrgenceFA.controls),e.R7$(2),e.vxM(72,(null==(f=i.form.get("contactUrgence"))||null==f.value?null:f.value.length)<3?72:-1),e.R7$(),e.vxM(73,i.isEnfant?73:-1)}},dependencies:[we.G,Ce.fg,R.rl,R.nJ,R.TL,R.yw,ie.wT,xe.VO,ue.$z,Ee.Vh,Ee.bZ,Ee.bU,l.me,l.BC,l.cb,l.j4,l.JD,l.$R,l.v8,w.xGI,Re.Zq,l.X1],styles:[".form-section-subtitle[_ngcontent-%COMP%]{font-size:1rem;font-weight:700;margin:1.5rem 0 1rem}.fiche-sante-form-content[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-between}.fiche-sante-form-content[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{flex-grow:1;width:100%;margin-bottom:1rem}.fiche-sante-form-content[_ngcontent-%COMP%] .form-subdivision[_ngcontent-%COMP%]{flex-shrink:0;min-width:100%;max-width:100%;flex-basis:100%}.contact-urgence-item[_ngcontent-%COMP%]{padding-bottom:.5rem;margin-bottom:1rem}.contact-urgence-item[_ngcontent-%COMP%]:last-of-type{padding-bottom:0;margin-bottom:0}.sub-title-info[_ngcontent-%COMP%]{color:#676767;font-size:14px;margin-bottom:.5em}.array-element-button[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:20px}.array-element-button[_ngcontent-%COMP%] .array-element-button-text[_ngcontent-%COMP%]{margin-left:18px;color:var(--standard-text-color)}"]}),_})();var qn=C(96850);const fa=(t,_)=>_.id;function Pa(t,_){if(1&t&&(e.j41(0,"span"),e.pXf(1,10),e.k0s()),2&t){const o=e.XpG();e.AVh("tab-label-error",o.submittedInvalid()&&o.form.get("renseignementsPersonnels").invalid)}}function Oa(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,11),e.k0s())}function Ma(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,12),e.k0s())}function Aa(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,13),e.k0s())}function ga(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,14),e.k0s())}function Ia(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,15),e.k0s())}function ha(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,16),e.k0s())}function Ra(t,_){if(1&t&&(e.j41(0,"mat-option",45),e.EFF(1),e.k0s()),2&t){const o=_.$implicit;e.Y8G("value",o.id),e.R7$(),e.JRh(o.nom)}}function La(t,_){if(1&t&&(e.j41(0,"span"),e.pXf(1,17),e.k0s()),2&t){const o=e.XpG(2);e.AVh("tab-label-error",o.submittedInvalid()&&o.ficheSanteGroup.invalid)}}function Ua(t,_){if(1&t&&(e.j41(0,"mat-tab",46),e.DNE(1,La,2,2,"ng-template",31),e.j41(2,"div",49),e.nrm(3,"vplus-fiche-sante-form",50),e.k0s()()),2&t){const o=e.XpG();e.R7$(3),e.Y8G("form",o.ficheSanteGroup)("ficheSante",null==o.enfant?null:o.enfant.ficheSante)("isEnfant",!0)}}let Wn=(()=>{var t;class _{constructor(){this.utilisateurService=(0,e.WQX)(ce.$),this.fb=(0,e.WQX)(l.ok),this.route=(0,e.WQX)(V.nX),this.destroyRef=(0,e.WQX)(e.abz),this.store=(0,e.WQX)(j.il),this.location=(0,e.WQX)(A.aZ),this.appConfig=(0,e.WQX)(te.o),this.today=new Date,this.moduleActiviteIsActif=!1,this.submittedInvalid=(0,e.vPA)(!1),this.EnumFamilleMembreLien=m.Qu.filter(n=>!["C6F0308B-012C-44DC-9C87-C82C7B865536","7782DA3B-700B-4BD7-AA8B-B6D41740AE78","C1B4268F-F59A-4BB6-B03A-C107C03CC6E8","5C2D458C-C13C-42C9-9E58-8602D36D7B12","E2B2513F-A825-40C2-89C1-BEAE84C61696","F099EA8B-7F63-4FCC-9C2E-35FB39315DC5","A80A11A2-E3CA-4B35-BF77-BA5E2C0604C4","CE146560-DB2D-4248-AD7D-38B2353C6960","BA129F5F-9FD4-434F-9115-59E06A5979BE","AE9A7B6B-9FFD-45A1-A9E0-4623CB7404DB","40932E46-BF7D-4392-8921-D152D06E0865","2CF614A3-669F-4DF2-9EA4-37A50B52000B","C31D8EE1-3899-46DD-B614-3EFD73985D95","D77DCED9-21B6-49A4-AD60-C60B1866BDCB"].includes(n.id
1)).sort((n,i)=>n.nom.localeCompare(i.nom))}goToPreviousPage(){this.location.back()}ngOnInit(){this.checkEnvironment=!Je.c.production&&!Je.c.envName.startsWith("simulation")||"modelliumville"===this.appConfig.appConfig.appNom,this.form=this.fb.group({renseignementsPersonnels:this.fb.group({nom:[null,[l.k0.required,(0,w.zl_)()]],prenom:[null,[l.k0.required,(0,w.zl_)()]],dateNaissance:[null,[l.k0.required,(0,w.HzN)()]],lien:[null,l.k0.required],familleId:[null]}),ficheSante:st()}),this.ficheSanteGroup=this.form.get("ficheSante"),this.perId=this.route.snapshot.paramMap.get("perId"),this.store.select(T.selectModulesActifs).pipe((0,me.s)(1),(0,Me.M)(n=>{this.moduleActiviteIsActif=n.includes(m.AL.Activite)})).subscribe(),this.perId&&this.utilisateurService.getEnfantById(this.perId).pipe((0,g.pQ)(this.destroyRef)).subscribe({next:n=>{this.enfant=n,this.form.get("renseignementsPersonnels").patchValue({nom:n.nom,prenom:n.prenom,dateNaissance:n.dateNaissance,lien:n.lien,familleId:n.familleId})}})}submit(){if(this.form.markAllAsTouched(),this.form.invalid||!this.perId)return this.submittedInvalid.set(!0),void this.store.dispatch(new T.Actions.ShowSnackBar("Impossible d'enregistrer car certains champs sont invalides",T.EnumSnackBarType.Echec));const n=this.form.getRawValue();this.store.dispatch(Y.En.updateEnfant({enfant:{perId:this.perId,nom:n.renseignementsPersonnels.nom,prenom:n.renseignementsPersonnels.prenom,dateNaissance:n.renseignementsPersonnels.dateNaissance,familleId:n.renseignementsPersonnels.familleId,lien:n.renseignementsPersonnels.lien,ficheSante:this.moduleActiviteIsActif?n.ficheSante:void 0}})),this.submittedInvalid.set(!1)}}return(t=_).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-enfant"]],standalone:!0,features:[e.Jv_([{provide:ie.Ju,useValue:"fr-FR"},{provide:ie.de,useValue:w.dLJ},{provide:ie.MJ,useClass:Oe.QH},{provide:Oe.ij,useValue:{useUtc:!0}}]),e.aNF],decls:56,vars:20,consts:()=>{let o,n,i,s,r,c,d,a,u,S,E,P,O,f,I,b;return o="Enregistrer",n="Pr\xE9nom",i="Nom",s="Date de naissance",r="JJ/MM/AAAA",c="Lien avec l'administrateur",d="Champ obligatoire",a="Enregistrer",u="Renseignements personnels",S="Champ obligatoire",E="Champ invalide",P="Champ obligatoire",O="Champ invalide",f="Champ obligatoire",I="Un enfant doit avoir moins de 16 ans",b="Fiche sant\xE9",[["tabs",""],["picker",""],o,n,i,s,r,c,d,a,u,S,E,P,O,f,I,b,[3,"ngSubmit","formGroup"],[1,"hide-desktop","mobile-header",3,"defaultHref","headerTitle","returnButtonType","showReturnButton","menuId"],[1,"page-header","hide-mobile"],[1,"header-title-group"],["slot","start"],[3,"click"],["mode","md","slot","icon-only","name","arrow-back",1,"hide-ion-tooltip","cursor-style","black-text"],[1,"activite-titre"],["type","submit",1,"pill-button-primary"],[1,"enfant-content"],["mat-align-tabs","start","animationDuration","0ms",1,"margin-top-1",3,"dynamicHeight"],[1,"margin-bottom-22-rem"],["label","Renseignements personnels"],["mat-tab-label",""],["formGroupName","renseignementsPersonnels",1,"tab-content","padding-top-24"],[1,"grid","fields","fields-mobile"],[1,"full-width"],["matInput","","type","text","formControlName","prenom","autocomplete","disabled"],[1,"full-width","espace-champs"],["matInput","","type","text","formControlName","nom","autocomplete","disabled"],[1,"date-naissance"],["appearance","fill",1,"full-width","margin-bottom-0",3,"floatLabel"],["tabindex","-1","autocomplete","off","matInput","","formControlName","dateNaissance",3,"matDatepicker","max"],[1,"birthday-hint"],["matSuffix","",3,"for"],[1,"lien-field","espace-champs"],["formControlName","lien"],[3,"value"],["label","Fiche sant\xe9"],[1,"submit-bar","hide-desktop"],["type","submit",1,"pill-button-primary","full-width"],[1,"tab-content"],[3,"form","ficheSante","isEnfant"]]},template:function(n,i){if(1&n){const s=e.RV6();e.j41(0,"form",18),e.bIt("ngSubmit",function(){return e.eBV(s),e.Njj(i.submit())}),e.nrm(1,"vplus-mobile-header",19),e.j41(2,"div",20)(3,"div",21)(4,"ion-buttons",22)(5,"ion-button",23),e.bIt("click",function(){return e.eBV(s),e.Njj(i.goToPreviousPage())}),e.nrm(6,"ion-icon",24),e.k0s()(),e.j41(7,"h4",25),e.EFF(8),e.k0s()(),e.j41(9,"button",26),e.pXf(10,2),e.k0s()(),e.j41(11,"div",27)(12,"mat-tab-group",28,0)(14,"div",29)(15,"mat-tab",30),e.DNE(16,Pa,2,2,"ng-template",31),e.j41(17,"div",32)(18,"div",33)(19,"mat-form-field",34)(20,"mat-label"),e.pXf(21,3),e.k0s(),e.nrm(22,"input",35),e.DNE(23,Oa,2,0,"mat-error")(24,Ma,2,0,"mat-error"),e.k0s(),e.j41(25,"mat-form-field",36)(26,"mat-label"),e.pXf(27,4),e.k0s(),e.nrm(28,"input",37),e.DNE(29,Aa,2,0,"mat-error")(30,ga,2,0,"mat-error"),e.k0s()(),e.j41(31,"div",33)(32,"div",38)(33,"mat-form-field",39)(34,"mat-label"),e.pXf(35,5),e.k0s(),e.nrm(36,"input",40),e.j41(37,"mat-hint",41),e.pXf(38,6),e.k0s(),e.nrm(39,"mat-datepicker-toggle",42)(40,"mat-datepicker",null,1),e.DNE(42,Ia,2,0,"mat-error")(43,ha,2,0,"mat-error"),e.k0s()(),e.j41(44,"mat-form-field",43)(45,"mat-label"),e.pXf(46,7),e.k0s(),e.j41(47,"mat-select",44),e.Z7z(48,Ra,2,2,"mat-option",45,fa),e.k0s(),e.j41(50,"mat-error"),e.pXf(51,8),e.k0s()()()()(),e.DNE(52,Ua,4,3,"mat-tab",46),e.k0s()()(),e.j41(53,"div",47)(54,"button",48),e.pXf(55,9),e.k0s()()()}if(2&n){let s;const r=e.sdS(41);e.Y8G("formGroup",i.form),e.R7$(),e.Y8G("defaultHref","utilisateur/familles")("headerTitle",null!=i.enfant&&i.enfant.prenom?(null==i.enfant?null:i.enfant.prenom)+" "+(null==i.enfant?null:i.enfant.nom):"")("returnButtonType","back-button")("showReturnButton",!0)("menuId","enfant-editeur-mobile"),e.R7$(7),e.Lme("",null==i.enfant?null:i.enfant.prenom," ",null==i.enfant?null:i.enfant.nom,""),e.R7$(4),e.Y8G("dynamicHeight",!0),e.R7$(11),e.vxM(23,i.form.get("renseignementsPersonnels.prenom").touched&&i.form.get("renseignementsPersonnels.prenom").hasError("required")?23:-1),e.R7$(),e.vxM(24,i.form.get("renseignementsPersonnels.prenom").touched&&i.form.get("renseignementsPersonnels.prenom").hasError("invalidName")?24:-1),e.R7$(5),e.vxM(29,i.form.get("renseignementsPersonnels.nom").touched&&i.form.get("renseignementsPersonnels.nom").hasError("required")?29:-1),e.R7$(),e.vxM(30,i.form.get("renseignementsPersonnels.nom").touched&&i.form.get("renseignementsPersonnels.nom").hasError("invalidName")?30:-1),e.R7$(3),e.Y8G("floatLabel","Auto"),e.R7$(3),e.Y8G("matDatepicker",r)("max",i.today),e.R7$(3),e.Y8G("for",r),e.R7$(3),e.vxM(42,i.form.get("renseignementsPersonnels.dateNaissance").touched&&null!=(s=i.form.get("renseignementsPersonnels.dateNaissance").errors)&&s.required?42:-1),e.R7$(),e.vxM(43,i.form.get("renseignementsPersonnels.dateNaissance").hasError("invalidAgeMaximal")?43:-1),e.R7$(5),e.Dyx(i.EnumFamilleMembreLien),e.R7$(4),e.vxM(52,i.checkEnvironment&&i.moduleActiviteIsActif?52:-1)}},dependencies:[we.G,Ce.fg,R.rl,R.nJ,R.MV,R.TL,R.yw,ie.wT,xe.VO,qn.ES,qn.mq,qn.T8,Ee.Vh,Ee.bZ,Ee.bU,l.qT,l.me,l.BC,l.cb,l.j4,l.JD,l.$R,de.f,$.Jm,$.QW,$.iq,l.X1,mt],styles:["@media (max-width: 767px){form[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}vplus-mobile-header[_ngcontent-%COMP%]{flex-shrink:0}}.enfant-content[_ngcontent-%COMP%]{padding:0 16px}@media (max-width: 767px){.enfant-content[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow-y:auto}}.header-title-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.activite-titre[_ngcontent-%COMP%]{margin:0;line-height:1}.submit-bar[_ngcontent-%COMP%]{flex-shrink:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:#fff;box-shadow:0 -2px 8px #00000014}.grid.fields[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;-moz-column-gap:16px;column-gap:16px;align-items:start}@media (max-width: 767px){.grid.fields.fields-mobile[_ngcontent-%COMP%]{grid-template-columns:1fr;row-gap:8px}}@media (max-width: 767px){.date-naissance[_ngcontent-%COMP%]{margin-bottom:16px}}.espace-champs[_ngcontent-%COMP%]{margin-left:0}"]}),_})();var va=C(80292),$a=C(68740),Nt=C(37903),ft=C(54843);function Fa(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",2)(1,"h2",3),e.pXf(2,0),e.k0s(),e.nrm(3,"vplus-fiche-sante-form",4),e.j41(4,"div",5)(5,"ion-button",6),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.update())}),e.pXf(6,1),e.k0s()()()}if(2&t){const o=e.XpG();e.R7$(3),e.Y8G("form",o.form)("ficheSante",o.ficheSante)}}let Pt=(()=>{var t;class _{constructor(){this.store=(0,e.WQX)(j.il),this.utilisateurService=(0,e.WQX)(ce.$),this.form=st(),this.isLoading=!0,this.isSaving=!1}ngOnInit(){(0,ft._)(this.utilisateurService.getFicheSante()).then(n=>{this.ficheSante=n,this.isLoading=!1}
1).catch(()=>{this.isLoading=!1})}update(){if(!this.isSaving){if(this.form.markAllAsTouched(),this.form.invalid)return void this.store.dispatch(new T.Actions.ShowSnackBar("Impossible d'enregistrer car certains champs sont invalides",T.EnumSnackBarType.Echec));this.isSaving=!0,(0,ft._)(this.utilisateurService.updateFicheSante(this.form.getRawValue())).then(()=>{this.isSaving=!1,this.form.markAsPristine(),this.store.dispatch(new T.Actions.ShowSnackBar("Vos modifications ont \xE9t\xE9 enregistr\xE9es avec succ\xE8s."))}).catch(()=>{this.isSaving=!1,this.store.dispatch(new T.Actions.ShowSnackBar("Une erreur est survenue lors de la sauvegarde.",T.EnumSnackBarType.Echec))})}}}return(t=_).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-fiche-sante-content"]],standalone:!0,features:[e.aNF],decls:1,vars:1,consts:()=>{let o,n;return o="Fiche sant\xE9",n="Enregistrer",[o,n,[1,"padding-form-mobile"],[1,"form-section-title"],[3,"form","ficheSante"],[1,"edit-form-actions"],["expand","block",1,"ion-custom-button-standard","ion-custom-button-full","margin-top-2",3,"click"]]},template:function(n,i){1&n&&e.DNE(0,Fa,7,2,"div",2),2&n&&e.vxM(0,i.isLoading?-1:0)},dependencies:[we.G,$.Jm,mt],encapsulation:2}),_})();const Ga=t=>({"filter-searche-global-active":t});let Da=(()=>{var t;class _{constructor(){this.store=(0,e.WQX)(j.il),this.selectIsSearchHeaderVisible$=this.store.select(T.selectIsSearchHeaderVisible)}onContentClick(){this.store.dispatch(T.Actions.setIsSearchHeaderVisible({payload:!1}))}}return(t=_).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-fiche-sante"]],standalone:!0,features:[e.aNF],decls:4,vars:9,consts:[[1,"hide-desktop","mobile-header",3,"defaultHref","headerTitle","returnButtonType","menuId"],["id","ficheSante",3,"click","ngClass"]],template:function(n,i){1&n&&(e.nrm(0,"vplus-mobile-header",0),e.j41(1,"ion-content",1),e.nI1(2,"async"),e.bIt("click",function(){return i.onContentClick()}),e.nrm(3,"vplus-fiche-sante-content"),e.k0s()),2&n&&(e.Y8G("defaultHref","utilisateur/profil")("headerTitle","")("returnButtonType","back-button")("menuId","ficheSante"),e.R7$(),e.Y8G("ngClass",e.eq3(7,Ga,e.bMT(2,5,i.selectIsSearchHeaderVisible$))))},dependencies:[we.G,A.YU,de.f,$.W9,A.Jj,Pt],encapsulation:2}),_})();const ya=t=>({"filter-searche-global-active":t});function Xa(t,_){1&t&&e.nrm(0,"vplus-loading-spinner")}function ka(t,_){if(1&t){const o=e.RV6();e.qex(0),e.j41(1,"p",17)(2,"span",18),e.EFF(3),e.k0s(),e.EFF(4,", "),e.j41(5,"span"),e.pXf(6,4),e.k0s(),e.j41(7,"span",18),e.EFF(8),e.k0s()(),e.j41(9,"div",19)(10,"button",20),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.replyInvitation(!1))}),e.pXf(11,5),e.k0s(),e.j41(12,"button",21),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.replyInvitation())}),e.pXf(13,6),e.k0s()(),e.bVm()}if(2&t){const o=e.XpG(2);e.R7$(3),e.Lme("",o.currentUser.prenom," ",o.currentUser.nom,""),e.R7$(5),e.SpI(" ",o.queryParams.nomFamille,"")}}function xa(t,_){1&t&&(e.qex(0),e.j41(1,"h2"),e.pXf(2,7),e.k0s(),e.j41(3,"div",22),e.nrm(4,"i",23),e.j41(5,"p"),e.pXf(6,8),e.k0s()(),e.bVm())}function ja(t,_){1&t&&(e.j41(0,"h2"),e.pXf(1,9),e.k0s(),e.j41(2,"div",24),e.nrm(3,"i",25),e.j41(4,"p"),e.pXf(5,10),e.k0s()())}function wa(t,_){if(1&t&&(e.qex(0),e.DNE(1,xa,7,0,"ng-container",14)(2,ja,6,0,"ng-template",null,3,e.C5r),e.bVm()),2&t){const o=e.sdS(3),n=e.XpG(3);e.R7$(),e.Y8G("ngIf",n.statutInvitationFamille===n.EnumStatutInvitationFamille.Declined.value)("ngIfElse",o)}}function Va(t,_){if(1&t&&e.DNE(0,wa,4,2,"ng-container",14),2&t){e.XpG();const o=e.sdS(6),n=e.XpG();e.Y8G("ngIf",n.statutInvitationFamille)("ngIfElse",o)}}function za(t,_){1&t&&(e.j41(0,"div",22),e.nrm(1,"i",23),e.j41(2,"p"),e.pXf(3,11),e.k0s()())}function Ha(t,_){if(1&t&&(e.j41(0,"div",15),e.nrm(1,"img",16),e.DNE(2,ka,14,3,"ng-container",14)(3,Va,1,2,"ng-template",null,1,e.C5r)(5,za,4,0,"ng-template",null,2,e.C5r),e.k0s()),2&t){const o=e.sdS(4),n=e.XpG();e.R7$(2),e.Y8G("ngIf",n.statutInvitationFamille===n.EnumStatutInvitationFamille.Sent.value)("ngIfElse",o)}}let Ya=(()=>{var t;class _ extends he.dI{constructor(n,i,s,r,c){super(),this.appMetaTags=n,this.route=i,this.router=s,this.store=r,this.utilisateurService=c,this.dataLoaded=!1,this.EnumStatutInvitationFamille=m.ar,this.selectIsSearchHeaderVisible$=this.store.select(T.selectIsSearchHeaderVisible)}
1ngOnInit(){this.queryParams=this.route.snapshot.queryParams,this.store.select(T.selectCurrentUser).pipe((0,me.s)(1)).subscribe(n=>{this.currentUser=n}),this.appMetaTags.updateMetaTags(`${"Invitation \xE0 la famille"} ${this.queryParams.nomFamille}`),(0,et.z)([this.utilisateurService.getStatutInvitationFamille(this.queryParams.invitationId),this.utilisateurService.getFamilleById(this.queryParams.familleId)]).pipe((0,wn.Q)(this.destroy$)).subscribe({next:([{statutInvitationFamille:n},i])=>{this.statutInvitationFamille=n,this.famille=i,i?decodeURI(this.queryParams.courriel).replace(/ /g,"+")!==this.currentUser.courriel&&(this.statutInvitationFamille=null):this.router.navigate(["page-non-trouvee"]),this.dataLoaded=!0},error:()=>{this.dataLoaded=!1}})}onContentClick(){this.store.dispatch(T.Actions.setIsSearchHeaderVisible({payload:!1}))}replyInvitation(n=!0){const i=new m.zb;i.perId=this.currentUser.perId,i.nomComplet=this.currentUser.prenom+" "+this.currentUser.nom,i.lien=this.queryParams.lien,this.famille.membres.push(i),this.store.dispatch(Y.En.replyInvitationFamille({famille:this.famille,isAccepted:n,invitationId:this.queryParams.invitationId}))}}return(t=_).\u0275fac=function(n){return new(n||t)(e.rXU(ge.W),e.rXU(V.nX),e.rXU(V.Ix),e.rXU(j.il),e.rXU(ce.$))},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-invitation-famille-adulte"]],features:[e.Vt3],decls:6,vars:10,consts:()=>{let o,n,i,s,r,c,d,a;return o="vous \xEAtes sur le point de joindre la famille",n=" D\xE9cliner ",i=" Accepter ",s="Invitation d\xE9clin\xE9e",r="L'invitation a d\xE9j\xE0 \xE9t\xE9 d\xE9clin\xE9e. Veuillez contacter l'administrateur de votre famille afin de recevoir une nouvelle invitation.",c="Invitation Accept\xE9e",d="L'invitation a d\xE9j\xE0 \xE9t\xE9 accept\xE9e.",a="Cette invitation ne vous est pas destin\xE9e. Assurez-vous d\u2019\xEAtre connect\xE9 au bon compte.",[["invitation",""],["repliedInvitation",""],["notInvitedUser",""],["acceptedInvitation",""],o,n,i,s,r,c,d,a,[1,"hide-desktop","mobile-header",3,"headerTitle","returnButtonType","menuId"],["id","invitationFamilleAdulte",3,"click","ngClass"],[4,"ngIf","ngIfElse"],[1,"invitation-container","standard-page-content"],["src","assets/svg/famille-artwork.svg"],[1,"invite-large-paragraph"],[1,"primary-color"],[1,"flex","flex-gap-1","margin-top-1"],["mat-stroked-button","",3,"click"],["mat-flat-button","","color","primary",3,"click"],[1,"declined-banner"],[1,"icon-invalid"],[1,"accepted-banner"],[1,"icon-check-circle"]]},template:function(n,i){if(1&n){const s=e.RV6();e.nrm(0,"vplus-mobile-header",12),e.j41(1,"ion-content",13),e.nI1(2,"async"),e.bIt("click",function(){return e.eBV(s),e.Njj(i.onContentClick())}),e.DNE(3,Xa,1,0,"vplus-loading-spinner",14)(4,Ha,7,2,"ng-template",null,0,e.C5r),e.k0s()}if(2&n){const s=e.sdS(5);e.Y8G("headerTitle","")("returnButtonType","home-button")("menuId","invitationFamilleAdulte"),e.R7$(),e.Y8G("ngClass",e.eq3(8,ya,e.bMT(2,6,i.selectIsSearchHeaderVisible$))),e.R7$(2),e.Y8G("ngIf",!i.dataLoaded)("ngIfElse",s)}},dependencies:[ue.$z,A.YU,A.bT,de.f,$.W9,Nn.N,A.Jj],styles:[".invitation-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;max-width:600px;margin:0 auto;padding-top:4rem}.invitation-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:200px;height:auto;margin-bottom:1rem}.invitation-container[_ngcontent-%COMP%] .invite-large-paragraph[_ngcontent-%COMP%]{text-align:center;font-size:1.33rem;margin-top:1rem}.invitation-container[_ngcontent-%COMP%] .invite-large-paragraph[_ngcontent-%COMP%] .primary-color[_ngcontent-%COMP%]{font-weight:500}.invitation-container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-bottom:2rem}.invitation-container[_ngcontent-%COMP%] .declined-banner[_ngcontent-%COMP%]{background:#ff3c4a1f;border:1px solid rgba(255,60,74,.24);border-radius:12px;display:flex;align-items:center;gap:1.33rem;padding:1.33rem 2rem}.invitation-container[_ngcontent-%COMP%] .declined-banner[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:2rem}.invitation-container[_ngcontent-%COMP%] .accepted-banner[_ngcontent-%COMP%]{background:var(--primary-color-opacity-12);border:1px solid var(--primary-color-opacity-24);border-radius:12px;display:flex;align-items:center;gap:1.33rem;padding:1.33rem 2rem}
1.invitation-container[_ngcontent-%COMP%] .accepted-banner[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:2rem;color:var(--primary-color)}"]}),_})();var rn=C(55430),gn=C(11546);let In=(()=>{var t;class _{constructor(n){this.router=n}canActivate(n,i){return!localStorage.getItem("token")||(this.router.navigate("VQ"===Je.c.clientName?["propriete","accueil"]:["accueil"]),!1)}}return(t=_).\u0275fac=function(n){return new(n||t)(e.KVO(V.Ix))},t.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"}),_})();var fe=C(52125),Le=C(62509),Ba=C(81387),Ue=C(16883),qa=C(90835),Wa=C(15083),Ja=C(50212),Ot=C(3902);const Qa=(t,_)=>_.id;function Ka(t,_){1&t&&(e.j41(0,"div",4),e.nrm(1,"i",10),e.j41(2,"h4"),e.pXf(3,0),e.k0s()())}function Za(t,_){if(1&t){const o=e.RV6();e.j41(0,"a",11),e.bIt("click",function(){const i=e.eBV(o).$implicit,s=e.XpG();return e.Njj(s.routeNavigation(i))})("keydown.enter",function(){const i=e.eBV(o).$implicit,s=e.XpG();return e.Njj(s.routeNavigation(i))}),e.nrm(1,"i",12),e.j41(2,"ion-label")(3,"div")(4,"h3"),e.EFF(5),e.k0s(),e.j41(6,"p"),e.EFF(7),e.k0s()(),e.j41(8,"p"),e.EFF(9),e.nI1(10,"vplusMoment"),e.k0s()()()}if(2&t){const o=_.$implicit;e.AVh("notification-new",!o.isRead),e.R7$(),e.HbH(o.icon),e.R7$(4),e.JRh(o.titre),e.R7$(2),e.JRh(o.contenu),e.R7$(2),e.JRh(e.ii3(10,7,o.dateCreation,!1,"LL",7))}}function el(t,_){1&t&&(e.j41(0,"ion-item",9),e.nrm(1,"ion-skeleton-text",13),e.j41(2,"ion-label")(3,"h3"),e.nrm(4,"ion-skeleton-text",14),e.k0s(),e.j41(5,"p"),e.nrm(6,"ion-skeleton-text",15),e.k0s(),e.j41(7,"p"),e.nrm(8,"ion-skeleton-text",16),e.k0s()()())}let nl=(()=>{var t;class _{constructor(){this.store=(0,e.WQX)(j.il),this.utilisateurService=(0,e.WQX)(ce.$),this.router=(0,e.WQX)(V.Ix),this.appConfig=(0,e.WQX)(te.o),this.localisationService=(0,e.WQX)(ke.A),this.destroyRef=(0,e.WQX)(e.abz),this.latestNotifications=[],this.totalLoaded=15,this.EnumNotification=m.fe,this.defaultLocalisation=this.appConfig.appConfig.localisationDefaut,this.currentLocalisation=this.localisationService.getCurrentLocalisation(),this.nomCarte=this.appConfig.getNomCarteCitoyenneCapital(),this.title="Notifications",this.selectIsSearchHeaderVisible$=this.store.select(T.selectIsSearchHeaderVisible)}ngOnInit(){this.store.select(T.selectCurrentUser).pipe((0,g.pQ)(this.destroyRef)).subscribe(n=>{n&&(this.user=n)}),this.store.select(T.selectNotificationList).pipe((0,g.pQ)(this.destroyRef)).subscribe(n=>{n&&(this.latestNotifications=n.map(i=>(0,Ja.N)(i,this.nomCarte,this.currentLocalisation,this.defaultLocalisation)))}),this.store.select(T.selectCountNewNotifications).pipe((0,g.pQ)(this.destroyRef)).subscribe(n=>{"/utilisateur/notifications"===this.router.url&&n>0&&this.store.dispatch(D.markNotificationsAsTouched({payload:this.user.id}))})}onContentClick(){this.store.dispatch(T.Actions.setIsSearchHeaderVisible({payload:!1}))}ngAfterViewInit(){this.latestNotifications.length<=15&&(this.infiniteScroll.disabled=!0)}fakeLazyLoad(n){setTimeout(()=>{n.target.complete(),this.totalLoaded+=10,this.totalLoaded>=this.latestNotifications.length&&(n.target.disabled=!0)},1e3)}routeNavigation(n){const i=[m.fe.PC_ACTIVATION_CARTE_CITOYENNE_ENFANT.code,m.fe.PC_REFUS_CARTE_CITOYENNE_ENFANT.code,m.fe.PC_RAPPEL_ECHEANCE_CARTE_CITOYENNE_ENFANT.code,m.fe.PC_REFUS_RENEWAL_CARTE_CITOYENNE_ENFANT.code,m.fe.PC_RENEWAL_CARTE_CITOYENNE_ENFANT.code];if(n.isRead||this.store.dispatch(D.markNotificationAsRead({payload:n.id})),!n.noLink)if(n.comId)this.utilisateurService.getCommentaireNotificationLink(n.comId).pipe((0,g.pQ)(this.destroyRef)).subscribe(s=>{this.router.navigate([s.url,s.entitySlug,"commentaire",n.comId])});else if(n.isLienActive)this.navigateToPage(n);else if(n.workitemNo){const r={..."PC_REQUETE_REPONSE_REQUETE_PERMIS"===n.code?{conversation:1}:{},...n.isOrganisation?{admin:1,organisation:1}:{}};this.router.navigate(["/utilisateur/"+(n.typeWorkitemId===p.Op.Requete?"requete":"permis"),n.workitemNo],{queryParams:r})}else[m.fe.PC_ACTIVATION_CARTE_CITOYENNE.code,m.fe.PC_REFUS_CARTE_CITOYENNE.code,m.fe.PC_RAPPEL_ECHEANCE_CARTE_CITOYENNE.code,m.fe.PC_REFUS_RENEWAL_CARTE_CITOYENNE.co
1de,m.fe.PC_RENEWAL_CARTE_CITOYENNE.code].includes(n.code)?this.router.navigate(["/utilisateur/carte"]):i.includes(n.code)?this.router.navigate(["/utilisateur/familles"],{queryParams:{famille:n.familleId}}):n.facId&&[m.fe.PC_RAPPEL_ECHEANCE_VERSEMENT_J.code,m.fe.PC_RAPPEL_ECHEANCE_VERSEMENT_J_3.code,m.fe.PC_RAPPEL_ECHEANCE_VERSEMENT_J_10.code,m.fe.PC_ACTIVITE_REMBOURSEMENT_CONFIRMATION.code].includes(n.code)?this.router.navigate(["utilisateur/facture"],{queryParams:{facId:n.facId}}):n.facId&&[m.fe.PC_REQUETE_PAIEMENT_CONFIRMATION.code,m.fe.PC_REQUETE_PAIEMENT_REQUIS.code,m.fe.PC_REQUETE_REMBOURSEMENT_CONFIRMATION.code].includes(n.code)?this.router.navigate([n.typeWorkitemId===p.Op.Requete?"requete":"permis","paiement",n.facId]):this.router.navigate([m.fe[n.code].routerLink,n.slug])}navigateToPage(n){var i;const s=window.location.origin,r=null==n||null===(i=n.localisations)||void 0===i?void 0:i.find(O=>O.lclzTag===this.localisationService.getCurrentLocalisation()),{navigationPath:c=(null==r?void 0:r.navigationPath),lienEntite:d=(null==r?void 0:r.lienEntite),outlets:a=(null==r?void 0:r.outlets),queryParams:u=(null==r?void 0:r.queryParams)}=n,{typeId:S,lienExterne:E,inNewWindow:P}=d;if(S!==m.y3.Fichier)if(S!==m.y3.LienExterne)if(P&&"web"===Wa.Ii.getPlatform()){let O=c;const f=this.localisationService.getCurrentLocalisation();f!==this.defaultLocalisation&&(O=`${f}/${O}`),a&&(O=`${O}/${Object.values(a)[0][0]}`),window.open(`${s}${O}`,"_blank")}else this.router.navigate(a?[c,{outlets:a}]:[c],{queryParams:u});else window.open(E,"_blank");else qa.A.openFileInNewWindow(n,this.appConfig.appConfig.awsFilePath)}}return(t=_).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-app-notifications"]],viewQuery:function(n,i){if(1&n&&e.GBs($.Ax,5),2&n){let s;e.mGM(s=e.lsd())&&(i.infiniteScroll=s.first)}},decls:13,vars:13,consts:()=>{let o;return o="Aucune Notification",[o,[1,"hide-desktop","mobile-header",3,"headerTitle","returnButtonType","minimalistHeader","menuId"],["id","notifications",3,"click"],[1,"main-page-container","padding-form-mobile"],[1,"no-content-icon"],[1,"notification-list","mobile"],["mat-list-item","","tabindex","0","button","",3,"notification-new"],["threshold","100px",3,"ionInfinite"],["mode","md",1,"notification-list","skeleton-list"],[1,"notification-skeleton"],[1,"icon-notification"],["mat-list-item","","tabindex","0","button","",3,"click","keydown.enter"],["slot","start",1,"notification-icon"],["animated","","slot","start",2,"width","24px","height","24px"],["animated","",2,"width","60%"],["animated","",2,"width","80%"],["animated","",2,"width","40%"]]},template:function(n,i){1&n&&(e.nrm(0,"vplus-mobile-header",1),e.j41(1,"ion-content",2),e.nI1(2,"async"),e.bIt("click",function(){return i.onContentClick()}),e.j41(3,"div",3),e.DNE(4,Ka,4,0,"div",4),e.j41(5,"mat-list",5),e.Z7z(6,Za,11,12,"a",6,Qa),e.nI1(8,"slice"),e.k0s(),e.j41(9,"ion-infinite-scroll",7),e.bIt("ionInfinite",function(r){return i.fakeLazyLoad(r)}),e.j41(10,"ion-list",8),e.Z7z(11,el,9,0,"ion-item",9,e.Vm6),e.k0s()()()()),2&n&&(e.Y8G("headerTitle",i.title)("returnButtonType","back-button")("minimalistHeader",!0)("menuId","notifications"),e.R7$(),e.AVh("filter-searche-global-active",e.bMT(2,7,i.selectIsSearchHeaderVisible$)),e.R7$(3),e.vxM(4,0==i.latestNotifications.length?4:-1),e.R7$(2),e.Dyx(e.brH(8,9,i.latestNotifications,0,i.totalLoaded)),e.R7$(5),e.Dyx(" ".repeat(3).split("")))},dependencies:[Ot.jt,Ot.YE,de.f,$.W9,$.Ax,$.uz,$.he,$.nf,$.ds,A.Jj,A.P9,jn.x],styles:[".notification-list[_ngcontent-%COMP%]{width:calc(100% + 36px);left:-18px}.notification-list[_ngcontent-%COMP%] .notification-icon[_ngcontent-%COMP%]{margin-right:15px}"]}),_})();const ol=()=>[];function il(t,_){if(1&t){const o=e.RV6();e.j41(0,"mat-icon-button",43),e.bIt("click",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.togglePasswordVisibility())}),e.nrm(1,"i",44),e.k0s()}if(2&t){const o=e.XpG(3);e.FS9("matTooltip",o.passwordHidden?o.labels.showPassword:o.labels.hidePassword),e.R7$(),e.Y8G("ngClass",o.passwordHidden?"icon-eye":"icon-eye-off")}}function _l(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,7),e.k0s())}function sl(t,_){1&t&&e.nrm(0,"div",45)}function rl(t,_){if(1&t){const o=e.RV6();e.j41(0,"mat-icon-button",43),e.bIt("click",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.togglePasswordConfirmationVisibility())}),e.nrm(1,"i",44),e.k0s()}if(2&t){const o=e.XpG(3);e.FS9("matTooltip",o.passwordConfirmationHidden?o.labels.showPassword:o.labels.hidePassword),e.R7$(),e.Y8G("ngClass",o.passwordConfirmationHidden?"icon-eye":"icon-eye-off")}}function al(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,8),e.k0s())}function ll(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",28)(1,"h2",29),e.pXf(2,2),e.k0s(),e.j41(3,"p"),e.pXf(4,3),e.k0s(),e.j41(5,"form",30),e.bIt("keydown.enter",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.validate())}),e.j41(6,"div",31)(7,"mat-form-field",32)(8,"mat-label"),e.pXf(9,4),e.k0s(),e.j41(10,"div",33)(11,"input",34),e.bIt("input",function(i){e.eBV(o);const s=e.XpG(2);return e.Njj(s.onInput(i))}),e.k0s(),e.DNE(12,il,2,2,"mat-icon-button",35),e.k0s(),e.DNE(13,_l,2,0,"mat-error",26),e.j41(14,"mat-hint",36),e.nrm(15,"vplus-password-hint",37),e.k0s()(),e.DNE(16,sl,1,0,"div",38),e.j41(17,"mat-form-field",39)(18,"mat-label"),e.pXf(19,5),e.k0s(),e.j41(20,"div",33)(21,"input",40),e.bIt("input",function(i){e.eBV(o);const s=e.XpG(2);return e.Njj(s.onConfirmationInput(i))}),e.k0s(),e.DNE(22,rl,2,2,"mat-icon-button",35),e.k0s(),e.DNE(23,al,2,0,"mat-error",26),e.k0s()(),e.j41(24,"div",41)(25,"ion-button",42),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.validate())}),e.pXf(26,6),e.k0s()()()()}if(2&t){const o=e.XpG(2);e.R7$(5),e.Y8G("formGroup",o.resetPassValidForm),e.R7$(6),e.Y8G("type",o.passwordHidden?"password":"text"),e.R7$(),e.Y8G("ngIf",o.isPasswordNotEmpty),e.R7$(),e.Y8G("ngIf",o.resetPassValidForm.controls.password.touched&&(null==o.resetPassValidForm.controls.password.errors?null:o.resetPassValidForm.controls.password.errors.required)),e.R7$(2),e.Y8G("passwordFormControl",o.resetPassValidForm.controls.password),e.R7$(),e.Y8G("ngIf",o.resetPassValidForm.controls.password.value),e.R7$(5),e.Y8G("errorStateMatcher",o.matcher)("type",o.passwordConfirmationHidden?"password":"text"),e.R7$(),e.Y8G("ngIf",o.isPasswordConfirmationNotEmpty),e.R7$(),e.Y8G("ngIf",o.resetPassValidForm.controls.confirmPassword.touched&&o.resetPassValidForm.hasError("notSame")),e.R7$(2),e.Y8G("disabled",o.resetPassValidForm.invali
1d)}}function cl(t,_){if(1&t&&(e.j41(0,"div"),e.DNE(1,ll,27,11,"div",27),e.k0s()),2&t){const o=e.XpG(),n=e.sdS(4);e.R7$(),e.Y8G("ngIf",!o.passwordChanged)("ngIfElse",n)}}function dl(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,12),e.k0s())}function ul(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,13),e.k0s())}function Cl(t,_){if(1&t){const o=e.RV6();e.j41(0,"mat-error",51)(1,"span"),e.pXf(2,14),e.k0s(),e.EFF(3,"\xa0 "),e.j41(4,"a",52),e.bIt("click",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.sendActivationEmail())}),e.pXf(5,15),e.k0s(),e.EFF(6,"\xa0 "),e.j41(7,"span"),e.pXf(8,16),e.k0s(),e.EFF(9,". "),e.k0s()}2&t&&(e.R7$(4),e.Y8G("routerLink",e.lJ4(1,ol)))}function El(t,_){1&t&&(e.j41(0,"mat-error",51)(1,"span"),e.pXf(2,17),e.k0s(),e.EFF(3,"\xa0 "),e.j41(4,"a",53),e.pXf(5,18),e.k0s(),e.EFF(6,". "),e.k0s())}function Tl(t,_){1&t&&(e.j41(0,"mat-error",51),e.pXf(1,19),e.k0s())}function Sl(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",47)(1,"h2",29),e.pXf(2,9),e.k0s(),e.j41(3,"p"),e.pXf(4,10),e.k0s(),e.j41(5,"form",30),e.bIt("keydown.enter",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.resetPassword())}),e.j41(6,"div",31)(7,"mat-form-field"),e.nrm(8,"input",48),e.DNE(9,dl,2,0,"mat-error",26)(10,ul,2,0,"mat-error",26),e.k0s(),e.DNE(11,Cl,10,2,"mat-error",49)(12,El,7,0,"mat-error",49)(13,Tl,2,0,"mat-error",49),e.k0s(),e.j41(14,"div",41)(15,"ion-button",50),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.resetPassword())}),e.pXf(16,11),e.k0s()()()()}if(2&t){const o=e.XpG(2);e.R7$(5),e.Y8G("formGroup",o.sendCourrielForm),e.R7$(4),e.Y8G("ngIf",o.sendCourrielForm.controls.courriel.touched&&(null==o.sendCourrielForm.controls.courriel.errors?null:o.sendCourrielForm.controls.courriel.errors.required)),e.R7$(),e.Y8G("ngIf",o.sendCourrielForm.controls.courriel.touched&&o.sendCourrielForm.controls.courriel.hasError("invalidEmail")),e.R7$(),e.Y8G("ngIf",null==o.sendCourrielForm.errors?null:o.sendCourrielForm.errors.userInactif),e.R7$(),e.Y8G("ngIf",null==o.sendCourrielForm.errors?null:o.sendCourrielForm.errors.userInexistant),e.R7$(),e.Y8G("ngIf",null==o.sendCourrielForm.errors?null:o.sendCourrielForm.errors.erreurInconnue)}}function pl(t,_){1&t&&(e.j41(0,"div",47)(1,"h2",29),e.pXf(2,20),e.k0s(),e.j41(3,"p"),e.pXf(4,21),e.k0s(),e.j41(5,"div",41)(6,"ion-button",54),e.pXf(7,22),e.k0s()()())}function ml(t,_){if(1&t&&(e.j41(0,"div"),e.DNE(1,Sl,17,6,"div",46)(2,pl,8,0,"ng-template",null,1,e.C5r),e.k0s()),2&t){const o=e.sdS(3),n=e.XpG();e.R7$(),e.Y8G("ngIf",!n.emailSent)("ngIfElse",o)}}function Nl(t,_){1&t&&(e.j41(0,"div",47)(1,"h2",29),e.pXf(2,23),e.k0s(),e.j41(3,"p"),e.pXf(4,24),e.k0s(),e.j41(5,"div",41)(6,"ion-button",54),e.pXf(7,25),e.k0s()()())}class fl{constructor(_){this.errorMessage=_}isErrorState(_,o){return _&&_.touched&&_.parent.hasError(this.errorMessage)}}let Pl=(()=>{var t;class _{constructor(n,i,s,r,c){this.route=n,this.fb=i,this.backend=s,this.store=r,this.utilisateurService=c,this.passwordChanged=!1,this.emailSent=!1,this.matcher=new fl("notSame"),this.passwordHidden=!0,this.passwordConfirmationHidden=!0,this.isPasswordConfirmationNotEmpty=!1,this.isPasswordNotEmpty=!1,this.labels={showPassword:"Afficher",hidePassword:"Masquer"}}ngOnInit(){this.codeVerification=this.route.snapshot.data.code,this.resetPassValidForm=this.fb.group({password:["",[l.k0.required]],confirmPassword:["",[l.k0.required]]}),this.sendCourrielForm=this.fb.group({courriel:["",[l.k0.required,(0,w.Bjz)()]]}),this.resetPassValidForm.setValidators(Hn("password","confirmPassword"))}resetPassword(){this.sendCourrielForm.value.courriel?this.utilisateurService.resetPassword(this.sendCourrielForm.value).pipe((0,Me.M)(n=>{this.emailSent=!0}),(0,oe.W)(n=>(this.sendCourrielForm.setErrors("UserInexistant"===n.message?{userInexistant:!0}:"UserInactif"===n.message?{userInactif:!0}:{erreurInconnue:!0}),(0,K.of)(n)))).subscribe():this.sendCourrielForm.updateValueAndValidity()}sendActivationEmail(){this.utilisateurService.sendActivationEmail(this.sendCourrielForm.value.courriel).subscribe(i=>{this.store.dispatch(i.ok?new T.Actions.ShowSnackBar("Un lien pour activer votre compte vous a \xE9t\xE9 envoy\xE9 par courriel."):new T.A
1ctions.ShowSnackBar("Une erreur est survenue, veuillez r\xE9essayer.",T.EnumSnackBarType.Echec)),this.sendCourrielForm.setErrors({})})}togglePasswordVisibility(){this.passwordHidden=!this.passwordHidden}onInput(n){this.isPasswordNotEmpty=this.resetPassValidForm.get("password").value.trim().length>0}onConfirmationInput(n){this.isPasswordConfirmationNotEmpty=this.resetPassValidForm.get("confirmPassword").value.trim().length>0}togglePasswordConfirmationVisibility(){this.passwordConfirmationHidden=!this.passwordConfirmationHidden}validate(){this.backend.post(`/client/reset-password/${this.codeVerification}`,this.resetPassValidForm.value).pipe((0,oe.W)(n=>("InvalidCodeValidation"===n.type&&this.store.dispatch(new T.Actions.ShowSnackBar("Le lien d'activation a expir\xE9",T.EnumSnackBarType.Echec)),(0,K.of)(n)))).subscribe(n=>{"validCodeActivation"===n.type&&(this.passwordChanged=!0)})}}return(t=_).\u0275fac=function(n){return new(n||t)(e.rXU(V.nX),e.rXU(l.ze),e.rXU(he.m3),e.rXU(j.il),e.rXU(ce.$))},t.\u0275cmp=e.VBU({type:t,selectors:[["email-verification"]],decls:5,vars:2,consts:()=>{let o,n,i,s,r,c,d,a,u,S,E,P,O,f,I,b,N,y,G,B,L,X,W,F;return o="R\xE9initialiser le mot de passe",n="Saisir un nouveau mot de passe",i="Mot de passe",s="Confirmer le mot de passe",r=" Changer le mot de passe ",c=" Champ obligatoire ",d=" Les mots de passe saisis ne sont pas identiques ",a="Code de r\xE9initialisation invalide",u="Ce code de r\xE9initialisation de mot de passe est invalide. Veuillez saisir votre adresse courriel pour en recevoir un nouveau",S=" Envoyer ",E=" Champ obligatoire ",P=" Courriel non valide ",O="Votre compte n'a pas \xE9t\xE9 activ\xE9. Veuillez",f="cliquez ici",I=" pour recevoir un nouveau courriel d'activation",b="Il n'y a aucun compte reli\xE9 \xE0 cette adresse courriel. Veuillez vous",N="cr\xE9er un compte",y=" Une erreur est survenue lors de le r\xE9initialisation de votre mot de passe. Veuillez r\xE9essayer plus tard. ",G="Code de r\xE9initialisation invalide",B="Un nouveau lien de r\xE9initialisation a \xE9t\xE9 envoy\xE9 par courriel.",L=" Connexion ",X="Mot de passe oubli\xE9",W="Mot de passe chang\xE9 avec succ\xE8s.",F=" Connexion ",[["passwordChangedTemplate",""],["emailSentTemplate",""],o,n,i,s,r,c,d,a,u,S,E,P,O,f,I,b,N,y,G,B,L,X,W,F,[4,"ngIf"],["class","email-verification",4,"ngIf","ngIfElse"],[1,"email-verification"],[1,"form-section-title"],[3,"keydown.enter","formGroup"],[1,"auth-form-content"],[1,"full-width"],[1,"password-container"],["required","","matInput","","minlength","8","formControlName","password","autocomplete","new-password",3,"input","type"],["class","password-toggle","matSuffix","","aria-label","Toggle password visibility",3,"matTooltip","click",4,"ngIf"],[1,"password-hint"],[3,"passwordFormControl"],["class","spacing-hint",4,"ngIf"],[1,"full-width","margin-bottom-1"],["required","","matInput","","formControlName","confirmPassword",3,"input","errorStateMatcher","type"],[1,"auth-form-actions"],["expand","block",1,"ion-custom-button-full","ion-custom-button-standard",3,"click","disabled"],["matSuffix","","aria-label","Toggle password visibility",1,"password-toggle",3,"click","matTooltip"],[1,"toggle-icon",3,"ngClass"],[1,"spacing-hint"],["class","auth-container email-verification",4,"ngIf","ngIfElse"],[1,"auth-container","email-verification"],["matInput","","type","email","placeholder","Courriel","formControlName","courriel"],["style","text-align: left",4,"ngIf"],["expand","block",1,"ion-custom-button-full","ion-custom-button-standard",3,"click"],[2,"text-align","left"],[3,"click","routerLink"],["routerLink","/utilisateur/creer"],["expand","block","routerLink","/utilisateur/connexion",1,"ion-custom-button-full","ion-custom-button-standard"]]},template:function(n,i){1&n&&(e.j41(0,"ion-content"),e.DNE(1,cl,2,2,"div",26)(2,ml,4,2,"div",26)(3,Nl,8,0,"ng-template",null,0,e.C5r),e.k0s()),2&n&&(e.R7$(),e.Y8G("ngIf",i.codeVerification),e.R7$(),e.Y8G("ngIf",!i.codeVerification))},dependencies:[Ce.fg,R.rl,R.nJ,R.MV,R.TL,R.yw,Ie.oV,A.YU,A.bT,l.qT,l.me,l.BC,l.cb,l.YS,l.xh,l.j4,l.JD,$.Jm,$.W9,$.N7,$.oY,Yn,V.Wk],styles:[".spacing-hint[_ngcontent-%COMP%]{padding-bottom:100px}.full-width[_ngcontent-%COMP%]{width:100%}.password-toggle[_ngcontent-%COMP%] .toggle-icon[_ngcontent-%COMP%]{font-size:18px;margin-bottom:0rem;-webkit-text-fill-color:initial;color:var(--light-text-color);cursor:pointer}"]}),_})();const Ol=t=>({"filter-searche-global-active":t}),Ml=()=>["../","connexion"];function Al(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,4),e.k0s())}function gl(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,5),e.k0s())}function Il(t,_){1&t&&(e.j41(0,"mat-error",19),e.pXf(1,6),e.k0s())}function hl(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",13)(1,"h2",14),e.pXf(2,0),e.k0s(),e.j41(3,"p"),e.pXf(4,1),e.k0s(),e.j41(5,"form",15)(6,"div",16)(7,"mat-form-field",17)(8,"mat-label"),e.pXf(9,2),e.k0s(),e.nrm(10,"input",18),e.DNE(11,Al,2,0,"mat-error")(12,gl,2,0,"mat-error"),e.k0s(),e.DNE(13,Il,2,0,"mat-error",19),e.k0s(),e.j41(14,"div",20)(15,"ion-button",21),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.resetPassword())}),e.pXf(16,3),e.k0s()()()()}if(2&t){const o=e.XpG();e.R7$(5),e.Y8G("formGroup",o.resetPassForm),e.R7$(6),e.vxM(11,o.courriel.touched&&o.courriel.hasError("required")?11:-1),e.R7$(),e.vxM(12,o.courriel.touched&&o.courriel.hasError("invalidEmail")?12:-1),e.R7$(),e.vxM(13,null!=o.errorsForm&&o.errorsForm.erreurInconnue?13:-1)}}function Rl(t,_){1&t&&(e.j41(0,"div",22)(1,"h1"),e.pXf(2,7),e.k0s(),e.j41(3,"p"),e.pXf(4,8),e.k0s(),e.j41(5,"div",23)(6,"ion-button",24),e.pXf(7,9),e.k0s()()()),2&t&&(e.R7$(6),e.Y8G("routerLink",e.lJ4(1,Ml)))}let Ll=(()=>{var t;class _{constructor(){this.destroyRef=(0,e.WQX)(e.abz),this.utilisateurService=(0,e.WQX)(ce.$),this.fb=(0,e.WQX)(l.ze),this.store=(0,e.WQX)(j.il),this.emailSent=!1,this.selectIsSearchHeaderVisible$=this.store.select(T.selectIsSearchHeaderVisible)}ngOnInit(){this.resetPassForm=this.fb.group({courriel:["",[l.k0.required,(0,w.Bjz)()]]})}onContentClick(){this.store.dispatch(T.Actions.setIsSearchHeaderVisible({payload:!1}))}resetPassword(){this.resetPassForm.markAllAsTouched(),this.resetPassForm.updateValueAndValidity(),this.resetPassForm.valid&&this.utilisateurService.resetPassword(this.resetPassForm.value).pipe((0,g.pQ)(this.destroyRef),(0,Me.M)(()=>this.emailSent=!0),(0,oe.W)(n=>(this.resetPassForm.setErrors({erreurInconnue:!0}),(0,K.of)(n)))).subscribe()}get courriel(){return this.resetPassForm.controls.courriel}get errorsForm(){return this.resetPassForm.errors}}return(t=_).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["email-verification"]],decls:6,vars:9,consts:()=>{let o,n,i,s,r,c,d,a,u,S;return o="Mot de passe oubli\xE9",n="Veuillez saisir l'adresse courriel du compte",i="Courriel",s=" Envoyer ",r=" Champ obligatoire ",c=" Courriel non valide ",d=" Une erreur est survenue lors de le r\xE9initialisation de votre mot de passe. Veuillez r\xE9essayer plus tard. ",a="Mot de passe oubli\xE9",u="Un lien de r\xE9initialisation a \xE9t\xE9 envoy\xE9 par courriel si celui-ci est li\xE9 \xE0 un compte.",S=" Connexion ",[o,n,i,s,r,c,d,a,u,S,[1,"hide-desktop","mobile-header",3,"headerTitle","returnButtonType","menuId"],["id","resetPassword",3,"click","ngClass"],[3,"keydown.enter"],[1,"email-verification"],[1,"form-section-title"],[3,"formGroup"],[1,"auth-form-content"],[1,"full-width","margin-bottom-1"],["matInput","","type","email","required","","formControlName","courriel"],[1,"margin-bottom-2",2,"text-align","left"],[1,"auth-form-actions","margin-top-1"],["expand","block",1,"ion-custom-button-full","ion-cu
1stom-button-standard",3,"click"],[1,"auth-container","email-verification"],[1,"auth-form-actions"],["expand","block",1,"ion-custom-button-full","ion-custom-button-standard",3,"routerLink"]]},template:function(n,i){1&n&&(e.nrm(0,"vplus-mobile-header",10),e.j41(1,"ion-content",11),e.nI1(2,"async"),e.bIt("click",function(){return i.onContentClick()}),e.j41(3,"form",12),e.bIt("keydown.enter",function(){return i.resetPassword()}),e.DNE(4,hl,17,4,"div",13)(5,Rl,8,2),e.k0s()()),2&n&&(e.Y8G("headerTitle","")("returnButtonType","home-button")("menuId","resetPassword"),e.R7$(),e.Y8G("ngClass",e.eq3(7,Ol,e.bMT(2,5,i.selectIsSearchHeaderVisible$))),e.R7$(3),e.vxM(4,i.emailSent?5:4))},dependencies:[Ce.fg,R.rl,R.nJ,R.TL,A.YU,l.qT,l.me,l.BC,l.cb,l.YS,l.cV,l.j4,l.JD,de.f,$.Jm,$.W9,$.N7,V.Wk,A.Jj],encapsulation:2}),_})();var hn=C(5951),Ul=C(82765),Qe=C(36013),Mt=C(87748);const bl=["stepper"],vl=["phoneNumber"],$l=["phoneNumberType"],Fl=t=>({"filter-searche-global-active":t}),Gl=t=>({"stepper-form-hide-header":t}),Dl=t=>({"checkbox-invalid":t});function yl(t,_){1&t&&(e.j41(0,"span",61),e.pXf(1,10),e.k0s())}function Xl(t,_){1&t&&e.nrm(0,"i",92)}function kl(t,_){1&t&&e.pXf(0,11)}function xl(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,15),e.k0s())}function jl(t,_){1&t&&(e.j41(0,"div",97),e.pXf(1,16),e.k0s())}function wl(t,_){if(1&t&&(e.j41(0,"div",71)(1,"form",93)(2,"mat-label",94),e.pXf(3,12),e.k0s(),e.j41(4,"mat-radio-group",95)(5,"mat-radio-button",96),e.pXf(6,13),e.k0s(),e.j41(7,"mat-radio-button",96),e.pXf(8,14),e.k0s()(),e.DNE(9,xl,2,0,"mat-error")(10,jl,2,0,"div",97),e.k0s()()),2&t){const o=e.XpG();e.Y8G("formGroup",o.fgRenseignementSupplementaires),e.R7$(5),e.Y8G("value",!0),e.R7$(2),e.Y8G("value",!1),e.R7$(2),e.vxM(9,o.msssQuestionPourMoi.touched&&null!=o.msssQuestionPourMoi.errors&&o.msssQuestionPourMoi.errors.required?9:-1),e.R7$(),e.vxM(10,o.msssQuestionPourMoi?-1:10)}}function Vl(t,_){1&t&&(e.j41(0,"mat-error",74),e.EFF(1,"Champ obligatoire"),e.k0s())}function zl(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,17),e.k0s())}function Hl(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,18),e.k0s())}function Yl(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,19),e.k0s())}function Bl(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,20),e.k0s())}function ql(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,21),e.k0s())}function Wl(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,22),e.k0s())}function Jl(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,26),e.k0s())}function Ql(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,27),e.k0s())}function Kl(t,_){if(1&t&&(e.j41(0,"mat-option",100),e.EFF(1),e.k0s()),2&t){const o=_.$implicit;e.Y8G("value",o.value),e.R7$(),e.SpI(" ",o.label," ")}}function Zl(t,_){if(1&t&&(e.j41(0,"div",77)(1,"mat-form-field")(2,"mat-label"),e.pXf(3,23),e.k0s(),e.nrm(4,"input",98,1),e.DNE(6,Jl,2,0,"mat-error")(7,Ql,2,0,"mat-error"),e.k0s(),e.j41(8,"mat-form-field")(9,"mat-label"),e.pXf(10,24),e.k0s(),e.j41(11,"mat-select",99,2),e.Z7z(13,Kl,2,2,"mat-option",100,e.Vm6),e.k0s(),e.j41(15,"mat-error"),e.pXf(16,25),e.k0s()()()),2&t){let o,n;const i=e.XpG();e.R7$(4),e.Y8G("required",i.citoyenForm.isPhoneRequired||(null==(o=i.signUpForm.get("typTelId").value)?null:o.length)>0)("imask",i.appConfig.appConfig.telMaskObjet)("unmask",!0),e.R7$(2),e.vxM(6,i.signUpForm.controls.telephone.touched&&null!=i.signUpForm.controls.telephone.errors&&i.signUpForm.controls.telephone.errors.required?6:-1),e.R7$(),e.vxM(7,i.signUpForm.controls.telephone.touched&&null!=i.signUpForm.controls.telephone.errors&&i.signUpForm.controls.telephone.errors.pattern?7:-1),e.R7$(4),e.Y8G("required",(null==(n=i.signUpForm.get("telephone").value)?null:n.length)>0),e.R7$(2),e.Dyx(i.EnumTypeTelephoneArray)}}function ec(t,_){if(1&t){const o=e.RV6();e.j41(0,"mat-icon-button",101),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.togglePasswordVisibility())}),e.nrm(1,"i",102),e.k0s()}if(2&t){const o=e.XpG();e.FS9("matTooltip",o.passwordHidden?o.labels.showPassword:o.labels.hidePassword),e.R7$(),e.Y8G("ngClass",o.passwordHidden?"icon-eye":"icon-eye-off")}}function nc(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,28),e.k0s())}function tc(t,_){1&t&&e.nrm(0,"div",83)}function oc(t,_){if(1&t){const o=e.RV6();e.j41(0,"mat-icon-button",101),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.togglePasswordConfirmationVisibility())}),e.nrm(1,"i",102),e.k0s()}if(2&t){const o=e.XpG();e.FS9("matTooltip",o.passwordConfirmationHidden?o.labels.showPassword:o.labels.hidePassword),e.R7$(),e.Y8G("ngClass",o.passwordConfirmationHidden?"icon-eye":"icon-eye-off")}}function ic(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,29),e.k0s())}function _c(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,30),e.k0s())}function sc(t,_){if(1&t&&(e.j41(0,"mat-option",100),e.EFF(1),e.k0s()),2&t){const o=_.$implicit;e.Y8G("value",o.value),e.R7$(),e.SpI(" ",o.label," ")}}function rc(t,_){if(1&t&&(e.j41(0,"mat-form-field")(1,"mat-label"),e.pXf(2,31),e.k0s(),e.j41(3,"mat-select",103),e.Z7z(4,sc,2,2,"mat-option",100,e.Vm6),e.k0s(),e.j41(6,"mat-error"),e.pXf(7,32),e.k0s()()),2&t){const o=e.XpG();e.R7$(3),e.Y8G("required",o.citoyenForm.isSexeRequired),e.R7$(),e.Dyx(o.sexeArray)}}function ac(t,_){if(1&t&&(e.j41(0,"mat-option",100),e.EFF(1),e.k0s()),2&t){const o=_.$implicit;e.Y8G("value",o.value),e.R7$(),e.SpI(" ",o.label," ")}}function lc(t,_){if(1&t&&(e.j41(0,"mat-form-field")(1,"mat-label"),e.pXf(2,33),e.k0s(),e.j41(3,"mat-select",104),e.Z7z(4,ac,2,2,"mat-option",100,e.Vm6),e.k0s(),e.j41(6,"mat-error"),e.pXf(7,34),e.k0s()()),2&t){const o=e.XpG();e.R7$(3),e.Y8G("required",o.citoyenForm.isLangComRequired),e.R7$(),e.Dyx(o.langComArray)}}function cc(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,37),e.k0s())}function dc(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,38),e.k0s())}function uc(t,_){if(1&t&&(e.j41(0,"div",85)(1,"mat-form-field",105)(2,"mat-label"),e.pXf(3,35),e.k0s(),e.nrm(4,"input",106),e.j41(5,"mat-hint",107),e.pXf(6,36),e.k0s(),e.nrm(7,"mat-datepicker-toggle",108)(8,"mat-datepicker",null,3),e.k0s(),e.DNE(10,cc,2,0,"mat-error")(11,dc,2,0,"mat-error"),e.k0s()),2&t){const o=e.sdS(9),n=e.XpG();e.R7$(),e.Y8G("floatLabel","Auto"),e.R7$(3),e.Y8G("required",n.citoyenForm.isDateNaissanceRequired)("matDatepicker",o)("max",n.today),e.R7$(3),e.Y8G("for",o),e.R7$(3),e.vxM(10,n.signUpForm.controls.dateNaissance.touched&&null!=n.signUpForm.controls.dateNaissance.errors&&n.signUpForm.controls.dateNaissance.errors.required?10:-1),e.R7$(),e.vxM(11,n.signUpForm.controls.dateNaissance.hasError("invalidAgeMinimal")?11:-1)}}function Cc(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",113)(1,"button",114),e.bIt("click",function(){e.eBV(o);const i=e.XpG().$index,s=e.XpG(2);return e.Njj(s.deleteAddress(i))}),e.nrm(2,"i",115),e.k0s()()}}function Ec(t,_){if(1&t){const o=e.RV6();e.j41(0,"div")(1,"div",110)(2,"div",111)(3,"vplus-adresse-autocomplete",112),e.bIt("adresseChanged",function(i){const s=e.eBV(o).$index,r=e.XpG(2);return e.Njj(r.onAdresseChanged(i,s))}),e.k0s()(),e.DNE(4,Cc,3,0,"div",113),e.k0s()()}if(2&t){const o=_.$implicit,n=_.$index,i=e.XpG(2);e.R7$(3),e.Y8G("isRequired",i.citoyenForm.isAddressRequired&&0===n)("placeholder",0===n?i.adressePostaleString:i.adresseString)("displayAddressNotFound",!1)("adresseControl",o.controls.adresse)("nomControl",i.signUpForm.get("nom"))("prenomControl",i.signUpForm.get("prenom"))("courrielControl",i.signUpForm.get("courriel"))("telephoneControl",i.signUpForm.get("telephone"))("noAppartementControl",o.controls.noAppartement)("ngClass",i.adressesFormArray.length>1?"full-width-adresse":"width-adresse"),e.R7$(),e.vxM(4,i.adressesFormArray.length>1?4:-1)}}function Tc(t,_){if(1&t){const o=e.RV6();e.j41(0,"div",109)(1,"button",116),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.addAddress())}),e.nrm(2,"i",117),e.k0s(),e.j41(3,"span",118),e.pXf(4,40),e.k0s()()}}function Sc(t,_){if(1&t&&(e.j41(0,"div",86)(1,"h4",94)(2,"span"),e.pXf(3,39),e.k0s()(),e.Z7z(4,Ec,5,11,"div",null,e.Vm6),e.DNE(6,Tc,5,0,"div",109),e.k0s()),2&t){const o=e.XpG();e.R7$(4),e.Dyx(o.adressesFormArray.controls),e.R7$(2),e.vxM(6,o.adressesFormArray.length<3?6:-1)}}function pc(t,_){1&t&&(e.j41(0,"mat-error"),e.pXf(1,44),e.k0s())}function mc(t,_){if(1&t&&(e.j41(0,"div",71)(1,"form",93)(2,"mat-label",94),e.pXf(3,41),e.k0s(),e.j41(4,"mat-radio-group",119)(5,"mat-radio-button",120),e.pXf(6,42),e.k0s(),e.j41(7,"mat-radio-button",96),e.pXf(8,43),e.k0s(),e.DNE(9,pc,2,0,"mat-error"),e.k0s()()()),2&t){const o=e.XpG();e.Y8G("formGroup",o.fgRenseignementSupplementaires),e.R7$(5),e.Y8G("value",!0),e.R7$(2),e.Y8G("value",!1),e.R7$(2),e.vxM(9,o.msssQuestionMaladieChronique.touched&&null!=o.msssQuestionMaladieChronique.errors&&o.msssQuestionMaladieChronique.errors.required?9:-1)}}function Nc(t,_){1&t&&(e.j41(0,"span")(1,"span"),e.pXf(2,45),e.k0s(),e.j41(3,"a",121),e.pXf(4,46),e.k0s(),e.EFF(5,". "),e.k0s()),2&t&&(e.R7$(3),e.Y8G("routerLink","/confidentialite"))}function fc(t,_){1&t&&(e.j41(0,"span",122)(1,"span"),e.pXf(2,47),e.k0s(),e.j41(3,"a",121),e.pXf(4,48),e.k0s(),e.j41(5,"span"),e.pXf(6,49),e.k0s(),e.j41(7,"a",121),e.pXf(8,50),e.k0s(),e.EFF(9,". "),e.k0s()),2&t&&(e.R7$(3),e.Y8G("routerLink","/confidentialite"),e.R7$(4),e.Y8G("routerLink","/conditions-utilisation"))}function Pc(t,_){1&t&&(e.j41(0,"mat-error")(1,"span",123),e.pXf(2,51),e.k0s()())}function Oc(t,_){if(1&t){const o=e.RV6();e.j41(0,"button",124),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.next())}),e.pXf(1,52),e.k0s()}}function Mc(t,_){1&t&&(e.j41(0,"button",90),e.pXf(1,53),e.k0s())}function Ac(t,_){1&t&&e.pXf(0,55)}function gc(t,_){if(1&t){const o=e.RV6();e.j41(0,"button",129),e.bIt("click",function(){e.eBV(o);const i=e.XpG(2);return e.Njj(i.signUp())}),e.pXf(1,56),e.k0s()}}function Ic(t,_){if(1&t){const o=e.RV6();e.j41(0,"mat-step",91),e.DNE(1,Ac,1,0,"ng-template",69),e.j41(2,"vplus-abonnements-content",125),e.bIt("checkPhoneNumber",function(i){e.eBV(o);const s=e.XpG();return e.Njj(s.checkPhoneNumber(i))}),e.k0s(),e.j41(3,"div",126)(4,"button",127),e.pXf(5,54),e.k0s(),e.DNE(6,gc,2,0,"button",128),e.k0s()()}if(2&t){const o=e.XpG(),n=e.sdS(13);e.Y8G("stepControl",o.catAlertesForm)("completed",0!==(null==n?null:n.selectedIndex)&&1!==(null==n?null:n.selectedIndex)),e.R7$(2),e.Y8G("isSignUp",!0)("abonnementsForm",o.catAlertesForm)("userHasPhone",""!==o.signUpForm.get("telephone").value)("userUseFixe",o.signUpForm.get("typTelId").value===o.EnumTypeTelephonePc.Fixe.value),e.R7$(4),e.vxM(6,o.sandboxMode?-1:6)}}class hc{constructor(_){this.errorMessage=_}isErrorState(_){return(null==_?void 0:_.touched)&&(null==_?void 0:_.parent.hasError(this.errorMessage))}}let Rc=(()=>{var t;class _{get password(){return this.signUpForm.get("password")}get confirmPassword(){return this.signUpForm.get("confirmPassword")}constructor(){var n;this.fb=(0,e.WQX)(l.ok),this.store=(0,e.WQX)(j.il),this.actions$=(0,e.WQX)(M.En),this.asyncCourrielValidators=(0,e.WQX)(vn.H),this.route=(0,e.WQX)(V.nX),this.appConfig=(0,e.WQX)(te.o),this.appMetaTags=(0,e.WQX)(ge.W),this.router=(0,e.WQX)(V.nX),this.destroyRef=(0,e.WQX)(e.abz),this.oAuthService=(0,e.WQX)(Dn.T),this.matcher=new hc("notSame"),this.servicesOffertsList=[],this.submitEnCours=!1,this.newEmplacements=[],this.formWasSubmitted=!1,this.sexeArray=Object.values(m.dz),this.langComArray=Object.values(m.DP),this.labels={showPassword:"Aff
1icher",hidePassword:"Masquer"},this.EnumTypeTelephonePc=m.vR,this.EnumTypeTelephoneArray=Object.values(m.vR),this.showFileLoader=!1,this.removeFileSubject=new ze.B,this.today=new Date,this.isMessignyApp=!1,this.isPasswordConfirmationNotEmpty=!1,this.isPasswordNotEmpty=!1,this.EnumCommunicationTypeCodeHR=p.X4,this.passwordHidden=!0,this.passwordConfirmationHidden=!0,this.adressePostaleString="Adresse postale",this.adresseString="Adresse",this.emplacements=[],this.selectIsSearchHeaderVisible$=this.store.select(T.selectIsSearchHeaderVisible),this.citoyenForm=this.appConfig.appConfig.citoyenForm,this.today.setDate(this.today.getDate()),this.servicesDisponibles=null!==(n=this.appConfig.appConfig.paramList.servicesDisponibles)&&void 0!==n?n:[]}get msssQuestionPourMoi(){return this.inscriptionMSSS.controls.pourMoi}get msssQuestionMaladieChronique(){return this.inscriptionMSSS.controls.maladieChronique}ngOnInit(){this.queryParam=this.router.snapshot.queryParams.redirectto,this.appConfig.appConfig.useOAuth?this.oAuthService.startSigninMainWindow(this.queryParam).pipe((0,g.pQ)(this.destroyRef)).subscribe():(this.actions$.pipe((0,g.pQ)(this.destroyRef),(0,M.gp)(z.signUpSuccess,z.signUpFail)).subscribe(()=>{this.submitEnCours=!1}),this.isMSSS="msss"===this.appConfig.appConfig.appNom,this.isHampstead="hampstead"===this.appConfig.appConfig.appNom,this.formWasSubmitted=!1,this.store.select(T.selectModulesActifs).pipe((0,g.pQ)(this.destroyRef)).subscribe(n=>{this.moduleAlerteIsActif=n.includes(m.AL.Alerte)}),this.servicesOffertsList$=this.route.snapshot.data.servicesOfferts,this.sandboxMode=this.appConfig.appConfig.sandbox,this.isMessignyApp="messigny-et-vantoux"===this.appConfig.appConfig.appNom,this.signUpForm=this.fb.group({nom:["",[l.k0.required,(0,w.zl_)()]],prenom:["",[l.k0.required,(0,w.zl_)()]],courriel:["",[l.k0.required,(0,w.Bjz)()],this.asyncCourrielValidators.validateCourriel()],typTelId:[null,this.getTypePhoneValidators()],telephone:["",this.getPhoneValidators()],password:["",[l.k0.required,(0,w.E0m)(),(0,w.PQk)(),(0,w.cBX)()]],confirmPassword:["",l.k0.required],adresses:this.fb.array([]),dateNaissance:[null,(0,w.H04)()],sexe:null,langCom:null}),this.signUpForm.setValidators([Hn("password","confirmPassword")]),this.catAlertesForm=this.fb.group({id:{value:null,disabled:!1},abonneAllCat:!1,categories:this.fb.group({})}),this.signUpForm.addControl("privacyPolicy",new l.MJ(!1)),this.signUpForm.get("privacyPolicy").setValidators(l.k0.requiredTrue),this.adressesFormArray=this.signUpForm.controls.adresses,this.adressesFormArray.setDefaultControlBuilder(this.createAdresseFormControl.bind(this)),this.addAddress(),this.isMSSS&&(this.inscriptionMSSS=this.fb.group({pourMoi:[null,l.k0.required],maladieChronique:[null,l.k0.required]}),this.fgRenseignementSupplementaires=this.fb.group({}),this.fgRenseignementSupplementaires.addControl("inscriptionMSSS",this.inscriptionMSSS),this.signUpForm.addControl("enumRenseignementsSuppId",new l.MJ(m.WF.MSSS)),this.signUpForm.addControl("RenseignementsSupplementaires",this.fgRenseignementSupplementaires)),this.servicesOffertsList$.pipe((0,_t.p)(n=>n.includes("texto")),(0,ae.n)(()=>this.signUpForm.get("telephone").valueChanges),(0,g.pQ)(this.destroyRef)).subscribe(n=>{""===(null==n?void 0:n.trim())&&!this.citoyenForm.isPhoneRequired&&(this.signUpForm.get("typTelId").patchValue(null),this.signUpForm.get("typTelId").clearValidators()),this.signUpForm.get("typTelId").updateValueAndValidity({emitEvent:!1,onlySelf:!0})}),this.signUpForm.get("typTelId").valueChanges.pipe((0,g.pQ)(this.destroyRef)).subscribe(n=>{this.refreshPhoneValidators(n)}))}scrollToTop(){var n,i;null===(n=document.activeElement)||void 0===n||null===(i=n.blur)||void 0===i||i.call(n),this.scrollIonContentToTop(),setTimeout(()=>{this.scrollIonContentToTop()},300)}scrollIonContentToTop(){var n=this;return(0,zn.A)(function*(){if(!n.ionContent)return;yield n.ionContent.scrollToTop(0);const i=yield n.ionContent.getScrollElement();i&&(i.scrollTop=0)})()}onContentClick(){this.store.dispatch(T.Actions.setIsSearchHeaderVisible({payload:!1}))}
1createAdresseFormControl(){return new l.gE({id:new l.MJ((0,w.SiN)()),adresse:new l.MJ(null),noAppartement:new l.MJ(null),adresseFormatte:new l.MJ(null),adrVille:new l.MJ(null)})}checkPhoneNumber(n){this.stepper.previous(),setTimeout(()=>{"typeTelephone"===n?this.phoneNumberType._elementRef.nativeElement.focus():this.phoneNumber.nativeElement.focus()},0)}addAddress(){this.adressesFormArray.length<3&&this.adressesFormArray.push(this.createAdresseFormControl())}deleteAddress(n=0){this.adressesFormArray.removeAt(n)}ionViewWillEnter(){this.appMetaTags.updateMetaTags("Cr\xE9er un compte")}preventPanelExpansion(n){n.stopPropagation()}getTypePhoneValidators(){var n;return(null===(n=this.signUpForm)||void 0===n||null===(n=n.get("telephone").value)||void 0===n?void 0:n.length)>0?[l.k0.required]:[]}getPhoneValidators(n=null){if(!this.signUpForm)return;const i=null!=n?n:this.signUpForm.get("typTelId").value;return this.citoyenForm.isPhoneRequired||this.signUpForm&&(null==i?void 0:i.length)>0?[l.k0.required,l.k0.pattern(this.appConfig.appConfig.telPattern)]:[l.k0.pattern(this.appConfig.appConfig.telPattern)]}refreshPhoneValidators(n=null){this.signUpForm.get("telephone").clearValidators(),this.signUpForm.get("telephone").setValidators(this.getPhoneValidators(n)),this.signUpForm.get("telephone").updateValueAndValidity({emitEvent:!1,onlySelf:!0})}signUp(n=!1){var i;if(null===(null===(i=this.signUpForm.get("enumRenseignementsSuppId"))||void 0===i?void 0:i.value)&&this.isMSSS&&this.signUpForm.get("enumRenseignementsSuppId").patchValue(m.WF.MSSS),this.signUpForm.get("privacyPolicy").markAsTouched(),this.signUpForm.get("dateNaissance").markAsTouched(),!n&&this.catAlertesForm.invalid&&(this.catAlertesForm.markAllAsTouched(),this.store.dispatch(z.showSnackBarErrorUserCreateOrEdit({renseignementPersoInvalid:!1}))),n||this.signUpForm.invalid||this.catAlertesForm.invalid||this.isMSSS&&this.inscriptionMSSS.invalid||this.submitEnCours)return;const s=this.catAlertesForm.getRawValue();let r=Object.assign({},this.signUpForm.value,s);if(r.hasAbonnementTexto=Object.values(r.categories).some(S=>!0===S.abonneTexto),this.isMSSS){const S=this.fgRenseignementSupplementaires.getRawValue();r=Object.assign({},r,{renseignementsSupplementaires:S})}this.submitEnCours=!0,this.emplacements.forEach((S,E)=>{var P;this.adressesFormArray.value[E]&&(null===(P=this.adressesFormArray.at(E))||void 0===P||P.get("adrVille").patchValue(S.adrVille),null!=S&&S.isNew&&(S.adrNoApp=this.adressesFormArray.value[E].noAppartement!==(null==S?void 0:S.adrNoApp)?this.adressesFormArray.value[E].noAppartement:null==S?void 0:S.adrNoApp,S.id=(0,w.SiN)(),S.adrId=(0,w.SiN)(),this.newEmplacements.splice(E,1,(0,Ne.cloneDeep)(S))))});const c=this.newEmplacements,d=this.citoyenForm.hasAddress,a=new m.ow(r.prenom+" "+r.nom,p.zA.Citoyen),u=[];a.details.push(new m.TM(p.Wp.Creation)),u.push(a),this.store.dispatch(z.signUp({payload:{user:r,newEmplacements:c,shouldUpdateAddress:d,journalEvenement:u,queryParam:this.queryParam}}))}onAdresseChanged(n,i){n&&(this.emplacements.splice(i,1,n),this.adressesFormArray.at(i).get("adresseFormatte").patchValue(n.adresse))}ionViewDidLeave(){this.signUpForm.reset(),this.stepper.selectedIndex=0}onInput(n){this.isPasswordNotEmpty=this.password.value.trim().length>0}onConfirmationInput(n){this.isPasswordConfirmationNotEmpty=this.confirmPassword.value.trim().length>0}onInputBlur(n){var i;const s=null===(i=n.value)||void 0===i?void 0:i.trim();n.patchValue(s),s?n.updateValueAndValidity():n.setErrors({required:!0})}nextStepMSSS(){this.isMSSS&&this.inscriptionMSSS.markAllAsTouched()}next(){this.formWasSubmitted=!0,this.signUpForm.markAllAsTouched(),this.signUpForm.invalid?this.store.dispatch(z.showSnackBarErrorUserCreateOrEdit({renseignementPersoInvalid:!0})):this.scrollToTop()}togglePasswordVisibility(){this.passwordHidden=!this.passwordHidden}togglePasswordConfirmationVisibility(){this.passwordConfirmationHidden=!this.passwordConfirmationHidden}}return(t=_).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-sign-up"]],viewQuery:function(n,i){if
1(1&n&&(e.GBs(bl,5),e.GBs($.W9,5),e.GBs(vl,5),e.GBs($l,5)),2&n){let s;e.mGM(s=e.lsd())&&(i.stepper=s.first),e.mGM(s=e.lsd())&&(i.ionContent=s.first),e.mGM(s=e.lsd())&&(i.phoneNumber=s.first),e.mGM(s=e.lsd())&&(i.phoneNumberType=s.first)}},features:[e.Jv_([{provide:ie.Ju,useValue:"fr-FR"},{provide:ie.de,useValue:w.dLJ},{provide:ie.MJ,useClass:Oe.QH},{provide:Oe.ij,useValue:{useUtc:!0}}])],decls:75,vars:47,consts:()=>{let o,n,i,s,r,c,d,a,u,S,E,P,O,f,I,b,N,y,G,B,L,X,W,F,x,re,_e,se,h,Z,ne,H,J,le,Pe,q,be,ve,$e,Fe,Ge,De,ye,Xe,k,an,ln,cn,dn,un,Cn,En,Tn,Sn,pn;return o="Cr\xE9er un compte",n="Pr\xE9nom",i="Nom",s="Courriel",r="Mot de passe",c="Confirmer le mot de passe",d="L'inscription est d\xE9sactiv\xE9e jusqu'\xE0 la mise en production.",a="Renseignements personnels",u="Vous inscrivez-vous \xE0 la plateforme pour vous-m\xEAme ou pour un proche? *",S=" Pour moi-m\xEAme ",E=" Pour un proche ",P=" Ce champ est obligatoire ",O=" Veuillez remplir les champs ci-dessous avec les informations du proche. Assurez-vous d\u2019avoir acc\xE8s \xE0 l\u2019adresse courriel afin de valider l\u2019inscription. Le num\xE9ro de t\xE9l\xE9phone sera utilis\xE9 pour envoyer les communications. ",f="Champ invalide",I="Champ obligatoire",b="Champ invalide",N=" Champ obligatoire ",y=" Courriel non valide ",G=" Cette adresse courriel est d\xE9j\xE0 utilis\xE9e ",B="T\xE9l\xE9phone",L="Type",X=" Champ obligatoire ",W=" Champ obligatoire ",F=" T\xE9l\xE9phone non valide ",x=" Champ obligatoire ",re=" Champ obligatoire ",_e=" Les mots de passe saisis ne sont pas identiques ",se="Sexe",h=" Champ obligatoire ",Z="Langue de pr\xE9f\xE9rence",ne=" Champ obligatoire ",H="Date de naissance",J="JJ/MM/AAAA",le=" Champ obligatoire ",Pe=" Vous devez avoir 16 ans et plus pour vous inscrire ",q="Adresse(s)",be="Supprimer l'adresse",ve="Ajouter une adresse",$e="Ajouter une adresse",Fe="Maladie(s) chronique(s) (diab\xE8te, hypertension, probl\xE8me cardiaque, pulmonaire ou r\xE9nal, etc.)? *",Ge=" Oui ",De=" Non ",ye=" Ce champ est obligatoire ",Xe="J\u2019ai lu et j\u2019accepte la ",k="Politique de confidentialit\xE9",an="J\u2019ai lu et j\u2019accepte la ",ln=" Politique de confidentialit\xE9",cn=" et les ",dn=" Conditions d'utilisation",un=" Champ obligatoire ",Cn="Suivant",En="Cr\xE9er mon compte",Tn="Retour",Sn="Abonnements aux communications",pn="Cr\xE9er mon compte",[["stepper",""],["phoneNumber",""],["phoneNumberType",""],["picker",""],o,n,i,s,r,c,d,a,u,S,E,P,O,f,I,b,N,y,G,B,L,X,W,F,x,re,_e,se,h,Z,ne,H,J,le,Pe,q,$e,Fe,Ge,De,ye,Xe,k,an,ln,cn,dn,un,Cn,En,Tn,Sn,pn,[1,"hide-desktop","mobile-header",3,"defaultHref","headerTitle","returnButtonType","menuId"],["id","creerCompte",3,"click","ngClass"],[1,"main-page-container"],[1,"standard-content-layout","creer-compte"],[1,"red-color"],[1,"sign-up-title"],[1,"icon-user"],[1,"form-section-title"],[1,"stepper-form",3,"ngClass"],["linear","true"],["matStepperIcon","edit"],[3,"stepControl"],["matStepLabel",""],[3,"ngSubmit","formGroup"],[3,"formGroup"],[1,"step-form-content"],["required","","matInput","","type","text","formControlName","prenom","autocomplete","given-name",3,"blur"],["i18",""],["required","","matInput","","type","text","formControlName","nom","autocomplete","family-name",3,"blur"],["required","","matInput","","type","email","formControlName","courriel","autocomplete","email"],[1,"form-subdivision"],[1,"password-container"],["required","","matInput","","minlength","8","formControlName","password","autocomplete","new-password",3,"input","type"],[1,"margin-left-8"],["matSuffix","","aria-label","Toggle password visibility",1,"password-toggle",3,"matTooltip"],[3,"passwordFormControl","formWasSubmitted"],[1,"spacing-hint"],["required","","matInput","","formControlName","confirmPassword",3,"input","errorStateMatcher","type"],[1,"margin-bottom-2","field-custom-wrapper","birthday-container"],[1,"margin-bottom-1","full-width"],[1,"privacy-policy-checkbox","margin-top-1"],["formControlName","privacyPolicy",3,"ngClass"],[1,"stepper-bottom-actions","spacing-top"],["type","submit","matStepperNext","","mat-raised-button","",1,"custom-button-full","custom-button-standard","custom-button-stepper"],[3,"stepControl","completed"],[1,"icon-check"],["formGroupName","inscriptionMSSS"],[1,"margin-bottom-1"],["formControlName","pourMoi"],["color","primary",1,"margin-right-1",3,"value"],[1,"warning-message"],["matInput","","type","tel","formControlName","telephone","autocomplete","tel",3,"required","imask","unmask"],["formControlName","typTelId",3,"required"],[3,"value"],["matSuffix","","aria-label","Toggle password visibility",1,"password-toggle",3,"click","matTooltip"],[3,"ngClass"],["formControlName","sexe",3,"required"],["formControlName","langCom",3,"required"],["appearance","fill",1,"full-width","margin-bottom-0",3,"floatLabel"],["tabindex","-1","autocomplete","off","matInput","","formControlName","dateNaissance",3,"required","matDatepicker","max"],[1,"birthday-hint"],["matSuffix","",3,"for"],[1,"array-element-button"],[1,"element-flex"],[1,"width-address"],[1,"field-custom-wrapper","full-width",3,"adresseChanged","isRequired","placeholder","displayAddressNotFound","adresseControl","nomControl","prenomControl","courrielControl","telephoneControl","noAppartementControl","ngClass"],[1,"conteneur-delete-button"],["type","button","mat-button","","matTooltip",be,1,"publication-button","secondary-button","button-adresse",3,"click"],[1,"icon-poubelle"],["type","button","mat-button","","matTooltip",ve,1,"publication-button","secondary-button","button-adresse","button-adresse-ajout",3,"click"],[1,"icon-nouvel-element"],[1,"array-element-button-text"],["formControlName","maladieChronique"],["color","primary","default","",1,"margin-right-1",3,"value"],["target","_blank",3,"routerLink"],["ischecked","privacyPolicyAndTerms"],["ischecked",""],["type","submit","matStepperNext","","mat-raised-button","",1,"custom-button-full","custom-button-standard","custom-button-stepper",3,"click"],[3,"checkPhoneNumber","isSignUp","abonnementsForm","userHasPhone","userUseFixe"],[1,"stepper-bottom-actions","space-between","previous-btn"],["type","button","mat-stroked-button","","matStepperPrevious","",1,"custom-button-standard","custom-button-stroked","custom-button-stepper"],["type","submit","mat-raised-button","","matStepperNext","",1,"custom-button-full","custom-button-standard","custom-button-stepper"],["type","submit","mat-raised-button","","matStepperNext","",1,"custom-button-full","custom-button-standard","custom-button-stepper",3,"click"]]}
1,template:function(n,i){if(1&n){const s=e.RV6();e.nrm(0,"vplus-mobile-header",57),e.j41(1,"ion-content",58),e.nI1(2,"async"),e.bIt("click",function(){return e.eBV(s),e.Njj(i.onContentClick())}),e.j41(3,"div",59)(4,"div",60),e.DNE(5,yl,2,0,"span",61),e.j41(6,"div",62)(7,"span"),e.nrm(8,"i",63),e.k0s(),e.j41(9,"h2",64),e.pXf(10,4),e.k0s()(),e.j41(11,"div",65)(12,"mat-horizontal-stepper",66,0),e.DNE(14,Xl,1,0,"ng-template",67),e.j41(15,"mat-step",68),e.DNE(16,kl,1,0,"ng-template",69),e.j41(17,"form",70),e.bIt("ngSubmit",function(){return e.eBV(s),e.Njj(i.signUp(i.moduleAlerteIsActif))}),e.DNE(18,wl,11,5,"div",71),e.j41(19,"div",72)(20,"mat-form-field")(21,"mat-label"),e.pXf(22,5),e.k0s(),e.j41(23,"input",73),e.bIt("blur",function(){return e.eBV(s),e.Njj(i.onInputBlur(i.signUpForm.get("prenom")))}),e.k0s(),e.DNE(24,Vl,2,0,"mat-error",74)(25,zl,2,0,"mat-error"),e.k0s(),e.j41(26,"mat-form-field")(27,"mat-label"),e.pXf(28,6),e.k0s(),e.j41(29,"input",75),e.bIt("blur",function(){return e.eBV(s),e.Njj(i.onInputBlur(i.signUpForm.get("nom")))}),e.k0s(),e.DNE(30,Hl,2,0,"mat-error")(31,Yl,2,0,"mat-error"),e.k0s(),e.j41(32,"mat-form-field")(33,"mat-label"),e.pXf(34,7),e.k0s(),e.nrm(35,"input",76),e.DNE(36,Bl,2,0,"mat-error")(37,ql,2,0,"mat-error")(38,Wl,2,0,"mat-error"),e.k0s(),e.DNE(39,Zl,17,6,"div",77),e.j41(40,"mat-form-field")(41,"mat-label"),e.pXf(42,8),e.k0s(),e.j41(43,"div",78)(44,"input",79),e.bIt("input",function(c){return e.eBV(s),e.Njj(i.onInput(c))}),e.k0s(),e.nrm(45,"div",80),e.DNE(46,ec,2,2,"mat-icon-button",81),e.k0s(),e.DNE(47,nc,2,0,"mat-error"),e.j41(48,"mat-hint"),e.nrm(49,"vplus-password-hint",82),e.k0s()(),e.DNE(50,tc,1,0,"div",83),e.j41(51,"mat-form-field")(52,"mat-label"),e.pXf(53,9),e.k0s(),e.j41(54,"div",78)(55,"input",84),e.bIt("input",function(c){return e.eBV(s),e.Njj(i.onConfirmationInput(c))}),e.k0s(),e.nrm(56,"div",80),e.DNE(57,oc,2,2,"mat-icon-button",81),e.k0s(),e.DNE(58,ic,2,0,"mat-error")(59,_c,2,0,"mat-error"),e.k0s(),e.DNE(60,rc,8,1,"mat-form-field")(61,lc,8,1,"mat-form-field")(62,uc,12,7,"div",85)(63,Sc,7,1,"div",86),e.k0s(),e.DNE(64,mc,10,4,"div",71),e.j41(65,"div",87)(66,"mat-checkbox",88),e.DNE(67,Nc,6,1,"span")(68,fc,10,2),e.k0s(),e.DNE(69,Pc,3,0,"mat-error"),e.k0s(),e.j41(70,"div",89),e.DNE(71,Oc,2,0,"button",90)(72,Mc,2,0),e.k0s()()(),e.DNE(73,Ic,7,7,"mat-step",91),e.k0s()()(),e.nrm(74,"app-copyright-footer"),e.k0s()()}2&n&&(e.Y8G("defaultHref","utilisateur/profil")("headerTitle","")("returnButtonType","home-button")("menuId","creerCompte"),e.R7$(),e.Y8G("ngClass",e.eq3(41,Fl,e.bMT(2,39,i.selectIsSearchHeaderVisible$))),e.R7$(4),e.vxM(5,i.sandboxMode?5:-1),e.R7$(6),e.Y8G("ngClass",e.eq3(43,Gl,!i.moduleAlerteIsActif)),e.R7$(4),e.Y8G("stepControl",i.signUpForm),e.R7$(2),e.Y8G("formGroup",i.signUpForm),e.R7$(),e.vxM(18,i.isMSSS?18:-1),e.R7$(6),e.vxM(24,i.signUpForm.controls.prenom.touched&&i.signUpForm.controls.prenom.hasError("required")?24:-1),e.R7$(),e.vxM(25,i.signUpForm.controls.prenom.touched&&i.signUpForm.controls.prenom.hasError("invalidName")&&!i.signUpForm.controls.prenom.hasError("required")?25:-1),e.R7$(5),e.vxM(30,i.signUpForm.controls.nom.touched&&i.signUpForm.controls.nom.hasError("required")?30:-1),e.R7$(),e.vxM(31,i.signUpForm.controls.nom.touched&&i.signUpForm.controls.nom.hasError("invalidName")&&!i.signUpForm.controls.nom.hasError("required")?31:-1),e.R7$(5),e.vxM(36,i.signUpForm.controls.courriel.touched&&null!=i.signUpForm.controls.courriel.errors&&i.signUpForm.controls.courriel.errors.required?36:-1),e.R7$(),e.vxM(37,i.signUpForm.controls.courriel.touched&&i.signUpForm.controls.courriel.hasError("invalidEmail")?37:-1),e.R7$(),e.vxM(38,i.signUpForm.controls.courriel.touched&&i.signUpForm.controls.courriel.hasError("courrielUtilise")?38:-1),e.R7$(),e.vxM(39,i.citoyenForm.hasPhone?39:-1),e.R7$(5),e.Y8G("type",i.passwordHidden?"password":"text"),e.R7$(2),e.vxM(46,i.isPasswordNotEmpty?46:-1),e.R7$(),e.vxM(47,i.password.touched&&null!=i.password.errors&&i.password.errors.required?47:-1),e.R7$(2),e.Y8G("passwordFormControl",i.password)("formWasSubmitted",i.formWasSubmitted),e.R7$(),e.vxM(50,i.signUpForm.controls.password.value?50:-1),e.R7$(5),e.Y8G("errorStateMatcher",i.matcher)("type",i.passwordConfirmationHidden?"password":"text"),e.R7$(2),e.vxM(57,i.isPasswordConfirmationNotEmpty?57:-1),e.R7$(),e.vxM(58,null!=i.confirmPassword.errors&&i.confirmPassword.errors.required?58:-1),e.R7$(),e.vxM(59,i.confirmPassword.touched&&null!=i.signUpForm.errors&&i.signUpForm.errors.notSame&&""!=i.confirmPassword.value?59:-1),e.R7$(),e.vxM(60,i.citoyenForm.hasSexe?60:-1),e.R7$(),e.vxM(61,i.citoyenForm.hasLangCom?61:-1),e.R7$(),e.vxM(62,i.citoyenForm.hasDateNaissance?62:-1),e.R7$(),e.vxM(63,i.citoyenForm.hasAddress?63:-1),e.R7$(),e.vxM(64,i.isMSSS?64:-1),e.R7$(2),e.Y8G("ngClass",e.eq3(45,Dl,(null==i.signUpForm.controls.privacyPolicy.errors?null:i.signUpForm.controls.privacyPolicy.errors.required)&&i.signUpForm.controls.privacyPolicy.touched)),e.R7$(),e.vxM(67,i.isMessignyApp?67:68),e.R7$(2),e.vxM(69,null!=i.signUpForm.controls.privacyPolicy.errors&&i.signUpForm.controls.privacyPolicy.errors.required&&i.signUpForm.controls.privacyPolicy.touched?69:-1),e.R7$(2),e.vxM(71,i.moduleAlerteIsActif?71:72),e.R7$(2),e.vxM(73,i.moduleAlerteIsActif?73:-1))},dependencies:[Ce.fg,R.rl,R.nJ,R.MV,R.TL,R.yw,ie.wT,hn.VT,hn._g,Ul.So,xe.VO,ue.$z,Qe.V5,Qe.Ti,Qe.M6,Qe.F7,Qe.FR,Qe.xJ,Ee.Vh,Ee.bZ,Ee.bU,Ie.oV,A.YU,l.qT,l.me,l.BC,l.cb,l.YS,l.xh,l.cV,l.j4,l.JD,l.$R,Re.Zq,de.f,$.W9,$.oY,xn.v,Yn,Mt.G,V.Wk,Gn,A.Jj],styles:[".mat-mdc-checkbox-checked.mat-mdc-checkbox-disabled .mat-mdc-checkbox-background, .mat-mdc-checkbox-indeterminate.mat-mdc-checkbox-background{background-color:#989898!important}.upload-icon[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{font-size:2rem!important}.file-label-icon[_ngcontent-%COMP%]{align-self:center}.file-container[_ngcontent-%COMP%]{background-color:#efeded;padding:.5rem;border-radius:2px;margin-bottom:1rem;margin-top:.5rem;display:flex;flex-direction:row;justify-content:space-between}.file-icon[_ngcontent-%COMP%]{background:none;outline:none;font-size:1.2rem;color:#585757}.flex-files[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.privacy-policy-checkbox[_ngcontent-%COMP%] mat-error[_ngcontent-%COMP%]{margin-top:6px}.privacy-policy-checkbox[_ngcontent-%COMP%] .checkbox-invalid[_ngcontent-%COMP%]{color:#000}[_nghost-%COMP%] .mat-mdc-checkbox .mdc-checkbox{margin-top:initial;margin-bottom:initial;transform:translateY(2px)}[_nghost-%COMP%] .mat-mdc-checkbox .mdc-form-field>label{white-space:normal}.icon-poubelle[_ngcontent-%COMP%]{font-size:20px}.width-address[_ngcontent-%COMP%]{width:90%}.icon-nouvel-element[_ngcontent-%COMP%]{font-size:20px}.warning-message[_ngcontent-%COMP%]{background-color:#f8e69a;font-weight:700;font-size:15px;padding:8px;margin-bottom:25px}form[_ngcontent-%COMP%]{min-height:130px!important}@media (min-width: 768px){.block[_ngcontent-%COMP%]{white-space:nowrap}}@media (max-width: 700px){.width-adresse [_nghost-%COMP%] .adresse-inputs-container{width:91.2vw!important}.full-width-adresse [_nghost-%COMP%] .adresse-inputs-container{width:80.2vw!important}}[_nghost-%COMP%] .mat-horizontal-stepper-content[aria-expanded=false]{height:2px!important}@media (min-width: 768px) and (max-width: 768px){.width-adresse [_nghost-%COMP%] .adresse-inputs-container{width:87.5vw!important}.full-width-adresse [_nghost-%COMP%] .adresse-inputs-container{width:93.5vw!important}}@media (min-width: 819px) and (max-width: 913px){.conteneur-delete-button[_ngcontent-%COMP%]{margin-top:-12px}}.conteneur-delete-button[_ngcontent-%COMP%]{padding-top:20px}.icon-poubelle[_ngcontent-%COMP%]{font-size:18px}.element-flex[_ngcontent-%COMP%]{display:flex}.width-address[_ngcontent-%COMP%]{width:100%}.icon-nouvel-element[_ngcontent-%COMP%]{font-size:18px}@media (max-width: 900px){.conteneur-delete-button[_ngcontent-%COMP%]{margin-top:-15px}}.conteneur-delete-button[_ngcontent-%COMP%]{margin-left:9px}.button-adresse[_ngcontent-%COMP%]{border:none!important;font-size:20px!important;padding:0 8px!important;min-width:0!important;background:#262a411a;height:36px;width:36px;overflow:hidden}.button-adresse[_ngcontent-%COMP%] .mat-mdc-button .mdc-button__ripple, .button-adresse[_ngcontent-%COMP%] .mat-mdc-button .mdc-button__focus-ring{overflow:visible}.button-adresse-ajout[_ngcontent-%COMP%]{margin-right:15px}mat-mdc-radio-button[_ngcontent-%COMP%]{color:inherit!important}.abonne-all-container[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{padding-left:6px;color:var(--primary-color)}.birthday-hint[_ngcontent-%COMP%]{font-size:.7rem}.short-code-confirmation[_ngcontent-%COMP%]{background:var(--light-grey-color);padding:12px 16px;margin-bottom:1rem}.short-code-confirmation-msg[_ngcontent-%COMP%]{font-size:86%}.short-code-confirmation[_ngcontent-%COMP%] .icon-form-info[_ngcontent-%COMP%]{display:block;color:var(--primary-color);padding-top:2px;padding-right:8px}.short-code-confirmation[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;line-height:1.2rem}.spacing-hint[_ngcontent-%COMP%]{padding-bottom:170px}span[ischecked][_ngcontent-%COMP%]{font-size:14px}.previous-btn[_ngcontent-%COMP%]{padding-top:1.2rem}"]}),_})();function Lc(t,_){if(1&t){const o=e.RV6();e.j41(0,"mat-icon-button",16),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.togglePasswordVisibility())}),e.nrm(1,"i",17),e.k0s()}if(2&t){const o=e.XpG();e.FS9("matTooltip",o.passwordHidden?o.labels.showPassword:o.labels.hidePassword),e.R7$(),e.Y8G("ngClass",o.passwordHidden?"icon-eye":"icon-eye-off")}}function Uc(t,_){1&t&&(e.j41(0,"span"),e.pXf(1,4),e.k0s())}function bc(t,_){1&t&&(e.j41(0,"span"),e.pXf(1,5),e.k0s())}let vc=(()=>{var t;class _{constructor(n,i,s,r){this.dialogRef=n,this.data=i,this.authenticationService=s,this.store=r,this.form=new l.J3({password:new l.hs("",l.k0.required)}),this.passwordHidden=!0,this.isPasswordNotEmpty=!1,this.subs=new Pn.yU,this.labels={showPassword:"Aff
1icher",hidePassword:"Masquer"}}confirm(){this.form.invalid?this.form.markAllAsTouched():this.subs.add(this.authenticationService.resetMfaValidation(this.form.value.password).subscribe({next:()=>{this.dialogRef.close(!0)},error:n=>{1===n.code?this.form.get("password").setErrors({invalid:!0}):this.store.dispatch(new T.Actions.ShowSnackBar("Une erreur est survenue, veuillez r\xE9essayer",T.EnumSnackBarType.Echec))}}))}togglePasswordVisibility(){this.passwordHidden=!this.passwordHidden}onInput(n){this.isPasswordNotEmpty=this.form.get("password").value.trim().length>0}ngOnDestroy(){this.subs.unsubscribe()}}return(t=_).\u0275fac=function(n){return new(n||t)(e.rXU(ee.CP),e.rXU(ee.Vh),e.rXU(on.k),e.rXU(j.il))},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-reset-mfa-dialog"]],decls:17,vars:7,consts:()=>{let o,n,i,s,r,c;return o="Confirmer la d\xE9sactivation de l\u2019authentification \xE0 deux facteurs",n=" Pour confirmer la d\xE9sactivation de l\u2019authentification \xE0 deux facteurs, veuillez saisir votre mot de passe :\n",i="Annuler",s="Confirmer",r="Veuillez entrer votre mot de passe",c="Mot de passe invalide",[o,n,i,s,r,c,[1,"form-section-title"],[3,"ngSubmit","formGroup"],["appearance","outline",1,"full-width",3,"floatLabel"],[1,"password-container"],["formControlName","password","matInput","","placeholder","","autocomplete","new-password",3,"input","type"],["matSuffix","","class","password-toggle","aria-label","Toggle password visibility",3,"matTooltip","click",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions","",1,"dialog-buttons-section"],["type","button","fill","outline",1,"ion-custom-button-outline","ion-cu
1stom-button-standard",3,"mat-dialog-close"],["type","button",1,"ion-custom-button-standard","ion-custom-button-full",3,"click"],["matSuffix","","aria-label","Toggle password visibility",1,"password-toggle",3,"click","matTooltip"],[3,"ngClass"]]},template:function(n,i){if(1&n&&(e.j41(0,"h2",6),e.pXf(1,0),e.k0s(),e.j41(2,"p"),e.pXf(3,1),e.k0s(),e.j41(4,"form",7),e.bIt("ngSubmit",function(){return i.confirm()}),e.j41(5,"mat-form-field",8)(6,"div",9)(7,"input",10),e.bIt("input",function(r){return i.onInput(r)}),e.k0s(),e.DNE(8,Lc,2,2,"mat-icon-button",11),e.k0s(),e.j41(9,"mat-error"),e.DNE(10,Uc,2,0,"span",12)(11,bc,2,0,"span",12),e.k0s()(),e.j41(12,"div",13)(13,"ion-button",14),e.pXf(14,2),e.k0s(),e.j41(15,"ion-button",15),e.bIt("click",function(){return i.confirm()}),e.pXf(16,3),e.k0s()()()),2&n){let s,r;e.R7$(4),e.Y8G("formGroup",i.form),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(2),e.Y8G("type",i.passwordHidden?"password":"text"),e.R7$(),e.Y8G("ngIf",i.isPasswordNotEmpty),e.R7$(2),e.Y8G("ngIf",null==(s=i.form.get("password").errors)?null:s.required),e.R7$(),e.Y8G("ngIf",null==(r=i.form.get("password").errors)?null:r.invalid),e.R7$(2),e.Y8G("mat-dialog-close",!1)}},dependencies:[Ce.fg,R.rl,R.TL,R.yw,Ie.oV,ee.tx,ee.E7,A.YU,A.bT,l.qT,l.me,l.BC,l.cb,l.j4,l.JD,$.Jm],encapsulation:2}),_})();const $c=(t,_)=>_.value,Fc=t=>({secondes:t});function Gc(t,_){1&t&&(e.j41(0,"p"),e.pXf(1,4),e.k0s())}function Dc(t,_){1&t&&(e.j41(0,"p"),e.pXf(1,5),e.k0s())}function yc(t,_){if(1&t&&(e.j41(0,"mat-option",39),e.EFF(1),e.k0s()),2&t){const o=_.$implicit;e.Y8G("value",o.value),e.R7$(),e.SpI(" ",o.label," ")}}function Xc(t,_){if(1&t&&(e.j41(0,"div",36)(1,"mat-form-field",37)(2,"mat-label"),e.pXf(3,6),e.k0s(),e.j41(4,"mat-select",38),e.Z7z(5,yc,2,2,"mat-option",39,$c),e.k0s(),e.j41(7,"mat-error"),e.pXf(8,7),e.k0s()(),e.j41(9,"mat-form-field")(10,"mat-label"),e.pXf(11,8),e.k0s(),e.nrm(12,"input",40),e.j41(13,"mat-error"),e.pXf(14,9),e.k0s()()()),2&t){const o=e.XpG(2);e.Y8G("formGroup",o.customTelFg),e.R7$(4),e.Y8G("required",o.noTelSourceFc.value===o.EnumTwoAuthFactorTelSource.Custom)("disabled",o.noTelSourceFc.value===o.EnumTwoAuthFactorTelSource.User),e.R7$(),e.Dyx(o.EnumTypeTelephoneArray),e.R7$(7),e.Y8G("required",o.noTelSourceFc.value===o.EnumTwoAuthFactorTelSource.Custom)("disabled",o.noTelSourceFc.value===o.EnumTwoAuthFactorTelSource.User)("imask",o.appConfig.appConfig.telMaskObjet)("unmask",!0)}}function kc(t,_){1&t&&e.eu8(0)}function xc(t,_){if(1&t&&(e.j41(0,"mat-radio-group",32)(1,"mat-radio-button",39),e.EFF(2),e.nI1(3,"imask"),e.k0s(),e.j41(4,"mat-radio-button",39),e.DNE(5,kc,1,0,"ng-container",41),e.k0s()()),2&t){e.XpG
1();const o=e.sdS(8),n=e.XpG();e.Y8G("formControl",n.noTelSourceFc),e.R7$(),e.Y8G("value",n.EnumTwoAuthFactorTelSource.User),e.R7$(),e.SpI(" ",e.i5U(3,5,n.currentUser.telephone,n.telMaskObjet)," "),e.R7$(2),e.Y8G("value",n.EnumTwoAuthFactorTelSource.Custom),e.R7$(),e.Y8G("ngTemplateOutlet",o)}}function jc(t,_){1&t&&e.eu8(0)}function wc(t,_){if(1&t&&(e.j41(0,"div",33),e.DNE(1,jc,1,0,"ng-container",41),e.k0s()),2&t){e.XpG();const o=e.sdS(8);e.R7$(),e.Y8G("ngTemplateOutlet",o)}}function Vc(t,_){if(1&t){const o=e.RV6();e.j41(0,"div")(1,"div")(2,"p"),e.pXf(3,2),e.k0s(),e.DNE(4,Gc,2,0,"p")(5,Dc,2,0,"p"),e.k0s(),e.j41(6,"div",31),e.DNE(7,Xc,15,7,"ng-template",null,0,e.C5r)(9,xc,6,8,"mat-radio-group",32)(10,wc,2,1,"div",33),e.k0s(),e.j41(11,"div",34)(12,"button",35),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.debuter())}),e.pXf(13,3),e.k0s()()()}if(2&t){const o=e.XpG();e.R7$(4),e.vxM(4,o.currentUser.telephone?4:-1),e.R7$(),e.vxM(5,o.currentUser.telephone?-1:5),e.R7$(4),e.vxM(9,o.currentUser.telephone?9:-1),e.R7$(),e.vxM(10,o.currentUser.telephone?-1:10)}}function zc(t,_){if(1&t){const o=e.RV6();e.j41(0,"div")(1,"p"),e.pXf(2,10),e.k0s(),e.j41(3,"div",31)(4,"mat-radio-group",32)(5,"mat-radio-button",42)(6,"span"),e.pXf(7,11),e.k0s(),e.EFF(8),e.nI1(9,"imask"),e.k0s(),e.j41(10,"mat-radio-button",39)(11,"span"),e.pXf(12,12),e.k0s(),e.EFF(13),e.nI1(14,"imask"),e.k0s()()(),e.j41(15,"div",43)(16,"button",44),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.back())}),e.pXf(17,13),e.k0s(),e.j41(18,"button",35),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.sendValidation())}),e.pXf(19,14),e.k0s()()()}if(2&t){const o=e.XpG();e.R7$(4),e.Y8G("formControl",o.typeEnvoiFc),e.R7$(),e.Y8G("value",o.EnumA2fType.SMS)("disabled",!o.canSendSms),e.R7$(3),e.SpI("\xa0",e.i5U(9,6,o.selectedPhoneNumber,o.telMaskObjet)," "),e.R7$(2),e.Y8G("value",o.EnumA2fType.Appel),e.R7$(3),e.SpI("\xa0",e.i5U(14,9,o.selectedPhoneNumber,o.telMaskObjet)," ")}}function Hc(t,_){1&t&&(e.j41(0,"span"),e.pXf(1,19),e.k0s())}function Yc(t,_){1&t&&(e.j41(0,"span"),e.pXf(1,20),e.k0s())}function Bc(t,_){1&t&&(e.j41(0,"span"),e.pXf(1,21),e.k0s())}function qc(t,_){1&t&&(e.j41(0,"span"),e.pXf(1,22),e.k0s())}function Wc(t,_){if(1&t){const o=e.RV6();e.j41(0,"a",52),e.bIt("click",function(){e.eBV(o);const i=e.XpG(3);return e.Njj(i.sendValidation())}),e.pXf(1,23),e.k0s()}}function Jc(t,_){if(1&t&&(e.j41(0,"span",51)(1,"span"),e.pXf(2,24),e.k0s(),e.EFF(3),e.j41(4,"span"),e.pXf(5,25),e.k0s()()),2&t){const o=e.XpG();e.R7$(3),e.SpI("\xa0",o.secondes,"\xa0")}}function Qc(t,_){if(1&t&&(e.j41(0,"div",49),e.DNE(1,Wc,2,0,"a",50)(2,Jc,6,1,"span",51),e.k0s()),2&t){const o=_;e.R7$(),e.vxM(1,o.secondes?-1:1),e.R7$(),e.vxM(2,o.secondes?2:-1)}}function Kc(t,_){if(1&t){const o=e.RV6();e.j41(0,"div")(1,"p"),e.DNE(2,Hc,2,0,"span")(3,Yc,2,0,"span"),e.j41(4,"span"),e.EFF(5),e.nI1(6,"imask"),e.k0s(),e.j41(7,"span"),e.pXf(8,15),e.k0s()(),e.j41(9,"div",45)(10,"div",46)(11,"mat-form-field",47)(12,"mat-label"),e.pXf(13,16),e.k0s(),e.nrm(14,"input",48),e.j41(15,"mat-error"),e.DNE(16,Bc,2,0,"span")(17,qc,2,0,"span"),e.k0s()(),e.DNE(18,Qc,3,2,"div",49),e.nI1(19,"async"),e.k0s()(),e.j41(20,"div",43)(21,"button",44),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.back())}),e.pXf(22,17),e.k0s(),e.j41(23,"button",35),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.validateCode())}),e.pXf(24,18),e.k0s()()()}if(2&t){let o;const n=e.XpG();e.R7$(2),e.vxM(2,n.typeEnvoiFc.value===n.EnumA2fType.SMS?2:-1),e.R7$(),e.vxM(3,n.typeEnvoiFc.value===n.EnumA2fType.Appel?3:-1),e.R7$(2),e.SpI(" ",e.i5U(6,8,n.selectedPhoneNumber,n.telMaskObjet),". "),e.R7$(9),e.Y8G("required",!0)("formControl",n.codeFc),e.R7$(2),e.vxM(16,null!=n.codeFc.errors&&n.codeFc.errors.required?16:-1),e.R7$(),e.vxM(17,null!=n.codeFc.errors&&n.codeFc.errors.invalid?17:-1),e.R7$(),e.vxM(18,(o=e.eq3(13,Fc,e.bMT(19,11,n.secondesAvantRenvoi$)))?18:-1,o)}}function Zc(t,_){if(1&t){const o=e.RV6();e.j41(0,"div")(1,"p")(2,"span"),e.pXf(3,26),e.k0s(),e.j41(4,"span"),e.EFF(5),e.nI1(6,"imask"),e.k0s(),e.j41(7,"span"),e.pXf(8,27),e.k0s()(),e.j41(9,"div",43)(10,"button",53),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.resetValidation())}),e.pXf(11,28),e.k0s()()()}if(2&t){const o=e.XpG();e.R7$(5),e.SpI(" ",e.i5U(6,1,o.selectedPhoneNumber,o.telBlancMaskObjet)," ")}}let At=(()=>{var t;class _{constructor(){this.destroyRef=(0,e.WQX)(e.abz),this.fb=(0,e.WQX)(l.ok),this.store=(0,e.WQX)(j.il),this.appConfig=(0,e.WQX)(te.o),this.authenticationService=(0,e.WQX)(on.k),this.dialog=(0,e.WQX)(ee.bZ),this.limitationDebit=(0,e.WQX)(he.Mt),this.EnumTwoAuthFactorStep={NonDebutee:0,ChoixMethode:1,Validation:2,Valide:3},this.EnumTwoAuthFactorTelSource={User:"user",Custom:"custom"},this.currentStep=this.EnumTwoAuthFactorStep.NonDebutee,this.EnumTypeTelephoneArray=Object.values(m._m),this.EnumA2fType=p.tB,this.noTelSourceFc=new l.MJ(null,l.k0.required),this.typeEnvoiFc=new l.MJ(p.tB.SMS),this.canSendSms=!0,this.codeFc=new l.MJ(""),this.secondesAvantRenvoi$=this.limitationDebit.secondesAvantRenvoiMfa$}ngOnInit(){this.telMaskObjet=this.appConfig.appConfig.telMaskObjet,this.telBlancMaskObjet=this.appConfig.appConfig.telBlancMaskObjet,this.store.select(T.selectCurrentUser).pipe((0,me.s)(1)).subscribe(n=>{this.currentUser=n,this.noTelSourceFc.patchValue(this.currentUser.telephone?this.EnumTwoAuthFactorTelSource.User:this.EnumTwoAuthFactorTelSource.Custom),this.noTelSourceFc.updateV
1alueAndValidity(),n.useMfa&&(this.currentStep=this.EnumTwoAuthFactorStep.Valide,this.selectedPhoneNumber=this.currentUser.mfaTelephone)}),this.customTelFg=this.fb.group({typTelId:[null],telephone:[null]})}back(){this.currentStep--}debuter(){if(this.noTelSourceFc.invalid||this.customTelFg.invalid)return void this.customTelFg.markAllAsTouched();const{telephone:n,typTelId:i}=this.noTelSourceFc.value===this.EnumTwoAuthFactorTelSource.User?this.currentUser:this.customTelFg.value;this.selectedPhoneNumber=n,this.canSendSms=i!==m._m.Fixe.value,this.typeEnvoiFc.patchValue(this.canSendSms?p.tB.SMS:p.tB.Appel),this.currentStep=this.EnumTwoAuthFactorStep.ChoixMethode}sendValidation(){if(this.sendingValidation)return;const n=this.limitationDebit.secondesAvantRenvoiMfa;n>0?this.store.dispatch(new T.Actions.ShowSnackBar("Veuillez patienter"+` ${he.Mt.formaterDelai(n)} `+"avant de demander un nouveau code.")):(this.sendingValidation=!0,this.codeFc.reset(),this.authenticationService.sendMfaValidationCode(this.selectedPhoneNumber,this.typeEnvoiFc.value).pipe((0,g.pQ)(this.destroyRef)).subscribe({next:()=>{this.currentStep!==this.EnumTwoAuthFactorStep.Validation?(this.store.dispatch(new T.Actions.ShowSnackBar("Code de confirmation envoy\xE9 avec succ\xE8s")),this.currentStep=this.EnumTwoAuthFactorStep.Validation):this.store.dispatch(new T.Actions.ShowSnackBar("Code de confirmation renvoy\xE9 avec succ\xE8s")),this.sendingValidation=!1},error:i=>{var s;if(this.sendingValidation=!1,429===i.status)return;let r;switch(null!==(s=i.code)&&void 0!==s?s:i.status){case 60200:r="Impossible d'envoyer le code de v\xE9rification. Veuillez choisir un num\xE9ro valide.";break;case 60203:r="Trop de tentatives successives. Veuillez attendre et r\xE9essayer plus tard.";break;default:r="Une erreur est survenue. Veuillez r\xE9essayer plus tard."}this.store.dispatch(new T.Actions.ShowSnackBar(r,T.EnumSnackBarType.Echec))}}))}validateCode(){if(this.codeFc.invalid)return void this.codeFc.markAsTouched();const n=this.noTelSourceFc.value!==this.EnumTwoAuthFactorTelSource.User?this.customTelFg.value.typTelId:this.currentUser.typTelId;this.authenticationService.validateMfaCode(this.selectedPhoneNumber,n,this.codeFc.value).subscribe({next:()=>{this.selectedPhoneNumber=this.blanchirNoTel(this.selectedPhoneNumber),this.currentStep=this.EnumTwoAuthFactorStep.Valide,this.store.dispatch(new T.Actions.ShowSnackBar("Authentification \xE0 deux facteurs activ\xE9e avec succ\xE8s")),this.store.dispatch(new T.Actions.StoreCurrentUser({...this.currentUser,useMfa:!0,mfaTypTelId:this.selectedPhoneNumber,mfaTelephone:n}))},error:i=>{1!==i.code?this.store.dispatch(new T.Actions.ShowSnackBar("Une erreur est survenue lors de la validation du code",T.EnumSnackBarType.Echec)):this.codeFc.setErrors({invalid:!0})}})}blanchirNoTel(n){let i=0;const s=/\d/;return n.split("").reverse().map(r=>s.test(r)?i<2?(i++,r):"X":r).reverse().join("")}resetValidation(){this.dialog.open(vc,{data:{},panelClass:"delete-confirm",width:p.Uq.Small}).afterClosed().subscribe(i=>{i&&(this.store.dispatch(new T.Actions.ShowSnackBar("Authentification \xE0 deux facteurs d\xE9sactiv\xE9e avec succ\xE8s")),this.noTelSourceFc.patchValue(this.currentUser.telephone?this.EnumTwoAuthFactorTelSource.User:this.EnumTwoAuthFactorTelSource.Custom),this.customTelFg.reset(),this.typeEnvoiFc.reset(),this.codeFc.reset(),this.currentStep=this.EnumTwoAuthFactorStep.NonDebutee,this.store.dispatch(new T.Actions.StoreCurrentUser({...this.currentUser,useMfa:!1,mfaTypTelId:null,mfaTelephone:null})))})}}return(t=_).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-mfa-content"]],decls:8,vars:1,consts:()=>{let o,n,i,s,r,c,d,a,u,S,E,P,O,f,I,b,N,y,G,B,L,X,W,F,x,re,_e,se;return o="Authentification \xE0 deux facteurs",n=" L\u2019authentification \xE0 deux facteurs prot\xE8ge votre compte en demandant un code suppl\xE9mentaire \xE0 votre mot de passe lorsque vous vous connectez \xE0 votre Portail Citoyen. ",i=" D\xE9buter l\u2019activation ",s=" Pour activer l\u2019authentification \xE0 deux facteurs, veuillez s\xE9lectionner un num\xE9ro de t\xE9l\xE9phone d\xE9j\xE0 pr\xE9sent dans votre compte ou ajoutez-en un nouveau. C\u2019est le num\xE9ro auquel nous enverrons le code de connexion : ",r=" Pour activer l\u2019authentification \xE0 deux facteur
1s, veuillez ajouter un num\xE9ro de t\xE9l\xE9phone \xE0 votre compte. C\u2019est le num\xE9ro auquel nous enverrons le code de connexion : ",c="Type",d=" Champ obligatoire ",a="T\xE9l\xE9phone",u=" T\xE9l\xE9phone non valide ",S="Veuillez s\xE9lectionner la m\xE9thode de v\xE9rification que vous souhaitez utiliser pour v\xE9rifier votre num\xE9ro : ",E="Texter au",P="Appeler au",O=" Retour ",f=" Suivant ",I="Veuillez entrer le code pour confirmer votre num\xE9ro :",b="Code",N=" Retour ",y=" Suivant ",G="Un message texte a \xE9t\xE9 envoy\xE9 au",B="Un appel est en cours au",L="Veuillez entrer votre code de validation",X="Vous n\u2019avez pas saisi le code attendu. Veuillez r\xE9essayer.",W=" Renvoyer le code ",F="Renvoyer le code dans",x="s",re="L\u2019authentification \xE0 deux facteurs est activ\xE9e. Nous vous enverrons d\xE9sormais un code de connexion au",_e="chaque fois que vous vous connecterez \xE0 votre Portail Citoyen.",se=" D\xE9sactiver l\u2019authentification \xE0 deux facteurs ",[["customTelForm",""],o,n,i,s,r,c,d,a,u,S,E,P,O,f,I,b,N,y,G,B,L,X,W,F,x,re,_e,se,[1,"form-container","mfa-config-form-container","user-form-container","padding-form-mobile"],[1,"form-section-title"],[1,"box-form"],[3,"formControl"],[1,"custom-tel-only"],[1,"margin-top-2"],["mat-raised-button","","type","button",1,"custom-button-standard","custom-button-full",3,"click"],[3,"formGroup"],[1,"small-margin-right"],["formControlName","typTelId",3,"required","disabled"],[3,"value"],["matInput","","type","tel","formControlName","telephone",3,"required","disabled","imask","unmask"],[4,"ngTemplateOutlet"],[3,"value","disabled"],[1,"margin-top-2","flex-space-between"],["mat-stroked-button","","type","button",1,"custom-button-standard","custom-button-stroked",3,"click"],[1,"box-form","box-form-code"],[1,"input-container"],[1,"full-width"],["matInput","","type","text","autocomplete","one-time-code",3,"required","formControl"],[1,"resend-code"],[1,"sms-verification-link"],[1,"sms-verification-attente"],[1,"sms-verification-link",3,"click"],["mat-raised-button","","color","warn","type","button",3,"click"]]},template:function(n,i){if(1&n&&(e.j41(0,"div",29)(1,"h2",30),e.pXf(2,1),e.k0s(),e.j41(3,"div"),e.DNE(4,Vc,14,4)(5,zc,20,12)(6,Kc,25,15)(7,Zc,12,4),e.k0s()()),2&n){let s;e.R7$(4),e.vxM(4,(s=i.currentStep)===i.EnumTwoAuthFactorStep.NonDebutee?4:s===i.EnumTwoAuthFactorStep.ChoixMethode?5:s===i.EnumTwoAuthFactorStep.Validation?6:s===i.EnumTwoAuthFactorStep.Valide?7:-1)}},dependencies:[Ce.fg,R.rl,R.nJ,R.TL,ie.wT,hn.VT,hn._g,xe.VO,ue.$z,A.T3,l.me,l.BC,l.cb,l.YS,l.l_,l.j4,l.JD,Re.Zq,A.Jj,Re.YH],styles:[".mfa-config-form-container[_ngcontent-%COMP%] .box-form[_ngcontent-%COMP%]{padding:1em 1.2em;background:var(--light-grey-color)}.mfa-config-form-container[_ngcontent-%COMP%] .box-form-code[_ngcontent-%COMP%]{padding-bottom:2em}.mfa-config-form-container[_ngcontent-%COMP%] .box-form-code[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%]{max-width:480px}.mfa-config-form-container[_ngcontent-%COMP%] .box-form-code[_ngcontent-%COMP%] .resend-code[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding-top:8px}.mfa-config-form-container[_ngcontent-%COMP%] .box-form-code[_ngcontent-%COMP%] .resend-code[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:500}.mfa-config-form-container[_ngcontent-%COMP%] .box-form-code[_ngcontent-%COMP%] .resend-code[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{cursor:pointer}.mfa-config-form-container[_ngcontent-%COMP%] .box-form[_ngcontent-%COMP%] .mat-radio-label-content{padding-left:12px}.mfa-config-form-container[_ngcontent-%COMP%] .box-form[_ngcontent-%COMP%] .custom-tel-only[_ngcontent-%COMP%]{padding-bottom:18px}"]}),_})();const e1=t=>({"filter-searche-global-active":t});let n1=(()=>{var t;class _{constructor(n){this.store=n,this.selectIsSearchHeaderVisible$=this.store.select(T.selectIsSearchHeaderVisible)}onContentClick(){this.store.dispatch(T.Actions.setIsSearchHeaderVisible({payload:!1}))}}return(t=_).\u0275fac=function(n){return new(n||t)(e.rXU(j.il))},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-mfa"]],decls:4,vars:9,consts:[[1,"hide-desktop","mobile-header",3,"defaultHref","headerTitle","returnButtonType","menuId"],["id","mfa",3,"click","ngClass"]],template:function(n,i){1&n&&(e.nrm(0,"vplus-mobile-header",0),e.j41(1,"ion-content",1),e.nI1(2,"async"),e.bIt("click",function(){return i.onContentClick()}),e.nrm(3,"vplus-mfa-content"),e.k0s()),2&n&&(e.Y8G("defaultHref","utilisateur/profil")("headerTitle","")("returnButtonType","back-button")("menuId","mfa"),e.R7$(),e.Y8G("ngClass",e.eq3(7,e1,e.bMT(2,5,i.selectIsSearchHeaderVisible$))))},dependencies:[A.YU,de.f,$.W9,At,A.Jj],encapsulation:2}),_})();const t1=t=>({"dark-text":t});function o1(t,_){if(1&t&&(e.j41(0,"span",5),e.EFF(1),e.k0s()),2&t){const o=_.ngIf,n=e.XpG();e.Y8G("ngClass",e.eq3(3,t1,"#000000"===n.decidedTextColor)),e.R7$(),e.Lme("",o.prenom," ",o.nom,"")}}let gt=(()=>{var t;class _{constructor(n){this.store=n}ngOnInit(){this.user$=this.store.select(T.selectCurrentUser);const n=getComputedStyle(document.documentElement).getPropertyValue("--primary-color");this.decidedTextColor=(0,w.nt8)(n)}}return(t=_).\u0275fac=function(n){return new(n||t)(e.rXU(j.il))},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-utilisateur-accueil-content"]],decls:12,vars:3,consts:()=>{let o,n;return o="Bonjour, ",n="Bienvenue sur votre espace citoyen",[o,n,[1,"accueil-citoyen-splash-screen"],["src","assets/img/e
1space-citoyen/user-login.png"],["class","primary-color",3,"ngClass",4,"ngIf"],[1,"primary-color",3,"ngClass"]]},template:function(n,i){1&n&&(e.j41(0,"div",2)(1,"span"),e.nrm(2,"img",3),e.k0s(),e.j41(3,"div")(4,"div")(5,"h1")(6,"span"),e.pXf(7,0),e.k0s(),e.DNE(8,o1,2,5,"span",4),e.nI1(9,"async"),e.k0s(),e.j41(10,"p"),e.pXf(11,1),e.k0s()()()()),2&n&&(e.R7$(8),e.Y8G("ngIf",e.bMT(9,1,i.user$)))},dependencies:[A.YU,A.bT,A.Jj],styles:[".accueil-citoyen-splash-screen[_ngcontent-%COMP%]{text-align:center;display:flex;text-align:left;flex-direction:column}@media (min-width: 960px){.accueil-citoyen-splash-screen[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:2rem}}.accueil-citoyen-splash-screen[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--light-text-color)}@media (min-width: 600px){.accueil-citoyen-splash-screen[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.2rem}}@media (min-width: 1280px){.accueil-citoyen-splash-screen[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.4rem}}@media (min-width: 1920px){.accueil-citoyen-splash-screen[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.6rem}}@media (min-width: 1920px){.accueil-citoyen-splash-screen[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2.6rem}}.accueil-citoyen-splash-screen[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;max-width:80%;margin:0 auto 36px}@media (min-width: 600px){.accueil-citoyen-splash-screen[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{max-width:60%;min-width:50%}}@media (min-width: 960px){.accueil-citoyen-splash-screen[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{max-width:100%;padding:0 24px;margin:0;display:flex;align-items:center;background:var(--primary-color);justify-content:center}.accueil-citoyen-splash-screen[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:40vh}}@media (min-width: 1280px){.accueil-citoyen-splash-screen[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{max-width:60%;flex-basis:60%;min-width:55%}.accueil-citoyen-splash-screen[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:600px}}@media (min-width: 1280px){.accueil-citoyen-splash-screen[_ngcontent-%COMP%]{height:100%;flex-direction:row}.accueil-citoyen-splash-screen[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:24px 48px 24px 0;background:var(--primary-color);display:flex;align-items:center;flex-grow:1}}@media (min-width: 1280px) and (min-width: 1920px){.accueil-citoyen-splash-screen[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:24px 64px 24px 0}}@media (min-width: 1280px){.accueil-citoyen-splash-screen[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#fff}.accueil-citoyen-splash-screen[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .primary-color[_ngcontent-%COMP%]{color:#ffffff80}.accueil-citoyen-splash-screen[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .primary-color.dark-text[_ngcontent-%COMP%]{color:#00000080}.accueil-citoyen-splash-screen[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#fff}}"]}),_})();const i1=t=>({"filter-searche-global-active":t});let _1=(()=>{var t;class _{constructor(n){this.store=n,this.selectIsSearchHeaderVisible$=this.store.select(T.selectIsSearchHeaderVisible)}onContentClick(){this.store.dispatch(T.Actions.setIsSearchHeaderVisible({payload:!1}))}}return(t=_).\u0275fac=function(n){return new(n||t)(e.rXU(j.il))},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-utilisateur-accueil"]],decls:5,vars:9,consts:[[1,"hide-desktop","mobile-header",3,"defaultHref","headerTitle","returnButtonType","menuId"],["id","utilisateurAccueil",3,"click","ngClass"],[1,"main-page-container","standard-page-content"]],template:function(n,i){1&n&&(e.nrm(0,"vplus-mobile-header",0),e.j41(1,"ion-content",1),e.nI1(2,"async"),e.bIt("click",function(){return i.onContentClick()}),e.j41(3,"div",2),e.nrm(4,"vplus-utilisateur-accueil-content"),e.k0s()()),2&n&&(e.Y8G("defaultHref","utilisateur/profil")("headerTitle","")("returnButtonType","back-button")("menuId","utilisateurAccueil"),e.R7$(),e.Y8G("ngClass",e.eq3(7,i1,e.bMT(2,5,i.selectIsSearchHeaderVisible$))))},dependencies:[A.YU,de.f,$.W9,gt,A.Jj],encapsulation:2}),_})();const r1=()=>["editer"],Te=t=>({profil:t}),Se=t=>({outlets:t}),pe=t=>["/utilisateur/profil",t],a1=()=>["changer-mot-de-passe"],l1=()=>["mfa"],c1=()=>["supprimer"],d1=()=>["accueil"],u1=()=>["carte"],C1=()=>["familles"],E1=()=>["abonnements"],T1=()=>["requete"],S1=()=>["permis"],p1=()=>["activite"],m1=()=>({exact:!0}),N1=()=>["facture"],f1=()=>["fiche-sante"];function P1(t,_){if(1&t&&(e.j41(0,"a",27)(1,"span",28),e.nrm(2,"i",37)(3,"i",38),e.k0s(),e.j41(4,"span"),e.pXf(5,5),e.k0s()()),2&t){const o=e.XpG(2);
1e.AVh("active",o.router.routerState.snapshot.url.split("/").includes("accueil")),e.Y8G("routerLink",e.eq3(8,pe,e.eq3(6,Se,e.eq3(4,Te,e.lJ4(3,d1)))))}}function O1(t,_){if(1&t&&(e.j41(0,"a",27)(1,"span",28),e.nrm(2,"i",39)(3,"i",40),e.k0s(),e.j41(4,"span"),e.EFF(5),e.k0s()()),2&t){const o=e.XpG(2);e.AVh("active",o.router.routerState.snapshot.url.split("/").includes("carte")),e.Y8G("routerLink",e.eq3(9,pe,e.eq3(7,Se,e.eq3(5,Te,e.lJ4(4,u1))))),e.R7$(5),e.JRh(o.nomCarte)}}function M1(t,_){if(1&t&&(e.j41(0,"a",27)(1,"span",28),e.nrm(2,"i",41)(3,"i",42),e.k0s(),e.j41(4,"span"),e.EFF(5),e.k0s()()),2&t){const o=e.XpG(2);e.AVh("activated",o.router.routerState.snapshot.url.includes("familles")||o.router.routerState.snapshot.url.includes("profil/enfant")),e.Y8G("routerLink",e.eq3(9,pe,e.eq3(7,Se,e.eq3(5,Te,e.lJ4(4,C1))))),e.R7$(5),e.JRh(o.isPlusieursFamilles?o.labels.plusieursFamilles:o.labels.uneFamille)}}function A1(t,_){if(1&t&&(e.j41(0,"a",27)(1,"span",28),e.nrm(2,"i",43)(3,"i",44),e.k0s(),e.j41(4,"span"),e.pXf(5,6),e.k0s()()),2&t){const o=e.XpG(2);e.AVh("active",o.router.routerState.snapshot.url.split("/").includes("abonnements")),e.Y8G("routerLink",e.eq3(8,pe,e.eq3(6,Se,e.eq3(4,Te,e.lJ4(3,E1)))))}}function g1(t,_){if(1&t&&(e.j41(0,"a",27)(1,"span",28),e.nrm(2,"i",45)(3,"i",46),e.k0s(),e.j41(4,"span"),e.pXf(5,7),e.k0s()()),2&t){const o=e.XpG(2);e.AVh("active",o.router.routerState.snapshot.url.split("/").includes("requete")),e.Y8G("routerLink",e.eq3(8,pe,e.eq3(6,Se,e.eq3(4,Te,e.lJ4(3,T1)))))}}function I1(t,_){if(1&t&&(e.j41(0,"a",27)(1,"span",28),e.nrm(2,"i",47)(3,"i",48),e.k0s(),e.j41(4,"span"),e.pXf(5,8),e.k0s()()),2&t){const o=e.XpG(2);e.AVh("active",o.router.routerState.snapshot.url.split("/").includes("permis")),e.Y8G("routerLink",e.eq3(8,pe,e.eq3(6,Se,e.eq3(4,Te,e.lJ4(3,S1)))))}}function h1(t,_){if(1&t){const o=e.RV6();e.j41(0,"a",49),e.bIt("click",function(i){e.eBV(o);const s=e.XpG(2);return e.Njj(s.stopPropagation(i))}),e.j41(1,"span",28),e.nrm(2,"i",50)(3,"i",51),e.k0s(),e.j41(4,"span"),e.pXf(5,9),e.k0s()()}2&t&&e.Y8G("routerLink",e.eq3(7,pe,e.eq3(5,Se,e.eq3(3,Te,e.lJ4(2,p1)))))("routerLinkActiveOptions",e.lJ4(9,m1))}function R1(t,_){if(1&t){const o=e.RV6();e.j41(0,"a",52),e.bIt("click",function(i){e.eBV(o);const s=e.XpG(2);return e.Njj(s.stopPropagation(i))}),e.j41(1,"span",28),e.nrm(2,"i",53)(3,"i",54),e.k0s(),e.j41(4,"span"),e.pXf(5,10),e.k0s()()}if(2&t){const o=e.XpG(2);e.AVh("active",o.router.routerState.snapshot.url.split("/").includes("facture")),e.Y8G("routerLink",e.eq3(8,pe,e.eq3(6,Se,e.eq3(4,Te,e.lJ4(3,N1)))))}}function L1(t,_){if(1&t&&(e.j41(0,"a",27)(1,"span",28),e.nrm(2,"i",55)(3,"i",56),e.k0s(),e.j41(4,"span"),e.pXf(5,11),e.k0s()()),2&t){const o=e.XpG(2);e.AVh("active",o.router.routerState.snapshot.url.split("/").includes("fiche-sante")),e.Y8G("routerLink",e.eq3(8,pe,e.eq3(6,Se,e.eq3(4,Te,e.lJ4(3,f1)))))}}function U1(t,_){if(1&t&&(e.j41(0,"div",23)(1,"h3"),e.pXf(2,0),e.k0s(),e.DNE(3,P1,6,10,"a",24)(4,O1,6,11,"a",24)(5,M1,6,11,"a",25)(6,A1,6,10,"a",24)(7,g1,6,10,"a",24)(8,I1,6,10,"a",24)(9,h1,6,10,"a",26)(10,R1,6,10,"a",24),e.nrm(11,"hr"),e.j41(12,"a",27)(13,"span",28),e.nrm(14,"i",29)(15,"i",30),e.k0s(),e.j41(16,"span"),e.pXf(17,1),e.k0s()(),e.DNE(18,L1,6,10,"a",24),e.j41(19,"a",27)(20,"span",28),e.nrm(21,"i",31)(22,"i",32),e.k0s(),e.j41(23,"span"),e.pXf(24,2),e.k0s()(),e.j41(25,"a",27)(26,"span",28),e.nrm(27,"i",33)(28,"i",34),e.k0s(),e.j41(29,"span"),e.pXf(30,3),e.k0s()(),e.j41(31,"a",27)(32,"span",28),e.nrm(33,"i",35)(34,"i",36),e.k0s(),e.j41(35,"span"),e.pXf(36,4),e.k0s()()()),2&t){const o=e.XpG();e.R7$(3),e.vxM(3,o.citoyenForm.activateCarteCitoyenne?-1:3),e.R7$(),e.vxM(4,o.citoyenForm.activateCarteCitoyenne?4:-1),e.R7$(),e.vxM(5,o.moduleActiviteIsActif||o.isCarteActive?5:-1),e.R7$(),e.vxM(6,o.modulesActifs.includes(o.EnumModule.Alerte)?6:-1),e.R7$(),e.vxM(7,o.modulesActifs.includes(o.EnumModule.Requete)&&!o.restrictPCRequete?7:-1),e.R7$(),e.vxM(8,o.modulesActifs.includes(o.EnumModule.Permis)&&!o.restrictPCPermis?8:-1),e.R7$(),e.vxM(9,o.modulesActifs.includes(o.EnumModule.Activite)&&!o.restrictPCActivite?9:-1),e.R7$(),e.vxM(10,o.modulesActifs.includes(o.EnumModule.Permis)&&!o.restrictPCPermis||o.modulesActifs.includes(o.EnumModule.Activite)&&!o.restrictPCActivite||o.modulesActifs.includes(o.EnumModule.Requete)&&!o.restrictPCRequete?10:-1),e.R7$(2),e.AVh("active",o.router.routerState.snapshot.url.
1split("/").includes("editer")),e.Y8G("routerLink",e.eq3(26,pe,e.eq3(24,Se,e.eq3(22,Te,e.lJ4(21,r1))))),e.R7$(6),e.vxM(18,o.checkEnvironment&&o.modulesActifs.includes(o.EnumModule.Activite)&&!o.restrictPCActivite?18:-1),e.R7$(),e.AVh("active",o.router.routerState.snapshot.url.split("/").includes("changer-mot-de-passe")),e.Y8G("routerLink",e.eq3(33,pe,e.eq3(31,Se,e.eq3(29,Te,e.lJ4(28,a1))))),e.R7$(6),e.AVh("active",o.router.routerState.snapshot.url.split("/").includes("mfa")),e.Y8G("routerLink",e.eq3(40,pe,e.eq3(38,Se,e.eq3(36,Te,e.lJ4(35,l1))))),e.R7$(6),e.AVh("active",o.router.routerState.snapshot.url.split("/").includes("supprimer")),e.Y8G("routerLink",e.eq3(47,pe,e.eq3(45,Se,e.eq3(43,Te,e.lJ4(42,c1)))))}}function b1(t,_){if(1&t&&(e.j41(0,"ion-item",60)(1,"span",68),e.nrm(2,"i",39),e.k0s(),e.j41(3,"ion-label"),e.EFF(4),e.k0s()()),2&t){const o=e.XpG(2);e.R7$(4),e.JRh(o.nomCarte)}}function v1(t,_){if(1&t&&(e.j41(0,"ion-item",61)(1,"span",68),e.nrm(2,"i",41),e.k0s(),e.j41(3,"ion-label"),e.EFF(4),e.k0s()()),2&t){const o=e.XpG(2);e.R7$(4),e.JRh(o.isPlusieursFamilles?o.labels.plusieursFamilles:o.labels.uneFamille)}}function $1(t,_){1&t&&(e.j41(0,"ion-item",62)(1,"span",68),e.nrm(2,"i",77),e.k0s(),e.j41(3,"ion-label"),e.pXf(4,17),e.k0s()())}function F1(t,_){1&t&&(e.j41(0,"ion-item",63)(1,"span",68),e.nrm(2,"i",78),e.k0s(),e.j41(3,"ion-label"),e.pXf(4,18),e.k0s()())}function G1(t,_){1&t&&(e.j41(0,"ion-item",64)(1,"span",68),e.nrm(2,"i",79),e.k0s(),e.j41(3,"ion-label"),e.pXf(4,19),e.k0s()())}function D1(t,_){1&t&&(e.j41(0,"ion-item",65)(1,"span",68),e.nrm(2,"i",80),e.k0s(),e.j41(3,"ion-label"),e.pXf(4,20),e.k0s()())}function y1(t,_){1&t&&(e.j41(0,"ion-item",66)(1,"span",68),e.nrm(2,"i",81),e.k0s(),e.j41(3,"ion-label"),e.pXf(4,21),e.k0s()())}function X1(t,_){1&t&&(e.j41(0,"ion-item",70)(1,"span",68),e.nrm(2,"i",82),e.k0s(),e.j41(3,"ion-label"),e.pXf(4,22),e.k0s()())}function k1(t,_){if(1&t&&(e.j41(0,"div",57)(1,"div",58)(2,"h3"),e.EFF(3),e.k0s(),e.j41(4,"h1"),e.pXf(5,12),e.k0s()(),e.nrm(6,"hr"),e.j41(7,"ion-list",59),e.DNE(8,b1,5,1,"ion-item",60)(9,v1,5,1,"ion-item",61)(10,$1,5,0,"ion-item",62)(11,F1,5,0,"ion-item",63)(12,G1,5,0,"ion-item",64)(13,D1,5,0,"ion-item",65)(14,y1,5,0,"ion-item",66),e.nrm(15,"hr"),e.j41(16,"ion-item",67)(17,"span",68),e.nrm(18,"i",69),e.k0s(),e.j41(19,"ion-label"),e.pXf(20,13),e.k0s()(),e.DNE(21,X1,5,0,"ion-item",70),e.j41(22,"ion-item",71)(23,"span",68),e.nrm(24,"i",72),e.k0s(),e.j41(25,"ion-label"),e.pXf(26,14),e.k0s()(),e.j41(27,"ion-item",73)(28,"span",68),e.nrm(29,"i",74),e.k0s(),e.j41(30,"ion-label"),e.pXf(31,15),e.k0s()(),e.j41(32,"ion-item",75)(33,"span",68),e.nrm(34,"i",76),e.k0s(),e.j41(35,"ion-label"),e.pXf(36,16),e.k0s()()()()),2&t){const o=e.XpG();e.R7$(3),e.JRh((null==o.user?null:o.user.prenom)+" "+(null==o.user?null:o.user.nom)),e.R7$(5),e.vxM(8,o.citoyenForm.activateCarteCitoyenne?8:-1),e.R7$(),e.vxM(9,o.moduleActiviteIsActif||o.isCarteActive?9:-1),e.R7$(),e.vxM(10,o.modulesActifs.includes(o.EnumModule.Alerte)?10:-1),e.R7$(),e.vxM(11,o.modulesActifs.includes(o.EnumModule.Requete)&&!o.restrictPCRequete?11:-1),e.R7$(),e.vxM(12,o.modulesActifs.includes(o.EnumModule.Permis)&&!o.restrictPCPermis?12:-1),e.R7$(),e.vxM(13,o.modulesActifs.includes(o.EnumModule.Activite)&&!o.restrictPCActivite?13:-1),e.R7$(),e.vxM(14,o.modulesActifs.includes(o.EnumModule.Activite)&&!o.restrictPCActivite||o.modulesActifs.includes(o.EnumModule.Permis)&&!o.restrictPCPermis||o.modulesActifs.includes(o.EnumModule.Requete)&&!o.restrictPCRequete?14:-1),e.R7$(7),e.vxM(21,o.checkEnvironment&&o.modulesActifs.includes(o.EnumModule.Activite)&&!o.restrictPCActivite?21:-1)}}let x1=(()=>{var t;class _{constructor(){this.store=(0,e.WQX)(j.il),this.router=(0,e.WQX)(V.Ix),this.appConfig=(0,e.WQX)(te.o),this.actions$=(0,e.WQX)(M.En),this.route=(0,e.WQX)(V.nX),this.localisationService=(0,e.WQX)(ke.A),this.utilisateurService=(0,e.WQX)(ce.$),this.destroyRef=(0,e.WQX)(e.abz),this.isMobile=!1,this.isLoaded=!0,this.EnumModule=m.AL,this.isFr=this.localisationService.getCurrentLocalisation()===p.fi.FR,this.restrictPCActivite=this.appConfig.appConfig.paramList[p.fW.RestrictPCActivite],this.labels={plusieursFamilles:"Mes familles",uneFamille:"Ma famille"}}ngOnInit(){this.checkEnvironment=!Je.c.production&&!Je.c.envName.startsWith("simulation")||"modelliumville"===this.appConfig.appConfig.appNom,this.restrictPCPermis=this.appConfig.appConfig.paramList.restrictPCPermis,this.isCarteActive=this.appConfig.appConfig.citoyenForm.activateCarteCitoyenne,this.restrictPCRequete=this.appConfig.appConfig.paramList[p.fW.RestrictPCRequete],this.citoyenForm=this.appConfig.appConfig.citoyenForm,this.nomCarte=this.appConfig.getNomCarteCitoyenneCapital(),this.store.select(T.selectModulesActifs).pipe((0,me.s)(1),(0,Me.M)(n=>{this.moduleActiviteIsActif=n.includes(m.AL.Activite)})).subscribe(),this.store.select(T.selectCurrentUser).pipe((0,g.pQ)(this.destroyRef)).subscribe(n=>{this.user=n}),this.store.select(T.selectModulesActifs).pipe((0,g.pQ)(this.destroyRef)).subscribe(n=>{this.modulesActifs=n}
1),this.actions$.pipe((0,g.pQ)(this.destroyRef),(0,M.gp)(Y.En.upsertFamilySuccess,Y.En.leaveFamilleSuccess),(0,Q.T)(n=>n)).subscribe(()=>{this.setIsPlusieursFamilles()})}setIsPlusieursFamilles(){this.utilisateurService.getFamilleByPerId(this.user.perId).pipe((0,g.pQ)(this.destroyRef)).subscribe({next:n=>{this.isPlusieursFamilles=(null==n?void 0:n.length)>1}})}ionViewWillEnter(){this.isLoaded=!0}navigate(n){this.router.navigate([n])}stopPropagation(n){n.stopPropagation()}ngOnDestroy(){this.isLoaded=!1}}return(t=_).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-profil-onglets"]],inputs:{isMobile:"isMobile"},decls:2,vars:1,consts:()=>{let o,n,i,s,r,c,d,a,u,S,E,P,O,f,I,b,N,y,G,B,L,X,W;return o="Mon espace citoyen",n="Renseignements personnels",i="Modifier mon mot de passe",s="Authentification \xE0 deux facteurs",r="Supprimer mon compte",c="Accueil",d="Abonnements aux communications",a="Mes requ\xEAtes",u="Mes demandes de permis",S="Mes activit\xE9s",E="Mes factures",P="Fiche sant\xE9",O="Mon espace citoyen",f="Renseignements personnels",I="Modifier mon mot de passe",b="Authentification \xE0 deux facteurs",N="Supprimer mon compte",y="Abonnements aux communications",G="Mes requ\xEAtes",B="Mes demandes de permis",L="Mes activit\xE9s",X="Mes factures",W="Fiche sant\xE9",[o,n,i,s,r,c,d,a,u,S,E,P,O,f,I,b,N,y,G,B,L,X,W,[1,"mon-profil-tabs","menu"],["mat-ripple","","routerLinkActive","active",3,"routerLink","active"],["mat-ripple","","routerLinkActive","active",3,"routerLink","activated"],["mat-ripple","","routerLinkActive","active",3,"routerLink","routerLinkActiveOptions"],["mat-ripple","","routerLinkActive","active",3,"routerLink"],[1,"avatar-icon"],[1,"icon-parametres","default"],[1,"icon-parametres-full","active"],[1,"icon-key","default"],[1,"icon-key-full","active"],[1,"icon-shield-check","default"],[1,"icon-shield-check-full","active"],[1,"icon-user-x","default"],[1,"icon-user-x-full","active"],[1,"icon-home","default"],[1,"icon-home-full","active"],[1,"icon-id-card","default"],[1,"icon-id-card-full","active"],[1,"icon-family","default"],[1,"icon-family-full","active"],[1,"icon-message-square","default"],[1,"icon-message-square-full","active"],[1,"icon-requete-minimal","default"],[1,"icon-requete-minimal-full","active"],[1,"icon-permis-minimal","default"],[1,"icon-permis-minimal-full","active"],["mat-ripple","","routerLinkActive","active",3,"click","routerLink","routerLinkActiveOptions"],[1,"icon-calendar-check","default"],[1,"icon-calendar-check-full","active"],["mat-ripple","","routerLinkActive","active",3,"click","routerLink"],[1,"icon-facture","default"],[1,"icon-facture-full","active"],[1,"icon-heart","default"],[1,"icon-heart-full","active"],[1,"mon-profil-mobile","menu"],[1,"mon-profil-mobile-header"],["mode","md"],["routerLink","/utilisateur/carte"],["routerLink","/utilisateur/familles"],["routerLink","/utilisateur/abonnements"],["routerLink","/utilisateur/requete"],["routerLink","/utilisateur/permis"],["routerLink","/utilisateur/activite"],["routerLink","/utilisateur/facture"],["routerLink","/utilisateur/editer"],["slot","start",1,"avatar-icon"],[1,"icon-parametres"],["routerLink","/utilisateur/fiche-sante"],["routerLink","/utilisateur/changer-mot-de-passe"],[1,"icon-key"],["routerLink","/utilisateur/mfa"],[1,"icon-shield-check"],["routerLink","/utilisateur/supprimer"],[1,"icon-user-x"],[1,"icon-message-square"],[1,"icon-requete-minimal"],[1,"icon-permis-minimal"],[1,"icon-calendar-check"],[1,"icon-facture"],[1,"icon-heart"]]},template:function(n,i){1&n&&e.DNE(0,U1,37,49,"div",23)(1,k1,37,9),2&n&&e.vxM(0,i.isMobile?1:0)},dependencies:[ie.r6,$.uz,$.he,$.nf,$.N7,$.oY,V.Wk,V.wQ],encapsulation:2}),_})();const j1=t=>({"filter-searche-global-active":t});let w1=(()=>{var t;class _{constructor(n){this.store=n,this.selectIsSearchHeaderVisible$=this.store.select(T.selectIsSearchHeaderVisible)}onContentClick(){this.store.dispatch(T.Actions.setIsSearchHeaderVisible({payload:!1}))}}return(t=_).\u0275fac=function(n){return new(n||t)(e.rXU(j.il))},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-app-utilisateur-page"]],decls:11,vars:10,consts:[[1,"hide-desktop","mobile-header",3,"headerTitle","returnButtonType","menuId"],["id","monProfil","scrollEvents","true",3,"click","ngClass"],[1,"main-page-container","flex"],[1,"mon-profil-desktop"],[1,"mon-profil-desktop-flex"],[1,"hide-mobile",3,"isMobile"],[1,"mon-profil-desktop-content"],["name","profil"],[1,"hide-desktop",3,"isMobile"],[1,"hide-mobile"]],template:function(n,i){1&n&&(e.nrm(0,"vplus-mobile-header",0),e.j41(1,"ion-content",1),e.nI1(2,"async"),e.bIt("click",function(){return i.onContentClick()}),e.j41(3,"div",2)(4,"div",3)(5,"div",4),e.nrm(6,"vplus-profil-onglets",5),e.j41(7,"div",6),e.nrm(8,"router-outlet",7),e.k0s()()(),e.nrm(9,"vplus-profil-onglets",8)(10,"app-copyright-footer",9),e.k0s()()),2&n&&(e.Y8G("headerTitle","")("returnButtonType","home-button")("menuId","monProfil"),e.R7$(),e.Y8G("ngClass",e.eq3(8,j1,e.bMT(2,6,i.selectIsSearchHeaderVisible$))),e.R7$(5),e.Y8G("isMobile",!1),e.R7$(3),e.Y8G("isMobile",!0))},dependencies:[A.YU,de.f,$.W9,Mt.G,V.n3,x1,A.Jj],encapsulation:2}),_})();var It=C(96141);let ht=(()=>{var t;class _{constructor(n){this.utilisateurService=n}resolve(n){var i=this;return(0,zn.A)(function*(){const s=n.params.codeVerification;let r;try{r=yield i.utilisateurService.VerifyResetPasswordCode(s)}catch{r=null}return r})()}}return(t=_).\u0275fac=function(n){return new(n||t)(e.KVO(ce.$))},t.\u0275prov=e.jDH({token:t,factory:t.\u0275fac}),_})();const V1=V.iI.forChild([{path:"",canActivateChild:[()=>{const t=(0,e.WQX)(te.o),_=(0,e.WQX)(Dn.T),o=(0,e.WQX)(e.abz),n=(0,e.WQX)(V.Ix),i=(0,e.WQX)(A.qQ);return!t.appConfig.useOAuth||(i.defaultView.localStorage.getItem("token")?n.createUrlTree("VQ"===Je.c.clientName?["propriete","accueil"]:["accueil"]):_.startSigninMainWindow().pipe((0,Q.T)(()=>!1),(0,g.pQ)(o)))}],children:[{path:"",pathMatch:"full",redirectTo:"/utilisateur/profil/(profil:accueil)"},{path:"connexion",canActivate:[In,rn.Q],component:oi},{path:"creer",canActivate:[In,rn.Q],resolve:{categoriesAlerte:en,servicesOfferts:nn},component:Rc},{path:"profil/editer",pathMatch:"full",redirectTo:"/utilisateur/profil/(profil:editer)"},{path:"profil/supprimer",pathMatch:"full",redirectTo:"/utilisateur/profil/(profil:supprimer)"},{path:"profil/changer-mot-de-passe",pathMatch:"full",redirectTo:"/utilisateur/profil/(profil:changer-mot-de-passe)"},{path:"profil/mfa",pathMatch:"full",redirectTo:"/utilisateur/profil/(profil:mfa)"},{path:"profil/abonnements",pathMatch:"full",redirectTo:"/utilisateur/profil/(profil:abonnements)"},{path:"profil/carte",pathMatch:"full",redirectTo:"/utilisateur/profil/(profil:carte)"},{path:"profil/familles",pathMatch:"full",canActivate:[t=>{const _=(0,e.WQX)(V.Ix),o=(0,e.WQX)(On.OD),n={...t.queryParams};return o.is("mobile")||o.is("mobileweb")||o.is("android")||o.is("ios")?_.createUrlTree(["/utilisateur","familles"],{queryParams:n}):_.createUrlTree(["/utilisateur/profil",{outlets:{profil:["familles"]}}],{queryParams:n})}],component:Mn},{path:"profil/enfant/:perId",canActivate:[t=>{const _=(0,e.WQX)(V.Ix),o=(0,e.WQX)(j.il),n=(0,e.WQX)(ce.$),i=t.paramMap.get("perId"),s=()=>_.createUrlTree(["/utilisateur/profil",{outlets:{profil:["familles"]}}]);return i?o.select(T.selectCurrentUser).pipe((0,me.s)(1),(0,ae.n)(r=>null!=r&&r.perId?n.getFamilleByPerId(r.perId).pipe((0,Q.T)(c=>c.some(a=>{var u;return null===(u=a.membres)||void 0===u?void 0:u.some(S=>{var E;return(null===(E=S.perId)||void 0===E?void 0:E.toLowerCase())===i.toLowerCase()})})?_.createUrlTree(["/utilisateur/profil",{outlets:{profil:["enfant",i]}}]):s()),(0,oe.W)(()=>(0,K.of)(s()))):(0,K.of)(s()))):s()}],component:Wn},{path:"profil/accueil",pathMatch:"full",redirectTo:"/utilisateur/profil/(profil:accueil)"},{path:"profil/requete",pathMatch:"full",redirectTo:"/utilisateur/profil/(profil:requete)"},{path:"profil/permis",pathMatch:"full",redirectTo:"/utilisateur/profil/(profil:permis)"},{path:"profil/requete/:no",pathMatch:"full",canActivate:[It.O],component:sn.B},{path:"profil/permis/:no",pathMatch:"full",canActivate:[It.O],component:sn.B},{path:"profil/activite",pathMatch:"full",redirectTo:"/utilisateur/profil/(profil:activite)"},{path:"profil/activite/factures",pathMatch:"full",redirectTo:"/utilisateur/profil/(profil:facture)"},{path:"profil/facture",pathMatch:"full",redirectTo:"/utilisateur/profil/(profil:facture)"},{path:"profil/activite/fiche-inscription",pathMatch:"full",redirectTo:"/utilisateur/profil/(profil:activite/fiche-inscription)"},{path:"profil/fiche-sante",pathMatch:"full",redirectTo:"/utilisateur/profil/(profil:fiche-sante)"},{path:"profil",canActivate:[gn.d],resolve:{categoriesAlerte:en,servicesOfferts:nn},component:w1,children:[{path:"editer",component:St,outlet:"profil"},{path:"supprimer",component:Et,outlet:"profil"},{path:"changer-mot-de-passe",component:Tt,outlet:"profil"},{path:"carte",component:fn,outlet:"profil",canActivate:[je],canDeactivate:[An]},{path:"familles",component:Mn,outlet:"profil",canActivate:[Qn],canDeactivate:[An]},{path:"enfant/:perId",component:Wn,outlet:"profil"},{path:"mfa",component:At,outlet:"profil"},{path:"abonnements",component:Gn,outlet:"profil",resolve:{categoriesAlerte:en,servicesOfferts:nn}},{path:"accueil",component:gt,outlet:"profil",canActivate:[No]},{path:"requete",component:ot.O,outlet:"profil",resolve:{reqModule:Le.y},data:{module:m.AL.Requete},canActivate:[Ue.i,fe.M,Ae.G]},{path:"permis",component:ot.O,outlet:"profil",resolve:{reqModule:Le.y},data:{module:m.AL.Permis},canActivate:[Ue.i,fe.M,Ae.G]},{path:"requete/:no",component:sn.B,outlet:"profil",resolve:{requete:tn.K,reqModule:Le.y},data:{module:m.AL.Requete},canActivate:[Ue.i,fe.M,Ae.G]},{path:"permis/:no",component:sn.B,outlet:"profil",resolve:{requete:tn.K,reqModule:Le.y},data:{module:m.AL.Permis},canActivate:[Ue.i,fe.M,Ae.G]},{path:"facture",outlet:"profil",component:$a.J,canActivate:[gn.d,fe.M],data:{module:[m.AL.Activite,m.AL.Permis,m.AL.Requete]}},{path:"activite",outlet:"profil",canActivate:[fe.M],data:{module:m.AL.Activite},component:fo.r},{path:"reservation",component:Oo.T,canActivate:[fe.M],data:{module:m.AL.Activite},outlet:"profil"},{path:"activite/fiche-inscription",component:$n.n,outlet:"profil",canDeactivate:[Nt.g],data:{module:m.AL.Activite}},{path:"fiche-sante",outlet:"profil",canActivate:[fe.M],data:{module:m.AL.Activite},component:Pt}]},{path:"editer",component:$r},{path:"notifications",component:nl},{path:"abonnements",component:mo,resolve:{categoriesAlerte:en,servicesOfferts:nn}},{path:"carte",component:dt,canActivate:[je],canDeactivate:[An]},{path:"familles",component:ut,canDeactivate:[An]},{path:"enfant/:perId",component:Wn},{path:"accueil",component:_1},{path:"requete",component:it.r,resolve:{reqModule:Le.y},data:{module:m.AL.Requete},canActivate:[Ue.i,Ae.G]},{path:"permis",component:it.r,resolve:{reqModule:Le.y},data:{module:m.AL.Permis},canActivate:[Ue.i,Ae.G]},{path:"requete/:no",component:Ct,resolve:{requete:tn.K,reqModule:Le.y},data:{module:m.AL.Requete},canActivate:[Ue.i,fe.M,Ae.G]},{path:"permis/:no",component:Ct,resolve:{requete:tn.K,reqModule:Le.y},data:{module:m.AL.Permis},canActivate:[Ue.i,fe.M,Ae.G]},{path:"activite",component:Po.e,canActivate:[Ba.U]},{path:"activite/fiche-inscription",component:$n.n,canDeactivate:[Nt.g]},{path:"fiche-sante",component:Da,data:{module:m.AL.Activite},canActivate:[fe.M]},{path:"facture",component:va.e},{path:"changer-mot-de-passe",component:Js},{path:"mfa",component:n1},{path:"supprimer",canActivate:[gn.d],component:Ps},{path:"activer-compte/:codeActivation",canActivate:[rn.Q],component:Fr.V},{path:"reinitialiser-mdp",canActivate:[In,rn.Q],component:Ll},{path:"reinitialiser-mdp/:codeVerification",canActivate:[In,rn.Q],resolve:{code:ht},component:Pl},{path:"verifier-courriel",canActivate:[Jn],component:Ns},{path:"invitation-famille-adulte",canActivate:[gn.d],component:Ya},{path:"desabonner-categorie",component:gs}]}]);let z1=(()=>{var t;class _{}return(t=_).\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({providers:[ce.$,Ln.b,vn.H,en,nn,Ke.V,Jn,ht,Ae.G,je,Qn,tn.K],imports:[we.G,bn.r,Ft.h,Rn.A,$n.n,V1,Fn.f,Gt.b,j.md.forFeature
1("utilisateur",Bt),M.Vm.forFeature([wt,Un.s,$t.N])]}),_})()}}]);
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.