{"version":3,"file":"ProjectCursor.BX7CyESA.mjs","names":["React.useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/q5lXLgAJmcE0gmCfkeBK/Z1C5dyytKdTuLYVWUBsq/ProjectCursor.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{motion,useMotionValue,useSpring}from\"framer-motion\";import{createPortal}from\"react-dom\";function makeCursorOverride(Component,message){return function CustomCursor(props){const[mounted,setMounted]=React.useState(false);const[visible,setVisible]=React.useState(false);const mouseX=useMotionValue(0);const mouseY=useMotionValue(0);const springX=useSpring(mouseX,{stiffness:700,damping:45,mass:.3});const springY=useSpring(mouseY,{stiffness:700,damping:45,mass:.3});React.useEffect(()=>{setMounted(true);return()=>{setVisible(false);if(typeof document!==\"undefined\"){document.documentElement.classList.remove(\"custom-tag-cursor-active\");}};},[]);function handlePointerEnter(event){props.onPointerEnter?.(event);if(event.pointerType!==\"mouse\")return;mouseX.set(event.clientX);mouseY.set(event.clientY);setVisible(true);// Hide the global orange-circle cursor\ndocument.documentElement.classList.add(\"custom-tag-cursor-active\");}function handlePointerMove(event){props.onPointerMove?.(event);if(event.pointerType!==\"mouse\")return;mouseX.set(event.clientX);mouseY.set(event.clientY);}function handlePointerLeave(event){props.onPointerLeave?.(event);setVisible(false);// Restore the global orange-circle cursor\ndocument.documentElement.classList.remove(\"custom-tag-cursor-active\");}const badge=mounted&&typeof document!==\"undefined\"?/*#__PURE__*/createPortal(/*#__PURE__*/_jsx(motion.div,{initial:false,animate:{opacity:visible?1:0,scale:visible?1:.8},transition:{opacity:{duration:.15},scale:{duration:.2,ease:[.22,1,.36,1]}},style:{position:\"fixed\",top:0,left:0,x:springX,y:springY,zIndex:2147483647,pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"div\",{style:{transform:\"translate(-50%, -50%)\",whiteSpace:\"nowrap\",padding:\"6px 10px\",borderRadius:999,backgroundColor:\"#FF5A1F\",color:\"#FFFFFF\",fontFamily:\"Arial, sans-serif\",fontSize:11,fontWeight:600,lineHeight:1,letterSpacing:\"0.01em\",boxShadow:\"0 4px 12px rgba(0, 0, 0, 0.10)\"},children:message})}),document.body):null;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(Component,{...props,onPointerEnter:handlePointerEnter,onPointerMove:handlePointerMove,onPointerLeave:handlePointerLeave,style:{...props.style,cursor:\"none\"}}),badge]});};}/*\n * Original override names and messages preserved.\n */export function withBuildingCursor(Component){return makeCursorOverride(Component,\"CURRENTLY BUILDING!\");}export function withViewProjectCursorPDF(Component){return makeCursorOverride(Component,\"VIEW PDF ↗\");}export function withReadCaseStudyCursor(Component){return makeCursorOverride(Component,\"READ CASE STUDY\");}export function withComingSoonCursor(Component){return makeCursorOverride(Component,\"COMING SOON\");}export function withExploreCursor(Component){return makeCursorOverride(Component,\"EXPLORE PROJECT\");}\nexport const __FramerMetadata__ = {\"exports\":{\"withComingSoonCursor\":{\"type\":\"reactHoc\",\"name\":\"withComingSoonCursor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withViewProjectCursorPDF\":{\"type\":\"reactHoc\",\"name\":\"withViewProjectCursorPDF\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withReadCaseStudyCursor\":{\"type\":\"reactHoc\",\"name\":\"withReadCaseStudyCursor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withBuildingCursor\":{\"type\":\"reactHoc\",\"name\":\"withBuildingCursor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withExploreCursor\":{\"type\":\"reactHoc\",\"name\":\"withExploreCursor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProjectCursor.map"],"mappings":"oNAA0M,SAAS,EAAmB,EAAU,EAAQ,CAAC,OAAO,SAAsB,EAAM,CAAC,GAAK,CAAC,EAAQ,GAAYA,EAAe,EAAK,EAAO,CAAC,EAAQ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