(self.webpackChunkhhgDiscoverV1=self.webpackChunkhhgDiscoverV1||[]).push([[4582],{xrdX:function(e,t,n){"use strict";n.d(t,{H:function(){return l},y:function(){return o}});var i=n("4BRW");let o={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","zh-SG":"hellojiankang.com","hi-IN":"helloswasthya.com","tl-PH":"hellodoctor.com.ph","vi-VN_MB":"marrybaby.vn"},l={[i.L.Vietnam]:"hellobacsi.com",[i.L.Indonesia]:"hellosehat.com",[i.L.Malaysia]:"hellodoktor.com",[i.L.Cambodia]:"hellokrupet.com",[i.L.PhilippinesEnglish]:"hellodoctor.com.ph",[i.L.PhilippinesTagalog]:"hellodoctor.com.ph",[i.L.Thailand]:"hellokhunmor.com",[i.L.Myanmar]:"hellosayarwon.com",[i.L.Taiwan]:"helloyishi.com.tw",[i.L.India]:"helloswasthya.com",[i.L.Singapore]:"hellojiankang.com"}},GOBr:function(e,t,n){"use strict";var i,o,l,u;n.d(t,{K:function(){return c}});let s="undefined"!=typeof window&&null!==(u=null===(l=null==(o=null===(i=null==window?void 0:window.location)||void 0===i?void 0:i.href)?void 0:o.match(/^https?:\/\/([^/?#]+)(?:[/?#]|$)/i))||void 0===l?void 0:l[1])&&void 0!==u?u:"";s.split(".");let c=!0},Wbba:function(e,t,n){"use strict";n.d(t,{C:function(){return s}});var i=n("xrdX"),o=n("GOBr"),l=n("yNk5");let isNumeric=e=>!isNaN(parseFloat(e))&&isFinite(e),u="hellosehat.com",s=new class{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(e,t,n)=>{let i="https://hhg-common."+[t||this.getBaseDomain(),n||this.subPath,e].join("/");return o.K||l.env.JEST_WORKER_ID?i:i+"?v="+Math.floor(new Date().getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){let{host:e}=window.location,t=e.split("."),n=i.y[Object.keys(i.y).find(t=>e.includes(i.y[t]))];return t.includes("localhost")||t.includes("hellohealthgroup")||t.every(e=>isNumeric(e))||!n?u:n}return u}};s.subPath="common",s.baseDomain=i.y["vi-VN"]},"0Dpy":function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/health-tools/[...slug]",function(){return n("B8QC")}])},mdEm:function(e,t,n){"use strict";n.d(t,{CD:function(){return h},Qh:function(){return getActivityLevelList},_8:function(){return getActivityLevelShortLabel},e4:function(){return l},vL:function(){return u},zY:function(){return c}});var i,o,l,u,s=n("Wbba");(i=l||(l={})).DUE_DATE="due-date-calculator",i.BMI="bmi",i.BMR="bmr",i.OVULATION="ovulation",i.IFRAME="IFRAME",i.PWG="pregnancy-weight-gain",i.THR="heart-rate",i.BABY_VACCINE="vaccination-tool",i.BABY_GROWTH="baby-growth-tracking",i.BABY_POOP="baby-poop-checking",i.AIR_POPULATION="air-population-tool";let c={DUE_DATE:"due-date-calculator",BMI:"bmi",BMR:"bmr",OVULATION:"ovulation",IFRAME:"IFRAME",PWG:"pregnancy-weight-gain",THR:"heart-rate",BABY_VACCINE:"vaccination-tool",BABY_GROWTH:"baby-growth-tracking",BABY_POOP:"baby-poop-checking"};(o=u||(u={})).LOW_INTENSITY="low_intensity",o.MODERATE_INTENSITY="moderate_intensity",o.AEROBIC_INTENSITY="aerobic_intensity",o.VIGOROUS_INTENSITY="vigorous_intensity",o.MAXIMUM_INTENSITY="maximum_intensity";let getActivityLevelShortLabel=(e,t)=>{let n={low_intensity:t({id:"activityLevel.noExerciseShort"}),moderate_intensity:t({id:"activityLevel.oneThreeDaysShort"}),aerobic_intensity:t({id:"activityLevel.threeFiveDaysShort"}),vigorous_intensity:t({id:"activityLevel.sixSevenDaysShort"}),maximum_intensity:t({id:"activityLevel.routineShort"})};return n[e]||""},getActivityLevelList=e=>[{label:e({id:"activityLevel.noExercise",defaultMessage:"Little to no exercise"}),value:"low_intensity",point:1.2},{label:e({id:"activityLevel.oneThreeDays",defaultMessage:"Light exercise 1–3 days a week"}),value:"moderate_intensity",point:1.375},{label:e({id:"activityLevel.threeFiveDays",defaultMessage:"Medium exercise 3–5 days a week"}),value:"aerobic_intensity",point:1.55},{label:e({id:"activityLevel.sixSevenDays",defaultMessage:"Hard exercise 6–7 days a week"}),value:"vigorous_intensity",point:1.725},{label:e({id:"activityLevel.routine",defaultMessage:"Challenging exercise routine"}),value:"maximum_intensity",point:1.9}];c.DUE_DATE,s.C.getAssetPath("health-tools/due-date-icon.svg");let h="additional_questions"},B8QC:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return S},default:function(){return _slug_}});var i=n("BGKE"),o=n("+OUp"),l=n("a5vB"),u=n("VoJx"),s=n.n(u);let c=s()(()=>Promise.all([n.e(6444),n.e(5008),n.e(6132),n.e(6060),n.e(1813),n.e(3184),n.e(1809),n.e(1509),n.e(2277),n.e(8287),n.e(3430),n.e(2486),n.e(1891),n.e(2794),n.e(2808),n.e(8210),n.e(8e3),n.e(5e3),n.e(9862),n.e(5512),n.e(2213),n.e(3775),n.e(9144),n.e(448),n.e(9249),n.e(3231),n.e(3760),n.e(2897),n.e(3664),n.e(6255),n.e(5263),n.e(9785),n.e(866),n.e(6724),n.e(1451),n.e(188),n.e(4545),n.e(2654),n.e(3028),n.e(7469),n.e(6983),n.e(3069),n.e(4039),n.e(9872),n.e(873),n.e(9106),n.e(9705),n.e(3739),n.e(6548),n.e(7431),n.e(7541),n.e(8114),n.e(98)]).then(n.bind(n,"8rKt")).then(e=>e.DueDatePageComponent),{loadableGenerated:{webpack:()=>["8rKt"]}}),h=s()(()=>Promise.all([n.e(6444),n.e(5008),n.e(6132),n.e(6060),n.e(1813),n.e(3184),n.e(1809),n.e(1509),n.e(2277),n.e(8287),n.e(3430),n.e(2486),n.e(1891),n.e(2794),n.e(2808),n.e(8210),n.e(8e3),n.e(5e3),n.e(9862),n.e(5512),n.e(2213),n.e(3775),n.e(9144),n.e(448),n.e(9249),n.e(3231),n.e(3760),n.e(2897),n.e(3664),n.e(6255),n.e(4728),n.e(5263),n.e(9785),n.e(866),n.e(6724),n.e(188),n.e(4545),n.e(3229),n.e(2654),n.e(3028),n.e(7469),n.e(6983),n.e(3069),n.e(4039),n.e(9872),n.e(873),n.e(9106),n.e(9705),n.e(6548),n.e(7757),n.e(7168),n.e(7431),n.e(7541),n.e(5917),n.e(2104)]).then(n.bind(n,"uvhM")).then(e=>e.BMIToolPage),{loadableGenerated:{webpack:()=>["uvhM"]}}),d=s()(()=>Promise.all([n.e(6444),n.e(5008),n.e(6132),n.e(6060),n.e(1813),n.e(3184),n.e(1809),n.e(1509),n.e(2277),n.e(8287),n.e(3430),n.e(2486),n.e(1891),n.e(2794),n.e(2808),n.e(8210),n.e(8e3),n.e(5e3),n.e(9862),n.e(5512),n.e(2213),n.e(3775),n.e(9144),n.e(448),n.e(9249),n.e(3231),n.e(3760),n.e(2897),n.e(3664),n.e(6255),n.e(4728),n.e(5263),n.e(9785),n.e(866),n.e(6724),n.e(188),n.e(4545),n.e(2654),n.e(3028),n.e(7469),n.e(6983),n.e(3069),n.e(4039),n.e(9872),n.e(873),n.e(9106),n.e(9705),n.e(6548),n.e(7757),n.e(7168),n.e(7431),n.e(7541),n.e(5917),n.e(9427)]).then(n.bind(n,"XoAd")).then(e=>e.BMRToolPage),{loadableGenerated:{webpack:()=>["XoAd"]}}),f=s()(()=>Promise.all([n.e(8287),n.e(9862),n.e(6801),n.e(6419),n.e(9135)]).then(n.bind(n,"Ssu5")).then(e=>e.PWGToolPage),{loadableGenerated:{webpack:()=>["Ssu5"]}}),v=s()(()=>Promise.all([n.e(8287),n.e(9862),n.e(6801),n.e(6419),n.e(7775)]).then(n.bind(n,"wspD")).then(e=>e.THRToolPage),{loadableGenerated:{webpack:()=>["wspD"]}}),b=s()(()=>Promise.all([n.e(6444),n.e(5008),n.e(6132),n.e(6060),n.e(1813),n.e(3184),n.e(1809),n.e(1509),n.e(2277),n.e(8287),n.e(3430),n.e(2486),n.e(1891),n.e(2794),n.e(2808),n.e(8210),n.e(8e3),n.e(5e3),n.e(9862),n.e(5512),n.e(2213),n.e(3775),n.e(9144),n.e(448),n.e(9249),n.e(3231),n.e(3760),n.e(2897),n.e(3664),n.e(6255),n.e(4728),n.e(5263),n.e(9785),n.e(6724),n.e(4660),n.e(188),n.e(4545),n.e(9020),n.e(2654),n.e(3028),n.e(7469),n.e(6983),n.e(3069),n.e(4039),n.e(9872),n.e(873),n.e(9106),n.e(9705),n.e(3739),n.e(6548),n.e(7350),n.e(1745),n.e(7757),n.e(9102),n.e(6858)]).then(n.bind(n,"w87L")).then(e=>e.OvulationPageComponent),{loadableGenerated:{webpack:()=>["w87L"]}}),y=s()(()=>Promise.all([n.e(7469),n.e(4486)]).then(n.bind(n,"qhuX")).then(e=>e.BabyVaccinationPage),{loadableGenerated:{webpack:()=>["qhuX"]}}),m=s()(()=>Promise.all([n.e(8287),n.e(9862),n.e(7469),n.e(6801),n.e(6419),n.e(5056)]).then(n.bind(n,"6CHb")).then(e=>e.BabyGrowthPage),{loadableGenerated:{webpack:()=>["6CHb"]}}),p=s()(()=>Promise.all([n.e(6444),n.e(5008),n.e(6132),n.e(6060),n.e(1813),n.e(3184),n.e(1809),n.e(1509),n.e(2277),n.e(8287),n.e(3430),n.e(2486),n.e(1891),n.e(2794),n.e(2808),n.e(8210),n.e(8e3),n.e(5e3),n.e(9862),n.e(5512),n.e(2213),n.e(3775),n.e(9144),n.e(448),n.e(9249),n.e(3231),n.e(3760),n.e(2897),n.e(3664),n.e(6255),n.e(4728),n.e(4660),n.e(188),n.e(4545),n.e(5617),n.e(2654),n.e(3028),n.e(7469),n.e(6983),n.e(3069),n.e(4039),n.e(9872),n.e(873),n.e(9106),n.e(9705),n.e(3739),n.e(7350),n.e(1745),n.e(7037),n.e(6007)]).then(n.bind(n,"lNOI")).then(e=>e.BabyPoopPage),{loadableGenerated:{webpack:()=>["lNOI"]}});var g=n("mdEm"),w=n("Nwaa"),S=!0,_slug_=e=>{let{pageType:t}=e,{setCurrentHealthToolType:n}=(0,w.v)(e=>e,l.x);return(0,o.useEffect)(()=>{n(t)},[t]),(()=>{switch(t){case g.zY.DUE_DATE:return(0,i.Y)(c,{...e});case g.zY.BMI:return(0,i.Y)(h,{...e});case g.zY.BMR:return(0,i.Y)(d,{...e});case g.zY.OVULATION:return(0,i.Y)(b,{...e});case g.zY.PWG:return(0,i.Y)(f,{...e});case g.zY.THR:return(0,i.Y)(v,{...e});case g.zY.BABY_VACCINE:return(0,i.Y)(y,{...e});case g.zY.BABY_GROWTH:return(0,i.Y)(m,{...e});case g.zY.BABY_POOP:return(0,i.Y)(p,{...e});default:return null}})()}},Nwaa:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var i=n("VNqU");let o=(0,i.vt)(e=>({currentHealthToolType:"",setCurrentHealthToolType(t){e({currentHealthToolType:t})},setDueDateInfo(t){e({dueDateInfo:t})},resultDueDate:0,setResultDueDate(t){e({resultDueDate:t})},resultBabyDOB:0,setResultBabyDOB(t){e({resultBabyDOB:t})}}))},lKJe:function(e,t,n){"use strict";/** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var i=n("+OUp"),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=i.useState,u=i.useEffect,s=i.useLayoutEffect,c=i.useDebugValue;function r(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var h="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),i=l({inst:{value:n,getSnapshot:t}}),o=i[0].inst,h=i[1];return s(function(){o.value=n,o.getSnapshot=t,r(o)&&h({inst:o})},[e,n,t]),u(function(){return r(o)&&h({inst:o}),e(function(){r(o)&&h({inst:o})})},[e]),c(n),n};t.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:h},AB4A:function(e,t,n){"use strict";/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var i=n("+OUp"),o=n("at8e"),l="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},u=o.useSyncExternalStore,s=i.useRef,c=i.useEffect,h=i.useMemo,d=i.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,i,o){var f=s(null);if(null===f.current){var v={hasValue:!1,value:null};f.current=v}else v=f.current;var b=u(e,(f=h(function(){function a(t){if(!s){if(s=!0,e=t,t=i(t),void 0!==o&&v.hasValue){var n=v.value;if(o(n,t))return u=n}return u=t}if(n=u,l(e,t))return n;var c=i(t);return void 0!==o&&o(n,c)?n:(e=t,u=c)}var e,u,s=!1,c=void 0===n?null:n;return[function(){return a(t())},null===c?void 0:function(){return a(c())}]},[t,n,i,o]))[0],f[1]);return c(function(){v.hasValue=!0,v.value=b},[b]),d(b),b}},at8e:function(e,t,n){"use strict";e.exports=n("lKJe")},ejks:function(e,t,n){"use strict";e.exports=n("AB4A")},VNqU:function(e,t,n){"use strict";n.d(t,{Pj:function(){return useStore},vt:function(){return create}});var i=n("oWg6"),o=n("+OUp"),l=n("ejks");let{useSyncExternalStoreWithSelector:u}=l;function useStore(e,t=e.getState,n){let i=u(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,o.useDebugValue)(i),i}let createImpl=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t="function"==typeof e?(0,i.y)(e):e,useBoundStore=(e,n)=>useStore(t,e,n);return Object.assign(useBoundStore,t),useBoundStore},create=e=>e?createImpl(e):createImpl},a5vB:function(e,t,n){"use strict";function shallow(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,i]of e)if(!Object.is(i,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let i=0;i{let t;let n=new Set,setState=(e,i)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=i?i:"object"!=typeof o)?o:Object.assign({},t,o),n.forEach(n=>n(t,e))}},getState=()=>t,i={setState,getState,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(setState,getState,i),i},createStore=e=>e?createStoreImpl(e):createStoreImpl}},function(e){_N_E=Promise.all([e.f.consumes||function(e,t){},e.f.remotes||function(e,t){}].reduce(function(e,t){return t("4582",e),e},[])).then(function(){return e.X(0,[636,8792],function(){return e(e.s="0Dpy")})})}]);