PageSourceSearch

https://raumfahrtakteure.de/assets/AccountView-DCbZlMm0.js

js raumfahrtakteure.de collected 2026-10-06 08:54:41 UTC 3,763 bytes, 1 lines download raw bytes

1import{d as b,e as P,r as f,B as S,o as g,c as $,b as o,y as _,f as l,t as n,C as u,w as h,g as y,K as V,h as k,j as v,s as B,A as E,_ as C,u as z,a as K}from"./index-CC-6eLHP.js";import{_ as M}from"./SimpleModal.vue_vue_type_style_index_0_lang-brzaJyU1.js";import{_ as p}from"./KaraLabelledTextInput.vue_vue_type_script_setup_true_lang-C8TNy6x4.js";import{A as U}from"./AccountTable-D3H_hXTI.js";const I=["value"],N={class:"mt-3"},Z=b({__name:"ChangePasswordForm",emits:["submitted","error","success"],setup(q,{emit:c}){const m=P().user.username,d=c,t=f(!1),e=S({oldPassword:"",newPassword:"",confirmation:""});async function w(){if(e.newPassword!==e.confirmation){v.passwordsMustMatch();return}d("submitted"),t.value=!0;try{await B.authentication.updatePassword({oldPassword:e.oldPassword,newPassword:e.newPassword}),d("success")}catch(s){const r=await E.tryGetErrorKey(s);d("error",r)}finally{t.value=!1}}return(s,r)=>(g(),$("form",{onSubmit:k(w,["prevent"])},[o("input",{type:"text",id:"username",name:"username",autocomplete:"username",value:_(m),style:{display:"none"}},null,8,I),l(p,{label:s.$t("current-password"),type:"password",autocomplete:"current-password",modelValue:e.oldPassword,"onUpdate:modelValue":r[0]||(r[0]=a=>e.oldPassword=a),disabled:t.value,required:"","hide-required-hint":""},null,8,["label","modelValue","disabled"]),o("p",N,n(s.$t("password-requirements"))+":",1),o("ul",null,[o("li",{class:u({done:e.newPassword.length>=8})},n(s.$t("at-least-8-symbols")),3),o("li",{class:u({done:/^.*\d.*$/.test(e.newPassword)})},n(s.$t("at-least-one-digit")),3),o("li",{class:u({done:/^.*[a-zA-Z].*$/.test(e.newPassword)})},n(s.$t("at-least-one-character")),3),o("li",{class:u({done:e.newPassword===e.confirmation&&e.newPassword.length>=8})}
1,n(s.$t("passwords-must-match")),3)]),l(p,{label:s.$t("new-password"),type:"password",autocomplete:"new-password",modelValue:e.newPassword,"onUpdate:modelValue":r[1]||(r[1]=a=>e.newPassword=a),passwordrules:"minlength: 8; required: digit; required: upper,lower;",disabled:t.value,required:"","hide-required-hint":"",class:"mt-3",pattern:/^(?=.*[a-zA-Z])(?=.*\d).{8,}$/},null,8,["label","modelValue","disabled"]),l(p,{label:s.$t("confirm-new-password"),type:"password",autocomplete:"new-password",modelValue:e.confirmation,"onUpdate:modelValue":r[2]||(r[2]=a=>e.confirmation=a),passwordrules:"minlength: 8; required: digit; required: upper,lower;",disabled:t.value,required:"","hide-required-hint":"",class:"mt-3",pattern:/^(?=.*[a-zA-Z])(?=.*\d).{8,}$/},null,8,["label","modelValue","disabled"]),l(V,{type:"submit",variant:"accented",class:"mt-4",loading:t.value},{default:h(()=>[y(n(s.$t("change-password")),1)]),_:1},8,["loading"])],32))}}),D=C(Z,[["__scopeId","data-v-30415c2e"]]),F={id:"account-header"},T={id:"overview-header"},j={id:"account-overview"},G={id:"actions-header",class:"mt-0"},H={id:"account-actions"},J=b({__name:"AccountView",setup(q){const c=P(),m=z(),d=f(!1),t=f(!1);K({title:()=>m.t("account")});function e(){d.value=!0}function w(){t.value=!0}function s(){v.passwordChanged(),d.value=!1,t.value=!1}function r(a){v.error(a),t.value=!1}return(a,i)=>(g(),$("main",null,[o("h1",F,n(a.$t("account")),1),o("h2",T,n(a.$t("your-account-data")),1),o("div",j,[l(U,{account:_(c).user},null,8,["account"])]),o("h2",G,n(a.$t("account-actions")),1),o("div",H,[l(V,{onClick:e,variant:"accented"},{default:h(()=>[y(n(a.$t("change-password")),1)]),_:1})]),l(M,{modelValue:d.value,"onUpdate:modelValue":i[0]||(i[0]=A=>d.value=A),dismissable:!t.value,onDismissed:i[1]||(i[1]=()=>d.value=!1)},{default:h(()=>[o("h3",null,n(a.$t("change-password")),1),l(D,{onSubmitted:w,onError:r,onSuccess:s})]),_:1},8,["modelValue","dismissable"])]))}}),W=C(J,[["__scopeId","data-v-ac1e970c"]]);export{W 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.