{"version":3,"file":"Examples.DIHitajI.mjs","names":["__esmMin","init_npm_react_18_3_1","J","init_jsx_runtime","createStore","init_store_js__1_0","randomColor","withHover","Component","props","withRandomColor","store","setStore","useStore","init_Examples","init_utils_js__0_9"],"sources":["https:/framerusercontent.com/modules/ldItcvzaurmbx5VI86CJ/nWQoP6ZEeQywAK7cEO7D/Examples.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";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\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({background:\"#0099FF\"});export function withRotate(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{rotate:90},transition:{duration:2}});});}export function withHover(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,whileHover:{scale:1.04}});});}export function withRandomColor(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"A,4KAC6O,SAAgBO,EAAU,EAAU,CAAC,MAAoB,iBAAY,EAAM,IAA2B,gBAAKC,EAAU,CAAK,MAAI,GAAGC,EAAM,WAAW,CAAC,MAAM,IAAI,CAAC,CAAC,CAAG,CAAE,CAAC,SAAgBC,EAAgB,EAAU,CAAC,MAAoB,iBAAY,EAAM,IAAM,CAAC,GAAK,CAACC,EAAMC,GAAUC,EAAS,EAAE,MAAoB,gBAAKL,EAAU,CAAK,MAAI,GAAGC,EAAM,QAAQ,CAAC,WAAWE,EAAM,UAAU,EAAE,YAAY,CAACC,EAAS,CAAC,WAAWN,EAAY,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAAC,CAAE,C,oDAAzpB,EAASF,EAAY,CAAC,WAAW,SAAS,CAAC,C"}