(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[874],{47874:(e,t,n)=>{Promise.resolve().then(n.bind(n,1254))},33684:(e,t,n)=>{"use strict";n.d(t,{ContextProvider:()=>o,o:()=>r});var a=n(12115),i=n(95155),r=(0,a.createContext)(),o=function(e){var t=e.children,n=e.value;return(0,i.jsx)(r.Provider,{value:n,children:t})}},83681:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(12115);let i=function(){var e=(0,a.useState)({viewportWidth:0,viewportHeight:0,mobileView:!1}),t=e[0],n=e[1];return(0,a.useLayoutEffect)(function(){var e=function(){var e=window,t=e.innerWidth;n({viewportWidth:t,viewportHeight:e.innerHeight,mobileView:t<=768})};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[]),t}},1254:(e,t,n)=>{"use strict";n.d(t,{PageLayout:()=>eV});var a=n(18379),i=n(28344),r=n(12115),o=n(48036),l=n(68607),s=n(95155);function c(e){var t,n=e.breadcrumbs,a=e.pageTitle,i=e.translations;return(0,s.jsx)(o.a,{$paddingX:{xs:5,md:6},$paddingY:4,children:(0,s.jsxs)(l.B,{"data-themes-id":"breadcrumbs",children:[(0,s.jsx)(l.B.Item,{href:"/",className:"breadcrumbHome",children:null==i||null===(t=i.homePage)||void 0===t?void 0:t.home}),n.map(function(e){return(0,s.jsx)(l.B.Item,{href:e.url,children:e.title},e.url)}),(0,s.jsxs)(l.B.Item,{disabled:!0,current:!0,children:[a," "]})]})})}var d=n(81114),u=n(96361),m=n(54694),g=n(83841),p=n(64023),h=n(63004),x=n(20972),f=n(71052),b=n(28547),v=n(1284),_=n(87444),j=n.n(_);function $(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{url:""},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{url:""},a=arguments.length>2?arguments[2]:void 0;return null===(e=a&&null!=n&&n.url?n:t)||void 0===e?void 0:e.url}var w={small:"640w",medium:"1024w",large:"1200w"},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"jpg",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"auto"===e?t.split(".").pop():e},k=function(e,t){var n=e.url,a=e.format;return"".concat(encodeURI(n?n.replace("https://images.contentstack.io/v3/","https://static.skyassets.com/contentstack/"):""),"?downsize=").concat(t,":*&output-format=").concat(y(a,n))},O=n(14038),P=n(65133),S=n(59875),C=function(e,t){var n;switch(e){case"small":default:n="25%";break;case"medium":n="50%";break;case"standard":n="75%";break;case"large":n="100%"}return t&&(n="100%"),n};function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function z(e){var t,n=e.image_file,a=e.mobile_image,i=e.alignment,r=e.alt_text,o=e.size,l=e.caption,c=e.mobileView,u=e.remove_padding,m={desktop:n.url,mobile:(null==a?void 0:a.url)||n.url},g="".concat(c?"mobile":"desktop"),p=!!["mp4","mpeg4","webm"].includes(t=m[g].split(".").pop().toLowerCase())||!["jpg","jpeg","png","gif","apng","avif","svg","webp","bmp","tiff","psd"].includes(t)&&"invalid",h={small:"12px 20px 1px",medium:"12px 20px 1px",standard:"18px 48px 1px",large:"18px 48px 1px"},b={small:"14px",medium:"16px",standard:"16px",large:"16px"};return"invalid"===p?(0,s.jsx)(S.F,{text:"Your file type is not recognised, please upload one of the following file types: apng, avif, gif, jpeg, jpg, png, svg, webp, mp4, mpeg4, webm"}):(0,s.jsx)(v.s,{$justifyContent:i,children:(0,s.jsxs)(v.s,{as:"figure",$flexDirection:"column","data-testid":"figure-container",style:function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0,n=["legal","body-sm","body","body-lg","display-6","display-5","display-4","display-3","display-2","display-1"],a=n.indexOf(e);if(-1===a)throw Error("Invalid current font size");if("number"!=typeof t)throw Error("Invalid change argument");var i=a+t,r=n.length-1;return i<0&&(i=0),i>r&&(i=r),n[i]}function T(e){var t=e.name,n=e.title,a=e.quote_body,r=e.font_size;return(0,s.jsxs)(o.a,{$marginY:8,$marginX:{lg:"7",xs:"5"},"data-testid":"quote-component",children:[(0,s.jsx)(o.a,{$marginBottom:5,$textAlign:"center",children:(0,s.jsx)(i.E,{$fontSize:r,$display:"inline-block",$colorGradient:"sky",className:"themes-gradient","data-font-id":"heading",children:a})}),(0,s.jsx)(o.a,{$textAlign:"center",children:(0,s.jsx)(i.E,{$fontSize:D(r,-2),children:t})}),n.length>0&&(0,s.jsxs)(o.a,{$display:"flex",$flexDirection:"column",$alignItems:"center",$paddingTop:3,children:[(0,s.jsx)("hr",{className:"c--quote-divider"}),(0,s.jsx)(i.E,{$marginY:3,$textAlign:"center",$fontSize:D(r,-3),children:n})]})]})}z.defaultProps={image_file:{url:""},alt_text:"",size:"small",alignment:"center",caption:""},T.defaultProps={name:"",title:"",quote_body:"",font_size:"display-3"};var I=n(84673),A=n.n(I),F=n(39515),R=n.n(F),L=n(23859),Y=n(82107);function B(e){var t=e.rows;return(0,s.jsx)("div",{"data-testid":"download-table",className:"table-padding",children:t.map(function(e,t){var n,a;return e.file&&e.file.url&&(0,s.jsxs)(Y.x,{$gridTemplateColumns:"repeat(3, 1fr)",$marginX:{xs:"5",md:"7"},$marginY:2,$gap:0,$width:"90%",className:"border","data-testid":"download-table-row",children:[(0,s.jsx)(o.a,{"data-testid":"download-table-column",$paddingY:2,children:(0,s.jsx)(L.N,{className:"wrap-long-word",href:e.file.url,"data-themes-id":"download-link",download:!0,target:"_blank",rel:"noreferrer",children:e.name})}),(n=e.file.file_size,(0,s.jsx)(o.a,{"data-testid":"download-table-column",$paddingY:2,$marginLeft:"auto",children:(0,s.jsx)(i.E,{children:n>0?A()(n):""})})),(a=e.file.content_type,(0,s.jsx)(o.a,{"data-testid":"download-table-column",$paddingY:2,$marginLeft:"auto",children:(0,s.jsx)(i.E,{children:R().getExtension(a)&&R().getExtension(a).toUpperCase()})})),function(e){if(e)return(0,s.jsx)(o.a,{"data-testid":"download-table-column",$paddingY:2,$gridColumn:"1 / span 3",children:(0,s.jsx)(i.E,{children:e})})}(e.description)]},t)})})}B.defaultProps={rows:[{name:"",file:{file_size:"",content_type:"",url:""}}]};var X=n(44634),V=n(84985),M=function(e){var t=e.searchResults,n=e.searchError,a=e.totalResults,r=e.loading,o=e.translations;return r?(0,s.jsx)(v.s,{$alignItems:"center",$gap:4,$width:"fit-content",$marginY:"4",$marginX:"auto",children:(0,s.jsx)(X.k,{"aria-label":"progressbar-label"})}):t&&t.length?(0,s.jsx)(Y.x,{$gridTemplateColumns:{xs:"repeat(1, 1fr)",md:"repeat(4, 1fr)"},$gap:0,$marginY:5,style:{rowGap:"24px",margin:"24px 2vw"},$width:"auto",children:t.map(function(e,t){var n;return e.title&&e.slug&&e.locale?(e.image&&(n=e.image),(0,s.jsx)(V.F,{headline:e.title,image:{url:k({url:n})},alt_text:e.alt_text||"",url:"/".concat(e.locale).concat(e.slug),type:"split",date:e.publishDate,locale:e.locale,tilesPerRow:4,"data-testid":"article-tile"},t)):null})}):!r&&(0===a||n)?(0,s.jsx)(v.s,{$alignItems:"center",$gap:4,$width:"fit-content",$marginY:"4",$marginX:"auto",children:(0,s.jsx)(i.E,{as:"p","data-testid":"search-error",$color:"negative",children:n?"Sorry, search is currently unavailable. Please try again later.":o.noResultsMessage})}):null};function H(e){var t=e.loading,n=e.searchResponse,a=e.setLoading,i=e.translations;if(!n||!n.results||n.searchError||t)return null;var r=new URLSearchParams(window.location.search),o=parseInt(r.get("currentPage"),10)||0,l=function(e){a(!0),"next"===e?o+=1:"previous"===e&&(o-=1),r.set("currentPage",o),window.location.search=r};return n.totalResults>n.results.length?(0,s.jsxs)(v.s,{$alignItems:"center",$gap:{xs:"0",lg:"6"},$width:{xs:"95%",lg:"30%"},$marginY:"4",$marginX:"auto",$flexDirection:{xs:"column",lg:"row"},children:[(0,s.jsx)(m.$,{disabled:0===o,button_type:"secondary",button_size:"100%",onClick:function(){return l("previous")},button_text:i.buttons.previous,inComponent:!0}),(0,s.jsx)(m.$,{button_type:"primary",button_size:"100%",disabled:n.totalResults<=n.results.length+12*o,onClick:function(){return l("next")},button_text:i.buttons.next,inComponent:!0})]}):null}M.defaultProps={searchResults:[],totalResults:0,loading:!1,searchError:!1},H.defaultProps={loading:!1,searchResponse:null,setLoading:function(){return null}};var W=n(24163),U=n(99238),q=n(69109),G=n(32980),Q=n(57678),J=n(55402),K=n(30523),Z=n(50376),ee=n(86119),et=n(96855),en=n(80608),ea=n(58661);function ei(e){var t,n=e.filterItems,a=e.setFilterItems,r=e.searchResponse,l=e.toggleOpen,c=e.open,d=e.handleSubmit,u=e.translations,g=function(e){var t=e.target,n=t.value;t.checked?a(function(e){return[].concat((0,ee.A)(e),[n])}):a(function(e){return e.filter(function(e){return e!==n})})};return(0,s.jsx)(s.Fragment,{children:c&&(0,s.jsxs)(et.a,{onClose:l,$width:{md:"45%",lg:"35%"},id:"filterModal",children:[(0,s.jsx)(et.a.CloseButton,{$inline:!0}),(0,s.jsxs)(et.a.Content,{$padding:5,children:[(0,s.jsx)(o.a,{$textAlign:"center",children:(0,s.jsx)(i.E,{id:"message",as:"h2",className:"font-weight-700",children:u.legendTitle})}),(0,s.jsx)(en.g,{children:(0,s.jsx)(en.g.Layout,{as:Y.x,$gap:{xs:"4",md:"2",lg:"3",xl:"4"},$gridTemplateColumns:"1fr 1fr 1fr",$justifyItems:"center",$marginTop:4,children:null==r||null===(t=r.filterData)||void 0===t||null===(t=t.years)||void 0===t?void 0:t.map(function(e,t){return(0,s.jsx)(en.g.Option,{as:ea.O,name:"year",id:e,value:e,"aria-describedby":"message",onChange:g,checked:null==n?void 0:n.includes(e),"data-testid":e,children:e},t)})})}),(0,s.jsxs)(v.s,{$justifyContent:"center",children:[(0,s.jsx)(m.$,{button_text:u.buttons.reset,onClick:function(){return a([])},button_type:"tertiary"}),(0,s.jsx)(m.$,{button_text:u.buttons.apply,onClick:function(e){return d(e)},button_type:"primary"})]})]})]})})}function er(e){var t=e.searchResponse,n=e.translations,a=e.setLoading,i=(0,Z.useSearchParams)(),l=i.get("searchTerm")||"",c=i.get("filterBy")||"",d=c.length>0?c.split(",").map(function(e){return"".concat(e)}):[],u=(0,r.useState)(""),m=u[0],g=u[1],x=(0,r.useState)(d),f=x[0],b=x[1],v=r.useState(!1),_=(0,p.A)(v,2),j=_[0],$=_[1],w=function(e){e.preventDefault(),e.stopPropagation(),b(d),$(!j)};function y(e){a(!0),e.preventDefault(),(m.length>0||f)&&(window.location.href="?searchTerm=".concat(encodeURI(m),"&filterBy=").concat(encodeURI(f)))}return(0,r.useEffect)(function(){a(!1),g(l)},[]),(0,s.jsxs)(Y.x,{$gridTemplateColumns:"3fr 1fr",$alignItems:"center",$gap:0,$marginTop:7,className:"search-box",$width:"auto",id:"searchBoxContainer",children:[(0,s.jsx)(o.a,{$flexGrow:3,$width:{xs:"100%",xl:"auto"},children:(0,s.jsxs)(h.y,{$position:"relative",children:[(0,s.jsx)("form",{id:"searchBoxForm",onSubmit:y,children:(0,s.jsxs)(q.D,{className:"row",children:[(0,s.jsx)(q.D.Label,{htmlFor:"search-input",children:n.searchPlaceholder}),(0,s.jsx)(q.D.Control,{as:G.k,"data-testid":"search-input",id:"search-input",value:m,onChange:function(e){return g(e.target.value)},autoComplete:"off"})]})}),(0,s.jsx)(h.y,{$position:"absolute",$top:"4px",$left:"5px",children:(0,s.jsx)(Q.I,{src:W.LA,"data-testid":"search-icon",className:"search-icon"})}),(0,s.jsx)(h.y,{$position:"absolute",$top:"4px",$right:"5px",children:(0,s.jsx)(J.K,{src:U.OH,onClick:w,"data-testid":"filter-icon",className:"filter-icon","aria-label":"Toggle search filter modal",$appearance:"minimal"})}),(0,s.jsx)(ei,{setFilterItems:b,filterItems:f,searchResponse:t,toggleOpen:w,open:j,handleSubmit:y,translations:n})]})}),(0,s.jsx)(K.$,{className:"search-submit","data-testid":"search-submit","aria-label":n.buttons.search,onClick:function(e){return y(e)},children:n.buttons.search})]})}function eo(e){var t=e.locale,n=e.translations,a=(0,r.useState)({}),i=a[0],o=a[1],l=(0,r.useState)(!1),c=l[0],d=l[1],u=n.search;return(0,r.useEffect)(function(){var e=new URLSearchParams(window.location.search),n=e.get("currentPage")||0,a=e.get("searchTerm")||"",i=e.get("filterBy")||"";d(!0),fetch("/api/search?searchTerm=".concat(a,"&filterBy=").concat(i,"&userLocale=").concat(t,"¤tPage=").concat(n)).then(function(e){return e.json()}).then(function(e){o(e),d(!1)}).catch(function(e){console.error("Error fetching search results:",e),o({searchError:!0}),d(!1)})},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(er,{setLoading:d,searchResponse:i,translations:u}),(0,s.jsx)(M,{searchResults:i.results,searchError:i.searchError,totalResults:i.totalResults,loading:c,translations:u}),(0,s.jsx)(H,{loading:c,searchResponse:i,setLoading:d,translations:u})]})}eo.defaultProps={locale:"en-gb"};var el=n(55466),es=n(43029),ec=n(94998),ed=n(90168),eu=n(22624),em=n(15735);function eg(e){var t=e.nextSlide,n=e.previousSlide,a=e.onPlayClick,i=e.playPauseButtonPressed,o=e.videoSlidePresent,l=e.uid,c=e.translations,d=void 0===c?{}:c;return(0,s.jsxs)(r.Fragment,{children:[o?null:(0,s.jsx)("button",{"data-testid":"play-pause-button",onClick:a,className:"c-new-carousel__button c-new-carousel__play-pause-button","aria-label":i?d.carousel["start-button"]:d.carousel["stop-button"],children:i?(0,s.jsx)(Q.I,{$size:"large",src:ec.Gl}):(0,s.jsx)(Q.I,{$size:"large",src:ed.Q7})}),(0,s.jsx)("button",{"data-testid":"previous-slide-button",onClick:n,className:"c-new-carousel__button c-new-carousel__previous-button","aria-label":d.carousel["previous-button"],"aria-controls":"carouselContent_".concat(l),children:(0,s.jsx)(Q.I,{$size:"large",src:eu.Yh})}),(0,s.jsx)("button",{"data-testid":"next-slide-button",onClick:t,className:"c-new-carousel__button c-new-carousel__next-button","aria-label":d.carousel["next-button"],"aria-controls":"carouselContent_".concat(l),children:(0,s.jsx)(Q.I,{$size:"large",src:em.zO})})]})}function ep(e){var t=e.current,n=e.slides,a=e.navigateSlides,i=e.uid,o=e.translations,l=void 0===o?{}:o;return(0,s.jsx)(r.Fragment,{children:(0,s.jsx)("ul",{className:"c-new-carousel__nav-list",children:n.map(function(e,r){return(0,s.jsx)("li",{className:"c-new-carousel__nav-list-item",children:(0,s.jsx)("button",{className:"c-new-carousel__navigation-button ".concat(r+1===t?"active":""),"aria-controls":"carouselContent_".concat(i),"aria-label":"".concat(l.carousel["slide-number"].replace("{{slideNo}}",r+1).replace("{{totalNumberOfSlides}}",n.length)).concat(r+1===t?" (".concat(l.carousel.current,")"):""),onClick:function(){return a(r+1)},children:(0,s.jsx)("svg",{"aria-hidden":"true",width:"11px",height:"11px",children:(0,s.jsx)("circle",{cx:"4",cy:"4",r:"4"})})},"nav-button-".concat(r))},r)})})})}function eh(e){var t,n=e.slide,a=e.height,i=e.mobileView;if(!n)return null;var r=null===(t=n.mobile_image)||void 0===t?void 0:t.url,o=n.image.url;return(0,s.jsx)(f._,{src:k({url:i&&r?r:o},1920),alt:n.alt_text,"data-testid":"image_slide",className:"c-new-carousel__image_".concat(a)})}function ex(e){var t,n,a=e.slide,i=e.videoStartTime,o=e.height,l=e.mobileView,c=(0,r.useRef)(null),d=(0,r.useState)(!1),u=d[0],m=d[1],g=(0,r.useState)(!0),h=g[0],x=g[1];if(!a)return null;var f=null===(t=a.video.mobile_source)||void 0===t?void 0:t.url,b=null===(n=a.video.source)||void 0===n?void 0:n.url,v=a.video.mobile_thumbnail,_=a.video.thumbnail,j=l&&f?f:b,w=function(e){m((0,p.A)(e,1)[0].isIntersecting),u&&(h?(c.current.currentTime=0,x(!1)):c.current.currentTime=i)},y={root:null,rootMargin:"0px",threshold:.01};return(0,r.useEffect)(function(){var e=new IntersectionObserver(w,y),t=c.current;return t&&e.observe(t),function(){t&&e.unobserve(t)}},[u]),(0,s.jsx)("video",{"data-testid":"video-slide",ref:c,src:j,poster:$(_,v,l),alt:a.alt_text,id:"video",loop:!0,autoPlay:!0,playsInline:!0,muted:!0,className:"c-new-carousel__video_".concat(o)})}function ef(e,t,n,a){var i="fx-transition-delay-750ms",r="opacity-0";return(1===e&&n>0||e===a&&n<0)&&(i="fx-transition-delay-0s"),t===e-1&&(r="opacity-1"),"fx fx-transition-property-opacity ".concat(i," fx-transition-duration-750ms fx-transition-time_ease ").concat(r)}function eb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ev(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=[],a=[];return(0,ee.A)(e).forEach(function(e){a.push(e.src),n.push(new URL(e.src).hostname)}),{domainMatches:n.filter(function(e){return null==t?void 0:t.includes(e)}),tagSrc:a}}function ek(e){var t,n,a,i,o,l,c,d,u,m=e.cmpData,g=e.embed_code,p=(0,r.useState)(!1),h=p[0],x=p[1];return(0,r.useEffect)(function(){x(!0)},[]),(0,s.jsx)(r.Fragment,{children:(0,s.jsx)(v.s,{$flexDirection:"column",children:h&&(t=g,n=m.allowedPartners,a=(0,e_.stripHtml)(t,{ignoreTags:["div","script","iframe"]}).result,i=new DOMParser().parseFromString(a,"text/html").getElementsByTagName("script"),l=ey(o=new DOMParser().parseFromString(a,"text/html").getElementsByTagName("iframe"),n).domainMatches,d=(c=ey(i,n)).domainMatches,u=c.tagSrc,l.length===o.length&&(o.length>0||i.length>0)&&d.length===i.length?(0,s.jsxs)(s.Fragment,{children:[u.map(function(e,t){return(0,s.jsx)(ej.default,{src:e},t)}),(0,s.jsx)("div",{className:"render-embed",dangerouslySetInnerHTML:{__html:a}})]}):(0,s.jsx)(S.F,{text:"An unknown provider has been embedded, please contact Sky Website support for more assistance."}))})})}function eO(e){var t,n=e.consentCookie,a=e.embed_code,i=e.label,r=e.translations,o=e.cmpData,l=("string"==typeof o.allowedPartnersConsent?JSON.parse(o.allowedPartnersConsent.replace(/'/g,'"')):o.allowedPartnersConsent)[i];return""!==l&&!((t=o.cmpIntegration)&&n.includes(l))&&t?(0,s.jsx)(ew,{cmpData:o,translations:r["not-consented"]}):(0,s.jsx)(ek,{cmpData:o,embed_code:a})}function eP(e){var t=e.consentCookie,n=e.embed_code,a=e.label,i=e.translations,r=e.cmpData;return(0,s.jsx)(eO,{consentCookie:void 0===t?"":t,embed_code:void 0===n?"":n,label:void 0===a?"":a,translations:i,cmpData:void 0===r?"":r})}eP.defaultProps={embed_code:""};var eS=n(38192),eC=n(92214);function eN(e){var t=e.tab,n=e.index,a=e.border,i=t.title&&"".concat(t.title.replace(/ /g,"_"),"_").concat(t._metadata.uid);return(0,s.jsx)(o.a,{$borderTop:0===n&&a,$borderBottom:a,$borderX:a,$margin:0,$paddingX:4,$paddingY:2,children:(0,s.jsxs)(eS.n,{"data-themes-id":"accordion-item","data-testid":"accordion-item",id:i,$marginBottom:2,$marginTop:2,children:[(0,s.jsx)(eS.n.Heading,{"data-testid":"heading","aria-describedby":"".concat(i,"-heading"),"data-font-id":"heading",children:t.title}),(0,s.jsx)(eS.n.Content,{"data-testid":"content",style:{overflowWrap:"break-word"},dangerouslySetInnerHTML:{__html:(0,eC.A)(t.content)},"aria-describedby":"".concat(i,"-content")})]})})}var ez=n(36095);function eE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function eD(e){for(var t=1;t0,q=null==u?void 0:u.uid,G=function(e){var t=e.heading,n=e.subheading,a=e.alt_text;t||n?H("".concat(t," ").concat(n)):a?H("".concat(a)):H("No information currently available."),setTimeout(function(){H("")},3e3)},Q=function(){P(-1),t=setTimeout(function(){P(0),clearTimeout(t)},950),(0,es.T)()?(X("none"),$<=1&&setTimeout(function(){w(W)},300)):(X("all 750ms ease-in-out"),$<=1&&setTimeout(function(){X("none"),w(W)},750));var e=$<=1?W-1:$-2;w($-1),!1===C&&G(l[e])},J=function(){P(1),t=setTimeout(function(){P(0),clearTimeout(t)},950),(0,es.T)()?(X("none"),$>=W&&setTimeout(function(){w(1)},300)):(X("all 750ms ease-in-out"),$>=W&&setTimeout(function(){X("none"),w(1)},750));var e=$>=W?0:$;w($+1),!1===C&&G(l[e])},K=(0,el.uh)({onSwipedRight:Q,onSwipedLeft:J});(0,r.useEffect)(function(){if(C){var e=setInterval(J,d<5e3?5e3:d);return function(){return clearInterval(e)}}},[J,C]),(0,r.useEffect)(function(){E||I||R||W<=1||U?N(!1):N(!0)},[R,I,E]);var Z=function(e,t){var n=(0,s.jsxs)("div",{className:"c-new_carousel_text",children:[e.heading&&(0,s.jsx)("div",{className:"c-heading-bravo","data-testid":"slide-heading","data-font-id":"heading",children:e.heading}),e.subheading&&(0,s.jsx)("div",{className:"c-text-lead","data-testid":"slide-subheading",children:e.subheading})]});return e.url?(0,s.jsx)("a",{"data-testid":"slide-url",href:e.url,target:e.open_url_in_new_tab?"_blank":"_self",tabIndex:t+1===$?0:-1,rel:"noreferrer",className:"c-underline",children:n}):n},ee=function(e){var t=e.logo,n=e.logo_alt_text,a=e.content_label;return(0,s.jsxs)("div",{className:"c-new-carousel__channel-logo",children:[(0,s.jsx)("div",{className:"c-new-carousel__logo-container",children:(0,s.jsx)("img",{alt:n,className:"c-new-carousel__logo",src:t.url,"data-testid":"slide-logo"})}),(0,s.jsx)("p",{className:"c-new-carousel__caption u-margin-none","data-testid":"slide-caption",children:a})]})},et=function(e){var t,n,a,i,r=l[e];return(0,s.jsx)("div",{className:"c-new-carousel__image-list-item","aria-hidden":"true","data-testid":"transitional-slide",children:(0,s.jsxs)("div",{className:"c-new-carousel__container_default c-new-carousel__container_".concat(h," c-new-carousel__container_vertical_").concat(r.vertical_text_alignment||"center"," c-new-carousel__container_horizontal_").concat(r.horizontal_text_alignment||"center"),role:"group",children:[null!==(t=r.video)&&void 0!==t&&t.source?(0,s.jsx)(ex,{slide:r,videoStartTime:0,height:h,mobileView:x}):(0,s.jsx)(eh,{slide:r,height:h,mobileView:x}),(0,s.jsx)("div",{"data-testid":"slide-text-container-transitional",className:"\n ".concat("center"===r.horizontal_text_alignment?"c-new-carousel__text-container-60-width":"c-new-carousel__text-container"," ").concat(ef($,e,k,W),"\n "),children:(0,s.jsxs)("div",{children:[Z(l[e],W),null!==(n=r.cta_button)&&void 0!==n&&n.button_text&&null!==(a=r.cta_button)&&void 0!==a&&a.button_url?(0,s.jsx)(m.$,{button_type:r.cta_button.button_colour,"data-appearance":r.cta_button.button_colour,url:r.cta_button.button_url,new_tab:r.cta_button.new_tab,button_text:r.cta_button.button_text,component:"carousel",button_alignment:"center"===r.horizontal_text_alignment?"center":"left"}):null]})},"text-container-".concat(e)),(null===(i=r.channel_logo)||void 0===i?void 0:i.logo)&&ee(r.channel_logo)]})})};return 0===W?null:(0,s.jsxs)("section",{"data-testid":"carousel",onMouseEnter:function(){return L(!0)},onMouseLeave:function(){return L(!1)},onFocus:function(){return A(!0)},onBlur:function(){return A(!1)},id:"carousel_".concat(q),className:"c-new-carousel__container u-margin-bottom c-new-carousel--".concat(c?"dark":"light","-text"),"aria-label":i.carousel["carousel-title"].replace("{{totalNumberOfSlides}}",W),"aria-roledescription":i.carousel.carousel,ref:v,children:[(0,s.jsx)(a.n,{"aria-live":"polite","aria-atomic":"true",id:"carousel-live-region-".concat(q),"data-testid":"slideUpdatedText",children:M}),(0,s.jsxs)("div",ev(ev({},K),{},{children:[W>1?(0,s.jsx)(eg,{previousSlide:Q,nextSlide:J,onPlayClick:function(){D(!E)},playPauseButtonPressed:E,videoSlidePresent:U,uid:q,"data-testid":"control-buttons",translations:i}):null,(0,s.jsxs)("div",{id:"carouselContent_".concat(q),className:"c-new-carousel__inner",style:{transform:"translateX(-".concat(100*$,"%)"),transition:"".concat(B)},children:[et(W-1),l.map(function(e,t){var n,a,r,o;return(0,s.jsx)("div",{className:"c-new-carousel__image-list-item","aria-hidden":t+1!==$,"data-testid":"visible-slide",children:(0,s.jsxs)("div",{className:"c-new-carousel__container_default c-new-carousel__container_".concat(h," c-new-carousel__container_vertical_").concat(e.vertical_text_alignment||"center"," c-new-carousel__container_horizontal_").concat(e.horizontal_text_alignment||"center"),"data-testid":"container","data-test-id":t===$-1?"test-id-slide-active":"test-id-slide-inactive",role:"group","aria-roledescription":"slide","aria-label":i.carousel["slide-number"].replace("{{slideNo}}",t+1).replace("{{totalNumberOfSlides}}",W),children:[null!==(n=e.video)&&void 0!==n&&n.source?(0,s.jsx)(ex,{slide:e,videoStartTime:.3,height:h,mobileView:x}):(0,s.jsx)(eh,{slide:e,height:h,mobileView:x}),(0,s.jsx)("div",{"data-testid":"slide-text-container",className:"".concat("center"===e.horizontal_text_alignment?"c-new-carousel__text-container-60-width":"c-new-carousel__text-container"," ").concat(ef($,t,k,W),"\n "),children:(0,s.jsxs)("div",{className:"fx-duration-750ms ".concat(_?"fx-fadein":"opacity-0"),children:[Z(e,t),null!==(a=e.cta_button)&&void 0!==a&&a.button_text&&null!==(r=e.cta_button)&&void 0!==r&&r.button_url?(0,s.jsx)(m.$,{tabIndex:t+1===$?0:-1,button_type:e.cta_button.button_colour,"data-appearance":e.cta_button.button_colour,url:e.cta_button.button_url,new_tab:e.cta_button.new_tab,button_text:e.cta_button.button_text,component:"carousel",button_alignment:"center"===e.horizontal_text_alignment?"center":"left"}):null]})},"text-container-".concat(t)),(null===(o=e.channel_logo)||void 0===o?void 0:o.logo)&&ee(e.channel_logo)]})},t)}),et(0)]})]})),W>1?(0,s.jsx)(ep,{slides:l,current:$,navigateSlides:w,uid:q,"data-testid":"control-dots",translations:i}):null]})},partner:eP,spacer:function(e){var t=e.space_size,n=void 0===t?0:t,a=e.mobileView;return(0,s.jsx)("div",{"aria-hidden":"true","data-testid":"spacer",style:{height:"".concat(a?.5*n:n,"vh")}})},accordion:function(e){var t=e.tabs,n=void 0===t?[]:t,a=e.border,i=void 0===a||a,r=e.width;return n.length<1?(0,s.jsx)(S.F,{text:"The accordion component must contain at least one tab"}):(0,s.jsx)(v.s,{$justifyContent:"center",children:(0,s.jsx)(o.a,{"data-testid":"accordion","data-themes-id":"accordion",$marginY:3,$marginX:{lg:"7",xs:"5"},$width:{xs:"100%",lg:void 0===r?"100%":r},style:{overflow:"hidden"},children:n.map(function(e,t){return e.title&&e.content?(0,s.jsx)(eN,{tab:e,index:t,border:i},"item-".concat(e.title,"-").concat(t)):null})})})},anchor_links:function(e){var t=e.label,n=(void 0===t?"":t).toLowerCase().replace(/ /g,"-");return(0,s.jsx)("div",{tabIndex:"-1","data-testid":"anchor-links",className:"margin-offset",id:"".concat(n)})},tabs:function(e){var t=e._metadata.uid,n=void 0===t?"":t,a=e.tabs_container,i=void 0===a?[]:a,l=e.mobileView,c=e.cmpData,d=e.translations,u=(0,r.useState)(0),m=u[0],g=u[1],p=(0,r.useState)(!1),h=p[0],x=p[1],f=function(e){x(!0),g(e)};return(0,s.jsxs)(o.a,{$marginY:4,children:[(0,s.jsx)(ez.t,{$marginX:{lg:"7",xs:"5"},as:"div",role:"tablist","data-themes-id":"tabs","data-testid":"tabs-container",$fill:!0,children:i.map(function(e,t){var a=e.tabs_content.tab_heading;return(0,s.jsx)(ez.t.Tab,{"aria-controls":"panel".concat(t,"-").concat(n),"aria-selected":m===t,as:"button",$active:m===t,"data-testid":"tab-heading","data-font-id":"menu",href:"#panel".concat(t,"-").concat(n),id:"tab".concat(t,"-").concat(n),role:"tab",type:"button",onClick:function(){return f(t)},className:"tabs fx ".concat(h&&"fx-grow-component-before"," ").concat(l?"mobile":"desktop"),children:a},t)})}),i.map(function(e,t){var a=e.tabs_content.tab_components;return(0,s.jsx)(o.a,{role:"tabpanel",id:"panel".concat(t,"-").concat(n),$display:m===t?"display":"none","data-testid":"tab-content",$marginX:0,className:"fx ".concat(m===t&&h?"fx-fadein":""," fx-duration-1s"),children:(0,s.jsx)(eX,{components:a,mobileView:l,cmpData:c,translations:d},t)},t)})]})},splitter:function(e){var t=e._metadata.uid,n=void 0===t?"":t,a=e.gap,i=e.marginx,r=e.columns,o=e.mobileView,l=e.consentCookie,c=e.locale,d=e.reverse_splitter,u=e.cmpData,m=e.translations;return(0,s.jsx)(v.s,{className:"splitter","data-testid":"splitter-grid",$flexDirection:{xs:void 0!==d&&d?"column-reverse":"column",xl:"row"},$gap:void 0===a?0:a,$width:"auto",$marginX:void 0===i?0:i,children:(void 0===r?[]:r).map(function(e,t){var a,i,r,d=e.column.components,g=e.column.vertical_alignment||"flex-start",p=e.column.background_colour||null,h=e.column.text_colour||null,x=(null===(a=e.column.background_image)||void 0===a||null===(a=a.background_image)||void 0===a?void 0:a.url)||null,b=(null===(i=e.column.background_image)||void 0===i?void 0:i.image_alt_text)||"",_=(null===(r=e.column.background_image)||void 0===r||null===(r=r.mobile_image)||void 0===r?void 0:r.url)||null,j=0!==d.length;return(0,s.jsxs)(v.s,{"data-testid":"splitter-container",id:"column".concat(t,"-").concat(n),$flexDirection:"column",$justifyContent:"".concat(g),style:{backgroundColor:"".concat(p),color:"".concat(h)},className:"splitter-column",$minHeight:x&&!j?{xs:"auto",xl:"360px"}:x&&j?"360px":"auto",children:[(x||_)&&(0,s.jsx)(f._,{"data-testid":"background-image",$objectPosition:"center",src:k({url:o?_||x:x||_}),alt:"".concat(b),$width:"100%",$height:j?"100%":{xs:"auto",xl:"100%"},$objectFit:"cover",className:j?"background-image-absolute":"background-image-no-components"}),(0,s.jsx)(eX,{locale:c,components:d,mobileView:o,consentCookie:l,cmpData:u,translations:m},t)]},t)})})},cards:eA},eB=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eY;if(!e)return{component:S.F,props:{text:"Component data either does not exist or is corrupted."}};var n=Object.keys(e)[0],a=e[n],i=t[n];return i?{name:"".concat(n),component:i,props:a}:{component:S.F,props:{text:'An unknown component called "'.concat(n,'" has been added. Please check the page configuration or contact support.')}}},eX=function(e){var t=e.components,n=e.consentCookie,a=e.locale,i=void 0===a?"en-gb":a,o=e.translations,l=e.cmpData,c=(0,eF.A)().mobileView,d=(void 0===t?[]:t).map(function(e){return eB(e,eY)});return(0,s.jsx)(s.Fragment,{children:d.map(function(e,t){var a=e.component,s=e.props,d=e.defaults;return(0,r.createElement)(a,eL(eL(eL({},s),d),{},{key:t,consentCookie:n,locale:i,translations:o,cmpData:l,mobileView:c}))})})},eV=function(e){var t=e.components,n=e.translations,o=e.consentCookie,l=e.cmpData,d=e.locale,u=e.pageTitle,m=e.breadcrumbs;return(0,s.jsxs)(r.Fragment,{children:[(0,s.jsx)(a.n,{children:(0,s.jsx)(i.E,{as:"h1",children:u},"page-title")}),m&&(0,s.jsx)(c,{breadcrumbs:m,pageTitle:u,translations:n}),(0,s.jsx)(eX,{components:t,locale:d,translations:n,consentCookie:o,cmpData:l})]})}},59875:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var a=n(12115),i=n(57678),r=n(46187),o=n(33684),l=n(95155);function s(e){var t,n=e.text;if("production"!==(null===(t=(0,a.useContext)(o.o))||void 0===t?void 0:t.env))return(0,l.jsxs)("div",{"data-testid":"alert",style:{color:"red",margin:"16px 48px"},children:[(0,l.jsx)(i.I,{src:r.zg,$size:"large",$marginBottom:"2",$color:"negative"}),(0,l.jsx)("p",{children:n})]});console.log("ERROR: ".concat(n))}s.defaultProps={text:""}},43029:(e,t,n)=>{"use strict";n.d(t,{T:()=>a});var a=function(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}}}]);