(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{"+GUX":function(t,e,n){Vue.component("remote-profile",n("9Y9R").default)},21:function(t,e,n){t.exports=n("+GUX")},"33Jl":function(t,e,n){vari=n("6oqA");"string"==typeofi&&(i=[[t.i,i,""]]);varo={hmr:!0,transform:void0,insertInto:void0};n("aET+")(i,o);i.locals&&(t.exports=i.locals)},"6oqA":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"\n@media (min-width: 1200px) {\n.container[data-v-1c70ea71] {\n\t\tmax-width: 1050px;\n}\n}\n",""])},"9Y9R":function(t,e,n){"use strict";n.r(e);functioni(t){returnfunction(t){if(Array.isArray(t)){for(vare=0,n=newArray(t.length);e<t.length;e++)n[e]=t[e];returnn}}(t)||function(t){if(Symbol.iteratorinObject(t)||"[object Arguments]"===Object.prototype.toString.call(t))returnArray.from(t)}(t)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance")}()}varo={props:["profile-id"],data:function(){return{id:[],user:!1,profile:{},feed:[],min_id:null,max_id:null,loading:!0,owner:!1,layoutType:!0,relationship:null,warning:!1,ctxMenuStatus:!1,ctxMenuRelationship:!1}},beforeMount:function(){this.fetchRelationships(),this.fetchProfile()},methods:{fetchProfile:function(){vart=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then((function(e){t.user=e.data})),axios.get("/api/pixelfed/v1/accounts/"+this.profileId).then((function(e){t.profile=e.data,t.fetchPosts()}))},fetchPosts:function(){vart=this,e="/api/pixelfed/v1/accounts/"+this.profileId+"/statuses";axios.get(e,{params:{only_media:!0,min_id:1}}).then((function(e){varn=e.data.filter((function(t){returnt.media_attachments.length>0})).map((function(t){return{id:t.id,caption:{text:t.content_text,html:t.content},count:{likes:t.favourites_count,shares:t.reblogs_count,comments:t.reply_count},thumb:t.media_attachments[0].preview_url,media:t.media_attachments,timestamp:t.created_at,type:t.pf_type,url:t.url}})),o=n.map((function(t){returnt.id}));t.ids=o,t.min_id=Math.max.apply(Math,i(o)),t.max_id=Math.min.apply(Math,i(o)),t.feed=n,t.loading=!1})).catch((function(t){swal("Oops, something went wrong","Please release the page.","error")}))},fetchRelationships:function(){vart=this;0!=document.querySelectorAll("body")[0].classList.contains("loggedIn")&&axios.get("/api/pixelfed/v1/accounts/relationships",{params:{"id[]":this.profileId}}).then((function(e){e.data.length&&(t.relationship=e.data[0],1==e.data[0].blocking&&(t.loading=!1,t.warning=!0))}))},postPreviewUrl:function(t){return'background: url("'+t.thumb+'");background-size:cover'},timestampFormat:function(t){vare=newDate(t);returne.toDateString()+" "+e.toLocaleTimeString()},remoteProfileUrl:function(t){return"/i/web/profile/_/"+t.id},remotePostUrl:function(t){return"/i/web/post/_/"+this.profile.id+"/"+t.id},followProfile:function(){vart=this;axios.post("/i/follow",{item:this.profileId}).then((function(e){swal("Followed","You are now following "+t.profile.username+"!","success"),t.relationship.following=!0})).catch((function(t){swal("Oops!","Something went wrong, please try again later.","error")}))},unfollowProfile:function(){vart=this;axios.post("/i/follow",{item:this.profileId}).then((function(e){swal("Unfollowed","You are no longer following "+t.profile.username+".","warning"),t.relationship.following=!1})).catch((function(t){swal("Oops!","Something went wrong, please try again later.","error")}))},showCtxMenu:function(){this.$refs.visitorContextMenu.show()},copyProfileLink:function(){navigator.clipboard.writeText(window.location.href),this.$refs.visitorContextMenu.hide()},muteProfile:function(){vart=this,e=this.profileId;axios.post("/i/mute",{type:"user",item:e}).then((function(e){t.fetchRelationships(),t.$refs.visitorContextMenu.hide(),swal("Success","You have successfully muted "+t.profile.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")})),this.$refs.visitorContextMenu.hide()},unmuteProfile:function(){vart=this,e=this.profileId;axios.post("/i/unmute",{type:"user",item:e}).then((function(e){t.fetchRelationships(),t.$re