|
|
|
(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[7610],{203:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(47898),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},1544:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(54888),o=s(79051),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);s(71855);const r=(0,s(14486).default)(o.default,a.render,a.staticRenderFns,!1,null,null,null).exports},2011:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>o});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"px-md-5",staticStyle:{"background-color":"#fff"}},[t.group.metadata&&t.group.metadata.hasOwnProperty("header")?e("img",{staticClass:"header-image",attrs:{src:t.group.metadata.header.url}}):e("div",{staticClass:"header-jumbotron"})])},o=[]},2118:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:["id"],data:function(){return{loadingStatus:"Determining invite eligibility",tab:"initial",profile:{},group:{},showMore:!1}},mounted:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then((function(e){t.profile=e.data,t.fetchGroup()})).catch((function(e){return 403===e.response.status?void(t.tab="login"):void(t.tab="error")}))},methods:{fetchGroup:function(){var t=this;axios.get("/api/v0/groups/".concat(this.id)).then((function(e){t.group=e.data,t.loadingStatus="Checking group invitations",t.checkForInvitation()})).catch((function(e){t.tab="error"}))},checkForInvitation:function(){var t=this;axios.post("/api/v0/groups/".concat(this.group.id,"/invite/check")).then((function(e){t.tab=1==e.data.can_join?"form":"notinvited"})).catch((function(e){422===e.response.status&&"Already a member"===e.response.data.error?t.tab="existingmember":t.tab="error"}))},prettyCount:function(t){return App.util.format.count(t)},timeago:function(t){return App.util.format.timeAgo(t)},showMoreInfo:function(){event.currentTarget.blur(),this.showMore=!this.showMore},acceptInvite:function(){var t=this;event.currentTarget.blur(),this.tab="loading",axios.post("/api/v0/groups/".concat(this.group.id,"/invite/accept")).then((function(t){setTimeout((function(){location.href=t.data.next_url}),2e3)})).catch((function(e){t.tab="error"}))},declineInvite:function(){var t=this;event.currentTarget.blur(),this.tab="loading",axios.post("/api/v0/groups/".concat(this.group.id,"/invite/decline")).then((function(t){location.href=t.data.next_url})).catch((function(e){t.tab="error"}))}}}},2133:(t,e,s)=>{"use strict";s.r(e);var a=s(64954),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},2298:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(92155),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},2815:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(9266),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o);const i=a.default},3388:(t,e,s)=>{"use strict";s.r(e);var a=s(20671),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},3456:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(13373),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},3625:(t,e,s)=>{"use strict";s.r(e);var a=s(33864),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},3891:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:{label:{type:String},inputText:{type:String},val:{type:String},helpText:{type:String},strongText:{type:Boolean,default:!0}},data:function(){return{value:this.val}},watch:{value:function(t,e){this.$emit("update",t)}}}},4114:(t,e,s)=>{"use strict";s.r(e);var a=s(83441),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},4552:(t,e,s)=>{"use strict";s.r(e);var a=s(80171),o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},4709:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85072),o=s.n(a),i=s(26140),r={insert:"head",singleton:!1};o()(i.default,r);const n=i.default.locals||{}},4777:(t,e,s)=>{"use strict";s.r(e),s.d(e,{
|