{"version":3,"file":"Random.1PXBsa1G.mjs","names":["useState","__esmMin","init_npm_react_18_3_1","c","init_jsx_runtime","_e","withRandomRotation","init_Random","angle","setAngle","randomRotation","value","Component","props"],"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":"A,8JAKuF,EAAmB,GAAmB,GAAO,CAAC,GAAK,CAACQ,EAAMC,GAAUT,EAAS,CAAC,EAAQU,MAAmB,CAAC,IAAIC,EAAM,EAAE,EAAG,GAAM,KAAK,MAAM,KAAK,OAAO,EAAE,EAAE,EAAE,QAASA,GAAO,IAAIA,GAAO,GAAE,OAAOA,CAAM,EAAE,MAAoB,gBAAKC,EAAU,CAAC,GAAGC,EAAM,WAAW,CAAC,OAAOL,CAAK,EAAE,iBAAiBC,EAASC,EAAe,CAAC,CAAC,CAAC,CAAE,C"}