{"version":3,"file":"ProgrammeDynamique.DBzq5rPi.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/AOtYiRBHtlAPL2J6x3Br/Qfgfpv4e3DgJpXDxfGlY/ProgrammeDynamique.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";// Fonction utilitaire pour obtenir le paramètre de l'URL\nfunction getQueryParam(param){const urlParams=new URLSearchParams(window.location.search);return urlParams.get(param);}/**\n * @framerDisableUnlink\n * @framerIntrinsicWidth 100\n * @framerIntrinsicHeight 100\n */export function withDynamicText(Component){return props=>{const[text,setText]=useState(props.text);useEffect(()=>{const formation=getQueryParam(\"formation\");switch(formation){case\"bootcamp-product\":setText(\"Recevoir le programme du Bootcamp Product\");break;case\"bootcamp-dev\":setText(\"Recevoir le programme du Bootcamp Developer\");break;case\"bootcamp-dev-pro\":setText(\"Recevoir le programme du Bootcamp Developer en alternance\");break;case\"bootcamp-advanced\":setText(\"Recevoir le programme du Bootcamp Advanced\");break;case\"ottho-sprint\":setText(\"Recevoir le programme de l'Ottho sprint\");break;case\"commercial-ia\":setText(\"Recevoir le programme des Nocturnes de l'IA\");break;case\"nocturne-ia\":setText(\"Recevoir le programme des Nocturnes de l'IA\");break;case\"bootcamp-side-project\":setText(\"Recevoir le programme du Bootcamp Side Project\");break;default:setText(props.text)// Texte par défaut\n;break;}},[]);return /*#__PURE__*/_jsx(Component,{...props,text:text});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withDynamicText\":{\"type\":\"reactHoc\",\"name\":\"withDynamicText\",\"annotations\":{\"framerIntrinsicHeight\":\"100\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"* @framerIntrinsicWidth 100\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProgrammeDynamique.map"],"mappings":"uIACA,SAAS,EAAc,EAAM,CAA6D,OAA5C,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAAkB,IAAI,EAAM,CAIlH,SAAgB,EAAgB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAK,GAASA,EAAS,EAAM,KAAK,CACvF,OADwF,MAAc,CAA4C,OAA3B,EAAc,YAAY,CAAC,CAAkB,IAAI,mBAAmB,EAAQ,4CAA4C,CAAC,MAAM,IAAI,eAAe,EAAQ,8CAA8C,CAAC,MAAM,IAAI,mBAAmB,EAAQ,4DAA4D,CAAC,MAAM,IAAI,oBAAoB,EAAQ,6CAA6C,CAAC,MAAM,IAAI,eAAe,EAAQ,0CAA0C,CAAC,MAAM,IAAI,gBAAgB,EAAQ,8CAA8C,CAAC,MAAM,IAAI,cAAc,EAAQ,8CAA8C,CAAC,MAAM,IAAI,wBAAwB,EAAQ,iDAAiD,CAAC,MAAM,QAAQ,EAAQ,EAAM,KAAK,CAC52B,QAAS,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAW,OAAK,CAAC,uBAN3B,IAAsC"}