{"version":3,"file":"StructuredData.SuzqKIv7.mjs","names":[],"sources":["https:/framerusercontent.com/modules/eQ6nqRrS9LONPfjJCF0u/4DMMJSqmK9SsXpSKQYI9/StructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const SITE=\"https://www.terraai.com\";const LOGO=\"https://framerusercontent.com/images/JHPnVKGP2puYjdFQhtmZMsgdS78.png\";const ORG={\"@type\":\"Organization\",\"@id\":`${SITE}/#organization`,name:\"Terra AI\",url:SITE};/**\n * Structured Data\n *\n * Renders schema.org JSON-LD only. Nothing visible. Server-rendered so search\n * engines and AI crawlers read it without running JavaScript.\n *\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function StructuredData(props){const{schema=\"json\",json=\"\",name=\"\",role=\"\",description=\"\",image,slug=\"\",basePath=\"/team\",sameAs=\"\",advisor=false,datePublished=\"\"}=props;const url=slug?`${SITE}${basePath}/${slug}`:undefined;const imageUrl=image?.src?image.src.split(\"?\")[0]:undefined;let data=null;if(schema===\"json\"){try{data=json?JSON.parse(json):null;}catch{data=null;}}else if(schema===\"person\"&&name){data={\"@context\":\"https://schema.org\",\"@type\":\"Person\",name,jobTitle:role||undefined,description:description||undefined,image:imageUrl,url,sameAs:sameAs?[sameAs]:undefined,[advisor?\"affiliation\":\"worksFor\"]:ORG};}else if(schema===\"article\"&&name){data={\"@context\":\"https://schema.org\",\"@type\":\"NewsArticle\",headline:name,description:description||undefined,image:imageUrl?[imageUrl]:undefined,datePublished:datePublished||undefined,mainEntityOfPage:url,author:ORG,publisher:{...ORG,logo:{\"@type\":\"ImageObject\",url:LOGO}}};}// Escape \"<\" so content can never close the script tag\nconst html=data?JSON.stringify(data).replace(/</g,\"\\\\u003c\"):\"\";return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,position:\"relative\",width:1,height:1,overflow:\"hidden\"},\"aria-hidden\":\"true\",children:html?/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:html}}):null});}addPropertyControls(StructuredData,{schema:{type:ControlType.Enum,title:\"Schema\",options:[\"json\",\"person\",\"article\"],optionTitles:[\"Custom JSON\",\"Person\",\"News Article\"],defaultValue:\"json\"},json:{type:ControlType.String,title:\"JSON\",displayTextArea:true,defaultValue:\"\",hidden:p=>p.schema!==\"json\"},name:{type:ControlType.String,title:\"Name / Headline\",defaultValue:\"\",hidden:p=>p.schema===\"json\"},role:{type:ControlType.String,title:\"Job Title\",defaultValue:\"\",hidden:p=>p.schema!==\"person\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\",hidden:p=>p.schema===\"json\"},image:{type:ControlType.ResponsiveImage,title:\"Image\",hidden:p=>p.schema===\"json\"},slug:{type:ControlType.String,title:\"Slug\",defaultValue:\"\",hidden:p=>p.schema===\"json\"},basePath:{type:ControlType.String,title:\"Base Path\",defaultValue:\"/team\",hidden:p=>p.schema===\"json\"},sameAs:{type:ControlType.Link,title:\"Profile Link\",hidden:p=>p.schema!==\"person\"},advisor:{type:ControlType.Boolean,title:\"Advisor\",defaultValue:false,hidden:p=>p.schema!==\"person\"},datePublished:{type:ControlType.String,title:\"Date (ISO)\",defaultValue:\"\",hidden:p=>p.schema!==\"article\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicWidth\":\"1\",\"framerIntrinsicHeight\":\"1\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"4JAWG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,SAAO,OAAO,OAAK,GAAG,OAAK,GAAG,OAAK,GAAG,cAAY,GAAG,QAAM,OA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