Module 33358

684 characters · in 213d340067b3e05d.js
Dependencies
Required by (4)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,i){i.d(t,{P:()=>h});var n=i(64700),s=i(17928),a=i(617617),l=i(734057),r=i(994500),o=i(287809),d=i(811602),u=i(282108),m=i(975214);function h(e){let t,i,h,c,x,{channelId:g,authorId:p}=null==e?{}:(0,u.nx)(e);return t=(0,u.ku)(),i=(0,s.bG)([o.default],()=>o.default.getCurrentUser()),h=(0,s.bG)([l.A,r.A],()=>(0,u.c2)(g,p,[l.A,r.A])),c=(0,s.bG)([a.A],()=>t.reduce((e,t)=>({...e,[t.harmType]:t.getProtoUserSettings(a.A.settings)}),{}),[t],m.M),0===(x=n.useMemo(()=>null==h||p===i?.id||null==i?[]:t.map(e=>{let t=c[e.harmType],i=null==h?null:e.getUserSettingsWithDefaults(t)[h];return(0,u.f)(i)?e.harmType:null}).filter(e=>null!=e),[h,t,c,p,i])).length?d.LO.NONE:(0,u.LE)(x)}}