import{u as g,g as _,b as s,j as p,d as o,e as a,a as c,f as d,l as b,o as x}from"./app-BJF24m-a.js";import{_ as i,a as n}from"./TextInput-O1sjt4fZ.js";import{_ as u}from"./InputError-96UgAvVt.js";import{P as v}from"./PrimaryButton-5AnCxPpY.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const w={class:"min-h-screen flex items-center justify-center bg-gray-100"},h={class:"max-w-md w-full bg-white rounded-lg shadow-lg p-8"},V={class:"mb-4"},y={class:"mb-6"},k={class:"mt-6 text-center"},U={__name:"Login",props:{title:String,errors:Object},setup(l){const t=g({ruc:"",codigo_acceso:""}),m=()=>{t.post(route("portal.authenticate"),{onFinish:()=>t.reset("codigo_acceso")})};return(f,e)=>(x(),_("div",w,[s("div",h,[e[4]||(e[4]=s("div",{class:"text-center mb-8"},[s("h1",{class:"text-2xl font-bold text-gray-800"},"Portal Aseguradora"),s("p",{class:"text-gray-600 mt-2"},"Ingrese sus credenciales")],-1)),s("form",{onSubmit:p(m,["prevent"])},[s("div",V,[o(i,{for:"ruc",value:"RUC"}),o(n,{id:"ruc",modelValue:a(t).ruc,"onUpdate:modelValue":e[0]||(e[0]=r=>a(t).ruc=r),type:"text",class:"mt-1 block w-full",required:"",placeholder:"1234567890001"},null,8,["modelValue"]),o(u,{message:l.errors.ruc,class:"mt-2"},null,8,["message"])]),s("div",y,[o(i,{for:"codigo_acceso",value:"Código de Acceso"}),o(n,{id:"codigo_acceso",modelValue:a(t).codigo_acceso,"onUpdate:modelValue":e[1]||(e[1]=r=>a(t).codigo_acceso=r),type:"password",class:"mt-1 block w-full",required:"",placeholder:"••••••••"},null,8,["modelValue"]),o(u,{message:l.errors.codigo_acceso,class:"mt-2"},null,8,["message"])]),o(v,{class:"w-full justify-center",disabled:a(t).processing},{default:c(()=>[...e[2]||(e[2]=[d(" Ingresar ",-1)])]),_:1},8,["disabled"])],32),s("div",k,[o(a(b),{href:f.route("portal.caso_no_encontrado"),class:"text-sm text-blue-600 hover:underline"},{default:c(()=>[...e[3]||(e[3]=[d(" ¿Caso no encontrado? ",-1)])]),_:1},8,["href"])])])]))}};export{U as default};
