{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/Lv8GVmUjAePJkOjsobMo/ISYsdCfY7jIaNHctnsAx/BACK_TO_TOP_BUTTON.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function BACK_TO_TOP_BUTTON(props){// Track button visibility and hover state\nconst[visible,setVisible]=React.useState(false);const[hovered,setHovered]=React.useState(false);const scrollInProgress=React.useRef(false);// Listen to scroll events to toggle button visibility\nReact.useEffect(()=>{const handleScroll=()=>{setVisible(window.scrollY>200);if(window.scrollY===0){scrollInProgress.current=false;}};window.addEventListener(\"scroll\",handleScroll);// Check on mount\nhandleScroll();return()=>window.removeEventListener(\"scroll\",handleScroll);},[]);// Position the button in the bottom-left\nconst containerStyle={position:\"fixed\",bottom:\"30px\",left:\"30px\",width:\"70px\",height:\"70px\",zIndex:9999,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",pointerEvents:\"auto\"};// Button styling with hover animation\nconst buttonStyle={width:\"50px\",height:\"50px\",backgroundColor:\"#0A21CD\",border:\"none\",borderRadius:\"50%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",boxShadow:\"0 2px 8px rgba(0,0,0,0.15)\",opacity:visible?1:0,transition:\"opacity 0.5s ease, transform 0.2s ease\",transform:hovered?\"scale(1.1)\":\"scale(1)\",pointerEvents:\"auto\",cursor:\"pointer\"};// Scroll-to-top handler\nconst scrollToTop=()=>{if(scrollInProgress.current){window.scrollTo({top:0,behavior:\"auto\"});scrollInProgress.current=false;}else{scrollInProgress.current=true;window.scrollTo({top:0,behavior:\"smooth\"});}};return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:/*#__PURE__*/_jsx(\"button\",{style:buttonStyle,onClick:scrollToTop,onMouseEnter:()=>setHovered(true),onMouseLeave:()=>setHovered(false),\"aria-label\":\"Back to Top\",children:/*#__PURE__*/_jsx(\"svg\",{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M12 8l-6 6h12z\",fill:\"white\"})})})});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BACK_TO_TOP_BUTTON\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BACK_TO_TOP_BUTTON.map"],
  "mappings": "kGAGkB,SAARA,EAAoCC,EAAM,CACpD,GAAK,CAACC,EAAQC,CAAU,EAAQC,EAAS,EAAK,EAAO,CAACC,EAAQC,CAAU,EAAQF,EAAS,EAAK,EAAQG,EAAuBC,EAAO,EAAK,EACzI,OAAMC,EAAU,IAAI,CAAC,IAAMC,EAAa,IAAI,CAACP,EAAWQ,EAAO,QAAQ,GAAG,EAAKA,EAAO,UAAU,IAAGJ,EAAiB,QAAQ,GAAO,EAAE,OAAAI,EAAO,iBAAiB,SAASD,CAAY,EAClLA,EAAa,EAAQ,IAAIC,EAAO,oBAAoB,SAASD,CAAY,CAAE,EAAE,CAAC,CAAC,EAGmJE,EAAK,MAAM,CAAC,MAFzN,CAAC,SAAS,QAAQ,OAAO,OAAO,KAAK,OAAO,MAAM,OAAO,OAAO,OAAO,OAAO,KAAK,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,cAAc,MAAM,EAE4E,SAAsBA,EAAK,SAAS,CAAC,MADtR,CAAC,MAAM,OAAO,OAAO,OAAO,gBAAgB,UAAU,OAAO,OAAO,aAAa,MAAM,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,UAAU,6BAA6B,QAAQV,EAAQ,EAAE,EAAE,WAAW,yCAAyC,UAAUG,EAAQ,aAAa,WAAW,cAAc,OAAO,OAAO,SAAS,EACxC,QAAxS,IAAI,CAAIE,EAAiB,SAASI,EAAO,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