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