{"version":3,"file":"BlogPostingSchema.Be3eNv3u.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/06gdZbVKTGKhEEEtTDfo/1pT935yNNNZcyCKPAPdM/BlogPostingSchema.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{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(value===\"\"||value===null||value===undefined)return undefined;return value;}/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function BlogPostingSchema(props){const{headline=\"\",description=\"\",url=\"\",imageUrl=\"\",datePublished=\"\",dateModified=\"\",authorName=\"Marek Bitka\",publisherName=\"Studio Zwinni\",publisherLogoUrl=\"\"}=props;const schemaObject=useMemo(()=>{const resolvedDateModified=dateModified.trim()||datePublished.trim();const rawSchema={\"@context\":\"https://schema.org\",\"@type\":\"BlogPosting\",mainEntityOfPage:{\"@type\":\"WebPage\",\"@id\":url.trim()},headline:headline.trim(),description:description.trim(),image:imageUrl.trim(),datePublished:datePublished.trim(),dateModified:resolvedDateModified,author:{\"@type\":\"Person\",name:authorName.trim()},publisher:{\"@type\":\"Organization\",name:publisherName.trim(),logo:{\"@type\":\"ImageObject\",url:publisherLogoUrl.trim()}}};return removeEmptyValues(rawSchema);},[authorName,dateModified,datePublished,description,headline,imageUrl,publisherLogoUrl,publisherName,url]);const jsonLd=useMemo(()=>JSON.stringify(schemaObject),[schemaObject]);return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:jsonLd}});}addPropertyControls(BlogPostingSchema,{headline:{type:ControlType.String,title:\"Headline\",defaultValue:\"\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\",displayTextArea:true},url:{type:ControlType.String,title:\"URL\",defaultValue:\"\",placeholder:\"https://example.com/blog/post\"},imageUrl:{type:ControlType.String,title:\"Image URL\",defaultValue:\"\",placeholder:\"https://example.com/image.jpg\"},datePublished:{type:ControlType.String,title:\"Published\",defaultValue:\"\",placeholder:\"2026-01-15\"},dateModified:{type:ControlType.String,title:\"Modified\",defaultValue:\"\",placeholder:\"Optional (falls back to published)\"},authorName:{type:ControlType.String,title:\"Author\",defaultValue:\"Marek Bitka\"},publisherName:{type:ControlType.String,title:\"Publisher\",defaultValue:\"Studio Zwinni\"},publisherLogoUrl:{type:ControlType.String,title:\"Logo URL\",defaultValue:\"\",placeholder:\"https://example.com/logo.png\"}});\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":"0KAA0H,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,EAAE,EAAa,IAAA,EAAU,CAAC,GAAG,GAAO,OAAO,GAAQ,SAAS,CAAC,IAAM,EAAQ,OAAO,QAAQ,CAAK,CAAC,CAAC,KAAK,CAAC,EAAI,KAAe,CAAC,EAAI,EAAkB,CAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,KAAe,IAAc,IAAA,EAAS,EAAyC,OAApC,EAAQ,SAAS,EAAE,OAAwB,OAAO,YAAY,CAAO,CAAE,CAAI,S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