const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/WelcomeStep-Ducr_hw6.js","assets/index-Dga5rwnp.js","assets/index-BQveqNql.css","assets/vue-i18n.runtime-Ded595FH.js","assets/QList-DXKv2E5u.js","assets/WelcomeStep-BTfvnfIz.css","assets/TaxpayerStep-CYLz4gXJ.js","assets/QSelect-DXNgklLP.js","assets/LocalStorage-BQmANGBd.js","assets/taxstore-CmFaC9hz.js","assets/AddressInput-B89Gh5lw.js","assets/userstore-DQkB_PaC.js","assets/CommentAttachment-BLKHYLmH.js","assets/CommentAttachment-M56Dxc2A.css","assets/AddressInput-DTjVpzGz.css","assets/TaxpayerStep-CWAfROv3.css","assets/MaritalStep-HZhflVB3.js","assets/MaritalStep-C-FftozQ.css","assets/ChildrenStep-CB05RtDe.js","assets/children-B57khVaO.js","assets/ChildrenStep-CyFMlGKq.css","assets/IncomeStep-CwPzkuLi.js","assets/IncomeStep-Cw8mizyx.css","assets/ProfessionalExpensesStep-CvK7BIP3.js","assets/ProfessionalExpensesStep-D4g67cgn.css"])))=>i.map(i=>d[i]);
import{c as A,g as Q,j as P,k as c,m as R,X as w,a as g,h as D,b as O,$ as S,r as $,ad as u,a9 as m,a3 as s,a5 as C,a4 as v,a1 as p,aa as L,ab as V,a0 as I,a8 as b,ac as E,ae as q,af as B,ag as F,ah as T,ai as _}from"./index-Dga5rwnp.js";import{a as z,b as j,Q as N}from"./QList-DXKv2E5u.js";const H=A({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(a,{slots:o}){const{proxy:{$q:i}}=Q(),e=P(R,c);if(e===c)return console.error("QPage needs to be a deep child of QLayout"),c;if(P(w,c)===c)return console.error("QPage needs to be child of QPageContainer"),c;const f=g(()=>{const n=(e.header.space===!0?e.header.size:0)+(e.footer.space===!0?e.footer.size:0);if(typeof a.styleFn=="function"){const y=e.isContainer.value===!0?e.containerHeight.value:i.screen.height;return a.styleFn(n,y)}return{minHeight:e.isContainer.value===!0?e.containerHeight.value-n+"px":i.screen.height===0?n!==0?`calc(100vh - ${n}px)`:"100vh":i.screen.height-n+"px"}}),h=g(()=>`q-page${a.padding===!0?" q-layout-padding":""}`);return()=>D("main",{class:h.value,style:f.value},O(o.default))}}),K={class:"row full-height"},M={class:"col-3 q-pa-sm bg-grey-1"},X={class:"text-body1"},G={class:"col q-pa-md full-height"},J={key:0,class:"text-h6"},U={key:2,class:"q-mt-md"},W=S({__name:"StepsStepper",setup(a){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}],i=Math.max(...o.map(t=>t.order)),e=new Array(i+1).fill(void 0).map(()=>({}));o.forEach(t=>{e[t.order]={id:t.id,title:t.title,order:t.order}});const r=$(0),f=g(()=>{const t=e[r.value]?.id;return t==="welcome"?u(()=>_(()=>import("./WelcomeStep-Ducr_hw6.js"),__vite__mapDeps([0,1,2,3,4,5]))):t==="taxpayer"?u(()=>_(()=>import("./TaxpayerStep-CYLz4gXJ.js"),__vite__mapDeps([6,1,2,7,4,8,9,10,11,12,3,13,14,15]))):t==="marital"?u(()=>_(()=>import("./MaritalStep-HZhflVB3.js"),__vite__mapDeps([16,1,2,7,4,8,9,10,11,12,3,13,14,17]))):t==="children"?u(()=>_(()=>import("./ChildrenStep-CB05RtDe.js"),__vite__mapDeps([18,1,2,7,4,8,11,12,3,13,19,9,20]))):t==="income"?u(()=>_(()=>import("./IncomeStep-CwPzkuLi.js"),__vite__mapDeps([21,1,2,7,4,8,11,3,22]))):t==="professionalExpenses"?u(()=>_(()=>import("./ProfessionalExpensesStep-CvK7BIP3.js"),__vite__mapDeps([23,1,2,7,4,8,3,24]))):null}),h=g(()=>e[r.value]);function n(t){if(typeof t=="string"){const l=e.findIndex(d=>d.id===t);if(l!==-1){r.value=l;return}}r.value<e.length-1&&r.value++}function y(t){if(typeof t=="string"){const l=e.findIndex(d=>d.id===t);if(l!==-1){r.value=l;return}}r.value>0&&r.value--}return(t,l)=>(s(),m("div",K,[C("div",M,[v(N,{dense:"",bordered:"",class:"vertical-nav"},{default:p(()=>[(s(!0),m(L,null,V(E(e),(d,x)=>(s(),I(z,{key:d.id,clickable:"",onClick:te=>r.value=x,active:r.value===x},{default:p(()=>[v(j,null,{default:p(()=>[C("div",X,b(x+1)+". "+b(d.title),1)]),_:2},1024)]),_:2},1032,["onClick","active"]))),128))]),_:1})]),C("div",G,[v(T,{flat:"",class:"q-pa-md full-height"},{default:p(()=>[v(q,null,{default:p(()=>[f.value?B("",!0):(s(),m("div",J,b(E(e)[r.value]?.title),1)),f.value&&h.value?(s(),I(F(f.value),{key:1,step:h.value,onNext:n,onPrev:y},null,40,["step"])):(s(),m("div",U))]),_:1})]),_:1})])]))}}),k=(a,o)=>{const i=a.__vccOpts||a;for(const[e,r]of o)i[e]=r;return i},Y=k(W,[["__scopeId","data-v-f774179c"]]),Z=S({__name:"IndexPage",setup(a){return(o,i)=>(s(),I(H,{class:"row full-width justify-center full-height"},{default:p(()=>[v(Y,{class:"no-shadow full-height full-width"})]),_:1}))}}),ee=k(Z,[["__scopeId","data-v-1cafec6b"]]),ae=Object.freeze(Object.defineProperty({__proto__:null,default:ee},Symbol.toStringTag,{value:"Module"}));export{ae as I,k as _};
