PageSourceSearch

https://app.bettercontext.ai/build/assets/ForgotPasswordButton.vue_vue_type_script_setup_true_lang-CfGEg4rv.js

js bettercontext.ai collected 2026-10-05 12:31:53 UTC 2,123 bytes, 1 lines download raw bytes

1import{d as B,k as x,U as g,r as l,o as i,e as V,a as u,w as o,b as d,m as c,l as p,u as n,c as f,h as a,f as E,F as $}from"./app-DfvdyVo4.js";const N=a("div",{class:"text-link text-primary text-brand underline"}," Click here to reset ",-1),S=a("div",{class:"text-green whitespace-normal text-center"}," An email has been sent with instructions to reset your password. ",-1),F=a("hr",null,null,-1),M={class:"text-center text-sm"},R=a("br",null,null,-1),P=B({__name:"ForgotPasswordButton",props:{email:{}},setup(b){let t=x(!1),m=x(!1),s=g({email:b.email||""});function y(){s.post(route("password.email"),{onSuccess:()=>m.value=!0})}function k(){m.value=!1,s.reset()}return(D,e)=>{const _=l("Button"),v=l("Card"),w=l("ButtonSubmit"),C=l("Input"),h=l("Modal");return i(),V($,null,[u(_,{class:"btn-base btn-sm w-full justify-center",onClick:e[0]||(e[0]=c(r=>p(t)?t.value=!0:t=!0,["stop","prevent"]))},{default:o(()=>[d(" Did you forget your password? "),N]),_:1}),n(t)?(i(),f(h,{key:0},{default:o(()=>[n(m)?(i(),f(v,{key:0,class:"container-xl slide-in-center py-12",title:"Check your email",onExit:e[2]||(e[2]=r=>p(t)?t.value=!1:t=!1)},{default:o(()=>[S,u(_,{href:"https://gmail.com",target:"_blank",class:"btn-brand active mx-auto px-6"},{default:o(()=>
1[d(" Open Email ")]),_:1}),F,a("div",M,[d(" Did not receive the email? Check your spam filter, or "),R,a("div",{class:"text-link text-brand whitespace-nowrap pl-1 underline",onClick:e[1]||(e[1]=c(r=>k(),["stop","prevent"]))}," try another email address ")])]),_:1})):(i(),f(v,{key:1,title:"Reset your password",class:"container-xl slide-in-center",onExit:e[4]||(e[4]=r=>p(t)?t.value=!1:t=!1),onSubmit:e[5]||(e[5]=c(r=>y(),["prevent"]))},{footer:o(()=>[u(w,{form:n(s)},{default:o(()=>[d(" Reset Password ")]),_:1},8,["form"])]),default:o(()=>[u(C,{modelValue:n(s).email,"onUpdate:modelValue":e[3]||(e[3]=r=>n(s).email=r),error:n(s).errors.email,type:"email",placeholder:"Enter your email",class:"text-primary",label:"Your Email",disabled:n(s).processing,autofocus:"",required:""},null,8,["modelValue","error","disabled"])]),_:1}))]),_:1})):E("",!0)],64)}}});export{P as _};

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.