{"version":3,"file":"FollowProjectCursor.D4rMkGY7.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/vct6TcjN4Tm3fXQp44Wb/rMld8qAaCgHch9Ax1XzE/FollowProjectCursor.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{forwardRef,useRef,useState}from\"react\";import{useIsStaticRenderer}from\"framer\";import{motion}from\"framer-motion\";export function FollowProjectCursor(Component){return /*#__PURE__*/forwardRef(function FollowProjectCursorOverride(props,forwardedRef){const isStatic=useIsStaticRenderer();const[visible,setVisible]=useState(false);const[pressed,setPressed]=useState(false);const cursorRef=useRef(null);function supportsHover(){return typeof window!==\"undefined\"&&window.matchMedia(\"(hover: hover) and (pointer: fine)\").matches;}function updatePosition(event){const cursor=cursorRef.current;if(!cursor)return;const rect=event.currentTarget.getBoundingClientRect();const x=event.clientX-rect.left;const y=event.clientY-rect.top;cursor.style.transform=`translate3d(${x}px, ${y}px, 0)`;}function handlePointerEnter(event){if(supportsHover()){updatePosition(event);setVisible(true);}props.onPointerEnter?.(event);}function handlePointerMove(event){if(supportsHover())updatePosition(event);props.onPointerMove?.(event);}function handlePointerLeave(event){setVisible(false);setPressed(false);props.onPointerLeave?.(event);}function handlePointerDown(event){if(supportsHover())setPressed(true);props.onPointerDown?.(event);}function handlePointerUp(event){setPressed(false);props.onPointerUp?.(event);}return /*#__PURE__*/_jsxs(Component,{ref:forwardedRef,...props,\"data-follow-project-cursor\":\"\",style:{...props.style,position:\"relative\",cursor:!isStatic?\"none\":props.style?.cursor},onPointerEnter:handlePointerEnter,onPointerMove:handlePointerMove,onPointerLeave:handlePointerLeave,onPointerDown:handlePointerDown,onPointerUp:handlePointerUp,children:[props.children,props[\"data-mobile-square-project-card\"]!==undefined&&/*#__PURE__*/_jsx(\"style\",{children:`\n                        @media (max-width: 809.98px) {\n                            [data-mobile-square-project-card] [data-framer-name=\"Image Wrapper\"] {\n                                width: 100% !important;\n                                height: auto !important;\n                                aspect-ratio: 1 / 1 !important;\n                            }\n                        }\n                    `}),!isStatic&&/*#__PURE__*/_jsx(\"style\",{children:`[data-follow-project-cursor], [data-follow-project-cursor] * { cursor: none !important; }`}),!isStatic&&/*#__PURE__*/_jsx(motion.div,{ref:cursorRef,\"aria-hidden\":\"true\",style:{position:\"absolute\",left:0,top:0,transform:\"translate3d(0px, 0px, 0)\",willChange:\"transform\",backfaceVisibility:\"hidden\",pointerEvents:\"none\",zIndex:99},children:/*#__PURE__*/_jsxs(motion.div,{initial:false,animate:{opacity:visible?1:0,scale:pressed?.98:visible?1:.985},transition:{duration:visible?.14:.08,delay:visible?.025:0,ease:[.16,1,.3,1]},style:{transform:\"translate(-50%, -50%)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:0,padding:\"11px 17px\",width:\"max-content\",color:\"#ffffff\",background:\"linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%), rgba(28, 28, 28, 0.5)\",backdropFilter:\"blur(18px) saturate(155%)\",WebkitBackdropFilter:\"blur(18px) saturate(155%)\",overflow:\"hidden\",borderRadius:999,clipPath:\"inset(0 round 999px)\",isolation:\"isolate\",boxShadow:\"inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(255, 255, 255, 0.06)\",fontFamily:'\"General Sans\", \"General Sans Placeholder\", sans-serif',fontSize:15,fontWeight:500,lineHeight:1,letterSpacing:\"-0.01em\",whiteSpace:\"nowrap\",userSelect:\"none\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",inset:0,borderRadius:\"inherit\",background:\"linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 52%)\",opacity:.66}}),/*#__PURE__*/_jsx(\"span\",{style:{position:\"relative\",zIndex:1},children:\"View project\"})]})})]});});}export function FollowProjectCursorMobileSquare(Component){const CursorComponent=FollowProjectCursor(Component);return /*#__PURE__*/forwardRef(function FollowProjectCursorMobileSquareOverride(props,forwardedRef){return /*#__PURE__*/_jsx(CursorComponent,{ref:forwardedRef,...props,\"data-mobile-square-project-card\":\"\"});});}export function MobileSquareCover(Component){return /*#__PURE__*/forwardRef(function MobileSquareCoverOverride(props,forwardedRef){return /*#__PURE__*/_jsxs(Component,{ref:forwardedRef,...props,\"data-mobile-square-cover\":\"\",children:[props.children,/*#__PURE__*/_jsx(\"style\",{children:`\n                    @media (max-width: 809.98px) {\n                        [data-mobile-square-cover] {\n                            width: 100% !important;\n                            height: auto !important;\n                            aspect-ratio: 1 / 1 !important;\n                        }\n                    }\n                `})]});});}\nexport const __FramerMetadata__ = {\"exports\":{\"MobileSquareCover\":{\"type\":\"reactHoc\",\"name\":\"MobileSquareCover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FollowProjectCursorMobileSquare\":{\"type\":\"reactHoc\",\"name\":\"FollowProjectCursorMobileSquare\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FollowProjectCursor\":{\"type\":\"reactHoc\",\"name\":\"FollowProjectCursor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FollowProjectCursor.map"],"mappings":"wPAAiL,SAAgB,EAAoB,EAAU,CAAC,OAAoB,EAAW,SAAqC,EAAM,EAAa,CAAC,IAAM,EAAS,EAAoB,EAAO,CAAC,EAAQ,GAAYA,EAAS,EAAK,EAAO,CAAC,EAAQ,GAAYA,EAAS,EAAK,EAAQ,EAAUC,EAAO,IAAI,EAAE,SAAS,GAAe,CAAC,OAAc,IAAS,QAAa,EAAO,WAAW,oCAAoC,CAAC,CAAC,OAAQ,CAAC,SAAS,EAAe,EAAM,CAAC,IAAM,EAAO,EAAU,QAAQ,GAAG,CAAC,EAAO,OAAO,IAAM,EAAK,EAAM,cAAc,sBAAsB,EAAQ,EAAE,EAAM,QAAQ,EAAK,KAAW,EAAE,EAAM,QAAQ,EAAK,IAAI,EAAO,MAAM,UAAU,eAAe,EAAE,MAAM,EAAE,OAAQ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