import{c as _}from"./client-QI4n_O0h.js";import{d as f,g as h,u as x,A as y,r as g,m as a,o as n,a as s,F as v,p as b,b as l,e as d,t as o,C as k,x as C}from"./index-URM8LaDt.js";const F={class:""},H={key:0},N={class:"p-5 mx-auto mt-6 max-w-xl bg-white rounded-2xl border border-gray-100 shadow-md"},w={class:"flex items-center mb-4 text-blue-600"},S={class:"space-y-3 text-gray-700"},B={class:"flex items-center"},V={class:"flex items-center"},q={class:"flex items-center"},A={key:1},L=f({__name:"HistoryComponent",setup(D){const m=_(),i=h([]),u=x(),p=async()=>{try{(await k(C(u,`users/${m.clientUid}/HistoryAppointments`))).forEach(e=>{i.value.push(e.data()),console.log(e.data())})}catch(c){console.log(c)}};return y(()=>{p()}),(c,e)=>{const r=g("v-icon");return n(),a("div",F,[e[4]||(e[4]=s("h2",null,"Historial",-1)),i.value.length?(n(),a("section",H,[(n(!0),a(v,null,b(i.value,t=>(n(),a("div",{key:t.id},[s("article",N,[s("div",w,[l(r,{name:"hi-clock",class:"mr-2",scale:"1.2"}),e[0]||(e[0]=s("h3",{class:"text-lg font-semibold"},"Cita Finalizada",-1))]),s("div",S,[s("div",B,[l(r,{name:"hi-calendar",class:"mr-3 text-pink-500"}),s("p",null,[e[1]||(e[1]=s("span",{class:"font-medium"},"Fecha de la cita programada:",-1)),d(" "+o(t.day)+", "+o(t.dayNumber)+" de "+o(t.month)+" del "+o(t.year),1)])]),s("div",V,[l(r,{name:"hi-clock",class:"mr-3 text-green-600"}),s("p",null,[e[2]||(e[2]=s("span",{class:"font-medium"},"Hora:",-1)),d(" "+o(t.hour),1)])]),s("div",q,[l(r,{name:"hi-user",class:"mr-3 text-purple-600"}),s("p",null,[e[3]||(e[3]=s("span",{class:"font-medium"},"Profesional:",-1)),d(" "+o(t.proffession),1)])])])])]))),128))])):(n(),a("p",A,"No hay citas programadas"))])}}});export{L as default};
