{"version":3,"file":"AnimLine1.DhbH9vAh.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/EbquaUnvtix5zhPQBZi5/RHJBwu9YgravGnyO7dlu/AnimLine1.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{motion,useInView,useAnimation}from\"framer-motion\";import{useRef,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function HandDrawnLine({strokeColor,strokeWidth,duration,pathLength,delay}){const ref=useRef(null);const isInView=useInView(ref,{once:true,margin:\"-100px\"});const controls=useAnimation();useEffect(()=>{if(isInView){controls.start({strokeDashoffset:0});}},[isInView,controls]);return /*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 350.6 5.1\",xmlns:\"http://www.w3.org/2000/svg\",width:\"100%\",height:\"auto\",ref:ref,children:/*#__PURE__*/_jsx(motion.path,{d:\"M352.2,1.1c-.3-.7-1.7-1-2.5-1-1.3-.1-2.7-.1-4.1-.2h-2.8c-1.2-.1-2.3-.1-3.5-.2h-1.9c-2.5,0-4.9-.1-7.4-.2h-2.7c-4.5-.1-8.9-.2-13.4-.2h-6.6c-1.5-.1-3-.1-4.4-.1h-19.1c-1.8-.1-3.5-.2-5.3-.2-.8,0-1.5,0-2.3,0h-28.8c-1.3,0-2.7,0-4,0h-20.3c-3.6,0-7.3,0-10.9.1-4.2,0-20.2,0-35.5,0-15.3,0-31.1,0-35.3,0h-4.3c-3.5,0-7,0-10.4.1l-28.4.3c-3.6,0-7.2,0-10.7.1l-29.5.5c-3.6,0-7.1.1-10.7.2l-31.7.8c-2.6,0-5.3.2-7.9.2h-4c-.4.2-.9.2-1.3.3-.8.2-1.1.6-1.1,1s.4.8,1.1,1c.6.2,1.2.2,1.9.2s.1,0,.2,0h2.7c3.6-.2,7.2-.3,10.9-.4l28.1-.7c1.2,0,2.5,0,3.7,0l36.3-.6c1.3,0,2.6,0,4,0,7.1,0,14.1-.2,21.2-.2l14.2-.2c1,0,1.9,0,2.9,0h22.9c2.1-.2,16-.2,29.3-.2,13.2,0,26.8,0,28.9,0h1.2c1.1,0,2.2,0,3.3,0h23.6c4.9,0,9.8,0,14.7,0h25.1c1.3,0,2.5,0,3.8,0l25.3.2c1.6,0,3.3,0,4.9,0h2.4c7.2.1,14.4.3,21.6.4,1.8,0,3.7,0,5.5.1h.2c1.9,0,3.8,0,5.6.1.3,0,.6,0,.9,0,.8,0,1.5,0,2.3,0,.6,0,1.1-.2,1.6-.6.2-.2.3-.5.2-.8Z\",fill:\"none\",stroke:strokeColor,strokeWidth:strokeWidth,initial:{strokeDasharray:pathLength,strokeDashoffset:pathLength},animate:controls,transition:{duration:duration,delay:delay,ease:\"easeOut\"}})});}// 👇 Add props for the Framer visual editor\naddPropertyControls(HandDrawnLine,{strokeColor:{title:\"Stroke Color\",type:ControlType.Color,defaultValue:\"#c3fee6\"},strokeWidth:{title:\"Stroke Width\",type:ControlType.Number,defaultValue:2,min:1,max:10},duration:{title:\"Duration (s)\",type:ControlType.Number,defaultValue:2,min:.1,max:10,step:.1},delay:{title:\"Delay (s)\",type:ControlType.Number,defaultValue:0,min:0,max:5,step:.1},pathLength:{title:\"Path Length\",type:ControlType.Number,defaultValue:1600,min:10,max:1e4}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HandDrawnLine\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AnimLine1.map"],"mappings":"gPAA4L,SAAwB,EAAc,CAAC,cAAY,cAAY,WAAS,aAAW,SAAO,CAAC,IAAM,EAAIA,EAAO,KAAK,CAAO,EAAS,EAAU,EAAI,CAAC,KAAK,GAAK,OAAO,SAAS,CAAC,CAAO,EAAS,GAAc,CAA0F,OAAzF,MAAc,CAAI,GAAU,EAAS,MAAM,CAAC,iBAAiB,EAAE,CAAC,EAAI,CAAC,EAAS,EAAS,CAAC,CAAqB,EAAK,MAAM,CAAC,QAAQ,gBAAgB,MAAM,6BAA6B,MAAM,OAAO,OAAO,OAAW,MAAI,SAAsB,EAAK,EAAO,KAAK,CAAC,EAAE,m2BAAm2B,KAAK,OAAO,OAAO,EAAwB,cAAY,QAAQ,CAAC,gBAAgB,EAAW,iBAAiB,EAAW,CAAC,QAAQ,EAAS,WAAW,CAAU,WAAe,QAAM,KAAK,UAAU,CAAC,CAAC,CAAC,CAAC,kBAAroD,IAAyD,IAAoC,IAAoD,CAC5L,EAAoB,EAAc,CAAC,YAAY,CAAC,MAAM,eAAe,KAAK,EAAY,MAAM,aAAa,UAAU,CAAC,YAAY,CAAC,MAAM,eAAe,KAAK,EAAY,OAAO,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,CAAC,SAAS,CAAC,MAAM,eAAe,KAAK,EAAY,OAAO,aAAa,EAAE,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,CAAC,MAAM,CAAC,MAAM,YAAY,KAAK,EAAY,OAAO,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,GAAG,CAAC,WAAW,CAAC,MAAM,cAAc,KAAK,EAAY,OAAO,aAAa,KAAK,IAAI,GAAG,IAAI,IAAI,CAAC,CAAC"}