{"version":3,"file":"StructuredData.BILltRvE.mjs","names":["__esmMin","p","c","init_jsx_runtime","RenderTarget","init_framer_DDfsYcI0","addPropertyControls","StructuredData","props","publisher","logo","data","schema","description","imageUrl","datePublished","author","sameAs","onCanvas","init_StructuredData","v","ControlType"],"sources":["https:/framerusercontent.com/modules/nZFIguwdyeHZxBKFtsOg/k837i6O2DuX8O1NCPdk6/StructuredData.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";const imageUrl=v=>(typeof v===\"string\"?v:v?.src)||undefined;/**\n * Structured data (JSON-LD)\n *\n * Adds schema.org data for search engines: Organization (home page) or BlogPosting\n * (blog post template, bind the fields to the CMS). Renders nothing visible on the\n * live site; the canvas shows a small label.\n *\n * @framerIntrinsicWidth 120\n * @framerIntrinsicHeight 24\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function StructuredData(props){const{schema=\"organization\",name=\"Datalily\",url=\"https://www.datalily.com\",logo=\"\",sameAs=\"\",headline=\"\",description=\"\",datePublished=\"\",author=\"\"}=props;const publisher={\"@type\":\"Organization\",name,url,...logo?{logo:{\"@type\":\"ImageObject\",url:logo}}:{}};const data=schema===\"blogPosting\"?{\"@context\":\"https://schema.org\",\"@type\":\"BlogPosting\",headline,description:description||undefined,image:imageUrl(props.image),datePublished:datePublished||undefined,author:author?{\"@type\":\"Person\",name:author}:publisher,publisher}:{\"@context\":\"https://schema.org\",\"@type\":\"Organization\",name,url,logo:logo||undefined,sameAs:sameAs.split(/\\s*[\\n,]\\s*/).filter(Boolean)};const onCanvas=RenderTarget.current()===RenderTarget.canvas;return /*#__PURE__*/_jsxs(\"div\",{style:{...props.style,position:\"relative\",width:onCanvas?\"max-content\":0,height:onCanvas?\"auto\":0,overflow:onCanvas?\"visible\":\"hidden\"},\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:JSON.stringify(data)}}),onCanvas&&/*#__PURE__*/_jsxs(\"div\",{style:{font:\"500 11px/1.4 system-ui, sans-serif\",color:\"#4d4dfa\",border:\"1px dashed #4d4dfa\",borderRadius:4,padding:\"2px 6px\",whiteSpace:\"nowrap\"},children:[\"JSON-LD: \",schema===\"blogPosting\"?\"BlogPosting\":\"Organization\"]})]});}addPropertyControls(StructuredData,{schema:{type:ControlType.Enum,title:\"Schema\",options:[\"organization\",\"blogPosting\"],optionTitles:[\"Organization\",\"Blog Posting\"],defaultValue:\"organization\"},name:{type:ControlType.String,title:\"Name\",defaultValue:\"Datalily\"},url:{type:ControlType.String,title:\"URL\",defaultValue:\"https://www.datalily.com\"},logo:{type:ControlType.String,title:\"Logo URL\",defaultValue:\"\"},sameAs:{type:ControlType.String,title:\"Profiles\",defaultValue:\"\",displayTextArea:true,hidden:p=>p.schema!==\"organization\"},headline:{type:ControlType.String,title:\"Headline\",defaultValue:\"\",hidden:p=>p.schema!==\"blogPosting\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\",hidden:p=>p.schema!==\"blogPosting\"},image:{type:ControlType.ResponsiveImage,title:\"Image\",hidden:p=>p.schema!==\"blogPosting\"},datePublished:{type:ControlType.Date,title:\"Published\",hidden:p=>p.schema!==\"blogPosting\"},author:{type:ControlType.String,title:\"Author\",defaultValue:\"\",hidden:p=>p.schema!==\"blogPosting\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"24\",\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"120\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"A,sKAYG,SAAwBO,EAAe,EAAM,CAAC,GAAK,CAAC,SAAO,eAAe,OAAK,WAAW,M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