1import{m as v,t as s,p as c,C as n,E as F,f as u,_ as x,G as m,y as C,z as d,x as p,F as k,A,q as _,N,I as w,r as L,L as Q}from"./CG0zx5Uh.js";import S from"./CzXH5ZHh.js";const T={class:"BlockFaq__title"},E={__name:"BlockFaq",props:{blok:{type:Object,required:!0}},setup(t){const a=t,o=L(5),g=()=>{o.value=a.blok.questions.length},f=u(()=>a.blok.questions.slice(0,o.value)),b=e=>e?Q(e).replace(/<[^>]*>/g,"").replace(/ /g," ").replace(/"/g,'"').replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").trim():"",r=u(()=>!a.blok?.questions||a.blok.questions.length===0?null:{"@context":"https://schema.org","@type":"FAQPage",mainEntity:a.blok.questions.map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:b(e.answer)}}))});return v(()=>r.value?{script:[{type:"application/ld+json",innerHTML:JSON.stringify(r.value)}]}:{}),(e,h)=>{const l=x,q=S,B=N;return s(),c(l,{id:t.blok.anchor,tag:"section",class:F(["BlockFaq paddingBlock",t.blok.backgroundColor])},{default:n(()=>[m(l,{tag:"div",class:"BlockFaq__content siteWidthMedium"},{default:n(()=>[C("h2",T,d(t.blok.title),1)]),_:1}),m(l,{tag:"div",class:"siteWidthSmall"},{default:n(()=>[(s(!0),p(k,null,A(f.value,(i,y)=>(s(),p(k,{key:i._uid},[y<o.value?(s(),c(q,{key:0,blok:i},null,8,["blok"])):_("",!0)],64))),128))]),_:1}),o.value<t.blok.questions.length?(s(),c(B,{key:0,class:"BlockFaq__button",onClick:g},{default:n(()=>[w(d(e.$t("components.BlockFaq.showAll")),1)]),_:1})):_("",!0)]),_:1},8,["id","class"])}}};export{E 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.