(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[5912],{49720:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});vari=s(19755);consto={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"),i("#mt_pid_"+this.status.id).modal("hide")},hidePost:function(t){t.sensitive=!0,i("#mt_pid_"+t.id).modal("hide")},moderatePost:function(t,e,s){vari=t.account.username;switch(e){case"autocw":varo="Are you sure you want to enforce CW for "+i+" ?";swal({title:"Confirm",text:o,icon:"warning",buttons:!0,dangerMode:!0});break;case"suspend":o="Are you sure you want to suspend the account of "+i+" ?",swal({title:"Confirm",text:o,icon:"warning",buttons:!0,dangerMode:!0})}},muteProfile:function(t){0!=i("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")}))},blockProfile:function(t){0!=i("body").hasClass("loggedIn")&&axios.post("/i/block",{type:"user",item:t.account.id}).then((function(e){swal("Success","You have successfully blocked "+t.account.acct,"success")})).catch((function(t){swal("Error","Something went wrong. Please try again later.","error")}))},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},closeModal:function(){i("#mt_pid_"+this.status.id).modal("hide")}}}},9179:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>l});s(82364);vari=s(19210),o=s(10831),a=s(19755);functionn(t){returnfunction(t){if(Array.isArray(t))returnr(t)}(t)||function(t){if("undefined"!=typeofSymbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])returnArray.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeoft)returnr(t,e);vars=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)returnArray.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))returnr(t,e)}(t)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functionr(t,e){(null==e||e>t.length)&&(e=t.length);for(vars=0,i=newArray(e);s<e;s++)i[s]=t[s];returni}constl={props:["profile-id","profile-layout","profile-settings","profile-username"],components:{StatusCard:i.default},data:function(){return{ids:[],profile:{},user:!1,timeline:[],timelinePage:2,min_id:0,max_id:0,loading:!0,owner:!1,layout:"metro",mode:"grid",modes:["grid","collections","bookmarks","archives"],modalStatus:!1,relationship:{},followers:[],followerCursor:null,followerMore:!0,followerLoading:!0,following:[],followingCursor:null,followingMore:!0,followingLoading:!0,warning:!1,sponsorList:[],bookmarks:[],bookmarksPage:2,collections:[],collectionsLoaded:!1,collectionsPage:2,isMobile:!1,ctxEmbedPayload:null,copiedEmbed:!1,hasStory:null,followingModalTab:"following",bookmarksLoading:!0,archives:[],archivesPage:2}},beforeMount:function(){vart=this;this.fetchProfile();vare=newURLSearchParams(window.location.search);if(this.layout="metro","metro"==this.layout&&e.has("t")&&-1!=this.modes.indexOf(e.get("t"))){if("bookmarks"==e.get("t"))ret