import{r as e,h as t,H as s,g as i}from"./p-9f21f85f.js";import{a as r}from"./p-9c82afa0.js";import{i as a}from"./p-9315742d.js";import"./p-aa5ffe14.js";import"./p-83f217d4.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:i}=this;return a=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:i.imageUrl,size:64,shape:"circle",text:r(i)})),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(s,{class:"d-block row justify-content-center pt-3"},t("div",{class:"col mt-3"},a));var a}get el(){return i(this)}};a(n),n.style="dvn-app-activate-membership{display:block;-ms-flex:1;flex:1}dvn-app-activate-membership .space-logo{width:48px;height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin-right:0.5rem}";export{n as dvn_app_activate_membership}