{"version":3,"file":"InteractiveLine.Cq51ViIR.mjs","names":["React.useState","React.useCallback","React.useMemo"],"sources":["https:/framerusercontent.com/modules/tMvLmLNa3ZWwEPmEtxaD/9kaTW8ljCfvopVHTKUbG/InteractiveLine.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion,useMotionTemplate,useMotionValue}from\"framer-motion\";/**\n * LGNDRY INTERACTIVE GLOW LINE V2 (OPTIMIZED)\n * - Optimization: GPU Hinting ('will-change', 'translateZ').\n * - Optimization: Memoized masks and gradient logic.\n */// PERFORMANCE: Define static mask outside component\nconst fadeMask=\"linear-gradient(90deg, transparent 0%, black 20%, black 80%, transparent 100%)\";export default function InteractiveLine(props){const{baseColor,glowColor1,glowColor2,thickness,glowSize,intensity,glowOpacity}=props;const mouseX=useMotionValue(0);const[isHovered,setHovered]=React.useState(false);const handleMouseMove=React.useCallback(({currentTarget,clientX})=>{const{left}=currentTarget.getBoundingClientRect();mouseX.set(clientX-left);},[mouseX]);// PERFORMANCE: Use motion template effectively\nconst background=useMotionTemplate`\n        radial-gradient(\n            ${glowSize}px circle at ${mouseX}px 50%,\n            ${glowColor1} 0%,\n            ${glowColor2} 35%,\n            transparent 70%\n        )\n    `;// PERFORMANCE: Memoize transition object\nconst transitionSettings=React.useMemo(()=>({duration:isHovered?.2:.8,ease:isHovered?\"easeInOut\":\"easeOut\"}),[isHovered]);return /*#__PURE__*/_jsxs(\"div\",{onMouseMove:handleMouseMove,onMouseEnter:()=>setHovered(true),onMouseLeave:()=>setHovered(false),style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",position:\"relative\",background:\"transparent\",// PERFORMANCE: Force Hardware Acceleration\ntransform:\"translateZ(0)\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:thickness,background:baseColor,borderRadius:99,WebkitMaskImage:fadeMask,maskImage:fadeMask,position:\"absolute\",zIndex:0}}),/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",left:0,right:0,height:thickness*8,background:background,borderRadius:99,opacity:isHovered?glowOpacity:0,mixBlendMode:\"plus-lighter\",filter:`blur(${thickness*2}px)`,WebkitMaskImage:fadeMask,maskImage:fadeMask,zIndex:1,// PERFORMANCE: Hint browser\nwillChange:\"opacity, background\"},animate:{opacity:isHovered?glowOpacity:0},transition:transitionSettings}),/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",left:0,right:0,height:thickness,background:background,borderRadius:99,opacity:isHovered?Math.min(glowOpacity+.2,1):0,filter:`brightness(${intensity}) contrast(150%)`,WebkitMaskImage:fadeMask,maskImage:fadeMask,zIndex:2,// PERFORMANCE: Hint browser\nwillChange:\"opacity, background\"},animate:{opacity:isHovered?Math.min(glowOpacity+.2,1):0},transition:transitionSettings})]});}addPropertyControls(InteractiveLine,{baseColor:{type:ControlType.Color,title:\"Base Color\",defaultValue:\"rgba(255, 255, 255, 0.1)\"},glowColor1:{type:ControlType.Color,title:\"Center Color\",defaultValue:\"#00D4FF\"},glowColor2:{type:ControlType.Color,title:\"Outer Color\",defaultValue:\"#7F00FF\"},thickness:{type:ControlType.Number,title:\"Line Thickness\",defaultValue:1.5,min:1,max:10,step:.5},glowSize:{type:ControlType.Number,title:\"Orb Size\",defaultValue:200,min:50,max:600},glowOpacity:{type:ControlType.Number,title:\"Glow Opacity\",defaultValue:.6,min:.1,max:1,step:.1},intensity:{type:ControlType.Number,title:\"Brightness\",defaultValue:1,min:.5,max:3,step:.1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"InteractiveLine\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./InteractiveLine.map"],"mappings":"8PAKgG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,YAAU,aAAW,aAAW,YAAU,WAAS,Y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