(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{1:function(t,a,e){t.exports=e("hUgz")},"KHd+":function(t,a,e){"use strict";functionn(t,a,e,n,o,i,s,r){varc,l="function"==typeoft?t.options:t;if(a&&(l.render=a,l.staticRenderFns=e,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof__VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=c):o&&(c=r?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;varu=l.render;l.render=function(t,a){returnc.call(a),u(t,a)}}else{vard=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:l}}e.d(a,"a",(function(){returnn}))},hUgz:function(t,a,e){Vue.component("activity-component",e("tXHz").default)},tXHz:function(t,a,e){"use strict";e.r(a);functionn(t){returnfunction(t){if(Array.isArray(t))returno(t)}(t)||function(t){if("undefined"!=typeofSymbol&&Symbol.iteratorinObject(t))returnArray.from(t)}(t)||function(t,a){if(!t)return;if("string"==typeoft)returno(t,a);vare=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)returnArray.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))returno(t,a)}(t)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functiono(t,a){(null==a||a>t.length)&&(a=t.length);for(vare=0,n=newArray(a);e<a;e++)n[e]=t[e];returnn}vari={data:function(){return{notifications:{},notificationCursor:2,notificationMaxId:0}},mounted:function(){this.fetchNotifications()},updated:function(){$('[data-toggle="tooltip"]').tooltip()},methods:{fetchNotifications:function(){vart=this;axios.get("/api/pixelfed/v1/accounts/verify_credentials").then((function(t){window._sharedData.curUser=t.data,window.App.util.navatar()})),axios.get("/api/pixelfed/v1/notifications",{params:{pg:!0}}).then((function(a){vare=a.data.filter((function(t){return!("share"==t.type&&!status)})),o=a.data.map((function(t){returnt.id}));t.notificationMaxId=Math.max.apply(Math,n(o)),t.notifications=e,$(".notification-card .loader").addClass("d-none"),$(".notification-card .contents").removeClass("d-none")}))},infiniteNotifications:function(t){vara=this;this.notificationCursor>10?t.complete():axios.get("/api/pixelfed/v1/notifications",{params:{pg:!0,page:this.notificationCursor}}).then((function(e){if(e.data.length){varo,i=e.data.filter((function(t){return!("share"==t.type&&!status)&&!_.find(a.notifications,{id:t.id})}));(o=a.notifications).push.apply(o,n(i)),a.notificationCursor++,t.loaded()}elset.complete()}))},truncate:function(t){returnt.length<=15?t:t.slice(0,15)+"..."},timeAgo:function(t){vara=Date.parse(t),e=Math.floor((newDate-a)/1e3),n=Math.floor(e/31536e3);returnn>=1?n+"y":(n=Math.floor(e/604800))>=1?n+"w":(n=Math.floor(e/86400))>=1?n+"d":(n=Math.floor(e/3600))>=1?n+"h":(n=Math.floor(e/60))>=1?n+"m":Math.floor(e)+"s"},mentionUrl:function(t){return"/p/"+t.account.username+"/"+t.id},followProfile:function(t){vara=this,e=t.account.id;axios.post("/i/follow",{item:e}).then((function(t){a.notifications.map((function(t){t.account.id===e&&(t.relationship.following=!0)}))})).catch((function(t){t.response.data.message&&swal("Error",t.response.data.message,"error")}))},viewContext:function(t){switch(t.type){case"follow":returnt.account.url;case"mention":returnt.status.url;case"like":case"favourite":case"comment":returnt.status.url;case"tagged":returnt.tagged.post_url;case"direct":return"/account/direct/t/"+t.account.id}return"/"}}},s=e("KHd+"),r=Object(s.a)(i,(function(){vart=this,a=t.$createElement,e=t._self._c||a;returne("div",[e("div",{staticClass:"container"},[e("div",{staticClass:"row my-5"},[e("div",{staticClass:"col-12col-md-8offset