{"version":3,"file":"DonneesStructurees.DabebdGR.mjs","names":["React.forwardRef"],"sources":["https:/framerusercontent.com/modules/Hq1ptraqkvO6PmzZ9QRI/cWnSJP6jYloFJqNjRi06/qwOfDwFZa.js","https:/framerusercontent.com/modules/CyDxhpdEkRubYYEoRlZx/STYKwpdaJumFBmNmgc4y/DonneesStructurees.js"],"sourcesContent":["// Generated by Framer (85eaff3)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,useSVGTemplate,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const Base=/*#__PURE__*/forwardRef(function(props,ref){return /*#__PURE__*/_jsx(\"svg\",{...props,ref:ref,children:props.children});});const MotionSVG=motion.create(Base);const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(MotionSVG,{...rest,layoutId:layoutId,ref:ref,children:children}):/*#__PURE__*/_jsx(\"svg\",{...rest,ref:ref,children:children});});const svg='<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 2 14 C 0.895 14 0 13.105 0 12 L 0 2 C 0 0.895 0.895 0 2 0 L 18 0 C 19.105 0 20 0.895 20 2 L 20 12 C 20 13.105 19.105 14 18 14 Z\" fill=\"transparent\" height=\"14px\" id=\"zDKWlx1Da\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(2 3)\" width=\"20px\"/><path d=\"M 0 0 L 8 0\" fill=\"transparent\" height=\"1px\" id=\"xUWr9gLZX\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(8 21)\" width=\"8px\"/><path d=\"M 0 0 L 0 4\" fill=\"transparent\" height=\"4px\" id=\"z2XqAfDU8\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(12 17)\" width=\"1px\"/></svg>';const getProps=({color,height,id,width,width1,...props})=>{return{...props,JEeZYcamG:width1??props.JEeZYcamG??2,P_DcoRcrY:color??props.P_DcoRcrY??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,P_DcoRcrY,JEeZYcamG,...restProps}=getProps(props);const href=useSVGTemplate(\"4199002263\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-QhhDJ\",className),layoutId:layoutId,ref:ref,role:\"presentation\",style:{\"--1m973uw\":P_DcoRcrY,\"--js9iwy\":JEeZYcamG,...style},viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"use\",{href:href})});});const css=[`.framer-QhhDJ { -webkit-mask: ${mask}; aspect-ratio: 1; display: block; mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"P_DcoRcrY\":\"color\",\"JEeZYcamG\":\"width1\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Monitor\",\"color\":{\"type\":\"variable\",\"value\":\"1m973uw\"},\"set\":{\"localId\":\"vectorSet/ZsiCCGPvG\",\"id\":\"ZsiCCGPvG\",\"moduleId\":\"Y7SpbVH16cWqMhj75z1M\"}}\n */const Icon=withCSS(Component,css,\"framer-QhhDJ\");Icon.displayName=\"Monitor\";export default Icon;addPropertyControls(Icon,{P_DcoRcrY:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Color\",type:ControlType.Color},JEeZYcamG:{defaultValue:2,displayStepper:true,hidden:false,max:16,min:1,title:\"Width\",type:ControlType.Number}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerVector\":\"{\\\"name\\\":\\\"Monitor\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"1m973uw\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/ZsiCCGPvG\\\",\\\"id\\\":\\\"ZsiCCGPvG\\\",\\\"moduleId\\\":\\\"Y7SpbVH16cWqMhj75z1M\\\"}}\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"24\",\"framerIntrinsicWidth\":\"24\",\"framerImmutableVariables\":\"true\",\"framerVariables\":\"{\\\"P_DcoRcrY\\\":\\\"color\\\",\\\"JEeZYcamG\\\":\\\"width1\\\"}\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Données structurées (JSON-LD) des pages de contenu de PROCOMS, invisibles à l'écran.\n * Une instance par gabarit CMS, réglée par « Page » : Formation (fiche), Parcours,\n * Évènement (Agenda) ou Ressource, avec le fil d'Ariane. Les champs sont reliés au CMS.\n * Rien d'inventé : un prix n'apparaît que s'il est écrit dans le CMS.\n * L'organisation elle-même est décrite une seule fois dans le code du site (en-tête) :\n * on n'y renvoie que par son identifiant.\n *\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */const SITE=\"https://www.procoms.ca\";const ORG={\"@id\":SITE+\"/#organisation\"};const SITE_WEB={\"@id\":SITE+\"/#site\"};const PARENTS={Formation:[\"Formations\",\"/formations\"],Parcours:[\"Formations\",\"/formations\"],\"\\xc9v\\xe8nement\":[\"Ressources\",\"/ressources\"],Ressource:[\"Ressources\",\"/ressources\"]};const DOSSIERS={Formation:\"/formations/\",Parcours:\"/parcours/\",\"\\xc9v\\xe8nement\":\"/evenements/\",Ressource:\"/produits-digitaux/\"};const src=v=>(typeof v===\"string\"?v:v?.src)||undefined;const instant=v=>{if(!v)return undefined;const d=new Date(v);return isNaN(d.getTime())?undefined:d.toISOString();};const montant=v=>{const m=String(v??\"\").replace(/[\\s  ]/g,\"\").match(/(\\d+(?:[.,]\\d+)?)/);return m?m[1].replace(\",\",\".\"):undefined;};const nettoie=o=>JSON.parse(JSON.stringify(o));function filAriane(elements){return{\"@type\":\"BreadcrumbList\",itemListElement:elements.map(([nom,url],i)=>({\"@type\":\"ListItem\",position:i+1,name:nom,item:url}))};}export default function DonneesStructurees(props){const{page,titre,description,slug,image,date,dateFin,prix,format,niveaux,formatrice}=props;const enLigne=!format||/en ligne|virtuel|zoom|webinaire|distance/i.test(String(format));if(!titre||!slug)return null;const url=SITE+DOSSIERS[page]+slug;const img=src(image);const graphe=[];if(page===\"Formation\"||page===\"Parcours\"){const p=montant(prix);graphe.push({\"@type\":\"Course\",\"@id\":url+\"#formation\",name:page===\"Formation\"?\"Formation \"+titre:\"Parcours \"+titre,description:description||undefined,url,image:img?[img]:undefined,inLanguage:\"fr-CA\",provider:ORG,hasCourseInstance:[{\"@type\":\"CourseInstance\",courseMode:\"Onsite\",location:{\"@type\":\"AdministrativeArea\",name:\"Qu\\xe9bec\"},instructor:formatrice?{\"@type\":\"Person\",name:formatrice}:undefined},{\"@type\":\"CourseInstance\",courseMode:\"Online\",instructor:formatrice?{\"@type\":\"Person\",name:formatrice}:undefined}],offers:p?{\"@type\":\"Offer\",price:p,priceCurrency:\"CAD\",category:\"Paid\",url}:undefined});}else if(page===\"\\xc9v\\xe8nement\"){const debut=instant(date);const p=montant(prix);graphe.push(debut?{\"@type\":\"Event\",\"@id\":url+\"#evenement\",name:titre,description:description||undefined,url,image:img?[img]:undefined,startDate:debut,endDate:instant(dateFin)||undefined,eventStatus:\"https://schema.org/EventScheduled\",eventAttendanceMode:enLigne?\"https://schema.org/OnlineEventAttendanceMode\":\"https://schema.org/OfflineEventAttendanceMode\",location:enLigne?{\"@type\":\"VirtualLocation\",url}:undefined,organizer:ORG,performer:{\"@type\":\"Person\",name:\"Sarah Bouchkhi\"},inLanguage:\"fr-CA\",offers:{\"@type\":\"Offer\",price:p||\"0\",priceCurrency:\"CAD\",availability:\"https://schema.org/InStock\",url}}:{\"@type\":\"WebPage\",name:titre,description:description||undefined,url,isPartOf:SITE_WEB,inLanguage:\"fr-CA\"});}else if(page===\"Ressource\"){graphe.push({\"@type\":\"CreativeWork\",name:titre,description:description||undefined,url,image:img?[img]:undefined,author:ORG,publisher:ORG,inLanguage:\"fr-CA\"});}const parent=PARENTS[page];if(parent)graphe.push(filAriane([[\"Accueil\",SITE+\"/\"],[parent[0],SITE+parent[1]],[titre,url]]));if(!graphe.length)return null;const json=JSON.stringify(nettoie({\"@context\":\"https://schema.org\",\"@graph\":graphe})).replace(/</g,\"\\\\u003c\");return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{width:1,height:1,overflow:\"hidden\",position:\"absolute\",pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}})});}DonneesStructurees.defaultProps={page:\"Formation\"};addPropertyControls(DonneesStructurees,{page:{type:ControlType.Enum,title:\"Page\",options:[\"Formation\",\"Parcours\",\"\\xc9v\\xe8nement\",\"Ressource\"],defaultValue:\"Formation\"},titre:{type:ControlType.String,title:\"Titre\"},description:{type:ControlType.String,title:\"Description\",displayTextArea:true},slug:{type:ControlType.String,title:\"Slug\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"},date:{type:ControlType.Date,title:\"Date\",hidden:p=>p.page!==\"\\xc9v\\xe8nement\"},dateFin:{type:ControlType.Date,title:\"Date de fin\",hidden:p=>p.page!==\"\\xc9v\\xe8nement\"},format:{type:ControlType.String,title:\"Format\",hidden:p=>p.page!==\"\\xc9v\\xe8nement\"},prix:{type:ControlType.String,title:\"Prix\",hidden:p=>p.page===\"Ressource\"},niveaux:{type:ControlType.Number,title:\"Niveaux\",hidden:p=>p.page!==\"Formation\"},formatrice:{type:ControlType.String,title:\"Formatrice\",hidden:p=>p.page!==\"Formation\"&&p.page!==\"Parcours\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DonneesStructurees\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DonneesStructurees.map"],"mappings":"yQAC0C,IAAqF,IAA4B,EAAqC,EAAK,0BAAgC,EAAkB,EAAW,SAAS,EAAM,EAAI,CAAC,OAAoB,EAAK,MAAM,CAAC,GAAG,EAAU,MAAI,SAAS,EAAM,QAAQ,CAAC,CAAE,CAAC,EAAQ,EAAU,EAAO,OAAO,CAAI,EAAQ,EAAiB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAG,GAAM,EAAM,OAAO,EAAsB,EAAK,EAAU,CAAC,GAAG,EAAc,WAAa,MAAa,UAAQ,CAAC,EAAe,EAAK,MAAM,CAAC,GAAG,EAAS,MAAa,UAAQ,CAAC,CAAE,CAAC,EAAQ,EAAI,g8BAAs8B,GAAU,CAAC,QAAM,SAAO,KAAG,QAAM,SAAO,GAAG,MAAgB,CAAC,GAAG,EAAM,UAAU,GAAQ,EAAM,WAAW,EAAE,UAAU,GAAO,EAAM,WAAW,cAAc,GAS5uD,EAAK,EATwwDA,EAAiB,SAAS,EAAM,EAAI,CAAC,GAAK,CAAC,QAAM,YAAU,WAAS,UAAQ,YAAU,YAAU,GAAG,GAAW,EAAS,CAAK,EAAQ,EAAK,EAAe,aAAa,CAAG,EAAE,OAAoB,EAAK,EAAI,CAAC,GAAG,EAAU,UAAU,EAAG,eAAe,CAAS,EAAW,WAA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