PageSourceSearch

https://answers.sg/build/assets/ForgotPassword-LjjvQi05.js

js answers.sg collected 2026-10-07 23:56:47 UTC 2,909 bytes, 1 lines download raw bytes

1import{i as b,d as r,l as w,w as d,q as F,f as a,g as e,H as x,j as t,e as c,m as u,x as _,n as p,k as N,G as k,v as y,J as f,y as V,s as $}from"./app-4h8KysWF.js";import{_ as B}from"./GuestLayout-3PZVyexm.js";import{_ as C}from"./InputError-5v6Tywy2.js";import{_ as E}from"./InputLabel-EQAnDDe3.js";import{s as L}from"./message.esm-dBk5wkAy.js";/* empty css            */import"./index.esm-CChYWSe0.js";import"./index.esm-jIX710yK.js";const P={class:"ans-card rounded-xl bg-white border border-gray-200 p-5 lg:p-10"},S={class:"ans-card-section"},U={key:0},j={class:"space-y-5"},q=t("div",{class:"text-2xl leading-8 font-bold tracking-tight"}," Forgot password ",-1),D=t("div",{class:"text-base font-normal"}," No sweat, we can help. Enter your email address or username and we will send a reset password link to your inbox. ",-1),H={class:"ans-card rounded-xl bg-gray-100 p-5"},M={class:"ans-card-section"},R=["name"],T=["id","name"],z=["name"],G={class:"flex items-center mt-4"},Z={__name:"ForgotPassword",props:{status:String,honeypot:Object},setup(o){const l=o,s=b({email:"",[l.honeypot.nameFieldName]:"",[l.honeypot.validFromFieldName]:l.honeypot.encryptedValidFrom}),h=()=>{s.post(route("password.email"))},g=()=>`/login${window.location.search}`;return(J,n)=>{const v=F("Link");return r(),w(B,null,{default:d(()=>{var m;return[a(e(x),{title:"Forgot Password"}),t("div",P,[t("div",S,[o.status?(r(),c("div",U,[a(e(L),{severity:"success"},{default:d(()=>[u(_(o.status),1)]),_:1})])):p("",!0),t("div",j,[q,D,t("div",H,[t("div",M,[t("form",{onSubmit:N(h,["prevent"])},[t("div",null,[a(E,{for:"email",value:"Email address",class:"mb-2"}),a(e(k),{id:"email",modelValue:e(s).email,"onUpdate:modelValue":n[0]||(n[0]=i=>e(s).email=i),type:"email",class:"mt-1 block w-full",required:"",autofocus:"",autocomplete:"email"},null,8,["modelValue"]),a(C,{class:"mt-2",message:e(s).errors.email},null,8,["message"])]),(m=o.honeypot)!=null&&m.enabled?(r(),c("div",{key:0,name:`${o.honeypot.nameFieldName}_wrap`,style:{display:"none"}},[y(t("input",{id:o.honeypot.nameFieldName,"onUpdate:modelValue":n[1]||(n[1]=i=>e(s)[o.honeypot.nameFieldName]=i),type:"text",name:o.honeypot.nameFieldName},null,8,T),[[f,e(s)[o.honeypot.nameFieldName]]]),y(t("input",{"onUpdate:modelValue":n[2]||(n[2]=i=>e(s)[o.honeypot.validFromFieldName]=i),type:"text",name:o.honeypot.validFromFieldName},null,8,z),[[f,e(s)[o.honeypot.validFromFieldName]]])],8,R)):p("",!0),t("div",G,[a(e($),{type:"submit",label:"Email Password Reset Link",class:V({"opacity-25":e(s).processing}),disabled:e(s).processing},null,8,["class","disabled"])])],32)])]),t("div",null,[a(v,{href:g(),class:"no-underline text-primary-700 hover:text-primary-900 rounded-no focus:outline-none focus:ring-2 focus:ring-offset-2 bg-transparent text-base cursor-pointer",as:"button"},{default:d(()=>[u(" Back to login ")]),_:1},8,["href"])])])])])]}),_:1})}}};export{Z 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.