{"version":3,"file":"SVG_Comp.-AWUqCki.mjs","names":["React"],"sources":["https:/framerusercontent.com/modules/IBHxTibPlXtc3LQgucTS/MhVd1W0lsffmJr6OC4Xi/SVG_Comp.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import React from\"react\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n *\n * @framerDisableUnlink\n *\n * @framerIntrinsicHeight 24\n * @framerIntrinsicWidth 24\n */function SVG(props){const{svgCode,strokeWidth,customColor,color,padding}=props;const containerRef=React.useRef(null);const injectAttributes=()=>{if(!containerRef.current)return;// Create a temporary div to hold the SVG code\nconst tempDiv=document.createElement(\"div\");tempDiv.innerHTML=svgCode;// Select path elements with the 'fill' attribute in the SVG code and set their fill color\nconst pathElements=tempDiv.querySelectorAll(\"path[fill]\");pathElements.forEach(element=>{if(customColor){element.setAttribute(\"fill\",color);}});// Select elements with the 'stroke' attribute in the SVG code and set their stroke color and width\nconst strokeElements=tempDiv.querySelectorAll(\"[stroke]\");strokeElements.forEach(element=>{if(customColor){element.setAttribute(\"stroke\",color);}if(strokeWidth!==undefined){element.setAttribute(\"stroke-width\",strokeWidth);}});// Set the width and height of the SVG element to 100%\nconst svgElement=tempDiv.querySelector(\"svg\");if(svgElement){svgElement.setAttribute(\"width\",\"100%\");svgElement.setAttribute(\"height\",\"100%\");}// Update the container with the modified SVG code\ncontainerRef.current.innerHTML=tempDiv.innerHTML;};// Manually call injectAttributes when the component is rendered or updated\nReact.useEffect(()=>{injectAttributes();},[svgCode,strokeWidth,customColor,color]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{overflow:\"visible\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",width:\"100%\",height:\"100%\",padding:padding}});}SVG.defaultProps={svgCode:`<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n    <path d=\"M18.9012 1.71359H22.5816L14.5416 10.428L24 22.2852H16.5936L10.794 15.0936L4.1568 22.2852H0.4728L9.0732 12.9648L0 1.71359H7.5936L12.8376 8.28719L18.9012 1.71359ZM17.61 20.1972H19.65L6.4848 3.69359H4.296L17.61 20.1972Z\" fill=\"#717171\"/>\n  </svg>`,strokeWidth:1,customColor:false,color:\"#000\",padding:0};addPropertyControls(SVG,{svgCode:{type:ControlType.String,title:\"SVG Code\",defaultValue:SVG.defaultProps.svgCode,placeholder:\"<svg>...</svg>\",displayTextArea:false},customColor:{type:ControlType.Boolean,title:\"Custom Color\",defaultValue:SVG.defaultProps.customColor},color:{type:ControlType.Color,title:\"Color\",defaultValue:SVG.defaultProps.color,hidden(props){return!props.customColor;}},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:SVG.defaultProps.padding,min:0,step:1,displayStepper:true},strokeWidth:{type:ControlType.Number,title:\"Stroke Width\",min:.5,step:.25,displayStepper:true,defaultValue:SVG.defaultProps.strokeWidth,hidden(props){// Hide the control if the SVG code does not contain the 'stroke' attribute\nreturn!props.svgCode.includes(\"stroke\");}}});export default SVG;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SVG\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"24\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"*\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"24\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SVG_Comp.map"],"mappings":"0KAQG,SAAS,EAAI,EAAM,CAAC,GAAK,CAAC,UAAQ,cAAY,cAAY,QAAM,WAAS,EAAY,EAAaA,EAAM,OAAO,IAAI,EAAQ,MAAqB,CAAC,GAAG,CAAC,EAAa,QAAQ,OAC7K,IAAM,EAAQ,SAAS,cAAc,KAAK,EAAE,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