1import{_ as F}from"./DHhK6_mM.js";import{_ as q}from"./BFhqd1Sp.js";import{_ as C}from"./CIM4hDSa.js";import{_ as R}from"./DDR0vaa-.js";import{j as y,U as S,a as v,y as $,F as n,u as s,an as k,z as P,A as l,v as g,x,B as V,I as N,af as j}from"./BqwoF_p2.js";import{u as U}from"./l0_Jq5_-.js";import{c as B,q as I,b as z,f as E,l as L,u as A,e as D,g as M,n as O,m as T}from"./ByksiL8Q.js";import{u as W}from"./Dk_sDQjc.js";import{r as H}from"./Csp1wAKh.js";import"./O2Qdntuy.js";import"./NNFxq12j.js";import"./BNijKLCl.js";import"./BRDH5o7q.js";const Y=y({__name:"PasswordResetForm",props:{modelValue:{type:Object,required:!0}},emits:["success"],setup(h,{emit:_}){const d=_,f=h,{modelValue:a}=S(f),{handleSubmit:i,meta:p}=U(),{$repository:c}=B(),r=v(!1);I().clearErrors();const m=i(async()=>{r.value=!0,await c.password.resetPassword(a.value).then(t=>{t!==!1&&d("success")}).finally(()=>r.value=!1)});return(t,e)=>{const w=q,u=C,b=R;return P(),$("form",{class:"space-y-6",onSubmit:e[3]||(e[3]=k((...o)=>s(m)&&s(m)(...o),["prevent"]))},[n(w),n(u,{id:"email",modelValue:s(a).email,"onUpdate:modelValue":e[0]||(e[0]=o=>s(a).email=o),name:"email",type:"email",rules:"required|email",autocomplete:"email","show-label":!0,label:t.$t("form.email.label"),class:"mb-6"},null,8,["modelValue","label"]),n(u,{id:"password",modelValue:s(a).password,"onUpdate:modelValue":e[1]||(e[1]=o=>s(a).password=o),name:"password",type:"password",rules:"required",autocomplete:"current-password","show-label":!0,label:t.$t("form.passwordNew.label"),class:"mt-4"},null,8,["modelValue","label"]),n(u,{id:"password-confirmation",modelValue:s(a).passwordConfirmation,"onUpdate:modelValue":e[2]||(e[2]=o=>s(a).passwordConfirmation=o),name:"password-confirmation",type:"password",rules:"required",autocomplete:"current-password","show-label":!0,label:t.$t("form.passwordNewConfirmation.label"),class:"mt-4"},null,8,["modelValue","label"]),n(b,{label:t.$t("button.save"),"is-submitting":r.value,"is-valid":s(p).dirty&&s(p).valid},null,8,["label","is-submitting","is-valid"])],32)}}}),G=Object.assign(Y,{__name:"PasswordResetForm"}),J={id:"page-content",class:"flex flex-col py-16 banner__bottom--wide sm:px-6 lg:px-8"},K={class:"mt-8 sm:mx-auto sm:w-full sm:max-w-md"},Q={class:"px-4 py-12 bg-white shadow sm:rounded-lg sm:px-10"},X={class:"p-4 rounded-md bg-green-50"},Z={class:"flex"},ee={class:"shrink-0"},se={class:"ml-3"},te={class:"text-sm font-medium text-green-800"},oe={class:"mt-6 text-sm text-right"},be=y({__name:"jelszo-visszaallitasa",setup(h){const{t:_}=z(),d=E(),f=M(),a=L(),i=v(!1),p=A(),c=new URLSearchParams(p.search),r=c.get("token")||d.query.token;if(W().setImage("MNYI_jobb_sav.jpg"),D({title:`${_("auth.resetPassword.title")} | ${f.public.siteName}`}),!r)throw O({statusCode:404});const m=v({email:c.get("email")||d.query.email,locale:"hu",password:"",passwordConfirmation:"",token:r});return(t,e)=>{const w=F,u=G,b=T;return P(),$("div",J,[n(w,{title:t.$t("auth.resetPassword.title")},null,8,["title"]),l("div",K,[l("div",Q,[g(n(u,{modelValue:m.value,"onUpdate:modelValue":e[0]||(e[0]=o=>m.value=o),onSuccess:e[1]||(e[1]=o=>i.value=!0)},null,8,["modelValue"]),[[x,!i.value]]),g(l("div",null,[l("div",X,[l("div",Z,[l("div",ee,[n(s(H),{class:"w-5 h-5 text-green-400","aria-hidden":"true"})]),l("div",se,[l("h3",te,V(t.$t("auth.resetPassword.message.success")),1)])])]),l("div",oe,[n(b,{to:s(a)("/bejelentkezes"),class:"font-medium text-indigo-600 hover:text-indigo-500"},{default:N(()=>[j(V(t.$t("auth.registration.login")),1)]),_:1},8,["to"])])],512),[[x,i.value]])])])])}}});export{be 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.