pixelfed/public/js/status.js
2019-04-02 23:32:19 -06:00

1 line
52 KiB
JavaScript
Vendored
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.

!function(t){var e={};function s(a){if(e[a])return e[a].exports;var i=e[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,s),i.l=!0,i.exports}s.m=t,s.c=e,s.d=function(t,e,a){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(s.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)s.d(a,i,function(e){return t[e]}.bind(null,i));return a},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="/",s(s.s=5)}({"2Jpm":function(t,e,s){"use strict";s.r(e);var a={props:["status"]},i=s("KHd+"),n=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-16by9"},[s("video",{staticClass:"video",attrs:{preload:"none",controls:"",loop:""}},[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:{preload:"none",controls:"",loop:""}},[s("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])},[],!1,null,null,null);e.default=n.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)){for(var e=0,s=new Array(t.length);e<t.length;e++)s[e]=t[e];return s}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}pixelfed.postComponent={};var i={props:["status-id","status-username","status-template","status-url","status-profile-url","status-avatar"],data:function(){return{status:!1,media:{},user:!1,reactions:{liked:!1,shared:!1},likes:[],likesPage:1,shares:[],sharesPage:1,lightboxMedia:!1,replyText:"",results:[],pagination:{},min_id:0,max_id:0,reply_to_profile_id:0,thread:!1,showComments:!1}},mounted:function(){this.fetchData(),this.authCheck();var t=$('meta[name="csrf-token"]').attr("content");$('input[name="_token"]').each(function(e,s){$(s).val(t)})},updated:function(){$(".carousel").carousel(),pixelfed.readmore(),this.reactions&&(1==this.reactions.bookmarked&&$(".postComponent .far.fa-bookmark").removeClass("far").addClass("fas text-warning"),1==this.reactions.shared&&$(".postComponent .far.fa-share-square").addClass("text-primary"),1==this.reactions.liked&&$(".postComponent .far.fa-heart").removeClass("far text-dark").addClass("fas text-danger"))},methods:{authCheck:function(){1==$("body").hasClass("loggedIn")&&($(".comment-form-guest").addClass("d-none"),$(".comment-form").removeClass("d-none"))},showMuteBlock:function(){this.status.account.id==this.user.id?$(".post-actions .menu-author").removeClass("d-none"):$(".post-actions .menu-user").removeClass("d-none")},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.$loading.show({opacity:0,"background-color":"#f5f8fa"});axios.get("/api/v2/profile/"+this.statusUsername+"/status/"+this.statusId).then(function(s){var a=t;a.status=s.data.status,a.user=s.data.user,a.media=a.status.media_attachments,a.reactions=s.data.reactions,a.likes=s.data.likes,a.shares=s.data.shares,a.likesPage=2,a.sharesPage=2,t.showMuteBlock(),e.hide(),pixelfed.readmore(),0==a.status.comments_disabled&&(a.showComments=!0,t.fetchComments()),$(".postComponent").removeClass("d-none"),$(".postPresenterLoader").addClass("d-none"),$(".postPresenterContainer").removeClass("d-none"),$("head title").text(t.status.account.username+" posted a photo: "+t.status.favourites_count+" likes")}).catch(function(t){if(t.response)switch(t.response.status){case 401:$(".postPresenterLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("Please login to view.");break;default:$(".postPresenterLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch media. Please try again later.")}else $(".postPresenterLoader .lds-ring").attr("style","width:100%").addClass("pt-4 font-weight-bold text-muted").text("An error occurred, cannot fetch media. Please try again later.")})},likesModal:function(){0!=this.status.favourites_count&&0!=$("body").hasClass("loggedIn")&&this.$refs.likesModal.show()},sharesModal:function(){0!=this.status.reblogs_count&&0!=$("body").hasClass("loggedIn")&&this.$refs.sharesModal.show()},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 i,n=s.data;n.data.length>0?((i=e.likes).push.apply(i,a(n.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,n=s.data;n.data.length>0?((i=e.shares).push.apply(i,a(n.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(t){if(e.status.favourites_count=t.data.count,1==e.reactions.liked){e.reactions.liked=!1;var s=e.user.id;e.likes=e.likes.filter(function(t){return t.id!==s})}else{e.reactions.liked=!0;var a=e.user;e.likes.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)},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)},muteProfile:function(){var t=this;0!=$("body").hasClass("loggedIn")&&axios.post("/i/mute",{type:"user",item:this.status.account.id}).then(function(e){swal("Success","You have successfully muted "+t.status.account.acct,"success")}).catch(function(t){swal("Error","Something went wrong. Please try again later.","error")})},blockProfile:function(){var t=this;0!=$("body").hasClass("loggedIn")&&axios.post("/i/block",{type:"user",item:this.status.account.id}).then(function(e){swal("Success","You have successfully blocked "+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"),window.location.href="/"}).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(0==this.replyText.length||this.replyText.trim()=="@"+this.status.account.acct)return t.replyText=null,void $('textarea[name="comment"]').blur();var e={item:this.statusId,comment:this.replyText};axios.post("/i/comment",e).then(function(e){var s=e.data.entity;t.results.push(s),t.replyText="";var a=$(".status-comments")[0];a.scrollTop=a.clientHeight})},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")})},l:function(t){return t.length<10?t:t.substr(0,10)+"..."},replyFocus:function(t){this.reply_to_profile_id=t.account.id,this.replyText="@"+t.account.username+" ",$('textarea[name="comment"]').focus()},fetchComments:function(){var t=this,e="/api/v2/comments/"+this.statusUsername+"/status/"+this.statusId;axios.get(e).then(function(e){t.results=_.reverse(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")}).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){$(".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;a<s.length;a++)e.results.unshift(s[a]);e.pagination=t.data.meta.pagination})}else $(".load-more-link").addClass("d-none")},likeReply:function(t,e){0!=$("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")})},truncate:function(t,e){return _.truncate(t,{length:e})},timeAgo:function(t){var e=Date.parse(t),s=Math.floor((new Date-e)/1e3),a=Math.floor(s/31536e3);return a>=1?a+"y":(a=Math.floor(s/604800))>=1?a+"w":(a=Math.floor(s/86400))>=1?a+"d":(a=Math.floor(s/3600))>=1?a+"h":(a=Math.floor(s/60))>=1?a+"m":Math.floor(s)+"s"},emojiReaction:function(){var t=event.target.innerText;0==this.replyText.length?(this.reply_to_profile_id=this.status.account.id,this.replyText="@"+this.status.account.username+" "+t,$('textarea[name="comment"]').focus()):(this.reply_to_profile_id=this.status.account.id,this.replyText+=t,$('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){window.location.href=e.status.url}).catch(function(t){}):axios.post("/i/visibility",{item:e.status.id,disableComments:!0}).then(function(t){e.status.comments_disabled=!1,e.showComments=!1}).catch(function(t){})}}}},n=(s("uqiN"),s("KHd+")),o=Object(n.a)(i,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"postComponent d-none"},[s("div",{staticClass:"container px-0"},[s("div",{staticClass:"card card-md-rounded-0 status-container orientation-unknown"},[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("a",{staticClass:"d-flex align-items-center status-username text-truncate",attrs:{href:t.statusProfileUrl,"data-toggle":"tooltip","data-placement":"bottom",title:t.statusUsername}},[s("div",{staticClass:"status-avatar mr-2"},[s("img",{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"},[t._v(t._s(t.statusUsername))])])]),t._v(" "),0!=t.user?s("div",{staticClass:"float-right"},[s("div",{staticClass:"post-actions"},[s("div",{staticClass:"dropdown"},[t._m(0),t._v(" "),s("div",{staticClass:"dropdown-menu dropdown-menu-right",attrs:{"aria-labelledby":"dropdownMenuButton"}},[t.owner()?t._e():s("div",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.reportUrl()}},[t._v("Report")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(e){return t.muteProfile()}}},[t._v("Mute Profile")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:function(e){return t.blockProfile()}}},[t._v("Block Profile")])]),t._v(" "),t.ownerOrAdmin()?s("div",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleCommentVisibility(e)}}},[t._v(t._s(t.showComments?"Disable":"Enable")+" Comments")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.editUrl()}},[t._v("Edit")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-danger",on:{click:function(e){return t.deletePost(t.status)}}},[t._v("Delete")])]):t._e()])])])]):t._e()]),t._v(" "),s("div",{staticClass:"col-12 col-md-8 px-0 mx-0"},[t._m(1),t._v(" "),s("div",{staticClass:"postPresenterContainer d-none d-flex justify-content-center align-items-center"},["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:"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("a",{staticClass:"d-flex align-items-center status-username text-truncate",attrs:{href:t.statusProfileUrl,"data-toggle":"tooltip","data-placement":"bottom",title:t.statusUsername}},[s("div",{staticClass:"status-avatar mr-2"},[s("img",{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"},[t._v(t._s(t.statusUsername))])])]),t._v(" "),s("div",{staticClass:"float-right"},[s("div",{staticClass:"post-actions"},[0!=t.user?s("div",{staticClass:"dropdown"},[t._m(2),t._v(" "),s("div",{staticClass:"dropdown-menu dropdown-menu-right",attrs:{"aria-labelledby":"dropdownMenuButton"}},[t.owner()?t._e():s("span",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.reportUrl()}},[t._v("Report")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:t.muteProfile}},[t._v("Mute Profile")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",on:{click:t.blockProfile}},[t._v("Block Profile")])]),t._v(" "),t.ownerOrAdmin()?s("span",[s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.toggleCommentVisibility(e)}}},[t._v(t._s(t.showComments?"Disable":"Enable")+" Comments")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold",attrs:{href:t.editUrl()}},[t._v("Edit")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-danger",on:{click:t.deletePost}},[t._v("Delete")])]):t._e()])]):t._e()])])]),t._v(" "),s("div",{staticClass:"d-flex flex-md-column flex-column-reverse h-100"},[s("div",{staticClass:"card-body status-comments pb-5"},[s("div",{staticClass:"status-comment"},[s("p",{staticClass:"mb-1 read-more",staticStyle:{overflow:"hidden"}},[s("span",{staticClass:"font-weight-bold pr-1"},[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(" "),t.showComments?s("div",[t._m(3),t._v(" "),s("div",{staticClass:"postCommentsContainer d-none pt-3"},[s("p",{staticClass:"mb-1 text-center load-more-link d-none"},[s("a",{staticClass:"text-muted",attrs:{href:"#"},on:{click:t.loadMore}},[t._v("Load more comments")])]),t._v(" "),s("div",{staticClass:"comments",attrs:{"data-min-id":"0","data-max-id":"0"}},t._l(t.results,function(e,a){return s("div",{staticClass:"pb-3"},[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(t.truncate(e.account.username,15)))]),t._v(" "),s("span",{staticClass:"text-break",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.deleteComment(e.id,a)}}})],1)]),t._v(" "),s("p",{},[s("span",{staticClass:"text-muted mr-3",staticStyle:{width:"20px"},domProps:{textContent:t._s(t.timeAgo(e.created_at))}}),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)}}},[t._v("Reply")])])])}),0)])]):t._e()])]),t._v(" "),s("div",{staticClass:"card-body flex-grow-0 py-1"},[s("div",{staticClass:"reactions my-1"},[s("h3",{class:[t.reactions.liked?"fas fa-heart text-danger pr-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(" "),s("h3",{staticClass:"far fa-comment pr-3 m-0 cursor-pointer",attrs:{title:"Comment"},on:{click:function(e){return t.replyFocus(t.status)}}}),t._v(" "),s("h3",{class:[t.reactions.shared?"far fa-share-square pr-3 m-0 text-primary cursor-pointer":"far fa-share-square pr-3 m-0 share-btn cursor-pointer"],attrs:{title:"Share"},on:{click:t.shareStatus}}),t._v(" "),s("h3",{class:[t.reactions.bookmarked?"fas fa-bookmark text-warning m-0 float-right cursor-pointer":"far fa-bookmark m-0 float-right cursor-pointer"],attrs:{title:"Bookmark"},on:{click:t.bookmarkStatus}})]),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(" "),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._v(" "),s("div",{staticClass:"timestamp"},[s("a",{staticClass:"small text-muted",attrs:{href:t.statusUrl}},[t._v("\n "+t._s(t.timestampFormat())+"\n ")])])])]),t._v(" "),t.showComments&&0!==t.user.length?s("div",{staticClass:"card-footer bg-white px-2 py-0"},[s("ul",{staticClass:"nav align-items-center emoji-reactions",staticStyle:{"overflow-x":"scroll","flex-wrap":"unset"}},[s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("😂")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("💯")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("❤️")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("🙌")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("👏")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("😍")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("😯")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("😢")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("😅")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("😁")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("🙂")]),t._v(" "),s("li",{staticClass:"nav-item",on:{click:t.emojiReaction}},[t._v("😎")])])]):t._e(),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",{directives:[{name:"model",rawName:"v-model",value:t.replyText,expression:"replyText"}],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"},domProps:{value:t.replyText},on:{input:function(e){e.target.composing||(t.replyText=e.target.value)}}}),t._v(" "),s("input",{staticClass:"d-inline-block btn btn-link font-weight-bold reply-btn text-decoration-none",attrs:{type:"button",value:"Post"},on:{click:function(e){return e.preventDefault(),t.postReply(e)}}})])]):t._e()])])])]),t._v(" "),s("b-modal",{ref:"likesModal",attrs:{id:"l-modal","hide-footer":"",centered:"",title:"Likes","body-class":"list-group-flush p-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"},[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(" "),s("p",{staticClass:"text-muted mb-0",staticStyle:{"font-size":"14px"}},[t._v("\n "+t._s(e.display_name)+"\n ")])])])])}),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 p-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"},[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",{class:t.lightboxMedia.filter_class},[s("img",{staticClass:"img-fluid",staticStyle:{"min-height":"100%","min-width":"100%"},attrs:{src:t.lightboxMedia.url}})]):t._e()])],1)},[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-link text-dark no-caret dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",title:"Post options"}},[e("span",{staticClass:"fas fa-ellipsis-v text-muted"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"postPresenterLoader text-center"},[e("div",{staticClass:"lds-ring"},[e("div"),e("div"),e("div"),e("div")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"btn btn-link text-dark no-caret dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",title:"Post options"}},[e("span",{staticClass:"fas fa-ellipsis-v text-muted"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"postCommentsLoader text-center"},[e("div",{staticClass:"spinner-border",attrs:{role:"status"}},[e("span",{staticClass:"sr-only"},[this._v("Loading...")])])])}],!1,null,"7c550491",null);e.default=o.exports},"6tha":function(t,e,s){var a=s("n/1A");"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,n=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(n)?t:(i=0===n.indexOf("//")?n:0===n.indexOf("/")?s+n:a+n.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},"9wGH":function(t,e,s){"use strict";s.r(e);var a={props:["status"]},i=s("KHd+"),n=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%"},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%"},slot:"img"},[s("source",{attrs:{src:t.url,type:t.mime}})])])}),1)],1)},[],!1,null,null,null);e.default=n.exports},"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)},CRqc:function(t,e,s){(t.exports=s("I1BE")(!1)).push([t.i,"\n.card-img-top[data-v-147a9116] {\n border-top-left-radius: 0 !important;\n border-top-right-radius: 0 !important;\n}\n",""])},Ht21:function(t,e,s){"use strict";var a=s("IJk2");s.n(a).a},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=(o=a,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),n=a.sources.map(function(t){return"/*# sourceURL="+a.sourceRoot+t+" */"});return[s].concat(n).concat([i]).join("\n")}var o;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<this.length;i++){var n=this[i][0];"number"==typeof n&&(a[n]=!0)}for(i=0;i<t.length;i++){var o=t[i];"number"==typeof o[0]&&a[o[0]]||(s&&!o[2]?o[2]=s:s&&(o[2]="("+o[2]+") and ("+s+")"),e.push(o))}},e}},IJk2:function(t,e,s){var a=s("m6Z2");"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)},"KHd+":function(t,e,s){"use strict";function a(t,e,s,a,i,n,o,r){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=s,c._compiled=!0),a&&(c.functional=!0),n&&(c._scopeId="data-v-"+n),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=r?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(t,e){return l.call(e),d(t,e)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:c}}s.d(e,"a",function(){return a})},MJp8:function(t,e,s){var a=s("aQtw");"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)},Mrqh:function(t,e,s){"use strict";s.r(e);var a={props:["status"],data:function(){return{cursor:0}}},i=(s("Zu+P"),s("KHd+")),n=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"},attrs:{id:t.status.id+"-carousel",controls:"",background:"#ffffff",interval:0},model:{value:t.cursor,callback:function(e){t.cursor=e},expression:"cursor"}},[t._l(t.status.media_attachments,function(e,a){return s("b-carousel-slide",{key:e.id},[s("div",{class:e.filter_class+" d-block mx-auto text-center",staticStyle:{"max-height":"600px"},attrs:{slot:"img"},on:{click:function(s){return t.$emit("lightbox",e)}},slot:"img"},[s("img",{staticClass:"img-fluid",staticStyle:{"max-height":"600px"},attrs:{src:e.url,alt:e.description,title:e.description}})])])}),t._v(" "),s("span",{staticClass:"badge badge-dark box-shadow",staticStyle:{position:"absolute",top:"10px",right:"10px"}},[t._v("\n\t\t\t\t"+t._s(t.cursor+1)+" / "+t._s(t.status.media_attachments.length)+"\n\t\t\t")])],2)],1)]):s("div",[s("b-carousel",{staticStyle:{"text-shadow":"1px 1px 2px #333"},attrs:{id:t.status.id+"-carousel",controls:"",background:"#ffffff",interval:0},model:{value:t.cursor,callback:function(e){t.cursor=e},expression:"cursor"}},[t._l(t.status.media_attachments,function(e,a){return s("b-carousel-slide",{key:e.id,attrs:{alt:e.description,title:e.description}},[s("div",{class:e.filter_class+" d-block mx-auto text-center",staticStyle:{"max-height":"600px"},attrs:{slot:"img"},on:{click:function(s){return t.$emit("lightbox",e)}},slot:"img"},[s("img",{staticClass:"img-fluid",staticStyle:{"max-height":"600px"},attrs:{src:e.url}})])])}),t._v(" "),s("span",{staticClass:"badge badge-dark box-shadow",staticStyle:{position:"absolute",top:"10px",right:"10px"}},[t._v("\n\t\t\t"+t._s(t.cursor+1)+" / "+t._s(t.status.media_attachments.length)+"\n\t\t")])],2)],1)},[],!1,null,"a7573adc",null);e.default=n.exports},Z2k3:function(t,e,s){"use strict";var a=s("pExA");s.n(a).a},"Zu+P":function(t,e,s){"use strict";var a=s("MJp8");s.n(a).a},"aET+":function(t,e,s){var a,i,n={},o=(a=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=a.apply(this,arguments)),i}),r=function(t){var e={};return function(t,s){if("function"==typeof t)return t();if(void 0===e[t]){var a=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,s);if(window.HTMLIFrameElement&&a instanceof window.HTMLIFrameElement)try{a=a.contentDocument.head}catch(t){a=null}e[t]=a}return e[t]}}(),l=null,c=0,d=[],u=s("9tPo");function m(t,e){for(var s=0;s<t.length;s++){var a=t[s],i=n[a.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](a.parts[o]);for(;o<a.parts.length;o++)i.parts.push(_(a.parts[o],e))}else{var r=[];for(o=0;o<a.parts.length;o++)r.push(_(a.parts[o],e));n[a.id]={id:a.id,refs:1,parts:r}}}}function p(t,e){for(var s=[],a={},i=0;i<t.length;i++){var n=t[i],o=e.base?n[0]+e.base:n[0],r={css:n[1],media:n[2],sourceMap:n[3]};a[o]?a[o].parts.push(r):s.push(a[o]={id:o,parts:[r]})}return s}function f(t,e){var s=r(t.insertInto);if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var a=d[d.length-1];if("top"===t.insertAt)a?a.nextSibling?s.insertBefore(e,a.nextSibling):s.appendChild(e):s.insertBefore(e,s.firstChild),d.push(e);else if("bottom"===t.insertAt)s.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=r(t.insertAt.before,s);s.insertBefore(e,i)}}function h(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=d.indexOf(t);e>=0&&d.splice(e,1)}function v(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var a=function(){0;return s.nc}();a&&(t.attrs.nonce=a)}return g(e,t.attrs),f(t,e),e}function g(t,e){Object.keys(e).forEach(function(s){t.setAttribute(s,e[s])})}function _(t,e){var s,a,i,n;if(e.transform&&t.css){if(!(n="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=n}if(e.singleton){var o=c++;s=l||(l=v(e)),a=C.bind(null,s,o,!1),i=C.bind(null,s,o,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(s=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),f(t,e),e}(e),a=function(t,e,s){var a=s.css,i=s.sourceMap,n=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||n)&&(a=u(a));i&&(a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var o=new Blob([a],{type:"text/css"}),r=t.href;t.href=URL.createObjectURL(o),r&&URL.revokeObjectURL(r)}.bind(null,s,e),i=function(){h(s),s.href&&URL.revokeObjectURL(s.href)}):(s=v(e),a=function(t,e){var s=e.css,a=e.media;a&&t.setAttribute("media",a);if(t.styleSheet)t.styleSheet.cssText=s;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(s))}}.bind(null,s),i=function(){h(s)});return a(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;a(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=o()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var s=p(t,e);return m(s,e),function(t){for(var a=[],i=0;i<s.length;i++){var o=s[i];(r=n[o.id]).refs--,a.push(r)}t&&m(p(t,e),e);for(i=0;i<a.length;i++){var r;if(0===(r=a[i]).refs){for(var l=0;l<r.parts.length;l++)r.parts[l]();delete n[r.id]}}}};var b,x=(b=[],function(t,e){return b[t]=e,b.filter(Boolean).join("\n")});function C(t,e,s,a){var i=s?"":a.css;if(t.styleSheet)t.styleSheet.cssText=x(e,i);else{var n=document.createTextNode(i),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(n,o[e]):t.appendChild(n)}}},aQtw:function(t,e,s){(t.exports=s("I1BE")(!1)).push([t.i,"\n.card-img-top[data-v-a7573adc] {\n border-top-left-radius: 0 !important;\n border-top-right-radius: 0 !important;\n}\n",""])},"d+I4":function(t,e,s){"use strict";s.r(e);var a={props:["status"]},i=(s("Z2k3"),s("KHd+")),n=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:"max-hide-overflow",class:t.status.media_attachments[0].filter_class,attrs:{alt:t.status.media_attachments[0].description,title:t.status.media_attachments[0].description},on:{click:function(e){return t.$emit("lightbox",t.status.media_attachments[0])}}},[s("img",{staticClass:"card-img-top",attrs:{src:t.status.media_attachments[0].url}})])])]):s("div",[s("div",{class:t.status.media_attachments[0].filter_class,attrs:{alt:t.status.media_attachments[0].description,title:t.status.media_attachments[0].description},on:{click:function(e){return t.$emit("lightbox",t.status.media_attachments[0])}}},[s("img",{staticClass:"card-img-top",attrs:{src:t.status.media_attachments[0].url}})])])},[],!1,null,"147a9116",null);e.default=n.exports},exej:function(t,e,s){"use strict";s.r(e);var a={props:["status"]},i=s("KHd+"),n=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(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:"",loop:"",alt:e.description,width:"100%",height:"100%"},slot:"img"},[s("source",{attrs:{src:e.url,type:e.mime}})]):"Image"==e.type?s("div",{class:e.filter_class,attrs:{slot:"img"},on:{click:function(s){return t.$emit("lightbox",e)}},slot:"img"},[s("img",{staticClass:"d-block img-fluid w-100",attrs:{src:e.url,alt:e.description,title:e.description}})]):s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])}),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(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:"",loop:"",alt:e.description,width:"100%",height:"100%"},slot:"img"},[s("source",{attrs:{src:e.url,type:e.mime}})]):"Image"==e.type?s("div",{class:e.filter_class,attrs:{slot:"img"},on:{click:function(s){return t.$emit("lightbox",e)}},slot:"img"},[s("img",{staticClass:"d-block img-fluid w-100",attrs:{src:e.url,alt:e.description,title:e.description}})]):s("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])}),1)],1)},[],!1,null,null,null);e.default=n.exports},m6Z2:function(t,e,s){(t.exports=s("I1BE")(!1)).push([t.i,"\n.text-lighter[data-v-40fdc9a4] {\n\tcolor:#B8C2CC !important;\n}\n.modal-body[data-v-40fdc9a4] {\n\tpadding: 0;\n}\n",""])},"n/1A":function(t,e,s){(t.exports=s("I1BE")(!1)).push([t.i,"\n.status-comments[data-v-7c550491],\n.reactions[data-v-7c550491],\n.col-md-4[data-v-7c550491] {\n background: #fff;\n}\n.postPresenterContainer[data-v-7c550491] {\n background: #fff;\n}\n@media(min-width: 720px) {\n.postPresenterContainer[data-v-7c550491] {\n min-height: 600px;\n}\n}\n[data-v-7c550491]::-webkit-scrollbar {\n width: 0px;\n background: transparent;\n}\n.reply-btn[data-v-7c550491] {\n position: absolute;\n bottom: 12px;\n right: 20px;\n width: 60px;\n text-align: center;\n border-radius: 0 3px 3px 0;\n}\n.text-lighter[data-v-7c550491] {\n color:#B8C2CC !important;\n}\n.text-break[data-v-7c550491] {\n overflow-wrap: break-word;\n}\n.comments p[data-v-7c550491] {\n margin-bottom: 0;\n}\n.comment-reaction[data-v-7c550491] {\n font-size: 80%;\n}\n.show-reply-bar[data-v-7c550491] {\n display: inline-block;\n border-bottom: 1px solid #999;\n height: 0;\n margin-right: 16px;\n vertical-align: middle;\n width: 24px;\n}\n.comment-thread[data-v-7c550491] {\n margin: 4px 0 0 40px;\n width: calc(100% - 40px);\n}\n.emoji-reactions .nav-item[data-v-7c550491] {\n font-size: 1.2rem;\n padding: 7px;\n cursor: pointer;\n}\n.emoji-reactions[data-v-7c550491]::-webkit-scrollbar {\n width: 0px;\n height: 0px;\n background: transparent;\n}\n",""])},pExA:function(t,e,s){var a=s("CRqc");"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)},uqiN:function(t,e,s){"use strict";var a=s("6tha");s.n(a).a},yric:function(t,e,s){"use strict";s.r(e);var a={props:["feed","status","profile","size","modal"],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"),$("#mt_pid_"+this.status.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})}}}},i=(s("Ht21"),s("KHd+")),n=Object(i.a)(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(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",attrs:{href:"#"}},[t._v("Share")]),t._v(" "),s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",attrs:{href:"#"}},[t._v("Embed")]),t._v(" "),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.statusOwner(t.status)?s("span",[s("a",{staticClass:"dropdown-item font-weight-bold text-decoration-none",on:{click:function(e){return 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 t.blockProfile(t.status)}}},[t._v("Block Profile")])]):t._e(),t._v(" "),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",attrs:{role:"document"}},[s("div",{staticClass:"modal-content"},[s("div",{staticClass:"modal-body"},[s("div",{staticClass:"list-group"},[s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:t.status.url}},[t._v("Go to post")]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:t.status.url}},[t._v("Share")]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:t.status.url}},[t._v("Embed")]),t._v(" "),0==t.statusOwner(t.status)?s("span",[s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:t.reportUrl(t.status)}},[t._v("Report")]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return t.muteProfile(t.status)}}},[t._v("Mute Profile")]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return t.blockProfile(t.status)}}},[t._v("Block Profile")])]):t._e(),t._v(" "),1==t.statusOwner(t.status)||1==t.profile.is_admin?s("span",[s("a",{staticClass:"list-group-item font-weight-bold text-danger text-decoration-none",on:{click:t.deletePost}},[t._v("Delete")])]):t._e(),t._v(" "),1==t.profile.is_admin?s("span",[s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return t.moderatePost(t.status,"autocw")}}},[s("p",{staticClass:"mb-0"},[t._v("Enforce CW")]),t._v(" "),t._m(5)]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return t.moderatePost(t.status,"noautolink")}}},[s("p",{staticClass:"mb-0"},[t._v("No Autolinking")]),t._v(" "),t._m(6)]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return t.moderatePost(t.status,"unlisted")}}},[s("p",{staticClass:"mb-0"},[t._v("Unlisted Posts")]),t._v(" "),t._m(7)]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return t.moderatePost(t.status,"disable")}}},[s("p",{staticClass:"mb-0"},[t._v("Disable Account")]),t._v(" "),t._m(8)]),t._v(" "),s("a",{staticClass:"list-group-item font-weight-bold text-decoration-none",attrs:{href:"#"},on:{click:function(e){return t.moderatePost(t.status,"suspend")}}},[s("p",{staticClass:"mb-0"},[t._v("Suspend Account")]),t._v(" "),t._m(9)])]):t._e()])])])])])]):t._e()])},[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Adds a CW to every post "),e("br"),this._v(" made by this account.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Do not transform mentions, "),e("br"),this._v(" hashtags or urls into HTML.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Removes account from "),e("br"),this._v(" public/network timelines.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Temporarily disable account "),e("br"),this._v(" until next time user log in.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("This prevents any new interactions, "),e("br"),this._v(" without deleting existing data.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Adds a CW to every post "),e("br"),this._v(" made by this account.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Do not transform mentions, "),e("br"),this._v(" hashtags or urls into HTML.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Removes account from "),e("br"),this._v(" public/network timelines.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("Temporarily disable account "),e("br"),this._v(" until next time user log in.")])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"mb-0 small text-muted"},[this._v("This prevents any new interactions, "),e("br"),this._v(" without deleting existing data.")])}],!1,null,"40fdc9a4",null);e.default=n.exports}});