PageSourceSearch

https://atomicpoet.org/packs/js/features/following-bb3f1bc6a5d138063b51.chunk.js

js atomicpoet.org collected 2026-10-04 02:43:40 UTC 3,119 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkmangane_fe=self.webpackChunkmangane_fe||[]).push([[45],{1176:function(o,t,e){e.r(t),e.d(t,{default:function(){return O}});var n,a,i,s=e(1855),r=e(1840),c=(e(1),e(22)),u=e.n(c),l=e(10),p=e.n(l),d=e(70),f=e.n(d),h=e(44),g=e(1841),m=e(1843),v=e(1871),b=e(6),y=e(13),w=e(69),Z=e(20),I=e(2),_=e(23),M=e(9),C=e(53),j=e(15),k=e(27),$=(n=function(o,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,t){o.__proto__=t}||function(o,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=t[e])},n(o,t)},function(o,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=o}n(o,t),o.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}),L=(0,g.vU)({heading:{id:"column.following",defaultMessage:"Following"}}),O=(0,b.$j)((function(o,t){var e,n,a=t.params,i=(t.withReplies,a.username||""),s=o.get("me"),r=(o.getIn(["accounts",-1,"username"])||"").toLowerCase()===i.toLowerCase(),c=(0,j.N$)(o.get("instance")),u=-1;if(r)u=null;else{var l=(0,M.XO)(o,i);u=l?l.getIn(["id"],null):-1}var p=(0,C.qn)(o,u,"following"),d=o.getIn(["relationships",u,"blocked_by"],!1);return{accountId:u,unavailable:s!==u&&d&&!c.blockersVisible,isAccount:!!o.getIn(["accounts",u]),accountIds:null===(e=o.user_lists.following.get(u))||void 0===e?void 0:e.items,hasMore:!(null===(n=o.user_lists.following.get(u))||void 0===n||!n.next),diffCount:p}}))(a=(0,m.ZP)((i=function(o){function t(){var t=o.apply(this,arguments)||this;return(0,r.Z)(t,"handleLoadMore",u()((function(){t.props.accountId&&-1!==t.props.accountId&&t.props.dispatch((0,y.kUp)(t.props.accountId))}),300,{leading:!0})),t}return $(t,o),t.prototype.componentDidMount=function(){var o=this.props,t=o.params.username,e=o.accountId;e&&-1!==e?(this.props.dispatch((0,y.$Gz)(e)),this.props.dispatch((0,y.$92)(e))):this.props.dispatch((0,y.ULQ)(t))},t.prototype.componentDidUpdate=function(o){var t=this.props,e=t.accountId,n=t.dispatch;e&&-1!==e&&e!==o.accountId&&e&&(n((0,y.$Gz)(e)),n((0,y.$92)(e)))},t.prototype.render=function(){var o=this.props,t=o.intl,e=o.accountIds,n=o.hasMore,a=o.isAccount,i=o.diffCount,r=o.accountId,c=o.unavailable;return a||-1===r?-1!==r&&e?c?(0,s.Z)("div",{className:"empty-column-indicator"},void 0,(0,s.Z)(v.Z,{id:"empty_column.account_unavailable",defaultMessage:"Profile unavailable"})):(0,s.Z)(k.Z,{label:t.formatMessage(L.heading),transparent:!0},void 0,(0,s.Z)(Z.Z,{scrollKey:"following",hasMore:n,diffCount:i,onLoadMore:this.handleLoadMore,emptyMessage:(0,s.Z)(v.Z,{id:"account.follows.empty",defaultMessage:"This user doesn't follow anyone yet."}),itemClassName:"pb-4"},void 0,e.map((function(o){return(0,s.Z)(_.Z,{id:o,withNote:!1},o)})))):(0,s.Z)(I.$j,{}):(0,s.Z)(w.Z,{})},t}
1(h.ZP),(0,r.Z)(i,"propTypes",{intl:p().object.isRequired,params:p().object.isRequired,dispatch:p().func.isRequired,accountIds:f().orderedSet,hasMore:p().bool,isAccount:p().bool,unavailable:p().bool,diffCount:p().number}),a=i))||a)||a}}]);
2//# sourceMappingURL=following-bb3f1bc6a5d138063b51.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.