(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2281],{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,a)=>{"use strict";a.d(t,{A:()=>s});var n=a(37876);a(14232);var r=a(12965),l=a(26413),i=a(31574),o=a(19666);let s=e=>{var t;let{title:a,topReads:s}=e,c=s.filter(e=>(null==e?void 0:e.article)!==null).map(e=>{let{article:{title:t,heroImage:a,slug:n}}=e;return{title:t,image:null==a?void 0:a.url,url:n}}),{t:d}=(0,o.B)(),g=null!=(t=null!=a?a:d(i.k.MoreTopReads))?t:"";return(0,n.jsx)(r.Ay,{items:c,card:{width:"295",height:"295"},buttonText:d(i.k.ReadMore),title:g,itemComponent:l.A})}},23539:(e,t,a)=>{"use strict";a.d(t,{A:()=>eX});var n,r=a(37876),l=a(62867),i=a(35946),o=a(61261),s=a(39869),c=a(19666),d=a(31574),g=a(17564),u=a(14232),h=a(89099),_=a(58103),m=a.n(_),p=a(83174),x=a.n(p),b=a(47019),v=a(58349),j=a(65629),N=a(68827),f=a.n(N),M=a(64440),C=a(19546),y=a.n(C),B=a(37393);let k=e=>{let{author:t,updatedAt:a,readTime:n,title:l,link:i}=e;return(null==t?void 0:t.image)&&t.name?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:y().authorData,children:(0,r.jsxs)(j.A,{href:"/medical-team/".concat(t.link),className:y().authorLink,prefetch:!1,children:[(0,r.jsx)("div",{className:y().authorPicture,children:(0,r.jsx)(f(),{src:t.image,layout:"fill",objectFit:"cover",width:"64",height:"64"})}),(0,r.jsx)("p",{className:y().authorName,children:t.name})]})}),(0,r.jsx)("div",{className:y().postDate,children:(0,r.jsx)("p",{children:n?"".concat(a," ~ ").concat(n," min read"):"".concat(a)})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:y().postTitleWrapper,children:(0,r.jsx)(j.A,{href:"/".concat(i),prefetch:!1,children:(0,r.jsx)("h4",{className:m()({[y().postTitle]:!0,[y().lineClamp]:!0}),children:l})})}),(0,r.jsx)("div",{className:y().postDate,children:(0,r.jsx)("p",{children:n?"".concat(a," ~ ").concat(n," min read"):"".concat(a)})})]})},L=e=>{let{author:t,title:a,description:n,link:l}=e;return(null==t?void 0:t.name)&&t.image?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j.A,{href:"/".concat(l),prefetch:!1,children:(0,r.jsx)("h4",{className:m()({[y().postTitle]:!0,[y().lineClamp]:!0}),children:a})}),(0,r.jsx)("p",{className:m()({[y().postDescription]:!0,[y().lineClamp]:!0}),children:n})]}):(0,r.jsx)("p",{className:m()({[y().postDescription]:!0,[y().lineClamp]:!0}),children:n})},A=e=>{let{author:t,title:a,description:n,image:l,link:i,date:o,words:s}=e,{t:g}=(0,c.B)(),h=(0,u.useMemo)(()=>Math.ceil((null!=s?s:0)/200),[s]),_=o?(0,M.A)(o,"dd/MM/yy"):"";return(0,r.jsxs)("div",{className:y().root,children:[(0,r.jsx)("div",{className:y().postImage,children:(0,r.jsx)(j.A,{href:"/".concat(i),prefetch:!1,children:(0,r.jsx)(f(),{src:l,alt:"preview",layout:"fill",width:"190",height:"190",objectFit:"cover"})})}),(0,r.jsxs)("div",{className:y().content,children:[(0,r.jsx)("div",{className:y().header,children:(0,r.jsx)(k,{author:t,updatedAt:_,readTime:h,title:a,link:i})}),(0,r.jsx)("div",{children:(0,r.jsx)(L,{author:t,title:a,description:n,link:i})}),(0,r.jsx)("div",{className:y().actionsBtn,children:(0,r.jsx)(j.A,{href:"/".concat(i),prefetch:!1,children:(0,r.jsx)(B.A,{className:y().readMoreButton,variant:"primary-light",children:g(d.k.ReadMore)})})})]})]})},w=e=>{let{t}=(0,c.B)();return(0,r.jsxs)("div",{className:x().list,"data-test-id":"BlogPostList",children:[(0,r.jsxs)("div",{className:x().ListHeader,children:[(0,r.jsx)("h3",{className:x().HeaderTitle,children:t(d.k.AllBlogs)}),(0,r.jsx)("p",{className:x().PaginationLabel,children:"".concat(t(d.k.Viewing)," ").concat(e.posts.length," / ").concat(e.count)})]}),0===e.posts.length&&(0,r.jsx)("p",{children:"No results."}),e.posts.length>0&&e.posts.map(e=>{var t,a,n,l;let i={image:e.author_image,link:e.author_link,name:e.author_name};return(0,r.jsx)("div",{className:x().cardContainer,children:(0,r.jsx)(A,{author:i,title:null!=(t=e.title)?t:"",description:null!=(a=e.meta_description)?a:"",image:null!=(n=e.listing_image)?n:"",link:null!=(l=e.url_key)?l:"",date:new Date(e.updated_at),words:e.words},e.title)})})]})};var S=a(4305);function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{pagination:{pageNumber:t,pages:a},scrollToRoot:n}=e,l=(0,h.useRouter)(),{pathname:i,query:o}=l,s=t>0?j.A:u.Fragment,c=t!==a.length?j.A:u.Fragment,d=null==o?void 0:o.category,g=async(e,t)=>{e.preventDefault(),n&&n(),l.replace("".concat(t),void 0,{scroll:!1})},_=(0,u.useCallback)((e,t)=>{let a=Number(t);switch(e){case 1:a=Math.max(1,Number(t)-1);break;case 0:a=Number(t)+1}let n=new URLSearchParams({...o,pageNumber:String(a)});return"/blog/search?".concat(n.toString())},[o]),p=(0,u.useCallback)((e,t)=>{if("/blog/search"===i)return _(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"}},[_,i]);return(0,r.jsxs)("div",{className:m()(F().pagination),children:[(0,r.jsx)(s,{className:m()(F().prev,F()["page-numbers"],1===t&&F().preventClick),href:p(1,t),onClick:async e=>g(e,p(1,t)),children:(0,r.jsx)(B.A,{variant:"trans",icon:"center",className:m()(F().prev),"data-test-id":"BlogsLink.prev","aria-label":"Prev Posts",type:"button",children:(0,r.jsx)(S.A,{className:F().navIcons})})}),a.map(e=>{let n=a.length-t>2,l=[1,t-1,t,t+1,a.length];return(e!==a.length-1||n||l.push(e),l.includes(e))?(0,r.jsx)(j.A,{href:p(2,e),className:m()(F()["page-numbers"],e===Number(t)&&F().current,e===Number(t)&&F().preventClick),onClick:async t=>g(t,p(2,e)),prefetch:!1,children:e}):e===a.length-1&&n?(0,r.jsx)("span",{className:m()(F()["page-numbers"],F().dots),children:"…"}):null}),(0,r.jsx)(c,{href:p(0,t),onClick:async e=>g(e,p(0,t)),className:m()(F()["page-numbers"],F().next,t===a.length-1&&F().preventClick),children:(0,r.jsx)(B.A,{variant:"trans",icon:"center",className:m()(F().next),"data-test-id":"BlogsLink.next","aria-label":"Next Posts",type:"button",children:(0,r.jsx)(T,{})})})]})},V=e=>{let{blogs:t,pagination:a,categories:n,scrollToRoot:l}=e,i=t.filter(Boolean).map(e=>{var t,a,n,r,l,i;return{title:e.title,category_id:null==(t=e.category)?void 0:t.id,listing_image:null==(a=e.heroImage)?void 0:a.url,meta_description:e.metaDescription,url_key:e.slug,words:null==(n=e.contentWordCounter)?void 0:n.words,updated_at:e.updatedAt,author_name:null==(r=e.author)?void 0:r.name,author_link:null==(l=e.author)?void 0:l.slug,author_image:null==(i=e.author)?void 0:i.image.url}});return(0,r.jsxs)("div",{children:[(0,r.jsx)(w,{posts:i,categories:n,count:a.count},"05"),a.pages.length>1&&(0,r.jsx)(E,{pagination:a,scrollToRoot:l})]})},W=e=>{let{blogs:t,pagination:a,categories:n,scrollToTop:l}=e,{t:i}=(0,c.B)(),o=(0,h.useRouter)(),s=o.asPath.split("/")[3],_=(0,u.useRef)(null),p=(0,u.useRef)(null),[N,f]=(0,u.useState)(!1),[M,C]=(0,u.useState)(!1);(0,u.useEffect)(()=>{y(),window.addEventListener("resize",y,{passive:!0})},[]);let y=()=>{p&&p.current&&p.current.scrollHeight&&C(p.current.scrollHeight>110)},k=()=>{var e;let t=170*(window.innerWidth<850),a=null==(e=_.current)?void 0:e.getBoundingClientRect(),n=null==a?void 0:a.top;if(!n)return;let r=Math.floor(n+window.scrollY-t);window.scrollTo({top:r,behavior:"smooth"})};return(0,r.jsxs)("section",{ref:_,className:x().root,"data-test-id":"BlogLandingPage",children:[(0,r.jsxs)(v.d,{children:[(0,r.jsxs)("div",{className:x().filterTitle,children:[(0,r.jsx)("h4",{children:i(d.k.Filter)}),(0,r.jsx)(j.A,{className:m()([x().link,x().clearAllLink]),href:"/blog",onClick:e=>{e.preventDefault(),l&&k(),o.replace("/blog",void 0,{scroll:!1})},prefetch:!1,children:(0,r.jsx)("span",{children:i(g.Pd.ClearAll)})})]}),(0,r.jsx)("div",{className:m()([{[x().filterContainer]:!0,[x().filterContainerMobile]:M,[x().mobileShowAllFilters]:N}]),ref:p,children:n.map(e=>(0,r.jsx)(j.A,{className:x().link,href:"/blog/".concat(e.slug),onClick:t=>{var a;return a=e.slug,void(t.preventDefault(),l&&k(),o.replace("/blog/".concat(a),void 0,{scroll:!1}))},prefetch:!1,children:(0,r.jsx)(b.A,{label:e.name,field:"blog_filter_".concat(e.slug),initialValue:s===e.slug,variant:"button",value:e.slug},e.id)},e.slug))}),M&&(0,r.jsx)(B.A,{className:x().toggleMoreCategories,onClick:()=>f(!N),external:!0,variant:"trans",children:(0,r.jsx)("span",{children:N?"Hide categories":"View more categories"})})]}),(0,r.jsx)("div",{className:x().content,children:(0,r.jsx)(V,{blogs:t,pagination:a,categories:n,scrollToRoot:l?k:void 0})})]})};var R=a(93835),z=a.n(R),O=a(56495),Q=a.n(O),H=a(23813);let Z=e=>{var t,a,n;let{article:l,variant:i}=e,{t:o}=(0,c.B)();return(0,r.jsx)("div",{className:m()({[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,r.jsxs)("div",{className:Q().wrapper,children:[(0,r.jsx)("div",{className:Q().profile,children:l.author&&(0,r.jsxs)(j.A,{href:"/medical-team/".concat(l.author.slug),className:Q().authorLink,prefetch:!1,children:[(0,r.jsx)("div",{className:Q().picture,children:(0,r.jsx)(f(),{src:null==(a=l.author)?void 0:a.image.url,layout:"fill",objectFit:"cover",width:"64",height:"64"})}),(0,r.jsx)("p",{className:Q().author,children:null==(n=l.author)?void 0:n.name})]})}),(0,r.jsx)("div",{className:Q().header,children:(0,r.jsx)(j.A,{href:"/".concat(l.slug),prefetch:!1,children:(0,r.jsx)("h4",{children:l.title})})}),(0,r.jsxs)("div",{className:Q().content,children:[(0,r.jsx)("p",{className:Q().description,children:l.metaDescription}),(0,r.jsx)("div",{className:Q().buttonContainer,children:(0,r.jsx)(H.v,{to:"/".concat(l.slug),className:Q().readMoreButton,variant:"primary-light",children:o(d.k.ReadPost)})})]})]})})};var G=a(64811),Y=a.n(G);let X=e=>{let{articles:t}=e;if(!t||(null==t?void 0:t.length)<2)return null;let a=t.shift(),n=t.shift();return a||n?(0,r.jsxs)("div",{className:Y().root,children:[a&&(0,r.jsx)(Z,{article:a,variant:"primary"}),n&&(0,r.jsx)(Z,{article:n,variant:"secondary"})]}):null};var U=a(5114),q=a.n(U),J=a(12965),K=a(26413);let $=e=>{let{conditions:t}=e,{t:a}=(0,c.B)();if(!t)return null;let n=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,r.jsx)("div",{className:q().root,children:(0,r.jsx)("div",{"data-test-id":"BlogConditionsList",className:q().conditionsList,children:(0,r.jsx)(J.Ay,{items:n,title:a(d.k.Conditions),itemComponent:K.A,buttonText:"Learn More",card:{width:"295",height:"295"}})})})};var ee=a(49156),et=a.n(ee);let ea=e=>{let{trendings:t}=e,{t:a}=(0,c.B)();return(0,r.jsxs)("div",{className:et().root,children:[(0,r.jsx)("h3",{children:a(d.k.TrendingBlogs)}),(0,r.jsx)("div",{className:et().cardContainer,children:t.length>0&&t.map(e=>{var t,a,n,l,i,o,s,c,d,g;let{article:u}=e,h={link:null==u||null==(t=u.author)?void 0:t.slug,name:null==u||null==(a=u.author)?void 0:a.name,image:null==u||null==(l=u.author)||null==(n=l.image)?void 0:n.url};return(0,r.jsx)(A,{author:h,title:null!=(s=null==u?void 0:u.title)?s:"",description:null!=(c=null==u?void 0:u.metaDescription)?c:"",image:null!=(d=null==u||null==(i=u.heroImage)?void 0:i.url)?d:"",link:null!=(g=null==u?void 0:u.slug)?g:"",date:(null==u?void 0:u.updatedAt)?new Date(u.updatedAt):void 0,words:null==u||null==(o=u.contentWordCounter)?void 0:o.words},null==u?void 0:u.title)})})]})};var en=a(48230),er=a.n(en),el=a(18496),ei=a.n(el),eo=a(80913);let es=e=>{let{article:t}=e;if(!t)return null;let{slug:a,title:n,metaDescription:l,excerpt:i,heroImage:o}=t,s=null==o?void 0:o.url,g=null!=i?i:l,{t:u}=(0,c.B)();return(0,r.jsx)("div",{className:ei().root,children:(0,r.jsx)(eo.Z,{className:ei().card,link:a,img:(0,r.jsx)("div",{className:ei().imageWrapper,children:s&&(0,r.jsx)(f(),{src:s,alt:"preview",width:"400",height:"336"})}),content:e=>{let{title:n}=e;return(0,r.jsxs)("div",{className:ei().content,children:[(0,r.jsx)(er(),{href:"/".concat(a),locale:!1,prefetch:!1,className:n,children:(0,r.jsx)("h3",{className:ei().title,children:t.title})}),(0,r.jsx)("p",{className:ei().description,children:g}),(0,r.jsx)("div",{className:"actionsContainer",children:(0,r.jsx)(er(),{href:"/".concat(a),locale:!1,prefetch:!1,children:(0,r.jsx)(B.A,{className:ei().readMoreButton,variant:"primary-light",children:u(d.k.ReadMore)})})})]})}},n)})};var ec=a(45536),ed=a(13819),eg=a.n(ed);let eu=e=>(0,r.jsx)("div",{className:eg().root,style:{maxWidth:e.width},children:(0,r.jsx)(ec.V,{className:eg().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 eh=a(67822),e_=a.n(eh);let em=e=>{let{item:t}=e;return(0,r.jsxs)("div",{className:e_().root,children:[(0,r.jsx)("h3",{children:t.title}),(0,r.jsxs)("p",{children:[t.description," "]}),(0,r.jsx)("div",{className:e_().videoWrapper,children:(0,r.jsx)(eu,{id:t.video,width:1029})})]})};var ep=a(42158),ex=a.n(ep),eb=a(71979),ev=a.n(eb),ej=a(1820),eN=a(48091);let ef=e=>{let{url:t,closePopup:a}=e,[n,l]=(0,u.useState)(!0);return(0,r.jsx)("div",{className:ev().root,children:(0,r.jsxs)("div",{className:ev().body,children:[!1===n&&(0,r.jsx)("div",{className:ev().header,children:(0,r.jsx)(B.A,{variant:"trans",onClick:a,size:"small","aria-label":"Dismiss alert",children:(0,r.jsx)(ej.A,{color:"white"})})}),!0===n&&(0,r.jsx)(eN.a,{}),(0,r.jsx)("div",{className:ev().content,children:(0,r.jsx)("iframe",{className:m()({[ev().frame]:!0,[ev().loaded]:!n}),src:t,onLoad:()=>l(!1)})})]})})},eM=e=>{let{item:t}=e,[a,n]=(0,u.useState)(0),[l,i]=(0,u.useState)(!1),o=()=>{n(window.innerWidth)};return(0,u.useEffect)(()=>(n(window.innerWidth),window.addEventListener("resize",o,{passive:!0}),()=>{window.removeEventListener("resize",o)}),[]),(0,r.jsxs)("div",{className:ex().root,children:[l&&(0,r.jsx)(ef,{url:t.url,closePopup:()=>{let e=document.getElementsByClassName("BeaconFabButtonFrame");e.length&&(e[0].style.display="block"),i(!1)}}),(0,r.jsx)("div",{className:m()({[ex().overlay]:a<=850}),onClick:()=>(()=>{let e=document.getElementsByClassName("BeaconFabButtonFrame");e.length&&(e[0].style.display="none"),i(!0)})(),children:(0,r.jsx)("iframe",{className:ex().StoryItem,src:t.url})})]})},eC=e=>{let{stories:t}=e;return(0,r.jsx)("div",{children:(0,r.jsx)(J.Ay,{items:t.map(e=>({url:e.link})),title:"Our Stories",itemComponent:eM,card:{width:"295",height:"462"}})})};var ey=a(27210),eB=a.n(ey),ek=a(61013),eL=a(68372);let eA=e=>{let{featured:t}=e;if(!(null==t?void 0:t.article))return null;let{title:a,metaDescription:n,excerpt:l,slug:i,heroImage:o}=t.article,s=null==o?void 0:o.url,{t:g}=(0,c.B)();return(0,r.jsx)(ek.L,{variant:"no-bg",children:(0,r.jsxs)(eL.A,{className:eB().container,children:[(0,r.jsxs)("div",{className:eB().dataColumn,children:[(0,r.jsx)("h2",{className:eB().title,children:a}),(0,r.jsx)("p",{className:eB().description,children:null!=l?l:n}),(0,r.jsx)(er(),{href:"/".concat(i),locale:!1,prefetch:!1,children:(0,r.jsx)(B.A,{className:eB().readMoreButton,variant:"primary-light",children:g(d.k.ReadMore)})})]}),(0,r.jsx)("div",{className:eB().imageColumn,children:s&&(0,r.jsx)(f(),{src:s,alt:"preview",width:"609",height:"550",layout:"responsive",objectFit:"cover"})})]})})};var ew=a(20580),eS=a(33215),eP=a.n(eS);let eT=e=>{let{item:t}=e,{image:a,slug:n,description:l,name:i}=t;return(0,r.jsxs)("div",{className:eP().rootItem,children:[(0,r.jsx)("div",{className:eP().image,children:(0,r.jsx)(f(),{src:a.url,layout:"fill",objectFit:"cover",width:"85",height:"85"})}),(0,r.jsx)("div",{className:eP().name,children:(0,r.jsx)(er(),{href:"/medical-team/".concat(n),locale:!1,prefetch:!1,legacyBehavior:!0,children:i})}),(0,r.jsx)("div",{className:eP().description,children:(0,r.jsx)("p",{children:l})})]})};var eI=a(55376),eF=a.n(eI);let eD=e=>{let{items:t}=e;return(0,r.jsxs)("div",{className:eF().root,children:[(0,r.jsx)("h3",{children:"Meet our authors"}),(0,r.jsx)("div",{className:eF().itemsContainer,children:t&&(null==t?void 0:t.map(e=>(0,r.jsx)(eT,{item:e},e.id)))})]})};var eE=a(43006),eV=a(1618),eW=a(38879),eR=a(94666),ez=a(54587),eO=a.n(ez),eQ=a(61019),eH=a(95416),eZ=a.n(eH);function eG(e){let t=e.replace(/^blog\/?/,"");return(0,eQ.Yp)("/blog/".concat(t))}let eY=e=>{var t,a,n,i;let{posts:o,pagination:s,categories:g,table:u,authors:h,locale:_}=e,{t:m}=(0,c.B)(),p=o.slice(0,3),x=o.slice(3),b=x.length>0,{newsletterImage:v}=u,j=null!=(a=null==s?void 0:s.pageNumber)?a:1,N=null!=(n=null==s||null==(t=s.pages)?void 0:t.length)?n:1,f=N<=7?null!=(i=null==s?void 0:s.pages)?i:[1]:(()=>{let e=Math.max(1,j-Math.floor(3.5)),t=Math.min(N,e+7-1);t-e+1<7&&(e=Math.max(1,t-7+1));let a=[];for(let n=e;n<=t;n++)a.push(n);return a})();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.bV,{title:m(d.k.MetaTitle),description:m(d.k.MetaDescription),canonical:(0,eR.$i)(_,"/blog")}),(0,r.jsxs)("main",{className:eZ().root,children:[(0,r.jsx)("section",{className:eZ().hero,children:(0,r.jsx)("div",{className:eZ().container,children:(0,r.jsxs)("div",{className:eZ().heroInner,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:eZ().kicker,children:"MailMyMeds Health Hub"}),(0,r.jsx)("h1",{className:eZ().title,children:m(d.k.WelcomeToBlog)}),(0,r.jsx)("p",{className:eZ().subtitle,children:m(d.k.WelcomeSub)})]}),(0,r.jsxs)("div",{className:eZ().heroStats,children:[(0,r.jsxs)("div",{className:eZ().heroStatCard,children:[(0,r.jsx)("p",{className:eZ().heroStatLabel,children:"Expert-written articles"}),(0,r.jsx)("p",{className:eZ().heroStatValue,children:(null==s?void 0:s.count)||"20+"})]}),(0,r.jsxs)("div",{className:eZ().heroStatCard,children:[(0,r.jsx)("p",{className:eZ().heroStatLabel,children:"Health topics covered"}),(0,r.jsx)("p",{className:eZ().heroStatValue,children:g.length||"10+"})]})]})]})})}),(0,r.jsx)("section",{className:eZ().content,children:(0,r.jsx)("div",{className:eZ().container,children:(0,r.jsxs)("div",{className:eZ().contentGrid,children:[(0,r.jsxs)("div",{children:[g.length>0&&(0,r.jsx)("div",{className:eZ().filters,children:g.map(e=>(0,r.jsx)(er(),{href:(0,eQ.Yp)("/blog/category/".concat(e.slug)),className:eZ().filterPill,children:e.name},e.id))}),(0,r.jsxs)("div",{className:eZ().postsGrid,children:[p.map(e=>{var t,a;return(0,r.jsxs)("article",{className:eZ().postCard,children:[(null==(t=e.heroImage)?void 0:t.url)&&(0,r.jsx)("div",{className:eZ().postImageWrap,children:(0,r.jsx)(eO(),{src:e.heroImage.url,alt:e.heroImage.alt||e.title,fill:!0,sizes:"(min-width: 1024px) 340px, 100vw",className:eZ().postImage})}),(0,r.jsxs)("div",{className:eZ().postContent,children:[e.category&&(0,r.jsx)("span",{className:eZ().categoryTag,children:e.category.name}),(0,r.jsx)("h2",{className:eZ().postTitle,children:e.title}),(0,r.jsxs)("div",{className:eZ().postMetaRow,children:[(0,r.jsx)("span",{children:(0,M.A)(new Date(e.updatedAt),"d MMM yyyy")}),(null==(a=e.contentWordCounter)?void 0:a.readingTime)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:eZ().metaDot}),(0,r.jsx)("span",{children:e.contentWordCounter.readingTime})]})]}),(0,r.jsx)("p",{className:eZ().postExcerpt,children:e.excerpt||e.preview}),(0,r.jsxs)(er(),{href:eG(e.slug),className:eZ().readMore,children:["Read article",(0,r.jsx)("span",{className:eZ().readMoreIcon,children:"↗"})]})]})]},e.slug)}),b&&x.map(e=>{var t;return(0,r.jsx)("article",{className:eZ().postCard,children:(0,r.jsxs)("div",{className:eZ().postContent,children:[e.category&&(0,r.jsx)("span",{className:eZ().categoryTag,children:e.category.name}),(0,r.jsx)("h2",{className:eZ().postTitle,children:e.title}),(0,r.jsxs)("div",{className:eZ().postMetaRow,children:[(0,r.jsx)("span",{children:(0,M.A)(new Date(e.updatedAt),"d MMM yyyy")}),(null==(t=e.contentWordCounter)?void 0:t.readingTime)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:eZ().metaDot}),(0,r.jsx)("span",{children:e.contentWordCounter.readingTime})]})]}),(0,r.jsx)("p",{className:eZ().postExcerpt,children:e.excerpt||e.preview}),(0,r.jsxs)(er(),{href:eG(e.slug),className:eZ().readMore,children:["Read article",(0,r.jsx)("span",{className:eZ().readMoreIcon,children:"↗"})]})]})},e.slug)})]}),f&&f.length>1&&(0,r.jsxs)("nav",{className:eZ().pagination,"aria-label":"Blog pagination",children:[(0,r.jsx)(er(),{href:j<=2?"/blog":"/blog/page/".concat(j-1),className:"".concat(eZ().pageButton," ").concat(1===j?eZ().pageButtonDisabled:""),"aria-disabled":1===j,children:"Previous"}),f.map(e=>(0,r.jsx)(er(),{href:1===e?"/blog":"/blog/page/".concat(e),className:"".concat(eZ().pageButton," ").concat(e===j?eZ().pageButtonActive:""),"aria-current":e===j?"page":void 0,children:e},e)),(0,r.jsx)(er(),{href:"/blog/page/".concat(j+1),className:"".concat(eZ().pageButton," ").concat(j>=N?eZ().pageButtonDisabled:""),"aria-disabled":j>=N,children:"Next"})]})]}),(0,r.jsxs)("aside",{className:eZ().sidebar,children:[h&&h.length>0&&(0,r.jsxs)("section",{className:eZ().sidebarSection,children:[(0,r.jsx)("h3",{className:eZ().sidebarTitle,children:"Our clinical writers"}),(0,r.jsx)("div",{className:eZ().sidebarList,children:h.slice(0,4).map(e=>(0,r.jsx)("span",{className:eZ().sidebarItemLink,children:e.name},e.id))})]}),(null==u?void 0:u.trendingBlogs)&&u.trendingBlogs.length>0&&(0,r.jsxs)("section",{className:eZ().sidebarSection,children:[(0,r.jsx)("h3",{className:eZ().sidebarTitle,children:"Trending right now"}),(0,r.jsx)("div",{className:eZ().sidebarList,children:u.trendingBlogs.slice(0,5).map(e=>(0,r.jsx)(er(),{href:eG(e.article.slug),className:eZ().sidebarItemLink,children:e.article.title},e.id))})]})]})]})})}),(null==v?void 0:v.url)&&(0,r.jsx)("section",{className:eZ().newsletterSection,children:(0,r.jsx)("div",{className:eZ().newsletterInner})})]})]})},eX=(0,i.Ng)(e=>{var t,a;return{categoryData:null!=(a=null==(t=e.category)?void 0:t.data)?a:[]}})(e=>{var t;let{posts:a,pagination:n,categories:i,table:u,authors:h,categoryData:_,locale:m}=e;if("ukmeds"===g.YY.MMyM)return(0,r.jsx)(eY,{posts:a,pagination:n,categories:i,table:u,authors:h,categoryData:_,locale:m});let{t:p}=(0,c.B)(),{featuredBlock:x,quizBlock:b,videoBlock:v,storyBlock:j,trendingBlogs:N,featuredBlog:f,topReads:M,newsletterImage:C}=u,y=(0,o.A)(f),B=(null==x?void 0:x.filter(e=>null!==e.article).length)>=2,k=(null==N?void 0:N.filter(e=>null!==e.article).length)>0,L=y&&y.showArticle&&y.article.map(e=>null!==e.article),A=(null==M?void 0:M.filter(e=>null!==e.article).length)>0;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.bV,{title:p(d.k.MetaTitle),description:p(d.k.MetaDescription),canonical:(0,eR.$i)(m,"/blog")}),(0,r.jsx)(s.Lb,{variant:"full-center-no-bg",children:(0,r.jsxs)(s.mc,{variant:"page-inner",children:[(0,r.jsx)("h1",{children:p(d.k.WelcomeToBlog)}),(0,r.jsx)("p",{children:p(d.k.WelcomeSub)})]})}),(0,r.jsxs)(s.mO,{variant:"page-inner",className:z().blogLandingWrapper,children:[B&&(0,r.jsx)(s.mc,{className:z().FeaturedBlockContainer,children:(0,r.jsx)(X,{articles:x.map(e=>e.article)})}),_&&_.length>0&&(0,r.jsx)(s.mc,{className:z().ConditionsContainer,children:(0,r.jsx)($,{conditions:_})}),(0,r.jsxs)(s.mc,{className:z().TrendingAndQuizContainer,children:[k&&(0,r.jsx)("div",{className:z().TrendingColumn,children:(0,r.jsx)(ea,{trendings:N})}),b&&b[0]&&(0,r.jsx)("div",{className:z().QuizColumn,children:(0,r.jsx)(es,{article:b[0].article})})]}),v&&v[0]&&v[0].url&&(0,r.jsx)(s.mc,{className:z().VideoContainer,children:(0,r.jsx)(em,{item:v[0]})}),j&&j.length>0&&(0,r.jsx)(s.mc,{className:z().storyContainer,children:(0,r.jsx)(eC,{stories:j})}),L&&(0,r.jsx)("div",{className:z().FeaturedBlogDataContainer,children:(0,r.jsx)(eA,{featured:y.article[0]})}),A&&(0,r.jsx)(s.mc,{className:z().TopReadsContainer,children:(0,r.jsx)(ew.A,{topReads:M})}),(0,r.jsx)(s.mc,{children:(0,r.jsx)("div",{className:z().blogPostsListContainer,children:(0,r.jsx)(W,{blogs:a,pagination:n,categories:i,scrollToTop:!0})})}),h&&h.length>0&&(0,r.jsx)(s.mc,{children:(0,r.jsx)(eD,{items:h})}),(0,r.jsx)(eE.A,{image:null!=(t=null==C?void 0:C.url)?t:""})]}),(0,r.jsx)(eV.A,{}),(0,r.jsx)(eW.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,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(54945),r=a(99109);function l(e){(0,r.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,n.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"}},47019:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var n=a(37876),r=a(17978),l=a(58103),i=a.n(l),o=a(59059),s=a.n(o);let c=e=>{let{hasError:t,initialValue:a=!1,variant:l="normal",inputType:o="checkbox",disabled:c=!1,prefix:d="Checkbox",...g}=e;return(0,n.jsx)("div",{className:i()({[s().fieldNormal]:"normal"===l,[s().fieldListItem]:"list-item"===l,[s().fieldButton]:"button"===l,[s().error]:t,[g.className||""]:!0}),children:(0,n.jsxs)("div",{className:s().root,children:[("checkbox"===o||"custom-checkbox"===o||"blue-checkbox"===o)&&(0,n.jsx)(r.Sc,{field:g.field,id:g.id||g.field,className:i()(s().checkbox,"custom-checkbox"===o&&s().custom_checkbox,"blue-checkbox"===o&&s().blue_checkbox),initialValue:a,disabled:c,"data-test-id":"".concat(d,"-input"),mask:g.mask,validate:g.validate,validateOnBlur:g.validateOnBlur,validateOnChange:!!t,onChange:g.onChange}),("radio"===o||"custom-radio"===o)&&(0,n.jsx)(r.sx,{id:g.id||g.field,className:i()(s().checkbox,"custom-radio"===o?s().custom_checkbox:""),value:g.value,disabled:c,"data-test-id":"".concat(d,"-input"),mask:g.mask}),(0,n.jsx)("label",{"data-test-id":"".concat(d,"-label"),htmlFor:g.id||g.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,n.jsxs)("span",{className:i()({[s().content]:!0,button__content:"button"===l}),children:[g.labelFn&&g.labelFn(g.label),!g.labelFn&&g.label,g.jsxLabel&&g.jsxLabel]})}),t&&(0,n.jsx)("div",{className:s().checkboxError,children:(0,n.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 a=t.querySelector("img"),n=!1;null===a&&(a=document.createElement("img"),n=!0),e&&t.getAttribute("data-iesrc")&&(a.src=t.getAttribute("data-iesrc")),t.getAttribute("data-alt")&&(a.alt=t.getAttribute("data-alt")),n&&t.append(a)}if("video"===t.nodeName.toLowerCase()&&!t.getAttribute("data-src")&&t.children){for(var r=t.children,l=void 0,i=0;i<=r.length-1;i++)(l=r[i].getAttribute("data-src"))&&(r[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 a(e){e.setAttribute("data-loaded",!0)}var n=function(e){return"true"===e.getAttribute("data-loaded")},r=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,a)=>{"use strict";a.d(t,{d:()=>s});var n=a(37876);a(14232);var r=a(58103),l=a.n(r),i=a(56025),o=a.n(i);let s=e=>(0,n.jsx)("aside",{className:o().filters,"data-test-id":"Filter",children:(0,n.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,a)=>{"use strict";a.d(t,{A:()=>n});let n=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 a=/^[-!#$%&'*+\/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||!a.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"}},95416:e=>{e.exports={root:"MMyMBlogLanding_root__a2bl4",hero:"MMyMBlogLanding_hero__PBPA7",container:"MMyMBlogLanding_container__Vcfad",heroInner:"MMyMBlogLanding_heroInner__k3uKn",kicker:"MMyMBlogLanding_kicker__kUH7t",title:"MMyMBlogLanding_title__GOtZ4",subtitle:"MMyMBlogLanding_subtitle__m1RuG",heroStats:"MMyMBlogLanding_heroStats___flXJ",heroStatCard:"MMyMBlogLanding_heroStatCard__7bWnm",heroStatLabel:"MMyMBlogLanding_heroStatLabel__9bNhO",heroStatValue:"MMyMBlogLanding_heroStatValue__Wu4Ja",content:"MMyMBlogLanding_content__Cq0eU",contentGrid:"MMyMBlogLanding_contentGrid__AtPNS",filters:"MMyMBlogLanding_filters__Ou3dl",filterPill:"MMyMBlogLanding_filterPill__pnv9U",filterPillActive:"MMyMBlogLanding_filterPillActive__wD9Nx",postsGrid:"MMyMBlogLanding_postsGrid__MKvjY",postCard:"MMyMBlogLanding_postCard__xhvIe",postImageWrap:"MMyMBlogLanding_postImageWrap__oUgVi",postImage:"MMyMBlogLanding_postImage__r8VFB",postMetaRow:"MMyMBlogLanding_postMetaRow__LjRLg",metaDot:"MMyMBlogLanding_metaDot__8Y7kq",postContent:"MMyMBlogLanding_postContent__N32R1",categoryTag:"MMyMBlogLanding_categoryTag___Y4vF",postTitle:"MMyMBlogLanding_postTitle__z58xC",postExcerpt:"MMyMBlogLanding_postExcerpt__OtvaS",readMore:"MMyMBlogLanding_readMore__r7fM6",readMoreIcon:"MMyMBlogLanding_readMoreIcon__Ecc0Z",sidebar:"MMyMBlogLanding_sidebar__LugZN",sidebarSection:"MMyMBlogLanding_sidebarSection__f2xQo",sidebarTitle:"MMyMBlogLanding_sidebarTitle__CIxS0",sidebarList:"MMyMBlogLanding_sidebarList__WOoO_",sidebarItemLink:"MMyMBlogLanding_sidebarItemLink__A8wva",newsletterSection:"MMyMBlogLanding_newsletterSection__5rZDo",newsletterInner:"MMyMBlogLanding_newsletterInner__0VDXA",pagination:"MMyMBlogLanding_pagination__JezCU",pageButton:"MMyMBlogLanding_pageButton__WPrNH",pageButtonActive:"MMyMBlogLanding_pageButtonActive__hMjuS",pageButtonDisabled:"MMyMBlogLanding_pageButtonDisabled___brzK"}},99109:(e,t,a)=>{"use strict";function n(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}a.d(t,{A:()=>n})}}]);