{"version":3,"file":"ScrollBlurOverlay.CgEd_fTc.mjs","names":["useState","__esmMin","window","te","init_npm_react_18_3_1","init_ssg_sandbox_shims","init_jsx_runtime","c","ce","_e","addPropertyControls","init_framer_CaDWdxiz","ControlType","useIsStaticRenderer","ScrollBlurOverlay","props","scrollY","setScrollY","isStatic","handleScroll","blurAmount","maxBlur","scrollThreshold","init_ScrollBlurOverlay"],"sources":["https:/framerusercontent.com/modules/13FGqUuy8XB4Y3pIY1FB/maYe5BgP4NgjYtwT6azL/ScrollBlurOverlay.js"],"sourcesContent":["// Scroll-based background blur overlay component\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ScrollBlurOverlay(props){const{backgroundColor,opacity,maxBlur,scrollThreshold}=props;const[scrollY,setScrollY]=useState(0);const isStatic=useIsStaticRenderer();useEffect(()=>{if(isStatic||typeof window===\"undefined\")return;const handleScroll=()=>{startTransition(()=>{setScrollY(window.scrollY);});};window.addEventListener(\"scroll\",handleScroll,{passive:true});return()=>window.removeEventListener(\"scroll\",handleScroll);},[isStatic]);// Calculate blur amount based on scroll position\nconst blurAmount=Math.min(maxBlur,scrollY/scrollThreshold*maxBlur);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",backgroundColor,opacity,backdropFilter:`blur(${blurAmount}px)`,pointerEvents:\"none\",...props.style}});}addPropertyControls(ScrollBlurOverlay,{backgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"rgba(255, 255, 255, 0.1)\"},opacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:.8,min:0,max:1,step:.1},maxBlur:{type:ControlType.Number,title:\"Max Blur\",defaultValue:20,min:0,max:50,step:1,unit:\"px\"},scrollThreshold:{type:ControlType.Number,title:\"Scroll Threshold\",defaultValue:500,min:100,max:2e3,step:50,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollBlurOverlay\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollBlurOverlay.map"],"mappings":"A,+MAIG,SAAwBc,EAAkB,EAAM,CAAC,GAAK,CAAC,kBAAgB,UAAQ,UAAQ,mBAAiBC,EAAW,CAACC,EAAQC,GAAYjB,EAAS,CAAC,EAAQkB,EAASL,EAAoB,EAAEL,MAAc,CAAC,GAAGU,GAAiBhB,IAAS,OAAY,OAAO,IAAMiB,MAAiB,CAAChB,MAAoB,CAACc,EAAWf,EAAO,OAAO,CAAE,CAAC,CAAE,EAAgE,OAA9DA,EAAO,iBAAiB,SAASiB,EAAa,CAAC,QAAQ,EAAI,CAAC,MAAYjB,EAAO,oBAAoB,SAASiB,CAAY,CAAE,EAAE,CAACD,CAAQ,CAAC,EAC9c,IAAME,EAAW,KAAK,IAAIC,EAAQL,EAAQM,EAAgBD,CAAO,EAAE,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,kBAAgB,UAAQ,eAAe,QAAQD,EAAW,KAAK,cAAc,OAAO,GAAGL,EAAM,KAAK,CAAC,CAAC,CAAE,C,8CAACL,EAAoBI,EAAkB,CAAC,gBAAgB,CAAC,KAAKF,EAAY,MAAM,MAAM,mBAAmB,aAAa,0BAA0B,EAAE,QAAQ,CAAC,KAAKA,EAAY,OAAO,MAAM,UAAU,aAAa,GAAG,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,QAAQ,CAAC,KAAKA,EAAY,OAAO,MAAM,WAAW,aAAa,GAAG,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,KAAK,IAAI,EAAE,gBAAgB,CAAC,KAAKA,EAAY,OAAO,MAAM,mBAAmB,aAAa,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,GAAG,KAAK,IAAI,CAAC,CAAC,C"}