PageSourceSearch

https://saint-justin.ca/8679.c39ef5cc8f69e018.js

js saint-justin.ca collected 2026-10-02 22:31:01 UTC 236,925 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpc=self.webpackChunkpc||[]).push([[8679],{48679:(Zt,me,S)=>{S.r(me),S.d(me,{EspacesLocatifsModule:()=>nr});var Pe={};S.r(Pe),S.d(Pe,{UpdateFormEspLocStatus:()=>ot,UpdateFormEspLocStatusFailed:()=>Ie,UpdateFormEspLocStatusSuccess:()=>Ne,addEspaceLocatifNonResidentiel:()=>ue,addEspaceLocatifResidentiel:()=>z,deleteEspacesLocatifsNonResidentiel:()=>Ut,deleteEspacesLocatifsResidentiel:()=>Gt,duplicateEspacesLocatifsNonResidentiel:()=>t_,duplicateEspacesLocatifsResidentiel:()=>e_,setAttachements:()=>lt,setAttestation:()=>q,setAttestationSectionValidation:()=>a_,setEspacesLocatifsNonResidentiel:()=>ee,setEspacesLocatifsNonResidentielSectionValidation:()=>n_,setEspacesLocatifsResidentiel:()=>We,setEspacesLocatifsResidentielSectionValidation:()=>__,setFormInformations:()=>Q,setFormInformationsMethodeDocument:()=>D,setFormInformationsMethodeRemplir:()=>de,setFraisExploitation:()=>Oe,setFraisExploitationsInformations:()=>pe,setFraisExploitationsSectionValidation:()=>s_,setInformationsSupplementaires:()=>at,setInformationsSupplementairesSectionValidation:()=>i_,setRevenusLocationPerte:()=>Re,setRevenusLocationRevenu:()=>Z,setRevenusLocationsSectionValidation:()=>E_,updateAttestation:()=>Ke,updateAttestationSectionValidation:()=>Ot,updateEspacesLocatifsAttachementsSectionValidation:()=>Qe,updateEspacesLocatifsForm:()=>Te,updateEspacesLocatifsFormValidation:()=>yt,updateEspacesLocatifsNonResidentiel:()=>Je,updateEspacesLocatifsNonResidentielSectionValidation:()=>dt,updateEspacesLocatifsResidentiel:()=>st,updateEspacesLocatifsResidentielSectionValidation:()=>ut,updateFormEspacesLocatifsFailed:()=>Ft,updateFormEspacesLocatifsSuccess:()=>Pt,updateFraisExploitation:()=>ht,updateFraisExploitationsInformations:()=>bt,updateFraisExploitationsSectionValidation:()=>pt,updateInformationsSupplementaires:()=>Et,updateInformationsSupplementairesSectionValidation:()=>o_,updateRevenusLocationPerte:()=>$t,updateRevenusLocationRevenu:()=>vt,updateRevenusLocationsSectionValidation:()=>Tt});var ie={};S.r(ie),S.d(ie,{EspaceLocatifsEffects:()=>V_});var w={};S.r(w),S.d(w,{Actions:()=>Pe,Effects:()=>ie,EspacesLocatifsNonResidentielsStateAdapter:()=>ge,EspacesLocatifsResidentielsStateAdapter:()=>Me,FraisExploitationsEspLocStateAdapter:()=>Lt,INITIAL_ESPACES_LOCATIFS_STATE:()=>te,RevenusLocationsPerteEspLocStateAdapter:()=>mt,RevenusLocationsRevenuEspLocStateAdapter:()=>At,getAttachementsValidation:()=>Xn,getAttestation:()=>D_,getAttestationValidation:()=>P_,getDateExercice:()=>C_,getDateReference:()=>It,getEspacesLocatifsFormData:()=>oe,getEspacesLocatifsFormInformations:()=>yn,getEspacesLocatifsNonResidentiels:()=>S_,getEspacesLocatifsNonResidentielsState:()=>g_,getEspacesLocatifsNonResidentielsValidation:()=>kt,getEspacesLocatifsResidentiels:()=>l_,getEspacesLocatifsResidentielsState:()=>M_,getEspacesLocatifsResidentielsValidation:()=>Vt,getEspacesLocatifsState:()=>fe,getEspacesLocatisFormValidation:()=>Le,getFraisExploitationEspLocValidation:()=>Rt,getFraisExploitationsEspLoc:()=>Nt,getFraisExploitationsEspLocSectionEntities:()=>h_,getFraisExploitationsEspLocState:()=>F_,getInformationsSupplementaires:()=>Un,getInformationsSupplementairesValidation:()=>xn,getRevenuLocationEspLocValidation:()=>jt,getRevenusLocationsEspLocPerte:()=>Xt,getRevenusLocationsEspLocPerteState:()=>v_,getRevenusLocationsEspLocRevenu:()=>xt,getRevenusLocationsEspLocRevenuState:()=>b_,getRevenusNetEspLoc:()=>U_,getSUMFraisExploitationsEspLoc:()=>c_,getSUMRevenusLocationsEspLocRevenu:()=>$_,getSUMRevenusLocationsEspLocTotal:()=>r_,getSUMRevenusLocationsREspLocPerte:()=>G_,selectAttachements:()=>y_});var b=S(60177),v=S(77339),E=S(9310);const ot=(0,E.VP)("[EspacesLocatifs] UPDATE_FORM_ESPLOC_STATUS",(0,E.xk)()),Ne=(0,E.VP)("[EspacesLocatifs] UPDATE_FORM_ESPLOC_STATUS_SUCCESS"),Ie=(0,E.VP)("[EspacesLocatifs] UPDATE_FORM_ESPLOC_STATUS_FAILED"),We=(0,E.VP)("[EspacesLocatifs] SET_ESPLOC_RES",(0,E.xk)()),ee=(0,E.VP)("[EspacesLocatifs] SET_ESPLOC_NON_RES",(0,E.xk)()),at=(0,E.VP)("[EspacesLocatifs] SET_INFO_SUPPLEMENTAIRE",(0,E.xk)()),q=(0,E.VP)("[EspacesLocatifs] SET_ATTESTATION",(0,E.xk)()),Q=(0,E.VP)("[EspacesLocatifs] SET_FORM_INFORMATIONS",(0,E.xk)()),de=(0,E.VP)("[EspacesLocatifs] SET_FORM_INFORMATIONS_METHODE_REMPLIR",(0,E.xk)()),D=(0,E.VP)("[EspacesLocatifs] SET_FORM_INFORMATIONS_METHODE_DOCUMENT",(0,E.xk)()),Oe=(0,E.VP)("[EspacesLocatifs] SET_FRAIS_EXPLOITATION",(0,E.xk)()),pe=(0,E.VP)("[EspacesLocatifs] SET_FRAIS_EXPLOITATION_INFO",(0,E.xk)()),Z=(0,E.VP)("[EspacesLocatifs] SET_REVENUS_LOCATION_REVENU",(0,E.xk)()),Re=(0,E.VP)("[EspacesLocatifs] SET_REVENUS_LOCATION_PERTE",(0,E.xk)()),z=(0,E.VP)("[EspacesLocatifs] ADD_ESPLOC_RES",(0,E.xk)()),ue=(0,E.VP)("[EspacesLocatifs] ADD_ESPLOC_NON_RES",(0,E.xk)()),st=(0,E.VP)("[EspacesLocatifs] UPDATE_ESPLOC_RES",(0,E.xk)()),Je=(0,E.VP)("[EspacesLocatifs] UPDATE_ESPLOC_NON_RES",(0,E.xk)()),Et=(0,E.VP)("[EspacesLocatifs] UPDATE_INFO_SUPPLEMENTAIRE",(0,E.xk)()),Ke=(0,E.VP)("[EspacesLocatifs] UPDATE_ATTESTATION",(0,E.xk)()),Te=(0,E.VP)("[EspacesLocatifs] UPDATE_ESPLOC_RES_FORM",(0,E.xk)()),Pt=(0,E.VP)("[EspacesLocatifs] UPDATE_ESPLOC_RES_FORM_
1SUCCESS"),Ft=(0,E.VP)("[EspacesLocatifs] UPDATE_ESPLOC_RES_FORM_FAILED"),ht=(0,E.VP)("[EspacesLocatifs] UPDATE_FRAIS_EXPLOITATION",(0,E.xk)()),bt=(0,E.VP)("[EspacesLocatifs] UPDATE_FRAIS_EXPLOITATION_INFO",(0,E.xk)()),vt=(0,E.VP)("[EspacesLocatifs] UPDATE_REVENUS_LOCATION_REVENU",(0,E.xk)()),$t=(0,E.VP)("[EspacesLocatifs] UPDATE_REVENUS_LOCATION_PERTE",(0,E.xk)()),Gt=(0,E.VP)("[EspacesLocatifs] DELETE_ESPLOC_RES",(0,E.xk)()),Ut=(0,E.VP)("[EspacesLocatifs] DELETE_ESPLOC_NON_RES",(0,E.xk)()),e_=(0,E.VP)("[EspacesLocatifs] DUPLICATE_ESPLOC_RES",(0,E.xk)()),t_=(0,E.VP)("[EspacesLocatifs] DUPLICATE_ESPLOC_NON_RES",(0,E.xk)()),__=(0,E.VP)("[EspacesLocatifs] SET_ESPLOC_RES_VALIDATION",(0,E.xk)()),ut=(0,E.VP)("[EspacesLocatifs] UPDATE_ESPLOC_RES_VALIDATION",(0,E.xk)()),n_=(0,E.VP)("[EspacesLocatifs] SET_ESPLOC_NON_RES_VALIDATION",(0,E.xk)()),dt=(0,E.VP)("[EspacesLocatifs] UPDATE_ESPLOC_NON_RES_VALIDATION",(0,E.xk)()),i_=(0,E.VP)("[EspacesLocatifs] SET_INFOS_SUP_VALIDATION",(0,E.xk)()),o_=(0,E.VP)("[EspacesLocatifs] UPDATE_INFOS_SUP_VALIDATION",(0,E.xk)()),a_=(0,E.VP)("[EspacesLocatifs] SET_ATTESTATION_VALIDATION",(0,E.xk)()),Ot=(0,E.VP)("[EspacesLocatifs] UPDATE_ATTESTATION_VALIDATION",(0,E.xk)()),yt=(0,E.VP)("[EspacesLocatifs] UPDATE_ESPACES_LOCATIFS_FORM_VALIDATION"),s_=(0,E.VP)("[EspacesLocatifs] SET_FRAIS_EXPLOITATION_VALIDATION",(0,E.xk)()),E_=(0,E.VP)("[EspacesLocatifs] SET_REVENUS_LOCATION_VALIDATION",(0,E.xk)()),pt=(0,E.VP)("[EspacesLocatifs] UPDATE_FRAIS_EXPLOITATION_VALIDATION",(0,E.xk)()),Tt=(0,E.VP)("[EspacesLocatifs] UPDATE_REVENUS_LOCATION_VALIDATION",(0,E.xk)()),Qe=(0,E.VP)("[EspacesLocatifs] UPDATE_ESPLOC_ATTACHEMENTS_VALIDATION",(0,E.xk)()),lt=(0,E.VP)("[EspacesLocatifs] UPDATE_FORM_INSPECTION_ATTACHEMENTS",(0,E.xk)());var ft=S(70746);class N_{}class I_{constructor(){this.numeroId=null,this.DateReference=null,this.DateExercice=null,this.DateDerniereVisite=null}}class R_{}class gn{constructor(i){this.FraisExploitationsEspLoc=i.getInitialState([]),this.FraisExploitationEspLocInformations={TravauxMajeurAnnee1:"",TravauxMajeurMontant1:null,TravauxMajeurDescriptif1:"",TravauxMajeurAnnee2:"",TravauxMajeurMontant2:null,TravauxMajeurDescriptif2:"",TravauxMajeurAnnee3:"",TravauxMajeurMontant3:null,TravauxMajeurDescriptif3:""}}}const Me=(0,ft.p)(),ge=(0,ft.p)(),Lt=(0,ft.p)(),At=(0,ft.p)(),mt=(0,ft.p)(),{selectAll:hn}=Me.getSelectors(),{selectAll:bn}=ge.getSelectors(),{selectAll:vn}=Lt.getSelectors(),{selectAll:$n}=At.getSelectors(),{selectAll:Gn}=mt.getSelectors(),te={EspacesLocatisFormulaire:{Data:new class Dn{constructor(i,_,o,n,a){this.EspacesLocatifsResidentiels=i.getInitialState([]),this.EspacesLocatifsNonResidentiels=_.getInitialState([]),this.RevenusLocationsEspLocRevenu=n.getInitialState([]),this.RevenusLocationsEspLocPerte=a.getInitialState([]),this.FraisExploitationsEspLocSection=new gn(o),this.InformationsSupplementaires=new R_,this.Informations=new I_,this.Attestation=new N_,this.Attachements=[]}}(Me,ge,Lt,At,mt),Validation:new class Fn{constructor(){this.EspacesLocatifsResidentielsSectionValidation={touched:!1,valid:!1},this.EspacesLocatifsNonResidentielsSectionValidation={touched:!1,valid:!1},this.FraisExploitationsEspLocSectionValidation={touched:!1,valid:!1},this.RevenusLocationsEspLocSectionValidation={touched:!1,valid:!1},this.InformationsSupplementairesSectionValidation={touched:!1,valid:!1},this.AttestationSectionValidation={touched:!1,valid:!1},this.AttachementsSectionValidation={touched:!1,valid:!1}}}}},fe=(0,E.UX)("espaces-locatifs"),oe=(0,E.Mz)(fe,t=>t.EspacesLocatisFormulaire.Data),M_=(0,E.Mz)(oe,t=>t.EspacesLocatifsResidentiels),l_=(0,E.Mz)(M_,hn),g_=(0,E.Mz)(oe,t=>t.EspacesLocatifsNonResidentiels),S_=(0,E.Mz)(g_,bn),Un=(0,E.Mz)(fe,t=>t.EspacesLocatisFormulaire.Data.InformationsSupplementaires),D_=(0,E.Mz)(fe,t=>t.EspacesLocatisFormulaire.Data.Attestation),F_=(0,E.Mz)(oe,t=>t.FraisExploitationsEspLocSection.FraisExploitationsEspLoc),Nt=(0,E.Mz)(F_,vn),h_=(0,E.Mz)(oe,Nt,(t,i)=>Object.assign({},t.FraisExploitationsEspLocSection,{FraisExploitationsEspLoc:i,FraisExploitationEspLocInformations:t.FraisExploitationsEspLocSection.FraisExploitationEspLocInformations})),c_=(0,E.Mz)(Nt,t=>t.reduce((i,_)=>{var o;return i+(null!==(o=+_.Montant)&&void 0!==o?o:0)},0)),b_=(0,E.Mz)(oe,t=>t.RevenusLocationsEspLocRevenu),xt=(0,E.Mz)(b_,$n),v_=(0,E.Mz)(oe,t=>t.RevenusLocationsEspLocPerte),Xt=(0,E.Mz)(v_,Gn),$_=(0,E.Mz)(xt,t=>t.reduce((i,_)=>{var o;return i+(null!==(o=+_.Montant)&&void 0!==o?o:0)},0)),G_=(0,E.Mz)(Xt,t=>t.reduce((i,_)=>{var o;return i+(null!==(o=+_.Montant)&&void 0!==o?o:0)},0)),r_=(0,E.Mz)($_,G_,(t,i)=>t-i),U_=(0,E.Mz)(r_,c_,(t,i)=>t-i),yn=(0,E.Mz)(oe,t=>t.Informations),It=(0,E.Mz)(oe,t=>t.Informations.DateReference),C_=(0,E.Mz)(oe,t=>t.Informations.DateExercice),Le=(0,E.Mz)(fe,t=>t.EspacesLocatisFormulaire.Validation),Vt=(0,E.Mz)(Le,t=>t.EspacesLocatifsResidentielsSectionValidation),kt=(0,E.Mz)(Le,t=>t.EspacesLocatifsNonResidentielsSectionValidation),jt=(0,E.Mz)(Le,t=>t.RevenusLocationsEspLocSectionValidation),Rt=(0,E.Mz)(Le,t=>t.FraisExploitationsEspLocSectionValidation),xn=(0,E.Mz)(Le,t=>t.InformationsSupplementairesSectionValidation),P_=(0,E.Mz)(Le,t=>t.AttestationSectionValidation),Xn=(0,E.Mz)(Le,t=>t.AttachementsSectionValidation),y_=(0,E.Mz)(fe,t=>t.EspacesLocatisFormulaire.Data.Attachements);var x_=S(70152),Vn=S(53993),y=S(96354),u_=S(25558),d_=S(99437),_e=S(67376),e=S(54438),O_=S(7673),X_=S(93948);let V_=(()=>{var t;class i{constructor(){this.actions$=(0,e.WQX)(v.En),this.proprieteService=(0,e.WQX)(X_.K),this.store=(0,e.WQX)(E.il),this.delayTimer=3e3,this.espacesLocatifsResidentielsChanged$=(0,v.EH)(()=>this.actions$.pipe((0,v.gp)(z,st,Gt,ue,Je,Ut,ht,bt,vt,$t,e_,t_,Et,Ke,lt,ut,dt,pt,Tt,o_,Ot,Qe,yt),(0,x_.B)(this.delayTimer),(0,Vn.E)(this.store.select(oe),this.store.select(l_),this.store.select(S_),this.store.select(Nt),this.store.select(xt),this.store.select(Xt),this.store.select(Le)),(0,y.T)(o=>{const n=(0,_e.cloneDeep)(o[1]);return n.EspacesLocatifsResidentiels=o[2],n.EspacesLocatifsNonResidentiels=o[3],n.FraisExploitationsEspLocSection.FraisExploitationsEspLoc=o[4],n.RevenusLocationsEspLocRevenu=o[5],n.RevenusLocationsEspLocPerte=o[6],{numeroId:o[1].Informations.numeroId,formData:n,formState:o[7]}}),(0,u_.n)(({numeroId:o,formData:n,formState:a})=>this.proprieteService.updateFormulaireReponses(o,n,a)),(0,y.T)(()=>Pt()),(0,d_.W)(()=>(0,O_.of)(Ft())))),this.updateEspaceLocatifFormStatus$=(0,v.EH)(()=>this.actions$.pipe((0,v.gp)(ot),(0,x_.B)(this.delayTimer),(0,y.T)(o=>o.payload),(0,u_.n)(o=>this.proprieteService.completeFormulaire(o)),(0,y.T)(()=>Ne()),(0,d_.W)(()=>(0,O_.of)(Ie()))))}}return(t=i).\u0275fac=function(o){return new(o||t)},t.\u0275prov=e.jDH({token:t,factory:t.\u0275fac}),i})();var G=S(64075);const kn=(0,E.vy)(te.EspacesLocatisFormulaire.Data.Informations,(0,E.on)(Q,(t,{payload:i})=>i),(0,E.on)(de,(t,{payload:i})=>Object.assign({},t,{ChoixMethodeRemplir:i})),(0,E.on)(D,(t,{payload:i})=>Object.assign({},t,{ChoixMethodeDocument:i}))),jn=(0,E.vy)(te.EspacesLocatisFormulaire.Data.FraisExploitationsEspLocSection.FraisExploitationsEspLoc,(0,E.on)(Oe,(t,{payload:i})=>Lt.setAll(i,t)),(0,E.on)(ht,(t,{payload:i})=>Lt.updateOne({id:i.id,changes:i},t))),Bn=(0,E.vy)(te.EspacesLocatisFormulaire.Data.FraisExploitationsEspLocSection.FraisExploitationEspLocInformations,(0,E.on)(pe,(t,{payload:i})=>i),(0,E.on)(bt,(t,{payload:i})=>i)),Yn=(0,E.vy)(te.EspacesLocatisFormulaire.Data.RevenusLocationsEspLocRevenu,(0,E.on)(Z,(t,{payload:i})=>At.setAll(i,t)),(0,E.on)(vt,(t,{payload:i})=>At.updateOne({id:i.id,changes:i},t))),zn=(0,E.vy)(te.EspacesLocatisFormulaire.Data.RevenusLocationsEspLocPerte,(0,E.on)(Re,(t,{payload:i})=>mt.setAll(i,t)),(0,E.on)($t,(t,{payload:i})=>mt.updateOne({id:i.id,changes:i},t))),Hn=(0,E.vy)(te.EspacesLocatisFormulaire.Data.EspacesLocatifsResidentiels,(0,E.on)(We,(t,{payload:i})=>Me.setAll(i,t)),(0,E.on)(z,(t,{payload:i})=>Me.addOne(i,t)),(0,E.on)(st,(t,{payload:i})=>Me.updateOne({id:i.id,changes:i},t)),(0,E.on)(e_,(t,{payload:i})=>{const _=(0,_e.cloneDeep)(i);return _.id=(0,G.SiN)(),Me.addOne(_,t)}),(0,E.on)(Gt,(t,{payload:i})=>Me.removeOne(i.id,t))),wn=(0,E.vy)(te.EspacesLocatisFormulaire.Data.EspacesLocatifsNonResidentiels,(0,E.on)(ee,(t,{payload:i})=>ge.setAll(i,t)),(0,E.on)(ue,(t,{payload:i})=>ge.addOne(i,t)),(0,E.on)(Je,(t,{payload:i})=>ge.updateOne({id:i.id,changes:i},t)),(0,E.on)(t_,(t,{payload:i})=>{const _=(0,_e.cloneDeep)(i);return _.id=(0,G.SiN)(),ge.addOne(_,t)}),(0,E.on)(Ut,(t,{payload:i})=>ge.removeOne(i.id,t))),qn=(0,E.vy)(te.EspacesLocatisFormulaire.Data.InformationsSupplementaires,(0,E.on)(at,(t,{payload:i})=>i),(0,E.on)(Et,(t,{payload:i})=>i)),Wn=(0,E.vy)(te.EspacesLocatisFormulaire.Data.Attestation,(0,E.on)(q,(t,{payload:i})=>i),(0,E.on)(Ke,(t,{payload:i})=>i)),Jn=(0,E.vy)(te.EspacesLocatisFormulaire.Validation,(0,E.on)(__,(t,{payload:i})=>Object.assign({},t,{EspacesLocatifsResidentielsSectionValidation:i})),(0,E.on)(ut,(t,{payload:i})=>Object.assign({},t,{EspacesLocatifsResidentielsSectionValidation:i})),(0,E.on)(n_,(t,{payload:i})=>Object.assign({},t,{EspacesLocatifsNonResidentielsSectionValidation:i})),(0,E.on)(dt,(t,{payload:i})=>Object.assign({},t,{EspacesLocatifsNonResidentielsSectionValidation:i})),(0,E.on)(s_,(t,{payload:i})=>Object.assign({},t,{FraisExploitationsEspLocSectionValidation:i})),(0,E.on)(pt,(t,{payload:i})=>Object.assign({},t,{FraisExploitationsEspLocSectionValidation:i})),(0,E.on)(E_,(t,{payload:i})=>Object.assign({},t,{RevenusLocationsEspLocSectionValidation:i})),(0,E.on)(Tt,(t,{payload:i})=>Object.assign({},t,{RevenusLocationsEspLocSectionValidation:i})),(0,E.on)(i_,(t,{payload:i})=>Object.assign({},t,{InformationsSupplementairesSectionValidation:i})),(0,E.on)(o_,(t,{payload:i})=>Object.assign({},t,{InformationsSupplementairesSectionValidation:i})),(0,E.on)(a_,(t,{payload:i})=>Object.assign({},t,{AttestationSectionValidation:i})),(0,E.on)(Ot,(t,{payload:i})=>Object.assign({},t,{AttestationSectionValidation:i})),(0,E.on)(Qe,(t,{payload:i})=>{const _=(0,_e.cloneDeep)(t);return _.AttachementsSectionValidation=i,_})),Kn=(0,E.vy)(te.EspacesLocatisFormulaire.Data.Attachements,(0,E.on)(lt,(t,{payload:i})=>
1i)),ai={EspacesLocatisFormulaire:(0,E.HY)({Data:(0,E.HY)({Informations:kn,EspacesLocatifsResidentiels:function Qn(t,i){return Hn(t,i)},EspacesLocatifsNonResidentiels:function Zn(t,i){return wn(t,i)},FraisExploitationsEspLocSection:(0,E.HY)({FraisExploitationsEspLoc:function _i(t,i){return jn(t,i)},FraisExploitationEspLocInformations:Bn}),RevenusLocationsEspLocRevenu:function ii(t,i){return Yn(t,i)},RevenusLocationsEspLocPerte:function ni(t,i){return zn(t,i)},InformationsSupplementaires:function ei(t,i){return qn(t,i)},Attestation:function ti(t,i){return Wn(t,i)},Attachements:function oi(t,i){return Kn(t,i)}}),Validation:Jn})};var p_=S(88974);let si=(()=>{var t;class i{}return(t=i).\u0275fac=function(o){return new(o||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-espaces-locatifs"]],decls:1,vars:0,template:function(o,n){1&o&&e.nrm(0,"ion-router-outlet")},dependencies:[p_.Rg],encapsulation:2}),i})();var Ei=S(33518),Ze=S(51188),Si=S(88141),ri=S(34180),Ae=S(49823),De=S(35052),s=S(89417),Ci=S(21413),U=S(89079),St=S(96697),Pi=S(23294),ui=S(28528);let di=(()=>{var t;class i{constructor(){this.store=(0,e.WQX)(E.il),this.formBuilder=(0,e.WQX)(s.ok),this.activatedRoute=(0,e.WQX)(Ze.nX),this.destroyRef=(0,e.WQX)(e.abz),this.formReady=(0,e.CGW)(),this.haveDeclaredEvent=(0,e.CGW)(),this.removeFileSubject=new Ci.B,this.uploadPath="_propriete/espaces-locatifs/documents"}ngOnInit(){const o=Number(this.activatedRoute.snapshot.params.numeroId);this.uploadPath=`${this.uploadPath}/${o}`,this.initForm(),this.store.select(y_).pipe((0,St.s)(1)).subscribe({next:n=>{this.attachementsForm.get("Attachements").patchValue(n,{emitEvent:!1,onlySelf:!0}),(null==n?void 0:n.length)>0&&this.store.dispatch(Qe({payload:{touched:!0,valid:this.attachementsForm.valid}}))}}),this.store.select(fe).pipe((0,St.s)(1)).subscribe({next:n=>{var a;null!==(a=n.EspacesLocatisFormulaire.Validation)&&void 0!==a&&null!==(a=a.AttachementsSectionValidation)&&void 0!==a&&a.touched&&this.attachementsForm.markAllAsTouched()}})}initForm(){this.attachementsForm=this.formBuilder.group({Attachements:[]}),this.attachementsForm.valueChanges.pipe((0,Pi.F)(),(0,U.pQ)(this.destroyRef)).subscribe({next:o=>{this.store.dispatch(lt({payload:o.Attachements})),this.store.dispatch(Qe({payload:{touched:!0,valid:this.attachementsForm.valid}}))}})}haveDeclaredChanged(o){this.haveDeclaredEvent.emit(o.checked)}removeFile(o){this.removeFileSubject.next(o)}}return(t=i).\u0275fac=function(o){return new(o||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-espaces-locatifs-attachements"]],outputs:{formReady:"formReady",haveDeclaredEvent:"haveDeclaredEvent"},decls:8,vars:6,consts:()=>{let _,o;return _="Informations suppl\xE9mentaires",o="Ajoutez ci-dessous des documents suppl\xE9mentaires pour votre auto-d\xE9claration si n\xE9cessaire :",[_,o,[1,"form-section-content"],["connectForm","attachementsForm",3,"formGroup"],[1,"form-section","field-padding-fix"],["multiple","true","formControlName","Attachements",1,"primary-file-upload",3,"isPublic","removeFileEvent","uploadPath","compressImages","maxFiles"]]},template:function(o,n){1&o&&(e.j41(0,"div",2)(1,"form",3)(2,"h1"),e.pXf(3,0),e.k0s(),e.j41(4,"p"),e.pXf(5,1),e.k0s(),e.j41(6,"section",4),e.nrm(7,"vplus-file-uploader",5),e.k0s()()()),2&o&&(e.R7$(),e.Y8G("formGroup",n.attachementsForm),e.R7$(6),e.Y8G("isPublic",!0)("removeFileEvent",n.removeFileSubject.asObservable())("uploadPath",n.uploadPath)("compressImages",!0)("maxFiles",5))},dependencies:[s.qT,s.BC,s.cb,s.j4,s.JD,ui.e],encapsulation:2}),i})();var Oi=S(72609),$=S(92995),k_=S(11743);function pi(t,i){return _=>{if(_.controls[t].value!==_.controls[i].value)return _.controls[i].setErrors({asdf:!0}),{mismatchedFields:!0}}}var ae=S(34006),Ti=S(2578),et=S(59042),x=S(32102),ct=S(82765),se=S(88834),T_=S(75574),tt=S(74769),fi=S(98239),Li=S(32430);const Ai=()=>["LastName"],mi=()=>["FirstName"],Ni=()=>["Fonction"],Ii=()=>["Courriel"],j_=()=>["Telephone"],Ri=()=>["Poste"];function Mi(t,i){1&t&&(e.j41(0,"mat-error"),e.pXf(1,1),e.k0s())}function gi(t,i){1&t&&(e.j41(0,"mat-error"),e.pXf(1,2),e.k0s())}function Di(t,i){1&t&&(e.j41(0,"mat-error"),e.pXf(1,3),e.k0s())}function Fi(t,i){1&t&&(e.j41(0,"mat-error"),e.pXf(1,4),e.k0s())}function hi(t,i){1&t&&(e.j41(0,"mat-error",18),e.pXf(1,5),e.k0s())}function bi(t,i){1&t&&(e.j41(0,"mat-error"),e.pXf(1,6),e.k0s())}function vi(t,i){1&t&&(e.j41(0,"mat-error"),e.pXf(1,7),e.k0s())}function $i(t,i){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 Gi=(()=>{var t;class i{constructor(){this.actions$=(0,e.WQX)(v.En),this.appConfig=(0,e.WQX)(De.o),this.backendService=(0,e.WQX)(Oi.m3),this.destroyRef=(0,e.WQX)(e.abz),this.dialog=(0,e.WQX)(ae.bZ),this.formBuilder=(0,e.WQX)(s.ok),this.route=(0,e.WQX)(Ze.nX),this.store=(0,e.WQX)(E.il),this.isWorking=(0,e.geq)(!1),this.submitFormEvent=ne
1w e.bkB,this.updateAttestationAction=Ke,this.telechargementError="Afin de pouvoir t\xE9l\xE9charger la d\xE9claration, toutes les sections du formulaire doivent \xEAtre valides.",this.telechargementFormulaireIncompletContent=`\n\t<div class="help-modal-with-img">\n\t<div class="align-center padding-bottom">\n\t\t\t<h2><i class="icon-invalid small-margin-right"></i>Formulaire incomplet</h2>\n\t\t\t</div>\n\t\t\t<section class="help-modal-section">\n\t\t\t\t<p>${this.telechargementError}</p>\n\t\t\t</section>\n  </div>\n\t`}ngOnInit(){this.formToken=Number(this.route.snapshot.paramMap.get("numeroId")),this.store.select(Ae.selectCurrentUser).pipe((0,U.pQ)(this.destroyRef)).subscribe(o=>{this.currentUser=o}),this.appConfig.appConfig.paramList.autoDeclarationHelpMsg&&(this.textDeclarationAttestation=this.appConfig.appConfig.paramList.autoDeclarationDeclaCitoyenAttestation),this.store.select(fe).pipe((0,U.pQ)(this.destroyRef)).subscribe(o=>{this.formEspacesLocatifsValidationState=o.EspacesLocatisFormulaire.Validation}),this.attestationForm=this.formBuilder.group({HaveDeclared:[!1],FirstName:["",s.k0.required],LastName:["",s.k0.required],Fonction:["",s.k0.required],Courriel:["",s.k0.required],CourrielConfirmation:["",s.k0.required],Telephone:["",[s.k0.required,s.k0.pattern(this.appConfig.appConfig.telPattern)]],Poste:["",s.k0.maxLength(7)]},{validators:pi("Courriel","CourrielConfirmation")}),this.attestation$=this.store.select(D_)}ngAfterViewInit(){this.formEspacesLocatifsValidationState.AttestationSectionValidation.touched||(this.appConfig.appConfig.useOAuth||(this.attestationForm.controls.LastName.patchValue(this.currentUser.nom),this.attestationForm.controls.FirstName.patchValue(this.currentUser.prenom)),this.attestationForm.controls.Courriel.patchValue(this.currentUser.courriel),this.attestationForm.controls.Telephone.patchValue(this.currentUser.telephone))}formControlOnBlur(){this.store.dispatch(Ot({payload:{touched:!0,valid:this.attestationForm.valid}}))}validateAndMarkAsTouchedAttestationForm(){this.attestationForm.get(["FirstName"]).updateValueAndValidity(),this.attestationForm.get(["FirstName"]).markAsTouched(),this.attestationForm.get(["LastName"]).updateValueAndValidity(),this.attestationForm.get(["LastName"]).markAsTouched(),this.attestationForm.get(["Fonction"]).updateValueAndValidity(),this.attestationForm.get(["Fonction"]).markAsTouched(),this.attestationForm.get(["Courriel"]).updateValueAndValidity(),this.attestationForm.get(["Courriel"]).markAsTouched(),this.attestationForm.get(["CourrielConfirmation"]).updateValueAndValidity(),this.attestationForm.get(["CourrielConfirmation"]).markAsTouched(),this.attestationForm.get(["Telephone"]).updateValueAndValidity(),this.attestationForm.get(["Telephone"]).markAsTouched(),this.store.dispatch(Ot({payload:{touched:!0,valid:this.attestationForm.valid}}))}formIsValid(){return[this.formEspacesLocatifsValidationState.EspacesLocatifsResidentielsSectionValidation.valid,this.formEspacesLocatifsValidationState.EspacesLocatifsNonResidentielsSectionValidation.valid,this.formEspacesLocatifsValidationState.FraisExploitationsEspLocSectionValidation.valid,this.formEspacesLocatifsValidationState.RevenusLocationsEspLocSectionValidation.valid,this.formEspacesLocatifsValidationState.AttachementsSectionValidation.valid,this.formEspacesLocatifsValidationState.AttestationSectionValidation.valid].every(o=>!!o)}telechargerDeclaration(){this.isWorking()||(this.isWorking.set(!0),this.validateAndMarkAsTouchedAttestationForm(),this.formIsValid()?(this.store.dispatch(yt()),this.actions$.pipe((0,v.gp)(Pt,Ft),(0,St.s)(1),(0,u_.n)(()=>this.backendService.getPDF(`/forms/pdf/apercu/${this.formToken}`)),(0,U.pQ)(this.destroyRef)).subscribe({next:o=>{(0,Ti.saveAs)(o,"declaration.pdf"),this.isWorking.set(!1)},error:()=>{this.store.dispatch(new Ae.Actions.ShowSnackBar("\xc9chec lors de la g\xe9n\xe9ration de l'aper\xe7u. Veuillez r\xe9essayer.",Ae.EnumSnackBarType.Echec)),this.isWorking.set(!1)}})):(this.dialog.open(k_.F,{width:$.Uq.Large}).componentInstance.htmlContent=this.telechargementFormulaireIncompletContent,this.isWorking.set(!1)))}
1submitForm(){this.isWorking()||(this.isWorking.set(!0),this.submitFormEvent.emit(!0))}}return(t=i).\u0275fac=function(o){return new(o||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-attestation-espaces-locatifs"]],inputs:{isWorking:[e.Mj6.SignalBased,"isWorking"]},outputs:{isWorking:"isWorkingChange",submitFormEvent:"submitFormEvent"},decls:46,vars:25,consts:()=>{let _,o,n,a,l,c,O,A,m,T,g,F,h,L,I;return _="Nom de famille",o="Pr\xE9nom",n="Fonction",a="Courriel",l="Confirmer",c="T\xE9l\xE9phone (jour)",O="Poste (facultatif)",A="Attestation",m="Champ obligatoire",T="Champ obligatoire",g="Champ obligatoire",F="Champ invalide",h="Les courriels saisis ne sont pas identiques",L="Champ obligatoire",I="Num\xE9ro de t\xE9l\xE9phone invalide",[A,m,T,g,F,h,L,I,[1,"form-section-content"],[3,"formGroup","vplusSyncStore","vplusSyncAction"],[1,"form-section"],[1,"large-field","form-margin-right"],["matInput","","formControlName","LastName","placeholder",_,3,"blur"],[1,"large-field"],["matInput","","formControlName","FirstName","placeholder",o,3,"blur"],["matInput","","formControlName","Fonction","placeholder",n,3,"blur"],["type","email","matInput","","formControlName","Courriel","placeholder",a,3,"blur","preventCopyPasteDirective"],["type","email","matInput","","formControlName","CourrielConfirmation","placeholder",l,3,"blur","preventCopyPasteDirective"],[1,"mat-error"],["type","tel","autocomplete","disabled","matInput","","maskTelephoneEvents","","formControlName","Telephone","placeholder",c,3,"blur","imask","unmask"],["nombreOnly","","matInput","","type","text","autocomplete","off","formControlName","Poste","placeholder",O,3,"blur"],[1,"form-section","padding-bottom"],[1,"big-checkbox-container"],["formControlName","HaveDeclared"],[1,"checkbox-big-label"],[1,"spacing-top","space-start"],["mat-stroked-button","",1,"custom-button-standard","custom-button-stroked","margin-top",2,"max-width","fit-content",3,"click","disabled"],[1,"icon-download"],["mat-raised-button","",1,"custom-button-standard","custom-button-full","margin-top",2,"max-width","fit-content",3,"click","disabled"],[1,"icon-send"]]},template:function(o,n){1&o&&(e.j41(0,"div",8)(1,"form",9),e.nI1(2,"async"),e.j41(3,"h1"),e.pXf(4,0),e.k0s(),e.nrm(5,"br"),e.j41(6,"section",10)(7,"mat-form-field",11)(8,"input",12),e.bIt("blur",function(){return n.formControlOnBlur()}),e.k0s(),e.DNE(9,Mi,2,0,"mat-error"),e.k0s(),e.j41(10,"mat-form-field",13)(11,"input",14),e.bIt("blur",function(){return n.formControlOnBlur()}),e.k0s(),e.DNE(12,gi,2,0,"mat-error"),e.k0s()(),e.j41(13,"section",10)(14,"mat-form-field",13)(15,"input",15),e.bIt("blur",function(){return n.formControlOnBlur()}),e.k0s(),e.DNE(16,Di,2,0,"mat-error"),e.k0s()(),e.j41(17,"section",10)(18,"mat-form-field",11)(19,"input",16),e.bIt("blur",function(){return n.formControlOnBlur()}),e.k0s(),e.DNE(20,Fi,2,0,"mat-error"),e.k0s(),e.j41(21,"mat-form-field",13)(22,"input",17),e.bIt("blur",function(){return n.formControlOnBlur()}),e.k0s(),e.DNE(23,hi,2,0,"mat-error",18),e.k0s()(),e.j41(24,"section",10)(25,"mat-form-field",11)(26,"input",19),e.bIt("blur",function(){return n.formControlOnBlur()}),e.k0s(),e.DNE(27,bi,2,0,"mat-error")(28,vi,2,0,"mat-error"),e.k0s(),e.j41(29,"mat-form-field",13)(30,"input",20),e.bIt("blur",function(){return n.formControlOnBlur()}),e.k0s(),e.DNE(31,$i,2,0,"mat-error"),e.k0s()(),e.j41(32,"section",21)(33,"div",22),e.nrm(34,"mat-checkbox",23),e.j41(35,"span",24),e.EFF(36),e.k0s()(),e.j41(37,"div",25)(38,"a",26),e.bIt("click",function(){return n.telechargerDeclaration()}),e.nrm(39,"i",27),e.j41(40,"span"),e.EFF(41,"T\xe9l\xe9charger le brouillon"),e.k0s()(),e.j41(42,"a",28),e.bIt("click",function(){return n.submitForm()}),e.nrm(43,"i",29),e.j41(44,"span"),e.EFF(45,"Envoyer"),e.k0s()()()()()()),2&o&&(e.R7$(),e.Y8G("formGroup",n.attestationForm)("vplusSyncStore",e.bMT(2,16,n.attestation$))("vplusSyncAction",n.updateAttestationAction),e.R7$(8),e.vxM(9,n.attestationForm.get(e.lJ4(18,Ai)).invalid?9:-1),e.R7$(3),e.vxM(12,n.attestationForm.get(e.lJ4(19,mi)).invalid?12:-1),e.R7$(4),e.vxM(16,n.attestationForm.get(e.lJ4(20,Ni)).invalid?16:-1),e.R7$(4),e.vxM(20,n.attestationForm.get(e.lJ4(21,Ii)).invalid?20:-1),e.R7$(3),e.vxM(23,null!=n.attestationForm.errors&&n.attestationForm.errors.mismatchedFields?23:-1),e.R7$(3),e.Y8G("imask",n.appConfig.appConfig.telMaskObjet)("unmask",!0),e.R7$(),e.vxM(27,n.attestationForm.get(e.lJ4(22,j_)).hasError("required")?27:-1),e.R7$(),e.vxM(28,n.attestationForm.get(e.lJ4(23,j_)).hasError("pattern")?28:-1),e.R7$(3),e.vxM(31,n.attestationForm.get(e.lJ4(24,Ri)).invalid?31:-1),e.R7$(5),e.JRh(n.textDeclarationAttestation),e.R7$(2),e.Y8G("disabled",n.isWorking()),e.R7$(4),e.Y8G("disabled",n.isWorking()))},dependencies:[et.fg,x.rl,x.TL,ct.So,se.It,s.qT,s.me,s.BC,s.cb,s.j4,s.JD,T_.Q,tt.p,fi.e,G.xGI,Li.Zq,b.Jj],styles:[".space-start[_ngcontent-%COMP%]{display:flex;justify-content:space-start}.space-start[_ngcontent-%COMP%]   a[_ngcontent-%COMP%] + a[_ngcontent-%COMP%]{margin-left:1em}"]}),i})();var Fe=S(75263),H=S(86600),Ui=S(97586),d=S.n(Ui),Bt=S(18359),B_=S(84412),Mt=S(44822);const he={"Conditions normales":{value:"3B52CCFA-5514-4143-B697-DD897C4981EB",nameValue:"ConditionsNormales",viewValue:"Locataire"},Proprietaire:{value:"B0349FA8-BD80-4C36-B329-4B1518EAABE4",nameValue:"Proprietaire",viewValue:"Propri\xe9taire"},Concierge:{value:"433441DC-1EA8-4D9A-8E02-E03578319F23",nameValue:"Concierge",viewValue:"Concierge"},Vacant:{value:"74FEF95E-4756-4923-B806-1AAAB0A0EBC7",nameValue:"Vacant",viewValue:"Vacant"}}
1,Y_={0:{value:"0",nameValue:"0",viewValue:"Chambre"},1:{value:"1",nameValue:"1",viewValue:"1 1/2"},2:{value:"2",nameValue:"2",viewValue:"2 1/2"},3:{value:"3",nameValue:"3",viewValue:"3 1/2"},4:{value:"4",nameValue:"4",viewValue:"4 1/2"},5:{value:"5",nameValue:"5",viewValue:"5 1/2"},6:{value:"6",nameValue:"6",viewValue:"6 1/2"},7:{value:"7",nameValue:"7",viewValue:"7 1/2"},8:{value:"8",nameValue:"8",viewValue:"8 1/2"},9:{value:"9",nameValue:"9",viewValue:"9 1/2"},10:{value:"10",nameValue:"10",viewValue:"10 et plus"}},z_={Atelier:{value:"AE26F6F0-38F7-40E7-9B72-A9F4FAF6FA38",nameValue:"Atelier",viewValue:"Atelier / Garage"},Bureau:{value:"5D86526B-E65E-490B-8742-B7D2091C2736",nameValue:"Bureau",viewValue:"Bureau"},Commerce:{value:"4A22A07D-A7F5-4887-9CAB-FA650045CBDF",nameValue:"Commerce",viewValue:"Commerce"},Entrepot:{value:"B892F268-600D-4261-9C95-EAB1AE7B98AF",nameValue:"Entrepot",viewValue:"Entrep\xf4t"},Industriel:{value:"2582EA06-FC45-435A-BC06-3D978D86911C",nameValue:"Industriel",viewValue:"Industriel"},Vide:{value:"2582EA06-FC45-435A-BC06-3D978D86911C",nameValue:"Vide",viewValue:""}},yi={TaxeFonciere:{value:"8B79196F-35FC-49C9-B8B2-7AF1EF7C3247",nameValue:"TaxeFonciere",viewValue:"Taxes fonci\xe8res",htmlValue:"Taxes fonci\xe8res"},TaxeScolaire:{value:"AAD18743-4E66-4AB1-A5CF-9EB8B21AFA94",nameValue:"TaxeScolaire",viewValue:"Taxes scolaires",htmlValue:"Taxes scolaires"},TarifEau:{value:"2431E6ED-0296-447B-98F3-20E67CAB61EF",nameValue:"TarifEau",viewValue:"Tarification pour l'eau (si compteur)",htmlValue:"Tarification pour l'eau (si compteur)"},Assurance:{value:"36C432CF-7311-410C-98C1-0D6ABE76141E",nameValue:"Assurance",viewValue:"Assurances",htmlValue:"Assurances"},Electricite:{value:"9F67957A-663A-4112-BDD3-E59A4630C896",nameValue:"Electricite",viewValue:"\xc9lectricit\xe9",htmlValue:"\xc9lectricit\xe9"},ChauffageHuile:{value:"31A6C65E-2255-41F4-ABA3-0DCFE191AF5D",nameValue:"ChauffageHuile",viewValue:"Chauffage - huile",htmlValue:"Chauffage - huile"},ChauffageGaz:{value:"8D62F0F5-4221-4061-BA5C-8B8E5F150457",nameValue:"ChauffageGaz",viewValue:"Chauffage - Gaz",htmlValue:"Chauffage - Gaz"},ChauffageElectricite:{value:"3888646F-7653-4C6E-9CC0-FC898F43783E",nameValue:"ChauffageElectricite",viewValue:"Chauffage - \xc9lectricit\xe9",htmlValue:"Chauffage - \xc9lectricit\xe9"},EntretienReparation:{value:"AE2EFB72-AAE6-4B23-8679-9754E9590C70",nameValue:"EntretienReparation",viewValue:"Entretien et r\xe9parations courantes",htmlValue:"Entretien et r\xe9parations courantes"},Deneigement:{value:"989CAD1B-4D08-4717-BC5C-5D7470413E63",nameValue:"Deneigement",viewValue:"D\xe9neigement et entretien paysager",htmlValue:"D\xe9neigement et entretien paysager"},ContenantSanitaire:{value:"CD2497A7-3153-46AB-8D69-084C3DCF245A",nameValue:"ContenantSanitaire",viewValue:"Contenant sanitaire",htmlValue:"Contenant sanitaire"},HonoraireProfessionnel:{value:"D52E27D7-FAB8-4EDD-84C7-C888920836ED",nameValue:"HonoraireProfessionnel",viewValue:"Honoraires professionnels",htmlValue:"Honoraires professionnels"},ConciergeSalaire:{value:"73253BB4-F4A1-465F-9C53-B66266A034E1",nameValue:"ConciergeSalaire",viewValue:"Concierge - Salaire",htmlValue:"Concierge - Salaire"},ConciergeLoyer:{value:"7F3222C7-C8A0-416E-8F74-47732F45F392",nameValue:"ConciergeLoyer",viewValue:"Concierge - R\xe9duction de loyer",htmlValue:"Concierge - R\xe9duction de loyer"},Nettoyage:{value:"C68C1956-2AE1-4834-8BB1-89498D1CA5D3",nameValue:"Nettoyage",viewValue:"Service de nettoyage",htmlValue:"Service de nettoyage"},Publicite:{value:"A0AE0E87-F670-4E11-B662-21EA1CB1453F",nameValue:"Publicite",viewValue:"Promotion publicit\xe9",htmlValue:"Promotion publicit\xe9"},Fourniture:{value:"0F3B010F-E5C1-43DB-87AC-965003B0A9CD",nameValue:"Fourniture",viewValue:"Fournitures et frais divers",htmlValue:"Fournitures et frais divers"},Gestion:{value:"7261608C-196C-4DAA-9B8C-7FA71E67DF10",nameValue:"Gestion",viewValue:"Frais de gestion",htmlValue:"Frais de gestion"},AutreFraisA:{value:"3BEEAC84-6194-491F-B145-2800D3A31455",nameValue:"AutreFraisA",viewValue:"Autres frais",htmlValue:"Autres frais"},AutreFraisB:{value:"DAB5174A-73C6-4779-8728-F7FA938C1400",nameValue:"AutreFraisB",viewValue:"Autres frais",htmlValue:"Autres frais"},AutreFraisC:{value:"DD22A63C-7072-44F5-A74D-840554B47DF7",nameValue:"AutreFraisC",viewValue:"Autres frais",htmlValue:"Autres frais"}}
1,xi={LoyerBase:{value:"0FEB2528-06A0-4EF6-9DDD-E9613A65693C",nameValue:"LoyerBase",type:"REVENU",viewValue:"Loyers de base (Occupation \xe0 100%)",htmlValue:"Loyers de base <strong>(Occupation \xe0 100%)</strong>"},LoyerAdd:{value:"ADA39333-0B13-43EE-B833-6012541BAD29",nameValue:"LoyerAdd",type:"REVENU",viewValue:"Loyers additionnels (D\xe9penses r\xe9cup\xe9rables des loyers non r\xe9sidentiel)",htmlValue:"Loyers additionnels <strong>(D\xe9penses r\xe9cup\xe9rables des loyers non r\xe9sidentiel)</strong>"},StatExterieur:{value:"53F66CD1-1570-4FD2-AFA9-F0F558C5B4A2",nameValue:"StatExterieur",type:"REVENU",viewValue:"Stationnement ext\xe9rieur",htmlValue:"Stationnement ext\xe9rieur"},StatInterieur:{value:"319BA140-71E8-48B2-8AE9-5D3F1A181175",nameValue:"StatInterieur",type:"REVENU",viewValue:"Stationnement int\xe9rieur",htmlValue:"Stationnement int\xe9rieur"},Buanderie:{value:"6A8A091A-F887-4BB9-9ACB-D7C4B8E9D97B",nameValue:"Buanderie",type:"REVENU",viewValue:"Buanderie",htmlValue:"Buanderie"},AutreRevenuA:{value:"875D13C2-E64F-4464-99D8-2102B0B01919",nameValue:"AutreRevenuA",type:"REVENU",viewValue:"Autres revenus",htmlValue:"Autres revenus"},AutreRevenuB:{value:"74005F3E-AE76-40D9-AD34-5FAC7CEC57CF",nameValue:"AutreRevenuB",type:"REVENU",viewValue:"Autres revenus",htmlValue:"Autres revenus"},AutreRevenuC:{value:"79EE6D7B-F5A4-497F-B62C-B192B29E3501",nameValue:"AutreRevenuC",type:"REVENU",viewValue:"Autres revenus",htmlValue:"Autres revenus"},PerteVacance:{value:"D68F134B-C44E-4BCC-A729-22F65B1D155A",nameValue:"PerteVacance",type:"PERTE",viewValue:"Pertes d'inoccupation (vacances)",htmlValue:"Pertes d'inoccupation (vacances)"},PerteMauvaiseCreance:{value:"967BA599-1243-4839-AE62-4135D65B2862",nameValue:"PerteMauvaiseCreance",type:"PERTE",viewValue:"Pertes de mauvaises cr\xe9ances",htmlValue:"Pertes de mauvaises cr\xe9ances"},PerteGratuiteA:{value:"CD18B382-DCC9-4A2D-B150-C71FE9C55AFE",nameValue:"PerteGratuiteA",type:"PERTE",viewValue:"Pertes gratuit\xe9s et autres incitatifs",htmlValue:"Pertes gratuit\xe9s et autres incitatifs"},PerteGratuiteB:{value:"41B071F7-50F8-43C0-8EB8-6705257B8DBA",nameValue:"PerteGratuiteB",type:"PERTE",viewValue:"Pertes gratuit\xe9s et autres incitatifs",htmlValue:"Pertes gratuit\xe9s et autres incitatifs"},PerteGratuiteC:{value:"FB7B885A-93A8-4E29-8AC3-B6CF25811F3F",nameValue:"PerteGratuiteC",type:"PERTE",viewValue:"Pertes gratuit\xe9s et autres incitatifs",htmlValue:"Pertes gratuit\xe9s et autres incitatifs"}},Yt={Dollar:{value:"BD9108F1-B3C7-4661-A23B-7499E67CC53C",nameValue:"Dollar",viewValue:"$"},DollarParMetreCarre:{value:"C787F92F-BD3A-443C-A2BE-2F3D55D515C3",nameValue:"DollarParMetreCarre",viewValue:"$ / m\xb2"},DollarParPiCarre:{value:"97138D6E-DB9A-4DB3-897F-72F2D09023BD",nameValue:"DollarParPiCarre",viewValue:"$ / pi\xb2"}},H__Dollar="BD9108F1-B3C7-4661-A23B-7499E67CC53C",be={MetreCarre:{value:"493A42B1-BB20-498C-A652-9507300A0675",nameValue:"MetreCarre",viewValue:"m\xb2"},PiCarre:{value:"02CEBB26-B30F-4977-B776-7089CA902268",nameValue:"PiCarre",viewValue:"pi\xb2"}},C={"":{value:null,viewValue:""},A:{value:"A",viewValue:"A"},B:{value:"B",viewValue:"B"},L:{value:"L",viewValue:"L"}};var zt=S(82798),ne=S(25084),Ht=S(86845),_t=S(84820);const Xi=()=>["NumeroEspLoc"],f_=()=>["SuperficieTotale"],Vi=()=>["DebutBail"],ki=()=>["FinBail"],ji=()=>["LoyerAnnuel"],Bi=()=>["LoyerAdditionnelAnnuel"],Yi=()=>["MontantAmenagement"],zi=()=>["UniteMesureLoyer"];function Hi(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG();e.R7$(),e.SpI(" ",_.getInvalidMessage("NumeroEspLoc"),"")}}function wi(t,i){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value),e.R7$(),e.SpI(" ",_.viewValue," ")}}function qi(t,i){if(1&t&&(e.j41(0,"mat-form-field",26)(1,"mat-select",48),e.DNE(2,wi,2,2,"mat-option",32),e.k0s()()),2&t){const _=e.XpG();e.R7$(2),e.Y8G("ngForOf",_.etageEnum)}}function Wi(t,i){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function Ji(t,i){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function Ki(t,i){if(1&t&&(e.j41(0,"mat-form-field",26)(1,"mat-select",50),e.DNE(2,Ji,2,2,"mat-option",32),e.nI1(3,"ObjectKeysPipe"),e.k0s()()),2&t){const _=e.XpG();e.R7$(2),e.Y8G("ngForOf",e.bMT(3,1,_.potentielOccupationEnum))}}function Qi(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG();e.R7$(),e.Lme(" Doit \xeatre entre ",_.espacesLocatifsNonResidentielsDialogForm.get(e.lJ4(2,f_)).errors.invalidRange.min.toFixed(1)," et ",_.espacesLocatifsNonResidentielsDialogForm.get(e.lJ4(3,f_)).errors.invalidRange.max.toFixed(1)," ")}}function Zi(t,i){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function eo(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG();e.R7$(),e.SpI(" ",_.getInvalidMessage("DebutBail"),"")}}function to(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG();e.R7$(),e.SpI(" ",_.getInvalidMessage("FinBail"),"")}}function _o(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG();e.R7$(),e.SpI(" ",_.getInvalidMessage("LoyerAnnuel"),"")}}function no(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG();e.R7$(),e.SpI(" ",_.getInvalidMessage("LoyerAdditionnelAnnuel")," ")}}function io(t,i){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function oo(t,i){1&t&&(e.j41(0,"mat-error"),e.pXf(1,7),e.k0s())}function ao(t,i){if(1&t&&(e.j41(0,"mat-form-field",26)(1,"mat-select",51),e.DNE(2,io,2,2,"mat-option",32),e.nI1(3,"ObjectKeysPipe"),e.k0s(),e.DNE(4,oo,2,0,"mat-error",29),e.k0s()),2&t){const _=e.XpG();e.R7$(2),e.Y8G("ngForOf",e.bMT(3,2,_.uniteMesureLoyerEnum)),e.R7$(2),e.Y8G("ngIf",_.espacesLocatifsNonResidentielsDialogForm.get(e.lJ4(4,zi)).invalid)}}function so(t,i){1&t&&(e.j41(0,"h2"),e.pXf(1,8),e.k0s())}function Eo(t,i){1&t&&(e.j41(0,"h2"),e.pXf(1,9),e.k0s())}function lo(t,i){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function So(t,i){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function co(t,i){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function ro(t,i){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function Co(t,i){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function Po(t,i){if(1&t&&(e.j41(0,"mat-form-field",26)(1,"mat-select",60),e.DNE(2,Co,2,2,"mat-option",32),e.nI1(3,"ObjectKeysPipe"),e.k0s()()),2&t){const _=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",e.bMT(3,1,_.typeServiceEnum))}}function uo(t,i){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function Oo(t,i){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function po(t,i){if(1&t&&(e.j41(0,"mat-form-field",26)(1,"mat-select",61),e.DNE(2,Oo,2,2,"mat-option",32),e.nI1(3,"ObjectKeysPipe"),e.k0s()()),2&t){const _=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",e.bMT(3,1,_.typeServiceEnum))}}function To(t,i){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function fo(t,i){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function Lo(t,i){if(1&t&&(e.j41(0,"mat-form-field",26)(1,"mat-select",62),e.DNE(2,fo,2,2,"mat-option",32),e.nI1(3,"ObjectKeysPipe"),e.k0s()()),2&t){const _=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",e.bMT(3,1,_.typeServiceEnum))}}function Ao(t,i){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function mo(t,i){if(1&t&&(e.j41(0,"mat-form-field",26)(1,"mat-select",63),e.DNE(2,Ao,2,2,"mat-option",32),e.nI1(3,"ObjectKeysPipe"),e.k0s()()),2&t){const _=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",e.bMT(3,1,_.typeServiceEnum))}}function No(t,i){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function Io(t,i){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function Ro(t,i){if(1&t&&(e.j41(0,"mat-form-field",26)(1,"mat-select",64),e.DNE(2,Io,2,2,"mat-option",32),e.nI1(3,"ObjectKeysPipe"),e.k0s()()),2&t){const _=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",e.bMT(3,1,_.typeServiceEnum))}}function Mo(t,i){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function go(t,i){if(1&t&&(e.j41(0,"mat-form-field",26)(1,"mat-select",65),e.DNE(2,Mo,2,2,"mat-option",32),e.nI1(3,"ObjectKeysPipe"),e.k0s()()),2&t){const _=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",e.bMT(3,1,_.typeServiceEnum))}}function Do(t,i){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function Fo(t,i){if(1&t&&(e.j41(0,"div")(1,"mat-form-field",26)(2,"mat-select",52),e.DNE(3,lo,2,2,"mat-option",32),e.nI1(4,"ObjectKeysPipe"),e.k0s()(),e.j41(5,"mat-form-field",26)(6,"mat-select",53),e.DNE(7,So,2,2,"mat-option",32),e.nI1(8,"ObjectKeysPipe"),e.k0s()(),e.j41(9,"mat-form-field",26)(10,"mat-select",54),e.DNE(11,co,2,2,"mat-option",32),e.nI1(12,"ObjectKeysPipe"),e.k0s()(),e.j41(13,"mat-form-field",26)(14,"mat-select",55),e.DNE(15,ro,2,2,"mat-option",32),e.nI1(16,"ObjectKeysPipe"),e.k0s()(),e.DNE(17,Po,4,3,"mat-form-field",30),e.j41(18,"mat-form-field",26)(19,"mat-select",56),e.DNE(20,uo,2,2,"mat-option",32),e.nI1(21,"ObjectKeysPipe"),e.k0s()(),e.DNE(22,po,4,3,"mat-form-field",30),e.j41(23,"mat-form-field",26)(24,"mat-select",57),e.DNE(25,To,2,2,"mat-option",32),e.nI1(26,"ObjectKeysPipe"),e.k0s()(),e.DNE(27,Lo,4,3,"mat-form-field",30)(28,mo,4,3,"mat-form-field",30),e.j41(29,"mat-form-field",26)(30,"mat-select",58),e.DNE(31,No,2,2,"mat-option",32),e.nI1(32,"ObjectKeysPipe"),e.k0s()(),e.DNE(33,Ro,4,3,"mat-form-field",30)(34,go,4,3,"mat-form-field",30),e.j41(35,"mat-form-field",26)(36,"mat-select",59),e.DNE(37,Do,2,2,"mat-option",32),e.nI1(38,"ObjectKeysPipe"),e.k0s()()()),2&t){const _=e.XpG();e.R7$(3),e.Y8G("ngForOf",e.bMT(4,14,_.typeServiceEnum)),e.R7$(4),e.Y8G("ngForOf",e.bMT(8,16,_.typeServiceEnum)),e.R7$(4),e.Y8G("ngForOf",e.bMT(12,18,_.typeServiceEnum)),e.R7$(4),e.Y8G("ngForOf",e.bMT(16,20,_.typeServiceEnum)),e.R7$(2),e.Y8G("ngIf",!_.gererVisibiliteColonneCDE),e.R7$(3),e.Y8G("ngForOf",e.bMT(21,22,_.typeServiceEnum)),e.R7$(2),e.Y8G("ngIf",!_.gererVisibiliteColonneCDE),e.R7$(3),e.Y8G("ngForOf",e.bMT(26,24,_.typeServiceEnum)),e.R7$(2),e.Y8G("ngIf",!_.gererVisibiliteColonneCDE),e.R7$(),e.Y8G("ngIf",!_.gererVisibiliteColonneCDE),e.R7$(3),e.Y8G("ngForOf",e.bMT(32,26,_.typeServiceEnum)),e.R7$(2),e.Y8G("ngIf",!_.gererVisibiliteColonneCDE),e.R7$(),e.Y8G("ngIf",!_.gererVisibiliteColonneCDE),e.R7$(3),e.Y8G("ngForOf",e.bMT(38,28,_.typeServiceEnum))}}function ho(t,i){1&t&&(e.j41(0,"mat-checkbox",80),e.pXf(1,18),e.k0s())}function bo(t,i){1&t&&(e.j41(0,"mat-checkbox",81),e.pXf(1,19),e.k0s())}function vo(t,i){1&t&&(e.j41(0,"mat-checkbox",82),e.pXf(1,20),e.k0s())}function $o(t,i){1&t&&(e.j41(0,"mat-checkbox",83),e.pXf(1,21),e.k0s())}function Go(t,i){1&t&&(e.j41(0,"mat-checkbox",84),e.pXf(1,22),e.k0s())}function Uo(t,i){1&t&&(e.j41(0,"mat-checkbox",85),e.pXf(1,23),e.k0s())}function yo(t,i){if(1&t&&(e.j41(0,"div")(1,"mat-checkbox",66),e.pXf(2,10),e.k0s(),e.j41(3,"mat-checkbox",67),e.pXf(4,11),e.k0s(),e.j41(5,"mat-checkbox",68),e.pXf(6,12),e.k0s(),e.j41(7,"mat-checkbox",69),e.pXf(8,13),e.k0s(),e.DNE(9,ho,2,0,"mat-checkbox",70),e.j41(10,"mat-checkbox",71),e.pXf(11,14),e.k0s(),e.DNE(12,bo,2,0,"mat-checkbox",72),e.j41(13,"mat-checkbox",73),e.pXf(14,15),e.k0s(),e.DNE(15,vo,2,0,"mat-checkbox",74)(16,$o,2,0,"mat-checkbox",75),e.j41(17,"mat-checkbox",76),e.pXf(18,16),e.k0s(),e.DNE(19,Go,2,0,"mat-checkbox",77)(20,Uo,2,0,"mat-checkbox",78),e.j41(21,"mat-checkbox",79),e.pXf(22,17),e.k0s()()),2&t){const _=e.XpG();e.R7$(9),e.Y8G("ngIf",!_.gererVisibiliteColonneCDE),e.R7$(3),e.Y8G("ngIf",!_.gererVisibiliteColonneCDE),e.R7$(3),e.Y8G("ngIf",!_.gererVisibiliteColonneCDE),e.R7$(),e.Y8G("ngIf",!_.gererVisibiliteColonneCDE),e.R7$(3),e.Y8G("ngIf",!_.gererVisibiliteColonneCDE),e.R7$(),e.Y8G("ngIf",!_.gererVisibiliteColonneCDE)}}function xo(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG();e.R7$(),e.SpI(" ",_.getInvalidMessage("MontantAmenagement")," ")}}const Xo={parse:{dateInput:"YYYY-MM-DD"},display:{dateInput:"YYYY-MM-DD",monthYearLabel:"MMM YYYY"}};let Vo=(()=>{var t;class i{constructor(o,n,a){this.appConfig=o,this.thisDialogRef=n,this.data=a,this.conditionOccupationEnum=he,this.potentielOccupationEnum=z_,this.uniteMesureSuperficieEnum=be,this.uniteMesureLoyerEnum=Yt,this.gererVisibiliteColonneCDE=!!this.appConfig.appConfig.paramList[$.fW.GererVisibiliteColonneCDE],this.espaceLocNREnumereService=!!this.appConfig.appConfig.paramList[$.fW.Esp
1aceLocNREnumereService],this.typeServiceEnum=C,this.subs=new Bt.yU,this.destroyRef=(0,e.WQX)(e.abz)}ngOnInit(){this.dateReferenceBis=this.data.dateReferenceBis,this.etageEnum=this.data.etageEnum,this.espacesLocatifsNonResidentielsDialogForm=this.data.emptyFrmGrp,this.espacesLocatifsNonResidentielsDialogForm.patchValue(this.data.espaceLocatif),this.data.espaceLocatif.DebutBail&&this.espacesLocatifsNonResidentielsDialogForm.controls.DebutBail.patchValue(d().parseZone(this.data.espaceLocatif.DebutBail).utcOffset(0,!0).format("YYYY-MM-DD")),this.data.espaceLocatif.FinBail&&this.espacesLocatifsNonResidentielsDialogForm.controls.FinBail.patchValue(d().parseZone(this.data.espaceLocatif.FinBail).utcOffset(0,!0).format("YYYY-MM-DD")),this.subs.add(this.espacesLocatifsNonResidentielsDialogForm.controls.CodeCondOccupation.valueChanges.subscribe(()=>{this.espacesLocatifsNonResidentielsDialogForm.controls.DebutBail.updateValueAndValidity({emitEvent:!1,onlySelf:!0}),this.espacesLocatifsNonResidentielsDialogForm.controls.FinBail.updateValueAndValidity({emitEvent:!1,onlySelf:!0})})),this.espacesLocatifsNonResidentielsDialogForm.controls.FinBail.valueChanges.pipe((0,U.pQ)(this.destroyRef)).subscribe({next:()=>{this.espacesLocatifsNonResidentielsDialogForm.controls.DebutBail.updateValueAndValidity({emitEvent:!1,onlySelf:!0})}}),this.espacesLocatifsNonResidentielsDialogForm.controls.DebutBail.valueChanges.pipe((0,U.pQ)(this.destroyRef)).subscribe({next:()=>{this.espacesLocatifsNonResidentielsDialogForm.controls.FinBail.updateValueAndValidity({emitEvent:!1,onlySelf:!0})}}),this.subs.add(this.espacesLocatifsNonResidentielsDialogForm.controls.UniteMesureSuperficie.valueChanges.subscribe(()=>{this.espacesLocatifsNonResidentielsDialogForm.controls.SuperficieTotale.updateValueAndValidity({emitEvent:!1,onlySelf:!0})})),this.espacesLocatifsNonResidentielsDialogForm.markAllAsTouched()}setDateFinValue(o){if(o.value&&""!==o.value){const n=d().parseZone(o.value).utcOffset(0,!0),a=d().parseZone(this.espacesLocatifsNonResidentielsDialogForm.controls.FinBail.value).utcOffset(0,!0);n.format("YYYY-MM-DD")!==a.add(1,"year").add(-1,"day").format("YYYY-MM-DD")&&(this.espacesLocatifsNonResidentielsDialogForm.controls.FinBail.setValue(n.add(1,"year").add(-1,"day").format("YYYY-MM-DD")),this.espacesLocatifsNonResidentielsDialogForm.controls.DebutBail.setValue(d().parseZone(o.value).utcOffset(0,!0).format("YYYY-MM-DD")))}else this.espacesLocatifsNonResidentielsDialogForm.get(["FinBail"]).setValue(o.value),this.espacesLocatifsNonResidentielsDialogForm.get(["DebutBail"]).setValue(o.value);this.espacesLocatifsNonResidentielsDialogForm.get(["FinBail"]).markAllAsTouched()}launchCondOccValidation(){this.espacesLocatifsNonResidentielsDialogForm.controls.LoyerAnnuel.updateValueAndValidity(),this.gererVisibiliteColonneCDE||this.espacesLocatifsNonResidentielsDialogForm.controls.UniteMesureLoyer.updateValueAndValidity(),this.espacesLocatifsNonResidentielsDialogForm.controls.DebutBail.updateValueAndValidity(),this.espacesLocatifsNonResidentielsDialogForm.controls.FinBail.updateValueAndValidity()}onCloseConfirm(){this.espacesLocatifsNonResidentielsDialogForm.value.HasAmenagement||(this.espacesLocatifsNonResidentielsDialogForm.value.MontantAmenagement=null),this.thisDialogRef.close({espaceLocatifModified:this.espacesLocatifsNonResidentielsDialogForm.value,confirm:!0,HasAmenagement:this.espacesLocatifsNonResidentielsDialogForm.value.HasAmenagement})}onCloseCancel(){this.thisDialogRef.close({confirm:!1})}getDateValue(o){const n=d()(this.espacesLocatifsNonResidentielsDialogForm.get([o]).value,"YYYY-MM-DD");return new Date(n.toDate())}getDatePlaceholder(o){return this.espacesLocatifsNonResidentielsDialogForm.get([o]).value?this.espacesLocatifsNonResidentielsDialogForm.get([o]).value:"Choisir une date"}getInvalidMessage(o){const n=this.espacesLocatifsNonResidentielsDialogForm.get([o]).value;switch(o){case"NumeroEspLoc":return n&&""!==n?n.length>10?"10 caract\xE9res max":"No. doit \xEAtre unique":"Champ obligatoire";case"DebutBail":case"FinBail":return n&&""!==n?this.isPeriodeBailValid()?"Date invalide":"Date hors p\xE9riode":"Date obligatoire";case"LoyerAnnuel":return n&&""!==n?isNaN(n)?"Loyer doit \xEAtre un entier":"Doit \xeatre entre 0 et 9999999":"Loyer obligatoire";case"SuperficieTotale":return "La superficie doit \xEAtre un entier";case"MontantAmenagement":{const a=!0===this.espacesLocatifsNonResidentielsDialogForm.get(["HasAmenagement"]).value||this.espacesLocatifsNonResidentielsDialogForm.get(["HasAmenagement"]).value===C.B.value;return n&&""!==n||!a?"Loyer doit \xEAtre un entier":"Champ obligatoire"}case"LoyerAdditionnelAnnuel":{const a=this.espacesLocatifsNonResidentielsDialogForm.get(["HasElectricite"]).value===C.A.value||this.espacesLocatifsNonResidentielsDialogForm.get(["HasChauffage"]).value===C.A.value||this.espacesLocatifsNonResidentielsDialogForm.get(["HasClimatisation"]).value===C.A.value||this.espacesLocatifsNonResidentielsDialogForm.get(["HasDeneigement"]).value===C.A.value||this.espacesLocatifsNonResidentielsDialogForm.get(["HasAssurance"]).value===C.A.value||this.espacesLocatifsNonResidentielsDialogForm.get(["HasTaxeFonciere"]).value===C.A.value||this.espacesLocatifsNonResidentielsDialogForm.get(["HasEntretienReparation"]).value===C.A.value||this.espacesLocatifsNonResidentielsDialogForm.get(["HasAmenagement"]).value===C.A.value||!this.gererVisibiliteColonneCDE&&(this.espacesLocatifsNonResidentielsDialogForm.get(["HasAscenseur"]).value===C.A.value||this.espacesLocatifsNonResidentielsDialogForm.get(["HasEauChaude"]).value===C.A.value||this.espacesLocatifsNonResidentielsDialogForm.get(["HasTaxeNonResid"]).value===C.A.value||this.espacesLocatifsNonResidentielsDialogForm.get(["HasTaxeService"]).value===C.A.value||this.espacesLocatifsNonResidentielsDialogForm.get(["HasConciergerieCommun"]).value===C.A.value||this.espacesLocatifsNonResidentielsDialogForm.get(["HasConciergerieLocal"]).value===C.A.value),l=Number(n);if((0,G.gD_)(n)||""===n)return "Champ obligatoire";if(!this.espaceLocNREnumereService)return"Doit \xeatre entre 0 et 9999999";if(0===l&&a)return "Valeur non nulle requise";if(!a&&0!==l)return "Aucun service additionnel"}}return""}isPeriodeBailValid(){const o=this.espacesLocatifsNonResidentielsDialogForm.get(["DebutBail"]).value,n=this.espacesLocatifsNonResidentielsDialogForm.get(["FinBail"]).value;if(o&&n){const a=d()(o),l=d()(n),c=d()(this.dateReferenceBis);if(c.isBefore(a,"day")||c.isAfter(l,"day"))return!1}return!0}ngOnDestroy(){this.subs.unsubscribe()}}return(t=i).\u0275fac=function(o){return new(o||t)(e.rXU(De.o),e.rXU(ae.CP),e.rXU(ae.Vh))},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-espace-locatif-non-residentiel-dialog"]],features:[e.Jv_([{provide:H.MJ,useClass:Fe.QH,deps:[H.Ju,Fe.ij]},{provide:H.de,useValue:Xo}])],decls:61,vars:38,consts:()=>{let _,o,n,a,l,c,O,A,m,T,g,F,h,L,I,M,k,j,B,Y,R,W,J,K,N,Ee,le,Se,ce,re,Ce,f,Ge,Ue,ye,xe,Xe,Ve,ke,je,Be,Ye,ze,He,we,qe,P;return _="Nom de commerce",o="N\xB0 Local",n="Cond. d'occupation",a="Superficie totale",l="Unit\xE9 Superficie",c="Loyer annuel",O="Loyer additionnel annuel",A="Am\xE9nagement du local pay\xE9 par propri\xE9taire ($)",m="Espace locatif non-r\xE9sidentiel",T="Caract\xE9ristiques",g="Bail",F="Confirmer",h="Annuler",L="\xC9tage",I="Potentiel d'occupation",M="Unit\xE9 Loyer",k="Champ obligatoire",j="Services inclus au loyer",B="Services inclus au loyer de base",Y="\xC9lectricit\xE9",R="Chauffage",W="Climatisation",J="D\xE9neigement",K="Assurance",N="Taxes fonci\xE8res et scolaire",Ee="Entretien et r\xE9paration",le="Am\xE9nagement",Se="Ascenseur",ce="Eau chaude",re="Taxes non-r\xE9sidentielles",Ce="Taxes services",f="Conciergerie (espace commun)",Ge="Conciergerie (local)",Ue="\xC9lectricit\xE9",ye="Chauffage",xe="Climatisation",Xe="D\xE9neigement",Ve="Assurance",ke="Taxes fonci\xE8res et scolaire",je="Entretien et r\xE9paration",Be="Am\xE9nagement",Ye="Ascenseur",ze="Eau chaude",He="Taxes non-r\xE9sidentielles",we="Taxes services",qe="Conciergerie (espace commun)",P="Conciergerie (local)",[["dateDebutPicker",""],["picker",""],m,T,g,F,h,k,j,B,Ue,ye,xe,Xe,Ve,ke,je,Be,Ye,ze,He,we,qe,P,[3,"formGroup"],[1,"form-section"],[1,"form-margin-right"],["matInput","","type","text","autocomplete","off","formControlName","RaisonSociale","placeholder",_],["matInput","","type","text","autocomplete","off","formControlName","NumeroEspLoc","placeholder",o],[4,"ngIf"],["class","form-margin-right",4,"ngIf"],["placeholder",n,"formControlName","CodeCondOccupation",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","string","autocomplete","off","min","0","formControlName","SuperficieTotale","placeholder",a,"vplusAppOneDigitDecimalNumber",""],["formControlName","UniteMesureSuperficie","placeholder",l],[1,"form-margin-right",3,"floatLabel"],["matInput","","autocomplete","off","formControlName","DebutBail",3,"dateChange","matDatepicker","placeholder"],["matSuffix","",3,"for"],[3,"startAt"],["matInput","","autocomplete","off","formControlName","FinBail",3,"matDatepicker","placeholder"],["matInput","","type","number","autocomplete","off","min","0","oninput","this.value = Math.abs(this.value)","formControlName","LoyerAnnuel","nombreOnly","","placeholder",c,2,"text-align","right"],["matInput","","type","number","autocomplete","off","min","0","oninput","this.value = Math.abs(this.value)","formControlName","LoyerAdditionnelAnnuel","placeholder",O,2,"text-align","right"],[1,"esp-checkbox-container","field-padding-fix"],[1,"large-field"],["matInput","","type","number","autocomplete","off","min","0","oninput","this.value = Math.abs(this.value)","formControlName","MontantAmenagement","placeholder",A],[1,"dialog-buttons-section"],["type","submit","mat-raised-button","",1,"custom-button-standard","custom-button-full",3,"click"],["mat-raised-button","",1,"custom-button-stroked","custom-button-standard",3,"click"],["placeholder",L,"formControlName","Etage"],[3,"value"],["placeholder",I,"formControlName","PotentielOccupation"],["formControlName","UniteMesureLoyer","placeholder",M],["placeholder",Y,"formControlName","HasElectricite"],["placeholder",R,"formControlName","HasChauffage"],["placeholder",W,"formControlName","HasClimatisation"],["placeholder",J,"formControlName","HasDeneigement"],["placeholder",K,"formControlName","HasAssurance"],["placeholder",N,"formControlName","HasTaxeFonciere"],["placeholder",Ee,"formControlName","HasEntretienReparation"],["placeholder",le,"formControlName","HasAmenagement"],["placeholder",Se,"formControlName","HasAscenseur"],["placeholder",ce,"formControlName","HasEauChaude"],["placeholder",re,"formControlName","HasTaxeNonResid"],["placeholder",Ce,"formControlName","HasTaxeService"],["placeholder",f,"formControlName","HasConciergerieCommun"],["placeholder",Ge,"formControlName","HasConciergerieLocal"],["formControlName","HasElectricite"],["formControlName","HasChauffage"],["formControlName","HasClimatisation"],["formControlName","HasDeneigement"],["formControlName","HasAscenseur",4,"ngIf"],["formControlName","HasAssurance"],["formControlName","HasEauChaude",4,"ngIf"],["formControlName","HasTaxeFonciere"],["formControlName","HasTaxeNonResid",4,"ngIf"],["formControlName","HasTaxeService",4,"ngIf"],["formControlName","HasEntretienReparation"],["formControlName","HasConciergerieCommun",4,"ngIf"],["formControlName","HasConciergerieLocal",4,"ngIf"],["formControlName","HasAmenagement"],["formControlName","HasAscenseur"],["formControlName","HasEauChaude"],["formControlName","HasTaxeNonResid"],["formControlName","HasTaxeService"],["formControlName","HasConciergerieCommun"],["formControlName","HasConciergerieLocal"]]},template:function(o,n){if(1&o){const a=e.RV6();e.j41(0,"form",24)(1,"h1"),e.pXf(2,2),e.k0s(),e.nrm(3,"br"),e.j41(4,"div",25)(5,"h2"),e.pXf(6,3),e.k0s(),e.j41(7,"mat-form-field",26),e.nrm(8,"input",27),e.k0s(),e.j41(9,"mat-form-field",26),e.nrm(10,"input",28),e.DNE(11,Hi,2,1,"mat-error",29),e.k0s(),e.DNE(12,qi,3,1,"mat-form-field",30),e.j41(13,"mat-form-field",26)(14,"mat-select",31),e.bIt("selectionChange",function(){return e.eBV(a),e.Njj(n.launchCondOccValidation())}),e.DNE(15,Wi,2,2,"mat-option",32),e.nI1(16,"ObjectKeysPipe"),e.k0s()(),e.DNE(17,Ki,4,3,"mat-form-field",30),e.j41(18,"mat-form-field",26),e.nrm(19,"input",33),e.DNE(20,Qi,2,4,"mat-error",29),e.k0s(),e.j41(21,"mat-form-field",26)(22,"mat-select",34),e.DNE(23,Zi,2,2,"mat-option",32),e.nI1(24,"ObjectKeysPipe"),e.k0s()()(),e.j41(25,"div",25)(26,"h2"),e.pXf(27,4),e.k0s(),e.j41(28,"mat-form-field",35)(29,"input",36),e.bIt("dateChange",function(c){return e.eBV(a),e.Njj(n.setDateFinValue(c))}),e.k0s(),e.nrm(30,"mat-datepicker-toggle",37)(31,"mat-datepicker",38,0),e.DNE(33,eo,2,1,"mat-error",29),e.k0s(),e.j41(34,"mat-form-field",35),e.nrm(35,"input",39)(36,"mat-datepicker-toggle",37)(37,"mat-datepicker",38,1),e.DNE(39,to,2,1,"mat-error",29),e.k0s(),e.j41(40,"mat-form-field",26),e.nrm(41,"input",40),e.DNE(42,_o,2,1,"mat-error",29),e.k0s(),e.j41(43,"mat-form-field",26),e.nrm(44,"input",41),e.DNE(45,no,2,1,"mat-error",29),e.k0s(),e.DNE(46,ao,5,5,"mat-form-field",30),e.k0s(),e.j41(47,"div",25),e.DNE(48,so,2,0,"h2",29)(49,Eo,2,0,"h2",29),e.j41(50,"div",42),e.DNE(
151,Fo,39,30,"div",29)(52,yo,23,6,"div",29),e.j41(53,"mat-form-field",43),e.nrm(54,"input",44),e.DNE(55,xo,2,1,"mat-error",29),e.k0s()()(),e.j41(56,"div",45)(57,"button",46),e.bIt("click",function(){return e.eBV(a),e.Njj(n.onCloseConfirm())}),e.pXf(58,5),e.k0s(),e.j41(59,"button",47),e.bIt("click",function(){return e.eBV(a),e.Njj(n.onCloseCancel())}),e.pXf(60,6),e.k0s()()()}if(2&o){const a=e.sdS(32),l=e.sdS(38);e.Y8G("formGroup",n.espacesLocatifsNonResidentielsDialogForm),e.R7$(11),e.Y8G("ngIf",n.espacesLocatifsNonResidentielsDialogForm.get(e.lJ4(31,Xi)).invalid),e.R7$(),e.Y8G("ngIf",!n.gererVisibiliteColonneCDE),e.R7$(3),e.Y8G("ngForOf",e.bMT(16,27,n.conditionOccupationEnum)),e.R7$(2),e.Y8G("ngIf",!n.gererVisibiliteColonneCDE),e.R7$(3),e.Y8G("ngIf",n.espacesLocatifsNonResidentielsDialogForm.get(e.lJ4(32,f_)).invalid),e.R7$(3),e.Y8G("ngForOf",e.bMT(24,29,n.uniteMesureSuperficieEnum)),e.R7$(5),e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("matDatepicker",a)("placeholder",n.getDatePlaceholder("DebutBail")),e.R7$(),e.Y8G("for",a),e.R7$(),e.Y8G("startAt",n.getDateValue("DebutBail")),e.R7$(2),e.Y8G("ngIf",n.espace
1sLocatifsNonResidentielsDialogForm.get(e.lJ4(33,Vi)).invalid),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("matDatepicker",l)("placeholder",n.getDatePlaceholder("FinBail")),e.R7$(),e.Y8G("for",l),e.R7$(),e.Y8G("startAt",n.getDateValue("FinBail")),e.R7$(2),e.Y8G("ngIf",n.espacesLocatifsNonResidentielsDialogForm.get(e.lJ4(34,ki)).invalid),e.R7$(3),e.Y8G("ngIf",n.espacesLocatifsNonResidentielsDialogForm.get(e.lJ4(35,ji)).invalid),e.R7$(3),e.Y8G("ngIf",n.espacesLocatifsNonResidentielsDialogForm.get(e.lJ4(36,Bi)).invalid),e.R7$(),e.Y8G("ngIf",!n.gererVisibiliteColonneCDE),e.R7$(2),e.Y8G("ngIf",n.espaceLocNREnumereService),e.R7$(),e.Y8G("ngIf",!n.espaceLocNREnumereService),e.R7$(2),e.Y8G("ngIf",n.espaceLocNREnumereService),e.R7$(),e.Y8G("ngIf",!n.espaceLocNREnumereService),e.R7$(3),e.Y8G("ngIf",n.espacesLocatifsNonResidentielsDialogForm.get(e.lJ4(37,Yi)).invalid)}},dependencies:[b.Sq,b.bT,et.fg,x.rl,x.TL,x.yw,H.wT,ct.So,zt.VO,se.$z,ne.Vh,ne.bZ,ne.bU,s.qT,s.me,s.Q0,s.BC,s.cb,s.VZ,s.j4,s.JD,tt.p,Ht.N,_t.q],encapsulation:2}),i})();const ko=()=>["NoAppart"],jo=()=>["Etage"],Bo=()=>["CodeCondOccupation"],Yo=()=>["Pieces"],zo=()=>["LoyerMensuel"],L_=()=>["SuperficieTotale"],Ho=()=>["DebutBail"],wo=()=>["FinBail"],qo=()=>["UniteMesureLoyer"];function Wo(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG();e.R7$(),e.SpI(" ",_.getInvalidMessage("NoAppart"),"")}}function Jo(t,i){if(1&t&&(e.j41(0,"mat-option",55),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value),e.R7$(),e.SpI(" ",_.viewValue," ")}}function Ko(t,i){1&t&&(e.j41(0,"mat-error"),e.pXf(1,15),e.k0s())}function Qo(t,i){if(1&t&&(e.j41(0,"mat-option",55),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function Zo(t,i){1&t&&(e.j41(0,"mat-error"),e.pXf(1,16),e.k0s())}function ea(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG(2);e.R7$(),e.Lme(" Doit \xeatre entre ",_.espacesLocatifsResidentielsDialogForm.get(e.lJ4(2,L_)).errors.invalidRange.min.toFixed(1)," et ",_.espacesLocatifsResidentielsDialogForm.get(e.lJ4(3,L_)).errors.invalidRange.max.toFixed(1)," ")}}function ta(t,i){if(1&t&&(e.j41(0,"mat-form-field",27),e.nrm(1,"input",56),e.DNE(2,ea,2,4,"mat-error",29),e.k0s()),2&t){const _=e.XpG();e.R7$(2),e.Y8G("ngIf",_.espacesLocatifsResidentielsDialogForm.get(e.lJ4(1,L_)).invalid)}}function _a(t,i){if(1&t&&(e.j41(0,"mat-option",55),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function na(t,i){if(1&t&&(e.j41(0,"mat-form-field",27)(1,"mat-select",57),e.DNE(2,_a,2,2,"mat-option",31),e.nI1(3,"ObjectKeysPipe"),e.k0s()()),2&t){const _=e.XpG();e.R7$(2),e.Y8G("ngForOf",e.bMT(3,1,_.uniteMesureSuperficieEnum))}}function ia(t,i){if(1&t&&(e.j41(0,"mat-option",55),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function oa(t,i){1&t&&(e.j41(0,"mat-error"),e.pXf(1,17),e.k0s())}function aa(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG(2);e.R7$(),e.SpI(" ",_.getInvalidMessage("DebutBail"),"")}}function sa(t,i){if(1&t){const _=e.RV6();e.j41(0,"mat-form-field",58)(1,"input",59),e.bIt("dateChange",function(n){e.eBV(_);const a=e.XpG();return e.Njj(a.setDateFinValue(n))}),e.k0s(),e.nrm(2,"mat-datepicker-toggle",60)(3,"mat-datepicker",61,0),e.DNE(5,aa,2,1,"mat-error",29),e.k0s()}if(2&t){const _=e.sdS(4),o=e.XpG();e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("matDatepicker",_)("placeholder",o.getDatePlaceholder("DebutBail")),e.R7$(),e.Y8G("for",_),e.R7$(),e.Y8G("startAt",o.getDateValue("DebutBail")),e.R7$(2),e.Y8G("ngIf",o.espacesLocatifsResidentielsDialogForm.get(e.lJ4(6,Ho)).invalid)}}function Ea(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG(2);e.R7$(),e.SpI("",_.getInvalidMessage("FinBail")," ")}}function la(t,i){if(1&t&&(e.j41(0,"mat-form-field",58),e.nrm(1,"input",62)(2,"mat-datepicker-toggle",60)(3,"mat-datepicker",61,1),e.DNE(5,Ea,2,1,"mat-error",29),e.k0s()),2&t){const _=e.sdS(4),o=e.XpG();e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("matDatepicker",_)("placeholder",o.getDatePlaceholder("FinBail")),e.R7$(),e.Y8G("for",_),e.R7$(),e.Y8G("startAt",o.getDateValue("FinBail")),e.R7$(2),e.Y8G("ngIf",o.espacesLocatifsResidentielsDialogForm.get(e.lJ4(6,wo)).invalid)}}function Sa(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG();e.R7$(),e.SpI(" ",_.getInvalidMessage("LoyerMensuel"),"")}}function ca(t,i){if(1&t&&(e.j41(0,"mat-option",55),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function ra(t,i){1&t&&(e.j41(0,"mat-error"),e.pXf(1,18),e.k0s())}function Ca(t,i){if(1&t&&(e.j41(0,"mat-form-field",27)(1,"mat-select",63),e.DNE(2,ca,2,2,"mat-option",31),e.nI1(3,"ObjectKeysPipe"),e.k0s(),e.DNE(4,ra,2,0,"mat-error",29),e.k0s()),2&t){const _=e.XpG();e.R7$(2),e.Y8G("ngForOf",e.bMT(3,2,_.uniteMesureLoyerEnum)),e.R7$(2),e.Y8G("ngIf",_.espacesLocatifsResidentielsDialogForm.get(e.lJ4(4,qo)).invalid)}}function Pa(t,i){1&t&&(e.j41(0,"mat-checkbox",64),e.pXf(1,19),e.k0s())}function ua(t,i){1&t&&(e.j41(0,"mat-checkbox",65),e.pXf(1,20),e.k0s())}function da(t,i){1&t&&(e.j41(0,"mat-checkbox",66),e.pXf(1,21),e.k0s())}function Oa(t,i){1&t&&(e.j41(0,"mat-checkbox",67),e.pXf(1,22),e.k0s())}function pa(t,i){1&t&&(e.j41(0,"mat-checkbox",68),e.pXf(1,23),e.k0s())}function Ta(t,i){1&t&&(e.j41(0,"mat-checkbox",69),e.pXf(1,24),e.k0s())}const fa={parse:{dateInput:"YYYY-MM-DD"},display:{dateInput:"YYYY-MM-DD",monthYearLabel:"MMM YYYY"}};let La=(()=>{var t;class i{constructor(o,n,a){this.appConfig=o,this.thisDialogRef=n,this.data=a,this.conditionOccupationEnum=he,this.piecesEnum=Y_,this.uniteMesureSuperficieEnum=be,this.uniteMesureLoyerEnum=Yt,this.gererVisibiliteColonneCDE=!!this.appConfig.appConfig.paramList[$.fW.GererVisibiliteColonneCDE],this.subs=new Bt.yU,this.destroyRef=(0,e.WQX)(e.abz)}ngOnInit(){this.dateReferenceBis=this.data.dateReferenceBis,this.etageEnum=this.data.etageEnum,this.espacesLocatifsResidentielsDialogForm=this.data.emptyFrmGrp,this.espacesLocatifsResidentielsDialogForm.patchValue(this.data.espaceLocatif),this.gererVisibiliteColonneCDE||(this.data.espaceLocatif.DebutBail&&this.espacesLocatifsResidentielsDialogForm.controls.DebutBail.patchValue(d().parseZone(this.data.espaceLocatif.DebutBail).utcOffset(0,!0).format("YYYY-MM-DD")),this.data.espaceLocatif.FinBail&&this.espacesLocatifsResidentielsDialogForm.controls.FinBail.patchValue(d().parseZone(this.data.espaceLocatif.FinBail).utcOffset(0,!0).format("YYYY-MM-DD"))),this.subs.add(this.espacesLocatifsResidentielsDialogForm.controls.CodeCondOccupation.valueChanges.subscribe(()=>{this.gererVisibiliteColonneCDE||(this.espacesLocatifsResidentielsDialogForm.controls.DebutBail.updateValueAndValidity({emitEvent:!1,onlySelf:!0}),this.espacesLocatifsResidentielsDialogForm.controls.FinBail.updateValueAndValidity({emitEvent:!1,onlySelf:!0}))})),this.espacesLocatifsResidentielsDialogForm.controls.FinBail.valueChanges.pipe((0,U.pQ)(this.destroyRef)).subscribe({next:()=>{this.gererVisibiliteColonneCDE||this.espacesLocatifsResidentielsDialogForm.controls.DebutBail.updateValueAndValidity({emitEvent:!1,onlySelf:!0})}}),this.espacesLocatifsResidentielsDialogForm.controls.DebutBail.valueChanges.pipe((0,U.pQ)(this.destroyRef)).subscribe({next:()=>{this.gererVisibiliteColonneCDE||this.espacesLocatifsResidentielsDialogForm.controls.FinBail.updateValueAndValidity({emitEvent:!1,onlySelf:!0})}}),this.gererVisibiliteColonneCDE||this.subs.add(this.espacesLocatifsResidentielsDialogForm.controls.UniteMesureSuperficie.valueChanges.subscribe(()=>{this.espacesLocatifsResidentielsDialogForm.controls.SuperficieTotale.updateValueAndValidity({emitEvent:!1,onlySelf:!0})})),this.espacesLocatifsResidentielsDialogForm.markAllAsTouched()}setDateFinValue(o){if(o.value&&""!==o.value){const n=d().parseZone(o.value).utcOffset(0,!0),a=d().parseZone(this.espacesLocatifsResidentielsDialogForm.controls.FinBail.value).utcOffset(0,!0);n.format("YYYY-MM-DD")!==a.add(1,"year").add(-1,"day").format("YYYY-MM-DD")&&(this.espacesLocatifsResidentielsDialogForm.controls.FinBail.setValue(n.add(1,"year").add(-1,"day").format("YYYY-MM-DD")),this.espacesLocatifsResidentielsDialogForm.controls.DebutBail.setValue(d().parseZone(o.value).utcOffset(0,!0).format("YYYY-MM-DD")))}else this.espacesLocatifsResidentielsDialogForm.get(["FinBail"]).setValue(o.value),this.espacesLocatifsResidentielsDialogForm.get(["DebutBail"]).setValue(o.value);this.espacesLocatifsResidentielsDialogForm.get(["FinBail"]).markAllAsTouched()}launchCondOccValidation(){this.espacesLocatifsResidentielsDialogForm.controls.LoyerMensuel.updateValueAndValidity(),this.gererVisibiliteColonneCDE||(this.espacesLocatifsResidentielsDialogForm.controls.UniteMesureLoyer.updateValueAndValidity(),this.espacesLocatifsResidentielsDialogForm.controls.DebutBail.updateValueAndValidity(),this.espacesLocatifsResidentielsDialogForm.controls.FinBail.updateValueAndValidity())}
1onCloseConfirm(){this.thisDialogRef.close({espaceLocatifModified:this.espacesLocatifsResidentielsDialogForm.value,confirm:!0})}onCloseCancel(){this.thisDialogRef.close({confirm:!1})}getDateValue(o){const n=d()(this.espacesLocatifsResidentielsDialogForm.get([o]).value,"YYYY-MM-DD");return new Date(n.toDate())}getDatePlaceholder(o){return this.espacesLocatifsResidentielsDialogForm.get([o]).value?this.espacesLocatifsResidentielsDialogForm.get([o]).value:"Choisir une date"}getInvalidMessage(o){const n=this.espacesLocatifsResidentielsDialogForm.get([o]).value;switch(o){case"NoAppart":return n&&""!==n?n.length>10?"10 caract\xE9res max":"No. doit \xEAtre unique":"Champ obligatoire";case"DebutBail":case"FinBail":return n&&""!==n?this.isPeriodeBailValid()?"Date invalide":"Date hors p\xE9riode":"Date obligatoire";case"LoyerMensuel":return n&&""!==n?isNaN(n)?"Loyer doit \xEAtre un entier":"Doit \xeatre entre 0 et 99999":"Loyer obligatoire";case"SuperficieTotale":return n&&""!==n?"La superficie doit \xEAtre un entier":"La superficie est obligatoire"}return""}isPeriodeBailValid(){const o=this.espacesLocatifsResidentielsDialogForm.get(["DebutBail"]).value,n=this.espacesLocatifsResidentielsDialogForm.get(["FinBail"]).value;if(o&&n){const a=d()(o),l=d()(n),c=d()(this.dateReferenceBis);if(c.isBefore(a,"day")||c.isAfter(l,"day"))return!1}return!0}ngOnDestroy(){this.subs.unsubscribe()}}return(t=i).\u0275fac=function(o){return new(o||t)(e.rXU(De.o),e.rXU(ae.CP),e.rXU(ae.Vh))},t.\u0275cmp=e.VBU({type:t,selectors:[["espace-locatif-residentiel-dialog"]],features:[e.Jv_([{provide:H.MJ,useClass:Fe.QH,deps:[H.Ju,Fe.ij]},{provide:H.de,useValue:fa}])],decls:66,vars:29,consts:()=>{let _,o,n,a,l,c,O,A,m,T,g,F,h,L,I,M,k,j,B,Y,R,W,J,K,N,Ee,le,Se,ce,re,Ce;return _="N\xB0 app.",o="\xC9tage",n="Cond. d'occupation",a="Nombre de pi\xE8ces",l="Loyer mensuel ($)",c="Espace locatif r\xE9sidentiel",O="Caract\xE9ristiques",A="Services inclus au loyer de base",m="Meubl\xE9",T="Semi-Meubl\xE9",g="\xC9lectricit\xE9",F="Chauffage",h="Eau chaude",L="Climatisation",I="Stationnement int\xE9rieur",M="C\xE2blodistribution",k="Confirmer",j="Annuler",B="Champ obligatoire",Y="Champ obligatoire ",R="Superficie",W="Unit\xE9 Superficie",J="Champ obligatoire ",K="Unit\xE9 Loyer",N="Champ obligatoire ",Ee="Stationnement ext\xE9rieur",le="D\xE9neigement",Se="Entreposage",ce="Ascenseur",re="Assurance",Ce="Piscine int\xE9rieure",[["dateDebutPicker",""],["picker",""],c,O,A,m,T,g,F,h,L,I,M,k,j,B,Y,J,N,Ee,le,Se,ce,re,Ce,[3,"formGroup"],[1,"form-section"],[1,"form-margin-right"],["matInput","","type","text","autocomplete","off","formControlName","NoAppart","placeholder",_],[4,"ngIf"],["placeholder",o,"formControlName","Etage"],[3,"value",4,"ngFor","ngForOf"],["placeholder",n,"formControlName","CodeCondOccupation",3,"selectionChange"],["class","form-margin-right",4,"ngIf"],["placeholder",a,"formControlName","Pieces"],["class","form-margin-right",3,"floatLabel",4,"ngIf"],["matInput","","type","number","autocomplete","off","min","0","oninput","this.value = Math.abs(this.value)","formControlName","LoyerMensuel","nombreOnly","","placeholder",l,2,"text-align","right"],[1,"esp-checkbox-container","field-padding-fix"],["formControlName","IsMeuble"],["formControlName","IsSemiMeuble"],["formControlName","HasElectricite"],["formControlName","HasChauffage"],["formControlName","HasEauChaude"],["formControlName","HasClimatisation"],["formControlName","HasStationnementInt"],["formControlName","HasStationnementExt",4,"ngIf"],["formControlName","HasDeneigement",4,"ngIf"],["formControlName","HasEntreposage",4,"ngIf"],["formControlName","HasCabloDistribution"],["formControlName","HasAscenseur",4,"ngIf"],["formControlName","HasAssurance",4,"ngIf"],["formControlName","HasPiscineInt",4,"ngIf"],[1,"dialog-buttons-section"],["type","submit","mat-raised-button","",1,"custom-button-standard","custom-button-full",3,"click"],["mat-raised-button","",1,"custom-button-standard","custom-button-stroked",3,"click"],[3,"value"],["autoComplete","off","type","string","min","1","matInput","","formControlName","SuperficieTotale","placeholder",R,"mat-no-asterisk","","vplusAppOneDigitDecimalNumber",""],["formControlName","UniteMesureSuperficie","placeholder",W],[1,"form-margin-right",3,"floatLabel"],["matInput","","autocomplete","off","formControlName","DebutBail",3,"dateChange","matDatepicker","placeholder"],["matSuffix","",3,"for"],[3,"startAt"],["matInput","","autocomplete","off","formControlName","FinBail",3,"matDatepicker","placeholder"],["formControlName","UniteMesureLoyer","placeholder",K],["formControlName","HasStationnementExt"],["formControlName","HasDeneigement"],["formControlName","HasEntreposage"],["formControlName","HasAscenseur"],["formControlName","HasAssurance"],["formControlName","HasPiscineInt"]]},template:function(o,n){1&o&&(e.j41(0,"form",25)(1,"h1"),e.pXf(2,2),e.k0s(),e.nrm(3,"br"),e.j41(4,"div",26)(5,"h2"),e.pXf(6,3),e.k0s(),e.j41(7,"mat-form-field",27),e.nrm(8,"input",28),e.DNE(9,Wo,2,1,"mat-error",29),e.k0s(),e.j41(10,"mat-form-field",27)(11,"mat-select",30),e.DNE(12,Jo,2,2,"mat-option",31),e.k0s(),e.DNE(13,Ko,2,0,"mat-error",29),e.k0s(),e.j41(14,"mat-form-field",27)(15,"mat-select",32),e.bIt("selectionChange",function(){return n.launchCondOccValidation()}),e.DNE(16,Qo,2,2,"mat-option",31),e.nI1(17,"ObjectKeysPipe"),e.k0s(),e.DNE(18,Zo,2,0,"mat-error",29),e.k0s(),e.DNE(19,ta,3,2,"mat-form-field",33)(20,na,4,3,"mat-form-field",33),e.j41(21,"mat-form-field",27)(22,"mat-select",34),e.DNE(23,ia,2,2,"mat-option",31),e.nI1(24,"ObjectKeysPipe"),e.k0s(),e.DNE(25,oa,2,0,"mat-error",29),e.k0s()(),e.j41(26,"div",26)(27,"h2"),e.EFF(28,"Bail"),e.k0s(),e.DNE(29,sa,6,7,"mat-form-field",35)(30,la,6,7,"mat-form-field",35),e.j41(31,"mat-form-field",27),e.nrm(32,"input",36),e.DNE(33,Sa,2,1,"mat-error",29),e.k0s(),e.DNE(34,Ca,5,5,"mat-form-field",33),e.k0s(),e.j41(35,"div",26)(36,"h2"),e.pXf(37,4),e.k0s(),e.j41(38,"div",37)(39,"mat-checkbox",38),e.pXf(40,5),e.k0s(),e.j41(41,"mat-checkbox",39),e.pXf(42,6),e.k0s(),e.j41(43,"mat-checkbox",40),e.pXf(44,7),e.k0s(),e.j41(45,"mat-checkbox",41),e.pXf(46,8),e.k0s(),e.j41(47,"mat-checkbox",42),e.pXf(48,9),e.k0s(),e.j41(49,"mat-checkbox",43),e.pXf(50,10),e.k0s(),e.j41(51,"mat-checkbox",44),e.pXf(52,11),e.k0s(),e.DNE(53,Pa,2,0,"mat-checkbox",45)(54,ua,2,0,"mat-checkbox",46)(55,da,2,0,"mat-checkbox",47),e.j41(56,"mat-checkbox",48),e.pXf(57,12),e.k0s(),e.DNE(58,Oa,2,0,"mat-checkbox",49)(59,pa,2,0,"mat-checkbox",50)(60,Ta,2,0,"mat-checkbox",51),e.k0s()(),e.j41(61,"div",52)(62,"button",53),e.bIt("click",function(){return n.onCloseConfirm()}),e.pXf(63,13),e.k0s(),e.j41(64,"button",54),e.bIt("click",function(){return n.onCloseCancel()}
1),e.pXf(65,14),e.k0s()()()),2&o&&(e.Y8G("formGroup",n.espacesLocatifsResidentielsDialogForm),e.R7$(9),e.Y8G("ngIf",n.espacesLocatifsResidentielsDialogForm.get(e.lJ4(24,ko)).invalid),e.R7$(3),e.Y8G("ngForOf",n.etageEnum),e.R7$(),e.Y8G("ngIf",n.espacesLocatifsResidentielsDialogForm.get(e.lJ4(25,jo)).invalid),e.R7$(3),e.Y8G("ngForOf",e.bMT(17,20,n.conditionOccupationEnum)),e.R7$(2),e.Y8G("ngIf",n.espacesLocatifsResidentielsDialogForm.get(e.lJ4(26,Bo)).invalid),e.R7$(),e.Y8G("ngIf",!n.gererVisibiliteColonneCDE),e.R7$(),e.Y8G("ngIf",!n.gererVisibiliteColonneCDE),e.R7$(3),e.Y8G("ngForOf",e.bMT(24,22,n.piecesEnum)),e.R7$(2),e.Y8G("ngIf",n.espacesLocatifsResidentielsDialogForm.get(e.lJ4(27,Yo)).invalid),e.R7$(4),e.Y8G("ngIf",!n.gererVisibiliteColonneCDE),e.R7$(),e.Y8G("ngIf",!n.gererVisibiliteColonneCDE),e.R7$(3),e.Y8G("ngIf",n.espacesLocatifsResidentielsDialogForm.get(e.lJ4(28,zo)).invalid),e.R7$(),e.Y8G("ngIf",!n.gererVisibiliteColonneCDE),e.R7$(19),e.Y8G("ngIf",!n.gererVisibiliteColonneCDE),e.R7$(),e.Y8G("ngIf",!n.gererVisibiliteColonneCDE),e.R7$(),e.Y8G("ngIf",!n.gererVisibiliteColonneCDE),e.R7$(3),e.Y8G("ngIf",!n.gererVisibiliteColonneCDE),e.R7$(),e.Y8G("ngIf",!n.gererVisibiliteColonneCDE),e.R7$(),e.Y8G("ngIf",!n.gererVisibiliteColonneCDE))},dependencies:[b.Sq,b.bT,et.fg,x.rl,x.TL,x.yw,H.wT,ct.So,zt.VO,se.$z,ne.Vh,ne.bZ,ne.bU,s.qT,s.me,s.Q0,s.BC,s.cb,s.VZ,s.j4,s.JD,tt.p,Ht.N,_t.q],encapsulation:2}),i})(),q_=(()=>{var t;class i{constructor(o){this.dialogRef=o}onCloseConfirm(){this.dialogRef.close({confirm:!0})}onCloseCancel(){this.dialogRef.close({confirm:!1})}}return(t=i).\u0275fac=function(o){return new(o||t)(e.rXU(ae.CP))},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-delete-esp-dialog"]],decls:7,vars:0,consts:()=>{let _,o,n;return _="Vous \xEAtes sur le point de supprimer un espace locatif, voulez vous continuer ?",o="Continuer",n="Annuler",[_,o,n,[1,"margin-bottom-2"],[1,"flex-end"],["mat-raised-button","","type","submit",1,"custom-button-full","custom-button-standard",3,"click"],["mat-flat-button","","type","button",1,"custom-button-stroked","custom-button-standard",3,"click"]]},template:function(o,n){1&o&&(e.j41(0,"h3",3),e.pXf(1,0),e.k0s(),e.j41(2,"div",4)(3,"button",5),e.bIt("click",function(){return n.onCloseConfirm()}),e.pXf(4,1),e.k0s(),e.j41(5,"button",6),e.bIt("click",function(){return n.onCloseCancel()}),e.pXf(6,2),e.k0s()())},dependencies:[se.$z],encapsulation:2}),i})();class Aa{constructor(){this.id=(0,G.SiN)(),this.identifiantGPlus=null,this.RaisonSociale=null,this.NumeroEspLoc=null,this.Etage=null,this.CodeCondOccupation=null,this.PotentielOccupation=null,this.SuperficieTotale=null,this.DebutBail=null,this.FinBail=null,this.LoyerMensuel=null,this.LoyerAdditionnelAnnuel=null,this.HasElectricite=null,this.HasChauffage=null,this.HasClimatisation=null,this.HasDeneigement=null,this.HasAscenseur=null,this.HasAssurance=null,this.HasEauChaude=null,this.HasTaxeFonciere=null,this.HasTaxeNonResid=null,this.HasTaxeService=null,this.HasEntretienReparation=null,this.HasConciergerieCommun=null,this.HasConciergerieLocal=null,this.HasAmenagement=null,this.MontantAmenagement=null,this.UniteMesureLoyer=H__Dollar,this.UniteMesureSuperficie="493A42B1-BB20-498C-A652-9507300A0675"}}var X=S(43811),p=S(26450),rt=S(59115);let W_=(()=>{var t;class i{constructor(o){this.store=o,this.isChecked=!1,this.isIndeterminate=!1}ngOnInit(){this.store.select(w[this.getFunctionName]).subscribe(o=>{const n=o.filter(a=>!!a[this.name]);n.length===o.length&&0!==n.length?(this.isIndeterminate=!1,this.isChecked=!0):0===n.length?(this.isIndeterminate=!1,this.isChecked=!1):(this.isIndeterminate=!0,this.isChecked=!1)})}onChange(o){const n=this.name,a=this.tableauForm,l=[];a.controls.forEach(()=>{l.push({[n]:o.checked})}),a.patchValue(l)}}return(t=i).\u0275fac=function(o){return new(o||t)(e.rXU(E.il))},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-header-checkbox"]],inputs:{name:"name",tableauForm:"tableauForm",getFunctionName:"getFunctionName"},decls:1,vars:2,consts:[[1,"header-checkbox",3,"checkedChange","indeterminateChange","change","checked","indeterminate"]],template:function(o,n){1&o&&(e.j41(0,"mat-checkbox",0),e.mxI("checkedChange",function(l){return e.DH7(n.isChecked,l)||(n.isChecked=l),l})("indeterminateChange",function(l){return e.DH7(n.isIndeterminate,l)||(n.isIndeterminate=l),l}),e.bIt("change",function(l){return n.onChange(l)}),e.k0s()),2&o&&e.R50("checked",n.isChecked)("indeterminate",n.isIndeterminate)},dependencies:[ct.So],encapsulation:2}),i})();var J_=S(73910);const ma=(t,i)=>i.value,V=(t,i)=>i.value.value,Na=t=>[t],Ia=t=>[t,"NumeroEspLoc"],A_=t=>[t,"SuperficieTotale"],Ra=t=>[t,"DebutBail"],Ma=t=>[t,"FinBail"],ga=t=>[t,"LoyerAnnuel"],Da=t=>[t,"UniteMesureLoyer"],Fa=t=>[t,"LoyerAdditionnelAnnuel"],ha=t=>[t,"MontantAmenagement"];function ba(t,i){1&t&&(e.j41(0,"div",42),e.nrm(1,"i",43),e.j41(2,"span"),e.pXf(3,6),e.k0s()())}function va(t,i){1&t&&(e.j41(0,"div",42),e.nrm(1,"i",43),e.j41(2,"span"),e.pXf(3,7),e.k0s()())}function $a(t,i){1&t&&(e.j41(0,"div",42),e.nrm(1,"i",43),e.j41(2,"span"),e.pXf(3,8),e.k0s()())}function Ga(t,i){1&t&&(e.j41(0,"div",42),e.nrm(1,"i",43),e.j41(2,"span"),e.pXf(3,9),e.k0s()())}function Ua(t,i){1&t&&e.nrm(0,"th",93)}function ya(t,i){1&t&&e.nrm(0,"i",96)}function xa(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",94)(1,"div",95),e.DNE(2,ya,1,0,"i",96),e.j41(3,"button",97),e.nrm(4,"i",98),e.k0s(),e.j41(5,"mat-menu",99,0)(7,"button",100),e.bIt("click",function(){const n=e.eBV(_),a=n.$implicit,l=n.index,c=e.XpG();return e.Njj(c.removeEspaceLocatif(l,a))}),e.nrm(8,"i",101),e.EFF(9,"Supprimer"),e.k0s(),e.j41(10,"button",102),e.bIt("click",function(){const n=e.eBV(_).$implicit,a=e.XpG();return e.Njj(a.duplicateEspaceLocatif(n))}),e.nrm(11,"i",103),e.EFF(12,"Dupliquer"),e.k0s()(),e.j41(13,"button",104),e.bIt("click",function(){const n=e.eBV(_),a=n.$implicit,l=n.index,c=e.XpG();return e.Njj(c.openEspaceLocatifDialog(l,a))}),e.nrm(14,"i",105),e.k0s()()()}if(2&t){const _=i.index,o=e.sdS(6),n=e.XpG();
1e.R7$(2),e.vxM(2,n.espacesLocatifsNonResidentielsForm.get(e.eq3(2,Na,_)).invalid?2:-1),e.R7$(),e.Y8G("matMenuTriggerFor",o)}}function Xa(t,i){1&t&&(e.j41(0,"th",106)(1,"div"),e.pXf(2,10),e.k0s()())}function Va(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG().index,o=e.XpG();e.R7$(),e.JRh(o.getInvalidMessage(_,"NumeroEspLoc"))}}function ka(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",107)(1,"mat-form-field",108)(2,"input",109),e.bIt("blur",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.formControlOnBlur())}),e.k0s(),e.DNE(3,Va,2,1,"mat-error"),e.k0s()()}if(2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(2),e.vxM(3,o.espacesLocatifsNonResidentielsForm.get(e.eq3(3,Ia,_)).invalid?3:-1)}}function ja(t,i){1&t&&(e.j41(0,"th",110)(1,"div"),e.pXf(2,11),e.k0s()())}function Ba(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",111)(1,"mat-form-field",112)(2,"input",113),e.bIt("blur",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.formControlOnBlur())}),e.k0s()()()}2&t&&(e.Y8G("formGroupName",i.index),e.R7$(),e.Y8G("floatLabel","never"))}function Ya(t,i){1&t&&(e.j41(0,"th",93)(1,"div"),e.pXf(2,12),e.k0s()())}function za(t,i){if(1&t&&(e.j41(0,"mat-option",116),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value),e.R7$(),e.SpI(" ",_.viewValue," ")}}function Ha(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",114)(1,"mat-form-field",108)(2,"mat-select",115),e.bIt("blur",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.formControlOnBlur())}),e.Z7z(3,za,2,2,"mat-option",116,ma),e.k0s()()()}if(2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(o.etageEnum)}}function wa(t,i){1&t&&(e.j41(0,"th",93)(1,"div"),e.pXf(2,13),e.k0s()())}function qa(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG().index,o=e.XpG();e.R7$(),e.Lme(" Doit \xeatre entre ",o.espacesLocatifsNonResidentielsForm.get(e.eq3(2,A_,_)).errors.invalidRange.min.toFixed(1)," et ",o.espacesLocatifsNonResidentielsForm.get(e.eq3(4,A_,_)).errors.invalidRange.max.toFixed(1)," ")}}function Wa(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",114)(1,"mat-form-field",117)(2,"input",118),e.bIt("blur",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.formControlOnBlur())}),e.k0s(),e.DNE(3,qa,2,6,"mat-error"),e.k0s()()}if(2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(2),e.vxM(3,o.espacesLocatifsNonResidentielsForm.get(e.eq3(3,A_,_)).invalid?3:-1)}}function Ja(t,i){1&t&&(e.j41(0,"th",110)(1,"div"),e.pXf(2,14),e.k0s()())}function Ka(t,i){if(1&t&&(e.j41(0,"mat-option",120),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function Qa(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",111)(1,"mat-form-field",108)(2,"mat-select",119),e.bIt("blur",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.formControlOnBlur())})("selectionChange",function(){const n=e.eBV(_).index,a=e.XpG();return e.Njj(a.refreshSuperficieTotaleValidaty(n))}),e.Z7z(3,Ka,2,2,"mat-option",120,V),e.nI1(5,"ObjectKeysPipe"),e.k0s()()()}if(2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(e.bMT(5,4,o.uniteMesureSuperficieEnum))}}function Za(t,i){1&t&&(e.j41(0,"th",93)(1,"div"),e.pXf(2,15),e.k0s()())}function es(t,i){if(1&t&&(e.j41(0,"mat-option",116),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function ts(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",114)(1,"mat-form-field",121)(2,"mat-select",122),e.bIt("blur",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.formControlOnBlur())})("selectionChange",function(){const n=e.eBV(_).index,a=e.XpG();return e.Njj(a.launchCondOccValidation(n))}),e.Z7z(3,es,2,2,"mat-option",116,V),e.nI1(5,"ObjectKeysPipe"),e.k0s()()()}if(2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(e.bMT(5,4,o.conditionOccupationEnum))}}function _s(t,i){1&t&&(e.j41(0,"th",93)(1,"div"),e.pXf(2,16),e.k0s()())}function ns(t,i){if(1&t&&(e.j41(0,"mat-option",116),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function is(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",114)(1,"mat-form-field",112)(2,"mat-select",123),e.bIt("blur",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.formControlOnBlur())}),e.Z7z(3,ns,2,2,"mat-option",116,V),e.nI1(5,"ObjectKeysPipe"),e.k0s()()()}if(2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(e.bMT(5,4,o.potentielOccupationEnum))}}function os(t,i){1&t&&(e.j41(0,"th",93)(1,"div"),e.pXf(2,17),e.k0s()())}function as(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG().index,o=e.XpG();e.R7$(),e.JRh(o.getInvalidMessage(_,"DebutBail"))}}function ss(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",114)(1,"mat-form-field",112)(2,"input",124),e.bIt("dateChange",function(n){const a=e.eBV(_).index,l=e.XpG();return e.Njj(l.setDateFinValue(a,n))}),e.k0s(),e.nrm(3,"mat-datepicker-toggle",125)(4,"mat-datepicker",126,1),e.DNE(6,as,2,1,"mat-error"),e.k0s()()}if(2&t){const _=i.index,o=e.sdS(5),n=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("matDatepicker",o),e.R7$(),e.Y8G("for",o),e.R7$(),e.Y8G("startAt",n.getStartAt(_)),e.R7$(2),e.vxM(6,n.espace
1sLocatifsNonResidentielsForm.get(e.eq3(6,Ra,_)).invalid?6:-1)}}function Es(t,i){1&t&&(e.j41(0,"th",93)(1,"div"),e.pXf(2,18),e.k0s()())}function ls(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG().index,o=e.XpG();e.R7$(),e.JRh(o.getInvalidMessage(_,"FinBail"))}}function Ss(t,i){if(1&t&&(e.j41(0,"td",114)(1,"mat-form-field",112),e.nrm(2,"input",127)(3,"mat-datepicker-toggle",125)(4,"mat-datepicker",null,1),e.DNE(6,ls,2,1,"mat-error"),e.k0s()()),2&t){const _=i.index,o=e.sdS(5),n=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("matDatepicker",o),e.R7$(),e.Y8G("for",o),e.R7$(3),e.vxM(6,n.espacesLocatifsNonResidentielsForm.get(e.eq3(5,Ma,_)).invalid?6:-1)}}function cs(t,i){1&t&&(e.j41(0,"th",93)(1,"div"),e.pXf(2,19),e.k0s()())}function rs(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG().index,o=e.XpG();e.R7$(),e.JRh(o.getInvalidMessage(_,"LoyerAnnuel"))}}function Cs(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",114)(1,"mat-form-field",117)(2,"input",128),e.bIt("blur",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.formControlOnBlur())}),e.k0s(),e.DNE(3,rs,2,1,"mat-error"),e.k0s()()}if(2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(2),e.vxM(3,o.espacesLocatifsNonResidentielsForm.get(e.eq3(3,ga,_)).invalid?3:-1)}}function Ps(t,i){1&t&&(e.j41(0,"th",110)(1,"div"),e.pXf(2,20),e.k0s()())}function us(t,i){if(1&t&&(e.j41(0,"mat-option",116),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function ds(t,i){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Unit\xe9 obligatoire"),e.k0s())}function Os(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",111)(1,"mat-form-field",108)(2,"mat-select",129),e.bIt("blur",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.formControlOnBlur())}),e.Z7z(3,us,2,2,"mat-option",116,V),e.nI1(5,"ObjectKeysPipe"),e.k0s(),e.DNE(6,ds,2,0,"mat-error"),e.k0s()()}if(2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(e.bMT(5,5,o.uniteMesureLoyerEnum)),e.R7$(3),e.vxM(6,o.espacesLocatifsNonResidentielsForm.get(e.eq3(7,Da,_)).invalid?6:-1)}}function ps(t,i){1&t&&(e.j41(0,"th",93)(1,"div"),e.pXf(2,21),e.k0s()())}function Ts(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG().index,o=e.XpG();e.R7$(),e.JRh(o.getInvalidMessage(_,"LoyerAdditionnelAnnuel"))}}function fs(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",114)(1,"mat-form-field",121)(2,"input",130),e.bIt("blur",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.formControlOnBlur())}),e.k0s(),e.DNE(3,Ts,2,1,"mat-error"),e.k0s()()}if(2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(2),e.vxM(3,o.espacesLocatifsNonResidentielsForm.get(e.eq3(3,Fa,_)).invalid?3:-1)}}function Ls(t,i){if(1&t&&e.nrm(0,"vplus-header-checkbox",132),2&t){const _=e.XpG(2);e.Y8G("name","HasElectricite")("tableauForm",_.espacesLocatifsNonResidentielsForm)("getFunctionName","getEspacesLocatifsNonResidentiels")}}function As(t,i){if(1&t&&(e.j41(0,"th",131)(1,"div"),e.DNE(2,Ls,1,3,"vplus-header-checkbox",132),e.j41(3,"span"),e.pXf(4,22),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.vxM(2,_.espaceLocNREnumereService?-1:2)}}function ms(t,i){1&t&&e.nrm(0,"mat-checkbox",133),2&t&&e.Y8G("disableRipple",!0)}function Ns(t,i){if(1&t&&(e.j41(0,"mat-option",120),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function Is(t,i){if(1&t&&(e.j41(0,"mat-form-field",108)(1,"mat-select",134),e.Z7z(2,Ns,2,2,"mat-option",120,V),e.nI1(4,"ObjectKeysPipe"),e.k0s()()),2&t){const _=e.XpG(2);e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(e.bMT(4,3,_.typeServiceEnum))}}function Rs(t,i){if(1&t&&(e.j41(0,"td",111),e.DNE(1,ms,1,1,"mat-checkbox",133)(2,Is,5,5),e.k0s()),2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.vxM(1,o.espaceLocNREnumereService?2:1)}}function Ms(t,i){if(1&t&&e.nrm(0,"vplus-header-checkbox",132),2&t){const _=e.XpG(2);e.Y8G("name","HasChauffage")("tableauForm",_.espacesLocatifsNonResidentielsForm)("getFunctionName","getEspacesLocatifsNonResidentiels")}}function gs(t,i){if(1&t&&(e.j41(0,"th",135)(1,"div"),e.DNE(2,Ms,1,3,"vplus-header-checkbox",132),e.j41(3,"span"),e.pXf(4,23),e.k0s()()()),2&t){const _=e.XpG();
1e.R7$(2),e.vxM(2,_.espaceLocNREnumereService?-1:2)}}function Ds(t,i){1&t&&e.nrm(0,"mat-checkbox",136),2&t&&e.Y8G("disableRipple",!0)}function Fs(t,i){if(1&t&&(e.j41(0,"mat-option",120),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function hs(t,i){if(1&t&&(e.j41(0,"mat-form-field",108)(1,"mat-select",137),e.Z7z(2,Fs,2,2,"mat-option",120,V),e.nI1(4,"ObjectKeysPipe"),e.k0s()()),2&t){const _=e.XpG(2);e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(e.bMT(4,3,_.typeServiceEnum))}}function bs(t,i){if(1&t&&(e.j41(0,"td",114),e.DNE(1,Ds,1,1,"mat-checkbox",136)(2,hs,5,5),e.k0s()),2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.vxM(1,o.espaceLocNREnumereService?2:1)}}function vs(t,i){if(1&t&&e.nrm(0,"vplus-header-checkbox",132),2&t){const _=e.XpG(2);e.Y8G("name","HasClimatisation")("tableauForm",_.espacesLocatifsNonResidentielsForm)("getFunctionName","getEspacesLocatifsNonResidentiels")}}function $s(t,i){if(1&t&&(e.j41(0,"th",135)(1,"div"),e.DNE(2,vs,1,3,"vplus-header-checkbox",132),e.j41(3,"span"),e.pXf(4,24),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.vxM(2,_.espaceLocNREnumereService?-1:2)}}function Gs(t,i){1&t&&e.nrm(0,"mat-checkbox",138),2&t&&e.Y8G("disableRipple",!0)}function Us(t,i){if(1&t&&(e.j41(0,"mat-option",120),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function ys(t,i){if(1&t&&(e.j41(0,"mat-form-field",108)(1,"mat-select",139),e.Z7z(2,Us,2,2,"mat-option",120,V),e.nI1(4,"ObjectKeysPipe"),e.k0s()()),2&t){const _=e.XpG(2);e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(e.bMT(4,3,_.typeServiceEnum))}}function xs(t,i){if(1&t&&(e.j41(0,"td",114),e.DNE(1,Gs,1,1,"mat-checkbox",138)(2,ys,5,5),e.k0s()),2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.vxM(1,o.espaceLocNREnumereService?2:1)}}function Xs(t,i){if(1&t&&e.nrm(0,"vplus-header-checkbox",132),2&t){const _=e.XpG(2);e.Y8G("name","HasDeneigement")("tableauForm",_.espacesLocatifsNonResidentielsForm)("getFunctionName","getEspacesLocatifsNonResidentiels")}}function Vs(t,i){if(1&t&&(e.j41(0,"th",135)(1,"div"),e.DNE(2,Xs,1,3,"vplus-header-checkbox",132),e.j41(3,"span"),e.pXf(4,25),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.vxM(2,_.espaceLocNREnumereService?-1:2)}}function ks(t,i){1&t&&e.nrm(0,"mat-checkbox",140),2&t&&e.Y8G("disableRipple",!0)}function js(t,i){if(1&t&&(e.j41(0,"mat-option",120),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function Bs(t,i){if(1&t&&(e.j41(0,"mat-form-field",108)(1,"mat-select",141),e.Z7z(2,js,2,2,"mat-option",120,V),e.nI1(4,"ObjectKeysPipe"),e.k0s()()),2&t){const _=e.XpG(2);e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(e.bMT(4,3,_.typeServiceEnum))}}function Ys(t,i){if(1&t&&(e.j41(0,"td",114),e.DNE(1,ks,1,1,"mat-checkbox",140)(2,Bs,5,5),e.k0s()),2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.vxM(1,o.espaceLocNREnumereService?2:1)}}function zs(t,i){if(1&t&&e.nrm(0,"vplus-header-checkbox",132),2&t){const _=e.XpG(2);e.Y8G("name","HasAscenseur")("tableauForm",_.espacesLocatifsNonResidentielsForm)("getFunctionName","getEspacesLocatifsNonResidentiels")}}function Hs(t,i){if(1&t&&(e.j41(0,"th",135)(1,"div"),e.DNE(2,zs,1,3,"vplus-header-checkbox",132),e.j41(3,"span"),e.pXf(4,26),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.vxM(2,_.espaceLocNREnumereService?-1:2)}}function ws(t,i){1&t&&e.nrm(0,"mat-checkbox",142),2&t&&e.Y8G("disableRipple",!0)}function qs(t,i){if(1&t&&(e.j41(0,"mat-option",120),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function Ws(t,i){if(1&t&&(e.j41(0,"mat-form-field",108)(1,"mat-select",143),e.Z7z(2,qs,2,2,"mat-option",120,V),e.nI1(4,"ObjectKeysPipe"),e.k0s()()),2&t){const _=e.XpG(2);e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(e.bMT(4,3,_.typeServiceEnum))}}function Js(t,i){if(1&t&&(e.j41(0,"td",114),e.DNE(1,ws,1,1,"mat-checkbox",142)(2,Ws,5,5),e.k0s()),2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.vxM(1,o.espaceLocNREnumereService?2:1)}}function Ks(t,i){if(1&t&&e.nrm(0,"vplus-header-checkbox",132),2&t){const _=e.XpG(2);e.Y8G("name","HasAssurance")("tableauForm",_.espacesLocatifsNonResidentielsForm)("getFunctionName","getEspacesLocatifsNonResidentiels")}}function Qs(t,i){if(1&t&&(e.j41(0,"th",135)(1,"div"),e.DNE(2,Ks,1,3,"vplus-header-checkbox",132),e.j41(3,"span"),e.pXf(4,27),e.k0s()()()),2&t){const _=e.XpG();
1e.R7$(2),e.vxM(2,_.espaceLocNREnumereService?-1:2)}}function Zs(t,i){1&t&&e.nrm(0,"mat-checkbox",144),2&t&&e.Y8G("disableRipple",!0)}function eE(t,i){if(1&t&&(e.j41(0,"mat-option",120),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function tE(t,i){if(1&t&&(e.j41(0,"mat-form-field",108)(1,"mat-select",145),e.Z7z(2,eE,2,2,"mat-option",120,V),e.nI1(4,"ObjectKeysPipe"),e.k0s()()),2&t){const _=e.XpG(2);e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(e.bMT(4,3,_.typeServiceEnum))}}function _E(t,i){if(1&t&&(e.j41(0,"td",114),e.DNE(1,Zs,1,1,"mat-checkbox",144)(2,tE,5,5),e.k0s()),2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.vxM(1,o.espaceLocNREnumereService?2:1)}}function nE(t,i){if(1&t&&e.nrm(0,"vplus-header-checkbox",132),2&t){const _=e.XpG(2);e.Y8G("name","HasEauChaude")("tableauForm",_.espacesLocatifsNonResidentielsForm)("getFunctionName","getEspacesLocatifsNonResidentiels")}}function iE(t,i){if(1&t&&(e.j41(0,"th",135)(1,"div"),e.DNE(2,nE,1,3,"vplus-header-checkbox",132),e.j41(3,"span"),e.pXf(4,28),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.vxM(2,_.espaceLocNREnumereService?-1:2)}}function oE(t,i){1&t&&e.nrm(0,"mat-checkbox",146),2&t&&e.Y8G("disableRipple",!0)}function aE(t,i){if(1&t&&(e.j41(0,"mat-option",120),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function sE(t,i){if(1&t&&(e.j41(0,"mat-form-field",108)(1,"mat-select",147),e.Z7z(2,aE,2,2,"mat-option",120,V),e.nI1(4,"ObjectKeysPipe"),e.k0s()()),2&t){const _=e.XpG(2);e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(e.bMT(4,3,_.typeServiceEnum))}}function EE(t,i){if(1&t&&(e.j41(0,"td",114),e.DNE(1,oE,1,1,"mat-checkbox",146)(2,sE,5,5),e.k0s()),2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.vxM(1,o.espaceLocNREnumereService?2:1)}}function lE(t,i){if(1&t&&e.nrm(0,"vplus-header-checkbox",132),2&t){const _=e.XpG(2);e.Y8G("name","HasTaxeFonciere")("tableauForm",_.espacesLocatifsNonResidentielsForm)("getFunctionName","getEspacesLocatifsNonResidentiels")}}function SE(t,i){if(1&t&&(e.j41(0,"th",135)(1,"div"),e.DNE(2,lE,1,3,"vplus-header-checkbox",132),e.j41(3,"span"),e.pXf(4,29),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.vxM(2,_.espaceLocNREnumereService?-1:2)}}function cE(t,i){1&t&&e.nrm(0,"mat-checkbox",148),2&t&&e.Y8G("disableRipple",!0)}function rE(t,i){if(1&t&&(e.j41(0,"mat-option",120),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function CE(t,i){if(1&t&&(e.j41(0,"mat-form-field",108)(1,"mat-select",149),e.Z7z(2,rE,2,2,"mat-option",120,V),e.nI1(4,"ObjectKeysPipe"),e.k0s()()),2&t){const _=e.XpG(2);e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(e.bMT(4,3,_.typeServiceEnum))}}function PE(t,i){if(1&t&&(e.j41(0,"td",114),e.DNE(1,cE,1,1,"mat-checkbox",148)(2,CE,5,5),e.k0s()),2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.vxM(1,o.espaceLocNREnumereService?2:1)}}function uE(t,i){if(1&t&&e.nrm(0,"vplus-header-checkbox",132),2&t){const _=e.XpG(2);e.Y8G("name","HasTaxeNonResid")("tableauForm",_.espacesLocatifsNonResidentielsForm)("getFunctionName","getEspacesLocatifsNonResidentiels")}}function dE(t,i){if(1&t&&(e.j41(0,"th",135)(1,"div"),e.DNE(2,uE,1,3,"vplus-header-checkbox",132),e.j41(3,"span"),e.pXf(4,30),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.vxM(2,_.espaceLocNREnumereService?-1:2)}}function OE(t,i){1&t&&e.nrm(0,"mat-checkbox",150),2&t&&e.Y8G("disableRipple",!0)}function pE(t,i){if(1&t&&(e.j41(0,"mat-option",120),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function TE(t,i){if(1&t&&(e.j41(0,"mat-form-field",108)(1,"mat-select",151),e.Z7z(2,pE,2,2,"mat-option",120,V),e.nI1(4,"ObjectKeysPipe"),e.k0s()()),2&t){const _=e.XpG(2);e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(e.bMT(4,3,_.typeServiceEnum))}}function fE(t,i){if(1&t&&(e.j41(0,"td",114),e.DNE(1,OE,1,1,"mat-checkbox",150)(2,TE,5,5),e.k0s()),2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.vxM(1,o.espaceLocNREnumereService?2:1)}}function LE(t,i){if(1&t&&e.nrm(0,"vplus-header-checkbox",132),2&t){const _=e.XpG(2);e.Y8G("name","HasTaxeService")("tableauForm",_.espacesLocatifsNonResidentielsForm)("getFunctionName","getEspacesLocatifsNonResidentiels")}}function AE(t,i){if(1&t&&(e.j41(0,"th",135)(1,"div"),e.DNE(2,LE,1,3,"vplus-header-checkbox",132),e.j41(3,"span"),e.pXf(4,31),e.k0s()()()),2&t){const _=e.XpG();
1e.R7$(2),e.vxM(2,_.espaceLocNREnumereService?-1:2)}}function mE(t,i){1&t&&e.nrm(0,"mat-checkbox",152),2&t&&e.Y8G("disableRipple",!0)}function NE(t,i){if(1&t&&(e.j41(0,"mat-option",120),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function IE(t,i){if(1&t&&(e.j41(0,"mat-form-field",108)(1,"mat-select",153),e.Z7z(2,NE,2,2,"mat-option",120,V),e.nI1(4,"ObjectKeysPipe"),e.k0s()()),2&t){const _=e.XpG(2);e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(e.bMT(4,3,_.typeServiceEnum))}}function RE(t,i){if(1&t&&(e.j41(0,"td",114),e.DNE(1,mE,1,1,"mat-checkbox",152)(2,IE,5,5),e.k0s()),2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.vxM(1,o.espaceLocNREnumereService?2:1)}}function ME(t,i){if(1&t&&e.nrm(0,"vplus-header-checkbox",132),2&t){const _=e.XpG(2);e.Y8G("name","HasEntretienReparation")("tableauForm",_.espacesLocatifsNonResidentielsForm)("getFunctionName","getEspacesLocatifsNonResidentiels")}}function gE(t,i){if(1&t&&(e.j41(0,"th",135)(1,"div"),e.DNE(2,ME,1,3,"vplus-header-checkbox",132),e.j41(3,"span"),e.pXf(4,32),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.vxM(2,_.espaceLocNREnumereService?-1:2)}}function DE(t,i){1&t&&e.nrm(0,"mat-checkbox",154),2&t&&e.Y8G("disableRipple",!0)}function FE(t,i){if(1&t&&(e.j41(0,"mat-option",120),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function hE(t,i){if(1&t&&(e.j41(0,"mat-form-field",108)(1,"mat-select",155),e.Z7z(2,FE,2,2,"mat-option",120,V),e.nI1(4,"ObjectKeysPipe"),e.k0s()()),2&t){const _=e.XpG(2);e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(e.bMT(4,3,_.typeServiceEnum))}}function bE(t,i){if(1&t&&(e.j41(0,"td",114),e.DNE(1,DE,1,1,"mat-checkbox",154)(2,hE,5,5),e.k0s()),2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.vxM(1,o.espaceLocNREnumereService?2:1)}}function vE(t,i){if(1&t&&e.nrm(0,"vplus-header-checkbox",132),2&t){const _=e.XpG(2);e.Y8G("name","HasConciergerieCommun")("tableauForm",_.espacesLocatifsNonResidentielsForm)("getFunctionName","getEspacesLocatifsNonResidentiels")}}function $E(t,i){if(1&t&&(e.j41(0,"th",135)(1,"div"),e.DNE(2,vE,1,3,"vplus-header-checkbox",132),e.j41(3,"span"),e.pXf(4,33),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.vxM(2,_.espaceLocNREnumereService?-1:2)}}function GE(t,i){1&t&&e.nrm(0,"mat-checkbox",156),2&t&&e.Y8G("disableRipple",!0)}function UE(t,i){if(1&t&&(e.j41(0,"mat-option",120),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function yE(t,i){if(1&t&&(e.j41(0,"mat-form-field",108)(1,"mat-select",157),e.Z7z(2,UE,2,2,"mat-option",120,V),e.nI1(4,"ObjectKeysPipe"),e.k0s()()),2&t){const _=e.XpG(2);e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(e.bMT(4,3,_.typeServiceEnum))}}function xE(t,i){if(1&t&&(e.j41(0,"td",114),e.DNE(1,GE,1,1,"mat-checkbox",156)(2,yE,5,5),e.k0s()),2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.vxM(1,o.espaceLocNREnumereService?2:1)}}function XE(t,i){if(1&t&&e.nrm(0,"vplus-header-checkbox",132),2&t){const _=e.XpG(2);e.Y8G("name","HasConciergerieLocal")("tableauForm",_.espacesLocatifsNonResidentielsForm)("getFunctionName","getEspacesLocatifsNonResidentiels")}}function VE(t,i){if(1&t&&(e.j41(0,"th",135)(1,"div"),e.DNE(2,XE,1,3,"vplus-header-checkbox",132),e.j41(3,"span"),e.pXf(4,34),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.vxM(2,_.espaceLocNREnumereService?-1:2)}}function kE(t,i){1&t&&e.nrm(0,"mat-checkbox",158),2&t&&e.Y8G("disableRipple",!0)}function jE(t,i){if(1&t&&(e.j41(0,"mat-option",120),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function BE(t,i){if(1&t&&(e.j41(0,"mat-form-field",108)(1,"mat-select",159),e.Z7z(2,jE,2,2,"mat-option",120,V),e.nI1(4,"ObjectKeysPipe"),e.k0s()()),2&t){const _=e.XpG(2);e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(e.bMT(4,3,_.typeServiceEnum))}}function YE(t,i){if(1&t&&(e.j41(0,"td",114),e.DNE(1,kE,1,1,"mat-checkbox",158)(2,BE,5,5),e.k0s()),2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.vxM(1,o.espaceLocNREnumereService?2:1)}}function zE(t,i){if(1&t&&e.nrm(0,"vplus-header-checkbox",132),2&t){const _=e.XpG(2);e.Y8G("name","HasAmenagement")("tableauForm",_.espacesLocatifsNonResidentielsForm)("getFunctionName","getEspacesLocatifsNonResidentiels")}}function HE(t,i){if(1&t&&(e.j41(0,"th",160)(1,"div"),e.DNE(2,zE,1,3,"vplus-header-checkbox",132),e.j41(3,"span"),e.pXf(4,35),e.k0s()()()),2&t){const _=e.XpG();
1e.R7$(2),e.vxM(2,_.espaceLocNREnumereService?-1:2)}}function wE(t,i){1&t&&e.nrm(0,"mat-checkbox",161),2&t&&e.Y8G("disableRipple",!0)}function qE(t,i){if(1&t&&(e.j41(0,"mat-option",120),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function WE(t,i){if(1&t&&(e.j41(0,"mat-form-field",108)(1,"mat-select",162),e.Z7z(2,qE,2,2,"mat-option",120,V),e.nI1(4,"ObjectKeysPipe"),e.k0s()()),2&t){const _=e.XpG(2);e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(e.bMT(4,3,_.typeServiceEnum))}}function JE(t,i){if(1&t&&(e.j41(0,"td",114),e.DNE(1,wE,1,1,"mat-checkbox",161)(2,WE,5,5),e.k0s()),2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.vxM(1,o.espaceLocNREnumereService?2:1)}}function KE(t,i){1&t&&(e.j41(0,"th",93)(1,"div"),e.pXf(2,36),e.k0s()())}function QE(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG().index,o=e.XpG();e.R7$(),e.JRh(o.getInvalidMessage(_,"MontantAmenagement"))}}function ZE(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",114)(1,"mat-form-field",121)(2,"input",163),e.bIt("blur",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.formControlOnBlur())}),e.k0s(),e.DNE(3,QE,2,1,"mat-error"),e.k0s()()}if(2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(2),e.vxM(3,o.espacesLocatifsNonResidentielsForm.get(e.eq3(3,ha,_)).invalid?3:-1)}}function el(t,i){1&t&&e.nrm(0,"tr",164)}function tl(t,i){1&t&&e.nrm(0,"tr",165)}function _l(t,i){1&t&&(e.j41(0,"div",88),e.pXf(1,37),e.k0s())}function nl(t,i){1&t&&(e.j41(0,"mat-error",89),e.nrm(1,"i",96),e.j41(2,"span"),e.pXf(3,38),e.k0s()())}function il(t,i){1&t&&(e.j41(0,"mat-error",89),e.nrm(1,"i",96),e.j41(2,"span"),e.pXf(3,39),e.k0s()())}const ol={parse:{dateInput:"YYYY-MM-DD"},display:{dateInput:"YYYY-MM-DD",monthYearLabel:"MMM YYYY"}};function K_(){return t=>{if(t.parent&&t.parent.get("HasAmenagement")){if((!0===t.parent.get("HasAmenagement").value||t.parent.get("HasAmenagement").value===C.B.value)&&!t.value)return{requiredMontant:!0};if(!0!==t.parent.get("HasAmenagement").value&&t.parent.get("HasAmenagement").value!==C.B.value&&t.value)return{requiredService:!0}}return null}}function Q_(t,i){return _=>{if(_.parent&&i){const o=_.parent.get("HasElectricite").value===C.A.value||_.parent.get("HasChauffage").value===C.A.value||_.parent.get("HasClimatisation").value===C.A.value||_.parent.get("HasDeneigement").value===C.A.value||_.parent.get("HasAssurance").value===C.A.value||_.parent.get("HasTaxeFonciere").value===C.A.value||_.parent.get("HasEntretienReparation").value===C.A.value||_.parent.get("HasAmenagement").value===C.A.value||!t&&(_.parent.get("HasAscenseur").value===C.A.value||_.parent.get("HasEauChaude").value===C.A.value||_.parent.get("HasTaxeNonResid").value===C.A.value||_.parent.get("HasTaxeService").value===C.A.value||_.parent.get("HasConciergerieCommun").value===C.A.value||_.parent.get("HasConciergerieLocal").value===C.A.value),n=Number(_.value);if((0,G.gD_)(_.value)||""===_.value||0===n&&o||!o&&0!==n)return{requiredMontant:!0}}return null}}function wt(t){return i=>{if(i.parent&&i.parent.get("DebutBail")&&i.parent.get("FinBail")){const _=d()(i.parent.get("DebutBail").value),o=d()(i.parent.get("FinBail").value),n=d()(t);if(n.isBefore(_,"day")||n.isAfter(o,"day")||o.isSameOrBefore(_))return{invalidBailPer:!0}}return null}}function nt(){return t=>t.parent&&t.parent.get("CodeCondOccupation")&&!t.value&&(!t.parent.get("CodeCondOccupation").value||t.parent.get("CodeCondOccupation").value!==he.Vacant.value&&t.parent.get("CodeCondOccupation").value!==he.Proprietaire.value)?{required:!0}:null}let al=(()=>{var t;class i{constructor(o,n,a,l,c){this.appConfig=o,this.dialog=n,this.formBuilder=a,this.route=l,this.store=c,this.conditionOccupationEnum=he,this.potentielOccupationEnum=z_,this.updateEspacesLocatifsNonResidentielAction=Je,this.uniteMesureLoyerEnum=Yt,this.uniteMesureSuperficieEnum=be,this.typeServiceEnum=C,this.subs=new Bt.yU,this.maskUInt=G.hWx,this.gererAnneeReferenceCDE=!!this.appConfig.appConfig.paramList[$.fW.GererAnneeReferenceCDE],this.gererVisibiliteColonneCDE=!!this.appConfig.appConfig.paramList[$.fW.GererVisibiliteColonneCDE],this.espaceLocNREnumereService=!!this.appConfig.appConfig.paramList[$.fW.Esp
1aceLocNREnumereService],this.allowRefreshValidation=!1,this.refreshValidations=!0,this.destroyRef=(0,e.WQX)(e.abz),this.espLocNonResDataSourceSubject=new B_.t([]),this.espacesLocatifsEnums=this.route.snapshot.data.espacesLocatifsEnums,this.displayedColumns=this.gererVisibiliteColonneCDE?["Options","NumeroEspLoc","RaisonSociale","CodeCondOccupation","SuperficieTotale","UniteMesureSuperficie","DebutBail","FinBail","LoyerAnnuel","LoyerAdditionnelAnnuel","HasElectricite","HasChauffage","HasClimatisation","HasDeneigement","HasAssurance","HasTaxeFonciere","HasEntretienReparation","HasAmenagement","MontantAmenagement"]:["Options","NumeroEspLoc","RaisonSociale","Etage","CodeCondOccupation","SuperficieTotale","UniteMesureSuperficie","PotentielOccupation","DebutBail","FinBail","LoyerAnnuel","LoyerAdditionnelAnnuel","UniteMesureLoyer","HasElectricite","HasChauffage","HasClimatisation","HasDeneigement","HasAscenseur","HasAssurance","HasEauChaude","HasTaxeFonciere","HasTaxeNonResid","HasTaxeService","HasEntretienReparation","HasConciergerieCommun","HasConciergerieLocal","HasAmenagement","MontantAmenagement"]}ngOnInit(){let o;if(this.etageEnum=this.espacesLocatifsEnums.EnumEtage,this.initForm(),this.store.select(It).subscribe(n=>{o=n}),o){const n=d()(o);
1n.isValid&&(this.anneeReference=n.year(),this.startDate=new Date(this.anneeReference,7,1),this.dateReferenceBis=d()().set({year:this.anneeReference,month:6,date:1}).toDate())}this.subs.add(this.store.select(S_).pipe((0,St.s)(1)).subscribe({next:n=>{n.sort((a,l)=>a.NumeroEspLoc>l.NumeroEspLoc?1:-1),this.espLocNonResDataSourceSubject.next(n),this.espacesLocatifsNonResidentielsForm.patchValue(this.espLocNonResDataSourceSubject.value)}})),this.dataSource=new Mt.K(this.espLocNonResDataSourceSubject.asObservable()),this.noData$=this.dataSource.connect().pipe((0,y.T)(n=>0===n.length))}ngAfterViewInit(){this.store.select(kt).subscribe(o=>{this.refreshValidations&&o.touched&&(this.espacesLocatifsNonResidentielsForm.markAllAsTouched(),this.refreshValidations=!1)});for(let o=0;o<this.espacesLocatifsNonResidentielsForm.length;o++){const n=this.espacesLocatifsNonResidentielsForm.get([o,"HasAmenagement"]).value;!0===n||n===C.B.value?this.espacesLocatifsNonResidentielsForm.get([o,"MontantAmenagement"]).enable({emitEvent:!1}):this.espacesLocatifsNonResidentielsForm.get([o,"MontantAmenagement"]).disable({emitEvent:!1})}this.allowRefreshValidation=!0,this.formControlOnBlur()}initForm(){this.espacesLocatifsNonResidentielsForm=this.formBuilder.array([]),this.espacesLocatifsNonResidentielsForm.setDefaultControlBuilder(this.createEspaceLocatifNonResidentielGroup.bind(this))}createEspaceLocatifNonResidentielGroup(o=!0){const n=new s.J3(this.gererVisibiliteColonneCDE?{id:new s.hs("",s.k0.required),RaisonSociale:new s.hs("",s.k0.required),NumeroEspLoc:new s.hs("",{validators:[t=>{if(t.value){const i=t.value;if(i.length>10)return{lengthGreaterThan10:!0};const _=t.parent.parent;if(_){let o=0;for(let n=0;n<_.length;n++){const a=_.get([n,"NumeroEspLoc"]);if(a&&a.value&&a.value.toString()===i.toString()&&(o++,o>1))return{doublon:!0}}}}return null},s.k0.required],updateOn:"blur"}),SuperficieTotale:new s.hs("",[this.createSuperficieInvalidRangeValidatorFn(.1,99999.9,"UniteMesureSuperficie")]),UniteMesureSuperficie:new s.hs(""),CodeCondOccupation:new s.hs("",s.k0.required),DebutBail:new s.hs("",{validators:[nt(),wt(this.dateReferenceBis),(0,G.N8$)()],updateOn:"blur"}),FinBail:new s.hs("",{validators:[nt(),wt(this.dateReferenceBis),(0,G.N8$)()],updateOn:"blur"}),LoyerAnnuel:new s.hs("",[nt(),(0,X.NN)(),(0,X.zl)(0,9999999)]),LoyerAdditionnelAnnuel:new s.hs("",[Q_(this.gererVisibiliteColonneCDE,this.espaceLocNREnumereService),(0,X.zl)(0,9999999)]),HasElectricite:new s.hs(""),HasChauffage:new s.hs(""),HasClimatisation:new s.hs(""),HasDeneigement:new s.hs(""),HasAssurance:new s.hs(""),HasTaxeFonciere:new s.hs(""),HasEntretienReparation:new s.hs(""),HasAmenagement:new s.hs(""),MontantAmenagement:new s.hs("",[K_(),(0,X.NN)(),(0,X.zl)(0,9999999)])}:{id:new s.hs("",s.k0.required),RaisonSociale:new s.hs("",s.k0.required),NumeroEspLoc:new s.hs("",{validators:[t=>{if(t.value){const i=t.value;if(i.length>10)return{lengthGreaterThan10:!0};const _=t.parent.parent;if(_){let o=0;for(let n=0;n<_.length;n++){const a=_.get([n,"NumeroEspLoc"]);if(a&&a.value&&a.value.toString()===i.toString()&&(o++,o>1))return{doublon:!0}}}}return null},s.k0.required],updateOn:"blur"}),Etage:new s.hs("",[s.k0.required]),SuperficieTotale:new s.hs("",[this.createSuperficieInvalidRangeValidatorFn(.1,99999.9,"UniteMesureSuperficie")]),UniteMesureLoyer:new s.hs("",{validators:[nt()],updateOn:"blur"}),UniteMesureSuperficie:new s.hs(""),CodeCondOccupation:new s.hs("",s.k0.required),PotentielOccupation:new s.hs("",[s.k0.required]),DebutBail:new s.hs("",{validators:[nt(),wt(this.dateReferenceBis),(0,G.N8$)()],updateOn:"blur"}),FinBail:new s.hs("",{validators:[nt(),wt(this.dateReferenceBis),(0,G.N8$)()],updateOn:"blur"}),LoyerAnnuel:new s.hs("",[nt(),(0,X.NN)(),(0,X.zl)(0,9999999)]),LoyerAdditionnelAnnuel:new s.hs("",[Q_(this.gererVisibiliteColonneCDE,this.espaceLocNREnumereService),(0,X.zl)(0,9999999)]),HasElectricite:new s.hs(""),HasChauffage:new s.hs(""),HasClimatisation:new s.hs(""),HasDeneigement:new s.hs(""),HasAscenseur:new s.hs(""),HasAssurance:new s.hs(""),HasEauChaude:new s.hs(""),HasTaxeFonciere:new s.hs(""),HasTaxeNonResid:new s.hs(""),HasTaxeService:new s.hs(""),HasEntretienReparation:new s.hs(""),HasConciergerieCommun:new s.hs(""),HasConciergerieLocal:new s.hs(""),HasAmenagement:new s.hs(""),MontantAmenagement:new s.hs("",[K_(),(0,X.NN)(),(0,X.zl)(0,9999999)])});return this.subs.add(n.get("HasElectricite").valueChanges.subscribe({next:a=>{this.RefreshValidityLoyerAdditionnelAnnuel(n),this.formControlOnBlur()}})),this.subs.add(n.get("HasChauffage").valueChanges.subscribe({next:a=>{this.RefreshValidityLoyerAdditionnelAnnuel(n),this.formControlOnBlur()}}
1)),this.subs.add(n.get("HasClimatisation").valueChanges.subscribe({next:a=>{this.RefreshValidityLoyerAdditionnelAnnuel(n),this.formControlOnBlur()}})),this.subs.add(n.get("HasDeneigement").valueChanges.subscribe({next:a=>{this.RefreshValidityLoyerAdditionnelAnnuel(n),this.formControlOnBlur()}})),this.subs.add(n.get("HasAssurance").valueChanges.subscribe({next:a=>{this.RefreshValidityLoyerAdditionnelAnnuel(n),this.formControlOnBlur()}})),this.subs.add(n.get("HasTaxeFonciere").valueChanges.subscribe({next:a=>{this.RefreshValidityLoyerAdditionnelAnnuel(n),this.formControlOnBlur()}})),this.subs.add(n.get("HasEntretienReparation").valueChanges.subscribe({next:a=>{this.RefreshValidityLoyerAdditionnelAnnuel(n),this.formControlOnBlur()}})),this.subs.add(n.get("HasAmenagement").valueChanges.subscribe({next:a=>{!0===a||a===C.B.value?n.get("MontantAmenagement").enable({emitEvent:!1}):(n.get("MontantAmenagement").setValue(null),n.get("MontantAmenagement").disable({emitEvent:!1})),n.get("MontantAmenagement").updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this.formControlOnBlur()}})),this.gererVisibiliteColonneCDE||(this.subs.add(n.get("HasTaxeService").valueChanges.subscribe({next:a=>{this.RefreshValidityLoyerAdditionnelAnnuel(n),this.formControlOnBlur()}})),this.subs.add(n.get("HasAscenseur").valueChanges.subscribe({next:a=>{this.RefreshValidityLoyerAdditionnelAnnuel(n),this.formControlOnBlur()}})),this.subs.add(n.get("HasEauChaude").valueChanges.subscribe({next:a=>{this.RefreshValidityLoyerAdditionnelAnnuel(n),this.formControlOnBlur()}})),this.subs.add(n.get("HasTaxeNonResid").valueChanges.subscribe({next:a=>{this.RefreshValidityLoyerAdditionnelAnnuel(n),this.formControlOnBlur()}})),this.subs.add(n.get("HasConciergerieCommun").valueChanges.subscribe({next:a=>{this.RefreshValidityLoyerAdditionnelAnnuel(n),this.formControlOnBlur()}})),this.subs.add(n.get("HasConciergerieLocal").valueChanges.subscribe({next:a=>{this.RefreshValidityLoyerAdditionnelAnnuel(n),this.formControlOnBlur()}}))),o&&(this.subs.add(n.valueChanges.subscribe(a=>this.updateEspaceLocatif(a))),this.subs.add(n.get("NumeroEspLoc").valueChanges.subscribe(()=>{this.refreshValidations||this.espacesLocatifsNonResidentielsForm.controls.forEach(a=>{a.get("NumeroEspLoc").updateValueAndValidity({onlySelf:!0,emitEvent:!1}),a.updateValueAndValidity({onlySelf:!0})})})),n.get("FinBail").valueChanges.pipe((0,U.pQ)(this.destroyRef)).subscribe({next:()=>{var a;null===(a=n.get("DebutBail"))||void 0===a||a.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}}),n.get("DebutBail").valueChanges.pipe((0,U.pQ)(this.destroyRef)).subscribe({next:()=>{var a;null===(a=n.get("FinBail"))||void 0===a||a.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}})),this.duplicateSrc?(this.duplicateSrc.HasAmenagement||n.get("MontantAmenagement").disable({emitEvent:!1}),this.duplicateSrc=null):n.get("MontantAmenagement").disable({emitEvent:!1}),n}RefreshValidityLoyerAdditionnelAnnuel(o){o&&(o.get("LoyerAdditionnelAnnuel").setValue(o.get("LoyerAdditionnelAnnuel").value),o.get("LoyerAdditionnelAnnuel").updateValueAndValidity({onlySelf:!0,emitEvent:!1}))}addEspaceLocatif(){const o=new Aa,n=this.createEspaceLocatifNonResidentielGroup();n.patchValue(o),this.datasourceAddElement(o),this.espacesLocatifsNonResidentielsForm.push(n),this.store.dispatch(ue({payload:o}))}updateEspaceLocatif(o){this.datasourceUpdateElement(o),this.store.dispatch(Je({payload:o}))}duplicateEspaceLocatif(o){this.duplicateSrc=o;const n=(0,_e.cloneDeep)(o);n.id=(0,G.SiN)();const a=this.createEspaceLocatifNonResidentielGroup();a.patchValue(n),this.datasourceAddElement(n),this.espacesLocatifsNonResidentielsForm.push(a),this.store.dispatch(ue({payload:n}))}removeEspaceLocatif(o,n){this.dialog.open(q_,{width:$.Uq.Small,panelClass:"delete-dialog"}).afterClosed().subscribe(l=>{!0===l.confirm&&(this.datasourceRemoveElement(o),this.espacesLocatifsNonResidentielsForm.patchValue(this.espLocNonResDataSourceSubject.value),this.store.dispatch(Ut({payload:n})))})}openEspaceLocatifDialog(o,n){const a=this.dialog.open(Vo,{width:$.Uq.FullScreen,height:$.gw.FullScreen,data:{espaceLocatifId:n.id,context:this,emptyFrmGrp:this.createEspaceLocatifNonResidentielGroup(!1),espaceLocatif:n,dateReferenceBis:this.dateReferenceBis,etageEnum:this.etageEnum}});this.subs.add(a.afterClosed().subscribe(l=>{l&&!0===l.confirm&&(this.updateEspaceLocatif(l.espaceLocatifModified),this.espacesLocatifsNonResidentielsForm.get([o]).patchValue(l.espaceLocatifModified),!0===l.HasAmenagement||l.HasAmenagement===C.B.value?this.espacesLocatifsNonResidentielsForm.get([o,"MontantAmenagement"]).enable({emitEvent:!1}):this.espacesLocatifsNonResidentielsForm.get([o,"MontantAmenagement"]).disable({emitEvent:!1}))}))}datasourceAddElement(o){const n=(0,_e.cloneDeep)(this.espLocNonResDataSourceSubject.value);n.push(o),this.espLocNonResDataSourceSubject.next(n)}datasourceUpdateElement(o){const n=(0,_e.cloneDeep)(this.espLocNonResDataSourceSubject.value),a=n.findIndex(l=>l.id===o.id);n[a]=o,this.espLocNonResDataSourceSubject.next(n)}datasourceRemoveElement(o){const n=(0,_e.cloneDeep)(this.espLocNonResDataSourceSubject.value);n.splice(o,1),this.espLocNonResDataSourceSubject.next(n)}getStartAt(o){let n=this.startDate;if(this.espacesLocatifsNonResidentielsForm.get([o,"DebutBail"]).value){const a=d()(this.espacesLocatifsNonResidentielsForm.get([o,"DebutBail"]).value,"YYYY-MM-DD").toString();n=new Date(a)}return n}setDateFinValue(o,n){if(n.value&&""!==n.value){const a=d()(n.value),l=d()(this.espacesLocatifsNonResidentielsForm.get([o,"FinBail"]).value);a.format("YYYY-MM-DD")!==l.add(1,"year").add(-1,"day").format("YYYY-MM-DD")&&(this.espacesLocatifsNonResidentielsForm.get([o,"FinBail"]).setValue(a.add(1,"year").add(-1,"day")),this.espacesLocatifsNonResidentielsForm.get([o,"DebutBail"]).setValue(n.value))}else this.espacesLocatifsNonResidentielsForm.get([o,"FinBail"]).setValue(n.value),this.espacesLocatifsNonResidentielsForm.get([o,"DebutBail"]).setValue(n.value);this.espacesLocatifsNonResidentielsForm.get([o,"FinBail"]).markAllAsTouched()}launchCondOccValidation(o){this.espacesLocatifsNonResidentielsForm.get([o,"FinBail"]).updateV
1alueAndValidity(),this.espacesLocatifsNonResidentielsForm.get([o,"DebutBail"]).updateValueAndValidity(),this.espacesLocatifsNonResidentielsForm.get([o,"LoyerAnnuel"]).updateValueAndValidity(),this.espacesLocatifsNonResidentielsForm.get([o,"UniteMesureLoyer"]).updateValueAndValidity()}refreshSuperficieTotaleValidaty(o){this.espacesLocatifsNonResidentielsForm.get([o,"SuperficieTotale"]).updateValueAndValidity()}getDatePlaceholder(o,n){return this.espacesLocatifsNonResidentielsForm.get([o,n]).value?this.espacesLocatifsNonResidentielsForm.get([o,n]).value:"Choisir une date"}formControlOnBlur(){this.allowRefreshValidation&&(this.espacesLocatifsNonResidentielsForm.markAsTouched(),this.store.dispatch(dt({payload:{touched:!0,valid:this.espacesLocatifsNonResidentielsForm.valid}})))}trackByFn(o){return o.Id}hasInvalidBailPeriode(){let o=!1;for(let n=0;n<this.espacesLocatifsNonResidentielsForm.length;n++){const a=this.espacesLocatifsNonResidentielsForm.get([n,"DebutBail"]);if(a&&a.invalid&&a.errors&&a.errors.invalidBailPer){o=!0;break}}return o}getInvalidMessage(o,n){const a=this.espacesLocatifsNonResidentielsForm.get([o,n]).value;switch(n){case"NumeroEspLoc":return a&&""!==a?a.length>10?"10 caract\xE9res max":"No. doit \xEAtre unique":"Obligatoire";case"DebutBail":case"FinBail":return a&&""!==a?this.isPeriodeBailValid(o)?this.isdateBailValid(o)?"Date invalide":"D\xE9but bail >= Fin bail":"Date hors p\xE9riode":"Date obligatoire";case"LoyerAnnuel":return a&&""!==a?isNaN(a)?"Loyer doit \xEAtre un entier":"Doit \xeatre entre 0 et 9999999":"Loyer obligatoire";case"MontantAmenagement":{const l=!0===this.espacesLocatifsNonResidentielsForm.get([o,"HasAmenagement"]).value||this.espacesLocatifsNonResidentielsForm.get([o,"HasAmenagement"]).value===C.B.value;return a&&""!==a||!l?isNaN(a)?"Loyer doit \xEAtre un entier":"Doit \xeatre entre 0 et 9999999":"Champ obligatoire"}case"LoyerAdditionnelAnnuel":{const l=this.espacesLocatifsNonResidentielsForm.get([o,"HasElectricite"]).value===C.A.value||this.espacesLocatifsNonResidentielsForm.get([o,"HasChauffage"]).value===C.A.value||this.espacesLocatifsNonResidentielsForm.get([o,"HasClimatisation"]).value===C.A.value||this.espacesLocatifsNonResidentielsForm.get([o,"HasDeneigement"]).value===C.A.value||this.espacesLocatifsNonResidentielsForm.get([o,"HasAssurance"]).value===C.A.value||this.espacesLocatifsNonResidentielsForm.get([o,"HasTaxeFonciere"]).value===C.A.value||this.espacesLocatifsNonResidentielsForm.get([o,"HasEntretienReparation"]).value===C.A.value||this.espacesLocatifsNonResidentielsForm.get([o,"HasAmenagement"]).value===C.A.value||!this.gererVisibiliteColonneCDE&&(this.espacesLocatifsNonResidentielsForm.get([o,"HasAscenseur"]).value===C.A.value||this.espacesLocatifsNonResidentielsForm.get([o,"HasEauChaude"]).value===C.A.value||this.espacesLocatifsNonResidentielsForm.get([o,"HasTaxeNonResid"]).value===C.A.value||this.espacesLocatifsNonResidentielsForm.get([o,"HasTaxeService"]).value===C.A.value||this.espacesLocatifsNonResidentielsForm.get([o,"HasConciergerieCommun"]).value===C.A.value||this.espacesLocatifsNonResidentielsForm.get([o,"HasConciergerieLocal"]).value===C.A.value),c=Number(a);if((0,G.gD_)(a)||""===a)return "Champ obligatoire";if(!this.espaceLocNREnumereService)return"Doit \xeatre entre 0 et 9999999";if(0===c&&l)return "Valeur non nulle requise";if(!l&&0!==c)return "Aucun service additionnel"}}return""}isPeriodeBailValid(o){const n=this.espacesLocatifsNonResidentielsForm.get([o,"DebutBail"]).value,a=this.espacesLocatifsNonResidentielsForm.get([o,"FinBail"]).value;if(n&&a){const l=d()(n),c=d()(a),O=d()(this.dateReferenceBis);if(O.isBefore(l,"day")||O.isAfter(c,"day"))return!1}return!0}isdateBailValid(o){const n=this.espacesLocatifsNonResidentielsForm.get([o,"DebutBail"]).value,a=this.espacesLocatifsNonResidentielsForm.get([o,"FinBail"]).value;return!(n&&a&&d()(a).isSameOrBefore(n))}createSuperficieInvalidRangeValidatorFn(o,n,a){return l=>{var c;const O=null===(c=l.parent)||void 0===c||null===(c=c.get(a))||void 0===c?void 0:c.value;if(!O||(0,G.gD_)(l.value)||""===l.value)return null;const A=10.763910416709722,m=parseFloat(l.value),T=O===be.PiCarre.value?o*A:o,g=O===be.PiCarre.value?n*A:n;return m>
1=T&&m<=g?null:{invalidRange:{min:T,max:g,actual:m}}}}ngOnDestroy(){this.subs.unsubscribe()}}return(t=i).\u0275fac=function(o){return new(o||t)(e.rXU(De.o),e.rXU(ae.bZ),e.rXU(s.ze),e.rXU(Ze.nX),e.rXU(E.il))},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-espaces-locatifs-non-residentiels"]],features:[e.Jv_([{provide:H.MJ,useClass:Fe.QH,deps:[H.Ju,Fe.ij]},{provide:H.de,useValue:ol}])],decls:119,vars:21,consts:()=>{let _,o,n,a,l,c,O,A,m,T,g,F,h,L,I,M,k,j,B,Y,R,W,J,K,N,Ee,le,Se,ce,re,Ce,f,Ge,Ue,ye,xe,Xe,Ve,ke,je,Be,Ye,ze,He,we,qe,P,u,cn,rn,Cn,Pn,un,dn,On,pn,Tn,fn,Ln,An,mn,Nn,In,Rn,Mn;return _="Espaces locatifs non-r\xE9sidentiels",o=" Veuillez remplir les loyers en vigueur au ",n=" N'oubliez pas de d\xE9filer la grille vers la droite pour remplir tous les champs d'un espace locatif.",a="Ajouter un espace locatif",l=" Certaines informations provenant de notre base de donn\xE9es sont d\xE9j\xE0 inscrites. Nous vous demandons de les v\xE9rifier et de les corriger s'il y a lieu en portant une attention particuli\xE8re aux services qui sont inclus dans le loyer mensuel. ",c=" A : Service inclus au loyer additionnel.",O=" B : Service inclus au loyer de base.",A=" L : Service pay\xE9 par le locataire",m="N\xB0 Local",T="Num\xE9ro",g="Nom de commerce",F="Nom de commerce",h="\xC9tage",L="\xC9tage",I="Superficie totale",M="Superficie",k="Unit\xE9 Superficie",j="Unit\xE9 Superficie",B="Cond. occupation",Y="Condition d'occupation",R="Potentiel d'occupation",W="Potentiel d'occupation",J="D\xE9but du bail",K="Choisir une date",N="Fin du bail",Ee="Choisir une date",le="Loyer de base annuel",Se="Loyer",ce="Unit\xE9 loyer",re="Unit\xE9 Loyer",Ce="Loyer additionnel annuel",f="Loyer additionnel",Ge="\xC9lectricit\xE9",Ue="Type service",ye="Chauffage",xe="Type service",Xe="Climatisation",Ve="Type service",ke="D\xE9neigement",je="Type service",Be="Ascenseur",Ye="Type service",ze="Assurance",He="Type service",we="Eau chaude",qe="Type service",P="Taxes fonci\xE8res et scolaire",u="Type service",cn="Taxes non-r\xE9sidentielles",rn="Type service",Cn="Taxes services",Pn="Type service",un="Entretien et r\xE9paration",dn="Type service",On="Conciergerie (esp. commun)",pn="Type service",Tn="Conciergerie (local)",fn="Type service",Ln="Am\xE9nagement",An="Type service",mn="Am\xE9nagement du local pay\xE9 par propri\xE9taire ($)",Nn="Montant",In=" Veuillez ne pas remplir cette section si vous n'avez pas d'espace locatif commercial ",Rn="Un ou plusieurs champs obligatoires sont manquants",Mn="Veuillez entrer une date de bail valide",[["optionsMenu","matMenu"],["picker",""],_,o,n,a,l,c,O,A,m,g,h,I,k,B,R,J,N,le,ce,Ce,Ge,ye,Xe,ke,Be,ze,we,P,cn,Cn,un,On,Tn,Ln,mn,In,Rn,Mn,[1,"form-section-content"],[3,"formGroup"],[1,"margin-top-1"],[1,"icon-form-info"],[1,"bold-primary-color"],[1,"form-sub-section","form-section"],[1,"mat-mdc-table-form-container","min-height-table","margin-top-1","error-small-nowrap"],["mat-table","",1,"mat-mdc-table-form","with-header-rotate","esp-loc-table-form",3,"dataSource","trackBy"],["matColumnDef","Options","sticky",""],["mat-header-cell","",4,"matHeaderCellDef"],["class","options-column","mat-cell","",4,"matCellDef"],["matColumnDef","NumeroEspLoc","sticky",""],["mat-header-cell","","class","first-column-sticky",4,"matHeaderCellDef"],["mat-cell","","class","first-column-sticky",3,"formGroupName",4,"matCellDef"],["matColumnDef","RaisonSociale"],["mat-header-cell","","class","padding-left-1",4,"matHeaderCellDef"],["mat-cell","","class","padding-left-1",3,"formGroupName",4,"matCellDef"],["matColumnDef","Etage"],["mat-cell","",3,"formGroupName",4,"matCellDef"],["matColumnDef","SuperficieTotale"],["matColumnDef","UniteMesureSuperficie"],["matColumnDef","CodeCondOccupation"],["matColumnDef","PotentielOccupation"],["matColumnDef","DebutBail"],["matColumnDef","FinBail"],["matColumnDef","LoyerAnnuel"],["matColumnDef","UniteMesureLoyer"],["matColumnDef","LoyerAdditionnelAnnuel"],["matColumnDef","HasElectricite"],["mat-header-cell","","class","table-header-rotate first",4,"matHeaderCellDef"],["matColumnDef","HasChauffage"],["mat-header-cell","","class","table-header-rotate",4,"matHeaderCellDef"],["matColumnDef","HasClimatisation"],["matColumnDef","HasDeneigement"],["matColumnDef","HasAscenseur"],["matColumnDef","HasAssurance"],["matColumnDef","HasEauChaude"],["matColumnDef","HasTaxeFonciere"],["matColumnDef","HasTaxeNonResid"],["matColumnDef","HasTaxeService"],["matColumnDef","HasEntretienReparation"],["matColumnDef","HasConciergerieCommun"],["matColumnDef","HasConciergerieLocal"],["matColumnDef","HasAmenagement"],["mat-header-cell","","class","table-header-rotate","style","padding-right: 72px",4,"matHeaderCellDef"],["matColumnDef","MontantAmenagement"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mat-error","no-records","margin-top-1"],[1,"group-error-label","margin-top-1","margin-bottom-1"],[1,"mini-fab-div"],["type","button","mat-mini-fab","",1,"primary",3,"click"],[1,"icon-add"],["mat-header-cell",""],["mat-cell","",1,"options-column"],[1,"action-icons-table"],[1,"icon-invalid"],["type","button","mat-icon-button","",3,"matMenuTriggerFor"],[1,"icon-more"],[1,"options-menu"],["type","button","mat-menu-item","",1,"delete-menu-item",3,"click"],[1,"icon-poubelle"],["type","button","mat-menu-item","",3,"click"],[1,"icon-duppliquer"],["type","button","mat-icon-button","",3,"click"],[1,"icon-editer-fiche"],["mat-header-cell","",1,"first-column-sticky"],["mat-cell","",1,"first-column-sticky",3,"formGroupName"],[1,"table-x-small-field",3,"floatLabel"],["autoComplete","off","type","text","matInput","","formControlName","NumeroEspLoc","placeholder",T,"mat-no-asterisk","",3,"blur"],["mat-header-cell","",1,"padding-left-1"],["mat-cell","",1,"padding-left-1",3,"formGroupName"],[1,"table-medium-field",3,"floatLabel"],["onmouseover","this.title = this.value","autoComplete","off","type","text","matInput","","formControlName","RaisonSociale","placeholder",F,"mat-no-asterisk","",3,"blur"],["mat-cell","",3,"formGroupName"],["formControlName","Etage","placeholder",L,3,"blur","panelWidth","hideSingleSelectionIndicator"],["mat-no-asterisk","",3,"value"],[1,"table-small-field",3,"floatLabel"],["autoComplete","off","type","string","min","0","matInput","","formControlName","SuperficieTotale","placeholder",M,"vplusAppOneDigitDecimalNumber","",3,"blur"],["formControlName","UniteMesureSuperficie","placeholder",j,3,"blur","selectionChange","panelWidth","hideSingleSelectionIndicator"],[3,"value"],[3,"floatLabel"],["formControlName","CodeCondOccupation","placeholder",Y,3,"blur","selectionChange","panelWidth","hideSingleSelectionIndicator"],["formControlName","PotentielOccupation","placeholder",W,3,"blur","panelWidth","hideSingleSelectionIndicator"],["formControlName","DebutBail","matInput","","placeholder",K,3,"dateChange","matDatepicker"],["matSuffix","",3,"for"],[3,"startAt"],["formControlName","FinBail","matInput","","placeholder",Ee,3,"matDatepicker"],["autoComplete","off","type","text","min","0","matInput","","nombreOnly","","formControlName","LoyerAnnuel","placeholder",Se,"mat-no-asterisk","",2,"text-align","right",3,"blur"],["formControlName","UniteMesureLoyer","placeholder",re,3,"blur","panelWidth","hideSingleSelectionIndicator"],["autoComplete","off","type","text","min","0","matInput","","nombreOnly","","formControlName","LoyerAdditionnelAnnuel","placeholder",f,"mat-no-asterisk","",2,"text-align","right",3,"blur"],["mat-header-cell","",1,"table-header-rotate","first"],[3,"name","tableauForm","getFunctionName"],["formControlName","HasElectricite",3,"disableRipple"],["formControlName","HasElectricite","placeholder",Ue,3,"panelWidth","hideSingleSelectionIndicator"],["mat-header-cell","",1,"table-header-rotate"],["formControlName","HasChauffage",3,"disableRipple"],["formControlName","HasChauffage","placeholder",xe,3,"panelWidth","hideSingleSelectionIndicator"],["formControlName","HasClimatisation",3,"disableRipple"],["formControlName","HasClimatisation","placeholder",Ve,3,"panelWidth","hideSingleSelectionIndicator"],["formControlName","HasDeneigement",3,"disableRipple"],["formControlName","HasDeneigement","placeholder",je,3,"panelWidth","hideSingleSelectionIndicator"],["formControlName","HasAscenseur",3,"disableRipple"],["formControlName","HasAscenseur","placeholder",Ye,3,"panelWidth","hideSingleSelectionIndicator"],["formControlName","HasAssurance",3,"disableRipple"],["formControlName","HasAssurance","placeholder",He,3,"panelWidth","hideSingleSelectionIndicator"],["formControlName","HasEauChaude",3,"disableRipple"],["formControlName","HasEauChaude","placeholder",qe,3,"panelWidth","hideSingleSelectionIndicator"],["formControlName","HasTaxeFonciere",3,"disableRipple"],["formControlName","HasTaxeFonciere","placeholder",u,3,"panelWidth","hideSingleSelectionIndicator"],["formControlName","HasTaxeNonResid",3,"disableRipple"],["formControlName","HasTaxeNonResid","placeholder",rn,3,"panelWidth","hideSingleSelectionIndicator"],["formControlName","HasTaxeService",3,"disableRipple"],["formControlName","HasTaxeService","placeholder",Pn,3,"panelWidth","hideSingleSelectionIndicator"],["formControlName","HasEntretienReparation",3,"disableRipple"],["formControlName","HasEntretienReparation","placeholder",dn,3,"panelWidth","hideSingleSelectionIndicator"],["formControlName","HasConciergerieCommun",3,"disableRipple"],["formControlName","HasConciergerieCommun","placeholder",pn,3,"panelWidth","hideSingleSelectionIndicator"],["formControlName","HasConciergerieLocal",3,"disableRipple"],["formControlName","HasConciergerieLocal","placeholder",fn,3,"panelWidth","hideSingleSelectionIndicator"],["mat-header-cell","",1,"table-header-rotate",2,"padding-right","72px"],["formControlName","HasAmenagement",3,"disableRipple"],["formControlName","HasAmenagement","placeholder",An,3,"panelWidth","hideSingleSelectionIndicator"],["autoComplete","off","type","number","min","0","oninput","this.value = Math.abs(this.value)","matInput","","nombreOnly","","formControlName","MontantAmenagement","placeholder",Nn,"mat-no-asterisk","",2,"text-align","right",3,"blur"],["mat-header-row",""],["mat-row",""]]},template:function(o,n){1&o&&(e.j41(0,"div",40)(1,"form",41)(2,"h1"),e.pXf(3,2),e.k0s(),e.nrm(4,"br"),e.j41(5,"div",42),e.nrm(6,"i",43),e.j41(7,"span"),e.pXf(8,3),e.k0s(),e.j41(9,"span",44),e.EFF(10),e.nI1(11,"vplusMoment"),e.k0s(),e.EFF(12,". "),e.k0s(),e.j41(13,"div",42),e.nrm(14,"i",43),e.j41(15,"span"),e.pXf(16,4),e.k0s()(),e.DNE(17,ba,4,0,"div",42)(18,va,4,0,"div",42)(19,$a,4,0,"div",42)(20,Ga,4,0,"div",42),e.j41(21,"div",45)(22,"div",46)(23,"table",47),e.qex(24,48),e.DNE(25,Ua,1,0,"th",49)(26,xa,15,4,"td",50),e.bVm(),e.qex(27,51),e.DNE(28,Xa,3,0,"th",52)(29,ka,4,5,"td",53),e.bVm(),e.qex(30,54),e.DNE(31,ja,3,0,"th",55)(32,Ba,3,2,"td",56),e.bVm(),e.qex(33,57),e.DNE(34,Ya,3,0,"th",49)(35,Ha,5,4,"td",58),e.bVm(),e.qex(36,59),e.DNE(37,wa,3,0,"th",49)(38,Wa,4,5,"td",58),e.bVm(),e.qex(39,60),e.DNE(40,Ja,3,0,"th",55)(41,Qa,6,6,"td",56),e.bVm(),e.qex(42,61),e.DNE(43,Za,3,0,"th",49)(44,ts,6,6,"td",58),e.bVm(),e.qex(45,62),e.DNE(46,_s,3,0,"th",49)(47,is,6,6,"td",58),e.bVm(),e.qex(48,63),e.DNE(49,os,3,0,"th",49)(50,ss,7,8,"td",58),e.bVm(),e.qex(51,64),e.DNE(
152,Es,3,0,"th",49)(53,Ss,7,7,"td",58),e.bVm(),e.qex(54,65),e.DNE(55,cs,3,0,"th",49)(56,Cs,4,5,"td",58),e.bVm(),e.qex(57,66),e.DNE(58,Ps,3,0,"th",55)(59,Os,7,9,"td",56),e.bVm(),e.qex(60,67),e.DNE(61,ps,3,0,"th",49)(62,fs,4,5,"td",58),e.bVm(),e.qex(63,68),e.DNE(64,As,5,1,"th",69)(65,Rs,3,2,"td",56),e.bVm(),e.qex(66,70),e.DNE(67,gs,5,1,"th",71)(68,bs,3,2,"td",58),e.bVm(),e.qex(69,72),e.DNE(70,$s,5,1,"th",71)(71,xs,3,2,"td",58),e.bVm(),e.qex(72,73),e.DNE(73,Vs,5,1,"th",71)(74,Ys,3,2,"td",58),e.bVm(),e.qex(75,74),e.DNE(76,Hs,5,1,"th",71)(77,Js,3,2,"td",58),e.bVm(),e.qex(78,75),e.DNE(79,Qs,5,1,"th",71)(80,_E,3,2,"td",58),e.bVm(),e.qex(81,76),e.DNE(82,iE,5,1,"th",71)(83,EE,3,2,"td",58),e.bVm(),e.qex(84,77),e.DNE(85,SE,5,1,"th",71)(86,PE,3,2,"td",58),e.bVm(),e.qex(87,78),e.DNE(88,dE,5,1,"th",71)(89,fE,3,2,"td",58),e.bVm(),e.qex(90,79),e.DNE(91,AE,5,1,"th",71)(92,RE,3,2,"td",58),e.bVm(),e.qex(93,80),e.DNE(94,gE,5,1,"th",71)(95,bE,3,2,"td",58),e.bVm(),e.qex(96,81),e.DNE(97,$E,5,1,"th",71)(98,xE,3,2,"td",58),e.bVm(),e.qex(99,82),e.DNE(100,VE,5,1,"th",71)(101,YE,3,2,"td",58),e.bVm(),e.qex(102,83),e.DNE(103,HE,5,1,"th",84)(104,JE,3,2,"td",58),e.bVm(),e.qex(105,85),e.DNE(106,KE,3,0,"th",49)(107,ZE,4,5,"td",58),e.bVm(),e.DNE(108,el,1,0,"tr",86)(109,tl,1,0,"tr",87),e.k0s(),e.DNE(110,_l,2,0,"div",88),e.nI1(111,"async"),e.k0s()()(),e.DNE(112,nl,4,0,"mat-error",89)(113,il,4,0,"mat-error",89),e.j41(114,"div",90)(115,"button",91),e.bIt("click",function(){return n.addEspaceLocatif()}),e.nrm(116,"i",92),e.k0s(),e.j41(117,"span"),e.pXf(118,5),e.k0s()()()),2&o&&(e.R7$(),e.Y8G("formGroup",n.espacesLocatifsNonResidentielsForm),e.R7$(9),e.JRh(e.ii3(11,14,n.dateReferenceBis,!1,"LL",null)),e.R7$(7),e.vxM(17,n.gererAnneeReferenceCDE?17:-1),e.R7$(),e.vxM(18,n.espaceLocNREnumereService?18:-1),e.R7$(),e.vxM(19,n.espaceLocNREnumereService?19:-1),e.R7$(),e.vxM(20,n.espaceLocNREnumereService?20:-1),e.R7$(3),e.Y8G("dataSource",n.dataSource)("trackBy",n.trackByFn),e.R7$(85),e.Y8G("matHeaderRowDef",n.displayedColumns)("matHeaderRowDefSticky",!0),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns),e.R7$(),e.vxM(110,e.bMT(111,19,n.noData$)?110:-1),e.R7$(2),e.vxM(112,n.espacesLocatifsNonResidentielsForm.invalid&&n.espacesLocatifsNonResidentielsForm.touched?112:-1),e.R7$(),e.vxM(113,n.hasInvalidBailPeriode()?113:-1))},dependencies:[p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.KS,p.$R,p.YZ,p.NB,et.fg,x.rl,x.TL,x.yw,H.wT,ct.So,zt.VO,se.iY,se.$0,ne.Vh,ne.bZ,ne.bU,rt.kk,rt.fb,rt.Cp,s.qT,s.me,s.Q0,s.BC,s.cb,s.VZ,s.j4,s.JD,s.$R,tt.p,W_,Ht.N,b.Jj,J_.x,_t.q],encapsulation:2}),i})();class sl{constructor(){this.id=(0,G.SiN)(),this.identifiantGPlus=null,this.NoAppart=null,this.Etage=null,this.Pieces=null,this.CodeCondOccupation=null,this.DebutBail=null,this.FinBail=null,this.LoyerMensuel=null,this.IsMeuble=null,this.IsSemiMeuble=null,this.HasElectricite=null,this.HasChauffage=null,this.HasEauChaude=null,this.HasClimatisation=null,this.HasStationnementInt=null,this.HasStationnementExt=null,this.HasDeneigement=null,this.HasEntreposage=null,this.HasCabloDistribution=null,this.HasAscenseur=null,this.HasAssurance=null,this.HasPiscineInt=null,this.UniteMesureLoyer=H__Dollar,this.UniteMesureSuperficie="493A42B1-BB20-498C-A652-9507300A0675",this.SuperficieTotale=null}}const El=(t,i)=>i.value,qt=(t,i)=>i.value.value,ll=t=>[t],Sl=t=>[t,"NoAppart"],m_=t=>[t,"SuperficieTotale"],cl=t=>[t,"DebutBail"],rl=t=>[t,"FinBail"],Cl=t=>[t,"LoyerMensuel"],Pl=t=>[t,"UniteMesureLoyer"];function ul(t,i){1&t&&(e.j41(0,"span"),e.pXf(1,6),e.k0s())}function dl(t,i){1&t&&(e.j41(0,"span"),e.pXf(1,7),e.k0s())}function Ol(t,i){1&t&&(e.j41(0,"div",40),e.nrm(1,"i",41),e.j41(2,"span"),e.pXf(3,8),e.k0s()())}function pl(t,i){1&t&&e.nrm(0,"th",86)}function Tl(t,i){1&t&&e.nrm(0,"i",89)}function fl(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",87)(1,"div",88),e.DNE(2,Tl,1,0,"i",89),e.j41(3,"button",90),e.nrm(4,"i",91),e.k0s(),e.j41(5,"mat-menu",92,0)(7,"button",93),e.bIt("click",function(){const n=e.eBV(_),a=n.$implicit,l=n.index,c=e.XpG();return e.Njj(c.removeEspaceLocatif(l,a))}),e.nrm(8,"i",94),e.EFF(9,"Supprimer"),e.k0s(),e.j41(10,"button",95),e.bIt("click",function(){const n=e.eBV(_).$implicit,a=e.XpG();return e.Njj(a.duplicateEspaceLocatif(n))}),e.nrm(11,"i",96),e.EFF(12,"Dupliquer"),e.k0s()(),e.j41(13,"button",97),e.bIt("click",function(){const n=e.eBV(_),a=n.$implicit,l=n.index,c=e.XpG();return e.Njj(c.openEspaceLocatifDialog(l,a))}),e.nrm(14,"i",98),e.k0s()()()}if(2&t){const _=i.index,o=e.sdS(6),n=e.XpG();
1e.R7$(2),e.vxM(2,n.espacesLocatifsResidentielsForm.get(e.eq3(2,ll,_)).invalid&&n.espacesLocatifsResidentielsForm.touched?2:-1),e.R7$(),e.Y8G("matMenuTriggerFor",o)}}function Ll(t,i){1&t&&(e.j41(0,"th",99)(1,"div"),e.pXf(2,9),e.k0s()())}function Al(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG().index,o=e.XpG();e.R7$(),e.SpI(" ",o.getInvalidMessage(_,"NoAppart")," ")}}function ml(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",100)(1,"mat-form-field",101)(2,"input",102),e.bIt("blur",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.formControlOnBlur())}),e.k0s(),e.DNE(3,Al,2,1,"mat-error"),e.k0s()()}if(2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(2),e.vxM(3,o.espacesLocatifsResidentielsForm.get(e.eq3(3,Sl,_)).invalid?3:-1)}}function Nl(t,i){1&t&&(e.j41(0,"th",103)(1,"div"),e.pXf(2,10),e.k0s()())}function Il(t,i){if(1&t&&(e.j41(0,"mat-option",106),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value),e.R7$(),e.JRh(_.viewValue)}}function Rl(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",104)(1,"mat-form-field",101)(2,"mat-select",105),e.bIt("blur",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.formControlOnBlur())}),e.Z7z(3,Il,2,2,"mat-option",106,El),e.k0s()()()}if(2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(o.etageEnum)}}function Ml(t,i){1&t&&(e.j41(0,"th",86)(1,"div"),e.pXf(2,11),e.k0s()())}function gl(t,i){if(1&t&&(e.j41(0,"mat-option",106),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function Dl(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",107)(1,"mat-form-field",108)(2,"mat-select",109),e.bIt("blur",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.formControlOnBlur())}),e.Z7z(3,gl,2,2,"mat-option",106,qt),e.nI1(5,"ObjectKeysPipe"),e.k0s()()()}if(2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(e.bMT(5,4,o.piecesEnum))}}function Fl(t,i){1&t&&(e.j41(0,"th",86)(1,"div"),e.pXf(2,12),e.k0s()())}function hl(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG().index,o=e.XpG();e.R7$(),e.Lme(" Doit \xeatre entre ",o.espacesLocatifsResidentielsForm.get(e.eq3(2,m_,_)).errors.invalidRange.min.toFixed(1)," et ",o.espacesLocatifsResidentielsForm.get(e.eq3(4,m_,_)).errors.invalidRange.max.toFixed(1)," ")}}function bl(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",107)(1,"mat-form-field",108)(2,"input",110),e.bIt("blur",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.formControlOnBlur())}),e.k0s(),e.DNE(3,hl,2,6,"mat-error"),e.k0s()()}if(2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(2),e.vxM(3,o.espacesLocatifsResidentielsForm.get(e.eq3(3,m_,_)).invalid?3:-1)}}function vl(t,i){1&t&&(e.j41(0,"th",103)(1,"div"),e.pXf(2,13),e.k0s()())}function $l(t,i){if(1&t&&(e.j41(0,"mat-option",106),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function Gl(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",104)(1,"mat-form-field",101)(2,"mat-select",111),e.bIt("blur",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.formControlOnBlur())})("selectionChange",function(){const n=e.eBV(_).index,a=e.XpG();return e.Njj(a.refreshSuperficieTotaleValidaty(n))}),e.Z7z(3,$l,2,2,"mat-option",106,qt),e.nI1(5,"ObjectKeysPipe"),e.k0s()()()}if(2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(e.bMT(5,4,o.uniteMesureSuperficieEnum))}}function Ul(t,i){1&t&&(e.j41(0,"th",86)(1,"div"),e.pXf(2,14),e.k0s()())}function yl(t,i){if(1&t&&(e.j41(0,"mat-option",106),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function xl(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",107)(1,"mat-form-field",112)(2,"mat-select",113),e.bIt("blur",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.formControlOnBlur())})("selectionChange",function(){const n=e.eBV(_).index,a=e.XpG();return e.Njj(a.launchCondOccValidation(n))}),e.Z7z(3,yl,2,2,"mat-option",106,qt),e.nI1(5,"ObjectKeysPipe"),e.k0s()()()}if(2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(e.bMT(5,4,o.conditionOccupationEnum))}}function Xl(t,i){1&t&&(e.j41(0,"th",86)(1,"div"),e.pXf(2,15),e.k0s()())}function Vl(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG().index,o=e.XpG();e.R7$(),e.SpI(" ",o.getInvalidMessage(_,"DebutBail")," ")}}function kl(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",107)(1,"mat-form-field",114)(2,"input",115),e.bIt("dateChange",function(n){const a=e.eBV(_).index,l=e.XpG();return e.Njj(l.setDateFinValue(a,n))}),e.k0s(),e.nrm(3,"mat-datepicker-toggle",116)(4,"mat-datepicker",117,1),e.DNE(6,Vl,2,1,"mat-error"),e.k0s()()}if(2&t){const _=i.index,o=e.sdS(5),n=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("matDatepicker",o),e.R7$(),e.Y8G("for",o),e.R7$(),e.Y8G("startAt",n.getStartAt(_)),e.R7$(2),e.vxM(6,n.espace
1sLocatifsResidentielsForm.get(e.eq3(6,cl,_)).invalid?6:-1)}}function jl(t,i){1&t&&(e.j41(0,"th",86)(1,"div"),e.pXf(2,16),e.k0s()())}function Bl(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG().index,o=e.XpG();e.R7$(),e.SpI(" ",o.getInvalidMessage(_,"FinBail")," ")}}function Yl(t,i){if(1&t&&(e.j41(0,"td",107)(1,"mat-form-field",114),e.nrm(2,"input",118)(3,"mat-datepicker-toggle",116)(4,"mat-datepicker",null,1),e.DNE(6,Bl,2,1,"mat-error"),e.k0s()()),2&t){const _=i.index,o=e.sdS(5),n=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("matDatepicker",o),e.R7$(),e.Y8G("for",o),e.R7$(3),e.vxM(6,n.espacesLocatifsResidentielsForm.get(e.eq3(5,rl,_)).invalid?6:-1)}}function zl(t,i){1&t&&(e.j41(0,"th",86)(1,"div"),e.pXf(2,17),e.k0s()())}function Hl(t,i){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const _=e.XpG().index,o=e.XpG();e.R7$(),e.SpI(" ",o.getInvalidMessage(_,"LoyerMensuel")," ")}}function wl(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",107)(1,"mat-form-field",108)(2,"input",119),e.bIt("blur",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.formControlOnBlur())}),e.k0s(),e.DNE(3,Hl,2,1,"mat-error"),e.k0s()()}if(2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(2),e.vxM(3,o.espacesLocatifsResidentielsForm.get(e.eq3(3,Cl,_)).invalid?3:-1)}}function ql(t,i){1&t&&(e.j41(0,"th",103)(1,"div"),e.pXf(2,18),e.k0s()())}function Wl(t,i){if(1&t&&(e.j41(0,"mat-option",106),e.EFF(1),e.k0s()),2&t){const _=i.$implicit;e.Y8G("value",_.value.value),e.R7$(),e.SpI(" ",_.value.viewValue," ")}}function Jl(t,i){1&t&&(e.j41(0,"mat-error"),e.EFF(1," Unit\xe9 obligatoire "),e.k0s())}function Kl(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",104)(1,"mat-form-field",101)(2,"mat-select",120),e.bIt("blur",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.formControlOnBlur())}),e.Z7z(3,Wl,2,2,"mat-option",106,qt),e.nI1(5,"ObjectKeysPipe"),e.k0s(),e.DNE(6,Jl,2,0,"mat-error"),e.k0s()()}if(2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(),e.Y8G("panelWidth",null)("hideSingleSelectionIndicator",!0),e.R7$(),e.Dyx(e.bMT(5,5,o.uniteMesureLoyerEnum)),e.R7$(3),e.vxM(6,o.espacesLocatifsResidentielsForm.get(e.eq3(7,Pl,_)).invalid?6:-1)}}function Ql(t,i){if(1&t&&(e.j41(0,"th",121)(1,"div"),e.nrm(2,"vplus-header-checkbox",122),e.j41(3,"span"),e.pXf(4,19),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.Y8G("name","IsMeuble")("tableauForm",_.espacesLocatifsResidentielsForm)("getFunctionName","getEspacesLocatifsResidentiels")}}function Zl(t,i){1&t&&(e.j41(0,"td",107),e.nrm(1,"mat-checkbox",123),e.k0s()),2&t&&(e.Y8G("formGroupName",i.index),e.R7$(),e.Y8G("disableRipple",!0))}function eS(t,i){if(1&t&&(e.j41(0,"th",124)(1,"div"),e.nrm(2,"vplus-header-checkbox",122),e.j41(3,"span"),e.pXf(4,20),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.Y8G("name","IsSemiMeuble")("tableauForm",_.espacesLocatifsResidentielsForm)("getFunctionName","getEspacesLocatifsResidentiels")}}function tS(t,i){1&t&&(e.j41(0,"td",107),e.nrm(1,"mat-checkbox",125),e.k0s()),2&t&&(e.Y8G("formGroupName",i.index),e.R7$(),e.Y8G("disableRipple",!0))}function _S(t,i){if(1&t&&(e.j41(0,"th",124)(1,"div"),e.nrm(2,"vplus-header-checkbox",122),e.EFF(3,"\xc9lectricit\xe9 "),e.k0s()()),2&t){const _=e.XpG();e.R7$(2),e.Y8G("name","HasElectricite")("tableauForm",_.espacesLocatifsResidentielsForm)("getFunctionName","getEspacesLocatifsResidentiels")}}function nS(t,i){1&t&&(e.j41(0,"td",107),e.nrm(1,"mat-checkbox",126),e.k0s()),2&t&&(e.Y8G("formGroupName",i.index),e.R7$(),e.Y8G("disableRipple",!0))}function iS(t,i){if(1&t&&(e.j41(0,"th",124)(1,"div"),e.nrm(2,"vplus-header-checkbox",122),e.j41(3,"span"),e.pXf(4,21),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.Y8G("name","HasChauffage")("tableauForm",_.espacesLocatifsResidentielsForm)("getFunctionName","getEspacesLocatifsResidentiels")}}function oS(t,i){1&t&&(e.j41(0,"td",107),e.nrm(1,"mat-checkbox",127),e.k0s()),2&t&&(e.Y8G("formGroupName",i.index),e.R7$(),e.Y8G("disableRipple",!0))}function aS(t,i){if(1&t&&(e.j41(0,"th",124)(1,"div"),e.nrm(2,"vplus-header-checkbox",122),e.j41(3,"span"),e.pXf(4,22),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.Y8G("name","HasEauChaude")("tableauForm",_.espacesLocatifsResidentielsForm)("getFunctionName","getEspacesLocatifsResidentiels")}}function sS(t,i){1&t&&(e.j41(0,"td",107),e.nrm(1,"mat-checkbox",128),e.k0s()),2&t&&(e.Y8G("formGroupName",i.index),e.R7$(),e.Y8G("disableRipple",!0))}function ES(t,i){if(1&t&&(e.j41(0,"th",124)(1,"div"),e.nrm(2,"vplus-header-checkbox",122),e.j41(3,"span"),e.pXf(4,23),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.Y8G("name","HasClimatisation")("tableauForm",_.espacesLocatifsResidentielsForm)("getFunctionName","getEspacesLocatifsResidentiels")}}function lS(t,i){1&t&&(e.j41(0,"td",107),e.nrm(1,"mat-checkbox",129),e.k0s()),2&t&&(e.Y8G("formGroupName",i.index),e.R7$(),e.Y8G("disableRipple",!0))}function SS(t,i){if(1&t&&(e.j41(0,"th",124)(1,"div"),e.nrm(2,"vplus-header-checkbox",122),e.j41(3,"span"),e.pXf(4,24),e.k0s(),e.EFF(5,"\xa0"),e.j41(6,"b"),e.pXf(7,25),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.Y8G("name","HasStationnementInt")("tableauForm",_.espacesLocatifsResidentielsForm)("getFunctionName","getEspacesLocatifsResidentiels")}}function cS(t,i){1&t&&(e.j41(0,"td",107),e.nrm(1,"mat-checkbox",130),e.k0s()),2&t&&(e.Y8G("formGroupName",i.index),e.R7$(),e.Y8G("disableRipple",!0))}function rS(t,i){if(1&t&&(e.j41(0,"th",124)(1,"div"),e.nrm(2,"vplus-header-checkbox",122),e.j41(3,"span"),e.pXf(4,26),e.k0s(),e.EFF(5,"\xa0"),e.j41(6,"b"),e.pXf(7,27),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.Y8G("name","HasStationnementExt")("tableauForm",_.espacesLocatifsResidentielsForm)("getFunctionName","getEspacesLocatifsResidentiels")}}function CS(t,i){1&t&&(e.j41(0,"td",107),e.nrm(1,"mat-checkbox",131),e.k0s()),2&t&&(e.Y8G("formGroupName",i.index),e.R7$(),e.Y8G("disableRipple",!0))}function PS(t,i){if(1&t&&(e.j41(0,"th",124)(1,"div"),e.nrm(2,"vplus-header-checkbox",122),e.j41(3,"span"),e.pXf(4,28),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.Y8G("name","HasDeneigement")("tableauForm",_.espacesLocatifsResidentielsForm)("getFunctionName","getEspacesLocatifsResidentiels")}}function uS(t,i){1&t&&(e.j41(0,"td",107),e.nrm(1,"mat-checkbox",132),e.k0s()),2&t&&(e.Y8G("formGroupName",i.index),e.R7$(),e.Y8G("disableRipple",!0))}function dS(t,i){if(1&t&&(e.j41(0,"th",124)(1,"div"),e.nrm(2,"vplus-header-checkbox",122),e.j41(3,"span"),e.pXf(4,29),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.Y8G("name","HasEntreposage")("tableauForm",_.espacesLocatifsResidentielsForm)("getFunctionName","getEspacesLocatifsResidentiels")}}function OS(t,i){1&t&&(e.j41(0,"td",107),e.nrm(1,"mat-checkbox",133),e.k0s()),2&t&&(e.Y8G("formGroupName",i.index),e.R7$(),e.Y8G("disableRipple",!0))}function pS(t,i){if(1&t&&(e.j41(0,"th",124)(1,"div"),e.nrm(2,"vplus-header-checkbox",122),e.j41(3,"span"),e.pXf(4,30),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.Y8G("name","HasCabloDistribution")("tableauForm",_.espacesLocatifsResidentielsForm)("getFunctionName","getEspacesLocatifsResidentiels")}}function TS(t,i){1&t&&(e.j41(0,"td",107),e.nrm(1,"mat-checkbox",134),e.k0s()),2&t&&(e.Y8G("formGroupName",i.index),e.R7$(),e.Y8G("disableRipple",!0))}function fS(t,i){if(1&t&&(e.j41(0,"th",124)(1,"div"),e.nrm(2,"vplus-header-checkbox",122),e.j41(3,"span"),e.pXf(4,31),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.Y8G("name","HasAscenseur")("tableauForm",_.espacesLocatifsResidentielsForm)("getFunctionName","getEspacesLocatifsResidentiels")}}function LS(t,i){1&t&&(e.j41(0,"td",107),e.nrm(1,"mat-checkbox",135),e.k0s()),2&t&&(e.Y8G("formGroupName",i.index),e.R7$(),e.Y8G("disableRipple",!0))}function AS(t,i){if(1&t&&(e.j41(0,"th",124)(1,"div"),e.nrm(2,"vplus-header-checkbox",122),e.j41(3,"span"),e.pXf(4,32),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.Y8G("name","HasAssurance")("tableauForm",_.espacesLocatifsResidentielsForm)("getFunctionName","getEspacesLocatifsResidentiels")}}function mS(t,i){1&t&&(e.j41(0,"td",107),e.nrm(1,"mat-checkbox",136),e.k0s()),2&t&&(e.Y8G("formGroupName",i.index),e.R7$(),e.Y8G("disableRipple",!0))}function NS(t,i){if(1&t&&(e.j41(0,"th",124)(1,"div"),e.nrm(2,"vplus-header-checkbox",122),e.j41(3,"span"),e.pXf(4,33),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.Y8G("name","HasPiscineInt")("tableauForm",_.espacesLocatifsResidentielsForm)("getFunctionName","getEspacesLocatifsResidentiels")}}function IS(t,i){1&t&&(e.j41(0,"td",107),e.nrm(1,"mat-checkbox",137),e.k0s()),2&t&&(e.Y8G("formGroupName",i.index),e.R7$(),e.Y8G("disableRipple",!0))}function RS(t,i){1&t&&e.nrm(0,"tr",138)}function MS(t,i){1&t&&e.nrm(0,"tr",139)}function gS(t,i){1&t&&(e.j41(0,"div",81),e.pXf(1,34),e.k0s())}function DS(t,i){1&t&&(e.j41(0,"mat-error",82),e.nrm(1,"i",89),e.j41(2,"span"),e.pXf(3,35),e.k0s()())}function FS(t,i){1&t&&(e.j41(0,"mat-error",82),e.nrm(1,"i",89),e.j41(2,"span"),e.pXf(3,36),e.k0s()())}function hS(t,i){1&t&&(e.j41(0,"mat-error",82),e.nrm(1,"i",89),e.j41(2,"span"),e.pXf(3,37),e.k0s()())}const bS={parse:{dateInput:"YYYY-MM-DD"},display:{dateInput:"YYYY-MM-DD",monthYearLabel:"MMM YYYY"}};function tn(t){return i=>{if(i.value){const _=i.value;if(_.length>10)return{lengthGreaterThan10:!0};if(!t){const o=i.parent.parent;if(o){let n=0;for(let a=0;a<o.length;a++){const l=o.get([a,"NoAppart"]);if(l&&l.value&&l.value.toString()===_.toString()&&(n++,n>1))return{doublon:!0}}}}}return null}}function _n(t){return i=>{if(i.parent&&i.parent.get("DebutBail")&&i.parent.get("FinBail")){const _=d()(i.parent.get("DebutBail").value),o=d()(i.parent.get("FinBail").value),n=d()(t);if(n.isBefore(_,"day")||n.isAfter(o,"day")||o.isSameOrBefore(_))return{invali
1dBailPer:!0}}return null}}function gt(){return t=>t.parent&&t.parent.get("CodeCondOccupation")&&!t.value&&(!t.parent.get("CodeCondOccupation").value||t.parent.get("CodeCondOccupation").value!==he.Vacant.value&&t.parent.get("CodeCondOccupation").value!==he.Proprietaire.value)?{required:!0}:null}let vS=(()=>{var t;class i{constructor(o,n,a,l,c){this.appConfig=o,this.dialog=n,this.formBuilder=a,this.route=l,this.store=c,this.conditionOccupationEnum=he,this.piecesEnum=Y_,this.uniteMesureLoyerEnum=Yt,this.uniteMesureSuperficieEnum=be,this.maskUInt=G.hWx,this.gererVisibiliteColonneCDE=!!this.appConfig.appConfig.paramList[$.fW.GererVisibiliteColonneCDE],this.gererAnneeReferenceCDE=!!this.appConfig.appConfig.paramList[$.fW.GererAnneeReferenceCDE],this.disableCDEUniciteNoAppart=!!this.appConfig.appConfig.paramList[$.fW.DisableCDEUniciteNoAppart],this.subs=new Bt.yU,this.refreshValidations=!0,this.destroyRef=(0,e.WQX)(e.abz),this.espLocResDataSourceSubject=new B_.t([]),this.espacesLocatifsEnums=this.route.snapshot.data.espacesLocatifsEnums}ngOnInit(){let o;if(this.etageEnum=this.espacesLocatifsEnums.EnumEtage,this.initForm(),this.displayedColumns=this.gererVisibiliteColonneCDE?["Options","NoAppart","Etage","CodeCondOccupation","Pieces","LoyerMensuel","IsMeuble","IsSemiMeuble","HasElectricite","HasChauffage","HasEauChaude","HasClimatisation","HasStationnementInt","HasCabloDistribution"]:["Options","NoAppart","Etage","CodeCondOccupation","SuperficieTotale","UniteMesureSuperficie","Pieces","DebutBail","FinBail","LoyerMensuel","UniteMesureLoyer","IsMeuble","IsSemiMeuble","HasElectricite","HasChauffage","HasEauChaude","HasClimatisation","HasStationnementInt","HasStationnementExt","HasDeneigement","HasEntreposage","HasCabloDistribution","HasAscenseur","HasAssurance","HasPiscineInt"],this.store.select(It).subscribe(n=>{o=n}),o){const n=d()(o);
1n.isValid&&(this.anneeReference=n.year(),this.dateReferenceBis=d()().set({year:this.anneeReference,month:6,date:1}).toDate(),this.startDate=new Date(this.anneeReference,7,1))}this.subs.add(this.store.select(l_).pipe((0,St.s)(1)).subscribe({next:n=>{n.sort((a,l)=>a.NoAppart>l.NoAppart?1:-1),this.espLocResDataSourceSubject.next(n),this.espacesLocatifsResidentielsForm.patchValue(this.espLocResDataSourceSubject.value)}})),this.dataSource=new Mt.K(this.espLocResDataSourceSubject.asObservable()),this.noData$=this.dataSource.connect().pipe((0,y.T)(n=>0===n.length))}initForm(){var o;this.espacesLocatifsResidentielsForm=this.formBuilder.array([]),this.espacesLocatifsResidentielsForm.setDefaultControlBuilder(this.createEspaceLocatifResidentielGroup.bind(this)),null===(o=this.espacesLocatifsResidentielsForm)||void 0===o||o.markAllAsTouched()}ngAfterViewInit(){this.store.select(Vt).subscribe(o=>{this.refreshValidations&&o.touched&&(this.espacesLocatifsResidentielsForm.markAllAsTouched(),this.refreshValidations=!1)})}createEspaceLocatifResidentielGroup(o=!0){const n=new s.J3(this.gererVisibiliteColonneCDE?{id:new s.hs(""),NoAppart:new s.hs("",[tn(this.disableCDEUniciteNoAppart),s.k0.required]),Etage:new s.hs("",s.k0.required),Pieces:new s.hs("",s.k0.required),CodeCondOccupation:new s.hs("",s.k0.required),LoyerMensuel:new s.hs("",[gt(),(0,X.NN)(),(0,X.zl)(0,99999)]),IsMeuble:new s.hs("",t=>t.value&&t.parent&&t.parent.get("IsSemiMeuble")&&t.parent.get("IsSemiMeuble").value?{bothChecked:!0}:null),IsSemiMeuble:new s.hs(""),HasElectricite:new s.hs(""),HasChauffage:new s.hs(""),HasEauChaude:new s.hs(""),HasClimatisation:new s.hs(""),HasStationnementInt:new s.hs(""),HasCabloDistribution:new s.hs("")}:{id:new s.hs(""),NoAppart:new s.hs("",{validators:[tn(this.disableCDEUniciteNoAppart),s.k0.required],updateOn:"blur"}),Etage:new s.hs("",s.k0.required),UniteMesureLoyer:new s.hs("",{validators:[gt()],updateOn:"blur"}),UniteMesureSuperficie:new s.hs(""),SuperficieTotale:new s.hs("",[this.createSuperficieInvalidRangeValidatorFn(.1,999.9,"UniteMesureSuperficie")]),Pieces:new s.hs("",s.k0.required),CodeCondOccupation:new s.hs("",s.k0.required),DebutBail:new s.hs("",{validators:[gt(),_n(this.dateReferenceBis),(0,G.N8$)()],updateOn:"blur"}),FinBail:new s.hs("",{validators:[gt(),_n(this.dateReferenceBis),(0,G.N8$)()],updateOn:"blur"}),LoyerMensuel:new s.hs("",[gt(),(0,X.NN)(),(0,X.zl)(0,99999)]),IsMeuble:new s.hs("",t=>t.value&&t.parent&&t.parent.get("IsSemiMeuble")&&t.parent.get("IsSemiMeuble").value?{bothChecked:!0}:null),IsSemiMeuble:new s.hs(""),HasElectricite:new s.hs(""),HasChauffage:new s.hs(""),HasEauChaude:new s.hs(""),HasClimatisation:new s.hs(""),HasStationnementInt:new s.hs(""),HasStationnementExt:new s.hs(""),HasDeneigement:new s.hs(""),HasEntreposage:new s.hs(""),HasCabloDistribution:new s.hs(""),HasAscenseur:new s.hs(""),HasAssurance:new s.hs(""),HasPiscineInt:new s.hs("")});return o&&(n.valueChanges.subscribe(a=>this.updateEspaceLocatif(a)),n.get("NoAppart").valueChanges.subscribe(()=>{this.refreshValidations||this.espacesLocatifsResidentielsForm.controls.forEach(a=>{a.get("NoAppart").updateValueAndValidity({onlySelf:!0,emitEvent:!1}),a.updateValueAndValidity({onlySelf:!0})})}),n.get("DebutBail")&&n.get("FinBail")&&(n.get("FinBail").valueChanges.pipe((0,U.pQ)(this.destroyRef)).subscribe({next:()=>{var a;null===(a=n.get("DebutBail"))||void 0===a||a.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}}),n.get("DebutBail").valueChanges.pipe((0,U.pQ)(this.destroyRef)).subscribe({next:()=>{var a;null===(a=n.get("FinBail"))||void 0===a||a.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}}))),n}getStartAt(o){let n=this.startDate;if(this.espacesLocatifsResidentielsForm.get([o,"DebutBail"]).value){const a=d()(this.espacesLocatifsResidentielsForm.get([o,"DebutBail"]).value,"YYYY-MM-DD").toString();n=new Date(a)}return n}addEspaceLocatif(){const o=new sl,n=this.createEspaceLocatifResidentielGroup();n.patchValue(o),this.datasourceAddElement(o),this.espacesLocatifsResidentielsForm.push(n),this.store.dispatch(z({payload:o}))}updateEspaceLocatif(o){this.datasourceUpdateElement(o),this.store.dispatch(st({payload:o}))}duplicateEspaceLocatif(o){const n=(0,_e.cloneDeep)(o);n.id=(0,G.SiN)();const a=this.createEspaceLocatifResidentielGroup();a.patchValue(n),this.datasourceAddElement(n),this.espacesLocatifsResidentielsForm.push(a),this.store.dispatch(z({payload:n}))}removeEspaceLocatif(o,n){this.dialog.open(q_,{width:$.Uq.Small,panelClass:"delete-dialog"}).afterClosed().subscribe(l=>{!0===l.confirm&&(this.datasourceRemoveElement(o),this.espacesLocatifsResidentielsForm.patchValue(this.espLocResDataSourceSubject.value),this.store.dispatch(Gt({payload:n})))})}openEspaceLocatifDialog(o,n){this.dialog.open(La,{width:$.Uq.FullScreen,height:$.gw.FullScreen,data:{espaceLocatifId:n.id,context:this,emptyFrmGrp:this.createEspaceLocatifResidentielGroup(!1),espaceLocatif:n,dateReferenceBis:this.dateReferenceBis,etageEnum:this.etageEnum}}).afterClosed().subscribe(l=>{l&&!0===l.confirm&&(this.updateEspaceLocatif(l.espaceLocatifModified),this.espacesLocatifsResidentielsForm.get([o]).patchValue(l.espaceLocatifModified))})}datasourceAddElement(o){const n=(0,_e.cloneDeep)(this.espLocResDataSourceSubject.value);n.push(o),this.espLocResDataSourceSubject.next(n)}datasourceUpdateElement(o){const n=(0,_e.cloneDeep)(this.espLocResDataSourceSubject.value),a=n.findIndex(l=>l.id===o.id);n[a]=o,this.espLocResDataSourceSubject.next(n)}datasourceRemoveElement(o){const n=(0,_e.cloneDeep)(this.espLocResDataSourceSubject.value);n.splice(o,1),this.espLocResDataSourceSubject.next(n)}formControlOnBlur(){this.store.dispatch(ut({payload:{touched:!0,valid:this.espacesLocatifsResidentielsForm.valid}}))}setDateFinValue(o,n){if(n.value&&""!=n.value){const a=d()(n.value),l=d()(this.espacesLocatifsResidentielsForm.get([o,"FinBail"]).value);a.format("YYYY-MM-DD")!==l.add(1,"year").add(-1,"day").format("YYYY-MM-DD")&&(this.espacesLocatifsResidentielsForm.get([o,"FinBail"]).setValue(a.add(1,"year").add(-1,"day")),this.espacesLocatifsResidentielsForm.get([o,"DebutBail"]).setValue(n.value))}else this.espacesLocatifsResidentielsForm.get([o,"FinBail"]).setValue(n.value),this.espacesLocatifsResidentielsForm.get([o,"DebutBail"]).setValue(n.value);this.espacesLocatifsResidentielsForm.get([o,"FinBail"]).markAllAsTouched()}refreshSuperficieTotaleValidaty(o){this.espacesLocatifsResidentielsForm.get([o,"SuperficieTotale"]).updateV
1alueAndValidity()}launchCondOccValidation(o){this.espacesLocatifsResidentielsForm.get([o,"FinBail"]).updateValueAndValidity(),this.espacesLocatifsResidentielsForm.get([o,"DebutBail"]).updateValueAndValidity(),this.espacesLocatifsResidentielsForm.get([o,"LoyerMensuel"]).updateValueAndValidity(),this.espacesLocatifsResidentielsForm.get([o,"UniteMesureLoyer"]).updateValueAndValidity()}getInvalidMessage(o,n){const a=this.espacesLocatifsResidentielsForm.get([o,n]).value;switch(n){case"NoAppart":return a&&""!==a?a.length>10?"10 caract\xE9res max":"No. doit \xEAtre unique":"Obligatoire";case"DebutBail":case"FinBail":return a&&""!==a?this.isPeriodeBailValid(o)?this.isdateBailValid(o)?"Date invalide":"D\xE9but bail >= Fin bail":"Date hors p\xE9riode":"Date obligatoire";case"LoyerMensuel":return a&&""!==a?isNaN(a)?"Loyer doit \xEAtre un entier":"Doit \xeatre entre 0 et 99999":"Loyer obligatoire"}return""}isPeriodeBailValid(o){const n=this.espacesLocatifsResidentielsForm.get([o,"DebutBail"]).value,a=this.espacesLocatifsResidentielsForm.get([o,"FinBail"]).value;if(n&&a){const l=d()(n),c=d()(a),O=d()(this.dateReferenceBis);if(O.isBefore(l,"day")||O.isAfter(c,"day"))return!1}return!0}isdateBailValid(o){const n=this.espacesLocatifsResidentielsForm.get([o,"DebutBail"]).value,a=this.espacesLocatifsResidentielsForm.get([o,"FinBail"]).value;return!(n&&a&&d()(a).isSameOrBefore(n))}trackByFn(o,n){return n.Id}hasInvalidIsMeuble(){let o=!1;for(let n=0;n<this.espacesLocatifsResidentielsForm.length;n++)if(this.espacesLocatifsResidentielsForm.get([n,"IsMeuble"]).invalid){o=!0;break}return o}hasInvalidBailPeriode(){let o=!1;for(let n=0;n<this.espacesLocatifsResidentielsForm.length;n++){const a=this.espacesLocatifsResidentielsForm.get([n,"DebutBail"]);if(a&&a.invalid&&a.errors&&a.errors.invalidBailPer){o=!0;break}}return o}createSuperficieInvalidRangeValidatorFn(o,n,a){return l=>{var c;const O=null===(c=l.parent)||void 0===c||null===(c=c.get(a))||void 0===c?void 0:c.value;if(!O||(0,G.gD_)(l.value)||""===l.value)return null;const A=10.763910416709722,m=parseFloat(l.value),T=O===be.PiCarre.value?o*A:o,g=O===be.PiCarre.value?n*A:n;return m>=T&&m<=g?null:{invalidRange:{min:T,max:g,actual:m}}}}ngOnDestroy(){this.subs.unsubscribe()}}return(t=i).\u0275fac=function(o){return new(o||t)(e.rXU(De.o),e.rXU(ae.bZ),e.rXU(s.ze),e.rXU(Ze.nX),e.rXU(E.il))},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-espaces-locatifs-residentiels"]],features:[e.Jv_([{provide:H.MJ,useClass:Fe.QH,deps:[H.Ju,Fe.ij]},{provide:H.de,useValue:bS}])],decls:111,vars:20,consts:()=>{let _,o,n,a,l,c,O,A,m,T,g,F,h,L,I,M,k,j,B,Y,R,W,J,K,N,Ee,le,Se,ce,re,Ce,f,Ge,Ue,ye,xe,Xe,Ve,ke,je,Be,Ye,ze,He,we,qe;return _="Espaces locatifs r\xE9sidentiels",o="Veuillez remplir les loyers en vigueur au ",n="N'oubliez pas de d\xE9filer la grille vers la droite pour remplir tous les champs d'un espace locatif.",a="Ajouter un espace locatif",l="Ne cochez que les services inclus dans le loyer mensuel",c="Ne cochez que les services inclus dans le loyer de base",O="Certaines informations provenant de notre base de donn\xE9es sont d\xE9j\xE0 inscrites. Nous vous demandons de les v\xE9rifier et de les corriger s'il y a lieu en portant une attention particuli\xE8re aux services qui sont inclus dans le loyer mensuel. ",A="N\xB0 app.",m="N\xB0 app.",T="\xC9tage",g="\xC9tage",F="Nb. pi\xE8ces",h="Nb. de pi\xE8ces",L="Superficie totale",I="Superficie",M="Unit\xE9 Superficie",k="Unit\xE9 Superficie",j="Cond. occupation",B="Condition d'occupation",Y="D\xE9but du bail",R="Choisir une date",W="Fin du bail",J="Choisir une date",K="Loyer mensuel",N="Loyer",Ee="Unit\xE9 loyer",le="Unit\xE9 Loyer",Se="Meubl\xE9",ce="Semi-Meubl\xE9",re="Chauffage",Ce="Eau chaude",f="Climatisation",Ge="Stationnement",Ue="int\xE9rieur",ye="Stationnement",xe="ext\xE9rieur",Xe="D\xE9neigement",Ve="Entreposage",ke="Cablodistribution",je="Ascenseur",Be="Assurance",Ye="Pisicine int\xE9rieure",ze=" Veuillez ne pas remplir cette section si vous n'avez pas d'espace locatif r\xE9sidentiel ",He="Un ou plusieurs champs obligatoires sont manquants",we="Les champs meubl\xE9 et semi-meubl\xE9 ne peuvent pas \xEAtre coch\xE9s en m\xEAme temps",qe="Veuillez entrer une date de bail valide",[["optionsMenu","matMenu"],["picker",""],_,o,n,a,l,c,O,A,T,F,L,M,j,Y,W,K,Ee,Se,ce,re,Ce,f,Ge,Ue,ye,xe,Xe,Ve,ke,je,Be,Ye,ze,He,we,qe,[1,"form-section-content"],[3,"formGroup"],[1,"margin-top-1"],[1,"icon-form-info"],[1,"bold-primary-color"],[1,"mat-mdc-table-form-container","min-height-table","margin-top-1","error-small-nowrap"],["mat-table","",1,"mat-mdc-table-form","with-header-rotate","esp-loc-table-form",3,"dataSource","trackBy"],["matColumnDef","Options","sticky",""],["mat-header-cell","",4,"matHeaderCellDef"],["class","options-column","mat-cell","",4,"matCellDef"],["matColumnDef","NoAppart","sticky",""],["mat-header-cell","","class","first-column-sticky",4,"matHeaderCellDef"],["mat-cell","","class","first-column-sticky",3,"formGroupName",4,"matCellDef"],["matColumnDef","Etage"],["mat-header-cell","","class","padding-left-1",4,"matHeaderCellDef"],["mat-cell","","class","padding-left-1",3,"formGroupName",4,"matCellDef"],["matColumnDef","Pieces"],["mat-cell","",3,"formGroupName",4,"matCellDef"],["matColumnDef","SuperficieTotale"],["matColumnDef","UniteMesureSuperficie"],["matColumnDef","CodeCondOccupation"],["matColumnDef","DebutBail"],["matColumnDef","FinBail"],["matColumnDef","LoyerMensuel"],["matColumnDef","UniteMesureLoyer"],["matColumnDef","IsMeuble"],["mat-header-cell","","class","table-header-rotate first",4,"matHeaderCellDef"],["matColumnDef","IsSemiMeuble"],["mat-header-cell","","class","table-header-rotate",4,"matHeaderCellDef"],["matColumnDef","HasElectricite"],["matColumnDef","HasChauffage"],["matColumnDef","HasEauChaude"],["matColumnDef","HasClimatisation"],["matColumnDef","HasStationnementInt"],["matColumnDef","HasStationnementExt"],["matColumnDef","HasDeneigement"],["matColumnDef","HasEntreposage"],["matColumnDef","HasCabloDistribution"],["matColumnDef","HasAscenseur"],["matColumnDef","HasAssurance"],["matColumnDef","HasPiscineInt"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mat-error","no-records","margin-top-1"],[1,"group-error-label","margin-top-1","margin-bottom-1"],[1,"mini-fab-div","margin-top-24"],["type","button","mat-mini-fab","",1,"primary",3,"click"],[1,"icon-add"],["mat-header-cell",""],["mat-cell","",1,"options-column"],[1,"action-icons-table"],[1,"icon-invalid"],["type","button","mat-icon-button","",3,"matMenuTriggerFor"],[1,"icon-more"],[1,"options-menu"],["type","button","mat-menu-item","",1,"delete-menu-item",3,"click"],[1,"icon-poubelle"],["type","button","mat-menu-item","",3,"click"],[1,"icon-duppliquer"],["type","button","mat-icon-button","",3,"click"],[1,"icon-editer-fiche"],["mat-header-cell","",1,"first-column-sticky"],["mat-cell","",1,"first-column-sticky",3,"formGroupName"],[1,"table-x-small-field",3,"floatLabel"],["autoComplete","off","type","text","matInput","","formControlName","NoAppart","placeholder",m,"mat-no-asterisk","",3,"blur"],["mat-header-cell","",1,"padding-left-1"],["mat-cell","",1,"padding-left-1",3,"formGroupName"],["formControlName","Etage","placeholder",g,3,"blur","panelWidth","hideSingleSelectionIndicator"],["mat-no-asterisk","",3,"value"],["mat-cell","",3,"formGroupName"],[1,"table-small-field",3,"floatLabel"],["formControlName","Pieces","placeholder",h,3,"blur","panelWidth","hideSingleSelectionIndicator"],["autoComplete","off","type","string","min","0","matInput","","formControlName","SuperficieTotale","placeholder",I,"mat-no-asterisk","","vplusAppOneDigitDecimalNumber","",3,"blur"],["formControlName","UniteMesureSuperficie","placeholder",k,3,"blur","selectionChange","panelWidth","hideSingleSelectionIndicator"],[3,"floatLabel"],["formControlName","CodeCondOccupation","placeholder",B,3,"blur","selectionChange","panelWidth","hideSingleSelectionIndicator"],[1,"table-medium-field",3,"floatLabel"],["formControlName","DebutBail","matInput","","placeholder",R,3,"dateChange","matDatepicker"],["matSuffix","",3,"for"],[3,"startAt"],["formControlName","FinBail","matInput","","placeholder",J,3,"matDatepicker"],["autoComplete","off","type","text","min","0","matInput","","nombreOnly","","formControlName","LoyerMensuel","placeholder",N,"mat-no-asterisk","",2,"text-align","right",3,"blur"],["formControlName","UniteMesureLoyer","placeholder",le,3,"blur","panelWidth","hideSingleSelectionIndicator"],["mat-header-cell","",1,"table-header-rotate","first"],[3,"name","tableauForm","getFunctionName"],["formControlName","IsMeuble",3,"disableRipple"],["mat-header-cell","",1,"table-header-rotate"],["formControlName","IsSemiMeuble",3,"disableRipple"],["formControlName","HasElectricite",3,"disableRipple"],["formControlName","HasChauffage",3,"disableRipple"],["formControlName","HasEauChaude",3,"disableRipple"],["formControlName","HasClimatisation",3,"disableRipple"],["formControlName","HasStationnementInt",3,"disableRipple"],["formControlName","HasStationnementExt",3,"disableRipple"],["formControlName","HasDeneigement",3,"disableRipple"],["formControlName","HasEntreposage",3,"disableRipple"],["formControlName","HasCabloDistribution",3,"disableRipple"],["formControlName","HasAscenseur",3,"disableRipple"],["formControlName","HasAssurance",3,"disableRipple"],["formControlName","HasPiscineInt",3,"disableRipple"],["mat-header-row",""],["mat-row",""]]},template:function(o,n){1&o&&(e.j41(0,"div",38)(1,"form",39)(2,"h1"),e.pXf(3,2),e.k0s(),e.nrm(4,"br"),e.j41(5,"div",40),e.nrm(6,"i",41),e.j41(7,"span"),e.pXf(8,3),e.k0s(),e.j41(9,"span",42),e.EFF(10),e.nI1(11,"vplusMoment"),e.k0s(),e.EFF(12,". "),e.k0s(),e.j41(13,"div",40),e.nrm(14,"i",41),e.DNE(15,ul,2,0,"span")(16,dl,2,0),e.k0s(),e.j41(17,"div",40),e.nrm(18,"i",41),e.j41(19,"span"),e.pXf(20,4),e.k0s()(),e.DNE(21,Ol,4,0,"div",40),e.j41(22,"div",43)(23,"table",44),e.qex(24,45),e.DNE(25,pl,1,0,"th",46)(26,fl,15,4,"td",47),e.bVm(),e.qex(27,48),e.DNE(28,Ll,3,0,"th",49)(29,ml,4,5,"td",50),e.bVm(),e.qex(30,51),e.DNE(31,Nl,3,0,"th",52)(32,Rl,5,4,"td",53),e.bVm(),e.qex(33,54),e.DNE(34,Ml,3,0,"th",46)(35,Dl,6,6,"td",55),e.bVm(),e.qex(36,56),e.DNE(37,Fl,3,0,"th",46)(38,bl,4,5,"td",55),e.bVm(),e.qex(39,57),e.DNE(40,vl,3,0,"th",52)(41,Gl,6,6,"td",53),e.bVm(),e.qex(42,58),e.DNE(43,Ul,3,0,"th",46)(44,xl,6,6,"td",55),e.bVm(),e.qex(45,59),e.DNE(46,Xl,3,0,"th",46)(47,kl,7,8,"td",55),e.bVm(),e.qex(48,60),e.DNE(49,jl,3,0,"th",46)(50,Yl,7,7,"td",55),e.bVm(),e.qex(51,61),e.DNE(52,zl,3,0,"th",46)(53,wl,4,5,"td",55),e.bVm(),e.qex(54,62),e.DNE(
155,ql,3,0,"th",52)(56,Kl,7,9,"td",53),e.bVm(),e.qex(57,63),e.DNE(58,Ql,5,3,"th",64)(59,Zl,2,2,"td",55),e.bVm(),e.qex(60,65),e.DNE(61,eS,5,3,"th",66)(62,tS,2,2,"td",55),e.bVm(),e.qex(63,67),e.DNE(64,_S,4,3,"th",66)(65,nS,2,2,"td",55),e.bVm(),e.qex(66,68),e.DNE(67,iS,5,3,"th",66)(68,oS,2,2,"td",55),e.bVm(),e.qex(69,69),e.DNE(70,aS,5,3,"th",66)(71,sS,2,2,"td",55),e.bVm(),e.qex(72,70),e.DNE(73,ES,5,3,"th",66)(74,lS,2,2,"td",55),e.bVm(),e.qex(75,71),e.DNE(76,SS,8,3,"th",66)(77,cS,2,2,"td",55),e.bVm(),e.qex(78,72),e.DNE(79,rS,8,3,"th",66)(80,CS,2,2,"td",55),e.bVm(),e.qex(81,73),e.DNE(82,PS,5,3,"th",66)(83,uS,2,2,"td",55),e.bVm(),e.qex(84,74),e.DNE(85,dS,5,3,"th",66)(86,OS,2,2,"td",55),e.bVm(),e.qex(87,75),e.DNE(88,pS,5,3,"th",66)(89,TS,2,2,"td",55),e.bVm(),e.qex(90,76),e.DNE(91,fS,5,3,"th",66)(92,LS,2,2,"td",55),e.bVm(),e.qex(93,77),e.DNE(94,AS,5,3,"th",66)(95,mS,2,2,"td",55),e.bVm(),e.qex(96,78),e.DNE(97,NS,5,3,"th",66)(98,IS,2,2,"td",55),e.bVm(),e.DNE(99,RS,1,0,"tr",79)(100,MS,1,0,"tr",80),e.k0s(),e.DNE(101,gS,2,0,"div",81),e.nI1(102,"async"),e.k0s()(),e.DNE(103,DS,4,0,"mat-error",82)(104,FS,4,0,"mat-error",82)(105,hS,4,0,"mat-error",82),e.j41(106,"div",83)(107,"button",84),e.bIt("click",function(){return n.addEspaceLocatif()}),e.nrm(108,"i",85),e.k0s(),e.j41(109,"span"),e.pXf(110,5),e.k0s()()()),2&o&&(e.R7$(),e.Y8G("formGroup",n.espacesLocatifsResidentielsForm),e.R7$(9),e.JRh(e.ii3(11,13,n.dateReferenceBis,!1,"LL",null)),e.R7$(5),e.vxM(15,n.gererAnneeReferenceCDE?15:16),e.R7$(6),e.vxM(21,n.gererAnneeReferenceCDE?21:-1),e.R7$(2),e.Y8G("dataSource",n.dataSource)("trackBy",n.trackByFn),e.R7$(76),e.Y8G("matHeaderRowDef",n.displayedColumns)("matHeaderRowDefSticky",!0),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns),e.R7$(),e.vxM(101,e.bMT(102,18,n.noData$)?101:-1),e.R7$(2),e.vxM(103,n.espacesLocatifsResidentielsForm.invalid&&n.espacesLocatifsResidentielsForm.touched?103:-1),e.R7$(),e.vxM(104,n.hasInvalidIsMeuble()?104:-1),e.R7$(),e.vxM(105,n.hasInvalidBailPeriode()?105:-1))},dependencies:[p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.KS,p.$R,p.YZ,p.NB,et.fg,x.rl,x.TL,x.yw,H.wT,ct.So,zt.VO,se.iY,se.$0,ne.Vh,ne.bZ,ne.bU,rt.kk,rt.fb,rt.Cp,s.qT,s.me,s.BC,s.cb,s.j4,s.JD,s.$R,tt.p,W_,Ht.N,b.Jj,J_.x,_t.q],encapsulation:2}),i})();var nn=S(3215),$S=S(373),GS=S(72811);const US=()=>["FraisExploitationEspLocInformations","TravauxMajeurAnnee1"],Wt=()=>["FraisExploitationEspLocInformations","TravauxMajeurMontant1"],on=()=>["FraisExploitationEspLocInformations","TravauxMajeurDescriptif1"],yS=()=>["FraisExploitationEspLocInformations","TravauxMajeurAnnee2"],Jt=()=>["FraisExploitationEspLocInformations","TravauxMajeurMontant2"],an=()=>["FraisExploitationEspLocInformations","TravauxMajeurDescriptif2"],xS=()=>["FraisExploitationEspLocInformations","TravauxMajeurAnnee3"],Kt=()=>["FraisExploitationEspLocInformations","TravauxMajeurMontant3"],sn=()=>["FraisExploitationEspLocInformations","TravauxMajeurDescriptif3"],Qt=t=>["FraisExploitationsEspLoc",t,"Montant"];function XS(t,i){1&t&&(e.j41(0,"th",44),e.EFF(1," Type "),e.k0s())}function VS(t,i){if(1&t&&e.nrm(0,"td",45),2&t){const _=i.$implicit,o=i.index,n=e.XpG();e.Y8G("formGroupName",o)("innerHTML",n.returnFraisTypeValue(_.CodeType),e.npT)}}function kS(t,i){1&t&&(e.j41(0,"th",44),e.pXf(1,11),e.k0s())}function jS(t,i){1&t&&(e.j41(0,"mat-error"),e.EFF(1," Montant requis "),e.k0s())}function BS(t,i){1&t&&(e.j41(0,"mat-error"),e.EFF(1," Doit \xeatre entre 0 et 9999999 "),e.k0s())}function YS(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",46)(1,"mat-form-field",34)(2,"input",47),e.bIt("blur",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.formControlOnBlur())}),e.k0s(),e.DNE(3,jS,2,0,"mat-error",36)(4,BS,2,0,"mat-error",36),e.k0s()()}if(2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(2),e.Y8G("ngIf",o.fraisExploitationForm.get(e.eq3(4,Qt,_)).touched&&o.fraisExploitationForm.get(e.eq3(6,Qt,_)).hasError("required")),e.R7$(),e.Y8G("ngIf",o.fraisExploitationForm.get(e.eq3(8,Qt,_)).touched&&o.fraisExploitationForm.get(e.eq3(10,Qt,_)).hasError("invalidRange"))}}function zS(t,i){1&t&&e.nrm(0,"tr",48)}function HS(t,i){1&t&&e.nrm(0,"tr",49)}function wS(t,i){1&t&&(e.j41(0,"mat-error"),e.EFF(1," Montant requis "),e.k0s())}function qS(t,i){1&t&&(e.j41(0,"mat-error"),e.EFF(1," Doit \xeatre entre 0 et 9999999 "),e.k0s())}function WS(t,i){1&t&&(e.j41(0,"mat-error"),e.EFF(1," Taille de texte ne peut pas d\xe9passer 500 caract\xe8res "),e.k0s())}function JS(t,i){1&t&&(e.j41(0,"mat-error"),e.EFF(1," Montant requis "),e.k0s())}function KS(t,i){1&t&&(e.j41(0,"mat-error"),e.EFF(1," Doit \xeatre entre 0 et 9999999 "),e.k0s())}function QS(t,i){1&t&&(e.j41(0,"mat-error"),e.EFF(1," Taille de texte ne peut pas d\xe9passer 500 caract\xe8res "),e.k0s())}function ZS(t,i){1&t&&(e.j41(0,"mat-error"),e.EFF(1," Montant requis "),e.k0s())}function ec(t,i){1&t&&(e.j41(0,"mat-error"),e.EFF(1," Doit \xeatre entre 0 et 9999999 "),e.k0s())}function tc(t,i){1&t&&(e.j41(0,"mat-error"),e.EFF(1," Taille de texte ne peut pas d\xe9passer 500 caract\xe8res "),e.k0s())}let _c=(()=>{var t;class i{constructor(o,n,a,l,c,O,A){this.formBuilder=o,this.store=n,this.objectKeysPipe=a,this.appConfig=l,this.renderer=c,this.elementRef=O,this.dialog=A,this.fraisExploitationsEnum=yi,this.fraisExploitationTypesArray=[],this.gererAnneeReferenceCDE=!!this.appConfig.appConfig.paramList[$.fW.GererAnneeReferenceCDE],this.displayedColumns=["CodeType","Montant"],this.infosBulleHelp={entretienReparation:{title:this.fraisExploitationsEnum.EntretienReparation.htmlValue,content:"<p class=\"no-margin-top\">\n      Les travaux majeurs n\xe9cessitant un d\xe9bours\xe9 important tels que la r\xe9paration de la toiture, le\n      remplacement des fen\xeatres, des syst\xe8mes m\xe9caniques, etc. sont des d\xe9pe
1nses d'immobilisation et ne doivent pas\n      \xeatre consid\xe9r\xe9es dans les frais d'exploitation. Elles doivent \xeatre inscrites dans les travaux majeurs de\n      r\xe9novation et r\xe9paration. Les int\xe9r\xeats sur l'hypoth\xe8que et l'amortissement ne sont pas requis, car ils sont\n      aussi exclus des frais d'exploitation.</p>"}}}ngOnInit(){let o;if(this.store.select(C_).subscribe(n=>{o=n}),this.store.select(It).subscribe(n=>{this.anneeExerciceBis=d()(n).year()-(this.gererAnneeReferenceCDE?1:0)}),o){const n=d()(o);n.isValid&&(this.anneeExercice=n.year())}this.fraisExplData$=this.store.select(h_),this.fraisExplData$.subscribe(n=>{n.FraisExploitationEspLocInformations.TravauxMajeurAnnee1=this.anneeExerciceBis.toString(),n.FraisExploitationEspLocInformations.TravauxMajeurAnnee2=(this.anneeExerciceBis-1).toString(),n.FraisExploitationEspLocInformations.TravauxMajeurAnnee3=(this.anneeExerciceBis-2).toString()}),this.fraisTotal$=this.store.select(c_),this.revenusNet$=this.store.select(U_),this.fraisExplList$=this.store.select(Nt),this.dataSource=new Mt.K(this.fraisExplList$),this.initForm()}initForm(){const o=this.formBuilder.array([]);o.setDefaultControlBuilder(this.createFraisExploitationGroup.bind(this));const n=this.formBuilder.group({TravauxMajeurAnnee1:new s.hs,TravauxMajeurMontant1:new s.hs("",[s.k0.required,(0,X.zl)(0,9999999)]),TravauxMajeurDescriptif1:new s.hs(null,[s.k0.maxLength(500)]),TravauxMajeurAnnee2:new s.hs,TravauxMajeurMontant2:new s.hs("",[s.k0.required,(0,X.zl)(0,9999999)]),TravauxMajeurDescriptif2:new s.hs(null,[s.k0.maxLength(500)]),TravauxMajeurAnnee3:new s.hs,TravauxMajeurMontant3:new s.hs("",[s.k0.required,(0,X.zl)(0,9999999)]),TravauxMajeurDescriptif3:new s.hs(null,[s.k0.maxLength(500)])});n.valueChanges.subscribe(a=>this.updateFraisExploitationsInformations(a)),this.fraisExploitationForm=this.formBuilder.group({FraisExploitationsEspLoc:o,FraisExploitationEspLocInformations:n}),this.store.select(Rt).pipe((0,y.T)(a=>a.touched)).subscribe(a=>{a&&(0,nn.e)(this.fraisExploitationForm)}),this.objectKeysPipe.transform(this.fraisExploitationsEnum,[]).forEach(a=>{this.fraisExploitationTypesArray.push(a)})}ngAfterViewInit(){this.store.select(Rt).pipe((0,y.T)(n=>n.touched)).subscribe(n=>{n&&(0,nn.e)(this.fraisExploitationForm)});const o=this.elementRef.nativeElement.querySelector(".entretien-reparation-help");this.renderer.listen(o,"click",()=>{this.help("entretienReparation")})}help(o){const n=this.infosBulleHelp[o];n&&this.dialog.open($S.V,{data:{htmlContent:n.content,title:n.title},width:$.Uq.Medium})}createFraisExploitationGroup(){const o=new s.J3({id:new s.hs,CodeType:new s.hs("",s.k0.required),Montant:new s.hs("",[s.k0.required,(0,X.zl)(0,9999999)])});return o.valueChanges.subscribe(n=>this.updateFraisExploitation(n)),o}updateFraisExploitation(o){this.store.dispatch(ht({payload:o}))}updateFraisExploitationsInformations(o){this.store.dispatch(bt({payload:o}))}formControlOnBlur(){this.store.dispatch(pt({payload:{touched:!0,valid:this.fraisExploitationForm.valid}}))}returnFraisTypeValue(o){return this.fraisExploitationTypesArray.find(n=>n.value.value===o).value.htmlValue+""+(o===this.fraisExploitationsEnum.EntretienReparation.value?'<i class="icon-form-help entretien-reparation-help"></i>':"")}trackByFn(o,n){return n.Id}}return(t=i).\u0275fac=function(o){return new(o||t)(e.rXU(s.ze),e.rXU(E.il),e.rXU(_t.q),e.rXU(De.o),e.rXU(e.sFG),e.rXU(e.aKT),e.rXU(ae.bZ))},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-frais-exploitation-esp-loc"]],decls:91,vars:55,consts:()=>{let _,o,n,a,l,c,O,A,m,T,g,F,h,L;return _="($)",o="Frais d'exploitation",n="Veuillez remplir les frais de l'ann\xE9e",a="Frais totaux :",l="Revenus net :",c="Description des travaux majeurs r\xE9alis\xE9s",O="Montant",A="Description des travaux",m="Montant",T="Description des travaux",g="Montant",F="Description des travaux",h=" Montant ",L="($)",[o,n,a,l,c,O,A,m,T,g,F,h,[1,"form-section-content","error-small-nowrap"],[3,"formGroup","vplusSyncStore"],[1,"margin-top-1"],[1,"icon-form-info"],[2,"color","var(--primary-color)","font-weight","500"],[1,"form-sub-section","form-section"],[1,"mat-table-form-container"],["mat-table","","formArrayName","FraisExploitationsEspLoc",1,"basic-form-table",3,"dataSource","trackBy"],["matColumnDef","CodeType"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"formGroupName","innerHTML",4,"matCellDef"],["matColumnDef","Montant"],["mat-cell","",3,"formGroupName",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"montant-container","form-section"],[1,"montant"],["formGroupName","FraisExploitationEspLocInformations",1,"form-section"],[1,"block","margin-bottom-2","bold"],[1,"margin-bottom-1"],[1,"flex"],[2,"margin-right","6px"],[3,"floatLabel"],["formControlName","TravauxMajeurMontant1","matInput","","placeholder","($)","type","text","min","0","nombreOnly","","autocomplete","off",2,"text-align","right",3,"blur"],[4,"ngIf"],[1,"margin-bottom-1","block"],["appearance","outline",1,"full-width",3,"floatLabel"],["formControlName","TravauxMajeurDescriptif1","matInput","","autosize","","minHeight","40","type","text","autocomplete","off",3,"blur"],["formControlName","TravauxMajeurMontant2","matInput","","placeholder","($)","type","text","min","0","nombreOnly","","autocomplete","off",2,"text-align","right",3,"blur"],["formControlName","TravauxMajeurDescriptif2","matInput","","autosize","","minHeight","40","type","text","autocomplete","off",3,"blur"],["formControlName","TravauxMajeurMontant3","matInput","","placeholder",_,"type","text","min","0","nombreOnly","","autocomplete","off",2,"text-align","right",3,"blur"],["formControlName","TravauxMajeurDescriptif3","matInput","","autosize","","minHeight","40","type","text","autocomplete","off",3,"blur"],["mat-header-cell",""],["mat-cell","",3,"formGroupName","innerHTML"],["mat-cell","",3,"formGroupName"],["formControlName","Montant","matInput","","placeholder",L,"type","text","min","0","nombreOnly","","autocomplete","off",2,"text-align","right",3,"blur"],["mat-header-row",""],["mat-row",""]]},template:function(o,n){1&o&&(e.j41(0,"div",12)(1,"form",13),e.nI1(2,"async"),e.j41(3,"h1"),e.pXf(4,0),e.k0s(),e.j41(5,"div",14),e.nrm(6,"i",15),e.j41(7,"span"),e.pXf(8,1),e.k0s(),e.j41(9,"span",16),e.EFF(10),e.k0s(),e.EFF(11,". "),e.k0s(),e.nrm(12,"br"),e.j41(13,"div",17)(14,"div",18)(15,"table",19),e.qex(16,20),e.DNE(17,XS,2,0,"th",21)(18,VS,1,2,"td",22),e.bVm(),e.qex(19,23),e.DNE(20,kS,2,0,"th",21)(21,YS,5,12,"td",24),e.bVm(),e.DNE(22,zS,1,0,"tr",25)(23,HS,1,0,"tr",26),e.k0s()()(),e.j41(24,"div",27)(25,"div",28)(26,"label"),e.pXf(27,2),e.k0s(),e.j41(28,"span"),e.EFF(29),e.nI1(30,"async"),e.k0s()(),e.j41(31,"div",28)(32,"label"),e.pXf(33,3),e.k0s(),e.j41(34,"span"),e.EFF(35),e.nI1(36,"async"),e.k0s()()(),e.j41(37,"div",29)(38,"label",30),e.pXf(39,4),e.k0s(),e.j41(40,"div",31)(41,"div",31)(42,"mat-label",32)(43,"span",33),e.pXf(44,5),e.k0s(),e.j41(45,"span"),e.EFF(46),e.k0s()(),e.j41(47,"mat-form-field",34)(48,"input",35),e.bIt("blur",function(){return n.formControlOnBlur()}),e.k0s(),e.DNE(49,wS,2,0,"mat-error",36)(50,qS,2,0,"mat-error",36),e.k0s()(),e.j41(51,"mat-label",37),e.pXf(52,6),e.k0s(),e.j41(53,"mat-form-field",38)(54,"textarea",39),e.bIt("blur",function(){return n.formControlOnBlur()}),e.EFF(55,"          "),e.k0s(),e.DNE(56,WS,2,0,"mat-error",36),e.k0s()(),e.j41(57,"div",31)(58,"div",31)(59,"mat-label",32)(60,"span",33),e.pXf(61,7),e.k0s(),e.j41(62,"span"),e.EFF(63),e.k0s()(),e.j41(64,"mat-form-field",34)(65,"input",40),e.bIt("blur",function(){return n.formControlOnBlur()}),e.k0s(),e.DNE(66,JS,2,0,"mat-error",36)(67,KS,2,0,"mat-error",36),e.k0s()(),e.j41(68,"mat-label",37),e.pXf(69,8),e.k0s(),e.j41(70,"mat-form-field",38)(71,"textarea",41),e.bIt("blur",function(){return n.formControlOnBlur()}),e.EFF(72,"          "),e.k0s(),e.DNE(73,QS,2,0,"mat-error",36),e.k0s()(),e.j41(74,"div",31)(75,"div",31)(76,"mat-label",32)(77,"span",33),e.pXf(78,9),e.k0s(),e.j41(79,"span"),e.EFF(80),e.k0s()(),e.j41(81,"mat-form-field",34)(82,"input",42),e.bIt("blur",function(){return n.formControlOnBlur()}),e.k0s(),e.DNE(83,ZS,2,0,"mat-error",36)(84,ec,2,0,"mat-error",36),e.k0s()(),e.j41(85,"mat-label",37),e.pXf(86,10),e.k0s(),e.j41(87,"mat-form-field",38)(88,"textarea",43),e.bIt("blur",function(){return n.formControlOnBlur()}),e.EFF(89,"          "),e.k0s(),e.DNE(90,tc,2,0,"mat-error",36),e.k0s()()()()()),2&o&&(e.R7$(),e.Y8G("formGroup",n.fraisExploitationForm)("vplusSyncStore",e.bMT(2,28,n.fraisExplData$)),e.R7$(9),e.SpI(" ",n.anneeExerciceBis," "),e.R7$(5),e.Y8G("dataSource",n.dataSource)("trackBy",n.trackByFn),e.R7$(7),e.Y8G("matHeaderRowDef",n.displayedColumns)("matHeaderRowDefSticky",!0),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns),e.R7$(6),e.SpI("",e.bMT(30,30,n.fraisTotal$),"\xa0$"),e.R7$(6),e.SpI("",e.bMT(36,32,n.revenusNet$),"\xa0$"),e.R7$(11),e.JRh(n.fraisExploitationForm.get(e.lJ4(34,US)).value),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(2),e.Y8G("ngIf",n.fraisExploitationForm.get(e.lJ4(35,Wt)).touched&&n.fraisExploitationForm.get(e.lJ4(36,Wt)).hasError("required")),e.R7$(),e.Y8G("ngIf",n.fraisExploitationForm.get(e.lJ4(37,Wt)).touched&&n.fraisExploitationForm.get(e.lJ4(38,Wt)).hasError("invalidRange")),e.R7$(3),e.Y8G("floatLabel","never"),e.R7$(3),e.Y8G("ngIf",n.fraisExploitationForm.get(e.lJ4(39,on)).touched&&n.fraisExploitationForm.get(e.lJ4(40,on)).hasError("maxlength")),e.R7$(7),e.JRh(n.fraisExploitationForm.get(e.lJ4(41,yS)).value),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(2),e.Y8G("ngIf",n.fraisExploitationForm.get(e.lJ4(42,Jt)).touched&&n.fraisExploitationForm.get(e.lJ4(43,Jt)).hasError("required")),e.R7$(),e.Y8G("ngIf",n.fraisExploitationForm.get(e.lJ4(44,Jt)).touched&&n.fraisExploitationForm.get(e.lJ4(45,Jt)).hasError("invalidRange")),e.R7$(3),e.Y8G("floatLabel","never"),e.R7$(3),e.Y8G("ngIf",n.fraisExploitationForm.get(e.lJ4(46,an)).touched&&n.fraisExploitationForm.get(e.lJ4(47,an)).hasError("maxlength")),e.R7$(7),e.JRh(n.fraisExploitationForm.get(e.lJ4(48,xS)).value),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(2),e.Y8G("ngIf",n.fraisExploitationForm.get(e.lJ4(49,Kt)).touched&&n.fraisExploitationForm.get(e.lJ4(50,Kt)).hasError("required")),e.R7$(),e.Y8G("ngIf",n.fraisExploitationForm.get(e.lJ4(51,Kt)).touched&&n.fraisExploitationForm.get(e.lJ4(52,Kt)).hasError("invalidRange")),e.R7$(3),e.Y8G("floatLabel","never"),e.R7$(3),e.Y8G("ngIf",n.fraisExploitationForm.get(e.lJ4(53,sn)).touched&&n.fraisExploitationForm.get(e.lJ4(54,sn)).hasError("maxlength")))},dependencies:[b.bT,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.KS,p.$R,p.YZ,p.NB,et.fg,x.rl,x.nJ,x.TL,s.qT,s.me,s.BC,s.cb,s.j4,s.JD,s.$R,s.v8,T_.Q,tt.p,GS.H,b.Jj],encapsulation:2}),i})();const ve=t=>[t,"Montant"];function nc(t,i){1&t&&(e.j41(0,"th",24),e.EFF(1," Type "),e.k0s())}function ic(t,i){if(1&t&&e.nrm(0,"td",25),2&t){const _=i.$implicit,o=i.index,n=e.XpG();e.Y8G("formGroupName",o)("innerHTML",n.returnRevenuTypeValue(_.CodeType),e.npT)}}function oc(t,i){1&t&&(e.j41(0,"th",24),e.pXf(1,5),e.k0s())}function ac(t,i){1&t&&(e.j41(0,"mat-error"),e.EFF(1," Montant requis "),e.k0s())}function sc(t,i){1&t&&(e.j41(0,"mat-error"),e.EFF(1," Doit \xeatre entre 0 et 9999999 "),e.k0s())}function Ec(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",26)(1,"mat-form-field",27)(2,"input",28),e.bIt("blur",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.formControlOnBlur())}),e.k0s(),e.DNE(3,ac,2,0,"mat-error",29)(4,sc,2,0,"mat-error",29),e.k0s()()}if(2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(2),e.Y8G("ngIf",o.revenusLocationForm.get(e.eq3(4,ve,_)).touched&&o.revenusLocationForm.get(e.eq3(6,ve,_)).hasError("required")),e.R7$(),e.Y8G("ngIf",o.revenusLocationForm.get(e.eq3(8,ve,_)).touched&&o.revenusLocationForm.get(e.eq3(10,ve,_)).hasError("invalidRange"))}}function lc(t,i){1&t&&e.nrm(0,"tr",30)}function Sc(t,i){1&t&&e.nrm(0,"tr",31)}function cc(t,i){1&t&&(e.j41(0,"th",24),e.EFF(1," Type "),e.k0s())}function rc(t,i){if(1&t&&(e.j41(0,"td",26),e.EFF(1),e.k0s()),2&t){const _=i.$implicit,o=i.index,n=e.XpG();e.Y8G("formGroupName",o),e.R7$(),e.SpI(" ",n.returnRevenuTypeValue(_.CodeType)," ")}}function Cc(t,i){1&t&&(e.j41(0,"th",24),e.pXf(1,6),e.k0s())}function Pc(t,i){1&t&&(e.j41(0,"mat-error"),e.EFF(1," Montant requis "),e.k0s())}function uc(t,i){1&t&&(e.j41(0,"mat-error"),e.EFF(1," Doit \xeatre entre 0 et 9999999 "),e.k0s())}function dc(t,i){if(1&t){const _=e.RV6();e.j41(0,"td",26)(1,"mat-form-field",27)(2,"input",32),e.bIt("blur",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.formControlOnBlur())}),e.k0s(),e.DNE(3,Pc,2,0,"mat-error",29)(4,uc,2,0,"mat-error",29),e.k0s()()}if(2&t){const _=i.index,o=e.XpG();e.Y8G("formGroupName",_),e.R7$(),e.Y8G("floatLabel","never"),e.R7$(2),e.Y8G("ngIf",o.revenusLocationFormPerte.get(e.eq3(4,ve,_)).touched&&o.revenusLocationFormPerte.get(e.eq3(6,ve,_)).hasError("required")),e.R7$(),e.Y8G("ngIf",o.revenusLocationFormPerte.get(e.eq3(8,ve,_)).touched&&o.revenusLocationFormPerte.get(e.eq3(10,ve,_)).hasError("invalidRange"))}}function Oc(t,i){1&t&&e.nrm(0,"tr",30)}function pc(t,i){1&t&&e.nrm(0,"tr",31)}let Tc=(()=>{var t;class i{constructor(o,n,a,l){this.formBuilder=o,this.store=n,this.objectKeysPipe=a,this.appConfig=l,this.revenusLocationsEnum=xi,this.revenusLocationsTypesArray=[],this.gererAnneeReferenceCDE=!!this.appConfig.appConfig.paramList[$.fW.GererAnneeReferenceCDE],this.displayedColumns=["CodeType","Montant"]}ngOnInit(){let o;if(this.store.select(C_).subscribe(n=>{o=n}),this.store.select(It).subscribe(n=>{this.anneeExerciceBis=d()(n).year()-(this.gererAnneeReferenceCDE?1:0)}),o){const n=d()(o);
1n.isValid&&(this.anneeExercice=n.year())}this.revLocData$=this.store.select(xt),this.dataSource=new Mt.K(this.revLocData$),this.revLocDataPerte$=this.store.select(Xt),this.dataSourcePerte=new Mt.K(this.revLocDataPerte$),this.initForm(),this.revenusTotal$=this.store.select(r_),this.objectKeysPipe.transform(this.revenusLocationsEnum,[]).forEach(n=>{this.revenusLocationsTypesArray.push(n)})}initForm(){this.revenusLocationForm=this.formBuilder.array([]),this.revenusLocationForm.setDefaultControlBuilder(this.createRevenusLocationGroup.bind(this)),this.revenusLocationFormPerte=this.formBuilder.array([]),this.revenusLocationFormPerte.setDefaultControlBuilder(this.createRevenusLocationGroup.bind(this))}ngAfterViewInit(){this.store.select(jt).pipe((0,y.T)(o=>o.touched)).subscribe(o=>{o&&(this.revenusLocationForm.markAllAsTouched(),this.revenusLocationFormPerte.markAllAsTouched())})}createRevenusLocationGroup(){const o=new s.J3({id:new s.hs,CodeType:new s.hs("",s.k0.required),Montant:new s.hs("",[s.k0.required,(0,X.zl)(0,9999999)])});return o.valueChanges.subscribe(n=>this.updateRevenusLocationRevenu(n)),o}updateRevenusLocationRevenu(o){[this.revenusLocationsEnum.LoyerBase.value,this.revenusLocationsEnum.LoyerAdd.value,this.revenusLocationsEnum.StatExterieur.value,this.revenusLocationsEnum.StatInterieur.value,this.revenusLocationsEnum.Buanderie.value,this.revenusLocationsEnum.AutreRevenuA.value].includes(o.CodeType)?this.store.dispatch(vt({payload:o})):this.store.dispatch($t({payload:o}))}formControlOnBlur(){this.store.dispatch(Tt({payload:{touched:!0,valid:this.revenusLocationForm.valid&&this.revenusLocationFormPerte.valid}}))}returnRevenuTypeValue(o){return this.revenusLocationsTypesArray.find(n=>n.value.value===o).value.htmlValue}trackByFn(o,n){return n.Id}}return(t=i).\u0275fac=function(o){return new(o||t)(e.rXU(s.ze),e.rXU(E.il),e.rXU(_t.q),e.rXU(De.o))},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-revenus-location-esp-loc"]],decls:54,vars:23,consts:()=>{let _,o,n,a,l,c,O,A,m;return _="Revenus",o="Veuillez remplir les revenus de l'ann\xE9e",n="Pertes",a="Veuillez remplir les pertes de l'ann\xE9e",l="Revenus totaux :",c=" Montant ",O="($)",A=" Montant ",m="($)",[_,o,n,a,l,c,A,[1,"form-section-content","error-small-nowrap"],[3,"formGroup","vplusSyncStore"],[1,"margin-top-1"],[1,"icon-form-info"],[2,"color","var(--primary-color)","font-weight","500"],[1,"form-sub-section","form-section"],[1,"mat-table-form-container"],["mat-table","",1,"basic-form-table",3,"dataSource","trackBy"],["matColumnDef","CodeType"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"formGroupName","innerHTML",4,"matCellDef"],["matColumnDef","Montant"],["mat-cell","",3,"formGroupName",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"montant-container"],[1,"montant"],["mat-header-cell",""],["mat-cell","",3,"formGroupName","innerHTML"],["mat-cell","",3,"formGroupName"],[3,"floatLabel"],["formControlName","Montant","matInput","","placeholder",O,"type","text","min","0","nombreOnly","","autocomplete","off",2,"text-align","right",3,"blur"],[4,"ngIf"],["mat-header-row",""],["mat-row",""],["formControlName","Montant","matInput","","placeholder",m,"type","text","min","0","nombreOnly","","autocomplete","off",2,"text-align","right",3,"blur"]]},template:function(o,n){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.j41(5,"div",9),e.nrm(6,"i",10),e.j41(7,"span"),e.pXf(8,1),e.k0s(),e.j41(9,"span",11),e.EFF(10),e.k0s(),e.EFF(11,". "),e.k0s(),e.nrm(12,"br"),e.j41(13,"div",12)(14,"div",13)(15,"table",14),e.qex(16,15),e.DNE(17,nc,2,0,"th",16)(18,ic,1,2,"td",17),e.bVm(),e.qex(19,18),e.DNE(20,oc,2,0,"th",16)(21,Ec,5,12,"td",19),e.bVm(),e.DNE(22,lc,1,0,"tr",20)(23,Sc,1,0,"tr",21),e.k0s()()()(),e.j41(24,"form",8),e.nI1(25,"async"),e.j41(26,"h1"),e.pXf(27,2),e.k0s(),e.j41(28,"div",9),e.nrm(29,"i",10),e.j41(30,"span"),e.pXf(31,3),e.k0s(),e.j41(32,"span",11),e.EFF(33),e.k0s(),e.EFF(34,". "),e.k0s(),e.nrm(35,"br"),e.j41(36,"div",12)(37,"div",13)(38,"table",14),e.qex(39,15),e.DNE(40,cc,2,0,"th",16)(41,rc,2,2,"td",19),e.bVm(),e.qex(42,18),e.DNE(43,Cc,2,0,"th",16)(44,dc,5,12,"td",19),e.bVm(),e.DNE(45,Oc,1,0,"tr",20)(46,pc,
11,0,"tr",21),e.k0s()()(),e.j41(47,"div",22)(48,"div",23)(49,"label"),e.pXf(50,4),e.k0s(),e.j41(51,"span"),e.EFF(52),e.nI1(53,"async"),e.k0s()()()()()),2&o&&(e.R7$(),e.Y8G("formGroup",n.revenusLocationForm)("vplusSyncStore",e.bMT(2,17,n.revLocData$)),e.R7$(9),e.SpI(" ",n.anneeExerciceBis," "),e.R7$(5),e.Y8G("dataSource",n.dataSource)("trackBy",n.trackByFn),e.R7$(7),e.Y8G("matHeaderRowDef",n.displayedColumns)("matHeaderRowDefSticky",!0),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns),e.R7$(),e.Y8G("formGroup",n.revenusLocationFormPerte)("vplusSyncStore",e.bMT(25,19,n.revLocDataPerte$)),e.R7$(9),e.SpI(" ",n.anneeExerciceBis," "),e.R7$(5),e.Y8G("dataSource",n.dataSourcePerte)("trackBy",n.trackByFn),e.R7$(7),e.Y8G("matHeaderRowDef",n.displayedColumns)("matHeaderRowDefSticky",!0),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns),e.R7$(6),e.SpI("",e.bMT(53,21,n.revenusTotal$),"\xa0$"))},dependencies:[b.bT,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.KS,p.$R,p.YZ,p.NB,et.fg,x.rl,x.TL,s.qT,s.me,s.BC,s.cb,s.j4,s.JD,s.$R,T_.Q,tt.p,b.Jj],encapsulation:2}),i})();var Dt=S(36013);const En=t=>({width:t});function fc(t,i){1&t&&e.nrm(0,"i",38)}let Lc=(()=>{var t;class i{constructor(o){this.thisDialogRef=o,this.sliderImage1="./../../assets/img/tutoriels/collecte-economique/etape-1.png",this.sliderImage2="./../../assets/img/tutoriels/collecte-economique/etape-2.png",this.sliderImage3="./../../assets/img/tutoriels/collecte-economique/etape-3.png",this.sliderImage4="./../../assets/img/tutoriels/collecte-economique/etape-4.png",this.sliderImage6="./../../assets/img/tutoriels/collecte-economique/etape-6.png",this.sliderImage7="./../../assets/img/tutoriels/collecte-economique/etape-7.png",this.sliderImage8="./../../assets/img/tutoriels/collecte-economique/etape-8.png",this.sliderImage9="./../../assets/img/tutoriels/collecte-economique/etape-9.png",this.currentSlide=1,this.totalSlides=8}plusSlide(o){this.currentSlide+=o}close(){this.thisDialogRef.close()}}return(t=i).\u0275fac=function(o){return new(o||t)(e.rXU(ae.CP))},t.\u0275cmp=e.VBU({type:t,selectors:[["tutoriel-dialog"]],decls:90,vars:17,consts:()=>{let _,o,n,a,l,c,O,A,m,T,g,F,h,L,I,M,k,j,B,Y,R,W,J,K;return _="Ignorer",o="V\xE9rifier les informations d\xE9j\xE0 pr\xE9sentes dans le formulaire. Ajouter des espaces au besoin.",n="Suivant",a="Remplir les champs demand\xE9s directement dans la grille\u2026",l="Retour",c="Suivant",O="...ou \xE9diter les champs dans la grille individuelle de chaque espace.",A="Retour",m="Suivant",T="Au besoin, utiliser les options suppl\xE9mentaires pour faciliter votre saisie.",g="Retour",F="Suivant",h="Suppression : Pour supprimer un espace locatif vous devez cliquer sur le bouton \"supprimer\", ensuite confirmer : ",L="Retour",I="Suivant",M="Duplication : Vous pouvez dupliquer un espace locatif, les informations saisies dans le premier espace seront pr\xE9-saisies automatiquement dans l\u2019espace dupliqu\xE9 : ",k="Retour",j="Suivant",B="Vous pouvez s\xE9lectionner les services communs \xE0 tous les espaces locatifs :",Y="Retour",R="Suivant",W="Raccourci tutoriel : Vous pouvez revoir ce tutoriel \xE0 tout moment en cliquant sur le bouton \xAB Tutoriel \xBB dans le menu : ",J="Retour",K="J'ai compris !",[["stepper",""],_,o,n,a,l,c,O,A,m,T,g,F,h,L,I,M,k,j,B,Y,R,W,J,K,[1,"tuto-slider"],[1,"tuto-slider-header"],[1,"tuto-slider-progression"],[1,"tuto-slider-progress-bar",3,"ngStyle"],[3,"ngStyle"],["mat-button","",1,"tuto-slider-skip",3,"click"],[3,"linear"],["matStepperIcon","edit"],[1,"tuto-slider-content"],[3,"src"],[1,"tuto-slider-bottom-actions"],["mat-raised-button","","matStepperNext","",1,"custom-button-full","custom-button-standard","custom-button-stepper",3,"click"],["mat-stroked-button","","matStepperPrevious","",1,"custom-button-standard","custom-button-stroked","custom-button-stepper",3,"click"],[1,"icon-check"]]},template:function(o,n){if(1&o){const a=e.RV6();e.j41(0,"div",25)(1,"div",26)(2,"div",27)(3,"span"),e.EFF(4),e.k0s(),e.j41(5,"div",28),e.nrm(6,"span",29),e.k0s()(),e.j41(7,"button",30),e.bIt("click",function(){return e.eBV(a),e.Njj(n.close())}),e.pXf(8,1),e.k0s()(),e.j41(9,"mat-horizontal-stepper",31,0),e.DNE(11,fc,1,0,"ng-template",32),e.j41(12,"mat-step")(13,"div",33)(14,"p"),e.pXf(15,2),e.k0s(),e.nrm(16,"img",34),e.k0s(),e.j41(17,"div",35)(18,"button",36),e.bIt("click",function(){return e.eBV(a),e.Njj(n.plusSlide(1))}),e.pXf(19,3),e.k0s()()(),e.j41(20,"mat-step")(21,"div",33)(22,"p"),e.pXf(23,4),e.k0s(),e.nrm(24,"img",34),e.k0s(),e.j41(25,"div",35)(26,"button",37),e.bIt("click",function(){return e.eBV(a),e.Njj(n.plusSlide(-1))}),e.pXf(27,5),e.k0s(),e.j41(28,"button",36),e.bIt("click",function(){return e.eBV(a),e.Njj(n.plusSlide(1))}),e.pXf(29,6),e.k0s()()(),e.j41(30,"mat-step")(31,"div",33)(32,"p"),e.pXf(33,7),e.k0s(),e.nrm(34,"img",34),e.k0s(),e.j41(35,"div",35)(36,"button",37),e.bIt("click",function(){return e.eBV(a),e.Njj(n.plusSlide(-1))}),e.pXf(37,8),e.k0s(),e.j41(38,"button",36),e.bIt("click",function(){return e.eBV(a),e.Njj(n.plusSlide(1))}),e.pXf(39,9),e.k0s()()(),e.j41(40,"mat-step")(41,"div",33)(42,"p"),e.pXf(43,10),e.k0s(),e.nrm(44,"img",34),e.k0s(),e.j41(45,"div",35)(46,"button",37),e.bIt("click",function(){return e.eBV(a),e.Njj(n.plusSlide(-1))}),e.pXf(47,11),e.k0s(),e.j41(48,"button",36),e.bIt("click",function(){return e.eBV(a),e.Njj(n.plusSlide(1))}),e.pXf(49,12),e.k0s()()(),e.j41(50,"mat-step")(51,"div",33)(52,"p"),e.pXf(53,13),e.k0s(),e.nrm(54,"img",34),e.k0s(),e.j41(55,"div",35)(56,"button",37),e.bIt("click",function(){return e.eBV(a),e.Njj(n.plusSlide(-1))}),e.pXf(57,14),e.k0s(),e.j41(58,"button",36),e.bIt("click",function(){return e.eBV(a),e.Njj(n.plusSlide(1))}),e.pXf(59,15),e.k0s()()(),e.j41(60,"mat-step")(61,"div",33)(62,"p"),e.pXf(63,16),e.k0s(),e.nrm(64,"img",34),e.k0s(),e.j41(65,"div",35)(66,"button",37),e.bIt("click",function(){return e.eBV(a),e.Njj(n.plusSlide(-1))}),e.pXf(67,17),e.k0s(),e.j41(68,"button",36),e.bIt("click",function(){return e.eBV(a),e.Njj(n.plusSlide(1))}),e.pXf(69,18),e.k0s()()(),e.j41(70,"mat-step")(71,"div",33)(72,"p"),e.pXf(73,19),e.k0s(),e.nrm(74,"img",34),e.k0s(),e.j41(75,"div",35)(76,"button",37),e.bIt("click",function(){return e.eBV(a),e.Njj(n.plusSlide(-1))}),e.pXf(77,20),e.k0s(),e.j41(78,"button",36),e.bIt("click",function(){return e.eBV(a),e.Njj(n.plusSlide(1))}),e.pXf(79,21),e.k0s()()(),e.j41(80,"mat-step")(81,"div",33)(82,"p"),e.pXf(83,22),e.k0s(),e.nrm(84,"img",34),e.k0s(),e.j41(85,"div",35)(86,"button",37),e.bIt("click",function(){return e.eBV(a),e.Njj(n.plusSlide(-1))}),e.pXf(87,23),e.k0s(),e.j41(88,"button",36),e.bIt("click",function(){return e.eBV(a),e.Njj(n.close())})("click",function(){return e.eBV(a),e.Njj(n.plusSlide(1))}),e.pXf(89,24),e.k0s()()()()()}2&o&&(e.R7$(4),e.Lme("",n.currentSlide,"/",n.totalSlides,""),e.R7$(),e.Y8G("ngStyle",e.eq3(13,En,40*n.totalSlides+"px")),e.R7$(),e.Y8G("ngStyle",e.eq3(15,En,n.currentSlide/n.totalSlides*100+"%")),e.R7$(3),e.Y8G("linear",!1),e.R7$(7),e.Y8G("src",n.sliderImage1,e.B4B),e.R7$(8),e.Y8G("src",n.sliderImage3,e.B4B),e.R7$(10),e.Y8G("src",n.sliderImage2,e.B4B),e.R7$(10),e.Y8G("src",n.sliderImage4,e.B4B),e.R7$(10),e.Y8G("src",n.sliderImage6,e.B4B),e.R7$(10),e.Y8G("src",n.sliderImage7,e.B4B),e.R7$(10),e.Y8G("src",n.sliderImage8,e.B4B),e.R7$(10),e.Y8G("src",n.sliderImage9,e.B4B))},dependencies:[b.B3,se.$z,Dt.V5,Dt.M6,Dt.F7,Dt.FR,Dt.xJ],encapsulation:2}),i})();var Ac=S(71997),ln=S(90882),Sn=S(3902),mc=S(81405),Nc=S(62142),Ic=S(87748);const Rc=["SuccessFailSpinner"],Mc=["nonresidentiel"],gc=["residentiel"],Dc=["fraisExploi"],Fc=["revenuLocation"],hc=["attestationFrm"],bc=["attachementsForm"],vc=t=>({"filter-searche-global-active":t}),$c=t=>({"sidenav-toggled":t}),Gc=t=>({"is-active":t}),$e=t=>({"sidenav-section-hidden-auto-dcl":t}),it=t=>({active:t}),Uc=(t,i)=>({"icon-current":t,"icon-inactive":i,"icon-valid":!0}
1),Ct=(t,i,_,o)=>({"icon-current":t,"icon-inactive":i,"icon-valid":_,"icon-invalid":o}),yc=t=>({"sidenav-content-toggled":t});function xc(t,i){1&t&&(e.j41(0,"h1",42),e.pXf(1,9),e.k0s())}function Xc(t,i){1&t&&(e.j41(0,"h1",42),e.pXf(1,10),e.k0s())}function Vc(t,i){1&t&&(e.j41(0,"h1",42),e.pXf(1,11),e.k0s())}function kc(t,i){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const _=e.XpG(2);e.R7$(),e.JRh(_.successMessage)}}function jc(t,i){if(1&t){const _=e.RV6();e.j41(0,"button",43),e.bIt("click",function(){e.eBV(_);const n=e.XpG(2);return e.Njj(n.redirectAccueil())}),e.pXf(1,12),e.k0s()}}function Bc(t,i){if(1&t&&(e.j41(0,"div",35)(1,"div",36),e.DNE(2,xc,2,0,"h1",37)(3,Xc,2,0,"h1",37)(4,Vc,2,0,"h1",37),e.nrm(5,"success-fail-spinner",38,0),e.DNE(7,kc,2,1,"p",39),e.nrm(8,"br")(9,"br"),e.j41(10,"div",40),e.DNE(11,jc,2,0,"button",41),e.k0s()()()),2&t){const _=e.XpG();e.R7$(2),e.Y8G("ngIf",_.isSent&&!_.isSuccess&&!_.isFailed),e.R7$(),e.Y8G("ngIf",_.isSuccess&&!_.isFailed),e.R7$(),e.Y8G("ngIf",_.isFailed&&!_.isSuccess),e.R7$(),e.Y8G("startEnabled",!0),e.R7$(2),e.Y8G("ngIf",_.isSuccess),e.R7$(4),e.Y8G("ngIf",_.isSuccess||_.isFailed)}}function Yc(t,i){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const _=e.XpG(3);e.R7$(),e.JRh(_.propriete.Adr_AdresseFormatte)}}function zc(t,i){if(1&t&&(e.qex(0),e.j41(1,"div",63)(2,"h1"),e.pXf(3,22),e.k0s(),e.nrm(4,"br"),e.j41(5,"section",64)(6,"p")(7,"span"),e.pXf(8,23),e.k0s(),e.EFF(9,": "),e.DNE(10,Yc,2,1,"span",39),e.k0s()(),e.nrm(11,"mat-divider"),e.j41(12,"section",65)(13,"strong"),e.pXf(14,24),e.k0s(),e.nrm(15,"br"),e.j41(16,"ul",66)(17,"li"),e.pXf(18,25),e.k0s(),e.j41(19,"li"),e.pXf(20,26),e.k0s(),e.j41(21,"li"),e.pXf(22,27),e.k0s()(),e.j41(23,"p"),e.EFF(24),e.k0s()()(),e.bVm()),2&t){const _=e.XpG(2);e.R7$(10),e.Y8G("ngIf",_.propriete),e.R7$(14),e.SpI(" ",_.helpMessage," ")}}function Hc(t,i){1&t&&e.nrm(0,"vplus-espaces-locatifs-residentiels",null,3)}function wc(t,i){1&t&&e.nrm(0,"vplus-espaces-locatifs-non-residentiels",null,4)}function qc(t,i){1&t&&e.nrm(0,"vplus-revenus-location-esp-loc",null,5)}function Wc(t,i){1&t&&e.nrm(0,"vplus-frais-exploitation-esp-loc",null,6)}function Jc(t,i){1&t&&e.nrm(0,"vplus-espaces-locatifs-attachements",null,7)}function Kc(t,i){if(1&t){const _=e.RV6();e.j41(0,"vplus-attestation-espaces-locatifs",67,8),e.mxI("isWorkingChange",function(n){e.eBV(_);const a=e.XpG(2);return e.DH7(a.isAttestationWorking,n)||(a.isAttestationWorking=n),e.Njj(n)}),e.bIt("submitFormEvent",function(){e.eBV(_);const n=e.XpG(2);return e.Njj(n.submitForm())}),e.k0s()}if(2&t){const _=e.XpG(2);e.R50("isWorking",_.isAttestationWorking)}}function Qc(t,i){if(1&t){const _=e.RV6();e.j41(0,"div",68)(1,"button",43),e.bIt("click",function(){e.eBV(_);const n=e.XpG(2);return e.Njj(n.nextTabContent())}),e.j41(2,"span"),e.pXf(3,28),e.k0s(),e.nrm(4,"i",69),e.k0s()()}}function Zc(t,i){if(1&t){const _=e.RV6();e.j41(0,"mat-sidenav-container",44)(1,"mat-sidenav",45,1)(3,"div",46),e.bIt("click",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.sidenavToggle())}),e.j41(4,"button",47)(5,"span",48),e.nrm(6,"span",49),e.k0s()(),e.j41(7,"span",50),e.pXf(8,13),e.k0s()(),e.j41(9,"mat-nav-list",51)(10,"mat-list-item",52),e.bIt("click",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.switchTabContent(0))}),e.nrm(11,"i",53),e.j41(12,"span",53),e.pXf(13,14),e.k0s()(),e.j41(14,"mat-list-item",54),e.bIt("click",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.switchTabContent(1))}),e.nrm(15,"i",53),e.nI1(16,"async"),e.nI1(17,"async"),e.nI1(18,"async"),e.j41(19,"span",53),e.pXf(20,15),e.k0s()(),e.j41(21,"mat-list-item",54),e.bIt("click",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.switchTabContent(2))}),e.nrm(22,"i",53),e.nI1(23,"async"),e.nI1(24,"async"),e.nI1(25,"async"),e.j41(26,"span",53),e.pXf(27,16),e.k0s()()(),e.j41(28,"mat-nav-list",51)(29,"mat-list-item",54),e.bIt("click",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.switchTabContent(3))}),e.nrm(30,"i",53),e.nI1(31,"async"),e.nI1(32,"async"),e.nI1(33,"async"),e.j41(34,"span",53),e.pXf(35,17),e.k0s()(),e.j41(36,"mat-list-item",54),e.bIt("click",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.switchTabContent(4))}),e.nrm(37,"i",53),e.nI1(38,"async"),e.nI1(39,"async"),e.nI1(40,"async"),e.j41(41,"span",53),e.pXf(42,18),e.k0s()(),e.j41(43,"mat-list-item",54),e.bIt("click",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.switchTabContent(5))}),e.nrm(44,"i",53),e.j41(45,"span",53),e.pXf(46,19),e.k0s()()(),e.j41(47,"mat-nav-list",51)(48,"mat-list-item",54),e.bIt("click",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.switchTabContent(6))}),e.nrm(49,"i",53),e.nI1(50,"async"),e.nI1(51,"async"),e.nI1(52,"async"),e.j41(53,"span",53),e.pXf(54,20),e.k0s()()(),e.j41(55,"mat-nav-list",55)(56,"mat-list-item",56),e.bIt("click",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.openTutorielDialog())}),e.nrm(57,"i",57),e.j41(58,"span"),e.pXf(59,21),e.k0s()()()(),e.j41(60,"div",58,2)(62,"div")(63,"div",59)(64,"button",60),e.bIt("click",function(){e.eBV(_);const n=e.XpG();return e.Njj(n.openTutorielDialog())}),e.nrm(65,"i",57),e.k0s()(),e.DNE(66,zc,25,2,"ng-container",39),e.qex(67),e.DNE(68,Hc,2,0,"vplus-espaces-locatifs-residentiels",39)(69,wc,2,0,"vplus-espaces-locatifs-non-residentiels",39)(70,qc,2,0,"vplus-revenus-location-esp-loc",39)(71,Wc,2,0,"vplus-frais-exploitation-e
1sp-loc",39)(72,Jc,2,0,"vplus-espaces-locatifs-attachements",39)(73,Kc,2,1,"vplus-attestation-espaces-locatifs",61)(74,Qc,5,0,"div",62),e.bVm(),e.k0s()()()}if(2&t){const _=e.XpG();e.R7$(),e.Y8G("fixedInViewport",!0)("ngClass",e.eq3(64,$c,_.isToggled)),e.R7$(3),e.Y8G("ngClass",e.eq3(66,Gc,!_.isToggled)),e.R7$(3),e.Y8G("ngClass",e.eq3(68,$e,_.isToggled)),e.R7$(3),e.Y8G("ngClass",e.eq3(70,it,0===_.activeTab)),e.R7$(),e.Y8G("ngClass",e.l_i(72,Uc,0===_.activeTab,0!==_.activeTab)),e.R7$(),e.Y8G("ngClass",e.eq3(75,$e,_.isToggled)),e.R7$(2),e.Y8G("ngClass",e.eq3(77,it,1===_.activeTab)),e.R7$(),e.Y8G("ngClass",e.ziG(79,Ct,1===_.activeTab,1!==_.activeTab,e.bMT(16,34,_.isEspacesResidentielsValid$),!e.bMT(17,36,_.isEspacesResidentielsValid$)&&!e.bMT(18,38,_.isEspacesResidentielsPristine$)&&1!==_.activeTab)),e.R7$(4),e.Y8G("ngClass",e.eq3(84,$e,_.isToggled)),e.R7$(2),e.Y8G("ngClass",e.eq3(86,it,2===_.activeTab)),e.R7$(),e.Y8G("ngClass",e.ziG(88,Ct,2===_.activeTab,2!==_.activeTab,e.bMT(23,40,_.isEspacesNonResidentielsValid$),!e.bMT(24,42,_.isEspacesNonResidentielsValid$)&&!e.bMT(25,44,_.isEspacesNonResidentielsPristine$)&&2!==_.activeTab)),e.R7$(4),e.Y8G("ngClass",e.eq3(93,$e,_.isToggled)),e.R7$(3),e.Y8G("ngClass",e.eq3(95,it,3===_.activeTab)),e.R7$(),e.Y8G("ngClass",e.ziG(97,Ct,3===_.activeTab,3!==_.activeTab,e.bMT(31,46,_.isRevenuLocationValid$),!e.bMT(32,48,_.isRevenuLocationValid$)&&!e.bMT(33,50,_.isRevenuLocationPristine$)&&3!==_.activeTab)),e.R7$(4),e.Y8G("ngClass",e.eq3(102,$e,_.isToggled)),e.R7$(2),e.Y8G("ngClass",e.eq3(104,it,4===_.activeTab)),e.R7$(),e.Y8G("ngClass",e.ziG(106,Ct,4===_.activeTab,4!==_.activeTab,e.bMT(38,52,_.isFraisExploitationValid$),!e.bMT(39,54,_.isFraisExploitationValid$)&&!e.bMT(40,56,_.isFraisExploitationPristine$)&&4!==_.activeTab)),e.R7$(4),e.Y8G("ngClass",e.eq3(111,$e,_.isToggled)),e.R7$(2),e.Y8G("ngClass",e.eq3(113,it,5===_.activeTab)),e.R7$(),e.Y8G("ngClass",e.ziG(115,Ct,5===_.activeTab,5!==_.activeTab,(null==_.formEspacesLocatifsValidationState.AttachementsSectionValidation?null:_.formEspacesLocatifsValidationState.AttachementsSectionValidation.touched)&&(null==_.formEspacesLocatifsValidationState.AttachementsSectionValidation?null:_.formEspacesLocatifsValidationState.AttachementsSectionValidation.valid),5!==_.activeTab&&(null==_.formEspacesLocatifsValidationState.AttachementsSectionValidation?null:_.formEspacesLocatifsValidationState.AttachementsSectionValidation.touched)&&!(null!=_.formEspacesLocatifsValidationState.AttachementsSectionValidation&&_.formEspacesLocatifsValidationState.AttachementsSectionValidation.valid))),e.R7$(),e.Y8G("ngClass",e.eq3(120,$e,_.isToggled)),e.R7$(3),e.Y8G("ngClass",e.eq3(122,it,6===_.activeTab)),e.R7$(),e.Y8G("ngClass",e.ziG(124,Ct,6===_.activeTab,6!==_.activeTab,e.bMT(50,58,_.isAttestationValid$),!e.bMT(51,60,_.isAttestationValid$)&&!e.bMT(52,62,_.isAttestationPristine$)&&6!==_.activeTab)),e.R7$(4),e.Y8G("ngClass",e.eq3(129,$e,_.isToggled)),e.R7$(7),e.Y8G("ngClass",e.eq3(131,yc,_.isToggled)),e.R7$(6),e.Y8G("ngIf",0==_.activeTab),e.R7$(2),e.Y8G("ngIf",1==_.activeTab),e.R7$(),e.Y8G("ngIf",2==_.activeTab),e.R7$(),e.Y8G("ngIf",3==_.activeTab),e.R7$(),e.Y8G("ngIf",4==_.activeTab),e.R7$(),e.Y8G("ngIf",5==_.activeTab),e.R7$(),e.Y8G("ngIf",6==_.activeTab),e.R7$(),e.Y8G("ngIf",6!==_.activeTab)}}const tr=Ze.iI.forChild([{path:"",component:si,children:[{path:"formulaire/:numeroId",component:(()=>{var t;class i{constructor(){this.destroyRef=(0,e.WQX)(e.abz),this.store=(0,e.WQX)(E.il),this.actions$=(0,e.WQX)(v.En),this.router=(0,e.WQX)(Ze.Ix),this.dialog=(0,e.WQX)(ae.bZ),this.appConfig=(0,e.WQX)(De.o),this.isToggled=!1,this.isSent=!1,this.isSuccess=!1,this.isFailed=!1,this.isAttestationWorking=(0,e.vPA)(!1),this.successMessage="",this.helpMessage="Pour toute question, vous pouvez communiquer avec votre organisme municipal et nous vous rappellerons dans un d\xE9lai de 48 heures ouvrables",this.activeTab=0,this.tutorielDialogOpened=!1,this.formulaireIncompletContent='\n\t<div class="help-modal-with-img">\n\t<div class="align-center padding-bottom">\n\t\t\t<h2><i class="icon-invalid small-margin-right"></i>Formulaire incomplet</h2>\n\t\t\t</div>\n\t\t\t<section class="help-modal-section">\n\t\t\t\t<p>'+"Afin de pouvoir envoyer le formulaire, toutes les sections de celui-ci doivent \xEAtre val
1ides."+"</p>\n        </section>\n  </div>\n  ",this.selectIsSearchHeaderVisible$=this.store.select(Ae.selectIsSearchHeaderVisible)}ngOnInit(){this.appConfig.appConfig.paramList.espaceLocatifSuccessMsg&&(this.successMessage=this.appConfig.appConfig.paramList.espaceLocatifSuccessMsg.replace("{0}",this.appConfig.appConfig.munNom)),this.appConfig.appConfig.paramList.proprieteFooterText&&(this.helpMessage=this.appConfig.appConfig.paramList.proprieteFooterText);const o=location.href.split("/"),n=o.findIndex(a=>"propriete"===a);this.proprieteId=o[n+1],this.store.select(ri.t8(this.proprieteId)).pipe((0,U.pQ)(this.destroyRef)).subscribe(a=>{this.propriete=a}),this.store.select(fe).pipe((0,U.pQ)(this.destroyRef)).subscribe(a=>{this.formEspacesLocatifsState=a.EspacesLocatisFormulaire.Data,this.formEspacesLocatifsValidationState=a.EspacesLocatisFormulaire.Validation,this.hasDeclared=a.EspacesLocatisFormulaire.Data.Attestation.HaveDeclared}),this.isEspacesResidentielsValid$=this.store.select(Vt).pipe((0,y.T)(a=>a.valid)),this.isEspacesNonResidentielsValid$=this.store.select(kt).pipe((0,y.T)(a=>a.valid)),this.isAttestationValid$=this.store.select(P_).pipe((0,y.T)(a=>a.valid)),this.isFraisExploitationValid$=this.store.select(Rt).pipe((0,y.T)(a=>a.valid)),this.isRevenuLocationValid$=this.store.select(jt).pipe((0,y.T)(a=>a.valid)),this.isEspacesResidentielsPristine$=this.store.select(Vt).pipe((0,y.T)(a=>!a.touched)),this.isEspacesNonResidentielsPristine$=this.store.select(kt).pipe((0,y.T)(a=>!a.touched)),this.isAttestationPristine$=this.store.select(P_).pipe((0,y.T)(a=>!a.touched)),this.isFraisExploitationPristine$=this.store.select(Rt).pipe((0,y.T)(a=>!a.touched)),this.isRevenuLocationPristine$=this.store.select(jt).pipe((0,y.T)(a=>!a.touched)),this.actions$.pipe((0,v.gp)(Ne),(0,U.pQ)(this.destroyRef)).subscribe(()=>{this.successFailSpinnerRef&&this.isSent&&(this.successFailSpinnerRef.toggleDelayedSuccess(2e3),this.successFailSpinnerRef.SuccessAnimationStarted.pipe((0,U.pQ)(this.destroyRef)).subscribe(()=>{this.isSuccess=!0}))}),this.actions$.pipe((0,v.gp)(Ie),(0,U.pQ)(this.destroyRef)).subscribe(()=>{this.successFailSpinnerRef&&this.isSent&&(this.successFailSpinnerRef.toggleDelayedError(2e3),this.successFailSpinnerRef.ErrorAnimationStarted.pipe((0,U.pQ)(this.destroyRef)).subscribe(()=>{this.isFailed=!0}))})}onContentClick(){this.store.dispatch(Ae.Actions.setIsSearchHeaderVisible({payload:!1}))}switchTabContent(o){this.manageCurrentTabValidation(),this.activeTab=o,this.manageTutorielDialog(this.activeTab)}nextTabContent(){this.manageCurrentTabValidation(),this.activeTab=this.activeTab+1,this.manageTutorielDialog(this.activeTab)}manageTutorielDialog(o){!this.tutorielDialogOpened&&(1===o||2===o)&&(this.openTutorielDialog(),this.tutorielDialogOpened=!0)}manageCurrentTabValidation(){switch(this.activeTab){case 1:this.manageEspLocResValidation();break;case 2:this.manageEspLocNonResValidation();break;case 3:this.manageRevenuLocValidation();break;case 4:this.manageFraisExploiValidation();break;case 5:this.manageAttachementsValidation()}}manageEspLocResValidation(){this.store.dispatch(ut({payload:{touched:!0,valid:!(this.espLocResComponent.espacesLocatifsResidentielsForm.length>0)||this.espLocResComponent.espacesLocatifsResidentielsForm.valid}}))}manageFraisExploiValidation(){this.store.dispatch(pt({payload:{touched:!0,valid:!(this.fraisExploiComponent.fraisExploitationForm.controls.FraisExploitationsEspLoc.length>0)||this.fraisExploiComponent.fraisExploitationForm.valid}}))}manageRevenuLocValidation(){this.store.dispatch(Tt({payload:{touched:!0,valid:!(this.revenuLocComponent.revenusLocationForm.length>0)||this.revenuLocComponent.revenusLocationForm.valid}}))}manageEspLocNonResValidation(){this.store.dispatch(dt({payload:{touched:!0,valid:!(this.espLocNonResComponent.espacesLocatifsNonResidentielsForm.length>0)||this.espLocNonResComponent.espacesLocatifsNonResidentielsForm.valid}}))}manageAttachementsValidation(){this.store.dispatch(Qe({payload:{touched:!0,valid:!(this.attachementsCompt.attachementsForm.controls.Attachements.length>0)||this.attachementsCompt.attachementsForm.valid}}))}sidenavToggle(){this.isToggled=!this.isToggled}openTutorielDialog(){this.dialog.open(Lc,{width:$.Uq.Large,panelClass:"tutoriel-dialog"})}
1submitForm(){if(this.attestationFrm.validateAndMarkAsTouchedAttestationForm(),!0===(this.formEspacesLocatifsValidationState.AttestationSectionValidation.valid&&this.formEspacesLocatifsValidationState.EspacesLocatifsNonResidentielsSectionValidation.valid&&this.formEspacesLocatifsValidationState.EspacesLocatifsResidentielsSectionValidation.valid&&this.formEspacesLocatifsValidationState.FraisExploitationsEspLocSectionValidation.valid&&this.formEspacesLocatifsValidationState.RevenusLocationsEspLocSectionValidation.valid&&this.formEspacesLocatifsValidationState.AttachementsSectionValidation.valid)&&this.hasDeclared)this.store.dispatch(yt()),this.actions$.pipe((0,v.gp)(Pt,Ft),(0,St.s)(1),(0,U.pQ)(this.destroyRef)).subscribe({next:n=>{n.type===Pt.type?(this.isSent=!0,this.store.dispatch(ot({payload:this.formEspacesLocatifsState.Informations.numeroId}))):(this.isAttestationWorking.set(!1),this.store.dispatch(new Ae.Actions.ShowSnackBar("Une erreur est survenue lors de l'envoi du formulaire. Veuillez r\xe9essayer.",Ae.EnumSnackBarType.Echec)))},error:()=>{this.isAttestationWorking.set(!1),this.store.dispatch(new Ae.Actions.ShowSnackBar("Une erreur est survenue lors de l'envoi du formulaire. Veuillez r\xe9essayer.",Ae.EnumSnackBarType.Echec))}});else{const n=this.dialog.open(k_.F,{width:$.Uq.Large});n.componentInstance.htmlContent=this.formulaireIncompletContent,n.afterClosed().pipe((0,U.pQ)(this.destroyRef)).subscribe(()=>this.isAttestationWorking.set(!1))}}redirectAccueil(){this.router.navigate(["propriete",this.proprieteId])}}return(t=i).\u0275fac=function(o){return new(o||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["vplus-espaces-locatifs-form"]],viewQuery:function(o,n){if(1&o&&(e.GBs(Rc,5),e.GBs(Mc,5),e.GBs(gc,5),e.GBs(Dc,5),e.GBs(Fc,5),e.GBs(hc,5),e.GBs(bc,5)),2&o){let a;e.mGM(a=e.lsd())&&(n.successFailSpinnerRef=a.first),e.mGM(a=e.lsd())&&(n.espLocNonResComponent=a.first),e.mGM(a=e.lsd())&&(n.espLocResComponent=a.first),e.mGM(a=e.lsd())&&(n.fraisExploiComponent=a.first),e.mGM(a=e.lsd())&&(n.revenuLocComponent=a.first),e.mGM(a=e.lsd())&&(n.attestationFrm=a.first),e.mGM(a=e.lsd())&&(n.attachementsCompt=a.first)}},decls:7,vars:11,consts:()=>{let _,o,n,a,l,c,O,A,m,T,g,F,h,L,I,M,k,j,B,Y;return _="Envoi de la d\xE9claration en cours... ",o="D\xE9claration soumise avec succ\xE8s !",n="\xC9chec de l'envoi de la d\xE9claration !",a="Retourner \xE0 l'accueil",l="Masquer les sections",c="Introduction",O="Espaces locatifs r\xE9sidentiels",A="Espaces locatifs non-r\xE9sidentiels",m="Revenus et pertes",T="Frais d'exploitation",g="Informations suppl\xE9mentaires",F="Attestation",h="Tutoriel",L="Introduction",I="Adresse de la propri\xE9t\xE9",M=" Veuillez r\xE9pondre \xE0 toutes les questions du formulaire au meilleur de vos connaissances. ",k=" La plupart des champs sont obligatoires pour soumettre votre formulaire. ",j="En l'absence de montant pour les loyers, revenus, pertes ou frais d'exploitation, vous devez inscrire 0 afin de valider la saisie.",B=" Vous pouvez suspendre la saisie des informations en tout temps et le reprendre plus tard. Assurez-vous d'avoir fourni toutes les informations demand\xE9es avant d'utiliser le bouton \xAB Envoyer \xBB de la derni\xE8re section (\xAB Attestation \xBB). ",Y="Continuer",[["SuccessFailSpinner",""],["sidenav",""],["scrollContainer",""],["residentiel",""],["nonresidentiel",""],["revenuLocation",""],["fraisExploi",""],["attachementsForm",""],["attestationFrm",""],_,o,n,a,l,c,O,A,m,T,g,F,h,L,I,M,k,j,B,Y,[1,"hide-desktop","mobile-header",3,"headerTitle","returnButtonType","menuId"],["id","espLoc",3,"click","ngClass"],[1,"main-page-container"],["class","intro-formulaire-container",4,"ngIf"],["class","side-nav-container-auto-dcl",4,"ngIf"],[3,"showProprieteFooter"],[1,"intro-formulaire-container"],[1,"intro-formulaire"],["class","margin-bottom-2",4,"ngIf"],[3,"startEnabled"],[4,"ngIf"],[1,"justify-center"],["mat-raised-button","","class","custom-button-standard custom-button-full",3,"click",4,"ngIf"],[1,"margin-bottom-2"],["mat-raised-button","",1,"custom-button-standard","custom-button-full",3,"click"],[1,"side-nav-container-auto-dcl"],["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"],[3,"click","ngClass"],[3,"ngClass"],["mat-list-item","",3,"click","ngClass"],[1,"side-nav-list","side-nav-tutoriel","hide-mobile"],["mat-list-item","",3,"click"],[1,"icon-form-help"],[1,"side-nav-content-auto-dcl","main-page-container",3,"ngClass"],[1,"tutorial-mobile-fab"],["mat-mini-fab","","color","primary","aria-label","Tutoriel",3,"click"],[3,"isWorking","isWorkingChange","submitFormEvent",4,"ngIf"],["class","form-next-actions",4,"ngIf"],[1,"form-intro","form-section-content"],[1,"propriete-description-header"],[1,"form-section"],[1,"intro-list"],[3,"isWorkingChange","submitFormEvent","isWorking"],[1,"form-next-actions"],[1,"icon-right-arrow"]]},template:function(o,n){1&o&&(e.nrm(0,"vplus-mobile-header",29),e.j41(1,"ion-content",30),e.nI1(2,"async"),e.bIt("click",function(){return n.onContentClick()}),e.j41(3,"div",31),e.DNE(4,Bc,12,6,"div",32)(5,Zc,75,133,"mat-sidenav-container",33),e.k0s()(),e.nrm(6,"app-copyright-footer",34)),2&o&&(e.Y8G("headerTitle","")("returnButtonType","back-button")("menuId","espLoc"),e.R7$(),e.Y8G("ngClass",e.eq3(9,vc,e.bMT(2,7,n.selectIsSearchHeaderVisible$))),e.R7$(3),e.Y8G("ngIf",n.isSent),e.R7$(),e.Y8G("ngIf",!1===n.isSent),e.R7$(),e.Y8G("showProprieteFooter",!0))},dependencies:[b.YU,b.bT,p_.W9,Ac.q,ln.LG,ln.US,se.$z,se.$0,Sn._L,Sn.YE,mc.f,Nc.K,Ic.G,vS,al,_c,Tc,Gi,di,b.Jj],styles:["ion-content#espLoc[_ngcontent-%COMP%]{--overflow: hidden}ion-content#espLoc[_ngcontent-%COMP%]   .side-nav-content-auto-dcl[_ngcontent-%COMP%]{height:96.8vh;overflow-y:auto}@media (max-width: 959px){ion-content#espLoc[_ngcontent-%COMP%]   .side-nav-content-auto-dcl[_ngcontent-%COMP%]{height:110vh!important}}ion-content#espLoc[_ngcontent-%COMP%]   .side-nav-content-auto-dcl[_ngcontent-%COMP%]   .form-next-actions[_ngcontent-%COMP%]{position:relative}ion-content#espLoc[_ngcontent-%COMP%]   .form-sidenav-auto-dcl[_ngcontent-%COMP%]{position:fixed!important;top:0;left:0;height:93vh!important;z-index:100}"]}),i})(),runGuardsAndResolvers:"paramsOrQueryParamsChange",resolve:{espacesLocatifsForm:(t,i,_=(0,e.WQX)(Ze.Ix),o=(0,e.WQX)(X_.K),n=(0,e.WQX)(E.il))=>o.loadUserProprieteFormulaireEspaceLocatif(t.params.numeroId).pipe((0,Si.M)(a=>{if(a.data.Informations)n.dispatch(Q({payload:a.data.Informations}));else{const c=new I_;c.numeroId=Number(t.params.numeroId),a.informations.dataSrc&&a.informations.dataSrc.Informations.DateReference&&(c.DateReference=a.informations.dataSrc.Informations.DateReference,c.DateExercice=a.informations.dataSrc.Informations.DateExercice,c.DateDerniereVisite=a.informations.dataSrc.Informations.DateDerniereVisite),n.dispatch(Q({payload:c}))}const l=!(!a.data||!a.data.B08);if(l)n.dispatch(We({payload:a.informations.dataSrc.EspacesLocatifsResidentiels}));else if(a.data.EspacesLocatifsResidentiels)n.dispatch(We({payload:a.data.EspacesLocatifsResidentiels}));else{const c=new Array;n.dispatch(We({payload:c}))}if(l)n.dispatch(ee({payload:a.informations.dataSrc.EspacesLocatifsNonResidentiels}));else if(a.data.EspacesLocatifsNonResidentiels)n.dispatch(ee({payload:a.data.EspacesLocatifsNonResidentiels}));else{const c=new Array;n.dispatch(ee({payload:c}))}if(a.data.InformationsSupplementaires)n.dispatch(at({payload:a.data.InformationsSupplementaires}));else{const c=new R_;n.dispatch(at({payload:c}))}if(l?(n.dispatch(Oe({payload:a.informations.dataSrc.FraisExploitationsEspLocSection.FraisExploitationsEspLoc})),n.dispatch(pe({payload:a.informations.dataSrc.FraisExploitationsEspLocSection.FraisExploitationEspLocInformations}))):(n.dispatch(Oe({payload:a.data.FraisExploitationsEspLocSection.FraisExploitationsEspLoc})),n.dispatch(pe({payload:a.data.FraisExploitationsEspLocSection.FraisExploitationEspLocInformations}))),n.dispatch(Z(l?{payload:a.informations.dataSrc.RevenusLocationsEspLocRevenu}:{payload:a.data.RevenusLocationsEspLocRevenu})),n.dispatch(Re(l?{payload:a.informations.dataSrc.RevenusLocationsEspLocPerte}:{payload:a.data.RevenusLocationsEspLocPerte})),l){const c=new N_;n.dispatch(q({payload:c}))}else n.dispatch(q({payload:a.data.Attestation}));n.dispatch(lt(l?{payload:[]}:{payload:a.data.Attachements})),a.state&&(n.dispatch(__({payload:a.state.EspacesLocatifsResidentielsSectionValidation})),n.dispatch(n_({payload:a.state.EspacesLocatifsNonResidentielsSectionValidation})),n.dispatch(s_({payload:a.state.FraisExploitationsEspLocSectionValidation})),n.dispatch(E_({payload:a.state.RevenusLocationsEspLocSectionValidation})),n.dispatch(i_({payload:a.state.InformationsSupplementairesSectionValidation})),n.dispatch(a_({payload:a.state.AttestationSectionValidation})),n.dispatch(Qe({payload:a.state.AttachementsSectionValidation})))}),(0,d_.W)(()=>(0,O_.of)(_.parseUrl(`/propriete/${t.parent.params.proprieteId}
1`)))),espacesLocatifsEnums:(t,i,_=(0,e.WQX)(Ei.I))=>_.getEspacesLocatifsEnums()}}]}]);var _r=S(10916);let nr=(()=>{var t;class i{}return(t=i).\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({providers:[_t.q],imports:[b.MD,p_.bv,tr,E.md.forFeature("espaces-locatifs",ai),v.Vm.forFeature([V_]),_r.G]}),i})()},3215:(Zt,me,S)=>{S.d(me,{e:()=>ie});var Pe=S(89417);function ie(w){Object.keys(w.controls).forEach(b=>{const v=w.get(b);v instanceof Pe.J3?ie(v):v instanceof Pe.Bm?v.controls.forEach(E=>{ie(E)}):v.markAsTouched({onlySelf:!0})})}},72811:(Zt,me,S)=>{S.d(me,{H:()=>at});var Pe=S(72609),ie=S(21413),w=S(43236),b=S(39974),v=S(54360),E=S(58750),Ne=S(1807);var We=S(56977),ee=S(54438);let at=(()=>{var q;class Q extends Pe.dI{get minHeight(){return this._minHeight}set minHeight(D){this._minHeight=D,this.updateMinHeight()}get maxHeight(){return this._maxHeight}set maxHeight(D){this._maxHeight=D,this.updateMaxHeight()}onResize(D){this.el.clientWidth!==this._clientWidth&&(this._clientWidth=this.element.nativeElement.clientWidth,this.adjust())}onInput(D){this.inputs.next(D.value)}constructor(D){super(),this.element=D,this.inputs=new ie.B,this.el=D.nativeElement,this._clientWidth=this.el.clientWidth}ngOnInit(){this.inputs.pipe(function Ie(q,Q=w.E,de){const D=(0,Ne.O)(q,Q);return function ot(q,Q){return(0,b.N)((de,D)=>{const{leading:Oe=!0,trailing:pe=!1}=null!=Q?Q:{};let Z=!1,Re=null,z=null,ue=!1;const st=()=>{null==z||z.unsubscribe(),z=null,pe&&(Ke(),ue&&D.complete())},Je=()=>{z=null,ue&&D.complete()},Et=Te=>z=(0,E.Tg)(q(Te)).subscribe((0,v._)(D,st,Je)),Ke=()=>{if(Z){Z=!1;const Te=Re;Re=null,D.next(Te),!ue&&Et(Te)}};de.subscribe((0,v._)(D,Te=>{Z=!0,Re=Te,(!z||z.closed)&&(Oe?Ke():Et(Te))},()=>{ue=!0,(!(pe&&Z&&z)||z.closed)&&D.complete()}))})}(()=>D,de)}(75),(0,We.Q)(this.destroy$)).subscribe(D=>this.adjust())}ngAfterViewInit(){const D=window.getComputedStyle(this.el,null);"both"===D.resize?this.el.style.resize="horizontal":"vertical"===D.resize&&(this.el.style.resize="none"),this.adjust()}adjust(){this.el.style.height!==this.element.nativeElement.scrollHeight+"px"&&(this.el.style.overflow="hidden",this.el.style.height="auto",this.el.style.height=this.el.scrollHeight+"px")}updateMinHeight(){this.el.style.minHeight=this._minHeight+"px"}updateMaxHeight(){this.el.style.maxHeight=this._maxHeight+"px"}}return(q=Q).\u0275fac=function(D){return new(D||q)(ee.rXU(ee.aKT))},q.\u0275dir=ee.FsC({type:q,selectors:[["textarea","autosize",""]],hostBindings:function(D,Oe){1&D&&ee.bIt("resize",function(Z){return Oe.onResize(Z.target)},!1,ee.tSv)("input",function(Z){return Oe.onInput(Z.target)})},inputs:{minHeight:"minHeight",maxHeight:"maxHeight"},features:[ee.Vt3]}),Q})()},84820:(Zt,me,S)=>{S.d(me,{q:()=>ie});var Pe=S(54438);let ie=(()=>{var w;class b{transform(E,ot){const Ne=[];for(const Ie in E)Ne.push({key:Ie,value:E[Ie]});return Ne}}return(w=b).\u0275fac=function(E){return new(E||w)},w.\u0275pipe=Pe.EJ8({name:"ObjectKeysPipe",type:w,pure:!0}),b})()}}]);

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.