{"version":3,"file":"Examples_3.fjVOs4tc.mjs","names":["e"],"sources":["https:/framerusercontent.com/modules/R3OJAo6wZe9gsBGkJOPi/6dQPIDbQ9lEKcyAKzRRr/Examples_3.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{randomColor}from\"https://framer.com/m/framer/utils.js@^0.9.0\";import React from\"react\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({background:\"#0099FF\"});export function withRotate(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,animate:{rotate:90},transition:{duration:2}});};}export function withHover(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,whileHover:{scale:1.05}});};}export function withOnPressEvent(Component){return props=>{React.useEffect(()=>{const handleKeyPress=e=>{if(e.keyCode===84){window.open(\"https://app.learnyst.com/signup\",\"_blank\");}};window.addEventListener(\"keydown\",handleKeyPress);return()=>{window.removeEventListener(\"keydown\",handleKeyPress);};},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function withRandomColor(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});};}export function withRandomColor1(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withOnPressEvent\":{\"type\":\"reactHoc\",\"name\":\"withOnPressEvent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor1\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor1\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples_3.map"],"mappings":"6SACoU,SAAgB,EAAiB,EAAU,CAAC,MAAO,CAAA,IAAQ,EAAM,UAAU,IAAI,CAAC,IAAM,EAAe,GAAG,CAAC,AAAGA,EAAE,UAAU,IAAI,EAAO,KAAK,kCAAkC,SAAS,AAAG,EAAmD,MAAlD,GAAO,iBAAiB,UAAU,EAAe,CAAO,IAAI,CAAC,EAAO,oBAAoB,UAAU,EAAe,AAAE,CAAE,EAAC,CAAE,EAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,CAAM,EAAC,CAAI,gBAAjqB,IADN,GAA2C,IAAqE,IAAqE,IAAyB,CACxM,EAAS,EAAY,CAAC,WAAW,SAAU,EAAC"}