1import{_ as f}from"./action-buttons.vue_vue_type_script_setup_true_lang-CjBvb-Jb.js";import{I as h}from"./input-number-DCS59zhK.js";import{a0 as p,H as b,_ as g,m as u,a as d,b as s,t as l,f as n,k as _,i as y,l as r}from"./index-CoAySa1k.js";import{E as v}from"./en-savoir-plus-CV1dpq6u.js";import"./hint-Dh0ry3kp.js";import"./mutualized-steps-Bg1G0fEf.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="106ca99a-dc5b-4dae-b7b3-058f34e6817d",e._sentryDebugIdIdentifier="sentry-dbid-106ca99a-dc5b-4dae-b7b3-058f34e6817d")}catch(e){}const Q={name:"SimulationMenageDepCom",components:{InputNumber:h,ActionButtons:f,EnSavoirPlus:v},props:{modelValue:Number},setup(){return{store:b()}},data(){return p.getLoyerData(this.store.simulation.answers.all)},computed:{canSubmit(){let e=null;this.loyerQuestion&&(e=this.loyerQuestion.selectedValue!=null&&this.loyerQuestion.selectedValue>=0);let t=null;return this.chargesQuestion&&(t=this.chargesQuestion.selectedValue!=null&&this.chargesQuestion.selectedValue>=0),this.captureCharges?e&&t:e}},created(){this.loyerQuestion&&!this.loyerQuestion.selectedValue&&(this.loyerQuestion.selectedValue=0),this.chargesQuestion&&!this.chargesQuestion.selectedValue&&(this.chargesQuestion.selectedValue=0)},methods:{onSubmit(){this.canSubmit&&(this.store.answer({entityName:"menage",fieldName:"loyer",path:this.$route.path,value:{loyer:this.loyerQuestion.selectedValue||0,charges_locatives:this.captureCharges?this.chargesQuestion.selectedValue||0:void 0}}),this.$push())}}},V={for:"loyer",class:"fr-px-2v"},S={class:"fr-text--lead fr-text--bold"},w={class:"fr-hint-text fr-px-2v fr-mt-2v"},I={class:"fr-container fr-px-0"},N={class:"fr-grid-row"},D={class:"fr-col-12 fr-col-md-5 fr-col-lg-5"},x={key:0,class:"fr-mt-6w"},B={for:"charges",class:"fr-px-2v"},C={class:"fr-text--lead fr-text--bold"},E={class:"fr-hint-text fr-px-2v fr-mt-2v"},k={class:"fr-container fr-px-0"},A={class:"fr-grid-row"},P={class:"fr-col-12 fr-col-md-5 fr-col-lg-5"};function $(e,t,L,M,T,i){const a=r("InputNumber"),c=r("EnSavoirPlus"),m=r("ActionButtons");return u(),d("form",{onSubmit:t[2]||(t[2]=y((...o)=>i.onSubmit&&i.onSubmit(...o),["prevent"]))},[s("div",null,[s("label",V,[s("span",S,l(e.loyerQuestion.label),1),s("span",w,l(e.loyerQuestion.hint),1)]),s("div",I,[s("div",N,[s("div",D,[n(a,{id:"loyer",modelValue:e.loyerQuestion.selectedValue,"onUpdate:modelValue":t[0]||(t[0]=o=>e.loyerQuestion.selectedValue=o),min:0},null,8,["modelValue"])])])])]),e.captureCharges?(u(),d("div",x,[s("label",B,[s("span",C,l(e.chargesQuestion.label),1),n(c),s("span",E,l(e.chargesQuestion.hint),1)]),s("div",k,[s("div",A,[s("div",P,[n(a,{id:"charges",modelValue:e.chargesQuestion.selectedValue,"onUpdate:modelValue":t[1]||(t[1]=o=>e.chargesQuestion.selectedValue=o),min:0},null,8,["modelValue"])])])])])):_("",!0),n(m,{"on-submit":i.onSubmit,"disable-submit":!i.canSubmit},null,8,["on-submit","disable-submit"])],32)}const G=g(Q,[["render",$]]);export{G as default}; 2//# sourceMappingURL=loyer-ChTp_F-C.js.map
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.