{"version":3,"file":"Cursor.DBemanId.mjs","names":["useState","useRef","_Fragment"],"sources":["https:/framerusercontent.com/modules/2czgfWsc79fKavA1kXvM/dw0OnyfETx2IA7tbubxB/Cursor.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";export function noTextCursor(Component){return props=>{const[overlayVisible,setOverlayVisible]=useState(true);const overlayRef=useRef(null);const navigatingRef=useRef(false);// Hide overlay on mount (page load fade in)\nuseEffect(()=>{const timer=setTimeout(()=>{setOverlayVisible(false);},100);return()=>clearTimeout(timer);},[]);const showBlackOverlay=async()=>{console.log(\"Starting black overlay transition\");// Force show the overlay\nsetOverlayVisible(true);// Wait a bit longer to ensure the transition completes\nawait new Promise(resolve=>setTimeout(resolve,800));console.log(\"Black overlay transition complete\");};const handleClick=async e=>{const element=e.currentTarget;const tag=element.tagName;const isButton=tag===\"BUTTON\"||element.classList.contains(\"button\")||element.getAttribute(\"role\")===\"button\";const isLink=tag===\"A\"||element.href;// Let modifier/new-tab clicks behave normally\nconst mouse=e;const isModified=mouse.metaKey||mouse.ctrlKey||mouse.shiftKey||mouse.altKey||element.target===\"_blank\";if(!(isLink||isButton)||isModified){props.onClick?.(e);return;}// Get href for links\nlet href=null;if(isLink){const a=element;href=a.getAttribute(\"href\");if(!href||href.startsWith(\"#\")||href.startsWith(\"javascript:\")){props.onClick?.(e);return;}}e.preventDefault();if(navigatingRef.current)return;navigatingRef.current=true;console.log(\"Click detected, starting transition\");// Show black overlay and wait\nawait showBlackOverlay();console.log(\"Navigating to:\",href||\"button action\");// Navigate\nif(href){window.location.assign(href);}else{props.onClick?.(e);}};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{jsx:true,global:true,children:`\n                  .page-transition-overlay {\n                    position: fixed;\n                    top: 0;\n                    left: 0;\n                    width: 100vw;\n                    height: 100vh;\n                    background-color: #000;\n                    z-index: 999999;\n                    transition: opacity 0.5s ease-in-out;\n                  }\n                  \n                  .page-transition-overlay.visible {\n                    opacity: 1;\n                    pointer-events: all;\n                  }\n                  \n                  .page-transition-overlay.hidden {\n                    opacity: 0;\n                    pointer-events: none;\n                  }\n                  \n                  @media (prefers-reduced-motion: reduce) {\n                    .page-transition-overlay {\n                      transition: none !important;\n                    }\n                  }\n\n                  /* Custom text selection colors */\n                  ::selection { background-color: black; color: white; }\n                  ::-moz-selection { background-color: black; color: white; }\n                  * ::selection { background-color: black; color: white; }\n                  * ::-moz-selection { background-color: black; color: white; }\n                `}),/*#__PURE__*/_jsx(\"div\",{ref:overlayRef,className:`page-transition-overlay ${overlayVisible?\"visible\":\"hidden\"}`,\"aria-hidden\":\"true\",style:{opacity:overlayVisible?1:0,pointerEvents:overlayVisible?\"all\":\"none\"}}),/*#__PURE__*/_jsx(Component,{...props,style:{...props.style,cursor:props.as===\"button\"||props.href?props.style?.cursor:\"default\"},onClick:handleClick,onMouseEnter:e=>{const element=e.currentTarget;const isButton=element.tagName===\"BUTTON\"||element.classList.contains(\"button\")||element.getAttribute(\"role\")===\"button\";const isLink=element.tagName===\"A\"||element.href;if(!isButton&&!isLink){element.style.cursor=\"default\";}const textElements=element.querySelectorAll(\"p, span, h1, h2, h3, h4, h5, h6, div\");textElements.forEach(el=>{if(!el.closest(\"button\")&&!el.closest(\"a\")){el.style.cursor=\"default\";}});props.onMouseEnter?.(e);}})]});};}\nexport const __FramerMetadata__ = {\"exports\":{\"noTextCursor\":{\"type\":\"reactHoc\",\"name\":\"noTextCursor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Cursor.map"],"mappings":"uJAA4H,SAAgB,EAAa,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAe,GAAmBA,EAAS,GAAK,CAAO,EAAWC,EAAO,KAAK,CAAO,EAAcA,EAAO,GAAM,CACzS,MAAc,CAAC,IAAM,EAAM,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