{"version":3,"file":"BlogPostingSchema.BfmzDoRq.mjs","names":["__esmMin","init_jsx_runtime","c","p","addPropertyControls","RenderTarget","init_framer_DxfB3JJo","ControlType","toISO","value","parsed","BlogPostingSchema","props","imageSrc","image","data","headline","description","publishedISO","published","modifiedISO","modified","author","publisher","logo","url","script","init_BlogPostingSchema"],"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\",\"framerCont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