{"version":3,"file":"HubSchemaEmitter.BgIIddo6.mjs","names":["__esmMin","init_jsx_runtime","c","init_framer_CN96F41L","addPropertyControls","ControlType","hubPath","s","imgSrc","image","crumbs","items","name","path","i","ORIGIN","paywall","gated","dates","p","build","HUB","PUBLISHER","CATEGORIES","trail","base","url","katName","katPath","node","HubSchemaEmitter","props","json","init_HubSchemaEmitter"],"sources":["https:/framerusercontent.com/modules/uVU4n445yrXHMUWGnWFj/zV21Q4e0g5ejKs5PG4jd/HubSchemaEmitter.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const ORIGIN=\"https://de.everreal.co\";const HUB=\"/wissen\";const PUBLISHER={\"@type\":\"Organization\",\"@id\":ORIGIN+\"/#organization\",name:\"EverReal\",url:ORIGIN};const CATEGORIES=[[\"Whitepapers\",\"/wissen/whitepapers\"],[\"Leitf\\xe4den\",\"/wissen/leitfaeden\"],[\"Checklisten\",\"/wissen/checklisten\"],[\"Pr\\xe4sentationen\",\"/wissen/praesentationen\"],[\"Fallstudien\",\"/wissen/fallstudien\"],[\"Mediathek\",\"/wissen/mediathek\"],[\"Tools\",\"/wissen/tools\"]];function hubPath(s){return(s||\"\").replace(/^\\/wissensbibliothek(?=\\/|$)/,\"/wissen\");}function imgSrc(image){if(!image)return\"\";if(typeof image===\"string\")return image;return image.src||\"\";}function crumbs(items){return{\"@type\":\"BreadcrumbList\",itemListElement:items.map(([name,path],i)=>({\"@type\":\"ListItem\",position:i+1,name,item:path.startsWith(\"http\")?path:ORIGIN+path}))};}function paywall(node,gated){node.isAccessibleForFree=!gated;if(gated){node.hasPart={\"@type\":\"WebPageElement\",isAccessibleForFree:false,cssSelector:\".er-gated\"};}}function dates(node,p){if(p.datePublished)node.datePublished=p.datePublished;if(p.dateModified)node.dateModified=p.dateModified;}function build(p){if(!p.name)return null;if(p.kind===\"hub\"){return{\"@context\":\"https://schema.org\",\"@type\":\"CollectionPage\",name:p.name,description:p.description,url:ORIGIN+HUB,inLanguage:\"de-DE\",publisher:PUBLISHER,mainEntity:{\"@type\":\"ItemList\",itemListElement:CATEGORIES.map(([name,path],i)=>({\"@type\":\"ListItem\",position:i+1,name,url:ORIGIN+path}))}};}if(p.kind===\"kategorie\"){const path=hubPath(p.kategoriePfad)||HUB;const trail=[[\"Wissensbibliothek\",HUB]];if(p.kategorie&&p.kategorie!==p.name)trail.push([p.kategorie,\"/wissen/tools\"]);trail.push([p.name,path]);return{\"@context\":\"https://schema.org\",\"@type\":\"CollectionPage\",name:p.name,description:p.description,url:ORIGIN+path,inLanguage:\"de-DE\",publisher:PUBLISHER,breadcrumb:crumbs(trail)};}const base=p.kind===\"fallstudie\"?\"/wissen/fallstudien/\":p.kind===\"mediathek\"?\"/wissen/mediathek/\":\"/wissen/ressourcen/\";const url=ORIGIN+base+p.slug;const katName=p.kategorie||(p.kind===\"fallstudie\"?\"Fallstudien\":p.kind===\"mediathek\"?\"Mediathek\":\"Wissensbibliothek\");const katPath=hubPath(p.kategoriePfad)||(p.kind===\"fallstudie\"?\"/wissen/fallstudien\":p.kind===\"mediathek\"?\"/wissen/mediathek\":HUB);const trail=crumbs([[\"Wissensbibliothek\",HUB],[katName,katPath],[p.name,url]]);const image=imgSrc(p.image);if(p.kind===\"mediathek\"){const node={\"@context\":\"https://schema.org\",\"@type\":\"VideoObject\",name:p.name,description:p.description,url,inLanguage:\"de-DE\",publisher:PUBLISHER};if(image)node.thumbnailUrl=image;if(p.datePublished)node.uploadDate=p.datePublished;if(!p.gated&&p.embedUrl)node.embedUrl=p.embedUrl;return{\"@context\":\"https://schema.org\",\"@graph\":[node,{\"@type\":\"WebPage\",\"@id\":url,breadcrumb:trail}]};}const node={\"@context\":\"https://schema.org\",\"@type\":\"Article\",headline:p.name,description:p.description,url,mainEntityOfPage:{\"@type\":\"WebPage\",\"@id\":url,breadcrumb:trail},inLanguage:\"de-DE\",author:p.author?{\"@type\":\"Person\",name:p.author}:{\"@type\":\"Organization\",name:\"EverReal\",url:ORIGIN},publisher:PUBLISHER};if(image)node.image=image;dates(node,p);paywall(node,!!p.gated);return node;}/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function HubSchemaEmitter(props){const node=build(props);const json=node?JSON.stringify(node).replace(/</g,\"\\\\u003c\"):\"\";return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:0,height:0,overflow:\"hidden\",...props.style},children:json?/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}}):null});}addPropertyControls(HubSchemaEmitter,{kind:{type:ControlType.Enum,title:\"Kind\",options:[\"ressource\",\"fallstudie\",\"mediathek\",\"kategorie\",\"hub\"],optionTitles:[\"Ressource\",\"Fallstudie\",\"Mediathek\",\"Kategorie\",\"Hub\"],defaultValue:\"ressource\"},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.ResponsiveImage,title:\"Image\"},gated:{type:ControlType.Boolean,title:\"Gated\",defaultValue:false},author:{type:ControlType.String,title:\"Author\"},kategorie:{type:ControlType.String,title:\"Kategorie\"},kategoriePfad:{type:ControlType.String,title:\"Kategorie-Pfad\"},embedUrl:{type:ControlType.String,title:\"Embed URL\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HubSchemaEmitter\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HubSchemaEmitter.map"],"mappings":"A,4JAAkhB,SAASM,EAAQ,EAAE,CAAC,OAAOC,GAAG,GAAA,CAAI,QAAQ,+BAA+B,SAAS,CAAE,CAAC,SAASC,EAAO,EAAM,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