{"version":3,"file":"Grad.BfcAEzCh.mjs","names":["React.useState","p"],"sources":["https:/framerusercontent.com/modules/kIVFZs8YXbWnxsDkzaxN/5iwlcSJZNE2eHK8t3938/Grad.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function AmbientGradientBackground(props){const{speed}=props;const[t,setT]=React.useState(0);React.useEffect(()=>{let raf;const start=performance.now();const loop=now=>{const elapsed=(now-start)/1e3;setT(elapsed);raf=requestAnimationFrame(loop);};raf=requestAnimationFrame(loop);return()=>cancelAnimationFrame(raf);},[]);// Smooth color interpolation helper\nconst mix=(a,b,p)=>Math.round(a+(b-a)*p);const lerpColor=(c1,c2,p)=>{return`rgb(${mix(c1[0],c2[0],p)}, ${mix(c1[1],c2[1],p)}, ${mix(c1[2],c2[2],p)})`;};const cycle=(time,offset=0)=>{const p=(Math.sin((time+offset)/speed)+1)/2;return p;};const pink=lerpColor([242,201,201],[255,255,255],cycle(t,0));const purple=lerpColor([220,213,245],[255,255,255],cycle(t,2));const cream=lerpColor([255,231,193],[255,255,255],cycle(t,4));return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",position:\"absolute\",overflow:\"hidden\",pointerEvents:\"none\",backgroundColor:\"#ffffff\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",width:\"160%\",height:\"160%\",top:\"-20%\",left:\"-15%\",borderRadius:\"50%\",background:`radial-gradient(circle at center, ${pink} 0%, rgba(255,255,255,0) 70%)`}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",width:\"200%\",height:\"200%\",top:\"-40%\",right:\"-30%\",borderRadius:\"50%\",background:`radial-gradient(circle at center, ${purple} 0%, rgba(255,255,255,0) 70%)`}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",width:\"180%\",height:\"180%\",bottom:\"-30%\",left:\"-25%\",borderRadius:\"50%\",background:`radial-gradient(circle at center, ${cream} 0%, rgba(255,255,255,0) 70%)`}})]});}addPropertyControls(AmbientGradientBackground,{speed:{type:ControlType.Number,title:\"Speed\",defaultValue:8,min:2,max:20,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AmbientGradientBackground\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Grad.map"],"mappings":"+KAAyI,SAAwB,EAA0B,EAAM,CAAC,GAAK,CAAC,SAAO,EAAW,CAAC,EAAE,GAAMA,EAAe,EAAE,CAAC,MAAoB,CAAC,IAAI,EAAU,EAAM,YAAY,KAAK,CAAO,EAAK,GAAK,CAA+B,GAAf,EAAI,GAAO,IAAiB,CAAC,EAAI,sBAAsB,EAAK,EAAmC,MAAhC,GAAI,sBAAsB,EAAK,KAAW,qBAAqB,EAAI,EAAG,EAAE,CAAC,CACxd,IAAM,GAAK,EAAE,EAAE,IAAI,KAAK,MAAM,GAAG,EAAE,GAAGC,EAAE,CAAO,GAAW,EAAG,EAAG,IAAW,OAAO,EAAI,EAAG,GAAG,EAAG,GAAGA,EAAE,CAAC,IAAI,EAAI,EAAG,GAAG,EAAG,GAAGA,EAAE,CAAC,IAAI,EAAI,EAAG,GAAG,EAAG,GAAGA,EAAE,CAAC,GAAW,GAAO,EAAK,EAAO,KAAc,KAAK,KAAK,EAAK,GAAQ,EAAM,CAAC,GAAG,EAAmB,EAAK,EAAU,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,EAAM,EAAE,EAAE,CAAC,CAAO,EAAO,EAAU,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,EAAM,EAAE,EAAE,CAAC,CAAO,EAAM,EAAU,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,EAAM,EAAE,EAAE,CAAC,CAA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