{"version":3,"file":"ScrollChevron.BIdyoiUh.mjs","names":[],"sources":["https:/framerusercontent.com/modules/bfOTSGc3t57xF5xbHgOL/kaZVTR0qO0rppae7zZ0c/ScrollChevron.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";/**\n * Animated scroll-down triangle outline. Clicking scrolls to the element\n * matching `targetId`, or falls back to scrolling one viewport height down.\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function ScrollChevron(props){const{color,size,targetId}=props;const handleClick=()=>{// Try by id first\nif(targetId){const el=document.getElementById(targetId);if(el){el.scrollIntoView({behavior:\"smooth\"});return;}}// Fallback: scroll exactly one viewport height (works when TopScreen = 100vh)\nwindow.scrollTo({top:window.innerHeight,behavior:\"smooth\"});};return /*#__PURE__*/_jsx(motion.div,{animate:{y:[0,16,0]},transition:{duration:1.8,repeat:Infinity,ease:\"easeInOut\"},onClick:handleClick,style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:\"pointer\"},children:/*#__PURE__*/_jsx(\"svg\",{width:size,height:size,viewBox:\"0 0 24 24\",fill:\"none\",stroke:color,strokeWidth:\"1.5\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"polygon\",{points:\"4,6 20,6 12,18\"})})});}ScrollChevron.defaultProps={color:\"#533323\",size:28,targetId:\"\"};addPropertyControls(ScrollChevron,{color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#533323\"},size:{type:ControlType.Number,title:\"Size\",defaultValue:28,min:12,max:64,step:1},targetId:{type:ControlType.String,title:\"Target ID\",defaultValue:\"\",placeholder:\"e.g. bottom-screen\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollChevron\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollChevron.map"],"mappings":"2NAKG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,QAAM,OAAK,YAAU,EAEb,OAAoB,EAAK,EAAO,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,WAAW,CAAC,SAAS,IAAI,OAAO,IAAS,KAAK,WAAW,EAAE,YAF5E,CACvG,GAAG,EAAS,CAAC,IAAM,EAAG,SAAS,eAAe,CAAQ,EAAE,GAAG,EAAG,CAAC,EAAG,eAAe,CAAC,SAAS,QAAQ,CAAC,EAAE,MAAO,CAAC,CAC9G,EAAO,SAAS,CAAC,IAAI,EAAO,YAAY,SAAS,QAAQ,CAAC,CAAE,EAA2I,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,OAAO,SAAS,EAAE,SAAsB,EAAK,MAAM,CAAC,MAAM,EAAK,OAAO,EAAK,QAAQ,YAAY,KAAK,OAAO,OAAO,EAAM,YAAY,MAAM,eAAe,QAAQ,SAAsB,EAAK,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,qBAP/d,IAAoD,IAAkC,EAO0Y,EAAc,aAAa,CAAC,MAAM,UAAU,KAAK,GAAG,SAAS,EAAE,EAAE,EAAoB,EAAc,CAAC,MAAM,CAAC,KAAK,EAAY,MAAM,MAAM,QAAQ,aAAa,SAAS,EAAE,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,OAAO,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC,EAAE,SAAS,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,GAAG,YAAY,oBAAoB,CAAC,CAAC"}