PageSourceSearch

https://stejustine.net/2618.deeec4c4deb8dc7b.js

js stejustine.net collected 2026-09-25 09:16:14 UTC 67,273 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpc=self.webpackChunkpc||[]).push([[2618],{62618:(Ce,U,r)=>{r.r(U),r.d(U,{RequeteModule:()=>Ti});var j=r(24339),G=r(68570),b=r(62662),V=r(44955),X=r(26180),Q=r(66345),te=r(36013),E=r(12424),L=r(48235),m=r(49823),p=r(51188),F=r(37084),be=r(17370),x=r(84572),e=r(54438),g=r(53387),_=r(71322),B=r(98377),ie=r(2042),P=r(26450),oe=r(81018),ne=r(47746),R=r(9310),se=r(56977),ae=r(59042),D=r(32102),H=r(88834),h=r(60177),W=r(81405),N=r(88974),Ee=r(75824),Y=r(87748),Fe=r(73910);const fe=i=>["/","utilisateur",i],De=i=>({"filter-searche-global-active":i}),Ue=(i,a,n)=>["/",i,a,n],Ge=i=>({"background-color":i});function Ve(i,a){1&i&&e.nrm(0,"vplus-loading-spinner")}function Xe(i,a){1&i&&(e.j41(0,"th",28),e.pXf(1,1),e.k0s())}function Qe(i,a){if(1&i){const n=e.RV6();e.j41(0,"td",29)(1,"a",30),e.bIt("click",function(){const o=e.eBV(n).$implicit,s=e.XpG();return e.Njj(s.redirectByStatusType(o))}),e.EFF(2),e.k0s()()}if(2&i){const n=a.$implicit;e.R7$(2),e.JRh(n.titre)}}function ke(i,a){1&i&&(e.j41(0,"th",28),e.pXf(1,2),e.k0s())}function je(i,a){if(1&i&&(e.j41(0,"td",29)(1,"div",31),e.nrm(2,"span",32),e.EFF(3),e.k0s()()),2&i){const n=a.$implicit;e.R7$(2),e.Y8G("ngStyle",e.eq3(2,Ge,n.statutCouleur)),e.R7$(),e.SpI("\xa0 ",n.statutNom," ")}}function xe(i,a){1&i&&(e.j41(0,"th",28),e.pXf(1,3),e.k0s())}function We(i,a){if(1&i&&(e.j41(0,"td",29),e.EFF(1),e.nI1(2,"vplusMoment"),e.k0s()),2&i){const n=a.$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,n.dateModificationStatut),"")}}function ze(i,a){1&i&&(e.j41(0,"th",28),e.pXf(1,4),e.k0s())}function we(i,a){if(1&i&&(e.j41(0,"td",29),e.EFF(1),e.k0s()),2&i){const n=a.$implicit;e.R7$(),e.SpI(" ",n.categorieNom,"")}}function qe(i,a){1&i&&(e.j41(0,"th",28),e.pXf(1,5),e.k0s())}function Be(i,a){if(1&i&&(e.j41(0,"td",29),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&i){const n=a.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,n.dateCreation,"shortDate"),"")}}function He(i,a){1&i&&e.nrm(0,"tr",33)}function Ye(i,a){1&i&&e.nrm(0,"tr",34)}function Je(i,a){1&i&&e.nrm(0,"app-copyright-footer")}let Ze=(()=>{var i;class a extends be.dI{constructor(){super(),this.EnumTypeWiIds=_.Op,this.displayedColumns=["titre","statutNom","dateModificationStatut","categorieNom","dateCreation"],this.dataLoaded=!1,this.requeteService=(0,e.WQX)(ne.t),this.store=(0,e.WQX)(R.il),this.route=(0,e.WQX)(p.nX),this.router=(0,e.WQX)(p.Ix),this.localisationService=(0,e.WQX)(B.A),this.appMetaTags=(0,e.WQX)(F.W),this.platform=(0,e.WQX)(oe.OD),this.selectIsSearchHeaderVisible$=this.store.select(m.selectIsSearchHeaderVisible),this.isMobile=this.platform.is("mobileweb")||this.platform.is("ios")||this.platform.is("android")}onContentClick(){this.store.dispatch(m.Actions.setIsSearchHeaderVisible({payload:!1}))}ionViewWillEnter(){this.wiType=this.route.snapshot.data.module===g.AL.Requete||this.route.snapshot.data.module===g.AL.Entreprise&&this.route._routerState.snapshot.url.split("/").includes("requete")?_.Op.Requete:_.Op.Permis,this.fromOrganisation="1"===this.route.snapshot.queryParams.organisation,this.appMetaTags.updateMetaTags(this.wiType===_.Op.Requete?"Requ\xEAtes":"Permis"),this.dataLoaded=!1,this.title=this.wiType===_.Op.Requete?"Toutes les requ\xEAtes":"Toutes les demandes de permis",this.filterPlaceholder=this.wiType===_.Op.Requete?"Ex: Titre de la requ\xEAte...":"Ex: Titre de la demande de permis",this.requeteService.fetchWorkItemListByReqId(this.fromOrganisation?_.jX.Organisation:_.jX.Citoyen,this.wiType).pipe((0,se.Q)(this.destroy$)).subscribe(t=>{this.store.dispatch(L.En.setWorkitemAllList({payload:null==t?void 0:t.affectations})),this.dataLoaded=!0}),(0,x.z)([this.store.select(L.Yd),this.store.select(L.PD)]).pipe((0,se.Q)(this.destroy$)).subscribe(([t,o])=>{t.forEach(s=>{var l,d,c;const C=null===(l=o.find(f=>f.statutId===s.statutId))||void 0===l?void 0:l.statusLocalisations;s.statutNom=(null===(d=C.find(f=>f.lclzTag===this.localisationService.getCurrentLocalisation()))||void 0===d?void 0:d.statusNom)||(null===(c=C.find(f=>f.lclzTag!==this.localisationService.getCurrentLocalisation()))||void 0===c?void 0:c.statusNom)}),t=(t=t.filter(s=>o.find(l=>l.statutId===s.statutId).statCatId!==_.wx.Brouillon)).map(s=>(s.isBrouillonCitoyen=!1,o.find(l=>l.statutId===s.statutId).statCatId===_.wx.BrouillonCitoyen&&(s.isBrouillonCitoyen=!0),s)),this.dataSource=new P.I6(t),this.dataSource.sort=this.sort})}applyFilter(t){this.dataSource.filter=t.target.value.trim().toLowerCase()}redirectByStatusType(t){const o=t.isBrouillonCitoyen?["/",this.wiType===_.Op.Requete?"requete":"permis","poursuite",t.no]:["/",this.wiType===_.Op.Requete?"requete":"permis",t.no];this.store.dispatch(E.setCurrentCategorie({payload:{categorieId:t.categorieId,sousCategorieId:t.sousCategorieId}})),this.store.dispatch(E.setCurrentWorkitem({payload:t})),this.router.navigate(o,{queryParams:this.fromOrganisation?{organisation:1}:{}})}}return(i=a).\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.VBU({type:i,selectors:[["vplus-liste-affectation"]],viewQuery:function(t,o){if(1&t&&e.GBs(ie.B4,7),2&t){let s;e.mGM(s=e.lsd())&&(o.sort=s.first)}},features:[e.Vt3],decls:38,vars:26,consts:()=>{let n,t,o,s,l,d;return n="Filtrer",t="Titre",o="Statut",s="Modif. du statut",l="C
1at\xE9gorie",d="Date de cr\xE9ation",[n,t,o,s,l,d,[1,"hide-desktop","mobile-header",3,"headerTitle","defaultHref","returnButtonType","menuId"],["id","toutesLesRequetes","scrollEvents","true",3,"click","ngClass"],[1,"main-page-container"],[1,"standard-page-content"],[4,"ngIf"],[3,"hidden"],[1,"requete-title"],["mat-icon-button","",3,"routerLink"],[1,"icon-left-arrow"],[1,"full-width","table-filter"],["autocomplete","off","matInput","",3,"keyup","placeholder"],[1,"responsive-table-stroked"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","titre"],["mat-sort-header","","mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","statutNom"],["matColumnDef","dateModificationStatut"],["matColumnDef","categorieNom"],["matColumnDef","dateCreation"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-sort-header","","mat-header-cell",""],["mat-cell",""],["ngClass","link-pointer",3,"click"],[1,"statut-cell"],[1,"statut-cercle",3,"ngStyle"],["mat-header-row",""],["mat-row",""]]},template:function(t,o){1&t&&(e.nrm(0,"vplus-mobile-header",6),e.j41(1,"ion-content",7),e.nI1(2,"async"),e.bIt("click",function(){return o.onContentClick()}),e.j41(3,"div",8)(4,"div",9),e.DNE(5,Ve,1,0,"vplus-loading-spinner",10),e.j41(6,"div",11)(7,"div",12)(8,"h3")(9,"button",13),e.nrm(10,"i",14),e.k0s(),e.EFF(11),e.k0s()(),e.j41(12,"mat-form-field",15)(13,"mat-label"),e.pXf(14,0),e.k0s(),e.j41(15,"input",16),e.bIt("keyup",function(l){return o.applyFilter(l)}),e.k0s()(),e.j41(16,"div",17)(17,"table",18),e.qex(18,19),e.DNE(19,Xe,2,0,"th",20)(20,Qe,3,1,"td",21),e.bVm(),e.qex(21,22),e.DNE(22,ke,2,0,"th",20)(23,je,4,4,"td",21),e.bVm(),e.qex(24,23),e.DNE(25,xe,2,0,"th",20)(26,We,3,3,"td",21),e.bVm(),e.qex(27,24),e.DNE(28,ze,2,0,"th",20)(29,we,2,1,"td",21),e.bVm(),e.qex(30,25),e.DNE(31,qe,2,0,"th",20)(32,Be,3,4,"td",21),e.bVm(),e.DNE(33,He,1,0,"tr",26)(34,Ye,1,0,"tr",27),e.k0s()(),e.nrm(35,"br")(36,"br"),e.k0s()(),e.DNE(37,Je,1,0,"app-copyright-footer"),e.k0s()()),2&t&&(e.Y8G("headerTitle","")("defaultHref",e.eq3(16,fe,o.wiType===o.EnumTypeWiIds.Requete?"requete":"permis"))("returnButtonType","back-button")("menuId","toutesLesRequetes"),e.R7$(),e.Y8G("ngClass",e.eq3(18,De,e.bMT(2,14,o.selectIsSearchHeaderVisible$))),e.R7$(4),e.Y8G("ngIf",!o.dataLoaded),e.R7$(),e.Y8G("hidden",!o.dataLoaded),e.R7$(3),e.Y8G("routerLink",o.isMobile?e.eq3(20,fe,o.wiType===o.EnumTypeWiIds.Requete?"requete":"permis"):e.sMw(22,Ue,o.fromOrganisation?"organisation":"utilisateur",o.fromOrganisation?"admin":"profil",o.wiType===o.EnumTypeWiIds.Requete?"requete":"permis")),e.R7$(2),e.SpI(" ",o.title," "),e.R7$(4),e.Y8G("placeholder",o.filterPlaceholder),e.R7$(2),e.Y8G("dataSource",o.dataSource),e.R7$(16),e.Y8G("matHeaderRowDef",o.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",o.displayedColumns),e.R7$(3),e.vxM(37,o.isMobile?-1:37))},dependencies:[ie.B4,ie.aE,P.Zl,P.tL,P.ji,P.cC,P.YV,P.iL,P.KS,P.$R,P.YZ,P.NB,ae.fg,D.rl,D.nJ,H.iY,h.YU,h.bT,h.B3,W.f,N.W9,N.N7,Ee.N,Y.G,p.Wk,h.Jj,h.vh,Fe.x],styles:[".link-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),a})();const pe=(i,a)=>{var n,t;if((null==i||null===(n=i.wiEditeur)||void 0===n?void 0:n.currentStep)===_.Zj.Failed||(null==i||null===(t=i.wiEditeur)||void 0===t?void 0:t.currentStep)===_.Zj.Completed)return!0;const s=(a.data.module===g.AL.Requete?_.Op.Requete:_.Op.Permis)===_.Op.Requete?"Votre requ\xEAte en cours de cr\xE9ation sera perdue. \xCAtes-vous s\xFBr de vouloir quitter?":"Votre demande de permis en cours de cr\xE9ation sera perdue. \xCAtes-vous s\xFBr de vouloir quitter?",l=window.confirm(s);var d;return l&&(null==i||null===(d=i.wiEditeur)||void 0===d||d.onLeaveConfirmed()),l};var z=r(77339),w=r(35052),me=r(61622),Ke=r(27468),u=r(89417),M=r(30049),re=r(88141),et=r(25558),$=r(96697),T=r(89079),Te=r(9454),tt=r(14823),it=r(1975);function ot(i,a){1&i&&(e.j41(0,"mat-error"),e.pXf(1,5),e.k0s())}function nt(i,a){1&i&&(e.j41(0,"mat-error"),e.pXf(1,6),e.k0s())}function st(i,a){1&i&&(e.j41(0,"mat-error"),e.pXf(1,7),e.k0s())}function at(i,a){1&i&&(e.j41(0,"mat-error"),e.pXf(1,8),e.k0s())}function rt(i,a){if(1&i){const n=e.RV6();e.j41(0,"div",14)(1,"h2",15),e.EFF(2),e.k0s(),e.j41(3,"p")(4,"span"),e.pXf(5,1),e.k0s(),e.EFF(6,"\xa0"),e.j41(7,"b"),e.EFF(8),e.k0s(),e.EFF(9,"\xa0"),e.j41(10,"span"),e.pXf(11,2),e.k0s(),e.EFF(12,"\xa0"),e.j41(13,"b"),e.EFF(14),e.k0s()(),e.j41(15,"p")(16,"span",16),e.bIt("click",function(){e.eBV(n);const o=e.XpG();return e.Njj(o.renvoyerCodeAccess())}),e.pXf(17,3),e.k0s()(),e.j41(18,"form",17),e.bIt("ngSubmit",function(){e.eBV(n);const o=e.XpG();return e.Njj(o.sendAccessCode())}),e.j41(19,"div",18)(20,"mat-form-field",19),e.nrm(21,"input",20),e.DNE(22,ot,2,0,"mat-error")(23,nt,2,0,"mat-error")(24,st,2,0,"mat-error")(25,at,2,0,"mat-error"),e.k0s(),e.j41(26,"div",21)(27,"ion-button",22)(28,"span"),e.pXf(29,4),e.k0s()()()()()()}if(2&i){const n=e.XpG();e.R7$(2),e.JRh(n.sectionTitre),e.R7$(6),e.JRh(n.citoyenCourriel),e.R7$(6),e.E5c("",n.affectationType.toLowerCase()," ",n.no," ",n.w
1Ino,"."),e.R7$(4),e.Y8G("formGroup",n.form),e.R7$(4),e.vxM(22,n.form.get("accessCode").hasError("required")?22:-1),e.R7$(),e.vxM(23,n.form.get("accessCode").hasError("minlength")?23:-1),e.R7$(),e.vxM(24,n.form.get("accessCode").hasError("invalid")?24:-1),e.R7$(),e.vxM(25,n.form.get("accessCode").hasError("unexpectedError")?25:-1)}}function lt(i,a){if(1&i){const n=e.RV6();e.j41(0,"div",36),e.bIt("click",function(){e.eBV(n);const o=e.XpG(3);return e.Njj(o.toggleChat(!0))}),e.nrm(1,"i",37),e.j41(2,"span"),e.pXf(3,10),e.k0s()()}}function _t(i,a){if(1&i&&(e.j41(0,"div"),e.nrm(1,"vplus-affectation-permis",38),e.k0s()),2&i){const n=e.XpG(3);e.R7$(),e.Y8G("workItem",n.wi)("docOfficiels",n.docOfficiels)}}function ct(i,a){if(1&i){const n=e.RV6();e.j41(0,"div",23)(1,"div",24)(2,"div")(3,"div")(4,"a",25),e.nrm(5,"i",26),e.EFF(6),e.k0s(),e.j41(7,"h1"),e.EFF(8),e.k0s()(),e.j41(9,"button",27),e.bIt("click",function(){e.eBV(n);const o=e.XpG(2);return e.Njj(o.toggleChat(!0))}),e.nrm(10,"i",28),e.k0s()(),e.j41(11,"div"),e.DNE(12,lt,4,0,"div",29),e.nrm(13,"vplus-affectation-informations",30),e.k0s()(),e.j41(14,"div",31),e.DNE(15,_t,2,2,"div"),e.j41(16,"mat-expansion-panel",32,0)(18,"mat-expansion-panel-header",33)(19,"div",34)(20,"h2"),e.pXf(21,9),e.k0s(),e.nrm(22,"i"),e.k0s()(),e.nrm(23,"vplus-affectation-survey",35),e.k0s()()()}if(2&i){const n=e.sdS(17),t=e.XpG(2);e.R7$(6),e.E5c("",t.affectationType," ",t.no," ",t.wi.no,""),e.R7$(2),e.JRh(t.wi.titre),e.R7$(),e.Y8G("matBadge",t.wi.nbrMsgNonLuUsrClt>9?"9+":t.wi.nbrMsgNonLuUsrClt)("matBadgeHidden",0===t.wi.nbrMsgNonLuUsrClt),e.R7$(3),e.vxM(12,t.wi.nbrMsgNonLuUsrClt>0?12:-1),e.R7$(),e.Y8G("workItem",t.wi)("isNouveau",t.isNouveau)("isResolu",t.isResolu),e.R7$(2),e.vxM(15,t.wi.typeWiId===t.EnumTypeWiIds.Permis&&t.wi.etatPermis&&t.wi.etatPermis.etatId!==t.EnumEtatPermis.Cree?15:-1),e.R7$(),e.Y8G("expanded",!0),e.R7$(2),e.Y8G("collapsedHeight","fit-content")("expandedHeight","fit-content"),e.R7$(4),e.AVh("icon-chevron-down",!n.expanded)("icon-chevron-up",n.expanded),e.R7$(),e.Y8G("workItem",t.wi)}}function dt(i,a){if(1&i){const n=e.RV6();e.j41(0,"div",23)(1,"vplus-affectation-conversation",39),e.bIt("toogleChatEvent",function(o){e.eBV(n);const s=e.XpG(2);return e.Njj(s.toggleChat(o))}),e.k0s()()}if(2&i){const n=e.XpG(2);e.R7$(),e.Y8G("isResolu",n.isResolu)("workItem",n.wi)("affectationType",n.affectationType)("fromInvite",!0)("inviteAdminId",n.perId)}}function ut(i,a){if(1&i&&e.DNE(0,ct,24,19,"div",23)(1,dt,2,5),2&i){const n=e.XpG();e.vxM(0,n.showChat?1:0)}}let Ct=(()=>{var i;class a{constructor(){this.destroyRef=(0,e.WQX)(e.abz),this.requeteService=(0,e.WQX)(ne.t),this.route=(0,e.WQX)(p.nX),this.appMetaTags=(0,e.WQX)(F.W),this.fb=(0,e.WQX)(u.ok),this.store=(0,e.WQX)(R.il),this.router=(0,e.WQX)(p.Ix),this.localisationService=(0,e.WQX)(B.A),this.appConfig=(0,e.WQX)(w.o),this.actions$=(0,e.WQX)(z.En),this.EnumTypeWiIds=_.Op,this.EnumEtatPermis=me.kW,this.dataLoaded=!1,this.paramsReady=!1,this.docOfficiels=[],this.isPermis=!1,this.no="n\xB0",this.selectIsSearchHeaderVisible$=this.store.select(m.selectIsSearchHeaderVisible),this.showChat=!1,this.backHref="/accueil"}ngOnInit(){this.wiType=this.route.snapshot.data.module,this.isPermis=this.wiType===g.AL.Permis,this.appMetaTags.updateMetaTags(this.isPermis?"Consulter ma demande de permis":"Consulter ma requ\xEAte"),this.affectationId=this.route.snapshot.params.id,this.perId=this.route.snapshot.queryParams.perId,this.affectationType=this.isPermis?"Demande de permis":"Requ\xEAte",this.submitBtnText="Soumettre",this.sectionTitre=this.isPermis?"Consultation d'une demande de permis":"Consultation d'une requ\xEAte",this.route.queryParamMap.pipe((0,T.pQ)(this.destroyRef)).subscribe(t=>{if(this.showChat="1"===t.get("conversation"),this.showChat){const o=this.router.createUrlTree([],{relativeTo:this.route,queryParams:{conversation:null},queryParamsHandling:"merge"});this.backHref=o.toString()}else this.backHref="/accueil"}),this.form=this.fb.group({accessCode:["",[u.k0.required,u.k0.minLength(12)]]}),this.requeteService.getWIInfosWithAccessCode(this.affectationId,null,!1,this.perId).pipe((0,T.pQ)(this.destroyRef)).subscribe(t=>{this.citoyenCourriel=t.courrielMasque,this.wIno=t.no,this.paramsReady=!0}),this.actions$.pipe((0,z.gp)(L.En.signerPermisSuccess),(0,T.pQ)(this.destroyRef)).subscribe(({dateSignatureReq:t,detailUrl:o})=>{var s;null!==(s=this.wi)&&void 0!==s&&s.etatPermis&&(this.wi={...this.wi,etatPermis:{...this.wi.etatPermis,dateSignatureReq:t,detailUrl:o}})})}onContentClick(){this.store.dispatch(m.Actions.setIsSearchHeaderVisible({payload:!1}))}
1sendAccessCode(){this.form.invalid||this.requeteService.getWIInfosWithAccessCode(this.affectationId,this.form.get("accessCode").value,!0).pipe((0,re.M)(t=>{var o;this.store.dispatch(E.setCurrentWorkitem({payload:t})),(null===(o=t.citoyen)||void 0===o||null===(o=o.telephones)||void 0===o?void 0:o.length)>0&&(t.citoyen.telephone=t.citoyen.telephones[0].numero),this.store.dispatch(E.setCurrentCitoyenSansCompte({payload:t.citoyen}))}),(0,et.n)(()=>(0,Ke.p)([this.store.select(L.x8).pipe((0,$.s)(1)),this.store.select(L.PD).pipe((0,$.s)(1))])),(0,T.pQ)(this.destroyRef)).subscribe(([t,o])=>{this.wi=t,this.isPermis&&this.manageDocOfficiels();const s=o.find(l=>l.statutId===t.statutId);this.isResolu=(null==s?void 0:s.statCatId)===_.wx.Ferme,this.isNouveau=(null==s?void 0:s.statCatId)===_.wx.Nouveau,this.dataLoaded=!0},t=>{this.form.get("accessCode").setErrors(403===t.status?{invalid:!0}:{unexpectedError:!0})})}manageDocOfficiels(){var t;if((null===(t=this.wi.etatPermis)||void 0===t?void 0:t.etatId)===me.kW.Cree)return;let o=this.wi.surveyDocuments.filter(l=>l.name.startsWith("vplus_docOfficiel"));const s=(0,M.g5m)(this.wi.surveyModel,this.wi.surveyReponse,this.localisationService.getCurrentLocalisation(),this.appConfig.defaultLocalisation);for(const l of s)o=o.map(d=>(d.name===l.name&&(d.title=l.fullTitle),d));this.docOfficiels=Object.values((0,M.$zQ)(o,"name"))}renvoyerCodeAccess(){this.requeteService.sendAccessCode(this.affectationId,this.perId).subscribe(t=>{"OK"===t.code?(this.router.navigate([`${this.wiType.toLowerCase()}/invite/`,this.affectationId],{queryParamsHandling:"preserve"}),this.store.dispatch(new m.Actions.ShowSnackBar("Un nouveau code d'acc\xE8s s\xE9curis\xE9 vous a \xE9t\xE9 envoy\xE9 \xE0 votre courriel."))):this.store.dispatch(new m.Actions.ShowSnackBar("Une erreur est survenue lors de la g\xE9n\xE9ration de votre code d'acc\xE8s. Veuillez r\xE9essayer plus tard.",m.EnumSnackBarType.Echec))})}toggleChat(t){this.router.navigate([],{relativeTo:this.route,queryParams:{conversation:t?1:null},queryParamsHandling:"merge"})}}return(i=a).\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.VBU({type:i,selectors:[["vplus-consulter-permis-invite"]],decls:6,vars:12,consts:()=>{let n,t,o,s,l,d,c,C,f,v,y,A;return n="Code d'acc\xE8s",t="Entrer le code d'acc\xE8s s\xE9curis\xE9 qui vous a \xE9t\xE9 envoy\xE9 \xE0",o="pour consulter votre",s="Envoyer \xE0 nouveau",l="Soumettre",d="Le code d'acc\xE8s est obligatoire",c="Le code d'acc\xE8s doit comporter 12 caract\xE8res",C="Le code d'acc\xE8s est invalide",f="Une erreur est survenue lors de la soumission",v="Messages",y="Questionnaire",A="Vous avez re\xE7u un nouveau message.",[["expansionPanel",""],t,o,s,l,d,c,C,f,y,A,["returnButtonType","back-button",1,"hide-desktop","mobile-header",3,"headerTitle","defaultHref","forceDefault","menuId"],["id","permisInviteDocuments","scrollEvents","true",3,"click"],[1,"main-page-container","affectation"],[1,"email-verification"],[1,"form-section-title"],[1,"resendCode",3,"click"],[1,"padding-bottom-12",3,"ngSubmit","formGroup"],[1,"auth-form-content"],[1,"full-width","margin-bottom-1"],["matInput","","type","text","autocomplete","one-time-code","formControlName","accessCode","placeholder",n,"maxlength","12"],[1,"auth-form-actions","margin-top-1"],["type","submit","expand","block",1,"ion-custom-button-full","ion-custom-button-standard"],[1,"animation-test"],[1,"affectation-header"],["routerLink","/accueil",1,"affectation-pre-title"],[1,"icon-arrow-left"],["matBadgeColor","warn","mat-icon-button","","color","primary","matTooltip",v,1,"secondary",3,"click","matBadge","matBadgeHidden"],[1,"icon-mail-full"],[1,"hint","primary","pointer-cursor"],[3,"workItem","isNouveau","isResolu"],[1,"affectation-content"],["hideToggle","true",1,"affectation-content-section",3,"expanded"],[3,"collapsedHeight","expandedHeight"],[1,"section-title","border-bottom"],[3,"workItem"],[1,"hint","primary","pointer-cursor",3,"click"],[1,"icon-mail"],[3,"workItem","docOfficiels"],[3,"toogleChatEvent","isResolu","workItem","affectationType","fromInvite","inviteAdminId"]]},template:function(t,o){1&t&&(e.nrm(0,"vplus-mobile-header",11),e.j41(1,"ion-content",12),e.nI1(2,"async"),e.bIt("click",function(){return o.onContentClick()}),e.j41(3,"div",13),e.DNE(4,rt,30,10,"div",14)(5,ut,2,1),e.k0s()()),2&t&&(e.Y8G("headerTitle","")("defaultHref",o.backHref)("forceDefault",!0)("menuId","permisInviteDocuments"),e.R7$(),e.AVh("filter-searche-global-active",e.bMT(2,10,o.selectIsSearchHeaderVisible$)),e.R7$(2),e.AVh("padding",!o.showChat),e.R7$(),e.vxM(4,!o.dataLoaded&&o.paramsReady?4:-1),e.R7$(),e.vxM(5,o.dataLoaded?5:-1))},dependencies:[Te.GK,Te.Z2,ae.fg,D.rl,D.TL,H.iY,tt.oV,it.k,u.qT,u.me,u.BC,u.cb,u.tU,u.j4,u.JD,W.f,N.Jm,N.W9,N.oY,p.Wk,G.Z,V.W,b.n,X.q,h.Jj],styles:[".resendCode[_ngcontent-%COMP%]{color:var(--ion-color-primary, #3880ff)}.resendCode[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),a})();var he=r(10248),Se=r(95066),S=r(60549),Et=r(5812),ft=r.n(Et),J=r(5964),Z=r(26927),ge=r(75574),pt=r(95390),mt=r(65172);const Ae=(i,a)=>a.id;function Tt(i,a){if(1&i){const n=e.RV6();e.j41(0,"div",8),e.bIt("click",function(){const o=e.eBV(n).$implicit,s=e.XpG(3);return s.clickCat(o),e.Njj(s.scrollToTop())}),e.nrm(1,"span",9),e.nI1(2,"safeHtml"),e.nrm(3,"i",10)(4,"ion-ripple-effect"),e.k0s()}if(2&i){const n=a.$implicit;e.R7$(),e.Y8G("innerHtml",e.bMT(2,1,n.nom),e.npT)}}function ht(i,a){if(1&i&&e.Z7z(0,Tt,5,3,"div",7,Ae),2&i){const n=e.XpG(2);e.Dyx(n.categorieFilteredList)}}function St(i,a){if(1&i){const n=e.RV6();e.j41(0,"div",8),e.bIt("click",function(){const o=e.eBV(n).$implicit,s=e.XpG(3);return s.clickSousCat(o),e.Njj(s.scrollToTop())}),e.nrm(1,"span",9),e.nI1(2,"safeHtml"),e.nrm(3,"i",10)(4,"ion-ripple-effect"),e.k0s()}if(2&i){const n=a.$implicit;e.R7$(),e.Y8G("innerHtml",e.bMT(2,1,n.nom),e.npT)}}function gt(i,a){if(1&i){const n=e.RV6();e.j41(0,"div",11),e.bIt("click",function(){e.eBV(n);const o=e.XpG(2);return o.back(),e.Njj(o.scrollToTop())}),e.nrm(1,"i",12)(2,"span",9),e.nI1(3,"safeHtml"),e.nrm(4,"ion-ripple-effect"),e.k0s(),e.Z7z(5,St,5,3,"div",7,Ae),e.j41(7,"div",13)(8,"button",14),e.bIt("click",function(){e.eBV(n);const o=e.XpG(2);return o.back(),e.Njj(o.scrollToTop())}),e.pXf(9,1),e.k0s()()}if(2&i){const n=e.XpG(2);e.R7$(2),e.Y8G("innerHtml",e.bMT(3,1,n.selectedCategorie.nom),e.npT),e.R7$(3),e.Dyx(n.sousCategorieFilteredList)}}function At(i,a){if(1&i&&(e.j41(0,"div",15),e.nrm(1,"span",9),e.nI1(2,"safeHtml"),e.nrm(3,"ion-ripple-effect"),e.k0s()),2&i){const n=e.XpG(3);e.R7$(),e.Y8G("innerHtml",e.bMT(2,1,n.selectedSousCategorie.nom),e.npT)}}function Ot(i,a){if(1&i){const n=e.RV6();e.j41(0,"button",19),e.bIt("click",function(){e.eBV(n);const o=e.XpG(3);return e.Njj(o.submit())}),e.pXf(1,3),e.k0s()}}function It(i,a){if(1&i){const n=e.RV6();e.j41(0,"div",11),e.bIt("click",function(){e.eBV(n);const o=e.XpG(2);return o.back(),e.Njj(o.scrollToTop())}),e.nrm(1,"i",12)(2,"span",9),e.nI1(3,"safeHtml"),e.nrm(4,"ion-ripple-effect"),e.k0s(),e.DNE(5,At,4,3,"div",15),e.j41(6,"div"),e.nrm(7,"vplus-froala-container",16,0),e.k0s(),e.j41(9,"div",17)(10,"button",14),e.bIt("click",function(){e.eBV(n);const o=e.XpG(2);return o.back(),e.Njj(o.scrollToTop())}),e.pXf(11,2),e.k0s(),e.DNE(12,Ot,2,0,"button",18),e.k0s()}if(2&i){const n=e.XpG(2);e.AVh("selected",0===n.sousCategorieFilteredList.length),e.R7$(2),e.Y8G("innerHtml",e.bMT(3,6,n.selectedCategorie.nom),e.npT),e.R7$(3),e.vxM(5,n.selectedSousCategorie?5:-1),e.R7$(2),e.Y8G("content",n.selectedCatDescription),e.R7$(5),e.vxM(12,n.isQuestionnaireStartDisabled?-1:12)}}function Nt(i,a){if(1&i&&(e.j41(0,"div")(1,"h1"),e.EFF(2),e.k0s(),e.nrm(3,"vplus-froala-container",6),e.DNE(4,ht,2,0)(5,gt,10,3)(6,It,13,8),e.k0s()),2&i){const n=e.XpG();e.R7$(2),e.JRh(n.title),e.R7$(),e.Y8G("content",n.intro.contenu),e.R7$(),e.vxM(4,n.c
1ategorieForm.get("categorieId").value&&n.selectedCategorie?-1:4),e.R7$(),e.vxM(5,n.categorieForm.get("categorieId").value&&!n.categorieForm.get("sousCategorieId").value&&n.sousCategorieFilteredList.length>1?5:-1),e.R7$(),e.vxM(6,n.selectedCategorie&&n.categorieForm.get("categorieId").value&&(n.categorieForm.get("sousCategorieId").value||n.sousCategorieFilteredList.length<2)?6:-1)}}let Pt=(()=>{var i;class a{constructor(){this.fb=(0,e.WQX)(u.ok),this.store=(0,e.WQX)(R.il),this.route=(0,e.WQX)(p.nX),this.location=(0,e.WQX)(h.aZ),this.router=(0,e.WQX)(p.Ix),this.ionContent=(0,e.WQX)(N.W9),this.appConfig=(0,e.WQX)(w.o),this.localisationService=(0,e.WQX)(B.A),this.destroyRef=(0,e.WQX)(e.abz),this.EnumTypeWiIds=_.Op,this.currentCategorie$=this.store.select(S.Pg),this.updateCategorieAction=E.setCurrentCategorie,this.renderFormContent=!1,this.sousCategorieFilteredList=[],this.selectedCategorie=null,this.selectedSousCategorie=null,this.isQuestionnaireStartDisabled=!1,this.localisation=this.localisationService.getCurrentLocalisation(),this.introList=[],this.fromOrganisation="1"===this.route.snapshot.queryParams.organisation,this.rawIntroList=[],this.rawCategorieList=[]}ngOnInit(){this.route.snapshot.data.module===g.AL.Requete||this.route.snapshot.data.module===g.AL.Entreprise&&this.route._routerState.snapshot.url.split("/").includes("requete")?(this.wiType=_.Op.Requete,this.modId=g.Zs.Requete):(this.wiType=_.Op.Permis,this.modId=g.Zs.Permis),this.wiTypeUrlPart=this.wiType===_.Op.Requete?"requete":"permis",this.title=this.wiType===_.Op.Requete?"Requ\xEAte":"Demande de permis",this.categorieForm=this.fb.group({categorieId:[null,u.k0.required],sousCategorieId:[null,u.k0.required]}),this.route.queryParamMap.pipe((0,T.pQ)(this.destroyRef)).subscribe(t=>{this.term=t.get("term"),this.applyHighlights()}),this.store.select(S.H).pipe((0,T.pQ)(this.destroyRef)).subscribe(t=>{this.rawIntroList=t,this.applyHighlights()}),this.store.select(S.ci).pipe((0,$.s)(1)).subscribe(t=>{this.rawCategorieList=t.filter(o=>o.actif&&!o.limitCreationByApplicant&&o.typeWiId===this.wiType&&(o.surveyModel||o.sousCategorieList.some(s=>s.actif&&!s.limitCreationByApplicant&&s.surveyModel))),this.applyHighlights()}),this.categorieForm.controls.categorieId.valueChanges.pipe((0,T.pQ)(this.destroyRef)).subscribe(t=>{var o,s,l,d;this.selectedCategorie=t?this.categorieFilteredList.find(c=>c.id===t):null,this.sousCategorieFilteredList=null!==(o=null===(s=this.selectedCategorie)||void 0===s?void 0:s.sousCategorieList.filter(c=>c.actif&&!c.limitCreationByApplicant&&c.surveyModel))&&void 0!==o?o:[],this.selectedCategorie||(this.categorieForm.get("sousCategorieId").setValue(null),this.selectedSousCategorie=null),0===this.sousCategorieFilteredList.length?(this.selectedCatDescription=null===(l=this.selectedCategorie)||void 0===l?void 0:l.description,this.isQuestionnaireStartDisabled=!(null===(d=this.selectedCategorie)||void 0===d||!d.disableQuestionnaireStart),this.categorieForm.get("sousCategorieId").clearValidators()):(this.selectedCatDescription=null,this.isQuestionnaireStartDisabled=!1,this.categorieForm.get("sousCategorieId").setValidators([u.k0.required]),this.categorieForm.get("sousCategorieId").reset())}),this.categorieForm.controls.sousCategorieId.valueChanges.pipe((0,T.pQ)(this.destroyRef),(0,J.p)(t=>!!t)).subscribe(t=>{var o,s;this.selectedSousCategorie=this.sousCategorieFilteredList.find(l=>l.id===t),this.selectedCatDescription=null===(o=this.selectedSousCategorie)||void 0===o?void 0:o.description,this.isQuestionnaireStartDisabled=!(null===(s=this.selectedSousCategorie)||void 0===s||!s.disableQuestionnaireStart)}),this.route.queryParams.pipe((0,T.pQ)(this.destroyRef)).subscribe(t=>this.loadFormByParam(t))}applyHighlights(){this.introList=this.rawIntroList.map(t=>({...t,contenu:(0,Z.g)(t.contenu,this.term)})),this.intro=this.introList.find(t=>t.modId===this.modId&&t.lclzTag===this.localisation),this.categorieFilteredList=this.rawCategorieList.map(t=>({...t,nom:(0,Z.g)(t.nom,this.term),description:(0,Z.g)(t.description,this.term),sousCategorieList:t.sousCategorieList.map(o=>({...o,nom:(0,Z.g)(o.nom,this.term)}))}
1))}loadFormByParam(t){const o=t.cat,s=o&&this.categorieFilteredList.find(l=>this.sanitizeCatNom(l.nom)===o);o&&s?setTimeout(()=>{this.categorieForm.get("categorieId").patchValue(s.id);const l=t.souscat,d=l&&this.sousCategorieFilteredList.find(c=>this.sanitizeCatNom(c.nom)===l);d?this.categorieForm.get("sousCategorieId").patchValue(d.id):1===this.sousCategorieFilteredList.length&&this.clickSousCat(this.sousCategorieFilteredList[0]),this.renderFormContent=!0}):this.renderFormContent=!0}clickCat(t){this.categorieForm.get("categorieId").patchValue(t.id),this.location.replaceState(`/${this.wiTypeUrlPart}`,`cat=${this.sanitizeCatNom(t.nom)}${this.fromOrganisation?"&organisation=1":""}`),1===this.sousCategorieFilteredList.length&&this.clickSousCat(this.sousCategorieFilteredList[0])}clickSousCat(t){this.categorieForm.get("sousCategorieId").patchValue(t.id),this.location.replaceState(`/${this.wiTypeUrlPart}`,`cat=${this.sanitizeCatNom(this.selectedCategorie.nom)}&souscat=${this.sanitizeCatNom(t.nom)}${this.fromOrganisation?"&organisation=1":""}`)}sanitizeCatNom(t){return ft()(t.replace(/<[^>]*>/g,""),{lower:!0,strict:!0})}back(){this.categorieForm.get("sousCategorieId").value&&this.sousCategorieFilteredList.length>1?(this.categorieForm.get("sousCategorieId").patchValue(null),this.location.replaceState(`/${this.wiTypeUrlPart}`,`cat=${this.sanitizeCatNom(this.selectedCategorie.nom)}${this.fromOrganisation?"&organisation=1":""}`)):(this.categorieForm.get("categorieId").value||1===this.sousCategorieFilteredList.length)&&(this.categorieForm.get("categorieId").patchValue(null),this.location.replaceState(`/${this.wiTypeUrlPart}`,this.fromOrganisation?"?organisation=1":""))}submit(){const t=this.selectedCategorie?this.sanitizeCatNom(this.selectedCategorie.nom):null,o=this.selectedSousCategorie?this.sanitizeCatNom(this.selectedSousCategorie.nom):null;this.router.navigate([this.wiTypeUrlPart,"creation"],{queryParams:{invite:null,organisation:this.fromOrganisation?1:0,cat:t,souscat:o}})}scrollToTop(){this.ionContent.scrollToTop()}}return(i=a).\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.VBU({type:i,selectors:[["vplus-affectation-creation-categorie"]],decls:4,vars:6,consts:()=>{let n,t,o;return n=" Retour ",t=" Retour ",o=" Commencer ",[["froalaContainer",""],n,t,o,[1,"standard-page-content"],[1,"max-720",3,"formGroup","vplusSyncStore","vplusSyncAction"],[1,"responsive-padding-bottom",3,"content"],[1,"requete-categorie-button","ion-activatable","ripple-parent"],[1,"requete-categorie-button","ion-activatable","ripple-parent",3,"click"],[3,"innerHtml"],[1,"icon-chevron-right"],[1,"requete-categorie-button","requete-categorie-button-back","ion-activatable","ripple-parent",3,"click"],[1,"icon-chevron-left"],[1,"margin-top-2"],["type","button","mat-stroked-button","",1,"custom-button-standard","custom-button-stroked",3,"click"],[1,"requete-categorie-button","selected","ion-activatable","ripple-parent"],[1,"margin-top-2","margin-bottom-1",3,"content"],[1,"flex-space-between","margin-top-2"],["type","submit","mat-raised-button","",1,"custom-button-full","custom-button-standard","custom-button-stepper"],["type","submit","mat-raised-button","",1,"custom-button-full","custom-button-standard","custom-button-stepper",3,"click"]]},template:function(t,o){1&t&&(e.j41(0,"div",4)(1,"form",5),e.nI1(2,"async"),e.DNE(3,Nt,7,5,"div"),e.k0s()()),2&t&&(e.R7$(),e.Y8G("formGroup",o.categorieForm)("vplusSyncStore",e.bMT(2,4,o.currentCategorie$))("vplusSyncAction",o.updateCategorieAction),e.R7$(2),e.vxM(3,o.renderFormContent?3:-1))},dependencies:[H.$z,u.qT,u.cb,u.j4,ge.Q,N.S7,pt.m,h.Jj,mt.$n],styles:[".stepper-disabled .mat-horizontal-stepper-header{pointer-events:none!important}.mobile-request-spacing[_ngcontent-%COMP%]{padding:18px 18px 0}@media (min-width: 960px){.mobile-request-spacing[_ngcontent-%COMP%]{padding:0}}  .sv-pageRoot>.sv_row>.sv_p_container>h4.sv_title-underline{margin-bottom:2rem;padding-bottom:1rem;padding-top:2rem;border-bottom:1px solid var(--divider-color);display:flex;align-items:center;font-size:1.3rem}@media (min-width: 600px){  .sv-pageRoot>.sv_row>.sv_p_container>h4.sv_title-underline{font-size:1.5rem}}@media (min-width: 1280px){  .sv-pageRoot>.sv_row>.sv_p_container>h4.sv_title-underline{font-size:1.6rem}}.save-draft-button[_ngcontent-%COMP%]{font-size:14px;margin-left:auto}@media (max-width: 768px){.save-draft-button[_ngcontent-%COMP%]{display:none!important}}.mobile-save-draft-button[_ngcontent-%COMP%]{font-size:14px;margin:auto;display:flex!important}@media (min-width: 769px){.mobile-save-draft-button[_ngcontent-%COMP%]{display:none!important}}.save-and-quit-container[_ngcontent-%COMP%]{padding-top:1vh}@media (min-width: 769px){.save-and-quit-container[_ngcontent-%COMP%]{display:none!important}}.showAllAffectations[_ngcontent-%COMP%]{margin-top:33px}.identification-title[_ngcontent-%COMP%]{font-size:1.4rem}@media (min-width: 600px){.identification-title[_ngcontent-%COMP%]{font-size:1.55rem}}",".standard-page-content[_ngcontent-%COMP%]{margin-bottom:48px}"]}),a})();function vt(i,a){1&i&&e.nrm(0,"vplus-affectation-creation-categorie")}function Rt(i,a){1&i&&e.nrm(0,"app-copyright-footer")}let Mt=(()=>{var i;class a{constructor(){this.isLoaded=!1,this.returnButtonType="back-button",this.platform=(0,e.WQX)(oe.OD),this.store=(0,e.WQX)(R.il),this.route=(0,e.WQX)(p.nX),this.appMetaTags=(0,e.WQX)(F.W),this.router=(0,e.WQX)(p.Ix),this.appConfig=(0,e.WQX)(w.o),this.selectIsSearchHeaderVisible$=this.store.select(m.selectIsSearchHeaderVisible),this.isMobile=this.platform.is("mobileweb")||this.platform.is("ios")||this.platform.is("android")}onContentClick(){this.store.dispatch(m.Actions.setIsSearchHeaderVisible({payload:!1}))}ionViewWillEnter(){this.shouldReuseRouteDefaultFn=this.router.routeReuseStrategy.shouldReuseRoute;
1const t=this.route.snapshot.data.module===g.AL.Requete?_.Op.Requete:_.Op.Permis,o=this.appConfig.appConfig.landingPageId;(o===he.w.Requete&&t===_.Op.Requete||o===he.w.Permis&&t===_.Op.Permis)&&(this.returnButtonType="home-button"),this.isLoaded=!0,this.appMetaTags.updateMetaTags(t===_.Op.Requete?"Nouvelle requ\xEAte":"Nouvelle demande de permis")}ionViewWillLeave(){this.isLoaded=!1,this.router.routeReuseStrategy.shouldReuseRoute=this.shouldReuseRouteDefaultFn}}return(i=a).\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.VBU({type:i,selectors:[["vplus-creation-affectation-categorie-container"]],decls:7,vars:8,consts:[["ionContent",""],["defaultHref","/requete","headerTitle","",1,"hide-desktop","mobile-header",3,"returnButtonType","menuId"],["ckdScrollableIonContent","","id","requeteCreationCategorie","scrollEvents","true",3,"click"],[1,"main-page-container"]],template:function(t,o){if(1&t){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(o.onContentClick())}),e.j41(4,"div",3),e.DNE(5,vt,1,0,"vplus-affectation-creation-categorie")(6,Rt,1,0,"app-copyright-footer"),e.k0s()()}2&t&&(e.Y8G("returnButtonType",o.returnButtonType)("menuId","requeteCreationCategorie"),e.R7$(),e.AVh("filter-searche-global-active",e.bMT(3,6,o.selectIsSearchHeaderVisible$)),e.R7$(4),e.vxM(5,o.isLoaded?5:-1),e.R7$(),e.vxM(6,o.isMobile?-1:6))},dependencies:[W.f,N.W9,Se.x,Y.G,Pt,h.Jj],encapsulation:2}),a})();var yt=r(2027),K=r(31397),q=r(96354),Lt=r(70980),$t=r(99437),Oe=r(67376),le=r(22806),bt=r(7673),Ie=r(983),k=r(51564),Ft=r(14819),ee=r(34006);let Dt=(()=>{var i;class a{constructor(t){this.data=t,this.fromOrganisation=!1,this.wiTypeId=_.Op.Requete,this.fromOrganisation=t.fromOrganisation,this.wiTypeId=t.wiTypeId,this.wiType=this.wiTypeId===_.Op.Requete?"requ\xEAte":"demande de permis"}ngOnInit(){this.menuName=this.fromOrganisation?"\xAB Mon organisation \xBB":"\xAB Mon profil \xBB",this.sectionName=this.fromOrganisation?this.wiTypeId===_.Op.Requete?"\xAB Requ\xEAtes de mon organisation \xBB":"\xAB Demandes de permis de mon organisation \xBB":this.wiTypeId===_.Op.Requete?"\xAB Mes requ\xEAtes \xBB":"\xAB Mes demandes de permis \xBB"}}return(i=a).\u0275fac=function(t){return new(t||i)(e.rXU(ee.Vh))},i.\u0275cmp=e.VBU({type:i,selectors:[["vplus-save-and-quit-dialog"]],decls:22,vars:6,consts:()=>{let n,t,o,s,l,d,c;return n="Quitter la",t="Vous \xEAtes sur le point de quitter l'interface de cr\xE9ation de votre",o="Notez que vous pourrez reprendre sa cr\xE9ation sous le menu",s="situ\xE9 en haut \xE0 droite de l'en-t\xEAte du Portail Citoyen et en acc\xE9dant \xE0 la section",l="\xCAtes-vous s\xFBr de vouloir quitter?",d=" Enregistrer et quitter ",c=" Annuler ",[n,t,o,s,l,d,c,[1,"form-section-title"],["mat-dialog-actions","",1,"dialog-buttons-section","save-and-quit-buttons-section","margin-bottom-0"],[1,"ion-custom-button-standard","ion-custom-button-full","margin-left-1",3,"mat-dialog-close"],["fill","outline","tabindex","1",1,"ion-custom-button-outline","ion-cu
1stom-button-standard","mr-10",3,"mat-dialog-close"]]},template:function(t,o){1&t&&(e.j41(0,"h2",7)(1,"span"),e.pXf(2,0),e.k0s(),e.EFF(3),e.k0s(),e.j41(4,"div")(5,"p")(6,"span"),e.pXf(7,1),e.k0s(),e.EFF(8),e.j41(9,"span"),e.pXf(10,2),e.k0s(),e.EFF(11),e.j41(12,"span"),e.pXf(13,3),e.k0s(),e.EFF(14),e.k0s()(),e.j41(15,"p"),e.pXf(16,4),e.k0s(),e.j41(17,"div",8)(18,"ion-button",9),e.pXf(19,5),e.k0s(),e.j41(20,"ion-button",10),e.pXf(21,6),e.k0s()()),2&t&&(e.R7$(3),e.SpI(" ",o.wiType,""),e.R7$(5),e.SpI(" ",o.wiType,". "),e.R7$(3),e.SpI(" ",o.menuName," "),e.R7$(3),e.SpI(" ",o.sectionName,". "),e.R7$(4),e.Y8G("mat-dialog-close",!0),e.R7$(2),e.Y8G("mat-dialog-close",!1))},dependencies:[ee.tx,ee.E7,N.Jm],encapsulation:2}),a})();var _e=r(74508),Ut=r(32430),Gt=r(58820);const Vt=["surveyRef"],Xt=["stepper"],Qt=["inputAdresseGoogle"];function kt(i,a){if(1&i&&e.EFF(0),2&i){const n=e.XpG();e.SpI(" - ",null==n.selectedSousCategorie?null:n.selectedSousCategorie.nom," ")}}function jt(i,a){1&i&&e.nrm(0,"vplus-loading-spinner")}function xt(i,a){1&i&&(e.j41(0,"mat-error"),e.pXf(1,9),e.k0s())}function Wt(i,a){1&i&&(e.j41(0,"mat-error"),e.pXf(1,10),e.k0s())}function zt(i,a){1&i&&(e.j41(0,"mat-error"),e.pXf(1,11),e.k0s())}function wt(i,a){if(1&i&&(e.j41(0,"mat-form-field")(1,"mat-label"),e.pXf(2,8),e.k0s(),e.nrm(3,"input",28),e.DNE(4,xt,2,0,"mat-error")(5,Wt,2,0,"mat-error")(6,zt,2,0,"mat-error"),e.k0s()),2&i){const n=e.XpG(3);e.R7$(3),e.Y8G("required",n.inviteConfig.isInviteCitoyenHasAddressRequired),e.R7$(),e.vxM(4,null!=n.citoyenSansCompteForm.controls.courriel.errors&&n.citoyenSansCompteForm.controls.courriel.errors.required?4:-1),e.R7$(),e.vxM(5,n.citoyenSansCompteForm.controls.courriel.hasError("invalidEmail")?5:-1),e.R7$(),e.vxM(6,n.citoyenSansCompteForm.controls.courriel.hasError("courrielUtilise")?6:-1)}}function qt(i,a){1&i&&(e.j41(0,"mat-error"),e.pXf(1,13),e.k0s())}function Bt(i,a){1&i&&(e.j41(0,"mat-error"),e.pXf(1,14),e.k0s())}function Ht(i,a){if(1&i&&(e.j41(0,"mat-form-field")(1,"mat-label"),e.pXf(2,12),e.k0s(),e.nrm(3,"input",29),e.DNE(4,qt,2,0,"mat-error")(5,Bt,2,0,"mat-error"),e.k0s()),2&i){const n=e.XpG(3);e.R7$(3),e.Y8G("required",n.inviteConfig.isInviteCitoyenHasPhoneRequired)("imask",n.appConfig.appConfig.telMaskObjet)("unmask",!0),e.R7$(),e.vxM(4,null!=n.citoyenSansCompteForm.controls.telephone.errors&&n.citoyenSansCompteForm.controls.telephone.errors.required?4:-1),e.R7$(),e.vxM(5,null!=n.citoyenSansCompteForm.controls.telephone.errors&&n.citoyenSansCompteForm.controls.telephone.errors.pattern?5:-1)}}function Yt(i,a){if(1&i){const n=e.RV6();e.j41(0,"div")(1,"form",20),e.nI1(2,"async"),e.j41(3,"div")(4,"div")(5,"h2",21),e.pXf(6,1),e.k0s()(),e.j41(7,"div",22)(8,"mat-form-field")(9,"mat-label"),e.pXf(10,2),e.k0s(),e.nrm(11,"input",23),e.j41(12,"mat-error"),e.pXf(13,3),e.k0s()(),e.j41(14,"mat-form-field")(15,"mat-label"),e.pXf(16,4),e.k0s(),e.nrm(17,"input",24),e.j41(18,"mat-error"),e.pXf(19,5),e.k0s()()(),e.j41(20,"div",22),e.DNE(21,wt,7,4,"mat-form-field")(22,Ht,6,5,"mat-form-field"),e.k0s()(),e.j41(23,"div",25)(24,"button",26),e.bIt("click",function(){e.eBV(n);const o=e.XpG(2);return e.Njj(o.locationBack())}),e.pXf(25,6),e.k0s(),e.j41(26,"button",27),e.bIt("click",function(){e.eBV(n);const o=e.XpG(2);return e.Njj(o.validateIdentification())}),e.pXf(27,7),e.k0s()()()()}if(2&i){const n=e.XpG(2);e.R7$(),e.Y8G("formGroup",n.citoyenSansCompteForm)("vplusSyncStore",e.bMT(2,5,n.currentCitoyenSansCompte$))("vplusSyncAction",n.updateCitoyenSansCompteAction),e.R7$(20),e.vxM(21,n.inviteConfig.isInviteCitoyenHasAddress?21:-1),e.R7$(),e.vxM(22,n.inviteConfig.isInviteCitoyenHasPhone?22:-1)}}function Jt(i,a){if(1&i){const n=e.RV6();e.j41(0,"vplus-surveyjs-requete",30,0),e.bIt("submitSurvey",function(o){e.eBV(n);const s=e.XpG(2);return e.Njj(s.submit(o))})("surveyChanged",function(o){e.eBV(n);const s=e.XpG(2);return e.Njj(s.surveyChanged(o))})("externalBack",function(){e.eBV(n);const o=e.XpG(2);return e.Njj(o.externalBack())})("documentAdded",function(o){e.eBV(n);const s=e.XpG(2);return e.Njj(s.setWorkitemDocuments(o))})("saveDraft",function(){e.eBV(n);const o=e.XpG(2);return e.Njj(o.saveDraftAndQuit())}),e.k0s()}if(2&i){const n=e.XpG(2);e.Y8G("json",n.surveymodel)("readOnly",!1)("catId",null==n.selectedCategorie?null:n.selectedCategorie.id)("reponses",n.surveyReponse)("isDraft",!0)("citoyenLoggedIn",
1n.citoyenLoggedIn)("hideValeurTerrainQuestion",!0)}}function Zt(i,a){if(1&i){const n=e.RV6();e.j41(0,"div",19),e.nrm(1,"i",31),e.j41(2,"h3"),e.EFF(3),e.k0s(),e.j41(4,"p"),e.EFF(5),e.k0s(),e.j41(6,"ion-button",32),e.bIt("click",function(){e.eBV(n);const o=e.XpG(2);return e.Njj(o.back())}),e.EFF(7),e.k0s()()}if(2&i){const n=e.XpG(2);e.R7$(3),e.JRh(n.titleEnvoie),e.R7$(2),e.JRh(n.remerciementMsg),e.R7$(2),e.SpI(" ",n.getBackText()," ")}}function Kt(i,a){if(1&i){const n=e.RV6();e.j41(0,"div",19),e.nrm(1,"i",31),e.j41(2,"h3"),e.pXf(3,15),e.k0s(),e.j41(4,"p"),e.EFF(5),e.k0s(),e.j41(6,"ion-button",32),e.bIt("click",function(){e.eBV(n);const o=e.XpG(2);return e.Njj(o.back())}),e.EFF(7),e.k0s()()}if(2&i){const n=e.XpG(2);e.R7$(5),e.JRh(n.erreurMsg),e.R7$(2),e.SpI(" ",n.getBackText()," ")}}function ei(i,a){if(1&i&&(e.j41(0,"div",17),e.DNE(1,Yt,28,7,"div")(2,Jt,2,7,"vplus-surveyjs-requete",18)(3,Zt,8,3,"div",19)(4,Kt,8,2,"div",19),e.k0s()),2&i){const n=e.XpG();e.R7$(),e.vxM(1,n.currentStep===n.EnumCreationStep.Identification?1:-1),e.R7$(),e.Y8G("loadLockIf",n.currentStep===n.EnumCreationStep.Survey),e.R7$(),e.vxM(3,n.currentStep!==n.EnumCreationStep.Completed||n.isDraft?-1:3),e.R7$(),e.vxM(4,n.currentStep!==n.EnumCreationStep.Failed||n.isDraft?-1:4)}}let ti=(()=>{var i;class a{constructor(){this.surveyReponse={},this.isDraft=!1,this.EnumTypeWiIds=_.Op,this.EnumCreationStep=_.Zj,this.updateCitoyenSansCompteAction=E.setCurrentCitoyenSansCompte,this.surveyDocuments=[],this.statutList=[],this.pendingDeleteFiles=new Set,this.completedStepFormArray=[],this.selectedIndex=0,this.loading=!1,this.citoyenLoggedIn=!1,this.isEditing=!1,this.store=(0,e.WQX)(R.il),this.appConfig=(0,e.WQX)(w.o),this.route=(0,e.WQX)(p.nX),this.asyncCourrielValidators=(0,e.WQX)(Q.H),this.router=(0,e.WQX)(p.Ix),this.location=(0,e.WQX)(h.aZ),this.actions$=(0,e.WQX)(z.En),this.dialog=(0,e.WQX)(ee.bZ),this.destroyRef=(0,e.WQX)(e.abz),this.fileService=(0,e.WQX)(Ft.E),this.localisationService=(0,e.WQX)(B.A),this.adresseResidenceStorageService=(0,e.WQX)(yt.Q)}ngOnInit(){this.adresseResidenceStorageService.removeAddress(),this.isEditing=this.route.snapshot.url.some(s=>"poursuite"===s.path),this.wiType=this.route.snapshot.data.module===g.AL.Requete?_.Op.Requete:_.Op.Permis,this.inviteConfig=this.resolveInviteConfig(),this.fromOrganisation="1"===this.route.snapshot.queryParams.organisation,this.titleEnvoie=this.wiType===_.Op.Requete?"Requ\xEAte envoy\xE9e !":"Demande de permis envoy\xE9e !",this.remerciementMsg=this.wiType===_.Op.Requete?"Merci de nous avoir contact\xE9. Votre requ\xEAte a bien \xE9t\xE9 transmise.":"Merci de nous avoir contact\xE9. Votre demande de permis a bien \xE9t\xE9 transmise.",this.erreurMsg=this.wiType===_.Op.Requete?"Une erreur est survenue lors de la soumission de votre requ\xEAte.":"Une erreur est survenue lors de la soumission de votre demande de permis",this.store.select(m.selectCurrentUser).pipe((0,$.s)(1)).subscribe(s=>{s||"1"!==this.route.snapshot.queryParams.invite?(this.context=_.n6.AvecCompte,this.currentStep=_.Zj.Survey):(this.context=_.n6.SansCompte,this.currentStep=_.Zj.Identification),this.initForms();const l=null==s?void 0:s.adresses[0];null!=l&&l.adresse&&this.adresseResidenceStorageService.updateAddress(l.adresse,l.adresseProvenanceId)}),(0,x.z)([this.store.select(S.ci),this.store.select(S.Pg),this.store.select(S.PD),this.store.select(m.selectIsLoggedIn)]).pipe((0,$.s)(1)).subscribe(([s,l,d,c])=>{var C;this.statutList=d,this.currentCatState=l,this.selectedCategorie=s.find(f=>f.id===l.categorieId&&f.actif&&!f.limitCreationByApplicant&&f.typeWiId===this.wiType),this.selectedSousCategorie=null===(C=this.selectedCategorie)||void 0===C?void 0:C.sousCategorieList.find(f=>f.id===l.sousCategorieId&&f.actif&&!f.limitCreationByApplicant),this.citoyenLoggedIn=c,this.brouillonCitoyenId=this.statutList.find(f=>f.statCatId===_.wx.BrouillonCitoyen&&f.typeWIId===this.wiType).statutId,this.selectedSousCategorie?(this.surveymodel=this.selectedSousCategorie.surveyModel,this.store.dispatch(E.setSurveyVersion({payload:this.selectedSousCategorie.surveyVersion}))):(this.surveymodel=this.selectedCategorie.surveyModel,this.store.dispatch(E.setSurveyVersion({payload:this.selectedCategorie.surveyVersion})))}),this.store.select(S.x8).pipe((0,T.pQ)(this.destroyRef),(0,se.Q)(this.router.events.pipe((0,J.p)(s=>s instanceof p.Z)))).subscribe(s=>{var l,d;s.no&&(!this.isEditing||this.brouillonCitoyenId&&s.statutId&&s.statutId!==this.brouillonCitoyenId)&&this.store.dispatch(E.resetCurrentWorkitem({payload:{type:this.wiType,fromOrganisation:this.fromOrganisation}})),this.currentWorkitemVW=(0,Oe.cloneDeep)(s),this.isEditing&&(null===(l=this.currentWorkitemVW.surveyDocuments)||void 0===l?void 0:l.length)>0&&0===(null===(d=this.surveyDocuments)||void 0===d?void 0:d.length)&&(this.surveyDocuments=this.currentWorkitemVW.surveyDocuments)}),this.currentCitoyenSansCompte$=this.store.select(S.K_),this.store.select(S.Rt).pipe((0,T.pQ)(this.destroyRef)).subscribe(s=>{s&&(this.currentStep=_.Zj.Completed)}),this.displayAddressNotFound=this.localisationService.getCurrentLocalisation()===k.fi.FR;const o=JSON.parse(this.surveyReponse);this.store.dispatch(E.setSurveyReponses({payload:o}))}ngAfterViewInit(){this.savedWorkItem=(0,Oe.cloneDeep)(this.currentWorkitemVW)}resolveInviteConfig(){const t=this.wiType===_.Op.Permis?this.appConfig.appConfig.citoyenInvitePermisForm:this.appConfig.appConfig.citoyenInviteReqForm;return null!=t?t:{isInviteCitoyenHasPhone:!0,isInviteCitoyenHasAddress:!0,isInviteCitoyenHasPhoneRequired:!1,isInviteCitoyenHasAddressRequired:!1}}initForms(){if(this.context===_.n6.SansCompte){const t=[(0,M.Bjz)()];this.inviteConfig.isInviteCitoyenHasAddressRequired&&t.push(u.k0.required);const o=[u.k0.pattern(this.appConfig.appConfig.telPattern)];this.inviteConfig.isInviteCitoyenHasPhoneRequired&&o.push(u.k0.required),this.citoyenSansCompteForm=new u.gE({id:new u.MJ(null),perId:new u.MJ(null),inscrit:new u.MJ(!1),invite:new u.MJ(!0),nom:new u.MJ("",u.k0.required),prenom:new u.MJ("",u.k0.required),courriel:new u.MJ("",t,this.asyncCourrielValidators.validateCourriel()),telephone:new u.MJ("",o),adresse:new u.MJ(null)}),this.citoyenSansCompteForm.controls.adresse.valueChanges.pipe((0,T.pQ)(this.destroyRef)).subscribe(s=>{s&&this.adresseResidenceStorageService.updateAddress(s)})}}setWorkitemDocuments(t){this.surveyDocuments.push(t),this.currentWorkitemVW.surveyDocuments=this.surveyDocuments}submit(t){var o;if(Array.isArray(null===(o=this.surveymodel)||void 0===o?void 0:o.pages)&&this.surveymodel.pages.some(c=>Array.isArray(c.elements)&&c.elements.length>0)&&null==t)return void this.store.dispatch(new m.Actions.ShowSnackBar("Une erreur est survenue lors de l'envoi de l'affectation. Veuillez r\xE9essayer.",m.EnumSnackBarType.Ec
1hec));this.pendingDeleteFiles=this.surveyRef.getPendingFileToDelete();const l=this.surveyRef.surveyModel.getAllQuestions().find(c=>c.name===M.QpI.ValeurTerrain);l&&t[M.QpI.Emplacement]&&t[M.QpI.Emplacement]!==M.orq&&(t[M.QpI.ValeurTerrain]=l.defaultValue),this.store.dispatch(E.setSurveyReponses({payload:t})),this.store.dispatch(E.setCurrentCategorie({payload:this.currentCatState})),this.surveyDocuments=this.getFilterDocumentsOfficiels(),(!this.isEditing||this.currentWorkitemVW.statutId!==this.brouillonCitoyenId)&&(this.currentWorkitemVW.wiId=null,this.currentWorkitemVW.no=null,this.currentWorkitemVW.id=null),this.currentWorkitemVW.statutId="";const d=this.getInfoChanges();this.store.dispatch(E.setCurrentWorkitem({payload:this.currentWorkitemVW})),this.store.dispatch(E.createCurrentWorkitem({payload:{surveyDocuments:this.surveyDocuments,infoModification:d,surveyReponses:t}})),this.actions$.pipe((0,z.gp)(E.createCurrentWorkitemSuccess,E.createCurrentWorkitemFailed),(0,$.s)(1),(0,J.p)(()=>!this.isDraft)).subscribe(c=>{c.type===E.createCurrentWorkitemSuccess.type?this.surveyRef.clearPendingDeletes():this.currentStep=_.Zj.Failed})}validateIdentification(){this.citoyenSansCompteForm.invalid?this.citoyenSansCompteForm.markAllAsTouched():this.currentStep=_.Zj.Survey}externalBack(){this.context===_.n6.SansCompte?this.currentStep=_.Zj.Identification:this.locationBack()}onLeaveConfirmed(){this.pendingDeleteFiles=this.surveyRef.getPendingFileToDelete(!0),(0,le.H)(this.pendingDeleteFiles).pipe((0,T.pQ)(this.destroyRef),(0,K.Z)(t=>this.hardDeleteFile(t))).subscribe()}locationBack(){this.location.back()}back(){if(this.citoyenSansCompteForm)return void this.router.navigate(["accueil"]);const t=this.fromOrganisation?["organisation"]:["utilisateur"];window.innerWidth>=960&&t.push(this.fromOrganisation?"admin":"profil"),t.push(this.wiType===_.Op.Requete?"requete":"permis"),this.router.navigate(t)}getBackText(){return this.citoyenSansCompteForm?"Retour \xE0 l'accueil":this.wiType===_.Op.Requete?"Retour \xE0 mes requ\xEAtes":"Retour \xE0 mes demandes de permis"}getFilterDocumentsOfficiels(){const t=[];return this.surveyRef.surveyModel.getAllQuestions(!0).filter(s=>s.value&&("file"===s.getType()||"paneldynamic"===s.getType())).map(s=>s.value).forEach(s=>{Array.isArray(s)&&s.forEach(l=>{l.name?t.push(l.name):Object.values(l).forEach(c=>{Array.isArray(c)&&c.forEach(C=>{C.name&&t.push(C.name)})})})}),this.surveyDocuments.filter(s=>t.includes(s.fileName))}surveyChanged(t){this.store.dispatch(E.setSurveyReponses({payload:t})),this.surveyDocuments=this.getFilterDocumentsOfficiels()}saveDraftAndQuit(){this.pendingDeleteFiles=this.surveyRef.getPendingFileToDelete(),this.isDraft=!0,this.saveAndQuitDialogRef=this.dialog.open(Dt,{width:k.Uq.Medium,data:{fromOrganisation:this.fromOrganisation,wiTypeId:this.wiType}}),this.saveAndQuitDialogRef.afterClosed().pipe((0,T.pQ)(this.destroyRef)).subscribe(t=>{t?(this.store.dispatch(E.setCurrentCategorie({payload:this.currentCatState})),this.surveyDocuments=this.getFilterDocumentsOfficiels(),this.currentWorkitemVW.statutId=this.brouillonCitoyenId,this.currentWorkitemVW.surveyDocuments=this.surveyDocuments,this.store.dispatch(E.setCurrentWorkitem({payload:this.currentWorkitemVW})),this.loading=!0,this.store.dispatch(E.createCurrentWorkitem({payload:{surveyDocuments:this.surveyDocuments}}))):this.isDraft=!1}),this.actions$.pipe((0,z.gp)(E.createCurrentWorkitemSuccess,E.createCurrentWorkitemFailed),(0,$.s)(1),(0,re.M)(()=>this.loading=!1),(0,J.p)(()=>this.isDraft),(0,K.Z)(t=>{if(t.type===E.createCurrentWorkitemSuccess.type){const o=this.wiType===_.Op.Requete?"Requ\xEAte enregistr\xE9e en brouillon avec succ\xE8s":"Demande de permis enregistr\xE9e en brouillon avec succ\xE8s";return this.store.dispatch(new m.Actions.ShowSnackBar(o)),(0,le.H)(this.pendingDeleteFiles).pipe((0,K.Z)(s=>this.hardDeleteFile(s)),(0,q.T)(()=>t))}return(0,bt.of)(t)}),(0,re.M)(({type:t})=>{t===E.createCurrentWorkitemSuccess.type&&this.surveyRef.clearPendingDeletes()}),(0,Lt.j)(()=>{const t=this.fromOrganisation?["organisation"]:["utilisateur"];window.innerWidth>=960&&t.push(this.fromOrganisation?"admin":"profil"),t.push(this.wiType===_.Op.Requete?"requete":"permis"),this.router.navigate(t)}),(0,T.pQ)(this.destroyRef)).subscribe()}hardDeleteFile(t){return t?this.fileService.hardDeleteFileS3(t).pipe((0,$t.W)(()=>(this.store.dispatch(new m.Actions.ShowSnackBar("\xC9chec de suppression du fichier",m.EnumSnackBarType.Ec
1hec)),Ie.w))):Ie.w}getInfoChanges(){const t=new g.NO;if(this.currentWorkitemVW.statutId!==this.savedWorkItem.statutId){var o,s;const l=this.statutList.find(c=>c.statutId===this.currentWorkitemVW.statutId),d=this.statutList.find(c=>c.statutId===this.savedWorkItem.statutId);t.diff.push(new g.cm({fr:"Statut",en:"Status"},!1,{label:{fr:null==d?void 0:d.statusLocalisations.find(c=>c.lclzTag===k.fi.FR).statusNom,en:null==d||null===(o=d.statusLocalisations.find(c=>c.lclzTag===k.fi.EN))||void 0===o?void 0:o.statusNom},value:this.savedWorkItem.statutId},{label:{fr:null==l?void 0:l.statusLocalisations.find(c=>c.lclzTag===k.fi.FR).statusNom,en:null==l||null===(s=l.statusLocalisations.find(c=>c.lclzTag===k.fi.EN))||void 0===s?void 0:s.statusNom},value:this.currentWorkitemVW.statutId}))}return t.diff.length>0?t:null}unloadNotification(t){if(this.pendingDeleteFiles=this.surveyRef.getPendingFileToDelete(!0),this.pendingDeleteFiles.size)return t.preventDefault(),!1}onPageHide(){this.pendingDeleteFiles=this.surveyRef.getPendingFileToDelete(!0),this.pendingDeleteFiles.size&&(0,le.H)(this.pendingDeleteFiles).pipe((0,T.pQ)(this.destroyRef),(0,K.Z)(t=>this.hardDeleteFile(t))).subscribe()}}return(i=a).\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.VBU({type:i,selectors:[["vplus-creation-affectation"]],viewQuery:function(t,o){if(1&t&&(e.GBs(Vt,5),e.GBs(Xt,5),e.GBs(Qt,5),e.GBs(_e.z,5)),2&t){let s;e.mGM(s=e.lsd())&&(o.surveyRef=s.first),e.mGM(s=e.lsd())&&(o.stepper=s.first),e.mGM(s=e.lsd())&&(o.inputAdresseGoogleRef=s.first),e.mGM(s=e.lsd())&&(o.singlePageSurveysRef=s)}},hostBindings:function(t,o){1&t&&e.bIt("beforeunload",function(l){return o.unloadNotification(l)},!1,e.tSv)("pagehide",function(){return o.onPageHide()},!1,e.tSv)},inputs:{surveyReponse:"surveyReponse",isDraft:"isDraft"},decls:6,vars:3,consts:()=>{let n,t,o,s,l,d,c,C,f,v,y,A,O,Le,$e;return n="Identification",t="Pr\xE9nom",o=" Champ obligatoire ",s="Nom",l=" Champ obligatoire ",d="Retour",c="Suivant",C="Courriel",f=" Champ obligatoire ",v=" Courriel non valide ",y=" Adresse courriel d\xE9j\xE0 utilis\xE9e par un compte citoyen ",A="T\xE9l\xE9phone",O=" Champ obligatoire ",Le=" T\xE9l\xE9phone non valide ",$e="Erreur",[["surveyRef",""],n,t,o,s,l,d,c,C,f,v,y,A,O,Le,$e,[3,"back"],[1,"standard-page-content"],[3,"json","readOnly","catId","reponses","isDraft","citoyenLoggedIn","hideValeurTerrainQuestion","submitSurvey","surveyChanged","externalBack","documentAdded","saveDraft",4,"loadLockIf"],[1,"requete-envoye","max-720"],[1,"max-720",3,"formGroup","vplusSyncStore","vplusSyncAction"],[1,"identification-title"],[1,"form-field-inline-section"],["required","","matInput","","type","text","formControlName","prenom"],["required","","matInput","","type","text","formControlName","nom"],[1,"sv-navigation-footer","max-720","spacing-top"],["type","button","mat-stroked-button","",1,"custom-button-standard","custom-button-stroked",3,"click"],["type","button","mat-raised-button","",1,"custom-button-full","custom-button-standard","sv-next-btn",3,"click"],["matInput","","type","email","formControlName","courriel",3,"required"],["matInput","","type","tel","maskTelephoneEvents","","formControlName","telephone",3,"required","imask","unmask"],[3,"submitSurvey","surveyChanged","externalBack","documentAdded","saveDraft","json","readOnly","catId","reponses","isDraft","citoyenLoggedIn","hideValeurTerrainQuestion"],[1,"icon-formulaire-primeur"],["expand","false",1,"ion-custom-button-standard","ion-custom-button-full",3,"click"]]},template:function(t,o){1&t&&(e.j41(0,"div")(1,"vplus-req-toolbar",16),e.bIt("back",function(){return o.locationBack()}),e.EFF(2),e.DNE(3,kt,1,1),e.k0s(),e.DNE(4,jt,1,0,"vplus-loading-spinner")(5,ei,5,4),e.k0s()),2&t&&(e.R7$(2),e.SpI("",null==o.selectedCategorie?null:o.selectedCategorie.nom," "),e.R7$(),e.vxM(3,o.selectedSousCategorie?3:-1),e.R7$(),e.vxM(4,o.loading?4:5))},dependencies:[ae.fg,D.rl,D.nJ,D.TL,H.$z,u.qT,u.me,u.BC,u.cb,u.YS,u.j4,u.JD,ge.Q,M.oM4,M.xGI,Ut.Zq,N.Jm,Gt.x,Ee.N,_e.z,h.Jj],styles:[".stepper-disabled .mat-horizontal-stepper-header{pointer-events:none!important}.mobile-request-spacing[_ngcontent-%COMP%]{padding:18px 18px 0}@media (min-width: 960px){.mobile-request-spacing[_ngcontent-%COMP%]{padding:0}}  .sv-pageRoot>.sv_row>.sv_p_container>h4.sv_title-underline{margin-bottom:2rem;padding-bottom:1rem;padding-top:2rem;
1border-bottom:1px solid var(--divider-color);display:flex;align-items:center;font-size:1.3rem}@media (min-width: 600px){  .sv-pageRoot>.sv_row>.sv_p_container>h4.sv_title-underline{font-size:1.5rem}}@media (min-width: 1280px){  .sv-pageRoot>.sv_row>.sv_p_container>h4.sv_title-underline{font-size:1.6rem}}.save-draft-button[_ngcontent-%COMP%]{font-size:14px;margin-left:auto}@media (max-width: 768px){.save-draft-button[_ngcontent-%COMP%]{display:none!important}}.mobile-save-draft-button[_ngcontent-%COMP%]{font-size:14px;margin:auto;display:flex!important}@media (min-width: 769px){.mobile-save-draft-button[_ngcontent-%COMP%]{display:none!important}}.save-and-quit-container[_ngcontent-%COMP%]{padding-top:1vh}@media (min-width: 769px){.save-and-quit-container[_ngcontent-%COMP%]{display:none!important}}.showAllAffectations[_ngcontent-%COMP%]{margin-top:33px}.identification-title[_ngcontent-%COMP%]{font-size:1.4rem}@media (min-width: 600px){.identification-title[_ngcontent-%COMP%]{font-size:1.55rem}}"]}),a})();const ii=["wiEditeur"],oi=i=>({"filter-searche-global-active":i});function ni(i,a){if(1&i&&e.nrm(0,"vplus-creation-affectation",6,1),2&i){const n=e.XpG();e.Y8G("surveyReponse",n.surveyReponse)}}function si(i,a){1&i&&e.nrm(0,"app-copyright-footer")}let Ne=(()=>{var i;class a{constructor(){this.isLoaded=!1,this.surveyReponse={},this.platform=(0,e.WQX)(oe.OD),this.appMetaTags=(0,e.WQX)(F.W),this.store=(0,e.WQX)(R.il),this.route=(0,e.WQX)(p.nX),this.selectIsSearchHeaderVisible$=this.store.select(m.selectIsSearchHeaderVisible),this.isMobile=this.platform.is("mobileweb")||this.platform.is("ios")||this.platform.is("android")}onContentClick(){this.store.dispatch(m.Actions.setIsSearchHeaderVisible({payload:!1}))}ionViewWillEnter(){this.isLoaded=!0,this.wiType=this.route.snapshot.data.module===g.AL.Requete?_.Op.Requete:_.Op.Permis,this.fromOrganisation="1"===this.route.snapshot.queryParams.organisation,(0,x.z)([this.store.select(S.Pg),this.store.select(S.ci),this.store.select(S.x8)]).pipe((0,$.s)(1)).subscribe(([t,o,s])=>{this.surveyReponse=null==s?void 0:s.surveyReponse;const l=o.find(f=>f.id===t.categorieId),c=(null!=l&&l.sousCategorieList?l.sousCategorieList.filter(f=>f.actif&&!f.limitCreationByApplicant):[]).find(f=>f.id===t.sousCategorieId);let C=this.wiType===_.Op.Requete?"Nouvelle requ\xEAte":"Nouvelle demande de permis";C+=` - ${null==l?void 0:l.nom}`,c&&(C+=` - ${null==c?void 0:c.nom}`),this.appMetaTags.updateMetaTags(C)})}ionViewWillLeave(){this.isLoaded=!1,this.store.dispatch(E.resetCurrentWorkitem({payload:{type:this.wiType,fromOrganisation:this.fromOrganisation}}))}}return(i=a).\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.VBU({type:i,selectors:[["vplus-creation-affectation-container"]],viewQuery:function(t,o){if(1&t&&e.GBs(ii,5),2&t){let s;e.mGM(s=e.lsd())&&(o.wiEditeur=s.first)}},decls:7,vars:9,consts:[["ionContent",""],["wiEditeur",""],["defaultHref","/requete","headerTitle","",1,"hide-desktop","mobile-header",3,"returnButtonType","menuId"],["ckdScrollableIonContent","","id","requeteCreation",3,"click","ngClass"],[1,"main-page-container"],[3,"surveyReponse",4,"ngIf"],[3,"surveyReponse"]],template:function(t,o){if(1&t){const s=e.RV6();e.nrm(0,"vplus-mobile-header",2),e.j41(1,"ion-content",3,0),e.nI1(3,"async"),e.bIt("click",function(){return e.eBV(s),e.Njj(o.onContentClick())}),e.j41(4,"div",4),e.DNE(5,ni,2,1,"vplus-creation-affectation",5)(6,si,1,0,"app-copyright-footer"),e.k0s()()}2&t&&(e.Y8G("returnButtonType","back-button")("menuId","requeteCreation"),e.R7$(),e.Y8G("ngClass",e.eq3(7,oi,e.bMT(3,5,o.selectIsSearchHeaderVisible$))),e.R7$(4),e.Y8G("ngIf",o.isLoaded),e.R7$(),e.vxM(6,o.isMobile?-1:6))},dependencies:[h.YU,h.bT,W.f,N.W9,Se.x,Y.G,ti,h.Jj],encapsulation:2}),a})();const ai=i=>({"filter-searche-global-active":i});function ri(i,a){1&i&&(e.j41(0,"h2",17),e.pXf(1,3),e.k0s())}function li(i,a){1&i&&(e.j41(0,"h2",17),e.pXf(1,4),e.k0s())}function _i(i,a){if(1&i){const n=e.RV6();e.j41(0,"div",10)(1,"div",11),e.DNE(2,ri,2,0,"h2",12)(3,li,2,0,"h2",12),e.j41(4,"p")(5,"span"),e.pXf(6,0),e.k0s(),e.j41(7,"b"),e.EFF(8),e.k0s()(),e.j41(9,"p")(10,"span"),e.pXf(11,1),e.k0s(),e.j41(12,"b"),e.EFF(13),e.k0s()(),e.j41(14,"div",13)(15,"div",14)(16,"div",15)(17,"ion-button",16),e.bIt("click",function(){e.eBV(n);const o=e.XpG();return e.Njj(o.envoyerCodeAccess())}),e.j41(18,"span"),e.pXf(19,2),e.k0s()()()()()()()}if(2&i){const n=e.XpG();e.R7$(2),e.Y8G("ngIf",n.isPermis),e.R7$(),e.Y8G("ngIf",!n.isPermis),e.R7$(5),e.E5c(" ",n.affectationType.toLowerCase()," ",n.no," ",n.wi.no,""),e.R7$(5),e.SpI(" ",n.courrielCioyen,"")}}let ci=(()=>{var i;class a{constructor(){this.requeteService=(0,e.WQX)(ne.t),this.route=(0,e.WQX)(p.nX),this.appMetaTags=(0,e.WQX)(F.W),this.store=(0,e.WQX)(R.il),this.router=(0,e.WQX)(p.Ix),this.destroyRef=(0,e.WQX)(e.abz),this.no=" n\xB0 ",this.dataLoaded=!1,this.docOfficiels=[],this.isPermis=!1,this.selectIsSearchHeaderVisible$=this.store.select(m.selectIsSearchHeaderVisible)}
1ngOnInit(){this.wiType=this.route.snapshot.data.module,this.isPermis=this.wiType===g.AL.Permis,this.appMetaTags.updateMetaTags(this.isPermis?"Consulter ma demande de permis":"Consulter ma requ\xEAte"),this.affectationId=this.route.snapshot.params.id,this.perId=this.route.snapshot.queryParams.perId,this.affectationType=this.isPermis?"Demande de permis":"Requ\xEAte",this.submitBtnText="Envoyer le code",this.requeteService.getWIInfosWithAccessCode(this.affectationId,null,!1,this.perId).pipe((0,T.pQ)(this.destroyRef)).subscribe(t=>{this.wi=t,this.courrielCioyen=t.courrielMasque,this.dataLoaded=!0})}onContentClick(){this.store.dispatch(m.Actions.setIsSearchHeaderVisible({payload:!1}))}envoyerCodeAccess(){this.requeteService.sendAccessCode(this.wi.wiId,this.perId).pipe((0,T.pQ)(this.destroyRef)).subscribe(t=>{"OK"===t.code?(this.router.navigate([`${this.wiType.toLowerCase()}/invite/`,this.wi.wiId],{queryParams:{perId:this.perId||null}}),this.store.dispatch(new m.Actions.ShowSnackBar("Un nouveau code d'acc\xE8s s\xE9curis\xE9 vous a \xE9t\xE9 envoy\xE9 \xE0 votre courriel."))):this.store.dispatch(new m.Actions.ShowSnackBar("Une erreur est survenue lors de la g\xE9n\xE9ration de votre code d'acc\xE8s. Veuillez r\xE9essayer plus tard.",m.EnumSnackBarType.Echec))})}}return(i=a).\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.VBU({type:i,selectors:[["vplus-envoyer-code-access-affectation-invite"]],decls:7,vars:10,consts:()=>{let n,t,o,s,l;return n="Vous avez obtenu un lien s\xE9curis\xE9 pour consulter votre",t="Afin de v\xE9rifier votre identit\xE9, un code d'acc\xE8s vous sera envoy\xE9 \xE0",o="Envoyer le code",s="Consultation d'une demande de permis",l="Consultation d'une requ\xEAte",[n,t,o,s,l,["returnButtonType","back-button",1,"hide-desktop","mobile-header",3,"headerTitle","defaultHref","forceDefault","menuId"],["id","permisInviteDocuments","scrollEvents","true",3,"click","ngClass"],[1,"main-page-container"],[1,"standard-page-content"],["class","max-720",4,"ngIf"],[1,"max-720"],[1,"email-verification"],["class","form-section-title",4,"ngIf"],[1,"padding-bottom-12"],[1,"auth-form-content"],[1,"auth-form-actions","margin-top-1"],["type","submit","expand","block",1,"ion-custom-button-full","ion-custom-button-standard",3,"click"],[1,"form-section-title"]]},template:function(t,o){1&t&&(e.nrm(0,"vplus-mobile-header",5),e.j41(1,"ion-content",6),e.nI1(2,"async"),e.bIt("click",function(){return o.onContentClick()}
1),e.j41(3,"div",7)(4,"div",8),e.DNE(5,_i,20,6,"div",9),e.k0s(),e.nrm(6,"app-copyright-footer"),e.k0s()()),2&t&&(e.Y8G("headerTitle","")("defaultHref","/accueil")("forceDefault",!0)("menuId","permisInviteDocuments"),e.R7$(),e.Y8G("ngClass",e.eq3(8,ai,e.bMT(2,6,o.selectIsSearchHeaderVisible$))),e.R7$(4),e.Y8G("ngIf",o.dataLoaded))},dependencies:[h.YU,h.bT,W.f,N.Jm,N.W9,Y.G,h.Jj],encapsulation:2}),a})();var ce=r(55430),de=r(52486),Pe=r(62509),di=r(74424);const ve=i=>{var a;const n=(0,e.WQX)(w.o),t=(0,e.WQX)(p.Ix),o=(0,e.WQX)(R.il),l=(null===(a=i.pathFromRoot.find(c=>{var C;return null===(C=c.data)||void 0===C?void 0:C.module}))||void 0===a?void 0:a.data.module)===g.AL.Permis?_.Op.Permis:_.Op.Requete,d=l===_.Op.Permis?n.appConfig.paramList.allowInvitePermis:n.appConfig.paramList.allowInviteReq;return(0,x.z)([o.select(m.selectIsLoggedIn),o.select(S.ci),o.select(S.Pg),o.select(S.uk)]).pipe((0,q.T)(([c,C,f,v])=>{const y=(0,di.a)(C,f,l,v);if(c||"1"===i.queryParams.invite&&d&&y)return!0;const A={...i.queryParams};return t.navigate(["/",l===_.Op.Requete?"requete":"permis","creation","connexion"],{queryParams:A}),!1}))};var ui=r(16883);let Re=(()=>{var i;class a{constructor(t,o){this.store=t,this.router=o}canActivate(){return this.store.select(m.selectIsLoggedIn).pipe((0,q.T)(t=>!t||(this.router.navigate(["/page-inaccessible"]),!1)))}}return(i=a).\u0275fac=function(t){return new(t||i)(e.KVO(R.il),e.KVO(p.Ix))},i.\u0275prov=e.jDH({token:i,factory:i.\u0275fac,providedIn:"root"}),a})();var Me=r(95212);let ue=(()=>{var i;class a{constructor(t,o){this.router=t,this.store=o}canActivate(t){var o;const s=t.data.module===g.AL.Requete?_.Op.Requete:_.Op.Permis,l="1"===t.queryParams.organisation,d=null===(o=t.routeConfig)||void 0===o||null===(o=o.path)||void 0===o?void 0:o.startsWith("poursuite");return(0,x.z)([this.store.select(S.ci),this.store.select(S.Pg)]).pipe((0,q.T)(([c,C])=>{const v=c.filter(A=>A.actif&&!A.limitCreationByApplicant&&A.typeWiId===s).find(A=>A.id===C.categorieId);if(!v)return!1;if(!C.sousCategorieId)return d||!v.disableQuestionnaireStart;const y=v.sousCategorieList.find(A=>A.id===C.sousCategorieId);return!!y&&(d||!y.disableQuestionnaireStart)}),(0,q.T)(c=>(c||this.router.navigate(["/",s===_.Op.Requete?"requete":"permis"],{queryParams:{invite:"1"===t.queryParams.invite?1:0,organisation:l?1:0}}),c)))}}return(i=a).\u0275fac=function(t){return new(t||i)(e.KVO(p.Ix),e.KVO(R.il))},i.\u0275prov=e.jDH({token:i,factory:i.\u0275fac,providedIn:"root"}),a})();var ye=r(40129);const Ci=p.iI.forChild([{path:"",pathMatch:"full",resolve:{accueil:Pe.y,reset:Me.H},component:Mt},{path:"poursuite/:no",component:Ne,canActivate:[ye.n,ue,ve],canDeactivate:[pe]},{path:"creation",component:Ne,canActivate:[ye.n,ue,ve],canDeactivate:[pe]},{path:"",resolve:{accueil:Pe.y},children:[{path:"connexion",canActivate:[ce.Q],component:de.n},{path:":no/connexion",canActivate:[ce.Q],component:de.n},{path:"creation/connexion",canActivate:[ue,ce.Q],component:de.n},{path:"liste",component:Ze,canActivate:[ui.i]},{path:"invite/:id",component:Ct,canActivate:[Re]},{path:"invite/envoyer-code-access/:id",component:ci,canActivate:[Re]}]}]);var Ei=r(95338),fi=r(10916),pi=r(49193),mi=r(24319);let Ti=(()=>{var i;class a{constructor(){}}return(i=a).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({providers:[pi.K,Me.H,j.b,Q.H],imports:[fi.G,mi.b,Ei.h,Ci,te.aP,G.Z,V.W,_e.z,b.n,X.q]}),a})()},55430:(Ce,U,r)=>{r.d(U,{Q:()=>V});var j=r(35052),G=r(51188),b=r(54438);const V=()=>{const X=(0,b.WQX)(G.Ix);return!!(0,b.WQX)(j.o).appConfig.allowConnection||X.createUrlTree(["page-non-trouvee"])}},24339:(Ce,U,r)=>{r.d(U,{b:()=>te});var j=r(7673),G=r(1807),b=r(25558),V=r(96354),X=r(17446),Q=r(54438);let te=(()=>{var E;class L{constructor(p){this.utilisateurService=p}validateAdresse(){return p=>""===p.value||null===p.value?(0,j.of)(null):(0,G.O)(300).pipe((0,b.n)(()=>this.utilisateurService.validateAdresse(p.value).pipe((0,V.T)(F=>!0===F.invalidAddress?{invalidAddress:!0}:null))))}}return(E=L).\u0275fac=function(p){return new(p||E)(Q.KVO(X.$))},E.\u0275prov=Q.jDH({token:E,factory:E.\u0275fac}),L})()}}]);

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.