{"version":3,"file":"FAQMicrodata.CCjDFB6p.mjs","names":[],"sources":["https:/framerusercontent.com/modules/crrqsMEcdRHpmOsbNIMu/hapmLRJnLhYHN9uCAGCS/FAQMicrodata.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";export function withFAQJSONLD(Component){return /*#__PURE__*/forwardRef((props,ref)=>{if(typeof window!==\"undefined\"&&typeof document!==\"undefined\"){setTimeout(()=>{// Rechercher tous les composants FAQ dans la page\nconst faqContainers=document.querySelectorAll('[data-framer-name=\"faq_container\"]');if(faqContainers.length===0){console.log(\"Aucun FAQ d\\xe9tect\\xe9 sur la page\");return;}// Construire le tableau des questions/réponses\nconst faqEntities=[];faqContainers.forEach(container=>{// Récupérer le texte de la question\nconst questionElement=container.querySelector('[data-framer-name=\"question\"] h3');const questionText=questionElement?.textContent?.trim()||\"\";// Récupérer le texte de la réponse\n// Chercher dans le conteneur parent pour trouver la réponse associée\nconst parentContainer=container.closest('[data-framer-name=\"Close\"]');const answerElement=parentContainer?.querySelector('[data-framer-name=\"answer\"]');const answerText=answerElement?.textContent?.trim()||\"\";// Ajouter à la liste si on a au moins une question\nif(questionText){faqEntities.push({\"@type\":\"Question\",name:questionText,acceptedAnswer:{\"@type\":\"Answer\",text:answerText||\"R\\xe9ponse \\xe0 venir\"}});}});// Construire le JSON-LD complet\nconst jsonLD={\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",mainEntity:faqEntities};// Nettoyer et injecter\nconst existingScript=document.getElementById(\"faq-jsonld\");if(existingScript)existingScript.remove();const script=document.createElement(\"script\");script.id=\"faq-jsonld\";script.type=\"application/ld+json\";script.textContent=JSON.stringify(jsonLD,null,2);document.head.appendChild(script);},1e3);}return /*#__PURE__*/_jsx(Component,{ref:ref,...props});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withFAQJSONLD\":{\"type\":\"reactHoc\",\"name\":\"withFAQJSONLD\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQMicrodata.map"],"mappings":"gIAAyE,SAAgB,EAAc,EAAU,CAAC,OAAoB,GAAY,EAAM,KAAiB,IAAS,QAAa,OAAO,SAAW,KAAa,eAAe,CAC7O,IAAM,EAAc,SAAS,iBAAiB,qCAAqC,CAAC,GAAG,EAAc,SAAS,EAAE,CAAC,QAAQ,IAAI,gCAAsC,CAAC,OACpK,IAAM,EAAY,EAAE,CAAC,EAAc,QAAQ,GAAW,CAC4B,IAAM,EAAlE,EAAU,cAAc,mCAAmC,EAAqC,aAAa,MAAM,EAAE,GAEmB,GAAxI,EAAU,QAAQ,6BAA6B,EAAsC,cAAc,8BAA8B,GAAiC,aAAa,MAAM,EAAE,GAC1M,GAAc,EAAY,KAAK,CAAC,QAAQ,WAAW,KAAK,EAAa,eAAe,CAAC,QAAQ,SAAS,KAAK,GAAY,kBAAwB,CAAC,CAAC,EAAI,CACxJ,IAAM,EAAO,CAAC,WAAW,qBAAqB,QAAQ,UAAU,WAAW,EAAY,CACjF,EAAe,SAAS,eAAe,aAAa,CAAI,GAAe,EAAe,QAAQ,CAAC,IAAM,EAAO,SAAS,cAAc,SAAS,CAAC,EAAO,GAAG,aAAa,EAAO,KAAK,sBAAsB,EAAO,YAAY,KAAK,UAAU,EAAO,KAAK,EAAE,CAAC,SAAS,KAAK,YAAY,EAAO,EAAG,IAAI,CAAsB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,CAAC,EAAG,sBARrT,IAA8B"}