{"version":3,"file":"shared-lib.BE7VjSTj.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/EyttbPXEhbMP3MnXgicQ/fIk4403xU8lEibirFa5X/VxInntNr0.js","https:/framerusercontent.com/modules/ipsZplaOaDQA1QYiJpOY/3pzZcYwsO4wvwjFshpHQ/ScrollToTopButton.js"],"sourcesContent":["// Generated by Framer (14b65b1)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-fjoY8 .framer-styles-preset-p2jb5h:not(.rich-text-wrapper), .framer-fjoY8 .framer-styles-preset-p2jb5h.rich-text-wrapper a { --framer-link-current-text-background-padding: 0px; --framer-link-hover-text-background-radius: 17px; --framer-link-hover-text-color: var(--token-8e53821b-e9a0-41e3-bcb5-fb66945b20ac, #8b5e3c); --framer-link-hover-text-decoration: underline; --framer-link-text-background-padding: 0px; --framer-link-text-background-radius: 0px; --framer-link-text-color: #626b70; }\"];export const className=\"framer-fjoY8\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{motion}from\"framer-motion\";export default function ScrollToTopButton(){const[isVisible,setIsVisible]=useState(false);// Show button when scrolled down\nuseEffect(()=>{const toggleVisibility=()=>{if(window.scrollY>300){setIsVisible(true);}else{setIsVisible(false);}};window.addEventListener(\"scroll\",toggleVisibility);return()=>window.removeEventListener(\"scroll\",toggleVisibility);},[]);// Smooth scroll to top\nconst scrollToTop=()=>{window.scrollTo({top:0,behavior:\"smooth\"});};return /*#__PURE__*/_jsx(motion.div,{initial:{opacity:0},animate:{opacity:isVisible?1:0},transition:{duration:.3},style:{position:\"fixed\",bottom:\"100px\",right:\"30px\",zIndex:1e3},children:/*#__PURE__*/_jsx(\"button\",{onClick:scrollToTop,style:{backgroundColor:\"#8B5E3C\",color:\"#fff\",border:\"none\",borderRadius:\"50%\",width:\"50px\",height:\"50px\",fontSize:\"20px\",cursor:\"pointer\",boxShadow:\"0 4px 12px rgba(0, 0, 0, 0.2)\",transition:\"background 0.3s ease\"},onMouseEnter:e=>e.target.style.backgroundColor=\"#6F482D\"// Darker shade on hover\n,onMouseLeave:e=>e.target.style.backgroundColor=\"#8B5E3C\"// Back to original color\n,children:\"↑\"})});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollToTopButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollToTopButton.map"],"mappings":"8XAC8B,GAAU,UAAU,EAAE,CAAC,CAAc,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,EAAE,CAAC,CAAC,CAAc,EAAI,CAAC,qfAAqf,CAAc,EAAU,kBCDrhB,SAAwB,GAAmB,CAAC,GAAK,CAAC,EAAU,GAAcA,EAAS,GAAM,CAExI,OADpE,MAAc,CAAC,IAAM,MAAqB,CAAI,EAAO,QAAQ,IAAK,EAAa,GAAK,CAAO,EAAa,GAAM,EAAuD,OAAnD,EAAO,iBAAiB,SAAS,EAAiB,KAAW,EAAO,oBAAoB,SAAS,EAAiB,EAAG,EAAE,CAAC,CAClJ,EAAK,EAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAU,EAAE,EAAE,CAAC,WAAW,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,SAAS,QAAQ,OAAO,QAAQ,MAAM,OAAO,OAAO,IAAI,CAAC,SAAsB,EAAK,SAAS,CAAC,YAArQ,CAAC,EAAO,SAAS,CAAC,IAAI,EAAE,SAAS,SAAS,CAAC,EAA8O,MAAM,CAAC,gBAAgB,UAAU,MAAM,OAAO,OAAO,OAAO,aAAa,MAAM,MAAM,OAAO,OAAO,OAAO,SAAS,OAAO,OAAO,UAAU,UAAU,gCAAgC,WAAW,uBAAuB,CAAC,aAAa,GAAG,EAAE,OAAO,MAAM,gBAAgB,UACrjB,aAAa,GAAG,EAAE,OAAO,MAAM,gBAAgB,UAC/C,SAAS,IAAI,CAAC,CAAC,CAAC,sBAJ0B,IAAsC,IAAkC"}