{"version":3,"file":"ScrollUpArrow.CmAXnv-e.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/aLcmns3ICEE6sv3bXCIv/Aix93MpWxJlfZDRDW3UC/ScrollUpArrow.js"],"sourcesContent":["// Scroll Up Arrow component that appears after scrolling past the hero section and scrolls to top on click\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * Scroll Up Arrow\n *\n * Shows a floating arrow button after scrolling past the hero section. Clicking scrolls to top.\n *\n * @framerIntrinsicWidth 56\n * @framerIntrinsicHeight 56\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ScrollUpArrow(props){const{heroId,iconColor,backgroundColor,borderRadius,shadow,size,style,mixBlendMode}=props;const[visible,setVisible]=useState(false);const isStatic=useIsStaticRenderer();useEffect(()=>{if(isStatic)return;if(typeof window===\"undefined\"||typeof document===\"undefined\")return;function onScroll(){const hero=document.getElementById(heroId);if(!hero)return setVisible(false);const rect=hero.getBoundingClientRect();// If hero bottom is above top of viewport, show arrow\nstartTransition(()=>setVisible(rect.bottom<0));}window.addEventListener(\"scroll\",onScroll,{passive:true});onScroll();return()=>window.removeEventListener(\"scroll\",onScroll);},[heroId,isStatic]);function handleClick(){if(typeof window!==\"undefined\"){window.scrollTo({top:0,behavior:\"smooth\"});}}if(!visible)return null;return /*#__PURE__*/_jsx(\"button\",{\"aria-label\":\"Scroll to top\",onClick:handleClick,style:{...style,position:\"fixed\",right:24,bottom:32,width:size,height:size,border:\"none\",borderRadius,background:backgroundColor,boxShadow:shadow?\"0 4px 16px rgba(0,0,0,0.12)\":\"none\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:\"pointer\",zIndex:1e3,transition:\"opacity 0.2s\",...mixBlendMode?{mixBlendMode}:{}},children:/*#__PURE__*/_jsx(\"svg\",{width:size*.5,height:size*.5,viewBox:\"0 0 24 24\",fill:\"none\",stroke:iconColor,strokeWidth:\"2.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M12 19V5M5 12l7-7 7 7\"})})});}addPropertyControls(ScrollUpArrow,{heroId:{type:ControlType.String,title:\"Hero Section ID\",defaultValue:\"hero\",placeholder:\"hero\"},iconColor:{type:ControlType.Color,title:\"Arrow Color\",defaultValue:\"#000000\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:28,min:0,max:56},shadow:{type:ControlType.Boolean,title:\"Shadow\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},size:{type:ControlType.Number,title:\"Size\",defaultValue:56,min:32,max:120,unit:\"px\"},mixBlendMode:{type:ControlType.Enum,title:\"Blend Mode\",options:[\"normal\",\"multiply\",\"screen\",\"overlay\",\"darken\",\"lighten\",\"color-dodge\",\"color-burn\",\"hard-light\",\"soft-light\",\"difference\",\"exclusion\",\"hue\",\"saturation\",\"color\",\"luminosity\"],optionTitles:[\"Normal\",\"Multiply\",\"Screen\",\"Overlay\",\"Darken\",\"Lighten\",\"Color Dodge\",\"Color Burn\",\"Hard Light\",\"Soft Light\",\"Difference\",\"Exclusion\",\"Hue\",\"Saturation\",\"Color\",\"Luminosity\"],defaultValue:\"multiply\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollUpArrow\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"56\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicHeight\":\"56\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollUpArrow.map"],"mappings":"8MAWG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,SAAO,YAAU,kBAAgB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