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