{"version":3,"file":"AnimatedLine.CUC4a4QT.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/0mmWcFK72UDv0VGVIO7B/hbvudQxTYLyWdItGNYBs/AnimatedLine.js"],"sourcesContent":["// Animated line that draws from left to right when scrolling into view\n// Height: 3px, Width: 32px (both customizable)\n// Animates from 0px to full width when parent container enters viewport\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{motion,useInView}from\"framer-motion\";import{useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function AnimatedLine(props){const{width=32,height=3,color=\"#000000\",duration=.8,delay=0,ariaLabel=\"Decorative animated line\"}=props;const ref=useRef(null);const isInView=useInView(ref,{once:true,amount:.5});return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{width:width,height:height,position:\"relative\",overflow:\"hidden\"},role:\"img\",\"aria-label\":ariaLabel,children:/*#__PURE__*/_jsx(motion.div,{style:{width:\"100%\",height:\"100%\",backgroundColor:color,transformOrigin:\"left\"},initial:{scaleX:0},animate:isInView?{scaleX:1}:{scaleX:0},transition:{duration:duration,delay:delay,ease:\"easeOut\"},\"aria-hidden\":\"true\"})});}addPropertyControls(AnimatedLine,{width:{type:ControlType.Number,title:\"Width\",defaultValue:32,min:1,max:500,step:1,unit:\"px\"},height:{type:ControlType.Number,title:\"Height\",defaultValue:3,min:1,max:50,step:1,unit:\"px\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:.8,min:.1,max:3,step:.1,unit:\"s\"},delay:{type:ControlType.Number,title:\"Delay\",defaultValue:0,min:0,max:2,step:.1,unit:\"s\"},ariaLabel:{type:ControlType.String,title:\"ARIA Label\",defaultValue:\"Decorative animated line\",description:\"Description for screen readers\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AnimatedLine\",\"slots\":[],\"annot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