{"version":3,"file":"ScrollIcon.CMqZNIgC.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/40QbJ3O7QmQF2XEGj45A/vo6adEDDe6vw1qBiMiO1/ScrollIcon.js"],"sourcesContent":["// Slick scroll icon with animated bounce effect\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect,startTransition}from\"react\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function ScrollCue(props){const{iconColor,backgroundColor,borderColor,borderWidth,borderRadius,animationSpeed,pauseDuration,mouseWidth,mouseHeight,dotSize,style}=props;const size=Math.min(mouseWidth,mouseHeight);const animationDistance=size*.25;const[opacity,setOpacity]=useState(1);useEffect(()=>{if(typeof window===\"undefined\")return;// Find the scrollable parent element\nconst findScrollableParent=element=>{if(!element)return window;const parent=element.parentElement;if(!parent)return window;const overflowY=window.getComputedStyle(parent).overflowY;const isScrollable=overflowY===\"scroll\"||overflowY===\"auto\";if(isScrollable&&parent.scrollHeight>parent.clientHeight){return parent;}return findScrollableParent(parent);};let scrollContainer=null;let containerRef=null;const handleScroll=()=>{const scrollY=scrollContainer===window?window.scrollY:scrollContainer?.scrollTop||0;const fadeDistance=300;const newOpacity=Math.max(0,1-scrollY/fadeDistance);startTransition(()=>setOpacity(newOpacity));};// Wait for component to mount and find scroll container\nconst timer=setTimeout(()=>{const element=document.querySelector('[data-framer-component-type=\"ScrollCue\"]');if(element instanceof HTMLElement){containerRef=element;scrollContainer=findScrollableParent(element);}else{scrollContainer=window;}if(scrollContainer){scrollContainer.addEventListener(\"scroll\",handleScroll);handleScroll();}},100);return()=>{clearTimeout(timer);if(scrollContainer){scrollContainer.removeEventListener(\"scroll\",handleScroll);}};},[]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",position:\"relative\",opacity:opacity},children:/*#__PURE__*/_jsx(\"div\",{style:{width:mouseWidth,height:mouseHeight,border:`${borderWidth}px solid ${borderColor}`,borderRadius:borderRadius,backgroundColor:backgroundColor,position:\"relative\",display:\"flex\",justifyContent:\"center\",paddingTop:size*.25},children:/*#__PURE__*/_jsx(motion.div,{style:{width:dotSize,height:dotSize,borderRadius:\"50%\",backgroundColor:iconColor},animate:{y:[0,animationDistance,0]},transition:{duration:animationSpeed,repeat:Infinity,ease:\"easeInOut\",repeatDelay:pauseDuration}})})});}addPropertyControls(ScrollCue,{mouseWidth:{type:ControlType.Number,title:\"Width\",defaultValue:30,min:10,max:100,step:1},mouseHeight:{type:ControlType.Number,title:\"Height\",defaultValue:50,min:20,max:150,step:1},dotSize:{type:ControlType.Number,title:\"Circle Size\",defaultValue:6,min:2,max:20,step:1},iconColor:{type:ControlType.Color,title:\"Icon Color\",defaultValue:\"#000000\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#000000\"},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:2,min:1,max:5,step:1},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:20,min:0,max:50,step:1},animationSpeed:{type:ControlType.Number,title:\"Animation Speed\",defaultValue:1.5,min:.5,max:3,step:.1,unit:\"s\"},pauseDuration:{type:ControlType.Number,title:\"Pause Duration\",defaultValue:.5,min:0,max:3,step:.1,unit:\"s\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollCue\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollIcon.map"],"mappings":"uPAIG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,YAAU,kBAAgB,cAAY,cAAY,eAAa,iBAAe,gBAAc,aAAW,c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