{"version":3,"file":"ScrollDownArrow.C3PyhxAP.mjs","names":["useState","startTransition"],"sources":["https:/framerusercontent.com/modules/g63qGXH9I6A1Yqv3dIur/9yIbLDJUt0bbMRGLdflT/ScrollDownArrow.js"],"sourcesContent":["// Modern scroll down arrow widget with \"click me to scroll down to service\" text\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";/**\n * Modern scroll down arrow widget with customizable text and smooth scrolling\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function ScrollDownArrow(props){const{text,targetId,backgroundColor,textColor,arrowColor,borderRadius,showBackground,font,arrowSize,padding,animationSpeed}=props;const[isHovered,setIsHovered]=useState(false);const handleClick=()=>{if(typeof window!==\"undefined\"&&targetId){const element=document.getElementById(targetId);if(element){element.scrollIntoView({behavior:\"smooth\",block:\"start\"});}else{// Fallback: scroll down by viewport height\nwindow.scrollBy({top:window.innerHeight,behavior:\"smooth\"});}}};return /*#__PURE__*/_jsxs(motion.div,{style:{display:\"inline-flex\",flexDirection:\"column\",alignItems:\"center\",gap:8,cursor:\"pointer\",userSelect:\"none\",padding:showBackground?padding:0,backgroundColor:showBackground?backgroundColor:\"transparent\",borderRadius:showBackground?borderRadius:0,boxShadow:showBackground&&isHovered?\"0 4px 12px rgba(0,0,0,0.1)\":\"none\",transition:\"all 0.3s ease\"},onClick:handleClick,onMouseEnter:()=>startTransition(()=>setIsHovered(true)),onMouseLeave:()=>startTransition(()=>setIsHovered(false)),whileHover:{scale:1.05},whileTap:{scale:.95},children:[/*#__PURE__*/_jsx(\"span\",{style:{color:textColor,textAlign:\"center\",opacity:isHovered?.8:1,transition:\"opacity 0.3s ease\",...font},children:text}),/*#__PURE__*/_jsx(motion.div,{animate:{y:[0,4,0]},transition:{duration:animationSpeed,repeat:Infinity,ease:\"easeInOut\"},style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:/*#__PURE__*/_jsxs(\"svg\",{width:arrowSize,height:arrowSize,viewBox:\"0 0 24 24\",fill:\"none\",stroke:arrowColor,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",style:{opacity:isHovered?.8:1,transition:\"opacity 0.3s ease\"},children:[/*#__PURE__*/_jsx(\"path\",{d:\"M7 13l5 5 5-5\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M7 6l5 5 5-5\"})]})})]});}addPropertyControls(ScrollDownArrow,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Click me to scroll down to service\"},targetId:{type:ControlType.String,title:\"Target Element ID\",defaultValue:\"service\",placeholder:\"service\"},showBackground:{type:ControlType.Boolean,title:\"Show Background\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},backgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#FFFFFF\",hidden:({showBackground})=>!showBackground},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},arrowColor:{type:ControlType.Color,title:\"Arrow Color\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"14px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:8,min:0,max:32,step:1,unit:\"px\",hidden:({showBackground})=>!showBackground},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:16,min:8,max:32,step:2,unit:\"px\",hidden:({showBackground})=>!showBackground},arrowSize:{type:ControlType.Number,title:\"Arrow Size\",defaultValue:24,min:16,max:48,step:2,unit:\"px\"},animationSpeed:{type:ControlType.Number,title:\"Animation Speed\",defaultValue:2,min:.5,max:5,step:.1,unit:\"s\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollDownArrow\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\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