import{r as s,h as t,H as i}from"./p-1ea36ff3.js";import{B as r}from"./p-eebad85b.js";import"./p-681f800a.js";import{i as e}from"./p-fdec3fb2.js";import"./p-fde6bda9.js";import"./p-83f217d4.js";let o=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:e}=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:e})):null}};e(o);export{o as dvn_member_info_form}