1import{_ as D}from"./TheBlockGenerator.tXEc3AGa.js";import E from"./BlockSeparator.9_w0jJaI.js";import{r as L,a as q,l as R,u as v,w,d as s,o,e as n,p as _,q as h,B as $,f as r,j as B,F as j,E as A,L as I,_ as P,h as V,M as O}from"./entry.weqdhQQb.js";import{_ as G}from"./UiMobileSpacer.bMJNZ5EK.js";import{_ as Y}from"./UiNarrow.DZyfLysu.js";import{_ as Z}from"./CardFaq.Ci1cSlYd.js";import{_ as z,a as H}from"./UiContainer.BnjOOvkb.js";import{u as J}from"./useMeilisearch.D_bcDRS_.js";import{M as K}from"./components.QPg6xSyv.js";import{u as Q}from"./useBackendError.CwEUCOC8.js";import{u as W}from"./fetch.CarCpX63.js";import{u as X}from"./usePage.m7REBOwZ.js";import"./UiArticleInfos.D4dBqBEj.js";import"./UiMetadata.DNUGwH1X.js";import"./useFormatDate.Dz-DemFP.js";import"./useResolveDate.Nv5fgosO.js";import"./useLayout.D22b0UbM.js";const ee={class:"mb-16 grid gap-5 sm:grid-cols-2 lg:grid-cols-4"},te={__name:"TheRelatedFaqs",props:{category:{type:[String,Number],required:!0}},async setup(k){let a,l;const i=k,c=L([]),m=q(),{common:u}=R(),{search:e}=J(),{locale:p}=v(),b=u.value.faqs_categories.find(t=>String(t.id)===String(i.category)),f=["status = published",`language = ${p.value}`,"slug IS NOT NULL",`slug != ${m.params.slug}`,`publication_date < ${Math.round(Date.now()/1e3)}`,`unpublished_date > ${Math.round(Date.now()/1e3)}`,`category = ${b.slug[p.value]}`],d=([a,l]=w(()=>e("news","",{filter:f.join(" AND "),hitsPerPage:10})),a=await a,l(),a);return c.value=d.hits,(t,g)=>{const M=E,N=I,U=P,S=G,x=Y,C=Z,F=z,T=H;return s(c).length>0?(o(),n(T,{key:0},{default:_(()=>[h(M,{content:{full:!0},article:!1,class:"mb-16 lg:mb-20"}),h(F,null,{default:_(()=>[t.$t("related_faqs_tagline")||t.$t("related_faqs_title")?(o(),n(x,{key:0,class:"mb-10"},{default:_(()=>[h(S,{class:"flex-between-end"},{default:_(()=>[$("div",null,[t.$t("related_faqs_tagline")?(o(),n(N,{key:0,theme:"small",text:t.$t("related_faqs_tagline")},null,8,["text"])):r("",!0),t.$t("related_faqs_title")?(o(),n(U,{key:1,tag:"h5",theme:"block",title:t.$t("related_faqs_title"),"no-margin":""},null,8,["title"])):r("",!0)])]),_:1})]),_:1})):r("",!0),$("div",ee,[(o(!0),B(j,null,A(s(c),y=>(o(),n(C,{key:y.objectID,content:y},null,8,["content"]))),128))])]),_:1})]),_:1})):r("",!0)}}},be={__name:"[slug]",async setup(k){let a,l;
1const{checkBackendErrorOnNavigate:i}=Q();i();const{locale:c}=v(),m=q(),u=V(c.value,"faqs",m.params.slug),{data:e}=([a,l]=w(()=>W(u,"$div7RMsZYe")),a=await a,l(),a);return X(e),e.value&&O("metas",e.value.metas),(p,b)=>{var g;const f=D,d=te,t=K;return o(),B("div",null,[(g=s(e))!=null&&g.blocks?(o(),n(f,{key:0,blocks:s(e).blocks,article:""},null,8,["blocks"])):r("",!0),s(e)?(o(),n(d,{key:1,category:s(e).category},null,8,["category"])):r("",!0),!s(e).blocks||s(e).blocks.length===0?(o(),n(t,{key:2,name:"robots",content:"noindex"})):r("",!0)])}}};export{be 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.