1"use strict";(self.webpackChunkpc=self.webpackChunkpc||[]).push([[1734],{51734:(X,A,r)=>{r.r(A),r.d(A,{RevenusDepensesModule:()=>An});var u=r(60177),f=r(88974),P=r(77339),E=r(9310),e=r(54438),N=r(51188),l=r(7673),S=r(88141),c=r(99437);const p=(0,E.VP)("[RevenusDepenses] SET_FRAIS_EXPLOITATION",(0,E.xk)()),v=(0,E.VP)("[RevenusDepenses] SET_FRAIS_EXPLOITATION_INFO",(0,E.xk)()),j=(0,E.VP)("[RevenusDepenses] SET_REVENUS_LOCATION",(0,E.xk)()),k=(0,E.VP)("[RevenusDepenses] SET_ATTESTATION",(0,E.xk)()),Q=(0,E.VP)("[RevenusDepenses] SET_FORM_INFORMATIONS",(0,E.xk)()),B=(0,E.VP)("[RevenusDepenses] SET_FORM_INFORMATIONS_METHODE_REMPLIR",(0,E.xk)()),H=(0,E.VP)("[RevenusDepenses] SET_FORM_INFORMATIONS_METHODE_DOCUMENT",(0,E.xk)()),J=(0,E.VP)("[RevenusDepenses] ADD_FRAIS_EXPLOITATION",(0,E.xk)()),W=(0,E.VP)("[RevenusDepenses] ADD_REVENUS_LOCATION",(0,E.xk)()),Z=(0,E.VP)("[RevenusDepenses] UPDATE_FRAIS_EXPLOITATION",(0,E.xk)()),ee=(0,E.VP)("[RevenusDepenses] UPDATE_REVENUS_LOCATION",(0,E.xk)()),te=(0,E.VP)("[RevenusDepenses] UPDATE_ATTESTATION",(0,E.xk)()),Y=(0,E.VP)("[RevenusDepenses] UPDATE_FRAIS_EXPLOITATION_INFO",(0,E.xk)()),$e=(0,E.VP)("[RevenusDepenses] UPDATE_ESPLOC_RES_FORM_
1SUCCESS"),ye=(0,E.VP)("[RevenusDepenses] UPDATE_ESPLOC_RES_FORM_FAILED"),ne=(0,E.VP)("[RevenusDepenses] DELETE_FRAIS_EXPLOITATION",(0,E.xk)()),_e=(0,E.VP)("[RevenusDepenses] DELETE_REVENUS_LOCATION",(0,E.xk)()),ue=(0,E.VP)("[RevenusDepenses] SET_REVENUS_LOCATION_VALIDATION",(0,E.xk)()),oe=(0,E.VP)("[RevenusDepenses] UPDATE_REVENUS_LOCATION_VALIDATION",(0,E.xk)()),Ne=(0,E.VP)("[RevenusDepenses] SET_FRAIS_EXPLOITATION_VALIDATION",(0,E.xk)()),se=(0,E.VP)("[RevenusDepenses] UPDATE_FRAIS_EXPLOITATION_VALIDATION",(0,E.xk)()),Pe=(0,E.VP)("[RevenusDepenses] SET_ATTESTATION_VALIDATION",(0,E.xk)()),Ee=(0,E.VP)("[RevenusDepenses] UPDATE_ATTESTATION_VALIDATION",(0,E.xk)());var Re=r(93948);let Ge=(()=>{var t;class _{}return(t=_).\u0275fac=function(o){return new(o||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-revenus-depenses"]],decls:1,vars:0,template:function(o,s){1&o&&e.nrm(0,"ion-router-outlet")},dependencies:[f.Rg],encapsulation:2}),_})();var Xe=r(53993),je=r(70152),D=r(96354),ie=r(70746);class ke{}class Be{constructor(){this.ChoixMethodeRemplir=!1,this.ChoixMethodeDocument=!1,this.numeroId=null,this.ChoixMethodeRemplir=!1,this.ChoixMethodeDocument=!1}}class He{constructor(_){this.FraisExploitations=_.getInitialState([]),this.FraisExploitationInformations={Description:""}}}(0,ie.p)();const b=(0,ie.p)(),h=(0,ie.p)(),{selectAll:we}=b.getSelectors(),{selectAll:Ke}=h.getSelectors(),V={RevenusDepensesFormulaire:{Data:new class Ye{constructor(_,n){this.Informations=new Be,this.FraisExploitationsSection=new He(_),this.RevenusLocations=n.getInitialState([]),this.Attestation=new ke}}(b,h),Validation:new class ze{constructor(){this.FraisExploitationsSectionValidation={touched:!1,valid:!1},this.RevenusLocationsSectionValidation={touched:!1,valid:!1},this.AttestationSectionValidation={touched:!1,valid:!1}}}}},z=(0,E.UX)("revenus-depenses"),x=((0,E.Mz)(z,t=>t.RevenusDepensesFormulaire),(0,E.Mz)(z,t=>t.RevenusDepensesFormulaire.Data)),ae=(0,E.Mz)(x,t=>t.Informations),qe=(0,E.Mz)(x,t=>t.FraisExploitationsSection.FraisExploitations),re=(0,E.Mz)(qe,we),Qe=(0,E.Mz)(x,re,(t,_)=>Object.assign({},t.FraisExploitationsSection,{FraisExploitations:_,FraisExploitationInformations:t.FraisExploitationsSection.FraisExploitationInformations})),Oe=(0,E.Mz)(re,t=>t.reduce((_,n)=>_+n.Montant,0)),Je=(0,E.Mz)(x,t=>t.RevenusLocations),Te=(0,E.Mz)(Je,Ke),de=(0,E.Mz)(Te,t=>t.reduce((_,n)=>_+n.Montant,0)),We=(0,E.Mz)(z,t=>t.RevenusDepensesFormulaire.Data.Attestation),Ze=(0,E.Mz)(de,Oe,(t,_)=>t-_),w=(0,E.Mz)(z,t=>t.RevenusDepensesFormulaire.Validation),pe=(0,E.Mz)(w,t=>t.RevenusLocationsSectionValidation),K=(0,E.Mz)(w,t=>t.FraisExploitationsSectionValidation),le=(0,E.Mz)(w,t=>t.AttestationSectionValidation);let et=(()=>{var t;class _{constructor(o,s,i){this.actions$=o,this.proprieteService=s,this.store=i,this.delayTimer=3e3,this.revenusDepensesChanged$=(0,P.EH)(()=>this.actions$.pipe((0,P.gp)(J,Z,W,ee,Y,te,B,H,ne,_e,oe,se,Ee),(0,Xe.E)(this.store.select(x),this.store.select(w)),(0,je.B)(this.delayTimer),(0,D.T)(([,O,T])=>this.proprieteService.updateFormulaireReponses(O.Informations.numeroId,O,T)),(0,D.T)(()=>$e()),(0,c.W)(()=>(0,l.of)(ye()))))}}return(t=_).\u0275fac=function(o){return new(o||t)(e.KVO(P.En),e.KVO(Re.K),e.KVO(E.il))},t.\u0275prov=e.jDH({token:t,factory:t.\u0275fac}),_})();var a=r(89417),me=r(90882),L=r(88834),Ce=r(3902),Me=r(64075);class tt{constructor(){this.id=(0,Me.SiN)(),this.CodeType=null,this.Montant=null}}var fe=r(44822),Se=r(3215);const nt={TaxesfoncieresScolaires:{value:"EBFB3C1B-0CFA-4F24-B677-976CB85D3668",nameValue:"TaxesfoncieresScolaires",viewValue:"Taxes fonci\xe8res et scolaires"},Electricite:{value:"5BFF7D13-2C40-4B45-962D-FA467B656571",nameValue:"Electricite",viewValue:"\xc9lectricit\xe9"},Chauffage:{value:"2052C7E8-15D2-4E8E-B9E8-B28892B1216A",nameValue:"Chauffage",viewValue:"Chauffage (combustible)"},Administration:{value:"1E907A4C-B6C6-4A9E-97B9-3411DE31365B",nameValue:"Administration",viewValue:"Administration"},Assurance:{value:"86463986-E758-4D20-AA8B-9AEC4E426618",nameValue:"Assurance",viewValue:"Assurance"},EntretienReparations:{value:"F15CDA78-BDF1-498B-8037-5B8CE0335F70",nameValue:"EntretienReparations",viewValue:"Entretien et r\xe9parations"},Deneigement:{value:"88F9C996-5154-4BF0-9C2D-0FF8995D7CBA",nameValue:"Deneigement",viewValue:"D\xe9neigement"},HonoraireProfessionnels:{value:"BDAB1A1E-8EE6-4F7E-BA1E-8A755AFBD62C",nameValue:"HonoraireProfessionnels",viewValue:"Honoraire professionnels"},SalaireAvantagesSociaux:{value:"E9DCE444-9C03-4504-9A1F-C6BD1CEE678B",nameValue:"SalaireAvantagesSociaux",viewValue:"Salaire et avantages sociaux"},Publicite:{value:"C84F15D3-9688-40AA-A880-5FDAAFFCC109",nameValue:"Publicite",viewValue:"Publicit\xe9"},FraisConciergerie:{value:"8DFAF35A-98BA-4210-A6FC-04ACCE55C9DF",nameValue:"FraisConciergerie",viewValue:"Frais conciergerie"},ContenantSanitaire:{value:"9EB1B891-90E3-42EB-8C7D-D98214FEFB95",nameValue:"ContenantSanitaire",viewValue:"Contenant sanitaire (location)"}
1,ReserveRemplacement:{value:"FE941D85-4844-4B32-B10D-1EF39C91FC4D",nameValue:"ReserveRemplacement",viewValue:"R\xe9serve de remplacement"},AutreDepenses:{value:"40C329FC-FBB7-4C24-8D67-720EC9217390",nameValue:"AutreDepenses",viewValue:"Autre d\xe9penses"}},_t={Commerces:{value:"B5BFAA92-55AA-47E2-A0AA-AA3374BC1757",nameValue:"Commerces",viewValue:"Commerces"},Logements:{value:"74DEE8A9-FB0A-47DD-9703-2B8F29B1A18D",nameValue:"Logements",viewValue:"Logements"},RecupFraisExpl:{value:"C88B44E8-CF35-4F91-BD47-9888AACA72E4",nameValue:"RecupFraisExpl",viewValue:"R\xe9cuperation des frais d'exploitation"},RevenusStationnement:{value:"63838A52-30D2-4A54-8B7B-55527BCE23C2",nameValue:"RevenusStationnement",viewValue:"Revenus de stationnement"},AutreRevenus:{value:"01D1E65D-3DD0-4ECE-856C-297A37E14766",nameValue:"AutreRevenus",viewValue:"Autre revenus"}};var R=r(26450),q=r(59042),$=r(32102),De=r(86600),Ie=r(82798),ce=r(75574),Ae=r(84820);function ot(t,_){1&t&&e.nrm(0,"th",24)}function st(t,_){if(1&t){const n=e.RV6();e.j41(0,"td",25)(1,"button",26),e.bIt("click",function(){const s=e.eBV(n).$implicit,i=e.XpG();return e.Njj(i.removeRevenusLocation(s))}),e.nrm(2,"i",27),e.k0s()()}}function Et(t,_){1&t&&(e.j41(0,"th",24),e.pXf(1,3),e.k0s())}function it(t,_){if(1&t&&(e.j41(0,"mat-option",32),e.EFF(1),e.k0s()),2&t){const n=_.$implicit;e.Y8G("value",n.value.value),e.R7$(),e.SpI(" ",n.value.viewValue," ")}}function at(t,_){if(1&t){const n=e.RV6();e.j41(0,"td",28)(1,"mat-form-field",29)(2,"mat-select",30),e.bIt("blur",function(){e.eBV(n);const s=e.XpG();return e.Njj(s.formControlOnBlur())}),e.DNE(3,it,2,2,"mat-option",31),e.nI1(4,"ObjectKeysPipe"),e.k0s()()()}if(2&t){const n=_.index,o=e.XpG();e.Y8G("formGroupName",n),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(2),e.Y8G("ngForOf",e.bMT(4,3,o.revenusLocationsEnum))}}function rt(t,_){1&t&&(e.j41(0,"th",24),e.pXf(1,4),e.k0s())}function lt(t,_){if(1&t){const n=e.RV6();e.j41(0,"td",28)(1,"mat-form-field",33)(2,"input",34),e.bIt("blur",function(){e.eBV(n);const s=e.XpG();return e.Njj(s.formControlOnBlur())}),e.k0s()()()}2&t&&(e.Y8G("formGroupName",_.index),e.R7$(),e.Y8G("floatLabel","never"))}function St(t,_){1&t&&e.nrm(0,"tr",35)}function ct(t,_){1&t&&e.nrm(0,"tr",36)}let ut=(()=>{var t;class _{constructor(o,s){this.formBuilder=o,this.store=s,this.revenusLocationsEnum=_t,this.displayedColumns=["Options","CodeType","Montant"]}ngOnInit(){this.revLocData$=this.store.select(Te),this.dataSource=new fe.K(this.revLocData$),this.initForm(),this.revenusTotal$=this.store.select(de)}initForm(){this.revenusLocationForm=this.formBuilder.array([]),this.revenusLocationForm.setDefaultControlBuilder(this.createRevenusLocationGroup.bind(this)),this.store.select(K).pipe((0,D.T)(o=>o.touched)).subscribe(o=>{o&&(0,Se.e)(this.revenusLocationForm)})}createRevenusLocationGroup(){const o=new a.J3({id:new a.hs,CodeType:new a.hs("",a.k0.required),Montant:new a.hs("",a.k0.required)});return o.valueChanges.subscribe(s=>this.updateRevenusLocation(s)),o}addRevenusLocation(){const o=new tt;this.store.dispatch(W({payload:o}))}updateRevenusLocation(o){this.store.dispatch(ee({payload:o}))}formControlOnBlur(){this.store.dispatch(oe({payload:{touched:!0,valid:this.revenusLocationForm.valid}}))}removeRevenusLocation(o){this.store.dispatch(_e({payload:o}))}trackByFn(o,s){return s.Id}}return(t=_).\u0275fac=function(o){return new(o||t)(e.rXU(a.ze),e.rXU(E.il))},t.\u0275cmp=e.VBU({type:t,selectors:[["revenus-location"]],decls:33,vars:12,consts:()=>{let n,o,s,i,O,T,m;return n="Revenus de location",o="Ajouter un type de revenu",s="Revenus totaux :",i=" Type ",O="Type",T=" Montant ",m="($)",[n,o,s,i,T,[1,"form-section-content"],[3,"formGroup","vplusSyncStore"],[1,"form-sub-section","form-section"],[1,"mat-table-form-container"],["mat-table","",1,"basic-form-table",3,"dataSource","trackBy"],["matColumnDef","Options","sticky",""],["mat-header-cell","",4,"matHeaderCellDef"],["class","table-first-col tableau-delete","mat-cell","",4,"matCellDef"],["matColumnDef","CodeType"],["mat-cell","",3,"formGroupName",4,"matCellDef"],["matColumnDef","Montant"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"form-section"],[1,"mini-fab-div"],["type","button","mat-mini-fab","",1,"primary",3,"click"],[1,"icon-add"],[1,"montant-container"],[1,"montant"],["mat-header-cell",""],["mat-cell","",1,"table-first-col","tableau-delete"],["type","button","mat-icon-button","","color","warn",3,"click"],[1,"icon-poubelle"],["mat-cell","",3,"formGroupName"],[2,"min-width","280px","padding-right","24px",3,"floatLabel"],["formControlName","CodeType","placeholder",O,3,"blur"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[3,"floatLabel"],["formControlName","Montant","matInput","","placeholder",m,"type","number","min","0","oninput","this.value = Math.abs(this.value)","autocomplete","off",3,"blur"],["mat-header-row",""],["mat-row",""]]},template:function(o,s){1&o&&(e.j41(0,"div",5)(1,"form",6),e.nI1(2,"async"),e.j41(3,"h1"),e.pXf(4,0),e.k0s(),e.nrm(5,"br"),e.j41(6,"div",7)(7,"div",8)(8,"table",9),e.qex(9,10),e.DNE(10,ot,1,0,"th",11)(11,st,3,0,"td",12),e.bVm(),e.qex(12,13),e.DNE(13,Et,2,0,"th",11)(14,at,5,5,"td",14),e.bVm(),e.qex(15,15),e.DNE(16,rt,2,0,"th",11)(17,lt,3,2,"td",14),e.bVm(),e.DNE(18,St,1,0,"tr",16)(19,ct,1,0,"tr",17),e.k0s()()(),e.j41(20,"section",18)(21,"div",19)(22,"button",20),e.bIt("click",function(){return s.addRevenusLocation()}),e.nrm(23,"i",21),e.k0s(),e.j41(24,"span"),e.pXf(25,1),e.k0s()()(),e.j41(26,"div",22)(27,"div",23)(28,"label"),e.pXf(29,2),e.k0s(),e.j41(30,"span"),e.EFF(31),e.nI1(32,"async"),e.k0s()()()()()),2&o&&(e.R7$(),e.Y8G("formGroup",s.revenusLocationForm)("vplusSyncStore",e.bMT(2,8,s.revLocData$)),e.R7$(7),e.Y8G("dataSource",s.dataSource)("trackBy",s.trackByFn),e.R7$(10),e.Y8G("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",!0),e.R7$(),e.Y8G("matRowDefColumns",s.displayedColumns),e.R7$(12),e.SpI("",e.bMT(32,10,s.revenusTotal$),"\xa0$"))},dependencies:[u.Sq,R.Zl,R.tL,R.ji,R.cC,R.YV,R.iL,R.KS,R.$R,R.YZ,R.NB,q.fg,$.rl,De.wT,Ie.VO,L.iY,L.$0,a.qT,a.me,a.Q0,a.BC,a.cb,a.VZ,a.j4,a.JD,a.$R,ce.Q,u.Jj,Ae.q],encapsulation:2}),_})();class Nt{constructor(){this.id=(0,Me.SiN)(),this.CodeType=null,this.Montant=null}}function Pt(t,_){1&t&&e.nrm(0,"th",29)}function Rt(t,_){if(1&t){const n=e.RV6();e.j41(0,"td",30)(1,"button",31),e.bIt("click",function(){const s=e.eBV(n).$implicit,i=e.XpG();return e.Njj(i.removeFraisExploitation(s))}),e.nrm(2,"i",32),e.k0s()()}}function Ot(t,_){1&t&&(e.j41(0,"th",29),e.pXf(1,5),e.k0s())}function Tt(t,_){if(1&t&&(e.j41(0,"mat-option",37),e.EFF(1),e.k0s()),2&t){const n=_.$implicit;e.Y8G("value",n.value.value),e.R7$(),e.SpI(" ",n.value.viewValue," ")}}function dt(t,_){if(1&t){const n=e.RV6();e.j41(0,"td",33)(1,"mat-form-field",34)(2,"mat-select",35),e.bIt("blur",function(){e.eBV(n);const s=e.XpG();return e.Njj(s.formControlOnBlur())}),e.DNE(3,Tt,2,2,"mat-option",36),e.nI1(4,"ObjectKeysPipe"),e.k0s()()()}if(2&t){const n=_.index,o=e.XpG();e.Y8G("formGroupName",n),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(2),e.Y8G("ngForOf",e.bMT(4,3,o.fraisExploitationsEnum))}}function pt(t,_){1&t&&(e.j41(0,"th",29),e.pXf(1,6),e.k0s())}function mt(t,_){if(1&t){const n=e.RV6();e.j41(0,"td",33)(1,"mat-form-field",38)(2,"input",39),e.bIt("blur",function(){e.eBV(n);const s=e.XpG();return e.Njj(s.formControlOnBlur())}),e.k0s()()()}2&t&&(e.Y8G("formGroupName",_.index),e.R7$(),e.Y8G("floatLabel","never"))}function Ct(t,_){1&t&&e.nrm(0,"tr",40)}function Mt(t,_){1&t&&e.nrm(0,"tr",41)}let ft=(()=>{var t;class _{constructor(o,s){this.formBuilder=o,this.store=s,this.fraisExploitationsEnum=nt,this.displayedColumns=["Options","CodeType","Montant"],this.updateFraisExploitationInformationsAction=Y}ngOnInit(){this.fraisExplData$=this.store.select(Qe),this.fraisTotal$=this.store.select(Oe),this.revenusNet$=this.store.select(Ze),this.fraisExplList$=this.store.select(re),this.dataSource=new fe.K(this.fraisExplList$),this.initForm()}initForm(){const o=this.formBuilder.array([]);o.setDefaultControlBuilder(this.createFraisExploitationGroup.bind(this));const s=this.formBuilder.group({Description:new a.hs});s.valueChanges.subscribe(i=>this.updateFraisExploitationsInformations(i)),this.fraisExploitationForm=this.formBuilder.group({FraisExploitations:o,FraisExploitationInformations:s}),this.store.select(K).pipe((0,D.T)(i=>i.touched)).subscribe(i=>{i&&(0,Se.e)(this.fraisExploitationForm)})}createFraisExploitationGroup(){const o=new a.J3({id:new a.hs,CodeType:new a.hs("",a.k0.required),Montant:new a.hs("",a.k0.required)});return o.valueChanges.subscribe(s=>this.updateFraisExploitation(s)),o}addFraisExploitation(){const o=new Nt;this.store.dispatch(J({payload:o}))}updateFraisExploitation(o){this.store.dispatch(Z({payload:o}))}updateFraisExploitationsInformations(o){this.store.dispatch(Y({payload:o}))}formControlOnBlur(){this.store.dispatch(se({payload:{touched:!0,valid:this.fraisExploitationForm.valid}}))}duplicateFraisExploitation(o){}removeFraisExploitation(o){this.store.dispatch(ne({payload:o}))}trackByFn(o,s){return s.Id}}return(t=_).\u0275fac=function(o){return new(o||t)(e.rXU(a.ze),e.rXU(E.il))},t.\u0275cmp=e.VBU({type:t,selectors:[["frais-exploitation"]],decls:44,vars:16,consts:()=>{let n,o,s,i,O,T,m,C,g,U;return n="Description des travaux majeurs r\xE9alis\xE9s, date et co\xFBts (Fen\xEAtres, Portes, Toitures, etc) en sp\xE9cifiant les co\xFBts",o="Frais d'exploitation",s="Ajouter un type de revenu",i="Frais totaux :",O="Revenus net :",T="Description des travaux majeurs r\xE9alis\xE9s",m=" Type ",C="Type",g=" Montant ",U="($)",[o,s,i,O,T,m,g,[1,"form-section-content"],[3,"formGroup","vplusSyncStore"],[1,"form-sub-section","form-section"],[1,"mat-table-form-container"],["mat-table","","formArrayName","FraisExploitations",1,"basic-form-table",3,"dataSource","trackBy"],["matColumnDef","Options","sticky",""],["mat-header-cell","",4,"matHeaderCellDef"],["class","table-first-col tableau-delete","mat-cell","",4,"matCellDef"],["matColumnDef","CodeType"],["mat-cell","",3,"formGroupName",4,"matCellDef"],["matColumnDef","Montant"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"form-section"],[1,"mini-fab-div"],["type","button","mat-mini-fab","",1,"primary",3,"click"],[1,"icon-add"],[1,"montant-container","form-section"],[1,"montant"],["formGroupName","FraisExploitationInformations",1,"form-section"],[1,"full-width",3,"floatLabel"],["rows","3","matInput","","formControlName","Description","placeholder",n,"type","text","autocomplete","off"],["mat-header-cell",""],["mat-cell","",1,"table-first-col","tableau-delete"],["type","button","mat-icon-button","","color","warn",3,"click"],[1,"icon-poubelle"],["mat-cell","",3,"formGroupName"],[2,"min-width","280px","padding-right","24px",3,"floatLabel"],["formControlName","CodeType","placeholder",C,3,"blur"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[3,"floatLabel"],["formControlName","Montant","matInput","","placeholder",U,"type","number","min","0","oninput","this.value = Math.abs(this.value)","autocomplete","off",3,"blur"],["mat-header-row",""],["mat-row",""]]},template:function(o,s){1&o&&(e.j41(0,"div",7)(1,"form",8),e.nI1(2,"async"),e.j41(3,"h1"),e.pXf(4,0),e.k0s(),e.nrm(5,"br"),e.j41(6,"div",9)(7,"div",10)(8,"table",11),e.qex(9,12),e.DNE(10,Pt,1,0,"th",13)(11,Rt,3,0,"td",14),e.bVm(),e.qex(12,15),e.DNE(13,Ot,2,0,"th",13)(14,dt,5,5,"td",16),e.bVm(),e.qex(15,17),e.DNE(16,pt,2,0,"th",13)(17,mt,3,2,"td",16),e.bVm(),e.DNE(18,Ct,1,0,"tr",18)(19,Mt,1,0,"tr",19),e.k0s()()(),e.j41(20,"section",20)(21,"div",21)(22,"button",22),e.bIt("click",function(){return s.addFraisExploitation()}),e.nrm(23,"i",23),e.k0s(),e.j41(24,"span"),e.pXf(25,1),e.k0s()()(),e.j41(26,"div",24)(27,"div",25)(28,"label"),e.pXf(29,2),e.k0s(),e.j41(30,"span"),e.EFF(31),e.nI1(32,"async"),e.k0s()(),e.j41(33,"div",25)(34,"label"),e.pXf(35,3),e.k0s(),e.j41(36,"span"),e.EFF(37),e.nI1(38,"async"),e.k0s()()(),e.j41(39,"div",26)(40,"label"),e.pXf(41,4),e.k0s(),e.j41(42,"mat-form-field",27),e.nrm(43,"textarea",28),e.k0s()()()()),2&o&&(e.R7$(),e.Y8G("formGroup",s.fraisExploitationForm)("vplusSyncStore",e.bMT(2,10,s.fraisExplData$)),e.R7$(7),e.Y8G("dataSource",s.dataSource)("trackBy",s.trackByFn),e.R7$(10),e.Y8G("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",!0),e.R7$(),e.Y8G("matRowDefColumns",s.displayedColumns),e.R7$(12),e.SpI("",e.bMT(32,12,s.fraisTotal$),"\xa0$"),e.R7$(6),e.SpI("",e.bMT(38,14,s.revenusNet$),"\xa0$"),e.R7$(5),e.Y8G("floatLabel","never"))},dependencies:[u.Sq,R.Zl,R.tL,R.ji,R.cC,R.YV,R.iL,R.KS,R.$R,R.YZ,R.NB,q.fg,$.rl,De.wT,Ie.VO,L.iY,L.$0,a.qT,a.me,a.Q0,a.BC,a.cb,a.VZ,a.j4,a.JD,a.$R,a.v8,ce.Q,u.Jj,Ae.q],encapsulation:2}),_})();var Dt=r(35052);function It(t,_){return n=>{if(n.controls[t].value!==n.controls[_].value)return n.controls[_].setErrors({asdf:!0}),{mismatchedFields:!0}}}var At=r(82765),vt=r(74769),Lt=r(98239),gt=r(99830);const Ut=()=>["Poste"];function Ft(t,_){1&t&&(e.j41(0,"mat-hint",24),e.pXf(1,2),e.k0s())}function bt(t,_){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Le num\xe9ro de poste ne peut pas d\xe9passer 7 chiffres "),e.k0s())}let ht=(()=>{var t;class _{constructor(o,s,i){this.formBuilder=o,this.store=s,this.appConfig=i,this.updateAttestationAction=te}ngOnInit(){this.appConfig.appConfig.paramList.autoDeclarationHelpMsg&&(this.textDeclarationAttestation=this.appConfig.appConfig.paramList.autoDeclarationDeclaCitoyenAttestation),this.attestationForm=this.formBuilder.group({HaveDeclared:[!1,a.k0.required],FirstName:["",a.k0.required],LastName:["",a.k0.required],Fonction:["",a.k0.required],Courriel:["",a.k0.required],CourrielConfirmation:["",a.k0.required],Telephone:["",a.k0.required],Poste:["",a.k0.maxLength(7)]},{validator:It("Courriel","CourrielConfirmation")}),this.store.select(le).pipe((0,D.T)(o=>o.touched)).subscribe(o=>{o&&(0,Se.e)(this.attestationForm)}),this.attestation$=this.store.select(We)}formControlOnBlur(){this.store.dispatch(Ee({payload:{touched:!0,valid:this.attestationForm.valid}}))}}return(t=_).\u0275fac=function(o){return new(o||t)(e.rXU(a.ze),e.rXU(E.il),e.rXU(Dt.o))},t.\u0275cmp=e.VBU({type:t,selectors:[["attestation-revenus-depenses"]],decls:37,vars:9,consts:()=>{let n,o,s,i,O,T,m,C,g,U,M;return n="Nom de famille",o="Pr\xE9nom",s="Fonction",i="Courriel",O="Confirmer",T="(123) 456-7890",m="T\xE9l\xE9phone (jour)",C="Poste (facultatif)",g="Attestation",U="Visualiser la d\xE9claration",M="Les courriels saisis ne sont pas identiques",[g,U,M,[1,"form-section-content"],[3,"formGroup","vplusSyncStore","vplusSyncAction"],[1,"form-section"],[1,"medium-field","form-margin-right"],["matInput","","formControlName","LastName","placeholder",n,3,"blur"],[1,"medium-field"],["matInput","","formControlName","FirstName","placeholder",o,3,"blur"],["matInput","","formControlName","Fonction","placeholder",s,3,"blur"],["type","email","matInput","","formControlName","Courriel","placeholder",i,3,"blur","preventCopyPasteDirective"],["type","email","matInput","","formControlName","CourrielConfirmation","placeholder",O,3,"blur","preventCopyPasteDirective"],["class","mat-error",4,"ngIf"],["type","tel","mask","(000) 000-0000","placeholder",T,"matInput","","formControlName","Telephone","placeholder",m,3,"blur"],["nombreOnly","","matInput","","type","text","autocomplete","off","formControlName","Poste","placeholder",C,3,"blur"],[4,"ngIf"],[1,"form-section","padding-bottom"],[1,"padding-bottom"],["href","/assets/rapport.pdf","target","blank","mat-raised-button","",1,"custom-button-standard","custom-button-full","margin-top"],[1,"icon-pdf"],[1,"big-checkbox-container"],["formControlName","HaveDeclared"],[1,"checkbox-big-label"],[1,"mat-error"]]},template:function(o,s){1&o&&(e.j41(0,"div",3)(1,"form",4),e.nI1(2,"async"),e.j41(3,"h1"),e.pXf(4,0),e.k0s(),e.nrm(5,"br"),e.j41(6,"section",5)(7,"mat-form-field",6)(8,"input",7),e.bIt("blur",function(){return s.formControlOnBlur()}),e.k0s()(),e.j41(9,"mat-form-field",8)(10,"input",9),e.bIt("blur",function(){return s.formControlOnBlur()}),e.k0s()()(),e.j41(11,"section",5)(12,"mat-form-field",8)(13,"input",10),e.bIt("blur",function(){return s.formControlOnBlur()}),e.k0s()()(),e.j41(14,"section",5)(15,"mat-form-field",6)(16,"input",11),e.bIt("blur",function(){return s.formControlOnBlur()}),e.k0s()(),e.j41(17,"mat-form-field",8)(
118,"input",12),e.bIt("blur",function(){return s.formControlOnBlur()}),e.k0s(),e.DNE(19,Ft,2,0,"mat-hint",13),e.k0s()(),e.j41(20,"section",5)(21,"mat-form-field",6)(22,"input",14),e.bIt("blur",function(){return s.formControlOnBlur()}),e.k0s()(),e.j41(23,"mat-form-field",8)(24,"input",15),e.bIt("blur",function(){return s.formControlOnBlur()}),e.k0s(),e.DNE(25,bt,2,0,"mat-error",16),e.k0s()(),e.j41(26,"section",17)(27,"div",18)(28,"a",19),e.nrm(29,"i",20),e.j41(30,"span"),e.pXf(31,1),e.k0s()()(),e.nrm(32,"br"),e.j41(33,"div",21),e.nrm(34,"mat-checkbox",22),e.j41(35,"span",23),e.EFF(36),e.k0s()()()()()),2&o&&(e.R7$(),e.Y8G("formGroup",s.attestationForm)("vplusSyncStore",e.bMT(2,6,s.attestation$))("vplusSyncAction",s.updateAttestationAction),e.R7$(18),e.Y8G("ngIf",null==s.attestationForm.errors?null:s.attestationForm.errors.mismatchedFields),e.R7$(6),e.Y8G("ngIf",s.attestationForm.get(e.lJ4(8,Ut)).invalid),e.R7$(11),e.JRh(s.textDeclarationAttestation))},dependencies:[u.bT,q.fg,$.rl,$.MV,$.TL,At.So,L.It,a.qT,a.me,a.BC,a.cb,a.j4,a.JD,ce.Q,vt.p,Lt.e,gt.Zr,u.Jj],encapsulation:2}),_})();const Vt=["fileInput"];function $t(t,_){1&t&&(e.j41(0,"span"),e.pXf(1,3),e.k0s())}function yt(t,_){1&t&&(e.j41(0,"span"),e.pXf(1,4),e.k0s())}function xt(t,_){if(1&t){const n=e.RV6();e.j41(0,"button",19),e.bIt("click",function(){e.eBV(n);const s=e.XpG();return e.Njj(s.clearInputValue())}),e.nrm(1,"i",20),e.k0s()}}function Gt(t,_){1&t&&(e.j41(0,"div",21),e.EFF(1," Un fichier est "),e.j41(2,"strong"),e.EFF(3,"requis"),e.k0s()())}function Xt(t,_){1&t&&(e.j41(0,"div",21),e.pXf(1,5),e.k0s())}let jt=(()=>{var t;class _{constructor(o){this.formBuilder=o,this.submitBtnIsEnabled=!0}openFileDialog(){this.fileInputRef.nativeElement.value="";const o=new MouseEvent("click",{bubbles:!1});this.fileInputRef.nativeElement.dispatchEvent(o)}onChange(o){this.fileInputRef.nativeElement.value.length&&(this.selectedDocument={path:"",lastModified:"",extension:"xml"},this.televersementRevenusDepensesForm.controls.filename.setValue(this.fileInputRef.nativeElement.files[0].name),this.file=this.fileInputRef.nativeElement.files[0],this.televersementRevenusDepensesForm.controls.filename.hasError("hasDocument")&&(this.submitBtnIsEnabled=!1))}ngOnInit(){this.televersementRevenusDepensesForm=this.formBuilder.group({filename:[""]})}clearInputValue(){this.televersementRevenusDepensesForm.controls.filename.setValue(null)}}return(t=_).\u0275fac=function(o){return new(o||t)(e.rXU(a.ze))},t.\u0275cmp=e.VBU({type:t,selectors:[["televersement-revenus-depenses"]],viewQuery:function(o,s){if(1&o&&e.GBs(Vt,5),2&o){let i;e.mGM(i=e.lsd())&&(s.fileInputRef=i.first)}},decls:21,vars:6,consts:()=>{let n,o,s,i,O,T;return n="File Name",o="T\xE9l\xE9versement",s="T\xE9l\xE9versez le fichier d\u2019\xE9tat des revenus et des d\xE9penses en votre possession \xE0 partir du champ ci-dessous. Vous pouvez remplacer le fichier ajout\xE9 \xE0 n'importe quel moment en cliquant sur le bouton parcourir \xE0 nouveau.",i="Parcourir",O="Remplacer le fichier actuel",T=" Un fichier avec ce nom existe d\xE9ja ",[["fileInput",""],o,s,i,O,T,[1,"form-section-content"],[3,"formGroup"],[1,"form-section"],["hidden","hidden","type","file","placeholder",n,"name","filename",1,"file-to-upload",3,"change"],[1,"mini-fab-div","form-section"],["type","button","mat-mini-fab","",1,"primary",3,"click"],[1,"icon-parcourir"],[4,"ngIf"],["class","warning","type","button","mat-mini-fab","",3,"click",4,"ngIf"],[1,"full-width"],[1,"uploaded-file","full-width"],["matInput","","formControlName","filename","readonly",""],["class","form-error",4,"ngIf"],["type","button","mat-mini-fab","",1,"warning",3,"click"],[1,"icon-poubelle"],[1,"form-error"]]},template:function(o,s){if(1&o){const i=e.RV6();e.j41(0,"div",6)(1,"form",7)(2,"h1"),e.pXf(3,1),e.k0s(),e.nrm(4,"br"),e.j41(5,"p",8),e.pXf(6,2),e.k0s(),e.j41(7,"input",9,0),e.bIt("change",function(T){return e.eBV(i),e.Njj(s.onChange(T))}),e.k0s(),e.j41(9,"div",10)(10,"button",11),e.bIt("click",function(){return e.eBV(i),e.Njj(s.openFileDialog())}),e.nrm(11,"i",12),e.k0s(),e.DNE(12,$t,2,0,"span",13)(13,yt,2,0,"span",13),e.k0s(),e.j41(14,"div",10),e.DNE(15,xt,2,0,"button",14),e.j41(16,"span",15)(17,"mat-form-field",16),e.nrm(18,"input",17),e.k0s()()(),e.DNE(19,Gt,4,0,"div",18)(20,Xt,2,0,"div",18),e.k0s()()}2&o&&(e.R7$(),e.Y8G("formGroup",s.televersementRevenusDepensesForm),e.R7$(11),e.Y8G("ngIf",!s.televersementRevenusDepensesForm.value.filename),e.R7$(),e.Y8G("ngIf",s.televersementRevenusDepensesForm.value.filename),e.R7$(2),e.Y8G("ngIf",s.televersementRevenusDepensesForm.value.filename),e.R7$(4),e.Y8G("ngIf",s.televersementRevenusDepensesForm.controls.filename.hasError("required")&&!s.submitBtnIsEnabled),e.R7$(),e.Y8G("ngIf",s.televersementRevenusDepensesForm.controls.filename.hasError("hasDocument")))},dependencies:[u.bT,q.fg,$.rl,L.$0,a.qT,a.me,a.BC,a.cb,a.j4,a.JD],encapsulation:2}),_})();const kt=t=>({"sidenav-toggled-auto-dcl":t}),Bt=t=>({"is-active":t}),F=t=>({"sidenav-section-hidden-auto-dcl":t}),y=t=>({active:t}),Ht=(t,_)=>({"icon-current":t,"icon-valid":_}),Yt=t=>({"sidenav-content-toggled":t}),G=(t,_,n,o)=>({"icon-current":t,"icon-inactive":_,"icon-valid":n,"icon-invalid":o}),ve=t=>({chosen:t});function zt(t,_){1&t&&(e.j41(0,"div",23)(1,"div",24)(2,"h1"),e.pXf(3,2),e.k0s(),e.nrm(4,"br"),e.j41(5,"p"),e.pXf(6,3),e.k0s(),e.nrm(7,"br")(8,"br"),e.j41(9,"div",25)(10,"a",26),e.pXf(11,4),e.k0s()()()())}function wt(t,_){if(1&t){const n=e.RV6();e.j41(0,"mat-nav-list",40)(1,"mat-list-item",35),e.bIt("click",function(){e.eBV(n);const s=e.XpG(2);return e.Njj(s.switchTabContent(2))}),e.nrm(2,"i",36),e.nI1(3,"async"),e.nI1(4,"async"),e.nI1(5,"async"),e.j41(6,"span",36),e.pXf(7,7),e.k0s()(),e.j41(8,"mat-list-item",35),e.bIt("click",function(){e.eBV(n);const s=e.XpG(2);return e.Njj(s.switchTabContent(3))}),e.nrm(9,"i",36),e.nI1(10,"async"),e.nI1(11,"async"),e.nI1(12,"async"),e.j41(13,"span",36),e.pXf(14,8),e.k0s()(),e.j41(15,"mat-list-item",35),e.bIt("click",function(){e.eBV(n);const s=e.XpG(2);return e.Njj(s.switchTabContent(4))}),e.nrm(16,"i",36),e.nI1(17,"async"),e.nI1(18,"async"),e.nI1(19,"async"),e.j41(20,"span",36),e.pXf(21,9),e.k0s()()()}if(2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.eq3(27,y,2===n.activeTab)),e.R7$(),e.Y8G("ngClass",e.ziG(29,G,2===n.activeTab,2!==n.activeTab,e.bMT(3,9,n.isRevenusLocationsValid$),!e.bMT(4,11,n.isRevenusLocationsValid$)&&!e.bMT(5,13,n.isRevenusLocationsPristine$)&&2!==n.activeTab)),e.R7$(4),e.Y8G("ngClass",e.eq3(34,F,n.isToggled)),e.R7$(2),e.Y8G("ngClass",e.eq3(36,y,3===n.activeTab)),e.R7$(),e.Y8G("ngClass",e.ziG(38,G,3===n.activeTab,3!==n.activeTab,e.bMT(10,15,n.isFraisExploitationsValid$),!e.bMT(11,17,n.isFraisExploitationsValid$)&&!e.bMT(12,19,n.isFraisExploitationsPristine$)&&3!==n.activeTab)),e.R7$(4),e.Y8G("ngClass",e.eq3(43,F,n.isToggled)),e.R7$(2),e.Y8G("ngClass",e.eq3(45,y,4===n.activeTab)),e.R7$(),e.Y8G("ngClass",e.ziG(47,G,4===n.activeTab,4!==n.activeTab,e.bMT(17,21,n.isAttestationValid$),!e.bMT(18,23,n.isAttestationValid$)&&!e.bMT(19,25,n.isAttestationPristine$)&&4!==n.activeTab)),e.R7$(4),e.Y8G("ngClass",e.eq3(52,F,n.isToggled))}}function Kt(t,_){if(1&t){const n=e.RV6();e.j41(0,"mat-nav-list",40)(1,"mat-list-item",35),e.bIt("click",function(){e.eBV(n);const s=e.XpG(2);return e.Njj(s.switchTabContent(2))}),e.nrm(2,"i",36),e.nI1(3,"async"),e.nI1(4,"async"),e.nI1(5,"async"),e.j41(6,"span",36),e.pXf(7,10),e.k0s()(),e.j41(8,"mat-list-item",35),e.bIt("click",function(){e.eBV(n);const s=e.XpG(2);return e.Njj(s.switchTabContent(3))}),e.nrm(9,"i",36),e.nI1(10,"async"),e.nI1(11,"async"),e.nI1(12,"async"),e.j41(13,"span",36),e.pXf(14,11),e.k0s()()()}if(2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.eq3(18,y,2===n.activeTab)),e.R7$(),e.Y8G("ngClass",e.ziG(20,G,2===n.activeTab,2!==n.activeTab,e.bMT(3,6,n.isTeleversementValid$),!e.bMT(4,8,n.isTeleversementValid$)&&!e.bMT(5,10,n.isTeleversementPristine$)&&2!==n.activeTab)),e.R7$(4),e.Y8G("ngClass",e.eq3(25,F,n.isToggled)),e.R7$(2),e.Y8G("ngClass",e.eq3(27,y,3===n.activeTab)),e.R7$(),e.Y8G("ngClass",e.ziG(29,G,3===n.activeTab,3!==n.activeTab,e.bMT(10,12,n.isAttestationValid$),!e.bMT(11,14,n.isAttestationValid$)&&!e.bMT(12,16,n.isAttestationPristine$)&&3!==n.activeTab)),e.R7$(4),e.Y8G("ngClass",e.eq3(34,F,n.isToggled))}}function qt(t,_){if(1&t){const n=e.RV6();e.qex(0),e.j41(1,"div",41)(2,"h1"),e.pXf(3,12),e.k0s(),e.nrm(4,"br"),e.j41(5,"div",42)(6,"div",43),e.nI1(7,"async"),e.j41(8,"h3"),e.pXf(9,13),e.k0s(),e.j41(10,"div",44),e.nrm(11,"i",45),e.k0s(),e.j41(12,"button",46),e.bIt("click",function(){e.eBV(n);const s=e.XpG(2);return e.Njj(s.setFormRemplir())}),e.pXf(13,14),e.k0s()(),e.j41(14,"div",43),e.nI1(15,"async"),e.j41(16,"h3"),e.pXf(17,15),e.k0s(),e.j41(18,"div",44),e.nrm(19,"i",47),e.k0s(),e.j41(20,"button",46),e.bIt("click",function(){e.eBV(n);const s=e.XpG(2);return e.Njj(s.setFormTeleverser())}),e.pXf(21,16),e.k0s()()()(),e.bVm()}if(2&t){const n=e.XpG(2);e.R7$(6),e.Y8G("ngClass",e.eq3(6,ve,e.bMT(7,2,n.isChoixMethodeRemplir$))),e.R7$(8),e.Y8G("ngClass",e.eq3(8,ve,e.bMT(15,4,n.isChoixMethodeDocument$)))}}function Qt(t,_){1&t&&e.nrm(0,"revenus-location")}function Jt(t,_){1&t&&e.nrm(0,"frais-exploitation")}function Wt(t,_){1&t&&e.nrm(0,"attestation-revenus-depenses")}function Zt(t,_){if(1&t&&(e.j41(0,"div"),e.DNE(1,Qt,1,0,"revenus-location",39)(2,Jt,1,0,"frais-exploitation",39)(3,Wt,1,0,"attestation-revenus-depenses",39),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",2==n.activeTab),e.R7$(),e.Y8G("ngIf",3==n.activeTab),e.R7$(),e.Y8G("ngIf",4==n.activeTab)}}function en(t,_){1&t&&e.nrm(0,"televersement-revenus-depenses")}function tn(t,_){1&t&&e.nrm(0,"attestation-revenus-depenses")}function nn(t,_){if(1&t&&(e.j41(0,"div"),e.DNE(1,en,1,0,"televersement-revenus-depenses",39)(2,tn,1,0,"attestation-revenus-depenses",39),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",2==n.activeTab),e.R7$(),e.Y8G("ngIf",3==n.activeTab)}}function _n(t,_){if(1&t){const n=e.RV6();e.j41(0,"div",49)(1,"button",50),e.bIt("click",function(){e.eBV(n);const s=e.XpG(3);return e.Njj(s.nextTabContent())}),e.j41(2,"span"),e.pXf(3,17),e.k0s(),e.nrm(4,"i",51),e.k0s()()}}function on(t,_){if(1&t&&(e.j41(0,"button",53),e.nI1(1,"async"),e.nI1(2,"async"),e.nI1(3,"async"),e.nrm(4,"i",54),e.j41(5,"span"),e.pXf(6,18),e.k0s()()),2&t){const n=e.XpG(4);e.Y8G("disabled",!e.bMT(1,1,n.isRevenusLocationsValid$)||!e.bMT(2,3,n.isFraisExploitationsValid$)||!e.bMT(3,5,n.isAttestationValid$))}}function sn(t,_){if(1&t&&(e.j41(0,"div",49),e.DNE(1,on,7,7,"button",52),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("ngIf",4===n.activeTab)}}function En(t,_){if(1&t&&(e.qex(0),e.DNE(1,_n,5,0,"div",48)(2,sn,2,1,"div",48),e.bVm()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",4!==n.activeTab),e.R7$(),e.Y8G("ngIf",4===n.activeTab)}}function an(t,_){if(1&t){const n=e.RV6();e.j41(0,"div",49)(1,"button",50),e.bIt("click",function(){e.eBV(n);const s=e.XpG(3);return e.Njj(s.nextTabContent())}),e.j41(2,"span"),e.pXf(3,19),e.k0s(),e.nrm(4,"i",51),e.k0s()()}}function rn(t,_){if(1&t&&(e.j41(0,"button",53),e.nI1(1,"async"),e.nI1(2,"async"),e.nrm(3,"i",54),e.j41(4,"span"),e.pXf(5,20),e.k0s()()),2&t){const n=e.XpG(4);e.Y8G("disabled",!e.bMT(1,1,n.isTeleversementValid$)||!e.bMT(2,3,n.isAttestationValid$))}}function ln(t,_){if(1&t&&(e.j41(0,"div",49),e.DNE(1,rn,6,5,"button",52),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("ngIf",3===n.activeTab)}}function Sn(t,_){if(1&t&&(e.qex(0),e.DNE(1,an,5,0,"div",48)(2,ln,2,1,"div",48),e.bVm()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",3!==n.activeTab),e.R7$(),e.Y8G("ngIf",3===n.activeTab)}}function cn(t,_){if(1&t){const n=e.RV6();e.j41(0,"mat-sidenav-container",27)(1,"mat-sidenav",28,0)(3,"div",29),e.bIt("click",function(){e.eBV(n);const s=e.XpG();return e.Njj(s.sidenavToggle())}),e.j41(4,"button",30)(5,"span",31),e.nrm(6,"span",32),e.k0s()(),e.j41(7,"span",33),e.pXf(8,5),e.k0s()(),e.j41(9,"mat-nav-list",34)(10,"mat-list-item",35),e.bIt("click",function(){e.eBV(n);const s=e.XpG();return e.Njj(s.switchTabContent(1))}),e.nrm(11,"i",36),e.j41(12,"span",36),e.pXf(13,6),e.k0s()()(),e.DNE(14,wt,22,54,"mat-nav-list",37),e.nI1(15,"async"),e.DNE(16,Kt,15,36,"mat-nav-list",37),e.nI1(17,"async"),e.k0s(),e.j41(18,"div",38,1)(20,"div"),e.DNE(21,qt,22,10,"ng-container",39)(22,Zt,4,3,"div",39),e.nI1(23,"async"),e.DNE(24,nn,3,2,"div",39),e.nI1(25,"async"),e.DNE(26,En,3,2,"ng-container",39),e.nI1(27,"async"),e.DNE(28,Sn,3,2,"ng-container",39),e.nI1(29,"async"),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(),e.Y8G("fixedInViewport",!0)("ngClass",e.eq3(27,kt,n.isToggled)),e.R7$(3),e.Y8G("ngClass",e.eq3(29,Bt,!n.isToggled)),e.R7$(3),e.Y8G("ngClass",e.eq3(31,F,n.isToggled)),e.R7$(3),e.Y8G("ngClass",e.eq3(33,y,1===n.activeTab)),e.R7$(),e.Y8G("ngClass",e.l_i(35,Ht,1===n.activeTab,1!==n.activeTab)),e.R7$(),e.Y8G("ngClass",e.eq3(38,F,n.isToggled)),e.R7$(2),e.Y8G("ngIf",e.bMT(15,15,n.isChoixMethodeRemplir$)),e.R7$(2),e.Y8G("ngIf",e.bMT(17,17,n.isChoixMethodeDocument$)),e.R7$(2),e.Y8G("ngClass",e.eq3(40,Yt,n.isToggled)),e.R7$(3),e.Y8G("ngIf",1===n.activeTab),e.R7$(),e.Y8G("ngIf",e.bMT(23,19,n.isChoixMethodeRemplir$)),e.R7$(2),e.Y8G("ngIf",e.bMT(25,21,n.isChoixMethodeDocument$)),e.R7$(2),e.Y8G("ngIf",e.bMT(27,23,n.isChoixMethodeRemplir$)&&n.activeTab>1),e.R7$(2),e.Y8G("ngIf",e.bMT(29,25,n.isChoixMethodeDocument$)&&n.activeTab>1)}}const Nn=N.iI.forChild([{path:"",component:Ge,children:[{path:"formulaire/:numeroId",component:(()=>{var t;class _{constructor(o,s,i){this.store=o,this.route=s,this.fb=i,this.isToggled=!1,this.activeTab=1,this.isFormSucces=!1,this.isFormStarted=!1}ngOnInit(){this.revenusDepensesForm=this.fb.group({}),this.isRevenusLocationsValid$=this.store.select(pe).pipe((0,D.T)(o=>o.valid)),this.isFraisExploitationsValid$=this.store.select(K).pipe((0,D.T)(o=>o.valid)),this.isAttestationValid$=this.store.select(le).pipe((0,D.T)(o=>o.valid)),this.isRevenusLocationsPristine$=this.store.select(pe).pipe((0,D.T)(o=>!o.touched)),this.isFraisExploitationsPristine$=this.store.select(K).pipe((0,D.T)(o=>!o.touched)),this.isAttestationPristine$=this.store.select(le).pipe((0,D.T)(o=>!o.touched)),this.isChoixMethodeRemplir$=this.store.select(ae).pipe((0,D.T)(o=>o.ChoixMethodeRemplir)),this.isChoixMethodeDocument$=this.store.select(ae).pipe((0,D.T)(o=>o.ChoixMethodeDocument)),this.isActivateTab=this.store.select(ae).subscribe(o=>{(o.ChoixMethodeRemplir||o.ChoixMethodeDocument)&&(this.activeTab=2)})}switchTabContent(o){this.activeTab=o}nextTabContent(){this.activeTab=this.activeTab+1}setFormSucces(){this.isFormSucces=!0}setFormRemplir(){this.store.dispatch(B({payload:!0})),this.store.dispatch(H({payload:!1})),setTimeout(function(){this.activeTab=2}.bind(this),500)}setFormTeleverser(){this.store.dispatch(H({payload:!0})),this.store.dispatch(B({payload:!1})),setTimeout(function(){this.activeTab=2}.bind(this),500)}sidenavToggle(){this.isToggled=!this.isToggled}ngOnDestroy(){this.isActivateTab&&this.isActivateTab.unsubscribe()}}return(t=_).\u0275fac=function(o){return new(o||t)(e.rXU(E.il),e.rXU(N.nX),e.rXU(a.ze))},t.\u0275cmp=e.VBU({type:t,selectors:[["revenus-depenses-form"]],decls:2,vars:2,consts:()=>{let n,o,s,i,O,T,m,C,g,U,M,I,Le,ge,Ue,Fe,be,he,Ve;return n="D\xE9claration soumise avec succ\xE8s !",o="Le service d\u2019\xE9valuation de la Ville de Qu\xE9bec vous remercie d\u2019avoir pris le temps de r\xE9pondre au formulaire de d\xE9claration des revenus et d\xE9penses. Ces informations nous permettront de mettre \xE0 jour votre dossier d\u2019\xE9valuation.",s="Retourner \xE0 l'accueil",i="Masquer les sections",O="Choix de la m\xE9thode",T="Revenus de location",m="Frais d'exploitation",C="Attestation",g="T\xE9l\xE9versement",U="Attestation",M="Choisissez une des deux m\xE9thodes suivantes :",I="Remplir le formulaire d\u2019\xE9tat des revenus et d\xE9penses",Le="Choisir",ge="T\xE9l\xE9verser un fichier qui contient l\u2019\xE9tat des revenus et d\xE9penses",Ue="Choisir",Fe="Continuer",be="Envoyer",he="Continuer",Ve="Envoyer",[["sidenav",""],["scrollC
1ontainer",""],n,o,s,i,O,T,m,C,g,U,M,I,Le,ge,Ue,Fe,be,he,Ve,["class","intro-formulaire-container",4,"ngIf"],["style","height: 100%;","class","side-nav-container-auto-dcl",4,"ngIf"],[1,"intro-formulaire-container"],[1,"intro-formulaire"],[1,"justify-center"],["routerLink","/accueil","mat-raised-button","",1,"button-padding","big-button","button"],[1,"side-nav-container-auto-dcl",2,"height","100%"],["mode","side","opened","",1,"sidenav-auto-dcl","form-sidenav-auto-dcl",3,"fixedInViewport","ngClass"],[1,"side-menu-toggle",3,"click"],["type","button",1,"hamburger","hamburger--spring",3,"ngClass"],[1,"hamburger-box"],[1,"hamburger-inner"],[1,"side-menu-toggle-text",3,"ngClass"],["role","navigation",1,"side-nav-list-auto-dcl"],["mat-list-item","",3,"click","ngClass"],[3,"ngClass"],["class","side-nav-list","role","navigation",4,"ngIf"],[1,"side-nav-content",3,"ngClass"],[4,"ngIf"],["role","navigation",1,"side-nav-list"],[1,"form-section-content"],[1,"intro-form-card-container"],[1,"intro-form-card",3,"ngClass"],[1,"featured-form-icon"],[1,"icon-info-formulaire-login"],["mat-raised-button","",1,"custom-button-full","custom-button-standard",3,"click"],[1,"icon-formulaire-primeur"],["class","form-next-actions",4,"ngIf"],[1,"form-next-actions"],["mat-raised-button","",1,"custom-button-standard","custom-button-full",3,"click"],[1,"icon-right-arrow"],["mat-raised-button","","type","submit","class","custom-button-standard custom-button-full",3,"disabled",4,"ngIf"],["mat-raised-button","","type","submit",1,"custom-button-standard","custom-button-full",3,"disabled"],[1,"icon-send"]]},template:function(o,s){1&o&&e.DNE(0,zt,12,0,"div",21)(1,cn,30,42,"mat-sidenav-container",22),2&o&&(e.Y8G("ngIf",!0===s.isFormSucces),e.R7$(),e.Y8G("ngIf",!1===s.isFormSucces))},dependencies:[u.YU,u.bT,f.oY,N.Wk,me.LG,me.US,L.It,L.$z,Ce._L,Ce.YE,ut,ft,ht,jt,u.Jj],encapsulation:2}),_})(),runGuardsAndResolvers:"paramsOrQueryParamsChange",resolve:{revenusDepensesForm:(t,_,n=(0,e.WQX)(N.Ix),o=(0,e.WQX)(Re.K),s=(0,e.WQX)(E.il))=>o.loadUserProprieteFormulaire(t.params.numeroId).pipe((0,S.M)(i=>{s.dispatch(Q({payload:{numeroId:Number(t.params.numeroId),ChoixMethodeRemplir:!1,ChoixMethodeDocument:!1}})),i.data&&(s.dispatch(Q({payload:{numeroId:Number(t.params.numeroId),ChoixMethodeRemplir:!!i.data.Informations.ChoixMethodeRemplir&&i.data.Informations.ChoixMethodeRemplir,ChoixMethodeDocument:!!i.data.Informations.ChoixMethodeDocument&&i.data.Informations.ChoixMethodeDocument}})),s.dispatch(p({payload:i.data.FraisExploitationsSection.FraisExploitations})),s.dispatch(v({payload:i.data.FraisExploitationsSection.FraisExploitationInformations})),s.dispatch(j({payload:i.data.RevenusLocations})),s.dispatch(k({payload:i.data.Attestation}))),i.state&&(s.dispatch(Ne({payload:i.state.FraisExploitationsSectionValidation})),s.dispatch(ue({payload:i.state.RevenusLocationsSectionValidation})),s.dispatch(Pe({payload:i.state.AttestationSectionValidation})))}),(0,c.W)(()=>(n.navigate([`/propriete/${t.parent.params.proprieteId}`]),(0,l.of)(null))))}}]}]),Pn=(0,E.vy)(V.RevenusDepensesFormulaire.Data.Informations,(0,E.on)(Q,(t,{payload:_})=>_),(0,E.on)(B,(t,{payload:_})=>Object.assign({},t,{ChoixMethodeRemplir:_})),(0,E.on)(H,(t,{payload:_})=>Object.assign({},t,{ChoixMethodeDocument:_}))),Rn=(0,E.vy)(V.RevenusDepensesFormulaire.Data.FraisExploitationsSection.FraisExploitations,(0,E.on)(p,(t,{payload:_})=>b.setAll(_,t)),(0,E.on)(J,(t,{payload:_})=>b.addOne(_,t)),(0,E.on)(Z,(t,{payload:_})=>b.updateOne({id:_.id,changes:_},t)),(0,E.on)(ne,(t,{payload:_})=>b.removeOne(_.id,t))),On=(0,E.vy)(V.RevenusDepensesFormulaire.Data.FraisExploitationsSection.FraisExploitationInformations,(0,E.on)(v,(t,{payload:_})=>_),(0,E.on)(Y,(t,{payload:_})=>_)),Tn=(0,E.vy)(V.RevenusDepensesFormulaire.Data.RevenusLocations,(0,E.on)(j,(t,{payload:_})=>h.setAll(_,t)),(0,E.on)(W,(t,{payload:_})=>h.addOne(_,t)),(0,E.on)(ee,(t,{payload:_})=>h.updateOne({id:_.id,changes:_},t)),(0,E.on)(_e,(t,{payload:_})=>h.removeOne(_.id,t))),dn=(0,E.vy)(V.RevenusDepensesFormulaire.Data.Attestation,(0,E.on)(k,(t,{payload:_})=>_),(0,E.on)(te,(t,{payload:_})=>_)),pn=(0,E.vy)(V.RevenusDepensesFormulaire.Validation,(0,E.on)(Ne,(t,{payload:_})=>Object.assign({},t,{FraisExploitationsSectionValidation:_})),(0,E.on)(se,(t,{payload:_})=>Object.assign({},t,{FraisExploitationsSectionValidation:_})),(0,E.on)(ue,(t,{payload:_})=>Object.assign({},t,{RevenusLocationsSectionValidation:_})),(0,E.on)(oe,(t,{payload:_})=>Object.assign({},t,{RevenusLocationsSectionValidation:_})),(0,E.on)(Pe,(t,{payload:_})=>Object.assign({},t,{AttestationSectionValidation:_})),(0,E.on)(Ee,(t,{payload:_})=>Object.assign({},t,{AttestationSectionValidation:_}))),fn={RevenusDepensesFormulaire:(0,E.HY)({Data:(0,E.HY)({Informations:Pn,FraisExploitationsSection:(0,E.HY)({FraisExploitations:function mn(t,_){return Rn(t,_)},FraisExploitationInformations:On}),RevenusLocations:function Cn(t,_){return Tn(t,_)},Attestation:function Mn(t,_){return dn(t,_)}}),Validation:pn})};function Dn(){return(0,E.qX)(E.HY)(fn)}var In=r(10916);let An=(()=>{var t;class _{}return(t=_).\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.$C({type:t}
1),t.\u0275inj=e.G2t({imports:[u.MD,f.bv,Nn,E.md.forFeature("revenus-depenses",Dn),P.Vm.forFeature([et]),In.G]}),_})()},3215:(X,A,r)=>{r.d(A,{e:()=>f});var u=r(89417);function f(P){Object.keys(P.controls).forEach(E=>{const e=P.get(E);e instanceof u.J3?f(e):e instanceof u.Bm?e.controls.forEach(N=>{f(N)}):e.markAsTouched({onlySelf:!0})})}},74769:(X,A,r)=>{r.d(A,{p:()=>P});var u=r(54438),f=r(89417);let P=(()=>{var E;class e{constructor(){this.regex=new RegExp(/^([0-9]*){0,1}$/g),this.specialKeys=["Backspace","Clear","Delete","ArrowLeft","ArrowRight","Enter","Return","Tab"],this.focused=!1,this.el=(0,u.WQX)(u.aKT),this.ngControl=(0,u.WQX)(f.vO,{optional:!0})}ngDoCheck(){var l;this.focused||null===(l=this.ngControl)||void 0===l||!l.control||this.formatDisplay(this.ngControl.control.value)}onKeyDown(l){if(-1!==this.specialKeys.indexOf(l.key))return;const c=this.el.nativeElement.value.concat(l.key);c&&!String(c).match(this.regex)&&l.preventDefault()}onPaste(l){var S,c;const p=this.buildNextValue(null!==(S=null===(c=l.clipboardData)||void 0===c?void 0:c.getData("text"))&&void 0!==S?S:"");p&&!String(p).match(this.regex)&&l.preventDefault()}onDrop(l){var S,c;const v=this.buildNextValue(null!==(S=null===(c=l.dataTransfer)||void 0===c?void 0:c.getData("text"))&&void 0!==S?S:"");v&&!String(v).match(this.regex)&&l.preventDefault()}buildNextValue(l){var S,c;const p=this.el.nativeElement,v=p.value,j=null!==(S=p.selectionStart)&&void 0!==S?S:v.length,k=null!==(c=p.selectionEnd)&&void 0!==c?c:v.length;return v.slice(0,j)+l+v.slice(k)}onFocus(){this.focused=!0;const l=this.el.nativeElement;l.value=this.stripSeparators(l.value)}onBlur(){var l;this.focused=!1;const S=null!==(l=this.ngControl)&&void 0!==l&&l.control?this.ngControl.control.value:this.el.nativeElement.value;this.formatDisplay(S)}formatDisplay(l){const S=this.stripSeparators(null==l?"":String(l)),c=S&&this.addThousandsSeparator(S);this.el.nativeElement.value!==c&&(this.el.nativeElement.value=c)}stripSeparators(l){return l.replace(/\s/g,"")}addThousandsSeparator(l){const S=Number(l);return Number.isNaN(S)?l:new Intl.NumberFormat("fr-CA",{maximumFractionDigits:0}).format(S)}}return(E=e).\u0275fac=function(l){return new(l||E)},E.\u0275dir=u.FsC({type:E,selectors:[["","nombreOnly",""]],hostBindings:function(l,S){1&l&&u.bIt("keydown",function(p){return S.onKeyDown(p)})("paste",function(p){return S.onPaste(p)})("drop",function(p){return S.onDrop(p)})("focus",function(){return S.onFocus()})("blur",function(){return S.onBlur()})}}),e})()},98239:(X,A,r)=>{r.d(A,{e:()=>f});var u=r(54438);let f=(()=>{var P;class E{constructor(N){}blockPaste(N){N.preventDefault()}blockCopy(N){N.preventDefault()}blockCut(N){N.preventDefault()}}return(P=E).\u0275fac=function(N){return new(N||P)(u.rXU(u.aKT))},P.\u0275dir=u.FsC({type:P,selectors:[["","preventCopyPasteDirective",""]],hostBindings:function(N,l){1&N&&u.bIt("paste",function(c){return l.blockPaste(c)})("copy",function(c){return l.blockCopy(c)})("cut",function(c){return l.blockCut(c)})},inputs:{preventCopyPasteDirective:"preventCopyPasteDirective"}}),E})()},84820:(X,A,r)=>{r.d(A,{q:()=>f});var u=r(54438);let f=(()=>{var P;class E{transform(N,l){const S=[];for(const c in N)S.push({key:c,value:N[c]});return S}}return(P=E).\u0275fac=function(N){return new(N||P)},P.\u0275pipe=u.EJ8({name:"ObjectKeysPipe",type:P,pure:!0}),E})()}}]);
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.