import{d as Oe,aG as je,c as Fe,r as a,w as We,B as Ge,f as Ue,g as qe,h as o,l as b,m as Ye,i as t,j as k,k as m,C as Ae,F as He,n as Je,q as Ke,_ as Qe,t as Xe,v as Ze,x as n,A as el,y as ll}from"./DkmmfJiv.js";import{_ as tl}from"./pEGkjlIp.js";import nl from"./ChN4Jplx.js";import{u as sl}from"./B_utEkPz.js";import"./BF_44nFp.js";import"./Cj-LxW_u.js";import"./DslTMqll.js";var Le={};(function(l){Object.defineProperty(l,"__esModule",{value:!0});var i="far",_="clock",v=512,u=512,f=[128339,"clock-four"],c="f017",d="M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z";l.definition={prefix:i,iconName:_,icon:[v,u,f,c,d]},l.faClock=l.definition,l.prefix=i,l.iconName=_,l.width=v,l.height=u,l.ligatures=f,l.unicode=c,l.svgPathData=d,l.aliases=f})(Le);const al={key:0,class:"text-center m-20"},ol={key:1},il={key:0},ul={key:0,class:"w-full mt-4 mb-20"},cl={class:"w-full mx-auto max-w-screen-lg justify-center px-5 mb-20"},rl={key:1,class:"mx-auto"},gl=Oe({__name:"[slug]",async setup(l){var L,N,P,B,E,M,R,V,S,z,O,j,F,W,G,U,q,Y,H,J,K,Q,X,Z,ee,le,te,ne,se,ae,oe;let i,_;const v=je(),{locale:u,t:f}=Fe(),c=Ke(),d=c.public.DOMAIN,p=a({fields:{title:null,content:null,image:null,shapeColor:null,locationText:null,publishedYear:null,localDealer:null,readTime:null}});let C="";c.public.PREVIEW=="true"&&(C="&preview=true");const{data:e}=([i,_]=We(()=>Ze(()=>$fetch(`content-type/${v.params.slug}?locale=${u.value}&contentType=pageReference${C}`,{method:"GET",baseURL:`${c.public.AWS_API_ENDPOINT}/${c.public.AWS_API_ENV}/`}),{watch:[u.value]},"$7zmz4dqle3")),i=await i,_(),i);if(!e.value)throw Ge({statusCode:404,statusMessage:`${f("Page not found")}`,fatal:!0});const Ne=a((N=(L=e==null?void 0:e.value)==null?void 0:L.fields)==null?void 0:N.title),Pe=a((B=(P=e==null?void 0:e.value)==null?void 0:P.fields)==null?void 0:B.locales),s=a((E=e==null?void 0:e.value)==null?void 0:E.fields);e&&(p.value={fields:{title:((R=(M=e==null?void 0:e.value)==null?void 0:M.fields)==null?void 0:R.heading)||null,content:((S=(V=e==null?void 0:e.value)==null?void 0:V.fields)==null?void 0:S.referenceTopContent)||null,image:((O=(z=e==null?void 0:e.value)==null?void 0:z.fields)==null?void 0:O.image)||null,shapeColor:((F=(j=e==null?void 0:e.value)==null?void 0:j.fields)==null?void 0:F.shapeColor)||null,locationText:((G=(W=e==null?void 0:e.value)==null?void 0:W.fields)==null?void 0:G.locationText)||null,publishedYear:((q=(U=e==null?void 0:e.value)==null?void 0:U.fields)==null?void 0:q.publishedDate)||null,localDealer:((H=(Y=e==null?void 0:e.value)==null?void 0:Y.fields)==null?void 0:H.localDealer)||null,readTime:((K=(J=e==null?void 0:e.value)==null?void 0:J.fields)==null?void 0:K.readTime)||null}});const w=Ue((Q=e==null?void 0:e.value)==null?void 0:Q.fields),D=a((Z=(X=e==null?void 0:e.value)==null?void 0:X.fields)==null?void 0:Z.metaTitle),h=a((le=(ee=e==null?void 0:e.value)==null?void 0:ee.fields)==null?void 0:le.metaDescription),I=a(w?`https:${w}`:""),x=a([]),Be=[{slug:"pageInspiration",name:"pageInspiration"},{slug:(te=s==null?void 0:s.value)==null?void 0:te.slug,name:Ne}];x.value=Be;const A=a(Pe),Ee=()=>{const $=[];for(const y in A.value){const T=A.value[y];T!=null&&$.push({rel:"alternate",hreflang:y,href:`${d}/${y}/${T}`})}return $},g=`${D.value?D.value:(se=(ne=e==null?void 0:e.value)==null?void 0:ne.fields)==null?void 0:se.heading} ${f("| Lappset Group | The world of playgrounds and sports")}`;return sl({title:g,ogTitle:g,twitterTitle:g,ogImage:I.value,twitterImage:I.value,description:h.value,ogDescription:h.value,twitterDescription:h.value,ogUrl:`${d}/${u.value}/${(ae=s==null?void 0:s.value)==null?void 0:ae.slug}`,ogType:"website"}),qe({title:g,meta:[{name:"description",content:h.value}],link:[{rel:"canonical",hid:"canonical",href:`${d}/${u.value}/${(oe=s==null?void 0:s.value)==null?void 0:oe.slug}`},...Ee()]}),($,y)=>{var ue,ce,re,me,fe,de,_e,ve,pe,he,ge,ye,Te,ke;const T=el,Me=Qe,Re=ll,ie=tl,Ve=nl,Se=Xe;return n(),o("div",null,[b(Me,null,{default:Ye(()=>[b(T,{"breadcrumbs-list":x.value},null,8,["breadcrumbs-list"])]),_:1}),t(e).fields?(n(),o("div",ol,[(ue=t(e))!=null&&ue.fields&&Object.keys((ce=t(e))==null?void 0:ce.fields).length>0?(n(),o("div",il,[(re=t(e))!=null&&re.fields&&p.value?(n(),o("div",ul,[p.value?(n(),k(ie,{key:0,type:"layoutLeadContent",data:p.value},null,8,["data"])):m("",!0)])):m("",!0),Ae("div",cl,[Ae("div",null,[(me=t(e))!=null&&me.fields.readTime?(n(),k(Ve,{key:0,icon:t(Le.faClock),text:(fe=t(e))==null?void 0:fe.fields.readTime},null,8,["icon","text"])):m("",!0)]),(de=t(e))!=null&&de.fields.content?(n(),k(Se,{key:0,content:(_e=t(e))==null?void 0:_e.fields.content},null,8,["content"])):m("",!0)]),(pe=(ve=t(e))==null?void 0:ve.fields)!=null&&pe.sections&&((ye=(ge=(he=t(e))==null?void 0:he.fields)==null?void 0:ge.sections)!=null&&ye.length)?(n(),o("div",rl,[(n(!0),o(He,null,Je((ke=(Te=t(e))==null?void 0:Te.fields)==null?void 0:ke.sections,(r,ze)=>{var $e,be,Ce,we,De,Ie,xe;return n(),o("div",{key:ze,class:"w-full mx-auto"},[r.sys&&(($e=r.sys)!=null&&$e.contentType)?(n(),k(ie,{key:0,type:(we=(Ce=(be=r.sys)==null?void 0:be.contentType)==null?void 0:Ce.sys)!=null&&we.id?(xe=(Ie=(De=r==null?void 0:r.sys)==null?void 0:De.contentType)==null?void 0:Ie.sys)==null?void 0:xe.id:"",data:r,class:"mt-10"},null,8,["type","data"])):m("",!0)])}),128))])):m("",!0)])):m("",!0)])):(n(),o("div",al,[b(Re)]))])}}});export{gl as default};