(self.webpackChunkhhgDiscoverV1=self.webpackChunkhhgDiscoverV1||[]).push([[3094,4841,7445,8345],{q6HN:function(e,t,n){"use strict";n.d(t,{m:function(){return Container}});var i=n("BGKE"),o=n("TSYQ"),a=n.n(o);let Container=e=>{let{className:t,isFluid:n,...o}=e;return(0,i.Y)("div",{className:a()("hhg-page-container",t,{fluid:n}),...o})}},johO:function(e,t,n){"use strict";n.d(t,{R:function(){return Loading}});var i=n("BGKE"),o=n("tuDO"),a=n("dDsW"),l=n("rBCA");let r=(0,l.A)("div",{target:"e1tazl0y0"})("display:flex;align-items:center;justify-content:center;padding:1em;"),Loading=e=>{let{className:t,size:n="md"}=e,{formatMessage:l}=(0,a.A)(),s=l({id:"player.loading",defaultMessage:"Loading"});return(0,i.Y)(r,{className:t,children:(0,i.Y)(o.B,{size:n,color:"transparent",isLoading:!0,children:s})})}},"4jPg":function(e,t,n){"use strict";n.r(t),n.d(t,{PremiumBadge:function(){return d},_PremiumBadge:function(){return _PremiumBadge}});var i=n("BGKE"),o=n("+OUp"),a=n.n(o),l=n("iBNF"),r=n("+YhV"),s=n("P+HS");let _PremiumBadge=e=>(0,i.Y)("div",{...e,children:(0,i.Y)(s.Badge,{styles:{root:{height:"30px",padding:"4px 10px",backgroundColor:l.w.colors.yellow50},inner:{textTransform:"initial"},leftSection:{lineHeight:"initial",display:"flex",alignItems:"center"}},size:"lg",radius:"xl",leftSection:(0,i.FD)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,i.Y)("circle",{cx:"10",cy:"10",r:"10",fill:"#FE921D"}),(0,i.Y)("path",{d:"M10 4.75C9.84529 4.75 9.69691 4.81146 9.58752 4.92085C9.47812 5.03025 9.41666 5.17862 9.41666 5.33333C9.41654 5.42622 9.4386 5.51778 9.48101 5.60042C9.52342 5.68306 9.58495 5.75437 9.66048 5.80843L7.86832 8.31722L4.71923 7.2679C4.73935 7.20844 4.74974 7.14611 4.74999 7.08333C4.74999 6.92862 4.68854 6.78025 4.57914 6.67085C4.46974 6.56146 4.32137 6.5 4.16666 6.5C4.01195 6.5 3.86358 6.56146 3.75418 6.67085C3.64479 6.78025 3.58333 6.92862 3.58333 7.08333C3.58333 7.23804 3.64479 7.38642 3.75418 7.49581C3.86358 7.60521 4.01195 7.66667 4.16666 7.66667C4.20923 7.66636 4.25164 7.66139 4.29313 7.65186L5.13053 11.4196C5.24895 11.9533 5.72213 12.3333 6.26871 12.3333H13.7301C14.2767 12.3333 14.751 11.9533 14.8695 11.4196L15.7069 7.65299C15.7484 7.66215 15.7908 7.66673 15.8333 7.66667C15.988 7.66667 16.1364 7.60521 16.2458 7.49581C16.3552 7.38642 16.4167 7.23804 16.4167 7.08333C16.4167 6.92862 16.3552 6.78025 16.2458 6.67085C16.1364 6.56146 15.988 6.5 15.8333 6.5C15.6786 6.5 15.5302 6.56146 15.4208 6.67085C15.3115 6.78025 15.25 6.92862 15.25 7.08333C15.2503 7.14611 15.2606 7.20844 15.2808 7.2679L12.1317 8.31722L10.3384 5.80729C10.414 5.75347 10.4756 5.68239 10.5182 5.59996C10.5608 5.51753 10.5831 5.42612 10.5833 5.33333C10.5833 5.17862 10.5219 5.03025 10.4125 4.92085C10.3031 4.81146 10.1547 4.75 10 4.75V4.75ZM5.91666 13.5C5.59466 13.5 5.33333 13.7613 5.33333 14.0833C5.33333 14.4053 5.59466 14.6667 5.91666 14.6667H14.0833C14.4053 14.6667 14.6667 14.4053 14.6667 14.0833C14.6667 13.7613 14.4053 13.5 14.0833 13.5H5.91666Z",fill:"white"})]}),children:(0,i.Y)(r.T,{size:"s4",type:"semiBold",color:l.w.colors.yellow800,children:"Premium"})})}),d=a().memo(_PremiumBadge)},sZMt:function(e,t,n){"use strict";n.r(t),n.d(t,{PremiumContentBanner:function(){return PremiumContentBanner}});var i=n("BGKE"),o=n("U+Ez"),a=n("+YhV"),l=n("tuDO"),r=n("vH4S"),s=n("dDsW"),d=n("Pvbb"),c=n("wA0V"),u=n("rBCA"),p=n("iBNF"),h=n("dL+D"),m=n("CL9C");let g=(0,u.A)("div",{target:"evyl24r0"})("&[data-portal='false']{/* position:absolute;*/\n width:100%;padding:32px 24px;position:relative;}&[data-portal='true']{position:fixed;bottom:0;left:0;right:0;z-index:",Number(p.w.zIndexes.zIndex100)-1,";transform:translate3d(0,100%,0);animation:",h.s," 500ms linear 2s forwards;padding-bottom:32px;}background:",null===p.w||void 0===p.w?void 0:p.w.colors.white,";display:flex;flex-direction:column;justify-content:center;align-items:center;gap:24px;min-height:150px;text-align:center;&::before{content:'';position:absolute;bottom:100%;height:100px;left:0;background-image:linear-gradient(180deg,#fff0,#fff);width:100%;opacity:0;animation:",h.h," 500ms ease-in-out 2s forwards;}.btn{span{width:max-content;}}.close-btn{cursor:pointer;position:absolute;top:8px;right:8px;background:#ffffff;width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;}",m.M.mbDown,"{/* bottom:44px;*/\n &[data-portal='false']{width:auto;}&[data-portal='true']{bottom:56px;border-bottom:2px solid ",null===p.w||void 0===p.w?void 0:p.w.colors.primaryBase,";}&::before{height:60px;}align-items:center;flex-direction:column;text-align:center;padding:16px;gap:12px;.btn{align-self:center;}}"),_PremiumContentBanner=e=>{let{haveClose:t=!1,onClose:n,...r}=e,{formatMessage:u}=(0,s.A)(),toSSO=async()=>{(0,d.YA)(window.location.href)},p=(0,c.m)();return(0,i.FD)(g,{...r,children:[t&&(0,i.Y)("div",{className:"close-btn",role:"button",onClick:n,tabIndex:0,children:(0,i.Y)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,i.Y)("path",{d:"M3.99403 3.32719C3.86141 3.32723 3.73181 3.36681 3.62181 3.44089C3.5118 3.51497 3.42638 3.62017 3.37648 3.74304C3.32658 3.86592 3.31445 4.00088 3.34165 4.13068C3.36885 4.26049 3.43415 4.37923 3.52919 4.47173L7.05784 8.00037L3.52919 11.529C3.46521 11.5904 3.41413 11.664 3.37894 11.7454C3.34375 11.8269 3.32516 11.9145 3.32425 12.0032C3.32335 12.0919 3.34015 12.1799 3.37368 12.262C3.40721 12.3441 3.45678 12.4187 3.5195 12.4814C3.58222 12.5441 3.65682 12.5937 3.73894 12.6272C3.82106 12.6608 3.90904 12.6776 3.99774 12.6767C4.08643 12.6758 4.17405 12.6572 4.25547 12.622C4.33689 12.5868 4.41047 12.5357 4.4719 12.4717L8.00054 8.94308L11.5292 12.4717C11.5906 12.5357 11.6642 12.5868 11.7456 12.622C11.827 12.6572 11.9147 12.6758 12.0034 12.6767C12.092 12.6776 12.18 12.6608 12.2622 12.6272C12.3443 12.5937 12.4189 12.5441 12.4816 12.4814C12.5443 12.4187 12.5939 12.3441 12.6274 12.262C12.6609 12.1799 12.6777 12.0919 12.6768 12.0032C12.6759 11.9145 12.6573 11.8269 12.6222 11.7454C12.587 11.664 12.5359 11.5904 12.4719 11.529L8.94325 8.00037L12.4719 4.47173C12.5682 4.37808 12.634 4.25752 12.6607 4.12584C12.6873 3.99416 12.6735 3.85751 12.6212 3.73378C12.5688 3.61006 12.4803 3.50504 12.3672 3.43249C12.2542 3.35993 12.1218 3.32323 11.9875 3.32719C11.8143 3.33235 11.6499 3.40474 11.5292 3.52902L8.00054 7.05766L4.4719 3.52902C4.40977 3.46515 4.33548 3.41439 4.2534 3.37973C4.17132 3.34506 4.08313 3.3272 3.99403 3.32719V3.32719Z",fill:"#595959"})})}),(0,i.FD)("svg",{width:"60",height:"60",viewBox:"0 0 60 60",fill:"none",children:[(0,i.Y)("circle",{cx:"30",cy:"30",r:"30",fill:"white"}),(0,i.Y)("circle",{cx:"30",cy:"30",r:"24",fill:"#FFF8E2"}),(0,i.Y)("circle",{cx:"30",cy:"30",r:"16",fill:"#FE921D"}),(0,i.Y)("path",{d:"M30 21C29.7348 21 29.4804 21.1054 29.2929 21.2929C29.1054 21.4804 29 21.7348 29 22C28.9998 22.1592 29.0376 22.3162 29.1103 22.4579C29.183 22.5995 29.2885 22.7218 29.418 22.8145L26.3457 27.1152L20.9473 25.3164C20.9818 25.2145 20.9996 25.1076 21 25C21 24.7348 20.8946 24.4804 20.7071 24.2929C20.5196 24.1054 20.2652 24 20 24C19.7348 24 19.4804 24.1054 19.2929 24.2929C19.1054 24.4804 19 24.7348 19 25C19 25.2652 19.1054 25.5196 19.2929 25.7071C19.4804 25.8946 19.7348 26 20 26C20.073 25.9995 20.1457 25.991 20.2168 25.9746L21.6523 32.4336C21.8553 33.3486 22.6665 34 23.6035 34H36.3945C37.3315 34 38.1447 33.3486 38.3477 32.4336L39.7832 25.9766C39.8544 25.9923 39.9271 26.0001 40 26C40.2652 26 40.5196 25.8946 40.7071 25.7071C40.8946 25.5196 41 25.2652 41 25C41 24.7348 40.8946 24.4804 40.7071 24.2929C40.5196 24.1054 40.2652 24 40 24C39.7348 24 39.4804 24.1054 39.2929 24.2929C39.1054 24.4804 39 24.7348 39 25C39.0004 25.1076 39.0182 25.2145 39.0527 25.3164L33.6543 27.1152L30.5801 22.8125C30.7096 22.7202 30.8153 22.5984 30.8884 22.4571C30.9614 22.3158 30.9997 22.1591 31 22C31 21.7348 30.8946 21.4804 30.7071 21.2929C30.5196 21.1054 30.2652 21 30 21ZM23 36C22.448 36 22 36.448 22 37C22 37.552 22.448 38 23 38H37C37.552 38 38 37.552 38 37C38 36.448 37.552 36 37 36H23Z",fill:"white"})]}),(0,i.FD)("div",{children:[(0,i.Y)(o.H,{tag:"h4",children:u({id:"premiumBanner.title",defaultMessage:"Get to the end of the story"})}),(0,i.Y)(a.T,{size:"p4",children:u({id:"premiumBanner.content",defaultMessage:"This article is available for the HelloBacsi member only. Please login or join now for getting the end of the story."})})]}),(0,i.Y)(l.B,{color:"primary",size:"md",className:"btn pointer-event-child-none",onClick:()=>toSSO(),"data-event-category":"Reading Full Text","data-event-action":"Click","data-event-label":p,children:u({id:"premiumBanner.button",defaultMessage:"Log in / Join Now"})})]})},PremiumContentBanner=e=>{let{isPortal:t=!0,...n}=e;return t?(0,i.Y)(r.Portal,{children:(0,i.Y)(_PremiumContentBanner,{"data-portal":t,...n})}):(0,i.Y)(_PremiumContentBanner,{"data-portal":t,...n})}},lNEE:function(e,t,n){"use strict";n.d(t,{f2:function(){return RichTextFormat},DK:function(){return hasRichTextContent}});var i=n("BGKE"),o=n("P+HS"),a=n("ns0B"),l=n.n(a),r=n("69Ac"),s=n("Wbba"),d=(0,n("vH4S").createStyles)(e=>({root:{whiteSpace:"normal","ol,ul":{marginLeft:30},ol:{listStyleType:"decimal"},ul:{listStyleType:"disc"},li:{margin:"10px 0"},a:{color:e.fn.primaryColor()},p:{marginTop:8,"&:first-child":{marginTop:0}},blockquote:{position:"relative",padding:24,"&::before":{position:"absolute",top:0,left:0,display:"block",width:16,height:16,content:"url(".concat(s.C.getAssetPath("/quote-left-small.svg"),")")},"&::after":{position:"absolute",bottom:0,right:0,display:"block",width:16,height:16,content:"url(".concat(s.C.getAssetPath("/quote-right-small.svg"),")")}}},rootWithLineClamp:{"& p":{marginTop:0,marginBottom:0}}}));let c=/<\/?[a-z][\s\S]*?>/i,hasRichTextContent=e=>{if(!(null==e?void 0:e.trim()))return!1;let t=e.replace(//gi," ").replace(/<[^>]+>/g,"").replace(/ /gi," ").trim();return t.length>0},prepareRichTextContent=e=>{if(!hasRichTextContent(e))return null;let t=e.trim();return c.test(t)?t:(0,r.jt)(t)},RichTextFormat=e=>{let{content:t,className:n,lineClamp:a,...r}=e,s=prepareRichTextContent(t),{classes:c,cx:u}=d(void 0,{name:"RichTextFormat"});if(!s)return null;if(void 0!==a&&a>0){let e=l()(s.replace(//gi," ").replace(/<\/?ul[^>]*>/gi,"").replace(/<\/?ol[^>]*>/gi,"").replace(/]*>/gi," • ").replace(/<\/li>/gi," ")).replace(/\s+/g," ").trim();return e?(0,i.Y)(o.Text,{...r,lineClamp:a,as:"div",className:u(n,c.root,c.rootWithLineClamp),children:e}):null}return(0,i.Y)(o.Text,{...r,as:"div",className:u(n,c.root),dangerouslySetInnerHTML:{__html:s}})}},SHon:function(e,t,n){"use strict";n.d(t,{W:function(){return HideAdsProvider},w:function(){return AdBlockContainer}});var i=n("BGKE"),o=n("+OUp"),a=n("AG8C"),l=n("VtAy");let r=(0,o.createContext)(!1),HideAdsProvider=e=>{let{hideAds:t,children:n}=e;return(0,i.Y)(r.Provider,{value:t,children:n})},AdBlockContainer=e=>{let{children:t,hidden:n=!1}=e,{locale:s}=(0,a.$)(),d=(0,o.useContext)(r),c=null===l.Km||void 0===l.Km?void 0:l.Km.includes(s);return c||n||d?null:(0,i.Y)(i.FK,{children:t})}},"6UTK":function(e,t,n){"use strict";n.r(t),n.d(t,{CollapsibleFaqs:function(){return CollapsibleFaqs}});var i=n("BGKE"),o=n("+OUp"),a=n("+YhV"),l=n("0q2u"),r=n("dDsW"),s=n("lNEE"),d=n("/sjq"),c=n("imPi");let useAnimatedHeightToggle=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,o.useEffect)(()=>{e.current&&(c.$.mutate(()=>{e.current&&(e.current.style.transition="all 200ms ease-out",e.current.style.overflow="hidden")}),t?c.$.mutate(()=>{e.current&&(e.current.style.height=e.current.scrollHeight+"px",e.current.style.opacity="1")}):c.$.mutate(()=>{e.current&&(e.current.style.height="0px",e.current.style.opacity="0.2")}))},[t])};var u=n("AG8C"),p=n("9brV"),h=n("rBCA"),m=n("iBNF"),g=n("CL9C");let b=(0,h.A)("div",{target:"e16m9hch0"})("position:relative;display:flex;justify-content:space-between;padding:12px 16px;background-color:white;cursor:pointer;transition:background-color 300ms ease-out;&:hover{background-color:",m.w.colors.neutral50,";}.icon{width:10%;margin-top:4px;text-align:end;",g.M.mbUp,"{width:5%;}&[data-is-hidden='false']{img{transform:rotate(180deg);}}img{width:24px;height:24px;transition:transform 300ms ease-out;}}"),v=(0,h.A)("div",{target:"e16m9hch1"})(".content-wrapper{padding:24px;background:",m.w.colors.neutral50,";border-radius:",m.w.borderRadius,";.learn-more{margin-top:10px;p{display:inline;}a{text-decoration:none;}}}"),f=(0,h.A)("div",{target:"e16m9hch2"})("margin-block:16px;background-color:",m.w.colors.teal50,";padding:16px;.faq-title{margin-bottom:16px;font-size:20px;padding:16px 0 16px 20px;&:after{height:40px;top:50%;transform:translateY(-50%);}}"),CollapsibleFaqsCard=e=>{var t;let{postContent:n,onShowClick:l,isShowed:c}=e,h=(0,o.useRef)(null),{formatMessage:m}=(0,r.A)();useAnimatedHeightToggle(h,c);let{locale:g,router:{asPath:f}}=(0,u.$)();return(0,i.FD)(i.FK,{children:[(0,i.FD)(b,{onClick:()=>{void 0!==l&&l(c?"hide":"show")},children:[(0,i.Y)(a.T,{size:"lg",type:"bold",className:"heading",children:n.title}),(0,i.Y)("div",{className:"icon","data-is-hidden":!c,children:(0,i.Y)("img",{loading:"lazy",src:"".concat(p.nS,"/chevronDown.svg"),alt:"Icon Chevron","data-event-category":"FAQ","data-event-action":"Arrow Click","data-event-label":"https://".concat(d.domainLocales[g]).concat(p.Jp).concat(f)})})]}),(0,i.Y)(v,{ref:h,children:(0,i.FD)("div",{className:"content-wrapper",children:[(0,i.Y)("div",{className:"content",children:(0,i.Y)(s.f2,{size:"c1",content:n.content})}),n.learnMore?(0,i.FD)("div",{className:"learn-more",children:[(0,i.Y)(a.T,{size:"c1",type:"bold",children:"".concat(m({id:"categoryPage.faqs.learnMore",defaultMessage:"Learn More"}),": ")}),(0,i.Y)("a",{href:n.learnMore.permalink,children:(0,i.Y)(a.T,{size:"c1",color:"#2685f1",children:(0,i.Y)("span",{"data-event-category":"FAQ","data-event-action":"Internal Link Click","data-event-label":"https://".concat(d.domainLocales[g]).concat(p.Jp).concat(n.learnMore.permalink),dangerouslySetInnerHTML:{__html:null==n?void 0:null===(t=n.learnMore)||void 0===t?void 0:t.title}})})})]}):null]})})]})},CollapsibleFaqs=e=>{let{isMobile:t,posts:n,title:a}=e,{formatMessage:s}=(0,r.A)(),[d,c]=(0,o.useState)(-1),handleShowFAQ=(e,t)=>{c("show"===e?t:-1)};return(0,i.FD)(f,{children:[(0,i.Y)(l.a,{size:"lg",className:"faq-title",children:a||s({id:"categoryPage.faqs",defaultMessage:"FAQs"})}),(0,i.Y)("div",{children:n.map((e,n)=>(0,i.Y)(CollapsibleFaqsCard,{isMobile:t,postContent:e,onShowClick:e=>{handleShowFAQ(e,n)},isShowed:d===n},n))})]})}},mYBQ:function(e,t,n){"use strict";n.r(t),n.d(t,{NotificationsHandler:function(){return NotificationsHandler},showNotification:function(){return showNotification}});var i=n("BGKE");n("+OUp");var o=n("jj4h"),a=n("0Woy"),l=n("hvR8"),r=n.n(l),s=n("d30B"),d=n.n(s),c=n("X1xk"),u=n.n(c),p=n("l0B8"),h=n.n(p);function NotificationsHandler(){return(0,i.Y)(o.$,{position:"top-right",zIndex:2077,autoClose:5e3})}let showNotification=e=>{let{type:t,title:n,...o}=e,l={success:"green",danger:"red",warning:"yellow",info:"blue",firebase:"gray"},s={success:(0,i.Y)(u(),{width:20,height:20}),danger:(0,i.Y)(r(),{width:20,height:20}),warning:(0,i.Y)(h(),{width:20,height:20}),info:(0,i.Y)(d(),{width:20,height:20}),firebase:""},c=s[t];a.$e.show({title:(0,i.Y)("b",{children:n}),icon:c,withCloseButton:!0,closeButtonProps:{label:"Close alert"},...o,styles:e=>{let n=l[t]||"blue";return{root:{backgroundColor:e.colors[n][0],borderColor:e.colors[n][0],"&::before":{backgroundColor:e.white}},title:{color:e.colors[n][8]},description:{color:e.black},closeButton:{color:e.black,"&:hover":{backgroundColor:e.colors[n][0]}},icon:{backgroundColor:"transparent",padding:0}}}})}},qsKI:function(e,t,n){"use strict";n.d(t,{j:function(){return b}});var i=n("BGKE"),o=n("+OUp"),a=n("Wbba"),l=n("P+HS"),r=n("iBNF"),s=n("vH4S"),d=n("dDsW"),c=n("rBCA");let u=(0,c.A)("div",{target:"eqih9ue0"})("display:block;border:1px solid #e4e8ec;border-radius:8px;margin-bottom:16px;"),p=(0,c.A)("button",{target:"eqih9ue1"})("padding:16px;text-transform:uppercase;cursor:pointer;width:100%;text-align:start;"),h=(0,c.A)("div",{target:"eqih9ue2"})("overflow:hidden;height:0;transition:height 0.25s ease;background-color:white;&[data-expand='true']{height:var(--expand-height);}.source-wrapper{white-space:pre-wrap;padding:0px 1rem 1rem;word-break:break-word;line-height:1.55;a{display:inline-block;color:",r.w.colors.primaryBase,";font-weight:normal;text-decoration:none;word-break:break-word;}}"),m=a.C.getAssetPath("source-opened.svg"),g=a.C.getAssetPath("source-closed.svg"),b=(0,o.memo)(e=>{let{className:t,sources:n="",title:a,children:c}=e,{formatMessage:b}=(0,d.A)(),[v,f]=(0,o.useState)(!1),x=(0,o.useRef)(null),[w,y]=(0,o.useState)(100);return(0,o.useEffect)(()=>{setTimeout(()=>{x.current&&y(x.current.clientHeight)},100)},[Array.isArray(n)?n.join("|"):n]),(0,i.FD)(u,{className:t,children:[(0,i.Y)(p,{onClick:()=>{(0,o.startTransition)(()=>{f(e=>!e)})},tabIndex:0,children:(0,i.FD)(l.Text,{size:"c2",weight:"bold",color:r.w.colors.gray600,children:[(0,i.Y)("img",{src:v?g:m,alt:"",loading:"lazy",style:{verticalAlign:"bottom",marginRight:8}}),a||b({id:"articlePage.sourceCount"})]})}),(0,i.Y)(h,{"data-expand":v,style:{"--expand-height":"".concat(w,"px")},children:(0,i.Y)("div",{className:"source-wrapper",ref:x,children:c||(0,i.FD)(i.FK,{children:[Array.isArray(n)&&(0,i.Y)(s.List,{styles:{itemIcon:{marginRight:0}},spacing:12,icon:(0,i.Y)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,i.Y)("circle",{cx:"12",cy:"12",r:"2",fill:"#2D87F3"})}),children:n.map(e=>(0,i.Y)(s.List.Item,{children:(0,i.Y)("div",{dangerouslySetInnerHTML:{__html:e}})},e))}),"string"==typeof n&&(0,i.Y)("div",{dangerouslySetInnerHTML:{__html:n}})]})})})]})},(e,t)=>{let n=Array.isArray(e.sources)?e.sources.join("|"):e.sources,i=Array.isArray(t.sources)?t.sources.join("|"):t.sources;return n===i&&e.title===t.title})},IVOH:function(e,t,n){"use strict";n.d(t,{D:function(){return l},z:function(){return a}});var i=n("rBCA"),o=n("CL9C");let a=10,l=(0,i.A)("div",{target:"e4vjzg90"})("position:sticky;bottom:unset;left:unset;z-index:",a,";--fallback:9rem;--distance-from-header:20px;top:calc(\n var(--header-height,var(--fallback)) + var(--distance-from-header)\n );width:40px;margin-left:-104px;background:transparent;display:flex;flex-direction:column;align-items:center;.icon-disabled{opacity:0.2;}.share-popup-line:first-child{display:none;}",o.M.mbDown,"{display:none;}")},fY7c:function(e,t,n){"use strict";n.r(t),n.d(t,{BabyPoopCard:function(){return BabyPoopCard}});var i=n("BGKE"),o=n("+OUp"),a=n("soWg"),l=n("ei5w"),r=n("e5PB"),s=n("99+y"),d=n.n(s),c=n("JOt+"),u=n("ROQx"),p=n("LSb+"),h=n("Pvbb"),m=n("wA0V"),g=n("AG8C"),b=n("9brV"),v=n("mdEm"),f=n("VnHZ");let BabyPoopCard=e=>{let{isSide:t,direction:n,sponsorLogo:s,onlyUseForm:x,...w}=e,y=(0,m.m)(),{locale:C}=(0,g.$)(),[M,k]=(0,o.useState)({}),{getHealthToolLink:T}=(0,a.u)(C),S=(0,o.useMemo)(()=>T(v.zY.BABY_POOP),[T]),{state:Y}=(0,o.useContext)(f.B)||{},{userInfo:A}=Y||{};(0,o.useEffect)(()=>{(async()=>{let e=await (0,c.callApiNew)(p.PATHS.HEALTH_TOOL.GET_HEALTH_TOOL_BABY_POOP);k((0,u.Nh)(null==e?void 0:e.data))})()},[]);let onClickFindOut=()=>{let e="".concat(window.location.origin).concat(b.Jp).concat(S);(null==A?void 0:A.id)?d().push(e):(0,h.YA)(e,"baby-poop-checking")};return S?x?(0,i.Y)(l.B,{currentUrl:y,babyPoopPage:M,onClickFindOut:onClickFindOut,...w}):(0,i.Y)(r.k,{babyPoopPage:M,formProps:{babyPoopPage:M,currentUrl:y,onClickFindOut,sponsorLogo:s},...w}):null}},"7ZMO":function(e,t,n){"use strict";n.r(t),n.d(t,{BabyVaccinationCard:function(){return BabyVaccinationCard}});var i=n("BGKE"),o=n("+OUp"),a=n("soWg"),l=n("uvxu"),r=n("n4nW"),s=n("+u84"),d=n("Xanp"),c=n("8BcA"),u=n.n(c),p=n("JOt+"),h=n("ROQx"),m=n("LSb+"),g=n("Pvbb"),b=n("wA0V"),v=n("a5L+"),f=n("AG8C"),x=n("9brV"),w=n("mdEm"),y=n("VnHZ"),C=n("/GlT");let BabyVaccinationCard=e=>{let{isSide:t,onlyUseForm:n,...c}=e,{locale:M,router:k}=(0,f.$)(),[T,S]=(0,o.useState)(null),{state:Y}=(0,o.useContext)(y.B)||{},{getHealthToolLink:A}=(0,a.u)(M),D=(0,o.useMemo)(()=>A(w.zY.BABY_VACCINE),[A]),{isLoggedIn:N}=Y||{};(0,o.useEffect)(()=>{(async()=>{let e=await (0,p.callApiNew)(m.PATHS.BABY_VACCINE.GET_HEALTH_TOOL_BABY_VACCINE_INFO);S(()=>(0,h.IN)(null==e?void 0:e.data))})()},[]);let onSubmit=e=>{let{gender:t=""}=e,n=u()(e.age).format(x.a7);(async()=>{let e="".concat(window.location.origin).concat(x.Jp).concat(D,"?").concat(s.Q.gender,"=").concat((0,C.ik)(t),"&").concat(s.Q.age,"=").concat(n);if(N){var i;k.push((null===(i=(0,d.g)(e,{source:"baby-vaccine"}))||void 0===i?void 0:i.href)||e)}else(0,g.YA)(e,"baby-vaccine")})()},B=(0,v.a)(),L=(0,b.m)();return D?n?(0,i.Y)(l.B,{formLayout:B||t?"default":"inline",onSubmit:onSubmit,submitProps:{dataEventLabel:L},...c}):(0,i.Y)(r.h,{babyVaccineContent:T,formProps:{formLayout:B||t?"default":"inline",onSubmit,submitProps:{dataEventLabel:L}},...c}):(0,i.Y)("div",{style:{height:500}})}},lXMR:function(e,t,n){"use strict";n.r(t),n.d(t,{BMRCardWrapper:function(){return BMRCardWrapper}});var i=n("BGKE"),o=n("+OUp"),a=n("soWg"),l=n("75tZ"),r=n("KFz6"),s=n("+u84"),d=n("Xanp"),c=n("dDsW"),u=n("JOt+"),p=n("ROQx"),h=n("LSb+"),m=n("Pvbb"),g=n("uUQ3"),b=n("f5bo"),v=n("aaqK"),f=n("wA0V"),x=n("a5L+"),w=n("AG8C"),y=n("9brV"),C=n("mdEm"),M=n("VnHZ");let BMRCardWrapper=e=>{let{isSide:t,showUserResult:n,positionType:k,articleCategories:T,onlyUseForm:S,...Y}=e,{formatMessage:A}=(0,c.A)(),{locale:D,router:N}=(0,w.$)(),B=(0,x.a)(),[L,E]=(0,o.useState)({}),{state:{isLoggedIn:I=!1}}=(0,o.useContext)(M.B)||{},{getHealthToolLink:z}=(0,a.u)(D),F=(0,o.useMemo)(()=>z(C.zY.BMR),[z]),H=(0,f.m)(),O=(0,g.X0)(D)?"imperial":"metric";(0,o.useEffect)(()=>{(async()=>{let e=await (0,u.callApiNew)(h.PATHS.HEALTH_TOOL.GET_HEALTH_TOOL_BMR_INFO);void 0!==(null==e?void 0:e.data)&&E((0,p.RT)(null==e?void 0:e.data))})()},[]);let onSubmit=async e=>{let t=null==e?void 0:e.unit,n="imperial"===t||1===Number(null==e?void 0:e.lbs),i={...e,lbs:n?1:void 0},o=i.activityLevel||C.vL.LOW_INTENSITY,a=n?b.convertLbsToKg(Number(i.weight)):Number(i.weight),l=n?b.convertFtToCm(Number(i.height)):Number(i.height),r=(0,v.hj)(String(i.gender),{age:String(i.age),height:String(l),weight:String(a)}),c={age:String(i.age),height:String(i.height),weight:String(i.weight),activityLevel:o,isCheckYourself:!!i.isCheckYourself,objective:"maintain-weight",unit:n?"imperial":"metric",lbs:i.lbs},u=(0,v.mE)(r,String(i.gender),c,{isMobile:B,positionType:k,articleCategories:T});localStorage.setItem(v.N4,JSON.stringify(u));let p="".concat(window.location.origin).concat(y.Jp).concat(F),h=(0,v.Rl)(p,String(i.gender),c),{[s.Q.birthday]:g,...f}=N.query,x={...f,gender:String((null==i?void 0:i.gender)||""),[s.Q.yourself]:String(Number(!!(null==i?void 0:i.isCheckYourself)))};n&&(x.lbs="1");try{if(await N.push({pathname:N.pathname,query:x},void 0,{shallow:!0}),I){var w;let e=(null===(w=(0,d.g)(h,{source:"bmr"}))||void 0===w?void 0:w.href)||h;await N.push(e)}else(0,m.YA)(h,"bmr")}catch(e){console.error("BMRCardWrapper onSubmit navigation failed",e)}},P=b.generateBmiRules({f:A,locale:D}),R=b.bmiUnitValidation[D];return S?(0,i.Y)(l.B,{...Y,onSubmit:onSubmit,bmiGenerated:P,bmiUnit:R,formLayout:B||t?"default":"inline",submitProps:{dataEventLabel:H},isMobile:B,defaultUnitSystem:O}):(0,i.Y)(r.V,{...Y,bmrContent:L,bmiGenerated:P,bmiUnit:R,bmiLink:F,formProps:{isMobile:B,formLayout:B||t?"default":"inline",onSubmit,defaultUnitSystem:O,submitProps:{dataEventLabel:H}}})}},dJM9:function(e,t,n){"use strict";n.r(t),n.d(t,{BabyGrowthCard:function(){return BabyGrowthCard}});var i=n("BGKE"),o=n("+OUp"),a=n("soWg"),l=n("Pi6y"),r=n("kJ9R"),s=n("Xanp"),d=n("p46w"),c=n.n(d),u=n("JOt+"),p=n("ROQx"),h=n("LSb+"),m=n("Pvbb"),g=n("wA0V"),b=n("a5L+"),v=n("AG8C"),f=n("9brV"),x=n("ErZK"),w=n("mdEm"),y=n("VnHZ");let BabyGrowthCard=e=>{let{onlyUseForm:t,showUserResult:n,isSide:d,...C}=e,M=(0,b.a)(),{state:{isLoggedIn:k}}=(0,o.useContext)(y.B),{locale:T,router:{push:S}}=(0,v.$)(),{getHealthToolLink:Y}=(0,a.u)(T),A=(0,o.useMemo)(()=>Y(w.zY.BABY_GROWTH),[Y]),[D,N]=(0,o.useState)(null);(0,o.useEffect)(()=>{(async()=>{let e=await (0,u.callApiNew)(h.PATHS.HEALTH_TOOL.GET_HEALTH_TOOL_BABY_GROWTH_INFO);N(()=>(0,p.QY)(null==e?void 0:e.data))})()},[]);let B=(0,g.m)(),onSubmit=async e=>{let t="".concat(window.location.origin).concat(f.Jp).concat(A,"result?is_embed=true"),n={...e,name:e.name||""};if(c().set(x.WJ,JSON.stringify(n)),k){var i;S((null===(i=(0,s.g)(t,{source:"baby-growth"}))||void 0===i?void 0:i.href)||t)}else(0,m.YA)(t,"baby-growth")};return A?t?(0,i.Y)(r.B,{onSubmit:onSubmit,formLayout:M||d?"default":"inline",submitProps:{dataEventLabel:B},...C}):(0,i.Y)(l.t,{babyGrowthContent:D,formProps:{onSubmit,formLayout:M||d?"default":"inline",submitProps:{dataEventLabel:B}},...C}):(0,i.Y)("div",{style:{height:500}})}},W1kr:function(e,t,n){"use strict";n.r(t),n.d(t,{DueDateCardWrapper:function(){return DueDateCardWrapper}});var i=n("BGKE"),o=n("+OUp"),a=n("8+IF"),l=n("h+21"),r=n("+u84"),s=n("soWg"),d=n("Xanp"),c=n("JOt+"),u=n("ROQx"),p=n("LSb+"),h=n("Pvbb"),m=n("OWsn"),g=n("wA0V"),b=n("a5L+"),v=n("AG8C"),f=n("9brV"),x=n("mdEm"),w=n("VnHZ"),y=n("NLe/");let DueDateCardWrapper=e=>{let{onlyUseForm:t,isSide:n,showUserResult:C,...M}=e,{locale:k}=(0,v.$)(),{getHealthToolLink:T}=(0,s.u)(k),S=(0,o.useMemo)(()=>T(x.zY.DUE_DATE),[T]),Y=(0,b.a)(),A=(0,g.m)(),{state:D}=(0,o.useContext)(w.B)||{},{userInfo:N}=D||{},[B,L]=(0,o.useState)({}),E=(0,o.useMemo)(()=>{var e;return B&&{...B,featured_image:(0,y.UQ)(B.featured_image,{width:48}),reviewed_by:{...B.reviewed_by,avatar:(0,y.UQ)(null===(e=B.reviewed_by)||void 0===e?void 0:e.avatar,{width:32})}}},[B]),I=(0,o.useMemo)(()=>(0,u.th)(null==B?void 0:B.reviewed_by),[B]);(0,o.useEffect)(()=>{(async()=>{let e=await (0,c.callApiNew)(p.PATHS.HEALTH_TOOL.GET_DUE_DATE_INFO);L(null==e?void 0:e.data)})()},[]);let onSubmitDueDate=(e,t)=>{var n;let i="".concat(window.location.origin).concat(f.Jp).concat(S,"?").concat(t).concat(r.a.includes(k)?"&joincommunity=1":"");if(!(null==N?void 0:N.id))return(0,h.YA)(i,"due-date");let o={source_url:window.location.href};localStorage.setItem(m.Ui,JSON.stringify(o)),window.location.href=(null===(n=(0,d.g)(i,{source:"due-date"}))||void 0===n?void 0:n.href)||i};return S?t?(0,i.Y)(a.D,{isMobile:Y,onSubmit:onSubmitDueDate,formLayout:Y||n?"default":"inline",submitProps:{dataEventLabel:A},...M,locale:k}):(0,i.Y)(l.C,{dueDatePageInfo:E,expertUrl:I,formProps:{isMobile:Y,formLayout:Y||n?"default":"inline",onSubmit:onSubmitDueDate,submitProps:{dataEventLabel:A}},...M,locale:k}):(0,i.Y)("div",{style:{height:500}})}},NVrP:function(e,t,n){"use strict";n.r(t),n.d(t,{OvulationCardWrapper:function(){return OvulationCardWrapper}});var i=n("BGKE"),o=n("+OUp"),a=n("soWg"),l=n("yXuZ"),r=n("t0Yg"),s=n("+u84"),d=n("Xanp"),c=n("8BcA"),u=n.n(c),p=n("JOt+"),h=n("ROQx"),m=n("LSb+"),g=n("Pvbb"),b=n("wA0V"),v=n("a5L+"),f=n("AG8C"),x=n("9brV"),w=n("mdEm"),y=n("VnHZ");let getOvulationResultLink=(e,t)=>{let{method:n,periodDateStart:i,periodLength:o,cycle:a}=t;return"".concat(e,"?").concat(s.Q.method,"=").concat(n,"&").concat(s.Q.day,"=").concat(u()(i).format(x.qC),"&").concat(s.Q.cycle,"=").concat(a,"&").concat(s.Q.period,"=").concat(o)},OvulationCardWrapper=e=>{let{onlyUseForm:t,isSide:n=!1,showUserResult:s,...c}=e,{locale:u,router:C}=(0,f.$)(),{state:M}=(0,o.useContext)(y.B)||{},{isLoggedIn:k}=M||{},T=(0,v.a)(),S=(0,b.m)(),{getHealthToolLink:Y}=(0,a.u)(u),A=(0,o.useMemo)(()=>Y(w.zY.OVULATION),[Y]),updateOvulationInfoResult=e=>{if(e){var t;let n=getOvulationResultLink("".concat(window.location.origin).concat(x.Jp).concat(A),e);C.push((null===(t=(0,d.g)(n,{source:"ovulation"}))||void 0===t?void 0:t.href)||n)}},[D,N]=(0,o.useState)({}),B=(0,o.useMemo)(()=>(0,h.th)(null==D?void 0:D.reviewed_by),[D]);if((0,o.useEffect)(()=>{(async()=>{let e=await (0,p.callApiNew)(m.PATHS.HEALTH_TOOL.GET_HEALTH_TOOL_OVULATION_INFO);N(null==e?void 0:e.data)})()},[]),!A)return(0,i.Y)("div",{style:{height:500}});let onSubmit=e=>{let t={method:e.calculatorType,periodDateStart:e.lastPeriodDate,cycle:Number(e.cycleLength),periodLength:Number(e.periodLength),source_url:window.location.href};localStorage.setItem("ovulationInfo",JSON.stringify(t)),k?updateOvulationInfoResult(t):(0,g.YA)(getOvulationResultLink("".concat(window.location.origin).concat(x.Jp).concat(A),t),"ovulation")};return t?(0,i.Y)(l.O,{onSubmit:onSubmit,formLayout:T||n?"default":"inline",isMobile:T,submitProps:{dataEventLabel:S},...c}):(0,i.Y)(r.D,{expertUrl:B,ovulationPageInfo:D,formProps:{isMobile:T,formLayout:T||n?"default":"inline",onSubmit,submitProps:{dataEventLabel:S}},...c})}},efBK:function(e,t,n){"use strict";n.r(t),n.d(t,{PWGCardWrapper:function(){return PWGCardWrapper}});var i=n("BGKE"),o=n("+OUp"),a=n("soWg"),l=n("iCm1"),r=n("XJ7Q"),s=n("+u84"),d=n("Xanp"),c=n("JOt+"),u=n("ROQx"),p=n("LSb+"),h=n("Pvbb"),m=n("wA0V"),g=n("a5L+"),b=n("AG8C"),v=n("9brV"),f=n("mdEm"),x=n("VnHZ");let PWGCardWrapper=e=>{let{isSide:t,onlyUseForm:n,...w}=e,{locale:y,router:C}=(0,b.$)(),{state:M}=(0,o.useContext)(x.B)||{},{isLoggedIn:k}=M||{},[T,S]=(0,o.useState)({}),{getHealthToolLink:Y}=(0,a.u)(y),A=(0,o.useMemo)(()=>Y(f.zY.PWG),[Y]);(0,o.useEffect)(()=>{(async()=>{let e=await (0,c.callApiNew)(p.PATHS.HEALTH_TOOL.GET_HEALTH_TOOL_PWG_INFO);S((0,u.vr)(null==e?void 0:e.data))})()},[]);let onSubmit=e=>{let t=Number(e.weight),n=Number(e.height),i=Number(e.lastWeight),o=Number(e.pregnantWeek),a=Math.round(t/(n/100*n/100)*10)/10,l=t-i,r=e.hasTwin?"twins":"notwins",c={yourSelf:"self",pwg:l,bmi:a,week:Number(e.pregnantWeek),twin:!!e.hasTwin,weightBefore:i,weight:t,height:n,source_url:window.location.href};localStorage.setItem("pwgInfo",JSON.stringify(c)),(async()=>{let e="".concat(window.location.origin).concat(v.Jp).concat(A,"?").concat(s.Q.pwg,"=").concat(l,"&").concat(s.Q.bmi,"=").concat(a,"&").concat(s.Q.week,"=").concat(o,"&").concat(s.Q.twins,"=").concat(r,"&").concat(s.Q.weightBefore,"=").concat(i,"&").concat(s.Q.weight,"=").concat(t).concat(s.a.includes(y)?"&joincommunity=1":"");if(k){var n;C.push((null===(n=(0,d.g)(e,{source:"pregnancy-weight-gain"}))||void 0===n?void 0:n.href)||e)}else(0,h.YA)(e,"pregnancy-weight-gain")})()},D=(0,g.a)(),N=(0,m.m)();return A?n?(0,i.Y)(l.P,{formLayout:D||t?"default":"inline",onSubmit:onSubmit,submitProps:{dataEventLabel:N},...w}):(0,i.Y)(r.C,{pwgContent:T,formProps:{formLayout:D||t?"default":"inline",onSubmit,submitProps:{dataEventLabel:N}},...w}):null}},wZxR:function(e,t,n){"use strict";n.r(t),n.d(t,{THRCardWrapper:function(){return THRCardWrapper}});var i=n("BGKE"),o=n("+OUp"),a=n("soWg"),l=n("lyNv"),r=n("/FLf"),s=n("+u84"),d=n("Xanp"),c=n("8BcA"),u=n.n(c),p=n("p46w"),h=n.n(p),m=n("99+y"),g=n("JOt+"),b=n("ROQx"),v=n("LSb+"),f=n("Pvbb"),x=n("/sjq"),w=n("wA0V"),y=n("a5L+"),C=n("AG8C"),M=n("9brV"),k=n("mdEm"),T=n("VnHZ"),S=n("/GlT");let THRCardWrapper=e=>{let{showUserResult:t,isSide:n,onlyUseForm:c,...p}=e,Y=(0,y.a)(),A=(0,m.useRouter)(),D=(0,w.m)(),[N,B]=(0,o.useState)({}),{state:L}=(0,o.useContext)(T.B)||{},{isLoggedIn:E}=L||{},{locale:I,router:{defaultLocale:z="en-PH"}}=(0,C.$)(),{getHealthToolLink:F}=(0,a.u)(I),H=(0,o.useMemo)(()=>F(k.zY.THR),[F]);(0,o.useEffect)(()=>{(async()=>{let e=await (0,g.callApiNew)(v.PATHS.HEALTH_TOOL.GET_HEALTH_TOOL_THR_INFO);B((0,b.Nk)(null==e?void 0:e.data))})()},[]);let onSubmit=e=>{let{heartRate:t,gender:n,age:i,activeValue:o}=e,a=u()(i).format(M.a7),l={gender:n,age:a,rate:t,intensity:o,source_url:window.location.href};h().set(M.Ok,JSON.stringify(l),{domain:".".concat(x.domainLocales[I||z]),path:"/"}),(async()=>{A.push({...A,query:{...A.query,gender:n||"",birthday:i?u()(i).format("MM-DD-YYYY"):""}},void 0,{shallow:!0});let e="".concat(window.location.origin).concat(M.Jp).concat(H,"?").concat(s.Q.gender,"=").concat((0,S.ik)(n),"&").concat(s.Q.age,"=").concat(a,"&").concat(s.Q.rate,"=").concat(t,"&").concat(s.Q.intensity,"=").concat(o);if(E){var l;A.push((null===(l=(0,d.g)(e,{source:"target-heart-rate"}))||void 0===l?void 0:l.href)||e)}else(0,f.YA)(e,"target-heart-rate")})()};return H?c?(0,i.Y)(l.T,{onSubmit:onSubmit,formLayout:Y||n?"default":"inline",submitProps:{dataEventLabel:D},...p}):(0,i.Y)(r.w,{thrContent:N,isSide:n,formProps:{onSubmit,formLayout:Y||n?"default":"inline",submitProps:{dataEventLabel:D}},...p}):(0,i.Y)("div",{style:{height:500}})}},"/2Zb":function(e,t,n){"use strict";n.r(t),n.d(t,{HealthConcern:function(){return HealthConcern}});var i=n("BGKE"),o=n("+OUp"),a=n("+YhV"),l=n("ysNr"),r=n("ECoa"),s=n("JOt+"),d=n("ROQx"),c=n("LSb+"),u=n("wA0V"),p=n("rBCA"),h=n("CL9C"),m=n("iBNF"),g=n("9brV");let b=(0,p.A)("div",{target:"ez6hepg0"})("margin:24px 0 48px 0;background-size:cover;",h.M.mbDown,"{background-image:url('",g.nS,"/bg-m.png}');width:100vw;margin-left:-1rem;.bullet-nav{bottom:24px;}}",h.M.mbUp,"{background-image:url('",g.nS,"/bg-d.png}');.arrow-right{right:-16px;cursor:pointer;svg{fill:white;}}.arrow-left{left:-16px;cursor:pointer;svg{fill:white;}}}"),v=(0,p.A)("div",{target:"ez6hepg1"})("width:100%;margin:0 0 8px 0;border-radius:",m.w.borderRadius,";",h.M.mbDown,"{min-height:318px;padding:24px 16px 48px 16px;}",h.M.mbUp,"{max-width:768px;}.post-divider{border-top:0.5px solid #e4e8ec;border-bottom:none;margin:0;}"),f=(0,p.A)("div",{target:"ez6hepg2"})(h.M.mbDown,"{min-height:262px;}",h.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;}"),x=(0,p.A)("div",{target:"ez6hepg3"})("display:flex;align-items:start;",h.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;}}",h.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:",m.w.colors.secondaryBase,";}.banner-description{margin-top:8px;color:",m.w.colors.secondaryBase,";font-size:16px;line-height:24px;}"),w=(0,p.A)("div",{target:"ez6hepg4"})("display:flex;max-width:546px;justify-content:space-between;",h.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:",m.w.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;",h.M.mbUp,"{width:180px;}",h.M.mbDown,"{width:100px;}}}"),y=(0,p.A)("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;}"),C=(0,p.A)("div",{target:"ez6hepg6"})("margin-right:auto;margin-left:auto;",h.M.mbUp,"{max-width:577px;}",h.M.mbDown,"{padding:0 8px;}"),M=(0,p.A)("div",{target:"ez6hepg7"})(h.M.mbDown,"{width:375px;max-height:600px;}img{width:100%;height:auto;}"),HealthConcern=e=>{let{isMobile:t,id:n}=e,[p,h]=(0,o.useState)([]),[m,g]=(0,o.useState)([]),[k,T]=(0,o.useState)(),S=(0,u.m)();(0,o.useEffect)(()=>{let fetchData=async()=>{var e,t,i,o,a,l,r,u,p;let m=await (0,s.callApiNew)(c.PATHS.COMMON.GET_CAROUSEL,{params:{id:n}});if(null==m?void 0:null===(e=m.data)||void 0===e?void 0:e.fields){if((null==m?void 0:null===(i=m.data)||void 0===i?void 0:null===(t=i.fields)||void 0===t?void 0:t.type)==="default"){let e=null==m?void 0:null===(l=m.data)||void 0===l?void 0:null===(a=l.fields)||void 0===a?void 0:null===(o=a.data)||void 0===o?void 0:o.map(d.TJ);T(!0),h(e)}else{let e=null==m?void 0:null===(p=m.data)||void 0===p?void 0:null===(u=p.fields)||void 0===u?void 0:null===(r=u.data)||void 0===r?void 0:r.map(d.Sn);T(!1),g(e)}}};fetchData()},[]);let renderDefaultPartnerCard=e=>{var t,n;return(0,i.Y)(v,{children:(0,i.FD)(f,{children:[(0,i.FD)(x,{className:"post-title img-title img-mb",children:[!!(null==e?void 0:e.logoImage)&&(0,i.Y)("div",{style:{display:"flex",justifyContent:"center",marginBottom:"22px"},children:(0,i.Y)("img",{src:null==e?void 0:e.logoImage,alt:"avatar",className:"img-title img-mb",loading:"lazy"})}),(0,i.FD)("div",{children:[(0,i.Y)("p",{className:"banner-title",dangerouslySetInnerHTML:{__html:e.title}}),(0,i.Y)("p",{className:"banner-description",dangerouslySetInnerHTML:{__html:e.description}})]})]}),(0,i.Y)(w,{"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,i.Y)("div",{className:"img-container",children:(0,i.FD)("div",{className:"columns",children:[(0,i.Y)("img",{loading:"lazy",src:null==e?void 0:e.img,alt:"avatar"}),(0,i.Y)(a.T,{size:"md",className:"img-caption",children:null==e?void 0:e.label})]})},t))}),(0,i.Y)(C,{children:null==e?void 0:null===(n=e.legends)||void 0===n?void 0:n.map((e,t)=>(0,i.FD)(y,{children:[(null==e?void 0:e.icon)&&(0,i.Y)("div",{className:"flag",children:(0,i.Y)("img",{loading:"lazy",src:null==e?void 0:e.icon,alt:""})}),(0,i.Y)("span",{className:"legend-content",dangerouslySetInnerHTML:{__html:e.label}})]},t))})]})})},renderStatisticPartnerCard=e=>(0,i.Y)(M,{children:(0,i.Y)("img",{loading:"lazy",src:t&&e.imageMobile?e.imageMobile:e.imageDesktop,alt:e.title})});return(0,i.Y)(i.FK,{children:((null==p?void 0:p.length)>0||(null==m?void 0:m.length))>0?(0,i.Y)(b,{children:(0,i.Y)(l.S,{column:1,row:1,isDotsShown:t,mode:"infinity",type:"separated",arrowType:"Care",isArrowShown:!t,dataEventCategory:"Carousel",dataEventAction:"Click",dataEventLabel:S,children:k?null==p?void 0:p.map(e=>renderDefaultPartnerCard(e)):null==m?void 0:m.map(e=>renderStatisticPartnerCard(e))})}):(0,i.Y)(b,{children:(0,i.Y)(r.A,{height:763})})})}},rp0m:function(e,t,n){"use strict";n.d(t,{_:function(){return VideoList}});var i=n("BGKE"),o=n("+OUp"),a=n.n(o),l=n("iBNF"),r=n("+YhV"),s=n("yUew"),d=n("P+HS"),c=n("a5L+"),u=n("rBCA"),p=n("CL9C"),h=n("U+Ez");let m=(0,u.A)("div",{target:"e1hasf570"})(p.M.mbDown,"{margin-left:-16px;margin-right:-16px;}"),g=(0,u.A)(d.Carousel,{target:"e1hasf571"})(),b=(0,u.A)(h.H,{target:"e1hasf572"})("margin-block:20px;padding-left:16px;border-left:5px solid ",null===l.w||void 0===l.w?void 0:l.w.colors.primaryBase,";"),VideoList=e=>{let{videos:t,title:n,description:o,slideToShow:u=1.2,isAutoPlay:p=!1,...h}=e,v=(0,c.a)();return(null==t?void 0:t.length)&&0!==t.length?1===t.length?(0,i.FD)(m,{...h,children:[n&&(a().isValidElement(n)?n:(0,i.Y)(b,{tag:"h2",color:l.w.colors.secondaryBase,children:n})),o&&(0,i.Y)(r.T,{size:"p3",style:{marginBottom:"16px"},children:o}),(0,i.Y)(s.S,{url:t[0].videoUrl||"",autoPlay:p})]}):(0,i.FD)(m,{...h,children:[n&&(a().isValidElement(n)?n:(0,i.Y)(b,{tag:"h2",color:l.w.colors.secondaryBase,children:n})),o&&(0,i.Y)(r.T,{size:"p3",style:{marginBottom:"16px"},children:o}),(0,i.Y)(g,{slidesToShow:u,slideGap:v?16:24,withIndicators:!1,controlSize:32,controlsOffset:5,draggable:!1,speed:8,children:t.map((e,t)=>(0,i.Y)(d.Carousel.Slide,{children:(0,i.Y)(s.S,{url:e.videoUrl||"",autoPlay:p})},t))})]}):null}},NwNR:function(e,t,n){"use strict";n.d(t,{p3:function(){return MastheadAd}});var i=n("BGKE"),o=n("+OUp"),a=n("rBCA"),l=n("CL9C"),r=n("iBNF"),s=n("vH4S");n("ns0B");var d=n("dDsW"),c=n("Ud3P"),u=n("moN4");n("P7Ch");var p=n("a5L+");n("AG8C");var h=n("U6DU"),m=n("imPi");let MastheadAd=e=>{let{adUnitPath:t,customTargetting:n,isSponsored:a,defaultNoScroll:r,initialSticky:b=!1,className:v,hasPlaceholder:f,onCloseAd:x,containerClassName:w}=e,{formatMessage:y}=(0,d.A)(),C=(0,p.a)(),[M,k]=(0,o.useState)(!!f),[T,S]=(0,o.useState)(b);return(0,o.useEffect)(()=>{let e=null,checkShowPadding=()=>{m.$.measure(()=>{let e=document.querySelector("[id^=super-masthead-ad-]");((null==e?void 0:e.getBoundingClientRect().height)||0)>10&&k(!0)}),e=setTimeout(checkShowPadding,1e3)};return e=setTimeout(checkShowPadding,1e3),(0,h.GF)(()=>{let{googletag:e}=window;(null==e?void 0:e.pubads)&&e.pubads().addEventListener("slotRenderEnded",e=>{var t;(null===(t=e.slot)||void 0===t?void 0:t.getSlotElementId().startsWith("super-masthead-ad"))&&(setTimeout(()=>{S(!1)},4e3),setTimeout(()=>{var e;null===(e=document.querySelector("html"))||void 0===e||e.classList.remove("ad-noscroll")},700))})}),setTimeout(()=>{var e;null===(e=document.querySelector("html"))||void 0===e||e.classList.remove("ad-noscroll")},1500),()=>{e&&clearTimeout(e)}},[]),(0,i.Y)(s.Box,{className:w,sx:e=>({...f&&{position:"relative",height:234,backgroundColor:"#f8f9fc",".article-masthead":{position:"absolute",top:0,right:0,bottom:0,left:0},[e.fn.largerThan("sm")]:{height:296}},[e.fn.smallerThan("sm")]:{...T&&{position:"sticky",top:0,zIndex:304,width:"100%",overflow:"hidden"}}}),children:(0,i.Y)(i.FK,{children:(0,i.FD)(g,{"data-visible":M,"data-sponsored":a,"data-sticky":T,className:v,children:[r&&(0,i.Y)("script",{async:!0,dangerouslySetInnerHTML:{__html:"\n if (window.innerWidth > ".concat(l.B.BREAK_POINT_MOBILE,") {\n document.querySelector('html')?.classList.add('ad-noscroll')\n }\n ")}}),M&&(0,i.FD)(u.AY,{children:[(0,i.Y)("img",{src:"/svg/adsIcon.svg",alt:"ads sign icon",loading:"lazy"}),(0,i.Y)("span",{children:y({id:"adBanner.title",defaultMessage:"Advertisement"})})]}),(0,i.Y)(c.AdBlock,{adUnitPath:t,size:C?[[414,200],[375,188],[1,1]]:[[970,250],[1,1]],divId:"super-masthead-ad-".concat(C?"mobile":"desktop","-").concat(null==n?void 0:n.Content_ID),pos:["masthead"],customTargetings:n,contentId:String(null==n?void 0:n.Content_ID),adDefaultSize:[0,0],noWrapper:!0,showCloseBtn:!0,wrapperProps:{m:0},onCloseAd:x},String(C))]})})})},g=(0,a.A)("div",{target:"e838u5x0"})("background:",r.w.colors.neutral50,";&[data-visible='true']{padding:1rem 0;&[data-sponsored='true']{padding:0 0 1rem;}}")},aaqK:function(e,t,n){"use strict";n.d(t,{$z:function(){return updateBmrSidisStorage},FE:function(){return formatBmrStatusLabel},N4:function(){return s},Rl:function(){return generateBmrRedirect},hj:function(){return getBmrKcal},mE:function(){return generateBmrInfoToSendSidis},sX:function(){return resolveBmrScoreLevel},vI:function(){return d}});var i=n("+u84"),o=n("cr+I"),a=n("9brV"),l=n("/GlT"),r=n("1sn1");let s="bmrInfo";function formatBmrStatusLabel(e,t){return t({id:"bmr.state.".concat(e)})}function getBmrScoreLevel(e){let t=a.WO.findIndex(t=>t===e)+1;return t||1}function resolveBmrScoreLevel(e,t){let n=Number(e);return null==e||0===n||Number.isNaN(n)?getBmrScoreLevel(t):Math.floor(n)}function updateBmrSidisStorage(e){let t=JSON.parse(localStorage.getItem(s)||"null");t&&localStorage.setItem(s,JSON.stringify({...t,...e}))}let d={low_intensity:1,moderate_intensity:2,aerobic_intensity:3,vigorous_intensity:4,maximum_intensity:5};function getBmrKcal(e,t){return Math.round(("male"===e?66.47+13.75*parseFloat(t.weight)+5.003*parseFloat(t.height)-6.755*parseFloat(t.age):655.1+9.563*parseFloat(t.weight)+1.85*parseFloat(t.height)-4.676*parseFloat(t.age))*100)/100}function generateBmrRedirect(e,t,n){let a=o.stringifyUrl({url:e,query:{result:1,[i.Q.gender]:(0,l.ik)(t),[i.Q.age]:n.age,[i.Q.height]:n.height,[i.Q.weight]:n.weight,[i.Q.yourself]:Number(!!n.isCheckYourself),[i.Q.activityLevel]:n.activityLevel,joincommunity:1,...1===Number(n.lbs)?{lbs:1}:{}}},{skipEmptyString:!0,skipNull:!0});return a}function generateBmrInfoToSendSidis(e,t,n,i){var o;let{articleCategories:a,positionType:l}=i,s=null!==(o=n.unit)&&void 0!==o?o:1===Number(n.lbs)?"imperial":"metric",c={age:n.age,height:n.height,weight:n.weight,kcal:e,kcal_level:function(e,t){let n=(0,r.gc)({bmr:e,gender:"female"===t?"female":"male"});return getBmrScoreLevel(n)}(e,t),gender:t,unit:s,position_type:l,device_type:"web",...(null==n?void 0:n.isCheckYourself)&&{is_my_self:1},...(null==n?void 0:n.activityLevel)&&{active_level:(null==d?void 0:d[n.activityLevel])||1},source_url:window.location.href};return a&&(c.categories=a.map(e=>({name:e.name||"",permalink:e.permalink||"",term_id:e.termId||"",text_color:e.textColor||""}))),c}},sWGF:function(e,t,n){"use strict";n.d(t,{b:function(){return LandingPageBanner}});var i=n("BGKE"),o=n("a5L+"),a=n("rBCA"),l=n("CL9C");let r=(0,a.A)("a",{target:"e1cacsnf0"})("position:relative;display:block;text-decoration:none;img{",l.M.mbUp,"{aspect-ratio:1920 / 550;width:100%;height:auto;object-fit:cover;object-position:center;}",l.M.mbDown,"{width:100%;height:auto;}}"),LandingPageBanner=e=>{let{banner:t,className:n,onClick:a}=e,l=(0,o.a)();return(!l||(null==t?void 0:t.mobile))&&(l||(null==t?void 0:t.desktop))?(0,i.Y)(r,{className:n,href:null==t?void 0:t.url,onClick:(null==t?void 0:t.url)?void 0:a,target:(null==t?void 0:t.url)?"_blank":void 0,enableScroll:!(null==t?void 0:t.url)&&void 0!==a,children:(0,i.Y)("img",{src:l?null==t?void 0:t.mobile:null==t?void 0:t.desktop,alt:"banner",loading:"lazy"})}):null}},BlBm:function(e,t,n){"use strict";n.d(t,{Zw:function(){return s},ae:function(){return r},c3:function(){return d},mo:function(){return u},sb:function(){return p},vs:function(){return c}});var i=n("rBCA"),o=n("iBNF"),a=n("CL9C"),l=n("sWGF");let r=(0,i.A)("div",{target:"e1ri0os90"})("overflow:visible;min-height:100vh;.banner{background-color:",o.w.colors.gray100,";}#div-gpt-ad-home-top,#div-gpt-ad-home-sidebar1,#div-gpt-ad-home-sidebar2{div{display:flex;overflow:hidden;max-width:100%;justify-content:center;}}margin-bottom:80px;.html-div{color:",o.w.colors.gray800,";&[data-size='small']{font-size:16px;",a.M.mbUp,"{font-size:18px;}}&[data-size='medium']{font-size:19px;",a.M.mbUp,"{font-size:22px;}}&[data-size='large']{font-size:24px;",a.M.mbUp,"{font-size:27px;}}",a.M.mbUp,"{margin:32px 0px;font-size:18px;font-weight:normal;letter-spacing:-0.2px;line-height:32px;}",a.M.mbDown,"{font-weight:normal;font-size:16px;line-height:28px;}p{margin-bottom:24px;}}.health-tool-container{background-color:",o.w.colors.neutral50,";",a.M.mbDown,"{padding:0;}}/* iframe{width:100%;max-width:100%;}*/\n\n ",a.M.mbUp,"{.super-content-container{max-width:768px;text-align:justify;}.health-tool-container{padding:24px;max-width:768px;}}.article-bottom-ad{",a.M.mbDown,"{margin-bottom:var(--mobile-bottom-height);@supports (margin-bottom:env(safe-area-inset-bottom)){margin-bottom:calc(\n env(safe-area-inset-bottom) + var(--mobile-bottom-height)\n );}}}"),s=(0,i.A)("div",{target:"e1ri0os91"})("overflow:visible;position:relative;min-height:100vh;.banner{background-color:",o.w.colors.gray100,";}#div-gpt-ad-home-top,#div-gpt-ad-home-sidebar1,#div-gpt-ad-home-sidebar2{div{display:flex;overflow:hidden;max-width:100%;justify-content:center;}}margin-bottom:80px;.html-div{color:",o.w.colors.gray800,";&[data-size='small']{font-size:16px;",a.M.mbUp,"{font-size:18px;}}&[data-size='medium']{font-size:19px;",a.M.mbUp,"{font-size:22px;}}&[data-size='large']{font-size:24px;",a.M.mbUp,"{font-size:27px;}}margin:32px 0px;font-size:18px;font-weight:normal;letter-spacing:-0.2px;line-height:32px;",a.M.mbDown,"{font-weight:normal;font-size:16px;line-height:28px;}p{margin-bottom:24px;}}.health-tool-container{background-color:",o.w.colors.neutral50,";",a.M.mbDown,"{padding:0;}}/* iframe{width:100%;max-width:100%;}*/\n\n ",a.M.mbUp,"{.super-content-container{max-width:768px;text-align:justify;}.health-tool-container{padding:24px;max-width:768px;}.health-concern-container{max-width:768px;}}"),d=(0,i.A)("div",{target:"e1ri0os92"})("position:relative;overflow:visible;width:100%;background-color:",o.w.colors.white,";.trending-tab{position:sticky;z-index:2;top:0;width:100%;border-bottom:none;background-color:",o.w.colors.white,";& > ul{width:100%;}& > ul > li > div > p{",a.M.mbUp,"{font-size:",o.w.sizes.fsHeading6,";}}",a.M.mbUp,"{padding:25px 0 8px;}",a.M.mbDown,"{padding:4px 0 0;}& > div{",a.M.mbUp,"{padding:0 16px;}}}&[data-is-top-bar-appears='true']{.trending-tab{top:64px;transition:top 0.5s;}}&[data-is-top-bar-appears='false']{.trending-tab{top:0;transition:top 0.5s;}}"),c=(0,i.A)("div",{target:"e1ri0os93"})("display:flex;min-width:100%;max-width:400px;height:100%;flex-direction:column;padding:0 24px;border-radius:",o.w.borderRadius,";filter:drop-shadow(0px 4px 8px rgba(0,0,0,0.04)),drop-shadow(0px 0px 2px rgba(0,0,0,0.06)),drop-shadow(0px 0px 1px rgba(0,0,0,0.04));"),u=(0,i.A)("div",{target:"e1ri0os94"})("position:absolute;z-index:10;top:80px;left:50%;overflow:visible;width:0;height:100%;",a.M.mbUp,"{.action-bar{top:min(6rem + 16px,100vh / 4 + 16px);margin-left:-460px;}}"),p=(0,i.A)(l.b,{target:"e1ri0os95"})()},"UQ/i":function(e,t,n){"use strict";n.d(t,{TQ:function(){return b},hk:function(){return v},r6:function(){return g}});var i=n("rBCA"),o=n("NQBa"),a=n("+u84"),l=n("P+HS"),r=n("CL9C"),s=n("iBNF"),d=n("vH4S"),c=n("rp0m"),u=n("9brV");r.M.mbUp,r.M.mbUp,u.cD,r.M.mbUp,s.w.colors.neutral100,u.Mu.articleAdContainer;let p=(0,i.A)("div",{target:"e17jxpc13"})("width:100%;.top-ad{margin-left:auto;margin-right:auto;> div{margin-bottom:1rem;}}.tpads-unit{display:none;}> span.end-of-article:empty{display:inline-block;height:0 !important;}"),h="\n display: block;\n width: 100%;\n border-spacing: 0;\n margin-block: 10px;\n max-width: 700px;\n overflow-x: auto;\n ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 100px;\n height: 4px;\n }\n ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: ".concat(s.w.colors.gray200,";\n }\n thead,\n tbody {\n width: 100%;\n }\n th,\n td {\n min-width: 160px;\n width: 100%;\n text-align: left;\n }\n th {\n text-align: center;\n }\n"),m="\n table {\n ".concat("\n th,\n td {\n padding: 13px 12px;\n font-size: 14px;\n line-height: 22px;\n font-style: normal;\n p {\n margin-block-start: 1em;\n margin-block-end: 1em;\n }\n }\n th {\n font-weight: 600;\n text-align: center;\n }\n td {\n font-weight: 400;\n }\n","\n &[data-enable-scroll='1'] {\n ").concat(h,"\n }\n ").concat(r.M.mbDown," {\n ").concat(h,"\n }\n &.spine-table-light {\n thead {\n background-color: #f7f9fc;\n th {\n color: #737373;\n }\n }\n tbody {\n td {\n border-bottom: 1px solid #e4e8ec;\n }\n }\n }\n &.spine-table-dark {\n thead {\n background-color: #87909c;\n th {\n color: #ffffff;\n }\n }\n tbody {\n tr:nth-child(2n) {\n background-color: #f7f9fc;\n }\n }\n }\n &.spine-table-blue {\n thead {\n background-color: #45a4ff;\n th {\n color: #ffffff;\n }\n }\n tbody {\n tr {\n background-color: #f7f9fc;\n }\n td {\n background-color: #f0f8ff;\n border-bottom: 1px solid #bcdeff;\n }\n }\n }\n &.spine-table-pros-cons {\n display: inline-table;\n thead {\n th {\n text-align: center;\n color: #ffffff;\n &:nth-child(2n) {\n background-color: #45a4ff;\n }\n &:nth-child(2n + 1) {\n background-color: #bb82e1;\n }\n }\n }\n tbody {\n td {\n &::before {\n content: '•';\n margin-right: 4px;\n }\n &:nth-child(2n) {\n background-color: #e3f2ff;\n }\n &:nth-child(2n + 1) {\n background-color: #f5edff;\n }\n }\n }\n }\n }\n"),g=(0,i.A)(p,{target:"e17jxpc15"})("position:relative;line-height:1.7;overflow-wrap:break-word;white-space:pre-line;",r.M.mbUp,"{font-size:18px;}> *{max-width:100%;}&.disclaimer{padding-top:0;padding-bottom:0;}sup{position:relative;bottom:0.7em;font-size:0.7em !important;line-height:0 !important;vertical-align:baseline;}input{background:white;}img{display:block;width:100%;height:auto;max-width:100%;",r.M.mbDown,"{width:calc(100% + 2rem);margin-right:-1rem;margin-left:-1rem;max-width:unset;}}figure{figcaption.wp-caption-text{margin-top:",(0,d.rem)(8),";margin-bottom:",(0,d.rem)(24),";color:",s.w.colors.gray500,";font-size:",(0,d.rem)(14),";text-align:center;}}& >{p,ul,form{&:not(:last-child){margin-block:16px;}}",(0,l.getHeadingStyles)()," ",r.M.mbDown,"{",(0,l.getHeadingStyles)({mbDown:!0}),"}h2,h3,h4,h5{margin-block:16px;}h1,h2,h3,h4,h5,h6{> *{font-size:inherit;font-weight:inherit;}}div.article-image-alt{margin-top:-1.5em;margin-bottom:2em;color:",s.w.colors.gray500,";font-size:0.8em;text-align:center;}form{display:flex;align-items:center;}/* Colors */\n\n h1,h2,h3,h4,h5,h6,p{color:",s.w.colors.gray800,";}}ul{padding-left:1rem;/* margin-bottom:1em;*/\n margin-block:16px;list-style:inside;white-space:normal;}li{position:relative;padding-left:2em;margin-bottom:0.4em;list-style-type:none;&:before{position:absolute;top:0;left:0;margin-left:0.5em;color:",s.w.colors.primaryBase,";content:'•';font-size:1em;}ul{margin-top:0.5em;}}ol{margin-bottom:1em;list-style:decimal;li{padding-left:unset;margin-left:2em;list-style-type:unset;&:before{display:none;}&::marker{font-size:1.1em;font-weight:bold;}}}a{color:",s.w.colors.primaryBase,";text-decoration:none;}/* Scroll offset */\n h2[id],h3[id]{scroll-margin:70px;}.teads-player{position:relative;&::before{content:'';font-size:10px;line-height:12px;color:rgb(140,140,140);font-weight:400;position:absolute;bottom:100%;left:50%;transform:translateX(-50%);padding:3px 0;width:100%;text-align:center;z-index:",a.c-9e6,";background:rgb(248,249,252);}}&[data-locale='vi-VN']{.teads-player{&::before{content:'Quảng c\xe1o';}}}&[data-locale='en-PH'],&[data-locale='tl-PH'],&[data-locale='my-MM'],&[data-locale='hi-IN'],&[data-locale='zh-TW']{.teads-player{&::before{content:'Advertisement';}}}&[data-locale='id-ID']{.teads-player{&::before{content:'Iklan';}}}&[data-locale='ms-MY']{.teads-player{&::before{content:'Iklan';}}}&[data-locale='th-TH']{.teads-player{&::before{content:'โฆษณา';}}}&[data-locale='kh-KH']{.teads-player{&::before{content:'ផ្សព្វផ្សាយពាណិជ្ជកម្ម';}}}a[href*='typeform.com/'],[data-url*='typeform.com/']{display:block;iframe{height:100%;}}",m," /* Key take-away */\n\n iframe{aspect-ratio:16/9;min-height:0;width:100%;height:auto;max-width:unset;",r.M.mbDown,"{margin-inline:-16px !important;width:calc(100% + 32px) !important;}}& > p{margin-block:24px;",r.M.mbDown,"{margin-block:16px;}}.content-key-takeaways{padding:24px;margin:8px 0;background-image:url(",u.nS,"/key-takeaway-desktop.png);background-color:",s.w.colors.primary50,";background-size:100%;background-repeat:no-repeat;background-position:bottom;border-radius:",s.w.borderRadius,";.content{br:first-of-type{display:none;}> h2{margin-bottom:0;color:#284a75 !important;}}.title{margin-bottom:16px;h3{/* m/H2 24-32 Bold */\n\n font-family:'Inter';font-style:normal;font-weight:700;font-size:24px;line-height:32px;/* identical to box height,or 133% */\n\n letter-spacing:-0.8px;/* Secondary/Secondary */\n\n color:#284a75;margin:0;}}.key-takaway-logo-wrapper{display:flex;flex-direction:row-reverse;margin-top:12px;.key-takaway-logo{width:auto;height:24px;}}",r.M.mbDown,"{background-image:url(",u.nS,"/key-takeaway-mobile.png);padding:16px;ul{padding-left:0;}}}/* Quotation */\n\n .content-quotation{position:relative;padding:36px 0;margin:24px 0;",r.M.mbDown,"{padding:40px 0;}br:first-of-type{display:none;}&::before{position:absolute;top:0;display:block;width:24px;height:24px;content:url(",u.Mp,"/quote-left-small.svg);}&::after{position:absolute;right:0;bottom:0;display:block;width:24px;height:24px;content:url(",u.Mp,"/quote-right-small.svg);}.title{position:absolute;bottom:0;left:32px;display:flex;align-items:center;gap:8px;h3{margin:0;color:",s.w.colors.gray500," !important;font-size:16px !important;font-weight:normal;line-height:28px;}::before{width:24px;height:24px;content:url(",u.Mp,"/quote-minus.svg);}}.content{padding:0 24px;font-size:18px;font-weight:600;line-height:26px;}}.content-recommendation{display:flex;flex-direction:column;gap:12px;padding:24px;/* Yellow/Yellow-50 */\n\n background:#fff8e2;/* Yellow/Yellow-800 */\n\n border-bottom:2px solid #fe921d;border-radius:8px;br:first-of-type{display:none;}.title{h3{margin:0;font-family:'Inter';font-style:normal;font-weight:700;font-size:18px;line-height:28px;letter-spacing:-0.2px;/* Yellow/Yellow-800 */\n\n color:#fe921d;}}.content{font-family:'Inter';font-style:normal;font-weight:400;font-size:18px;line-height:28px;letter-spacing:-0.2px;/* Gray/Gray-800 */\n\n color:#262626;li{position:relative;&:before{position:absolute;top:0;left:0;color:#fe921d;content:'•';font-size:24px;}*:first-of-type{display:initial;}}}",r.M.mbDown,"{padding:16px;h3{font-size:16px;line-height:24px;}p,span,li{font-size:16px;line-height:28px;}}}/* Article summary */\n .content-summary{padding:24px;margin-block:16px;background:#f7f9fc;border-bottom:2px solid #2d87f3;border-radius:8px;.title{margin-bottom:12px;h3{font-family:'Inter';font-style:normal;font-weight:700;font-size:18px;line-height:28px;/* identical to box height,or 156% */\n\n letter-spacing:-0.2px;/* Primary/Primary */\n\n color:#2d87f3;margin:0;}}.content{> p,> span,h3{margin-bottom:8px;}font-family:'Inter';font-style:normal;font-weight:400;font-size:18px;line-height:28px;letter-spacing:-0.2px;li{color:#262626;padding-left:24px;&:before{position:absolute;top:0;left:0;color:",s.w.colors.primaryBase,";content:'•';font-size:24px;margin-left:0;}*:first-of-type{display:initial;}}}",r.M.mbDown,"{padding:16px;ul{padding-left:0;}p,span{font-weight:400;font-size:16px;line-height:28px;letter-spacing:-0.2px;}h3{font-size:16px;line-height:24px;}}}"),b=(0,i.A)(o.D,{target:"e17jxpc16"})(r.M.mbDown,"{margin-right:-16px;margin-left:-16px;}");r.M.mbDown,s.w.colors.secondaryBase,s.w.sizes.fwBold;let v=(0,i.A)(c._,{target:"e17jxpc19"})(r.M.mbDown,"{margin-inline:0;}")},P7Ch:function(e,t,n){"use strict";n.d(t,{C4:function(){return splitHtml2}});let splitByTag=(e,t,n)=>{let i=e.indexOf(t),o=e.substring(0,i),a=n.map(t=>({index:e.indexOf(t,i),length:t.length})),l=a.find(e=>e.index>-1);if(!l)return[o,e.substring(i),""];{let t=l.index+l.length,n=e.substring(i,t),a=e.substring(t);return[o,n,a]}},splitHtml2=e=>{let t=[],n=splitSpecialTag(e);return t.push(...n),t.filter(e=>!!e.trim())},i=[{identifier:'
","/>",">"]},{identifier:'
","/>",">"]},{identifier:'
","/>",">"]},{identifier:'
","/>",">"]},{identifier:'
","/>",">"]},{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}}]);