{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/ggJ6J9Pq8YcQRrEkd7ad/dWDQ9zZfFi1e75nTVlm1/SVG_Component.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export function BasicSVG(props){const{svgCode,fill}=props;const responsiveSvgCode=ensureSvgDimensions(svgCode);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",overflow:\"hidden\",...fill?{color:fill}:{}},dangerouslySetInnerHTML:{__html:responsiveSvgCode}});}function ensureSvgDimensions(svgString){// If the string is empty or doesn't contain an svg tag, return it as is\nif(!svgString||!svgString.includes(\"<svg\")){return svgString;}// Regular expression to match the svg tag and its attributes\nconst svgTagRegex=/<svg([^>]*)>/;const match=svgString.match(svgTagRegex);if(!match){return svgString;}const[fullMatch,attributes=\"\"]=match;// Create an attribute string parser\nconst getAttributeValue=attr=>{const regex=new RegExp(`${attr}=[\"']([^\"']*)[\"']`);const match=attributes.match(regex);return match?match[1]:null;};// Check if width and height already exist\nconst existingWidth=getAttributeValue(\"width\");const existingHeight=getAttributeValue(\"height\");// Prepare the new attributes\nlet newAttributes=attributes;// Replace or add width attribute\nif(existingWidth!==null){newAttributes=newAttributes.replace(/width=[\"'][^\"']*[\"']/,'width=\"100%\"');}else{newAttributes+=' width=\"100%\"';}// Replace or add height attribute\nif(existingHeight!==null){newAttributes=newAttributes.replace(/height=[\"'][^\"']*[\"']/,'height=\"100%\"');}else{newAttributes+=' height=\"100%\"';}// Clean up any extra spaces\nnewAttributes=newAttributes.replace(/\\s+/g,\" \").trim();// Replace the original svg tag with the new one\nreturn svgString.replace(svgTagRegex,`<svg${newAttributes?\" \"+newAttributes:\"\"}>`);}BasicSVG.displayName=\"Basic SVG\";addPropertyControls(BasicSVG,{svgCode:{title:\"SVG Code\",type:ControlType.String,placeholder:\"Enter your SVG code here...\"},fill:{title:\"Fill\",type:ControlType.Color,optional:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"BasicSVG\":{\"type\":\"reactComponent\",\"name\":\"BasicSVG\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SVG_Component.map"],
  "mappings": "yFAAsG,SAASA,EAASC,EAAM,CAAC,GAAK,CAAC,QAAAC,EAAQ,KAAAC,CAAI,EAAEF,EAAYG,EAAkBC,EAAoBH,CAAO,EAAE,OAAoBI,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,SAAS,SAAS,GAAGH,EAAK,CAAC,MAAMA,CAAI,EAAE,CAAC,CAAC,EAAE,wBAAwB,CAAC,OAAOC,CAAiB,CAAC,CAAC,CAAE,CAAC,SAASC,EAAoBE,EAAU,CACnd,GAAG,CAACA,GAAW,CAACA,EAAU,SAAS,MAAM,EAAG,OAAOA,EACnD,IAAMC,EAAY,eAAqBC,EAAMF,EAAU,MAAMC,CAAW,EAAE,GAAG,CAACC,EAAO,OAAOF,EAAW,GAAK,CAACG,EAAUC,EAAW,EAAE,EAAEF,EAChIG,EAAkBC,GAAM,CAAC,IAAMC,EAAM,IAAI,OAAO,GAAGD,CAAI,mBAAmB,EAAQJ,EAAME,EAAW,MAAMG,CAAK,EAAE,OAAOL,EAAMA,EAAM,CAAC,EAAE,IAAK,EAC3IM,EAAcH,EAAkB,OAAO,EAAQI,EAAeJ,EAAkB,QAAQ,EAC1FK,EAAcN,EAClB,OAAGI,IAAgB,KAAME,EAAcA,EAAc,QAAQ,uBAAuB,cAAc,EAAQA,GAAe,gBACtHD,IAAiB,KAAMC,EAAcA,EAAc,QAAQ,wBAAwB,eAAe,EAAQA,GAAe,iBAC5HA,EAAcA,EAAc,QAAQ,OAAO,GAAG,EAAE,KAAK,EAC9CV,EAAU,QAAQC,EAAY,OAAOS,EAAc,IAAIA,EAAc,EAAE,GAAG,CAAE,CAACjB,EAAS,YAAY,YAAYkB,EAAoBlB,EAAS,CAAC,QAAQ,CAAC,MAAM,WAAW,KAAKmB,EAAY,OAAO,YAAY,6BAA6B,EAAE,KAAK,CAAC,MAAM,OAAO,KAAKA,EAAY,MAAM,SAAS,EAAI,CAAC,CAAC",
  "names": ["BasicSVG", "props", "svgCode", "fill", "responsiveSvgCode", "ensureSvgDimensions", "p", "svgString", "svgTagRegex", "match", "fullMatch", "attributes", "getAttributeValue", "attr", "regex", "existingWidth", "existingHeight", "newAttributes", "addPropertyControls", "ControlType"]
}
