{"version":3,"file":"BlogPostingSchema.C6xHngFS.mjs","names":[],"sources":["https:/framerusercontent.com/modules/EmPvy4aH13R4vLx2R94z/0VF8msxohVS3WYg1UoDM/BlogPostingSchema.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";function toISO(value){if(!value)return\"\";const parsed=new Date(value);if(isNaN(parsed.getTime()))return String(value);return parsed.toISOString();}/**\n * BlogPosting Schema (JSON-LD)\n *\n * Emits invisible schema.org BlogPosting structured data for SEO / rich-result\n * eligibility. Drop one instance on the blog detail page and bind each control\n * to the matching CMS field. Renders nothing on the published page (0x0 wrapper);\n * shows a small marker on the canvas so it stays selectable.\n *\n * @framerIntrinsicWidth 160\n * @framerIntrinsicHeight 28\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function BlogPostingSchema(props){const{headline=\"\",description=\"\",author=\"\",publisher=\"ModelMatic\",logo=\"https://framerusercontent.com/images/kOqbqTNuigBC8Ev8ZthLpTm2tT8.png\",image,published=\"\",modified=\"\",url=\"\"}=props;const imageSrc=typeof image===\"string\"?image:image?.src?image.src:\"\";const data={\"@context\":\"https://schema.org\",\"@type\":\"BlogPosting\"};if(headline)data.headline=headline;if(description)data.description=description;if(imageSrc)data.image=imageSrc;const publishedISO=toISO(published);const modifiedISO=toISO(modified)||publishedISO;if(publishedISO)data.datePublished=publishedISO;if(modifiedISO)data.dateModified=modifiedISO;if(author)data.author={\"@type\":\"Person\",name:author};data.publisher={\"@type\":\"Organization\",name:publisher,...logo?{logo:{\"@type\":\"ImageObject\",url:logo}}:{}};if(url)data.mainEntityOfPage={\"@type\":\"WebPage\",\"@id\":url};const script=/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:JSON.stringify(data)}});// On the canvas, show a small marker so the (otherwise invisible) node is\n// easy to find and select. Everywhere else, render only the data script.\nif(RenderTarget.current()===RenderTarget.canvas){return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"inline-flex\",alignItems:\"center\",gap:6,padding:\"4px 8px\",borderRadius:6,background:\"#EEF2FF\",border:\"1px solid #C7D2FE\",color:\"#3730A3\",fontFamily:\"ui-sans-serif, system-ui, -apple-system, sans-serif\",fontSize:11,fontWeight:600,whiteSpace:\"nowrap\",width:\"max-content\"},children:[script,/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":true,children:\"{ }\"}),/*#__PURE__*/_jsx(\"span\",{children:\"BlogPosting Schema\"})]});}return /*#__PURE__*/_jsx(\"div\",{style:{width:0,height:0,overflow:\"hidden\",position:\"relative\"},children:script});}addPropertyControls(BlogPostingSchema,{headline:{type:ControlType.String,title:\"Headline\",defaultValue:\"\",placeholder:\"Bind to post Title\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\",displayTextArea:true,placeholder:\"Bind to Meta Description\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"},author:{type:ControlType.String,title:\"Author\",defaultValue:\"\",placeholder:\"Bind to Author Name\"},published:{type:ControlType.Date,title:\"Published\"},modified:{type:ControlType.Date,title:\"Modified\"},publisher:{type:ControlType.String,title:\"Publisher\",defaultValue:\"ModelMatic\"},logo:{type:ControlType.String,title:\"Logo URL\",defaultValue:\"https://framerusercontent.com/images/kOqbqTNuigBC8Ev8ZthLpTm2tT8.png\"},url:{type:ControlType.String,title:\"Canonical URL\",defaultValue:\"\",placeholder:\"Optional\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BlogPostingSchema\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"28\",\"framerIntrinsicWidth\":\"160\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BlogPostingSchema.map"],"mappings":"0KAA0H,SAAS,E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