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