From a7042d99dcea9cc2d1af24fd5ecf232164cd3aa2 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 8 Mar 2022 23:08:33 -0700 Subject: [PATCH] Update compiled assets --- public/js/profile.js | 2 +- public/js/rempos.js | 2 +- public/js/rempro.js | 2 +- public/js/spa.js | 2 +- public/js/status.js | 2 +- public/js/timeline.js | 2 +- public/mix-manifest.json | 12 ++++++------ 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/public/js/profile.js b/public/js/profile.js index 52e056760..7d24a8c2d 100644 --- a/public/js/profile.js +++ b/public/js/profile.js @@ -1 +1 @@ -(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[912],{14425:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(19755);const a={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"),o("#mt_pid_"+this.status.id).modal("hide")},hidePost:function(t){t.sensitive=!0,o("#mt_pid_"+t.id).modal("hide")},moderatePost:function(t,e,s){var o=t.account.username;switch(e){case"autocw":var a="Are you sure you want to enforce CW for "+o+" ?";swal({title:"Confirm",text:a,icon:"warning",buttons:!0,dangerMode:!0});break;case"suspend":a="Are you sure you want to suspend the account of "+o+" ?",swal({title:"Confirm",text:a,icon:"warning",buttons:!0,dangerMode:!0})}},muteProfile:function(t){0!=o("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!=o("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(){o("#mt_pid_"+this.status.id).modal("hide")}}}},79466:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});s(82364);var o=s(19210),a=s(19755);function i(t){return function(t){if(Array.isArray(t))return n(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 n(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return n(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 n(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,o=new Array(e);s0})),o=s.map((function(t){return t.id}));t.ids=o,t.min_id=Math.max.apply(Math,i(o)),t.max_id=Math.min.apply(Math,i(o)),t.modalStatus=_.first(e.data),t.timeline=s,t.ownerCheck(),t.loading=!1})).catch((function(t){swal("Oops, something went wrong","Please release the page.","error")}))},ownerCheck:function(){0!=a("body").hasClass("loggedIn")?this.owner=this.profile.id===this.user.id:this.owner=!1},infiniteTimeline:function(t){var e=this;if(this.loading||this.timeline.length<9)t.complete();else{var s="/api/pixelfed/v1/accounts/"+this.profileId+"/statuses";axios.get(s,{params:{only_media:!0,max_id:this.max_id}}).then((function(s){if(s.data.length&&0==e.loading){var o=s.data,a=e;o.forEach((function(t){-1==a.ids.indexOf(t.id)&&(a.timeline.push(t),a.ids.push(t.id))}));var n=Math.min.apply(Math,i(e.ids));if(n==e.max_id)return void t.complete();e.min_id=Math.max.apply(Math,i(e.ids)),e.max_id=n,t.loaded(),e.loading=!1}else t.complete()}))}},previewUrl:function(t){return t.sensitive?"/storage/no-preview.png?v="+(new Date).getTime():t.media_attachments[0].preview_url},previewBackground:function(t){return"background-image: url("+this.previewUrl(t)+");"},blurhHashMedia:function(t){return t.sensitive?null:t.media_attachments[0].preview_url},switchMode:function(t){if("grid"==t)this.mode=t;else if("bookmarks"==t&&this.bookmarks.length)this.mode="bookmarks";else{if("collections"!=t||!this.collections.length)return void(window.location.href="/"+this.profileUsername+"?m="+t);this.mode="collections"}},reportProfile:function(){var t=this.profile.id;window.location.href="/i/report?type=user&id="+t},reportUrl:function(t){return"/i/report?type="+(t.in_reply_to?"comment":"post")+"&id="+t.id},commentFocus:function(t,e){var s=event.target.parentElement.parentElement.parentElement,o=s.getElementsByClassName("comments")[0];0==o.children.length&&(o.classList.add("mb-2"),this.fetchStatusComments(t,s));var a=s.querySelectorAll(".card-footer")[0],i=s.querySelectorAll(".status-reply-input")[0];1==a.classList.contains("d-none")?(a.classList.remove("d-none"),i.focus()):(a.classList.add("d-none"),i.blur())},likeStatus:function(t,e){0!=a("body").hasClass("loggedIn")&&axios.post("/i/like",{item:t.id}).then((function(e){t.favourites_count=e.data.count,1==t.favourited?t.favourited=!1:t.favourited=!0})).catch((function(t){swal("Error","Something went wrong, please try again later.","error")}))},shareStatus:function(t,e){0!=a("body").hasClass("loggedIn")&&axios.post("/i/share",{item:t.id}).then((function(e){t.reblogs_count=e.data.count,1==t.reblogged?t.reblogged=!1:t.reblogged=!0})).catch((function(t){swal("Error","Something went wrong, please try again later.","error")}))},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},remoteRedirect:function(t){window.location.href=window.App.config.site.url+"/i/redirect?url="+encodeURIComponent(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 t.account.id==this.profile.id},fetchRelationships:function(){var t=this;0!=document.querySelectorAll("body")[0].classList.contains("loggedIn")&&axios.get("/api/pixelfed/v1/accounts/relationships",{params:{"id[]":this.profileId}}).then((function(e){e.data.length&&(t.relationship=e.data[0],1==e.data[0].blocking&&(t.warning=!0)),t.user.id!=t.profileId&&1!=t.relationship.following||axios.get("/api/web/stories/v1/exists/"+t.profileId).then((function(e){t.hasStory=1==e.data}))}))},muteProfile:function(){var t=this;if(0!=a("body").hasClass("loggedIn")){var e=this.profileId;axios.post("/i/mute",{type:"user",item:e}).then((function(e){t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully muted "+t.profile.acct,"success")})).catch((function(t){422==t.response.status?swal("Error",t.response.data.error,"error"):swal("Error","Something went wrong. Please try again later.","error")}))}},unmuteProfile:function(){var t=this;if(0!=a("body").hasClass("loggedIn")){var e=this.profileId;axios.post("/i/unmute",{type:"user",item:e}).then((function(e){t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully unmuted "+t.profile.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))}},blockProfile:function(){var t=this;if(0!=a("body").hasClass("loggedIn")){var e=this.profileId;axios.post("/i/block",{type:"user",item:e}).then((function(e){t.warning=!0,t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully blocked "+t.profile.acct,"success")})).catch((function(t){422==t.response.status?swal("Error",t.response.data.error,"error"):swal("Error","Something went wrong. Please try again later.","error")}))}},unblockProfile:function(){var t=this;if(0!=a("body").hasClass("loggedIn")){var e=this.profileId;axios.post("/i/unblock",{type:"user",item:e}).then((function(e){t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully unblocked "+t.profile.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))}},deletePost:function(t,e){var s=this;0!=a("body").hasClass("loggedIn")&&t.account.id===this.profile.id&&axios.post("/i/delete",{type:"status",item:t.id}).then((function(t){s.timeline.splice(e,1),swal("Success","You have successfully deleted this post","success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))},followProfile:function(){var t=this;0!=a("body").hasClass("loggedIn")&&axios.post("/i/follow",{item:this.profileId}).then((function(e){t.$refs.visitorContextMenu.hide(),t.relationship.following?(t.profile.followers_count--,1==t.profile.locked&&(window.location.href="/")):t.profile.followers_count++,t.relationship.following=!t.relationship.following})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))},followingModal:function(){var t=this;if(0!=a("body").hasClass("loggedIn")){if(0!=this.profileSettings.following.list)return this.followingCursor>1||axios.get("/api/pixelfed/v1/accounts/"+this.profileId+"/following",{params:{page:this.followingCursor}}).then((function(e){t.following=e.data,t.followingModalSearchCache=e.data,t.followingCursor++,e.data.length<10&&(t.followingMore=!1),t.followingLoading=!1})),void this.$refs.followingModal.show()}else window.location.href=encodeURI("/login?next=/"+this.profileUsername+"/")},followersModal:function(){var t=this;if(0!=a("body").hasClass("loggedIn")){if(0!=this.profileSettings.followers.list)return this.followerCursor>1||axios.get("/api/pixelfed/v1/accounts/"+this.profileId+"/followers",{params:{page:this.followerCursor}}).then((function(e){var s;(s=t.followers).push.apply(s,i(e.data)),t.followerCursor++,e.data.length<10&&(t.followerMore=!1),t.followerLoading=!1})),void this.$refs.followerModal.show()}else window.location.href=encodeURI("/login?next=/"+this.profileUsername+"/")},followingLoadMore:function(){var t=this;0!=a("body").hasClass("loggedIn")?axios.get("/api/pixelfed/v1/accounts/"+this.profile.id+"/following",{params:{page:this.followingCursor,fbu:this.followingModalSearch}}).then((function(e){var s;e.data.length>0&&((s=t.following).push.apply(s,i(e.data)),t.followingCursor++,t.followingModalSearchCache=t.following);e.data.length<10&&(t.followingModalSearchCache=t.following,t.followingMore=!1)})):window.location.href=encodeURI("/login?next=/"+this.profile.username+"/")},followersLoadMore:function(){var t=this;0!=a("body").hasClass("loggedIn")&&axios.get("/api/pixelfed/v1/accounts/"+this.profile.id+"/followers",{params:{page:this.followerCursor}}).then((function(e){var s;e.data.length>0&&((s=t.followers).push.apply(s,i(e.data)),t.followerCursor++);e.data.length<10&&(t.followerMore=!1)}))},visitorMenu:function(){this.$refs.visitorContextMenu.show()},followModalAction:function(t,e){var s=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"following";axios.post("/i/follow",{item:t}).then((function(t){"following"==o&&(s.following.splice(e,1),s.profile.following_count--)})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))},momentBackground:function(){var t="w-100 h-100 mt-n3 ";return this.profile.header_bg?t+="default"==this.profile.header_bg?"bg-pixelfed":"bg-moment-"+this.profile.header_bg:t+="bg-pixelfed",t},loadSponsor:function(){var t=this;axios.get("/api/local/profile/sponsor/"+this.profileId).then((function(e){t.sponsorList=e.data}))},showSponsorModal:function(){this.$refs.sponsorModal.show()},goBack:function(){return window.history.length>2?void window.history.back():void(window.location.href="/")},copyProfileLink:function(){navigator.clipboard.writeText(window.location.href),this.$refs.visitorContextMenu.hide()},formatCount:function(t){return App.util.format.count(t)},statusUrl:function(t){return t.url},profileUrl:function(t){return t.url},profileUrlRedirect:function(t){return 1==t.local?t.url:"/i/web/profile/_/"+t.id},showEmbedProfileModal:function(){this.ctxEmbedPayload=window.App.util.embed.profile(this.profile.url),this.$refs.visitorContextMenu.hide(),this.$refs.embedModal.show()},ctxCopyEmbed:function(){navigator.clipboard.writeText(this.ctxEmbedPayload),this.$refs.embedModal.hide(),this.$refs.visitorContextMenu.hide()},storyRedirect:function(){window.location.href="/stories/"+this.profileUsername+"?t=4"},followingModalSearchHandler:function(){var t=this,e=this,s=this.followingModalSearch;if(0==s.length&&(this.following=this.followingModalSearchCache,this.followingModalSearch=null),s.length>0){var o="/api/pixelfed/v1/accounts/"+e.profileId+"/following?page=1&fbu="+s;axios.get(o).then((function(e){t.following=e.data})).catch((function(t){e.following=e.followingModalSearchCache,e.followingModalSearch=null}))}},truncate:function(t,e){return _.truncate(t,{length:e})},formatWebsite:function(t){if("https://"===t.slice(0,8))t=t.substr(8);else{if("http://"!==t.slice(0,7))return void(this.profile.website=null);t=t.substr(7)}return this.truncate(t,60)},joinedAtFormat:function(t){return new Date(t).toDateString()},archivesInfiniteLoader:function(t){var e=this;axios.get("/api/pixelfed/v2/statuses/archives",{params:{page:this.archivesPage}}).then((function(s){var o;s.data.length?((o=e.archives).push.apply(o,i(s.data)),e.archivesPage++,t.loaded()):t.complete()}))}}}},53999:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(19755);const a={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 s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)},ctxEmbedShowLikes:function(t,e){1==t&&(this.ctxEmbedCompactMode=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)},ctxEmbedCompactMode:function(t,e){1==t&&(this.ctxEmbedShowCaption=!1,this.ctxEmbedShowLikes=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)}},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 s=t.ctxMenuStatus.account.acct;t.closeCtxMenu(),setTimeout((function(){swal("Follow successful!","You are now following "+s,"success")}),500)}))},ctxMenuUnfollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then((function(e){var s=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 "+s,"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,s=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(o){o?axios.post("/i/report/",{report:t,type:"post",id:s}).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,s){var o=this,a=(t.account.username,t.id,""),i=this;switch(e){case"addcw":a="Are you sure you want to add a content warning to this post?",swal({title:"Confirm",text:a,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&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":a="Are you sure you want to remove the content warning on this post?",swal({title:"Confirm",text:a,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&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":a="Are you sure you want to unlist this post?",swal({title:"Confirm",text:a,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(e){o.feed=o.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":a="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:a,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&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!=o("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!=o("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(s){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(s){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()}))}}}},55192:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(20415),a=s(19755);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":o.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";s.r(e),s.d(e,{default:()=>n});var o=s(20415),a=s(97622),i=s(19755);const n={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":o.default,"poll-card":a.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 s=''.concat(e.shortcode,'');t.content=t.content.replace(":".concat(e.shortcode,":"),s)}))},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,s=window.App.config.username.remote.custom,o=t.account.username,a=document.createElement("a");switch(a.href=t.account.url,a=a.hostname,e){case"@":default:return o+'@'+a+"";case"from":return o+' from '+a+"";case"custom":return o+' '+s+" "+a+""}},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 s=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=s,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 s=this;this.replySending=!0;var o=t.id,a=this.replyText,i=this.config.uploader.max_caption_length;if(a.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:o,comment:a,sensitive:this.replyNsfw}).then((function(t){s.replyText="",s.replies.push(t.data.entity),s.$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)},canFollow:function(t){return!!t.hasOwnProperty("relationship")&&(!(!t.hasOwnProperty("account")||!t.account.hasOwnProperty("id"))&&(t.account.id!=this.profile.id&&!t.relationship.following))},follow:function(t){var e=this;event.currentTarget.blur(),axios.post("/i/follow",{item:t}).then((function(s){e.status.relationship.following=!0,e.$emit("followed",t)})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))},unfollow:function(t){var e=this;event.currentTarget.blur(),axios.post("/i/follow",{item:t}).then((function(s){e.status.relationship.following=!1,e.$emit("unfollowed",t)})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))}}}},7768:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});const o={props:["status"]}},10578:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(30765),a=s.n(o);const i={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){a()({el:t.target})},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 s="backward";e.advancePage(s),e.$emit("navigation-click",s)}if("39"==t.keyCode){t.preventDefault();var o="forward";e.advancePage(o),e.$emit("navigation-click",o)}}}}},15464:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(30765),a=s.n(o);const i={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){a()({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}}}},63049:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});const o={props:["status"]}},67223:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});const o={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")}}}},4291:(t,e,s)=>{Vue.component("photo-presenter",s(23251).default),Vue.component("video-presenter",s(53973).default),Vue.component("photo-album-presenter",s(33872).default),Vue.component("video-album-presenter",s(76644).default),Vue.component("mixed-album-presenter",s(57374).default),Vue.component("post-menu",s(4086).default),Vue.component("profile",s(29279).default)},73196:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(23645),a=s.n(o)()((function(t){return t[1]}));a.push([t.id,".text-lighter[data-v-1002e7e2]{color:#b8c2cc!important}.modal-body[data-v-1002e7e2]{padding:0}",""]);const i=a},1844:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(23645),a=s.n(o)()((function(t){return t[1]}));a.push([t.id,".o-landscape[data-v-89e9aa84],.o-portrait[data-v-89e9aa84],.o-square[data-v-89e9aa84]{max-width:320px}.post-icon[data-v-89e9aa84]{color:#fff;margin-top:10px;opacity:.6;position:relative;text-shadow:3px 3px 16px #272634;z-index:9}.font-size-16px[data-v-89e9aa84]{font-size:16px}.profile-website[data-v-89e9aa84]{color:#003569;font-weight:600;text-decoration:none}.nav-topbar .nav-link[data-v-89e9aa84]{color:#999}.nav-topbar .nav-link .small[data-v-89e9aa84]{font-weight:600}.has-story[data-v-89e9aa84]{background:radial-gradient(ellipse at 70% 70%,#ee583f 8%,#d92d77 42%,#bd3381 58%);border-radius:50%;height:84px;padding:4px;width:84px}.has-story img[data-v-89e9aa84]{background:#fff;border-radius:50%;height:76px;padding:6px;width:76px}.has-story-lg[data-v-89e9aa84]{background:radial-gradient(ellipse at 70% 70%,#ee583f 8%,#d92d77 42%,#bd3381 58%);border-radius:50%;height:159px;padding:4px;width:159px}.has-story-lg img[data-v-89e9aa84]{background:#fff;border-radius:50%;height:150px;padding:6px;width:150px}.no-focus[data-v-89e9aa84]{border-color:none;box-shadow:none;outline:0}.modal-tab-active[data-v-89e9aa84]{border-bottom:1px solid #08d}.btn-sec-alt[data-v-89e9aa84]:hover{background-color:transparent;border-color:#6c757d;color:#ccc;opacity:.7}",""]);const i=a},28597:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(23645),a=s.n(o)()((function(t){return t[1]}));a.push([t.id,".card-img-top[data-v-1b12221c]{border-top-left-radius:0!important;border-top-right-radius:0!important}.content-label-wrapper[data-v-1b12221c]{position:relative}.content-label[data-v-1b12221c]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}",""]);const i=a},43125:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(23645),a=s.n(o)()((function(t){return t[1]}));a.push([t.id,".card-img-top[data-v-77d48172]{border-top-left-radius:0!important;border-top-right-radius:0!important}.content-label-wrapper[data-v-77d48172]{position:relative}.content-label[data-v-77d48172]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}",""]);const i=a},71965:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(23645),a=s.n(o)()((function(t){return t[1]}));a.push([t.id,".content-label-wrapper[data-v-5e63aaf2]{position:relative}.content-label[data-v-5e63aaf2]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}",""]);const i=a},59179:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(23645),a=s.n(o)()((function(t){return t[1]}));a.push([t.id,".status-card-component .status-content{font-size:17px}.status-card-component.status-card-sm .status-content{font-size:14px}.status-card-component.status-card-sm .fa-lg{font-size:unset;line-height:unset;vertical-align:unset}",""]);const i=a},91917:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var o=s(93379),a=s.n(o),i=s(73196),n={insert:"head",singleton:!1};a()(i.default,n);const r=i.default.locals||{}},86617:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var o=s(93379),a=s.n(o),i=s(1844),n={insert:"head",singleton:!1};a()(i.default,n);const r=i.default.locals||{}},27265:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var o=s(93379),a=s.n(o),i=s(28597),n={insert:"head",singleton:!1};a()(i.default,n);const r=i.default.locals||{}},2511:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var o=s(93379),a=s.n(o),i=s(43125),n={insert:"head",singleton:!1};a()(i.default,n);const r=i.default.locals||{}},99799:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var o=s(93379),a=s.n(o),i=s(71965),n={insert:"head",singleton:!1};a()(i.default,n);const r=i.default.locals||{}},43855:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var o=s(93379),a=s.n(o),i=s(59179),n={insert:"head",singleton:!1};a()(i.default,n);const r=i.default.locals||{}},4086:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(44843),a=s(10078),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);s(96021);const n=(0,s(51900).default)(a.default,o.render,o.staticRenderFns,!1,null,"1002e7e2",null).exports},29279:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(68443),a=s(33760),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);s(85506);const n=(0,s(51900).default)(a.default,o.render,o.staticRenderFns,!1,null,"89e9aa84",null).exports},20415:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(53242),a=s(25266),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const n=(0,s(51900).default)(a.default,o.render,o.staticRenderFns,!1,null,null,null).exports},97622:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(74454),a=s(97381),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const n=(0,s(51900).default)(a.default,o.render,o.staticRenderFns,!1,null,null,null).exports},19210:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(48661),a=s(71334),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);s(45101);const n=(0,s(51900).default)(a.default,o.render,o.staticRenderFns,!1,null,null,null).exports},57374:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(40621),a=s(4220),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const n=(0,s(51900).default)(a.default,o.render,o.staticRenderFns,!1,null,null,null).exports},33872:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(74762),a=s(10878),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);s(75152);const n=(0,s(51900).default)(a.default,o.render,o.staticRenderFns,!1,null,"1b12221c",null).exports},23251:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(42415),a=s(29911),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);s(12796);const n=(0,s(51900).default)(a.default,o.render,o.staticRenderFns,!1,null,"77d48172",null).exports},76644:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(35301),a=s(18411),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const n=(0,s(51900).default)(a.default,o.render,o.staticRenderFns,!1,null,null,null).exports},53973:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(25188),a=s(44976),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);s(52802);const n=(0,s(51900).default)(a.default,o.render,o.staticRenderFns,!1,null,"5e63aaf2",null).exports},10078:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(14425),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a);const i=o.default},33760:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(79466),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a);const i=o.default},25266:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(53999),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a);const i=o.default},97381:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(55192),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a);const i=o.default},71334:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(86637),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a);const i=o.default},4220:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(7768),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a);const i=o.default},10878:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(10578),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a);const i=o.default},29911:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(15464),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a);const i=o.default},18411:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(63049),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a);const i=o.default},44976:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(67223),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a);const i=o.default},96021:(t,e,s)=>{"use strict";s.r(e);var o=s(91917),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},85506:(t,e,s)=>{"use strict";s.r(e);var o=s(86617),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},75152:(t,e,s)=>{"use strict";s.r(e);var o=s(27265),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},12796:(t,e,s)=>{"use strict";s.r(e);var o=s(2511),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},52802:(t,e,s)=>{"use strict";s.r(e);var o=s(99799),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},45101:(t,e,s)=>{"use strict";s.r(e);var o=s(43855),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},44843:(t,e,s)=>{"use strict";s.r(e);var o=s(27257),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},68443:(t,e,s)=>{"use strict";s.r(e);var o=s(59461),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},53242:(t,e,s)=>{"use strict";s.r(e);var o=s(22372),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},74454:(t,e,s)=>{"use strict";s.r(e);var o=s(37860),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},48661:(t,e,s)=>{"use strict";s.r(e);var o=s(91927),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},40621:(t,e,s)=>{"use strict";s.r(e);var o=s(2999),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},74762:(t,e,s)=>{"use strict";s.r(e);var o=s(21761),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},42415:(t,e,s)=>{"use strict";s.r(e);var o=s(65654),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},35301:(t,e,s)=>{"use strict";s.r(e);var o=s(7592),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},25188:(t,e,s)=>{"use strict";s.r(e);var o=s(53678),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},27257:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>a});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",["true"!=t.modal?s("div",{staticClass:"dropdown"},[s("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"}},[s("span",{class:["lg"==t.size?"fas fa-ellipsis-v fa-lg text-muted":"fas fa-ellipsis-v fa-sm text-lighter"]})]),t._v(" "),s("div",{staticClass:"dropdown-menu dropdown-menu-right"},[s("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)?s("span",[s("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)?s("span",[s("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(" "),s("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?s("span",[s("div",{staticClass:"dropdown-divider"}),t._v(" "),s("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(" "),s("div",{staticClass:"dropdown-divider"}),t._v(" "),s("h6",{staticClass:"dropdown-header"},[t._v("Mod Tools")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"autocw")}}},[s("p",{staticClass:"mb-0"},[t._v("Enforce CW")]),t._v(" "),t._m(0)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"noautolink")}}},[s("p",{staticClass:"mb-0"},[t._v("No Autolinking")]),t._v(" "),t._m(1)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"unlisted")}}},[s("p",{staticClass:"mb-0"},[t._v("Unlisted Posts")]),t._v(" "),t._m(2)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"disable")}}},[s("p",{staticClass:"mb-0"},[t._v("Disable Account")]),t._v(" "),t._m(3)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"suspend")}}},[s("p",{staticClass:"mb-0"},[t._v("Suspend Account")]),t._v(" "),t._m(4)])]):t._e()])]):t._e(),t._v(" "),"true"==t.modal?s("div",[s("span",{attrs:{"data-toggle":"modal","data-target":"#mt_pid_"+t.status.id}},[s("span",{class:["lg"==t.size?"fas fa-ellipsis-v fa-lg text-muted":"fas fa-ellipsis-v fa-sm text-lighter"]})]),t._v(" "),s("div",{staticClass:"modal",attrs:{tabindex:"-1",role:"dialog",id:"mt_pid_"+t.status.id}},[s("div",{staticClass:"modal-dialog modal-sm modal-dialog-centered",attrs:{role:"document"}},[s("div",{staticClass:"modal-content"},[s("div",{staticClass:"modal-body text-center"},[s("div",{staticClass:"list-group"},[s("a",{staticClass:"list-group-item text-dark text-decoration-none",attrs:{href:t.statusUrl(t.status)}},[t._v("Go to post")]),t._v(" "),s("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():s("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?s("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(" "),s("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()])},a=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0 small text-muted"},[t._v("Adds a CW to every post "),s("br"),t._v(" made by this account.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0 small text-muted"},[t._v("Do not transform mentions, "),s("br"),t._v(" hashtags or urls into HTML.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0 small text-muted"},[t._v("Removes account from "),s("br"),t._v(" public/network timelines.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0 small text-muted"},[t._v("Temporarily disable account "),s("br"),t._v(" until next time user log in.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0 small text-muted"},[t._v("This prevents any new interactions, "),s("br"),t._v(" without deleting existing data.")])}]},59461:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>a});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"w-100 h-100"},[t.isMobile?s("div",{staticClass:"bg-white p-3 border-bottom"},[s("div",{staticClass:"d-flex justify-content-between align-items-center"},[s("div",{staticClass:"cursor-pointer",on:{click:t.goBack}},[s("i",{staticClass:"fas fa-chevron-left fa-lg"})]),t._v(" "),s("div",{staticClass:"font-weight-bold"},[t._v("\n\t\t\t\t"+t._s(this.profileUsername)+"\n\n\t\t\t")]),t._v(" "),s("div",[s("a",{staticClass:"fas fa-ellipsis-v fa-lg text-muted text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.visitorMenu.apply(null,arguments)}}})])])]):t._e(),t._v(" "),t.relationship&&t.relationship.blocking&&t.warning?s("div",{staticClass:"bg-white pt-3 border-bottom"},[s("div",{staticClass:"container"},[s("p",{staticClass:"text-center font-weight-bold"},[t._v("You are blocking this account")]),t._v(" "),s("p",{staticClass:"text-center font-weight-bold"},[t._v("Click "),s("a",{staticClass:"cursor-pointer",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.warning=!1}}},[t._v("here")]),t._v(" to view profile")])])]):t._e(),t._v(" "),t.loading?s("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"80vh"}},[s("img",{attrs:{src:"/img/pixelfed-icon-grey.svg"}})]):t._e(),t._v(" "),t.loading||t.warning?t._e():s("div",["metro"==t.layout?s("div",{staticClass:"container"},[s("div",{class:t.isMobile?"pt-5":"pt-5 border-bottom"},[s("div",{staticClass:"container px-0"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 col-md-4 d-md-flex"},[s("div",{staticClass:"profile-avatar mx-md-auto"},[s("div",{staticClass:"d-block d-md-none mt-n3 mb-3"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-4"},[t.hasStory?s("div",{staticClass:"has-story cursor-pointer shadow-sm",on:{click:function(e){return t.storyRedirect()}}},[s("img",{staticClass:"rounded-circle",attrs:{alt:t.profileUsername+"'s profile picture",src:t.profile.avatar,width:"77px",height:"77px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0';"}})]):s("div",[s("img",{staticClass:"rounded-circle border",attrs:{alt:t.profileUsername+"'s profile picture",src:t.profile.avatar,width:"77px",height:"77px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0';"}})])]),t._v(" "),s("div",{staticClass:"col-8"},[s("div",{staticClass:"d-block d-md-none mt-3 py-2"},[s("ul",{staticClass:"nav d-flex justify-content-between"},[s("li",{staticClass:"nav-item"},[s("div",{staticClass:"font-weight-light"},[s("span",{staticClass:"text-dark text-center"},[s("p",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.formatCount(t.profile.statuses_count)))]),t._v(" "),s("p",{staticClass:"text-muted mb-0 small"},[t._v("Posts")])])])]),t._v(" "),s("li",{staticClass:"nav-item"},[t.profileSettings.followers.count?s("div",{staticClass:"font-weight-light"},[s("a",{staticClass:"text-dark cursor-pointer text-center",on:{click:function(e){return t.followersModal()}}},[s("p",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.formatCount(t.profile.followers_count)))]),t._v(" "),s("p",{staticClass:"text-muted mb-0 small"},[t._v("Followers")])])]):t._e()]),t._v(" "),s("li",{staticClass:"nav-item"},[t.profileSettings.following.count?s("div",{staticClass:"font-weight-light"},[s("a",{staticClass:"text-dark cursor-pointer text-center",on:{click:function(e){return t.followingModal()}}},[s("p",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.formatCount(t.profile.following_count)))]),t._v(" "),s("p",{staticClass:"text-muted mb-0 small"},[t._v("Following")])])]):t._e()])])])])])]),t._v(" "),s("div",{staticClass:"d-none d-md-block pb-3"},[t.hasStory?s("div",{staticClass:"has-story-lg cursor-pointer shadow-sm",on:{click:function(e){return t.storyRedirect()}}},[s("img",{staticClass:"rounded-circle box-shadow cursor-pointer",attrs:{alt:t.profileUsername+"'s profile picture",src:t.profile.avatar,width:"150px",height:"150px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0';"}})]):s("div",[s("img",{staticClass:"rounded-circle box-shadow",attrs:{alt:t.profileUsername+"'s profile picture",src:t.profile.avatar,width:"150px",height:"150px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0';"}})]),t._v(" "),t.sponsorList.patreon||t.sponsorList.liberapay||t.sponsorList.opencollective?s("p",{staticClass:"text-center mt-3"},[s("button",{staticClass:"btn btn-outline-secondary font-weight-bold py-0",attrs:{type:"button"},on:{click:t.showSponsorModal}},[s("i",{staticClass:"fas fa-heart text-danger"}),t._v("\n\t\t\t\t\t\t\t\t\t\t\tDonate\n\t\t\t\t\t\t\t\t\t\t")])]):t._e()])])]),t._v(" "),s("div",{staticClass:"col-12 col-md-8 d-flex align-items-center"},[s("div",{staticClass:"profile-details"},[s("div",{staticClass:"d-none d-md-flex username-bar pb-3 align-items-center"},[s("span",{staticClass:"font-weight-ultralight h3 mb-0"},[t._v(t._s(t.profile.username))]),t._v(" "),t.profile.id!=t.user.id&&t.user.hasOwnProperty("id")?s("span",[1==t.relationship.following?s("span",{staticClass:"pl-4"},[s("a",{staticClass:"btn btn-outline-secondary font-weight-bold btn-sm py-1 text-dark mr-2 px-3 btn-sec-alt",staticStyle:{border:"1px solid #dbdbdb"},attrs:{href:"/account/direct/t/"+t.profile.id,"data-toggle":"tooltip",title:"Message"}},[t._v("Message")]),t._v(" "),s("button",{staticClass:"btn btn-outline-secondary font-weight-bold btn-sm py-1 text-dark btn-sec-alt",staticStyle:{border:"1px solid #dbdbdb"},attrs:{type:"button","data-toggle":"tooltip",title:"Unfollow"},on:{click:t.followProfile}},[s("i",{staticClass:"fas fa-user-check mx-3"})])]):t._e(),t._v(" "),t.relationship.following?t._e():s("span",{staticClass:"pl-4"},[s("button",{staticClass:"btn btn-primary font-weight-bold btn-sm py-1 px-3",attrs:{type:"button","data-toggle":"tooltip",title:"Follow"},on:{click:t.followProfile}},[t._v("Follow")])])]):t._e(),t._v(" "),t.owner&&t.user.hasOwnProperty("id")?s("span",{staticClass:"pl-4"},[s("a",{staticClass:"btn btn-outline-secondary btn-sm",staticStyle:{"font-weight":"600"},attrs:{href:"/settings/home"}},[t._v("Edit Profile")])]):t._e(),t._v(" "),s("span",{staticClass:"pl-4"},[s("a",{staticClass:"fas fa-ellipsis-h fa-lg text-dark text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.visitorMenu.apply(null,arguments)}}})])]),t._v(" "),s("div",{staticClass:"font-size-16px"},[s("div",{staticClass:"d-none d-md-inline-flex profile-stats pb-3"},[s("div",{staticClass:"font-weight-light pr-5"},[s("span",{staticClass:"text-dark"},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatCount(t.profile.statuses_count)))]),t._v("\n\t\t\t\t\t\t\t\t\t\t\t\tPosts\n\t\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),t.profileSettings.followers.count?s("div",{staticClass:"font-weight-light pr-5"},[s("a",{staticClass:"text-dark cursor-pointer",on:{click:function(e){return t.followersModal()}}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatCount(t.profile.followers_count)))]),t._v("\n\t\t\t\t\t\t\t\t\t\t\t\tFollowers\n\t\t\t\t\t\t\t\t\t\t\t")])]):t._e(),t._v(" "),t.profileSettings.following.count?s("div",{staticClass:"font-weight-light"},[s("a",{staticClass:"text-dark cursor-pointer",on:{click:function(e){return t.followingModal()}}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatCount(t.profile.following_count)))]),t._v("\n\t\t\t\t\t\t\t\t\t\t\t\tFollowing\n\t\t\t\t\t\t\t\t\t\t\t")])]):t._e()]),t._v(" "),s("p",{staticClass:"d-flex align-items-center mb-1"},[s("span",{staticClass:"font-weight-bold mr-1"},[t._v(t._s(t.profile.display_name))]),t._v(" "),t.profile.pronouns?s("span",{staticClass:"text-muted small"},[t._v(t._s(t.profile.pronouns.join("/")))]):t._e()]),t._v(" "),t.profile.note?s("p",{staticClass:"mb-0",domProps:{innerHTML:t._s(t.profile.note)}}):t._e(),t._v(" "),t.profile.website?s("p",[s("a",{staticClass:"profile-website small",attrs:{href:t.profile.website,rel:"me external nofollow noopener",target:"_blank"}},[t._v(t._s(t.formatWebsite(t.profile.website)))])]):t._e(),t._v(" "),s("p",{staticClass:"d-flex small text-muted align-items-center"},[t.profile.is_admin?s("span",{staticClass:"btn btn-outline-danger btn-sm py-0 mr-3",attrs:{title:"Admin Account","data-toggle":"tooltip"}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\tAdmin\n\t\t\t\t\t\t\t\t\t\t")]):t._e(),t._v(" "),t.relationship&&t.relationship.followed_by?s("span",{staticClass:"btn btn-outline-muted btn-sm py-0 mr-3"},[t._v("Follows You")]):t._e(),t._v(" "),s("span",[t._v("\n\t\t\t\t\t\t\t\t\t\t\tJoined "+t._s(t.joinedAtFormat(t.profile.created_at))+"\n\t\t\t\t\t\t\t\t\t\t")])])])])])])])]),t._v(" "),s("div",{staticClass:"d-block d-md-none my-0 pt-3 border-bottom"},[t.user&&t.user.hasOwnProperty("id")?s("p",{staticClass:"pt-3"},[t.owner?s("button",{staticClass:"btn btn-outline-secondary bg-white btn-sm py-1 btn-block text-center font-weight-bold text-dark border border-lighter",on:{click:function(e){return e.preventDefault(),t.redirect("/settings/home")}}},[t._v("Edit Profile")]):t._e(),t._v(" "),!t.owner&&t.relationship.following?s("button",{staticClass:"btn btn-outline-secondary bg-white btn-sm py-1 px-5 font-weight-bold text-dark border border-lighter",on:{click:t.followProfile}},[t._v("   Unfollow   ")]):t._e(),t._v(" "),t.owner||t.relationship.following?t._e():s("button",{staticClass:"btn btn-primary btn-sm py-1 px-5 font-weight-bold",on:{click:t.followProfile}},[t._v(t._s(t.relationship.followed_by?"Follow Back":"     Follow     "))])]):t._e()]),t._v(" "),s("div",{},[s("ul",{staticClass:"nav nav-topbar d-flex justify-content-center border-0"},[s("li",{staticClass:"nav-item border-top"},[s("a",{class:"grid"==this.mode?"nav-link text-dark":"nav-link",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchMode("grid")}}},[s("i",{staticClass:"fas fa-th"}),t._v(" "),s("span",{staticClass:"d-none d-md-inline-block small pl-1"},[t._v("POSTS")])])]),t._v(" "),s("li",{staticClass:"nav-item px-0 border-top"},[s("a",{class:"collections"==this.mode?"nav-link text-dark":"nav-link",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchMode("collections")}}},[s("i",{staticClass:"fas fa-images"}),t._v(" "),s("span",{staticClass:"d-none d-md-inline-block small pl-1"},[t._v("COLLECTIONS")])])]),t._v(" "),t.owner?s("li",{staticClass:"nav-item border-top"},[s("a",{class:"bookmarks"==this.mode?"nav-link text-dark":"nav-link",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchMode("bookmarks")}}},[s("i",{staticClass:"fas fa-bookmark"}),t._v(" "),s("span",{staticClass:"d-none d-md-inline-block small pl-1"},[t._v("SAVED")])])]):t._e(),t._v(" "),t.owner?s("li",{staticClass:"nav-item border-top"},[s("a",{class:"archives"==this.mode?"nav-link text-dark":"nav-link",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchMode("archives")}}},[s("i",{staticClass:"far fa-folder-open"}),t._v(" "),s("span",{staticClass:"d-none d-md-inline-block small pl-1"},[t._v("ARCHIVES")])])]):t._e()])]),t._v(" "),s("div",{staticClass:"container px-0"},[s("div",{staticClass:"profile-timeline mt-md-4"},["grid"==t.mode?s("div",[s("div",{staticClass:"row"},[t._l(t.timeline,(function(e,o){return s("div",{key:"tlob:"+o,staticClass:"col-4 p-1 p-md-3"},[s("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:t.statusUrl(e)}},[s("div",{staticClass:"square"},[e.sensitive?s("div",{staticClass:"square-content"},[t._m(0,!0),t._v(" "),s("blur-hash-canvas",{attrs:{width:"32",height:"32",hash:e.media_attachments[0].blurhash}})],1):s("div",{staticClass:"square-content"},[s("blur-hash-image",{attrs:{width:"32",height:"32",hash:e.media_attachments[0].blurhash,src:e.media_attachments[0].preview_url}})],1),t._v(" "),"photo:album"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-images fa-2x"})]):t._e(),t._v(" "),"video"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-video fa-2x"})]):t._e(),t._v(" "),"video:album"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-film fa-2x"})]):t._e(),t._v(" "),s("div",{staticClass:"info-overlay-text"},[s("h5",{staticClass:"text-white m-auto font-weight-bold"},[s("span",[s("span",{staticClass:"far fa-comment fa-lg p-2 d-flex-inline"}),t._v(" "),s("span",{staticClass:"d-flex-inline"},[t._v(t._s(t.formatCount(e.reply_count)))])])])])])])])})),t._v(" "),0==t.timeline.length?s("div",{staticClass:"col-12"},[t._m(1)]):t._e()],2),t._v(" "),t.timeline.length?s("div",[s("infinite-loading",{on:{infinite:t.infiniteTimeline}},[s("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),s("div",{attrs:{slot:"no-results"},slot:"no-results"})])],1):t._e()]):t._e(),t._v(" "),"bookmarks"==t.mode?s("div",[t.bookmarksLoading?s("div",[t._m(2)]):s("div",[t.bookmarks.length?s("div",{staticClass:"row"},t._l(t.bookmarks,(function(e,o){return s("div",{staticClass:"col-4 p-1 p-sm-2 p-md-3"},[s("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:e.url}},[s("div",{staticClass:"square"},["photo:album"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-images fa-2x"})]):t._e(),t._v(" "),"video"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-video fa-2x"})]):t._e(),t._v(" "),"video:album"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-film fa-2x"})]):t._e(),t._v(" "),s("div",{staticClass:"square-content",style:t.previewBackground(e)}),t._v(" "),s("div",{staticClass:"info-overlay-text"},[s("h5",{staticClass:"text-white m-auto font-weight-bold"},[s("span",[s("span",{staticClass:"fas fa-retweet fa-lg p-2 d-flex-inline"}),t._v(" "),s("span",{staticClass:"d-flex-inline"},[t._v(t._s(e.reblogs_count))])])])])])])])})),0):s("div",{staticClass:"col-12"},[t._m(3)])])]):t._e(),t._v(" "),"collections"==t.mode?s("div",[t.collections.length&&t.collectionsLoaded?s("div",{staticClass:"row"},t._l(t.collections,(function(t,e){return s("div",{staticClass:"col-4 p-1 p-sm-2 p-md-3"},[s("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:t.url}},[s("div",{staticClass:"square"},[s("div",{staticClass:"square-content",style:"background-image: url("+t.thumb+");"})])])])})),0):s("div",[t._m(4)])]):t._e(),t._v(" "),"archives"==t.mode?s("div",[t.archives.length?s("div",{staticClass:"col-12 col-md-8 offset-md-2 px-0 mb-sm-3 timeline mt-5"},[t._m(5),t._v(" "),t._l(t.archives,(function(t,e){return s("div",[s("status-card",{class:{"border-top":0===e},attrs:{status:t,"reaction-bar":!1}})],1)})),t._v(" "),s("infinite-loading",{on:{infinite:t.archivesInfiniteLoader}},[s("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),s("div",{attrs:{slot:"no-results"},slot:"no-results"})])],2):t._e()]):t._e()])])]):t._e()]),t._v(" "),t.profile&&t.following?s("b-modal",{ref:"followingModal",attrs:{id:"following-modal","hide-footer":"",centered:"",scrollable:"",title:"Following","body-class":"list-group-flush py-3 px-0","dialog-class":"follow-modal"}},[t.followingLoading?s("div",{staticClass:"text-center py-5"},[s("div",{staticClass:"spinner-border",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])]):s("div",{staticClass:"list-group",staticStyle:{"max-height":"60vh"}},[t.following.length?s("div",[1==t.owner?s("div",{staticClass:"list-group-item border-0 pt-0 px-0 mt-n2 mb-3"},[s("span",{staticClass:"d-flex px-4 pb-0 align-items-center"},[s("i",{staticClass:"fas fa-search text-lighter"}),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.followingModalSearch,expression:"followingModalSearch"}],staticClass:"form-control border-0 shadow-0 no-focus",attrs:{type:"text",placeholder:"Search Following..."},domProps:{value:t.followingModalSearch},on:{keyup:t.followingModalSearchHandler,input:function(e){e.target.composing||(t.followingModalSearch=e.target.value)}}})])]):t._e(),t._v(" "),t._l(t.following,(function(e,o){return s("div",{key:"following_"+o,staticClass:"list-group-item border-0 py-1 mb-1"},[s("div",{staticClass:"media"},[s("a",{attrs:{href:t.profileUrlRedirect(e)}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px",loading:"lazy",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0'"}})]),t._v(" "),s("div",{staticClass:"media-body text-truncate"},[s("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:t.profileUrlRedirect(e)}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),e.local?s("p",{staticClass:"text-muted mb-0 text-truncate",staticStyle:{"font-size":"14px"}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.display_name?e.display_name:e.username)+"\n\t\t\t\t\t\t\t")]):s("p",{staticClass:"text-muted mb-0 text-break mr-3",staticStyle:{"font-size":"14px"},attrs:{title:e.acct,"data-toggle":"dropdown","data-placement":"bottom"}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(e.acct.split("@")[0]))]),s("span",{staticClass:"text-lighter"},[t._v("@"+t._s(e.acct.split("@")[1]))])])]),t._v(" "),t.owner?s("div",[s("a",{staticClass:"btn btn-outline-dark btn-sm font-weight-bold",attrs:{href:"#"},on:{click:function(s){return s.preventDefault(),t.followModalAction(e.id,o,"following")}}},[t._v("Following")])]):t._e()])])})),t._v(" "),t.followingModalSearch&&0==t.following.length?s("div",{staticClass:"list-group-item border-0"},[s("div",{staticClass:"list-group-item border-0 pt-5"},[s("p",{staticClass:"p-3 text-center mb-0 lead"},[t._v("No Results Found")])])]):t._e(),t._v(" "),t.following.length>0&&t.followingMore?s("div",{staticClass:"list-group-item text-center",on:{click:function(e){return t.followingLoadMore()}}},[s("p",{staticClass:"mb-0 small text-muted font-weight-light cursor-pointer"},[t._v("Load more")])]):t._e()],2):s("div",{staticClass:"list-group-item border-0"},[s("p",{staticClass:"text-center mb-0 font-weight-bold text-muted py-5"},[s("span",{staticClass:"text-dark"},[t._v(t._s(t.profileUsername))]),t._v(" is not following yet")])])])]):t._e(),t._v(" "),s("b-modal",{ref:"followerModal",attrs:{id:"follower-modal","hide-footer":"",centered:"",scrollable:"",title:"Followers","body-class":"list-group-flush py-3 px-0","dialog-class":"follow-modal"}},[t.followerLoading?s("div",{staticClass:"text-center py-5"},[s("div",{staticClass:"spinner-border",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])]):s("div",{staticClass:"list-group",staticStyle:{"max-height":"60vh"}},[t.followers.length?s("div",[t._l(t.followers,(function(e,o){return s("div",{key:"follower_"+o,staticClass:"list-group-item border-0 py-1 mb-1"},[s("div",{staticClass:"media mb-0"},[s("a",{attrs:{href:t.profileUrlRedirect(e)}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px",height:"30px",loading:"lazy",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0'"}})]),t._v(" "),s("div",{staticClass:"media-body mb-0"},[s("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:t.profileUrlRedirect(e)}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),e.local?s("p",{staticClass:"text-muted mb-0 text-truncate",staticStyle:{"font-size":"14px"}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.display_name?e.display_name:e.username)+"\n\t\t\t\t\t\t\t")]):s("p",{staticClass:"text-muted mb-0 text-break mr-3",staticStyle:{"font-size":"14px"},attrs:{title:e.acct,"data-toggle":"dropdown","data-placement":"bottom"}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(e.acct.split("@")[0]))]),s("span",{staticClass:"text-lighter"},[t._v("@"+t._s(e.acct.split("@")[1]))])])])])])})),t._v(" "),t.followers.length&&t.followerMore?s("div",{staticClass:"list-group-item text-center",on:{click:function(e){return t.followersLoadMore()}}},[s("p",{staticClass:"mb-0 small text-muted font-weight-light cursor-pointer"},[t._v("Load more")])]):t._e()],2):s("div",{staticClass:"list-group-item border-0"},[s("p",{staticClass:"text-center mb-0 font-weight-bold text-muted py-5"},[s("span",{staticClass:"text-dark"},[t._v(t._s(t.profileUsername))]),t._v(" has no followers yet")])])])]),t._v(" "),s("b-modal",{ref:"visitorContextMenu",attrs:{id:"visitor-context-menu","hide-footer":"","hide-header":"",centered:"",size:"sm","body-class":"list-group-flush p-0"}},[t.relationship?s("div",{staticClass:"list-group"},[s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.copyProfileLink}},[t._v("\n\t\t\t\tCopy Link\n\t\t\t")]),t._v(" "),0==t.profile.locked?s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.showEmbedProfileModal}},[t._v("\n\t\t\t\tEmbed\n\t\t\t")]):t._e(),t._v(" "),!t.user||t.owner||t.relationship.following?t._e():s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.followProfile}},[t._v("\n\t\t\t\tFollow\n\t\t\t")]),t._v(" "),t.user&&!t.owner&&t.relationship.following?s("div",{staticClass:"list-group-item cursor-pointer text-center rounded",on:{click:t.followProfile}},[t._v("\n\t\t\t\tUnfollow\n\t\t\t")]):t._e(),t._v(" "),!t.user||t.owner||t.relationship.muting?t._e():s("div",{staticClass:"list-group-item cursor-pointer text-center rounded",on:{click:t.muteProfile}},[t._v("\n\t\t\t\tMute\n\t\t\t")]),t._v(" "),t.user&&!t.owner&&t.relationship.muting?s("div",{staticClass:"list-group-item cursor-pointer text-center rounded",on:{click:t.unmuteProfile}},[t._v("\n\t\t\t\tUnmute\n\t\t\t")]):t._e(),t._v(" "),t.user&&!t.owner?s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.reportProfile}},[t._v("\n\t\t\t\tReport User\n\t\t\t")]):t._e(),t._v(" "),!t.user||t.owner||t.relationship.blocking?t._e():s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.blockProfile}},[t._v("\n\t\t\t\tBlock\n\t\t\t")]),t._v(" "),t.user&&!t.owner&&t.relationship.blocking?s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.unblockProfile}},[t._v("\n\t\t\t\tUnblock\n\t\t\t")]):t._e(),t._v(" "),t.user&&t.owner?s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:function(e){return t.redirect("/settings/home")}}},[t._v("\n\t\t\t\tSettings\n\t\t\t")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:function(e){return t.redirect("/users/"+t.profileUsername+".atom")}}},[t._v("\n\t\t\t\tAtom Feed\n\t\t\t")]),t._v(" "),s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-muted font-weight-bold",on:{click:function(e){return t.$refs.visitorContextMenu.hide()}}},[t._v("\n\t\t\t\tClose\n\t\t\t")])]):t._e()]),t._v(" "),s("b-modal",{ref:"sponsorModal",attrs:{id:"sponsor-modal","hide-footer":"",title:"Sponsor "+t.profileUsername,centered:"",size:"md","body-class":"px-5"}},[s("div",[s("p",{staticClass:"font-weight-bold"},[t._v("External Links")]),t._v(" "),t.sponsorList.patreon?s("p",{staticClass:"pt-2"},[s("a",{staticClass:"font-weight-bold",attrs:{href:"https://"+t.sponsorList.patreon,rel:"nofollow"}},[t._v(t._s(t.sponsorList.patreon))])]):t._e(),t._v(" "),t.sponsorList.liberapay?s("p",{staticClass:"pt-2"},[s("a",{staticClass:"font-weight-bold",attrs:{href:"https://"+t.sponsorList.liberapay,rel:"nofollow"}},[t._v(t._s(t.sponsorList.liberapay))])]):t._e(),t._v(" "),t.sponsorList.opencollective?s("p",{staticClass:"pt-2"},[s("a",{staticClass:"font-weight-bold",attrs:{href:"https://"+t.sponsorList.opencollective,rel:"nofollow"}},[t._v(t._s(t.sponsorList.opencollective))])]):t._e()])]),t._v(" "),s("b-modal",{ref:"embedModal",attrs:{id:"ctx-embed-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"md","body-class":"p-2 rounded"}},[s("div",[s("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:"6",disabled:""},domProps:{value:t.ctxEmbedPayload},on:{input:function(e){e.target.composing||(t.ctxEmbedPayload=e.target.value)}}}),t._v(" "),s("hr"),t._v(" "),s("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(" "),s("p",{staticClass:"mb-0 px-2 small text-muted"},[t._v("By using this embed, you agree to our "),s("a",{attrs:{href:"/site/terms"}},[t._v("Terms of Use")])])])])],1)},a=[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"info-overlay-text-label"},[e("h5",{staticClass:"text-white m-auto font-weight-bold"},[e("span",[e("span",{staticClass:"far fa-eye-slash fa-lg p-2 d-flex-inline"})])])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"py-5 text-center text-muted"},[s("p",[s("i",{staticClass:"fas fa-camera-retro fa-2x"})]),t._v(" "),s("p",{staticClass:"h2 font-weight-light pt-3"},[t._v("No posts yet")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"p-1 p-sm-2 p-md-3 d-flex justify-content-center align-items-center",staticStyle:{height:"30vh"}},[e("img",{attrs:{src:"/img/pixelfed-icon-grey.svg"}})])])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"py-5 text-center text-muted"},[s("p",[s("i",{staticClass:"fas fa-bookmark fa-2x"})]),t._v(" "),s("p",{staticClass:"h2 font-weight-light pt-3"},[t._v("No saved bookmarks")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"py-5 text-center text-muted"},[s("p",[s("i",{staticClass:"fas fa-images fa-2x"})]),t._v(" "),s("p",{staticClass:"h2 font-weight-light pt-3"},[t._v("No collections yet")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"alert alert-info"},[s("p",{staticClass:"mb-0"},[t._v("Posts you archive can only be seen by you.")]),t._v(" "),s("p",{staticClass:"mb-0"},[t._v("For more information see the "),s("a",{attrs:{href:"/site/kb/sharing-media"}},[t._v("Sharing Media")]),t._v(" help center page.")])])}]},22372:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>a});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modal-stack"},[s("b-modal",{ref:"ctxModal",attrs:{id:"ctx-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"list-group text-center"},["archived"!==t.status.visibility?s("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?s("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?s("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?s("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?s("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?s("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?s("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?s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxMenu()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("div",{staticClass:"list-group text-center"},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("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?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"remcw")}}},[t._v("Remove Content Warning")]):s("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(" "),s("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"),s("br"),t._v(" "),s("span",{staticClass:"small"},[t._v("Unlist + CW existing and future posts")])]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("div",{staticClass:"list-group text-center"},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Unlist Posts")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Moderation Log")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModOtherMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("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(" "),s("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?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuEmbed()}}},[t._v("Embed")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxShareMenu()}}},[t._v("Cancel")])]),t._v(" "),s("b-modal",{ref:"ctxEmbedModal",attrs:{id:"ctx-embed-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"md","body-class":"p-2 rounded"}},[s("div",[s("div",{staticClass:"form-group"},[s("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(" "),s("div",{staticClass:"form-group pl-2 d-flex justify-content-center"},[s("div",{staticClass:"form-check mr-3"},[s("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 s=t.ctxEmbedShowCaption,o=e.target,a=!!o.checked;if(Array.isArray(s)){var i=t._i(s,null);o.checked?i<0&&(t.ctxEmbedShowCaption=s.concat([null])):i>-1&&(t.ctxEmbedShowCaption=s.slice(0,i).concat(s.slice(i+1)))}else t.ctxEmbedShowCaption=a}}}),t._v(" "),s("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(" "),s("div",{staticClass:"form-check mr-3"},[s("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 s=t.ctxEmbedShowLikes,o=e.target,a=!!o.checked;if(Array.isArray(s)){var i=t._i(s,null);o.checked?i<0&&(t.ctxEmbedShowLikes=s.concat([null])):i>-1&&(t.ctxEmbedShowLikes=s.slice(0,i).concat(s.slice(i+1)))}else t.ctxEmbedShowLikes=a}}}),t._v(" "),s("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(" "),s("div",{staticClass:"form-check"},[s("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 s=t.ctxEmbedCompactMode,o=e.target,a=!!o.checked;if(Array.isArray(s)){var i=t._i(s,null);o.checked?i<0&&(t.ctxEmbedCompactMode=s.concat([null])):i>-1&&(t.ctxEmbedCompactMode=s.slice(0,i).concat(s.slice(i+1)))}else t.ctxEmbedCompactMode=a}}}),t._v(" "),s("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(" "),s("hr"),t._v(" "),s("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(" "),s("p",{staticClass:"mb-0 px-2 small text-muted"},[t._v("By using this embed, you agree to our "),s("a",{attrs:{href:"/site/terms"}},[t._v("Terms of Use")])])])]),t._v(" "),s("b-modal",{ref:"ctxReport",attrs:{id:"ctx-report","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group text-center"},[s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("spam")}}},[t._v("Spam")]),t._v(" "),s("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(" "),s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.openCtxReportOtherMenu()}}},[t._v("Other")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group text-center"},[s("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(" "),s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("impersonation")}}},[t._v("Impersonation")]),t._v(" "),s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportOtherMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),s("b-modal",{ref:"ctxConfirm",attrs:{id:"ctx-confirm","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"d-flex align-items-center justify-content-center py-3"},[s("div",[t._v(t._s(this.confirmModalTitle))])]),t._v(" "),s("div",{staticClass:"d-flex border-top btn-group btn-group-block rounded-0",attrs:{role:"group"}},[s("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(" "),s("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)},a=[]},37860:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>a});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"card shadow-none rounded-0",class:{border:t.showBorder,"border-top-0":!t.showBorderTop}},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"media"},[s("img",{staticClass:"rounded-circle box-shadow mr-2",attrs:{src:t.status.account.avatar,width:"32px",height:"32px",alt:"avatar"}}),t._v(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"pl-2 d-flex align-items-top"},[s("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(" "),s("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(" "),s("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(" "),s("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(" "),s("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(" "),s("span",{staticClass:"d-none d-md-block px-1 text-lighter font-weight-bold"},[t.status.poll.expired?s("span",[t._v("\n\t\t\t\t\t\t\t\tClosed\n\t\t\t\t\t\t\t")]):s("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(" "),s("span",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[s("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[s("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),s("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]),t._v(" "),s("div",{staticClass:"pl-2"},[s("div",{staticClass:"poll py-3"},[s("div",{staticClass:"pt-2 text-break d-flex align-items-center mb-3",staticStyle:{"font-size":"17px"}},[t._m(1),t._v(" "),s("span",{staticClass:"font-weight-bold ml-3",domProps:{innerHTML:t._s(t.status.content)}})]),t._v(" "),s("div",{staticClass:"mb-2"},["vote"===t.tab?s("div",[t._l(t.status.poll.options,(function(e,o){return s("p",[s("button",{staticClass:"btn btn-block lead rounded-pill",class:[o==t.selectedIndex?"btn-primary":"btn-outline-primary"],attrs:{disabled:!t.authenticated},on:{click:function(e){return t.selectOption(o)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.title)+"\n\t\t\t\t\t\t\t\t\t\t")])])})),t._v(" "),null!=t.selectedIndex?s("p",{staticClass:"text-right"},[s("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?s("div",t._l(t.status.poll.options,(function(e,o){return s("div",{staticClass:"mb-3"},[s("button",{staticClass:"btn btn-block lead rounded-pill",class:[o==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(e.title)+"\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("div",{staticClass:"font-weight-bold"},[s("span",{staticClass:"text-muted"},[t._v(t._s(t.calculatePercentage(e))+"%")]),t._v(" "),s("span",{staticClass:"small text-lighter"},[t._v("("+t._s(e.votes_count)+" "+t._s(1==e.votes_count?"vote":"votes")+")")])])])})),0):"results"===t.tab?s("div",t._l(t.status.poll.options,(function(e,o){return s("div",{staticClass:"mb-3"},[s("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(e.title)+"\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("div",{staticClass:"font-weight-bold"},[s("span",{staticClass:"text-muted"},[t._v(t._s(t.calculatePercentage(e))+"%")]),t._v(" "),s("span",{staticClass:"small text-lighter"},[t._v("("+t._s(e.votes_count)+" "+t._s(1==e.votes_count?"vote":"votes")+")")])])])})),0):t._e()]),t._v(" "),s("div",[s("p",{staticClass:"mb-0 small text-lighter font-weight-bold d-flex justify-content-between"},[s("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?s("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?s("span",{staticClass:"text-lighter"},[t._m(2)]):t._e()])]),t._v(" "),s("div",[s("span",{staticClass:"d-block d-md-none small text-lighter font-weight-bold"},[t.status.poll.expired?s("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tClosed\n\t\t\t\t\t\t\t\t\t")]):s("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(" "),s("context-menu",{ref:"contextMenu",attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1)},a=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("span",{staticClass:"d-none d-md-block px-1 text-primary font-weight-bold"},[s("i",{staticClass:"fas fa-poll-h"}),t._v(" Poll "),s("sup",{staticClass:"text-lighter"},[t._v("BETA")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"btn btn-primary px-2 py-1"},[e("i",{staticClass:"fas fa-poll-h fa-lg"})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])}]},91927:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>a});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"status-card-component",class:{"status-card-sm":"small"===t.size}},["text"===t.status.pf_type?s("div",{staticClass:"card shadow-none border rounded-0",class:{"border-top-0":!t.hasTopBorder}},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"media"},[s("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(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"pl-2 d-flex align-items-top"},[s("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("\n\t\t\t\t\t\t\tLoading...\n\t\t\t\t\t\t")]),t._v(" "),s("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(" "),s("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(" "),s("span",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[s("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[s("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),s("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]),t._v(" "),s("div",{staticClass:"pl-2"},[t.status.sensitive?s("details",[s("summary",{staticClass:"mb-2 font-weight-bold text-muted"},[t._v("Content Warning")]),t._v(" "),s("p",{staticClass:"pt-2 text-break status-content",domProps:{innerHTML:t._s(t.status.content)}})]):s("p",{staticClass:"pt-2 text-break status-content",domProps:{innerHTML:t._s(t.status.content)}}),t._v(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("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?s("div",[s("poll-card",{attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1):s("div",{staticClass:"card rounded-0 border-top-0 status-card card-md-rounded-0 shadow-none border"},[t.status?s("div",{staticClass:"card-header d-inline-flex align-items-center bg-white"},[s("div",[s("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(" "),s("div",{staticClass:"pl-2"},[s("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("\n\t\t\t\t\tLoading...\n\t\t\t\t")]),t._v(" "),t.status.account.is_admin?s("span",{staticClass:"fa-stack",staticStyle:{height:"1em","line-height":"1em","max-width":"19px"},attrs:{title:"Admin Account","data-toggle":"tooltip"}},[s("i",{staticClass:"fas fa-certificate text-danger fa-stack-1x"}),t._v(" "),s("i",{staticClass:"fas fa-crown text-white fa-sm fa-stack-1x",staticStyle:{"font-size":"7px"}})]):t._e(),t._v(" "),s("div",{staticClass:"d-flex align-items-center"},[t.status.place?s("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"}},[s("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(" "),t.canFollow(t.status)?s("div",[s("span",{staticClass:"px-2"}),t._v(" "),s("button",{staticClass:"btn btn-primary btn-sm font-weight-bold py-1 px-3 rounded-lg",on:{click:function(e){return t.follow(t.status.account.id)}}},[s("i",{staticClass:"far fa-user-plus mr-1"}),t._v(" Follow")])]):t._e(),t._v(" "),t.status.hasOwnProperty("relationship")&&t.status.relationship.hasOwnProperty("following")&&t.status.relationship.following?s("div",[s("span",{staticClass:"px-2"}),t._v(" "),s("button",{staticClass:"btn btn-outline-primary btn-sm font-weight-bold py-1 px-3 rounded-lg",on:{click:function(e){return t.unfollow(t.status.account.id)}}},[s("i",{staticClass:"far fa-user-check mr-1"}),t._v(" Following")])]):t._e(),t._v(" "),s("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[s("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[s("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),s("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]):t._e(),t._v(" "),s("div",{staticClass:"postPresenterContainer",staticStyle:{background:"#000"}},["photo"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):"video"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("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?s("div",{staticClass:"w-100"},[s("video-album-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("mixed-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):s("div",{staticClass:"w-100"},[s("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?s("div",{staticClass:"card-body border-top border-bottom py-2 cursor-pointer pr-2",on:{click:function(e){return t.labelRedirect()}}},[s("p",{staticClass:"font-weight-bold d-flex justify-content-between align-items-center mb-0"},[s("span",[s("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(" "),s("div",{staticClass:"card-body"},[t.reactionBar?s("div",{staticClass:"reactions my-1 pb-2"},[t.status.favourited?s("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)}}}):s("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():s("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?s("span",{staticClass:"float-right"},[s("span",{staticClass:"font-weight-light small",staticStyle:{color:"#718096"}},[s("i",{staticClass:"far fa-user",attrs:{"data-toggle":"tooltip",title:"Tagged People"}}),t._v(" "),t._l(t.status.taggedPeople,(function(t,e){return s("span",{staticClass:"mr-n2"},[s("a",{attrs:{href:"/"+t.username}},[s("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?s("div",{staticClass:"likes mb-1"},[s("span",{staticClass:"like-count"},[t._v("Liked by\n\t\t\t\t\t"),s("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?s("span",[t._v("\n\t\t\t\t\t\tand "),t.status.liked_by.total_count_pretty?s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.status.liked_by.total_count_pretty))]):t._e(),t._v(" "),s("span",{staticClass:"font-weight-bold"},[t._v("others")])]):t._e()])]):t._e(),t._v(" "),"text"!=t.status.pf_type?s("div",{staticClass:"caption"},[t.status.sensitive?t._e():s("p",{staticClass:"mb-2 read-more",staticStyle:{overflow:"hidden"}},[s("span",{staticClass:"username font-weight-bold"},[s("bdi",[s("a",{staticClass:"text-dark",attrs:{href:t.profileUrl(t.status)}},[t._v(t._s(t.status.account.username))])])]),t._v(" "),s("span",{staticClass:"status-content",domProps:{innerHTML:t._s(t.content)}})])]):t._e(),t._v(" "),s("div",{staticClass:"timestamp mt-2"},[s("p",{staticClass:"small mb-0"},["archived"!=t.status.visibility?s("a",{staticClass:"text-muted text-uppercase",attrs:{href:t.statusUrl(t.status)}},[s("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):s("span",{staticClass:"text-muted text-uppercase"},[t._v("\n\t\t\t\t\t\tPosted "),s("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?s("span",[s("span",{staticClass:"px-1"},[t._v("·")]),t._v(" "),s("span",{staticClass:"text-muted"},[t._v("Based on popular and trending content")])]):t._e()])])])]),t._v(" "),s("context-menu",{ref:"contextMenu",attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1)},a=[function(){var t=this.$createElement,e=this._self._c||t;return e("span",[e("i",{staticClass:"fas fa-chevron-right text-lighter"})])}]},2999:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>a});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",[s("details",{staticClass:"details-animated"},[s("summary",[s("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(" "),s("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),s("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(e,o){return s("b-carousel-slide",{key:e.id+"-media"},["video"==e.type?s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:e.description,width:"100%",height:"100%",poster:e.preview_url},slot:"img"},[s("source",{attrs:{src:e.url,type:e.mime}})]):"image"==e.type?s("div",{attrs:{slot:"img",title:e.description},slot:"img"},[s("img",{class:e.filter_class+" d-block img-fluid w-100",attrs:{src:e.url,alt:e.description,loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})]):s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])})),1)],1)]):s("div",{staticClass:"w-100 h-100 p-0"},[s("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(e,o){return s("slide",{key:"px-carousel-"+e.id+"-"+o,staticClass:"w-100 h-100 d-block mx-auto text-center",staticStyle:{background:"#000",display:"flex","align-items":"center"}},["video"==e.type?s("video",{staticClass:"embed-responsive-item",attrs:{preload:"none",controls:"",loop:"",title:e.description,width:"100%",height:"100%",poster:e.preview_url}},[s("source",{attrs:{src:e.url,type:e.mime}})]):"image"==e.type?s("div",{attrs:{title:e.description}},[s("img",{class:e.filter_class+" img-fluid w-100",attrs:{src:e.url,alt:e.description,loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})]):s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])})),1)],1)},a=[]},21761:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>a});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",{staticClass:"content-label-wrapper"},[s("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),s("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),s("p",{staticClass:"text-center py-2"},[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(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):s("div",{staticClass:"w-100 h-100 p-0"},[s("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(e,o){return s("slide",{key:"px-carousel-"+e.id+"-"+o,staticStyle:{background:"#000",display:"flex","align-items":"center"},attrs:{title:e.description}},[s("img",{class:e.filter_class+" img-fluid w-100 p-0",attrs:{src:e.url,alt:t.altText(e),loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}}),t._v(" "),!t.status.sensitive&&t.sensitive?s("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}}},[s("i",{staticClass:"fas fa-eye-slash fa-lg"})]):t._e(),t._v(" "),t.status.media_attachments[0].license?s("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))"}},[s("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.url}},[t._v("Photo")]),t._v(" by "),s("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 "),s("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)],1)},a=[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])}]},65654:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>a});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",{staticClass:"content-label-wrapper"},[s("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),s("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),s("p",{staticClass:"text-center py-2"},[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(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):s("div",[s("div",{staticStyle:{position:"relative"},attrs:{title:t.status.media_attachments[0].description}},[s("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?s("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}}},[s("i",{staticClass:"fas fa-eye-slash fa-lg"})]):t._e(),t._v(" "),t.status.media_attachments[0].license?s("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))"}},[s("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.url}},[t._v("Photo")]),t._v(" by "),s("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 "),s("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()])])},a=[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])}]},7592:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>a});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",[s("details",{staticClass:"details-animated"},[s("summary",[s("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(" "),s("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),s("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,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:t.description,width:"100%",height:"100%",poster:t.preview_url},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)]):s("div",[s("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,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:t.description,width:"100%",height:"100%",poster:t.preview_url},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)},a=[]},53678:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>a});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",{staticClass:"content-label-wrapper"},[s("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),s("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),s("p",{staticClass:"text-center py-2"},[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(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):s("div",{staticClass:"embed-responsive embed-responsive-16by9"},[s("video",{staticClass:"video",attrs:{controls:"",playsinline:"",preload:"metadata",loop:"",poster:t.status.media_attachments[0].preview_url,"data-id":t.status.id}},[s("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])},a=[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])}]}},t=>{t.O(0,[898],(()=>{return e=4291,t(t.s=e);var e}));t.O()}]); \ No newline at end of file +(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[912],{14425:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(19755);const a={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"),o("#mt_pid_"+this.status.id).modal("hide")},hidePost:function(t){t.sensitive=!0,o("#mt_pid_"+t.id).modal("hide")},moderatePost:function(t,e,s){var o=t.account.username;switch(e){case"autocw":var a="Are you sure you want to enforce CW for "+o+" ?";swal({title:"Confirm",text:a,icon:"warning",buttons:!0,dangerMode:!0});break;case"suspend":a="Are you sure you want to suspend the account of "+o+" ?",swal({title:"Confirm",text:a,icon:"warning",buttons:!0,dangerMode:!0})}},muteProfile:function(t){0!=o("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!=o("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(){o("#mt_pid_"+this.status.id).modal("hide")}}}},79466:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});s(82364);var o=s(19210),a=s(19755);function i(t){return function(t){if(Array.isArray(t))return n(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 n(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return n(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 n(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,o=new Array(e);s0})),o=s.map((function(t){return t.id}));t.ids=o,t.min_id=Math.max.apply(Math,i(o)),t.max_id=Math.min.apply(Math,i(o)),t.modalStatus=_.first(e.data),t.timeline=s,t.ownerCheck(),t.loading=!1})).catch((function(t){swal("Oops, something went wrong","Please release the page.","error")}))},ownerCheck:function(){0!=a("body").hasClass("loggedIn")?this.owner=this.profile.id===this.user.id:this.owner=!1},infiniteTimeline:function(t){var e=this;if(this.loading||this.timeline.length<9)t.complete();else{var s="/api/pixelfed/v1/accounts/"+this.profileId+"/statuses";axios.get(s,{params:{only_media:!0,max_id:this.max_id}}).then((function(s){if(s.data.length&&0==e.loading){var o=s.data,a=e;o.forEach((function(t){-1==a.ids.indexOf(t.id)&&(a.timeline.push(t),a.ids.push(t.id))}));var n=Math.min.apply(Math,i(e.ids));if(n==e.max_id)return void t.complete();e.min_id=Math.max.apply(Math,i(e.ids)),e.max_id=n,t.loaded(),e.loading=!1}else t.complete()}))}},previewUrl:function(t){return t.sensitive?"/storage/no-preview.png?v="+(new Date).getTime():t.media_attachments[0].preview_url},previewBackground:function(t){return"background-image: url("+this.previewUrl(t)+");"},blurhHashMedia:function(t){return t.sensitive?null:t.media_attachments[0].preview_url},switchMode:function(t){if("grid"==t)this.mode=t;else if("bookmarks"==t&&this.bookmarks.length)this.mode="bookmarks";else{if("collections"!=t||!this.collections.length)return void(window.location.href="/"+this.profileUsername+"?m="+t);this.mode="collections"}},reportProfile:function(){var t=this.profile.id;window.location.href="/i/report?type=user&id="+t},reportUrl:function(t){return"/i/report?type="+(t.in_reply_to?"comment":"post")+"&id="+t.id},commentFocus:function(t,e){var s=event.target.parentElement.parentElement.parentElement,o=s.getElementsByClassName("comments")[0];0==o.children.length&&(o.classList.add("mb-2"),this.fetchStatusComments(t,s));var a=s.querySelectorAll(".card-footer")[0],i=s.querySelectorAll(".status-reply-input")[0];1==a.classList.contains("d-none")?(a.classList.remove("d-none"),i.focus()):(a.classList.add("d-none"),i.blur())},likeStatus:function(t,e){0!=a("body").hasClass("loggedIn")&&axios.post("/i/like",{item:t.id}).then((function(e){t.favourites_count=e.data.count,1==t.favourited?t.favourited=!1:t.favourited=!0})).catch((function(t){swal("Error","Something went wrong, please try again later.","error")}))},shareStatus:function(t,e){0!=a("body").hasClass("loggedIn")&&axios.post("/i/share",{item:t.id}).then((function(e){t.reblogs_count=e.data.count,1==t.reblogged?t.reblogged=!1:t.reblogged=!0})).catch((function(t){swal("Error","Something went wrong, please try again later.","error")}))},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},remoteRedirect:function(t){window.location.href=window.App.config.site.url+"/i/redirect?url="+encodeURIComponent(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 t.account.id==this.profile.id},fetchRelationships:function(){var t=this;0!=document.querySelectorAll("body")[0].classList.contains("loggedIn")&&axios.get("/api/pixelfed/v1/accounts/relationships",{params:{"id[]":this.profileId}}).then((function(e){e.data.length&&(t.relationship=e.data[0],1==e.data[0].blocking&&(t.warning=!0)),t.user.id!=t.profileId&&1!=t.relationship.following||axios.get("/api/web/stories/v1/exists/"+t.profileId).then((function(e){t.hasStory=1==e.data}))}))},muteProfile:function(){var t=this;if(0!=a("body").hasClass("loggedIn")){var e=this.profileId;axios.post("/i/mute",{type:"user",item:e}).then((function(e){t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully muted "+t.profile.acct,"success")})).catch((function(t){422==t.response.status?swal("Error",t.response.data.error,"error"):swal("Error","Something went wrong. Please try again later.","error")}))}},unmuteProfile:function(){var t=this;if(0!=a("body").hasClass("loggedIn")){var e=this.profileId;axios.post("/i/unmute",{type:"user",item:e}).then((function(e){t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully unmuted "+t.profile.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))}},blockProfile:function(){var t=this;if(0!=a("body").hasClass("loggedIn")){var e=this.profileId;axios.post("/i/block",{type:"user",item:e}).then((function(e){t.warning=!0,t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully blocked "+t.profile.acct,"success")})).catch((function(t){422==t.response.status?swal("Error",t.response.data.error,"error"):swal("Error","Something went wrong. Please try again later.","error")}))}},unblockProfile:function(){var t=this;if(0!=a("body").hasClass("loggedIn")){var e=this.profileId;axios.post("/i/unblock",{type:"user",item:e}).then((function(e){t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully unblocked "+t.profile.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))}},deletePost:function(t,e){var s=this;0!=a("body").hasClass("loggedIn")&&t.account.id===this.profile.id&&axios.post("/i/delete",{type:"status",item:t.id}).then((function(t){s.timeline.splice(e,1),swal("Success","You have successfully deleted this post","success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))},followProfile:function(){var t=this;0!=a("body").hasClass("loggedIn")&&axios.post("/i/follow",{item:this.profileId}).then((function(e){t.$refs.visitorContextMenu.hide(),t.relationship.following?(t.profile.followers_count--,1==t.profile.locked&&(window.location.href="/")):t.profile.followers_count++,t.relationship.following=!t.relationship.following})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))},followingModal:function(){var t=this;if(0!=a("body").hasClass("loggedIn")){if(0!=this.profileSettings.following.list)return this.followingCursor>1||axios.get("/api/pixelfed/v1/accounts/"+this.profileId+"/following",{params:{page:this.followingCursor}}).then((function(e){t.following=e.data,t.followingModalSearchCache=e.data,t.followingCursor++,e.data.length<10&&(t.followingMore=!1),t.followingLoading=!1})),void this.$refs.followingModal.show()}else window.location.href=encodeURI("/login?next=/"+this.profileUsername+"/")},followersModal:function(){var t=this;if(0!=a("body").hasClass("loggedIn")){if(0!=this.profileSettings.followers.list)return this.followerCursor>1||axios.get("/api/pixelfed/v1/accounts/"+this.profileId+"/followers",{params:{page:this.followerCursor}}).then((function(e){var s;(s=t.followers).push.apply(s,i(e.data)),t.followerCursor++,e.data.length<10&&(t.followerMore=!1),t.followerLoading=!1})),void this.$refs.followerModal.show()}else window.location.href=encodeURI("/login?next=/"+this.profileUsername+"/")},followingLoadMore:function(){var t=this;0!=a("body").hasClass("loggedIn")?axios.get("/api/pixelfed/v1/accounts/"+this.profile.id+"/following",{params:{page:this.followingCursor,fbu:this.followingModalSearch}}).then((function(e){var s;e.data.length>0&&((s=t.following).push.apply(s,i(e.data)),t.followingCursor++,t.followingModalSearchCache=t.following);e.data.length<10&&(t.followingModalSearchCache=t.following,t.followingMore=!1)})):window.location.href=encodeURI("/login?next=/"+this.profile.username+"/")},followersLoadMore:function(){var t=this;0!=a("body").hasClass("loggedIn")&&axios.get("/api/pixelfed/v1/accounts/"+this.profile.id+"/followers",{params:{page:this.followerCursor}}).then((function(e){var s;e.data.length>0&&((s=t.followers).push.apply(s,i(e.data)),t.followerCursor++);e.data.length<10&&(t.followerMore=!1)}))},visitorMenu:function(){this.$refs.visitorContextMenu.show()},followModalAction:function(t,e){var s=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"following";axios.post("/i/follow",{item:t}).then((function(t){"following"==o&&(s.following.splice(e,1),s.profile.following_count--)})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))},momentBackground:function(){var t="w-100 h-100 mt-n3 ";return this.profile.header_bg?t+="default"==this.profile.header_bg?"bg-pixelfed":"bg-moment-"+this.profile.header_bg:t+="bg-pixelfed",t},loadSponsor:function(){var t=this;axios.get("/api/local/profile/sponsor/"+this.profileId).then((function(e){t.sponsorList=e.data}))},showSponsorModal:function(){this.$refs.sponsorModal.show()},goBack:function(){return window.history.length>2?void window.history.back():void(window.location.href="/")},copyProfileLink:function(){navigator.clipboard.writeText(window.location.href),this.$refs.visitorContextMenu.hide()},formatCount:function(t){return App.util.format.count(t)},statusUrl:function(t){return t.url},profileUrl:function(t){return t.url},profileUrlRedirect:function(t){return 1==t.local?t.url:"/i/web/profile/_/"+t.id},showEmbedProfileModal:function(){this.ctxEmbedPayload=window.App.util.embed.profile(this.profile.url),this.$refs.visitorContextMenu.hide(),this.$refs.embedModal.show()},ctxCopyEmbed:function(){navigator.clipboard.writeText(this.ctxEmbedPayload),this.$refs.embedModal.hide(),this.$refs.visitorContextMenu.hide()},storyRedirect:function(){window.location.href="/stories/"+this.profileUsername+"?t=4"},followingModalSearchHandler:function(){var t=this,e=this,s=this.followingModalSearch;if(0==s.length&&(this.following=this.followingModalSearchCache,this.followingModalSearch=null),s.length>0){var o="/api/pixelfed/v1/accounts/"+e.profileId+"/following?page=1&fbu="+s;axios.get(o).then((function(e){t.following=e.data})).catch((function(t){e.following=e.followingModalSearchCache,e.followingModalSearch=null}))}},truncate:function(t,e){return _.truncate(t,{length:e})},formatWebsite:function(t){if("https://"===t.slice(0,8))t=t.substr(8);else{if("http://"!==t.slice(0,7))return void(this.profile.website=null);t=t.substr(7)}return this.truncate(t,60)},joinedAtFormat:function(t){return new Date(t).toDateString()},archivesInfiniteLoader:function(t){var e=this;axios.get("/api/pixelfed/v2/statuses/archives",{params:{page:this.archivesPage}}).then((function(s){var o;s.data.length?((o=e.archives).push.apply(o,i(s.data)),e.archivesPage++,t.loaded()):t.complete()}))}}}},53999:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(19755);const a={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 s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)},ctxEmbedShowLikes:function(t,e){1==t&&(this.ctxEmbedCompactMode=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)},ctxEmbedCompactMode:function(t,e){1==t&&(this.ctxEmbedShowCaption=!1,this.ctxEmbedShowLikes=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)}},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 s=t.ctxMenuStatus.account.acct;t.closeCtxMenu(),setTimeout((function(){swal("Follow successful!","You are now following "+s,"success")}),500)}))},ctxMenuUnfollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then((function(e){var s=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 "+s,"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,s=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(o){o?axios.post("/i/report/",{report:t,type:"post",id:s}).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,s){var o=this,a=(t.account.username,t.id,""),i=this;switch(e){case"addcw":a="Are you sure you want to add a content warning to this post?",swal({title:"Confirm",text:a,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&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":a="Are you sure you want to remove the content warning on this post?",swal({title:"Confirm",text:a,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&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":a="Are you sure you want to unlist this post?",swal({title:"Confirm",text:a,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(e){o.feed=o.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":a="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:a,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&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!=o("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!=o("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(s){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(s){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()}))}}}},55192:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(20415),a=s(19755);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":o.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";s.r(e),s.d(e,{default:()=>n});var o=s(20415),a=s(97622),i=s(19755);const n={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":o.default,"poll-card":a.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 s=''.concat(e.shortcode,'');t.content=t.content.replace(":".concat(e.shortcode,":"),s)}))},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,s=window.App.config.username.remote.custom,o=t.account.username,a=document.createElement("a");switch(a.href=t.account.url,a=a.hostname,e){case"@":default:return o+'@'+a+"";case"from":return o+' from '+a+"";case"custom":return o+' '+s+" "+a+""}},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 s=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=s,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 s=this;this.replySending=!0;var o=t.id,a=this.replyText,i=this.config.uploader.max_caption_length;if(a.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:o,comment:a,sensitive:this.replyNsfw}).then((function(t){s.replyText="",s.replies.push(t.data.entity),s.$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)},canFollow:function(t){return!!t.hasOwnProperty("relationship")&&(!(!t.hasOwnProperty("account")||!t.account.hasOwnProperty("id"))&&(t.account.id!=this.profile.id&&!t.relationship.following))},follow:function(t){var e=this;event.currentTarget.blur(),axios.post("/i/follow",{item:t}).then((function(s){e.status.relationship.following=!0,e.$emit("followed",t)})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))},unfollow:function(t){var e=this;event.currentTarget.blur(),axios.post("/i/follow",{item:t}).then((function(s){e.status.relationship.following=!1,e.$emit("unfollowed",t)})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))}}}},7768:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});const o={props:["status"]}},10578:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(30765),a=s.n(o);const i={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){a()({el:t.target})},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 s="backward";e.advancePage(s),e.$emit("navigation-click",s)}if("39"==t.keyCode){t.preventDefault();var o="forward";e.advancePage(o),e.$emit("navigation-click",o)}}}}},15464:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(30765),a=s.n(o);const i={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){a()({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}}}},63049:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});const o={props:["status"]}},67223:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});const o={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")}}}},4291:(t,e,s)=>{Vue.component("photo-presenter",s(23251).default),Vue.component("video-presenter",s(53973).default),Vue.component("photo-album-presenter",s(33872).default),Vue.component("video-album-presenter",s(76644).default),Vue.component("mixed-album-presenter",s(57374).default),Vue.component("post-menu",s(4086).default),Vue.component("profile",s(29279).default)},73196:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(23645),a=s.n(o)()((function(t){return t[1]}));a.push([t.id,".text-lighter[data-v-1002e7e2]{color:#b8c2cc!important}.modal-body[data-v-1002e7e2]{padding:0}",""]);const i=a},1844:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(23645),a=s.n(o)()((function(t){return t[1]}));a.push([t.id,".o-landscape[data-v-89e9aa84],.o-portrait[data-v-89e9aa84],.o-square[data-v-89e9aa84]{max-width:320px}.post-icon[data-v-89e9aa84]{color:#fff;margin-top:10px;opacity:.6;position:relative;text-shadow:3px 3px 16px #272634;z-index:9}.font-size-16px[data-v-89e9aa84]{font-size:16px}.profile-website[data-v-89e9aa84]{color:#003569;font-weight:600;text-decoration:none}.nav-topbar .nav-link[data-v-89e9aa84]{color:#999}.nav-topbar .nav-link .small[data-v-89e9aa84]{font-weight:600}.has-story[data-v-89e9aa84]{background:radial-gradient(ellipse at 70% 70%,#ee583f 8%,#d92d77 42%,#bd3381 58%);border-radius:50%;height:84px;padding:4px;width:84px}.has-story img[data-v-89e9aa84]{background:#fff;border-radius:50%;height:76px;padding:6px;width:76px}.has-story-lg[data-v-89e9aa84]{background:radial-gradient(ellipse at 70% 70%,#ee583f 8%,#d92d77 42%,#bd3381 58%);border-radius:50%;height:159px;padding:4px;width:159px}.has-story-lg img[data-v-89e9aa84]{background:#fff;border-radius:50%;height:150px;padding:6px;width:150px}.no-focus[data-v-89e9aa84]{border-color:none;box-shadow:none;outline:0}.modal-tab-active[data-v-89e9aa84]{border-bottom:1px solid #08d}.btn-sec-alt[data-v-89e9aa84]:hover{background-color:transparent;border-color:#6c757d;color:#ccc;opacity:.7}",""]);const i=a},28597:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(23645),a=s.n(o)()((function(t){return t[1]}));a.push([t.id,".card-img-top[data-v-1b12221c]{border-top-left-radius:0!important;border-top-right-radius:0!important}.content-label-wrapper[data-v-1b12221c]{position:relative}.content-label[data-v-1b12221c]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}",""]);const i=a},43125:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(23645),a=s.n(o)()((function(t){return t[1]}));a.push([t.id,".card-img-top[data-v-77d48172]{border-top-left-radius:0!important;border-top-right-radius:0!important}.content-label-wrapper[data-v-77d48172]{position:relative}.content-label[data-v-77d48172]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}",""]);const i=a},7077:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(23645),a=s.n(o)()((function(t){return t[1]}));a.push([t.id,".content-label-wrapper[data-v-6e29e1c6]{position:relative}.content-label[data-v-6e29e1c6]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}",""]);const i=a},59179:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(23645),a=s.n(o)()((function(t){return t[1]}));a.push([t.id,".status-card-component .status-content{font-size:17px}.status-card-component.status-card-sm .status-content{font-size:14px}.status-card-component.status-card-sm .fa-lg{font-size:unset;line-height:unset;vertical-align:unset}",""]);const i=a},91917:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var o=s(93379),a=s.n(o),i=s(73196),n={insert:"head",singleton:!1};a()(i.default,n);const r=i.default.locals||{}},86617:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var o=s(93379),a=s.n(o),i=s(1844),n={insert:"head",singleton:!1};a()(i.default,n);const r=i.default.locals||{}},27265:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var o=s(93379),a=s.n(o),i=s(28597),n={insert:"head",singleton:!1};a()(i.default,n);const r=i.default.locals||{}},2511:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var o=s(93379),a=s.n(o),i=s(43125),n={insert:"head",singleton:!1};a()(i.default,n);const r=i.default.locals||{}},31199:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var o=s(93379),a=s.n(o),i=s(7077),n={insert:"head",singleton:!1};a()(i.default,n);const r=i.default.locals||{}},43855:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var o=s(93379),a=s.n(o),i=s(59179),n={insert:"head",singleton:!1};a()(i.default,n);const r=i.default.locals||{}},4086:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(44843),a=s(10078),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);s(96021);const n=(0,s(51900).default)(a.default,o.render,o.staticRenderFns,!1,null,"1002e7e2",null).exports},29279:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(68443),a=s(33760),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);s(85506);const n=(0,s(51900).default)(a.default,o.render,o.staticRenderFns,!1,null,"89e9aa84",null).exports},20415:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(53242),a=s(25266),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const n=(0,s(51900).default)(a.default,o.render,o.staticRenderFns,!1,null,null,null).exports},97622:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(74454),a=s(97381),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const n=(0,s(51900).default)(a.default,o.render,o.staticRenderFns,!1,null,null,null).exports},19210:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(48661),a=s(71334),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);s(45101);const n=(0,s(51900).default)(a.default,o.render,o.staticRenderFns,!1,null,null,null).exports},57374:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(10650),a=s(4220),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const n=(0,s(51900).default)(a.default,o.render,o.staticRenderFns,!1,null,null,null).exports},33872:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(74762),a=s(10878),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);s(75152);const n=(0,s(51900).default)(a.default,o.render,o.staticRenderFns,!1,null,"1b12221c",null).exports},23251:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(42415),a=s(29911),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);s(12796);const n=(0,s(51900).default)(a.default,o.render,o.staticRenderFns,!1,null,"77d48172",null).exports},76644:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(63027),a=s(18411),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const n=(0,s(51900).default)(a.default,o.render,o.staticRenderFns,!1,null,null,null).exports},53973:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(59132),a=s(44976),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);s(81709);const n=(0,s(51900).default)(a.default,o.render,o.staticRenderFns,!1,null,"6e29e1c6",null).exports},10078:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(14425),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a);const i=o.default},33760:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(79466),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a);const i=o.default},25266:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(53999),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a);const i=o.default},97381:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(55192),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a);const i=o.default},71334:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(86637),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a);const i=o.default},4220:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(7768),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a);const i=o.default},10878:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(10578),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a);const i=o.default},29911:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(15464),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a);const i=o.default},18411:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(63049),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a);const i=o.default},44976:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(67223),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a);const i=o.default},96021:(t,e,s)=>{"use strict";s.r(e);var o=s(91917),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},85506:(t,e,s)=>{"use strict";s.r(e);var o=s(86617),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},75152:(t,e,s)=>{"use strict";s.r(e);var o=s(27265),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},12796:(t,e,s)=>{"use strict";s.r(e);var o=s(2511),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},81709:(t,e,s)=>{"use strict";s.r(e);var o=s(31199),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},45101:(t,e,s)=>{"use strict";s.r(e);var o=s(43855),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},44843:(t,e,s)=>{"use strict";s.r(e);var o=s(27257),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},68443:(t,e,s)=>{"use strict";s.r(e);var o=s(59461),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},53242:(t,e,s)=>{"use strict";s.r(e);var o=s(22372),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},74454:(t,e,s)=>{"use strict";s.r(e);var o=s(37860),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},48661:(t,e,s)=>{"use strict";s.r(e);var o=s(91927),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},10650:(t,e,s)=>{"use strict";s.r(e);var o=s(34812),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},74762:(t,e,s)=>{"use strict";s.r(e);var o=s(21761),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},42415:(t,e,s)=>{"use strict";s.r(e);var o=s(65654),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},63027:(t,e,s)=>{"use strict";s.r(e);var o=s(36310),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},59132:(t,e,s)=>{"use strict";s.r(e);var o=s(38508),a={};for(const t in o)"default"!==t&&(a[t]=()=>o[t]);s.d(e,a)},27257:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>a});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",["true"!=t.modal?s("div",{staticClass:"dropdown"},[s("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"}},[s("span",{class:["lg"==t.size?"fas fa-ellipsis-v fa-lg text-muted":"fas fa-ellipsis-v fa-sm text-lighter"]})]),t._v(" "),s("div",{staticClass:"dropdown-menu dropdown-menu-right"},[s("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)?s("span",[s("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)?s("span",[s("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(" "),s("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?s("span",[s("div",{staticClass:"dropdown-divider"}),t._v(" "),s("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(" "),s("div",{staticClass:"dropdown-divider"}),t._v(" "),s("h6",{staticClass:"dropdown-header"},[t._v("Mod Tools")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"autocw")}}},[s("p",{staticClass:"mb-0"},[t._v("Enforce CW")]),t._v(" "),t._m(0)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"noautolink")}}},[s("p",{staticClass:"mb-0"},[t._v("No Autolinking")]),t._v(" "),t._m(1)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"unlisted")}}},[s("p",{staticClass:"mb-0"},[t._v("Unlisted Posts")]),t._v(" "),t._m(2)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"disable")}}},[s("p",{staticClass:"mb-0"},[t._v("Disable Account")]),t._v(" "),t._m(3)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"suspend")}}},[s("p",{staticClass:"mb-0"},[t._v("Suspend Account")]),t._v(" "),t._m(4)])]):t._e()])]):t._e(),t._v(" "),"true"==t.modal?s("div",[s("span",{attrs:{"data-toggle":"modal","data-target":"#mt_pid_"+t.status.id}},[s("span",{class:["lg"==t.size?"fas fa-ellipsis-v fa-lg text-muted":"fas fa-ellipsis-v fa-sm text-lighter"]})]),t._v(" "),s("div",{staticClass:"modal",attrs:{tabindex:"-1",role:"dialog",id:"mt_pid_"+t.status.id}},[s("div",{staticClass:"modal-dialog modal-sm modal-dialog-centered",attrs:{role:"document"}},[s("div",{staticClass:"modal-content"},[s("div",{staticClass:"modal-body text-center"},[s("div",{staticClass:"list-group"},[s("a",{staticClass:"list-group-item text-dark text-decoration-none",attrs:{href:t.statusUrl(t.status)}},[t._v("Go to post")]),t._v(" "),s("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():s("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?s("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(" "),s("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()])},a=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0 small text-muted"},[t._v("Adds a CW to every post "),s("br"),t._v(" made by this account.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0 small text-muted"},[t._v("Do not transform mentions, "),s("br"),t._v(" hashtags or urls into HTML.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0 small text-muted"},[t._v("Removes account from "),s("br"),t._v(" public/network timelines.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0 small text-muted"},[t._v("Temporarily disable account "),s("br"),t._v(" until next time user log in.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0 small text-muted"},[t._v("This prevents any new interactions, "),s("br"),t._v(" without deleting existing data.")])}]},59461:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>a});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"w-100 h-100"},[t.isMobile?s("div",{staticClass:"bg-white p-3 border-bottom"},[s("div",{staticClass:"d-flex justify-content-between align-items-center"},[s("div",{staticClass:"cursor-pointer",on:{click:t.goBack}},[s("i",{staticClass:"fas fa-chevron-left fa-lg"})]),t._v(" "),s("div",{staticClass:"font-weight-bold"},[t._v("\n\t\t\t\t"+t._s(this.profileUsername)+"\n\n\t\t\t")]),t._v(" "),s("div",[s("a",{staticClass:"fas fa-ellipsis-v fa-lg text-muted text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.visitorMenu.apply(null,arguments)}}})])])]):t._e(),t._v(" "),t.relationship&&t.relationship.blocking&&t.warning?s("div",{staticClass:"bg-white pt-3 border-bottom"},[s("div",{staticClass:"container"},[s("p",{staticClass:"text-center font-weight-bold"},[t._v("You are blocking this account")]),t._v(" "),s("p",{staticClass:"text-center font-weight-bold"},[t._v("Click "),s("a",{staticClass:"cursor-pointer",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.warning=!1}}},[t._v("here")]),t._v(" to view profile")])])]):t._e(),t._v(" "),t.loading?s("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"80vh"}},[s("img",{attrs:{src:"/img/pixelfed-icon-grey.svg"}})]):t._e(),t._v(" "),t.loading||t.warning?t._e():s("div",["metro"==t.layout?s("div",{staticClass:"container"},[s("div",{class:t.isMobile?"pt-5":"pt-5 border-bottom"},[s("div",{staticClass:"container px-0"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 col-md-4 d-md-flex"},[s("div",{staticClass:"profile-avatar mx-md-auto"},[s("div",{staticClass:"d-block d-md-none mt-n3 mb-3"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-4"},[t.hasStory?s("div",{staticClass:"has-story cursor-pointer shadow-sm",on:{click:function(e){return t.storyRedirect()}}},[s("img",{staticClass:"rounded-circle",attrs:{alt:t.profileUsername+"'s profile picture",src:t.profile.avatar,width:"77px",height:"77px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0';"}})]):s("div",[s("img",{staticClass:"rounded-circle border",attrs:{alt:t.profileUsername+"'s profile picture",src:t.profile.avatar,width:"77px",height:"77px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0';"}})])]),t._v(" "),s("div",{staticClass:"col-8"},[s("div",{staticClass:"d-block d-md-none mt-3 py-2"},[s("ul",{staticClass:"nav d-flex justify-content-between"},[s("li",{staticClass:"nav-item"},[s("div",{staticClass:"font-weight-light"},[s("span",{staticClass:"text-dark text-center"},[s("p",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.formatCount(t.profile.statuses_count)))]),t._v(" "),s("p",{staticClass:"text-muted mb-0 small"},[t._v("Posts")])])])]),t._v(" "),s("li",{staticClass:"nav-item"},[t.profileSettings.followers.count?s("div",{staticClass:"font-weight-light"},[s("a",{staticClass:"text-dark cursor-pointer text-center",on:{click:function(e){return t.followersModal()}}},[s("p",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.formatCount(t.profile.followers_count)))]),t._v(" "),s("p",{staticClass:"text-muted mb-0 small"},[t._v("Followers")])])]):t._e()]),t._v(" "),s("li",{staticClass:"nav-item"},[t.profileSettings.following.count?s("div",{staticClass:"font-weight-light"},[s("a",{staticClass:"text-dark cursor-pointer text-center",on:{click:function(e){return t.followingModal()}}},[s("p",{staticClass:"font-weight-bold mb-0"},[t._v(t._s(t.formatCount(t.profile.following_count)))]),t._v(" "),s("p",{staticClass:"text-muted mb-0 small"},[t._v("Following")])])]):t._e()])])])])])]),t._v(" "),s("div",{staticClass:"d-none d-md-block pb-3"},[t.hasStory?s("div",{staticClass:"has-story-lg cursor-pointer shadow-sm",on:{click:function(e){return t.storyRedirect()}}},[s("img",{staticClass:"rounded-circle box-shadow cursor-pointer",attrs:{alt:t.profileUsername+"'s profile picture",src:t.profile.avatar,width:"150px",height:"150px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0';"}})]):s("div",[s("img",{staticClass:"rounded-circle box-shadow",attrs:{alt:t.profileUsername+"'s profile picture",src:t.profile.avatar,width:"150px",height:"150px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0';"}})]),t._v(" "),t.sponsorList.patreon||t.sponsorList.liberapay||t.sponsorList.opencollective?s("p",{staticClass:"text-center mt-3"},[s("button",{staticClass:"btn btn-outline-secondary font-weight-bold py-0",attrs:{type:"button"},on:{click:t.showSponsorModal}},[s("i",{staticClass:"fas fa-heart text-danger"}),t._v("\n\t\t\t\t\t\t\t\t\t\t\tDonate\n\t\t\t\t\t\t\t\t\t\t")])]):t._e()])])]),t._v(" "),s("div",{staticClass:"col-12 col-md-8 d-flex align-items-center"},[s("div",{staticClass:"profile-details"},[s("div",{staticClass:"d-none d-md-flex username-bar pb-3 align-items-center"},[s("span",{staticClass:"font-weight-ultralight h3 mb-0"},[t._v(t._s(t.profile.username))]),t._v(" "),t.profile.id!=t.user.id&&t.user.hasOwnProperty("id")?s("span",[1==t.relationship.following?s("span",{staticClass:"pl-4"},[s("a",{staticClass:"btn btn-outline-secondary font-weight-bold btn-sm py-1 text-dark mr-2 px-3 btn-sec-alt",staticStyle:{border:"1px solid #dbdbdb"},attrs:{href:"/account/direct/t/"+t.profile.id,"data-toggle":"tooltip",title:"Message"}},[t._v("Message")]),t._v(" "),s("button",{staticClass:"btn btn-outline-secondary font-weight-bold btn-sm py-1 text-dark btn-sec-alt",staticStyle:{border:"1px solid #dbdbdb"},attrs:{type:"button","data-toggle":"tooltip",title:"Unfollow"},on:{click:t.followProfile}},[s("i",{staticClass:"fas fa-user-check mx-3"})])]):t._e(),t._v(" "),t.relationship.following?t._e():s("span",{staticClass:"pl-4"},[s("button",{staticClass:"btn btn-primary font-weight-bold btn-sm py-1 px-3",attrs:{type:"button","data-toggle":"tooltip",title:"Follow"},on:{click:t.followProfile}},[t._v("Follow")])])]):t._e(),t._v(" "),t.owner&&t.user.hasOwnProperty("id")?s("span",{staticClass:"pl-4"},[s("a",{staticClass:"btn btn-outline-secondary btn-sm",staticStyle:{"font-weight":"600"},attrs:{href:"/settings/home"}},[t._v("Edit Profile")])]):t._e(),t._v(" "),s("span",{staticClass:"pl-4"},[s("a",{staticClass:"fas fa-ellipsis-h fa-lg text-dark text-decoration-none",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.visitorMenu.apply(null,arguments)}}})])]),t._v(" "),s("div",{staticClass:"font-size-16px"},[s("div",{staticClass:"d-none d-md-inline-flex profile-stats pb-3"},[s("div",{staticClass:"font-weight-light pr-5"},[s("span",{staticClass:"text-dark"},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatCount(t.profile.statuses_count)))]),t._v("\n\t\t\t\t\t\t\t\t\t\t\t\tPosts\n\t\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),t.profileSettings.followers.count?s("div",{staticClass:"font-weight-light pr-5"},[s("a",{staticClass:"text-dark cursor-pointer",on:{click:function(e){return t.followersModal()}}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatCount(t.profile.followers_count)))]),t._v("\n\t\t\t\t\t\t\t\t\t\t\t\tFollowers\n\t\t\t\t\t\t\t\t\t\t\t")])]):t._e(),t._v(" "),t.profileSettings.following.count?s("div",{staticClass:"font-weight-light"},[s("a",{staticClass:"text-dark cursor-pointer",on:{click:function(e){return t.followingModal()}}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.formatCount(t.profile.following_count)))]),t._v("\n\t\t\t\t\t\t\t\t\t\t\t\tFollowing\n\t\t\t\t\t\t\t\t\t\t\t")])]):t._e()]),t._v(" "),s("p",{staticClass:"d-flex align-items-center mb-1"},[s("span",{staticClass:"font-weight-bold mr-1"},[t._v(t._s(t.profile.display_name))]),t._v(" "),t.profile.pronouns?s("span",{staticClass:"text-muted small"},[t._v(t._s(t.profile.pronouns.join("/")))]):t._e()]),t._v(" "),t.profile.note?s("p",{staticClass:"mb-0",domProps:{innerHTML:t._s(t.profile.note)}}):t._e(),t._v(" "),t.profile.website?s("p",[s("a",{staticClass:"profile-website small",attrs:{href:t.profile.website,rel:"me external nofollow noopener",target:"_blank"}},[t._v(t._s(t.formatWebsite(t.profile.website)))])]):t._e(),t._v(" "),s("p",{staticClass:"d-flex small text-muted align-items-center"},[t.profile.is_admin?s("span",{staticClass:"btn btn-outline-danger btn-sm py-0 mr-3",attrs:{title:"Admin Account","data-toggle":"tooltip"}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\tAdmin\n\t\t\t\t\t\t\t\t\t\t")]):t._e(),t._v(" "),t.relationship&&t.relationship.followed_by?s("span",{staticClass:"btn btn-outline-muted btn-sm py-0 mr-3"},[t._v("Follows You")]):t._e(),t._v(" "),s("span",[t._v("\n\t\t\t\t\t\t\t\t\t\t\tJoined "+t._s(t.joinedAtFormat(t.profile.created_at))+"\n\t\t\t\t\t\t\t\t\t\t")])])])])])])])]),t._v(" "),s("div",{staticClass:"d-block d-md-none my-0 pt-3 border-bottom"},[t.user&&t.user.hasOwnProperty("id")?s("p",{staticClass:"pt-3"},[t.owner?s("button",{staticClass:"btn btn-outline-secondary bg-white btn-sm py-1 btn-block text-center font-weight-bold text-dark border border-lighter",on:{click:function(e){return e.preventDefault(),t.redirect("/settings/home")}}},[t._v("Edit Profile")]):t._e(),t._v(" "),!t.owner&&t.relationship.following?s("button",{staticClass:"btn btn-outline-secondary bg-white btn-sm py-1 px-5 font-weight-bold text-dark border border-lighter",on:{click:t.followProfile}},[t._v("   Unfollow   ")]):t._e(),t._v(" "),t.owner||t.relationship.following?t._e():s("button",{staticClass:"btn btn-primary btn-sm py-1 px-5 font-weight-bold",on:{click:t.followProfile}},[t._v(t._s(t.relationship.followed_by?"Follow Back":"     Follow     "))])]):t._e()]),t._v(" "),s("div",{},[s("ul",{staticClass:"nav nav-topbar d-flex justify-content-center border-0"},[s("li",{staticClass:"nav-item border-top"},[s("a",{class:"grid"==this.mode?"nav-link text-dark":"nav-link",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchMode("grid")}}},[s("i",{staticClass:"fas fa-th"}),t._v(" "),s("span",{staticClass:"d-none d-md-inline-block small pl-1"},[t._v("POSTS")])])]),t._v(" "),s("li",{staticClass:"nav-item px-0 border-top"},[s("a",{class:"collections"==this.mode?"nav-link text-dark":"nav-link",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchMode("collections")}}},[s("i",{staticClass:"fas fa-images"}),t._v(" "),s("span",{staticClass:"d-none d-md-inline-block small pl-1"},[t._v("COLLECTIONS")])])]),t._v(" "),t.owner?s("li",{staticClass:"nav-item border-top"},[s("a",{class:"bookmarks"==this.mode?"nav-link text-dark":"nav-link",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchMode("bookmarks")}}},[s("i",{staticClass:"fas fa-bookmark"}),t._v(" "),s("span",{staticClass:"d-none d-md-inline-block small pl-1"},[t._v("SAVED")])])]):t._e(),t._v(" "),t.owner?s("li",{staticClass:"nav-item border-top"},[s("a",{class:"archives"==this.mode?"nav-link text-dark":"nav-link",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchMode("archives")}}},[s("i",{staticClass:"far fa-folder-open"}),t._v(" "),s("span",{staticClass:"d-none d-md-inline-block small pl-1"},[t._v("ARCHIVES")])])]):t._e()])]),t._v(" "),s("div",{staticClass:"container px-0"},[s("div",{staticClass:"profile-timeline mt-md-4"},["grid"==t.mode?s("div",[s("div",{staticClass:"row"},[t._l(t.timeline,(function(e,o){return s("div",{key:"tlob:"+o,staticClass:"col-4 p-1 p-md-3"},[s("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:t.statusUrl(e)}},[s("div",{staticClass:"square"},[e.sensitive?s("div",{staticClass:"square-content"},[t._m(0,!0),t._v(" "),s("blur-hash-canvas",{attrs:{width:"32",height:"32",hash:e.media_attachments[0].blurhash}})],1):s("div",{staticClass:"square-content"},[s("blur-hash-image",{attrs:{width:"32",height:"32",hash:e.media_attachments[0].blurhash,src:e.media_attachments[0].preview_url}})],1),t._v(" "),"photo:album"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-images fa-2x"})]):t._e(),t._v(" "),"video"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-video fa-2x"})]):t._e(),t._v(" "),"video:album"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-film fa-2x"})]):t._e(),t._v(" "),s("div",{staticClass:"info-overlay-text"},[s("h5",{staticClass:"text-white m-auto font-weight-bold"},[s("span",[s("span",{staticClass:"far fa-comment fa-lg p-2 d-flex-inline"}),t._v(" "),s("span",{staticClass:"d-flex-inline"},[t._v(t._s(t.formatCount(e.reply_count)))])])])])])])])})),t._v(" "),0==t.timeline.length?s("div",{staticClass:"col-12"},[t._m(1)]):t._e()],2),t._v(" "),t.timeline.length?s("div",[s("infinite-loading",{on:{infinite:t.infiniteTimeline}},[s("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),s("div",{attrs:{slot:"no-results"},slot:"no-results"})])],1):t._e()]):t._e(),t._v(" "),"bookmarks"==t.mode?s("div",[t.bookmarksLoading?s("div",[t._m(2)]):s("div",[t.bookmarks.length?s("div",{staticClass:"row"},t._l(t.bookmarks,(function(e,o){return s("div",{staticClass:"col-4 p-1 p-sm-2 p-md-3"},[s("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:e.url}},[s("div",{staticClass:"square"},["photo:album"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-images fa-2x"})]):t._e(),t._v(" "),"video"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-video fa-2x"})]):t._e(),t._v(" "),"video:album"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-film fa-2x"})]):t._e(),t._v(" "),s("div",{staticClass:"square-content",style:t.previewBackground(e)}),t._v(" "),s("div",{staticClass:"info-overlay-text"},[s("h5",{staticClass:"text-white m-auto font-weight-bold"},[s("span",[s("span",{staticClass:"fas fa-retweet fa-lg p-2 d-flex-inline"}),t._v(" "),s("span",{staticClass:"d-flex-inline"},[t._v(t._s(e.reblogs_count))])])])])])])])})),0):s("div",{staticClass:"col-12"},[t._m(3)])])]):t._e(),t._v(" "),"collections"==t.mode?s("div",[t.collections.length&&t.collectionsLoaded?s("div",{staticClass:"row"},t._l(t.collections,(function(t,e){return s("div",{staticClass:"col-4 p-1 p-sm-2 p-md-3"},[s("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:t.url}},[s("div",{staticClass:"square"},[s("div",{staticClass:"square-content",style:"background-image: url("+t.thumb+");"})])])])})),0):s("div",[t._m(4)])]):t._e(),t._v(" "),"archives"==t.mode?s("div",[t.archives.length?s("div",{staticClass:"col-12 col-md-8 offset-md-2 px-0 mb-sm-3 timeline mt-5"},[t._m(5),t._v(" "),t._l(t.archives,(function(t,e){return s("div",[s("status-card",{class:{"border-top":0===e},attrs:{status:t,"reaction-bar":!1}})],1)})),t._v(" "),s("infinite-loading",{on:{infinite:t.archivesInfiniteLoader}},[s("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),s("div",{attrs:{slot:"no-results"},slot:"no-results"})])],2):t._e()]):t._e()])])]):t._e()]),t._v(" "),t.profile&&t.following?s("b-modal",{ref:"followingModal",attrs:{id:"following-modal","hide-footer":"",centered:"",scrollable:"",title:"Following","body-class":"list-group-flush py-3 px-0","dialog-class":"follow-modal"}},[t.followingLoading?s("div",{staticClass:"text-center py-5"},[s("div",{staticClass:"spinner-border",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])]):s("div",{staticClass:"list-group",staticStyle:{"max-height":"60vh"}},[t.following.length?s("div",[1==t.owner?s("div",{staticClass:"list-group-item border-0 pt-0 px-0 mt-n2 mb-3"},[s("span",{staticClass:"d-flex px-4 pb-0 align-items-center"},[s("i",{staticClass:"fas fa-search text-lighter"}),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.followingModalSearch,expression:"followingModalSearch"}],staticClass:"form-control border-0 shadow-0 no-focus",attrs:{type:"text",placeholder:"Search Following..."},domProps:{value:t.followingModalSearch},on:{keyup:t.followingModalSearchHandler,input:function(e){e.target.composing||(t.followingModalSearch=e.target.value)}}})])]):t._e(),t._v(" "),t._l(t.following,(function(e,o){return s("div",{key:"following_"+o,staticClass:"list-group-item border-0 py-1 mb-1"},[s("div",{staticClass:"media"},[s("a",{attrs:{href:t.profileUrlRedirect(e)}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px",loading:"lazy",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0'"}})]),t._v(" "),s("div",{staticClass:"media-body text-truncate"},[s("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:t.profileUrlRedirect(e)}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),e.local?s("p",{staticClass:"text-muted mb-0 text-truncate",staticStyle:{"font-size":"14px"}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.display_name?e.display_name:e.username)+"\n\t\t\t\t\t\t\t")]):s("p",{staticClass:"text-muted mb-0 text-break mr-3",staticStyle:{"font-size":"14px"},attrs:{title:e.acct,"data-toggle":"dropdown","data-placement":"bottom"}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(e.acct.split("@")[0]))]),s("span",{staticClass:"text-lighter"},[t._v("@"+t._s(e.acct.split("@")[1]))])])]),t._v(" "),t.owner?s("div",[s("a",{staticClass:"btn btn-outline-dark btn-sm font-weight-bold",attrs:{href:"#"},on:{click:function(s){return s.preventDefault(),t.followModalAction(e.id,o,"following")}}},[t._v("Following")])]):t._e()])])})),t._v(" "),t.followingModalSearch&&0==t.following.length?s("div",{staticClass:"list-group-item border-0"},[s("div",{staticClass:"list-group-item border-0 pt-5"},[s("p",{staticClass:"p-3 text-center mb-0 lead"},[t._v("No Results Found")])])]):t._e(),t._v(" "),t.following.length>0&&t.followingMore?s("div",{staticClass:"list-group-item text-center",on:{click:function(e){return t.followingLoadMore()}}},[s("p",{staticClass:"mb-0 small text-muted font-weight-light cursor-pointer"},[t._v("Load more")])]):t._e()],2):s("div",{staticClass:"list-group-item border-0"},[s("p",{staticClass:"text-center mb-0 font-weight-bold text-muted py-5"},[s("span",{staticClass:"text-dark"},[t._v(t._s(t.profileUsername))]),t._v(" is not following yet")])])])]):t._e(),t._v(" "),s("b-modal",{ref:"followerModal",attrs:{id:"follower-modal","hide-footer":"",centered:"",scrollable:"",title:"Followers","body-class":"list-group-flush py-3 px-0","dialog-class":"follow-modal"}},[t.followerLoading?s("div",{staticClass:"text-center py-5"},[s("div",{staticClass:"spinner-border",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])]):s("div",{staticClass:"list-group",staticStyle:{"max-height":"60vh"}},[t.followers.length?s("div",[t._l(t.followers,(function(e,o){return s("div",{key:"follower_"+o,staticClass:"list-group-item border-0 py-1 mb-1"},[s("div",{staticClass:"media mb-0"},[s("a",{attrs:{href:t.profileUrlRedirect(e)}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px",height:"30px",loading:"lazy",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0'"}})]),t._v(" "),s("div",{staticClass:"media-body mb-0"},[s("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:t.profileUrlRedirect(e)}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),e.local?s("p",{staticClass:"text-muted mb-0 text-truncate",staticStyle:{"font-size":"14px"}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.display_name?e.display_name:e.username)+"\n\t\t\t\t\t\t\t")]):s("p",{staticClass:"text-muted mb-0 text-break mr-3",staticStyle:{"font-size":"14px"},attrs:{title:e.acct,"data-toggle":"dropdown","data-placement":"bottom"}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(e.acct.split("@")[0]))]),s("span",{staticClass:"text-lighter"},[t._v("@"+t._s(e.acct.split("@")[1]))])])])])])})),t._v(" "),t.followers.length&&t.followerMore?s("div",{staticClass:"list-group-item text-center",on:{click:function(e){return t.followersLoadMore()}}},[s("p",{staticClass:"mb-0 small text-muted font-weight-light cursor-pointer"},[t._v("Load more")])]):t._e()],2):s("div",{staticClass:"list-group-item border-0"},[s("p",{staticClass:"text-center mb-0 font-weight-bold text-muted py-5"},[s("span",{staticClass:"text-dark"},[t._v(t._s(t.profileUsername))]),t._v(" has no followers yet")])])])]),t._v(" "),s("b-modal",{ref:"visitorContextMenu",attrs:{id:"visitor-context-menu","hide-footer":"","hide-header":"",centered:"",size:"sm","body-class":"list-group-flush p-0"}},[t.relationship?s("div",{staticClass:"list-group"},[s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.copyProfileLink}},[t._v("\n\t\t\t\tCopy Link\n\t\t\t")]),t._v(" "),0==t.profile.locked?s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.showEmbedProfileModal}},[t._v("\n\t\t\t\tEmbed\n\t\t\t")]):t._e(),t._v(" "),!t.user||t.owner||t.relationship.following?t._e():s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.followProfile}},[t._v("\n\t\t\t\tFollow\n\t\t\t")]),t._v(" "),t.user&&!t.owner&&t.relationship.following?s("div",{staticClass:"list-group-item cursor-pointer text-center rounded",on:{click:t.followProfile}},[t._v("\n\t\t\t\tUnfollow\n\t\t\t")]):t._e(),t._v(" "),!t.user||t.owner||t.relationship.muting?t._e():s("div",{staticClass:"list-group-item cursor-pointer text-center rounded",on:{click:t.muteProfile}},[t._v("\n\t\t\t\tMute\n\t\t\t")]),t._v(" "),t.user&&!t.owner&&t.relationship.muting?s("div",{staticClass:"list-group-item cursor-pointer text-center rounded",on:{click:t.unmuteProfile}},[t._v("\n\t\t\t\tUnmute\n\t\t\t")]):t._e(),t._v(" "),t.user&&!t.owner?s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.reportProfile}},[t._v("\n\t\t\t\tReport User\n\t\t\t")]):t._e(),t._v(" "),!t.user||t.owner||t.relationship.blocking?t._e():s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.blockProfile}},[t._v("\n\t\t\t\tBlock\n\t\t\t")]),t._v(" "),t.user&&!t.owner&&t.relationship.blocking?s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.unblockProfile}},[t._v("\n\t\t\t\tUnblock\n\t\t\t")]):t._e(),t._v(" "),t.user&&t.owner?s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:function(e){return t.redirect("/settings/home")}}},[t._v("\n\t\t\t\tSettings\n\t\t\t")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:function(e){return t.redirect("/users/"+t.profileUsername+".atom")}}},[t._v("\n\t\t\t\tAtom Feed\n\t\t\t")]),t._v(" "),s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-muted font-weight-bold",on:{click:function(e){return t.$refs.visitorContextMenu.hide()}}},[t._v("\n\t\t\t\tClose\n\t\t\t")])]):t._e()]),t._v(" "),s("b-modal",{ref:"sponsorModal",attrs:{id:"sponsor-modal","hide-footer":"",title:"Sponsor "+t.profileUsername,centered:"",size:"md","body-class":"px-5"}},[s("div",[s("p",{staticClass:"font-weight-bold"},[t._v("External Links")]),t._v(" "),t.sponsorList.patreon?s("p",{staticClass:"pt-2"},[s("a",{staticClass:"font-weight-bold",attrs:{href:"https://"+t.sponsorList.patreon,rel:"nofollow"}},[t._v(t._s(t.sponsorList.patreon))])]):t._e(),t._v(" "),t.sponsorList.liberapay?s("p",{staticClass:"pt-2"},[s("a",{staticClass:"font-weight-bold",attrs:{href:"https://"+t.sponsorList.liberapay,rel:"nofollow"}},[t._v(t._s(t.sponsorList.liberapay))])]):t._e(),t._v(" "),t.sponsorList.opencollective?s("p",{staticClass:"pt-2"},[s("a",{staticClass:"font-weight-bold",attrs:{href:"https://"+t.sponsorList.opencollective,rel:"nofollow"}},[t._v(t._s(t.sponsorList.opencollective))])]):t._e()])]),t._v(" "),s("b-modal",{ref:"embedModal",attrs:{id:"ctx-embed-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"md","body-class":"p-2 rounded"}},[s("div",[s("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:"6",disabled:""},domProps:{value:t.ctxEmbedPayload},on:{input:function(e){e.target.composing||(t.ctxEmbedPayload=e.target.value)}}}),t._v(" "),s("hr"),t._v(" "),s("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(" "),s("p",{staticClass:"mb-0 px-2 small text-muted"},[t._v("By using this embed, you agree to our "),s("a",{attrs:{href:"/site/terms"}},[t._v("Terms of Use")])])])])],1)},a=[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"info-overlay-text-label"},[e("h5",{staticClass:"text-white m-auto font-weight-bold"},[e("span",[e("span",{staticClass:"far fa-eye-slash fa-lg p-2 d-flex-inline"})])])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"py-5 text-center text-muted"},[s("p",[s("i",{staticClass:"fas fa-camera-retro fa-2x"})]),t._v(" "),s("p",{staticClass:"h2 font-weight-light pt-3"},[t._v("No posts yet")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"p-1 p-sm-2 p-md-3 d-flex justify-content-center align-items-center",staticStyle:{height:"30vh"}},[e("img",{attrs:{src:"/img/pixelfed-icon-grey.svg"}})])])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"py-5 text-center text-muted"},[s("p",[s("i",{staticClass:"fas fa-bookmark fa-2x"})]),t._v(" "),s("p",{staticClass:"h2 font-weight-light pt-3"},[t._v("No saved bookmarks")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"py-5 text-center text-muted"},[s("p",[s("i",{staticClass:"fas fa-images fa-2x"})]),t._v(" "),s("p",{staticClass:"h2 font-weight-light pt-3"},[t._v("No collections yet")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"alert alert-info"},[s("p",{staticClass:"mb-0"},[t._v("Posts you archive can only be seen by you.")]),t._v(" "),s("p",{staticClass:"mb-0"},[t._v("For more information see the "),s("a",{attrs:{href:"/site/kb/sharing-media"}},[t._v("Sharing Media")]),t._v(" help center page.")])])}]},22372:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>a});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modal-stack"},[s("b-modal",{ref:"ctxModal",attrs:{id:"ctx-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"list-group text-center"},["archived"!==t.status.visibility?s("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?s("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?s("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?s("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?s("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?s("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?s("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?s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxMenu()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("div",{staticClass:"list-group text-center"},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("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?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"remcw")}}},[t._v("Remove Content Warning")]):s("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(" "),s("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"),s("br"),t._v(" "),s("span",{staticClass:"small"},[t._v("Unlist + CW existing and future posts")])]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("div",{staticClass:"list-group text-center"},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Unlist Posts")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Moderation Log")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModOtherMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("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(" "),s("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?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuEmbed()}}},[t._v("Embed")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxShareMenu()}}},[t._v("Cancel")])]),t._v(" "),s("b-modal",{ref:"ctxEmbedModal",attrs:{id:"ctx-embed-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"md","body-class":"p-2 rounded"}},[s("div",[s("div",{staticClass:"form-group"},[s("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(" "),s("div",{staticClass:"form-group pl-2 d-flex justify-content-center"},[s("div",{staticClass:"form-check mr-3"},[s("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 s=t.ctxEmbedShowCaption,o=e.target,a=!!o.checked;if(Array.isArray(s)){var i=t._i(s,null);o.checked?i<0&&(t.ctxEmbedShowCaption=s.concat([null])):i>-1&&(t.ctxEmbedShowCaption=s.slice(0,i).concat(s.slice(i+1)))}else t.ctxEmbedShowCaption=a}}}),t._v(" "),s("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(" "),s("div",{staticClass:"form-check mr-3"},[s("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 s=t.ctxEmbedShowLikes,o=e.target,a=!!o.checked;if(Array.isArray(s)){var i=t._i(s,null);o.checked?i<0&&(t.ctxEmbedShowLikes=s.concat([null])):i>-1&&(t.ctxEmbedShowLikes=s.slice(0,i).concat(s.slice(i+1)))}else t.ctxEmbedShowLikes=a}}}),t._v(" "),s("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(" "),s("div",{staticClass:"form-check"},[s("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 s=t.ctxEmbedCompactMode,o=e.target,a=!!o.checked;if(Array.isArray(s)){var i=t._i(s,null);o.checked?i<0&&(t.ctxEmbedCompactMode=s.concat([null])):i>-1&&(t.ctxEmbedCompactMode=s.slice(0,i).concat(s.slice(i+1)))}else t.ctxEmbedCompactMode=a}}}),t._v(" "),s("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(" "),s("hr"),t._v(" "),s("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(" "),s("p",{staticClass:"mb-0 px-2 small text-muted"},[t._v("By using this embed, you agree to our "),s("a",{attrs:{href:"/site/terms"}},[t._v("Terms of Use")])])])]),t._v(" "),s("b-modal",{ref:"ctxReport",attrs:{id:"ctx-report","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group text-center"},[s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("spam")}}},[t._v("Spam")]),t._v(" "),s("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(" "),s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.openCtxReportOtherMenu()}}},[t._v("Other")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group text-center"},[s("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(" "),s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("impersonation")}}},[t._v("Impersonation")]),t._v(" "),s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportOtherMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),s("b-modal",{ref:"ctxConfirm",attrs:{id:"ctx-confirm","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"d-flex align-items-center justify-content-center py-3"},[s("div",[t._v(t._s(this.confirmModalTitle))])]),t._v(" "),s("div",{staticClass:"d-flex border-top btn-group btn-group-block rounded-0",attrs:{role:"group"}},[s("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(" "),s("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)},a=[]},37860:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>a});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"card shadow-none rounded-0",class:{border:t.showBorder,"border-top-0":!t.showBorderTop}},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"media"},[s("img",{staticClass:"rounded-circle box-shadow mr-2",attrs:{src:t.status.account.avatar,width:"32px",height:"32px",alt:"avatar"}}),t._v(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"pl-2 d-flex align-items-top"},[s("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(" "),s("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(" "),s("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(" "),s("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(" "),s("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(" "),s("span",{staticClass:"d-none d-md-block px-1 text-lighter font-weight-bold"},[t.status.poll.expired?s("span",[t._v("\n\t\t\t\t\t\t\t\tClosed\n\t\t\t\t\t\t\t")]):s("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(" "),s("span",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[s("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[s("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),s("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]),t._v(" "),s("div",{staticClass:"pl-2"},[s("div",{staticClass:"poll py-3"},[s("div",{staticClass:"pt-2 text-break d-flex align-items-center mb-3",staticStyle:{"font-size":"17px"}},[t._m(1),t._v(" "),s("span",{staticClass:"font-weight-bold ml-3",domProps:{innerHTML:t._s(t.status.content)}})]),t._v(" "),s("div",{staticClass:"mb-2"},["vote"===t.tab?s("div",[t._l(t.status.poll.options,(function(e,o){return s("p",[s("button",{staticClass:"btn btn-block lead rounded-pill",class:[o==t.selectedIndex?"btn-primary":"btn-outline-primary"],attrs:{disabled:!t.authenticated},on:{click:function(e){return t.selectOption(o)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.title)+"\n\t\t\t\t\t\t\t\t\t\t")])])})),t._v(" "),null!=t.selectedIndex?s("p",{staticClass:"text-right"},[s("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?s("div",t._l(t.status.poll.options,(function(e,o){return s("div",{staticClass:"mb-3"},[s("button",{staticClass:"btn btn-block lead rounded-pill",class:[o==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(e.title)+"\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("div",{staticClass:"font-weight-bold"},[s("span",{staticClass:"text-muted"},[t._v(t._s(t.calculatePercentage(e))+"%")]),t._v(" "),s("span",{staticClass:"small text-lighter"},[t._v("("+t._s(e.votes_count)+" "+t._s(1==e.votes_count?"vote":"votes")+")")])])])})),0):"results"===t.tab?s("div",t._l(t.status.poll.options,(function(e,o){return s("div",{staticClass:"mb-3"},[s("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(e.title)+"\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("div",{staticClass:"font-weight-bold"},[s("span",{staticClass:"text-muted"},[t._v(t._s(t.calculatePercentage(e))+"%")]),t._v(" "),s("span",{staticClass:"small text-lighter"},[t._v("("+t._s(e.votes_count)+" "+t._s(1==e.votes_count?"vote":"votes")+")")])])])})),0):t._e()]),t._v(" "),s("div",[s("p",{staticClass:"mb-0 small text-lighter font-weight-bold d-flex justify-content-between"},[s("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?s("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?s("span",{staticClass:"text-lighter"},[t._m(2)]):t._e()])]),t._v(" "),s("div",[s("span",{staticClass:"d-block d-md-none small text-lighter font-weight-bold"},[t.status.poll.expired?s("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tClosed\n\t\t\t\t\t\t\t\t\t")]):s("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(" "),s("context-menu",{ref:"contextMenu",attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1)},a=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("span",{staticClass:"d-none d-md-block px-1 text-primary font-weight-bold"},[s("i",{staticClass:"fas fa-poll-h"}),t._v(" Poll "),s("sup",{staticClass:"text-lighter"},[t._v("BETA")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"btn btn-primary px-2 py-1"},[e("i",{staticClass:"fas fa-poll-h fa-lg"})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])}]},91927:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>a});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"status-card-component",class:{"status-card-sm":"small"===t.size}},["text"===t.status.pf_type?s("div",{staticClass:"card shadow-none border rounded-0",class:{"border-top-0":!t.hasTopBorder}},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"media"},[s("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(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"pl-2 d-flex align-items-top"},[s("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("\n\t\t\t\t\t\t\tLoading...\n\t\t\t\t\t\t")]),t._v(" "),s("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(" "),s("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(" "),s("span",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[s("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[s("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),s("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]),t._v(" "),s("div",{staticClass:"pl-2"},[t.status.sensitive?s("details",[s("summary",{staticClass:"mb-2 font-weight-bold text-muted"},[t._v("Content Warning")]),t._v(" "),s("p",{staticClass:"pt-2 text-break status-content",domProps:{innerHTML:t._s(t.status.content)}})]):s("p",{staticClass:"pt-2 text-break status-content",domProps:{innerHTML:t._s(t.status.content)}}),t._v(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("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?s("div",[s("poll-card",{attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1):s("div",{staticClass:"card rounded-0 border-top-0 status-card card-md-rounded-0 shadow-none border"},[t.status?s("div",{staticClass:"card-header d-inline-flex align-items-center bg-white"},[s("div",[s("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(" "),s("div",{staticClass:"pl-2"},[s("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("\n\t\t\t\t\tLoading...\n\t\t\t\t")]),t._v(" "),t.status.account.is_admin?s("span",{staticClass:"fa-stack",staticStyle:{height:"1em","line-height":"1em","max-width":"19px"},attrs:{title:"Admin Account","data-toggle":"tooltip"}},[s("i",{staticClass:"fas fa-certificate text-danger fa-stack-1x"}),t._v(" "),s("i",{staticClass:"fas fa-crown text-white fa-sm fa-stack-1x",staticStyle:{"font-size":"7px"}})]):t._e(),t._v(" "),s("div",{staticClass:"d-flex align-items-center"},[t.status.place?s("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"}},[s("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(" "),t.canFollow(t.status)?s("div",[s("span",{staticClass:"px-2"}),t._v(" "),s("button",{staticClass:"btn btn-primary btn-sm font-weight-bold py-1 px-3 rounded-lg",on:{click:function(e){return t.follow(t.status.account.id)}}},[s("i",{staticClass:"far fa-user-plus mr-1"}),t._v(" Follow")])]):t._e(),t._v(" "),t.status.hasOwnProperty("relationship")&&t.status.relationship.hasOwnProperty("following")&&t.status.relationship.following?s("div",[s("span",{staticClass:"px-2"}),t._v(" "),s("button",{staticClass:"btn btn-outline-primary btn-sm font-weight-bold py-1 px-3 rounded-lg",on:{click:function(e){return t.unfollow(t.status.account.id)}}},[s("i",{staticClass:"far fa-user-check mr-1"}),t._v(" Following")])]):t._e(),t._v(" "),s("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[s("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[s("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),s("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]):t._e(),t._v(" "),s("div",{staticClass:"postPresenterContainer",staticStyle:{background:"#000"}},["photo"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):"video"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("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?s("div",{staticClass:"w-100"},[s("video-album-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("mixed-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):s("div",{staticClass:"w-100"},[s("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?s("div",{staticClass:"card-body border-top border-bottom py-2 cursor-pointer pr-2",on:{click:function(e){return t.labelRedirect()}}},[s("p",{staticClass:"font-weight-bold d-flex justify-content-between align-items-center mb-0"},[s("span",[s("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(" "),s("div",{staticClass:"card-body"},[t.reactionBar?s("div",{staticClass:"reactions my-1 pb-2"},[t.status.favourited?s("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)}}}):s("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():s("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?s("span",{staticClass:"float-right"},[s("span",{staticClass:"font-weight-light small",staticStyle:{color:"#718096"}},[s("i",{staticClass:"far fa-user",attrs:{"data-toggle":"tooltip",title:"Tagged People"}}),t._v(" "),t._l(t.status.taggedPeople,(function(t,e){return s("span",{staticClass:"mr-n2"},[s("a",{attrs:{href:"/"+t.username}},[s("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?s("div",{staticClass:"likes mb-1"},[s("span",{staticClass:"like-count"},[t._v("Liked by\n\t\t\t\t\t"),s("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?s("span",[t._v("\n\t\t\t\t\t\tand "),t.status.liked_by.total_count_pretty?s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.status.liked_by.total_count_pretty))]):t._e(),t._v(" "),s("span",{staticClass:"font-weight-bold"},[t._v("others")])]):t._e()])]):t._e(),t._v(" "),"text"!=t.status.pf_type?s("div",{staticClass:"caption"},[t.status.sensitive?t._e():s("p",{staticClass:"mb-2 read-more",staticStyle:{overflow:"hidden"}},[s("span",{staticClass:"username font-weight-bold"},[s("bdi",[s("a",{staticClass:"text-dark",attrs:{href:t.profileUrl(t.status)}},[t._v(t._s(t.status.account.username))])])]),t._v(" "),s("span",{staticClass:"status-content",domProps:{innerHTML:t._s(t.content)}})])]):t._e(),t._v(" "),s("div",{staticClass:"timestamp mt-2"},[s("p",{staticClass:"small mb-0"},["archived"!=t.status.visibility?s("a",{staticClass:"text-muted text-uppercase",attrs:{href:t.statusUrl(t.status)}},[s("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):s("span",{staticClass:"text-muted text-uppercase"},[t._v("\n\t\t\t\t\t\tPosted "),s("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?s("span",[s("span",{staticClass:"px-1"},[t._v("·")]),t._v(" "),s("span",{staticClass:"text-muted"},[t._v("Based on popular and trending content")])]):t._e()])])])]),t._v(" "),s("context-menu",{ref:"contextMenu",attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1)},a=[function(){var t=this.$createElement,e=this._self._c||t;return e("span",[e("i",{staticClass:"fas fa-chevron-right text-lighter"})])}]},34812:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>a});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",[s("details",{staticClass:"details-animated"},[s("summary",[s("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(" "),s("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),s("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(e,o){return s("b-carousel-slide",{key:e.id+"-media"},["video"==e.type?s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:e.description,width:"100%",height:"100%"},slot:"img"},[s("source",{attrs:{src:e.url,type:e.mime}})]):"image"==e.type?s("div",{attrs:{slot:"img",title:e.description},slot:"img"},[s("img",{class:e.filter_class+" d-block img-fluid w-100",attrs:{src:e.url,alt:e.description,loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})]):s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])})),1)],1)]):s("div",{staticClass:"w-100 h-100 p-0"},[s("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(e,o){return s("slide",{key:"px-carousel-"+e.id+"-"+o,staticClass:"w-100 h-100 d-block mx-auto text-center",staticStyle:{background:"#000",display:"flex","align-items":"center"}},["video"==e.type?s("video",{staticClass:"embed-responsive-item",attrs:{preload:"none",controls:"",loop:"",title:e.description,width:"100%",height:"100%"}},[s("source",{attrs:{src:e.url,type:e.mime}})]):"image"==e.type?s("div",{attrs:{title:e.description}},[s("img",{class:e.filter_class+" img-fluid w-100",attrs:{src:e.url,alt:e.description,loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})]):s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])})),1)],1)},a=[]},21761:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>a});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",{staticClass:"content-label-wrapper"},[s("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),s("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),s("p",{staticClass:"text-center py-2"},[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(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):s("div",{staticClass:"w-100 h-100 p-0"},[s("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(e,o){return s("slide",{key:"px-carousel-"+e.id+"-"+o,staticStyle:{background:"#000",display:"flex","align-items":"center"},attrs:{title:e.description}},[s("img",{class:e.filter_class+" img-fluid w-100 p-0",attrs:{src:e.url,alt:t.altText(e),loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}}),t._v(" "),!t.status.sensitive&&t.sensitive?s("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}}},[s("i",{staticClass:"fas fa-eye-slash fa-lg"})]):t._e(),t._v(" "),t.status.media_attachments[0].license?s("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))"}},[s("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.url}},[t._v("Photo")]),t._v(" by "),s("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 "),s("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)],1)},a=[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])}]},65654:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>a});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",{staticClass:"content-label-wrapper"},[s("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),s("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),s("p",{staticClass:"text-center py-2"},[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(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):s("div",[s("div",{staticStyle:{position:"relative"},attrs:{title:t.status.media_attachments[0].description}},[s("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?s("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}}},[s("i",{staticClass:"fas fa-eye-slash fa-lg"})]):t._e(),t._v(" "),t.status.media_attachments[0].license?s("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))"}},[s("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.url}},[t._v("Photo")]),t._v(" by "),s("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 "),s("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()])])},a=[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])}]},36310:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>a});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",[s("details",{staticClass:"details-animated"},[s("summary",[s("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(" "),s("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),s("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,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:t.description,width:"100%",height:"100%"},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)]):s("div",[s("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,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:t.description,width:"100%",height:"100%"},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)},a=[]},38508:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>a});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",{staticClass:"content-label-wrapper"},[s("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),s("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),s("p",{staticClass:"text-center py-2"},[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(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):s("div",{staticClass:"embed-responsive embed-responsive-16by9"},[s("video",{staticClass:"video",attrs:{controls:"",playsinline:"",preload:"metadata",loop:"","data-id":t.status.id}},[s("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])},a=[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])}]}},t=>{t.O(0,[898],(()=>{return e=4291,t(t.s=e);var e}));t.O()}]); \ No newline at end of file diff --git a/public/js/rempos.js b/public/js/rempos.js index d14d45710..1766bd2dd 100644 --- a/public/js/rempos.js +++ b/public/js/rempos.js @@ -1 +1 @@ -(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[155],{14425:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(19755);const i={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,s){var a=t.account.username;switch(e){case"autocw":var i="Are you sure you want to enforce CW for "+a+" ?";swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0});break;case"suspend":i="Are you sure you want to suspend the account of "+a+" ?",swal({title:"Confirm",text:i,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")}}}},53144:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>u});var a=s(19210),i=s(37468),o=s(97622),n=s(33823),r=s(19755);function l(t){return function(t){if(Array.isArray(t))return c(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 c(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return c(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 c(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,a=new Array(e);s0?((a=e.likes).push.apply(a,l(i.data)),e.likesPage++,t.loaded()):t.complete()}))},infiniteSharesHandler:function(t){var e=this;axios.get("/api/v2/shares/profile/"+this.statusUsername+"/status/"+this.statusId,{params:{page:this.sharesPage}}).then((function(s){var a,i=s.data;i.data.length>0?((a=e.shares).push.apply(a,l(i.data)),e.sharesPage++,t.loaded()):t.complete()}))},likeStatus:function(t){var e=this;0!=r("body").hasClass("loggedIn")?(axios.post("/i/like",{item:this.status.id}).then((function(s){if(e.status.favourites_count=s.data.count,1==e.reactions.liked){e.reactions.liked=!1;var a=e.user.id;e.likes=e.likes.filter((function(t){return t.id!==a}))}else{e.reactions.liked=!0;var i=e.user;e.likes.unshift(i),setTimeout((function(){t.target.classList.add("animate__animated","animate__bounce")}),100)}})).catch((function(t){console.error(t),swal("Error","Something went wrong, please try again later.","error")})),window.navigator.vibrate(200)):window.location.href="/login?next="+encodeURIComponent(window.location.pathname)},shareStatus:function(){var t=this;0!=r("body").hasClass("loggedIn")?axios.post("/i/share",{item:this.status.id}).then((function(e){if(t.status.reblogs_count=e.data.count,1==t.reactions.shared){t.reactions.shared=!1;var s=t.user.id;t.shares=t.shares.filter((function(t){return t.id!==s}))}else{t.reactions.shared=!0;var a=t.user;t.shares.push(a)}})).catch((function(t){console.error(t),swal("Error","Something went wrong, please try again later.","error")})):window.location.href="/login?next="+encodeURIComponent(window.location.pathname)},bookmarkStatus:function(){var t=this;0!=r("body").hasClass("loggedIn")?axios.post("/i/bookmark",{item:this.status.id}).then((function(e){1==t.reactions.bookmarked?t.reactions.bookmarked=!1:t.reactions.bookmarked=!0})).catch((function(t){swal("Error","Something went wrong, please try again later.","error")})):window.location.href="/login?next="+encodeURIComponent(window.location.pathname)},blockProfile:function(){var t=this;0!=r("body").hasClass("loggedIn")&&axios.post("/i/block",{type:"user",item:this.status.account.id}).then((function(e){t.$refs.ctxModal.hide(),t.relationship.blocking=!0,swal("Success","You have successfully blocked "+t.status.account.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))},unblockProfile:function(){var t=this;0!=r("body").hasClass("loggedIn")&&axios.post("/i/unblock",{type:"user",item:this.status.account.id}).then((function(e){t.relationship.blocking=!1,t.$refs.ctxModal.hide(),swal("Success","You have successfully unblocked "+t.status.account.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))},deletePost:function(t){if(this.ownerOrAdmin()&&confirm("Are you sure you want to delete this post?")){if(0==r("body").hasClass("loggedIn"))return;axios.post("/i/delete",{type:"status",item:this.status.id}).then((function(t){swal("Success","You have successfully deleted this post","success"),setTimeout((function(){window.location.href="/"}),3e3)})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))}},owner:function(){return this.user.id===this.status.account.id},admin:function(){return 1==this.user.is_admin},ownerOrAdmin:function(){return this.owner()||this.admin()},postReply:function(){var t=this;if(this.replySending=!0,0==this.replyText.length||this.replyText.trim()=="@"+this.status.account.acct)return t.replyText=null,void r('textarea[name="comment"]').blur();var e={item:this.replyingToId,comment:this.replyText,sensitive:this.replySensitive};this.replyText="",axios.post("/i/comment",e).then((function(e){var s=e.data.entity;if(s.in_reply_to_id==t.status.id){"metro"==t.layout?t.results.push(s):t.results.unshift(s);var a=r(".status-comments")[0];a.scrollTop=2*a.clientHeight}else if(t.replyToIndex>=0){var i=t.results[t.replyToIndex];i.replies.push(s),i.reply_count=i.reply_count+1}t.$refs.replyModal.hide(),t.replySending=!1}))},deleteComment:function(t,e){var s=this;axios.post("/i/delete",{type:"comment",item:t}).then((function(t){s.results.splice(e,1)})).catch((function(t){swal("Something went wrong!","Please try again later","error")}))},deleteCommentReply:function(t,e,s){var a=this;axios.post("/i/delete",{type:"comment",item:t}).then((function(t){a.results[s].replies.splice(e,1),--a.results[s].reply_count})).catch((function(t){swal("Something went wrong!","Please try again later","error")}))},l:function(t){return t.length<10?t:t.substr(0,10)+"..."},replyFocus:function(t,e){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(0!=r("body").hasClass("loggedIn")){if(!this.status.comments_disabled){this.replyToIndex=e,this.replyingToId=t.id,this.replyingToUsername=t.account.username,this.reply_to_profile_id=t.account.id;var a=t.account.local?"@"+t.account.username+" ":"@"+t.account.acct+" ";1==s&&(this.replyText=a),this.$refs.replyModal.show()}}else this.redirect("/login?next="+encodeURIComponent(window.location.pathname))},fetchComments:function(){var t=this,e="/api/v2/comments/"+this.statusProfileId+"/status/"+this.statusId;axios.get(e).then((function(e){t.results="metro"==t.layout?_.reverse(e.data.data):e.data.data,t.pagination=e.data.meta.pagination,t.results.length>0&&r(".load-more-link").removeClass("d-none"),r(".postCommentsLoader").addClass("d-none"),r(".postCommentsContainer").removeClass("d-none"),setTimeout((function(){document.querySelectorAll(".status-comment .postCommentsContainer .comment-body a").forEach((function(t,e){t.href=App.util.format.rewriteLinks(t)}))}),500)})).catch((function(t){if(t.response)if(401===t.response.status)r(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("Please login to view.");else r(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch comments. Please try again later.");else r(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch comments. Please try again later.")}))},loadMore:function(t){var e=this;if(t.preventDefault(),1!=this.pagination.total_pages&&this.pagination.current_page!=this.pagination.total_pages){r(".load-more-link").addClass("d-none"),r(".postCommentsLoader").removeClass("d-none");var s=this.pagination.links.next;axios.get(s).then((function(t){var s=t.data.data;r(".postCommentsLoader").addClass("d-none");for(var a=0;a0)return void(t.thread=!0);var e="/api/v2/comments/"+t.account.id+"/status/"+t.id;axios.get(e).then((function(e){t.replies=_.reverse(e.data.data),t.thread=!0}))}},redirect:function(t){window.location.href=t},permalinkUrl:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=t.account;return 1==s.local||e?t.url:"/i/web/post/_/"+s.id+"/"+t.id},fetchProfilePosts:function(){if(r("body").hasClass("loggedIn")||!this.loaded){var t=this,e="/api/pixelfed/v1/accounts/"+this.statusProfileId+"/statuses";axios.get(e,{params:{only_media:!0,min_id:1,limit:9}}).then((function(e){var s=e.data.filter((function(e){return e.media_attachments.length>0&&e.id!=t.statusId&&0==e.sensitive}));s.map((function(t){return t.id}));t.profileMorePosts=s.slice(0,6)}))}},previewUrl:function(t){return t.sensitive?"/storage/no-preview.png?v="+(new Date).getTime():t.media_attachments[0].preview_url},previewBackground:function(t){return"background-image: url("+this.previewUrl(t)+");"},getStatusUrl:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return 1==t.local||1==e?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},showTaggedPeopleModal:function(){!r("body").hasClass("loggedIn")&&this.loaded||this.$refs.taggedModal.show()},untagMe:function(){var t=this;this.$refs.taggedModal.hide();var e=this.user.id;axios.post("/api/local/compose/tag/untagme",{status_id:this.statusId,profile_id:e}).then((function(s){t.status.taggedPeople=t.status.taggedPeople.filter((function(t){return t.id!=e})),swal("Untagged","You have been untagged from this post.","success")})).catch((function(t){swal("An Error Occurred","Please try again later.","error")}))},copyPostUrl:function(){navigator.clipboard.writeText(this.statusUrl)},moderatePost:function(t,e){var s=this.status,a=(s.account.username,""),i=this;switch(t){case"addcw":a="Are you sure you want to add a content warning to this post?",swal({title:"Confirm",text:a,icon:"warning",buttons:!0,dangerMode:!0}).then((function(e){e&&axios.post("/api/v2/moderator/action",{action:t,item_id:s.id,item_type:"status"}).then((function(t){swal("Success","Successfully added content warning","success"),s.sensitive=!0,i.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),i.ctxModMenuClose()}))}));break;case"remcw":a="Are you sure you want to remove the content warning on this post?",swal({title:"Confirm",text:a,icon:"warning",buttons:!0,dangerMode:!0}).then((function(e){e&&axios.post("/api/v2/moderator/action",{action:t,item_id:s.id,item_type:"status"}).then((function(t){swal("Success","Successfully added content warning","success"),s.sensitive=!1,i.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),i.ctxModMenuClose()}))}));break;case"unlist":a="Are you sure you want to unlist this post?",swal({title:"Confirm",text:a,icon:"warning",buttons:!0,dangerMode:!0}).then((function(e){e&&axios.post("/api/v2/moderator/action",{action:t,item_id:s.id,item_type:"status"}).then((function(t){swal("Success","Successfully unlisted post","success"),i.ctxModMenuClose()})).catch((function(t){i.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")}))}))}},ctxMenu:function(){this.$refs.ctxModal.show()},closeCtxMenu:function(t){this.$refs.ctxModal.hide()},ctxModMenu:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.show()},ctxModMenuClose:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.hide()},ctxMenuCopyLink:function(){var t=this.status;navigator.clipboard.writeText(t.url),this.closeCtxMenu()},ctxMenuFollow:function(){var t=this,e=this.status.account.id;axios.post("/i/follow",{item:e}).then((function(e){var s=t.status.account.acct;t.relationship.following=!0,t.$refs.ctxModal.hide(),setTimeout((function(){swal("Follow successful!","You are now following "+s,"success")}),500)}))},ctxMenuUnfollow:function(){var t=this,e=this.status.account.id;axios.post("/i/follow",{item:e}).then((function(e){var s=t.status.account.acct;t.relationship.following=!1,t.$refs.ctxModal.hide(),setTimeout((function(){swal("Unfollow successful!","You are no longer following "+s,"success")}),500)}))},setCurrentLayout:function(t){this.currentLayout=t},commentFocus:function(t,e){t.comments_disabled||(this.replies={},this.replyStatus={},this.replyText="",this.replyId=t.id,this.replyStatus=t,this.fetchStatusComments(t,""),r("nav").hide(),r("footer").hide(),r(".mobile-footer-spacer").attr("style","display:none !important"),r(".mobile-footer").attr("style","display:none !important"),r(".mt-md-4").hide(),this.currentLayout="comments",window.history.pushState({},"",this.getStatusUrl(t)))},fetchStatusComments:function(t,e){var s=this,a="/api/v2/comments/"+t.account.id+"/status/"+t.id;axios.get(a).then((function(t){s.replies=_.reverse(t.data.data),s.pagination=t.data.meta.pagination,s.replies.length>0&&r(".load-more-link").removeClass("d-none"),r(".postCommentsLoader").addClass("d-none"),r(".postCommentsContainer").removeClass("d-none")})).catch((function(t){if(t.response)if(401===t.response.status)r(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("Please login to view.");else r(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch comments. Please try again later.");else r(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch comments. Please try again later.")}))}}}},36624:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(20415),i=s(19755);const o={props:{status:{type:Object},profile:{type:Object},backToStatus:{type:Boolean,default:!1}},components:{"context-menu":a.default},data:function(){return{ids:[],config:window.App.config,tributeSettings:{collection:[{trigger:"@",menuShowMinLength:2,values:function(t,e){axios.get("/api/compose/v0/search/mention",{params:{q:t}}).then((function(t){e(t.data)})).catch((function(t){console.log(t)}))}},{trigger:"#",menuShowMinLength:2,values:function(t,e){axios.get("/api/compose/v0/search/hashtag",{params:{q:t}}).then((function(t){e(t.data)})).catch((function(t){console.log(t)}))}}]},replies:[],replyId:null,replyText:"",replyNsfw:!1,replySending:!1,pagination:{},ctxMenuStatus:!1,emoji:window.App.util.emoji}},beforeMount:function(){this.fetchComments()},methods:{commentNavigateBack:function(t){if(this.backToStatus)window.location.href=this.statusUrl(this.status);else{i("nav").show(),i("footer").show(),i(".mobile-footer-spacer").attr("style","display:block"),i(".mobile-footer").attr("style","display:block"),this.$emit("current-layout","feed");window.history.pushState({},"","/")}},trimCaption:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60;return _.truncate(t,{length:e})},replyFocus:function(t,e){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(0!=i("body").hasClass("loggedIn")){if(!this.status.comments_disabled){this.replyToIndex=e,this.replyingToId=t.id,this.replyingToUsername=t.account.username,this.reply_to_profile_id=t.account.id;var a=t.account.local?"@"+t.account.username+" ":"@"+t.account.acct+" ";1==s&&(this.replyText=a),this.$refs.replyModal.show(),setTimeout((function(){i(".replyModalTextarea").focus()}),500)}}else this.redirect("/login?next="+encodeURIComponent(window.location.pathname))},commentSubmit:function(t,e){var s=this;this.replySending=!0;var a=t.id,i=this.replyText,o=this.config.uploader.max_caption_length;if(i.length>o)return this.replySending=!1,void swal("Comment Too Long","Please make sure your comment is "+o+" characters or less.","error");axios.post("/i/comment",{item:a,comment:i,sensitive:this.replyNsfw}).then((function(t){s.replyText="",s.replies.push(t.data.entity),s.$refs.replyModal.hide()})),this.replySending=!1},timeAgo:function(t){return App.util.format.timeAgo(t)},fetchComments:function(){var t=this;console.log("Fetching comments...");var e="/api/v2/comments/"+this.status.account.id+"/status/"+this.status.id;axios.get(e).then((function(e){t.replies=e.data.data,t.pagination=e.data.meta.pagination})).catch((function(t){if(t.response)if(401===t.response.status)i(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("Please login to view.");else i(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch comments. Please try again later.");else i(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch comments. Please try again later.")}))},loadMoreComments:function(){var t=this;if(1!=this.pagination.total_pages&&this.pagination.current_page!=this.pagination.total_pages){i(".load-more-link").addClass("d-none"),i(".postCommentsLoader").removeClass("d-none");var e=this.pagination.links.next;axios.get(e).then((function(e){var s=e.data.data;i(".postCommentsLoader").addClass("d-none");for(var a=0;a{"use strict";s.r(e),s.d(e,{default:()=>l});var a=s(20415),i=s(19210),o=s(19755);function n(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return r(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))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 s=0,a=new Array(e);s{"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(19755);const i={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 s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)},ctxEmbedShowLikes:function(t,e){1==t&&(this.ctxEmbedCompactMode=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)},ctxEmbedCompactMode:function(t,e){1==t&&(this.ctxEmbedShowCaption=!1,this.ctxEmbedShowLikes=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)}},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 s=t.ctxMenuStatus.account.acct;t.closeCtxMenu(),setTimeout((function(){swal("Follow successful!","You are now following "+s,"success")}),500)}))},ctxMenuUnfollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then((function(e){var s=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 "+s,"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,s=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:s}).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,s){var a=this,i=(t.account.username,t.id,""),o=this;switch(e){case"addcw":i="Are you sure you want to add a content warning to this post?",swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&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,o.closeModals(),o.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),o.closeModals(),o.ctxModMenuClose()}))}));break;case"remcw":i="Are you sure you want to remove the content warning on this post?",swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&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,o.closeModals(),o.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),o.closeModals(),o.ctxModMenuClose()}))}));break;case"unlist":i="Are you sure you want to unlist this post?",swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&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"),o.closeModals(),o.ctxModMenuClose()})).catch((function(t){o.closeModals(),o.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")}))}));break;case"spammer":i="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:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&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"),o.closeModals(),o.ctxModMenuClose()})).catch((function(t){o.closeModals(),o.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(s){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(s){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()}))}}}},55192:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(20415),i=s(19755);const o={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";s.r(e),s.d(e,{default:()=>n});var a=s(20415),i=s(97622),o=s(19755);const n={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":i.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 s=''.concat(e.shortcode,'');t.content=t.content.replace(":".concat(e.shortcode,":"),s)}))},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,s=window.App.config.username.remote.custom,a=t.account.username,i=document.createElement("a");switch(i.href=t.account.url,i=i.hostname,e){case"@":default:return a+'@'+i+"";case"from":return a+' from '+i+"";case"custom":return a+' '+s+" "+i+""}},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!=o("body").hasClass("loggedIn")){var s=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=s,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 s=this;this.replySending=!0;var a=t.id,i=this.replyText,o=this.config.uploader.max_caption_length;if(i.length>o)return this.replySending=!1,void swal("Comment Too Long","Please make sure your comment is "+o+" characters or less.","error");axios.post("/i/comment",{item:a,comment:i,sensitive:this.replyNsfw}).then((function(t){s.replyText="",s.replies.push(t.data.entity),s.$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)},canFollow:function(t){return!!t.hasOwnProperty("relationship")&&(!(!t.hasOwnProperty("account")||!t.account.hasOwnProperty("id"))&&(t.account.id!=this.profile.id&&!t.relationship.following))},follow:function(t){var e=this;event.currentTarget.blur(),axios.post("/i/follow",{item:t}).then((function(s){e.status.relationship.following=!0,e.$emit("followed",t)})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))},unfollow:function(t){var e=this;event.currentTarget.blur(),axios.post("/i/follow",{item:t}).then((function(s){e.status.relationship.following=!1,e.$emit("unfollowed",t)})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))}}}},7768:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:["status"]}},10578:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(30765),i=s.n(a);const o={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){i()({el:t.target})},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 s="backward";e.advancePage(s),e.$emit("navigation-click",s)}if("39"==t.keyCode){t.preventDefault();var a="forward";e.advancePage(a),e.$emit("navigation-click",a)}}}}},15464:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(30765),i=s.n(a);const o={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){i()({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}}}},63049:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:["status"]}},67223:(t,e,s)=>{"use strict";s.r(e),s.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")}}}},68059:(t,e,s)=>{Vue.component("photo-presenter",s(23251).default),Vue.component("video-presenter",s(53973).default),Vue.component("photo-album-presenter",s(33872).default),Vue.component("video-album-presenter",s(76644).default),Vue.component("mixed-album-presenter",s(57374).default),Vue.component("post-menu",s(4086).default),Vue.component("remote-post",s(97895).default)},73196:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(23645),i=s.n(a)()((function(t){return t[1]}));i.push([t.id,".text-lighter[data-v-1002e7e2]{color:#b8c2cc!important}.modal-body[data-v-1002e7e2]{padding:0}",""]);const o=i},65517:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(23645),i=s.n(a)()((function(t){return t[1]}));i.push([t.id,".postPresenterContainer[data-v-61cb40a9],.reactions[data-v-61cb40a9],.status-comments[data-v-61cb40a9]{background:#fff}@media(min-width:720px){.postPresenterContainer[data-v-61cb40a9]{min-height:600px}}[data-v-61cb40a9]::-webkit-scrollbar{background:transparent;width:0}.reply-btn[data-v-61cb40a9]{border-radius:0 3px 3px 0;bottom:12px;position:absolute;right:20px;text-align:center;width:60px}.text-lighter[data-v-61cb40a9]{color:#b8c2cc!important}.text-break[data-v-61cb40a9]{overflow-wrap:break-word}.comments p[data-v-61cb40a9]{margin-bottom:0}.comment-reaction[data-v-61cb40a9]{font-size:80%}.show-reply-bar[data-v-61cb40a9]{border-bottom:1px solid #999;display:inline-block;height:0;margin-right:16px;vertical-align:middle;width:24px}.comment-thread[data-v-61cb40a9]{margin-top:1rem}.emoji-reactions .nav-item[data-v-61cb40a9]{cursor:pointer;font-size:1.2rem;padding:9px}.emoji-reactions[data-v-61cb40a9]::-webkit-scrollbar{background:transparent;height:0;width:0}@media (min-width:1200px){.container[data-v-61cb40a9]{max-width:1100px}}",""]);const o=i},46839:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(23645),i=s.n(a)()((function(t){return t[1]}));i.push([t.id,".emoji-reactions .nav-item[data-v-006bdd8e]{cursor:pointer;font-size:1.2rem;padding:9px}.emoji-reactions[data-v-006bdd8e]::-webkit-scrollbar{background:transparent;height:0;width:0}",""]);const o=i},28597:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(23645),i=s.n(a)()((function(t){return t[1]}));i.push([t.id,".card-img-top[data-v-1b12221c]{border-top-left-radius:0!important;border-top-right-radius:0!important}.content-label-wrapper[data-v-1b12221c]{position:relative}.content-label[data-v-1b12221c]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}",""]);const o=i},43125:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(23645),i=s.n(a)()((function(t){return t[1]}));i.push([t.id,".card-img-top[data-v-77d48172]{border-top-left-radius:0!important;border-top-right-radius:0!important}.content-label-wrapper[data-v-77d48172]{position:relative}.content-label[data-v-77d48172]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}",""]);const o=i},71965:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(23645),i=s.n(a)()((function(t){return t[1]}));i.push([t.id,".content-label-wrapper[data-v-5e63aaf2]{position:relative}.content-label[data-v-5e63aaf2]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}",""]);const o=i},16806:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(23645),i=s.n(a)()((function(t){return t[1]}));i.push([t.id,".reply-form[data-v-ee374dfe]{position:relative}.reply-form input[data-v-ee374dfe]{padding-right:90px}.reply-form textarea[data-v-ee374dfe]{align-items:center;padding-right:80px}.reply-form .btn[data-v-ee374dfe]{position:absolute;right:6px;top:50%;transform:translateY(-50%)}.reply-options[data-v-ee374dfe]{align-items:center;display:flex;justify-content:space-between;margin-top:15px}.reply-options .form-control[data-v-ee374dfe]{max-width:140px}",""]);const o=i},59179:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(23645),i=s.n(a)()((function(t){return t[1]}));i.push([t.id,".status-card-component .status-content{font-size:17px}.status-card-component.status-card-sm .status-content{font-size:14px}.status-card-component.status-card-sm .fa-lg{font-size:unset;line-height:unset;vertical-align:unset}",""]);const o=i},91917:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(73196),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},80310:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(65517),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},29392:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(46839),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},27265:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(28597),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},2511:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(43125),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},99799:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(71965),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},63373:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(16806),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},43855:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(59179),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},4086:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(44843),i=s(10078),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);s(96021);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,"1002e7e2",null).exports},97895:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(83463),i=s(63203),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);s(21488);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,"61cb40a9",null).exports},37468:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(68695),i=s(30244),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);s(73049);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,"006bdd8e",null).exports},33823:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(92688),i=s(86044),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);s(13245);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,"ee374dfe",null).exports},20415:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(53242),i=s(25266),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,null,null).exports},97622:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(74454),i=s(97381),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,null,null).exports},19210:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(48661),i=s(71334),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);s(45101);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,null,null).exports},57374:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(40621),i=s(4220),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,null,null).exports},33872:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(74762),i=s(10878),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);s(75152);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,"1b12221c",null).exports},23251:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(42415),i=s(29911),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);s(12796);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,"77d48172",null).exports},76644:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(35301),i=s(18411),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,null,null).exports},53973:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(25188),i=s(44976),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);s(52802);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,"5e63aaf2",null).exports},10078:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(14425),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},63203:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(53144),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},30244:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(36624),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},86044:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(33694),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},25266:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(53999),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},97381:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(55192),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},71334:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(86637),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},4220:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(7768),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},10878:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(10578),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},29911:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(15464),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},18411:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(63049),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},44976:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(67223),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},96021:(t,e,s)=>{"use strict";s.r(e);var a=s(91917),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},21488:(t,e,s)=>{"use strict";s.r(e);var a=s(80310),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},73049:(t,e,s)=>{"use strict";s.r(e);var a=s(29392),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},75152:(t,e,s)=>{"use strict";s.r(e);var a=s(27265),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},12796:(t,e,s)=>{"use strict";s.r(e);var a=s(2511),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},52802:(t,e,s)=>{"use strict";s.r(e);var a=s(99799),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},13245:(t,e,s)=>{"use strict";s.r(e);var a=s(63373),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},45101:(t,e,s)=>{"use strict";s.r(e);var a=s(43855),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},44843:(t,e,s)=>{"use strict";s.r(e);var a=s(27257),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},83463:(t,e,s)=>{"use strict";s.r(e);var a=s(95578),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},68695:(t,e,s)=>{"use strict";s.r(e);var a=s(91705),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},92688:(t,e,s)=>{"use strict";s.r(e);var a=s(44913),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},53242:(t,e,s)=>{"use strict";s.r(e);var a=s(22372),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},74454:(t,e,s)=>{"use strict";s.r(e);var a=s(37860),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},48661:(t,e,s)=>{"use strict";s.r(e);var a=s(91927),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},40621:(t,e,s)=>{"use strict";s.r(e);var a=s(2999),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},74762:(t,e,s)=>{"use strict";s.r(e);var a=s(21761),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},42415:(t,e,s)=>{"use strict";s.r(e);var a=s(65654),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},35301:(t,e,s)=>{"use strict";s.r(e);var a=s(7592),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},25188:(t,e,s)=>{"use strict";s.r(e);var a=s(53678),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},27257:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",["true"!=t.modal?s("div",{staticClass:"dropdown"},[s("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"}},[s("span",{class:["lg"==t.size?"fas fa-ellipsis-v fa-lg text-muted":"fas fa-ellipsis-v fa-sm text-lighter"]})]),t._v(" "),s("div",{staticClass:"dropdown-menu dropdown-menu-right"},[s("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)?s("span",[s("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)?s("span",[s("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(" "),s("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?s("span",[s("div",{staticClass:"dropdown-divider"}),t._v(" "),s("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(" "),s("div",{staticClass:"dropdown-divider"}),t._v(" "),s("h6",{staticClass:"dropdown-header"},[t._v("Mod Tools")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"autocw")}}},[s("p",{staticClass:"mb-0"},[t._v("Enforce CW")]),t._v(" "),t._m(0)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"noautolink")}}},[s("p",{staticClass:"mb-0"},[t._v("No Autolinking")]),t._v(" "),t._m(1)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"unlisted")}}},[s("p",{staticClass:"mb-0"},[t._v("Unlisted Posts")]),t._v(" "),t._m(2)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"disable")}}},[s("p",{staticClass:"mb-0"},[t._v("Disable Account")]),t._v(" "),t._m(3)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"suspend")}}},[s("p",{staticClass:"mb-0"},[t._v("Suspend Account")]),t._v(" "),t._m(4)])]):t._e()])]):t._e(),t._v(" "),"true"==t.modal?s("div",[s("span",{attrs:{"data-toggle":"modal","data-target":"#mt_pid_"+t.status.id}},[s("span",{class:["lg"==t.size?"fas fa-ellipsis-v fa-lg text-muted":"fas fa-ellipsis-v fa-sm text-lighter"]})]),t._v(" "),s("div",{staticClass:"modal",attrs:{tabindex:"-1",role:"dialog",id:"mt_pid_"+t.status.id}},[s("div",{staticClass:"modal-dialog modal-sm modal-dialog-centered",attrs:{role:"document"}},[s("div",{staticClass:"modal-content"},[s("div",{staticClass:"modal-body text-center"},[s("div",{staticClass:"list-group"},[s("a",{staticClass:"list-group-item text-dark text-decoration-none",attrs:{href:t.statusUrl(t.status)}},[t._v("Go to post")]),t._v(" "),s("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():s("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?s("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(" "),s("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()])},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0 small text-muted"},[t._v("Adds a CW to every post "),s("br"),t._v(" made by this account.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0 small text-muted"},[t._v("Do not transform mentions, "),s("br"),t._v(" hashtags or urls into HTML.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0 small text-muted"},[t._v("Removes account from "),s("br"),t._v(" public/network timelines.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0 small text-muted"},[t._v("Temporarily disable account "),s("br"),t._v(" until next time user log in.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0 small text-muted"},[t._v("This prevents any new interactions, "),s("br"),t._v(" without deleting existing data.")])}]},95578:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.loaded?t._e():s("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"80vh"}},[s("img",{attrs:{src:"/img/pixelfed-icon-grey.svg"}})]),t._v(" "),t.loaded&&t.warning?s("div",{staticClass:"bg-white mt-n4 pt-3 border-bottom"},[s("div",{staticClass:"container"},[s("p",{staticClass:"text-center font-weight-bold"},[t._v("You are blocking this account")]),t._v(" "),s("p",{staticClass:"text-center font-weight-bold"},[s("a",{staticClass:"btn btn-primary font-weight-bold px-5",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.warning=!1,t.fetchData()}}},[t._v("View Status")])])])]):t._e(),t._v(" "),t.loaded&&0==t.warning&&"status"===t.currentLayout?s("div",{staticClass:"postComponent"},[s("div",{staticClass:"container px-0"},["text"===t.status.pf_type?s("div",{staticClass:"col-12 col-md-6 offset-md-3"},[s("status-card",{staticClass:"border-top",attrs:{status:t.status,recommended:!1},on:{"comment-focus":t.commentFocus}}),t._v(" "),s("comment-feed",{staticClass:"mt-3",attrs:{status:t.status}})],1):t._e(),t._v(" "),"poll"===t.status.pf_type?s("div",{staticClass:"col-12 col-md-6 offset-md-3"},[s("poll-card",{attrs:{status:t.status,profile:t.profile,"fetch-state":!0}}),t._v(" "),s("comment-feed",{staticClass:"mt-3",attrs:{status:t.status}})],1):s("div",{staticClass:"card card-md-rounded-0 status-container orientation-unknown shadow-none border"},[s("div",{staticClass:"row px-0 mx-0"},[s("div",{staticClass:"d-flex d-md-none align-items-center justify-content-between card-header bg-white w-100"},[s("div",{staticClass:"d-flex"},[s("div",{staticClass:"status-avatar mr-2",on:{click:function(e){return t.redirect(t.profileUrl)}}},[s("img",{staticClass:"cursor-pointer",staticStyle:{"border-radius":"12px"},attrs:{src:t.statusAvatar,width:"24px",height:"24px",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}})]),t._v(" "),s("div",{staticClass:"username"},[s("span",{staticClass:"username-link font-weight-bold text-dark cursor-pointer",on:{click:function(e){return t.redirect(t.profileUrl)}}},[t._v(t._s(t.statusUsername))]),t._v(" "),t.status.account.is_admin?s("span",{staticClass:"fa-stack",staticStyle:{height:"1em","line-height":"1em","max-width":"19px"},attrs:{title:"Admin Account","data-toggle":"tooltip"}},[s("i",{staticClass:"fas fa-certificate text-danger fa-stack-1x"}),t._v(" "),s("i",{staticClass:"fas fa-crown text-white fa-sm fa-stack-1x",staticStyle:{"font-size":"7px"}})]):t._e(),t._v(" "),s("p",{staticClass:"mb-0",staticStyle:{"font-size":"10px"}},[t.loaded&&t.status.taggedPeople.length?s("span",{staticClass:"mb-0"},[s("span",{staticClass:"font-weight-light cursor-pointer",staticStyle:{color:"#718096"},attrs:{title:"Tagged People","data-toggle":"tooltip","data-placement":"bottom"},on:{click:function(e){return t.showTaggedPeopleModal()}}},[s("i",{staticClass:"fas fa-tag text-lighter"}),t._v(" "),s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.status.taggedPeople.length)+" Tagged People")])])]):t._e(),t._v(" "),t.loaded&&null!=t.status.place&&t.status.taggedPeople.length?s("span",{staticClass:"px-2 font-weight-bold text-lighter"},[t._v("•")]):t._e(),t._v(" "),t.loaded&&null!=t.status.place?s("span",{staticClass:"mb-0 cursor-pointer text-truncate",staticStyle:{color:"#718096"},on:{click:function(e){return t.redirect("/discover/places/"+t.status.place.id+"/"+t.status.place.slug)}}},[s("i",{staticClass:"fas fa-map-marked-alt text-lighter"}),t._v(" "),s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.status.place.name)+", "+t._s(t.status.place.country))])]):t._e()])])]),t._v(" "),0!=t.user?s("div",{staticClass:"float-right"},[s("div",{staticClass:"post-actions"},[s("div",[s("button",{staticClass:"btn btn-link text-dark no-caret",attrs:{title:"Post options"},on:{click:function(e){return t.ctxMenu()}}},[s("span",{staticClass:"fas fa-ellipsis-v text-muted"})])])])]):t._e()]),t._v(" "),s("div",{staticClass:"col-12 col-md-8 px-0 mx-0"},[s("div",{staticClass:"postPresenterContainer d-none d-flex justify-content-center align-items-center",staticStyle:{background:"#000"}},["photo"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"video"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-album-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-album-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("mixed-album-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):s("div",{staticClass:"w-100"},[s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])])]),t._v(" "),s("div",{staticClass:"col-12 col-md-4 px-0 d-flex flex-column border-left border-md-left-0"},[s("div",{staticClass:"d-md-flex d-none align-items-center justify-content-between card-header py-3 bg-white"},[s("div",{staticClass:"d-flex align-items-center status-username text-truncate"},[s("div",{staticClass:"status-avatar mr-2",on:{click:function(e){return t.redirect(t.profileUrl)}}},[s("img",{staticClass:"cursor-pointer",staticStyle:{"border-radius":"12px"},attrs:{src:t.statusAvatar,width:"24px",height:"24px",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}})]),t._v(" "),s("div",{staticClass:"username"},[s("span",{staticClass:"username-link font-weight-bold text-dark cursor-pointer",on:{click:function(e){return t.redirect(t.profileUrl)}}},[t._v(t._s(t.statusUsername))]),t._v(" "),t.status.account.is_admin?s("span",{staticClass:"fa-stack",staticStyle:{height:"1em","line-height":"1em","max-width":"19px"},attrs:{title:"Admin Account","data-toggle":"tooltip"}},[s("i",{staticClass:"fas fa-certificate text-danger fa-stack-1x"}),t._v(" "),s("i",{staticClass:"fas fa-crown text-white fa-sm fa-stack-1x",staticStyle:{"font-size":"7px"}})]):t._e(),t._v(" "),s("p",{staticClass:"mb-0",staticStyle:{"font-size":"10px"}},[t.loaded&&t.status.taggedPeople.length?s("span",{staticClass:"mb-0"},[s("span",{staticClass:"font-weight-light cursor-pointer",staticStyle:{color:"#718096"},attrs:{title:"Tagged People","data-toggle":"tooltip","data-placement":"bottom"},on:{click:function(e){return t.showTaggedPeopleModal()}}},[s("i",{staticClass:"fas fa-tag text-lighter"}),t._v(" "),s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.status.taggedPeople.length)+" Tagged People")])])]):t._e(),t._v(" "),t.loaded&&null!=t.status.place&&t.status.taggedPeople.length?s("span",{staticClass:"px-2 font-weight-bold text-lighter"},[t._v("•")]):t._e(),t._v(" "),t.loaded&&null!=t.status.place?s("span",{staticClass:"mb-0 cursor-pointer text-truncate",staticStyle:{color:"#718096"},on:{click:function(e){return t.redirect("/discover/places/"+t.status.place.id+"/"+t.status.place.slug)}}},[s("i",{staticClass:"fas fa-map-marked-alt text-lighter"}),t._v(" "),s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.status.place.name)+", "+t._s(t.status.place.country))])]):t._e()])])]),t._v(" "),s("div",{staticClass:"float-right"},[s("div",{staticClass:"post-actions"},[0!=t.user?s("div",[s("button",{staticClass:"btn btn-link text-dark no-caret",attrs:{title:"Post options"},on:{click:function(e){return t.ctxMenu()}}},[s("span",{staticClass:"fas fa-ellipsis-v text-muted"})])]):t._e()])])]),t._v(" "),s("div",{staticClass:"d-flex flex-md-column flex-column-reverse h-100",staticStyle:{"overflow-y":"auto"}},[s("div",{staticClass:"card-body status-comments pt-0"},[s("div",{staticClass:"status-comment"},[t.status.content.length?s("div",{staticClass:"pt-3"},[t.status.sensitive?s("div",[s("span",{staticClass:"py-3"},[s("a",{staticClass:"text-dark font-weight-bold mr-1",attrs:{href:t.profileUrl,title:t.status.account.username}},[t._v(t._s(t.truncate(t.status.account.username,15)))]),t._v(" "),s("span",{staticClass:"text-break"},[s("span",{staticClass:"font-italic text-muted"},[t._v("This comment may contain sensitive material")]),t._v(" "),s("span",{staticClass:"text-primary cursor-pointer pl-1",on:{click:function(e){t.status.sensitive=!1}}},[t._v("Show")])])])]):s("div",[s("p",{class:[t.status.content.length>620?"mb-1 read-more":"mb-1"],staticStyle:{overflow:"hidden"}},[s("a",{staticClass:"font-weight-bold pr-1 text-dark text-decoration-none",attrs:{href:t.profileUrl}},[t._v(t._s(t.statusUsername))]),t._v(" "),s("span",{staticClass:"comment-text",attrs:{id:t.status.id+"-status-readmore"},domProps:{innerHTML:t._s(t.status.content)}})])]),t._v(" "),s("hr")]):t._e(),t._v(" "),t.showComments?s("div",[t._m(0),t._v(" "),s("div",{staticClass:"postCommentsContainer d-none"},[s("p",{staticClass:"mb-1 text-center load-more-link d-none my-4"},[s("a",{staticClass:"text-dark",attrs:{href:"#",title:"Load more comments","data-toggle":"tooltip","data-placement":"bottom"},on:{click:t.loadMore}},[s("svg",{staticClass:"bi bi-plus-circle",staticStyle:{"font-size":"2em"},attrs:{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M8 3.5a.5.5 0 01.5.5v4a.5.5 0 01-.5.5H4a.5.5 0 010-1h3.5V4a.5.5 0 01.5-.5z","clip-rule":"evenodd"}}),t._v(" "),s("path",{attrs:{"fill-rule":"evenodd",d:"M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z","clip-rule":"evenodd"}}),t._v(" "),s("path",{attrs:{"fill-rule":"evenodd",d:"M8 15A7 7 0 108 1a7 7 0 000 14zm0 1A8 8 0 108 0a8 8 0 000 16z","clip-rule":"evenodd"}})])])]),t._v(" "),s("div",{staticClass:"comments mt-3"},t._l(t.results,(function(e,a){return s("div",{key:"tl"+e.id+"_"+a,staticClass:"pb-4 media"},[s("img",{staticClass:"rounded-circle border mr-3",attrs:{src:e.account.avatar,width:"42px",height:"42px",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}}),t._v(" "),s("div",{staticClass:"media-body"},[1==e.sensitive?s("div",[s("span",{staticClass:"py-3"},[s("a",{staticClass:"text-dark font-weight-bold mr-1",attrs:{href:e.account.url,title:e.account.username}},[t._v(t._s(t.truncate(e.account.username,15)))]),t._v(" "),s("span",{staticClass:"text-break"},[s("span",{staticClass:"font-italic text-muted"},[t._v("This comment may contain sensitive material")]),t._v(" "),s("span",{staticClass:"text-primary cursor-pointer pl-1",on:{click:function(t){e.sensitive=!1}}},[t._v("Show")])])])]):s("div",[s("p",{staticClass:"d-flex justify-content-between align-items-top read-more",staticStyle:{"overflow-y":"hidden"}},[s("span",[s("a",{staticClass:"text-dark font-weight-bold mr-1 text-break",attrs:{href:e.account.url,title:e.account.username}},[t._v(t._s(t.truncate(e.account.username,15)))]),t._v(" "),s("span",{staticClass:"text-break comment-body",staticStyle:{"word-break":"break-all"},domProps:{innerHTML:t._s(e.content)}})]),t._v(" "),s("span",{staticStyle:{"min-width":"38px"}},[s("span",{on:{click:function(s){return t.likeReply(e,s)}}},[s("i",{class:[e.favourited?"fas fa-heart fa-sm text-danger":"far fa-heart fa-sm text-lighter"]})]),t._v(" "),s("post-menu",{staticClass:"d-inline-block px-2",attrs:{status:e,profile:t.user,size:"sm",modal:"true"},on:{deletePost:function(s){return t.deleteComment(e.id,a)}}})],1)]),t._v(" "),s("p",{},[t._o(s("a",{staticClass:"text-muted mr-3 text-decoration-none small",staticStyle:{width:"20px"},attrs:{href:t.permalinkUrl(e)},domProps:{textContent:t._s(t.timeAgo(e.created_at))}}),0,"tl"+e.id+"_"+a),t._v(" "),e.favourites_count?s("span",{staticClass:"text-muted comment-reaction font-weight-bold mr-3"},[t._v(t._s(1==e.favourites_count?"1 like":e.favourites_count+" likes"))]):t._e(),t._v(" "),s("span",{staticClass:"text-muted comment-reaction font-weight-bold cursor-pointer",on:{click:function(s){return t.replyFocus(e,a,!0)}}},[t._v("Reply")])]),t._v(" "),e.reply_count>0?s("div",{staticClass:"cursor-pointer",on:{click:function(s){return t.toggleReplies(e)}}},[s("span",{staticClass:"show-reply-bar"}),t._v(" "),s("span",{staticClass:"comment-reaction font-weight-bold text-muted"},[t._v(t._s(e.thread?"Hide":"View")+" Replies ("+t._s(e.reply_count)+")")])]):t._e(),t._v(" "),1==e.thread?s("div",{staticClass:"comment-thread"},t._l(e.replies,(function(e,i){return s("div",{key:"cr"+e.id+"_"+a,staticClass:"pb-3 media"},[s("img",{staticClass:"rounded-circle border mr-3",attrs:{src:e.account.avatar,width:"25px",height:"25px",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}}),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"d-flex justify-content-between align-items-top read-more",staticStyle:{"overflow-y":"hidden"}},[s("span",[s("a",{staticClass:"text-dark font-weight-bold mr-1",attrs:{href:e.account.url,title:e.account.username}},[t._v(t._s(e.account.username))]),t._v(" "),s("span",{staticClass:"text-break comment-body",staticStyle:{"word-break":"break-all"},domProps:{innerHTML:t._s(e.content)}})]),t._v(" "),s("span",{staticClass:"pl-2",staticStyle:{"min-width":"38px"}},[s("span",{on:{click:function(s){return t.likeReply(e,s)}}},[s("i",{class:[e.favourited?"fas fa-heart fa-sm text-danger":"far fa-heart fa-sm text-lighter"]})]),t._v(" "),s("post-menu",{staticClass:"d-inline-block pl-2",attrs:{status:e,profile:t.user,size:"sm",modal:"true"},on:{deletePost:function(s){return t.deleteCommentReply(e.id,i,a)}}})],1)]),t._v(" "),s("p",{},[t._o(s("a",{staticClass:"text-muted mr-3 text-decoration-none small",staticStyle:{width:"20px"},attrs:{href:e.url},domProps:{textContent:t._s(t.timeAgo(e.created_at))}}),1,"cr"+e.id+"_"+a),t._v(" "),e.favourites_count?s("span",{staticClass:"text-muted comment-reaction font-weight-bold mr-3"},[t._v(t._s(1==e.favourites_count?"1 like":e.favourites_count+" likes"))]):t._e()])])])})),0):t._e()])])])})),0)])]):t._e()])]),t._v(" "),t.reactionBarLoading?s("div",{staticClass:"card-body flex-grow-0 py-4 text-center"},[t._m(1)]):s("div",{staticClass:"card-body flex-grow-0 py-1"},[t.loaded&&t.user.hasOwnProperty("id")?s("div",{staticClass:"reactions my-2 pb-1 d-flex justify-content-between"},[s("h3",{class:[t.reactions.liked?"fas fa-heart text-danger mr-3 m-0 cursor-pointer":"far fa-heart pr-3 m-0 like-btn cursor-pointer"],attrs:{title:"Like"},on:{click:t.likeStatus}}),t._v(" "),t.status.comments_disabled?t._e():s("h3",{staticClass:"far fa-comment mr-3 m-0 cursor-pointer",attrs:{title:"Comment"},on:{click:function(e){return t.replyFocus(t.status)}}}),t._v(" "),s("h3",{staticClass:"fas fa-expand m-0 mr-3 cursor-pointer",on:{click:function(e){return t.redirect(t.status.media_attachments[0].url)}}}),t._v(" "),"public"==t.status.visibility?s("h3",{class:[t.reactions.bookmarked?"fas fa-bookmark text-warning m-0 mr-3 cursor-pointer":"far fa-bookmark m-0 mr-3 cursor-pointer"],attrs:{title:"Bookmark"},on:{click:t.bookmarkStatus}}):t._e(),t._v(" "),"public"==t.status.visibility?s("h3",{class:[t.reactions.shared?"fas fa-retweet m-0 text-primary cursor-pointer":"fas fa-retweet m-0 share-btn cursor-pointer"],attrs:{title:"Share"},on:{click:t.shareStatus}}):t._e()]):t._e(),t._v(" "),s("div",{staticClass:"reaction-counts mb-0"},[t.status.liked_by.username&&t.status.liked_by.username!==t.user.username?s("div",{staticClass:"likes mb-1"},[s("span",{staticClass:"like-count"},[t._v("Liked by\n\t\t\t\t\t\t\t\t\t\t\t"),s("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?s("span",[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\tand "),s("span",{staticClass:"font-weight-bold text-dark cursor-pointer",on:{click:t.likesModal}},[t.status.liked_by.total_count_pretty?s("span",[t._v(t._s(t.status.liked_by.total_count_pretty))]):t._e(),t._v(" others")])]):t._e()])]):t._e()]),t._v(" "),s("div",{staticClass:"timestamp pt-2 d-flex align-items-bottom justify-content-between"},[s("a",{staticClass:"small text-muted",attrs:{href:t.statusUrl,title:t.status.created_at}},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(t.timestampFormat())+"\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("span",{staticClass:"small text-muted text-capitalize cursor-pointer",on:{click:t.visibilityModal}},[t._v(t._s(t.status.visibility))])])])]),t._v(" "),t.showComments?s("div",{staticClass:"card-footer bg-white sticky-md-bottom p-0"},[0==t.user.length?s("div",{staticClass:"comment-form-guest p-3"},[s("a",{attrs:{href:"/login"}},[t._v("Login")]),t._v(" to like or comment.\n\t\t\t\t\t\t\t")]):s("form",{staticClass:"border-0 rounded-0 align-middle",attrs:{method:"post",action:"/i/comment","data-id":t.statusId,"data-truncate":"false"}},[s("textarea",{staticClass:"form-control border-0 rounded-0",staticStyle:{height:"56px","line-height":"18px","max-height":"80px",resize:"none","padding-right":"4.2rem"},attrs:{name:"comment",placeholder:"Add a comment…",autocomplete:"off",autocorrect:"off"},on:{click:function(e){return t.replyFocus(t.status)}}}),t._v(" "),s("input",{staticClass:"d-inline-block btn btn-link font-weight-bold reply-btn text-decoration-none",attrs:{type:"button",value:"Post",disabled:""}})])]):t._e()])])]),t._v(" "),t.showProfileMorePosts?s("div",{staticClass:"container"},[s("p",{staticClass:"text-lighter px-3 mt-5",staticStyle:{"font-weight":"600","font-size":"15px"}},[t._v("More posts from "),s("a",{staticClass:"text-dark",attrs:{href:t.profileUrl}},[t._v(t._s(this.statusUsername))])]),t._v(" "),s("div",{staticClass:"profile-timeline mt-md-4"},[s("div",{staticClass:"row"},t._l(t.profileMorePosts,(function(e,a){return s("div",{key:"tlob:"+a,staticClass:"col-4 p-1 p-md-3"},[t._o(s("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:t.getStatusUrl(e)}},[s("div",{class:[e.sensitive?"square":"square "+e.media_attachments[0].filter_class]},["photo:album"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-images fa-2x"})]):t._e(),t._v(" "),"video"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-video fa-2x"})]):t._e(),t._v(" "),"video:album"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-film fa-2x"})]):t._e(),t._v(" "),s("div",{staticClass:"square-content",style:t.previewBackground(e)}),t._v(" "),s("div",{staticClass:"info-overlay-text"},[s("h5",{staticClass:"text-white m-auto font-weight-bold"},[s("span",[s("span",{staticClass:"far fa-heart fa-lg p-2 d-flex-inline"}),t._v(" "),s("span",{staticClass:"d-flex-inline"},[t._v(t._s(e.favourites_count))])]),t._v(" "),s("span",[s("span",{staticClass:"fas fa-retweet fa-lg p-2 d-flex-inline"}),t._v(" "),s("span",{staticClass:"d-flex-inline"},[t._v(t._s(e.reblogs_count))])])])])])]),2,"tlob:"+a)])})),0)])]):t._e()])]):t._e(),t._v(" "),"comments"===t.currentLayout?s("comment-card",{attrs:{status:t.status,profile:t.profile,backToStatus:!0},on:{"current-layout":t.setCurrentLayout}}):t._e(),t._v(" "),s("b-modal",{ref:"likesModal",attrs:{id:"l-modal","hide-footer":"",centered:"",title:"Likes","body-class":"list-group-flush py-3 px-0"}},[s("div",{staticClass:"list-group"},[t._l(t.likes,(function(e,a){return s("div",{key:"modal_likes_"+a,staticClass:"list-group-item border-0 py-1"},[s("div",{staticClass:"media"},[s("a",{attrs:{href:e.url}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:e.url}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t")])]),t._v(" "),e.local?s("p",{staticClass:"text-muted mb-0 text-truncate",staticStyle:{"font-size":"14px"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(e.display_name)+"\n\t\t\t\t\t\t")]):s("p",{staticClass:"text-muted mb-0 text-truncate mr-3",staticStyle:{"font-size":"14px"},attrs:{title:e.acct,"data-toggle":"dropdown","data-placement":"bottom"}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(e.acct.split("@")[0]))]),s("span",{staticClass:"text-lighter"},[t._v("@"+t._s(e.acct.split("@")[1]))])])])])])})),t._v(" "),s("infinite-loading",{attrs:{spinner:"spiral"},on:{infinite:t.infiniteLikesHandler}},[s("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),s("div",{attrs:{slot:"no-results"},slot:"no-results"})])],2)]),t._v(" "),s("b-modal",{ref:"sharesModal",attrs:{id:"s-modal","hide-footer":"",centered:"",title:"Shares","body-class":"list-group-flush py-3 px-0"}},[s("div",{staticClass:"list-group"},[t._l(t.shares,(function(e,a){return s("div",{key:"modal_shares_"+a,staticClass:"list-group-item border-0 py-1"},[s("div",{staticClass:"media"},[s("a",{attrs:{href:e.url}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"d-inline-block"},[s("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:e.url}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),s("p",{staticClass:"text-muted mb-0",staticStyle:{"font-size":"14px"}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(e.display_name)+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),s("p",{staticClass:"float-right"})])])])})),t._v(" "),s("infinite-loading",{attrs:{spinner:"spiral"},on:{infinite:t.infiniteSharesHandler}},[s("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),s("div",{attrs:{slot:"no-results"},slot:"no-results"})])],2)]),t._v(" "),s("b-modal",{ref:"taggedModal",attrs:{id:"tagged-modal","hide-footer":"",centered:"",title:"Tagged People","body-class":"list-group-flush py-3 px-0"}},[s("div",{staticClass:"list-group"},t._l(t.status.taggedPeople,(function(e,a){return s("div",{key:"modal_taggedpeople_"+a,staticClass:"list-group-item border-0 py-1"},[s("div",{staticClass:"media"},[s("a",{attrs:{href:"/"+e.username}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"pt-1 d-flex justify-content-between",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:"/"+e.username}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t")]),t._v(" "),e.id==t.user.id?s("button",{staticClass:"btn btn-outline-primary btn-sm py-1 px-3",on:{click:function(e){return t.untagMe()}}},[t._v("Untag Me")]):t._e()])])])])})),0),t._v(" "),s("p",{staticClass:"mb-0 text-center small text-muted font-weight-bold"},[s("a",{attrs:{href:"/site/kb/tagging-people"}},[t._v("Learn more")]),t._v(" about Tagging People.")])]),t._v(" "),s("b-modal",{ref:"ctxModal",attrs:{id:"ctx-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"list-group text-center"},[t.user&&t.user.id!=t.status.account.id&&t.relationship&&t.relationship.following?s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-danger",on:{click:function(e){return t.ctxMenuUnfollow()}}},[t._v("Unfollow")]):t._e(),t._v(" "),t.user&&t.user.id!=t.status.account.id&&t.relationship&&!t.relationship.following?s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-primary",on:{click:function(e){return t.ctxMenuFollow()}}},[t._v("Follow")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuCopyLink()}}},[t._v("Copy Link")]),t._v(" "),t.status&&t.user.id==t.status.account.id?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:t.toggleCommentVisibility}},[t._v(t._s(t.showComments?"Disable":"Enable")+" Comments")]):t._e(),t._v(" "),t.status&&t.user.id==t.status.account.id?s("a",{staticClass:"list-group-item rounded cursor-pointer text-dark text-decoration-none",attrs:{href:t.editUrl()}},[t._v("Edit")]):t._e(),t._v(" "),t.user&&1==t.user.is_admin?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxModMenu()}}},[t._v("ModTools")]):t._e(),t._v(" "),!t.status||t.user.id==t.status.account.id||t.relationship.blocking||t.user.is_admin?t._e():s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-danger",on:{click:function(e){return t.blockProfile()}}},[t._v("Block")]),t._v(" "),t.status&&t.user.id!=t.status.account.id&&t.relationship.blocking&&!t.user.is_admin?s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-danger",on:{click:function(e){return t.unblockProfile()}}},[t._v("Unblock")]):t._e(),t._v(" "),t.user&&t.user.id!=t.status.account.id&&!t.user.is_admin?s("a",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-danger text-decoration-none",attrs:{href:t.reportUrl()}},[t._v("Report")]):t._e(),t._v(" "),t.status&&(t.user.is_admin||t.user.id==t.status.account.id)?s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-danger",on:{click:function(e){return t.deletePost(t.ctxMenuStatus)}}},[t._v("Delete")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxMenu()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("div",{staticClass:"list-group text-center"},[s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:t.toggleCommentVisibility}},[t._v(t._s(t.showComments?"Disable":"Enable")+" Comments")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost("unlist")}}},[t._v("Unlist from Timelines")]),t._v(" "),t.status.sensitive?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost("remcw")}}},[t._v("Remove Content Warning")]):s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost("addcw")}}},[t._v("Add Content Warning")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),s("b-modal",{ref:"replyModal",attrs:{id:"ctx-reply-modal","hide-footer":"",centered:"",rounded:"","title-html":t.replyingToUsername?"Reply to "+t.replyingToUsername+"":"","title-tag":"p","title-class":"font-weight-bold text-muted",size:"md","body-class":"p-2 rounded"}},[s("div",[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.replyText,expression:"replyText"}],staticClass:"form-control",staticStyle:{border:"none","font-size":"18px",resize:"none","white-space":"pre-wrap",outline:"none"},attrs:{rows:"4",placeholder:"Reply here ..."},domProps:{value:t.replyText},on:{input:function(e){e.target.composing||(t.replyText=e.target.value)}}}),t._v(" "),s("div",{staticClass:"border-top border-bottom my-2"},[s("ul",{staticClass:"nav align-items-center emoji-reactions",staticStyle:{"overflow-x":"scroll","flex-wrap":"unset"}},t._l(t.emoji,(function(e){return s("li",{staticClass:"nav-item",on:{click:function(e){return t.emojiReaction(t.status)}}},[t._v(t._s(e))])})),0)]),t._v(" "),s("div",{staticClass:"d-flex justify-content-between align-items-center"},[s("div",[s("span",{staticClass:"pl-2 small text-muted font-weight-bold text-monospace"},[s("span",{class:[t.replyText.length>t.config.uploader.max_caption_length?"text-danger":"text-dark"]},[t._v(t._s(t.replyText.length>t.config.uploader.max_caption_length?t.config.uploader.max_caption_length-t.replyText.length:t.replyText.length))]),t._v("/"+t._s(t.config.uploader.max_caption_length)+"\n\t\t\t\t\t")])]),t._v(" "),s("div",{staticClass:"d-flex align-items-center"},[s("div",{staticClass:"custom-control custom-switch mr-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.replySensitive,expression:"replySensitive"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"replyModalCWSwitch"},domProps:{checked:Array.isArray(t.replySensitive)?t._i(t.replySensitive,null)>-1:t.replySensitive},on:{change:function(e){var s=t.replySensitive,a=e.target,i=!!a.checked;if(Array.isArray(s)){var o=t._i(s,null);a.checked?o<0&&(t.replySensitive=s.concat([null])):o>-1&&(t.replySensitive=s.slice(0,o).concat(s.slice(o+1)))}else t.replySensitive=i}}}),t._v(" "),s("label",{class:[t.replySensitive?"custom-control-label font-weight-bold text-dark":"custom-control-label text-lighter"],attrs:{for:"replyModalCWSwitch"}},[t._v("Mark as NSFW")])]),t._v(" "),s("button",{staticClass:"btn btn-primary btn-sm py-2 px-4 lead text-uppercase font-weight-bold",attrs:{disabled:0==t.replyText.length},on:{click:function(e){return e.preventDefault(),t.postReply()}}},[t._v("\n\t\t\t\t\t"+t._s(1==t.replySending?"POSTING":"POST")+"\n\t\t\t\t")])])])])])],1)},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"postCommentsLoader text-center py-2"},[s("div",{staticClass:"spinner-border",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"spinner-border",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])}]},91705:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"container p-0 overflow-hidden"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 col-md-6 offset-md-3"},[s("div",{staticClass:"card shadow-none border",staticStyle:{height:"100vh"}},[s("div",{staticClass:"card-header d-flex justify-content-between align-items-center"},[s("div",{staticClass:"cursor-pointer",on:{click:function(e){return t.commentNavigateBack(t.status.id)}}},[s("i",{staticClass:"fas fa-chevron-left fa-lg px-2"})]),t._v(" "),t._m(0),t._v(" "),t._m(1)]),t._v(" "),s("div",{staticClass:"card-body",staticStyle:{"overflow-y":"auto !important"}},[s("div",{staticClass:"media"},[s("img",{staticClass:"rounded-circle border mr-3",attrs:{src:t.status.account.avatar,width:"32px",height:"32px"}}),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"d-flex justify-content-between align-items-top mb-0",staticStyle:{"overflow-y":"hidden"}},[s("span",{staticClass:"mr-2",staticStyle:{"font-size":"13px"}},[s("a",{staticClass:"text-dark font-weight-bold mr-1 text-break",attrs:{href:t.profileUrl(t.status),title:t.status.account.username}},[t._v(t._s(t.trimCaption(t.status.account.username,15)))]),t._v(" "),s("span",{staticClass:"text-break comment-body",staticStyle:{"word-break":"break-all"},domProps:{innerHTML:t._s(t.status.content)}})])])])]),t._v(" "),s("hr"),t._v(" "),t._m(2),t._v(" "),s("div",{staticClass:"postCommentsContainer d-none"},[t.replies.length?s("p",{staticClass:"mb-1 text-center load-more-link my-4"},[s("a",{staticClass:"text-dark",attrs:{href:"#",title:"Load more comments"},on:{click:function(e){return e.preventDefault(),t.loadMoreComments.apply(null,arguments)}}},[s("svg",{staticClass:"bi bi-plus-circle",staticStyle:{"font-size":"2em"},attrs:{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M8 3.5a.5.5 0 01.5.5v4a.5.5 0 01-.5.5H4a.5.5 0 010-1h3.5V4a.5.5 0 01.5-.5z","clip-rule":"evenodd"}}),t._v(" "),s("path",{attrs:{"fill-rule":"evenodd",d:"M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z","clip-rule":"evenodd"}}),t._v(" "),s("path",{attrs:{"fill-rule":"evenodd",d:"M8 15A7 7 0 108 1a7 7 0 000 14zm0 1A8 8 0 108 0a8 8 0 000 16z","clip-rule":"evenodd"}})])])]):t._e(),t._v(" "),t._l(t.replies,(function(e,a){return t.replies.length?s("div",{key:"tl"+e.id+"_"+a,staticClass:"pb-3 media"},[s("img",{staticClass:"rounded-circle border mr-3",attrs:{src:e.account.avatar,width:"32px",height:"32px"}}),t._v(" "),s("div",{staticClass:"media-body"},[1==e.sensitive?s("div",[s("span",{staticClass:"py-3"},[s("a",{staticClass:"text-dark font-weight-bold mr-3",staticStyle:{"font-size":"13px"},attrs:{href:t.profileUrl(e),title:e.account.username}},[t._v(t._s(t.trimCaption(e.account.username,15)))]),t._v(" "),s("span",{staticClass:"text-break",staticStyle:{"font-size":"13px"}},[s("span",{staticClass:"font-italic text-muted"},[t._v("This comment may contain sensitive material")]),t._v(" "),s("span",{staticClass:"text-primary cursor-pointer pl-1",on:{click:function(t){e.sensitive=!1}}},[t._v("Show")])])])]):s("div",[s("p",{staticClass:"d-flex justify-content-between align-items-top read-more mb-0",staticStyle:{"overflow-y":"hidden"}},[s("span",{staticClass:"mr-3",staticStyle:{"font-size":"13px"}},[s("a",{staticClass:"text-dark font-weight-bold mr-1 text-break",attrs:{href:t.profileUrl(e),title:e.account.username}},[t._v(t._s(t.trimCaption(e.account.username,15)))]),t._v(" "),s("span",{staticClass:"text-break comment-body",staticStyle:{"word-break":"break-all"},domProps:{innerHTML:t._s(e.content)}})]),t._v(" "),s("span",{staticClass:"text-right",staticStyle:{"min-width":"30px"}},[s("span",{on:{click:function(s){return t.likeReply(e,s)}}},[s("i",{class:[e.favourited?"fas fa-heart fa-sm text-danger":"far fa-heart fa-sm text-lighter"]})]),t._v(" "),s("span",{staticClass:"pl-2 text-lighter cursor-pointer",on:{click:function(s){return t.ctxMenu(e)}}},[s("span",{staticClass:"fas fa-ellipsis-v text-lighter"})])])]),t._v(" "),s("p",{staticClass:"mb-0"},[t._o(s("a",{staticClass:"text-muted mr-3 text-decoration-none small",staticStyle:{width:"20px"},attrs:{href:t.statusUrl(e)},domProps:{textContent:t._s(t.timeAgo(e.created_at))}}),0,"tl"+e.id+"_"+a),t._v(" "),e.favourites_count?s("span",{staticClass:"text-muted comment-reaction font-weight-bold mr-3 small"},[t._v(t._s(1==e.favourites_count?"1 like":e.favourites_count+" likes"))]):t._e(),t._v(" "),s("span",{staticClass:"small text-muted comment-reaction font-weight-bold cursor-pointer",on:{click:function(s){return t.replyFocus(e,a,!0)}}},[t._v("Reply")])]),t._v(" "),e.reply_count>0?s("div",{staticClass:"cursor-pointer pb-2",on:{click:function(s){return t.toggleReplies(e)}}},[s("span",{staticClass:"show-reply-bar"}),t._v(" "),s("span",{staticClass:"comment-reaction small font-weight-bold"},[t._v(t._s(e.thread?"Hide":"View")+" Replies ("+t._s(e.reply_count)+")")])]):t._e(),t._v(" "),1==e.thread?s("div",{staticClass:"comment-thread"},t._l(e.replies,(function(e,i){return s("div",{key:"cr"+e.id+"_"+a,staticClass:"py-1 media"},[s("img",{staticClass:"rounded-circle border mr-3",attrs:{src:e.account.avatar,width:"25px",height:"25px"}}),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"d-flex justify-content-between align-items-top read-more mb-0",staticStyle:{"overflow-y":"hidden"}},[s("span",{staticClass:"mr-2",staticStyle:{"font-size":"13px"}},[s("a",{staticClass:"text-dark font-weight-bold mr-1",attrs:{href:t.profileUrl(e),title:e.account.username}},[t._v(t._s(e.account.username))]),t._v(" "),s("span",{staticClass:"text-break comment-body",staticStyle:{"word-break":"break-all"},domProps:{innerHTML:t._s(e.content)}})]),t._v(" "),s("span",[s("span",{on:{click:function(s){return t.likeReply(e,s)}}},[s("i",{class:[e.favourited?"fas fa-heart fa-sm text-danger":"far fa-heart fa-sm text-lighter"]})])])]),t._v(" "),s("p",{staticClass:"mb-0"},[t._o(s("a",{staticClass:"text-muted mr-3 text-decoration-none small",staticStyle:{width:"20px"},attrs:{href:t.statusUrl(e)},domProps:{textContent:t._s(t.timeAgo(e.created_at))}}),1,"cr"+e.id+"_"+a),t._v(" "),e.favourites_count?s("span",{staticClass:"text-muted comment-reaction font-weight-bold mr-3"},[t._v(t._s(1==e.favourites_count?"1 like":e.favourites_count+" likes"))]):t._e()])])])})),0):t._e()])])]):t._e()})),t._v(" "),t.replies.length?t._e():s("div",[s("p",{staticClass:"text-center text-muted font-weight-bold small"},[t._v("No comments yet")])])],2)]),t._v(" "),s("div",{staticClass:"card-footer mb-3"},[s("div",{staticClass:"align-middle d-flex"},[s("img",{staticClass:"rounded-circle border mr-3",attrs:{src:t.profile.avatar,width:"36",height:"36"}}),t._v(" "),s("textarea",{staticClass:"form-control rounded-pill",staticStyle:{resize:"none","overflow-y":"hidden"},attrs:{name:"comment",placeholder:"Add a comment…",autocomplete:"off",autocorrect:"off",rows:"1",maxlength:"0"},on:{click:function(e){return t.replyFocus(t.status)}}})])])])])])]),t._v(" "),s("context-menu",{ref:"cMenu",attrs:{status:t.ctxMenuStatus,profile:t.profile}}),t._v(" "),s("b-modal",{ref:"replyModal",attrs:{id:"ctx-reply-modal","hide-footer":"",centered:"",rounded:"","title-html":t.status.account?"Reply to "+t.status.account.username+"":"","title-tag":"p","title-class":"font-weight-bold text-muted",size:"md","body-class":"p-2 rounded"}},[s("div",[s("vue-tribute",{attrs:{options:t.tributeSettings}},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.replyText,expression:"replyText"}],staticClass:"form-control replyModalTextarea",attrs:{rows:"4"},domProps:{value:t.replyText},on:{input:function(e){e.target.composing||(t.replyText=e.target.value)}}})]),t._v(" "),s("div",{staticClass:"border-top border-bottom my-2"},[s("ul",{staticClass:"nav align-items-center emoji-reactions",staticStyle:{"overflow-x":"scroll","flex-wrap":"unset"}},t._l(t.emoji,(function(e){return s("li",{staticClass:"nav-item",on:{click:function(e){return t.emojiReaction(t.status)}}},[t._v(t._s(e))])})),0)]),t._v(" "),s("div",{staticClass:"d-flex justify-content-between align-items-center"},[s("div",[s("span",{staticClass:"pl-2 small text-muted font-weight-bold text-monospace"},[s("span",{class:[t.replyText.length>t.config.uploader.max_caption_length?"text-danger":"text-dark"]},[t._v(t._s(t.replyText.length>t.config.uploader.max_caption_length?t.config.uploader.max_caption_length-t.replyText.length:t.replyText.length))]),t._v("/"+t._s(t.config.uploader.max_caption_length)+"\n\t\t\t\t\t")])]),t._v(" "),s("div",{staticClass:"d-flex align-items-center"},[s("div",{staticClass:"custom-control custom-switch mr-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.replyNsfw,expression:"replyNsfw"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"replyModalCWSwitch"},domProps:{checked:Array.isArray(t.replyNsfw)?t._i(t.replyNsfw,null)>-1:t.replyNsfw},on:{change:function(e){var s=t.replyNsfw,a=e.target,i=!!a.checked;if(Array.isArray(s)){var o=t._i(s,null);a.checked?o<0&&(t.replyNsfw=s.concat([null])):o>-1&&(t.replyNsfw=s.slice(0,o).concat(s.slice(o+1)))}else t.replyNsfw=i}}}),t._v(" "),s("label",{class:[t.replyNsfw?"custom-control-label font-weight-bold text-dark":"custom-control-label text-lighter"],attrs:{for:"replyModalCWSwitch"}},[t._v("Mark as NSFW")])]),t._v(" "),s("button",{staticClass:"btn btn-primary btn-sm py-2 px-4 lead text-uppercase font-weight-bold",attrs:{disabled:0==t.replyText.length},on:{click:function(e){return e.preventDefault(),t.commentSubmit(t.status,e)}}},[t._v("\n\t\t\t\t\t\t"+t._s(1==t.replySending?"POSTING":"POST")+"\n\t\t\t\t\t")])])])],1)])],1)},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("p",{staticClass:"font-weight-bold mb-0 h5"},[t._v("Comments")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("i",{staticClass:"fas fa-cog fa-lg text-white"})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"postCommentsLoader text-center py-2"},[s("div",{staticClass:"spinner-border",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])])}]},44913:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.loaded?s("div",[t.showReplyForm?s("div",{staticClass:"card card-body shadow-none border bg-light"},[s("div",{staticClass:"media"},[s("img",{staticClass:"rounded-circle border mr-3",attrs:{src:t.profile.avatar,width:"32px",height:"32px"}}),t._v(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"reply-form form-group mb-0"},[!t.composeText||t.composeText.length<40?s("input",{directives:[{name:"model",rawName:"v-model",value:t.composeText,expression:"composeText"}],staticClass:"form-control rounded-pill",attrs:{placeholder:"Add a comment..."},domProps:{value:t.composeText},on:{input:function(e){e.target.composing||(t.composeText=e.target.value)}}}):s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.composeText,expression:"composeText"}],staticClass:"form-control",attrs:{placeholder:"Add a comment...",rows:"4"},domProps:{value:t.composeText},on:{input:function(e){e.target.composing||(t.composeText=e.target.value)}}}),t._v(" "),t.composeText&&t.composeText.length?s("div",{staticClass:"btn btn-primary btn-sm rounded-pill font-weight-bold px-3",on:{click:t.submitComment}},[t.postingComment?s("span",[t._m(0)]):s("span",[t._v("Post")])]):t._e()]),t._v(" "),t.composeText?s("div",{staticClass:"reply-options",model:{value:t.visibility,callback:function(e){t.visibility=e},expression:"visibility"}},[t._m(1),t._v(" "),s("div",{staticClass:"custom-control custom-switch"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.sensitive,expression:"sensitive"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"sensitive"},domProps:{checked:Array.isArray(t.sensitive)?t._i(t.sensitive,null)>-1:t.sensitive},on:{change:function(e){var s=t.sensitive,a=e.target,i=!!a.checked;if(Array.isArray(s)){var o=t._i(s,null);a.checked?o<0&&(t.sensitive=s.concat([null])):o>-1&&(t.sensitive=s.slice(0,o).concat(s.slice(o+1)))}else t.sensitive=i}}}),t._v(" "),t._m(2)]),t._v(" "),s("span",{staticClass:"text-muted font-weight-bold small"},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.composeText.length)+" / 500\n\t\t\t\t\t\t")])]):t._e()])])]):t._e(),t._v(" "),s("div",{staticClass:"d-none card card-body shadow-none border rounded-0 border-top-0 bg-light"},[s("div",{staticClass:"d-flex justify-content-between align-items-center"},[s("p",{staticClass:"font-weight-bold text-muted mb-0 mr-md-5"},[s("i",{staticClass:"fas fa-comment mr-1"}),t._v("\n\t\t\t\t\t"+t._s(t.formatCount(t.pagination.total))+"\n\t\t\t\t")]),t._v(" "),s("h4",{staticClass:"font-weight-bold mb-0 text-lighter"},[t._v("Comments")]),t._v(" "),t._m(3)])]),t._v(" "),t._l(t.feed,(function(t,e){return s("status-card",{key:"replies:"+e,attrs:{status:t,size:"small"}})})),t._v(" "),t.pagination.links.hasOwnProperty("next")?s("div",{staticClass:"card card-body shadow-none rounded-0 border border-top-0 py-3"},[t.loadingMoreComments?s("button",{staticClass:"btn btn-primary",attrs:{disabled:""}},[t._m(4)]):s("button",{staticClass:"btn btn-primary font-weight-bold",on:{click:t.loadMoreComments}},[t._v("Load more comments")])]):t._e(),t._v(" "),t.ctxStatus&&t.profile?s("context-menu",{ref:"cMenu",attrs:{status:t.ctxStatus,profile:t.profile},on:{"status-delete":t.statusDeleted}}):t._e()],2):s("div")])},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("select",{staticClass:"form-control form-control-sm rounded-pill font-weight-bold"},[s("option",{attrs:{value:"public"}},[t._v("Public")]),t._v(" "),s("option",{attrs:{value:"private"}},[t._v("Followers Only")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("label",{staticClass:"custom-control-label font-weight-bold text-lighter",attrs:{for:"sensitive"}},[s("span",{staticClass:"d-none d-md-inline-block"},[t._v("Sensitive/")]),t._v("NSFW\n\t\t\t\t\t\t\t")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"form-group mb-0"},[s("select",{staticClass:"form-control form-control-sm"},[s("option",[t._v("New")]),t._v(" "),s("option",[t._v("Oldest")])])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])}]},22372:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modal-stack"},[s("b-modal",{ref:"ctxModal",attrs:{id:"ctx-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"list-group text-center"},["archived"!==t.status.visibility?s("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?s("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?s("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?s("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?s("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?s("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?s("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?s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxMenu()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("div",{staticClass:"list-group text-center"},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("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?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"remcw")}}},[t._v("Remove Content Warning")]):s("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(" "),s("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"),s("br"),t._v(" "),s("span",{staticClass:"small"},[t._v("Unlist + CW existing and future posts")])]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("div",{staticClass:"list-group text-center"},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Unlist Posts")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Moderation Log")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModOtherMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("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(" "),s("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?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuEmbed()}}},[t._v("Embed")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxShareMenu()}}},[t._v("Cancel")])]),t._v(" "),s("b-modal",{ref:"ctxEmbedModal",attrs:{id:"ctx-embed-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"md","body-class":"p-2 rounded"}},[s("div",[s("div",{staticClass:"form-group"},[s("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(" "),s("div",{staticClass:"form-group pl-2 d-flex justify-content-center"},[s("div",{staticClass:"form-check mr-3"},[s("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 s=t.ctxEmbedShowCaption,a=e.target,i=!!a.checked;if(Array.isArray(s)){var o=t._i(s,null);a.checked?o<0&&(t.ctxEmbedShowCaption=s.concat([null])):o>-1&&(t.ctxEmbedShowCaption=s.slice(0,o).concat(s.slice(o+1)))}else t.ctxEmbedShowCaption=i}}}),t._v(" "),s("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(" "),s("div",{staticClass:"form-check mr-3"},[s("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 s=t.ctxEmbedShowLikes,a=e.target,i=!!a.checked;if(Array.isArray(s)){var o=t._i(s,null);a.checked?o<0&&(t.ctxEmbedShowLikes=s.concat([null])):o>-1&&(t.ctxEmbedShowLikes=s.slice(0,o).concat(s.slice(o+1)))}else t.ctxEmbedShowLikes=i}}}),t._v(" "),s("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(" "),s("div",{staticClass:"form-check"},[s("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 s=t.ctxEmbedCompactMode,a=e.target,i=!!a.checked;if(Array.isArray(s)){var o=t._i(s,null);a.checked?o<0&&(t.ctxEmbedCompactMode=s.concat([null])):o>-1&&(t.ctxEmbedCompactMode=s.slice(0,o).concat(s.slice(o+1)))}else t.ctxEmbedCompactMode=i}}}),t._v(" "),s("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(" "),s("hr"),t._v(" "),s("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(" "),s("p",{staticClass:"mb-0 px-2 small text-muted"},[t._v("By using this embed, you agree to our "),s("a",{attrs:{href:"/site/terms"}},[t._v("Terms of Use")])])])]),t._v(" "),s("b-modal",{ref:"ctxReport",attrs:{id:"ctx-report","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group text-center"},[s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("spam")}}},[t._v("Spam")]),t._v(" "),s("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(" "),s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.openCtxReportOtherMenu()}}},[t._v("Other")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group text-center"},[s("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(" "),s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("impersonation")}}},[t._v("Impersonation")]),t._v(" "),s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportOtherMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),s("b-modal",{ref:"ctxConfirm",attrs:{id:"ctx-confirm","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"d-flex align-items-center justify-content-center py-3"},[s("div",[t._v(t._s(this.confirmModalTitle))])]),t._v(" "),s("div",{staticClass:"d-flex border-top btn-group btn-group-block rounded-0",attrs:{role:"group"}},[s("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(" "),s("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)},i=[]},37860:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"card shadow-none rounded-0",class:{border:t.showBorder,"border-top-0":!t.showBorderTop}},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"media"},[s("img",{staticClass:"rounded-circle box-shadow mr-2",attrs:{src:t.status.account.avatar,width:"32px",height:"32px",alt:"avatar"}}),t._v(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"pl-2 d-flex align-items-top"},[s("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(" "),s("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(" "),s("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(" "),s("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(" "),s("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(" "),s("span",{staticClass:"d-none d-md-block px-1 text-lighter font-weight-bold"},[t.status.poll.expired?s("span",[t._v("\n\t\t\t\t\t\t\t\tClosed\n\t\t\t\t\t\t\t")]):s("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(" "),s("span",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[s("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[s("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),s("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]),t._v(" "),s("div",{staticClass:"pl-2"},[s("div",{staticClass:"poll py-3"},[s("div",{staticClass:"pt-2 text-break d-flex align-items-center mb-3",staticStyle:{"font-size":"17px"}},[t._m(1),t._v(" "),s("span",{staticClass:"font-weight-bold ml-3",domProps:{innerHTML:t._s(t.status.content)}})]),t._v(" "),s("div",{staticClass:"mb-2"},["vote"===t.tab?s("div",[t._l(t.status.poll.options,(function(e,a){return s("p",[s("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(e.title)+"\n\t\t\t\t\t\t\t\t\t\t")])])})),t._v(" "),null!=t.selectedIndex?s("p",{staticClass:"text-right"},[s("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?s("div",t._l(t.status.poll.options,(function(e,a){return s("div",{staticClass:"mb-3"},[s("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(e.title)+"\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("div",{staticClass:"font-weight-bold"},[s("span",{staticClass:"text-muted"},[t._v(t._s(t.calculatePercentage(e))+"%")]),t._v(" "),s("span",{staticClass:"small text-lighter"},[t._v("("+t._s(e.votes_count)+" "+t._s(1==e.votes_count?"vote":"votes")+")")])])])})),0):"results"===t.tab?s("div",t._l(t.status.poll.options,(function(e,a){return s("div",{staticClass:"mb-3"},[s("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(e.title)+"\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("div",{staticClass:"font-weight-bold"},[s("span",{staticClass:"text-muted"},[t._v(t._s(t.calculatePercentage(e))+"%")]),t._v(" "),s("span",{staticClass:"small text-lighter"},[t._v("("+t._s(e.votes_count)+" "+t._s(1==e.votes_count?"vote":"votes")+")")])])])})),0):t._e()]),t._v(" "),s("div",[s("p",{staticClass:"mb-0 small text-lighter font-weight-bold d-flex justify-content-between"},[s("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?s("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?s("span",{staticClass:"text-lighter"},[t._m(2)]):t._e()])]),t._v(" "),s("div",[s("span",{staticClass:"d-block d-md-none small text-lighter font-weight-bold"},[t.status.poll.expired?s("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tClosed\n\t\t\t\t\t\t\t\t\t")]):s("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(" "),s("context-menu",{ref:"contextMenu",attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1)},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("span",{staticClass:"d-none d-md-block px-1 text-primary font-weight-bold"},[s("i",{staticClass:"fas fa-poll-h"}),t._v(" Poll "),s("sup",{staticClass:"text-lighter"},[t._v("BETA")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"btn btn-primary px-2 py-1"},[e("i",{staticClass:"fas fa-poll-h fa-lg"})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])}]},91927:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"status-card-component",class:{"status-card-sm":"small"===t.size}},["text"===t.status.pf_type?s("div",{staticClass:"card shadow-none border rounded-0",class:{"border-top-0":!t.hasTopBorder}},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"media"},[s("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(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"pl-2 d-flex align-items-top"},[s("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("\n\t\t\t\t\t\t\tLoading...\n\t\t\t\t\t\t")]),t._v(" "),s("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(" "),s("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(" "),s("span",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[s("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[s("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),s("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]),t._v(" "),s("div",{staticClass:"pl-2"},[t.status.sensitive?s("details",[s("summary",{staticClass:"mb-2 font-weight-bold text-muted"},[t._v("Content Warning")]),t._v(" "),s("p",{staticClass:"pt-2 text-break status-content",domProps:{innerHTML:t._s(t.status.content)}})]):s("p",{staticClass:"pt-2 text-break status-content",domProps:{innerHTML:t._s(t.status.content)}}),t._v(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("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?s("div",[s("poll-card",{attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1):s("div",{staticClass:"card rounded-0 border-top-0 status-card card-md-rounded-0 shadow-none border"},[t.status?s("div",{staticClass:"card-header d-inline-flex align-items-center bg-white"},[s("div",[s("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(" "),s("div",{staticClass:"pl-2"},[s("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("\n\t\t\t\t\tLoading...\n\t\t\t\t")]),t._v(" "),t.status.account.is_admin?s("span",{staticClass:"fa-stack",staticStyle:{height:"1em","line-height":"1em","max-width":"19px"},attrs:{title:"Admin Account","data-toggle":"tooltip"}},[s("i",{staticClass:"fas fa-certificate text-danger fa-stack-1x"}),t._v(" "),s("i",{staticClass:"fas fa-crown text-white fa-sm fa-stack-1x",staticStyle:{"font-size":"7px"}})]):t._e(),t._v(" "),s("div",{staticClass:"d-flex align-items-center"},[t.status.place?s("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"}},[s("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(" "),t.canFollow(t.status)?s("div",[s("span",{staticClass:"px-2"}),t._v(" "),s("button",{staticClass:"btn btn-primary btn-sm font-weight-bold py-1 px-3 rounded-lg",on:{click:function(e){return t.follow(t.status.account.id)}}},[s("i",{staticClass:"far fa-user-plus mr-1"}),t._v(" Follow")])]):t._e(),t._v(" "),t.status.hasOwnProperty("relationship")&&t.status.relationship.hasOwnProperty("following")&&t.status.relationship.following?s("div",[s("span",{staticClass:"px-2"}),t._v(" "),s("button",{staticClass:"btn btn-outline-primary btn-sm font-weight-bold py-1 px-3 rounded-lg",on:{click:function(e){return t.unfollow(t.status.account.id)}}},[s("i",{staticClass:"far fa-user-check mr-1"}),t._v(" Following")])]):t._e(),t._v(" "),s("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[s("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[s("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),s("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]):t._e(),t._v(" "),s("div",{staticClass:"postPresenterContainer",staticStyle:{background:"#000"}},["photo"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):"video"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("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?s("div",{staticClass:"w-100"},[s("video-album-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("mixed-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):s("div",{staticClass:"w-100"},[s("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?s("div",{staticClass:"card-body border-top border-bottom py-2 cursor-pointer pr-2",on:{click:function(e){return t.labelRedirect()}}},[s("p",{staticClass:"font-weight-bold d-flex justify-content-between align-items-center mb-0"},[s("span",[s("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(" "),s("div",{staticClass:"card-body"},[t.reactionBar?s("div",{staticClass:"reactions my-1 pb-2"},[t.status.favourited?s("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)}}}):s("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():s("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?s("span",{staticClass:"float-right"},[s("span",{staticClass:"font-weight-light small",staticStyle:{color:"#718096"}},[s("i",{staticClass:"far fa-user",attrs:{"data-toggle":"tooltip",title:"Tagged People"}}),t._v(" "),t._l(t.status.taggedPeople,(function(t,e){return s("span",{staticClass:"mr-n2"},[s("a",{attrs:{href:"/"+t.username}},[s("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?s("div",{staticClass:"likes mb-1"},[s("span",{staticClass:"like-count"},[t._v("Liked by\n\t\t\t\t\t"),s("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?s("span",[t._v("\n\t\t\t\t\t\tand "),t.status.liked_by.total_count_pretty?s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.status.liked_by.total_count_pretty))]):t._e(),t._v(" "),s("span",{staticClass:"font-weight-bold"},[t._v("others")])]):t._e()])]):t._e(),t._v(" "),"text"!=t.status.pf_type?s("div",{staticClass:"caption"},[t.status.sensitive?t._e():s("p",{staticClass:"mb-2 read-more",staticStyle:{overflow:"hidden"}},[s("span",{staticClass:"username font-weight-bold"},[s("bdi",[s("a",{staticClass:"text-dark",attrs:{href:t.profileUrl(t.status)}},[t._v(t._s(t.status.account.username))])])]),t._v(" "),s("span",{staticClass:"status-content",domProps:{innerHTML:t._s(t.content)}})])]):t._e(),t._v(" "),s("div",{staticClass:"timestamp mt-2"},[s("p",{staticClass:"small mb-0"},["archived"!=t.status.visibility?s("a",{staticClass:"text-muted text-uppercase",attrs:{href:t.statusUrl(t.status)}},[s("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):s("span",{staticClass:"text-muted text-uppercase"},[t._v("\n\t\t\t\t\t\tPosted "),s("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?s("span",[s("span",{staticClass:"px-1"},[t._v("·")]),t._v(" "),s("span",{staticClass:"text-muted"},[t._v("Based on popular and trending content")])]):t._e()])])])]),t._v(" "),s("context-menu",{ref:"contextMenu",attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1)},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("span",[e("i",{staticClass:"fas fa-chevron-right text-lighter"})])}]},2999:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",[s("details",{staticClass:"details-animated"},[s("summary",[s("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(" "),s("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),s("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(e,a){return s("b-carousel-slide",{key:e.id+"-media"},["video"==e.type?s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:e.description,width:"100%",height:"100%",poster:e.preview_url},slot:"img"},[s("source",{attrs:{src:e.url,type:e.mime}})]):"image"==e.type?s("div",{attrs:{slot:"img",title:e.description},slot:"img"},[s("img",{class:e.filter_class+" d-block img-fluid w-100",attrs:{src:e.url,alt:e.description,loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})]):s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])})),1)],1)]):s("div",{staticClass:"w-100 h-100 p-0"},[s("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(e,a){return s("slide",{key:"px-carousel-"+e.id+"-"+a,staticClass:"w-100 h-100 d-block mx-auto text-center",staticStyle:{background:"#000",display:"flex","align-items":"center"}},["video"==e.type?s("video",{staticClass:"embed-responsive-item",attrs:{preload:"none",controls:"",loop:"",title:e.description,width:"100%",height:"100%",poster:e.preview_url}},[s("source",{attrs:{src:e.url,type:e.mime}})]):"image"==e.type?s("div",{attrs:{title:e.description}},[s("img",{class:e.filter_class+" img-fluid w-100",attrs:{src:e.url,alt:e.description,loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})]):s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])})),1)],1)},i=[]},21761:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",{staticClass:"content-label-wrapper"},[s("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),s("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),s("p",{staticClass:"text-center py-2"},[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(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):s("div",{staticClass:"w-100 h-100 p-0"},[s("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(e,a){return s("slide",{key:"px-carousel-"+e.id+"-"+a,staticStyle:{background:"#000",display:"flex","align-items":"center"},attrs:{title:e.description}},[s("img",{class:e.filter_class+" img-fluid w-100 p-0",attrs:{src:e.url,alt:t.altText(e),loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}}),t._v(" "),!t.status.sensitive&&t.sensitive?s("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}}},[s("i",{staticClass:"fas fa-eye-slash fa-lg"})]):t._e(),t._v(" "),t.status.media_attachments[0].license?s("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))"}},[s("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.url}},[t._v("Photo")]),t._v(" by "),s("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 "),s("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)],1)},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])}]},65654:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",{staticClass:"content-label-wrapper"},[s("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),s("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),s("p",{staticClass:"text-center py-2"},[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(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):s("div",[s("div",{staticStyle:{position:"relative"},attrs:{title:t.status.media_attachments[0].description}},[s("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?s("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}}},[s("i",{staticClass:"fas fa-eye-slash fa-lg"})]):t._e(),t._v(" "),t.status.media_attachments[0].license?s("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))"}},[s("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.url}},[t._v("Photo")]),t._v(" by "),s("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 "),s("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()])])},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])}]},7592:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",[s("details",{staticClass:"details-animated"},[s("summary",[s("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(" "),s("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),s("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,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:t.description,width:"100%",height:"100%",poster:t.preview_url},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)]):s("div",[s("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,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:t.description,width:"100%",height:"100%",poster:t.preview_url},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)},i=[]},53678:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",{staticClass:"content-label-wrapper"},[s("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),s("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),s("p",{staticClass:"text-center py-2"},[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(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):s("div",{staticClass:"embed-responsive embed-responsive-16by9"},[s("video",{staticClass:"video",attrs:{controls:"",playsinline:"",preload:"metadata",loop:"",poster:t.status.media_attachments[0].preview_url,"data-id":t.status.id}},[s("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])}]}},t=>{t.O(0,[898],(()=>{return e=68059,t(t.s=e);var e}));t.O()}]); \ No newline at end of file +(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[155],{14425:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(19755);const i={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,s){var a=t.account.username;switch(e){case"autocw":var i="Are you sure you want to enforce CW for "+a+" ?";swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0});break;case"suspend":i="Are you sure you want to suspend the account of "+a+" ?",swal({title:"Confirm",text:i,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")}}}},53144:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>u});var a=s(19210),i=s(37468),o=s(97622),n=s(33823),r=s(19755);function l(t){return function(t){if(Array.isArray(t))return c(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 c(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return c(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 c(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,a=new Array(e);s0?((a=e.likes).push.apply(a,l(i.data)),e.likesPage++,t.loaded()):t.complete()}))},infiniteSharesHandler:function(t){var e=this;axios.get("/api/v2/shares/profile/"+this.statusUsername+"/status/"+this.statusId,{params:{page:this.sharesPage}}).then((function(s){var a,i=s.data;i.data.length>0?((a=e.shares).push.apply(a,l(i.data)),e.sharesPage++,t.loaded()):t.complete()}))},likeStatus:function(t){var e=this;0!=r("body").hasClass("loggedIn")?(axios.post("/i/like",{item:this.status.id}).then((function(s){if(e.status.favourites_count=s.data.count,1==e.reactions.liked){e.reactions.liked=!1;var a=e.user.id;e.likes=e.likes.filter((function(t){return t.id!==a}))}else{e.reactions.liked=!0;var i=e.user;e.likes.unshift(i),setTimeout((function(){t.target.classList.add("animate__animated","animate__bounce")}),100)}})).catch((function(t){console.error(t),swal("Error","Something went wrong, please try again later.","error")})),window.navigator.vibrate(200)):window.location.href="/login?next="+encodeURIComponent(window.location.pathname)},shareStatus:function(){var t=this;0!=r("body").hasClass("loggedIn")?axios.post("/i/share",{item:this.status.id}).then((function(e){if(t.status.reblogs_count=e.data.count,1==t.reactions.shared){t.reactions.shared=!1;var s=t.user.id;t.shares=t.shares.filter((function(t){return t.id!==s}))}else{t.reactions.shared=!0;var a=t.user;t.shares.push(a)}})).catch((function(t){console.error(t),swal("Error","Something went wrong, please try again later.","error")})):window.location.href="/login?next="+encodeURIComponent(window.location.pathname)},bookmarkStatus:function(){var t=this;0!=r("body").hasClass("loggedIn")?axios.post("/i/bookmark",{item:this.status.id}).then((function(e){1==t.reactions.bookmarked?t.reactions.bookmarked=!1:t.reactions.bookmarked=!0})).catch((function(t){swal("Error","Something went wrong, please try again later.","error")})):window.location.href="/login?next="+encodeURIComponent(window.location.pathname)},blockProfile:function(){var t=this;0!=r("body").hasClass("loggedIn")&&axios.post("/i/block",{type:"user",item:this.status.account.id}).then((function(e){t.$refs.ctxModal.hide(),t.relationship.blocking=!0,swal("Success","You have successfully blocked "+t.status.account.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))},unblockProfile:function(){var t=this;0!=r("body").hasClass("loggedIn")&&axios.post("/i/unblock",{type:"user",item:this.status.account.id}).then((function(e){t.relationship.blocking=!1,t.$refs.ctxModal.hide(),swal("Success","You have successfully unblocked "+t.status.account.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))},deletePost:function(t){if(this.ownerOrAdmin()&&confirm("Are you sure you want to delete this post?")){if(0==r("body").hasClass("loggedIn"))return;axios.post("/i/delete",{type:"status",item:this.status.id}).then((function(t){swal("Success","You have successfully deleted this post","success"),setTimeout((function(){window.location.href="/"}),3e3)})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))}},owner:function(){return this.user.id===this.status.account.id},admin:function(){return 1==this.user.is_admin},ownerOrAdmin:function(){return this.owner()||this.admin()},postReply:function(){var t=this;if(this.replySending=!0,0==this.replyText.length||this.replyText.trim()=="@"+this.status.account.acct)return t.replyText=null,void r('textarea[name="comment"]').blur();var e={item:this.replyingToId,comment:this.replyText,sensitive:this.replySensitive};this.replyText="",axios.post("/i/comment",e).then((function(e){var s=e.data.entity;if(s.in_reply_to_id==t.status.id){"metro"==t.layout?t.results.push(s):t.results.unshift(s);var a=r(".status-comments")[0];a.scrollTop=2*a.clientHeight}else if(t.replyToIndex>=0){var i=t.results[t.replyToIndex];i.replies.push(s),i.reply_count=i.reply_count+1}t.$refs.replyModal.hide(),t.replySending=!1}))},deleteComment:function(t,e){var s=this;axios.post("/i/delete",{type:"comment",item:t}).then((function(t){s.results.splice(e,1)})).catch((function(t){swal("Something went wrong!","Please try again later","error")}))},deleteCommentReply:function(t,e,s){var a=this;axios.post("/i/delete",{type:"comment",item:t}).then((function(t){a.results[s].replies.splice(e,1),--a.results[s].reply_count})).catch((function(t){swal("Something went wrong!","Please try again later","error")}))},l:function(t){return t.length<10?t:t.substr(0,10)+"..."},replyFocus:function(t,e){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(0!=r("body").hasClass("loggedIn")){if(!this.status.comments_disabled){this.replyToIndex=e,this.replyingToId=t.id,this.replyingToUsername=t.account.username,this.reply_to_profile_id=t.account.id;var a=t.account.local?"@"+t.account.username+" ":"@"+t.account.acct+" ";1==s&&(this.replyText=a),this.$refs.replyModal.show()}}else this.redirect("/login?next="+encodeURIComponent(window.location.pathname))},fetchComments:function(){var t=this,e="/api/v2/comments/"+this.statusProfileId+"/status/"+this.statusId;axios.get(e).then((function(e){t.results="metro"==t.layout?_.reverse(e.data.data):e.data.data,t.pagination=e.data.meta.pagination,t.results.length>0&&r(".load-more-link").removeClass("d-none"),r(".postCommentsLoader").addClass("d-none"),r(".postCommentsContainer").removeClass("d-none"),setTimeout((function(){document.querySelectorAll(".status-comment .postCommentsContainer .comment-body a").forEach((function(t,e){t.href=App.util.format.rewriteLinks(t)}))}),500)})).catch((function(t){if(t.response)if(401===t.response.status)r(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("Please login to view.");else r(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch comments. Please try again later.");else r(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch comments. Please try again later.")}))},loadMore:function(t){var e=this;if(t.preventDefault(),1!=this.pagination.total_pages&&this.pagination.current_page!=this.pagination.total_pages){r(".load-more-link").addClass("d-none"),r(".postCommentsLoader").removeClass("d-none");var s=this.pagination.links.next;axios.get(s).then((function(t){var s=t.data.data;r(".postCommentsLoader").addClass("d-none");for(var a=0;a0)return void(t.thread=!0);var e="/api/v2/comments/"+t.account.id+"/status/"+t.id;axios.get(e).then((function(e){t.replies=_.reverse(e.data.data),t.thread=!0}))}},redirect:function(t){window.location.href=t},permalinkUrl:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=t.account;return 1==s.local||e?t.url:"/i/web/post/_/"+s.id+"/"+t.id},fetchProfilePosts:function(){if(r("body").hasClass("loggedIn")||!this.loaded){var t=this,e="/api/pixelfed/v1/accounts/"+this.statusProfileId+"/statuses";axios.get(e,{params:{only_media:!0,min_id:1,limit:9}}).then((function(e){var s=e.data.filter((function(e){return e.media_attachments.length>0&&e.id!=t.statusId&&0==e.sensitive}));s.map((function(t){return t.id}));t.profileMorePosts=s.slice(0,6)}))}},previewUrl:function(t){return t.sensitive?"/storage/no-preview.png?v="+(new Date).getTime():t.media_attachments[0].preview_url},previewBackground:function(t){return"background-image: url("+this.previewUrl(t)+");"},getStatusUrl:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return 1==t.local||1==e?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},showTaggedPeopleModal:function(){!r("body").hasClass("loggedIn")&&this.loaded||this.$refs.taggedModal.show()},untagMe:function(){var t=this;this.$refs.taggedModal.hide();var e=this.user.id;axios.post("/api/local/compose/tag/untagme",{status_id:this.statusId,profile_id:e}).then((function(s){t.status.taggedPeople=t.status.taggedPeople.filter((function(t){return t.id!=e})),swal("Untagged","You have been untagged from this post.","success")})).catch((function(t){swal("An Error Occurred","Please try again later.","error")}))},copyPostUrl:function(){navigator.clipboard.writeText(this.statusUrl)},moderatePost:function(t,e){var s=this.status,a=(s.account.username,""),i=this;switch(t){case"addcw":a="Are you sure you want to add a content warning to this post?",swal({title:"Confirm",text:a,icon:"warning",buttons:!0,dangerMode:!0}).then((function(e){e&&axios.post("/api/v2/moderator/action",{action:t,item_id:s.id,item_type:"status"}).then((function(t){swal("Success","Successfully added content warning","success"),s.sensitive=!0,i.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),i.ctxModMenuClose()}))}));break;case"remcw":a="Are you sure you want to remove the content warning on this post?",swal({title:"Confirm",text:a,icon:"warning",buttons:!0,dangerMode:!0}).then((function(e){e&&axios.post("/api/v2/moderator/action",{action:t,item_id:s.id,item_type:"status"}).then((function(t){swal("Success","Successfully added content warning","success"),s.sensitive=!1,i.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),i.ctxModMenuClose()}))}));break;case"unlist":a="Are you sure you want to unlist this post?",swal({title:"Confirm",text:a,icon:"warning",buttons:!0,dangerMode:!0}).then((function(e){e&&axios.post("/api/v2/moderator/action",{action:t,item_id:s.id,item_type:"status"}).then((function(t){swal("Success","Successfully unlisted post","success"),i.ctxModMenuClose()})).catch((function(t){i.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")}))}))}},ctxMenu:function(){this.$refs.ctxModal.show()},closeCtxMenu:function(t){this.$refs.ctxModal.hide()},ctxModMenu:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.show()},ctxModMenuClose:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.hide()},ctxMenuCopyLink:function(){var t=this.status;navigator.clipboard.writeText(t.url),this.closeCtxMenu()},ctxMenuFollow:function(){var t=this,e=this.status.account.id;axios.post("/i/follow",{item:e}).then((function(e){var s=t.status.account.acct;t.relationship.following=!0,t.$refs.ctxModal.hide(),setTimeout((function(){swal("Follow successful!","You are now following "+s,"success")}),500)}))},ctxMenuUnfollow:function(){var t=this,e=this.status.account.id;axios.post("/i/follow",{item:e}).then((function(e){var s=t.status.account.acct;t.relationship.following=!1,t.$refs.ctxModal.hide(),setTimeout((function(){swal("Unfollow successful!","You are no longer following "+s,"success")}),500)}))},setCurrentLayout:function(t){this.currentLayout=t},commentFocus:function(t,e){t.comments_disabled||(this.replies={},this.replyStatus={},this.replyText="",this.replyId=t.id,this.replyStatus=t,this.fetchStatusComments(t,""),r("nav").hide(),r("footer").hide(),r(".mobile-footer-spacer").attr("style","display:none !important"),r(".mobile-footer").attr("style","display:none !important"),r(".mt-md-4").hide(),this.currentLayout="comments",window.history.pushState({},"",this.getStatusUrl(t)))},fetchStatusComments:function(t,e){var s=this,a="/api/v2/comments/"+t.account.id+"/status/"+t.id;axios.get(a).then((function(t){s.replies=_.reverse(t.data.data),s.pagination=t.data.meta.pagination,s.replies.length>0&&r(".load-more-link").removeClass("d-none"),r(".postCommentsLoader").addClass("d-none"),r(".postCommentsContainer").removeClass("d-none")})).catch((function(t){if(t.response)if(401===t.response.status)r(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("Please login to view.");else r(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch comments. Please try again later.");else r(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch comments. Please try again later.")}))}}}},36624:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(20415),i=s(19755);const o={props:{status:{type:Object},profile:{type:Object},backToStatus:{type:Boolean,default:!1}},components:{"context-menu":a.default},data:function(){return{ids:[],config:window.App.config,tributeSettings:{collection:[{trigger:"@",menuShowMinLength:2,values:function(t,e){axios.get("/api/compose/v0/search/mention",{params:{q:t}}).then((function(t){e(t.data)})).catch((function(t){console.log(t)}))}},{trigger:"#",menuShowMinLength:2,values:function(t,e){axios.get("/api/compose/v0/search/hashtag",{params:{q:t}}).then((function(t){e(t.data)})).catch((function(t){console.log(t)}))}}]},replies:[],replyId:null,replyText:"",replyNsfw:!1,replySending:!1,pagination:{},ctxMenuStatus:!1,emoji:window.App.util.emoji}},beforeMount:function(){this.fetchComments()},methods:{commentNavigateBack:function(t){if(this.backToStatus)window.location.href=this.statusUrl(this.status);else{i("nav").show(),i("footer").show(),i(".mobile-footer-spacer").attr("style","display:block"),i(".mobile-footer").attr("style","display:block"),this.$emit("current-layout","feed");window.history.pushState({},"","/")}},trimCaption:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60;return _.truncate(t,{length:e})},replyFocus:function(t,e){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(0!=i("body").hasClass("loggedIn")){if(!this.status.comments_disabled){this.replyToIndex=e,this.replyingToId=t.id,this.replyingToUsername=t.account.username,this.reply_to_profile_id=t.account.id;var a=t.account.local?"@"+t.account.username+" ":"@"+t.account.acct+" ";1==s&&(this.replyText=a),this.$refs.replyModal.show(),setTimeout((function(){i(".replyModalTextarea").focus()}),500)}}else this.redirect("/login?next="+encodeURIComponent(window.location.pathname))},commentSubmit:function(t,e){var s=this;this.replySending=!0;var a=t.id,i=this.replyText,o=this.config.uploader.max_caption_length;if(i.length>o)return this.replySending=!1,void swal("Comment Too Long","Please make sure your comment is "+o+" characters or less.","error");axios.post("/i/comment",{item:a,comment:i,sensitive:this.replyNsfw}).then((function(t){s.replyText="",s.replies.push(t.data.entity),s.$refs.replyModal.hide()})),this.replySending=!1},timeAgo:function(t){return App.util.format.timeAgo(t)},fetchComments:function(){var t=this;console.log("Fetching comments...");var e="/api/v2/comments/"+this.status.account.id+"/status/"+this.status.id;axios.get(e).then((function(e){t.replies=e.data.data,t.pagination=e.data.meta.pagination})).catch((function(t){if(t.response)if(401===t.response.status)i(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("Please login to view.");else i(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch comments. Please try again later.");else i(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch comments. Please try again later.")}))},loadMoreComments:function(){var t=this;if(1!=this.pagination.total_pages&&this.pagination.current_page!=this.pagination.total_pages){i(".load-more-link").addClass("d-none"),i(".postCommentsLoader").removeClass("d-none");var e=this.pagination.links.next;axios.get(e).then((function(e){var s=e.data.data;i(".postCommentsLoader").addClass("d-none");for(var a=0;a{"use strict";s.r(e),s.d(e,{default:()=>l});var a=s(20415),i=s(19210),o=s(19755);function n(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return r(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))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 s=0,a=new Array(e);s{"use strict";s.r(e),s.d(e,{default:()=>i});var a=s(19755);const i={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 s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)},ctxEmbedShowLikes:function(t,e){1==t&&(this.ctxEmbedCompactMode=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)},ctxEmbedCompactMode:function(t,e){1==t&&(this.ctxEmbedShowCaption=!1,this.ctxEmbedShowLikes=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)}},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 s=t.ctxMenuStatus.account.acct;t.closeCtxMenu(),setTimeout((function(){swal("Follow successful!","You are now following "+s,"success")}),500)}))},ctxMenuUnfollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then((function(e){var s=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 "+s,"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,s=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:s}).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,s){var a=this,i=(t.account.username,t.id,""),o=this;switch(e){case"addcw":i="Are you sure you want to add a content warning to this post?",swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&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,o.closeModals(),o.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),o.closeModals(),o.ctxModMenuClose()}))}));break;case"remcw":i="Are you sure you want to remove the content warning on this post?",swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&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,o.closeModals(),o.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),o.closeModals(),o.ctxModMenuClose()}))}));break;case"unlist":i="Are you sure you want to unlist this post?",swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&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"),o.closeModals(),o.ctxModMenuClose()})).catch((function(t){o.closeModals(),o.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")}))}));break;case"spammer":i="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:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&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"),o.closeModals(),o.ctxModMenuClose()})).catch((function(t){o.closeModals(),o.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(s){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(s){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()}))}}}},55192:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(20415),i=s(19755);const o={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";s.r(e),s.d(e,{default:()=>n});var a=s(20415),i=s(97622),o=s(19755);const n={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":i.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 s=''.concat(e.shortcode,'');t.content=t.content.replace(":".concat(e.shortcode,":"),s)}))},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,s=window.App.config.username.remote.custom,a=t.account.username,i=document.createElement("a");switch(i.href=t.account.url,i=i.hostname,e){case"@":default:return a+'@'+i+"";case"from":return a+' from '+i+"";case"custom":return a+' '+s+" "+i+""}},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!=o("body").hasClass("loggedIn")){var s=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=s,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 s=this;this.replySending=!0;var a=t.id,i=this.replyText,o=this.config.uploader.max_caption_length;if(i.length>o)return this.replySending=!1,void swal("Comment Too Long","Please make sure your comment is "+o+" characters or less.","error");axios.post("/i/comment",{item:a,comment:i,sensitive:this.replyNsfw}).then((function(t){s.replyText="",s.replies.push(t.data.entity),s.$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)},canFollow:function(t){return!!t.hasOwnProperty("relationship")&&(!(!t.hasOwnProperty("account")||!t.account.hasOwnProperty("id"))&&(t.account.id!=this.profile.id&&!t.relationship.following))},follow:function(t){var e=this;event.currentTarget.blur(),axios.post("/i/follow",{item:t}).then((function(s){e.status.relationship.following=!0,e.$emit("followed",t)})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))},unfollow:function(t){var e=this;event.currentTarget.blur(),axios.post("/i/follow",{item:t}).then((function(s){e.status.relationship.following=!1,e.$emit("unfollowed",t)})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))}}}},7768:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:["status"]}},10578:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(30765),i=s.n(a);const o={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){i()({el:t.target})},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 s="backward";e.advancePage(s),e.$emit("navigation-click",s)}if("39"==t.keyCode){t.preventDefault();var a="forward";e.advancePage(a),e.$emit("navigation-click",a)}}}}},15464:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(30765),i=s.n(a);const o={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){i()({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}}}},63049:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});const a={props:["status"]}},67223:(t,e,s)=>{"use strict";s.r(e),s.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")}}}},68059:(t,e,s)=>{Vue.component("photo-presenter",s(23251).default),Vue.component("video-presenter",s(53973).default),Vue.component("photo-album-presenter",s(33872).default),Vue.component("video-album-presenter",s(76644).default),Vue.component("mixed-album-presenter",s(57374).default),Vue.component("post-menu",s(4086).default),Vue.component("remote-post",s(97895).default)},73196:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(23645),i=s.n(a)()((function(t){return t[1]}));i.push([t.id,".text-lighter[data-v-1002e7e2]{color:#b8c2cc!important}.modal-body[data-v-1002e7e2]{padding:0}",""]);const o=i},65517:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(23645),i=s.n(a)()((function(t){return t[1]}));i.push([t.id,".postPresenterContainer[data-v-61cb40a9],.reactions[data-v-61cb40a9],.status-comments[data-v-61cb40a9]{background:#fff}@media(min-width:720px){.postPresenterContainer[data-v-61cb40a9]{min-height:600px}}[data-v-61cb40a9]::-webkit-scrollbar{background:transparent;width:0}.reply-btn[data-v-61cb40a9]{border-radius:0 3px 3px 0;bottom:12px;position:absolute;right:20px;text-align:center;width:60px}.text-lighter[data-v-61cb40a9]{color:#b8c2cc!important}.text-break[data-v-61cb40a9]{overflow-wrap:break-word}.comments p[data-v-61cb40a9]{margin-bottom:0}.comment-reaction[data-v-61cb40a9]{font-size:80%}.show-reply-bar[data-v-61cb40a9]{border-bottom:1px solid #999;display:inline-block;height:0;margin-right:16px;vertical-align:middle;width:24px}.comment-thread[data-v-61cb40a9]{margin-top:1rem}.emoji-reactions .nav-item[data-v-61cb40a9]{cursor:pointer;font-size:1.2rem;padding:9px}.emoji-reactions[data-v-61cb40a9]::-webkit-scrollbar{background:transparent;height:0;width:0}@media (min-width:1200px){.container[data-v-61cb40a9]{max-width:1100px}}",""]);const o=i},46839:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(23645),i=s.n(a)()((function(t){return t[1]}));i.push([t.id,".emoji-reactions .nav-item[data-v-006bdd8e]{cursor:pointer;font-size:1.2rem;padding:9px}.emoji-reactions[data-v-006bdd8e]::-webkit-scrollbar{background:transparent;height:0;width:0}",""]);const o=i},28597:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(23645),i=s.n(a)()((function(t){return t[1]}));i.push([t.id,".card-img-top[data-v-1b12221c]{border-top-left-radius:0!important;border-top-right-radius:0!important}.content-label-wrapper[data-v-1b12221c]{position:relative}.content-label[data-v-1b12221c]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}",""]);const o=i},43125:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(23645),i=s.n(a)()((function(t){return t[1]}));i.push([t.id,".card-img-top[data-v-77d48172]{border-top-left-radius:0!important;border-top-right-radius:0!important}.content-label-wrapper[data-v-77d48172]{position:relative}.content-label[data-v-77d48172]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}",""]);const o=i},7077:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(23645),i=s.n(a)()((function(t){return t[1]}));i.push([t.id,".content-label-wrapper[data-v-6e29e1c6]{position:relative}.content-label[data-v-6e29e1c6]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}",""]);const o=i},16806:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(23645),i=s.n(a)()((function(t){return t[1]}));i.push([t.id,".reply-form[data-v-ee374dfe]{position:relative}.reply-form input[data-v-ee374dfe]{padding-right:90px}.reply-form textarea[data-v-ee374dfe]{align-items:center;padding-right:80px}.reply-form .btn[data-v-ee374dfe]{position:absolute;right:6px;top:50%;transform:translateY(-50%)}.reply-options[data-v-ee374dfe]{align-items:center;display:flex;justify-content:space-between;margin-top:15px}.reply-options .form-control[data-v-ee374dfe]{max-width:140px}",""]);const o=i},59179:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(23645),i=s.n(a)()((function(t){return t[1]}));i.push([t.id,".status-card-component .status-content{font-size:17px}.status-card-component.status-card-sm .status-content{font-size:14px}.status-card-component.status-card-sm .fa-lg{font-size:unset;line-height:unset;vertical-align:unset}",""]);const o=i},91917:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(73196),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},80310:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(65517),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},29392:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(46839),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},27265:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(28597),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},2511:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(43125),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},31199:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(7077),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},63373:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(16806),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},43855:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(59179),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},4086:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(44843),i=s(10078),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);s(96021);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,"1002e7e2",null).exports},97895:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(83463),i=s(63203),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);s(21488);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,"61cb40a9",null).exports},37468:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(68695),i=s(30244),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);s(73049);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,"006bdd8e",null).exports},33823:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(92688),i=s(86044),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);s(13245);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,"ee374dfe",null).exports},20415:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(53242),i=s(25266),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,null,null).exports},97622:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(74454),i=s(97381),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,null,null).exports},19210:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(48661),i=s(71334),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);s(45101);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,null,null).exports},57374:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(10650),i=s(4220),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,null,null).exports},33872:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(74762),i=s(10878),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);s(75152);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,"1b12221c",null).exports},23251:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(42415),i=s(29911),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);s(12796);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,"77d48172",null).exports},76644:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(63027),i=s(18411),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,null,null).exports},53973:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(59132),i=s(44976),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);s(81709);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,"6e29e1c6",null).exports},10078:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(14425),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},63203:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(53144),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},30244:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(36624),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},86044:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(33694),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},25266:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(53999),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},97381:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(55192),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},71334:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(86637),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},4220:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(7768),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},10878:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(10578),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},29911:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(15464),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},18411:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(63049),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},44976:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var a=s(67223),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i);const o=a.default},96021:(t,e,s)=>{"use strict";s.r(e);var a=s(91917),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},21488:(t,e,s)=>{"use strict";s.r(e);var a=s(80310),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},73049:(t,e,s)=>{"use strict";s.r(e);var a=s(29392),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},75152:(t,e,s)=>{"use strict";s.r(e);var a=s(27265),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},12796:(t,e,s)=>{"use strict";s.r(e);var a=s(2511),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},81709:(t,e,s)=>{"use strict";s.r(e);var a=s(31199),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},13245:(t,e,s)=>{"use strict";s.r(e);var a=s(63373),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},45101:(t,e,s)=>{"use strict";s.r(e);var a=s(43855),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},44843:(t,e,s)=>{"use strict";s.r(e);var a=s(27257),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},83463:(t,e,s)=>{"use strict";s.r(e);var a=s(95578),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},68695:(t,e,s)=>{"use strict";s.r(e);var a=s(91705),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},92688:(t,e,s)=>{"use strict";s.r(e);var a=s(44913),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},53242:(t,e,s)=>{"use strict";s.r(e);var a=s(22372),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},74454:(t,e,s)=>{"use strict";s.r(e);var a=s(37860),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},48661:(t,e,s)=>{"use strict";s.r(e);var a=s(91927),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},10650:(t,e,s)=>{"use strict";s.r(e);var a=s(34812),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},74762:(t,e,s)=>{"use strict";s.r(e);var a=s(21761),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},42415:(t,e,s)=>{"use strict";s.r(e);var a=s(65654),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},63027:(t,e,s)=>{"use strict";s.r(e);var a=s(36310),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},59132:(t,e,s)=>{"use strict";s.r(e);var a=s(38508),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},27257:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",["true"!=t.modal?s("div",{staticClass:"dropdown"},[s("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"}},[s("span",{class:["lg"==t.size?"fas fa-ellipsis-v fa-lg text-muted":"fas fa-ellipsis-v fa-sm text-lighter"]})]),t._v(" "),s("div",{staticClass:"dropdown-menu dropdown-menu-right"},[s("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)?s("span",[s("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)?s("span",[s("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(" "),s("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?s("span",[s("div",{staticClass:"dropdown-divider"}),t._v(" "),s("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(" "),s("div",{staticClass:"dropdown-divider"}),t._v(" "),s("h6",{staticClass:"dropdown-header"},[t._v("Mod Tools")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"autocw")}}},[s("p",{staticClass:"mb-0"},[t._v("Enforce CW")]),t._v(" "),t._m(0)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"noautolink")}}},[s("p",{staticClass:"mb-0"},[t._v("No Autolinking")]),t._v(" "),t._m(1)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"unlisted")}}},[s("p",{staticClass:"mb-0"},[t._v("Unlisted Posts")]),t._v(" "),t._m(2)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"disable")}}},[s("p",{staticClass:"mb-0"},[t._v("Disable Account")]),t._v(" "),t._m(3)]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return t.moderatePost(t.status,"suspend")}}},[s("p",{staticClass:"mb-0"},[t._v("Suspend Account")]),t._v(" "),t._m(4)])]):t._e()])]):t._e(),t._v(" "),"true"==t.modal?s("div",[s("span",{attrs:{"data-toggle":"modal","data-target":"#mt_pid_"+t.status.id}},[s("span",{class:["lg"==t.size?"fas fa-ellipsis-v fa-lg text-muted":"fas fa-ellipsis-v fa-sm text-lighter"]})]),t._v(" "),s("div",{staticClass:"modal",attrs:{tabindex:"-1",role:"dialog",id:"mt_pid_"+t.status.id}},[s("div",{staticClass:"modal-dialog modal-sm modal-dialog-centered",attrs:{role:"document"}},[s("div",{staticClass:"modal-content"},[s("div",{staticClass:"modal-body text-center"},[s("div",{staticClass:"list-group"},[s("a",{staticClass:"list-group-item text-dark text-decoration-none",attrs:{href:t.statusUrl(t.status)}},[t._v("Go to post")]),t._v(" "),s("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():s("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?s("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(" "),s("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()])},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0 small text-muted"},[t._v("Adds a CW to every post "),s("br"),t._v(" made by this account.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0 small text-muted"},[t._v("Do not transform mentions, "),s("br"),t._v(" hashtags or urls into HTML.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0 small text-muted"},[t._v("Removes account from "),s("br"),t._v(" public/network timelines.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0 small text-muted"},[t._v("Temporarily disable account "),s("br"),t._v(" until next time user log in.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticClass:"mb-0 small text-muted"},[t._v("This prevents any new interactions, "),s("br"),t._v(" without deleting existing data.")])}]},95578:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.loaded?t._e():s("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"80vh"}},[s("img",{attrs:{src:"/img/pixelfed-icon-grey.svg"}})]),t._v(" "),t.loaded&&t.warning?s("div",{staticClass:"bg-white mt-n4 pt-3 border-bottom"},[s("div",{staticClass:"container"},[s("p",{staticClass:"text-center font-weight-bold"},[t._v("You are blocking this account")]),t._v(" "),s("p",{staticClass:"text-center font-weight-bold"},[s("a",{staticClass:"btn btn-primary font-weight-bold px-5",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.warning=!1,t.fetchData()}}},[t._v("View Status")])])])]):t._e(),t._v(" "),t.loaded&&0==t.warning&&"status"===t.currentLayout?s("div",{staticClass:"postComponent"},[s("div",{staticClass:"container px-0"},["text"===t.status.pf_type?s("div",{staticClass:"col-12 col-md-6 offset-md-3"},[s("status-card",{staticClass:"border-top",attrs:{status:t.status,recommended:!1},on:{"comment-focus":t.commentFocus}}),t._v(" "),s("comment-feed",{staticClass:"mt-3",attrs:{status:t.status}})],1):t._e(),t._v(" "),"poll"===t.status.pf_type?s("div",{staticClass:"col-12 col-md-6 offset-md-3"},[s("poll-card",{attrs:{status:t.status,profile:t.profile,"fetch-state":!0}}),t._v(" "),s("comment-feed",{staticClass:"mt-3",attrs:{status:t.status}})],1):s("div",{staticClass:"card card-md-rounded-0 status-container orientation-unknown shadow-none border"},[s("div",{staticClass:"row px-0 mx-0"},[s("div",{staticClass:"d-flex d-md-none align-items-center justify-content-between card-header bg-white w-100"},[s("div",{staticClass:"d-flex"},[s("div",{staticClass:"status-avatar mr-2",on:{click:function(e){return t.redirect(t.profileUrl)}}},[s("img",{staticClass:"cursor-pointer",staticStyle:{"border-radius":"12px"},attrs:{src:t.statusAvatar,width:"24px",height:"24px",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}})]),t._v(" "),s("div",{staticClass:"username"},[s("span",{staticClass:"username-link font-weight-bold text-dark cursor-pointer",on:{click:function(e){return t.redirect(t.profileUrl)}}},[t._v(t._s(t.statusUsername))]),t._v(" "),t.status.account.is_admin?s("span",{staticClass:"fa-stack",staticStyle:{height:"1em","line-height":"1em","max-width":"19px"},attrs:{title:"Admin Account","data-toggle":"tooltip"}},[s("i",{staticClass:"fas fa-certificate text-danger fa-stack-1x"}),t._v(" "),s("i",{staticClass:"fas fa-crown text-white fa-sm fa-stack-1x",staticStyle:{"font-size":"7px"}})]):t._e(),t._v(" "),s("p",{staticClass:"mb-0",staticStyle:{"font-size":"10px"}},[t.loaded&&t.status.taggedPeople.length?s("span",{staticClass:"mb-0"},[s("span",{staticClass:"font-weight-light cursor-pointer",staticStyle:{color:"#718096"},attrs:{title:"Tagged People","data-toggle":"tooltip","data-placement":"bottom"},on:{click:function(e){return t.showTaggedPeopleModal()}}},[s("i",{staticClass:"fas fa-tag text-lighter"}),t._v(" "),s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.status.taggedPeople.length)+" Tagged People")])])]):t._e(),t._v(" "),t.loaded&&null!=t.status.place&&t.status.taggedPeople.length?s("span",{staticClass:"px-2 font-weight-bold text-lighter"},[t._v("•")]):t._e(),t._v(" "),t.loaded&&null!=t.status.place?s("span",{staticClass:"mb-0 cursor-pointer text-truncate",staticStyle:{color:"#718096"},on:{click:function(e){return t.redirect("/discover/places/"+t.status.place.id+"/"+t.status.place.slug)}}},[s("i",{staticClass:"fas fa-map-marked-alt text-lighter"}),t._v(" "),s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.status.place.name)+", "+t._s(t.status.place.country))])]):t._e()])])]),t._v(" "),0!=t.user?s("div",{staticClass:"float-right"},[s("div",{staticClass:"post-actions"},[s("div",[s("button",{staticClass:"btn btn-link text-dark no-caret",attrs:{title:"Post options"},on:{click:function(e){return t.ctxMenu()}}},[s("span",{staticClass:"fas fa-ellipsis-v text-muted"})])])])]):t._e()]),t._v(" "),s("div",{staticClass:"col-12 col-md-8 px-0 mx-0"},[s("div",{staticClass:"postPresenterContainer d-none d-flex justify-content-center align-items-center",staticStyle:{background:"#000"}},["photo"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"video"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-album-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-album-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("mixed-album-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):s("div",{staticClass:"w-100"},[s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])])]),t._v(" "),s("div",{staticClass:"col-12 col-md-4 px-0 d-flex flex-column border-left border-md-left-0"},[s("div",{staticClass:"d-md-flex d-none align-items-center justify-content-between card-header py-3 bg-white"},[s("div",{staticClass:"d-flex align-items-center status-username text-truncate"},[s("div",{staticClass:"status-avatar mr-2",on:{click:function(e){return t.redirect(t.profileUrl)}}},[s("img",{staticClass:"cursor-pointer",staticStyle:{"border-radius":"12px"},attrs:{src:t.statusAvatar,width:"24px",height:"24px",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}})]),t._v(" "),s("div",{staticClass:"username"},[s("span",{staticClass:"username-link font-weight-bold text-dark cursor-pointer",on:{click:function(e){return t.redirect(t.profileUrl)}}},[t._v(t._s(t.statusUsername))]),t._v(" "),t.status.account.is_admin?s("span",{staticClass:"fa-stack",staticStyle:{height:"1em","line-height":"1em","max-width":"19px"},attrs:{title:"Admin Account","data-toggle":"tooltip"}},[s("i",{staticClass:"fas fa-certificate text-danger fa-stack-1x"}),t._v(" "),s("i",{staticClass:"fas fa-crown text-white fa-sm fa-stack-1x",staticStyle:{"font-size":"7px"}})]):t._e(),t._v(" "),s("p",{staticClass:"mb-0",staticStyle:{"font-size":"10px"}},[t.loaded&&t.status.taggedPeople.length?s("span",{staticClass:"mb-0"},[s("span",{staticClass:"font-weight-light cursor-pointer",staticStyle:{color:"#718096"},attrs:{title:"Tagged People","data-toggle":"tooltip","data-placement":"bottom"},on:{click:function(e){return t.showTaggedPeopleModal()}}},[s("i",{staticClass:"fas fa-tag text-lighter"}),t._v(" "),s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.status.taggedPeople.length)+" Tagged People")])])]):t._e(),t._v(" "),t.loaded&&null!=t.status.place&&t.status.taggedPeople.length?s("span",{staticClass:"px-2 font-weight-bold text-lighter"},[t._v("•")]):t._e(),t._v(" "),t.loaded&&null!=t.status.place?s("span",{staticClass:"mb-0 cursor-pointer text-truncate",staticStyle:{color:"#718096"},on:{click:function(e){return t.redirect("/discover/places/"+t.status.place.id+"/"+t.status.place.slug)}}},[s("i",{staticClass:"fas fa-map-marked-alt text-lighter"}),t._v(" "),s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.status.place.name)+", "+t._s(t.status.place.country))])]):t._e()])])]),t._v(" "),s("div",{staticClass:"float-right"},[s("div",{staticClass:"post-actions"},[0!=t.user?s("div",[s("button",{staticClass:"btn btn-link text-dark no-caret",attrs:{title:"Post options"},on:{click:function(e){return t.ctxMenu()}}},[s("span",{staticClass:"fas fa-ellipsis-v text-muted"})])]):t._e()])])]),t._v(" "),s("div",{staticClass:"d-flex flex-md-column flex-column-reverse h-100",staticStyle:{"overflow-y":"auto"}},[s("div",{staticClass:"card-body status-comments pt-0"},[s("div",{staticClass:"status-comment"},[t.status.content.length?s("div",{staticClass:"pt-3"},[t.status.sensitive?s("div",[s("span",{staticClass:"py-3"},[s("a",{staticClass:"text-dark font-weight-bold mr-1",attrs:{href:t.profileUrl,title:t.status.account.username}},[t._v(t._s(t.truncate(t.status.account.username,15)))]),t._v(" "),s("span",{staticClass:"text-break"},[s("span",{staticClass:"font-italic text-muted"},[t._v("This comment may contain sensitive material")]),t._v(" "),s("span",{staticClass:"text-primary cursor-pointer pl-1",on:{click:function(e){t.status.sensitive=!1}}},[t._v("Show")])])])]):s("div",[s("p",{class:[t.status.content.length>620?"mb-1 read-more":"mb-1"],staticStyle:{overflow:"hidden"}},[s("a",{staticClass:"font-weight-bold pr-1 text-dark text-decoration-none",attrs:{href:t.profileUrl}},[t._v(t._s(t.statusUsername))]),t._v(" "),s("span",{staticClass:"comment-text",attrs:{id:t.status.id+"-status-readmore"},domProps:{innerHTML:t._s(t.status.content)}})])]),t._v(" "),s("hr")]):t._e(),t._v(" "),t.showComments?s("div",[t._m(0),t._v(" "),s("div",{staticClass:"postCommentsContainer d-none"},[s("p",{staticClass:"mb-1 text-center load-more-link d-none my-4"},[s("a",{staticClass:"text-dark",attrs:{href:"#",title:"Load more comments","data-toggle":"tooltip","data-placement":"bottom"},on:{click:t.loadMore}},[s("svg",{staticClass:"bi bi-plus-circle",staticStyle:{"font-size":"2em"},attrs:{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M8 3.5a.5.5 0 01.5.5v4a.5.5 0 01-.5.5H4a.5.5 0 010-1h3.5V4a.5.5 0 01.5-.5z","clip-rule":"evenodd"}}),t._v(" "),s("path",{attrs:{"fill-rule":"evenodd",d:"M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z","clip-rule":"evenodd"}}),t._v(" "),s("path",{attrs:{"fill-rule":"evenodd",d:"M8 15A7 7 0 108 1a7 7 0 000 14zm0 1A8 8 0 108 0a8 8 0 000 16z","clip-rule":"evenodd"}})])])]),t._v(" "),s("div",{staticClass:"comments mt-3"},t._l(t.results,(function(e,a){return s("div",{key:"tl"+e.id+"_"+a,staticClass:"pb-4 media"},[s("img",{staticClass:"rounded-circle border mr-3",attrs:{src:e.account.avatar,width:"42px",height:"42px",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}}),t._v(" "),s("div",{staticClass:"media-body"},[1==e.sensitive?s("div",[s("span",{staticClass:"py-3"},[s("a",{staticClass:"text-dark font-weight-bold mr-1",attrs:{href:e.account.url,title:e.account.username}},[t._v(t._s(t.truncate(e.account.username,15)))]),t._v(" "),s("span",{staticClass:"text-break"},[s("span",{staticClass:"font-italic text-muted"},[t._v("This comment may contain sensitive material")]),t._v(" "),s("span",{staticClass:"text-primary cursor-pointer pl-1",on:{click:function(t){e.sensitive=!1}}},[t._v("Show")])])])]):s("div",[s("p",{staticClass:"d-flex justify-content-between align-items-top read-more",staticStyle:{"overflow-y":"hidden"}},[s("span",[s("a",{staticClass:"text-dark font-weight-bold mr-1 text-break",attrs:{href:e.account.url,title:e.account.username}},[t._v(t._s(t.truncate(e.account.username,15)))]),t._v(" "),s("span",{staticClass:"text-break comment-body",staticStyle:{"word-break":"break-all"},domProps:{innerHTML:t._s(e.content)}})]),t._v(" "),s("span",{staticStyle:{"min-width":"38px"}},[s("span",{on:{click:function(s){return t.likeReply(e,s)}}},[s("i",{class:[e.favourited?"fas fa-heart fa-sm text-danger":"far fa-heart fa-sm text-lighter"]})]),t._v(" "),s("post-menu",{staticClass:"d-inline-block px-2",attrs:{status:e,profile:t.user,size:"sm",modal:"true"},on:{deletePost:function(s){return t.deleteComment(e.id,a)}}})],1)]),t._v(" "),s("p",{},[t._o(s("a",{staticClass:"text-muted mr-3 text-decoration-none small",staticStyle:{width:"20px"},attrs:{href:t.permalinkUrl(e)},domProps:{textContent:t._s(t.timeAgo(e.created_at))}}),0,"tl"+e.id+"_"+a),t._v(" "),e.favourites_count?s("span",{staticClass:"text-muted comment-reaction font-weight-bold mr-3"},[t._v(t._s(1==e.favourites_count?"1 like":e.favourites_count+" likes"))]):t._e(),t._v(" "),s("span",{staticClass:"text-muted comment-reaction font-weight-bold cursor-pointer",on:{click:function(s){return t.replyFocus(e,a,!0)}}},[t._v("Reply")])]),t._v(" "),e.reply_count>0?s("div",{staticClass:"cursor-pointer",on:{click:function(s){return t.toggleReplies(e)}}},[s("span",{staticClass:"show-reply-bar"}),t._v(" "),s("span",{staticClass:"comment-reaction font-weight-bold text-muted"},[t._v(t._s(e.thread?"Hide":"View")+" Replies ("+t._s(e.reply_count)+")")])]):t._e(),t._v(" "),1==e.thread?s("div",{staticClass:"comment-thread"},t._l(e.replies,(function(e,i){return s("div",{key:"cr"+e.id+"_"+a,staticClass:"pb-3 media"},[s("img",{staticClass:"rounded-circle border mr-3",attrs:{src:e.account.avatar,width:"25px",height:"25px",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}}),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"d-flex justify-content-between align-items-top read-more",staticStyle:{"overflow-y":"hidden"}},[s("span",[s("a",{staticClass:"text-dark font-weight-bold mr-1",attrs:{href:e.account.url,title:e.account.username}},[t._v(t._s(e.account.username))]),t._v(" "),s("span",{staticClass:"text-break comment-body",staticStyle:{"word-break":"break-all"},domProps:{innerHTML:t._s(e.content)}})]),t._v(" "),s("span",{staticClass:"pl-2",staticStyle:{"min-width":"38px"}},[s("span",{on:{click:function(s){return t.likeReply(e,s)}}},[s("i",{class:[e.favourited?"fas fa-heart fa-sm text-danger":"far fa-heart fa-sm text-lighter"]})]),t._v(" "),s("post-menu",{staticClass:"d-inline-block pl-2",attrs:{status:e,profile:t.user,size:"sm",modal:"true"},on:{deletePost:function(s){return t.deleteCommentReply(e.id,i,a)}}})],1)]),t._v(" "),s("p",{},[t._o(s("a",{staticClass:"text-muted mr-3 text-decoration-none small",staticStyle:{width:"20px"},attrs:{href:e.url},domProps:{textContent:t._s(t.timeAgo(e.created_at))}}),1,"cr"+e.id+"_"+a),t._v(" "),e.favourites_count?s("span",{staticClass:"text-muted comment-reaction font-weight-bold mr-3"},[t._v(t._s(1==e.favourites_count?"1 like":e.favourites_count+" likes"))]):t._e()])])])})),0):t._e()])])])})),0)])]):t._e()])]),t._v(" "),t.reactionBarLoading?s("div",{staticClass:"card-body flex-grow-0 py-4 text-center"},[t._m(1)]):s("div",{staticClass:"card-body flex-grow-0 py-1"},[t.loaded&&t.user.hasOwnProperty("id")?s("div",{staticClass:"reactions my-2 pb-1 d-flex justify-content-between"},[s("h3",{class:[t.reactions.liked?"fas fa-heart text-danger mr-3 m-0 cursor-pointer":"far fa-heart pr-3 m-0 like-btn cursor-pointer"],attrs:{title:"Like"},on:{click:t.likeStatus}}),t._v(" "),t.status.comments_disabled?t._e():s("h3",{staticClass:"far fa-comment mr-3 m-0 cursor-pointer",attrs:{title:"Comment"},on:{click:function(e){return t.replyFocus(t.status)}}}),t._v(" "),s("h3",{staticClass:"fas fa-expand m-0 mr-3 cursor-pointer",on:{click:function(e){return t.redirect(t.status.media_attachments[0].url)}}}),t._v(" "),"public"==t.status.visibility?s("h3",{class:[t.reactions.bookmarked?"fas fa-bookmark text-warning m-0 mr-3 cursor-pointer":"far fa-bookmark m-0 mr-3 cursor-pointer"],attrs:{title:"Bookmark"},on:{click:t.bookmarkStatus}}):t._e(),t._v(" "),"public"==t.status.visibility?s("h3",{class:[t.reactions.shared?"fas fa-retweet m-0 text-primary cursor-pointer":"fas fa-retweet m-0 share-btn cursor-pointer"],attrs:{title:"Share"},on:{click:t.shareStatus}}):t._e()]):t._e(),t._v(" "),s("div",{staticClass:"reaction-counts mb-0"},[t.status.liked_by.username&&t.status.liked_by.username!==t.user.username?s("div",{staticClass:"likes mb-1"},[s("span",{staticClass:"like-count"},[t._v("Liked by\n\t\t\t\t\t\t\t\t\t\t\t"),s("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?s("span",[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\tand "),s("span",{staticClass:"font-weight-bold text-dark cursor-pointer",on:{click:t.likesModal}},[t.status.liked_by.total_count_pretty?s("span",[t._v(t._s(t.status.liked_by.total_count_pretty))]):t._e(),t._v(" others")])]):t._e()])]):t._e()]),t._v(" "),s("div",{staticClass:"timestamp pt-2 d-flex align-items-bottom justify-content-between"},[s("a",{staticClass:"small text-muted",attrs:{href:t.statusUrl,title:t.status.created_at}},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(t.timestampFormat())+"\n\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("span",{staticClass:"small text-muted text-capitalize cursor-pointer",on:{click:t.visibilityModal}},[t._v(t._s(t.status.visibility))])])])]),t._v(" "),t.showComments?s("div",{staticClass:"card-footer bg-white sticky-md-bottom p-0"},[0==t.user.length?s("div",{staticClass:"comment-form-guest p-3"},[s("a",{attrs:{href:"/login"}},[t._v("Login")]),t._v(" to like or comment.\n\t\t\t\t\t\t\t")]):s("form",{staticClass:"border-0 rounded-0 align-middle",attrs:{method:"post",action:"/i/comment","data-id":t.statusId,"data-truncate":"false"}},[s("textarea",{staticClass:"form-control border-0 rounded-0",staticStyle:{height:"56px","line-height":"18px","max-height":"80px",resize:"none","padding-right":"4.2rem"},attrs:{name:"comment",placeholder:"Add a comment…",autocomplete:"off",autocorrect:"off"},on:{click:function(e){return t.replyFocus(t.status)}}}),t._v(" "),s("input",{staticClass:"d-inline-block btn btn-link font-weight-bold reply-btn text-decoration-none",attrs:{type:"button",value:"Post",disabled:""}})])]):t._e()])])]),t._v(" "),t.showProfileMorePosts?s("div",{staticClass:"container"},[s("p",{staticClass:"text-lighter px-3 mt-5",staticStyle:{"font-weight":"600","font-size":"15px"}},[t._v("More posts from "),s("a",{staticClass:"text-dark",attrs:{href:t.profileUrl}},[t._v(t._s(this.statusUsername))])]),t._v(" "),s("div",{staticClass:"profile-timeline mt-md-4"},[s("div",{staticClass:"row"},t._l(t.profileMorePosts,(function(e,a){return s("div",{key:"tlob:"+a,staticClass:"col-4 p-1 p-md-3"},[t._o(s("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:t.getStatusUrl(e)}},[s("div",{class:[e.sensitive?"square":"square "+e.media_attachments[0].filter_class]},["photo:album"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-images fa-2x"})]):t._e(),t._v(" "),"video"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-video fa-2x"})]):t._e(),t._v(" "),"video:album"==e.pf_type?s("span",{staticClass:"float-right mr-3 post-icon"},[s("i",{staticClass:"fas fa-film fa-2x"})]):t._e(),t._v(" "),s("div",{staticClass:"square-content",style:t.previewBackground(e)}),t._v(" "),s("div",{staticClass:"info-overlay-text"},[s("h5",{staticClass:"text-white m-auto font-weight-bold"},[s("span",[s("span",{staticClass:"far fa-heart fa-lg p-2 d-flex-inline"}),t._v(" "),s("span",{staticClass:"d-flex-inline"},[t._v(t._s(e.favourites_count))])]),t._v(" "),s("span",[s("span",{staticClass:"fas fa-retweet fa-lg p-2 d-flex-inline"}),t._v(" "),s("span",{staticClass:"d-flex-inline"},[t._v(t._s(e.reblogs_count))])])])])])]),2,"tlob:"+a)])})),0)])]):t._e()])]):t._e(),t._v(" "),"comments"===t.currentLayout?s("comment-card",{attrs:{status:t.status,profile:t.profile,backToStatus:!0},on:{"current-layout":t.setCurrentLayout}}):t._e(),t._v(" "),s("b-modal",{ref:"likesModal",attrs:{id:"l-modal","hide-footer":"",centered:"",title:"Likes","body-class":"list-group-flush py-3 px-0"}},[s("div",{staticClass:"list-group"},[t._l(t.likes,(function(e,a){return s("div",{key:"modal_likes_"+a,staticClass:"list-group-item border-0 py-1"},[s("div",{staticClass:"media"},[s("a",{attrs:{href:e.url}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:e.url}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t")])]),t._v(" "),e.local?s("p",{staticClass:"text-muted mb-0 text-truncate",staticStyle:{"font-size":"14px"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(e.display_name)+"\n\t\t\t\t\t\t")]):s("p",{staticClass:"text-muted mb-0 text-truncate mr-3",staticStyle:{"font-size":"14px"},attrs:{title:e.acct,"data-toggle":"dropdown","data-placement":"bottom"}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(e.acct.split("@")[0]))]),s("span",{staticClass:"text-lighter"},[t._v("@"+t._s(e.acct.split("@")[1]))])])])])])})),t._v(" "),s("infinite-loading",{attrs:{spinner:"spiral"},on:{infinite:t.infiniteLikesHandler}},[s("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),s("div",{attrs:{slot:"no-results"},slot:"no-results"})])],2)]),t._v(" "),s("b-modal",{ref:"sharesModal",attrs:{id:"s-modal","hide-footer":"",centered:"",title:"Shares","body-class":"list-group-flush py-3 px-0"}},[s("div",{staticClass:"list-group"},[t._l(t.shares,(function(e,a){return s("div",{key:"modal_shares_"+a,staticClass:"list-group-item border-0 py-1"},[s("div",{staticClass:"media"},[s("a",{attrs:{href:e.url}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"d-inline-block"},[s("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:e.url}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),s("p",{staticClass:"text-muted mb-0",staticStyle:{"font-size":"14px"}},[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(e.display_name)+"\n\t\t\t\t\t\t\t\t")])]),t._v(" "),s("p",{staticClass:"float-right"})])])])})),t._v(" "),s("infinite-loading",{attrs:{spinner:"spiral"},on:{infinite:t.infiniteSharesHandler}},[s("div",{attrs:{slot:"no-more"},slot:"no-more"}),t._v(" "),s("div",{attrs:{slot:"no-results"},slot:"no-results"})])],2)]),t._v(" "),s("b-modal",{ref:"taggedModal",attrs:{id:"tagged-modal","hide-footer":"",centered:"",title:"Tagged People","body-class":"list-group-flush py-3 px-0"}},[s("div",{staticClass:"list-group"},t._l(t.status.taggedPeople,(function(e,a){return s("div",{key:"modal_taggedpeople_"+a,staticClass:"list-group-item border-0 py-1"},[s("div",{staticClass:"media"},[s("a",{attrs:{href:"/"+e.username}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"pt-1 d-flex justify-content-between",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:"/"+e.username}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t")]),t._v(" "),e.id==t.user.id?s("button",{staticClass:"btn btn-outline-primary btn-sm py-1 px-3",on:{click:function(e){return t.untagMe()}}},[t._v("Untag Me")]):t._e()])])])])})),0),t._v(" "),s("p",{staticClass:"mb-0 text-center small text-muted font-weight-bold"},[s("a",{attrs:{href:"/site/kb/tagging-people"}},[t._v("Learn more")]),t._v(" about Tagging People.")])]),t._v(" "),s("b-modal",{ref:"ctxModal",attrs:{id:"ctx-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"list-group text-center"},[t.user&&t.user.id!=t.status.account.id&&t.relationship&&t.relationship.following?s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-danger",on:{click:function(e){return t.ctxMenuUnfollow()}}},[t._v("Unfollow")]):t._e(),t._v(" "),t.user&&t.user.id!=t.status.account.id&&t.relationship&&!t.relationship.following?s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-primary",on:{click:function(e){return t.ctxMenuFollow()}}},[t._v("Follow")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuCopyLink()}}},[t._v("Copy Link")]),t._v(" "),t.status&&t.user.id==t.status.account.id?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:t.toggleCommentVisibility}},[t._v(t._s(t.showComments?"Disable":"Enable")+" Comments")]):t._e(),t._v(" "),t.status&&t.user.id==t.status.account.id?s("a",{staticClass:"list-group-item rounded cursor-pointer text-dark text-decoration-none",attrs:{href:t.editUrl()}},[t._v("Edit")]):t._e(),t._v(" "),t.user&&1==t.user.is_admin?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxModMenu()}}},[t._v("ModTools")]):t._e(),t._v(" "),!t.status||t.user.id==t.status.account.id||t.relationship.blocking||t.user.is_admin?t._e():s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-danger",on:{click:function(e){return t.blockProfile()}}},[t._v("Block")]),t._v(" "),t.status&&t.user.id!=t.status.account.id&&t.relationship.blocking&&!t.user.is_admin?s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-danger",on:{click:function(e){return t.unblockProfile()}}},[t._v("Unblock")]):t._e(),t._v(" "),t.user&&t.user.id!=t.status.account.id&&!t.user.is_admin?s("a",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-danger text-decoration-none",attrs:{href:t.reportUrl()}},[t._v("Report")]):t._e(),t._v(" "),t.status&&(t.user.is_admin||t.user.id==t.status.account.id)?s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-danger",on:{click:function(e){return t.deletePost(t.ctxMenuStatus)}}},[t._v("Delete")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxMenu()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("div",{staticClass:"list-group text-center"},[s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:t.toggleCommentVisibility}},[t._v(t._s(t.showComments?"Disable":"Enable")+" Comments")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost("unlist")}}},[t._v("Unlist from Timelines")]),t._v(" "),t.status.sensitive?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost("remcw")}}},[t._v("Remove Content Warning")]):s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost("addcw")}}},[t._v("Add Content Warning")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),s("b-modal",{ref:"replyModal",attrs:{id:"ctx-reply-modal","hide-footer":"",centered:"",rounded:"","title-html":t.replyingToUsername?"Reply to "+t.replyingToUsername+"":"","title-tag":"p","title-class":"font-weight-bold text-muted",size:"md","body-class":"p-2 rounded"}},[s("div",[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.replyText,expression:"replyText"}],staticClass:"form-control",staticStyle:{border:"none","font-size":"18px",resize:"none","white-space":"pre-wrap",outline:"none"},attrs:{rows:"4",placeholder:"Reply here ..."},domProps:{value:t.replyText},on:{input:function(e){e.target.composing||(t.replyText=e.target.value)}}}),t._v(" "),s("div",{staticClass:"border-top border-bottom my-2"},[s("ul",{staticClass:"nav align-items-center emoji-reactions",staticStyle:{"overflow-x":"scroll","flex-wrap":"unset"}},t._l(t.emoji,(function(e){return s("li",{staticClass:"nav-item",on:{click:function(e){return t.emojiReaction(t.status)}}},[t._v(t._s(e))])})),0)]),t._v(" "),s("div",{staticClass:"d-flex justify-content-between align-items-center"},[s("div",[s("span",{staticClass:"pl-2 small text-muted font-weight-bold text-monospace"},[s("span",{class:[t.replyText.length>t.config.uploader.max_caption_length?"text-danger":"text-dark"]},[t._v(t._s(t.replyText.length>t.config.uploader.max_caption_length?t.config.uploader.max_caption_length-t.replyText.length:t.replyText.length))]),t._v("/"+t._s(t.config.uploader.max_caption_length)+"\n\t\t\t\t\t")])]),t._v(" "),s("div",{staticClass:"d-flex align-items-center"},[s("div",{staticClass:"custom-control custom-switch mr-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.replySensitive,expression:"replySensitive"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"replyModalCWSwitch"},domProps:{checked:Array.isArray(t.replySensitive)?t._i(t.replySensitive,null)>-1:t.replySensitive},on:{change:function(e){var s=t.replySensitive,a=e.target,i=!!a.checked;if(Array.isArray(s)){var o=t._i(s,null);a.checked?o<0&&(t.replySensitive=s.concat([null])):o>-1&&(t.replySensitive=s.slice(0,o).concat(s.slice(o+1)))}else t.replySensitive=i}}}),t._v(" "),s("label",{class:[t.replySensitive?"custom-control-label font-weight-bold text-dark":"custom-control-label text-lighter"],attrs:{for:"replyModalCWSwitch"}},[t._v("Mark as NSFW")])]),t._v(" "),s("button",{staticClass:"btn btn-primary btn-sm py-2 px-4 lead text-uppercase font-weight-bold",attrs:{disabled:0==t.replyText.length},on:{click:function(e){return e.preventDefault(),t.postReply()}}},[t._v("\n\t\t\t\t\t"+t._s(1==t.replySending?"POSTING":"POST")+"\n\t\t\t\t")])])])])])],1)},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"postCommentsLoader text-center py-2"},[s("div",{staticClass:"spinner-border",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"spinner-border",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])}]},91705:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"container p-0 overflow-hidden"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 col-md-6 offset-md-3"},[s("div",{staticClass:"card shadow-none border",staticStyle:{height:"100vh"}},[s("div",{staticClass:"card-header d-flex justify-content-between align-items-center"},[s("div",{staticClass:"cursor-pointer",on:{click:function(e){return t.commentNavigateBack(t.status.id)}}},[s("i",{staticClass:"fas fa-chevron-left fa-lg px-2"})]),t._v(" "),t._m(0),t._v(" "),t._m(1)]),t._v(" "),s("div",{staticClass:"card-body",staticStyle:{"overflow-y":"auto !important"}},[s("div",{staticClass:"media"},[s("img",{staticClass:"rounded-circle border mr-3",attrs:{src:t.status.account.avatar,width:"32px",height:"32px"}}),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"d-flex justify-content-between align-items-top mb-0",staticStyle:{"overflow-y":"hidden"}},[s("span",{staticClass:"mr-2",staticStyle:{"font-size":"13px"}},[s("a",{staticClass:"text-dark font-weight-bold mr-1 text-break",attrs:{href:t.profileUrl(t.status),title:t.status.account.username}},[t._v(t._s(t.trimCaption(t.status.account.username,15)))]),t._v(" "),s("span",{staticClass:"text-break comment-body",staticStyle:{"word-break":"break-all"},domProps:{innerHTML:t._s(t.status.content)}})])])])]),t._v(" "),s("hr"),t._v(" "),t._m(2),t._v(" "),s("div",{staticClass:"postCommentsContainer d-none"},[t.replies.length?s("p",{staticClass:"mb-1 text-center load-more-link my-4"},[s("a",{staticClass:"text-dark",attrs:{href:"#",title:"Load more comments"},on:{click:function(e){return e.preventDefault(),t.loadMoreComments.apply(null,arguments)}}},[s("svg",{staticClass:"bi bi-plus-circle",staticStyle:{"font-size":"2em"},attrs:{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"fill-rule":"evenodd",d:"M8 3.5a.5.5 0 01.5.5v4a.5.5 0 01-.5.5H4a.5.5 0 010-1h3.5V4a.5.5 0 01.5-.5z","clip-rule":"evenodd"}}),t._v(" "),s("path",{attrs:{"fill-rule":"evenodd",d:"M7.5 8a.5.5 0 01.5-.5h4a.5.5 0 010 1H8.5V12a.5.5 0 01-1 0V8z","clip-rule":"evenodd"}}),t._v(" "),s("path",{attrs:{"fill-rule":"evenodd",d:"M8 15A7 7 0 108 1a7 7 0 000 14zm0 1A8 8 0 108 0a8 8 0 000 16z","clip-rule":"evenodd"}})])])]):t._e(),t._v(" "),t._l(t.replies,(function(e,a){return t.replies.length?s("div",{key:"tl"+e.id+"_"+a,staticClass:"pb-3 media"},[s("img",{staticClass:"rounded-circle border mr-3",attrs:{src:e.account.avatar,width:"32px",height:"32px"}}),t._v(" "),s("div",{staticClass:"media-body"},[1==e.sensitive?s("div",[s("span",{staticClass:"py-3"},[s("a",{staticClass:"text-dark font-weight-bold mr-3",staticStyle:{"font-size":"13px"},attrs:{href:t.profileUrl(e),title:e.account.username}},[t._v(t._s(t.trimCaption(e.account.username,15)))]),t._v(" "),s("span",{staticClass:"text-break",staticStyle:{"font-size":"13px"}},[s("span",{staticClass:"font-italic text-muted"},[t._v("This comment may contain sensitive material")]),t._v(" "),s("span",{staticClass:"text-primary cursor-pointer pl-1",on:{click:function(t){e.sensitive=!1}}},[t._v("Show")])])])]):s("div",[s("p",{staticClass:"d-flex justify-content-between align-items-top read-more mb-0",staticStyle:{"overflow-y":"hidden"}},[s("span",{staticClass:"mr-3",staticStyle:{"font-size":"13px"}},[s("a",{staticClass:"text-dark font-weight-bold mr-1 text-break",attrs:{href:t.profileUrl(e),title:e.account.username}},[t._v(t._s(t.trimCaption(e.account.username,15)))]),t._v(" "),s("span",{staticClass:"text-break comment-body",staticStyle:{"word-break":"break-all"},domProps:{innerHTML:t._s(e.content)}})]),t._v(" "),s("span",{staticClass:"text-right",staticStyle:{"min-width":"30px"}},[s("span",{on:{click:function(s){return t.likeReply(e,s)}}},[s("i",{class:[e.favourited?"fas fa-heart fa-sm text-danger":"far fa-heart fa-sm text-lighter"]})]),t._v(" "),s("span",{staticClass:"pl-2 text-lighter cursor-pointer",on:{click:function(s){return t.ctxMenu(e)}}},[s("span",{staticClass:"fas fa-ellipsis-v text-lighter"})])])]),t._v(" "),s("p",{staticClass:"mb-0"},[t._o(s("a",{staticClass:"text-muted mr-3 text-decoration-none small",staticStyle:{width:"20px"},attrs:{href:t.statusUrl(e)},domProps:{textContent:t._s(t.timeAgo(e.created_at))}}),0,"tl"+e.id+"_"+a),t._v(" "),e.favourites_count?s("span",{staticClass:"text-muted comment-reaction font-weight-bold mr-3 small"},[t._v(t._s(1==e.favourites_count?"1 like":e.favourites_count+" likes"))]):t._e(),t._v(" "),s("span",{staticClass:"small text-muted comment-reaction font-weight-bold cursor-pointer",on:{click:function(s){return t.replyFocus(e,a,!0)}}},[t._v("Reply")])]),t._v(" "),e.reply_count>0?s("div",{staticClass:"cursor-pointer pb-2",on:{click:function(s){return t.toggleReplies(e)}}},[s("span",{staticClass:"show-reply-bar"}),t._v(" "),s("span",{staticClass:"comment-reaction small font-weight-bold"},[t._v(t._s(e.thread?"Hide":"View")+" Replies ("+t._s(e.reply_count)+")")])]):t._e(),t._v(" "),1==e.thread?s("div",{staticClass:"comment-thread"},t._l(e.replies,(function(e,i){return s("div",{key:"cr"+e.id+"_"+a,staticClass:"py-1 media"},[s("img",{staticClass:"rounded-circle border mr-3",attrs:{src:e.account.avatar,width:"25px",height:"25px"}}),t._v(" "),s("div",{staticClass:"media-body"},[s("p",{staticClass:"d-flex justify-content-between align-items-top read-more mb-0",staticStyle:{"overflow-y":"hidden"}},[s("span",{staticClass:"mr-2",staticStyle:{"font-size":"13px"}},[s("a",{staticClass:"text-dark font-weight-bold mr-1",attrs:{href:t.profileUrl(e),title:e.account.username}},[t._v(t._s(e.account.username))]),t._v(" "),s("span",{staticClass:"text-break comment-body",staticStyle:{"word-break":"break-all"},domProps:{innerHTML:t._s(e.content)}})]),t._v(" "),s("span",[s("span",{on:{click:function(s){return t.likeReply(e,s)}}},[s("i",{class:[e.favourited?"fas fa-heart fa-sm text-danger":"far fa-heart fa-sm text-lighter"]})])])]),t._v(" "),s("p",{staticClass:"mb-0"},[t._o(s("a",{staticClass:"text-muted mr-3 text-decoration-none small",staticStyle:{width:"20px"},attrs:{href:t.statusUrl(e)},domProps:{textContent:t._s(t.timeAgo(e.created_at))}}),1,"cr"+e.id+"_"+a),t._v(" "),e.favourites_count?s("span",{staticClass:"text-muted comment-reaction font-weight-bold mr-3"},[t._v(t._s(1==e.favourites_count?"1 like":e.favourites_count+" likes"))]):t._e()])])])})),0):t._e()])])]):t._e()})),t._v(" "),t.replies.length?t._e():s("div",[s("p",{staticClass:"text-center text-muted font-weight-bold small"},[t._v("No comments yet")])])],2)]),t._v(" "),s("div",{staticClass:"card-footer mb-3"},[s("div",{staticClass:"align-middle d-flex"},[s("img",{staticClass:"rounded-circle border mr-3",attrs:{src:t.profile.avatar,width:"36",height:"36"}}),t._v(" "),s("textarea",{staticClass:"form-control rounded-pill",staticStyle:{resize:"none","overflow-y":"hidden"},attrs:{name:"comment",placeholder:"Add a comment…",autocomplete:"off",autocorrect:"off",rows:"1",maxlength:"0"},on:{click:function(e){return t.replyFocus(t.status)}}})])])])])])]),t._v(" "),s("context-menu",{ref:"cMenu",attrs:{status:t.ctxMenuStatus,profile:t.profile}}),t._v(" "),s("b-modal",{ref:"replyModal",attrs:{id:"ctx-reply-modal","hide-footer":"",centered:"",rounded:"","title-html":t.status.account?"Reply to "+t.status.account.username+"":"","title-tag":"p","title-class":"font-weight-bold text-muted",size:"md","body-class":"p-2 rounded"}},[s("div",[s("vue-tribute",{attrs:{options:t.tributeSettings}},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.replyText,expression:"replyText"}],staticClass:"form-control replyModalTextarea",attrs:{rows:"4"},domProps:{value:t.replyText},on:{input:function(e){e.target.composing||(t.replyText=e.target.value)}}})]),t._v(" "),s("div",{staticClass:"border-top border-bottom my-2"},[s("ul",{staticClass:"nav align-items-center emoji-reactions",staticStyle:{"overflow-x":"scroll","flex-wrap":"unset"}},t._l(t.emoji,(function(e){return s("li",{staticClass:"nav-item",on:{click:function(e){return t.emojiReaction(t.status)}}},[t._v(t._s(e))])})),0)]),t._v(" "),s("div",{staticClass:"d-flex justify-content-between align-items-center"},[s("div",[s("span",{staticClass:"pl-2 small text-muted font-weight-bold text-monospace"},[s("span",{class:[t.replyText.length>t.config.uploader.max_caption_length?"text-danger":"text-dark"]},[t._v(t._s(t.replyText.length>t.config.uploader.max_caption_length?t.config.uploader.max_caption_length-t.replyText.length:t.replyText.length))]),t._v("/"+t._s(t.config.uploader.max_caption_length)+"\n\t\t\t\t\t")])]),t._v(" "),s("div",{staticClass:"d-flex align-items-center"},[s("div",{staticClass:"custom-control custom-switch mr-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.replyNsfw,expression:"replyNsfw"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"replyModalCWSwitch"},domProps:{checked:Array.isArray(t.replyNsfw)?t._i(t.replyNsfw,null)>-1:t.replyNsfw},on:{change:function(e){var s=t.replyNsfw,a=e.target,i=!!a.checked;if(Array.isArray(s)){var o=t._i(s,null);a.checked?o<0&&(t.replyNsfw=s.concat([null])):o>-1&&(t.replyNsfw=s.slice(0,o).concat(s.slice(o+1)))}else t.replyNsfw=i}}}),t._v(" "),s("label",{class:[t.replyNsfw?"custom-control-label font-weight-bold text-dark":"custom-control-label text-lighter"],attrs:{for:"replyModalCWSwitch"}},[t._v("Mark as NSFW")])]),t._v(" "),s("button",{staticClass:"btn btn-primary btn-sm py-2 px-4 lead text-uppercase font-weight-bold",attrs:{disabled:0==t.replyText.length},on:{click:function(e){return e.preventDefault(),t.commentSubmit(t.status,e)}}},[t._v("\n\t\t\t\t\t\t"+t._s(1==t.replySending?"POSTING":"POST")+"\n\t\t\t\t\t")])])])],1)])],1)},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("p",{staticClass:"font-weight-bold mb-0 h5"},[t._v("Comments")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("i",{staticClass:"fas fa-cog fa-lg text-white"})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"postCommentsLoader text-center py-2"},[s("div",{staticClass:"spinner-border",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])])}]},44913:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.loaded?s("div",[t.showReplyForm?s("div",{staticClass:"card card-body shadow-none border bg-light"},[s("div",{staticClass:"media"},[s("img",{staticClass:"rounded-circle border mr-3",attrs:{src:t.profile.avatar,width:"32px",height:"32px"}}),t._v(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"reply-form form-group mb-0"},[!t.composeText||t.composeText.length<40?s("input",{directives:[{name:"model",rawName:"v-model",value:t.composeText,expression:"composeText"}],staticClass:"form-control rounded-pill",attrs:{placeholder:"Add a comment..."},domProps:{value:t.composeText},on:{input:function(e){e.target.composing||(t.composeText=e.target.value)}}}):s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.composeText,expression:"composeText"}],staticClass:"form-control",attrs:{placeholder:"Add a comment...",rows:"4"},domProps:{value:t.composeText},on:{input:function(e){e.target.composing||(t.composeText=e.target.value)}}}),t._v(" "),t.composeText&&t.composeText.length?s("div",{staticClass:"btn btn-primary btn-sm rounded-pill font-weight-bold px-3",on:{click:t.submitComment}},[t.postingComment?s("span",[t._m(0)]):s("span",[t._v("Post")])]):t._e()]),t._v(" "),t.composeText?s("div",{staticClass:"reply-options",model:{value:t.visibility,callback:function(e){t.visibility=e},expression:"visibility"}},[t._m(1),t._v(" "),s("div",{staticClass:"custom-control custom-switch"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.sensitive,expression:"sensitive"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"sensitive"},domProps:{checked:Array.isArray(t.sensitive)?t._i(t.sensitive,null)>-1:t.sensitive},on:{change:function(e){var s=t.sensitive,a=e.target,i=!!a.checked;if(Array.isArray(s)){var o=t._i(s,null);a.checked?o<0&&(t.sensitive=s.concat([null])):o>-1&&(t.sensitive=s.slice(0,o).concat(s.slice(o+1)))}else t.sensitive=i}}}),t._v(" "),t._m(2)]),t._v(" "),s("span",{staticClass:"text-muted font-weight-bold small"},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.composeText.length)+" / 500\n\t\t\t\t\t\t")])]):t._e()])])]):t._e(),t._v(" "),s("div",{staticClass:"d-none card card-body shadow-none border rounded-0 border-top-0 bg-light"},[s("div",{staticClass:"d-flex justify-content-between align-items-center"},[s("p",{staticClass:"font-weight-bold text-muted mb-0 mr-md-5"},[s("i",{staticClass:"fas fa-comment mr-1"}),t._v("\n\t\t\t\t\t"+t._s(t.formatCount(t.pagination.total))+"\n\t\t\t\t")]),t._v(" "),s("h4",{staticClass:"font-weight-bold mb-0 text-lighter"},[t._v("Comments")]),t._v(" "),t._m(3)])]),t._v(" "),t._l(t.feed,(function(t,e){return s("status-card",{key:"replies:"+e,attrs:{status:t,size:"small"}})})),t._v(" "),t.pagination.links.hasOwnProperty("next")?s("div",{staticClass:"card card-body shadow-none rounded-0 border border-top-0 py-3"},[t.loadingMoreComments?s("button",{staticClass:"btn btn-primary",attrs:{disabled:""}},[t._m(4)]):s("button",{staticClass:"btn btn-primary font-weight-bold",on:{click:t.loadMoreComments}},[t._v("Load more comments")])]):t._e(),t._v(" "),t.ctxStatus&&t.profile?s("context-menu",{ref:"cMenu",attrs:{status:t.ctxStatus,profile:t.profile},on:{"status-delete":t.statusDeleted}}):t._e()],2):s("div")])},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("select",{staticClass:"form-control form-control-sm rounded-pill font-weight-bold"},[s("option",{attrs:{value:"public"}},[t._v("Public")]),t._v(" "),s("option",{attrs:{value:"private"}},[t._v("Followers Only")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("label",{staticClass:"custom-control-label font-weight-bold text-lighter",attrs:{for:"sensitive"}},[s("span",{staticClass:"d-none d-md-inline-block"},[t._v("Sensitive/")]),t._v("NSFW\n\t\t\t\t\t\t\t")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"form-group mb-0"},[s("select",{staticClass:"form-control form-control-sm"},[s("option",[t._v("New")]),t._v(" "),s("option",[t._v("Oldest")])])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])}]},22372:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modal-stack"},[s("b-modal",{ref:"ctxModal",attrs:{id:"ctx-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"list-group text-center"},["archived"!==t.status.visibility?s("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?s("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?s("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?s("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?s("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?s("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?s("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?s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxMenu()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("div",{staticClass:"list-group text-center"},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("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?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"remcw")}}},[t._v("Remove Content Warning")]):s("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(" "),s("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"),s("br"),t._v(" "),s("span",{staticClass:"small"},[t._v("Unlist + CW existing and future posts")])]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("div",{staticClass:"list-group text-center"},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Unlist Posts")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Moderation Log")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModOtherMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("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(" "),s("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?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuEmbed()}}},[t._v("Embed")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxShareMenu()}}},[t._v("Cancel")])]),t._v(" "),s("b-modal",{ref:"ctxEmbedModal",attrs:{id:"ctx-embed-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"md","body-class":"p-2 rounded"}},[s("div",[s("div",{staticClass:"form-group"},[s("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(" "),s("div",{staticClass:"form-group pl-2 d-flex justify-content-center"},[s("div",{staticClass:"form-check mr-3"},[s("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 s=t.ctxEmbedShowCaption,a=e.target,i=!!a.checked;if(Array.isArray(s)){var o=t._i(s,null);a.checked?o<0&&(t.ctxEmbedShowCaption=s.concat([null])):o>-1&&(t.ctxEmbedShowCaption=s.slice(0,o).concat(s.slice(o+1)))}else t.ctxEmbedShowCaption=i}}}),t._v(" "),s("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(" "),s("div",{staticClass:"form-check mr-3"},[s("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 s=t.ctxEmbedShowLikes,a=e.target,i=!!a.checked;if(Array.isArray(s)){var o=t._i(s,null);a.checked?o<0&&(t.ctxEmbedShowLikes=s.concat([null])):o>-1&&(t.ctxEmbedShowLikes=s.slice(0,o).concat(s.slice(o+1)))}else t.ctxEmbedShowLikes=i}}}),t._v(" "),s("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(" "),s("div",{staticClass:"form-check"},[s("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 s=t.ctxEmbedCompactMode,a=e.target,i=!!a.checked;if(Array.isArray(s)){var o=t._i(s,null);a.checked?o<0&&(t.ctxEmbedCompactMode=s.concat([null])):o>-1&&(t.ctxEmbedCompactMode=s.slice(0,o).concat(s.slice(o+1)))}else t.ctxEmbedCompactMode=i}}}),t._v(" "),s("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(" "),s("hr"),t._v(" "),s("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(" "),s("p",{staticClass:"mb-0 px-2 small text-muted"},[t._v("By using this embed, you agree to our "),s("a",{attrs:{href:"/site/terms"}},[t._v("Terms of Use")])])])]),t._v(" "),s("b-modal",{ref:"ctxReport",attrs:{id:"ctx-report","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group text-center"},[s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("spam")}}},[t._v("Spam")]),t._v(" "),s("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(" "),s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.openCtxReportOtherMenu()}}},[t._v("Other")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group text-center"},[s("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(" "),s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("impersonation")}}},[t._v("Impersonation")]),t._v(" "),s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportOtherMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),s("b-modal",{ref:"ctxConfirm",attrs:{id:"ctx-confirm","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"d-flex align-items-center justify-content-center py-3"},[s("div",[t._v(t._s(this.confirmModalTitle))])]),t._v(" "),s("div",{staticClass:"d-flex border-top btn-group btn-group-block rounded-0",attrs:{role:"group"}},[s("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(" "),s("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)},i=[]},37860:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"card shadow-none rounded-0",class:{border:t.showBorder,"border-top-0":!t.showBorderTop}},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"media"},[s("img",{staticClass:"rounded-circle box-shadow mr-2",attrs:{src:t.status.account.avatar,width:"32px",height:"32px",alt:"avatar"}}),t._v(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"pl-2 d-flex align-items-top"},[s("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(" "),s("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(" "),s("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(" "),s("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(" "),s("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(" "),s("span",{staticClass:"d-none d-md-block px-1 text-lighter font-weight-bold"},[t.status.poll.expired?s("span",[t._v("\n\t\t\t\t\t\t\t\tClosed\n\t\t\t\t\t\t\t")]):s("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(" "),s("span",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[s("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[s("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),s("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]),t._v(" "),s("div",{staticClass:"pl-2"},[s("div",{staticClass:"poll py-3"},[s("div",{staticClass:"pt-2 text-break d-flex align-items-center mb-3",staticStyle:{"font-size":"17px"}},[t._m(1),t._v(" "),s("span",{staticClass:"font-weight-bold ml-3",domProps:{innerHTML:t._s(t.status.content)}})]),t._v(" "),s("div",{staticClass:"mb-2"},["vote"===t.tab?s("div",[t._l(t.status.poll.options,(function(e,a){return s("p",[s("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(e.title)+"\n\t\t\t\t\t\t\t\t\t\t")])])})),t._v(" "),null!=t.selectedIndex?s("p",{staticClass:"text-right"},[s("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?s("div",t._l(t.status.poll.options,(function(e,a){return s("div",{staticClass:"mb-3"},[s("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(e.title)+"\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("div",{staticClass:"font-weight-bold"},[s("span",{staticClass:"text-muted"},[t._v(t._s(t.calculatePercentage(e))+"%")]),t._v(" "),s("span",{staticClass:"small text-lighter"},[t._v("("+t._s(e.votes_count)+" "+t._s(1==e.votes_count?"vote":"votes")+")")])])])})),0):"results"===t.tab?s("div",t._l(t.status.poll.options,(function(e,a){return s("div",{staticClass:"mb-3"},[s("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(e.title)+"\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("div",{staticClass:"font-weight-bold"},[s("span",{staticClass:"text-muted"},[t._v(t._s(t.calculatePercentage(e))+"%")]),t._v(" "),s("span",{staticClass:"small text-lighter"},[t._v("("+t._s(e.votes_count)+" "+t._s(1==e.votes_count?"vote":"votes")+")")])])])})),0):t._e()]),t._v(" "),s("div",[s("p",{staticClass:"mb-0 small text-lighter font-weight-bold d-flex justify-content-between"},[s("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?s("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?s("span",{staticClass:"text-lighter"},[t._m(2)]):t._e()])]),t._v(" "),s("div",[s("span",{staticClass:"d-block d-md-none small text-lighter font-weight-bold"},[t.status.poll.expired?s("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tClosed\n\t\t\t\t\t\t\t\t\t")]):s("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(" "),s("context-menu",{ref:"contextMenu",attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1)},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("span",{staticClass:"d-none d-md-block px-1 text-primary font-weight-bold"},[s("i",{staticClass:"fas fa-poll-h"}),t._v(" Poll "),s("sup",{staticClass:"text-lighter"},[t._v("BETA")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"btn btn-primary px-2 py-1"},[e("i",{staticClass:"fas fa-poll-h fa-lg"})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])}]},91927:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"status-card-component",class:{"status-card-sm":"small"===t.size}},["text"===t.status.pf_type?s("div",{staticClass:"card shadow-none border rounded-0",class:{"border-top-0":!t.hasTopBorder}},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"media"},[s("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(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"pl-2 d-flex align-items-top"},[s("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("\n\t\t\t\t\t\t\tLoading...\n\t\t\t\t\t\t")]),t._v(" "),s("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(" "),s("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(" "),s("span",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[s("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[s("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),s("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]),t._v(" "),s("div",{staticClass:"pl-2"},[t.status.sensitive?s("details",[s("summary",{staticClass:"mb-2 font-weight-bold text-muted"},[t._v("Content Warning")]),t._v(" "),s("p",{staticClass:"pt-2 text-break status-content",domProps:{innerHTML:t._s(t.status.content)}})]):s("p",{staticClass:"pt-2 text-break status-content",domProps:{innerHTML:t._s(t.status.content)}}),t._v(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("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?s("div",[s("poll-card",{attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1):s("div",{staticClass:"card rounded-0 border-top-0 status-card card-md-rounded-0 shadow-none border"},[t.status?s("div",{staticClass:"card-header d-inline-flex align-items-center bg-white"},[s("div",[s("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(" "),s("div",{staticClass:"pl-2"},[s("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("\n\t\t\t\t\tLoading...\n\t\t\t\t")]),t._v(" "),t.status.account.is_admin?s("span",{staticClass:"fa-stack",staticStyle:{height:"1em","line-height":"1em","max-width":"19px"},attrs:{title:"Admin Account","data-toggle":"tooltip"}},[s("i",{staticClass:"fas fa-certificate text-danger fa-stack-1x"}),t._v(" "),s("i",{staticClass:"fas fa-crown text-white fa-sm fa-stack-1x",staticStyle:{"font-size":"7px"}})]):t._e(),t._v(" "),s("div",{staticClass:"d-flex align-items-center"},[t.status.place?s("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"}},[s("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(" "),t.canFollow(t.status)?s("div",[s("span",{staticClass:"px-2"}),t._v(" "),s("button",{staticClass:"btn btn-primary btn-sm font-weight-bold py-1 px-3 rounded-lg",on:{click:function(e){return t.follow(t.status.account.id)}}},[s("i",{staticClass:"far fa-user-plus mr-1"}),t._v(" Follow")])]):t._e(),t._v(" "),t.status.hasOwnProperty("relationship")&&t.status.relationship.hasOwnProperty("following")&&t.status.relationship.following?s("div",[s("span",{staticClass:"px-2"}),t._v(" "),s("button",{staticClass:"btn btn-outline-primary btn-sm font-weight-bold py-1 px-3 rounded-lg",on:{click:function(e){return t.unfollow(t.status.account.id)}}},[s("i",{staticClass:"far fa-user-check mr-1"}),t._v(" Following")])]):t._e(),t._v(" "),s("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[s("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[s("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),s("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]):t._e(),t._v(" "),s("div",{staticClass:"postPresenterContainer",staticStyle:{background:"#000"}},["photo"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):"video"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("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?s("div",{staticClass:"w-100"},[s("video-album-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("mixed-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):s("div",{staticClass:"w-100"},[s("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?s("div",{staticClass:"card-body border-top border-bottom py-2 cursor-pointer pr-2",on:{click:function(e){return t.labelRedirect()}}},[s("p",{staticClass:"font-weight-bold d-flex justify-content-between align-items-center mb-0"},[s("span",[s("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(" "),s("div",{staticClass:"card-body"},[t.reactionBar?s("div",{staticClass:"reactions my-1 pb-2"},[t.status.favourited?s("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)}}}):s("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():s("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?s("span",{staticClass:"float-right"},[s("span",{staticClass:"font-weight-light small",staticStyle:{color:"#718096"}},[s("i",{staticClass:"far fa-user",attrs:{"data-toggle":"tooltip",title:"Tagged People"}}),t._v(" "),t._l(t.status.taggedPeople,(function(t,e){return s("span",{staticClass:"mr-n2"},[s("a",{attrs:{href:"/"+t.username}},[s("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?s("div",{staticClass:"likes mb-1"},[s("span",{staticClass:"like-count"},[t._v("Liked by\n\t\t\t\t\t"),s("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?s("span",[t._v("\n\t\t\t\t\t\tand "),t.status.liked_by.total_count_pretty?s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.status.liked_by.total_count_pretty))]):t._e(),t._v(" "),s("span",{staticClass:"font-weight-bold"},[t._v("others")])]):t._e()])]):t._e(),t._v(" "),"text"!=t.status.pf_type?s("div",{staticClass:"caption"},[t.status.sensitive?t._e():s("p",{staticClass:"mb-2 read-more",staticStyle:{overflow:"hidden"}},[s("span",{staticClass:"username font-weight-bold"},[s("bdi",[s("a",{staticClass:"text-dark",attrs:{href:t.profileUrl(t.status)}},[t._v(t._s(t.status.account.username))])])]),t._v(" "),s("span",{staticClass:"status-content",domProps:{innerHTML:t._s(t.content)}})])]):t._e(),t._v(" "),s("div",{staticClass:"timestamp mt-2"},[s("p",{staticClass:"small mb-0"},["archived"!=t.status.visibility?s("a",{staticClass:"text-muted text-uppercase",attrs:{href:t.statusUrl(t.status)}},[s("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):s("span",{staticClass:"text-muted text-uppercase"},[t._v("\n\t\t\t\t\t\tPosted "),s("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?s("span",[s("span",{staticClass:"px-1"},[t._v("·")]),t._v(" "),s("span",{staticClass:"text-muted"},[t._v("Based on popular and trending content")])]):t._e()])])])]),t._v(" "),s("context-menu",{ref:"contextMenu",attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1)},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("span",[e("i",{staticClass:"fas fa-chevron-right text-lighter"})])}]},34812:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",[s("details",{staticClass:"details-animated"},[s("summary",[s("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(" "),s("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),s("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(e,a){return s("b-carousel-slide",{key:e.id+"-media"},["video"==e.type?s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:e.description,width:"100%",height:"100%"},slot:"img"},[s("source",{attrs:{src:e.url,type:e.mime}})]):"image"==e.type?s("div",{attrs:{slot:"img",title:e.description},slot:"img"},[s("img",{class:e.filter_class+" d-block img-fluid w-100",attrs:{src:e.url,alt:e.description,loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})]):s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])})),1)],1)]):s("div",{staticClass:"w-100 h-100 p-0"},[s("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(e,a){return s("slide",{key:"px-carousel-"+e.id+"-"+a,staticClass:"w-100 h-100 d-block mx-auto text-center",staticStyle:{background:"#000",display:"flex","align-items":"center"}},["video"==e.type?s("video",{staticClass:"embed-responsive-item",attrs:{preload:"none",controls:"",loop:"",title:e.description,width:"100%",height:"100%"}},[s("source",{attrs:{src:e.url,type:e.mime}})]):"image"==e.type?s("div",{attrs:{title:e.description}},[s("img",{class:e.filter_class+" img-fluid w-100",attrs:{src:e.url,alt:e.description,loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})]):s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])})),1)],1)},i=[]},21761:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",{staticClass:"content-label-wrapper"},[s("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),s("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),s("p",{staticClass:"text-center py-2"},[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(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):s("div",{staticClass:"w-100 h-100 p-0"},[s("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(e,a){return s("slide",{key:"px-carousel-"+e.id+"-"+a,staticStyle:{background:"#000",display:"flex","align-items":"center"},attrs:{title:e.description}},[s("img",{class:e.filter_class+" img-fluid w-100 p-0",attrs:{src:e.url,alt:t.altText(e),loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}}),t._v(" "),!t.status.sensitive&&t.sensitive?s("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}}},[s("i",{staticClass:"fas fa-eye-slash fa-lg"})]):t._e(),t._v(" "),t.status.media_attachments[0].license?s("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))"}},[s("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.url}},[t._v("Photo")]),t._v(" by "),s("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 "),s("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)],1)},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])}]},65654:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",{staticClass:"content-label-wrapper"},[s("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),s("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),s("p",{staticClass:"text-center py-2"},[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(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):s("div",[s("div",{staticStyle:{position:"relative"},attrs:{title:t.status.media_attachments[0].description}},[s("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?s("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}}},[s("i",{staticClass:"fas fa-eye-slash fa-lg"})]):t._e(),t._v(" "),t.status.media_attachments[0].license?s("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))"}},[s("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.url}},[t._v("Photo")]),t._v(" by "),s("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 "),s("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()])])},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])}]},36310:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",[s("details",{staticClass:"details-animated"},[s("summary",[s("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(" "),s("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),s("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,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:t.description,width:"100%",height:"100%"},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)]):s("div",[s("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,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:t.description,width:"100%",height:"100%"},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)},i=[]},38508:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>a,staticRenderFns:()=>i});var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",{staticClass:"content-label-wrapper"},[s("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),s("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),s("p",{staticClass:"text-center py-2"},[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(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):s("div",{staticClass:"embed-responsive embed-responsive-16by9"},[s("video",{staticClass:"video",attrs:{controls:"",playsinline:"",preload:"metadata",loop:"","data-id":t.status.id}},[s("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])}]}},t=>{t.O(0,[898],(()=>{return e=68059,t(t.s=e);var e}));t.O()}]); \ No newline at end of file diff --git a/public/js/rempro.js b/public/js/rempro.js index 4b45e27a2..3bb7c3af7 100644 --- a/public/js/rempro.js +++ b/public/js/rempro.js @@ -1 +1 @@ -(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[665],{65625:(t,e,s)=>{"use strict";function o(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 s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))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 s=0,o=new Array(e);sa});const a={props:["profile-id"],components:{StatusCard:s(19210).default},data:function(){return{id:[],ids:[],user:!1,profile:{},feed:[],min_id:null,max_id:null,loading:!0,owner:!1,layoutType:!0,relationship:null,warning:!1,ctxMenuStatus:!1,ctxMenuRelationship:!1,fetchingRemotePosts:!1,showMutualFollowers:!1,loadingMore:!1,showLoadMore:!0,followers:[],followerCursor:1,followerMore:!0,followerLoading:!0,following:[],followingCursor:1,followingMore:!0,followingLoading:!0,followingModalSearch:null,followingModalSearchCache:null,followingModalTab:"following"}},beforeMount:function(){this.fetchRelationships(),this.fetchProfile()},updated:function(){document.querySelectorAll(".hashtag").forEach((function(t,e){t.href=App.util.format.rewriteLinks(t)}))},methods:{fetchProfile:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then((function(e){t.user=e.data,window._sharedData.curUser=e.data,window.App.util.navatar()})),axios.get("/api/pixelfed/v1/accounts/"+this.profileId).then((function(e){t.profile=e.data,t.fetchPosts()}))},fetchPosts:function(){var t=this,e="/api/pixelfed/v1/accounts/"+this.profileId+"/statuses";axios.get(e,{params:{only_media:!0,min_id:1}}).then((function(e){var s=e.data.filter((function(t){return t.media_attachments.length>0})),i=s.map((function(t){return t.id}));t.ids=i,t.min_id=Math.max.apply(Math,o(i)),t.max_id=Math.min.apply(Math,o(i)),t.feed=s,t.loading=!1})).catch((function(t){swal("Oops, something went wrong","Please release the page.","error")}))},loadMorePosts:function(){var t=this;this.loadingMore=!0;var e="/api/pixelfed/v1/accounts/"+this.profileId+"/statuses";axios.get(e,{params:{only_media:!0,max_id:this.max_id}}).then((function(e){var s,i,a=e.data.filter((function(e){return-1===t.ids.indexOf(e.id)})).filter((function(t){return t.media_attachments.length>0})).map((function(t){return{id:t.id,caption:{text:t.content_text,html:t.content},count:{likes:t.favourites_count,shares:t.reblogs_count,comments:t.reply_count},thumb:t.media_attachments[0].url,media:t.media_attachments,timestamp:t.created_at,type:t.pf_type,url:t.url,sensitive:t.sensitive,cw:t.sensitive,spoiler_text:t.spoiler_text}})),n=a.map((function(t){return t.id}));(s=t.ids).push.apply(s,o(n)),t.max_id=Math.min.apply(Math,o(n)),(i=t.feed).push.apply(i,o(a)),t.loadingMore=!1})).catch((function(e){t.loadingMore=!1,t.showLoadMore=!1}))},fetchRelationships:function(){var t=this;0!=document.querySelectorAll("body")[0].classList.contains("loggedIn")&&axios.get("/api/pixelfed/v1/accounts/relationships",{params:{"id[]":this.profileId}}).then((function(e){e.data.length&&(t.relationship=e.data[0],1==e.data[0].blocking&&(t.loading=!1,t.warning=!0))}))},postPreviewUrl:function(t){return'background: url("'+t.thumb+'");background-size:cover'},timestampFormat:function(t){var e=new Date(t);return e.toDateString()+" "+e.toLocaleTimeString()},remoteProfileUrl:function(t){return"/i/web/profile/_/"+t.id},remotePostUrl:function(t){return"/i/web/post/_/"+this.profile.id+"/"+t.id},followProfile:function(){var t=this;axios.post("/i/follow",{item:this.profileId}).then((function(e){swal("Followed","You are now following "+t.profile.username+"!","success"),t.relationship.following=!0})).catch((function(t){swal("Oops!","Something went wrong, please try again later.","error")}))},unfollowProfile:function(){var t=this;axios.post("/i/follow",{item:this.profileId}).then((function(e){swal("Unfollowed","You are no longer following "+t.profile.username+".","warning"),t.relationship.following=!1})).catch((function(t){swal("Oops!","Something went wrong, please try again later.","error")}))},showCtxMenu:function(){this.$refs.visitorContextMenu.show()},copyProfileLink:function(){navigator.clipboard.writeText(window.location.href),this.$refs.visitorContextMenu.hide()},muteProfile:function(){var t=this,e=this.profileId;axios.post("/i/mute",{type:"user",item:e}).then((function(e){t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully muted "+t.profile.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")})),this.$refs.visitorContextMenu.hide()},unmuteProfile:function(){var t=this,e=this.profileId;axios.post("/i/unmute",{type:"user",item:e}).then((function(e){t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully unmuted "+t.profile.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")})),this.$refs.visitorContextMenu.hide()},blockProfile:function(){var t=this,e=this.profileId;axios.post("/i/block",{type:"user",item:e}).then((function(e){t.warning=!0,t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully blocked "+t.profile.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")})),this.$refs.visitorContextMenu.hide()},unblockProfile:function(){var t=this,e=this.profileId;axios.post("/i/unblock",{type:"user",item:e}).then((function(e){t.warning=!1,t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully unblocked "+t.profile.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")})),this.$refs.visitorContextMenu.hide()},reportProfile:function(){window.location.href="/l/i/report?type=profile&id="+this.profileId,this.$refs.visitorContextMenu.hide()},ctxMenu:function(t){this.ctxMenuStatus=t;var e=this;axios.get("/api/pixelfed/v1/accounts/relationships",{params:{"id[]":e.profileId}}).then((function(t){e.ctxMenuRelationship=t.data[0],e.$refs.ctxModal.show()}))},closeCtxMenu:function(){this.ctxMenuStatus=!1,this.ctxMenuRelationship=!1,this.$refs.ctxModal.hide()},ctxMenuCopyLink:function(){var t=this.ctxMenuStatus;navigator.clipboard.writeText(t.url),this.closeCtxMenu()},ctxMenuGoToPost:function(){var t=this.ctxMenuStatus;window.location.href=this.statusUrl(t),this.closeCtxMenu()},statusUrl:function(t){return"/i/web/post/_/"+this.profile.id+"/"+t.id},deletePost:function(t){var e=this;0!=this.user.is_admin&&0!=window.confirm("Are you sure you want to delete this post?")&&axios.post("/i/delete",{type:"status",item:t.id}).then((function(s){e.feed=e.feed.filter((function(e){return e.id!=t.id})),e.$refs.ctxModal.hide()})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))},manuallyFetchRemotePosts:function(t){this.fetchingRemotePosts=!0,event.target.blur(),swal("Fetching Remote Posts","Check back in a few minutes!","info")},timeAgo:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null==t?"never":(e=e?" "+e:"",App.util.format.timeAgo(t)+e)},urlRedirectHandler:function(t){var e="";new URL(t).hostname==window.location.hostname?e=t:(e="/i/redirect?url=",e+=encodeURI(t)),window.location.href=e},followingModal:function(){var t=this;return this.followingCursor>1||axios.get("/api/pixelfed/v1/accounts/"+this.profileId+"/following",{params:{page:this.followingCursor}}).then((function(e){t.following=e.data,t.followingModalSearchCache=e.data,t.followingCursor++,e.data.length<10&&(t.followingMore=!1),t.followingLoading=!1})),void this.$refs.followingModal.show()},followersModal:function(){var t=this;return this.followerCursor>1||axios.get("/api/pixelfed/v1/accounts/"+this.profileId+"/followers",{params:{page:this.followerCursor}}).then((function(e){var s;(s=t.followers).push.apply(s,o(e.data)),t.followerCursor++,e.data.length<10&&(t.followerMore=!1),t.followerLoading=!1})),void this.$refs.followerModal.show()},followingLoadMore:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/"+this.profile.id+"/following",{params:{page:this.followingCursor,fbu:this.followingModalSearch}}).then((function(e){var s;e.data.length>0&&((s=t.following).push.apply(s,o(e.data)),t.followingCursor++,t.followingModalSearchCache=t.following);e.data.length<10&&(t.followingModalSearchCache=t.following,t.followingMore=!1)}))},followersLoadMore:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/"+this.profile.id+"/followers",{params:{page:this.followerCursor}}).then((function(e){var s;e.data.length>0&&((s=t.followers).push.apply(s,o(e.data)),t.followerCursor++);e.data.length<10&&(t.followerMore=!1)}))},profileUrlRedirect:function(t){return 1==t.local?t.url:"/i/web/profile/_/"+t.id},followingModalSearchHandler:function(){var t=this,e=this,s=this.followingModalSearch;if(0==s.length&&(this.following=this.followingModalSearchCache,this.followingModalSearch=null),s.length>0){var o="/api/pixelfed/v1/accounts/"+e.profileId+"/following?page=1&fbu="+s;axios.get(o).then((function(e){t.following=e.data})).catch((function(t){e.following=e.followingModalSearchCache,e.followingModalSearch=null}))}}}}},53999:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(19755);const i={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 s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)},ctxEmbedShowLikes:function(t,e){1==t&&(this.ctxEmbedCompactMode=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)},ctxEmbedCompactMode:function(t,e){1==t&&(this.ctxEmbedShowCaption=!1,this.ctxEmbedShowLikes=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)}},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 s=t.ctxMenuStatus.account.acct;t.closeCtxMenu(),setTimeout((function(){swal("Follow successful!","You are now following "+s,"success")}),500)}))},ctxMenuUnfollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then((function(e){var s=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 "+s,"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,s=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(o){o?axios.post("/i/report/",{report:t,type:"post",id:s}).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,s){var o=this,i=(t.account.username,t.id,""),a=this;switch(e){case"addcw":i="Are you sure you want to add a content warning to this post?",swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&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,a.closeModals(),a.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),a.closeModals(),a.ctxModMenuClose()}))}));break;case"remcw":i="Are you sure you want to remove the content warning on this post?",swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&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,a.closeModals(),a.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),a.closeModals(),a.ctxModMenuClose()}))}));break;case"unlist":i="Are you sure you want to unlist this post?",swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(e){o.feed=o.feed.filter((function(e){return e.id!=t.id})),swal("Success","Successfully unlisted post","success"),a.closeModals(),a.ctxModMenuClose()})).catch((function(t){a.closeModals(),a.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")}))}));break;case"spammer":i="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:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&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"),a.closeModals(),a.ctxModMenuClose()})).catch((function(t){a.closeModals(),a.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")}))}))}},shareStatus:function(t,e){0!=o("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!=o("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(s){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(s){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()}))}}}},55192:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(20415),i=s(19755);const a={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":o.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";s.r(e),s.d(e,{default:()=>n});var o=s(20415),i=s(97622),a=s(19755);const n={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":o.default,"poll-card":i.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 s=''.concat(e.shortcode,'');t.content=t.content.replace(":".concat(e.shortcode,":"),s)}))},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,s=window.App.config.username.remote.custom,o=t.account.username,i=document.createElement("a");switch(i.href=t.account.url,i=i.hostname,e){case"@":default:return o+'@'+i+"";case"from":return o+' from '+i+"";case"custom":return o+' '+s+" "+i+""}},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!=a("body").hasClass("loggedIn")){var s=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=s,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 s=this;this.replySending=!0;var o=t.id,i=this.replyText,a=this.config.uploader.max_caption_length;if(i.length>a)return this.replySending=!1,void swal("Comment Too Long","Please make sure your comment is "+a+" characters or less.","error");axios.post("/i/comment",{item:o,comment:i,sensitive:this.replyNsfw}).then((function(t){s.replyText="",s.replies.push(t.data.entity),s.$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)},canFollow:function(t){return!!t.hasOwnProperty("relationship")&&(!(!t.hasOwnProperty("account")||!t.account.hasOwnProperty("id"))&&(t.account.id!=this.profile.id&&!t.relationship.following))},follow:function(t){var e=this;event.currentTarget.blur(),axios.post("/i/follow",{item:t}).then((function(s){e.status.relationship.following=!0,e.$emit("followed",t)})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))},unfollow:function(t){var e=this;event.currentTarget.blur(),axios.post("/i/follow",{item:t}).then((function(s){e.status.relationship.following=!1,e.$emit("unfollowed",t)})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))}}}},7768:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});const o={props:["status"]}},10578:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(30765),i=s.n(o);const a={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){i()({el:t.target})},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 s="backward";e.advancePage(s),e.$emit("navigation-click",s)}if("39"==t.keyCode){t.preventDefault();var o="forward";e.advancePage(o),e.$emit("navigation-click",o)}}}}},15464:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(30765),i=s.n(o);const a={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){i()({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}}}},63049:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});const o={props:["status"]}},67223:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});const o={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")}}}},48473:(t,e,s)=>{Vue.component("photo-presenter",s(23251).default),Vue.component("video-presenter",s(53973).default),Vue.component("photo-album-presenter",s(33872).default),Vue.component("video-album-presenter",s(76644).default),Vue.component("mixed-album-presenter",s(57374).default),Vue.component("remote-profile",s(14083).default)},53213:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(23645),i=s.n(o)()((function(t){return t[1]}));i.push([t.id,"@media (min-width:1200px){.container[data-v-36d6de0c]{max-width:1050px}}",""]);const a=i},28597:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(23645),i=s.n(o)()((function(t){return t[1]}));i.push([t.id,".card-img-top[data-v-1b12221c]{border-top-left-radius:0!important;border-top-right-radius:0!important}.content-label-wrapper[data-v-1b12221c]{position:relative}.content-label[data-v-1b12221c]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}",""]);const a=i},43125:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(23645),i=s.n(o)()((function(t){return t[1]}));i.push([t.id,".card-img-top[data-v-77d48172]{border-top-left-radius:0!important;border-top-right-radius:0!important}.content-label-wrapper[data-v-77d48172]{position:relative}.content-label[data-v-77d48172]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}",""]);const a=i},71965:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(23645),i=s.n(o)()((function(t){return t[1]}));i.push([t.id,".content-label-wrapper[data-v-5e63aaf2]{position:relative}.content-label[data-v-5e63aaf2]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}",""]);const a=i},59179:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(23645),i=s.n(o)()((function(t){return t[1]}));i.push([t.id,".status-card-component .status-content{font-size:17px}.status-card-component.status-card-sm .status-content{font-size:14px}.status-card-component.status-card-sm .fa-lg{font-size:unset;line-height:unset;vertical-align:unset}",""]);const a=i},73087:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var o=s(93379),i=s.n(o),a=s(53213),n={insert:"head",singleton:!1};i()(a.default,n);const r=a.default.locals||{}},27265:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var o=s(93379),i=s.n(o),a=s(28597),n={insert:"head",singleton:!1};i()(a.default,n);const r=a.default.locals||{}},2511:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var o=s(93379),i=s.n(o),a=s(43125),n={insert:"head",singleton:!1};i()(a.default,n);const r=a.default.locals||{}},99799:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var o=s(93379),i=s.n(o),a=s(71965),n={insert:"head",singleton:!1};i()(a.default,n);const r=a.default.locals||{}},43855:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var o=s(93379),i=s.n(o),a=s(59179),n={insert:"head",singleton:!1};i()(a.default,n);const r=a.default.locals||{}},14083:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(58113),i=s(47926),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);s(25392);const n=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,"36d6de0c",null).exports},20415:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(53242),i=s(25266),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);const n=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},97622:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(74454),i=s(97381),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);const n=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},19210:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(48661),i=s(71334),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);s(45101);const n=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},57374:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(40621),i=s(4220),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);const n=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},33872:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(74762),i=s(10878),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);s(75152);const n=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,"1b12221c",null).exports},23251:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(42415),i=s(29911),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);s(12796);const n=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,"77d48172",null).exports},76644:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(35301),i=s(18411),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);const n=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},53973:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(25188),i=s(44976),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);s(52802);const n=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,"5e63aaf2",null).exports},47926:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(65625),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const a=o.default},25266:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(53999),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const a=o.default},97381:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(55192),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const a=o.default},71334:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(86637),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const a=o.default},4220:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(7768),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const a=o.default},10878:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(10578),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const a=o.default},29911:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(15464),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const a=o.default},18411:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(63049),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const a=o.default},44976:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(67223),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const a=o.default},25392:(t,e,s)=>{"use strict";s.r(e);var o=s(73087),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},75152:(t,e,s)=>{"use strict";s.r(e);var o=s(27265),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},12796:(t,e,s)=>{"use strict";s.r(e);var o=s(2511),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},52802:(t,e,s)=>{"use strict";s.r(e);var o=s(99799),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},45101:(t,e,s)=>{"use strict";s.r(e);var o=s(43855),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},58113:(t,e,s)=>{"use strict";s.r(e);var o=s(91029),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},53242:(t,e,s)=>{"use strict";s.r(e);var o=s(22372),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},74454:(t,e,s)=>{"use strict";s.r(e);var o=s(37860),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},48661:(t,e,s)=>{"use strict";s.r(e);var o=s(91927),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},40621:(t,e,s)=>{"use strict";s.r(e);var o=s(2999),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},74762:(t,e,s)=>{"use strict";s.r(e);var o=s(21761),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},42415:(t,e,s)=>{"use strict";s.r(e);var o=s(65654),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},35301:(t,e,s)=>{"use strict";s.r(e);var o=s(7592),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},25188:(t,e,s)=>{"use strict";s.r(e);var o=s(53678),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},91029:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.relationship&&t.relationship.blocking&&t.warning?s("div",{staticClass:"bg-white pt-3 border-bottom"},[s("div",{staticClass:"container"},[s("p",{staticClass:"text-center font-weight-bold"},[t._v("You are blocking this account")]),t._v(" "),s("p",{staticClass:"text-center font-weight-bold"},[t._v("Click "),s("a",{staticClass:"cursor-pointer",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.warning=!1}}},[t._v("here")]),t._v(" to view profile")])])]):t._e(),t._v(" "),t.loading?s("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"80vh"}},[s("img",{attrs:{src:"/img/pixelfed-icon-grey.svg"}})]):t._e(),t._v(" "),t.loading||t.warning?t._e():s("div",{staticClass:"container"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 col-md-4 pt-5"},[s("div",{staticClass:"card shadow-none border"},[s("div",{staticClass:"card-header p-0 m-0"},[t.profile.header_bg?s("img",{staticStyle:{width:"100%",height:"140px","object-fit":"cover"},attrs:{src:t.profile.header_bg}}):s("div",{staticClass:"bg-primary",staticStyle:{width:"100%",height:"140px"}})]),t._v(" "),s("div",{staticClass:"card-body pb-0"},[s("div",{staticClass:"mt-n5 mb-3"},[s("img",{staticClass:"rounded-circle p-1 border mt-n4 bg-white shadow",attrs:{src:t.profile.avatar,width:"90px",height:"90px;",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}}),t._v(" "),s("span",{staticClass:"float-right mt-n1"},[s("span",[t.relationship&&0==t.relationship.following?s("button",{staticClass:"btn btn-outline-light py-0 px-3 mt-n1",staticStyle:{"font-size":"13px","font-weight":"500"},on:{click:function(e){return t.followProfile()}}},[t._v("Follow")]):t._e(),t._v(" "),t.relationship&&1==t.relationship.following?s("button",{staticClass:"btn btn-outline-light py-0 px-3 mt-n1",staticStyle:{"font-size":"13px","font-weight":"500"},on:{click:function(e){return t.unfollowProfile()}}},[t._v("Unfollow")]):t._e()]),t._v(" "),s("span",{staticClass:"mx-2"},[s("a",{staticClass:"btn btn-outline-light btn-sm mt-n1",staticStyle:{"padding-top":"2px","padding-bottom":"1px"},attrs:{href:"/account/direct/t/"+t.profile.id}},[s("i",{staticClass:"far fa-comment-dots cursor-pointer",staticStyle:{"font-size":"13px"}})])]),t._v(" "),s("span",[s("button",{staticClass:"btn btn-outline-light btn-sm mt-n1",staticStyle:{"padding-top":"2px","padding-bottom":"1px"},on:{click:function(e){return t.showCtxMenu()}}},[s("i",{staticClass:"fas fa-cog cursor-pointer",staticStyle:{"font-size":"13px"}})])])])]),t._v(" "),s("p",{staticClass:"pl-2 h4 font-weight-bold mb-1"},[t._v(t._s(t.profile.display_name))]),t._v(" "),s("p",{staticClass:"pl-2 font-weight-bold mb-2"},[s("a",{staticClass:"text-muted",attrs:{href:t.profile.url},on:{click:function(e){return e.preventDefault(),t.urlRedirectHandler(t.profile.url)}}},[t._v(t._s(t.profile.acct))])]),t._v(" "),s("p",{staticClass:"pl-2 text-muted small d-flex justify-content-between"},[s("span",[s("span",{staticClass:"font-weight-bold text-dark"},[t._v(t._s(t.profile.statuses_count))]),t._v(" "),s("span",[t._v("Posts")])]),t._v(" "),s("span",{staticClass:"cursor-pointer",on:{click:function(e){return t.followingModal()}}},[s("span",{staticClass:"font-weight-bold text-dark"},[t._v(t._s(t.profile.following_count))]),t._v(" "),s("span",[t._v("Following")])]),t._v(" "),s("span",{staticClass:"cursor-pointer",on:{click:function(e){return t.followersModal()}}},[s("span",{staticClass:"font-weight-bold text-dark"},[t._v(t._s(t.profile.followers_count))]),t._v(" "),s("span",[t._v("Followers")])])]),t._v(" "),s("p",{staticClass:"pl-2 text-muted small pt-2",domProps:{innerHTML:t._s(t.profile.note)}})])]),t._v(" "),s("p",{staticClass:"small text-lighter p-2"},[t._v("Last updated: "),s("time",{attrs:{datetime:t.profile.last_fetched_at}},[t._v(t._s(t.timeAgo(t.profile.last_fetched_at,"ago")))])]),t._v(" "),s("p",{staticClass:"card border-left-primary card-body small py-2 text-muted font-weight-bold shadow-none border-top border-bottom border-right"},[t._v("You are viewing a profile from a remote server, it may not contain up-to-date information.")])]),t._v(" "),s("div",{staticClass:"col-12 col-md-8 pt-5"},[s("div",{staticClass:"row"},[t._l(t.feed,(function(t,e){return s("div",{key:"remprop"+e,staticClass:"col-12"},[s("status-card",{class:{"border-top":0===e},attrs:{status:t}})],1)})),t._v(" "),0==t.feed.length?s("div",{staticClass:"col-12 mb-2"},[t._m(0)]):s("div",{staticClass:"col-12 mt-4"},[t.showLoadMore?s("p",{staticClass:"text-center mb-0 px-0"},[s("button",{staticClass:"btn btn-outline-primary btn-block font-weight-bold",on:{click:function(e){return t.loadMorePosts()}}},[t.loadingMore?s("span",[t._m(1)]):s("span",[t._v("Load More")])])]):t._e()])],2)])]),t._v(" "),t.profile&&t.following?s("b-modal",{ref:"followingModal",attrs:{id:"following-modal","hide-footer":"",centered:"",scrollable:"",title:"Following","body-class":"list-group-flush py-3 px-0","dialog-class":"follow-modal"}},[t.followingLoading?s("div",{staticClass:"text-center py-5"},[s("div",{staticClass:"spinner-border",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])]):s("div",{staticClass:"list-group",staticStyle:{"max-height":"60vh"}},[t.following.length?s("div",[1==t.owner?s("div",{staticClass:"list-group-item border-0 pt-0 px-0 mt-n2 mb-3"},[s("span",{staticClass:"d-flex px-4 pb-0 align-items-center"},[s("i",{staticClass:"fas fa-search text-lighter"}),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.followingModalSearch,expression:"followingModalSearch"}],staticClass:"form-control border-0 shadow-0 no-focus",attrs:{type:"text",placeholder:"Search Following..."},domProps:{value:t.followingModalSearch},on:{keyup:t.followingModalSearchHandler,input:function(e){e.target.composing||(t.followingModalSearch=e.target.value)}}})])]):t._e(),t._v(" "),t._l(t.following,(function(e,o){return s("div",{key:"following_"+o,staticClass:"list-group-item border-0 py-1 mb-1"},[s("div",{staticClass:"media"},[s("a",{attrs:{href:t.profileUrlRedirect(e)}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px",loading:"lazy",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0'"}})]),t._v(" "),s("div",{staticClass:"media-body text-truncate"},[s("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:t.profileUrlRedirect(e)}},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e.local?s("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._s(e.display_name?e.display_name:e.username)+"\n\t\t\t\t\t\t\t\t")]):s("p",{staticClass:"text-muted mb-0 text-break mr-3",staticStyle:{"font-size":"14px"},attrs:{title:e.acct,"data-toggle":"dropdown","data-placement":"bottom"}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(e.acct.split("@")[0]))]),s("span",{staticClass:"text-lighter"},[t._v("@"+t._s(e.acct.split("@")[1]))])])]),t._v(" "),t.owner?s("div",[s("a",{staticClass:"btn btn-outline-dark btn-sm font-weight-bold",attrs:{href:"#"},on:{click:function(s){return s.preventDefault(),t.followModalAction(e.id,o,"following")}}},[t._v("Following")])]):t._e()])])})),t._v(" "),t.followingModalSearch&&0==t.following.length?s("div",{staticClass:"list-group-item border-0"},[s("div",{staticClass:"list-group-item border-0 pt-5"},[s("p",{staticClass:"p-3 text-center mb-0 lead"},[t._v("No Results Found")])])]):t._e(),t._v(" "),t.following.length>0&&t.followingMore?s("div",{staticClass:"list-group-item text-center",on:{click:function(e){return t.followingLoadMore()}}},[s("p",{staticClass:"mb-0 small text-muted font-weight-light cursor-pointer"},[t._v("Load more")])]):t._e()],2):s("div",{staticClass:"list-group-item border-0"},[s("p",{staticClass:"text-center mb-0 font-weight-bold text-muted py-5"},[s("span",{staticClass:"text-dark"},[t._v(t._s(t.profileUsername))]),t._v(" is not following yet")])])])]):t._e(),t._v(" "),s("b-modal",{ref:"followerModal",attrs:{id:"follower-modal","hide-footer":"",centered:"",scrollable:"",title:"Followers","body-class":"list-group-flush py-3 px-0","dialog-class":"follow-modal"}},[t.followerLoading?s("div",{staticClass:"text-center py-5"},[s("div",{staticClass:"spinner-border",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])]):s("div",{staticClass:"list-group",staticStyle:{"max-height":"60vh"}},[t.followers.length?s("div",[t._l(t.followers,(function(e,o){return s("div",{key:"follower_"+o,staticClass:"list-group-item border-0 py-1 mb-1"},[s("div",{staticClass:"media mb-0"},[s("a",{attrs:{href:t.profileUrlRedirect(e)}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px",height:"30px",loading:"lazy",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0'"}})]),t._v(" "),s("div",{staticClass:"media-body mb-0"},[s("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:t.profileUrlRedirect(e)}},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e.local?s("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._s(e.display_name?e.display_name:e.username)+"\n\t\t\t\t\t\t\t\t")]):s("p",{staticClass:"text-muted mb-0 text-break mr-3",staticStyle:{"font-size":"14px"},attrs:{title:e.acct,"data-toggle":"dropdown","data-placement":"bottom"}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(e.acct.split("@")[0]))]),s("span",{staticClass:"text-lighter"},[t._v("@"+t._s(e.acct.split("@")[1]))])])])])])})),t._v(" "),t.followers.length&&t.followerMore?s("div",{staticClass:"list-group-item text-center",on:{click:function(e){return t.followersLoadMore()}}},[s("p",{staticClass:"mb-0 small text-muted font-weight-light cursor-pointer"},[t._v("Load more")])]):t._e()],2):s("div",{staticClass:"list-group-item border-0"},[s("p",{staticClass:"text-center mb-0 font-weight-bold text-muted py-5"},[s("span",{staticClass:"text-dark"},[t._v(t._s(t.profileUsername))]),t._v(" has no followers yet")])])])]),t._v(" "),s("b-modal",{ref:"visitorContextMenu",attrs:{id:"visitor-context-menu","hide-footer":"","hide-header":"",centered:"",size:"sm","body-class":"list-group-flush p-0"}},[t.relationship?s("div",{staticClass:"list-group"},[s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.copyProfileLink}},[t._v("\n\t\t\t\t\tCopy Link\n\t\t\t\t")]),t._v(" "),!t.user||t.owner||t.relationship.muting?t._e():s("div",{staticClass:"list-group-item cursor-pointer text-center rounded",on:{click:t.muteProfile}},[t._v("\n\t\t\t\t\tMute\n\t\t\t\t")]),t._v(" "),t.user&&!t.owner&&t.relationship.muting?s("div",{staticClass:"list-group-item cursor-pointer text-center rounded",on:{click:t.unmuteProfile}},[t._v("\n\t\t\t\t\tUnmute\n\t\t\t\t")]):t._e(),t._v(" "),t.user&&!t.owner?s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.reportProfile}},[t._v("\n\t\t\t\t\tReport User\n\t\t\t\t")]):t._e(),t._v(" "),!t.user||t.owner||t.relationship.blocking?t._e():s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.blockProfile}},[t._v("\n\t\t\t\t\tBlock\n\t\t\t\t")]),t._v(" "),t.user&&!t.owner&&t.relationship.blocking?s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.unblockProfile}},[t._v("\n\t\t\t\t\tUnblock\n\t\t\t\t")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-muted",on:{click:function(e){return t.$refs.visitorContextMenu.hide()}}},[t._v("\n\t\t\t\t\tClose\n\t\t\t\t")])]):t._e()]),t._v(" "),s("b-modal",{ref:"ctxModal",attrs:{id:"ctx-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"list-group text-center"},[t.ctxMenuStatus&&t.profile.id!=t.profile.id?s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-danger",on:{click:function(e){return t.ctxMenuReportPost()}}},[t._v("Report inappropriate")]):t._e(),t._v(" "),t.ctxMenuStatus&&t.profile.id!=t.profile.id&&t.ctxMenuRelationship&&t.ctxMenuRelationship.following?s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-danger",on:{click:function(e){return t.ctxMenuUnfollow()}}},[t._v("Unfollow")]):t._e(),t._v(" "),t.ctxMenuStatus&&t.profile.id!=t.profile.id&&t.ctxMenuRelationship&&!t.ctxMenuRelationship.following?s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-primary",on:{click:function(e){return t.ctxMenuFollow()}}},[t._v("Follow")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuGoToPost()}}},[t._v("Go to post")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuCopyLink()}}},[t._v("Copy Link")]),t._v(" "),t.profile&&1==t.profile.is_admin?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxModMenuShow()}}},[t._v("Moderation Tools")]):t._e(),t._v(" "),t.ctxMenuStatus&&(t.profile.is_admin||t.profile.id==t.profile.id)?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.deletePost(t.ctxMenuStatus)}}},[t._v("Delete")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxMenu()}}},[t._v("Cancel")])])])],1)])},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"d-flex justify-content-center align-items-center bg-white border rounded",staticStyle:{height:"60vh"}},[s("div",{staticClass:"text-center"},[s("p",{staticClass:"lead"},[t._v("We haven't seen any posts from this account.")])])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])}]},22372:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modal-stack"},[s("b-modal",{ref:"ctxModal",attrs:{id:"ctx-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"list-group text-center"},["archived"!==t.status.visibility?s("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?s("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?s("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?s("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?s("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?s("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?s("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?s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxMenu()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("div",{staticClass:"list-group text-center"},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("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?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"remcw")}}},[t._v("Remove Content Warning")]):s("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(" "),s("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"),s("br"),t._v(" "),s("span",{staticClass:"small"},[t._v("Unlist + CW existing and future posts")])]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("div",{staticClass:"list-group text-center"},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Unlist Posts")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Moderation Log")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModOtherMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("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(" "),s("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?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuEmbed()}}},[t._v("Embed")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxShareMenu()}}},[t._v("Cancel")])]),t._v(" "),s("b-modal",{ref:"ctxEmbedModal",attrs:{id:"ctx-embed-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"md","body-class":"p-2 rounded"}},[s("div",[s("div",{staticClass:"form-group"},[s("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(" "),s("div",{staticClass:"form-group pl-2 d-flex justify-content-center"},[s("div",{staticClass:"form-check mr-3"},[s("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 s=t.ctxEmbedShowCaption,o=e.target,i=!!o.checked;if(Array.isArray(s)){var a=t._i(s,null);o.checked?a<0&&(t.ctxEmbedShowCaption=s.concat([null])):a>-1&&(t.ctxEmbedShowCaption=s.slice(0,a).concat(s.slice(a+1)))}else t.ctxEmbedShowCaption=i}}}),t._v(" "),s("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(" "),s("div",{staticClass:"form-check mr-3"},[s("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 s=t.ctxEmbedShowLikes,o=e.target,i=!!o.checked;if(Array.isArray(s)){var a=t._i(s,null);o.checked?a<0&&(t.ctxEmbedShowLikes=s.concat([null])):a>-1&&(t.ctxEmbedShowLikes=s.slice(0,a).concat(s.slice(a+1)))}else t.ctxEmbedShowLikes=i}}}),t._v(" "),s("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(" "),s("div",{staticClass:"form-check"},[s("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 s=t.ctxEmbedCompactMode,o=e.target,i=!!o.checked;if(Array.isArray(s)){var a=t._i(s,null);o.checked?a<0&&(t.ctxEmbedCompactMode=s.concat([null])):a>-1&&(t.ctxEmbedCompactMode=s.slice(0,a).concat(s.slice(a+1)))}else t.ctxEmbedCompactMode=i}}}),t._v(" "),s("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(" "),s("hr"),t._v(" "),s("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(" "),s("p",{staticClass:"mb-0 px-2 small text-muted"},[t._v("By using this embed, you agree to our "),s("a",{attrs:{href:"/site/terms"}},[t._v("Terms of Use")])])])]),t._v(" "),s("b-modal",{ref:"ctxReport",attrs:{id:"ctx-report","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group text-center"},[s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("spam")}}},[t._v("Spam")]),t._v(" "),s("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(" "),s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.openCtxReportOtherMenu()}}},[t._v("Other")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group text-center"},[s("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(" "),s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("impersonation")}}},[t._v("Impersonation")]),t._v(" "),s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportOtherMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),s("b-modal",{ref:"ctxConfirm",attrs:{id:"ctx-confirm","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"d-flex align-items-center justify-content-center py-3"},[s("div",[t._v(t._s(this.confirmModalTitle))])]),t._v(" "),s("div",{staticClass:"d-flex border-top btn-group btn-group-block rounded-0",attrs:{role:"group"}},[s("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(" "),s("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)},i=[]},37860:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"card shadow-none rounded-0",class:{border:t.showBorder,"border-top-0":!t.showBorderTop}},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"media"},[s("img",{staticClass:"rounded-circle box-shadow mr-2",attrs:{src:t.status.account.avatar,width:"32px",height:"32px",alt:"avatar"}}),t._v(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"pl-2 d-flex align-items-top"},[s("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(" "),s("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(" "),s("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(" "),s("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(" "),s("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(" "),s("span",{staticClass:"d-none d-md-block px-1 text-lighter font-weight-bold"},[t.status.poll.expired?s("span",[t._v("\n\t\t\t\t\t\t\t\tClosed\n\t\t\t\t\t\t\t")]):s("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(" "),s("span",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[s("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[s("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),s("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]),t._v(" "),s("div",{staticClass:"pl-2"},[s("div",{staticClass:"poll py-3"},[s("div",{staticClass:"pt-2 text-break d-flex align-items-center mb-3",staticStyle:{"font-size":"17px"}},[t._m(1),t._v(" "),s("span",{staticClass:"font-weight-bold ml-3",domProps:{innerHTML:t._s(t.status.content)}})]),t._v(" "),s("div",{staticClass:"mb-2"},["vote"===t.tab?s("div",[t._l(t.status.poll.options,(function(e,o){return s("p",[s("button",{staticClass:"btn btn-block lead rounded-pill",class:[o==t.selectedIndex?"btn-primary":"btn-outline-primary"],attrs:{disabled:!t.authenticated},on:{click:function(e){return t.selectOption(o)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.title)+"\n\t\t\t\t\t\t\t\t\t\t")])])})),t._v(" "),null!=t.selectedIndex?s("p",{staticClass:"text-right"},[s("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?s("div",t._l(t.status.poll.options,(function(e,o){return s("div",{staticClass:"mb-3"},[s("button",{staticClass:"btn btn-block lead rounded-pill",class:[o==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(e.title)+"\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("div",{staticClass:"font-weight-bold"},[s("span",{staticClass:"text-muted"},[t._v(t._s(t.calculatePercentage(e))+"%")]),t._v(" "),s("span",{staticClass:"small text-lighter"},[t._v("("+t._s(e.votes_count)+" "+t._s(1==e.votes_count?"vote":"votes")+")")])])])})),0):"results"===t.tab?s("div",t._l(t.status.poll.options,(function(e,o){return s("div",{staticClass:"mb-3"},[s("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(e.title)+"\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("div",{staticClass:"font-weight-bold"},[s("span",{staticClass:"text-muted"},[t._v(t._s(t.calculatePercentage(e))+"%")]),t._v(" "),s("span",{staticClass:"small text-lighter"},[t._v("("+t._s(e.votes_count)+" "+t._s(1==e.votes_count?"vote":"votes")+")")])])])})),0):t._e()]),t._v(" "),s("div",[s("p",{staticClass:"mb-0 small text-lighter font-weight-bold d-flex justify-content-between"},[s("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?s("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?s("span",{staticClass:"text-lighter"},[t._m(2)]):t._e()])]),t._v(" "),s("div",[s("span",{staticClass:"d-block d-md-none small text-lighter font-weight-bold"},[t.status.poll.expired?s("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tClosed\n\t\t\t\t\t\t\t\t\t")]):s("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(" "),s("context-menu",{ref:"contextMenu",attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1)},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("span",{staticClass:"d-none d-md-block px-1 text-primary font-weight-bold"},[s("i",{staticClass:"fas fa-poll-h"}),t._v(" Poll "),s("sup",{staticClass:"text-lighter"},[t._v("BETA")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"btn btn-primary px-2 py-1"},[e("i",{staticClass:"fas fa-poll-h fa-lg"})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])}]},91927:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"status-card-component",class:{"status-card-sm":"small"===t.size}},["text"===t.status.pf_type?s("div",{staticClass:"card shadow-none border rounded-0",class:{"border-top-0":!t.hasTopBorder}},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"media"},[s("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(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"pl-2 d-flex align-items-top"},[s("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("\n\t\t\t\t\t\t\tLoading...\n\t\t\t\t\t\t")]),t._v(" "),s("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(" "),s("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(" "),s("span",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[s("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[s("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),s("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]),t._v(" "),s("div",{staticClass:"pl-2"},[t.status.sensitive?s("details",[s("summary",{staticClass:"mb-2 font-weight-bold text-muted"},[t._v("Content Warning")]),t._v(" "),s("p",{staticClass:"pt-2 text-break status-content",domProps:{innerHTML:t._s(t.status.content)}})]):s("p",{staticClass:"pt-2 text-break status-content",domProps:{innerHTML:t._s(t.status.content)}}),t._v(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("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?s("div",[s("poll-card",{attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1):s("div",{staticClass:"card rounded-0 border-top-0 status-card card-md-rounded-0 shadow-none border"},[t.status?s("div",{staticClass:"card-header d-inline-flex align-items-center bg-white"},[s("div",[s("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(" "),s("div",{staticClass:"pl-2"},[s("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("\n\t\t\t\t\tLoading...\n\t\t\t\t")]),t._v(" "),t.status.account.is_admin?s("span",{staticClass:"fa-stack",staticStyle:{height:"1em","line-height":"1em","max-width":"19px"},attrs:{title:"Admin Account","data-toggle":"tooltip"}},[s("i",{staticClass:"fas fa-certificate text-danger fa-stack-1x"}),t._v(" "),s("i",{staticClass:"fas fa-crown text-white fa-sm fa-stack-1x",staticStyle:{"font-size":"7px"}})]):t._e(),t._v(" "),s("div",{staticClass:"d-flex align-items-center"},[t.status.place?s("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"}},[s("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(" "),t.canFollow(t.status)?s("div",[s("span",{staticClass:"px-2"}),t._v(" "),s("button",{staticClass:"btn btn-primary btn-sm font-weight-bold py-1 px-3 rounded-lg",on:{click:function(e){return t.follow(t.status.account.id)}}},[s("i",{staticClass:"far fa-user-plus mr-1"}),t._v(" Follow")])]):t._e(),t._v(" "),t.status.hasOwnProperty("relationship")&&t.status.relationship.hasOwnProperty("following")&&t.status.relationship.following?s("div",[s("span",{staticClass:"px-2"}),t._v(" "),s("button",{staticClass:"btn btn-outline-primary btn-sm font-weight-bold py-1 px-3 rounded-lg",on:{click:function(e){return t.unfollow(t.status.account.id)}}},[s("i",{staticClass:"far fa-user-check mr-1"}),t._v(" Following")])]):t._e(),t._v(" "),s("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[s("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[s("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),s("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]):t._e(),t._v(" "),s("div",{staticClass:"postPresenterContainer",staticStyle:{background:"#000"}},["photo"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):"video"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("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?s("div",{staticClass:"w-100"},[s("video-album-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("mixed-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):s("div",{staticClass:"w-100"},[s("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?s("div",{staticClass:"card-body border-top border-bottom py-2 cursor-pointer pr-2",on:{click:function(e){return t.labelRedirect()}}},[s("p",{staticClass:"font-weight-bold d-flex justify-content-between align-items-center mb-0"},[s("span",[s("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(" "),s("div",{staticClass:"card-body"},[t.reactionBar?s("div",{staticClass:"reactions my-1 pb-2"},[t.status.favourited?s("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)}}}):s("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():s("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?s("span",{staticClass:"float-right"},[s("span",{staticClass:"font-weight-light small",staticStyle:{color:"#718096"}},[s("i",{staticClass:"far fa-user",attrs:{"data-toggle":"tooltip",title:"Tagged People"}}),t._v(" "),t._l(t.status.taggedPeople,(function(t,e){return s("span",{staticClass:"mr-n2"},[s("a",{attrs:{href:"/"+t.username}},[s("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?s("div",{staticClass:"likes mb-1"},[s("span",{staticClass:"like-count"},[t._v("Liked by\n\t\t\t\t\t"),s("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?s("span",[t._v("\n\t\t\t\t\t\tand "),t.status.liked_by.total_count_pretty?s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.status.liked_by.total_count_pretty))]):t._e(),t._v(" "),s("span",{staticClass:"font-weight-bold"},[t._v("others")])]):t._e()])]):t._e(),t._v(" "),"text"!=t.status.pf_type?s("div",{staticClass:"caption"},[t.status.sensitive?t._e():s("p",{staticClass:"mb-2 read-more",staticStyle:{overflow:"hidden"}},[s("span",{staticClass:"username font-weight-bold"},[s("bdi",[s("a",{staticClass:"text-dark",attrs:{href:t.profileUrl(t.status)}},[t._v(t._s(t.status.account.username))])])]),t._v(" "),s("span",{staticClass:"status-content",domProps:{innerHTML:t._s(t.content)}})])]):t._e(),t._v(" "),s("div",{staticClass:"timestamp mt-2"},[s("p",{staticClass:"small mb-0"},["archived"!=t.status.visibility?s("a",{staticClass:"text-muted text-uppercase",attrs:{href:t.statusUrl(t.status)}},[s("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):s("span",{staticClass:"text-muted text-uppercase"},[t._v("\n\t\t\t\t\t\tPosted "),s("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?s("span",[s("span",{staticClass:"px-1"},[t._v("·")]),t._v(" "),s("span",{staticClass:"text-muted"},[t._v("Based on popular and trending content")])]):t._e()])])])]),t._v(" "),s("context-menu",{ref:"contextMenu",attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1)},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("span",[e("i",{staticClass:"fas fa-chevron-right text-lighter"})])}]},2999:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",[s("details",{staticClass:"details-animated"},[s("summary",[s("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(" "),s("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),s("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(e,o){return s("b-carousel-slide",{key:e.id+"-media"},["video"==e.type?s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:e.description,width:"100%",height:"100%",poster:e.preview_url},slot:"img"},[s("source",{attrs:{src:e.url,type:e.mime}})]):"image"==e.type?s("div",{attrs:{slot:"img",title:e.description},slot:"img"},[s("img",{class:e.filter_class+" d-block img-fluid w-100",attrs:{src:e.url,alt:e.description,loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})]):s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])})),1)],1)]):s("div",{staticClass:"w-100 h-100 p-0"},[s("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(e,o){return s("slide",{key:"px-carousel-"+e.id+"-"+o,staticClass:"w-100 h-100 d-block mx-auto text-center",staticStyle:{background:"#000",display:"flex","align-items":"center"}},["video"==e.type?s("video",{staticClass:"embed-responsive-item",attrs:{preload:"none",controls:"",loop:"",title:e.description,width:"100%",height:"100%",poster:e.preview_url}},[s("source",{attrs:{src:e.url,type:e.mime}})]):"image"==e.type?s("div",{attrs:{title:e.description}},[s("img",{class:e.filter_class+" img-fluid w-100",attrs:{src:e.url,alt:e.description,loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})]):s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])})),1)],1)},i=[]},21761:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",{staticClass:"content-label-wrapper"},[s("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),s("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),s("p",{staticClass:"text-center py-2"},[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(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):s("div",{staticClass:"w-100 h-100 p-0"},[s("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(e,o){return s("slide",{key:"px-carousel-"+e.id+"-"+o,staticStyle:{background:"#000",display:"flex","align-items":"center"},attrs:{title:e.description}},[s("img",{class:e.filter_class+" img-fluid w-100 p-0",attrs:{src:e.url,alt:t.altText(e),loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}}),t._v(" "),!t.status.sensitive&&t.sensitive?s("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}}},[s("i",{staticClass:"fas fa-eye-slash fa-lg"})]):t._e(),t._v(" "),t.status.media_attachments[0].license?s("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))"}},[s("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.url}},[t._v("Photo")]),t._v(" by "),s("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 "),s("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)],1)},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])}]},65654:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",{staticClass:"content-label-wrapper"},[s("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),s("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),s("p",{staticClass:"text-center py-2"},[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(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):s("div",[s("div",{staticStyle:{position:"relative"},attrs:{title:t.status.media_attachments[0].description}},[s("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?s("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}}},[s("i",{staticClass:"fas fa-eye-slash fa-lg"})]):t._e(),t._v(" "),t.status.media_attachments[0].license?s("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))"}},[s("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.url}},[t._v("Photo")]),t._v(" by "),s("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 "),s("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()])])},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])}]},7592:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",[s("details",{staticClass:"details-animated"},[s("summary",[s("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(" "),s("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),s("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,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:t.description,width:"100%",height:"100%",poster:t.preview_url},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)]):s("div",[s("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,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:t.description,width:"100%",height:"100%",poster:t.preview_url},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)},i=[]},53678:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",{staticClass:"content-label-wrapper"},[s("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),s("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),s("p",{staticClass:"text-center py-2"},[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(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):s("div",{staticClass:"embed-responsive embed-responsive-16by9"},[s("video",{staticClass:"video",attrs:{controls:"",playsinline:"",preload:"metadata",loop:"",poster:t.status.media_attachments[0].preview_url,"data-id":t.status.id}},[s("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])}]}},t=>{t.O(0,[898],(()=>{return e=48473,t(t.s=e);var e}));t.O()}]); \ No newline at end of file +(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[665],{65625:(t,e,s)=>{"use strict";function o(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 s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))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 s=0,o=new Array(e);sa});const a={props:["profile-id"],components:{StatusCard:s(19210).default},data:function(){return{id:[],ids:[],user:!1,profile:{},feed:[],min_id:null,max_id:null,loading:!0,owner:!1,layoutType:!0,relationship:null,warning:!1,ctxMenuStatus:!1,ctxMenuRelationship:!1,fetchingRemotePosts:!1,showMutualFollowers:!1,loadingMore:!1,showLoadMore:!0,followers:[],followerCursor:1,followerMore:!0,followerLoading:!0,following:[],followingCursor:1,followingMore:!0,followingLoading:!0,followingModalSearch:null,followingModalSearchCache:null,followingModalTab:"following"}},beforeMount:function(){this.fetchRelationships(),this.fetchProfile()},updated:function(){document.querySelectorAll(".hashtag").forEach((function(t,e){t.href=App.util.format.rewriteLinks(t)}))},methods:{fetchProfile:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then((function(e){t.user=e.data,window._sharedData.curUser=e.data,window.App.util.navatar()})),axios.get("/api/pixelfed/v1/accounts/"+this.profileId).then((function(e){t.profile=e.data,t.fetchPosts()}))},fetchPosts:function(){var t=this,e="/api/pixelfed/v1/accounts/"+this.profileId+"/statuses";axios.get(e,{params:{only_media:!0,min_id:1}}).then((function(e){var s=e.data.filter((function(t){return t.media_attachments.length>0})),i=s.map((function(t){return t.id}));t.ids=i,t.min_id=Math.max.apply(Math,o(i)),t.max_id=Math.min.apply(Math,o(i)),t.feed=s,t.loading=!1})).catch((function(t){swal("Oops, something went wrong","Please release the page.","error")}))},loadMorePosts:function(){var t=this;this.loadingMore=!0;var e="/api/pixelfed/v1/accounts/"+this.profileId+"/statuses";axios.get(e,{params:{only_media:!0,max_id:this.max_id}}).then((function(e){var s,i,a=e.data.filter((function(e){return-1===t.ids.indexOf(e.id)})).filter((function(t){return t.media_attachments.length>0})).map((function(t){return{id:t.id,caption:{text:t.content_text,html:t.content},count:{likes:t.favourites_count,shares:t.reblogs_count,comments:t.reply_count},thumb:t.media_attachments[0].url,media:t.media_attachments,timestamp:t.created_at,type:t.pf_type,url:t.url,sensitive:t.sensitive,cw:t.sensitive,spoiler_text:t.spoiler_text}})),n=a.map((function(t){return t.id}));(s=t.ids).push.apply(s,o(n)),t.max_id=Math.min.apply(Math,o(n)),(i=t.feed).push.apply(i,o(a)),t.loadingMore=!1})).catch((function(e){t.loadingMore=!1,t.showLoadMore=!1}))},fetchRelationships:function(){var t=this;0!=document.querySelectorAll("body")[0].classList.contains("loggedIn")&&axios.get("/api/pixelfed/v1/accounts/relationships",{params:{"id[]":this.profileId}}).then((function(e){e.data.length&&(t.relationship=e.data[0],1==e.data[0].blocking&&(t.loading=!1,t.warning=!0))}))},postPreviewUrl:function(t){return'background: url("'+t.thumb+'");background-size:cover'},timestampFormat:function(t){var e=new Date(t);return e.toDateString()+" "+e.toLocaleTimeString()},remoteProfileUrl:function(t){return"/i/web/profile/_/"+t.id},remotePostUrl:function(t){return"/i/web/post/_/"+this.profile.id+"/"+t.id},followProfile:function(){var t=this;axios.post("/i/follow",{item:this.profileId}).then((function(e){swal("Followed","You are now following "+t.profile.username+"!","success"),t.relationship.following=!0})).catch((function(t){swal("Oops!","Something went wrong, please try again later.","error")}))},unfollowProfile:function(){var t=this;axios.post("/i/follow",{item:this.profileId}).then((function(e){swal("Unfollowed","You are no longer following "+t.profile.username+".","warning"),t.relationship.following=!1})).catch((function(t){swal("Oops!","Something went wrong, please try again later.","error")}))},showCtxMenu:function(){this.$refs.visitorContextMenu.show()},copyProfileLink:function(){navigator.clipboard.writeText(window.location.href),this.$refs.visitorContextMenu.hide()},muteProfile:function(){var t=this,e=this.profileId;axios.post("/i/mute",{type:"user",item:e}).then((function(e){t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully muted "+t.profile.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")})),this.$refs.visitorContextMenu.hide()},unmuteProfile:function(){var t=this,e=this.profileId;axios.post("/i/unmute",{type:"user",item:e}).then((function(e){t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully unmuted "+t.profile.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")})),this.$refs.visitorContextMenu.hide()},blockProfile:function(){var t=this,e=this.profileId;axios.post("/i/block",{type:"user",item:e}).then((function(e){t.warning=!0,t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully blocked "+t.profile.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")})),this.$refs.visitorContextMenu.hide()},unblockProfile:function(){var t=this,e=this.profileId;axios.post("/i/unblock",{type:"user",item:e}).then((function(e){t.warning=!1,t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully unblocked "+t.profile.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")})),this.$refs.visitorContextMenu.hide()},reportProfile:function(){window.location.href="/l/i/report?type=profile&id="+this.profileId,this.$refs.visitorContextMenu.hide()},ctxMenu:function(t){this.ctxMenuStatus=t;var e=this;axios.get("/api/pixelfed/v1/accounts/relationships",{params:{"id[]":e.profileId}}).then((function(t){e.ctxMenuRelationship=t.data[0],e.$refs.ctxModal.show()}))},closeCtxMenu:function(){this.ctxMenuStatus=!1,this.ctxMenuRelationship=!1,this.$refs.ctxModal.hide()},ctxMenuCopyLink:function(){var t=this.ctxMenuStatus;navigator.clipboard.writeText(t.url),this.closeCtxMenu()},ctxMenuGoToPost:function(){var t=this.ctxMenuStatus;window.location.href=this.statusUrl(t),this.closeCtxMenu()},statusUrl:function(t){return"/i/web/post/_/"+this.profile.id+"/"+t.id},deletePost:function(t){var e=this;0!=this.user.is_admin&&0!=window.confirm("Are you sure you want to delete this post?")&&axios.post("/i/delete",{type:"status",item:t.id}).then((function(s){e.feed=e.feed.filter((function(e){return e.id!=t.id})),e.$refs.ctxModal.hide()})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))},manuallyFetchRemotePosts:function(t){this.fetchingRemotePosts=!0,event.target.blur(),swal("Fetching Remote Posts","Check back in a few minutes!","info")},timeAgo:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null==t?"never":(e=e?" "+e:"",App.util.format.timeAgo(t)+e)},urlRedirectHandler:function(t){var e="";new URL(t).hostname==window.location.hostname?e=t:(e="/i/redirect?url=",e+=encodeURI(t)),window.location.href=e},followingModal:function(){var t=this;return this.followingCursor>1||axios.get("/api/pixelfed/v1/accounts/"+this.profileId+"/following",{params:{page:this.followingCursor}}).then((function(e){t.following=e.data,t.followingModalSearchCache=e.data,t.followingCursor++,e.data.length<10&&(t.followingMore=!1),t.followingLoading=!1})),void this.$refs.followingModal.show()},followersModal:function(){var t=this;return this.followerCursor>1||axios.get("/api/pixelfed/v1/accounts/"+this.profileId+"/followers",{params:{page:this.followerCursor}}).then((function(e){var s;(s=t.followers).push.apply(s,o(e.data)),t.followerCursor++,e.data.length<10&&(t.followerMore=!1),t.followerLoading=!1})),void this.$refs.followerModal.show()},followingLoadMore:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/"+this.profile.id+"/following",{params:{page:this.followingCursor,fbu:this.followingModalSearch}}).then((function(e){var s;e.data.length>0&&((s=t.following).push.apply(s,o(e.data)),t.followingCursor++,t.followingModalSearchCache=t.following);e.data.length<10&&(t.followingModalSearchCache=t.following,t.followingMore=!1)}))},followersLoadMore:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/"+this.profile.id+"/followers",{params:{page:this.followerCursor}}).then((function(e){var s;e.data.length>0&&((s=t.followers).push.apply(s,o(e.data)),t.followerCursor++);e.data.length<10&&(t.followerMore=!1)}))},profileUrlRedirect:function(t){return 1==t.local?t.url:"/i/web/profile/_/"+t.id},followingModalSearchHandler:function(){var t=this,e=this,s=this.followingModalSearch;if(0==s.length&&(this.following=this.followingModalSearchCache,this.followingModalSearch=null),s.length>0){var o="/api/pixelfed/v1/accounts/"+e.profileId+"/following?page=1&fbu="+s;axios.get(o).then((function(e){t.following=e.data})).catch((function(t){e.following=e.followingModalSearchCache,e.followingModalSearch=null}))}}}}},53999:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});var o=s(19755);const i={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 s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)},ctxEmbedShowLikes:function(t,e){1==t&&(this.ctxEmbedCompactMode=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)},ctxEmbedCompactMode:function(t,e){1==t&&(this.ctxEmbedShowCaption=!1,this.ctxEmbedShowLikes=!1);var s=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,s)}},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 s=t.ctxMenuStatus.account.acct;t.closeCtxMenu(),setTimeout((function(){swal("Follow successful!","You are now following "+s,"success")}),500)}))},ctxMenuUnfollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then((function(e){var s=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 "+s,"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,s=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(o){o?axios.post("/i/report/",{report:t,type:"post",id:s}).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,s){var o=this,i=(t.account.username,t.id,""),a=this;switch(e){case"addcw":i="Are you sure you want to add a content warning to this post?",swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&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,a.closeModals(),a.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),a.closeModals(),a.ctxModMenuClose()}))}));break;case"remcw":i="Are you sure you want to remove the content warning on this post?",swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&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,a.closeModals(),a.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),a.closeModals(),a.ctxModMenuClose()}))}));break;case"unlist":i="Are you sure you want to unlist this post?",swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(e){o.feed=o.feed.filter((function(e){return e.id!=t.id})),swal("Success","Successfully unlisted post","success"),a.closeModals(),a.ctxModMenuClose()})).catch((function(t){a.closeModals(),a.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")}))}));break;case"spammer":i="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:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(s){s&&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"),a.closeModals(),a.ctxModMenuClose()})).catch((function(t){a.closeModals(),a.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")}))}))}},shareStatus:function(t,e){0!=o("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!=o("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(s){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(s){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()}))}}}},55192:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(20415),i=s(19755);const a={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":o.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";s.r(e),s.d(e,{default:()=>n});var o=s(20415),i=s(97622),a=s(19755);const n={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":o.default,"poll-card":i.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 s=''.concat(e.shortcode,'');t.content=t.content.replace(":".concat(e.shortcode,":"),s)}))},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,s=window.App.config.username.remote.custom,o=t.account.username,i=document.createElement("a");switch(i.href=t.account.url,i=i.hostname,e){case"@":default:return o+'@'+i+"";case"from":return o+' from '+i+"";case"custom":return o+' '+s+" "+i+""}},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!=a("body").hasClass("loggedIn")){var s=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=s,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 s=this;this.replySending=!0;var o=t.id,i=this.replyText,a=this.config.uploader.max_caption_length;if(i.length>a)return this.replySending=!1,void swal("Comment Too Long","Please make sure your comment is "+a+" characters or less.","error");axios.post("/i/comment",{item:o,comment:i,sensitive:this.replyNsfw}).then((function(t){s.replyText="",s.replies.push(t.data.entity),s.$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)},canFollow:function(t){return!!t.hasOwnProperty("relationship")&&(!(!t.hasOwnProperty("account")||!t.account.hasOwnProperty("id"))&&(t.account.id!=this.profile.id&&!t.relationship.following))},follow:function(t){var e=this;event.currentTarget.blur(),axios.post("/i/follow",{item:t}).then((function(s){e.status.relationship.following=!0,e.$emit("followed",t)})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))},unfollow:function(t){var e=this;event.currentTarget.blur(),axios.post("/i/follow",{item:t}).then((function(s){e.status.relationship.following=!1,e.$emit("unfollowed",t)})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))}}}},7768:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});const o={props:["status"]}},10578:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(30765),i=s.n(o);const a={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){i()({el:t.target})},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 s="backward";e.advancePage(s),e.$emit("navigation-click",s)}if("39"==t.keyCode){t.preventDefault();var o="forward";e.advancePage(o),e.$emit("navigation-click",o)}}}}},15464:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(30765),i=s.n(o);const a={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){i()({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}}}},63049:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});const o={props:["status"]}},67223:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});const o={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")}}}},48473:(t,e,s)=>{Vue.component("photo-presenter",s(23251).default),Vue.component("video-presenter",s(53973).default),Vue.component("photo-album-presenter",s(33872).default),Vue.component("video-album-presenter",s(76644).default),Vue.component("mixed-album-presenter",s(57374).default),Vue.component("remote-profile",s(14083).default)},53213:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(23645),i=s.n(o)()((function(t){return t[1]}));i.push([t.id,"@media (min-width:1200px){.container[data-v-36d6de0c]{max-width:1050px}}",""]);const a=i},28597:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(23645),i=s.n(o)()((function(t){return t[1]}));i.push([t.id,".card-img-top[data-v-1b12221c]{border-top-left-radius:0!important;border-top-right-radius:0!important}.content-label-wrapper[data-v-1b12221c]{position:relative}.content-label[data-v-1b12221c]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}",""]);const a=i},43125:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(23645),i=s.n(o)()((function(t){return t[1]}));i.push([t.id,".card-img-top[data-v-77d48172]{border-top-left-radius:0!important;border-top-right-radius:0!important}.content-label-wrapper[data-v-77d48172]{position:relative}.content-label[data-v-77d48172]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}",""]);const a=i},7077:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(23645),i=s.n(o)()((function(t){return t[1]}));i.push([t.id,".content-label-wrapper[data-v-6e29e1c6]{position:relative}.content-label[data-v-6e29e1c6]{align-items:center;background:rgba(0,0,0,.2);display:flex;flex-direction:column;height:100%;justify-content:center;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%;z-index:2}",""]);const a=i},59179:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(23645),i=s.n(o)()((function(t){return t[1]}));i.push([t.id,".status-card-component .status-content{font-size:17px}.status-card-component.status-card-sm .status-content{font-size:14px}.status-card-component.status-card-sm .fa-lg{font-size:unset;line-height:unset;vertical-align:unset}",""]);const a=i},73087:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var o=s(93379),i=s.n(o),a=s(53213),n={insert:"head",singleton:!1};i()(a.default,n);const r=a.default.locals||{}},27265:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var o=s(93379),i=s.n(o),a=s(28597),n={insert:"head",singleton:!1};i()(a.default,n);const r=a.default.locals||{}},2511:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var o=s(93379),i=s.n(o),a=s(43125),n={insert:"head",singleton:!1};i()(a.default,n);const r=a.default.locals||{}},31199:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var o=s(93379),i=s.n(o),a=s(7077),n={insert:"head",singleton:!1};i()(a.default,n);const r=a.default.locals||{}},43855:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var o=s(93379),i=s.n(o),a=s(59179),n={insert:"head",singleton:!1};i()(a.default,n);const r=a.default.locals||{}},14083:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(58113),i=s(47926),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);s(25392);const n=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,"36d6de0c",null).exports},20415:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(53242),i=s(25266),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);const n=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},97622:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(74454),i=s(97381),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);const n=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},19210:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(48661),i=s(71334),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);s(45101);const n=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},57374:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(10650),i=s(4220),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);const n=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},33872:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(74762),i=s(10878),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);s(75152);const n=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,"1b12221c",null).exports},23251:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(42415),i=s(29911),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);s(12796);const n=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,"77d48172",null).exports},76644:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(63027),i=s(18411),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);const n=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,null,null).exports},53973:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var o=s(59132),i=s(44976),a={};for(const t in i)"default"!==t&&(a[t]=()=>i[t]);s.d(e,a);s(81709);const n=(0,s(51900).default)(i.default,o.render,o.staticRenderFns,!1,null,"6e29e1c6",null).exports},47926:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(65625),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const a=o.default},25266:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(53999),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const a=o.default},97381:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(55192),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const a=o.default},71334:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(86637),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const a=o.default},4220:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(7768),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const a=o.default},10878:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(10578),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const a=o.default},29911:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(15464),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const a=o.default},18411:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(63049),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const a=o.default},44976:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});var o=s(67223),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i);const a=o.default},25392:(t,e,s)=>{"use strict";s.r(e);var o=s(73087),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},75152:(t,e,s)=>{"use strict";s.r(e);var o=s(27265),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},12796:(t,e,s)=>{"use strict";s.r(e);var o=s(2511),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},81709:(t,e,s)=>{"use strict";s.r(e);var o=s(31199),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},45101:(t,e,s)=>{"use strict";s.r(e);var o=s(43855),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},58113:(t,e,s)=>{"use strict";s.r(e);var o=s(91029),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},53242:(t,e,s)=>{"use strict";s.r(e);var o=s(22372),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},74454:(t,e,s)=>{"use strict";s.r(e);var o=s(37860),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},48661:(t,e,s)=>{"use strict";s.r(e);var o=s(91927),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},10650:(t,e,s)=>{"use strict";s.r(e);var o=s(34812),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},74762:(t,e,s)=>{"use strict";s.r(e);var o=s(21761),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},42415:(t,e,s)=>{"use strict";s.r(e);var o=s(65654),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},63027:(t,e,s)=>{"use strict";s.r(e);var o=s(36310),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},59132:(t,e,s)=>{"use strict";s.r(e);var o=s(38508),i={};for(const t in o)"default"!==t&&(i[t]=()=>o[t]);s.d(e,i)},91029:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.relationship&&t.relationship.blocking&&t.warning?s("div",{staticClass:"bg-white pt-3 border-bottom"},[s("div",{staticClass:"container"},[s("p",{staticClass:"text-center font-weight-bold"},[t._v("You are blocking this account")]),t._v(" "),s("p",{staticClass:"text-center font-weight-bold"},[t._v("Click "),s("a",{staticClass:"cursor-pointer",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.warning=!1}}},[t._v("here")]),t._v(" to view profile")])])]):t._e(),t._v(" "),t.loading?s("div",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{height:"80vh"}},[s("img",{attrs:{src:"/img/pixelfed-icon-grey.svg"}})]):t._e(),t._v(" "),t.loading||t.warning?t._e():s("div",{staticClass:"container"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 col-md-4 pt-5"},[s("div",{staticClass:"card shadow-none border"},[s("div",{staticClass:"card-header p-0 m-0"},[t.profile.header_bg?s("img",{staticStyle:{width:"100%",height:"140px","object-fit":"cover"},attrs:{src:t.profile.header_bg}}):s("div",{staticClass:"bg-primary",staticStyle:{width:"100%",height:"140px"}})]),t._v(" "),s("div",{staticClass:"card-body pb-0"},[s("div",{staticClass:"mt-n5 mb-3"},[s("img",{staticClass:"rounded-circle p-1 border mt-n4 bg-white shadow",attrs:{src:t.profile.avatar,width:"90px",height:"90px;",onerror:"this.onerror=null;this.src='/storage/avatars/default.jpg?v=0';"}}),t._v(" "),s("span",{staticClass:"float-right mt-n1"},[s("span",[t.relationship&&0==t.relationship.following?s("button",{staticClass:"btn btn-outline-light py-0 px-3 mt-n1",staticStyle:{"font-size":"13px","font-weight":"500"},on:{click:function(e){return t.followProfile()}}},[t._v("Follow")]):t._e(),t._v(" "),t.relationship&&1==t.relationship.following?s("button",{staticClass:"btn btn-outline-light py-0 px-3 mt-n1",staticStyle:{"font-size":"13px","font-weight":"500"},on:{click:function(e){return t.unfollowProfile()}}},[t._v("Unfollow")]):t._e()]),t._v(" "),s("span",{staticClass:"mx-2"},[s("a",{staticClass:"btn btn-outline-light btn-sm mt-n1",staticStyle:{"padding-top":"2px","padding-bottom":"1px"},attrs:{href:"/account/direct/t/"+t.profile.id}},[s("i",{staticClass:"far fa-comment-dots cursor-pointer",staticStyle:{"font-size":"13px"}})])]),t._v(" "),s("span",[s("button",{staticClass:"btn btn-outline-light btn-sm mt-n1",staticStyle:{"padding-top":"2px","padding-bottom":"1px"},on:{click:function(e){return t.showCtxMenu()}}},[s("i",{staticClass:"fas fa-cog cursor-pointer",staticStyle:{"font-size":"13px"}})])])])]),t._v(" "),s("p",{staticClass:"pl-2 h4 font-weight-bold mb-1"},[t._v(t._s(t.profile.display_name))]),t._v(" "),s("p",{staticClass:"pl-2 font-weight-bold mb-2"},[s("a",{staticClass:"text-muted",attrs:{href:t.profile.url},on:{click:function(e){return e.preventDefault(),t.urlRedirectHandler(t.profile.url)}}},[t._v(t._s(t.profile.acct))])]),t._v(" "),s("p",{staticClass:"pl-2 text-muted small d-flex justify-content-between"},[s("span",[s("span",{staticClass:"font-weight-bold text-dark"},[t._v(t._s(t.profile.statuses_count))]),t._v(" "),s("span",[t._v("Posts")])]),t._v(" "),s("span",{staticClass:"cursor-pointer",on:{click:function(e){return t.followingModal()}}},[s("span",{staticClass:"font-weight-bold text-dark"},[t._v(t._s(t.profile.following_count))]),t._v(" "),s("span",[t._v("Following")])]),t._v(" "),s("span",{staticClass:"cursor-pointer",on:{click:function(e){return t.followersModal()}}},[s("span",{staticClass:"font-weight-bold text-dark"},[t._v(t._s(t.profile.followers_count))]),t._v(" "),s("span",[t._v("Followers")])])]),t._v(" "),s("p",{staticClass:"pl-2 text-muted small pt-2",domProps:{innerHTML:t._s(t.profile.note)}})])]),t._v(" "),s("p",{staticClass:"small text-lighter p-2"},[t._v("Last updated: "),s("time",{attrs:{datetime:t.profile.last_fetched_at}},[t._v(t._s(t.timeAgo(t.profile.last_fetched_at,"ago")))])]),t._v(" "),s("p",{staticClass:"card border-left-primary card-body small py-2 text-muted font-weight-bold shadow-none border-top border-bottom border-right"},[t._v("You are viewing a profile from a remote server, it may not contain up-to-date information.")])]),t._v(" "),s("div",{staticClass:"col-12 col-md-8 pt-5"},[s("div",{staticClass:"row"},[t._l(t.feed,(function(t,e){return s("div",{key:"remprop"+e,staticClass:"col-12"},[s("status-card",{class:{"border-top":0===e},attrs:{status:t}})],1)})),t._v(" "),0==t.feed.length?s("div",{staticClass:"col-12 mb-2"},[t._m(0)]):s("div",{staticClass:"col-12 mt-4"},[t.showLoadMore?s("p",{staticClass:"text-center mb-0 px-0"},[s("button",{staticClass:"btn btn-outline-primary btn-block font-weight-bold",on:{click:function(e){return t.loadMorePosts()}}},[t.loadingMore?s("span",[t._m(1)]):s("span",[t._v("Load More")])])]):t._e()])],2)])]),t._v(" "),t.profile&&t.following?s("b-modal",{ref:"followingModal",attrs:{id:"following-modal","hide-footer":"",centered:"",scrollable:"",title:"Following","body-class":"list-group-flush py-3 px-0","dialog-class":"follow-modal"}},[t.followingLoading?s("div",{staticClass:"text-center py-5"},[s("div",{staticClass:"spinner-border",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])]):s("div",{staticClass:"list-group",staticStyle:{"max-height":"60vh"}},[t.following.length?s("div",[1==t.owner?s("div",{staticClass:"list-group-item border-0 pt-0 px-0 mt-n2 mb-3"},[s("span",{staticClass:"d-flex px-4 pb-0 align-items-center"},[s("i",{staticClass:"fas fa-search text-lighter"}),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.followingModalSearch,expression:"followingModalSearch"}],staticClass:"form-control border-0 shadow-0 no-focus",attrs:{type:"text",placeholder:"Search Following..."},domProps:{value:t.followingModalSearch},on:{keyup:t.followingModalSearchHandler,input:function(e){e.target.composing||(t.followingModalSearch=e.target.value)}}})])]):t._e(),t._v(" "),t._l(t.following,(function(e,o){return s("div",{key:"following_"+o,staticClass:"list-group-item border-0 py-1 mb-1"},[s("div",{staticClass:"media"},[s("a",{attrs:{href:t.profileUrlRedirect(e)}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px",loading:"lazy",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0'"}})]),t._v(" "),s("div",{staticClass:"media-body text-truncate"},[s("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:t.profileUrlRedirect(e)}},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e.local?s("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._s(e.display_name?e.display_name:e.username)+"\n\t\t\t\t\t\t\t\t")]):s("p",{staticClass:"text-muted mb-0 text-break mr-3",staticStyle:{"font-size":"14px"},attrs:{title:e.acct,"data-toggle":"dropdown","data-placement":"bottom"}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(e.acct.split("@")[0]))]),s("span",{staticClass:"text-lighter"},[t._v("@"+t._s(e.acct.split("@")[1]))])])]),t._v(" "),t.owner?s("div",[s("a",{staticClass:"btn btn-outline-dark btn-sm font-weight-bold",attrs:{href:"#"},on:{click:function(s){return s.preventDefault(),t.followModalAction(e.id,o,"following")}}},[t._v("Following")])]):t._e()])])})),t._v(" "),t.followingModalSearch&&0==t.following.length?s("div",{staticClass:"list-group-item border-0"},[s("div",{staticClass:"list-group-item border-0 pt-5"},[s("p",{staticClass:"p-3 text-center mb-0 lead"},[t._v("No Results Found")])])]):t._e(),t._v(" "),t.following.length>0&&t.followingMore?s("div",{staticClass:"list-group-item text-center",on:{click:function(e){return t.followingLoadMore()}}},[s("p",{staticClass:"mb-0 small text-muted font-weight-light cursor-pointer"},[t._v("Load more")])]):t._e()],2):s("div",{staticClass:"list-group-item border-0"},[s("p",{staticClass:"text-center mb-0 font-weight-bold text-muted py-5"},[s("span",{staticClass:"text-dark"},[t._v(t._s(t.profileUsername))]),t._v(" is not following yet")])])])]):t._e(),t._v(" "),s("b-modal",{ref:"followerModal",attrs:{id:"follower-modal","hide-footer":"",centered:"",scrollable:"",title:"Followers","body-class":"list-group-flush py-3 px-0","dialog-class":"follow-modal"}},[t.followerLoading?s("div",{staticClass:"text-center py-5"},[s("div",{staticClass:"spinner-border",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])]):s("div",{staticClass:"list-group",staticStyle:{"max-height":"60vh"}},[t.followers.length?s("div",[t._l(t.followers,(function(e,o){return s("div",{key:"follower_"+o,staticClass:"list-group-item border-0 py-1 mb-1"},[s("div",{staticClass:"media mb-0"},[s("a",{attrs:{href:t.profileUrlRedirect(e)}},[s("img",{staticClass:"mr-3 rounded-circle box-shadow",attrs:{src:e.avatar,alt:e.username+"’s avatar",width:"30px",height:"30px",loading:"lazy",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=0'"}})]),t._v(" "),s("div",{staticClass:"media-body mb-0"},[s("p",{staticClass:"mb-0",staticStyle:{"font-size":"14px"}},[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:t.profileUrlRedirect(e)}},[t._v("\n\t\t\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e.local?s("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._s(e.display_name?e.display_name:e.username)+"\n\t\t\t\t\t\t\t\t")]):s("p",{staticClass:"text-muted mb-0 text-break mr-3",staticStyle:{"font-size":"14px"},attrs:{title:e.acct,"data-toggle":"dropdown","data-placement":"bottom"}},[s("span",{staticClass:"font-weight-bold"},[t._v(t._s(e.acct.split("@")[0]))]),s("span",{staticClass:"text-lighter"},[t._v("@"+t._s(e.acct.split("@")[1]))])])])])])})),t._v(" "),t.followers.length&&t.followerMore?s("div",{staticClass:"list-group-item text-center",on:{click:function(e){return t.followersLoadMore()}}},[s("p",{staticClass:"mb-0 small text-muted font-weight-light cursor-pointer"},[t._v("Load more")])]):t._e()],2):s("div",{staticClass:"list-group-item border-0"},[s("p",{staticClass:"text-center mb-0 font-weight-bold text-muted py-5"},[s("span",{staticClass:"text-dark"},[t._v(t._s(t.profileUsername))]),t._v(" has no followers yet")])])])]),t._v(" "),s("b-modal",{ref:"visitorContextMenu",attrs:{id:"visitor-context-menu","hide-footer":"","hide-header":"",centered:"",size:"sm","body-class":"list-group-flush p-0"}},[t.relationship?s("div",{staticClass:"list-group"},[s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.copyProfileLink}},[t._v("\n\t\t\t\t\tCopy Link\n\t\t\t\t")]),t._v(" "),!t.user||t.owner||t.relationship.muting?t._e():s("div",{staticClass:"list-group-item cursor-pointer text-center rounded",on:{click:t.muteProfile}},[t._v("\n\t\t\t\t\tMute\n\t\t\t\t")]),t._v(" "),t.user&&!t.owner&&t.relationship.muting?s("div",{staticClass:"list-group-item cursor-pointer text-center rounded",on:{click:t.unmuteProfile}},[t._v("\n\t\t\t\t\tUnmute\n\t\t\t\t")]):t._e(),t._v(" "),t.user&&!t.owner?s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.reportProfile}},[t._v("\n\t\t\t\t\tReport User\n\t\t\t\t")]):t._e(),t._v(" "),!t.user||t.owner||t.relationship.blocking?t._e():s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.blockProfile}},[t._v("\n\t\t\t\t\tBlock\n\t\t\t\t")]),t._v(" "),t.user&&!t.owner&&t.relationship.blocking?s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-dark",on:{click:t.unblockProfile}},[t._v("\n\t\t\t\t\tUnblock\n\t\t\t\t")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item cursor-pointer text-center rounded text-muted",on:{click:function(e){return t.$refs.visitorContextMenu.hide()}}},[t._v("\n\t\t\t\t\tClose\n\t\t\t\t")])]):t._e()]),t._v(" "),s("b-modal",{ref:"ctxModal",attrs:{id:"ctx-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"list-group text-center"},[t.ctxMenuStatus&&t.profile.id!=t.profile.id?s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-danger",on:{click:function(e){return t.ctxMenuReportPost()}}},[t._v("Report inappropriate")]):t._e(),t._v(" "),t.ctxMenuStatus&&t.profile.id!=t.profile.id&&t.ctxMenuRelationship&&t.ctxMenuRelationship.following?s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-danger",on:{click:function(e){return t.ctxMenuUnfollow()}}},[t._v("Unfollow")]):t._e(),t._v(" "),t.ctxMenuStatus&&t.profile.id!=t.profile.id&&t.ctxMenuRelationship&&!t.ctxMenuRelationship.following?s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold text-primary",on:{click:function(e){return t.ctxMenuFollow()}}},[t._v("Follow")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuGoToPost()}}},[t._v("Go to post")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuCopyLink()}}},[t._v("Copy Link")]),t._v(" "),t.profile&&1==t.profile.is_admin?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxModMenuShow()}}},[t._v("Moderation Tools")]):t._e(),t._v(" "),t.ctxMenuStatus&&(t.profile.is_admin||t.profile.id==t.profile.id)?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.deletePost(t.ctxMenuStatus)}}},[t._v("Delete")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxMenu()}}},[t._v("Cancel")])])])],1)])},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"d-flex justify-content-center align-items-center bg-white border rounded",staticStyle:{height:"60vh"}},[s("div",{staticClass:"text-center"},[s("p",{staticClass:"lead"},[t._v("We haven't seen any posts from this account.")])])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])}]},22372:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modal-stack"},[s("b-modal",{ref:"ctxModal",attrs:{id:"ctx-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"list-group text-center"},["archived"!==t.status.visibility?s("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?s("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?s("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?s("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?s("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?s("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?s("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?s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxMenu()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("div",{staticClass:"list-group text-center"},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("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?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"remcw")}}},[t._v("Remove Content Warning")]):s("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(" "),s("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"),s("br"),t._v(" "),s("span",{staticClass:"small"},[t._v("Unlist + CW existing and future posts")])]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("div",{staticClass:"list-group text-center"},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Unlist Posts")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Moderation Log")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModOtherMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("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(" "),s("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?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuEmbed()}}},[t._v("Embed")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxShareMenu()}}},[t._v("Cancel")])]),t._v(" "),s("b-modal",{ref:"ctxEmbedModal",attrs:{id:"ctx-embed-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"md","body-class":"p-2 rounded"}},[s("div",[s("div",{staticClass:"form-group"},[s("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(" "),s("div",{staticClass:"form-group pl-2 d-flex justify-content-center"},[s("div",{staticClass:"form-check mr-3"},[s("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 s=t.ctxEmbedShowCaption,o=e.target,i=!!o.checked;if(Array.isArray(s)){var a=t._i(s,null);o.checked?a<0&&(t.ctxEmbedShowCaption=s.concat([null])):a>-1&&(t.ctxEmbedShowCaption=s.slice(0,a).concat(s.slice(a+1)))}else t.ctxEmbedShowCaption=i}}}),t._v(" "),s("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(" "),s("div",{staticClass:"form-check mr-3"},[s("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 s=t.ctxEmbedShowLikes,o=e.target,i=!!o.checked;if(Array.isArray(s)){var a=t._i(s,null);o.checked?a<0&&(t.ctxEmbedShowLikes=s.concat([null])):a>-1&&(t.ctxEmbedShowLikes=s.slice(0,a).concat(s.slice(a+1)))}else t.ctxEmbedShowLikes=i}}}),t._v(" "),s("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(" "),s("div",{staticClass:"form-check"},[s("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 s=t.ctxEmbedCompactMode,o=e.target,i=!!o.checked;if(Array.isArray(s)){var a=t._i(s,null);o.checked?a<0&&(t.ctxEmbedCompactMode=s.concat([null])):a>-1&&(t.ctxEmbedCompactMode=s.slice(0,a).concat(s.slice(a+1)))}else t.ctxEmbedCompactMode=i}}}),t._v(" "),s("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(" "),s("hr"),t._v(" "),s("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(" "),s("p",{staticClass:"mb-0 px-2 small text-muted"},[t._v("By using this embed, you agree to our "),s("a",{attrs:{href:"/site/terms"}},[t._v("Terms of Use")])])])]),t._v(" "),s("b-modal",{ref:"ctxReport",attrs:{id:"ctx-report","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group text-center"},[s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("spam")}}},[t._v("Spam")]),t._v(" "),s("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(" "),s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.openCtxReportOtherMenu()}}},[t._v("Other")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),s("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"}},[s("p",{staticClass:"py-2 px-3 mb-0"}),s("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),s("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),s("p"),t._v(" "),s("div",{staticClass:"list-group text-center"},[s("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(" "),s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("impersonation")}}},[t._v("Impersonation")]),t._v(" "),s("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(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportOtherMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),s("b-modal",{ref:"ctxConfirm",attrs:{id:"ctx-confirm","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"d-flex align-items-center justify-content-center py-3"},[s("div",[t._v(t._s(this.confirmModalTitle))])]),t._v(" "),s("div",{staticClass:"d-flex border-top btn-group btn-group-block rounded-0",attrs:{role:"group"}},[s("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(" "),s("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)},i=[]},37860:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"card shadow-none rounded-0",class:{border:t.showBorder,"border-top-0":!t.showBorderTop}},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"media"},[s("img",{staticClass:"rounded-circle box-shadow mr-2",attrs:{src:t.status.account.avatar,width:"32px",height:"32px",alt:"avatar"}}),t._v(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"pl-2 d-flex align-items-top"},[s("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(" "),s("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(" "),s("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(" "),s("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(" "),s("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(" "),s("span",{staticClass:"d-none d-md-block px-1 text-lighter font-weight-bold"},[t.status.poll.expired?s("span",[t._v("\n\t\t\t\t\t\t\t\tClosed\n\t\t\t\t\t\t\t")]):s("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(" "),s("span",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[s("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[s("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),s("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]),t._v(" "),s("div",{staticClass:"pl-2"},[s("div",{staticClass:"poll py-3"},[s("div",{staticClass:"pt-2 text-break d-flex align-items-center mb-3",staticStyle:{"font-size":"17px"}},[t._m(1),t._v(" "),s("span",{staticClass:"font-weight-bold ml-3",domProps:{innerHTML:t._s(t.status.content)}})]),t._v(" "),s("div",{staticClass:"mb-2"},["vote"===t.tab?s("div",[t._l(t.status.poll.options,(function(e,o){return s("p",[s("button",{staticClass:"btn btn-block lead rounded-pill",class:[o==t.selectedIndex?"btn-primary":"btn-outline-primary"],attrs:{disabled:!t.authenticated},on:{click:function(e){return t.selectOption(o)}}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.title)+"\n\t\t\t\t\t\t\t\t\t\t")])])})),t._v(" "),null!=t.selectedIndex?s("p",{staticClass:"text-right"},[s("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?s("div",t._l(t.status.poll.options,(function(e,o){return s("div",{staticClass:"mb-3"},[s("button",{staticClass:"btn btn-block lead rounded-pill",class:[o==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(e.title)+"\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("div",{staticClass:"font-weight-bold"},[s("span",{staticClass:"text-muted"},[t._v(t._s(t.calculatePercentage(e))+"%")]),t._v(" "),s("span",{staticClass:"small text-lighter"},[t._v("("+t._s(e.votes_count)+" "+t._s(1==e.votes_count?"vote":"votes")+")")])])])})),0):"results"===t.tab?s("div",t._l(t.status.poll.options,(function(e,o){return s("div",{staticClass:"mb-3"},[s("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(e.title)+"\n\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),s("div",{staticClass:"font-weight-bold"},[s("span",{staticClass:"text-muted"},[t._v(t._s(t.calculatePercentage(e))+"%")]),t._v(" "),s("span",{staticClass:"small text-lighter"},[t._v("("+t._s(e.votes_count)+" "+t._s(1==e.votes_count?"vote":"votes")+")")])])])})),0):t._e()]),t._v(" "),s("div",[s("p",{staticClass:"mb-0 small text-lighter font-weight-bold d-flex justify-content-between"},[s("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?s("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?s("span",{staticClass:"text-lighter"},[t._m(2)]):t._e()])]),t._v(" "),s("div",[s("span",{staticClass:"d-block d-md-none small text-lighter font-weight-bold"},[t.status.poll.expired?s("span",[t._v("\n\t\t\t\t\t\t\t\t\t\tClosed\n\t\t\t\t\t\t\t\t\t")]):s("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(" "),s("context-menu",{ref:"contextMenu",attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1)},i=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("span",{staticClass:"d-none d-md-block px-1 text-primary font-weight-bold"},[s("i",{staticClass:"fas fa-poll-h"}),t._v(" Poll "),s("sup",{staticClass:"text-lighter"},[t._v("BETA")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"btn btn-primary px-2 py-1"},[e("i",{staticClass:"fas fa-poll-h fa-lg"})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status"}},[s("span",{staticClass:"sr-only"},[t._v("Loading...")])])}]},91927:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"status-card-component",class:{"status-card-sm":"small"===t.size}},["text"===t.status.pf_type?s("div",{staticClass:"card shadow-none border rounded-0",class:{"border-top-0":!t.hasTopBorder}},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"media"},[s("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(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"pl-2 d-flex align-items-top"},[s("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("\n\t\t\t\t\t\t\tLoading...\n\t\t\t\t\t\t")]),t._v(" "),s("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(" "),s("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(" "),s("span",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[s("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[s("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),s("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]),t._v(" "),s("div",{staticClass:"pl-2"},[t.status.sensitive?s("details",[s("summary",{staticClass:"mb-2 font-weight-bold text-muted"},[t._v("Content Warning")]),t._v(" "),s("p",{staticClass:"pt-2 text-break status-content",domProps:{innerHTML:t._s(t.status.content)}})]):s("p",{staticClass:"pt-2 text-break status-content",domProps:{innerHTML:t._s(t.status.content)}}),t._v(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("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?s("div",[s("poll-card",{attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1):s("div",{staticClass:"card rounded-0 border-top-0 status-card card-md-rounded-0 shadow-none border"},[t.status?s("div",{staticClass:"card-header d-inline-flex align-items-center bg-white"},[s("div",[s("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(" "),s("div",{staticClass:"pl-2"},[s("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("\n\t\t\t\t\tLoading...\n\t\t\t\t")]),t._v(" "),t.status.account.is_admin?s("span",{staticClass:"fa-stack",staticStyle:{height:"1em","line-height":"1em","max-width":"19px"},attrs:{title:"Admin Account","data-toggle":"tooltip"}},[s("i",{staticClass:"fas fa-certificate text-danger fa-stack-1x"}),t._v(" "),s("i",{staticClass:"fas fa-crown text-white fa-sm fa-stack-1x",staticStyle:{"font-size":"7px"}})]):t._e(),t._v(" "),s("div",{staticClass:"d-flex align-items-center"},[t.status.place?s("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"}},[s("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(" "),t.canFollow(t.status)?s("div",[s("span",{staticClass:"px-2"}),t._v(" "),s("button",{staticClass:"btn btn-primary btn-sm font-weight-bold py-1 px-3 rounded-lg",on:{click:function(e){return t.follow(t.status.account.id)}}},[s("i",{staticClass:"far fa-user-plus mr-1"}),t._v(" Follow")])]):t._e(),t._v(" "),t.status.hasOwnProperty("relationship")&&t.status.relationship.hasOwnProperty("following")&&t.status.relationship.following?s("div",[s("span",{staticClass:"px-2"}),t._v(" "),s("button",{staticClass:"btn btn-outline-primary btn-sm font-weight-bold py-1 px-3 rounded-lg",on:{click:function(e){return t.unfollow(t.status.account.id)}}},[s("i",{staticClass:"far fa-user-check mr-1"}),t._v(" Following")])]):t._e(),t._v(" "),s("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[s("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[s("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),s("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]):t._e(),t._v(" "),s("div",{staticClass:"postPresenterContainer",staticStyle:{background:"#000"}},["photo"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):"video"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("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?s("div",{staticClass:"w-100"},[s("video-album-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("mixed-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):s("div",{staticClass:"w-100"},[s("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?s("div",{staticClass:"card-body border-top border-bottom py-2 cursor-pointer pr-2",on:{click:function(e){return t.labelRedirect()}}},[s("p",{staticClass:"font-weight-bold d-flex justify-content-between align-items-center mb-0"},[s("span",[s("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(" "),s("div",{staticClass:"card-body"},[t.reactionBar?s("div",{staticClass:"reactions my-1 pb-2"},[t.status.favourited?s("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)}}}):s("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():s("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?s("span",{staticClass:"float-right"},[s("span",{staticClass:"font-weight-light small",staticStyle:{color:"#718096"}},[s("i",{staticClass:"far fa-user",attrs:{"data-toggle":"tooltip",title:"Tagged People"}}),t._v(" "),t._l(t.status.taggedPeople,(function(t,e){return s("span",{staticClass:"mr-n2"},[s("a",{attrs:{href:"/"+t.username}},[s("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?s("div",{staticClass:"likes mb-1"},[s("span",{staticClass:"like-count"},[t._v("Liked by\n\t\t\t\t\t"),s("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?s("span",[t._v("\n\t\t\t\t\t\tand "),t.status.liked_by.total_count_pretty?s("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.status.liked_by.total_count_pretty))]):t._e(),t._v(" "),s("span",{staticClass:"font-weight-bold"},[t._v("others")])]):t._e()])]):t._e(),t._v(" "),"text"!=t.status.pf_type?s("div",{staticClass:"caption"},[t.status.sensitive?t._e():s("p",{staticClass:"mb-2 read-more",staticStyle:{overflow:"hidden"}},[s("span",{staticClass:"username font-weight-bold"},[s("bdi",[s("a",{staticClass:"text-dark",attrs:{href:t.profileUrl(t.status)}},[t._v(t._s(t.status.account.username))])])]),t._v(" "),s("span",{staticClass:"status-content",domProps:{innerHTML:t._s(t.content)}})])]):t._e(),t._v(" "),s("div",{staticClass:"timestamp mt-2"},[s("p",{staticClass:"small mb-0"},["archived"!=t.status.visibility?s("a",{staticClass:"text-muted text-uppercase",attrs:{href:t.statusUrl(t.status)}},[s("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):s("span",{staticClass:"text-muted text-uppercase"},[t._v("\n\t\t\t\t\t\tPosted "),s("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?s("span",[s("span",{staticClass:"px-1"},[t._v("·")]),t._v(" "),s("span",{staticClass:"text-muted"},[t._v("Based on popular and trending content")])]):t._e()])])])]),t._v(" "),s("context-menu",{ref:"contextMenu",attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1)},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("span",[e("i",{staticClass:"fas fa-chevron-right text-lighter"})])}]},34812:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",[s("details",{staticClass:"details-animated"},[s("summary",[s("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(" "),s("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),s("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(e,o){return s("b-carousel-slide",{key:e.id+"-media"},["video"==e.type?s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:e.description,width:"100%",height:"100%"},slot:"img"},[s("source",{attrs:{src:e.url,type:e.mime}})]):"image"==e.type?s("div",{attrs:{slot:"img",title:e.description},slot:"img"},[s("img",{class:e.filter_class+" d-block img-fluid w-100",attrs:{src:e.url,alt:e.description,loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})]):s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])})),1)],1)]):s("div",{staticClass:"w-100 h-100 p-0"},[s("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(e,o){return s("slide",{key:"px-carousel-"+e.id+"-"+o,staticClass:"w-100 h-100 d-block mx-auto text-center",staticStyle:{background:"#000",display:"flex","align-items":"center"}},["video"==e.type?s("video",{staticClass:"embed-responsive-item",attrs:{preload:"none",controls:"",loop:"",title:e.description,width:"100%",height:"100%"}},[s("source",{attrs:{src:e.url,type:e.mime}})]):"image"==e.type?s("div",{attrs:{title:e.description}},[s("img",{class:e.filter_class+" img-fluid w-100",attrs:{src:e.url,alt:e.description,loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})]):s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])})),1)],1)},i=[]},21761:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",{staticClass:"content-label-wrapper"},[s("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),s("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),s("p",{staticClass:"text-center py-2"},[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(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):s("div",{staticClass:"w-100 h-100 p-0"},[s("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(e,o){return s("slide",{key:"px-carousel-"+e.id+"-"+o,staticStyle:{background:"#000",display:"flex","align-items":"center"},attrs:{title:e.description}},[s("img",{class:e.filter_class+" img-fluid w-100 p-0",attrs:{src:e.url,alt:t.altText(e),loading:"lazy",onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}}),t._v(" "),!t.status.sensitive&&t.sensitive?s("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}}},[s("i",{staticClass:"fas fa-eye-slash fa-lg"})]):t._e(),t._v(" "),t.status.media_attachments[0].license?s("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))"}},[s("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.url}},[t._v("Photo")]),t._v(" by "),s("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 "),s("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)],1)},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])}]},65654:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",{staticClass:"content-label-wrapper"},[s("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),s("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),s("p",{staticClass:"text-center py-2"},[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(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):s("div",[s("div",{staticStyle:{position:"relative"},attrs:{title:t.status.media_attachments[0].description}},[s("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?s("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}}},[s("i",{staticClass:"fas fa-eye-slash fa-lg"})]):t._e(),t._v(" "),t.status.media_attachments[0].license?s("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))"}},[s("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.url}},[t._v("Photo")]),t._v(" by "),s("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 "),s("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()])])},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])}]},36310:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",[s("details",{staticClass:"details-animated"},[s("summary",[s("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(" "),s("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),s("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,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:t.description,width:"100%",height:"100%"},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)]):s("div",[s("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,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",playsinline:"",loop:"",alt:t.description,width:"100%",height:"100%"},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)},i=[]},38508:(t,e,s)=>{"use strict";s.r(e),s.d(e,{render:()=>o,staticRenderFns:()=>i});var o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.status.sensitive?s("div",{staticClass:"content-label-wrapper"},[s("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),s("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),s("p",{staticClass:"text-center py-2"},[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(" "),s("p",{staticClass:"mb-0"},[s("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(" "),s("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):s("div",{staticClass:"embed-responsive embed-responsive-16by9"},[s("video",{staticClass:"video",attrs:{controls:"",playsinline:"",preload:"metadata",loop:"","data-id":t.status.id}},[s("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])},i=[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])}]}},t=>{t.O(0,[898],(()=>{return e=48473,t(t.s=e);var e}));t.O()}]); \ No newline at end of file diff --git a/public/js/spa.js b/public/js/spa.js index b70eeb66f..7a889b909 100644 --- a/public/js/spa.js +++ b/public/js/spa.js @@ -1,2 +1,2 @@ /*! For license information please see spa.js.LICENSE.txt */ -(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[269],{6340:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={components:{sidebar:a(88231).default},data:function(){return{isLoaded:!1,profile:void 0,instance:void 0,nodeinfo:void 0,config:window.App.config}},mounted:function(){this.fetchUserData()},methods:{fetchUserData:function(){this.profile=window._sharedData.user,this.fetchInstance()},fetchInstance:function(){var t=this;axios.get("/api/v1/instance").then((function(e){t.instance=e.data,t.fetchNodeinfo()}))},fetchNodeinfo:function(){var t=this;axios.get("/api/nodeinfo/2.0.json").then((function(e){t.nodeinfo=e.data,t.isLoaded=!0}))}}}},51209:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(42755),i=a(88231);const n={components:{drawer:s.default,sidebar:i.default},data:function(){return{isLoaded:!1,profile:void 0,instance:void 0,nodeinfo:void 0,config:window.App.config}},mounted:function(){this.profile=window._sharedData.user}}},7212:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={components:{sidebar:a(88231).default},data:function(){return{isLoaded:!1,profile:void 0}},mounted:function(){this.profile=window._sharedData.user,this.isLoaded=!0}}},3247:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>r});var s=a(42755),i=a(88231),n=a(33795),o=a(78423);const r={components:{drawer:s.default,sidebar:i.default,intersect:o.default,"dm-placeholder":n.default},data:function(){return{isLoaded:!1,profile:void 0,canLoadMore:!0,threadsLoaded:!1,threads:[],tabIndex:0,tabs:["inbox","sent","requests"],page:1,ids:[],isIntersecting:!1}},mounted:function(){this.profile=window._sharedData.user,this.isLoaded=!0,this.fetchThreads()},methods:{fetchThreads:function(){var t=this;axios.get("/api/v1/conversations",{params:{scope:this.tabs[this.tabIndex]}}).then((function(e){var a=e.data.map((function(t){return t.accounts[0].id}));t.ids=a,t.threads=e.data,t.threadsLoaded=!0,t.page++}))},timeago:function(t){return App.util.format.timeAgo(t)},enterIntersect:function(){var t=this;this.isIntersecting||(this.isIntersecting=!0,axios.get("/api/v1/conversations",{params:{scope:this.tabs[this.tabIndex],page:this.page}}).then((function(e){if(e.data.forEach((function(e){-1==t.ids.indexOf(e.accounts[0].id)&&(t.ids.push(e.accounts[0].id),t.threads.push(e))})),!e.data.length||e.data.length<5)return t.canLoadMore=!1,void(t.isIntersecting=!1);t.page++,t.isIntersecting=!1})))},toggleTab:function(t){event.currentTarget.blur(),this.threadsLoaded=!1,this.page=1,this.tabIndex=t,this.fetchThreads()}}}},1411:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>u});var s=a(42755),i=a(88231),n=a(78375),o=a(56899),r=a(92614),l=a(51436),c=a(53343),d=a(89601);const u={components:{drawer:s.default,sidebar:i.default,rightbar:n.default,discover:o.default,"news-slider":r.default,"discover-spotlight":l.default,"daily-trending":c.default,"grid-card":d.default},data:function(){return{isLoaded:!1,profile:void 0,config:{},tab:"index",popularAccounts:[],followingIndex:void 0}},updated:function(){},mounted:function(){this.profile=window._sharedData.user,this.fetchConfig()},methods:{fetchConfig:function(){var t=this;axios.get("/api/pixelfed/v2/discover/meta").then((function(e){t.config=e.data,t.isLoaded=!0,window._sharedData.discoverMeta=e.data}))},fetchPopularAccounts:function(){},followProfile:function(t){var e=this;event.currentTarget.blur(),this.followingIndex=t;var a=this.popularAccounts[t].id;axios.post("/api/v1/accounts/"+a+"/follow").then((function(a){e.followingIndex=void 0,e.popularAccounts.splice(t,1)})).catch((function(t){e.followingIndex=void 0,swal("Oops!","An error occured when attempting to follow this account.","error")}))},goToProfile:function(t){this.$router.push({path:"/i/web/profile/".concat(t.id),params:{id:t.id,cachedProfile:t,cachedUser:this.profile}})},toggleTab:function(t){this.tab=t,setTimeout((function(){window.scrollTo({top:0,behavior:"smooth"})}),300)},openManageModal:function(){event.currentTarget.blur(),swal("Settings","Discover settings here","info")}}}},78472:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={components:{sidebar:a(88231).default},data:function(){return{isLoaded:!1,profile:void 0}},mounted:function(){this.init()},watch:{$route:"init"},methods:{init:function(){this.profile=window._sharedData.user,this.isLoaded=!0}}}},45595:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>c});var s=a(42755),i=a(78423),n=a(88231),o=a(78375);function r(t){return function(t){if(Array.isArray(t))return l(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 l(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return l(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 l(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,s=new Array(e);a{"use strict";a.r(e),a.d(e,{default:()=>s});const s={data:function(){return{posts:[],profile:[]}},mounted:function(){this.init()},methods:{init:function(){var t=this;axios.get("/i/hc/category",{params:{id:1}}).then((function(e){t.profile=e.data})),axios.get("/i/hc/category",{params:{id:2}}).then((function(e){t.posts=e.data}))}}}},32854:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={data:function(){return{isLoaded:!1,article:void 0,related:[]}},mounted:function(){this.init()},methods:{init:function(){this.fetchArticle()},fetchArticle:function(){var t=this;axios.get("/i/hc/get",{params:{id:this.$route.params.id}}).then((function(e){t.isLoaded=!0,t.article=e.data})).catch((function(e){t.$router.push("/i/web/404")}))}}}},33555:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(42755),i=a(88231);const n={components:{drawer:s.default,sidebar:i.default},data:function(){return{isLoaded:!1,profile:void 0,locale:"en",langs:["en","ar","ca","de","el","es","fr","he","id","it","nl","pt","ru"]}},mounted:function(){this.profile=window._sharedData.user,this.isLoaded=!0,this.locale=this.$i18n.locale},watch:{locale:function(t){this.loadLang(t)}},methods:{fullName:function(t){return new Intl.DisplayNames([t],{type:"language"}).of(t)},loadLang:function(t){var e=this;axios.post("/api/pixelfed/web/change-language.json",{v:.1,l:t}).then((function(a){e.$i18n.locale=t}))}}}},16568:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={components:{drawer:a(42755).default}}},13310:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>d});var s=a(42755),i=a(88231),n=a(18303),o=a(73128),r=a(78423);function l(t){return function(t){if(Array.isArray(t))return c(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 c(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return c(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 c(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,s=new Array(e);a{"use strict";a.r(e),a.d(e,{default:()=>s});const s={components:{sidebar:a(88231).default},data:function(){return{isLoaded:!1,profile:void 0,page:void 0}},mounted:function(){this.fetchPage()},methods:{fetchPage:function(){var t=this;axios.get("/i/doc/privacy.json").then((function(e){t.page=e.data,t.fetchUserData()}))},fetchUserData:function(){this.profile=window._sharedData.user,this.isLoaded=!0}}}},53506:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>i});var s=a(88231);const i={components:{"account-settings":a(12206).default,sidebar:s.default},data:function(){return{isLoaded:!1,profile:void 0,user:void 0}},mounted:function(){this.profile=window._sharedData.user,this.user=window._sharedData.user,this.isLoaded=!0}}},16661:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={components:{sidebar:a(88231).default},data:function(){return{isLoaded:!1,profile:void 0,page:void 0}},mounted:function(){this.fetchPage()},methods:{fetchPage:function(){var t=this;axios.get("/i/doc/terms.json").then((function(e){t.page=e.data,t.fetchUserData()}))},fetchUserData:function(){this.profile=window._sharedData.user,this.isLoaded=!0}}}},20818:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(88231),i=a(57119);const n={components:{sidebar:s.default,discover:i.default},data:function(){return{isLoaded:!1,profile:void 0,trending:void 0,trendingSorts:["popular","new","random"],trendingSort:"popular"}},updated:function(){},mounted:function(){this.profile=window._sharedData.user,this.isLoaded=!0,this.fetchTrending()},methods:{fetchTrending:function(){var t=this;axios.get("/api/v1/videos/trending",{params:{limit:6,sort:this.trendingSort}}).then((function(e){t.trending=e.data}))},toggleTrendingSort:function(t){t!==this.trendingSort&&(this.trendingSort=t,this.fetchTrending())}}}},20581:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={data:function(){return{isLoaded:!1,initialFetch:!1,trending:[]}},mounted:function(){this.initialFetch||this.fetchTrending()},methods:{fetchTrending:function(){var t=this;axios.get("/api/pixelfed/v2/discover/posts/trending",{params:{range:"daily"}}).then((function(e){t.trending=e.data.slice(0,3),t.isLoaded=!0,t.initialFetch=!0}))},gotoPost:function(t){this.$router.push("/i/web/post/"+t)},viewMore:function(){this.$emit("btn-click","trending")}}}},79383:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={data:function(){return{isLoaded:!1}},mounted:function(){var t=this;setTimeout((function(){t.isLoaded=!0}),1e3)}}},86453:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{small:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},subtitle:{type:String},title:{type:String},buttonText:{type:String},buttonLink:{type:String},buttonEvent:{type:Boolean,default:!1},iconClass:{type:String}},methods:{handleLink:function(){1!=this.buttonEvent?this.buttonLink&&null!=this.buttonLink?this.$router.push(this.buttonLink):swal("Oops","This is embarassing, we cannot redirect you to the proper page at the moment","warning"):this.$emit("btn-click")}}}},69812:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={}},48274:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={data:function(){return{user:window._sharedData.user}}}},26930:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:["user"],data:function(){return{loaded:!1,avatarUpdateIndex:0,avatarUpdateFile:void 0,avatarUpdatePreview:void 0}},methods:{open:function(){this.$refs.avatarUpdateModal.show()},avatarUpdateClose:function(){this.$refs.avatarUpdateModal.hide(),this.avatarUpdateIndex=0,this.avatarUpdateFile=void 0},avatarUpdateClear:function(){this.avatarUpdateIndex=0,this.avatarUpdateFile=void 0},avatarUpdateStep:function(t){this.$refs.avatarUpdateRef.click(),this.avatarUpdateIndex=t},handleAvatarUpdate:function(){var t=this,e=event.target.files;Array.prototype.forEach.call(e,(function(e,a){t.avatarUpdateFile=e,t.avatarUpdatePreview=URL.createObjectURL(e),t.avatarUpdateIndex=1}))},handleDrop:function(t){t.preventDefault();var e=this;if(t.dataTransfer.items){for(var a=0;a{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(29655);a(99101);function i(t){return function(t){if(Array.isArray(t))return n(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 n(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return n(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 n(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,s=new Array(e);a1&&void 0!==arguments[1]?arguments[1]:30;return t.length<=e?t:t.slice(0,e)+"..."},logout:function(){axios.post("/logout").then((function(t){location.href="/"})).catch((function(t){location.href="/"}))},openUserInterfaceSettings:function(){event.currentTarget.blur(),this.$refs.uis.show()}}}},33588:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{small:{type:Boolean,default:!1}}}},84196:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={components:{notifications:a(73459).default},data:function(){return{profile:{}}},mounted:function(){this.profile=window._sharedData.user}}},77671:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>l});var s=a(20629),i=a(68296),n=a(76429);function o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function r(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const l={props:{user:{type:Object,default:function(){return{avatar:"/storage/avatars/default.jpg",username:!1,display_name:"",following_count:0,followers_count:0}}},links:{type:Array,default:function(){return[{name:"Discover",path:"/i/web/discover",icon:"fas fa-compass"},{name:"Groups",path:"/i/web/groups",icon:"far fa-user-friends"},{name:"Videos",path:"/i/web/videos",icon:"far fa-video"}]}}},components:{ComposeSimple:i.default,UpdateAvatar:n.default},computed:function(t){for(var e=1;e)?/g,(function(e){var a=e.slice(1,e.length-1),s=t.getCustomEmoji.filter((function(t){return t.shortcode==a}));return s.length?''.concat(s[0].shortcode,''):e}))}return a},gotoMyProfile:function(){var t=this.user;this.$router.push({name:"profile",path:"/i/web/profile/".concat(t.id),params:{id:t.id,cachedProfile:t,cachedUser:t}})},formatCount: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",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"compact";return new Intl.NumberFormat(e,{notation:a,compactDisplay:"short"}).format(t)},updateAvatar:function(){event.currentTarget.blur(),this.$refs.avatarUpdate.open()},createNewPost:function(){this.$refs.createPostModal.show()}}}},96668:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{n:{type:Object}},data:function(){return{profile:window._sharedData.user}},methods:{truncate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30;return t.length<=e?t:t.slice(0,e)+"..."},timeAgo:function(t){var e=Date.parse(t),a=Math.floor((new Date-e)/1e3),s=Math.floor(a/31536e3);return s>=1?s+"y":(s=Math.floor(a/604800))>=1?s+"w":(s=Math.floor(a/86400))>=1?s+"d":(s=Math.floor(a/3600))>=1?s+"h":(s=Math.floor(a/60))>=1?s+"m":Math.floor(a)+"s"},mentionUrl:function(t){return"/p/"+t.account.username+"/"+t.id},followProfile:function(t){var e=this,a=t.account.id;axios.post("/i/follow",{item:a}).then((function(t){e.notifications.map((function(t){t.account.id===a&&(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 this.getProfileUrl(t.account);case"mention":return t.status.url;case"like":case"favourite":case"comment":return this.getPostUrl(t.status);case"tagged":return t.tagged.post_url;case"direct":return"/account/direct/t/"+t.account.id}return"/"},getProfileUrl:function(t){this.$router.push({name:"profile",path:"/i/web/profile/".concat(t.id),params:{id:t.id,cachedProfile:t,cachedUser:this.profile}})},getPostUrl:function(t){this.$router.push({name:"post",path:"/i/web/post/".concat(t.id),params:{id:t.id,cachedStatus:t,cachedProfile:this.profile}})}}}},3366:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={data:function(){return{user:{},step:"firstLoad"}},mounted:function(){this.user=window._sharedData.user},methods:{toggleStep:function(t){this.step=t}}}},27908:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{profile:{type:Object}},data:function(){return{loading:!0,trending:[],range:"daily",breadcrumbItems:[{text:"Discover",href:"/i/web/discover"},{text:"Trending",active:!0}]}},mounted:function(){this.loadTrending()},methods:{fetchData:function(){var t=this;axios.get("/api/pixelfed/v2/discover/posts").then((function(e){t.posts=e.data.posts.filter((function(t){return null!=t})),t.recommendedLoading=!1}))},loadTrending:function(){var t=this;this.loading=!0,axios.get("/api/pixelfed/v2/discover/posts/trending",{params:{range:this.range}}).then((function(e){var a=e.data.filter((function(t){return null!==t}));t.trending=a.filter((function(t){return 0==t.sensitive})),"daily"==t.range&&0==a.length&&(t.range="yearly",t.loadTrending()),t.loading=!1}))},formatCount:function(t){return App.util.format.count(t)},goToPost:function(t){this.$router.push({name:"post",params:{id:t.id,cachedStatus:t,cachedProfile:this.profile}})},rangeToggle:function(t){event.currentTarget.blur(),this.range=t,this.loadTrending()}}}},58338:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>r});var s=a(73128),i=a(78423);function n(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return o(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 o(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,s=new Array(e);a{"use strict";a.r(e),a.d(e,{default:()=>y});var s=a(40829),i=a(79205),n=a(45615),o=a(19893),r=a(72154),l=a(98191),c=a(6430),d=a(15122),u=a(33390),f=a(76954),p=a(67125),m=a(68645),h=a(85673),v=a(65e3),g=a(23104),b=a(3625),_=a(36440),C=a(29655),w=(a(99101),a(19755));const y={props:{bootTab:{type:String}},components:{"profile-tab":s.default,"account-tab":i.default,"accessibility-tab":n.default,"appearance-tab":o.default,"devices-tab":r.default,"notifications-tab":l.default,"preferences-tab":c.default,"security-tab":d.default,"import-tab":u.default,"export-tab":f.default,"archive-tab":p.default,"blocked-tab":m.default,"bookmarks-tab":h.default,"collections-tab":v.default,"follows-tab":g.default,"groups-tab":b.default,"likes-tab":_.default,autocomplete:C.default},data:function(){return{initialLoad:!1,config:{},profile:{},tabChanges:0,tabIndex:0,tabs:[],changed:!1,menuMode:!1,searchResults:[],mobileSearchOpen:!1}},created:function(){window.addEventListener("resize",this.handleOnResize)},destroyed:function(){window.removeEventListener("resize",this.handleOnResize)},mounted:function(){this.init()},methods:{handleOnResize:function(){var t=[".navbar","footer",".mobile-footer",".mobile-footer-spacer"];window.innerWidth<768?(this.menuMode=!0,t.forEach((function(t){w(t).addClass("d-none")}))):(this.menuMode=!1,t.forEach((function(t){w(t).removeClass("d-none")})))},init:function(){this.setTabs(),this.handleOnResize()},setCurrentTab:function(){var t=this.$route.params.pathMatch;if(t){var e=this.tabs.map((function(t){return t.slug})).indexOf(t),a=e>0?e:0;this.toggleTab(a),this.menuMode=!1,setTimeout((function(){document.getElementById("stab_"+a).scrollIntoView({behavior:"smooth",block:"end",inline:"end"})}),300)}this.initialLoad=!0},goHome:function(){location.href="/i/web"},fetchConfig:function(){var t=this;axios.get("/i/settings/config.json").then((function(e){t.config=e.data,t.fetchAccount()}))},fetchAccount:function(){var t=this;axios.get("/i/settings/account.json").then((function(e){t.profile=e.data,t.setCurrentTab()}))},setTabs:function(){this.tabs=[{title:"Profile",slug:"profile",icon:"far fa-user"},{title:"Account",slug:"account",icon:"far fa-house-user"},{title:"Accessibility",slug:"accessibility",icon:"far fa-universal-access"},{title:"Appearance",slug:"appearance",icon:"far fa-paint-brush"},{title:"Apps & Devices",slug:"apps-and-devices",icon:"far fa-mobile"},{title:"Notifications",slug:"notifications",icon:"far fa-bell"},{title:"Security",slug:"security",icon:"far fa-lock"}],this.fetchConfig()},toggleTab:function(t){if(event&&event.hasOwnProperty("currentTarget")&&event.currentTarget.blur(),this.menuMode=!1,this.mobileSearchOpen=!1,this.changed&&this.tabIndex!=t){if(!window.confirm("Are you sure you want to proceed without saving your changes?"))return;this.changed=!1,this.clearChanges()}if(this.tabIndex=t,0==t)history.pushState(null,null,"/i/web/settings");else{var e=this.tabs[t].slug,a=0==this.tabChanges?"/i/web/settings/"+e+window.location.search:"/i/web/settings/"+e;history.pushState(null,null,a)}this.tabChanges++},handleChange:function(t){this.changed=t},syncProfile:function(t){this.profile=t},goBack:function(){this.menuMode=!0,this.tabIndex=0,history.pushState(null,null,"/i/web/settings")},clearChanges:function(){switch(event.currentTarget.blur(),this.tabIndex){case 0:this.$refs.profileTab.init();break;case 1:this.$refs.accountTab.init()}this.changed=!1},saveChanges:function(){switch(event.currentTarget.blur(),this.tabIndex){case 0:this.$refs.profileTab.save();break;case 1:this.$refs.accountTab.save();break;case 2:this.$refs.accessibilityTab.save();break;case 3:this.$refs.appearanceTab.save();break;case 6:this.$refs.preferencesTab.save()}},autocompleteSearch:function(t){return!t||t.length<2?[]:axios.get("/i/settings-search",{params:{q:t}}).then((function(t){return t.data}))},getSearchResultValue:function(t){return t},onSearchSubmit:function(t){if(t.length<1)return[];this.$refs.autocomplete.value="",this.toggleTab(t.tabIndex)},toggleMobileSearch:function(){event.currentTarget.blur(),this.mobileSearchOpen=!this.mobileSearchOpen}}}},75995:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>i});var s=a(19755);const i={data:function(){return{announcements:[],announcement:{},cursor:0,showNext:!0,showPrev:!1}},mounted:function(){this.fetchAnnouncements()},updated:function(){s('[data-toggle="tooltip"]').tooltip()},methods:{fetchAnnouncements:function(){var t=this,e=JSON.parse(window.localStorage.getItem("metro-tips-closed"));axios.get("/api/pixelfed/v1/newsroom/timeline").then((function(a){t.announcements=a.data.filter((function(t){return!e||-1==e.indexOf(t.id)})),t.announcement=t.announcements[0],1==t.announcements.length&&(t.showNext=!1)}))},loadNext:function(){this.showNext&&(this.cursor+=1,this.announcement=this.announcements[this.cursor],this.cursor+1==this.announcements.length&&(this.showNext=!1),this.cursor>=1&&(this.showPrev=!0))},loadPrev:function(){this.showPrev&&(this.cursor-=1,this.announcement=this.announcements[this.cursor],0==this.cursor&&(this.showPrev=!1),this.cursor1})).catch((function(t){swal("Oops, Something went wrong","There was a problem with your request, please try again later.","error")}))}}}},77355:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>i});var s=a(19755);const i={data:function(){return{authenticated:!1,loaded:!1,config:window.App.config,posts:{},trending:{},trendingDaily:{},trendingMonthly:{},searchTerm:"",trendingRange:"daily",trendingLoading:!0,recommendedLoading:!0}},beforeMount:function(){this.authenticated=s("body").hasClass("loggedIn")},mounted:function(){this.loaded=!0,this.loadTrending(),1==s("body").hasClass("loggedIn")&&(this.fetchData(),axios.get("/api/pixelfed/v1/accounts/verify_credentials").then((function(t){window._sharedData.curUser=t.data,window.App.util.navatar()})))},methods:{fetchData:function(){var t=this;this.recommendedLoading&&axios.get("/api/v1/discover/posts").then((function(e){t.posts=e.data.posts.filter((function(t){return null!=t})),t.recommendedLoading=!1}))},searchSubmit:function(){this.searchTerm.length>1&&(window.location.href="/i/results?q="+this.searchTerm)},loadTrending:function(){var t=this;"daily"==this.trendingRange&&this.trendingDaily.length&&(this.trending=this.trendingDaily,this.trendingLoading=!1),"monthly"==this.trendingRange&&this.trendingMonthly.length&&(this.trending=this.trendingMonthly,this.trendingLoading=!1),axios.get("/api/pixelfed/v2/discover/posts/trending",{params:{range:this.trendingRange}}).then((function(e){var a=e.data.filter((function(t){return null!==t}));"daily"==t.trendingRange&&(t.trendingDaily=a.filter((function(t){return 0==t.sensitive}))),"monthly"==t.trendingRange&&(t.trendingMonthly=a.filter((function(t){return 0==t.sensitive}))),t.trending=a,t.trendingLoading=!1}))},trendingRangeToggle:function(t){this.trendingLoading=!0,this.trendingRange=t,this.loadTrending()},formatCount:function(t){return App.util.format.count(t)}}}},2962:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(19755);function i(t){return function(t){if(Array.isArray(t))return n(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 n(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return n(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 n(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,s=new Array(e);a5?t.complete():axios.get("/api/pixelfed/v1/notifications",{params:{max_id:this.notificationMaxId}}).then((function(a){if(a.data.length){var s,n=a.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}))})),o=n.map((function(t){return t.id}));e.notificationMaxId=Math.min.apply(Math,i(o)),(s=e.notifications).push.apply(s,i(n)),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 a=t.data.filter((function(t){return!("share"==t.type||e.notificationMaxId>=t.id)}));if(a.length){var n,o=a.map((function(t){return t.id}));e.notificationMaxId=Math.max.apply(Math,i(o)),(n=e.notifications).unshift.apply(n,i(a));var r=new Audio("/static/beep.mp3");r.volume=.7,r.play(),s(".notification-card .far.fa-bell").addClass("fas text-danger").removeClass("far text-muted")}}))}),t)},refreshNotifications:function(){var t=this;axios.get("/api/pixelfed/v1/notifications").then((function(e){var a=e.data.filter((function(e){return!("share"==e.type||t.notificationMaxId>=e.id)}));if(a.length>0){var s=a.map((function(t){return t.id})),i=Math.max(s);if(i<=t.notificationMaxId)return;t.notificationMaxId=i,t.notifications=a;var n=new Audio("/static/beep.mp3");n.volume=.7,n.play()}}))},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}},l="refreshNotifications",c=function(){this.loading=!0,this.attemptedRefresh=!0,this.fetchNotifications()},l in r?Object.defineProperty(r,l,{value:c,enumerable:!0,configurable:!0,writable:!0}):r[l]=c,r)};var r,l,c},14425:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>i});var s=a(19755);const i={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"),s("#mt_pid_"+this.status.id).modal("hide")},hidePost:function(t){t.sensitive=!0,s("#mt_pid_"+t.id).modal("hide")},moderatePost:function(t,e,a){var s=t.account.username;switch(e){case"autocw":var i="Are you sure you want to enforce CW for "+s+" ?";swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0});break;case"suspend":i="Are you sure you want to suspend the account of "+s+" ?",swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0})}},muteProfile:function(t){0!=s("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!=s("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(){s("#mt_pid_"+this.status.id).modal("hide")}}}},58206:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={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"}}}},33109:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={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)+" ..."}}}},53999:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>i});var s=a(19755);const i={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 a=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,a)},ctxEmbedShowLikes:function(t,e){1==t&&(this.ctxEmbedCompactMode=!1);var a=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,a)},ctxEmbedCompactMode:function(t,e){1==t&&(this.ctxEmbedShowCaption=!1,this.ctxEmbedShowLikes=!1);var a=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,a)}},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 a=t.ctxMenuStatus.account.acct;t.closeCtxMenu(),setTimeout((function(){swal("Follow successful!","You are now following "+a,"success")}),500)}))},ctxMenuUnfollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then((function(e){var a=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 "+a,"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,a=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(s){s?axios.post("/i/report/",{report:t,type:"post",id:a}).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,a){var s=this,i=(t.account.username,t.id,""),n=this;switch(e){case"addcw":i="Are you sure you want to add a content warning to this post?",swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(a){a&&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,n.closeModals(),n.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),n.closeModals(),n.ctxModMenuClose()}))}));break;case"remcw":i="Are you sure you want to remove the content warning on this post?",swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(a){a&&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,n.closeModals(),n.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),n.closeModals(),n.ctxModMenuClose()}))}));break;case"unlist":i="Are you sure you want to unlist this post?",swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(a){a&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(e){s.feed=s.feed.filter((function(e){return e.id!=t.id})),swal("Success","Successfully unlisted post","success"),n.closeModals(),n.ctxModMenuClose()})).catch((function(t){n.closeModals(),n.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")}))}));break;case"spammer":i="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:i,icon:"warning",buttons:!0,dangerMode:!0}).then((function(a){a&&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"),n.closeModals(),n.ctxModMenuClose()})).catch((function(t){n.closeModals(),n.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")}))}))}},shareStatus:function(t,e){0!=s("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!=s("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(a){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(a){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()}))}}}},55192:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(20415),i=a(19755);const n={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":s.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";a.r(e),a.d(e,{default:()=>o});var s=a(20415),i=a(97622),n=a(19755);const o={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":s.default,"poll-card":i.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 a=''.concat(e.shortcode,'');t.content=t.content.replace(":".concat(e.shortcode,":"),a)}))},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,a=window.App.config.username.remote.custom,s=t.account.username,i=document.createElement("a");switch(i.href=t.account.url,i=i.hostname,e){case"@":default:return s+'@'+i+"";case"from":return s+' from '+i+"";case"custom":return s+' '+a+" "+i+""}},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!=n("body").hasClass("loggedIn")){var a=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=a,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 a=this;this.replySending=!0;var s=t.id,i=this.replyText,n=this.config.uploader.max_caption_length;if(i.length>n)return this.replySending=!1,void swal("Comment Too Long","Please make sure your comment is "+n+" characters or less.","error");axios.post("/i/comment",{item:s,comment:i,sensitive:this.replyNsfw}).then((function(t){a.replyText="",a.replies.push(t.data.entity),a.$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)},canFollow:function(t){return!!t.hasOwnProperty("relationship")&&(!(!t.hasOwnProperty("account")||!t.account.hasOwnProperty("id"))&&(t.account.id!=this.profile.id&&!t.relationship.following))},follow:function(t){var e=this;event.currentTarget.blur(),axios.post("/i/follow",{item:t}).then((function(a){e.status.relationship.following=!0,e.$emit("followed",t)})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))},unfollow:function(t){var e=this;event.currentTarget.blur(),axios.post("/i/follow",{item:t}).then((function(a){e.status.relationship.following=!1,e.$emit("unfollowed",t)})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))}}}},7768:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:["status"]}},10578:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(30765),i=a.n(s);const n={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){i()({el:t.target})},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 a="backward";e.advancePage(a),e.$emit("navigation-click",a)}if("39"==t.keyCode){t.preventDefault();var s="forward";e.advancePage(s),e.$emit("navigation-click",s)}}}}},15464:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>n});var s=a(30765),i=a.n(s);const n={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){i()({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}}}},63049:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:["status"]}},67223:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={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")}}}},83933:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{config:{type:Object},profile:{type:Object}},data:function(){return{reduceMotion:void 0,highContrast:void 0,videoAutoplay:void 0,changed:!1}},watch:{reduceMotion:function(t){this.hasChanged(),this.reduceMotion=t},highContrast:function(t){this.hasChanged(),this.highContrast=t},videoAutoplay:function(t){this.hasChanged(),this.videoAutoplay=t}},mounted:function(){this.init()},methods:{init:function(){this.reduceMotion=this.profile.settings.reduce_motion,this.highContrast=this.profile.settings.high_contrast_mode,this.videoAutoplay=this.profile.settings.video_autoplay},hasChanged:function(){var t=!1;this.reduceMotion!=this.profile.settings.reduce_motion&&(t=!0),this.highContrast!=this.profile.settings.high_contrast_mode&&(t=!0),this.videoAutoplay!=this.profile.settings.video_autoplay&&(t=!0),this.$emit("changed",t)},save:function(){var t=this;axios.post("/api/v1/accounts/update_credentials",{_method:"PATCH",reduce_motion:this.reduceMotion,high_contrast_mode:this.highContrast,video_autoplay:this.videoAutoplay}).then((function(e){var a=t.profile;a.settings.reduce_motion=t.reduceMotion,a.settings.high_contrast_mode=t.highContrast,a.settings.video_autoplay=t.videoAutoplay,t.$emit("sync-profile",a),t.$emit("changed",!1),t.init(),t.$bvToast.toast("Succesfully updated your profile!",{title:"Success",variant:"success",autoHideDelay:5e3})})).catch((function(t){422==t.response.status?swal("Error","The following error occured when attempting to save your changes: "+t.response.data.error,"error"):swal("Oops!","Something went wrong","error")}))}}}},46122:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{config:{type:Object},profile:{type:Object}},data:function(){return{language:void 0,pronouns:void 0,email:{disabled:!0,actual:void 0,masked:void 0},changed:!1}},watch:{language:function(t){this.hasChanged(),this.language=t},pronouns:function(t){this.hasChanged(),this.pronouns=t}},mounted:function(){this.init()},methods:{init:function(){this.language=this.profile.language,this.pronouns=this.profile.pronouns,this.email.masked=this.profile.email.masked},hasChanged:function(){var t=!1;this.language!=this.profile.language&&(t=!0),this.pronouns!=this.profile.pronouns&&(t=!0),this.$emit("changed",t)},save:function(){var t=this;axios.post("/api/v1/accounts/update_credentials",{_method:"PATCH","source[language]":this.language}).then((function(e){var a=t.profile;a.language=e.data.language,t.$emit("sync-profile",a),t.$emit("changed",!1),t.init(),t.$bvToast.toast("Succesfully updated your profile!",{title:"Success",variant:"success",autoHideDelay:5e3})})).catch((function(t){422==t.response.status?swal("Error","The following error occured when attempting to save your changes: "+t.response.data.error,"error"):swal("Oops!","Something went wrong","error")}))},timeago:function(t){return App.util.format.timeAgo(t)}}}},65685:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{config:{type:Object},profile:{type:Object}},data:function(){return{theme:"light",textSize:1,profileLayout:"grid",postLayout:"social",reduceMotion:void 0,changed:!1}},watch:{theme:function(t){this.hasChanged(),this.reduceMotion=t}},mounted:function(){this.init()},methods:{init:function(){this.theme=this.profile.dark_mode?"dark":"light"},hasChanged:function(){var t=!1;this.theme!=this.profile.dark_mode&&(t=!0),this.$emit("changed",t)},timeago:function(t){return App.util.format.timeAgo(t)},toggleTextSize:function(t){event.currentTarget.blur(),this.textSize=t},toggleTheme:function(t){event.currentTarget.blur(),this.theme=t},toggleProfileLayout:function(t){event.currentTarget.blur(),this.profileLayout=t},togglePostLayout:function(t){event.currentTarget.blur(),this.postLayout=t},save:function(){axios.post("/settings/labs",{dark_mode:"dark"==this.theme?"on":null}).then((function(t){location.reload()})).catch((function(t){422==t.response.status?swal("Error","The following error occured when attempting to save your changes: "+t.response.data.error,"error"):swal("Oops!","Something went wrong","error")}))}}}},85623:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>i});var s=a(19210);const i={props:{config:{type:Object},profile:{type:Object}},components:{StatusCard:s.default},data:function(){return{archives:[],archivesLoaded:!1,tabs:["All","Recently Unarchived"],tabIndex:0,recentUnarchived:[],page:1,changed:!1}},mounted:function(){this.init()},methods:{init:function(){this.fetchArchives()},toggleTab:function(t){this.tabIndex=t},timeago:function(t){return App.util.format.timeAgo(t)},fetchArchives:function(){var t=this;axios.get("/api/pixelfed/v2/statuses/archives",{params:{page:this.page}}).then((function(e){var a=e.data.map((function(t){return t.open=!1,t}));t.archives=a,t.page++,t.archivesLoaded=!0}))},goToLink:function(t){location.href=t},mediaUrl:function(t){return t.media_attachments[0].hasOwnProperty("preview_url")&&t.media_attachments[0].preview_url?t.media_attachments[0].preview_url:t.media_attachments[0].url},unarchive:function(t){var e=this;if(event.currentTarget.blur(),window.confirm("Are you sure you want to unarchive this post?")){var a=this.archives[t].id;axios.post("/api/pixelfed/v2/status/"+a+"/unarchive").then((function(a){var s=e.archives[t];e.archives.splice(t,1),e.recentUnarchived.push(s)}))}},archive:function(t){var e=this;event.currentTarget.blur();var a=this.recentUnarchived[t].id;axios.post("/api/pixelfed/v2/status/"+a+"/archive").then((function(a){var s=e.recentUnarchived[t];e.recentUnarchived.splice(t,1),e.archives.unshift(s),e.tabIndex=0}))}}}},32e3:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{config:{type:Object},profile:{type:Object}},data:function(){return{tabIndex:0,tabs:["Blocked","Muted"],blocked:[],blockedPage:1,blockedCanLoadMore:!1,blockedLoaded:!1,muted:[],mutedPage:1,mutedCanLoadMore:!1,mutedLoaded:!1,changed:!1}},mounted:function(){this.init()},methods:{init:function(){this.fetchBlocks(),this.fetchMuted()},timeago:function(t){return App.util.format.timeAgo(t)},toggleTab:function(t){switch(t){case 0:this.blockedLoaded||this.fetchBlocks();break;case 1:this.mutedLoaded||this.fetchMuted()}this.tabIndex=t},fetchBlocks:function(){var t=this;axios.get("/api/v1/blocks",{params:{page:this.blockedPage,limit:10}}).then((function(e){t.blockedLoaded=!0,t.blocked=e.data,t.blockedPage++,t.blockedCanLoadMore=10===e.data.length}))},fetchMuted:function(){var t=this;axios.get("/api/v1/mutes",{params:{page:this.mutedPage,limit:10}}).then((function(e){t.mutedLoaded=!0,t.muted=e.data,t.mutedPage++,t.mutedCanLoadMore=10===e.data.length}))},unblock:function(t){event.currentTarget.blur(),window.confirm("Are you sure you want to unmute "+t.acct+"?")&&(this.blocked=this.blocked.filter((function(e){return e.id!==t.id})))},unmute:function(t){event.currentTarget.blur(),window.confirm("Are you sure you want to unmute "+t.acct+"?")&&(this.muted=this.muted.filter((function(e){return e.id!==t.id})))}}}},17474:(t,e,a)=>{"use strict";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 a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))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 a=0,s=new Array(e);an});const n={props:{config:{type:Object},profile:{type:Object}},data:function(){return{bookmarks:[],bookmarksLoaded:!1,page:1,canLoadMore:!1}},mounted:function(){this.init()},methods:{init:function(){this.fetchBookmarks()},timeago:function(t){return App.util.format.timeAgo(t)},fetchBookmarks:function(){var t=this;axios.get("/api/local/bookmarks",{params:{page:this.page}}).then((function(e){var a;t.bookmarks||t.bookmarks.length?(a=t.bookmarks).push.apply(a,s(e.data)):t.bookmarks=e.data;t.page++,t.canLoadMore=10===e.data.length,t.bookmarksLoaded=!0}))},mediaUrl:function(t){if(!t.media_attachments)return"/storage/no-preview.png";var e=t.media_attachments[0];return e.hasOwnProperty("preview_url")&&e.preview_url?e.preview_url:e.url},statusUrl:function(t){return 1==t.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},goToLink:function(t){location.href=t}}}},25774:(t,e,a)=>{"use strict";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 a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))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 a=0,s=new Array(e);an});const n={props:{config:{type:Object},profile:{type:Object}},data:function(){return{collections:[],collectionsLoaded:!1,page:1,canLoadMore:!1,changed:!1}},mounted:function(){this.init()},methods:{init:function(){this.fetchCollections()},hasChanged:function(){this.$emit("changed",!1)},timeago:function(t){return App.util.format.timeAgo(t)},fetchCollections:function(){var t=this;axios.get("/api/local/profile/collections/"+this.profile.id,{params:{page:this.page}}).then((function(e){var a;t.collections||t.collections.length?(a=t.collections).push.apply(a,s(e.data)):t.collections=e.data;t.page++,t.collectionsLoaded=!0,t.canLoadMore=9==e.data.length}))},goToLink:function(t){location.href=t}}}},50825:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{config:{type:Object},profile:{type:Object}},data:function(){return{apps:[],appsLoaded:!1,devices:[],devicesLoaded:!1,reduceMotion:void 0,changed:!1}},watch:{reduceMotion:function(t){this.hasChanged(),this.reduceMotion=t}},mounted:function(){this.init()},methods:{init:function(){this.reduceMotion=this.profile.settings.reduce_motion,this.fetchAuthorizedApps(),this.fetchDevices()},hasChanged:function(){var t=!1;this.reduceMotion!=this.profile.settings.reduce_motion&&(t=!0),this.$emit("changed",t)},timeago:function(t){return App.util.format.timeAgo(t)},timeahead:function(t){return App.util.format.timeAhead(t)},fetchAuthorizedApps:function(){var t=this;axios.get("/oauth/tokens").then((function(e){t.apps=e.data,t.appsLoaded=!0}))},fetchDevices:function(){var t=this;axios.get("/i/settings/devices.json").then((function(e){t.devices=e.data,t.devicesLoaded=!0}))}}}},51495:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{config:{type:Object},profile:{type:Object}},data:function(){return{partials:[],changed:!1}},mounted:function(){this.init()},methods:{init:function(){this.setPartials()},hasChanged:function(){var t=!1;this.reduceMotion!=this.profile.settings.reduce_motion&&(t=!0),this.$emit("changed",t)},timeago:function(t){return App.util.format.timeAgo(t)},setPartials:function(){this.partials=[{name:"Account",path:"/settings/data-export/account"},{name:"Avatars",path:"/settings/data-export/media-v1"},{name:"Bookmarks",path:"/settings/data-export/media-v1"},{name:"Collections",path:"/settings/data-export/media-v1"},{name:"Direct Messages",path:"/settings/data-export/media-v1"},{name:"Followers",path:"/settings/data-export/followers"},{name:"Following",path:"/settings/data-export/following"},{name:"Hashtags",path:"/settings/data-export/media-v1"},{name:"Media",path:"/settings/data-export/media-v1"},{name:"Mute/Block List",path:"/settings/data-export/mute-block-list"},{name:"Statuses",path:"/settings/data-export/statuses"},{name:"Stories",path:"/settings/data-export/media-v1"}]},download:function(t){event.currentTarget.blur();this.partials[t].path;axios.post("/i/settings/export/get-key",{type:this.partials[t].name}).then((function(t){window.location.href=t.data.url}))}}}},86261:(t,e,a)=>{"use strict";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 a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))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 a=0,s=new Array(e);an});const n={props:{config:{type:Object},profile:{type:Object}},data:function(){return{tabs:["Followers","Following","Hashtags"],tabIndex:0,followersLoaded:!1,followingLoaded:!1,hashtagsLoaded:!1,followers:[],followersPage:1,followersCanLoadMore:!1,following:[],followingPage:1,followingCanLoadMore:!1,hashtags:[],hashtagsPage:1,changed:!1}},watch:{reduceMotion:function(t){this.hasChanged(),this.reduceMotion=t}},mounted:function(){this.init()},methods:{init:function(){this.fetchFollowers()},hasChanged:function(){var t=!1;this.reduceMotion!=this.profile.settings.reduce_motion&&(t=!0),this.$emit("changed",t)},timeago:function(t){return App.util.format.timeAgo(t)},toggleTab:function(t){switch(t){case 1:this.followingLoaded||this.fetchFollowing();break;case 2:this.hashtagsLoaded||this.fetchHashtags()}this.tabIndex=t},goToLink:function(t){event.currentTarget.blur(),location.href=t},fetchFollowers:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/"+this.profile.id+"/followers",{params:{page:this.followersPage}}).then((function(e){var a;t.followers||t.followers.length?(a=t.followers).push.apply(a,s(e.data)):t.followers=e.data;t.followersPage++,t.followersCanLoadMore=10==e.data.length,t.followersLoaded=!0}))},fetchFollowing:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/"+this.profile.id+"/following",{params:{page:this.followingPage}}).then((function(e){var a;t.following||t.following.length?(a=t.following).push.apply(a,s(e.data)):t.following=e.data;t.followingPage++,t.followingCanLoadMore=10==e.data.length,t.followingLoaded=!0}))},fetchHashtags:function(){var t=this;axios.get("/api/local/discover/tag/list").then((function(e){t.hashtags=e.data,t.hashtagsPage++,t.hashtagsCanLoadMore=10==e.data.length,t.hashtagsLoaded=!0}))},hashtagUnsubscribe:function(t){var e=this;event.currentTarget.blur(),axios.post("/api/local/discover/tag/subscribe",{name:this.hashtags[t]}).then((function(a){e.hashtags.splice(t,1)}))}}}},27165:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});var s=a(42363);function i(t){return function(t){if(Array.isArray(t))return n(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 n(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return n(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 n(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,s=new Array(e);a{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{config:{type:Object},profile:{type:Object}},data:function(){return{changed:!1}},mounted:function(){this.init()},methods:{init:function(){},hasChanged:function(){var t=!1;this.reduceMotion!=this.profile.settings.reduce_motion&&(t=!0),this.$emit("changed",t)},timeago:function(t){return App.util.format.timeAgo(t)}}}},45686:(t,e,a)=>{"use strict";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 a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))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 a=0,s=new Array(e);an});const n={props:{config:{type:Object},profile:{type:Object}},data:function(){return{maxId:void 0,likes:[],likesLoaded:!1,canLoadMore:!1,changed:!1}},mounted:function(){this.init()},methods:{init:function(){this.fetchLikes()},timeago:function(t){return App.util.format.timeAgo(t)},fetchLikes:function(){var t=this;axios.get("/api/v1/favourites",{params:{max_id:this.maxId,limit:10}}).then((function(e){var a;(e.data.length&&e.data[0].hasOwnProperty("id")&&e.data[0].hasOwnProperty("like_id")||(t.canLoadMore=!1,t.likesLoaded=!0),t.maxId=e.data[e.data.length-1].like_id,t.likes||t.likes.length)?(a=t.likes).push.apply(a,s(e.data)):t.likes=e.data;t.canLoadMore=e.data.length>1,t.likesLoaded=!0}))},statusUrl:function(t){return 1==t.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},goToLink:function(t){location.href=t},mediaUrl:function(t){return t.media_attachments[0].hasOwnProperty("preview_url")&&t.media_attachments[0].preview_url?t.media_attachments[0].preview_url:t.media_attachments[0].url}}}},43210:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{config:{type:Object},profile:{type:Object}},data:function(){return{reduceMotion:void 0,changed:!1}},watch:{reduceMotion:function(t){this.hasChanged(),this.reduceMotion=t}},mounted:function(){this.init()},methods:{init:function(){this.reduceMotion=this.profile.settings.reduce_motion},hasChanged:function(){var t=!1;this.reduceMotion!=this.profile.settings.reduce_motion&&(t=!0),this.$emit("changed",t)},timeago:function(t){return App.util.format.timeAgo(t)}}}},75577:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{config:{type:Object},profile:{type:Object}},data:function(){return{tabIndex:0,tabs:["general","compose","privacy","safety","advanced"],scope:"public",license:0,mediaDescriptions:void 0,syncLicenses:!1,crawlable:void 0,publicDm:void 0,followerCount:void 0,followingCount:void 0,embedable:void 0,otherFields:[],changed:!1}},watch:{scope:function(t){this.hasChanged(),this.scope=t},license:function(t){this.hasChanged(),this.license=t},mediaDescriptions:function(t){this.hasChanged(),this.mediaDescriptions=t},crawlable:function(t){this.hasChanged(),this.crawlable=t},publicDm:function(t){this.hasChanged(),this.publicDm=t},followerCount:function(t){this.hasChanged(),this.followerCount=t},followingCount:function(t){this.hasChanged(),this.followingCount=t},embedable:function(t){this.hasChanged(),this.embedable=t}},mounted:function(){this.init()},methods:{init:function(){var t=new URLSearchParams(window.location.search);if(t.has("tab")){var e=t.get("tab");this.tabs.includes(e)?(this.tabIndex=this.tabs.indexOf(e),"General"===e&&history.pushState(null,null,"/i/settings/preferences")):history.pushState(null,null,"/i/settings/preferences")}this.scope=this.profile.settings.compose_settings.default_scope,this.license=this.profile.settings.compose_settings.default_license,this.mediaDescriptions=this.profile.settings.compose_settings.media_descriptions,this.reduceMotion=this.profile.settings.reduce_motion,this.crawlable=this.profile.settings.crawlable,this.publicDm=this.profile.settings.public_dm,this.followerCount=this.profile.settings.show_profile_follower_count,this.followingCount=this.profile.settings.show_profile_following_count,this.embedable=this.profile.settings.other.disable_embeds,this.setOtherFields()},hasChanged:function(){var t=!1;this.scope!=this.profile.settings.compose_settings.default_scope&&(t=!0),this.license!=this.profile.settings.compose_settings.default_license&&(t=!0),this.mediaDescriptions!=this.profile.settings.compose_settings.media_descriptions&&(t=!0),this.crawlable!=this.profile.settings.crawlable&&(t=!0),this.publicDm!=this.profile.settings.public_dm&&(t=!0),this.followerCount!=this.profile.settings.show_profile_follower_count&&(t=!0),this.followingCount!=this.profile.settings.show_profile_following_count&&(t=!0),this.embedable!=this.profile.settings.other.disable_embeds&&(t=!0),this.$emit("changed",t)},timeago:function(t){return App.util.format.timeAgo(t)},setOtherFields:function(){this.otherFields=[{title:"Disable Content Warnings",help:"Always show content, even if it has a content warning. Not safe for work.",default:!1},{title:"Hide Like Counts",help:"Hide all like counts shown to me, does not affect other users from seeing like counts on your posts",default:!1},{title:"Hide Collections",help:"Hide collections tab from my profile. Will prevent you from creating new collections until disabled.",default:!1},{title:"Hide Stories",help:"Hide story carousel from timelines on web ui",default:!1},{title:"Advanced Atom feed",help:"Enable a richer experience for atom readers",default:!1},{title:"Disable embeds",help:"Disable profile & post embeds. This will break existing embeds.",default:!1}]},save:function(){var t=this;axios.post("/api/v1/accounts/update_credentials",{_method:"PATCH","source[privacy]":this.scope,license:this.license,sync_licenses:this.syncLicenses,media_descriptions:this.mediaDescriptions,crawlable:this.crawlable,public_dm:this.publicDm,show_profile_follower_count:this.followerCount,show_profile_following_count:this.followingCount,disable_embeds:this.embedable}).then((function(e){var a=t.profile;a.settings.compose_settings.default_scope=t.scope,a.settings.compose_settings.default_license=t.license,a.settings.compose_settings.media_descriptions=t.mediaDescriptions,a.settings.crawlable=t.crawlable,a.settings.public_dm=t.publicDm,a.settings.show_profile_follower_count=t.followerCount,a.settings.show_profile_following_count=t.followingCount,a.settings.other.disable_embeds=t.embedable,t.$emit("sync-profile",a),t.$emit("changed",!1),t.init(),t.$bvToast.toast("Succesfully updated your profile!",{title:"Success",variant:"success",autoHideDelay:5e3})})).catch((function(t){422==t.response.status?swal("Error","The following error occured when attempting to save your changes: "+t.response.data.error,"error"):swal("Oops!","Something went wrong","error")}))},toggleTab:function(t){this.tabIndex=t;var e=0==t?"/i/settings/preferences":"/i/settings/preferences?tab="+this.tabs[t];history.pushState(null,null,e)}}}},34986:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{config:{type:Object},profile:{type:Object}},data:function(){return{avatarUrl:void 0,avatarChanged:!1,canDeleteAvatar:!1,displayName:void 0,website:void 0,bio:void 0,locked:void 0,changed:!1}},watch:{displayName:function(t){this.hasChanged(),this.displayName=t},website:function(t){this.hasChanged(),this.website=t},bio:function(t){this.hasChanged(),this.bio=t},locked:function(t){this.hasChanged(),this.locked=t}},mounted:function(){this.init()},methods:{init:function(){this.avatarChanged=!1,this.avatarUrl=this.profile.avatar,this.displayName=this.profile.display_name,this.website=this.profile.website,this.bio=this.profile.bio,this.locked=this.profile.locked,this.canDeleteAvatar=!this.profile.avatar.includes("default.png")&&!this.profile.avatar.includes("default.jpg")},hasChanged:function(){var t=!1;this.avatarChanged&&(t=!0),this.displayName!=this.profile.display_name&&(t=!0),this.website!=this.profile.website&&(t=!0),this.bio!=this.profile.bio&&(t=!0),this.locked!=this.profile.locked&&(t=!0),this.$emit("changed",t)},uploadAvatar:function(){event.currentTarget.blur(),this.$refs.avatarInput.click()},cancelAvatarChange:function(){event.currentTarget.blur(),this.$refs.avatarInput.value="",this.avatarChanged=!1,this.avatarUrl=this.profile.avatar,this.hasChanged()},deleteAvatar:function(){var t=this;event.currentTarget.blur(),window.confirm("Are you sure you want to delete your avatar?")&&axios.post("/settings/avatar",{_method:"DELETE"}).then((function(e){t.canDeleteAvatar=!1,t.avatarUrl="/storage/avatars/default.jpg";var a=t.profile;a.avatar=t.avatarUrl,t.$emit("sync-profile",a),t.$refs.avatarInput.value="",t.avatarChanged=!1,t.hasChanged(),t.$bvToast.toast("Succesfully deleted your avatar!",{title:"Success",variant:"success",autoHideDelay:5e3})}))},avatarListener:function(){this.avatarUrl=URL.createObjectURL(event.target.files[0]),this.avatarChanged=!0,this.hasChanged()},rounded:function(t){return t<.1?"1":Math.round(t)},fsize:function(t){return filesize(1024*t,{round:0})},save:function(){var t=this,e=new FormData;this.avatarChanged&&e.append("avatar",this.$refs.avatarInput.files[0]),e.append("_method","PATCH"),e.append("display_name",this.displayName),e.append("locked",this.locked),e.append("website",this.website),e.append("note",this.bio),axios.post("/api/v1/accounts/update_credentials",e).then((function(e){var a=t.profile;a.avatar=e.data.avatar,a.display_name=e.data.display_name,a.locked=e.data.locked,a.website=e.data.website,a.bio=e.data.bio,t.$emit("sync-profile",a),t.$emit("changed",!1),t.avatarChanged=!1,t.init(),t.$bvToast.toast("Succesfully updated your profile!",{title:"Success",variant:"success",autoHideDelay:5e3})})).catch((function(t){422==t.response.status?swal("Error","The following error occured when attempting to save your changes: "+t.response.data.error,"error"):swal("Oops!","Something went wrong","error")}))}}}},50187:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const s={props:{config:{type:Object},profile:{type:Object}},data:function(){return{showPasswordChange:!1,currentPassword:void 0,changed:!1}},watch:{reduceMotion:function(t){this.hasChanged(),this.reduceMotion=t}},mounted:function(){this.init()},methods:{init:function(){this.reduceMotion=this.profile.settings.reduce_motion},hasChanged:function(){var t=!1;this.reduceMotion!=this.profile.settings.reduce_motion&&(t=!0),this.$emit("changed",t)},timeago:function(t){return App.util.format.timeAgo(t)}}}},86807: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,a=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 s=e.Blob,i=URL.createObjectURL,n=URL.revokeObjectURL,o=e.Symbol&&e.Symbol.toStringTag,r=!1,c=!1,d=!!e.ArrayBuffer,u=a&&a.prototype.append&&a.prototype.getBlob;try{r=2===new Blob(["ä"]).size,c=2===new Blob([new Uint8Array([1,2])]).size}catch(t){}function f(t){return t.map((function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var a=new Uint8Array(t.byteLength);a.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=a.buffer}return e}return t}))}function p(t,e){e=e||{};var s=new a;return f(t).forEach((function(t){s.append(t)})),e.type?s.getBlob(e.type):s.getBlob()}function m(t,e){return new s(f(t),e||{})}e.Blob&&(p.prototype=Blob.prototype,m.prototype=Blob.prototype);var h="function"==typeof TextEncoder?TextEncoder.prototype.encode.bind(new TextEncoder):function(t){for(var a=0,s=t.length,i=e.Uint8Array||Array,n=0,o=Math.max(32,s+(s>>1)+7),r=new i(o>>3<<3);a=55296&&l<=56319){if(a=55296&&l<=56319)continue}if(n+4>r.length){o+=8,o=(o*=1+a/t.length*2)>>3<<3;var d=new Uint8Array(o);d.set(r),r=d}if(0!=(4294967168&l)){if(0==(4294965248&l))r[n++]=l>>6&31|192;else if(0==(4294901760&l))r[n++]=l>>12&15|224,r[n++]=l>>6&63|128;else{if(0!=(4292870144&l))continue;r[n++]=l>>18&7|240,r[n++]=l>>12&63|128,r[n++]=l>>6&63|128}r[n++]=63&l|128}else r[n++]=l}return r.slice(0,n)},v="function"==typeof TextDecoder?TextDecoder.prototype.decode.bind(new TextDecoder):function(t){for(var e=t.length,a=[],s=0;s239?4:l>223?3:l>191?2:1;if(s+d<=e)switch(d){case 1:l<128&&(c=l);break;case 2:128==(192&(i=t[s+1]))&&(r=(31&l)<<6|63&i)>127&&(c=r);break;case 3:i=t[s+1],n=t[s+2],128==(192&i)&&128==(192&n)&&(r=(15&l)<<12|(63&i)<<6|63&n)>2047&&(r<55296||r>57343)&&(c=r);break;case 4:i=t[s+1],n=t[s+2],o=t[s+3],128==(192&i)&&128==(192&n)&&128==(192&o)&&(r=(15&l)<<18|(63&i)<<12|(63&n)<<6|63&o)>65535&&r<1114112&&(c=r)}null===c?(c=65533,d=1):c>65535&&(c-=65536,a.push(c>>>10&1023|55296),c=56320|1023&c),a.push(c),s+=d}var u=a.length,f="";for(s=0;s>2,d=(3&i)<<4|o>>4,u=(15&o)<<2|l>>6,f=63&l;r||(f=64,n||(u=64)),a.push(e[c],e[d],e[u],e[f])}return a.join("")}var s=Object.create||function(t){function e(){}return e.prototype=t,new e};if(d)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function c(a,s){s=null==s?{}:s;for(var i=0,n=(a=a||[]).length;i=e.size&&a.close()}))}})}}catch(t){try{new ReadableStream({}),b=function(t){var e=0;t=this;return new ReadableStream({pull:function(a){return t.slice(e,e+524288).arrayBuffer().then((function(s){e+=s.byteLength;var i=new Uint8Array(s);a.enqueue(i),e==t.size&&a.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")}}}}_.arrayBuffer||(_.arrayBuffer=function(){var t=new FileReader;return t.readAsArrayBuffer(this),C(t)}),_.text||(_.text=function(){var t=new FileReader;return t.readAsText(this),C(t)}),_.stream||(_.stream=b)}(),function(t){"use strict";var e,a=t.Uint8Array,s=t.HTMLCanvasElement,i=s&&s.prototype,n=/\s*;\s*base64\s*(?:;|$)/i,o="toDataURL",r=function(t){for(var s,i,n=t.length,o=new a(n/4*3|0),r=0,l=0,c=[0,0],d=0,u=0;n--;)i=t.charCodeAt(r++),255!==(s=e[i-43])&&undefined!==s&&(c[1]=c[0],c[0]=i,u=u<<6|s,4===++d&&(o[l++]=u>>>16,61!==c[1]&&(o[l++]=u>>>8),61!==c[0]&&(o[l++]=u),d=0));return o};a&&(e=new a([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])),!s||i.toBlob&&i.toBlobHD||(i.toBlob||(i.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 s,i=Array.prototype.slice.call(arguments,1),l=this[o].apply(this,i),c=l.indexOf(","),d=l.substring(c+1),u=n.test(l.substring(0,c));Blob.fake?((s=new Blob).encoding=u?"base64":"URI",s.data=d,s.size=d.length):a&&(s=u?new Blob([r(d)],{type:e}):new Blob([decodeURIComponent(d)],{type:e})),t(s)}}),!i.toBlobHD&&i.toDataURLHD?i.toBlobHD=function(){o="toDataURLHD";var t=this.toBlob();return o="toDataURL",t}:i.toBlobHD=i.toBlob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this)},43248:(t,e,a)=>{"use strict";a.r(e);var s=a(70538),i=a(78345),n=a(20629),o=a(83678),r=a(25518),l=a(30306),c=a.n(l),d=a(7398),u=a.n(d),f=a(92987),p=a(37409),m=a.n(p),h=a(74870),v=a.n(h),g=a(82364),b=a(17152),_=(a(40980),a(46737),a(14235)),C=(a(31624),a(73209)),w=a(59502),y=a(77406),x=a(42390),k=a(94421),S=a(72179),A=(a(35495),a(48266)),M=a(88041),P=a(51414),L=a(30469),T=a(52182),R=a(27228),F=a(63836),j=(a(19755),a(19755));function E(t){return E="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},E(t)}a(86807),window.Vue=s.default,window.pftxt=a(47711),window.filesize=a(42317),window._=a(96486),window.Popper=a(28981).default,window.pixelfed=window.pixelfed||{},window.$=a(19755),a(43734),window.axios=a(9669),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",a(90717),window.blurhash=a(43985),j('[data-toggle="tooltip"]').tooltip();var I=document.head.querySelector('meta[name="csrf-token"]');I?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=I.content:console.error("CSRF token not found."),s.default.use(i.default),s.default.use(n.default),s.default.use(v()),s.default.use(m()),s.default.use(r.default),s.default.use(c()),s.default.use(u()),s.default.use(g.default),s.default.use(b.default),s.default.use(f.default,{name:"Timeago",locale:"en"}),s.default.component("navbar",a(65429).default),s.default.component("notification-card",a(91500).default),s.default.component("photo-presenter",a(23251).default),s.default.component("video-presenter",a(53973).default),s.default.component("photo-album-presenter",a(33872).default),s.default.component("video-album-presenter",a(76644).default),s.default.component("mixed-album-presenter",a(57374).default),s.default.component("post-menu",a(4086).default),s.default.component("announcements-card",a(35057).default),s.default.component("story-component",a(69141).default);var $=function(){return Promise.all([a.e(898),a.e(192)]).then(a.bind(a,98489))},U=new i.default({mode:"history",linkActiveClass:"active",routes:[{path:"/i/web/timeline/:scope",name:"timeline",component:$,props:!0},{path:"/i/web/post/:id",name:"post",component:function(){return Promise.all([a.e(898),a.e(512)]).then(a.bind(a,12118))},props:!0},{path:"/i/web/profile/:id",name:"profile",component:function(){return Promise.all([a.e(898),a.e(5)]).then(a.bind(a,70595))},props:!0},{path:"/i/web/discover",component:_.default},{path:"/i/web/settings/*",component:y.default,props:!0},{path:"/i/web/settings",component:y.default},{path:"/i/web/compose",component:function(){return Promise.all([a.e(898),a.e(47)]).then(a.bind(a,55763))}},{path:"/i/web/notifications",component:C.default},{path:"/i/web/direct",component:w.default},{path:"/i/web/kb/:id",name:"kb",component:S.default,props:!0},{path:"/i/web/hashtag/:id",name:"hashtag",component:A.default,props:!0},{path:"/i/web/help",component:k.default},{path:"/i/web/about",component:M.default},{path:"/i/web/contact",component:P.default},{path:"/i/web/language",component:L.default},{path:"/i/web/privacy",component:T.default},{path:"/i/web/terms",component:R.default},{path:"/i/web/whats-new",component:F.default},{path:"/i/web/discover/my-memories",component:function(){return Promise.all([a.e(898),a.e(361)]).then(a.bind(a,7765))}},{path:"/i/web/discover/my-hashtags",component:function(){return Promise.all([a.e(898),a.e(642)]).then(a.bind(a,33354))}},{path:"/i/web/discover/account-insights",component:function(){return Promise.all([a.e(898),a.e(265)]).then(a.bind(a,15021))}},{path:"/i/web/discover/find-friends",component:function(){return Promise.all([a.e(898),a.e(297)]).then(a.bind(a,66897))}},{path:"/i/web/discover/server-timelines",component:function(){return Promise.all([a.e(898),a.e(328)]).then(a.bind(a,13076))}},{path:"/i/web/discover/settings",component:function(){return Promise.all([a.e(898),a.e(420)]).then(a.bind(a,81555))}},{path:"/i/web",component:$,props:!0},{path:"/i/web/*",component:x.default,props:!0}],scrollBehavior:function(t,e,a){return t.hash?{selector:"[id='".concat(t.hash.slice(1),"']")}:{x:0,y:0}}});function D(t,e){var a="pf_m2s."+t,s=window.localStorage;if(s.getItem(a)){var i=s.getItem(a);return"pl"===t?i:["true",!0].includes(i)}return e}var O=new n.default.Store({state:{version:1,hideCounts:D("hc",!1),autoloadComments:D("ac",!0),newReactions:D("nr",!0),fixedHeight:D("fh",!1),profileLayout:D("pl","grid"),relationships:{},emoji:[]},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}},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){s.default.set(t.relationships,e.id,e)}))},updateCustomEmoji:function(t,e){t.emoji=e}}}),z={en:a(54414),ar:a(48509),ca:a(14392),de:a(88133),el:a(70448),es:a(32464),fr:a(86956),he:a(28863),id:a(14706),it:a(71268),nl:a(6048),pt:a(39719),ru:a(11319)},N=document.querySelector("html").getAttribute("lang"),B=new b.default({locale:N,fallbackLocale:"en",messages:z});(0,o.sync)(O,U);new s.default({el:"#content",i18n:B,router:U,store:O});axios.get("/api/v1/custom_emojis").then((function(t){t&&t.data&&t.data.length&&O.commit("updateCustomEmoji",t.data)})),pixelfed.readmore=function(){j(".read-more").each((function(t,e){var a=j(this),s=a.attr("data-readmore");"undefined"!==E(s)&&!1!==s||a.readmore({collapsedHeight:45,heightMargin:48,moreLink:'Show more',lessLink:'Show less'})}))};try{document.createEvent("TouchEvent"),j("body").addClass("touch")}catch(t){}window.App=window.App||{},window.App.util={compose:{post:function(){var t=window.location.pathname;["/","/timeline/public"].includes(t)?j("#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",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"compact";return t<1?0:new Intl.NumberFormat(e,{notation:a,compactDisplay:"short"}).format(t)},timeAgo:function(t){var e=Date.parse(t),a=Math.floor((new Date-e)/1e3),s=Math.floor(a/63072e3);return s<0?"0s":s>=1?s+"y":(s=Math.floor(a/604800))>=1?s+"w":(s=Math.floor(a/86400))>=1?s+"d":(s=Math.floor(a/3600))>=1?s+"h":(s=Math.floor(a/60))>=1?s+"m":Math.floor(a)+"s"},timeAhead:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=Date.parse(t),s=a-Date.parse(new Date),i=Math.floor(s/1e3),n=Math.floor(i/63072e3);return n>=1?n+(e?"y":" years"):(n=Math.floor(i/604800))>=1?n+(e?"w":" weeks"):(n=Math.floor(i/86400))>=1?n+(e?"d":" days"):(n=Math.floor(i/3600))>=1?n+(e?"h":" hours"):(n=Math.floor(i/60))>=1?n+(e?"m":" minutes"):Math.floor(i)+(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:[["1977","filter-1977"],["Aden","filter-aden"],["Amaro","filter-amaro"],["Ashby","filter-ashby"],["Brannan","filter-brannan"],["Brooklyn","filter-brooklyn"],["Charmes","filter-charmes"],["Clarendon","filter-clarendon"],["Crema","filter-crema"],["Dogpatch","filter-dogpatch"],["Earlybird","filter-earlybird"],["Gingham","filter-gingham"],["Ginza","filter-ginza"],["Hefe","filter-hefe"],["Helena","filter-helena"],["Hudson","filter-hudson"],["Inkwell","filter-inkwell"],["Kelvin","filter-kelvin"],["Kuno","filter-juno"],["Lark","filter-lark"],["Lo-Fi","filter-lofi"],["Ludwig","filter-ludwig"],["Maven","filter-maven"],["Mayfair","filter-mayfair"],["Moon","filter-moon"],["Nashville","filter-nashville"],["Perpetua","filter-perpetua"],["Poprocket","filter-poprocket"],["Reyes","filter-reyes"],["Rise","filter-rise"],["Sierra","filter-sierra"],["Skyline","filter-skyline"],["Slumber","filter-slumber"],["Stinson","filter-stinson"],["Sutro","filter-sutro"],["Toaster","filter-toaster"],["Valencia","filter-valencia"],["Vesper","filter-vesper"],["Walden","filter-walden"],["Willow","filter-willow"],["X-Pro II","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=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"full",i=t+"/embed?";return i+=e?"caption=true&":"caption=false&",i+=a?"likes=true&":"likes=false&",'