{"version":3,"file":"BlogSchema.xes463cC.mjs","names":[],"sources":["https:/framerusercontent.com/modules/gXlwhbiCYj7qsuBoPOcq/VpfJsfXIhf6zEjajSeW9/BlogSchema.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,useLocaleInfo}from\"framer\";/**\n * Structured data for /blog and the seven /blog/<map> pages.\n *\n * Space'M (#seo 2026-09-24): the old CollectionPage list was hand-written (31\n * items) and \"needs to be dynamic\". A code component cannot read the CMS, so:\n *  - the BreadcrumbList is rendered on the server, from the controls;\n *  - the CollectionPage + ItemList is built in the browser from the article\n *    links the page itself renders (the CMS collection lists), so an article\n *    added in the CMS appears in the schema without anyone touching it.\n * Google executes JavaScript before reading JSON-LD, so both are picked up.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */const ORIGIN=\"https://godutch.com\";export default function BlogSchema(props){const{name,description,path,scopeSelector}=props;const crumbLabel=String(props.crumbLabel||\"\").trim();// On /en pages every URL in the schema carries the locale prefix, like the visible links.\nconst{activeLocale}=useLocaleInfo();const locale=activeLocale??{};const localeSlug=String(locale.slug??\"\").replace(/^\\/+|\\/+$/g,\"\");const prefix=localeSlug?\"/\"+localeSlug:\"\";const inLanguage=localeSlug===\"en\"?\"en-NL\":\"nl-NL\";const crumbs=[{\"@type\":\"ListItem\",position:1,name:\"Home\",item:ORIGIN+prefix+\"/\"},{\"@type\":\"ListItem\",position:2,name:\"Blog\",...crumbLabel?{item:ORIGIN+prefix+\"/blog\"}:{}},...crumbLabel?[{\"@type\":\"ListItem\",position:3,name:crumbLabel}]:[]];const breadcrumb={\"@context\":\"https://schema.org\",\"@type\":\"BreadcrumbList\",itemListElement:crumbs};React.useEffect(()=>{const build=()=>{const scope=scopeSelector&&document.querySelector(scopeSelector)||document.body;const seen=new Set;const items=[];scope.querySelectorAll(\"a[href]\").forEach(a=>{const url=new URL(a.href,location.href);const p=url.pathname.replace(/^\\/en(?=\\/)/,\"\");// an article: /blog/<slug> or /blog/<map>/<slug>, not a category page\nif(!/^\\/blog\\/[^/]+(\\/[^/]+)?$/.test(p)||seen.has(p))return;if(/^\\/blog\\/(btw|starten|geld-overmaken|belasting|boekhouding|factureren|betalen)$/.test(p))return;// The card's category badge is a <p> before the title, so look for a heading first.\nconst title=(a.querySelector(\"h1, h2, h3, h4\")||a.querySelector(\"p\"))?.innerText?.trim();if(!title)return;seen.add(p);items.push({\"@type\":\"ListItem\",position:items.length+1,url:ORIGIN+url.pathname,name:title});});if(!items.length)return;const data={\"@context\":\"https://schema.org\",\"@type\":\"CollectionPage\",name,description,url:ORIGIN+location.pathname,inLanguage,mainEntity:{\"@type\":\"ItemList\",numberOfItems:items.length,itemListElement:items}};// The old hand-written list in /blog's page custom code (31 items) would\n// contradict this one; drop it from the rendered DOM. Delete it in\n// Page settings > Custom code as well.\ndocument.querySelectorAll('script[type=\"application/ld+json\"]').forEach(s=>{if(s.id===\"gd-blog-collection\")return;try{const d=JSON.parse(s.textContent||\"\");const g=d[\"@graph\"]||[d];if(g.some(x=>x[\"@type\"]===\"CollectionPage\"))s.remove();}catch(e){}});let el=document.getElementById(\"gd-blog-collection\");if(!el){el=document.createElement(\"script\");el.type=\"application/ld+json\";el.id=\"gd-blog-collection\";document.head.appendChild(el);}el.textContent=JSON.stringify(data);};build();const t=window.setTimeout(build,800);return()=>window.clearTimeout(t);},[name,description,path,scopeSelector,inLanguage]);return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:JSON.stringify(breadcrumb)}});}BlogSchema.defaultProps={name:\"Blog: kennis voor ondernemers\",description:\"\",path:\"/blog\",crumbLabel:\"\",scopeSelector:\"main\"};addPropertyControls(BlogSchema,{name:{type:ControlType.String,title:\"Name\"},description:{type:ControlType.String,title:\"Description\",displayTextArea:true},path:{type:ControlType.String,title:\"Path\"},crumbLabel:{type:ControlType.String,title:\"Category\",description:\"Empty on /blog itself\"},scopeSelector:{type:ControlType.String,title:\"Scope\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BlogSchema\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BlogSchema.map"],"mappings":"iMAasC,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,OAAK,cAAY,OAAK,iBAAe,EAAY,EAAW,OAAO,EAAM,YAAY,EAAE,CAAC,CAAC,KAAK,EAC/K,CAAC,gBAAc,EAAc,EAAsC,EAAW,QAAlC,GAAc,CAAC,EAAA,CAAiC,MAAM,EAAE,CAAC,CAAC,QAAQ,aAAa,EAAE,EAAQ,EAAO,EAAW,IAAI,EAAW,GAAS,EAAW,IAAa,KAAK,QAAQ,QAA6P,EAAW,CAAC,WAAW,qBAAqB,QAAQ,iBAAiB,gBAAgB,CAA5T,CAAC,QAAQ,WAAW,SAAS,EAAE,KAAK,OAAO,KAAK,EAAO,EAAO,GAAG,EAAE,CAAC,QAAQ,WAAW,SAAS,EAAE,KAAK,OAAO,GAAG,EAAW,CAAC,KAAK,EAAO,EAAO,OAAO,EAAE,CAAC,CAAC,EAAE,GAAG,EAAW,CAAC,CAAC,QAAQ,WAAW,SAAS,EAAE,KAAK,CAAU,CAAC,EAAE,CAAC,CAAmG,CAAC,EAK0C,OALxC,MAAoB,CAAC,IAAM,MAAU,CAAC,IAAM,EAAM,GAAe,SAAS,cAAc,CAAa,GAAG,SAAS,KAAW,EAAK,IAAI,IAAU,EAAM,CAAC,EAEpf,GAFsf,EAAM,iBAAiB,SAAS,CAAC,CAAC,QAAQ,GAAG,CAAC,IAAM,EAAI,IAAI,IAAI,EAAE,KAAK,SAAS,IAAI,EAAQ,EAAE,EAAI,SAAS,QAAQ,cAAc,EAAE,EAClxB,GAAzD,CAAC,4BAA4B,KAAK,CAAC,GAAG,EAAK,IAAI,CAAC,GAAY,kFAAkF,KAAK,CAAC,EAAE,OAC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