1import{_ as O}from"./index.35118a33.js";import{_ as R,l as N,u as W,a as G,b as M}from"./link.efad8efd.js";import{_ as V,o as t,c as l,t as S,d as C,a as p,F as v,r as A,b as w,w as Q,f as J,u as X,i as q,j as L,k as Y,l as a,e as b,n as P,y as Z,m as ee,q as te}from"./entry.8603fe85.js";import{_ as oe}from"./ArticleCard.fd2c2ef3.js";import{m as ae,a as le}from"./modules.14461ab6.js";import{g as se,s as ne,i as T}from"./seo.94ea2798.js";import"./Icon.e43bc9a9.js";import"./courierForm.eefc5d55.js";const re={props:{data:{required:!0,type:Object}}},ce={class:"container category-links-wrapper"},ie={key:0,class:"category-title align-center"},ue={class:"category-links"};function _e(D,i,n,u,s,B){const m=R;return t(),l("div",ce,[n.data.categoryLinksTitle?(t(),l("h2",ie,S(n.data.categoryLinksTitle),1)):C("",!0),p("div",ue,[(t(!0),l(v,null,A(n.data.categoryLinks,_=>(t(),l("div",{key:_.buttonText,class:"wrapper-link"},[w(m,{to:_.link,class:"category-link"},{default:Q(()=>[J(S(_.buttonText),1)]),_:2},1032,["to"])]))),128))])])}const de=V(re,[["render",_e],["__scopeId","data-v-1fb7cb90"]]),pe=` 2 query BlogHome($locale: SiteLocale) { 3 ${se} 4 blogHome(locale: $locale) { 5 _modelApiKey 6 id 7 __typename 8 ${ne} 9 _allSlugLocales { 10 locale 11 value 12 } 13 heroIllustration { 14 ${T} 15 } 16 heroTitle 17 heroIntro 18 heroBigText 19 hasButton 20 buttonLabel 21 ${N()} 22 categoryLinksTitle 23 categoryLinks { 24 ${N("link")} 25 buttonText 26 } 27 recentArticlesTitle 28 articles { 29 id 30 _publishedAt 31 thumbnail { 32 ${T} 33 } 34 _modelApiKey 35 slug 36 _allSlugLocales { 37 locale 38 value 39 } 40 heroTitle 41 heroIntro 42 category { 43 _modelApiKey 44 name 45 slug 46 } 47 } 48 ${ae} 49 } 50 recentArticles: allBlogArticles(first: 2, locale: $locale, filter: { slug: {exists: true} }){ 51 id 52 _publishedAt 53 thumbnail { 54 ${T} 55 } 56 _modelApiKey 57 slug 58 _allSlugLocales { 59 locale 60 value 61 } 62 heroTitle 63 heroIntro 64 category { 65 _modelApiKey 66 name 67 slug 68 } 69 } 70 } 71`;const me={class:"recent-articles-wrapper container"},ge={key:0,class:"align-center grid-title"},he={class:"recent-articles"},ye={class:"grid-articles-wrapper container"},fe={class:"grid-articles"},be={__name:"index",async setup(D){let i,n;const u=W(),s=ee(),B=X(),m=q().locale.value;q().locales.value;const{$seo:_}=te(),o=L(null),K=L(null),H=L(null),{data:g,error:I}=([i,n]=Y(async()=>M("blog",async()=>{const{data:h,errors:k}=await $fetch(s.public.datoApiUrl,{method:"POST",body:{query:pe,variables:{locale:m}},headers:{Authorization:`Bearer ${s.public.preview?s.public.datoApiToken:s.datoApiToken}`}}).catch(c=>console.log(c));k&&console.error("Errors in the blog home query: ",k);const d=h.blogHome,x=h.recentArticles,y=h._site.globalSeo,r=[];let e="";e=s.public.baseUrl,d._allSlugLocales.forEach(c=>{let f;const $=Z()["blog/index"][c.locale];$&&(c.locale==="en"?(f=e+$,r.push({hreflang:"x-default",href:f,rel:"alternate"})):f=e+"/"+c.locale+$,r.push({hreflang:c.locale,href:f,rel:"alternate"}))});const F=_({host:s.public.baseUrl,fullPath:B.fullPath,lang:m,hrefLang:r,seo:d.seo,globalSeo:y,noindex:!1});return{page:d,recentArticles:x,head:F}})),i=await i,n(),i);I.value&&console.log(I.value),g.value&&(o.value=g.value.page,H.value=g.value.recentArticles,K.value=g.value.head),u.setHeaderColor("white"),u.setCustomColorTheme({}),u.setCustomNavbar({});const{_modelApiKey:E,id:U,__typename:j,_allSlugLocales:z}=o.value;return u.setPage({_modelApiKey:E,id:U,__typename:j,_allSlugLocales:z}),G(K),(h,k)=>{const d=O,x=de,y=oe,r=le;return t(),l("div",null,[w(d,{content:a(o)},null,8,["content"]),w(x,{data:a(o)},null,8,["data"]),p("div",me,[a(o).recentArticlesTitle?(t(),l("h2",ge,S(a(o).recentArticlesTitle),1)):C("",!0),p("div",he,[(t(!0),l(v,null,A(a(H),e=>(t(),b(y,{key:e.id,article:e},null,8,["article"]))),128))])]),a(o).modules[0]?(t(),b(r,{key:0,data:a(o).modules[0],class:P({"over-all":a(o).modules[0]._modelApiKey==="fifty_fifty_module"&&a(o).modules[0].module.hasWaveSeparator})},null,8,["data","class"])):C("",!0),p("div",ye,[p("div",fe,[(t(!0),l(v,null,A(a(o).articles,e=>(t(),b(y,{key:e.id,article:e},null,8,["article"]))),128))])]),(t(!0),l(v,null,A(a(o).modules.slice(1),e=>(t(),b(r,{key:e.id,data:e,class:P({"over-all":e._modelApiKey==="fifty_fifty_module"&&e.module.hasWaveSeparator})},null,8,["data","class"]))),128))])}}},Ce=V(be,[["__scopeId","data-v-9a30e554"]]);export{Ce 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.