{"version":3,"file":"StructuredData.CnIFVarE.mjs","names":["__esmMin","init_jsx_runtime","c","addPropertyControls","init_framer_BCvOrpQq","ControlType","StructuredData","headline","img","image","data","schemaType","description","sameAs","ORG","datePublished","endDate","city","venue","json","init_StructuredData"],"sources":["https:/framerusercontent.com/modules/wXL24E94SCmuHY1rVqtf/X658ktloGvCqzVS5RKoc/StructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * StructuredData — invisible schema.org JSON-LD for CMS detail pages. Place one instance per template and bind its\n * controls to the page's CMS fields: Article/BlogPosting for blog, guides, reports, stories and product updates; Event\n * for events and webinars; Person for author pages (Headline = name, Description = job title). Renders a single <script type=\"application/ld+json\"> (SSR), nothing visible.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */const ORG={\"@type\":\"Organization\",name:\"Marcura\",url:\"https://marcura.com\"};export default function StructuredData({schemaType,headline,description,image,datePublished,endDate,city,venue,sameAs}){if(!headline)return null;const img=image?.src?[image.src.split(\"?\")[0]]:undefined;const data=schemaType===\"Person\"?{\"@context\":\"https://schema.org\",\"@type\":\"Person\",name:headline,jobTitle:description||undefined,image:img?.[0],sameAs:sameAs?[sameAs]:undefined,worksFor:ORG}:schemaType===\"Event\"?{\"@context\":\"https://schema.org\",\"@type\":\"Event\",name:headline,description:description||undefined,image:img,startDate:datePublished||undefined,endDate:endDate||undefined,// An event with a city or venue is in person; otherwise it is an online webinar.\neventAttendanceMode:city||venue?\"https://schema.org/OfflineEventAttendanceMode\":\"https://schema.org/OnlineEventAttendanceMode\",location:city||venue?{\"@type\":\"Place\",name:venue||city,address:city||venue}:{\"@type\":\"VirtualLocation\",url:\"https://marcura.com/resources/events\"},organizer:ORG}:{\"@context\":\"https://schema.org\",\"@type\":schemaType,headline:headline.slice(0,110),description:description||undefined,image:img,datePublished:datePublished||undefined,author:ORG,publisher:ORG};// \"<\" escaped so CMS text can never close the script tag.\nconst json=JSON.stringify(data).replace(/</g,\"\\\\u003c\");return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}});}StructuredData.displayName=\"Structured data\";addPropertyControls(StructuredData,{schemaType:{type:ControlType.Enum,title:\"Type\",options:[\"Article\",\"BlogPosting\",\"Event\",\"Person\"],defaultValue:\"Article\"},headline:{type:ControlType.String,title:\"Headline\"},description:{type:ControlType.String,title:\"Description\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"},datePublished:{type:ControlType.Date,title:\"Date\"},endDate:{type:ControlType.Date,title:\"End date\"},city:{type:ControlType.String,title:\"City\"},venue:{type:ControlType.String,title:\"Venue\"},sameAs:{type:ControlType.Link,title:\"Profile URL\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"A,4JAO+E,SAAwBM,EAAe,CAAC,aAAW,WAAS,cAAY,QAAM,gBAAc,UAAQ,OAAK,QAAM,UAAQ,CAAC,GAAG,CAACC,EAAS,OAAO,KAAK,IAAMC,EAAIC,GAAO,IAAI,CAACA,EAAM,IAAI,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,IAAA,GAAgBC,EAAKC,IAAa,SAAS,CAAC,WAAW,qBAAqB,QAAQ,SAAS,KAAKJ,EAAS,SAASK,GAAa,IAAA,GAAU,MAAMJ,IAAM,GAAG,OAAOK,EAAO,CAACA,CAAM,EAAE,IAAA,GAAU,SAASC,CAAG,EAAEH,IAAa,QAAQ,CAAC,WAAW,qBAAqB,QAAQ,QAAQ,KAAKJ,EAAS,YAAYK,GAAa,IAAA,GAAU,MAAMJ,EAAI,UAAUO,GAAe,IAAA,GAAU,QAAQC,GAAS,IAAA,GAC7oB,oBAAoBC,GAAMC,EAAM,gDAAgD,+CAA+C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