{"version":3,"file":"Handdrawn_Circle.f38TiN1o.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/ChAfC7oVOA7P717ndLk6/KjAA6BtxpiGTEhHmBB5K/Handdrawn_Circle.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion,useInView,useAnimation}from\"framer-motion\";import{useEffect,useRef}from\"react\";export default function HandDrawnCircle({color,strokeWidth,duration,delay,width,height}){const ref=useRef(null);const isInView=useInView(ref,{once:true,margin:\"-10% 0px\"});const controls=useAnimation();useEffect(()=>{if(isInView){controls.start({pathLength:1,transition:{duration,delay,ease:[.4,0,.2,1]}});}},[isInView,duration,delay]);// Open oval — starts top-left, sweeps clockwise, ends with a gap on the left\n// Intentionally asymmetric and slightly wobbly\nconst path=`\n        M 52,48\n        C 80,14 150,2 210,4\n        C 290,6 372,22 378,60\n        C 386,100 320,122 210,122\n        C 108,122 32,100 26,68\n        C 20,46 36,36 52,28\n    `;// Second lighter pass — slightly different trajectory for depth\nconst path2=`\n        M 58,44\n        C 88,16 152,6 212,8\n        C 294,10 368,28 374,62\n        C 380,96 318,118 212,118\n        C 112,118 38,98 30,66\n        C 24,50 38,40 56,32\n    `;return /*#__PURE__*/_jsxs(\"svg\",{ref:ref,viewBox:\"0 0 400 130\",preserveAspectRatio:\"none\",width:width,height:height,style:{position:\"absolute\",top:0,left:0,pointerEvents:\"none\",overflow:\"visible\"},children:[/*#__PURE__*/_jsx(motion.path,{d:path2,fill:\"none\",stroke:color,strokeWidth:strokeWidth*.55,strokeLinecap:\"round\",strokeOpacity:.35,initial:{pathLength:0},animate:controls}),/*#__PURE__*/_jsx(motion.path,{d:path,fill:\"none\",stroke:color,strokeWidth:strokeWidth,strokeLinecap:\"round\",strokeOpacity:.8,initial:{pathLength:0},animate:controls})]});}HandDrawnCircle.defaultProps={color:\"#A6BE47\",strokeWidth:3,duration:1.2,delay:.2,width:560,height:170};addPropertyControls(HandDrawnCircle,{color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#A6BE47\"},strokeWidth:{type:ControlType.Number,title:\"Stroke width\",defaultValue:3,min:1,max:8,step:.5},duration:{type:ControlType.Number,title:\"Draw duration (sec)\",defaultValue:1.2,min:.5,max:4,step:.1},delay:{type:ControlType.Number,title:\"Delay (sec)\",defaultValue:.2,min:0,max:2,step:.1},width:{type:ControlType.Number,title:\"Width\",defaultValue:560,min:200,max:900,step:10},height:{type:ControlType.Number,title:\"Height\",defaultValue:170,min:80,max:300,step:10}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HandDrawnCircle\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Handdrawn_Circle.map"],"mappings":"uPAA0M,SAAwB,EAAgB,CAAC,QAAM,cAAY,WAAS,QAAM,QAAM,UAAQ,CAAC,IAAM,EAAIA,EAAO,IAAI,EAAQ,EAAS,EAAU,EAAI,CAAC,KAAK,GAAK,OAAO,UAAU,CAAC,EAAQ,EAAS,EAAa,EAiB5Y,OAjB8Y,MAAc,CAAI,GAAU,EAAS,MAAM,CAAC,WAAW,EAAE,WAAW,CAAC,WAAS,QAAM,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAG,EAAE,CAAC,EAAS,EAAS,CAAK,CAAC,EAiB9f,EAAM,MAAM,CAAK,MAAI,QAAQ,cAAc,oBAAoB,OAAa,QAAa,SAAO,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,cAAc,OAAO,SAAS,SAAS,EAAE,SAAS,CAAc,EAAK,EAAO,KAAK,CAAC,EAAE;;;;;;;MAAM,KAAK,OAAO,OAAO,EAAM,YAAY,EAAY,IAAI,cAAc,QAAQ,cAAc,IAAI,QAAQ,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAQ,CAAC,EAAe,EAA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