(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{"2Jpm":function(t,e,s){"use strict";s.r(e);var a={props:["status"],methods:{playOrPause:function(t){var e=t.target;1==e.getAttribute("playing")?(e.removeAttribute("playing"),e.pause()):(e.setAttribute("playing",1),e.play())}}},i=s("KHd+"),o=Object(i.a)(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("div",{staticClass:"embed-responsive embed-responsive-1by1"},[s("video",{staticClass:"video",attrs:{preload:"none",loop:"",poster:t.status.media_attachments[0].preview_url,"data-id":t.status.id},on:{click:function(e){return t.playOrPause(e)}}},[s("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])])]):s("div",{staticClass:"embed-responsive embed-responsive-16by9"},[s("video",{staticClass:"video",attrs:{controls:"",preload:"metadata",loop:"",poster:t.status.media_attachments[0].preview_url,"data-id":t.status.id}},[s("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])}),[],!1,null,null,null);e.default=o.exports},5:function(t,e,s){t.exports=s("CJs/")},"6ZA0":function(t,e,s){"use strict";s.r(e);function a(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,a=new Array(e);s0?((i=e.likes).push.apply(i,a(o.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 i,o=s.data;o.data.length>0?((i=e.shares).push.apply(i,a(o.data)),e.sharesPage++,t.loaded()):t.complete()}))},likeStatus:function(t){var e=this;0!=$("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!=$("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!=$("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!=$("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!=$("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==$("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()},lightbox:function(t){this.lightboxMedia=t,this.$refs.lightboxModal.show()},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 $('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=$(".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!=$("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&&$(".load-more-link").removeClass("d-none"),$(".postCommentsLoader").addClass("d-none"),$(".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)switch(t.response.status){case 401:$(".postCommentsLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("Please login to view.");break;default:$(".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 $(".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){$(".load-more-link").addClass("d-none"),$(".postCommentsLoader").removeClass("d-none");var s=this.pagination.links.next;axios.get(s).then((function(t){var s=t.data.data;$(".postCommentsLoader").addClass("d-none");for(var a=0;a0)return void(t.thread=!0);var e="/api/v2/comments/"+t.account.id+"/status/"+t.id;axios.get(e).then((function(e){t.replies=_.reverse(e.data.data),t.thread=!0}))}},redirect:function(t){window.location.href=t},showEmbedPostModal:function(){var t=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.status.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,t),this.$refs.ctxModal.hide(),this.$refs.embedModal.show()},ctxCopyEmbed:function(){navigator.clipboard.writeText(this.ctxEmbedPayload),this.$refs.embedModal.hide()},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($("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}));s.length>=3&&(t.showProfileMorePosts=!0),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){return 1==t.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},showTaggedPeopleModal:function(){!$("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)}))}}},r=(s("TYSj"),s("kswB"),s("KHd+")),l=Object(r.a)(n,(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?s("div",{staticClass:"postComponent"},["metro"==t.layout?s("div",{staticClass:"container px-0"},[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.statusProfileUrl)}}},[s("img",{staticClass:"cursor-pointer",staticStyle:{"border-radius":"12px"},attrs:{src:t.statusAvatar,width:"24px",height:"24px"}})]),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.statusProfileUrl)}}},[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"}},["text"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("div",{staticClass:"w-100 card-img-top border-bottom rounded-0",staticStyle:{"background-image":"url(/storage/textimg/bg_1.jpg)","background-size":"cover",width:"100%",height:"540px"}},[s("div",{staticClass:"w-100 h-100 d-flex justify-content-center align-items-center"},[s("p",{staticClass:"text-center text-break h3 px-5 font-weight-bold",domProps:{innerHTML:t._s(t.status.content)}})])])]):"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}})],1):"photo:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox}})],1):"video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-album-presenter",{attrs:{status:t.status}})],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}})],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.statusProfileUrl)}}},[s("img",{staticClass:"cursor-pointer",staticStyle:{"border-radius":"12px"},attrs:{src:t.statusAvatar,width:"24px",height:"24px"}})]),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.statusProfileUrl)}}},[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"},["text"!=t.status.pf_type?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.status.account.url,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.statusProfileUrl}},[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"}}),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"}}),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._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 font-weight-bold mb-0"},[s("span",{staticStyle:{cursor:"pointer"},on:{click:t.likesModal}},[s("span",{staticClass:"like-count"},[t._v(t._s(t.status.favourites_count||0))]),t._v(" likes\n ")]),t._v(" "),"public"==t.status.visibility?s("span",{staticClass:"float-right",staticStyle:{cursor:"pointer"},on:{click:t.sharesModal}},[s("span",{staticClass:"share-count pl-4"},[t._v(t._s(t.status.reblogs_count||0))]),t._v(" shares\n ")]):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._s(t.timestampFormat())+"\n ")]),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 ")]):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.statusUsername}},[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(" "),"moment"==t.layout?s("div",{staticClass:"momentui"},[s("div",{staticClass:"bg-dark mt-md-n4"},[s("div",{staticClass:"container",staticStyle:{"max-width":"700px"}},[s("div",{staticClass:"postPresenterContainer d-none d-flex justify-content-center align-items-center bg-dark"},["photo"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox}})],1):"video"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-presenter",{attrs:{status:t.status}})],1):"photo:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("photo-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox}})],1):"video:album"===t.status.pf_type?s("div",{staticClass:"w-100"},[s("video-album-presenter",{attrs:{status:t.status}})],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}})],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:"bg-white"},[s("div",{staticClass:"container"},[s("div",{staticClass:"row pb-5"},[s("div",{staticClass:"col-12 col-md-8 py-4"},[s("div",{staticClass:"reactions d-flex align-items-center"},[s("div",{staticClass:"text-center mr-5"},[s("div",{class:[t.reactions.liked?"fas fa-heart text-danger m-0 cursor-pointer":"far fa-heart m-0 like-btn cursor-pointer"],staticStyle:{"font-size":"1.575rem"},attrs:{title:"Like"},on:{click:t.likeStatus}}),t._v(" "),s("div",{staticClass:"like-count font-weight-bold mt-2 rounded border",staticStyle:{cursor:"pointer"},on:{click:t.likesModal}},[t._v(t._s(t.status.favourites_count||0))])]),t._v(" "),s("div",{staticClass:"text-center"},["public"==t.status.visibility?s("div",{class:[t.reactions.shared?"h3 far fa-share-square m-0 text-primary cursor-pointer":"h3 far fa-share-square m-0 share-btn cursor-pointer"],attrs:{title:"Share"},on:{click:t.shareStatus}}):t._e(),t._v(" "),"public"==t.status.visibility?s("div",{staticClass:"share-count font-weight-bold mt-2 rounded border",staticStyle:{cursor:"pointer"},on:{click:t.sharesModal}},[t._v(t._s(t.status.reblogs_count||0))]):t._e()])]),t._v(" "),t.status.length&&t.status.content_text.includes("#")||t.status.content_text.includes("https://")||t.status.content_text.includes("@")||t.status.content_text.length>45?s("div",{staticClass:"media align-items-center mt-3"},[s("div",{staticClass:"media-body"},[s("p",{staticClass:"lead mr-2",domProps:{innerHTML:t._s(t.status.content)}}),t._v(" "),s("p",{staticClass:"lead mb-0"},[t._v("\n by "),s("a",{attrs:{href:t.statusProfileUrl}},[t._v(t._s(t.statusUsername))]),t._v(" "),t.relationship&&t.profile&&t.user&&!t.relationship.following&&t.profile.id!=t.user.id?s("span",[s("span",{staticClass:"px-1 text-lighter"},[t._v("•")]),t._v(" "),s("a",{staticClass:"font-weight-bold small",attrs:{href:"#"}},[t._v("Follow")])]):t._e()])]),t._v(" "),s("a",{attrs:{href:t.statusProfileUrl,title:t.statusUsername}},[s("img",{staticClass:"rounded-circle border mr-3",attrs:{src:t.statusAvatar,alt:"avatar",width:"72px",height:"72px"}})])]):s("div",{staticClass:"media align-items-center mt-3"},[s("div",{staticClass:"media-body"},[s("h2",{staticClass:"font-weight-bold mr-2"},[t._v("\n "+t._s(t.status.content_text.length?t.status.content_text:"Untitled Post")+"\n ")]),t._v(" "),s("p",{staticClass:"lead mb-0"},[t._v("\n by "),s("a",{attrs:{href:t.statusProfileUrl}},[t._v(t._s(t.statusUsername))])])]),t._v(" "),s("a",{attrs:{href:t.statusProfileUrl,title:t.statusUsername}},[s("img",{staticClass:"rounded-circle border mr-3",attrs:{src:t.statusAvatar,alt:"avatar",width:"72px",height:"72px"}})])]),t._v(" "),s("hr"),t._v(" "),s("div",[s("p",{staticClass:"lead"},[t.status.place?s("span",{staticClass:"text-truncate"},[s("i",{staticClass:"fas fa-map-marker-alt text-lighter mr-3"}),t._v(" "+t._s(t.status.place.name)+", "+t._s(t.status.place.country)+"\n ")]):t._e(),t._v(" "),t._m(2)]),t._v(" "),t.status.tags?s("div",{staticClass:"pt-4"},[s("p",{staticClass:"lead"},t._l(t.status.tags,(function(e,a){return s("a",{staticClass:"btn btn-outline-dark mr-1 mb-1",attrs:{href:e.url+"?src=mp"}},[t._v(t._s(e.name))])})),0)]):t._e()])]),t._v(" "),s("div",{staticClass:"col-12 col-md-4 pt-4 pl-md-3"},[s("p",{staticClass:"lead font-weight-bold"},[t._v("Comments")]),t._v(" "),0!=t.user?s("div",{staticClass:"moment-comments"},[s("div",{staticClass:"form-group"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.replyText,expression:"replyText"}],staticClass:"form-control",attrs:{rows:"3",placeholder:"Add a comment ..."},domProps:{value:t.replyText},on:{input:function(e){e.target.composing||(t.replyText=e.target.value)}}}),t._v(" "),s("p",{staticClass:"d-flex justify-content-between align-items-center mt-3"},[s("span",{staticClass:"small text-lighter font-weight-bold"},[t._v("\n "+t._s(t.replyText.length)+"/"+t._s(t.config.uploader.max_caption_length)+"\n ")]),t._v(" "),t.replyText.length>2?s("span",[s("div",{staticClass:"custom-control custom-switch"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.replySensitive,expression:"replySensitive"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"sensitiveReply"},domProps:{checked:Array.isArray(t.replySensitive)?t._i(t.replySensitive,null)>-1:t.replySensitive},on:{click:function(e){t.replySensitive},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",{staticClass:"custom-control-label small font-weight-bold text-muted",staticStyle:{"padding-top":"3px"},attrs:{for:"sensitiveReply"}},[t._v("Add Content Warning")])])]):t._e(),t._v(" "),t.replyText.length>2?s("button",{staticClass:"btn btn-sm font-weight-bold btn-outline-primary py-1",on:{click:t.postReply}},[t._v("Post")]):t._e()])])]):t._e(),t._v(" "),s("div",{staticClass:"comment mt-4",staticStyle:{"max-height":"500px","overflow-y":"auto"}},t._l(t.results,(function(e,a){return s("div",{key:"tl"+e.id+"_"+a,staticClass:"media mb-3 mt-2"},[s("a",{attrs:{href:e.account.url,title:e.account.username}},[s("img",{staticClass:"rounded-circle border mr-3",attrs:{src:e.account.avatar,alt:"avatar",width:"32px",height:"32px"}})]),t._v(" "),s("div",{staticClass:"media-body"},[s("div",{staticClass:"d-flex justify-content-between"},[s("span",[s("a",{staticClass:"font-weight-bold text-dark",attrs:{href:e.account.url}},[t._v(t._s(e.account.username))])]),t._v(" "),s("span",{staticClass:"text-lighter"},[e.favourited?s("span",{staticClass:"cursor-pointer mr-2",on:{click:function(s){return t.likeReply(e)}}},[s("i",{staticClass:"fas fa-heart text-danger"})]):s("span",{staticClass:"cursor-pointer mr-2",on:{click:function(s){return t.likeReply(e)}}},[s("i",{staticClass:"far fa-heart"})]),t._v(" "),s("span",{},[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(" "),1==e.sensitive?s("div",[s("span",{staticClass:"py-3"},[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:"badge badge-primary cursor-pointer ml-2 py-1",on:{click:function(t){e.sensitive=!1}}},[t._v("Show")])])])]):s("div",{staticClass:"read-more",staticStyle:{"overflow-y":"hidden"}},[s("p",{staticClass:"mb-0",domProps:{innerHTML:t._s(e.content)}},[t._v("loading ...")])]),t._v(" "),s("p",[s("span",{staticClass:"small"},[s("a",{staticClass:"text-lighter text-decoration-none",attrs:{href:e.url}},[t._v(t._s(t.timeAgo(e.created_at)))])])])])])})),0)])])])])]):t._e()]):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"}})]),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._s(e.username)+"\n ")])]),t._v(" "),e.local?s("p",{staticClass:"text-muted mb-0 text-truncate",staticStyle:{"font-size":"14px"}},[t._v("\n "+t._s(e.display_name)+"\n ")]):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"}})]),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._s(e.username)+"\n ")])]),t._v(" "),s("p",{staticClass:"text-muted mb-0",staticStyle:{"font-size":"14px"}},[t._v("\n "+t._s(e.display_name)+"\n ")])]),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:"lightboxModal",attrs:{id:"lightbox","hide-header":!0,"hide-footer":!0,centered:"",size:"lg","body-class":"p-0"}},[t.lightboxMedia?s("div",[s("img",{class:t.lightboxMedia.filter_class+" img-fluid",staticStyle:{"min-height":"100%","min-width":"100%"},attrs:{src:t.lightboxMedia.url}})]):t._e()]),t._v(" "),s("b-modal",{ref:"embedModal",attrs:{id:"ctx-embed-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"md","body-class":"p-2 rounded"}},[s("div",[s("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 Show Caption\n ")])]),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 Show Likes\n ")])]),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 Compact Mode\n ")])])]),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:"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"}})]),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._s(e.username)+"\n ")]),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.status&&1==t.status.local?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.showEmbedPostModal()}}},[t._v("Embed")]):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("Moderation Tools")]):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 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 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 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 text-danger",on:{click:function(e){return t.deletePost(t.ctxMenuStatus)}}},[t._v("Delete")]):t._e(),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxMenu()}}},[t._v("Cancel")])])]),t._v(" "),s("b-modal",{ref:"ctxModModal",attrs:{id:"ctx-mod-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[s("div",{staticClass:"list-group text-center"},[s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:t.toggleCommentVisibility}},[t._v(t._s(t.showComments?"Disable":"Enable")+" Comments")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost("unlist")}}},[t._v("Unlist from Timelines")]),t._v(" "),t.status.sensitive?s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost("remcw")}}},[t._v("Remove Content Warning")]):s("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost("addcw")}}},[t._v("Add Content Warning")]),t._v(" "),s("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),s("b-modal",{ref:"replyModal",attrs:{id:"ctx-reply-modal","hide-footer":"",centered:"",rounded:"","title-html":t.replyingToUsername?"Reply to "+t.replyingToUsername+"":"","title-tag":"p","title-class":"font-weight-bold text-muted",size:"md","body-class":"p-2 rounded"}},[s("div",[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.replyText,expression:"replyText"}],staticClass:"form-control",staticStyle:{border:"none","font-size":"18px",resize:"none","white-space":"pre-wrap",outline:"none"},attrs:{rows:"4",placeholder:"Reply here ..."},domProps:{value:t.replyText},on:{input:function(e){e.target.composing||(t.replyText=e.target.value)}}}),t._v(" "),s("div",{staticClass:"border-top border-bottom my-2"},[s("ul",{staticClass:"nav align-items-center emoji-reactions",staticStyle:{"overflow-x":"scroll","flex-wrap":"unset"}},t._l(t.emoji,(function(e){return s("li",{staticClass:"nav-item",on:{click:function(e){return t.emojiReaction(t.status)}}},[t._v(t._s(e))])})),0)]),t._v(" "),s("div",{staticClass:"d-flex justify-content-between align-items-center"},[s("div",[s("span",{staticClass:"pl-2 small text-muted font-weight-bold text-monospace"},[s("span",{class:[t.replyText.length>t.config.uploader.max_caption_length?"text-danger":"text-dark"]},[t._v(t._s(t.replyText.length>t.config.uploader.max_caption_length?t.config.uploader.max_caption_length-t.replyText.length:t.replyText.length))]),t._v("/"+t._s(t.config.uploader.max_caption_length)+"\n ")])]),t._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._s(1==t.replySending?"POSTING":"POST")+"\n ")])])])])])],1)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"postCommentsLoader text-center py-2"},[e("div",{staticClass:"spinner-border",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[this._v("Loading...")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"spinner-border",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[this._v("Loading...")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"float-right"},[e("i",{staticClass:"far fa-clock text-lighter mr-3"}),this._v(" "+this._s(this.timeAgo(this.status.created_at))+" ago\n ")])}],!1,null,"d64cd538",null);e.default=l.exports},"6a1q":function(t,e,s){var a=s("gDWW");"string"==typeof a&&(a=[[t.i,a,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};s("aET+")(a,i);a.locals&&(t.exports=a.locals)},"9tPo":function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var s=e.protocol+"//"+e.host,a=s+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var i,o=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?t:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?s+o:a+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")}))}},"9wGH":function(t,e,s){"use strict";s.r(e);var a={props:["status"]},i=s("KHd+"),o=Object(i.a)(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:"",loop:"",alt:t.description,width:"100%",height:"100%",poster:t.preview_url},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)]):s("div",[s("b-carousel",{staticStyle:{"text-shadow":"1px 1px 2px #333","background-color":"#000"},attrs:{id:t.status.id+"-carousel",controls:"","img-blank":"",background:"#ffffff",interval:0}},t._l(t.status.media_attachments,(function(t,e){return s("b-carousel-slide",{key:t.id+"-media"},[s("video",{staticClass:"embed-responsive-item",attrs:{slot:"img",preload:"none",controls:"",loop:"",alt:t.description,width:"100%",height:"100%",poster:t.preview_url},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)}),[],!1,null,null,null);e.default=o.exports},B6o4:function(t,e,s){"use strict";s("CcmX")},"CJs/":function(t,e,s){Vue.component("photo-presenter",s("d+I4").default),Vue.component("video-presenter",s("2Jpm").default),Vue.component("photo-album-presenter",s("Mrqh").default),Vue.component("video-album-presenter",s("9wGH").default),Vue.component("mixed-album-presenter",s("exej").default),Vue.component("post-menu",s("yric").default),Vue.component("post-component",s("6ZA0").default)},CcmX:function(t,e,s){var a=s("YG3N");"string"==typeof a&&(a=[[t.i,a,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};s("aET+")(a,i);a.locals&&(t.exports=a.locals)},Dtmg:function(t,e,s){"use strict";s("6a1q")},I1BE:function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var s=function(t,e){var s=t[1]||"",a=t[3];if(!a)return s;if(e&&"function"==typeof btoa){var i=(n=a,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),o=a.sources.map((function(t){return"/*# sourceURL="+a.sourceRoot+t+" */"}));return[s].concat(o).concat([i]).join("\n")}var n;return[s].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+s+"}":s})).join("")},e.i=function(t,s){"string"==typeof t&&(t=[[null,t,""]]);for(var a={},i=0;i