{"version":3,"file":"Random.CfWhbXaE.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/05k7Y60dTxMjifFMxvS5/kOUrvtv1AYXGjXJ9i7go/Random.js"],"sourcesContent":["/*\n * Random Rotate by framer.today\n * v1.0.0\n * https://framer.today/license\n *\n */import{jsx as _jsx}from\"react/jsx-runtime\";import{useState}from\"react\";export const withRandomRotation=Component=>{return props=>{const[angle,setAngle]=useState(0);const randomRotation=()=>{let value=0;do{value=Math.floor(Math.random()*15)-7;}while(value>=-2&&value<=2)return value;};return /*#__PURE__*/_jsx(Component,{...props,whileHover:{rotate:angle},onMouseEnter:()=>setAngle(randomRotation())});};};\nexport const __FramerMetadata__ = {\"exports\":{\"withRandomRotation\":{\"type\":\"reactHoc\",\"name\":\"withRandomRotation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Random.map"],"mappings":"8KAK8C,IAA4B,CAAa,EAAmB,GAAmB,GAAO,CAAC,GAAK,CAAC,EAAM,GAAUA,EAAS,EAAE,CAAO,MAAmB,CAAC,IAAI,EAAM,EAAE,EAAG,GAAM,KAAK,MAAM,KAAK,QAAQ,CAAC,GAAG,CAAC,QAAS,GAAO,IAAI,GAAO,GAAE,OAAO,GAAQ,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,WAAW,CAAC,OAAO,EAAM,CAAC,iBAAiB,EAAS,GAAgB,CAAC,CAAC,CAAC"}