{"version":3,"file":"shared-lib.3SlCm6tz.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/wuJ66JRS9LOr9mbjSCBv/MDNz7YBE1deK1Pq0QE6M/FloatingCircle.js","https:/framerusercontent.com/modules/X1C2So4Z5rGuaCWIt5VX/OBFSA8bExukeQpTVbHuo/BAfrr6cbi.js"],"sourcesContent":["// Adiós Studio — Floating Circle Component v2\n// Movimiento orgánico — deriva por la pantalla como la roca de Olafur Eliasson\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function FloatingCircle(props){const{stripeLink,size,vimeoId}=props;const[pos,setPos]=useState({x:0,y:0});const[hovered,setHovered]=useState(false);const posRef=useRef({x:0,y:0});const velRef=useRef({x:.4,y:.25});const frameRef=useRef();const startedRef=useRef(false);useEffect(()=>{// Posición inicial: esquina inferior derecha\nconst margin=size+24;posRef.current={x:window.innerWidth-margin,y:window.innerHeight-margin};velRef.current={x:-(Math.random()*.3+.2),y:-(Math.random()*.3+.15)};setPos({...posRef.current});startedRef.current=true;const animate=()=>{const s=size;const margin=24;const maxX=window.innerWidth-s-margin;const maxY=window.innerHeight-s-margin;posRef.current.x+=velRef.current.x;posRef.current.y+=velRef.current.y;// Rebote suave en los bordes\nif(posRef.current.x<=margin){posRef.current.x=margin;velRef.current.x=Math.abs(velRef.current.x);}if(posRef.current.x>=maxX){posRef.current.x=maxX;velRef.current.x=-Math.abs(velRef.current.x);}if(posRef.current.y<=margin){posRef.current.y=margin;velRef.current.y=Math.abs(velRef.current.y);}if(posRef.current.y>=maxY){posRef.current.y=maxY;velRef.current.y=-Math.abs(velRef.current.y);}// Variación orgánica leve de la velocidad\nvelRef.current.x+=(Math.random()-.5)*.015;velRef.current.y+=(Math.random()-.5)*.015;// Limitar velocidad máxima\nconst speed=Math.sqrt(velRef.current.x**2+velRef.current.y**2);const maxSpeed=.55;if(speed>maxSpeed){velRef.current.x=velRef.current.x/speed*maxSpeed;velRef.current.y=velRef.current.y/speed*maxSpeed;}setPos({x:posRef.current.x,y:posRef.current.y});frameRef.current=requestAnimationFrame(animate);};frameRef.current=requestAnimationFrame(animate);return()=>{if(frameRef.current)cancelAnimationFrame(frameRef.current);};},[size]);const handleClick=()=>{if(stripeLink)window.open(stripeLink,\"_blank\");};const vimeoSrc=`https://player.vimeo.com/video/${vimeoId}?autoplay=1&loop=1&muted=1&background=1&autopause=0`;return /*#__PURE__*/_jsxs(\"div\",{onClick:handleClick,onMouseEnter:()=>setHovered(true),onMouseLeave:()=>setHovered(false),style:{position:\"fixed\",left:pos.x,top:pos.y,width:size,height:size,borderRadius:\"50%\",overflow:\"hidden\",cursor:\"pointer\",transform:`scale(${hovered?1.08:1})`,transition:\"transform 0.5s ease, box-shadow 0.5s ease\",boxShadow:hovered?\"0 0 0 1.5px rgba(255,255,255,0.55), 0 8px 32px rgba(0,0,0,0.55)\":\"0 0 0 1px rgba(255,255,255,0.18), 0 4px 20px rgba(0,0,0,0.4)\",zIndex:9999},children:[/*#__PURE__*/_jsx(\"iframe\",{src:vimeoSrc,style:{position:\"absolute\",top:\"35%\",left:\"50%\",width:\"280%\",height:\"280%\",transform:\"translate(-28%, -20%)\",border:\"none\",pointerEvents:\"none\"},allow:\"autoplay; fullscreen\",frameBorder:\"0\"}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,background:hovered?\"rgba(0,0,0,0.18)\":\"transparent\",transition:\"background 0.4s ease\",borderRadius:\"50%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:hovered&&/*#__PURE__*/_jsx(\"span\",{style:{color:\"rgba(255,255,255,0.92)\",fontSize:\"8px\",letterSpacing:\"0.18em\",fontFamily:\"Courier New, monospace\",textTransform:\"uppercase\"},children:\"collect\"})})]});}FloatingCircle.defaultProps={stripeLink:\"https://TU_STRIPE_LINK_AQUI\",size:88,vimeoId:\"1187781215\"};addPropertyControls(FloatingCircle,{stripeLink:{type:ControlType.String,title:\"Stripe Link\",defaultValue:\"https://TU_STRIPE_LINK_AQUI\"},vimeoId:{type:ControlType.String,title:\"Vimeo ID\",defaultValue:\"1187781215\"},size:{type:ControlType.Number,title:\"Tama\\xf1o (px)\",defaultValue:88,min:60,max:160,step:4}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FloatingCircle\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FloatingCircle.map","// Generated by Framer (c9b3949)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-0gIXn .framer-styles-preset-coasnn:not(.rich-text-wrapper), .framer-0gIXn .framer-styles-preset-coasnn.rich-text-wrapper a { --framer-link-text-color: #ffffff; --framer-link-text-decoration: none; }\"];export const className=\"framer-0gIXn\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"oNAE0J,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,aAAW,OAAK,WAAS,EAAW,CAAC,EAAI,GAAQA,EAAS,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAO,CAAC,EAAQ,GAAYA,EAAS,EAAK,EAAQ,EAAOC,EAAO,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAQ,EAAOA,EAAO,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,EAAQ,EAASA,EAAO,EAAQ,EAAWA,EAAO,EAAK,EAAE,MAAc,CACnc,IAAM,EAAO,EAAK,GAAG,EAAO,QAAQ,CAAC,EAAE,EAAO,WAAW,E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