{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/eYSXGFGMELVTxohAmYeY/AZ4sU6lLDIKxNeXQMrO1/SVG.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{Frame,addPropertyControls,ControlType}from\"framer\";/**\n * @framerDisableUnlink\n */export function SVGComponent(props){const{svgCode,fillColor,strokeColor,strokeWidth,rotation,svgFile,padding,disableCustomization,optimizationSettings,avoidPageSpeedImpact}=props;const[svgContent,setSvgContent]=React.useState(svgCode);const optimizeSVG=svg=>{let optimizedSvg=svg;if(optimizationSettings.removeMetadata){optimizedSvg=optimizedSvg.replace(/<metadata>.*?<\\/metadata>/g,\"\");}if(optimizationSettings.removeComments){optimizedSvg=optimizedSvg.replace(/<!--.*?-->/g,\"\");}if(optimizationSettings.minifyNumericValues){optimizedSvg=optimizedSvg.replace(/(\\d+\\.\\d{2})\\d+/g,\"$1\");}if(optimizationSettings.removeWhitespace){optimizedSvg=optimizedSvg.replace(/\\s{2,}/g,\" \").replace(/\\n/g,\"\");}// Placeholder for path simplification logic\n// if (optimizationSettings.simplifyPaths) {\n//     optimizedSvg = simplifyPaths(optimizedSvg);\n// }\nreturn optimizedSvg;};React.useEffect(()=>{let parser=new DOMParser;let svgDoc=parser.parseFromString(svgCode,\"image/svg+xml\");let svgElement=svgDoc.querySelector(\"svg\");if(svgElement){svgElement.setAttribute(\"width\",\"100%\");svgElement.setAttribute(\"height\",\"100%\");svgElement.setAttribute(\"preserveAspectRatio\",\"xMidYMid meet\");if(!disableCustomization){let paths=svgElement.querySelectorAll(\"path\");paths.forEach(path=>{if(fillColor)path.setAttribute(\"fill\",fillColor);if(strokeColor)path.setAttribute(\"stroke\",strokeColor);if(strokeWidth)path.setAttribute(\"stroke-width\",strokeWidth);});}let svgString=new XMLSerializer().serializeToString(svgElement);setSvgContent(optimizeSVG(svgString));}},[svgCode,fillColor,strokeColor,strokeWidth,disableCustomization,optimizationSettings]);React.useEffect(()=>{if(svgFile){fetch(svgFile).then(response=>response.text()).then(text=>{let parser=new DOMParser;let svgDoc=parser.parseFromString(text,\"image/svg+xml\");let svgElement=svgDoc.querySelector(\"svg\");if(svgElement){svgElement.setAttribute(\"width\",\"100%\");svgElement.setAttribute(\"height\",\"100%\");svgElement.setAttribute(\"preserveAspectRatio\",\"xMidYMid meet\");if(!disableCustomization){let paths=svgElement.querySelectorAll(\"path\");paths.forEach(path=>{if(fillColor)path.setAttribute(\"fill\",fillColor);if(strokeColor)path.setAttribute(\"stroke\",strokeColor);if(strokeWidth)path.setAttribute(\"stroke-width\",strokeWidth);});}let svgString=new XMLSerializer().serializeToString(svgElement);setSvgContent(optimizeSVG(svgString));}}).catch(error=>console.error(\"Error loading SVG file:\",error));}},[svgFile,fillColor,strokeColor,strokeWidth,disableCustomization,optimizationSettings]);if(avoidPageSpeedImpact){return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",padding:`${padding}px`,transform:`rotate(${rotation}deg)`},dangerouslySetInnerHTML:{__html:svgContent}});}return /*#__PURE__*/_jsx(Frame,{size:\"100%\",background:\"transparent\",style:{display:\"flex\",justifyContent:\"center\",alignItems:\"center\",transform:`rotate(${rotation}deg)`,overflow:\"visible\"},children:/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",padding:`${padding}px`},dangerouslySetInnerHTML:{__html:svgContent}})});}// Definindo as propriedades que ser\u00E3o manipuladas no Framer\naddPropertyControls(SVGComponent,{svgCode:{type:ControlType.String,title:\"SVG Code\",defaultValue:\"<svg></svg>\"},fillColor:{type:ControlType.Color,title:\"Fill Color\",defaultValue:\"#000000\",hidden:props=>props.disableCustomization},strokeColor:{type:ControlType.Color,title:\"Stroke Color\",defaultValue:\"#000000\",hidden:props=>props.disableCustomization},strokeWidth:{type:ControlType.Number,title:\"Stroke Width\",defaultValue:1,hidden:props=>props.disableCustomization},rotation:{type:ControlType.Number,title:\"Rotation\",defaultValue:0,min:0,max:360},svgFile:{type:ControlType.File,title:\"Upload SVG File\",allowedFileTypes:[\"svg\"],hidden:props=>props.disableCustomization},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:0,min:0},disableCustomization:{type:ControlType.Boolean,title:\"Disable Customization\",defaultValue:false,description:\"Disable customization options when uploading non-icon SVGs.\"},optimizationSettings:{type:ControlType.Object,title:\"Optimization Settings\",controls:{removeMetadata:{type:ControlType.Boolean,title:\"Remove Metadata\",defaultValue:true},removeComments:{type:ControlType.Boolean,title:\"Remove Comments\",defaultValue:true},minifyNumericValues:{type:ControlType.Boolean,title:\"Minify Numeric Values\",defaultValue:true},removeWhitespace:{type:ControlType.Boolean,title:\"Remove Whitespace\",defaultValue:true},simplifyPaths:{type:ControlType.Boolean,title:\"Simplify Paths\",defaultValue:false}}},avoidPageSpeedImpact:{type:ControlType.Boolean,title:\"Avoid PageSpeed Impact\",defaultValue:false,description:\"Render SVG inline to avoid PageSpeed Insights impact.\"},codeBy:{type:ControlType.String,title:\" \",defaultValue:\"About this override:\",readOnly:true,displaySegmentedControl:false,description:\"This component was created by @omatusaelhorch.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"SVGComponent\":{\"type\":\"reactComponent\",\"name\":\"SVGComponent\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SVG.map"],
  "mappings": "oLAAAA,IAEU,SAASC,EAAaC,EAAM,CAAC,GAAK,CAAC,QAAAC,EAAQ,UAAAC,EAAU,YAAAC,EAAY,YAAAC,EAAY,SAAAC,EAAS,QAAAC,EAAQ,QAAAC,EAAQ,qBAAAC,EAAqB,qBAAAC,EAAqB,qBAAAC,CAAoB,EAAEV,EAAW,CAACW,EAAWC,CAAa,EAAQC,EAASZ,CAAO,EAAQa,EAAYC,GAAK,CAAC,IAAIC,EAAaD,EAAI,OAAGN,EAAqB,iBAAgBO,EAAaA,EAAa,QAAQ,6BAA6B,E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AKA,EAAY,KAAK,MAAM,kBAAkB,iBAAiB,CAAC,KAAK,EAAE,OAAO3B,GAAOA,EAAM,oBAAoB,EAAE,QAAQ,CAAC,KAAK2B,EAAY,OAAO,MAAM,UAAU,aAAa,EAAE,IAAI,CAAC,EAAE,qBAAqB,CAAC,KAAKA,EAAY,QAAQ,MAAM,wBAAwB,aAAa,GAAM,YAAY,6DAA6D,EAAE,qBAAqB,CAAC,KAAKA,EAAY,OAAO,MAAM,wBAAwB,SAAS,CAAC,eAAe,CAAC,KAAKA,EAAY,QAAQ,MAAM,kBAAkB,aAAa,EAAI,EAAE,eAAe,CAAC,KAAKA,EAAY,QAAQ,MAAM,kBAAkB,aAAa,EAAI,EAAE,oBAAoB,CAAC,KAAKA,EAAY,QAAQ,MAAM,wBAAwB,aAAa,EAAI,EAAE,iBAAiB,CAAC,KAAKA,EAAY,QAAQ,MAAM,oBAAoB,aAAa,EAAI,EAAE,cAAc,CAAC,KAAKA,EAAY,QAAQ,MAAM,iBAAiB,aAAa,EAAK,CAAC,CAAC,EAAE,qBAAqB,CAAC,KAAKA,EAAY,QAAQ,MAAM,yBAAyB,aAAa,GAAM,YAAY,uDAAuD,EAAE,OAAO,CAAC,KAAKA,EAAY,OAAO,MAAM,IAAI,aAAa,uBAAuB,SAAS,GAAK,wBAAwB,GAAM,YAAY,gDAAgD,CAAC,CAAC",
  "names": ["init_ssg_sandbox_shims", "SVGComponent", "props", "svgCode", "fillColor", "strokeColor", "strokeWidth", "rotation", "svgFile", "padding", "disableCustomization", "optimizationSettings", "avoidPageSpeedImpact", "svgContent", "setSvgContent", "ye", "optimizeSVG", "svg", "optimizedSvg", "ue", "svgElement", "path", "svgString", "response", "text", "error", "p", "Frame", "addPropertyControls", "ControlType"]
}
