1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7987],{7453:()=>{},67987:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>H});var o=t(49391),r=t(4822),a=t(24097),s=t(79e3),i=t(3411),c=t(29794),l=t(99123),d=t(21745),p=t(73808),h=t.n(p),u=t(42413),_=t(19431),m=t(84136),x=t(13721),f=t(7405),y=t(86211),C=t(54065),k=t(99765),v=t(81524),g=t(77968),N=t(52041),b=t(53728),S=t(80820),O=t(16360),j=t(99299),T=t(36447),A=t(14084);t(7453);var B="HeroBanner",I=function(e){function n(){var e;return(0,a._)(this,n),e=(0,r._)(this,n,arguments),e.handleOnClick=function(n,t){(0,S.LW)(e.props,e.props.position),(0,b.t)(n,t)},e.handleImpression=function(e){(0,b.UD)(e)},e.handleOnSourceSet=function(e,n,t){var o=A.Ay.get("preload"),r=!1;return o||(r=!0,o={sources:[],isLocked:!1}),o.sources.push({href:e,media:n,as:"video/mp4"===t?"video":"image",type:t}),A.Ay.set("preload",o),r},e}return(0,i._)(n,e),n.prototype.render=function(){var e=this,n=this.props,t=n.title,o=n.bodyCopy,r=n.largeBackground,a=n.smallBackground,i=n.largeVideo,p=n.link,u=n.smallVideo,b=n.ctaContent,S=n.isPagePrimaryContent,A=n.hideTitle,I=n.textColour,H=n.position,L=n.shouldOmitFeatureContext,P=!!i,w=0===H?C.A:y.A,E=0===H?m.i8.High:m.i8.Low,R=function(){var n=e.props.trackingContext,o=(0,v.Xs)({name:N.xO.HeroBanner,type:N.xO.HeroBanner,position:O.ho.Main}),r=(0,v.Ai)({name:t,type:P?O.R6.Video:O.R6.Image,index:H,isPromotion:!0,contentId:P?null==u?void 0:u.videoSrc:F[0].src});return L?n.concat(r):n.concat(o,r)},V=j.T.color.getColorByName(I),F=(0,k.pN)(a,r),M=!!p,U=M?_.A:"div",z=t||o||b||M,D=F||P,W=M?{href:p.href,title:p.label,onClick:function(){return e.handleOnClick(p.href,R())},className:"".concat(B,"__link"),"data-test":"hero-banner-link","data-testid":"hero-banner-link"}:{className:"".concat(B,"__media-wrapper")},X=h()(B,(0,s._)({},"".concat(B,"--has-video"),P));return(0,d.jsx)(g.A,{onIntersection:function(){return e.handleImpression(R())},shouldOnlyTriggerOnce:!0,threshold:.1,children:(0,d.jsx)("article",{"data-test":"hero-banner","data-testid":"hero-banner",className:X,"aria-label":t||p.label,children:(0,d.jsxs)("div",{className:"".concat(B,"__content"),children:[z&&!D&&(0,d.jsxs)("div",{className:"".concat(B,"__copy"),style:{color:V},children:[!A&&!!t&&(0,d.jsx)(S?"h1":"p",{className:"".concat(B,"__title h1"),children:t}),!!o&&(0,d.jsx)("div",{className:"".concat(B,"__body"),dangerouslySetInnerHTML:{__html:o||""}}),!!b&&M&&(0,d.jsx)(_.A,{className:"".concat(B,"__cta"),href:p.href,title:p.label,onClick:function(){return e.handleOnClick(p.href,R())},children:b})]}),(0,d.jsxs)(U,(0,l._)((0,c._)({},W),{children:[!P&&(0,d.jsx)(w,{sources:F,parentClass:"".concat(B,"__image"),className:"".concat(B,"__image"),alt:a.alt,title:a.title,onSourceSet:this.handleOnSourceSet,fetchPriority:E}),P&&u&&i&&(0,d.jsx)(x.A,(0,l._)((0,c._)({},i),{poster:F,sizes:{xxs:(0,l._)((0,c._)({},u),{poster:a}),sm:(0,l._)((0,c._)({},i),{poster:r})},sources:[{src:u.videoSrc,breakpoint:T.C9.Type.xxs,breakpointRange:[T.C9.Type.xxs,T.C9.Type.xs],options:{poster:a}},{src:i.videoSrc,breakpoint:T.C9.Type.sm,options:{poster:r}}],provider:f.s.CONTENTFUL,loop:!0,controls:!1,muted:!0,autoplay:!0,className:"".concat(B,"__video"),onSourceSet:this.handleOnSourceSet}))]}))]})})})},n}(u.PureComponent);let H=(0,o.v)(I)}}]);
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.