{"version":3,"file":"shared-lib.aNkCdtpn.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/GLfrY9F78PxiJs8BSxEt/OjsSispo6PE70CSDEWza/withSeraReveal.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useRef,useState}from\"react\";/**\n * withSeraReveal — self-healing calm scroll reveal (opacity + translateY).\n * IntersectionObserver + scroll rect-check + safety timeout so content is\n * NEVER left hidden. Respects prefers-reduced-motion (computed in the effect).\n */export function withSeraReveal(Component){return /*#__PURE__*/forwardRef(function SeraReveal(props,_ref){const ref=useRef(null);const[shown,setShown]=useState(false);const[reduce,setReduce]=useState(false);useEffect(()=>{if(typeof window===\"undefined\"){setShown(true);return;}const rm=window.matchMedia&&window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;if(rm){setReduce(true);setShown(true);return;}const el=ref.current;if(!el){setShown(true);return;}let done=false;const reveal=()=>{if(!done){done=true;setShown(true);}};const check=()=>{const r=el.getBoundingClientRect();if(r.top<window.innerHeight*.92&&r.bottom>0)reveal();};let io=null;if(\"IntersectionObserver\"in window){io=new IntersectionObserver(entries=>{for(const e of entries)if(e.isIntersecting)reveal();},{threshold:.06,rootMargin:\"0px 0px -6% 0px\"});io.observe(el);}check();window.addEventListener(\"scroll\",check,{passive:true});const t=window.setTimeout(check,4500);return()=>{io&&io.disconnect();window.removeEventListener(\"scroll\",check);window.clearTimeout(t);};},[]);const on=shown||reduce;const style={...props.style,opacity:on?1:0,transform:on?\"translateY(0px)\":\"translateY(26px)\",transition:reduce?\"none\":\"opacity 0.95s cubic-bezier(0.16,1,0.3,1), transform 0.95s cubic-bezier(0.16,1,0.3,1)\",willChange:\"opacity, transform\"};return /*#__PURE__*/_jsx(Component,{...props,ref:ref,style:style});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withSeraReveal\":{\"type\":\"reactHoc\",\"name\":\"withSeraReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetad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