{"version":3,"file":"ScrollDownIcon.DaJJ8Bkd.mjs","names":["useMemo","useCallback"],"sources":["https:/framerusercontent.com/modules/4ZjzcfRE24PXQMQBi0td/XNwawFPcDCSgK0xt10Y0/ScrollDownIcon.js"],"sourcesContent":["// User request: update ScrollDownIcon by keeping existing controls/props/defaults/rendering/animation unchanged, and add opacity, animationDistance, animationDuration override behavior, and scrollTarget controls with defaults matching current behavior.\n// Minimal scroll down icon with continuous animation\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useCallback,useMemo}from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ScrollDownIcon(props){const{iconColor,iconSize,strokeWidth,animationDuration,label,labelFont,opacity,animationDistance,animationDurationOverride,scrollTarget}=props;const resolvedDuration=useMemo(()=>{return typeof animationDurationOverride===\"number\"&&animationDurationOverride>0?animationDurationOverride:animationDuration;},[animationDuration,animationDurationOverride]);const lineAnimation=useMemo(()=>{const distance=animationDistance;return{y1:[6,6+distance,6],y2:[10,10+distance,10],opacity:[.2,1,.2]};},[animationDistance]);const handleClick=useCallback(()=>{if(!scrollTarget)return;if(typeof document!==\"undefined\"){const targetElement=document.querySelector(scrollTarget)??document.getElementById(scrollTarget.replace(/^#/,\"\"));if(targetElement){targetElement.scrollIntoView({behavior:\"smooth\",block:\"start\"});}}},[scrollTarget]);return /*#__PURE__*/_jsxs(\"div\",{onClick:handleClick,style:{width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"column\",gap:8,alignItems:\"center\",justifyContent:\"center\",position:\"relative\",opacity},children:[/*#__PURE__*/_jsxs(\"svg\",{width:iconSize,height:iconSize,viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-hidden\":\"true\",shapeRendering:\"geometricPrecision\",children:[/*#__PURE__*/_jsx(\"line\",{x1:\"12\",y1:\"4\",x2:\"12\",y2:\"20\",stroke:iconColor,strokeWidth:strokeWidth,strokeLinecap:\"butt\",vectorEffect:\"non-scaling-stroke\"}),/*#__PURE__*/_jsx(motion.line,{x1:\"12\",y1:\"6\",x2:\"12\",y2:\"10\",stroke:iconColor,strokeWidth:strokeWidth,strokeLinecap:\"butt\",vectorEffect:\"non-scaling-stroke\",animate:lineAnimation,transition:{duration:resolvedDuration,repeat:Infinity,ease:\"easeInOut\"}})]}),/*#__PURE__*/_jsx(\"span\",{style:{color:iconColor,...labelFont,lineHeight:labelFont?.lineHeight??\"1em\",width:\"max-content\"},children:label})]});}addPropertyControls(ScrollDownIcon,{iconColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"},iconSize:{type:ControlType.Number,title:\"Size\",defaultValue:48,min:24,max:120,step:4,unit:\"px\"},strokeWidth:{type:ControlType.Number,title:\"Stroke\",defaultValue:1,min:.5,max:2,step:.25,unit:\"px\"},animationDuration:{type:ControlType.Number,title:\"Speed\",defaultValue:1.5,min:.5,max:3,step:.1,unit:\"s\"},label:{type:ControlType.String,title:\"Text\",defaultValue:\"SCROLL\"},labelFont:{type:ControlType.Font,title:\"Text Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"12px\",variant:\"Semibold\",letterSpacing:\"0.12em\",lineHeight:\"1em\",textAlign:\"center\"}},opacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:1,min:0,max:1,step:.01},animationDistance:{type:ControlType.Number,title:\"Animation Distance\",defaultValue:8,min:0,max:24,step:1,unit:\"px\"},animationDurationOverride:{type:ControlType.Number,title:\"Animation Duration\",defaultValue:0,min:0,max:10,step:.1,unit:\"s\"},scrollTarget:{type:ControlType.String,title:\"Scroll Target\",defaultValue:\"\",placeholder:\"#gallery\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollDownIcon\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\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