{"version":3,"file":"SVG.BfcSDcB7.mjs","names":["_jsx","__esmMin","init_jsx_runtime","c","ControlType","init_framer_BWzg2IRg","addPropertyControls","SVGComponent","props","customSvgCode","overrideColors","customColor","customPadding","customStrokeWidth","lineCap","lineJoin","title","description","extractViewBox","svgCode","viewBoxMatch","processSVGContent","originalSvgCode","modifiedSvgCode","viewBox","circleFillRegex","circleMatch","updatedCircle","containerStyle","accessibilityProps","processedCode","init_SVG"],"sources":["https:/framerusercontent.com/modules/Ww2Iwg4yIkZ0T4et3rmV/whSe2lTsWrPksCfz2edW/SVG.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerIntrinsicWidth auto\n * @framerIntrinsicHeight auto\n */export default function SVGComponent(props){const{customSvgCode,overrideColors,customColor,customPadding,customStrokeWidth,lineCap,lineJoin,title,description}=props;const extractViewBox=svgCode=>{const viewBoxMatch=svgCode.match(/viewBox=\"([^\"]+)\"/);return viewBoxMatch?viewBoxMatch[1]:\"0 0 24 24\";};const processSVGContent=originalSvgCode=>{let modifiedSvgCode=originalSvgCode;const viewBox=extractViewBox(originalSvgCode);// Only modify colors if overrideColors is true\nif(overrideColors){// Handle circle fill\nconst circleFillRegex=/<circle[^>]*fill=\"([^\"]*)\"/;const circleMatch=modifiedSvgCode.match(circleFillRegex);if(circleMatch){const updatedCircle=circleMatch[0].replace(circleMatch[1],customColor);modifiedSvgCode=modifiedSvgCode.replace(circleFillRegex,updatedCircle);}else if(modifiedSvgCode.includes(\"<circle\")){modifiedSvgCode=modifiedSvgCode.replace(/<circle/g,`<circle fill=\"${customColor}\"`);}// Handle path stroke and fill\nif(modifiedSvgCode.includes('stroke=\"')){// Modify path with stroke\nmodifiedSvgCode=modifiedSvgCode.replace(/<path/g,`<path stroke=\"${customColor}\" stroke-linecap=\"${lineCap}\" stroke-width=\"${customStrokeWidth}\" stroke-linejoin=\"${lineJoin}\"`);}else{// Modify path without stroke\nmodifiedSvgCode=modifiedSvgCode.replace(/<path/g,`<path fill=\"${customColor}\"`);}}else if(modifiedSvgCode.includes('stroke=\"')){// If not overriding colors but stroke exists, still apply stroke properties\nmodifiedSvgCode=modifiedSvgCode.replace(/<path[^>]*stroke=\"([^\"]*)\"/g,`<path stroke=\"$1\" stroke-linecap=\"${lineCap}\" stroke-width=\"${customStrokeWidth}\" stroke-linejoin=\"${lineJoin}\"`);}// Ensure overflow is visible\nif(!modifiedSvgCode.includes('overflow=\"')){modifiedSvgCode=modifiedSvgCode.replace(/<svg/,`<svg overflow=\"visible\"`);}else{modifiedSvgCode=modifiedSvgCode.replace(/overflow=\"[^\"]*\"/,'overflow=\"visible\"');}return{processedCode:modifiedSvgCode,viewBox};};const containerStyle={padding:`${customPadding}px`,width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"};const accessibilityProps={role:\"img\",...title&&{\"aria-label\":title},...description&&{\"aria-description\":description}};const{processedCode,viewBox}=processSVGContent(customSvgCode);return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:/*#__PURE__*/_jsx(\"svg\",{width:\"100%\",height:\"100%\",viewBox:viewBox,preserveAspectRatio:\"xMidYMid meet\",...accessibilityProps,dangerouslySetInnerHTML:{__html:processedCode}})});}SVGComponent.defaultProps={customSvgCode:`<svg width=\"800\" height=\"800\" viewBox=\"0 0 800 800\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M225 508H400V674.668L225 508Z\" fill=\"#0055FF\"/>\n<path d=\"M400 341.664H225V508.332H575L400 341.664Z\" fill=\"#00AAFF\"/>\n<path d=\"M225 175L400 341.668H575V175H225Z\" fill=\"#88DDFF\"/>\n</svg>\n\n`,overrideColors:true,customColor:\"#000000\",customPadding:0,customStrokeWidth:2,lineCap:\"butt\",lineJoin:\"miter\",title:\"\",description:\"\"};addPropertyControls(SVGComponent,{customSvgCode:{type:ControlType.String,title:\"SVG Code\",displayTextArea:true,description:\"Paste your SVG code here. Made by [Tanguy Caruel](https://x.com/tanguycaruel).\"},overrideColors:{type:ControlType.Boolean,title:\"Override Colors\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\"},customColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\",hidden:props=>!props.overrideColors},customPadding:{type:ControlType.Number,title:\"Padding\",defaultValue:0,min:0,step:1,displayStepper:true},customStrokeWidth:{type:ControlType.Number,title:\"Stroke Width\",defaultValue:2,min:0,step:.1,displayStepper:true,hidden:props=>!props.customSvgCode.includes('stroke=\"')},lineCap:{type:ControlType.Enum,title:\"Line Cap\",options:[\"butt\",\"round\",\"square\"],optionTitles:[\"Butt\",\"Round\",\"Square\"],defaultValue:\"butt\",hidden:props=>!props.customSvgCode.includes('stroke=\"')},lineJoin:{type:ControlType.Enum,title:\"Line Join\",options:[\"round\",\"miter\",\"bevel\"],optionTitles:[\"Round\",\"Miter\",\"Bevel\"],defaultValue:\"miter\",hidden:props=>!props.customSvgCode.includes('stroke=\"'),description:\"SVG Customizer by [Tanguy Caruel](https://x.com/tanguycaruel)\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"\",placeholder:\"Icon name...\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\",placeholder:\"Icon purpose...\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SVGComponent\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"auto\",\"framerIntrinsicWidth\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SVG.map"],"mappings":"A,6JAGG,SAAwBO,EAAaC,EAAM,CAAC,GAAK,CAACC,gBAAcC,iBAAeC,cAAYC,gBAAcC,oBAAkBC,UAAQC,WAASC,QAAMC,eAAaT,EAAYU,EAAeC,GAAS,CAAC,IAAMC,EAAaD,EAAQ,MAAM,mBAAmB,EAAE,OAAOC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