{"version":3,"file":"shared-lib.IsZixx2B.mjs","names":["useState","_Fragment","__esmMin","init_ssg_sandbox_shims","navigator","init_npm_react_18_3_1","_e","l","p","c","init_jsx_runtime","ce","window","init_framer_D1IzEvwH","addPropertyControls","ControlType","CustomCursor","position","setPosition","hidden","setHidden","linkHovered","setLinkHovered","clicked","setClicked","props","styleElement","addEventListeners","onMouseMove","onMouseEnter","onMouseLeave","onMouseDown","onMouseUp","removeEventListeners","handleLinkHoverEvents","updateLinkHover","el","observer","cleanupLinkEvents","currentScale","transitionSpeed","init_Circle_Cursor"],"sources":["https:/framerusercontent.com/modules/XQeTsLzmLPvQvFJmNxa6/weXuzi1q3k4xfXMDxSIu/Circle_Cursor.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function CustomCursor(props){const[position,setPosition]=useState({x:0,y:0});const[hidden,setHidden]=useState(true);const[linkHovered,setLinkHovered]=useState(false);const[clicked,setClicked]=useState(false);useEffect(()=>{// Only show on desktop devices if hideOnMobile is enabled\nconst isMobile=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent);if(isMobile&&props.hideOnMobile)return;// Hide default cursor\ndocument.body.style.cursor=\"none\";// Apply to all elements\nconst styleElement=document.createElement(\"style\");styleElement.innerHTML=`* { cursor: none !important; }`;document.head.appendChild(styleElement);const addEventListeners=()=>{document.addEventListener(\"mousemove\",onMouseMove);document.addEventListener(\"mouseenter\",onMouseEnter);document.addEventListener(\"mouseleave\",onMouseLeave);document.addEventListener(\"mousedown\",onMouseDown);document.addEventListener(\"mouseup\",onMouseUp);};const removeEventListeners=()=>{document.removeEventListener(\"mousemove\",onMouseMove);document.removeEventListener(\"mouseenter\",onMouseEnter);document.removeEventListener(\"mouseleave\",onMouseLeave);document.removeEventListener(\"mousedown\",onMouseDown);document.removeEventListener(\"mouseup\",onMouseUp);};const onMouseMove=e=>{setPosition({x:e.clientX,y:e.clientY});setHidden(false);};const onMouseEnter=()=>{setHidden(false);};const onMouseLeave=()=>{setHidden(true);};const onMouseDown=()=>{setClicked(true);};const onMouseUp=()=>{setClicked(false);};// Check for link hover - updated to handle Framer's dynamic content\nconst handleLinkHoverEvents=()=>{const updateLinkHover=()=>{document.querySelectorAll('a, button, [data-framer-name*=\"button\"], [role=\"button\"]').forEach(el=>{el.addEventListener(\"mouseenter\",()=>setLinkHovered(true));el.addEventListener(\"mouseleave\",()=>setLinkHovered(false));});};updateLinkHover();// Re-run when DOM changes (for dynamic Framer content)\nconst observer=new MutationObserver(updateLinkHover);observer.observe(document.body,{childList:true,subtree:true});return()=>observer.disconnect();};addEventListeners();const cleanupLinkEvents=handleLinkHoverEvents();return()=>{removeEventListeners();cleanupLinkEvents?.();// Restore default cursor on cleanup\ndocument.body.style.cursor=\"auto\";styleElement.remove();};},[props.hideOnMobile]);// Only show on desktop devices if hideOnMobile is enabled\nif(typeof window===\"undefined\")return null;const isMobile=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent);if(isMobile&&props.hideOnMobile)return null;const currentScale=linkHovered?props.hoverScale:clicked?props.clickScale:1;const transitionSpeed=`${props.animationDuration}ms`;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",left:0,top:0,width:`${props.dotSize}px`,height:`${props.dotSize}px`,backgroundColor:props.dotColor,borderRadius:\"50%\",transform:`translate(${position.x-props.dotSize/2}px, ${position.y-props.dotSize/2}px)`,pointerEvents:\"none\",zIndex:1e4,mixBlendMode:props.blendMode,opacity:hidden?0:props.opacity,transition:`opacity ${transitionSpeed} ease`}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",left:0,top:0,width:`${props.ringSize}px`,height:`${props.ringSize}px`,border:`${props.ringBorderWidth}px solid ${props.ringColor}`,borderRadius:\"50%\",transform:`translate(${position.x-props.ringSize/2}px, ${position.y-props.ringSize/2}px) scale(${currentScale})`,pointerEvents:\"none\",zIndex:9999,mixBlendMode:props.blendMode,opacity:hidden?0:props.opacity,transition:`all ${transitionSpeed} ease`,backgroundColor:\"transparent\"}})]});}// Framer property controls\naddPropertyControls(CustomCursor,{dotSize:{type:ControlType.Number,defaultValue:6,min:2,max:20,step:1,displayStepper:true,title:\"Dot Size\"},dotColor:{type:ControlType.Color,defaultValue:\"#ffffff\",title:\"Dot Color\"},ringSize:{type:ControlType.Number,defaultValue:32,min:10,max:100,step:2,displayStepper:true,title:\"Ring Size\"},ringColor:{type:ControlType.Color,defaultValue:\"#ffffff\",title:\"Ring Color\"},ringBorderWidth:{type:ControlType.Number,defaultValue:1,min:1,max:5,step:1,displayStepper:true,title:\"Ring Border Width\"},hoverScale:{type:ControlType.Number,defaultValue:1.5,min:.5,max:3,step:.1,displayStepper:true,title:\"Hover Scale\"},clickScale:{type:ControlType.Number,defaultValue:.75,min:.2,max:2,step:.05,displayStepper:true,title:\"Click Scale\"},animationDuration:{type:ControlType.Number,defaultValue:200,min:50,max:1e3,step:50,displayStepper:true,title:\"Animation Duration (ms)\"},blendMode:{type:ControlType.Enum,defaultValue:\"difference\",options:[\"normal\",\"multiply\",\"screen\",\"overlay\",\"darken\",\"lighten\",\"color-dodge\",\"color-burn\",\"hard-light\",\"soft-light\",\"difference\",\"exclusion\"],optionTitles:[\"Normal\",\"Multiply\",\"Screen\",\"Overlay\",\"Darken\",\"Lighten\",\"Color Dodge\",\"Color Burn\",\"Hard Light\",\"Soft Light\",\"Difference\",\"Exclusion\"],title:\"Blend Mode\"},opacity:{type:ControlType.Number,defaultValue:1,min:0,max:1,step:.1,displayStepper:true,title:\"Opacity\"},hideOnMobile:{type:ControlType.Boolean,defaultValue:true,title:\"Hide on Mobile\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CustomCursor\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMapp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