1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6114],{86114:function(t,n,e){e.r(n),e.d(n,{SimpleBannerSection:function(){return j}});var i=e(40872),a=e(828),d=e(35944),o=e(61730),r=e(86886),l=e(25675),c=e.n(l),m=e(67294),u=e(11441),s=e(7403),h=e(26042),f=e(69396),p=e(99534),g=e(7297),b=e(16829),x=e(5616);function Z(){var t=(0,g.Z)(["\n position: relative;\n max-width: 100%;\n\n .watermark {\n object-fit: cover;\n z-index: 1;\n opacity: ",";\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n }\n"]);return Z=function(){return t},t}var y=(0,b.default)(x.Z)(Z(),function(t){return t.opacity}),k=function(t){var n=t.url,e=t.mime,i=t.alt,a=t.opacity,o=t.children,r=(0,p.Z)(t,["url","mime","alt","opacity","children"]);return(0,d.BX)(y,(0,f.Z)((0,h.Z)({opacity:void 0===a?.72:a},r),{children:[o,e.includes("video")?(0,d.tZ)("video",{"data-testid":"background-video",className:"watermark",preload:"none",title:i,autoPlay:!0,muted:!0,loop:!0,children:(0,d.tZ)("source",{src:n,type:e})}):(0,d.tZ)("picture",{"data-testid":"background-image",children:(0,d.tZ)(c(),{src:n,alt:i,fill:!0,loading:"lazy",className:"watermark",unoptimized:!0})})]}))};function v(){var t=(0,g.Z)(["\n background-color: ",";\n color: ",";\n font-family: ",";\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-style: normal;\n font-size: 2rem;\n line-height: 115%;\n font-weight: 500;\n position: relative;\n text-align: center;\n font-family: ",";\n\n @media (min-width: ",") {\n font-size: 3rem;\n text-align: left;\n }\n }\n\n .button {\n display: flex;\n align-self: center;\n width: 100%;\n\n @media (min-width: ",") {\n width: fit-content;\n }\n\n @media (min-width: ",") {\n align-self: flex-start;\n }\n }\n\n .description {\n font-size: 1rem;\n font-weight: 400;\n line-height: 150%;\n text-align: center;\n font-family: ",";\n\n @media (min-width: ",") {\n text-align: left;\n font-size: 1.5rem;\n font-weight: 500;\n line-height: 133%;\n }\n }\n"]);return v=function(){return t},t}function w(){var t=(0,g.Z)(["\n display: flex;\n position: relative;\n z-index: 2;\n max-width: 320px;\n\n @media (min-width: ",") {\n max-width: 553px;\n }\n"]);return w=function(){return t},t}function z(){var t=(0,g.Z)(["\n width: 370px;\n height: 100%;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 2;\n"]);return z=function(){return t},t}var q=b.default.section(v(),function(t){return t.theme.primaryActionColorPure},function(t){return t.theme.neutralColorLightPure},function(t){return t.theme.fontFamily},function(t){return t.theme.fontFamily},u.eq.desktop,u.eq.tablet,u.eq.desktop,function(t){return t.theme.fontFamilyBase},u.eq.desktop),P=(0,b.default)(r.ZP)(w(),u.eq.tablet),M=(0,b.default)(x.Z)(z()),j=function(t){var n,e,l,h,f,p=(0,i.Z)({},t),g=(0,a.Z)((0,m.useState)(p.data.backgroundMedia.mediaDesktop),2),b=g[0],x=g[1],Z=(0,o.Z)("(min-width: ".concat(u.eq.mobile,") and (max-width: ").concat(u.dj.mobile,")")),y=(0,o.Z)("(min-width: ".concat(u.eq.tablet,") and (max-width: ").concat(u.dj.tablet,")")),v=(0,o.Z)("(min-width: ".concat(u.eq.extraLarge,")")),w=(0,o.Z)("(min-width: ".concat(u.eq.desktop,") and (max-width: ").concat(u.dj.desktop,")")),z=(null===(l=p.data)||void 0===l?void 0:null===(h=l.button)||void 0===h?void 0:null===(f=h.link)||void 0===f?void 0:f.indexOf("#"))>=0,j=function(){var t=p.data.button.link.split("#")[1],n=document.getElementById(t);n&&n.scrollIntoView({behavior:"smooth"})};return(0,m.useEffect)(function(){Z?x(p.data.backgroundMedia.mediaMobile):w?x(p.data.backgroundMedia.mediaDesktop):v?x(p.data.backgroundMedia.mediaDesktopLarge):x(p.data.backgroundMedia.mediaTablet)},[Z,w,v,y]),(0,d.tZ)(q,{id:"simple-banner-section","data-testid":"simple-banner-section","data-section":p.data.dataSectionAnalytics,children:b&&(0,d.tZ)(k,{url:b.url,alt:b.alt,mime:b.mime,opacity:p.data.backgroundMedia.overlayOpacity,maxWidth:"xl",sx:{px:{xs:"1.5rem",md:"2rem",lg:"5.5rem"},py:{xs:"2.5rem",md:"4.5rem",lg:"5rem"}},children:(0,d.BX)(r.ZP,{container:!0,sx:{maxWidth:u.eq.desktop,margin:"0 auto"},children:[(0,d.tZ)(r.ZP,{item:!0,xs:12,lg:6,sx:{display:"flex",justifyContent:"center"},children:(0,d.BX)(P,{container:!0,item:!0,direction:"column",id:"grid-label",md:6,lg:12,children:[(0,d.tZ)(r.ZP,{item:!0,"data-testid":"title",children:(n=p.data.title.type,e=p.data.title.text,m.createElement(n,null,e))}),(0,d.tZ)(r.ZP,{item:!0,sx:{paddingTop:"1rem"},children:(0,d.tZ)("div",{className:"description","data-testid":"description",children:p.data.description})}),p.data.button.link&&(0,d.tZ)(r.ZP,{item:!0,className:"button",sx:{paddingTop:"2rem"},children:(0,d.tZ)(s.r,{"data-element":p.data.dataElementAnalytics,link:z?null:p.data.button.link,styleMode:p.data.button.type,"data-testid":"banner-button",onClick:function(){return z&&j()},children:p.data.button.label})})]})}),p.data.image.url&&(0,d.tZ)(r.ZP,{item:!0,xs:6,sx:{display:{xs:"none",lg:"block"}},children:(0,d.tZ)(M,{children:(0,d.tZ)(c(),{"data-testid":"banner-featured-image",src:p.data.image.url,alt:p.data.image.alt,fill:!0,style:{objectFit:"cover"},loading:"lazy",unoptimized:!0})})})]})})})}}}]);
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.