/*! For license information please see spa.js.LICENSE.txt */ (self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[7228],{93729:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>r});var a=o(26679),s=o(16080),i=o(99662);const r={components:{sidebar:a.default,loader:s.default,"group-card":i.default},data:function(){return{loaded:!1,loadTimeout:void 0,popularGroups:[],newGroups:[]}},methods:{fetchPopular:function(){var t=this;axios.get("/api/v0/groups/discover/popular").then((function(e){return t.popularGroups=e.data})).finally((function(){return t.fetchNewGroups()}))},fetchNewGroups:function(){var t=this;axios.get("/api/v0/groups/discover/new").then((function(e){return t.newGroups=e.data})).finally((function(){return t.loaded=!0}))}},created:function(){this.fetchPopular()},beforeUnmount:function(){clearTimeout(this.loadTimeout)}}},56244:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>m});var a=o(95002),s=o(90637),i=o(54048),r=o(57397),n=o(65603),l=o(27403),c=o(5799),d=o(49139),u=o(26679),p=o(2e4);o(87980);const m={data:function(){return{initialLoad:!1,config:{},groups:[],profile:{},tab:null,searchQuery:void 0}},components:{"autocomplete-input":p.default,"group-status":a.default,"self-discover":i.default,"self-groups":r.default,"self-feed":s.default,"self-notifications":n.default,"self-invitations":l.default,"self-remote-search":c.default,"create-group":d.default,sidebar:u.default},mounted:function(){this.fetchConfig()},methods:{init:function(){document.querySelectorAll("footer").forEach((function(t){return t.parentNode.removeChild(t)})),document.querySelectorAll(".mobile-footer-spacer").forEach((function(t){return t.parentNode.removeChild(t)})),document.querySelectorAll(".mobile-footer").forEach((function(t){return t.parentNode.removeChild(t)})),this.initialLoad=!0},fetchConfig:function(){var t=this;axios.get("/api/v0/groups/config").then((function(e){t.config=e.data,t.fetchProfile()}))},fetchProfile:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then((function(e){t.profile=e.data,t.init(),window._sharedData.curUser=e.data,window.App.util.navatar()}))},fetchSelfGroups:function(){var t=this;axios.get("/api/v0/groups/self/list").then((function(e){t.groups=e.data}))},switchTab:function(t){event.currentTarget.blur(),window.scrollTo(0,0),this.tab=t,"feed"!=t?history.pushState(null,null,"/groups/home?ct="+t):history.pushState(null,null,"/groups/home")},autocompleteSearch:function(t){var e=this;return!t||t.length<2?((this.tab="searchresults")&&(this.tab="feed"),[]):(this.searchQuery=t,t.startsWith("http")?new URL(t).hostname==location.hostname?(location.href=t,[]):[]:t.startsWith("#")?(this.$bvToast.toast(t,{title:"Hashtag detected",variant:"info",autoHideDelay:5e3}),[]):axios.post("/api/v0/groups/search/global",{q:t,v:"0.2"}).then((function(t){return e.searchLoading=!1,t.data})).catch((function(t){return 422===t.response.status&&e.$bvToast.toast(t.response.data.error.message,{title:"Cannot display search results",variant:"danger",autoHideDelay:5e3}),[]})))},getSearchResultValue:function(t){return t.name},onSearchSubmit:function(t){if(t.length<1)return[];location.href=t.url},truncateName:function(t){return t.length<24?t:t.substr(0,23)+"..."}}}},45297:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>r});var a=o(26679),s=o(16080),i=o(57397);const r={components:{sidebar:a.default,loader:s.default,"self-groups":i.default},data:function(){return{loaded:!1,loadTimeout:void 0,config:{},groups:[],profile:{}}},methods:{init:function(){document.querySelectorAll("footer").forEach((function(t){return t.parentNode.removeChild(t)})),document.querySelectorAll(".mobile-footer-spacer").forEach((function(t){return t.parentNode.removeChild(t)})),document.querySelectorAll(".mobile-footer").forEach((function(t){return t.parentNode.removeChild(t)})),this.loaded=!0},fetchConfig:function(){var t=this;axios.get("/api/v0/groups/config").then((function(e){t.config=e.data,t.fetchProfile()}))},fetchProfile:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then((function(e){t.profile=e.data,t.init(),window._sharedData.curUser=e.data,window.App.util.navatar()}))}},created:function(){this.fetchConfig()}}},24854:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>i});var a=o(26679),s=o(16080);const i={components:{sidebar:a.default,loader:s.default},data:function(){return{loaded:!1,loadTimeout:void 0}},created:function(){var t=this;this.loadTimeout=setTimeout((function(){t.loaded=!0}),1e3)},beforeUnmount:function(){clearTimeout(this.loadTimeout)}}},23536:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>m});var a=o(95002),s=o(90637),i=o(54048),r=o(57397),n=o(65603),l=o(27403),c=o(5799),d=o(49139),u=o(26679),p=o(2e4);o(87980);const m={data:function(){return{initialLoad:!1,config:{},groups:[],profile:{},tab:null,searchQuery:void 0}},components:{"autocomplete-input":p.default,"group-status":a.default,"self-discover":i.default,"self-groups":r.default,"self-feed":s.default,"self-notifications":n.default,"self-invitations":l.default,"self-remote-search":c.default,"create-group":d.default,sidebar:u.default},mounted:function(){this.fetchConfig()},methods:{init:function(){document.querySelectorAll("footer").forEach((function(t){return t.parentNode.removeChild(t)})),document.querySelectorAll(".mobile-footer-spacer").forEach((function(t){return t.parentNode.removeChild(t)})),document.querySelectorAll(".mobile-footer").forEach((function(t){return t.parentNode.removeChild(t)})),this.initialLoad=!0},fetchConfig:function(){var t=this;axios.get("/api/v0/groups/config").then((function(e){t.config=e.data,t.fetchProfile()}))},fetchProfile:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then((function(e){t.profile=e.data,t.init(),window._sharedData.curUser=e.data,window.App.util.navatar()}))}}}},19933:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>r});var a=o(18115),s=o(71307),i=o(49139);const r={props:{groupId:{type:String},path:{type:String}},data:function(){return{tab:"home"}},components:{"groups-home":a.default,"create-group":i.default,"group-feed":s.default},mounted:function(){this.groupId&&(this.tab="show")},methods:{switchTab:function(t){this.tab=t}}}},22681:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>n});var a=o(71347),s=o(69104),i=o(40482),r=o(62181);const n={components:{"text-input":a.default,"select-input":s.default,"text-area-input":i.default,"checkbox-input":r.default},data:function(){return{hide:!0,name:null,page:1,maxPage:1,description:null,membership:"placeholder",submitting:!1,categories:[],category:"",limit:{name:{max:60},description:{max:500}},configuration:{types:{text:!0,photos:!0,videos:!0,polls:!0},federation:!0,adult:!1,discoverable:!1,autospam:!1,dms:!1,slowjoin:{enabled:!1,age:90,limit:{post:1,comment:20,threads:2,likes:5,hashtags:5,mentions:1,autolinks:1}}},hasConfirmed:!1,permissionChecked:!1,membershipCategories:[{key:"Public",value:"public"},{key:"Private",value:"private"},{key:"Local",value:"local"}]}},mounted:function(){this.permissionCheck(),this.fetchCategories()},methods:{permissionCheck:function(){var t=this;axios.post("/api/v0/groups/permission/create").then((function(e){0==e.data.permission?(swal("Limit reached","You cannot create any more groups","error"),t.hide=!0):t.hide=!1,t.permissionChecked=!0}))},submit:function(t){t.preventDefault(),this.submitting=!0,axios.post("/api/v0/groups/create",{name:this.name,description:this.description,membership:this.membership}).then((function(t){console.log(t.data),window.location.href=t.data.url})).catch((function(t){console.log(t.response)}))},fetchCategories:function(){var t=this;axios.get("/api/v0/groups/categories/list").then((function(e){t.categories=e.data.map((function(t){return{key:t,value:t}}))}))},createGroup:function(){axios.post("/api/v0/groups/create",{name:this.name,description:this.description,membership:this.membership,configuration:this.configuration}).then((function(t){console.log(t.data),location.href=t.data.url}))},handleUpdate:function(t,e){this[t]=e}}}},72233:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>h});var a=o(79984),s=o(17108),i=o(95002),r=o(13094),n=o(58753),l=o(94559),c=o(19413),d=o(49268),u=o(33457),p=o(52505);function m(t){return function(t){if(Array.isArray(t))return f(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)return;if("string"==typeof t)return f(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return f(t,e)}(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 f(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,a=new Array(e);o1&&void 0!==arguments[1]&&arguments[1],o=new Date(t);return e?o.toDateString()+" · "+o.toLocaleTimeString():o.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 o=e.response;422==o.status&&(t.tab="feed",history.pushState("",null,t.group.url),t.requestingMembership=!1,swal("Oops!",o.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 o="/api/v0/groups/"+this.groupId+"/feed";axios.get(o,{params:{limit:6,max_id:this.maxId}}).then((function(o){if(o.data.length){var a,s,i=o.data.filter((function(t){return-1==e.ids.indexOf(t.id)}));e.maxId=i[i.length-1].id,(a=e.feed).push.apply(a,m(i)),(s=e.ids).push.apply(s,m(i.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(o){var a;o.data.length>0?((a=e.likes).push.apply(a,m(o.data)),e.likesPage++,10!=o.data.length?t.complete():t.loaded()):t.complete()}))}}}},95727:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>p});var a=o(95002),s=o(90637),i=o(54048),r=o(57397),n=o(65603),l=o(27403),c=o(5799),d=o(49139),u=o(2e4);o(87980);const p={data:function(){return{initialLoad:!1,config:{},groups:[],profile:{},tab:null,searchQuery:void 0}},components:{"autocomplete-input":u.default,"group-status":a.default,"self-discover":i.default,"self-groups":r.default,"self-feed":s.default,"self-notifications":n.default,"self-invitations":l.default,"self-remote-search":c.default,"create-group":d.default},mounted:function(){this.fetchConfig()},methods:{init:function(){document.querySelectorAll("footer").forEach((function(t){return t.parentNode.removeChild(t)})),document.querySelectorAll(".mobile-footer-spacer").forEach((function(t){return t.parentNode.removeChild(t)})),document.querySelectorAll(".mobile-footer").forEach((function(t){return t.parentNode.removeChild(t)})),this.initialLoad=!0},fetchConfig:function(){var t=this;axios.get("/api/v0/groups/config").then((function(e){t.config=e.data,t.fetchProfile()}))},fetchProfile:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then((function(e){t.profile=e.data,t.init(),window._sharedData.curUser=e.data,window.App.util.navatar()}))},fetchSelfGroups:function(){var t=this;axios.get("/api/v0/groups/self/list").then((function(e){t.groups=e.data}))},switchTab:function(t){event.currentTarget.blur(),window.scrollTo(0,0),this.tab=t,"feed"!=t?history.pushState(null,null,"/groups/home?ct="+t):history.pushState(null,null,"/groups/home")},autocompleteSearch:function(t){var e=this;return!t||t.length<2?((this.tab="searchresults")&&(this.tab="feed"),[]):(this.searchQuery=t,t.startsWith("http")?new URL(t).hostname==location.hostname?(location.href=t,[]):[]:t.startsWith("#")?(this.$bvToast.toast(t,{title:"Hashtag detected",variant:"info",autoHideDelay:5e3}),[]):axios.post("/api/v0/groups/search/global",{q:t,v:"0.2"}).then((function(t){return e.searchLoading=!1,t.data})).catch((function(t){return 422===t.response.status&&e.$bvToast.toast(t.response.data.error.message,{title:"Cannot display search results",variant:"danger",autoHideDelay:5e3}),[]})))},getSearchResultValue:function(t){return t.name},onSearchSubmit:function(t){if(t.length<1)return[];location.href=t.url},truncateName:function(t){return t.length<24?t:t.substr(0,23)+"..."}}}},68717:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>n});var a=o(7764),s=o(66536);function i(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)return;if("string"==typeof t)return r(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return r(t,e)}(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 o=0,a=new Array(e);o0&&(t.children={feed:[],can_load_more:!0}),t}));t.feed=o,t.isLoaded=!0,t.maxReplyId=e.data[e.data.length-1].id,3==t.feed.length&&(t.canLoadMore=!0)})).catch((function(e){t.isLoaded=!0}))},loadMoreComments:function(){var t=this;this.isLoadingMore=!0,axios.get("/api/v0/groups/comments",{params:{gid:this.groupId,sid:this.status.id,limit:3,max_id:this.maxReplyId}}).then((function(e){var o;if(e.data[e.data.length-1].id==t.maxReplyId)return t.isLoadingMore=!1,void(t.canLoadMore=!1);(o=t.feed).push.apply(o,i(e.data)),setTimeout((function(){t.isLoadingMore=!1}),500),t.maxReplyId=e.data[e.data.length-1].id,e.data.length>0?t.canLoadMore=!0:t.canLoadMore=!1})).catch((function(e){t.isLoadingMore=!1,t.canLoadMore=!1}))},storeComment:function(t){var e,o=this;null===(e=t.currentTarget)||void 0===e||e.blur(),axios.post("/api/v0/groups/comment",{gid:this.groupId,sid:this.status.id,content:this.replyContent}).then((function(t){o.replyContent=null,o.feed.unshift(t.data)})).catch((function(t){422==t.response.status?(o.isUploading=!1,o.uploadProgress=0,swal("Oops!",t.response.data.error,"error")):(o.isUploading=!1,o.uploadProgress=0,swal("Oops!","An error occured while processing your request, please try again later","error"))}))},shortTimestamp:function(t){return window.App.util.format.timeAgo(t)},readMore:function(){this.readMoreCursor=this.readMoreCursor+200},likeComment:function(t,e,o){o.target.blur();var a=!t.favourited;this.feed[e].favourited=a,t.favourited=a,axios.post("/api/v0/groups/comment/".concat(a?"like":"unlike"),{sid:t.id,gid:this.groupId})},deleteComment:function(t){var e=this;0!=window.confirm("Are you sure you want to delete this post?")&&axios.post("/api/v0/groups/comment/delete",{gid:this.groupId,id:this.feed[t].id}).then((function(o){e.feed.splice(t,1)})).catch((function(t){console.log(t.response),swal("Error","Something went wrong. Please try again later.","error")}))},uploadImage:function(){this.$refs.fileInput.click()},handleImageUpload:function(){var t=this;if(this.$refs.fileInput.files.length){this.isUploading=!0;var e=this,o=new FormData;o.append("gid",this.groupId),o.append("sid",this.status.id),o.append("photo",this.$refs.fileInput.files[0]),axios.post("/api/v0/groups/comment/photo",o,{onUploadProgress:function(t){e.uploadProgress=Math.floor(t.loaded/t.total*100)}}).then((function(e){t.isUploading=!1,t.uploadProgress=0,t.feed.unshift(e.data)})).catch((function(e){422==e.response.status?(t.isUploading=!1,t.uploadProgress=0,swal("Oops!",e.response.data.error,"error")):(t.isUploading=!1,t.uploadProgress=0,swal("Oops!","An error occured while processing your request, please try again later","error"))}))}},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.endsWith("storage/no-preview.png")?e.url:e.preview_url},replyToChild:function(t,e){var o=this;if(this.replyChildId==t.id)return this.replyChildId=null,void(this.replyChildIndex=null);this.childReplyContent=null,this.replyChildId=t.id,this.replyChildIndex=e,t.hasOwnProperty("replies_loaded")&&t.replies_loaded||this.$nextTick((function(){o.fetchChildReplies(t,e)}))},fetchChildReplies:function(t,e){var o=this;axios.get("/api/v0/groups/comments",{params:{gid:this.groupId,sid:t.id,cid:1,limit:3}}).then((function(t){o.feed[e].hasOwnProperty("children")?(o.feed[e].children.feed.push(t.data),o.feed[e].children.can_load_more=3==t.data.length):o.feed[e].children={feed:t.data,can_load_more:3==t.data.length},o.replyChildMinId=t.data[t.data.length-1].id,o.$nextTick((function(){o.feed[e].replies_loaded=!0}))})).catch((function(t){o.feed[e].children.can_load_more=!1}))},storeChildComment:function(t){var e=this;this.postingChildComment=!0,axios.post("/api/v0/groups/comment",{gid:this.groupId,sid:this.status.id,cid:this.replyChildId,content:this.childReplyContent}).then((function(o){e.childReplyContent=null,e.postingChildComment=!1,e.feed[t].children.feed.push(o.data)})).catch((function(t){422==t.response.status?swal("Oops!",t.response.data.error,"error"):swal("Oops!","An error occured while processing your request, please try again later","error")}))},loadMoreChildComments:function(t,e){var o=this;this.loadingChildComments=!0,axios.get("/api/v0/groups/comments",{params:{gid:this.groupId,sid:t.id,max_id:this.replyChildMinId,cid:1,limit:3}}).then((function(t){var a;o.feed[e].hasOwnProperty("children")?((a=o.feed[e].children.feed).push.apply(a,i(t.data)),o.feed[e].children.can_load_more=3==t.data.length):o.feed[e].children={feed:t.data,can_load_more:3==t.data.length};o.replyChildMinId=t.data[t.data.length-1].id,o.feed[e].replies_loaded=!0,o.loadingChildComments=!1})).catch((function(t){}))}}}},78828:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>r});var a=o(7764);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)return;if("string"==typeof t)return i(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return i(t,e)}(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 o=0,a=new Array(e);o0?t.canLoadMore=!0:t.canLoadMore=!1})).catch((function(e){t.isLoadingMore=!1,t.canLoadMore=!1}))},storeComment:function(){var t=this;axios.post("/api/v0/groups/comment",{gid:this.groupId,sid:this.status.id,content:this.replyContent}).then((function(e){t.replyContent=null,t.feed.unshift(e.data)})).catch((function(e){422==e.response.status?(t.isUploading=!1,t.uploadProgress=0,swal("Oops!",e.response.data.error,"error")):(t.isUploading=!1,t.uploadProgress=0,swal("Oops!","An error occured while processing your request, please try again later","error"))}))},shortTimestamp:function(t){return window.App.util.format.timeAgo(t)},readMore:function(){this.readMoreCursor=this.readMoreCursor+200},likeComment:function(t,e,o){o.target.blur();var a=!t.favourited;this.feed[e].favourited=a,t.favourited=a,axios.post("/api/v0/groups/like",{sid:t.id,gid:this.groupId})},deleteComment:function(t){var e=this;0!=window.confirm("Are you sure you want to delete this post?")&&axios.post("/api/v0/groups/status/delete",{gid:this.groupId,id:this.feed[t].id}).then((function(o){e.feed.splice(t,1)})).catch((function(t){console.log(t.response),swal("Error","Something went wrong. Please try again later.","error")}))},uploadImage:function(){this.$refs.fileInput.click()},handleImageUpload:function(){var t=this;if(this.$refs.fileInput.files.length){this.isUploading=!0;var e=this,o=new FormData;o.append("gid",this.groupId),o.append("sid",this.status.id),o.append("photo",this.$refs.fileInput.files[0]),axios.post("/api/v0/groups/comment/photo",o,{onUploadProgress:function(t){e.uploadProgress=Math.floor(t.loaded/t.total*100)}}).then((function(e){t.isUploading=!1,t.uploadProgress=0,t.feed.unshift(e.data)})).catch((function(e){422==e.response.status?(t.isUploading=!1,t.uploadProgress=0,swal("Oops!",e.response.data.error,"error")):(t.isUploading=!1,t.uploadProgress=0,swal("Oops!","An error occured while processing your request, please try again later","error"))}))}},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.endsWith("storage/no-preview.png")?e.url:e.preview_url},replyToChild:function(t,e){this.replyChildId!=t.id?(this.childReplyContent=null,this.replyChildId=t.id,t.hasOwnProperty("replies_loaded")&&t.replies_loaded||this.fetchChildReplies(t,e)):this.replyChildId=null},fetchChildReplies:function(t,e){var o=this;axios.get("/api/v0/groups/comments",{params:{gid:this.groupId,sid:t.id,cid:1,limit:3}}).then((function(t){var a;o.feed[e].hasOwnProperty("children")?((a=o.feed[e].children.feed).push.apply(a,s(t.data)),o.feed[e].children.can_load_more=3==t.data.length):o.feed[e].children={feed:t.data,can_load_more:3==t.data.length};o.feed[e].replies_loaded=!0})).catch((function(t){}))},storeChildComment:function(){var t=this;this.postingChildComment=!0,axios.post("/api/v0/groups/comment",{gid:this.groupId,sid:this.status.id,cid:this.replyChildId,content:this.childReplyContent}).then((function(e){t.childReplyContent=null,t.postingChildComment=!1})).catch((function(t){422==t.response.status?swal("Oops!",t.response.data.error,"error"):swal("Oops!","An error occured while processing your request, please try again later","error")})),console.log(this.replyChildId)}}}},15961:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>s});var a=o(74692);const s={props:{status:{type:Object},profile:{type:Object},type:{type:String,default:"status",validator:function(t){return["status","comment","profile"].includes(t)}},groupId:{type:String}},data:function(){return{ctxMenuStatus:!1,ctxMenuRelationship:!1,ctxEmbedPayload:!1,copiedEmbed:!1,replySending:!1,ctxEmbedShowCaption:!0,ctxEmbedShowLikes:!1,ctxEmbedCompactMode:!1,confirmModalTitle:"Are you sure?",confirmModalIdentifer:null,confirmModalType:!1}},methods:{open:function(){this.ctxMenu()},ctxMenu:function(){var t=this;this.ctxMenuStatus=this.status,this.ctxEmbedPayload=window.App.util.embed.post(this.status.url),this.status.account.id==this.profile.id?(this.ctxMenuRelationship=!1,this.$refs.ctxModal.show()):axios.get("/api/pixelfed/v1/accounts/relationships",{params:{"id[]":this.status.account.id}}).then((function(e){t.ctxMenuRelationship=e.data[0],t.$refs.ctxModal.show()}))},closeCtxMenu:function(){this.copiedEmbed=!1,this.ctxMenuStatus=!1,this.ctxMenuRelationship=!1,this.$refs.ctxModal.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxReportOther.hide(),this.closeModals()},ctxMenuCopyLink:function(){var t=this.ctxMenuStatus;navigator.clipboard.writeText(t.url),this.closeModals()},ctxMenuGoToPost:function(){var t=this.ctxMenuStatus;window.location.href=this.statusUrl(t),this.closeCtxMenu()},ctxMenuGoToProfile:function(){var t=this.ctxMenuStatus;window.location.href=this.profileUrl(t),this.closeCtxMenu()},ctxMenuFollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then((function(e){var o=t.ctxMenuStatus.account.acct;t.closeCtxMenu(),setTimeout((function(){swal("Follow successful!","You are now following "+o,"success")}),500)}))},ctxMenuUnfollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then((function(e){var o=t.ctxMenuStatus.account.acct;"home"==t.scope&&(t.feed=t.feed.filter((function(e){return e.account.id!=t.ctxMenuStatus.account.id}))),t.closeCtxMenu(),setTimeout((function(){swal("Unfollow successful!","You are no longer following "+o,"success")}),500)}))},ctxMenuReportPost:function(){this.$refs.ctxModal.hide(),this.$refs.ctxReport.show()},ctxMenuEmbed:function(){this.closeModals(),this.$refs.ctxEmbedModal.show()},ctxMenuShare:function(){this.$refs.ctxModal.hide(),this.$refs.ctxShareModal.show()},closeCtxShareMenu:function(){this.$refs.ctxShareModal.hide(),this.$refs.ctxModal.show()},ctxCopyEmbed:function(){navigator.clipboard.writeText(this.ctxEmbedPayload),this.ctxEmbedShowCaption=!0,this.ctxEmbedShowLikes=!1,this.ctxEmbedCompactMode=!1,this.$refs.ctxEmbedModal.hide()},ctxModMenuShow:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.show()},ctxModOtherMenuShow:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.hide(),this.$refs.ctxModOtherModal.show()},ctxModMenu:function(){this.$refs.ctxModal.hide()},ctxModMenuClose:function(){this.closeModals()},ctxModOtherMenuClose:function(){this.closeModals(),this.$refs.ctxModModal.show()},formatCount:function(t){return App.util.format.count(t)},openCtxReportOtherMenu:function(){var t=this.ctxMenuStatus;this.closeCtxMenu(),this.ctxMenuStatus=t,this.$refs.ctxReportOther.show()},ctxReportMenuGoBack:function(){this.$refs.ctxReportOther.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxModal.show()},ctxReportOtherMenuGoBack:function(){this.$refs.ctxReportOther.hide(),this.$refs.ctxModal.hide(),this.$refs.ctxReport.show()},sendReport:function(t){var e=this,o=this.ctxMenuStatus.id;swal({title:"Confirm Report",text:"Are you sure you want to report this post?",icon:"warning",buttons:!0,dangerMode:!0}).then((function(a){a?axios.post("/api/v0/groups/".concat(e.groupId,"/report/create"),{type:t,id:o}).then((function(t){e.closeCtxMenu(),swal("Report Sent!","We have successfully received your report.","success")})).catch((function(t){422==t.response.status?swal("Oops!",t.response.data.error,"error"):swal("Oops!","There was an issue reporting this post.","error")})):e.closeCtxMenu()}))},closeModals:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.hide(),this.$refs.ctxModOtherModal.hide(),this.$refs.ctxShareModal.hide(),this.$refs.ctxEmbedModal.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxReportOther.hide(),this.$refs.ctxConfirm.hide()},openCtxStatusModal:function(){this.closeModals(),this.$refs.ctxStatusModal.show()},openConfirmModal:function(){this.closeModals(),this.$refs.ctxConfirm.show()},closeConfirmModal:function(){this.closeModals(),this.confirmModalTitle="Are you sure?",this.confirmModalType=!1,this.confirmModalIdentifer=null},confirmModalConfirm:function(){var t=this;if("post.delete"===this.confirmModalType)axios.post("/i/delete",{type:"status",item:this.confirmModalIdentifer}).then((function(e){t.feed=t.feed.filter((function(e){return e.id!=t.confirmModalIdentifer})),t.closeConfirmModal()})).catch((function(e){t.closeConfirmModal(),swal("Error","Something went wrong. Please try again later.","error")}));this.closeConfirmModal()},confirmModalCancel:function(){this.closeConfirmModal()},moderatePost:function(t,e,o){var a=this,s=(t.account.username,t.id,""),i=this;switch(e){case"addcw":s="Are you sure you want to add a content warning to this post?",swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0}).then((function(o){o&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(e){swal("Success","Successfully added content warning","success"),t.sensitive=!0,i.closeModals(),i.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),i.closeModals(),i.ctxModMenuClose()}))}));break;case"remcw":s="Are you sure you want to remove the content warning on this post?",swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0}).then((function(o){o&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(e){swal("Success","Successfully added content warning","success"),t.sensitive=!1,i.closeModals(),i.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),i.closeModals(),i.ctxModMenuClose()}))}));break;case"unlist":s="Are you sure you want to unlist this post?",swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0}).then((function(o){o&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(e){a.feed=a.feed.filter((function(e){return e.id!=t.id})),swal("Success","Successfully unlisted post","success"),i.closeModals(),i.ctxModMenuClose()})).catch((function(t){i.closeModals(),i.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")}))}));break;case"spammer":s="Are you sure you want to mark this user as a spammer? All existing and future posts will be unlisted on timelines and a content warning will be applied.",swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0}).then((function(o){o&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(t){swal("Success","Successfully marked account as spammer","success"),i.closeModals(),i.ctxModMenuClose()})).catch((function(t){i.closeModals(),i.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")}))}))}},shareStatus:function(t,e){0!=a("body").hasClass("loggedIn")&&(this.closeModals(),axios.post("/i/share",{item:t.id}).then((function(e){t.reblogs_count=e.data.count,t.reblogged=!t.reblogged,t.reblogged?swal("Success","You shared this post","success"):swal("Success","You unshared this post","success")})).catch((function(t){swal("Error","Something went wrong, please try again later.","error")})))},statusUrl:function(t){return 1==t.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},profileUrl:function(t){return 1==t.local?t.account.url:"/i/web/profile/_/"+t.account.id},deletePost:function(t){var e=this;0!=a("body").hasClass("loggedIn")&&0!=this.ownerOrAdmin(t)&&0!=window.confirm("Are you sure you want to delete this post?")&&axios.post("/i/delete",{type:"status",item:t.id}).then((function(o){e.$emit("status-delete",t.id),e.closeModals()})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))},owner:function(t){return this.profile.id===t.account.id},admin:function(){return 1==this.profile.is_admin},ownerOrAdmin:function(t){return this.owner(t)||this.admin()},archivePost:function(t){var e=this;0!=window.confirm("Are you sure you want to archive this post?")&&axios.post("/api/pixelfed/v2/status/"+t.id+"/archive").then((function(o){e.$emit("status-delete",t.id),e.closeModals()}))},unarchivePost:function(t){var e=this;0!=window.confirm("Are you sure you want to unarchive this post?")&&axios.post("/api/pixelfed/v2/status/"+t.id+"/unarchive").then((function(t){e.closeModals()}))}}}},3891:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>a});const a={props:{label:{type:String},inputText:{type:String},val:{type:String},helpText:{type:String},strongText:{type:Boolean,default:!0}},data:function(){return{value:this.val}},watch:{value:function(t,e){this.$emit("update",t)}}}},35334:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>a});const a={props:{label:{type:String},placeholder:{type:String},categories:{type:Array},val:{type:String},helpText:{type:String},hasLimit:{type:Boolean,default:!1},maxLimit:{type:Number,default:40},largeInput:{type:Boolean,default:!1}},data:function(){return{value:this.val?this.val:""}},watch:{value:function(t,e){this.$emit("update",t)}}}},87844:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>a});const a={props:{label:{type:String},placeholder:{type:String},val:{type:String},helpText:{type:String},hasLimit:{type:Boolean,default:!1},maxLimit:{type:Number,default:40},largeInput:{type:Boolean,default:!1},rows:{type:Number,default:4}},data:function(){return{value:this.val}},watch:{value:function(t,e){this.$emit("update",t)}}}},45065:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>a});const a={props:{label:{type:String},placeholder:{type:String},val:{type:String},helpText:{type:String},hasLimit:{type:Boolean,default:!1},maxLimit:{type:Number,default:40},largeInput:{type:Boolean,default:!1}},data:function(){return{value:this.val}},watch:{value:function(t,e){this.$emit("update",t)}}}},98714:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>a});const a={props:{group:{type:Object},compact:{type:Boolean,default:!1},showStats:{type:Boolean,default:!0},truncateTitleLength:{type:Number,default:19},truncateDescriptionLength:{type:Number,default:22}},data:function(){return{titleLength:40,descriptionLength:60}},mounted:function(){this.compact&&(this.titleLength=19,this.descriptionLength=22),19!=this.truncateTitleLength&&(this.titleLength=this.truncateTitleLength),22!=this.truncateDescriptionLength&&(this.descriptionLength=this.truncateDescriptionLength)},methods:{prettyCount:function(t){return App.util.format.count(t)},truncate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:140;return t.length<=e?t:t.substr(0,e)+" ..."}}}},91446:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>a});const a={props:{profile:{type:Object},groupId:{type:String}},data:function(){return{config:window.App.config,composeText:void 0,tab:null,placeholder:"Write something...",allowPhoto:!0,allowVideo:!0,allowPolls:!0,allowEvent:!0,pollOptionModel:null,pollOptions:[],pollExpiry:1440,uploadProgress:0,isUploading:!1,isPosting:!1,photoName:void 0,videoName:void 0}},methods:{newPost:function(){var t=this;if(!this.isPosting){this.isPosting=!0;var e=this,o="text",a=new FormData;switch(a.append("group_id",this.groupId),this.composeText&&this.composeText.length&&a.append("caption",this.composeText),this.tab){case"poll":if(!this.pollOptions||this.pollOptions.length<2||this.pollOptions.length>4)return void swal("Oops!","A poll must have 2-4 choices.","error");if(!this.composeText||this.composeText.length<5)return void swal("Oops!","A poll question must be at least 5 characters.","error");for(var s=0;s0&&void 0!==arguments[0])||arguments[0])&&event.currentTarget.blur(),this.tab=null,this.$refs.photoInput.value=null,this.photoName=null,this.$refs.videoInput.value=null,this.videoName=null}}}},15426:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>a});const a={props:{group:{type:Object}},methods:{timestampFormat:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=new Date(t);return e?o.toDateString()+" · "+o.toLocaleTimeString():o.toDateString()}}}},51796:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>s});var a=o(2e4);o(87980);const s={props:{group:{type:Object},profile:{type:Object}},components:{"autocomplete-input":a.default},data:function(){return{query:"",recent:[],loaded:!1,usernames:[],isSubmitting:!1}},methods:{open:function(){this.$refs.modal.show()},close:function(){this.$refs.modal.hide()},autocompleteSearch:function(t){var e=this;return t&&0!=t.length?axios.post("/api/v0/groups/search/invite/friends",{q:t,g:this.group.id,v:"0.2"}).then((function(t){return t.data.filter((function(t){return-1==e.usernames.map((function(t){return t.username})).indexOf(t.username)}))})):[]},getSearchResultValue:function(t){return t.username},onSearchSubmit:function(t){this.usernames.push(t),this.$refs.autocomplete.value=""},removeUsername:function(t){event.currentTarget.blur(),this.usernames.splice(t,1)},submitInvites:function(){var t=this;this.isSubmitting=!0,event.currentTarget.blur(),axios.post("/api/v0/groups/search/invite/friends/send",{g:this.group.id,uids:this.usernames.map((function(t){return t.id}))}).then((function(e){t.usernames=[],t.isSubmitting=!1,t.close(),swal("Success","Successfully sent invite(s)","success")})).catch((function(e){t.usernames=[],t.isSubmitting=!1,422===e.response.status?swal("Error",e.response.data.error,"error"):swal("Oops!","An error occured, please try again later","error"),t.close()}))}}}},68902:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>a});const a={props:{group:{type:Object},compact:{type:Boolean,default:!1},showStats:{type:Boolean,default:!1},truncateTitleLength:{type:Number,default:19},truncateDescriptionLength:{type:Number,default:22}},data:function(){return{titleLength:40,descriptionLength:60}},mounted:function(){this.compact&&(this.titleLength=19,this.descriptionLength=22),19!=this.truncateTitleLength&&(this.titleLength=this.truncateTitleLength),22!=this.truncateDescriptionLength&&(this.descriptionLength=this.truncateDescriptionLength)},methods:{prettyCount:function(t){return App.util.format.count(t)},truncate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:140;return t.length<=e?t:t.substr(0,e)+" ..."}}}},43599:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>i});var a=o(7764),s=o(69513);const i={props:{groupId:{type:String},status:{type:Object},profile:{type:Object}},components:{"read-more":a.default,"comment-drawer":s.default},data:function(){return{loaded:!1}},mounted:function(){this.init()},methods:{init:function(){this.loaded=!0,this.$refs.modal.show()},shortTimestamp:function(t){return window.App.util.format.timeAgo(t)}}}},89905:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>s});var a=o(2e4);o(87980);const s={props:{group:{type:Object},profile:{type:Object}},components:{autocomplete:a.default},data:function(){return{query:"",recent:[],loaded:!1}},methods:{open:function(){this.fetchRecent(),this.$refs.modal.show()},close:function(){this.$refs.modal.hide()},fetchRecent:function(){var t=this;axios.get("/api/v0/groups/search/getrec",{params:{g:this.group.id}}).then((function(e){t.recent=e.data}))},autocompleteSearch:function(t){return!t||t.length<2?[]:axios.post("/api/v0/groups/search/lac",{q:t,g:this.group.id,v:"0.2"}).then((function(t){return t.data}))},getSearchResultValue:function(t){return t.username},onSearchSubmit:function(t){if(t.length<1)return[];axios.post("/api/v0/groups/search/addrec",{g:this.group.id,q:{value:t.username,action:t.url}}).then((function(e){location.href=t.url}))},viewMyActivity:function(){location.href="/groups/".concat(this.group.id,"/user/").concat(this.profile.id,"?rf=group_search")},viewGroupSearch:function(){location.href="/groups/home?ct=gsearch&rf=group_search&rfid=".concat(this.group.id)},addToRecentSearches:function(){}}}},6234:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>v});var a=o(69513),s=o(84125),i=o(78841),r=o(21466),n=o(98051),l=o(37128),c=o(61518),d=o(79427),u=o(42013),p=o(93934),m=o(40798),f=o(76746);function h(t){return function(t){if(Array.isArray(t))return g(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)return;if("string"==typeof t)return g(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return g(t,e)}(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 g(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,a=new Array(e);o@'+s+"";case"from":return a+' from '+s+"";case"custom":return a+' '+o+" "+s+""}},lightbox:function(t){window.location.href=t.media_attachments[0].url},labelRedirect:function(t){var e="/i/redirect?url="+encodeURI(this.config.features.label.covid.url);window.location.href=e},likeStatus:function(t,e){e.currentTarget.blur();var o=t.favourites_count,a=t.favourited?"unlike":"like";axios.post("/api/v0/groups/status/"+a,{sid:t.id,gid:this.groupId}).then((function(s){t.favourited=a,t.favourites_count=a?o+1:o-1,t.favourited=a,t.favourited&&setTimeout((function(){e.target.classList.add("animate__animated","animate__bounce")}),100)})).catch((function(t){422==t.response.status?swal("Error",t.response.data.error,"error"):swal("Error","Something went wrong, please try again later.","error")})),window.navigator.vibrate(200)},commentFocus:function(t){t.target.blur(),this.showCommentDrawer=!this.showCommentDrawer},commentSubmit:function(t,e){var o=this;this.replySending=!0;var a=t.id,s=this.replyText,i=this.config.uploader.max_caption_length;if(s.length>i)return this.replySending=!1,void swal("Comment Too Long","Please make sure your comment is "+i+" characters or less.","error");axios.post("/i/comment",{item:a,comment:s,sensitive:this.replyNsfw}).then((function(t){o.replyText="",o.replies.push(t.data.entity),o.$refs.replyModal.hide()})),this.replySending=!1},owner:function(t){return this.profile.id===t.account.id},admin:function(){return 1==this.profile.is_admin},ownerOrAdmin:function(t){return this.owner(t)||this.admin()},ctxMenu:function(){this.$refs.contextMenu.open()},timeAgo:function(t){return App.util.format.timeAgo(t)},statusDeleted:function(t){this.$emit("status-delete")},showPostModal:function(){this.showModal=!0,this.$refs.modal.init()},showLikesModal:function(t){t&&t.hasOwnProperty("currentTarget")&&t.currentTarget().blur(),this.$emit("likes-modal")},infiniteLikesHandler:function(t){var e=this;axios.get("/api/v0/groups/"+this.groupId+"/likes/"+this.status.id,{params:{page:this.likesPage}}).then((function(o){var a,s=o.data;s.data.length>0?((a=e.likes).push.apply(a,h(s.data)),e.likesPage++,t.loaded()):t.complete()}))}}}},96895:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>a});const a={}},70714:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>a});const a={props:{group:{type:Object}}}},9125:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>a});const a={props:{group:{type:Object},isAdmin:{type:Boolean,default:!1},isMember:{type:Boolean,default:!1}},data:function(){return{requestingMembership:!1}},methods:{joinGroup:function(){var t=this;this.requestingMembership=!0,axios.post("/api/v0/groups/"+this.group.id+"/join").then((function(e){t.requestingMembership=!1,t.$emit("refresh")})).catch((function(e){var o=e.response;422==o.status&&(t.requestingMembership=!1,swal("Oops!",o.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.group.id+"/cjr").then((function(e){t.requestingMembership=!1,t.$emit("refresh")})).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.group.id+"/leave").then((function(e){t.$emit("refresh")}))}}}},11493:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>s});var a=o(94559);const s={props:{group:{type:Object},isAdmin:{type:Boolean,default:!1},isMember:{type:Boolean,default:!1},atabs:{type:Object},profile:{type:Object}},components:{"search-modal":a.default},methods:{showSearchModal:function(){event.currentTarget.blur(),this.$refs.searchModal.open()}}}},79270:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>a});const a={props:{status:{type:Object},cursorLimit:{type:Number,default:200}},data:function(){return{fullContent:null,content:null,cursor:200}},mounted:function(){this.cursor=this.cursorLimit,this.fullContent=this.status.content,this.content=this.status.content.substr(0,this.cursor)},methods:{readMore:function(){this.cursor=this.cursor+200,this.content=this.fullContent.substr(0,this.cursor)}}}},93350:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>r});var a=o(75386);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)return;if("string"==typeof t)return i(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return i(t,e)}(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 o=0,a=new Array(e);o{"use strict";o.r(e),o.d(e,{default:()=>s});var a=o(95002);const s={props:{profile:{type:Object}},data:function(){return{feed:[],ids:[],page:1,tab:"feed",initalLoad:!1,emptyFeed:!0}},components:{"group-status":a.default},mounted:function(){this.fetchFeed()},methods:{fetchFeed:function(){var t=this;axios.get("/api/v0/groups/self/feed",{params:{initial:!0}}).then((function(e){t.page++,t.feed=e.data,t.emptyFeed=0===t.feed.length,t.initalLoad=!0}))},infiniteFeed:function(t){var e=this;this.feed.length<2||this.page>5?t.complete():axios.get("/api/v0/groups/self/feed",{params:{page:this.page}}).then((function(o){if(o.data.length){var a=o.data,s=e;a.forEach((function(t){-1==s.ids.indexOf(t.id)&&(s.ids.push(t.id),s.feed.push(t))})),t.loaded(),e.page++}else t.complete()}))},switchTab:function(t){this.tab=t},gotoDiscover:function(){this.$emit("switchtab","discover")}}}},7755:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>r});var a=o(75386);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)return;if("string"==typeof t)return i(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return i(t,e)}(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 o=0,a=new Array(e);o{"use strict";o.r(e),o.d(e,{default:()=>a});const a={}},93543:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>a});const a={data:function(){return{notifications:[],initialLoad:!1,loading:!0,page:1}},mounted:function(){this.fetchNotifications()},methods:{fetchNotifications:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then((function(t){window._sharedData.curUser=t.data,window.App.util.navatar()})),axios.get("/api/v0/groups/self/notifications").then((function(e){var o=e.data.filter((function(t){return!("share"==t.type&&!t.status)&&(!("comment"==t.type&&!t.status)&&(!("mention"==t.type&&!t.status)&&(!("favourite"==t.type&&!t.status)&&!("follow"==t.type&&!t.account))))}));t.notifications=o}))},truncate:function(t){return t.length<=15?t:t.slice(0,15)+"..."},timeAgo:function(t){var e=Date.parse(t),o=Math.floor((new Date-e)/1e3),a=Math.floor(o/31536e3);return a>=1?a+"y":(a=Math.floor(o/604800))>=1?a+"w":(a=Math.floor(o/86400))>=1?a+"d":(a=Math.floor(o/3600))>=1?a+"h":(a=Math.floor(o/60))>=1?a+"m":Math.floor(o)+"s"},mentionUrl:function(t){return"/p/"+t.account.username+"/"+t.id},followProfile:function(t){var e=this,o=t.account.id;axios.post("/i/follow",{item:o}).then((function(t){e.notifications.map((function(t){t.account.id===o&&(t.relationship.following=!0)}))})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))},viewContext:function(t){switch(t.type){case"follow":return t.account.url;case"mention":case"like":case"favourite":case"comment":return t.status.url;case"tagged":return t.tagged.post_url;case"direct":return"/account/direct/t/"+t.account.id}return"/"},getProfileUrl:function(t){return 1==t.local?t.url:"/i/web/profile/_/"+t.id},getPostUrl:function(t){return 1==t.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id}}}},60217:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>a});const a={data:function(){return{q:void 0}}}},33664:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>a});const a={props:{group:{type:Object},status:{type:Object},profile:{type:Object},showGroupHeader:{type:Boolean,default:!1},showGroupChevron:{type:Boolean,default:!1}},data:function(){return{reportTypes:[{key:"spam",title:"It's spam"},{key:"sensitive",title:"Nudity or sexual activity"},{key:"abusive",title:"Bullying or harassment"},{key:"underage",title:"I think this account is underage"},{key:"violence",title:"Violence or dangerous organizations"},{key:"copyright",title:"Copyright infringement"},{key:"impersonation",title:"Impersonation"},{key:"scam",title:"Scam or fraud"},{key:"terrorism",title:"Terrorism or terrorism-related content"}]}},methods:{formatCount:function(t){return App.util.format.count(t)},statusUrl:function(t){return"/groups/"+t.gid+"/p/"+t.id},profileUrl:function(t){return"/groups/"+t.gid+"/user/"+t.account.id},timestampFormat:function(t){var e=new Date(t);return e.toDateString()+" "+e.toLocaleTimeString()},shortTimestamp:function(t){return window.App.util.format.timeAgo(t)},statusCardUsernameFormat:function(t){if(1==t.account.local)return t.account.username;var e=window.App.config.username.remote.format,o=window.App.config.username.remote.custom,a=t.account.username,s=document.createElement("a");switch(s.href=t.account.url,s=s.hostname,e){case"@":default:return a+'@'+s+"";case"from":return a+' from '+s+"";case"custom":return a+' '+o+" "+s+""}},sendReport:function(t){var e=this,o=document.createElement("div");o.classList.add("list-group"),this.reportTypes.forEach((function(t){var e=document.createElement("button");e.classList.add("list-group-item","small"),e.innerHTML=t.title,e.onclick=function(){document.dispatchEvent(new CustomEvent("reportOption",{detail:{key:t.key,title:t.title}}))},o.appendChild(e)}));var a=document.createElement("div");a.appendChild(o),swal({title:"Report Content",icon:"warning",content:a,buttons:!1}),document.addEventListener("reportOption",(function(t){console.log(t.detail),e.showConfirmation(t.detail)}),{once:!0})},showConfirmation:function(t){var e=this;console.log(t),swal({title:"Confirmation",text:"You selected ".concat(t.title,". Do you want to proceed?"),icon:"info",buttons:!0}).then((function(o){o?axios.post("/api/v0/groups/".concat(e.status.gid,"/report/create"),{type:t.key,id:e.status.id}).then((function(t){swal("Confirmed!","Your report has been submitted.","success")})):swal("Cancelled","Your report was not submitted.","error")}))}}}},75e3:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>s});var a=o(69513);const s={props:{showCommentDrawer:{type:Boolean},permalinkMode:{type:Boolean},childContext:{type:Object},status:{type:Object},profile:{type:Object},groupId:{type:String}},components:{"comment-drawer":a.default}}},79254:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>a});const a={props:{loaded:{type:Boolean,default:!1}}}},29579:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>s});var a=o(2e4);o(87980);const s={data:function(){return{initialLoad:!1,tabs:[{name:"Your Feed",icon:"fas fa-list",path:"/groups/feed"},{name:"Discover",icon:"fas fa-compass",path:"/groups/discover"},{name:"Your Groups",icon:"fas fa-list",path:"/groups/joins"}],config:{},groups:[],profile:{},tab:null,searchQuery:void 0}},components:{autocomplete:a.default},methods:{autocompleteSearch:function(t){var e=this;return!t||t.length<2?[]:(this.searchQuery=t,t.startsWith("#")?(this.$bvToast.toast(t,{title:"Hashtag detected",variant:"info",autoHideDelay:5e3}),[]):axios.post("/api/v0/groups/search/global",{q:t,v:"0.2"}).then((function(t){return e.searchLoading=!1,t.data})).catch((function(t){return 422===t.response.status&&e.$bvToast.toast(t.response.data.error.message,{title:"Cannot display search results",variant:"danger",autoHideDelay:5e3}),[]})))},getSearchResultValue:function(t){return t.name},onSearchSubmit:function(t){if(t.length<1)return[];location.href=t.url},truncateName:function(t){return t.length<24?t:t.substr(0,23)+"..."}}}},87034:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>r});var a=o(2e4);o(87980);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)return;if("string"==typeof t)return i(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return i(t,e)}(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 o=0,a=new Array(e);o1&&void 0!==arguments[1]?arguments[1]:30;return t.length<=e?t:t.slice(0,e)+"..."},timeAgo:function(t){return window.App.util.format.timeAgo(t)},formatCount:function(t){return t?new Intl.NumberFormat("en-CA",{notation:"compact",compactDisplay:"short"}).format(t):0},logout:function(){axios.post("/logout").then((function(t){location.href="/"})).catch((function(t){location.href="/"}))},openUserInterfaceSettings:function(){event.currentTarget.blur(),this.$refs.uis.show()},toggleUi:function(t){event.currentTarget.blur(),this.uiColorScheme=t},toggleProfileLayout:function(t){event.currentTarget.blur(),this.profileLayout=t}}}},33422:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>a});const a={props:["status"]}},36639:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>s});var a=o(18634);const s={props:["status"],data:function(){return{sensitive:this.status.sensitive,cursor:0}},created:function(){},beforeDestroy:function(){},methods:{toggleContentWarning:function(t){this.$emit("togglecw")},toggleLightbox:function(t){(0,a.default)({el:t.target,gallery:"#carousel-"+this.status.id,position:this.$refs.carousel.currentPage})},altText:function(t){var e=t.description;return e||"Photo was not tagged with any alt text."},keypressNavigation:function(t){var e=this.$refs.carousel;if("37"==t.keyCode){t.preventDefault();var o="backward";e.advancePage(o),e.$emit("navigation-click",o)}if("39"==t.keyCode){t.preventDefault();var a="forward";e.advancePage(a),e.$emit("navigation-click",a)}}}}},9266:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>s});var a=o(18634);const s={props:["status"],data:function(){return{sensitive:this.status.sensitive}},mounted:function(){},methods:{altText:function(t){var e=t.media_attachments[0].description;return e||"Photo was not tagged with any alt text."},toggleContentWarning:function(t){this.$emit("togglecw")},toggleLightbox:function(t){(0,a.default)({el:t.target})},width:function(){if(this.status.media_attachments[0].meta&&this.status.media_attachments[0].meta.original&&this.status.media_attachments[0].meta.original.width)return this.status.media_attachments[0].meta.original.width},height:function(){if(this.status.media_attachments[0].meta&&this.status.media_attachments[0].meta.original&&this.status.media_attachments[0].meta.original.height)return this.status.media_attachments[0].meta.original.height}}}},35986:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>a});const a={props:["status"]}},25189:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>a});const a={props:["status"],methods:{altText:function(t){var e=t.media_attachments[0].description;return e||"Video was not tagged with any alt text."},playOrPause:function(t){var e=t.target;1==e.getAttribute("playing")?(e.removeAttribute("playing"),e.pause()):(e.setAttribute("playing",1),e.play())},toggleContentWarning:function(t){this.$emit("togglecw")},poster:function(){var t=this.status.media_attachments[0].preview_url;if(!t.endsWith("no-preview.jpg")&&!t.endsWith("no-preview.png"))return t}}}},45076:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>r});var a=o(74692);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)return;if("string"==typeof t)return i(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return i(t,e)}(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 o=0,a=new Array(e);o5?t.complete():axios.get("/api/pixelfed/v1/notifications",{params:{max_id:this.notificationMaxId}}).then((function(o){if(o.data.length){var a,i=o.data.filter((function(t){return!("share"==t.type&&!t.status)&&(!("comment"==t.type&&!t.status)&&(!("mention"==t.type&&!t.status)&&(!("favourite"==t.type&&!t.status)&&(!("follow"==t.type&&!t.account)&&!_.find(e.notifications,{id:t.id})))))})),r=i.map((function(t){return t.id}));e.notificationMaxId=Math.min.apply(Math,s(r)),(a=e.notifications).push.apply(a,s(i)),e.notificationCursor++,t.loaded()}else t.complete()}))},truncate:function(t){return t.length<=15?t:t.slice(0,15)+"..."},timeAgo:function(t){return window.App.util.format.timeAgo(t)},mentionUrl:function(t){return"/p/"+t.account.username+"/"+t.id},notificationPoll:function(){var t=this.notifications.length>5?15e3:12e4,e=this;setInterval((function(){axios.get("/api/pixelfed/v1/notifications").then((function(t){var o=t.data.filter((function(t){return!("share"==t.type||e.notificationMaxId>=t.id)}));if(o.length){var i,r=o.map((function(t){return t.id}));e.notificationMaxId=Math.max.apply(Math,s(r)),(i=e.notifications).unshift.apply(i,s(o));var n=new Audio("/static/beep.mp3");n.volume=.7,n.play(),a(".notification-card .far.fa-bell").addClass("fas text-danger").removeClass("far text-muted")}}))}),t)},fetchFollowRequests:function(){var t=this;1==window._sharedData.curUser.locked&&axios.get("/account/follow-requests.json").then((function(e){t.followRequests=e.data}))},redirect:function(t){window.location.href=t},notificationPreview:function(t){return t.status&&t.status.hasOwnProperty("media_attachments")&&t.status.media_attachments.length?t.status.media_attachments[0].preview_url:"/storage/no-preview.png"},getProfileUrl:function(t){return 1==t.local?t.url:"/i/web/profile/_/"+t.id},getPostUrl:function(t){if(t)return t.hasOwnProperty("local")&&1!=t.local?"/i/web/post/_/"+t.account.id+"/"+t.id:t.url},refreshNotifications:function(){this.loading=!0,this.attemptedRefresh=!0,this.fetchNotifications()}}}},59488:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>s});var a=o(74692);const s={props:["feed","status","profile","size","modal"],data:function(){return{activeSession:!1}},mounted:function(){var t=document.querySelector("body");this.activeSession=!!t.classList.contains("loggedIn")},methods:{reportUrl:function(t){return"/i/report?type="+(t.in_reply_to?"comment":"post")+"&id="+t.id},timestampFormat:function(t){var e=new Date(t);return e.toDateString()+" "+e.toLocaleTimeString()},editUrl:function(t){return t.url+"/edit"},redirect:function(t){window.location.href=t},replyUrl:function(t){return"/p/"+this.profile.username+"/"+(t.account.id==this.profile.id?t.id:t.in_reply_to_id)},mentionUrl:function(t){return"/p/"+t.account.username+"/"+t.id},statusOwner:function(t){return parseInt(t.account.id)==parseInt(this.profile.id)},deletePost:function(){this.$emit("deletePost"),a("#mt_pid_"+this.status.id).modal("hide")},hidePost:function(t){t.sensitive=!0,a("#mt_pid_"+t.id).modal("hide")},moderatePost:function(t,e,o){var a=t.account.username;switch(e){case"autocw":var s="Are you sure you want to enforce CW for "+a+" ?";swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0});break;case"suspend":s="Are you sure you want to suspend the account of "+a+" ?",swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0})}},muteProfile:function(t){0!=a("body").hasClass("loggedIn")&&axios.post("/i/mute",{type:"user",item:t.account.id}).then((function(e){swal("Success","You have successfully muted "+t.account.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))},blockProfile:function(t){0!=a("body").hasClass("loggedIn")&&axios.post("/i/block",{type:"user",item:t.account.id}).then((function(e){swal("Success","You have successfully blocked "+t.account.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))},statusUrl:function(t){return 1==t.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},profileUrl:function(t){return 1==t.local?t.account.url:"/i/web/profile/_/"+t.account.id},closeModal:function(){a("#mt_pid_"+this.status.id).modal("hide")}}}},81504:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>a});const a={props:["list","scope"],data:function(){return{loading:!0,show:!0,stories:{}}},mounted:function(){this.fetchStories()},methods:{fetchStories:function(){var t=this;axios.get("/api/web/stories/v1/recent").then((function(e){e.data;e.data.length?(t.stories=e.data,t.loading=!1):t.show=!1})).catch((function(e){t.loading=!1,t.$bvToast.toast("Cannot load stories. Please try again later.",{title:"Error",variant:"danger",autoHideDelay:5e3}),t.show=!1}))},showStory:function(t){var e;switch(this.scope){case"home":e="/?t=1";break;case"local":e="/?t=2";break;case"network":e="/?t=3"}window.location.href=this.stories[t].url+e},systemStory:function(){window.location.href="/i/_platform/stories/whats-new"}}}},70384:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>s});var a=o(74692);const s={props:["status","profile"],data:function(){return{ctxMenuStatus:!1,ctxMenuRelationship:!1,ctxEmbedPayload:!1,copiedEmbed:!1,replySending:!1,ctxEmbedShowCaption:!0,ctxEmbedShowLikes:!1,ctxEmbedCompactMode:!1,confirmModalTitle:"Are you sure?",confirmModalIdentifer:null,confirmModalType:!1}},watch:{ctxEmbedShowCaption:function(t,e){1==t&&(this.ctxEmbedCompactMode=!1);var o=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,o)},ctxEmbedShowLikes:function(t,e){1==t&&(this.ctxEmbedCompactMode=!1);var o=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,o)},ctxEmbedCompactMode:function(t,e){1==t&&(this.ctxEmbedShowCaption=!1,this.ctxEmbedShowLikes=!1);var o=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,o)}},methods:{open:function(){this.ctxMenu()},ctxMenu:function(){var t=this;this.ctxMenuStatus=this.status,this.ctxEmbedPayload=window.App.util.embed.post(this.status.url),this.status.account.id==this.profile.id?(this.ctxMenuRelationship=!1,this.$refs.ctxModal.show()):axios.get("/api/pixelfed/v1/accounts/relationships",{params:{"id[]":this.status.account.id}}).then((function(e){t.ctxMenuRelationship=e.data[0],t.$refs.ctxModal.show()}))},closeCtxMenu:function(){this.copiedEmbed=!1,this.ctxMenuStatus=!1,this.ctxMenuRelationship=!1,this.$refs.ctxModal.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxReportOther.hide(),this.closeModals()},ctxMenuCopyLink:function(){var t=this.ctxMenuStatus;navigator.clipboard.writeText(t.url),this.closeModals()},ctxMenuGoToPost:function(){var t=this.ctxMenuStatus;window.location.href=this.statusUrl(t),this.closeCtxMenu()},ctxMenuGoToProfile:function(){var t=this.ctxMenuStatus;window.location.href=this.profileUrl(t),this.closeCtxMenu()},ctxMenuReportPost:function(){this.$refs.ctxModal.hide(),this.$refs.ctxReport.show()},ctxMenuEmbed:function(){this.closeModals(),this.$refs.ctxEmbedModal.show()},ctxMenuShare:function(){this.$refs.ctxModal.hide(),this.$refs.ctxShareModal.show()},closeCtxShareMenu:function(){this.$refs.ctxShareModal.hide(),this.$refs.ctxModal.show()},ctxCopyEmbed:function(){navigator.clipboard.writeText(this.ctxEmbedPayload),this.ctxEmbedShowCaption=!0,this.ctxEmbedShowLikes=!1,this.ctxEmbedCompactMode=!1,this.$refs.ctxEmbedModal.hide()},ctxModMenuShow:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.show()},ctxModOtherMenuShow:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.hide(),this.$refs.ctxModOtherModal.show()},ctxModMenu:function(){this.$refs.ctxModal.hide()},ctxModMenuClose:function(){this.closeModals()},ctxModOtherMenuClose:function(){this.closeModals(),this.$refs.ctxModModal.show()},formatCount:function(t){return App.util.format.count(t)},openCtxReportOtherMenu:function(){var t=this.ctxMenuStatus;this.closeCtxMenu(),this.ctxMenuStatus=t,this.$refs.ctxReportOther.show()},ctxReportMenuGoBack:function(){this.$refs.ctxReportOther.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxModal.show()},ctxReportOtherMenuGoBack:function(){this.$refs.ctxReportOther.hide(),this.$refs.ctxModal.hide(),this.$refs.ctxReport.show()},sendReport:function(t){var e=this,o=this.ctxMenuStatus.id;swal({title:"Confirm Report",text:"Are you sure you want to report this post?",icon:"warning",buttons:!0,dangerMode:!0}).then((function(a){a?axios.post("/i/report/",{report:t,type:"post",id:o}).then((function(t){e.closeCtxMenu(),swal("Report Sent!","We have successfully received your report.","success")})).catch((function(t){swal("Oops!","There was an issue reporting this post.","error")})):e.closeCtxMenu()}))},closeModals:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.hide(),this.$refs.ctxModOtherModal.hide(),this.$refs.ctxShareModal.hide(),this.$refs.ctxEmbedModal.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxReportOther.hide(),this.$refs.ctxConfirm.hide()},openCtxStatusModal:function(){this.closeModals(),this.$refs.ctxStatusModal.show()},openConfirmModal:function(){this.closeModals(),this.$refs.ctxConfirm.show()},closeConfirmModal:function(){this.closeModals(),this.confirmModalTitle="Are you sure?",this.confirmModalType=!1,this.confirmModalIdentifer=null},confirmModalConfirm:function(){var t=this;if("post.delete"===this.confirmModalType)axios.post("/i/delete",{type:"status",item:this.confirmModalIdentifer}).then((function(e){t.feed=t.feed.filter((function(e){return e.id!=t.confirmModalIdentifer})),t.closeConfirmModal()})).catch((function(e){t.closeConfirmModal(),swal("Error","Something went wrong. Please try again later.","error")}));this.closeConfirmModal()},confirmModalCancel:function(){this.closeConfirmModal()},moderatePost:function(t,e,o){var a=this,s=(t.account.username,t.id,""),i=this;switch(e){case"addcw":s="Are you sure you want to add a content warning to this post?",swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0}).then((function(o){o&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(e){swal("Success","Successfully added content warning","success"),t.sensitive=!0,i.closeModals(),i.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),i.closeModals(),i.ctxModMenuClose()}))}));break;case"remcw":s="Are you sure you want to remove the content warning on this post?",swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0}).then((function(o){o&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(e){swal("Success","Successfully added content warning","success"),t.sensitive=!1,i.closeModals(),i.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),i.closeModals(),i.ctxModMenuClose()}))}));break;case"unlist":s="Are you sure you want to unlist this post?",swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0}).then((function(o){o&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(e){a.feed=a.feed.filter((function(e){return e.id!=t.id})),swal("Success","Successfully unlisted post","success"),i.closeModals(),i.ctxModMenuClose()})).catch((function(t){i.closeModals(),i.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")}))}));break;case"spammer":s="Are you sure you want to mark this user as a spammer? All existing and future posts will be unlisted on timelines and a content warning will be applied.",swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0}).then((function(o){o&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(t){swal("Success","Successfully marked account as spammer","success"),i.closeModals(),i.ctxModMenuClose()})).catch((function(t){i.closeModals(),i.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")}))}))}},shareStatus:function(t,e){0!=a("body").hasClass("loggedIn")&&(this.closeModals(),axios.post("/i/share",{item:t.id}).then((function(e){t.reblogs_count=e.data.count,t.reblogged=!t.reblogged,t.reblogged?swal("Success","You shared this post","success"):swal("Success","You unshared this post","success")})).catch((function(t){swal("Error","Something went wrong, please try again later.","error")})))},statusUrl:function(t){return 1==t.account.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},profileUrl:function(t){return 1==t.account.local?t.account.url:"/i/web/profile/_/"+t.account.id},deletePost:function(t){var e=this;0!=a("body").hasClass("loggedIn")&&0!=this.ownerOrAdmin(t)&&0!=window.confirm("Are you sure you want to delete this post?")&&axios.post("/i/delete",{type:"status",item:t.id}).then((function(o){e.$emit("status-delete",t.id),e.closeModals()})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))},owner:function(t){return this.profile.id===t.account.id},admin:function(){return 1==this.profile.is_admin},ownerOrAdmin:function(t){return this.owner(t)||this.admin()},archivePost:function(t){var e=this;0!=window.confirm("Are you sure you want to archive this post?")&&axios.post("/api/pixelfed/v2/status/"+t.id+"/archive").then((function(o){e.$emit("status-delete",t.id),e.closeModals()}))},unarchivePost:function(t){var e=this;0!=window.confirm("Are you sure you want to unarchive this post?")&&axios.post("/api/pixelfed/v2/status/"+t.id+"/unarchive").then((function(t){e.closeModals()}))}}}},78615:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>i});var a=o(53744),s=o(74692);const i={props:{reactions:{type:Object},status:{type:Object},profile:{type:Object},showBorder:{type:Boolean,default:!0},showBorderTop:{type:Boolean,default:!1},fetchState:{type:Boolean,default:!1}},components:{"context-menu":a.default},data:function(){return{authenticated:!1,tab:"vote",selectedIndex:null,refreshTimeout:void 0,activeRefreshTimeout:!1,refreshingResults:!1}},mounted:function(){var t=this;this.fetchState?axios.get("/api/v1/polls/"+this.status.poll.id).then((function(e){t.status.poll=e.data,e.data.voted&&(t.selectedIndex=e.data.own_votes[0],t.tab="voted"),t.status.poll.expired=new Date(t.status.poll.expires_at){"use strict";o.r(e),o.d(e,{default:()=>r});var a=o(53744),s=o(78841),i=o(74692);const r={props:{status:{type:Object},recommended:{type:Boolean,default:!1},reactionBar:{type:Boolean,default:!0},hasTopBorder:{type:Boolean,default:!1},size:{type:String,validator:function(t){return["regular","small"].includes(t)},default:"regular"}},components:{"context-menu":a.default,"poll-card":s.default},data:function(){return{config:window.App.config,profile:{},loading:!0,replies:[],replyId:null,lightboxMedia:!1,showSuggestions:!0,showReadMore:!0,replyStatus:{},replyText:"",replyNsfw:!1,emoji:window.App.util.emoji,content:void 0}},mounted:function(){var t=this;this.profile=window._sharedData.curUser,this.content=this.status.content,this.status.emojis.forEach((function(e){var o=''.concat(e.shortcode,'');t.content=t.content.replace(":".concat(e.shortcode,":"),o)}))},methods:{formatCount:function(t){return App.util.format.count(t)},statusUrl:function(t){return 1==t.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},profileUrl:function(t){return 1==t.local?t.account.url:"/i/web/profile/_/"+t.account.id},timestampFormat:function(t){var e=new Date(t);return e.toDateString()+" "+e.toLocaleTimeString()},shortTimestamp:function(t){return window.App.util.format.timeAgo(t)},statusCardUsernameFormat:function(t){if(1==t.account.local)return t.account.username;var e=window.App.config.username.remote.format,o=window.App.config.username.remote.custom,a=t.account.username,s=document.createElement("a");switch(s.href=t.account.url,s=s.hostname,e){case"@":default:return a+'@'+s+"";case"from":return a+' from '+s+"";case"custom":return a+' '+o+" "+s+""}},lightbox:function(t){window.location.href=t.media_attachments[0].url},labelRedirect:function(t){var e="/i/redirect?url="+encodeURI(this.config.features.label.covid.url);window.location.href=e},likeStatus:function(t,e){if(0!=i("body").hasClass("loggedIn")){var o=t.favourites_count;t.favourited=!t.favourited,axios.post("/i/like",{item:t.id}).then((function(e){t.favourites_count=e.data.count,t.favourited=!!t.favourited})).catch((function(e){t.favourited=!!t.favourited,t.favourites_count=o,swal("Error","Something went wrong, please try again later.","error")})),window.navigator.vibrate(200),t.favourited&&setTimeout((function(){e.target.classList.add("animate__animated","animate__bounce")}),100)}},commentFocus:function(t,e){this.$emit("comment-focus",t)},commentSubmit:function(t,e){var o=this;this.replySending=!0;var a=t.id,s=this.replyText,i=this.config.uploader.max_caption_length;if(s.length>i)return this.replySending=!1,void swal("Comment Too Long","Please make sure your comment is "+i+" characters or less.","error");axios.post("/i/comment",{item:a,comment:s,sensitive:this.replyNsfw}).then((function(t){o.replyText="",o.replies.push(t.data.entity),o.$refs.replyModal.hide()})),this.replySending=!1},owner:function(t){return this.profile.id===t.account.id},admin:function(){return 1==this.profile.is_admin},ownerOrAdmin:function(t){return this.owner(t)||this.admin()},ctxMenu:function(){this.$refs.contextMenu.open()},timeAgo:function(t){return App.util.format.timeAgo(t)},statusDeleted:function(t){this.$emit("status-delete",t)}}}},85323:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-discover-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"},[t.loaded?[e("div",{staticClass:"container-fluid"},[e("div",{staticClass:"py-5"},[e("h1",[t._v("Discover")])]),t._v(" "),e("div",{staticClass:"popular row"},t._l(t.popularGroups,(function(t,o){return e("group-card",{key:o,attrs:{group:t}})})),1)])]:e("loader",{attrs:{loaded:t.loaded}})],2)],1)])},s=[]},46289:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"groups-home-component w-100 h-100"},[t.initialLoad?e("div",{staticClass:"row border-bottom m-0 p-0"},[e("sidebar"),t._v(" "),e("self-feed",{attrs:{profile:t.profile},on:{switchtab:t.switchTab}})],1):e("div",{staticClass:"row justify-content-center mt-5"},[e("b-spinner")],1)])},s=[]},11913:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-joins-component"},[e("div",{staticClass:"row border-bottom m-0 p-0"},[e("sidebar"),t._v(" "),e("div",{staticClass:"col-12 col-md-9 px-0 mx-0"},[t.loaded?[e("div",{staticClass:"px-5 pt-4 pb-2"},[e("h2",{staticClass:"fw-bold"},[t._v("My Groups")]),t._v(" "),e("self-groups",{attrs:{profile:t.profile}})],1)]:e("loader",{attrs:{loaded:t.loaded}})],2)],1)])},s=[]},5852:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-notifications-component"},[e("div",{staticClass:"row border-bottom m-0 p-0"},[e("sidebar"),t._v(" "),e("div",{staticClass:"col-12 col-md-9 px-0 mx-0"},[t.loaded?[e("div",{staticClass:"px-5 pt-4 pb-2"},[e("h2",{staticClass:"fw-bold"},[t._v("Group Notifications")])])]:e("loader",{attrs:{loaded:t.loaded}})],2)],1)])},s=[]},93336:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"groups-home-component w-100 h-100"},[t.initialLoad?e("div",{staticClass:"row border-bottom m-0 p-0"},[e("sidebar"),t._v(" "),e("div",{staticClass:"col-12 col-md-10"},[e("self-notifications",{attrs:{profile:t.profile}})],1)],1):e("div",{staticClass:"row justify-content-center mt-5"},[e("b-spinner")],1)])},s=[]},93409:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-component"},["home"===t.tab?e("div",[e("groups-home")],1):t._e(),t._v(" "),"createGroup"===t.tab?e("div",[e("create-group")],1):t._e(),t._v(" "),"show"===t.tab?e("div",[e("group-feed",{attrs:{"group-id":t.groupId,path:t.path}})],1):t._e()])},s=[]},78058:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"create-group-component col-12 col-md-9",staticStyle:{height:"100vh - 51px !important",overflow:"hidden"}},[t.hide?t._e():e("div",{staticClass:"row h-100 bg-lighter"},[e("div",{staticClass:"col-12 col-md-8 border-left"},[t._m(0),t._v(" "),e("div",{staticClass:"px-2 mb-5"},[e("div",{staticClass:"mt-4"},[e("text-input",{attrs:{label:"Group Name",value:t.name,hasLimit:!0,maxLimit:t.limit.name.max,placeholder:"Add your group name",helpText:"Alphanumeric characters only, you can change this later.",largeInput:!0},on:{update:function(e){return t.handleUpdate("name",e)}}}),t._v(" "),e("hr"),t._v(" "),e("select-input",{attrs:{label:"Group Type",value:t.membership,categories:t.membershipCategories,placeholder:"Select a type",helpText:"Select the membership type, you can change this later."},on:{update:function(e){return t.handleUpdate("membership",e)}}}),t._v(" "),e("hr"),t._v(" "),e("select-input",{attrs:{label:"Group Category",value:t.category,categories:t.categories,placeholder:"Select a category",helpText:"Choose the most relevant category to improve discovery and visibility"},on:{update:function(e){return t.handleUpdate("category",e)}}}),t._v(" "),e("hr"),t._v(" "),e("text-area-input",{attrs:{label:"Group Description",value:t.description,hasLimit:!0,maxLimit:t.limit.description.max,placeholder:"Describe your groups purpose in a few words",helpText:"Describe your groups purpose in a few words, you can change this later."},on:{update:function(e){return t.handleUpdate("description",e)}}}),t._v(" "),e("hr"),t._v(" "),e("checkbox-input",{attrs:{label:"Adult Content",inputText:"Allow Adult Content",value:t.configuration.adult,helpText:"Groups that allow adult content should enable this or risk suspension or deletion by instance admins. Illegal content is prohibited. You can change this later."}}),t._v(" "),e("hr"),t._v(" "),e("checkbox-input",{attrs:{label:"",inputText:"I agree to the the Community Guidelines and Terms of Use and will administrate this group according to the rules set by this server. I understand that failure to abide by these terms may lead to the suspension of this group, and my account.",value:t.hasConfirmed,strongText:!1},on:{update:function(e){return t.handleUpdate("hasConfirmed",e)}}}),t._v(" "),e("button",{staticClass:"btn btn-primary btn-block font-weight-bold rounded-pill mt-4",attrs:{disabled:!t.hasConfirmed},on:{click:t.createGroup}},[t._v("\n Create Group\n ")])],1)])]),t._v(" "),e("div",{staticClass:"col-12 col-md-4 bg-white"})])])},s=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg-dark p-5 mx-n3"},[e("p",{staticClass:"h1 font-weight-bold text-light mb-2"},[t._v("Create Group")]),t._v(" "),e("p",{staticClass:"text-lighter mb-0"},[t._v("Create a new federated Group that is compatible with other Pixelfed and Lemmy servers")])])}]},91057:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-feed-component"},[t.initalLoad?e("div",[e("div",{staticClass:"mb-3 border-bottom"},[e("div",{staticClass:"container-xl"},[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(" "),e("div",{staticClass:"container-xl group-feed-component-body"},[e("div",{staticClass:"row mb-5"},[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"},[t._m(0)]):e("div",{staticClass:"group-timeline"},[e("p",{staticClass:"font-weight-bold mb-1"},[t._v("Recent Posts")]),t._v(" "),t._l(t.feed,(function(o,a){return e("group-status",{key:"gs:"+o.id+a,attrs:{prestatus:o,profile:t.profile,"group-id":t.groupId},on:{"comment-focus":function(e){return t.commentFocus(a)},"status-delete":function(e){return t.statusDelete(a)},"likes-modal":function(e){return t.showLikesModal(a)}}})})),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(o,a){return e("div",{key:"modal_likes_"+a,staticClass:"list-group-item border-top-0 border-left-0 border-right-0 py-2",class:{"border-bottom-0":a+1==t.likes.length}},[e("div",{staticClass:"media align-items-center"},[e("a",{attrs:{href:o.url}},[e("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:o.avatar,alt:o.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:o.url}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(o.username)+"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),o.local?e("p",{staticClass:"text-muted mb-0 text-truncate",staticStyle:{"font-size":"14px"}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(o.display_name)+"\n\t\t\t\t\t\t\t\t\t\t\t\t\t")]):e("p",{staticClass:"text-muted mb-0 text-truncate mr-3",staticStyle:{"font-size":"14px"},attrs:{title:o.acct,"data-toggle":"dropdown","data-placement":"bottom"}},[e("span",{staticClass:"font-weight-bold"},[t._v(t._s(o.acct.split("@")[0]))]),e("span",{staticClass:"text-lighter"},[t._v("@"+t._s(o.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",[t._m(1)])]),t._v(" "),e("div",{staticClass:"col-12 col-md-5"},[e("group-info-card",{attrs:{group:t.group}})],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)]):e("div",[e("p",{staticClass:"text-center mt-5 pt-5 font-weight-bold"},[t._v("Loading...")])])])},s=[function(){var t=this._self._c;return t("div",{staticClass:"card card-body shadow-none border d-flex align-items-center justify-content-center",staticStyle:{height:"200px"}},[t("p",{staticClass:"font-weight-bold mb-0"},[this._v("No posts yet!")])])},function(){var t=this._self._c;return t("div",{staticClass:"card card-body mt-3 shadow-none border d-flex align-items-center justify-content-center",staticStyle:{height:"100px"}},[t("p",{staticClass:"lead mb-0"},[this._v("Join to participate in this group.")])])}]},36826:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"groups-home-component w-100 h-100"},[t.initialLoad?e("div",{staticClass:"row border-bottom m-0 p-0"},[e("div",{staticClass:"col-2 shadow",staticStyle:{height:"100vh",background:"#fff",top:"51px",overflow:"hidden","z-index":"1",position:"sticky"}},[e("div",{staticClass:"p-1"},[t._m(0),t._v(" "),e("div",{staticClass:"mb-3"},[e("autocomplete",{ref:"autocomplete",attrs:{search:t.autocompleteSearch,placeholder:"Search groups by name","aria-label":"Search groups by name","get-result-value":t.getSearchResultValue,debounceTime:700},on:{submit:t.onSearchSubmit},scopedSlots:t._u([{key:"result",fn:function(o){var a=o.result,s=o.props;return[e("li",t._b({staticClass:"autocomplete-result"},"li",s,!1),[e("div",{staticClass:"media align-items-center"},[a.local&&a.metadata&&a.metadata.hasOwnProperty("header")&&a.metadata.header.hasOwnProperty("url")?e("img",{attrs:{src:a.metadata.header.url,width:"32",height:"32"}}):e("div",{staticClass:"icon-placeholder"},[e("i",{staticClass:"fal fa-user-friends"})]),t._v(" "),e("div",{staticClass:"media-body text-truncate mr-3"},[e("p",{staticClass:"result-name mb-n1 font-weight-bold"},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.truncateName(a.name))+"\n\t\t\t\t\t\t\t\t\t\t\t"),a.verified?e("span",{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:"mb-0 text-muted",staticStyle:{"font-size":"10px"}},[a.local?t._e():e("span",{attrs:{title:"Remote Group"}},[e("i",{staticClass:"far fa-globe"})]),t._v(" "),a.local?t._e():e("span",[t._v("·")]),t._v(" "),e("span",{staticClass:"font-weight-bold"},[t._v(t._s(a.member_count)+" members")])])])])])]}}],null,!1,2331368480)})],1),t._v(" "),e("button",{staticClass:"btn btn-light group-nav-btn",class:{active:"feed"==t.tab},on:{click:function(e){return t.switchTab("feed")}}},[t._m(1),t._v(" "),e("div",{staticClass:"group-nav-btn-name"},[t._v("\n\t\t\t\t\t\tYour Feed\n\t\t\t\t\t")])]),t._v(" "),e("button",{staticClass:"btn btn-light group-nav-btn",class:{active:"discover"==t.tab},on:{click:function(e){return t.switchTab("discover")}}},[t._m(2),t._v(" "),e("div",{staticClass:"group-nav-btn-name"},[t._v("\n\t\t\t\t\t\tDiscover\n\t\t\t\t\t")])]),t._v(" "),e("button",{staticClass:"btn btn-light group-nav-btn",class:{active:"mygroups"==t.tab},on:{click:function(e){return t.switchTab("mygroups")}}},[t._m(3),t._v(" "),e("div",{staticClass:"group-nav-btn-name"},[t._v("\n\t\t\t\t\t\tMy Groups\n\t\t\t\t\t")])]),t._v(" "),e("button",{staticClass:"btn btn-light group-nav-btn",class:{active:"notifications"==t.tab},on:{click:function(e){return t.switchTab("notifications")}}},[t._m(4),t._v(" "),e("div",{staticClass:"group-nav-btn-name"},[t._v("\n\t\t\t\t\t\tYour Notifications\n\t\t\t\t\t")])]),t._v(" "),e("button",{staticClass:"btn btn-light group-nav-btn",class:{active:"remotesearch"==t.tab},on:{click:function(e){return t.switchTab("remotesearch")}}},[t._m(5),t._v(" "),e("div",{staticClass:"group-nav-btn-name"},[t._v("\n\t\t\t\t\t\tFind a remote group\n\t\t\t\t\t")])]),t._v(" "),t.config&&t.config.limits.user.create.new?e("button",{staticClass:"btn btn-primary btn-block rounded-pill font-weight-bold mt-3",attrs:{disabled:"creategroup"==t.tab},on:{click:function(e){return t.switchTab("creategroup")}}},[e("i",{staticClass:"fas fa-plus mr-2"}),t._v(" Create New Group\n\t\t\t\t")]):t._e(),t._v(" "),e("hr"),t._v(" "),t._l(t.groups,(function(o){return e("div",{staticClass:"ml-2"},[e("div",{staticClass:"card shadow-sm border text-decoration-none text-dark"},[o.metadata&&o.metadata.hasOwnProperty("header")?e("img",{staticClass:"card-img-top",staticStyle:{width:"100%",height:"auto","object-fit":"cover","max-height":"160px"},attrs:{src:o.metadata.header.url}}):e("div",{staticClass:"bg-primary",staticStyle:{width:"100%",height:"160px"}}),t._v(" "),e("div",{staticClass:"card-body"},[e("div",{staticClass:"lead font-weight-bold d-flex align-items-top",staticStyle:{height:"60px"}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(o.name)+"\n\t\t\t\t\t\t\t\t"),o.verified?e("span",{staticClass:"fa-stack ml-n2 mt-n2"},[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("div",{staticClass:"text-muted font-weight-light d-flex justify-content-between"},[e("span",[t._v(t._s(o.member_count)+" Members")]),t._v(" "),e("span",{staticClass:"rounded",staticStyle:{"font-size":"12px",padding:"2px 5px",color:"rgba(75, 119, 190, 1)",background:"rgba(137, 196, 244, 0.2)",border:"1px solid rgba(137, 196, 244, 0.3)","font-weight":"400","text-transform":"capitalize"}},[t._v(t._s(o.self.role))])]),t._v(" "),e("hr"),t._v(" "),e("p",{staticClass:"mb-0"},[e("a",{staticClass:"btn btn-light btn-block border rounded-lg font-weight-bold",attrs:{href:o.url}},[t._v("View Group")])])])])])}))],2)]),t._v(" "),e("keep-alive",[e("transition",{attrs:{name:"fade"}},["feed"==t.tab?e("self-feed",{attrs:{profile:t.profile},on:{switchtab:t.switchTab}}):t._e(),t._v(" "),"discover"==t.tab?e("self-discover",{attrs:{profile:t.profile}}):t._e(),t._v(" "),"notifications"==t.tab?e("self-notifications",{attrs:{profile:t.profile}}):t._e(),t._v(" "),"invitations"==t.tab?e("self-invitations",{attrs:{profile:t.profile}}):t._e(),t._v(" "),"remotesearch"==t.tab?e("self-remote-search",{attrs:{profile:t.profile}}):t._e(),t._v(" "),"mygroups"==t.tab?e("self-groups",{attrs:{profile:t.profile}}):t._e(),t._v(" "),"creategroup"==t.tab?e("create-group",{attrs:{profile:t.profile}}):t._e(),t._v(" "),"gsearch"==t.tab?e("div",[e("div",{staticClass:"col-12 px-5"},[e("div",{staticClass:"my-4"},[e("p",{staticClass:"h1 font-weight-bold mb-1"},[t._v("Group Search")]),t._v(" "),e("p",{staticClass:"lead text-muted mb-0"},[t._v("Search and explore groups.")])]),t._v(" "),e("div",{staticClass:"media align-items-center text-lighter"},[e("i",{staticClass:"far fa-chevron-left fa-lg mr-3"}),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"lead mb-0"},[t._v("Use the search bar on the side menu")])])])])]):t._e()],1)],1)],1):e("div",{staticClass:"row justify-content-center mt-5"},[e("b-spinner")],1)])},s=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex justify-content-between align-items-center py-3"},[e("p",{staticClass:"h2 font-weight-bold mb-0"},[t._v("Groups")]),t._v(" "),e("a",{staticClass:"btn btn-light px-2 rounded-circle",attrs:{href:"/settings/home"}},[e("i",{staticClass:"fas fa-cog fa-lg"})])])},function(){var t=this._self._c;return t("div",{staticClass:"group-nav-btn-icon"},[t("i",{staticClass:"fas fa-list"})])},function(){var t=this._self._c;return t("div",{staticClass:"group-nav-btn-icon"},[t("i",{staticClass:"fas fa-compass"})])},function(){var t=this._self._c;return t("div",{staticClass:"group-nav-btn-icon"},[t("i",{staticClass:"fas fa-list"})])},function(){var t=this._self._c;return t("div",{staticClass:"group-nav-btn-icon"},[t("i",{staticClass:"far fa-bell"})])},function(){var t=this._self._c;return t("div",{staticClass:"group-nav-btn-icon"},[t("i",{staticClass:"fas fa-search-plus"})])}]},37773:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t,e,o=this,a=o._self._c;return a("div",{staticClass:"comment-drawer-component"},[a("input",{ref:"fileInput",staticClass:"d-none",attrs:{type:"file",accept:"image/jpeg,image/png"},on:{change:o.handleImageUpload}}),o._v(" "),o.hide?a("div"):o.isLoaded?a("div",{staticClass:"border-top"},[a("div",{staticClass:"my-3"},o._l(o.feed,(function(t,e){return a("div",{key:"cdf"+e+t.id,staticClass:"media media-status align-items-top"},[o.replyChildId==t.id?a("a",{staticClass:"comment-border-link",attrs:{href:"#comment-1"},on:{click:function(e){return e.preventDefault(),o.replyToChild(t)}}},[a("span",{staticClass:"sr-only"},[o._v("Jump to comment-"+o._s(e))])]):o._e(),o._v(" "),a("a",{attrs:{href:t.account.url}},[a("img",{staticClass:"rounded-circle media-avatar border",attrs:{src:t.account.avatar,width:"32",height:"32",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}})]),o._v(" "),a("div",{staticClass:"media-body"},[t.media_attachments.length?a("div",[a("p",{staticClass:"media-body-comment-username"},[a("a",{attrs:{href:t.account.url}},[o._v("\n\t\t\t\t\t\t\t\t\t"+o._s(t.account.acct)+"\n\t\t\t\t\t\t\t\t")])]),o._v(" "),a("div",{staticClass:"bh-comment",on:{click:function(e){return o.lightbox(t)}}},[a("blur-hash-image",{staticClass:"img-fluid rounded-lg border shadow",attrs:{width:o.blurhashWidth(t),height:o.blurhashHeight(t),punch:1,hash:t.media_attachments[0].blurhash,src:o.getMediaSource(t)}})],1)]):a("div",{staticClass:"media-body-comment"},[a("p",{staticClass:"media-body-comment-username"},[a("a",{attrs:{href:t.account.url}},[o._v("\n\t\t\t\t\t\t\t\t\t"+o._s(t.account.acct)+"\n\t\t\t\t\t\t\t\t")])]),o._v(" "),a("read-more",{attrs:{status:t}})],1),o._v(" "),a("p",{staticClass:"media-body-reactions"},[o.profile?a("a",{staticClass:"font-weight-bold",class:[t.favourited?"text-primary":"text-muted"],attrs:{href:"#"},on:{click:function(a){return a.preventDefault(),o.likeComment(t,e,a)}}},[o._v("\n\t\t\t\t\t\t\t\t\t"+o._s(t.favourited?"Liked":"Like")+"\n\t\t\t\t\t\t\t\t")]):o._e(),o._v(" "),a("span",{staticClass:"mx-1"},[o._v("·")]),o._v(" "),a("a",{staticClass:"text-muted font-weight-bold",attrs:{href:"#"},on:{click:function(a){return a.preventDefault(),o.replyToChild(t,e)}}},[o._v("Reply")]),o._v(" "),o.profile?a("span",{staticClass:"mx-1"},[o._v("·")]):o._e(),o._v(" "),o._o(a("a",{staticClass:"font-weight-bold text-muted",attrs:{href:t.url}},[o._v("\n\t\t\t\t\t\t\t\t"+o._s(o.shortTimestamp(t.created_at))+"\n\t\t\t\t\t\t\t")]),0,"cdf"+e+t.id),o._v(" "),o.profile&&t.account.id===o.profile.id?a("span",[a("span",{staticClass:"mx-1"},[o._v("·")]),o._v(" "),a("a",{staticClass:"font-weight-bold text-lighter",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),o.deleteComment(e)}}},[o._v("\n\t\t\t\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t\t\t\t")])]):o._e()]),o._v(" "),o.replyChildIndex==e&&t.hasOwnProperty("children")&&t.children.hasOwnProperty("feed")&&t.children.feed.length?a("div",o._l(t.children.feed,(function(t,e){return a("comment-post",{key:"scp_"+e+"_"+t.id,attrs:{status:t,profile:o.profile,commentBorderArrow:!0}})})),1):o._e(),o._v(" "),o.replyChildIndex==e&&t.hasOwnProperty("children")&&t.children.hasOwnProperty("can_load_more")&&1==t.children.can_load_more?a("a",{staticClass:"text-muted font-weight-bold mt-1 mb-0",staticStyle:{"font-size":"13px"},attrs:{href:"#",disabled:o.loadingChildComments},on:{click:function(a){return a.preventDefault(),o.loadMoreChildComments(t,e)}}},[a("div",{staticClass:"comment-border-arrow"}),o._v(" "),a("i",{staticClass:"far fa-long-arrow-right mr-1"}),o._v("\n\t\t\t\t\t\t\t"+o._s(o.loadingChildComments?"Loading":"Load")+" more comments\n\t\t\t\t\t\t")]):o.replyChildIndex!==e&&t.hasOwnProperty("children")&&t.children.hasOwnProperty("can_load_more")&&1==t.children.can_load_more&&t.reply_count>0&&!o.loadingChildComments?a("a",{staticClass:"text-muted font-weight-bold mt-1 mb-0",staticStyle:{"font-size":"13px"},attrs:{href:"#",disabled:o.loadingChildComments},on:{click:function(a){return a.preventDefault(),o.replyToChild(t,e)}}},[a("i",{staticClass:"far fa-long-arrow-right mr-1"}),o._v("\n\t\t\t\t\t\t\t"+o._s(o.loadingChildComments?"Loading":"Load")+" more comments\n\t\t\t\t\t\t")]):o._e(),o._v(" "),o.replyChildId==t.id?a("div",{staticClass:"mt-3 mb-3 d-flex align-items-top reply-form child-reply-form"},[a("div",{staticClass:"comment-border-arrow"}),o._v(" "),a("img",{staticClass:"rounded-circle mr-2 border",attrs:{src:o.avatar,width:"38",height:"38",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}}),o._v(" "),o.isUploading?a("div",{staticClass:"w-100"},[a("p",{staticClass:"font-weight-light mb-1"},[o._v("Uploading image ...")]),o._v(" "),a("div",{staticClass:"progress rounded-pill",staticStyle:{height:"10px"}},[a("div",{staticClass:"progress-bar progress-bar-striped progress-bar-animated",style:{width:o.uploadProgress+"%"},attrs:{role:"progressbar","aria-valuenow":o.uploadProgress,"aria-valuemin":"0","aria-valuemax":"100"}})])]):a("div",{staticClass:"reply-form-input"},[a("input",{directives:[{name:"model",rawName:"v-model",value:o.childReplyContent,expression:"childReplyContent"}],staticClass:"form-control bg-light border-lighter rounded-pill",attrs:{placeholder:"Write a comment....",disabled:o.postingChildComment},domProps:{value:o.childReplyContent},on:{keyup:function(t){return!t.type.indexOf("key")&&o._k(t.keyCode,"enter",13,t.key,"Enter")?null:o.storeChildComment(e)},input:function(t){t.target.composing||(o.childReplyContent=t.target.value)}}})])]):o._e()])])})),0),o._v(" "),o.canLoadMore?a("button",{staticClass:"btn btn-link btn-sm text-muted mb-2",attrs:{disabled:o.isLoadingMore},on:{click:o.loadMoreComments}},[o.isLoadingMore?a("div",{staticClass:"spinner-border spinner-border-sm text-muted",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[o._v("Loading...")])]):a("span",[o._v("\n\t\t\t\t\tLoad more comments ...\n\t\t\t\t")])]):o._e(),o._v(" "),o.profile&&o.canReply?a("div",{staticClass:"mt-3 mb-n3"},[a("div",{staticClass:"d-flex align-items-top reply-form cdrawer-reply-form"},[a("img",{staticClass:"rounded-circle mr-2 border",attrs:{src:o.avatar,width:"38",height:"38",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}}),o._v(" "),o.isUploading?a("div",{staticClass:"w-100"},[a("p",{staticClass:"font-weight-light small text-muted mb-1"},[o._v("Uploading image ...")]),o._v(" "),a("div",{staticClass:"progress rounded-pill",staticStyle:{height:"10px"}},[a("div",{staticClass:"progress-bar progress-bar-striped progress-bar-animated",style:{width:o.uploadProgress+"%"},attrs:{role:"progressbar","aria-valuenow":o.uploadProgress,"aria-valuemin":"0","aria-valuemax":"100"}})])]):a("div",{staticClass:"w-100"},[a("div",{staticClass:"reply-form-input"},[a("textarea",{directives:[{name:"model",rawName:"v-model",value:o.replyContent,expression:"replyContent"}],staticClass:"form-control bg-light border-lighter",attrs:{placeholder:"Write a comment....",rows:o.replyContent&&o.replyContent.length>40?4:1},domProps:{value:o.replyContent},on:{input:function(t){t.target.composing||(o.replyContent=t.target.value)}}}),o._v(" "),a("div",{staticClass:"reply-form-input-actions"},[a("button",{staticClass:"btn btn-link text-muted px-1 mr-2",on:{click:o.uploadImage}},[a("i",{staticClass:"far fa-image fa-lg"})])])]),o._v(" "),a("div",{staticClass:"d-flex justify-content-between reply-form-menu"},[a("div",{staticClass:"char-counter"},[a("span",[o._v(o._s(null!==(t=null===(e=o.replyContent)||void 0===e?void 0:e.length)&&void 0!==t?t:0))]),o._v(" "),a("span",[o._v("/")]),o._v(" "),a("span",[o._v("500")])])])]),o._v(" "),a("button",{staticClass:"btn btn-link btn-sm font-weight-bold align-self-center ml-3 mb-3",on:{click:o.storeComment}},[o._v("Post")])])]):o._e()]):a("div",{staticClass:"border-top d-flex justify-content-center py-3"},[o._m(0)]),o._v(" "),a("b-modal",{ref:"lightboxModal",attrs:{id:"lightbox","hide-header":!0,"hide-footer":!0,centered:"",size:"lg","body-class":"p-0","content-class":"bg-transparent border-0"}},[o.lightboxStatus?a("div",{on:{click:o.hideLightbox}},[a("img",{staticStyle:{width:"100%","max-height":"90vh","object-fit":"contain"},attrs:{src:o.lightboxStatus.url}})]):o._e()])],1)},s=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center"},[e("div",{staticClass:"spinner-border text-lighter",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[t._v("Loading...")])]),t._v(" "),e("p",{staticClass:"text-muted"},[t._v("Loading Comments ...")])])}]},16560:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"comment-post-component"},[e("div",{staticClass:"media media-status align-items-top mt-3"},[t.commentBorderArrow?e("div",{staticClass:"comment-border-arrow"}):t._e(),t._v(" "),e("a",{attrs:{href:t.status.account.url}},[e("img",{staticClass:"rounded-circle media-avatar border",attrs:{src:t.status.account.avatar,width:"32",height:"32",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}})]),t._v(" "),e("div",{staticClass:"media-body"},[t.status.media_attachments.length?e("div",[e("p",{staticClass:"media-body-comment-username"},[e("a",{attrs:{href:t.status.account.url}},[t._v("\n\t\t\t\t\t\t"+t._s(t.status.account.acct)+"\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"bh-comment",on:{click:function(e){return t.lightbox(t.status)}}},[e("blur-hash-image",{staticClass:"img-fluid rounded-lg border shadow",attrs:{width:t.blurhashWidth(t.status),height:t.blurhashHeight(t.status),punch:1,hash:t.status.media_attachments[0].blurhash,src:t.getMediaSource(t.status)}})],1)]):e("div",{staticClass:"media-body-comment"},[e("p",{staticClass:"media-body-comment-username"},[e("a",{attrs:{href:t.status.account.url}},[t._v("\n\t\t\t\t\t\t"+t._s(t.status.account.acct)+"\n\t\t\t\t\t")])]),t._v(" "),e("read-more",{attrs:{status:t.status}})],1),t._v(" "),e("p",{staticClass:"media-body-reactions"},[t.profile?e("a",{staticClass:"font-weight-bold",class:[t.status.favourited?"text-primary":"text-muted"],attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.likeComment(t.status,t.index,e)}}},[t._v("\n\t\t\t\t\t\t"+t._s(t.status.favourited?"Liked":"Like")+"\n\t\t\t\t\t")]):t._e(),t._v(" "),t.profile?e("span",{staticClass:"mx-1"},[t._v("·")]):t._e(),t._v(" "),t._m(0),t._v(" "),t.profile&&t.status.account.id===t.profile.id?e("span",[e("span",{staticClass:"mx-1"},[t._v("·")]),t._v(" "),e("a",{staticClass:"font-weight-bold text-lighter",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.deleteComment(t.index)}}},[t._v("\n\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t")])]):t._e()])])])])},s=[function(){var t=this;return(0,t._self._c)("a",{staticClass:"font-weight-bold text-muted",attrs:{href:t.status.url}},[t._v("\n\t\t\t\t\t"+t._s(t.shortTimestamp(t.status.created_at))+"\n\t\t\t\t")])}]},57442:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"context-menu-component modal-stack"},[e("b-modal",{ref:"ctxModal",attrs:{id:"ctx-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"list-group text-center"},["archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuGoToPost()}}},[t._v("View Post")]):t._e(),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuCopyLink()}}},[t._v("Copy Link")]),t._v(" "),t.status&&t.status.account.id!=t.profile.id?e("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.ctxMenuReportPost()}}},[t._v("Report")]):t._e(),t._v(" "),t.status&&(t.profile.is_admin||t.profile.id==t.status.account.id)&&"archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.deletePost(t.status)}}},[t._v("Delete")]):t._e(),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxMenu()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxModModal",attrs:{id:"ctx-mod-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"list-group text-center"},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"unlist")}}},[t._v("Unlist from Timelines")]),t._v(" "),t.status.sensitive?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"remcw")}}},[t._v("Remove Content Warning")]):e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"addcw")}}},[t._v("Add Content Warning")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"spammer")}}},[t._v("\n\t\t\t\tMark as Spammer"),e("br"),t._v(" "),e("span",{staticClass:"small"},[t._v("Unlist + CW existing and future posts")])]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxModOtherModal",attrs:{id:"ctx-mod-other-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"list-group text-center"},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Unlist Posts")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Moderation Log")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModOtherMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxShareModal",attrs:{id:"ctx-share-modal",title:"Share","hide-footer":"","hide-header":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded text-center"}},[e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuCopyLink()}}},[t._v("Copy Link")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxShareMenu()}}},[t._v("Cancel")])]),t._v(" "),e("b-modal",{ref:"ctxEmbedModal",attrs:{id:"ctx-embed-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"md","body-class":"p-2 rounded"}},[e("div",[e("div",{staticClass:"form-group"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedPayload,expression:"ctxEmbedPayload"}],staticClass:"form-control disabled text-monospace",staticStyle:{"overflow-y":"hidden",border:"1px solid #efefef","font-size":"12px","line-height":"18px",margin:"0 0 7px",resize:"none"},attrs:{rows:"8",disabled:""},domProps:{value:t.ctxEmbedPayload},on:{input:function(e){e.target.composing||(t.ctxEmbedPayload=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group pl-2 d-flex justify-content-center"},[e("div",{staticClass:"form-check mr-3"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedShowCaption,expression:"ctxEmbedShowCaption"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:1==t.ctxEmbedCompactMode},domProps:{checked:Array.isArray(t.ctxEmbedShowCaption)?t._i(t.ctxEmbedShowCaption,null)>-1:t.ctxEmbedShowCaption},on:{change:function(e){var o=t.ctxEmbedShowCaption,a=e.target,s=!!a.checked;if(Array.isArray(o)){var i=t._i(o,null);a.checked?i<0&&(t.ctxEmbedShowCaption=o.concat([null])):i>-1&&(t.ctxEmbedShowCaption=o.slice(0,i).concat(o.slice(i+1)))}else t.ctxEmbedShowCaption=s}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\tShow Caption\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check mr-3"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedShowLikes,expression:"ctxEmbedShowLikes"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:1==t.ctxEmbedCompactMode},domProps:{checked:Array.isArray(t.ctxEmbedShowLikes)?t._i(t.ctxEmbedShowLikes,null)>-1:t.ctxEmbedShowLikes},on:{change:function(e){var o=t.ctxEmbedShowLikes,a=e.target,s=!!a.checked;if(Array.isArray(o)){var i=t._i(o,null);a.checked?i<0&&(t.ctxEmbedShowLikes=o.concat([null])):i>-1&&(t.ctxEmbedShowLikes=o.slice(0,i).concat(o.slice(i+1)))}else t.ctxEmbedShowLikes=s}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\tShow Likes\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedCompactMode,expression:"ctxEmbedCompactMode"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.ctxEmbedCompactMode)?t._i(t.ctxEmbedCompactMode,null)>-1:t.ctxEmbedCompactMode},on:{change:function(e){var o=t.ctxEmbedCompactMode,a=e.target,s=!!a.checked;if(Array.isArray(o)){var i=t._i(o,null);a.checked?i<0&&(t.ctxEmbedCompactMode=o.concat([null])):i>-1&&(t.ctxEmbedCompactMode=o.slice(0,i).concat(o.slice(i+1)))}else t.ctxEmbedCompactMode=s}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\tCompact Mode\n\t\t\t\t\t")])])]),t._v(" "),e("hr"),t._v(" "),e("button",{class:t.copiedEmbed?"btn btn-primary btn-block btn-sm py-1 font-weight-bold disabed":"btn btn-primary btn-block btn-sm py-1 font-weight-bold",attrs:{disabled:t.copiedEmbed},on:{click:t.ctxCopyEmbed}},[t._v(t._s(t.copiedEmbed?"Embed Code Copied!":"Copy Embed Code"))]),t._v(" "),e("p",{staticClass:"mb-0 px-2 small text-muted"},[t._v("By using this embed, you agree to our "),e("a",{attrs:{href:"/site/terms"}},[t._v("Terms of Use")])])])]),t._v(" "),e("b-modal",{ref:"ctxReport",attrs:{id:"ctx-report","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group text-center"},[e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("spam")}}},[t._v("Spam")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("sensitive")}}},[t._v("Sensitive Content")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("abusive")}}},[t._v("Abusive or Harmful")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.openCtxReportOtherMenu()}}},[t._v("Other")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxReportOther",attrs:{id:"ctx-report-other","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group text-center"},[e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("underage")}}},[t._v("Underage Account")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("copyright")}}},[t._v("Copyright Infringement")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("impersonation")}}},[t._v("Impersonation")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("scam")}}},[t._v("Scam or Fraud")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportOtherMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxConfirm",attrs:{id:"ctx-confirm","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"d-flex align-items-center justify-content-center py-3"},[e("div",[t._v(t._s(this.confirmModalTitle))])]),t._v(" "),e("div",{staticClass:"d-flex border-top btn-group btn-group-block rounded-0",attrs:{role:"group"}},[e("button",{staticClass:"btn btn-outline-lighter border-left-0 border-top-0 border-bottom-0 border-right py-2",staticStyle:{color:"rgb(0,122,255) !important"},attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.confirmModalCancel()}}},[t._v("Cancel")]),t._v(" "),e("button",{staticClass:"btn btn-outline-lighter border-0",staticStyle:{color:"rgb(0,122,255) !important"},attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.confirmModalConfirm()}}},[t._v("Confirm")])])])],1)},s=[]},88291:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group row"},[e("div",{staticClass:"col-sm-3"},[e("label",{staticClass:"col-form-label text-left"},[t._v(t._s(t.label))])]),t._v(" "),e("div",{staticClass:"col-sm-9"},[e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.value)?t._i(t.value,null)>-1:t.value},on:{change:function(e){var o=t.value,a=e.target,s=!!a.checked;if(Array.isArray(o)){var i=t._i(o,null);a.checked?i<0&&(t.value=o.concat([null])):i>-1&&(t.value=o.slice(0,i).concat(o.slice(i+1)))}else t.value=s}}}),t._v(" "),e("label",{staticClass:"form-check-label ml-1",class:[t.strongText?"font-weight-bold text-capitalize text-dark":"small text-muted"]},[t._v("\n "+t._s(t.inputText)+"\n ")])]),t._v(" "),t.helpText?e("div",{staticClass:"help-text small text-muted d-flex flex-row justify-content-between gap-3"},[t.helpText?e("div",[t._v(t._s(t.helpText))]):t._e()]):t._e()])])},s=[]},20285:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group row"},[e("div",{staticClass:"col-sm-3"},[e("label",{staticClass:"col-form-label text-left"},[t._v(t._s(t.label))])]),t._v(" "),e("div",{staticClass:"col-sm-9"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"custom-select",on:{change:function(e){var o=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.value=e.target.multiple?o:o[0]}}},[e("option",{attrs:{value:"",selected:"",disabled:""}},[t._v(t._s(t.placeholder))]),t._v(" "),t._l(t.categories,(function(o){return e("option",{domProps:{value:o.value}},[t._v(t._s(o.key))])}))],2),t._v(" "),t.helpText||t.hasLimit?e("div",{staticClass:"help-text small text-muted d-flex flex-row justify-content-between gap-3"},[t.helpText?e("div",[t._v(t._s(t.helpText))]):t._e(),t._v(" "),t.hasLimit?e("div",{staticClass:"font-weight-bold text-dark"},[t._v("\n "+t._s(t.value?t.value.length:0)+"/"+t._s(t.maxLimit)+"\n ")]):t._e()]):t._e()])])},s=[]},80171:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group row"},[e("div",{staticClass:"col-sm-3"},[e("label",{staticClass:"col-form-label text-left"},[t._v(t._s(t.label))])]),t._v(" "),e("div",{staticClass:"col-sm-9"},[t.hasLimit?e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"form-control",class:{"form-control-lg":t.largeInput},staticStyle:{resize:"none"},attrs:{type:"text",placeholder:t.placeholder,maxlength:t.maxLimit,rows:t.rows},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}}):e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"form-control",class:{"form-control-lg":t.largeInput},staticStyle:{resize:"none"},attrs:{type:"text",placeholder:t.placeholder,rows:t.rows},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}}),t._v(" "),t.helpText||t.hasLimit?e("div",{staticClass:"help-text small text-muted d-flex flex-row justify-content-between gap-3"},[t.helpText?e("div",[t._v(t._s(t.helpText))]):t._e(),t._v(" "),t.hasLimit?e("div",{staticClass:"font-weight-bold text-dark"},[t._v("\n "+t._s(t.value?t.value.length:0)+"/"+t._s(t.maxLimit)+"\n ")]):t._e()]):t._e()])])},s=[]},47545:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group row"},[e("div",{staticClass:"col-sm-3"},[e("label",{staticClass:"col-form-label text-left"},[t._v(t._s(t.label))])]),t._v(" "),e("div",{staticClass:"col-sm-9"},[t.hasLimit?e("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"form-control",class:{"form-control-lg":t.largeInput},attrs:{type:"text",placeholder:t.placeholder,maxlength:t.maxLimit},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}}):e("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"form-control",class:{"form-control-lg":t.largeInput},attrs:{type:"text",placeholder:t.placeholder},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}}),t._v(" "),t.helpText||t.hasLimit?e("div",{staticClass:"help-text small text-muted d-flex flex-row justify-content-between gap-3"},[t.helpText?e("div",[t._v(t._s(t.helpText))]):t._e(),t._v(" "),t.hasLimit?e("div",{staticClass:"font-weight-bold text-dark"},[t._v("\n "+t._s(t.value?t.value.length:0)+"/"+t._s(t.maxLimit)+"\n ")]):t._e()]):t._e()])])},s=[]},60640:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-6 col-xl-4 group-card"},[e("div",{staticClass:"group-card-inner"},[t.group.metadata&&t.group.metadata.hasOwnProperty("header")?e("img",{staticClass:"group-header-img",attrs:{src:t.group.metadata.header.url}}):e("div",{staticClass:"group-header-img",class:{compact:t.compact}},[e("div",{staticClass:"bg-light d-flex align-items-center justify-content-center rounded",staticStyle:{width:"100%",height:"100%"}})]),t._v(" "),e("div",{staticClass:"group-card-inner-copy"},[e("p",{staticClass:"font-weight-bold mb-0 text-dark",staticStyle:{"font-size":"16px"}},[t._v("\n "+t._s(t.truncate(t.group.name||"Untitled Group",t.titleLength))+"\n ")]),t._v(" "),e("p",{staticClass:"text-muted mb-1",staticStyle:{"font-size":"12px"}},[t._v("\n "+t._s(t.truncate(t.group.short_description,t.descriptionLength))+"\n ")]),t._v(" "),t.showStats?e("p",{staticClass:"mb-0 small text-lighter"},[e("span",[e("i",{staticClass:"fal fa-users"}),t._v(" "),e("span",{staticClass:"small font-weight-bold"},[t._v(t._s(t.prettyCount(t.group.member_count)))])]),t._v(" "),t.group.local?t._e():e("span",{staticClass:"remote-label ml-3"},[e("i",{staticClass:"fal fa-globe"}),t._v(" Remote\n ")])]):t._e()]),t._v(" "),e("div",{staticClass:"group-card-inner-foaf"}),t._v(" "),e("div",{staticClass:"group-card-inner-cta"},[e("router-link",{staticClass:"btn btn-light btn-block font-weight-bold",attrs:{to:"/groups/".concat(t.group.id)}},[t._v("\n Join Group\n ")])],1)])])},s=[]},54968:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-compose-form"},[e("input",{ref:"photoInput",staticClass:"d-none file-input",attrs:{id:"photoInput",type:"file",accept:"image/jpeg,image/png"},on:{change:t.handlePhotoChange}}),t._v(" "),e("input",{ref:"videoInput",staticClass:"d-none file-input",attrs:{id:"videoInput",type:"file",accept:"video/mp4"},on:{change:t.handleVideoChange}}),t._v(" "),e("div",{staticClass:"card card-body border mb-3 shadow-sm rounded-lg"},[e("div",{staticClass:"media align-items-top"},[t.profile?e("img",{staticClass:"rounded-circle border mr-3",attrs:{src:t.profile.avatar,width:"42px",height:"42px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}}):t._e(),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"d-block",staticStyle:{"min-height":"80px"}},[t.isUploading?e("div",{staticClass:"w-100"},[e("p",{staticClass:"font-weight-light mb-1"},[t._v("Uploading media ...")]),t._v(" "),e("div",{staticClass:"progress rounded-pill",staticStyle:{height:"4px"}},[e("div",{staticClass:"progress-bar",style:{width:t.uploadProgress+"%"},attrs:{role:"progressbar","aria-valuenow":t.uploadProgress,"aria-valuemin":"0","aria-valuemax":"100"}})])]):e("div",{staticClass:"form-group mb-3"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.composeText,expression:"composeText"}],staticClass:"form-control",class:{"form-control-lg":!t.composeText||t.composeText.length<40,"rounded-pill":!t.composeText||t.composeText.length<40,"bg-light":!t.composeText||t.composeText.length<40,"border-0":!t.composeText||t.composeText.length<40},staticStyle:{resize:"none"},attrs:{rows:!t.composeText||t.composeText.length<40?1:5,placeholder:t.placeholder},domProps:{value:t.composeText},on:{input:function(e){e.target.composing||(t.composeText=e.target.value)}}}),t._v(" "),t.composeText?e("div",{staticClass:"small text-muted mt-1",staticStyle:{"min-height":"20px"}},[e("span",{staticClass:"float-right font-weight-bold"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.composeText?t.composeText.length:0)+"/500\n\t\t\t\t\t\t\t")])]):t._e()])]),t._v(" "),t.tab?e("div",{staticClass:"tab"},["poll"===t.tab?e("div",[e("p",{staticClass:"font-weight-bold text-muted small"},[t._v("\n\t\t\t\t\t\t\tPoll Options\n\t\t\t\t\t\t")]),t._v(" "),t.pollOptions.length<4?e("div",{staticClass:"form-group mb-4"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.pollOptionModel,expression:"pollOptionModel"}],staticClass:"form-control rounded-pill",attrs:{type:"text",placeholder:"Add a poll option, press enter to save"},domProps:{value:t.pollOptionModel},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.savePollOption.apply(null,arguments)},input:function(e){e.target.composing||(t.pollOptionModel=e.target.value)}}})]):t._e(),t._v(" "),t._l(t.pollOptions,(function(o,a){return e("div",{staticClass:"form-group mb-4 d-flex align-items-center",staticStyle:{"max-width":"400px",position:"relative"}},[e("span",{staticClass:"font-weight-bold mr-2",staticStyle:{position:"absolute",left:"10px"}},[t._v(t._s(a+1)+".")]),t._v(" "),t.pollOptions[a].length<50?e("input",{directives:[{name:"model",rawName:"v-model",value:t.pollOptions[a],expression:"pollOptions[index]"}],staticClass:"form-control rounded-pill",staticStyle:{"padding-left":"30px","padding-right":"90px"},attrs:{type:"text",placeholder:"Add a poll option, press enter to save"},domProps:{value:t.pollOptions[a]},on:{input:function(e){e.target.composing||t.$set(t.pollOptions,a,e.target.value)}}}):e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.pollOptions[a],expression:"pollOptions[index]"}],staticClass:"form-control",staticStyle:{"padding-left":"30px","padding-right":"90px"},attrs:{placeholder:"Add a poll option, press enter to save",rows:"3"},domProps:{value:t.pollOptions[a]},on:{input:function(e){e.target.composing||t.$set(t.pollOptions,a,e.target.value)}}}),t._v(" "),e("button",{staticClass:"btn btn-danger btn-sm rounded-pill font-weight-bold",staticStyle:{position:"absolute",right:"5px"},on:{click:function(e){return t.deletePollOption(a)}}},[e("i",{staticClass:"fas fa-trash"}),t._v(" Delete\n\t\t\t\t\t\t\t")])])})),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"d-flex justify-content-between"},[e("div",[e("p",{staticClass:"font-weight-bold text-muted small"},[t._v("\n\t\t\t\t\t\t\t\t\tPoll Expiry\n\t\t\t\t\t\t\t\t")]),t._v(" "),e("div",{staticClass:"form-group"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.pollExpiry,expression:"pollExpiry"}],staticClass:"form-control rounded-pill",staticStyle:{width:"200px"},on:{change:function(e){var o=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.pollExpiry=e.target.multiple?o:o[0]}}},[e("option",{attrs:{value:"60"}},[t._v("1 hour")]),t._v(" "),e("option",{attrs:{value:"360"}},[t._v("6 hours")]),t._v(" "),e("option",{attrs:{value:"1440",selected:""}},[t._v("24 hours")]),t._v(" "),e("option",{attrs:{value:"10080"}},[t._v("7 days")])])])])])],2):t._e()]):t._e(),t._v(" "),t.isUploading?t._e():e("div",{},[e("div",[t.photoName&&t.photoName.length?e("div",{staticClass:"bg-light rounded-pill mb-4 py-2"},[e("div",{staticClass:"media align-items-center"},[t._m(0),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"mb-0 font-weight-bold text-muted"},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(t.photoName)+"\n\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e("button",{staticClass:"btn btn-link font-weight-bold text-decoration-none",on:{click:function(e){return e.preventDefault(),t.clearFileInputs.apply(null,arguments)}}},[t._v("\n\t\t\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t\t\t")])])]):t._e(),t._v(" "),t.videoName&&t.videoName.length?e("div",{staticClass:"bg-light rounded-pill mb-4 py-2"},[e("div",{staticClass:"media align-items-center"},[t._m(1),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"mb-0 font-weight-bold text-muted"},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(t.videoName)+"\n\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e("button",{staticClass:"btn btn-link font-weight-bold text-decoration-none",on:{click:function(e){return e.preventDefault(),t.clearFileInputs.apply(null,arguments)}}},[t._v("\n\t\t\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t\t\t")])])]):t._e()]),t._v(" "),e("div",[e("button",{staticClass:"btn btn-light border font-weight-bold py-1 px-2 rounded-lg mr-3",attrs:{disabled:t.photoName||t.videoName},on:{click:function(e){return t.switchTab("photo")}}},[e("i",{staticClass:"fal fa-image mr-2"}),t._v(" "),e("span",[t._v("Add Photo")])])])])])]),t._v(" "),!t.isUploading&&t.composeText&&t.composeText.length>1||!t.isUploading&&["photo","video"].includes(t.tab)?e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-primary font-weight-bold float-right px-5 rounded-pill mt-3",attrs:{disabled:t.isPosting},on:{click:function(e){return t.newPost()}}},[t.isPosting?e("span",[t._m(2)]):e("span",[t._v("Post")])])]):t._e()])])},s=[function(){var t=this._self._c;return t("span",{staticClass:"d-flex align-items-center justify-content-center bg-primary mx-3",staticStyle:{width:"40px",height:"40px","border-radius":"50px",opacity:"0.6"}},[t("i",{staticClass:"fal fa-image fa-lg text-white"})])},function(){var t=this._self._c;return t("span",{staticClass:"d-flex align-items-center justify-content-center bg-primary mx-3",staticStyle:{width:"40px",height:"40px","border-radius":"50px",opacity:"0.6"}},[t("i",{staticClass:"fal fa-video fa-lg text-white"})])},function(){var t=this._self._c;return t("div",{staticClass:"spinner-border text-white spinner-border-sm",attrs:{role:"status"}},[t("span",{staticClass:"sr-only"},[this._v("Loading...")])])}]},26177:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-info-card"},[e("div",{staticClass:"card card-body mt-3 shadow-none border rounded-lg"},[e("p",{staticClass:"title"},[t._v("About")]),t._v(" "),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("div",{staticClass:"card card-body mt-3 shadow-none border rounded-lg"},["all"==t.group.membership?e("div",{staticClass:"fact"},[t._m(0),t._v(" "),t._m(1)]):t._e(),t._v(" "),"private"==t.group.membership?e("div",{staticClass:"fact"},[t._m(2),t._v(" "),t._m(3)]):t._e(),t._v(" "),1==t.group.config.discoverable?e("div",{staticClass:"fact"},[t._m(4),t._v(" "),t._m(5)]):t._e(),t._v(" "),0==t.group.config.discoverable?e("div",{staticClass:"fact"},[t._m(6),t._v(" "),t._m(7)]):t._e(),t._v(" "),e("div",{staticClass:"fact"},[t._m(8),t._v(" "),e("div",{staticClass:"fact-body"},[e("p",{staticClass:"fact-title"},[t._v(t._s(t.group.category.name))]),t._v(" "),e("p",{staticClass:"fact-subtitle"},[t._v("Category")])])]),t._v(" "),e("p",{staticClass:"mb-0 font-weight-light text-lighter"},[t._v("Created: "+t._s(t.timestampFormat(t.group.created_at)))])])])},s=[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._self._c;return t("div",{staticClass:"fact-icon"},[t("i",{staticClass:"fal fa-eye fa-lg"})])},function(){var t=this,e=t._self._c;return 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._self._c;return t("div",{staticClass:"fact-icon"},[t("i",{staticClass:"fal fa-eye-slash fa-lg"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"fact-body"},[e("p",{staticClass:"fact-title"},[t._v("Hidden")]),t._v(" "),e("p",{staticClass:"fact-subtitle"},[t._v("Only members can find this group.")])])},function(){var t=this._self._c;return t("div",{staticClass:"fact-icon"},[t("i",{staticClass:"fal fa-users fa-lg"})])}]},22224:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-invite-modal"},[e("b-modal",{ref:"modal",attrs:{"hide-header":"","hide-footer":"",centered:"",rounded:"","body-class":"rounded group-invite-modal-wrapper"}},[e("div",{staticClass:"text-center py-3 d-flex align-items-center flex-column"},[e("div",{staticClass:"bg-light rounded-circle d-flex justify-content-center align-items-center mb-3",staticStyle:{width:"100px",height:"100px"}},[e("i",{staticClass:"far fa-user-plus fa-2x text-lighter"})]),t._v(" "),e("p",{staticClass:"h4 font-weight-bold mb-0"},[t._v("Invite Friends")])]),t._v(" "),e("transition",{attrs:{name:"fade"}},[t.usernames.length<5?e("div",{staticClass:"d-flex justify-content-between mt-1"},[e("autocomplete",{ref:"autocomplete",staticStyle:{width:"100%"},attrs:{search:t.autocompleteSearch,placeholder:"Search friends by username","aria-label":"Search this group","get-result-value":t.getSearchResultValue,debounceTime:700},on:{submit:t.onSearchSubmit},scopedSlots:t._u([{key:"result",fn:function(o){var a=o.result,s=o.props;return[e("li",t._b({staticClass:"autocomplete-result"},"li",s,!1),[e("div",{staticClass:"text-truncate"},[e("p",{staticClass:"result-name mb-0 font-weight-bold"},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(a.username)+"\n\t\t\t\t\t\t\t\t")])])])]}}],null,!1,3929251)}),t._v(" "),e("button",{staticClass:"btn btn-light border rounded-circle text-lighter ml-3",staticStyle:{width:"52px",height:"50px"},on:{click:t.close}},[e("i",{staticClass:"fal fa-times fa-lg"})])],1):t._e()]),t._v(" "),e("transition",{attrs:{name:"fade"}},[t.usernames.length?e("div",{staticClass:"pt-3"},t._l(t.usernames,(function(o,a){return e("div",{staticClass:"py-1"},[e("div",{staticClass:"media align-items-center"},[e("img",{staticClass:"rounded-circle border mr-3",attrs:{src:"/storage/avatars/default.jpg",width:"45",height:"45"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"lead mb-0"},[t._v(t._s(o.username))])]),t._v(" "),e("button",{staticClass:"btn btn-link text-lighter btn-sm",on:{click:function(e){return t.removeUsername(a)}}},[e("i",{staticClass:"far fa-times-circle fa-lg"})])])])})),0):t._e()]),t._v(" "),e("transition",{attrs:{name:"fade"}},[t.usernames&&t.usernames.length?e("button",{staticClass:"btn btn-primary btn-lg btn-block font-weight-bold rounded font-weight-bold mt-3",on:{click:t.submitInvites}},[t._v("Invite")]):t._e()]),t._v(" "),e("div",{staticClass:"text-center pt-3 small"},[e("p",{staticClass:"mb-0"},[t._v("You can invite up to 5 friends at a time, and 20 friends in total.")])])],1)],1)},s=[]},25012:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-list-card"},[e("div",{staticClass:"media"},[e("div",{staticClass:"media align-items-center"},[t.group.metadata&&t.group.metadata.hasOwnProperty("header")?e("img",{staticClass:"mr-3 border rounded group-header-img",class:{compact:t.compact},attrs:{src:t.group.metadata.header.url}}):e("div",{staticClass:"mr-3 border rounded group-header-img",class:{compact:t.compact}},[t._m(0)]),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"font-weight-bold mb-0 text-dark",staticStyle:{"font-size":"16px"}},[t._v("\n\t\t\t\t\t"+t._s(t.truncate(t.group.name||"Untitled Group",t.titleLength))+"\n\t\t\t\t")]),t._v(" "),e("p",{staticClass:"text-muted mb-1",staticStyle:{"font-size":"12px"}},[t._v("\n\t\t\t\t\t"+t._s(t.truncate(t.group.short_description,t.descriptionLength))+"\n\t\t\t\t")]),t._v(" "),t.showStats?e("p",{staticClass:"mb-0 small text-lighter"},[e("span",[e("i",{staticClass:"far fa-users"}),t._v(" "),e("span",{staticClass:"small font-weight-bold"},[t._v(t._s(t.prettyCount(t.group.member_count)))])]),t._v(" "),t.group.local?t._e():e("span",{staticClass:"remote-label ml-3"},[e("i",{staticClass:"fal fa-globe"}),t._v(" Remote\n\t\t\t\t\t")]),t._v(" "),t.group.hasOwnProperty("admin")&&t.group.admin.hasOwnProperty("username")?e("span",{staticClass:"ml-3"},[e("i",{staticClass:"fal fa-user-crown"}),t._v(" "),e("span",{staticClass:"small font-weight-bold"},[t._v("\n\t\t\t\t\t\t\t@"+t._s(t.group.admin.username)+"\n\t\t\t\t\t\t")])]):t._e()]):t._e()])])])])},s=[function(){var t=this._self._c;return t("div",{staticClass:"bg-primary d-flex align-items-center justify-content-center rounded",staticStyle:{width:"100%",height:"100%"}},[t("i",{staticClass:"fal fa-users text-white fa-lg"})])}]},64954:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-post-modal"},[e("b-modal",{ref:"modal",attrs:{size:"xl","hide-footer":"","hide-header":"",centered:"","body-class":"gpm p-0"}},[e("div",{staticClass:"d-flex"},[e("div",{staticClass:"gpm-media"},[e("img",{attrs:{src:t.status.media_attachments[0].preview_url}})]),t._v(" "),e("div",{staticClass:"p-3",staticStyle:{width:"30%"}},[e("div",{staticClass:"media align-items-center mb-2"},[e("a",{attrs:{href:t.status.account.url}},[e("img",{staticClass:"rounded-circle media-avatar border mr-2",attrs:{src:t.status.account.avatar,width:"32",height:"32"}})]),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"media-body-comment"},[e("p",{staticClass:"media-body-comment-username mb-n1"},[e("a",{staticClass:"text-dark text-decoration-none font-weight-bold",attrs:{href:t.status.account.url}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.status.account.acct)+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),e("p",{staticClass:"media-body-comment-timestamp mb-0"},[e("a",{staticClass:"font-weight-light text-muted small",attrs:{href:t.status.url}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.shortTimestamp(t.status.created_at))+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"text-lighter",staticStyle:{"padding-left":"2px","padding-right":"2px"}},[t._v("·")]),t._v(" "),e("span",{staticClass:"text-muted small"},[e("i",{staticClass:"fas fa-globe"})])])])]),t._v(" "),e("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[e("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"}},[e("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),e("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]),t._v(" "),e("read-more",{attrs:{status:t.status}}),t._v(" "),e("div",{staticClass:"border-top border-bottom mt-3"},[e("div",{staticClass:"d-flex justify-content-between",staticStyle:{padding:"8px 5px"}},[e("button",{staticClass:"btn btn-link py-0 text-decoration-none btn-sm",class:{"font-weight-bold":t.status.favourited,"text-primary":t.status.favourited,"text-muted":!t.status.favourited}},[e("i",{staticClass:"far fa-heart mr-1"}),t._v("\n\t\t\t\t\t\t\t"+t._s(t.status.favourited?"Liked":"Like")+"\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-link py-0 text-decoration-none btn-sm text-muted"},[e("i",{staticClass:"far fa-comment cursor-pointer text-muted mr-1"}),t._v("\n\t\t\t\t\t\t\tComment\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-link py-0 text-decoration-none btn-sm",attrs:{disabled:""}},[e("i",{staticClass:"fas fa-external-link-alt cursor-pointer text-muted mr-1"}),t._v("\n\t\t\t\t\t\t\tShare\n\t\t\t\t\t\t")])])])],1)])])],1)},s=[]},83560:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t,e,o,a=this,s=a._self._c;return s("div",{staticClass:"group-search-modal"},[s("b-modal",{ref:"modal",attrs:{"hide-header":"","hide-footer":"",centered:"",rounded:"","body-class":"rounded group-search-modal-wrapper"}},[s("div",{staticClass:"d-flex justify-content-between"},[s("autocomplete",{ref:"autocomplete",staticStyle:{width:"100%"},attrs:{search:a.autocompleteSearch,placeholder:"Search this group","aria-label":"Search this group","get-result-value":a.getSearchResultValue,debounceTime:700},on:{submit:a.onSearchSubmit},scopedSlots:a._u([{key:"result",fn:function(t){var e=t.result,o=t.props;return[s("li",a._b({staticClass:"autocomplete-result"},"li",o,!1),[s("div",{staticClass:"text-truncate"},[s("p",{staticClass:"result-name mb-0 font-weight-bold"},[a._v("\n\t\t\t\t\t\t\t\t\t"+a._s(e.username)+"\n\t\t\t\t\t\t\t\t")])])])]}}])}),a._v(" "),s("button",{staticClass:"btn btn-light border rounded-circle text-lighter ml-3",staticStyle:{width:"52px",height:"50px"},on:{click:a.close}},[s("i",{staticClass:"fal fa-times fa-lg"})])],1),a._v(" "),a.recent&&a.recent.length?s("div",{staticClass:"pt-5"},[s("h5",{staticClass:"mb-2"},[a._v("Recent Searches")]),a._v(" "),a._l(a.recent,(function(t,e){return s("a",{staticClass:"media align-items-center text-decoration-none text-dark",attrs:{href:t.action}},[s("div",{staticClass:"bg-light rounded-circle mr-3 border d-flex justify-content-center align-items-center",staticStyle:{width:"40px",height:"40px"}},[s("i",{staticClass:"far fa-search"})]),a._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"mb-0"},[a._v(a._s(t.value))])])])}))],2):a._e(),a._v(" "),s("div",{staticClass:"pt-5"},[s("h5",{staticClass:"mb-2"},[a._v("Explore This Group")]),a._v(" "),s("div",{staticClass:"media align-items-center",on:{click:a.viewMyActivity}},[s("img",{staticClass:"mr-3 border rounded-circle",attrs:{src:null===(t=a.profile)||void 0===t?void 0:t.avatar,width:"40",height:"40",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}}),a._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"mb-0"},[a._v(a._s((null===(e=a.profile)||void 0===e?void 0:e.display_name)||(null===(o=a.profile)||void 0===o?void 0:o.username)))]),a._v(" "),s("p",{staticClass:"mb-0 small text-muted"},[a._v("See your group activity.")])])]),a._v(" "),s("div",{staticClass:"media align-items-center",on:{click:a.viewGroupSearch}},[s("div",{staticClass:"bg-light rounded-circle mr-3 border d-flex justify-content-center align-items-center",staticStyle:{width:"40px",height:"40px"}},[s("i",{staticClass:"far fa-search"})]),a._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"mb-0"},[a._v("Search all groups")])])])])])],1)},s=[]},79355:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"status-card-component",class:{"status-card-sm":t.loaded&&"small"===t.size}},[t.loaded?e("div",{staticClass:"shadow-none mb-3"},["poll"!==t.status.pf_type?e("div",{staticClass:"card shadow-sm",class:{"border-top-0":!t.hasTopBorder},staticStyle:{"border-radius":"18px !important"}},[1==t.parentUnavailable?e("parent-unavailable",{attrs:{"permalink-mode":t.permalinkMode,"permalink-status":t.childContext,status:t.status,profile:t.profile,"group-id":t.groupId}}):e("div",{staticClass:"card-body pb-0"},[e("group-post-header",{attrs:{group:t.group,status:t.status,profile:t.profile,showGroupHeader:t.showGroupHeader,showGroupChevron:t.showGroupChevron}}),t._v(" "),e("div",[e("div",[e("div",{staticClass:"pl-2"},[t.status.sensitive&&t.status.content.length?e("div",{staticClass:"card card-body shadow-none border bg-light py-2 my-2 text-center user-select-none cursor-pointer",on:{click:function(e){t.status.sensitive=!1}}},[e("div",{staticClass:"media justify-content-center align-items-center"},[e("div",{staticClass:"mx-3"},[e("i",{staticClass:"far fa-exclamation-triangle fa-2x text-lighter"})]),t._v(" "),e("div",{staticClass:"media-body"},[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("Warning, may contain sensitive content. ")]),t._v(" "),e("p",{staticClass:"mb-0 text-lighter small text-center font-weight-bold"},[t._v("Click to view")])])])]):[e("p",{staticClass:"pt-2 text-break",staticStyle:{"font-size":"15px"},domProps:{innerHTML:t._s(t.renderedCaption)}})],t._v(" "),"photo"===t.status.pf_type?e("photo-presenter",{staticClass:"col px-0 border mb-4 rounded",attrs:{status:t.status},on:{lightbox:t.showPostModal,togglecw:function(e){t.status.sensitive=!1},click:t.showPostModal}}):"video"===t.status.pf_type?e("video-presenter",{staticClass:"col px-0 border mb-4 rounded",attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}}):"photo:album"===t.status.pf_type?e("photo-album-presenter",{staticClass:"col px-0 border mb-4 rounded",attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}}):"video:album"===t.status.pf_type?e("video-album-presenter",{staticClass:"col px-0 border mb-4 rounded",attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}}):"photo:video:album"===t.status.pf_type?e("mixed-album-presenter",{staticClass:"col px-0 border mb-4 rounded",attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}}):t._e(),t._v(" "),t.status.favourites_count||t.status.reply_count?e("div",{staticClass:"border-top my-0"},[e("div",{staticClass:"d-flex justify-content-between py-2",staticStyle:{"font-size":"14px"}},[t.status.favourites_count?e("button",{staticClass:"btn btn-light py-0 text-decoration-none text-dark",staticStyle:{"font-size":"12px","font-weight":"600"},on:{click:function(e){return t.showLikesModal(e)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.status.favourites_count)+" "+t._s(1==t.status.favourites_count?"Like":"Likes")+"\n\t\t\t\t\t\t\t\t\t\t")]):t._e(),t._v(" "),t.status.reply_count?e("button",{staticClass:"btn btn-light py-0 text-decoration-none text-dark",staticStyle:{"font-size":"12px","font-weight":"600"},on:{click:function(e){return t.commentFocus(e)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.status.reply_count)+" "+t._s(1==t.status.reply_count?"Comment":"Comments")+"\n\t\t\t\t\t\t\t\t\t\t")]):t._e()])]):t._e(),t._v(" "),t.profile?e("div",{staticClass:"border-top my-0"},[e("div",{staticClass:"d-flex justify-content-between py-2 px-4"},[e("div",[e("button",{staticClass:"btn btn-link py-0 text-decoration-none",class:{"font-weight-bold":t.status.favourited,"text-primary":t.status.favourited,"text-muted":!t.status.favourited},attrs:{id:"lr__"+t.status.id},on:{click:function(e){return t.likeStatus(t.status,e)}}},[e("i",{staticClass:"far fa-heart mr-1"}),t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.status.favourited?"Liked":"Like")+"\n\t\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e("button",{staticClass:"btn btn-link py-0 text-decoration-none text-muted",on:{click:function(e){return t.commentFocus(e)}}},[e("i",{staticClass:"far fa-comment cursor-pointer text-muted mr-1"}),t._v("\n\t\t\t\t\t\t\t\t\t\t\tComment\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-link py-0 text-decoration-none",attrs:{disabled:""}},[e("i",{staticClass:"fas fa-external-link-alt cursor-pointer text-muted mr-1"}),t._v("\n\t\t\t\t\t\t\t\t\t\t\tShare\n\t\t\t\t\t\t\t\t\t\t")])])]):t._e(),t._v(" "),t.showCommentDrawer?e("comment-drawer",{attrs:{"permalink-mode":t.permalinkMode,"permalink-status":t.childContext,status:t.status,profile:t.profile,"group-id":t.groupId}}):t._e()],2)])])],1)],1):e("div",{staticClass:"border"},[e("poll-card",{attrs:{status:t.status,profile:t.profile,showBorder:!1},on:{"status-delete":t.statusDeleted}}),t._v(" "),e("div",{staticClass:"bg-white",staticStyle:{padding:"0 1.25rem"}},[t.profile?e("div",{staticClass:"border-top my-0"},[e("div",{staticClass:"d-flex justify-content-between py-2 px-4"},[e("div",[e("button",{staticClass:"btn btn-link py-0 text-decoration-none",class:{"font-weight-bold":t.status.favourited,"text-primary":t.status.favourited,"text-muted":!t.status.favourited},attrs:{id:"lr__"+t.status.id},on:{click:function(e){return t.likeStatus(t.status,e)}}},[e("i",{staticClass:"far fa-heart mr-1"}),t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.status.favourited?"Liked":"Like")+"\n\t\t\t\t\t\t\t\t")]),t._v(" "),e("b-popover",{attrs:{target:"lr__"+t.status.id,triggers:"hover",placement:"top"},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("Popover Title")]},proxy:!0}],null,!1,4088088860)},[t._v("\n\t\t\t\t\t\t\t\t\tI am popover "),e("b",[t._v("component")]),t._v(" content!\n\t\t\t\t\t\t\t\t")])],1),t._v(" "),e("button",{staticClass:"btn btn-link py-0 text-decoration-none text-muted",on:{click:function(e){return t.commentFocus(e)}}},[e("i",{staticClass:"far fa-comment cursor-pointer text-muted mr-1"}),t._v("\n\t\t\t\t\t\t\t\tComment\n\t\t\t\t\t\t\t")]),t._v(" "),t._m(0)])]):t._e(),t._v(" "),t.showCommentDrawer?e("comment-drawer",{attrs:{"permalink-mode":t.permalinkMode,"permalink-status":t.childContext,profile:t.profile,status:t.status,"group-id":t.groupId}}):t._e()],1)],1),t._v(" "),t.profile?e("context-menu",{ref:"contextMenu",attrs:{status:t.status,profile:t.profile,"group-id":t.groupId},on:{"status-delete":t.statusDeleted}}):t._e(),t._v(" "),t.showModal?e("post-modal",{ref:"modal",attrs:{status:t.status,profile:t.profile,groupId:t.groupId}}):t._e()],1):e("div",{staticClass:"card card-body shadow-none border mb-3",staticStyle:{height:"200px"}},[t._m(1)])])},s=[function(){var t=this._self._c;return t("button",{staticClass:"btn btn-link py-0 text-decoration-none",attrs:{disabled:""}},[t("i",{staticClass:"fas fa-external-link-alt cursor-pointer text-muted mr-1"}),this._v("\n\t\t\t\t\t\t\t\tShare\n\t\t\t\t\t\t\t")])},function(){var t=this._self._c;return t("div",{staticClass:"w-100 h-100 d-flex justify-content-center align-items-center"},[t("div",{staticClass:"spinner-border text-primary",attrs:{role:"status"}},[t("span",{staticClass:"sr-only"},[this._v("Loading...")])])])}]},52809:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){return(0,this._self._c)("div")},s=[]},2011:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"px-md-5",staticStyle:{"background-color":"#fff"}},[t.group.metadata&&t.group.metadata.hasOwnProperty("header")?e("img",{staticClass:"header-image",attrs:{src:t.group.metadata.header.url}}):e("div",{staticClass:"header-jumbotron"})])},s=[]},11568:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return 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(" "),t.group&&t.group.name?e("div",{staticClass:"media-body px-3"},[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()])]):e("div",{staticClass:"media-body"},[t._m(0)])]),t._v(" "),t.group&&t.group.self?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._e()])},s=[function(){var t=this._self._c;return t("h3",{staticClass:"d-flex align-items-start"},[t("span",[this._v("Loading...")])])}]},17859:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t,e,o,a,s,i=this,r=i._self._c;return r("div",[r("div",{staticClass:"col-12 border-top group-feed-component-menu px-5"},[r("ul",{staticClass:"nav font-weight-bold group-feed-component-menu-nav"},[r("li",{staticClass:"nav-item"},[r("router-link",{staticClass:"nav-link",attrs:{to:"/groups/".concat(i.group.id,"/about")}},[i._v("About")])],1),i._v(" "),r("li",{staticClass:"nav-item"},[r("router-link",{staticClass:"nav-link",attrs:{to:"/groups/".concat(i.group.id),exact:""}},[i._v("Feed")])],1),i._v(" "),null!==(t=i.group)&&void 0!==t&&t.self&&i.group.self.is_member?r("li",{staticClass:"nav-item"},[r("router-link",{staticClass:"nav-link",attrs:{to:"/groups/".concat(i.group.id,"/topics")}},[i._v("Topics")])],1):i._e(),i._v(" "),null!==(e=i.group)&&void 0!==e&&e.self&&i.group.self.is_member?r("li",{staticClass:"nav-item"},[r("router-link",{staticClass:"nav-link",attrs:{to:"/groups/".concat(i.group.id,"/members")}},[i._v("\n Members\n "),i.group.self.is_member&&i.isAdmin&&i.atabs.request_count?r("span",{staticClass:"badge badge-danger rounded-pill ml-2",staticStyle:{height:"20px",padding:"4px 8px","font-size":"11px"}},[i._v(i._s(i.atabs.request_count))]):i._e()])],1):i._e(),i._v(" "),null!==(o=i.group)&&void 0!==o&&o.self&&i.group.self.is_member?r("li",{staticClass:"nav-item"},[r("router-link",{staticClass:"nav-link",attrs:{to:"/groups/".concat(i.group.id,"/media")}},[i._v("Media")])],1):i._e(),i._v(" "),null!==(a=i.group)&&void 0!==a&&a.self&&i.group.self.is_member&&i.isAdmin?r("li",{staticClass:"nav-item"},[r("router-link",{staticClass:"nav-link d-flex align-items-top",attrs:{to:"/groups/".concat(i.group.id,"/moderation")}},[r("span",{staticClass:"mr-2"},[i._v("Moderation")]),i._v(" "),i.atabs.moderation_count?r("span",{staticClass:"badge badge-danger rounded-pill",staticStyle:{height:"20px",padding:"4px 8px","font-size":"11px"}},[i._v(i._s(i.atabs.moderation_count))]):i._e()])],1):i._e()]),i._v(" "),r("div",[null!==(s=i.group)&&void 0!==s&&s.self&&i.group.self.is_member?r("button",{staticClass:"btn btn-light btn-sm border px-3 rounded-pill mr-2",on:{click:i.showSearchModal}},[r("i",{staticClass:"far fa-search"})]):i._e(),i._v(" "),r("div",{staticClass:"dropdown d-inline"},[i._m(0),i._v(" "),r("div",{staticClass:"dropdown-menu dropdown-menu-right"},[r("a",{staticClass:"dropdown-item",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),i.copyLink.apply(null,arguments)}}},[i._v("\n Copy Group Link\n ")]),i._v(" "),r("a",{staticClass:"dropdown-item",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),i.showInviteModal.apply(null,arguments)}}},[i._v("\n Invite friends\n ")]),i._v(" "),i.isAdmin?i._e():r("a",{staticClass:"dropdown-item",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),i.reportGroup.apply(null,arguments)}}},[i._v("\n Report Group\n ")]),i._v(" "),i.isAdmin?r("a",{staticClass:"dropdown-item",attrs:{href:i.group.url+"/settings"}},[i._v("\n Settings\n ")]):i._e()])])])]),i._v(" "),r("search-modal",{ref:"searchModal",attrs:{group:i.group,profile:i.profile}})],1)},s=[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"})])}]},30832:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"read-more-component",staticStyle:{"word-break":"break-all"}},[t.status.content.length<200?e("div",{domProps:{innerHTML:t._s(t.content)}}):e("div",[e("span",{domProps:{innerHTML:t._s(t.content)}}),t._v(" "),200==t.cursor||t.fullContent.length>t.cursor?e("a",{staticClass:"font-weight-bold text-muted",staticStyle:{display:"block","white-space":"nowrap"},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.readMore.apply(null,arguments)}}},[e("i",{staticClass:"d-none fas fa-caret-down"}),t._v(" Read more...\n\t\t")]):t._e()])])},s=[]},48511:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"self-discover-component col-12 col-md-9 bg-lighter border-left mb-4"},[t._m(0),t._v(" "),"home"===t.tab?e("div",{staticClass:"px-5"},[e("div",{staticClass:"row mb-4 pt-5"},[e("div",{staticClass:"col-12 col-md-4"},[e("h4",{staticClass:"font-weight-bold"},[t._v("Popular")]),t._v(" "),e("div",{staticClass:"list-group list-group-scroll"},t._l(t.popularGroups,(function(t,o){return e("a",{staticClass:"list-group-item p-1",attrs:{href:t.url}},[e("group-list-card",{attrs:{group:t,compact:!0}})],1)})),0)]),t._v(" "),e("div",{staticClass:"col-12 col-md-4"},[e("div",{staticClass:"card card-body shadow-none bg-mantle text-light",staticStyle:{"margin-top":"33px"}},[e("h3",{staticClass:"mb-4 font-weight-lighter"},[t._v("Discover communities and topics based on your interests")]),t._v(" "),e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-outline-light font-weight-light btn-block",on:{click:function(e){return t.toggleTab("categories")}}},[t._v("Browse Categories")])])]),t._v(" "),t._m(1)]),t._v(" "),e("div",{staticClass:"col-12 col-md-4"},[e("h4",{staticClass:"font-weight-bold"},[t._v("New")]),t._v(" "),e("div",{staticClass:"list-group list-group-scroll"},t._l(t.newGroups,(function(t,o){return e("a",{staticClass:"list-group-item p-1",attrs:{href:t.url}},[e("group-list-card",{attrs:{group:t,compact:!0}})],1)})),0)])]),t._v(" "),e("div",{staticClass:"jumbotron mb-4 text-light bg-black",staticStyle:{"margin-top":"5rem"}},[e("div",{staticClass:"container"},[e("h1",{staticClass:"display-4"},[t._v("Across the Fediverse")]),t._v(" "),e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-outline-light",on:{click:function(e){return t.toggleTab("fediverseGroups")}}},[t._v("\n \t\t\tExplore fediverse groups "),e("i",{staticClass:"fal fa-chevron-right ml-2"})])]),t._v(" "),e("hr",{staticClass:"my-4"}),t._v(" "),t._m(2)])]),t._v(" "),t._m(3),t._v(" "),t._m(4)]):t._e(),t._v(" "),"categories"===t.tab?e("div",{staticClass:"px-5"},[e("div",{staticClass:"row my-4 justify-content-center"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"title mb-4"},[e("span",[t._v("Categories")]),t._v(" "),e("button",{staticClass:"btn btn-light font-weight-bold",on:{click:function(e){return t.toggleTab("home")}}},[t._v("Go Back")])]),t._v(" "),e("div",{staticClass:"list-group"},t._l(t.categories,(function(o,a){return e("div",{key:"rec:"+o.id+":"+a,staticClass:"list-group-item",on:{click:function(e){return t.selectCategory(a)}}},[e("p",{staticClass:"mb-0 font-weight-bold"},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(o)+"\n\t\t\t\t\t\t\t\t"),t._m(5,!0)])])})),0)])])]):t._e(),t._v(" "),"category"===t.tab?e("div",{staticClass:"px-5"},[e("div",{staticClass:"row my-4 justify-content-center"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"title mb-4"},[e("div",[e("div",{staticClass:"mb-n2 small text-uppercase text-lighter"},[t._v("Categories")]),t._v(" "),e("span",[t._v(t._s(t.categories[t.activeCategoryIndex]))])]),t._v(" "),e("button",{staticClass:"btn btn-light font-weight-bold",on:{click:function(e){return t.toggleTab("categories")}}},[t._v("Go Back")])]),t._v(" "),t.categoryGroupsLoaded?e("div",[e("div",{staticClass:"list-group"},[t._l(t.categoryGroups,(function(t,o){return e("a",{staticClass:"list-group-item p-1",attrs:{href:t.url}},[e("group-list-card",{attrs:{group:t,showStats:!0}})],1)})),t._v(" "),t.categoryGroupsCanLoadMore?e("div",{staticClass:"list-group-item"},[e("button",{staticClass:"btn btn-light font-weight-bold btn-block",on:{click:t.fetchCategoryGroups}},[t._v("\n\t\t\t\t\t\t\t\t\tLoad more\n\t\t\t\t\t\t\t\t")])]):t._e()],2),t._v(" "),0===t.categoryGroups.length?e("div",{staticClass:"mt-3"},[t._m(6)]):t._e()]):e("div",[e("div",{staticClass:"card card-body shadow-none border justify-content-center flex-row"},[e("b-spinner")],1)])])])]):t._e(),t._v(" "),"fediverseGroups"===t.tab?e("div",{staticClass:"px-5"},[e("div",{staticClass:"row my-4 justify-content-center"},[e("div",{staticClass:"col-12 col-md-6"},[e("div",{staticClass:"title mb-4"},[e("span",[t._v("Fediverse Groups")]),t._v(" "),e("button",{staticClass:"btn btn-light font-weight-bold",on:{click:function(e){return t.toggleTab("home")}}},[t._v("Go Back")])]),t._v(" "),t._m(7)])])]):t._e()])},s=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"px-5"},[e("div",{staticClass:"jumbotron my-4 text-light bg-mantle"},[e("div",{staticClass:"container"},[e("h1",{staticClass:"display-4"},[t._v("Discover")]),t._v(" "),e("p",{staticClass:"lead mb-0"},[t._v("Explore group communities and topics")])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card card-body shadow-none bg-light text-dark border",staticStyle:{"margin-top":"20px"}},[e("p",{staticClass:"lead mb-4 text-muted font-weight-lighter mb-1"},[t._v("Browse Public Groups")]),t._v(" "),e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-light border font-weight-light btn-block"},[t._v("Group Directory")])])])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"lead"},[t._v("We're in the early stages of Group federation, and working with other projects to support cross-platform compatibility. "),e("a",{attrs:{href:"#"}},[t._v("Learn more about group federation "),e("i",{staticClass:"fal fa-chevron-right ml-2 fa-sm"})])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row my-4 py-5"},[e("div",{staticClass:"col-12 col-md-4"},[e("div",{staticClass:"card card-body shadow-none bg-light",staticStyle:{border:"1px solid #E5E7EB"}},[e("p",{staticClass:"text-center text-lighter"},[e("i",{staticClass:"fal fa-lightbulb fa-4x"})]),t._v(" "),e("p",{staticClass:"text-center lead mb-0"},[t._v("What's New")])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-4"},[e("div",{staticClass:"card card-body shadow-none bg-light",staticStyle:{border:"1px solid #E5E7EB"}},[e("p",{staticClass:"text-center text-lighter"},[e("i",{staticClass:"fal fa-clipboard-list-check fa-4x"})]),t._v(" "),e("p",{staticClass:"text-center lead mb-0"},[t._v("User Guide")])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-4"},[e("div",{staticClass:"card card-body shadow-none bg-light",staticStyle:{border:"1px solid #E5E7EB"}},[e("p",{staticClass:"text-center text-lighter"},[e("i",{staticClass:"fal fa-question-circle fa-4x"})]),t._v(" "),e("p",{staticClass:"text-center lead mb-0"},[t._v("Groups Help")])])])])},function(){var t=this._self._c;return t("p",{staticClass:"text-lighter",staticStyle:{"font-size":"9px"}},[t("span",{staticClass:"font-weight-bold mr-1"},[this._v("Groups v0.0.1")])])},function(){var t=this._self._c;return t("span",{staticClass:"float-right"},[t("i",{staticClass:"fal fa-chevron-right"})])},function(){var t=this._self._c;return t("div",{staticClass:"bg-white border text-center p-3"},[t("p",{staticClass:"font-weight-light mb-0"},[this._v("No groups found in this category")])])},function(){var t=this._self._c;return t("div",{staticClass:"mt-3"},[t("div",{staticClass:"bg-white border text-center p-3"},[t("p",{staticClass:"font-weight-light mb-0"},[this._v("No fediverse groups found")])])])}]},84941:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-9",staticStyle:{overflow:"hidden"}},[e("div",{staticClass:"row h-100 bg-light justify-content-center"},[e("div",{staticClass:"col-12 col-md-10 col-lg-7"},[t.initalLoad?e("div",{staticClass:"px-5"},[t.emptyFeed?e("div",[e("div",{staticClass:"jumbotron mt-5"},[e("h1",{staticClass:"display-4"},[t._v("Hello 👋")]),t._v(" "),e("h3",{staticClass:"font-weight-light"},[t._v("Welcome to Pixelfed Groups!")]),t._v(" "),e("p",{staticClass:"lead"},[t._v("Groups are a way to participate in like minded communities and topics.")]),t._v(" "),e("hr",{staticClass:"my-4"}),t._v(" "),t._m(0),t._v(" "),e("p",{staticClass:"text-center mb-0"},[e("router-link",{staticClass:"btn btn-primary btn-lg rounded-pill",attrs:{to:"/groups/discover"}},[t._v("\n Discover Groups\n ")])],1)])]):e("div",[t._m(1),t._v(" "),e("div",{staticClass:"my-3"},[t._l(t.feed,(function(o,a){return e("group-status",{key:"gs:"+o.id+a,attrs:{prestatus:o,profile:t.profile,"show-group-header":!0,group:o.group,"group-id":o.group.id}})})),t._v(" "),t.feed.length>2?e("div",[e("infinite-loading",{attrs:{distance:800},on:{infinite:t.infiniteFeed}},[e("div",{staticClass:"my-3",attrs:{slot:"no-more"},slot:"no-more"},[e("p",{staticClass:"lead font-weight-bold pt-5"},[t._v("You have reached the end of this feed")]),t._v(" "),e("div",{staticStyle:{height:"10rem"}})]),t._v(" "),e("div",{attrs:{slot:"no-results"},slot:"no-results"})])],1):t._e()],2)])]):e("div",[e("p",{staticClass:"text-center mt-5 pt-5 font-weight-bold"},[t._v("Loading...")])])])])])},s=[function(){var t=this,e=t._self._c;return e("p",[t._v("Anyone can create and manage their own group as long as it abides by our "),e("a",{attrs:{href:"#"}},[t._v("community guidelines")]),t._v(".")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"my-4"},[e("p",{staticClass:"h1 font-weight-bold mb-1"},[t._v("Groups Feed")]),t._v(" "),e("p",{staticClass:"lead text-muted mb-0"},[t._v("Recent posts from your groups")])])}]},54479:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"my-groups-component"},[e("div",{staticClass:"list-container"},[t.isLoaded?e("div",[e("div",{staticClass:"list-group"},t._l(t.groups,(function(t,o){return e("a",{key:"rec:"+t.id+":"+o,staticClass:"list-group-item text-decoration-none",attrs:{href:t.url}},[e("group-list-card",{attrs:{group:t,truncateDescriptionLength:140,showStats:!0}})],1)})),0),t._v(" "),t.canLoadMore?e("p",[e("button",{staticClass:"btn btn-primary btn-block font-weight-bold mt-3",attrs:{disabled:t.loadingMore},on:{click:function(e){return e.preventDefault(),t.loadMore.apply(null,arguments)}}},[t._v("\n \t\tLoad more\n \t")])]):t._e()]):e("div",{staticClass:"d-flex justify-content-center"},[e("b-spinner")],1)])])},s=[]},75891:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){this._self._c;return this._m(0)},s=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-9",staticStyle:{height:"100vh - 51px !important",overflow:"hidden"}},[e("div",{staticClass:"row h-100"},[e("div",{staticClass:"col-12 col-md-8 bg-lighter border-left"},[e("div",{staticClass:"p-4 mb-4"},[e("p",{staticClass:"h4 font-weight-bold mb-1 text-center"},[t._v("Group Invitations")])]),t._v(" "),e("div",{staticClass:"p-4 mb-4"},[e("p",{staticClass:"font-weight-bold text-center text-muted"},[t._v("You don't have any group invites")])])]),t._v(" "),e("div",{staticClass:"col-12 col-md-4 bg-white border-left"},[e("div",{staticClass:"p-4"},[e("div",{staticClass:"bg-light rounded-lg border p-3"},[e("p",{staticClass:"lead font-weight-bold mb-0"},[t._v("Send Invite")]),t._v(" "),e("p",{staticClass:"mb-3"},[t._v("Invite friends to your groups")]),t._v(" "),e("div",{staticClass:"form-group",staticStyle:{position:"relative"}},[e("span",{staticStyle:{position:"absolute",top:"50%",transform:"translateY(-50%)",left:"15px","padding-right":"5px"}},[e("i",{staticClass:"fas fa-search text-lighter"})]),t._v(" "),e("input",{staticClass:"form-control bg-white rounded-pill",staticStyle:{"padding-left":"40px"},attrs:{placeholder:"Search username..."}})])])]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"p-4 mb-2"},[e("p",{staticClass:"h4 font-weight-bold mb-1 text-center"},[t._v("Invitations Sent")])]),t._v(" "),e("div",{staticClass:"px-4 mb-4"},[e("p",{staticClass:"font-weight-bold text-center text-muted"},[t._v("You have not sent any group invites")])])])])])}]},25836:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"group-notification-component col-12 col-md-9",staticStyle:{height:"100vh - 51px !important",overflow:"hidden"}},[e("div",{staticClass:"row h-100 bg-white"},[e("div",{staticClass:"col-12 col-md-8 border-left"},[e("div",{staticClass:"px-5"},[t._m(0),t._v(" "),t._l(t.notifications,(function(o,a){return t.notifications.length>0?e("div",{staticClass:"nitem card card-body shadow-none mb-3 py-2 px-0 rounded-pill",staticStyle:{"background-color":"#F3F4F6"}},[e("div",{staticClass:"media align-items-center px-3"},[e("img",{staticClass:"mr-3 rounded-circle",staticStyle:{border:"1px solid #ccc"},attrs:{src:o.account.avatar,alt:"",width:"32px",height:"32px"}}),t._v(" "),e("div",{staticClass:"media-body"},["group:like"==o.type?e("div",[e("p",{staticClass:"my-0"},[e("a",{attrs:{href:t.getProfileUrl(o.account),"data-placement":"bottom","data-toggle":"tooltip",title:o.account.username}},[t._v(t._s(0==o.account.local?"@":"")+t._s(t.truncate(o.account.username)))]),t._v(" liked your "),e("a",{attrs:{href:t.getPostUrl(o.status)}},[t._v("post")]),t._v(" in "),e("a",{attrs:{href:o.group.url}},[t._v(t._s(o.group.name))])])]):"group:comment"==o.type?e("div",[e("p",{staticClass:"my-0"},[e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:t.getProfileUrl(o.account),title:o.account.username}},[t._v(t._s(0==o.account.local?"@":"")+t._s(t.truncate(o.account.username)))]),t._v(" commented on your "),e("a",{staticClass:"font-weight-bold",attrs:{href:o.status.url}},[t._v("post")]),t._v(" in "),e("a",{attrs:{href:o.group.url}},[t._v(t._s(o.group.name))])])]):"mention"==o.type?e("div",[e("p",{staticClass:"my-0"},[e("a",{attrs:{href:t.getProfileUrl(o.account),"data-placement":"bottom","data-toggle":"tooltip",title:o.account.username}},[t._v(t._s(0==o.account.local?"@":"")+t._s(t.truncate(o.account.username)))]),t._v(" "),e("a",{attrs:{href:t.mentionUrl(o.status)}},[t._v("mentioned")]),t._v(" you.\n\t\t\t\t\t\t\t\t\t")])]):"group.join.approved"==o.type?e("div",[e("p",{staticClass:"my-0"},[t._v("\n\t\t\t\t\t\t\t\t\t\tYour application to join "),e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:o.group.url,title:o.group.name}},[t._v(t._s(t.truncate(o.group.name)))]),t._v(" was approved!\n\t\t\t\t\t\t\t\t\t")])]):"group.join.rejected"==o.type?e("div",[e("p",{staticClass:"my-0"},[t._v("\n\t\t\t\t\t\t\t\t\t\tYour application to join "),e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:o.group.url,title:o.group.name}},[t._v(t._s(t.truncate(o.group.name)))]),t._v(" was rejected. You can re-apply to join in 6 months.\n\t\t\t\t\t\t\t\t\t")])]):e("div",[e("p",{staticClass:"my-0"},[t._v("Cannot display notification")])])]),t._v(" "),e("div",[e("div",{staticClass:"align-items-center text-muted"},[e("span",{staticClass:"small",attrs:{"data-toggle":"tooltip","data-placement":"bottom",title:o.created_at}},[t._v(t._s(t.timeAgo(o.created_at)))]),t._v(" "),e("span",[t._v("·")]),t._v(" "),t._m(1,!0)])])])]):t._e()}))],2)]),t._v(" "),e("div",{staticClass:"col-12 col-md-4 border-left bg-light"})])])},s=[function(){var t=this._self._c;return t("div",{staticClass:"my-4"},[t("p",{staticClass:"h1 font-weight-bold mb-1"},[this._v("Group Notifications")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"dropdown d-inline"},[e("a",{staticClass:"dropdown-toggle text-lighter",attrs:{href:"#",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[e("i",{staticClass:"far fa-cog fa-sm"})]),t._v(" "),e("div",{staticClass:"dropdown-menu dropdown-menu-right"},[e("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"#"}},[t._v("Dismiss")]),t._v(" "),e("div",{staticClass:"dropdown-divider"}),t._v(" "),e("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"#"}},[t._v("Help")]),t._v(" "),e("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"#"}},[t._v("Report")])])])}]},5328:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-9",staticStyle:{height:"100vh - 51px !important",overflow:"hidden"}},[e("div",{staticClass:"row h-100 bg-lighter"},[e("div",{staticClass:"col-12 col-md-8 border-left"},[t._m(0),t._v(" "),e("div",{staticClass:"mb-5"},[e("div",{staticClass:"p-4 mb-4"},[e("div",{staticClass:"form-group"},[e("label",[t._v("Group URL")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.q,expression:"q"}],staticClass:"form-control form-control-lg rounded-pill bg-white border",attrs:{type:"text",placeholder:"https://pixelfed.social/groups/328323406233735168"},domProps:{value:t.q},on:{input:function(e){e.target.composing||(t.q=e.target.value)}}})]),t._v(" "),e("button",{staticClass:"btn btn-primary btn-block btn-lg rounded-pill font-weight-bold"},[t._v("Search")])])])]),t._v(" "),t._m(1)])])},s=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex justify-content-center"},[e("div",{staticClass:"p-4 mb-4"},[e("p",{staticClass:"h4 font-weight-bold mb-1"},[t._v("Find a Remote Group")]),t._v(" "),e("p",{staticClass:"lead text-muted"},[t._v("Search and explore remote federated groups.")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-12 col-md-4 bg-white border-left"},[e("div",{staticClass:"my-4"},[e("h4",{staticClass:"font-weight-bold"},[t._v("Tips")]),t._v(" "),e("ul",{staticClass:"pl-3"},[e("li",{staticClass:"font-weight-bold"},[t._v("Some remote groups are not supported*")]),t._v(" "),e("li",[t._v("Read and comply with group rules defined by group admins")]),t._v(" "),e("li",[t._v("Use the full "),e("span",{staticClass:"font-weight-bold"},[t._v("Group URL")]),t._v(" including "),e("code",[t._v("https://")])]),t._v(" "),e("li",[t._v("Joining private groups requires manual approval from group admins, you will recieve a notification when your membership is approved")]),t._v(" "),e("li",[t._v("Inviting people to remote groups is not supported yet")]),t._v(" "),e("li",[t._v("Your group membership may be terminated at any time by group admins")])]),t._v(" "),e("p",{staticClass:"small"},[t._v("* Some remote groups may not be compatible, we are working to support other group implementations")])])])}]},3391:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t,e,o=this,a=o._self._c;return a("div",{staticClass:"group-post-header media"},[o.showGroupHeader?a("div",{staticClass:"mb-1",staticStyle:{position:"relative"}},[o.group.hasOwnProperty("metadata")&&(o.group.metadata.hasOwnProperty("avatar")||o.group.metadata.hasOwnProperty("header"))?a("img",{staticClass:"rounded-lg box-shadow mr-2",staticStyle:{"object-fit":"cover"},attrs:{src:o.group.metadata.hasOwnProperty("header")?o.group.metadata.header.url:o.group.metadata.avatar.url,width:"52",height:"52",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}}):a("span",{staticClass:"d-block rounded-lg box-shadow mr-2 bg-primary",staticStyle:{width:"52px",height:"52px"}}),o._v(" "),a("img",{staticClass:"rounded-circle box-shadow border mr-2",staticStyle:{position:"absolute",bottom:"-4px",right:"-4px"},attrs:{src:o.status.account.avatar,width:"36",height:"36",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})]):a("img",{staticClass:"rounded-circle box-shadow mr-2",attrs:{src:o.status.account.avatar,width:"42",height:"42",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}}),o._v(" "),a("div",{staticClass:"media-body"},[a("div",{staticClass:"pl-2 d-flex align-items-top"},[a("div",[a("p",{staticClass:"mb-0"},[o.showGroupHeader&&o.group?a("router-link",{staticClass:"group-name-link username",attrs:{to:"/groups/".concat(o.status.gid)}},[o._v("\n "+o._s(o.group.name)+"\n ")]):a("router-link",{staticClass:"group-name-link username",attrs:{to:"/groups/".concat(o.status.gid,"/user/").concat(null===(t=o.status)||void 0===t?void 0:t.account.id)},domProps:{innerHTML:o._s(o.statusCardUsernameFormat(o.status))}},[o._v("\n Loading...\n ")]),o._v(" "),o.showGroupChevron?a("span",[o._m(0),o._v(" "),a("span",[a("router-link",{staticClass:"group-name-link",attrs:{to:"/groups/".concat(o.status.gid)}},[o._v("\n "+o._s(o.group.name)+"\n ")])],1)]):o._e()],1),o._v(" "),a("p",{staticClass:"mb-0 mt-n1"},[o.showGroupHeader&&o.group?a("span",{staticStyle:{"font-size":"13px"}},[a("router-link",{staticClass:"group-name-link-small username",attrs:{to:"/groups/".concat(o.status.gid,"/user/").concat(null===(e=o.status)||void 0===e?void 0:e.account.id)},domProps:{innerHTML:o._s(o.statusCardUsernameFormat(o.status))}},[o._v("\n Loading...\n ")]),o._v(" "),a("span",{staticClass:"text-lighter",staticStyle:{"padding-left":"2px","padding-right":"2px"}},[o._v("·")]),o._v(" "),a("router-link",{staticClass:"font-weight-light text-muted",attrs:{to:"/groups/".concat(o.status.gid,"/p/").concat(o.status.id)}},[o._v("\n "+o._s(o.shortTimestamp(o.status.created_at))+"\n ")]),o._v(" "),a("span",{staticClass:"text-lighter",staticStyle:{"padding-left":"2px","padding-right":"2px"}},[o._v("·")]),o._v(" "),o._m(1)],1):a("span",[a("router-link",{staticClass:"font-weight-light text-muted small",attrs:{to:"/groups/".concat(o.status.gid,"/p/").concat(o.status.id)}},[o._v("\n "+o._s(o.shortTimestamp(o.status.created_at))+"\n ")]),o._v(" "),a("span",{staticClass:"text-lighter",staticStyle:{"padding-left":"2px","padding-right":"2px"}},[o._v("·")]),o._v(" "),o._m(2)],1)])]),o._v(" "),o.profile?a("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[a("div",{staticClass:"dropdown"},[o._m(3),o._v(" "),a("div",{staticClass:"dropdown-menu dropdown-menu-right"},[a("a",{staticClass:"dropdown-item",attrs:{href:"#"}},[o._v("View Post")]),o._v(" "),a("a",{staticClass:"dropdown-item",attrs:{href:"#"}},[o._v("View Profile")]),o._v(" "),a("a",{staticClass:"dropdown-item",attrs:{href:"#"}},[o._v("Copy Link")]),o._v(" "),a("a",{staticClass:"dropdown-item",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),o.sendReport()}}},[o._v("Report")]),o._v(" "),a("div",{staticClass:"dropdown-divider"}),o._v(" "),a("a",{staticClass:"dropdown-item text-danger",attrs:{href:"#"}},[o._v("Delete")])])])]):o._e()])])])},s=[function(){var t=this._self._c;return t("span",{staticClass:"text-muted",staticStyle:{"padding-left":"2px","padding-right":"2px"}},[t("i",{staticClass:"fas fa-caret-right"})])},function(){var t=this._self._c;return t("span",{staticClass:"text-muted"},[t("i",{staticClass:"fas fa-globe"})])},function(){var t=this._self._c;return t("span",{staticClass:"text-muted small"},[t("i",{staticClass:"fas fa-globe"})])},function(){var t=this._self._c;return t("button",{staticClass:"btn btn-link dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-expanded":"false"}},[t("span",{staticClass:"fas fa-ellipsis-h text-lighter"})])}]},70560:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"card shadow-sm",staticStyle:{"border-radius":"18px !important"}},[e("div",{staticClass:"card-body pb-0"},[t._m(0),t._v(" "),e("div",[t.showCommentDrawer?e("comment-drawer",{attrs:{"permalink-mode":t.permalinkMode,"permalink-status":t.childContext,status:t.status,profile:t.profile,"group-id":t.groupId,"can-reply":!1}}):t._e()],1)])])},s=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"card card-body border shadow-none mb-3",staticStyle:{"background-color":"#E5E7EB"}},[e("div",{staticClass:"media p-md-4"},[e("div",{staticClass:"mr-4 pt-2"},[e("i",{staticClass:"fas fa-lock fa-2x"})]),t._v(" "),e("div",{staticClass:"media-body",staticStyle:{"max-width":"320px"}},[e("p",{staticClass:"lead font-weight-bold mb-1"},[t._v("This content isn't available right now")]),t._v(" "),e("p",{staticClass:"mb-0",staticStyle:{"font-size":"12px","letter-spacing":"-0.3px"}},[t._v("When this happens, it's usually because the owner only shared it with a small group of people, changed who can see it, or it's been deleted.")])])])])}]},69565:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"w-100 h-100"},[t.loaded?t._e():e("div",{staticClass:"d-flex w-100 h-100 py-5 justify-content-center align-items-center"},[t._m(0)])])},s=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center"},[e("div",{staticClass:"spinner-border",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[t._v("Loading...")])]),t._v(" "),e("p",{staticClass:"text-center font-weight-bold mt-1"},[t._v("Loading...")])])}]},27890:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-3 shadow groups-sidenav"},[e("div",{staticClass:"p-1"},[t._m(0),t._v(" "),e("div",{staticClass:"mb-3"},[e("autocomplete",{ref:"autocomplete",attrs:{search:t.autocompleteSearch,placeholder:"Search groups by name","aria-label":"Search groups by name","get-result-value":t.getSearchResultValue,debounceTime:700},on:{submit:t.onSearchSubmit},scopedSlots:t._u([{key:"result",fn:function(o){var a=o.result,s=o.props;return[e("li",t._b({staticClass:"autocomplete-result"},"li",s,!1),[e("div",{staticClass:"media align-items-center"},[a.local&&a.metadata&&a.metadata.hasOwnProperty("header")&&a.metadata.header.hasOwnProperty("url")?e("img",{attrs:{src:a.metadata.header.url,width:"32",height:"32"}}):e("div",{staticClass:"icon-placeholder"},[e("i",{staticClass:"fal fa-user-friends"})]),t._v(" "),e("div",{staticClass:"media-body text-truncate mr-3"},[e("p",{staticClass:"result-name mb-n1 font-weight-bold"},[t._v("\n "+t._s(t.truncateName(a.name))+"\n "),a.verified?e("span",{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:"mb-0 text-muted",staticStyle:{"font-size":"10px"}},[a.local?t._e():e("span",{attrs:{title:"Remote Group"}},[e("i",{staticClass:"far fa-globe"})]),t._v(" "),a.local?t._e():e("span",[t._v("·")]),t._v(" "),e("span",{staticClass:"font-weight-bold"},[t._v(t._s(a.member_count)+" members")])])])])])]}}])})],1),t._v(" "),t._l(t.tabs,(function(o){return[e("router-link",{staticClass:"btn btn-light group-nav-btn",attrs:{to:o.path}},[e("div",{staticClass:"group-nav-btn-icon"},[e("i",{class:o.icon})]),t._v(" "),e("div",{staticClass:"group-nav-btn-name"},[t._v("\n "+t._s(o.name)+"\n ")])])]})),t._v(" "),e("router-link",{staticClass:"btn btn-primary btn-block rounded-pill font-weight-bold mt-3",attrs:{to:"/groups/create"}},[e("i",{staticClass:"fas fa-plus mr-2"}),t._v(" Create New Group\n ")]),t._v(" "),e("hr")],2)])},s=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex justify-content-between align-items-center py-3"},[e("p",{staticClass:"h2 font-weight-bold mb-0"},[t._v("Groups")]),t._v(" "),e("a",{staticClass:"btn btn-light px-2 rounded-circle",attrs:{href:"/settings/home"}},[e("i",{staticClass:"fas fa-cog fa-lg"})])])}]},16387:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("nav",{staticClass:"metro-nav navbar navbar-expand navbar-light navbar-laravel sticky-top shadow-none py-1"},[e("div",{staticClass:"container-fluid"},[e("a",{staticClass:"navbar-brand d-flex align-items-center",attrs:{href:"/i/web",title:"Logo"}},[e("img",{staticClass:"px-2",attrs:{src:"/img/pixelfed-icon-color.svg",height:"30px",loading:"eager",alt:"Pixelfed logo"}}),t._v(" "),e("span",{staticClass:"font-weight-bold mb-0 d-none d-sm-block",staticStyle:{"font-size":"20px"}},[t._v("\n\t\t\t\t\t"+t._s(t.brandName)+"\n\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"collapse navbar-collapse"},[e("div",{staticClass:"navbar-nav ml-auto"},[e("autocomplete",{ref:"autocomplete",staticClass:"searchbox",attrs:{search:t.autocompleteSearch,placeholder:t.$t("navmenu.search"),"aria-label":"Search","get-result-value":t.getSearchResultValue,debounceTime:700},on:{submit:t.onSearchSubmit},scopedSlots:t._u([{key:"result",fn:function(o){var a=o.result,s=o.props;return[e("li",t._b({staticClass:"autocomplete-result sr"},"li",s,!1),["account"===a.s_type?e("div",{staticClass:"media align-items-center my-0"},[e("img",{staticClass:"sr-avatar",staticStyle:{"border-radius":"40px"},attrs:{src:a.avatar,width:"40",height:"40",onerror:"this.src='/storage/avatars/default.png?v=0';this.onerror=null;"}}),t._v(" "),e("div",{staticClass:"media-body sr-account"},[e("div",{staticClass:"sr-account-acct",class:{compact:a.acct&&a.acct.length>24}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t@"+t._s(a.acct)+"\n\t\t\t\t\t\t\t\t\t\t\t"),a.locked?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.html",modifiers:{html:!0}}],staticClass:"p-0",attrs:{title:"Private Account",variant:"link",size:"sm"}},[e("i",{staticClass:"far fa-lock fa-sm text-lighter ml-1"})]):t._e()],1),t._v(" "),a.is_admin?[e("div",{staticClass:"sr-account-stats"},[e("div",{staticClass:"sr-account-stats-followers text-danger font-weight-bold"},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t\tAdmin\n\t\t\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("div",[t._v("·")]),t._v(" "),e("div",{staticClass:"sr-account-stats-followers font-weight-bold"},[e("span",[t._v(t._s(t.formatCount(a.followers_count)))]),t._v(" "),e("span",[t._v("Followers")])])])]:[a.local?[e("div",{staticClass:"sr-account-stats"},[a.followers_count?e("div",{staticClass:"sr-account-stats-followers font-weight-bold"},[e("span",[t._v(t._s(t.formatCount(a.followers_count)))]),t._v(" "),e("span",[t._v("Followers")])]):t._e(),t._v(" "),a.followers_count&&a.statuses_count?e("div",[t._v("·")]):t._e(),t._v(" "),a.statuses_count?e("div",{staticClass:"sr-account-stats-statuses font-weight-bold"},[e("span",[t._v(t._s(t.formatCount(a.statuses_count)))]),t._v(" "),e("span",[t._v("Posts")])]):t._e(),t._v(" "),!a.followers_count&&a.statuses_count?e("div",[t._v("·")]):t._e(),t._v(" "),e("div",{staticClass:"sr-account-stats-statuses font-weight-bold"},[e("i",{staticClass:"far fa-clock fa-sm"}),t._v(" "),e("span",[t._v(t._s(t.timeAgo(a.created_at)))])])])]:[e("div",{staticClass:"sr-account-stats"},[a.followers_count?e("div",{staticClass:"sr-account-stats-followers font-weight-bold"},[e("span",[t._v(t._s(t.formatCount(a.followers_count)))]),t._v(" "),e("span",[t._v("Followers")])]):t._e(),t._v(" "),a.followers_count&&a.statuses_count?e("div",[t._v("·")]):t._e(),t._v(" "),a.statuses_count?e("div",{staticClass:"sr-account-stats-statuses font-weight-bold"},[e("span",[t._v(t._s(t.formatCount(a.statuses_count)))]),t._v(" "),e("span",[t._v("Posts")])]):t._e(),t._v(" "),!a.followers_count&&a.statuses_count?e("div",[t._v("·")]):t._e(),t._v(" "),a.followers_count||a.statuses_count?t._e():e("div",{staticClass:"sr-account-stats-statuses font-weight-bold"},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tRemote Account\n\t\t\t\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),a.followers_count||a.statuses_count?t._e():e("div",[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t·\n\t\t\t\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.html",modifiers:{html:!0}}],staticClass:"sr-account-stats-statuses p-0",attrs:{title:"Joined "+t.timeAgo(a.created_at)+" ago",variant:"link",size:"sm"}},[e("i",{staticClass:"far fa-clock fa-sm"}),t._v(" "),e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.timeAgo(a.created_at)))])])],1)]]],2)]):"hashtag"===a.s_type?e("div",{staticClass:"media align-items-center my-0"},[e("div",{staticClass:"media-icon"},[e("i",{staticClass:"far fa-hashtag fa-large"})]),t._v(" "),e("div",{staticClass:"media-body sr-tag"},[e("div",{staticClass:"sr-tag-name",class:{compact:a.name&&a.name.length>26}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t#"+t._s(a.name)+"\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),a.count&&a.count>100?e("div",{staticClass:"sr-tag-count"},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.formatCount(a.count))+" "+t._s(1==a.count?"Post":"Posts")+"\n\t\t\t\t\t\t\t\t\t\t")]):t._e()])]):"status"===a.s_type?e("div",{staticClass:"media align-items-center my-0"},[e("img",{staticClass:"sr-avatar",staticStyle:{"border-radius":"40px"},attrs:{src:a.account.avatar,width:"40",height:"40",onerror:"this.src='/storage/avatars/default.png?v=0';this.onerror=null;"}}),t._v(" "),e("div",{staticClass:"media-body sr-post"},[e("div",{staticClass:"sr-post-acct",class:{compact:a.acct&&a.acct.length>26}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t@"+t._s(t.truncate(a.account.acct,20))+"\n\t\t\t\t\t\t\t\t\t\t\t"),a.locked?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.html",modifiers:{html:!0}}],staticClass:"p-0",attrs:{title:"Private Account",variant:"link",size:"sm"}},[e("i",{staticClass:"far fa-lock fa-sm text-lighter ml-1"})]):t._e()],1),t._v(" "),e("div",{staticClass:"sr-post-action"},[e("div",{staticClass:"sr-post-action-timestamp"},[e("i",{staticClass:"far fa-clock fa-sm"}),t._v("\n\t\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")]),t._v(" "),e("div",[t._v("·")]),t._v(" "),e("div",{staticClass:"sr-post-action-label"},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\tTap to view post\n\t\t\t\t\t\t\t\t\t\t\t")])])])]):t._e()])]}}])})],1),t._v(" "),e("div",{staticClass:"ml-auto"},[e("ul",{staticClass:"navbar-nav align-items-center"},[e("li",{staticClass:"nav-item dropdown ml-2"},[e("a",{staticClass:"nav-link dropdown-toggle",attrs:{id:"navbarDropdown",href:"#",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",title:"User Menu"}},[e("i",{staticClass:"d-none far fa-user fa-lg text-dark"}),t._v(" "),e("span",{staticClass:"sr-only"},[t._v("User Menu")]),t._v(" "),e("img",{staticClass:"nav-avatar rounded-circle border shadow",attrs:{src:t.user.avatar,width:"30",height:"30",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0';"}})]),t._v(" "),e("div",{staticClass:"dropdown-menu dropdown-menu-right shadow",attrs:{"aria-labelledby":"navbarDropdown"}},[e("ul",{staticClass:"nav flex-column"},[e("li",{staticClass:"nav-item nav-icons"},[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("router-link",{staticClass:"nav-link text-center",attrs:{to:"/i/web"}},[e("div",{staticClass:"icon text-lighter"},[e("i",{staticClass:"far fa-home fa-lg"})]),t._v(" "),e("div",{staticClass:"small"},[t._v(t._s(t.$t("navmenu.homeFeed")))])]),t._v(" "),t.hasLocalTimeline?e("router-link",{staticClass:"nav-link text-center",attrs:{to:{name:"timeline",params:{scope:"local"}}}},[e("div",{staticClass:"icon text-lighter"},[e("i",{staticClass:"fas fa-stream fa-lg"})]),t._v(" "),e("div",{staticClass:"small"},[t._v(t._s(t.$t("navmenu.localFeed")))])]):t._e(),t._v(" "),t.hasNetworkTimeline?e("router-link",{staticClass:"nav-link text-center",attrs:{to:{name:"timeline",params:{scope:"global"}}}},[e("div",{staticClass:"icon text-lighter"},[e("i",{staticClass:"far fa-globe fa-lg"})]),t._v(" "),e("div",{staticClass:"small"},[t._v(t._s(t.$t("navmenu.globalFeed")))])]):t._e()],1)]),t._v(" "),e("li",{staticClass:"nav-item nav-icons"},[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("router-link",{staticClass:"nav-link text-center",attrs:{to:"/i/web/discover"}},[e("div",{staticClass:"icon text-lighter"},[e("i",{staticClass:"far fa-compass"})]),t._v(" "),e("div",{staticClass:"small"},[t._v(t._s(t.$t("navmenu.discover")))])]),t._v(" "),e("router-link",{staticClass:"nav-link text-center",attrs:{to:"/i/web/notifications"}},[e("div",{staticClass:"icon text-lighter"},[e("i",{staticClass:"far fa-bell"})]),t._v(" "),e("div",{staticClass:"small"},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.$t("navmenu.notifications"))+"\n\t\t\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e("router-link",{staticClass:"nav-link text-center px-3",attrs:{to:"/i/web/profile/"+t.user.id}},[e("div",{staticClass:"icon text-lighter"},[e("i",{staticClass:"far fa-user"})]),t._v(" "),e("div",{staticClass:"small"},[t._v(t._s(t.$t("navmenu.profile")))])])],1),t._v(" "),e("hr",{staticClass:"mb-0",staticStyle:{"margin-top":"-5px",opacity:"0.4"}})]),t._v(" "),e("li",{staticClass:"nav-item"},[e("router-link",{staticClass:"nav-link",attrs:{to:"/i/web/compose"}},[e("span",{staticClass:"icon text-lighter"},[e("i",{staticClass:"far fa-plus-square"})]),t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.$t("navmenu.compose"))+"\n\t\t\t\t\t\t\t\t\t\t")])],1),t._v(" "),e("li",{staticClass:"nav-item"},[e("router-link",{staticClass:"nav-link d-flex justify-content-between align-items-center",attrs:{to:"/i/web/direct"}},[e("span",[e("span",{staticClass:"icon text-lighter"},[e("i",{staticClass:"far fa-envelope"})]),t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.$t("navmenu.directMessages"))+"\n\t\t\t\t\t\t\t\t\t\t\t")])])],1),t._v(" "),e("li",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",attrs:{href:"/i/web"},on:{click:function(e){return e.preventDefault(),t.openUserInterfaceSettings.apply(null,arguments)}}},[t._m(0),t._v("\n\t\t\t\t\t\t\t\t\t\t\tUI Settings\n\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),t.user.is_admin?e("li",{staticClass:"nav-item"},[e("hr",{staticClass:"mt-n1",staticStyle:{opacity:"0.4","margin-bottom":"0"}}),t._v(" "),e("a",{staticClass:"nav-link",attrs:{href:"/i/admin/dashboard"}},[t._m(1),t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.$t("navmenu.admin"))+"\n\t\t\t\t\t\t\t\t\t\t")])]):t._e(),t._v(" "),e("li",{staticClass:"nav-item"},[e("hr",{staticClass:"mt-n1",staticStyle:{opacity:"0.4","margin-bottom":"0"}}),t._v(" "),e("a",{staticClass:"nav-link",attrs:{href:"/"}},[t._m(2),t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.$t("navmenu.backToPreviousDesign"))+"\n\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e("li",{staticClass:"nav-item"},[e("hr",{staticClass:"mt-n1",staticStyle:{opacity:"0.4","margin-bottom":"0"}}),t._v(" "),e("a",{staticClass:"nav-link",attrs:{href:"/"},on:{click:function(e){return e.preventDefault(),t.logout()}}},[t._m(3),t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.$t("navmenu.logout"))+"\n\t\t\t\t\t\t\t\t\t\t")])])])])])])])])]),t._v(" "),e("b-modal",{ref:"uis",attrs:{"hide-footer":"",centered:"","body-class":"p-0 ui-menu",title:"UI Settings"}},[e("div",{staticClass:"list-group list-group-flush"},[e("div",{staticClass:"list-group-item px-3"},[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("div",[e("p",{staticClass:"font-weight-bold mb-1"},[t._v("Theme")]),t._v(" "),e("p",{staticClass:"small text-muted mb-0"})]),t._v(" "),e("div",{staticClass:"btn-group btn-group-sm"},[e("button",{staticClass:"btn",class:["system"==t.uiColorScheme?"btn-primary":"btn-outline-primary"],on:{click:function(e){return t.toggleUi("system")}}},[t._v("\n\t\t\t\t\t\t\tAuto\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn",class:["light"==t.uiColorScheme?"btn-primary":"btn-outline-primary"],on:{click:function(e){return t.toggleUi("light")}}},[t._v("\n\t\t\t\t\t\t\tLight mode\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn",class:["dark"==t.uiColorScheme?"btn-primary":"btn-outline-primary"],on:{click:function(e){return t.toggleUi("dark")}}},[t._v("\n\t\t\t\t\t\t\tDark mode\n\t\t\t\t\t\t")])])])]),t._v(" "),e("div",{staticClass:"list-group-item px-3"},[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("div",[e("p",{staticClass:"font-weight-bold mb-1"},[t._v("Profile Layout")]),t._v(" "),e("p",{staticClass:"small text-muted mb-0"})]),t._v(" "),e("div",{staticClass:"btn-group btn-group-sm"},[e("button",{staticClass:"btn",class:["grid"==t.profileLayout?"btn-primary":"btn-outline-primary"],on:{click:function(e){return t.toggleProfileLayout("grid")}}},[t._v("\n\t\t\t\t\t\t\tGrid\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn",class:["masonry"==t.profileLayout?"btn-primary":"btn-outline-primary"],on:{click:function(e){return t.toggleProfileLayout("masonry")}}},[t._v("\n\t\t\t\t\t\t\tMasonry\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn",class:["feed"==t.profileLayout?"btn-primary":"btn-outline-primary"],on:{click:function(e){return t.toggleProfileLayout("feed")}}},[t._v("\n\t\t\t\t\t\t\tFeed\n\t\t\t\t\t\t")])])])]),t._v(" "),e("div",{staticClass:"list-group-item px-3"},[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("div",[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("Compact Media Previews")])]),t._v(" "),e("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:t.fixedHeight,callback:function(e){t.fixedHeight=e},expression:"fixedHeight"}})],1)]),t._v(" "),e("div",{staticClass:"list-group-item px-3"},[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("div",[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("Load Comments")])]),t._v(" "),e("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:t.autoloadComments,callback:function(e){t.autoloadComments=e},expression:"autoloadComments"}})],1)]),t._v(" "),e("div",{staticClass:"list-group-item px-3"},[e("div",{staticClass:"d-flex justify-content-between align-items-center"},[e("div",[e("p",{staticClass:"font-weight-bold mb-0"},[t._v("Hide Counts & Stats")])]),t._v(" "),e("b-form-checkbox",{attrs:{switch:"",size:"lg"},model:{value:t.hideCounts,callback:function(e){t.hideCounts=e},expression:"hideCounts"}})],1)])])])],1)},s=[function(){var t=this._self._c;return t("span",{staticClass:"icon text-lighter"},[t("i",{staticClass:"far fa-brush"})])},function(){var t=this._self._c;return t("span",{staticClass:"icon text-lighter"},[t("i",{staticClass:"far fa-tools"})])},function(){var t=this._self._c;return t("span",{staticClass:"icon text-lighter"},[t("i",{staticClass:"fas fa-chevron-left"})])},function(){var t=this._self._c;return t("span",{staticClass:"icon text-lighter"},[t("i",{staticClass:"far fa-sign-out"})])}]},18389:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return 1==t.status.sensitive?e("div",[e("details",{staticClass:"details-animated"},[e("summary",[e("p",{staticClass:"mb-0 lead font-weight-bold"},[t._v(t._s(t.status.spoiler_text?t.status.spoiler_text:"CW / NSFW / Hidden Media"))]),t._v(" "),e("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),e("b-carousel",{staticStyle:{"text-shadow":"1px 1px 2px #333","background-color":"#000"},attrs:{id:t.status.id+"-carousel",controls:"","img-blank":"",background:"#ffffff",interval:0}},t._l(t.status.media_attachments,(function(o,a){return e("b-carousel-slide",{key:o.id+"-media"},["video"==o.type?e("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:o.description,width:"100%",height:"100%"},slot:"img"},[e("source",{attrs:{src:o.url,type:o.mime}})]):"image"==o.type?e("div",{attrs:{slot:"img",title:o.description},slot:"img"},[e("img",{class:o.filter_class+" d-block img-fluid w-100",attrs:{src:o.url,alt:o.description,loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})]):e("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])})),1)],1)]):e("div",{staticClass:"w-100 h-100 p-0"},[e("carousel",{ref:"carousel",staticClass:"p-0 m-0",attrs:{centerMode:!0,loop:!1,"per-page":1,paginationPosition:"bottom-overlay",paginationActiveColor:"#3897f0",paginationColor:"#dbdbdb"}},t._l(t.status.media_attachments,(function(o,a){return e("slide",{key:"px-carousel-"+o.id+"-"+a,staticClass:"w-100 h-100 d-block mx-auto text-center",staticStyle:{background:"#000",display:"flex","align-items":"center"}},["video"==o.type?e("video",{staticClass:"embed-responsive-item",attrs:{preload:"none",controls:"",loop:"",title:o.description,width:"100%",height:"100%"}},[e("source",{attrs:{src:o.url,type:o.mime}})]):"image"==o.type?e("div",{attrs:{title:o.description}},[e("img",{class:o.filter_class+" img-fluid w-100",attrs:{src:o.url,alt:o.description,loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})]):e("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])})),1)],1)},s=[]},28691:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return 1==t.status.sensitive?e("div",{staticClass:"content-label-wrapper"},[e("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),e("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),e("p",{staticClass:"text-center py-2 content-label-text"},[t._v("\n\t\t\t"+t._s(t.status.spoiler_text?t.status.spoiler_text:"This album may contain sensitive content.")+"\n\t\t")]),t._v(" "),e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-outline-light btn-block btn-sm font-weight-bold",on:{click:function(e){return t.toggleContentWarning()}}},[t._v("See Post")])])]),t._v(" "),e("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):e("div",{staticClass:"w-100 h-100 p-0 album-wrapper"},[e("carousel",{ref:"carousel",staticClass:"p-0 m-0",attrs:{centerMode:!0,loop:!1,"per-page":1,paginationPosition:"bottom-overlay",paginationActiveColor:"#3897f0",paginationColor:"#dbdbdb",id:"carousel-"+t.status.id}},t._l(t.status.media_attachments,(function(o,a){return e("slide",{key:"px-carousel-"+o.id+"-"+a,staticStyle:{background:"#000",display:"flex","align-items":"center"},attrs:{title:o.description}},[e("img",{staticClass:"img-fluid w-100 p-0",attrs:{src:o.url,alt:t.altText(o),loading:"lazy","data-bp":o.url,onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})])})),1),t._v(" "),e("div",{staticClass:"album-overlay"},[!t.status.sensitive&&t.sensitive?e("p",{staticStyle:{"margin-top":"0",padding:"10px",color:"#fff","font-size":"10px","text-align":"right",position:"absolute",top:"0",right:"0","border-top-left-radius":"5px",cursor:"pointer",background:"linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0.5))"},on:{click:function(e){t.status.sensitive=!0}}},[e("i",{staticClass:"fas fa-eye-slash fa-lg"})]):t._e(),t._v(" "),e("p",{staticStyle:{"margin-top":"0",padding:"10px",color:"#fff","font-size":"10px","text-align":"right",position:"absolute",left:"0",top:"0","border-bottom-right-radius":"5px",cursor:"pointer",background:"linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0.5))"},on:{click:function(e){return e.preventDefault(),t.toggleLightbox.apply(null,arguments)}}},[e("i",{staticClass:"fas fa-expand fa-lg"})]),t._v(" "),t.status.media_attachments[0].license?e("p",{staticStyle:{"margin-bottom":"0",padding:"0 5px",color:"#fff","font-size":"10px","text-align":"right",position:"absolute",bottom:"0",right:"0","border-top-left-radius":"5px",background:"linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0.5))"}},[e("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.url}},[t._v("Photo")]),t._v(" by "),e("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.account.url}},[t._v("@"+t._s(t.status.account.username))]),t._v(" licensed under "),e("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.media_attachments[0].license.url}},[t._v(t._s(t.status.media_attachments[0].license.title))])]):t._e()])],1)},s=[function(){var t=this._self._c;return t("p",{staticClass:"text-center"},[t("i",{staticClass:"far fa-eye-slash fa-2x"})])}]},84094:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return 1==t.status.sensitive?e("div",{staticClass:"content-label-wrapper"},[e("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),e("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),e("p",{staticClass:"text-center py-2 content-label-text"},[t._v("\n\t\t\t"+t._s(t.status.spoiler_text?t.status.spoiler_text:"This post may contain sensitive content.")+"\n\t\t")]),t._v(" "),e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-outline-light btn-block btn-sm font-weight-bold",on:{click:function(e){return t.toggleContentWarning()}}},[t._v("See Post")])])]),t._v(" "),e("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):e("div",[e("div",{staticStyle:{position:"relative"},attrs:{title:t.status.media_attachments[0].description}},[e("img",{staticClass:"card-img-top",attrs:{src:t.status.media_attachments[0].url,loading:"lazy",alt:t.altText(t.status),width:t.width(),height:t.height(),onerror:"this.onerror=null;this.src='/storage/no-preview.png'"},on:{click:function(e){return e.preventDefault(),t.toggleLightbox.apply(null,arguments)}}}),t._v(" "),!t.status.sensitive&&t.sensitive?e("p",{staticStyle:{"margin-top":"0",padding:"10px",color:"#fff","font-size":"10px","text-align":"right",position:"absolute",top:"0",right:"0","border-top-left-radius":"5px",cursor:"pointer",background:"linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0.5))"},on:{click:function(e){t.status.sensitive=!0}}},[e("i",{staticClass:"fas fa-eye-slash fa-lg"})]):t._e(),t._v(" "),t.status.media_attachments[0].license?e("p",{staticStyle:{"margin-bottom":"0",padding:"0 5px",color:"#fff","font-size":"10px","text-align":"right",position:"absolute",bottom:"0",right:"0","border-top-left-radius":"5px",background:"linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0.5))"}},[e("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.url}},[t._v("Photo")]),t._v(" by "),e("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.account.url}},[t._v("@"+t._s(t.status.account.username))]),t._v(" licensed under "),e("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.media_attachments[0].license.url}},[t._v(t._s(t.status.media_attachments[0].license.title))])]):t._e()])])},s=[function(){var t=this._self._c;return t("p",{staticClass:"text-center"},[t("i",{staticClass:"far fa-eye-slash fa-2x"})])}]},12024:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return 1==t.status.sensitive?e("div",[e("details",{staticClass:"details-animated"},[e("summary",[e("p",{staticClass:"mb-0 lead font-weight-bold"},[t._v(t._s(t.status.spoiler_text?t.status.spoiler_text:"CW / NSFW / Hidden Media"))]),t._v(" "),e("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),e("b-carousel",{staticStyle:{"text-shadow":"1px 1px 2px #333","background-color":"#000"},attrs:{id:t.status.id+"-carousel",controls:"","img-blank":"",background:"#ffffff",interval:0}},t._l(t.status.media_attachments,(function(t,o){return e("b-carousel-slide",{key:t.id+"-media"},[e("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:t.description,width:"100%",height:"100%"},slot:"img"},[e("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)]):e("div",[e("b-carousel",{staticStyle:{"text-shadow":"1px 1px 2px #333","background-color":"#000"},attrs:{id:t.status.id+"-carousel",controls:"","img-blank":"",background:"#ffffff",interval:0}},t._l(t.status.media_attachments,(function(t,o){return e("b-carousel-slide",{key:t.id+"-media"},[e("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:t.description,width:"100%",height:"100%"},slot:"img"},[e("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)},s=[]},75593:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return 1==t.status.sensitive?e("div",{staticClass:"content-label-wrapper"},[e("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),e("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),e("p",{staticClass:"text-center py-2 content-label-text"},[t._v("\n\t\t\t"+t._s(t.status.spoiler_text?t.status.spoiler_text:"This post may contain sensitive content.")+"\n\t\t")]),t._v(" "),e("p",{staticClass:"mb-0"},[e("button",{staticClass:"btn btn-outline-light btn-block btn-sm font-weight-bold",on:{click:function(e){return t.toggleContentWarning()}}},[t._v("See Post")])])]),t._v(" "),e("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):e("div",{staticClass:"embed-responsive embed-responsive-16by9"},[e("video",{staticClass:"video",attrs:{controls:"",playsinline:"","webkit-playsinline":"",preload:"metadata",loop:"","data-id":t.status.id,poster:t.poster()}},[e("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])},s=[function(){var t=this._self._c;return t("p",{staticClass:"text-center"},[t("i",{staticClass:"far fa-eye-slash fa-2x"})])}]},6426:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",[e("transition",{attrs:{name:"fade"}},[e("div",{staticClass:"card notification-card shadow-none border"},[t.loading?e("div",{staticClass:"card-body loader text-center",staticStyle:{height:"240px"}},[e("div",{staticClass:"spinner-border",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[t._v("Loading...")])])]):t._e(),t._v(" "),!t.loading&&t.notifications.length>0?e("div",{staticClass:"card-body px-0 py-0 contents",staticStyle:{height:"240px","overflow-y":"scroll"}},[t.profile.locked?e("div",{staticClass:"media align-items-center mt-n2 px-3 py-2 border-bottom border-lighter bg-light cursor-pointer",on:{click:function(e){return t.redirect("/account/follow-requests")}}},[e("div",{staticClass:"media-body font-weight-light pt-2 small d-flex align-items-center justify-content-between"},[e("p",{staticClass:"mb-0 text-lighter"},[e("i",{staticClass:"fas fa-cog text-light"})]),t._v(" "),e("p",{staticClass:"text-center pt-1 mb-1 text-dark font-weight-bold"},[e("strong",[t._v(t._s(t.followRequests&&t.followRequests.hasOwnProperty("count")?t.followRequests.count:0))]),t._v(" Follow Requests")]),t._v(" "),e("p",{staticClass:"mb-0 text-lighter"},[e("i",{staticClass:"fas fa-chevron-right"})])])]):t._e(),t._v(" "),t._l(t.notifications,(function(o,a){return t.notifications.length>0?e("div",{staticClass:"media align-items-center px-3 py-2 border-bottom border-light"},[e("img",{staticClass:"mr-2 rounded-circle",staticStyle:{border:"1px solid #ccc"},attrs:{src:o.account.avatar,alt:"",width:"32px",height:"32px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png';"}}),t._v(" "),e("div",{staticClass:"media-body font-weight-light small"},["favourite"==o.type?e("div",[e("p",{staticClass:"my-0"},[e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:t.getProfileUrl(o.account),title:o.account.username}},[t._v(t._s(0==o.account.local?"@":"")+t._s(t.truncate(o.account.username)))]),t._v(" liked your\n\t\t\t\t\t\t\t\t"),o.status&&o.status.hasOwnProperty("media_attachments")?e("span",[e("a",{staticClass:"font-weight-bold",attrs:{href:t.getPostUrl(o.status),id:"fvn-"+o.id}},[t._v("post")]),t._v(".\n\t\t\t\t\t\t\t\t\t"),e("b-popover",{attrs:{target:"fvn-"+o.id,title:"",triggers:"hover",placement:"top",boundary:"window"}},[e("img",{staticStyle:{"object-fit":"cover"},attrs:{src:t.notificationPreview(o),width:"100px",height:"100px"}})])],1):e("span",[e("a",{staticClass:"font-weight-bold",attrs:{href:t.getPostUrl(o.status)}},[t._v("post")]),t._v(".\n\t\t\t\t\t\t\t\t")])])]):"comment"==o.type?e("div",[e("p",{staticClass:"my-0"},[e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:t.getProfileUrl(o.account),title:o.account.username}},[t._v(t._s(0==o.account.local?"@":"")+t._s(t.truncate(o.account.username)))]),t._v(" commented on your\n\t\t\t\t\t\t\t\t"),o.status&&o.status.hasOwnProperty("media_attachments")?e("span",[e("a",{staticClass:"font-weight-bold",attrs:{href:t.getPostUrl(o.status),id:"fvn-"+o.id}},[t._v("post")]),t._v(".\n\t\t\t\t\t\t\t\t\t"),e("b-popover",{attrs:{target:"fvn-"+o.id,title:"",triggers:"hover",placement:"top",boundary:"window"}},[e("img",{staticStyle:{"object-fit":"cover"},attrs:{src:t.notificationPreview(o),width:"100px",height:"100px"}})])],1):e("span",[e("a",{staticClass:"font-weight-bold",attrs:{href:t.getPostUrl(o.status)}},[t._v("post")]),t._v(".\n\t\t\t\t\t\t\t\t")])])]):"group:comment"==o.type?e("div",[e("p",{staticClass:"my-0"},[e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:t.getProfileUrl(o.account),title:o.account.username}},[t._v(t._s(0==o.account.local?"@":"")+t._s(t.truncate(o.account.username)))]),t._v(" commented on your "),e("a",{staticClass:"font-weight-bold",attrs:{href:o.group_post_url}},[t._v("group post")]),t._v(".\n\t\t\t\t\t\t\t")])]):"story:react"==o.type?e("div",[e("p",{staticClass:"my-0"},[e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:t.getProfileUrl(o.account),title:o.account.username}},[t._v(t._s(0==o.account.local?"@":"")+t._s(t.truncate(o.account.username)))]),t._v(" reacted to your "),e("a",{staticClass:"font-weight-bold",attrs:{href:"/account/direct/t/"+o.account.id}},[t._v("story")]),t._v(".\n\t\t\t\t\t\t\t")])]):"story:comment"==o.type?e("div",[e("p",{staticClass:"my-0"},[e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:t.getProfileUrl(o.account),title:o.account.username}},[t._v(t._s(0==o.account.local?"@":"")+t._s(t.truncate(o.account.username)))]),t._v(" commented on your "),e("a",{staticClass:"font-weight-bold",attrs:{href:"/account/direct/t/"+o.account.id}},[t._v("story")]),t._v(".\n\t\t\t\t\t\t\t")])]):"mention"==o.type?e("div",[e("p",{staticClass:"my-0"},[e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:t.getProfileUrl(o.account),title:o.account.username}},[t._v(t._s(0==o.account.local?"@":"")+t._s(t.truncate(o.account.username)))]),t._v(" "),e("a",{staticClass:"font-weight-bold",attrs:{href:t.mentionUrl(o.status)}},[t._v("mentioned")]),t._v(" you.\n\t\t\t\t\t\t\t")])]):"follow"==o.type?e("div",[e("p",{staticClass:"my-0"},[e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:t.getProfileUrl(o.account),title:o.account.username}},[t._v(t._s(0==o.account.local?"@":"")+t._s(t.truncate(o.account.username)))]),t._v(" followed you.\n\t\t\t\t\t\t\t")])]):"share"==o.type?e("div",[e("p",{staticClass:"my-0"},[e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:t.getProfileUrl(o.account),title:o.account.username}},[t._v(t._s(0==o.account.local?"@":"")+t._s(t.truncate(o.account.username)))]),t._v(" shared your\n\t\t\t\t\t\t\t\t"),o.status&&o.status.hasOwnProperty("media_attachments")?e("span",[e("a",{staticClass:"font-weight-bold",attrs:{href:t.getPostUrl(o.status),id:"fvn-"+o.id}},[t._v("post")]),t._v(".\n\t\t\t\t\t\t\t\t\t"),e("b-popover",{attrs:{target:"fvn-"+o.id,title:"",triggers:"hover",placement:"top",boundary:"window"}},[e("img",{staticStyle:{"object-fit":"cover"},attrs:{src:t.notificationPreview(o),width:"100px",height:"100px"}})])],1):e("span",[e("a",{staticClass:"font-weight-bold",attrs:{href:t.getPostUrl(o.status)}},[t._v("post")]),t._v(".\n\t\t\t\t\t\t\t\t")])])]):"modlog"==o.type?e("div",[e("p",{staticClass:"my-0"},[e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:t.getProfileUrl(o.account),title:o.account.username}},[t._v(t._s(t.truncate(o.account.username)))]),t._v(" updated a "),e("a",{staticClass:"font-weight-bold",attrs:{href:o.modlog.url}},[t._v("modlog")]),t._v(".\n\t\t\t\t\t\t\t")])]):"tagged"==o.type?e("div",[e("p",{staticClass:"my-0"},[e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:t.getProfileUrl(o.account),title:o.account.username}},[t._v(t._s(0==o.account.local?"@":"")+t._s(t.truncate(o.account.username)))]),t._v(" tagged you in a "),e("a",{staticClass:"font-weight-bold",attrs:{href:o.tagged.post_url}},[t._v("post")]),t._v(".\n\t\t\t\t\t\t\t")])]):"direct"==o.type?e("div",[e("p",{staticClass:"my-0"},[e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:t.getProfileUrl(o.account),title:o.account.username}},[t._v(t._s(0==o.account.local?"@":"")+t._s(t.truncate(o.account.username)))]),t._v(" sent a "),e("a",{staticClass:"font-weight-bold",attrs:{href:"/account/direct/t/"+o.account.id}},[t._v("dm")]),t._v(".\n\t\t\t\t\t\t\t")])]):"group.join.approved"==o.type?e("div",[e("p",{staticClass:"my-0"},[t._v("\n\t\t\t\t\t\t\t\tYour application to join the "),e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:o.group.url,title:o.group.name}},[t._v(t._s(t.truncate(o.group.name)))]),t._v(" group was approved!\n\t\t\t\t\t\t\t")])]):"group.join.rejected"==o.type?e("div",[e("p",{staticClass:"my-0"},[t._v("\n\t\t\t\t\t\t\t\tYour application to join "),e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:o.group.url,title:o.group.name}},[t._v(t._s(t.truncate(o.group.name)))]),t._v(" was rejected.\n\t\t\t\t\t\t\t")])]):"group:invite"==o.type?e("div",[e("p",{staticClass:"my-0"},[e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:t.getProfileUrl(o.account),title:o.account.username}},[t._v(t._s(0==o.account.local?"@":"")+t._s(t.truncate(o.account.username)))]),t._v(" invited you to join "),e("a",{staticClass:"font-weight-bold text-dark word-break",attrs:{href:o.group.url+"/invite/claim",title:o.group.name}},[t._v(t._s(o.group.name))]),t._v(".\n\t\t\t\t\t\t\t")])]):e("div",[e("p",{staticClass:"my-0"},[t._v("\n\t\t\t\t\t\t\t\tWe cannot display this notification at this time.\n\t\t\t\t\t\t\t")])])]),t._v(" "),e("div",{staticClass:"small text-muted font-weight-bold",attrs:{title:o.created_at}},[t._v(t._s(t.timeAgo(o.created_at)))])]):t._e()})),t._v(" "),t.notifications.length?e("div",[e("infinite-loading",{on:{infinite:t.infiniteNotifications}},[e("div",{staticClass:"font-weight-bold",attrs:{slot:"no-results"},slot:"no-results"}),t._v(" "),e("div",{staticClass:"font-weight-bold",attrs:{slot:"no-more"},slot:"no-more"})])],1):t._e(),t._v(" "),0==t.notifications.length?e("div",{staticClass:"text-lighter text-center py-3"},[e("p",{staticClass:"mb-0"},[e("i",{staticClass:"fas fa-inbox fa-3x"})]),t._v(" "),e("p",{staticClass:"mb-0 small font-weight-bold"},[t._v("0 Notifications!")])]):t._e()],2):t._e(),t._v(" "),t.loading||t.notifications.length?t._e():e("div",{staticClass:"card-body px-0 py-0",staticStyle:{height:"240px"}},[e("div",{staticClass:"text-lighter text-center py-3"},[e("p",{staticClass:"mb-0"},[e("i",{staticClass:"fas fa-inbox fa-3x"})]),t._v(" "),e("p",{staticClass:"mb-0 small font-weight-bold"},[t._v("No notifications yet")]),t._v(" "),t.showRefresh&&!t.attemptedRefresh?e("p",{staticClass:"mt-2 small font-weight-bold text-primary cursor-pointer",on:{click:t.refreshNotifications}},[e("i",{staticClass:"fas fa-redo"}),t._v(" Refresh")]):t._e()])])])])],1)},s=[]},81739:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",["true"!=t.modal?e("div",{staticClass:"dropdown"},[e("button",{staticClass:"btn btn-link text-dark no-caret dropdown-toggle py-0",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",title:"Post options"}},[e("span",{class:["lg"==t.size?"fas fa-ellipsis-v fa-lg text-muted":"fas fa-ellipsis-v fa-sm text-lighter"]})]),t._v(" "),e("div",{staticClass:"dropdown-menu dropdown-menu-right"},[e("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",attrs:{href:t.status.url}},[t._v("Go to post")]),t._v(" "),1==t.activeSession&&0==t.statusOwner(t.status)?e("span",[e("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.reportUrl(t.status)}},[t._v("Report")])]):t._e(),t._v(" "),1==t.activeSession&&1==t.statusOwner(t.status)?e("span",[e("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return e.preventDefault(),t.muteProfile(t.status)}}},[t._v("Mute Profile")]),t._v(" "),e("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return e.preventDefault(),t.blockProfile(t.status)}}},[t._v("Block Profile")])]):t._e(),t._v(" "),1==t.activeSession&&1==t.profile.is_admin?e("span",[e("div",{staticClass:"dropdown-divider"}),t._v(" "),e("a",{staticClass:"dropdown-item font-weight-bold text-danger text-decoration-none",on:{click:function(e){return t.deletePost(t.status)}}},[t._v("Delete")]),t._v(" "),e("div",{staticClass:"dropdown-divider"}),t._v(" "),e("h6",{staticClass:"dropdown-header"},[t._v("Mod Tools")]),t._v(" "),e("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"autocw")}}},[e("p",{staticClass:"mb-0"},[t._v("Enforce CW")]),t._v(" "),t._m(0)]),t._v(" "),e("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"noautolink")}}},[e("p",{staticClass:"mb-0"},[t._v("No Autolinking")]),t._v(" "),t._m(1)]),t._v(" "),e("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"unlisted")}}},[e("p",{staticClass:"mb-0"},[t._v("Unlisted Posts")]),t._v(" "),t._m(2)]),t._v(" "),e("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"disable")}}},[e("p",{staticClass:"mb-0"},[t._v("Disable Account")]),t._v(" "),t._m(3)]),t._v(" "),e("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"suspend")}}},[e("p",{staticClass:"mb-0"},[t._v("Suspend Account")]),t._v(" "),t._m(4)])]):t._e()])]):t._e(),t._v(" "),"true"==t.modal?e("div",[e("span",{attrs:{"data-toggle":"modal","data-target":"#mt_pid_"+t.status.id}},[e("span",{class:["lg"==t.size?"fas fa-ellipsis-v fa-lg text-muted":"fas fa-ellipsis-v fa-sm text-lighter"]})]),t._v(" "),e("div",{staticClass:"modal",attrs:{tabindex:"-1",role:"dialog",id:"mt_pid_"+t.status.id}},[e("div",{staticClass:"modal-dialog modal-sm modal-dialog-centered",attrs:{role:"document"}},[e("div",{staticClass:"modal-content"},[e("div",{staticClass:"modal-body text-center"},[e("div",{staticClass:"list-group"},[e("a",{staticClass:"list-group-item text-dark text-decoration-none",attrs:{href:t.statusUrl(t.status)}},[t._v("Go to post")]),t._v(" "),e("a",{staticClass:"list-group-item text-dark text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.hidePost(t.status)}}},[t._v("Hide")]),t._v(" "),1!=t.activeSession||t.statusOwner(t.status)?t._e():e("a",{staticClass:"list-group-item text-danger font-weight-bold text-decoration-none",attrs:{href:t.reportUrl(t.status)}},[t._v("Report")]),t._v(" "),1==t.activeSession&&1==t.statusOwner(t.status)||1==t.profile.is_admin?e("div",{staticClass:"list-group-item text-danger font-weight-bold cursor-pointer",on:{click:function(e){return e.preventDefault(),t.deletePost.apply(null,arguments)}}},[t._v("Delete")]):t._e(),t._v(" "),e("a",{staticClass:"list-group-item text-lighter text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.closeModal()}}},[t._v("Close")])])])])])])]):t._e()])},s=[function(){var t=this,e=t._self._c;return e("p",{staticClass:"mb-0 small text-muted"},[t._v("Adds a CW to every post "),e("br"),t._v(" made by this account.")])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"mb-0 small text-muted"},[t._v("Do not transform mentions, "),e("br"),t._v(" hashtags or urls into HTML.")])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"mb-0 small text-muted"},[t._v("Removes account from "),e("br"),t._v(" public/network timelines.")])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"mb-0 small text-muted"},[t._v("Temporarily disable account "),e("br"),t._v(" until next time user log in.")])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"mb-0 small text-muted"},[t._v("This prevents any new interactions, "),e("br"),t._v(" without deleting existing data.")])}]},25051:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",[t.show?e("div",{staticClass:"card card-body p-0 border mt-md-4 mb-md-3 shadow-none"},[t.loading?e("div",{staticClass:"w-100 h-100 d-flex align-items-center justify-content-center"},[t._m(0)]):e("div",{staticClass:"d-flex align-items-center justify-content-start scrolly"},t._l(t.stories,(function(o,a){return e("div",{staticClass:"px-3 pt-3 text-center cursor-pointer",class:{seen:o.seen},on:{click:function(e){return t.showStory(a)}}},[e("span",{staticClass:"mb-1 ring",class:[o.seen?"not-seen":"",o.local?"":"remote"]},[e("img",{staticClass:"rounded-circle border",attrs:{src:o.avatar,width:"60",height:"60",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'"}})]),t._v(" "),e("p",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"small font-weight-bold text-truncate",class:{"text-lighter":o.seen},staticStyle:{"max-width":"69px"},attrs:{placement:"bottom",title:o.username}},[t._v("\n\t\t\t\t\t"+t._s(o.username)+"\n\t\t\t\t")])])})),0)]):t._e()])},s=[function(){var t=this._self._c;return t("div",{staticClass:"spinner-border spinner-border-sm text-lighter",attrs:{role:"status"}},[t("span",{staticClass:"sr-only"},[this._v("Loading...")])])}]},45322:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-stack"},[e("b-modal",{ref:"ctxModal",attrs:{id:"ctx-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"list-group text-center"},["archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuGoToPost()}}},[t._v("View Post")]):t._e(),t._v(" "),"archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuGoToProfile()}}},[t._v("View Profile")]):t._e(),t._v(" "),"archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuShare()}}},[t._v("Share")]):t._e(),t._v(" "),t.status&&t.profile&&1==t.profile.is_admin&&"archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxModMenuShow()}}},[t._v("Moderation Tools")]):t._e(),t._v(" "),t.status&&t.status.account.id!=t.profile.id?e("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.ctxMenuReportPost()}}},[t._v("Report")]):t._e(),t._v(" "),t.status&&t.profile.id==t.status.account.id&&"archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.archivePost(t.status)}}},[t._v("Archive")]):t._e(),t._v(" "),t.status&&t.profile.id==t.status.account.id&&"archived"==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.unarchivePost(t.status)}}},[t._v("Unarchive")]):t._e(),t._v(" "),t.status&&(t.profile.is_admin||t.profile.id==t.status.account.id)&&"archived"!==t.status.visibility?e("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.deletePost(t.status)}}},[t._v("Delete")]):t._e(),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxMenu()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxModModal",attrs:{id:"ctx-mod-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"list-group text-center"},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"unlist")}}},[t._v("Unlist from Timelines")]),t._v(" "),t.status.sensitive?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"remcw")}}},[t._v("Remove Content Warning")]):e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"addcw")}}},[t._v("Add Content Warning")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"spammer")}}},[t._v("\n\t\t\t\tMark as Spammer"),e("br"),t._v(" "),e("span",{staticClass:"small"},[t._v("Unlist + CW existing and future posts")])]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxModOtherModal",attrs:{id:"ctx-mod-other-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"list-group text-center"},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Unlist Posts")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Moderation Log")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModOtherMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxShareModal",attrs:{id:"ctx-share-modal",title:"Share","hide-footer":"","hide-header":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded text-center"}},[e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.shareStatus(t.status,e)}}},[t._v(t._s(t.status.reblogged?"Unshare":"Share")+" to Followers")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuCopyLink()}}},[t._v("Copy Link")]),t._v(" "),t.status&&1==t.status.local&&!t.status.in_reply_to_id?e("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuEmbed()}}},[t._v("Embed")]):t._e(),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxShareMenu()}}},[t._v("Cancel")])]),t._v(" "),e("b-modal",{ref:"ctxEmbedModal",attrs:{id:"ctx-embed-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"md","body-class":"p-2 rounded"}},[e("div",[e("div",{staticClass:"form-group"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedPayload,expression:"ctxEmbedPayload"}],staticClass:"form-control disabled text-monospace",staticStyle:{"overflow-y":"hidden",border:"1px solid #efefef","font-size":"12px","line-height":"18px",margin:"0 0 7px",resize:"none"},attrs:{rows:"8",disabled:""},domProps:{value:t.ctxEmbedPayload},on:{input:function(e){e.target.composing||(t.ctxEmbedPayload=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group pl-2 d-flex justify-content-center"},[e("div",{staticClass:"form-check mr-3"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedShowCaption,expression:"ctxEmbedShowCaption"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:1==t.ctxEmbedCompactMode},domProps:{checked:Array.isArray(t.ctxEmbedShowCaption)?t._i(t.ctxEmbedShowCaption,null)>-1:t.ctxEmbedShowCaption},on:{change:function(e){var o=t.ctxEmbedShowCaption,a=e.target,s=!!a.checked;if(Array.isArray(o)){var i=t._i(o,null);a.checked?i<0&&(t.ctxEmbedShowCaption=o.concat([null])):i>-1&&(t.ctxEmbedShowCaption=o.slice(0,i).concat(o.slice(i+1)))}else t.ctxEmbedShowCaption=s}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\tShow Caption\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check mr-3"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedShowLikes,expression:"ctxEmbedShowLikes"}],staticClass:"form-check-input",attrs:{type:"checkbox",disabled:1==t.ctxEmbedCompactMode},domProps:{checked:Array.isArray(t.ctxEmbedShowLikes)?t._i(t.ctxEmbedShowLikes,null)>-1:t.ctxEmbedShowLikes},on:{change:function(e){var o=t.ctxEmbedShowLikes,a=e.target,s=!!a.checked;if(Array.isArray(o)){var i=t._i(o,null);a.checked?i<0&&(t.ctxEmbedShowLikes=o.concat([null])):i>-1&&(t.ctxEmbedShowLikes=o.slice(0,i).concat(o.slice(i+1)))}else t.ctxEmbedShowLikes=s}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\tShow Likes\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"form-check"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.ctxEmbedCompactMode,expression:"ctxEmbedCompactMode"}],staticClass:"form-check-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.ctxEmbedCompactMode)?t._i(t.ctxEmbedCompactMode,null)>-1:t.ctxEmbedCompactMode},on:{change:function(e){var o=t.ctxEmbedCompactMode,a=e.target,s=!!a.checked;if(Array.isArray(o)){var i=t._i(o,null);a.checked?i<0&&(t.ctxEmbedCompactMode=o.concat([null])):i>-1&&(t.ctxEmbedCompactMode=o.slice(0,i).concat(o.slice(i+1)))}else t.ctxEmbedCompactMode=s}}}),t._v(" "),e("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\tCompact Mode\n\t\t\t\t\t")])])]),t._v(" "),e("hr"),t._v(" "),e("button",{class:t.copiedEmbed?"btn btn-primary btn-block btn-sm py-1 font-weight-bold disabed":"btn btn-primary btn-block btn-sm py-1 font-weight-bold",attrs:{disabled:t.copiedEmbed},on:{click:t.ctxCopyEmbed}},[t._v(t._s(t.copiedEmbed?"Embed Code Copied!":"Copy Embed Code"))]),t._v(" "),e("p",{staticClass:"mb-0 px-2 small text-muted"},[t._v("By using this embed, you agree to our "),e("a",{attrs:{href:"/site/terms"}},[t._v("Terms of Use")])])])]),t._v(" "),e("b-modal",{ref:"ctxReport",attrs:{id:"ctx-report","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group text-center"},[e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("spam")}}},[t._v("Spam")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("sensitive")}}},[t._v("Sensitive Content")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("abusive")}}},[t._v("Abusive or Harmful")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.openCtxReportOtherMenu()}}},[t._v("Other")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxReportOther",attrs:{id:"ctx-report-other","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("p",{staticClass:"py-2 px-3 mb-0"}),e("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),e("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),e("p"),t._v(" "),e("div",{staticClass:"list-group text-center"},[e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("underage")}}},[t._v("Underage Account")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("copyright")}}},[t._v("Copyright Infringement")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("impersonation")}}},[t._v("Impersonation")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("scam")}}},[t._v("Scam or Fraud")]),t._v(" "),e("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportOtherMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),e("b-modal",{ref:"ctxConfirm",attrs:{id:"ctx-confirm","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[e("div",{staticClass:"d-flex align-items-center justify-content-center py-3"},[e("div",[t._v(t._s(this.confirmModalTitle))])]),t._v(" "),e("div",{staticClass:"d-flex border-top btn-group btn-group-block rounded-0",attrs:{role:"group"}},[e("button",{staticClass:"btn btn-outline-lighter border-left-0 border-top-0 border-bottom-0 border-right py-2",staticStyle:{color:"rgb(0,122,255) !important"},attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.confirmModalCancel()}}},[t._v("Cancel")]),t._v(" "),e("button",{staticClass:"btn btn-outline-lighter border-0",staticStyle:{color:"rgb(0,122,255) !important"},attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.confirmModalConfirm()}}},[t._v("Confirm")])])])],1)},s=[]},28995:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"card shadow-none rounded-0",class:{border:t.showBorder,"border-top-0":!t.showBorderTop}},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"media"},[e("img",{staticClass:"rounded-circle box-shadow mr-2",attrs:{src:t.status.account.avatar,width:"32px",height:"32px",alt:"avatar"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"pl-2 d-flex align-items-top"},[e("a",{staticClass:"username font-weight-bold text-dark text-decoration-none text-break",attrs:{href:"#"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.status.account.acct)+"\n\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"px-1 text-lighter"},[t._v("\n\t\t\t\t\t\t\t·\n\t\t\t\t\t\t")]),t._v(" "),e("a",{staticClass:"font-weight-bold text-lighter",attrs:{href:t.statusUrl(t.status)}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.shortTimestamp(t.status.created_at))+"\n\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"d-none d-md-block px-1 text-lighter"},[t._v("\n\t\t\t\t\t\t\t·\n\t\t\t\t\t\t")]),t._v(" "),t._m(0),t._v(" "),e("span",{staticClass:"d-none d-md-block px-1 text-lighter"},[t._v("\n\t\t\t\t\t\t\t·\n\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"d-none d-md-block px-1 text-lighter font-weight-bold"},[t.status.poll.expired?e("span",[t._v("\n\t\t\t\t\t\t\t\tClosed\n\t\t\t\t\t\t\t")]):e("span",[t._v("\n\t\t\t\t\t\t\t\tCloses in "+t._s(t.shortTimestampAhead(t.status.poll.expires_at))+"\n\t\t\t\t\t\t\t")])]),t._v(" "),e("span",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[e("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[e("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),e("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]),t._v(" "),e("div",{staticClass:"pl-2"},[e("div",{staticClass:"poll py-3"},[e("div",{staticClass:"pt-2 text-break d-flex align-items-center mb-3",staticStyle:{"font-size":"17px"}},[t._m(1),t._v(" "),e("span",{staticClass:"font-weight-bold ml-3",domProps:{innerHTML:t._s(t.status.content)}})]),t._v(" "),e("div",{staticClass:"mb-2"},["vote"===t.tab?e("div",[t._l(t.status.poll.options,(function(o,a){return e("p",[e("button",{staticClass:"btn btn-block lead rounded-pill",class:[a==t.selectedIndex?"btn-primary":"btn-outline-primary"],attrs:{disabled:!t.authenticated},on:{click:function(e){return t.selectOption(a)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(o.title)+"\n\t\t\t\t\t\t\t\t\t\t")])])})),t._v(" "),null!=t.selectedIndex?e("p",{staticClass:"text-right"},[e("button",{staticClass:"btn btn-primary btn-sm font-weight-bold px-3",on:{click:function(e){return t.submitVote()}}},[t._v("Vote")])]):t._e()],2):"voted"===t.tab?e("div",t._l(t.status.poll.options,(function(o,a){return e("div",{staticClass:"mb-3"},[e("button",{staticClass:"btn btn-block lead rounded-pill",class:[a==t.selectedIndex?"btn-primary":"btn-outline-secondary"],attrs:{disabled:""}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(o.title)+"\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("div",{staticClass:"font-weight-bold"},[e("span",{staticClass:"text-muted"},[t._v(t._s(t.calculatePercentage(o))+"%")]),t._v(" "),e("span",{staticClass:"small text-lighter"},[t._v("("+t._s(o.votes_count)+" "+t._s(1==o.votes_count?"vote":"votes")+")")])])])})),0):"results"===t.tab?e("div",t._l(t.status.poll.options,(function(o,a){return e("div",{staticClass:"mb-3"},[e("button",{staticClass:"btn btn-outline-secondary btn-block lead rounded-pill",attrs:{disabled:""}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(o.title)+"\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),e("div",{staticClass:"font-weight-bold"},[e("span",{staticClass:"text-muted"},[t._v(t._s(t.calculatePercentage(o))+"%")]),t._v(" "),e("span",{staticClass:"small text-lighter"},[t._v("("+t._s(o.votes_count)+" "+t._s(1==o.votes_count?"vote":"votes")+")")])])])})),0):t._e()]),t._v(" "),e("div",[e("p",{staticClass:"mb-0 small text-lighter font-weight-bold d-flex justify-content-between"},[e("span",[t._v(t._s(t.status.poll.votes_count)+" votes")]),t._v(" "),"results"!=t.tab&&t.authenticated&&!t.activeRefreshTimeout&&1!=t.status.poll.expired&&t.status.poll.voted?e("a",{staticClass:"text-lighter",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.refreshResults()}}},[t._v("Refresh Results")]):t._e(),t._v(" "),"results"!=t.tab&&t.authenticated&&t.refreshingResults?e("span",{staticClass:"text-lighter"},[t._m(2)]):t._e()])]),t._v(" "),e("div",[e("span",{staticClass:"d-block d-md-none small text-lighter font-weight-bold"},[t.status.poll.expired?e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tClosed\n\t\t\t\t\t\t\t\t\t")]):e("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tCloses in "+t._s(t.shortTimestampAhead(t.status.poll.expires_at))+"\n\t\t\t\t\t\t\t\t\t")])])])])])])])])]),t._v(" "),e("context-menu",{ref:"contextMenu",attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1)},s=[function(){var t=this,e=t._self._c;return e("span",{staticClass:"d-none d-md-block px-1 text-primary font-weight-bold"},[e("i",{staticClass:"fas fa-poll-h"}),t._v(" Poll "),e("sup",{staticClass:"text-lighter"},[t._v("BETA")])])},function(){var t=this._self._c;return t("span",{staticClass:"btn btn-primary px-2 py-1"},[t("i",{staticClass:"fas fa-poll-h fa-lg"})])},function(){var t=this._self._c;return t("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[t("span",{staticClass:"sr-only"},[this._v("Loading...")])])}]},55722:(t,e,o)=>{"use strict";o.r(e),o.d(e,{render:()=>a,staticRenderFns:()=>s});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"status-card-component",class:{"status-card-sm":"small"===t.size}},["text"===t.status.pf_type?e("div",{staticClass:"card shadow-none border rounded-0",class:{"border-top-0":!t.hasTopBorder}},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"media"},[e("img",{staticClass:"rounded-circle box-shadow mr-2",attrs:{src:t.status.account.avatar,width:"32px",height:"32px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}}),t._v(" "),e("div",{staticClass:"media-body"},[e("div",{staticClass:"pl-2 d-flex align-items-top"},[e("a",{staticClass:"username font-weight-bold text-dark text-decoration-none text-break",attrs:{href:t.profileUrl(t.status)},domProps:{innerHTML:t._s(t.statusCardUsernameFormat(t.status))}}),t._v(" "),e("span",{staticClass:"px-1 text-lighter"},[t._v("\n\t\t\t\t\t\t\t·\n\t\t\t\t\t\t")]),t._v(" "),e("a",{staticClass:"font-weight-bold text-lighter",attrs:{href:t.statusUrl(t.status)}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.shortTimestamp(t.status.created_at))+"\n\t\t\t\t\t\t")]),t._v(" "),e("span",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[e("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[e("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),e("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]),t._v(" "),e("div",{staticClass:"pl-2"},[t.status.sensitive?e("details",[e("summary",{staticClass:"mb-2 font-weight-bold text-muted"},[t._v("Content Warning")]),t._v(" "),e("p",{staticClass:"pt-2 text-break status-content",domProps:{innerHTML:t._s(t.status.content)}})]):e("p",{staticClass:"pt-2 text-break status-content",domProps:{innerHTML:t._s(t.status.content)}}),t._v(" "),e("p",{staticClass:"mb-0"},[e("i",{staticClass:"fa-heart fa-lg cursor-pointer mr-3",class:{"far text-muted":!t.status.favourited,"fas text-danger":t.status.favourited},on:{click:function(e){return t.likeStatus(t.status,e)}}}),t._v(" "),e("i",{staticClass:"far fa-comment cursor-pointer text-muted fa-lg mr-3",on:{click:function(e){return t.commentFocus(t.status,e)}}})])])])])])]):"poll"===t.status.pf_type?e("div",[e("poll-card",{attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1):e("div",{staticClass:"card rounded-0 border-top-0 status-card card-md-rounded-0 shadow-none border"},[t.status?e("div",{staticClass:"card-header d-inline-flex align-items-center bg-white"},[e("div",[e("img",{staticClass:"rounded-circle box-shadow",attrs:{src:t.status.account.avatar,width:"32px",height:"32px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})]),t._v(" "),e("div",{staticClass:"pl-2"},[e("a",{staticClass:"username font-weight-bold text-dark text-decoration-none text-break",attrs:{href:t.profileUrl(t.status)},domProps:{innerHTML:t._s(t.statusCardUsernameFormat(t.status))}}),t._v(" "),t.status.account.is_admin?e("span",{staticClass:"fa-stack",staticStyle:{height:"1em","line-height":"1em","max-width":"19px"},attrs:{title:"Admin Account","data-toggle":"tooltip"}},[e("i",{staticClass:"fas fa-certificate text-danger fa-stack-1x"}),t._v(" "),e("i",{staticClass:"fas fa-crown text-white fa-sm fa-stack-1x",staticStyle:{"font-size":"7px"}})]):t._e(),t._v(" "),e("div",{staticClass:"d-flex align-items-center"},[t.status.place?e("a",{staticClass:"small text-decoration-none text-muted",attrs:{href:"/discover/places/"+t.status.place.id+"/"+t.status.place.slug,title:"Location","data-toggle":"tooltip"}},[e("i",{staticClass:"fas fa-map-marked-alt"}),t._v(" "+t._s(t.status.place.name)+", "+t._s(t.status.place.country))]):t._e()])]),t._v(" "),e("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[e("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[e("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),e("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]):t._e(),t._v(" "),e("div",{staticClass:"postPresenterContainer",staticStyle:{background:"#000"}},["photo"===t.status.pf_type?e("div",{staticClass:"w-100"},[e("photo-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):"video"===t.status.pf_type?e("div",{staticClass:"w-100"},[e("video-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:album"===t.status.pf_type?e("div",{staticClass:"w-100"},[e("photo-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):"video:album"===t.status.pf_type?e("div",{staticClass:"w-100"},[e("video-album-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:video:album"===t.status.pf_type?e("div",{staticClass:"w-100"},[e("mixed-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):e("div",{staticClass:"w-100"},[e("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])]),t._v(" "),t.config.features.label.covid.enabled&&t.status.label&&1==t.status.label.covid?e("div",{staticClass:"card-body border-top border-bottom py-2 cursor-pointer pr-2",on:{click:function(e){return t.labelRedirect()}}},[e("p",{staticClass:"font-weight-bold d-flex justify-content-between align-items-center mb-0"},[e("span",[e("i",{staticClass:"fas fa-info-circle mr-2"}),t._v("\n\t\t\t\t\tFor information about COVID-19, "+t._s(t.config.features.label.covid.org)+"\n\t\t\t\t")]),t._v(" "),t._m(0)])]):t._e(),t._v(" "),e("div",{staticClass:"card-body"},[t.reactionBar?e("div",{staticClass:"reactions my-1 pb-2"},[t.status.favourited?e("h3",{staticClass:"fas fa-heart text-danger pr-3 m-0 cursor-pointer",attrs:{title:"Like"},on:{click:function(e){return t.likeStatus(t.status,e)}}}):e("h3",{staticClass:"fal fa-heart pr-3 m-0 like-btn text-dark cursor-pointer",attrs:{title:"Like"},on:{click:function(e){return t.likeStatus(t.status,e)}}}),t._v(" "),t.status.comments_disabled?t._e():e("h3",{staticClass:"fal fa-comment text-dark pr-3 m-0 cursor-pointer",attrs:{title:"Comment"},on:{click:function(e){return t.commentFocus(t.status,e)}}}),t._v(" "),t.status.taggedPeople.length?e("span",{staticClass:"float-right"},[e("span",{staticClass:"font-weight-light small",staticStyle:{color:"#718096"}},[e("i",{staticClass:"far fa-user",attrs:{"data-toggle":"tooltip",title:"Tagged People"}}),t._v(" "),t._l(t.status.taggedPeople,(function(t,o){return e("span",{staticClass:"mr-n2"},[e("a",{attrs:{href:"/"+t.username}},[e("img",{staticClass:"border rounded-circle",attrs:{src:t.avatar,width:"20px",height:"20px","data-toggle":"tooltip",title:"@"+t.username,alt:"Avatar"}})])])}))],2)]):t._e()]):t._e(),t._v(" "),t.status.liked_by.username&&t.status.liked_by.username!==t.profile.username?e("div",{staticClass:"likes mb-1"},[e("span",{staticClass:"like-count"},[t._v("Liked by\n\t\t\t\t\t"),e("a",{staticClass:"font-weight-bold text-dark",attrs:{href:t.status.liked_by.url}},[t._v(t._s(t.status.liked_by.username))]),t._v(" "),1==t.status.liked_by.others?e("span",[t._v("\n\t\t\t\t\t\tand "),t.status.liked_by.total_count_pretty?e("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.status.liked_by.total_count_pretty))]):t._e(),t._v(" "),e("span",{staticClass:"font-weight-bold"},[t._v("others")])]):t._e()])]):t._e(),t._v(" "),"text"!=t.status.pf_type?e("div",{staticClass:"caption"},[t.status.sensitive?t._e():e("p",{staticClass:"mb-2 read-more",staticStyle:{overflow:"hidden"}},[e("span",{staticClass:"username font-weight-bold"},[e("bdi",[e("a",{staticClass:"text-dark",attrs:{href:t.profileUrl(t.status)}},[t._v(t._s(t.status.account.username))])])]),t._v(" "),e("span",{staticClass:"status-content",domProps:{innerHTML:t._s(t.content)}})])]):t._e(),t._v(" "),e("div",{staticClass:"timestamp mt-2"},[e("p",{staticClass:"small mb-0"},["archived"!=t.status.visibility?e("a",{staticClass:"text-muted text-uppercase",attrs:{href:t.statusUrl(t.status)}},[e("timeago",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",modifiers:{hover:!0,bottom:!0}}],attrs:{datetime:t.status.created_at,"auto-update":60,"converter-options":{includeSeconds:!0},title:t.timestampFormat(t.status.created_at)}})],1):e("span",{staticClass:"text-muted text-uppercase"},[t._v("\n\t\t\t\t\t\tPosted "),e("timeago",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",modifiers:{hover:!0,bottom:!0}}],attrs:{datetime:t.status.created_at,"auto-update":60,"converter-options":{includeSeconds:!0},title:t.timestampFormat(t.status.created_at)}})],1),t._v(" "),t.recommended?e("span",[e("span",{staticClass:"px-1"},[t._v("·")]),t._v(" "),e("span",{staticClass:"text-muted"},[t._v("Based on popular and trending content")])]):t._e()])])])]),t._v(" "),e("context-menu",{ref:"contextMenu",attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1)},s=[function(){var t=this._self._c;return t("span",[t("i",{staticClass:"fas fa-chevron-right text-lighter"})])}]},9901:function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}!function(){var e="object"===("undefined"==typeof window?"undefined":t(window))?window:"object"===("undefined"==typeof self?"undefined":t(self))?self:this,o=e.BlobBuilder||e.WebKitBlobBuilder||e.MSBlobBuilder||e.MozBlobBuilder;e.URL=e.URL||e.webkitURL||function(t,e){return(e=document.createElement("a")).href=t,e};var a=e.Blob,s=URL.createObjectURL,i=URL.revokeObjectURL,r=e.Symbol&&e.Symbol.toStringTag,n=!1,c=!1,d=!!e.ArrayBuffer,u=o&&o.prototype.append&&o.prototype.getBlob;try{n=2===new Blob(["ä"]).size,c=2===new Blob([new Uint8Array([1,2])]).size}catch(t){}function p(t){return t.map((function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var o=new Uint8Array(t.byteLength);o.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=o.buffer}return e}return t}))}function m(t,e){e=e||{};var a=new o;return p(t).forEach((function(t){a.append(t)})),e.type?a.getBlob(e.type):a.getBlob()}function f(t,e){return new a(p(t),e||{})}e.Blob&&(m.prototype=Blob.prototype,f.prototype=Blob.prototype);var h="function"==typeof TextEncoder?TextEncoder.prototype.encode.bind(new TextEncoder):function(t){for(var o=0,a=t.length,s=e.Uint8Array||Array,i=0,r=Math.max(32,a+(a>>1)+7),n=new s(r>>3<<3);o=55296&&l<=56319){if(o=55296&&l<=56319)continue}if(i+4>n.length){r+=8,r=(r*=1+o/t.length*2)>>3<<3;var d=new Uint8Array(r);d.set(n),n=d}if(4294967168&l){if(4294965248&l)if(4294901760&l){if(4292870144&l)continue;n[i++]=l>>18&7|240,n[i++]=l>>12&63|128,n[i++]=l>>6&63|128}else n[i++]=l>>12&15|224,n[i++]=l>>6&63|128;else n[i++]=l>>6&31|192;n[i++]=63&l|128}else n[i++]=l}return n.slice(0,i)},g="function"==typeof TextDecoder?TextDecoder.prototype.decode.bind(new TextDecoder):function(t){for(var e=t.length,o=[],a=0;a239?4:l>223?3:l>191?2:1;if(a+d<=e)switch(d){case 1:l<128&&(c=l);break;case 2:128==(192&(s=t[a+1]))&&(n=(31&l)<<6|63&s)>127&&(c=n);break;case 3:s=t[a+1],i=t[a+2],128==(192&s)&&128==(192&i)&&(n=(15&l)<<12|(63&s)<<6|63&i)>2047&&(n<55296||n>57343)&&(c=n);break;case 4:s=t[a+1],i=t[a+2],r=t[a+3],128==(192&s)&&128==(192&i)&&128==(192&r)&&(n=(15&l)<<18|(63&s)<<12|(63&i)<<6|63&r)>65535&&n<1114112&&(c=n)}null===c?(c=65533,d=1):c>65535&&(c-=65536,o.push(c>>>10&1023|55296),c=56320|1023&c),o.push(c),a+=d}var u=o.length,p="";for(a=0;a>2,d=(3&s)<<4|r>>4,u=(15&r)<<2|l>>6,p=63&l;n||(p=64,i||(u=64)),o.push(e[c],e[d],e[u],e[p])}return o.join("")}var a=Object.create||function(t){function e(){}return e.prototype=t,new e};if(d)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function c(o,a){a=null==a?{}:a;for(var s=0,i=(o=o||[]).length;s=e.size&&o.close()}))}})}}catch(t){try{new ReadableStream({}),b=function(t){var e=0;t=this;return new ReadableStream({pull:function(o){return t.slice(e,e+524288).arrayBuffer().then((function(a){e+=a.byteLength;var s=new Uint8Array(a);o.enqueue(s),e==t.size&&o.close()}))}})}}catch(t){try{new Response("").body.getReader().read(),b=function(){return new Response(this).body}}catch(t){b=function(){throw new Error("Include https://github.com/MattiasBuelens/web-streams-polyfill")}}}}C.arrayBuffer||(C.arrayBuffer=function(){var t=new FileReader;return t.readAsArrayBuffer(this),y(t)}),C.text||(C.text=function(){var t=new FileReader;return t.readAsText(this),y(t)}),C.stream||(C.stream=b)}(),function(t){"use strict";var e,o=t.Uint8Array,a=t.HTMLCanvasElement,s=a&&a.prototype,i=/\s*;\s*base64\s*(?:;|$)/i,r="toDataURL",n=function(t){for(var a,s,i=t.length,r=new o(i/4*3|0),n=0,l=0,c=[0,0],d=0,u=0;i--;)s=t.charCodeAt(n++),255!==(a=e[s-43])&&undefined!==a&&(c[1]=c[0],c[0]=s,u=u<<6|a,4===++d&&(r[l++]=u>>>16,61!==c[1]&&(r[l++]=u>>>8),61!==c[0]&&(r[l++]=u),d=0));return r};o&&(e=new o([62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])),!a||s.toBlob&&s.toBlobHD||(s.toBlob||(s.toBlob=function(t,e){if(e||(e="image/png"),this.mozGetAsFile)t(this.mozGetAsFile("canvas",e));else if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(e))t(this.msToBlob());else{var a,s=Array.prototype.slice.call(arguments,1),l=this[r].apply(this,s),c=l.indexOf(","),d=l.substring(c+1),u=i.test(l.substring(0,c));Blob.fake?((a=new Blob).encoding=u?"base64":"URI",a.data=d,a.size=d.length):o&&(a=u?new Blob([n(d)],{type:e}):new Blob([decodeURIComponent(d)],{type:e})),t(a)}}),!s.toBlobHD&&s.toDataURLHD?s.toBlobHD=function(){r="toDataURLHD";var t=this.toBlob();return r="toDataURL",t}:s.toBlobHD=s.toBlob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this)},33258:(t,e,o)=>{"use strict";o.r(e);var a=o(62893),s=o(40173),i=o(95353),r=o(58723),n=o(63288),l=o(32252),c=o.n(l),d=o(65201),u=o.n(d),p=o(24786),m=o(57742),f=o.n(m),h=o(89829),g=o.n(h),v=o(58942),b=o(64765),C=(o(34352),o(80158),o(17547),o(7112)),y=o(22897),w=o(42903),_=o(33820),x=o(80288),k=(o(74692),o(74692));function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}o(9901),window.Vue=a.default,window.pftxt=o(93934),window.filesize=o(91139),window._=o(2543),window.Popper=o(48851).default,window.pixelfed=window.pixelfed||{},window.$=o(74692),o(52754),window.axios=o(86425),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",o(63899),window.blurhash=o(95341),k('[data-toggle="tooltip"]').tooltip();var M=document.head.querySelector('meta[name="csrf-token"]');M?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=M.content:console.error("CSRF token not found."),a.default.use(s.default),a.default.use(i.default),a.default.use(g()),a.default.use(f()),a.default.use(n.default),a.default.use(c()),a.default.use(u()),a.default.use(v.default),a.default.use(b.default),a.default.use(p.default,{name:"Timeago",locale:"en"}),a.default.component("navbar",o(11838).default),a.default.component("notification-card",o(50592).default),a.default.component("photo-presenter",o(37128).default),a.default.component("video-presenter",o(79427).default),a.default.component("photo-album-presenter",o(98051).default),a.default.component("video-album-presenter",o(61518).default),a.default.component("mixed-album-presenter",o(21466).default),a.default.component("post-menu",o(60072).default),a.default.component("story-component",o(98916).default);var A=function(){return Promise.all([o.e(3660),o.e(4951)]).then(o.bind(o,75050))},P=new s.default({mode:"history",linkActiveClass:"active",routes:[{path:"/i/web/timeline/:scope",name:"timeline",component:A,props:!0},{path:"/groups/feed",name:"groups",component:C.default},{path:"/groups/joins",name:"groupjoins",component:w.default},{path:"/groups/discover",name:"groupdiscover",component:y.default,props:!0},{path:"/groups/notifications",name:"groupnotify",component:_.default},{path:"/groups/search",name:"groupsearch",component:x.default},{path:"/groups/create",name:"groupscreate",component:function(){return o.e(2822).then(o.bind(o,22500))}},{path:"/groups/:gid/p/:sid",component:function(){return o.e(7342).then(o.bind(o,16390))},props:!0},{path:"/groups/:gid/user/:pid",component:function(){return o.e(9231).then(o.bind(o,21567))},props:!0},{path:"/groups/:groupId/about",component:function(){return o.e(8257).then(o.bind(o,72962))},props:!0},{path:"/groups/:groupId/topics",component:function(){return o.e(7206).then(o.bind(o,9895))},props:!0},{path:"/groups/:groupId/members",component:function(){return o.e(6791).then(o.bind(o,27884))},props:!0},{path:"/groups/:groupId/media",component:function(){return o.e(6438).then(o.bind(o,69529))},props:!0},{path:"/groups/:groupId",component:function(){return o.e(529).then(o.bind(o,57101))},props:!0},{path:"/i/web/post/:id",name:"post",component:function(){return Promise.all([o.e(3660),o.e(8408)]).then(o.bind(o,19833))},props:!0},{path:"/i/web/profile/:id/followers",name:"profile-followers",component:function(){return Promise.all([o.e(3660),o.e(8977)]).then(o.bind(o,8755))},props:!0},{path:"/i/web/profile/:id/following",name:"profile-following",component:function(){return Promise.all([o.e(3660),o.e(1645)]).then(o.bind(o,10935))},props:!0},{path:"/i/web/profile/:id",name:"profile",component:function(){return Promise.all([o.e(3660),o.e(8087)]).then(o.bind(o,85566))},props:!0},{path:"/i/web/discover",component:function(){return Promise.all([o.e(3660),o.e(6535)]).then(o.bind(o,57330))}},{path:"/i/web/compose",component:function(){return Promise.all([o.e(3660),o.e(9124)]).then(o.bind(o,46537))}},{path:"/i/web/notifications",component:function(){return Promise.all([o.e(3660),o.e(7744)]).then(o.bind(o,55297))}},{path:"/i/web/direct/thread/:accountId",component:function(){return Promise.all([o.e(3660),o.e(7399)]).then(o.bind(o,95301))},props:!0},{path:"/i/web/direct",component:function(){return Promise.all([o.e(3660),o.e(2156)]).then(o.bind(o,61040))}},{path:"/i/web/hashtag/:id",name:"hashtag",component:function(){return Promise.all([o.e(3660),o.e(2966)]).then(o.bind(o,917))},props:!0},{path:"/i/web/language",component:function(){return o.e(8119).then(o.bind(o,55545))}},{path:"/i/web/whats-new",component:function(){return o.e(9919).then(o.bind(o,97775))}},{path:"/i/web/discover/my-memories",component:function(){return Promise.all([o.e(3660),o.e(6740)]).then(o.bind(o,82212))}},{path:"/i/web/discover/my-hashtags",component:function(){return Promise.all([o.e(3660),o.e(1240)]).then(o.bind(o,57326))}},{path:"/i/web/discover/account-insights",component:function(){return Promise.all([o.e(3660),o.e(1179)]).then(o.bind(o,71610))}},{path:"/i/web/discover/find-friends",component:function(){return Promise.all([o.e(3660),o.e(7521)]).then(o.bind(o,96663))}},{path:"/i/web/discover/server-timelines",component:function(){return Promise.all([o.e(3660),o.e(3688)]).then(o.bind(o,55232))}},{path:"/i/web/discover/settings",component:function(){return Promise.all([o.e(3660),o.e(6250)]).then(o.bind(o,75658))}},{path:"/i/web",component:A,props:!0},{path:"/i/web/*",component:function(){return o.e(7413).then(o.bind(o,13978))},props:!0}],scrollBehavior:function(t,e,o){return t.hash?{selector:"[id='".concat(t.hash.slice(1),"']")}:{x:0,y:0}}});function T(t,e){var o="pf_m2s."+t,a=window.localStorage;if(a.getItem(o)){var s=a.getItem(o);return["pl","color-scheme"].includes(t)?s:["true",!0].includes(s)}return e}var R=new i.default.Store({state:{version:1,hideCounts:T("hc",!1),autoloadComments:T("ac",!0),newReactions:T("nr",!0),fixedHeight:T("fh",!1),profileLayout:T("pl","grid"),showDMPrivacyWarning:T("dmpwarn",!0),relationships:{},emoji:[],colorScheme:T("color-scheme","system")},getters:{getVersion:function(t){return t.version},getHideCounts:function(t){return t.hideCounts},getAutoloadComments:function(t){return t.autoloadComments},getNewReactions:function(t){return t.newReactions},getFixedHeight:function(t){return t.fixedHeight},getProfileLayout:function(t){return t.profileLayout},getRelationship:function(t){return function(e){return t.relationships[e]}},getCustomEmoji:function(t){return t.emoji},getColorScheme:function(t){return t.colorScheme},getShowDMPrivacyWarning:function(t){return t.showDMPrivacyWarning}},mutations:{setVersion:function(t,e){t.version=e},setHideCounts:function(t,e){localStorage.setItem("pf_m2s.hc",e),t.hideCounts=e},setAutoloadComments:function(t,e){localStorage.setItem("pf_m2s.ac",e),t.autoloadComments=e},setNewReactions:function(t,e){localStorage.setItem("pf_m2s.nr",e),t.newReactions=e},setFixedHeight:function(t,e){localStorage.setItem("pf_m2s.fh",e),t.fixedHeight=e},setProfileLayout:function(t,e){localStorage.setItem("pf_m2s.pl",e),t.profileLayout=e},updateRelationship:function(t,e){e.forEach((function(e){a.default.set(t.relationships,e.id,e)}))},updateCustomEmoji:function(t,e){t.emoji=e},setColorScheme:function(t,e){if(t.colorScheme!=e){localStorage.setItem("pf_m2s.color-scheme",e),t.colorScheme=e;var o="system"==e?"":"light"==e?"force-light-mode":"force-dark-mode";if(document.querySelector("body").className=o,"system"!=o){var a="force-dark-mode"==o?{dark_mode:"on"}:{};axios.post("/settings/labs",a)}}},setShowDMPrivacyWarning:function(t,e){localStorage.setItem("pf_m2s.dmpwarn",e),t.showDMPrivacyWarning=e}}}),L={en:o(57048),ar:o(60224),ca:o(89023),de:o(89996),el:o(25098),es:o(31583),eu:o(48973),fr:o(15883),he:o(61344),gd:o(12900),gl:o(34860),id:o(91302),it:o(52950),ja:o(87286),nl:o(66849),pl:o(70707),pt:o(85147),ru:o(20466),uk:o(44215),vi:o(97346)},z=document.querySelector("html").getAttribute("lang"),F=new b.default({locale:z,fallbackLocale:"en",messages:L});(0,r.sync)(R,P);new a.default({el:"#content",i18n:F,router:P,store:R});if(axios.get("/api/v1/custom_emojis").then((function(t){t&&t.data&&t.data.length&&R.commit("updateCustomEmoji",t.data)})),R.state.colorScheme){var j="system"==R.state.colorScheme?"":"light"==R.state.colorScheme?"force-light-mode":"force-dark-mode";"system"!=j&&(document.querySelector("body").className=j)}pixelfed.readmore=function(){k(".read-more").each((function(t,e){var o=k(this),a=o.attr("data-readmore");"undefined"!==S(a)&&!1!==a||o.readmore({collapsedHeight:45,heightMargin:48,moreLink:'Show more',lessLink:'Show less'})}))};try{document.createEvent("TouchEvent"),k("body").addClass("touch")}catch(t){}window.App=window.App||{},window.App.util={compose:{post:function(){var t=window.location.pathname;["/","/timeline/public"].includes(t)?k("#composeModal").modal("show"):window.location.href="/?a=co"},circle:function(){console.log("Unsupported method.")},collection:function(){console.log("Unsupported method.")},loop:function(){console.log("Unsupported method.")},story:function(){console.log("Unsupported method.")}},time:function(){return new Date},version:1,format:{count:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-GB",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"compact";return t<1?0:new Intl.NumberFormat(e,{notation:o,compactDisplay:"short"}).format(t)},timeAgo:function(t){var e=Date.parse(t),o=Math.floor((new Date-e)/1e3),a=Math.floor(o/63072e3);return a<0?"0s":a>=1?a+"y":(a=Math.floor(o/604800))>=1?a+"w":(a=Math.floor(o/86400))>=1?a+"d":(a=Math.floor(o/3600))>=1?a+"h":(a=Math.floor(o/60))>=1?a+"m":Math.floor(o)+"s"},timeAhead:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=Date.parse(t)-Date.parse(new Date),a=Math.floor(o/1e3),s=Math.floor(a/63072e3);return s>=1?s+(e?"y":" years"):(s=Math.floor(a/604800))>=1?s+(e?"w":" weeks"):(s=Math.floor(a/86400))>=1?s+(e?"d":" days"):(s=Math.floor(a/3600))>=1?s+(e?"h":" hours"):(s=Math.floor(a/60))>=1?s+(e?"m":" minutes"):Math.floor(a)+(e?"s":" seconds")},rewriteLinks:function(t){var e=t.innerText;return t.href.startsWith(window.location.origin)?t.href:e=1==e.startsWith("#")?"/discover/tags/"+e.substr(1)+"?src=rph":1==e.startsWith("@")?"/"+t.innerText+"?src=rpp":"/i/redirect?url="+encodeURIComponent(e)}},filters:[["1984","filter-1977"],["Azen","filter-aden"],["Astairo","filter-amaro"],["Grassbee","filter-ashby"],["Bookrun","filter-brannan"],["Borough","filter-brooklyn"],["Farms","filter-charmes"],["Hairsadone","filter-clarendon"],["Cleana ","filter-crema"],["Catpatch","filter-dogpatch"],["Earlyworm","filter-earlybird"],["Plaid","filter-gingham"],["Kyo","filter-ginza"],["Yefe","filter-hefe"],["Goddess","filter-helena"],["Yards","filter-hudson"],["Quill","filter-inkwell"],["Rankine","filter-kelvin"],["Juno","filter-juno"],["Mark","filter-lark"],["Chill","filter-lofi"],["Van","filter-ludwig"],["Apache","filter-maven"],["May","filter-mayfair"],["Ceres","filter-moon"],["Knoxville","filter-nashville"],["Felicity","filter-perpetua"],["Sandblast","filter-poprocket"],["Daisy","filter-reyes"],["Elevate","filter-rise"],["Nevada","filter-sierra"],["Futura","filter-skyline"],["Sleepy","filter-slumber"],["Steward","filter-stinson"],["Savoy","filter-sutro"],["Blaze","filter-toaster"],["Apricot","filter-valencia"],["Gloming","filter-vesper"],["Walter","filter-walden"],["Poplar","filter-willow"],["Xenon","filter-xpro-ii"]],filterCss:{"filter-1977":"sepia(.5) hue-rotate(-30deg) saturate(1.4)","filter-aden":"sepia(.2) brightness(1.15) saturate(1.4)","filter-amaro":"sepia(.35) contrast(1.1) brightness(1.2) saturate(1.3)","filter-ashby":"sepia(.5) contrast(1.2) saturate(1.8)","filter-brannan":"sepia(.4) contrast(1.25) brightness(1.1) saturate(.9) hue-rotate(-2deg)","filter-brooklyn":"sepia(.25) contrast(1.25) brightness(1.25) hue-rotate(5deg)","filter-charmes":"sepia(.25) contrast(1.25) brightness(1.25) saturate(1.35) hue-rotate(-5deg)","filter-clarendon":"sepia(.15) contrast(1.25) brightness(1.25) hue-rotate(5deg)","filter-crema":"sepia(.5) contrast(1.25) brightness(1.15) saturate(.9) hue-rotate(-2deg)","filter-dogpatch":"sepia(.35) saturate(1.1) contrast(1.5)","filter-earlybird":"sepia(.25) contrast(1.25) brightness(1.15) saturate(.9) hue-rotate(-5deg)","filter-gingham":"contrast(1.1) brightness(1.1)","filter-ginza":"sepia(.25) contrast(1.15) brightness(1.2) saturate(1.35) hue-rotate(-5deg)","filter-hefe":"sepia(.4) contrast(1.5) brightness(1.2) saturate(1.4) hue-rotate(-10deg)","filter-helena":"sepia(.5) contrast(1.05) brightness(1.05) saturate(1.35)","filter-hudson":"sepia(.25) contrast(1.2) brightness(1.2) saturate(1.05) hue-rotate(-15deg)","filter-inkwell":"brightness(1.25) contrast(.85) grayscale(1)","filter-kelvin":"sepia(.15) contrast(1.5) brightness(1.1) hue-rotate(-10deg)","filter-juno":"sepia(.35) contrast(1.15) brightness(1.15) saturate(1.8)","filter-lark":"sepia(.25) contrast(1.2) brightness(1.3) saturate(1.25)","filter-lofi":"saturate(1.1) contrast(1.5)","filter-ludwig":"sepia(.25) contrast(1.05) brightness(1.05) saturate(2)","filter-maven":"sepia(.35) contrast(1.05) brightness(1.05) saturate(1.75)","filter-mayfair":"contrast(1.1) brightness(1.15) saturate(1.1)","filter-moon":"brightness(1.4) contrast(.95) saturate(0) sepia(.35)","filter-nashville":"sepia(.25) contrast(1.5) brightness(.9) hue-rotate(-15deg)","filter-perpetua":"contrast(1.1) brightness(1.25) saturate(1.1)","filter-poprocket":"sepia(.15) brightness(1.2)","filter-reyes":"sepia(.75) contrast(.75) brightness(1.25) saturate(1.4)","filter-rise":"sepia(.25) contrast(1.25) brightness(1.2) saturate(.9)","filter-sierra":"sepia(.25) contrast(1.5) brightness(.9) hue-rotate(-15deg)","filter-skyline":"sepia(.15) contrast(1.25) brightness(1.25) saturate(1.2)","filter-slumber":"sepia(.35) contrast(1.25) saturate(1.25)","filter-stinson":"sepia(.35) contrast(1.25) brightness(1.1) saturate(1.25)","filter-sutro":"sepia(.4) contrast(1.2) brightness(.9) saturate(1.4) hue-rotate(-10deg)","filter-toaster":"sepia(.25) contrast(1.5) brightness(.95) hue-rotate(-15deg)","filter-valencia":"sepia(.25) contrast(1.1) brightness(1.1)","filter-vesper":"sepia(.35) contrast(1.15) brightness(1.2) saturate(1.3)","filter-walden":"sepia(.35) contrast(.8) brightness(1.25) saturate(1.4)","filter-willow":"brightness(1.2) contrast(.85) saturate(.05) sepia(.2)","filter-xpro-ii":"sepia(.45) contrast(1.25) brightness(1.75) saturate(1.3) hue-rotate(-5deg)"},emoji:["😂","💯","❤️","🙌","👏","👌","😍","😯","😢","😅","😁","🙂","😎","😀","🤣","😃","😄","😆","😉","😊","😋","😘","😗","😙","😚","🤗","🤩","🤔","🤨","😐","😑","😶","🙄","😏","😣","😥","😮","🤐","😪","😫","😴","😌","😛","😜","😝","🤤","😒","😓","😔","😕","🙃","🤑","😲","🙁","😖","😞","😟","😤","😭","😦","😧","😨","😩","🤯","😬","😰","😱","😳","🤪","😵","😡","😠","🤬","😷","🤒","🤕","🤢","🤮","🤧","😇","🤠","🤡","🤥","🤫","🤭","🧐","🤓","😈","👿","👹","👺","💀","👻","👽","🤖","💩","😺","😸","😹","😻","😼","😽","🙀","😿","😾","🤲","👐","🤝","👍","👎","👊","✊","🤛","🤜","🤞","✌️","🤟","🤘","👈","👉","👆","👇","☝️","✋","🤚","🖐","🖖","👋","🤙","💪","🖕","✍️","🙏","💍","💄","💋","👄","👅","👂","👃","👣","👁","👀","🧠","🗣","👤","👥"],embed:{post:function(t){var e=t+"/embed?";return e+=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?"caption=true&":"caption=false&",e+=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"likes=true&":"likes=false&",'