{"version":3,"file":"StructuredData.Cwhfm7J1.mjs","names":[],"sources":["https:/framerusercontent.com/modules/KPEwoeXKTVVZujdsbG9D/2w5mQ0wy5OhreihFa6vJ/StructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget,useLocaleInfo}from\"framer\";const ORG={\"@id\":\"https://curitt.health/#organization\"};function serviceLd(p){const url=p.siteUrl.replace(/\\/$/,\"\")+(p.slug?\"/services/\"+p.slug:\"\");const ld={\"@context\":\"https://schema.org\",\"@type\":[\"Service\",\"MedicalTest\"],name:p.name,description:p.summary,url,provider:ORG,areaServed:[{\"@type\":\"City\",name:\"Amsterdam\"},{\"@type\":\"City\",name:\"Utrecht\"}],availableAtOrFrom:[{\"@id\":\"https://curitt.health/#clinic-amsterdam\"},{\"@id\":\"https://curitt.health/#clinic-utrecht\"}]};if(p.priceFrom>0){ld.offers={\"@type\":\"AggregateOffer\",priceCurrency:\"EUR\",lowPrice:p.priceFrom,availability:\"https://schema.org/InStock\",url:p.siteUrl.replace(/\\/$/,\"\")+\"/book\"};}return ld;}/* A clinic page. Its @id matches the one service pages point to\n   (#clinic-amsterdam), so search engines connect the two. */function clinicLd(p,lang,prefix){const site=p.siteUrl.replace(/\\/$/,\"\");const key=(p.city||p.clinicSlug).toLowerCase().normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g,\"\").replace(/[^a-z0-9]+/g,\"-\").replace(/^-|-$/g,\"\");const image=typeof p.photo===\"string\"?p.photo:p.photo?.src;const ld={\"@context\":\"https://schema.org\",\"@type\":\"MedicalClinic\",\"@id\":site+\"/#clinic-\"+key,name:p.clinicName||\"Curitt \"+p.city,url:site+prefix+\"/locations/\"+p.clinicSlug,inLanguage:lang,parentOrganization:ORG,address:{\"@type\":\"PostalAddress\",...p.street?{streetAddress:p.street}:{},...p.postcode?{postalCode:p.postcode}:{},addressLocality:p.city,addressCountry:\"NL\"},isAcceptingNewPatients:p.open};if(image)ld.image=image;if(p.mapLink)ld.hasMap=p.mapLink;if(p.open)ld.potentialAction={\"@type\":\"ReserveAction\",target:site+prefix+\"/book?city=\"+key};return ld;}function articleLd(p,lang,prefix){const site=p.siteUrl.replace(/\\/$/,\"\");const url=site+prefix+\"/blog/\"+p.blogSlug;const image=typeof p.cover===\"string\"?p.cover:p.cover?.src;const ld={\"@context\":\"https://schema.org\",\"@type\":\"BlogPosting\",\"@id\":url+\"#article\",headline:p.headline,description:p.excerpt,url,mainEntityOfPage:url,inLanguage:lang,author:ORG,publisher:ORG,isPartOf:{\"@type\":\"Blog\",\"@id\":site+\"/blog#blog\",url:site+prefix+\"/blog\",name:\"Curitt Blog\"}};if(image)ld.image=image;if(p.date)ld.datePublished=String(p.date).slice(0,10);if(p.section)ld.articleSection=p.section;return ld;}export default function StructuredData(props){/* Blog posts follow the locale switcher: Dutch posts get their /nl\n       address and language. Pasted JSON is translated in Framer. */const{activeLocale}=useLocaleInfo();const slug=activeLocale?.slug?String(activeLocale.slug).replace(/^\\/+|\\/+$/g,\"\"):\"\";const prefix=slug?\"/\"+slug:\"\";const lang=String(activeLocale?.code||\"en\").toLowerCase().startsWith(\"nl\")?\"nl\":\"en\";let data=null;let error=\"\";if(props.mode===\"service\"){data=props.name?serviceLd(props):null;}else if(props.mode===\"clinic\"){data=props.city||props.clinicName?clinicLd(props,lang,prefix):null;}else if(props.mode===\"article\"){data=props.headline?articleLd(props,lang,prefix):null;}else{try{data=props.json?JSON.parse(props.json):null;}catch(e){error=\"Invalid JSON\";}}if(RenderTarget.current()===RenderTarget.canvas){const type=data&&typeof data===\"object\"?JSON.stringify(data[\"@type\"]||\"\"):\"\";return /*#__PURE__*/_jsx(\"div\",{style:{padding:\"4px 10px\",borderRadius:999,border:\"1px dashed var(--token-42e058c1-34dc-407a-b441-b0bbee93383a, #9F9E97)\",color:error?\"var(--token-0bcfa14b-79c6-43c7-812e-3f0bdfee7dcf, #A1533D)\":\"var(--token-6c31cc05-eed3-47c8-b09e-ab64cf8aed09, #706F6B)\",fontFamily:'\"Public Sans\", sans-serif',fontSize:11,lineHeight:\"16px\",whiteSpace:\"nowrap\"},children:error?\"Structured data: invalid JSON\":`Structured data ${type}`});}if(!data)return null;// \"<\" is escaped so the JSON can never close the script tag early.\nconst html=JSON.stringify(data).replace(/</g,\"\\\\u003c\");return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:html}});}StructuredData.defaultProps={mode:\"json\",json:\"\",name:\"\",summary:\"\",priceFrom:0,slug:\"\",siteUrl:\"https://curitt.health\",headline:\"\",excerpt:\"\",date:\"\",section:\"\",blogSlug:\"\",clinicName:\"\",street:\"\",city:\"\",postcode:\"\",mapLink:\"\",clinicSlug:\"\",open:true};addPropertyControls(StructuredData,{mode:{type:ControlType.Enum,title:\"Mode\",options:[\"json\",\"service\",\"article\",\"clinic\"],optionTitles:[\"JSON\",\"Service\",\"Article\",\"Clinic\"],defaultValue:\"json\",displaySegmentedControl:true},json:{type:ControlType.String,title:\"JSON-LD\",displayTextArea:true,defaultValue:\"\",hidden:p=>p.mode!==\"json\"},name:{type:ControlType.String,title:\"Name\",defaultValue:\"\",hidden:p=>p.mode!==\"service\"},summary:{type:ControlType.String,title:\"Summary\",defaultValue:\"\",hidden:p=>p.mode!==\"service\"},priceFrom:{type:ControlType.Number,title:\"Price from\",defaultValue:0,min:0,hidden:p=>p.mode!==\"service\"},slug:{type:ControlType.String,title:\"Slug\",defaultValue:\"\",hidden:p=>p.mode!==\"service\"},headline:{type:ControlType.String,title:\"Headline\",defaultValue:\"\",hidden:p=>p.mode!==\"article\"},excerpt:{type:ControlType.String,title:\"Excerpt\",defaultValue:\"\",hidden:p=>p.mode!==\"article\"},cover:{type:ControlType.ResponsiveImage,title:\"Cover\",hidden:p=>p.mode!==\"article\"},date:{type:ControlType.Date,title:\"Date\",hidden:p=>p.mode!==\"article\"},section:{type:ControlType.String,title:\"Section\",defaultValue:\"\",hidden:p=>p.mode!==\"article\"},blogSlug:{type:ControlType.String,title:\"Post slug\",defaultValue:\"\",hidden:p=>p.mode!==\"article\"},clinicName:{type:ControlType.String,title:\"Clinic name\",defaultValue:\"\",hidden:p=>p.mode!==\"clinic\"},street:{type:ControlType.String,title:\"Street\",defaultValue:\"\",hidden:p=>p.mode!==\"clinic\"},city:{type:ControlType.String,title:\"City\",defaultValue:\"\",hidden:p=>p.mode!==\"clinic\"},postcode:{type:ControlType.String,title:\"Postcode\",defaultValue:\"\",hidden:p=>p.mode!==\"clinic\"},photo:{type:ControlType.ResponsiveImage,title:\"Photo\",hidden:p=>p.mode!==\"clinic\"},mapLink:{type:ControlType.String,title:\"Map link\",defaultValue:\"\",hidden:p=>p.mode!==\"clinic\"},clinicSlug:{type:ControlType.String,title:\"Page slug\",defaultValue:\"\",hidden:p=>p.mode!==\"clinic\"},open:{type:ControlType.Boolean,title:\"Open\",defaultValue:true,hidden:p=>p.mode!==\"clinic\"},siteUrl:{type:ControlType.String,title:\"Site URL\",defaultValue:\"https://curitt.health\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"sKAAkL,SAAS,EAAU,EAAE,CAAC,IAAM,EAAI,EAAE,QAAQ,QAAQ,MAAM,EAAE,GAAG,EAAE,KAAK,aAAa,EAAE,KAAK,IAAU,EAAG,CAAC,WAAW,qBAAqB,QAAQ,CAAC,UAAU,aAAa,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,QAAQ,MAAI,SAAS,EAAI,WAAW,CAAC,CAAC,QAAQ,OAAO,KAAK,WAAW,EAAE,CAAC,QAAQ,OAAO,KAAK,SAAS,CAAC,EAAE,kBAAkB,CAAC,CAAC,MAAM,yCAAyC,EAAE,CAAC,MAAM,uCAAuC,CAAC,CAAC,EAAqL,OAAhL,EAAE,UAAU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