{"version":3,"file":"SmoothScroll_1.BAO2NDsv.mjs","names":[],"sources":["https:/framerusercontent.com/modules/LL0RUBTC3uYE4RNKgTXM/wfGEtmmjFzu2f8IMOTgA/SmoothScroll_1.js"],"sourcesContent":["// Smooth Scroll Wrapper\n// Adds smooth scrolling to the website when this component is present\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Smooth Scroll\n *\n * @framerIntrinsicWidth 10\n * @framerIntrinsicHeight 10\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function SmoothScroll(props){const{scrollBehavior,style}=props;useEffect(()=>{if(typeof window!==\"undefined\"&&typeof document!==\"undefined\"){// Remove any previous style tag to avoid duplicates\nconst prev=document.getElementById(\"framer-smooth-scroll-style\");if(prev)prev.remove();// Try to set scroll-behavior directly on html and body for maximum compatibility\ndocument.documentElement.style.scrollBehavior=scrollBehavior;document.body.style.scrollBehavior=scrollBehavior;// Add style tag to head for fallback\nconst styleTag=document.createElement(\"style\");styleTag.id=\"framer-smooth-scroll-style\";styleTag.innerHTML=`html, body { scroll-behavior: ${scrollBehavior} !important; }`;document.head.appendChild(styleTag);// Try to force smooth scroll via window CSSOM API (for some browsers)\ntry{// @ts-ignore\nif(window.CSS&&window.CSS.supports&&window.CSS.supports(\"scroll-behavior: smooth\")){document.documentElement.style.setProperty(\"scroll-behavior\",scrollBehavior,\"important\");document.body.style.setProperty(\"scroll-behavior\",scrollBehavior,\"important\");}// Try to use CSSStyleSheet API for maximum compatibility\nif(document.adoptedStyleSheets){const sheet=new CSSStyleSheet;sheet.replaceSync(`html, body { scroll-behavior: ${scrollBehavior} !important; }`);document.adoptedStyleSheets=[...document.adoptedStyleSheets,sheet];}}catch(e){}return()=>{const tag=document.getElementById(\"framer-smooth-scroll-style\");if(tag)tag.remove();document.documentElement.style.scrollBehavior=\"\";document.body.style.scrollBehavior=\"\";if(document.adoptedStyleSheets){document.adoptedStyleSheets=document.adoptedStyleSheets.filter(s=>!(s&&s.replaceSync&&s.toString&&s.toString().includes(\"scroll-behavior\")));}};}},[scrollBehavior]);// Render a small visible div so the component can be selected in Framer\nreturn /*#__PURE__*/_jsx(\"div\",{style:{width:10,height:10,minWidth:5,minHeight:5,pointerEvents:\"none\",opacity:0,...style},title:\"Smooth Scroll\"});}addPropertyControls(SmoothScroll,{scrollBehavior:{type:ControlType.Enum,title:\"Scroll\",options:[\"smooth\",\"auto\"],optionTitles:[\"Smooth\",\"Instant\"],defaultValue:\"smooth\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SmoothScroll\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"10\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"10\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SmoothScroll_1.map"],"mappings":"0SAUG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,iBAAe,SAAO,EAO3E,OAPiF,MAAc,CAAC,GAAU,IAAS,QAAa,OAAO,SAAW,IAAY,CAC9J,IAAM,EAAK,SAAS,eAAe,6BAA6B,CAAI,GAAK,EAAK,QAAQ,CACtF,SAAS,gBAAgB,MAAM,eAAe,EAAe,SAAS,KAAK,MAAM,eAAe,EAChG,IAAM,EAAS,SAAS,cAAc,QAAQ,CAAC,EAAS,GAAG,6BAA6B,EAAS,UAAU,iCAAiC,EAAe,gBAAgB,SAAS,KAAK,YAAY,EAAS,CAC9M,GAAG,CAEH,GADG,EAAO,KAAK,EAAO,IAAI,UAAU,EAAO,IAAI,SAAS,0BAA0B,GAAE,SAAS,gBAAgB,MAAM,YAAY,kBAAkB,EAAe,YAAY,CAAC,SAAS,KAAK,MAAM,YAAY,kBAAkB,EAAe,YAAY,EACvP,S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