{"version":3,"file":"shared-lib.DGbJQd2E.mjs","names":["React.useId","React.useRef"],"sources":["https:/framerusercontent.com/modules/fRLWlnVEt8yBkHBmyyQc/hT3hj3DB8jU3XAKKtT9p/PlaneCursor.js","https:/framerusercontent.com/modules/nj7jD22vPd0NXgCIElpP/V8YRURZ5fsgd506iQkAl/grkXa6Hgf.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";export default function PlaneCursor(props){const{enabled,hideNativeCursor,size,planeColor,trailColor,trailEnabled,trailCount,smoothness,rotationOffset,hoverScale,shadow,zIndex}={...defaultProps,...props};const isStatic=useIsStaticRenderer();const id=React.useId().replace(/:/g,\"\");const rootClass=`plane-cursor-${id}`;const activeClass=`plane-cursor-active-${id}`;const cursorRef=React.useRef(null);const trailRefs=React.useRef([]);const count=Math.max(0,Math.min(10,Math.round(trailCount)));const safeSmoothness=Math.max(.04,Math.min(.6,smoothness));React.useEffect(()=>{if(isStatic)return;if(typeof window===\"undefined\")return;if(typeof document===\"undefined\")return;const removeNativeCursorClass=()=>{document.body.classList.remove(activeClass);};if(!enabled){removeNativeCursorClass();return;}const finePointer=window.matchMedia(\"(pointer: fine)\").matches;const reducedMotion=window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;const cursor=cursorRef.current;const trails=trailRefs.current.filter(Boolean);if(!finePointer||reducedMotion||!cursor){removeNativeCursorClass();return;}if(hideNativeCursor){document.body.classList.add(activeClass);}else{removeNativeCursorClass();}let raf=0;let targetX=window.innerWidth/2;let targetY=window.innerHeight/2;let currentX=targetX;let currentY=targetY;let lastX=currentX;let lastY=currentY;let lastAngle=0;let visible=false;let hovering=false;const trailPoints=trails.map(()=>({x:currentX,y:currentY}));const interactiveSelector=\"a, button, input, textarea, select, [role='button'], [data-framer-name*='Button'], [data-framer-name*='CTA'], [data-framer-name*='Link']\";const showCursor=()=>{visible=true;cursor.style.opacity=\"1\";};const hideCursor=()=>{visible=false;hovering=false;cursor.style.opacity=\"0\";trails.forEach(trail=>{trail.style.opacity=\"0\";});};const updateHoverState=target=>{hovering=target instanceof Element&&Boolean(target.closest(interactiveSelector));};const onPointerMove=event=>{if(event.pointerType&&event.pointerType!==\"mouse\")return;targetX=event.clientX;targetY=event.clientY;updateHoverState(event.target);showCursor();};const onWindowOut=event=>{if(!event.relatedTarget)hideCursor();};const animate=()=>{currentX+=(targetX-currentX)*safeSmoothness;currentY+=(targetY-currentY)*safeSmoothness;const dx=currentX-lastX;const dy=currentY-lastY;const movement=Math.abs(dx)+Math.abs(dy);if(movement>.16){lastAngle=Math.atan2(dy,dx)*(180/Math.PI);}const scale=hovering?hoverScale:1;cursor.style.left=`${currentX}px`;cursor.style.top=`${currentY}px`;cursor.style.transform=`\n                translate3d(-50%, -50%, 0)\n                rotate(${lastAngle+rotationOffset}deg)\n                scale(${scale})\n            `;if(trailEnabled){let followX=currentX;let followY=currentY;trailPoints.forEach((point,index)=>{const speed=Math.max(.035,.18-index*.018);point.x+=(followX-point.x)*speed;point.y+=(followY-point.y)*speed;const trail=trails[index];if(trail){const opacity=visible?Math.max(.02,.16-index*.02):0;trail.style.left=`${point.x}px`;trail.style.top=`${point.y}px`;trail.style.opacity=`${opacity}`;trail.style.transform=`\n                            translate3d(-50%, -50%, 0)\n                            scale(${Math.max(.25,1-index*.09)})\n                        `;}followX=point.x;followY=point.y;});}else{trails.forEach(trail=>{trail.style.opacity=\"0\";});}lastX=currentX;lastY=currentY;raf=window.requestAnimationFrame(animate);};window.addEventListener(\"pointermove\",onPointerMove);window.addEventListener(\"mouseout\",onWindowOut);raf=window.requestAnimationFrame(animate);return()=>{window.cancelAnimationFrame(raf);removeNativeCursorClass();window.removeEventListener(\"pointermove\",onPointerMove);window.removeEventListener(\"mouseout\",onWindowOut);};},[isStatic,enabled,hideNativeCursor,activeClass,safeSmoothness,rotationOffset,hoverScale,trailEnabled,count]);if(isStatic||!enabled)return null;return /*#__PURE__*/_jsxs(\"div\",{className:rootClass,\"aria-hidden\":\"true\",style:{\"--plane-size\":`${size}px`,\"--plane-color\":planeColor,\"--plane-trail\":trailColor,\"--plane-z\":zIndex,\"--plane-shadow\":shadow?\"drop-shadow(0 8px 12px rgba(24, 30, 75, 0.16))\":\"none\",position:\"fixed\",inset:0,width:0,height:0,pointerEvents:\"none\",zIndex},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                body.${activeClass},\n                body.${activeClass} * {\n                    cursor: none !important;\n                }\n\n                .${rootClass} .plane-cursor {\n                    position: fixed;\n                    left: 0;\n                    top: 0;\n                    width: var(--plane-size);\n                    height: var(--plane-size);\n                    opacity: 0;\n                    pointer-events: none;\n                    transform: translate3d(-50%, -50%, 0) rotate(0deg);\n                    transform-origin: 50% 50%;\n                    filter: var(--plane-shadow);\n                    transition:\n                        opacity 0.16s ease,\n                        filter 0.16s ease;\n                    will-change: left, top, transform, opacity;\n                    z-index: var(--plane-z);\n                }\n\n                .${rootClass} .plane-cursor svg {\n                    display: block;\n                    width: 100%;\n                    height: 100%;\n                    overflow: visible;\n                }\n\n                .${rootClass} .plane-trail {\n                    position: fixed;\n                    left: 0;\n                    top: 0;\n                    width: calc(var(--plane-size) * 0.13);\n                    height: calc(var(--plane-size) * 0.13);\n                    border-radius: 999px;\n                    background: var(--plane-trail);\n                    opacity: 0;\n                    pointer-events: none;\n                    transform: translate3d(-50%, -50%, 0);\n                    will-change: left, top, transform, opacity;\n                    z-index: calc(var(--plane-z) - 1);\n                }\n\n                @media (pointer: coarse), (prefers-reduced-motion: reduce) {\n                    .${rootClass} {\n                        display: none !important;\n                    }\n                }\n            `}),Array.from({length:count}).map((_,index)=>/*#__PURE__*/_jsx(\"span\",{ref:node=>{trailRefs.current[index]=node;},className:\"plane-trail\"},index)),/*#__PURE__*/_jsx(\"div\",{ref:cursorRef,className:\"plane-cursor\",children:/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 64 64\",fill:\"none\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M60 30L43 26L31 10C30 8 28 7 26 7H24L27 25L16 21L10 13H6L11 25L3 30L11 35L6 47H10L16 39L27 35L24 53H26C28 53 30 52 31 50L43 34L60 30Z\",fill:\"var(--plane-color)\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M43 26L30.5 30L43 34L60 30L43 26Z\",fill:\"rgba(255,255,255,0.14)\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M27 25L20.2 29.2L27 35L24 53H26C28 53 30 52 31 50L43 34L30.5 30L43 26L31 10C30 8 28 7 26 7H24L27 25Z\",fill:\"rgba(255,255,255,0.08)\"})]})})]});}const defaultProps={enabled:true,hideNativeCursor:true,size:20,planeColor:\"#23285B\",trailColor:\"rgba(35, 40, 91, 0.08)\",trailEnabled:true,trailCount:3,smoothness:.24,rotationOffset:0,hoverScale:1.08,shadow:false,zIndex:99999};PlaneCursor.defaultProps=defaultProps;addPropertyControls(PlaneCursor,{enabled:{type:ControlType.Boolean,title:\"Enabled\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},hideNativeCursor:{type:ControlType.Boolean,title:\"Native Cursor\",defaultValue:true,enabledTitle:\"Hide\",disabledTitle:\"Show\"},size:{type:ControlType.Number,title:\"Size\",defaultValue:20,min:12,max:72,step:1},planeColor:{type:ControlType.Color,title:\"Plane\",defaultValue:\"#23285B\"},trailColor:{type:ControlType.Color,title:\"Trail\",defaultValue:\"rgba(35, 40, 91, 0.08)\"},trailEnabled:{type:ControlType.Boolean,title:\"Trail\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},trailCount:{type:ControlType.Number,title:\"Trail Count\",defaultValue:3,min:0,max:10,step:1,hidden:props=>props.trailEnabled===false},smoothness:{type:ControlType.Number,title:\"Smooth\",defaultValue:.24,min:.04,max:.6,step:.01},rotationOffset:{type:ControlType.Number,title:\"Rotation\",defaultValue:0,min:-180,max:180,step:1},hoverScale:{type:ControlType.Number,title:\"Hover Scale\",defaultValue:1.08,min:.8,max:1.8,step:.01},shadow:{type:ControlType.Boolean,title:\"Shadow\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},zIndex:{type:ControlType.Number,title:\"Z Index\",defaultValue:99999,min:1,max:999999,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PlaneCursor\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PlaneCursor.map","// Generated by Framer (6ca3d35)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-y2YqZ .framer-styles-preset-15sgb9a:not(.rich-text-wrapper), .framer-y2YqZ .framer-styles-preset-15sgb9a.rich-text-wrapper a { --framer-link-hover-text-color: #ff946d; --framer-link-text-color: #181e4b; }\"];export const className=\"framer-y2YqZ\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"4NAA6J,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,UAAQ,mBAAiB,OAAK,aAAW,aAAW,eAAa,aAAW,aAAW,iBAAe,aAAW,SAAO,UAAQ,CAAC,GAAG,EAAa,GAAG,EAAM,CAAO,EAAS,GAAqB,CAAO,EAAGA,GAAa,CAAC,QAAQ,KAAK,GAAG,CAAO,EAAU,gBAAgB,IAAW,EAAY,uBAAuB,IAAW,EAAUC,EAAa,KAAK,CAAO,EAAUA,EAAa,EAAE,CAAC,CAAO,EAAM,KAAK,IAAI,EAAE,KAAK,IAAI,GAAG,KAAK,MAAM,EAAW,CAAC,CAAC,CAAO,EAAe,KAAK,IAAI,I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