{"version":3,"file":"SVG.iyiO2f2F.mjs","names":[],"sources":["https:/framerusercontent.com/modules/iQizRGR1tPWjB0yoX2UD/rlLpPUb61noLhIAQXWlv/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:\"xMinYMid 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\":{\"framerIntrinsicWidth\":\"auto\",\"framerIntrinsicHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SVG.map"],"mappings":"6JAGG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,gBAAc,iBAAe,cAAY,gBAAc,oBAAkB,UAAQ,WAAS,QAAM,eAAa,EAAY,EAAe,GAAS,CAAC,IAAM,EAAa,EAAQ,MAAM,mBAAmB,EAAE,OAAO,EAAa,EAAa,GAAG,WAAY,EAAQ,EAAkB,GAAiB,CAAC,IAAI,EAAgB,EAAsB,EAAQ,EAAe,CAAe,EACza,GAAG,EAAe,CAClB,IAAM,EAAgB,6BAAmC,EAAY,EAAgB,MAAM,CAAe,EAAE,GAAG,EAAY,CAAC,IAAM,EAAc,EAAY,EAAE,CAAC,QAAQ,EAAY,GAAG,CAAW,EAAE,EAAgB,EAAgB,QA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