PageSourceSearch

https://assets.foodi.de/_nuxt/Bt9ebzyv.js

js foodi.de collected 2026-10-01 23:50:24 UTC 3,704 bytes, 1 lines download raw bytes

1import{_ as M}from"./DKgkHNCe.js";import{d as H,u as R,a as j,M as W,o as D,e as E,g as u,h as o,F as U,t as s,i as t,j as i,w as v,H as b,s as z,r as d,l as y,f as c,k as g,_ as G}from"./BSliLbpZ.js";import{U as k}from"./DLarw8Ib.js";import{U as V}from"./D0uoRSMB.js";import{A as J}from"./DFn2-jVg.js";import{u as K}from"./DUpryqrV.js";const O={class:"pw"},Q={class:"pw__card"},X={class:"pw__title"},Y={class:"pw__intro"},Z={class:"pw__title"},$={class:"pw__intro"},ee={class:"pw__confirm",role:"status"},te={class:"pw__confirm-title"},oe={class:"pw__confirm-hint"},ae={class:"pw__intro"},se={key:0,class:"pw__error",role:"alert"},le=H({__name:"passwort",setup(re){const{t:e}=R(),x=j(),I=W(),{forgotPasswd:C,resetPasswd:N,init:P,loaded:S,isLoggedIn:q}=K(),_=d(""),p=d(""),f=d(""),w=d(!1),l=d(!1),n=d(""),A=y(()=>{const r=x.query.redirect,a=Array.isArray(r)?r[0]:r;return typeof a=="string"&&a.startsWith("/")&&!a.startsWith("//")?a:"/"}),B=y(()=>S.value&&q.value);async function L(){if(!l.value){n.value="",l.value=!0;try{await C(_.value.trim()),w.value=!0}finally{l.value=!1}}}async function T(){if(!l.value){n.value="",l.value=!0;try{const r=await N({email:_.value.trim(),code:p.value.trim(),passwd:f.value});if(r.success){await I.replace(A.value);return}n.value=r.message??e("auth.resetFailed")}finally{l.value=!1}}}function F(){w.value=!1,p.value="",f.value="",n.value=""}return D(()=>{P()}),E({title:()=>e("authUi.forgot.seoTitle"),meta:[{name:"robots",content:"noindex,nofollow"}]}),(r,a)=>{const h=M;return c(),u("div",O,[o("div",Q,[B.value?(c(),u(U,{key:0},[o("h1",X,s(t(e)("authUi.forgot.loggedInTitle")),1),o("p",Y,s(t(e)("authUi.forgot.loggedInHint")),1),i(h,{to:"/profil",class:"pw__cta-link"},{default:v(()=>[g(s(t(e)("authUi.forgot.toProfile")),1)]),_:1})],64)):(c(),u(U,{key:1},[o("h1",Z,s(t(e)("authUi.forgot.title")),1),w.value?(c(),u("form",{key:1,class:"pw__form",onSubmit:b(T,["prevent"])},[o("div",ee,[a[3]||(a[3]=o("span",{class:"pw__confirm-icon","aria-hidden":"true"},[o("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.4","stroke-linecap":"round","stroke-linejoin":"round"},[o("path",{d:"m5 13 4 4L19 7"})])],-1)),o("div",null,[o("div",te,s(t(e)("authUi.forgot.sentTitle")),1),o("div",oe,s(t(e)("auth.forgotSent")),1)])]),o("p",ae,s(t(e)("authUi.forgot.codeStep")),1),i(V,{modelValue:p.value,"onUpdate:modelValue":a[1]||(a[1]=m=>p.value=m),label:t(e)("authUi.forgot.code"),name:"one-time-code",autocomplete:"one-time-code",required:""},null,8,["modelValue","label"]),i(J,{modelValue:f.value,"onUpdate:modelValue":a[2]||(a[2]=m=>f.value=m),label:t(e)("authUi.forgot.newPassword"),name:"new-password",autocomplete:"new-password",required:""},null,8,["modelValue","label"]),n.value?(c(),u("p",se,s(n.value),1)):z("",!0),i(k,{type:"submit",loading:l.value},{default:v(()=>[g(s(l.value?t(e)("authUi.forgot.resetting"):t(e)("authUi.forgot.reset")),1)]),_:1},8,["loading"]),o("button",{type:"button",class:"pw__back",onClick:F},s(t(e)("authUi.forgot.restart")),1)],32)):(c(),u("form",{key:0,class:"pw__form",onSubmit:b(L,["prevent"])},[o("p",$,s(t(e)("authUi.forgot.intro")),1),i(V,{modelValue:_.value,"onUpdate:modelValue":a[0]||(a[0]=m=>_.value=m),label:t(e)("authUi.forgot.email"),type:"email",name:"email",autocomplete:"email",inputmode:"email",required:""},null,8,["modelValue","label"]),i(k,{type:"submit",loading:l.value},{default:v(()=>[g(s(l.value?t(e)("authUi.forgot.submitting"):t(e)("authUi.forgot.submit")),1)]),_:1},8,["loading"]),i(h,{to:"/login",class:"pw__back"},{default:v(()=>[g(s(t(e)("authUi.forgot.backToLogin")),1)]),_:1})],32))],64))])])}}}),_e=G(le,[["__scopeId","data-v-480ee4c2"]]);export{_e 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.