(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{"/jad":function(t,e,n){"use strict";vars=n("1gDp"),i=n("ngXG"),o={props:{status:{type:Object},recommended:{type:Boolean,default:!1},reactionBar:{type:Boolean,default:!0},hasTopBorder:{type:Boolean,default:!1},size:{type:String,validator:function(t){return["regular","small"].includes(t)},default:"regular"}},components:{"context-menu":s.a,"poll-card":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){returnApp.util.format.count(t)},statusUrl:function(t){return1==t.local?t.url:"/i/web/post/_/"+t.account.id+"/"+t.id},profileUrl:function(t){return1==t.local?t.account.url:"/i/web/profile/_/"+t.account.id},timestampFormat:function(t){vare=newDate(t);returne.toDateString()+" "+e.toLocaleTimeString()},shortTimestamp:function(t){returnwindow.App.util.format.timeAgo(t)},statusCardUsernameFormat:function(t){if(1==t.account.local)returnt.account.username;vare=window.App.config.username.remote.format,n=window.App.config.username.remote.custom,s=t.account.username,i=document.createElement("a");switch(i.href=t.account.url,i=i.hostname,e){case"@":returns+'<span class="text-lighter font-weight-bold">@'+i+"</span>";case"from":returns+'<span class="text-lighter font-weight-bold"> <span class="font-weight-normal">from</span> '+i+"</span>";case"custom":returns+'<span class="text-lighter font-weight-bold"> '+n+" "+i+"</span>";default:returns+'<span class="text-lighter font-weight-bold">@'+i+"</span>"}},lightbox:function(t){window.location.href=t.media_attachments[0].url},labelRedirect:function(t){vare="/i/redirect?url="+encodeURI(this.config.features.label.covid.url);window.location.href=e},likeStatus:function(t,e){if(0!=$("body").hasClass("loggedIn")){varn=t.favourites_count;t.favourited=!t.favourited,axios.post("/i/like",{item:t.id}).then((function(e){t.favourites_count=e.data.count,t.favourited=!!t.favourited})).catch((function(e){t.favourited=!!t.favourited,t.favourites_count=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){varn=this;this.replySending=!0;vars=t.id,i=this.replyText,o=this.config.uploader.max_caption_length;if(i.length>o)returnthis.replySending=!1,voidswal("Comment Too Long","Please make sure your comment is "+o+" characters or less.","error");axios.post("/i/comment",{item:s,comment:i,sensitive:this.replyNsfw}).then((function(t){n.replyText="",n.replies.push(t.data.entity),n.$refs.replyModal.hide()})),this.replySending=!1},owner:function(t){returnthis.profile.id===t.account.id},admin:function(){return1==this.profile.is_admin},ownerOrAdmin:function(t){returnthis.owner(t)||this.admin()},ctxMenu:function(){this.$refs.contextMenu.open()},timeAgo:function(t){returnApp.util.format.timeAgo(t)},statusDeleted:function(t){this.$emit("status-delete",t)},canFollow:function(t){return!!t.hasOwnProperty("relationship")&&(!(!t.hasOwnProperty("account")||!t.account.hasOwnProperty("id"))&&(t.account.id!=this.profile.id&&!t.relationship.following))},follow:function(t){vare=this;event.currentTarget.blur(),axios.post("/i/follow",{item:t}).then((function(n){e.status.relationship.following=!0,e.$emit("followed",t)})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))},unfollow:function(t){vare=this;event.currentTarget.blur(),axios.post("/i/follow",{item:t}).then((function(n){e.status.relationship.following=!1,e.$emit("unfollowed",t)})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))}}},a=(n("RePV"),n("KHd+")),r=Object(a.a)(o,(function(){vart=this,e=t.$createElement,n=t._sel