{"version":3,"file":"ScrollIndicator.CbEXaHFD.mjs","names":["useState","startTransition"],"sources":["https:/framerusercontent.com/modules/15fcEXcYluCwwncEvZFx/IaxuZSNvEA6hudPW8Mfj/ScrollIndicator.js"],"sourcesContent":["// Reusable Scroll Indicator component with smooth bounce animation and scroll-based fade behavior\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion,useAnimation}from\"framer-motion\";import{useEffect,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * Scroll Indicator\n *\n * @framerIntrinsicWidth 40\n * @framerIntrinsicHeight 40\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ScrollIndicator(props){const{size=40,color=\"#000000\",hoverColor=\"#666666\",bounceDistance=8,bounceDuration=1.5,fadeDuration=.4,scrollHideThreshold=40,positionMode=\"absolute\",bottomOffset=40,horizontalAlign=\"center\",zIndex=10,animationStyle=\"smooth\"}=props;const[isHovered,setIsHovered]=useState(false);const controls=useAnimation();const isStatic=useIsStaticRenderer();useEffect(()=>{if(isStatic)return;let animationConfig={y:[0,bounceDistance,0],transition:{duration:bounceDuration,repeat:Number.POSITIVE_INFINITY,ease:\"easeInOut\"}};switch(animationStyle){case\"smooth\":animationConfig={y:[0,bounceDistance,0],transition:{duration:bounceDuration,repeat:Infinity,ease:\"easeInOut\"}};break;case\"bouncy\":animationConfig={y:[0,bounceDistance,0],transition:{duration:bounceDuration,repeat:Infinity,ease:[.68,-.55,.265,1.55]}};break;case\"elastic\":animationConfig={y:[0,bounceDistance,0],transition:{duration:bounceDuration,repeat:Infinity,type:\"spring\",stiffness:100,damping:8}};break;case\"spring\":animationConfig={y:[0,bounceDistance,0],transition:{duration:bounceDuration,repeat:Infinity,type:\"spring\",stiffness:200,damping:15}};break;case\"pulse\":animationConfig={y:[0,bounceDistance,0],scale:[1,1.1,1],transition:{duration:bounceDuration,repeat:Infinity,ease:[.4,0,.6,1]}};break;}controls.start(animationConfig);},[bounceDistance,bounceDuration,controls,isStatic,animationStyle]);const getHorizontalPosition=()=>{switch(horizontalAlign){case\"left\":return{left:bottomOffset};case\"right\":return{right:bottomOffset};case\"center\":default:return{left:\"50%\",transform:\"translateX(-50%)\"};}};const containerStyle={position:positionMode,bottom:bottomOffset,...getHorizontalPosition(),zIndex,width:size,height:size};const currentColor=isHovered?hoverColor:color;const content=/*#__PURE__*/_jsx(motion.div,{animate:controls,style:{width:\"100%\",height:\"100%\"},children:/*#__PURE__*/_jsxs(\"svg\",{width:size,height:size,viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{display:\"block\"},children:[/*#__PURE__*/_jsx(\"title\",{children:\"Scroll down indicator\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M6 9L12 15L18 9\",stroke:currentColor,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})]})});return /*#__PURE__*/_jsx(motion.div,{style:containerStyle,\"aria-hidden\":\"true\",onMouseEnter:()=>startTransition(()=>setIsHovered(true)),onMouseLeave:()=>startTransition(()=>setIsHovered(false)),children:content});}addPropertyControls(ScrollIndicator,{size:{type:ControlType.Number,title:\"Size\",defaultValue:40,min:20,max:100,step:1,unit:\"px\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"},hoverColor:{type:ControlType.Color,title:\"Hover Color\",defaultValue:\"#666666\"},bounceDistance:{type:ControlType.Number,title:\"Bounce Distance\",defaultValue:8,min:0,max:30,step:1,unit:\"px\"},bounceDuration:{type:ControlType.Number,title:\"Bounce Duration\",defaultValue:1.5,min:.5,max:5,step:.1,unit:\"s\",displayStepper:true},fadeDuration:{type:ControlType.Number,title:\"Fade Duration\",defaultValue:.4,min:.1,max:2,step:.1,unit:\"s\",displayStepper:true},scrollHideThreshold:{type:ControlType.Number,title:\"Scroll Hide Threshold\",defaultValue:40,min:10,max:200,step:5,unit:\"px\"},positionMode:{type:ControlType.Enum,title:\"Position Mode\",options:[\"absolute\",\"fixed\"],optionTitles:[\"Absolute\",\"Fixed\"],defaultValue:\"absolute\",displaySegmentedControl:true},bottomOffset:{type:ControlType.Number,title:\"Bottom Offset\",defaultValue:40,min:0,max:200,step:5,unit:\"px\"},horizontalAlign:{type:ControlType.Enum,title:\"Horizontal Align\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],defaultValue:\"center\",displaySegmentedControl:true},zIndex:{type:ControlType.Number,title:\"Z-Index\",defaultValue:10,min:0,max:100,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollIndicator\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"40\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"40\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollIndicator.map"],"mappings":"gQASG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,OAAK,GAAG,QAAM,UAAU,aAAW,UAAU,iBAAe,EAAE,iBAAe,IAAI,eAAa,GAAG,sBAAoB,GAAG,eAAa,WAAW,eAAa,GAAG,kBAAgB,SAAS,SAAO,GAAG,iBAAe,UAAU,EAAW,CAAC,EAAU,GAAcA,EAAS,EAAK,EAAQ,EAAS,EAAa,EAAQ,EAAS,EAAoB,EAAE,MAAc,CAAC,GAAG,EAAS,OAAO,IAAI,EAAgB,CAAC,EAAE,CAAC,EAAE,EAAe,CAAC,EAAE,WAAW,CAAC,SAAS,EAAe,OAAO,IAAyB,KAAK,WAAW,CAAC,EAAE,OAAO,EAAP,CAAuB,IAAI,SAAS,EAAgB,CAAC,EAAE,CAAC,EAAE,EAAe,CAAC,EAAE,WAAW,CAAC,SAAS,EAAe,OAAO,IAAS,KAAK,WAAW,CAAC,EAAE,MAAM,IAAI,SAAS,EAAgB,CAAC,EAAE,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