"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[4636],{99258:(e,t,r)=>{r.d(t,{A:()=>G}),r(63696);var i=r(20641),a=r(35289),n=r(11545),l=r(468),d=r(74437),o=r(61223),c=r(43986),s=r(91785),h=r(83051),u=r(59310),p=r(75729),g=r(32640),b=r(62540);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var A=e=>{var{className:t,type:r}=e;return(0,b.jsx)(c.A,{type:r,props:{className:t,role:"presentation",preserveAspectRatio:"xMinYMid meet",focusable:"false","aria-hidden":"true"}})},j=(0,s.AH)("display:block;padding:calc(",(0,l.A)(12)," - ",d.SPACING_1,") 0;height:",(0,l.A)(26),";fill:currentcolor;max-width:",(0,l.A)(160),";@media (min-width: ",a.jN,"){padding:calc(",(0,l.A)(14)," - ",d.SPACING_1,") 0;height:",(0,l.A)(28),";max-width:",(0,l.A)(248),";}@media (min-width: ",a.cK,"){padding:calc(",(0,l.A)(16)," - ",d.SPACING_1,") 0;max-width:initial;}"),y=(0,h.default)(A,{target:"esbu9dd7",label:"LogoIcon"})(j,";"),x=(0,h.default)("div",{target:"esbu9dd6",label:"LivePulseWrapper"})(n.xW," ",j," user-select:none;height:",(0,l.A)(32),";@media (min-width: ",a.cK,"){height:",(0,l.A)(28),";padding:calc(",(0,l.A)(13)," - ",d.SPACING_1,") 0 calc(",(0,l.A)(19)," - ",d.SPACING_1,") 0;}@media (min-width: ",a.c$,"){height:",(0,l.A)(36),";padding:calc(",d.SPACING_4," - ",d.SPACING_1,") 0;}"),w=(0,h.default)("div",{target:"esbu9dd5",label:"LogoWrapper"})("margin:",d.SPACING_1," 0;"),P=(0,h.default)("a",{target:"esbu9dd4",label:"LogoLink"})({name:"1vc9rpn",styles:"display:flex;align-items:center;width:auto;text-decoration:none;color:inherit;@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){width:100%;}"}),O=e=>{var{type:t}=e;return"component:live-pulse"===t?(0,b.jsx)(x,{children:(0,b.jsx)(g.A,{})}):(0,b.jsx)(y,{type:t})},_=e=>{var{logo:t,children:r}=e;return t?(0,b.jsx)(w,{children:r}):r},N=e=>{var{url:t,children:r}=e;return t?(0,b.jsx)(P,{href:t,children:r}):r},S=(0,h.default)("div",{target:"esbu9dd3",label:"MastheadText"})("padding:",d.SPACING_4," 0;display:inline-block;"),C=e=>{var{logo:t,children:r}=e;return t?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(O,{type:t}),(0,b.jsx)(u.A,{children:r})]}):(0,b.jsx)(S,{children:r})},I=(0,h.default)("div",{target:"esbu9dd2",label:"Masthead"})(n.xW," ",i.NP," background:",(e=>{var{theme:t}=e;return t.colourPalette.productNavigation.masthead}),";color:",(e=>{var{theme:t}=e;return t.colourPalette.productNavigation.onMasthead}),";"),L=(0,h.default)("div",{target:"esbu9dd1",label:"ImageContainer"})("display:none;@media (min-width: ",a.jN,"){display:block;flex:none;margin:",d.SPACING_3," 0px;width:",(e=>{var{width:t,height:r}=e;return(0,l.A)(((e,t)=>e/t*56)(t,r))}),";}"),D=(0,h.default)("div",{target:"esbu9dd0",label:"ContentWrapper"})({name:"bcffy2",styles:"display:flex;align-items:center;justify-content:space-between"});const G=e=>{var{text:t,url:r,logo:i,image:a}=e;return(0,b.jsx)(I,{"data-testid":"masthead",children:(0,b.jsx)(o.A,{children:(0,b.jsxs)(D,{children:[(0,b.jsx)(_,{logo:i,children:(0,b.jsx)(N,{url:r,children:(0,b.jsx)(C,{logo:i,children:t})})}),a&&a.width&&a.height&&(0,b.jsx)(L,{width:a.width,height:a.height,children:(0,b.jsx)(p.A,m(m({},a),{},{placeholder:"transparent"}))})]})})})}}}]);