1import{d as V,o as m,f as k,ao as X,g as j,I as w,j as q,_ as Y,i as $,ak as $e,n as Z,ah as ee,ai as te,u as oe,v as F,aq as ne,ar as N,as as le,A as G,x as d,an as be,Y as xe,at as W,al as we,au as _e,am as K,a_ as Ee}from"./DRREkx-t.js";const Be={class:"spotlight-block__content"},Ae=["textContent"],Re=["textContent"],Pe=V({name:"spotlight-block",__name:"spotlight-block",props:{block:{}},setup(e){return(M,b)=>(m(),k(X,{class:"spotlight-block",link:e.block.link},{default:j(()=>[w("div",Be,[e.block.tag?(m(),q("span",{key:0,class:"spotlight-block__tag",textContent:Y(e.block.tag)},null,8,Ae)):$("",!0),e.block.link?.url?(m(),k($e,{key:1,class:"spotlight-block__arrow",colour:"light","aria-hidden":"true"})):$("",!0),e.block.headline?(m(),q("span",{key:2,class:"spotlight-block__headline",textContent:Y(e.block.headline)},null,8,Re)):$("",!0)])]),_:1},8,["link"]))}}),Ce=Object.assign(Pe,{__name:"BlocksSpotlightBlock"}),Se=V({name:"down-arrow",__name:"down-arrow-svg",props:{colour:{default:"dark"}},setup(e){return(M,b)=>(m(),q("svg",{class:Z(["down-arrow",`down-arrow--${e.colour}`]),width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...b[0]||(b[0]=[w("path",{class:"down-arrow__path",d:"M16.3536 8L8.35358 16L0.353576 8"},null,-1),w("path",{class:"down-arrow__path",d:"M8.35358 6.99382e-07L8.35357 16"},null,-1)])],2))}}),Q=Object.assign(Se,{__name:"SvgsDownArrowSvg"}),Me=["textContent"],Le=V({name:"scroll-indicator",__name:"scroll-indicator-element",props:{element:{},colour:{default:"dark"}},setup(e){const M=ee(),{firstLoadComplete:b}=te(M),x=oe(),T=d(),_=d();let o=null,y=null;const I=`(max-width: ${x.$screen.xl-1}px)`,P=`(min-width: ${x.$screen.xl}px)`;function A(){b.value&&(o=x.$gsap.context(()=>{y=x.$gsap.matchMedia(),y.add(I,()=>{C()}),y.add(P,()=>{S()})},T.value?.$el))}function C(){R()}function S(){R()}function R(){const f=_.value;if(!f)return;const v=2,E=.2;x.$gsap.set(f,{yPercent:100/-3*2}),x.$gsap.timeline({repeat:-1}).to(f,{yPercent:100/-3,duration:E,ease:"power2.inOut"}).to(f,{yPercent:0,duration:E,ease:"power2.inOut"},`>${v}`).to(f,{yPercent:0,duration:0,ease:"none"},`>${v}`)}return F(b,()=>{N(()=>{A()})}),ne(()=>{N(()=>{A()})}),le(()=>{o&&o.revert()}),(f,v)=>(m(),k(X,{class:Z(["scroll-indicator",`scroll-indicator--${e.colour}`]),link:{url:e.element.anchor&&e.element.anchor.startsWith("#")?e.element.anchor:`#${e.element.anchor}`},ref_key:"elementRef",ref:T},{default:j(()=>[w("div",{class:"scroll-indicator__content",ref_key:"content",ref:_},[G(Q,{class:"scroll-indicator__arrow",colour:e.colour,"aria-hidden":"true"},null,8,["colour"]),w("span",{class:"scroll-indicator__text",textContent:Y(e.element.text)},null,8,Me),G(Q,{class:"scroll-indicator__arrow",colour:e.colour,"aria-hidden":"true"},null,8,["colour"])],512)]),_:1},8,["class","link"]))}}),Te=Object.assign(Le,{__name:"ElementsScrollIndicatorElement"}),Ie=["id"],De=V({name:"homepage-hero",__name:"homepage-hero-module",props:{module:{}},setup(e){const M=ee(),{firstLoadComplete:b,headerColour:x,pageHasScrolled:T,shouldShowIntro:_}=te(M),o=oe(),y=d(),I=d(),P=d(),A=d(),C=d(),S=d(),R=d(),f=d(),v=d(),E=d(),B=d(),D=d(),H=d();let z=null,O=null;const ae=`(max-width: ${o.$screen.xl-1}px)`,se=`(min-width: ${o.$screen.xl}px) and (max-width: ${o.$screen["5xl"]-1}px)`,ce=`(min-width: ${o.$screen["5xl"]}px)`;function J(){b.value&&(z=o.$gsap.context(()=>{W().width<o.$screen.xl&&me(),W().width>=o.$screen.xl&&pe(),O=o.$gsap.matchMedia(),O.add(ae,()=>{re()}),O.add(se,()=>{ie()}),O.add(ce,()=>{ue()})},y.value))}function re(){U(),he()}function ie(){U(),ge()}function ue(){U(),fe()}function de(){if(_.value===!1)return;const t=B.value,n=P.value?.$el,l=A.value,a=C.value?.$el,p=S.value?.$el,s=R.value?.$el,i=f.value?.$el,c=H.value,r=E.value?.$el,u=v.value?.$el,h=document.body,g=document.querySelector("header");!t||!n||!l||!a||!p||!s||!i||!c||!u||!h||!g||(o.$gsap.set(t,{y:70}),o.$gsap.set(n,{scale:1.1428571429}),o.$gsap.set(l,{opacity:1}),o.$gsap.set(a,{opacity:0}),o.$gsap.set(p,{opacity:0}),o.$gsap.set(s,{opacity:0}),o.$gsap.set(i,{opacity:0}),o.$gsap.set(u,{opacity:0}
1),o.$gsap.set(c,{opacity:0}),o.$gsap.set(g,{yPercent:-100}),r&&o.$gsap.set(r,{yPercent:200}),h.classList.add("no-scroll","no-pointer-events"))}function me(){if(_.value===!1)return;const t=B.value,n=P.value?.$el,l=A.value,a=C.value?.$el,p=S.value?.$el,s=R.value?.$el,i=f.value?.$el,c=H.value,r=v.value?.$el,u=document.body,h=document.querySelector("header");if(!t||!n||!a||!p||!s||!i||!c||!r||!u||!h)return;o.$gsap.timeline({defaults:{duration:2,ease:"power2.inOut"},onComplete:()=>{u.classList.remove("no-scroll","no-pointer-events"),_.value=!1}}).to(l,{yPercent:100}).to(c,{opacity:.4},"<").set(l,{opacity:0}).to(t,{y:0}).to(n,{scale:1},"<").to(a,{opacity:1},"<").to(p,{opacity:1},"<").to(s,{opacity:1},"<").to(i,{opacity:1},"<").to(r,{opacity:1},"<").to(c,{opacity:.2},"<").to(h,{yPercent:0},"<").set(h,{clearProps:"all"})}function pe(){if(_.value===!1)return;const t=B.value,n=P.value?.$el,l=A.value,a=C.value?.$el,p=S.value?.$el,s=R.value?.$el,i=f.value?.$el,c=H.value,r=E.value?.$el,u=v.value?.$el,h=document.body,g=document.querySelector("header");if(!t||!n||!a||!p||!s||!i||!c||!u||!h||!g)return;const L=o.$gsap.timeline({defaults:{duration:2,ease:"power2.inOut"},onComplete:()=>{h.classList.remove("no-scroll","no-pointer-events"),_.value=!1}});r?L.to(l,{yPercent:100,clipPath:"inset(0 0 100% 0)"}).to(c,{opacity:.4},"<").set(l,{opacity:0}).to(t,{y:0}).to(n,{scale:1},"<").to(a,{opacity:1},"<").to(p,{opacity:1},"<").to(s,{opacity:1},"<").to(i,{opacity:1},"<").to(u,{opacity:1},"<").to(c,{opacity:.2},"<").to(r,{yPercent:0},"<").to(g,{yPercent:0},"<").set(g,{clearProps:"all"}):L.to(l,{yPercent:100}).to(c,{opacity:.4},"<").set(l,{opacity:0}).to(t,{y:0}).to(n,{scale:1},"<").to(a,{opacity:1},"<").to(p,{opacity:1},"<").to(s,{opacity:1},"<").to(i,{opacity:1},"<").to(u,{opacity:1},"<").to(c,{opacity:.2},"<").to(g,{yPercent:0},"<").set(g,{clearProps:"all"})}function U(){const t=y.value,n=I.value?.$el,l=v.value?.$el;!t||!n||(o.$ScrollTrigger.create({trigger:t,start:"top top",end:"bottom top",pin:n,pinSpacing:!1}),o.$ScrollTrigger.create({trigger:t,start:"top top",end:"bottom top",pin:l,pinSpacing:!1}))}function he(){const t=y.value,n=B.value,l=D.value;if(!t||!n||!l)return;const a=10;o.$gsap.timeline({scrollTrigger:{trigger:t,start:"top top",end:"bottom top",scrub:!0}}).to(t,{clipPath:`inset(0 ${a}px 0 ${a}px round 10px)`,ease:"none"}).to(n,{scale:.75,y:-14,opacity:0,ease:"none"},"<").to(l,{y:-117,ease:"none"},"<")}function ge(){const t=y.value,n=B.value,l=E.value?.$el,a=D.value;if(!t||!n||!a)return;const s=W().width/24,i=.75,c=-117,r=-14,u=o.$gsap.timeline({scrollTrigger:{trigger:t,start:"top top",end:"bottom 25%",scrub:!0}});l?u.to(t,{clipPath:`inset(0 ${s}px 0 ${s}px round 10px)`,ease:"none"}).to(n,{scale:i,y:r,opacity:0,ease:"none"},"<").to(l,{yPercent:200,ease:"none"},"<").to(a,{y:c,ease:"none"},"<"):u.to(t,{clipPath:`inset(0 ${s}px 0 ${s}px round 10px)`,ease:"none"}).to(n,{scale:i,y:r,opacity:0,ease:"none"},"<").to(a,{y:c,ease:"none"},"<")}function fe(){const t=y.value,n=B.value,l=E.value?.$el,a=D.value;if(!t||!n||!a)return;const p=W().width,s=o.$screen["5xl"],i=s/24,c=(p-s)/2,r=i+c,u=.75,h=-117,g=-14,L=o.$gsap.timeline({scrollTrigger:{trigger:t,start:"top top",end:"bottom top",scrub:!0}});l?L.to(t,{clipPath:`inset(0 ${r}px 0 ${r}px round 10px)`,ease:"none"}).to(n,{scale:u,y:g,opacity:0,ease:"none"},"<").to(l,{yPercent:200,ease:"none"},"<").to(a,{y:h,ease:"none"},"<"):L.to(t,{clipPath:`inset(0 ${r}px 0 ${r}px round 10px)`,ease:"none"}).to(n,{scale:u,y:g,opacity:0,ease:"none"},"<").to(a,{y:h,ease:"none"},"<")}function ke(){v.value?.playVideo()}function ye(){x.value="dark"}function ve(){const t=document.querySelector(".header");t&&o.$gsap.set(t,{clearProps:"all"})}return F(b,()=>{N(()=>{J()})}),F(T,t=>{x.value=t?"light":"dark"}),ne(()=>{de(),ke(),ye(),N(()=>{J()})}),le(()=>{z&&z.revert(),ve()}),(t,n)=>(m(),q("section",{class:"homepage-hero module module--colour-inverted",id:e.module.id,ref_key:"moduleRef",ref:y},[e.module.background?(m(),k(be,{key:0,class:"homepage-hero__asset",asset:e.module.background,"image-sizes":"lg:50vw xl:50vw 2xl:50vw 3xl:50vw 4xl:50vw 5xl:50vw","mobile-image-sizes":"xs:100vw sm:100vw md:100vw",threshold:"lg","img-attrs":{class:"homepage-hero__image"},"picture-class":"homepage-hero__image-holder","video-class":"homepage-hero__video","video-attrs":{autoplay:!0,playsinline:!0,muted:!0,loop:!0,width:1920,height:1100},ref_key:"assetRef",ref:v},null,8,["asset"])):$("",!0),G(xe,{class:"homepage-hero__container",ref_key:"containerRef",ref:I},{default:j(()=>[w("div",{class:"homepage-hero__content",ref_key:"contentRef",ref:B},[e.module.heading?(m(),k(we,{key:0,class:"homepage-hero__heading",heading:e.module.heading,ref_key:"headingRef",ref:P},{default:j(()=>[w("div",{class:"homepage-hero__heading-mask",ref_key:"headingMaskRef",ref:A},null,512)]),_:1},8,["heading"])):$("",!0),e.module.textBlock?(m(),k(_e,{key:1,class:"homepage-hero__text-block","text-block":e.module.textBlock,ref_key:"textBlockRef",ref:C},null,8,["text-block"])):$("",!0),e.module.buttonBlock&&e.module.buttonBlock.length?(m(),k(K,{key:2,class:"homepage-hero__button-block",buttons:e.module.buttonBlock,ref_key:"buttonBlockRef",ref:S},null,8,["buttons"])):$("",!0),e.module.buttonBlockLinks&&e.module.buttonBlockLinks.length?(m(),k(K,{key:3,class:"homepage-hero__button-block",buttons:e.module.buttonBlockLinks,ref_key:"buttonLinksBlockRef",ref:R},null,8,["buttons"])):$("",!0)],512),e.module.scrollIndictor?(m(),k(Te,{key:0,class:"homepage-hero__scroll-indicator",element:e.module.scrollIndictor,colour:"light",ref_key:"scrollIndicatorRef",ref:f},null,8,["element"])):$("",!0),w("div",{class:"homepage-hero__blur-holder",ref_key:"blurHolderRef",ref:H},[w("div",{class:"homepage-hero__blur","aria-hidden":"true",ref_key:"blurRef",ref:D},null,512)],512),(m(),k(Ee,{to:"#teleports"},[e.module.spotlight?(m(),k(Ce,{key:0,class:"homepage-hero__spotlight",block:e.module.spotlight,ref_key:"spotlightRef",ref:E},null,8,["block"])):$("",!0)]))]),_:1},512)],8,Ie))}}),Oe=Object.assign(De,{__name:"HomepageHeroModule"});export{Oe as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.