import{r as s,h as t,H as i}from"./p-c1e62c18.js";import"./p-eb6e2a8b.js";import"./p-83f217d4.js";import"./p-bd63d08d.js";import{i as r}from"./p-bb18aa40.js";import{B as o}from"./p-d66fb38c.js";const 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:r}=this;return s?t(i,{class:"d-block"},t("doldurma-form",{fields:s.config.fields.filter((s=>"user"!==s.id)).map((t=>o.decode(Object.assign(Object.assign({},t),{value:s[t.id]})))),onSubmit:this.onSubmit,submitButtonLabel:"Save",progressing:r})):null}};r(e);export{e as dvn_member_info_form}