{"version":3,"file":"ScrollIndicator.DImbkc7C.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/Ltnv7IKY8oNlpuH0gOEr/RQecTHvZm9EbeqRGXzF0/ScrollIndicator.js"],"sourcesContent":["// Animated Scroll SVG Icon\n// Shows a looping animation to indicate scrolling\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion,useAnimation,useInView}from\"framer-motion\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * Animated Scroll SVG Icon\n *\n * @framerIntrinsicWidth 48\n * @framerIntrinsicHeight 80\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ScrollIndicator(props){const{color,size,loopDuration,stroke,style}=props;const isStatic=useIsStaticRenderer();const controls=useAnimation();const ref=useRef(null);const inView=useInView(ref,{once:false});useEffect(()=>{if(isStatic||!inView)return;controls.start({y:[0,18,0],opacity:[1,1,0,1],transition:{duration:loopDuration,repeat:Infinity,ease:\"easeInOut\"}});},[controls,isStatic,inView,loopDuration]);const width=size;const height=size*1.6;const strokeWidth=stroke;const radius=width/2-strokeWidth;const dotRadius=4;return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{width,height,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",...style},\"aria-label\":\"Scroll down\",role:\"img\",children:/*#__PURE__*/_jsxs(\"svg\",{width:width,height:height,viewBox:`0 0 ${width} ${height}`,fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{display:\"block\"},children:[/*#__PURE__*/_jsx(\"rect\",{x:strokeWidth,y:strokeWidth,width:width-strokeWidth*2,height:height-strokeWidth*2,rx:width/2,stroke:color,strokeWidth:strokeWidth,fill:\"none\"}),/*#__PURE__*/_jsx(motion.circle,{cx:width/2,cy:height*.25,r:dotRadius,fill:color,animate:controls,initial:false})]})});}addPropertyControls(ScrollIndicator,{color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#222222\"},size:{type:ControlType.Number,title:\"Size\",defaultValue:48,min:24,max:128,step:1,unit:\"px\"},loopDuration:{type:ControlType.Number,title:\"Loop (s)\",defaultValue:1.5,min:.5,max:5,step:.1},stroke:{type:ControlType.Number,title:\"Stroke\",defaultValue:2,min:1,max:8,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollIndicator\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"80\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"48\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollIndicator.map"],"mappings":"+PAUG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,QAAM,OAAK,eAAa,SAAO,SAAO,EAAY,EAAS,GAAqB,CAAO,EAAS,GAAc,CAAO,EAAIA,EAAO,KAAK,CAAO,EAAO,EAAU,EAAI,CAAC,KAAK,GAAM,CAAC,CAAC,MAAc,CAAI,GAAU,CAAC,GAAc,EAAS,MAAM,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,WAAW,CAAC,SAAS,EAAa,OAAO,IAAS,KAAK,YAAY,CAAC,CAAC,EAAG,CAAC,EAAS,EAAS,EAAO,EAAa,CAAC,CAAC,IAAM,EAAM,EAAW,EAAO,EAAK,IAAU,EAAY,EAA0D,OAAtC,EAAM,EAAE,EAAkD,EAAK,MAAM,CAAK,MAAI,MAAM,CAAC,QAAM,SAAO,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,GAAG,EAAM,CAAC,aAAa,cAAc,KAAK,MAAM,SAAsB,EAAM,MAAM,CAAO,QAAa,SAAO,QAAQ,OAAO,EAAM,GAAG,IAAS,KAAK,OAAO,MAAM,6BAA6B,MAAM,CAAC,QAAQ,QAAQ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