{"version":3,"file":"AcademyStructuredData.DkXycdKu.mjs","names":[],"sources":["https:/framerusercontent.com/modules/cDkju8Lv3l8qMKPKbmDy/Qw5xekQZY8w4Bar4WmP6/AcademyStructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function AcademyStructuredData(props){const{kind=\"Course\",title=\"\",description=\"\",slug=\"\",startDate=\"\",endDate=\"\",city=\"\",address=\"\",postcode=\"\",booking=\"\",price=899,capacity=15,style}=props;if(!title||!slug)return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\"},\"aria-hidden\":\"true\"});const provider={\"@type\":\"Organization\",name:\"Certif-IA\",url:\"https://www.certif-ia.fr\"};const url=`https://www.certif-ia.fr/academy/${kind===\"Event\"?\"sessions\":\"formations\"}/${encodeURIComponent(slug)}`;let data={\"@context\":\"https://schema.org\",\"@type\":\"Course\",\"@id\":`${url}#formation`,name:title,description,url,provider,inLanguage:\"fr\",timeRequired:\"PT14H\"};if(kind===\"Event\"){if(!startDate||!endDate||!city||!address||!booking)return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\"},\"aria-hidden\":\"true\"});data={\"@context\":\"https://schema.org\",\"@type\":\"EducationEvent\",\"@id\":`${url}#session`,name:title,description,url,startDate,endDate,eventStatus:\"https://schema.org/EventScheduled\",eventAttendanceMode:\"https://schema.org/OfflineEventAttendanceMode\",inLanguage:\"fr\",maximumAttendeeCapacity:capacity,organizer:provider,location:{\"@type\":\"Place\",name:`Formation Certif-IA \\xb7 ${city}`,address:{\"@type\":\"PostalAddress\",streetAddress:address,addressLocality:city,postalCode:postcode,addressCountry:\"FR\"}},offers:{\"@type\":\"Offer\",url:booking,price,priceCurrency:\"EUR\"}};}const json=JSON.stringify(data).replace(/</g,\"\\\\u003c\");return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",pointerEvents:\"none\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}})});}addPropertyControls(AcademyStructuredData,{kind:{type:ControlType.Enum,options:[\"Course\",\"Event\"],defaultValue:\"Course\",title:\"Type\"},title:{type:ControlType.String,defaultValue:\"\",title:\"Titre\"},description:{type:ControlType.String,defaultValue:\"\",title:\"Description\"},slug:{type:ControlType.String,defaultValue:\"\",title:\"Slug\"},startDate:{type:ControlType.Date,title:\"D\\xe9but\"},endDate:{type:ControlType.Date,title:\"Fin\"},city:{type:ControlType.String,defaultValue:\"\",title:\"Ville\"},address:{type:ControlType.String,defaultValue:\"\",title:\"Adresse\"},postcode:{type:ControlType.String,defaultValue:\"\",title:\"Code postal\"},booking:{type:ControlType.Link,defaultValue:\"\",title:\"R\\xe9servation\"},price:{type:ControlType.Number,defaultValue:899,title:\"Prix TTC\"},capacity:{type:ControlType.Number,defaultValue:15,title:\"Participants\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AcademyStructuredData\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AcademyStructuredData.map"],"mappings":"4JAGG,SAAwB,EAAsB,EAAM,CAAC,GAAK,CAAC,OAAK,SAAS,QAAM,GAAG,cAAY,GAAG,OAAK,GAAG,YAAU,GAAG,UAAQ,GAAG,OAAK,GAAG,UAAQ,GAAG,WAAS,GAAG,UAAQ,GAAG,QAAM,IAAI,WAAS,GAAG,SAAO,EAAM,GAAG,CAAC,GAAO,CAAC,EAAK,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,SAAS,UAAU,EAAE,cAAc,MAAM,CAAC,EAAE,IAAM,EAAS,CAAC,QAAQ,eAAe,KAAK,YAAY,I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