{"version":3,"file":"ServiceStructuredData.R1a2GPEp.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/oq0dzaw3IM4e75aideGF/7WUKnNvFgSEWzJOlmqb2/ServiceStructuredData.js"],"sourcesContent":["// lokale-SEO v2 (2026-07-17)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";function ensureSingleTrailingSlash(url){const trimmed=(url||\"\").trim();if(!trimmed)return\"\";return trimmed.replace(/\\/+$/,\"\")+\"/\";}/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ServiceStructuredData(props){const{serviceName=\"\",serviceType=\"\",description=\"\",url=\"\",siteUrl=\"https://sparc.nl/\",orgName=\"Sparc\",areaServed=\"Netherlands\"}=props;const normalizedUrl=useMemo(()=>ensureSingleTrailingSlash(url),[url]);const normalizedSiteUrl=useMemo(()=>ensureSingleTrailingSlash(siteUrl),[siteUrl]);const jsonLd=useMemo(()=>{const trimmedServiceType=(serviceType||\"\").trim();const trimmedDescription=(description||\"\").trim();const trimmedAreaServed=(areaServed||\"\").trim();const data={\"@context\":\"https://schema.org\",\"@type\":\"Service\",name:serviceName,url:normalizedUrl,provider:{\"@type\":\"Organization\",\"@id\":`${normalizedSiteUrl}#organization`,name:orgName}};if(trimmedServiceType){data.serviceType=trimmedServiceType;}if(trimmedDescription){data.description=trimmedDescription;}if(trimmedAreaServed){data.areaServed={\"@type\":\"Place\",name:trimmedAreaServed};}return JSON.stringify(data);},[areaServed,description,normalizedSiteUrl,normalizedUrl,orgName,serviceName,serviceType]);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:0,height:0,overflow:\"hidden\",pointerEvents:\"none\"},\"aria-hidden\":true,children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:jsonLd}})});}addPropertyControls(ServiceStructuredData,{serviceName:{type:ControlType.String,title:\"Service Name\",defaultValue:\"\"},serviceType:{type:ControlType.String,title:\"Service Type\",defaultValue:\"\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\",displayTextArea:true},url:{type:ControlType.String,title:\"URL\",defaultValue:\"\"},siteUrl:{type:ControlType.String,title:\"Site URL\",defaultValue:\"https://sparc.nl/\"},orgName:{type:ControlType.String,title:\"Organization\",defaultValue:\"Sparc\"},areaServed:{type:ControlType.String,title:\"Area Served\",defaultValue:\"Netherlands\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ServiceStructuredData\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ServiceStructuredData.map"],"mappings":"0KAC0H,SAAS,EAA0B,EAAI,CAAC,IAAM,GAAS,GAAK,GAAA,CAAI,KAAK,EAAuB,OAAjB,EAAwB,EAAQ,QAAQ,OAAO,EAAE,EAAE,IAArC,EAAyC,CAGzP,SAAwB,EAAsB,EAAM,CAAC,GAAK,CAAC,cAAY,GAAG,cAAY,GAAG,cAAY,GAAG,MAAI,GAAG,UAAQ,oBAAoB,UAAQ,QAAQ,aAAW,eAAe,EAAY,EAAcA,MAAY,EAA0B,CAAG,EAAE,CAAC,CAAG,CAAC,EAAQ,EAAkBA,MAAY,EAA0B,CAAO,EAAE,CAAC,CAAO,CAAC,EAA2qB,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,OAAO,EAAE,SAAS,SAAS,cAAc,MAAM,EAAE,cAAc,GAAK,SAAsB,EAAK,SAAS,CAAC,KAAK,sBAAsB,wBAAwB,CAAC,OAA53BA,MAAY,CAAC,IAAM,GAAoB,GAAa,GAAA,CAAI,KAAK,EAAQ,GAAoB,GAAa,GAAA,CAAI,KAAK,EAAQ,GAAmB,GAAY,GAAA,CAAI,KAAK,EA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