(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{"/jad":function(t,e,n){"use strict";var i=n("1gDp"),s={props:{status:{type:Object},recommended:{type:Boolean,default:!1},reactionBar:{type:Boolean,default:!0}},components:{"context-menu":i.a},data:function(){return{config:window.App.config,profile:{},loading:!0,replies:[],replyId:null,lightboxMedia:!1,showSuggestions:!0,showReadMore:!0,replyStatus:{},replyText:"",replyNsfw:!1,emoji:window.App.util.emoji}},mounted:function(){this.profile=window._sharedData.curUser},methods:{formatCount:function(t){return App.util.format.count(t)},statusUrl:function(t){return 1==t.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},profileUrl:function(t){return 1==t.local?t.account.url:"/i/web/profile/_/"+t.account.id},timestampFormat:function(t){var e=new Date(t);return e.toDateString()+" "+e.toLocaleTimeString()},statusCardUsernameFormat:function(t){if(1==t.account.local)return t.account.username;var e=window.App.config.username.remote.format,n=window.App.config.username.remote.custom,i=t.account.username,s=document.createElement("a");switch(s.href=t.account.url,s=s.hostname,e){case"@":return i+'@'+s+"";case"from":return i+'from '+s+"";case"custom":return i+' '+n+" "+s+"";default:return i+'@'+s+""}},lightbox:function(t){window.location.href=t.media_attachments[0].url},labelRedirect:function(t){var e="/i/redirect?url="+encodeURI(this.config.features.label.covid.url);window.location.href=e},likeStatus:function(t,e){if(0!=$("body").hasClass("loggedIn")){var n=t.favourites_count;t.favourited=!t.favourited,axios.post("/i/like",{item:t.id}).then((function(e){t.favourites_count=e.data.count})).catch((function(e){t.favourited=!t.favourited,t.favourites_count=n,swal("Error","Something went wrong, please try again later.","error")})),window.navigator.vibrate(200),t.favourited&&setTimeout((function(){e.target.classList.add("animate__animated","animate__bounce")}),100)}},commentFocus:function(t,e){this.$emit("comment-focus",t)},commentSubmit:function(t,e){var n=this;this.replySending=!0;var i=t.id,s=this.replyText,o=this.config.uploader.max_caption_length;if(s.length>o)return this.replySending=!1,void swal("Comment Too Long","Please make sure your comment is "+o+" characters or less.","error");axios.post("/i/comment",{item:i,comment:s,sensitive:this.replyNsfw}).then((function(t){n.replyText="",n.replies.push(t.data.entity),n.$refs.replyModal.hide()})),this.replySending=!1},owner:function(t){return this.profile.id===t.account.id},admin:function(){return 1==this.profile.is_admin},ownerOrAdmin:function(t){return this.owner(t)||this.admin()},ctxMenu:function(){this.$refs.contextMenu.open()},timeAgo:function(t){return App.util.format.timeAgo(t)},statusDeleted:function(t){this.$emit("status-delete",t)}}},o=n("KHd+"),a=Object(o.a)(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"card rounded-0 border-top-0 status-card card-md-rounded-0 shadow-none border"},[t.status?n("div",{staticClass:"card-header d-inline-flex align-items-center bg-white"},[n("div",[n("img",{staticClass:"rounded-circle box-shadow",attrs:{src:t.status.account.avatar,width:"32px",height:"32px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})]),t._v(" "),n("div",{staticClass:"pl-2"},[n("a",{staticClass:"username font-weight-bold text-dark text-decoration-none text-break",attrs:{href:t.profileUrl(t.status)},domProps:{innerHTML:t._s(t.statusCardUsernameFormat(t.status))}},[t._v("\n\t\t\t\t\tLoading...\n\t\t\t\t")]),t._v(" "),t.status.account.is_admin?n("span",{staticClass:"fa-stack",staticStyle:{height:"1em","line-height":"1em","max-width":"19px"},attrs:{title:"Admin Account","data-toggle":"tooltip"}},[n("i",{staticClass:"fas fa-certificate text-danger fa-stack-1x"}),t._v(" "),n("i",{staticClass:"fas fa-crown text-white fa-sm fa-stack-1x",staticStyle:{"font-size":"7px"}})]):t._e(),t._v(" "),n("div",{staticClass:"d-flex align-items-center"},[t.status.place?n("a",{staticClass:"small text-decoration-none text-muted",attrs:{href:"/discover/places/"+t.status.place.id+"/"+t.status.place.slug,title:"Location","data-toggle":"tooltip"}},[n("i",{staticClass:"fas fa-map-marked-alt"}),t._v(" "+t._s(t.status.place.name)+", "+t._s(t.status.place.country))]):t._e()])]),t._v(" "),n("div",{staticClass:"text-right",staticStyle:{"flex-grow":"1"}},[n("button",{staticClass:"btn btn-link text-dark py-0",attrs:{type:"button"},on:{click:function(e){return t.ctxMenu()}}},[n("span",{staticClass:"fas fa-ellipsis-h text-lighter"}),t._v(" "),n("span",{staticClass:"sr-only"},[t._v("Post Menu")])])])]):t._e(),t._v(" "),n("div",{staticClass:"postPresenterContainer",staticStyle:{background:"#000"}},[t.config.ab.top&&"text"===t.status.pf_type?n("div",{staticClass:"w-100"},[n("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"}},[n("div",{staticClass:"w-100 h-100 d-flex justify-content-center align-items-center"},[n("p",{staticClass:"text-center text-break h3 px-5 font-weight-bold",domProps:{innerHTML:t._s(t.status.content)}})])])]):"photo"===t.status.pf_type?n("div",{staticClass:"w-100"},[n("photo-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):"video"===t.status.pf_type?n("div",{staticClass:"w-100"},[n("video-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:album"===t.status.pf_type?n("div",{staticClass:"w-100"},[n("photo-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):"video:album"===t.status.pf_type?n("div",{staticClass:"w-100"},[n("video-album-presenter",{attrs:{status:t.status},on:{togglecw:function(e){t.status.sensitive=!1}}})],1):"photo:video:album"===t.status.pf_type?n("div",{staticClass:"w-100"},[n("mixed-album-presenter",{attrs:{status:t.status},on:{lightbox:t.lightbox,togglecw:function(e){t.status.sensitive=!1}}})],1):n("div",{staticClass:"w-100"},[n("p",{staticClass:"text-center p-0 font-weight-bold text-white"},[t._v("Error: Problem rendering preview.")])])]),t._v(" "),t.config.features.label.covid.enabled&&t.status.label&&1==t.status.label.covid?n("div",{staticClass:"card-body border-top border-bottom py-2 cursor-pointer pr-2",on:{click:function(e){return t.labelRedirect()}}},[n("p",{staticClass:"font-weight-bold d-flex justify-content-between align-items-center mb-0"},[n("span",[n("i",{staticClass:"fas fa-info-circle mr-2"}),t._v("\n\t\t\t\t\tFor information about COVID-19, "+t._s(t.config.features.label.covid.org)+"\n\t\t\t\t")]),t._v(" "),t._m(0)])]):t._e(),t._v(" "),n("div",{staticClass:"card-body"},[t.reactionBar?n("div",{staticClass:"reactions my-1 pb-2"},[t.status.favourited?n("h3",{staticClass:"fas fa-heart text-danger pr-3 m-0 cursor-pointer",attrs:{title:"Like"},on:{click:function(e){return t.likeStatus(t.status,e)}}}):n("h3",{staticClass:"far fa-heart pr-3 m-0 like-btn text-dark cursor-pointer",attrs:{title:"Like"},on:{click:function(e){return t.likeStatus(t.status,e)}}}),t._v(" "),t.status.comments_disabled?t._e():n("h3",{staticClass:"far fa-comment text-dark pr-3 m-0 cursor-pointer",attrs:{title:"Comment"},on:{click:function(e){return t.commentFocus(t.status,e)}}}),t._v(" "),t.status.taggedPeople.length?n("span",{staticClass:"float-right"},[n("span",{staticClass:"font-weight-light small",staticStyle:{color:"#718096"}},[n("i",{staticClass:"far fa-user",attrs:{"data-toggle":"tooltip",title:"Tagged People"}}),t._v(" "),t._l(t.status.taggedPeople,(function(t,e){return n("span",{staticClass:"mr-n2"},[n("a",{attrs:{href:"/"+t.username}},[n("img",{staticClass:"border rounded-circle",attrs:{src:t.avatar,width:"20px",height:"20px","data-toggle":"tooltip",title:"@"+t.username,alt:"Avatar"}})])])}))],2)]):t._e()]):t._e(),t._v(" "),t.status.liked_by.username&&t.status.liked_by.username!==t.profile.username?n("div",{staticClass:"likes mb-1"},[n("span",{staticClass:"like-count"},[t._v("Liked by\n\t\t\t\t\t"),n("a",{staticClass:"font-weight-bold text-dark",attrs:{href:t.status.liked_by.url}},[t._v(t._s(t.status.liked_by.username))]),t._v(" "),1==t.status.liked_by.others?n("span",[t._v("\n\t\t\t\t\t\tand "),t.status.liked_by.total_count_pretty?n("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.status.liked_by.total_count_pretty))]):t._e(),t._v(" "),n("span",{staticClass:"font-weight-bold"},[t._v("others")])]):t._e()])]):t._e(),t._v(" "),"text"!=t.status.pf_type?n("div",{staticClass:"caption"},[t.status.sensitive?t._e():n("p",{staticClass:"mb-2 read-more",staticStyle:{overflow:"hidden"}},[n("span",{staticClass:"username font-weight-bold"},[n("bdi",[n("a",{staticClass:"text-dark",attrs:{href:t.profileUrl(t.status)}},[t._v(t._s(t.status.account.username))])])]),t._v(" "),n("span",{staticClass:"status-content",domProps:{innerHTML:t._s(t.status.content)}})])]):t._e(),t._v(" "),n("div",{staticClass:"timestamp mt-2"},[n("p",{staticClass:"small mb-0"},[n("a",{staticClass:"text-muted text-uppercase",attrs:{href:t.statusUrl(t.status)}},[n("timeago",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",modifiers:{hover:!0,bottom:!0}}],attrs:{datetime:t.status.created_at,"auto-update":60,"converter-options":{includeSeconds:!0},title:t.timestampFormat(t.status.created_at)}})],1),t._v(" "),t.recommended?n("span",[n("span",{staticClass:"px-1"},[t._v("·")]),t._v(" "),n("span",{staticClass:"text-muted"},[t._v("Based on popular and trending content")])]):t._e()])])])]),t._v(" "),n("context-menu",{ref:"contextMenu",attrs:{status:t.status,profile:t.profile},on:{"status-delete":t.statusDeleted}})],1)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("span",[e("i",{staticClass:"fas fa-chevron-right text-lighter"})])}],!1,null,null,null);e.a=a.exports},"1gDp":function(t,e,n){"use strict";var i={props:["status","profile"],data:function(){return{ctxMenuStatus:!1,ctxMenuRelationship:!1,ctxEmbedPayload:!1,copiedEmbed:!1,replySending:!1,ctxEmbedShowCaption:!0,ctxEmbedShowLikes:!1,ctxEmbedCompactMode:!1,confirmModalTitle:"Are you sure?",confirmModalIdentifer:null,confirmModalType:!1}},watch:{ctxEmbedShowCaption:function(t,e){1==t&&(this.ctxEmbedCompactMode=!1);var n=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,n)},ctxEmbedShowLikes:function(t,e){1==t&&(this.ctxEmbedCompactMode=!1);var n=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,n)},ctxEmbedCompactMode:function(t,e){1==t&&(this.ctxEmbedShowCaption=!1,this.ctxEmbedShowLikes=!1);var n=this.ctxEmbedCompactMode?"compact":"full";this.ctxEmbedPayload=window.App.util.embed.post(this.ctxMenuStatus.url,this.ctxEmbedShowCaption,this.ctxEmbedShowLikes,n)}},methods:{open:function(){this.ctxMenu()},ctxMenu:function(){var t=this;this.ctxMenuStatus=this.status,this.ctxEmbedPayload=window.App.util.embed.post(this.status.url),this.status.account.id==this.profile.id?(this.ctxMenuRelationship=!1,this.$refs.ctxModal.show()):axios.get("/api/pixelfed/v1/accounts/relationships",{params:{"id[]":this.status.account.id}}).then((function(e){t.ctxMenuRelationship=e.data[0],t.$refs.ctxModal.show()}))},closeCtxMenu:function(){this.copiedEmbed=!1,this.ctxMenuStatus=!1,this.ctxMenuRelationship=!1,this.$refs.ctxModal.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxReportOther.hide(),this.closeModals()},ctxMenuCopyLink:function(){var t=this.ctxMenuStatus;navigator.clipboard.writeText(t.url),this.closeModals()},ctxMenuGoToPost:function(){var t=this.ctxMenuStatus;window.location.href=this.statusUrl(t),this.closeCtxMenu()},ctxMenuGoToProfile:function(){var t=this.ctxMenuStatus;window.location.href=this.profileUrl(t),this.closeCtxMenu()},ctxMenuFollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then((function(e){var n=t.ctxMenuStatus.account.acct;t.closeCtxMenu(),setTimeout((function(){swal("Follow successful!","You are now following "+n,"success")}),500)}))},ctxMenuUnfollow:function(){var t=this,e=this.ctxMenuStatus.account.id;axios.post("/i/follow",{item:e}).then((function(e){var n=t.ctxMenuStatus.account.acct;"home"==t.scope&&(t.feed=t.feed.filter((function(e){return e.account.id!=t.ctxMenuStatus.account.id}))),t.closeCtxMenu(),setTimeout((function(){swal("Unfollow successful!","You are no longer following "+n,"success")}),500)}))},ctxMenuReportPost:function(){this.$refs.ctxModal.hide(),this.$refs.ctxReport.show()},ctxMenuEmbed:function(){this.closeModals(),this.$refs.ctxEmbedModal.show()},ctxMenuShare:function(){this.$refs.ctxModal.hide(),this.$refs.ctxShareModal.show()},closeCtxShareMenu:function(){this.$refs.ctxShareModal.hide(),this.$refs.ctxModal.show()},ctxCopyEmbed:function(){navigator.clipboard.writeText(this.ctxEmbedPayload),this.ctxEmbedShowCaption=!0,this.ctxEmbedShowLikes=!1,this.ctxEmbedCompactMode=!1,this.$refs.ctxEmbedModal.hide()},ctxModMenuShow:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.show()},ctxModOtherMenuShow:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.hide(),this.$refs.ctxModOtherModal.show()},ctxModMenu:function(){this.$refs.ctxModal.hide()},ctxModMenuClose:function(){this.closeModals()},ctxModOtherMenuClose:function(){this.closeModals(),this.$refs.ctxModModal.show()},formatCount:function(t){return App.util.format.count(t)},openCtxReportOtherMenu:function(){var t=this.ctxMenuStatus;this.closeCtxMenu(),this.ctxMenuStatus=t,this.$refs.ctxReportOther.show()},ctxReportMenuGoBack:function(){this.$refs.ctxReportOther.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxModal.show()},ctxReportOtherMenuGoBack:function(){this.$refs.ctxReportOther.hide(),this.$refs.ctxModal.hide(),this.$refs.ctxReport.show()},sendReport:function(t){var e=this,n=this.ctxMenuStatus.id;swal({title:"Confirm Report",text:"Are you sure you want to report this post?",icon:"warning",buttons:!0,dangerMode:!0}).then((function(i){i?axios.post("/i/report/",{report:t,type:"post",id:n}).then((function(t){e.closeCtxMenu(),swal("Report Sent!","We have successfully received your report.","success")})).catch((function(t){swal("Oops!","There was an issue reporting this post.","error")})):e.closeCtxMenu()}))},closeModals:function(){this.$refs.ctxModal.hide(),this.$refs.ctxModModal.hide(),this.$refs.ctxModOtherModal.hide(),this.$refs.ctxShareModal.hide(),this.$refs.ctxEmbedModal.hide(),this.$refs.ctxReport.hide(),this.$refs.ctxReportOther.hide(),this.$refs.ctxConfirm.hide()},openCtxStatusModal:function(){this.closeModals(),this.$refs.ctxStatusModal.show()},openConfirmModal:function(){this.closeModals(),this.$refs.ctxConfirm.show()},closeConfirmModal:function(){this.closeModals(),this.confirmModalTitle="Are you sure?",this.confirmModalType=!1,this.confirmModalIdentifer=null},confirmModalConfirm:function(){var t=this;switch(this.confirmModalType){case"post.delete":axios.post("/i/delete",{type:"status",item:this.confirmModalIdentifer}).then((function(e){t.feed=t.feed.filter((function(e){return e.id!=t.confirmModalIdentifer})),t.closeConfirmModal()})).catch((function(e){t.closeConfirmModal(),swal("Error","Something went wrong. Please try again later.","error")}))}this.closeConfirmModal()},confirmModalCancel:function(){this.closeConfirmModal()},moderatePost:function(t,e,n){var i=this,s=(t.account.username,t.id,""),o=this;switch(e){case"addcw":s="Are you sure you want to add a content warning to this post?",swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0}).then((function(n){n&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(e){swal("Success","Successfully added content warning","success"),t.sensitive=!0,o.closeModals(),o.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),o.closeModals(),o.ctxModMenuClose()}))}));break;case"remcw":s="Are you sure you want to remove the content warning on this post?",swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0}).then((function(n){n&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(e){swal("Success","Successfully added content warning","success"),t.sensitive=!1,o.closeModals(),o.ctxModMenuClose()})).catch((function(t){swal("Error","Something went wrong, please try again later.","error"),o.closeModals(),o.ctxModMenuClose()}))}));break;case"unlist":s="Are you sure you want to unlist this post?",swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0}).then((function(n){n&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(e){i.feed=i.feed.filter((function(e){return e.id!=t.id})),swal("Success","Successfully unlisted post","success"),o.closeModals(),o.ctxModMenuClose()})).catch((function(t){o.closeModals(),o.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")}))}));break;case"spammer":s="Are you sure you want to mark this user as a spammer? All existing and future posts will be unlisted on timelines and a content warning will be applied.",swal({title:"Confirm",text:s,icon:"warning",buttons:!0,dangerMode:!0}).then((function(n){n&&axios.post("/api/v2/moderator/action",{action:e,item_id:t.id,item_type:"status"}).then((function(t){swal("Success","Successfully marked account as spammer","success"),o.closeModals(),o.ctxModMenuClose()})).catch((function(t){o.closeModals(),o.ctxModMenuClose(),swal("Error","Something went wrong, please try again later.","error")}))}))}},shareStatus:function(t,e){0!=$("body").hasClass("loggedIn")&&(this.closeModals(),axios.post("/i/share",{item:t.id}).then((function(e){t.reblogs_count=e.data.count,t.reblogged=!t.reblogged,t.reblogged?swal("Success","You shared this post","success"):swal("Success","You unshared this post","success")})).catch((function(t){swal("Error","Something went wrong, please try again later.","error")})))},statusUrl:function(t){return 1==t.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},profileUrl:function(t){return 1==t.local?t.account.url:"/i/web/profile/_/"+t.account.id},deletePost:function(t){var e=this;0!=$("body").hasClass("loggedIn")&&0!=this.ownerOrAdmin(t)&&0!=window.confirm("Are you sure you want to delete this post?")&&axios.post("/i/delete",{type:"status",item:t.id}).then((function(n){e.$emit("status-delete",t.id),e.closeModals()})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))},owner:function(t){return this.profile.id===t.account.id},admin:function(){return 1==this.profile.is_admin},ownerOrAdmin:function(t){return this.owner(t)||this.admin()}}},s=n("KHd+"),o=Object(s.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal-stack"},[n("b-modal",{ref:"ctxModal",attrs:{id:"ctx-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[n("div",{staticClass:"list-group text-center"},[n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuGoToPost()}}},[t._v("View Post")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuGoToProfile()}}},[t._v("View Profile")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuShare()}}},[t._v("Share")]),t._v(" "),t.status&&t.profile&&1==t.profile.is_admin?n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxModMenuShow()}}},[t._v("Moderation Tools")]):t._e(),t._v(" "),t.status&&t.status.account.id!=t.profile.id?n("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.ctxMenuReportPost()}}},[t._v("Report")]):t._e(),t._v(" "),t.status&&(t.profile.is_admin||t.profile.id==t.status.account.id)?n("div",{staticClass:"list-group-item rounded cursor-pointer text-danger",on:{click:function(e){return t.deletePost(t.status)}}},[t._v("Delete")]):t._e(),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxMenu()}}},[t._v("Cancel")])])]),t._v(" "),n("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"}},[n("div",{staticClass:"list-group text-center"},[n("p",{staticClass:"py-2 px-3 mb-0"}),n("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),n("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),n("p"),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"unlist")}}},[t._v("Unlist from Timelines")]),t._v(" "),t.status.sensitive?n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"remcw")}}},[t._v("Remove Content Warning")]):n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"addcw")}}},[t._v("Add Content Warning")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.moderatePost(t.status,"spammer")}}},[t._v("\n\t\t\t\tMark as Spammer"),n("br"),t._v(" "),n("span",{staticClass:"small"},[t._v("Unlist + CW existing and future posts")])]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),n("b-modal",{ref:"ctxModOtherModal",attrs:{id:"ctx-mod-other-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[n("div",{staticClass:"list-group text-center"},[n("p",{staticClass:"py-2 px-3 mb-0"}),n("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Moderation Tools")]),t._v(" "),n("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),n("p"),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Unlist Posts")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.confirmModal()}}},[t._v("Moderation Log")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxModOtherMenuClose()}}},[t._v("Cancel")])])]),t._v(" "),n("b-modal",{ref:"ctxShareModal",attrs:{id:"ctx-share-modal",title:"Share","hide-footer":"","hide-header":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded text-center"}},[n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.shareStatus(t.status,e)}}},[t._v(t._s(t.status.reblogged?"Unshare":"Share")+" to Followers")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuCopyLink()}}},[t._v("Copy Link")]),t._v(" "),t.status&&1==t.status.local&&!t.status.in_reply_to_id?n("div",{staticClass:"list-group-item rounded cursor-pointer",on:{click:function(e){return t.ctxMenuEmbed()}}},[t._v("Embed")]):t._e(),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.closeCtxShareMenu()}}},[t._v("Cancel")])]),t._v(" "),n("b-modal",{ref:"ctxEmbedModal",attrs:{id:"ctx-embed-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"md","body-class":"p-2 rounded"}},[n("div",[n("div",{staticClass:"form-group"},[n("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(" "),n("div",{staticClass:"form-group pl-2 d-flex justify-content-center"},[n("div",{staticClass:"form-check mr-3"},[n("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 n=t.ctxEmbedShowCaption,i=e.target,s=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.ctxEmbedShowCaption=n.concat([null])):o>-1&&(t.ctxEmbedShowCaption=n.slice(0,o).concat(n.slice(o+1)))}else t.ctxEmbedShowCaption=s}}}),t._v(" "),n("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\tShow Caption\n\t\t\t\t\t")])]),t._v(" "),n("div",{staticClass:"form-check mr-3"},[n("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 n=t.ctxEmbedShowLikes,i=e.target,s=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.ctxEmbedShowLikes=n.concat([null])):o>-1&&(t.ctxEmbedShowLikes=n.slice(0,o).concat(n.slice(o+1)))}else t.ctxEmbedShowLikes=s}}}),t._v(" "),n("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\tShow Likes\n\t\t\t\t\t")])]),t._v(" "),n("div",{staticClass:"form-check"},[n("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 n=t.ctxEmbedCompactMode,i=e.target,s=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.ctxEmbedCompactMode=n.concat([null])):o>-1&&(t.ctxEmbedCompactMode=n.slice(0,o).concat(n.slice(o+1)))}else t.ctxEmbedCompactMode=s}}}),t._v(" "),n("label",{staticClass:"form-check-label font-weight-light"},[t._v("\n\t\t\t\t\t\tCompact Mode\n\t\t\t\t\t")])])]),t._v(" "),n("hr"),t._v(" "),n("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(" "),n("p",{staticClass:"mb-0 px-2 small text-muted"},[t._v("By using this embed, you agree to our "),n("a",{attrs:{href:"/site/terms"}},[t._v("Terms of Use")])])])]),t._v(" "),n("b-modal",{ref:"ctxReport",attrs:{id:"ctx-report","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[n("p",{staticClass:"py-2 px-3 mb-0"}),n("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),n("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),n("p"),t._v(" "),n("div",{staticClass:"list-group text-center"},[n("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("spam")}}},[t._v("Spam")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("sensitive")}}},[t._v("Sensitive Content")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("abusive")}}},[t._v("Abusive or Harmful")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.openCtxReportOtherMenu()}}},[t._v("Other")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),n("b-modal",{ref:"ctxReportOther",attrs:{id:"ctx-report-other","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[n("p",{staticClass:"py-2 px-3 mb-0"}),n("div",{staticClass:"text-center font-weight-bold text-danger"},[t._v("Report")]),t._v(" "),n("div",{staticClass:"small text-center text-muted"},[t._v("Select one of the following options")]),t._v(" "),n("p"),t._v(" "),n("div",{staticClass:"list-group text-center"},[n("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("underage")}}},[t._v("Underage Account")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("copyright")}}},[t._v("Copyright Infringement")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("impersonation")}}},[t._v("Impersonation")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer font-weight-bold",on:{click:function(e){return t.sendReport("scam")}}},[t._v("Scam or Fraud")]),t._v(" "),n("div",{staticClass:"list-group-item rounded cursor-pointer text-lighter",on:{click:function(e){return t.ctxReportOtherMenuGoBack()}}},[t._v("Cancel")])])]),t._v(" "),n("b-modal",{ref:"ctxConfirm",attrs:{id:"ctx-confirm","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"sm","body-class":"list-group-flush p-0 rounded"}},[n("div",{staticClass:"d-flex align-items-center justify-content-center py-3"},[n("div",[t._v(t._s(this.confirmModalTitle))])]),t._v(" "),n("div",{staticClass:"d-flex border-top btn-group btn-group-block rounded-0",attrs:{role:"group"}},[n("button",{staticClass:"btn btn-outline-lighter border-left-0 border-top-0 border-bottom-0 border-right py-2",staticStyle:{color:"rgb(0,122,255) !important"},attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.confirmModalCancel()}}},[t._v("Cancel")]),t._v(" "),n("button",{staticClass:"btn btn-outline-lighter border-0",staticStyle:{color:"rgb(0,122,255) !important"},attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.confirmModalConfirm()}}},[t._v("Confirm")])])])],1)}),[],!1,null,null,null);e.a=o.exports},"2Jpm":function(t,e,n){"use strict";n.r(e);var i={props:["status"],methods:{altText:function(t){var e=t.media_attachments[0].description;return e||"Video was not tagged with any alt text."},playOrPause:function(t){var e=t.target;1==e.getAttribute("playing")?(e.removeAttribute("playing"),e.pause()):(e.setAttribute("playing",1),e.play())},toggleContentWarning:function(t){this.$emit("togglecw")}}},s=(n("XWj2"),n("KHd+")),o=Object(s.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return 1==t.status.sensitive?n("div",{staticClass:"content-label-wrapper"},[n("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),n("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),n("p",{staticClass:"text-center py-2"},[t._v("\n\t\t\t"+t._s(t.status.spoiler_text?t.status.spoiler_text:"This post may contain sensitive content.")+"\n\t\t")]),t._v(" "),n("p",{staticClass:"mb-0"},[n("button",{staticClass:"btn btn-outline-light btn-block btn-sm font-weight-bold",on:{click:function(e){return t.toggleContentWarning()}}},[t._v("See Post")])])]),t._v(" "),n("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):n("div",{staticClass:"embed-responsive embed-responsive-16by9"},[n("video",{staticClass:"video",attrs:{controls:"",preload:"metadata",loop:"",poster:t.status.media_attachments[0].preview_url,"data-id":t.status.id}},[n("source",{attrs:{src:t.status.media_attachments[0].url,type:t.status.media_attachments[0].mime}})])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])}],!1,null,"4b79c47a",null);e.default=o.exports},"4KG8":function(t,e,n){t.exports=function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;n>>0,s=arguments[1],o=0;o container for the click");n.selectItemAtIndex(i.getAttribute("data-index"),e),n.hideMenu()}else n.current.element&&!n.current.externalTrigger&&(n.current.externalTrigger=!1,setTimeout((function(){return n.hideMenu()})))}},{key:"keyup",value:function(t,e){if(t.inputEvent&&(t.inputEvent=!1),t.updateSelection(this),27!==e.keyCode){if(!t.tribute.allowSpaces&&t.tribute.hasTrailingSpace)return t.tribute.hasTrailingSpace=!1,t.commandEvent=!0,void t.callbacks().space(e,this);if(!t.tribute.isActive)if(t.tribute.autocompleteMode)t.callbacks().triggerChar(e,this,"");else{var n=t.getKeyCode(t,this,e);if(isNaN(n)||!n)return;var i=t.tribute.triggers().find((function(t){return t.charCodeAt(0)===n}));void 0!==i&&t.callbacks().triggerChar(e,this,i)}t.tribute.current.mentionText.length=s.current.collection.menuShowMinLength&&s.inputEvent&&s.showMenuFor(n,!0)},enter:function(e,n){t.tribute.isActive&&t.tribute.current.filteredItems&&(e.preventDefault(),e.stopPropagation(),setTimeout((function(){t.tribute.selectItemAtIndex(t.tribute.menuSelected,e),t.tribute.hideMenu()}),0))},escape:function(e,n){t.tribute.isActive&&(e.preventDefault(),e.stopPropagation(),t.tribute.isActive=!1,t.tribute.hideMenu())},tab:function(e,n){t.callbacks().enter(e,n)},space:function(e,n){t.tribute.isActive&&(t.tribute.spaceSelectsMatch?t.callbacks().enter(e,n):t.tribute.allowSpaces||(e.stopPropagation(),setTimeout((function(){t.tribute.hideMenu(),t.tribute.isActive=!1}),0)))},up:function(e,n){if(t.tribute.isActive&&t.tribute.current.filteredItems){e.preventDefault(),e.stopPropagation();var i=t.tribute.current.filteredItems.length,s=t.tribute.menuSelected;i>s&&s>0?(t.tribute.menuSelected--,t.setActiveLi()):0===s&&(t.tribute.menuSelected=i-1,t.setActiveLi(),t.tribute.menu.scrollTop=t.tribute.menu.scrollHeight)}},down:function(e,n){if(t.tribute.isActive&&t.tribute.current.filteredItems){e.preventDefault(),e.stopPropagation();var i=t.tribute.current.filteredItems.length-1,s=t.tribute.menuSelected;i>s?(t.tribute.menuSelected++,t.setActiveLi()):i===s&&(t.tribute.menuSelected=0,t.setActiveLi(),t.tribute.menu.scrollTop=0)}},delete:function(e,n){t.tribute.isActive&&t.tribute.current.mentionText.length<1?t.tribute.hideMenu():t.tribute.isActive&&t.tribute.showMenuFor(n)}}}},{key:"setActiveLi",value:function(t){var e=this.tribute.menu.querySelectorAll("li"),n=e.length>>>0;t&&(this.tribute.menuSelected=parseInt(t));for(var i=0;ia.bottom){var r=o.bottom-a.bottom;this.tribute.menu.scrollTop+=r}else if(o.topi.width&&(s.left||s.right),a=window.innerHeight>i.height&&(s.top||s.bottom);(o||a)&&(n.tribute.menu.style.cssText="display: none",n.positionMenuAtCaret(t))}),0)}else this.tribute.menu.style.cssText="display: none"}},{key:"selectElement",value:function(t,e,n){var i,s=t;if(e)for(var o=0;o=0&&(e=i.substring(0,s))}}else{var o=this.tribute.current.element;if(o){var a=o.selectionStart;o.value&&a>=0&&(e=o.value.substring(0,a))}}return e}},{key:"getLastWordInText",value:function(t){var e=(t=t.replace(/\u00A0/g," ")).split(/\s+/);return e[e.length-1].trim()}},{key:"getTriggerInfo",value:function(t,e,n,i,s){var o,a,r,l=this,c=this.tribute.current;if(this.isContentEditable(c.element)){var d=this.getContentEditableSelectedPath(c);d&&(o=d.selected,a=d.path,r=d.offset)}else o=this.tribute.current.element;var u=this.getTextPrecedingCurrentSelection(),m=this.getLastWordInText(u);if(s)return{mentionPosition:u.length-m.length,mentionText:m,mentionSelectedElement:o,mentionSelectedPath:a,mentionSelectedOffset:r};if(null!=u){var p,h=-1;if(this.tribute.collection.forEach((function(t){var e=t.trigger,i=t.requireLeadingSpace?l.lastIndexWithLeadingSpace(u,e):u.lastIndexOf(e);i>h&&(h=i,p=e,n=t.requireLeadingSpace)})),h>=0&&(0===h||!n||/[\xA0\s]/g.test(u.substring(h-1,h)))){var f=u.substring(h+p.length,u.length);p=u.substring(h,h+p.length);var v=f.substring(0,1),g=f.length>0&&(" "===v||" "===v);e&&(f=f.trim());var b=i?/[^\S ]/g:/[\xA0\s]/g;if(this.tribute.hasTrailingSpace=b.test(f),!g&&(t||!b.test(f)))return{mentionPosition:h,mentionText:f,mentionSelectedElement:o,mentionSelectedPath:a,mentionSelectedOffset:r,mentionTriggerChar:p}}}}},{key:"lastIndexWithLeadingSpace",value:function(t,e){for(var n=t.split("").reverse().join(""),i=-1,s=0,o=t.length;s=0;c--)if(e[c]!==n[s-c]){l=!1;break}if(l&&(a||r)){i=t.length-1-s;break}}return i}},{key:"isContentEditable",value:function(t){return"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName}},{key:"isMenuOffScreen",value:function(t,e){var n=window.innerWidth,i=window.innerHeight,s=document.documentElement,o=(window.pageXOffset||s.scrollLeft)-(s.clientLeft||0),a=(window.pageYOffset||s.scrollTop)-(s.clientTop||0),r="number"==typeof t.top?t.top:a+i-t.bottom-e.height,l="number"==typeof t.right?t.right:t.left+e.width,c="number"==typeof t.bottom?t.bottom:t.top+e.height,d="number"==typeof t.left?t.left:o+n-t.right-e.width;return{top:rMath.ceil(o+n),bottom:c>Math.ceil(a+i),left:dparseInt(a.height)&&(o.overflowY="scroll")):o.overflow="hidden",s.textContent=t.value.substring(0,e),"INPUT"===t.nodeName&&(s.textContent=s.textContent.replace(/\s/g," "));var r=this.getDocument().createElement("span");r.textContent=t.value.substring(e)||".",s.appendChild(r);var l=t.getBoundingClientRect(),c=document.documentElement,d=(window.pageXOffset||c.scrollLeft)-(c.clientLeft||0),u=(window.pageYOffset||c.scrollTop)-(c.clientTop||0),m=0,p=0;this.menuContainerIsBody&&(m=l.top,p=l.left);var h={top:m+u+r.offsetTop+parseInt(a.borderTopWidth)+parseInt(a.fontSize)-t.scrollTop,left:p+d+r.offsetLeft+parseInt(a.borderLeftWidth)},f=window.innerWidth,v=window.innerHeight,g=this.getMenuDimensions(),b=this.isMenuOffScreen(h,g);b.right&&(h.right=f-h.left,h.left="auto");var w=this.tribute.menuContainer?this.tribute.menuContainer.offsetHeight:this.getDocument().body.offsetHeight;if(b.bottom){var x=w-(v-(this.tribute.menuContainer?this.tribute.menuContainer.getBoundingClientRect():this.getDocument().body.getBoundingClientRect()).top);h.bottom=x+(v-l.top-r.offsetTop),h.top="auto"}return(b=this.isMenuOffScreen(h,g)).left&&(h.left=f>g.width?d+f-g.width:d,delete h.right),b.top&&(h.top=v>g.height?u+v-g.height:u,delete h.bottom),this.getDocument().body.removeChild(s),h}},{key:"getContentEditableCaretPosition",value:function(t){var e,n=this.getWindowSelection();(e=this.getDocument().createRange()).setStart(n.anchorNode,t),e.setEnd(n.anchorNode,t),e.collapse(!1);var i=e.getBoundingClientRect(),s=document.documentElement,o=(window.pageXOffset||s.scrollLeft)-(s.clientLeft||0),a=(window.pageYOffset||s.scrollTop)-(s.clientTop||0),r={left:i.left+o,top:i.top+i.height+a},l=window.innerWidth,c=window.innerHeight,d=this.getMenuDimensions(),u=this.isMenuOffScreen(r,d);u.right&&(r.left="auto",r.right=l-i.left-o);var m=this.tribute.menuContainer?this.tribute.menuContainer.offsetHeight:this.getDocument().body.offsetHeight;if(u.bottom){var p=m-(c-(this.tribute.menuContainer?this.tribute.menuContainer.getBoundingClientRect():this.getDocument().body.getBoundingClientRect()).top);r.top="auto",r.bottom=p+(c-i.top)}return(u=this.isMenuOffScreen(r,d)).left&&(r.left=l>d.width?o+l-d.width:o,delete r.right),u.top&&(r.top=c>d.height?a+c-d.height:a,delete r.bottom),this.menuContainerIsBody||(r.left=r.left?r.left-this.tribute.menuContainer.offsetLeft:r.left,r.top=r.top?r.top-this.tribute.menuContainer.offsetTop:r.top),r}},{key:"scrollIntoView",value:function(t){var e,n=this.menu;if(void 0!==n){for(;void 0===e||0===e.height;)if(0===(e=n.getBoundingClientRect()).height&&(void 0===(n=n.childNodes[0])||!n.getBoundingClientRect))return;var i=e.top,s=i+e.height;if(i<0)window.scrollTo(0,window.pageYOffset+e.top-20);else if(s>window.innerHeight){var o=window.pageYOffset+e.top-20;o-window.pageYOffset>100&&(o=window.pageYOffset+100);var a=window.pageYOffset-(window.innerHeight-s);a>o&&(a=o),window.scrollTo(0,a)}}}},{key:"menuContainerIsBody",get:function(){return this.tribute.menuContainer===document.body||!this.tribute.menuContainer}}]),e}(),r=function(){function e(n){t(this,e),this.tribute=n,this.tribute.search=this}return n(e,[{key:"simpleFilter",value:function(t,e){var n=this;return e.filter((function(e){return n.test(t,e)}))}},{key:"test",value:function(t,e){return null!==this.match(t,e)}},{key:"match",value:function(t,e,n){n=n||{},e.length;var i=n.pre||"",s=n.post||"",o=n.caseSensitive&&e||e.toLowerCase();if(n.skip)return{rendered:e,score:0};t=n.caseSensitive&&t||t.toLowerCase();var a=this.traverse(o,t,0,0,[]);return a?{rendered:this.render(e,a.cache,i,s),score:a.score}:null}},{key:"traverse",value:function(t,e,n,i,s){if(e.length===i)return{score:this.calculateScore(s),cache:s.slice()};if(!(t.length===n||e.length-i>t.length-n)){for(var o,a,r=e[i],l=t.indexOf(r,n);l>-1;){if(s.push(l),a=this.traverse(t,e,l+1,i+1,s),s.pop(),!a)return o;(!o||o.score0&&(t[s-1]+1===i?n+=n+1:n=1),e+=n})),e}},{key:"render",value:function(t,e,n,i){var s=t.substring(0,e[0]);return e.forEach((function(o,a){s+=n+t[o]+i+t.substring(o+1,e[a+1]?e[a+1]:t.length)})),s}},{key:"filter",value:function(t,e,n){var i=this;return n=n||{},e.reduce((function(e,s,o,a){var r=s;n.extract&&((r=n.extract(s))||(r=""));var l=i.match(t,r,n);return null!=l&&(e[e.length]={string:l.rendered,score:l.score,index:o,original:s}),e}),[]).sort((function(t,e){return e.score-t.score||t.index-e.index}))}}]),e}();return function(){function e(n){var i,l=this,c=n.values,d=void 0===c?null:c,u=n.iframe,m=void 0===u?null:u,p=n.selectClass,h=void 0===p?"highlight":p,f=n.containerClass,v=void 0===f?"tribute-container":f,g=n.itemClass,b=void 0===g?"":g,w=n.trigger,x=void 0===w?"@":w,y=n.autocompleteMode,_=void 0!==y&&y,C=n.selectTemplate,k=void 0===C?null:C,S=n.menuItemTemplate,M=void 0===S?null:S,E=n.lookup,T=void 0===E?"key":E,A=n.fillAttr,z=void 0===A?"value":A,L=n.collection,P=void 0===L?null:L,$=n.menuContainer,I=void 0===$?null:$,N=n.noMatchTemplate,O=void 0===N?null:N,R=n.requireLeadingSpace,D=void 0===R||R,j=n.allowSpaces,U=void 0!==j&&j,F=n.replaceTextSuffix,H=void 0===F?null:F,B=n.positionMenu,W=void 0===B||B,q=n.spaceSelectsMatch,V=void 0!==q&&q,Y=n.searchOpts,K=void 0===Y?{}:Y,X=n.menuItemLimit,G=void 0===X?null:X,J=n.menuShowMinLength,Q=void 0===J?0:J;if(t(this,e),this.autocompleteMode=_,this.menuSelected=0,this.current={},this.inputEvent=!1,this.isActive=!1,this.menuContainer=I,this.allowSpaces=U,this.replaceTextSuffix=H,this.positionMenu=W,this.hasTrailingSpace=!1,this.spaceSelectsMatch=V,this.autocompleteMode&&(x="",U=!1),d)this.collection=[{trigger:x,iframe:m,selectClass:h,containerClass:v,itemClass:b,selectTemplate:(k||e.defaultSelectTemplate).bind(this),menuItemTemplate:(M||e.defaultMenuItemTemplate).bind(this),noMatchTemplate:(i=O,"string"==typeof i?""===i.trim()?null:i:"function"==typeof i?i.bind(l):O||function(){return"
No Match Found!
"}.bind(l)),lookup:T,fillAttr:z,values:d,requireLeadingSpace:D,searchOpts:K,menuItemLimit:G,menuShowMinLength:Q}];else{if(!P)throw new Error("[Tribute] No collection specified.");this.autocompleteMode&&console.warn("Tribute in autocomplete mode does not work for collections"),this.collection=P.map((function(t){return{trigger:t.trigger||x,iframe:t.iframe||m,selectClass:t.selectClass||h,containerClass:t.containerClass||v,itemClass:t.itemClass||b,selectTemplate:(t.selectTemplate||e.defaultSelectTemplate).bind(l),menuItemTemplate:(t.menuItemTemplate||e.defaultMenuItemTemplate).bind(l),noMatchTemplate:function(t){return"string"==typeof t?""===t.trim()?null:t:"function"==typeof t?t.bind(l):O||function(){return"
No Match Found!
"}.bind(l)}(O),lookup:t.lookup||T,fillAttr:t.fillAttr||z,values:t.values,requireLeadingSpace:t.requireLeadingSpace,searchOpts:t.searchOpts||K,menuItemLimit:t.menuItemLimit||G,menuShowMinLength:t.menuShowMinLength||Q}}))}new a(this),new s(this),new o(this),new r(this)}return n(e,[{key:"triggers",value:function(){return this.collection.map((function(t){return t.trigger}))}},{key:"attach",value:function(t){if(!t)throw new Error("[Tribute] Must pass in a DOM node or NodeList.");if("undefined"!=typeof jQuery&&t instanceof jQuery&&(t=t.get()),t.constructor===NodeList||t.constructor===HTMLCollection||t.constructor===Array)for(var e=t.length,n=0;n",post:n.current.collection.searchOpts.post||"",skip:n.current.collection.searchOpts.skip,extract:function(t){if("string"==typeof n.current.collection.lookup)return t[n.current.collection.lookup];if("function"==typeof n.current.collection.lookup)return n.current.collection.lookup(t,n.current.mentionText);throw new Error("Invalid lookup attribute, lookup must be string or function.")}});n.current.collection.menuItemLimit&&(i=i.slice(0,n.current.collection.menuItemLimit)),n.current.filteredItems=i;var s=n.menu.querySelector("ul");if(n.range.positionMenuAtCaret(e),!i.length){var o=new CustomEvent("tribute-no-match",{detail:n.menu});return n.current.element.dispatchEvent(o),void("function"==typeof n.current.collection.noMatchTemplate&&!n.current.collection.noMatchTemplate()||!n.current.collection.noMatchTemplate?n.hideMenu():"function"==typeof n.current.collection.noMatchTemplate?s.innerHTML=n.current.collection.noMatchTemplate():s.innerHTML=n.current.collection.noMatchTemplate)}s.innerHTML="";var a=n.range.getDocument().createDocumentFragment();i.forEach((function(t,e){var i=n.range.getDocument().createElement("li");i.setAttribute("data-index",e),i.className=n.current.collection.itemClass,i.addEventListener("mousemove",(function(t){var e=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],i=!0,s=!1,o=void 0;try{for(var a,r=t[Symbol.iterator]();!(i=(a=r.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){s=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(s)throw o}}return n}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(n._findLiTarget(t.target),2),i=(e[0],e[1]);0!==t.movementY&&n.events.setActiveLi(i)})),n.menuSelected===e&&i.classList.add(n.current.collection.selectClass),i.innerHTML=n.current.collection.menuItemTemplate(t),a.appendChild(i)})),s.appendChild(a)}};"function"==typeof this.current.collection.values?this.current.collection.values(this.current.mentionText,i):i(this.current.collection.values)}}},{key:"_findLiTarget",value:function(t){if(!t)return[];var e=t.getAttribute("data-index");return e?[t,e]:this._findLiTarget(t.parentNode)}},{key:"showMenuForCollection",value:function(t,e){t!==document.activeElement&&this.placeCaretAtEnd(t),this.current.collection=this.collection[e||0],this.current.externalTrigger=!0,this.current.element=t,t.isContentEditable?this.insertTextAtCursor(this.current.collection.trigger):this.insertAtCaret(t,this.current.collection.trigger),this.showMenuFor(t)}},{key:"placeCaretAtEnd",value:function(t){if(t.focus(),void 0!==window.getSelection&&void 0!==document.createRange){var e=document.createRange();e.selectNodeContents(t),e.collapse(!1);var n=window.getSelection();n.removeAllRanges(),n.addRange(e)}else if(void 0!==document.body.createTextRange){var i=document.body.createTextRange();i.moveToElementText(t),i.collapse(!1),i.select()}}},{key:"insertTextAtCursor",value:function(t){var e,n;(n=(e=window.getSelection()).getRangeAt(0)).deleteContents();var i=document.createTextNode(t);n.insertNode(i),n.selectNodeContents(i),n.collapse(!1),e.removeAllRanges(),e.addRange(n)}},{key:"insertAtCaret",value:function(t,e){var n=t.scrollTop,i=t.selectionStart,s=t.value.substring(0,i),o=t.value.substring(t.selectionEnd,t.value.length);t.value=s+e+o,i+=e.length,t.selectionStart=i,t.selectionEnd=i,t.focus(),t.scrollTop=n}},{key:"hideMenu",value:function(){this.menu&&(this.menu.style.cssText="display: none;",this.isActive=!1,this.menuSelected=0,this.current={})}},{key:"selectItemAtIndex",value:function(t,e){if("number"==typeof(t=parseInt(t))&&!isNaN(t)){var n=this.current.filteredItems[t],i=this.current.collection.selectTemplate(n);null!==i&&this.replaceText(i,e,n)}}},{key:"replaceText",value:function(t,e,n){this.range.replaceTriggerText(t,!0,!0,e,n)}},{key:"_append",value:function(t,e,n){if("function"==typeof t.values)throw new Error("Unable to append to values, as it is a function.");t.values=n?e:t.values.concat(e)}},{key:"append",value:function(t,e,n){var i=parseInt(t);if("number"!=typeof i)throw new Error("please provide an index for the collection to update.");var s=this.collection[i];this._append(s,e,n)}},{key:"appendCurrent",value:function(t,e){if(!this.isActive)throw new Error("No active state. Please use append instead and pass an index.");this._append(this.current.collection,t,e)}},{key:"detach",value:function(t){if(!t)throw new Error("[Tribute] Must pass in a DOM node or NodeList.");if("undefined"!=typeof jQuery&&t instanceof jQuery&&(t=t.get()),t.constructor===NodeList||t.constructor===HTMLCollection||t.constructor===Array)for(var e=t.length,n=0;n'+(this.current.collection.trigger+t.original[this.current.collection.fillAttr])+"":this.current.collection.trigger+t.original[this.current.collection.fillAttr]}},{key:"defaultMenuItemTemplate",value:function(t){return t.string}},{key:"inputTypes",value:function(){return["TEXTAREA","INPUT"]}}]),e}()}()},"5CDs":function(t,e,n){"use strict";n("z6B+")},6:function(t,e,n){t.exports=n("KqaD")},"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 n=e.protocol+"//"+e.host,i=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var s,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:(s=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:i+o.replace(/^\.\//,""),"url("+JSON.stringify(s)+")")}))}},"9wGH":function(t,e,n){"use strict";n.r(e);var i={props:["status"]},s=n("KHd+"),o=Object(s.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return 1==t.status.sensitive?n("div",[n("details",{staticClass:"details-animated"},[n("summary",[n("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(" "),n("p",{staticClass:"font-weight-light"},[t._v("(click to show)")])]),t._v(" "),n("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 n("b-carousel-slide",{key:t.id+"-media"},[n("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"},[n("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)]):n("div",[n("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 n("b-carousel-slide",{key:t.id+"-media"},[n("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"},[n("source",{attrs:{src:t.url,type:t.mime}})])])})),1)],1)}),[],!1,null,null,null);e.default=o.exports},ArTN:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.card-img-top[data-v-64a93274] {\n border-top-left-radius: 0 !important;\n border-top-right-radius: 0 !important;\n}\n.content-label-wrapper[data-v-64a93274] {\n\tposition: relative;\n}\n.content-label[data-v-64a93274] {\n\tmargin: 0;\n\tposition: absolute;\n\ttop:50%;\n\tleft:50%;\n\ttransform: translate(-50%, -50%);\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 100%;\n\theight: 100%;\n\tz-index: 2;\n\tbackground: rgba(0, 0, 0, 0.2)\n}\n",""])},BF29:function(t,e,n){var i=n("Oa72");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},BUee:function(t,e,n){var i=n("DAU9");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},DAU9:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n#storyContainer .story {\n\tmargin-right: 2rem;\n\twidth: 100%;\n\tmax-width: 60px;\n}\n.stories.carousel .story > .item-link > .item-preview {\n\theight: 60px;\n}\n#zuck-modal.with-effects {\n\twidth: 100%;\n}\n.stories.carousel .story > .item-link > .info .name {\n\tfont-weight: 500;\n\tfont-size: 11px;\n}\n.stories.carousel .story > .item-link > .info {\n}\n",""])},DXlh:function(t,e,n){var i=n("L3xL");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},FAM0:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.emoji-reactions .nav-item[data-v-96c0cee2] {\n\tfont-size: 1.2rem;\n\tpadding: 9px;\n\tcursor: pointer;\n}\n.emoji-reactions[data-v-96c0cee2]::-webkit-scrollbar {\n\twidth: 0px;\n\theight: 0px;\n\tbackground: transparent;\n}\n",""])},I1BE:function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var s=(a=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}));return[n].concat(o).concat([s]).join("\n")}var a;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},s=0;s1&&void 0!==arguments[1]?arguments[1]:60;return _.truncate(t,{length:e})},replyFocus:function(t,e){var n=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 i=t.account.local?"@"+t.account.username+" ":"@"+t.account.acct+" ";1==n&&(this.replyText=i),this.$refs.replyModal.show(),setTimeout((function(){$(".replyModalTextarea").focus()}),500)}}else this.redirect("/login?next="+encodeURIComponent(window.location.pathname))},commentSubmit:function(t,e){var n=this;this.replySending=!0;var i=t.id,s=this.replyText,o=this.config.uploader.max_caption_length;if(s.length>o)return this.replySending=!1,void swal("Comment Too Long","Please make sure your comment is "+o+" characters or less.","error");axios.post("/i/comment",{item:i,comment:s,sensitive:this.replyNsfw}).then((function(t){n.replyText="",n.replies.push(t.data.entity),n.$refs.replyModal.hide()})),this.replySending=!1},timeAgo:function(t){return App.util.format.timeAgo(t)},fetchComments:function(){var t=this;console.log("Fetching comments...");var e="/api/v2/comments/"+this.status.account.id+"/status/"+this.status.id;axios.get(e).then((function(e){t.replies=e.data.data,t.pagination=e.data.meta.pagination})).catch((function(t){if(t.response)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.")}))},loadMoreComments:function(){var t=this;if(1!=this.pagination.total_pages&&this.pagination.current_page!=this.pagination.total_pages){$(".load-more-link").addClass("d-none"),$(".postCommentsLoader").removeClass("d-none");var e=this.pagination.links.next;axios.get(e).then((function(e){var n=e.data.data;$(".postCommentsLoader").addClass("d-none");for(var i=0;i0?n("div",{staticClass:"cursor-pointer pb-2",on:{click:function(n){return t.toggleReplies(e)}}},[n("span",{staticClass:"show-reply-bar"}),t._v(" "),n("span",{staticClass:"comment-reaction small font-weight-bold"},[t._v(t._s(e.thread?"Hide":"View")+" Replies ("+t._s(e.reply_count)+")")])]):t._e(),t._v(" "),1==e.thread?n("div",{staticClass:"comment-thread"},t._l(e.replies,(function(e,s){return n("div",{key:"cr"+e.id+"_"+i,staticClass:"py-1 media"},[n("img",{staticClass:"rounded-circle border mr-3",attrs:{src:e.account.avatar,width:"25px",height:"25px"}}),t._v(" "),n("div",{staticClass:"media-body"},[n("p",{staticClass:"d-flex justify-content-between align-items-top read-more mb-0",staticStyle:{"overflow-y":"hidden"}},[n("span",{staticClass:"mr-2",staticStyle:{"font-size":"13px"}},[n("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(" "),n("span",{staticClass:"text-break comment-body",staticStyle:{"word-break":"break-all"},domProps:{innerHTML:t._s(e.content)}})]),t._v(" "),n("span",[n("span",{on:{click:function(n){return t.likeReply(e,n)}}},[n("i",{class:[e.favourited?"fas fa-heart fa-sm text-danger":"far fa-heart fa-sm text-lighter"]})])])]),t._v(" "),n("p",{staticClass:"mb-0"},[t._o(n("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+"_"+i),t._v(" "),e.favourites_count?n("span",{staticClass:"text-muted comment-reaction font-weight-bold mr-3"},[t._v(t._s(1==e.favourites_count?"1 like":e.favourites_count+" likes"))]):t._e()])])])})),0):t._e()])])]):t._e()})),t._v(" "),t.replies.length?t._e():n("div",[n("p",{staticClass:"text-center text-muted font-weight-bold small"},[t._v("No comments yet")])])],2)]),t._v(" "),n("div",{staticClass:"card-footer mb-3"},[n("div",{staticClass:"align-middle d-flex"},[n("img",{staticClass:"rounded-circle border mr-3",attrs:{src:t.profile.avatar,width:"36",height:"36"}}),t._v(" "),n("textarea",{staticClass:"form-control rounded-pill",staticStyle:{resize:"none","overflow-y":"hidden"},attrs:{name:"comment",placeholder:"Add a comment…",autocomplete:"off",autocorrect:"off",rows:"1",maxlength:"0"},on:{click:function(e){return t.replyFocus(t.status)}}})])])])])])]),t._v(" "),n("context-menu",{ref:"cMenu",attrs:{status:t.ctxMenuStatus,profile:t.profile}}),t._v(" "),n("b-modal",{ref:"replyModal",attrs:{id:"ctx-reply-modal","hide-footer":"",centered:"",rounded:"","title-html":t.status.account?"Reply to "+t.status.account.username+"":"","title-tag":"p","title-class":"font-weight-bold text-muted",size:"md","body-class":"p-2 rounded"}},[n("div",[n("vue-tribute",{attrs:{options:t.tributeSettings}},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.replyText,expression:"replyText"}],staticClass:"form-control replyModalTextarea",attrs:{rows:"4"},domProps:{value:t.replyText},on:{input:function(e){e.target.composing||(t.replyText=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"border-top border-bottom my-2"},[n("ul",{staticClass:"nav align-items-center emoji-reactions",staticStyle:{"overflow-x":"scroll","flex-wrap":"unset"}},t._l(t.emoji,(function(e){return n("li",{staticClass:"nav-item",on:{click:function(e){return t.emojiReaction(t.status)}}},[t._v(t._s(e))])})),0)]),t._v(" "),n("div",{staticClass:"d-flex justify-content-between align-items-center"},[n("div",[n("span",{staticClass:"pl-2 small text-muted font-weight-bold text-monospace"},[n("span",{class:[t.replyText.length>t.config.uploader.max_caption_length?"text-danger":"text-dark"]},[t._v(t._s(t.replyText.length>t.config.uploader.max_caption_length?t.config.uploader.max_caption_length-t.replyText.length:t.replyText.length))]),t._v("/"+t._s(t.config.uploader.max_caption_length)+"\n\t\t\t\t\t")])]),t._v(" "),n("div",{staticClass:"d-flex align-items-center"},[n("div",{staticClass:"custom-control custom-switch mr-3"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.replyNsfw,expression:"replyNsfw"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"replyModalCWSwitch"},domProps:{checked:Array.isArray(t.replyNsfw)?t._i(t.replyNsfw,null)>-1:t.replyNsfw},on:{change:function(e){var n=t.replyNsfw,i=e.target,s=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.replyNsfw=n.concat([null])):o>-1&&(t.replyNsfw=n.slice(0,o).concat(n.slice(o+1)))}else t.replyNsfw=s}}}),t._v(" "),n("label",{class:[t.replyNsfw?"custom-control-label font-weight-bold text-dark":"custom-control-label text-lighter"],attrs:{for:"replyModalCWSwitch"}},[t._v("Mark as NSFW")])]),t._v(" "),n("button",{staticClass:"btn btn-primary btn-sm py-2 px-4 lead text-uppercase font-weight-bold",attrs:{disabled:0==t.replyText.length},on:{click:function(e){return e.preventDefault(),t.commentSubmit(t.status,e)}}},[t._v("\n\t\t\t\t\t\t"+t._s(1==t.replySending?"POSTING":"POST")+"\n\t\t\t\t\t")])])])],1)])],1)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("p",{staticClass:"font-weight-bold mb-0 h5"},[this._v("Comments")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("i",{staticClass:"fas fa-cog fa-lg text-white"})])},function(){var t=this.$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...")])])])}],!1,null,"96c0cee2",null).exports;function l(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n40&&(this.loading=!1,t.complete());var n=!1;switch(this.scope){case"home":n="/api/pixelfed/v1/timelines/home";break;case"local":n="/api/pixelfed/v1/timelines/public";break;case"network":n="/api/pixelfed/v1/timelines/network"}axios.get(n,{params:{max_id:this.max_id,limit:6,recent_feed:this.recentFeed}}).then((function(n){if(n.data.length&&0==e.loading){var i=n.data,s=e;if(s.recentFeed&&-1!=s.ids.indexOf(i[0].id))return e.loading=!1,void t.complete();i.forEach((function(t,e){-1==s.ids.indexOf(t.id)&&(s.feed.push(t),s.ids.push(t.id))})),e.min_id=Math.max.apply(Math,l(e.ids)).toString(),e.max_id=Math.min.apply(Math,l(e.ids)).toString(),e.page+=1,t.loaded(),e.loading=!1}else t.complete()})).catch((function(n){e.loading=!1,t.complete()}))}},redirect:function(t){window.location.href=t},expRec:function(){var t=this;0!=this.config.ab.rec&&axios.get("/api/local/exp/rec").then((function(e){t.suggestions=e.data}))},expRecFollow:function(t,e){},owner:function(t){return this.profile.id===t.account.id},admin:function(){return 1==this.profile.is_admin},ownerOrAdmin:function(t){return this.owner(t)||this.admin()},hideSuggestions:function(){localStorage.setItem("pf_metro_ui.exp.rec",!1),this.showSuggestions=!1},emojiReaction:function(t){var e=event.target.innerText;0==this.replyText.length?(this.replyText=e+" ",$('textarea[name="comment"]').focus()):(this.replyText+=e+" ",$('textarea[name="comment"]').focus())},refreshSuggestions:function(){},fetchHashtagPosts:function(){var t=this;axios.get("/api/local/discover/tag/list").then((function(e){var n=e.data;if(0!=n.length){var i=n[Math.floor(Math.random(),n.length)];t.hashtagPostsName=i,axios.get("/api/v2/discover/tag",{params:{hashtag:i}}).then((function(e){e.data.tags.length>3&&(t.showHashtagPosts=!0,t.hashtagPosts=e.data.tags.splice(0,9))}))}}))},commentFocus:function(t,e){t.comments_disabled||(this.status=t,this.replies={},this.replyStatus={},this.replyText="",this.replyId=t.id,this.replyStatus=t,this.fetchStatusComments(t,""),$("nav").hide(),$("footer").hide(),$(".mobile-footer-spacer").attr("style","display:none !important"),$(".mobile-footer").attr("style","display:none !important"),this.currentLayout="comments",window.history.pushState({},"",this.statusUrl(t)))},fetchStatusComments:function(t,e){var n=this,i="/api/v2/comments/"+t.account.id+"/status/"+t.id;axios.get(i).then((function(t){n.replies=_.reverse(t.data.data),n.pagination=t.data.meta.pagination,n.replies.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.")}))},statusUrl:function(t){return 1==t.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},profileUrl:function(t){return 1==t.local?t.account.url:"/i/web/profile/_/"+t.account.id},formatCount:function(t){return App.util.format.count(t)},hasStory:function(){var t=this;axios.get("/api/stories/v0/exists/"+this.profile.id).then((function(e){t.userStory=e.data}))},rtw:function(){var t=this;this.mpPoller=setInterval((function(){var e=!1;switch(t.mpCount++,t.mpCount>10&&(t.mpInterval=3e4),t.mpCount>50&&(t.mpInterval=3e5),t.scope){case"home":e="/api/pixelfed/v1/timelines/home";break;case"local":e="/api/pixelfed/v1/timelines/public";break;case"network":e="/api/pixelfed/v1/timelines/network"}axios.get(e,{params:{max_id:0,limit:20,recent_feed:t.recentFeed}}).then((function(e){var n=t,i=t.feed.map((function(t){return t.id})),s=e.data.filter((function(t){return t.id>n.min_id&&-1==i.indexOf(t.id)})),o=s.map((function(t){return t.id}));Math.max.apply(Math,l(o)).toString()>t.min_id&&(t.morePostsAvailable=!0,t.mpData=s)}))}),this.mpInterval)},syncNewPosts:function(){var t,e=this.mpData,n=e.map((function(t){return t.id}));this.min_id=Math.max.apply(Math,l(n)).toString(),this.max_id=Math.min.apply(Math,l(n)).toString(),(t=this.feed).unshift.apply(t,l(e)),this.morePostsAvailable=!1,this.mpData=null},toggleReplies:function(t){if(t.thread)t.thread=!1;else{if(t.replies.length>0)return void(t.thread=!0);var e="/api/v2/comments/"+t.account.id+"/status/"+t.id;axios.get(e).then((function(e){t.replies=_.reverse(e.data.data),t.thread=!0}))}},replyFocus:function(t,e){var n=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 i=t.account.local?"@"+t.account.username+" ":"@"+t.account.acct+" ";1==n&&(this.replyText=i),this.$refs.replyModal.show(),setTimeout((function(){$(".replyModalTextarea").focus()}),500)}}else this.redirect("/login?next="+encodeURIComponent(window.location.pathname))},alwaysViewOlderPosts:function(){window.localStorage.setItem("pf.feed:avop","always"),window.location.href="/"},setCurrentLayout:function(t){this.currentLayout=t},deleteStatus:function(t){this.feed=this.feed.filter((function(e){return e.id!=t}))}},beforeDestroy:function(){clearInterval(this.mpInterval)}},u=(n("xZDn"),Object(a.a)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",["feed"===t.currentLayout?n("div",{staticClass:"container"},[n("div",{staticClass:"row"},[1==t.morePostsAvailable?n("div",{staticClass:"col-12 mt-5 pt-3 mb-3 fixed-top"},[n("p",{staticClass:"text-center"},[n("button",{staticClass:"btn btn-dark px-4 rounded-pill font-weight-bold shadow",on:{click:t.syncNewPosts}},[t._v("Load New Posts")])])]):t._e(),t._v(" "),n("div",{staticClass:"col-md-8 col-lg-8 px-0 mb-sm-3 timeline order-2 order-md-1"},[n("div",{staticStyle:{"margin-top":"-2px"}},[t.config.features.stories?n("story-component"):t._e()],1),t._v(" "),n("div",[t.loading?n("div",{staticClass:"text-center",staticStyle:{"padding-top":"10px"}},[t._m(0)]):t._e(),t._v(" "),t._l(t.feed,(function(e,i){return n("div",{key:"feed-"+i+"-"+e.id,attrs:{"data-status-id":e.id}},[0==i&&t.showTips&&!t.loading?n("div",{staticClass:"my-4 card-tips"},[n("announcements-card",{on:{"show-tips":function(e){t.showTips=e}}})],1):t._e(),t._v(" "),2==i&&1==t.showSuggestions&&t.suggestions.length?n("div",{staticClass:"card status-card rounded-0 shadow-none border"},[n("div",{staticClass:"card-header d-flex align-items-center justify-content-between bg-white border-0 pb-0"},[n("h6",{staticClass:"text-muted font-weight-bold mb-0"},[t._v("Suggestions For You")]),t._v(" "),n("span",{staticClass:"cursor-pointer text-muted",on:{click:t.hideSuggestions}},[n("i",{staticClass:"fas fa-times"})])]),t._v(" "),n("div",{staticClass:"card-body row mx-0"},t._l(t.suggestions,(function(e,i){return n("div",{staticClass:"col-12 col-md-4 mb-3"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-body text-center pt-3"},[n("p",{staticClass:"mb-0"},[n("a",{attrs:{href:"/"+e.username}},[n("img",{staticClass:"img-fluid rounded-circle cursor-pointer",attrs:{src:e.avatar,width:"45px",height:"45px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})])]),t._v(" "),n("div",{staticClass:"py-3"},[n("p",{staticClass:"font-weight-bold text-dark cursor-pointer mb-0"},[n("a",{staticClass:"text-decoration-none text-dark",attrs:{href:"/"+e.username}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),n("p",{staticClass:"small text-muted mb-0"},[t._v(t._s(e.message))])]),t._v(" "),n("p",{staticClass:"mb-0"},[n("a",{staticClass:"btn btn-primary btn-block font-weight-bold py-0",attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.expRecFollow(e.id,i)}}},[t._v("Follow")])])])])])})),0)]):t._e(),t._v(" "),4==i&&t.showHashtagPosts&&t.hashtagPosts.length?n("div",{staticClass:"card status-card rounded-0 shadow-none border border-top-0"},[n("div",{staticClass:"card-header bg-white border-0 mb-0"},[n("div",{staticClass:"d-flex align-items-center justify-content-between pt-2"},[n("div"),t._v(" "),n("div",[n("h6",{staticClass:"text-muted lead font-weight-bold mb-0"},[n("a",{attrs:{href:"/discover/tags/"+t.hashtagPostsName+"?src=tr"}},[t._v("#"+t._s(t.hashtagPostsName))])])]),t._v(" "),n("div",{staticClass:"cursor-pointer text-muted",on:{click:function(e){t.showHashtagPosts=!1}}},[n("i",{staticClass:"fas fa-times"})])]),t._v(" "),t._m(1,!0)]),t._v(" "),n("div",{staticClass:"card-body row mx-0"},t._l(t.hashtagPosts,(function(e,i){return n("div",{staticClass:"col-4 p-1 hashtag-post-square"},[n("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:e.status.url}},[n("div",{staticClass:"square"},[e.status.sensitive?n("div",{staticClass:"square-content"},[t._m(2,!0),t._v(" "),n("blur-hash-canvas",{attrs:{width:"32",height:"32",hash:e.status.media_attachments[0].blurhash}})],1):n("div",{staticClass:"square-content"},[n("blur-hash-image",{attrs:{width:"32",height:"32",hash:e.status.media_attachments[0].blurhash,src:e.status.media_attachments[0].preview_url,onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}})],1)])])])})),0)]):t._e(),t._v(" "),n("status-card",{class:{"border-top":0===i},attrs:{status:e,"reaction-bar":t.reactionBar},on:{"status-delete":t.deleteStatus,"comment-focus":t.commentFocus}})],1)})),t._v(" "),!t.loading&&t.feed.length?n("div",[n("div",{staticClass:"card rounded-0 border-top-0 status-card rounded-0 shadow-none border"},[n("div",{staticClass:"card-body py-5 my-5"},[n("infinite-loading",{attrs:{distance:800},on:{infinite:t.infiniteTimeline}},[n("div",{attrs:{slot:"no-more"},slot:"no-more"},[t.recentFeed?n("div",[n("p",{staticClass:"text-center"},[n("i",{staticClass:"far fa-check-circle fa-8x text-lighter"})]),t._v(" "),n("p",{staticClass:"text-center h3 font-weight-light"},[t._v("You're All Caught Up!")]),t._v(" "),n("p",{staticClass:"text-center text-muted font-weight-light"},[t._v("You've seen all the new posts from the accounts you follow.")]),t._v(" "),n("p",{staticClass:"text-center mb-0"},[n("a",{staticClass:"btn btn-link font-weight-bold px-4",attrs:{href:"/?a=vop"}},[t._v("View Older Posts")])]),t._v(" "),n("p",{staticClass:"text-center mb-0"},[n("a",{staticClass:"btn btn-link font-weight-bold px-4",attrs:{href:"/"},on:{click:function(e){return e.preventDefault(),t.alwaysViewOlderPosts()}}},[t._v("Always show older posts on this device")])])]):n("div",[n("p",{staticClass:"text-center h3 font-weight-light"},[t._v("You've reached the end of this feed")]),t._v(" "),n("p",{staticClass:"text-center mb-0"},[n("a",{staticClass:"btn btn-link font-weight-bold px-4",attrs:{href:"/discover"}},[t._v("Discover new posts and people")])])])]),t._v(" "),n("div",{attrs:{slot:"no-results"},slot:"no-results"},[t.recentFeed?n("div",[n("p",{staticClass:"text-center"},[n("i",{staticClass:"far fa-check-circle fa-8x text-lighter"})]),t._v(" "),n("p",{staticClass:"text-center h3 font-weight-light"},[t._v("You're All Caught Up!")]),t._v(" "),n("p",{staticClass:"text-center text-muted font-weight-light"},[t._v("You've seen all the new posts from the accounts you follow.")]),t._v(" "),n("p",{staticClass:"text-center mb-0"},[n("a",{staticClass:"btn btn-link font-weight-bold px-4",attrs:{href:"/?a=vop"}},[t._v("View Older Posts")])]),t._v(" "),n("p",{staticClass:"text-center mb-0"},[n("a",{staticClass:"btn btn-link font-weight-bold px-4",attrs:{href:"/"},on:{click:function(e){return e.preventDefault(),t.alwaysViewOlderPosts()}}},[t._v("Always show older posts on this device")])])]):n("div",[n("p",{staticClass:"text-center h3 font-weight-light"},[t._v("You've reached the end of this feed")]),t._v(" "),n("p",{staticClass:"text-center mb-0"},[n("a",{staticClass:"btn btn-link font-weight-bold px-4",attrs:{href:"/discover"}},[t._v("Discover new posts and people")])])])])])],1)])]):t._e(),t._v(" "),t.loading||"home"!=t.scope||0!=t.feed.length?t._e():n("div",[n("div",{staticClass:"card rounded-0 mt-4 status-card rounded-0 shadow-none border"},["0"!=t.profile.following_count?n("div",{staticClass:"card-body py-5 my-5"},[t._m(3),t._v(" "),n("p",{staticClass:"text-center h3 font-weight-light"},[t._v("You're All Caught Up!")]),t._v(" "),n("p",{staticClass:"text-center text-muted font-weight-light"},[t._v("You've seen all the new posts from the accounts you follow.")]),t._v(" "),t._m(4),t._v(" "),n("p",{staticClass:"text-center mb-0"},[n("a",{staticClass:"btn btn-link font-weight-bold px-4",attrs:{href:"/"},on:{click:function(e){return e.preventDefault(),t.alwaysViewOlderPosts()}}},[t._v("Always show older posts on this device")])])]):n("div",{staticClass:"card-body py-5 my-5"},[t._m(5),t._v(" "),n("p",{staticClass:"text-center h3 font-weight-light"},[t._v("Hello "+t._s(t.profile.username))]),t._v(" "),n("p",{staticClass:"text-center text-muted font-weight-light"},[t._v("Accounts you follow will appear in this feed.")]),t._v(" "),t._m(6)])])]),t._v(" "),!t.loading&&"home"==t.scope&&t.recentFeed&&t.discover_feed.length?n("div",{staticClass:"pt-3"},[t._m(7)]):t._e(),t._v(" "),t._l(t.discover_feed,(function(e,i){return!t.loading&&"home"==t.scope&&t.recentFeed&&t.discover_feed.length?n("div",{key:"discover_feed-"+i+"-"+e.id,attrs:{"data-status-id":e.id}},[n("status-card",{class:{"border-top":0===i},attrs:{status:e,recommended:!0}})],1):t._e()})),t._v(" "),!t.loading&&t.emptyFeed?n("div",[t._m(8)]):t._e()],2)]),t._v(" "),n("div",{staticClass:"col-md-4 col-lg-4 my-4 order-1 order-md-2 d-none d-md-block"},[n("div",[n("div",{staticClass:"mb-4"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:"!loading"}]},[n("div",{staticClass:"pb-2"},[n("div",{staticClass:"media d-flex align-items-center"},[n("a",{staticClass:"mr-3",attrs:{href:t.userStory?"/stories/"+t.profile.acct:t.profile.url}},[t.userStory?n("div",{staticClass:"has-story cursor-pointer shadow-sm",on:{click:function(e){return t.storyRedirect()}}},[n("img",{staticClass:"rounded-circle box-shadow",attrs:{src:t.profile.avatar,width:"64px",height:"64px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})]):n("div",[n("img",{staticClass:"rounded-circle box-shadow",attrs:{src:t.profile.avatar,width:"64px",height:"64px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})])]),t._v(" "),n("div",{staticClass:"media-body d-flex justify-content-between word-break"},[n("div",[n("p",{staticClass:"mb-0 px-0 font-weight-bold"},[n("a",{staticClass:"text-dark",attrs:{href:t.profile.url}},[t._v(t._s(t.profile.username||"loading..."))])]),t._v(" "),n("p",{staticClass:"my-0 text-muted pb-0"},[t._v(t._s(t.profile.display_name||"loading..."))])]),t._v(" "),t._m(9)])])])]),t._v(" "),n("div",{staticClass:"card-footer bg-transparent border-0 pt-0 pb-1"},[n("div",{staticClass:"d-flex justify-content-between text-center"},[n("span",{staticClass:"cursor-pointer",on:{click:function(e){return t.redirect(t.profile.url)}}},[n("p",{staticClass:"mb-0 font-weight-bold"},[t._v(t._s(t.formatCount(t.profile.statuses_count)))]),t._v(" "),n("p",{staticClass:"mb-0 small text-muted"},[t._v("Posts")])]),t._v(" "),n("span",{staticClass:"cursor-pointer",on:{click:function(e){return t.redirect(t.profile.url+"?md=followers")}}},[n("p",{staticClass:"mb-0 font-weight-bold"},[t._v(t._s(t.formatCount(t.profile.followers_count)))]),t._v(" "),n("p",{staticClass:"mb-0 small text-muted"},[t._v("Followers")])]),t._v(" "),n("span",{staticClass:"cursor-pointer",on:{click:function(e){return t.redirect(t.profile.url+"?md=following")}}},[n("p",{staticClass:"mb-0 font-weight-bold"},[t._v(t._s(t.formatCount(t.profile.following_count)))]),t._v(" "),n("p",{staticClass:"mb-0 small text-muted"},[t._v("Following")])])])])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:1==t.modes.notify&&!t.loading,expression:"modes.notify == true && !loading"}],staticClass:"mb-4"},[n("notification-card")],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:1==t.showSuggestions&&t.suggestions.length&&t.config.ab&&1==t.config.ab.rec,expression:"showSuggestions == true && suggestions.length && config.ab && config.ab.rec == true"}],staticClass:"mb-4"},[n("div",{staticClass:"card shadow-none border"},[n("div",{staticClass:"card-header bg-white d-flex align-items-center justify-content-between"},[n("a",{ref:"suggestionRefresh",staticClass:"small text-muted cursor-pointer",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.refreshSuggestions(e)}}},[n("i",{staticClass:"fas fa-sync-alt"})]),t._v(" "),n("div",{staticClass:"small text-dark text-uppercase font-weight-bold"},[t._v("Suggestions")]),t._v(" "),n("div",{staticClass:"small text-muted cursor-pointer",on:{click:t.hideSuggestions}},[n("i",{staticClass:"fas fa-times"})])]),t._v(" "),n("div",{staticClass:"card-body pt-0"},t._l(t.suggestions,(function(e,i){return n("div",{staticClass:"media align-items-center mt-3"},[n("a",{attrs:{href:"/"+e.username}},[n("img",{staticClass:"rounded-circle mr-3",attrs:{src:e.avatar,width:"32px",height:"32px",onerror:"this.onerror=null;this.src='/storage/avatars/default.png?v=2'",alt:"avatar"}})]),t._v(" "),n("div",{staticClass:"media-body"},[n("p",{staticClass:"mb-0 font-weight-bold small"},[n("a",{staticClass:"text-decoration-none text-dark",attrs:{href:"/"+e.username}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.username)+"\n\t\t\t\t\t\t\t\t\t\t\t\t")])]),t._v(" "),n("p",{staticClass:"mb-0 small text-muted"},[t._v(t._s(e.message))])]),t._v(" "),n("a",{staticClass:"font-weight-bold small",attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),t.expRecFollow(e.id,i)}}},[t._v("Follow")])])})),0)])]),t._v(" "),t._m(10)])])])]):t._e(),t._v(" "),t.replyStatus&&t.replyStatus.hasOwnProperty("id")?n("comment-card",{attrs:{status:t.replyStatus,profile:t.profile},on:{"current-layout":t.setCurrentLayout}}):t._e(),t._v(" "),n("div",{staticClass:"modal-stack"},[n("b-modal",{ref:"replyModal",attrs:{id:"ctx-reply-modal","hide-footer":"",centered:"",rounded:"","title-html":t.replyStatus.account?"Reply to "+t.replyStatus.account.username+"":"","title-tag":"p","title-class":"font-weight-bold text-muted",size:"md","body-class":"p-2 rounded"}},[n("div",[n("vue-tribute",{attrs:{options:t.tributeSettings}},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.replyText,expression:"replyText"}],staticClass:"form-control replyModalTextarea",attrs:{rows:"4"},domProps:{value:t.replyText},on:{input:function(e){e.target.composing||(t.replyText=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"border-top border-bottom my-2"},[n("ul",{staticClass:"nav align-items-center emoji-reactions",staticStyle:{"overflow-x":"scroll","flex-wrap":"unset"}},t._l(t.emoji,(function(e){return n("li",{staticClass:"nav-item",on:{click:function(e){return t.emojiReaction(t.status)}}},[t._v(t._s(e))])})),0)]),t._v(" "),n("div",{staticClass:"d-flex justify-content-between align-items-center"},[n("div",[n("span",{staticClass:"pl-2 small text-muted font-weight-bold text-monospace"},[n("span",{class:[t.replyText.length>t.config.uploader.max_caption_length?"text-danger":"text-dark"]},[t._v(t._s(t.replyText.length>t.config.uploader.max_caption_length?t.config.uploader.max_caption_length-t.replyText.length:t.replyText.length))]),t._v("/"+t._s(t.config.uploader.max_caption_length)+"\n\t\t\t\t\t\t\t")])]),t._v(" "),n("div",{staticClass:"d-flex align-items-center"},[n("div",{staticClass:"custom-control custom-switch mr-3"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.replyNsfw,expression:"replyNsfw"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"replyModalCWSwitch"},domProps:{checked:Array.isArray(t.replyNsfw)?t._i(t.replyNsfw,null)>-1:t.replyNsfw},on:{change:function(e){var n=t.replyNsfw,i=e.target,s=!!i.checked;if(Array.isArray(n)){var o=t._i(n,null);i.checked?o<0&&(t.replyNsfw=n.concat([null])):o>-1&&(t.replyNsfw=n.slice(0,o).concat(n.slice(o+1)))}else t.replyNsfw=s}}}),t._v(" "),n("label",{class:[t.replyNsfw?"custom-control-label font-weight-bold text-dark":"custom-control-label text-lighter"],attrs:{for:"replyModalCWSwitch"}},[t._v("Mark as NSFW")])]),t._v(" "),n("button",{staticClass:"btn btn-primary btn-sm py-2 px-4 lead text-uppercase font-weight-bold",attrs:{disabled:0==t.replyText.length},on:{click:function(e){return e.preventDefault(),t.commentSubmit(t.status,e)}}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(1==t.replySending?"POSTING":"POST")+"\n\t\t\t\t\t\t\t")])])])],1)]),t._v(" "),n("b-modal",{ref:"ctxStatusModal",attrs:{id:"ctx-status-modal","hide-header":"","hide-footer":"",centered:"",rounded:"",size:"xl","body-class":"list-group-flush p-0 m-0 rounded"}})],1)],1)}),[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("p",{staticClass:"small text-muted text-center mb-0"},[this._v("You follow this hashtag. "),e("a",{attrs:{href:"/site/kb/hashtags"}},[this._v("Learn more")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"info-overlay-text-label"},[e("h5",{staticClass:"text-white m-auto font-weight-bold"},[e("span",[e("span",{staticClass:"far fa-eye-slash fa-lg p-2 d-flex-inline"})])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-check-circle fa-8x text-lighter"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center mb-0"},[e("a",{staticClass:"btn btn-link font-weight-bold px-4",attrs:{href:"/?a=vop"}},[this._v("View Older Posts")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-smile fa-8x text-lighter"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center mb-0"},[e("a",{staticClass:"btn btn-link font-weight-bold px-4",attrs:{href:"/discover"}},[this._v("Discover new posts and people")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"h5 font-weight-bold py-3 d-flex justify-content-between align-items-center"},[e("span",[this._v("Suggested Posts")]),this._v(" "),e("a",{staticClass:"small font-weight-bold",attrs:{href:"/?a=vop"}},[this._v("Older Posts")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card rounded-0 mt-3 status-card rounded-0 shadow-none border"},[e("div",{staticClass:"card-body py-5 my-5"},[e("p",{staticClass:"text-center"},[e("i",{staticClass:"fas fa-battery-empty fa-8x text-lighter"})]),this._v(" "),e("p",{staticClass:"text-center h3 font-weight-light"},[this._v("empty_timeline.jpg")]),this._v(" "),e("p",{staticClass:"text-center text-muted font-weight-light"},[this._v("We cannot find any posts for this timeline.")]),this._v(" "),e("p",{staticClass:"text-center mb-0"},[e("a",{staticClass:"btn btn-link font-weight-bold px-4",attrs:{href:"/discover"}},[this._v("Discover new posts and people")])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ml-2"},[e("a",{staticClass:"text-muted",attrs:{href:"/settings/home"}},[e("i",{staticClass:"fas fa-cog fa-lg"}),this._v(" "),e("span",{staticClass:"sr-only"},[this._v("User Settings")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("footer",[n("div",{staticClass:"container px-0 pb-5"},[n("p",{staticClass:"mb-2 small text-justify"},[n("a",{staticClass:"text-lighter pr-2",attrs:{href:"/site/about"}},[t._v("About")]),t._v(" "),n("a",{staticClass:"text-lighter pr-2",attrs:{href:"/site/help"}},[t._v("Help")]),t._v(" "),n("a",{staticClass:"text-lighter pr-2",attrs:{href:"/site/language"}},[t._v("Language")]),t._v(" "),n("a",{staticClass:"text-lighter pr-2",attrs:{href:"/discover/places"}},[t._v("Places")]),t._v(" "),n("a",{staticClass:"text-lighter pr-2",attrs:{href:"/site/privacy"}},[t._v("Privacy")]),t._v(" "),n("a",{staticClass:"text-lighter pr-2",attrs:{href:"/site/terms"}},[t._v("Terms")])]),t._v(" "),n("p",{staticClass:"mb-0 text-uppercase text-muted small"},[n("a",{staticClass:"text-lighter",attrs:{href:"http://pixelfed.org",rel:"noopener",title:"","data-toggle":"tooltip"}},[t._v("Powered by Pixelfed")])])])])}],!1,null,"e9e40304",null));e.default=u.exports},KqaD:function(t,e,n){Vue.component("notification-card",n("x6yo").default),Vue.component("photo-presenter",n("d+I4").default),Vue.component("video-presenter",n("2Jpm").default),Vue.component("photo-album-presenter",n("Mrqh").default),Vue.component("video-album-presenter",n("9wGH").default),Vue.component("mixed-album-presenter",n("exej").default),Vue.component("post-menu",n("yric").default),Vue.component("timeline",n("KhVi").default),Vue.component("announcements-card",n("hoKv").default),Vue.component("story-component",n("oDnJ").default)},L3xL:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.postPresenterContainer[data-v-e9e40304] {\n\tdisplay: flex;\n\talign-items: center;\n\tbackground: #fff;\n}\n.word-break[data-v-e9e40304] {\n\tword-break: break-all;\n}\n.small .custom-control-label[data-v-e9e40304] {\n\tpadding-top: 3px;\n}\n/*.reply-btn {\n\tposition: absolute;\n\tbottom: 30px;\n\tright: 20px;\n\twidth: 60px;\n\ttext-align: center;\n\tfont-size: 13px;\n\tborder-radius: 0 3px 3px 0;\n}*/\n.reply-btn[disabled][data-v-e9e40304] {\n\topacity: .3;\n\tcolor: #3897f0;\n}\n.replyModalTextarea[data-v-e9e40304] {\n\tborder: none;\n\tfont-size: 18px;\n\tresize: none;\n\twhite-space: pre-wrap;\n\toutline: none;\n}\n.has-story[data-v-e9e40304] {\n\twidth: 64px;\n\theight: 64px;\n\tborder-radius: 50%;\n\tpadding: 2px;\n\tbackground: radial-gradient(ellipse at 70% 70%, #ee583f 8%, #d92d77 42%, #bd3381 58%);\n}\n.has-story img[data-v-e9e40304] {\n\twidth: 60px;\n\theight: 60px;\n\tborder-radius: 50%;\n\tpadding: 3px;\n\tbackground: #fff;\n}\n.has-story.has-story-sm[data-v-e9e40304] {\n\twidth: 32px;\n\theight: 32px;\n\tborder-radius: 50%;\n\tpadding: 2px;\n\tbackground: radial-gradient(ellipse at 70% 70%, #ee583f 8%, #d92d77 42%, #bd3381 58%);\n}\n.has-story.has-story-sm img[data-v-e9e40304] {\n\twidth: 28px;\n\theight: 28px;\n\tborder-radius: 50%;\n\tpadding: 3px;\n\tbackground: #fff;\n}\n#ctx-reply-modal .form-control[data-v-e9e40304]:focus {\n\tborder: none;\n\toutline: 0;\n\tbox-shadow: none;\n}\n",""])},Mrqh:function(t,e,n){"use strict";n.r(e);var i={props:["status"],data:function(){return{sensitive:this.status.sensitive,cursor:0}},created:function(){},beforeDestroy:function(){},methods:{toggleContentWarning:function(t){this.$emit("togglecw")},altText:function(t){var e=t.description;return e||"Photo was not tagged with any alt text."},keypressNavigation:function(t){var e=this.$refs.carousel;if("37"==t.keyCode){t.preventDefault();e.advancePage("backward"),e.$emit("navigation-click","backward")}if("39"==t.keyCode){t.preventDefault();e.advancePage("forward"),e.$emit("navigation-click","forward")}}}},s=(n("5CDs"),n("KHd+")),o=Object(s.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return 1==t.status.sensitive?n("div",{staticClass:"content-label-wrapper"},[n("div",{staticClass:"text-light content-label"},[t._m(0),t._v(" "),n("p",{staticClass:"h4 font-weight-bold text-center"},[t._v("\n\t\t\tSensitive Content\n\t\t")]),t._v(" "),n("p",{staticClass:"text-center py-2"},[t._v("\n\t\t\t"+t._s(t.status.spoiler_text?t.status.spoiler_text:"This album may contain sensitive content.")+"\n\t\t")]),t._v(" "),n("p",{staticClass:"mb-0"},[n("button",{staticClass:"btn btn-outline-light btn-block btn-sm font-weight-bold",on:{click:function(e){return t.toggleContentWarning()}}},[t._v("See Post")])])]),t._v(" "),n("blur-hash-image",{attrs:{width:"32",height:"32",punch:1,hash:t.status.media_attachments[0].blurhash,alt:t.altText(t.status)}})],1):n("div",{staticClass:"w-100 h-100 p-0"},[n("carousel",{ref:"carousel",staticClass:"p-0 m-0",attrs:{centerMode:!0,loop:!1,"per-page":1,paginationPosition:"bottom-overlay",paginationActiveColor:"#3897f0",paginationColor:"#dbdbdb"}},t._l(t.status.media_attachments,(function(e,i){return n("slide",{key:"px-carousel-"+e.id+"-"+i,staticStyle:{background:"#000",display:"flex","align-items":"center"},attrs:{title:e.description}},[n("img",{class:e.filter_class+" img-fluid w-100 p-0",attrs:{src:e.url,alt:t.altText(e),onerror:"this.onerror=null;this.src='/storage/no-preview.png'"}}),t._v(" "),!t.status.sensitive&&t.sensitive?n("p",{staticStyle:{"margin-top":"0",padding:"10px",color:"#fff","font-size":"10px","text-align":"right",position:"absolute",top:"0",right:"0","border-top-left-radius":"5px",cursor:"pointer",background:"linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0.5))"},on:{click:function(e){t.status.sensitive=!0}}},[n("i",{staticClass:"fas fa-eye-slash fa-lg"})]):t._e(),t._v(" "),t.status.media_attachments[0].license?n("p",{staticStyle:{"margin-bottom":"0",padding:"0 5px",color:"#fff","font-size":"10px","text-align":"right",position:"absolute",bottom:"0",right:"0","border-top-left-radius":"5px",background:"linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0.5))"}},[n("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.url}},[t._v("Photo")]),t._v(" by "),n("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.account.url}},[t._v("@"+t._s(t.status.account.username))]),t._v(" licensed under "),n("a",{staticClass:"font-weight-bold text-light",attrs:{href:t.status.media_attachments[0].license.url}},[t._v(t._s(t.status.media_attachments[0].license.title))])]):t._e()])})),1)],1)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"text-center"},[e("i",{staticClass:"far fa-eye-slash fa-2x"})])}],!1,null,"64a93274",null);e.default=o.exports},N0po:function(t,e,n){var i=n("US+e");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},OGcs:function(t,e,n){var i=n("SmGz");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},Oa72:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n#storyContainer > .story[data-v-42243767] {\n\tmargin-right: 3rem;\n}\n",""])},OizH:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.text-lighter[data-v-0ed43037] {\n\tcolor:#B8C2CC !important;\n}\n.modal-body[data-v-0ed43037] {\n\tpadding: 0;\n}\n",""])},PhXe:function(t,e,n){"use strict";n("XfSO")},SmGz:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.content-label-wrapper[data-v-4b79c47a] {\n\tposition: relative;\n}\n.content-label[data-v-4b79c47a] {\n\tmargin: 0;\n\tposition: absolute;\n\ttop:50%;\n\tleft:50%;\n\ttransform: translate(-50%, -50%);\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 100%;\n\theight: 100%;\n\tz-index: 2;\n\tbackground: rgba(0, 0, 0, 0.2)\n}\n",""])},TbRl:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.card-img-top[data-v-148afe5e] {\n border-top-left-radius: 0 !important;\n border-top-right-radius: 0 !important;\n}\n.content-label-wrapper[data-v-148afe5e] {\n\tposition: relative;\n}\n.content-label[data-v-148afe5e] {\n\tmargin: 0;\n\tposition: absolute;\n\ttop:50%;\n\tleft:50%;\n\ttransform: translate(-50%, -50%);\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 100%;\n\theight: 100%;\n\tz-index: 2;\n\tbackground: rgba(0, 0, 0, 0.2)\n}\n",""])},"US+e":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n.fade-enter-active[data-v-267be4b0], .fade-leave-active[data-v-267be4b0] {\n transition: opacity .5s;\n}\n.fade-enter[data-v-267be4b0], .fade-leave-to[data-v-267be4b0] {\n opacity: 0;\n}\n",""])},"Wz+I":function(t,e,n){"use strict";n("dKYQ")},XWj2:function(t,e,n){"use strict";n("OGcs")},XfSO:function(t,e,n){var i=n("FAM0");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},"aET+":function(t,e,n){var i,s,o={},a=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===s&&(s=i.apply(this,arguments)),s}),r=function(t,e){return e?e.querySelector(t):document.querySelector(t)},l=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var i=r.call(this,t,n);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}}(),c=null,d=0,u=[],m=n("9tPo");function p(t,e){for(var n=0;n=0&&u.splice(e,1)}function g(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var i=function(){0;return n.nc}();i&&(t.attrs.nonce=i)}return b(e,t.attrs),f(t,e),e}function b(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function w(t,e){var n,i,s,o;if(e.transform&&t.css){if(!(o="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=o}if(e.singleton){var a=d++;n=c||(c=g(e)),i=_.bind(null,n,a,!1),s=_.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",b(e,t.attrs),f(t,e),e}(e),i=k.bind(null,n,e),s=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(e),i=C.bind(null,n),s=function(){v(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else s()}}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=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=h(t,e);return p(n,e),function(t){for(var i=[],s=0;s=1&&(this.showPrev=!0))},loadPrev:function(){this.showPrev&&(this.cursor-=1,this.announcement=this.announcements[this.cursor],0==this.cursor&&(this.showPrev=!1),this.cursor1})).catch((function(t){swal("Oops, Something went wrong","There was a problem with your request, please try again later.","error")}))}}},s=(n("t+jv"),n("KHd+")),o=Object(s.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("transition",{attrs:{name:"fade"}},[t.announcements.length?n("div",{staticClass:"card border shadow-none mb-3"},[n("div",{staticClass:"card-header text-muted bg-white"},[n("i",{staticClass:"fas fa-bullhorn mr-2"}),t._v(" "),n("span",{staticClass:"text-weight-light"},[t._v("ANNOUNCEMENTS")]),t._v(" "),n("span",{staticClass:"float-right cursor-pointer",attrs:{title:"Close"},on:{click:t.close}},[n("i",{staticClass:"fas fa-times text-lighter"})])]),t._v(" "),n("div",{staticClass:"card-body"},[n("div",{staticClass:"card-title mb-0"},[n("span",{staticClass:"font-weight-bold"},[t._v(t._s(t.announcement.title))])]),t._v(" "),n("p",{staticClass:"card-text"},[n("span",{staticStyle:{"font-size":"13px"}},[t._v(t._s(t.announcement.summary))])]),t._v(" "),n("p",{staticClass:"d-flex align-items-center justify-content-between mb-0"},[t.announcement.url?n("a",{staticClass:"small font-weight-bold mb-0",attrs:{href:t.announcement.url}},[t._v("Read more")]):n("span"),t._v(" "),n("span",[n("span",{class:[t.showPrev?"btn btn-outline-secondary btn-sm py-0":"btn btn-outline-secondary btn-sm py-0 disabled"],attrs:{disabled:0==t.showPrev},on:{click:function(e){return t.loadPrev()}}},[n("i",{staticClass:"fas fa-chevron-left fa-sm"})]),t._v(" "),n("span",{staticClass:"btn btn-outline-success btn-sm py-0 mx-1",attrs:{title:"Mark as Read","data-toggle":"tooltip","data-placement":"bottom"},on:{click:function(e){return t.markAsRead()}}},[n("i",{staticClass:"fas fa-check fa-sm"})]),t._v(" "),n("span",{class:[t.showNext?"btn btn-outline-secondary btn-sm py-0":"btn btn-outline-secondary btn-sm py-0 disabled"],attrs:{disabled:0==t.showNext},on:{click:function(e){return t.loadNext()}}},[n("i",{staticClass:"fas fa-chevron-right fa-sm"})])])])])]):t._e()])],1)}),[],!1,null,"267be4b0",null);e.default=o.exports},jXBh:function(t,e,n){"use strict";n("mrrf")},mrrf:function(t,e,n){var i=n("OizH");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},oDnJ:function(t,e,n){"use strict";n.r(e);n("ptJt"),n("JWYy");var i=n("wnQX"),s={props:["list"],data:function(){return{show:!1,stories:{}}},mounted:function(){this.fetchStories()},methods:{fetchStories:function(){var t=this;axios.get("/api/stories/v0/recent").then((function(e){var n=e.data;if(e.data.length){var s=new i("storyContainer",{list:1==t.list,stories:n,localStorage:!0,callbacks:{onOpen:function(t,e){document.body.style.overflow="hidden",e()},onEnd:function(t,e){axios.post("/i/stories/viewed",{id:t}),e()},onClose:function(t,e){document.body.style.overflow="auto",e()}}});n.forEach((function(t){var e="/api/stories/v0/fetch/"+t.pid;axios.get(e).then((function(e){e.data.forEach((function(e){(new Image).src=e.src,s.addItem(t.id,e)}))}))}))}else t.show=!1})),this.show=!0}}},o=(n("eMox"),n("cNm7"),n("KHd+")),a=Object(o.a)(s,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[this.show?e("div",{staticClass:"card card-body p-0 border mt-md-4 mb-md-3 shadow-none"},[e("div",{class:[1==this.list?"mt-1 mr-3 mb-0 ml-1":"mx-3 mt-3 mb-0 pb-0"],attrs:{id:"storyContainer"}})]):this._e()])}),[],!1,null,"42243767",null);e.default=a.exports},ptJt:function(t,e,n){var i=n("zm0X");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(i,s);i.locals&&(t.exports=i.locals)},"t+jv":function(t,e,n){"use strict";n("N0po")},u1Rn:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".stories.snapgram .story > .item-link {\n text-decoration: none;\n color: #333;\n}\n.stories.snapgram .story > .item-link > .item-preview {\n border-radius: 50%;\n padding: 2px;\n background: radial-gradient(ellipse at 70% 70%, #ee583f 8%, #d92d77 42%, #bd3381 58%);\n}\n.stories.snapgram .story > .item-link > .item-preview img {\n border-radius: 50%;\n border: 3px solid #fff;\n}\n\n.stories.snapgram .story.seen {\n opacity: 0.75;\n}\n.stories.snapgram .story.seen > a > .item-preview {\n background: #999;\n}\n.stories.snapgram .story.seen > a {\n color: #999 !important;\n}\n",""])},wnQX:function(t,e,n){t.exports=(n=>{const i=function(t){return document.querySelectorAll(t)[0]},s=function(t,e){return t&&t[e]||""},o=function(t,e){if(t){const n=t.length;for(let i=0;i{t[i]=n})},r=function(t,e,n){const i=[n.toLowerCase(),"webkit"+n,"MS"+n,"o"+n];o(i,(n,i)=>{t.addEventListener(i,e,!1)})},l=function(t,e){r(t,e,"AnimationEnd")},c=function(t,e){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)},d=function(t,e){const d=this,u=function(t,n){const i=function(t){return void 0!==t};return n?i(e[t])&&i(e[t][n])?e[t][n]:g[t][n]:i(e[t])?e[t]:g[t]},m=function(t,e){const n="RequestFullScreen";try{e?(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)&&(document.exitFullscreen?document.exitFullscreen().catch(()=>{}):(document.mozCancelFullScreen||document.mozCancelFullScreen)&&document.mozCancelFullScreen().catch(()=>{})):t.requestFullScreen?t.requestFullScreen():t["ms"+n]?t["ms"+n]():t["moz"+n]?t["moz"+n]():t["webkit"+n]&&t["webkit"+n]()}catch(t){console.warn("[Zuck.js] Can't access fullscreen")}},p=function(t,e,n,s){const o=e>0?1:-1,r=Math.abs(e)/i("#zuck-modal").offsetWidth*90*o;if(u("cubeEffect")){const t=0===r?"scale(0.95)":"scale(0.930,0.930)";if(a(i("#zuck-modal-content").style,"Transform",t),r<-90||r>90)return!1}const l=u("cubeEffect")?`rotateY(${r}deg)`:`translate3d(${e}px, 0, 0)`;t&&(a(t.style,"TransitionTimingFunction",s),a(t.style,"TransitionDuration",n+"ms"),a(t.style,"Transform",l))},h=function(t,e,n,i){let s=0,o=0;if(t){if(t.offsetParent)do{if(s+=t.offsetLeft,o+=t.offsetTop,t===i)break}while(t=t.offsetParent);e&&(o-=e),n&&(s-=n)}return[s,o]};"string"==typeof t&&(t=document.getElementById(t)),t.id||t.setAttribute("id","stories-"+Math.random().toString(36).substr(2,9));const f=function(t){t=1e3*Number(t);const e=new Date(t),n=e.getTime();let i=((new Date).getTime()-n)/1e3;const s=u("language","time"),a=[[60," "+s.seconds,1],[120,"1 "+s.minute,""],[3600," "+s.minutes,60],[7200,"1 "+s.hour,""],[86400," "+s.hours,3600],[172800," "+s.yesterday,""],[604800," "+s.days,86400]];let r=1;i<0&&(i=Math.abs(i),r=2);let l=!1;if(o(a,(t,e)=>{i`\n