1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7682],{37682:function(e,a,l){"use strict";l.r(a);var t=l(85893),i=l(51259),n=l.n(i),o=l(67294),d=l(25675),c=l.n(d),s=l(3843),r=l.n(s);a.default=e=>{var a,l,i,d;let s=e.items,[u,v]=(0,o.useState)(""),[m,h]=(0,o.useState)(0),[x,p]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let handleResize=()=>{h(window.innerWidth)};return window.addEventListener("resize",handleResize),handleResize(),()=>{window.removeEventListener("resize",handleResize)}});let f=(0,o.useRef)(null);(0,o.useEffect)(()=>(setTimeout(()=>{window.addEventListener("scroll",handleScroll)},500),()=>{window.removeEventListener("scroll",handleScroll)}),[]);let handleStickyClick=(e,a,l)=>{e.preventDefault();let t=document.querySelector("header > div"),i=t?t.offsetHeight:0,n=f.current?parseInt(window.getComputedStyle(f.current).top,10):NaN,o=isNaN(n)||(null==s?void 0:s.typeOfLayout)!=="v2"?i:n,d=(null==s?void 0:s.typeOfLayout)==="v2"&&f.current?f.current.offsetHeight:0,c=document.getElementById(a);if(!c)return;let r=c.getBoundingClientRect(),u=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,v=u+r.top-o-d;v=Math.max(v,0),window.scrollTo({top:v,behavior:"smooth"})},handleScroll=()=>{var e,a,l,t;let i=document.querySelectorAll("section");document.querySelectorAll(".sticky-nav .navItem");let n=(null===(e=document.querySelector("header .mainHeader"))||void 0===e?void 0:e.offsetHeight)||0,o=f.current?parseInt(window.getComputedStyle(f.current).top,10):NaN,d=isNaN(o)||(null==s?void 0:s.typeOfLayout)!=="v2"?n:o,c=(null==s?void 0:s.typeOfLayout)==="v2"&&f.current?f.current.offsetHeight:0,u=window.scrollY+d+c+1,m="",h=[];i.forEach(e=>{let a=e.offsetTop,l=a+e.offsetHeight;u>=a&&u<l&&(m=e.id,i.forEach(e=>{e.classList.remove("active-nav")}),e.classList.add("active-nav")),u>=l&&h.push(e.id)});let x=window.innerHeight,p=document.querySelectorAll(".intro-with-accordion"),w=document.querySelector(".".concat(r().fixedList));if(p.length>0&&w){let e=p[0].getBoundingClientRect(),a=p[p.length-1].getBoundingClientRect();e.top>n+1||a.bottom<x/2?w.classList.remove(r().show):w.classList.add(r().show)}let g=null==s?void 0:null===(a=s.columns)||void 0===a?void 0:a.some(e=>e.link===m);g?v(m):window.scrollY<50&&v((null==s?void 0:null===(t=s.columns)||void 0===t?void 0:null===(l=t[0])||void 0===l?void 0:l.link)||"")},[w,g]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=f.current;if(!e)return;let a=["bg-black","bg-cosmos","bg-ember","bg-emberDark","bg-lightblack","bg-riptideWeb","bg-ultraviolet","riptideWeb","bg-ultravioletDark","bg-purple","bg-millionGrey","bg-cornflowerBlue"].some(a=>e.classList.contains(a));a&&(e.classList.add("darkTheme"),g(!0))},[]);let[k,b]=(0,o.useState)(85);(0,o.useEffect)(()=>{let updateHeaderHeight=()=>{let e=document.querySelector("header .mainHeader"),a=null==e?void 0:e.offsetHeight;e&&b(a-2)};return updateHeaderHeight(),window.addEventListener("resize",updateHeaderHeight),()=>window.removeEventListener("resize",updateHeaderHeight)},[]);let _=(null==s?void 0:s.typeOfLayout)||"cards";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{ref:f,id:(null==s?void 0:s.id)?null==s?void 0:s.id:"",style:{"--header-height":"".concat(k,"px")},className:"jsx-867af7c9aa2a2108 "+"InternalScrollNavigation sticky-nav ".concat(r().stickyNav," ").concat("v2"===_?"".concat(r().subnavLayout," no-padding"):"padding-medium-top padding-medium-bottom"," ").concat((null==s?void 0:s.background)||""," ").concat((null==s?void 0:s.classes)||""," ").concat((null==s?void 0:s.padding)||""),children:[(0,t.jsx)("div",{className:"jsx-867af7c9aa2a2108 container",children:"v2"===_?(0,t.jsxs)("div",{className:"jsx-867af7c9aa2a2108 "+(r().navContainer||""),children:[m<991&&(0,t.jsxs)("div",{onClick:()=>p(!x),className:"jsx-867af7c9aa2a2108 "+(r().dropdownToggle||""),children:[(0,t.jsx)("h4",{className:"jsx-867af7c9aa2a2108 "+((w?"text-white":"text-cosmos")||""),children:(()=>{var e,a;let l=(null==s?void 0:null===(e=s.columns)||void 0===e?void 0:e.find(e=>e.link===u))||(null==s?void 0:null===(a=s.columns)||void 0===a?void 0:a[0]);return m>767?null==l?void 0:l.heading:(null==l?void 0:l.headingMobile)||(null==l?void 0:l.heading)})()}),(0,t.jsx)("svg",{width:"22",height:"12",viewBox:"0 0 22 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"jsx-867af7c9aa2a2108 "+"".concat(r().dropdownArrow," ").concat(x?r().open:""," pointer-events-none"),children:(0,t.jsx)("path",{d:"M21 1L11 11L1 0.999999",stroke:w?"#FFFFFF":"#212121",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-867af7c9aa2a2108"})})]}),(0,t.jsx)("div",{className:"jsx-867af7c9aa2a2108 "+"".concat(r().dropdownList," ").concat(m<991&&!x?r().hidden:""," ").concat(w&&m<991?"bg-cosmos":m<991?"bg-white":""),children:(null==s?void 0:s.columns)&&(null==s?void 0:s.columns.map((e,a)=>{let l=u===(null==e?void 0:e.link)||!u&&0===a;return m<991&&l?null:(0,t.jsx)("div",{onClick:l=>{p(!1),handleStickyClick(l,null==e?void 0:e.link,a)},className:"jsx-867af7c9aa2a2108 "+"".concat(r().subnavItem," ").concat(u===(null==e?void 0:e.link)?r().active:""),children:(0,t.jsx)("h4",{className:"jsx-867af7c9aa2a2108 "+((w?"text-white":"text-cosmos")||""),children:m>767?null==e?void 0:e.heading:(null==e?void 0:e.headingMobile)||(null==e?void 0:e.heading)})},a)}))})]}):(0,t.jsx)("div",{className:"jsx-867af7c9aa2a2108 flex justify-between w-[calc(100%+10px)] -ml-[5px] md:flex-wrap",children:(null==s?void 0:s.columns)&&(null==s?void 0:s.columns.map((e,a)=>(0,t.jsx)("div",{className:"jsx-867af7c9aa2a2108 "+"".concat(r().navItem," ").concat((null==e?void 0:e.themeColor)==="ember"?r().navItemEmber:(null==e?void 0:e.themeColor)==="riptideWeb"?r().navItemRiptideWeb:(null==e?void 0:e.themeColor)==="ultraviolet"?r().navItemUltraviolet:""," navItem cursor-pointer md:border-[2px] md:border-cosmos w-[calc(25%-20px)] mx-[5px] max-w-[233px] lg:pr-0 md:w-[calc(50%-10px)] md:p-0 md:mb-[10px] md:flex md:items-center md:justify-center md:max-w-full md:text-center rounded-lg"),children:(null==e?void 0:e.link)&&(0,t.jsxs)("a",{href:"#".concat(null==e?void 0:e.link),onClick:l=>handleStickyClick(l,null==e?void 0:e.link,a),className:"jsx-867af7c9aa2a2108 md:p-[26px]",children:[(0,t.jsx)("h4",{className:"jsx-867af7c9aa2a2108 "+" ".concat(w?"text-white":"text-cosmos"," relative inline-block md:text-[18px]"),children:m>767?null==e?void 0:e.heading:null==e?void 0:e.headingMobile}),m>767?(0,t.jsxs)("div",{className:"jsx-867af7c9aa2a2108",children:[(0,t.jsx)("p",{className:"jsx-867af7c9aa2a2108 "+"".concat(w?"text-white":"text-cosmos"," xl-up:text-[24px] pt-[5px] leading-[1.11] h-[100px] laptopsmall:h-[60px] tabletlarge:h-[85px] tablet:h-[80px]"),children:null==e?void 0:e.subHeading}),(0,t.jsxs)("div",{className:"jsx-867af7c9aa2a2108 "+"".concat(r().arrow),children:[(null==e?void 0:e.themeColor)==="ember"&&(0,t.jsx)(c(),{className:"w-full h-full max-h-[33px] max-w-[25px]",src:"/images/icons/arrow.svg",width:100,qual
1ity:100,height:100,alt:"Arrow"}),(null==e?void 0:e.themeColor)==="riptideWeb"&&(0,t.jsx)(c(),{className:"w-full h-full max-h-[33px] max-w-[25px]",src:"/images/icons/arrow-riptideWeb.svg",width:100,quality:100,height:100,alt:"Arrow"}),(null==e?void 0:e.themeColor)==="ultraviolet"&&(0,t.jsx)(c(),{className:"w-full h-full max-h-[33px] max-w-[25px]",src:"/images/public-sector/arrow-down.svg",width:100,quality:100,height:100,alt:"Arrow"})]})]}):null]})},a)))})}),"v2"!==_&&(0,t.jsx)("ul",{className:"jsx-867af7c9aa2a2108 "+"".concat(r().fixedList," fixedList ipad:hidden ").concat((null==s?void 0:null===(l=s.columns)||void 0===l?void 0:null===(a=l[0])||void 0===a?void 0:a.themeColor)==="riptideWeb"?"themeRiptideWeb":""," ").concat((null==s?void 0:null===(d=s.columns)||void 0===d?void 0:null===(i=d[0])||void 0===i?void 0:i.themeColor)==="ultraviolet"?"themeUltraviolet":""),children:(null==s?void 0:s.columns)&&(null==s?void 0:s.columns.map((e,a)=>(0,t.jsx)("li",{className:"jsx-867af7c9aa2a2108 "+"".concat(u===(null==e?void 0:e.link)?"activatedTab":""," ").concat(r().navItem," transition-all duration-300 w-[8px] h-[60px] mb-[20px] rounded-[5px]"),children:(null==e?void 0:e.link)&&(0,t.jsx)("a",{href:"#".concat(null==e?void 0:e.link),onClick:l=>handleStickyClick(l,null==e?void 0:e.link,a),className:"jsx-867af7c9aa2a2108 h-full w-full inline-block",children:(0,t.jsx)("div",{className:"jsx-867af7c9aa2a2108 "+"".concat(r().navLink," h-full"),children:(0,t.jsx)("span",{className:"jsx-867af7c9aa2a2108 inline-flex h-full items-center bg-cosmos text-white text-center py-[15px] px-[30px] overflow-hidden rounded-[5px]",children:null==e?void 0:e.heading})})})},a)))})]}),(0,t.jsx)(n(),{id:"867af7c9aa2a2108",children:".activated.jsx-867af7c9aa2a2108{background-color:#fa524d}"})]})}},3843:function(e){e.exports={navItem:"StickyNav_navItem__rEQWM",navItemUltraviolet:"StickyNav_navItemUltraviolet__MxRSA",navItemRiptideWeb:"StickyNav_navItemRiptideWeb__qrmlx",navItemEmber:"StickyNav_navItemEmber__ID_5l",arrow:"StickyNav_arrow__qYvWg",navLink:"StickyNav_navLink__3DNc3",stickyNav:"StickyNav_stickyNav__es5f_",fixedList:"StickyNav_fixedList__1uJpF",show:"StickyNav_show__0EbY3",subnavLayout:"StickyNav_subnavLayout__j0j_N",navContainer:"StickyNav_navContainer__IBkOZ",subnavItem:"StickyNav_subnavItem__Ck4um",active:"StickyNav_active__duT50",dropdownToggle:"StickyNav_dropdownToggle__Pm37h",dropdownArrow:"StickyNav_dropdownArrow__gG2oF",open:"StickyNav_open__VIJVj",dropdownList:"StickyNav_dropdownList__fqFRL",hidden:"StickyNav_hidden__QetxA"}}}]);
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.