{"version":3,"file":"FAQMicrodata.C1gaPre6.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,oCAAoC,EAAE,GAAG,EAAc,SAAS,EAAE,CAAC,QAAQ,IAAI,+BAAqC,EAAE,MAAO,CAC3K,IAAM,EAAY,CAAC,EAAE,EAAc,QAAQ,GAAW,CAC4B,IAAM,EAAlE,EAAU,cAAc,kCAAqE,CAAC,EAAE,aAAa,KAAK,GAAG,GAEmB,GAAxI,EAAU,QAAQ,4BAAgE,CAAC,EAAE,cAAc,6BAA6B,EAAA,EAAkC,aAAa,KAAK,GAAG,GAC1M,GAAc,EAAY,KAAK,CAAC,QAAQ,WAAW,KAAK,EAAa,eAAe,CAAC,QAAQ,SAAS,KAAK,GAAY,iBAAuB,CAAC,CAAC,CAAG,CAAC,EACvJ,IAAM,EAAO,CAAC,WAAW,qBAAqB,QAAQ,UAAU,WAAW,CAAW,EAChF,EAAe,SAAS,eAAe,YAAY,EAAK,GAAe,EAAe,OAAO,EAAE,IAAM,EAAO,SAAS,cAAc,QAAQ,EAAE,EAAO,GAAG,aAAa,EAAO,KAAK,sBAAsB,EAAO,YAAY,KAAK,UAAU,EAAO,KAAK,CAAC,EAAE,SAAS,KAAK,YAAY,CAAM,CAAE,EAAE,GAAG,EAAuB,EAAK,EAAU,CAAK,MAAI,GAAG,CAAK,CAAC,EAAG,CAAE,qBARvT,IAA8B"}