{"version":3,"file":"Performance.PrwLsUge.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/z9171MlEncbeHfLrhHZr/sYeJbHWlh1y8Ukdhsc6V/Performance.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";// Apply this directly to the Animation Component layer\nexport function removeHeavyAnimation(Component){return props=>{// 1. Default to 'false' (High-end) so Framer's server doesn't panic\nconst[isLowEnd,setIsLowEnd]=useState(false);// 2. Run the hardware check safely in the background after the page loads\nuseEffect(()=>{const checkHardware=()=>{const cores=navigator.hardwareConcurrency||4;const memory=navigator.deviceMemory||4;// If it's weak (UNDER 4 cores/GB), flag it as low-end\nif(cores<4||memory<4){setIsLowEnd(true);}};checkHardware();},[])// The empty array ensures this only checks once when the site loads\n;// 3. If the device is weak, swap the animation for a solid color\nif(isLowEnd){return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,backgroundColor:\"#000000\",// backgroundImage: \"url('YOUR_STATIC_IMAGE_URL')\",\nbackgroundSize:\"cover\",backgroundPosition:\"center\"}});}// 4. If the device is strong, run the heavy animation normally\nreturn /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"removeHeavyAnimation\":{\"type\":\"reactHoc\",\"name\":\"removeHeavyAnimation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Performance.map"],"mappings":"uIACA,SAAgB,EAAqB,EAAU,CAAC,MAAO,IAAO,CAC9D,GAAK,CAAC,EAAS,GAAaA,EAAS,GAAM,CAM3C,OALA,MAAc,MAAyB,CAAC,IAAM,EAAM,EAAU,qBAAqB,EAAQ,EAAO,EAAU,cAAc,GACvH,EAAM,GAAG,EAAO,IAAG,EAAY,GAAK,IAAmB,EAAG,EAAE,CAAC,CAE7D,EAA8B,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,gBAAgB,UACnF,eAAe,QAAQ,mBAAmB,SAAS,CAAC,CAAC,CACjC,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,uBARH,IAAsC"}