const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/WelcomeStep-4mnlgiMd.js","assets/index-BmjEiQ1N.js","assets/index-BQveqNql.css","assets/vue-i18n.runtime-BJiJhJjW.js","assets/QList-D7mleCtN.js","assets/WelcomeStep-BTfvnfIz.css","assets/TaxpayerStep-B6ffPYtU.js","assets/CommentAttachment-Cd2tEdil.js","assets/taxstore-_HmhNaxB.js","assets/CommentAttachment-M56Dxc2A.css","assets/AddressInput-87dDVmDx.js","assets/AddressInput-DTjVpzGz.css","assets/TaxpayerStep-CWAfROv3.css","assets/MaritalStep-B1YvSTl7.js","assets/MaritalStep-DL6z_e8a.css","assets/ChildrenStep-bpUch1TG.js","assets/children-Cq9nPSB7.js","assets/ChildrenStep-CyFMlGKq.css"])))=>i.map(i=>d[i]);
import{c as w,g as A,j as S,k as d,m as $,X as R,a as g,h as D,b as O,$ as Q,r as q,ad as v,a2 as B,a9 as h,a3 as s,a5 as C,a4 as c,a1 as u,aa as F,ab as L,a0 as I,a8 as b,ac as k,ae as V,af as z,ag as j,ah as N,ai as m}from"./index-BmjEiQ1N.js";import{a as T,b as H,Q as K}from"./QList-D7mleCtN.js";const M=w({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(i,{slots:o}){const{proxy:{$q:r}}=A(),e=S($,d);if(e===d)return console.error("QPage needs to be a deep child of QLayout"),d;if(S(R,d)===d)return console.error("QPage needs to be child of QPageContainer"),d;const p=g(()=>{const n=(e.header.space===!0?e.header.size:0)+(e.footer.space===!0?e.footer.size:0);if(typeof i.styleFn=="function"){const y=e.isContainer.value===!0?e.containerHeight.value:r.screen.height;return i.styleFn(n,y)}return{minHeight:e.isContainer.value===!0?e.containerHeight.value-n+"px":r.screen.height===0?n!==0?`calc(100vh - ${n}px)`:"100vh":r.screen.height-n+"px"}}),f=g(()=>`q-page${i.padding===!0?" q-layout-padding":""}`);return()=>D("main",{class:f.value,style:p.value},O(o.default))}}),X={class:"row full-height"},G={class:"col-3 q-pa-sm bg-grey-1"},J={class:"text-body1"},U={class:"col q-pa-md full-height"},W={key:0,class:"text-h6"},Y={key:2,class:"q-mt-md"},Z=Q({__name:"StepsStepper",setup(i){const o=[{id:"welcome",title:"Benvenuto",order:0},{id:"taxpayer",title:"Dati contribuente e dichiarazione precedente",order:1},{id:"marital",title:"Stato civile",order:2},{id:"children",title:"Figli",order:3},{id:"income",title:"Redditi",order:4},{id:"professionalExpenses",title:"Spese professionali",order:5},{id:"sideIncome",title:"Reddito accessorio",order:6},{id:"annuities",title:"Rendite",order:7},{id:"insurance",title:"Spese assicurative e mediche",order:8},{id:"pillar3",title:"Polizze 3A / 3B",order:9},{id:"bankAccounts",title:"Conti bancari",order:10},{id:"otherAssets",title:"Altri beni / averi",order:11},{id:"debts",title:"Debiti / ipoteche",order:12},{id:"properties",title:"Immobili",order:13},{id:"foreign",title:"Redditi o averi all’estero",order:14}],r=Math.max(...o.map(t=>t.order)),e=new Array(r+1).fill(void 0).map(()=>({}));o.forEach(t=>{e[t.order]={id:t.id,title:t.title,order:t.order}});const a=q(0),p=g(()=>{const t=e[a.value]?.id;return t==="welcome"?v(()=>m(()=>import("./WelcomeStep-4mnlgiMd.js"),__vite__mapDeps([0,1,2,3,4,5]))):t==="taxpayer"?v(()=>m(()=>import("./TaxpayerStep-B6ffPYtU.js"),__vite__mapDeps([6,1,2,7,4,8,3,9,10,11,12]))):t==="marital"?v(()=>m(()=>import("./MaritalStep-B1YvSTl7.js"),__vite__mapDeps([13,1,2,7,4,8,3,9,10,11,14]))):t==="children"?v(()=>m(()=>import("./ChildrenStep-bpUch1TG.js"),__vite__mapDeps([15,1,2,7,4,8,3,9,16,17]))):null}),f=g(()=>e[a.value]);function n(t){if(typeof t=="string"){const l=e.findIndex(_=>_.id===t);if(l!==-1){a.value=l;return}}a.value<e.length-1&&a.value++}function y(t){if(typeof t=="string"){const l=e.findIndex(_=>_.id===t);if(l!==-1){a.value=l;return}}a.value>0&&a.value--}return(t,l)=>{const _=B("taxpayer-step");return s(),h("div",X,[C("div",G,[c(K,{dense:"",bordered:"",class:"vertical-nav"},{default:u(()=>[(s(!0),h(F,null,L(k(e),(P,x)=>(s(),I(T,{key:P.id,clickable:"",onClick:re=>a.value=x,active:a.value===x},{default:u(()=>[c(H,null,{default:u(()=>[C("div",J,b(x+1)+". "+b(P.title),1)]),_:2},1024)]),_:2},1032,["onClick","active"]))),128))]),_:1})]),C("div",U,[c(N,{flat:"",class:"q-pa-md full-height"},{default:u(()=>[c(V,null,{default:u(()=>[p.value?z("",!0):(s(),h("div",W,b(k(e)[a.value]?.title),1)),p.value&&f.value?(s(),I(j(p.value),{key:1,step:f.value,onNext:n,onPrev:y},null,40,["step"])):(s(),h("div",Y))]),_:1}),c(_)]),_:1})])])}}}),E=(i,o)=>{const r=i.__vccOpts||i;for(const[e,a]of o)r[e]=a;return r},ee=E(Z,[["__scopeId","data-v-276d0120"]]),te=Q({__name:"IndexPage",setup(i){return(o,r)=>(s(),I(M,{class:"row full-width justify-center full-height"},{default:u(()=>[c(ee,{class:"no-shadow full-height full-width"})]),_:1}))}}),ae=E(te,[["__scopeId","data-v-1cafec6b"]]),ne=Object.freeze(Object.defineProperty({__proto__:null,default:ae},Symbol.toStringTag,{value:"Module"}));export{ne as I,E as _};
