"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2433],{"4U5F":function(e,t,r){r.d(t,{R:function(){return RadioImageGroup}});var i=r("BGKE"),a=r("q1tI"),o=r("MmHG"),l=r("rBCA"),n=r("iBNF");let d=(0,l.Z)("div",{target:"e3ltf9w0"})("display:flex;width:100%;&[data-direction='vertical']{flex-direction:column;}&[data-direction='horizontal']{flex-wrap:wrap;}"),s=(0,l.Z)("div",{target:"e3ltf9w1"})("display:flex;padding:8px;border-radius:",n.r.borderRadius,";cursor:pointer;& > div{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:flex-start;}&[data-selected='true']{border:1px solid #2d87f3;background:white;}&[data-selected='false']{border:1px solid #f2f2f2;box-shadow:0px 5px 12px rgba(40,74,117,0.08);}&[data-disabled='true']{cursor:auto;}.radio-group-item-heading{margin-top:8px;text-align:center;}.gender-image{width:70px;height:70px;&[data-is-mobile='true']{width:40px;height:40px;}}"),RadioImageGroup=e=>{let{value:t,options:r,className:l,direction:n="horizontal",onChange:c,isDisabled:p}=e,[g,h]=(0,a.useState)(t),handleOnChange=e=>{!p&&(h(e),c&&c(e))};return(0,i.tZ)(d,{className:l,"data-direction":n,children:r.map((e,r)=>(0,i.tZ)(s,{"data-selected":(t||g)===e.value,"data-disabled":p,onClick:()=>{handleOnChange(e.value)},children:(0,i.BX)("div",{children:[e.content,e.label&&(0,i.tZ)(o.T,{type:"bold",color:(t||g)===e.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1",children:e.label})]})},r))})}},Ib2b:function(e,t,r){r.d(t,{F:function(){return RadioImageGroupForTool}});var i=r("BGKE"),a=r("q1tI"),o=r("MmHG"),l=r("rBCA"),n=r("iBNF");let d=(0,l.Z)("div",{target:"e1cb74om0"})("display:flex;width:100%;&[data-direction='vertical']{flex-direction:column;}&[data-direction='horizontal']{flex-wrap:wrap;}"),s=(0,l.Z)("div",{target:"e1cb74om1"})("display:flex;padding:8px;border-radius:",n.r.borderRadius,";cursor:pointer;& > div{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:flex-start;}&[data-selected='true']{border:1px solid #2d87f3;background:white;.radio-group-item-heading{color:#2d87f3;}}&[data-selected='false']{border:1px solid #f2f2f2;box-shadow:0px 5px 12px rgba(40,74,117,0.08);.radio-group-item-heading{color:#262626;}}&[data-disabled='true']{cursor:auto;}.radio-group-item-heading{margin-top:8px;text-align:center;}.gender-image{width:23px;height:36px;object-fit:contain;}"),RadioImageGroupForTool=e=>{let{value:t,options:r,className:l,direction:n="horizontal",onChange:c,isDisabled:p}=e,[g,h]=(0,a.useState)(t),handleOnChange=e=>{!p&&(h(e),c&&c(e))};return(0,i.tZ)(d,{className:l,"data-direction":n,children:r.map((e,r)=>(0,i.tZ)(s,{"data-selected":(t||g)===e.value,"data-disabled":p,onClick:()=>{handleOnChange(e.value)},children:(0,i.BX)("div",{children:[(0,i.tZ)("img",{src:(t||g)===e.value?e.imageActive:e.image,className:"gender-image",alt:"",width:23,height:36,loading:"lazy"}),e.label&&(0,i.tZ)(o.T,{type:"bold",className:"radio-group-item-heading",size:"label1",children:e.label})]})},"health-tool".concat(r)))})}},yR8U:function(e,t,r){r.r(t),r.d(t,{RelatedArticleCarousel:function(){return RelatedArticleCarousel}});var i=r("BGKE"),a=r("q1tI"),o=r("09QT"),l=r("/tR3"),n=r("oQBk"),d=r("hXNO"),s=r("MmHG"),c=r("fdQd"),p=r("dDsW"),g=r("iv2E"),h=r("P5LW"),u=r("rIrU"),m=r("rBCA"),f=r("iBNF"),x=r("uuQu"),v=r("1KiM");let b=(0,m.Z)("div",{target:"e1txote10"})("display:flex;flex-direction:column;align-items:flex-start;padding:24px;isolation:isolate;margin-block:16px;max-width:700px;/* max-height:414px;*/\n\n /* White */\n\n background:#ffffff;/* Neutral/Neutral-100 */\n\n border:1px solid ",null===f.r||void 0===f.r?void 0:f.r.colors.neutral100,";border-radius:8px;",x.M.mbDown,"{padding:16px;margin-inline:-16px;border-radius:0;}"),y=(0,m.Z)(v.ArticleCardWrapper,{target:"e1txote11"})("max-height:326px;&[data-size='sm'][data-direction='horizontal']{padding:16px 0 0;}.banner{height:auto;max-height:unset;}"),_Desktop=e=>{let{title:t,articles:r,...a}=e,{locale:o}=(0,h.h)(),{formatMessage:l}=(0,p.Z)();return r.length<=2?(0,i.BX)(b,{...a,children:[(0,i.tZ)(s.T,{size:"s2",type:"semiBold",children:t||l({id:"articlePage.relatedPostsSectionTitle",defaultMessage:"Related Articles"})}),r.map(e=>{var t;return(0,i.tZ)(y,{article:e,disabledBadge:!0,type:"author",size:"sm",banner:(0,i.tZ)("img",{src:e.featureImageMobile||e.featureImage||e.featureImageMobileXs||u.YS,alt:e.postTitle,style:{width:"100%",height:"100%",objectFit:"cover"},loading:"lazy"}),categoryLink:e.category.permalink,articleLink:e.permalink,categoryName:null===(t=e.category)||void 0===t?void 0:t.displayName,title:e.postTitle,text:e.excerpt,styleLabel:{color:e.category.textColor},uploadTime:e.modifiedTime,hasAffiliate:e.hasAffiliate,dataEventCategoryForTitle:"Further Article",dataEventActionForTitle:"Article Title Click",dataEventLabelForTitle:"https://".concat(g.domainLocales[o]).concat(e.permalinkDecode),dataEventCategoryForBanner:"Further Article",dataEventActionForBanner:"Article Image Click",dataEventLabelForBanner:"https://".concat(g.domainLocales[o]).concat(e.permalinkDecode),headingAs:"p"},e.id)})]}):(0,i.BX)(b,{style:{gap:"14px"},...a,children:[(0,i.tZ)(s.T,{size:"s2",type:"semiBold",children:t||l({id:"articlePage.relatedPostsSectionTitle",defaultMessage:"Related Articles"})}),r.length>0&&(0,i.tZ)(c.a,{slidesToShow:2.2,slideGap:16,controlSize:40,controlsOffset:10,slidesToScroll:1,styles:{root:{width:"100%"}},children:r.map((e,t)=>{var r;return(0,i.tZ)(c.a.Slide,{children:(0,i.tZ)(y,{article:e,disabledBadge:!0,type:"author",size:"sm",banner:(0,i.tZ)("img",{src:e.featureImageMobile||e.featureImage||e.featureImageMobileXs||u.YS,alt:e.postTitle,style:{width:"100%",height:"100%",objectFit:"cover"},loading:"lazy"}),categoryLink:e.category.permalink,articleLink:e.permalink,direction:"vertical",categoryName:null===(r=e.category)||void 0===r?void 0:r.displayName,title:e.postTitle,text:e.excerpt,styleLabel:{color:e.category.textColor},uploadTime:e.modifiedTime,hasAffiliate:e.hasAffiliate,dataEventCategoryForTitle:"Further Article",dataEventActionForTitle:"Article Title Click",dataEventLabelForTitle:"https://".concat(g.domainLocales[o]).concat(e.permalinkDecode),dataEventCategoryForBanner:"Further Article",dataEventActionForBanner:"Article Image Click",dataEventLabelForBanner:"https://".concat(g.domainLocales[o]).concat(e.permalinkDecode),headingAs:"p"})},t)})})]})},_Mobile=e=>{let{title:t,articles:r,...a}=e,{locale:o}=(0,h.h)(),{formatMessage:l}=(0,p.Z)();return 1>=((null==r?void 0:r.length)||0)?(0,i.BX)(b,{...a,children:[(0,i.tZ)(s.T,{size:"s2",type:"semiBold",children:t||l({id:"articlePage.relatedPostsSectionTitle",defaultMessage:"Related Articles"})}),r.map(e=>{var t;return(0,i.tZ)(y,{article:e,disabledBadge:!0,type:"author",size:"sm",banner:(0,i.tZ)("img",{src:e.featureImageMobile||e.featureImage||e.featureImageMobileXs||u.YS,alt:e.postTitle,style:{width:"100%",height:"100%",objectFit:"cover"},loading:"lazy"}),categoryLink:e.category.permalink,articleLink:e.permalink,categoryName:null===(t=e.category)||void 0===t?void 0:t.displayName,title:e.postTitle,text:e.excerpt,styleLabel:{color:e.category.textColor},uploadTime:e.modifiedTime,hasAffiliate:e.hasAffiliate,dataEventCategoryForTitle:"Further Article",dataEventActionForTitle:"Article Title Click",dataEventLabelForTitle:"https://".concat(g.domainLocales[o]).concat(e.permalinkDecode),dataEventCategoryForBanner:"Further Article",dataEventActionForBanner:"Article Image Click",dataEventLabelForBanner:"https://".concat(g.domainLocales[o]).concat(e.permalinkDecode),headingAs:"p"},e.id)})]}):(0,i.BX)(b,{style:{gap:"12px"},...a,children:[(0,i.tZ)(s.T,{size:"s2",type:"semiBold",children:t||l({id:"articlePage.relatedPostsSectionTitle",defaultMessage:"Related Articles"})}),r.length>0&&(0,i.tZ)(c.a,{slidesToShow:1.2,slideGap:18,controlSize:40,controlsOffset:10,slidesToScroll:1,styles:{root:{width:"100%"}},children:r.map((e,t)=>{var r;return(0,i.tZ)(c.a.Slide,{children:(0,i.tZ)(y,{article:e,disabledBadge:!0,type:"author",size:"sm",banner:(0,i.tZ)("img",{src:e.featureImageMobile||e.featureImage||e.featureImageMobileXs||u.YS,alt:e.postTitle,style:{width:"100%",height:"100%",objectFit:"cover"},loading:"lazy"}),categoryLink:e.category.permalink,articleLink:e.permalink,direction:"vertical",categoryName:null===(r=e.category)||void 0===r?void 0:r.displayName,title:e.postTitle,text:e.excerpt,styleLabel:{color:e.category.textColor},uploadTime:e.modifiedTime,hasAffiliate:e.hasAffiliate,dataEventCategoryForTitle:"Further Article",dataEventActionForTitle:"Article Title Click",dataEventLabelForTitle:"https://".concat(g.domainLocales[o]).concat(e.permalinkDecode),dataEventCategoryForBanner:"Further Article",dataEventActionForBanner:"Article Image Click",dataEventLabelForBanner:"https://".concat(g.domainLocales[o]).concat(e.permalinkDecode)})},t)})})]})},RelatedArticleCarousel=e=>{let{ids:t,...r}=e,s=(0,d.d)(),[c,p]=(0,a.useState)([]);return((0,a.useEffect)(()=>{(async()=>{let e=await (0,o.d)(n.y.ARTICLE.GET_ARTICLES,{params:{ids:t||""}}).then(e=>{var t,r;return null==e?void 0:null===(r=e.data)||void 0===r?void 0:null===(t=r.posts)||void 0===t?void 0:t.map(l.qP)});p(e||[])})()},[t]),s)?(0,i.tZ)(_Mobile,{articles:c,...r}):(0,i.tZ)(_Desktop,{articles:c,...r})}},"c+px":function(e,t,r){r.r(t),r.d(t,{RiskScreenerCarousel:function(){return RiskScreenerCarousel}});var i=r("BGKE"),a=r("q1tI"),o=r("iBNF"),l=r("DEkF"),n=r("LgdP"),d=r("MmHG"),s=r("fdQd"),c=r("dDsW"),p=r("CJtR"),g=r("hXNO"),h=r("P5LW"),u=r("rBCA"),m=r("uuQu");let f=(0,u.Z)("div",{target:"eog50qf0"})("margin-block:32px;",m.M.mbDown,"{margin-block:64px;}.title{display:flex;gap:20px;margin-bottom:32px;}.mantine-Carousel-controls{width:calc(100% + 120px);margin-left:-60px;}.mantine-Carousel-indicators{bottom:-32px;}.mantine-Carousel-indicator{background-color:",null===o.r||void 0===o.r?void 0:o.r.colors.neutral200,";width:8px;height:8px;&[data-active='true']{background-color:",null===o.r||void 0===o.r?void 0:o.r.colors.primaryBase,";}}"),x=(0,u.Z)("a",{target:"eog50qf1"})("text-decoration:none;border-radius:4px;background:#e3f2ff;display:flex;align-items:center;gap:16px;padding:24px;.bg-svg{background-color:#ffffff;border-radius:50%;width:48px;padding:8px;}"),Item=e=>{let{item:t,...r}=e;return t?(0,i.BX)(x,{...r,children:[(0,i.tZ)("img",{src:t.icon,alt:"",className:"bg-svg",loading:"lazy"}),(0,i.tZ)("div",{children:(0,i.tZ)(d.T,{size:"s3",type:"semiBold",color:o.r.colors.gray800,children:t.title})})]}):null},RiskScreenerCarousel=e=>{let{riskScreener:t,...r}=e,{formatMessage:u}=(0,c.Z)(),m=(0,g.d)(),{locale:x}=(0,h.h)(),[v,b]=(0,a.useState)(null),y=(0,a.useRef)(!0);(0,a.useEffect)(()=>{let handleScroll=()=>{y.current=!1},handlePointerUp=()=>{setTimeout(()=>{y.current=!0},1e3)};return v&&(v.on("scroll",handleScroll),v.on("pointerUp",handlePointerUp)),()=>{v&&(v.off("scroll",handleScroll),v.off("pointerUp",handlePointerUp))}},[v]);let onItemClick=(e,t)=>{e.preventDefault(),y.current&&t&&(window.location.href=t)};return(0,i.BX)(f,{...r,children:[(0,i.BX)("div",{className:"title",children:[(0,i.tZ)(l.H,{tag:"h3",children:t.title||u({id:"riskScreener.title",defaultMessage:"Suggested riskscreeners"})}),(0,i.tZ)("a",{href:"/health-tools",className:"see-all pointer-event-child-none","data-event-category":"Risk Screener","data-event-action":"See All Click","data-event-label":"".concat((0,p.UC)(x),"/health-tools"),children:(0,i.BX)(n.B,{color:"ghost",size:"sm",children:[(0,i.tZ)(d.T,{size:"s4",type:"semiBold",color:o.r.colors.primaryBase,children:u({id:"categoryPage.seeAll",defaultMessage:"See all"})}),(0,i.tZ)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,i.tZ)("path",{d:"M9.80322 8.99999L6.93746 6.13424C6.62696 5.82374 6.62696 5.31974 6.93746 5.00924C7.24796 4.69874 7.75196 4.69874 8.06246 5.00924L11.523 8.46974C11.8162 8.76299 11.8162 9.23774 11.523 9.53024L8.06246 12.9907C7.75196 13.3012 7.24796 13.3012 6.93746 12.9907C6.62696 12.6802 6.62696 12.1762 6.93746 11.8657L9.80322 8.99999Z",fill:"#2D87F3"})})]})})]}),(null==t?void 0:t.subots)&&t.subots.length>0&&(0,i.tZ)(s.a,{getEmblaApi:b,slidesToShow:m?1:3,slideGap:24,controlSize:40,includeGapInSize:!0,containScroll:"trimSnaps",draggable:t.subots.length>3,withIndicators:t.subots.length>3,withControls:!!(t.subots.length>3&&!m),children:t.subots.map((e,t)=>(0,i.tZ)(s.a.Slide,{children:(0,i.tZ)("div",{onClick:t=>onItemClick(t,e.link),"data-event-category":"Risk Screener","data-event-action":"Risk Screener Click","data-event-label":e.link,className:"pointer-event-child-none",children:(0,i.tZ)(Item,{item:e,href:e.link||""})})},t))})]})}},"2lRU":function(e,t,r){r.d(t,{y:function(){return ScrollAreaNav}});var i=r("BGKE"),a=r("q1tI"),o=r("vaps"),l=r("SPK5"),n=r("Eso5"),d=(0,r("/npG").k)(()=>({root:{gap:16},scrollViewport:{padding:0},scrollThumb:{display:"none"}})),s=r("yVya");let ScrollAreaNav=e=>{let{children:t,className:r,styles:c,classNames:p,...g}=e,{classes:h,cx:u}=d(void 0,{name:"HealthToolsNav",styles:c,classNames:p}),m=(0,a.useRef)(null),[f,x]=(0,a.useState)("");return(0,a.useEffect)(()=>{var e,t;let r=null===(e=m.current)||void 0===e?void 0:e.querySelector('[data-section-id="'.concat(f,'"]'));r instanceof HTMLElement&&(null===(t=m.current)||void 0===t||t.scrollTo({left:r.offsetLeft,behavior:"smooth"}))},[f]),(0,i.tZ)(o.x,{offsetScrollbars:!0,scrollbarSize:4,classNames:{viewport:h.scrollViewport,thumb:h.scrollThumb},viewportRef:m,...g,children:(0,i.tZ)(l.k,{className:u(r,h.root),...g,children:(0,s.Z)(t).map((e,t)=>a.isValidElement(e)?(0,i.tZ)(n.x,{"data-section-id":"scroll-".concat(t),onClick:()=>x("scroll-".concat(t)),children:e},t):null)})})}},S5Gw:function(e,t,r){r.r(t),r.d(t,{Sources:function(){return f}});var i=r("BGKE"),a=r("q1tI"),o=r("nGnw"),l=r("wp0n"),n=r("iBNF"),d=r("zLsJ"),s=r("dDsW"),c=r("rBCA");let p=(0,c.Z)("div",{target:"eqih9ue0"})("display:block;border:1px solid #e4e8ec;border-radius:8px;margin-bottom:16px;"),g=(0,c.Z)("button",{target:"eqih9ue1"})("padding:16px;text-transform:uppercase;cursor:pointer;width:100%;text-align:start;"),h=(0,c.Z)("div",{target:"eqih9ue2"})("overflow:hidden;height:0;transition:height 0.25s ease;background-color:white;&[data-expand='true']{height:var(--expand-height);}.source-wrapper{white-space:pre-wrap;padding:0px 1rem 1rem;word-break:break-word;line-height:1.55;a{display:inline-block;color:",n.r.colors.primaryBase,";font-weight:normal;text-decoration:none;word-break:break-word;}}"),u=o.C.getAssetPath("source-opened.svg"),m=o.C.getAssetPath("source-closed.svg"),f=(0,a.memo)(e=>{let{className:t,sources:r="",title:o,children:c}=e,{formatMessage:f}=(0,s.Z)(),[x,v]=(0,a.useState)(!1),b=(0,a.useRef)(null),[y,w]=(0,a.useState)(100);return(0,a.useEffect)(()=>{setTimeout(()=>{b.current&&w(b.current.clientHeight)},100)},[Array.isArray(r)?r.join("|"):r]),(0,i.BX)(p,{className:t,children:[(0,i.tZ)(g,{onClick:()=>{(0,a.startTransition)(()=>{v(e=>!e)})},tabIndex:0,children:(0,i.BX)(l.T,{size:"c2",weight:"bold",color:n.r.colors.gray600,children:[(0,i.tZ)("img",{src:x?m:u,alt:"",loading:"lazy",style:{verticalAlign:"bottom",marginRight:8}}),o||f({id:"articlePage.sourceCount"})]})}),(0,i.tZ)(h,{"data-expand":x,style:{"--expand-height":"".concat(y,"px")},children:(0,i.tZ)("div",{className:"source-wrapper",ref:b,children:c||(0,i.BX)(i.HY,{children:[Array.isArray(r)&&(0,i.tZ)(d.a,{styles:{itemIcon:{marginRight:0}},spacing:12,icon:(0,i.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,i.tZ)("circle",{cx:"12",cy:"12",r:"2",fill:"#2D87F3"})}),children:r.map(e=>(0,i.tZ)(d.a.Item,{children:(0,i.tZ)("div",{dangerouslySetInnerHTML:{__html:e}})},e))}),"string"==typeof r&&(0,i.tZ)("div",{dangerouslySetInnerHTML:{__html:r}})]})})})]})},(e,t)=>{let r=Array.isArray(e.sources)?e.sources.join("|"):e.sources,i=Array.isArray(t.sources)?t.sources.join("|"):t.sources;return r===i&&e.title===t.title})},Gwuz:function(e,t,r){r.r(t),r.d(t,{SponsoredBy:function(){return SponsoredBy},SponsoredPopup:function(){return SponsoredPopup},StickySponsoredBy:function(){return StickySponsoredBy},StickySponsoredByRevamp:function(){return StickySponsoredByRevamp}});var i=r("BGKE"),a=r("q1tI"),o=r("iBNF"),l=r("MmHG"),n=r("wp0n"),d=r("q9DY"),s=r("xVO/"),c=r("Eso5"),p=r("7Ci/"),g=r("TSYQ"),h=r.n(g),u=r("Vvt1"),m=r.n(u),f=r("dDsW"),x=r("hXNO"),v=r("P5LW"),b=r("rBCA"),y=r("uuQu");let w=(0,b.Z)("div",{target:"e9umfnp0"})("position:absolute;top:30px;left:50%;z-index:1;&[data-align-left='true']{left:190px;}width:350px;padding:1rem 1.5rem 1rem 1rem;border:1px solid ",o.r.colors.neutral100,";background:white;border-radius:8px;box-shadow:0px 0px 1px 0px #0000000a,0px 0px 2px 0px #0000000f,0px 4px 8px 0px #0000000a;transform:translateX(-50%);",y.M.mbDown,"{width:calc(100% - 2rem);}");var Z=r("/npG"),k=r("mYVa"),B=(0,Z.k)(e=>({root:{display:"flex",minHeight:(0,k.h)(40),alignItems:"center",justifyContent:"center",padding:"4px 0px",borderTop:"1px solid #e4e8ec",backgroundColor:e.colors.neutral[0],cursor:"pointer",textDecoration:"none",'&[data-align-left="true"]':{justifyContent:"start"},[e.fn.largerThan("sm")]:{minHeight:"44px"},'&[data-show-popup="true"]':{".sticky-sponsored-info-icon":{position:"relative","&:before":{position:"absolute",zIndex:9,top:"100%",left:"9px",borderRight:"6px transparent solid",borderBottom:"8px white solid",borderLeft:"6px transparent solid",content:'" "',transform:"translateX(calc(-50% + 3px))"}}}},logo:{height:(0,k.h)(32),[e.fn.largerThan("sm")]:{height:(0,k.h)(36)}},logoWrapper:{display:"inline-block",overflowX:"auto",gap:"24px",marginLeft:"24px","-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"},whiteSpace:"nowrap",flexShrink:0,[e.fn.smallerThan("sm")]:{display:"inline",marginLeft:"8px"}},scrollBtn:{display:"flex",marginLeft:(0,k.h)(24),gap:(0,k.h)(32)},img:{width:(0,k.h)(32),height:(0,k.h)(32)},textWrapper:{display:"flex",alignItems:"center",overflow:"hidden",whiteSpace:"nowrap"},container:{position:"relative",padding:"0 16px"}})),C=r("rIrU");let T=m()(()=>Promise.all([r.e(9409),r.e(6259),r.e(1818),r.e(7519),r.e(761),r.e(2189),r.e(5231),r.e(7797),r.e(5454),r.e(5481),r.e(140),r.e(5718),r.e(3684),r.e(5349),r.e(4148),r.e(2509),r.e(1533),r.e(1108),r.e(9124),r.e(4190),r.e(2582),r.e(6509),r.e(5308),r.e(4125),r.e(9715),r.e(7730),r.e(3929),r.e(891),r.e(137),r.e(4414),r.e(1079),r.e(7613),r.e(8098),r.e(3416),r.e(2500),r.e(1570),r.e(3506),r.e(1413),r.e(4846),r.e(2233),r.e(1058),r.e(3295),r.e(1538),r.e(7152),r.e(5684),r.e(2574),r.e(9884),r.e(7644),r.e(6962),r.e(8767),r.e(6638),r.e(7741),r.e(3434),r.e(2433),r.e(5385),r.e(3564),r.e(7082),r.e(3158),r.e(5641),r.e(7454),r.e(7004),r.e(4758),r.e(6219),r.e(17),r.e(8990),r.e(4067),r.e(9487),r.e(9083),r.e(1520),r.e(270),r.e(7596),r.e(8217),r.e(7543),r.e(2835),r.e(2507),r.e(6885),r.e(7859),r.e(690),r.e(2730),r.e(6287),r.e(7682),r.e(1551),r.e(4870),r.e(9922),r.e(3133),r.e(612),r.e(2002),r.e(1880),r.e(7471),r.e(7165),r.e(5451),r.e(8612)]).then(r.bind(r,"7G3q")).then(e=>e.PremiumBadge),{loadableGenerated:{webpack:()=>["7G3q"]}}),SponsoredBy=e=>{let{image:t,href:r,className:a,isMobile:o,classNames:n,styles:d,...s}=e,{formatMessage:p}=(0,f.Z)(),{classes:g,cx:h}=B(void 0,{name:"SponsoredBy",classNames:n,styles:d});return(0,i.BX)(c.x,{className:h("dfdfdfdf",a,g.root),"data-type-mobile":o,...s,children:[(0,i.tZ)(l.T,{size:"c2",type:"bold",color:"#737373",children:p({id:"articlePage.sponsoredBy"}).toUpperCase()+":"}),(0,i.tZ)("a",{style:{flex:1},href:r,target:"_blank",children:(0,i.tZ)("img",{src:t,style:{height:"22px",objectPosition:o?"right":"left",objectFit:"contain",paddingLeft:"1rem"},alt:"",loading:"lazy"})})]})},StickySponsoredBy=e=>{var t;let{className:r,isMobile:o,isCollapsed:n,sponsoredType:d,sponsoredBy:s,classNames:g,styles:h}=e,{formatMessage:u}=(0,f.Z)(),{classes:m,cx:x}=B(void 0,{name:"StickySponsoredBy",classNames:g,styles:h}),[v,b]=(0,a.useState)(!1),y=(0,a.useRef)(null);(0,a.useEffect)(()=>{n&&b(!1)},[n]);let w=(0,a.useMemo)(()=>void 0!==s&&s.some(e=>!!(null==e?void 0:e.logo)),[s]);return(0,i.tZ)(c.x,{className:x(r,m.root),onClick:()=>b(!0),"data-show-popup":v&&!n,"data-align-left":w,"data-sticky-sponsor":"true",children:(0,i.BX)(p.W,{className:x("hhg-disclaimer-text",m.container),"data-sponsored-id":null==s?void 0:null===(t=s[0])||void 0===t?void 0:t.id,size:"lg",w:"100%",children:["content"===d?(0,i.BX)("div",{className:m.textWrapper,children:[(0,i.tZ)("div",{className:"sticky-sponsored-info-icon",children:(0,i.tZ)("img",{src:"".concat(C.uQ,"/info-light.svg"),style:{width:20,height:20,marginRight:"0.3rem"},alt:"",loading:"lazy"})}),w?(0,i.BX)(i.HY,{children:[(0,i.tZ)(l.T,{size:"p4",style:{display:"inline-block"},color:"#737373",children:u({id:"articlePage.sponsoredContentBy",defaultMessage:"Content sponsored by"})}),(0,i.tZ)("div",{className:m.logoWrapper,"data-sponsor":s&&(null==s?void 0:s.length)>0,ref:y,children:null==s?void 0:s.map((e,t)=>(0,i.tZ)(a.Fragment,{children:(null==e?void 0:e.logo)&&(0,i.tZ)("img",{className:x("sponsored-logo",m.logo),src:(null==e?void 0:e.logo)||"",alt:(null==e?void 0:e.title)||"sponsored-logo",loading:"lazy"})},t))})]}):(0,i.tZ)(l.T,{size:"p4",color:"#737373",as:"span",children:u({id:"articlePage.sponsoredContent",defaultMessage:"Sponsored Content"})}),!o&&s&&(null==s?void 0:s.length)>1&&(0,i.BX)("div",{className:m.scrollBtn,style:{display:(null==y?void 0:y.current)&&y.current.scrollWidth>y.current.offsetWidth?"flex":"none"},children:[(0,i.tZ)("img",{alt:"",loading:"lazy",className:m.img,src:"".concat(C.Nr,"/chevronLeftCircle.svg"),onClick:e=>{e.stopPropagation(),y.current&&(y.current.scrollLeft-=50)}}),(0,i.tZ)("img",{loading:"lazy",alt:"",className:m.img,src:"".concat(C.Nr,"/chevronRightCircleBlack.svg"),onClick:e=>{e.stopPropagation(),y.current&&(y.current.scrollLeft+=50)}})]})]}):(0,i.tZ)(l.T,{size:"p2",color:"#737373",children:(0,i.BX)("div",{children:[u({id:"articlePage.sponsoredArticle"}),(0,i.tZ)("div",{className:"sticky-sponsored-info-icon",children:(0,i.tZ)("img",{src:"".concat(C.uQ,"/info-light.svg"),style:{width:20,height:20,verticalAlign:"middle",marginLeft:"0.3rem",marginBottom:"0.1rem"},alt:"",loading:"lazy"})})]})}),v&&!n?(0,i.tZ)(SponsoredPopup,{sponsoredBy:s,onClose:()=>b(!1)}):null]})})},StickySponsoredByRevamp=e=>{var t;let{isPremium:r,isSponsored:l,sponsoredBy:d,className:p}=e,g=(0,x.d)(),{formatMessage:u}=(0,f.Z)(),[m,v]=(0,a.useState)(!1),{logo:b,displayName:y,title:w}=(0,a.useMemo)(()=>(null==d?void 0:d[0])||{},[d]);return!l&&r?(0,i.tZ)(T,{className:p}):(0,i.BX)(c.x,{onClick:()=>v(!0),className:h()("hhg-disclaimer-text flex gap-3 relative cursor-pointer",p),"data-sponsored-id":null==d?void 0:null===(t=d[0])||void 0===t?void 0:t.id,children:[r&&(0,i.tZ)(s.Z,{size:20}),(0,i.BX)(c.x,{className:"flex items-center gap-0.5",children:[(0,i.BX)(n.T,{size:"p4",color:o.r.colors.gray600,children:[u(y||b?{id:"articlePage.sponsoredContentBy",defaultMessage:"Content sponsored by"}:{id:"articlePage.sponsoredContent",defaultMessage:"Sponsored Content"}),"\xa0",y?(0,i.tZ)("span",{className:"underline",children:y}):b?(0,i.tZ)("img",{loading:"lazy",src:b,alt:w,className:"min-h-9 h-9 align-middle"}):null]}),(0,i.BX)(c.x,{className:"relative",onClick:()=>v(!0),children:[(0,i.tZ)("img",{src:"".concat(C.uQ,"/info-").concat(m?"light":"dark",".svg"),alt:"",loading:"lazy",className:"w-4 h-4 cursor-pointer block"}),m&&!g&&(0,i.tZ)(SponsoredPopup,{sponsoredBy:d,onClose:()=>v(!1),className:"!left-0"})]})]}),m&&g&&(0,i.tZ)(SponsoredPopup,{sponsoredBy:d,onClose:()=>v(!1),className:"!left-0 !translate-x-0 !top-10"})]})},SponsoredPopup=e=>{var t;let{sponsoredBy:r,onClose:a,className:o}=e,{locale:l}=(0,v.h)(),{formatMessage:s}=(0,f.Z)(),p="/static".concat((null===(t=C.p[l])||void 0===t?void 0:t.ADVERTISING_SPONSOR_POLICY)||"/");return(0,i.BX)(w,{"data-align-left":r&&(Array.isArray(r)||!!(null==r?void 0:r.logo)),className:o,id:"sponsored-by",children:[(0,i.tZ)(c.x,{onClick:e=>{e.stopPropagation(),null==a||a()},className:"absolute top-2 right-2 cursor-pointer",children:(0,i.tZ)(d.Z,{size:18})}),(0,i.tZ)(n.T,{size:"p4",children:s({id:"articlePage.sponsoredByStickyPopup.content"},{a:e=>(0,i.tZ)("a",{href:p,target:"_blank",className:"underline text-primaryBase",children:e})})})]})}},"GLC/":function(e,t,r){r.d(t,{t:function(){return SpotlightsExpert}});var i=r("BGKE"),a=r("VwLB"),o=r("iBNF"),l=r("MmHG"),n=r("rBCA"),d=r("uuQu");let s=(0,n.Z)("div",{target:"eie95kn0"})("flex:1;display:flex;",d.M.mbUp,"{margin:0 0 48px 0;}&[data-is-single-expert='false']{",d.M.mbDown,"{flex-direction:column;text-align:center;align-items:center;gap:8px;}}"),c=(0,n.Z)("div",{target:"eie95kn1"})("position:relative;width:max-content;height:max-content;display:flex;margin-right:8px;img{border-radius:50%;}.avatar{object-fit:cover;}.badge{position:absolute;right:0;bottom:0;width:24px;height:24px;}"),p=(0,n.Z)("div",{target:"eie95kn2"})("&[data-is-single-expert='true']{",d.M.mbDown,"{margin:auto 0;}}.name{font-weight:600;}"),SpotlightsExpert=e=>{var t,r;let{isMobile:n,expertInfo:d,isSingleExpert:g}=e;return(0,i.BX)(s,{"data-is-single-expert":g,children:[(0,i.tZ)(c,{children:(0,i.BX)("a",{href:(null==d?void 0:d.profileUrl)||"#",style:{textDecoration:"none"},children:[(0,i.tZ)(a.A,{type:"rounded",avatarUrl:null==d?void 0:d.avatarThumbnail,size:n?"xl":"xxxl",firstLetter:(null==d?void 0:d.displayName)&&(null==d?void 0:null===(t=d.displayName)||void 0===t?void 0:t.length)>0?null==d?void 0:null===(r=d.displayName)||void 0===r?void 0:r[0].toUpperCase():"A",backgroundColor:o.r.colors.secondaryBase,className:"avatar"}),(null==d?void 0:d.role)&&(0,i.tZ)("img",{src:"/images/reviewer-".concat(d.role,".svg"),alt:"badge",className:"badge",loading:"lazy"})]})}),(0,i.BX)(p,{"data-is-single-expert":g,children:[(0,i.tZ)(l.T,{size:"sm",className:"name",color:"#262626",children:null==d?void 0:d.displayName}),!n&&(0,i.tZ)(l.T,{size:"xs",color:"#404040",children:null==d?void 0:d.specialty},0)]})]})}},"jdT+":function(e,t,r){r.d(t,{R:function(){return Steps}});var i=r("BGKE");r("q1tI");var a=r("MmHG"),o=r("VE50"),l=r.n(o),n=r("KX2h"),d=r("rBCA"),s=r("iBNF");let c=(0,d.Z)("ul",{target:"e185ia520"})("list-style-type:none;"),p=(0,d.Z)("li",{target:"e185ia521"})("display:flex;gap:16px;"),g=(0,d.Z)("div",{target:"e185ia522"})("position:relative;&:before{content:'';position:absolute;top:0;left:50%;transform:translateX(-50%);display:block;height:100%;border-right:1px dashed ",s.r.colors.neutral100,";}"),h=(0,d.Z)("div",{target:"e185ia523"})("width:32px;height:32px;border:1px solid ",s.r.colors.neutral100,";border-radius:50%;display:inline-flex;justify-content:center;align-items:center;cursor:default;background-color:",s.r.colors.white,";position:relative;"),u=(0,d.Z)("div",{target:"e185ia524"})("background-color:",s.r.colors.green600,";width:28px;height:28px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;"),m=(0,d.Z)("div",{target:"e185ia525"})("flex:1;"),f=(0,d.Z)("div",{target:"e185ia526"})(),Steps=e=>{let{currentStep:t,steps:r}=e;return(0,i.tZ)(c,{children:r.map((e,r)=>(0,i.BX)(p,{children:[(0,i.tZ)(g,{children:(0,i.tZ)(h,{children:e.isLoading?(0,i.tZ)(n.g,{}):r<=t?e.activeIcon||(0,i.tZ)(u,{children:(0,i.tZ)(l(),{})}):e.icon||(0,i.tZ)(a.T,{type:"bold",size:"sm",children:r+1})})}),(0,i.BX)(m,{children:[(0,i.tZ)(a.T,{size:"sm",style:{padding:"6px 0"},children:e.title}),(0,i.tZ)(f,{children:e.content})]})]},r))})}},"5fZt":function(e,t,r){r.r(t),r.d(t,{SubHeader:function(){return SubHeader}});var i=r("BGKE"),a=r("Eso5"),o=(0,r("/npG").k)(()=>({root:{position:"absolute",top:"100%",left:0,right:0,zIndex:1,backgroundColor:"rgba(255, 255, 255, 0.9)",backdropFilter:"blur(8px)",boxShadow:"0px 4px 8px 0px #0000000A"}}));let SubHeader=e=>{let{children:t,styles:r,className:l,classNames:n,...d}=e,{classes:s,cx:c}=o(void 0,{name:"SubHeader",styles:r,classNames:n});return(0,i.BX)(i.HY,{children:[(0,i.tZ)(a.x,{className:c(l,s.root),...d,children:t}),(0,i.tZ)("style",{children:"\n #navigation-v2 > section > div > div:first-of-type {\n\n position: relative;\n z-index: 2;\n }"})]})}},qf2j:function(e,t,r){r.d(t,{G:function(){return SpotlightSubotList}});var i=r("BGKE");r("q1tI");var a=r("MmHG"),o=r("DEkF"),l=r("qQsD"),n=r("rBCA"),d=r("iBNF"),s=r("uuQu");let c=(0,n.Z)("div",{target:"ek082ey0"})("height:100%;border:1px solid ",d.r.colors.neutral100,";border-radius:",d.r.borderRadius,";box-shadow:0px 4px 8px rgba(0,0,0,0.04),0px 0px 2px rgba(0,0,0,0.06),0px 0px 1px rgba(0,0,0,0.04);img{width:48px;height:48px;}",s.M.mbUp,"{padding:8px 16px;display:flex;justify-content:center;align-items:center;flex:1;text-decoration:none;cursor:pointer;img{margin-right:16px;}}&[data-is-unique-subot='true']{",s.M.mbDown,"{display:flex;flex:1;justify-content:center;align-items:center;img{margin-right:16px;}}}",s.M.mbDown,"{padding:16px;p{height:44px;overflow:hidden;}}"),p=(0,n.Z)("div",{target:"ek082ey1"})(".list-subot{display:flex;justify-content:center;margin-top:32px;",s.M.mbUp,"{gap:32px;}",s.M.mbDown,"{gap:8px;}.container{.section{",s.M.mbDown,"{margin:0 16px 0 0;}.grid-layout{",s.M.mbUp,"{grid-column-gap:32px;padding:0 96px 0 0;}",s.M.mbDown,"{grid-column-gap:8px;padding:0 24px 0 0;}}}}}"),SingleSpotlightSubot=e=>{let{isMobile:t,subotInfo:r,isTheUniqueSubot:o}=e;return(0,i.BX)(c,{onClick:()=>window.location.href=null==r?void 0:r.subotUrl,"data-is-unique-subot":t&&o,"data-event-category":"Spotlight","data-event-action":"Embedded Engage Click","data-event-label":null==r?void 0:r.subotUrl,children:[(0,i.tZ)("img",{src:null==r?void 0:r.icon,alt:"Subot Icon",loading:"lazy"}),(0,i.tZ)(a.T,{size:"sm",type:"bold",children:null==r?void 0:r.title})]})},SpotlightSubotList=e=>{var t,r,a,n;let{isMobile:d,spotlightSubot:s}=e,c=d?2:4;return(0,i.BX)(p,{children:[(0,i.tZ)(o.H,{tag:"h3",children:null==s?void 0:s.title}),(0,i.BX)("div",{className:"list-subot",children:[(null==s?void 0:null===(t=s.post)||void 0===t?void 0:t.length)<=c&&(0,i.tZ)(i.HY,{children:null==s?void 0:null===(r=s.post)||void 0===r?void 0:r.map((e,t)=>{var r;return(0,i.tZ)(SingleSpotlightSubot,{isMobile:d,subotInfo:e,isTheUniqueSubot:d?void 0:(null==s?void 0:null===(r=s.post)||void 0===r?void 0:r.length)===1},t)})}),(null==s?void 0:null===(a=s.post)||void 0===a?void 0:a.length)>c&&(0,i.tZ)(l.S,{row:1,column:c,isDotsShown:!0,isArrowShown:!d,className:"scroll-list",mode:d?"snapped":void 0,children:null==s?void 0:null===(n=s.post)||void 0===n?void 0:n.map((e,t)=>(0,i.tZ)(SingleSpotlightSubot,{isMobile:d,subotInfo:e},t))},"subot-".concat(d))]})]})}},hH53:function(e,t,r){r.d(t,{_:function(){return SuccessBox}});var i=r("BGKE"),a=r("q1tI"),o=r("nGnw"),l=r("wp0n"),n=r("8wjV"),d=r("Eso5"),s=r("dDsW"),c=(0,r("/npG").k)(()=>({heading:{textAlign:"center"},description:{textAlign:"center"},root:{display:"flex",flexDirection:"column",gap:12,alignItems:"center"},body:{display:"flex",flexDirection:"column",gap:8,alignItems:"center"},img:{height:160},button:{}}));let SuccessBox=e=>{let{heading:t,description:r,image:p,ctaText:g,styles:h,classNames:u,className:m,onClose:f,onInit:x}=e,{formatMessage:v}=(0,s.Z)(),{classes:b,cx:y}=c(void 0,{name:"SuccessBox",styles:h,classNames:u});return(0,a.useEffect)(()=>{null==x||x()},[]),(0,i.BX)(d.x,{className:y(m,b.root),children:[(0,i.BX)(d.x,{className:b.body,children:[(0,i.tZ)("img",{className:b.img,src:p||o.C.getAssetPath("complete.svg"),alt:"Thank you",loading:"lazy"}),t&&(0,i.tZ)(l.T,{size:"h4",className:b.heading,children:t}),r&&(0,i.tZ)(l.T,{size:"p2",className:b.description,sx:{textAlign:"center"},children:r})]}),(0,i.tZ)(n.B,{variant:"primary",className:b.button,onClick:()=>null==f?void 0:f(),children:g||v({id:"subot.landingPage.booking.done"})})]})}},"1dAL":function(e,t,r){r.d(t,{T:function(){return TableOfContent}});var i=r("BGKE"),a=r("q1tI"),o=r("rBCA"),l=r("iBNF");let n=(0,o.Z)("div",{target:"e16c9ozp0"})("display:flex;flex-wrap:wrap;align-items:center;.organisation{color:",l.r.colors.gray500,";a,a:visited{text-decoration:none;}a[href]{color:",l.r.colors.gray500,";text-decoration:underline;}}--font-weight-lg:",l.r.sizes.fwBold,";--font-weight-md:",l.r.sizes.fwSemiBold,";--font-weight-sm:",l.r.sizes.fwRegular,";&[data-size='lg']{font-size:18px;font-weight:var(--font-weight-lg);line-height:26px;}&[data-size='md']{font-size:16px;font-weight:var(--font-weight-md);line-height:24px;}&[data-size='sm']{font-size:14px;font-weight:var(----font-weight-sm);line-height:22px;}"),d=(0,o.Z)("span",{target:"e16c9ozp1"})("p{color:",l.r.colors.gray500,";}"),s=(0,o.Z)("a",{target:"e16c9ozp2"})("color:",l.r.colors.secondaryBase,";text-decoration:auto;"),c=(0,o.Z)("span",{target:"e16c9ozp3"})("margin:0 0.4em;color:",l.r.colors.neutral300,";"),TableOfContent=e=>{let{className:t,size:r="md",contents:o,separator:l="|",contentClassName:p}=e;return(0,i.tZ)(n,{className:t,"data-size":r,children:o.map((e,t)=>e?(0,i.BX)(a.Fragment,{children:[e&&"object"==typeof e&&"label"in e&&"id"in e?(0,i.tZ)(s,{href:"#".concat(e.id),className:p,children:e.label}):(0,i.tZ)(d,{className:p,children:e}),t+1{let{style:t,initialTab:r,tabContent:n,onChange:d,className:s}=e,[u,m]=(0,a.useState)(r||0),f=(0,l.Me)(n.length);return(0,a.useEffect)(()=>{m(r)},[r]),(0,i.tZ)(c,{style:t,className:s,children:n.map((e,t)=>(0,i.tZ)(p,{"data-is-tab-active":u===t||void 0,onClick:()=>{m(t),d&&d(t)},children:(0,i.BX)(g,{children:[e.icon&&(0,i.tZ)(h,{children:e.icon}),(0,i.tZ)(o.T,{size:"sm",type:"bold",children:(0,i.tZ)("a",{"data-event-category":e.dataEventCategory,"data-event-action":e.dataEventAction,"data-event-label":e.dataEventLabel,className:"pointer-event-child-none",children:e.name})})]})},f[t]))})}},"5VjO":function(e,t,r){r.d(t,{S:function(){return ThailandCommemorateModal}});var i=r("BGKE"),a=r("q1tI"),o=r("uuQu"),l=r("nGnw"),n=r("fNFL"),d=r("Eso5"),s=r("Iblh"),c=r("Wgwc"),p=r.n(c),g=r("P5LW"),h=r("rEaw");let ThailandCommemorateModal=()=>{let{locale:e}=(0,g.h)(),[t,{open:r,close:c}]=(0,s.q)(!1);return((0,a.useEffect)(()=>{let e=p()("2025-10-24"),t=p()(),i=t.diff(e,"day");i<=90&&r()},[]),e!==h.MV.Thailand)?null:(0,i.tZ)(n.M,{opened:t,onClose:c,size:750,zIndex:500,styles:{header:{borderBottom:0}},children:(0,i.BX)(d.x,{component:"picture",sx:e=>({width:"100%",height:0,display:"block",position:"relative",paddingBottom:"".concat(858/686*100,"%"),img:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"},[e.fn.largerThan("sm")]:{paddingBottom:"".concat(854/1280*100,"%")}}),children:[(0,i.tZ)("source",{srcSet:l.C.getAssetPath("thailandCommemorate/queen-mother.desktop.jpeg"),media:"(min-width: ".concat(o.B.BREAK_POINT_TABLET,"px)")}),(0,i.tZ)("img",{alt:"สถิตอยู่ในใจตราบนิรันดร์",loading:"lazy",srcSet:l.C.getAssetPath("thailandCommemorate/queen-mother-mobile.jpeg"),style:{objectFit:"cover",width:"100%",height:"100%"}})]})})}},YfNm:function(e,t,r){r.d(t,{u:function(){return getThrResult}});var i=r("iBNF");let getThrResult=(e,t,r,a,o)=>{let l=new Date().getTime()-new Date(e).getTime()>=567648e6,n=[{id:4,value:"Athlete",title:a({id:"targetHeartRate.result.athlete",defaultMessage:"Athlete"}),color:i.r.colors.primary500,colorTitle:i.r.colors.primary500},{id:3,value:"Excellent",title:a({id:"targetHeartRate.result.excellent",defaultMessage:"Excellent"}),color:i.r.colors.green800,colorTitle:i.r.colors.green800},{id:2,value:"Good",title:a({id:"targetHeartRate.result.good",defaultMessage:"Good"}),color:i.r.colors.green500,colorTitle:i.r.colors.green500},{id:1,value:"Average",title:a({id:"targetHeartRate.result.average",defaultMessage:"Average"}),color:i.r.colors.yellow600,colorTitle:i.r.colors.yellow600},{id:0,value:"Poor",title:a({id:"targetHeartRate.result.poor",defaultMessage:"Poor"}),color:i.r.colors.red800,colorTitle:i.r.colors.red800}],d=[{id:2,value:"Abnormal",title:a({id:"targetHeartRate.result.abnormal",defaultMessage:"Abnormal"}),color:i.r.colors.neutral50,colorTitle:i.r.colors.gray500},{id:1,value:"Normal",title:a({id:"targetHeartRate.result.normal",defaultMessage:"Normal"}),color:i.r.colors.green500,colorTitle:i.r.colors.green500},{id:0,value:"Abnormal",title:a({id:"targetHeartRate.result.abnormal",defaultMessage:"Abnormal"}),color:i.r.colors.neutral50,colorTitle:i.r.colors.gray500}],s=l?n:d,c=s.map((e,t)=>{var i,a;return{id:e.id,value:e.value,title:e.title,color:e.color,colorTitle:e.colorTitle,markupMin:null===(i=r[t])||void 0===i?void 0:i.markup,markupMax:(null===(a=r[t+1])||void 0===a?void 0:a.markup)-1||200}}),p=c.find(e=>e.value===o&&parseFloat(t)>=e.markupMin&&parseFloat(t)<=e.markupMax)||c[0];return{result:p,resultType:s,resultChart:c}}},"/N9F":function(e,t,r){r.d(t,{c:function(){return ThrIllustrator}});var i=r("BGKE"),a=r("DEkF"),o=r("MmHG"),l=r("iBNF"),n=r("dDsW"),d=r("rIrU"),s=r("VxsQ"),c=r.n(s),p=r("rBCA");let g=(0,p.Z)("div",{target:"e6dj7du0"})("position:relative;display:flex;justify-content:center;width:10px;height:200px;svg{width:41px;height:41px;object-fit:contain;}.dot{position:absolute;z-index:100;animation:dot-ruler ease 2s 1;margin-top:",e=>e["data-mgTop"],"px;}@keyframes dot-ruler{from{margin-top:180px;}to{margin-top:",e=>e["data-mgTop"],"px;}}"),h=(0,p.Z)("div",{target:"e6dj7du1"})("position:absolute;display:flex;justify-content:flex-start;flex-direction:column;height:100%;.line-illustrator{display:flex;width:14px;justify-content:flex-start;border:3px solid #e4e8ec;border-bottom:none;}.line-illustrator:first-of-type{border-radius:16px 16px 0 0;}.line-illustrator:last-child{border-radius:0 0 16px 16px;border-bottom:3px solid #e4e8ec;}"),u=(0,p.Z)("div",{target:"e6dj7du2"})("position:absolute;display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:70px;margin-top:",e=>e["data-last"]?e["data-mgTop"]-16:e["data-mgTop"]-13,"px;margin-left:-82px;"),m=(0,p.Z)("div",{target:"e6dj7du3"})("width:24px;height:1px;background-color:",l.r.colors.neutral100,";"),f=(0,p.Z)("div",{target:"e6dj7du4"})("display:flex;flex-direction:column;justify-content:center;align-items:center;padding:16px;margin:18px 0;gap:32px;width:100%;border:1px solid #e4e8ec;box-sizing:border-box;border-radius:",l.r.borderRadius,";"),x=(0,p.Z)("div",{target:"e6dj7du5"})("display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;width:100%;"),v=(0,p.Z)("div",{target:"e6dj7du6"})("display:flex;flex-direction:row;justify-content:center;align-items:center;gap:12px;width:100%;"),b=(0,p.Z)("div",{target:"e6dj7du7"})("display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;width:50%;");var y=r("YfNm");let ThrIllustrator=e=>{let{age:t,rate:r,status:s,chart:p,isAdult:w=!0,levelActive:Z}=e,{formatMessage:k}=(0,n.Z)(),{result:B,resultType:C,resultChart:T}=(0,y.u)(t,r,p,k,s),S=C.length,M=200/S,N=Math.round(M*B.id-20+M*(B.markupMax-parseFloat(r))/(B.markupMax-B.markupMin));return(0,i.BX)(f,{children:[(0,i.BX)(x,{children:[(0,i.tZ)("img",{loading:"lazy",style:{height:"48px",width:"48px",objectFit:"contain"},src:"".concat(d.Nr,"/thr-ideal.svg"),alt:""}),(0,i.tZ)(a.H,{tag:"h3",as:"h1",fontWeight:"bold",color:"#404040",children:k({id:"targetHeartRate.result.title",defaultMessage:"Your Resting Heart Rate"})}),(0,i.tZ)(o.T,{size:"p3",color:"#595959",children:(0,i.tZ)("span",{dangerouslySetInnerHTML:{__html:k({id:"targetHeartRate.status",defaultMessage:"classification is {status}"},{status:'').concat(null==B?void 0:B.title,"")})}})})]}),(0,i.BX)(v,{children:[(0,i.BX)(b,{children:[(0,i.tZ)(o.T,{size:"p4",color:"#595959",children:Z.label}),(0,i.tZ)("img",{loading:"lazy",style:{height:"180px",width:"180px",objectFit:"contain"},src:Z.image,alt:""})]}),!!p&&(0,i.tZ)(b,{children:(0,i.BX)(g,{"data-mgTop":N,children:[(0,i.tZ)(c(),{className:"dot"}),(0,i.tZ)(h,{children:T.reverse().map((e,t)=>(0,i.tZ)("div",{className:"line-illustrator",style:{height:"".concat(M,"%"),backgroundColor:e.color},children:w?(0,i.BX)(u,{"data-mgTop":M,"data-last":t===S-1,children:[(0,i.BX)(a.H,{tag:"h6",color:l.r.colors.gray400,children:[e.markupMin,0===t&&"+"]}),(0,i.tZ)(m,{})]}):t!==S-1&&(0,i.BX)(u,{"data-mgTop":M,children:[(0,i.tZ)(a.H,{tag:"h6",color:l.r.colors.gray400,children:e.markupMin}),(0,i.tZ)(m,{})]})},"pwg-ruler".concat(t)))})]})})]})]})}},"51Lw":function(e,t,r){r.d(t,{f:function(){return ThrInputForm}});var i=r("BGKE"),a=r("q1tI"),o=r("u7wK"),l=r("wp0n"),n=r("Wgwc"),d=r.n(n),s=r("dDsW"),c=r("rIrU");let ThrInputForm=e=>{let{info:t,className:r,style:n,onChange:p,errorMessage:g={}}=e,{formatMessage:h}=(0,s.Z)(),[u,m]=(0,a.useState)({age:!1,rate:!1});(0,a.useEffect)(()=>{m({age:!1,rate:!1})},[g]);let[f,x]=(0,a.useState)(new Date);return(0,i.tZ)("div",{style:n,className:r,children:(0,i.tZ)(o.D,{name:"thr-age",size:"md",className:"due-date-input",label:(0,i.tZ)(l.T,{size:"s4",weight:"semiBold",children:h({id:"targetHeartRate.ageInput",defaultMessage:"What is your date of birth?"})}),value:f,onChange:e=>{x(e),m(e=>({...e,age:!0}));let r={...t,age:d()(e).format(c.yJ)};p&&p(r)},excludeDate:e=>d()(e).isAfter(d()()),error:u.age?"":g.age})})}},rni7:function(e,t,r){r.d(t,{N:function(){return ToolCarousel}});var i=r("BGKE"),a=r("q1tI"),o=r("DEkF"),l=r("MmHG"),n=r("LgdP"),d=r("fdQd"),s=r("dDsW"),c=r("CJtR"),p=r("hXNO"),g=r("P5LW"),h=r("rIrU"),u=r("rBCA"),m=r("uuQu"),f=r("iBNF");let x=(0,u.Z)("div",{target:"e3lm53x0"})("width:100%;.mantine-Carousel-indicator{width:8px;height:8px;",m.M.mbDown,"{background:",null===f.r||void 0===f.r?void 0:f.r.colors.pink800,";transform:translateY(32px);}}"),v=(0,u.Z)("div",{target:"e3lm53x1"})("background:",null===f.r||void 0===f.r?void 0:f.r.colors.pink800,";border-radius:",f.r.borderRadius,";height:100%;& > div{display:flex;justify-content:center;align-items:center;padding-block:50px;}.wrapper{margin:0 auto;display:flex;gap:60px;max-width:800px;align-items:center;}.content{display:flex;flex-direction:column;gap:16px;a{width:fit-content;}}.subtitle{display:flex;align-items:center;gap:12px;}.reviewer{}.banner{img{width:180px;height:180px;}}.button{background-color:#ffffff;color:",null===f.r||void 0===f.r?void 0:f.r.colors.pink800,";border:none;}",m.M.mbDown,"{padding:16px;& > div{padding-block:16px;}.wrapper{gap:8px;}.content{max-width:250px;}.banner{img{width:100px;height:100px;}}}"),Tool=e=>{let{tool:t}=e,{formatMessage:r}=(0,s.Z)(),u=(0,p.d)(),{locale:m}=(0,g.h)(),{title:f,name:x,profileUrl:b,avatar:y,role:w}=(0,a.useMemo)(()=>{if(void 0!==(null==t?void 0:t.reviewedBy)&&(null==t?void 0:t.reviewedBy)){let{role:e,displayName:i,profileUrl:a,avatar:o}=null==t?void 0:t.reviewedBy;return"expert"===e?{title:r({id:"articleAuthor.title.expert",defaultMessage:"Expertly reviewed by"}),name:i,profileUrl:a,avatar:o,role:e}:{title:r({id:"articleAuthor.title.medical",defaultMessage:"Medically reviewed by"}),name:i,profileUrl:a,avatar:o,role:e}}return{title:null,name:null,profileUrl:null,avatar:null,role:null}},[t]);return(0,i.BX)(v,{children:[(0,i.tZ)("div",{children:(0,i.BX)("div",{className:"wrapper",children:[(0,i.BX)("div",{className:"content",children:[(0,i.tZ)(o.H,{tag:"h3",color:"#F7F9FC",children:t.title}),void 0!==(null==t?void 0:t.reviewedBy)&&(null==t?void 0:t.reviewedBy)&&(0,i.BX)("div",{className:"subtitle",children:[(0,i.tZ)(d.A,{src:y,size:32,withIndicator:!!w,indicatorConfig:w?{size:14,offset:5,label:(0,i.tZ)("img",{loading:"lazy",width:"14",height:"14",src:"".concat(h.Nr,"/article-").concat(w,".svg"),alt:""})}:void 0}),(0,i.BX)("div",{className:"reviewer",children:[f&&(0,i.tZ)(l.T,{size:"p3",color:"#F7F9FC",as:"span",children:f}),x&&(0,i.tZ)("a",{"data-event-category":"Reviewer Name","data-event-action":x,"data-event-label":"".concat((0,c.UC)(m)).concat(b),href:b||"#",children:(0,i.tZ)(l.T,{size:"p3",color:"#F7F9FC",type:"semiBold",as:"span",children:x})}),t.reviewedDate&&(0,i.BX)(l.T,{size:"p3",color:"#F7F9FC",as:"span",children:[" ","• ",t.reviewedDate]})]})]}),!u&&(0,i.tZ)("a",{href:t.link,"data-event-category":"Health Tool","data-event-action":"Embedded Calculation Click","data-event-label":"".concat((0,c.UC)(m)).concat(t.link),className:"pointer-event-child-none",children:(0,i.tZ)(n.B,{size:"lg",color:"tertiary",className:"button",children:r({id:"dueDateCard.button"})})})]}),(0,i.tZ)("div",{className:"banner",children:(0,i.tZ)("img",{src:t.icon||"".concat(h.Nr,"/due-date-card.png?v=1"),alt:"decorative background for the due date card",loading:"lazy"})})]})}),u&&(0,i.tZ)("a",{href:t.link,"data-event-category":"Health Tool","data-event-action":"Embedded Calculation Click","data-event-label":t.link,className:"pointer-event-child-none",children:(0,i.tZ)(n.B,{size:"lg",color:"tertiary",className:"button",isBlock:!0,children:r({id:"dueDateCard.button"})})})]})},ToolCarousel=e=>{let{tools:t,...r}=e,a=(0,p.d)();return(0,i.tZ)(x,{...r,children:t&&t.length>0&&(0,i.tZ)(d.a,{controlSize:40,controlsOffset:40,withIndicators:t.length>1,withControls:!a&&t.length>1,draggable:t.length>1,children:t.map(e=>(0,i.tZ)(d.a.Slide,{children:(0,i.tZ)(Tool,{tool:e})},e.id))})})}},dUKT:function(e,t,r){r.d(t,{a:function(){return ToolsBannerCard}});var i=r("BGKE"),a=r("DEkF"),o=r("iBNF"),l=r("MmHG"),n=r("TSYQ"),d=r.n(n),s=r("gHFm"),c=r("rIrU"),p=r("rBCA"),g=r("uuQu");let h=(0,p.Z)("div",{target:"e14f2q0h0"})("margin-top:8px;&[data-is-mobile='false']{display:flex;width:60%;min-width:600px;align-items:center;& >:first-of-type{margin-right:18px;}}"),u=(0,p.Z)("div",{target:"e14f2q0h1"})("&[data-is-mobile='false']{max-width:540px;}",g.M.tdUp,"{padding-right:120px;}"),m=(0,p.Z)("div",{target:"e14f2q0h2"})("display:flex;align-items:flex-start;margin-top:10px;color:",o.r.colors.white,";font-size:",o.r.sizes.fsParagraph4,";> img{margin-top:2px;margin-right:4px;}&[data-is-mobile='false']{margin-top:12px;> img{width:16px;height:16px;}}&[data-is-mobile='true']{> img{width:14px;height:14px;}}"),f=(0,p.Z)("div",{target:"e14f2q0h3"})("position:absolute;z-index:0;right:16px;bottom:-10px;display:flex;min-width:100px;max-width:150px;min-height:100px;align-items:center;img{width:100px;height:100px;}&[data-is-mobile='false']{bottom:-34px;min-width:280px;max-width:initial;min-height:280px;img{width:100%;height:100%;}}",g.M.mbDown,"{width:70px;}"),x=(0,p.Z)("div",{target:"e14f2q0h4"})("position:relative;z-index:1;padding:8px 16px;&[data-is-mobile='false']{max-width:calc(100% - 210px);padding:50px 16px 90px 16px;}"),v=(0,p.Z)("div",{target:"e14f2q0h5"})("position:relative;"),b=(0,p.Z)("div",{target:"e14f2q0h6"})("position:relative;width:100%;height:100%;background-color:",o.r.colors.primaryBase,";&[data-banner-color]{background-color:",e=>e["data-banner-color"],";}background-position:bottom center;background-repeat:no-repeat;background-size:cover;padding-bottom:40px;&[data-banner-url]{background-color:inherit;background-image:url(",e=>e["data-banner-url"]||"".concat(c.Nr,"/toolBannerBlue-circle.svg"),");}"),y=(0,p.Z)("div",{target:"e14f2q0h7"})("width:100%;padding-bottom:24px;margin-bottom:8px;",g.M.tdDown,"{height:auto;",b,"{",v,"{display:flex;flex-direction:column-reverse;",f,"{position:relative;right:unset;bottom:unset;width:180px;min-width:0;height:auto;min-height:0;align-self:flex-end;margin-bottom:-20px;}",x,"{&[data-is-mobile='false']{max-width:100%;padding:50px 16px 0 16px;}}}}&.isEmbed{",b,"{.container{padding:0;}}}}"),ToolsBannerCard=e=>{let{className:t,heading:r,isMobile:n,description:p,bannerColor:g,bannerUrl:w,bannerUrlLarge:Z,medicalReview:k,icon:B,isHomePage:C,style:T,isEmbed:S}=e,M=S?"h2":n?"h3":"h1",N=S?"p2":n?"label1":"p3";return(0,i.tZ)(y,{"data-is-mobile":n,className:d()({isEmbed:S}),style:{...T},children:(0,i.tZ)(b,{className:t,"data-banner-url":n?w:Z||w,"data-banner-color":g,"data-is-mobile":n,style:{minHeight:"200px"},children:(0,i.tZ)(s.W,{className:"container",children:(0,i.BX)(v,{children:[(0,i.tZ)(f,{"data-is-mobile":n,children:B}),(0,i.BX)(x,{"data-is-mobile":n,children:[(0,i.tZ)(h,{"data-is-mobile":n,children:(0,i.tZ)(a.H,{color:o.r.colors.white,tag:M,as:"h2",children:r})}),(0,i.tZ)(u,{"data-is-mobile":n,children:(0,i.tZ)(l.T,{color:o.r.colors.white,size:N,children:p})}),k&&(0,i.BX)(m,{"data-is-mobile":n,children:[(0,i.tZ)("img",{loading:"lazy",src:"".concat(c.Nr,"/check-circle.svg"),alt:""}),k]})]})]})})})})}},"0UxZ":function(e,t,r){r.d(t,{I:function(){return ToolsBannerCardV2}});var i=r("BGKE"),a=r("DEkF"),o=r("wp0n"),l=r("fdQd"),n=r("Eso5"),d=r("7Ci/"),s=r("OAL+"),c=r("mYVa"),p=r("SPK5"),g=r("dDsW"),h=r("Q7Fe"),u=r("hXNO"),m=r("P5LW"),f=r("rIrU"),x=r("tQmg"),v=r("/npG"),b=(0,v.k)((e,t)=>{let{isPink:r}=t;return{root:{},inner:{width:80,height:80,borderRadius:"50%",background:r?e.colors.pink[0]:e.colors.blue[0],[e.fn.largerThan("sm")]:{width:168,height:168}},wrapper:{maxWidth:42,maxHeight:42,[e.fn.largerThan("sm")]:{maxWidth:88,maxHeight:88}}}});let EllipseImage=e=>{let{icon:t,isPink:r,className:a,styles:o,classNames:l,...d}=e,{classes:c,cx:p}=b({isPink:r},{name:"EllipseImage",styles:o,classNames:l});return(0,i.tZ)(n.x,{className:p(a,c.root),sx:{position:"relative"},...d,children:(0,i.tZ)(s.K,{className:c.inner,align:"center",justify:"center",children:(0,i.tZ)(n.x,{className:c.wrapper,children:t})})})};var y=(0,v.k)((e,t)=>{let{isPink:r}=t;return{root:{backgroundColor:r?e.colors.pink[1]:e.colors.blue[1],[e.fn.smallerThan("sm")]:{overflow:"hidden"}},inner:{padding:"".concat((0,c.h)(8)," 0"),[e.fn.largerThan("sm")]:{padding:"".concat((0,c.h)(12)," 0 ").concat((0,c.h)(24))},[e.fn.smallerThan("sm")]:{paddingBottom:(0,c.h)(12)}},thumbnailCol:{position:"absolute",[e.fn.largerThan("sm")]:{right:0,top:"50%",transform:"translateY(-50%)"},[e.fn.smallerThan("sm")]:{right:16,bottom:10}},thumbnail:{},thumbnailWrapper:{},thumbnailInner:{},medicalReview:{position:"relative",minHeight:48,[e.fn.smallerThan("sm")]:{'&[data-icon="true"]':{paddingRight:90}}}}}),w=r("2kea");let ToolsBannerCardV2=e=>{let{heading:t,description:r,icon:l,reviewBy:p,isPink:g,breadcrumbProps:m,styles:f,classNames:x,className:v,...b}=e,{classes:Z,cx:k}=y({isPink:g},{name:"ToolsBannerCardV2",styles:f,classNames:x}),B=(0,u.d)();return(0,i.tZ)(n.x,{className:k(v,Z.root),...b,children:(0,i.tZ)(d.W,{size:"lg",className:"container",style:{position:"relative"},children:(0,i.tZ)(n.x,{className:Z.inner,children:(0,i.BX)(s.K,{spacing:(0,c.h)(24),children:[!B&&m&&(0,i.tZ)(w.d,{...m,style:{margin:0,padding:0}}),(0,i.BX)(s.K,{spacing:(0,c.h)(12),sx:()=>({width:"100%",maxWidth:(0,c.h)(744)}),children:[(0,i.BX)(s.K,{spacing:(0,c.h)(8),children:[(0,i.tZ)(a.H,{tag:"h2",as:"h1",children:t}),(0,i.tZ)(o.T,{size:"p3",as:"div",sx:e=>({[e.fn.smallerThan("sm")]:{...!(null==p?void 0:p.reviewer)&&{width:"calc(100% - 80px)"}}}),children:(0,i.tZ)(h.G,{content:r})})]}),(null==p?void 0:p.avatar)&&(null==p?void 0:p.reviewer)&&(0,i.tZ)(n.x,{className:Z.medicalReview,"data-icon":String(!!l),children:(0,i.tZ)(MedicalReview,{reviewBy:p})})]}),l&&(0,i.tZ)(n.x,{className:Z.thumbnailCol,children:(0,i.tZ)(EllipseImage,{classNames:{root:Z.thumbnail,wrapper:Z.thumbnailWrapper,inner:Z.thumbnailInner},icon:l,isPink:g})})]})})})})},MedicalReview=e=>{let{reviewBy:t,isMobile:r,size:a="default"}=e,{formatMessage:d}=(0,g.Z)(),{locale:s}=(0,m.h)();return(null==t?void 0:t.avatar)&&(null==t?void 0:t.reviewer)?(0,i.BX)(p.k,{gap:12,sx:e=>({alignItems:"flex-start",[e.fn.smallerThan("sm")]:{position:"relative",zIndex:1}}),children:[(0,i.tZ)(n.x,{pos:"relative",top:3,children:(0,i.tZ)(l.A,{size:"default"===a?32:20,src:t.avatar,withIndicator:!0,indicatorConfig:{size:18,label:(0,i.tZ)("img",{loading:"lazy",width:"16",src:"".concat(f.Nr,"/reviewer-medical.svg"),alt:""})},styles:{root:{".mantine-Indicator-indicator":{bottom:"default"===a?"7px":"4px",right:"default"===a?"5px":"3px"},".mantine-Avatar-placeholder":{border:0}}}})}),(0,i.BX)(o.T,{size:r?"p3":"p4",color:"gray.6",as:"div",sx:e=>({lineHeight:"".concat((0,c.h)(24),"!important"),[e.fn.largerThan("sm")]:{div:{display:"inline"}}}),children:[d({id:"articleAuthor.title.medical"})," ",(0,i.BX)("span",{children:[(0,i.tZ)("a",{href:t.link||"#",style:{color:"#262626"},children:t.reviewer}),t.date&&" • "]}),t.date&&(0,i.tZ)("span",{children:(0,x.m)(t.date,s)})]})]}):null};ToolsBannerCardV2.MedicalReview=MedicalReview},lnkF:function(e,t,r){r.d(t,{V:function(){return ToolsBannerCardV3}});var i=r("BGKE"),a=r("wp0n"),o=r("Eso5"),l=r("SPK5"),n=r("OAL+"),d=r("/npG"),s=(0,d.k)((e,t)=>{let{color:r="blue"}=t;return{root:{width:96,height:96,borderRadius:"50%",backgroundColor:"rgba(255,255,255,0.75)"},inner:{width:79,height:79,borderRadius:"50%",background:"#fff",boxShadow:"0px 3.9px 19.51px 0px ".concat(e.colors[r][1],"66")},wrapper:{maxWidth:40,maxHeight:40}}});let EllipseImage=e=>{let{icon:t,color:r,className:a,styles:n,classNames:d,...c}=e,{classes:p,cx:g}=s({color:r},{name:"EllipseImage",styles:n,classNames:d});return(0,i.tZ)(l.k,{className:g(a,p.root),align:"center",justify:"center",...c,children:(0,i.tZ)(l.k,{className:p.inner,align:"center",justify:"center",children:(0,i.tZ)(o.x,{className:p.wrapper,children:t})})})};var c=(0,d.k)((e,t)=>{var r;let{color:i="blue"}=t;return{root:{backgroundColor:(null===(r=e.colors[i])||void 0===r?void 0:r[1])||e.colors.blue[1],borderRadius:16,padding:24},thumbnailCol:{}}});let ToolsBannerCardV3=e=>{let{heading:t,description:r,color:d,icon:s,styles:p,classNames:g,className:h,...u}=e,{classes:m,cx:f,theme:x}=c({color:d},{name:"ToolsBannerCardV3",styles:p,classNames:g});return(0,i.tZ)(o.x,{className:f(h,m.root),...u,children:(0,i.BX)(l.k,{gap:24,align:"center",children:[s&&(0,i.tZ)(o.x,{className:m.thumbnailCol,children:(0,i.tZ)(EllipseImage,{icon:s,color:d})}),(0,i.BX)(n.K,{spacing:8,children:[(0,i.tZ)(a.T,{size:"s2",color:x.colors.gray[8],weight:"semiBold",children:t}),(0,i.tZ)(a.T,{size:"p4",as:"div",color:x.colors.gray[7],children:(0,i.tZ)("div",{dangerouslySetInnerHTML:{__html:r}})})]})]})})}},XRSz:function(e,t,r){r.r(t),r.d(t,{CustomReferenceDot:function(){return CustomReferenceDot},ToolsChart:function(){return ToolsChart}});var i=r("BGKE"),a=r("q1tI"),o=r("iBNF"),l=r("DEkF"),n=r("MmHG"),d=r("dDsW"),s=r("ps87"),c=r("4cdY"),p=r("i8Hr"),g=r("y9N3"),h=r("J+eN"),u=r("FQZO"),m=r("b+jq"),f=r("wwo5"),x=r("rBCA");let v=(0,x.Z)("div",{target:"er49wtm0"})("display:flex;flex-direction:column;align-items:center;justify-content:center;& >:last-child{margin-top:8px;text-align:center;}margin-bottom:32px;"),CustomReferenceDot=e=>(0,i.tZ)("circle",{...e,children:(0,i.tZ)("animate",{attributeName:"r",values:"4;8;4",dur:"2s",begin:"0s",repeatCount:"indefinite"})}),XTick=e=>{let{payload:t,x:r,y:a}=e;return(0,i.tZ)("g",{transform:"translate(".concat(r,",").concat(a,")"),children:(0,i.tZ)("text",{fontSize:10,x:0,y:0,dy:0,textAnchor:"end",fill:"#666",transform:"rotate(-90)",children:t.value})})},YTick=e=>{let{payload:t,x:r,y:a}=e;return(0,i.tZ)("g",{transform:"translate(".concat(r,",").concat(a,")"),children:(0,i.tZ)("text",{fontSize:13,x:0,y:0,dy:0,textAnchor:"end",fill:"#666",children:t.value+"%"})})},ToolsChart=e=>{let{chartData:t,chartDescription:r,className:x,highlightBmi:b,color:y=o.r.colors.primaryBase}=e,{formatMessage:w}=(0,d.Z)(),Z=t.map(e=>({...e,percent:100*e.percent})),{x:k,y:B}=(0,a.useMemo)(()=>{var e;return{x:Number(b),y:Number(null===(e=Z.find(e=>e.bmi===Number(Math.round(Number(b)))))||void 0===e?void 0:e.percent)}},[Z,b]);return(0,i.BX)(i.HY,{children:[(0,i.BX)(v,{children:[(0,i.tZ)(l.H,{tag:"h5",children:w({id:"bmi.result.chartTitle",defaultMessage:"Comparison to local statistics"})}),(0,i.tZ)(n.T,{size:"p3",children:r})]}),(0,i.tZ)(s.h,{className:x,width:"100%",height:280,children:(0,i.BX)(c.w,{data:Z,margin:{top:5,right:5,bottom:20,left:5},children:[(0,i.tZ)(p.x,{type:"linear",dot:!0,activeDot:!1,id:"composed-chart-line",dataKey:"percent",stroke:o.r.colors.primaryBase,strokeWidth:"2",fill:"none",tooltipType:"none"},"percent"),(0,i.tZ)(g.q,{strokeDasharray:"3 3",stroke:o.r.colors.neutral100}),(0,i.tZ)(h.K,{interval:3,tick:XTick,tickLine:!1,axisLine:!1,dataKey:"bmi",children:(0,i.tZ)(u._,{offset:-20,position:"insideBottom",children:"BMI"})}),(0,i.tZ)(m.B,{tick:YTick,tickLine:!1,axisLine:!1,padding:{top:40,bottom:8},width:30,children:(0,i.tZ)(u._,{position:"insideTopLeft",children:"% vs. BMI"})}),void 0!==k&&void 0!==B&&(0,i.tZ)(f.q,{id:"ref-dot",x:Math.round(0===k?1:k),y:Math.round(B),r:4,shape:(0,i.tZ)(CustomReferenceDot,{}),fill:y,stroke:y},k)]})})]})}},Oeb5:function(e,t,r){r.d(t,{b:function(){return ToolsInfoCard}});var i=r("BGKE"),a=r("q1tI"),o=r("l9Yf"),l=r("rIrU"),n=r("rBCA"),d=r("iBNF"),s=r("gHFm");let c=(0,n.Z)("div",{target:"e7jwhf80"})("display:flex;width:100%;flex-direction:column;"),p=(0,n.Z)("div",{target:"e7jwhf81"})("display:flex;gap:4px;align-items:center;margin-bottom:12px;& > label{margin-left:4px;color:",d.r.colors.gray400,";font-weight:",d.r.sizes.fwBold,";}"),g=(0,n.Z)(s.W,{target:"e7jwhf82"})("/* width:100%;*/\n padding:0;"),ToolsInfoCard=e=>{let{children:t,icon:r,headingTitle:n,...d}=e;return(0,i.BX)(c,{...d,children:[(0,i.BX)(p,{children:[r||(0,i.tZ)("img",{loading:"lazy",style:{height:"16px",width:"16px"},src:"".concat(l.Nr,"/info-icon.svg"),alt:""}),a.isValidElement(n)?n:(0,i.tZ)(o.L,{size:"label1",htmlFor:"",children:n})]}),(0,i.tZ)(g,{children:t})]})}},Syxb:function(e,t,r){r.r(t),r.d(t,{ToolsRecordChart:function(){return ToolsRecordChart}});var i=r("BGKE");r("q1tI");var a=r("iBNF"),o=r("ps87"),l=r("4cdY"),n=r("y9N3"),d=r("J+eN"),s=r("b+jq"),c=r("hNiv"),p=r("lQYU"),g=r("i8Hr"),h=r("rBCA");let u=(0,h.Z)("div",{target:"e2ew7ku0"})(".recharts-wrapper{background-image:linear-gradient(\n to top,rgba(227,242,255,0.25) 0% 30%,rgba(224,248,238,0.25) 30% 50%,#fffdf8 50% 60%,#fff9ef 60% 75%,#fffaf9 75% 100%\n );background-repeat:no-repeat;background-position:66px -34px;}");a.r.colors.white,a.r.borderRadius;let CustomizedDot=e=>{let{active:t=!1,...r}=e,{cx:o,cy:l,payload:{score:n}}=r;return null===n?null:(0,i.BX)("svg",{x:o-13,y:l-13,width:26,height:26,viewBox:"0 0 ".concat(26," ").concat(26),children:[(0,i.tZ)("circle",{cx:13,cy:13,fill:a.r.colors.primaryBase,fillOpacity:t?.4:0,strokeWidth:2,r:11}),(0,i.tZ)("circle",{cx:13,cy:13,r:4,fill:a.r.colors.white,stroke:a.r.colors.primaryBase,strokeWidth:2})]})},ToolsRecordChart=e=>{let{isMobile:t,data:r,xAxisProps:h,yAxisProps:m,showReferenceLine:f=!0}=e;return(0,i.tZ)(u,{children:(0,i.tZ)(o.h,{width:"100%",height:t?200:300,children:(0,i.BX)(l.w,{children:[(0,i.tZ)(n.q,{strokeDasharray:"1",vertical:!0}),(0,i.tZ)(d.K,{dataKey:"date",type:"category",allowDuplicatedCategory:!1,tickSize:0,tickMargin:18,tick:{fill:a.r.colors.gray400,fontWeight:600},stroke:a.r.colors.gray800,padding:{right:20},...h}),(0,i.tZ)(s.B,{dataKey:"score",tickSize:0,tickMargin:18,tick:{fill:a.r.colors.gray400,fontWeight:600},stroke:a.r.colors.gray800,padding:{top:20},...m}),(0,i.tZ)(c.u,{wrapperStyle:{visibility:"visible"},cursor:!1}),f&&(0,i.tZ)(p.d,{x:r[r.length-1].date,strokeDasharray:"3 3",stroke:a.r.colors.primaryBase,strokeWidth:2}),(0,i.tZ)(g.x,{width:80,connectNulls:!0,isAnimationActive:!1,dataKey:"score",data:r,name:"score",dot:e=>{var t;return(0,i.tZ)(CustomizedDot,{...e,active:e.payload.date===(null===(t=r[r.length-1])||void 0===t?void 0:t.date)})},activeDot:e=>{var t;return(0,i.tZ)(CustomizedDot,{...e,active:e.payload.date===(null===(t=r[r.length-1])||void 0===t?void 0:t.date)})},strokeWidth:2,stroke:a.r.colors.primaryBase},"score")]})})})}},Pm4m:function(e,t,r){r.d(t,{d:function(){return ToolsShareSocial}});var i=r("BGKE"),a=r("q1tI"),o=r("l9Yf"),l=r("VwLB"),n=r("sVb9"),d=r("iBNF"),s=r("dDsW"),c=r("P5LW"),p=r("K4/T"),g=r.n(p),h=r("rBCA"),u=r("uuQu");let m=(0,h.Z)("div",{target:"e195vl940"})("margin-bottom:16px;"),f=(0,h.Z)("div",{target:"e195vl941"})("display:flex;flex-direction:column;align-items:flex-start;padding:16px;"),x=(0,h.Z)("div",{target:"e195vl942"})("display:flex;padding:0 16px;",u.M.mbUp,"{align-items:center;justify-content:center;}.share-icon{svg{width:32px;height:32px;}flex-shrink:0;margin-right:0.7em;&:last-child{margin-right:unset;}> a{display:flex;*{pointer-events:none;}}}"),ToolsShareSocial=e=>{let{className:t,shareUrl:r="",isMobile:p}=e,{formatMessage:h}=(0,s.Z)(),u=encodeURIComponent(r);""===u&&(u=encodeURIComponent(window.location.href));let{locale:v}=(0,c.h)(),b=(0,a.useMemo)(()=>(0,n.b)({shareUrl:r,locale:v}).filter(e=>!e.allowedLocales||e.allowedLocales.includes(v)),[v,r]);return(0,i.BX)(m,{className:t,children:[p&&(0,i.tZ)(f,{children:(0,i.tZ)(o.L,{size:"label1",htmlFor:"",style:{color:d.r.colors.gray400,fontWeight:"bold"},children:h({id:"tools.shareResultOn",defaultMessage:"Share result on"})})}),(0,i.BX)(x,{children:[!p&&(0,i.tZ)(f,{children:(0,i.tZ)(o.L,{size:"label1",htmlFor:"",style:{color:d.r.colors.gray400,fontWeight:"bold"},children:h({id:"tools.shareResultOn",defaultMessage:"Share result on"})})}),b.map((e,t)=>(0,i.tZ)(l.A,{className:"share-icon",avatarImg:(0,i.tZ)("a",{target:"_blank",href:e.href,"data-event-category":"Social Share","data-event-action":e.name,"data-event-label":e.href,children:e.icon}),type:"square"},t)),p&&(0,i.tZ)(l.A,{className:"share-icon-1",avatarImg:(0,i.tZ)("div",{onClick:()=>{if(navigator.share){let e=window.location.href;navigator.share({title:"My BMI result",text:e,url:e||"/"}).then(()=>console.log("Successful share")).catch(e=>console.log("Error sharing",e))}},children:(0,i.tZ)(g(),{})}),type:"square"})]})]})}},rITb:function(e,t,r){r.d(t,{I:function(){return ToolsSubmitButton}});var i=r("BGKE"),a=r("8wjV"),o=r("SPK5"),l=r("mYVa"),n=r("iv2E"),d=r("P5LW");let ToolsSubmitButton=e=>{let{title:t,onClick:r,link:s,toolName:c,source:p}=e,{locale:g}=(0,d.h)();return(0,i.tZ)(o.k,{justify:"center",children:(0,i.tZ)(a.B,{type:"submit",onClick:r,size:"md",dataEventCategory:p,dataEventAction:c,dataEventLabel:"https://".concat(n.domainLocales[g],"/").concat(s),fullWidth:!0,sx:{maxWidth:(0,l.h)(343)},children:t})})}},"l/jL":function(e,t,r){r.d(t,{r:function(){return ToolsSuggestionArticles}});var i=r("BGKE"),a=r("DEkF"),o=r("iBNF"),l=r("0D4Z"),n=r("dDsW"),d=r("gHFm"),s=r("iv2E"),c=r("P5LW"),p=r("rBCA"),g=r("uuQu");let h=(0,p.Z)("div",{target:"ea3u3xt0"})("background-color:",o.r.colors.neutral50,";"),u=(0,p.Z)("div",{target:"ea3u3xt1"})("width:100%;",g.M.mbUp,"{padding:0 16px 72px;&[data-is-expert-page]{padding:0;}}background-color:",o.r.colors.white,";",g.M.mbDown,"{padding-bottom:48px;& >:first-of-type{padding:48px 16px 0;}}"),m=(0,p.Z)("div",{target:"ea3u3xt2"})("display:flex;align-items:center;justify-content:space-between;",g.M.mbUp,"{padding:80px 0 32px;}& > div > [data-tag='h3']{line-height:32px;}"),f=(0,p.Z)("div",{target:"ea3u3xt3"})(g.M.mbUp,"{padding:16px;}background-color:",o.r.colors.white,";"),x=(0,p.Z)("div",{target:"ea3u3xt4"})("display:flex;width:100%;align-items:center;justify-content:center;padding:8px 0;background-color:",o.r.colors.white,";cursor:pointer;.see-more-text{pointer-events:none;color:",o.r.colors.primaryBase,";}& >:first-of-type{margin-right:4px;}",g.M.mbUp,"{padding:0;width:auto;& > div > [data-tag='h5']{font-weight:bold;line-height:24px;font-size:",o.r.sizes.fsHeading6,";}}"),v=(0,p.Z)("div",{target:"ea3u3xt5"})("margin-top:8px;& >:not(:last-child){margin-bottom:8px;}background-color:",o.r.colors.neutral50,";"),b=(0,p.Z)("div",{target:"ea3u3xt6"})(g.M.mbUp,"{padding:24px 16px;}",g.M.mbDown,"{padding:24px 0;}background-color:",o.r.colors.white,";.banner{width:100%;min-height:192px;}"),y=(0,p.Z)("div",{target:"ea3u3xt7"})("display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;"),w=(0,p.Z)("div",{target:"ea3u3xt8"})("width:100%;max-width:600px;margin-bottom:32px;background-color:",o.r.colors.white,";& > div > div{height:100%;}.banner{min-height:312px;}"),Z=(0,p.Z)("div",{target:"ea3u3xt9"})("background-color:",o.r.colors.white,";.desktop-article[data-type='group1'][data-size='sm'] > .banner{width:150px;height:100px;}"),k=(0,p.Z)("div",{target:"ea3u3xt10"})("display:flex;width:100%;background-color:",o.r.colors.white,";& >:first-of-type{margin-right:32px;}& > div{flex:1;}"),B=(0,p.Z)("div",{target:"ea3u3xt11"})("width:100%;");var C=r("rIrU"),T=r("1KiM");let ArticlesSkeleton=e=>(0,i.BX)(B,{...e,children:[(0,i.tZ)(l.O,{height:50,circle:!0,mb:"xl"}),(0,i.tZ)(l.O,{height:8,radius:"xl"}),(0,i.tZ)(l.O,{height:8,mt:6,radius:"xl"}),(0,i.tZ)(l.O,{height:8,mt:6,width:"70%",radius:"xl"})]}),ToolsSuggestionArticles=e=>{var t,r,l,p,g;let{isMobile:B,expertsArticles:S=[],isLoading:M=!1,hideUIElements:N,seeMoreLink:z,className:E}=e,{formatMessage:F}=(0,n.Z)(),{locale:A}=(0,c.h)();return(0,i.tZ)(i.HY,{children:B?(0,i.BX)(u,{className:"featured-topics ".concat(E),children:[!N&&(0,i.tZ)(a.H,{tag:"h3",color:o.r.colors.gray800,children:F({id:"tools.suggestedArticles",defaultMessage:"Suggested articles"})}),M?(0,i.tZ)(ArticlesSkeleton,{}):(0,i.BX)(h,{children:[S&&S.length>0&&(0,i.BX)(i.HY,{children:[(0,i.tZ)(b,{children:(0,i.tZ)(d.W,{children:(0,i.tZ)(T.ArticleCardWrapper,{article:S[0],dataEventCategoryForCategory:"Tools Category Title",dataEventActionForCategory:"Click",dataEventLabelForCategory:"https://".concat(s.domainLocales[A]).concat(S[0].category.permalinkDecode),dataEventCategoryForTitle:"Tool Title",dataEventActionForTitle:"Click",dataEventLabelForTitle:"https://".concat(s.domainLocales[A]).concat(null===(t=S[0])||void 0===t?void 0:t.permalinkDecode),dataEventCategoryForBanner:"Tool Image",dataEventActionForBanner:"Click",dataEventLabelForBanner:"https://".concat(s.domainLocales[A]).concat(null===(r=S[0])||void 0===r?void 0:r.permalinkDecode),size:"lg",type:"author",direction:"vertical",text:""})})}),(0,i.tZ)(v,{children:S.slice(1,3).map(e=>(0,i.tZ)(f,{children:(0,i.tZ)(d.W,{children:(0,i.tZ)(T.ArticleCardWrapper,{article:e,dataEventCategoryForCategory:"Tool Category Title",dataEventActionForCategory:"Click",dataEventLabelForCategory:"https://".concat(s.domainLocales[A]).concat(e.category.permalinkDecode),dataEventCategoryForTitle:"Tool Title",dataEventActionForTitle:"Click",dataEventLabelForTitle:"https://".concat(s.domainLocales[A]).concat(e.permalinkDecode),dataEventCategoryForBanner:"Tools Image",dataEventActionForBanner:"Click",dataEventLabelForBanner:"https://".concat(s.domainLocales[A]).concat(e.permalinkDecode),type:"author",size:"md",text:""})})},e.id))})]}),!N&&(0,i.tZ)(x,{children:(0,i.BX)("a",{href:z||"/","data-event-category":"Categories Dropdown","data-event-action":"Click See More","data-event-label":"https://".concat(s.domainLocales[A],"/expert"),style:{textDecoration:"none",cursor:"pointer",display:"flex",color:o.r.colors.primaryBase},children:[(0,i.tZ)(a.H,{tag:"h5",color:o.r.colors.primaryBase,className:"see-more-text",children:F({id:"home.seeMore",defaultMessage:"See More"})}),(0,i.tZ)("img",{loading:"lazy",src:"".concat(C.Nr,"/chevronRightBlue.svg"),style:{width:"18px",height:"18px"},alt:F({id:"home.seeMore",defaultMessage:"See More"})})]})})]})]}):(0,i.BX)(u,{className:"featured-topics","data-is-expert-page":N||void 0,children:[!N&&(0,i.BX)(m,{children:[(0,i.tZ)(a.H,{tag:"h4",color:o.r.colors.gray800,children:F({id:"tools.suggestedArticles",defaultMessage:"Suggested Articles"})}),(0,i.tZ)(x,{children:(0,i.BX)("a",{href:z||"/","data-event-category":"Categories Dropdown","data-event-action":"Click See More","data-event-label":"https://".concat(s.domainLocales[A]).concat(C.sb,"/expert"),style:{textDecoration:"none",cursor:"pointer",display:"flex",color:o.r.colors.primaryBase},children:[(0,i.tZ)(a.H,{tag:"h5",color:o.r.colors.primaryBase,className:"see-more-text",children:F({id:"home.seeMore",defaultMessage:"See More"})}),(0,i.tZ)("img",{loading:"lazy",src:"".concat(C.Nr,"/chevronRightBlue.svg"),style:{width:"18px",height:"18px"},alt:F({id:"home.seeMore",defaultMessage:"See More"})})]})})]}),(0,i.tZ)(y,{children:M?(0,i.tZ)(ArticlesSkeleton,{}):S&&S.length>0&&(0,i.BX)(i.HY,{children:[(0,i.tZ)(w,{children:(0,i.tZ)(T.ArticleCardWrapper,{dataEventCategoryForCategory:"Tool Category Title",dataEventActionForCategory:"Click",dataEventLabelForCategory:"https://".concat(s.domainLocales[A]).concat(null===(l=S[0])||void 0===l?void 0:l.category.permalinkDecode),dataEventCategoryForTitle:"Tool Title",dataEventActionForTitle:"Click",dataEventLabelForTitle:"https://".concat(s.domainLocales[A]).concat(null===(p=S[0])||void 0===p?void 0:p.permalinkDecode),dataEventCategoryForBanner:"Tool Image",dataEventActionForBanner:"Click",dataEventLabelForBanner:"https://".concat(s.domainLocales[A]).concat(null===(g=S[0])||void 0===g?void 0:g.permalinkDecode),type:"author",size:"lg",direction:"vertical",article:S[0],text:"",styleLabel:{fontSize:o.r.sizes.fsHeading6}})},S[0].id),(0,i.tZ)(k,{children:S.slice(1,3).map(e=>(0,i.tZ)(Z,{children:(0,i.tZ)(T.ArticleCardWrapper,{dataEventCategoryForCategory:"Tool Category Title",dataEventActionForCategory:"Click",dataEventLabelForCategory:"https://".concat(s.domainLocales[A]).concat(e.category.permalinkDecode),dataEventCategoryForTitle:"Tool Title",dataEventActionForTitle:"Click",dataEventLabelForTitle:"https://".concat(s.domainLocales[A]).concat(e.permalinkDecode),dataEventCategoryForBanner:"Tool Image",dataEventActionForBanner:"Click",dataEventLabelForBanner:"https://".concat(s.domainLocales[A]).concat(e.permalinkDecode),type:"author",size:"sm",direction:"vertical",article:e,text:"",className:"desktop-article",styleLabel:{fontSize:o.r.sizes.fsCaption2}})},e.id))})]})})]})})}},QZRD:function(e,t,r){r.d(t,{T:function(){return TwoColumnsContainer}});var i=r("BGKE"),a=r("rBCA"),o=r("iBNF"),l=r("uuQu");let n=(0,a.Z)("div",{target:"e1d8er1c0"})("display:flex;width:100%;align-items:flex-start;justify-content:center;margin-top:8px;background-color:",o.r.colors.white,";",l.M.mbDown,"{flex-direction:column;}"),d=(0,a.Z)("div",{target:"e1d8er1c1"})("width:60%;padding-right:50px;",l.M.mbDown,"{width:100%;padding:0;}"),s=(0,a.Z)("div",{target:"e1d8er1c2"})("position:relative;display:flex;overflow:visible;width:40%;flex:1;align-items:flex-start;align-self:stretch;justify-content:flex-start;&[data-border='true']{border-left:1px solid ",o.r.colors.neutral100,";}",l.M.mbDown,"{width:100%;}"),c=(0,a.Z)("div",{target:"e1d8er1c3"})("position:relative;overflow:visible;"),TwoColumnsContainer=e=>{let{className:t,leftColumn:r,rightColumn:a,isHavingBorder:o=!0,leftStyle:l,rightStyle:p}=e;return a&&r?(0,i.BX)(n,{className:t,children:[(0,i.tZ)(d,{style:l,children:r}),(0,i.tZ)(s,{"data-border":o,style:p,children:a})]}):(0,i.tZ)(c,{children:a||r||(0,i.tZ)(i.HY,{})})}},"GFc/":function(e,t,r){var i=r("BGKE");r("q1tI"),t.Z=e=>{let{formId:t,height:r="100vh",paramsString:a}=e,o="https://form.typeform.com/to/".concat(t,"/").concat(a?"?".concat(a):"");return(0,i.tZ)("iframe",{title:"typeform ".concat(t),src:o,width:"100%",height:r,frameBorder:"0",style:{border:"none"},allow:"camera; microphone; autoplay; encrypted-media;"})}},n3JQ:function(e,t,r){var i=r("BGKE"),a=r("q1tI");t.Z=e=>{let{widgetId:t,height:r="600px"}=e,o=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e=o.current;if(!e)return;e.setAttribute("data-tf-live",t),e.setAttribute("data-tf-auto-resize","true"),e.setAttribute("data-tf-auto-focus","false"),e.setAttribute("data-tf-iframe-props","title=Typeform-".concat(t));let r=document.querySelector('script[src="https://embed.typeform.com/next/embed.js"]'),loadForm=()=>{window.tf&&"function"==typeof window.tf.load&&window.tf.load()};if(r)loadForm();else{let e=document.createElement("script");e.src="https://embed.typeform.com/next/embed.js",e.async=!0,e.onload=loadForm,document.body.appendChild(e)}},[t]),(0,i.tZ)("div",{ref:o,style:{width:"100%",height:r}})}},qOEb:function(e,t,r){r.d(t,{y:function(){return VideoLibrary}});var i=r("BGKE"),a=r("q1tI"),o=r("2rpi"),l=r("+4HH"),n=r("fdQd"),d=r("8vDj"),s=r("Eso5"),c=r("OAL+"),p=r("hXNO"),g=(0,r("/npG").k)(()=>({root:{},heading:{},player:{},otherList:{}}));let VideoLibrary=e=>{let{videoList:t=[],styles:r,autoPlay:h=!1,classNames:u,className:m,slideSize:f,dataEventCategoryForList:x="Recommend Video",...v}=e,{classes:b,cx:y}=g(void 0,{name:"VideoLibrary",styles:r,classNames:u}),[w,Z]=(0,a.useState)((null==t?void 0:t[0])||null),[k,B]=(0,a.useState)(null),[C,T]=(0,a.useState)(h),S=(0,p.d)(),M=(0,d.rZ)(),N=(0,a.useMemo)(()=>t.length>1,[t]),z=(0,a.useMemo)(()=>t.length>2,[t]);return t.length>0?(0,i.tZ)(s.x,{className:y(b.root,m),...v,children:(0,i.BX)(c.K,{spacing:24,sx:e=>({[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:8}}),children:[w&&(0,i.tZ)(s.x,{className:b.player,children:(0,i.tZ)(o.S,{url:w.url||"",autoPlay:C},w.url)}),N&&(0,i.tZ)(s.x,{className:b.otherList,children:(0,i.tZ)(n.a,{slidesToScroll:1,slideSize:f||"38%",slideGap:24,breakpoints:[{maxWidth:"sm",slideSize:f||"46%",slideGap:8}],withIndicators:!1,withControls:!S&&z,align:"start",loop:!1,getEmblaApi:B,styles:e=>({indicators:{bottom:"auto",top:"calc(100% + 30px - 8px)"},indicator:{width:"8px",height:"8px",opacity:1,backgroundColor:M.colors.neutral[5],"&[data-active]":{backgroundColor:M.colors.blue[7]},".mantine-Carousel-control[data-inactive]":{opacity:0,cursor:"default"}},control:{width:40,height:40,opacity:1,borderColor:e.fn.primaryColor(),transition:"all .2s ease",svg:{width:"18px !important",height:"18px !important",color:e.fn.primaryColor()},"&:hover":{backgroundColor:e.fn.primaryColor(),svg:{color:"#fff"}}},controls:{padding:0,marginLeft:-20,marginRight:-20,top:"calc((100% - 70px)/2)",transform:"translateY(-50%)"},viewport:{[e.fn.smallerThan("sm")]:{paddingLeft:8,paddingRight:8}}}),children:t.map((e,t)=>(0,i.tZ)(n.a.Slide,{children:(0,i.tZ)(l.V,{data:{...e,active:e.url===(null==w?void 0:w.url)},disableDefaultFn:!0,onClick:r=>{r.preventDefault(),T(!0),Z(e),null==k||k.scrollTo(t)},dataEventCategory:x,dataEventAction:"Video Click ".concat(t+1),sx:{cursor:"pointer"}})},String(t)))})})]})}):null}},J8Da:function(e,t,r){r.r(t),r.d(t,{WeekOfPregnancy:function(){return WeekOfPregnancy}});var i=r("BGKE"),a=r("q1tI"),o=r("iBNF"),l=r("DzJC"),n=r.n(l),d=r("dDsW"),s=r("OS56"),c=r("gHFm"),p=r("raAP"),g=r("hXNO"),h=r("P5LW"),u=r("rIrU"),m=r("rEaw"),f=r("6uPG");r("n59S"),r("KhoQ");var x=r("rBCA"),v=r("uuQu"),b=r("nI05");let y=(0,x.Z)("div",{target:"e14796m70"})("position:relative;width:100%;overflow-x:hidden;background-color:",null===o.r||void 0===o.r?void 0:o.r.colors.pink50,";",v.M.mbDown,"{& > div{padding:0 0;}}"),w=(0,x.Z)("div",{target:"e14796m71"})("position:relative;padding:40px;",v.M.mbDown,"{padding:0;}"),Z=(0,x.Z)("div",{target:"e14796m72"})("display:inline-block;height:108px;background-color:",o.r.colors.white,";border-radius:60px;cursor:pointer;&.selected-week-pill{background-color:",o.r.colors.pink100,";}& > div:first-of-type{margin:4px 4px 0;}& > p{margin-top:8px;text-align:center;}"),k=(0,x.Z)("div",{target:"e14796m73"})("& .title{text-align:center;&[data-space-bottom='true']{padding-bottom:168px;}}"),B=(0,x.Z)("div",{target:"e14796m74"})("position:relative;height:120px;margin-top:16px;& > .slick-slider{position:absolute;top:0;left:50%;width:1032px;margin:auto;transform:translateX(-50%);}& .centered-pill-wrapper{text-align:center;}& .week-pill{transition:all 0.4s;&:not(.selected-week-pill){box-shadow:0px 0px 24px rgba(0,0,0,0.08);}&.opacity-50{opacity:0.5;}&.opacity-10{opacity:0.1;}&.opacity-0{opacity:0;}}&[data-is-sticky='true']{position:fixed;z-index:",u.kg.menuSearchPopup-1,";top:68px;left:0;width:100vw;margin-top:0;background-color:",o.r.colors.primaryBase,";transition:all 0.2s linear;",v.M.mbDown,"{top:48px;}&[data-visible='false']{top:-98px;",v.M.mbDown,"{top:-170px;}}&[data-hideontop='true']{",v.M.mbDown,"{top:-168px;}}> div{height:168px;margin-top:0;}.centered-pill-wrapper{padding:24px 0;}}"),C=(0,x.Z)("div",{target:"e14796m75"})("display:flex;align-items:center;justify-content:center;gap:80px;margin-top:32px;.infant-image{flex-shrink:0;min-width:0;min-height:0;aspect-ratio:1;border:4px solid #ffffff;border-radius:50%;object-fit:contain;padding:24px;img{width:200px;height:200px;aspect-ratio:1;}}.detail{display:flex;flex-direction:column;align-items:flex-start;gap:8px;}",v.M.mbDown,"{flex-direction:column;background-color:#ffffff;border-radius:16px 16px 0px 0px;padding:32px;border-bottom:8px solid ",null===o.r||void 0===o.r?void 0:o.r.colors.neutral50,";.detail{align-items:center;text-align:center;}.infant-image{display:none;}}"),T=(0,x.Z)("div",{target:"e14796m76"})("position:fixed;z-index:",u.kg.menuSearchPopup+1,";top:0;left:0;width:100vw;background-color:",o.r.colors.white,";box-shadow:0px 1px 3px rgba(0,0,0,0.08);transition:all 0.2s linear;&:after{position:absolute;bottom:0;left:0;display:block;width:calc(var(--reading-progress) * 100%);height:2px;background-color:#e85388;content:'';transition:width 0.2s ease;}",v.M.mbDown,"{background-color:#e85388;&:after{display:none;}}&[data-visible='false']{top:-70px;}.container{display:flex;align-items:center;padding:21px 0;}.mobile-container{display:flex;align-items:center;padding:8px 16px;}.mb-logo{width:auto;height:28px;margin-right:24px;cursor:pointer;}.clickable-area{display:flex;align-items:center;cursor:pointer;}.text{padding:0 12px 0 24px;border-left:1px solid ",o.r.colors.gray600,";font-weight:600;}.arrow{width:8px;transition:all 0.2s ease;&[data-reverse='true']{transform:rotateZ(-180deg);}}.fruit-icon{margin-right:16px;}.mobile-text{font-weight:600;}.mobile-arrow{margin-left:auto;transform:rotateZ(90deg);transition:all 0.2s ease;&[data-reverse='true']{transform:rotateZ(-90deg);}}"),S=(0,x.Z)("span",{target:"e14796m77"})("display:inline-block;overflow:hidden;width:",e=>e.size,"px;height:",e=>e.size,"px;background-color:",e=>e.color,";background-repeat:no-repeat;-webkit-mask-image:url(",e=>e.iconSrc,");mask-image:url(",e=>e.iconSrc,");mask-position:center;-webkit-mask-size:contain;mask-size:contain;"),M=(0,x.Z)("div",{target:"e14796m78"})("display:inline-flex;overflow:hidden;width:",e=>e.size,"px;height:",e=>e.size,"px;box-sizing:border-box;align-items:center;justify-content:center;border:1px solid #e4e8ec;background-color:",e=>e.backgroundColor||(null===o.r||void 0===o.r?void 0:o.r.colors.white),";border-radius:",e=>e.borderRadius||"50%",";& > *{width:",e=>e.iconSize,"px;height:",e=>e.iconSize,"px;}"),N=(0,x.Z)("div",{target:"e14796m79"})("display:flex;align-items:center;justify-content:center;border-radius:50%;width:40px;height:40px;background-color:#ffffff;box-shadow:0px 10px 16px rgba(0,0,0,0.04),0px 2px 8px rgba(0,0,0,0.04),0px 0px 1px rgba(0,0,0,0.04);z-index:1;&.slick-arrow::before{display:none;}"),z=(0,x.Z)("div",{target:"e14796m710"})("width:100%;background-color:",null===o.r||void 0===o.r?void 0:o.r.colors.pink50,";position:relative;.mantine-Popover-dropdown{padding:8px;background:",null===o.r||void 0===o.r?void 0:o.r.colors.neutral50,";border-radius:4px;text-align:center;pointer-events:all;}"),E=(0,x.Z)(b.i,{target:"e14796m711"})("transform:translateY(-4px);z-index:0;pointer-events:none;user-select:none;.mantine-Slider-bar{background-color:",null===o.r||void 0===o.r?void 0:o.r.colors.pink600,";border-radius:0;}.mantine-Slider-track{background-color:",null===o.r||void 0===o.r?void 0:o.r.colors.neutral200,";height:12px;border-radius:0;&::before{border-radius:0;}}.mantine-Slider-thumb{background-color:",null===o.r||void 0===o.r?void 0:o.r.colors.pink600,";border:2px solid #ffffff;}.mantine-Slider-markFilled{border-color:",null===o.r||void 0===o.r?void 0:o.r.colors.pink600,";}"),NextArrow=e=>{let{onClick:t,className:r}=e;return(0,i.tZ)(N,{onClick:t,className:r,children:(0,i.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,i.tZ)("path",{d:"M13.071 12.0002L9.24995 8.17915C8.83595 7.76515 8.83595 7.09315 9.24995 6.67915C9.66395 6.26515 10.336 6.26515 10.75 6.67915L15.364 11.2932C15.755 11.6842 15.755 12.3172 15.364 12.7072L10.75 17.3212C10.336 17.7352 9.66395 17.7352 9.24995 17.3212C8.83595 16.9072 8.83595 16.2352 9.24995 15.8212L13.071 12.0002Z",fill:"#595959"})})})},PreviousArrow=e=>{let{onClick:t,className:r}=e;return(0,i.tZ)(N,{onClick:t,className:r,children:(0,i.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,i.tZ)("path",{d:"M10.929 12.0002L14.75 8.17915C15.164 7.76515 15.164 7.09315 14.75 6.67915C14.336 6.26515 13.664 6.26515 13.25 6.67915L8.63605 11.2932C8.24505 11.6842 8.24505 12.3172 8.63605 12.7072L13.25 17.3212C13.664 17.7352 14.336 17.7352 14.75 17.3212C15.164 16.9072 15.164 16.2352 14.75 15.8212L10.929 12.0002Z",fill:"#595959"})})})};var F=r("DEkF"),A=r("LgdP"),L=r("wp0n"),I=r("Eso5"),D=r("XiKa"),X=r.n(D),R=r("CJtR");let WeekDetail=e=>{let{currentWeekDetail:t,disabledRecommendation:r}=e,{locale:l}=(0,h.h)(),{formatMessage:n}=(0,d.Z)(),s=(0,a.useMemo)(()=>[{label:n({id:"weekOfPregnancy.size.height",defaultMessage:"Height:"}),value:t.height,unit:"cm"},{label:n({id:"weekOfPregnancy.size.weight",defaultMessage:"Weight:"}),value:t.weight,unit:"kg"}].filter(e=>e.value&&"0"!==e.value),[t]);return(0,i.BX)(C,{children:[(0,i.tZ)("div",{className:"infant-image",children:(0,i.tZ)("img",{loading:"lazy",src:t.icon||"".concat(u.Nr,"/infant.png"),alt:"Infant"})}),t.description&&t.name&&(0,i.BX)("div",{className:"detail",children:[(0,i.tZ)(F.H,{tag:"h4",color:o.r.colors.gray800,children:t.name}),(0,i.BX)(L.T,{as:"span",size:"p3",color:o.r.colors.gray700,children:[(0,i.tZ)("div",{dangerouslySetInnerHTML:{__html:X()(t.description,{allowedTags:!1,allowedAttributes:!1,allowVulnerableTags:!0})}}),(0,i.tZ)(L.T,{as:"span",size:"p3",children:s.map((e,t)=>(0,i.BX)(I.x,{component:"span",sx:e=>({[e.fn.smallerThan("sm")]:{display:"flex",flexDirection:"column",".divider":{display:"none"}}}),children:[(0,i.BX)("span",{children:[e.label," ",(0,i.BX)(L.T,{size:"s2",weight:"semiBold",as:"span",children:[e.value," ",e.unit]})]}),t{t.permalink&&(window.location.href=t.permalink)},children:(0,i.tZ)(L.T,{size:"s3",weight:"semiBold",color:o.r.colors.pink800,children:n({id:"weekOfPregnancy.recommendations",defaultMessage:"Recommendation"})})})]})]})};var P=r("MmHG"),W=r("LES+"),G=r("YFqc"),H=r.n(G),j=r("3Pfo");let Trimeter=e=>{let{currentWeek:t,...r}=e,{formatMessage:o}=(0,d.Z)(),{locale:l}=(0,h.h)(),n=(0,g.d)(),[s,c]=(0,a.useState)(t+1);(0,a.useEffect)(()=>{c(t+1)},[t]);let p=40-s,u=(0,a.useMemo)(()=>s<14?0:s>=27?2:1,[s]),m=j.r$[l][u];return(0,i.tZ)(z,{...r,children:(0,i.BX)(W.J,{opened:s>=4,position:"top",withArrow:!0,shadow:"md",arrowOffset:10,children:[(0,i.tZ)(E,{thumbChildren:(0,i.tZ)(W.J.Target,{children:(0,i.tZ)("div",{},s)}),min:1,max:40,value:s,thumbSize:20,size:"lg",showLabelOnHover:!1,marks:[{value:13},{value:26}],labelAlwaysOn:!1}),(0,i.tZ)(W.J.Dropdown,{children:(0,i.BX)("div",{children:[(0,i.tZ)(H(),{href:m,prefetch:!1,children:(0,i.tZ)(P.T,{size:"n1",type:"semiBold",children:(()=>{switch(u){case 0:return o({id:"dueDatePage.firstTrimester",defaultMessage:"1st Trimester"});case 1:return o({id:"dueDatePage.secondTrimester",defaultMessage:"2nd Trimester"});case 2:return o({id:"dueDatePage.thirdTrimester",defaultMessage:"3rd Trimester"});default:return""}})()})}),40!==s&&!n&&(0,i.tZ)(P.T,{size:"n1",children:1===p?o({id:"dueDateTool.weekToGo.one",defaultMessage:"1 week to go"}):p<=0?o({id:"dueDateTool.weekToGo.outOfRange",defaultMessage:"Anytime now"}):o({id:"dueDateTool.weekToGo",defaultMessage:"{week} weeks to go"},{week:p})})]})})]})})};var q=r("o0qI");let K=[m.MV.Myanmar,m.MV.Taiwan],Pill=e=>{let{iconSrc:t,title:r,className:l,onSelect:n}=e,d=(0,p.U)(),s=(0,a.useMemo)(()=>null==l?void 0:l.includes("selected-week-pill"),[l]),{locale:c}=(0,h.h)();return(0,i.BX)(Z,{...(0,f._o)(f.Kj.WEEK_PREGNANCY,"",{key:"label",value:d}),onClick:()=>{null==n||n()},className:l?"week-pill".concat(" non-pointer-event-child ",l):"week-pill non-pointer-event-child",children:[(0,i.tZ)(M,{size:64,iconSize:40,backgroundColor:o.r.colors.white,children:(0,i.tZ)("img",{loading:"lazy",src:t||"".concat(u.Nr,"/week_default.png"),alt:""})}),s?(0,i.tZ)(L.T,{weight:"semiBold",size:"n1",color:o.r.colors.gray800,...K.includes(c)&&{style:{fontSize:"10px"}},children:r}):(0,i.tZ)(L.T,{size:"n1",color:o.r.colors.gray600,...K.includes(c)&&{style:{fontSize:"10px"}},children:r})]})},WeekOfPregnancy=e=>{let{isArticle:t=!1,data:r,onSelectWeek:l,className:p,defaultWeekIndex:h,withStickyScroll:u,disabledRecommendation:m=!1}=e,{formatMessage:f}=(0,d.Z)(),x=(0,g.d)(),{state:{isLoggedIn:v}}=(0,a.useContext)(q.I),[b,Z]=(0,a.useState)(h||0),C=(0,a.useMemo)(()=>!!(t&&void 0!==h&&h===b),[h,b,t]),N=r[b],[z,E]=(0,a.useState)(0),[F,A]=(0,a.useState)(!1),[I,D]=(0,a.useState)(!1),getWeekNearby=e=>{let t=r.length,i=b+e;return i>=t?i-=t:i<0&&(i+=t),i},generateClassName=e=>e===b?"selected-week-pill":(x?[-1,1]:[-3,-2,-1,1,2,3]).map(e=>getWeekNearby(e)).includes(e)?void 0:(x?[-4,-3,-2,2,3,4]:[-4,4]).map(e=>getWeekNearby(e)).includes(e)?"opacity-50":"opacity-10",handleSelectWeek=e=>{Z(e),l&&l(e)},X=(0,a.useRef)(0);return(0,a.useEffect)(()=>{let e=document.querySelector("html");if(u){let t=n()(()=>{var t,r;window.scrollY>X.current?window.scrollY>=u.scrollYFrom&&A(!0):(A(!1),D(!1)),X.current=window.scrollY,E(window.scrollY/((null!==(t=null==e?void 0:e.scrollHeight)&&void 0!==t?t:0)-(null!==(r=null==e?void 0:e.clientHeight)&&void 0!==r?r:0)||1))},200);return window.addEventListener("scroll",t,{passive:!0}),()=>{window.removeEventListener("scroll",t)}}},[]),(0,i.BX)("div",{className:p,children:[v&&(0,i.tZ)(Trimeter,{currentWeek:b}),(0,i.tZ)(y,{children:(0,i.tZ)(c.W,{children:(0,i.tZ)(w,{className:"main-content",children:(0,i.BX)(k,{children:[r.length?(0,i.tZ)(B,{"data-is-sticky":u&&F,"data-visible":I,children:(0,i.tZ)(s.Z,{infinite:!0,swipeToSlide:!0,slidesToShow:11,slidesToScroll:1,focusOnSelect:!0,speed:300,centerMode:!0,beforeChange:(e,t)=>handleSelectWeek(t),initialSlide:h||0,arrows:!x,nextArrow:(0,i.tZ)(NextArrow,{}),prevArrow:(0,i.tZ)(PreviousArrow,{}),children:r.map((e,t)=>(0,i.tZ)("div",{className:"centered-pill-wrapper",children:(0,i.tZ)(Pill,{className:generateClassName(t),title:null==e?void 0:e.name,iconSrc:null==e?void 0:e.fruit_icon})},t))})}):void 0,N&&(0,i.tZ)(WeekDetail,{currentWeekDetail:N,disabledRecommendation:m||C})]})})})}),u&&(0,i.tZ)(i.HY,{children:(0,i.tZ)(T,{"data-visible":F,style:{"--reading-progress":z},children:x?(0,i.BX)("div",{className:"mobile-container",onClick:()=>D(e=>!e),children:[(0,i.tZ)(M,{iconSize:24,size:32,backgroundColor:o.r.colors.white,className:"fruit-icon",children:(0,i.tZ)("img",{loading:"lazy",src:(null==N?void 0:N.fruit_icon)||"/icons/week_carrot.svg",alt:""})}),(0,i.tZ)(L.T,{size:"p3",color:o.r.colors.white,className:"mobile-text",children:null==N?void 0:N.name}),(0,i.tZ)(S,{className:"mobile-arrow",color:o.r.colors.white,iconSrc:"/icons/chevron.svg",size:18,"data-reverse":I})]}):(0,i.BX)(c.W,{className:"container",children:[(0,i.tZ)("img",{loading:"lazy",className:"mb-logo",src:"/images/mb-logo.svg",alt:"",onClick:()=>window.location.href=window.location.origin}),(0,i.BX)("div",{className:"clickable-area",onClick:()=>D(e=>!e),children:[(0,i.BX)(L.T,{className:"text",size:"label1",children:[f({id:"weekOfPregnancy.title"}),":"," ",null==N?void 0:N.name]}),(0,i.tZ)("img",{loading:"lazy",className:"arrow","data-reverse":I,src:"/svg/arrow.svg",alt:""})]})]})})})]})}},ImXE:function(e,t,r){r.d(t,{s:function(){return WorkshopCard}});var i=r("BGKE"),a=r("dDsW"),o=r("rIrU"),l=r("rBCA"),n=r("iBNF"),d=r("uuQu");let s=(0,l.Z)("div",{target:"e100ev520"})("background:#ffffff;border-radius:",n.r.borderRadius,";filter:drop-shadow(0px 4px 8px rgba(0,0,0,0.04))\n drop-shadow(0px 0px 2px rgba(0,0,0,0.06))\n drop-shadow(0px 0px 1px rgba(0,0,0,0.04));"),c=(0,l.Z)("div",{target:"e100ev521"})("width:100%;height:400px;background-image:url('",e=>e.banner,"');background-position:top center;background-repeat:no-repeat;background-size:cover;",d.M.mbUp,"{padding:40px 21px 40px 24px;}",d.M.mbDown,"{padding:32px 16px;}"),p=(0,l.Z)("div",{target:"e100ev522"})(d.M.mbUp,"{padding:16px 21px 40px 21px;}",d.M.mbDown,"{padding:16px 16px 32px 16px;}"),g=(0,l.Z)("div",{target:"e100ev523"})("display:flex;align-items:center;gap:8px;"),h=(0,l.Z)("img",{target:"e100ev524"})("width:20px;height:20px;"),u=(0,l.Z)("p",{target:"e100ev525"})("display:-webkit-box;overflow:hidden;margin-top:4px;-webkit-box-orient:vertical;font-size:18px;font-weight:400;letter-spacing:-0.2px;-webkit-line-clamp:1;line-height:32px;"),m=(0,l.Z)("div",{target:"e100ev526"})("width:fit-content;padding:9px 24px;margin:24px auto 0 auto;background:",n.r.colors.primaryBase,";border-radius:",n.r.borderRadius,";color:#ffffff;cursor:pointer;font-size:14px;font-weight:700;line-height:22px;",e=>e.disabled&&"background: ".concat(n.r.colors.neutral700,";\n pointer-events: none;\n cursor: not-allowed;")),f=(0,l.Z)("a",{target:"e100ev527"})("display:-webkit-box;overflow:hidden;margin-top:4px;-webkit-box-orient:vertical;font-size:18px;font-weight:400;letter-spacing:-0.2px;-webkit-line-clamp:1;line-height:32px;text-decoration:none;&[href]{color:",n.r.colors.primaryBase,";}"),WorkshopCard=e=>{let{workshop:t,onSubscribe:r}=e,{formatMessage:l}=(0,a.Z)();return(0,i.BX)(s,{children:[(0,i.tZ)(c,{banner:t.image}),(0,i.BX)(p,{children:[(0,i.BX)(g,{children:[(0,i.tZ)(h,{src:"".concat(o.uQ,"/calendar.svg")}),(0,i.tZ)(u,{children:t.time})]}),(0,i.BX)(g,{children:[(0,i.tZ)(h,{src:"".concat(o.uQ,"/clock.svg")}),(0,i.tZ)(u,{children:t.timeRange})]}),(0,i.BX)(g,{children:[(0,i.tZ)(h,{src:"".concat(o.uQ,"/location.svg")}),(0,i.tZ)(f,{title:t.location,href:t.locationUrl||void 0,target:"_blank",children:t.location})]}),(0,i.tZ)(m,{disabled:!t.active,onClick:()=>r(t),children:l(t.active?{id:"spotlight.workshop.subscribeNow",defaultMessage:"Subscribe Now"}:{id:"spotlight.workshop.comingSoon",defaultMessage:"Coming Soon"})})]})]})}},KdIF:function(e,t,r){r.d(t,{Fy:function(){return h},LK:function(){return p},T7:function(){return f},Ts:function(){return s},VE:function(){return d},Y9:function(){return m},ar:function(){return g},bp:function(){return u},pM:function(){return c}});var i=r("rBCA"),a=r("qQsD"),o=r("iBNF"),l=r("uuQu"),n=r("yq/2");let d=(0,i.Z)("div",{target:"e1h70x2o0"})(),s=(0,i.Z)("div",{target:"e1h70x2o1"})("border-bottom:1px solid ",o.r.colors.neutral100,";"),c=(0,i.Z)("p",{target:"e1h70x2o2"})("padding-bottom:8px;color:",o.r.colors.secondaryBase,";font-size:16px;font-weight:700;line-height:24px;"),p=(0,i.Z)("div",{target:"e1h70x2o3"})("padding:24px 0;",l.M.mbDown,"{max-height:calc(100vh - 200px);overflow:hidden auto;}"),g=(0,i.Z)("label",{target:"e1h70x2o4"})("display:block;margin-bottom:6px;color:",o.r.colors.gray600,";font-size:12px;font-weight:700;line-height:18px;"),h=(0,i.Z)("input",{target:"e1h70x2o5"})("padding:12px 16px;border:1px solid #d9d9d9;margin:0 0 16px 0;border-radius:",o.r.borderRadius,";font-size:16px;font-weight:400;line-height:24px;"),u=(0,i.Z)(a.S,{target:"e1h70x2o6"})(l.M.mbUp,"{.arrow-right{right:-10px;cursor:pointer;svg{fill:white;}}.arrow-left{left:-10px;cursor:pointer;svg{fill:white;}}}"),m=(0,i.Z)(n.s,{target:"e1h70x2o7"})("margin-bottom:16px;"),f=(0,i.Z)("button",{target:"e1h70x2o8"})("padding:12px 24px;margin-top:32px;background:",o.r.colors.primaryBase,";border-radius:",o.r.borderRadius,";color:",o.r.colors.white,";cursor:pointer;font-size:16px;font-weight:700;line-height:24px;&[disabled]{background:",o.r.colors.neutral500,";cursor:not-allowed;}")},XP8w:function(e,t,r){r.d(t,{j:function(){return WorkshopForm}});var i=r("BGKE"),a=r("q1tI"),o=r("t0rw"),l=r("p46w"),n=r.n(l),d=r("dDsW"),s=r("oQBk"),c=r("xIXX"),p=r("CJtR"),g=r("g/tz"),h=r("iv2E"),u=r("P5LW"),m=r("rIrU"),f=r("o0qI"),x=r("KdIF"),v=r("rBCA"),b=r("iBNF");let y=(0,v.Z)("div",{target:"e18uvpad0"})("padding:24px 32px;background-color:",b.r.colors.neutral50,";border-radius:",b.r.borderRadius,";cursor:pointer;"),w=(0,v.Z)("div",{target:"e18uvpad1"})("position:relative;"),Z=(0,v.Z)("img",{target:"e18uvpad2"})("position:absolute;top:0;right:0;width:24px;height:24px;"),k=(0,v.Z)("p",{target:"e18uvpad3"})("color:",b.r.colors.primaryBase,";font-family:'Inter';font-size:12px;font-weight:700;line-height:18px;text-transform:uppercase;"),B=(0,v.Z)("h4",{target:"e18uvpad4"})("display:-webkit-box;overflow:hidden;min-height:56px;padding-right:24px;-webkit-box-orient:vertical;color:",b.r.colors.secondaryBase,";font-family:'Inter';font-size:18px;font-style:normal;font-weight:700;letter-spacing:-0.6px;-webkit-line-clamp:2;line-height:28px;"),C=(0,v.Z)("div",{target:"e18uvpad5"})("margin-top:20px;"),T=(0,v.Z)("div",{target:"e18uvpad6"})("display:flex;align-items:center;margin-bottom:4px;gap:8px;"),S=(0,v.Z)("img",{target:"e18uvpad7"})("width:20px;height:20px;"),M=(0,v.Z)("p",{target:"e18uvpad8"})("display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;font-size:16px;font-weight:400;letter-spacing:-0.2px;-webkit-line-clamp:1;line-height:28px;"),N=(0,v.Z)("div",{target:"e18uvpad9"})("display:flex;flex-wrap:wrap;justify-content:space-around;margin-top:16px;gap:20px;> div{width:calc(50% - 12px);}"),z=(0,v.Z)("div",{target:"e18uvpad10"})("display:flex;min-height:134px;flex-direction:column;align-items:center;"),E=(0,v.Z)("img",{target:"e18uvpad11"})("width:64px;height:64px;background:white;border-radius:50%;object-fit:cover;"),F=(0,v.Z)("p",{target:"e18uvpad12"})("display:-webkit-box;overflow:hidden;margin-top:8px;-webkit-box-orient:vertical;font-size:14px;font-weight:700;letter-spacing:-0.2px;-webkit-line-clamp:2;line-height:22px;text-align:center;"),A=(0,v.Z)("p",{target:"e18uvpad13"})("display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;font-size:12px;font-weight:400;-webkit-line-clamp:2;line-height:18px;text-align:center;"),InfluencerInfo=e=>{let{influencer:t}=e;return(0,i.BX)(z,{children:[(0,i.tZ)(E,{src:t.avatar}),(0,i.tZ)(F,{children:t.name}),(0,i.tZ)(A,{children:t.job_title})]})},WorkshopSelectCard=e=>{let{workshop:t,isSelected:r,onSelected:a}=e,{formatMessage:o}=(0,d.Z)();return(0,i.tZ)(y,{onClick:()=>a(t),children:(0,i.BX)(w,{children:[(0,i.tZ)(Z,{src:"".concat(m.uQ,"/checkbox-").concat(r?"check":"uncheck",".svg")}),(0,i.tZ)(k,{children:t.type}),(0,i.tZ)(B,{children:t.name}),(0,i.BX)(C,{children:[(0,i.BX)(T,{children:[(0,i.tZ)(S,{src:"".concat(m.uQ,"/calendar.svg")}),(0,i.tZ)(M,{children:t.time})]}),(0,i.BX)(T,{children:[(0,i.tZ)(S,{src:"".concat(m.uQ,"/location.svg")}),(0,i.tZ)(M,{children:t.location})]}),(0,i.BX)(T,{children:[(0,i.tZ)(S,{src:"".concat(m.uQ,"/user.svg")}),(0,i.tZ)(M,{children:o({id:"spotlight.landing.workshop.influencer",defaultMessage:"Influencer"})})]}),(0,i.tZ)(N,{children:t.influencers&&t.influencers.map((e,t)=>(0,i.tZ)(InfluencerInfo,{influencer:e},t))})]})]})})},WorkshopForm=e=>{let{isOpen:t,onClose:r,workshops:l,isMobile:v,chosenWorkshop:b,onSuccess:y}=e,[w,Z]=(0,a.useState)(!1),[k,B]=(0,a.useState)([]),{state:C}=(0,a.useContext)(f.I),{locale:T}=(0,u.h)(),{userInfo:S,isLoggedIn:M}=C,N=(0,a.useRef)(null),z=(0,a.useRef)(null),E=(0,a.useRef)(null),[F,A]=(0,a.useState)((null==S?void 0:S.area_code)||m.CX[T].PHONE),[L,I]=(0,a.useState)(0),{formatMessage:D}=(0,d.Z)(),handleSubmit=async e=>{var t,r,i;Z(!0),e.preventDefault();let a=null===(t=N.current)||void 0===t?void 0:t.value,o=(null===(r=E.current)||void 0===r?void 0:r.value)||"",l="".concat(F).concat((null===(i=z.current)||void 0===i?void 0:i.value)||"");if(k.length>0){let e=await Promise.all(k.map(e=>{var t,r,i,n,d;return(0,c.uu)((0,p.DS)(s.y.LEADGEN.POST_LEAD_LEAD,{campaignCode:e.campaignId}),"POST",{data:{url:null===(r=window)||void 0===r?void 0:null===(t=r.location)||void 0===t?void 0:t.href,title_article:null===(i=document)||void 0===i?void 0:i.title,referrer:null===(d=window)||void 0===d?void 0:null===(n=d.location)||void 0===n?void 0:n.href,meta:[{key:"workshop title",value:e.name,control:"text"},{key:"full-name",value:a,control:"text"},{key:"email",value:o,control:"email"},{key:"phone",value:l,control:"tel"}]}}).then(e=>(null==e?void 0:e._status)===1)}));e.includes(!1)||(M?(B([]),null==y||y()):(n().set(m.jE,o,{domain:".".concat(h.domainLocales[T])}),n().set(m.a3,l,{domain:".".concat(h.domainLocales[T])}),(0,g.p0)("","workshop-register","workshop-success"))),Z(!1)}};(0,a.useEffect)(()=>{I(l.findIndex(e=>e===b))},[b,l]),(0,a.useEffect)(()=>{b&&!k.find(e=>e===b)&&B(e=>[...e,b])},[b]);let onSelectedWorkshop=e=>{k.find(t=>t===e)?B(t=>t.filter(t=>t!==e)):B(t=>[...t,e])};return(0,i.tZ)(o.M,{closeIcon:(0,i.tZ)("img",{loading:"lazy",src:"".concat(m.Nr,"/close-icon.svg"),alt:"close-btn"}),type:v?"confirm":"form",isOpen:t,onClose:()=>{B([]),r()},children:(0,i.BX)(x.VE,{children:[(0,i.tZ)(x.Ts,{children:(0,i.tZ)(x.pM,{children:D({id:"spotlight.landing.workshopForm.title",defaultMessage:"Register to join the workshop"})})}),(0,i.tZ)(x.LK,{children:(0,i.BX)("form",{onSubmit:handleSubmit,children:[(0,i.tZ)(x.ar,{htmlFor:"name",children:D({id:"spotlight.landing.workshopForm.name",defaultMessage:"Name"})}),(0,i.tZ)(x.Fy,{ref:N,name:"name",placeholder:D({id:"spotlight.landing.workshopForm.name.placeholder",defaultMessage:"Type your name"}),defaultValue:null==S?void 0:S.name,required:!0}),(0,i.tZ)(x.ar,{children:D({id:"spotlight.landing.workshopForm.phone",defaultMessage:"Phone"})}),(0,i.tZ)(x.Y9,{ref:z,defaultValue:{phone:null==S?void 0:S.phone,countryPhoneCode:null==S?void 0:S.area_code},onChangeCode:e=>{A(e.value)},required:!0}),(0,i.tZ)(x.ar,{htmlFor:"email",children:D({id:"spotlight.landing.workshopForm.email",defaultMessage:"Email"})}),(0,i.tZ)(x.Fy,{name:"email",ref:E,placeholder:D({id:"spotlight.landing.workshopForm.email.placeholder",defaultMessage:"Type your email"}),defaultValue:null==S?void 0:S.email,type:"email",required:!0}),(0,i.tZ)(x.ar,{children:D({id:"spotlight.landing.workshopForm.workshop",defaultMessage:"Choose workshop"})}),(0,i.tZ)(x.bp,{arrowType:"Care",page:L,onChangePage:I,row:1,column:1,isDotsShown:v&&l.length>1,isArrowShown:!v,distanceOverlappedLeft:{amount:16,unit:"pixel"},mode:"snapped",children:l.map((e,t)=>(0,i.tZ)(WorkshopSelectCard,{isSelected:!!k.find(t=>t===e),workshop:e,onSelected:onSelectedWorkshop},t))}),(0,i.tZ)(x.T7,{type:"submit",disabled:0===k.length||w,children:D({id:"spotlight.landing.workshopForm.register",defaultMessage:"Register"})})]})})]})})}},"4AMz":function(e,t,r){r.d(t,{p:function(){return ThankyouPopup}});var i=r("BGKE"),a=r("t0rw"),o=r("dDsW"),l=r("rIrU"),n=r("KdIF"),d=r("rBCA"),s=r("iBNF");let c=(0,d.Z)("div",{target:"egavuta0"})("padding:0 16px 32px 16px;text-align:center;"),p=(0,d.Z)("img",{target:"egavuta1"})("width:280px;height:280px;margin:16px auto 0 auto;"),g=(0,d.Z)("h3",{target:"egavuta2"})("font-size:26px;font-weight:700;line-height:36px;"),h=(0,d.Z)("p",{target:"egavuta3"})("margin-top:8px;font-size:16px;font-weight:400;letter-spacing:-0.2px;line-height:28px;"),u=(0,d.Z)("button",{target:"egavuta4"})("padding:12px 16px;margin-top:58px;background-color:",s.r.colors.primaryBase,";border-radius:",s.r.borderRadius,";color:",s.r.colors.white,";cursor:pointer;font-size:16px;font-weight:700;line-height:24px;"),ThankyouPopup=e=>{let{isOpen:t,onClose:r}=e,{formatMessage:d}=(0,o.Z)();return(0,i.BX)(a.M,{closeIcon:(0,i.tZ)("img",{loading:"lazy",src:"".concat(l.Nr,"/close-icon.svg"),alt:"close-btn"}),type:"confirm",isOpen:t,onClose:r,children:[(0,i.tZ)(n.Ts,{children:(0,i.tZ)(n.pM,{children:d({id:"spotlight.landing.workshopForm.title",defaultMessage:"Register to join the workshop"})})}),(0,i.BX)(c,{children:[(0,i.tZ)(p,{src:"".concat(l.uQ,"/success-check.svg")}),(0,i.tZ)(g,{children:d({id:"spotlight.landing.workshopForm.thankyou.title",defaultMessage:"Thank you for registering the workshop"})}),(0,i.tZ)(h,{children:d({id:"spotlight.landing.workshopForm.thankyou.description",defaultMessage:"Thank you for registering the workshop"})}),(0,i.tZ)(u,{onClick:r,children:d({id:"spotlight.landing.workshopForm.thankyou.finish",defaultMessage:"Finish"})})]})]})}}}]);