(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8873],{5114:e=>{e.exports={conditionsList:"ConditionsList_conditionsList__hR8tQ"}},13819:e=>{e.exports={root:"Video_root__1aPbi",youtubePlayer:"Video_youtubePlayer__4HRHy"}},18496:e=>{e.exports={root:"Quiz_root__My67G",card:"Quiz_card__g4JQf",imageWrapper:"Quiz_imageWrapper__x2atQ",content:"Quiz_content__14Clj",title:"Quiz_title__KlU9i",description:"Quiz_description__BYoJ6"}},19546:e=>{e.exports={root:"Card_root__5dC8E",header:"Card_header__K4txQ",postTitle:"Card_postTitle__R7kHG",content:"Card_content__xny8N",postImage:"Card_postImage__bh8OJ",postDate:"Card_postDate__CqZ1c",actionsBtn:"Card_actionsBtn__ZWZcz",authorLink:"Card_authorLink__XBQ59",authorName:"Card_authorName__amXJE",authorPicture:"Card_authorPicture__pMNcg",authorData:"Card_authorData__MhZIt",lineClamp:"Card_lineClamp__11T0A",postDescription:"Card_postDescription__muW19"}},20580:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(37876);r(14232);var n=r(12965),l=r(26413),i=r(31574),o=r(19666);let s=e=>{var t;let{title:r,topReads:s}=e,c=s.filter(e=>(null==e?void 0:e.article)!==null).map(e=>{let{article:{title:t,heroImage:r,slug:a}}=e;return{title:t,image:null==r?void 0:r.url,url:a}}),{t:d}=(0,o.B)(),u=null!=(t=null!=r?r:d(i.k.MoreTopReads))?t:"";return(0,a.jsx)(n.Ay,{items:c,card:{width:"295",height:"295"},buttonText:d(i.k.ReadMore),title:u,itemComponent:l.A})}},27210:e=>{e.exports={container:"FeaturedBlog_container__5m1d8",dataColumn:"FeaturedBlog_dataColumn__aMhyu",imageColumn:"FeaturedBlog_imageColumn__tScgs",title:"FeaturedBlog_title__a0TjK",description:"FeaturedBlog_description__ryZQJ"}},33215:e=>{e.exports={rootItem:"AuthorItem_rootItem__TBqKr",image:"AuthorItem_image__LLfyf",name:"AuthorItem_name__G4NWa",description:"AuthorItem_description__wpznX"}},41235:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var a=r(54945),n=r(99109);function l(e){(0,n.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,a.A)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},42158:e=>{e.exports={StoryItem:"StoryItem_StoryItem__OGPrz",root:"StoryItem_root__nHgIV",overlay:"StoryItem_overlay__QNNuZ"}},43747:(e,t,r)=>{"use strict";r.d(t,{A:()=>eR});var a,n=r(37876),l=r(62867),i=r(35946),o=r(61261),s=r(86121),c=r(19666),d=r(31574),u=r(14232),h=r(89099),g=r(58103),_=r.n(g),m=r(83174),x=r.n(m),p=r(47019),b=r(58349),v=r(65629),j=r(68827),f=r.n(j),C=r(64440),N=r(19546),k=r.n(N),A=r(37393);let y=e=>{let{author:t,updatedAt:r,readTime:a,title:l,link:i}=e;return(null==t?void 0:t.image)&&t.name?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:k().authorData,children:(0,n.jsxs)(v.A,{href:"/medical-team/".concat(t.link),className:k().authorLink,prefetch:!1,children:[(0,n.jsx)("div",{className:k().authorPicture,children:(0,n.jsx)(f(),{src:t.image,layout:"fill",objectFit:"cover",width:"64",height:"64"})}),(0,n.jsx)("p",{className:k().authorName,children:t.name})]})}),(0,n.jsx)("div",{className:k().postDate,children:(0,n.jsx)("p",{children:a?"".concat(r," ~ ").concat(a," min read"):"".concat(r)})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:k().postTitleWrapper,children:(0,n.jsx)(v.A,{href:"/".concat(i),prefetch:!1,children:(0,n.jsx)("a",{children:(0,n.jsx)("h4",{className:_()({[k().postTitle]:!0,[k().lineClamp]:!0}),children:l})})})}),(0,n.jsx)("div",{className:k().postDate,children:(0,n.jsx)("p",{children:a?"".concat(r," ~ ").concat(a," min read"):"".concat(r)})})]})},B=e=>{let{author:t,title:r,description:a,link:l}=e;return(null==t?void 0:t.name)&&t.image?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.A,{href:"/".concat(l),prefetch:!1,children:(0,n.jsx)("h4",{className:_()({[k().postTitle]:!0,[k().lineClamp]:!0}),children:r})}),(0,n.jsx)("p",{className:_()({[k().postDescription]:!0,[k().lineClamp]:!0}),children:a})]}):(0,n.jsx)("p",{className:_()({[k().postDescription]:!0,[k().lineClamp]:!0}),children:a})},L=e=>{let{author:t,title:r,description:a,image:l,link:i,date:o,words:s}=e,{t:h}=(0,c.B)(),g=(0,u.useMemo)(()=>Math.ceil((null!=s?s:0)/200),[s]),_=o?(0,C.A)(o,"dd/MM/yy"):"";return(0,n.jsxs)("div",{className:k().root,children:[(0,n.jsx)("div",{className:k().postImage,children:(0,n.jsx)(v.A,{href:"/".concat(i),prefetch:!1,children:(0,n.jsx)("a",{children:(0,n.jsx)(f(),{src:l,alt:"preview",layout:"fill",width:"190",height:"190",objectFit:"cover"})})})}),(0,n.jsxs)("div",{className:k().content,children:[(0,n.jsx)("div",{className:k().header,children:(0,n.jsx)(y,{author:t,updatedAt:_,readTime:g,title:r,link:i})}),(0,n.jsx)("div",{children:(0,n.jsx)(B,{author:t,title:r,description:a,link:i})}),(0,n.jsx)("div",{className:k().actionsBtn,children:(0,n.jsx)(v.A,{href:"/".concat(i),prefetch:!1,children:(0,n.jsx)("a",{children:(0,n.jsx)(A.A,{className:k().readMoreButton,variant:"primary-light",children:h(d.k.ReadMore)})})})})]})]})},w=e=>{let{t}=(0,c.B)();return(0,n.jsxs)("div",{className:x().list,"data-test-id":"BlogPostList",children:[(0,n.jsxs)("div",{className:x().ListHeader,children:[(0,n.jsx)("h3",{className:x().HeaderTitle,children:t(d.k.AllBlogs)}),(0,n.jsx)("p",{className:x().PaginationLabel,children:"".concat(t(d.k.Viewing)," ").concat(e.posts.length," / ").concat(e.count)})]}),0===e.posts.length&&(0,n.jsx)("p",{children:"No results."}),e.posts.length>0&&e.posts.map(e=>{var t,r,a,l;let i={image:e.author_image,link:e.author_link,name:e.author_name};return(0,n.jsx)("div",{className:x().cardContainer,children:(0,n.jsx)(L,{author:i,title:null!=(t=e.title)?t:"",description:null!=(r=e.meta_description)?r:"",image:null!=(a=e.listing_image)?a:"",link:null!=(l=e.url_key)?l:"",date:new Date(e.updated_at),words:e.words},e.title)})})]})};var P=r(4305);function F(){return(F=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{pagination:{pageNumber:t,pages:r},scrollToRoot:a}=e,l=(0,h.useRouter)(),{pathname:i,query:o}=l,s=t>0?v.A:u.Fragment,c=t!==r.length?v.A:u.Fragment,d=null==o?void 0:o.category,g=async(e,t)=>{e.preventDefault(),a&&a(),l.replace("".concat(t),void 0,{scroll:!1})},m=(0,u.useCallback)((e,t)=>{let r=Number(t);switch(e){case 1:r=Math.max(1,Number(t)-1);break;case 0:r=Number(t)+1}let a=new URLSearchParams({...o,pageNumber:String(r)});return"/blog/search?".concat(a.toString())},[o]),x=(0,u.useCallback)((e,t)=>{if("/blog/search"===i)return m(e,t);switch(e){case 1:if(d&&d[0])return t>2?"/blog/".concat(d[0],"/").concat(t-1):"/blog/".concat(d[0]);return t>2?"/blog/".concat(t-1):"/blog";case 0:if(d&&d[0])return"/blog/".concat(d[0],"/").concat(t+1);return"/blog/".concat(t+1);default:if(d&&d[0])return t>1?"/blog/".concat(d[0],"/").concat(t):"/blog/".concat(d[0]);return t>1?"/blog/".concat(t):"/blog"}},[m,i]);return(0,n.jsxs)("div",{className:_()(M().pagination),children:[(0,n.jsx)(s,{className:_()(1===t&&M().preventClick),href:x(1,t),onClick:async e=>g(e,x(1,t)),children:(0,n.jsx)("a",{className:_()(M().prev,M()["page-numbers"]),children:(0,n.jsx)(A.A,{variant:"trans",icon:"center",className:_()(M().prev),"data-test-id":"BlogsLink.prev","aria-label":"Prev Posts",type:"button",children:(0,n.jsx)(P.A,{className:M().navIcons})})})}),r.map(e=>{let a=r.length-t>2,l=[1,t-1,t,t+1,r.length];return(e!==r.length-1||a||l.push(e),l.includes(e))?(0,n.jsx)(v.A,{href:x(2,e),className:_()(M()["page-numbers"],e===Number(t)&&M().current,e===Number(t)&&M().preventClick),onClick:async t=>g(t,x(2,e)),prefetch:!1,children:e}):e===r.length-1&&a?(0,n.jsx)("span",{className:_()(M()["page-numbers"],M().dots),children:"…"}):null}),(0,n.jsx)(c,{href:x(0,t),onClick:async e=>g(e,x(0,t)),className:_()(t===r.length-1&&M().preventClick),children:(0,n.jsx)("a",{className:_()(M()["page-numbers"],M().next),children:(0,n.jsx)(A.A,{variant:"trans",icon:"center",className:_()(M().next),"data-test-id":"BlogsLink.next","aria-label":"Next Posts",type:"button",children:(0,n.jsx)(T,{})})})})]})},E=e=>{let{blogs:t,pagination:r,categories:a,scrollToRoot:l}=e,i=t.filter(Boolean).map(e=>{var t,r,a,n,l,i;return{title:e.title,category_id:null==(t=e.category)?void 0:t.id,listing_image:null==(r=e.heroImage)?void 0:r.url,meta_description:e.metaDescription,url_key:e.slug,words:null==(a=e.contentWordCounter)?void 0:a.words,updated_at:e.updatedAt,author_name:null==(n=e.author)?void 0:n.name,author_link:null==(l=e.author)?void 0:l.slug,author_image:null==(i=e.author)?void 0:i.image.url}});return(0,n.jsxs)("div",{children:[(0,n.jsx)(w,{posts:i,categories:a,count:r.count},"05"),r.pages.length>1&&(0,n.jsx)(I,{pagination:r,scrollToRoot:l})]})};var V=r(17564);let z=e=>{let{blogs:t,pagination:r,categories:a,scrollToTop:l}=e,{t:i}=(0,c.B)(),o=(0,h.useRouter)(),s=o.asPath.split("/")[3],g=(0,u.useRef)(null),m=(0,u.useRef)(null),[j,f]=(0,u.useState)(!1),[C,N]=(0,u.useState)(!1);(0,u.useEffect)(()=>{k(),window.addEventListener("resize",k,{passive:!0})},[]);let k=()=>{m&&m.current&&m.current.scrollHeight&&N(m.current.scrollHeight>110)},y=()=>{var e;let t=170*(window.innerWidth<850),r=null==(e=g.current)?void 0:e.getBoundingClientRect(),a=null==r?void 0:r.top;if(!a)return;let n=Math.floor(a+window.scrollY-t);window.scrollTo({top:n,behavior:"smooth"})};return(0,n.jsxs)("section",{ref:g,className:x().root,"data-test-id":"BlogLandingPage",children:[(0,n.jsxs)(b.d,{children:[(0,n.jsxs)("p",{className:x().filterTitle,children:[(0,n.jsx)("h4",{children:i(d.k.Filter)}),(0,n.jsx)(v.A,{className:_()([x().link,x().clearAllLink]),href:"/blog",onClick:e=>{e.preventDefault(),l&&y(),o.replace("/blog",void 0,{scroll:!1})},prefetch:!1,children:(0,n.jsx)("p",{children:i(V.Pd.ClearAll)})})]}),(0,n.jsx)("div",{className:_()([{[x().filterContainer]:!0,[x().filterContainerMobile]:C,[x().mobileShowAllFilters]:j}]),ref:m,children:a.map(e=>(0,n.jsx)(v.A,{className:x().link,href:"/blog/".concat(e.slug),onClick:t=>{var r;return r=e.slug,void(t.preventDefault(),l&&y(),o.replace("/blog/".concat(r),void 0,{scroll:!1}))},prefetch:!1,children:(0,n.jsx)(p.A,{label:e.name,field:"blog_filter_".concat(e.slug),initialValue:s===e.slug,variant:"button",value:e.slug},e.id)},e.slug))}),C&&(0,n.jsx)(A.A,{className:x().toggleMoreCategories,onClick:()=>f(!j),external:!0,variant:"trans",children:(0,n.jsx)("p",{children:j?"Hide categories":"View more categories"})})]}),(0,n.jsx)("div",{className:x().content,children:(0,n.jsx)(E,{blogs:t,pagination:r,categories:a,scrollToRoot:l?y:void 0})})]})};var O=r(93835),R=r.n(O),W=r(56495),Q=r.n(W),H=r(23813);let Z=e=>{var t,r,a;let{article:l,variant:i}=e,{t:o}=(0,c.B)();return(0,n.jsx)("div",{className:_()({[Q().root]:!0,[Q().primary]:"primary"===i,[Q().secondary]:"secondary"===i}),style:{backgroundImage:(null==l||null==(t=l.heroImage)?void 0:t.url)?"linear-gradient(0deg, rgba(0,0,0, 1), rgba(0,0,0, 0)), url(".concat(l.heroImage.url,")"):""},children:(0,n.jsxs)("div",{className:Q().wrapper,children:[(0,n.jsx)("div",{className:Q().profile,children:l.author&&(0,n.jsxs)(v.A,{href:"/medical-team/".concat(l.author.slug),className:Q().authorLink,prefetch:!1,children:[(0,n.jsx)("div",{className:Q().picture,children:(0,n.jsx)(f(),{src:null==(r=l.author)?void 0:r.image.url,layout:"fill",objectFit:"cover",width:"64",height:"64"})}),(0,n.jsx)("p",{className:Q().author,children:null==(a=l.author)?void 0:a.name})]})}),(0,n.jsx)("div",{className:Q().header,children:(0,n.jsx)(v.A,{href:"/".concat(l.slug),prefetch:!1,children:(0,n.jsx)("a",{children:(0,n.jsx)("h4",{children:l.title})})})}),(0,n.jsxs)("div",{className:Q().content,children:[(0,n.jsx)("p",{className:Q().description,children:l.metaDescription}),(0,n.jsx)("div",{className:Q().buttonContainer,children:(0,n.jsx)(H.v,{to:"/".concat(l.slug),className:Q().readMoreButton,variant:"primary-light",children:o(d.k.ReadPost)})})]})]})})};var Y=r(64811),G=r.n(Y);let X=e=>{let{articles:t}=e;if(!t||(null==t?void 0:t.length)<2)return null;let r=t.shift(),a=t.shift();return r||a?(0,n.jsxs)("div",{className:G().root,children:[r&&(0,n.jsx)(Z,{article:r,variant:"primary"}),a&&(0,n.jsx)(Z,{article:a,variant:"secondary"})]}):null};var q=r(5114),U=r.n(q),J=r(12965),K=r(26413);let $=e=>{let{conditions:t}=e,{t:r}=(0,c.B)();if(!t)return null;let a=t.reduce((e,t)=>(1===t.include_in_menu&&t.blog_image&&e.push({url:t.url_key,title:t.name,image:t.blog_image}),e),[]);return(0,n.jsx)("div",{className:U().root,children:(0,n.jsx)("div",{"data-test-id":"BlogConditionsList",className:U().conditionsList,children:(0,n.jsx)(J.Ay,{items:a,title:r(d.k.Conditions),itemComponent:K.A,buttonText:"Learn More",card:{width:"295",height:"295"}})})})};var ee=r(49156),et=r.n(ee);let er=e=>{let{trendings:t}=e,{t:r}=(0,c.B)();return(0,n.jsxs)("div",{className:et().root,children:[(0,n.jsx)("h3",{children:r(d.k.TrendingBlogs)}),(0,n.jsx)("div",{className:et().cardContainer,children:t.length>0&&t.map(e=>{var t,r,a,l,i,o,s,c,d,u;let{article:h}=e,g={link:null==h||null==(t=h.author)?void 0:t.slug,name:null==h||null==(r=h.author)?void 0:r.name,image:null==h||null==(l=h.author)||null==(a=l.image)?void 0:a.url};return(0,n.jsx)(L,{author:g,title:null!=(s=null==h?void 0:h.title)?s:"",description:null!=(c=null==h?void 0:h.metaDescription)?c:"",image:null!=(d=null==h||null==(i=h.heroImage)?void 0:i.url)?d:"",link:null!=(u=null==h?void 0:h.slug)?u:"",date:(null==h?void 0:h.updatedAt)?new Date(h.updatedAt):void 0,words:null==h||null==(o=h.contentWordCounter)?void 0:o.words},null==h?void 0:h.title)})})]})};var ea=r(48230),en=r.n(ea),el=r(18496),ei=r.n(el),eo=r(80913);let es=e=>{let{article:t}=e;if(!t)return null;let{slug:r,title:a,metaDescription:l,excerpt:i,heroImage:o}=t,s=null==o?void 0:o.url,u=null!=i?i:l,{t:h}=(0,c.B)();return(0,n.jsx)("div",{className:ei().root,children:(0,n.jsx)(eo.Z,{className:ei().card,link:r,img:(0,n.jsx)("div",{className:ei().imageWrapper,children:s&&(0,n.jsx)(f(),{src:s,alt:"preview",width:"400",height:"336"})}),content:e=>{let{title:a}=e;return(0,n.jsxs)("div",{className:ei().content,children:[(0,n.jsx)(en(),{href:"/".concat(r),locale:!1,prefetch:!1,className:a,children:(0,n.jsx)("h3",{className:ei().title,children:t.title})}),(0,n.jsx)("p",{className:ei().description,children:u}),(0,n.jsx)("div",{className:"actionsContainer",children:(0,n.jsx)(en(),{href:"/".concat(r),locale:!1,prefetch:!1,children:(0,n.jsx)(A.A,{className:ei().readMoreButton,variant:"primary-light",children:h(d.k.ReadMore)})})})]})}},a)})};var ec=r(45536),ed=r(13819),eu=r.n(ed);let eh=e=>(0,n.jsx)("div",{className:eu().root,style:{maxWidth:e.width},children:(0,n.jsx)(ec.V,{className:eu().youtubePlayer,src:"https://www.youtube.com/embed/".concat(e.id),frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Embedded youtube"})});var eg=r(67822),e_=r.n(eg);let em=e=>{let{item:t}=e;return(0,n.jsxs)("div",{className:e_().root,children:[(0,n.jsx)("h3",{children:t.title}),(0,n.jsxs)("p",{children:[t.description," "]}),(0,n.jsx)("div",{className:e_().videoWrapper,children:(0,n.jsx)(eh,{id:t.video,width:1029})})]})};var ex=r(42158),ep=r.n(ex),eb=r(71979),ev=r.n(eb),ej=r(1820),ef=r(48091);let eC=e=>{let{url:t,closePopup:r}=e,[a,l]=(0,u.useState)(!0);return(0,n.jsx)("div",{className:ev().root,children:(0,n.jsxs)("div",{className:ev().body,children:[!1===a&&(0,n.jsx)("div",{className:ev().header,children:(0,n.jsx)(A.A,{variant:"trans",onClick:r,size:"small","aria-label":"Dismiss alert",children:(0,n.jsx)(ej.A,{color:"white"})})}),!0===a&&(0,n.jsx)(ef.a,{}),(0,n.jsx)("div",{className:ev().content,children:(0,n.jsx)("iframe",{className:_()({[ev().frame]:!0,[ev().loaded]:!a}),src:t,onLoad:()=>l(!1)})})]})})},eN=e=>{let{item:t}=e,[r,a]=(0,u.useState)(0),[l,i]=(0,u.useState)(!1),o=()=>{a(window.innerWidth)};return(0,u.useEffect)(()=>(a(window.innerWidth),window.addEventListener("resize",o,{passive:!0}),()=>{window.removeEventListener("resize",o)}),[]),(0,n.jsxs)("div",{className:ep().root,children:[l&&(0,n.jsx)(eC,{url:t.url,closePopup:()=>{let e=document.getElementsByClassName("BeaconFabButtonFrame");e.length&&(e[0].style.display="block"),i(!1)}}),(0,n.jsx)("div",{className:_()({[ep().overlay]:r<=850}),onClick:()=>(()=>{let e=document.getElementsByClassName("BeaconFabButtonFrame");e.length&&(e[0].style.display="none"),i(!0)})(),children:(0,n.jsx)("iframe",{className:ep().StoryItem,src:t.url})})]})},ek=e=>{let{stories:t}=e;return(0,n.jsx)("div",{children:(0,n.jsx)(J.Ay,{items:t.map(e=>({url:e.link})),title:"Our Stories",itemComponent:eN,card:{width:"295",height:"462"}})})};var eA=r(27210),ey=r.n(eA),eB=r(61013),eL=r(68372);let ew=e=>{let{featured:t}=e;if(!(null==t?void 0:t.article))return null;let{title:r,metaDescription:a,excerpt:l,slug:i,heroImage:o}=t.article,s=null==o?void 0:o.url,{t:u}=(0,c.B)();return(0,n.jsx)(eB.L,{variant:"no-bg",children:(0,n.jsxs)(eL.A,{className:ey().container,children:[(0,n.jsxs)("div",{className:ey().dataColumn,children:[(0,n.jsx)("h2",{className:ey().title,children:r}),(0,n.jsx)("p",{className:ey().description,children:null!=l?l:a}),(0,n.jsx)(en(),{href:"/".concat(i),locale:!1,prefetch:!1,children:(0,n.jsx)(A.A,{className:ey().readMoreButton,variant:"primary-light",children:u(d.k.ReadMore)})})]}),(0,n.jsx)("div",{className:ey().imageColumn,children:s&&(0,n.jsx)(f(),{src:s,alt:"preview",width:"609",height:"550",layout:"responsive",objectFit:"cover"})})]})})};var eP=r(20580),eF=r(33215),eT=r.n(eF);let eS=e=>{let{item:t}=e,{image:r,slug:a,description:l,name:i}=t;return(0,n.jsxs)("div",{className:eT().rootItem,children:[(0,n.jsx)("div",{className:eT().image,children:(0,n.jsx)(f(),{src:r.url,layout:"fill",objectFit:"cover",width:"85",height:"85"})}),(0,n.jsx)("div",{className:eT().name,children:(0,n.jsx)(en(),{href:"/medical-team/".concat(a),locale:!1,prefetch:!1,legacyBehavior:!0,children:i})}),(0,n.jsx)("div",{className:eT().description,children:(0,n.jsx)("p",{children:l})})]})};var eM=r(55376),eD=r.n(eM);let eI=e=>{let{items:t}=e;return(0,n.jsxs)("div",{className:eD().root,children:[(0,n.jsx)("h3",{children:"Meet our authors"}),(0,n.jsx)("div",{className:eD().itemsContainer,children:t&&(null==t?void 0:t.map(e=>(0,n.jsx)(eS,{item:e},e.id)))})]})};var eE=r(43006),eV=r(1618),ez=r(38879),eO=r(94666);let eR=(0,i.Ng)(e=>{var t,r;return{categoryData:null!=(r=null==(t=e.category)?void 0:t.data)?r:[]}})(e=>{var t;let{posts:r,pagination:a,categories:i,table:u,authors:h,categoryData:g,locale:_}=e,{t:m}=(0,c.B)(),{featuredBlock:x,quizBlock:p,videoBlock:b,storyBlock:v,trendingBlogs:j,featuredBlog:f,topReads:C,newsletterImage:N}=u,k=(0,o.A)(f),A=(null==x?void 0:x.filter(e=>null!==e.article).length)>=2,y=(null==j?void 0:j.filter(e=>null!==e.article).length)>0,B=k&&k.showArticle&&k.article.map(e=>null!==e.article),L=(null==C?void 0:C.filter(e=>null!==e.article).length)>0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.bV,{title:m(d.k.MetaTitle),description:m(d.k.MetaDescription),canonical:(0,eO.$i)(_,"/blog")}),(0,n.jsx)(s.Lb,{variant:"full-center-no-bg",children:(0,n.jsxs)(s.mc,{variant:"page-inner",children:[(0,n.jsx)("h1",{children:m(d.k.WelcomeToBlog)}),(0,n.jsx)("p",{children:m(d.k.WelcomeSub)})]})}),(0,n.jsxs)(s.mO,{variant:"page-inner",className:R().blogLandingWrapper,children:[A&&(0,n.jsx)(s.mc,{className:R().FeaturedBlockContainer,children:(0,n.jsx)(X,{articles:x.map(e=>e.article)})}),g&&g.length>0&&(0,n.jsx)(s.mc,{className:R().ConditionsContainer,children:(0,n.jsx)($,{conditions:g})}),(0,n.jsxs)(s.mc,{className:R().TrendingAndQuizContainer,children:[y&&(0,n.jsx)("div",{className:R().TrendingColumn,children:(0,n.jsx)(er,{trendings:j})}),p&&p[0]&&(0,n.jsx)("div",{className:R().QuizColumn,children:(0,n.jsx)(es,{article:p[0].article})})]}),b&&b[0]&&b[0].url&&(0,n.jsx)(s.mc,{className:R().VideoContainer,children:(0,n.jsx)(em,{item:b[0]})}),v&&v.length>0&&(0,n.jsx)(s.mc,{className:R().storyContainer,children:(0,n.jsx)(ek,{stories:v})}),B&&(0,n.jsx)("div",{className:R().FeaturedBlogDataContainer,children:(0,n.jsx)(ew,{featured:k.article[0]})}),L&&(0,n.jsx)(s.mc,{className:R().TopReadsContainer,children:(0,n.jsx)(eP.A,{topReads:C})}),(0,n.jsx)(s.mc,{children:(0,n.jsx)("div",{className:R().blogPostsListContainer,children:(0,n.jsx)(z,{blogs:r,pagination:a,categories:i,scrollToTop:!0})})}),h&&h.length>0&&(0,n.jsx)(s.mc,{children:(0,n.jsx)(eI,{items:h})}),(0,n.jsx)(eE.A,{image:null!=(t=null==N?void 0:N.url)?t:""})]}),(0,n.jsx)(eV.A,{}),(0,n.jsx)(ez.A,{})]})})},47019:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var a=r(37876),n=r(17978),l=r(58103),i=r.n(l),o=r(59059),s=r.n(o);let c=e=>{let{hasError:t,initialValue:r=!1,variant:l="normal",inputType:o="checkbox",disabled:c=!1,prefix:d="Checkbox",...u}=e;return(0,a.jsx)("div",{className:i()({[s().fieldNormal]:"normal"===l,[s().fieldListItem]:"list-item"===l,[s().fieldButton]:"button"===l,[s().error]:t,[u.className||""]:!0}),children:(0,a.jsxs)("div",{className:s().root,children:[("checkbox"===o||"custom-checkbox"===o||"blue-checkbox"===o)&&(0,a.jsx)(n.Sc,{field:u.field,id:u.id||u.field,className:i()(s().checkbox,"custom-checkbox"===o&&s().custom_checkbox,"blue-checkbox"===o&&s().blue_checkbox),initialValue:r,disabled:c,"data-test-id":"".concat(d,"-input"),mask:u.mask,validate:u.validate,validateOnBlur:u.validateOnBlur,validateOnChange:!!t,onChange:u.onChange}),("radio"===o||"custom-radio"===o)&&(0,a.jsx)(n.sx,{id:u.id||u.field,className:i()(s().checkbox,"custom-radio"===o?s().custom_checkbox:""),value:u.value,disabled:c,"data-test-id":"".concat(d,"-input"),mask:u.mask}),(0,a.jsx)("label",{"data-test-id":"".concat(d,"-label"),htmlFor:u.id||u.field,className:i()({[s().label]:"list-item"===l,[s().buttonLabel]:"button"===l,button:"button"===l,"button--white":"button"===l,"button--size-small":"button"===l}),children:(0,a.jsxs)("span",{className:i()({[s().content]:!0,button__content:"button"===l}),children:[u.labelFn&&u.labelFn(u.label),!u.labelFn&&u.label,u.jsxLabel&&u.jsxLabel]})}),t&&(0,a.jsx)("div",{className:s().checkboxError,children:(0,a.jsx)("small",{className:s().errorText,children:t})})]})})}},48352:function(e){e.exports=function(){"use strict";var e="undefined"!=typeof document&&document.documentMode,t={rootMargin:"0px",threshold:0,load:function(t){if("picture"===t.nodeName.toLowerCase()){var r=t.querySelector("img"),a=!1;null===r&&(r=document.createElement("img"),a=!0),e&&t.getAttribute("data-iesrc")&&(r.src=t.getAttribute("data-iesrc")),t.getAttribute("data-alt")&&(r.alt=t.getAttribute("data-alt")),a&&t.append(r)}if("video"===t.nodeName.toLowerCase()&&!t.getAttribute("data-src")&&t.children){for(var n=t.children,l=void 0,i=0;i<=n.length-1;i++)(l=n[i].getAttribute("data-src"))&&(n[i].src=l);t.load()}t.getAttribute("data-poster")&&(t.poster=t.getAttribute("data-poster")),t.getAttribute("data-src")&&(t.src=t.getAttribute("data-src")),t.getAttribute("data-srcset")&&t.setAttribute("srcset",t.getAttribute("data-srcset"));var o=",";if(t.getAttribute("data-background-delimiter")&&(o=t.getAttribute("data-background-delimiter")),t.getAttribute("data-background-image"))t.style.backgroundImage="url('"+t.getAttribute("data-background-image").split(o).join("'),url('")+"')";else if(t.getAttribute("data-background-image-set")){var s=t.getAttribute("data-background-image-set").split(o),c=s[0].substr(0,s[0].indexOf(" "))||s[0];c=-1===c.indexOf("url(")?"url("+c+")":c,1===s.length?t.style.backgroundImage=c:t.setAttribute("style",(t.getAttribute("style")||"")+"background-image: "+c+"; background-image: -webkit-image-set("+s+"); background-image: image-set("+s+")")}t.getAttribute("data-toggle-class")&&t.classList.toggle(t.getAttribute("data-toggle-class"))},loaded:function(){}};function r(e){e.setAttribute("data-loaded",!0)}var a=function(e){return"true"===e.getAttribute("data-loaded")},n=function(e){var t=1{e.exports={root:"Trending_root__1AZC5"}},55376:e=>{e.exports={itemsContainer:"MeetOurAuthors_itemsContainer__rOwbs",root:"MeetOurAuthors_root__hnvK_"}},56025:e=>{e.exports={filters:"Filter_filters__H6B6V",filterTrigger:"Filter_filterTrigger__w0W4v",filterList:"Filter_filterList__o_GxC",filterListActive:"Filter_filterListActive__qYm1e"}},56495:e=>{e.exports={root:"Article_root__5OdnY",primary:"Article_primary__XWqqQ",secondary:"Article_secondary__9csg7",wrapper:"Article_wrapper__ahOlu",profile:"Article_profile__YI3dM",picture:"Article_picture__L3tY0",header:"Article_header__SyPIQ",author:"Article_author__x_7pB",authorLink:"Article_authorLink__Pi2zb",content:"Article_content__xQr5h",buttonContainer:"Article_buttonContainer__Y3SOZ",readMoreButton:"Article_readMoreButton___dUBd",description:"Article_description__GuXrU"}},58349:(e,t,r)=>{"use strict";r.d(t,{d:()=>s});var a=r(37876);r(14232);var n=r(58103),l=r.n(n),i=r(56025),o=r.n(i);let s=e=>(0,a.jsx)("aside",{className:o().filters,"data-test-id":"Filter",children:(0,a.jsx)("div",{className:l()({[o().filterList]:!0,[o().filterListActive]:!0}),children:e.children})})},59059:e=>{e.exports={fieldListItem:"Checkbox_fieldListItem__xpmj8",label:"Checkbox_label__0Ihs5",checkbox:"Checkbox_checkbox__Vi_Rk",fieldNormal:"Checkbox_fieldNormal__y035_",fieldNormalStandalone:"Checkbox_fieldNormalStandalone__gvHg2",content:"Checkbox_content__1DoKp",root:"Checkbox_root__1ccq2",buttonLabel:"Checkbox_buttonLabel__r5rrl",custom_checkbox:"Checkbox_custom_checkbox__e1vwD",standaloneCheckbox:"Checkbox_standaloneCheckbox__5tP3U",blue_checkbox:"Checkbox_blue_checkbox__RE3UQ",fieldButton:"Checkbox_fieldButton__g9aEA",icon:"Checkbox_icon__ymXhi",iconChecked:"Checkbox_iconChecked__VR8Zb",error:"Checkbox_error__x5I9s",checkboxError:"Checkbox_checkboxError__r_vHs",standalone:"Checkbox_standalone__8rM31",standaloneLabel:"Checkbox_standaloneLabel__al6Vv",standaloneContent:"Checkbox_standaloneContent__Nki1B",standaloneCheckboxError:"Checkbox_standaloneCheckboxError__EgxWO"}},61261:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=function(e){return e&&e.length?e[0]:void 0}},64811:e=>{e.exports={root:"FeaturedBlockContainer_root__gzuJ2"}},67822:e=>{e.exports={videoWrapper:"VideoBlock_videoWrapper__e6mgC",root:"VideoBlock_root__xGbEf"}},68496:(e,t)=>{"use strict";var r=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;t.validate=function(e){if(!e||e.length>254||!r.test(e))return!1;var t=e.split("@");return!(t[0].length>64||t[1].split(".").some(function(e){return e.length>63}))}},71192:e=>{e.exports={prev:"BlogPagination_prev__ofYkc",next:"BlogPagination_next__GnhZ1",pagination:"BlogPagination_pagination__UdXGt","page-numbers":"BlogPagination_page-numbers__9YYcl",current:"BlogPagination_current___pVO8",dots:"BlogPagination_dots__2um8D",preventClick:"BlogPagination_preventClick__Wjt6Y"}},71979:e=>{e.exports={root:"StoryFullscreenView_root__yQ6TF",body:"StoryFullscreenView_body__VPZP0",header:"StoryFullscreenView_header__wjnjp",content:"StoryFullscreenView_content__y2g0h",frame:"StoryFullscreenView_frame__Fh1oo",loaded:"StoryFullscreenView_loaded__4ToTO"}},83174:e=>{e.exports={root:"BlogLandingPage_root__W8jSr",content:"BlogLandingPage_content__DM5Xq",filterCta:"BlogLandingPage_filterCta__30zpz",card:"BlogLandingPage_card__5VBaV",link:"BlogLandingPage_link__SOOvi",clearAllLink:"BlogLandingPage_clearAllLink__Z52jz",image:"BlogLandingPage_image__bidBb",filterContainer:"BlogLandingPage_filterContainer__oYRh4",filterTitle:"BlogLandingPage_filterTitle__ggHvG",cardContainer:"BlogLandingPage_cardContainer__1ry7X",ListHeader:"BlogLandingPage_ListHeader__93Hxr",HeaderTitle:"BlogLandingPage_HeaderTitle__5XKYJ",PaginationLabel:"BlogLandingPage_PaginationLabel__DDQ9V",toggleMoreCategories:"BlogLandingPage_toggleMoreCategories__FVLgW",filterContainerMobile:"BlogLandingPage_filterContainerMobile__TgtbH",mobileShowAllFilters:"BlogLandingPage_mobileShowAllFilters__6mP07"}},93835:e=>{e.exports={blogSearchContainer:"BlogLanding_blogSearchContainer__fterM",blogLandingWrapper:"BlogLanding_blogLandingWrapper__vYqpt",FeaturedBlockContainer:"BlogLanding_FeaturedBlockContainer__6Xs1H",ConditionsContainer:"BlogLanding_ConditionsContainer__dt8NR",TrendingColumn:"BlogLanding_TrendingColumn__e6lmD",QuizColumn:"BlogLanding_QuizColumn__1J_Lp",FeaturedBlogContainer:"BlogLanding_FeaturedBlogContainer__nVLpg",TrendingAndQuizContainer:"BlogLanding_TrendingAndQuizContainer__0DhUB",VideoContainer:"BlogLanding_VideoContainer__gaea9",storyContainer:"BlogLanding_storyContainer__pinNU",FeaturedBlogDataContainer:"BlogLanding_FeaturedBlogDataContainer__EpE5Q",TopReadsContainer:"BlogLanding_TopReadsContainer__xL4Ob",blogPostsListContainer:"BlogLanding_blogPostsListContainer__v9ghH"}},99109:(e,t,r)=>{"use strict";function a(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}r.d(t,{A:()=>a})}}]);