{"version":3,"file":"Line.BgO8z_Ok.mjs","names":[],"sources":["https:/framerusercontent.com/modules/JEPUETTPW41jRzTiJd8u/63fYazSOV77vDG0G04cR/Line.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{Frame,addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";// Map string easing options to cubic bezier arrays\nconst easingMap={linear:[0,0,1,1],easeIn:[.42,0,1,1],easeOut:[0,0,.58,1],easeInOut:[.42,0,.58,1]};export function HorizontalLine(props){const{strokeWidth,strokeColor,direction,speed,easing,trigger,width,...rest}=props;// Animation scales SVG from 0 to 1\nconst initialScale=0;const animateScale=1;// Transform origin based on direction\nconst origin=direction===\"ltr\"?\"0% 50%\":direction===\"rtl\"?\"100% 50%\":\"50% 50%\";const transition={duration:speed,ease:easingMap[easing]};// Motion props based on trigger\nconst motionProps=trigger===\"appear\"?{initial:{scaleX:initialScale},animate:{scaleX:animateScale},transition}:{initial:{scaleX:initialScale},whileInView:{scaleX:animateScale},viewport:{once:true},transition};return /*#__PURE__*/_jsx(Frame,{width:width||\"100%\",height:strokeWidth,background:\"none\",...rest,children:/*#__PURE__*/_jsx(motion.svg,{viewBox:\"0 0 100 1\",preserveAspectRatio:\"none\",width:\"100%\",height:\"100%\",style:{overflow:\"visible\",transformOrigin:origin},...motionProps,children:/*#__PURE__*/_jsx(\"line\",{x1:0,y1:.5,x2:100,y2:.5,stroke:strokeColor,strokeWidth:strokeWidth,strokeLinecap:\"round\",vectorEffect:\"non-scaling-stroke\"})})});}HorizontalLine.defaultProps={strokeWidth:2,strokeColor:\"#000000\",direction:\"ltr\",speed:1,easing:\"easeInOut\",trigger:\"appear\"};addPropertyControls(HorizontalLine,{strokeWidth:{type:ControlType.Number,title:\"Stroke Width\",min:1,max:20,step:1,defaultValue:2},strokeColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"},direction:{type:ControlType.Enum,title:\"Direction\",options:[\"ltr\",\"rtl\",\"center\"],optionTitles:[\"Left → Right\",\"Right → Left\",\"Grow From Center\"],defaultValue:\"ltr\"},speed:{type:ControlType.Number,title:\"Speed (s)\",min:.1,max:10,step:.1,defaultValue:1},easing:{type:ControlType.Enum,title:\"Easing\",options:[\"linear\",\"easeIn\",\"easeOut\",\"easeInOut\"],optionTitles:[\"Linear\",\"Ease In\",\"Ease Out\",\"Ease In Out\"],defaultValue:\"easeInOut\"},trigger:{type:ControlType.Enum,title:\"Trigger\",options:[\"appear\",\"scroll\"],optionTitles:[\"On Appear\",\"On Scroll\"],defaultValue:\"appear\"}});export default HorizontalLine;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HorizontalLine\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"HorizontalLine\":{\"type\":\"reactComponent\",\"name\":\"HorizontalLine\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Line.map"],"mappings":"+MACkG,SAAgB,EAAe,EAAM,CAAC,GAAK,CAAC,cAAY,cAAY,YAAU,QAAM,SAAO,UAAQ,QAAM,GAAG,GAAM,EAE9M,EAAO,IAAY,MAAM,SAAS,IAAY,MAAM,WAAW,UAAgB,EAAW,CAAC,SAAS,EAAM,KAAK,EAAU,GAAQ,CACjI,EAAY,IAAU,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAa,CAAC,QAAQ,CAAC,OAAO,EAAa,CAAC,aAAW,CAAC,CAAC,QAAQ,CAAC,OAAO,EAAa,CAAC,YAAY,CAAC,OAAO,EAAa,CAAC,SAAS,CAAC,KAAK,GAAK,CAAC,aAAW,CAAC,OAAoB,EAAK,EAAM,CAAC,MAAM,GAAO,OAAO,OAAO,EAAY,WAAW,OAAO,GAAG,EAAK,SAAsB,EAAK,EAAO,IAAI,CAAC,QAAQ,YAAY,oBAAoB,OAAO,MAAM,OAAO,OAAO,OAAO,MAAM,CAAC,SAAS,UAAU,gB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