{"version":3,"file":"SvgIcon.CUorMBgl.mjs","names":[],"sources":["https:/framerusercontent.com/modules/jHSxwqwntlRmay0PQYRa/soQU7r0rLgo39LMswSkH/SvgIcon.js"],"sourcesContent":["// SVG Icon component with pasteable SVG code and auto-adjusting frame height\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * SVG Icon\n *\n * Paste SVG code of a customer logo. The component auto-adjusts its height to fit the SVG content.\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function CustomerLogoSvgIcon(props){const{svgCode,style}=props;// Memoize the SVG element\nconst svgElement=useMemo(()=>{if(!svgCode)return null;try{// Remove any <script> tags for safety\nconst safeCode=svgCode.replace(/<script[\\s\\S]*?>[\\s\\S]*?<\\/script>/gi,\"\");return /*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-block\",width:\"100%\",height:\"100%\",...style},dangerouslySetInnerHTML:{__html:safeCode}});}catch{return /*#__PURE__*/_jsx(\"span\",{children:\"Invalid SVG\"});}},[svgCode,style]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"max-content\",height:\"max-content\",display:\"inline-block\",position:\"relative\",...style},children:svgElement});}addPropertyControls(CustomerLogoSvgIcon,{svgCode:{type:ControlType.String,title:\"SVG Code\",defaultValue:'<svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"24\" cy=\"24\" r=\"20\" fill=\"#0099FF\"/><text x=\"24\" y=\"30\" text-anchor=\"middle\" font-size=\"16\" fill=\"#fff\">Logo</text></svg>',displayTextArea:true,placeholder:\"Paste SVG code here...\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CustomerLogoSvgIcon\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SvgIcon.map"],"mappings":"kQAQG,SAAwB,EAAoB,EAAM,CAAC,GAAK,CAAC,UAAQ,QAAM,CAAC,EACrE,EAAW,EAAQ,IAAI,CAAC,IAAI,EAAQ,OAAO,KAAK,GAAG,CACzD,IAAM,EAAS,EAAQ,QAAQ,uCAAuC,GAAG,CAAC,MAAoB,GAAK,OAAO,CAAC,MAAM,CAAC,QAAQ,eAAe,MAAM,OAAO,OAAO,OAAO,GAAG,CAAM,EAAC,wBAAwB,CAAC,OAAO,CAAS,CAAC,EAAC,AAAE,MAAK,CAAC,MAAoB,GAAK,OAAO,CAAC,SAAS,aAAc,EAAC,AAAE,CAAC,EAAC,CAAC,EAAQ,CAAM,EAAC,CAAC,MAAoB,GAAK,MAAM,CAAC,MAAM,CAAC,MAAM,cAAc,OAAO,cAAc,QAAQ,eAAe,SAAS,WAAW,GAAG,CAAM,EAAC,SAAS,CAAW,EAAC,AAAE,cAAA,AAT3c,GAA2C,IAA2B,IAAoD,CASiV,EAAoB,EAAoB,CAAC,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,WAAW,aAAa,sOAAsO,iBAAgB,EAAK,YAAY,wBAAyB,CAAC,EAAC"}