import{_ as X}from"./Bi8tNtoh.js";import{d as Y,c as Z,w as ee,f as te,r as c,g as ne,h as f,C as u,i as n,j as M,k as h,l as p,m as ae,q as le,t as re,_ as se,v as oe,x as a,F as ie,n as ce}from"./CnM4dBY0.js";import{u as fe}from"./BE0OnJ0q.js";import"./Bf9Fxc0i.js";import"./DvyjNMPb.js";import"./DslTMqll.js";const ue={class:"front"},de={key:0},he={class:"relative -top-16 w-full px-8 max-w-screen-xl mx-auto"},pe={class:"mx-auto"},me={class:"w-full max-w-screen-lg mx-auto text-center px-5 mb-20"},Ie=Y({__name:"index",async setup(_e){var y,x,w,k,C,I,T;let l,m;const{locale:r,t:q}=Z(),s=le(),t=s.public.DOMAIN;let _="";s.public.PREVIEW=="true"&&(_="&preview=true");const{data:e}=([l,m]=ee(()=>oe("frontpage",()=>$fetch(`frontpage?locale=${r.value}${_}`,{method:"GET",baseURL:`${s.public.AWS_API_ENDPOINT}/${s.public.AWS_API_ENV}/`}),{watch:[r]})),l=await l,m(),l),g=te((y=e==null?void 0:e.value)==null?void 0:y.fields),v=c((w=(x=e==null?void 0:e.value)==null?void 0:x.fields)==null?void 0:w.metaTitle),o=c((C=(k=e==null?void 0:e.value)==null?void 0:k.fields)==null?void 0:C.metaDescription),$=c(g?`https:${g}`:""),K=c((T=(I=e==null?void 0:e.value)==null?void 0:I.fields)==null?void 0:T.title),i=`${v.value?v.value:K.value} ${q("| Lappset Group | The world of playgrounds and sports")}`;return fe({title:i,ogTitle:i,twitterTitle:i,ogImage:$.value,twitterImage:$.value,description:o.value,ogDescription:o.value,twitterDescription:o.value,ogUrl:`${t}/${r.value}`,ogType:"website"}),ne({title:i,meta:[{name:"description",content:o.value}],link:[{rel:"canonical",hid:"canonical",href:`${t}/${r.value}`},{rel:"alternate",hid:"hreflang-en",hreflang:"x-default",href:`${t}/en-GB`},{rel:"alternate",hid:"hreflang-enuk",hreflang:"en-uk",href:`${t}/en-GB`},{rel:"alternate",hid:"hreflang-enus",hreflang:"en-us",href:`${t}/en-US`},{rel:"alternate",hid:"hreflang-fi",hreflang:"fi",href:`${t}/fi-FI`},{rel:"alternate",hid:"hreflang-se",hreflang:"se",href:`${t}/sv-SE`},{rel:"alternate",hid:"hreflang-fr",hreflang:"fr",href:`${t}/fr-FR`},{rel:"alternate",hid:"hreflang-fr",hreflang:"no",href:`${t}/nn-NO`},{rel:"alternate",hid:"hreflang-fr",hreflang:"dk",href:`${t}/da-DK`},{rel:"alternate",hid:"hreflang-fr",hreflang:"es",href:`${t}/es-ES`}]}),(ge,ve)=>{var b,B,D,E,N,A,S,R,F,O,P,V;const d=X,z=re,J=se;return a(),f("div",ue,[u("div",null,[(b=n(e))!=null&&b.fields&&Object.keys((B=n(e))==null?void 0:B.fields).length>0?(a(),f("div",de,[(E=(D=n(e))==null?void 0:D.fields)!=null&&E.heroBanner?(a(),M(d,{key:0,type:"layoutHero",data:(A=(N=n(e))==null?void 0:N.fields)==null?void 0:A.heroBanner},null,8,["data"])):h("",!0),u("div",he,[(R=(S=n(e))==null?void 0:S.fields)!=null&&R.iconCards?(a(),M(d,{key:0,type:"layoutIconCards",data:(O=(F=n(e))==null?void 0:F.fields)==null?void 0:O.iconCards},null,8,["data"])):h("",!0)]),u("div",pe,[u("div",me,[p(z,{content:(V=(P=n(e))==null?void 0:P.fields)==null?void 0:V.content},null,8,["content"])]),p(J,null,{default:ae(()=>{var G,L;return[(a(!0),f(ie,null,ce((L=(G=n(e))==null?void 0:G.fields)==null?void 0:L.sections,(U,Q)=>{var W,j,H;return a(),f("div",{key:Q},[p(d,{type:(H=(j=(W=U.sys)==null?void 0:W.contentType)==null?void 0:j.sys)==null?void 0:H.id,data:U},null,8,["type","data"])])}),128))]}),_:1})])])):h("",!0)])])}}});export{Ie as default};