(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[2737],{33422:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});consto={props:["status"]}},36639:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});varo=s(18634);consti={props:["status"],data:function(){return{sensitive:this.status.sensitive,cursor:0}},created:function(){},beforeDestroy:function(){},methods:{toggleContentWarning:function(t){this.$emit("togglecw")},toggleLightbox:function(t){(0,o.default)({el:t.target,gallery:"#carousel-"+this.status.id,position:this.$refs.carousel.currentPage})},altText:function(t){vare=t.description;returne||"Photo was not tagged with any alt text."},keypressNavigation:function(t){vare=this.$refs.carousel;if("37"==t.keyCode){t.preventDefault();vars="backward";e.advancePage(s),e.$emit("navigation-click",s)}if("39"==t.keyCode){t.preventDefault();varo="forward";e.advancePage(o),e.$emit("navigation-click",o)}}}}},9266:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});varo=s(18634);consti={props:["status"],data:function(){return{sensitive:this.status.sensitive}},mounted:function(){},methods:{altText:function(t){vare=t.media_attachments[0].description;returne||"Photo was not tagged with any alt text."},toggleContentWarning:function(t){this.$emit("togglecw")},toggleLightbox:function(t){(0,o.default)({el:t.target})},width:function(){if(this.status.media_attachments[0].meta&&this.status.media_attachments[0].meta.original&&this.status.media_attachments[0].meta.original.width)returnthis.status.media_attachments[0].meta.original.width},height:function(){if(this.status.media_attachments[0].meta&&this.status.media_attachments[0].meta.original&&this.status.media_attachments[0].meta.original.height)returnthis.status.media_attachments[0].meta.original.height}}}},35986:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});consto={props:["status"]}},25189:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});consto={props:["status"],methods:{altText:function(t){vare=t.media_attachments[0].description;returne||"Video was not tagged with any alt text."},playOrPause:function(t){vare=t.target;1==e.getAttribute("playing")?(e.removeAttribute("playing"),e.pause()):(e.setAttribute("playing",1),e.play())},toggleContentWarning:function(t){this.$emit("togglecw")},poster:function(){vart=this.status.media_attachments[0].preview_url;if(!t.endsWith("no-preview.jpg")&&!t.endsWith("no-preview.png"))returnt}}}},59488:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>i});varo=s(74692);consti={props:["feed","status","profile","size","modal"],data:function(){return{activeSession:!1}},mounted:function(){vart=document.querySelector("body");this.activeSession=!!t.classList.contains("loggedIn")},methods:{reportUrl:function(t){return"/i/report?type="+(t.in_reply_to?"comment":"post")+"&id="+t.id},timestampFormat:function(t){vare=newDate(t);returne.toDateString()+" "+e.toLocaleTimeString()},editUrl:function(t){returnt.url+"/edit"},redirect:function(t){window.location.href=t},replyUrl:function(t){return"/p/"+this.profile.username+"/"+(t.account.id==this.profile.id?t.id:t.in_reply_to_id)},mentionUrl:function(t){return"/p/"+t.account.username+"/"+t.id},statusOwner:function(t){returnparseInt(t.account.id)==parseInt(this.profile.id)},deletePost:function(){this.$emit("deletePost"),o("#mt_pid_"+this.status.id).modal("hide")},hidePost:function(t){t.sensitive=!0,o("#mt_pid_"+t.id).modal("hide")},moderatePost:function(t,e,s){varo=t.account.username;switch(e){case"autocw":vari="Are you sure you want to enforce CW for "+o+" ?";swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0});break;case"suspend":i="Are you sure you want to suspend the account of "+o+" ?",swal({title:"Confirm",text:i,icon:"warning",buttons:!0,dangerMode:!0})}},muteProfile:function(t){0!=o("body").hasClass("loggedIn")&&axios.post("/i/mute",{type:"user",item:t.account.id}).then((function(e){swal("Success","You have successfully muted "+t.account.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))},block