{"version":3,"file":"SvgComponent.D3cx0DWN.mjs","names":["React.useState","React.useRef"],"sources":["https:/framerusercontent.com/modules/HQYHSJLqagldUc6u6yFx/29dJhH1MfGCFQORK6zkx/SvgComponent.js"],"sourcesContent":["// SVG component with customizable color fill props\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer\";// Default decorative circle path - hand-drawn style ellipse\n// This path is designed to work with viewBox=\"0 0 100 100\" and wraps around content\nconst DEFAULT_CIRCLE_PATH=\"M45.1097 6.54644C67.125 1.54705 132.625 6.54668 127.625 36.547C122.625 66.5472 1.5 75.0469 1.5 38.5619C1.5 19.609 49.625 -8.45309 108.125 5.04602\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function SvgComponent(props){const{svgCode,link,openInNewTab=false,useFillColor,fillColor=\"#000000\",hoverFillColor=\"#666666\",useStrokeColor,strokeColor=\"#000000\",hoverStrokeColor=\"#666666\",strokeWidth=2,showCirclePath=false,circlePath=DEFAULT_CIRCLE_PATH,circleViewBox=\"-10 -10 550 140\",circleStroke=\"#87D4E9\",circleStrokeWidth=4,circleSpeed=2,circleDelay=0,circleTrigger=\"hover\",circleInViewAmount=.3,circleReplay=false,useImage=false,image}=props;const[isHovered,setIsHovered]=React.useState(false);const containerRef=React.useRef(null);// Determine which colors to use based on hover state\nconst currentFillColor=isHovered?hoverFillColor:fillColor;const currentStrokeColor=isHovered?hoverStrokeColor:strokeColor;let processedSvg=svgCode||\"\";// Replace fill colors - match fill=\"...\" or fill='...'\nif(useFillColor&&currentFillColor){processedSvg=processedSvg.replace(/fill=\"(?!none)[^\"]+\"/g,`fill=\"${currentFillColor}\"`);processedSvg=processedSvg.replace(/fill='(?!none)[^']+'/g,`fill='${currentFillColor}'`);// Also replace inline style fill colors (e.g., style=\"fill:white;...\")\nprocessedSvg=processedSvg.replace(/style=\"([^\"]*?)fill:\\s*[^;\"}]+/g,`style=\"$1fill:${currentFillColor}`);processedSvg=processedSvg.replace(/style='([^']*?)fill:\\s*[^;'}]+/g,`style='$1fill:${currentFillColor}`);}// Replace stroke colors\nif(useStrokeColor){if(currentStrokeColor){processedSvg=processedSvg.replace(/stroke=\"(?!none)[^\"]+\"/g,`stroke=\"${currentStrokeColor}\"`);processedSvg=processedSvg.replace(/stroke='(?!none)[^']+'/g,`stroke='${currentStrokeColor}'`);// Also replace inline style stroke colors\nprocessedSvg=processedSvg.replace(/style=\"([^\"]*?)stroke:\\s*[^;\"}]+/g,`style=\"$1stroke:${currentStrokeColor}`);processedSvg=processedSvg.replace(/style='([^']*?)stroke:\\s*[^;'}]+/g,`style='$1stroke:${currentStrokeColor}`);}processedSvg=processedSvg.replace(/stroke-width=\"[^\"]+\"/g,`stroke-width=\"${strokeWidth}\"`);processedSvg=processedSvg.replace(/stroke-width='[^']+'/g,`stroke-width='${strokeWidth}'`);}// Force the SVG to scale to container by replacing width/height with 100%\n// and ensuring it has proper scaling attributes\nprocessedSvg=processedSvg.replace(/<svg([^>]*)\\s+width=\"[^\"]*\"/g,'<svg$1 width=\"100%\"');processedSvg=processedSvg.replace(/<svg([^>]*)\\s+height=\"[^\"]*\"/g,'<svg$1 height=\"100%\"');// Also handle single quotes\nprocessedSvg=processedSvg.replace(/<svg([^>]*)\\s+width='[^']*'/g,\"<svg$1 width='100%'\");processedSvg=processedSvg.replace(/<svg([^>]*)\\s+height='[^']*'/g,\"<svg$1 height='100%'\");// Circle path animation variants\nconst circleVariants={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{pathLength:{duration:Math.max(.05,circleSpeed),delay:Math.max(0,circleDelay),ease:\"easeInOut\"},opacity:{duration:.01,delay:Math.max(0,circleDelay)}}}};// Determine animation props based on trigger\nconst getCircleAnimationProps=()=>{if(circleTrigger===\"load\"){return{initial:\"hidden\",animate:\"visible\"};}if(circleTrigger===\"hover\"){const duration=Math.max(.05,circleSpeed);// Only animate pathLength - opacity handled separately for clean reversing\nreturn{initial:{pathLength:0},animate:{pathLength:isHovered?1:0},transition:{pathLength:{type:\"tween\",duration,ease:\"easeInOut\"}},// Opacity tied directly to hover state with no animation\nstyle:{opacity:1}};}if(circleTrigger===\"in-view\"){return{initial:\"hidden\",whileInView:\"visible\",viewport:{amount:circleInViewAmount,once:!circleReplay}};}return{initial:{opacity:0}};};const containerStyle={width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"};const content=/*#__PURE__*/_jsxs(motion.div,{onHoverStart:()=>setIsHovered(true),onHoverEnd:()=>setIsHovered(false),style:{position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:link?\"pointer\":\"default\"},children:[showCirclePath&&/*#__PURE__*/_jsx(\"svg\",{viewBox:circleViewBox,preserveAspectRatio:\"none\",style:{position:\"absolute\",top:\"-10%\",left:\"-10%\",width:\"120%\",height:\"120%\",pointerEvents:\"none\",zIndex:5,overflow:\"visible\"},children:/*#__PURE__*/_jsx(motion.path,{d:circlePath,variants:circleVariants,...getCircleAnimationProps(),stroke:circleStroke,strokeWidth:circleStrokeWidth,strokeLinecap:\"butt\",fill:\"none\",vectorEffect:\"non-scaling-stroke\"})}),/*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{...containerStyle,...useImage&&image?.src&&{backgroundImage:`url(${image.src})`,backgroundSize:\"contain\",backgroundPosition:\"center\",backgroundRepeat:\"no-repeat\"}},...!useImage&&{dangerouslySetInnerHTML:{__html:processedSvg}}})]});// Wrap in link if provided\nif(link){return /*#__PURE__*/_jsx(\"a\",{href:link,target:openInNewTab?\"_blank\":\"_self\",rel:openInNewTab?\"noopener noreferrer\":undefined,style:{display:\"block\",width:\"100%\",height:\"100%\",textDecoration:\"none\"},children:content});}return content;}addPropertyControls(SvgComponent,{svgCode:{type:ControlType.String,title:\"SVG Code\",displayTextArea:true,defaultValue:`<svg width=\"100%\" height=\"100%\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n    <path d=\"M12 2L2 7L12 12L22 7L12 2Z\" fill=\"#000000\" stroke=\"#000000\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n    <path d=\"M2 17L12 22L22 17\" fill=\"none\" stroke=\"#000000\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n    <path d=\"M2 12L12 17L22 12\" fill=\"none\" stroke=\"#000000\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>`},link:{type:ControlType.Link,title:\"Link\"},useImage:{title:\"Use Image\",type:ControlType.Boolean,defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},image:{title:\"Image\",type:ControlType.ResponsiveImage,hidden:props=>!props.useImage},openInNewTab:{type:ControlType.Boolean,title:\"New Tab\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\",hidden:props=>!props.link},useFillColor:{type:ControlType.Boolean,title:\"Override Fill\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},fillColor:{type:ControlType.Color,title:\"Fill Color\",defaultValue:\"#000000\",hidden:props=>!props.useFillColor},hoverFillColor:{type:ControlType.Color,title:\"Hover Fill\",defaultValue:\"#666666\",hidden:props=>!props.useFillColor},useStrokeColor:{type:ControlType.Boolean,title:\"Override Stroke\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},strokeColor:{type:ControlType.Color,title:\"Stroke Color\",defaultValue:\"#000000\",hidden:props=>!props.useStrokeColor},hoverStrokeColor:{type:ControlType.Color,title:\"Hover Stroke\",defaultValue:\"#666666\",hidden:props=>!props.useStrokeColor},strokeWidth:{type:ControlType.Number,title:\"Stroke Width\",defaultValue:2,min:0,max:10,step:.5,hidden:props=>!props.useStrokeColor},// Circle path controls\nshowCirclePath:{type:ControlType.Boolean,title:\"Circle Path\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},circlePath:{type:ControlType.String,title:\"Path D\",displayTextArea:true,defaultValue:\"M45.1097 6.54644C67.125 1.54705 132.625 6.54668 127.625 36.547C122.625 66.5472 1.5 75.0469 1.5 38.5619C1.5 19.609 49.625 -8.45309 108.125 5.04602\",hidden:props=>!props.showCirclePath},circleViewBox:{type:ControlType.String,title:\"Path ViewBox\",defaultValue:\"-10 -10 550 140\",hidden:props=>!props.showCirclePath},circleStroke:{type:ControlType.Color,title:\"Circle Color\",defaultValue:\"#87D4E9\",hidden:props=>!props.showCirclePath},circleStrokeWidth:{type:ControlType.Number,title:\"Circle Thickness\",defaultValue:2,min:1,max:20,step:.5,hidden:props=>!props.showCirclePath},circleTrigger:{type:ControlType.Enum,title:\"Circle Trigger\",options:[\"hover\",\"load\",\"in-view\"],optionTitles:[\"On Hover\",\"On Load\",\"In View\"],defaultValue:\"hover\",hidden:props=>!props.showCirclePath},circleSpeed:{type:ControlType.Number,title:\"Circle Speed (s)\",defaultValue:.5,min:.05,max:10,step:.05,hidden:props=>!props.showCirclePath},circleDelay:{type:ControlType.Number,title:\"Circle Delay (s)\",defaultValue:0,min:0,max:5,step:.1,hidden:props=>!props.showCirclePath||props.circleTrigger===\"hover\"},circleInViewAmount:{type:ControlType.Number,title:\"In View Amount\",defaultValue:.3,min:.05,max:1,step:.05,hidden:props=>!props.showCirclePath||props.circleTrigger!==\"in-view\"},circleReplay:{type:ControlType.Boolean,title:\"Replay on Re-enter\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\",hidden:props=>!props.showCirclePath||props.circleTrigger!==\"in-view\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SvgComponent\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SvgComponent.map"],"mappings":"kOAMG,SAAwB,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