"use strict";(self.webpackChunkmattermost_webapp=self.webpackChunkmattermost_webapp||[]).push([[4526],{34526:(e,a,n)=>{n.r(a),n.d(a,{default:()=>y});var t=n(62688),s=n.n(t),l=n(97023),r=n.n(l),d=n(14778),i=n(23453),u=n(30413),c=n(59671),m=n(9916),o=n(70669),p=n(19174),h=n(51877),C=n(77813),g=n(66039),b=n(49876);function y(e){let{setChannelRef:a}=e;const n=(0,d.useIntl)(),t=(0,i.useSelector)(m.OM),s=(0,i.useDispatch)(),y=(0,l.useCallback)((()=>{t.length&&(s((0,u.Zi)(t.map((e=>e.id)))),(0,c.sx)("ui","ui_sidebar_category_menu_viewUnreadCategory"))}),[t,s]);return 0===t.length?null:r().createElement("div",{className:"SidebarChannelGroup dropDisabled a11y__section"},r().createElement(g.U,{displayName:n.formatMessage({id:"sidebar.types.unreadChannels.displayName",defaultMessage:"UNREADS"})},r().createElement(C.A,{id:"unreads",name:n.formatMessage({id:"sidebar.types.unreadChannels.ariaLabel",defaultMessage:"Unread"})},r().createElement(h.A,{id:"unreads",handleViewCategory:y,numChannels:t.length}),r().createElement(o.wv,null),r().createElement(p.A,{id:"unreads"}))),r().createElement("div",{className:"SidebarChannelGroup_content"},r().createElement("ul",{role:"list",className:"NavGroupContent"},t.map(((e,n)=>r().createElement(b.A,{key:e.id,channelIndex:n,channelId:e.id,setChannelRef:a,isCategoryCollapsed:!1,isCategoryDragged:!1,isDraggable:!1,isAutoSortedCategory:!0}))))))}y.propTypes={setChannelRef:s().func.isRequired}}}]);
//# sourceMappingURL=4526.ff5f7acd7571c754c3b9.js.map