{"version":3,"file":"LoopingGlowLine.4gA7i7He.mjs","names":["useRef","useState","useMemo"],"sources":["https:/framerusercontent.com/modules/oRZNz1OhAISK82DtcOGB/N62yml5nm6Kfn4RfwfiC/nIWEFZ57c.js","https:/framerusercontent.com/modules/4hvqCzzobwqYlb8cSaFw/O4kyacSaFmJQHuDdzh3o/LoopingGlowLine.js"],"sourcesContent":["// Generated by Framer (6ca5d98)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,useSVGTemplate,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const Base=/*#__PURE__*/forwardRef(function(props,ref){return /*#__PURE__*/_jsx(\"svg\",{...props,ref:ref,children:props.children});});const MotionSVG=motion.create(Base);const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(MotionSVG,{...rest,layoutId:layoutId,ref:ref,children:children}):/*#__PURE__*/_jsx(\"svg\",{...rest,ref:ref,children:children});});const svg='<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 6.75 5.673 L 3.998 3 C 3.808 2.829 3.718 2.573 3.76 2.32 C 3.802 2.068 3.969 1.854 4.205 1.753 L 4.875 1.5 L 10.268 3.485 L 15.41 0.415 C 16.685 -0.336 18.317 -0.044 19.253 1.101 L 21 3.342 L 7.18 11.592 C 6.034 12.259 4.585 12.094 3.618 11.187 L 0.237 7.875 C 0.052 7.702 -0.033 7.447 0.011 7.198 C 0.055 6.949 0.222 6.738 0.455 6.639 L 0.75 6.494 L 3.73 7.5 Z\" fill-opacity=\"var(--1m6trwb, 0)\" fill=\"var(--21h8s6, rgb(0, 0, 0))\" height=\"11.999016919302917px\" id=\"UrpsVK2qr\" transform=\"translate(1.5 5.25)\" width=\"20.99991123745394px\"/><path d=\"M 0 0 L 13.5 0\" fill=\"transparent\" height=\"1px\" id=\"SPJY1s_ru\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--pgex8v, 1.5)\" stroke=\"var(--21h8s6, rgb(0, 0, 0))\" transform=\"translate(2.25 20.25)\" width=\"13.5px\"/><path d=\"M 6.75 5.673 L 3.998 3 C 3.808 2.829 3.718 2.573 3.76 2.32 C 3.802 2.068 3.969 1.854 4.205 1.753 L 4.875 1.5 L 10.268 3.485 L 15.41 0.415 C 16.685 -0.336 18.317 -0.044 19.253 1.101 L 21 3.342 L 7.18 11.592 C 6.034 12.259 4.585 12.094 3.618 11.187 L 0.237 7.875 C 0.052 7.702 -0.033 7.447 0.011 7.198 C 0.055 6.949 0.222 6.738 0.455 6.639 L 0.75 6.494 L 3.73 7.5 Z\" fill=\"transparent\" height=\"11.999016919302917px\" id=\"tsspz4TXi\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--pgex8v, 1.5)\" stroke=\"var(--21h8s6, rgb(0, 0, 0))\" transform=\"translate(1.5 5.25)\" width=\"20.99991123745394px\"/></svg>';const getProps=({alpha,color,height,id,width,width1,...props})=>{return{...props,ezTt3ayMo:color??props.ezTt3ayMo??\"rgb(0, 0, 0)\",lschgej4H:width1??props.lschgej4H??1.5,qxTvv_EBh:alpha??props.qxTvv_EBh};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,ezTt3ayMo,lschgej4H,qxTvv_EBh,...restProps}=getProps(props);const href=useSVGTemplate(\"941805552\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-wwXki\",className),layoutId:layoutId,ref:ref,role:\"presentation\",style:{\"--1m6trwb\":qxTvv_EBh,\"--21h8s6\":ezTt3ayMo,\"--pgex8v\":lschgej4H,...style},viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"use\",{href:href})});});const css=[`.framer-wwXki { -webkit-mask: ${mask}; aspect-ratio: 1; display: block; mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"ezTt3ayMo\":\"color\",\"lschgej4H\":\"width1\",\"qxTvv_EBh\":\"alpha\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Airplane Takeoff\",\"color\":{\"type\":\"variable\",\"value\":\"21h8s6\"},\"set\":{\"localId\":\"vectorSet/NGVKdicsm\",\"id\":\"NGVKdicsm\",\"moduleId\":\"omX0gWFPqDwhaiWwf6ab\"}}\n * @framerDisableUnlink true\n */const Icon=withCSS(Component,css,\"framer-wwXki\");Icon.displayName=\"Airplane Takeoff\";export default Icon;addPropertyControls(Icon,{ezTt3ayMo:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Color\",type:ControlType.Color},lschgej4H:{defaultValue:1.5,displayStepper:true,hidden:false,max:6,min:0,step:.5,title:\"Width\",type:ControlType.Number},qxTvv_EBh:{defaultValue:0,displayStepper:true,hidden:false,max:1,min:0,step:.1,title:\"Alpha\",type:ControlType.Number}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerVariables\":\"{\\\"ezTt3ayMo\\\":\\\"color\\\",\\\"lschgej4H\\\":\\\"width1\\\",\\\"qxTvv_EBh\\\":\\\"alpha\\\"}\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"24\",\"framerVector\":\"{\\\"name\\\":\\\"Airplane Takeoff\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"21h8s6\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/NGVKdicsm\\\",\\\"id\\\":\\\"NGVKdicsm\\\",\\\"moduleId\\\":\\\"omX0gWFPqDwhaiWwf6ab\\\"}}\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"24\",\"framerImmutableVariables\":\"true\",\"framerDisableUnlink\":\"true\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion,useInView}from\"framer-motion\";import{startTransition,useEffect,useMemo,useRef,useState}from\"react\";/**\n * @framerIntrinsicWidth 300\n * @framerIntrinsicHeight 5\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight fixed\n */export default function LoopingGlowLine(props){const{lineColor,glowColor,glowSize,glowVisibleHeight,blur,duration,style}=props;const isStatic=useIsStaticRenderer();const containerRef=useRef(null);const isInView=useInView(containerRef,{amount:.15});const[containerWidth,setContainerWidth]=useState(0);useEffect(()=>{if(isStatic)return;if(typeof window===\"undefined\")return;const el=containerRef.current;if(!el)return;const update=()=>{const rect=el.getBoundingClientRect();const w=Math.max(0,rect.width||0);startTransition(()=>setContainerWidth(w));};update();if(typeof window.ResizeObserver===\"undefined\"){const onResize=()=>update();window.addEventListener(\"resize\",onResize);return()=>window.removeEventListener(\"resize\",onResize);}const ro=new ResizeObserver(()=>update());ro.observe(el);return()=>ro.disconnect();},[isStatic]);const safeGlowSize=useMemo(()=>{const n=Number.isFinite(glowSize)?glowSize:20;return Math.max(1,n);},[glowSize]);const safeGlowVisibleHeight=useMemo(()=>{const n=Number.isFinite(glowVisibleHeight)?glowVisibleHeight:1;return Math.max(1,n);},[glowVisibleHeight]);const safeBlur=useMemo(()=>{const n=Number.isFinite(blur)?blur:12;return Math.max(0,n);},[blur]);const safeDuration=useMemo(()=>{const n=Number.isFinite(duration)?duration:1.6;return Math.max(.05,n);},[duration]);const travelToX=useMemo(()=>{const w=Number.isFinite(containerWidth)?containerWidth:0;// Move fully past the right edge\nreturn Math.max(0,w+safeGlowSize);},[containerWidth,safeGlowSize]);const glowStyle=useMemo(()=>({position:\"absolute\",top:\"50%\",left:0,width:safeGlowSize,height:safeGlowSize,background:glowColor,borderRadius:safeGlowSize/2,transform:\"translateY(-50%)\",filter:`blur(${safeBlur}px)`,pointerEvents:\"none\",willChange:\"transform\"}),[glowColor,safeBlur,safeGlowSize]);const glowClipStyle=useMemo(()=>({position:\"absolute\",left:0,right:0,top:\"50%\",height:safeGlowVisibleHeight,transform:\"translateY(-50%)\",overflow:\"hidden\",pointerEvents:\"none\"}),[safeGlowVisibleHeight]);const rootStyle=useMemo(()=>({position:\"relative\",width:\"100%\",height:\"100%\",minHeight:5,overflow:\"hidden\",background:\"transparent\",...style}),[style]);const shouldAnimate=!isStatic&&isInView&&travelToX>0;return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:rootStyle,\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:0,right:0,top:\"50%\",height:1,transform:\"translateY(-50%)\",background:lineColor}}),/*#__PURE__*/_jsx(\"div\",{style:glowClipStyle,children:isStatic?/*#__PURE__*/_jsx(\"div\",{style:{...glowStyle,transform:`translateY(-50%) translateX(${-safeGlowSize}px)`}}):/*#__PURE__*/_jsx(motion.div,{style:glowStyle,initial:{x:-safeGlowSize},animate:shouldAnimate?{x:travelToX}:{x:-safeGlowSize},transition:shouldAnimate?{duration:safeDuration,ease:\"linear\",repeat:Infinity,repeatType:\"loop\"}:{duration:0}})})]});}addPropertyControls(LoopingGlowLine,{lineColor:{type:ControlType.Color,title:\"Line\",defaultValue:\"#000000\"},glowColor:{type:ControlType.Color,title:\"Glow\",defaultValue:\"#FFFFFF\"},glowSize:{type:ControlType.Number,title:\"Glow Size\",defaultValue:20,min:1,max:200,step:1,unit:\"px\"},glowVisibleHeight:{type:ControlType.Number,title:\"Glow Height\",defaultValue:1,min:1,max:200,step:1,unit:\"px\"},blur:{type:ControlType.Number,title:\"Blur\",defaultValue:12,min:0,max:60,step:1,unit:\"px\"},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:1.6,min:.05,max:10,step:.05,unit:\"s\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LoopingGlowLine\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"5\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"300\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LoopingGlowLine.map"],"mappings":"2VAC2C,IAAqF,IAA4B,CAAoC,EAAK,0BAAgC,EAAkB,EAAW,SAAS,EAAM,EAAI,CAAC,OAAoB,EAAK,MAAM,CAAC,GAAG,EAAU,MAAI,SAAS,EAAM,SAAS,CAAC,EAAG,CAAO,EAAU,EAAO,OAAO,EAAK,CAAO,EAAiB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAG,GAAM,EAAM,OAAO,EAAsB,EAAK,EAAU,CAAC,GAAG,EAAc,WAAa,MAAa,WAAS,CAAC,CAAc,EAAK,MAAM,CAAC,GAAG,EAAS,MAAa,WAAS,CAAC,EAAG,CAAO,EAAI,8gDAAohD,GAAU,CAAC,QAAM,QAAM,SAAO,KAAG,QAAM,SAAO,GAAG,MAAgB,CAAC,GAAG,EAAM,UAAU,GAAO,EAAM,WAAW,eAAe,UAAU,GAAQ,EAAM,WAAW,IAAI,UAAU,GAAO,EAAM,UAAU,EAUp2E,EAAK,EAV+3E,EAAiB,SAAS,EAAM,EAAI,CAAC,GAAK,CAAC,QAAM,YAAU,WAAS,UAAQ,YAAU,YAAU,YAAU,GAAG,GAAW,EAAS,EAAM,CAAO,EAAK,EAAe,YAAY,EAAI,CAAC,OAAoB,EAAK,EAAI,CAAC,GAAG,EAAU,UAAU,EAAG,eAAe,EAAU,CAAU,WAAa,MAAI,KAAK,eAAe,MAAM,CAAC,YAAY,EAAU,W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