const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./FutureAppointments-C9klAT9-.js","./index-URM8LaDt.js","./index-CitoNOsU.css","./client-QI4n_O0h.js","./HistoryComponent-6DuRFO_s.js"])))=>i.map(i=>d[i]);
import{d as x,g as c,a3 as p,c as l,w as r,_ as C,a as n,m,p as b,G as g,F as v,a4 as w,a5 as h,a6 as _,o as t,n as A,t as E}from"./index-URM8LaDt.js";const F={class:"flex flex-col w-full min-h-screen lg:flex-row"},y={class:"flex gap-2 p-4 bg-blue-100 shadow-md lg:flex-col lg:min-w-64"},B=["onClick"],D={class:"flex-1 p-4"},L=x({__name:"ClientView",props:{userName:{type:String,required:!0,default:"Usuario"}},setup(P){const o={FutureAppointments:p(()=>_(()=>import("./FutureAppointments-C9klAT9-.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)),HistoryComponent:p(()=>_(()=>import("./HistoryComponent-6DuRFO_s.js"),__vite__mapDeps([4,3,1,2]),import.meta.url))},d=Object.keys(o),s=c("FutureAppointments"),i=c(o[s.value]),f=a=>{s.value=a,i.value=o[a]};return(a,u)=>(t(),l(C,null,{main:r(()=>[n("section",F,[n("aside",y,[(t(!0),m(v,null,b(g(d),e=>(t(),m("button",{key:e,onClick:V=>f(e),class:A(["w-full px-4 py-2 rounded font-medium transition",s.value===e?"bg-blue-600 text-white":"bg-blue-300 hover:bg-blue-400 text-blue-900"])},E(e==="FutureAppointments"?"Próximas Citas":e==="HistoryComponent"?"Historial":e),11,B))),128))]),n("article",D,[(t(),l(w,null,{default:r(()=>[(t(),l(h(i.value)))]),fallback:r(()=>u[0]||(u[0]=[n("div",{class:"text-center text-blue-700"},"Cargando componente...",-1)])),_:1}))])])]),_:1}))}});export{L as default};
