{"version":3,"file":"BlogOverviewJsonLdInjector.Djrn4FyO.mjs","names":[],"sources":["https:/framerusercontent.com/modules/hO10MqS28D4V4t43tzf5/637vfCUI2No89G2RnToW/BlogOverviewJsonLdInjector.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function BlogOverviewJsonLdInjector(props){const{pageTitle,pageDescription,blogPosts,includeCollectionPageSchema}=props;const pageUrl=typeof window!==\"undefined\"?window.location.origin+\"/blog\":\"https://www.concord.app/blog\";const mainEntities=blogPosts&&blogPosts.length>0?blogPosts.map(post=>({\"@type\":\"BlogPosting\",headline:post.headline,url:post.url})):[];const schema={\"@context\":\"https://schema.org\",\"@type\":\"CollectionPage\",name:pageTitle||\"Concord Blog\",description:pageDescription||\"Explore the latest blog articles from Concord.\",url:pageUrl,inLanguage:\"en-US\",publisher:{\"@type\":\"Organization\",name:\"Concord\",url:\"https://www.concord.app\",logo:{\"@type\":\"ImageObject\",url:\"https://framerusercontent.com/images/mBGe9uKKmqUmV1J30ndztkLwo.svg\"}},mainEntity:mainEntities};React.useEffect(()=>{const scriptId=\"blog-collectionpage-jsonld\";const existing=document.getElementById(scriptId);if(existing)existing.remove();if(includeCollectionPageSchema){const script=document.createElement(\"script\");script.type=\"application/ld+json\";script.id=scriptId;script.textContent=JSON.stringify(schema,null,2);document.head.appendChild(script);}},[JSON.stringify(schema),includeCollectionPageSchema]);return /*#__PURE__*/_jsx(\"span\",{\"data-jsonld\":true,style:{display:\"block\",height:0,width:0,overflow:\"hidden\",visibility:\"hidden\"},children:\"Blog CollectionPage schema active\"});}addPropertyControls(BlogOverviewJsonLdInjector,{includeCollectionPageSchema:{type:ControlType.Boolean,title:\"Enable schema\",defaultValue:true},pageTitle:{type:ControlType.String,title:\"Page title\",defaultValue:\"Concord Blog\",hidden:props=>!props.includeCollectionPageSchema},pageDescription:{type:ControlType.String,title:\"Meta description\",defaultValue:\"Explore the latest blog articles from Concord.\",hidden:props=>!props.includeCollectionPageSchema},blogPosts:{type:ControlType.Array,title:\"Articles list\",propertyControl:{type:ControlType.Object,controls:{headline:{type:ControlType.String,title:\"Title\"},url:{type:ControlType.String,title:\"URL\"}}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BlogOverviewJsonLdInjector\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BlogOverviewJsonLdInjector.map"],"mappings":"wLAA2H,SAAwB,EAA2B,EAAM,CAAC,GAAK,CAAC,YAAU,kBAAgB,YAAU,+BAA6B,EAAY,EAAe,IAAS,OAA2C,+BAA/B,EAAO,SAAS,OAAO,QAA6C,EAAa,GAAW,EAAU,OAAO,EAAE,EAAU,IAAI,IAAO,CAAC,QAAQ,cAAc,SAAS,EAAK,SAAS,IAAI,EAAK,IAAI,EAAE,CAAC,EAAE,CAAO,EAAO,CAAC,WAAW,qBAAqB,QAAQ,iBAAiB,KAAK,GAAW,eAAe,YAAY,GAAiB,iDAAiD,IAAI,EAAQ,WAAW,QAAQ,UAAU,CAAC,QAAQ,eAAe,KAAK,UAAU,IAAI,0BAA0B,KAAK,CAAC,QAAQ,cAAc,IAAI,qEAAqE,CAAC,CAAC,WAAW,EAAa,CAAga,OAA/Z,MAAoB,CAAC,IAAM,EAAS,6BAAmC,EAAS,SAAS,eAAe,EAAS,CAA+B,GAA3B,GAAS,EAAS,QAAQ,CAAI,EAA4B,CAAC,IAAM,EAAO,SAAS,cAAc,SAAS,CAAC,EAAO,KAAK,sBAAsB,EAAO,GAAG,EAAS,EAAO,YAAY,KAAK,UAAU,EAAO,KAAK,EAAE,CAAC,SAAS,KAAK,YAAY,EAAO,GAAI,CAAC,KAAK,UAAU,EAAO,CAAC,EAA4B,CAAC,CAAqB,EAAK,OAAO,CAAC,cAAc,GAAK,MAAM,CAAC,QAAQ,QAAQ,OAAO,EAAE,M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