mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-18 04:21:27 +00:00
1 line
No EOL
57 KiB
JavaScript
Vendored
1 line
No EOL
57 KiB
JavaScript
Vendored
"use strict";(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[8257],{91652:(t,e,a)=>{a.r(e),a.d(e,{default:()=>w});var s=a(79984),i=a(78277),n=a(17108),r=a(95002),o=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),b=a(52505),_=a(33457),C=a(72890);const w={props:{groupId:{type:String},path:{type:String}},components:{"status-card":s.default,"group-about":o.default,"group-status":r.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,"group-header-details":b.default,"group-nav-tabs":_.default,"member-only-warning":C.default},data:function(){return{initialLoad:!1,profile:void 0,group:{},isMember:!1,isAdmin:!1,renderIdx:1,atabs:{moderation_count:0,request_count:0}}},created:function(){this.init()},methods:{init:function(){var t=this;this.initialLoad=!1,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)}))},handleRefresh:function(){this.initialLoad=!1,this.init(),this.renderIdx++},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.initialLoad=!0})).catch((function(t){alert("error")}))},fetchAdminTabs:function(){var t=this;axios.get("/api/v0/groups/"+this.groupId+"/atabs").then((function(e){t.atabs=e.data}))}}}},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:()=>o});var s=a(62724),i=a(74692);function n(t){return function(t){if(Array.isArray(t))return r(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 r(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)?r(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 r(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 o={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 r=e.data.filter((function(e){return e.id!=t.profile.id}));(a=t.members).push.apply(a,n(r.filter((function(t){return!t.following})))),(s=t.mutual).push.apply(s,n(r.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")}))}}}},99464:(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"},[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("group-header-details",{attrs:{group:t.group,isAdmin:t.isAdmin,isMember:t.isMember},on:{refresh:t.handleRefresh}}),t._v(" "),e("group-nav-tabs",{attrs:{group:t.group,isAdmin:t.isAdmin,isMember:t.isMember,atabs:t.atabs}})],1)]),t._v(" "),t.initialLoad?[e("div",{staticClass:"container-xl group-feed-component-body"},[t.initialLoad&&t.group.self.is_member?[e("group-about",{key:t.renderIdx,attrs:{group:t.group,profile:t.profile}})]:e("member-only-warning")],2)]:e("div",[e("p",{staticClass:"text-center mt-5 pt-5 font-weight-bold"},[t._v("Loading...")])])],2)],1)])},i=[]},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=[]},72157:(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:"member-only-warning"},[e("div",{staticClass:"member-only-warning-wrapper"},[e("h3",[t._v("Content unavailable")]),t._v(" "),e("p",[t._v("You need to join this Group before you can access this content.")])])])}]},75623:(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-body{min-height:40vh}",""]);const n=i},13017:(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},66600:(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},2874:(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},26873:(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},91599:(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},47273:(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},65834:(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,".member-only-warning[data-v-608810bc],.member-only-warning-wrapper[data-v-608810bc]{display:flex;justify-content:center}.member-only-warning-wrapper[data-v-608810bc]{align-items:center;border:1px solid var(--border-color);border-radius:10px;flex-direction:column;max-width:550px;padding:4rem 1rem;width:100%}.member-only-warning-wrapper h3[data-v-608810bc]{font-weight:700;letter-spacing:-1px}.member-only-warning-wrapper p[data-v-608810bc]{font-size:1.2em;margin-bottom:0}",""]);const n=i},35372:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var s=a(85072),i=a.n(s),n=a(75623),r={insert:"head",singleton:!1};i()(n.default,r);const o=n.default.locals||{}},19826:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var s=a(85072),i=a.n(s),n=a(13017),r={insert:"head",singleton:!1};i()(n.default,r);const o=n.default.locals||{}},35081:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var s=a(85072),i=a.n(s),n=a(66600),r={insert:"head",singleton:!1};i()(n.default,r);const o=n.default.locals||{}},51785:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var s=a(85072),i=a.n(s),n=a(2874),r={insert:"head",singleton:!1};i()(n.default,r);const o=n.default.locals||{}},81766:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var s=a(85072),i=a.n(s),n=a(26873),r={insert:"head",singleton:!1};i()(n.default,r);const o=n.default.locals||{}},45550:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var s=a(85072),i=a.n(s),n=a(91599),r={insert:"head",singleton:!1};i()(n.default,r);const o=n.default.locals||{}},79024:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var s=a(85072),i=a.n(s),n=a(47273),r={insert:"head",singleton:!1};i()(n.default,r);const o=n.default.locals||{}},4761:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var s=a(85072),i=a.n(s),n=a(65834),r={insert:"head",singleton:!1};i()(n.default,r);const o=n.default.locals||{}},72962:(t,e,a)=>{a.r(e),a.d(e,{default:()=>r});var s=a(56667),i=a(14193),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);a(53349);const r=(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:()=>r});var s=a(1281),i=a(19264),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);a(24543);const r=(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:()=>r});var s=a(43338),i=a(60040),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);a(65594);const r=(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:()=>r});var s=a(49696),i=a(56307),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);a(30676);const r=(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:()=>r});var s=a(22767),i=a(21049),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);a(5083);const r=(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:()=>r});var s=a(40443),i=a(61095),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);a(98593);const r=(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:()=>r});var s=a(87301),i=a(15859),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);a(17623);const r=(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:()=>r});var s=a(43355),i=a(36235),n={};for(const t in i)"default"!==t&&(n[t]=()=>i[t]);a.d(e,n);const r=(0,a(14486).default)(i.default,s.render,s.staticRenderFns,!1,null,null,null).exports},72890:(t,e,a)=>{a.r(e),a.d(e,{default:()=>i});var s=a(50678);a(12376);const i=(0,a(14486).default)({},s.render,s.staticRenderFns,!1,null,"608810bc",null).exports},14193:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var s=a(91652),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},21049:(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},56667:(t,e,a)=>{a.r(e);var s=a(99464),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)},50678:(t,e,a)=>{a.r(e);var s=a(72157),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},53349:(t,e,a)=>{a.r(e);var s=a(35372),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},24543:(t,e,a)=>{a.r(e);var s=a(19826),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},65594:(t,e,a)=>{a.r(e);var s=a(35081),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},30676:(t,e,a)=>{a.r(e);var s=a(51785),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},5083:(t,e,a)=>{a.r(e);var s=a(81766),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},98593:(t,e,a)=>{a.r(e);var s=a(45550),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},17623:(t,e,a)=>{a.r(e);var s=a(79024),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)},12376:(t,e,a)=>{a.r(e);var s=a(4761),i={};for(const t in s)"default"!==t&&(i[t]=()=>s[t]);a.d(e,i)}}]); |