1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},i=(new e.Error).stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="40ecf55c-45c1-4cb8-bfe0-04d6e82aafd9",e._sentryDebugIdIdentifier="sentry-dbid-40ecf55c-45c1-4cb8-bfe0-04d6e82aafd9")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7812],{10826:(e,i,t)=>{"use strict";t.r(i),t.d(i,{__N_SSG:()=>$,default:()=>ee});var n=t(97135),r=t(7023),o=t(8190),l=t(32987),d=t(70498),a=t(69729),c=t(41313),s=t(2412),h=t.n(s),m=t(28779),u=t(43629),p=t(51282),g=t(86840),f=t(80155),w=t.n(f),v=t(34725),b=t(7365);let x=e=>{let{image:i,title:t,subtitle:r,isInteractive:o,date:l,category:d}=e;return(null==i?void 0:i.url)?(0,n.jsx)(I,{"aria-labelledby":"blog-container-title",isInteractive:o,children:o?(0,n.jsxs)(C,{isInteractive:o,children:[(0,n.jsx)(h(),{src:i.url,alt:i.alt,style:{objectFit:"cover"},fill:!0,priority:!0}),(0,n.jsxs)(T,{children:[t&&(0,n.jsx)(p.A,{as:"h1",type:"1",color:"var(--white)",children:t}),r&&(0,n.jsx)(p.A,{as:"h2",type:"4",color:"var(--white)",children:r})]})]}):(0,n.jsx)(k,{children:(0,n.jsxs)(v.A,{maxWidth:"55rem",children:[(0,n.jsxs)(g.A,{gap:4,children:[(0,n.jsx)(p.A,{as:"h1",type:"2",pt:10,maxWidth:"42rem",color:"var(--link)",children:t}),(0,n.jsxs)(m.A,{display:"flex",justifyContent:"space-between",children:[(0,n.jsx)(j,{children:null==d?void 0:d.map(e=>(0,n.jsx)(w(),{href:"/blog?category=".concat(null==e?void 0:e.slug),style:{textDecoration:"none"},children:(0,n.jsx)(A,{color:"var(--link)",children:null==e?void 0:e.name})},null==e?void 0:e.id))}),(0,n.jsx)(u.A,{color:"var(--link)",children:l?(0,b.default)(new Date(l),"dd MMM yy"):null})]})]}),(0,n.jsx)(m.A,{borderRadius:"10px",border:"1px solid var(--backgroundGrey)",overflow:"hidden",mt:4,ml:"-9.5px",width:"calc(100% + 18px)",children:(0,n.jsx)(y,{src:i.url,alt:i.alt,width:1920,height:550,priority:!0})})]})})}):null},k=(0,l.Ay)(m.A).withConfig({componentId:"sc-f709e06d-0"})(["--gradient-height:75%;background-image:linear-gradient( to bottom,var(--backgroundGrey) var(--gradient-height),transparent var(--gradient-height) );@media (min-width:48rem){--gradient-height:60%;}"]),y=(0,l.Ay)(h()).withConfig({componentId:"sc-f709e06d-1"})(["aspect-ratio:16/10;object-fit:cover;height:auto;"]),j=(0,l.Ay)(m.A).withConfig({componentId:"sc-f709e06d-2"})(["display:flex;flex-wrap:wrap;gap:1rem;"]),A=(0,l.Ay)(u.A).withConfig({componentId:"sc-f709e06d-3"})(["position:relative;text-transform:uppercase;color:var(--link);font-weight:700;font-size:0.8rem;"]),I=(0,l.Ay)(c.A).withConfig({componentId:"sc-f709e06d-4"})(["padding-block:0;"]),C=(0,l.Ay)(m.A).withConfig({componentId:"sc-f709e06d-5"})(["display:grid;place-items:center;height:10.9375rem;position:relative;overflow:hidden;@media (min-width:48rem){height:20.9375rem;}@media (min-width:60rem){height:33.125rem;}",""],e=>e.isInteractive&&"\n height: 26.875rem;\n padding-block-end: 5.4rem;\n @media (min-width: 48rem) {\n padding-block-end: 8.5rem;\n height: 26.875rem;\n } \n "),T=l.Ay.div.withConfig({componentId:"sc-f709e06d-6"})(["z-index:1;text-align:center;max-width:30.0625rem;"]);var _=t(43402),B=t(49085);let S=e=>{var i;let{sidebarItems:t}=e,[o,l]=(0,r.useState)(""),[d,a]=(0,r.useState)([]),{width:c}=(0,B.A)(),[s,h]=(0,r.useState)(!1),[p,g]=(0,r.useState)(!1),[f,v]=(0,r.useState)(!1),[b,x]=(0,r.useState)({x:0,y:0});(0,r.useEffect)(()=>
1{l(window.location.href)},[]),(0,r.useEffect)(()=>{(async()=>{if(!(null==t?void 0:t.usefulTools)||0===t.usefulTools.length)try{let e=await fetch("".concat("https://cms.harwin.com","/api/globals/blogSettings"));if(e.ok){let i=await e.json();a(i.usefulTools||[])}}catch(e){console.error("Failed to fetch fallback tools:",e)}})()},[null==t?void 0:t.usefulTools]),(0,r.useEffect)(()=>{f&&setTimeout(()=>{v(!1)},1e3)},[f]),(0,r.useEffect)(()=>{h(!!(c&&c<=799))},[c]);let k=(null==t?void 0:t.usefulTools)&&t.usefulTools.length>0?t.usefulTools:d;return(0,n.jsxs)(E,{children:[s&&(0,n.jsx)(W,{onClick:()=>g(e=>!e),children:(0,n.jsxs)(m.A,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,n.jsx)(u.A,{color:"var(--darkBlue900)",fontWeight:700,fontSize:1,children:"Share & More"}),(0,n.jsx)(_.A,{icon:p?"faChevronUp":"faChevronDown"})]})}),(!s||p)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(P,{children:[(0,n.jsx)(u.A,{color:"var(--darkBlue900)",fontWeight:700,fontSize:1,pb:2,children:"Share this article"}),(0,n.jsxs)(L,{children:[(0,n.jsx)(w(),{href:"https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(o)),target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)(_.A,{icon:"faFacebookF",iconType:"brand",backgroundColor:s?"var(--midBlue)":"var(--white)"})}),(0,n.jsx)(w(),{href:"https://www.linkedin.com/shareArticle?mini=true&url=".concat(encodeURIComponent(o)),target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)(_.A,{icon:"faLinkedinIn",iconType:"brand",backgroundColor:s?"var(--midBlue)":"var(--white)"})}),(0,n.jsx)(w(),{href:"#",onClick:e=>{e.preventDefault(),navigator.clipboard.writeText(o),x({x:e.clientX,y:e.clientY}),v(!0)},children:(0,n.jsx)(_.A,{icon:"faLink",backgroundColor:s?"var(--midBlue)":"var(--white)"})}),(0,n.jsx)(w(),{href:"mailto:?subject=Check out this Harwin article&body=".concat(encodeURIComponent(o)),target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)(_.A,{icon:"faEnvelope",backgroundColor:s?"var(--midBlue)":"var(--white)"})})]})]}),(null==t?void 0:t.featuredProducts)&&(null==(i=t.featuredProducts)?void 0:i.length)>0&&(0,n.jsxs)(D,{children:[(0,n.jsx)(u.A,{color:"var(--darkBlue900)",fontWeight:700,fontSize:1,pb:1,children:"Products in this article"}),null==t?void 0:t.featuredProducts.map(e=>(0,n.jsx)(R,{href:"/products/".concat(e.product),children:e.product},e.product))]}),k&&k.length>0&&(0,n.jsxs)(F,{children:[(0,n.jsx)(u.A,{color:"var(--darkBlue900)",fontWeight:700,fontSize:1,pb:1,children:"Useful tools"}),k.map((e,i)=>(0,n.jsx)(R,{href:e.toolhref,children:e.toolLabel},i))]}),f&&(0,n.jsx)(z,{style:{top:b.y,left:b.x},children:"Copied!"})]})]})},E=l.I4.aside.withConfig({componentId:"sc-7465ec63-0"})(["width:100%;max-width:40rem;margin:0 auto;margin-top:1.875rem;background-color:var(--midBlue);border-radius:20px;padding:1.25rem;display:flex;flex-direction:column;gap:",";@media (min-width:50rem){width:22rem;max-width:100%;position:sticky;height:fit-content;top:6.875rem;background-color:unset;padding:unset;margin:4rem 0 0;margin-bottom:6.875rem;gap:",";}"],e=>e.theme.space[2],e=>e.theme.space[4]),N=l.I4.div.withConfig({componentId:"sc-7465ec63-1"})(["background-color:var(--white);padding:1.25rem;border-radius:20px;@media (min-width:50rem){background-color:var(--backgroundGrey);}"]),W=l.I4.div.withConfig({componentId:"sc-7465ec63-2"})(["cursor:pointer;"]),P=(0,l.I4)(N).withConfig({componentId:"sc-7465ec63-3"})([""]),D=(0,l.I4)(N).withConfig({componentId:"sc-7465ec63-4"})([""]),F=(0,l.I4)(N).withConfig({componentId:"sc-7465ec63-5"})([""]),L=l.I4.div.withConfig({componentId:"sc-7465ec63-6"})(["display:flex;justify-content:space-between;max-width:16rem;> * > *{height:2.25rem;width:2.25rem;@media (min-width:50rem){height:1.875rem;width:1.875rem;}color:var(--hri);}"]),R=(0,l.I4)(w()).withConfig({componentId:"sc-7465ec63-7"})(["display:block;display:flex;justify-content:space-between;width:100%;font-size:var(--p-small);color:var(--darkBlue900);text-decoration:none;&::after{padding-left:4px;content:url(\"data:image/svg+xml,%3Csvg width='8' height='9' viewBox='0 0 8 9' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.1875 0.75C7.49219 0.75 7.75 1.00781 7.75 1.3125V6.9375C7.75 7.26562 7.49219 7.5 7.1875 7.5C6.85938 7.5 6.625 7.26562 6.625 6.9375V2.67188L1.21094 8.08594C0.976562 8.32031 0.625 8.32031 0.414062 8.08594C0.179688 7.875 0.179688 7.52344 0.414062 7.3125L5.82812 1.89844L1.5625 1.875C1.23438 1.875 1 1.64062 1 1.3125C1 1.00781 1.23438 0.75 1.5625 0.75H7.1875Z' fill='%23E50040' /%3E%3C/svg%3E%0A\");filter:grayscale(1);}&:hover{text-decoration:underline;color:var(--hri);&::after{filter:grayscale(0);}}"]),z=l.I4.div.withConfig({componentId:"sc-7465ec63-8"})(["position:fixed;background-color:var(--link);color:var(--textGrey);padding:0.5rem 1rem;border-radius:10px;font-weight:600;"]),M=e=>{let{title:i,category:t,children:r,date:o,pageWidth:l="regular",introduction:d,sidebarItems:a}=e,c="interactive"===l;return(0,n.jsx)(v.A,{disablePadding:c,maxWidth:c?"100%":"55rem",children:(0,n.jsxs)(G,{children:[(0,n.jsx)(O,{isInteractive:c,children:(0,n.jsx)(V,{pageWidth:l,children:(0,n.jsx)(g.A,{gap:[2,2,4],children:c?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(U,{children:(0,n.jsx)(u.A,{color:"var(--link)",textAlign:"center",children:d})}),r]}):(0,n.jsx)(n.Fragment,{children:r})})})}),"regular"===l&&(0,n.jsx)(S,{sidebarItems:a})]})})},G=l.Ay.div.withConfig({componentId:"sc-6f031cc3-0"})(["display:flex;flex-direction:column-reverse;gap:2rem;@media (min-width:50rem){flex-direction:row;}"]),U=(0,l.Ay)(m.A).withConfig({componentId:"sc-6f031cc3-1"})(["margin-inline:auto;background:white;position:relative;@media (max-width:59.9375rem){padding:0 2.5rem;&::before{border-radius:1rem 1rem 0 0;content:'';position:absolute;top:-5.375rem;left:50%;transform:translateX(-50%);width:92.37%;background:var(--white);height:4.375rem;}}@media (min-width:60rem){margin-top:-8.5rem;padding:4.5rem 2rem 2rem 2rem;max-width:55.1875rem;border-radius:1rem;}"]);l.Ay.div.withConfig({componentId:"sc-6f031cc3-2"})(["display:flex;justify-content:space-between;border-bottom:1px solid var(--midOverlay);border-top:1px solid var(--midOverlay);padding-top:1rem;padding-bottom:1rem;align-items:center;width:100%;@media (min-width:48rem){padding-top:0;border-top:none;}.desktop-date{display:none;@media (min-width:48rem){display:block;}}"]);let O=(0,l.Ay)(m.A).withConfig({componentId:"sc-6f031cc3-3"})(["background-color:var(--white);position:relative;margin-left:auto;margin-right:auto;width:100%;","{width:100%;}"," @media (min-width:48rem){margin-top:",";padding-bottom:",";max-width:'100%';}"],g.A,e=>!e.isInteractive&&"\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n :not(.three-column-stat) {\n color: var(--link);\n }\n }\n ",e=>e.isInteractive?"-4.25rem":"",e=>e.isInteractive?"0":"7rem"),X={regular:"38.4375rem",wide:"55rem",interactive:"100%"},V=l.Ay.div.withConfig({componentId:"sc-6f031cc3-4"})(["max-width:",";margin-left:auto;margin-right:auto;padding-block:1rem;@media (min-width:59.9375rem){margin-left:0;margin-right:0;}> ","{display:flex;flex-wrap:wrap;}h1{@media (max-width:47.9375rem){margin-bottom:1rem;order:-1;}}@media (min-width:48rem){padding-block-start:4rem;padding-block-end:0rem;}"],e=>X[e.pageWidth||"regular"],g.A);var H=t(15496);let Y=e=>{let{author:i}=e,t=null==i?void 0:i.image;return(0,n.jsxs)(Z,{children:[(null==t?void 0:t.url)&&(0,n.jsx)(h(),{src:t.url,alt:t.alt,width:62,height:62}),(0,n.jsxs)(m.A,{children:[(0,n.jsxs)(u.A,{children:["Written by: ",i.name]}),(0,n.jsx)(u.A,{color:"var(--secondary)",type:"small",children:i.bio})]})]})},Z=l.I4.div.withConfig({componentId:"sc-1c6a8fac-0"})(["display:flex;align-items:center;gap:1.5rem;padding-block-start:",";border-top:1px solid var(--link);width:100%;padding-block-end:1.5rem;@media (min-width:48rem){padding-block-end:0;}img{border-radius:50%;}"],e=>e.theme.space[4]);var q=t(48197),J=t(4118);let K=(0,a.A)(e=>{var i,t,l;let{data:a,fallbackPosts:c}=e,s=(0,o.useRouter)(),h=null==a||null==(i=a.blocks)?void 0:i.filter(e=>"whatsNewBlocks"===e.blockType)[0],m=null==a||null==(t=a.blocks)?void 0:t.filter(e=>"globalContentBlock"===e.blockType),u=null==a||null==(l=a.blocks)?void 0:l.filter(e=>"downloadReport"===e.blockType)[0],p=null==a?void 0:a.category,g=null==a?void 0:a.heroImage,f=null==a?void 0:a.author,w=(null==a?void 0:a.pageWidth)==="interactive",v=["whatsNewBlocks","globalContentBlock","downloadReport"];(null==a?void 0:a.pageWidth)!=="interactive"&&v.push("lightBlueChartSection","darkBlueChartSection");let b=null==m?void 0:m.some(e=>{var i;if(!("relationship"in e))return!1;let t="string"!=typeof e.relationship?e.relationship:null;return null==t||null==(i=t.blocks)?void 0:i.some(e=>"whatsNewBlocks"===e.blockType)}),k=h||b||!c?null:{blockType:"whatsNewBlocks",whatsNewTitle:"Related Articles",whatsNewLink:"/blog",whatsNewLinkText:"View More",whatsNewBlocks:c.map((e,i)=>({blogPost:e,id:"fallback-".concat(i,"-").concat(e.id)})),id:"fallback-whatsnew-block"};return(0,n.jsxs)(r.Fragment,{children:[(0,n.jsx)(x,{image:g,title:null==a?void 0:a.title,subtitle:null==a?void 0:a.subtitle,isInteractive:w,date:null==a?void 0:a.date,category:null!=p?p:[]}),(0,n.jsx)(M,{category:null!=p?p:[],title:null==a?void 0:a.title,date:null==a?void 0:a.date,pageWidth:null==a?void 0:a.pageWidth,introduction:null==a?void 0:a.introduction,sidebarItems:null==a?void 0:a.sidebarItems,children:(0,n.jsxs)(Q,{gap:6,isInteractive:w,children:[(null==a?void 0:a.blocks)&&a.blocks.map((e,i)=>{let t=d.p[null==e?void 0:e.blockType];
1return!t||v.includes(e.blockType)?null:(0,n.jsx)(t,{block:e},i)}),(null==f?void 0:f.name)&&(0,n.jsx)(Y,{author:f})]})}),u&&(0,n.jsx)(J.A,{block:u}),h&&(0,n.jsx)(H.A,{block:h}),k&&(0,n.jsx)(H.A,{block:k}),m&&m.map((e,i)=>(0,n.jsx)(q.A,{block:e},i))]},null==s?void 0:s.asPath)},{depth:3}),Q=(0,l.Ay)(g.A).withConfig({componentId:"sc-c2a9ec3d-0"})(["width:100%;",""],e=>e.isInteractive&&"\n @media (min-width: 60rem) {\n display: grid;\n grid-template-columns: 1fr 55.1875rem 1fr;\n gap: 0;\n }\n\n > * {\n grid-column: 2; \n }\n\n .full-width {\n grid-column: 1 / -1; \n }\n ");var $=!0;let ee=K},78737:(e,i,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog/[slug]",function(){return t(10826)}])}},e=>{var i=i=>e(e.s=i);e.O(0,[8336,4219,6293,3127,7365,2658,2782,636,6593,8792],()=>i(78737)),_N_E=e.O()}]);
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.