PageSourceSearch

https://moebel-rogg.de/_nuxt/Cj2bOg05.js

js moebel-rogg.de collected 2026-10-04 06:54:54 UTC 4,735 bytes, 1 lines download raw bytes

1import{_ as C}from"./BL2rD_2o.js";import{d as F,a as $,q as R,b as V,u as P,e as A,o as a,f as m,h as l,g as e,w as N,k as O,l as T,m as v,t as h,j,c as q,J as G,i as b,x as H,r as K,F as k,G as U}from"./CO53y7R9.js";import{u as M}from"./hyjV0oe_.js";import{g as D,a as B}from"./DuiNLmIo.js";import{o as z}from"./5vJzvtLA.js";const L=["id"],J={key:1},Y=F({__name:"RecoverForm",setup(S){const{extract:_}=M(),{push:n}=$(),{recover:d}=R(),w=V(),{t}=P(),{handleSubmit:c,isSubmitting:u}=A({schema:z({email:D()}),disableHtmlValidation:!0}),o=c(async x=>{await d(x.toObject()).then(()=>{n({type:"success",heading:{text:t("forms.pages.account.recover.success_email","Ihre Anfrage wurde erfolgreich gesendet"),icon:!0},hasExitIcon:!0})}).catch(i=>{const p=_(i)?.find(s=>s.code==="B2B__CUSTOMER_NOT_FOUND_BY_EMAIL");n(p?{type:"error",heading:{text:t("forms.pages.account.recover.error","Fehler"),icon:!0},message:t("forms.pages.account.recover.no_email_found","Kein Kundenkonto ist mit dieser E-Mail-Adresse verknüpft."),hasExitIcon:!0}:{type:"error",heading:{text:t("forms.pages.account.recover.error","Etwas ist schief gelaufen"),icon:!0},message:t("forms.pages.account.recover.unexpected_error","Ein unerwarteter Fehler ist aufgetreten."),hasExitIcon:!0})})});return(x,i)=>{const f=C,p=T,s=j;return a(),m("form",{id:e(w),novalidate:"",onSubmit:i[0]||(i[0]=(...r)=>e(o)&&e(o)(...r))},[l(f,{label:e(t)("forms.pages.account.recover.new_email","E-Mail-Adresse"),name:"email",type:"email",required:"",floating:""},null,8,["label"]),l(s,{type:"submit",variant:"full",class:"!w-auto text-h4",disabled:e(u)},{default:N(()=>[e(u)?(a(),O(p,{key:0,name:"small:spinner",class:"size-xl animate-spin"})):v("",!0),e(u)?v("",!0):(a(),m("span",J,h(e(t)("forms.pages.account.recover.submit","Absenden")),1))]),_:1},8,["disabled"])],40,L)}}}),Z=Object.assign(Y,{__name:"RecoverForm"}),Q=["id"],W={class:"w-full md:flex gap-2xl"},X={key:1},ee=F({__name:"RecoverConfirmationForm",setup(S){const{map:_,extract:n}=M(),{push:d}=$(),{recoverConfirm:w}=R(),t=q(),c=K(""),u=V(),{t:o}=P(),{handleSubmit:x,isSubmitting:i}=A({schema:z({newPassword:B(),newPasswordConfirm:B().refine(s=>s===c.value,{message:o("forms.pages.account.recover.confirm","Passwörter stimmen nicht überein")})}),disableHtmlValidation:!0}),f=x(async s=>{const{newPassword:r,newPasswordConfirm:g}=s.toObject();!r||!g||await w({newPassword:r,newPasswordConfirm:g,hash:t.query.hash}).then(async()=>{d({type:"success",heading:{text:o("forms.pages.account.recover.success","Ihr Passwort wurde erfolgreich zurückgesetzt"),icon:!0},hasExitIcon:!0}),await G("/account/login")}).catch(E=>n(E)?.forEach(y=>d({type:"error",heading:{text:o("forms.pages.account.recover.error","Etwas ist schief gelaufen"),icon:!0},message:_(y),hasExitIcon:!0})))}),p=()=>{const s=document.activeElement;s instanceof HTMLElement&&(s.blur(),s.focus())};return(s,r)=>{const g=C,E=T,y=j;return a(),m("form",{id:e(u),novalidate:"",onSubmit:r[1]||(r[1]=(...I)=>e(f)&&e(f)(...I))},[b("div",W,[l(g,{modelValue:e(c),"onUpdate:modelValue":r[0]||(r[0]=I=>H(c)?c.value=I:null),label:e(o)("forms.pages.account.recover.new_password","Neues Passwort"),name:"newPassword",type:"password",autocomplete:"new-password",description:e(o)("forms.pages.account.recover.new_password_rules","Ihr Passwort muss mindestens 8 und maximal 13 Zeichen umfassen. Berücksichtigen Sie Groß- und Kleinschreibung."),class:"w-full md:w-[calc(50%-16px)]",required:"",floating:"",onBlur:p},null,8,["modelValue","label","description"]),l(g,{label:e(o)("forms.pages.account.recover.new_password_confirm","Neues Passwort bestätigen"),name:"newPasswordConfirm",type:"password",autocomplete:"new-password",class:"w-full md:w-[calc(50%-16px)]",required:"",floating:"",onInput:p},null,8,["label"])]),l(y,{type:"submit",variant:"full",class:"!w-auto text-h4",disabled:e(i)},{default:N(()=>[e(i)?(a(),O(E,{key:0,name:"small:spinner",class:"size-xl animate-spin"})):v("",!0),e(i)?v("",!0):(a(),m("span",X,h(e(o)("forms.pages.account.recover.submit","Absenden")),1))]),_:1},8,["disabled"])],40,Q)}}}),se=Object.assign(ee,{__name:"RecoverConfirmationForm"}),te={class:"pt-2xl mb-3xl px-xs lg:px-md"},oe={class:"mb-md"},ne={class:"mb-md"},me=F({__name:"recover",setup(S){const _=q(),{t:n}=P(),d=U(()=>_.query.hash);return(w,t)=>{const c=Z,u=se;
1return a(),m("div",te,[b("h1",null,h(e(n)("account.page.recover.password.title","Password vergessen")),1),e(d)?(a(),m(k,{key:1},[b("p",ne,h(e(n)("account.page.recover.password.info","Bitte geben Sie ihr neues Passwort ein.")),1),l(u)],64)):(a(),m(k,{key:0},[b("p",oe,h(e(n)("account.page.recover.password.email","Geben Sie Ihre E-Mail-Adresse ein, um ein neues Passwort anzufordern.")),1),l(c)],64))])}}});export{me 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.