"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4385],{"+3Ze":function(e,t,i){i.d(t,{I:function(){return useRecords}});var o=i("q1tI"),a=i("Wgwc"),l=i.n(a),n=i("dDsW"),r=i("09QT"),d=i("oQBk"),s=i("i/U4"),c=i("rIrU"),m=i("ifsH");let h={bmis:"score",bmrs:"kcal",pregnancies:"weight"},useRecords=e=>{let{initRecords:t,dataKey:i}=e,{formatMessage:a}=(0,n.Z)(),g=h[i],u=(0,o.useMemo)(()=>[{label:a({id:"tools.filter.byDay",defaultMessage:"By Day"}),value:"day"},{label:a({id:"tools.filter.byMonth",defaultMessage:"By Month"}),value:"month"},{label:a({id:"tools.filter.byYear",defaultMessage:"By Year"}),value:"year"}],[]),p=(0,o.useMemo)(()=>[{label:a({id:"tools.filter.lastXmonths",defaultMessage:"Last 3 months"},{number:3}),value:"3-month"},{label:a({id:"tools.filter.lastXmonths",defaultMessage:"Last 6 months"},{number:6}),value:"6-month"},{label:a({id:"tools.filter.lastXmonths",defaultMessage:"Last 12 months"},{number:12}),value:"12-month"}],[]),b=(0,o.useMemo)(()=>[{label:a({id:"tools.filter.lastXyears",defaultMessage:"Last 1 year"},{number:1}),value:"1-year"},{label:a({id:"tools.filter.lastXyears",defaultMessage:"Last 2 year"},{number:2}),value:"2-year"},{label:a({id:"tools.filter.lastXyears",defaultMessage:"Last 3 year"},{number:3}),value:"3-year"}],[]),[v,f]=(0,o.useState)(u[0]),[M,y]=(0,o.useState)(t&&(null==t?void 0:t.length)>0?new Date(t[0].created_at):new Date),[w,Z]=(0,o.useState)(null!=t?t:[]);(0,o.useEffect)(()=>{"day"!==v.value||l()(M).isValid()?"month"===v.value?y(p[0]):"year"===v.value&&y(b[0]):y(new Date)},[v]),(0,o.useEffect)(()=>{let getRecords=async()=>{let e="",t="",o=new Date;l()(M).isValid()?(e=(0,s.Y7)(l()(M).add(-10,"day").toDate()),t=(0,s.Y7)(M)):(e="month"===v.value?(0,s.Y7)(l()(o).add(-Number(M.value.split("-")[0]),"month").startOf("month").toDate()):(0,s.Y7)(l()(o).add(-Number(M.value.split("-")[0]),"year").startOf("month").toDate()),t=(0,s.Y7)(o));let a=await (0,r.callApiNew)(d.PATHS.SIDIS.GET_SIDIS_HEALTH_INFO,{params:{start_date:e,end_date:t}},"sidis_frontend").then(e=>{var t;return(null==e?void 0:null===(t=e._data)||void 0===t?void 0:t[i])||[]});Z(a)};getRecords()},[M]);let B=(0,o.useMemo)(()=>{let e=new Date;if(l()(M).isValid()){let e=[];try{e=(0,m.B)(l()(M).add(-10,"day"),l()(M))}catch(e){}return e.map((t,i)=>{var o,a;let n=t.getDate(),r=(null===(o=w.find(e=>new Date(e.created_at).toDateString()===t.toDateString()))||void 0===o?void 0:o[g])||null;return{score:0!==i||r?r:(null===(a=w.find(e=>new Date(e.created_at).getTime(){Object.assign(o,{[l()(e).format("MM/YYYY")]:[]})}),w.forEach(e=>{let t=l()(e.created_at).format("MM/YYYY");o[t].push(e)}),Object.entries(o).map((e,t)=>{let[o,a]=e,l=o.split("/")[0],n=a.reduce((e,t)=>e+=t[g],0)/a.length;return{score:a.length?n.toFixed(3):null,date:"01"===l||t===i.length-1?o:l,tooltipLabel:o}})}if("year"===v.value){let t=Number(M.value.split("-")[0]),i=(0,m.B)(l()(e).add(-t,"year").startOf("year"),l()(e)),o={};return i.forEach(e=>{Object.assign(o,{[l()(e).format("YYYY")]:[]})}),w.forEach(e=>{let t=l()(e.created_at).format("YYYY");o[t].push(e)}),Object.entries(o).map(e=>{let[t,i]=e,o=i.reduce((e,t)=>e+=t[g],0)/i.length;return{score:i.length?o.toFixed(3):null,date:t,tooltipLabel:t}})}return[]},[w]);return{chartTypeOptions:u,recordMonthOptions:p,recordYearOptions:b,activeChartType:v,setActiveChartType:f,recordPeriod:M,setRecordPeriod:y,records:w,setRecords:Z,toolsRecordChartData:B}}},Xbyz:function(e,t,i){i.d(t,{k:function(){return WeightManagement}});var o=i("BGKE"),a=i("q1tI"),l=i("dDsW"),n=i("ikdH"),r=i("V50O"),d=i("2Qp+"),s=i("Ht1B"),c=i("Eso5"),m=i("0D4Z"),h=i("OAL+"),g=i("zb6h"),u=i("raAP"),p=i("hXNO"),b=i("P5LW"),v=i("8vdq"),f=i("1WmY"),M=(0,i("/npG").k)((e,t)=>{var i,o;let{color:a="blue",hasItems:l,type:n}=t;return{goalBox:{border:"1px solid ".concat((null===(i=e.colors[a])||void 0===i?void 0:i[2])||""),borderRadius:12,backgroundColor:l?e.colors.neutral[0]:"#fff",display:"flex",flexDirection:"column"},goalHeader:{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",backgroundColor:(null===(o=e.colors[a])||void 0===o?void 0:o[0])||"",padding:12,display:"flex",alignItems:"center",gap:12},goalInfo:{width:"100%"},goalThumb:{width:40,height:40,backgroundColor:"#fff",borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center",flexShrink:0,[e.fn.largerThan("sm")]:{width:48,height:48}},goalThumbImg:{width:24},goalBody:{padding:12,backgroundColor:"#fff"},goalItem:{paddingLeft:16,paddingTop:12,paddingBottom:12,position:"relative","&:before":{content:'""',borderLeft:"2px solid ".concat(e.fn.primaryColor()),position:"absolute",top:12,bottom:12,left:0}},goalItemTitle:{},goalItemDesc:{},goalFooter:{borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit",padding:12,display:"flex",alignItems:"center",gap:24,..."bmi"===n&&{flexDirection:"column",alignItems:"flex-start",gap:16},[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:8}},btn:{fontWeight:"".concat(f.F.semiBold," !important"),fontSize:"14px !important",[e.fn.smallerThan("sm")]:{width:"100%"}},disclaimerIcon:{flexShrink:0},disclaimerBox:{display:"flex",gap:8,borderRadius:4,backgroundColor:e.colors.neutral[0],padding:12}}});let Wrapper=e=>{var t;let{loading:i,calories:a,className:f,content:y,showDisclaimer:w,type:Z,ctaText:B,ctaUrl:T,ctaColor:N,...D}=e,{formatMessage:S}=(0,l.Z)(),{locale:P}=(0,b.h)(),W=(0,u.U)(),{getHealthToolLink:k}=(0,n.u)(P),{title:x,description:I,color:A,items:L=[]}=y||{},C=L.length>0,{classes:H,cx:E,theme:V}=M({color:i?"gray":A,hasItems:C,type:Z},{name:"WeightManagement"}),O=(0,p.d)();return i?(0,o.BX)(c.x,{className:E(f,H.goalBox),...D,children:[(0,o.BX)(c.x,{className:H.goalHeader,children:[(0,o.tZ)(c.x,{className:H.goalThumb,children:(0,o.tZ)(m.O,{height:O?20:24,width:O?20:24})}),(0,o.tZ)(c.x,{className:H.goalInfo,children:(0,o.BX)(h.K,{spacing:8,children:[(0,o.tZ)(m.O,{height:18,width:"100%"}),(0,o.tZ)(m.O,{height:18,width:"20%"})]})})]}),(0,o.tZ)(c.x,{className:H.goalBody,children:(0,o.BX)(h.K,{spacing:8,children:[(0,o.tZ)(m.O,{height:18,width:"100%"}),(0,o.tZ)(m.O,{height:18,width:"100%"}),(0,o.tZ)(m.O,{height:18,width:"100%"}),(0,o.tZ)(m.O,{height:18,width:"100%"}),(0,o.tZ)(m.O,{height:18,width:"100%"}),(0,o.tZ)(m.O,{height:18,width:"20%"})]})})]}):y?(0,o.BX)(o.HY,{children:[(0,o.BX)(c.x,{className:E(f,H.goalBox),...D,children:[(0,o.BX)(c.x,{className:H.goalHeader,children:[(0,o.tZ)(c.x,{className:H.goalThumb,children:(0,o.tZ)(s.Z,{size:O?20:24,color:null===(t=V.colors[A])||void 0===t?void 0:t[6]})}),(0,o.BX)(c.x,{className:H.goalInfo,children:[(0,o.tZ)(r.T,{size:O?"s3":"s2",dangerouslySetInnerHTML:{__html:x}}),C&&(0,o.tZ)(r.T,{size:"p4",as:"div",dangerouslySetInnerHTML:{__html:I}})]})]}),C&&(0,o.tZ)(c.x,{className:H.goalBody,children:L.map((e,t)=>(0,o.BX)(c.x,{className:H.goalItem,children:[(0,o.tZ)(r.T,{size:"p4",as:"div",className:H.goalItemTitle,dangerouslySetInnerHTML:{__html:e.title}}),(0,o.tZ)(r.T,{size:"s3",as:"div",className:H.goalItemDesc,dangerouslySetInnerHTML:{__html:e.description}})]},t))}),(0,o.BX)(c.x,{className:H.goalFooter,children:[(0,o.tZ)(r.T,{size:C?"n1":"p4",dangerouslySetInnerHTML:{__html:C?S({id:"bmrPage.calDisclaimer"}):I}}),"bmr"===Z?(0,o.tZ)(d.B,{className:H.btn,size:"md","data-event-category":"Health Tool","data-event-action":"Calculate your BMI","data-event-label":W,color:N,onClick:()=>window.location.href=T||k(v.QO.BMI),children:B||S({id:"bmrPage.calcIdeaWeight"})}):(0,o.tZ)(d.B,{className:H.btn,size:"md","data-event-category":"Health Tool","data-event-action":"Calculate your BMR","data-event-label":W,color:N,onClick:()=>window.location.href=T||k(v.QO.BMR),children:B||S({id:"weightMangement.checkWeightManagePlan"})})]})]}),w&&(0,o.BX)(c.x,{className:H.disclaimerBox,children:[(0,o.tZ)(g.Z,{size:18,className:H.disclaimerIcon}),(0,o.tZ)(r.T,{size:"n1",children:S({id:"bmrPage.weightgainDisclaimer"})})]})]}):null},WeightManagement=e=>null;WeightManagement.Bmi=e=>{var t;let{loading:i,calories:n,recommendMinWeight:r,recommendMaxWeight:d,unit:s}=e,{formatMessage:c}=(0,l.Z)(),m="imperial"===s?"lbs":"kg",h=(0,a.useMemo)(()=>{var e;return["obese_1","obese_2","obese_3"].includes(null==n?void 0:null===(e=n.bmi)||void 0===e?void 0:e.level)},[n]),g=(0,a.useMemo)(()=>({underweight:{title:c({id:"weightMangement.underweightTitle"}),description:c({id:"weightMangement.recWeightDesc"},{recommended_weight:"".concat(r," - ").concat(d,""),unit:m}),color:"blue"},healthy:{title:c({id:"weightMangement.healthyTitle"}),description:c({id:"weightMangement.recWeightDesc"},{recommended_weight:"".concat(r," - ").concat(d,""),unit:m}),color:"green"},overweight:{title:c({id:"weightMangement.overweightTitle"}),description:c({id:"weightMangement.recWeightDesc"},{recommended_weight:"".concat(r," - ").concat(d,""),unit:m}),color:"blue"},obese:{title:c({id:"weightMangement.obeseTitle"}),description:c({id:"weightMangement.obeseDesc"}),color:"yellow"}}),[r,d,m]),u=g[h?"obese":null==n?void 0:null===(t=n.bmi)||void 0===t?void 0:t.level];return(0,o.tZ)(Wrapper,{loading:i,content:u,type:"bmi",...e})},WeightManagement.Bmr=e=>{var t,i,n;let{calories:r,tdee:d}=e,{formatMessage:s}=(0,l.Z)(),{locale:c}=(0,b.h)(),m=(0,a.useMemo)(()=>{var e;return["obese_1","obese_2","obese_3"].includes(null==r?void 0:null===(e=r.bmi)||void 0===e?void 0:e.level)},[r]),h=(null==r?void 0:null===(t=r.bmr)||void 0===t?void 0:t.bmr)||0,g=(0,a.useMemo)(()=>({underweight:{title:s({id:"weightMangement.bmrUnderweightTitle"}),description:s({id:"weightMangement.underweightDesc"}),items:[{title:s({id:"weightMangement.underweightGentleWeightTitle"}),description:s({id:"common.kcalPerDayContent"},{from:Number(d+250).toLocaleString(c),to:Number(d+500).toLocaleString(c)})},{title:s({id:"weightMangement.underweightModWeightTitle"}),description:s({id:"common.kcalPerDayContent"},{from:Number(d+500).toLocaleString(c),to:Number(d+1e3).toLocaleString(c)})}],color:"blue"},healthy:{title:s({id:"weightMangement.bmrHealthyTitle"}),description:s({id:"weightMangement.healthyDesc"}),items:[{title:s({id:"weightMangement.healthyMaintainWeight"}),description:s({id:"common.kcalPerDayVal"},{value:Number(d).toLocaleString(c)})}],color:"green"},overweight:{title:s({id:"weightMangement.bmrOverweightTitle"}),description:s({id:"weightMangement.overweightDesc"}),items:d-1e3>h?[{title:s({id:"weightMangement.overweightGentleWeightTitle"}),description:s({id:"common.kcalPerDayContent"},{from:Number(d-500).toLocaleString(c),to:Number(d-250).toLocaleString(c)})},{title:s({id:"weightMangement.overweightModWeightTitle"}),description:s({id:"common.kcalPerDayContent"},{from:Number(d-1e3).toLocaleString(c),to:Number(d-500).toLocaleString(c)})}]:d-500>h&&d-1e3<=h?[{title:s({id:"weightMangement.overweightGentleWeightTitle"}),description:s({id:"common.kcalPerDayContent"},{from:Number(d-500).toLocaleString(c),to:Number(d-250).toLocaleString(c)})},{title:s({id:"weightMangement.overweightModWeightTitle"}),description:s({id:"common.kcalPerDayContent"},{from:Number(h).toLocaleString(c),to:Number(d-500).toLocaleString(c)})}]:d-250>h&&d-500<=h?[{title:s({id:"weightMangement.overweightGentleWeightTitle"}),description:s({id:"common.kcalPerDayContent"},{from:Number(h).toLocaleString(c),to:Number(d-250).toLocaleString(c)})}]:[{title:s({id:"weightMangement.overweightVeryGentleWeightTitle"}),description:s({id:"common.kcalPerDayContent"},{from:Number(h).toLocaleString(c)})}],color:"blue"},obese:{title:s({id:"weightMangement.bmrObeseTitle"}),description:s({id:"weightMangement.obeseDesc"}),color:"yellow"}}),[r,d]),u=g[m?"obese":null==r?void 0:null===(i=r.bmi)||void 0===i?void 0:i.level];return(0,o.tZ)(Wrapper,{content:u,showDisclaimer:(null==r?void 0:null===(n=r.bmi)||void 0===n?void 0:n.level)==="overweight"||m,type:"bmr",...e})}},Lcxk:function(e,t,i){i.d(t,{I:function(){return HelloWellnessPage}});var o=i("BGKE"),a=i("q1tI"),l=i("1WmY"),n=i("Eso5"),r=i("Vvt1"),d=i.n(r),s=i("dDsW"),c=i("gHFm"),m=i("1LUM"),h=i("CBW8"),g=i("LplW"),u=i("RE/H"),p=i("2CO7"),b=i("2kea"),v=i("ePrd"),f=i("du+H"),M=i("Uj9i"),y=i("CW7V"),w=i("2su4"),Z=i("hXNO"),B=i("6vHH"),T=i("P5LW"),N=i("rIrU"),D=i("rEaw"),S=i("uoRd"),P=i("VIdu"),W=i("wCyE");let k=d()(()=>Promise.all([i.e(9409),i.e(6259),i.e(1818),i.e(7519),i.e(761),i.e(2189),i.e(5231),i.e(7797),i.e(5454),i.e(106),i.e(3684),i.e(5349),i.e(4148),i.e(2509),i.e(1533),i.e(1108),i.e(9124),i.e(4190),i.e(932),i.e(4276),i.e(5464),i.e(6509),i.e(8674),i.e(9353),i.e(3929),i.e(137),i.e(4414),i.e(7613),i.e(8098),i.e(3416),i.e(3012),i.e(1570),i.e(6192),i.e(6918),i.e(5965),i.e(3301),i.e(1413),i.e(2138),i.e(9467),i.e(4467),i.e(6966),i.e(5243),i.e(9862),i.e(3800),i.e(8132),i.e(1375),i.e(4561),i.e(1193),i.e(2094),i.e(1797),i.e(1217),i.e(5480),i.e(731),i.e(2050),i.e(2008),i.e(8469),i.e(8214),i.e(1482),i.e(6817),i.e(467),i.e(5951),i.e(9357),i.e(747),i.e(5675),i.e(6753),i.e(4802),i.e(3046),i.e(5745),i.e(3437),i.e(252),i.e(1152),i.e(9424),i.e(5702),i.e(8922),i.e(6399),i.e(8639),i.e(7082),i.e(553),i.e(9309),i.e(7221),i.e(2853),i.e(8232),i.e(3257),i.e(6611),i.e(7538),i.e(6894),i.e(5341),i.e(3566),i.e(4846),i.e(2233),i.e(1058),i.e(5638),i.e(3295),i.e(1538),i.e(6629),i.e(7152),i.e(5684),i.e(2574),i.e(2513),i.e(5238),i.e(2039),i.e(6962),i.e(8680),i.e(4050),i.e(5465),i.e(6638),i.e(7741),i.e(1137),i.e(2433),i.e(9689),i.e(5385),i.e(3564),i.e(3158),i.e(8320),i.e(5641),i.e(7454),i.e(7004),i.e(4758),i.e(6219),i.e(17),i.e(8990),i.e(4067),i.e(9487),i.e(5297),i.e(9931),i.e(9083),i.e(1520),i.e(270),i.e(7596),i.e(8217),i.e(7543),i.e(2835),i.e(2507),i.e(6885),i.e(7859),i.e(5970),i.e(2730),i.e(2399),i.e(5530),i.e(4385),i.e(2840),i.e(4870),i.e(9922),i.e(3133),i.e(612),i.e(2002),i.e(1880),i.e(7471),i.e(7165),i.e(8854),i.e(5451),i.e(8612)]).then(i.bind(i,"ggup")).then(e=>e.CategorySubCategory),{loadableGenerated:{webpack:()=>["ggup"]}}),x=d()(()=>Promise.all([i.e(9409),i.e(6259),i.e(1818),i.e(7519),i.e(761),i.e(2189),i.e(5231),i.e(7797),i.e(5454),i.e(106),i.e(3684),i.e(5349),i.e(4148),i.e(2509),i.e(1533),i.e(1108),i.e(9124),i.e(4190),i.e(932),i.e(4276),i.e(5464),i.e(6509),i.e(8674),i.e(9353),i.e(3929),i.e(137),i.e(4414),i.e(7613),i.e(8098),i.e(3416),i.e(3012),i.e(1570),i.e(6192),i.e(6918),i.e(5965),i.e(3301),i.e(1413),i.e(2138),i.e(9467),i.e(4467),i.e(6966),i.e(5243),i.e(9862),i.e(3800),i.e(8132),i.e(1375),i.e(4561),i.e(1193),i.e(2094),i.e(1797),i.e(1217),i.e(5480),i.e(731),i.e(2050),i.e(2008),i.e(8469),i.e(8214),i.e(1482),i.e(6817),i.e(467),i.e(5951),i.e(9357),i.e(747),i.e(5675),i.e(6753),i.e(4802),i.e(3046),i.e(5745),i.e(3437),i.e(252),i.e(1152),i.e(9424),i.e(5702),i.e(8922),i.e(6399),i.e(8639),i.e(7082),i.e(553),i.e(9309),i.e(7221),i.e(2853),i.e(8232),i.e(3257),i.e(6611),i.e(7538),i.e(6894),i.e(5341),i.e(3566),i.e(4846),i.e(2233),i.e(1058),i.e(5638),i.e(3295),i.e(1538),i.e(6629),i.e(7152),i.e(5684),i.e(2574),i.e(2513),i.e(5238),i.e(2039),i.e(6962),i.e(8680),i.e(4050),i.e(5465),i.e(6638),i.e(7741),i.e(1137),i.e(2433),i.e(9689),i.e(5385),i.e(3564),i.e(3158),i.e(8320),i.e(5641),i.e(7454),i.e(7004),i.e(4758),i.e(6219),i.e(17),i.e(8990),i.e(4067),i.e(9487),i.e(5297),i.e(9931),i.e(9083),i.e(1520),i.e(270),i.e(7596),i.e(8217),i.e(7543),i.e(2835),i.e(2507),i.e(6885),i.e(7859),i.e(5970),i.e(2730),i.e(2399),i.e(5530),i.e(4385),i.e(2840),i.e(4870),i.e(9922),i.e(3133),i.e(612),i.e(2002),i.e(1880),i.e(7471),i.e(7165),i.e(8854),i.e(5451),i.e(8612),i.e(2819),i.e(7695),i.e(9903)]).then(i.bind(i,"FxIt")),{loadableGenerated:{webpack:()=>["FxIt"]}}),I="hello-wellness",HelloWellnessPage=e=>{var t,i,r,d;let{landingPage:A,helloWellnessCategory:L,footerInfo:C,dataNavMenuContent:H,disableAds:E=!0}=e,V=(0,Z.d)(),O=(0,S.P)(),X=!!(null==O?void 0:null===(t=O.settings)||void 0===t?void 0:t.hideAdvertisements),{formatMessage:_}=(0,s.Z)(),{locale:Y,router:{asPath:U}}=(0,T.h)(),R=N.CX[Y].SITE_NAME_FORMATTED,z="".concat(N.sb,"/hello-wellness"),F=(null==A?void 0:A.pageName)||(null==L?void 0:L.categoryName)||"Hello Wellness",G=(null==A?void 0:A.pageDescription)||"",K=(null==A?void 0:A.icon)||(null==L?void 0:L.icon)||"",j=(null==A?void 0:A.bannerDesktop)||"",q=(null==A?void 0:A.bannerMobile)||(null==A?void 0:A.bannerDesktop)||"",Q=(0,a.useMemo)(()=>{var e;return(null==A?void 0:null===(e=A.sectionCategory)||void 0===e?void 0:e.categories)||[]},[A]),J=(null==A?void 0:null===(i=A.sectionCategory)||void 0===i?void 0:i.headerForCategoriesList)||_({id:"categories.start.title",defaultMessage:"Don't know where to start?"}),$=(0,a.useMemo)(()=>({categoryName:F,displayName:F,iconUrl:K,permalink:z,permalinkDecode:z,termId:0,slug:"hello-wellness"}),[F,K,z]),ee=(0,a.useMemo)(()=>{let e=null==A?void 0:A.sectionArticle;return e?"article_list"===e.displayType?e.articleList||[]:(e.featureImages||[]).map((e,t)=>(0,W.wH)(e,$,t)):[]},[null==A?void 0:A.sectionArticle,$]),et=(0,a.useMemo)(()=>{if(!(null==A?void 0:A.enableSectionBanner)||!A.sectionBanner)return null;let{title:e,description:t,backgroundColor:i,...o}=A.sectionBanner;return{...o,title:e,description:t,backgroundColor:i,sessionLayout:D.FF.CTA_BANNER,icon:"",idScroll:"",wrapperProps:{title:e,description:t,icon:"",bgColor:i}}},[A]),ei=(0,P.od)({countryAdTag:(0,P.Em)(Y,{isMobile:!0}),contentAdTag:(0,P.WV)(Y,z)}),eo=(0,P.od)({countryAdTag:(0,P.Em)(Y,{isMobile:!1}),contentAdTag:(0,P.WV)(Y,z)}),ea=(0,P.od)({countryAdTag:(0,P.Em)(Y,{isMobile:V}),contentAdTag:(0,P.WV)(Y,z)}),el=(0,B.Y)({}),en=(0,a.useMemo)(()=>{{let e=document.querySelector('meta[name="content_id"]');return null==e?void 0:e.content}},[]);return(0,o.tZ)(h.L,{hideAds:X,children:(0,o.BX)(w.x,{title:"".concat(F," | ").concat(R),description:G||_({id:"categories.seo.description"},{sitename:R}),image:K||"".concat(N.Nr,"/bookDoctor.svg"),SEOData:{isIndexable:!0},footerInfo:null!=C?C:void 0,dataNavMenuContent:H,languageOptions:(0,w.c)(Y,U),children:[!E&&(0,o.tZ)(h.o,{children:(0,o.tZ)(f.MastheadAd,{adUnitPath:ea,initialSticky:!0,className:"category-masthead",hasPlaceholder:el})}),(0,o.BX)(y.Di,{"data-type-mobile":V,children:[(0,o.BX)(y.lK,{"data-type-mobile":V,children:[(0,o.BX)(c.W,{children:[(0,o.tZ)(b.d,{pageItem:[{label:F,value:z}]}),(0,o.tZ)(u.f,{variant:"helloWellness",imgBannerSrc:K,categoryName:F,description:G,coverBannerDesktop:j,coverBannerMobile:q,sponsorLogo:null==O?void 0:null===(d=O.settings)||void 0===d?void 0:null===(r=d.pinArticleForEachCategory)||void 0===r?void 0:r.sponsorLogo})]}),et?(0,o.tZ)(l.T,{variant:l.C.LEADGEN,children:(0,o.tZ)(v.t,{data:et,eventCategory:"CTA Banner",mobileCarouselMode:"list",sectionPadding:[40,80],headerText:{titleSize:["h3","h3"],descriptionSize:["p2","p2"],align:["left","left"],gap:[2,4]}})}):null,!E&&(0,o.tZ)("div",{className:"banner-ad mobile-only",children:(0,o.tZ)(h.o,{children:V&&(0,o.tZ)(m.AdBlock,{adUnitPath:ei,size:[[300,250],[300,600]],divId:"div-gpt-ad-topbanner-mobile-".concat(I),pos:["TopBanner"],contentId:en})})}),(0,o.BX)(c.W,{children:[Q.length>0?(0,o.tZ)(n.x,{sx:e=>({paddingTop:40,[e.fn.largerThan("sm")]:{paddingTop:80}}),children:(0,o.tZ)(k,{isMobile:V,subCategories:Q,categoryName:F,title:J,disableCarousel:!0})}):null,ee.length>0?(0,o.BX)(y.$h,{"data-type-mobile":V,className:"mt-8",children:[(0,o.tZ)("div",{className:"articles",style:{position:"relative",...E?{width:"100%"}:null},children:(0,o.tZ)(p.m,{posts:ee,category:$,eventCategory:"Recommend Article",desktopColumns:E?2:1,disableAds:!0})}),!E&&(0,o.tZ)("div",{className:"right-section",children:!V&&(0,o.tZ)(h.o,{children:(0,o.tZ)("div",{className:"top-ad",children:(0,o.tZ)(m.AdBlock,{adUnitPath:eo,size:[[300,250]],divId:"div-gpt-ad-topbanner-desktop-".concat(I),pos:["TopBanner"],contentId:en})})})})]}):null]})]}),!E&&(0,o.tZ)(h.o,{children:(0,o.tZ)(g.E,{divId:"div-gpt-ad-category-sticky-".concat(I),className:"article-bottom-ad",adUnitPath:ea,isMobile:V})}),!E&&(0,o.tZ)(M.OutOfPageAd,{id:"div-gpt-out-of-page-".concat(I),className:"article-gpt-out-of-page-ad",adUnitPath:ea},I),V?(0,o.tZ)(x,{}):null]})]})})}},IT88:function(e,t,i){i.d(t,{Y:function(){return useHomeSpotlights}});var o=i("q1tI"),a=i("xiXp"),l=i("9Z33");function useHomeSpotlights(e){let{spotlights:t}=e,[i,n]=(0,o.useState)(t);(0,o.useEffect)(()=>{let e=!1;return(0,a.t)().then(t=>{!e&&t&&n(t)}),()=>{e=!0}},[]);let r=(0,o.useMemo)(()=>i.filter(l.J),[i]);return(0,o.useMemo)(()=>({spotlights:r}),[r])}},H31P:function(e,t,i){i.d(t,{iH:function(){return d},mY:function(){return s}});var o=i("rBCA"),a=i("iBNF"),l=i("q+5q"),n=i("mYVa"),r=i("gHFm");let d=(0,o.Z)("div",{target:"eu92r620"})("overflow:visible;min-height:100vh;.banner{background-color:",a.r.colors.gray100,";}.home-mobile-top-ad{",l.M.mbDown,"{margin-top:24px;}}.center-ad{margin-left:auto;margin-right:auto;margin-top:24px;}.bottom-ad{margin-bottom:40px;}.article-bottom-ad{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 );}",l.M.mbUp,"{margin-bottom:0px;}}");a.r.colors.white,a.r.colors.white,l.M.mbUp,a.r.sizes.fsHeading6,l.M.mbUp,l.M.mbDown,l.M.mbUp,l.M.mbDown,l.M.mbUp,a.r.borderRadius,l.M.mbUp,l.M.mbDown,l.M.mbUp,l.M.mbDown,l.M.mbUp,l.M.mbDown;let s=(0,o.Z)(r.W,{target:"eu92r627"})("padding-left:",(0,n.h)(21),";padding-right:",(0,n.h)(21),";",l.M.mbDown,"{padding:0;}");(0,n.h)(17),(0,n.h)(24),a.r.colors.gray1000,l.M.mbUp,(0,n.h)(26),(0,n.h)(32)},hntD:function(e,t,i){i.d(t,{x:function(){return PageBody}});var o=i("BGKE"),a=i("P5LW"),l=i("rEaw"),n=i("q1tI"),r=i("7+rk"),d=i("WsKU"),s=i("OAL+"),c=i("iuhU"),m=i("mYVa"),h=i("Vvt1"),g=i.n(h),u=i("KrP5"),p=i("7kX4"),b=i("GLmz"),v=i("4jlW"),f=i("D0yT"),M=i("Nd2E"),y=i("tgO5"),w=i("L3dB"),Z=i("of2B"),B=i("AVNT"),T=i("CBW8"),N=i("OzKP"),D=i("5VjO"),S=i("7a+s"),P=i("FxIt"),W=i("hXNO"),k=i("6vHH"),x=i("rIrU"),I=i("KIDP"),A=i("VIdu"),L=i("92VQ"),C=i("IT88");i("AeFk");var H=i("rBCA"),E=i("iBNF"),V=i("q+5q");E.r.colors.gray100,E.r.colors.gray800;let O=(0,H.Z)("div",{target:"e122jf3r0"})("display:none;width:100%;height:",(0,m.h)(12),";background-color:",E.r.colors.neutral50,";border-bottom:1px solid ",E.r.colors.neutral100,";",V.M.smbDown,"{display:block;}");var X=i("H31P"),_=i("Eso5");let SectionWrapper=e=>{let{children:t,visible:i,...a}=e;return i?(0,o.tZ)(_.x,{...a,children:(0,o.tZ)(X.mY,{children:t})}):null};var Y=i("RWiv"),U=i("du+H");let R=g()(()=>Promise.all([i.e(1255),i.e(768),i.e(5367),i.e(1041),i.e(9409),i.e(6259),i.e(1818),i.e(7519),i.e(761),i.e(2189),i.e(5231),i.e(7797),i.e(5454),i.e(106),i.e(3684),i.e(5349),i.e(4148),i.e(2509),i.e(1533),i.e(1108),i.e(9124),i.e(4190),i.e(932),i.e(4276),i.e(5464),i.e(6509),i.e(8674),i.e(9353),i.e(3929),i.e(137),i.e(4414),i.e(7613),i.e(8098),i.e(3416),i.e(3012),i.e(1570),i.e(6192),i.e(6918),i.e(5965),i.e(3301),i.e(1413),i.e(2138),i.e(9467),i.e(4467),i.e(6966),i.e(5243),i.e(9862),i.e(3800),i.e(8132),i.e(1375),i.e(4561),i.e(1193),i.e(2094),i.e(1797),i.e(1217),i.e(5480),i.e(731),i.e(2050),i.e(2008),i.e(8469),i.e(8214),i.e(1482),i.e(6817),i.e(467),i.e(5951),i.e(9357),i.e(747),i.e(5675),i.e(6753),i.e(4802),i.e(3046),i.e(5745),i.e(3437),i.e(252),i.e(1152),i.e(9424),i.e(5702),i.e(8922),i.e(6399),i.e(8639),i.e(7082),i.e(553),i.e(9309),i.e(7221),i.e(2853),i.e(8232),i.e(3257),i.e(6611),i.e(7538),i.e(6894),i.e(5341),i.e(3566)]).then(i.bind(i,"iJ4T")).then(e=>e.AdBlock),{loadableGenerated:{webpack:()=>[null]},ssr:!1}),z=g()(()=>Promise.all([i.e(1255),i.e(768),i.e(5367),i.e(1041),i.e(9409),i.e(6259),i.e(1818),i.e(7519),i.e(761),i.e(2189),i.e(5231),i.e(7797),i.e(5454),i.e(106),i.e(3684),i.e(5349),i.e(4148),i.e(2509),i.e(1533),i.e(1108),i.e(9124),i.e(4190),i.e(932),i.e(4276),i.e(5464),i.e(6509),i.e(8674),i.e(9353),i.e(3929),i.e(137),i.e(4414),i.e(7613),i.e(8098),i.e(3416),i.e(3012),i.e(1570),i.e(6192),i.e(6918),i.e(5965),i.e(3301),i.e(1413),i.e(2138),i.e(9467),i.e(4467),i.e(6966),i.e(5243),i.e(9862),i.e(3800),i.e(8132),i.e(1375),i.e(4561),i.e(1193),i.e(2094),i.e(1797),i.e(1217),i.e(5480),i.e(731),i.e(2050),i.e(2008),i.e(8469),i.e(8214),i.e(1482),i.e(6817),i.e(467),i.e(5951),i.e(9357),i.e(747),i.e(5675),i.e(6753),i.e(4802),i.e(3046),i.e(5745),i.e(3437),i.e(252),i.e(1152),i.e(9424),i.e(5702),i.e(8922),i.e(6399),i.e(8639),i.e(7082),i.e(553),i.e(9309),i.e(7221),i.e(2853),i.e(8232),i.e(3257),i.e(6611),i.e(7538),i.e(6894),i.e(5341),i.e(3566)]).then(i.bind(i,"iJ4T")).then(e=>e.FixedBottomAdBlock),{loadableGenerated:{webpack:()=>[null]},ssr:!1}),F=g()(()=>Promise.all([i.e(4846),i.e(2233),i.e(1058),i.e(5638),i.e(3295),i.e(1538),i.e(6629),i.e(7152),i.e(5684),i.e(2574),i.e(2513),i.e(5238),i.e(2039),i.e(6962),i.e(8680),i.e(4050),i.e(5465),i.e(6638),i.e(7741),i.e(1137),i.e(2433),i.e(9689),i.e(5385),i.e(3564),i.e(3158),i.e(8320),i.e(5641),i.e(7454),i.e(7004),i.e(4758),i.e(6219),i.e(17),i.e(8990),i.e(4067),i.e(9487),i.e(5297),i.e(9931),i.e(9083),i.e(1520),i.e(270),i.e(7596),i.e(8217),i.e(7543),i.e(2835),i.e(2507),i.e(6885),i.e(7859),i.e(5970),i.e(2730),i.e(2399),i.e(5530),i.e(4385),i.e(2840),i.e(4870),i.e(9922),i.e(3133),i.e(612),i.e(2002),i.e(1880),i.e(7471),i.e(7165),i.e(8854),i.e(5451),i.e(8612)]).then(i.bind(i,"Uj9i")).then(e=>e.OutOfPageAd),{loadableGenerated:{webpack:()=>["Uj9i"]},ssr:!1}),HomePage=e=>{var t,i,h;let{banner:g,trendingArticles:H,healthTools:E,healthyLivingArticles:V,drugArticles:_,pregnancyArticles:G,expertsArticles:K,expertHeading:j,spotlights:q,medicalReviewed:Q,footerBanner:J,homeCommunityData:$,homeCommunities:ee,homeVideos:et,newsEventsTitle:ei,homeHealthTool:eo,homeHasMostReadPosts:ea,homeCategories:el,mastheadAds:en,hideAllAdvertisements:er,homeClinicLocator:ed}=e,es=(0,W.d)(),{locale:ec}=(0,a.h)(),em=(0,k.Y)(en||{}),eh=!er,eg=(0,n.useRef)(null),{spotlights:eu}=(0,C.Y)({spotlights:q}),ep="my-MM"===ec||"km-KH"===ec,eb="th-TH"===ec||"id-ID"===ec,ev=(0,A.od)({countryAdTag:(0,A.Em)(ec,{isMobile:es}),contentAdTag:{result:"HomePage",redundant:!0}}),ef=ec!==l.MV.Cambodia&&ec!==l.MV.Myanmar&&ec!==l.MV.Vietnam&&ec!==l.MV.Malaysia,eM=I.l.includes(ec),ey=!!((null==g?void 0:g.type)!=="banner"&&(null==g?void 0:null===(t=g.banners)||void 0===t?void 0:t.title)),ew=(0,n.useMemo)(()=>[V,_,G].filter(e=>{let{posts:t}=e;return!!(null==t?void 0:t.length)}),[V,_,G]),eZ=!!eu.length,eB=d.V.includes(ec)&&!!(null==et?void 0:null===(i=et.videos)||void 0===i?void 0:i.length),eT=!!E.length,eN=!!ew.length,eD=!!K.length,eS=!!Q.length,eP=ey?null:eZ?"spotlight":eB?"videos":eT?"health-tools":eN?"feature-articles":eD?"experts":eS?"trustful":null;return(0,o.BX)(o.HY,{children:[(0,o.BX)(X.iH,{children:[eh&&(0,o.BX)(T.o,{children:[ef&&(0,o.tZ)(Y.I,{adUnitPath:ev}),(0,o.tZ)(U.MastheadAd,{adUnitPath:ev,className:"home-masthead",hasPlaceholder:eh&&em})]}),(0,o.tZ)("div",{ref:eg}),(0,o.BX)(s.K,{sx:e=>({gap:12,[e.fn.largerThan("sm")]:{gap:40}}),children:[(0,o.BX)(s.K,{sx:e=>({gap:12,paddingTop:ec===l.MV.Vietnam||ec===l.MV.Malaysia?0:12,[e.fn.largerThan("sm")]:{gap:24}}),children:[(0,o.tZ)(SectionWrapper,{visible:eM,children:ec===l.MV.Vietnam||ec===l.MV.Malaysia?(0,o.tZ)(b.D,{className:"block md:!p-0"}):(0,o.tZ)(b.a,{categories:el,className:"hidden md:block"})}),(0,o.tZ)(SectionWrapper,{visible:!eM,children:(0,o.tZ)(b.a,{categories:el})}),(0,o.tZ)(SectionWrapper,{visible:es&&ec===l.MV.Vietnam,children:(0,o.tZ)(r.H,{className:"!px-4",onClick:()=>(0,L.X)(x.k2),image:"".concat(x.sb,"/images/hpv-screener.png")})})]}),(0,o.tZ)(u.F,{isMobile:es,homeBanner:g,container:(null==g?void 0:g.type)==="banner"?SectionWrapper:void 0,containerProps:{visible:!0}}),(0,o.tZ)(SectionWrapper,{visible:[...H,...ei].length>0,children:(0,o.tZ)(Z.B,{trendingArticles:H,newsEventsTitle:ei,homeHasMostReadPosts:ea})}),(0,o.tZ)(SectionWrapper,{visible:!!eu.length,children:(0,o.tZ)(w.c,{headingAs:"spotlight"===eP?"h1":void 0,spotlights:eu})}),(0,o.tZ)(SectionWrapper,{visible:d.V.includes(ec)&&!!(null==et?void 0:null===(h=et.videos)||void 0===h?void 0:h.length),children:(0,o.tZ)(N.U,{videos:null==et?void 0:et.videos,gridLayout:null==et?void 0:et.gridLayout,headingAs:"videos"===eP?"h1":void 0})}),(0,o.tZ)(SectionWrapper,{visible:d.a.includes(ec)&&!!(null==ee?void 0:ee.length),children:(0,o.tZ)(v.n,{isMobile:es,data:$,communities:ee,className:(0,c.default)({"md:!pt-10":!(null==K?void 0:K.length)})})}),eh&&es&&eb&&(0,o.BX)(T.o,{children:[(0,o.tZ)(R,{adUnitPath:ev,size:[300,250],divId:"div-gpt-ad-home-mid-mobile-alt",pos:["MidBanner1"],style:{paddingBlock:(0,m.h)(12),maxWidth:"100%"}}),(0,o.tZ)(O,{style:{borderBottom:"none"}})]}),(0,o.tZ)(SectionWrapper,{visible:!!E.length,children:(0,o.tZ)(y.I,{healthTools:E,embedCard:eo,headingAs:"health-tools"===eP?"h1":void 0})}),(0,o.tZ)(SectionWrapper,{visible:!!ew.length,children:(0,o.tZ)(M.B,{headingAs:"feature-articles"===eP?"h1":void 0,items:ew,sideComponent:eh?(0,o.BX)(o.HY,{children:[(0,o.tZ)(R,{adUnitPath:ev,size:[300,250],divId:"div-gpt-ad-home-sidebar1",pos:["HomeSidebar1"],style:{maxWidth:"100%"}}),!es&&(0,o.tZ)(R,{adUnitPath:ev,size:[300,250],divId:"div-gpt-ad-home-sidebar2",pos:["HomeSidebar2"],style:{maxWidth:"100%",marginTop:(0,m.h)(12)}})]}):void 0})}),(0,o.tZ)(SectionWrapper,{visible:!!K.length,children:(0,o.tZ)(f.Y,{data:{title:(null==j?void 0:j.title)||""},experts:K,headingAs:"experts"===eP?"h1":void 0})}),(0,o.tZ)(SectionWrapper,{visible:!!ed,sx:e=>({[e.fn.smallerThan("sm")]:{paddingTop:(0,m.h)(12)}}),children:ed&&(0,o.tZ)(S.S,{title:ed.title,description:ed.description,specialties:ed.specialties,dataEventCategory:"Homepage",radius:16,height:640,sidebarWidth:360,headerMapGap:20,headerPaddingMobile:16,titlePropsMobile:{size:"h4",weight:"bold"},descriptionPropsMobile:{size:"p2"},titleDescriptionGap:4})}),(0,o.tZ)(SectionWrapper,{visible:!!J,children:J&&(0,o.tZ)(p.N,{isMobile:es,banner:J})}),(0,o.tZ)(SectionWrapper,{visible:!!Q.length,children:(0,o.tZ)(B.b,{medicalReviewed:Q,headingAs:"trustful"===eP?"h1":void 0})})]}),eh&&(0,o.tZ)(T.o,{children:(ep||eb)&&(0,o.tZ)(z,{divId:"div-gpt-ad-category-sticky",adUnitPath:ev,isMobile:es,className:"article-bottom-ad"})}),es&&(0,o.tZ)(P.default,{})]}),eh&&(0,o.tZ)(F,{id:"div-gpt-out-of-page",adUnitPath:ev}),(0,o.tZ)(D.S,{})]})};var G=i("Zaz+");let K=[l.MV.Vietnam,l.MV.Malaysia],mapSharedHomePageProps=e=>({banner:e.homepageBanner,footerBanner:e.homepageFooterBanner,trendingArticles:e.trendingArticles,categories:e.categories,healthTools:e.healthTools,healthyLivingArticles:e.healthyLivingArticles,drugArticles:e.drugArticles,pregnancyArticles:e.pregnancyArticles,expertsArticles:e.expertsArticles,medicalReviewed:e.medicalReviewed,spotlights:e.spotlights,expertHeading:e.expertHeading,homeCommunityData:e.homeCommunityData,homeCommunities:e.homeCommunities,homeVideos:e.homeVideos,isMobileSsr:e.isMobileSsr,newsEventsTitle:e.newsEventsTitle,homeHealthTool:e.homeHealthTool,homeHasMostReadPosts:e.homeHasMostReadPosts,homeCategories:e.homeCategories,mastheadAds:e.mastheadAds,hideAllAdvertisements:e.hideAllAdvertisements,homeClinicLocator:e.homeClinicLocator}),renderNewHomePage=e=>(0,o.tZ)(G.U,{...mapSharedHomePageProps(e),homeListingPopular:e.homeListingPopular,homeListingVaccine:e.homeListingVaccine,homeListingScreener:e.homeListingScreener,homeCustomerFeedbacks:e.homeCustomerFeedbacks,isBottomNavigationEnabled:!1}),PageBody=e=>{let{locale:t}=(0,a.h)();return K.some(e=>e===t)?renderNewHomePage(e):(0,o.tZ)(HomePage,{...mapSharedHomePageProps(e)})}}}]);