{"version":3,"file":"Cursor.qknKXdZP.mjs","names":["useRef","_Fragment"],"sources":["https:/framerusercontent.com/modules/SGpeOWwy4dgyyR2s1SFZ/HrezWOeW51hET2IpM2Ky/Cursor.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";export default function CustomCursor(){const cursorRef=useRef(null);const pos=useRef({x:-100,y:-100});const raf=useRef(null);useEffect(()=>{const el=cursorRef.current;if(!el)return;const styleTag=document.createElement(\"style\");styleTag.id=\"custom-cursor-hide\";styleTag.textContent=`\n            *, *::before, *::after,\n            input, textarea, select, button,\n            [contenteditable] {\n                cursor: none !important;\n            }\n        `;document.head.appendChild(styleTag);const onMove=e=>{pos.current={x:e.clientX,y:e.clientY};};const tick=()=>{if(el){el.style.transform=`translate(${pos.current.x}px, ${pos.current.y}px)`;}raf.current=requestAnimationFrame(tick);};const onOver=e=>{const isLink=e.target.closest(\"a, button, [data-framer-component-type], [role='button']\");const isInput=e.target.closest(\"input, textarea, select\");el.classList.toggle(\"cursor--hover\",!!isLink&&!isInput);};document.addEventListener(\"mousemove\",onMove);document.addEventListener(\"mouseover\",onOver);raf.current=requestAnimationFrame(tick);return()=>{document.getElementById(\"custom-cursor-hide\")?.remove();document.removeEventListener(\"mousemove\",onMove);document.removeEventListener(\"mouseover\",onOver);cancelAnimationFrame(raf.current);};},[]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .cursor-wrap {\n                    position: fixed;\n                    top: 0;\n                    left: 0;\n                    width: 0;\n                    height: 0;\n                    pointer-events: none !important;\n                    z-index: 99999;\n                    will-change: transform;\n                    isolation: auto;\n                }\n                .cursor-inner {\n                    width: 47px;\n                    height: 20px;\n                    margin-left: -23.5px;\n                    margin-top: -10px;\n                    transition: scale 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);\n                    scale: 1;\n                    pointer-events: none !important;\n                }\n                .cursor-wrap * {\n                    pointer-events: none !important;\n                }\n                .cursor-wrap.cursor--hover .cursor-inner {\n                    scale: 1.45;\n                }\n            `}),/*#__PURE__*/_jsx(\"div\",{ref:cursorRef,className:\"cursor-wrap\",children:/*#__PURE__*/_jsx(\"div\",{className:\"cursor-inner\",children:/*#__PURE__*/_jsx(\"svg\",{width:\"47\",height:\"20\",viewBox:\"0 0 21 9\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M6 3H9V9H6V6H3V3H0V0H6V3ZM21 3H18V6H15V9H12V3H15V0H21V3Z\",fill:\"#DA6D08\"})})})})]});}CustomCursor.displayName=\"Custom Cursor\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CustomCursor\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Cursor.map"],"mappings":"uIAAmH,SAAwB,GAAc,CAAC,IAAM,EAAUA,EAAO,KAAK,CAAO,EAAIA,EAAO,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAO,EAAIA,EAAO,KAAK,CAMmjB,OANljB,MAAc,CAAC,IAAM,EAAG,EAAU,QAAQ,GAAG,CAAC,EAAG,OAAO,IAAM,EAAS,SAAS,cAAc,QAAQ,CAAC,EAAS,GAAG,qBAAqB,EAAS,YAAY;;;;;;UAMnY,SAAS,KAAK,YAAY,EAAS,CAAC,IAAM,EAAO,GAAG,CAAC,EAAI,QAAQ,CAAC,EAAE,EAAE,QAAQ,EAAE,EAAE,QAAQ,EAAS,MAAS,CAAI,IAAI,EAAG,MAAM,UAAU,aAAa,EAAI,QAAQ,EAAE,MAAM,EAAI,QAAQ,EAAE,MAAM,EAAI,QAAQ,sBAAsB,EAAK,EAAS,EAAO,GAAG,CAAC,IAAM,EAAO,EAAE,OAAO,QAAQ,2DAA2D,CAAO,EAAQ,EAAE,OAAO,QAAQ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