1import{o as a,c as n,a as s,_ as pe,d as fe,al as he,u as ge,Z as ie,r as L,$ as ve,g as ue,aq as Ne,cd as Be,j as d,l as P,b as I,h as w,t as E,w as M,s as H,a3 as U,v as O,a9 as se,aG as we,a1 as _e,a6 as be,L as ye,a0 as le,ce as Ue,a7 as ke,O as Me,P as $e,A as Fe,M as qe,am as Xe,F as Le,i as He,ab as De,an as je,G as Qe,a4 as Ke,a5 as Oe}from"./entry.8854d24f.js";import{_ as Ce,a as xe}from"./CookieConsentPanel.vue.385dde10.js";import{_ as ze}from"./Spinner.69898c8b.js";import{U as Se,_ as Ve}from"./UpdateMember.e019520e.js";import{u as Ee,a as F}from"./vee-validate.esm.1bb312d4.js";import{a as Pe,c as ae,d as Ge}from"./index.esm.222effda.js";import{s as Ze}from"./vue-multiselect.esm.259f0318.js";import{d as Ie,a as We}from"./Authenticate.a91d5a99.js";import{g as Ye}from"./areas.2a61de24.js";const Je={class:"edit-icon p-2",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 512 512"},es=s("path",{d:"M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s1
15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"},null,-1),ss=[es];function ts(y,c,x,_,B,X){return a(),n("svg",Je,ss)}const as={name:"EditIcon"},Ae=pe(as,[["render",ts]]),A=y=>(Me("data-v-64ded4cc"),y=y(),$e(),y),os=["onClick"],is={class:"icon"},ls=A(()=>s("svg",{class:"default-icon",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.3",d:"M5.121 17.804A13.937 13.937 0 0112 16c2.5 0 4.847.655 6.879 1.804M15 10a3 3 0 11-6 0 3 3 0 016 0zm6 2a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),ns={class:"data"},rs={class:"grid"},cs={class:"name"},ds=A(()=>s("div",{class:"label"},"Name",-1)),us={class:"name-value"},_s={class:"birthdate"},ps=A(()=>s("div",{class:"label"},"Geburtsdatum",-1)),ms={class:"name-value"},vs={class:"phone"},fs=A(()=>s("div",{class:"label"},"Mobilnummer",-1)),hs={class:"name-value"},gs=A(()=>s("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 26",stroke:"currentColor",width:"24",height:"24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.6",d:"M5.121 17.804A13.937 13.937 0 0112 16c2.5 0 4.847.655 6.879 1.804M15 10a3 3 0 11-6 0 3 3 0 016 0zm6 2a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),ws={key:1,class:"form relative"},bs={class:"form-field"},ys=A(()=>s("label",{class:"label",for:"gender"},"Anrede",-1)),ks={class:"control"},Ms={key:0,class:"help is-danger"},$s={key:1,class:"help has-text-grey"},Cs={class:"form-field"},xs=A(()=>s("label",{class:"label",for:"first-name"},"Vorname",-1)),zs={class:"control has-icons-right"},Ss=A(()=>s("span",{class:"icon"},[s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},[s("path",{fill:"currentColor",d:"M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H512c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm80 256h64c44.2 0 80 35.8 80 80c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16c0-44.2 35.8-80 80-80zm-32-96a64 64 0 1 1 128 0 64 64 0 1 1 -128 0zm256-32H496c8.8 0 16 7.2 16 16s-7.2 16-16 16H368c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64H496c8.8 0 16 7.2 16 16s-7.2 16-16 16H368c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64H496c8.8 0 16 7.2 16 16s-7.2 16-16 16H368c-8.8 0-16-7.2-16-16s7.2-16 16-16z"})])],-1)),Vs={key:0,class:"help is-danger"},Es={key:1,class:"help has-text-grey"},Ps={class:"form-field"},As=A(()=>s("label",{class:"label",for:"last-name"},"Nachname",-1)),Bs={class:"control has-icons-right"},Ls=A(()=>s("span",{class:"icon"},[s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},[s("path",{fill:"currentColor",d:"M512 80c8.8 0 16 7.2 16 16V416c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V96c0-8.8 7.2-16 16-16H512zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H512c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM208 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128zm-32 32c-44.2 0-80 35.8-80 80c0 8.8 7.2 16 16 16H304c8.8 0 16-7.2 16-16c0-44.2-35.8-80-80-80H176zM376 144c-13.3 0-24 10.7-24 24s10.7 24 24 24h80c13.3 0 24-10.7 24-24s-10.7-24-24-24H376zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24h80c13.3 0 24-10.7 24-24s-10.7-24-24-24H376z"})])],-1)),Hs={key:0,class:"help is-danger"},Is={key:1,class:"help has-text-grey"},Rs={class:"form-field"},Ts=A(()=>s("label",{class:"label",for:"birthdate"},"Geburtsdatum",-1)),Ns={class:"control has-icons-right"},Us=A(()=>s("span",{class:"icon"},[s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},[s("path",{fill:"currentColor",d:"M86.4 5.5L61.8 47.6C58 54.1 56 61.6 56 69.2V72c0 22.1 17.9 40 40 40s40-17.9 40-40V69.2c0-7.6-2-15-5.8-21.6L105.6 5.5C103.6 2.1 100 0 96 0s-7.6 2.1-9.6 5.5zm128 0L189.8 47.6c-3.8 6.5-5.8 14-5.8 21.6V72c0 22.1 17.9 40 40 40s40-17.9 40-40V69.2c0-7.6-2-15-5.8-21.6L233.6 5.5C231.6 2.1 228 0 224 0s-7.6 2.1-9.6 5.5zM317.8 47.6c-3.8 6.5-5.8 14-5.8 21.6V72c0 22.1 17.9 40 40 40s40-17.9 40-40V69.2c0-7.6-2-15-5.8-21.6L361.6 5.5C359.6 2.1 356 0 352 0s-7.6 2.1-9.6 5.5L317.8 47.6zM128 176c0-17.7-14.3-32-32-32s-32 14.3-32 32v48c-35.3 0-64 28.7-64 64v71c8.3 5.2 18.1 9 28.8 9c13.5 0 27.2-6.1 38.4-13.4c5.4-3.5 9.9-7.1 13-9.7c1.5-1.3 2.7-2.4 3.5-3.1c.4-.4 .7-.6 .8-.8l.1-.1 0 0 0 0s0 0 0 0s0 0 0 0c3.1-3.2 7.4-4.9 11.9-4.8s8.6 2.1 11.6 5.4l0 0 0 0 .1 .1c.1 .1 .4 .4 .7 .7c.7 .7 1.7 1.7 3.1 3c2.8 2.6 6.8 6.1 11.8 9.5c10.2 7.1 23 13.1 36.3 13.1s26.1-6 36.3-13.1c5-3.5 9-6.9 11.8-9.5c1.4-1.3 2.4-2.3 3.1-3c.3-.3 .6-.6 .7-.7l.1-.1c3-3.5 7.4-5.4 12-5.4s9 2 12 5.4l.1 .1c.1 .1 .4 .4 .7 .7c.7 .7 1.7 1.7 3.1 3c2.8 2.6 6.8 6.1 11.8 9.5c10.2 7.1 23 13.1 36.3 13.1s26.1-6 36.3-13.1c5-3.5 9-6.9 11.8-9.5c1.4-1.3 2.4-2.3 3.1-3c.3-.3 .6-.6 .7-.7l.1-.1c2.9-3.4 7.1-5.3 11.6-5.4s8.7 1.6 11.9 4.8l0 0 0 0 0 0 .1 .1c.2 .2 .4 .4 .8 .8c.8 .7 1.9 1.8 3.5 3.1c3.1 2.6 7.5 6.2 13 9.7c11.2 7.3 24.9 13.4 38.4 13.4c10.7 0 20.5-3.9 28.8-9V288c0-35.3-28.7-64-64-64V176c0-17.7-14.3-32-32-32s-32 14.3-32 32v48H256V176c0-17.7-14.3-32-32-32s-32 14.3-32 32v48H128V176zM448 394.6c-8.5 3.3-18.2 5.4-28.8 5.4c-22.5 0-42.4-9.9-55.8-18.6c-4.1-2.7-7.8-5.4-10.9-7.8c-2.8 2.4-6.1 5-9.8 7.5C329.8 390 310.6 400 288 400s-41.8-10-54.6-18.9c-3.5-2.4-6.7-4.9-9.4-7.2c-2.7 2.3-5.9 4.7-9.4 7.2C201.8 390 182.6 400 160 400s-41.8-10-54.6-18.9c-3.7-2.6-7-5.2-9.8-7.5c-3.1 2.4-6.8 5.1-10.9 7.8C71.2 390.1 51.3 400 28.8 400c-10.6 0-20.3-2.2-28.8-5.4V480c0 17.7 14.3 32 32 32H416c17.7 0 32-14.3 32-32V394.6z"}
1)])],-1)),Fs={key:0,class:"help is-danger"},qs={class:"form-field mb-0"},Xs=A(()=>s("label",{class:"label",for:"mobile"},"Mobilnummer",-1)),Ds={class:"control has-icons-right"},js=A(()=>s("span",{class:"icon"},[s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"},[s("path",{fill:"currentColor",d:"M16 64C16 28.7 44.7 0 80 0H304c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H80c-35.3 0-64-28.7-64-64V64zM224 448a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM304 64H80V384H304V64z"})])],-1)),Qs={key:0,class:"help is-danger"},Ks=["disabled"],Os=fe({__name:"Main",setup(y){const c=he(),x=be(),_=ge(),B=ie(x.public.consentCookieName);ie(x.public.authCookieName);const X=_.googleRecaptchaSiteKey,z=L(),S=L(!1),h=L(!1),T=L(),g=[{value:"M",label:"Herr"},{value:"F",label:"Frau"},{value:"X",label:"Sonstiges"}],e=ve({loading:!0,validation:void 0,fields:{}});e.validation=Ee(),e.fields={gender:F("gender",Pe().required("Anrede ist ein Pflichtfield")),first_name:F("first_name",ae().required("Vorname ist ein Pflichtfield")),last_name:F("last_name",ae().required("Nachname ist ein Pflichtfield")),date_of_birth:F("date_of_birth"),mobile:F("mobile")};const ne=ue(()=>{var o,i;return Ne(`${((o=c.member)==null?void 0:o.first_name)||""} ${((i=c.member)==null?void 0:i.last_name)||""}`)||"--"}),re=ue(()=>{var p;let o="--";const i=(p=c.member)==null?void 0:p.date_of_birth;return i!=null&&(o=Be(i)),o}),ce=ue(()=>{var o;return((o=c.member)==null?void 0:o.mobile)||"--"}),D=async o=>{z.value=o,e.loading=!1,S.value=!0},te=async()=>{var p,v,$,l;e.loading=!0;let o;const i=(p=c.member)==null?void 0:p.date_of_birth;i!=null&&(o=Be(i,"yyyy-MM-dd")),e.fields.gender.value.value=g.find(f=>{var t;return f.value===((t=c.member)==null?void 0:t.gender)}),e.fields.first_name.value.value=(v=c.member)==null?void 0:v.first_name,e.fields.last_name.value.value=($=c.member)==null?void 0:$.last_name,e.fields.date_of_birth.value.value=o,e.fields.mobile.value.value=(l=c.member)==null?void 0:l.mobile,T.value.blur(),await ye(),h.value=!0,S.value&&(e.loading=!1)},j=()=>{setTimeout(()=>{h.value!==!0&&(e.fields.gender.value.value=void 0,e.fields.first_name.value.value="",e.fields.last_name.value.value="",e.fields.date_of_birth.value.value=void 0,e.fields.mobile.value.value="",e.validation.resetForm())},300)},k=()=>{h.value=!1,j()},r=async()=>{var p,v,$,l,f,t,u,G,Z,W,Y,J,ee,b,m,V,Q,oe,K;let o={id:le(),title:"Fehler",text:"Es gibt ein technisches Problem.<br>Bitte versuchen Sie es zu einem späteren Zeitpunkt erneut.",type:"error",autoclose:8e3};const{valid:i}=await e.validation.validate();if(i&&X&&z.value){e.loading=!0;try{const C="account/main",N=await z.value(C),de={member:{id:parseInt((p=c.member)==null?void 0:p.id),gender:(f=(l=($=(v=e.fields)==null?void 0:v.gender)==null?void 0:$.value)==null?void 0:l.value)==null?void 0:f.value,first_name:(G=(u=(t=e.fields)==null?void 0:t.first_name)==null?void 0:u.value)==null?void 0:G.value,last_name:(Y=(W=(Z=e.fields)==null?void 0:Z.last_name)==null?void 0:W.value)==null?void 0:Y.value,date_of_birth:Ue((b=(ee=(J=e.fields)==null?void 0:J.date_of_birth)==null?void 0:ee.value)==null?void 0:b.value,"yyyy-MM-dd"),mobile:(Q=(V=(m=e.fields)==null?void 0:m.mobile)==null?void 0:V.value)==null?void 0:Q.value},captcha:{type:"recaptcha",version:"v3",response:N,action:C}},{mutate:Re}=ke(Se),me=await Re(de);if(!((oe=me==null?void 0:me.data)!=null&&oe.EX_RSTRCT_UpdateMember))throw new Error("No data");c.member=me.data.EX_RSTRCT_UpdateMember,e.loading=!1,k();const Te={id:le(),title:"Erfolg",text:"Ihre Benutzerdaten wurden erfolgreich geändert.",type:"success",mode:"dark",autoclose:5e3};_.addMessage(Te),e.loading=!1}catch(C){const N=(K=C==null?void 0:C.graphQLErrors)==null?void 0:K[0];N&&(C=N),C.code===403?C.message==="email not verified"?(o.text="Ihre E-Mail wurde noch nicht verifiziert.<br>Bitte prüfen Sie Ihren Posteingang und bestätigen Sie Ihre E-Mail Adresse.",o.autoclose=!1):C.message==="invalid captcha"&&(o.text="Verdächtiges/Bot-ähnliches Verhalten erkannt!<br>Bitte versuchen Sie es erneut.",o.autoclose=!1):console.error(C),_.addMessage(o),e.loading=!1}}else _.addMessage(o)};return(o,i)=>{const p=Ce,v=Ae,$=xe,l=ze,f=Ve;return a(),n("button",{class:"panel main @container/panel",ref_key:"panel",ref:T,onClick:_e(te,["prevent","stop"])},[(d(B)||d(_).cookieConsent)===!0?(a(),P(p,{key:0,onReady:D})):I("",!0),s("div",is,[ls,w(v)]),s("div",ns,[s("div",rs,[s("div",cs,[ds,s("div",us,E(ne.value),1)]),s("div",_s,[ps,s("div",ms,E(re.value),1)]),s("div",vs,[fs,s("div",hs,E(ce.value),1)])])]),(a(),P(we,{to:"body"},[w(f,{title:"Persönliche Daten bearbeiten",open:h.value,"onUpdate:open":i[5]||(i[5]=t=>h.value=t),autofocus:!1,"close-on-escape":!1,onCancel:j,onClose:j},{"header-icon":M(()=>[gs]),body:M(()=>[(d(B)||d(_).cookieConsent||S.value)!==!0?(a(),P($,{key:0,class:"inline-cookie-consent"})):(a(),n("div",ws,[h.value&&e.loading?(a(),P(l,{key:0,size:10,thickness:2})):I("",!0),s("div",bs,[ys,s("div",ks,[w(d(Ze),{id:"gender",modelValue:e.fields.gender.value.value,"onUpdate:modelValue":i[0]||(i[0]=t=>e.fields.gender.value.value=t),class:H({"is-danger":e.fields.gender.meta.dirty&&!e.fields.gender.meta.valid}),options:g,multiple:!1,searchable:!1,"allow-empty":!1,"show-labels":!0,"track-by":"value",label:"label",placeholder:"auswählen...","deselect-label":"","selected-label":"ausgewählt","select-label":""},null,8,["modelValue","class"])]),w(U,{name:"input-help",mode:"out-in"},{default:M(()=>{var t,u;return[e.fields.gender.meta.dirty&&((t=e.fields.gender.errorMessage)!=null&&t.value)?(a(),n("p",Ms,E((u=e.fields.gender.errorMessage)==null?void 0:u.value),1)):(a(),n("p",$s,"Pflichtfeld"))]}),_:1})]),s("div",Cs,[xs,s("div",zs,[O(s("input",{class:H(["input",{"is-danger":e.fields.first_name.meta.dirty&&!e.fields.first_name.meta.valid}]),id:"first-name",type:"text",name:"first-name",autofocus:"","onUpdate:modelValue":i[1]||(i[1]=t=>e.fields.first_name.value.value=t)},null,2),[[se,e.fields.first_name.value.value]]),Ss]),w(U,{name:"input-help",mode:"out-in"},{default:M(()=>{var t,u;return[e.fields.first_name.meta.dirty&&((t=e.fields.first_name.errorMessage)!=null&&t.value)?(a(),n("p",Vs,E((u=e.fields.first_name.errorMessage)==null?void 0:u.value),1)):(a(),n("p",Es,"Pflichtfeld"))]}),_:1})]),s("div",Ps,[As,s("div",Bs,[O(s("input",{class:H(["input",{"is-danger":e.fields.last_name.meta.dirty&&!e.fields.last_name.meta.valid}]),id:"last-name",type:"text",name:"last-name","onUpdate:modelValue":i[2]||(i[2]=t=>e.fields.last_name.value.value=t)},null,2),[[se,e.fields.last_name.value.value]]),Ls]),w(U,{name:"input-help",mode:"out-in"},{default:M(()=>{var t,u;return[e.fields.last_name.meta.dirty&&((t=e.fields.last_name.errorMessage)!=null&&t.value)?(a(),n("p",Hs,E((u=e.fields.last_name.errorMessage)==null?void 0:u.value),1)):(a(),n("p",Is,"Pflichtfeld"))]}),_:1})]),s("div",Rs,[Ts,s("div",Ns,[O(s("input",{class:H(["input",{"is-danger":e.fields.date_of_birth.meta.dirty&&!e.fields.date_of_birth.meta.valid}]),id:"birthdate",type:"date",name:"birthdate","onUpdate:modelValue":i[3]||(i[3]=t=>e.fields.date_of_birth.value.value=t)},null,2),[[se,e.fields.date_of_birth.value.value]]),Us]),w(U,{name:"input-help",mode:"out-in"},{default:M(()=>{var t,u;return[e.fields.date_of_birth.meta.dirty&&((t=e.fields.date_of_birth.errorMessage)!=null&&t.value)?(a(),n("p",Fs,E((u=e.fields.date_of_birth.errorMessage)==null?void 0:u.value),1)):I("",!0)]}),_:1})]),s("div",qs,[Xs,s("div",Ds,[O(s("input",{class:H(["input",{"is-danger":e.fields.mobile.meta.dirty&&!e.fields.mobile.meta.valid}]),id:"mobile",type:"text",name:"mobile","onUpdate:modelValue":i[4]||(i[4]=t=>e.fields.mobile.value.value=t)},null,2),[[se,e.fields.mobile.value.value]]),js]),w(U,{name:"input-help",mode:"out-in"},{default:M(()=>{var t,u;return[e.fields.mobile.meta.dirty&&((t=e.fields.mobile.errorMessage)!=null&&t.value)?(a(),n("p",Qs,E((u=e.fields.mobile.errorMessage)==null?void 0:u.value),1)):I("",!0)]}),_:1})])]))]),footer:M(()=>[s("menu",null,[s("button",{class:"button is-link",type:"reset",onClick:k},"Abbrechen"),s("button",{class:"button is-primary",type:"submit",disabled:e.loading||!d(B)||!d(_).cookieConsent||!S.value||e.validation.meta.pending===!0||e.validation.meta.valid===!1||e.validation.isSubmitting,onClick:r},"Spechern",8,Ks)])]),_:1},8,["open"])]))],8,os)}}});const Gs=pe(Os,[["__scopeId","data-v-64ded4cc"]]),Zs=Fe` 2query ValidateMemberEmail($email: String!, $captcha: CaptchaInput!) { 3 EX_RSTRCT_ValidateMemberEmail(email: $email, captcha: $captcha) 4}`,q=y=>(Me("data-v-e429fbb7"),y=y(),$e(),y),Ws=["onClick"],Ys={class:"icon"},Js=q(()=>s("svg",{class:"default-icon",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.3",d:"M16 12a4 4 0 10-8 0 4 4 0 008 0zm0 0v1.5a2.5 2.5 0 005 0V12a9 9 0 10-9 9m4.5-1.206a8.959 8.959 0 01-4.5 1.207"})],-1)),et={class:"data"},st=q(()=>s("div",{class:"label"},"E-Mail Adresse",-1)),tt={class:"email-value"},at={class:"whitespace-nowrap"},ot=q(()=>s("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 26",stroke:"currentColor",width:"24",height:"24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.6",d:"M16 12a4 4 0 10-8 0 4 4 0 008 0zm0 0v1.5a2.5 2.5 0 005 0V12a9 9 0 10-9 9m4.5-1.206a8.959 8.959 0 01-4.5 1.207"})],-1)),it=["onSubmit"],lt=q(()=>s("div",{class:"alert warning mb-4"},[s("div",{class:"content"},[s("p",null,"Aus Sicherheitsgründen benötigen wir Ihr aktuelles Passwort, um die E-Mail Adresse zu ändern")])],-1)),nt={class:"form-field"},rt=q(()=>s("label",{class:"label",for:"password"},"Aktuelles Passwort",-1)),ct={class:"control has-icons-right"},dt=q(()=>s("span",{class:"icon"},[s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[s("path",{d:"M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0S160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17v80c0 13.3 10.7 24 24 24h80c13.3 0 24-10.7 24-24V448h4
40c13.3 0 24-10.7 24-24V384h40c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3zM376 96a40 40 0 1 1 0 80 40 40 0 1 1 0-80z"})])],-1)),ut={key:0,class:"help is-danger"},_t={key:1,class:"help has-text-grey"},pt={class:"form-field"},mt=q(()=>s("label",{class:"label",for:"email"},"Neue E-Mail Adresse",-1)),vt={class:"control has-icons-right"},ft=q(()=>s("span",{class:"icon"},[s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[s("path",{d:"M256 64C150 64 64 150 64 256s86 192 192 192c17.7 0 32 14.3 32 32s-14.3 32-32 32C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256v32c0 53-43 96-96 96c-29.3 0-55.6-13.2-73.2-33.9C320 371.1 289.5 384 256 384c-70.7 0-128-57.3-128-128s57.3-128 128-128c27.9 0 53.7 8.9 74.7 24.1c5.7-5 13.1-8.1 21.3-8.1c17.7 0 32 14.3 32 32v80 32c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-106-86-192-192-192zm64 192a64 64 0 1 0 -128 0 64 64 0 1 0 128 0z"})])],-1)),ht={key:0,class:"help is-danger"},gt={key:1,class:"help has-text-grey"},wt={class:"form-field"},bt=q(()=>s("label",{class:"label",for:"email-confirm"},"Neue E-Mail Adresse wiederholen",-1)),yt={class:"control has-icons-right"},kt=q(()=>s("span",{class:"icon"},[s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[s("path",{d:"M256 64C150 64 64 150 64 256s86 192 192 192c17.7 0 32 14.3 32 32s-14.3 32-32 32C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256v32c0 53-43 96-96 96c-29.3 0-55.6-13.2-73.2-33.9C320 371.1 289.5 384 256 384c-70.7 0-128-57.3-128-128s57.3-128 128-128c27.9 0 53.7 8.9 74.7 24.1c5.7-5 13.1-8.1 21.3-8.1c17.7 0 32 14.3 32 32v80 32c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-106-86-192-192-192zm64 192a64 64 0 1 0 -128 0 64 64 0 1 0 128 0z"})])],-1)),Mt={key:0,class:"help is-danger"},$t={key:1,class:"help has-text-grey"},Ct=["disabled"],xt=fe({__name:"Email",setup(y){const c=he(),x=be(),_=ge(),B=ie(x.public.consentCookieName);ie(x.public.authCookieName);const X=_.googleRecaptchaSiteKey,z=L(),S=L(!1),h=L(!1),T=L(),g=ue(()=>{var k;return((k=c.member)==null?void 0:k.email)||"--"}),e=ve({loading:!0,validation:void 0,fields:{}}),ne=Pe().shape({current_password:ae().required("Aktuelles Passwort ist ein Pflichtfield"),email:ae().email("E-Mail Adresse ist ungültig").required("E-Mail Adresse ist ein Pflichtfield").notOneOf([g.value],"Die neue E-Mail Adresse darf nicht der aktuellen entsprechen").test("unique-email","Diese E-Mail Adresse ist bereist vergeben",Ie(async(k,r)=>{var o;if(X&&z.value){const i="validate/email",p=await z.value(i),{data:v,error:$}=await qe({query:Zs,variables:{email:k,captcha:{type:"recaptcha",version:"v3",response:p,action:i}},clientId:"default",cache:!1});return((o=v.value)==null?void 0:o.EX_RSTRCT_ValidateMemberEmail)!==!1}else return!0},150)),email_confirm:ae().required("E-Mail Adresse ist ein Pflichtfield").oneOf([Ge("email")],"E-Mail Adressen müssen übereinstimmen")});e.validation=Ee({validationSchema:ne}),e.fields={current_password:F("current_password"),email:F("email"),email_confirm:F("email_confirm")};const re=async k=>{z.value=k,e.loading=!1,S.value=!0},ce=async()=>{e.loading=!0,T.value.blur(),await ye(),h.value=!0,S.value&&(e.loading=!1)},D=()=>{setTimeout(()=>{h.value!==!0&&(e.fields.current_password.value.value="",e.fields.email.value.value="",e.fields.email_confirm.value.value="",e.validation.resetForm())},300)},te=()=>{h.value=!1,D()},j=async()=>{var o,i,p,v,$,l,f,t,u,G,Z,W,Y,J,ee;let k={id:le(),title:"Fehler",text:"Es gibt ein technisches Problem.<br>Bitte versuchen Sie es zu einem späteren Zeitpunkt erneut.",type:"error",autoclose:8e3};const{valid:r}=await e.validation.validate();if(r&&X&&z.value){e.loading=!0;try{let b="signin",m=await z.value(b);if(!((o=c.member)!=null&&o.email))throw new Error("No member email");const{error:V}=await c.signin((i=c.member)==null?void 0:i.email,e.fields.current_password.value.value,{type:"recaptcha",version:"v3",response:m,action:b});if(V.value){const N=new Error;throw N.message=((v=(p=V.value)==null?void 0:p.data)==null?void 0:v.message)||(($=V.value)==null?void 0:$.statusMessage),N.code=(l=V.value)==null?void 0:l.statusCode,N}b="account/email",m=await z.value(b);const Q={member:{id:parseInt((f=c.member)==null?void 0:f.id),email:(G=(u=(t=e.fields)==null?void 0:t.email)==null?void 0:u.value)==null?void 0:G.value}
4,captcha:{type:"recaptcha",version:"v3",response:m,action:b},password:(Y=(W=(Z=e.fields)==null?void 0:Z.current_password)==null?void 0:W.value)==null?void 0:Y.value},{mutate:oe}=ke(Se),K=await oe(Q);if(!((J=K==null?void 0:K.data)!=null&&J.EX_RSTRCT_UpdateMember))throw new Error("No data");c.member=K.data.EX_RSTRCT_UpdateMember,e.loading=!1,te();const C={id:le(),title:"Erfolg",text:"Ihre E-Mail Adresse wurde erfolgreich geändert.",type:"success",mode:"dark",autoclose:5e3};_.addMessage(C),e.loading=!1}catch(b){const m=(ee=b==null?void 0:b.graphQLErrors)==null?void 0:ee[0];m&&(b=m),b.code===403?b.message==="email not verified"?(k.text="Ihre E-Mail wurde noch nicht verifiziert.<br>Bitte prüfen Sie Ihren Posteingang und bestätigen Sie Ihre E-Mail Adresse.",k.autoclose=!1):b.message==="invalid captcha"&&(k.text="Verdächtiges/Bot-ähnliches Verhalten erkannt!<br>Bitte versuchen Sie es erneut.",k.autoclose=!1):console.error(b),_.addMessage(k),e.loading=!1}}else _.addMessage(k)};return(k,r)=>{const o=Ce,i=Ae,p=xe,v=ze,$=Ve;return a(),n("button",{class:"panel email @container/panel",ref_key:"panel",ref:T,onClick:_e(ce,["prevent","stop"])},[(d(B)||d(_).cookieConsent)===!0?(a(),P(o,{key:0,onReady:re})):I("",!0),s("div",Ys,[Js,w(i)]),s("div",et,[st,s("div",tt,[s("span",at,E(g.value),1)])]),(a(),P(we,{to:"body"},[w($,{title:"E-Mail Adresse ändern",open:h.value,"onUpdate:open":r[3]||(r[3]=l=>h.value=l),autofocus:!1,"close-on-escape":!1,onCancel:D,onClose:D},{"header-icon":M(()=>[ot]),body:M(()=>[(d(B)||d(_).cookieConsent||S.value)!==!0?(a(),P(p,{key:0,class:"inline-cookie-consent"})):(a(),n("div",{key:1,class:"form relative",onSubmit:_e(j,["prevent"])},[h.value&&e.loading?(a(),P(v,{key:0,size:10,thickness:2})):I("",!0),lt,s("div",nt,[rt,s("div",ct,[O(s("input",{class:H(["input",{"is-danger":e.fields.current_password.meta.dirty&&!e.fields.current_password.meta.valid}]),id:"password",type:"password",name:"password",autofocus:"","onUpdate:modelValue":r[0]||(r[0]=l=>e.fields.current_password.value.value=l)},null,2),[[se,e.fields.current_password.value.value]]),dt]),w(U,{name:"input-help",mode:"out-in"},{default:M(()=>{var l,f;return[e.fields.current_password.meta.dirty&&((l=e.fields.current_password.errorMessage)!=null&&l.value)?(a(),n("p",ut,E((f=e.fields.current_password.errorMessage)==null?void 0:f.value),1)):(a(),n("p",_t,"Pflichtfeld"))]}),_:1})]),s("div",pt,[mt,s("div",vt,[O(s("input",{class:H(["input",{"is-danger":e.fields.email.meta.dirty&&!e.fields.email.meta.valid}]),id:"email",type:"email",name:"email",autofocus:"","onUpdate:modelValue":r[1]||(r[1]=l=>e.fields.email.value.value=l)},null,2),[[se,e.fields.email.value.value]]),ft]),w(U,{name:"input-help",mode:"out-in"},{default:M(()=>{var l,f;return[e.fields.email.meta.dirty&&((l=e.fields.email.errorMessage)!=null&&l.value)?(a(),n("p",ht,E((f=e.fields.email.errorMessage)==null?void 0:f.value),1)):(a(),n("p",gt,"Pflichtfeld"))]}),_:1})]),s("div",wt,[bt,s("div",yt,[O(s("input",{class:H(["input",{"is-danger":e.fields.email_confirm.meta.dirty&&!e.fields.email_confirm.meta.valid}]),id:"email-confirm",type:"email",name:"email-confirm",autofocus:"","onUpdate:modelValue":r[2]||(r[2]=l=>e.fields.email_confirm.value.value=l)},null,2),[[se,e.fields.email_confirm.value.value]]),kt]),w(U,{name:"input-help",mode:"out-in"},{default:M(()=>{var l,f;return[e.fields.email_confirm.meta.dirty&&((l=e.fields.email_confirm.errorMessage)!=null&&l.value)?(a(),n("p",Mt,E((f=e.fields.email_confirm.errorMessage)==null?void 0:f.value),1)):(a(),n("p",$t,"Pflichtfeld"))]}),_:1})])],40,it))]),footer:M(()=>[s("menu",null,[s("button",{class:"button is-link",type:"reset",onClick:te},"Abbrechen"),s("button",{class:"button is-primary",type:"submit",disabled:e.loading||!d(B)||!d(_).cookieConsent||!S.value||e.validation.meta.pending===!0||e.validation.meta.valid===!1||e.validation.isSubmitting,onClick:j},"Neue E-Mail Adresse speichern",8,Ct)])]),_:1},8,["open"])]))],8,Ws)}}});const zt=pe(xt,[["__scopeId","data-v-e429fbb7"]]),R=y=>(Me("data-v-6c9124a1"),y=y(),$e(),y),St=["onClick"],Vt={class:"icon"},Et=R(()=>s("svg",{class:"default-icon",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.3",d:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"})],-1)),Pt={class:"data"},At=R(()=>s("div",{class:"label"},"Passwort",-1)),Bt={class:"password-placeholder"},Lt={class:"whitespace-nowrap"},Ht={class:"asterisk"},It=R(()=>
4s("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 384 512",width:"12",height:"12"},[s("path",{d:"M192 32c17.7 0 32 14.3 32 32V199.5l111.5-66.9c15.2-9.1 34.8-4.2 43.9 11s4.2 34.8-11 43.9L254.2 256l114.3 68.6c15.2 9.1 20.1 28.7 11 43.9s-28.7 20.1-43.9 11L224 312.5V448c0 17.7-14.3 32-32 32s-32-14.3-32-32V312.5L48.5 379.4c-15.2 9.1-34.8 4.2-43.9-11s-4.2-34.8 11-43.9L129.8 256 15.5 187.4c-15.2-9.1-20.1-28.7-11-43.9s28.7-20.1 43.9-11L160 199.5V64c0-17.7 14.3-32 32-32z"})],-1)),Rt=[It],Tt=R(()=>s("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 26",stroke:"currentColor",width:"24",height:"24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.6",d:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"})],-1)),Nt=["onSubmit"],Ut=R(()=>s("div",{class:"alert warning mb-4"},[s("div",{class:"content"},[s("p",null,"Aus Sicherheitsgründen benötigen wir Ihr aktuelles Passwort, um es zu ändern")])],-1)),Ft={class:"form-field"},qt=R(()=>s("label",{class:"label",for:"password"},"Aktuelles Passwort",-1)),Xt={class:"control has-icons-right"},Dt=R(()=>s("span",{class:"icon"},[s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[s("path",{d:"M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0S160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17v80c0 13.3 10.7 24 24 24h80c13.3 0 24-10.7 24-24V448h40c13.3 0 24-10.7 24-24V384h40c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3zM376 96a40 40 0 1 1 0 80 40 40 0 1 1 0-80z"})])],-1)),jt={key:0,class:"help is-danger"},Qt={key:1,class:"help has-text-grey"},Kt={class:"form-field"},Ot=R(()=>s("label",{class:"label",for:"new-password"},"Neues Passwort",-1)),Gt={class:"control has-icons-right"},Zt=["type"],Wt=R(()=>s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},[s("path",{fill:"currentColor",d:"M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"})],-1)),Yt=[Wt],Jt=R(()=>s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"},[s("path",{fill:"currentColor",d:"M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"})],-1)),ea=[Jt],sa={key:2,class:"icon"},ta=R(()=>s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[s("path",{d:"M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0S160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17v80c0 13.3 10.7 24 24 24h80c13.3 0 24-10.7 24-24V448h40c13.3 0 24-10.7 24-24V384h40c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3zM376 96a40 40 0 1 1 0 80 40 40 0 1 1 0-80z"})],-1)),aa=[ta],oa={key:0,class:"help is-danger"},ia={key:1,class:"help has-text-grey"},la=["disabled"],na=fe({__name:"Password",setup(y){const c=he(),x=be(),_=ge(),B=ie(x.public.consentCookieName);ie(x.public.authCookieName);const X=_.googleRecaptchaSiteKey,z=L(),S=L(!1),h=L(!1),T=L();ue(()=>{var r;return((r=c.member)==null?void 0:r.email)||"--"});let g=ve({type:"password",score:0,warning:!1,success:!1,suggestions:[]});const e=ve({loading:!0,validation:void 0,fields:{}}),ne=Pe().shape({current_password:ae().required("Aktuelles Passwort ist ein Pflichtfield"),new_password:ae().required("Passwort ist ein Pflichtfield").test("zxcvbn","Passwort ist nicht sicher genug",Ie(async(r,o)=>{var i;if(r){let p={password:r};const{data:v}=await Xe(`${x.public.apiEndpoint}
4${x.public.apiZxcvbnRoute}`,{method:"POST",body:p},"$HYuDXRbGm6");return(((i=v==null?void 0:v.value)==null?void 0:i.score)||0)>=3}else return},150))});e.validation=Ee({validationSchema:ne}),e.fields={current_password:F("current_password"),new_password:F("new_password")};const re=async r=>{z.value=r,e.loading=!1,S.value=!0},ce=async()=>{e.loading=!0,T.value.blur(),await ye(),h.value=!0,S.value&&(e.loading=!1)},D=()=>{setTimeout(()=>{h.value!==!0&&(e.fields.current_password.value.value="",e.fields.new_password.value.value="",e.validation.resetForm())},300)},te=()=>{h.value=!1,D()},j=async()=>{var i,p,v,$,l,f,t,u,G,Z,W,Y,J,ee,b;let r={id:le(),title:"Fehler",text:"Es gibt ein technisches Problem.<br>Bitte versuchen Sie es zu einem späteren Zeitpunkt erneut.",type:"error",autoclose:8e3};const{valid:o}=await e.validation.validate();if(o&&X&&z.value){e.loading=!0;try{let m="signin",V=await z.value(m);if(!((i=c.member)!=null&&i.email))throw new Error("No member email");const{error:Q}=await c.signin((p=c.member)==null?void 0:p.email,e.fields.current_password.value.value,{type:"recaptcha",version:"v3",response:V,action:m});if(Q.value){const de=new Error;throw de.message=(($=(v=Q.value)==null?void 0:v.data)==null?void 0:$.message)||((l=Q.value)==null?void 0:l.statusMessage),de.code=(f=Q.value)==null?void 0:f.statusCode,de}m="account/password",V=await z.value(m);const oe={member:{id:parseInt((t=c.member)==null?void 0:t.id),password:(Z=(G=(u=e.fields)==null?void 0:u.new_password)==null?void 0:G.value)==null?void 0:Z.value,changePassword:!0},captcha:{type:"recaptcha",version:"v3",response:V,action:m},password:(J=(Y=(W=e.fields)==null?void 0:W.current_password)==null?void 0:Y.value)==null?void 0:J.value},{mutate:K}=ke(Se),C=await K(oe);if(!((ee=C==null?void 0:C.data)!=null&&ee.EX_RSTRCT_UpdateMember))throw new Error("No data");c.member=C.data.EX_RSTRCT_UpdateMember,e.loading=!1,te();const N={id:le(),title:"Erfolg",text:"Ihr Passwort wurde erfolgreich geändert.",type:"success",mode:"dark",autoclose:5e3};_.addMessage(N),e.loading=!1}catch(m){const V=(b=m==null?void 0:m.graphQLErrors)==null?void 0:b[0];V&&(m=V),m.code===403?m.message==="email not verified"?(r.text="Ihre E-Mail wurde noch nicht verifiziert.<br>Bitte prüfen Sie Ihren Posteingang und bestätigen Sie Ihre E-Mail Adresse.",r.autoclose=!1):m.message==="invalid captcha"&&(r.text="Verdächtiges/Bot-ähnliches Verhalten erkannt!<br>Bitte versuchen Sie es erneut.",r.autoclose=!1):console.error(m),_.addMessage(r),e.loading=!1}}else _.addMessage(r)},k=r=>{g.warning=je(r.warning)};return(r,o)=>{const i=Ce,p=Ae,v=xe,$=ze,l=We,f=Ve;return a(),n("button",{class:"panel password @container/panel",ref_key:"panel",ref:T,onClick:_e(ce,["prevent","stop"])},[(d(B)||d(_).cookieConsent)===!0?(a(),P(i,{key:0,onReady:re})):I("",!0),s("div",Vt,[Et,w(p)]),s("div",Pt,[At,s("div",Bt,[s("span",Lt,[(a(),n(Le,null,He(12,t=>s("span",Ht,Rt)),64))])])]),(a(),P(we,{to:"body"},[w(f,{title:"Passwort ändern",open:h.value,"onUpdate:open":o[5]||(o[5]=t=>h.value=t),autofocus:!1,"close-on-escape":!1,onCancel:D,onClose:D},{"header-icon":M(()=>[Tt]),body:M(()=>[(d(B)||d(_).cookieConsent||S.value)!==!0?(a(),P(v,{key:0,class:"inline-cookie-consent"})):(a(),n("div",{key:1,class:"form relative",onSubmit:_e(j,["prevent"])},[h.value&&e.loading?(a(),P($,{key:0,size:10,thickness:2})):I("",!0),Ut,s("div",Ft,[qt,s("div",Xt,[O(s("input",{class:H(["input",{"is-danger":e.fields.current_password.meta.dirty&&!e.fields.current_password.meta.valid}]),id:"password",type:"password",name:"password",autofocus:"","onUpdate:modelValue":o[0]||(o[0]=t=>e.fields.current_password.value.value=t)},null,2),[[se,e.fields.current_password.value.value]]),Dt]),w(U,{name:"input-help",mode:"out-in"},{default:M(()=>{var t,u;return[e.fields.current_password.meta.dirty&&((t=e.fields.current_password.errorMessage)!=null&&t.value)?(a(),n("p",jt,E((u=e.fields.current_password.errorMessage)==null?void 0:u.value),1)):(a(),n("p",Qt,"Pflichtfeld"))]}),_:1})]),s("div",Kt,[Ot,s("div",Gt,[O(s("input",{class:H(["input",{"is-danger":e.fields.new_password.meta.dirty&&!e.fields.new_password.meta.valid}]),id:"new-password",type:d(g).type,name:"new-password","onUpdate:modelValue":o[1]||(o[1]=t=>e.fields.new_password.value.value=t)},null,10,Zt),[[De,e.fields.new_password.value.value]]),e.fields.new_password.value.value&&d(g).type==="password"?(a(),n("button",{key:0,class:"icon",type:"button",onClick:o[2]||(o[2]=t=>d(g).type="text")},Yt)):e.fields.new_password.value.value&&d(g).type==="text"?(a(),n("button",{key:1,class:"icon",type:"button",onClick:o[3]||(o[3]=t=>d(g).type="password")},ea)):(a(),n("span",sa,aa))]),w(l,{password:e.fields.new_password.value.value,onScore:o[4]||(o[4]=t=>d(g).score=t),onFeedback:k},null,8,["password"]),w(U,{name:"input-help",mode:"out-in"},{default:M(()=>{var t,u;return[d(g).warning||e.fields.new_password.meta.dirty&&((t=e.fields.new_password.errorMessage)!=null&&t.value)?(a(),n("p",oa,E(d(g).warning||((u=e.fields.new_password.errorMessage)==null?void 0:u.value)),1)):(a(),n("p",ia,"Pflichtfeld"))]}),_:1})])],40,Nt))]),footer:M(()=>[s("menu",null,[s("button",{class:"button is-link",type:"reset",onClick:te},"Abbrechen"),s("button",{class:"button is-primary",type:"submit",disabled:e.loading||!d(B)||!d(_).cookieConsent||!S.value||e.validation.meta.pending===!0||e.validation.meta.valid===!1||e.validation.isSubmitting,onClick:j},"Neues Passwort speichern",8,la)])]),_:1},8,["open"])]))],8,St)}}});const ra=pe(na,[["__scopeId","data-v-6c9124a1"]]),ca=Ke(()=>Oe(()=>import("./Heading.2c19bad3.js"),["./Heading.2c19bad3.js","./section.fb8f2027.js","./entry.8854d24f.js","./entry.71e0f0d1.css","./Heading.cad5e92c.css"],import.meta.url).then(y=>y.default||y)),da={class:"account min-h-full relative @container/account"},ua={class:"grid"},_a={name:"Account"},pa=fe({..._a,setup(y){const c=Ye();let x=(c==null?void 0:c.account)||[];return x=x.filter(_=>
4["heading","post"].includes(_.key)),(_,B)=>{const X=ca,z=Qe("lazy-section-post"),S=Gs,h=zt,T=ra;return a(),n("div",da,[d(x)&&d(x).length?(a(!0),n(Le,{key:0},He(d(x),(g,e)=>(a(),n("section",{key:g.id,class:H(g.key)},[g.key==="heading"?(a(),P(X,{key:0,section:g},null,8,["section"])):I("",!0),g.key==="post"?(a(),P(z,{key:1,section:g},null,8,["section"])):I("",!0)],2))),128)):I("",!0),s("section",ua,[w(S),w(h),w(T)])])}}});const Ma=pe(pa,[["__scopeId","data-v-afa024bc"]]);export{Ma 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.