{"version":3,"file":"ArticleSchema.Coyfxpsy.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/CtoDXnsrkVtOvwRQws3b/ZbDBSAfl9os4aFNjd5uP/ArticleSchema.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Article Schema Markup (JSON-LD)\n * Dynamically reads the page title for CMS template pages.\n * Add this to article/detail pages — it renders invisibly.\n */export default function ArticleSchema(props){const{siteName,siteUrl,sectionName,sectionUrl,authorName}=props;const[pageTitle,setPageTitle]=useState(\"\");const[pageUrl,setPageUrl]=useState(\"\");const[metaDesc,setMetaDesc]=useState(\"\");useEffect(()=>{setPageTitle(document.title||\"\");setPageUrl(window.location.href||\"\");const desc=document.querySelector('meta[name=\"description\"]');if(desc)setMetaDesc(desc.getAttribute(\"content\")||\"\");},[]);if(!pageTitle)return null;const schema={\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Article\",headline:pageTitle,description:metaDesc||pageTitle,url:pageUrl,author:{\"@type\":\"Organization\",name:authorName,url:siteUrl},publisher:{\"@type\":\"Organization\",name:siteName,url:siteUrl},isPartOf:{\"@type\":\"WebSite\",name:siteName,url:siteUrl}},{\"@type\":\"BreadcrumbList\",itemListElement:[{\"@type\":\"ListItem\",position:1,name:\"Home\",item:siteUrl},{\"@type\":\"ListItem\",position:2,name:sectionName,item:sectionUrl},{\"@type\":\"ListItem\",position:3,name:pageTitle,item:pageUrl}]}]};return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:JSON.stringify(schema)}});}ArticleSchema.defaultProps={siteName:\"ourteam\",siteUrl:\"https://ourteam.ai\",sectionName:\"Guides\",sectionUrl:\"https://ourteam.ai/guides\",authorName:\"ourteam\"};addPropertyControls(ArticleSchema,{siteName:{type:ControlType.String,title:\"Site Name\",defaultValue:\"ourteam\"},siteUrl:{type:ControlType.String,title:\"Site URL\",defaultValue:\"https://ourteam.ai\"},sectionName:{type:ControlType.String,title:\"Section Name\",defaultValue:\"Guides\"},sectionUrl:{type:ControlType.String,title:\"Section URL\",defaultValue:\"https://ourteam.ai/guides\"},authorName:{type:ControlType.String,title:\"Author Name\",defaultValue:\"ourteam\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ArticleSchema\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ArticleSchema.map"],"mappings":"+LAIG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,WAAS,UAAQ,cAAY,aAAW,cAAY,EAAW,CAAC,EAAU,GAAcA,EAAS,GAAG,CAAM,CAAC,EAAQ,GAAYA,EAAS,GAAG,CAAM,CAAC,EAAS,GAAaA,EAAS,GAAG,CAAgN,GAA/M,MAAc,CAAC,EAAa,SAAS,OAAO,GAAG,CAAC,EAAW,EAAO,SAAS,MAAM,GAAG,CAAC,IAAM,EAAK,SAAS,cAAc,2BAA2B,CAAI,GAAK,EAAY,EAAK,aAAa,UAAU,EAAE,GAAG,EAAG,EAAE,CAAC,CAAI,CAAC,EAAU,OAAO,KAAK,IAAM,EAAO,CAAC,WAAW,qBAAqB,SAAS,CAAC,CAAC,QAAQ,UAAU,SAAS,EAAU,YAAY,GAAU,EAAU,IAAI,EAAQ,OAAO,CAAC,QAAQ,eAAe,KAAK,EAAW,IAAI,EAAQ,CAAC,UAAU,CAAC,QAAQ,eAAe,KAAK,EAAS,IAAI,EAAQ,CAAC,SAAS,CAAC,QAAQ,UAAU,KAAK,EAAS,IAAI,EAAQ,CAAC,CAAC,CAAC,QAAQ,iBAAiB,gBAAgB,CAAC,CAAC,QAAQ,WAAW,SAAS,EAAE,KAAK,OAAO,KAAK,EAAQ,CAAC,CAAC,QAAQ,WAAW,SAAS,EAAE,KAAK,EAAY,KAAK,EAAW,CAAC,CAAC,QAAQ,WAAW,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