1import{_ as S}from"./EG46z7o7.js";import{_ as q}from"./DIheCY_a.js";import{E as x,d as L,Q as N,c as T,r as u,x as h,y as w,z as p,_ as U,H as r,K as s,m as e,I as E,O as F,M as H,P as I}from"./BJhlU1rR.js";import{f as K,s as z}from"./BOVKW5Xp.js";import{u as v}from"./BXgMM1f5.js";import{u as y}from"./8mnopAEE.js";import{u as M}from"./DQByq9Ob.js";import"./C4-wI4XM.js";import"./v9y1S7hN.js";import"./BkGlnVwb.js";import"./BHREDrN6.js";import"./D7eu--uw.js";import"./BwAlTTr4.js";async function O(f,n){return await $fetch.raw("/customer/password/reset/start",{server:!1,method:"POST",credentials:"include",baseURL:x().public.apiBaseURL,body:{email:f.email,client:x().public.client,language:n}})}const $={class:"w-96 flex flex-col gap-y-4 m-auto max-mobile:w-full"},D={class:"grow max-w-[800px] flex flex-col gap-4"},Q={class:"flex flex-col gap-2xs"},le=L({__name:"password-reset-start",setup(f){const n=N(),{t,locale:b}=T(),i=u(""),l=u(!1),c=u(y().resetPwEmail??"");async function P(a){l.value=!0;try{const{status:o}=await O(a,b.value);o===200&&(y().resetPwEmail=a.email,n.push({path:v("login"),query:{"pw-reset-start":"â"}}))}catch{i.value=t("dbc-error-server-issues"),l.value=!1}}const g={id:0,title:t("dbc-text-forgot-password"),path:"/passwort-vergessen",description:"",content:[],localizations:[{id:0,title:t("dbc-text-forgot-password"),path:"passwort-vergessen",locale:"de"},{id:1,title:t("dbc-text-forgot-password"),path:"forgot-password",locale:"en"}],locale:b.value};return M(g),(a,o)=>{const C=S,B=q,m=I("FormKit"),k=z,R=U;return h(),w(R,{name:"self-service",page:g},{default:p(()=>[r("div",$,[r("main",D,[s(C,{level:2,text:e(t)("dbc-text-forgot-password")},null,8,["text"]),s(k,{pt:"formCardPassThrough"in a?a.formCardPassThrough:e(K)},{content:p(()=>[s(m,{actions:!1,type:"form","form-class":"rounded-lg p-4",onSubmit:P,"aria-errormessage":"errorBanner","aria-invalid":e(i)},{default:p(({disabled:V,state:{valid:d}})=>[e(i)?(h(),w(B,{key:0,id:"errorBanner",severity:"warn",message:e(i)},null,8,["message"])):E("",!0),r("div",null,[r("p",null,F(e(t)("dbc-reset-pw-text")),1)]),s(m,{modelValue:e(c),"onUpdate:modelValue":o[0]||(o[0]=_=>H(c)?c.value=_:null),type:"email",id:"email",name:"email",label:e(t)("dbc-label-email"),placeholder:e(t)("dbc-placeholder-email"),validation:"required|email","prefix-icon":"emailIcon","floating-label":!0,autocomplete:"email"},null,8,["modelValue","label","placeholder"]),r("div",Q,[s(m,{type:"submit",id:"submit",label:d?e(t)("dbc-btn-request-link"):e(t)("dbc-text-fill-in-mandatory-field"),disabled:!!V||!d||e(l),loading:e(l),"aria-label":d?e(l)?e(t)("dbc-text-loading"):e(t)("dbc-btn-request-link"):e(t)("dbc-text-fill-in-mandatory-field")},null,8,["label","disabled","loading","aria-label"]),s(m,{type:"button",id:"abort",onClick:o[1]||(o[1]=_=>e(n).push({path:("usePagePath"in a?a.usePagePath:e(v))("login")})),label:e(t)("dbc-btn-abort")},null,8,["label"])])]),_:1},8,["aria-invalid"])]),_:1},8,["pt"])])])]),_:1})}}});
1export{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.