{"version":3,"file":"ScrollIndicator.DQaInhLT.mjs","names":["useRef","__esmMin","init_npm_react_18_3_1","ce","init_jsx_runtime","c","p","de","useInView","useAnimation","motion","init_framer_motion_DhsWWWsN","addPropertyControls","useIsStaticRenderer","ControlType","init_framer_DxfB3JJo","ScrollIndicator","props","isStatic","controls","ref","inView","loopDuration","width","size","height","strokeWidth","stroke","style","color","init_ScrollIndicator"],"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":"A,+PAUG,SAAwBgB,EAAgB,EAAM,CAAC,GAAK,CAAC,QAAM,OAAK,eAAa,SAAO,SAAOC,EAAYC,EAASL,EAAoB,EAAQM,EAASV,EAAa,EAAQW,EAAIpB,EAAO,IAAI,EAAQqB,EAAOb,EAAUY,EAAI,CAAC,KAAK,EAAK,CAAC,EAAEjB,MAAc,CAAI,IAAWkB,GAAcF,EAAS,MAAM,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,WAAW,CAAC,SAASG,EAAa,OAAO,IAAS,KAAK,WAAW,CAAC,CAAC,CAAE,EAAE,CAACH,EAASD,EAASG,EAAOC,CAAY,CAAC,EAAE,IAAMC,EAAMC,EAAWC,EAAOD,EAAK,IAAUE,EAAYC,EAA0D,OAAtCJ,EAAM,EAAEG,EAAkD,gBAAK,MA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