{"version":3,"file":"FloatingParticles.DnK__G31.mjs","names":["Vimeo","useState","useRef","Player","key","useRef","useState"],"sources":["https:/framerusercontent.com/modules/0sWquksFr1YDkaIgrl9Z/jKzAzDE1dbmgPC3q8RAo/Vimeo.js","https:/framerusercontent.com/modules/EFK2PEsPS4rYAA227zwv/zONfcxjTe33Zy54QNWfz/FloatingParticles.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget,withCSS,clampRGB}from\"framer\";import{motion}from\"framer-motion\";import Player from\"@vimeo/player\";import{useEffect,useRef,useState}from\"react\";import{useRadius,borderRadiusControl}from\"https://framer.com/m/framer/default-utils.js@^0.45.0\";const vimeoRegex=/^https?:\\/\\/vimeo\\.com\\/(\\d+)/;/**\n * VIMEO\n *\n * @framerIntrinsicWidth 480\n * @framerIntrinsicHeight 270\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n *\n * @framerComponentPresetProps borderRadius, backgroundColor\n */const Vimeo=withCSS(function Vimeo({video,autoplay,mute,controls,loop,titles,backgroundColor,onPlay=()=>{},onEnd=()=>{},style,...props}){const[key,setKey]=useState(0);const player=useRef();const borderRadius=useRadius(props);useEffect(()=>{if(!player.current)return;const[,id]=video.match(vimeoRegex)?video.match(vimeoRegex):[null,0];const embeddedPlayer=new Player(player.current,{id,autopause:false,autoplay:RenderTarget.current()===RenderTarget.canvas?false:autoplay,byline:titles,controls:controls,loop:loop,title:titles,muted:mute,responsive:true});embeddedPlayer.on(\"play\",onPlay);embeddedPlayer.on(\"ended\",onEnd);},[player,key]);useEffect(()=>{setKey(key=>key+1);},[video,autoplay,mute,controls,loop,titles]);return /*#__PURE__*/_jsx(motion.div,{style:{\"--background-rgb\":clampRGB(backgroundColor),background:`var(--vimeo-background, ${backgroundColor})`,...style,borderRadius,position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",overflow:\"hidden\"},...props,children:/*#__PURE__*/_jsx(\"div\",{className:\"framer-vimeo\",ref:player,style:{width:\"100%\",height:\"100%\"}},key)});},[\".framer-vimeo > div { padding: 0 !important; width: 100%; height: 100%; }\",\"@supports not (color(display-p3 1 1 1)) { --vimeo-background: var(--background-rgb)}\"],\"framer-lib-vimeo\");Vimeo.defaultProps={video:\"https://vimeo.com/642263700\",autoplay:false,loop:false,mute:false,backgroundColor:\"rgba(0, 0, 0, 0)\",borderRadius:0};addPropertyControls(Vimeo,{video:{title:\"URL\",type:ControlType.String},...borderRadiusControl,controls:{title:\"Controls\",type:ControlType.Boolean,enabledTitle:\"Show\",disabledTitle:\"Hide\"},autoplay:{title:\"Autoplay\",type:ControlType.Boolean,enabledTitle:\"Yes\",disabledTitle:\"No\"},// playOnCanvas: {\n//     title: \"On Canvas\",\n//     type: ControlType.Boolean,\n//     enabledTitle: \"Play\",\n//     disabledTitle: \"Pause\",\n// },\nloop:{title:\"Loop\",type:ControlType.Boolean,enabledTitle:\"Yes\",disabledTitle:\"No\"},mute:{title:\"Mute\",type:ControlType.Boolean,enabledTitle:\"Yes\",disabledTitle:\"No\"},// titles: {\n//     title: \"Titles\",\n//     type: ControlType.Boolean,\n//     enabledTitle: \"Show\",\n//     disabledTitle: \"Hide\",\n// },\nbackgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgba(0, 0, 0, 0)\"},onPlay:{type:ControlType.EventHandler},onEnd:{type:ControlType.EventHandler}});export default Vimeo;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Vimeo\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"270\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicWidth\":\"480\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerComponentPresetProps\":\"borderRadius, backgroundColor\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Vimeo.map","// Floating particles that smoothly hover and move around\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion,useInView}from\"framer-motion\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function FloatingParticles(props){const{particleCount=20,particleSize=4,particleColor1=\"#FFFFFF\",particleColor2=\"#CCCCCC\",particleColor3=\"#999999\",speed=1,opacity=.8,blur=false}=props;const containerRef=useRef(null);const animationRef=useRef();const[particles,setParticles]=useState([]);const[dimensions,setDimensions]=useState({width:400,height:300});const isStatic=useIsStaticRenderer();const isInView=useInView(containerRef,{once:false});// Initialize particles\nuseEffect(()=>{if(isStatic)return;const colors=[particleColor1,particleColor2,particleColor3];const newParticles=[];for(let i=0;i<particleCount;i++){newParticles.push({id:i,x:Math.random()*dimensions.width,y:Math.random()*dimensions.height,vx:(Math.random()-.5)*speed*.5,vy:(Math.random()-.5)*speed*.5,size:particleSize+Math.random()*particleSize*.5,opacity:opacity*(.5+Math.random()*.5),color:colors[Math.floor(Math.random()*colors.length)]});}startTransition(()=>setParticles(newParticles));},[particleCount,particleSize,particleColor1,particleColor2,particleColor3,speed,opacity,dimensions,isStatic]);// Update dimensions when container size changes\nuseEffect(()=>{if(!containerRef.current||isStatic)return;const updateDimensions=()=>{const rect=containerRef.current?.getBoundingClientRect();if(rect){startTransition(()=>setDimensions({width:rect.width,height:rect.height}));}};updateDimensions();if(typeof window!==\"undefined\"){window.addEventListener(\"resize\",updateDimensions);return()=>window.removeEventListener(\"resize\",updateDimensions);}},[isStatic]);// Animation loop\nuseEffect(()=>{if(isStatic||!isInView||particles.length===0)return;const animate=()=>{startTransition(()=>{setParticles(prevParticles=>prevParticles.map(particle=>{let newX=particle.x+particle.vx*speed;let newY=particle.y+particle.vy*speed;let newVx=particle.vx;let newVy=particle.vy;// Bounce off edges with some randomness\n    if(newX<=0||newX>=dimensions.width){newVx=-newVx+(Math.random()-.5)*.1;newX=Math.max(0,Math.min(dimensions.width,newX));}if(newY<=0||newY>=dimensions.height){newVy=-newVy+(Math.random()-.5)*.1;newY=Math.max(0,Math.min(dimensions.height,newY));}// Add slight random movement for floating effect\n    newVx+=(Math.random()-.5)*.02;newVy+=(Math.random()-.5)*.02;// Limit velocity\n    const maxVel=speed*.8;newVx=Math.max(-maxVel,Math.min(maxVel,newVx));newVy=Math.max(-maxVel,Math.min(maxVel,newVy));return{...particle,x:newX,y:newY,vx:newVx,vy:newVy};}));});if(isInView){animationRef.current=requestAnimationFrame(animate);}};animationRef.current=requestAnimationFrame(animate);return()=>{if(animationRef.current){cancelAnimationFrame(animationRef.current);}};},[isStatic,isInView,particles.length,speed,dimensions]);if(isStatic){// Static preview with some particles\nconst colors=[particleColor1,particleColor2,particleColor3];const staticParticles=Array.from({length:Math.min(particleCount,10)},(_,i)=>({id:i,x:(i*50+30)%300,y:(i*30+40)%200,size:particleSize,opacity:opacity,color:colors[i%colors.length]}));return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"hidden\",backgroundColor:\"transparent\"},children:staticParticles.map(particle=>/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:particle.x,top:particle.y,width:particle.size,height:particle.size,backgroundColor:particle.color,borderRadius:\"50%\",opacity:particle.opacity,filter:blur?\"blur(1px)\":\"none\"}},particle.id))});}return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{width:\"100%\",height:\"100%\",position:\"relative\",overflow:\"hidden\",backgroundColor:\"transparent\"},children:particles.map(particle=>/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",left:particle.x,top:particle.y,width:particle.size,height:particle.size,backgroundColor:particle.color,borderRadius:\"50%\",opacity:particle.opacity,filter:blur?\"blur(1px)\":\"none\"},animate:{scale:[1,1.2,1],opacity:[particle.opacity,particle.opacity*.7,particle.opacity]},transition:{duration:3+Math.random()*2,repeat:Infinity,ease:\"easeInOut\"}},particle.id))});}addPropertyControls(FloatingParticles,{particleCount:{type:ControlType.Number,title:\"Particle Count\",defaultValue:20,min:5,max:300,step:1},particleSize:{type:ControlType.Number,title:\"Particle Size\",defaultValue:4,min:1,max:20,step:1,unit:\"px\"},particleColor1:{type:ControlType.Color,title:\"Particle Color 1\",defaultValue:\"#FFFFFF\"},particleColor2:{type:ControlType.Color,title:\"Particle Color 2\",defaultValue:\"#CCCCCC\"},particleColor3:{type:ControlType.Color,title:\"Particle Color 3\",defaultValue:\"#999999\"},speed:{type:ControlType.Number,title:\"Speed\",defaultValue:1,min:.1,max:5,step:.1},opacity:{type:ControlType.Number,title:\"Opacity\",defaultValue:.8,min:.1,max:1,step:.1},blur:{type:ControlType.Boolean,title:\"Blur Effect\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FloatingParticles\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FloatingParticles.map"],"mappings":"icAA2C,IAAkF,IAAkC,IAAkC,IAA6C,IAAgG,CAAM,EAAW,gCAUtV,EAAM,EAAQ,SAAe,CAAC,QAAM,WAAS,OAAK,WAAS,OAAK,SAAO,kBAAgB,aAAW,GAAG,YAAU,GAAG,QAAM,GAAG,GAAO,CAAC,GAAK,CAAC,EAAI,GAAQC,EAAS,EAAE,CAAO,EAAOC,GAAQ,CAAO,EAAa,EAAU,EAAM,CAA4e,OAA3e,MAAc,CAAC,GAAG,CAAC,EAAO,QAAQ,OAAO,GAAK,EAAE,GAAI,EAAM,MAAM,EAAW,CAAC,EAAM,MAAM,EAAW,CAAC,CAAC,KAAK,EAAE,CAAO,EAAe,IAAIC,EAAO,EAAO,QAAQ,CAAC,KAAG,UAAU,GAAM,SAAS,EAAa,SA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