PageSourceSearch

https://portal.safeos.de/assets/ForgotPassword-Dm-6joMy.js

js safeos.de collected 2026-10-02 16:13:21 UTC 3,313 bytes, 1 lines download raw bytes

1import{h as b,r as C,f as p,K as g,L as l,_ as V,a0 as o,$ as t,a1 as i,n as a,aa as S,u as s,a7 as E,M as d}from"./vue-datepicker-CpIdsRIT.js";import{_ as A}from"./CardContainer.vue_vue_type_script_setup_true_lang-BKfUFWAw.js";import{r as B,e as q,V as N}from"./VForm-fG7fwhIC.js";import{u as R,a as I,b as M,o as T,e as H,V as P,p as L,n as O}from"./index-c2PABjuS.js";import{r as U}from"./ResolveErrorCode-_CDAcugR.js";import{u as z}from"./ResendCooldownComposable-DcO-CUaE.js";import{V as D}from"./VTextField-CzBtTN-C.js";import"./datefns-BAflKSlV.js";const K={class:"flex flex-col gap-3 mt-8"},j={class:"text-2xl"},G={class:"text-xl font-medium"},J={class:"flex flex-col gap-1 text-sm items-center"},Q={key:1,class:"text-disabled"},W={class:"text-center"},le=b({__name:"ForgotPassword",setup(X){const h=T(),_=R(),{notifyError:k,notifySuccess:$}=I(),{t:w}=M(),n=C({email:h.currentRoute.value?.query?.email??""}),m=p(!1),c=p(!1),v=p(!1),{remaining:f,start:x}=z(60),y=async()=>{if(!(f.value>0)){c.value=!0;try{await _.resetPassword(n.email),$(w("Auth.ForgotPassword.emailSend")),v.value=!0,x()}catch(e){k(w(U(e,"Auth.ForgotPassword.genericError")))}c.value=!1}};return(e,r)=>{const F=S("router-link");return d(),g("div",K,[l("span",j,o(e.$t("Auth.ForgotPassword.title")),1),v.value?(d(),V(A,{key:1,class:"flex flex-col gap-4 p-6 sm:w-[60dvw] items-center text-center"},{default:t(()=>[a(O,{icon:s(L),size:"48",color:"secondary"},null,8,["icon"]),l("span",G,o(e.$t("Auth.ForgotPassword.emailSentHeading")),1),l("span",null,o(e.$t("Auth.ForgotPassword.emailSentInfo",{email:n.email})),1),a(P,{color:"secondary",height:"46",style:{"background-image":"linear-gradient(45deg,#d73625,#F78361)!important"},onClick:r[2]||(r[2]=u=>s(h).push({name:"login"}))},{default:t(()=>[i(o(e.$t("Auth.ForgotPassword.backToLogin")),1)]),_:1}),l("div",J,[s(f)===0?(d(),g("a",{key:0,class:"text-info underline cursor-pointer",onClick:y},o(e.$t("Auth.ForgotPassword.resendEmail")),1)):(d(),g("span",Q,o(e.$t("Auth.ForgotPassword.resendEmail"))+" ("+o(s(f))+"s) ",1)),a(F,{to:{name:"reset-password",query:{email:n.email}},class:"text-info underline"},{default:t(()=>[i(o(e.$t("Auth.ForgotPassword.enterCodeManually")),1)]),_:1},8,["to"])])]),_:1})):(d(),V(A,{key:0,class:"flex flex-col gap-3 p-6 sm:w-[60dvw]"},{default:t(()=>[l("span",null,o(e.$t("Auth.ForgotPassword.heading")),1),a(N,{modelValue:m.value,"onUpdate:modelValue":r[1]||(r[1]=u=>m.value=u),class:"flex flex-col gap-3",onSubmit:E(y,["prevent"])},{default:t(()=>[a(D,{modelValue:n.email,"onUpdate:modelValue":r[0]||(r[0]=u=>n.email=u),label:e.$t("Auth.ForgotPassword.email"),type:"email",color:"secondary","prepend-inner-icon":s(H),rules:[s(B),s(q)],variant:"outlined","hide-details":"auto",required:""},null,8,["modelValue","label","prepend-inner-icon","rules"]),a(P,{loading:c.value,disabled:!m.value,type:"submit",color:"secondary",height:"46",style:{"background-image":"linear-gradient(45deg,#d73625,#F78361)!important"}},{default:t(()=>[i(o(e.$t("Auth.ForgotPassword.confirm")),1)]),_:1},8,["loading","disabled"])]),_:1},8,["modelValue"])]),_:1})),l("span",W,[i(o(e.$t("Auth.ForgotPassword.newHere"))+" ",1),a(F,{to:{name:"register"},class:"text-info underline"},{default:t(()=>[i(o(e.$t("Auth.ForgotPassword.createAccount")),1)]),_:1})])])}}});export{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.