"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2416],{62416:function(e,o,t){t.r(o),t.d(o,{default:function(){return m}}),t(67294);var n=t(45197),r=t(74999),i=t(19521),a=i.ZP.div.withConfig({displayName:"PillContainerWrapper",componentId:"sc-hawa8q-0"})(["position:relative;text-align:center;display:flex;flex-direction:column;align-items:center;background-color:",";@media only screen and (max-width:","){max-width:100%;width:100%;margin-top:",";}@media only screen and (max-width:","){margin-top:",";}@media only screen and (max-width:","){margin-top:",";}"],function(e){var o;return null!==(o=e.backgroundColor)&&void 0!==o?o:e.theme.colors.white},function(e){return e.theme.breakpoints.tablet},function(e){return e.ignoreMobileMargin?0:"20%"},function(e){return e.theme.breakpoints.smphone},function(e){return e.ignoreMobileMargin?0:"25%"},function(e){return e.theme.breakpoints.xsphone},function(e){return e.ignoreMobileMargin?0:"40%"}),d=i.ZP.div.withConfig({displayName:"HeaderContainer",componentId:"sc-hawa8q-1"})(["height:6rem;overflow:hidden;margin-top:",";@media only screen and (max-width:","){height:3rem;}"],function(e){return e.offsetButtons?"-8.5rem":"0"},function(e){return e.theme.breakpoints.phone}),l=i.ZP.h2.withConfig({displayName:"PillContainerHeading",componentId:"sc-hawa8q-2"})(["line-height:3.3rem;margin:0px;"]),u=i.ZP.p.withConfig({displayName:"PillContainerMessage",componentId:"sc-hawa8q-3"})(["margin:0;"]),c=i.ZP.ul.withConfig({displayName:"PillList",componentId:"sc-hawa8q-4"})(["margin:0 auto;width:fit-content;max-width:110rem;background-color:",";border-radius:3.2rem;border:1.6rem solid ",";box-sizing:border-box;display:flex;-webkit-box-pack:center;justify-content:center;list-style:none;padding:0px;li{position:relative;a,button{border-width:1px;border-color:",";border-radius:0;font-weight:400;text-decoration:none;}:first-of-type{a,button{border-bottom-left-radius:3.2rem;border-right:0;border-top-left-radius:3.2rem;}}:last-of-type{a,button{border-bottom-right-radius:3.2rem;border-left:0;border-top-right-radius:3.2rem;}}a:hover,a:active{background:",";text-decoration:none;}&.active{a{background:",";font-weight:600;text-decoration:underline;}}}@media only screen and (max-width:","){flex-direction:column;width:100%;border-radius:0;li{flex:1;a,button{border-width:1px;border-color:",";border-radius:0;width:80%;font-size:",";padding-top:1.2rem;padding-bottom:1.2rem;border:1px solid ",";}:last-of-type,:first-of-type{a,button{border-radius:0;border:1px solid ",";}}}}"],function(e){var o;return null!==(o=e.backgroundColor)&&void 0!==o?o:e.theme.colors.white},function(e){var o;return null!==(o=e.backgroundColor)&&void 0!==o?o:e.theme.colors.white},function(e){return e.theme.colors.primary},function(e){return null!=e&&e.backgroundColorActiveState?"".concat(e.backgroundColorActiveState,"40"):e.theme.colors.greyLight},function(e){var o;return null!==(o=e.backgroundColorActiveState)&&void 0!==o?o:e.theme.colors.greyBorder},function(e){return e.theme.breakpoints.phone},function(e){return e.theme.colors.primary},function(e){return e.theme.fonts.textLarge},function(e){return e.theme.colors.staticGrey},function(e){return e.theme.colors.staticGrey}),s=t(11163),h=t(85893),m=function(e){var o=e.entry.fields,t=o.buttonContainer,i=o.heading,m=o.message,f=o.offsetButtons,b=o.ignoreMobileMargin,p=o.backgroundColor,g=o.backgroundColorHex,v=o.backgroundColorActiveState,x=(0,s.useRouter)().asPath,w="other"===p?g:(0,r.PP)(p,!1),k=(void 0===t?[]:t).map(function(e,o){var t,n,r,i,a,d=null!==(t=null==e?void 0:e.fields)&&void 0!==t?t:{},l=d.buttonFunction,u=d.buttonLink,c=d.buttonText,s="link"===l&&(null===(n=x.split("?"))||void 0===n||null===(n=n[0])||void 0===n?void 0:n.includes(null===(r=u.split("?"))||void 0===r?void 0:r[0]))&&(null===(i=x.split("?"))||void 0===i||null===(i=i[0])||void 0===i||null===(i=i.split("/"))||void 0===i?void 0:i.pop())===(null===(a=u.split("?"))||void 0===a||null===(a=a[0])||void 0===a||null===(a=a.split("/"))||void 0===a?void 0:a.pop());return{buttonKey:c||"pill-button-".concat(o),className:s?"active":"",fields:e.fields}});return(0,h.jsxs)(a,{offsetButtons:f,backgroundColor:w,ignoreMobileMargin:void 0!==b&&b,children:[(0,h.jsxs)(d,{offsetButtons:f,children:[i&&(0,h.jsx)(l,{children:i}),m&&(0,h.jsx)(u,{children:m})]}),(0,h.jsx)(c,{backgroundColor:w,backgroundColorActiveState:v,children:k.map(function(e){var o=e.buttonKey,t=e.className,r=e.fields;return(0,h.jsx)("li",{className:t,children:(0,h.jsx)(n.default,{fields:r,contentTypeId:"ctaButton"})},o)})})]})}}}]);