1import{Q as L,u as q,r as k,j as e,U as S,H as $,L as m,T as A}from"./index-CrAQqJ_y.js";import{H as E,F as O}from"./Footer-CuVdNPh_.js";import{T as F}from"./TrustBar-DXwc9c7B.js";import{getFaqPageContent as T}from"./faqPageContent-BuhTrxAC.js";import{W as B}from"./WebPageSchema-DGFU0ry-.js";import{B as C}from"./Breadcrumbs-DzI3ldhA.js";import{u as P}from"./useSeoMeta-ClvMDi7L.js";import{R as z,f as I}from"./RelatedTopicLinks-BqCV04q8.js";import{A as Q}from"./arrow-left-D4dVcBGa.js";import{A as H}from"./arrow-right-DuRRVaZP.js";import"./blogArticlesByLang-DlRTIWLy.js";import"./circle-help-DvYABYAy.js";import"./sparkles-BR0uTdJE.js";const p={algemeen:"general",modellen:"models",installatie:"installation",onderhoud:"maintenance",crowntap:"crowntap"},te=()=>{const{category:f}=L(),{lang:u,localePath:n}=q(),a=T(u),[j,b]=k.useState(null),o=f??"";if(!(o in p))return e.jsx(S,{to:n("/faq"),replace:!0});const y=p[o],s=a.categories[y],d=a.faqs.filter(t=>t.category===s),{canonicalUrl:r,ogLocale:w}=P(`/faq/${o}`),c=`${s} â ${a.meta.title}`,i=`${s}: ${a.meta.description}`,g=t=>t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,80),h={nl:"nl-BE",fr:"fr-BE",de:"de-BE",en:"en",es:"es"}[u]??"nl-BE",N={"@context":"https://schema.org","@type":"FAQPage","@id":`${r}#faqpage`,url:r,name:c,description:i,inLanguage:h,isPartOf:{"@type":"WebSite","@id":"https://crowntap.be/#website"},publisher:{"@type":"Organization","@id":"https://crowntap.be/#organization"},dateModified:new Date().toISOString().split("T")[0],about:{"@type":"Thing",name:s},mainEntity:d.map(t=>({"@type":"Question","@id":`${r}#q-${g(t.question)}`,name:t.question,answerCount:1,acceptedAnswer:{"@type":"Answer",text:t.answer,inLanguage:h,author:{"@type":"Organization","@id":"https://crowntap.be/#organization"}}})),speakable:{"@type":"SpeakableSpecification",cssSelector:["h1","[data-speakable='true']"]}},v={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://crowntap.be/"},{"@type":"ListItem",position:2,name:"FAQ",item:"https://crowntap.be/faq"},{"@type":"ListItem",position:3,name:s,item:r}]};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsxs($,{children:[e.jsx("title",{children:c}),e.jsx("meta",{name:"description",content:i}),e.jsx("link",{rel:"canonical",href:r}),e.jsx("meta",{name:"robots",content:"index, follow"}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("meta",{property:"og:locale",content:w}),e.jsx("meta",{property:"og:site_name",content:"Crowntap"}),e.jsx("meta",{property:"og:url",content:r}),e.jsx("meta",{property:"og:title",content:c}),e.jsx("meta",{property:"og:description",content:i}),e.jsx("meta",{property:"og:image",content:"https://crowntap.be/images/lifestyle/cube-water-bottle.webp"}),e.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(N)}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(v)})]}),e.jsx(B,{name:c,description:i,url:r,type:"WebPage"}),e.jsx(E,{}),e.jsx(C,{items:[{label:"FAQ",href:"/faq"},{label:s}]}),e.jsx(F,{}),e.jsx("section",{className:"relative py-16 md:py-20 bg-gradient-to-b from-muted/50 to-background",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl mx-auto space-y-4",children:[e.jsxs(m,{to:n("/faq"),className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-primary",children:[e.jsx(Q,{className:"w-4 h-4"})," ",a.categories.all]}),e.jsx("h1",{className:"text-3xl md:text-5xl font-bold text-foreground",children:s}),e.jsx("p",{className:"text-lg text-muted-foreground speakable","data-speakable":"true",children:i})]})})}),e.jsx("section",{className:"py-12 bg-background",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"max-w-3xl mx-auto space-y-3",children:[d.length===0&&e.jsx("p",{className:"text-muted-foreground text-center",children:"â"}),d.map((t,x)=>{const l=j===x;return e.jsxs("div",{id:`q-${g(t.question)}`,"data-speakable":"true",className:"bg-card border rounded-xl overflow-hidden scroll-mt-24",children:[e.jsxs("button",{onClick:()=>b(l?null:x),className:"w-full flex items-center justify-between p-5 text-left","aria-expanded":l,children:[e.jsx("span",{className:"font-medium text-foreground pr-4",children:t.question}),e.jsx(A,{className:`w-5 h-5 text-muted-foreground shrink-0 transition-transform duration-200 ${l?"rotate-180":""}`})]}),l&&e.jsx("div",{className:"px-5 pb-5 pt-0",children:e.jsx("p",{className:"text-muted-foreground leading-relaxed",children:t.answer})})]},x)})]}),e.jsxs("div",{className:"max-w-3xl mx-auto mt-12",children:[e.jsx("h2",{className:"text-xl font-bold text-foreground mb-4",children:"FAQ-categorieën"}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:Object.keys(p).filter(t=>t!==o).map(t=>e.jsx(m,{to:n(`/faq/${t}`),className:"border rounded-lg p-3 text-center hover:border-primary hover:text-primary text-sm font-medium",children:a.categories[p[t]]},t))})]})]})}),e.jsx("section",{className:"py-16 bg-muted",children:e.jsxs("div",{className:"container mx-auto px-4 text-center space-y-5",children:[e.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground",children:a.cta.title}),e.jsx("p",{className:"text-muted-foreground max-w-lg mx-auto",children:a.cta.desc}),e.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[e.jsx(m,{to:n("/contact"),children:e.jsxs("button",{className:"bg-primary hover:bg-primary/90 text-primary-foreground rounded-full px-8 py-3 font-semibold inline-flex items-center gap-2",children:[a.cta.contact," ",e.jsx(H,{className:"w-5 h-5"})]})}),e.jsx(m,{to:n("/configurator"),children:e.jsx("button",{className:"border border-border text-foreground hover:bg-muted rounded-full px-8 py-3 font-semibold",children:a.cta.configurator})})]})]})}),(()=>{const t=I[o]||[];return t[0]?e.jsx(z,{topic:t[0]}):null})(),e.jsx(O,{})]})};export{te 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.