{"version":3,"file":"shared-lib.DIE8taRj.mjs","names":["SrcType"],"sources":["https:/framer.com/m/framer/icon-nullstate.js@0.7.0","https:/framerusercontent.com/modules/IQXqjAGXltPKLdfjcdtf/AdYVRfUvx2HLE5qL3Xfw/Logo.js","https:/framerusercontent.com/modules/21cXtluIGZaIwZkfpGgp/2hdgwcIh04OMkQE08w8J/siteMetadata.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport * as React from \"react\";\nexport const containerStyles = {\n    width: \"100%\",\n    height: \"100%\",\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\"\n};\nconst nullIconStyle = {\n    minWidth: \"10px\",\n    minHeight: \"10px\",\n    maxWidth: \"20px\",\n    maxHeight: \"20px\",\n    width: \"60%\",\n    height: \"60%\"\n};\nconst emptyStateStyle = {\n    ...containerStyles,\n    borderRadius: 6,\n    background: \"rgba(149, 149, 149, 0.1)\",\n    border: \"1px dashed rgba(149, 149, 149, 0.15)\",\n    color: \"#a5a5a5\",\n    flexDirection: \"column\"\n};\nexport const NullState = /*#__PURE__*/ React.forwardRef((_, ref)=>{\n    return(/*#__PURE__*/ _jsx(\"div\", {\n        style: emptyStateStyle,\n        ref: ref\n    }));\n}) /*\n\n<svg\n                xmlns=\"http://www.w3.org/2000/svg\"\n                viewBox=\"0 0 30 30\"\n                style={nullIconStyle}\n            >\n                <path\n                    d=\"M 12.857 0 C 19.958 0 25.714 5.756 25.714 12.857 C 25.714 19.958 19.958 25.714 12.857 25.714 C 5.756 25.714 0 19.958 0 12.857 C 0 5.756 5.756 0 12.857 0 Z\"\n                    fill=\"#FFFFFF\"\n                ></path>\n                <path\n                    d=\"M 20.357 20.357 L 27.857 27.857\"\n                    fill=\"transparent\"\n                    strokeWidth=\"4.28\"\n                    stroke=\"#FFFFFF\"\n                    strokeLinecap=\"round\"\n                ></path>\n                <g transform=\"translate(9.643 6.429)\">\n                    <path\n                        d=\"M 3.214 12.857 L 3.214 12.857\"\n                        fill=\"transparent\"\n                        strokeWidth=\"3.75\"\n                        stroke=\"currentColor\"\n                        strokeLinecap=\"round\"\n                    ></path>\n                    <path\n                        d=\"M 0 3.214 C 0 1.004 1.843 0 3.214 0 C 4.586 0 6.429 0.603 6.429 3.214 C 6.429 5.826 3.214 5.913 3.214 7.232 C 3.214 8.552 3.214 8.571 3.214 8.571\"\n                        fill=\"transparent\"\n                        strokeWidth=\"3.22\"\n                        stroke=\"currentColor\"\n                        strokeLinecap=\"round\"\n                        strokeLinejoin=\"round\"\n                    ></path>\n                </g>\n            </svg>\n            */ ;\n\nexport const __FramerMetadata__ = {\"exports\":{\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"NullState\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./nullstate.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{NullState}from\"https://framer.com/m/framer/icon-nullstate.js@0.7.0\";var SrcType;(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,radius,isSearch,srcType,srcUrl,srcFile,style}=props;const logoURL=useMemo(()=>{if(isSearch)return getLogoUrl(company);if(srcType===SrcType.Upload)return srcFile;if(srcType===SrcType.Url)return srcUrl;return null;},[company,isSearch,srcType,srcUrl,srcFile]);const isOnCanvas=RenderTarget.current()===RenderTarget.canvas;const emptyState=isOnCanvas?/*#__PURE__*/ _jsx(NullState,{}):null;return logoURL?/*#__PURE__*/ _jsx(\"img\",{src:logoURL,style:{...baseStyles,...style,borderRadius:radius},alt:\"Logo\"}):emptyState;};Logo.defaultProps={company:\"Framer\",radius:100,width:64,height:64,isSearch:true};const baseStyles={position:\"absolute\",left:0,right:0,top:0,bottom:0,width:\"100%\",height:\"100%\"};addPropertyControls(Logo,{isSearch:{type:ControlType.Boolean,title:\"Type\",disabledTitle:\"Custom\",enabledTitle:\"Search\"},srcType:{type:ControlType.Enum,displaySegmentedControl:true,title:\"Source\",options:[SrcType.Url,SrcType.Upload],hidden:({isSearch})=>isSearch},srcUrl:{type:ControlType.String,title:\" \",placeholder:\"../example.jpg\",hidden:({srcType,isSearch})=>srcType===SrcType.Upload||isSearch},srcFile:{type:ControlType.File,title:\" \",allowedFileTypes:[\"jpg\",\"png\",\"jpeg\",\"tiff\",\"gif\"],hidden:({srcType,isSearch})=>srcType===SrcType.Url||isSearch},company:{type:ControlType.String,title:\"Company\",placeholder:\"Github, Apple...\",hidden:({isSearch})=>!isSearch},radius:{type:ControlType.Number,min:0,max:100,title:\"Radius\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Logo\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"64\",\"framerIntrinsicHeight\":\"64\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Logo.map","// Generated by Framer (575e68f)\nexport default function metadata(params,activeLocale){return{description:\"Soul Bowls\",favicon:\"https://framerusercontent.com/assets/rIwx95GMGxYYtiVmAhWuDrljo.png\",robots:\"max-image-preview:large\",title:\"Soul Bowls - 100% Plant Based Eatery\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\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