Module 801796

1,507 characters · in 10d18b890e3f6eb3.js
Dependencies
Required by (2)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{BD:()=>p,US:()=>h,X8:()=>S,mH:()=>g});var i=n(757942),r=n(455234),l=n(366811),s=n(95701),o=n(734057),a=n(222823),d=n(309010),c=n(543465),u=n(652215),_=n(790782);let A=(e,t)=>{let n=o.A.getChannel(t);return null!=n&&((0,s.Gw)(n.type)||u.kvI.GUILD_VOCAL.has(n.type)?a.Ay.getMentionCount(t)>0||d.A.getVoiceChannelId()===t:(!c.Ay.isChannelMuted(e,t)||a.Ay.getMentionCount(t)>0)&&(0,r.Y)(n))},E=(e,t)=>t===_.P.GUILD_EVENT?!c.Ay.isMuteScheduledEventsEnabled(e)&&a.Ay.hasUnread(e,t):a.Ay.hasUnread(e,t),I=(e,t)=>{let n=o.A.getChannel(t);return null!=n&&!!u.kvI.GUILD_VOCAL.has(n.type)&&(a.Ay.getMentionCount(t)>0||d.A.getVoiceChannelId()===t&&a.Ay.getUnreadCount(t)>0)},g={binds:["alt+shift+down"],comboKeysBindGlobal:!0,action(){let e=l.A.getState().guildId??u.ME;return(0,i.A)(1,{channelPredicate:A,guildPredicate:t=>t===e||!c.Ay.isMuted(t),guildFeaturePredicate:E,ensureChatIsVisible:I,withVoiceChannels:!0}),!1}},h={binds:["alt+shift+up"],comboKeysBindGlobal:!0,action(){let e=l.A.getState().guildId??u.ME;return(0,i.A)(-1,{channelPredicate:A,guildPredicate:t=>t===e||!c.Ay.isMuted(t),guildFeaturePredicate:E,ensureChatIsVisible:I,withVoiceChannels:!0}),!1}},C=(e,t)=>a.Ay.getMentionCount(t)>0,p={binds:["mod+shift+alt+down"],comboKeysBindGlobal:!0,action:()=>((0,i.A)(1,{channelPredicate:C,ensureChatIsVisible:I,withVoiceChannels:!0}),!1)},S={binds:["mod+shift+alt+up"],comboKeysBindGlobal:!0,action:()=>((0,i.A)(-1,{channelPredicate:C,ensureChatIsVisible:I,withVoiceChannels:!0}),!1)}}