"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 B}});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 q(e){var t,a,i;let{article:n}=e,[c,l]=(0,y.useState)({});(0,y.useEffect)(()=>{!async function(){let e=n.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}),a=await Promise.all(t),r=a.reduce((e,t)=>(t&&(e[t.id]=t.data),e),{});l(r)}()},[n]);let d=e=>(0,r.jsxs)("div",{className:"jsx-944ac6f53e37c15d buttonRowContainer",children:[e.map((e,t)=>{var a;return(0,r.jsx)(E.Z,{variant:e.variant,href:null!==(i=e.href)&&void 0!==i?i:e.page.path,"data-qa":"article-button-".concat(null===(a=e.sys)||void 0===a?void 0:a.id),style:{flex:1,margin:"8px",maxWidth:"30%"},children:e.text},e.id||t)}),(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%}"})]}),o={renderNode:{[j.BLOCKS.EMBEDDED_ENTRY]:e=>{let t=e.data.target.sys.id,a=n.body.links.entries.block.find(e=>e.sys.id===t);return(0,r.jsx)(C,{image:a})}}},u=(e=>{let t=[],a=[];return e.forEach(e=>{e.nodeType===j.BLOCKS.EMBEDDED_ENTRY&&c[e.data.target.sys.id]?a.push(c[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})(n.body.json.content);return(0,r.jsxs)(r.Fragment,{children:[(null==n?void 0:null===(t=n.subcategory)||void 0===t?void 0:t.parentCategory)&&(null==n?void 0:null===(a=n.subcategory)||void 0===a?void 0:a.slug)?(0,r.jsx)(_,{subcategory:n.subcategory}):null,(0,r.jsx)(C,{image:n.featuredMedia}),(0,r.jsx)("h1",{className:"h2",children:n.title}),(0,r.jsx)("div",{className:"body",children:u.map(e=>"buttonGroup"===e.type?d(e.buttons):(0,m.h)({content:[e]},o))})]})}C.propTypes={image:c().object.isRequired},_.propTypes={subcategory:c().object.isRequired},q.propTypes={article:c().object.isRequired};var k=a(19063);let R=e=>{let{isArticleCategory:t,...a}=e;return t?(0,r.jsx)(D,{...a}):(0,r.jsx)(S,{...a})};R.propTypes={isArticleCategory:c().bool.isRequired};var T=!0,B=R;function D(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)(k.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)(q,{article:a})})})})}D.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)}}]);