"use strict";(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[8977],{80189:(t,e,r)=>{r.r(e),r.d(e,{default:()=>a});varo=r(5787),i=r(36470);consta={props:{id:{type:String},profileId:{type:String},username:{type:String},cachedProfile:{type:Object},cachedUser:{type:Object}},components:{drawer:o.default,"profile-followers":i.default},data:function(){return{isLoaded:!1,curUser:void0,profile:void0,relationship:void0}},mounted:function(){this.init()},watch:{$route:"init"},methods:{init:function(){this.isLoaded=!1,this.relationship=void0,this.owner=!1,this.cachedProfile&&this.cachedUser?(this.curUser=this.cachedUser,this.profile=this.cachedProfile,this.fetchRelationship()):(this.curUser=window._sharedData.user,this.fetchProfile())},fetchProfile:function(){vart=this,e=this.profileId?this.profileId:this.id;axios.get("/api/pixelfed/v1/accounts/"+e).then((function(e){t.profile=e.data,e.data.id==t.curUser.id?(t.owner=!0,t.fetchRelationship()):(t.owner=!1,t.fetchRelationship())})).catch((function(e){t.$router.push("/i/web/404")}))},fetchRelationship:function(){vart=this;if(this.owner)returnthis.relationship={},void(this.isLoaded=!0);axios.get("/api/v1/accounts/relationships",{params:{"id[]":this.profile.id}}).then((function(e){t.relationship=e.data[0],t.isLoaded=!0}))},goBack:function(){this.$router.push("/i/web/profile/"+this.profile.id)}}}},50371:(t,e,r)=>{r.r(e),r.d(e,{default:()=>o});consto={data:function(){return{user:window._sharedData.user}}}},6140:(t,e,r)=>{r.r(e),r.d(e,{default:()=>o});consto={props:{status:{type:Object},cursorLimit:{type:Number,default:200}},data:function(){return{preRender:void0,fullContent:null,content:null,cursor:200}},mounted:function(){this.rewriteLinks()},methods:{readMore:function(){this.cursor=this.cursor+200,this.content=this.fullContent.substr(0,this.cursor)},rewriteLinks:function(){vart=this,e=this.status.content,r=document.createElement("div");r.innerHTML=e,r.querySelectorAll('a[class*="hashtag"]').forEach((function(t){vare=t.innerText;"#"==e.substr(0,1)&&(e=e.substr(1)),t.removeAttribute("target"),t.setAttribute("href","/i/web/hashtag/"+e)})),r.querySelectorAll('a:not(.hashtag)[class*="mention"], a:not(.hashtag)[class*="list-slug"]').forEach((function(e){varr=e.innerText;if("@"==r.substr(0,1)&&(r=r.substr(1)),0==t.status.account.local&&!r.includes("@")){varo=document.createElement("a");o.href=e.getAttribute("href"),r=r+"@"+o.hostname}e.removeAttribute("target"),e.setAttribute("href","/i/web/username/"+r)})),this.content=r.outerHTML,this.injectCustomEmoji()},injectCustomEmoji:function(){vart=this;this.status.emojis.forEach((function(e){varr='<img draggable="false" class="emojione custom-emoji" alt="'.concat(e.shortcode,'" title="').concat(e.shortcode,'" src="').concat(e.url,'" data-original="').concat(e.url,'" data-static="').concat(e.static_url,'" width="18" height="18" onerror="this.onerror=null;this.src=\'/storage/emoji/missing.png\';" />');t.content=t.content.replace(":".concat(e.shortcode,":"),r)}))}}}},19306:(t,e,r)=>{r.r(e),r.d(e,{default:()=>p});varo=r(25100),i=r(29787),a=r(34719),n=r(95353),s=r(24848);functionl(t){returnl="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft},l(t)}functionc(t){returnfunction(t){if(Array.isArray(t))returnd(t)}(t)||function(t){if("undefined"!=typeofSymbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])returnArray.from(t)}(t)||function(t,e){if(t){if("string"==typeoft)returnd(t,e);varr={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void0}}(t)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functiond(t,e){(null==e||e>t.length)&&(e=t.length);for(varr=0,o=Array(e);r<e;r++)o[r]=t[r];returno}funct