Build 603132stable
Module 821747
777 characters · in a11b6fbe42aea67a.jsDependencies
Source Raw
function(e,n,t){t.d(n,{A:()=>C});var l=t(477900);t(582128);var i=t(503698),a=t.n(i),s=t(17928),r=t(827343),o=t(384059),c=t(20504),u=t(453028),d=t(824744),A=t(723702),m=t(447404),h=t(609142);function C(e){let{className:n,iconClassName:t,sliderClassName:i,userId:C,context:E,currentWindow:f=window,location:p}=e,{currentVolume:g,muted:x}=(0,s.cf)([u.Ay],()=>({currentVolume:u.Ay.getLocalVolume(C,E),muted:u.Ay.isLocalMute(C,E)}));return(0,l.jsx)(m.A,{children:(0,l.jsx)(c.A,{currentWindow:f,iconClassName:a()(t,h.pd),sliderClassName:i,className:n,value:(0,d.M)(g),muted:x,maxValue:A.isPlatformEmbedded?200:100,onValueChange:e=>{e>0&&x&&r.A.toggleLocalMute(C,E),r.A.setLocalVolume(C,(0,d.w)(e),E)},onToggleMute:()=>{null!=p&&(0,o.X)(p,o.O.VOLUME,x),r.A.toggleLocalMute(C,E)}})})}}