{"version":3,"file":"SchemaEmitter.DceD2ilq.mjs","names":[],"sources":["https:/framerusercontent.com/modules/41INlsYTjsH5PKZBfAFq/VaiVU1QjgLcCy5VJ7rDh/SchemaEmitter.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const ORIGIN=\"https://de.everreal.co\";/**\n * Both dates are emitted whenever the CMS holds them, which is what live does on every\n * blog and Lexikon detail page.\n *\n * An earlier version suppressed dateModified whenever it preceded datePublished, on the\n * grounds that the pair reads incoherently. It does, but the cause is upstream: these are\n * Webflow record stamps, and \"published on\" is a bulk republish instant shared by dozens\n * of items while \"last updated\" is the real per-item edit time, so the earlier value is\n * usually the more truthful one. Suppressing it dropped dateModified from EVERY detail\n * page in the rebuild while live carried it on all of them, which is a worse outcome than\n * an odd ordering: it removes a freshness signal Google reads. Correcting the ordering\n * instead would mean inventing a date, which is not allowed. So the pair ships exactly as\n * the CMS holds it, exactly as live ships it.\n */function applyDates(node,published,modified){if(published)node.datePublished=published;if(modified)node.dateModified=modified;}/**\n * No `publisher.logo`, deliberately. Live emits one and this briefly did too, to match it,\n * but Google's current Article documentation has no required properties at all and\n * `publisher.logo` appears nowhere in its recommended list - the one \"logo\" mention is a\n * warning to use images relevant to the article \"rather than logos\". It was an AMP-era\n * requirement that has since been dropped, so carrying it buys parity with live and\n * nothing in Search. Renée's call, 2026-09-08: keep the markup lean.\n */const PUBLISHER={\"@type\":\"Organization\",\"@id\":ORIGIN+\"/#organization\",name:\"EverReal\",url:ORIGIN};function buildLexikon(p){const base=p.basePath||\"/immobilien-lexikon\";const url=ORIGIN+base+\"/\"+p.slug;const node={\"@context\":\"https://schema.org\",\"@type\":\"WebPage\",name:p.name,description:p.description,url:url,inLanguage:\"de-DE\",publisher:PUBLISHER,mainEntity:{\"@type\":\"DefinedTerm\",name:p.name,description:p.description,inDefinedTermSet:{\"@type\":\"DefinedTermSet\",name:\"EverReal Immobilien-Lexikon\",url:ORIGIN+\"/business/wissen/immobilien-lexikon\"}},breadcrumb:{\"@type\":\"BreadcrumbList\",// No \"Wissen\" level: /business/wissen 404s on live and is not in the manifest.\nitemListElement:[{\"@type\":\"ListItem\",position:1,name:\"Immobilien-Lexikon\",item:ORIGIN+\"/business/wissen/immobilien-lexikon\"},{\"@type\":\"ListItem\",position:2,name:p.name,item:url}]}};applyDates(node,p.datePublished,p.dateModified);return node;}function buildBlog(p){// Ratgeber (B2C) posts live under /go/blog, so the section path must be a prop.\nconst base=p.basePath||\"/blog\";const hub=p.hubName||\"Blog\";const url=ORIGIN+base+\"/\"+p.slug;const node={\"@context\":\"https://schema.org\",\"@type\":\"BlogPosting\",headline:p.name,description:p.description,url:url,mainEntityOfPage:{\"@type\":\"WebPage\",\"@id\":url,breadcrumb:{\"@type\":\"BreadcrumbList\",// Mirrors the visible breadcrumb exactly (two levels).\nitemListElement:[{\"@type\":\"ListItem\",position:1,name:hub,item:ORIGIN+base},{\"@type\":\"ListItem\",position:2,name:p.name,item:url}]}},inLanguage:\"de-DE\",author:{\"@type\":\"Organization\",name:\"EverReal\",url:ORIGIN},publisher:PUBLISHER};if(p.image)node.image=p.image;applyDates(node,p.datePublished,p.dateModified);return node;}/**\n * Press releases. Live emits NewsArticle on every /presse/* page, so the rebuild does too;\n * NewsArticle rather than BlogPosting is the honest type for a dated corporate announcement,\n * and it is what the original chose. Author and publisher carry the legal name \"EverReal\n * GmbH\" here, again matching live's press pages, where the blog uses the short brand name.\n * The breadcrumb is the one addition: live's press pages have none, and every other detail\n * page in the rebuild carries one that mirrors its visible crumb trail.\n */function buildPress(p){const base=p.basePath||\"/presse\";const hub=p.hubName||\"Presse\";const url=ORIGIN+base+\"/\"+p.slug;const node={\"@context\":\"https://schema.org\",\"@type\":\"NewsArticle\",headline:p.name,description:p.description,url:url,mainEntityOfPage:{\"@type\":\"WebPage\",\"@id\":url,breadcrumb:{\"@type\":\"BreadcrumbList\",itemListElement:[{\"@type\":\"ListItem\",position:1,name:hub,item:ORIGIN+\"/unternehmen/presse\"},{\"@type\":\"ListItem\",position:2,name:p.name,item:url}]}},inLanguage:\"de-DE\",author:{\"@type\":\"Organization\",name:\"EverReal GmbH\",url:ORIGIN},publisher:{\"@type\":\"Organization\",\"@id\":ORIGIN+\"/#organization\",name:\"EverReal GmbH\",url:ORIGIN}};if(p.image)node.image=p.image;applyDates(node,p.datePublished,p.dateModified);return node;}/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function SchemaEmitter(props){const{kind,name,style}=props;// Nothing to say without a name: emit no schema rather than an empty node.\n// \"<\" must be escaped or a field containing \"</script>\" would terminate the tag early.\nconst json=name?JSON.stringify(kind===\"blog\"?buildBlog(props):kind===\"press\"?buildPress(props):buildLexikon(props)).replace(/</g,\"\\\\u003c\"):\"\";return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:0,height:0,overflow:\"hidden\",...style},children:json?/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}}):null});}addPropertyControls(SchemaEmitter,{kind:{type:ControlType.Enum,title:\"Kind\",options:[\"lexikon\",\"blog\",\"press\"],optionTitles:[\"Lexikon entry\",\"Blog post\",\"Press release\"],defaultValue:\"lexikon\"},name:{type:ControlType.String,title:\"Name\"},description:{type:ControlType.String,title:\"Description\"},slug:{type:ControlType.String,title:\"Slug\"},datePublished:{type:ControlType.String,title:\"Published\"},dateModified:{type:ControlType.String,title:\"Updated\"},image:{type:ControlType.String,title:\"Image URL\"},basePath:{type:ControlType.String,title:\"Base path\"},hubName:{type:ControlType.String,title:\"Hub name\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SchemaEmitter\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Schema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