{"version":3,"file":"SVG.rY5XL0o7.mjs","names":[],"sources":["https:/framerusercontent.com/modules/pvtwZmePxHtOv8qViSYM/B7qdPZ4aF6H6UhHMYPqq/SVG.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function SVG(props){const{svgString,fillColors=[]}=props;const defaultFillColors=[\"#00ff00\"];const fillColorsArray=fillColors&&fillColors.length>0?fillColors:defaultFillColors;let fillIndex=0;const coloredSVG=svgString.replace(/<path([^>]*?)fill=\"(.*?)\"/g,(match,beforeAttrs)=>{const fill=fillColorsArray.length===1?fillColorsArray[0]:fillColorsArray[fillIndex++]||fillColorsArray[fillColorsArray.length-1];return`<path${beforeAttrs}fill=\"${fill}\"`;});return /*#__PURE__*/_jsx(\"div\",{dangerouslySetInnerHTML:{__html:coloredSVG},style:{lineHeight:0,pointerEvents:\"none\"}});}addPropertyControls(SVG,{svgString:{type:ControlType.String,title:\"SVG\",defaultValue:`<svg height=\"210\" width=\"400\" xmlns=\"http://www.w3.org/2000/svg\">\n  <path d=\"M150 5 L75 200 L225 200 Z\" fill=\"#ff00ff\" />\n  <path d=\"M10 10 H 90 V 90 H 10 Z\" fill=\"#00ffff\" />\n</svg>`,displayTextArea:true},fillColors:{type:ControlType.Array,control:{type:ControlType.Color},defaultValue:[\"#ffff00\",\"#000000\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SVG\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SVG.map"],"mappings":"4JAGG,SAAwB,EAAI,EAAM,CAAC,GAAK,CAAC,YAAU,aAAW,EAAE,EAAE,EAAgD,EAAgB,GAAY,EAAW,OAAO,EAAE,EAAlE,CAAC,UAAU,CAAwF,EAAU,EAAsQ,OAAoB,EAAK,MAAM,CAAC,wBAAwB,CAAC,OAA5S,EAAU,QAAQ,8BAA8B,EAAM,IAAsJ,QAAQ,EAAY,QAAhJ,EAAgB,SAAS,EAAE,EAAgB,GAAG,EAAgB,MAAc,EAAgB,EAAgB,OAAO,GAA0C,GAAK,CAA4E,CAAC,MAAM,CAAC,WAAW,EAAE,cAAc,OAAO,CAAC,CAAC,kBAHliB,IAAoD,CAGgf,EAAoB,EAAI,CAAC,UAAU,CAAC,KAAK,EAAY,OAAO,MAAM,MAAM,aAAa;;;QAG5pB,gBAAgB,GAAK,CAAC,WAAW,CAAC,KAAK,EAAY,MAAM,QAAQ,CAAC,KAAK,EAAY,MAAM,CAAC,aAAa,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC"}