(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7812],{4629:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var l=r(37876),s=r(17564),a=r(89099),i=r(19666),n=r(94666);let o=e=>{let{price:t,showFree:r=!0,...o}=e,{t:c}=(0,i.B)(),{locale:d}=(0,a.useRouter)(),u=parseFloat(String(t)),h=(0,n.RC)(d),m=Math.abs(u).toLocaleString(h,{minimumFractionDigits:2,maximumFractionDigits:2});return 0===u&&r?(0,l.jsx)("span",{...o,children:c(s.Pd.Free)}):(0,l.jsxs)("span",{...o,children:[u<0?"-":"",(0,n.$g)(m,d)]})}},9600:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var l,s=r(14232);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{e.exports={title:"BlogAuthor_title__D3tWE",image:"BlogAuthor_image__lsu8u",description:"BlogAuthor_description__qBDFD"}},12747:e=>{e.exports={answer:"quiz_answer__qBGLL",text:"quiz_text__jhcIE"}},16243:(e,t,r)=>{"use strict";r.d(t,{x:()=>a});var l=r(37876),s=r(14232);let a=e=>{let{children:t}=e,[r,a]=(0,s.useState)(!1);return((0,s.useEffect)(()=>{let e=()=>{a(!0),window.removeEventListener("scroll",e)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),r)?(0,l.jsx)("div",{children:t}):null}},19016:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var l,s=r(14232);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{e.exports={root:"Badge_root__01kF_"}},39195:e=>{e.exports={authorContainer:"PostHeader_authorContainer__dIY6n",badges:"PostHeader_badges__k2Lrq",readTimeAndDate:"PostHeader_readTimeAndDate__UuYYi",relatedProductContainer:"PostHeader_relatedProductContainer__F1ryz"}},45660:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog/[slug]",function(){return r(74192)}])},50427:e=>{e.exports={header:"BlogPostPage_header__zkLVy",iframeOuter:"BlogPostPage_iframeOuter__wdPba",boundary:"BlogPostPage_boundary__avNJ1",limitedWidth:"BlogPostPage_limitedWidth__eF8Zo","instagram-blockquote":"BlogPostPage_instagram-blockquote__mi4yG",videoContainer:"BlogPostPage_videoContainer__XSXRp",video:"BlogPostPage_video__JifVh",customerExperienceTitle:"BlogPostPage_customerExperienceTitle___qvDz",customerExperienceContainer:"BlogPostPage_customerExperienceContainer__ezC7X",customerExperienceCard:"BlogPostPage_customerExperienceCard__PACJS",customerExperienceCardVideo:"BlogPostPage_customerExperienceCardVideo__AFVzC",customerExperienceCardTiktok:"BlogPostPage_customerExperienceCardTiktok__hBfMX",tiktokIframe:"BlogPostPage_tiktokIframe__3Cr2t",blogPageWrapper:"BlogPostPage_blogPageWrapper__LT5KW",layout:"BlogPostPage_layout__05Asq",layoutGrid:"BlogPostPage_layoutGrid__CyhRc",sectionsColumn:"BlogPostPage_sectionsColumn__rl_4l",contentColumn:"BlogPostPage_contentColumn__uliSX",contentColumnBottom:"BlogPostPage_contentColumnBottom__M_Bel",sidebarColumn:"BlogPostPage_sidebarColumn__5CC_e",contentHeader:"BlogPostPage_contentHeader__vwU2E",postTitle:"BlogPostPage_postTitle__BmsaW",postImage:"BlogPostPage_postImage__DOIRu",sticky:"BlogPostPage_sticky__0TV2h",backLinkContainer:"BlogPostPage_backLinkContainer__AyIhO",backLink:"BlogPostPage_backLink__RhU7o",postHeaderContainer:"BlogPostPage_postHeaderContainer__Y_rHj",selectableHeadings:"BlogPostPage_selectableHeadings__nDii3",webstory:"BlogPostPage_webstory__4r0iV",mainContent:"BlogPostPage_mainContent__WG3Px",blogAuthorContainer:"BlogPostPage_blogAuthorContainer__55iCx"}},54344:e=>{e.exports={root:"ReadProgressBar_root__QUU_l",bar:"ReadProgressBar_bar__J203T",back:"ReadProgressBar_back__uKNQQ",progress:"ReadProgressBar_progress__aH_wp"}},61019:(e,t,r)=>{"use strict";r.d(t,{Yp:()=>a,bP:()=>s,i5:()=>l});let l=e=>{let t=document.createElement("a");t.href=e;let r=t.pathname.split("/").filter(Boolean);return["index.php","magento"].indexOf(r[0])>-1?"/".concat(r.slice(1).join("/")):r.includes("uk-meds-plus")?"/customer/meds-plus":"/".concat(r.join("/"))};function s(e){return e&&"string"==typeof e?e.replace(/(https?:\/\/|\/\/)(.+?)\/media/g,"/media"):""}let a=e=>e.replace(/([^:]\/)\/+/g,"$1")},64902:e=>{e.exports={root:"Sections_root__sh_W_",item:"Sections_item__aZVUN",active:"Sections_active__M5gtO",sticky:"Sections_sticky__YR0QE"}},65934:e=>{e.exports={price:"RelatedProducts_price__EwfnY",name:"RelatedProducts_name__7wytp",sidebar:"RelatedProducts_sidebar__7VrpM",sticky:"RelatedProducts_sticky__Yy_tY",headerMobile:"RelatedProducts_headerMobile__GBy5n",items:"RelatedProducts_items__sQvEP",item:"RelatedProducts_item__Q9p4T",image:"RelatedProducts_image__DxOjw",title:"RelatedProducts_title__LzwSn",content:"RelatedProducts_content__t1eOz",bulletPoints:"RelatedProducts_bulletPoints__4wbHM",viewButton:"RelatedProducts_viewButton__SxZvS",main:"RelatedProducts_main__CIwTM",action:"RelatedProducts_action__e7akD",subItem:"RelatedProducts_subItem__OpFSe"}},74192:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSG:()=>eB,default:()=>eN});var l,s,a=r(37876),i=r(62867),n=r(50427),o=r.n(n),c=r(58103),d=r.n(c),u=r(86121),h=r(68827),m=r.n(h),_=r(14232),g=r(71287),x=r(25038),p=r(5663),v=r(45105),j=r.n(v),P=r(45536),w=r(16243),C=r(12747),f=r.n(C);let k=e=>{let{questions:t}=e;return(0,a.jsx)(a.Fragment,{children:t.map(e=>{let{text:t,answers:r}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{children:t}),r.map(e=>{let{text:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:f().answer,children:[(0,a.jsx)("input",{type:"radio"}),(0,a.jsx)("div",{className:f().text,children:t})]},t),(0,a.jsx)("br",{})]})}),(0,a.jsx)("br",{})]},t)})})},b=e=>{let{questions:t}=e;return(0,a.jsx)(a.Fragment,{children:t.map(e=>{let{text:t,answers:r}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{children:t}),r.map(e=>{let{text:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:f().answer,children:[(0,a.jsx)("input",{type:"radio"}),(0,a.jsx)("div",{className:f().text,children:t})]},t),(0,a.jsx)("br",{})]})}),(0,a.jsx)("br",{})]},t)})})};var B=r(17564);let N=e=>{let{postSchema:t}=e;return"ukmeds"!==B.YY.UK?null:(0,a.jsx)(j(),{id:"article",type:"application/ld+json",dangerouslySetInnerHTML:{__html:t}})};var y=r(64902),R=r.n(y);let A=e=>{let{items:t,sticky:r,active:l,navigateToSection:s}=e;return(0,a.jsx)("ul",{className:d()({[R().root]:!0,[R().sticky]:null!=r&&r}),children:t.map(e=>(0,a.jsx)("li",{className:d()({[R().item]:!0,[R().active]:l===e.key}),children:(0,a.jsx)("a",{onClick:t=>{var r;return r=e.key,void(t.preventDefault(),s(r))},href:"",children:e.title})},e.key))})};var E=r(39195),L=r.n(E),S=r(97633),T=r.n(S),I=r(65629);function H(){return(H=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{author:t,readTime:r,updatedAt:l,slug:s}=e,{t:i}=(0,q.B)();return(0,a.jsxs)("div",{className:T().root,children:[(0,a.jsxs)("div",{className:T().data,children:[(0,a.jsx)(I.A,{href:"/medical-team/".concat(t.slug),className:T().link,prefetch:!1,children:(0,a.jsx)("div",{className:T().picture,children:(0,a.jsx)(m(),{src:t.image.url,layout:"fill",objectFit:"cover",width:"128",height:"128"})})}),(0,a.jsxs)("div",{className:T().nameAndDateContainer,children:[(0,a.jsx)(I.A,{href:"/medical-team/".concat(t.slug),className:T().link,prefetch:!1,children:(0,a.jsx)("p",{className:T().name,children:t.name})}),(0,a.jsx)("p",{className:T().dateData,children:r?"".concat(i(z.k.LastUpdatedAt)," ").concat(l," \xb7 ").concat(r," ").concat(i(z.k.MinRead)):"".concat(i(z.k.LastUpdatedAt)," ").concat(l)})]})]}),(0,a.jsxs)("div",{className:T().shareTo,children:[(0,a.jsx)(F.A,{url:"".concat("https://www.ukmeds.co.uk","/").concat(s),title:i(z.k.WhatsappShare),className:T().socialItem,children:(0,a.jsx)(M,{height:18,width:18})}),(0,a.jsx)(V.A,{url:"".concat("https://www.ukmeds.co.uk","/").concat(s),title:i(z.k.TwitterShare),className:T().socialItem,children:(0,a.jsx)(O.A,{height:18,width:18})}),(0,a.jsx)(W.A,{url:"".concat("https://www.ukmeds.co.uk","/").concat(s),title:i(z.k.LinkedinShare),className:T().socialItem,children:(0,a.jsx)(D.A,{height:18,width:18})})]})]})};var X=r(20712),Y=r.n(X),G=r(61019);let J=e=>{let{title:t,slug:r}=e;return(0,a.jsx)(I.A,{href:(0,G.Yp)("/blog/".concat(r)),className:Y().root,prefetch:!1,children:(0,a.jsx)("span",{children:t})})};var Q=r(65934),Z=r.n(Q),K=r(37393),$=r(95025),ee=r(4629);let et=e=>"sidebar"===e.variant?(0,a.jsx)("h4",{className:Z().title,children:e.children}):"header-mobile"===e.variant?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)("h3",{className:d()(Z().title,"blogHeader"),children:e.children}),er=e=>{var t;let{item:r}=e,{small_image:l,url_key:s,name:i,price:n,bullet_points:o}=r,{t:c}=(0,q.B)(),d=null!=(t=null==l?void 0:l.url)?t:null;return(0,a.jsx)("div",{className:Z().subItem,children:(0,a.jsxs)("div",{className:Z().item,children:[d&&(0,a.jsx)("div",{className:Z().image,children:(0,a.jsx)(I.A,{href:"/".concat(s),children:(0,a.jsx)("a",{children:(0,a.jsx)(m(),{src:d,alt:"preview",layout:"fill",width:105,height:154,objectFit:"cover"})})})}),(0,a.jsxs)("div",{className:Z().content,children:[(0,a.jsx)("div",{className:Z().name,children:(0,a.jsx)(I.A,{href:"/".concat(s),prefetch:!1,children:(0,a.jsx)("p",{children:i})})}),(0,a.jsxs)("div",{className:Z().price,children:["From ",(0,a.jsx)(ee.A,{price:n.regularPrice.amount.value})]}),o&&(0,a.jsx)("div",{className:Z().bulletPoints,children:(0,a.jsx)($.g,{render:e=>{let{Svg:t}=e;return o.slice(0,3).map(e=>(0,a.jsxs)("li",{children:[t,e]},e))}})}),(0,a.jsx)("div",{className:Z().action,children:(0,a.jsx)(I.A,{href:"/".concat(s),prefetch:!1,children:(0,a.jsx)(K.A,{className:Z().viewButton,variant:"primary-light",children:c(B.Pd.ViewProduct)})})})]})]})})},el=e=>{let{items:t,sticky:r,variant:l}=e,{t:s}=(0,q.B)();return(0,a.jsxs)("div",{className:d()({[Z().root]:!0,[Z().sidebar]:"sidebar"===l,[Z().main]:"main"===l,[Z().headerMobile]:"header-mobile"===l,[Z().sticky]:r&&"main"!==l&&"header-mobile"!==l}),children:[(0,a.jsx)(et,{variant:l,children:s(z.k.RelatedProducts)}),(0,a.jsx)("div",{className:Z().items,children:t.map(e=>(0,a.jsx)(er,{item:e},e.url_key))})]})},es=e=>{let{author:t,readTimeWords:r,relatedProducts:l,category:s,updatedAt:i,slug:n}=e,{t:o}=(0,q.B)(),c=r?Math.ceil(r/200):0;return(0,a.jsxs)("div",{className:L().root,children:[l&&(0,a.jsx)("div",{className:L().relatedProductContainer,children:(0,a.jsx)(el,{items:l,variant:"header-mobile"})}),t&&(0,a.jsx)("div",{className:L().authorContainer,children:(0,a.jsx)(U,{author:t,updatedAt:i,readTime:c,slug:n})}),(0,a.jsxs)("div",{className:L().badges,children:[s&&(0,a.jsx)(J,{title:s.name,slug:"".concat(s.slug)}),(i||c)&&(0,a.jsxs)("div",{className:L().readTimeAndDate,children:[i&&(0,a.jsxs)("span",{children:[o(z.k.LastUpdatedAt)," ",i]}),c&&(0,a.jsxs)("span",{children:[c," ",o(z.k.MinRead)]})]})]})]})};var ea=r(4305),ei=r(77176),en=r.n(ei);let eo=e=>{let{posts:t,displayAuthor:r=!1}=e,{t:l}=(0,q.B)();return(0,a.jsxs)("div",{className:en().root,children:[(0,a.jsxs)("h4",{className:en().title,children:[" ",l(z.k.RelatedBlogPosts)," "]}),t.map(e=>{var t;return(0,a.jsx)(ed,{author:e.author,slug:e.slug,title:e.title,url:null==(t=e.heroImage)?void 0:t.url,displayAuthor:r},e.slug)})]})},ec=e=>{let{link:t,url:r,size:l}=e;return(0,a.jsx)(I.A,{href:"/".concat(t),prefetch:!1,children:(0,a.jsx)("a",{children:(0,a.jsx)(m(),{src:r,alt:"preview",layout:"fill",width:l,height:l,objectFit:"cover"})})})},ed=e=>{let{slug:t,url:r,author:l,title:s,displayAuthor:i}=e,{t:n}=(0,q.B)();return(0,a.jsxs)("div",{className:en().blogPostItem,children:[(0,a.jsx)("div",{className:en().postImage,children:(0,a.jsx)(ec,{link:t,url:r,size:69})}),(0,a.jsxs)("div",{className:en().content,children:[(0,a.jsx)("div",{className:en().header,children:l&&i&&(0,a.jsx)("div",{className:en().authorData,children:(0,a.jsxs)(I.A,{href:"/medical-team/".concat(l.slug),className:en().authorLink,prefetch:!1,children:[(0,a.jsx)("div",{className:en().authorPicture,children:(0,a.jsx)(m(),{src:l.image.url,layout:"fill",objectFit:"cover",width:"64",height:"64"})}),(0,a.jsx)("p",{className:en().authorName,children:l.name})]})})}),(0,a.jsx)("div",{children:(0,a.jsx)(I.A,{className:en().postTitle,href:"/".concat(t),prefetch:!1,children:(0,a.jsx)("p",{children:s})})}),(0,a.jsx)("div",{className:en().actionsBtn,children:(0,a.jsx)(I.A,{href:"/".concat(t),prefetch:!1,children:(0,a.jsx)("a",{children:n(z.k.ReadMore)})})})]})]})};var eu=r(54344),eh=r.n(eu);let em=e=>{let{calculateBy:t,reference:r}=e,[l,s]=(0,_.useState)(0),i=()=>{let{height:e}=r.current.getBoundingClientRect(),t=r.current.getBoundingClientRect().top,l=0;t>0&&(t=0),-1*t>r.current.getBoundingClientRect().height&&(t=-1*r.current.getBoundingClientRect().height),-1*t>0&&(l=100/(e/(-1*t))),s(Math.ceil(l))},n=()=>{let e=document.documentElement,t=Math.ceil(e.scrollTop/(e.scrollHeight-e.clientHeight)*100);t!==l&&s(t)};return(0,_.useEffect)(()=>"reference"===t&&r?(i(),window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)):(n(),window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n))),(0,a.jsx)("div",{className:eh().root,children:(0,a.jsx)("div",{className:eh().bar,children:(0,a.jsx)("div",{className:eh().back,children:(0,a.jsx)("div",{className:eh().progress,style:{width:"".concat(l,"%")}})})})})};var e_=r(12965),eg=r(26413);let ex=e=>{let{posts:t}=e;t.map(e=>e);let r=null==t?void 0:t.map(e=>{let{title:t,slug:r,heroImage:l}=e;return{title:t,url:r,image:null==l?void 0:l.url}}),{t:l}=(0,q.B)();return(0,a.jsx)(e_.Ay,{items:r,card:{width:"295",height:"295"},buttonText:l(z.k.ReadPost),title:l(z.k.RelatedBlogPosts),itemComponent:eg.A})};var ep=r(43006),ev=r(1618),ej=r(10334),eP=r.n(ej);let ew=e=>{let{author:t}=e;return(0,a.jsxs)("div",{className:eP().root,children:[(0,a.jsx)("h3",{className:d()(["blogHeader",eP().title]),children:"Blog author"}),(0,a.jsx)(m(),{src:t.image.url,width:85,height:85,className:eP().image}),(0,a.jsx)("p",{className:eP().name,children:t.name}),(0,a.jsx)("p",{className:eP().description,children:t.description})]})};var eC=r(38879),ef=r(64440),ek=r(94666);let eb=e=>{var t,r,l,s;let{post:n,posts:c,postSchema:h,products:v,table:C,locale:f}=e,{t:B}=(0,q.B)(),[y,R]=(0,_.useState)([]),[E,L]=(0,_.useState)([]),[S,T]=(0,_.useState)(""),{content:H,author:M,slug:O}=n,{items:D}=v,{newsletterImage:F}=C,V=(0,_.useRef)(null),W=(0,_.useRef)(null),U=(0,_.useRef)(S),X=(0,_.useRef)(E),Y=(0,_.useMemo)(()=>(0,a.jsx)(g.d6,{data:H,customNodeRules:[(0,x.bq)(p.Vq,e=>{let{node:t,children:r,key:l}=e,s="h".concat(t.level);if(2===t.level){let e=t.children[0].value,i=null==e?void 0:e.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,"");return y.find(e=>e.key===i)||R(t=>[...t,{title:e,key:i}]),(0,a.jsx)(s,{id:i,children:r},l)}return(0,a.jsx)(s,{children:r},l)})],renderBlock:e=>{var t,r,l,s,i,n,c,u,h;let{record:_}=e;switch(_.__typename){case"ImageBlockRecord":return(0,a.jsx)("div",{className:d()(o().boundary,o().limitedWidth),children:(0,a.jsx)(m(),{src:null==_||null==(t=_.image)?void 0:t.url,width:null!=(i=null==_||null==(r=_.image)?void 0:r.width)?i:760,height:null!=(n=null==_||null==(l=_.image)?void 0:l.height)?n:526,layout:"responsive",objectPosition:"0 0",alt:null==_||null==(s=_.image)?void 0:s.alt})});case"JsonBlockRecord":return(0,a.jsx)(j(),{id:_.id,type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(null==_?void 0:_.json)}});case"VideoBlockRecord":if(!(null==_?void 0:_.video))return null;return(0,a.jsx)("div",{className:d()(o().videoContainer,o().limitedWidth),children:(0,a.jsx)(P.V,{src:_.video,title:_.title,className:o().video,frameBorder:_.frameBorder,allowFullScreen:_.allowFullScreen,width:610,type:"video"})});case"WebstoryBlockRecord":if(!_.link)return null;return(0,a.jsx)("div",{className:d()(o().iframeOuter,o().limitedWidth,o().webstory),children:(0,a.jsx)(P.V,{className:o().iframe,src:_.link,width:360,type:"webstory"})});case"TableBlockRecord":let g=null==_||null==(c=_.table)?void 0:c.columns,x=null==_||null==(u=_.table)?void 0:u.hasColumnHeaders,p=null==_||null==(h=_.table)?void 0:h.data;return(0,a.jsx)("div",{className:o().boundary,children:(0,a.jsx)("table",{children:(0,a.jsxs)("tbody",{children:[x&&(0,a.jsx)("tr",{children:null==g?void 0:g.map(e=>(0,a.jsx)("td",{children:(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:e})})},e))}),null==p?void 0:p.map(e=>(0,a.jsx)("tr",{children:null==g?void 0:g.map(t=>{let r=e[t];return(0,a.jsx)("td",{dangerouslySetInnerHTML:{__html:r}},t)})},e.id))]})})});case"CustomerExperienceBlockRecord":if(!(null==_?void 0:_.video))return null;return(0,a.jsx)("div",{className:o().customerExperienceContainer,children:null==_?void 0:_.video.map(e=>{let{video:t,title:r,frameBorder:l,allowFullScreen:s}=e;return(0,a.jsxs)("div",{className:d()(o().customerExperienceCard,o().customerExperienceCardVideo),children:[r&&(0,a.jsx)("h3",{children:r}),(0,a.jsx)(P.V,{src:t,title:r,className:o().video,frameBorder:l,allowFullScreen:s})]})})});case"TiktokBlockRecord":if(!(null==_?void 0:_.tiktok))return null;return(0,a.jsx)("div",{className:d()(o().customerExperienceContainer,o()["scroll-scroll"]),children:null==_?void 0:_.tiktok.map(e=>{let{dataVideoId:t,title:r}=e;return t?(0,a.jsx)("div",{className:d()(o().customerExperienceCard,o().customerExperienceCardTiktok,"no-quote"),children:(0,a.jsx)(P.V,{src:t,title:r,className:o().tiktokIframe,frameBorder:0,allowFullScreen:!0})}):null})});case"IframeBlockRecord":if(!_.link)return null;return(0,a.jsx)("div",{children:(0,a.jsx)(P.V,{src:_.link,title:_.title||"iframe",width:_.width||"500",height:_.height||"760",frameBorder:_.frameBorder||"0",allowFullScreen:_.allowFullScreen||!0})});case"InstagramBlockRecord":if(!_.link)return null;return(0,a.jsxs)(w.x,{children:[(0,a.jsx)("blockquote",{className:d()("instagram-media",o()["instagram-blockquote"]),"data-instgrm-captioned":!0,"data-instgrm-permalink":_.link,"data-instgrm-version":"14"}),(0,a.jsx)(j(),{strategy:"afterInteractive",src:"https://www.instagram.com/embed.js",async:!0})]});case"QuizBlockRecord":let{title:v,description:C,quizType:f,question:B}=_;return(0,a.jsxs)(a.Fragment,{children:[v&&(0,a.jsx)("h3",{children:v}),C&&(0,a.jsx)("p",{children:C}),(0,a.jsx)("div",{children:(()=>{switch(f){case"Point":return(0,a.jsx)(k,{questions:B});case"Group":return(0,a.jsx)(b,{questions:B});default:return null}})()})]});default:return null}}}),[H]),G=()=>{if(!V.current)return;let e=X.current.find(e=>e.element.getBoundingClientRect().top-10<=0);e&&U.current!==e.headingId&&(e=>{U.current=e,T(e)})(e.headingId)};(0,_.useEffect)(()=>(window.addEventListener("scroll",G,{passive:!0}),()=>{window.removeEventListener("scroll",G)}),[]),(0,_.useEffect)(()=>{if(!V.current)return;let e=new ResizeObserver(e=>{if(e[0]){let t=Array.from(e[0].target.querySelectorAll("h1[id], h2[id], h3[id], h4[id], h5[id], h6[id]")).map(e=>({element:e,headingId:e.getAttribute("id")}));t.reverse(),(e=>{X.current=e,L(e)})(t)}});return e.observe(V.current),()=>{e.disconnect()}},[V]);let J=v.items.slice(0,3),Q=n.updatedAt?(0,ef.A)(new Date(n.updatedAt),"MMMM dd, yyyy"):void 0;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(em,{calculateBy:"reference",reference:W}),(0,a.jsx)(i.bV,{title:n.metaTitle||void 0,titleTemplate:"%s",description:n.metaDescription||void 0,openGraph:{images:[{url:(null==(t=n.heroImage)?void 0:t.url)||" ",alt:n.metaTitle||" "}]},canonical:(0,ek.$i)(f,n.slug)}),h&&(0,a.jsx)(N,{postSchema:h}),(0,a.jsx)("div",{className:o().blogPageWrapper,children:(0,a.jsxs)("div",{className:d()(o().layout,o().layoutGrid),children:[(0,a.jsx)("div",{className:o().sectionsColumn,children:(0,a.jsx)(A,{items:y,active:S,navigateToSection:e=>{let t=E.find(t=>t.headingId===e);t&&window.scrollBy({behavior:"smooth",left:0,top:t.element.getBoundingClientRect().top})},sticky:!0})}),(0,a.jsx)("div",{className:o().contentColumn,ref:W,children:(0,a.jsxs)("div",{className:o().mainContent,children:[(0,a.jsx)("div",{className:o().backLinkContainer,children:(0,a.jsxs)(I.A,{href:"/blog",className:o().backLink,prefetch:!1,children:[(0,a.jsx)(ea.A,{width:9,height:9})," ",(0,a.jsx)("span",{children:B(z.k.AllBlogs)})]})}),(0,a.jsx)("div",{className:o().contentHeader,children:M&&(0,a.jsx)("div",{className:o().postHeaderContainer,children:(0,a.jsx)(es,{author:M,relatedProducts:D,readTimeWords:null!=(l=null==(r=n.contentWordCounter)?void 0:r.words)?l:4e3,updatedAt:Q,category:n.category,slug:null!=O?O:""})})}),(0,a.jsxs)("div",{className:o().content,children:[(0,a.jsx)("h1",{children:n.title}),(0,a.jsx)("div",{ref:V,className:"rich-text",children:Y})]})]})}),(0,a.jsxs)("div",{className:o().sidebarColumn,children:[c&&0!==c.length&&(0,a.jsx)(eo,{posts:null==c?void 0:c.slice(0,5)}),0!==J.length&&(0,a.jsx)(el,{items:J,sticky:!0,variant:"sidebar"})]})]})}),(0,a.jsxs)(u.mO,{variant:"page-inner",children:[(0,a.jsx)("div",{className:o().layout,children:(0,a.jsxs)("div",{className:o().contentColumnBottom,children:[J&&0!==J.length&&(0,a.jsx)(el,{items:J,variant:"main"}),M&&(0,a.jsx)("div",{className:o().blogAuthorContainer,children:(0,a.jsx)(ew,{author:M})})]})}),(0,a.jsxs)(u.mc,{children:[(0,a.jsx)(ep.A,{image:null!=(s=null==F?void 0:F.url)?s:""}),c&&0!==c.length&&(0,a.jsx)(ex,{posts:c})]})]}),(0,a.jsx)(ev.A,{}),(0,a.jsx)(eC.A,{})]})};var eB=!0;let eN=e=>{let{post:t,posts:r,postSchema:l,items:s,table:i,locale:n}=e;return(0,a.jsx)(eb,{post:t,posts:r,postSchema:l,products:{title:(null==t?void 0:t.products_title)||"",items:s},table:i,locale:n})}},77176:e=>{e.exports={blogPostItem:"RelatedBlogPosts_blogPostItem__lJBeg",title:"RelatedBlogPosts_title__0muCU",header:"RelatedBlogPosts_header__6_Ktu",postTitle:"RelatedBlogPosts_postTitle__c2C1n",content:"RelatedBlogPosts_content__Oghrs",postImage:"RelatedBlogPosts_postImage__Q2cfr",postDate:"RelatedBlogPosts_postDate__adids",actionsBtn:"RelatedBlogPosts_actionsBtn__EslWd",authorLink:"RelatedBlogPosts_authorLink__WWfP4",authorName:"RelatedBlogPosts_authorName__D5s6L",authorPicture:"RelatedBlogPosts_authorPicture__J4HUX",authorData:"RelatedBlogPosts_authorData__T6olY",lineClamp:"RelatedBlogPosts_lineClamp__qXMys"}},95025:(e,t,r)=>{"use strict";r.d(t,{g:()=>d,A:()=>u});var l,s=r(37876),a=r(14232),i=r(58103),n=r.n(i);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{size:t="normal",...r}=e;return(0,s.jsx)("ul",{className:n()({"tick-list":!0,"tick-list--large":"large"===t}),children:r.render&&r.render({Svg:(0,s.jsx)(c,{})})})},u=d},97633:e=>{e.exports={root:"PostAuthor_root__ydrdz",link:"PostAuthor_link__wN0_Q",name:"PostAuthor_name__XV1df",dateData:"PostAuthor_dateData__al5tG",nameAndDateContainer:"PostAuthor_nameAndDateContainer__wH1dI",picture:"PostAuthor_picture__2AbOx",data:"PostAuthor_data__TUJkm",shareTo:"PostAuthor_shareTo__ucrXw",socialItem:"PostAuthor_socialItem__X9WkX"}}},e=>{e.O(0,[7978,8242,4440,5796,1618,3534,6143,636,6593,8792],()=>e(e.s=45660)),_N_E=e.O()}]);