{"version":3,"file":"LoadingPrototype.BYW0HaZE.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/pQZZZbtnc3xZdiaJeJP7/JLlbiTry6Ixc1KtwS50g/LoadingPrototype.js"],"sourcesContent":["// Get Started: https://www.framer.com/developers\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";export function withTimedDisappear(Component){return props=>{const[isVisible,setIsVisible]=useState(true);useEffect(()=>{const timer=setTimeout(()=>{setIsVisible(false);},5e3)// 5000ms = 5 secondi\n;return()=>clearTimeout(timer);},[]);if(!isVisible)return null;return /*#__PURE__*/_jsx(Component,{...props});};}export function withTimedAppear(Component){return props=>{const[isVisible,setIsVisible]=useState(false);useEffect(()=>{const timer=setTimeout(()=>{setIsVisible(true);},5e3)// 5000ms = 5 secondi\n;return()=>clearTimeout(timer);},[]);if(!isVisible)return null;return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withTimedDisappear\":{\"type\":\"reactHoc\",\"name\":\"withTimedDisappear\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTimedAppear\":{\"type\":\"reactHoc\",\"name\":\"withTimedAppear\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LoadingPrototype.map"],"mappings":"yHACiF,SAAgB,EAAmB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAU,GAAcA,EAAS,GAAK,CAC3H,OAD4H,MAAc,CAAC,IAAM,EAAM,eAAe,CAAC,EAAa,GAAM,EAAG,IAAI,CAC/P,UAAU,aAAa,EAAM,EAAG,EAAE,CAAC,CAAK,EAA0C,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,CAAnD,MAAuD,SAAgB,EAAgB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAU,GAAcA,EAAS,GAAM,CACzJ,OAD0J,MAAc,CAAC,IAAM,EAAM,eAAe,CAAC,EAAa,GAAK,EAAG,IAAI,CAC5R,UAAU,aAAa,EAAM,EAAG,EAAE,CAAC,CAAK,EAA0C,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,CAAnD,uBAFf,IAAsC"}