{"version":3,"file":"shared-lib.BSLseDdb.mjs","names":["useState","useRef","_Fragment"],"sources":["https:/framerusercontent.com/modules/TPNNW2DW1ByMhZqdZEtH/cppF7XqG6osQzoauoH8V/Cursor.js","https:/framerusercontent.com/modules/leqeWjfjeSelm5uF9UZc/mbvC3DoRBBqQXAuRSI2I/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{forwardRef,useEffect,useRef,useState}from\"react\";// ---------- configurable ----------\nconst CURSOR_SIZE=18;const CURSOR_BORDER_RADIUS=999;const CURSOR_BACKDROP_STRENGTH=1;const TEXT_OFFSET_X=14;const TEXT_OFFSET_Y=18;const TEXT_FONT_SIZE=12;const TEXT_FONT_FAMILY=\"Inter, sans-serif\";const TEXT_FONT_WEIGHT=500;const TEXT_COLOR=\"#ffffff\";const TEXT_SHADOW=`\n    -1px -1px 0 rgba(0,0,0,0.9),\n     1px -1px 0 rgba(0,0,0,0.9),\n    -1px  1px 0 rgba(0,0,0,0.9),\n     1px  1px 0 rgba(0,0,0,0.9)\n`;const ROUND_COORDS=true;function formatCoord(v){return ROUND_COORDS?Math.round(v):Number(v.toFixed(1));}export function withCursorDecode(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[pos,setPos]=useState({x:0,y:0});const rafMoveRef=useRef(null);const lastPosRef=useRef({x:0,y:0});const styleElRef=useRef(null);useEffect(()=>{const onMove=e=>{lastPosRef.current={x:e.clientX,y:e.clientY};if(rafMoveRef.current!=null)return;rafMoveRef.current=requestAnimationFrame(()=>{rafMoveRef.current=null;setPos(lastPosRef.current);});};window.addEventListener(\"pointermove\",onMove,{passive:true});const styleEl=document.createElement(\"style\");styleEl.setAttribute(\"data-custom-cursor\",\"true\");styleEl.textContent=`\n                html, body, * {\n                    cursor: none !important;\n                }\n            `;document.head.appendChild(styleEl);styleElRef.current=styleEl;return()=>{window.removeEventListener(\"pointermove\",onMove);if(rafMoveRef.current!=null){cancelAnimationFrame(rafMoveRef.current);}rafMoveRef.current=null;if(styleElRef.current?.parentNode){styleElRef.current.parentNode.removeChild(styleElRef.current);}styleElRef.current=null;};},[]);const text=`(${formatCoord(pos.x)},${formatCoord(pos.y)})`;const overlayRootStyle={position:\"fixed\",inset:0,zIndex:999999,pointerEvents:\"none\",overflow:\"visible\"};const cursorStyle={position:\"fixed\",left:pos.x-CURSOR_SIZE/2,top:pos.y-CURSOR_SIZE/2,width:CURSOR_SIZE,height:CURSOR_SIZE,borderRadius:CURSOR_BORDER_RADIUS,background:\"rgba(255,255,255,0.01)\",backdropFilter:`invert(${CURSOR_BACKDROP_STRENGTH})`,WebkitBackdropFilter:`invert(${CURSOR_BACKDROP_STRENGTH})`,pointerEvents:\"none\"};const textStyle={position:\"fixed\",left:pos.x+TEXT_OFFSET_X,top:pos.y+TEXT_OFFSET_Y,width:\"max-content\",whiteSpace:\"nowrap\",overflow:\"visible\",color:TEXT_COLOR,fontSize:TEXT_FONT_SIZE,fontFamily:TEXT_FONT_FAMILY,fontWeight:TEXT_FONT_WEIGHT,lineHeight:1,textShadow:TEXT_SHADOW,pointerEvents:\"none\",userSelect:\"none\"};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(Component,{ref:ref,...props}),/*#__PURE__*/_jsxs(\"div\",{style:overlayRootStyle,children:[/*#__PURE__*/_jsx(\"div\",{style:cursorStyle}),/*#__PURE__*/_jsx(\"div\",{style:textStyle,children:text})]})]});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withCursorDecode\":{\"type\":\"reactHoc\",\"name\":\"withCursorDecode\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Cursor.map","// Generated by Framer (8b16de8)\nexport default function metadata(params,activeLocale){return{description:\"Motion designer and 3D enthusiast\",favicon:\"https://framerusercontent.com/assets/RrUxXpZA7B7SbYqK0n6Lw9goVI.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/YuqaILA0CDGrCYQw2VYoyIxSXk.png\",title:\"Eric Park - Motion & 3D\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"8JAM0B,SAAS,EAAY,EAAE,CAAC,OAAoB,KAAK,MAAM,EAAE,CAAuB,SAAgB,EAAiB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,EAAI,GAAQA,EAAS,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAO,EAAWC,EAAO,KAAK,CAAO,EAAWA,EAAO,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAO,EAAWA,EAAO,KAAK,CAAC,MAAc,CAAC,IAAM,EAAO,GAAG,CAAC,EAAW,QAAQ,CAAC,EAAE,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAA5C,AAAgF,EAAW,UAAQ,0BAA0B,CAAC,EAAW,QAAQ,KAAK,EAAO,EAAW,QAAQ,EAAG,EAAG,EAAO,iBAAiB,cAAc,EAAO,CAAC,QAAQ,GAAK,CAAC,CAAC,IAAM,EAAQ,SAAS,cAAc,QAAQ,CAI5jB,OAJ6jB,EAAQ,aAAa,qBAAqB,OAAO,CAAC,EAAQ,YAAY;;;;cAIjsB,SAAS,KAAK,YAAY,EAAQ,CAAC,EAAW,QAAQ,MAAkB,CAAC,EAAO,oBAAoB,cAAc,EAAO,CAAI,EAAW,SAAS,MAAM,qBAAqB,EAAW,QAAQ,CAAE,EAAW,QAAQ,KAAQ,EAAW,SAAS,YAAY,EAAW,QAAQ,WAAW,YAAY,EAAW,QAAQ,CAAE,EAAW,QAAQ,OAAS,EAAE,CAAC,CAAC,IAAM,EAAK,IAAI,EAAY,EAAI,EAAE,CAAC,GAAG,E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