{"version":3,"file":"Logo.sBt4QJ-n.mjs","names":["viewBox"],"sources":["https:/framerusercontent.com/modules/ilsKgfTL6KxqDuoHhDNZ/3ZmP0quMHhhx9Ud0dese/Logo.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerIntrinsicWidth auto\n * @framerIntrinsicHeight auto\n */export default function LogoComponent(props){const{customSvgCode,overrideColors,customColor,customPadding,customStrokeWidth,lineCap,lineJoin,title,description}=props;const extractViewBox=svgCode=>{const viewBoxMatch=svgCode.match(/viewBox=\"([^\"]+)\"/);return viewBoxMatch?viewBoxMatch[1]:\"0 0 24 24\";};const processSVGContent=originalSvgCode=>{let modifiedSvgCode=originalSvgCode;const viewBox=extractViewBox(originalSvgCode);// Only modify colors if overrideColors is true\nif(overrideColors){// Handle circle fill\nconst circleFillRegex=/<circle[^>]*fill=\"([^\"]*)\"/;const circleMatch=modifiedSvgCode.match(circleFillRegex);if(circleMatch){const updatedCircle=circleMatch[0].replace(circleMatch[1],customColor);modifiedSvgCode=modifiedSvgCode.replace(circleFillRegex,updatedCircle);}else if(modifiedSvgCode.includes(\"<circle\")){modifiedSvgCode=modifiedSvgCode.replace(/<circle/g,`<circle fill=\"${customColor}\"`);}// Handle path stroke and fill\nif(modifiedSvgCode.includes('stroke=\"')){// Modify path with stroke\nmodifiedSvgCode=modifiedSvgCode.replace(/<path/g,`<path stroke=\"${customColor}\" stroke-linecap=\"${lineCap}\" stroke-width=\"${customStrokeWidth}\" stroke-linejoin=\"${lineJoin}\"`);}else{// Modify path without stroke\nmodifiedSvgCode=modifiedSvgCode.replace(/<path/g,`<path fill=\"${customColor}\"`);}}else if(modifiedSvgCode.includes('stroke=\"')){// If not overriding colors but stroke exists, still apply stroke properties\nmodifiedSvgCode=modifiedSvgCode.replace(/<path[^>]*stroke=\"([^\"]*)\"/g,`<path stroke=\"$1\" stroke-linecap=\"${lineCap}\" stroke-width=\"${customStrokeWidth}\" stroke-linejoin=\"${lineJoin}\"`);}// Ensure overflow is visible\nif(!modifiedSvgCode.includes('overflow=\"')){modifiedSvgCode=modifiedSvgCode.replace(/<svg/,`<svg overflow=\"visible\"`);}else{modifiedSvgCode=modifiedSvgCode.replace(/overflow=\"[^\"]*\"/,'overflow=\"visible\"');}return{processedCode:modifiedSvgCode,viewBox};};const containerStyle={padding:`${customPadding}px`,width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"};const accessibilityProps={role:\"img\",...title&&{\"aria-label\":title},...description&&{\"aria-description\":description}};const{processedCode,viewBox}=processSVGContent(customSvgCode);return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:/*#__PURE__*/_jsx(\"svg\",{width:\"100%\",height:\"100%\",viewBox:viewBox,preserveAspectRatio:\"xMinYMid meet\",...accessibilityProps,dangerouslySetInnerHTML:{__html:processedCode}})});}LogoComponent.defaultProps={customSvgCode:`<svg width=\"800\" height=\"800\" viewBox=\"0 0 800 800\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M225 508H400V674.668L225 508Z\" fill=\"#0055FF\"/>\n<path d=\"M400 341.664H225V508.332H575L400 341.664Z\" fill=\"#00AAFF\"/>\n<path d=\"M225 175L400 341.668H575V175H225Z\" fill=\"#88DDFF\"/>\n</svg>\n\n`,overrideColors:true,customColor:\"#000000\",customPadding:0,customStrokeWidth:2,lineCap:\"butt\",lineJoin:\"miter\",title:\"\",description:\"\"};addPropertyControls(LogoComponent,{customSvgCode:{type:ControlType.String,title:\"SVG Code\",displayTextArea:true,description:\"Paste your SVG code here. Made by [Tanguy Caruel](https://x.com/tanguycaruel).\"},overrideColors:{type:ControlType.Boolean,title:\"Override Colors\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\"},customColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\",hidden:props=>!props.overrideColors},customPadding:{type:ControlType.Number,title:\"Padding\",defaultValue:0,min:0,step:1,displayStepper:true},customStrokeWidth:{type:ControlType.Number,title:\"Stroke Width\",defaultValue:2,min:0,step:.1,displayStepper:true,hidden:props=>!props.customSvgCode.includes('stroke=\"')},lineCap:{type:ControlType.Enum,title:\"Line Cap\",options:[\"butt\",\"round\",\"square\"],optionTitles:[\"Butt\",\"Round\",\"Square\"],defaultValue:\"butt\",hidden:props=>!props.customSvgCode.includes('stroke=\"')},lineJoin:{type:ControlType.Enum,title:\"Line Join\",options:[\"round\",\"miter\",\"bevel\"],optionTitles:[\"Round\",\"Miter\",\"Bevel\"],defaultValue:\"miter\",hidden:props=>!props.customSvgCode.includes('stroke=\"'),description:\"SVG Customizer by [Tanguy Caruel](https://x.com/tanguycaruel)\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"\",placeholder:\"Icon name...\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\",placeholder:\"Icon purpose...\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LogoComponent\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"auto\",\"framerIntrinsicWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Logo.map"],"mappings":"iOAGG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,gBAAc,iBAAe,cAAY,gBAAc,oBAAkB,UAAQ,WAAS,QAAM,cAAY,CAAC,EAAY,EAAe,GAAS,CAAC,IAAM,EAAa,EAAQ,MAAM,oBAAoB,CAAC,OAAO,EAAa,EAAa,GAAG,WAAa,EAAO,EAAkB,GAAiB,CAAC,IAAI,EAAgB,EAAsBA,EAAQ,EAAe,EAAgB,CAC3a,GAAG,EAAe,CAClB,IAAM,EAAgB,6BAAmC,EAAY,EAAgB,MAAM,EAAgB,CAAC,GAAG,EAAY,CAAC,IAAM,EAAc,EAAY,GAAG,QAAQ,EAAY,GAAG,EAAY,CAAC,E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