"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 a=i("q1tI"),o=i("Wgwc"),l=i.n(o),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:o}=(0,n.Z)(),g=h[i],u=(0,a.useMemo)(()=>[{label:o({id:"tools.filter.byDay",defaultMessage:"By Day"}),value:"day"},{label:o({id:"tools.filter.byMonth",defaultMessage:"By Month"}),value:"month"},{label:o({id:"tools.filter.byYear",defaultMessage:"By Year"}),value:"year"}],[]),p=(0,a.useMemo)(()=>[{label:o({id:"tools.filter.lastXmonths",defaultMessage:"Last 3 months"},{number:3}),value:"3-month"},{label:o({id:"tools.filter.lastXmonths",defaultMessage:"Last 6 months"},{number:6}),value:"6-month"},{label:o({id:"tools.filter.lastXmonths",defaultMessage:"Last 12 months"},{number:12}),value:"12-month"}],[]),b=(0,a.useMemo)(()=>[{label:o({id:"tools.filter.lastXyears",defaultMessage:"Last 1 year"},{number:1}),value:"1-year"},{label:o({id:"tools.filter.lastXyears",defaultMessage:"Last 2 year"},{number:2}),value:"2-year"},{label:o({id:"tools.filter.lastXyears",defaultMessage:"Last 3 year"},{number:3}),value:"3-year"}],[]),[v,f]=(0,a.useState)(u[0]),[M,y]=(0,a.useState)(t&&(null==t?void 0:t.length)>0?new Date(t[0].created_at):new Date),[w,Z]=(0,a.useState)(null!=t?t:[]);(0,a.useEffect)(()=>{"day"!==v.value||l()(M).isValid()?"month"===v.value?y(p[0]):"year"===v.value&&y(b[0]):y(new Date)},[v]),(0,a.useEffect)(()=>{let getRecords=async()=>{let e="",t="",a=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()(a).add(-Number(M.value.split("-")[0]),"month").startOf("month").toDate()):(0,s.Y7)(l()(a).add(-Number(M.value.split("-")[0]),"year").startOf("month").toDate()),t=(0,s.Y7)(a));let o=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(o)};getRecords()},[M]);let B=(0,a.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 a,o;let n=t.getDate(),r=(null===(a=w.find(e=>new Date(e.created_at).toDateString()===t.toDateString()))||void 0===a?void 0:a[g])||null;return{score:0!==i||r?r:(null===(o=w.find(e=>new Date(e.created_at).getTime(){Object.assign(a,{[l()(e).format("MM/YYYY")]:[]})}),w.forEach(e=>{let t=l()(e.created_at).format("MM/YYYY");a[t].push(e)}),Object.entries(a).map((e,t)=>{let[a,o]=e,l=a.split("/")[0],n=o.reduce((e,t)=>e+=t[g],0)/o.length;return{score:o.length?n.toFixed(3):null,date:"01"===l||t===i.length-1?a:l,tooltipLabel:a}})}if("year"===v.value){let t=Number(M.value.split("-")[0]),i=(0,m.B)(l()(e).add(-t,"year").startOf("year"),l()(e)),a={};return i.forEach(e=>{Object.assign(a,{[l()(e).format("YYYY")]:[]})}),w.forEach(e=>{let t=l()(e.created_at).format("YYYY");a[t].push(e)}),Object.entries(a).map(e=>{let[t,i]=e,a=i.reduce((e,t)=>e+=t[g],0)/i.length;return{score:i.length?a.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 a=i("BGKE"),o=i("q1tI"),l=i("dDsW"),n=i("iAc4"),r=i("dDw1"),d=i("RlpF"),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("HC5J"),M=(0,i("/npG").k)((e,t)=>{var i,a;let{color:o="blue",hasItems:l,type:n}=t;return{goalBox:{border:"1px solid ".concat((null===(i=e.colors[o])||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===(a=e.colors[o])||void 0===a?void 0:a[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:o,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)(),x=(0,u.U)(),{getHealthToolLink:k}=(0,n.u)(P),{title:I,description:A,color:W,items:H=[]}=y||{},C=H.length>0,{classes:L,cx:E,theme:V}=M({color:i?"gray":W,hasItems:C,type:Z},{name:"WeightManagement"}),X=(0,p.d)();return i?(0,a.BX)(c.x,{className:E(f,L.goalBox),...D,children:[(0,a.BX)(c.x,{className:L.goalHeader,children:[(0,a.tZ)(c.x,{className:L.goalThumb,children:(0,a.tZ)(m.O,{height:X?20:24,width:X?20:24})}),(0,a.tZ)(c.x,{className:L.goalInfo,children:(0,a.BX)(h.K,{spacing:8,children:[(0,a.tZ)(m.O,{height:18,width:"100%"}),(0,a.tZ)(m.O,{height:18,width:"20%"})]})})]}),(0,a.tZ)(c.x,{className:L.goalBody,children:(0,a.BX)(h.K,{spacing:8,children:[(0,a.tZ)(m.O,{height:18,width:"100%"}),(0,a.tZ)(m.O,{height:18,width:"100%"}),(0,a.tZ)(m.O,{height:18,width:"100%"}),(0,a.tZ)(m.O,{height:18,width:"100%"}),(0,a.tZ)(m.O,{height:18,width:"100%"}),(0,a.tZ)(m.O,{height:18,width:"20%"})]})})]}):y?(0,a.BX)(a.HY,{children:[(0,a.BX)(c.x,{className:E(f,L.goalBox),...D,children:[(0,a.BX)(c.x,{className:L.goalHeader,children:[(0,a.tZ)(c.x,{className:L.goalThumb,children:(0,a.tZ)(s.Z,{size:X?20:24,color:null===(t=V.colors[W])||void 0===t?void 0:t[6]})}),(0,a.BX)(c.x,{className:L.goalInfo,children:[(0,a.tZ)(r.T,{size:X?"s3":"s2",dangerouslySetInnerHTML:{__html:I}}),C&&(0,a.tZ)(r.T,{size:"p4",as:"div",dangerouslySetInnerHTML:{__html:A}})]})]}),C&&(0,a.tZ)(c.x,{className:L.goalBody,children:H.map((e,t)=>(0,a.BX)(c.x,{className:L.goalItem,children:[(0,a.tZ)(r.T,{size:"p4",as:"div",className:L.goalItemTitle,dangerouslySetInnerHTML:{__html:e.title}}),(0,a.tZ)(r.T,{size:"s3",as:"div",className:L.goalItemDesc,dangerouslySetInnerHTML:{__html:e.description}})]},t))}),(0,a.BX)(c.x,{className:L.goalFooter,children:[(0,a.tZ)(r.T,{size:C?"n1":"p4",dangerouslySetInnerHTML:{__html:C?S({id:"bmrPage.calDisclaimer"}):A}}),"bmr"===Z?(0,a.tZ)(d.B,{className:L.btn,size:"md","data-event-category":"Health Tool","data-event-action":"Calculate your BMI","data-event-label":x,color:N,onClick:()=>window.location.href=T||k(v.QO.BMI),children:B||S({id:"bmrPage.calcIdeaWeight"})}):(0,a.tZ)(d.B,{className:L.btn,size:"md","data-event-category":"Health Tool","data-event-action":"Calculate your BMR","data-event-label":x,color:N,onClick:()=>window.location.href=T||k(v.QO.BMR),children:B||S({id:"weightMangement.checkWeightManagePlan"})})]})]}),w&&(0,a.BX)(c.x,{className:L.disclaimerBox,children:[(0,a.tZ)(g.Z,{size:18,className:L.disclaimerIcon}),(0,a.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,o.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,o.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,a.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,o.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,o.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,a.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 a=i("BGKE"),o=i("q1tI"),l=i("HC5J"),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"),x=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(8299),i.e(9265),i.e(5454),i.e(106),i.e(9803),i.e(5349),i.e(4148),i.e(2509),i.e(1533),i.e(1108),i.e(9124),i.e(4190),i.e(6535),i.e(4447),i.e(6509),i.e(8261),i.e(8674),i.e(4125),i.e(1657),i.e(7730),i.e(137),i.e(4414),i.e(1079),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"]}}),I=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(8299),i.e(9265),i.e(5454),i.e(106),i.e(9803),i.e(5349),i.e(4148),i.e(2509),i.e(1533),i.e(1108),i.e(9124),i.e(4190),i.e(6535),i.e(4447),i.e(6509),i.e(8261),i.e(8674),i.e(4125),i.e(1657),i.e(7730),i.e(137),i.e(4414),i.e(1079),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"]}}),A="hello-wellness",HelloWellnessPage=e=>{var t,i;let{landingPage:r,helloWellnessCategory:d,footerInfo:W,dataNavMenuContent:H,disableAds:C=!0}=e,L=(0,Z.d)(),E=(0,S.P)(),V=!!(null==E?void 0:null===(t=E.settings)||void 0===t?void 0:t.hideAdvertisements),{formatMessage:X}=(0,s.Z)(),{locale:O,router:{asPath:_}}=(0,T.h)(),Y=N.CX[O].SITE_NAME_FORMATTED,U="".concat(N.sb,"/hello-wellness"),R=(null==r?void 0:r.pageName)||(null==d?void 0:d.categoryName)||"Hello Wellness",F=(null==r?void 0:r.pageDescription)||"",z=(null==r?void 0:r.icon)||(null==d?void 0:d.icon)||"",G=(null==r?void 0:r.bannerDesktop)||"",K=(null==r?void 0:r.bannerMobile)||(null==r?void 0:r.bannerDesktop)||"",j=(0,o.useMemo)(()=>{var e;return(null==r?void 0:null===(e=r.sectionCategory)||void 0===e?void 0:e.categories)||[]},[r]),q=(null==r?void 0:null===(i=r.sectionCategory)||void 0===i?void 0:i.headerForCategoriesList)||X({id:"categories.start.title",defaultMessage:"Don't know where to start?"}),J=(0,o.useMemo)(()=>({categoryName:R,displayName:R,iconUrl:z,permalink:U,permalinkDecode:U,termId:0,slug:"hello-wellness"}),[R,z,U]),Q=(0,o.useMemo)(()=>{let e=null==r?void 0:r.sectionArticle;return e?"article_list"===e.displayType?e.articleList||[]:(e.featureImages||[]).map((e,t)=>(0,x.wH)(e,J,t)):[]},[null==r?void 0:r.sectionArticle,J]),$=(0,o.useMemo)(()=>{if(!(null==r?void 0:r.enableSectionBanner)||!r.sectionBanner)return null;let{title:e,description:t,backgroundColor:i,...a}=r.sectionBanner;return{...a,title:e,description:t,backgroundColor:i,sessionLayout:D.FF.CTA_BANNER,icon:"",idScroll:"",wrapperProps:{title:e,description:t,icon:"",bgColor:i}}},[r]),ee=(0,P.od)({countryAdTag:(0,P.Em)(O,{isMobile:!0}),contentAdTag:(0,P.WV)(O,U)}),et=(0,P.od)({countryAdTag:(0,P.Em)(O,{isMobile:!1}),contentAdTag:(0,P.WV)(O,U)}),ei=(0,P.od)({countryAdTag:(0,P.Em)(O,{isMobile:L}),contentAdTag:(0,P.WV)(O,U)}),ea=(0,B.Y)({}),eo=(0,o.useMemo)(()=>{{let e=document.querySelector('meta[name="content_id"]');return null==e?void 0:e.content}},[]);return(0,a.tZ)(h.L,{hideAds:V,children:(0,a.BX)(w.x,{title:"".concat(R," | ").concat(Y),description:F||X({id:"categories.seo.description"},{sitename:Y}),image:z||"".concat(N.Nr,"/bookDoctor.svg"),SEOData:{isIndexable:!0},footerInfo:null!=W?W:void 0,dataNavMenuContent:H,languageOptions:(0,w.c)(O,_),children:[!C&&(0,a.tZ)(h.o,{children:(0,a.tZ)(f.MastheadAd,{adUnitPath:ei,initialSticky:!0,className:"category-masthead",hasPlaceholder:ea})}),(0,a.BX)(y.Di,{"data-type-mobile":L,children:[(0,a.BX)(y.lK,{"data-type-mobile":L,children:[(0,a.BX)(c.W,{children:[(0,a.tZ)(b.d,{pageItem:[{label:R,value:U}]}),(0,a.tZ)(u.f,{variant:"helloWellness",imgBannerSrc:z,categoryName:R,description:F,coverBannerDesktop:G,coverBannerMobile:K})]}),$?(0,a.tZ)(l.T,{variant:l.C.LEADGEN,children:(0,a.tZ)(v.t,{data:$,eventCategory:"CTA Banner",mobileCarouselMode:"list",sectionPadding:[40,80],headerText:{titleSize:["h3","h3"],descriptionSize:["p2","p2"],align:["left","left"],gap:[2,4]}})}):null,!C&&(0,a.tZ)("div",{className:"banner-ad mobile-only",children:(0,a.tZ)(h.o,{children:L&&(0,a.tZ)(m.AdBlock,{adUnitPath:ee,size:[[300,250],[300,600]],divId:"div-gpt-ad-topbanner-mobile-".concat(A),pos:["TopBanner"],contentId:eo})})}),(0,a.BX)(c.W,{children:[j.length>0?(0,a.tZ)(n.x,{sx:e=>({paddingTop:40,[e.fn.largerThan("sm")]:{paddingTop:80}}),children:(0,a.tZ)(k,{isMobile:L,subCategories:j,categoryName:R,title:q,disableCarousel:!0})}):null,Q.length>0?(0,a.BX)(y.$h,{"data-type-mobile":L,className:"mt-8",children:[(0,a.tZ)("div",{className:"articles",style:{position:"relative",...C?{width:"100%"}:null},children:(0,a.tZ)(p.m,{posts:Q,category:J,eventCategory:"Recommend Article",desktopColumns:C?2:1,disableAds:!0})}),!C&&(0,a.tZ)("div",{className:"right-section",children:!L&&(0,a.tZ)(h.o,{children:(0,a.tZ)("div",{className:"top-ad",children:(0,a.tZ)(m.AdBlock,{adUnitPath:et,size:[[300,250]],divId:"div-gpt-ad-topbanner-desktop-".concat(A),pos:["TopBanner"],contentId:eo})})})})]}):null]})]}),!C&&(0,a.tZ)(h.o,{children:(0,a.tZ)(g.E,{divId:"div-gpt-ad-category-sticky-".concat(A),className:"article-bottom-ad",adUnitPath:ei,isMobile:L})}),!C&&(0,a.tZ)(M.OutOfPageAd,{id:"div-gpt-out-of-page-".concat(A),className:"article-gpt-out-of-page-ad",adUnitPath:ei},A),L?(0,a.tZ)(I,{}):null]})]})})}},IT88:function(e,t,i){i.d(t,{Y:function(){return useHomeSpotlights}});var a=i("q1tI"),o=i("xiXp"),l=i("9Z33");function useHomeSpotlights(e){let{spotlights:t}=e,[i,n]=(0,a.useState)(t);(0,a.useEffect)(()=>{let e=!1;return(0,o.t)().then(t=>{!e&&t&&n(t)}),()=>{e=!0}},[]);let r=(0,a.useMemo)(()=>i.filter(l.J),[i]);return(0,a.useMemo)(()=>({spotlights:r}),[r])}},H31P:function(e,t,i){i.d(t,{iH:function(){return d},mY:function(){return s}});var a=i("rBCA"),o=i("iBNF"),l=i("un+D"),n=i("mYVa"),r=i("gHFm");let d=(0,a.Z)("div",{target:"eu92r620"})("overflow:visible;min-height:100vh;.banner{background-color:",o.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;}}");o.r.colors.white,o.r.colors.white,l.M.mbUp,o.r.sizes.fsHeading6,l.M.mbUp,l.M.mbDown,l.M.mbUp,l.M.mbDown,l.M.mbUp,o.r.borderRadius,l.M.mbUp,l.M.mbDown,l.M.mbUp,l.M.mbDown,l.M.mbUp,l.M.mbDown;let s=(0,a.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),o.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 a=i("BGKE"),o=i("P5LW"),l=i("rEaw"),n=i("q1tI"),r=i("8hXY"),d=i("qFhO"),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("FxIt"),P=i("hXNO"),x=i("6vHH"),k=i("rIrU"),I=i("KIDP"),A=i("VIdu"),W=i("92VQ"),H=i("IT88");i("AeFk");var C=i("rBCA"),L=i("iBNF"),E=i("un+D");L.r.colors.gray100,L.r.colors.gray800;let V=(0,C.Z)("div",{target:"e122jf3r0"})("display:none;width:100%;height:",(0,m.h)(12),";background-color:",L.r.colors.neutral50,";border-bottom:1px solid ",L.r.colors.neutral100,";",E.M.smbDown,"{display:block;}");var X=i("H31P"),O=i("Eso5");let SectionWrapper=e=>{let{children:t,visible:i,...o}=e;return i?(0,a.tZ)(O.x,{...o,children:(0,a.tZ)(X.mY,{children:t})}):null};var _=i("RWiv"),Y=i("du+H");let U=g()(()=>Promise.all([i.e(1255),i.e(768),i.e(7316),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(8299),i.e(9265),i.e(5454),i.e(106),i.e(9803),i.e(5349),i.e(4148),i.e(2509),i.e(1533),i.e(1108),i.e(9124),i.e(4190),i.e(6535),i.e(4447),i.e(6509),i.e(8261),i.e(8674),i.e(4125),i.e(1657),i.e(7730),i.e(137),i.e(4414),i.e(1079),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}),R=g()(()=>Promise.all([i.e(1255),i.e(768),i.e(7316),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(8299),i.e(9265),i.e(5454),i.e(106),i.e(9803),i.e(5349),i.e(4148),i.e(2509),i.e(1533),i.e(1108),i.e(9124),i.e(4190),i.e(6535),i.e(4447),i.e(6509),i.e(8261),i.e(8674),i.e(4125),i.e(1657),i.e(7730),i.e(137),i.e(4414),i.e(1079),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}),z=[l.MV.Vietnam,l.MV.Taiwan],HomePage=e=>{var t,i,h;let{banner:g,trendingArticles:C,healthTools:L,healthyLivingArticles:E,drugArticles:O,pregnancyArticles:G,expertsArticles:K,expertHeading:j,spotlights:q,medicalReviewed:J,footerBanner:Q,homeCommunityData:$,homeCommunities:ee,homeVideos:et,newsEventsTitle:ei,homeHealthTool:ea,homeHasMostReadPosts:eo,homeCategories:el,mastheadAds:en,hideAllAdvertisements:er}=e,ed=(0,P.d)(),{locale:es}=(0,o.h)(),ec=(0,x.Y)(en||{}),em=!er,eh=(0,n.useRef)(null),{spotlights:eg}=(0,H.Y)({spotlights:q}),eu="my-MM"===es||"km-KH"===es,ep="th-TH"===es||"id-ID"===es,eb=(0,A.od)({countryAdTag:(0,A.Em)(es,{isMobile:ed}),contentAdTag:{result:"HomePage",redundant:!0}}),ev=es!==l.MV.Cambodia&&es!==l.MV.Myanmar&&es!==l.MV.Vietnam&&es!==l.MV.Malaysia,ef=I.l.includes(es),eM=!!((null==g?void 0:g.type)!=="banner"&&(null==g?void 0:null===(t=g.banners)||void 0===t?void 0:t.title)),ey=(0,n.useMemo)(()=>[E,O,G].filter(e=>{let{posts:t}=e;return!!(null==t?void 0:t.length)}),[E,O,G]),ew=!!eg.length,eZ=z.includes(es)&&!!(null==et?void 0:null===(i=et.videos)||void 0===i?void 0:i.length),eB=!!L.length,eT=!!ey.length,eN=!!K.length,eD=!!J.length,eS=eM?null:ew?"spotlight":eZ?"videos":eB?"health-tools":eT?"feature-articles":eN?"experts":eD?"trustful":null;return(0,a.BX)(a.HY,{children:[(0,a.BX)(X.iH,{children:[em&&(0,a.BX)(T.o,{children:[ev&&(0,a.tZ)(_.I,{adUnitPath:eb}),(0,a.tZ)(Y.MastheadAd,{adUnitPath:eb,className:"home-masthead",hasPlaceholder:em&&ec})]}),(0,a.tZ)("div",{ref:eh}),(0,a.BX)(s.K,{sx:e=>({gap:12,[e.fn.largerThan("sm")]:{gap:40}}),children:[(0,a.BX)(s.K,{sx:e=>({gap:12,paddingTop:es===l.MV.Vietnam||es===l.MV.Malaysia?0:12,[e.fn.largerThan("sm")]:{gap:24}}),children:[(0,a.tZ)(SectionWrapper,{visible:ef,children:es===l.MV.Vietnam||es===l.MV.Malaysia?(0,a.tZ)(b.D,{className:"block md:!p-0"}):(0,a.tZ)(b.a,{categories:el,className:"hidden md:block"})}),(0,a.tZ)(SectionWrapper,{visible:!ef,children:(0,a.tZ)(b.a,{categories:el})}),(0,a.tZ)(SectionWrapper,{visible:ed&&es===l.MV.Vietnam,children:(0,a.tZ)(r.H,{className:"!px-4",onClick:()=>(0,W.X)(k.k2),image:"".concat(k.sb,"/images/hpv-screener.png")})})]}),(0,a.tZ)(u.F,{isMobile:ed,homeBanner:g,container:(null==g?void 0:g.type)==="banner"?SectionWrapper:void 0,containerProps:{visible:!0}}),(0,a.tZ)(SectionWrapper,{visible:[...C,...ei].length>0,children:(0,a.tZ)(Z.B,{trendingArticles:C,newsEventsTitle:ei,homeHasMostReadPosts:eo})}),(0,a.tZ)(SectionWrapper,{visible:!!eg.length,children:(0,a.tZ)(w.c,{headingAs:"spotlight"===eS?"h1":void 0,spotlights:eg})}),(0,a.tZ)(SectionWrapper,{visible:z.includes(es)&&!!(null==et?void 0:null===(h=et.videos)||void 0===h?void 0:h.length),children:(0,a.tZ)(N.U,{videos:null==et?void 0:et.videos,gridLayout:null==et?void 0:et.gridLayout,headingAs:"videos"===eS?"h1":void 0})}),(0,a.tZ)(SectionWrapper,{visible:d.a.includes(es)&&!!(null==ee?void 0:ee.length),children:(0,a.tZ)(v.n,{isMobile:ed,data:$,communities:ee,className:(0,c.default)({"md:!pt-10":!(null==K?void 0:K.length)})})}),em&&ep&&(0,a.BX)(T.o,{children:[(0,a.tZ)(U,{adUnitPath:eb,size:[300,250],divId:"div-gpt-ad-home-mid-mobile-alt",pos:["MidBanner1"],style:{paddingBlock:(0,m.h)(12),maxWidth:"100%"}}),(0,a.tZ)(V,{style:{borderBottom:"none"}})]}),(0,a.tZ)(SectionWrapper,{visible:!!L.length,children:(0,a.tZ)(y.I,{healthTools:L,embedCard:ea,headingAs:"health-tools"===eS?"h1":void 0})}),(0,a.tZ)(SectionWrapper,{visible:!!ey.length,children:(0,a.tZ)(M.B,{headingAs:"feature-articles"===eS?"h1":void 0,items:ey,sideComponent:em?(0,a.BX)(a.HY,{children:[(0,a.tZ)(U,{adUnitPath:eb,size:[300,250],divId:"div-gpt-ad-home-sidebar1",pos:["HomeSidebar1"],style:{maxWidth:"100%"}}),!ed&&eu&&(0,a.tZ)(U,{adUnitPath:eb,size:[300,250],divId:"div-gpt-ad-home-sidebar2",pos:["HomeSidebar2"],style:{maxWidth:"100%",marginTop:(0,m.h)(12)}})]}):void 0})}),(0,a.tZ)(SectionWrapper,{visible:!!K.length,children:(0,a.tZ)(f.Y,{data:{title:(null==j?void 0:j.title)||""},experts:K,headingAs:"experts"===eS?"h1":void 0})}),(0,a.tZ)(SectionWrapper,{visible:!!Q,children:Q&&(0,a.tZ)(p.N,{isMobile:ed,banner:Q})}),(0,a.tZ)(SectionWrapper,{visible:!!J.length,children:(0,a.tZ)(B.b,{medicalReviewed:J,headingAs:"trustful"===eS?"h1":void 0})})]}),em&&(0,a.tZ)(T.o,{children:(eu||ep)&&(0,a.tZ)(R,{divId:"div-gpt-ad-category-sticky",adUnitPath:eb,isMobile:ed,className:"article-bottom-ad"})}),ed&&(0,a.tZ)(S.default,{})]}),em&&(0,a.tZ)(F,{id:"div-gpt-out-of-page",adUnitPath:eb}),(0,a.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}),renderNewHomePage=e=>(0,a.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,o.h)();return K.some(e=>e===t)?renderNewHomePage(e):(0,a.tZ)(HomePage,{...mapSharedHomePageProps(e)})}}}]);