import{r as e,h as t,H as i,g as s}from"./p-c1e62c18.js";import"./p-83f217d4.js";import"./p-bd63d08d.js";import{i as r}from"./p-bb18aa40.js";import"./p-3c3b4f3f.js";import{a}from"./p-b64f8873.js";const n=class{constructor(t){e(this,t),this.renderTrigger=0,this.isProgressing=!1}async activateMembership(){const{membership:e}=this;await this.apiUye.activateMembership(e.config._id,e._id).catch((e=>{console.log(e)}))&&this.appContextInvalidator()}render(){const{membership:e,user:s}=this;return r=e?t("div",{class:"text-centered"},t("div",{class:"d-flex align-items-center justify-content-center"},t("dvn-image",{bordered:!0,src:e.config.space.logoUrl,size:64,text:e.config.space.name[0]}),t("dvn-icon",{iconName:"uil uil-plus",scale:"large"}),t("dvn-image",{bordered:!0,src:s.imageUrl,size:64,shape:"circle",text:a(s)})),t("p",null,"You're invited as ",t("i",null,e.config.roleName)," to join ",e.config.space.name,"."),t("dvn-button",{onClick:()=>this.activateMembership(),tint:"primary"},"Accept Invitation")):t("dvn-progress",{indefinite:!0}),t(i,{class:"d-block row justify-content-center pt-3"},t("div",{class:"col mt-3"},r));var r}get el(){return s(this)}};r(n),n.style="dvn-app-activate-membership{display:block}dvn-app-activate-membership .space-logo{width:48px;height:48px;flex:0 0 48px;margin-right:0.5rem}";export{n as dvn_app_activate_membership}