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