{"version":3,"file":"MutedLogo.C8rPBiXo.mjs","names":["useState","useCallback","useMemo"],"sources":["https:/framerusercontent.com/modules/msOlmRnoEaU4CfOilzXO/KbuyCtEOrLzzHMdsIeOS/MutedLogo.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,startTransition,useCallback,useMemo,useState}from\"react\";import{useReducedMotion}from\"framer-motion\";export function withMutedLogo(Component){return /*#__PURE__*/forwardRef(function WithMutedLogo(props,ref){const shouldReduceMotion=useReducedMotion();const[isActive,setIsActive]=useState(false);const onPointerEnter=useCallback(event=>{startTransition(()=>setIsActive(true));props.onPointerEnter?.(event);},[props]);const onPointerLeave=useCallback(event=>{startTransition(()=>setIsActive(false));props.onPointerLeave?.(event);},[props]);const onFocus=useCallback(event=>{const focusVisible=typeof event.currentTarget?.matches===\"function\"?event.currentTarget.matches(\":focus-visible\"):true;if(focusVisible){startTransition(()=>setIsActive(true));}props.onFocus?.(event);},[props]);const onBlur=useCallback(event=>{startTransition(()=>setIsActive(false));props.onBlur?.(event);},[props]);const mergedStyle=useMemo(()=>{const transition=shouldReduceMotion?\"none\":\"filter 250ms ease, opacity 250ms ease\";return{...props.style,filter:isActive?\"grayscale(0)\":\"grayscale(1)\",opacity:isActive?1:.55,transition};},[isActive,props.style,shouldReduceMotion]);return /*#__PURE__*/_jsx(Component,{...props,ref:ref,style:mergedStyle,onPointerEnter:onPointerEnter,onPointerLeave:onPointerLeave,onFocus:onFocus,onBlur:onBlur});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withMutedLogo\":{\"type\":\"reactHoc\",\"name\":\"withMutedLogo\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MutedLogo.map"],"mappings":"0LAAkK,SAAgB,EAAc,EAAU,CAAC,OAAoB,EAAW,SAAuB,EAAM,EAAI,CAAC,IAAM,EAAmB,EAAiB,EAAO,CAAC,EAAS,GAAaA,EAAS,EAAK,EAAQ,EAAeC,EAAY,GAAO,CAAC,MAAoB,EAAY,EAAI,CAAC,EAAE,EAAM,iBAAiB,CAAK,CAAE,EAAE,CAAC,CAAK,CAAC,EAAQ,EAAeA,EAAY,GAAO,CAAC,MAAoB,EAAY,EAAK,CAAC,EAAE,EAAM,iBAAiB,CAAK,CAAE,EAAE,CAAC,CAAK,CAAC,EAAQ,EAAQA,EAAY,GAAO,EAAoB,OAAO,EAAM,eAAe,SAAU,YAAW,EAAM,cAAc,QAAQ,gBAAgB,IAAwB,MAAoB,EAAY,EAAI,CAAC,EAAG,EAAM,UAAU,CAAK,CAAE,EAAE,CAAC,CAAK,CAAC,EAAQ,EAAOA,EAAY,GAAO,CAAC,MAAoB,EAAY,EAAK,CAAC,EAAE,EAAM,SAAS,CAAK,CAAE,EAAE,CAAC,CAAK,CAAC,EAAQ,EAAYC,MAAY,CAAC,IAAM,EAAW,EAAmB,OAAO,wCAAwC,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,EAAS,eAAe,eAAe,QAAQ,EAAS,EAAE,IAAI,YAAU,CAAE,EAAE,CAAC,EAAS,EAAM,MAAM,CAAkB,CAAC,EAAE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAU,MAAI,MAAM,EAA2B,iBAA8B,iBAAuB,UAAe,QAAM,CAAC,CAAE,CAAC,CAAE,iBAAvzC,IAA2E,IAA4C"}