PageSourceSearch

https://www.allgemeine-zeitung.de/assets/UpdatePassword-BSdSHQzm-bl_mVGg_.js

js allgemeine-zeitung.de collected 2026-09-24 09:02:42 UTC 5,019 bytes, 1 lines download raw bytes

1import{aJ as x,E as k,S as D,al as U,J as C,ay as F,aK as E,aL as H,bh as L,aE as V,aO as I,s as M,r as a,o as u,c,a as t,w as e,$ as m,F as P,g as p,t as d,l as O,h as R,am as B}from"./index-D-iuxWOd.js";import{E as N,b as q}from"./EmailConfirmation-UCKIKj0U-DJZczQw9.js";import{e as z,g as K,c as W,u as j,i as J,o as A}from"./ToggleSwitch-BgU4tYOz-CnUDkOkJ.js";const Q=new WeakMap,X={name:"UpdatePassword",components:{RedirectTimer:x,DnmContentWrapper:k,DnmButton:D,DnmHeadline:U,DnmParagraph:C,DnmSimpleNotification:F,DnmInputPasswordField:E,InputPasswordMessages:H,DnmHelperText:L,DnmIcon:V},data(){return{showSuccess:!1,showError:!1,errorText:"",isSubmitting:!1,form:{password:"",newPassword:""}}},validations:{form:{password:{required:z},newPassword:{...K}}},setup(){const{t:s}=N();return q({title:s("UpdatePassword.title")}),{v$:W()}},methods:{async submitForm(){if(this.showSuccess=!1,this.showError=!1,this.errorText="",this.v$.$touch(),this.v$.$error){j(this,this.v$.form),this.isSubmitting=!1;return}this.isSubmitting=!0;try{await this.$store.dispatch("userServices/updatePassword",{password:this.form.password,new_password:this.form.newPassword}),this.showSuccess=!0}catch(s){if(s.response&&s.response.data){const r=s.response.data[0];this.errorText=r.info}else this.errorText=this.$t("Common.fallbackErrorInfo");this.showError=!0}this.isSubmitting=!1},returnToURL(){I(this.$router,this.$route.path)},delayTouch(s){return J(Q,s)},statusResolver(s){return A(s)}}},Y={class:"updatePassword"},Z=["innerHTML"],G=["innerHTML"],ss=["innerHTML"],es={novalidate:""};function ts(s,r,as,i,o,n){const b=a("RedirectTimer"),h=a("DnmSimpleNotification"),w=a("DnmButton"),_=a("DnmHeadline"),$=a("DnmParagraph"),T=a("DnmIcon"),v=a("DnmHelperText"),f=a("DnmInputPasswordField"),g=a("InputPasswordMessages"),y=a("DnmContentWrapper"),S=a("client-only");return u(),c("div",null,[t(S,null,{default:e(()=>[t(y,{size:"extraSmall"},{default:e(()=>[m("div",Y,[o.showSuccess?(u(),c(P,{key:0},[t(h,{notificationTitle:s.$t("UpdatePassword.box.headline"),class:"updatePassword__notification",notificationType:"success","data-testid":"success-message-notification"},{message:e(()=>[t(b,{onFinished:n.returnToURL},{default:e(({remainingSeconds:l})=>[m("div",{innerHTML:s.$t("UpdatePassword.box.text",{count:l})},null,8,Z)]),_:1},8,["onFinished"])]),_:1},8,["notificationTitle"]),t(w,{onOnClick:n.returnToURL,class:"updatePassword__button",expand:"",size:"large","data-testid":"button-readmore"},{default:e(()=>[p(d(s.$t("UpdatePassword.buttons.readMore")),1)]),_:1},8,["onOnClick"])],64)):(u(),c(P,{key:1},[o.showError?(u(),O(h,{key:0,notificationTitle:s.$t("UpdatePassword.error.headline"),class:"updatePassword__notification",notificationType:"error"},{message:e(()=>[o.errorText?(u(),c("div",{key:0,innerHTML:o.errorText},null,8,G)):(u(),c("div",{key:1,innerHTML:s.$t("UpdatePassword.error.text")},null,8,ss))]),_:1},8,["notificationTitle"])):R("",!0),t(_,{class:"updatePassword__headline","headline-style":"headline3","data-testid":"headline"},{default:e(()=>[p(d(s.$t("UpdatePassword.headline")),1)]),_:1}),t($,{class:"updatePassword__paragraph",paragraphStyle:"regular","data-testid":"sub-headline"},{default:e(()=>[m("span",null,d(s.$t("UpdatePassword.subHeadline")),1)]),_:1}),m("form",es,[t(f,{modelValue:o.form.password,"onUpdate:modelValue":[r[0]||(r[0]=l=>o.form.password=l),r[1]||(r[1]=l=>n.delayTouch(i.v$.form.password))],required:!0,status:n.statusResolver(i.v$.form.password),autocomplete:"current-password",class:"updatePassword__passwordInput","data-testid":"current-password",ref:"password"},{default:e(()=>[p(d(s.$t("FormFields.password.current")),1)]),message:e(()=>[t(v,{class:"helperText",status:"error"},B({_:2},[!o.showError&&i.v$.form.password.$dirty&&i.v$.form.password.required.$invalid?{name:"errorText",fn:e(()=>[t(T,{"icon-name":"error"}),m("span",null,d(s.$t("Validations.enterPassword")),1)]),key:"0"}:void 0]),1024)]),_:1},8,["modelValue","status"]),t(f,{modelValue:o.form.newPassword,"onUpdate:modelValue":[r[2]||(r[2]=l=>o.form.newPassword=l),r[3]||(r[3]=l=>n.delayTouch(i.v$.form.newPassword))],required:!0,status:n.statusResolver(i.v$.form.newPassword),autocomplete:"new-password",class:"updatePassword__passwordInput","data-testid":"new-password",ref:"newPassword"},{message:e(()=>[t(g,{vuelObj:i.v$.form.newPassword},null,8,["vuelObj"])]),default:e(()=>[p(d(s.$t("FormFields.password.new"))+" ",1)]),_:1},8,["modelValue","status"]),t(w,{disabled:o.isSubmitting,onOnClick:n.submitForm,class:"updatePassword__button",expand:"",size:"large","data-testid":"button-save"},{default:e(()=>[p(d(s.$t("UpdatePassword.buttons.submit")),1)]),_:1},8,["disabled","onOnClick"]),t(w,{onOnClick:n.returnToURL,buttonStyle:"tertiary",class:"updatePassword__button",expand:"",size:"large","data-testid":"button-back"},{default:e(()=>[p(d(s.$t("UpdatePassword.buttons.back")),1)]),_:1},8,["onOnClick"])])],64))])]),_:1})]),_:1})])}const ds=M(X,[["render",ts],["__scopeId","data-v-5a954b37"]]);export{ds 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.