{"version":3,"file":"ScrollIndicator.Cb92hcFm.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/7gkGA74dNOiQhhMBNcCd/QAaxXIhUqEDrNfNlPq0U/ScrollIndicator.js"],"sourcesContent":["// Minimalist animated bouncing arrow with 'scroll' label, positionable at bottom\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion,useInView}from\"framer-motion\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{useRef}from\"react\";/**\n * Minimalist Bouncing Arrow\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ScrollIndicator(props){const{label,arrowColor,textColor,font,borderRadius,style,link,openInNewTab,instantScroll}=props;const ref=useRef(null);const isStatic=useIsStaticRenderer();const inView=useInView(ref,{once:false});const arrow=/*#__PURE__*/_jsx(\"svg\",{width:\"32\",height:\"32\",viewBox:\"0 0 32 32\",fill:\"none\",style:{display:\"block\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M16 8v16M16 24l-6-6M16 24l6-6\",stroke:arrowColor,strokeWidth:\"2.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});const content=/*#__PURE__*/_jsxs(\"div\",{ref:ref,style:{...style,position:\"relative\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",background:\"transparent\",borderRadius,padding:12,minWidth:48,minHeight:64,width:\"100%\",boxSizing:\"border-box\",gap:4,cursor:link?\"pointer\":undefined,scrollBehavior:instantScroll?\"auto\":\"smooth\"},children:[isStatic||!inView?/*#__PURE__*/_jsx(\"div\",{style:{height:32},children:arrow}):/*#__PURE__*/_jsx(motion.div,{animate:{y:[0,8,0]},transition:{duration:1.2,repeat:Infinity,ease:\"easeInOut\"},style:{height:32},children:arrow}),/*#__PURE__*/_jsx(\"span\",{style:{color:textColor,marginTop:2,...font,fontSize:font?.fontSize||14,fontWeight:font?.variant===\"Bold\"?700:500,letterSpacing:font?.letterSpacing||\"-0.01em\",lineHeight:font?.lineHeight||\"1.2em\",textAlign:\"center\",userSelect:\"none\"},children:label})]});if(link){return /*#__PURE__*/_jsx(\"a\",{href:link,target:openInNewTab?\"_blank\":undefined,rel:openInNewTab?\"noopener noreferrer\":undefined,style:{display:\"block\",textDecoration:\"none\",width:\"100%\",height:\"100%\"},\"aria-label\":label,children:content});}return content;}addPropertyControls(ScrollIndicator,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"scroll\"},arrowColor:{type:ControlType.Color,title:\"Arrow Color\",defaultValue:\"#000000\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\",textAlign:\"center\"}},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:32},link:{type:ControlType.Link,title:\"Link\",defaultValue:\"\"},openInNewTab:{type:ControlType.Boolean,title:\"Open in New Tab\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\",hidden:({link})=>!link},instantScroll:{type:ControlType.Boolean,title:\"Instant Scroll\",defaultValue:false,enabledTitle:\"Instant\",disabledTitle:\"Smooth\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollIndicator\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollIndicator.map"],"mappings":"iYAMG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,QAAM,aAAW,YAAU,OAAK,eAAa,QAAM,OAAK,eAAa,iBAAe,EAAY,EAAIA,EAAO,KAAK,CAAO,EAAS,GAAqB,CAAO,EA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