{"version":3,"file":"Logo_3.D2Aw4WG2.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/gPRaYEPYNPpOTv2XpcP6/kf683qKZHcOt4bnn1DOj/Logo_3.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";var SrcType;// User request: fix Logo_3 so uploaded SVG/PNG wordmarks render with safe overflow and object-fit contain, avoiding right-edge clipping while preserving existing controls/behavior.\n(function(SrcType){SrcType[\"Upload\"]=\"Upload\";SrcType[\"Url\"]=\"URL\";})(SrcType||(SrcType={}));const baseUrl=\"https://logo.clearbit.com/\";const getLogoUrl=company=>{if(!company)return null;return company.includes(\".\")?`${baseUrl}${company}?size=500`:`${baseUrl}${company}.com?size=500`;};/**\n * @framerIntrinsicWidth 64\n * @framerIntrinsicHeight 64\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function Logo(props){const{company=\"Framer\",radius=100,isSearch=true,srcType=\"URL\",srcUrl=\"\",srcFile=\"\",style}=props;const logoURL=useMemo(()=>{if(isSearch)return getLogoUrl(company);if(srcType===\"Upload\")return srcFile;if(srcType===\"URL\")return srcUrl;return null;},[company,isSearch,srcType,srcUrl,srcFile]);const isOnCanvas=RenderTarget.current()===RenderTarget.canvas;const emptyState=isOnCanvas?/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:\"#999\",fontSize:11,border:\"1px dashed #DDD\",borderRadius:8,boxSizing:\"border-box\",overflow:\"hidden\"},children:\"Logo\"}):null;return logoURL?/*#__PURE__*/_jsx(\"div\",{style:{...containerStyles,...style},children:/*#__PURE__*/_jsx(\"img\",{src:logoURL,style:{...baseStyles,borderRadius:radius},alt:\"Logo\"})}):emptyState;}const baseStyles={position:\"absolute\",left:0,right:0,top:0,bottom:0,width:\"100%\",height:\"100%\",objectFit:\"contain\",objectPosition:\"center\",boxSizing:\"border-box\",padding:\"1px 3px 1px 1px\"};const containerStyles={position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"visible\"};addPropertyControls(Logo,{isSearch:{type:ControlType.Boolean,title:\"Type\",disabledTitle:\"Custom\",enabledTitle:\"Search\",defaultValue:true},srcType:{type:ControlType.Enum,displaySegmentedControl:true,title:\"Source\",options:[\"URL\",\"Upload\"],defaultValue:\"URL\",hidden:({isSearch})=>isSearch},srcUrl:{type:ControlType.String,title:\" \",placeholder:\"../example.jpg\",defaultValue:\"\",hidden:({srcType,isSearch})=>srcType===\"Upload\"||isSearch},srcFile:{type:ControlType.File,title:\" \",allowedFileTypes:[\"jpg\",\"png\",\"jpeg\",\"tiff\",\"gif\",\"svg\",\"webp\"],hidden:({srcType,isSearch})=>srcType===\"URL\"||isSearch},company:{type:ControlType.String,title:\"Company\",placeholder:\"Github, Apple...\",defaultValue:\"Framer\",hidden:({isSearch})=>!isSearch},radius:{type:ControlType.Number,min:0,max:100,title:\"Radius\",defaultValue:100}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Logo\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicHeight\":\"64\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"64\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Logo_3.map"],"mappings":"iLAOG,SAAwB,EAAK,EAAM,CAAC,GAAK,CAAC,UAAQ,SAAS,SAAO,IAAI,WAAS,GAAK,UAAQ,MAAM,SAAO,GAAG,UAAQ,GAAG,SAAO,EAAY,EAAQA,MAAgB,EAAgB,EAAW,CAAO,EAAK,IAAU,SAAgB,EAAW,IAAU,MAAa,EAAc,KAAO,CAAC,EAAQ,EAAS,EAAQ,EAAO,CAAO,CAAC,EAAsE,EAAnD,EAAa,QAAQ,IAAI,EAAa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