{"version":3,"file":"shared-lib.D0MqSlPj.mjs","names":["React.useState","React.useRef","metadata","siteMetadata","metadataVersion","__FramerMetadata__","metadata","siteMetadata"],"sources":["https:/framerusercontent.com/modules/rHWfpbs5WN9JGdI2aHs2/gxtOh932oJLWu6vIDhfl/MotionTraceCursor.js","https:/framerusercontent.com/modules/dZEskMVCOyg8iBeUoyLq/05IvhJgGRU5XMiYgHpaD/siteMetadata.js","https:/framerusercontent.com/modules/gteao5DQWBgS0zIobaj6/fICzU0MuTJ0u1OghBcAo/augiA20Il.js","https:/framerusercontent.com/modules/NsekAbyg1AkDcDJOH4kr/iuM16gy6KeNiQk4Amaff/zH5NqF5mF.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{motion,useSpring}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";const DefaultCursorSVG=({colorFill,strokeWidth})=>{return /*#__PURE__*/_jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:50,height:54,viewBox:\"0 0 50 54\",fill:\"none\",style:{transform:\"scale(0.5)\",display:\"block\"},children:[/*#__PURE__*/_jsxs(\"g\",{filter:\"url(#filter0_d_91_7928)\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M42.6817 41.1495L27.5103 6.79925C26.7269 5.02557 24.2082 5.02558 23.3927 6.79925L7.59814 41.1495C6.75833 42.9759 8.52712 44.8902 10.4125 44.1954L24.3757 39.0496C24.8829 38.8627 25.4385 38.8627 25.9422 39.0496L39.8121 44.1954C41.6849 44.8902 43.4884 42.9759 42.6817 41.1495Z\",fill:colorFill}),/*#__PURE__*/_jsx(\"path\",{d:\"M43.7146 40.6933L28.5431 6.34306C27.3556 3.65428 23.5772 3.69516 22.3668 6.32755L6.57226 40.6778C5.3134 43.4156 7.97238 46.298 10.803 45.2549L24.7662 40.109C25.0221 40.0147 25.2999 40.0156 25.5494 40.1082L39.4193 45.254C42.2261 46.2953 44.9254 43.4347 43.7146 40.6933Z\",stroke:\"white\",strokeWidth:strokeWidth})]}),/*#__PURE__*/_jsx(\"defs\",{children:/*#__PURE__*/_jsxs(\"filter\",{id:\"filter0_d_91_7928\",x:.602397,y:.952444,width:49.0584,height:52.428,filterUnits:\"userSpaceOnUse\",colorInterpolationFilters:\"sRGB\",children:[/*#__PURE__*/_jsx(\"feFlood\",{floodOpacity:0,result:\"BackgroundImageFix\"}),/*#__PURE__*/_jsx(\"feColorMatrix\",{in:\"SourceAlpha\",type:\"matrix\",values:\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\",result:\"hardAlpha\"}),/*#__PURE__*/_jsx(\"feOffset\",{dy:2.25825}),/*#__PURE__*/_jsx(\"feGaussianBlur\",{stdDeviation:2.25825}),/*#__PURE__*/_jsx(\"feComposite\",{in2:\"hardAlpha\",operator:\"out\"}),/*#__PURE__*/_jsx(\"feColorMatrix\",{type:\"matrix\",values:\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0\"}),/*#__PURE__*/_jsx(\"feBlend\",{mode:\"normal\",in2:\"BackgroundImageFix\",result:\"effect1_dropShadow_91_7928\"}),/*#__PURE__*/_jsx(\"feBlend\",{mode:\"normal\",in:\"SourceGraphic\",in2:\"effect1_dropShadow_91_7928\",result:\"shape\"})]})})]});};/**\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n *\n */export default function MotionTraceCursor({useDefault=true,customCursor=null,damping=45,stiffness=400,mass=1,restDelta=.001,scale=.5,size=48,replaceCursor=true,cursorFill=\"#000000\",strokeWidth=2.5}){//const isTouchDevice =\n//typeof window !== \"undefined\" && \"ontouchstart\" in window\n//if (isTouchDevice) {\n//return null // Disable cursor on touch devices\n//}\nconst[visible,setVisible]=React.useState(false);const lastMousePos=React.useRef({x:0,y:0});const velocity=React.useRef({x:0,y:0});const lastUpdateTime=React.useRef(Date.now());const previousAngle=React.useRef(0);const accumulatedRotation=React.useRef(0);const movementTimeout=React.useRef(null);const rafId=React.useRef(null);const cursorX=useSpring(typeof window!==\"undefined\"?window.innerWidth/2:0,{damping,stiffness,mass,restDelta});const cursorY=useSpring(0,{damping,stiffness,mass,restDelta});const rotation=useSpring(0,{damping:60,stiffness:300});const movingScale=useSpring(scale,{damping:35,stiffness:500});React.useEffect(()=>{if(replaceCursor)document.body.style.cursor=\"none\";const updateVelocity=currentPos=>{const currentTime=Date.now();const deltaTime=currentTime-lastUpdateTime.current;if(deltaTime>0){velocity.current={x:(currentPos.x-lastMousePos.current.x)/deltaTime,y:(currentPos.y-lastMousePos.current.y)/deltaTime};}lastUpdateTime.current=currentTime;lastMousePos.current=currentPos;};const smoothMouseMove=e=>{const currentPos={x:e.clientX,y:e.clientY};updateVelocity(currentPos);const speed=Math.sqrt(Math.pow(velocity.current.x,2)+Math.pow(velocity.current.y,2));cursorX.set(currentPos.x);cursorY.set(currentPos.y);if(!visible)setVisible(true);if(speed>.1){const currentAngle=Math.atan2(velocity.current.y,velocity.current.x)*(180/Math.PI)+90;let angleDiff=currentAngle-previousAngle.current;if(angleDiff>180)angleDiff-=360;if(angleDiff<-180)angleDiff+=360;accumulatedRotation.current+=angleDiff;rotation.set(accumulatedRotation.current);previousAngle.current=currentAngle;// animate a small scale while moving\nmovingScale.set(scale/1.05);if(movementTimeout.current)window.clearTimeout(movementTimeout.current);movementTimeout.current=window.setTimeout(()=>{movingScale.set(scale);movementTimeout.current=null;},150);}};const throttledMouseMove=e=>{if(rafId.current)return;rafId.current=requestAnimationFrame(()=>{smoothMouseMove(e);rafId.current=null;});};//if (replaceCursor) document.body.style.cursor = \"none\"\nwindow.addEventListener(\"mousemove\",throttledMouseMove);return()=>{window.removeEventListener(\"mousemove\",throttledMouseMove);if(replaceCursor)document.body.style.cursor=\"auto\";if(rafId.current)cancelAnimationFrame(rafId.current);if(movementTimeout.current)window.clearTimeout(movementTimeout.current);};},[cursorX,cursorY,rotation,movingScale,replaceCursor]);const cursorElement=customCursor??(useDefault?/*#__PURE__*/_jsx(DefaultCursorSVG,{colorFill:cursorFill,strokeWidth:strokeWidth}):null);if(!cursorElement)return null// nothing to render\n;return /*#__PURE__*/_jsx(motion.div,{style:{x:cursorX,y:cursorY,rotate:rotation,scale:movingScale,position:\"fixed\",top:0,left:0,pointerEvents:\"none\",zIndex:10,width:\"0px\",height:\"0px\",opacity:visible?1:0,transition:\"opacity 0.3s ease-out\"},children:/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:0,top:0,transform:\"translate(-50%, -50%)\",width:50*scale,height:54*scale,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",pointerEvents:\"none\"},children:cursorElement})});}MotionTraceCursor.displayName=\"Motion Trace Cursor\";// Framer property controls\naddPropertyControls(MotionTraceCursor,{cursorFill:{type:ControlType.Color,title:\"Fill\",defaultValue:\"#000000\"},replaceCursor:{type:ControlType.Boolean,title:\"Replace Cursor\",defaultValue:true},scale:{type:ControlType.Number,title:\"Scale\",defaultValue:1,min:.1,max:5,step:.1},strokeWidth:{type:ControlType.Number,title:\"Stroke Width\",defaultValue:2.5,min:1,max:5,step:.1},damping:{type:ControlType.Number,title:\"Damping\",defaultValue:45,min:1,max:200},stiffness:{type:ControlType.Number,title:\"Stiffness\",defaultValue:400,min:1,max:1200},mass:{type:ControlType.Number,title:\"Mass\",defaultValue:1,min:.1,max:10,step:.1,description:\"[Click here](https://tinyurl.com/avirallakhanpaul) to get more exciting components!\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"MotionTraceCursorProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"MotionTraceCursor\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"*\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MotionTraceCursor.map","// Generated by Framer (5346510)\nexport default function metadata(params,activeLocale){return{description:\"A smooth, direction-aware cursor with full customization. Adjustable motion, style, and behaviour.\",robots:\"max-image-preview:large\",title:\"Motion Trace Cursor\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (808fccf)\nimport siteMetadata from\"https://framerusercontent.com/modules/dZEskMVCOyg8iBeUoyLq/05IvhJgGRU5XMiYgHpaD/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"72rtr7\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"1lu1xbl\",mediaQuery:\"(min-width: 810px) and (max-width: 1199.98px)\"},{hash:\"1b39jov\",mediaQuery:\"(max-width: 809.98px)\"}],description:siteMetadata(params,activeLocale).description,elements:{},robots:\"max-image-preview:large\",serializationId:\"framer-fPmRe\",title:siteMetadata(params,activeLocale).title||\"Home\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (04b9457)\nimport siteMetadata from\"https://framerusercontent.com/modules/dZEskMVCOyg8iBeUoyLq/05IvhJgGRU5XMiYgHpaD/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"9d3gx5\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"vy68kw\",mediaQuery:\"(min-width: 810px) and (max-width: 1199.98px)\"},{hash:\"1yl217t\",mediaQuery:\"(max-width: 809.98px)\"}],description:siteMetadata(params,activeLocale).description,elements:{},robots:\"max-image-preview:large\",serializationId:\"framer-HBrHA\",title:siteMetadata(params,activeLocale).title||\"Copy Component\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"gaAMG,SAAwB,EAAkB,CAAC,aAAW,GAAK,eAAa,KAAK,UAAQ,GAAG,YAAU,IAAI,OAAK,EAAE,YAAU,KAAK,QAAM,GAAG,OAAK,GAAG,gBAAc,GAAK,aAAW,UAAU,cAAY,KAAK,CAKzM,GAAK,CAAC,EAAQ,GAAYA,EAAe,GAAM,CAAO,EAAaC,EAAa,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAO,EAASA,EAAa,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAO,EAAeA,EAAa,KAAK,KAAK,CAAC,CAAO,EAAcA,EAAa,EAAE,CAAO,EAAoBA,EAAa,EAAE,CAAO,EAAgBA,EAAa,KAAK,CAAO,EAAMA,EAAa,KAAK,CAAO,EAAQ,EAAiB,IAAS,OAAgC,EAApB,EAAO,WAAW,EAAI,CAAC,UAAQ,YAAU,OAAK,YAAU,CAAC,CAAO,EAAQ,EAAU,EAAE,CAAC,UAAQ,YAAU,OAAK,YAAU,CAAC,CAAO,EAAS,EAAU,EAAE,CAAC,QAAQ,GAAG,UAAU,IAAI,CAAC,CAAO,EAAY,EAAU,EAAM,CAAC,QAAQ,GAAG,UAAU,IAAI,CAAC,CAAC,MAAoB,CAAI,IAAc,SAAS,KAAK,MAAM,OAAO,QAAO,IAAM,EAAe,GAAY,CAAC,IAAM,EAAY,KAAK,KAAK,CAAO,EAAU,EAAY,EAAe,QAAW,EAAU,IAAG,EAAS,QAAQ,CAAC,GAAG,EAAW,EAAE,EAAa,QAAQ,GAAG,EAAU,GAAG,EAAW,EAAE,EAAa,QAAQ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