"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4353],{83008:function(e,t,a){a.d(t,{Z:function(){return o}});var r=a(85893),i=a(36465),s=a.n(i),n=a(45697),c=a.n(n),l=a(48683),d=a(50178);function o(e){let t,{categoryTree:a}=e,i=[{text:"Home",href:"/"},{text:"Articles",href:d.Z6.RESOURCES}],n=(0,d.Ph)("categoryOrArticleSlug");n&&(t=a.find(e=>e.slug===n),i.push(t));let c=(0,d.Ph)("subcategorySlug");if(c){let e=t.items.find(e=>e.slug===c);i.push(e)}return(0,r.jsxs)("div",{className:"jsx-a90fac01f279d24f paddingTopBottom--24",children:[i.map((e,t)=>t<i.length-1?(0,r.jsxs)("span",{className:"jsx-a90fac01f279d24f",children:[(0,r.jsx)(l.Z,{href:e.href,"data-qa":"bc-".concat(e.text),children:e.text}),(0,r.jsx)("i",{className:"jsx-a90fac01f279d24f delimeter fa-chevron-right fa-light icon-12"})]},t):(0,r.jsx)("span",{className:"jsx-a90fac01f279d24f selected",children:e.text},t)),(0,r.jsx)(s(),{id:"a90fac01f279d24f",children:".delimeter.jsx-a90fac01f279d24f{margin:0 8px}.selected.jsx-a90fac01f279d24f{color:var(--color-primary);font-size:16px;line-height:28px}"})]})}o.propTypes={categoryTree:c().array.isRequired}},64353:function(e,t,a){a.r(t),a.d(t,{ArticlePage:function(){return S},__N_SSG:function(){return T},default:function(){return D}});var r=a(85893),i=a(36465),s=a.n(i),n=a(45697),c=a.n(n),l=a(3214),d=a(40577),o=a(2232),u=a(83008),f=a(89929),x=a(4410),p=a(25912),h=a(820),y=a(67294),m=a(74129),j=a(86437),g=a(48683),b=a(25675),v=a.n(b),w=a(50178),N=a(26807),E=a(54303),M=a(72306);function C(e){let{image:t}=e;return(null==t?void 0:t.asset)?(0,r.jsxs)("div",{className:"jsx-ef252255c81812de featuredMedia",children:[(0,r.jsx)(v(),{src:t.asset[0].secure_url,alt:t.altText,fill:!0,priority:!0,style:{objectFit:"cover",objectPosition:"right center"},unoptimized:!0}),(0,r.jsx)(s(),{id:"ef252255c81812de",children:".featuredMedia.jsx-ef252255c81812de{position:relative;width:100%;max-width:1200px;height:max(280px,min((100vw*.331 + 160.8px),590px));height:clamp(280px,(100vw*.331 + 160.8px),590px)}"})]}):null}function _(e){let{subcategory:t}=e,a=t.parentCategory?(0,N.mx)(t.parentCategory.slug):null,i=a?(0,N.Wi)(t.parentCategory.slug,t.slug):null;return(0,r.jsxs)("div",{className:"jsx-a90fac01f279d24f paddingTopBottom--24",children:[a&&i&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("span",{className:"jsx-a90fac01f279d24f",children:[(0,r.jsx)(g.Z,{href:"/","data-qa":"bc-home",children:"Home"}),(0,r.jsx)("i",{className:"jsx-a90fac01f279d24f delimeter fa-chevron-right fa-light icon-12"})]}),(0,r.jsxs)("span",{className:"jsx-a90fac01f279d24f",children:[(0,r.jsx)(g.Z,{href:w.Z6.RESOURCES,"data-qa":"bc-articles",children:"Articles"}),(0,r.jsx)("i",{className:"jsx-a90fac01f279d24f delimeter fa-chevron-right fa-light icon-12"})]}),(0,r.jsxs)("span",{className:"jsx-a90fac01f279d24f",children:[(0,r.jsx)(g.Z,{href:a,"data-qa":"bc-category",children:t.parentCategory.title}),(0,r.jsx)("i",{className:"jsx-a90fac01f279d24f delimeter fa-chevron-right fa-light icon-12"})]}),(0,r.jsx)("span",{className:"jsx-a90fac01f279d24f",children:(0,r.jsx)(g.Z,{href:i,"data-qa":"bc-subcategory",children:t.title})})]}),(0,r.jsx)(s(),{id:"a90fac01f279d24f",children:".delimeter.jsx-a90fac01f279d24f{margin:0 8px}.selected.jsx-a90fac01f279d24f{color:var(--color-primary);font-size:16px;line-height:28px}"})]})}function R(e){var t;let{article:a}=e,[i,n]=(0,y.useState)({});(0,y.useEffect)(()=>{!async function(){let e=a.body.links.entries.block||[],t=e.map(async e=>{if("Button"===e.__typename){let t=await (0,M.vy)(e.sys.id);return{id:e.sys.id,data:t}}return null}),r=await Promise.all(t),i=r.reduce((e,t)=>(t&&(e[t.id]=t.data),e),{});n(i)}()},[a]);let c=e=>(0,r.jsxs)("div",{className:"jsx-944ac6f53e37c15d buttonRowContainer",children:[e.map((e,a)=>{var i;return(0,r.jsx)(E.Z,{variant:e.variant,href:null!==(t=e.href)&&void 0!==t?t:e.page.path,"data-qa":"article-button-".concat(null===(i=e.sys)||void 0===i?void 0:i.id),style:{flex:1,margin:"8px",maxWidth:"30%"},children:e.text},e.id||a)}),(0,r.jsx)(s(),{id:"944ac6f53e37c15d",children:".buttonRowContainer.jsx-944ac6f53e37c15d{text-align:center;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:8px;margin:20px 0}.buttonRowContainer.jsx-944ac6f53e37c15d button{max-width:30%}"})]}),l={renderNode:{[j.BLOCKS.PARAGRAPH]:e=>{var t;return(0,r.jsx)("p",{children:null===(t=e.content[0])||void 0===t?void 0:t.value})},[j.BLOCKS.EMBEDDED_ENTRY]:()=>null}},d=(e=>{let t=[],a=[];return e.forEach(e=>{e.nodeType===j.BLOCKS.EMBEDDED_ENTRY&&i[e.data.target.sys.id]?a.push(i[e.data.target.sys.id]):(a.length&&(t.push({type:"buttonGroup",buttons:[...a]}),a=[]),t.push(e))}),a.length&&t.push({type:"buttonGroup",buttons:a}),t})(a.body.json.content);return(0,r.jsxs)(r.Fragment,{children:[a.subcategory&&a.subcategory.parentCategory&&a.subcategory.slug?(0,r.jsx)(_,{subcategory:a.subcategory}):null,(0,r.jsx)(C,{image:a.featuredMedia}),(0,r.jsx)("h1",{className:"h2",children:a.title}),(0,r.jsx)("div",{className:"body",children:d.map(e=>"buttonGroup"===e.type?c(e.buttons):(0,m.h)({content:[e]},l))})]})}C.propTypes={image:c().object.isRequired},_.propTypes={subcategory:c().object.isRequired},R.propTypes={article:c().object.isRequired};var q=a(19063);let B=e=>{let{isArticleCategory:t,...a}=e;return t?(0,r.jsx)(k,{...a}):(0,r.jsx)(S,{...a})};B.propTypes={isArticleCategory:c().bool.isRequired};var T=!0,D=B;function k(e){let{categoryTree:t,articles:a,category:i,topics:n}=e;return(0,r.jsxs)(l.Z,{title:"Categories",children:[(0,r.jsx)(p.Z,{text:i.text,description:i.description}),(0,r.jsxs)("div",{className:s().dynamic([["a59289c393be0632",[o.Bs.MEDIUM]]])+" standardLayout wider",children:[(0,r.jsx)(u.Z,{categoryTree:t}),(0,r.jsxs)("div",{className:s().dynamic([["a59289c393be0632",[o.Bs.MEDIUM]]])+" articleListContainer",children:[(0,r.jsx)("div",{className:s().dynamic([["a59289c393be0632",[o.Bs.MEDIUM]]])+" topThree",children:a.slice(0,3).map(e=>(0,r.jsx)(f.S,{article:e},e.sys.id))}),(0,r.jsx)("div",{className:s().dynamic([["a59289c393be0632",[o.Bs.MEDIUM]]])+" treeContainer",children:(0,r.jsx)(d.Z,{categoryTree:t})})]})]}),(0,r.jsx)("div",{className:s().dynamic([["a59289c393be0632",[o.Bs.MEDIUM]]])+" additionalArticles",children:(0,r.jsxs)("div",{className:s().dynamic([["a59289c393be0632",[o.Bs.MEDIUM]]])+" standardLayout wider",children:[(0,r.jsx)("h4",{className:s().dynamic([["a59289c393be0632",[o.Bs.MEDIUM]]])+" h4",children:"Additional articles"}),(0,r.jsx)(x.Z,{articles:a.slice(3)},i.id)]})}),(0,r.jsx)("div",{className:s().dynamic([["a59289c393be0632",[o.Bs.MEDIUM]]])+" standardLayout wider",children:(0,r.jsx)(h.Z,{topics:n})}),(0,r.jsx)(s(),{id:"a59289c393be0632",dynamic:[o.Bs.MEDIUM],children:'.additionalArticles.__jsx-style-dynamic-selector{background-color:white}.articleListContainer.__jsx-style-dynamic-selector{display:grid;grid-template-areas:"tree""articles";grid-template-columns:1fr;gap:48px}.topThree.__jsx-style-dynamic-selector{grid-area:articles}.treeContainer.__jsx-style-dynamic-selector{grid-area:tree}@media(min-width:'.concat(o.Bs.MEDIUM,'){.articleListContainer.__jsx-style-dynamic-selector{grid-template-areas:"articles tree";grid-template-columns:3fr 1fr}}')})]})}function S(e){var t;let{article:a}=e;return(0,r.jsx)(q.fc,{value:a,children:(0,r.jsx)(l.Z,{title:null==a?void 0:null===(t=a.metadata)||void 0===t?void 0:t.title,children:(0,r.jsx)("div",{className:"marginBottom--36 standardLayout",children:(0,r.jsx)(R,{article:a})})})})}k.propTypes={categoryTree:c().array.isRequired,articles:c().array.isRequired,category:c().object.isRequired,topics:c().array.isRequired},S.propTypes={article:c().object.isRequired}},72306:function(e,t,a){a.d(t,{vX:function(){return s},vy:function(){return n}});var r=a(47380),i=a(76882);async function s(e){try{var t,a;let{data:s}=await r.D.query({query:i.H,variables:{slug:e}});if(!(null==s?void 0:null===(t=s.articleCollection)||void 0===t?void 0:null===(a=t.items)||void 0===a?void 0:a.length))throw Error("Article not found in CMS. Slug: ".concat(e));return s.articleCollection.items[0]}catch(e){return console.log(JSON.stringify(e.networkError)),null}}async function n(e){try{let{data:t}=await r.D.query({query:i.Oj,variables:{id:e}});return null==t?void 0:t.button}catch(e){return console.log(JSON.stringify(e.networkError)),null}}a(32924),a(26807)}}]);