{"version":3,"file":"Examples_1.DatbSKrC.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","useStore","useState"],"sources":["https:/framerusercontent.com/modules/izxFEudechVi2daTLVHM/L3CS8WGnNCTvtyNoF6Gt/IbS7TeGon.js","https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/28rXvpPsrum7FH6cMELS/1jCAazZw1EGHjrG5Nu5D/Utils.js","https:/framer.com/m/framer/utils.js@^0.9.0","https:/framerusercontent.com/modules/UFbGvEgO4pzSRJcnxqj3/CeEbi56emDeOTt97EbDG/Examples_1.js"],"sourcesContent":["// Generated by Framer (7b363e7)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,RichText,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useVariantState,withCSS,withFX}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const MotionDivWithFX=withFX(motion.div);const enabledGestures={o2CmnooS5:{hover:true,pressed:true}};const cycleOrder=[\"o2CmnooS5\",\"n4VRetEyy\",\"Xp4ysoRK7\",\"jBLbNHvT7\",\"OeTYTPt92\",\"kIrJ1FKET\",\"Fg3336UG5\",\"QcRpZidPN\"];const serializationHash=\"framer-LuYUW\";const variantClassNames={Fg3336UG5:\"framer-v-qvm7lx\",jBLbNHvT7:\"framer-v-32jcex\",kIrJ1FKET:\"framer-v-bg0psf\",n4VRetEyy:\"framer-v-1ximymm\",o2CmnooS5:\"framer-v-1agkzyz\",OeTYTPt92:\"framer-v-ukugm9\",QcRpZidPN:\"framer-v-1mq9lm2\",Xp4ysoRK7:\"framer-v-f5i9ng\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={delay:0,duration:.2,ease:[.44,0,.56,1],type:\"tween\"};const transition2={delay:0,duration:1,ease:[0,0,1,1],type:\"tween\"};const animation={opacity:1,rotate:360,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,x:0,y:0};const transformTemplate1=(_,t)=>`translateX(-50%) ${t}`;const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const humanReadableVariantMap={\"Variant 7\":\"Fg3336UG5\",Default:\"o2CmnooS5\",Disabled:\"Xp4ysoRK7\",Error:\"OeTYTPt92\",Loading:\"n4VRetEyy\",Orange:\"kIrJ1FKET\",Success:\"jBLbNHvT7\",white:\"QcRpZidPN\"};const getProps=({click,height,hover,id,title,width,...props})=>{return{...props,B90SFlBly:title??props.B90SFlBly??\"Submit\",ItCh3km28:click??props.ItCh3km28,JTlGSLt8g:hover??props.JTlGSLt8g,variant:humanReadableVariantMap[props.variant]??props.variant??\"o2CmnooS5\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,B90SFlBly,JTlGSLt8g,ItCh3km28,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"o2CmnooS5\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTap5fq51j=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(ItCh3km28){const res=await ItCh3km28(...args);if(res===false)return false;}});const onMouseEnter16j1lm8=activeVariantCallback(async(...args)=>{setGestureState({isHovered:true});if(JTlGSLt8g){const res=await JTlGSLt8g(...args);if(res===false)return false;}});const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const isDisplayed=()=>{if(baseVariant===\"n4VRetEyy\")return false;return true;};const isDisplayed1=()=>{if(baseVariant===\"n4VRetEyy\")return true;return false;};return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsxs(motion.button,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-1agkzyz\",className,classNames),\"data-framer-name\":\"Default\",\"data-highlight\":true,\"data-reset\":\"button\",layoutDependency:layoutDependency,layoutId:\"o2CmnooS5\",onMouseEnter:onMouseEnter16j1lm8,onTap:onTap5fq51j,ref:refBinding,style:{backgroundColor:\"rgb(206, 149, 8)\",borderBottomLeftRadius:16,borderBottomRightRadius:16,borderTopLeftRadius:16,borderTopRightRadius:16,opacity:1,...style},variants:{\"o2CmnooS5-hover\":{opacity:1},\"o2CmnooS5-pressed\":{backgroundColor:\"rgb(153, 110, 2)\",opacity:1},Fg3336UG5:{backgroundColor:\"rgb(205, 149, 9)\",opacity:1},jBLbNHvT7:{backgroundColor:\"rgb(136, 194, 85)\",opacity:1},kIrJ1FKET:{backgroundColor:\"rgb(205, 149, 9)\",opacity:1},n4VRetEyy:{backgroundColor:\"rgba(207, 150, 8, 0.31)\"},OeTYTPt92:{backgroundColor:\"rgba(255, 34, 68, 0.15)\",opacity:1},QcRpZidPN:{backgroundColor:\"rgb(255, 255, 255)\",opacity:1},Xp4ysoRK7:{opacity:.5}},...addPropertyOverrides({\"o2CmnooS5-hover\":{\"data-framer-name\":undefined},\"o2CmnooS5-pressed\":{\"data-framer-name\":undefined},Fg3336UG5:{\"data-framer-name\":\"Variant 7\"},jBLbNHvT7:{\"data-framer-name\":\"Success\"},kIrJ1FKET:{\"data-framer-name\":\"Orange\"},n4VRetEyy:{\"data-framer-name\":\"Loading\"},OeTYTPt92:{\"data-framer-name\":\"Error\"},QcRpZidPN:{\"data-framer-name\":\"white\"},Xp4ysoRK7:{\"data-framer-name\":\"Disabled\"}},baseVariant,gestureVariant),children:[isDisplayed()&&/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.div,{style:{\"--font-selector\":\"RlM7TWFucm9wZS1zZW1pYm9sZA==\",\"--framer-font-family\":'\"Manrope\", \"Manrope Placeholder\", sans-serif',\"--framer-font-size\":\"18px\",\"--framer-font-weight\":\"600\",\"--framer-line-height\":\"1em\",\"--framer-text-color\":\"var(--extracted-tcooor, rgb(255, 255, 255))\"},children:\"Submit\"})}),className:\"framer-18j38be\",fonts:[\"FS;Manrope-semibold\"],layoutDependency:layoutDependency,layoutId:\"rp4mTTskQ\",style:{\"--extracted-tcooor\":\"rgb(255, 255, 255)\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:B90SFlBly,variants:{jBLbNHvT7:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\"},OeTYTPt92:{\"--extracted-r6o4lv\":\"rgb(255, 34, 68)\"},QcRpZidPN:{\"--extracted-tcooor\":\"rgb(11, 100, 145)\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({jBLbNHvT7:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-family\":'\"Inter\", \"Inter Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Done! Thank you!\"})}),fonts:[\"Inter-SemiBold\"],text:undefined},kIrJ1FKET:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.div,{style:{\"--font-selector\":\"RlM7TWFucm9wZS1zZW1pYm9sZA==\",\"--framer-font-family\":'\"Manrope\", \"Manrope Placeholder\", sans-serif',\"--framer-font-weight\":\"600\",\"--framer-line-height\":\"1em\",\"--framer-text-color\":\"var(--extracted-tcooor, rgb(255, 255, 255))\"},children:\"Submit\"})})},OeTYTPt92:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-family\":'\"Inter\", \"Inter Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 34, 68))\"},children:\"Something went wrong\"})}),fonts:[\"Inter-SemiBold\"],text:undefined},QcRpZidPN:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.div,{style:{\"--font-selector\":\"RlM7TWFucm9wZS1zZW1pYm9sZA==\",\"--framer-font-family\":'\"Manrope\", \"Manrope Placeholder\", sans-serif',\"--framer-font-size\":\"18px\",\"--framer-font-weight\":\"600\",\"--framer-line-height\":\"1em\",\"--framer-text-color\":\"var(--extracted-tcooor, rgb(11, 100, 145))\"},children:\"Submit\"})})}},baseVariant,gestureVariant)}),isDisplayed1()&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-9vttg5\",\"data-framer-name\":\"Spinner\",layoutDependency:layoutDependency,layoutId:\"NmztJkzFm\",style:{mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\"},children:/*#__PURE__*/_jsx(MotionDivWithFX,{__framer__loop:animation,__framer__loopEffectEnabled:true,__framer__loopRepeatDelay:0,__framer__loopRepeatType:\"loop\",__framer__loopTransition:transition2,__perspectiveFX:false,__smartComponentFX:true,__targetOpacity:1,className:\"framer-10xx06a\",\"data-framer-name\":\"Conic\",layoutDependency:layoutDependency,layoutId:\"rIv1v05zl\",style:{background:\"conic-gradient(from 0deg at 50% 50%, rgb(0, 0, 0) 7.208614864864882deg, rgb(255, 255, 255) 342deg)\",mask:\"none\",WebkitMask:\"none\"},variants:{n4VRetEyy:{mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\"}},children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-tdbu3a\",\"data-framer-name\":\"Rounding\",layoutDependency:layoutDependency,layoutId:\"JYlVElHsM\",style:{backgroundColor:\"rgb(255, 255, 255)\",borderBottomLeftRadius:1,borderBottomRightRadius:1,borderTopLeftRadius:1,borderTopRightRadius:1},transformTemplate:transformTemplate1})})})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-LuYUW.framer-1s5ymzm, .framer-LuYUW .framer-1s5ymzm { display: block; }\",\".framer-LuYUW.framer-1agkzyz { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: 56px; justify-content: center; overflow: visible; padding: 0px; position: relative; width: 240px; }\",\".framer-LuYUW .framer-18j38be { -webkit-user-select: none; flex: none; height: 17px; position: relative; user-select: none; white-space: pre; width: auto; }\",\".framer-LuYUW .framer-9vttg5 { aspect-ratio: 1 / 1; flex: none; gap: 10px; height: var(--framer-aspect-ratio-supported, 20px); overflow: hidden; position: relative; width: 20px; }\",\".framer-LuYUW .framer-10xx06a { bottom: 0px; flex: none; left: 0px; overflow: visible; position: absolute; right: 0px; top: 0px; }\",\".framer-LuYUW .framer-tdbu3a { aspect-ratio: 1 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 2px); left: 50%; overflow: visible; position: absolute; top: 0px; width: 2px; }\",\".framer-LuYUW.framer-v-1ximymm .framer-10xx06a { overflow: hidden; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 56\n * @framerIntrinsicWidth 240\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"n4VRetEyy\":{\"layout\":[\"fixed\",\"fixed\"]},\"Xp4ysoRK7\":{\"layout\":[\"fixed\",\"fixed\"]},\"jBLbNHvT7\":{\"layout\":[\"fixed\",\"fixed\"]},\"OeTYTPt92\":{\"layout\":[\"fixed\",\"fixed\"]},\"kIrJ1FKET\":{\"layout\":[\"fixed\",\"fixed\"]},\"Fg3336UG5\":{\"layout\":[\"fixed\",\"fixed\"]},\"QcRpZidPN\":{\"layout\":[\"fixed\",\"fixed\"]},\"yhxeCtqU1\":{\"layout\":[\"fixed\",\"fixed\"]},\"uOTK8egzY\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"B90SFlBly\":\"title\",\"JTlGSLt8g\":\"hover\",\"ItCh3km28\":\"click\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerIbS7TeGon=withCSS(Component,css,\"framer-LuYUW\");export default FramerIbS7TeGon;FramerIbS7TeGon.displayName=\"Button\";FramerIbS7TeGon.defaultProps={height:56,width:240};addPropertyControls(FramerIbS7TeGon,{variant:{options:[\"o2CmnooS5\",\"n4VRetEyy\",\"Xp4ysoRK7\",\"jBLbNHvT7\",\"OeTYTPt92\",\"kIrJ1FKET\",\"Fg3336UG5\",\"QcRpZidPN\"],optionTitles:[\"Default\",\"Loading\",\"Disabled\",\"Success\",\"Error\",\"Orange\",\"Variant 7\",\"white\"],title:\"Variant\",type:ControlType.Enum},B90SFlBly:{defaultValue:\"Submit\",displayTextArea:false,title:\"Title\",type:ControlType.String},JTlGSLt8g:{title:\"Hover\",type:ControlType.EventHandler},ItCh3km28:{title:\"Click\",type:ControlType.EventHandler}});addFonts(FramerIbS7TeGon,[{explicitInter:true,fonts:[{family:\"Manrope\",source:\"fontshare\",style:\"normal\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/6U2SGH566NSNERG6RGEV3DSNEK7DL2RF/JRDYRKMSAW2H35IWEQIPL67HAJQ35MG5/JNU3GNMUBPWW6V6JTED3S27XL5HN7NM5.woff2\",weight:\"600\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/hyOgCu0Xnghbimh0pE8QTvtt2AU.woff2\",weight:\"600\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/NeGmSOXrPBfEFIy5YZeHq17LEDA.woff2\",weight:\"600\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/oYaAX5himiTPYuN8vLWnqBbfD2s.woff2\",weight:\"600\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/lEJLP4R0yuCaMCjSXYHtJw72M.woff2\",weight:\"600\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/cRJyLNuTJR5jbyKzGi33wU9cqIQ.woff2\",weight:\"600\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/yDtI2UI8XcEg1W2je9XPN3Noo.woff2\",weight:\"600\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/A0Wcc7NgXMjUuFdquHDrIZpzZw0.woff2\",weight:\"600\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerIbS7TeGon\",\"slots\":[],\"annotations\":{\"framerDisplayContentsDiv\":\"false\",\"framerImmutableVariables\":\"true\",\"framerContractVersion\":\"1\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"n4VRetEyy\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"Xp4ysoRK7\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"jBLbNHvT7\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"OeTYTPt92\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"kIrJ1FKET\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"Fg3336UG5\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"QcRpZidPN\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"yhxeCtqU1\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"uOTK8egzY\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerAutoSizeImages\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerVariables\":\"{\\\"B90SFlBly\\\":\\\"title\\\",\\\"JTlGSLt8g\\\":\\\"hover\\\",\\\"ItCh3km28\\\":\\\"click\\\"}\",\"framerIntrinsicHeight\":\"56\",\"framerIntrinsicWidth\":\"240\",\"framerColorSyntax\":\"true\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./IbS7TeGon.map","import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map","/*\n * createStore (framer/store@1.0.1)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js\"\n","export const centerContent = {\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\"\n};\nexport const autoSizingText = {\n    width: \"max-content\",\n    wordBreak: \"break-word\",\n    overflowWrap: \"break-word\",\n    overflow: \"hidden\",\n    whiteSpace: \"pre-wrap\",\n    flexShrink: 0\n};\nexport const defaultContainerStyles = {\n    ...centerContent,\n    overflow: \"hidden\"\n};\nexport const containerStyles = defaultContainerStyles;\nexport const randomColor = ()=>\"#\" + Math.floor(Math.random() * 16777215).toString(16)\n;\n\nexport const __FramerMetadata__ = {\"exports\":{\"centerContent\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"autoSizingText\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultContainerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"randomColor\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./Utils.map","/*\n * Utils (framer/utils@0.9.0)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/28rXvpPsrum7FH6cMELS/1jCAazZw1EGHjrG5Nu5D/Utils.js\"\n","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\";import{useState,useEffect,useRef}from\"react\";const MASK_SIZE=100;export function bottomLayer(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{pointerEvents:\"none\"}});};}export function topLayer(Component){return props=>{const ref=useRef(null);const[mousePosition,setMousePosition]=useState({x:0,y:0});useEffect(()=>{const handleMouseMove=e=>{if(ref.current){const rect=ref.current.getBoundingClientRect();setMousePosition({x:e.clientX-rect.left,y:e.clientY-rect.top});}};window.addEventListener(\"mousemove\",handleMouseMove);return()=>{if(window){window.removeEventListener(\"mousemove\",handleMouseMove);}};},[]);const extendedStyle={color:\"red\",clipPath:`circle(${MASK_SIZE}px at ${mousePosition.x}px ${mousePosition.y}px)`,pointerEvents:\"none\"};return /*#__PURE__*/_jsx(Component,{...props,ref:el=>{ref.current=el;},style:extendedStyle});};}// Learn more: https://www.framer.com/developers/overrides/\nexport const SimpleTest=Component=>props=>{return /*#__PURE__*/_jsx(Component,{...props});};const 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.05}});});}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\"}},\"SimpleTest\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"bottomLayer\":{\"type\":\"reactHoc\",\"name\":\"bottomLayer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"topLayer\":{\"type\":\"reactHoc\",\"name\":\"topLayer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples_1.map"],"mappings":"qbACi1B,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,qDAAh8B,IAAoK,IAAkE,IAA4B,CAAgC,EAAgB,EAAO,EAAO,IAAI,CAAO,EAAgB,CAAC,UAAU,CAAC,MAAM,GAAK,QAAQ,GAAK,CAAC,CAAO,EAAW,CAAC,YAAY,YAAY,YAAY,YAAY,YAAY,YAAY,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,UAAU,kBAAkB,UAAU,kBAAkB,UAAU,mBAAmB,UAAU,mBAAmB,UAAU,kBAAkB,UAAU,mBAAmB,UAAU,kBAAkB,CAA8L,EAAY,CAAC,MAAM,EAAE,SAAS,GAAG,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,KAAK,QAAQ,CAAO,EAAY,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,KAAK,QAAQ,CAAO,EAAU,CAAC,QAAQ,EAAE,OAAO,IAAI,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,CAAO,GAAoB,EAAE,IAAI,oBAAoB,IAAU,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOA,EAAiB,EAAoB,CAAO,EAAW,GAAO,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,aAAW,EAAE,CAAC,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