{"version":3,"file":"AnimatedLPath.CVbPdFpr.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/qysyxp1LZVysYKGJsmfV/1J65KLMr22PdGsQk4Rja/AnimatedLPath.js"],"sourcesContent":["// Animated L-shaped path with editable width, height, and radius\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{useMemo}from\"react\";/**\n * Animated L-shaped Path\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function AnimatedLPath(props){const{pathWidth,pathHeight,pathRadius,strokeColor,strokeWidth,flipHorizontal,flipVertical,reverseAnimation,animationSpeed,style}=props;const isStatic=useIsStaticRenderer();// Calculate the L path with radius\nconst d=useMemo(()=>{// Start at top left\nconst x0=0;const y0=0;const x1=0;const y1=pathHeight-pathRadius;const x2=0;const y2=pathHeight;const x3=pathRadius;const y3=pathHeight;const x4=pathWidth;const y4=pathHeight;if(pathRadius>0){return`M${x0},${y0} V${y1} Q${x2},${y2} ${x3},${y3} H${x4}`;}else{return`M${x0},${y0} V${y2} H${x4}`;}},[pathWidth,pathHeight,pathRadius]);// Dash animation\nconst dashArray=40// 40px wide dash\n;const dashGap=1e4// Large gap to ensure only one dash\n;const dashOffset=0;return /*#__PURE__*/_jsxs(\"svg\",{width:pathWidth,height:pathHeight,viewBox:`0 0 ${pathWidth} ${pathHeight}`,style:{display:\"block\",width:\"100%\",height:\"100%\",transform:`${flipHorizontal?\"scaleX(-1) \":\"\"}${flipVertical?\"scaleY(-1)\":\"\"}`.trim()||undefined,// Add 2px padding on all sides\npadding:2,boxSizing:\"border-box\",...style},children:[/*#__PURE__*/_jsx(\"path\",{d:d,stroke:strokeColor,strokeOpacity:.15,strokeWidth:strokeWidth,fill:\"none\"}),/*#__PURE__*/_jsx(\"path\",{d:d,stroke:strokeColor,strokeWidth:strokeWidth,fill:\"none\",strokeDasharray:`${dashArray} ${dashGap}`,strokeDashoffset:dashOffset,style:isStatic?{}:{animation:`dash ${animationSpeed}s linear infinite${reverseAnimation?\" reverse\":\"\"}`}}),!isStatic&&/*#__PURE__*/_jsx(\"style\",{children:`\n          @keyframes dash {\n            to {\n              stroke-dashoffset: -${(pathWidth+pathHeight+(pathRadius>0?Math.PI*pathRadius/2:0))*1.5};\n            }\n          }\n        `})]});}addPropertyControls(AnimatedLPath,{pathWidth:{type:ControlType.Number,title:\"Width\",defaultValue:355,min:50,max:1e3,step:1,unit:\"px\"},pathHeight:{type:ControlType.Number,title:\"Height\",defaultValue:125,min:30,max:1e3,step:1,unit:\"px\"},pathRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:30,min:0,max:200,step:1,unit:\"px\"},strokeColor:{type:ControlType.Color,title:\"Stroke Color\",defaultValue:\"#FFFFFF\"},strokeWidth:{type:ControlType.Number,title:\"Stroke Width\",defaultValue:2,min:1,max:10,step:1,unit:\"px\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},flipHorizontal:{type:ControlType.Boolean,title:\"Flip Horizontal\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},flipVertical:{type:ControlType.Boolean,title:\"Flip Vertical\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},reverseAnimation:{type:ControlType.Boolean,title:\"Reverse Animation\",defaultValue:false,enabledTitle:\"Reverse\",disabledTitle:\"Normal\"},animationSpeed:{type:ControlType.Number,title:\"Animation Speed\",defaultValue:2,min:.2,max:10,step:.1,unit:\"s\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AnimatedLPath\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AnimatedLPath.map"],"mappings":"yLAMG,SAAwB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