1import{J as _,D as h,c as p,a as m,b as s,g as z,w as c,v as f,f as l,E as x,x as b,t as F,F as q,m as n,d,_ as B}from"./BiSZ_CVW.js";import E from"./DTZ9qYlD.js";const P={class:"min-h-[60vh] w-full flex flex-col items-center bg-[#F8F8F8] pt-6 px-3"},S={key:0},V={key:1},T={__name:"jelszovaltas",setup(D){const w=_(),v=h(),g=w.query.token,o=n(""),a=n(""),u=n(!1),t=n(""),y=async()=>{if(t.value="",u.value=!1,o.value!==a.value){t.value="A jelszavak nem egyeznek.";return}try{const r=await fetch("/api/user/password-reset",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:g,newPassword:o.value})}),e=await r.json();r.ok&&e.success?(u.value=!0,setTimeout(()=>{v.push("/bejelentkezes")},2e3)):t.value=e.message||"Hiba történt."}catch{t.value="Hálózati hiba vagy váratlan hiba történt."}};return(r,e)=>{const j=B,k=E;return d(),p(q,null,[m(j),s("div",P,[e[5]||(e[5]=s("h1",{class:"text-center font-bold text-[36px] text-[#070707] mb-8 bricolage-grotesque-custom"},"Elfelejtett jelszó ",-1)),s("form",{onSubmit:z(y,["prevent"]),class:"bg-white rounded-[20px] flex flex-col gap-1 p-4 lg:p-6 w-full shadow-box lg:w-[400px]"},[e[2]||(e[2]=s("p",{class:"text-[14px] text-[#022B45]"},"Ãj jelszó megadása",-1)),c(s("input",{"onUpdate:modelValue":e[0]||(e[0]=i=>x(o)?o.value=i:null),type:"password",placeholder:"",class:"border border-gray-300 px-2 rounded-full w-full py-1.5 mb-2",required:""},null,512),[[f,l(o)]]),e[3]||(e[3]=s("p",{class:"text-[14px] text-[#022B45]"},"Ãj jelszó megismétlése",-1)),c(s("input",{"onUpdate:modelValue":e[1]||(e[1]=i=>x(a)?a.value=i:null),type:"password",placeholder:"",class:"border border-gray-300 px-2 rounded-full w-full py-1.5 mb-2",required:""},null,512),[[f,l(a)]]),e[4]||(e[4]=s("button",{type:"submit",class:"bg-[#1E8FD9] text-white rounded-full py-2 w-full mt-6 bricolage-grotesque-custom font-semibold"},"Email küldése",-1)),l(u)?(d(),p("p",S,"Sikeres jelszócsere! ÃtirányÃtás...")):b("",!0),l(t)?(d(),p("p",V,F(l(t)),1)):b("",!0)],32)]),m(k)],64)}}};export{T 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.