{"version":3,"file":"Logo.CbedCCsi.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx","useMemo"],"sources":["https:/framerusercontent.com/modules/9dpptwzgGRWa8tZpQvmA/vhaljPHC8aTcG0ftcOa7/FormHandler.js","https:/framerusercontent.com/modules/tZ6vTolmPgVeyHq3muii/Fh01c3cBXT9nhq8MOdg8/Logo.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export function FormHandler(){return{onKeyDown:event=>{if(event.key===\"Enter\"){const input=event.currentTarget;const form=input.closest(\"form\");const submitButton=form.querySelector(\"button[type='submit']\");if(submitButton){submitButton.click();}}}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withFormHandler(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...FormHandler(props)});};}withFormHandler.displayName=\"FormHandler\";\nexport const __FramerMetadata__ = {\"exports\":{\"FormHandler\":{\"type\":\"override\",\"name\":\"FormHandler\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFormHandler\":{\"type\":\"reactHoc\",\"name\":\"withFormHandler\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormHandler.map","// 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":"wLAA2C,SAAgB,GAAa,CAAC,MAAM,CAAC,UAAU,GAAO,CAAC,GAAG,EAAM,MAAM,QAAQ,CAAkE,IAAM,EAA3D,EAAM,cAA+B,QAAQ,OAAO,CAAyB,cAAc,wBAAwB,CAAI,GAAc,EAAa,OAAO,GAAK,CAAqJ,SAAgB,EAAgB,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAY,EAAM,CAAC,CAAC,mBAAvjB,IAA2T,IAAmF,CAA6K,EAAgB,YAAY,iBCM/nB,SAAwB,EAAK,EAAM,CAAC,GAAK,CAAC,UAAQ,QA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