{"version":3,"file":"BlogOverviewJsonLdInjector.B6YYAk_f.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,GAAG,EAAE,EAAE,CAAC,EAAQ,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,oEAAoE,CAAC,EAAE,WAAW,CAAY,EAAia,OAA/Z,MAAoB,CAAC,IAAM,EAAS,6BAAmC,EAAS,SAAS,eAAe,CAAQ,EAAgC,GAA3B,GAAS,EAAS,OAAO,EAAK,EAA4B,CAAC,IAAM,EAAO,SAAS,cAAc,QAAQ,EAAE,EAAO,KAAK,sBAAsB,EAAO,GAAG,EAAS,EAAO,YAAY,KAAK,UAAU,EAAO,KAAK,CAAC,EAAE,SAAS,KAAK,YAAY,CAAM,CAAE,CAAC,EAAE,CAAC,KAAK,UAAU,CAAM,EAAE,CAA2B,CAAC,EAAsB,EAAK,OAAO,CAAC,cAAc,GAAK,MAAM,CAAC,QAAQ,QAAQ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