"use strict";(self.webpackChunkmattermost_webapp=self.webpackChunkmattermost_webapp||[]).push([[749],{20749:(e,a,t)=>{t.r(a),t.d(a,{default:()=>y});var n=t(23615),l=t.n(n),s=t(84390),r=t.n(s),d=t(72060),i=t(70314),u=t(73443),c=t(28176),o=t(35590),m=t(26341),p=t(63386),h=t(47185),C=t(98514),g=t(48434),b=t(79186);function y(e){let{setChannelRef:a}=e;const t=(0,d.useIntl)(),n=(0,i.useSelector)(o.Xn),l=(0,i.useDispatch)(),y=(0,s.useCallback)((()=>{n.length&&(l((0,u.LN)(n.map((e=>e.id)))),(0,c.L9)("ui","ui_sidebar_category_menu_viewUnreadCategory"))}),[n,l]);return 0===n.length?null:r().createElement("div",{className:"SidebarChannelGroup dropDisabled a11y__section"},r().createElement(g.I,{displayName:t.formatMessage({id:"sidebar.types.unreads",defaultMessage:"UNREADS"})},r().createElement(C.Z,{id:"unreads"},r().createElement(h.Z,{id:"unreads",handleViewCategory:y,numChannels:n.length}),r().createElement(m.Z0,null),r().createElement(p.Z,{id:"unreads"}))),r().createElement("div",{className:"SidebarChannelGroup_content"},r().createElement("ul",{role:"list",className:"NavGroupContent"},n.map(((e,t)=>r().createElement(b.Z,{key:e.id,channelIndex:t,channelId:e.id,setChannelRef:a,isCategoryCollapsed:!1,isCategoryDragged:!1,isDraggable:!1,isAutoSortedCategory:!0}))))))}y.propTypes={setChannelRef:l().func.isRequired}}}]);
//# sourceMappingURL=749.44889bcb9170995d421d.js.map