You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pixelfed/public/js/notifications.chunk.eb78183...

1 line
50 KiB
JavaScript

"use strict";(self.webpackChunkpixelfed=self.webpackChunkpixelfed||[]).push([[7744],{5787:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var i=a(16286),s=a(80260),n={};for(const t in s)"default"!==t&&(n[t]=()=>s[t]);a.d(e,n);a(89069);const o=(0,a(14486).default)(s.default,i.render,i.staticRenderFns,!1,null,null,null).exports},11308:(t,e,a)=>{a.r(e),a.d(e,{default:()=>n});var i=a(51651),s={};for(const t in i)"default"!==t&&(s[t]=()=>i[t]);a.d(e,s);const n=i.default},11526:(t,e,a)=>{a.r(e),a.d(e,{render:()=>i,staticRenderFns:()=>s});var i=function(){var t=this,e=t._self._c;return t.small?e("div",{staticClass:"ph-item border-0 mb-0 p-0",staticStyle:{"border-radius":"15px","margin-left":"-14px"}},[t._m(0)]):e("div",{staticClass:"ph-item border-0 shadow-sm p-1",staticStyle:{"border-radius":"15px","margin-bottom":"1rem"}},[t._m(1)])},s=[function(){var t=this._self._c;return t("div",{staticClass:"ph-col-12 mb-0"},[t("div",{staticClass:"ph-row align-items-center mt-0"},[t("div",{staticClass:"ph-avatar mr-2 d-flex",staticStyle:{"min-width":"32px",width:"32px!important",height:"32px!important","border-radius":"40px"}}),this._v(" "),t("div",{staticClass:"ph-col-6"})])])},function(){var t=this._self._c;return t("div",{staticClass:"ph-col-12"},[t("div",{staticClass:"ph-row align-items-center mt-0"},[t("div",{staticClass:"ph-avatar mr-3 d-flex",staticStyle:{"min-width":"40px",width:"40px!important",height:"40px!important","border-radius":"15px"}}),this._v(" "),t("div",{staticClass:"ph-col-6 big"})])])}]},12254:(t,e,a)=>{a.r(e);var i=a(71143),s={};for(const t in i)"default"!==t&&(s[t]=()=>i[t]);a.d(e,s)},14329:(t,e,a)=>{a.r(e),a.d(e,{default:()=>d});var i=a(5787),s=a(28772),n=a(50085),o=a(71687),r=a(25100);function l(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var a={}.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?c(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=Array(e);a<e;a++)i[a]=t[a];return i}const d={components:{drawer:i.default,sidebar:s.default,intersect:r.default,notification:n.default,placeholder:o.default},data:function(){return{isLoaded:!1,profile:void 0,ids:[],notifications:void 0,notificationsLoaded:!1,notificationRetries:0,notificationsEmpty:!0,notificationRetryTimeout:void 0,max_id:void 0,canLoadMore:!1,isIntersecting:!1,tabIndex:0,tabs:[{id:"all",name:"All",icon:"far fa-bell",types:[]},{id:"mentions",name:this.$t("notifications.mentions"),description:this.$t("notifications.mentionsDescription"),icon:"far fa-at",types:["comment","mention"]},{id:"likes",name:this.$t("notifications.likes"),description:this.$t("notifications.likesDescription"),icon:"far fa-heart",types:["favourite"]},{id:"followers",name:this.$t("notifications.followers"),description:this.$t("notifications.followersDescription"),icon:"far fa-user-plus",types:["follow"]},{id:"reblogs",name:this.$t("notifications.reblogs"),description:this.$t("notifications.reblogsDescription"),icon:"far fa-retweet",types:["share"]},{id:"direct",name:this.$t("notifications.dms"),description:this.$t("notifications.dmsDescription"),icon:"far fa-envelope",types:["direct"]}],tabSwitching:!1,filteredFeed:[],filteredLoaded:!1,filteredIsIntersecting:!1,filteredMaxId:void 0,canLoadMoreFiltered:!0,filterPaginationTimeout:void 0,filteredIterations:0,filteredEmpty:!1,followRequests:[],followRequestsChecked:!1,followRequestsPage:1}},updated:function(){},mounted:function(){this.profile=window._sharedData.user,this.isLoaded=!0,this.profile.locked&&this.fetchFollowRequests(),this.fetchNotifications()},beforeDestroy:function(){clearTimeout(this.notificationRetryTimeou