pixelfed/public/js/rempos.js

1 line
147 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

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

(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:()=>d});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);s<e;s++)a[s]=t[s];return a}pixelfed.postComponent={};const d={props:["status-id","status-username","status-template","status-url","status-profile-url","status-avatar","status-profile-id","profile-layout"],components:{StatusCard:a.default,CommentCard:i.default,CommentFeed:n.default,PollCard:o.default},data:function(){return{config:window.App.config,status:!1,media:{},user:!1,profile:!1,reactions:{liked:!1,shared:!1},likes:[],likesPage:1,shares:[],sharesPage:1,replyText:"",replyStatus:{},replySensitive:!1,relationship:{},results:[],pagination:{},min_id:0,max_id:0,reply_to_profile_id:0,thread:!1,showComments:!1,warning:!1,loaded:!1,loading:null,replyingToId:this.statusId,replyingToUsername:this.statusUsername,replyToIndex:0,replySending:!1,emoji:window.App.util.emoji,showReadMore:!0,showCaption:!0,layout:this.profileLayout,showProfileMorePosts:!1,profileMorePosts:[],reactionBarLoading:!0,profileUrl:null,currentLayout:"status"}},mounted:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then((function(e){t.profile=e.data})),this.fetchRelationships(),"false"==localStorage.getItem("pf_metro_ui.exp.rm")?this.showReadMore=!1:this.showReadMore=!0},updated:function(){r(".carousel").carousel(),r('[data-toggle="tooltip"]').tooltip(),1==this.showReadMore&&window.pixelfed.readmore(),document.querySelectorAll(".hashtag").forEach((function(t,e){t.href=App.util.format.rewriteLinks(t)}))},methods:{reportUrl:function(){return"/i/report?type=post&id="+this.status.id},editUrl:function(){return this.status.url+"/edit"},timestampFormat:function(){var t=new Date(this.status.created_at);return t.toDateString()+" · "+t.toLocaleTimeString()},fetchData:function(){var t=this,e=this;axios.get("/api/v2/profile/"+this.statusUsername+"/status/"+this.statusId).then((function(s){e.status=s.data.status,e.media=e.status.media_attachments,e.likesPage=2,e.sharesPage=2,e.showCaption=!s.data.status.sensitive,0==e.status.comments_disabled&&(e.showComments=!0,t.fetchComments()),e.profileUrl="/i/web/profile/_/"+s.data.status.account.id,t.loaded=!0,setTimeout((function(){e.fetchState(),document.querySelectorAll(".status-comment .postCommentsContainer .comment-body a").forEach((function(t,e){t.href=App.util.format.rewriteLinks(t)}))}),500)})).catch((function(t){swal("Oops!","An error occured, please try refreshing the page.","error")}))},fetchState:function(){var t=this;axios.get("/api/v2/profile/"+this.statusUsername+"/status/"+this.statusId+"/state").then((function(e){t.user=e.data.user,window._sharedData.curUser=t.user,window.App.util.navatar(),t.likes=e.data.likes,t.shares=e.data.shares,t.reactions=e.data.reactions,t.reactionBarLoading=!1}))},likesModal:function(){var t=this;0!=r("body").hasClass("loggedIn")?this.likes.length?this.$refs.likesModal.show():axios.get("/api/v2/likes/profile/"+this.statusUsername+"/status/"+this.statusId).then((function(e){t.likes=e.data.data,t.$refs.likesModal.show()})):window.location.href="/login?next="+encodeURIComponent("/p/"+this.status.shortcode)},sharesModal:function(){var t=this;0!=this.status.reblogs_count&&0!=r("body").hasClass("loggedIn")?this.shares.length?this.$refs.sharesModal.show():axios.get("/api/v2/shares/profile/"+this.statusUsername+"/status/"+this.statusId).then((function(e){t.shares=e.data.data,t.$refs.sharesModal.show()})):window.location.href="/login?next="+encodeURIComponent("/p/"+this.status.shortcode)},infiniteLikesHandler:function(t){var e=this,s="/api/v2/likes/profile/"+this.statusUsername+"/status/"+this.statusId;axios.get(s,{params:{page:this.likesPage}}).then((function(s){var a,i=s.data;i.data.length>0?((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;a<s.length;a++)e.results.unshift(s[a]);e.pagination=t.data.meta.pagination,r(".load-more-link").removeClass("d-none")}))}else r(".load-more-link").addClass("d-none")},likeReply:function(t,e){0!=r("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")})):swal("Login","Please login to perform this action.","info")},truncate:function(t,e){return _.truncate(t,{length:e})},timeAgo:function(t){return App.util.format.timeAgo(t)},emojiReaction:function(){var t=event.target.innerText;0==this.replyText.length?(this.reply_to_profile_id=this.status.account.id,this.replyText=t+" ",r('textarea[name="comment"]').focus()):(this.reply_to_profile_id=this.status.account.id,this.replyText+=t+" ",r('textarea[name="comment"]').focus())},toggleCommentVisibility:function(){if(0!=this.ownerOrAdmin()){var t=this.status.comments_disabled,e=this;1==t?axios.post("/i/visibility",{item:e.status.id,disableComments:!1}).then((function(t){e.status.comments_disabled=!1,e.$refs.ctxModal.hide(),window.location.reload()})).catch((function(t){})):axios.post("/i/visibility",{item:e.status.id,disableComments:!0}).then((function(t){e.status.comments_disabled=!0,e.showComments=!1,e.$refs.ctxModal.hide()})).catch((function(t){}))}},fetchRelationships:function(){var t=this;0!=document.querySelectorAll("body")[0].classList.contains("loggedIn")?axios.get("/api/pixelfed/v1/accounts/relationships",{params:{"id[]":this.statusProfileId}}).then((function(e){if(null!=e.data[0])return t.relationship=e.data[0],1==e.data[0].blocking?(t.loaded=!0,void(t.warning=!0)):void t.fetchData();t.fetchData()})):this.fetchData()},visibilityModal:function(){switch(this.status.visibility){case"public":swal("Public Post","This post is visible to everyone.","info");break;case"unlisted":swal("Unlisted Post","This post is visible on profiles and with a direct links. It is not displayed on timelines.","info");break;case"private":swal("Private Post","This post is only visible to followers.","info")}},toggleReplies:function(t){if(t.thread)t.thread=!1;else{if(t.replies.length>0)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<s.length;a++)t.replies.unshift(s[a]);t.pagination=e.data.meta.pagination,i(".load-more-link").removeClass("d-none")}))}else i(".load-more-link").addClass("d-none")},likeReply:function(t,e){0!=i("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")})):swal("Login","Please login to perform this action.","info")},ctxMenu:function(t){this.ctxMenuStatus=t,this.$refs.cMenu.open()},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}}}},33694:(t,e,s)=>{"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<e;s++)a[s]=t[s];return a}const l={props:{status:{type:Object},currentProfile:{type:Object},showReplyForm:{type:Boolean,default:!0}},components:{"context-menu":a.default,"status-card":i.default},data:function(){return{loaded:!1,profile:void 0,feed:[],pagination:void 0,ctxStatus:!1,composeText:null,visibility:"public",sensitive:!1,postingComment:!1,loadingMoreComments:!1,page:2}},beforeMount:function(){this.fetchProfile()},mounted:function(){},methods:{fetchProfile:function(){var t=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then((function(e){t.profile=e.data})),this.fetchComments()},fetchComments:function(){var t=this,e="/api/v2/comments/"+this.status.account.id+"/status/"+this.status.id;axios.get(e).then((function(e){t.feed=e.data.data,t.pagination=e.data.meta.pagination,t.loaded=!0})).catch((function(e){if(t.loaded=!0,e.response)if(401===e.response.status)o(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("Please login to view.");else o(".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;}))},trimCaption:function(t){return t},profileUrl:function(t){return t.url},statusUrl:function(t){return t.url},replyFocus:function(){},likeReply:function(){},timeAgo:function(t){return App.util.format.timeAgo(t)},statusDeleted:function(){},ctxMenu:function(t){var e=this;this.ctxStatus=this.feed[t],setTimeout((function(){e.$refs.cMenu.open()}),300)},submitComment:function(){this.postingComment=!0;var t={item:this.status.id,comment:this.composeText,sensitive:this.sensitive},e=this;axios.post("/i/comment",t).then((function(t){e.composeText=null;var s=t.data.entity;e.postingComment=!1,e.feed.unshift(s),e.pagination.total++})).catch((function(t){swal("Oops!","An error occured, please try again later.","error"),e.postingComment=!1}))},formatCount:function(t){return App.util.format.count(t)},loadMoreComments:function(){var t=this;this.loadingMoreComments=!0;var e="/api/v2/comments/"+this.status.account.id+"/status/"+this.status.id;axios.get(e,{params:{page:this.page}}).then((function(e){var s;(s=t.feed).push.apply(s,n(e.data.data)),t.pagination=e.data.meta.pagination,t.loadingMoreComments=!1,t.page++})).catch((function(e){t.loadingMoreComments=!1}))}}}},53999:(t,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)<new Date,t.status.poll.expired&&(t.tab=t.status.poll.voted?"voted":"results")})):(this.status.poll.voted&&(this.tab="voted"),this.status.poll.expired=new Date(this.status.poll.expires_at)<new Date,this.status.poll.expired&&(this.tab=this.status.poll.voted?"voted":"results"),this.status.poll.own_votes.length&&(this.selectedIndex=this.status.poll.own_votes[0])),this.authenticated=i("body").hasClass("loggedIn")},methods:{selectOption:function(t){event.currentTarget.blur(),this.selectedIndex=t},submitVote:function(){var t=this;axios.post("/api/v1/polls/"+this.status.poll.id+"/votes",{choices:[this.selectedIndex]}).then((function(e){console.log(e.data),t.status.poll=e.data})),this.tab="voted"},viewResultsTab:function(){this.tab="results"},viewPollTab:function(){this.tab=null!=this.selectedIndex?"voted":"vote"},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)},shortTimestampAhead:function(t){return window.App.util.format.timeAhead(t)},refreshResults:function(){var t=this;this.activeRefreshTimeout=!0,this.refreshingResults=!0,axios.get("/api/v1/polls/"+this.status.poll.id).then((function(e){t.status.poll=e.data,t.status.poll.voted&&(t.selectedIndex=t.status.poll.own_votes[0],t.tab="voted",t.setActiveRefreshTimeout(),t.refreshingResults=!1)})).catch((function(e){swal("Oops!","An error occured while fetching the latest poll results. Please try again later.","error"),t.setActiveRefreshTimeout(),t.refreshingResults=!1}))},setActiveRefreshTimeout:function(){var t=this;this.refreshTimeout=setTimeout((function(){t.activeRefreshTimeout=!1}),3e4)},statusDeleted:function(t){this.$emit("status-delete",t)},ctxMenu:function(){this.$refs.contextMenu.open()},likeStatus:function(){this.$emit("likeStatus",this.status)},calculatePercentage:function(t){var e=this.status;return 0==e.poll.votes_count?0:Math.round(t.votes_count/e.poll.votes_count*100)}}}},86637:(t,e,s)=>{"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='<img draggable="false" class="emojione custom-emoji" alt="'.concat(e.shortcode,'" title="').concat(e.shortcode,'" src="').concat(e.url,'" data-original="').concat(e.url,'" data-static="').concat(e.static_url,'" width="18" height="18" onerror="this.onerror=null;this.src=\'/storage/emoji/missing.png\';" />');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+'<span class="text-lighter font-weight-bold">@'+i+"</span>";case"from":return a+'<span class="text-lighter font-weight-bold"> <span class="font-weight-normal">from</span> '+i+"</span>";case"custom":return a+'<span class="text-lighter font-weight-bold"> '+s+" "+i+"</span>"}},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:()=>i});var a=s(99347);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){(0,a.default)({el:t.target,gallery:"#carousel-"+this.status.id,position:this.$refs.carousel.currentPage})},altText:function(t){var e=t.description;return e||"Photo was not tagged with any alt text."},keypressNavigation:function(t){var e=this.$refs.carousel;if("37"==t.keyCode){t.preventDefault();var 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:()=>i});var a=s(99347);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){(0,a.default)({el:t.target})},width:function(){if(this.status.media_attachments[0].meta&&this.status.media_attachments[0].meta.original&&this.status.media_attachments[0].meta.original.width)return this.status.media_attachments[0].meta.original.width},height:function(){if(this.status.media_attachments[0].meta&&this.status.media_attachments[0].meta.original&&this.status.media_attachments[0].meta.original.height)return this.status.media_attachments[0].meta.original.height}}}},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)},47036:(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},89979:(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-2450539c],.reactions[data-v-2450539c],.status-comments[data-v-2450539c]{background:#fff}@media(min-width:720px){.postPresenterContainer[data-v-2450539c]{min-height:600px}}[data-v-2450539c]::-webkit-scrollbar{background:transparent;width:0}.reply-btn[data-v-2450539c]{border-radius:0 3px 3px 0;bottom:12px;position:absolute;right:20px;text-align:center;width:60px}.text-lighter[data-v-2450539c]{color:#b8c2cc!important}.text-break[data-v-2450539c]{overflow-wrap:break-word}.comments p[data-v-2450539c]{margin-bottom:0}.comment-reaction[data-v-2450539c]{font-size:80%}.show-reply-bar[data-v-2450539c]{border-bottom:1px solid #999;display:inline-block;height:0;margin-right:16px;vertical-align:middle;width:24px}.comment-thread[data-v-2450539c]{margin-top:1rem}.emoji-reactions .nav-item[data-v-2450539c]{cursor:pointer;font-size:1.2rem;padding:9px}.emoji-reactions[data-v-2450539c]::-webkit-scrollbar{background:transparent;height:0;width:0}@media (min-width:1200px){.container[data-v-2450539c]{max-width:1100px}}",""]);const o=i},97846:(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},9490:(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-301c4371]{border-top-left-radius:0!important;border-top-right-radius:0!important}.content-label-wrapper[data-v-301c4371]{position:relative}.content-label[data-v-301c4371]{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}.album-wrapper[data-v-301c4371]{position:relative}",""]);const o=i},55106:(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-40ab6d65]{border-top-left-radius:0!important;border-top-right-radius:0!important}.content-label-wrapper[data-v-40ab6d65]{position:relative}.content-label[data-v-40ab6d65]{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},176:(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-333faeee]{position:relative}.content-label[data-v-333faeee]{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},12009:(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},77543:(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},95833:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(47036),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},5138:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(89979),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},11675:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(97846),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},54596:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(9490),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},52529:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(55106),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},82390:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(176),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},82897:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(12009),n={insert:"head",singleton:!1};i()(o.default,n);const r=o.default.locals||{}},49852:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});var a=s(93379),i=s.n(a),o=s(77543),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(82398);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(58010),i=s(63203),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);s(8854);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,"2450539c",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(43018);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(81930);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(46594),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(66117);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(84346),i=s(10878),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);s(18932);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,"301c4371",null).exports},23251:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var a=s(85827),i=s(29911),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);s(97382);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,"40ab6d65",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(54201),i=s(44976),o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);s.d(e,o);s(77732);const n=(0,s(51900).default)(i.default,a.render,a.staticRenderFns,!1,null,"333faeee",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},82398:(t,e,s)=>{"use strict";s.r(e);var a=s(95833),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},8854:(t,e,s)=>{"use strict";s.r(e);var a=s(5138),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},43018:(t,e,s)=>{"use strict";s.r(e);var a=s(11675),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},18932:(t,e,s)=>{"use strict";s.r(e);var a=s(54596),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},97382:(t,e,s)=>{"use strict";s.r(e);var a=s(52529),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},77732:(t,e,s)=>{"use strict";s.r(e);var a=s(82390),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},81930:(t,e,s)=>{"use strict";s.r(e);var a=s(82897),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},66117:(t,e,s)=>{"use strict";s.r(e);var a=s(49852),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)},58010:(t,e,s)=>{"use strict";s.r(e);var a=s(34172),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)},46594:(t,e,s)=>{"use strict";s.r(e);var a=s(56081),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)},84346:(t,e,s)=>{"use strict";s.r(e);var a=s(32353),i={};for(const t in a)"default"!==t&&(i[t]=()=>a[t]);s.d(e,i)},85827:(t,e,s)=>{"use strict";s.r(e);var a=s(59500),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)},54201:(t,e,s)=>{"use strict";s.r(e);var a=s(44892),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.")])}]},34172:(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 <span class=text-dark>"+t.replyingToUsername+"</span>":"","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 <span class=text-dark>"+t.status.account.username+"</span>":"","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=[]},56081:(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=[]},32353:(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 content-label-text"},[t._v("\n\t\t\t"+t._s(t.status.spoiler_text?t.status.spoiler_text:"This album may contain sensitive content.")+"\n\t\t")]),t._v(" "),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 album-wrapper"},[s("carousel",{ref:"carousel",staticClass:"p-0 m-0",attrs:{centerMode:!0,loop:!1,"per-page":1,paginationPosition:"bottom-overlay",paginationActiveColor:"#3897f0",paginationColor:"#dbdbdb",id:"carousel-"+t.status.id}},t._l(t.status.media_attachments,(function(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","data-bp":e.url,onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})])})),1),t._v(" "),s("div",{staticClass:"album-overlay"},[!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(" "),s("p",{staticStyle:{"margin-top":"0",padding:"10px",color:"#fff","font-size":"10px","text-align":"right",position:"absolute",left:"0",top:"0","border-bottom-right-radius":"5px",cursor:"pointer",background:"linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0.5))"},on:{click:function(e){return e.preventDefault(),t.toggleLightbox.apply(null,arguments)}}},[s("i",{staticClass:"fas fa-expand fa-lg"})]),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)},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"})])}]},59500:(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 content-label-text"},[t._v("\n\t\t\t"+t._s(t.status.spoiler_text?t.status.spoiler_text:"This post may contain sensitive content.")+"\n\t\t")]),t._v(" "),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=[]},44892:(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 content-label-text"},[t._v("\n\t\t\t"+t._s(t.status.spoiler_text?t.status.spoiler_text:"This post may contain sensitive content.")+"\n\t\t")]),t._v(" "),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()}]);