Build 606747stable
Module 556525
1,076 characters · in no known chunkDependencies
Source Raw
function(e,t,n){"use strict";n.d(t,{O:()=>d,v:()=>c});var i,r=n(582128),a=n(17928),s=n(775602),l=n(531685);function o(e,t){return .5+(t-.5)/(1+Math.exp(-.03*(e- -45)))}var d=((i={}).BOTH="BOTH",i.INSET_ONLY="INSET_ONLY",i.OUTSET_ONLY="OUTSET_ONLY",i);function c(e){let{isSpeaking:t,voiceDb:i,spreadDirection:d="BOTH",maxOuterSpreadRadius:c=3,maxInnerSpreadRadius:u=1,hideIfVolumeMissing:_=!1}=e,E=n(773371).default,{shouldReduceMotion:A,useForcedColors:h,isAppFocusedOrOverlayVisible:I}=(0,a.cf)([s.Ay,l.A,E],()=>({shouldReduceMotion:s.Ay.useReducedMotion,useForcedColors:s.Ay.useForcedColors,isAppFocusedOrOverlayVisible:l.A.isAppFocused()||null!=E.getFocusedPID()}));return r.useMemo(()=>{let e={};if(i===-1/0&&_)return e;if(t){let t=0,n=2,r=3;i!==-1/0&&!A&&I&&(t="INSET_ONLY"===d?0:o(i,c),n="OUTSET_ONLY"===d?0:o(i,u),r="OUTSET_ONLY"===d?0:n+1);let a=h?"Highlight":"var(--status-speaking)";e.boxShadow=`0 0 0 ${t}px ${a}, inset 0 0 0 ${n}px ${a}, inset 0 0 0 ${r}px var(--background-base-lower)`}return I&&(e.transition="box-shadow 50ms ease-out"),e},[t,I,A,h,i,d,c,u,_])}}