"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7454],{"9+32":function(e,t,a){a.d(t,{b:function(){return HeaderBanner}});var n=a("BGKE"),i=a("wp0n"),o=a("Eso5"),l=a("gHFm"),r=a("nGnw"),c=(0,a("/npG").k)((e,t)=>{let{fullWidthBanner:a,bannerMobile:n,bannerDesktop:i}=t,o=a&&n&&i;return{root:{...!o&&{backgroundImage:"url(".concat(r.C.getAssetPath("video-pages/banner-bg-m.jpg"),")"),backgroundRepeat:"no-repeat",backgroundSize:"cover",[e.fn.largerThan("sm")]:{backgroundImage:"url(".concat(r.C.getAssetPath("video-pages/banner-bg-d.jpg"),")")}},...o&&{backgroundImage:"url(".concat(i,")"),[e.fn.smallerThan("sm")]:{backgroundImage:"url(".concat(n,")")},backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center",width:"100%"}},inner:{display:"flex",justifyContent:"space-between",minHeight:220,[e.fn.smallerThan("sm")]:{flexDirection:"column",alignItems:"center",gap:0},[e.fn.largerThan("sm")]:{alignItems:"center",minHeight:280}},info:{display:"flex",flexDirection:"column",gap:16,maxWidth:552},title:{[e.fn.smallerThan("sm")]:{minHeight:64,display:"flex",alignItems:"center"}},thumbnail:{},thumbnailImg:{display:"block",[e.fn.smallerThan("sm")]:{maxHeight:156},[e.fn.largerThan("sm")]:{maxHeight:280}},desc:{[e.fn.smallerThan("sm")]:{display:"none"}}}});let HeaderBanner=e=>{let{title:t,description:a,backgroundBanner:r,fullWidthBanner:d,bannerDesktop:s,bannerMobile:h,styles:m,classNames:g,className:p,...u}=e,{classes:v,cx:f}=c({fullWidthBanner:d,bannerDesktop:s,bannerMobile:h},{name:"HeaderBanner",styles:m,classNames:g});return(0,n.tZ)(o.x,{className:f(v.root,p),...u,children:(0,n.tZ)(l.W,{children:(0,n.BX)(o.x,{className:v.inner,children:[(0,n.BX)(o.x,{className:v.info,children:[t&&(0,n.tZ)(o.x,{className:v.title,children:(0,n.tZ)(i.T,{size:"h2",as:"h1",lineClamp:2,children:t})}),a&&(0,n.tZ)(i.T,{size:"p3",className:v.desc,children:a})]}),!d&&r&&(0,n.tZ)(o.x,{className:v.thumbnail,children:(0,n.tZ)("img",{loading:"lazy",src:r,alt:t,className:v.thumbnailImg})})]})})})}},W6Mx:function(e,t,a){a.r(t),a.d(t,{HealthConcern:function(){return HealthConcern}});var n=a("BGKE"),i=a("q1tI"),o=a("MmHG"),l=a("qQsD"),r=a("ECoa"),c=a("09QT"),d=a("/tR3"),s=a("oQBk"),h=a("raAP"),m=a("rBCA"),g=a("uuQu"),p=a("iBNF"),u=a("rIrU");let v=(0,m.Z)("div",{target:"ez6hepg0"})("margin:24px 0 48px 0;background-size:cover;",g.M.mbDown,"{background-image:url('",u.Nr,"/bg-m.png}');width:100vw;margin-left:-1rem;.bullet-nav{bottom:24px;}}",g.M.mbUp,"{background-image:url('",u.Nr,"/bg-d.png}');.arrow-right{right:-16px;cursor:pointer;svg{fill:white;}}.arrow-left{left:-16px;cursor:pointer;svg{fill:white;}}}"),f=(0,m.Z)("div",{target:"ez6hepg1"})("width:100%;margin:0 0 8px 0;border-radius:",p.r.borderRadius,";",g.M.mbDown,"{min-height:318px;padding:24px 16px 48px 16px;}",g.M.mbUp,"{max-width:768px;}.post-divider{border-top:0.5px solid #e4e8ec;border-bottom:none;margin:0;}"),C=(0,m.Z)("div",{target:"ez6hepg2"})(g.M.mbDown,"{min-height:262px;}",g.M.mbUp,"{padding:78px 0 81px 0;min-height:332px;}.post-title{margin-top:16px;-webkit-box-orient:horizontal;-webkit-line-clamp:2;.img{width:auto;}}.second{margin-top:124px;}"),b=(0,m.Z)("div",{target:"ez6hepg3"})("display:flex;align-items:start;",g.M.mbUp,"{max-width:546px;margin-left:auto;margin-right:auto;.img-title{height:140px;width:auto;margin-right:16px;}.mid-content{display:flex;}.banner-title{font-size:32px;letter-spacing:-1px;line-height:42px;}}",g.M.mbDown,"{display:block;.img-mb{height:100px;width:auto;}.post-space{margin-top:160px;}.banner-title{padding:0 24px;font-size:24px;line-height:32px;text-align:center;}.banner-description{text-align:center;}}.banner-title{color:",p.r.colors.secondaryBase,";}.banner-description{margin-top:8px;color:",p.r.colors.secondaryBase,";font-size:16px;line-height:24px;}"),Z=(0,m.Z)("div",{target:"ez6hepg4"})("display:flex;max-width:546px;justify-content:space-between;",g.M.mbUp,"{padding:0 28px;}&[data-has-legend='true']{margin-top:42px;}&[data-has-legend='false']{margin-top:137px;}margin-right:auto;margin-bottom:57px;margin-left:auto;.img-container{max-width:180px;align-items:center;.img-caption{margin-top:16px;color:",p.r.colors.secondaryDark,";font-size:22px;font-style:normal;font-weight:600;letter-spacing:-0.6px;line-height:32px;text-align:center;}}.img-container img{width:unset;}.columns{display:flex;flex-direction:column;align-content:center;align-items:center;justify-content:center;img{height:auto;",g.M.mbUp,"{width:180px;}",g.M.mbDown,"{width:100px;}}}"),y=(0,m.Z)("div",{target:"ez6hepg5"})("display:flex;align-items:center;margin-bottom:16px;.legend-content{color:#284a75;font-size:14px;line-height:22px;}.flag{img{width:28px;height:28px;}margin-right:12px;}.info{padding-bottom:20px;}.end-post{padding-bottom:81px;}"),x=(0,m.Z)("div",{target:"ez6hepg6"})("margin-right:auto;margin-left:auto;",g.M.mbUp,"{max-width:577px;}",g.M.mbDown,"{padding:0 8px;}"),w=(0,m.Z)("div",{target:"ez6hepg7"})(g.M.mbDown,"{width:375px;max-height:600px;}img{width:100%;height:auto;}"),HealthConcern=e=>{let{isMobile:t,id:a}=e,[m,g]=(0,i.useState)([]),[p,u]=(0,i.useState)([]),[k,B]=(0,i.useState)(),H=(0,h.U)();(0,i.useEffect)(()=>{let fetchData=async()=>{var e,t,n,i,o,l,r,h,m;let p=await (0,c.d)(s.y.COMMON.GET_CAROUSEL,{params:{id:a}});if(null==p?void 0:null===(e=p.data)||void 0===e?void 0:e.fields){if((null==p?void 0:null===(n=p.data)||void 0===n?void 0:null===(t=n.fields)||void 0===t?void 0:t.type)==="default"){let e=null==p?void 0:null===(l=p.data)||void 0===l?void 0:null===(o=l.fields)||void 0===o?void 0:null===(i=o.data)||void 0===i?void 0:i.map(d.yO);B(!0),g(e)}else{let e=null==p?void 0:null===(m=p.data)||void 0===m?void 0:null===(h=m.fields)||void 0===h?void 0:null===(r=h.data)||void 0===r?void 0:r.map(d.SG);B(!1),u(e)}}};fetchData()},[]);let renderDefaultPartnerCard=e=>{var t,a;return(0,n.tZ)(f,{children:(0,n.BX)(C,{children:[(0,n.BX)(b,{className:"post-title img-title img-mb",children:[!!(null==e?void 0:e.logoImage)&&(0,n.tZ)("div",{style:{display:"flex",justifyContent:"center",marginBottom:"22px"},children:(0,n.tZ)("img",{src:null==e?void 0:e.logoImage,alt:"avatar",className:"img-title img-mb",loading:"lazy"})}),(0,n.BX)("div",{children:[(0,n.tZ)("p",{className:"banner-title",dangerouslySetInnerHTML:{__html:e.title}}),(0,n.tZ)("p",{className:"banner-description",dangerouslySetInnerHTML:{__html:e.description}})]})]}),(0,n.tZ)(Z,{"data-has-legend":void 0!==e.legends&&e.legends.length>0,children:null==e?void 0:null===(t=e.mid)||void 0===t?void 0:t.map((e,t)=>(0,n.tZ)("div",{className:"img-container",children:(0,n.BX)("div",{className:"columns",children:[(0,n.tZ)("img",{loading:"lazy",src:null==e?void 0:e.img,alt:"avatar"}),(0,n.tZ)(o.T,{size:"md",className:"img-caption",children:null==e?void 0:e.label})]})},t))}),(0,n.tZ)(x,{children:null==e?void 0:null===(a=e.legends)||void 0===a?void 0:a.map((e,t)=>(0,n.BX)(y,{children:[(null==e?void 0:e.icon)&&(0,n.tZ)("div",{className:"flag",children:(0,n.tZ)("img",{loading:"lazy",src:null==e?void 0:e.icon,alt:""})}),(0,n.tZ)("span",{className:"legend-content",dangerouslySetInnerHTML:{__html:e.label}})]},t))})]})})},renderStatisticPartnerCard=e=>(0,n.tZ)(w,{children:(0,n.tZ)("img",{loading:"lazy",src:t&&e.imageMobile?e.imageMobile:e.imageDesktop,alt:e.title})});return(0,n.tZ)(n.HY,{children:((null==m?void 0:m.length)>0||(null==p?void 0:p.length))>0?(0,n.tZ)(v,{children:(0,n.tZ)(l.S,{column:1,row:1,isDotsShown:t,mode:"infinity",type:"separated",arrowType:"Care",isArrowShown:!t,dataEventCategory:"Carousel",dataEventAction:"Click",dataEventLabel:H,children:k?null==m?void 0:m.map(e=>renderDefaultPartnerCard(e)):null==p?void 0:p.map(e=>renderStatisticPartnerCard(e))})}):(0,n.tZ)(v,{children:(0,n.tZ)(r.Z,{height:763})})})}},OHji:function(e,t,a){a.d(t,{T:function(){return HealthToolIntroSection}});var n=a("BGKE"),i=a("wp0n"),o=a("OAL+"),l=a("dDsW"),r=a("K27U"),c=a("usqR"),d=a("lnkF"),s=a("hXNO"),h=a("rIrU"),m=(0,a("/npG").k)(e=>({root:{gap:24,[e.fn.largerThan("sm")]:{gap:40}}}));let HealthToolIntroSection=e=>{let{toolInfo:t,color:a,styles:g,className:p,classNames:u,...v}=e,{formatMessage:f}=(0,l.Z)(),C=(0,s.d)(),{classes:b,cx:Z,theme:y}=m(void 0,{name:"HealthToolIntroSection",styles:g,classNames:u});return t?(0,n.BX)(o.K,{...v,className:Z(p,b.root),sx:e=>({gap:24,[e.fn.largerThan("sm")]:{gap:40}}),children:[!C&&(0,n.tZ)(d.V,{color:a,icon:(0,n.tZ)("img",{alt:"health-tool-icon",loading:"lazy",src:(null==t?void 0:t.featured_image)||"".concat(h.Nr,"/bmi.svg"),style:{width:"100%",height:"100%",objectFit:"contain"}}),heading:t.title||f({id:"bmi.heading",defaultMessage:"BMI Calculator"}),description:t.description||f({id:"bmi.description",defaultMessage:"BMI Calculator"})}),(0,n.tZ)(c.E,{description:t.disclaimer}),(0,n.tZ)(r.e,{faqs:t.information,titleProps:{icon:(0,n.tZ)("img",{style:{height:"18px",width:"18px"},src:"".concat(h.Nr,"/info-icon.svg"),alt:"",loading:"lazy"}),headingTitle:(0,n.tZ)(i.T,{size:"p3",color:y.colors.gray[6],weight:"semiBold",sx:{textTransform:"uppercase"},children:f({id:"tools.info",defaultMessage:"Info"})})}})]}):null}},"O+H8":function(e,t,a){a.d(t,{X:function(){return y}});var n=a("BGKE"),i=a("q1tI");let o=(0,i.createContext)({});var l=a("wp0n"),r=a("8vDj"),c=a("Eso5");let BoxWithAnimation=e=>{let{name:t,id:a}=e,d=(0,r.rZ)(),{scrollTo:s,activeId:h}=(0,i.useContext)(o);return(0,n.tZ)(c.x,{py:10,sx:{cursor:"pointer",position:"relative",transition:"all 0.3s ease",color:d.colors.gray400,":before":{content:'""',display:"block",width:0,height:2,backgroundColor:d.colors.primaryBase,position:"absolute",top:24,left:0,opacity:0,transition:"all 0.3s ease"},":hover":{color:d.colors.primary600},"&.active":{paddingLeft:36,color:d.colors.primaryBase,":before":{opacity:1,width:24}}},onClick:()=>null==s?void 0:s(a),className:h===a?"active":"",children:(0,n.tZ)(l.T,{size:"p1",weight:"semiBold",color:"inherit",children:t})})};var d=a("kfjY"),s=a("CmzK"),h=a("iuhU"),m=a("0EDw"),g=a("ZLal"),p=a("/npG"),u=a("mYVa"),v=(0,p.k)(e=>({input:{border:0,fontSize:(0,u.h)(16),lineHeight:(0,u.h)(28),height:"".concat((0,u.h)(44)," !important"),color:e.colors.gray[8],letterSpacing:"-0.2px",backgroundColor:e.colors.blue[0],borderRadius:0,paddingLeft:16,outline:"none",boxShadow:"none"},item:{fontSize:(0,u.h)(16),lineHeight:(0,u.h)(24),padding:"".concat((0,u.h)(12)," ").concat((0,u.h)(16)),backgroundColor:"transparent",'&[data-selected="true"]':{color:e.fn.primaryColor(),fontWeight:g.F.semiBold,backgroundColor:"transparent"}},itemsWrapper:{padding:0},dropdown:{borderRadius:0,border:0,transform:"translateY(-8px)",backgroundColor:e.colors.blue[0]},rightSection:{backgroundImage:"url(/svg/arrow-down.svg)",backgroundRepeat:"no-repeat",backgroundPosition:"center",svg:{display:"none"}}})),f=a("OAL+"),C=(0,p.k)(e=>({root:{gap:24,[e.fn.largerThan("sm")]:{gap:40,height:"100%"}}})),b=a("O/o9");let Z=(0,i.forwardRef)(function(e,t){let{id:a,children:l}=e,r=window.innerHeight/2,{ref:d,inView:s}=(0,b.YD)({root:null,rootMargin:"-".concat(r,"px 0px -").concat(r,"px 0px"),threshold:0}),{setActiveId:h}=(0,i.useContext)(o);return(0,i.useEffect)(()=>{s&&h(a)},[s,a,h]),(0,n.tZ)(c.x,{ref:e=>{d(e),"function"==typeof t?t(e):t&&(t.current=e)},children:l})}),y=Object.assign(e=>{var t;let{children:a,listing:l=[],loading:r,hasSponsor:c}=e,[d,s]=(0,i.useState)(null==l?void 0:null===(t=l[0])||void 0===t?void 0:t.id),h=(0,i.useRef)({}),m=c?106:53;return(0,n.tZ)(o.Provider,{value:{listing:l,registerRef:(e,t)=>{h.current[e]=t},scrollTo:e=>{let t=h.current[e];if(t&&!r){let a=t.getBoundingClientRect().top+window.scrollY-m-24;window.scrollTo({top:a,behavior:"smooth"}),s(e)}},activeId:d,setActiveId:s,loading:r,hasSponsor:c},children:a})},{Nav:()=>{let{listing:e}=(0,i.useContext)(o);return 0===e.length?null:(0,n.tZ)(c.x,{children:e.map(e=>(0,n.tZ)(BoxWithAnimation,{name:e.label,id:e.id},e.id))})},ResultListing:e=>{let{itemWrapper:t=c.x,className:a,classNames:l,styles:r,...d}=e,{listing:s,registerRef:h}=(0,i.useContext)(o),m=(0,i.useRef)({}),{classes:g,cx:p}=C(void 0,{name:"HealthToolResultPanel__ResultListing",styles:r,classNames:l}),u=(0,i.useRef)([]);return(0,i.useEffect)(()=>{let e=s.map(e=>e.id);u.current.forEach(t=>{e.includes(t)||null==h||h(t,null)}),s.forEach(e=>{let t=m.current[e.id];t&&(null==h||h(e.id,t))}),u.current=e},[s]),(0,n.tZ)(f.K,{...d,className:p(a,g.root),children:s.map(e=>e.children?(0,n.tZ)(t,{children:(0,n.tZ)(Z,{id:e.id,ref:t=>{m.current[e.id]=t,null==h||h(e.id,t)},children:e.children})},e.id):null)})},NavSelect:e=>{let{styles:t,classNames:a,className:l,mounted:r}=e,{classes:c}=v(void 0,{name:"HealthToolResultPanel",styles:t,classNames:a}),[g]=(0,m.b)(),{listing:p,scrollTo:u,activeId:f}=(0,i.useContext)(o),[C,b]=(0,i.useState)(f);return((0,i.useEffect)(()=>{b(f)},[f]),0===p.length)?null:(0,n.tZ)(d.u,{transition:"slide-down",mounted:r&&g.y>150,children:e=>(0,n.tZ)(s.Ph,{style:e,className:(0,h.default)(l,"no-focus"),classNames:{input:c.input,item:c.item,dropdown:c.dropdown,itemsWrapper:c.itemsWrapper,rightSection:c.rightSection},data:p.map(e=>({value:e.id,label:e.label})),value:C,onChange:e=>{e&&(b(e),null==u||u(e))}})})}})},QrfD:function(e,t,a){a.d(t,{$:function(){return HealthToolTypeCategory}});var n=a("BGKE"),i=a("Eso5"),o=a("kcif"),l=a.n(o),r=a("hXNO"),c=a("wp0n"),d=a("8wjV"),s=a("iZ8j"),h=a("RZSM"),m=a("SPK5"),g=a("dDsW"),p=a("CJtR"),u=a("QM8a"),v=a("Q7Fe"),f=a("P5LW"),C=a("rIrU"),b=a("/npG"),Z=a("HC7W"),y=a("mYVa"),x=(0,b.k)(e=>({root:{display:"block",textDecoration:"none",position:"relative","&:before":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,opacity:0,backgroundImage:"radial-gradient(50% 100% at 50% 0%, #E3F2FF 0%, #FFFFFF 100%)",transition:"opacity 0.3s ease"},"&:hover":{"&:before":{opacity:1},[".".concat((0,Z.A)("btn"))]:{borderColor:e.fn.primaryColor()}}},inner:{position:"relative",display:"flex",alignItems:"center",gap:24,justifyContent:"space-between",padding:"".concat((0,y.h)(12)," 0"),[e.fn.largerThan("sm")]:{padding:"".concat((0,y.h)(16)," 0")}},body:{display:"flex",alignItems:"center",gap:12,[e.fn.largerThan("sm")]:{gap:24}},thumbnail:{width:40,flexShrink:0,[e.fn.largerThan("sm")]:{width:48}},info:{display:"flex",flexDirection:"column",gap:4},desc:{[e.fn.smallerThan("sm")]:{display:"none"}},btn:{ref:(0,Z.A)("btn"),fontWeight:"normal",color:e.fn.primaryColor(),paddingRight:12},action:{}}));let Card=e=>{let{tool:t,styles:a,classNames:o,className:l,...b}=e,{locale:Z}=(0,f.h)(),{formatMessage:y}=(0,g.Z)(),w=(0,r.d)(),{classes:k,cx:B,theme:H}=x(void 0,{name:"HealthToolTypeCategory__Card",styles:a,classNames:o});return(0,n.tZ)(i.x,{component:"a",className:B(l,k.root),href:t.link.replace(/health-tools\/(?=health-tools\/)/,""),"data-event-category":"Health Tool","data-event-action":C.RE[t.template],"data-event-label":"".concat((0,p.UC)(Z)).concat(t.link),...b,children:(0,n.BX)("div",{className:k.inner,children:[(0,n.BX)("div",{className:k.body,children:[(0,n.tZ)(h.o,{ratio:1,className:k.thumbnail,children:(0,n.tZ)("img",{loading:"lazy",src:t.icon||"".concat(C.Nr,"/avatar.jpg"),alt:t.title,style:{objectFit:"contain"}})}),(0,n.BX)("div",{className:k.info,children:[(0,n.tZ)(c.T,{size:"s3",color:"#404040",children:t.title}),t.isMobileAppTool&&(0,n.BX)(m.k,{gap:4,children:[(0,n.tZ)(u.Z,{size:16}),(0,n.tZ)(c.T,{size:"n1",weight:"regular",color:H.fn.primaryColor(),children:y({id:"common.calcWithApp"})})]}),(0,n.tZ)(v.G,{className:k.desc,size:"p4",color:"#404040",lineClamp:2,content:t.subtitle})]})]}),(0,n.tZ)("div",{className:k.action,children:w?(0,n.tZ)(s.Z,{size:18,color:"currentColor"}):(0,n.tZ)(d.B,{variant:"tertiary",rightIcon:(0,n.tZ)(s.Z,{size:18,color:"currentColor"}),className:k.btn,size:"sm",children:y({id:"pnBannerWithOption.dueDateTool.btnLabel"})})})]})})};var w=(0,b.k)(e=>({card:{borderTop:"1px solid ".concat(e.colors.neutral[1])}}));let HealthToolTypeCategory=e=>{let{healthTools:t,styles:a,className:o,classNames:c,...d}=e,s=(0,r.d)(),h=l()(t,s?4:9),{classes:m}=w(void 0,{name:"HealthToolTypeCategory",styles:a,classNames:c});return(null==t?void 0:t.length)===0?(0,n.tZ)(n.HY,{}):(null==t?void 0:t.length)!==0?(0,n.tZ)(i.x,{...d,children:h.map(e=>e.map((e,t)=>(0,n.tZ)(Card,{tool:e,className:m.card},"".concat(t,"-mobile"))))}):null}},xS4b:function(e,t,a){a.d(t,{s:function(){return HealthToolHeroBanner}});var n=a("BGKE"),i=a("q1tI"),o=a("DEkF"),l=a("MmHG"),r=a("iBNF"),c=a("dDsW"),d=a("09QT"),s=a("/tR3"),h=a("oQBk"),m=a("rIrU"),g=a("rBCA"),p=a("uuQu");let u=(0,g.Z)("div",{target:"e1amrkui0"})("position:relative;margin-bottom:2rem;"),v=(0,g.Z)("div",{target:"e1amrkui1"})("display:flex;width:100%;height:100%;min-height:180px;justify-content:center;background-position:center bottom;background-repeat:no-repeat;background-size:cover;"),f=(0,g.Z)("div",{target:"e1amrkui2"})("display:flex;width:100%;max-width:1170px;flex-direction:column;justify-content:space-between;padding:1.5rem 1rem;",p.M.mbUp,"{padding:3rem 2rem;flex-direction:row;}"),C=(0,g.Z)("div",{target:"e1amrkui3"})("margin-bottom:1rem;",p.M.mbUp,"{max-width:540px;margin-right:2rem;}"),b=(0,g.Z)("div",{target:"e1amrkui4"})("text-align:center;",p.M.mbUp,"{text-align:unset;transform:translateY(3rem);}"),Z=(0,g.Z)("div",{target:"e1amrkui5"})("width:100%;"),y=(0,g.Z)("div",{target:"e1amrkui6"})("position:relative;width:100%;padding:0 16px;background-position:bottom center;background-repeat:no-repeat;background-size:cover;",p.M.mbUp,"{display:none;}"),x=(0,g.Z)("div",{target:"e1amrkui7"})("position:relative;width:28%;margin-left:auto;",p.M.mbDown,"{width:70px;}"),w=(0,g.Z)("div",{target:"e1amrkui8"})("position:relative;width:100%;padding:16px 0 8px 0;"),HeroBanner=e=>{let{src:t,title:a,description:i,backgroundSrc:r,className:c,reviewedSection:d,isEmbed:s}=e;return(0,n.tZ)(u,{className:c,children:(0,n.tZ)(v,{style:{backgroundImage:'url("'.concat(r,'")')},children:(0,n.BX)(f,{children:[(0,n.BX)(C,{children:[(0,n.tZ)(o.H,{tag:s?"h2":"h1",color:"white",children:a}),i?(0,n.tZ)(l.T,{size:"p3",color:"white",children:i}):(0,n.tZ)("div",{className:"content no-description"}),d]}),(0,n.tZ)(b,{children:(0,n.tZ)("img",{loading:"lazy",src:t||m.At,style:{width:"140px",height:"140px",objectFit:"contain"},alt:a})})]})})})};var k=a("hXNO");let HealthToolHeroBanner=e=>{var t,a,g;let{backgroundDesktopSrc:p,backgroundMobileSrc:u,title:v,description:f,iconSrc:C,className:b,isEmbed:B=!1}=e,{formatMessage:H}=(0,c.Z)(),M=(0,k.d)(),[T,L]=(0,i.useState)({}),N=(0,s.Lb)(null==T?void 0:T.reviewed_by);return(0,i.useEffect)(()=>{(async()=>{let e=await (0,d.d)(h.y.HEALTH_TOOL.GET_HEALTH_TOOL_OVULATION_INFO);L(null==e?void 0:e.data)})()},[]),(0,n.tZ)(Z,{className:b,children:M?(0,n.BX)(y,{style:{backgroundImage:"url('".concat(u||p,"')")},children:[(0,n.BX)(w,{children:[(0,n.tZ)(o.H,{tag:"h1",color:"white",children:v}),(0,n.tZ)(l.T,{size:"p3",color:"white",style:{marginTop:"10px"},children:f}),(null==T?void 0:null===(t=T.reviewed_by)||void 0===t?void 0:t.display_name)?(0,n.BX)(l.T,{size:"p4",color:"white",style:{marginTop:"0.3rem"},children:[(0,n.tZ)("img",{loading:"lazy",src:"".concat(m.Nr,"/check-circle.svg"),style:{height:16,width:16,marginRight:6,verticalAlign:"middle"},alt:""}),(0,n.tZ)("span",{dangerouslySetInnerHTML:{__html:H({id:"articlePage.articleReviewerBy"},{name:'\n ').concat(T.reviewed_by.display_name,"\n ")})}}),(0,n.tZ)("span",{children:H({id:"tools.heading.on",defaultMessage:" on "})}),(0,n.tZ)("span",{children:null==T?void 0:T.reviewed_date})]}):null]}),(0,n.tZ)(x,{children:(0,n.tZ)("img",{loading:"lazy",src:C||m.At,style:{width:"100%",objectFit:"contain"},alt:v})})]}):(0,n.tZ)(HeroBanner,{isEmbed:B,className:"desktop-only",src:C,backgroundSrc:p||u||"",title:v,description:f,reviewedSection:(null==T?void 0:null===(a=T.reviewed_by)||void 0===a?void 0:a.display_name)&&(null==T?void 0:null===(g=T.reviewed_by)||void 0===g?void 0:g.display_name)!==""&&(0,n.BX)(l.T,{size:"p4",color:r.r.colors.white,style:{marginTop:12},children:[(0,n.tZ)("img",{loading:"lazy",src:"".concat(m.Nr,"/check-circle.svg"),style:{height:16,width:16,marginRight:6,verticalAlign:"middle"},alt:""}),(0,n.tZ)("span",{dangerouslySetInnerHTML:{__html:H({id:"toolPage.toolReviewer"},{expert_name:'\n ').concat(T.reviewed_by.display_name,"\n "),date:null==T?void 0:T.reviewed_date})}}),(0,n.tZ)("span",{})]}),isMobile:!0})})}},FAeV:function(e,t,a){a.d(t,{d:function(){return HealthToolsCard}});var n=a("BGKE"),i=a("qQsD"),o=a("DEkF"),l=a("iBNF"),r=a("YFqc"),c=a.n(r),d=a("dDsW"),s=a("ECoa"),h=a("mWp1"),m=a("iv2E"),g=a("P5LW"),p=a("rIrU"),u=a("rBCA"),v=a("uuQu");let f=(0,u.Z)("div",{target:"e6phb3w0"})("border:1px solid #e4e8ec;margin-top:24px;background-color:",l.r.colors.white,";border-radius:4px;",v.M.mbUp,"{padding:24px;}",v.M.mbDown,"{padding:16px;margin:24px 16px;}"),C=(0,u.Z)("div",{target:"e6phb3w1"})("padding:16px 0;.bullet-nav{z-index:1;bottom:-24px;}.grid-layout{align-content:space-between;}.healthTools{.container\n > .section:first-of-type\n > .grid-layout\n > .item-grid\n > a\n > div\n > div:last-child{overflow:hidden;max-height:3.9em;}}"),b=(0,u.Z)("div",{target:"e6phb3w2"})("display:flex;align-items:flex-start;padding:0 16px;& >:last-child > h5{display:flex;align-items:center;& >{margin-left:8px;}}",v.M.mbDown,"{padding:0 8px;}",v.M.mbUp,"{& >:last-child{margin-top:4px;}}.chevron-right-icon{width:16px;height:16px;}"),Z=(0,u.Z)("a",{target:"e6phb3w3"})("display:flex;flex:1;justify-content:center;padding:12px 24px;border:1px solid ",l.r.colors.primaryActive,";border-radius:4px;cursor:pointer;text-decoration:none;h5{color:",l.r.colors.primaryActive,";font-size:16px;font-weight:600;line-height:24px;}"),HealthToolsCard=e=>{let{isMobile:t,healthTools:a=[],healthToolsLoading:r}=e,{formatMessage:u}=(0,d.Z)(),{locale:v}=(0,g.h)(),CategoriesSkeleton=()=>(0,n.BX)(i.S,{row:2,column:3,mode:"snapped",type:"separated",children:[(0,n.tZ)(s.Z,{height:125,width:100}),(0,n.tZ)(s.Z,{height:125,width:100}),(0,n.tZ)(s.Z,{height:125,width:100}),(0,n.tZ)(s.Z,{height:125,width:100}),(0,n.tZ)(s.Z,{height:125,width:100}),(0,n.tZ)(s.Z,{height:125,width:100})]});return r?(0,n.tZ)(CategoriesSkeleton,{}):(0,n.BX)(f,{style:{marginTop:24,padding:24,border:"1px solid #E4E8EC",borderRadius:4},children:[(0,n.tZ)(o.H,{tag:"h5",color:l.r.colors.gray800,style:{textAlign:"center"},children:u({id:"home.healthTools",defaultMessage:"Other Health Tools"})}),(0,n.tZ)(C,{style:t?{padding:"16px 0"}:{padding:"20px 0",paddingBottom:0},children:r?(0,n.tZ)(CategoriesSkeleton,{}):a.length>0&&(0,n.tZ)(i.S,{isDotsShown:!1,row:3,column:3,mode:"snapped",type:"separated",children:a.map((e,t)=>(0,n.tZ)(h.b,{cardInfo:{image:e.icon||"".concat(p.Nr,"/avatar.jpg"),title:e.title,url:e.link}},t))})}),(0,n.tZ)(b,{children:(0,n.tZ)(c(),{prefetch:!1,href:"/health-tools",legacyBehavior:!0,children:(0,n.tZ)(Z,{"data-event-category":"Other Health Tools","data-event-action":"Click See All","data-event-label":"https://".concat(m.domainLocales[v]).concat(p.sb,"/health-tools"),children:(0,n.tZ)(o.H,{tag:"h5",color:l.r.colors.primaryBase,children:u({id:"home.seeAll",defaultMessage:"See All"})})})})})]})}},Qpuk:function(e,t,a){a.d(t,{f:function(){return HospitalServiceSection}});var n=a("BGKE"),i=a("Zdfy"),o=a("CLWb"),l=a("HHCU"),r=a("N3Xi"),c=a("P5LW"),d=a("jY7X");let HospitalServiceSection=e=>{let{services:t,serviceType:a,sectionName:s,classes:h,showAllLink:m,carouselProps:g}=e,{locale:p}=(0,c.h)();if(0===t.length)return null;let getServiceUrl=e=>{let t=(0,d.WD)(a,p);return"".concat(t).concat(e.slug,"-").concat(e.listing_id)};return(0,n.tZ)(l.N,{sectionName:s,classes:h,showAllLink:m,carouselProps:g,children:null==t?void 0:t.map(e=>(0,n.tZ)(i.l.Slide,{children:(0,n.tZ)(o.F,{href:getServiceUrl(e),children:(0,n.tZ)(r.s,{...e})})},e.listing_id))})}},zh4t:function(e,t,a){a.d(t,{y:function(){return InfoCardWithSmallIconSection}});var n=a("BGKE"),i=a("wp0n"),o=a("Eso5"),l=a("C/sX"),r=a("ToHr"),c=a("/npG"),d=a("mYVa"),s=(0,c.k)(e=>({root:{},inner:{display:"flex",flexDirection:"column",gap:48},listing:{display:"flex",flexDirection:"column",gap:32,[e.fn.largerThan("sm")]:{gap:48}},group:{display:"flex",flexDirection:"column",gap:24},header:{display:"flex",flexDirection:"column",gap:24},desc:{fontSize:16,lineHeight:(0,d.h)(24),[e.fn.largerThan("sm")]:{fontSize:18,lineHeight:(0,d.h)(28)}},heading:{fontSize:28,lineHeight:(0,d.h)(34),fontWeight:500,[e.fn.largerThan("sm")]:{fontSize:48,lineHeight:(0,d.h)(58)}},item:{height:"100%"}})),h=a("hXNO");let InfoCardWithSmallIconSection=e=>{let{title:t,description:a,data:c,innerClass:d,className:m,classNames:g,styles:p}=e,{classes:u,cx:v}=s(void 0,{name:"InfoCardWithSmallIconSection",styles:p,classNames:g}),f=(0,h.d)();return(0,n.tZ)(o.x,{className:v(m,u.root),children:(0,n.BX)("div",{className:v(d,u.inner),children:[(t||a)&&(0,n.BX)("div",{className:u.header,children:[t&&(0,n.tZ)("h2",{className:u.heading,children:t}),a&&(0,n.tZ)("div",{className:u.desc,children:a})]}),(0,n.tZ)("div",{className:u.listing,children:c.map((e,t)=>(0,n.BX)("div",{className:u.group,children:[(0,n.tZ)(i.T,{size:f?"s2":"s1",children:e.title}),(0,n.tZ)(l.r,{gutterSm:"sm",gutterMd:"xl",children:e.listHealthTools.map((e,t)=>(0,n.tZ)(l.r.Col,{md:6,lg:4,children:(0,n.tZ)(r.l,{heading:e.title,description:e.description,thumbnail:e.icon,url:e.url,className:u.item})},t))})]},t))})]})})}},IA2M:function(e,t,a){a.d(t,{T:function(){return InfoGardientSection}});var n=a("BGKE"),i=a("q1tI"),o=a("Eso5"),l=a("O/o9"),r=a("Q7Fe"),c=a("/npG"),d=a("mYVa"),s=(0,c.k)(e=>({root:{backgroundColor:"#1A1A1A",padding:"64px 0",[e.fn.largerThan("sm")]:{padding:"100px 0"}},inner:{display:"flex",flexDirection:"column",gap:36,[e.fn.largerThan("sm")]:{gap:80}},thumbnail:{height:200},descWrapper:{position:"relative"},desc:{color:"#595959",fontSize:22,lineHeight:(0,d.h)(33),[e.fn.largerThan("sm")]:{fontSize:32,lineHeight:(0,d.h)(42)}},descOverlay:{position:"absolute",top:0,left:0,right:0,backgroundClip:"text",backgroundImage:"linear-gradient(175.61deg, #2D87F3 1.1%, #26E187 61.79%, #CAEDFE 105.65%)","-webkit-text-fill-color":"transparent",transition:"all 2.5s ease",clipPath:"circle(1% at 0 0)","&.fill-bg":{clipPath:"circle(150% at 0 0)",backgroundImage:"linear-gradient(175.61deg, #2D87F3 1.1%, #26E187 61.79%, #CAEDFE 105.65%)"},[e.fn.largerThan("sm")]:{backgroundImage:"linear-gradient(85.58deg, #2D87F3 6.64%, #26E187 38.45%, #CAEDFE 87.17%)","&.fill-bg":{backgroundImage:"linear-gradient(85.58deg, #2D87F3 6.64%, #26E187 38.45%, #CAEDFE 87.17%)"}}},listing:{display:"flex",flexDirection:"column",gap:48},group:{display:"flex",flexDirection:"column",gap:16},header:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:24,[e.fn.smallerThan("sm")]:{flexDirection:"column"}},heading:{fontSize:20,lineHeight:(0,d.h)(30),textAlign:"right",position:"relative",paddingBottom:12,color:"#fff",backgroundImage:"linear-gradient(90deg, #D9D9D9 0%, #737373 100%)",backgroundClip:"text","-webkit-text-fill-color":"transparent","&:after":{content:'""',position:"absolute",top:"100%",left:0,right:0,height:1,backgroundImage:"linear-gradient(93.31deg, #2D87F3 0.41%, #26E187 30.84%, #CAEDFE 77.43%)"},[e.fn.smallerThan("sm")]:{textAlign:"center",fontSize:18,lineHeight:(0,d.h)(28)}}}));let InfoGardientSection=e=>{let{heading:t,description:a,image:c,innerClass:d,className:h,classNames:m,styles:g}=e,{ref:p,inView:u}=(0,l.YD)(),{classes:v,cx:f}=s(void 0,{name:"InfoGardientSection",styles:g,classNames:m}),[C,b]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{!C&&u&&b(!0)},[u]),(0,n.tZ)(o.x,{className:f(h,v.root),ref:p,children:(0,n.BX)("div",{className:f(d,v.inner),children:[(0,n.BX)("div",{className:v.header,children:[(0,n.tZ)("img",{loading:"lazy",src:c,className:v.thumbnail,alt:"Hello Bacsi"}),(0,n.BX)("div",{className:v.heading,children:[(0,n.tZ)("div",{children:"Hello Bacsi"}),(0,n.tZ)("div",{children:t})]})]}),a&&(0,n.BX)("div",{className:v.descWrapper,children:[(0,n.tZ)(r.G,{className:f(v.desc),content:a}),(0,n.tZ)(r.G,{className:f(C?"fill-bg":"",v.desc,v.descOverlay),content:a})]})]})})}},uEWy:function(e,t,a){a.d(t,{j:function(){return ArticleNavDetector}});var n=a("BGKE"),i=a("q1tI"),o=a("rCsv"),l=a("09QT"),r=a("oQBk"),c=a("P5LW");let ArticleNavDetector=e=>{let{categoryIds:t,children:a}=e,{locale:d}=(0,c.h)(),[s,h]=(0,i.useState)(null);return(0,i.useEffect)(()=>{(async()=>{let e=await (0,l.d)(r.y.LEADGEN.GET_FORMULA_CTA,{method:"GET",params:{countryCode:o.M[d]}},"lead"),a=t.split(","),n=((null==e?void 0:e._data)||[]).filter(e=>a.includes(String(e.category_id)))[0]||{};h({title:n.cta_message||"",url:n.url_flow||"",type:(n.messaging_app||"").toLowerCase(),categoryId:n.category_id||"",categoryName:n.category_name})})()},[t]),(0,n.tZ)(n.HY,{children:a({ctaNavData:s})})}},dDkV:function(e,t,a){a.d(t,{o:function(){return CtaBottomNavigation}});var n=a("BGKE"),i=a("q1tI"),o=a("27Mu"),l=a("S2kL"),r=a("ZLal"),c=a("8wjV"),d=a("8vDj"),s=a("eito"),h=a("p46w"),m=a.n(h),g=a("09QT"),p=a("oQBk"),u=a("bpKC"),v=a("AdRs"),f=a("eeY3"),C=a("dz0l"),b=a("iv2E"),Z=a("raAP"),y=a("P5LW"),x=a("rIrU"),w=a("L1RX"),k=a("IZuS");let CtaBottomNavigation=e=>{let{title:t,url:a,type:h,categoryId:B,categoryName:H,articleInfo:M={id:"",name:""}}=e,{locale:T}=(0,y.h)(),L=(0,Z.U)(),N=(0,d.rZ)(),[I,E]=(0,i.useState)(!1),[S,A]=(0,i.useState)(!1),trackingHandler=async()=>await (0,g.d)(p.y.LEADGEN.POST_TRACKING_OTHERS,{method:"POST",data:{site_domain:b.domainLocales[T],url:a,cookie_id:(0,o.ej)("hhg-id"),ga_client_id:m().get(x.ch),category_name:H,category_id:B,messaging_app:h,cta_message:t,article_path:L,article_name:M.name,article_id:M.id}},"lead"),z=(0,i.useCallback)(async e=>{e.preventDefault(),E(!0),trackingHandler(),window.location.href=a},[]),D=(0,i.useCallback)(async e=>{e.preventDefault(),A(!0),trackingHandler()},[]),_=(0,i.useCallback)(async e=>{let{callingCode:a,phone:n,countryCode:i}=e||{};await (0,g.d)(p.y.LEADGEN.GET_CTA_SUBMIT,{method:"POST",data:{area_code:a,phone_number:n,widget_type:"standalone_cta_button",subscription_headline:"",cta_text:t,source_url:L,source_type:"Article",article_id:M.id,article_name:M.name,category_name:H,category_id:B,messaging_app:"Zalo",country_code:i}},"lead")},[]);return t&&a&&Object.values(w.q).includes(h)?(0,n.tZ)(r.T,{variant:r.C.LEADGEN,children:(0,n.BX)(n.HY,{children:[(0,n.tZ)(k.Z,{displayAlways:!0,height:64,style:{borderTop:"1px solid ".concat(N.colors.gray[1])},children:(0,n.tZ)(s.e,{sx:{width:"100%",display:"block",padding:"0 16px"},href:a,onClick:h===w.q.Zalo?D:z,children:(0,n.tZ)(c.B,{size:"lg",fullWidth:!0,loading:I,leftIcon:h===w.q.Zalo?(0,n.tZ)(C.Z,{size:28,color:"#fff"}):h===w.q.Line?(0,n.tZ)(u.Z,{size:28}):h===w.q.Messenger?(0,n.tZ)(v.Z,{size:28}):h===w.q.WhatsApp?(0,n.tZ)(f.Z,{size:28}):null,color:h===w.q.Zalo?"#2D87F3":h===w.q.Line?"#06C755":h===w.q.Messenger?"#0866FF":h===w.q.WhatsApp?"#2CB742":void 0,children:t})})}),h===w.q.Zalo&&(0,n.tZ)(l.P,{isOpen:S,isMobile:!0,onSubmit:_,onOpenChange:e=>A(e)})]})}):null}},IZuS:function(e,t,a){var n=a("BGKE"),i=a("q1tI"),o=a("DzJC"),l=a.n(o),r=a("Dd9K"),c=a("aNTj"),d=a("Ixbl");t.Z=e=>{let{children:t,displayAlways:a,height:o=44,onScroll:s,style:h}=e,m=(0,i.useRef)(null),g=(0,i.useRef)(0),p=(0,i.useRef)(!1),[u,v]=(0,i.useState)(!1);(0,r.B)();let f=(0,i.useCallback)(l()(()=>{p.current||(p.current=!0,requestAnimationFrame(()=>{c.E.measure(()=>{if(null==s||s(),!m.current){p.current=!1;return}let e=window.scrollY,t=m.current.getBoundingClientRect(),a=u;e>g.current+30&&e>t.height+20&&!u&&(a=!0),e=0&&(g.current=e),a!==u?c.E.mutate(()=>{v(a),p.current=!1}):p.current=!1})}))},150),[u,s]);return(0,i.useEffect)(()=>(window.addEventListener("scroll",f,{passive:!0}),()=>{window.removeEventListener("scroll",f),p.current=!1}),[f]),(0,i.useEffect)(()=>{let e=document.querySelector("html");if(e)return c.E.mutate(()=>{e.style.setProperty("--mobile-bottom-height",u?"0px":"".concat(o,"px"))}),()=>{c.E.mutate(()=>{e.style.removeProperty("--mobile-bottom-height")})}},[u,o]),(0,n.tZ)(d.d,{refObject:m,isCollapsed:!a&&u,"data-abcxyz":!0,height:o,style:h,children:t})}},j06Q:function(e,t,a){a.r(t);var n=a("BGKE"),i=a("q1tI"),o=a("iBNF"),l=a("QcYj"),r=a("LL/B"),c=a("wp0n"),d=a("90i8"),s=a("v8Gc"),h=a("WmCh"),m=a("Eso5"),g=a("mYVa"),p=a("ChHM"),u=a("DzJC"),v=a.n(u),f=a("Vvt1"),C=a.n(f),b=a("a5vB"),Z=a("3YDj"),y=a("Xf0B"),x=a("raAP"),w=a("P5LW"),k=a("Dd9K"),B=a("rIrU"),H=a("CF0j"),M=a("o0qI"),T=a("tjQ2"),L=a("Zoy9"),N=a("IZuS"),I=a("sKr0");let E=C()(()=>Promise.all([a.e(9409),a.e(6259),a.e(1818),a.e(7519),a.e(761),a.e(2189),a.e(5231),a.e(7797),a.e(5454),a.e(5481),a.e(140),a.e(5718),a.e(3684),a.e(5349),a.e(4148),a.e(2509),a.e(1533),a.e(1108),a.e(9124),a.e(4190),a.e(2582),a.e(6509),a.e(5308),a.e(4125),a.e(9715),a.e(7730),a.e(3929),a.e(891),a.e(137),a.e(4414),a.e(1079),a.e(7613),a.e(8098),a.e(3416),a.e(2500),a.e(1570),a.e(3506),a.e(1413),a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341),a.e(4846),a.e(2233),a.e(1058),a.e(3295),a.e(1538),a.e(7152),a.e(5684),a.e(2574),a.e(9884),a.e(7644),a.e(6962),a.e(8767),a.e(6638),a.e(7741),a.e(3434),a.e(2433),a.e(5385),a.e(3564),a.e(7082),a.e(3158),a.e(5641),a.e(7454),a.e(7004),a.e(4758),a.e(6219),a.e(17),a.e(8990),a.e(4067),a.e(9487),a.e(9083),a.e(1520),a.e(270),a.e(7596),a.e(8217),a.e(7543),a.e(2835),a.e(2507),a.e(6885),a.e(7859),a.e(690),a.e(2730),a.e(6287),a.e(7682),a.e(1551),a.e(4870),a.e(9922),a.e(3133),a.e(612),a.e(2002),a.e(1880),a.e(7471),a.e(7165),a.e(5451),a.e(8612),a.e(2819),a.e(7695)]).then(a.bind(a,"/Vif")).then(e=>e.ArticleAudioPlayer),{loadableGenerated:{webpack:()=>["/Vif"]}});t.default=e=>{let{isBookmarked:t,onBookmarkClick:a,turnOffComment:u,turnOffArticleVoice:f,enableAudio:C,articleId:S,articleContent:A,isPremium:z,articleUrl:D}=e,{locale:_,router:{pathname:R}}=(0,w.h)(),{state:{zaloConfig:F,chatwootWebsiteToken:P}}=(0,i.useContext)(M.I);(0,y.Z)();let X=(0,p.O)(()=>W(!1)),K=(0,x.U)(),{totalComment:G,setIsCommentPopupOpen:O}=(0,T.WM)(e=>({totalComment:e.totalComment,setIsCommentPopupOpen:e.setIsCommentPopupOpen}),b.X),[V,W]=(0,i.useState)(!1);(0,k.B)();let{state:{currentDomain:U}}=(0,i.useContext)(M.I),j=(0,i.useMemo)(()=>!r.c.includes(_),[_]),Y=(0,i.useMemo)(()=>({voice:!0,aiDoctor:B.y.includes(_),healthTool:!0,togetherComment:!j,thirdPartyChat:(null==F?void 0:F.oaid)||P,bookmark:!1,categories:!0}),[j,null==F?void 0:F.oaid,P]),q=(0,i.useMemo)(()=>["voice","askDoctor","aiDoctor","categories","healthtool","jumpingLink","bookmark"],[]),Q=(0,i.useMemo)(()=>{let e=[{type:"bookmark",status:Y.bookmark},{type:"askDoctor",status:null==Y?void 0:Y.togetherComment},{type:"voice",status:Y.voice},{type:"aiDoctor",status:Y.aiDoctor},{type:"healthtool",status:Y.healthTool},{type:"categories",status:Y.categories}].filter(e=>e.status).slice(0,3),t={};return e.map(e=>{t[e.type]=e}),t},[Y]),J=(0,i.useCallback)(v()(()=>{V&&W(!1)},200),[V]),renderAskDoctor=()=>(0,n.BX)(m.x,{ref:X,className:"w-10 h-10 p-2 relative cursor-pointer",onClick:()=>{u||O(!0)},children:[(0,n.tZ)(d.Z,{}),Number(G)>0&&(0,n.tZ)(c.T,{size:"p4",className:"absolute top-2 left-8",color:o.r.colors.gray600,children:G})]});return(0,n.BX)(n.HY,{children:[(0,n.BX)(N.Z,{height:44,onScroll:J,children:[H.NB.includes(_)&&(0,n.tZ)(m.x,{children:(0,n.tZ)(m.x,{sx:{width:40,".chart-label":{fontSize:(0,g.h)(6),lineHeight:(0,g.h)(12),marginBottom:0}},children:(0,n.tZ)(Z.Z,{size:"sm",children:(0,n.tZ)(Z.Z.IconChart,{dataTracking:{dataEventCategory:"Sticky bottom",dataEventAction:"AQI icon click",dataEventLabel:"AQI open pop-up"}})})})}),q.map(e=>"bookmark"===e&&(null==Q?void 0:Q[e])?(0,n.tZ)(l.K.Icon,{onClick:a,icon:t?(0,n.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,n.tZ)("path",{d:"M6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7Z",fill:"#2D87F3"})}):(0,n.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,n.tZ)("path",{d:"M7 17.95L12 15.8L17 17.95V5.3C17 5.23333 16.9667 5.16667 16.9 5.1C16.8333 5.03333 16.7667 5 16.7 5H7.3C7.23333 5 7.16667 5.03333 7.1 5.1C7.03333 5.16667 7 5.23333 7 5.3V17.95ZM6.775 19.7C6.475 19.8333 6.18733 19.8123 5.912 19.637C5.63733 19.4623 5.5 19.2083 5.5 18.875V5.3C5.5 4.8 5.675 4.375 6.025 4.025C6.375 3.675 6.8 3.5 7.3 3.5H16.7C17.2 3.5 17.625 3.675 17.975 4.025C18.325 4.375 18.5 4.8 18.5 5.3V18.875C18.5 19.2083 18.3623 19.4623 18.087 19.637C17.8123 19.8123 17.525 19.8333 17.225 19.7L12 17.45L6.775 19.7ZM7 5H17H12H7Z",fill:"#595959"})}),isActive:t,"data-event-category":"Sticky Bottom","data-event-action":"Bookmark Click","data-event-label":K,className:"nav-item pointer-event-child-none"}):"askDoctor"===e&&(null==Q?void 0:Q[e])?renderAskDoctor():"aiDoctor"===e&&(null==Q?void 0:Q[e])?(0,n.BX)(m.x,{component:"a",href:U+B.Rn,"data-event-category":"Chatbot AI","data-event-action":"Open","data-event-label":"Article action",className:"w-10 h-10 py-2 relative cursor-pointer flex justify-center items-end pointer-event-child-none",children:[(0,n.tZ)(s.Z,{size:24,color:"#2F8AF2"}),(0,n.tZ)(c.T,{size:"p5",className:"!text-[10px]",weight:"halfBold",as:"span",color:"#49A8EA",translate:"no",children:"AI"})]}):"voice"===e&&(null==Q?void 0:Q[e])?(0,n.tZ)(E,{articleId:S,articleContent:A,articleEnableAudio:C,articleTurnOffArticleVoice:f,isPremium:z,isSidebar:!0,onError:e=>{e&&(e.style.display="none")},onLoading:(e,t)=>{t&&(t.style.display=e?"inherit":"none")}}):"healthtool"===e&&(null==Q?void 0:Q[e])?(0,n.tZ)("a",{href:U+"/health-tools","data-event-category":"Sticky Bottom","data-event-action":"Engage Click","data-event-label":K,className:"nav-item pointer-event-child-none",children:(0,n.tZ)(l.K.Icon,{icon:(0,n.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,n.tZ)("path",{d:"M10.6 15.35C10.95 15.7 11.4083 15.8667 11.975 15.85C12.5417 15.8333 12.95 15.6333 13.2 15.25L17.2 9.45C17.35 9.23333 17.3333 9.03767 17.15 8.863C16.9667 8.68767 16.7667 8.66667 16.55 8.8L10.75 12.8C10.3667 13.05 10.1583 13.45 10.125 14C10.0917 14.55 10.25 15 10.6 15.35ZM5.1 19.5C4.83333 19.5 4.58333 19.4373 4.35 19.312C4.11667 19.1873 3.925 19 3.775 18.75C3.39167 18.0833 3.08333 17.3583 2.85 16.575C2.61667 15.7917 2.5 14.9333 2.5 14C2.5 12.7 2.75 11.475 3.25 10.325C3.75 9.175 4.425 8.16667 5.275 7.3C6.125 6.43333 7.12933 5.75 8.288 5.25C9.446 4.75 10.6833 4.5 12 4.5C12.7667 4.5 13.4877 4.579 14.163 4.737C14.8377 4.89567 15.4917 5.13333 16.125 5.45C16.4083 5.6 16.571 5.79567 16.613 6.037C16.6543 6.279 16.575 6.50833 16.375 6.725C16.275 6.825 16.1377 6.88333 15.963 6.9C15.7877 6.91667 15.6333 6.9 15.5 6.85C14.95 6.56667 14.3873 6.35433 13.812 6.213C13.2373 6.071 12.6333 6 12 6C9.78333 6 7.896 6.779 6.338 8.337C4.77933 9.89567 4 11.7833 4 14C4 14.7 4.09567 15.3917 4.287 16.075C4.479 16.7583 4.75 17.4 5.1 18H18.9C19.2833 17.3667 19.5627 16.7083 19.738 16.025C19.9127 15.3417 20 14.6333 20 13.9C20 13.3167 19.9293 12.7333 19.788 12.15C19.646 11.5667 19.4333 11 19.15 10.45C19.0667 10.2833 19.0373 10.1207 19.062 9.962C19.0873 9.804 19.175 9.65833 19.325 9.525C19.525 9.35833 19.746 9.30833 19.988 9.375C20.2293 9.44167 20.4083 9.6 20.525 9.85C20.8417 10.5167 21.0793 11.175 21.238 11.825C21.396 12.475 21.4833 13.1583 21.5 13.875C21.5 14.775 21.396 15.6293 21.188 16.438C20.9793 17.246 20.6583 18.0333 20.225 18.8C20.0917 19.0167 19.9043 19.1873 19.663 19.312C19.421 19.4373 19.1667 19.5 18.9 19.5H5.1Z",fill:"#595959"})})})}):"categories"===e&&(null==Q?void 0:Q[e])?(0,n.tZ)(m.x,{component:"a",href:"/categories","data-event-category":"Sticky Bottom","data-event-action":"Home Click","data-event-label":K,className:"nav-item pointer-event-child-none",children:(0,n.tZ)(l.K.Icon,{icon:(0,n.tZ)(h.Z,{isActive:"/categories"===R}),isActive:"/categories"===R})}):null),(0,n.tZ)(I.n.BottomNavHorizonal,{shareUrl:D||"",hasOverlay:!0,isRevamp:!0,copyInputProps:{popoverProps:{withinPortal:!0,position:"top"}}})]}),(0,n.tZ)("style",{children:L.k})]})}},Zoy9:function(e,t,a){a.d(t,{k:function(){return i}});var n=a("uuQu");let i="\n .sticky-bottom-ad {\n background-color: transparent;\n /* Mobile bottom bar height */\n margin-bottom: var(--mobile-bottom-height);\n @supports (margin-bottom: env(safe-area-inset-bottom)) {\n margin-bottom: calc(\n env(safe-area-inset-bottom) + var(--mobile-bottom-height)\n );\n }\n ".concat(n.M.mbUp," {\n margin-bottom: 0;\n }\n }\n")},Ixbl:function(e,t,a){a.d(t,{d:function(){return r}});var n=a("rBCA"),i=a("QcYj"),o=a("iBNF"),l=a("uuQu");o.r.colors.primaryBase;let r=(0,n.Z)(i.K,{target:"e1yg21gy1"})(l.M.mbUp,"{display:none !important;}border-top:1px solid ",o.r.colors.neutral100,";&[data-template='health-tool']{justify-content:space-evenly;}.mobile-navigation-icon,.mobile-navigation-label{pointer-events:none;}.mobile-navigation-label{width:70px !important;max-width:70px !important;}a > *{pointer-events:none;}.new-post{.mobile-navigation-icon > span{background-color:",o.r.colors.yellow900,";}}> div{flex:0;}.nav-item{position:relative;z-index:1;}")},FxIt:function(e,t,a){a.r(t),a.d(t,{default:function(){return z}});var n=a("BGKE"),i=a("q1tI"),o=a("QcYj"),l=a("LL/B"),r=a("e6wM"),c=a("r+qb"),d=a("v8Gc"),s=a("R3p7"),h=a("vc3D"),m=a("tZy4"),g=a("dDsW"),p=a("CJtR"),u=a("P5LW"),v=a("Dd9K"),f=a("rIrU"),C=a("j06Q"),b=a("iBNF"),Z=a("O2EA"),y=a("AayG"),x=a("20a2"),w=a("hTMm"),k=a("KONT"),B=a("Tu/l"),H=a("7oSX"),M=a("i/U4"),T=a("raAP"),L=a("rEaw"),N=a("o0qI"),I=a("Zoy9"),E=a("Ixbl"),S=a("sKr0");let A=(0,i.memo)(()=>{let{locale:e,pathname:t}=(0,u.h)(),{formatMessage:a}=(0,g.Z)();(0,v.B)();let C=(0,i.useMemo)(()=>(0,p.UC)(e),[e]),b=(0,i.useMemo)(()=>l.c.includes(e),[e]),Z=(0,i.useMemo)(()=>f.bU.includes(e),[e]),y=(0,i.useMemo)(()=>f.y.includes(e),[e]),x=(0,i.useMemo)(()=>t.split("/").includes("health-tools"),[t]);return(0,n.tZ)(n.HY,{children:(0,n.BX)(E.d,{isCollapsed:!1,children:[(0,n.tZ)("a",{href:C+"/categories",className:"pointer-event-child-none","data-event-category":"Sticky Bottom","data-event-action":"Home Click","data-event-label":C+"/categories",children:(0,n.tZ)(o.K.Icon,{icon:(0,n.tZ)(s.Z,{isActive:"/categories"===t}),label:a({id:"mobileBar.home",defaultMessage:"Home"}),isActive:"/categories"===t})}),(0,n.tZ)("a",{href:C+"/health-tools",className:"pointer-event-child-none","data-event-category":"Sticky Bottom","data-event-action":"Engage Click","data-event-label":C+"/health-tools",children:(0,n.tZ)(o.K.Icon,{icon:(0,n.tZ)(h.Z,{isActive:x}),label:a({id:"mobileBar.healthTools",defaultMessage:"Health Screening"}),isActive:x})}),Z&&(0,n.tZ)("a",{href:C+"/care",className:"pointer-event-child-none","data-event-category":"Sticky Bottom","data-event-action":"Care Click","data-event-label":C+"/care",children:(0,n.tZ)(o.K.Icon,{icon:(0,n.tZ)(r.Z,{}),label:a({id:"mobileBar.care",defaultMessage:"Care"})})}),y&&(0,n.tZ)("a",{href:C+f.Rn,className:"pointer-event-child-none","data-event-category":"Chatbot AI","data-event-action":"Open","data-event-label":"Button Menu",children:(0,n.tZ)(o.K.Icon,{icon:(0,n.tZ)(d.Z,{size:24,color:"#2F8AF2"}),label:"".concat(f.CX[e].SITE_NAME," AI")})}),b&&(0,n.tZ)("a",{href:C+"/community",className:"pointer-event-child-none","data-event-category":"Sticky Bottom","data-event-action":"Together Click","data-event-label":C+"/community",children:(0,n.tZ)(o.K.Icon,{icon:(0,n.tZ)(m.Z,{size:24}),label:a({id:"mobileBar.community",defaultMessage:"Community"})})}),!Z&&!b&&(0,n.tZ)("a",{href:"".concat(f.MO).concat(f.YP.MY_HEALTH_TRACKER),className:"pointer-event-child-none","data-event-category":"Sticky Bottom","data-event-action":"User Profile Click","data-event-label":"".concat(f.MO).concat(f.YP.MY_HEALTH_TRACKER),children:(0,n.tZ)(o.K.Icon,{icon:(0,n.tZ)(c.Z,{}),label:a({id:"mobileBar.myHealth",defaultMessage:"My Health"})})})]})})});A.Article=C.default,A.HealthTool=e=>{let{isResult:t=!1,topicLink:a,onReadMoreClick:r}=e,{locale:c="vi-VN",pathname:d}=(0,x.useRouter)(),{formatMessage:s}=(0,g.Z)(),{state:{currentDomain:h}}=(0,i.useContext)(N.I),m=(0,T.U)();(0,v.B)();let p=(0,i.useMemo)(()=>l.c.includes(c),[c]);return(0,n.BX)(n.HY,{children:[(0,n.BX)(E.d,{isCollapsed:!1,children:[(0,n.tZ)("a",{href:h,className:"pointer-event-child-none","data-event-category":"Sticky Bottom","data-event-action":"Home Click","data-event-label":h+"/categories",children:(0,n.tZ)(o.K.Icon,{icon:(0,n.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,n.tZ)("path",{d:"M8.8 10.6248C8.45 10.6248 8.18733 10.4665 8.012 10.1498C7.83733 9.83314 7.84167 9.5248 8.025 9.2248L11.225 3.9998C11.4083 3.6998 11.6667 3.5498 12 3.5498C12.3333 3.5498 12.5917 3.6998 12.775 3.9998L15.975 9.2248C16.1583 9.5248 16.1627 9.83314 15.988 10.1498C15.8127 10.4665 15.55 10.6248 15.2 10.6248L8.8 10.6248ZM17.5 21.6248C16.35 21.6248 15.375 21.2248 14.575 20.4248C13.775 19.6248 13.375 18.6498 13.375 17.4998C13.375 16.3498 13.775 15.3748 14.575 14.5748C15.375 13.7748 16.35 13.3748 17.5 13.3748C18.65 13.3748 19.625 13.7748 20.425 14.5748C21.225 15.3748 21.625 16.3498 21.625 17.4998C21.625 18.6498 21.225 19.6248 20.425 20.4248C19.625 21.2248 18.65 21.6248 17.5 21.6248ZM4.275 21.1248C4.025 21.1248 3.81267 21.0375 3.638 20.8628C3.46267 20.6875 3.375 20.4665 3.375 20.1998L3.375 14.7748C3.375 14.5248 3.46267 14.3121 3.638 14.1368C3.81267 13.9621 4.03333 13.8748 4.3 13.8748H9.725C9.975 13.8748 10.1877 13.9621 10.363 14.1368C10.5377 14.3121 10.625 14.5331 10.625 14.7998V20.2248C10.625 20.4748 10.5377 20.6875 10.363 20.8628C10.1877 21.0375 9.96667 21.1248 9.7 21.1248H4.275ZM17.5 20.1248C18.2333 20.1248 18.8543 19.8708 19.363 19.3628C19.871 18.8541 20.125 18.2331 20.125 17.4998C20.125 16.7665 19.871 16.1455 19.363 15.6368C18.8543 15.1288 18.2333 14.8748 17.5 14.8748C16.7667 14.8748 16.146 15.1288 15.638 15.6368C15.1293 16.1455 14.875 16.7665 14.875 17.4998C14.875 18.2331 15.1293 18.8541 15.638 19.3628C16.146 19.8708 16.7667 20.1248 17.5 20.1248ZM4.875 19.6248H9.125V15.3748H4.875V19.6248ZM9.85 9.1248H14.15L12 5.6498L9.85 9.1248Z",fill:"#595959"})}),label:s({id:"mobileBar.home",defaultMessage:"Home"}),isActive:"/"===d})}),(0,n.tZ)("a",{href:h+"/health-tools",className:"pointer-event-child-none","data-event-category":"Sticky Bottom","data-event-action":"Engage Click","data-event-label":h+"/health-tools",children:(0,n.tZ)(o.K.Icon,{icon:(0,n.tZ)(y.Z,{isActive:!0}),label:s({id:"mobileBar.healthTools",defaultMessage:"Health Tools"}),isActive:!0})}),p&&(0,n.tZ)("a",{href:t?h+a:h+"/community",className:"pointer-event-child-none","data-event-category":"Sticky Bottom","data-event-action":"Together Click","data-event-label":t?h+a:h+"/community",children:(0,n.tZ)(o.K.Icon,{icon:t?(0,n.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,n.tZ)("path",{d:"M2.8 21.175L7.175 8.9L15.075 16.8L2.8 21.175ZM5.275 18.7L12.325 16.2L7.775 11.65L5.275 18.7ZM13.975 12.7L13.15 11.875L18.625 6.375C19.125 5.875 19.7333 5.625 20.45 5.625C21.1667 5.625 21.775 5.875 22.275 6.375L22.75 6.875L21.925 7.7L21.45 7.225C21.1833 6.94167 20.854 6.8 20.462 6.8C20.0707 6.8 19.7417 6.94167 19.475 7.225L13.975 12.7ZM10.325 9.05L9.5 8.2L10.1 7.6C10.3833 7.31667 10.525 6.96233 10.525 6.537C10.525 6.11233 10.3833 5.75 10.1 5.45L9.45 4.825L10.3 3.975L10.925 4.6C11.4583 5.13333 11.725 5.775 11.725 6.525C11.725 7.275 11.4583 7.91667 10.925 8.45L10.325 9.05ZM12.15 10.875L11.325 10.05L14.8 6.55C15.0667 6.28333 15.2 5.954 15.2 5.562C15.2 5.17067 15.0667 4.84167 14.8 4.575L13.325 3.1L14.15 2.25L15.65 3.725C16.15 4.24167 16.4 4.854 16.4 5.562C16.4 6.27067 16.15 6.88333 15.65 7.4L12.15 10.875ZM15.8 14.525L14.975 13.7L16.175 12.5C16.7083 11.95 17.3583 11.675 18.125 11.675C18.8917 11.675 19.5417 11.95 20.075 12.5L21.275 13.7L20.425 14.525L19.225 13.325C18.925 13.025 18.5543 12.875 18.113 12.875C17.671 12.875 17.3 13.025 17 13.325L15.8 14.525Z",fill:"#595959"})}):(0,n.tZ)(Z.Z,{}),label:s({id:"mobileBar.community",defaultMessage:"Community"})})}),r&&(0,n.tZ)(o.K.Icon,{onClick:r,icon:(0,n.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,n.tZ)("path",{d:"M5.3 20.5C4.8 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.2 3.5 18.7V5.3C3.5 4.8 3.675 4.375 4.025 4.025C4.375 3.675 4.8 3.5 5.3 3.5H18.7C19.2 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.8 20.5 5.3V18.7C20.5 19.2 20.325 19.625 19.975 19.975C19.625 20.325 19.2 20.5 18.7 20.5H5.3ZM5.3 19H18.7C18.7667 19 18.8333 18.9667 18.9 18.9C18.9667 18.8333 19 18.7667 19 18.7V5.3C19 5.23333 18.9667 5.16667 18.9 5.1C18.8333 5.03333 18.7667 5 18.7 5H5.3C5.23333 5 5.16667 5.03333 5.1 5.1C5.03333 5.16667 5 5.23333 5 5.3V18.7C5 18.7667 5.03333 18.8333 5.1 18.9C5.16667 18.9667 5.23333 19 5.3 19ZM8.05 16.775C8.3 16.775 8.51267 16.6873 8.688 16.512C8.86267 16.3373 8.95 16.125 8.95 15.875C8.95 15.625 8.86267 15.4167 8.688 15.25C8.51267 15.0833 8.3 15 8.05 15C7.8 15 7.59167 15.0833 7.425 15.25C7.25833 15.4167 7.175 15.625 7.175 15.875C7.175 16.125 7.25833 16.3373 7.425 16.512C7.59167 16.6873 7.8 16.775 8.05 16.775ZM8.05 12.875C8.3 12.875 8.51267 12.7917 8.688 12.625C8.86267 12.4583 8.95 12.25 8.95 12C8.95 11.75 8.86267 11.5417 8.688 11.375C8.51267 11.2083 8.3 11.125 8.05 11.125C7.8 11.125 7.59167 11.2083 7.425 11.375C7.25833 11.5417 7.175 11.75 7.175 12C7.175 12.25 7.25833 12.4583 7.425 12.625C7.59167 12.7917 7.8 12.875 8.05 12.875ZM8.05 9C8.3 9 8.51267 8.91667 8.688 8.75C8.86267 8.58333 8.95 8.375 8.95 8.125C8.95 7.875 8.86267 7.66233 8.688 7.487C8.51267 7.31233 8.3 7.225 8.05 7.225C7.8 7.225 7.59167 7.31233 7.425 7.487C7.25833 7.66233 7.175 7.875 7.175 8.125C7.175 8.375 7.25833 8.58333 7.425 8.75C7.59167 8.91667 7.8 9 8.05 9ZM11.85 16.625H16.05C16.25 16.625 16.425 16.5543 16.575 16.413C16.725 16.271 16.8 16.0917 16.8 15.875C16.8 15.675 16.725 15.5 16.575 15.35C16.425 15.2 16.25 15.125 16.05 15.125H11.85C11.6333 15.125 11.454 15.2 11.312 15.35C11.1707 15.5 11.1 15.675 11.1 15.875C11.1 16.0917 11.1707 16.271 11.312 16.413C11.454 16.5543 11.6333 16.625 11.85 16.625ZM11.85 12.75H16.05C16.25 12.75 16.425 12.679 16.575 12.537C16.725 12.3957 16.8 12.2167 16.8 12C16.8 11.7833 16.725 11.604 16.575 11.462C16.425 11.3207 16.25 11.25 16.05 11.25H11.85C11.6333 11.25 11.454 11.3207 11.312 11.462C11.1707 11.604 11.1 11.7833 11.1 12C11.1 12.2167 11.1707 12.3957 11.312 12.537C11.454 12.679 11.6333 12.75 11.85 12.75ZM11.85 8.875H16.05C16.25 8.875 16.425 8.8 16.575 8.65C16.725 8.5 16.8 8.325 16.8 8.125C16.8 7.90833 16.725 7.72933 16.575 7.588C16.425 7.446 16.25 7.375 16.05 7.375H11.85C11.6333 7.375 11.454 7.446 11.312 7.588C11.1707 7.72933 11.1 7.90833 11.1 8.125C11.1 8.325 11.1707 8.5 11.312 8.65C11.454 8.8 11.6333 8.875 11.85 8.875ZM5 19V5V19Z",fill:"#595959"})}),label:s({id:"article.ampReadmore",defaultMessage:"Read more"}),"data-event-category":"Sticky Bottom","data-event-action":"See More Click","data-event-label":m,className:"pointer-event-child-none"})]}),(0,n.tZ)("style",{children:I.k})]})},A.FitnessHealthTool=e=>{let{isResult:t=!1,topicLink:a,shareUrl:r,appTool:c="weight-tracker",isDueDateRecalculate:d}=e,{locale:s="vi-VN",pathname:h}=(0,x.useRouter)(),{formatMessage:m}=(0,g.Z)(),{state:{currentDomain:p}}=(0,i.useContext)(N.I);(0,v.B)();let u=(0,T.U)(),f=(0,i.useMemo)(()=>l.c.includes(s),[s]),{setIsRecalculate:C}=(0,M.eY)();return(0,n.BX)(n.HY,{children:[(0,n.BX)(E.d,{isCollapsed:!1,"data-has-share":!0,children:[(0,n.tZ)("a",{href:p+"/health-tools",className:"nav-item pointer-event-child-none","data-event-category":"Sticky Bottom","data-event-action":"Engage Click","data-event-label":p+"/health-tools",children:(0,n.tZ)(o.K.Icon,{icon:(0,n.tZ)(y.Z,{isActive:!0}),label:m({id:"mobileBar.healthTools",defaultMessage:"Health Tools"}),isActive:!0})}),d?(0,n.tZ)(o.K.Icon,{icon:(0,n.tZ)(H.Z,{color:b.r.colors.gray600,size:22}),label:m({id:"tools.recalculate",defaultMessage:"Recalculate"}),onClick:()=>{C(!0),document.body.scrollIntoView({behavior:"smooth",block:"start"})},"data-event-category":"Health Tool","data-event-action":"Due Date - Result Page - Sticky Bottom","data-event-label":"Re-calculate",className:"pointer-event-child-none"}):s===L.MV.Vietnam?"weight-tracker"===c?(0,n.tZ)("a",{href:"https://applink.hellobacsi.com/BBdn6JC3vLb?utm_source=healthtools&utm_medium=hellobacsi&utm_campaign=app install_Web_mobile bottom bar_".concat(u),className:"nav-item pointer-event-child-none","data-event-category":"Health Tool","data-event-action":"Weight Tracker - Sticky Bottom","data-event-label":u,children:(0,n.tZ)(o.K.Icon,{icon:(0,n.tZ)(B.Z,{}),label:m({id:"mobileBar.weightTracker",defaultMessage:"Weight Tracker"})})}):"baby-kick-counter"===c?(0,n.tZ)("a",{href:"https://applink.hellobacsi.com/fGZIKhbB6Lb",className:"nav-item pointer-event-child-none","data-event-category":"Health Tool","data-event-action":"Baby Kick Counter - Sticky Bottom","data-event-label":u,children:(0,n.tZ)(o.K.Icon,{icon:(0,n.tZ)(k.Z,{}),label:m({id:"mobileBar.weightTracker",defaultMessage:"Weight Tracker"})})}):"baby-growth"===c?(0,n.tZ)("a",{href:"https://hellobacsivn.page.link/app",className:"nav-item pointer-event-child-none","data-event-category":"Health Tool","data-event-action":"Home Mobile App - Sticky Bottom","data-event-label":u,children:(0,n.tZ)(o.K.Icon,{icon:(0,n.tZ)(w.Z,{}),label:m({id:"mobileBar.otherBabyTool",defaultMessage:"Weight Tracker"})})}):null:f?(0,n.tZ)("a",{href:t?p+a:p+"/community",className:"nav-item pointer-event-child-none","data-event-category":"Sticky Bottom","data-event-action":"Together Click","data-event-label":t?p+a:p+"/community",children:(0,n.tZ)(o.K.Icon,{icon:t?(0,n.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,n.tZ)("path",{d:"M2.8 21.175L7.175 8.9L15.075 16.8L2.8 21.175ZM5.275 18.7L12.325 16.2L7.775 11.65L5.275 18.7ZM13.975 12.7L13.15 11.875L18.625 6.375C19.125 5.875 19.7333 5.625 20.45 5.625C21.1667 5.625 21.775 5.875 22.275 6.375L22.75 6.875L21.925 7.7L21.45 7.225C21.1833 6.94167 20.854 6.8 20.462 6.8C20.0707 6.8 19.7417 6.94167 19.475 7.225L13.975 12.7ZM10.325 9.05L9.5 8.2L10.1 7.6C10.3833 7.31667 10.525 6.96233 10.525 6.537C10.525 6.11233 10.3833 5.75 10.1 5.45L9.45 4.825L10.3 3.975L10.925 4.6C11.4583 5.13333 11.725 5.775 11.725 6.525C11.725 7.275 11.4583 7.91667 10.925 8.45L10.325 9.05ZM12.15 10.875L11.325 10.05L14.8 6.55C15.0667 6.28333 15.2 5.954 15.2 5.562C15.2 5.17067 15.0667 4.84167 14.8 4.575L13.325 3.1L14.15 2.25L15.65 3.725C16.15 4.24167 16.4 4.854 16.4 5.562C16.4 6.27067 16.15 6.88333 15.65 7.4L12.15 10.875ZM15.8 14.525L14.975 13.7L16.175 12.5C16.7083 11.95 17.3583 11.675 18.125 11.675C18.8917 11.675 19.5417 11.95 20.075 12.5L21.275 13.7L20.425 14.525L19.225 13.325C18.925 13.025 18.5543 12.875 18.113 12.875C17.671 12.875 17.3 13.025 17 13.325L15.8 14.525Z",fill:"#595959"})}):(0,n.tZ)(Z.Z,{}),label:m({id:"mobileBar.community",defaultMessage:"Community"})})}):(0,n.tZ)("a",{href:p,className:"nav-item pointer-event-child-none","data-event-category":"Sticky Bottom","data-event-action":"Home Click","data-event-label":p+"/categories",children:(0,n.tZ)(o.K.Icon,{icon:(0,n.tZ)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,n.tZ)("path",{d:"M8.8 10.6248C8.45 10.6248 8.18733 10.4665 8.012 10.1498C7.83733 9.83314 7.84167 9.5248 8.025 9.2248L11.225 3.9998C11.4083 3.6998 11.6667 3.5498 12 3.5498C12.3333 3.5498 12.5917 3.6998 12.775 3.9998L15.975 9.2248C16.1583 9.5248 16.1627 9.83314 15.988 10.1498C15.8127 10.4665 15.55 10.6248 15.2 10.6248L8.8 10.6248ZM17.5 21.6248C16.35 21.6248 15.375 21.2248 14.575 20.4248C13.775 19.6248 13.375 18.6498 13.375 17.4998C13.375 16.3498 13.775 15.3748 14.575 14.5748C15.375 13.7748 16.35 13.3748 17.5 13.3748C18.65 13.3748 19.625 13.7748 20.425 14.5748C21.225 15.3748 21.625 16.3498 21.625 17.4998C21.625 18.6498 21.225 19.6248 20.425 20.4248C19.625 21.2248 18.65 21.6248 17.5 21.6248ZM4.275 21.1248C4.025 21.1248 3.81267 21.0375 3.638 20.8628C3.46267 20.6875 3.375 20.4665 3.375 20.1998L3.375 14.7748C3.375 14.5248 3.46267 14.3121 3.638 14.1368C3.81267 13.9621 4.03333 13.8748 4.3 13.8748H9.725C9.975 13.8748 10.1877 13.9621 10.363 14.1368C10.5377 14.3121 10.625 14.5331 10.625 14.7998V20.2248C10.625 20.4748 10.5377 20.6875 10.363 20.8628C10.1877 21.0375 9.96667 21.1248 9.7 21.1248H4.275ZM17.5 20.1248C18.2333 20.1248 18.8543 19.8708 19.363 19.3628C19.871 18.8541 20.125 18.2331 20.125 17.4998C20.125 16.7665 19.871 16.1455 19.363 15.6368C18.8543 15.1288 18.2333 14.8748 17.5 14.8748C16.7667 14.8748 16.146 15.1288 15.638 15.6368C15.1293 16.1455 14.875 16.7665 14.875 17.4998C14.875 18.2331 15.1293 18.8541 15.638 19.3628C16.146 19.8708 16.7667 20.1248 17.5 20.1248ZM4.875 19.6248H9.125V15.3748H4.875V19.6248ZM9.85 9.1248H14.15L12 5.6498L9.85 9.1248Z",fill:"#595959"})}),label:m({id:"mobileBar.home",defaultMessage:"Home"}),isActive:"/"===h})}),(0,n.tZ)(S.n.BottomNavHorizonal,{shareUrl:r||u,hasOverlay:!0,copyInputProps:{popoverProps:{position:"top",withinPortal:!0}},styles:{heading:{fontSize:12},copyRoot:{input:{border:0}},wrapper:{paddingRight:40,".input-share-btn, .mantine-Input-rightSection":{backgroundColor:"#f2f2f2"}},controls:{overflow:"hidden"}}})]}),(0,n.tZ)("style",{children:I.k})]})};var z=A},L1RX:function(e,t,a){var n,i;a.d(t,{q:function(){return n}}),(i=n||(n={})).Zalo="zalo",i.WhatsApp="whatsapp",i.Line="line",i.Messenger="messenger"},ePjc:function(e,t,a){a.d(t,{k:function(){return NewHomeExpert}});var n=a("BGKE"),i=a("q1tI"),o=a("fdQd"),l=a("wp0n"),r=a("Zdfy"),c=a("JPg4"),d=a("CJtR"),s=a("yqYW"),h=a("HHCU"),m=a("hXNO"),g=a("P5LW"),p=a("rIrU"),u=a("rBCA"),v=a("iBNF"),f=a("uuQu"),C=a("mYVa");let b=(0,u.Z)("div",{target:"ee9g88o0"})("background-color:",v.r.colors.neutral50,";padding:",(0,C.h)(20),";border-radius:",(0,C.h)(12),";width:",(0,C.h)(180),";height:",(0,C.h)(205),";",f.M.mbUp,"{background-color:transparent;border:1px solid #ebebeb;border-radius:",(0,C.h)(16),";width:",(0,C.h)(206.4),";height:",(0,C.h)(220),";}.new-home-expert-wrapper{display:flex;flex-direction:column;gap:",(0,C.h)(16),";align-items:center;justify-content:center;}.new-home-expert-info{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:",(0,C.h)(4),";width:100%;max-width:100%;.expert-organization{width:100%;}}"),Z={id:"home.section.HomeExpertsTitle",defaultMessage:"Our Experts"},NewHomeExpertItem=e=>{let{expertName:t,expertOrganization:a,expertAvatar:r,expertRole:c,titleHref:s,subTitleHref:h}=e,{locale:m}=(0,g.h)(),u=(0,i.useMemo)(()=>(0,d.UC)(m),[m]);return(0,n.tZ)(b,{children:(0,n.BX)("div",{className:"new-home-expert-wrapper",children:[(0,n.tZ)(o.A,{src:r,size:72,withIndicator:!!c,indicatorConfig:c?{offset:6,size:20,label:(0,n.tZ)("img",{width:16,height:16,src:"".concat(p.Nr,"/article-").concat(c,".svg"),alt:"",loading:"lazy"})}:void 0}),(0,n.BX)("div",{className:"new-home-expert-info",children:[t&&(0,n.tZ)(l.T,{as:s?"a":"p",href:s,size:"p3",weight:"semiBold",color:"gray800",className:"text-center",lineClamp:3,dataEventCategory:"Recommend Experts",dataEventAction:"Experts Click",dataEventLabel:"".concat(u).concat(p.sb,"/expert"),children:t}),a&&(0,n.tZ)(l.T,{as:h?"a":"p",href:h,size:"c1",weight:"regular",color:"gray600",className:"text-center expert-organization",lineClamp:2,children:a})]})]})})},NewHomeExpert=e=>{let{sectionName:t,experts:a,showAllLink:o}=e,{experts:l=[]}=(0,s.e)({experts:a}),d=(0,m.d)(),g=(0,i.useRef)((0,c.Z)({delay:7e3,stopOnInteraction:!1}));return(0,n.tZ)(h.N,{sectionName:t||Z,carouselProps:{slideSize:"auto",slideGap:d?8:24,plugins:[g.current]},showAllLink:o||"/expert/",classes:{rootContainer:"!gap-6"},children:null==l?void 0:l.map(e=>{var t;let{user_id:a,display_name:i,organisation:o,avatar:l,role:c}=e;return(0,n.tZ)(r.l.Slide,{children:(0,n.tZ)(NewHomeExpertItem,{expertName:i,expertOrganization:o,expertAvatar:l,expertRole:c,titleHref:null===(t=e.anchorProps)||void 0===t?void 0:t.href,subTitleHref:e.organisation_url})},a)})})}},GI3h:function(e,t,a){a.d(t,{H:function(){return NewHomeVideos}});var n=a("BGKE"),i=a("EoPH"),o=a("Zdfy"),l=a("8vDj"),r=a("Eso5"),c=a("mYVa"),d=a("HHCU"),s=a("iv2E"),h=a("P5LW"),m=a("rBCA"),g=a("+4HH");let p=(0,m.Z)(g.V,{target:"e1ows8ut0"})("& .mantine-VideoItem__VideoItem-thumb .mantine-VideoItem__VideoItem-duration{background:#00000033;padding:4px 8px;border-radius:99px;bottom:10px;right:10px;& .mantine-Text-root{font-size:11px;font-weight:600;line-height:16px;letter-spacing:-0.2px;}}"),NewHomeVideos=e=>{let{videos:t,sectionName:a,showAllLink:m}=e,g=(0,l.rZ)(),{locale:u}=(0,h.h)();return!t||t.length<=0?null:(0,n.tZ)(d.N,{sectionName:a,showAllLink:m||"/videos/",dataTracking:{dataEventCategory:"New Home Videos",dataEventAction:"See All Videos",dataEventLabel:"https://".concat(s.domainLocales[u],"/videos/")},carouselProps:{slideSize:"auto",slideGap:16},disableItemCountCheck:!0,children:null==t?void 0:t.map((e,t)=>(0,n.tZ)(o.l.Slide,{children:(0,n.tZ)(r.x,{sx:{"& .new-home-videos-item *, & *":{borderRadius:"8px !important"}},children:(0,n.tZ)(p,{className:"new-home-videos-item",data:e,dataEventCategory:"Recommend Video",dataEventAction:"Video Click ".concat(t+1),styles:{root:{borderRadius:8,width:e.type===i.V.SHORTS?101:320,[g.fn.largerThan("sm")]:{width:e.type===i.V.SHORTS?220:695}},title:{[g.fn.largerThan("sm")]:{fontSize:(0,c.h)(15),lineHeight:(0,c.h)(24)},[g.fn.smallerThan("sm")]:{fontSize:(0,c.h)(13),lineHeight:(0,c.h)(20)}}}})})},e.id))})}},SDUi:function(e,t,a){a.d(t,{T:function(){return NotFound}});var n=a("BGKE"),i=a("rBCA"),o=a("uuQu"),l=a("DEkF"),r=a("wp0n"),c=a("8wjV"),d=a("YFqc"),s=a.n(d),h=a("dDsW"),m=a("gHFm"),g=a("iv2E"),p=a("hXNO"),u=a("P5LW"),v=a("rIrU");let f=(0,i.Z)("div",{target:"eukftql0"})(".notFoundGrid{padding:0 16px;margin:64px auto 64px auto;button{border:0;margin-top:16px;}",o.M.mbUp,"{display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;margin:128px auto 128px auto;height:calc(100vh - 365px);}",o.M.mbDown,"{text-align:center;}.content{",o.M.mbDown,"{text-align:center;display:flex;flex-direction:column;align-items:center;}h2{margin-bottom:16px;",o.M.mbDown,"{margin-top:16px;text-align:center;}}p{max-width:400px;}}}"),NotFound=()=>{let e=(0,p.d)(),{formatMessage:t}=(0,h.Z)(),{locale:a}=(0,u.h)(),i=g.domainLocales[a],o="admin@"+i;return(0,n.tZ)(f,{children:(0,n.BX)(m.W,{className:"notFoundGrid",children:[(0,n.tZ)("img",{alt:"",src:"".concat(v.Nr,"/notFound.jpg?v=1"),style:{width:e?"100%":"568px",height:e?"100%":"319px"},loading:"lazy"}),(0,n.BX)("div",{className:"content",children:[(0,n.BX)(l.H,{tag:"h2",children:[" ",t({id:"404.pageNotFound",defaultMessage:"Sorry, this page cannot be found"})]}),(0,n.tZ)(r.T,{size:"p3",children:(0,n.tZ)("span",{dangerouslySetInnerHTML:{__html:t({id:"404.explainer",defaultMessage:"If you clicked a link that led to this page, please let us know so we can fix our mistake as soon as possible."},{email:'').concat(o,"")})}})}),(0,n.tZ)(s(),{prefetch:!1,href:"/",style:{textDecoration:"none"},children:(0,n.tZ)(c.B,{size:"md",children:t({id:"404.goBackHome",defaultMessage:"Go Back Home"})})})]})]})})}}}]);