{"version":3,"file":"BlogPostingSchema.Qhd89toD.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/06gdZbVKTGKhEEEtTDfo/oVcbDdpi6Cygeot7a72v/BlogPostingSchema.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useMemo}from\"react\";function removeEmptyValues(value){if(Array.isArray(value)){const cleanedArray=value.map(item=>removeEmptyValues(item)).filter(item=>item!==undefined);return cleanedArray.length>0?cleanedArray:undefined;}if(value&&typeof value===\"object\"){const entries=Object.entries(value).map(([key,nestedValue])=>[key,removeEmptyValues(nestedValue)]).filter(([,nestedValue])=>nestedValue!==undefined);if(entries.length===0)return undefined;return Object.fromEntries(entries);}if(typeof value===\"string\"){const trimmed=value.trim();return trimmed.length>0?trimmed:undefined;}if(value===null||value===undefined)return undefined;return value;}/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function BlogPostingSchema(props){const{headline=\"\",description=\"\",canonicalUrl=\"\",datePublished=\"\",dateModified=\"\",authorName=\"\",publisherName=\"\",publisherUrl=\"\",imageUrl=\"\",inLanguage=\"\"}=props;const jsonLd=useMemo(()=>{const schemaObject=removeEmptyValues({\"@context\":\"https://schema.org\",\"@type\":\"BlogPosting\",url:canonicalUrl||undefined,mainEntityOfPage:canonicalUrl?{\"@type\":\"WebPage\",\"@id\":canonicalUrl}:undefined,headline,description,image:imageUrl?{\"@type\":\"ImageObject\",url:imageUrl}:undefined,datePublished,dateModified,inLanguage,author:authorName?{\"@type\":\"Person\",name:authorName}:undefined,publisher:publisherName?{\"@type\":\"Organization\",name:publisherName,url:publisherUrl||undefined}:undefined});return JSON.stringify(schemaObject);},[authorName,canonicalUrl,dateModified,datePublished,description,headline,imageUrl,inLanguage,publisherName,publisherUrl]);useEffect(()=>{if(typeof document===\"undefined\")return;const selector='script[data-schema=\"blogposting-schema\"]';const existingScript=document.head.querySelector(selector);if(existingScript)existingScript.remove();const script=document.createElement(\"script\");script.type=\"application/ld+json\";script.setAttribute(\"data-schema\",\"blogposting-schema\");script.text=jsonLd;document.head.appendChild(script);return()=>{script.remove();};},[jsonLd]);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:0,height:0,overflow:\"hidden\",pointerEvents:\"none\"},\"aria-hidden\":\"true\",role:\"presentation\"});}addPropertyControls(BlogPostingSchema,{headline:{type:ControlType.String,title:\"Headline\",defaultValue:\"\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\",displayTextArea:true},canonicalUrl:{type:ControlType.String,title:\"Canonical URL\",defaultValue:\"\",placeholder:\"https://example.com/blog/post\"},datePublished:{type:ControlType.String,title:\"Published\",defaultValue:\"\",placeholder:\"2026-01-15\"},dateModified:{type:ControlType.String,title:\"Modified\",defaultValue:\"\",placeholder:\"Optional\"},authorName:{type:ControlType.String,title:\"Author\",defaultValue:\"\"},publisherName:{type:ControlType.String,title:\"Publisher\",defaultValue:\"\"},publisherUrl:{type:ControlType.String,title:\"Publisher URL\",defaultValue:\"\",placeholder:\"https://example.com\"},imageUrl:{type:ControlType.String,title:\"Image URL\",defaultValue:\"\",placeholder:\"https://example.com/image.jpg\"},inLanguage:{type:ControlType.String,title:\"Language\",defaultValue:\"\",placeholder:\"en-US\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BlogPostingSchema\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BlogPostingSchema.map"],"mappings":"iLAAoI,SAAS,EAAkB,EAAM,CAAC,GAAG,MAAM,QAAQ,CAAK,EAAE,CAAC,IAAM,EAAa,EAAM,IAAI,GAAM,EAAkB,CAAI,CAAC,CAAC,CAAC,OAAO,GAAM,IAAO,IAAA,EAAS,EAAE,OAAO,EAAa,OAAO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