{"version":3,"file":"ArticleJsonLd.BZNeAcvb.mjs","names":[],"sources":["https:/framerusercontent.com/modules/MNcRYYE1iiotBnpkSOU9/OdYduJrq9tjPDvSL8zlw/ArticleJsonLd.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Structured data for CMS detail pages. Renders a JSON-LD script tag with a\n * BreadcrumbList and, when Type is BlogPosting, the article itself. Bind the\n * text, date, and image controls to the page's CMS fields.\n *\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ArticleJsonLd(props){const{type=\"BlogPosting\",siteUrl=\"https://www.leadvector.app\",sectionName=\"Blog\",sectionPath=\"/blog\",headline=\"\",description=\"\",datePublished=\"\",dateModified=\"\",image,authorName=\"\",authorRole=\"\"}=props;const base=siteUrl.replace(/\\/$/,\"\");const org={\"@id\":`${base}/#organization`};const imageUrl=typeof image===\"string\"?image:image?.src;const graph=[{\"@type\":\"BreadcrumbList\",itemListElement:[{\"@type\":\"ListItem\",position:1,name:\"Home\",item:`${base}/`},{\"@type\":\"ListItem\",position:2,name:sectionName,item:`${base}${sectionPath}`},{\"@type\":\"ListItem\",position:3,name:headline}]}];if(type===\"BlogPosting\"&&headline){const article={\"@type\":\"BlogPosting\",headline,description:description||undefined,datePublished:datePublished||undefined,dateModified:dateModified||datePublished||undefined,image:imageUrl?[imageUrl.split(\"?\")[0]]:undefined,author:authorName?{\"@type\":\"Person\",name:authorName,jobTitle:authorRole||undefined,worksFor:org}:undefined,publisher:org,isPartOf:{\"@id\":`${base}/#website`},inLanguage:\"en\"};graph.push(article);}const json=JSON.stringify({\"@context\":\"https://schema.org\",\"@graph\":graph});return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:1,height:1,overflow:\"hidden\",opacity:0},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}})});}addPropertyControls(ArticleJsonLd,{type:{type:ControlType.Enum,title:\"Type\",options:[\"BlogPosting\",\"None\"],defaultValue:\"BlogPosting\"},siteUrl:{type:ControlType.String,title:\"Site URL\",defaultValue:\"https://www.leadvector.app\"},sectionName:{type:ControlType.String,title:\"Section\",defaultValue:\"Blog\"},sectionPath:{type:ControlType.String,title:\"Section path\",defaultValue:\"/blog\"},headline:{type:ControlType.String,title:\"Headline\",defaultValue:\"\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\"},datePublished:{type:ControlType.Date,title:\"Published\"},dateModified:{type:ControlType.Date,title:\"Modified\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"},authorName:{type:ControlType.String,title:\"Author\",defaultValue:\"\"},authorRole:{type:ControlType.String,title:\"Author role\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ArticleJsonLd\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicWidth\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"1\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ArticleJsonLd.map"],"mappings":"4JAUG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,OAAK,cAAc,UAAQ,6BAA6B,cAAY,OAAO,cAAY,QAAQ,WAAS,GAAG,cAAY,GAAG,gBAAc,GAAG,eAAa,GAAG,QAAM,aAAW,GAAG,aAAW,IAAI,EAAY,EAAK,EAAQ,QAAQ,MAAM,EAAE,EAAQ,EAAI,CAAC,MAAM,GAAG,EAAK,eAAe,EAAQ,EAAS,OAAO,GAAQ,SAAS,EAAM,GAAO,IAAU,EAAM,CAAC,CAAC,QAAQ,iBAAiB,gBAAgB,CAAC,CAAC,QAAQ,WAAW,SAAS,EAAE,KAAK,OAAO,KAAK,GAAG,E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