1import{aK as F,br as L,aW as h,bv as N,hA as P,eS as B,bs as M,bH as V,aG as d,aH as c,aP as t,aR as s,b4 as e,aQ as i,aS as l,aT as n,bo as z,aI as _,bw as G,aM as K,bm as O,hz as Q}from"./BaEB9zSg.js";import{u as U,_ as W}from"./B2gvoIC2.js";import{_ as Y}from"./Dr8gwzcW.js";import{aU as j}from"./kx9TYRZP.js";import{u as q}from"./-g6-vOg5.js";import{u as J}from"./CxXeBtjR.js";import{w as X,u as Z}from"./C4TUdNOh.js";import{t as ee}from"./CpqTD26j.js";import"./CfJI3vD0.js";import"./DQOk0688.js";import"./DnIsiDk7.js";import"./h6R1pvEe.js";import"./DtVU_3Gh.js";import"./xHV35VnJ.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"392057844e0f661731ac7e4823891aa88e77d8f5"}}catch{}})();try{(function(){var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="26c11743-5341-40e7-abe2-26ad15ec623e",o._sentryDebugIdIdentifier="sentry-dbid-26c11743-5341-40e7-abe2-26ad15ec623e")})()}catch{}const ae={key:0,class:"flex flex-col gap-y-4"},te={class:"font-semibold text-primary-400"},be=F({__name:"reset-password",setup(o){const{t:r}=L(),b=J(),u=h(null),m=h(),{isCaptchaRender:g,renderCaptcha:y,resetCaptcha:w,responseCaptcha:S}=U(m),{schema:v,setServerErrors:E}=X(ee(j)),{handleSubmit:k,validate:$,values:x}=N({validationSchema:v}),R=Z({fallbackPath:"user_email",setServerErrors:E,validate:$}),{isPending:T,mutate:C}=q({mutationFn:a=>Q.forgotPassword({body:a}),onError:async a=>{w(),await R(a)},onSuccess:()=>u.value=String(x.user_email)}),f=k(a=>C({...a,"g-recaptcha-response":S(),uiSource:P.ROLLER}),b);return B(()=>y()),M({title:r("auth.reset.headline")}),(a,p)=>{const I=z,H=W,A=V("i18n-t");return d(),c("div",null,[t(H,{heading:a.$t("auth.reset.headline")},{default:s(()=>[t(e(i),{"is-secondary":""},{default:s(()=>[l(n(a.$t("auth.reset.headlineSupporting")),1)]),_:1}),t(I,{to:{name:"sign-in"}},{default:s(()=>[t(e(i),{class:"font-semibold text-primary-400 hover:text-primary-500"},{default:s(()=>[l(n(a.$t("auth.reset.headlineLink")),1)]),_:1})]),_:1})]),_:1},8,["heading"]),t(e(Y),{class:"mt-8 sm:mx-auto sm:w-full sm:max-w-[480px]"},{default:s(()=>[e(u)?(d(),c("div",ae,[t(e(i),{tag:"h2",weight:"semibold"},{default:s(()=>[l(n(a.$t("auth.reset.checkEmailTitle")),1)]),_:1}),t(e(i),{"is-secondary":""},{default:s(()=>[t(A,{keypath:"auth.reset.checkEmailSentTo",scope:"global"},{email:s(()=>[_("span",te,n(e(u)),1)]),_:1})]),_:1}),t(e(i),{"is-secondary":""},{default:s(()=>[l(n(a.$t("auth.foldersCheck")),1)]),_:1})])):(d(),c("form",{key:1,class:"flex flex-col gap-y-8",onSubmit:p[0]||(p[0]=(...D)=>e(f)&&e(f)(...D))},[t(e(G),{name:"user_email",type:"email",label:a.$t("auth.signIn.inputEmail"),autocomplete:"email"},null,8,["label"]),_("div",{ref_key:"recaptchaRef",ref:m,class:K({hidden:!e(g)})},null,2),t(e(O),{class:"w-full","is-submitting":e(T)},{default:s(()=>
1[l(n(a.$t("auth.reset.resetButton")),1)]),_:1},8,["is-submitting"])],32))]),_:1})])}}});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.