1import{r as e,j as s}from"./react-core-DL6E4rCD.js";import{a as t,S as o}from"./use-layout-shuffle-qArz_BtD.js";import{U as a}from"./main-CgSL9a_g.js";import{u as i}from"./Index-aKd8LKYR.js";import{A as r,a as n,b as m,c as l}from"./accordion-Bho8YwDU.js";import{u as p}from"./router-D2UMI1Us.js";import"./auto-link-BsJzsAB5.js";import"./query-DIX-EoJg.js";import"./index-BI1WapHf.js";import"./radix-CC_5lH4a.js";import"./supabase-BcDZgFaI.js";import"./ui-utils-fzKV8Oe-.js";import"./Layout-1pSDfgyh.js";import"./use-auth-CoSs-Phq.js";import"./ServiceLink-C-LaAwid.js";import"./icons-DX6s9CRQ.js";import"./use-city-location-Catiyhhr.js";import"./GoogleReviewsBanner-C5fQRqK5.js";import"./fallback-reviews-DJJZWXxk.js";import"./LocalBonusAlert-B_RBdylx.js";import"./use-in-view-CLI9aUpC.js";const d=({preposition:d,locationText:c})=>{const{city:u}=p(),x=t("home","faq",u),j=i(d,c),h=x?.headings?.length&&x?.bodies?.length?x.headings.map((e,s)=>({question:j(e),answer:x.bodies[s]?"string"==typeof x.bodies[s]?j(x.bodies[s]):x.bodies[s].map(j).join(" "):""})).filter(e=>e.question&&e.answer):[];return e.useEffect(()=>{if(0!==h.length)return a("faq",{"@context":"https://schema.org","@type":"FAQPage",mainEntity:h.map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer.replace(/<[^>]+>/g,"")}}))}),()=>{document.querySelector('script[data-jsonld="faq"]')?.remove()}},[h]),0===h.length?null:s.jsxs("section",{className:"mb-10 md:mb-14 scroll-reveal",children:[s.jsx("h2",{className:"text-lg sm:text-xl md:text-2xl font-extrabold tracking-tight mb-4 sm:mb-6",children:"Questions fréquentes"}),s.jsx(r,{type:"multiple",defaultValue:["faq-0"],className:"space-y-1.5 sm:space-y-2",children:h.map((e,t)=>s.jsx("div",{style:{contentVisibility:t>2?"auto":void 0,containIntrinsicSize:t>2?"0 72px":void 0},children:s.jsxs(n,{value:`faq-${t}`,className:"bg-card border border-border rounded-xl sm:rounded-2xl px-4 sm:px-5 overflow-hidden data-[state=open]:shadow-md transition-shadow",children:[s.jsx(m,{className:"text-[13px] sm:text-sm font-bold text-left py-3.5 sm:py-4 min-h-[44px] gap-3 hover:no-underline [&[data-state=open]]:text-primary [&>svg]:shrink-0 transition-colors",children:e.question}),s.jsx(l,{className:"pb-4 text-[13px] sm:text-sm leading-relaxed",children:s.jsx(o,{paragraphs:[e.answer]})})]})},t))})]})};export{d as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.