{"version":3,"file":"Examples.DUfVKK1e.mjs","names":["useStore","useState","React.useContext","React.useMemo","React.Fragment","useRef","React.useId","sharedStyle.className","className","RichText","sharedStyle.css","sharedStyle.fonts","useState"],"sources":["https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/1kddEAvS0jXRvew5xCif/iTqSlWAnWHvdyctX5rwI/D2j4M4d9Q.js","https:/framerusercontent.com/modules/28rXvpPsrum7FH6cMELS/1jCAazZw1EGHjrG5Nu5D/Utils.js","https:/framer.com/m/framer/utils.js@^0.9.0","https:/framerusercontent.com/modules/tK9LQw5vBkNIwKancLeZ/pbZAK645OnYkJvYYzA7U/Examples.js"],"sourcesContent":["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","// Generated by Framer (600e657)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getFontsFromSharedStyle,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\";import*as sharedStyle from\"https://framerusercontent.com/modules/hC7EexK5NazPrN7VGG6K/nEZySvLQX48MTTMwJ5nl/fSGLHyA_2.js\";const MotionDivWithFX=withFX(motion.div);const enabledGestures={y4Rv1meCQ:{hover:true,pressed:true}};const cycleOrder=[\"y4Rv1meCQ\",\"ivbxzRncu\",\"Ds4SJT3Dn\",\"eMulhO5Lj\",\"cLNLcWqvA\"];const serializationHash=\"framer-4SCdU\";const variantClassNames={cLNLcWqvA:\"framer-v-1oasdnb\",Ds4SJT3Dn:\"framer-v-cw71gx\",eMulhO5Lj:\"framer-v-hdrztc\",ivbxzRncu:\"framer-v-a583ks\",y4Rv1meCQ:\"framer-v-1efm4uc\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const YwT8kh1ps=undefined;const s5WQW_pMG=undefined;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 humanReadableVariantMap={Default:\"y4Rv1meCQ\",Disabled:\"Ds4SJT3Dn\",Error:\"cLNLcWqvA\",Loading:\"ivbxzRncu\",Success:\"eMulhO5Lj\"};const Variants=motion.create(React.Fragment);const getProps=({click,height,id,title,width,...props})=>{return{...props,s5WQW_pMG:title??props.s5WQW_pMG??\"Submit\",variant:humanReadableVariantMap[props.variant]??props.variant??\"y4Rv1meCQ\",YwT8kh1ps:click??props.YwT8kh1ps};};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,s5WQW_pMG,YwT8kh1ps,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"y4Rv1meCQ\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTap1bwxi7a=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(YwT8kh1ps){const res=await YwT8kh1ps(...args);if(res===false)return false;}});const sharedStyleClassNames=[sharedStyle.className];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const isDisplayed=()=>{if(baseVariant===\"ivbxzRncu\")return false;return true;};const isDisplayed1=()=>{if(baseVariant===\"ivbxzRncu\")return true;return false;};const isDisplayed2=()=>{if(gestureVariant===\"y4Rv1meCQ-pressed\")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-1efm4uc\",className,classNames),\"data-framer-name\":\"Default\",\"data-highlight\":true,\"data-reset\":\"button\",layoutDependency:layoutDependency,layoutId:\"y4Rv1meCQ\",onTap:onTap1bwxi7a,ref:refBinding,style:{backgroundColor:\"var(--token-1fa84790-d65a-4d04-b57d-24daad3b6b10, rgb(234, 114, 59))\",borderBottomLeftRadius:4,borderBottomRightRadius:4,borderTopLeftRadius:4,borderTopRightRadius:4,opacity:1,...style},variants:{\"y4Rv1meCQ-hover\":{backgroundColor:\"var(--token-4a757d6f-3590-41b1-ab45-20ed59333d8f, rgb(239, 151, 111))\",opacity:1},\"y4Rv1meCQ-pressed\":{opacity:1},cLNLcWqvA:{backgroundColor:\"rgb(163, 51, 41)\",opacity:1},Ds4SJT3Dn:{opacity:.5},eMulhO5Lj:{opacity:1}},...addPropertyOverrides({\"y4Rv1meCQ-hover\":{\"data-framer-name\":undefined},\"y4Rv1meCQ-pressed\":{\"data-framer-name\":undefined},cLNLcWqvA:{\"data-framer-name\":\"Error\"},Ds4SJT3Dn:{\"data-framer-name\":\"Disabled\"},eMulhO5Lj:{\"data-framer-name\":\"Success\"},ivbxzRncu:{\"data-framer-name\":\"Loading\"}},baseVariant,gestureVariant),children:[isDisplayed()&&/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-16rm2vy\",\"data-styles-preset\":\"fSGLHyA_2\",dir:\"auto\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-722504f1-4fd2-4c07-a1c2-59cc910ad617, rgb(255, 255, 255)))\"},children:\"Submit\"})}),className:\"framer-54h5y7\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"hKV3RxQXU\",style:{\"--extracted-r6o4lv\":\"var(--token-722504f1-4fd2-4c07-a1c2-59cc910ad617, rgb(255, 255, 255))\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:s5WQW_pMG,verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({cLNLcWqvA:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-16rm2vy\",\"data-styles-preset\":\"fSGLHyA_2\",dir:\"auto\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-722504f1-4fd2-4c07-a1c2-59cc910ad617, rgb(255, 255, 255)))\"},children:\"Something went wrong\"})}),text:undefined},eMulhO5Lj:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-16rm2vy\",\"data-styles-preset\":\"fSGLHyA_2\",dir:\"auto\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-722504f1-4fd2-4c07-a1c2-59cc910ad617, rgb(255, 255, 255)))\"},children:\"Thank you\"})}),text:undefined}},baseVariant,gestureVariant)}),isDisplayed1()&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-6uw6td\",\"data-framer-name\":\"Spinner\",layoutDependency:layoutDependency,layoutId:\"uSUyXebGi\",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-10ateh4\",\"data-framer-name\":\"Conic\",layoutDependency:layoutDependency,layoutId:\"sZYFPPoIP\",style:{background:\"conic-gradient(from 180deg at 50% 50%, rgb(68, 204, 255) 0deg, rgb(68, 204, 255) 360deg)\",backgroundColor:\"rgb(68, 204, 255)\",mask:\"none\",WebkitMask:\"none\"},variants:{ivbxzRncu:{background:\"conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0) 7.208614864864882deg, rgb(255, 255, 255) 342deg)\",backgroundColor:\"rgba(0, 0, 0, 0)\",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-ftxjok\",\"data-framer-name\":\"Rounding\",layoutDependency:layoutDependency,layoutId:\"rPjedK_V5\",style:{backgroundColor:\"rgb(255, 255, 255)\",borderBottomLeftRadius:1,borderBottomRightRadius:1,borderTopLeftRadius:1,borderTopRightRadius:1},transformTemplate:transformTemplate1})})}),isDisplayed2()&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-117oj1q\",\"data-framer-name\":\"Black Overlay\",layoutDependency:layoutDependency,layoutId:\"R3aLzYJFN\",style:{backgroundColor:\"var(--token-0183cae1-20b4-4354-a48c-57844aa25fb3, rgb(0, 0, 0))\",opacity:.3}})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-4SCdU.framer-153uw3m, .framer-4SCdU .framer-153uw3m { display: block; }\",\".framer-4SCdU.framer-1efm4uc { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: min-content; justify-content: center; overflow: visible; padding: 16px 24px 14px 24px; position: relative; width: 240px; }\",\".framer-4SCdU .framer-54h5y7 { -webkit-user-select: none; flex: none; height: auto; position: relative; user-select: none; white-space: pre; width: auto; }\",\".framer-4SCdU .framer-6uw6td { aspect-ratio: 1 / 1; flex: none; gap: 10px; height: var(--framer-aspect-ratio-supported, 20px); overflow: hidden; position: relative; width: 20px; }\",\".framer-4SCdU .framer-10ateh4 { bottom: 0px; flex: none; left: 0px; overflow: visible; position: absolute; right: 0px; top: 0px; }\",\".framer-4SCdU .framer-ftxjok { aspect-ratio: 1 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 2px); left: 50%; overflow: visible; position: absolute; top: 0px; width: 2px; }\",\".framer-4SCdU .framer-117oj1q { flex: none; height: 102%; left: -2px; overflow: visible; position: absolute; top: calc(50.00000000000002% - 101.72413793103448% / 2); width: 102%; z-index: 0; }\",\".framer-4SCdU.framer-v-a583ks .framer-10ateh4 { overflow: hidden; }\",...sharedStyle.css];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 58\n * @framerIntrinsicWidth 240\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]},\"ivbxzRncu\":{\"layout\":[\"fixed\",\"auto\"]},\"Ds4SJT3Dn\":{\"layout\":[\"fixed\",\"auto\"]},\"eMulhO5Lj\":{\"layout\":[\"fixed\",\"auto\"]},\"cLNLcWqvA\":{\"layout\":[\"fixed\",\"auto\"]},\"is06xauuW\":{\"layout\":[\"fixed\",\"auto\"]},\"plySdtSEU\":{\"layout\":[\"fixed\",\"auto\"]}}}\n * @framerVariables {\"s5WQW_pMG\":\"title\",\"YwT8kh1ps\":\"click\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerD2j4M4d9Q=withCSS(Component,css,\"framer-4SCdU\");export default FramerD2j4M4d9Q;FramerD2j4M4d9Q.displayName=\"Button\";FramerD2j4M4d9Q.defaultProps={height:58,width:240};addPropertyControls(FramerD2j4M4d9Q,{variant:{options:[\"y4Rv1meCQ\",\"ivbxzRncu\",\"Ds4SJT3Dn\",\"eMulhO5Lj\",\"cLNLcWqvA\"],optionTitles:[\"Default\",\"Loading\",\"Disabled\",\"Success\",\"Error\"],title:\"Variant\",type:ControlType.Enum},s5WQW_pMG:{defaultValue:\"Submit\",displayTextArea:false,title:\"Title\",type:ControlType.String},ons5WQW_pMGChange:{changes:\"s5WQW_pMG\",type:ControlType.ChangeHandler},YwT8kh1ps:{title:\"Click\",type:ControlType.EventHandler}});addFonts(FramerD2j4M4d9Q,[{explicitInter:true,fonts:[{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/5vvr9Vy74if2I6bQbJvbw7SY1pQ.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/EOr0mi4hNtlgWNn9if640EZzXCo.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",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/JeYwfuaPfZHQhEG8U5gtPDZ7WQ.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",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/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",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/b6Y37FthZeALduNqHicBT6FutY.woff2\",weight:\"400\"}]},...getFontsFromSharedStyle(sharedStyle.fonts)],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerD2j4M4d9Q\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerImmutableVariables\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerVariables\":\"{\\\"s5WQW_pMG\\\":\\\"title\\\",\\\"YwT8kh1ps\\\":\\\"click\\\"}\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"ivbxzRncu\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"Ds4SJT3Dn\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"eMulhO5Lj\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"cLNLcWqvA\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"is06xauuW\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"plySdtSEU\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\",\"framerColorSyntax\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerComponentViewportWidth\":\"true\",\"framerIntrinsicHeight\":\"58\",\"framerIntrinsicWidth\":\"240\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./D2j4M4d9Q.map","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,useState}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.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()});}});});}export function withSessionPreloader(Component){return props=>{// Lazy initialiser runs synchronously on first render — before the\n// browser paints — so the preloader is present from frame one,\n// eliminating any flash of page content underneath.\nconst[shouldShow]=useState(()=>{const alreadyLoaded=sessionStorage.getItem(\"home_loaded\");if(!alreadyLoaded){sessionStorage.setItem(\"home_loaded\",\"true\");return true;}return false;});if(!shouldShow)return null;return /*#__PURE__*/_jsx(Component,{...props});};}export function withFormReset(Component){return props=>{const[formKey,setFormKey]=useState(0);const handleSuccess=(...args)=>{// Pass through the original onSuccess prop if one exists\nprops.onSuccess?.(...args);// Delay the reset slightly so the success overlay has time to\n// appear before the form fields clear underneath it.\nsetTimeout(()=>setFormKey(k=>k+1),400);};return /*#__PURE__*/_jsx(Component,{...props,onSuccess:handleSuccess},formKey);};}\nexport const __FramerMetadata__ = {\"exports\":{\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSessionPreloader\":{\"type\":\"reactHoc\",\"name\":\"withSessionPreloader\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFormReset\":{\"type\":\"reactHoc\",\"name\":\"withFormReset\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"wcAA8E,SAAgB,EAAY,EAAO,CACjH,IAAM,EAAU,EAAK,CAAC,MAAM,OAAO,OAAO,CAAC,GAAG,EAAO,CAAC,CAAC,CAAC,CAClD,EAAa,GAAU,CAC1B,OAAO,GAAW,aAAY,EAAS,EAAS,EAAU,MAAM,EAAE,EAAU,MAAM,OAAO,OAAO,CAAC,GAAG,EAAU,MAAM,GAAG,EAAS,CAAC,EAChI,EAAW,OAAO,GAAS,SAAS,OAAO,OAAO,CAAC,GAAG,EAAO,CAAC,CAAC,EAC7D,EAAa,IAAI,IACjB,EAAc,GAAU,CAC3B,OAAO,GAAW,aAAY,EAAS,EAAS,EAAW,EAAE,EAAW,OAAO,GAAW,SAAS,OAAO,OAAO,CAAC,GAAG,EAAW,GAAG,EAAS,CAAC,CAAC,EACjJ,EAAa,QAAQ,GAAQ,EAAO,EAAW,CAAC,EAChD,SAASA,GAAU,CACnB,GAAK,CAAC,EAAM,GAAUC,EAAS,EAAW,CAK1C,OAHA,OACA,EAAa,IAAI,EAAS,KAAW,EAAa,OAAO,EAAS,EAAG,EAAE,CAAC,CACrE,GAAgB,GAAG,IAAM,GAAgB,CAAO,CAAC,EAAU,MAAM,EAAa,EAC3E,CAAC,EAAM,EAAc,CAAG,OAAOD,mBAfC,IAAwC,qBEC2xB,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,mDAAx9B,IAA4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