{"version":3,"file":"Custom_Functions.RcfA_WzT.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/S9w6tmsF9YVdRGIjjP1j/bY0wFjO8VGjO29amq9Ja/Custom_Functions.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useState}from\"react\";export function withScrollVariant(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[isScrolling,setIsScrolling]=useState(false);useEffect(()=>{const handleScroll=()=>{setIsScrolling(window.scrollY>0);};handleScroll();window.addEventListener(\"scroll\",handleScroll,{passive:true});return()=>{window.removeEventListener(\"scroll\",handleScroll);};},[]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,variant:isScrolling?\"Scrolling\":\"Default\"});});}export function withGoBack(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>window.history.back()});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withScrollVariant\":{\"type\":\"reactHoc\",\"name\":\"withScrollVariant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withGoBack\":{\"type\":\"reactHoc\",\"name\":\"withGoBack\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Custom_Functions.map"],"mappings":"yIAA4F,SAAgB,EAAkB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,EAAY,GAAgBA,EAAS,EAAK,EAA8N,OAA5N,MAAc,CAAC,IAAM,MAAiB,CAAC,EAAe,EAAO,QAAQ,CAAC,CAAE,EAA+E,OAA7E,EAAa,EAAE,EAAO,iBAAiB,SAAS,EAAa,CAAC,QAAQ,EAAI,CAAC,MAAY,CAAC,EAAO,oBAAoB,SAAS,CAAY,CAAE,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,QAAQ,EAAY,YAAY,SAAS,CAAC,CAAE,CAAC,CAAE,CAAC,SAAgB,EAAW,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,YAAY,EAAO,QAAQ,KAAK,CAAC,CAAC,CAAI,qBAAvoB,IAAiD"}