{"version":3,"file":"ScrollBlurOverlay.DetpyitT.mjs","names":["useState"],"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":"0MAIG,SAAwB,EAAkB,EAAM,CAAC,GAAK,CAAC,kBAAgB,UAAQ,UAAQ,mBAAiB,EAAW,CAAC,EAAQ,GAAYA,EAAS,CAAC,EAAQ,EAAS,EAAoB,EACvH,OADyH,MAAc,CAAC,GAAG,GAAiB,IAAS,OAAY,OAAO,IAAM,MAAiB,CAAC,MAAoB,CAAC,EAAW,EAAO,OAAO,CAAE,CAAC,CAAE,EAAgE,OAA9D,EAAO,iBAAiB,SAAS,EAAa,CAAC,QAAQ,EAAI,CAAC,MAAY,EAAO,oBAAoB,SAAS,CAAY,CAAE,EAAE,CAAC,CAAQ,CAAC,EACvX,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,kBAAgB,UAAQ,eAAe,QAA/K,KAAK,IAAI,EAAQ,EAAQ,EAAgB,CAAuJ,EAAE,KAAK,cAAc,OAAO,GAAG,EAAM,KAAK,CAAC,CAAC,CAAE,qBAJrN,IAAsD,IAAwE,EAIwF,EAAoB,EAAkB,CAAC,gBAAgB,CAAC,KAAK,EAAY,MAAM,MAAM,mBAAmB,aAAa,0BAA0B,EAAE,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,UAAU,aAAa,GAAG,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,WAAW,aAAa,GAAG,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,KAAK,IAAI,EAAE,gBAAgB,CAAC,KAAK,EAAY,OAAO,MAAM,mBAAmB,aAAa,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,GAAG,KAAK,IAAI,CAAC,CAAC"}