PageSourceSearch

https://atomicpoet.org/packs/js/features/conversations-5ef161edc30cc2cd5915.chunk.js

js atomicpoet.org collected 2026-10-04 02:43:08 UTC 2,392 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkmangane_fe=self.webpackChunkmangane_fe||[]).push([[25],{1162:function(n,e,t){t.r(e),t.d(e,{default:function(){return y}});var o=t(1855),r=t(0),a=t(1841),u=t(1842),c=t(19),i=t(189),s=t(48),d=t(927),l=t(2),f=t(3),v=t(22),h=t.n(v),m=t(1871),g=t(20),p=t(1865),M=t(158),Z=function(n){var e=n.conversationId,t=n.onMoveUp,r=n.onMoveDown,a=(0,f.TL)(),u=(0,p.k6)(),c=(0,f.CG)((function(n){var t=n.conversations.items.find((function(n){return n.id===e}));return{accounts:t.accounts.map((function(e){return n.accounts.get(e,null)})),unread:t.unread,lastStatusId:t.last_status||null}})),s=c.accounts,d=c.unread,l=c.lastStatusId;return null===l?null:(0,o.Z)(M.Z,{id:l,unread:d,otherAccounts:s,onMoveUp:function(){t(e)},onMoveDown:function(){r(e)},onClick:function(){d&&a((0,i.v3)(e)),u.push("/statuses/".concat(l))}})},w=function(){var n=(0,f.TL)(),e=(0,r.useRef)(null),t=(0,f.CG)((function(n){return n.conversations.items})),a=(0,f.CG)((function(n){return n.conversations.isLoading})),u=function(n){return t.findIndex((function(e){return e.id===n}))},c=function(n){var e=u(n)-1;d(e)},s=function(n){var e=u(n)+1;d(e)},d=function(n){var t;null===(t=e.current)||void 0===t||t.scrollIntoView({index:n,behavior:"smooth",done:function(){var e=document.querySelector('#direct-list [data-index="'.concat(n,'"] .focusable'));e&&e.focus()}})},l=h()((function(){var e=t.getIn([-1,"id"]);e&&n((0,i.P4)({maxId:e}))}),300,{leading:!0});return r.createElement(g.Z,{onLoadMore:l,id:"direct-list",scrollKey:"direct",ref:e,isLoading:a,showLoading:a&&0===t.size,emptyMessage:(0,o.Z)(m.Z,{id:"empty_column.direct",defaultMessage:"You don't have any direct messages yet. When you send or receive one, it will show up here."})},t.map((function(n){return(0,o.Z)(Z,{conversationId:n.id,onMoveUp:c,onMoveDown:s},n.id)})))},I=(0,a.vU)({title:{id:"column.direct",defaultMessage:"Direct messages"},searchPlaceholder:{id:"direct.search_placeholder",defaultMessage:"Send a message to…"}}),y=function(){var n=(0,u.Z)(),e=(0,f.TL)();return(0,r.useEffect)((function(){e((0,i.ol)()),e((0,i.P4)());var n=e((0,s._o)());return function(){e((0,i.eC)()),n()}}),[]),(0,o.Z)(l.sg,{label:n.formatMessage(I.title)},void 0,(0,o.Z)(d.Z,{placeholder:n.formatMessage(I.searchPlaceholder),onSelected:function(n){e((0,c.W3)(n))}}),(0,o.Z)(w,{}))}}}]);
2//# sourceMappingURL=conversations-5ef161edc30cc2cd5915.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.