1import{k as x,u as y,j as S,c as k,s as C,w as P,o as d,e as m,f as t,m as B,t as n,d as a,p as E,v as M,g as V,G as p,i as A}from"./CiTww14s.js";import{S as f}from"./DVN6D7eS.js";import{u as D,a as F}from"./D21owdHY.js";const I={class:"login"},N={class:"container"},R={class:"row mt-5 p-3"},T={class:"col-12 col-lg-6"},j={class:"m-3 mt-3 p-3"},q={class:"mb-2 position-relative"},G=["placeholder"],L={key:0,class:"text-danger small mt-1 d-block"},U=["disabled"],K={__name:"forgetpassword",async setup(Y){let c,u;const l=x(),{t:e}=y();S();const o=p(""),i=p("");function g(s){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)}async function _(){if(i.value="",!o.value){i.value=e("Email is required");return}if(!g(o.value)){i.value=e("Please enter a valid email");return}const s=await l.forgotPassword({email:o.value});s.success?(await f.fire({icon:"success",title:s.message,timer:2500,showConfirmButton:!1}),o.value=""):f.fire({icon:"error",title:s.message,timer:2500,showConfirmButton:!1})}const v=k(),{contactInfo:$,siteMetas:h}=C(v);[c,u]=P(()=>F()),await c,u();const w=A(()=>h.value?.find(s=>s.type==="forget password"));return D({title:"Passwort vergessen"},w),(s,r)=>(d(),m("section",I,[t("div",N,[t("div",R,[r[1]||(r[1]=t("div",{class:"col-12 col-lg-6"},[t("img",{src:"https://backend.deutschtests.com/img/settings/image1699109107.png",class:"img-fluid pt-1 mt-1",alt:"Forgot Password",style:{"max-width":"77%","padding-left":"62px"}})],-1)),t("div",T,[t("form",{class:"text-center",onSubmit:B(_,["prevent"])},[t("h4",j,n(a(e)("forgottenYourPassword")),1),t("div",q,[E(t("input",{type:"email",class:"w-100 form-control",placeholder:a(e)("Email"),"onUpdate:modelValue":r[0]||(r[0]=b=>o.value=b),style:{"margin-top":"32px"}},null,8,G),[[M,o.value]]),i.value?(d(),m("span",L,n(i.value),1)):V("",!0)]),t("button",{type:"submit",class:"btn w-100 mt-3",disabled:a(l).loading,style:{backgroundColor:"#3d83b3",color:"white",borderRadius:"10px"}},n(a(l).loading?a(e)("loading"):a(e)("schicken")),9,U)],32)])])])]))}};export{K 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.