{"version":3,"file":"WaveLine.BQS0lO2W.mjs","names":[],"sources":["https:/framerusercontent.com/modules/cgH7r57UVyALPp7iipLJ/Ifvh7YOofM63jr7cAAJL/WaveLine.js"],"sourcesContent":["// 4px wide line with linear wave animation\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function WaveLine(props){const{lineColor=\"#000000\",lineThickness=4,waveHeight=20,waveSpeed=2,waveLength=100,waveCount=5}=props;const isStatic=useIsStaticRenderer();if(isStatic){return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",position:\"relative\"},children:/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:`${lineThickness}px`,backgroundColor:lineColor,borderRadius:`${lineThickness/2}px`}})});}const pathData=`M 0 0 Q ${waveLength/4} ${-waveHeight} ${waveLength/2} 0 T ${waveLength} 0`.repeat(waveCount).replace(/M 0 0/g,(match,index)=>index===0?match:`L ${index*waveLength} 0`).replace(/T (\\d+) 0/g,(match,x)=>{const waveIndex=Math.floor(parseInt(x)/waveLength);const newX=(waveIndex+1)*waveLength;return`T ${newX} 0`;});// Create a more complex path with multiple waves\nlet complexPath=`M 0 0`;for(let i=0;i<waveCount;i++){const startX=i*waveLength;const midX=startX+waveLength/2;const endX=startX+waveLength;if(i===0){complexPath+=` Q ${startX+waveLength/4} ${-waveHeight} ${midX} 0 T ${endX} 0`;}else{complexPath+=` Q ${startX+waveLength/4} ${-waveHeight} ${midX} 0 T ${endX} 0`;}}return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",position:\"relative\",overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"svg\",{width:\"100%\",height:\"100%\",viewBox:`0 ${-waveHeight-10} ${waveLength*waveCount} ${waveHeight*2+20}`,preserveAspectRatio:\"none\",style:{position:\"absolute\",top:\"50%\",left:0,transform:\"translateY(-50%)\"},children:/*#__PURE__*/_jsx(motion.path,{d:complexPath,stroke:lineColor,strokeWidth:lineThickness,fill:\"none\",strokeLinecap:\"round\",strokeLinejoin:\"round\",initial:{pathLength:0,pathOffset:0},animate:{pathLength:1,pathOffset:[0,1,0]},transition:{pathLength:{duration:.5,ease:\"easeInOut\"},pathOffset:{duration:waveSpeed,repeat:Infinity,ease:\"linear\"}}})})});}addPropertyControls(WaveLine,{lineColor:{type:ControlType.Color,title:\"Line Color\",defaultValue:\"#000000\"},lineThickness:{type:ControlType.Number,title:\"Line Thickness\",defaultValue:4,min:1,max:20,step:1,unit:\"px\"},waveHeight:{type:ControlType.Number,title:\"Wave Height\",defaultValue:20,min:5,max:100,step:1,unit:\"px\"},waveSpeed:{type:ControlType.Number,title:\"Wave Speed\",defaultValue:2,min:.5,max:10,step:.1,unit:\"s\"},waveLength:{type:ControlType.Number,title:\"Wave Length\",defaultValue:100,min:50,max:300,step:10,unit:\"px\"},waveCount:{type:ControlType.Number,title:\"Wave Count\",defaultValue:5,min:1,max:20,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"WaveLine\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WaveLine.map"],"mappings":"sNAIG,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,YAAU,UAAU,gBAAc,EAAE,aAAW,GAAG,YAAU,EAAE,aAAW,IAAI,YAAU,GAAG,EAA2C,GAAtB,GAAqB,CAAc,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,SAAS,WA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