{"version":3,"file":"AnimatedLineArch.BGGHkCC3.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/jVbRNCbkOf6AxTYhtpOw/kDkWduv57Zy5aMMX9YtC/AnimatedLineArch.js"],"sourcesContent":["// Animated arc line (left to right, arch of a circle, y: 0 → 50 → 0)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * Animated Arc Line\n *\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 100\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight fixed\n */export default function AnimatedLineArch(props){const{strokeColor,strokeWidth,duration,sectionId,style}=props;const pathRef=useRef(null);const isStatic=useIsStaticRenderer();// Use 100% width/height for responsive arc\nconst width=400;const height=100;// Arc: y = 0 → 50 → 0, left to right\n// Use quadratic Bezier: M0,0 Q200,50 400,0\n// We'll scale the path to the SVG's width/height\nconst d=`M0,0 Q200,50 400,0`;const containerRef=useRef(null);const hasAnimated=useRef(false);useEffect(()=>{if(isStatic)return;const path=pathRef.current;if(!path)return;const length=path.getTotalLength();// Set initial state: hidden\npath.style.transition=\"none\";path.style.strokeDasharray=`${length}`;path.style.strokeDashoffset=`${length}`;let observer=null;let target=null;if(sectionId&&typeof window!==\"undefined\"){target=document.getElementById(sectionId);}if(!target&&containerRef.current){target=containerRef.current;}if(target){observer=new window.IntersectionObserver(([entry])=>{if(!hasAnimated.current&&entry.isIntersecting&&entry.intersectionRatio>0){// Animate from start to end\nrequestAnimationFrame(()=>{path.style.transition=`stroke-dashoffset ${duration}s cubic-bezier(0,0,0.4,1)`;path.style.strokeDashoffset=\"0\";});hasAnimated.current=true;observer&&observer.disconnect();}},{threshold:.01,root:null,rootMargin:\"0px 0px 0px 0px\"// triggers when top of section hits top of viewport\n});observer.observe(target);}return()=>{observer&&observer.disconnect();};},[duration,isStatic,sectionId]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{width:\"100%\",height:\"100%\"},children:/*#__PURE__*/_jsx(\"svg\",{width:\"100%\",height:\"100%\",viewBox:`0 0 ${width} ${height}`,style:{display:\"block\",...style},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{ref:pathRef,d:d,fill:\"none\",stroke:strokeColor,strokeWidth:strokeWidth,strokeLinecap:\"round\",style:isStatic?{strokeDasharray:\"none\",strokeDashoffset:0}:undefined})})});}addPropertyControls(AnimatedLineArch,{strokeColor:{type:ControlType.Color,title:\"Stroke Color\",defaultValue:\"#222222\"},strokeWidth:{type:ControlType.Number,title:\"Stroke Width\",defaultValue:4,min:1,max:20,step:1,unit:\"px\"},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:2,min:.2,max:10,step:.1,unit:\"s\"},sectionId:{type:ControlType.String,title:\"Section ID\",defaultValue:\"\",placeholder:\"section-id\",description:\"ID of the section to trigger animation when centered in viewport\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AnimatedLineArch\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"100\",\"framerIntrinsicWidth\":\"400\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AnimatedLineArch.map"],"mappings":"kMASG,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,cAAY,cAAY,WAAS,YAAU,SAAO,EAAY,EAAQA,EAAO,IAAI,EAAQ,EAAS,EAAoB,EAI5I,EAAaA,EAAO,IAAI,EAAQ,EAAYA,EAAO,EAAK,EAGgB,OAHd,MAAc,CAAC,GAAG,EAAS,OAAO,IAAM,EAAK,EAAQ,QAAQ,GAAG,CAAC,EAAK,OAAO,IAAM,EAAO,EAAK,eAAe,EAC3M,EAAK,MAAM,WAAW,OAAO,EAAK,MAAM,gBAAgB,GAAG,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