pixelfed/public/js/groups-page.53eccead9512c61f.js
2024-11-08 22:05:41 -07:00

1 line
No EOL
72 KiB
JavaScript
Vendored
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[529],{43209:(t,e,a)=>{a.r(e),a.d(e,{default:()=>C});var s=a(79984),i=a(78277),n=a(17108),o=a(95002),r=a(87223),l=a(48204),c=a(9716),d=a(20524),u=a(13094),p=a(58753),m=a(54451),f=a(94559),v=a(19413),h=a(26679),g=a(49268);function b(t){return function(t){if(Array.isArray(t))return _(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return _(t,e);var a={}.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,s=Array(e);a<e;a++)s[a]=t[a];return s}const C={props:{groupId:{type:String},path:{type:String},permalinkMode:{type:Boolean,default:!1},permalinkId:{type:String}},components:{"status-card":s.default,"group-about":r.default,"group-status":o.default,"group-members":i.default,"group-compose":n.default,"group-topics":d.default,"group-info-card":u.default,"group-media":l.default,"group-moderation":c.default,"leave-group":p.default,"group-insights":m.default,"search-modal":f.default,"invite-modal":v.default,sidebar:h.default,"group-banner":g.default},data:function(){return{initalLoad:!1,profile:void 0,group:{},isMember:!1,isAdmin:!1,tab:"feed",requestingMembership:!1,composeText:null,feed:[],ids:[],maxId:null,status:void 0,likes:[],likesPage:1,likesId:void 0,atabs:{moderation_count:0,request_count:0}}},mounted:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then((function(e){t.profile=e.data,t.fetchGroup()})).catch((function(t){window.location.href="/login?_next="+encodeURIComponent(window.location.href)})),this.permalinkMode?this.fetchPermalink():this.fetchFeed()},methods:{initObservers:function(){},fetchGroup:function(){var t=this;axios.get("/api/v0/groups/"+this.groupId).then((function(e){t.group=e.data,t.isMember=e.data.self.is_member,t.isAdmin=["founder","admin"].includes(e.data.self.role),t.isAdmin&&t.fetchAdminTabs(),t.path?t.isMember&&["about","topics","members","events","media","polls"].includes(t.path)||t.isAdmin&&["insights","moderation"].includes(t.path)?setTimeout((function(){t.tab=t.path,t.initalLoad=!0}),500):(history.pushState(null,null,t.group.url),t.initalLoad=!0):t.initalLoad=!0})).catch((function(t){}))},fetchAdminTabs:function(){var t=this;axios.get("/api/v0/groups/"+this.groupId+"/atabs").then((function(e){t.atabs=e.data}))},fetchFeed:function(){var t=this;axios.get("/api/v0/groups/"+this.groupId+"/feed").then((function(e){var a=t;e.data&&e.data.length&&(t.feed=e.data,t.maxId=t.feed[t.feed.length-1].id,e.data.forEach((function(t){-1==a.ids.indexOf(t.id)&&a.ids.push(t.id)}))),t.initObservers()}))},fetchPermalink:function(){var t=this;axios.get("/api/v0/groups/status",{params:{gid:this.groupId,sid:this.permalinkId}}).then((function(e){t.status=e.data,t.status.in_reply_to_id&&(t.status.showCommentDrawer=!0)})).catch((function(e){t.permalinkMode=!1,t.fetchFeed()}))},timestampFormat:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=new Date(t);return e?a.toDateString()+" · "+a.toLocaleTimeString():a.toDateString()},switchTab:function(t){window.scrollTo(0,0),"feed"==t&&this.permalinkMode&&(this.permalinkMode=!1,this.fetchFeed());var e="feed"==t?this.group.url:this.group.url+"/"+t;history.pushState(t,null,e),this.tab=t},joinGroup:function(){var t=this;this.requestingMembership=!0,axios.post("/api/v0/groups/"+this.groupId+"/join").then((function(e){t.requestingMembership=!1,t.group=e.data,t.fetchGroup(),t.fetchFeed()})).catch((function(e){var a=e.response;422==a.status&&(t.tab="feed",history.pushState("",null,t.group.url),t.requestingMembership=!1,swal("Oops!",a.data.error,"error"))}))},cancelJoinRequest:function(){var t=this;window.confirm("Are you sure you want to cancel your request to join this group?")&&axios.post("/api/v0/groups/"+this.groupId+"/cjr").then((function(e){t.requestingMembership=!1})).catch((function(t){var e=t.response;422==e.status&&swal("Oops!",e.data.error,"error")}))},leaveGroup:function(){var t=this;window.confirm("Are you sure you want to leave this group? Any content you shared will remain accessible. You won't be able to rejoin for 24 hours.")&&axios.post("/api/v0/groups/"+this.groupId+"/leave").then((function(e){t.tab="feed",history.pushState("",null,t.group.url),t.feed=[],t.isMember=!1,t.isAdmin=!1,t.group.self.role=null,t.group.self.is_member=!1}))},pushNewStatus:function(t){this.feed.unshift(t)},commentFocus:function(t){this.feed[t].showCommentDrawer=!0},statusDelete:function(t){this.feed.splice(t,1)},infiniteFeed:function(t){var e=this;if(this.feed.length<3)t.complete();else{var a="/api/v0/groups/"+this.groupId+"/feed";axios.get(a,{params:{limit:6,max_id:this.maxId}}).then((function(a){if(a.data.length){var s,i,n=a.data.filter((function(t){return-1==e.ids.indexOf(t.id)}));e.maxId=n[n.length-1].id,(s=e.feed).push.apply(s,b(n)),(i=e.ids).push.apply(i,b(n.map((function(t){return t.id})))),setTimeout((function(){e.initObservers()}),1e3),t.loaded()}else t.complete()}))}},decrementModCounter:function(t){var e=this.atabs.moderation_count;0!=e&&(this.atabs.moderation_count=e-t)},setModCounter:function(t){this.atabs.moderation_count=t},decrementJoinRequestCount:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=this.atabs.request_count;this.atabs.request_count=e-t},incrementMemberCount:function(){var t=this.group.member_count;this.group.member_count=t+1},copyLink:function(){window.App.util.clipboard(this.group.url),this.$bvToast.toast("Succesfully copied group url to clipboard",{title:"Success",variant:"success",autoHideDelay:5e3})},reportGroup:function(){var t=this;swal("Report Group","Are you sure you want to report this group?").then((function(e){e&&(location.href="/i/report?id=".concat(t.group.id,"&type=group"))}))},showSearchModal:function(){event.currentTarget.blur(),this.$refs.searchModal.open()},showInviteModal:function(){event.currentTarget.blur(),this.$refs.inviteModal.open()},showLikesModal:function(t){var e=this;this.likesId=this.feed[t].id,axios.get("/api/v0/groups/"+this.groupId+"/likes/"+this.likesId).then((function(t){e.likes=t.data,e.likesPage++,e.$refs.likeBox.show()}))},infiniteLikesHandler:function(t){var e=this;this.likes.length<3?t.complete():axios.get("/api/v0/groups/"+this.groupId+"/likes/"+this.likesId,{params:{page:this.likesPage}}).then((function(a){var s;a.data.length>0?((s=e.likes).push.apply(s,b(a.data)),e.likesPage++,10!=a.data.length?t.complete():t.loaded()):t.complete()}))}}}},12189:(t,e,a)=>{a.r(e),a.d(e,{default:()=>s});const s={props:{group:{type:Object}},methods:{timestampFormat:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=new Date(t);return e?a.toDateString()+" · "+a.toLocaleTimeString():a.toDateString()}}}},52327:(t,e,a)=>{a.r(e),a.d(e,{default:()=>s});const s={props:{group:{type:Object}},data:function(){return{}},methods:{}}},14366:(t,e,a)=>{a.r(e),a.d(e,{default:()=>s});const s={props:{group:{type:Object}},data:function(){return{isLoaded:!1,feed:[],photos:[],videos:[],albums:[],tab:"photo",tabs:["photo","video","album"],page:{photo:1,video:1,album:1},hasNextPage:{photo:!1,video:!1,album:!1}}},mounted:function(){this.fetchMedia()},methods:{fetchMedia:function(){var t=this;axios.get("/api/v0/groups/media/list",{params:{gid:this.group.id,page:this.page[this.tab],type:this.tab}}).then((function(e){e.data.length>0&&(t.hasNextPage[t.tab]=!0),t.isLoaded=!0,e.data.forEach((function(e){"photo"==e.pf_type&&t.photos.push(e),"video"==e.pf_type&&t.videos.push(e),"photo:album"==e.pf_type&&t.albums.push(e)})),t.page[t.tab]=t.page[t.tab]+1})).catch((function(e){t.hasNextPage[t.tab]=!1,console.log(e.response)}))},loadNextPage:function(){var t=this;axios.get("/api/v0/groups/media/list",{params:{gid:this.group.id,page:this.page[this.tab],type:this.tab}}).then((function(e){0!=e.data.length?(e.data.forEach((function(e){"photo"==e.pf_type&&t.photos.push(e),"video"==e.pf_type&&t.videos.push(e),"photo:album"==e.pf_type&&t.albums.push(e)})),t.page[t.tab]=t.page[t.tab]+1):t.hasNextPage[t.tab]=!1})).catch((function(e){t.hasNextPage[t.tab]=!1}))},formatDate:function(t){return new Date(t).toDateString()},switchTab:function(t){this.tab=t,this.fetchMedia()},lightbox:function(t){this.lightboxStatus=t.media_attachments[0],this.$refs.lightboxModal.show()},hideLightbox:function(){this.lightboxStatus=null,this.$refs.lightboxModal.hide()},blurhashWidth:function(t){if(!t.media_attachments[0].meta)return 25;var e=t.media_attachments[0].meta.original.aspect;return 1==e?25:e>1?30:20},blurhashHeight:function(t){if(!t.media_attachments[0].meta)return 25;var e=t.media_attachments[0].meta.original.aspect;return 1==e?25:e>1?20:30},getMediaSource:function(t){var e=t.media_attachments[0];return e.preview_url&&e.preview_url.endsWith("storage/no-preview.png")||e.preview_url&&e.preview_url.length,e.url}}}},95871:(t,e,a)=>{a.r(e),a.d(e,{default:()=>r});var s=a(62724),i=a(74692);function n(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var a={}.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,s=Array(e);a<e;a++)s[a]=t[a];return s}const r={props:{group:{type:Object},profile:{type:Object},requestCount:{type:Number},isAdmin:{type:Boolean}},components:{"group-interaction-limits-modal":s.default},data:function(){return{members:[],mutual:[],results:[],page:1,hasNextPage:!0,tab:"list",memberSearchModel:null,activeProfile:void 0,hideHeader:!1,reviewsLoaded:!1,applicants:[],applicantsPage:1,applicantsCanLoadMore:!1,loadingMoreApplicants:!1}},mounted:function(){var t=this;this.fetchMembers();var e=new URLSearchParams(window.location.search);if("founder"==this.group.self.role){if(this.isAdmin=!0,e.has("a")){if("il"==e.get("a")){this.tab="loading";var a=e.get("pid");axios.get("/api/v0/groups/members/get",{params:{gid:this.group.id,pid:a}}).then((function(e){t.results.push(e.data),t.tab="memberInteractionLimits",t.openInteractionLimitModal(e.data)}))}"review"==e.get("a")&&this.reviewApplicants()}}else e.has("a")&&history.pushState(null,null,"/groups/".concat(this.group.id,"/members"))},watch:{memberSearchModel:function(t){this.handleSearch()}},methods:{fetchMembers:function(){var t=this;axios.get("/api/v0/groups/members/list",{params:{gid:this.group.id,page:this.page}}).then((function(e){var a=e.data.filter((function(e){return e.id!=t.profile.id}));t.members=a.filter((function(t){return!t.following})),t.mutual=a.filter((function(t){return t.following})),t.page++,t.$nextTick((function(){i('[data-toggle="tooltip"]').tooltip()}))})).catch((function(t){console.log(res.response)}))},loadNextPage:function(){var t=this;axios.get("/api/v0/groups/members/list",{params:{gid:this.group.id,page:this.page}}).then((function(e){var a,s;if(0!=e.data.length){var o=e.data.filter((function(e){return e.id!=t.profile.id}));(a=t.members).push.apply(a,n(o.filter((function(t){return!t.following})))),(s=t.mutual).push.apply(s,n(o.filter((function(t){return t.following})))),t.page++,t.$nextTick((function(){i('[data-toggle="tooltip"]').tooltip()}))}else t.hasNextPage=!1})).catch((function(t){console.log(t.response)}))},follow:function(t){var e=this;axios.post("/i/follow",{item:this.members[t].id}).then((function(a){e.members[t].following=!e.members[t].following})).catch((function(t){console.log(t.response)}))},formatDate:function(t){return new Date(t).toDateString()},handleSearch:function(){var t=this;if(!this.memberSearchModel||""==this.memberSearchModel||0==this.memberSearchModel.length)return this.tab,void(this.memberSearchModel=null);this.tab="search",this.results=this.members.concat(this.mutual).filter((function(e){return e.username.includes(t.memberSearchModel)})),this.tab="results"},backFromSearch:function(){event.currentTarget.blur(),this.memberSearchModel=null,this.tab="list",history.pushState(null,null,"/groups/".concat(this.group.id,"/members"))},openInteractionLimitModal:function(t){var e=this;this.activeProfile=t,setTimeout((function(){e.$refs.interactionModal.open()}),500)},reviewApplicants:function(){var t=this;this.hideHeader=!0,this.tab="review",history.pushState(null,null,"/groups/".concat(this.group.id,"/members?a=review")),axios.get("/api/v0/groups/members/requests",{params:{gid:this.group.id}}).then((function(e){t.applicants=e.data,t.reviewsLoaded=!0,t.applicantsPage=2,t.applicantsCanLoadMore=10==e.data.length}))},handleApplicant:function(t,e){var a=this;event.currentTarget.blur(),"ignore"!=e?(this.tab="loading",window.confirm("Are you sure you want to perform this action?")&&axios.post("/api/v0/groups/members/request",{gid:this.group.id,pid:this.applicants[t].id,action:e}).then((function(s){a.applicants.splice(t,1),a.tab="review",a.$emit("decrementrc"),"approve"==e&&a.$emit("incrementMemberCount")}))):this.applicants.splice(t,1)},backFromReview:function(){event.currentTarget.blur(),this.memberSearchModel=null,this.tab="list",this.hideHeader=!1,history.pushState(null,null,"/groups/".concat(this.group.id,"/members"))},loadMoreApplicants:function(){var t=this;this.loadingMoreApplicants=!0,axios.get("/api/v0/groups/members/requests",{params:{gid:this.group.id,page:this.applicantsPage}}).then((function(e){var a;(a=t.applicants).push.apply(a,n(e.data)),t.applicantsCanLoadMore=10==e.data.length,t.applicantsPage++,t.loadingMoreApplicants=!1}))}}}},2336:(t,e,a)=>{function s(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var a={}.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,s=Array(e);a<e;a++)s[a]=t[a];return s}a.r(e),a.d(e,{default:()=>n});const n={props:{group:{type:Object}},data:function(){return{initalLoad:!1,reports:[],page:1,canLoadMore:!1,tab:"home"}},mounted:function(){this.getReports()},methods:{getReports:function(){var t=this;axios.get("/api/v0/groups/".concat(this.group.id,"/reports/list")).then((function(e){t.reports=e.data,t.initalLoad=!0,t.page++,t.canLoadMore=10==e.data.length}))},loadMoreReports:function(){var t=this;axios.get("/api/v0/groups/".concat(this.group.id,"/reports/list"),{params:{page:this.page}}).then((function(e){var a;(a=t.reports).push.apply(a,s(e.data)),t.page++,t.canLoadMore=10==e.data.length}))},timeago:function(t){return App.util.format.timeAgo(t)},actionMenu:function(t){var e=this;event.currentTarget.blur(),swal({title:"Moderator Action",dangerMode:!0,text:"Please select an action to take, press ESC to close",buttons:{ignore:{text:"Ignore",className:"btn-warning",value:"ignore"},cw:{text:"NSFW",className:"btn-warning",value:"cw"},delete:{text:"Delete",className:"btn-danger",value:"delete"}}}).then((function(a){switch(a){case"ignore":axios.post("/api/v0/groups/".concat(e.group.id,"/report/action"),{action:"ignore",id:e.reports[t].id}).then((function(a){var s=e.reports[t];e.$emit("decrement",s.total_count),e.reports.splice(t,1),e.$bvToast.toast("Ignored and closed moderation report",{title:"Moderation Action",autoHideDelay:5e3,appendToast:!0})}));break;case"cw":axios.post("/api/v0/groups/".concat(e.group.id,"/report/action"),{action:"cw",id:e.reports[t].id}).then((function(a){var s=e.reports[t];e.$emit("decrement",s.total_count),e.reports.splice(t,1),e.$bvToast.toast("Succesfully applied content warning and closed moderation report",{title:"Moderation Action",autoHideDelay:5e3,appendToast:!0})}));break;case"delete":swal("Oops, this is embarassing!","We have not implemented this moderation action yet.","error")}}))}}}},44128:(t,e,a)=>{a.r(e),a.d(e,{default:()=>s});const s={props:{group:{type:Object}},data:function(){return{feed:[]}},mounted:function(){this.fetchTopics()},methods:{fetchTopics:function(){var t=this;axios.get("/api/v0/groups/topics/list",{params:{gid:this.group.id}}).then((function(e){t.feed=e.data}))}}}},52070:(t,e,a)=>{a.r(e),a.d(e,{default:()=>s});const s={props:{group:{type:Object},profile:{type:Object}},data:function(){return{limitsLoaded:!1,limits:{can_post:!0,can_comment:!0,can_like:!0},updated:null,savingChanges:!1}},methods:{fetchInteractionLimits:function(){var t=this;axios.get("/api/v0/groups/".concat(this.group.id,"/members/interaction-limits"),{params:{profile_id:this.profile.id}}).then((function(e){t.limits=e.data.limits,t.updated=e.data.updated_at,t.limitsLoaded=!0})).catch((function(e){t.$refs.home.hide(),swal("Oops!","Cannot fetch interaction limits at this time, please try again later.","error")}))},open:function(t){this.loaded=!0,this.$refs.home.show(),this.fetchInteractionLimits()},formatDate:function(t){return new Date(t).toDateString()},saveChanges:function(){var t=this;event.currentTarget.blur(),this.savingChanges=!0,axios.post("/api/v0/groups/".concat(this.group.id,"/members/interaction-limits"),{profile_id:this.profile.id,can_post:this.limits.can_post,can_comment:this.limits.can_comment,can_like:this.limits.can_like}).then((function(e){t.savingChanges=!1,t.$refs.home.hide(),t.$bvToast.toast("Updated interaction limits for ".concat(t.profile.username),{title:"Success",variant:"success",autoHideDelay:5e3})})).catch((function(e){t.savingChanges=!1,t.$refs.home.hide(),422==e.response.status&&"limit_reached"==e.response.data.error?swal("Limit Reached","You cannot add any more member limitations","info"):swal("Oops!","An error occured while processing this request, please try again later.","error")}))}}}},30:(t,e,a)=>{a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-feed-component"},[t.initalLoad?[e("div",{staticClass:"row border-bottom m-0 p-0"},[e("sidebar"),t._v(" "),e("div",{staticClass:"col-12 col-md-9 px-md-0"},[e("div",{staticClass:"bg-white mb-3 border-bottom"},[e("div",{},[e("group-banner",{attrs:{group:t.group}}),t._v(" "),e("div",{staticClass:"col-12 group-feed-component-header px-3 px-md-5"},[e("div",{staticClass:"media align-items-end"},[t.group.metadata&&t.group.metadata.hasOwnProperty("avatar")?e("img",{staticClass:"bg-white mx-4 rounded-circle border shadow p-1",staticStyle:{"object-fit":"cover"},style:{"margin-top":t.group.metadata&&t.group.metadata.hasOwnProperty("header")&&t.group.metadata.header.url?"-100px":"0"},attrs:{src:t.group.metadata.avatar.url,width:"169",height:"169"}}):t._e(),t._v(" "),e("div",{staticClass:"media-body"},[e("h3",{staticClass:"d-flex align-items-start"},[e("span",[t._v(t._s(t.group.name.slice(0,118)))]),t._v(" "),t.group.verified?e("sup",{staticClass:"fa-stack ml-n2",attrs:{title:"Verified Group","data-toggle":"tooltip"}},[e("i",{staticClass:"fas fa-circle fa-stack-1x fa-lg",staticStyle:{color:"#22a7f0cc","font-size":"18px"}}),t._v(" "),e("i",{staticClass:"fas fa-check fa-stack-1x text-white",staticStyle:{"font-size":"10px"}})]):t._e()]),t._v(" "),e("p",{staticClass:"text-muted mb-0",staticStyle:{"font-weight":"300"}},[e("span",[e("i",{staticClass:"fas fa-globe mr-1"}),t._v("\n "+t._s("all"==t.group.membership?"Public Group":"Private Group")+"\n ")]),t._v(" "),e("span",{staticClass:"mx-2"},[t._v("\n ·\n ")]),t._v(" "),e("span",[t._v(t._s(1==t.group.member_count?t.group.member_count+" Member":t.group.member_count+" Members"))]),t._v(" "),e("span",{staticClass:"mx-2"},[t._v("\n ·\n ")]),t._v(" "),t.group.local?e("span",{staticClass:"rounded member-label"},[t._v("Local")]):e("span",{staticClass:"rounded remote-label"},[t._v("Remote")]),t._v(" "),t.group.self&&t.group.self.hasOwnProperty("role")&&t.group.self.role?e("span",[e("span",{staticClass:"mx-2"},[t._v("\n ·\n ")]),t._v(" "),e("span",{staticClass:"rounded member-label"},[t._v(t._s(t.group.self.role))])]):t._e()])])]),t._v(" "),e("div",[t.isMember||t.group.self.is_requested?!t.isMember&&t.group.self.is_requested?e("button",{staticClass:"btn btn-light border cta-btn font-weight-bold",on:{click:function(e){return e.preventDefault(),t.cancelJoinRequest.apply(null,arguments)}}},[e("i",{staticClass:"fas fa-user-clock mr-1"}),t._v(" Requested to Join\n ")]):t.isAdmin||!t.isMember||t.group.self.is_requested?t._e():e("button",{staticClass:"btn btn-light border cta-btn font-weight-bold",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.leaveGroup.apply(null,arguments)}}},[e("i",{staticClass:"fas sign-out-alt mr-1"}),t._v(" Leave Group\n ")]):e("button",{staticClass:"btn btn-primary cta-btn font-weight-bold",attrs:{disabled:t.requestingMembership},on:{click:t.joinGroup}},[t.requestingMembership?e("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[t._v("Loading...")])]):e("span",[t._v("\n "+t._s("all"==t.group.membership?"Join":"Request Membership")+"\n ")])])])]),t._v(" "),e("div",{staticClass:"col-12 border-top group-feed-component-menu px-5"},[e("ul",{staticClass:"nav font-weight-bold group-feed-component-menu-nav"},[e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",class:{active:"about"==t.tab},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchTab("about")}}},[t._v("About")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",class:{active:"feed"==t.tab},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchTab("feed")}}},[t._v("Feed")])]),t._v(" "),t.group.self.is_member?e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",class:{active:"topics"==t.tab},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchTab("topics")}}},[t._v("Topics")])]):t._e(),t._v(" "),t.group.self.is_member?e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",class:{active:"members"==t.tab},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchTab("members")}}},[t._v("\n Members\n "),t.group.self.is_member&&t.isAdmin&&t.atabs.request_count?e("span",{staticClass:"badge badge-danger rounded-pill ml-2",staticStyle:{height:"20px",padding:"4px 8px","font-size":"11px"}},[t._v(t._s(t.atabs.request_count))]):t._e()])]):t._e(),t._v(" "),t.group.self.is_member?e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",class:{active:"media"==t.tab},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchTab("media")}}},[t._v("Media")])]):t._e(),t._v(" "),t.group.self.is_member&&t.isAdmin?e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link d-flex align-items-top",class:{active:"moderation"==t.tab},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchTab("moderation")}}},[e("span",{staticClass:"mr-2"},[t._v("Moderation")]),t._v(" "),t.atabs.moderation_count?e("span",{staticClass:"badge badge-danger rounded-pill",staticStyle:{height:"20px",padding:"4px 8px","font-size":"11px"}},[t._v(t._s(t.atabs.moderation_count))]):t._e()])]):t._e()]),t._v(" "),e("div",[t.group.self.is_member?e("button",{staticClass:"btn btn-light btn-sm border px-3 rounded-pill mr-2",on:{click:t.showSearchModal}},[e("i",{staticClass:"far fa-search"})]):t._e(),t._v(" "),e("div",{staticClass:"dropdown d-inline"},[t._m(0),t._v(" "),e("div",{staticClass:"dropdown-menu dropdown-menu-right"},[e("a",{staticClass:"dropdown-item",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.copyLink.apply(null,arguments)}}},[t._v("\n Copy Group Link\n ")]),t._v(" "),e("a",{staticClass:"dropdown-item",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showInviteModal.apply(null,arguments)}}},[t._v("\n Invite friends\n ")]),t._v(" "),t.isAdmin?t._e():e("a",{staticClass:"dropdown-item",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.reportGroup.apply(null,arguments)}}},[t._v("\n Report Group\n ")]),t._v(" "),t.isAdmin?e("a",{staticClass:"dropdown-item",attrs:{href:t.group.url+"/settings"}},[t._v("\n Settings\n ")]):t._e()])])])])],1)]),t._v(" "),e("div",{staticClass:"container-xl group-feed-component-body"},[e("keep-alive",["feed"==t.tab?e("div",{staticClass:"row mb-5"},[t.permalinkMode?e("div",{staticClass:"col-12 col-md-7 mt-3"},[e("group-status",{attrs:{prestatus:t.status,profile:t.profile,"group-id":t.groupId,"permalink-mode":!0}})],1):e("div",{staticClass:"col-12 col-md-7 mt-3"},[t.group.self.is_member?e("div",[t.initalLoad?e("group-compose",{attrs:{profile:t.profile,"group-id":t.groupId},on:{"new-status":t.pushNewStatus}}):t._e(),t._v(" "),0==t.feed.length?e("div",{staticClass:"mt-3"},[e("div",{staticClass:"card card-body shadow-none border d-flex align-items-center justify-content-center",staticStyle:{height:"200px"}},[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("No posts yet!")])])]):e("div",{staticClass:"group-timeline"},[e("p",{staticClass:"font-weight-bold mb-1"},[t._v("Recent Posts")]),t._v(" "),t._l(t.feed,(function(a,s){return e("group-status",{key:"gs:"+a.id+s,attrs:{prestatus:a,profile:t.profile,"group-id":t.groupId},on:{"comment-focus":function(e){return t.commentFocus(s)},"status-delete":function(e){return t.statusDelete(s)},"likes-modal":function(e){return t.showLikesModal(s)}}})})),t._v(" "),e("b-modal",{ref:"likeBox",attrs:{size:"sm",centered:"","hide-footer":"",title:"Likes","body-class":"list-group-flush p-0"}},[e("div",{staticClass:"list-group py-1",staticStyle:{"max-height":"300px","overflow-y":"auto"}},[t._l(t.likes,(function(a,s){return e("div",{key:"modal_likes_"+s,staticClass:"list-group-item border-top-0 border-left-0 border-right-0 py-2",class:{"border-bottom-0":s+1==t.likes.length}},[e("div",{staticClass:"media align-items-center"},[e("a",{attrs:{href:a.url}},[e("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:a.avatar,alt:a.username+"s avatar",width:"30px",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg';"}})]),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[e("a",{staticClass:"font-weight-bold text-dark",attrs:{href:a.url}},[t._v("\n "+t._s(a.username)+"\n ")])]),t._v(" "),a.local?e("p",{staticClass:"text-muted mb-0 text-truncate",staticStyle:{"font-size":"14px"}},[t._v("\n "+t._s(a.display_name)+"\n ")]):e("p",{staticClass:"text-muted mb-0 text-truncate mr-3",staticStyle:{"font-size":"14px"},attrs:{title:a.acct,"data-toggle":"dropdown","data-placement":"bottom"}},[e("span",{staticClass:"font-weight-bold"},[t._v(t._s(a.acct.split("@")[0]))]),e("span",{staticClass:"text-lighter"},[t._v("@"+t._s(a.acct.split("@")[1]))])])])])])})),t._v(" "),e("infinite-loading",{attrs:{distance:800,spinner:"spiral"},on:{infinite:t.infiniteLikesHandler}},[e("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),e("div",{attrs:{slot:"no-results"},slot:"no-results"})])],2)]),t._v(" "),t.feed.length>2?e("div",{attrs:{distance:800}},[e("infinite-loading",{on:{infinite:t.infiniteFeed}},[e("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),e("div",{attrs:{slot:"no-results"},slot:"no-results"})])],1):t._e()],2)],1):e("div",[e("div",{staticClass:"card card-body mt-3 shadow-none border d-flex align-items-center justify-content-center",staticStyle:{height:"100px"}},[e("p",{staticClass:"lead mb-0"},[t._v("Join to participate in this group.")])])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-5"},[e("group-info-card",{attrs:{group:t.group}})],1)]):"about"==t.tab?e("group-about",{attrs:{group:t.group}}):"media"==t.tab?e("group-media",{attrs:{group:t.group}}):"members"==t.tab?e("group-members",{attrs:{group:t.group,"request-count":t.atabs.request_count,"is-admin":t.isAdmin,profile:t.profile},on:{decrementrc:t.decrementJoinRequestCount,incrementMemberCount:t.incrementMemberCount}}):"topics"==t.tab?e("group-topics",{attrs:{group:t.group}}):"insights"==t.tab?e("group-insights",{attrs:{group:t.group}}):"moderation"==t.tab?e("group-moderation",{attrs:{group:t.group},on:{decrement:t.decrementModCounter}}):e("div",[e("p",{staticClass:"lead text-center font-weight-bold mt-5 text-muted"},[t._v("No content found")])])],1),t._v(" "),e("search-modal",{ref:"searchModal",attrs:{group:t.group,profile:t.profile}}),t._v(" "),e("invite-modal",{ref:"inviteModal",attrs:{group:t.group,profile:t.profile}})],1)])],1)]:e("div",[e("p",{staticClass:"text-center mt-5 pt-5 font-weight-bold"},[t._v("Loading...")])])],2)},i=[function(){var t=this._self._c;return t("button",{staticClass:"btn btn-light btn-sm border px-3 rounded-pill dropdown-toggle",attrs:{"data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t("i",{staticClass:"far fa-cog"})])}]},91722:(t,e,a)=>{a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-about-component"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-12 col-md-7"},[e("div",{staticClass:"card shadow-none border mt-3 rounded-lg"},[t._m(0),t._v(" "),e("div",{staticClass:"card-body"},[t.group.description&&t.group.description.length>1?e("p",{staticClass:"description",domProps:{innerHTML:t._s(t.group.description)}}):e("p",{staticClass:"description"},[t._v("This group does not have a description.")]),t._v(" "),e("p",{staticClass:"mb-0 font-weight-light text-lighter"},[t._v("Created: "+t._s(t.timestampFormat(t.group.created_at)))])])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-5"},[e("div",{staticClass:"card card-body mt-3 shadow-none border rounded-lg"},["all"==t.group.membership?e("div",{staticClass:"fact"},[t._m(1),t._v(" "),t._m(2)]):t._e(),t._v(" "),"private"==t.group.membership?e("div",{staticClass:"fact"},[t._m(3),t._v(" "),t._m(4)]):t._e(),t._v(" "),t._m(5),t._v(" "),t._m(6),t._v(" "),t._m(7)])])])])},i=[function(){var t=this._self._c;return t("div",{staticClass:"card-header bg-white"},[t("h5",{staticClass:"mb-0"},[this._v("About This Group")])])},function(){var t=this._self._c;return t("div",{staticClass:"fact-icon"},[t("i",{staticClass:"fal fa-globe fa-lg"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"fact-body"},[e("p",{staticClass:"fact-title"},[t._v("Public")]),t._v(" "),e("p",{staticClass:"fact-subtitle"},[t._v("Anyone can see who's in the group and what they post.")])])},function(){var t=this._self._c;return t("div",{staticClass:"fact-icon"},[t("i",{staticClass:"fal fa-lock fa-lg"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"fact-body"},[e("p",{staticClass:"fact-title"},[t._v("Private")]),t._v(" "),e("p",{staticClass:"fact-subtitle"},[t._v("Only members can see who's in the group and what they post.")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"fact"},[e("div",{staticClass:"fact-icon"},[e("i",{staticClass:"fal fa-eye fa-lg"})]),t._v(" "),e("div",{staticClass:"fact-body"},[e("p",{staticClass:"fact-title"},[t._v("Visible")]),t._v(" "),e("p",{staticClass:"fact-subtitle"},[t._v("Anyone can find this group.")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"fact"},[e("div",{staticClass:"fact-icon"},[e("i",{staticClass:"fal fa-map-marker-alt fa-lg"})]),t._v(" "),e("div",{staticClass:"fact-body"},[e("p",{staticClass:"fact-title"},[t._v("Fediverse")]),t._v(" "),e("p",{staticClass:"fact-subtitle"},[t._v("This group has not specified a location.")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"fact mb-0"},[e("div",{staticClass:"fact-icon"},[e("i",{staticClass:"fal fa-users fa-lg"})]),t._v(" "),e("div",{staticClass:"fact-body"},[e("p",{staticClass:"fact-title"},[t._v("General")]),t._v(" "),e("p",{staticClass:"fact-subtitle"},[t._v("This group has not specified a category.")])])])}]},3843:(t,e,a)=>{a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){this._self._c;return this._m(0)},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-insights-component"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-12 col-md-3 mb-3"},[e("div",{staticClass:"bg-light p-3 border rounded d-flex justify-content-between align-items-center"},[e("p",{staticClass:"h3 font-weight-bold mb-0"},[t._v("124K")]),t._v(" "),e("p",{staticClass:"font-weight-bold text-uppercase text-lighter mb-0"},[t._v("Posts")])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-3 mb-3"},[e("div",{staticClass:"bg-light p-3 border rounded d-flex justify-content-between align-items-center"},[e("p",{staticClass:"h3 font-weight-bold mb-0"},[t._v("9K")]),t._v(" "),e("p",{staticClass:"font-weight-bold text-uppercase text-lighter mb-0"},[t._v("Users")])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-3 mb-3"},[e("div",{staticClass:"bg-light p-3 border rounded d-flex justify-content-between align-items-center"},[e("p",{staticClass:"h3 font-weight-bold mb-0"},[t._v("1.7M")]),t._v(" "),e("p",{staticClass:"font-weight-bold text-uppercase text-lighter mb-0"},[t._v("Interactions")])])])]),t._v(" "),e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-12 col-md-3 mb-3"},[e("div",{staticClass:"bg-light p-3 border rounded d-flex justify-content-between align-items-center"},[e("p",{staticClass:"h3 font-weight-bold mb-0"},[t._v("50")]),t._v(" "),e("p",{staticClass:"font-weight-bold text-uppercase text-lighter mb-0"},[t._v("Mod Reports")])])])])])}]},78059:(t,e,a)=>{a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-media-component"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"card card-body border shadow-sm"},[t._m(0),t._v(" "),t.isLoaded?e("div",[e("div",{staticClass:"mb-5"},[e("button",{staticClass:"btn btn-light mr-2",class:["photo"==t.tab?"text-primary font-weight-bold":"text-lighter"],on:{click:function(e){return t.switchTab("photo")}}},[t._v("\n\t\t\t\t\t\t\tPhotos\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-light mr-2",class:["video"==t.tab?"text-primary font-weight-bold":"text-lighter"],on:{click:function(e){return t.switchTab("video")}}},[t._v("\n\t\t\t\t\t\t\tVideos\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-light mr-2",class:["album"==t.tab?"text-primary font-weight-bold":"text-lighter"],on:{click:function(e){return t.switchTab("album")}}},[t._v("\n\t\t\t\t\t\t\tAlbums\n\t\t\t\t\t\t")])]),t._v(" "),"photo"==t.tab?e("div",{staticClass:"row px-3"},[t._l(t.photos,(function(a,s){return e("div",{staticClass:"m-1"},[e("a",{staticClass:"bh-content",attrs:{href:a.url}},[e("img",{staticStyle:{"object-fit":"cover"},attrs:{src:t.getMediaSource(a),width:"205",height:"205"}})])])})),t._v(" "),0==t.photos.length?e("div",{staticClass:"col-12 py-5 text-center"},[e("p",{staticClass:"lead font-weight-bold mb-0"},[t._v("No photos found")])]):t._e()],2):t._e(),t._v(" "),"video"==t.tab?e("div",{staticClass:"row px-3"},[t._l(t.videos,(function(a,s){return e("div",{staticClass:"m-1"},[e("a",{staticClass:"bh-content text-decoration-none",attrs:{href:a.url}},[a.media_attachments[0].preview_url.endsWith("no-preview.png")?e("div",{staticClass:"bg-light text-dark d-flex align-items-center justify-content-center border",staticStyle:{width:"205px",height:"205px"}},[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("No preview available")])]):e("img",{staticStyle:{"object-fit":"cover"},attrs:{src:t.getMediaSource(a),width:"205",height:"205"}})])])})),t._v(" "),0==t.videos.length?e("div",{staticClass:"col-12 py-5 text-center"},[e("p",{staticClass:"lead font-weight-bold mb-0"},[t._v("No videos found")])]):t._e()],2):t._e(),t._v(" "),"album"==t.tab?e("div",{staticClass:"row px-3"},[t._l(t.albums,(function(a,s){return e("div",{staticClass:"m-1"},[e("a",{staticClass:"bh-content",attrs:{href:a.url}},[e("img",{staticStyle:{"object-fit":"cover"},attrs:{src:t.getMediaSource(a),width:"205",height:"205"}})])])})),t._v(" "),0==t.albums.length?e("div",{staticClass:"col-12 py-5 text-center"},[e("p",{staticClass:"lead font-weight-bold mb-0"},[t._v("No albums found")])]):t._e()],2):t._e(),t._v(" "),t.hasNextPage[t.tab]?e("div",{staticClass:"mt-3"},[e("button",{staticClass:"btn btn-light font-weight-bold btn-block border",on:{click:t.loadNextPage}},[t._v("Load more")])]):t._e()]):e("div",{staticClass:"d-flex align-items-center justify-content-center",staticStyle:{height:"500px"}},[t._m(1)])])])])])},i=[function(){var t=this._self._c;return t("div",{staticClass:"d-flex justify-content-between align-items-center mb-3"},[t("p",{staticClass:"h4 font-weight-bold mb-0"},[this._v("Media")])])},function(){var t=this._self._c;return t("div",{staticClass:"spinner-border text-primary",attrs:{role:"status"}},[t("span",{staticClass:"sr-only"},[this._v("Loading...")])])}]},49012:(t,e,a)=>{a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t,e=this,a=e._self._c;return a("div",{staticClass:"group-members-component"},[a("div",{staticClass:"row justify-content-center"},[a("div",{staticClass:"col-12 col-md-8 mb-5"},[e.isAdmin&&e.requestCount&&!e.hideHeader?a("div",{staticClass:"card card-body border shadow-sm bg-dark text-light mb-4 rounded-pill p-2 pl-3"},[a("div",{staticClass:"d-flex align-items-center justify-content-between"},[a("span",{staticClass:"lead mb-0 text-lighter"},[a("i",{staticClass:"fal fa-exclamation-triangle mr-2 text-warning"}),e._v("\n\t\t\t\t\t\t\tYou have "),a("strong",{staticClass:"text-white"},[e._v(e._s(e.requestCount))]),e._v(" member applications to review\n\t\t\t\t\t\t")]),e._v(" "),a("span",[a("button",{staticClass:"btn btn-primary font-weight-bold rounded-pill btn-sm px-3",on:{click:function(t){return e.reviewApplicants()}}},[e._v("Review")])])])]):e._e(),e._v(" "),a("div",{staticClass:"card card-body border shadow-sm"},[e.hideHeader?e._e():a("div",[a("p",{staticClass:"d-flex align-items-center mb-0"},[a("span",{staticClass:"lead font-weight-bold"},[e._v("Members")]),e._v(" "),a("span",{staticClass:"mx-2"},[e._v("·")]),e._v(" "),a("span",{staticClass:"text-muted"},[e._v(e._s(e.group.member_count))])]),e._v(" "),a("div",{staticClass:"form-group mt-3",staticStyle:{position:"relative"}},[a("i",{staticClass:"fas fa-search fa-lg text-lighter",staticStyle:{position:"absolute",left:"20px",top:"50%",transform:"translateY(-50%)"}}),e._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.memberSearchModel,expression:"memberSearchModel"}],staticClass:"form-control form-control-lg bg-light border rounded-pill",staticStyle:{"padding-left":"50px","padding-right":"50px"},attrs:{placeholder:"Find a member"},domProps:{value:e.memberSearchModel},on:{input:function(t){t.target.composing||(e.memberSearchModel=t.target.value)}}}),e._v(" "),a("button",{staticClass:"btn btn-primary font-weight-bold rounded-pill px-3",staticStyle:{position:"absolute",right:"6px",top:"50%",transform:"translateY(-50%)"}},[e._v("Search")])]),e._v(" "),a("hr")]),e._v(" "),"list"==e.tab?a("div",[a("div",{staticClass:"group-members-component-paginated-list py-3"},[a("div",{staticClass:"media align-items-center"},[a("a",{staticClass:"text-dark text-decoration-none",attrs:{href:e.profile.url}},[a("img",{staticClass:"rounded-circle border mr-2",attrs:{src:null===(t=e.profile)||void 0===t?void 0:t.avatar,width:"56",height:"56",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}})]),e._v(" "),a("div",{staticClass:"media-body"},[a("p",{staticClass:"lead font-weight-bold mb-0"},[e._v("\n\t\t\t\t\t\t\t\t\t\t"+e._s(e.profile.username)+"\n\t\t\t\t\t\t\t\t\t\t"),a("span",{staticClass:"member-label rounded ml-1"},[e._v("Me")])]),e._v(" "),a("p",{staticClass:"text-muted mb-0"},[e._v("Founded group "+e._s(e.formatDate(e.group.created_at)))])])])]),e._v(" "),e.mutual.length>0?a("hr"):e._e(),e._v(" "),e.mutual.length>0?a("div",{staticClass:"group-members-component-paginated-list"},[a("p",{staticClass:"font-weight-bold mb-1"},[e._v("Mutual Friends")]),e._v(" "),e._l(e.mutual,(function(t,s){return a("div",{staticClass:"media align-items-center py-3"},[a("a",{staticClass:"text-dark text-decoration-none",attrs:{href:t.url}},[a("img",{staticClass:"rounded-circle border mr-2",attrs:{src:null==t?void 0:t.avatar,width:"56",height:"56",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}})]),e._v(" "),a("div",{staticClass:"media-body"},[a("p",{staticClass:"lead font-weight-bold mb-0"},[a("a",{staticClass:"text-dark text-decoration-none",attrs:{href:t.url,title:t.acct,"data-toggle":"tooltip"}},[e._v(e._s(t.username))]),e._v(" "),"founder"==t.role?a("span",{staticClass:"member-label rounded ml-1"},[e._v("Admin")]):e._e(),e._v(" "),t.local?e._e():a("span",{staticClass:"remote-label rounded ml-1"},[e._v("Remote")])]),e._v(" "),a("p",{staticClass:"text-muted mb-0"},[e._v("Member since "+e._s(e.formatDate(t.joined)))])]),e._v(" "),a("a",{staticClass:"btn btn-light lead font-weight-bolder px-3 border",attrs:{href:"/account/direct/t/"+t.id}},[a("i",{staticClass:"far fa-comment-dots mr-1"}),e._v(" Message\n\t\t\t\t\t\t\t\t")]),e._v(" "),e.isAdmin?a("b-dropdown",{attrs:{"toggle-class":"btn btn-light font-weight-bold px-3 border ml-2","toggle-tag":"a",lazy:!0,right:"","no-caret":""},scopedSlots:e._u([{key:"button-content",fn:function(){return[a("i",{staticClass:"fas fa-ellipsis-h"})]},proxy:!0}],null,!0)},[e._v(" "),a("b-dropdown-item",{attrs:{href:t.url}},[e._v("View Profile")]),e._v(" "),a("b-dropdown-item",{attrs:{href:"/account/direct/t/"+t.id}},[e._v("Send Message")]),e._v(" "),a("b-dropdown-item",[e._v("View Activity")]),e._v(" "),a("b-dropdown-divider"),e._v(" "),a("b-dropdown-item",{attrs:{"link-class":"font-weight-bold"},on:{click:function(a){return a.preventDefault(),e.openInteractionLimitModal(t)}}},[e._v("Limit interactions")]),e._v(" "),a("b-dropdown-item",{attrs:{"link-class":"font-weight-bold text-danger"}},[e._v("Remove from group")])],1):e._e()],1)}))],2):e._e(),e._v(" "),e.members.length>0?a("hr"):e._e(),e._v(" "),e.members.length>0?a("div",{staticClass:"group-members-component-paginated-list"},[a("p",{staticClass:"font-weight-bold mb-1"},[e._v("Other Members")]),e._v(" "),e._l(e.members,(function(t,s){return a("div",{staticClass:"media align-items-center py-3"},[a("a",{staticClass:"text-dark text-decoration-none",attrs:{href:t.url}},[a("img",{staticClass:"rounded-circle border mr-2",attrs:{src:null==t?void 0:t.avatar,width:"56",height:"56",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}})]),e._v(" "),a("div",{staticClass:"media-body"},[a("p",{staticClass:"lead font-weight-bold mb-0"},[a("a",{staticClass:"text-dark text-decoration-none",attrs:{href:t.url,title:t.acct,"data-toggle":"tooltip"}},[e._v(e._s(t.username))]),e._v(" "),t.is_admin?a("span",{staticClass:"member-label rounded ml-1"},[e._v("Admin")]):e._e(),e._v(" "),t.local?e._e():a("span",{staticClass:"remote-label rounded ml-1"},[e._v("Remote")])]),e._v(" "),a("p",{staticClass:"text-muted mb-0"},[e._v("Member since "+e._s(e.formatDate(t.joined)))])]),e._v(" "),a("button",{staticClass:"btn lead font-weight-bolder px-4 border",class:[t.following?"btn-primary":"btn-light"],on:{click:function(t){return e.follow(s)}}},[t.following?a("span",[e._v("\n\t\t\t\t\t\t\t\t\t\tFollowing\n\t\t\t\t\t\t\t\t\t")]):a("span",[a("i",{staticClass:"fas fa-user-plus mr-2"}),e._v(" Follow\n\t\t\t\t\t\t\t\t\t")])]),e._v(" "),e.isAdmin?a("b-dropdown",{attrs:{"toggle-class":"btn btn-light font-weight-bold px-3 border ml-2","toggle-tag":"a",lazy:!0,right:"","no-caret":""},scopedSlots:e._u([{key:"button-content",fn:function(){return[a("i",{staticClass:"fas fa-ellipsis-h"})]},proxy:!0}],null,!0)},[e._v(" "),a("b-dropdown-item",{attrs:{href:t.url,"link-class":"font-weight-bold"}},[e._v("View Profile")]),e._v(" "),a("b-dropdown-item",{attrs:{href:"/account/direct/t/"+t.id,"link-class":"font-weight-bold"}},[e._v("Send Message")]),e._v(" "),a("b-dropdown-item",{attrs:{"link-class":"font-weight-bold"}},[e._v("View Activity")]),e._v(" "),a("b-dropdown-divider"),e._v(" "),a("b-dropdown-item",{attrs:{"link-class":"font-weight-bold"},on:{click:function(a){return a.preventDefault(),e.openInteractionLimitModal(t)}}},[e._v("Limit interactions")]),e._v(" "),a("b-dropdown-item",{attrs:{"link-class":"font-weight-bold text-danger"}},[e._v("Remove from group")])],1):e._e()],1)}))],2):e._e(),e._v(" "),e.members.length>0&&e.hasNextPage?a("p",{staticClass:"mt-4"},[a("button",{staticClass:"btn btn-light btn-block border font-weight-bold",on:{click:e.loadNextPage}},[e._v("Load more")])]):e._e()]):e._e(),e._v(" "),"search"==e.tab?a("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{"min-height":"100px"}},[e._m(0)]):e._e(),e._v(" "),"results"==e.tab?a("div",[e.results.length>0?a("div",{staticClass:"group-members-component-paginated-list"},[a("p",{staticClass:"font-weight-bold mb-1"},[e._v("Results")]),e._v(" "),e._l(e.results,(function(t,s){return a("div",{staticClass:"media align-items-center py-3"},[a("a",{staticClass:"text-dark text-decoration-none",attrs:{href:t.url}},[a("img",{staticClass:"rounded-circle border mr-2",attrs:{src:null==t?void 0:t.avatar,width:"56",height:"56",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}})]),e._v(" "),a("div",{staticClass:"media-body"},[a("p",{staticClass:"lead font-weight-bold mb-0"},[a("a",{staticClass:"text-dark text-decoration-none",attrs:{href:t.url,title:t.acct,"data-toggle":"tooltip"}},[e._v(e._s(t.username))]),e._v(" "),"founder"==t.role?a("span",{staticClass:"member-label rounded ml-1"},[e._v("Admin")]):e._e(),e._v(" "),t.local?e._e():a("span",{staticClass:"remote-label rounded ml-1"},[e._v("Remote")])]),e._v(" "),a("p",{staticClass:"text-muted mb-0"},[e._v("Member since "+e._s(e.formatDate(t.joined)))])]),e._v(" "),a("a",{staticClass:"btn btn-light lead font-weight-bolder px-3 border",attrs:{href:"/account/direct/t/"+t.id}},[a("i",{staticClass:"far fa-comment-dots mr-1"}),e._v(" Message\n\t\t\t\t\t\t\t\t")]),e._v(" "),e.isAdmin?a("b-dropdown",{attrs:{"toggle-class":"btn btn-light font-weight-bold px-3 border ml-2","toggle-tag":"a",lazy:!0,right:"","no-caret":""},scopedSlots:e._u([{key:"button-content",fn:function(){return[a("i",{staticClass:"fas fa-ellipsis-h"})]},proxy:!0}],null,!0)},[e._v(" "),a("b-dropdown-item",{attrs:{href:t.url}},[e._v("View Profile")]),e._v(" "),a("b-dropdown-item",{attrs:{href:"/account/direct/t/"+t.id}},[e._v("Send Message")]),e._v(" "),a("b-dropdown-item",[e._v("View Activity")]),e._v(" "),a("b-dropdown-divider"),e._v(" "),a("b-dropdown-item",{attrs:{"link-class":"font-weight-bold"},on:{click:function(a){return a.preventDefault(),e.openInteractionLimitModal(t)}}},[e._v("Limit interactions")]),e._v(" "),a("b-dropdown-item",{attrs:{"link-class":"font-weight-bold text-danger"}},[e._v("Remove from group")])],1):e._e()],1)})),e._v(" "),a("p",{staticClass:"text-center mt-5"},[a("a",{staticClass:"font-weight-bold",attrs:{href:"#"},on:{click:e.backFromSearch}},[e._v("Go back")])])],2):a("div",{staticClass:"text-center text-muted mt-3"},[a("p",{staticClass:"lead"},[e._v("No results found.")]),e._v(" "),a("p",[a("a",{staticClass:"font-weight-bold",attrs:{href:"#"},on:{click:e.backFromSearch}},[e._v("Go back")])])])]):e._e(),e._v(" "),"memberInteractionLimits"==e.tab?a("div",[e.results.length>0?a("div",{staticClass:"group-members-component-paginated-list"},[a("p",{staticClass:"font-weight-bold mb-1"},[e._v("Interaction Limits")]),e._v(" "),e._l(e.results,(function(t,s){return a("div",{staticClass:"media align-items-center py-3"},[a("a",{staticClass:"text-dark text-decoration-none",attrs:{href:t.url}},[a("img",{staticClass:"rounded-circle border mr-2",attrs:{src:null==t?void 0:t.avatar,width:"56",height:"56",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}})]),e._v(" "),a("div",{staticClass:"media-body"},[a("p",{staticClass:"lead font-weight-bold mb-0"},[a("a",{staticClass:"text-dark text-decoration-none",attrs:{href:t.url}},[e._v(e._s(t.username))]),e._v(" "),"founder"==t.role?a("span",{staticClass:"member-label rounded ml-1"},[e._v("Admin")]):e._e()]),e._v(" "),a("p",{staticClass:"text-muted mb-0"},[e._v("Member since "+e._s(e.formatDate(t.joined)))])]),e._v(" "),a("a",{staticClass:"btn btn-light lead font-weight-bolder px-3 border",attrs:{href:"/account/direct/t/"+t.id}},[a("i",{staticClass:"far fa-comment-dots mr-1"}),e._v(" Message\n\t\t\t\t\t\t\t\t")]),e._v(" "),e.isAdmin?a("b-dropdown",{attrs:{"toggle-class":"btn btn-light font-weight-bold px-3 border ml-2","toggle-tag":"a",lazy:!0,right:"","no-caret":""},scopedSlots:e._u([{key:"button-content",fn:function(){return[a("i",{staticClass:"fas fa-ellipsis-h"})]},proxy:!0}],null,!0)},[e._v(" "),a("b-dropdown-item",{attrs:{href:t.url}},[e._v("View Profile")]),e._v(" "),a("b-dropdown-item",{attrs:{href:"/account/direct/t/"+t.id}},[e._v("Send Message")]),e._v(" "),a("b-dropdown-item",[e._v("View Activity")]),e._v(" "),a("b-dropdown-divider"),e._v(" "),a("b-dropdown-item",{attrs:{"link-class":"font-weight-bold"},on:{click:function(a){return a.preventDefault(),e.openInteractionLimitModal(t)}}},[e._v("Limit interactions")]),e._v(" "),a("b-dropdown-item",{attrs:{"link-class":"font-weight-bold text-danger"}},[e._v("Remove from group")])],1):e._e()],1)})),e._v(" "),a("p",{staticClass:"text-center mt-5"},[a("a",{staticClass:"font-weight-bold",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.backFromSearch.apply(null,arguments)}}},[e._v("Go back")])])],2):a("div",{staticClass:"text-center text-muted mt-3"},[a("p",{staticClass:"lead"},[e._v("No results found.")]),e._v(" "),a("p",[a("a",{staticClass:"font-weight-bold",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.backFromSearch.apply(null,arguments)}}},[e._v("Go back")])])])]):e._e(),e._v(" "),"review"==e.tab?a("div",[e.reviewsLoaded?a("div",[a("div",{staticClass:"group-members-component-paginated-list"},[a("div",{staticClass:"d-flex justify-content-between align-items-center"},[a("div",{staticClass:"d-flex"},[a("button",{staticClass:"btn btn-link btn-sm mr-2",on:{click:e.backFromReview}},[a("i",{staticClass:"far fa-chevron-left fa-lg"})]),e._v(" "),a("p",{staticClass:"font-weight-bold mb-0"},[e._v("Review Membership Applicants")])])]),e._v(" "),a("hr"),e._v(" "),e._l(e.applicants,(function(t,s){return a("div",{staticClass:"media align-items-center py-3"},[a("a",{staticClass:"text-dark text-decoration-none",attrs:{href:t.url}},[a("img",{staticClass:"rounded-circle border mr-2",attrs:{src:null==t?void 0:t.avatar,width:"56",height:"56",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}})]),e._v(" "),a("div",{staticClass:"media-body"},[a("p",{staticClass:"lead font-weight-bold mb-0"},[a("a",{staticClass:"text-dark text-decoration-none",attrs:{href:t.url,title:t.acct,"data-toggle":"tooltip"}},[e._v(e._s(t.username))]),e._v(" "),t.local?e._e():a("span",{staticClass:"remote-label rounded ml-1"},[e._v("Remote")])]),e._v(" "),a("p",{staticClass:"text-muted mb-0 small"},[a("span",[e._v("\n\t\t\t\t\t\t\t\t\t\t\t\t"+e._s(t.followers_count)+" Followers\n\t\t\t\t\t\t\t\t\t\t\t")]),e._v(" "),a("span",{staticClass:"mx-1"},[e._v("·")]),e._v(" "),a("span",[e._v("\n\t\t\t\t\t\t\t\t\t\t\t\tJoined "+e._s(e.formatDate(t.created_at))+"\n\t\t\t\t\t\t\t\t\t\t\t")])])]),e._v(" "),a("button",{staticClass:"btn btn-light lead font-weight-bolder px-3 border",attrs:{type:"button"},on:{click:function(t){return e.handleApplicant(s,"ignore")}}},[a("i",{staticClass:"far fa-times mr-1"}),e._v(" Ignore\n\t\t\t\t\t\t\t\t\t")]),e._v(" "),a("button",{staticClass:"btn btn-danger lead font-weight-bolder px-3 border",attrs:{type:"button"},on:{click:function(t){return e.handleApplicant(s,"reject")}}},[a("i",{staticClass:"far fa-times mr-1"}),e._v(" Reject\n\t\t\t\t\t\t\t\t\t")]),e._v(" "),a("button",{staticClass:"btn btn-primary lead font-weight-bolder px-3 border",attrs:{type:"button"},on:{click:function(t){return e.handleApplicant(s,"approve")}}},[a("i",{staticClass:"far fa-check mr-1"}),e._v(" Approve\n\t\t\t\t\t\t\t\t\t")])])})),e._v(" "),e.applicantsCanLoadMore?a("button",{staticClass:"btn btn-light font-weight-bold btn-block",attrs:{disabled:e.loadingMoreApplicants},on:{click:e.loadMoreApplicants}},[e._v("\n\t\t\t\t\t\t\t\t\tLoad More\n\t\t\t\t\t\t\t\t")]):e._e(),e._v(" "),e.applicants&&e.applicants.length?e._e():a("div",[a("p",{staticClass:"text-center lead mb-0"},[e._v("No content found")]),e._v(" "),a("p",{staticClass:"text-center mb-0"},[a("a",{staticClass:"font-weight-bold",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.backFromReview.apply(null,arguments)}}},[e._v("Go back")])])])],2)]):a("div",{staticClass:"d-flex align-items-center justify-content-center",staticStyle:{"min-height":"100px"}},[a("b-spinner",{attrs:{variant:"muted"}})],1)]):e._e(),e._v(" "),"loading"==e.tab?a("div",{staticClass:"d-flex align-items-center justify-content-center",staticStyle:{"min-height":"100px"}},[a("b-spinner",{attrs:{variant:"muted"}})],1):e._e()])])]),e._v(" "),a("group-interaction-limits-modal",{ref:"interactionModal",attrs:{group:e.group,profile:e.activeProfile}})],1)},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center text-muted"},[e("div",{staticClass:"spinner-border",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[t._v("Loading...")])]),t._v(" "),e("p",{staticClass:"lead mb-0 mt-2"},[t._v("Loading results ...")])])}]},45450:(t,e,a)=>{a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-moderation-component"},[t.initalLoad?e("div",["home"===t.tab?e("div",[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-12 col-md-6 pt-4"},[t._m(0),t._v(" "),t.reports.length?e("div",{staticClass:"list-group"},[t._l(t.reports,(function(a,s){return e("div",{staticClass:"list-group-item"},[e("div",{staticClass:"media align-items-center"},[e("img",{staticClass:"rounded-circle mr-3",attrs:{src:a.profile.avatar,width:"40",height:"40"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"mb-0"},[1==a.total_count?e("a",{staticClass:"font-weight-bold",attrs:{href:a.profile.url}},[t._v(t._s(a.profile.username))]):e("span",[e("a",{staticClass:"font-weight-bold",attrs:{href:a.profile.url}},[t._v(t._s(a.profile.username))]),t._v(" and "),e("a",{staticClass:"font-weight-bold",attrs:{href:"#"}},[t._v(t._s(a.total_count-1)+" others")])]),t._v("\n\t\t\t\t\t\t\t\t\t\treported\n\t\t\t\t\t\t\t\t\t\t"),e("a",{staticClass:"font-weight-bold",attrs:{href:"#",id:"report_post:".concat(s)}},[t._v("this post")]),t._v("\n\t\t\t\t\t\t\t\t\t\tas "+t._s(a.type)+"\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("p",{staticClass:"mb-0 small"},[e("span",{staticClass:"text-muted font-weight-bold"},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.timeago(a.created_at))+"\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("span",[t._v("·")]),t._v(" "),e("a",{staticClass:"text-danger font-weight-bold",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.actionMenu(s)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\tActions\n\t\t\t\t\t\t\t\t\t\t")])])]),t._v(" "),e("b-popover",{attrs:{target:"report_post:".concat(s),triggers:"hover",placement:"bottom","custom-class":"popover-wide"},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"d-flex justify-content-between"},[e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t@"+t._s(a.status.account.username)+"\n\t\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.timeago(a.status.created_at))+"\n\t\t\t\t\t\t\t\t\t\t\t")])])]},proxy:!0}],null,!0)},[t._v(" "),"group:post"==a.status.pf_type?e("div",[a.status.media_attachments.length?e("div",[e("img",{staticStyle:{"object-fit":"cover"},attrs:{src:a.status.media_attachments[0].url,width:"100%",height:"300"}})]):e("div",[e("p",{domProps:{innerHTML:t._s(a.status.content)}})])]):"reply-text"==a.status.pf_type?e("div",[e("p",{domProps:{innerHTML:t._s(a.status.content)}})]):e("div",[e("p",[t._v("Cannot generate preview.")])]),t._v(" "),e("p",{staticClass:"mb-1 mt-3"},[e("a",{staticClass:"btn btn-primary btn-block font-weight-bold",attrs:{href:a.status.url}},[t._v("View Post")])])])],1)])})),t._v(" "),t.canLoadMore?e("div",{staticClass:"list-group-item"},[e("button",{staticClass:"btn btn-light font-weight-bold btn-block",on:{click:function(e){return e.preventDefault(),t.loadMoreReports()}}},[t._v("Load more")])]):t._e()],2):e("div",{staticClass:"card card-body shadow-none border rounded-pill"},[e("p",{staticClass:"lead font-weight-bold text-center mb-0"},[t._v("No moderation reports found!")])])])])]):t._e()]):e("div",{staticClass:"col-12 col-md-6 pt-4 d-flex align-items-center justify-content-center"},[t._m(1)])])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex justify-content-between align-items-center mb-3"},[e("p",{staticClass:"lead mb-0"},[t._v("Latest Mod Reports")]),t._v(" "),e("button",{staticClass:"btn btn-light border font-weight-bold btn-sm rounded shadow-sm"},[e("i",{staticClass:"far fa-redo"})])])},function(){var t=this._self._c;return t("div",{staticClass:"spinner-border",attrs:{role:"status"}},[t("span",{staticClass:"sr-only"},[this._v("Loading...")])])}]},30820:(t,e,a)=>{a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-topics-component"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-12 col-md-8"},[e("div",{staticClass:"card card-body border shadow-sm"},[t._m(0),t._v(" "),t.feed.length?e("div",t._l(t.feed,(function(a,s){return e("div",{},[e("div",{staticClass:"media py-2"},[e("i",{staticClass:"fas fa-hashtag fa-lg text-lighter mr-3 mt-2"}),t._v(" "),e("div",{staticClass:"media-body",class:{"border-bottom":s!=t.feed.length-1}},[e("a",{staticClass:"font-weight-bold mb-1 text-dark",staticStyle:{"font-size":"16px"},attrs:{href:a.url}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(a.name)+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),e("p",{staticClass:"text-muted",staticStyle:{"font-size":"13px"}},[t._v(t._s(a.count)+" posts in this group")])])])])})),0):e("div",{staticClass:"py-5"},[e("p",{staticClass:"lead text-center font-weight-bold"},[t._v("No topics found")])])])])])])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex justify-content-between align-items-center mb-3"},[e("p",{staticClass:"h4 font-weight-bold mb-0"},[t._v("Group Topics")]),t._v(" "),e("select",{staticClass:"form-control bg-light rounded-lg border font-weight-bold py-2",staticStyle:{width:"95px"},attrs:{disabled:""}},[e("option",[t._v("All")]),t._v(" "),e("option",[t._v("Pinned")])])])}]},25652:(t,e,a)=>{a.r(e),a.d(e,{render:()=>s,staticRenderFns:()=>i});var s=function(){var t=this,e=t._self._c;return e("div",[t.profile&&t.profile.hasOwnProperty("avatar")?e("b-modal",{ref:"home",attrs:{"hide-footer":"",centered:"",rounded:"",title:"Limit Interactions","body-class":"rounded"}},[e("div",{staticClass:"media mb-3"},[e("a",{staticClass:"text-dark text-decoration-none",attrs:{href:t.profile.url}},[e("img",{staticClass:"rounded-circle border mr-2",attrs:{src:t.profile.avatar,width:"56",height:"56"}})]),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"lead font-weight-bold mb-0"},[e("a",{staticClass:"text-dark text-decoration-none",attrs:{href:t.profile.url}},[t._v(t._s(t.profile.username))]),t._v(" "),"founder"==t.profile.role?e("span",{staticClass:"member-label rounded ml-1"},[t._v("Admin")]):t._e()]),t._v(" "),e("p",{staticClass:"text-muted mb-0"},[t._v("Member since "+t._s(t.formatDate(t.profile.joined)))])])]),t._v(" "),e("div",{staticClass:"w-100 bg-light mb-1 font-weight-bold d-flex justify-content-center align-items-center border rounded",staticStyle:{"min-height":"240px"}},[t.limitsLoaded?e("div",{staticClass:"py-3"},[e("p",{staticClass:"lead mb-0"},[t._v("Interaction Permissions")]),t._v(" "),e("p",{staticClass:"small text-muted"},[t._v("Last updated: "+t._s(t.updated?t.formatDate(t.updated):"Never"))]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.limits.can_post,expression:"limits.can_post"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:t.savingChanges},domProps:{checked:Array.isArray(t.limits.can_post)?t._i(t.limits.can_post,null)>-1:t.limits.can_post},on:{change:function(e){var a=t.limits.can_post,s=e.target,i=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&t.$set(t.limits,"can_post",a.concat([null])):n>-1&&t.$set(t.limits,"can_post",a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.limits,"can_post",i)}}}),t._v(" "),e("label",{staticClass:"form-check-label"},[t._v("\n\t\t\t\t\t\tCan create posts\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.limits.can_comment,expression:"limits.can_comment"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:t.savingChanges},domProps:{checked:Array.isArray(t.limits.can_comment)?t._i(t.limits.can_comment,null)>-1:t.limits.can_comment},on:{change:function(e){var a=t.limits.can_comment,s=e.target,i=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&t.$set(t.limits,"can_comment",a.concat([null])):n>-1&&t.$set(t.limits,"can_comment",a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.limits,"can_comment",i)}}}),t._v(" "),e("label",{staticClass:"form-check-label"},[t._v("\n\t\t\t\t\t\tCan create comments\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.limits.can_like,expression:"limits.can_like"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:t.savingChanges},domProps:{checked:Array.isArray(t.limits.can_like)?t._i(t.limits.can_like,null)>-1:t.limits.can_like},on:{change:function(e){var a=t.limits.can_like,s=e.target,i=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&t.$set(t.limits,"can_like",a.concat([null])):n>-1&&t.$set(t.limits,"can_like",a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.limits,"can_like",i)}}}),t._v(" "),e("label",{staticClass:"form-check-label"},[t._v("\n\t\t\t\t\t\tCan like posts and comments\n\t\t\t\t\t")])]),t._v(" "),e("hr"),t._v(" "),e("button",{staticClass:"btn btn-primary font-weight-bold float-right",staticStyle:{width:"130px"},attrs:{disabled:t.savingChanges},on:{click:function(e){return e.preventDefault(),t.saveChanges.apply(null,arguments)}}},[t.savingChanges?e("b-spinner",{attrs:{variant:"light",small:""}}):e("span",[t._v("Save changes")])],1)]):e("div",{staticClass:"d-flex align-items-center flex-column"},[e("b-spinner",{attrs:{variant:"muted"}}),t._v(" "),e("p",{staticClass:"pt-3 small text-muted font-weight-bold"},[t._v("Loading interaction limits...")])],1)])]):t._e()],1)},i=[]},74782:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var s=a(76798),i=a.n(s)()((function(t){return t[1]}));i.push([t.id,".group-feed-component-header{align-items:flex-end;background-color:#fff;display:flex;justify-content:space-between;padding:1rem 0}.group-feed-component-header .cta-btn{width:190px}.group-feed-component-menu{align-items:center;display:flex;justify-content:space-between;padding:0}.group-feed-component-menu-nav .nav-item .nav-link{color:#6c757d;padding-bottom:1rem;padding-top:1rem}.group-feed-component-menu-nav .nav-item .nav-link.active{border-bottom:2px solid #2c78bf;color:#2c78bf}.group-feed-component-menu-nav:not(last-child) .nav-item{margin-right:14px}.group-feed-component-body{min-height:40vh}.group-feed-component .member-label{background:rgba(137,196,244,.2);border:1px solid rgba(137,196,244,.3);color:#4b77be;font-size:12px;font-weight:400;padding:2px 5px;text-transform:capitalize}.group-feed-component .dropdown-item{font-weight:600}.group-feed-component .remote-label{background:#fef3c7;border:1px solid #fcd34d;color:#b45309;font-size:12px;font-weight:400;padding:2px 5px;text-transform:capitalize}",""]);const n=i},19056:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var s=a(76798),i=a.n(s)()((function(t){return t[1]}));i.push([t.id,".group-about-component[data-v-a3964586]{margin-bottom:50vh}.group-about-component .title[data-v-a3964586]{font-size:16px;font-weight:700}.group-about-component .description[data-v-a3964586]{color:#6c757d;font-size:15px;font-weight:400;margin-bottom:30px;white-space:break-spaces}.group-about-component .fact[data-v-a3964586]{align-items:center;display:flex;margin-bottom:1.5rem}.group-about-component .fact-body[data-v-a3964586]{flex:1}.group-about-component .fact-icon[data-v-a3964586]{text-align:center;width:50px}.group-about-component .fact-title[data-v-a3964586]{font-size:17px;font-weight:500;margin-bottom:0}.group-about-component .fact-subtitle[data-v-a3964586]{color:#6c757d;font-size:14px;margin-bottom:0}",""]);const n=i},32099:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var s=a(76798),i=a.n(s)()((function(t){return t[1]}));i.push([t.id,"",""]);const n=i},80515:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var s=a(76798),i=a.n(s)()((function(t){return t[1]}));i.push([t.id,"",""]);const n=i},81344:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var s=a(76798),i=a.n(s)()((function(t){return t[1]}));i.push([t.id,".group-members-component{min-height:100vh}.group-members-component .member-label{background:rgba(137,196,244,.2);border:1px solid rgba(137,196,244,.3);color:#4b77be;font-size:12px;font-weight:400;padding:2px 5px;text-transform:capitalize}.group-members-component .remote-label{background:#fef3c7;border:1px solid #fcd34d;color:#b45309;font-size:12px;font-weight:400;padding:2px 5px;text-transform:capitalize}",""]);const n=i},22824:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var s=a(76798),i=a.n(s)()((function(t){return t[1]}));i.push([t.id,".group-moderation-component{margin-bottom:100px;min-height:80vh}.popover-wide{min-width:200px!important}",""]);const n=i},63046:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var s=a(76798),i=a.n(s)()((function(t){return t[1]}));i.push([t.id,".group-topics-component{margin-bottom:50vh}",""]);const n=i},61467:(t,e,a)=>{a.r(e),a.d(e,{default:()=>r});var s=a(85072),i=a.n(s),n=a(74782),o={insert:"head",singleton:!1};i()(n.default,o);const r=n.default.locals||{}},31972:(t,e,a)=>{a.r(e),a.d(e,{default:()=>r});var s=a(85072),i=a.n(s),n=a(19056),o={insert:"head",singleton:!1};i()(n.default,o);const r=n.default.locals||{}},93442:(t,e,a)=>{a.r(e),a.d(e,{default:()=>r});var s=a(85072),i=a.n(s),n=a(32099),o={insert:"head",singleton:!1};i()(n.default,o);const r=n.default.locals||{}},22764:(t,e,a)=>{a.r(e),a.d(e,{default:()=>r});var s=a(85072),i=a.n(s),n=a(80515),o={insert:"head",singleton:!1};i()(n.default,o);const r=n.default.locals||{}},40227:(t,e,a)=>{a.r(e),a.d(e,{default:()=>r});var s=a(85072),i=a.n(s),n=a(81344),o={insert:"head",singleton:!1};i()(n.default,o);const r=n.default.locals||{}},92841:(t,e,a)=>{a.r(e),a.d(e,{default:()=>r});var s=a(85072),i=a.n(s),n=a(22824),o={insert:"head",singleton:!1};i()(n.default,o);const r=n.default.locals||{}},37935:(t,e,a)=>{a.r(e),a.d(e,{default:()=>r});var s=a(85072),i=a.n(s),n=a(63046),o={insert:"head",singleton:!1};i()(n.default,o);const r=n.default.locals||{}},57101:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var s=a(5295),i=a(89466),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);a(22094);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},87223:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var s=a(1281),i=a(19264),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);a(64896);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,"a3964586",null).exports},54451:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var s=a(43338),i=a(60040),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);a(46515);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,"43b239a3",null).exports},48204:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var s=a(49696),i=a(56307),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);a(82355);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},78277:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var s=a(22767),i=a(43430),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);a(83600);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},9716:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var s=a(40443),i=a(61095),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);a(63672);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},20524:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var s=a(87301),i=a(15859),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);a(40086);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},62724:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var s=a(43355),i=a(36235),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);const o=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},89466:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var s=a(43209),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},19264:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var s=a(12189),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},60040:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var s=a(52327),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},56307:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var s=a(14366),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},43430:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var s=a(95871),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},61095:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var s=a(2336),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},15859:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var s=a(44128),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},36235:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var s=a(52070),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i);const n=s.default},5295:(t,e,a)=>{a.r(e);var s=a(30),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},1281:(t,e,a)=>{a.r(e);var s=a(91722),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},43338:(t,e,a)=>{a.r(e);var s=a(3843),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},49696:(t,e,a)=>{a.r(e);var s=a(78059),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},22767:(t,e,a)=>{a.r(e);var s=a(49012),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},40443:(t,e,a)=>{a.r(e);var s=a(45450),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},87301:(t,e,a)=>{a.r(e);var s=a(30820),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},43355:(t,e,a)=>{a.r(e);var s=a(25652),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},22094:(t,e,a)=>{a.r(e);var s=a(61467),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},64896:(t,e,a)=>{a.r(e);var s=a(31972),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},46515:(t,e,a)=>{a.r(e);var s=a(93442),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},82355:(t,e,a)=>{a.r(e);var s=a(22764),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},83600:(t,e,a)=>{a.r(e);var s=a(40227),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},63672:(t,e,a)=>{a.r(e);var s=a(92841),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},40086:(t,e,a)=>{a.r(e);var s=a(37935),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)}}]);