import{_ as w}from"./DlkcFeCN.js";import{d as u,o as n,c as r,a as c,t as d,i as h,h as p,w as y,m as $,O as V,_ as f,p as L,j,r as x,s as q,F as H,g as R,e as k}from"./wgtvKLiS.js";import{_ as T}from"./DvFKjRLO.js";const z={key:0,class:"intro"},F=u({__name:"ServiceTeaser",props:{service:{},home:{type:Boolean}},setup(a){return(t,l)=>{const o=w;return n(),r("div",{class:V(["service",t.service.fields.icon.toLowerCase().replace(/ /g,"-")])},[c("h3",null,d(t.service.fields.heading),1),t.service.fields.intro&&!t.home?(n(),r("div",z,d(t.service.fields.intro),1)):h("",!0),t.home?h("",!0):(n(),p(o,{key:1,class:"button",to:`/our-work/${t.service.fields.slug}`},{default:y(()=>[$(" Read more ")]),_:1},8,["to"]))],2)}}}),ne=f(F,[["__scopeId","data-v-2e5d3ffc"]]),D=a=>(L("data-v-bb6bd4b3"),a=a(),j(),a),E=D(()=>c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",fill:"var(--clr--mint-green)",viewBox:"0 0 256 256"},[c("path",{d:"M208.49,152.49l-72,72a12,12,0,0,1-17,0l-72-72a12,12,0,0,1,17-17L116,187V40a12,12,0,0,1,24,0V187l51.51-51.52a12,12,0,0,1,17,17Z"})],-1)),O=[E],U=u({__name:"HomeNext",props:{nextSectionId:{}},setup(a){const t=a;function l(){let o=document.querySelector(`#${t.nextSectionId}`);o==null||o.scrollIntoView({behavior:"smooth"})}return(o,i)=>(n(),r("button",{onClick:l},O))}}),Z=f(U,[["__scopeId","data-v-bb6bd4b3"]]),A={class:"hero"},G={class:"content"},J={key:0,class:"subheading"},K={key:1,class:"subheading"},P={class:"heading"},Q={class:"intro"},W={class:"images"},X={class:"container"},Y=6,ee=u({__name:"HeroTeamIndex",props:{teamIndex:{},home:{type:Boolean}},setup(a){var I,b,S;const t=a,l=x({width:310,height:310,fit:"thumb",quality:95,format:"jpg"}),o=x([]),i=(I=t.teamIndex.fields.photoSample)==null?void 0:I.map(e=>e.fields.photo);i&&(o.value=o.value.concat(i));const g=(S=(b=t.teamIndex.fields.photoSampleRandom)==null?void 0:b.fields.teamMembers)==null?void 0:S.map(e=>e.fields.photo);let m=[];if(g&&i){const e=i.map(s=>s.sys.id);m=g.filter(s=>!e.includes(s.sys.id))}const v=Math.min(Y-((i==null?void 0:i.length)||0),m.length);function N(){if(m){let e=m;for(let s=0;s<v;s++){const _=s+Math.floor(Math.random()*(e.length-s));[e[s],e[_]]=[e[_],e[s]]}return e.slice(0,v)}else return[]}return q(()=>{o.value=o.value.concat(N())}),(e,s)=>{const _=w,B=T,C=Z;return n(),r("section",A,[c("div",G,[e.home?(n(),r("span",J,d(e.teamIndex.fields.subheading),1)):(n(),r("h1",K,d(e.teamIndex.fields.subheading),1)),c("h2",P,d(e.teamIndex.fields.heading),1),c("div",Q,d(e.teamIndex.fields.intro),1),e.home?(n(),p(_,{key:2,to:`/${e.teamIndex.fields.slug}`,class:"button meet"},{default:y(()=>[$("Meet the team")]),_:1},8,["to"])):h("",!0)]),c("div",W,[c("div",X,[(n(!0),r(H,null,R(k(o),M=>(n(),p(B,{image:M,settings:k(l)},null,8,["image","settings"]))),256))])]),e.home?(n(),p(C,{key:0,nextSectionId:"home-contact"})):h("",!0)])}}}),ae=f(ee,[["__scopeId","data-v-eb9803f7"]]);export{ne as _,ae as a,Z as b};
