1import{d as _,r as c,o,c as a,a as w,l as y,u as r,K as g,B as e,ap as h,m as k,j as C,L as N,k as f,x as d,e as i,s as E}from"./app-CFsgqP1j.js";import{_ as B}from"./AuthSplitLayout.vue_vue_type_script_setup_true_lang-DX1oFEGH.js";import{u as V}from"./index-BmC_c-Am.js";import{E as b}from"./eye-off-BTr8j_TI.js";import{E as v}from"./eye-DYbr2FiB.js";import{L}from"./loader-circle-B4EwLrhk.js";import"./ToastNotifications-l0oNMqvD.js";import"./createLucideIcon-CaR9SJZR.js";import"./circle-x-B-qYi6ty.js";import"./circle-check-DxM-V2IU.js";import"./x-DOzTIvCn.js";import"./_plugin-vue_export-helper-BecJeOls.js";import"./zap-V_ReGJIJ.js";import"./shield-DCH2-rTP.js";import"./headphones-2Buj7uXl.js";import"./index-C_SHgnPd.js";import"./index-BMKB-lBE.js";const P={class:"app-card rounded-2xl p-6 shadow-lg"},$={class:"space-y-1.5"},j={key:0,class:"text-xs text-destructive"},q={class:"space-y-1.5"},D={class:"relative"},R=["type"],T={key:0,class:"text-xs text-destructive"},G={class:"space-y-1.5"},K={class:"relative"},M=["type"],O={key:0,class:"text-xs text-destructive"},S=["disabled"],le=_({__name:"ResetPassword",props:{token:{},email:{}},setup(u){const x=c(u.email),n=c(!1),l=c(!1);return(z,t)=>(o(),a(B,null,{default:w(()=>[y(r(g),{title:"Nueva Contraseña"}),e("div",P,[t[6]||(t[6]=e("h2",{class:"text-base font-semibold text-foreground mb-5"},"Nueva contraseña",-1)),y(r(h),k(r(V).form(),{transform:s=>({...s,token:u.token,email:u.email}),"reset-on-success":["password","password_confirmation"],class:"space-y-4"}),{default:w(({errors:s,processing:m})=>[e("div",$,[t[3]||(t[3]=e("label",{for:"email",class:"text-sm font-medium text-foreground"},"Correo electrónico",-1)),C(e("input",{id:"email",name:"email",type:"email",autocomplete:"email","onUpdate:modelValue":t[0]||(t[0]=p=>x.value=p),readonly:"",class:"w-full px-4 py-3 rounded-xl bg-muted border border-border text-foreground text-sm focus:outline-none opacity-60 cursor-not-allowed"},null,512),[[N,x.value]]),s.email?(o(),f("p",j,d(s.email),1)):i("",!0)]),e("div",q,[t[4]||(t[4]=e("label",{for:"password",class:"text-sm font-medium text-foreground"},"Nueva contraseña",-1)),e("div",D,[e("input",{id:"password",name:"password",type:n.value?"text":"password",required:"",autofocus:"",autocomplete:"new-password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",class:"w-full px-4 py-3 pr-11 rounded-xl bg-muted border border-border text-foreground placeholder:text-muted-foreground/50 text-sm focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent transition-colors"},null,8,R),e("button",{type:"button",onClick:t[1]||(t[1]=p=>n.value=!n.value),class:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors"},[n.value?(o(),a(r(b),{key:0,class:"w-4 h-4"})):(o(),a(r(v),{key:1,class:"w-4 h-4"}))])]),s.password?(o(),f("p",T,d(s.password),1)):i("",!0)]),e("div",G,[t[5]||(t[5]=e("label",{for:"password_confirmation",class:"text-sm font-medium text-foreground"},"Confirmar contraseña",-1)),e("div",K,[e("input",{id:"password_confirmation",name:"password_confirmation",type:l.value?"text":"password",required:"",autocomplete:"new-password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",class:"w-full px-4 py-3 pr-11 rounded-xl bg-muted border border-border text-foreground placeholder:text-muted-foreground/50 text-sm focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent transition-colors"},null,8,M),e("button",{type:"button",onClick:t[2]||(t[2]=p=>l.value=!l.value),class:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors"},[l.value?(o(),a(r(b),{key:0,class:"w-4 h-4"})):(o(),a(r(v),{key:1,class:"w-4 h-4"}))])]),s.password_confirmation?(o(),f("p",O,d(s.password_confirmation),1)):i("",!0)]),e("button",{type:"submit",disabled:m,class:"w-full btn-primary-filled py-3 rounded-xl font-semibold text-sm flex items-center justify-center gap-2 disabled:opacity-60 disabled:cursor-not-allowed"},[m?(o(),a(r(L),{key:0,class:"w-4 h-4 animate-spin"})):i("",!0),E(" "+d(m?"Guardando...":"Restablecer Contraseña"),1)],8,S)]),_:1},16,["transform"])])]),_:1}))}});
1export{le as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.