{"version":3,"file":"LiveRecordingPulse.CZIsSisX.mjs","names":["useRef","useCallback","useMemo"],"sources":["https:/framerusercontent.com/modules/aiAgLEKG2sK8SwUZDgCz/4midTPaDOlwOxOGiEwHb/LiveRecordingPulse.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useCallback,useMemo,useRef}from\"react\";import{useIsStaticRenderer}from\"framer\";import{useInView}from\"framer-motion\";/**\n * User request:\n * Create a Framer code override named withLiveRecordingPulse.\n * It should preserve the wrapped canvas layer styling/size and only add a rhythmic\n * scale + opacity pulse that repeats forever with soft ease-in-out timing around 1.4–1.6s.\n * This must be an override (not a code component), SSR-safe, and should not inject children.\n */export function withLiveRecordingPulse(Component){return /*#__PURE__*/forwardRef(function LiveRecordingPulseOverride(props,ref){const localRef=useRef(null);const isStatic=useIsStaticRenderer();const isInView=useInView(localRef,{amount:.2});const setRefs=useCallback(node=>{localRef.current=node;if(typeof ref===\"function\"){ref(node);}else if(ref&&\"current\"in ref){ref.current=node;}},[ref]);const animate=useMemo(()=>{if(isStatic||!isInView)return{scale:1,opacity:1};return{scale:[1,1.18,1],opacity:[.55,.2,.55]};},[isInView,isStatic]);const transition=useMemo(()=>({duration:1.5,ease:\"easeInOut\",repeat:Infinity,repeatType:\"loop\"}),[]);return /*#__PURE__*/_jsx(Component,{ref:setRefs,...props,style:{...props.style},animate:animate,transition:transition});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withLiveRecordingPulse\":{\"type\":\"reactHoc\",\"name\":\"withLiveRecordingPulse\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LiveRecordingPulse.map"],"mappings":"sOAMG,SAAgB,EAAuB,EAAU,CAAC,OAAoB,EAAW,SAAoC,EAAM,EAAI,CAAC,IAAM,EAASA,EAAO,KAAK,CAAO,EAAS,GAAqB,CAAO,EAAS,EAAU,EAAS,CAAC,OAAO,GAAG,CAAC,CAAO,EAAQC,EAAY,GAAM,CAAC,EAAS,QAAQ,EAAQ,OAAO,GAAM,WAAY,EAAI,EAAK,CAAU,GAAK,YAAY,IAAK,EAAI,QAAQ,IAAQ,CAAC,EAAI,CAAC,CAAO,EAAQC,MAAgB,GAAU,CAAC,EAAe,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAO,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC,CAAG,CAAC,EAAS,EAAS,CAAC,CAAO,EAAWA,OAAa,CAAC,SAAS,IAAI,KAAK,YAAY,OAAO,IAAS,WAAW,OAAO,EAAE,EAAE,CAAC,CAAC,OAAoB,EAAK,EAAU,CAAC,IAAI,EAAQ,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,CAAS,UAAmB,aAAW,CAAC,EAAG,kBAN/sB,IAAyD,IAAwC,IAAqC"}