{"version":3,"file":"Logo.DmCyEIsP.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/tZ6vTolmPgVeyHq3muii/Fh01c3cBXT9nhq8MOdg8/Logo.js"],"sourcesContent":["// Logo component with SVG input and color selection\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * Logo component with SVG input and color control\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function Logo(props){const{svgCode,color,width=100,height=100,style}=props;// Replace all fill colors in SVG string with the selected color\nconst processedSVG=useMemo(()=>{// Remove existing fill colors except for 'none'\nlet svg=svgCode||\"\";// Only replace fill if actual color, not 'none'\nsvg=svg.replace(/fill=(\"|')((?!none)[^\"']*)(\"|')/gi,`fill=\"${color}\"`);// If there's no fill property, try to inject one in each path\nsvg=svg.replace(/<path ((?!fill=)[^>])+>/gi,match=>{if(/fill=/.test(match))return match;return match.replace(\">\",` fill=\"${color}\">`);});return svg;},[svgCode,color]);return /*#__PURE__*/_jsx(\"div\",{style:{width:width,height:height,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",...style},\"aria-label\":\"Logo\",role:\"img\",dangerouslySetInnerHTML:{__html:processedSVG}});}addPropertyControls(Logo,{svgCode:{type:ControlType.String,title:\"SVG Code\",placeholder:\"Paste your SVG code here\",defaultValue:'<svg viewBox=\"0 0 24 24\" width=\"100\" height=\"100\"><circle cx=\"12\" cy=\"12\" r=\"10\"/></svg>',displayTextArea:true},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"},width:{type:ControlType.Number,title:\"Width\",defaultValue:100,min:10,max:512,unit:\"px\"},height:{type:ControlType.Number,title:\"Height\",defaultValue:100,min:10,max:512,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Logo\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Logo.map"],"mappings":"qKAMG,SAAwB,EAAK,EAAM,CAAC,GAAK,CAAC,UAAQ,QAAM,QAAM,IAAI,SAAO,IAAI,SAAO,EACjF,EAAaA,MAAY,CAC/B,IAAI,EAAI,GAAS,GAEwH,MADzI,GAAI,EAAI,QAAQ,oCAAoC,SAAS,EAAM,GAAG,CACtE,EAAI,EAAI,QAAQ,4BAA4B,GAAW,QAAQ,KAAK,EAAM,CAAQ,EAAa,EAAM,QAAQ,IAAI,UAAU,EAAM,IAAI,CAAG,CAAQ,GAAM,CAAC,EAAQ,EAAM,CAAC,CAAC,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAO,QAAa,SAAO,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,GAAG,EAAM,CAAC,aAAa,OAAO,KAAK,MAAM,wBAAwB,CAAC,OAAO,EAAa,CAAC,CAAC,kBAThV,IAAoD,IAA2B,CASmQ,EAAoB,EAAK,CAAC,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,WAAW,YAAY,2BAA2B,aAAa,2FAA2F,gBAAgB,GAAK,CAAC,MAAM,CAAC,KAAK,EAAY,MAAM,MAAM,QAAQ,aAAa,UAAU,CAAC,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,aAAa,IAAI,IAAI,GAAG,IAAI,IAAI,KAAK,KAAK,CAAC,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,SAAS,aAAa,IAAI,IAAI,GAAG,IAAI,IAAI,KAAK,KAAK,CAAC,CAAC"}