1import{d as I,ah as j,ai as V,u as P,v as z,aq as M,ar as A,as as H,j as x,f as s,i as n,A as D,al as Y,x as o,o as t,at as T,I as O,_ as N,au as Z,am as G,av as J,F as K,r as Q,g as q,Z as W,n as U,ao as X,Y as ee,an as te}from"./CHz7KWu6.js";import{B as ae}from"./9Gx73rbP.js";import{A as ne}from"./DaAvCaVS.js";import{A as oe}from"./B7kRK2Lv.js";import{A as re,S as le}from"./CeNqNSHc.js";import{F as ce}from"./DMZmDjRA.js";import{F as ie}from"./BSt6N3C0.js";import"./CUE8i9IC.js";const se=I({name:"article-header",__name:"article-header-block",props:{header:{}},setup(e){const f=j(),{firstLoadComplete:d}=V(f),r=P(),l=o(),k=o(),$=o(),g=o();let h=null;function c(){const v=l.value,y=k.value?.$el,L=$.value,S=g.value?.$el;if(!v||!y)return;const C=[L,S].filter(Boolean),R=r.$gsap.timeline();y&&C.length?R.fromTo(y,{opacity:0,y:20},{opacity:1,y:0,duration:1,ease:"power1.inOut"}).fromTo(C,{opacity:0},{opacity:1,duration:1,ease:"power1.inOut"}):y&&!C.length&&R.fromTo(y,{opacity:0,y:20},{opacity:1,y:0,duration:1,ease:"power1.inOut"})}function a(){T().width<r.$screen.xl&&c()}function m(){T().width>=r.$screen.xl&&c()}function i(){d.value&&(h=r.$gsap.context(()=>{a(),m()},l.value))}return z(d,()=>{A(()=>{i()})}),M(()=>{A(()=>{i()})}),H(()=>{h&&h.revert()}),(v,y)=>(t(),x("div",{class:"article-header",ref_key:"block",ref:l},[e.header.articleTags?(t(),s(oe,{key:0,block:e.header.articleTags,class:"article-header__tags",ref_key:"tags",ref:$},null,8,["block"])):n("",!0),D(Y,{class:"article-header__heading",heading:{type:"h1",style:"h2",text:e.header.heading},ref_key:"headingRef",ref:k},null,8,["heading"]),e.header.author?(t(),s(ne,{key:1,class:"article-header__author",author:e.header.author,ref_key:"author",ref:g},null,8,["author"])):n("",!0)],512))}}),ue=Object.assign(se,{__name:"BlocksArticleHeaderBlock"}),de={class:"article-cta-card"},me={class:"article-cta-card__content"},fe=["textContent"],ke=I({name:"article-cta-card",__name:"article-cta-card-block",props:{card:{}},setup(e){return(f,d)=>(t(),x("div",de,[d[0]||(d[0]=O("div",{class:"article-cta-card__background"},null,-1)),O("div",me,[e.card.tag?.text?(t(),x("span",{key:0,class:"article-cta-card__tag",textContent:N(e.card.tag?.text)},null,8,fe)):n("",!0),e.card.heading?(t(),s(Y,{key:1,class:"article-cta-card__heading",heading:e.card.heading},null,8,["heading"])):n("",!0),e.card.textBlock?(t(),s(Z,{key:2,class:"article-cta-card__text-block","text-block":e.card.textBlock},null,8,["text-block"])):n("",!0)]),e.card.buttonBlock?(t(),s(G,{key:0,class:"article-cta-card__button-block",buttons:e.card.buttonBlock,ref:"buttonBlock"},null,8,["buttons"])):n("",!0),D(ce,{class:"article-cta-card__svg"})]))}}),he=Object.assign(ke,{__name:"BlocksCardsArticleCtaCardBlock"}),ge={class:"sidebar-nav"},ve=["textContent"],be=I({name:"sidebar-nav-block",__name:"sidebar-nav-block",props:{block:{}},setup(e){const f=o(),d=o(),r=o([]),l=o({transform:"translateY(0px)",height:"0px",opacity:0});let k;function $(c,a){r.value[a]=c?.$el??c??null}function g(){if(!f.value||!d.value){l.value={...l.value,opacity:0}
1;return}const c=e.block.items?.findIndex(v=>v.anchorId===f.value)??-1,a=r.value[c];if(!a)return;const m=d.value.getBoundingClientRect(),i=a.getBoundingClientRect();l.value={transform:`translateY(${i.top-m.top}px)`,height:`${i.height}px`,opacity:1}}function h(){g()}return z(f,()=>{A(g)}),M(()=>{if(!e.block.items?.length)return;const c=e.block.items.map(a=>document.getElementById(a.anchorId)).filter(Boolean);c.length&&(k=new IntersectionObserver(a=>{const m=a.find(i=>i.isIntersecting);m&&(f.value=m.target.id)},{rootMargin:"-10% 0px -80% 0px"}),c.forEach(a=>k.observe(a)),A(g),window.addEventListener("resize",h))}),H(()=>{k?.disconnect(),window.removeEventListener("resize",h)}),(c,a)=>(t(),x("div",ge,[e.block.tag?.text?(t(),x("span",{key:0,class:"sidebar-nav__tag",textContent:N(e.block.tag?.text)},null,8,ve)):n("",!0),e.block.items?.length?(t(),x("nav",{key:1,class:"sidebar-nav__nav",ref_key:"navRef",ref:d},[O("span",{class:"sidebar-nav__indicator",style:J(l.value),"aria-hidden":"true"},null,4),(t(!0),x(K,null,Q(e.block.items,(m,i)=>(t(),s(X,{class:U(["sidebar-nav__item",{"sidebar-nav__item--active":f.value===m.anchorId}]),key:i,ref_for:!0,ref:v=>$(v,i),link:{url:`#${m.anchorId}`}},{default:q(()=>[W(N(m.text),1)]),_:2},1032,["class","link"]))),128))],512)):n("",!0)]))}}),ye=Object.assign(be,{__name:"BlocksCardsSidebarNavBlock"}),xe=["id"],_e={class:"article__body"},Be=I({name:"article-module",__name:"article-module",props:{module:{}},setup(e){const f=j(),{firstLoadComplete:d}=V(f),r=P(),l=o(),k=o(),$=o(),g=o(),h=o(),c=o(),a=o(),m=o();let i=null;function v(){d.value&&(i=r.$gsap.context(()=>{y(),L()},l.value))}function y(){T().width<r.$screen.xl&&S()}function L(){T().width>=r.$screen.xl&&(C(),R())}function S(){const u=l.value,b=k.value?.$el,E=h.value?.$el,w=a.value?.$el,_=[b,E,w].filter(Boolean);if(!u||!_.length)return;r.$gsap.timeline().fromTo(u,{opacity:0},{opacity:1,duration:0}).fromTo(_,{opacity:0},{opacity:1,duration:1,delay:1,ease:"power1.inOut"})}function C(){const u=l.value,b=k.value?.$el,E=g.value?.$el,w=h.value?.$el,_=a.value?.$el,B=[b,w,_].filter(Boolean),p=[E].filter(Boolean);if(!u&&!p.length&&!B.length||!u)return;const F=r.$gsap.timeline();p.length&&B.length?F.fromTo(u,{opacity:0},{opacity:1,duration:0}).fromTo(p,{opacity:0,y:20},{opacity:1,y:0,duration:1,ease:"power1.inOut"}).fromTo(B,{opacity:0},{opacity:1,duration:1,ease:"power1.inOut"}):!p.length&&B.length?F.fromTo(u,{opacity:0},{opacity:1,duration:0}).fromTo(B,{opacity:0},{opacity:1,duration:1,delay:1,ease:"power1.inOut"}):p.length&&!B.length&&F.fromTo(u,{opacity:0},{opacity:1,duration:0}).fromTo(p,{opacity:0,y:20},{opacity:1,y:0,duration:1,ease:"power1.inOut"})}function R(){const u=l.value,b=c.value;if(!b||!u)return;const E=b.offsetHeight,w=100,_=E+w;T().height>=_?r.$ScrollTrigger.create({trigger:b,endTrigger:u,pin:!0,start:`top ${w}px`,end:`bottom ${_}px`}):r.$ScrollTrigger.create({trigger:b,endTrigger:u,pin:!0,start:"bottom bottom",end:"bottom bottom"})}return z(d,()=>{A(()=>{v()})}),M(()=>{A(()=>{v()})}),H(()=>{i&&i.revert()}),(u,b)=>(t(),x("section",{class:U(["article module",e.module.variant?`article--${e.module.variant}`:""]),id:e.module.id,ref_key:"moduleRef",ref:l},[D(ee,{class:"article__container"},{default:q(()=>[e.module.backLink?(t(),s(ae,{key:0,class:"article__back-link","back-link":e.module.backLink,ref_key:"backLink",ref:k},null,8,["back-link"])):n("",!0),e.module.header?(t(),s(ue,{key:1,class:"article__header",header:e.module.header,ref_key:"articleHeader",ref:$},null,8,["header"])):n("",!0),e.module.asset?(t(),s(te,{key:2,class:"article__asset",asset:e.module.asset,"image-sizes":"lg:50vw xl:50vw 2xl:33vw 3xl:33vw 4xl:33vw 5xl:33vw","mobile-image-sizes":"xs:100vw sm:100vw md:100vw",threshold:"lg","img-attrs":{class:"article__image"},"picture-class":"article__image-holder","aspect-ratio":"natural",ref_key:"assetRef",ref:g},null,8,["asset"])):n("",!0),O("div",_e,[e.module.contentArea?(t(),s(re,{key:0,class:"article__content-area","content-area":e.module.contentArea,ref_key:"contentArea",ref:h},null,8,["content-area"])):n("",!0)]),O("div",{class:"article__sidebar",ref_key:"sidebar",ref:c},[e.module.form?(t(),s(ie,{key:0,form:e.module.form,class:"article__sidebar-form"},null,8,["form"])):n("",!0),e.module.navBlock&&!e.module.form?(t(),s(ye,{key:1,class:"article__sidebar-nav-block",block:e.module.navBlock,ref:"sidebarNavBlock"}
1,null,8,["block"])):n("",!0),e.module.shareBlock?(t(),s(le,{key:2,class:"article__share-block",block:e.module.shareBlock,"share-text":e.module.header.heading,ref_key:"shareBlock",ref:a},null,8,["block","share-text"])):n("",!0),e.module.articleCtaCard?(t(),s(he,{key:3,class:"article__article-cta-card",card:e.module.articleCtaCard,ref_key:"articleCtaCard",ref:m},null,8,["card"])):n("",!0)],512)]),_:1})],10,xe))}}),Re=Object.assign(Be,{__name:"ArticleModule"});export{Re 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.