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