{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/nqiy6g7uBaFts2ndtmJq/M7JRixio7Gm0kpgKMnwZ/Random_rotate.js"],
  "sourcesContent": ["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useState } from \"react\";\nexport const withRandomRotation = Component => {\n  return props => {\n    const [angle, setAngle] = useState(0);\n    const randomRotation = () => {\n      let value = 0;\n      do {\n        value = Math.floor(Math.random() * 15) - 7;\n      } while (value >= -2 && value <= 2);\n      return value;\n    };\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      whileHover: {\n        rotate: angle\n      },\n      onMouseEnter: () => setAngle(randomRotation())\n    });\n  };\n};\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"withRandomRotation\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"withRandomRotation\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./Random_rotate.map"],
  "mappings": "2HAAAA,IAEO,IAAMC,EAAqBC,GACzBC,GAAS,CACd,GAAM,CAACC,EAAOC,CAAQ,EAAIC,EAAS,CAAC,EAC9BC,EAAiB,IAAM,CAC3B,IAAIC,EAAQ,EACZ,GACEA,EAAQ,KAAK,MAAM,KAAK,OAAO,EAAI,EAAE,EAAI,QAClCA,GAAS,IAAMA,GAAS,GACjC,OAAOA,CACT,EACA,OAAoBC,EAAKP,EAAW,CAClC,GAAGC,EACH,WAAY,CACV,OAAQC,CACV,EACA,aAAc,IAAMC,EAASE,EAAe,CAAC,CAC/C,CAAC,CACH",
  "names": ["init_shims", "withRandomRotation", "Component", "props", "angle", "setAngle", "ye", "randomRotation", "value", "p"]
}
