{"version":3,"file":"RandomRotate.BMMES0y8.mjs","names":["useState","_jsx","__esmMin","_e","c","init_jsx_runtime","init_npm_react_18_3_1","withRandomRotation","init_RandomRotate","Component","props","angle","setAngle","randomRotation"],"sources":["https:/framerusercontent.com/modules/AcqJzfDMrHclV2eO9tjD/vmGMGonEIGiwnkP1t9DZ/RandomRotate.js"],"sourcesContent":["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=()=>Math.floor(Math.random()*21)-5;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=./RandomRotate.map"],"mappings":"A,8JAAoFO,EAAmBE,GAAmBC,GAAO,CAAC,GAAK,CAACC,EAAMC,GAAUZ,EAAS,CAAC,EAAQa,MAAmB,KAAK,MAAM,KAAK,OAAO,EAAE,EAAE,EAAE,EAAE,MAAqBZ,gBAAKQ,EAAU,CAAC,GAAGC,EAAM,WAAW,CAAC,OAAOC,CAAK,EAAE,iBAAiBC,EAASC,EAAe,CAAC,CAAC,CAAC,CAAE,C"}