import{h as H,u as O,i as W,j as Z,k as q,r as G,l as J,m as r,w as M,n as X,o as K,b as P,d as c,c as B,f as o,q as d,t as C,s as a,v as _,x as D,y as Q,z as Y,P as ee,S as ae,A as te,B as oe,C as se}from"./entry.5970752d.js";import{_ as ne}from"./index.scss.bf8313fc.js";import{u as ie}from"./composable.0f06f062.js";import{c as ce}from"./index.22e7a36b.js";/* empty css                   */const le={class:"content-type content-type--full-width ct-header-image ct-header-image--case"},re={class:"content-type__container ct-header-image__container"},de={class:"ct-header-image__content"},_e={class:"ct-header-image__heading heading--1"},ue={class:"ct-header-image__description"},pe={key:0,class:"ct-header-image__image"},me=["srcset"],ge=["srcset"],ke=H({__name:"[uid]",async setup(he){let n,u;const s=Q(),{client:z}=O(),i=W(),{y:U}=Z(),{height:V}=q(),p=G(null),{height:$}=J(p),m=r(()=>{var t,l;return((t=e.value.data)==null?void 0:t.slicesFooter.length)>0?(l=e.value.data)==null?void 0:l.slicesFooter[0]:null}),{data:e}=([n,u]=M(()=>Y(`case-detail-${i.params.uid}`,()=>z.getByUID("case","case_"+i.params.uid,{lang:s.public.language,fetchLinks:["professional.image","professional.firstname","professional.lastname","professional.job_description","case.case_client","case.case_title","case.case_image"]}))),n=await n,u(),n),E=r(()=>e.value.data.slices.filter(t=>t.primary.anchor)),F=r(()=>U.value/($.value-V.value)*100);if(!e.value)throw X({statusCode:404,message:"Page not found",fatal:!0});const g=oe();K(()=>{var t;g&&g.enabled()&&((t=window.dataLayer)==null||t.push({event:"pageView",pageTitle:e.value.data.case_title,pageType:"Cases",domein:e.value.data.datalayer_domein??"",specialisatie:e.value.data.datalayer_specialisatie??"",partner:e.value.data.datalayer_partner??""}))});const I=s.public.language.replace("-","_");return P({title:e.value.data.meta_title??"",meta:[{name:"description",content:e.value.data.meta_description??""},{name:"robots",content:e.value.data.meta_robots??e.value.tags.indexOf("pim")>-1?"noindex,nofollow":"index,follow"},{property:"og:site_name",content:"XSARUS.nl"},{property:"og:locale",content:s.public.language?I:""},{property:"og:type",content:e.value.data.og_type??""},{property:"og:title",content:e.value.data.og_title??""},{property:"og:description",content:e.value.data.og_description??""},{property:"og:image:url",content:e.value.data.og_image.url??""},{property:"og:image:width",content:e.value.data.og_image.dimensions?e.value.data.og_image.dimensions.width:""},{property:"og:image:height",content:e.value.data.og_image.dimensions?e.value.data.og_image.dimensions.height:""},{property:"og:image:alt",content:e.value.data.og_image.alt??e.value.data.og_title},{property:"og:url",content:s.public.baseUrl+i.path}]}),P(()=>({link:[{rel:"canonical",href:s.public.productionUrl+i.path}]})),ie({"@context":"https://schema.org","@type":"Article",headline:e.value.data.case_title,image:[e.value.data.case_image.url??""],datePublished:e.value.data.release_date}),(t,l)=>{var h,f,v,y,b,w,k,x,A,S;const L=se,N=ee,R=ne,T=ae,j=te;return c(),B("div",{ref_key:"page",ref:p},[o("div",le,[d(L),o("div",re,[o("div",de,[o("h1",_e,C((h=a(e).data)==null?void 0:h.case_title),1),o("div",ue,C((f=a(e).data)==null?void 0:f.case_client),1)]),(b=(y=(v=a(e))==null?void 0:v.data)==null?void 0:y.case_image)!=null&&b.url?(c(),B("div",pe,[o("picture",null,[o("source",{srcset:(w=a(e).data)==null?void 0:w.case_image.url,media:"(min-width: 48em)"},null,8,me),o("source",{srcset:(k=a(e).data)==null?void 0:k.case_image.main_mobile.url},null,8,ge),d(N,{field:a(e).data.case_image,width:(x=a(e).data)==null?void 0:x.case_image.dimensions.width,height:(A=a(e).data)==null?void 0:A.case_image.dimensions.height,loading:"lazy","data-aos":"focus","data-aos-offset":"-200","data-aos-delay":"0","data-aos-duration":"400","data-aos-easing":"ease-in-out-sine","data-aos-mirror":"false","data-aos-once":"true","data-aos-anchor-placement":"top-center"},null,8,["field","width","height"])])])):_("",!0)])]),a(e).data.show_anchor_bar?(c(),D(R,{key:0,"anchor-items":a(E),"button-text":a(e).data.anchor_bar_button_text,"button-link":a(e).data.anchor_bar_button_link,"scroll-position":a(F)},null,8,["anchor-items","button-text","button-link","scroll-position"])):_("",!0),d(T,{components:a(ce),slices:(S=a(e).data)==null?void 0:S.slices},null,8,["components","slices"]),a(m)?(c(),D(j,{key:1,"footer-page":a(m)},null,8,["footer-page"])):_("",!0)],512)}}});export{ke as default};
