","/>",">"]},{identifier:"[article-yoast-faqs",ends:["]"]},{identifier:"[embed-health-tool",ends:["]"]},{identifier:"
","/>",">"]},{identifier:"","/>",">"]}],splitFeatureImgParagraph=e=>{let t=/
]*>\s*
]*\bdata-feature-img\b[^>]*\/?>[\s\S]*?<\/p>/i.exec(e);if(!t)return null;let n=t.index,i=t[0];return[e.slice(0,n),i,e.slice(n+i.length)]},splitSpecialTag=e=>{let t=[];if(e){let n=splitFeatureImgParagraph(e);if(n){let[e,t,i]=n;return[...splitSpecialTag(e),t,...splitSpecialTag(i)]}i.every(n=>{if(e.indexOf(n.identifier)>-1){let[i,o,a]=splitByTag(e,n.identifier,n.ends);return t.push(...splitSpecialTag(i)),t.push(o),t.push(...splitSpecialTag(a)),!1}return!0})}return t.length||t.push(e),t}},frPT:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return superContent}});var i,o,a=n("BGKE"),l=n("+OUp"),r=n("D7zM"),s=n("dDsW"),d=n("XiKa"),c=n.n(d),u=n("a5vB"),p=n("JOt+"),h=n("LSb+"),m=n("bPK4"),g=n("q6HN"),b=n("sZMt"),v=n("SHon"),f=n("U+Ez"),x=n("YlL6"),w=n("4jPg"),y=n("9brV"),C=n("rBCA"),M=n("CL9C");let k=(0,C.A)("div",{target:"ewn8bnc0"})("position:relative;z-index:11;overflow:hidden;width:100%;height:",e=>(null==e?void 0:e["data-banner-height"])?(null==e?void 0:e["data-banner-height"])+"px":"0",";padding-top:",e=>(null==e?void 0:e["data-banner-height"])?"0":"56.25%",";margin-bottom:32px;background-color:white;.animation-banner{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;object-fit:cover;}.premium-badge{z-index:1;top:30px;left:204px;position:absolute;}",M.M.mbDown,"{z-index:10;padding-top:",e=>(null==e?void 0:e["data-banner-height"])?"0":"177%",";.premium-badge{left:16px;}}"),T=(0,C.A)("div",{target:"ewn8bnc1"})("position:absolute;z-index:10;.content{padding:24px 20px;background:rgba(0,0,0,0.3);border-radius:12px;}.down-icon{width:40px;height:40px;margin-top:32px;cursor:pointer;}",M.M.mbUp,"{max-width:464px;&[data-position='top']{top:20%;left:204px;.down-icon{margin-left:30px;}}&[data-position='bottom']{bottom:80px;right:204px;.down-icon{float:right;margin-right:30px;}}}",M.M.mbDown,"{width:calc(100% - 2rem);left:0;right:0;margin-left:auto;margin-right:auto;&[data-position='top']{top:80px;.down-icon{margin-left:30px;}}&[data-position='bottom']{bottom:200px;.down-icon{float:right;margin-right:30px;}}}.title{margin-bottom:16px;*{font-size:32px;}}.description{color:white;font-size:22px;font-weight:600;line-height:26px;a{text-decoration:none;}}"),AnimationBanner=e=>{var t,n;let{isMobile:i,banners:o,topbarHeight:r=64,isPremium:s=!1,applyH1:d}=e,[c,u]=(0,l.useState)(0),p=(0,l.useRef)(!0),h=(0,l.useRef)(!0),m=(0,l.useRef)(null),g=i?831:603,[b,v]=(0,l.useState)(g),C=(0,l.useRef)({}),M=(0,l.useRef)({index:0}),S=(0,l.useRef)(null),Y=x.os.utils.selector(S),A=(0,l.useRef)({begin:-1}),slideDown=()=>{p.current&&(p.current=!1,setTimeout(()=>{p.current=!0},1e3),C.current=x.os.timeline().fromTo(Y(".animation-banner-post"),{opacity:1,y:0},{opacity:0,y:"-100%",duration:.5}).fromTo(Y(".animation-banner-main"),{opacity:0,y:"100%"},{opacity:1,y:0,duration:.5},0).from(Y(".animation-content"),{opacity:0,duration:1,y:100}).fromTo(Y(".down-icon"),{opacity:0,duration:1,y:-50},{opacity:1,duration:1,y:0}))},slideUp=()=>{p.current&&(p.current=!1,setTimeout(()=>{p.current=!0},1e3),C.current=x.os.timeline().fromTo(Y(".animation-banner-main"),{opacity:0,y:"-100%"},{opacity:1,y:0,duration:.5},0).to(Y(".animation-banner-after"),{opacity:0,y:"100%"},0).from(Y(".animation-content"),{opacity:0,duration:1,y:100}).fromTo(Y(".down-icon"),{opacity:0,duration:1,y:-50},{opacity:1,duration:1,y:0}))};(0,l.useEffect)(()=>{M.current.index<=c?slideDown():slideUp(),M.current.index=c},[c]),(0,l.useEffect)(()=>{var e,t;(null===(e=window)||void 0===e?void 0:e.innerHeight)>0&&v((null===(t=window)||void 0===t?void 0:t.innerHeight)-r)},[]),(0,l.useEffect)(()=>{let advancedSetBannerHeight=()=>{if(!m.current)return;let e=m.current.scrollHeight+m.current.offsetTop+40;v(Math.max(e,g))};return advancedSetBannerHeight(),window.addEventListener("resize",advancedSetBannerHeight,{passive:!0}),()=>{window.removeEventListener("resize",advancedSetBannerHeight)}},[g]);let handleSlide=e=>{if(h.current&&p.current){var t,n;h.current=!1,"up"===e?(c>0&&window.scrollTo({top:((null==S?void 0:null===(t=S.current)||void 0===t?void 0:t.offsetTop)||64)-64,behavior:"smooth"}),u(e=>e<1?0:e-1)):(ce>o.length-2?o.length-1:e+1)),setTimeout(()=>{h.current=!0},1e3)}};return(0,a.FD)(k,{ref:S,onTouchStart:e=>{A.current.begin=e.changedTouches[0].clientY,document.body.classList.toggle("noscroll",c{A.current.begin>0&&(handleSlide(e.changedTouches[0].clientY-A.current.begin>50?"up":"down"),A.current.begin=-1),document.body.classList.toggle("noscroll",!1)},onWheel:e=>{if(h.current&&p.current){var t,n;h.current=!1,setTimeout(()=>{h.current=!0},1e3),e.deltaY>0?(ce>o.length-2?o.length-1:e+1)):(c>0&&window.scrollTo({top:((null==S?void 0:null===(n=S.current)||void 0===n?void 0:n.offsetTop)||64)-64,behavior:"smooth"}),document.body.classList.toggle("noscroll",c>0),u(e=>e<1?0:e-1))}},children:[(0,a.FD)("div",{style:{position:"absolute",top:0,left:0,height:"100vh",maxHeight:"100%",width:"100%"},children:[s&&(0,a.Y)(w.PremiumBadge,{className:"premium-badge"}),(0,a.FD)(T,{"data-position":o[c]&&(o[c].title||o[c].description)&&o[c].position||"bottom",children:[o[c]&&(o[c].title||o[c].description)&&(0,a.FD)("div",{className:"content",children:[(0,a.Y)(f.H,{className:"title",tag:"h1",as:d&&0===c?"h1":"h2",color:"white",children:null===(t=o[c])||void 0===t?void 0:t.title}),(0,a.Y)("span",{className:"description",dangerouslySetInnerHTML:{__html:null===(n=o[c])||void 0===n?void 0:n.description}})]}),(0,a.Y)("img",{className:"down-icon",src:"".concat(y.nS,"/downArrow.png"),alt:"down-icon",loading:"lazy",onClick:()=>{ce>o.length-2?o.length-1:e+1):(document.body.classList.toggle("noscroll",!1),window.scrollTo({top:S.current?S.current.clientHeight:b,behavior:"smooth"}))}})]})]}),o.map((e,t)=>{var n,l;return(0,a.Y)("img",{loading:"lazy",className:"animation animation-banner".concat(t{var t;let{isMobile:n,title:i,description:o}=e,[r,d]=(0,l.useState)(!1),{formatMessage:c}=(0,s.A)(),u=(0,l.useRef)(null),p=(0,l.useRef)(null),h=x.os.utils.selector(p),m=(0,l.useRef)({}),g=(0,l.useMemo)(()=>({datasets:[{label:c({id:"superContent.chart.healthTool.labels.lifeStyle",defaultMessage:"Living Healthy Lifestyles"}),data:[90,80,76,86,74,74],color:"#91CAFF"},{label:c({id:"superContent.chart.healthTool.labels.diseasePrevention",defaultMessage:"Disease Prevention"}),data:[64,64,62,56,53,61],color:"#2D87F3"},{label:c({id:"superContent.chart.healthTool.labels.diseaseManagement",defaultMessage:"Disease treatment and management"}),data:[56,0,60,48,52,53],color:"#FFB521"}],dataLabels:[c({id:"superContent.chart.healthTool.items.indonesia",defaultMessage:"Indonesia"}),c({id:"superContent.chart.healthTool.items.malaysia",defaultMessage:"Malaysia"}),c({id:"superContent.chart.healthTool.items.thailand",defaultMessage:"Thailand"}),c({id:"superContent.chart.healthTool.items.myanmar",defaultMessage:"Myanmar"}),c({id:"superContent.chart.healthTool.items.taiwan",defaultMessage:"Taiwan"}),c({id:"superContent.chart.healthTool.items.india",defaultMessage:"India"})]}),[]);(0,l.useEffect)(()=>{var e;let t=B()(()=>{if(!r){var e;let n=document.body.scrollTop||document.documentElement.scrollTop;n-((null==u?void 0:null===(e=u.current)||void 0===e?void 0:e.offsetTop)||0)+window.innerHeight-100>0&&(d(!0),window.removeEventListener("scroll",t))}},200);if(!(((null==u?void 0:null===(e=u.current)||void 0===e?void 0:e.offsetTop)||0){window.removeEventListener("scroll",t)};d(!0)},[]),(0,l.useEffect)(()=>{r&&(m.current=x.os.timeline().fromTo(h(".heading"),{y:40,opacity:0},{y:0,opacity:1,duration:.8}).fromTo(h(".description"),{y:40,opacity:0},{y:0,opacity:1,duration:.5}).from(h(".legend"),{x:100,duration:.8,opacity:0},.5))},[r]);let b=(0,l.useMemo)(()=>{var e;return{labels:null==g?void 0:g.dataLabels,datasets:null==g?void 0:null===(e=g.datasets)||void 0===e?void 0:e.map(e=>({borderRadius:Number.MAX_VALUE,barPercentage:1,barThickness:8,categoryPercentage:1,...e,backgroundColor:null==e?void 0:e.color}))}},[]),v=(0,l.useMemo)(()=>({indexAxis:"y",elements:{bar:{borderWidth:0}},responsive:!0,maintainAspectRatio:!1,scales:{xAxis:{...n?{}:{suggestedMax:100},grid:{display:!n,borderDash:[5,5],borderDashOffset:2,color:function(e){return 0===e.tick.value?"rgba(0, 0, 0, 0)":"rgba(0, 0, 0, 0.1)"}},ticks:{display:!n,callback:e=>Number(e)>0?"".concat(e,"%"):"",padding:-390}},yAxis:{grid:{display:!1},ticks:{crossAlign:"far",font:{weight:"600",size:n?12:16}}}},plugins:{legend:{display:!1},datalabels:{anchor:"end",offset:4,align:"end",color:e=>{var t;return(null==e?void 0:null===(t=e.dataset)||void 0===t?void 0:t.backgroundColor)||"blue"},font:{weight:"bold",size:8},formatter:e=>e?"".concat(e,"%"):""},tooltip:{enabled:!1}},layout:{...n?{}:{padding:{top:32,right:32}}},animation:{duration:1e3,easing:"easeInQuint"}}),[n]);return(0,a.FD)(E,{ref:p,children:[i?(0,a.Y)(f.H,{className:"heading",tag:"h3",color:S.w.colors.primaryActive,children:i}):null,o?(0,a.Y)(Y.T,{size:"p4",className:"description",children:o}):null,(0,a.Y)(I,{ref:u,children:r?(0,a.FD)(a.FK,{children:[(0,a.Y)(z,{children:(0,a.Y)(L.t1,{type:"bar",data:b,options:v})}),(0,a.Y)(F,{children:null==g?void 0:null===(t=g.datasets)||void 0===t?void 0:t.map((e,t)=>(0,a.FD)("div",{className:"legend",children:[(0,a.Y)(H,{style:{backgroundColor:null==e?void 0:e.color}}),(0,a.Y)("div",{className:"legend-label",children:null==e?void 0:e.label})]},t))})]}):null})]})};var O=n("pc+1"),P=n("99+y");let R=(0,C.A)("div",{target:"e1gqreej0"})("position:relative;min-width:170px;min-height:26px;"),_=(0,C.A)("div",{target:"e1gqreej1"})("position:absolute;display:flex;"),U=(0,C.A)("div",{target:"e1gqreej2"})("position:absolute;display:flex;"),W=(0,C.A)("div",{target:"e1gqreej3"})("width:10px;height:26px;margin-right:7px;background:#2d87f3;border-radius:4px;opacity:0;"),V=(0,C.A)("div",{target:"e1gqreej4"})("width:10px;height:26px;margin-right:7px;background:#284680;border-radius:4px;"),ProgressBarAnimation=e=>{let{value:t,country:n}=e,i=(0,l.useRef)(null),o=x.os.utils.selector(i),r=parseInt("".concat(t/10));return(0,l.useEffect)(()=>{let e=x.os.timeline();o(".animation-bar-active").forEach((t,n)=>{e.fromTo(t,{opacity:0},{opacity:1,duration:.25},.25*n)})},[n]),(0,a.FD)(R,{ref:i,children:[(0,a.Y)(_,{children:Array(10).fill("inactive").map((e,t)=>(0,a.Y)(V,{},"".concat(e,"-").concat(t)))}),(0,a.Y)(U,{children:Array(r).fill("active").map((e,t)=>(0,a.Y)(W,{className:"animation-bar-active animation-bar-".concat(t)},"".concat(e,"-").concat(t)))})]})},G=(0,C.A)("div",{target:"e81le9g0"})("position:relative;overflow:hidden;width:100%;height:",e=>null==e?void 0:e["data-banner-height"],"px;margin-bottom:32px;background-color:#142340;.animation-image{position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;margin-top:auto;margin-right:auto;margin-bottom:auto;margin-left:auto;opacity:0;}",M.M.mbDown,"{z-index:100;.animation-image{width:100%;height:auto;}}",M.M.mbUp,"{z-index:11;.animation-image{width:auto;height:",e=>null==e?void 0:e["data-banner-height"],"px;}}"),K=(0,C.A)("div",{target:"e81le9g1"})("position:absolute;",M.M.mbDown,"{bottom:30px;left:16px;}",M.M.mbUp,"{top:35%;left:",e=>null==e?void 0:e["data-content-padding"],"px;}.country-title{color:#ffca49;font-family:'Inter';font-size:24px;font-weight:bold;line-height:36px;opacity:0;}"),j=(0,C.A)("div",{target:"e81le9g2"})("margin-bottom:14px;.data-label{color:#d1d3d4;font-family:Inter;font-size:18px;font-style:normal;font-weight:600;line-height:27px;}.progress-bar{display:flex;align-items:center;.data-value{display:inline-block;margin-left:13px;color:#d1d3d4;font-family:Inter;font-size:24px;font-style:normal;font-weight:bold;line-height:36px;.value-number{display:inline-block;}}}"),q=(0,C.A)("div",{target:"e81le9g3"})("position:absolute;",M.M.mbDown,"{bottom:20px;}",M.M.mbUp,"{bottom:24px;}left:50%;display:flex;transform:translateX(-50%);"),Q=(0,C.A)("div",{target:"e81le9g4"})("display:inline-block;width:8px;height:8px;margin-right:8px;background-color:",S.w.colors.yellow50,";border-radius:50%;cursor:pointer;&[data-active='true']{background-color:",S.w.colors.yellow800,";}"),Z=(0,C.A)("div",{target:"e81le9g5"})("position:absolute;top:50%;left:3%;flex-direction:column;transform:translateY(-50%);img{width:40px;height:40px;cursor:pointer;}"),J=(0,C.A)("div",{target:"e81le9g6"})("position:absolute;top:50%;right:3%;flex-direction:column;transform:translateY(-50%);img{width:40px;height:40px;cursor:pointer;}"),HealthRendership=e=>{var t;let{isMobile:n,topbarHeight:i=64}=e,{locale:o="en-PH"}=(0,P.useRouter)(),{formatMessage:r}=(0,s.A)(),[d,c]=(0,l.useState)(0),[u,p]=(0,l.useState)(n?603:831),h=(0,l.useRef)(!0),m=(0,l.useRef)(!0),[g,b]=(0,l.useState)(1051),v=(0,l.useMemo)(()=>[{country:r({id:"superContent.chart.healthTool.items.indonesia",defaultMessage:"Indonesia"}),locale:"id-ID",bannerImgDesktop:"".concat(y.nS,"/health-rendership-indonesia-desktop.png?v=1"),bannerImgMobile:"".concat(y.nS,"/health-rendership-indonesia.png?v=1"),datasets:[{label:r({id:"superContent.healthRendership.stressManagement",defaultMessage:"Stress management"}),value:44},{label:r({id:"superContent.healthRendership.weightManagement",defaultMessage:"Weight management"}),value:40},{label:r({id:"superContent.healthRendership.depression",defaultMessage:"Depression"}),value:22}]},{country:r({id:"superContent.chart.healthTool.items.malaysia",defaultMessage:"Malaysia"}),locale:"ms-MY",bannerImgDesktop:"".concat(y.nS,"/health-rendership-malaysia-desktop.png?v=1"),bannerImgMobile:"".concat(y.nS,"/health-rendership-malaysia.png?v=1"),datasets:[{label:r({id:"superContent.healthRendership.stressManagement",defaultMessage:"Stress management"}),value:43},{label:r({id:"superContent.healthRendership.weightManagement",defaultMessage:"Weight management"}),value:39},{label:r({id:"superContent.healthRendership.depression",defaultMessage:"Depression"}),value:29}]},{country:r({id:"superContent.chart.healthTool.items.taiwan",defaultMessage:"Taiwan"}),locale:"zh-TW",bannerImgDesktop:"".concat(y.nS,"/health-rendership-taiwan-desktop.png?v=1"),bannerImgMobile:"".concat(y.nS,"/health-rendership-taiwan.png?v=1"),datasets:[{label:r({id:"superContent.healthRendership.weightManagement",defaultMessage:"Weight management"}),value:40},{label:r({id:"superContent.healthRendership.cancer",defaultMessage:"Cancer"}),value:37},{label:r({id:"superContent.healthRendership.stressManagement",defaultMessage:"Stress management"}),value:31}]},{country:r({id:"superContent.chart.healthTool.items.myanmar",defaultMessage:"Myanmar"}),locale:"my-MM",bannerImgDesktop:"".concat(y.nS,"/health-rendership-myanmar-desktop.png?v=1"),bannerImgMobile:"".concat(y.nS,"/health-rendership-myanmar.png?v=1"),datasets:[{label:r({id:"superContent.healthRendership.infectious",defaultMessage:"Infectious diseases"}),value:36},{label:r({id:"superContent.healthRendership.stressManagement",defaultMessage:"Stress management"}),value:35},{label:r({id:"superContent.healthRendership.weightManagement",defaultMessage:"Weight management"}),value:28}]},{country:r({id:"superContent.chart.healthTool.items.thailand",defaultMessage:"Thailand"}),locale:"th-TH",bannerImgDesktop:"".concat(y.nS,"/health-rendership-thailand-desktop.png?v=1"),bannerImgMobile:"".concat(y.nS,"/health-rendership-thailand.png?v=1"),datasets:[{label:r({id:"superContent.healthRendership.cancer",defaultMessage:"Cancer"}),value:35},{label:r({id:"superContent.healthRendership.weightManagement",defaultMessage:"Weight management"}),value:32},{label:r({id:"superContent.healthRendership.stressManagement",defaultMessage:"Stress management"}),value:29}]},{country:r({id:"superContent.chart.healthTool.items.india",defaultMessage:"India"}),locale:"hi-IN",bannerImgDesktop:"".concat(y.nS,"/health-rendership-india-desktop.png?v=1"),bannerImgMobile:"".concat(y.nS,"/health-rendership-india.png?v=1"),datasets:[{label:r({id:"superContent.healthRendership.weightManagement",defaultMessage:"Weight management"}),value:45},{label:r({id:"superContent.healthRendership.joinPain",defaultMessage:"Joint pain (strains, pains, injuries)"}),value:31},{label:r({id:"superContent.healthRendership.sexualWellness",defaultMessage:"Sexual wellness"}),value:31},{label:r({id:"superContent.healthRendership.stressManagement",defaultMessage:"Stress management"}),value:26}]}],[]),f=(0,l.useRef)({x:-1,y:-1}),w=(0,l.useRef)({}),C=(0,l.useRef)({index:0}),M=(0,l.useRef)(null),k=x.os.utils.selector(M),T=(0,l.useMemo)(()=>[...v.filter(e=>e.locale===o),...v.filter(e=>e.locale!==o)],[]),slideDown=()=>{h.current&&(h.current=!1,setTimeout(()=>{h.current=!0},1e3),w.current=x.os.timeline().to(k(".animation-image-post"),{opacity:0,duration:1}).to(k(".animation-image-main"),{opacity:1,duration:1},0).fromTo(k(".country-title"),{opacity:0,x:50},{opacity:1,x:0,duration:1},0).fromTo(k(".data-value"),{opacity:0,x:30},{opacity:1,x:0,duration:1},0).from(k(".value-number"),{textContent:0,snap:{textContent:1},duration:1},0))},slideUp=()=>{h.current&&(h.current=!1,setTimeout(()=>{h.current=!0},1e3),w.current=x.os.timeline().to(k(".animation-image-main"),{opacity:1,duration:1}).to(".animation-image-after",{opacity:0,duration:1},0).fromTo(k(".country-title"),{opacity:0,x:50},{opacity:1,x:0,duration:1},0).fromTo(k(".data-value"),{opacity:0,x:30},{opacity:1,x:0,duration:1},0).from(k(".value-number"),{textContent:0,snap:{textContent:1},duration:1,ease:O.F.easeIn},0))};(0,l.useEffect)(()=>{C.current.index<=d?slideDown():slideUp(),C.current.index=d},[d]),(0,l.useEffect)(()=>{var e,t,o;if((null===(e=window)||void 0===e?void 0:e.innerHeight)>0){let e=n?null===(t=window)||void 0===t?void 0:t.innerHeight:(null===(o=window)||void 0===o?void 0:o.innerHeight)-i,a=1440*e/955;p(e),b(.73*a+(window.innerWidth-a)/2)}},[]);let S=null==T?void 0:T[d],handleWheel=e=>{if(m.current&&h.current){var t,i,o,a;m.current=!1,setTimeout(()=>{m.current=!0},1e3),"next"===e?(de>T.length-2?T.length-1:e+1)):(d>0&&window.scrollTo({top:n?null==M?void 0:null===(o=M.current)||void 0===o?void 0:o.offsetTop:((null==M?void 0:null===(a=M.current)||void 0===a?void 0:a.offsetTop)||64)-64,behavior:"smooth"}),c(e=>e<1?0:e-1))}},handleChangeCountry=e=>{if(m.current&&h.current){var t,i;m.current=!1,setTimeout(()=>{m.current=!0},1e3),window.scrollTo({top:n?null==M?void 0:null===(t=M.current)||void 0===t?void 0:t.offsetTop:((null==M?void 0:null===(i=M.current)||void 0===i?void 0:i.offsetTop)||64)-64,behavior:"smooth"}),c(e)}},handleSlide=e=>{if(m.current&&h.current){var t,i,o,a;m.current=!1,"left"===e?(d>0&&window.scrollTo({top:n?null==M?void 0:null===(t=M.current)||void 0===t?void 0:t.offsetTop:((null==M?void 0:null===(i=M.current)||void 0===i?void 0:i.offsetTop)||64)-64,behavior:"smooth"}),c(e=>e<1?0:e-1)):(de>T.length-2?T.length-1:e+1)),setTimeout(()=>{m.current=!0},1e3)}};return(0,a.FD)(G,{"data-banner-height":u,ref:M,onTouchStart:e=>{f.current.x=e.changedTouches[0].clientX,f.current.y=e.changedTouches[0].clientY},onTouchEnd:e=>{f.current.x>0&&Math.abs(e.changedTouches[0].clientX-f.current.x)>Math.abs(e.changedTouches[0].clientY-f.current.y)&&handleSlide(e.changedTouches[0].clientX-f.current.x>0?"left":"right"),f.current.x=-1,f.current.y=-1},children:[null==T?void 0:T.map((e,t)=>(0,a.Y)("img",{loading:"lazy",className:"animation animation-image".concat(t(0,a.FD)(j,{children:[(0,a.Y)("div",{className:"data-label",children:null==e?void 0:e.label}),(0,a.FD)("div",{className:"progress-bar",children:[(0,a.Y)(ProgressBarAnimation,{country:null==S?void 0:S.country,value:null==e?void 0:e.value}),(0,a.FD)("div",{className:"data-value",children:[(0,a.Y)("div",{className:"value-number",children:null==e?void 0:e.value}),"%"]})]})]},t))]}),n?null:(0,a.FD)(a.FK,{children:[0!==d?(0,a.Y)(Z,{children:(0,a.Y)("img",{src:"".concat(y.nS,"/chevronLeftCircle.svg"),alt:"previous",onClick:()=>handleWheel("previous"),loading:"lazy"})}):null,dhandleWheel("next"),loading:"lazy"})}):null]}),(0,a.Y)(q,{children:null==T?void 0:T.map((e,t)=>(0,a.Y)(Q,{"data-active":t===d,onClick:()=>handleChangeCountry(t)},"".concat(null==e?void 0:e.country,"-").concat(t)))})]})},X=(0,C.A)("div",{target:"e1btc9im0"})("position:relative;overflow:hidden;width:100%;height:",e=>null==e?void 0:e["data-banner-height"],"px;margin-bottom:32px;background-color:white;.animation-image{position:absolute;right:0;left:0;margin:auto;margin-top:auto;margin-right:auto;margin-bottom:auto;margin-left:auto;opacity:0;}.heading{opacity:0;}.description{margin-top:12px;opacity:0;}",M.M.mbDown,"{padding:16px;z-index:100;.animation-image{bottom:32px;width:100%;height:auto;}}",M.M.mbUp,"{z-index:11;.animation-image{top:0;bottom:0;width:auto;height:",e=>null==e?void 0:e["data-banner-height"],"px;}}"),$=(0,C.A)("div",{target:"e1btc9im1"})("position:absolute;max-width:368px;",M.M.mbUp,"{top:7%;left:",e=>null==e?void 0:e["data-content-padding"],"px;.heading{opacity:0;}.description{margin-top:16px;opacity:0;}}"),ee=(0,C.A)("div",{target:"e1btc9im2"})("position:absolute;",M.M.mbDown,"{width:100%;top:0;left:0;}",M.M.mbUp,"{top:41%;left:",e=>null==e?void 0:e["data-content-padding"],"px;}.country-title{color:#ffca49;font-family:'Inter';font-size:24px;font-weight:bold;line-height:36px;opacity:0;}.charts-wrapper{display:flex;",M.M.mbDown,"{margin-bottom:12px;}",M.M.mbUp,"{margin-bottom:16px;}}"),et=(0,C.A)("div",{target:"e1btc9im3"})("position:absolute;",M.M.mbUp,"{bottom:2%;left:",e=>null==e?void 0:e["data-content-padding"],"px;}"),en=(0,C.A)("div",{target:"e1btc9im4"})("position:relative;min-height:400px;",M.M.mbDown,"{margin-top:24px;}"),ei=(0,C.A)("div",{target:"e1btc9im5"})("text-align:center;.chart-container{position:relative;display:flex;width:60px;height:60px;align-items:center;justify-content:center;.data-label{position:absolute;color:",S.w.colors.primaryBase,";font-size:12px;font-weight:bold;line-height:18px;.value-number{display:inline;}}}.chart-name{color:",S.w.colors.primaryBase,";font-size:14px;font-weight:600;line-height:22px;}",M.M.mbDown,"{width:270px;height:270px;margin:auto;margin-top:-32px;.chart-container{margin-bottom:4px;}}",M.M.mbUp,"{width:310px;height:310px;margin-left:16px;margin-top:-16px;.chart-container{margin-bottom:8px;}}"),eo=(0,C.A)("div",{target:"e1btc9im6"})("min-height:20px;color:",S.w.colors.gray500,";font-size:12px;font-weight:normal;line-height:18px;.legend{display:flex;align-items:center;.legend-label{text-align:start;}}",M.M.mbDown,"{position:absolute;bottom:36px;.legend{margin-bottom:4px;}}",M.M.mbUp,"{display:flex;margin-top:12px;.legend{margin-right:32px;}}"),ea=(0,C.A)("div",{target:"e1btc9im7"})("width:20px;height:20px;margin-right:6px;border-radius:",S.w.borderRadius,";"),el=(0,C.A)("div",{target:"e1btc9im8"})("position:absolute;top:50%;left:3%;flex-direction:column;transform:translateY(-50%);img{width:40px;height:40px;cursor:pointer;}"),er=(0,C.A)("div",{target:"e1btc9im9"})("position:absolute;top:50%;right:3%;flex-direction:column;transform:translateY(-50%);img{width:40px;height:40px;cursor:pointer;}"),es=(0,C.A)("div",{target:"e1btc9im10"})("position:absolute;",M.M.mbDown,"{bottom:16px;}",M.M.mbUp,"{bottom:24px;}left:50%;display:flex;transform:translateX(-50%);"),ed=(0,C.A)("div",{target:"e1btc9im11"})("display:inline-block;width:8px;height:8px;margin-right:8px;background-color:",S.w.colors.neutral200,";border-radius:50%;cursor:pointer;&[data-active='true']{background-color:",S.w.colors.primaryBase,";}"),ec=(0,C.A)("div",{target:"e1btc9im12"})("position:absolute;right:",e=>null==e?void 0:e["data-content-padding"],"px;bottom:2%;color:",S.w.colors.gray500,";font-size:22px;font-weight:600;line-height:32px;");A.t1.register(D.A);let MostViewedCategoriesChart=e=>{let{isMobile:t,topbarHeight:n=64}=e,{formatMessage:i}=(0,s.A)(),{locale:o="en-PH"}=(0,P.useRouter)(),[r,d]=(0,l.useState)(!1),[c,u]=(0,l.useState)(0),[p,h]=(0,l.useState)(t?603:831),[m,g]=(0,l.useState)(1051),b=(0,l.useRef)(!0),v=(0,l.useRef)(!0),w=(0,l.useRef)({}),C=(0,l.useRef)({index:0}),M=(0,l.useRef)(null),k=x.os.utils.selector(M),T=(0,l.useRef)({x:-1,y:-1}),A=[{label:i({id:"superContent.mostViewedCategories.labels.cancer",defaultMessage:"Cancer"}),color:"#2C74DF"},{label:i({id:"superContent.mostViewedCategories.labels.heartHealth",defaultMessage:"Heart Health"}),color:"#2B94FF"},{label:i({id:"superContent.mostViewedCategories.labels.diabetes",defaultMessage:"Diabetes"}),color:"#65B5FF"},{label:i({id:"superContent.mostViewedCategories.labels.stroke",defaultMessage:"Stroke"}),color:"#BCDEFF"}],indexReplacedSpace=e=>e.indexOf(" ")>7?e.indexOf(" "):e.indexOf(" ",e.indexOf(" ")+1),replaceAtIndex=(e,t,n)=>t>e.length-1||t<0?e:e.substring(0,t)+n+e.substring(t+1),D=(0,l.useMemo)(()=>[{country:i({id:"superContent.chart.healthTool.items.vietnam",defaultMessage:"Vietnam"}),locale:"vi-VN",bannerImgDesktop:"".concat(y.nS,"/obesity-vietnam-desktop.png?v=1"),bannerImgMobile:"".concat(y.nS,"/obesity-vietnam-mobile.png?v=1"),datasets:[32.2,41.8,23.7,2.2]},{country:i({id:"superContent.chart.healthTool.items.taiwan",defaultMessage:"Taiwan"}),locale:"zh-TW",bannerImgDesktop:"".concat(y.nS,"/obesity-taiwan-desktop.png?v=1"),bannerImgMobile:"".concat(y.nS,"/obesity-taiwan-mobile.png?v=1"),datasets:[32.7,36.1,28.7,2.6]},{country:i({id:"superContent.chart.healthTool.items.thailand",defaultMessage:"Thailand"}),locale:"th-TH",bannerImgDesktop:"".concat(y.nS,"/obesity-thailand-desktop.png?v=1"),bannerImgMobile:"".concat(y.nS,"/obesity-thailand-mobile.png?v=1"),datasets:[46.2,27.8,20.4,5.6]},{country:i({id:"superContent.chart.healthTool.items.philippines",defaultMessage:"Philippines"}),locale:"en-PH",bannerImgDesktop:"".concat(y.nS,"/obesity-philippines-desktop.png?v=1"),bannerImgMobile:"".concat(y.nS,"/obesity-philippines-mobile.png?v=1"),datasets:[58.1,12.9,23.2,5.9]},{country:i({id:"superContent.chart.healthTool.items.malaysia",defaultMessage:"Malaysia"}),locale:"ms-MY",bannerImgDesktop:"".concat(y.nS,"/obesity-malaysia-desktop.png?v=1"),bannerImgMobile:"".concat(y.nS,"/obesity-malaysia-mobile.png?v=1"),datasets:[27.6,31.5,40.4,.5]},{country:i({id:"superContent.chart.healthTool.items.cambodia",defaultMessage:"Cambodia"}),locale:"km-KH",bannerImgDesktop:"".concat(y.nS,"/obesity-cambodia-desktop.png?v=1"),bannerImgMobile:"".concat(y.nS,"/obesity-cambodia-mobile.png?v=1"),datasets:[36.1,41.4,22.4,.2]},{country:i({id:"superContent.chart.healthTool.items.indonesia",defaultMessage:"Indonesia"}),locale:"id-ID",bannerImgDesktop:"".concat(y.nS,"/obesity-indonesia-desktop.png?v=1"),bannerImgMobile:"".concat(y.nS,"/obesity-indonesia-mobile.png?v=1"),datasets:[13.1,26.4,59.9,.6]},{country:i({id:"superContent.chart.healthTool.items.india",defaultMessage:"India"}),locale:"hi-IN",bannerImgDesktop:"".concat(y.nS,"/obesity-india-desktop.png?v=1"),bannerImgMobile:"".concat(y.nS,"/obesity-india-mobile.png?v=1"),datasets:[16.7,43.3,34.5,5.4]}],[]),N=(0,l.useMemo)(()=>[...D.filter(e=>e.locale===o),...D.filter(e=>e.locale!==o)],[D]),slideDown=()=>{b&&(b.current=!1,setTimeout(()=>{b.current=!0},1e3),w.current=x.os.timeline().to(k(".animation-image-post"),{opacity:0,duration:1}).to(k(".animation-image-main"),{opacity:1,duration:1},0).fromTo(k(".country-title"),{opacity:0,x:-50},{opacity:1,x:0,duration:1},0).from(k(".value-number"),{textContent:0,snap:{textContent:.01},duration:1},0))},slideUp=()=>{b&&(b.current=!1,setTimeout(()=>{b.current=!0},1e3),w.current=x.os.timeline().to(k(".animation-image-main"),{opacity:1,duration:1}).to(".animation-image-after",{opacity:0,duration:1},0).fromTo(k(".country-title"),{opacity:0,x:-50},{opacity:1,x:0,duration:1},0).from(k(".value-number"),{textContent:0,snap:{textContent:.01},duration:1},0))};(0,l.useEffect)(()=>{C.current.index<=c?slideDown():slideUp(),C.current.index=c},[c]),(0,l.useEffect)(()=>{var e,i,o;if((null===(e=window)||void 0===e?void 0:e.innerHeight)>0){let e=t?null===(i=window)||void 0===i?void 0:i.innerHeight:(null===(o=window)||void 0===o?void 0:o.innerHeight)-n,a=1440*e/955;h(e),g((window.innerWidth-a)/2)}},[]),(0,l.useEffect)(()=>{var e;let t=B()(()=>{if(!r){var e;let n=document.body.scrollTop||document.documentElement.scrollTop;n-((null==M?void 0:null===(e=M.current)||void 0===e?void 0:e.offsetTop)||0)+window.innerHeight-100>0&&(d(!0),window.removeEventListener("scroll",t))}},200);if(!(((null==M?void 0:null===(e=M.current)||void 0===e?void 0:e.offsetTop)||0)window.removeEventListener("scroll",t);d(!0)},[]),(0,l.useEffect)(()=>{r&&(w.current=x.os.timeline().fromTo(k(".heading"),{y:40,opacity:0},{y:0,opacity:1,duration:.8}).fromTo(k(".description"),{y:40,opacity:0},{y:0,opacity:1,duration:.5}).from(k(".legend"),{x:50,duration:.8,opacity:0},.5))},[r]);let E=null==N?void 0:N[c],handleWheel=e=>{if(v.current&&b.current){var n,i,o,a;v.current=!1,setTimeout(()=>{v.current=!0},1e3),"next"===e?(c<(null==N?void 0:N.length)-1&&window.scrollTo({top:t?null==M?void 0:null===(n=M.current)||void 0===n?void 0:n.offsetTop:((null==M?void 0:null===(i=M.current)||void 0===i?void 0:i.offsetTop)||64)-64,behavior:"smooth"}),u(e=>e>(null==N?void 0:N.length)-2?(null==N?void 0:N.length)-1:e+1)):(c>0&&window.scrollTo({top:t?null==M?void 0:null===(o=M.current)||void 0===o?void 0:o.offsetTop:((null==M?void 0:null===(a=M.current)||void 0===a?void 0:a.offsetTop)||64)-64,behavior:"smooth"}),u(e=>e<1?0:e-1))}},handleChangeCountry=e=>{if(v.current&&b.current){var n,i;v.current=!1,setTimeout(()=>{v.current=!0},1e3),window.scrollTo({top:t?null==M?void 0:null===(n=M.current)||void 0===n?void 0:n.offsetTop:((null==M?void 0:null===(i=M.current)||void 0===i?void 0:i.offsetTop)||64)-64,behavior:"smooth"}),u(e)}},handleSlide=e=>{if(v.current&&b.current){var n,i,o,a;v.current=!1,"left"===e?(c>0&&window.scrollTo({top:t?null==M?void 0:null===(n=M.current)||void 0===n?void 0:n.offsetTop:((null==M?void 0:null===(i=M.current)||void 0===i?void 0:i.offsetTop)||64)-64,behavior:"smooth"}),u(e=>e<1?0:e-1)):(c<(null==N?void 0:N.length)-1&&window.scrollTo({top:t?null==M?void 0:null===(o=M.current)||void 0===o?void 0:o.offsetTop:((null==M?void 0:null===(a=M.current)||void 0===a?void 0:a.offsetTop)||64)-64,behavior:"smooth"}),u(e=>e>(null==N?void 0:N.length)-2?(null==N?void 0:N.length)-1:e+1)),setTimeout(()=>{v.current=!0},1e3)}},I={responsive:!0,elements:{arc:{borderWidth:0}},layout:{padding:t?60:50},plugins:{legend:{display:!1},tooltip:{enabled:!1},datalabels:{anchor:"end",align:"end",color:"#737373",backgroundColor:"white",font:{weight:"bold",size:12},borderRadius:12,padding:{top:8,right:12,bottom:8,left:12},offset:-24,textAlign:"center",borderColor:"#E4E8EC",borderWidth:1,formatter:(e,t)=>e?"".concat("".concat(e).replace(".",","),"%\n").concat(replaceAtIndex(A[t.dataIndex].label,indexReplacedSpace(A[t.dataIndex].label),"\n")):""}},animation:{duration:1e3}};return(0,a.Y)(X,{"data-banner-height":p,ref:M,onTouchStart:e=>{T.current.x=e.changedTouches[0].clientX,T.current.y=e.changedTouches[0].clientY},onTouchEnd:e=>{T.current.x>0&&Math.abs(e.changedTouches[0].clientX-T.current.x)>Math.abs(e.changedTouches[0].clientY-T.current.y)&&handleSlide(e.changedTouches[0].clientX-T.current.x>0?"left":"right"),T.current.x=-1,T.current.y=-1},children:t?(0,a.FD)(a.FK,{children:[(0,a.Y)(f.H,{className:"heading",tag:"h2",color:S.w.colors.primaryBase,children:i({id:"superContent.mostViewedCategories.title",defaultMessage:"Most viewed categories on Hello Health Sites:"})}),(0,a.Y)(Y.T,{size:"p4",className:"description",color:S.w.colors.gray500,style:{marginTop:12},children:i({id:"superContent.mostViewedCategories.description",defaultMessage:"Based on interactions with Hello Health Sites from 26 May 2021 to 25 August 2021"})}),(0,a.FD)(en,{children:[null==N?void 0:N.map((e,n)=>(0,a.Y)("img",{loading:"lazy",className:"animation animation-image".concat(ne.label),datasets:[{data:null==E?void 0:E.datasets,backgroundColor:A.map(e=>e.color)}]}})})]})]}),(0,a.Y)(eo,{children:A.map((e,t)=>(0,a.FD)("div",{className:"legend",children:[(0,a.Y)(ea,{style:{backgroundColor:e.color}}),(0,a.Y)("div",{className:"legend-label",children:e.label})]},t))}),(0,a.Y)(es,{children:null==N?void 0:N.map((e,t)=>(0,a.Y)(ed,{"data-active":t===c,onClick:()=>handleChangeCountry(t)},"".concat(null==e?void 0:e.country,"-").concat(t)))})]}):(0,a.FD)(a.FK,{children:[null==N?void 0:N.map((e,n)=>(0,a.Y)("img",{loading:"lazy",className:"animation animation-image".concat(ne.label),datasets:[{data:null==E?void 0:E.datasets,backgroundColor:A.map(e=>e.color)}]}})})]}),(0,a.Y)(et,{"data-content-padding":m,children:(0,a.Y)(eo,{children:A.map((e,t)=>(0,a.FD)("div",{className:"legend",children:[(0,a.Y)(ea,{style:{backgroundColor:e.color}}),(0,a.Y)("div",{className:"legend-label",children:e.label})]},t))})}),0!==c?(0,a.Y)(el,{children:(0,a.Y)("img",{loading:"lazy",src:"".concat(y.nS,"/chevronLeftCircle.svg"),alt:"previous",onClick:()=>handleWheel("previous")})}):null,c<(null==N?void 0:N.length)-1?(0,a.Y)(er,{children:(0,a.Y)("img",{loading:"lazy",src:"".concat(y.nS,"/chevronRightCircle.svg"),alt:"next",onClick:()=>handleWheel("next")})}):null,(0,a.FD)(ec,{"data-content-padding":m,children:[(0,a.Y)("b",{children:c+1}),"/",N.length]})]})})},eu=(0,C.A)("div",{target:"e101pauz0"})("position:relative;overflow:hidden;width:100%;height:",e=>null==e?void 0:e["data-banner-height"],"px;transition:height 200ms;margin-bottom:32px;",M.M.mbDown,"{padding:16px;z-index:100;}",M.M.mbUp,"{z-index:11;}background-color:white;.animation-image{position:absolute;right:0;left:0;margin:auto;margin-top:auto;margin-right:auto;margin-bottom:auto;margin-left:auto;opacity:0;",M.M.mbDown,"{bottom:32px;width:100%;height:auto;}",M.M.mbUp,"{top:0;bottom:0;width:auto;height:",e=>null==e?void 0:e["data-banner-height"],"px;transition:height 200ms;}}.heading{opacity:0;}.description{margin-top:12px;opacity:0;}"),ep=(0,C.A)("div",{target:"e101pauz1"})("position:absolute;max-width:368px;",M.M.mbUp,"{top:7%;left:",e=>null==e?void 0:e["data-content-padding"],"px;.heading{opacity:0;}.description{margin-top:16px;opacity:0;}}"),eh=(0,C.A)("div",{target:"e101pauz2"})("position:absolute;",M.M.mbDown,"{top:0;left:0;}",M.M.mbUp,"{top:41%;left:",e=>null==e?void 0:e["data-content-padding"],"px;}.country-title{margin-bottom:16px;color:#ffca49;font-family:'Inter';font-size:24px;font-weight:bold;line-height:36px;opacity:0;}.charts-wrapper{display:flex;",M.M.mbDown,"{margin-bottom:12px;}",M.M.mbUp,"{margin-bottom:16px;}}"),em=(0,C.A)("div",{target:"e101pauz3"})("position:absolute;",M.M.mbUp,"{bottom:2%;left:",e=>null==e?void 0:e["data-content-padding"],"px;}"),eg=(0,C.A)("div",{target:"e101pauz4"})("position:relative;min-height:400px;",M.M.mbDown,"{margin-top:24px;}"),eb=(0,C.A)("div",{target:"e101pauz5"})(M.M.mbDown,"{padding:8px 12px;}",M.M.mbUp,"{padding:20px 18px 18px 18px;}margin-right:12px;background-color:white;border-radius:",S.w.borderRadius,";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);text-align:center;.chart-container{position:relative;display:flex;width:60px;height:60px;align-items:center;justify-content:center;",M.M.mbDown,"{margin-bottom:4px;}",M.M.mbUp,"{margin-bottom:8px;}.data-label{position:absolute;color:",S.w.colors.primaryBase,";font-size:12px;font-weight:bold;line-height:18px;.value-number{display:inline;}}}.chart-name{color:",S.w.colors.primaryBase,";font-size:14px;font-weight:600;line-height:22px;}"),ev=(0,C.A)("div",{target:"e101pauz6"})(M.M.mbDown,"{width:220px;padding:8px 0 8px 12px;}",M.M.mbUp,"{width:244px;padding:20px 20px 12px 20px;}background-color:white;border-radius:",S.w.borderRadius,";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);.bar-container{display:flex;width:164px;",M.M.mbDown,"{height:24px;}",M.M.mbUp,"{height:32px;margin-bottom:8px;}align-items:center;.bar-label{",M.M.mbDown,"{width:24px;height:24px;margin-right:8px;}",M.M.mbUp,"{width:32px;height:32px;margin-right:8px;}}}"),ef=(0,C.A)("div",{target:"e101pauz7"})(M.M.mbDown,"{position:absolute;bottom:0;left:0;.info{margin-bottom:4px;}}",M.M.mbUp,"{display:flex;.info{margin-right:32px;}}.info{color:",S.w.colors.gray500,";font-size:12px;line-height:18px;}"),ex=(0,C.A)("div",{target:"e101pauz8"})("min-height:20px;color:",S.w.colors.gray500,";font-size:12px;font-weight:normal;line-height:18px;",M.M.mbDown,"{position:absolute;bottom:36px;}",M.M.mbUp,"{display:flex;margin-top:12px;}.legend{display:flex;align-items:center;",M.M.mbUp,"{margin-right:40px;}",M.M.mbDown,"{margin-bottom:4px;}.legend-label{text-align:start;}}"),ew=(0,C.A)("div",{target:"e101pauz9"})("width:20px;height:20px;margin-right:6px;border-radius:",S.w.borderRadius,";"),ey=(0,C.A)("div",{target:"e101pauz10"})("position:absolute;top:50%;left:3%;flex-direction:column;transform:translateY(-50%);img{width:40px;height:40px;cursor:pointer;}"),eC=(0,C.A)("div",{target:"e101pauz11"})("position:absolute;top:50%;right:3%;flex-direction:column;transform:translateY(-50%);img{width:40px;height:40px;cursor:pointer;}"),eM=(0,C.A)("div",{target:"e101pauz12"})("position:absolute;",M.M.mbDown,"{bottom:16px;}",M.M.mbUp,"{bottom:24px;}left:50%;display:flex;transform:translateX(-50%);"),ek=(0,C.A)("div",{target:"e101pauz13"})("display:inline-block;width:8px;height:8px;margin-right:8px;background-color:",S.w.colors.neutral200,";border-radius:50%;cursor:pointer;&[data-active='true']{background-color:",S.w.colors.primaryBase,";}"),eT=(0,C.A)("div",{target:"e101pauz14"})("position:absolute;right:",e=>null==e?void 0:e["data-content-padding"],"px;bottom:2%;color:",S.w.colors.gray500,";font-size:22px;font-weight:600;line-height:32px;");A.t1.register(D.A);let ObesityPercentage=e=>{var t,n,i,o,r,d,c,u,p,h,m,g,b,v,w,C,M,k,T,A,D,N,E,I,z,F,H,O,R,_,U,W,V,G,K,j,q,Q,Z,J,X,$,ee,et,en,ei,eo,ea;let{isMobile:el,topbarHeight:er=64}=e,{formatMessage:es}=(0,s.A)(),{locale:ed="en-PH"}=(0,P.useRouter)(),[ec,eS]=(0,l.useState)(!1),[eY,eA]=(0,l.useState)(0),[eD,eN]=(0,l.useState)(el?603:831),[eB,eL]=(0,l.useState)(1051),eE=(0,l.useRef)(!0),eI=(0,l.useRef)(!0),ez=(0,l.useRef)({}),eF=(0,l.useRef)({index:0}),eH=(0,l.useRef)(null),eO=x.os.utils.selector(eH),eP=(0,l.useRef)({x:-1,y:-1}),eR=(0,l.useMemo)(()=>[{country:"Thailand",locale:"th-TH",bannerImgDesktop:"".concat(y.nS,"/obesity-thailand-desktop.png?v=1"),bannerImgMobile:"".concat(y.nS,"/obesity-thailand-mobile.png?v=1"),datasets:{obeses:[{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:1}),value:19.76},{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:2}),value:9.34},{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:3}),value:1.2}]}},{country:"Vietnam",locale:"vi-VN",bannerImgDesktop:"".concat(y.nS,"/obesity-vietnam-desktop.png?v=1"),bannerImgMobile:"".concat(y.nS,"/obesity-vietnam-mobile.png?v=1"),datasets:{obeses:[{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:1}),value:14.04},{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:2}),value:3.16},{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:3}),value:1.38}],weight:{normalWeight:17.83,borderline:43.74}}},{country:"Taiwan",locale:"zh-TW",bannerImgDesktop:"".concat(y.nS,"/obesity-taiwan-desktop.png?v=1"),bannerImgMobile:"".concat(y.nS,"/obesity-taiwan-mobile.png?v=1"),datasets:{obeses:[{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:1}),value:20.98},{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:2}),value:6.63},{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:3}),value:.88}],weight:{normalWeight:19.23,borderline:42.64}}},{country:"Philippines",locale:"en-PH",bannerImgDesktop:"".concat(y.nS,"/obesity-philippines-desktop.png?v=1"),bannerImgMobile:"".concat(y.nS,"/obesity-philippines-mobile.png?v=1"),datasets:{obeses:[{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:1}),value:21.57},{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:2}),value:9.64},{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:3}),value:5.33}],weight:{normalWeight:13.71}}},{country:"Malaysia",locale:"ms-MY",bannerImgDesktop:"".concat(y.nS,"/obesity-malaysia-desktop.png?v=1"),bannerImgMobile:"".concat(y.nS,"/obesity-malaysia-mobile.png?v=1"),datasets:{obeses:[{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:1}),value:23.43},{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:2}),value:13.47},{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:3}),value:2.01}]}},{country:"Indonesia",locale:"id-ID",bannerImgDesktop:"".concat(y.nS,"/obesity-indonesia-desktop.png?v=1"),bannerImgMobile:"".concat(y.nS,"/obesity-indonesia-mobile.png?v=1"),datasets:{obeses:[{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:1}),value:16.05},{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:2}),value:5.94},{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:3}),value:1.08}]}},{country:"India",locale:"hi-IN",bannerImgDesktop:"".concat(y.nS,"/obesity-india-desktop.png?v=1"),bannerImgMobile:"".concat(y.nS,"/obesity-india-mobile.png?v=1"),datasets:{obeses:[{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:1}),value:27.19},{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:2}),value:10.82},{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:3}),value:5.35}]}},{country:"Cambodia",locale:"km-KH",bannerImgDesktop:"".concat(y.nS,"/obesity-cambodia-desktop.png?v=1"),bannerImgMobile:"".concat(y.nS,"/obesity-cambodia-mobile.png?v=1"),datasets:{obeses:[{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:1}),value:17.62},{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:2}),value:4.45},{label:es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:3}),value:1.37}],weight:{normalWeight:17.79,borderline:43.603}}}],[]),e_=(0,l.useMemo)(()=>[...eR.filter(e=>e.locale===ed),...eR.filter(e=>e.locale!==ed)],[eR]),slideDown=()=>{eE&&(eE.current=!1,setTimeout(()=>{eE.current=!0},1e3),ez.current=x.os.timeline().to(eO(".animation-image-post"),{opacity:0,duration:1}).to(eO(".animation-image-main"),{opacity:1,duration:1},0).fromTo(eO(".country-title"),{opacity:0,x:-50},{opacity:1,x:0,duration:1},0).from(eO(".value-number"),{textContent:0,snap:{textContent:.01},duration:1},0))},slideUp=()=>{eE&&(eE.current=!1,setTimeout(()=>{eE.current=!0},1e3),ez.current=x.os.timeline().to(eO(".animation-image-main"),{opacity:1,duration:1}).to(".animation-image-after",{opacity:0,duration:1},0).fromTo(eO(".country-title"),{opacity:0,x:-50},{opacity:1,x:0,duration:1},0).from(eO(".value-number"),{textContent:0,snap:{textContent:.01},duration:1},0))};(0,l.useEffect)(()=>{eF.current.index<=eY?slideDown():slideUp(),eF.current.index=eY},[eY]),(0,l.useEffect)(()=>{var e,t,n;if((null===(e=window)||void 0===e?void 0:e.innerHeight)>0){let e=el?null===(t=window)||void 0===t?void 0:t.innerHeight:(null===(n=window)||void 0===n?void 0:n.innerHeight)-er,i=1440*e/955;eN(e),eL((window.innerWidth-i)/2)}},[]),(0,l.useEffect)(()=>{var e;let t=B()(()=>{if(!ec){var e;let n=document.body.scrollTop||document.documentElement.scrollTop;n-((null==eH?void 0:null===(e=eH.current)||void 0===e?void 0:e.offsetTop)||0)+window.innerHeight-100>0&&(eS(!0),window.removeEventListener("scroll",t))}},200);if(!(((null==eH?void 0:null===(e=eH.current)||void 0===e?void 0:e.offsetTop)||0)window.removeEventListener("scroll",t);eS(!0)},[]),(0,l.useEffect)(()=>{ec&&(ez.current=x.os.timeline().fromTo(eO(".heading"),{y:40,opacity:0},{y:0,opacity:1,duration:.8}).fromTo(eO(".description"),{y:40,opacity:0},{y:0,opacity:1,duration:.5}).from(eO(".legend"),{x:50,duration:.8,opacity:0},.5))},[ec]);let eU=[{index:1,range:"30 - 34.9"},{index:2,range:"35.0 - 39.9"},{index:3,range:">= 40"}],eW=null==e_?void 0:e_[eY],handleWheel=e=>{if(eI.current&&eE.current){var t,n,i,o;eI.current=!1,setTimeout(()=>{eI.current=!0},1e3),"next"===e?(eY<(null==e_?void 0:e_.length)-1&&window.scrollTo({top:el?null==eH?void 0:null===(t=eH.current)||void 0===t?void 0:t.offsetTop:((null==eH?void 0:null===(n=eH.current)||void 0===n?void 0:n.offsetTop)||64)-64,behavior:"smooth"}),eA(e=>e>(null==e_?void 0:e_.length)-2?(null==e_?void 0:e_.length)-1:e+1)):(eY>0&&window.scrollTo({top:el?null==eH?void 0:null===(i=eH.current)||void 0===i?void 0:i.offsetTop:((null==eH?void 0:null===(o=eH.current)||void 0===o?void 0:o.offsetTop)||64)-64,behavior:"smooth"}),eA(e=>e<1?0:e-1))}},eV={cutout:"80%",plugins:{legend:{display:!1},tooltip:{enabled:!1},datalabels:{display:!1}},animation:{duration:1e3,easing:"easeInQuint"}},eG={indexAxis:"y",maintainAspectRatio:!1,responsive:!0,scales:{xAxis:{display:!1,suggestedMax:((null==eW?void 0:null===(n=eW.datasets)||void 0===n?void 0:null===(t=n.weight)||void 0===t?void 0:t.normalWeight)||0)>((null==eW?void 0:null===(o=eW.datasets)||void 0===o?void 0:null===(i=o.weight)||void 0===i?void 0:i.borderline)||0)?null==eW?void 0:null===(d=eW.datasets)||void 0===d?void 0:null===(r=d.weight)||void 0===r?void 0:r.normalWeight:null==eW?void 0:null===(u=eW.datasets)||void 0===u?void 0:null===(c=u.weight)||void 0===c?void 0:c.borderline},yAxis:{display:!1}},plugins:{legend:{display:!1},tooltip:{enabled:!1},datalabels:{anchor:"end",offset:8,align:"end",color:e=>{var t;return(null==e?void 0:null===(t=e.dataset)||void 0===t?void 0:t.backgroundColor)||"blue"},font:{weight:"bold",size:12},formatter:e=>e?"".concat(e,"%"):""}},layout:{height:24,padding:{right:42}},animation:{duration:1e3,easing:"easeInQuint"}},handleChangeCountry=e=>{if(eI.current&&eE.current){var t,n;eI.current=!1,setTimeout(()=>{eI.current=!0},1e3),window.scrollTo({top:el?null==eH?void 0:null===(t=eH.current)||void 0===t?void 0:t.offsetTop:((null==eH?void 0:null===(n=eH.current)||void 0===n?void 0:n.offsetTop)||64)-64,behavior:"smooth"}),eA(e)}},handleSlide=e=>{if(eI.current&&eE.current){var t,n,i,o;eI.current=!1,"left"===e?(eY>0&&window.scrollTo({top:el?null==eH?void 0:null===(t=eH.current)||void 0===t?void 0:t.offsetTop:((null==eH?void 0:null===(n=eH.current)||void 0===n?void 0:n.offsetTop)||64)-64,behavior:"smooth"}),eA(e=>e<1?0:e-1)):(eY<(null==e_?void 0:e_.length)-1&&window.scrollTo({top:el?null==eH?void 0:null===(i=eH.current)||void 0===i?void 0:i.offsetTop:((null==eH?void 0:null===(o=eH.current)||void 0===o?void 0:o.offsetTop)||64)-64,behavior:"smooth"}),eA(e=>e>(null==e_?void 0:e_.length)-2?(null==e_?void 0:e_.length)-1:e+1)),setTimeout(()=>{eI.current=!0},1e3)}};return(0,a.Y)(eu,{"data-banner-height":eD,ref:eH,onTouchStart:e=>{eP.current.x=e.changedTouches[0].clientX,eP.current.y=e.changedTouches[0].clientY},onTouchEnd:e=>{eP.current.x>0&&Math.abs(e.changedTouches[0].clientX-eP.current.x)>Math.abs(e.changedTouches[0].clientY-eP.current.y)&&handleSlide(e.changedTouches[0].clientX-eP.current.x>0?"left":"right"),eP.current.x=-1,eP.current.y=-1},children:el?(0,a.FD)(a.FK,{children:[(0,a.Y)(f.H,{className:"heading",tag:"h2",color:S.w.colors.primaryBase,children:es({id:"superContent.obesity.title",defaultMessage:"BMI Calculator Results: Countries and their Obesity Percentages"})}),(0,a.Y)(Y.T,{size:"p4",className:"description",color:S.w.colors.gray500,style:{marginTop:12},children:es({id:"superContent.obesity.description",defaultMessage:"Based on interactions with Hello Health’s BMI calculator from 30 January to 29 July 2021"})}),(0,a.FD)(eg,{children:[null==e_?void 0:e_.map((e,t)=>(0,a.Y)("img",{loading:"lazy",className:"animation animation-image".concat(t0?(0,a.Y)("div",{className:"charts-wrapper",children:null==eW?void 0:null===(g=eW.datasets)||void 0===g?void 0:g.obeses.map((e,t)=>(0,a.FD)(eb,{children:[(0,a.FD)("div",{className:"chart-container",children:[(0,a.Y)(L.t1,{type:"doughnut",data:{labels:["active","inactive"],datasets:[{label:null==e?void 0:e.label,data:[null==e?void 0:e.value,100-(null==e?void 0:e.value)],backgroundColor:["#2D87F3","#E4E8EC"],borderWidth:0,hoverOffset:4,borderRadius:6}]},options:eV}),(0,a.FD)("div",{className:"data-label",children:[(0,a.Y)("div",{className:"value-number",children:null==e?void 0:e.value}),"%"]})]}),(0,a.Y)("div",{className:"chart-name",children:null==e?void 0:e.label})]},t))}):null,(null==eW?void 0:null===(v=eW.datasets)||void 0===v?void 0:null===(b=v.weight)||void 0===b?void 0:b.borderline)||(null==eW?void 0:null===(C=eW.datasets)||void 0===C?void 0:null===(w=C.weight)||void 0===w?void 0:w.normalWeight)?(0,a.FD)(ev,{children:[(null==eW?void 0:null===(k=eW.datasets)||void 0===k?void 0:null===(M=k.weight)||void 0===M?void 0:M.normalWeight)?(0,a.FD)("div",{className:"bar-container",children:[(0,a.Y)("img",{alt:"",loading:"lazy",className:"bar-label",src:"".concat(y.nS,"/weight.svg")}),(0,a.Y)(L.t1,{type:"bar",data:{labels:["weight"],datasets:[{data:[null==eW?void 0:null===(A=eW.datasets)||void 0===A?void 0:null===(T=A.weight)||void 0===T?void 0:T.normalWeight],backgroundColor:"#FEA21E",barThickness:12,borderRadius:Number.MAX_VALUE,borderSkipped:!1}]},options:eG})]}):null,(null==eW?void 0:null===(N=eW.datasets)||void 0===N?void 0:null===(D=N.weight)||void 0===D?void 0:D.borderline)?(0,a.FD)("div",{className:"bar-container",children:[(0,a.Y)("img",{alt:"",loading:"lazy",className:"bar-label",src:"".concat(y.nS,"/bmi-human.svg")}),(0,a.Y)(L.t1,{type:"bar",data:{labels:["weight"],datasets:[{data:[null==eW?void 0:null===(I=eW.datasets)||void 0===I?void 0:null===(E=I.weight)||void 0===E?void 0:E.borderline],backgroundColor:"#2D87F3",barThickness:12,borderRadius:Number.MAX_VALUE,borderSkipped:!1}]},options:eG})]}):null]}):null]}),(0,a.Y)(ef,{children:eU.map((e,t)=>(0,a.FD)("div",{className:"info",children:[(0,a.FD)("b",{children:[es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:null==e?void 0:e.index}),":"]})," ",es({id:"superContent.obesity.obeseRange",defaultMessage:"BMI of {range}"},{range:null==e?void 0:e.range})]},t))})]}),(null==eW?void 0:null===(F=eW.datasets)||void 0===F?void 0:null===(z=F.weight)||void 0===z?void 0:z.borderline)||(null==eW?void 0:null===(O=eW.datasets)||void 0===O?void 0:null===(H=O.weight)||void 0===H?void 0:H.normalWeight)?(0,a.FD)(ex,{children:[(0,a.FD)("div",{className:"legend",children:[(0,a.Y)(ew,{style:{backgroundColor:"#FEA21E"}}),(0,a.Y)("div",{className:"legend-label",children:(0,a.Y)("b",{children:es({id:"superContent.obesity.legends.normalWeight",defaultMessage:"Normal weight BMI of 18.5 - 24.9"})})})]}),(0,a.FD)("div",{className:"legend",children:[(0,a.Y)(ew,{style:{backgroundColor:"#2D87F3"}}),(0,a.Y)("div",{className:"legend-label",children:(0,a.Y)("b",{children:es({id:"superContent.obesity.legends.borderline",defaultMessage:"Borderline overweight BMI of 25.0 - <30.0"})})})]})]}):null,(0,a.Y)(eM,{children:null==e_?void 0:e_.map((e,t)=>(0,a.Y)(ek,{"data-active":t===eY,onClick:()=>handleChangeCountry(t)},"".concat(null==e?void 0:e.country,"-").concat(t)))})]}):(0,a.FD)(a.FK,{children:[null==e_?void 0:e_.map((e,t)=>(0,a.Y)("img",{loading:"lazy",className:"animation animation-image".concat(t0?(0,a.Y)("div",{className:"charts-wrapper",children:null==eW?void 0:null===(W=eW.datasets)||void 0===W?void 0:W.obeses.map((e,t)=>(0,a.FD)(eb,{children:[(0,a.FD)("div",{className:"chart-container",children:[(0,a.Y)(L.t1,{type:"doughnut",data:{labels:["active","inactive"],datasets:[{label:null==e?void 0:e.label,data:[null==e?void 0:e.value,100-(null==e?void 0:e.value)],backgroundColor:["#2D87F3","#E4E8EC"],borderWidth:0,hoverOffset:4,borderRadius:6}]},options:eV}),(0,a.FD)("div",{className:"data-label",children:[(0,a.Y)("div",{className:"value-number",children:null==e?void 0:e.value}),"%"]})]}),(0,a.Y)("div",{className:"chart-name",children:null==e?void 0:e.label})]},t))}):null,(null==eW?void 0:null===(G=eW.datasets)||void 0===G?void 0:null===(V=G.weight)||void 0===V?void 0:V.borderline)||(null==eW?void 0:null===(j=eW.datasets)||void 0===j?void 0:null===(K=j.weight)||void 0===K?void 0:K.normalWeight)?(0,a.FD)(ev,{children:[(null==eW?void 0:null===(Q=eW.datasets)||void 0===Q?void 0:null===(q=Q.weight)||void 0===q?void 0:q.normalWeight)?(0,a.FD)("div",{className:"bar-container",children:[(0,a.Y)("img",{alt:"",loading:"lazy",className:"bar-label",src:"".concat(y.nS,"/weight.svg")}),(0,a.Y)(L.t1,{type:"bar",data:{labels:["weight"],datasets:[{data:[null==eW?void 0:null===(J=eW.datasets)||void 0===J?void 0:null===(Z=J.weight)||void 0===Z?void 0:Z.normalWeight],backgroundColor:"#FEA21E",barThickness:24,borderRadius:6,borderSkipped:!1}]},options:eG})]}):null,(null==eW?void 0:null===($=eW.datasets)||void 0===$?void 0:null===(X=$.weight)||void 0===X?void 0:X.borderline)?(0,a.FD)("div",{className:"bar-container",children:[(0,a.Y)("img",{alt:"",loading:"lazy",className:"bar-label",src:"".concat(y.nS,"/bmi-human.svg")}),(0,a.Y)(L.t1,{type:"bar",data:{labels:["weight"],datasets:[{data:[null==eW?void 0:null===(et=eW.datasets)||void 0===et?void 0:null===(ee=et.weight)||void 0===ee?void 0:ee.borderline],backgroundColor:"#2D87F3",barThickness:24,borderRadius:6,borderSkipped:!1}]},options:eG})]}):null]}):null]}),(0,a.FD)(em,{"data-content-padding":eB,children:[(0,a.Y)(ef,{children:eU.map((e,t)=>(0,a.FD)("div",{className:"info",children:[(0,a.FD)("b",{children:[es({id:"superContent.obesity.obeseName",defaultMessage:"Obese {number}"},{number:null==e?void 0:e.index}),":"]})," ",es({id:"superContent.obesity.obeseRange",defaultMessage:"BMI of {range}"},{range:null==e?void 0:e.range})]},t))}),(0,a.Y)(ex,{children:(null==eW?void 0:null===(ei=eW.datasets)||void 0===ei?void 0:null===(en=ei.weight)||void 0===en?void 0:en.borderline)||(null==eW?void 0:null===(ea=eW.datasets)||void 0===ea?void 0:null===(eo=ea.weight)||void 0===eo?void 0:eo.normalWeight)?(0,a.FD)(a.FK,{children:[(0,a.FD)("div",{className:"legend",children:[(0,a.Y)(ew,{style:{backgroundColor:"#FEA21E"}}),(0,a.Y)("div",{className:"legend-label",children:(0,a.Y)("b",{children:es({id:"superContent.obesity.legends.normalWeight",defaultMessage:"Normal weight BMI of 18.5 - 24.9"})})})]}),(0,a.FD)("div",{className:"legend",children:[(0,a.Y)(ew,{style:{backgroundColor:"#2D87F3"}}),(0,a.Y)("div",{className:"legend-label",children:(0,a.Y)("b",{children:es({id:"superContent.obesity.legends.borderline",defaultMessage:"Borderline overweight BMI of 25.0 - <30.0"})})})]})]}):null})]}),0!==eY?(0,a.Y)(ey,{children:(0,a.Y)("img",{loading:"lazy",src:"".concat(y.nS,"/chevronLeftCircle.svg"),alt:"previous",onClick:()=>handleWheel("previous")})}):null,eY<(null==e_?void 0:e_.length)-1?(0,a.Y)(eC,{children:(0,a.Y)("img",{loading:"lazy",src:"".concat(y.nS,"/chevronRightCircle.svg"),alt:"next",onClick:()=>handleWheel("next")})}):null,(0,a.FD)(eT,{"data-content-padding":eB,children:[(0,a.Y)("b",{children:eY+1}),"/",e_.length]})]})})};var eS=n("tuDO"),eY=n("d5t9"),eA=n("P+HS"),eD=n("Pvbb"),eN=n("wA0V"),eB=n("a5L+"),eL=n("AG8C"),eE=n("iZSu"),eI=n("VnHZ"),ez=n("AuMj"),eF=n("oguI"),eH=n("Tabs"),eO=n("uYWT");let eP=eO.Ik().shape({status:eO.ai().notRequired(),message:eO.Yj().notRequired().default("")}),eR=(0,C.A)("div",{target:"e1qrz8ed0"})("display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;gap:24px;width:100%;height:184px;/* Neutral/Neutral-100 */\n\n border:1px solid ",S.w.colors.neutral100,";border-radius:8px;.button-group{display:flex;gap:16px;}"),e_=(0,C.A)("form",{target:"e1qrz8ed1"})("display:flex;flex-direction:column;align-items:flex-start;padding:0px;gap:8px;.feedback-status{cursor:pointer;display:flex;align-items:center;padding:12px;gap:10px;width:100%;min-height:52px;/* Gray/Gray-50 */\n border:1px solid transparent;background:",S.w.colors.gray50,";border-radius:",S.w.borderRadius,";transition:all 300ms ease-in-out;&.active{background:",S.w.colors.primary50,";border:1px solid ",S.w.colors.primary200,";}}.feedback-disclaimer{display:flex;gap:4px;",M.M.mbDown,"{margin-bottom:16px;}}");var eU=n("mYBQ");let FeedbackForm=e=>{let{onSubmit:t,...n}=e,{formatMessage:i}=(0,s.A)(),{state:{isLoggedIn:r}}=(0,l.useContext)(eI.B),{currentArticle:d,setIsDisliked:c}=(0,ez.NP)(e=>({currentArticle:e.currentArticle,setIsDisliked:e.setIsDisliked}),u.x),g=(0,eB.a)(),{locale:b}=(0,eL.$)(),v=(0,eF.m)({initialValues:{message:"",status:o.Other},validate:(0,eH.t)(eP)}),onSubmit=async e=>{var n;if(!r){(0,eD.YA)("".concat((0,m.oN)(b)).concat(null==d?void 0:d.permalink,"?feedback=").concat(eE.o.DisLike,"&feedback_stat=").concat(e.status,"&message=").concat(e.message),"reaction");return}let i=await (0,p.callApiNew)(h.PATHS.SSO.SSO_FEEDBACK,{method:"POST",data:{post_id:null==d?void 0:d.id,feedback:eE.o.DisLike,feedback_stat:e.status,message:e.message}},"sso");(null==i?void 0:null===(n=i._data)||void 0===n?void 0:n.total)&&c(!0),t()};return(0,a.FD)(e_,{onSubmit:v.onSubmit(onSubmit,e=>{Object.values(e).forEach(e=>(0,eU.showNotification)({type:"danger",message:e||"",title:i({id:"babyGrowth.error.title",defaultMessage:"Invalid data"})}))}),...n,children:[(0,a.FD)("div",{className:"feedback-status ".concat(v.values.status===o.Inaccurate?"active":""),onClick:()=>{v.setFieldValue("status",o.Inaccurate)},children:[(0,a.Y)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",children:(0,a.Y)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 24C8.48 24 4 19.52 4 14C4 8.48 8.48 4 14 4C19.52 4 24 8.48 24 14C24 19.52 19.52 24 14 24ZM14 9C13.45 9 13 9.45 13 10V14C13 14.55 13.45 15 14 15C14.55 15 15 14.55 15 14V10C15 9.45 14.55 9 14 9ZM13 17H15V19H13V17Z",fill:"#FE921D"})}),(0,a.Y)(Y.T,{size:"p3",color:S.w.colors.gray800,children:i({id:"feedback.status.inaccurate",defaultMessage:"This article contains incorrect information"})})]}),(0,a.FD)("div",{className:"feedback-status ".concat(v.values.status===o.NoRelated?"active":""),onClick:()=>{v.setFieldValue("status",o.NoRelated)},children:[(0,a.Y)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,a.Y)("path",{d:"M11.6777 21.9957C11.2556 21.9571 10.8798 21.6495 10.7793 21.2047L10.2246 18.7594L7.51367 15.7477C7.18267 15.3807 7 14.9038 7 14.4098V5.17739C7 4.07239 7.895 3.17739 9 3.17739H17.0312C17.7723 3.17739 18.4431 3.61367 18.7441 4.29067L21.7461 11.0465C21.9131 11.4205 22 11.826 22 12.236V13.1774C22 14.2774 21.1 15.1774 20 15.1774H13C13 15.1774 14 17.5481 14 19.3141C14 20.9271 12.9624 21.6331 12.1074 21.9411C11.9647 21.9928 11.8184 22.0086 11.6777 21.9957ZM3.5 15.1774C2.672 15.1774 2 14.5054 2 13.6774V4.67739C2 3.84939 2.672 3.17739 3.5 3.17739C4.328 3.17739 5 3.84939 5 4.67739V13.6774C5 14.5054 4.328 15.1774 3.5 15.1774Z",fill:"#2D87F3"})}),(0,a.Y)(Y.T,{size:"p3",color:S.w.colors.gray800,children:i({id:"feedback.status.noRelated",defaultMessage:"This article doesn't have the information I'm looking for"})})]}),(0,a.Y)(eA.TextArea,{w:"100%",placeholder:i({id:"feedback.message.placeholder",defaultMessage:"Please tell us what was incorrect"}),...v.getInputProps("message")}),(0,a.FD)("div",{className:"feedback-disclaimer",children:[(0,a.Y)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",style:{width:"32px"},children:(0,a.Y)("path",{d:"M14.8256 12.3007L8.96093 2.544C8.75626 2.20333 8.39693 2 7.9996 2C7.60226 2 7.24293 2.20333 7.03893 2.54333L1.1736 12.3007C0.965597 12.6467 0.960264 13.0793 1.15893 13.4307C1.35693 13.782 1.73093 14 2.13493 14H13.8649C14.2683 14 14.6429 13.782 14.8409 13.4307C15.0396 13.0793 15.0336 12.6467 14.8256 12.3007ZM8.33293 12H7.66626C7.48226 12 7.33293 11.8507 7.33293 11.6667V11C7.33293 10.816 7.48226 10.6667 7.66626 10.6667H8.33293C8.51693 10.6667 8.66626 10.816 8.66626 11V11.6667C8.66626 11.8507 8.51693 12 8.33293 12ZM7.9996 9.33333C7.6316 9.33333 7.33293 9.03467 7.33293 8.66667V6.66667C7.33293 6.29867 7.6316 6 7.9996 6C8.3676 6 8.66626 6.29867 8.66626 6.66667V8.66667C8.66626 9.03467 8.3676 9.33333 7.9996 9.33333Z",fill:"#FE921D"})}),(0,a.Y)(Y.T,{size:"n1",color:S.w.colors.gray600,children:i({id:"articlePage.disclaimer",defaultMessage:"Hello Health Group does not provide medical advice, diagnosis or treatment."})})]}),(0,a.Y)(eS.B,{size:"lg",color:"primary",isBlock:g,children:i({id:"feedback.submit",defaultMessage:"Submit"})})]})};(i=o||(o={}))[i.Inaccurate=1]="Inaccurate",i[i.NoRelated=2]="NoRelated",i[i.Other=3]="Other";let ArticleFeedback=e=>{let{formatMessage:t}=(0,s.A)(),{currentArticle:n,isLiked:i,isDisliked:o,setIsLiked:r}=(0,ez.NP)(e=>({currentArticle:e.currentArticle,isLiked:e.isLiked,isDisliked:e.isDisliked,setIsLiked:e.setIsLiked}),u.x),{state:{isLoggedIn:d}}=(0,l.useContext)(eI.B),{locale:c}=(0,eL.$)(),[g,b]=(0,l.useState)(!1),v=(0,eB.a)(),f=(0,eN.m)();if(i||o)return null;let handleReaction=async e=>{if(e===eE.o.DisLike){b(!0);return}if(d){var t;let e=await (0,p.callApiNew)(h.PATHS.SSO.SSO_FEEDBACK,{method:"POST",data:{post_id:null==n?void 0:n.id,feedback:eE.o.Like}},"sso");(null==e?void 0:null===(t=e._data)||void 0===t?void 0:t.total)&&r(!0)}else(0,eD.YA)("".concat((0,m.oN)(c)).concat(null==n?void 0:n.permalink,"?feedback=").concat(eE.o.Like,"&postId=").concat(null==n?void 0:n.id),"reaction")};return(0,a.FD)(a.FK,{children:[(0,a.FD)(eR,{...e,children:[(0,a.Y)(Y.T,{size:"s2",type:"semiBold",children:t({id:"feedback.title",defaultMessage:"Was this article helpful?"})}),(0,a.FD)("div",{className:"button-group",children:[(0,a.Y)(eS.B,{size:"sm",color:"transparent",onClick:()=>handleReaction(eE.o.Like),"data-event-category":"FeedbackIcon","data-event-action":"Yes","data-event-label":f,className:"pointer-event-child-none",children:(0,a.FD)("svg",{width:"49",height:"48",viewBox:"0 0 49 48",fill:"none",children:[(0,a.Y)("rect",{x:"0.5",width:"48",height:"48",rx:"4",fill:"#00CB8A"}),(0,a.Y)("path",{d:"M32.4803 17.9902C32.2205 17.9979 31.9739 18.1065 31.7928 18.2929L21.4998 28.5859L18.2069 25.2929C18.1147 25.1969 18.0044 25.1203 17.8822 25.0675C17.7601 25.0147 17.6287 24.9869 17.4956 24.9855C17.3626 24.9842 17.2306 25.0094 17.1074 25.0597C16.9843 25.1099 16.8724 25.1843 16.7783 25.2784C16.6842 25.3725 16.6098 25.4844 16.5595 25.6075C16.5093 25.7307 16.484 25.8627 16.4854 25.9957C16.4868 26.1288 16.5146 26.2602 16.5674 26.3823C16.6202 26.5045 16.6968 26.6148 16.7928 26.707L20.7928 30.707C20.9804 30.8944 21.2347 30.9998 21.4998 30.9998C21.765 30.9998 22.0193 30.8944 22.2069 30.707L33.2069 19.707C33.3514 19.5665 33.4501 19.3857 33.49 19.1882C33.53 18.9906 33.5093 18.7857 33.4308 18.6001C33.3523 18.4145 33.2195 18.2569 33.0499 18.1481C32.8803 18.0393 32.6817 17.9842 32.4803 17.9902Z",fill:"white"})]})}),(0,a.Y)(eS.B,{size:"sm",color:"transparent",onClick:()=>handleReaction(eE.o.DisLike),"data-event-category":"FeedbackIcon","data-event-action":"No","data-event-label":f,className:"pointer-event-child-none",children:(0,a.FD)("svg",{width:"49",height:"48",viewBox:"0 0 49 48",fill:"none",children:[(0,a.Y)("rect",{x:"0.5",width:"48",height:"48",rx:"4",fill:"#FF6F4D"}),(0,a.Y)("path",{d:"M18.4901 16.9902C18.2911 16.9902 18.0967 17.0496 17.9317 17.1607C17.7667 17.2718 17.6386 17.4296 17.5637 17.614C17.4889 17.7983 17.4707 18.0007 17.5115 18.1954C17.5523 18.3901 17.6502 18.5682 17.7928 18.707L23.0858 23.9999L17.7928 29.2929C17.6968 29.3851 17.6202 29.4954 17.5674 29.6176C17.5146 29.7397 17.4868 29.8711 17.4854 30.0042C17.484 30.1372 17.5093 30.2692 17.5595 30.3924C17.6098 30.5155 17.6842 30.6274 17.7783 30.7215C17.8724 30.8156 17.9843 30.89 18.1074 30.9402C18.2306 30.9905 18.3626 31.0157 18.4956 31.0144C18.6287 31.013 18.7601 30.9851 18.8822 30.9324C19.0044 30.8796 19.1147 30.803 19.2069 30.707L24.4998 25.414L29.7928 30.707C29.885 30.803 29.9953 30.8796 30.1175 30.9324C30.2396 30.9851 30.371 31.013 30.5041 31.0144C30.6371 31.0157 30.7691 30.9905 30.8922 30.9402C31.0154 30.89 31.1273 30.8156 31.2214 30.7215C31.3155 30.6274 31.3899 30.5155 31.4401 30.3924C31.4904 30.2692 31.5156 30.1372 31.5143 30.0042C31.5129 29.8711 31.485 29.7397 31.4323 29.6176C31.3795 29.4954 31.3028 29.3851 31.2069 29.2929L25.9139 23.9999L31.2069 18.707C31.3514 18.5665 31.4501 18.3857 31.49 18.1882C31.53 17.9906 31.5093 17.7857 31.4308 17.6001C31.3523 17.4145 31.2195 17.2569 31.0499 17.1481C30.8803 17.0393 30.6817 16.9842 30.4803 16.9902C30.2205 16.9979 29.9739 17.1065 29.7928 17.2929L24.4998 22.5859L19.2069 17.2929C19.1137 17.1971 19.0022 17.121 18.8791 17.069C18.756 17.017 18.6237 16.9902 18.4901 16.9902Z",fill:"white"})]})})]})]}),v?(0,a.Y)(eY.D,{title:t({id:"feedback.modal.title",defaultMessage:"How can we improve it?"}),open:g,onClose:()=>b(!1),placement:"bottom",children:(0,a.Y)(FeedbackForm,{onSubmit:()=>b(!1)},Number(g))}):(0,a.Y)(eA.Modal,{size:500,opened:g,onClose:()=>b(!1),centered:!0,title:(0,a.Y)(Y.T,{size:"s2",type:"semiBold",children:t({id:"feedback.modal.title",defaultMessage:"How can we improve it?"})}),children:(0,a.Y)(FeedbackForm,{onSubmit:()=>b(!1)},Number(g))})]})};var eW=n("6UTK"),eV=n("qsKI"),eG=n("+u84"),eK=n("90i8"),ej=n("v8Gc"),eq=n("vH4S"),eQ=n("VoJx"),eZ=n.n(eQ),eJ=n("jWy7"),eX=n("8hcU"),e$=n("akdD"),e0=n("rxll"),e1=n("IVOH"),e2=n("+gcw");let e3=eZ()(()=>Promise.all([n.e(8238),n.e(3716)]).then(n.bind(n,"9pjS")).then(e=>e.ArticleAudioPlayer),{loadableGenerated:{webpack:()=>["9pjS"]}});var articleActionButtonGroup=e=>{let{articleUrl:t,onAskDoctorClick:n,turnOffComment:i=!1}=e,{locale:o}=(0,eL.$)(),r=(0,eN.m)();(0,eX.A)();let{totalComment:s,currentArticle:d}=(0,ez.NP)(e=>({currentArticle:e.currentArticle,totalComment:e.totalComment,cycleFontSize:e.cycleFontSize}),u.x),c=(0,e$.w)(e=>e.isNavSponsor,u.x),p=(0,l.useMemo)(()=>(0,m.oN)(o),[o]),h=(0,l.useMemo)(()=>eG.a.includes(o),[o]);return(0,l.useEffect)(()=>{let e=document.querySelector("footer");if(e)return e.classList.add("js-with-article-act-btn-group"),()=>{e.classList.remove("js-with-article-act-btn-group")}},[]),(0,a.FD)(e1.D,{className:"action-bar","data-is-nav-sponsor":c,children:[e0.fp.includes(o)&&(0,a.Y)(eq.Box,{sx:{paddingBottom:8},children:(0,a.Y)(eJ.A,{size:"md",children:(0,a.Y)(eJ.A.IconChart,{dataTracking:{dataEventCategory:"AQI",dataEventAction:"AQI icon click",dataEventLabel:"AQI open pop-up"}})})}),h&&!i&&(0,a.FD)(eq.Box,{className:"w-10 h-10 p-2 relative cursor-pointer rounded-lg hover:bg-gray100","data-event-category":"Comments","data-event-action":"Icon Click","data-event-label":r,onClick:n,children:[(0,a.Y)(eK.A,{}),Number(s)>0&&(0,a.Y)(eA.Text,{size:"p4",className:"absolute top-2 left-8",color:S.w.colors.gray600,children:s})]}),(0,a.Y)(e3,{articleId:null==d?void 0:d.id,articleContent:null==d?void 0:d.postContent,articleEnableAudio:null==d?void 0:d.enableAudio,articleTurnOffArticleVoice:null==d?void 0:d.turnOffArticleVoice,isPremium:null==d?void 0:d.isPremium,isSidebar:!0}),y.rN.includes(o)&&(0,a.FD)(eq.Box,{component:"a",href:p+y.q0,"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 rounded-lg hover:bg-gray100 pointer-event-child-none",children:[(0,a.Y)(ej.A,{size:24,color:"#2F8AF2"}),(0,a.Y)(eA.Text,{size:"p5",className:"!text-[10px]",weight:"halfBold",as:"span",color:"#49A8EA",translate:"no",children:"AI"})]}),(0,a.Y)(eq.Box,{className:"h-[1px] w-6 bg-gray200 my-4 mx-auto share-popup-line"}),(0,a.Y)(e2.M.AsideNav,{shareUrl:t,iconSize:20,touchSize:40})]})},e4=n("19xK"),e6=n("fY7c"),e5=n("7ZMO"),e8=n("dJM9"),e9=n("2Aas"),e7=n("lXMR"),te=n("W1kr"),tt=n("NVrP"),tn=n("efBK"),ti=n("wZxR"),to=n("/2Zb"),ta=n("ZUAm"),tl=n("NwNR"),tr=n("BlBm"),ts=n("UQ/i"),td=n("P7Ch"),tc=n("/sjq"),tu=n("VBYX"),tp=n("CWxQ"),th=n("U6DU");let _sanitize=e=>c()(e,{allowedTags:!1,allowedAttributes:!1,allowVulnerableTags:!0});var superContent=e=>{var t,n,i,o,d,c;let{isMobile:f,spotlight:x,isSponsored:w}=e,{formatMessage:C}=(0,s.A)(),{locale:M}=(0,eL.$)(),k=tc.domainLocales[M],{state:{userInfo:T,isLoggedIn:S},dispatch:Y}=(0,l.useContext)(eI.B),{bookmarkIds:A,setIsLiked:D,setIsDisliked:N,currentArticle:B,fontSize:L,addToBookmark:E,removeBookmark:I}=(0,ez.NP)(e=>({bookmarkIds:e.bookmarkIds,setIsLiked:e.setIsLiked,setIsDisliked:e.setIsDisliked,currentArticle:e.currentArticle,fontSize:e.fontSize,addToBookmark:e.addToBookmark,removeBookmark:e.removeBookmark}),u.x);(0,l.useEffect)(()=>{let fetchReaction=async()=>{let e=S?await (0,p.callApiNew)(h.PATHS.SSO.SSO_FEEDBACK_USER,{method:"POST",data:{post_id:null==x?void 0:x.id}},"sso"):void 0;if((null==e?void 0:e._data)&&S){var t,n;D(!!(null==e?void 0:null===(t=e._data)||void 0===t?void 0:t.liked)),N(!!(null==e?void 0:null===(n=e._data)||void 0===n?void 0:n.dislike))}};fetchReaction()},[S,null==x?void 0:x.id]);let formatSpotlightContent=e=>{let t=[];return e.split("\n").join("").split(/(\[graph\-bar\-chart\])|(\[health\-rendership\-survey\])|(\[obesity\-percentages\])|(\[graph\-most\-viewed\-categories\])|(\[embed\-health\-tool\-[^\]]+\])/).filter(e=>!!e).forEach(e=>{if("[graph-bar-chart]"===e)return t.push({html:"",graphBarChart:{direction:"vertical"}});if("[health-rendership-survey]"===e)return t.push({html:"",healthRenderShip:!0});if("[obesity-percentages]"===e)return t.push({html:"",obesity:!0});if("[graph-most-viewed-categories]"===e)return t.push({html:"",mostViewedCategories:!0});if("[embed-health-tool-bmi]"===e)return t.push({html:"",heathTool:"bmi"});if("[embed-health-tool-bmr]"===e)return t.push({html:"",heathTool:"bmr"});if("[embed-health-tool-ovulation]"===e)return t.push({html:"",heathTool:"ovulation"});if("[embed-health-tool-due-date]"===e)return t.push({html:"",heathTool:"due-date"});if("[embed-health-tool-heart-rate]"===e)return t.push({html:"",heathTool:"heart-rate"});if("[embed-health-tool-pregnancy-weight-gain]"===e)return t.push({html:"",heathTool:"pregnancy-weight-gain"});if("[embed-health-tool-child-growth-chart]"===e)return t.push({html:"",heathTool:"child-growth-chart"});if(e.includes("[article-yoast-faqs]"))return t.push({html:"",faqs:!0});let n=(0,td.C4)(e),i="";n.forEach(e=>{if(i+=e,e.includes('class="flat-after-first-paragraph')&&(i&&(t.push({html:_sanitize(i)}),i=""),t.push({html:"",isPremium:!0})),e.includes('data-embed-type="carousel"')){var n;let o=parseInt((null===(n=/data-id="(.*?)"/gi.exec(e))||void 0===n?void 0:n[1])||"");i&&(t.push({html:_sanitize(i)}),i=""),t.push({html:"",carousel:{id:o}});return}}),i&&t.push({html:_sanitize(i)})}),t},z=(0,l.useMemo)(()=>formatSpotlightContent(x.content),[]),F=null==A?void 0:A.includes(null==x?void 0:x.id),bookmarkArticle=async()=>{let{id:e}=B||{};if(e&&(null==T?void 0:T.id)){if(F){let t=await (0,p.callApiNew)(h.PATHS.SSO.DELETE_BOOKMARK,{method:"DELETE",data:{host_name:k,post_ids:[e]}},"sso");(null==t?void 0:t._status)===1&&(I(e),Y({type:tp.Q.REMOVE_BOOKMARKS,payload:{bookmarks:[e],bookmarkId:e}}))}else{let t=await (0,p.callApiNew)(h.PATHS.SSO.CREATE_BOOKMARK,{method:"POST",data:{host_name:k,post_ids:[e]}},"sso");(null==t?void 0:t._status)===1&&(E(e),Y({type:tp.Q.ADD_BOOKMARKS,payload:{bookmarks:[e],bookmarkId:e}}))}}else{let t=window.location.href,n=encodeURIComponent("".concat(t).concat(t.includes("?")?"&":"?","source=bookmark,").concat(e));y.dX?r.u.getState().triggerLogin({source:"source=bookmark,".concat(e)}):window.location.href=y.Km.NEXT_PUBLIC_SSO?"".concat(y.a5,"?returnUrl=").concat(n):t}},H=(0,th.oq)({countryAdTag:(0,th._3)(M,{isMobile:f}),contentAdTag:{result:"Spotlight",redundant:!0}}),O=(0,tu.N)(x.mastheadAdPlacement),P=w?f?105:113:64,R=(0,l.useMemo)(()=>z.findIndex(e=>null==e?void 0:e.isPremium),[z]),_=M===eE.ne.Vietnam||!x.isPremium||R<0||S;return(0,a.FD)(a.FK,{children:[(0,a.FD)(tr.Zw,{locale:M,children:[(0,a.Y)(v.w,{children:(0,a.Y)(tl.p3,{adUnitPath:H,className:"spotlight-supercontent-masthead ".concat(null==x?void 0:x.type,"-masthead"),hasPlaceholder:O,containerClassName:"z-[11]"})}),(0,a.Y)(AnimationBanner,{isMobile:f,banners:(null===(t=null==x?void 0:x.banner)||void 0===t?void 0:t.items)||[],topbarHeight:P,isPremium:!_,applyH1:!0}),null==z?void 0:z.map((e,t)=>{var n;let i=R>-1&&t>R&&!_;return e.isPremium&&!_?(0,a.Y)(b.PremiumContentBanner,{isPortal:!1}):(0,a.FD)("div",{"data-hidden":i,style:i?{height:0,opacity:0,transition:"opacity 0.5s ease-in-out",pointerEvents:"none",overflow:"hidden"}:{opacity:1,transition:"opacity 0.5s ease-in-out"},children:[(0,a.Y)(g.m,{className:"super-content-container",children:(0,a.Y)(ts.r6,{className:"body-content article-content-wrapper","data-size":L||"small",dangerouslySetInnerHTML:{__html:e.html}})}),(null==e?void 0:e.graphBarChart)?(0,a.Y)(g.m,{className:"super-content-container",children:(0,a.Y)(AnimationChart,{isMobile:f,title:C({id:"superContent.chart.healthTool.title",defaultMessage:"Top health topics Asians look for the most"}),description:C({id:"superContent.chart.healthTool.description",defaultMessage:"Based on over 9,000 surveyed across Asia in the Hello Health Readership Survey from June to November 2020"})})}):null,(null==e?void 0:e.healthRenderShip)?(0,a.Y)(HealthRendership,{isMobile:f,topbarHeight:P}):null,(null==e?void 0:e.obesity)?(0,a.Y)(ObesityPercentage,{isMobile:f,topbarHeight:P}):null,(null==e?void 0:e.faqs)?(0,a.Y)(g.m,{style:{maxWidth:"768px",textAlign:"justify",marginBottom:"80px"},children:(0,a.Y)(eW.CollapsibleFaqs,{isMobile:f,posts:null==x?void 0:x.faqs,title:null==x?void 0:x.faqsTitle})}):null,(null==e?void 0:e.mostViewedCategories)?(0,a.Y)(MostViewedCategoriesChart,{isMobile:f,topbarHeight:P}):null,(null==e?void 0:e.heathTool)==="bmi"?(0,a.Y)(g.m,{className:"health-tool-container",children:(0,a.Y)(e9.BMICardWrapper,{articleCategories:null,positionType:"spotlight"})}):null,(null==e?void 0:e.heathTool)==="bmr"?(0,a.Y)(g.m,{className:"health-tool-container",children:(0,a.Y)(e7.BMRCardWrapper,{articleCategories:null,positionType:"spotlight"})}):null,(null==e?void 0:e.heathTool)==="ovulation"?(0,a.Y)(g.m,{className:"health-tool-container",children:(0,a.Y)(tt.OvulationCardWrapper,{})}):null,(null==e?void 0:e.heathTool)==="pregnancy-weight-gain"?(0,a.Y)(g.m,{className:"health-tool-container",children:(0,a.Y)(tn.PWGCardWrapper,{})}):null,(null==e?void 0:e.heathTool)==="heart-rate"?(0,a.Y)(g.m,{className:"health-tool-container",children:(0,a.Y)(ti.THRCardWrapper,{})}):null,(null==e?void 0:e.heathTool)==="due-date"?(0,a.Y)(g.m,{className:"health-tool-container",children:(0,a.Y)(te.DueDateCardWrapper,{})}):null,(null==e?void 0:e.heathTool)==="vaccination-tool"?(0,a.Y)(g.m,{className:"health-tool-container",children:(0,a.Y)(e5.BabyVaccinationCard,{})}):null,(null==e?void 0:e.heathTool)==="baby-poop-checking"?(0,a.Y)(g.m,{className:"health-tool-container",children:(0,a.Y)(e6.BabyPoopCard,{})}):null,(null==e?void 0:e.heathTool)==="child-growth-chart"?(0,a.Y)(g.m,{className:"health-tool-container",children:(0,a.Y)(e8.BabyGrowthCard,{})}):null,(null==e?void 0:e.carousel)&&(0,a.Y)(g.m,{className:"health-concern-container",children:(0,a.Y)(to.HealthConcern,{isMobile:f,id:null==e?void 0:null===(n=e.carousel)||void 0===n?void 0:n.id})})]},t)}),(0,a.Y)(g.m,{style:{maxWidth:"768px",textAlign:"justify",marginBlock:"16px"},children:(0,a.Y)(ArticleFeedback,{})}),(0,a.Y)(tr.mo,{children:f?(0,a.Y)(ta.default,{}):(0,a.Y)(articleActionButtonGroup,{articleUrl:"".concat((0,m.oN)(M)).concat(null==x?void 0:x.permalink),isBookmarked:F,onBookmarkClick:bookmarkArticle,turnOffComment:!0})})]}),(0,a.FD)(g.m,{style:{maxWidth:"768px",textAlign:"justify",marginBottom:"80px"},children:[(null==x?void 0:x.community)&&(0,a.Y)(e4.EmbeddedCommunity,{isMobile:f,communityId:null==x?void 0:null===(n=x.community)||void 0===n?void 0:n.id,titleMember:null==x?void 0:null===(i=x.community)||void 0===i?void 0:i.memberTitle,titleGuest:null==x?void 0:null===(o=x.community)||void 0===o?void 0:o.guestTitle,descriptionMember:null==x?void 0:null===(d=x.community)||void 0===d?void 0:d.memberDesc,descriptionGuest:null==x?void 0:null===(c=x.community)||void 0===c?void 0:c.guestDesc}),x.sources&&(0,a.Y)(eV.j,{sources:x.sources})]})]})}},VBYX:function(e,t,n){"use strict";n.d(t,{N:function(){return useMastheadAdEnable}});var i=n("+OUp"),o=n("a5L+");function useMastheadAdEnable(e,t){let n=(0,o.a)(),{enableMobile:a,enableDesktop:l,enableExcludeSponsorMobile:r,enableExcludeSponsorDesktop:s}=e||{};return(0,i.useMemo)(()=>n?!!a&&(!r||!t):!!l&&(!s||!t),[n,a,r,l,s,t])}},ErZK:function(e,t,n){"use strict";n.d(t,{Ek:function(){return o},WJ:function(){return i},e7:function(){return a},jf:function(){return s},oP:function(){return d},tK:function(){return r},u0:function(){return l}});let i="temp_baby_growth",o="baby_growth_data",a="temp_baby_vaccination",l="baby_vaccination_data",r="inskin_ovulation",s="service_connection_page",d="snp-latest-access"},imPi:function(e,t,n){"use strict";n.d(t,{$:function(){return r}});var i=n("Sn6X"),o=n.n(i),a=n("KYiY"),l=n.n(a);let r=o().extend(l())},"69Ac":function(e,t,n){"use strict";n.d(t,{OF:function(){return cleanLink},fQ:function(){return normalizeText},jt:function(){return wrapPlainTextAsHtmlParagraph}}),n("/sjq");let escapeHtml=e=>e.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""),wrapPlainTextAsHtmlParagraph=e=>"".concat(escapeHtml(e.trim()),"
");function cleanLink(e){return e.split("?")[0].split("/").filter((e,t)=>0===t||!!e).join("/")+"/"}function normalizeText(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim()}},"NLe/":function(e,t,n){"use strict";n.d(t,{A3:function(){return isCareLink},Ny:function(){return formatUrlWithEncrypedGa},UQ:function(){return configCdnImageSize},WZ:function(){return getDetailPageUrl}});var i=n("+u84"),o=n("9brV");function formatUrlWithEncrypedGa(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!n||!t.startsWith("http")||!n)return t;try{e=new URL(t)}catch(e){return t}return e.searchParams.set("hhgclid",n),e.toString()}function configCdnImageSize(e,t){if(function(e,t){try{return new URL(e,void 0),!0}catch(e){return!1}}(e)){let n=window.devicePixelRatio||1,i=new URL(e);i.searchParams.set("w",(t.width*n).toString());let o=RegExp("-\\d+x\\d+(?=\\.\\w+$)","g"),a=i.pathname.replace(o,"");return"".concat(i.origin).concat(a).concat(i.search)}return e}let a={[i.r.VACCINE]:"VACCINATIONS",[i.r.IVF]:"IVF",[i.r.EGG_FREEZING]:"EGG_FREEZING",[i.r.HEALTH_SCREENER]:"HEALTH_SCREENER"},getDetailPageUrl=function(e,t){var n;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.U2;if(!t)return o.Jp;let l=a[e],r=null===(n=o.ix[t])||void 0===n?void 0:n[l];return r?"/".concat(i).concat("vi-VN"===t?"/dich-vu":"","/").concat(r,"/"):o.Jp};function isCareLink(e){if(!e)return!1;let t=function(e){if(!e)return"";try{let t=new URL(e);return t.pathname}catch(n){let[t]=e.split("?")[0].split("#");return t}}(e);return t.startsWith("/care/")}},d30B:function(e,t,n){var i=n("+OUp");function Info(e){return i.createElement("svg",e,[i.createElement("path",{d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z",fill:"#2D87F3",key:0}),i.createElement("path",{d:"M8 11V8",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:1}),i.createElement("path",{d:"M8 5H8.01",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:2})])}Info.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.exports=Info,Info.default=Info},hvR8:function(e,t,n){var i=n("+OUp");function Danger(e){return i.createElement("svg",e,[i.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"#262626",key:0}),i.createElement("path",{d:"M14.8286 9.17163L9.17176 14.8285",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:1}),i.createElement("path",{d:"M9.17139 9.17163L14.8282 14.8285",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:2})])}Danger.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.exports=Danger,Danger.default=Danger},X1xk:function(e,t,n){var i=n("+OUp");function Success(e){return i.createElement("svg",e,[i.createElement("path",{d:"M10.0001 18.3334C14.6025 18.3334 18.3334 14.6024 18.3334 10C18.3334 5.39765 14.6025 1.66669 10.0001 1.66669C5.39771 1.66669 1.66675 5.39765 1.66675 10C1.66675 14.6024 5.39771 18.3334 10.0001 18.3334Z",fill:"#00B16A",key:0}),i.createElement("path",{d:"M13.8333 7.5L8.33325 12.5L5.83325 10.2273",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:1})])}Success.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.exports=Success,Success.default=Success},l0B8:function(e,t,n){var i=n("+OUp");function Warning(e){return i.createElement("svg",e,i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 1.66666C5.4 1.66666 1.66667 5.39999 1.66667 9.99999C1.66667 14.6 5.4 18.3333 10 18.3333C14.6 18.3333 18.3333 14.6 18.3333 9.99999C18.3333 5.39999 14.6 1.66666 10 1.66666ZM10 10.8333C9.54167 10.8333 9.16667 10.4583 9.16667 9.99999V6.66666C9.16667 6.20832 9.54167 5.83332 10 5.83332C10.4583 5.83332 10.8333 6.20832 10.8333 6.66666V9.99999C10.8333 10.4583 10.4583 10.8333 10 10.8333ZM9.16667 12.5V14.1667H10.8333V12.5H9.16667Z",fill:"#FE921D"}))}Warning.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.exports=Warning,Warning.default=Warning}}]);