const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/WelcomeStep-Bmtt6Knz.js","assets/QBtn-Bl8V3g1s.js","assets/index-BFHpqQMc.js","assets/index-BQveqNql.css","assets/use-router-link-niyq3CDa.js","assets/QSeparator-D1JYPgu2.js","assets/QList-CPm2VhlR.js","assets/vue-i18n.runtime-CGMLV8bE.js","assets/WelcomeStep-95IM2IEv.css","assets/TaxpayerStep-De3KELaV.js","assets/AddressModal-33esE-yw.js","assets/LocalStorage-Bg7wwOV9.js","assets/AddressModal-B9qIzCZw.css","assets/QFile-DVWif_Vn.js","assets/taxstore-B0e8PHMB.js","assets/TaxpayerStep-CCM9SKxW.css","assets/MaritalStep-BZz2uhjH.js","assets/MaritalStep-3A02lP7t.css","assets/ChildrenStep-DIWgJte8.js","assets/children-Dx8AhorD.js","assets/ChildrenStep-BBVX4YNf.css"])))=>i.map(i=>d[i]);
import{c as S,g as w,j as c,a as _,h as k,f as P,k as E,F as $,I as B,r as A,V as h,R as m,M as s,O as C,N as p,K as u,S as R,T as z,J as q,Q as b,U as Q,W as O,X as F,_ as g}from"./index-BFHpqQMc.js";import{h as I}from"./use-router-link-niyq3CDa.js";import{u as V,a as L,b as N,c as T,Q as j}from"./QList-CPm2VhlR.js";const H=S({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(r,{slots:i}){const{proxy:{$q:o}}=w(),e=P(E,c);if(e===c)return console.error("QPage needs to be a deep child of QLayout"),c;if(P($,c)===c)return console.error("QPage needs to be child of QPageContainer"),c;const f=_(()=>{const n=(e.header.space===!0?e.header.size:0)+(e.footer.space===!0?e.footer.size:0);if(typeof r.styleFn=="function"){const y=e.isContainer.value===!0?e.containerHeight.value:o.screen.height;return r.styleFn(n,y)}return{minHeight:e.isContainer.value===!0?e.containerHeight.value-n+"px":o.screen.height===0?n!==0?`calc(100vh - ${n}px)`:"100vh":o.screen.height-n+"px"}}),v=_(()=>`q-page${r.padding===!0?" q-layout-padding":""}`);return()=>k("main",{class:v.value,style:f.value},I(i.default))}}),K=S({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(r,{slots:i}){const o=_(()=>`q-card__section q-card__section--${r.horizontal===!0?"horiz row no-wrap":"vert"}`);return()=>k(r.tag,{class:o.value},I(i.default))}}),M=S({name:"QCard",props:{...V,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(r,{slots:i}){const{proxy:{$q:o}}=w(),e=L(r,o),a=_(()=>"q-card"+(e.value===!0?" q-card--dark q-dark":"")+(r.bordered===!0?" q-card--bordered":"")+(r.square===!0?" q-card--square no-border-radius":"")+(r.flat===!0?" q-card--flat no-shadow":""));return()=>k(r.tag,{class:a.value},I(i.default))}}),J={class:"row full-height"},U={class:"col-3 q-pa-sm bg-grey-1"},W={class:"text-body1"},X={class:"col q-pa-md full-height"},G={key:0,class:"text-h6"},Y={key:2,class:"q-mt-md"},Z=B({__name:"StepsStepper",setup(r){const i=[{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}],o=Math.max(...i.map(t=>t.order)),e=new Array(o+1).fill(void 0).map(()=>({}));i.forEach(t=>{e[t.order]={id:t.id,title:t.title,order:t.order}});const a=A(0),f=_(()=>{const t=e[a.value]?.id;return t==="welcome"?h(()=>g(()=>import("./WelcomeStep-Bmtt6Knz.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))):t==="taxpayer"?h(()=>g(()=>import("./TaxpayerStep-De3KELaV.js"),__vite__mapDeps([9,1,2,3,4,5,6,10,11,7,12,13,14,15]))):t==="marital"?h(()=>g(()=>import("./MaritalStep-BZz2uhjH.js"),__vite__mapDeps([16,1,2,3,4,5,6,10,11,7,12,14,17]))):t==="children"?h(()=>g(()=>import("./ChildrenStep-DIWgJte8.js"),__vite__mapDeps([18,1,2,3,4,5,6,10,11,7,12,13,19,20]))):null}),v=_(()=>e[a.value]);function n(t){if(typeof t=="string"){const l=e.findIndex(d=>d.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(d=>d.id===t);if(l!==-1){a.value=l;return}}a.value>0&&a.value--}return(t,l)=>(s(),m("div",J,[C("div",U,[p(j,{dense:"",bordered:"",class:"vertical-nav"},{default:u(()=>[(s(!0),m(R,null,z(Q(e),(d,x)=>(s(),q(N,{key:d.id,clickable:"",onClick:ae=>a.value=x,active:a.value===x},{default:u(()=>[p(T,null,{default:u(()=>[C("div",W,b(x+1)+". "+b(d.title),1)]),_:2},1024)]),_:2},1032,["onClick","active"]))),128))]),_:1})]),C("div",X,[p(M,{flat:"",class:"q-pa-md full-height"},{default:u(()=>[p(K,null,{default:u(()=>[f.value?O("",!0):(s(),m("div",G,b(Q(e)[a.value]?.title),1)),f.value&&v.value?(s(),q(F(f.value),{key:1,step:v.value,onNext:n,onPrev:y},null,40,["step"])):(s(),m("div",Y))]),_:1})]),_:1})])]))}}),D=(r,i)=>{const o=r.__vccOpts||r;for(const[e,a]of i)o[e]=a;return o},ee=D(Z,[["__scopeId","data-v-26697fc9"]]),te=B({__name:"IndexPage",setup(r){return(i,o)=>(s(),q(H,{class:"row full-width justify-center full-height"},{default:u(()=>[p(ee,{class:"no-shadow full-height full-width"})]),_:1}))}}),re=D(te,[["__scopeId","data-v-1cafec6b"]]),se=Object.freeze(Object.defineProperty({__proto__:null,default:re},Symbol.toStringTag,{value:"Module"}));export{se as I,K as Q,D as _,M as a};
