{"version":3,"file":"Animations.AJItuhmL.mjs","names":["_window"],"sources":["https:/framerusercontent.com/modules/YszmfeHPKXUvtsfA5TXO/z0shzw23sobeS9M7g1Ri/Animations.js"],"sourcesContent":["var _window;import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";// Learn more: https://www.framer.com/docs/guides/overrides/\nconst useStore=createStore({showIntro:(_window=window)===null||_window===void 0?void 0:_window.showIntro});export function withTextAppear(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,animate:{opacity:1},transition:{duration:2}});};}export function withHover(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,whileHover:{scale:1.05}});};}export function blockScrollEffect(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props});};}export function HomeAnimationNavEffect(Component){return props=>{useEffect(()=>{var _window,_window1;if(!((_window=window)===null||_window===void 0?void 0:_window.showIntro)||!Math.floor((new Date().getTime()-((_window1=window)===null||_window1===void 0?void 0:_window1.showIntro))/864e5)){props={...props,animate:{opacity:1,scale:1,transition:{delay:2,duration:1,ease:[.44,0,.56,1],type:\"tween\"},x:0,y:0},initial:{opacity:.001,scale:1,x:0,y:-100}};window.showIntro=new Date().getTime();}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function HomeAnimationGPTEffect(Component){return props=>{useEffect(()=>{var _window;if(!((_window=window)===null||_window===void 0?void 0:_window.showIntro)){props={...props,animate:{opacity:1,transition:{delay:2,duration:1,ease:[.44,0,.56,1],type:\"tween\"},y:0},initial:{opacity:.001,y:100}};}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function HomeAnimationHeroSection(Component){return props=>{const[store]=useStore();const[variant,setVariant]=useState(props.variant);useEffect(()=>{if(store.showIntro){setVariant(\"VPNj5IIxZ\");}},[]);return /*#__PURE__*/_jsx(Component,{...props,variant:variant});};}export function withHomeBlogTitleAnimation(Component){return props=>{const variants=[\"Variant 1\",\"Variant 2\",\"Variant 3\"];const[index,setIndex]=useState(0);const variant=variants[index];useEffect(()=>{const interval=setInterval(()=>{setIndex(currentIndex=>(currentIndex+1)%variants.length);},2e3);return()=>clearInterval(interval);},[]);return /*#__PURE__*/_jsx(Component,{...props,variant:variant});};}export function withCountUp(Component){return props=>{const[count,setCount]=useState(0);useEffect(()=>{const interval=setInterval(()=>{setCount(count=>count+1);},2e3);console.log(props);return()=>clearInterval(interval);},[]);return /*#__PURE__*/_jsx(\"span\",{});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withTextAppear\":{\"type\":\"reactHoc\",\"name\":\"withTextAppear\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HomeAnimationHeroSection\":{\"type\":\"reactHoc\",\"name\":\"HomeAnimationHeroSection\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HomeAnimationNavEffect\":{\"type\":\"reactHoc\",\"name\":\"HomeAnimationNavEffect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"blockScrollEffect\":{\"type\":\"reactHoc\",\"name\":\"blockScrollEffect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HomeAnimationGPTEffect\":{\"type\":\"reactHoc\",\"name\":\"HomeAnimationGPTEffect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCountUp\":{\"type\":\"reactHoc\",\"name\":\"withCountUp\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHomeBlogTitleAnimation\":{\"type\":\"reactHoc\",\"name\":\"withHomeBlogTitleAnimation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Animations.map"],"mappings":"wLAC2G,SAAgB,EAAe,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,CAAC,QAAQ,EAAE,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC,CAAC,CAAgP,SAAgB,EAAuB,EAAU,CAAC,MAAO,KAAQ,MAAc,EAAyB,CAAW,GAAgD,WAAY,CAAC,KAAK,OAAO,IAAI,MAAM,CAAC,SAAS,CAAY,GAAkD,WAAY,MAAM,IAAE,EAAM,CAAC,GAAG,EAAM,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,KAAK,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,KAAK,MAAM,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC,EAAO,UAAU,IAAI,MAAM,CAAC,SAAS,GAAI,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,uBADn9B,IAAsC,IAAqE,CACnJ,EAAY,CAAC,UAAmB,GAAgD,UAAU,CAAC"}