PageSourceSearch

https://atomicpoet.org/packs/js/features/followers-012ba27c7a8f4297bd87.chunk.js

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

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