import{C as g}from"./ClientLayout-BgbdwW8T.js";import{C as m}from"./ChatWindow-CBZ3cIWS.js";import{J as p,c as s,a as v,b as o,d as n,h as x,e as l,f as e,p as f,t as k,F as b,o as w}from"./app-DtilF0jd.js";import{_ as y}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./MobileNavigationDrawer-BV2kxNFx.js";import"./DarkModeToggle-wIsj_tj1.js";import"./DropdownLink-Bsw03pEy.js";const C={class:"hidden lg:flex items-center gap-3"},I={class:"text-xs text-gray-500 dark:text-gray-400"},_={class:"-mx-4 -mt-4 -mb-24 sm:-mx-6 sm:-mt-6 lg:mx-0 lg:mt-0 lg:mb-0 h-[calc(100dvh-56px-64px)] lg:h-[calc(100vh-140px)]"},B={class:"h-full lg:mx-auto lg:max-w-3xl lg:px-4 lg:py-3"},M={class:"flex flex-col h-full bg-white dark:bg-gray-900 lg:rounded-2xl lg:shadow-xl lg:border lg:border-gray-200/60 lg:dark:border-gray-800 overflow-hidden"},j={__name:"Index",props:{coach:Object,messages:Array},setup(a){const i=a,d=p(),c=s(()=>d.props.auth.user.id),h=s(()=>d.props.client?.id),u=s(()=>i.coach?.id);return(t,r)=>(w(),v(b,null,[o(n(x),{title:"Chat con Entrenador"}),o(g,null,{header:l(()=>[e("div",C,[o(n(f),{href:t.route("client.dashboard"),class:"p-1.5 -ml-1 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 rounded-full transition-colors"},{default:l(()=>[...r[0]||(r[0]=[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])]),_:1},8,["href"]),r[2]||(r[2]=e("div",{class:"p-2 bg-gradient-to-br from-blue-500 to-indigo-600 rounded-xl"},[e("svg",{class:"w-5 h-5 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})])],-1)),e("div",null,[r[1]||(r[1]=e("h2",{class:"text-[15px] font-bold text-gray-900 dark:text-white"},"Chat con Coach",-1)),e("span",I,k(a.coach?.name),1)])])]),default:l(()=>[e("div",_,[e("div",B,[e("div",M,[o(m,{"receiver-id":a.coach.id,"receiver-name":a.coach.name,"receiver-avatar":a.coach.avatar,messages:a.messages,"sender-id":c.value,"sender-name":t.$page.props.auth.user.name,"sender-avatar":t.$page.props.auth.user.avatar_url,"store-route":t.route("client.chat.store"),"coach-id":u.value,"client-id":h.value,"show-header":!0,class:"flex-1"},null,8,["receiver-id","receiver-name","receiver-avatar","messages","sender-id","sender-name","sender-avatar","store-route","coach-id","client-id"])])])])]),_:1})],64))}},z=y(j,[["__scopeId","data-v-46812194"]]);export{z as default};
