import{r as s,h as t,H as i}from"./p-a0569a5f.js";import{B as r}from"./p-eebad85b.js";import"./p-b7a1e5c3.js";import{i as o}from"./p-e6d13877.js";import"./p-7a6b6586.js";import"./p-83f217d4.js";let e=class{constructor(t){s(this,t),this.onSubmit=s=>{const t=s.detail.values;this.progressing=!0,this.apiUye.updateMembership(this.membership.config._id,this.membership._id,t).then(this.onUpdateSucceed,this.onUpdateFail).finally((()=>this.progressing=!1))},this.onUpdateSucceed=()=>{this.appContextInvalidator()},this.onUpdateFail=s=>{this.error=s}}render(){const{membership:s,progressing:o}=this;return s?t(i,{class:"d-block"},t("doldurma-form",{fields:s.config.fields.filter((s=>"user"!==s.id)).map((t=>r.decode(Object.assign(Object.assign({},t),{value:s[t.id]})))),onSubmit:this.onSubmit,submitButtonLabel:"Save",progressing:o})):null}};o(e);export{e as dvn_member_info_form}