import{A as u}from"./AdminLayout-cPq_IGY4.js";import{C as p}from"./CoachLayout-DmiDPFPr.js";import g from"./DeleteUserForm-07CzNl9C.js";import x from"./UpdatePasswordForm-LUlZUkbG.js";import f from"./UpdateProfileInformationForm-Das1Uxk_.js";import{J as h,c as a,r as v,a as b,b as t,y as k,d as w,h as y,e as i,f as e,aq as _,F as C,x as B,o as d}from"./app-DtilF0jd.js";import{_ as M}from"./PullToRefresh-Car1lLwz.js";import"./MobileNavigationDrawer-BV2kxNFx.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./DarkModeToggle-wIsj_tj1.js";import"./ImpersonationBanner-BXRKEhdr.js";import"./DropdownLink-Bsw03pEy.js";import"./Modal-uO16Ips-.js";import"./InputError-CGryjV6E.js";import"./SecondaryButton-C-Ld6z1k.js";import"./PrimaryButton-8n0N1KDV.js";const z={class:"py-6"},P={class:"max-w-4xl space-y-6"},V={class:"bg-white dark:bg-gray-800 overflow-hidden shadow-sm sm:rounded-xl border border-gray-200 dark:border-gray-700"},j={class:"p-6 sm:p-8"},E={class:"bg-white dark:bg-gray-800 overflow-hidden shadow-sm sm:rounded-xl border border-gray-200 dark:border-gray-700"},L={class:"p-6 sm:p-8"},$={class:"bg-white dark:bg-gray-800 overflow-hidden shadow-sm sm:rounded-xl border border-red-200 dark:border-red-900/50"},A={class:"p-6 sm:p-8"},F={class:"flex items-center space-x-3 mb-6"},Y={__name:"Edit",props:{mustVerifyEmail:{type:Boolean},status:{type:String}},setup(o){const l=h(),n=a(()=>l.props.auth.user),m=a(()=>n.value.role==="coach"?p:u),r=v(!1),c=()=>{r.value=!0,B.reload({onFinish:()=>{r.value=!1}})};return(R,s)=>(d(),b(C,null,[t(w(y),{title:"Mi Perfil"}),(d(),k(_(m.value),null,{default:i(()=>[t(M,{loading:r.value,onRefresh:c},{default:i(()=>[e("div",z,[s[4]||(s[4]=e("div",{class:"mb-8 px-4 sm:px-0"},[e("div",{class:"flex items-center space-x-4"},[e("div",{class:"p-3 bg-gradient-to-br from-indigo-500 to-purple-600 rounded-xl shadow-lg"},[e("svg",{class:"w-8 h-8 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})])]),e("div",null,[e("h1",{class:"text-2xl font-bold text-gray-900 dark:text-white"},"Mi Perfil"),e("p",{class:"text-gray-600 dark:text-gray-400"},"Gestiona tu información personal y seguridad")])])],-1)),e("div",P,[e("div",V,[e("div",j,[s[0]||(s[0]=e("div",{class:"flex items-center space-x-3 mb-6"},[e("div",{class:"p-2 bg-indigo-100 dark:bg-indigo-900/30 rounded-lg"},[e("svg",{class:"w-5 h-5 text-indigo-600 dark:text-indigo-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5.121 17.804A13.937 13.937 0 0112 16c2.5 0 4.847.655 6.879 1.804M15 10a3 3 0 11-6 0 3 3 0 016 0zm6 2a9 9 0 11-18 0 9 9 0 0118 0z"})])]),e("h3",{class:"text-lg font-semibold text-gray-900 dark:text-white"},"Información Personal")],-1)),t(f,{"must-verify-email":o.mustVerifyEmail,status:o.status,class:"max-w-xl"},null,8,["must-verify-email","status"])])]),e("div",E,[e("div",L,[s[1]||(s[1]=e("div",{class:"flex items-center space-x-3 mb-6"},[e("div",{class:"p-2 bg-amber-100 dark:bg-amber-900/30 rounded-lg"},[e("svg",{class:"w-5 h-5 text-amber-600 dark:text-amber-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})])]),e("h3",{class:"text-lg font-semibold text-gray-900 dark:text-white"},"Cambiar Contraseña")],-1)),t(x,{class:"max-w-xl"})])]),e("div",$,[e("div",A,[e("div",F,[s[2]||(s[2]=e("div",{class:"p-2 bg-red-100 dark:bg-red-900/30 rounded-lg"},[e("svg",{class:"w-5 h-5 text-red-600 dark:text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})])],-1)),s[3]||(s[3]=e("h3",{class:"text-lg font-semibold text-gray-900 dark:text-white"},"Zona de Peligro",-1)),t(g,{class:"max-w-xl"})])])])])])]),_:1},8,["loading"])]),_:1}))],64))}};export{Y as default};
