(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7812],{4629:(e,t,l)=>{"use strict";l.d(t,{A:()=>o});var r=l(37876),s=l(17564),a=l(89099),i=l(19666),n=l(94666);let o=e=>{let{price:t,showFree:l=!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&&l?(0,r.jsx)("span",{...o,children:c(s.Pd.Free)}):(0,r.jsxs)("span",{...o,children:[u<0?"-":"",(0,n.$g)(m,d)]})}},9600:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var r,s=l(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"}},12895:(e,t,l)=>{"use strict";l.r(t),l.d(t,{__N_SSG:()=>eM,default:()=>eR});var r,s,a=l(37876),i=l(62867),n=l(50427),o=l.n(n),c=l(58103),d=l.n(c),u=l(39869),h=l(68827),m=l.n(h),_=l(14232),g=l(71287),x=l(25038),j=l(5663),v=l(45105),p=l.n(v),P=l(45536),b=l(16243),k=l(12747),B=l.n(k);let w=e=>{let{questions:t}=e;return(0,a.jsx)(a.Fragment,{children:t.map(e=>{let{text:t,answers:l}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{children:t}),l.map(e=>{let{text:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:B().answer,children:[(0,a.jsx)("input",{type:"radio"}),(0,a.jsx)("div",{className:B().text,children:t})]},t),(0,a.jsx)("br",{})]})}),(0,a.jsx)("br",{})]},t)})})},N=e=>{let{questions:t}=e;return(0,a.jsx)(a.Fragment,{children:t.map(e=>{let{text:t,answers:l}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{children:t}),l.map(e=>{let{text:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:B().answer,children:[(0,a.jsx)("input",{type:"radio"}),(0,a.jsx)("div",{className:B().text,children:t})]},t),(0,a.jsx)("br",{})]})}),(0,a.jsx)("br",{})]},t)})})};var y=l(17564);let f=e=>{let{postSchema:t}=e;return"ukmeds"!==y.YY.UK?null:(0,a.jsx)(p(),{id:"article",type:"application/ld+json",dangerouslySetInnerHTML:{__html:t}})};var C=l(64902),M=l.n(C);let R=e=>{let{items:t,sticky:l,active:r,navigateToSection:s}=e;return(0,a.jsx)("ul",{className:d()({[M().root]:!0,[M().sticky]:null!=l&&l}),children:t.map(e=>(0,a.jsx)("li",{className:d()({[M().item]:!0,[M().active]:r===e.key}),children:(0,a.jsx)("a",{onClick:t=>{var l;return l=e.key,void(t.preventDefault(),s(l))},href:"",children:e.title})},e.key))})};var A=l(39195),S=l.n(A),E=l(97633),I=l.n(E),T=l(65629);function L(){return(L=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{author:t,readTime:l,updatedAt:r,slug:s}=e,{t:i}=(0,q.B)();return(0,a.jsxs)("div",{className:I().root,children:[(0,a.jsxs)("div",{className:I().data,children:[(0,a.jsx)(T.A,{href:"/medical-team/".concat(t.slug),className:I().link,prefetch:!1,children:(0,a.jsx)("div",{className:I().picture,children:(0,a.jsx)(m(),{src:t.image.url,layout:"fill",objectFit:"cover",width:"128",height:"128"})})}),(0,a.jsxs)("div",{className:I().nameAndDateContainer,children:[(0,a.jsx)(T.A,{href:"/medical-team/".concat(t.slug),className:I().link,prefetch:!1,children:(0,a.jsx)("p",{className:I().name,children:t.name})}),(0,a.jsx)("p",{className:I().dateData,children:l?"".concat(i(z.k.LastUpdatedAt)," ").concat(r," \xb7 ").concat(l," ").concat(i(z.k.MinRead)):"".concat(i(z.k.LastUpdatedAt)," ").concat(r)})]})]}),(0,a.jsxs)("div",{className:I().shareTo,children:[(0,a.jsx)(W.A,{url:"".concat("https://www.ukmeds.co.uk","/").concat(s),title:i(z.k.WhatsappShare),className:I().socialItem,children:(0,a.jsx)(H,{height:18,width:18})}),(0,a.jsx)(D.A,{url:"".concat("https://www.ukmeds.co.uk","/").concat(s),title:i(z.k.TwitterShare),className:I().socialItem,children:(0,a.jsx)(F.A,{height:18,width:18})}),(0,a.jsx)(O.A,{url:"".concat("https://www.ukmeds.co.uk","/").concat(s),title:i(z.k.LinkedinShare),className:I().socialItem,children:(0,a.jsx)(V.A,{height:18,width:18})})]})]})};var U=l(20712),Y=l.n(U),X=l(61019);let J=e=>{let{title:t,slug:l}=e;return(0,a.jsx)(T.A,{href:(0,X.Yp)("/blog/".concat(l)),className:Y().root,prefetch:!1,children:(0,a.jsx)("span",{children:t})})};var Q=l(65934),Z=l.n(Q),K=l(37393),$=l(95025),ee=l(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}),el=e=>{var t;let{item:l}=e,{small_image:r,url_key:s,name:i,price:n,bullet_points:o}=l,{t:c}=(0,q.B)(),d=null!=(t=null==r?void 0:r.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)(T.A,{href:"/".concat(s),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)(T.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)(T.A,{href:"/".concat(s),prefetch:!1,children:(0,a.jsx)(K.A,{className:Z().viewButton,variant:"primary-light",children:c(y.Pd.ViewProduct)})})})]})]})})},er=e=>{let{items:t,sticky:l,variant:r}=e,{t:s}=(0,q.B)();return(0,a.jsxs)("div",{className:d()({[Z().root]:!0,[Z().sidebar]:"sidebar"===r,[Z().main]:"main"===r,[Z().headerMobile]:"header-mobile"===r,[Z().sticky]:l&&"main"!==r&&"header-mobile"!==r}),children:[(0,a.jsx)(et,{variant:r,children:s(z.k.RelatedProducts)}),(0,a.jsx)("div",{className:Z().items,children:t.map(e=>(0,a.jsx)(el,{item:e},e.url_key))})]})},es=e=>{let{author:t,readTimeWords:l,relatedProducts:r,category:s,updatedAt:i,slug:n}=e,{t:o}=(0,q.B)(),c=l?Math.ceil(l/200):0;return(0,a.jsxs)("div",{className:S().root,children:[r&&(0,a.jsx)("div",{className:S().relatedProductContainer,children:(0,a.jsx)(er,{items:r,variant:"header-mobile"})}),t&&(0,a.jsx)("div",{className:S().authorContainer,children:(0,a.jsx)(G,{author:t,updatedAt:i,readTime:c,slug:n})}),(0,a.jsxs)("div",{className:S().badges,children:[s&&(0,a.jsx)(J,{title:s.name,slug:"".concat(s.slug)}),(i||c)&&(0,a.jsxs)("div",{className:S().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=l(4305),ei=l(77176),en=l.n(ei);let eo=e=>{let{posts:t,displayAuthor:l=!1}=e,{t:r}=(0,q.B)();return(0,a.jsxs)("div",{className:en().root,children:[(0,a.jsxs)("h4",{className:en().title,children:[" ",r(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:l},e.slug)})]})},ec=e=>{let{link:t,url:l,size:r}=e;return(0,a.jsx)(T.A,{href:"/".concat(t),prefetch:!1,children:(0,a.jsx)(m(),{src:l,alt:"preview",layout:"fill",width:r,height:r,objectFit:"cover"})})},ed=e=>{let{slug:t,url:l,author:r,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:l,size:69})}),(0,a.jsxs)("div",{className:en().content,children:[(0,a.jsx)("div",{className:en().header,children:r&&i&&(0,a.jsx)("div",{className:en().authorData,children:(0,a.jsxs)(T.A,{href:"/medical-team/".concat(r.slug),className:en().authorLink,prefetch:!1,children:[(0,a.jsx)("div",{className:en().authorPicture,children:(0,a.jsx)(m(),{src:r.image.url,layout:"fill",objectFit:"cover",width:"64",height:"64"})}),(0,a.jsx)("p",{className:en().authorName,children:r.name})]})})}),(0,a.jsx)("div",{children:(0,a.jsx)(T.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)(T.A,{href:"/".concat(t),prefetch:!1,children:n(z.k.ReadMore)})})]})]})};var eu=l(54344),eh=l.n(eu);let em=e=>{let{calculateBy:t,reference:l}=e,[r,s]=(0,_.useState)(0),i=()=>{let{height:e}=l.current.getBoundingClientRect(),t=l.current.getBoundingClientRect().top,r=0;t>0&&(t=0),-1*t>l.current.getBoundingClientRect().height&&(t=-1*l.current.getBoundingClientRect().height),-1*t>0&&(r=100/(e/(-1*t))),s(Math.ceil(r))},n=()=>{let e=document.documentElement,t=Math.ceil(e.scrollTop/(e.scrollHeight-e.clientHeight)*100);t!==r&&s(t)};return(0,_.useEffect)(()=>"reference"===t&&l?(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(r,"%")}})})})})};var e_=l(12965),eg=l(26413);let ex=e=>{let{posts:t}=e;t.map(e=>e);let l=null==t?void 0:t.map(e=>{let{title:t,slug:l,heroImage:r}=e;return{title:t,url:l,image:null==r?void 0:r.url}}),{t:r}=(0,q.B)();return(0,a.jsx)(e_.Ay,{items:l,card:{width:"295",height:"295"},buttonText:r(z.k.ReadPost),title:r(z.k.RelatedBlogPosts),itemComponent:eg.A})};var ej=l(43006),ev=l(1618),ep=l(10334),eP=l.n(ep);let eb=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 ek=l(38879),eB=l(64440),ew=l(94666),eN=l(98210),ey=l.n(eN);let ef=e=>{var t,l,r,s,n;let{post:o,posts:c,postSchema:u,products:h,locale:v}=e,{t:k}=(0,q.B)(),{items:B}=h,y=(o.updatedAt?(0,eB.A)(new Date(o.updatedAt),"d MMM yyyy"):void 0)||o._publishedAt&&(0,eB.A)(new Date(o._publishedAt),"d MMM yyyy"),C=(0,_.useMemo)(()=>o.content?(0,a.jsx)(g.d6,{data:o.content,customNodeRules:[(0,x.bq)(j.Vq,e=>{let{node:t,children:l,key:r}=e,s="h".concat(t.level);return(0,a.jsx)(s,{children:l},r)})],renderBlock:e=>{var t,l,r,s;let{record:i}=e;switch(i.__typename){case"ImageBlockRecord":{let e=i.image;if(!(null==e?void 0:e.url))return null;return(0,a.jsx)("div",{className:d()(ey().blockWrapper,ey().blockImage),children:(0,a.jsx)(m(),{src:e.url,width:null!=(t=e.width)?t:760,height:null!=(l=e.height)?l:526,layout:"responsive",objectPosition:"0 0",alt:e.alt})})}case"JsonBlockRecord":return(0,a.jsx)(p(),{id:i.id?String(i.id):"json-block",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(null==i?void 0:i.json)}});case"VideoBlockRecord":if(!(null==i?void 0:i.video))return null;return(0,a.jsx)("div",{className:d()(ey().blockWrapper,ey().blockVideo),children:(0,a.jsx)(P.V,{src:i.video,title:i.title,className:ey().embedIframe,frameBorder:i.frameBorder,allowFullScreen:i.allowFullScreen,width:610,type:"video"})});case"WebstoryBlockRecord":if(!(null==i?void 0:i.link))return null;return(0,a.jsx)("div",{className:d()(ey().blockWrapper,ey().blockWebstory),children:(0,a.jsx)(P.V,{className:ey().embedIframe,src:i.link,width:360,type:"webstory"})});case"TableBlockRecord":{let e=i.table,t=null!=(r=null==e?void 0:e.columns)?r:[],l=null==e?void 0:e.hasColumnHeaders,n=null!=(s=null==e?void 0:e.data)?s:[];return(0,a.jsx)("div",{className:ey().blockWrapper,children:(0,a.jsx)("table",{children:(0,a.jsxs)("tbody",{children:[l&&(0,a.jsx)("tr",{children:null==t?void 0:t.map(e=>(0,a.jsx)("td",{children:(0,a.jsx)("p",{children:(0,a.jsx)("strong",{children:e})})},e))}),null==n?void 0:n.map(e=>(0,a.jsx)("tr",{children:null==t?void 0:t.map(t=>{let l=e[t];return(0,a.jsx)("td",{dangerouslySetInnerHTML:{__html:String(null!=l?l:"")}},t)})},e.id))]})})})}case"CustomerExperienceBlockRecord":if(!(null==i?void 0:i.video))return null;return(0,a.jsx)("div",{className:ey().blockWrapper,children:i.video.map(e=>{let{video:t,title:l,frameBorder:r,allowFullScreen:s}=e;return(0,a.jsxs)("div",{className:ey().blockEmbed,children:[l&&(0,a.jsx)("h3",{children:l}),(0,a.jsx)(P.V,{src:t,title:l,className:ey().embedIframe,frameBorder:r,allowFullScreen:s})]},t)})});case"TiktokBlockRecord":if(!(null==i?void 0:i.tiktok))return null;return(0,a.jsx)("div",{className:d()(ey().blockWrapper,ey().blockScroll),children:i.tiktok.map(e=>{let{dataVideoId:t,title:l}=e;return t?(0,a.jsx)("div",{className:ey().blockEmbed,children:(0,a.jsx)(P.V,{src:t,title:l,className:ey().embedTiktok,frameBorder:0,allowFullScreen:!0})},t):null})});case"IframeBlockRecord":if(!(null==i?void 0:i.link))return null;return(0,a.jsx)("div",{className:ey().blockWrapper,children:(0,a.jsx)(P.V,{src:i.link,title:i.title||"iframe",width:i.width||"500",height:i.height||"760",frameBorder:i.frameBorder||"0",allowFullScreen:!1!==i.allowFullScreen})});case"InstagramBlockRecord":if(!(null==i?void 0:i.link))return null;return(0,a.jsxs)(b.x,{children:[(0,a.jsx)("blockquote",{className:d()("instagram-media",ey().instagramEmbed),"data-instgrm-captioned":!0,"data-instgrm-permalink":i.link,"data-instgrm-version":"14"}),(0,a.jsx)(p(),{strategy:"afterInteractive",src:"https://www.instagram.com/embed.js",async:!0})]});case"QuizBlockRecord":{let e=i.title,t=i.description,{quizType:l,question:r}=i;return(0,a.jsx)("div",{className:ey().blockWrapper,children:(0,a.jsxs)(a.Fragment,{children:[e&&(0,a.jsx)("h3",{children:e}),t&&(0,a.jsx)("p",{children:t}),(0,a.jsx)("div",{children:(()=>{switch(l){case"Point":return(0,a.jsx)(w,{questions:r});case"Group":return(0,a.jsx)(N,{questions:r});default:return null}})()})]})})}default:return null}}}):null,[o.content]),M=B.slice(0,3);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.bV,{title:o.metaTitle||void 0,titleTemplate:"%s",description:o.metaDescription||void 0,openGraph:{images:[{url:(null==(t=o.heroImage)?void 0:t.url)||" ",alt:o.metaTitle||" "}]},canonical:(0,ew.$i)(v,o.slug)}),u&&(0,a.jsx)(f,{postSchema:u}),(0,a.jsxs)("article",{className:ey().root,children:[(0,a.jsx)("header",{className:ey().hero,children:(0,a.jsxs)("div",{className:ey().container,children:[(0,a.jsxs)("div",{className:ey().breadcrumbs,children:[(0,a.jsx)(T.A,{href:"/blog",children:k(z.k.AllBlogs)||"Health hub"})," / ",(0,a.jsx)("span",{children:o.title})]}),(0,a.jsx)("p",{className:ey().kicker,children:(null==(l=o.category)?void 0:l.name)||"Health advice"}),(0,a.jsx)("h1",{className:ey().title,children:o.title}),(0,a.jsxs)("div",{className:ey().metaRow,children:[o.author&&(0,a.jsxs)(a.Fragment,{children:[(null==(r=o.author.image)?void 0:r.url)&&(0,a.jsx)("span",{className:ey().authorAvatar,children:(0,a.jsx)(m(),{src:o.author.image.url,alt:o.author.name,width:28,height:28})}),(0,a.jsx)("span",{className:ey().authorName,children:o.author.name}),(0,a.jsx)("span",{className:ey().metaDot})]}),y&&(0,a.jsx)("span",{children:y}),(null==(s=o.contentWordCounter)?void 0:s.readingTime)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:ey().metaDot}),(0,a.jsx)("span",{children:o.contentWordCounter.readingTime})]})]})]})}),(0,a.jsx)("section",{className:ey().contentSection,children:(0,a.jsxs)("div",{className:ey().articleInner,children:[(null==(n=o.heroImage)?void 0:n.url)&&(0,a.jsx)("div",{className:ey().heroImage,children:(0,a.jsx)(m(),{src:o.heroImage.url,alt:o.title||"",width:760,height:420,layout:"responsive",objectFit:"cover",objectPosition:"50% 50%"})}),(0,a.jsx)("div",{className:ey().richText,children:C})]})}),(0,a.jsx)("section",{className:ey().bottomSection,children:(0,a.jsxs)("div",{className:ey().bottomGrid,children:[(0,a.jsxs)("div",{className:ey().bottomPrimary,children:[M.length>0&&(0,a.jsxs)("div",{className:ey().sectionCard,children:[(0,a.jsx)("h2",{className:ey().sectionTitle,children:h.title||"Related treatments"}),(0,a.jsx)(er,{items:M,variant:"main"})]}),o.author&&(0,a.jsxs)("div",{className:ey().sectionCard,children:[(0,a.jsx)("h2",{className:ey().sectionTitle,children:"About the author"}),(0,a.jsx)(eb,{author:o.author})]})]}),(0,a.jsx)("div",{className:ey().bottomSecondary,children:c&&0!==c.length&&(0,a.jsxs)("div",{className:ey().sectionCard,children:[(0,a.jsx)("h2",{className:ey().sectionTitle,children:"You might also like"}),(0,a.jsx)(ex,{posts:c})]})})]})})]})]})},eC=e=>{var t,l,r,s;let{post:n,posts:c,postSchema:h,products:v,table:k,locale:B}=e;if("ukmeds"===y.YY.MMyM)return(0,a.jsx)(ef,{post:n,posts:c,postSchema:h,products:v,table:k,locale:B});let{t:C}=(0,q.B)(),[M,A]=(0,_.useState)([]),[S,E]=(0,_.useState)([]),[I,L]=(0,_.useState)(""),{content:H,author:F,slug:V}=n,{items:W}=v,{newsletterImage:D}=k,O=(0,_.useRef)(null),G=(0,_.useRef)(null),U=(0,_.useRef)(I),Y=(0,_.useRef)(S),X=(0,_.useMemo)(()=>(0,a.jsx)(g.d6,{data:H,customNodeRules:[(0,x.bq)(j.Vq,e=>{let{node:t,children:l,key:r}=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 M.find(e=>e.key===i)||A(t=>[...t,{title:e,key:i}]),(0,a.jsx)(s,{id:i,children:l},r)}return(0,a.jsx)(s,{children:l},r)})],renderBlock:e=>{var t,l,r,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==(l=_.image)?void 0:l.width)?i:760,height:null!=(n=null==_||null==(r=_.image)?void 0:r.height)?n:526,layout:"responsive",objectPosition:"0 0",alt:null==_||null==(s=_.image)?void 0:s.alt})});case"JsonBlockRecord":return(0,a.jsx)(p(),{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,j=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==j?void 0:j.map(e=>(0,a.jsx)("tr",{children:null==g?void 0:g.map(t=>{let l=e[t];return(0,a.jsx)("td",{dangerouslySetInnerHTML:{__html:l}},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:l,frameBorder:r,allowFullScreen:s}=e;return(0,a.jsxs)("div",{className:d()(o().customerExperienceCard,o().customerExperienceCardVideo),children:[l&&(0,a.jsx)("h3",{children:l}),(0,a.jsx)(P.V,{src:t,title:l,className:o().video,frameBorder:r,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:l}=e;return t?(0,a.jsx)("div",{className:d()(o().customerExperienceCard,o().customerExperienceCardTiktok,"no-quote"),children:(0,a.jsx)(P.V,{src:t,title:l,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)(b.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)(p(),{strategy:"afterInteractive",src:"https://www.instagram.com/embed.js",async:!0})]});case"QuizBlockRecord":let{title:v,description:k,quizType:B,question:y}=_;return(0,a.jsxs)(a.Fragment,{children:[v&&(0,a.jsx)("h3",{children:v}),k&&(0,a.jsx)("p",{children:k}),(0,a.jsx)("div",{children:(()=>{switch(B){case"Point":return(0,a.jsx)(w,{questions:y});case"Group":return(0,a.jsx)(N,{questions:y});default:return null}})()})]});default:return null}}}),[H]),J=()=>{if(!O.current)return;let e=Y.current.find(e=>e.element.getBoundingClientRect().top-10<=0);e&&U.current!==e.headingId&&(e=>{U.current=e,L(e)})(e.headingId)};(0,_.useEffect)(()=>(window.addEventListener("scroll",J,{passive:!0}),()=>{window.removeEventListener("scroll",J)}),[]),(0,_.useEffect)(()=>{if(!O.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=>{Y.current=e,E(e)})(t)}});return e.observe(O.current),()=>{e.disconnect()}},[O]);let Q=v.items.slice(0,3),Z=n.updatedAt?(0,eB.A)(new Date(n.updatedAt),"MMMM dd, yyyy"):void 0;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(em,{calculateBy:"reference",reference:G}),(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,ew.$i)(B,n.slug)}),h&&(0,a.jsx)(f,{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)(R,{items:M,active:I,navigateToSection:e=>{let t=S.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:G,children:(0,a.jsxs)("div",{className:o().mainContent,children:[(0,a.jsx)("div",{className:o().backLinkContainer,children:(0,a.jsxs)(T.A,{href:"/blog",className:o().backLink,prefetch:!1,children:[(0,a.jsx)(ea.A,{width:9,height:9})," ",(0,a.jsx)("span",{children:C(z.k.AllBlogs)})]})}),(0,a.jsx)("div",{className:o().contentHeader,children:F&&(0,a.jsx)("div",{className:o().postHeaderContainer,children:(0,a.jsx)(es,{author:F,relatedProducts:W,readTimeWords:null!=(r=null==(l=n.contentWordCounter)?void 0:l.words)?r:4e3,updatedAt:Z,category:n.category,slug:null!=V?V:""})})}),(0,a.jsxs)("div",{className:o().content,children:[(0,a.jsx)("h1",{children:n.title}),(0,a.jsx)("div",{ref:O,className:"rich-text",children:X})]})]})}),(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!==Q.length&&(0,a.jsx)(er,{items:Q,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:[Q&&0!==Q.length&&(0,a.jsx)(er,{items:Q,variant:"main"}),F&&(0,a.jsx)("div",{className:o().blogAuthorContainer,children:(0,a.jsx)(eb,{author:F})})]})}),(0,a.jsxs)(u.mc,{children:[(0,a.jsx)(ej.A,{image:null!=(s=null==D?void 0:D.url)?s:""}),c&&0!==c.length&&(0,a.jsx)(ex,{posts:c})]})]}),(0,a.jsx)(ev.A,{}),(0,a.jsx)(ek.A,{})]})};var eM=!0;let eR=e=>{let{post:t,posts:l,postSchema:r,items:s,table:i,locale:n}=e;return(0,a.jsx)(eC,{post:t,posts:l,postSchema:r,products:{title:(null==t?void 0:t.products_title)||"",items:s},table:i,locale:n})}},16243:(e,t,l)=>{"use strict";l.d(t,{x:()=>a});var r=l(37876),s=l(14232);let a=e=>{let{children:t}=e,[l,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)}},[]),l)?(0,r.jsx)("div",{children:t}):null}},19016:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var r,s=l(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,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog/[slug]",function(){return l(12895)}])},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"}},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"}},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,l)=>{"use strict";l.d(t,{g:()=>d,A:()=>u});var r,s=l(37876),a=l(14232),i=l(58103),n=l.n(i);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{size:t="normal",...l}=e;return(0,s.jsx)("ul",{className:n()({"tick-list":!0,"tick-list--large":"large"===t}),children:l.render&&l.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"}},98210:e=>{e.exports={root:"MMyMBlogPostPage_root__dC8sD",hero:"MMyMBlogPostPage_hero__0Cs3Y",container:"MMyMBlogPostPage_container__Tzit7",breadcrumbs:"MMyMBlogPostPage_breadcrumbs__vDl1G",kicker:"MMyMBlogPostPage_kicker__5JWnH",title:"MMyMBlogPostPage_title__a5knb",metaRow:"MMyMBlogPostPage_metaRow__zDttS",metaDot:"MMyMBlogPostPage_metaDot___1TNK",authorAvatar:"MMyMBlogPostPage_authorAvatar__CwNUy",authorName:"MMyMBlogPostPage_authorName__vtoBX",contentSection:"MMyMBlogPostPage_contentSection__xevNK",articleInner:"MMyMBlogPostPage_articleInner__OCoeG",heroImage:"MMyMBlogPostPage_heroImage__ZLuYU",richText:"MMyMBlogPostPage_richText__expxI",blockWrapper:"MMyMBlogPostPage_blockWrapper__m46Kw",blockImage:"MMyMBlogPostPage_blockImage__OHGZI",blockVideo:"MMyMBlogPostPage_blockVideo__nMfii",blockWebstory:"MMyMBlogPostPage_blockWebstory____FkK",blockScroll:"MMyMBlogPostPage_blockScroll__uxbgA",blockEmbed:"MMyMBlogPostPage_blockEmbed__rPP2U",embedIframe:"MMyMBlogPostPage_embedIframe__v07M_",embedTiktok:"MMyMBlogPostPage_embedTiktok__P2Ayw",instagramEmbed:"MMyMBlogPostPage_instagramEmbed__zPy6P",bottomSection:"MMyMBlogPostPage_bottomSection__hWhGK",bottomGrid:"MMyMBlogPostPage_bottomGrid__AFcBb",bottomPrimary:"MMyMBlogPostPage_bottomPrimary__uNBtX",bottomSecondary:"MMyMBlogPostPage_bottomSecondary__uGhHN",sectionCard:"MMyMBlogPostPage_sectionCard__9Vc0w",sectionTitle:"MMyMBlogPostPage_sectionTitle__OsHUv"}}},e=>{e.O(0,[7978,4440,2922,1618,3534,9257,636,6593,8792],()=>e(e.s=45660)),_N_E=e.O()}]);