"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2416],{62416:function(o,e,t){t.r(e),t.d(e,{default:function(){return f}}),t(67294);var n=t(45197),r=t(74999),i=t(87379),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(o){var e;return null!==(e=o.backgroundColor)&&void 0!==e?e:o.theme.colors.white},function(o){return o.theme.breakpoints.tablet},function(o){return o.ignoreMobileMargin?0:"20%"},function(o){return o.theme.breakpoints.smphone},function(o){return o.ignoreMobileMargin?0:"25%"},function(o){return o.theme.breakpoints.xsphone},function(o){return o.ignoreMobileMargin?0:"40%"}),l=i.ZP.div.withConfig({displayName:"HeaderContainer",componentId:"sc-hawa8q-1"})(["height:6rem;overflow:hidden;margin-top:",";"],function(o){return o.offsetButtons?"-8.5rem":"0"}),d=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(o){var e;return null!==(e=o.backgroundColor)&&void 0!==e?e:o.theme.colors.white},function(o){var e;return null!==(e=o.backgroundColor)&&void 0!==e?e:o.theme.colors.white},function(o){return o.theme.colors.primary},function(o){return null!=o&&o.backgroundColorActiveState?"".concat(o.backgroundColorActiveState,"40"):o.theme.colors.greyLight},function(o){var e;return null!==(e=o.backgroundColorActiveState)&&void 0!==e?e:o.theme.colors.greyBorder},function(o){return o.theme.breakpoints.phone},function(o){return o.theme.colors.primary},function(o){return o.theme.fonts.textLarge},function(o){return o.theme.colors.staticGrey},function(o){return o.theme.colors.staticGrey}),s=t(11163),m=t(85893),f=function(o){var e=o.entry.fields,t=e.buttonContainer,i=e.heading,f=e.message,h=e.offsetButtons,b=e.ignoreMobileMargin,p=e.backgroundColor,g=e.backgroundColorHex,v=e.backgroundColorActiveState,x=(0,s.useRouter)().asPath,w="other"===p?g:(0,r.PP)(p,!1),k=(void 0===t?[]:t).map(function(o,e){var t,n,r,i,a,l=null!==(t=null==o?void 0:o.fields)&&void 0!==t?t:{},d=l.buttonFunction,u=l.buttonLink,c=l.buttonText,s="link"===d&&(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(e),className:s?"active":"",fields:o.fields}});return(0,m.jsxs)(a,{offsetButtons:h,backgroundColor:w,ignoreMobileMargin:void 0!==b&&b,children:[(0,m.jsxs)(l,{offsetButtons:h,children:[i&&(0,m.jsx)(d,{children:i}),f&&(0,m.jsx)(u,{children:f})]}),(0,m.jsx)(c,{backgroundColor:w,backgroundColorActiveState:v,children:k.map(function(o){var e=o.buttonKey,t=o.className,r=o.fields;return(0,m.jsx)("li",{className:t,children:(0,m.jsx)(n.default,{fields:r,contentTypeId:"ctaButton"})},e)})})]})}}}]);