"use strict";(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[8119],{64875:(t,a,e)=>{e.r(a),e.d(a,{default:()=>i});vars=e(5787),r=e(28772);consti={components:{drawer:s.default,sidebar:r.default},data:function(){return{isLoaded:!1,profile:void0,locale:"en",langs:["en","ar","ca","de","el","es","eu","fr","he","gd","gl","id","it","ja","nl","pl","pt","ru","uk","vi"]}},mounted:function(){this.profile=window._sharedData.user,this.isLoaded=!0,this.locale=this.$i18n.locale},watch:{locale:function(t){this.loadLang(t)}},methods:{fullName:function(t){returnnewIntl.DisplayNames([t],{type:"language"}).of(t)},localeName:function(t){returnnewIntl.DisplayNames([this.$i18n.locale],{type:"language"}).of(t)},loadLang:function(t){vara=this;axios.post("/api/pixelfed/web/change-language.json",{v:.1,l:t}).then((function(e){a.$i18n.locale=t}))}}}},50371:(t,a,e)=>{e.r(a),e.d(a,{default:()=>s});consts={data:function(){return{user:window._sharedData.user}}}},84154:(t,a,e)=>{e.r(a),e.d(a,{default:()=>s});consts={props:["user"],data:function(){return{loaded:!1,avatarUpdateIndex:0,avatarUpdateFile:void0,avatarUpdatePreview:void0}},methods:{open:function(){this.$refs.avatarUpdateModal.show()},avatarUpdateClose:function(){this.$refs.avatarUpdateModal.hide(),this.avatarUpdateIndex=0,this.avatarUpdateFile=void0},avatarUpdateClear:function(){this.avatarUpdateIndex=0,this.avatarUpdateFile=void0},avatarUpdateStep:function(t){this.$refs.avatarUpdateRef.click(),this.avatarUpdateIndex=t},handleAvatarUpdate:function(){vart=this,a=event.target.files;Array.prototype.forEach.call(a,(function(a,e){t.avatarUpdateFile=a,t.avatarUpdatePreview=URL.createObjectURL(a),t.avatarUpdateIndex=1}))},handleDrop:function(t){t.preventDefault();vara=this;if(t.dataTransfer.items){for(vare=0;e<t.dataTransfer.items.length;e++)if("file"===t.dataTransfer.items[e].kind){vars=t.dataTransfer.items[e].getAsFile();if(!s)return;a.avatarUpdateFile=s,a.avatarUpdatePreview=URL.createObjectURL(s),a.avatarUpdateIndex=1}}elsefor(e=0;e<t.dataTransfer.files.length;e++){if(!t.dataTransfer.files[e].hasOwnProperty("name"))return;a.avatarUpdateFile=t.dataTransfer.files[e],a.avatarUpdatePreview=URL.createObjectURL(t.dataTransfer.files[e]),a.avatarUpdateIndex=1}},confirmUpload:function(){vart=this;if(window.confirm("Are you sure you want to change your avatar photo?")){vara=newFormData;a.append("_method","PATCH"),a.append("avatar",this.avatarUpdateFile),axios.post("/api/v1/accounts/update_credentials",a).then((function(a){window._sharedData.user.avatar=a.data.avatar,t.avatarUpdateClose()})).catch((function(t){t.response.data&&t.response.data.errors&&t.response.data.errors.avatar&&t.response.data.errors.avatar.length&&swal("Oops!",t.response.data.errors.avatar[0],"error")}))}}}}},79318:(t,a,e)=>{e.r(a),e.d(a,{default:()=>l});vars=e(95353),r=e(90414);functioni(t){returni="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft},i(t)}functionn(t,a){vare=Object.keys(t);if(Object.getOwnPropertySymbols){vars=Object.getOwnPropertySymbols(t);a&&(s=s.filter((function(a){returnObject.getOwnPropertyDescriptor(t,a).enumerable}))),e.push.apply(e,s)}returne}functiono(t,a,e){return(a=function(t){vara=function(t,a){if("object"!=i(t)||!t)returnt;vare=t[Symbol.toPrimitive];if(void0!==e){vars=e.call(t,a||"default");if("object"!=i(s))returns;thrownewTypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(t)}(t,"string");return"symbol"==i(a)?a:a+""}(a))int?Object.defineProperty(t,a,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[a]=e,t}constl={props:{user:{type:Object,default:function(){return{avatar:"/storage/avatars/default.jpg",username:!1,display_name:"",following_count:0,followers_count:0}}},links:{type:Array,default:function(){return[{name:"Discover",path:"/i/web/discover",icon:"fas fa-compass"},{name:"Groups",path:"/i/web/groups",icon:"far fa-user-friends"},{name:"Videos",path:"