import{d as Pe,a as Be,c as Ee,r as s,w as Ve,A as Me,f as Re,g as o,k as b,l as Se,h as a,i as g,j as i,B as ke,F as Oe,m as je,p as ze,_ as We,s as Fe,t as Ge,v as u,z as Ue,x as qe}from"./C_q2EfHM.js";import{_ as He}from"./CAa5mQaN.js";import Xe from"./jJpdG6d3.js";import"./KuEvm7-U.js";import"./BNibB90H.js";import"./DslTMqll.js";var be={};(function(l){Object.defineProperty(l,"__esModule",{value:!0});var c="far",_="clock",v=512,m=512,d=[128339,"clock-four"],r="f017",p="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:c,iconName:_,icon:[v,m,d,r,p]},l.faClock=l.definition,l.prefix=c,l.iconName=_,l.width=v,l.height=m,l.ligatures=d,l.unicode=r,l.svgPathData=p,l.aliases=d})(be);const Je={key:0,class:"text-center m-20"},Ke={key:1},Qe={key:0},Ye={key:0,class:"w-full mt-4 mb-20"},Ze={class:"w-full mx-auto max-w-screen-lg justify-center px-5 mb-20"},et={key:1,class:"mx-auto"},ot=Pe({__name:"[slug]",async setup(l){var D,w,x,I,L,N,P,B,E,V,M,R,S,O,j,z,W,F,G,U,q,H,X,J,K,Q,Y,Z,ee;let c,_;const v=Be(),{locale:m,t:d}=Ee(),r=ze(),p=r.public.DOMAIN,h=s({fields:{title:null,content:null,image:null,shapeColor:null,publishedDate:null,updatedAt:null,createdAt:null,localDealer:null,readTime:null}});let C="";r.public.PREVIEW=="true"&&(C="&preview=true");const{data:t}=([c,_]=Ve(()=>Ge(()=>$fetch(`content-type/${v.params.slug}?locale=${m.value}&contentType=pageArticle${C}`,{method:"GET",baseURL:`${r.public.AWS_API_ENDPOINT}/${r.public.AWS_API_ENV}/`}),{watch:[m]},"$xIX1kSq3pb")),c=await c,_(),c);if(!t.value)throw Me({statusCode:404,statusMessage:`${d("Page not found")}`,fatal:!0});const Ce=s((w=(D=t==null?void 0:t.value)==null?void 0:D.fields)==null?void 0:w.title),Ae=s((I=(x=t==null?void 0:t.value)==null?void 0:x.fields)==null?void 0:I.locales),e=s((L=t==null?void 0:t.value)==null?void 0:L.fields);t&&(h.value={fields:{title:(N=e==null?void 0:e.value)!=null&&N.heading?(P=e==null?void 0:e.value)==null?void 0:P.heading:null,content:(B=e==null?void 0:e.value)!=null&&B.articleTopContent?(E=e.value)==null?void 0:E.articleTopContent:null,image:(V=e==null?void 0:e.value)!=null&&V.image?(M=e.value)==null?void 0:M.image:null,shapeColor:(R=e==null?void 0:e.value)!=null&&R.shapeColor?(S=e.value)==null?void 0:S.shapeColor:null,publishedDate:(O=e==null?void 0:e.value)!=null&&O.publishedDate?(j=e.value)==null?void 0:j.publishedDate:null,updatedAt:(W=(z=t.value)==null?void 0:z.sys)!=null&&W.updatedAt?(F=t.value)==null?void 0:F.sys.updatedAt:null,createdAt:(U=(G=t==null?void 0:t.value)==null?void 0:G.sys)!=null&&U.createdAt?t==null?void 0:t.value.sys.createdAt:null,localDealer:(q=e.value)!=null&&q.localDealer?(H=e.value)==null?void 0:H.localDealer:null,readTime:(X=e.value)!=null&&X.readTime?(J=e.value)==null?void 0:J.readTime:null}});const A=s((K=e==null?void 0:e.value)==null?void 0:K.metaTitle),Te=s((Q=e==null?void 0:e.value)==null?void 0:Q.metaDescription),T=s([]),$e=[{slug:"pageInspiration",name:"pageInspiration"},{slug:(Y=e==null?void 0:e.value)==null?void 0:Y.slug,name:Ce}];T.value=$e;const $=s(Ae),De=()=>{const k=[];for(const f in $.value){const y=$.value[f];y!=null&&k.push({rel:"alternate",hreflang:f,href:`${p}/${f}/${y}`})}return k};return Re({title:`${A.value?A.value:(Z=e==null?void 0:e.value)==null?void 0:Z.heading} ${d("| Lappset Group | The world of playgrounds and sports")}`,meta:[{name:"description",content:Te.value}],link:[{rel:"canonical",hid:"canonical",href:`${p}/${m.value}/${(ee=e==null?void 0:e.value)==null?void 0:ee.slug}`},...De()]}),(k,f)=>{var ae,le,ne,ue,se,oe,ce,re,ie,me,de;const y=Ue,we=We,xe=qe,te=He,Ie=Xe,Le=Fe;return u(),o("div",null,[b(we,null,{default:Se(()=>[b(y,{"breadcrumbs-list":a(T)},null,8,["breadcrumbs-list"])]),_:1}),(ae=a(t))!=null&&ae.fields?(u(),o("div",Ke,[(le=a(t))!=null&&le.fields&&Object.keys((ne=a(t))==null?void 0:ne.fields).length>0?(u(),o("div",Qe,[(ue=a(t))!=null&&ue.fields&&a(h)?(u(),o("div",Ye,[a(h)?(u(),g(te,{key:0,type:"layoutLeadContent",data:a(h)},null,8,["data"])):i("",!0)])):i("",!0),ke("div",Ze,[ke("div",null,[(se=a(t))!=null&&se.fields.readTime?(u(),g(Ie,{key:0,icon:a(be.faClock),text:(oe=a(t))==null?void 0:oe.fields.readTime},null,8,["icon","text"])):i("",!0)]),(ce=a(t))!=null&&ce.fields.content?(u(),g(Le,{key:0,content:(re=a(t))==null?void 0:re.fields.content},null,8,["content"])):i("",!0)]),(ie=a(t))!=null&&ie.fields.sections&&((me=a(t))!=null&&me.fields.sections.length)?(u(),o("div",et,[(u(!0),o(Oe,null,je((de=a(t))==null?void 0:de.fields.sections,(n,Ne)=>{var _e,pe,ve,he,fe,ye,ge;return u(),o("div",{key:Ne,class:"w-full mx-auto"},[n!=null&&n.sys&&((_e=n==null?void 0:n.sys)!=null&&_e.contentType)?(u(),g(te,{key:0,type:(he=(ve=(pe=n==null?void 0:n.sys)==null?void 0:pe.contentType)==null?void 0:ve.sys)!=null&&he.id?(ge=(ye=(fe=n==null?void 0:n.sys)==null?void 0:fe.contentType)==null?void 0:ye.sys)==null?void 0:ge.id:"",data:n,class:"mt-10"},null,8,["type","data"])):i("",!0)])}),128))])):i("",!0)])):i("",!0)])):(u(),o("div",Je,[b(xe)]))])}}});export{ot as default};