1import{_ as I,g as w,C as x,a as _,w as t,l as P,o as s,e as o,b as n,a4 as S,c as p,V as d,d as l,t as V,j as f,T as A,H as E,k as N,I as L,J as O}from"./entry.d93a3ed3.js";import{_ as T}from"./title.4aeb40cd.js";import{_ as $}from"./body.36ba95ef.js";import{_ as B}from"./footer.806de146.js";import{_ as z}from"./index.1cd70825.js";import{_ as H}from"./message.0a46cc6d.js";import{_ as R,a as j}from"./index.d74bf0f7.js";const y=a=>(L("data-v-814e9377"),a=a(),O(),a),D=["alt","src"],G={class:"my-3"},U=y(()=>l("p",{class:"my-3"}," Access this community's events, catch-up content and on-demand training content from their profile page. ",-1)),F={class:"fill-width"},J={key:0},M=y(()=>l("p",{class:"mb-3"}," Complete your profile to get full access to all of our tools and functionality. ",-1)),Y={data(){return{error:!1,loading:!0,followable:null,type:null}},computed:{...w({userIsLoading:"users/USER_IS_LOADING",userProfileComplete:"users/USER_PROFILE_COMPLETE"}),community(){return this.type!=="Organisation"?null:this.followable},token(){return this.$route.params.token}},created(){new x("follow_invite/accept").create({token:this.token}).then(a=>{this.followable=a.data.followable,this.type=a.data.type}).catch(()=>{this.error=!0}).finally(()=>{this.loading=!1})},methods:{gotoCommunityProfile(){this.community&&this.$router.push({name:"c-id",params:{id:this.community.slug||this.community.id}})}}},q=Object.assign(Y,{__name:"[token]",setup(a){return(e,K)=>{const h=A,g=E,c=T,i=$,m=B,r=z,u=N,k=H,b=R,v=j,C=P;return s(),_(C,{class:"py-5 py-11"},{default:t(()=>[o(g,null,{default:t(()=>[o(h,null,{default:t(()=>[n("Accept Invitation")]),_:1})]),_:1}),e.loading?(s(),_(r,{key:0},{default:t(()=>[o(c,null,{default:t(()=>[n(" Accepting the invitation... ")]),_:1}),o(i,null,{default:t(()=>[o(S,{color:"primary",size:150,indeterminate:""})]),_:1}),o(m,null,{default:t(()=>[n(" Â ")]),_:1})]),_:1})):e.community?(s(),_(r,{key:1},{default:t(()=>[o(c,null,{default:t(()=>[n(" Invitation accepted ")]),_:1}),o(i,null,{default:t(()=>[e.community.urls.logo?(s(),p("img",{key:0,alt:e.community.name,class:"community-logo",src:e.community.urls.logo},null,8,D)):(s(),_(d,{key:1,color:"green-darken-2",size:150},{default:t(()=>[n(" check ")]),_:1})),l("p",G,"You are now following "+V(e.community.name)+".",1),o(v,{class:"mt-12"},{default:t(()=>[o(b,null,{default:t(()=>[o(k,{title:"Next steps"},{default:t(()=>[U,l("div",F,[o(u,{class:"mb-6",color:"primary",block:"",onClick:e.gotoCommunityProfile},{default:t(()=>[n(" Community profile ")]),_:1},8,["onClick"])]),!e.userIsLoading&&!e.userProfileComplete?(s(),p("div",J,[M,o(u,{class:"mb-6",color:"green-darken-2",to:{name:"settings-profile"},block:""},{default:t(()=>[n(" Complete your profile ")]),_:1})])):f("",!0)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})):e.error?(s(),_(r,{key:2},{default:t(()=>[o(c,null,{default:t(()=>[n(" Accepting the invitation... ")]),_:1}),o(i,null,{default:t(()=>[o(d,{color:"red-darken-3",size:150},{default:t(()=>[n(" error ")]),_:1})]),_:1}),o(m,null,{default:t(()=>[n(" Sorry, this invitation could not be accepted. Please contact the community that sent your invitation for assistance. ")]),_:1})]),_:1})):f("",!0)]),_:1})}}}),nt=I(q,[["__scopeId","data-v-814e9377"]]);export{nt as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.