{"version":3,"file":"New_Homepage.LTNeOTZR.mjs","names":[],"sources":["https:/framerusercontent.com/modules/aL5Rb1EllSFPW6txkEn9/3PM60lTNRCsxu6r86lnA/New_Homepage.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{motion,useScroll,useTransform,useAnimate,useInView,useMotionValue,cubicBezier,stagger}from\"framer-motion\";import{useEffect,useRef,useLayoutEffect}from\"react\";import{RenderTarget}from\"framer\";const isCanvas=RenderTarget.current()===RenderTarget.canvas;const background=\"var(--token-f32baa44-90b8-42a5-8bca-ffba9d95b23a, #ffffff)\";export function withPolkaBackground(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,backgroundImage:`radial-gradient(transparent 1px, ${background} 1px)`,backgroundSize:\"10px 10px\"}});};}export function withTimeline(Component){return props=>{const[ref,animate]=useAnimate();useEffect(()=>{if(!ref.current)return;const controls=animate([[ref.current,{opacity:[0,1],y:[30,0]},{duration:.7,ease:[.21,.14,.24,.97]}],[\"[data-framer-name='Item']\",{opacity:[0,1],x:[-30,0]},{delay:stagger(.3),duration:.6,ease:[.21,.14,.24,.97],at:\"-0.4\"}],[ref.current,{opacity:0,y:-30},{duration:.5,ease:[.21,.05,.87,.45],at:\"+1\"}]],{repeat:Infinity,repeatDelay:.3});return()=>controls.stop();},[]);return /*#__PURE__*/_jsx(Component,{ref:ref,initial:{opacity:0},...props});};}export function withHover(Component){return props=>/*#__PURE__*/_jsx(Component,{...props,whileHover:{x:100}});}export function withSpringExamples(Component){return props=>{const[scope,animate]=useAnimate();const isInView=useInView(scope);if(!isCanvas){useEffect(()=>{if(!isInView)return;const yEnd=\"translateY(0px)\";const yStart=[yEnd,\"translateY(-180px)\"];const stiffness=500;const animation=animate([// In\n[\"div:nth-child(1)\",{transform:yStart},{type:\"spring\",stiffness:300,damping:35}],[\"div:nth-child(2)\",{transform:yStart},{type:\"spring\",stiffness:400,damping:30,at:.2}],[\"div:nth-child(3)\",{transform:yStart},{type:\"spring\",stiffness:400,damping:20,at:.4}],[\"div:nth-child(4)\",{transform:yStart},{type:\"spring\",stiffness,damping:10,at:.6}],[\"div:nth-child(5)\",{transform:yStart},{type:\"spring\",stiffness:600,damping:7,restDelta:2,restSpeed:40,at:.8}],// Out\n[\"div:nth-child(1)\",{transform:yEnd},{type:\"spring\"}],[\"div:nth-child(2)\",{transform:yEnd},{type:\"spring\",at:\"<\"}],[\"div:nth-child(3)\",{transform:yEnd},{type:\"spring\",at:\"<\"}],[\"div:nth-child(4)\",{transform:yEnd},{type:\"spring\",at:\"<\"}],[\"div:nth-child(5)\",{transform:yEnd},{type:\"spring\",at:\"<\"}],[\"div\",{transform:yEnd},{duration:.3}]],{repeat:Infinity});return()=>animation.stop();},[isInView]);}return /*#__PURE__*/_jsx(Component,{ref:scope,...props});};}export function withTransformExamples(Component){return props=>{const[scope,animate]=useAnimate();const isInView=useInView(scope);if(!isCanvas){useEffect(()=>{if(!isInView)return;const transition={duration:1,ease:cubicBezier(.29,.21,.16,.95),at:\"<\"};const yTransition={duration:.7,ease:cubicBezier(.18,.7,.54,1),at:\"<\"};const animation=animate([// X\n[\"div:nth-child(1)\",{scaleX:[1,1.5]},transition],[\"div:nth-child(2)\",{scaleX:[1,.5]},transition],[\"div:nth-child(3)\",{scaleX:[1,.2]},transition],[\"div:nth-child(4)\",{scaleX:[1,1.8]},transition],// Y\n[\"div:nth-child(1)\",{scaleY:[1,1.3]},{...yTransition,at:.5}],[\"div:nth-child(2)\",{scaleY:[1,1.3]},yTransition],[\"div:nth-child(3)\",{scaleY:[1,.7]},yTransition],[\"div:nth-child(4)\",{scaleY:[1,.7]},yTransition],// X\n[\"div:nth-child(1)\",{scaleX:.5},{...transition,at:1}],[\"div:nth-child(2)\",{scaleX:1.5},transition],[\"div:nth-child(3)\",{scaleX:1.8},transition],[\"div:nth-child(4)\",{scaleX:.2},transition],// Y\n[\"div:nth-child(1)\",{scaleY:.7},{...yTransition,at:1.5}],[\"div:nth-child(2)\",{scaleY:.7},yTransition],[\"div:nth-child(3)\",{scaleY:1.3},yTransition],[\"div:nth-child(4)\",{scaleY:1.3},yTransition],// X\n[\"div:nth-child(1)\",{scaleX:1},{...transition,at:2}],[\"div:nth-child(2)\",{scaleX:1},transition],[\"div:nth-child(3)\",{scaleX:1},transition],[\"div:nth-child(4)\",{scaleX:1},transition],// Y\n[\"div:nth-child(1)\",{scaleY:1},{...yTransition,at:2.5}],[\"div:nth-child(2)\",{scaleY:1},yTransition],[\"div:nth-child(3)\",{scaleY:1},yTransition],[\"div:nth-child(4)\",{scaleY:1},yTransition]],{repeat:Infinity,repeatDelay:.5});return()=>animation.stop();},[isInView]);}return /*#__PURE__*/_jsx(Component,{ref:scope,...props});};}export function withPerspective(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,perspective:1e3}});};}export function withPatternOverlayHomepage(Component){return props=>{const gradientMask=useMotionValue(\"linear-gradient(180deg, black 20%, rgba(0, 0, 0, 0) 80%)\");return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,backgroundImage:// \"radial-gradient(transparent 2px, var(--token-f32baa44-90b8-42a5-8bca-ffba9d95b23a, #ffffff) 2px )\",\n\"radial-gradient(transparent 2px, var(--token-f32baa44-90b8-42a5-8bca-ffba9d95b23a, #ffffff) 2px)\",backgroundSize:\"10px 10px\",backdropFilter:\"blur(4px)\",WebkitBackdropFilter:\"blur(4px)\",backgroundColor:\"transparent\",maskImage:gradientMask,WebkitMaskImage:gradientMask}});};}export function withProgressIndicator(Component){return props=>{const ref=useRef(null);const target=useRef(null);if(!isCanvas){useLayoutEffect(()=>{if(!ref.current)return;const list=document.querySelectorAll(\"[data-features-progress-indicator]\");let index=0;for(let i=0;i<list.length;i++){if(list[i]===ref.current){index=i;}}target.current=document.getElementById(\"section-\"+(index+1));},[]);}const{scrollYProgress}=useScroll({target,layoutEffect:false,offset:[\"end end\",\"end start\"]});const y=useTransform(scrollYProgress,[0,1],[\"-100%\",\"0%\"]);return /*#__PURE__*/_jsx(motion.div,{style:{y,height:\"100%\"},children:/*#__PURE__*/_jsx(Component,{ref:ref,...props,\"data-features-progress-indicator\":true})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withProgressIndicator\":{\"type\":\"reactHoc\",\"name\":\"withProgressIndicator\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSpringExamples\":{\"type\":\"reactHoc\",\"name\":\"withSpringExamples\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPolkaBackground\":{\"type\":\"reactHoc\",\"name\":\"withPolkaBackground\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTimeline\":{\"type\":\"reactHoc\",\"name\":\"withTimeline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTransformExamples\":{\"type\":\"reactHoc\",\"name\":\"withTransformExamples\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPerspective\":{\"type\":\"reactHoc\",\"name\":\"withPerspective\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPatternOverlayHomepage\":{\"type\":\"reactHoc\",\"name\":\"withPatternOverlayHomepage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./New_Homepage.map"],"mappings":"iTAAkY,SAAS,EAAoB,EAAU,CAAC,MAAO,CAAA,GAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,iBAAiB,mCAAmC,EAAW,OAAO,eAAe,WAAY,CAAC,EAAC,AAAI,CAEjJ,SAAS,EAAsB,EAAU,CAAC,MAAO,CAAA,GAAO,CAAmC,GAA7B,CAAC,EAAM,EAAQ,CAAC,GAAY,CAAO,EAAS,EAAU,EAAM,CAMnU,OANwU,GAAU,EAAU,IAAI,CAAC,IAAI,EAAS,OAAoJ,IAAvI,EAAW,CAAC,SAAS,EAAE,KAAK,EAAY,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