"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7859],{ENYw:function(e,t,a){a.d(t,{n:function(){return MainInfo}});var r=a("BGKE"),l=a("Y5X8"),i=a("oZWv"),o=a("SPK5"),n=a("0D4Z"),d=a("OAL+"),s=a("Eso5"),c=a("dDsW"),u=a("hXNO"),h=a("P5LW"),g=a("8vdq"),m=a("/npG"),p=(0,m.k)(e=>({root:{display:"flex",alignItems:"flex-end",gap:2},item:{width:16,height:16,borderRadius:2,"&:first-child":{backgroundColor:e.colors.green[3]},"&:nth-child(2)":{backgroundColor:e.colors.green[2]},"&:nth-child(3)":{backgroundColor:e.colors.teal[2]},"&:nth-child(4)":{backgroundColor:e.colors.teal[4]},"&:nth-child(5)":{backgroundColor:e.colors.blue[7]},"&:nth-child(6)":{backgroundColor:e.colors.blue[8]},"&.selected":{height:32}}})),v=a("q1tI");let ColumnChart=e=>{let{gender:t,bmr:a,className:l,classNames:i,styles:o,...n}=e,{classes:d,cx:c}=p(void 0,{name:"ColumnChart"}),u="male"===t?1600:1200,h="male"===t?1800:1400,g=(0,v.useMemo)(()=>a<=u?0:a>=h?5:Math.round(6*(a-u)/(h-u)),[a]);return(0,r.tZ)(s.x,{className:c(l,d.root),...n,children:Array(6).fill("").map((e,t)=>(0,r.tZ)(s.x,{className:c(t===g?"selected":"",d.item)},t))})};var f=a("mYVa"),b=(0,m.k)(e=>({root:{backgroundColor:"#fff",[e.fn.largerThan("sm")]:{border:"1px solid ".concat(e.colors.gray[1]),borderRadius:12}},heading:{[e.fn.largerThan("sm")]:{textAlign:"center"}},body:{[e.fn.smallerThan("sm")]:{flexDirection:"column"},[e.fn.largerThan("sm")]:{padding:24,display:"flex"}},group:{display:"flex",flexDirection:"column",position:"relative",gap:8,[e.fn.smallerThan("sm")]:{borderTop:"1px solid ".concat(e.colors.neutral[1]),paddingTop:16,paddingBottom:16,"&:first-child":{paddingTop:0,borderTop:0}},[e.fn.largerThan("sm")]:{gap:16,width:"50%",borderLeft:"1px solid ".concat(e.colors.neutral[0]),paddingLeft:24,paddingRight:24,"&:first-child":{paddingLeft:0,borderLeft:0}}},header:{display:"flex",alignItems:"center",gap:8},headerIcon:{width:24},subHead:{fontSize:(0,f.h)(12),lineHeight:(0,f.h)(18),color:"#595959"},headingGroup:{display:"flex",alignItems:"flex-end",gap:8},scoreInfo:{display:"flex",flexDirection:"column",gap:8},scoreRow:{display:"flex",justifyContent:"space-between"},score:{},desc:{[e.fn.largerThan("sm")]:{textAlign:"center"}},unit:{verticalAlign:"super",marginLeft:6},infoWrapper:{backgroundColor:e.colors.neutral[0],padding:12,borderRadius:8}}));let MainInfo=e=>{let{loading:t,gender:a,bmrNumber:m,bmrResult:p,bmrContent:v,activityLevel:f}=e,{classes:y}=b(void 0,{name:"Bmr__MainInfo"}),{locale:x}=(0,h.h)(),{formatMessage:Z}=(0,c.Z)(),w=(0,u.d)();return(0,r.BX)(o.k,{direction:"column",gap:{base:24,md:12},children:[w?(0,r.tZ)(d.K,{spacing:8,className:y.infoWrapper,children:t?(0,r.BX)(d.K,{spacing:12,children:[(0,r.tZ)(n.O,{height:22,width:"100%"}),(0,r.BX)(d.K,{spacing:8,children:[(0,r.tZ)(n.O,{height:18,width:"100%"}),(0,r.tZ)(n.O,{height:18,width:"100%"}),(0,r.tZ)(n.O,{height:18,width:"60%"})]})]}):(0,r.BX)(r.HY,{children:[(0,r.tZ)(i.T,{size:"h6",className:y.heading,children:Z({id:"bmrTool.yourBmrResult",defaultMessage:"Your BMR Result"})}),(0,r.tZ)(i.T,{size:"p3",className:y.desc,children:Z({id:"bmrPage.introDesc"})})]})}):t?(0,r.BX)(r.HY,{children:[(0,r.tZ)(n.O,{width:246,height:36,radius:24,sx:{margin:"0 auto"}}),(0,r.BX)(d.K,{spacing:8,children:[(0,r.tZ)(n.O,{width:"80%",height:18,sx:{margin:"0 auto"}}),(0,r.tZ)(n.O,{width:"60%",height:18,sx:{margin:"0 auto"}})]})]}):(0,r.BX)(r.HY,{children:[(0,r.tZ)(i.T,{size:"h2",className:y.heading,children:Z({id:"bmrTool.yourBmrResult",defaultMessage:"Your BMR Result"})}),(0,r.tZ)(i.T,{size:"p3",className:y.desc,children:Z({id:"bmrPage.introDesc"})})]}),(0,r.tZ)(s.x,{className:y.root,children:(0,r.BX)(s.x,{className:y.body,children:[(0,r.BX)(s.x,{className:y.group,children:[(0,r.tZ)(s.x,{className:y.header,children:t?(0,r.BX)(r.HY,{children:[(0,r.tZ)(n.O,{height:18,className:y.headerIcon}),(0,r.tZ)(n.O,{height:18,width:"100%"})]}):(0,r.BX)(r.HY,{children:[(0,r.tZ)("img",{loading:"eager",src:v.featured_image,alt:v.title,className:y.headerIcon}),(0,r.BX)(s.x,{className:y.headingGroup,children:[(0,r.tZ)(i.T,{size:"h6",children:Z({id:"bmrPage.yourBmrIndex"})}),(0,r.tZ)("span",{className:y.subHead,children:Z({id:"bmrPage.atRest"})})]})]})}),(0,r.tZ)(s.x,{className:y.scoreInfo,children:(0,r.tZ)(s.x,{className:y.scoreRow,children:t?(0,r.BX)(d.K,{spacing:8,w:"100%",children:[(0,r.tZ)(n.O,{height:18,width:"100%"}),(0,r.tZ)(n.O,{height:18,width:"70%"})]}):(0,r.BX)(r.HY,{children:[(0,r.BX)(i.T,{size:"h2",className:y.score,children:[m,(0,r.tZ)(i.T,{size:"s4",as:"sup",className:y.unit,children:Z({id:"common.kcalPerDayUnit"})})]}),(0,r.tZ)(ColumnChart,{bmr:m,gender:a})]})})})]}),(0,r.BX)(s.x,{className:y.group,children:[(0,r.tZ)(s.x,{className:y.header,children:t?(0,r.BX)(r.HY,{children:[(0,r.tZ)(n.O,{height:18,className:y.headerIcon}),(0,r.tZ)(n.O,{height:18,width:"100%"})]}):(0,r.BX)(r.HY,{children:[(0,r.tZ)("img",{src:l.C.getAssetPath("health-tools/tdee.svg"),className:y.headerIcon,alt:Z({id:"bmrPage.tdeeIndex"}),loading:"lazy"}),(0,r.tZ)(i.T,{size:"h6",children:Z({id:"bmrPage.tdeeIndex"})})]})}),(0,r.BX)(s.x,{className:y.scoreInfo,children:[(0,r.tZ)(s.x,{className:y.scoreRow,children:t?(0,r.BX)(d.K,{spacing:8,w:"100%",children:[(0,r.tZ)(n.O,{height:18,width:"100%"}),(0,r.tZ)(n.O,{height:18,width:"70%"})]}):(0,r.tZ)(r.HY,{children:(0,r.BX)(i.T,{size:"h2",className:y.score,children:[Number(p.tdeeValue).toLocaleString(x),(0,r.tZ)(i.T,{size:"s4",as:"sup",className:y.unit,children:Z({id:"common.kcalPerDayUnit"})})]})})}),!t&&(0,r.tZ)(i.T,{size:"s3",children:(0,g.E5)(f,Z)})]})]})]})})]})}},ija2:function(e,t,a){a.d(t,{P:function(){return RiskAndConditionTools}});var r=a("BGKE"),l=a("oZWv"),i=a("8vDj"),o=a("Eso5"),n=a("OAL+"),d=a("SPK5"),s=a("dDsW"),c=a("GnTU"),u=a("0L5m"),h=a("K27U"),g=a("1+YQ"),m=a("hXNO");let RiskAndConditionTools=e=>{var t,a,p,v,f,b,y;let{bmrData:x,toolContent:Z,loading:w}=e,{formatMessage:k}=(0,s.Z)(),T=(0,i.rZ)(),C=(0,m.d)(),S=null==Z?void 0:null===(t=Z.additionalInfo)||void 0===t?void 0:t.image;if(!x)return null;let B=[{icon:(0,r.tZ)(u.Z,{isOutline:!0,size:C?16:20}),heading:k({id:"tools.risks"}),content:null==x?void 0:null===(v=x.bmiResult)||void 0===v?void 0:null===(p=v.assessmentData)||void 0===p?void 0:null===(a=p[1])||void 0===a?void 0:a.content}];return(0,r.BX)(o.x,{sx:{[T.fn.largerThan("sm")]:{".risk-and-condition":{flexDirection:"row",marginTop:40},".risk-item":{backgroundColor:"#fff",borderRadius:8}}},children:[S&&(0,r.tZ)(g.M,{loading:w,ctaUrl:null==Z?void 0:null===(f=Z.additionalInfo)||void 0===f?void 0:f.ctaUrl,image:null==Z?void 0:null===(b=Z.additionalInfo)||void 0===b?void 0:b.image,imageMobile:null==Z?void 0:null===(y=Z.additionalInfo)||void 0===y?void 0:y.imageMobile}),(0,r.tZ)(n.K,{spacing:16,className:"risk-and-condition",children:C?(0,r.tZ)(h.e,{faqs:B.map(e=>({title:(0,r.BX)(d.k,{gap:8,align:"center",children:[e.icon,(0,r.tZ)(l.T,{size:"title2",children:e.heading})]}),description:e.content}))}):B.map((e,t)=>(0,r.tZ)(c.T,{...e,className:"risk-item"},String(t)))})]})}},ckcH:function(e,t,a){a.d(t,{V:function(){return SuggestToolsAndArticleScreen}});var r=a("BGKE"),l=a("OAL+"),i=a("AlNH"),o=a("q1tI"),n=a("Efqo"),d=a("oZWv"),s=a("8vDj"),c=a("Eso5"),u=a("ns0B"),h=a.n(u),g=a("CJtR"),m=a("MP3q"),p=a("UJaG"),v=a("M1QZ"),f=a("NeDJ"),b=a("hXNO"),y=a("P5LW"),x=a("rIrU"),Z=a("KBam"),w=a("wCSE");let ArticleListing=e=>{let{listing:t,title:a,description:i}=e,{locale:u}=(0,y.h)(),k=(0,o.useMemo)(()=>(0,g.UC)(u),[u]),T=(0,s.rZ)(),C=(0,b.d)();return 0===t.length?null:(0,r.BX)(r.HY,{children:[(0,r.BX)(l.K,{spacing:24,children:[(0,r.BX)(l.K,{spacing:8,children:[(0,r.tZ)(d.T,{size:"s1",weight:"semiBold",color:T.colors.gray[8],children:a}),(0,r.tZ)(d.T,{size:"p4",color:T.colors.gray[6],children:i})]}),(0,r.tZ)(c.x,{sx:{[T.fn.smallerThan("sm")]:{marginLeft:-16,marginRight:-16}},children:(0,r.tZ)(v.Z,{alwayShowProgressMobile:!0,slideSize:"100%",slideGap:16,slidesToScroll:1,withControls:!1,breakpoints:[{maxWidth:n.B.BREAK_POINT_TABLET,slideSize:1===t.length?"100%":"80%",slideGap:24}],styles:e=>({viewport:{[e.fn.smallerThan("sm")]:{paddingLeft:16,paddingRight:16}}}),children:(0,r.BX)(l.K,{spacing:24,children:[(0,r.tZ)(c.x,{sx:{[T.fn.largerThan("sm")]:{backgroundColor:"#fff",borderRadius:16,padding:16}},children:(0,r.tZ)(v.Z.Body,{children:(0,r.tZ)(f.C,{itemsPerGroup:3,breakpoints:{base:{itemsPerGroup:1},md:{itemsPerGroup:3}},GroupWrapper:e=>(0,r.tZ)(v.Z.Slide,{children:e}),items:t.map((e,t)=>{let a=(0,Z.kO)({article:e,locale:u,version:"short"});return(0,r.tZ)(c.x,{sx:{[T.fn.largerThan("sm")]:{...t%3!=0&&{paddingTop:16,marginTop:8,borderTop:"1px solid ".concat(T.colors.neutral[1])},".cardArticleContent":{gap:8}}},children:(0,r.tZ)(m.p,{disableBookmark:!0,moveAuthorIntoContent:!C,type:C?"vertical":"horizontalFooter",item:{ID:parseInt("".concat(e.id)),image:e.featureImage,image1x1:e.featureImageWithRatio1x1,permalink:e.permalink,title:h()(e.postTitle||e.postName||""),category:e.category,author:{name:(0,r.tZ)(p.x,{...a,formatOptionsProps:{expert_display_name:{"data-event-category":"Tool Category","data-event-action":"See Doctor","data-event-label":"".concat(k).concat(x.sb).concat(a.avatar_permalink)}}}),avatar:a.avatar,avatarAlt:a.avatar_alt,permalink:a.avatar_permalink,indicator:a.indicator}},itemTracking:{image:{"data-event-category":"Recommend Category","data-event-action":"Category Article Title","data-event-label":"".concat(k).concat(x.sb).concat(e.permalinkDecode)},title:{"data-event-category":"Recommend Category","data-event-action":"Category Article Title","data-event-label":"".concat(k).concat(x.sb).concat(e.permalinkDecode)},category:{"data-event-category":"Recommend Category","data-event-action":"Category Title","data-event-label":"".concat(k).concat(x.sb).concat(e.category.permalinkDecode)},authorAvatar:{"data-event-category":"Recommend Category","data-event-action":"See Doctor","data-event-label":"".concat(k).concat(x.sb).concat(a.avatar_permalink)}}})},"".concat(t))})})})}),(0,r.tZ)(c.x,{sx:{[T.fn.smallerThan("sm")]:{paddingLeft:16,paddingRight:16}},children:(0,r.BX)(v.Z.Footer,{children:[(0,r.tZ)(v.Z.Progress,{}),(0,r.BX)(v.Z.Controls,{children:[(0,r.tZ)(v.Z.Control,{direction:"prev","data-event-category":"Recommend Category","data-event-action":" See More Article","data-event-label":"".concat(k).concat(x.sb),color:"gray"}),(0,r.tZ)(v.Z.Control,{direction:"next","data-event-category":"Recommend Category","data-event-action":"See More Article","data-event-label":"".concat(k).concat(x.sb),color:"gray"})]})]})})]})})})]}),(0,r.tZ)(w.P,{})]})};var k=a("C/sX"),T=a("iBNF"),C=a("iuhU"),S=a("SPK5"),B=a("mYVa"),D=a("QM8a"),_=a("oGOP");let ToolCard=e=>{let{item:t,showIconPhone:a,...l}=e,{link:i,icon:o,title:n}=t,u=!!(null==t?void 0:t.isMobileAppTool),h=(0,s.rZ)();return(0,r.BX)(c.x,{component:"a",href:i,target:"_blank",className:(0,C.default)("relatedTool--card flex items-center gap-4 p-3 pr-4","relative bg-white rounded-lg","md:flex-col md:items-start md:min-h-[128px] md:h-full","[&+&]:max-md:mt-2"),...l,sx:{transition:"transform 0.2s",[h.fn.largerThan("sm")]:{"&:hover":{transform:"translateY(-5px)"}}},children:[(0,r.tZ)(c.x,{className:(0,C.default)("relatedTool--icon relative w-10 h-10 bg-neutral50 rounded-[50%] overflow-hidden p-1","max-md:flex max-md:items-center"),children:(0,r.tZ)("img",{loading:"lazy",src:o,alt:n,className:(0,C.default)("relatedTool--icon_img z-[2] relative")})}),(0,r.BX)("div",{className:(0,C.default)("relatedTool--card_content","md:min-h-0 md:flex-1 md:flex md:items-center md:flex-wrap"),children:[(0,r.tZ)(d.T,{as:"span",size:"p2",color:T.r.colors.gray800,className:"m-0 w-full block",children:n}),u&&(0,r.BX)(S.k,{gap:(0,B.h)(6),align:"center",py:(0,B.h)(5),children:[(0,r.tZ)(D.Z,{className:"text-base leading-none w-[1em] h-[1em]"}),(0,r.tZ)(d.T,{as:"span",size:"n1",color:T.r.colors.blue800,children:"Hello Bacsi app"})]})]}),u&&a&&(0,r.tZ)(S.k,{w:(0,B.h)(32),h:(0,B.h)(32),align:"center",justify:"center",className:"absolute top-0 right-0 p-[6px] text-xl leading-none",children:(0,r.tZ)(_.Z,{className:"w-[1em] h-[1em]"})})]})},MoreTool=e=>{let{listing:t,title:a,description:i,color:o}=e,n=(0,s.rZ)();return 0===t.length?null:(0,r.BX)(l.K,{spacing:12,sx:{[n.fn.smallerThan("sm")]:{backgroundColor:n.colors.neutral[0],marginLeft:-16,marginRight:-16,padding:16}},children:[(0,r.BX)(l.K,{spacing:8,children:[(0,r.tZ)(d.T,{size:"s1",weight:"semiBold",color:n.colors.gray[8],children:a}),(0,r.tZ)(d.T,{size:"p4",color:n.colors.gray[6],children:i})]}),(0,r.tZ)(v.Z,{slideSize:"100%",slideGap:8,slidesToScroll:1,withControls:!0,arrowColor:o,children:(0,r.tZ)(l.K,{spacing:24,children:(0,r.tZ)(v.Z.Body,{children:(0,r.tZ)(f.C,{breakpoints:{base:{itemsPerGroup:t.length,GroupWrapper:e=>(0,r.tZ)(v.Z.Slide,{children:(0,r.tZ)(k.r,{gutter:8,children:e})}),ItemWrapper:e=>(0,r.tZ)(k.r.Col,{span:12,children:e})},md:{itemsPerGroup:3,GroupWrapper:e=>(0,r.tZ)(v.Z.Slide,{sx:{paddingTop:5},children:(0,r.tZ)(k.r,{gutter:8,children:e})}),ItemWrapper:e=>(0,r.tZ)(k.r.Col,{span:4,children:e})}},items:t.map((e,t)=>(0,r.tZ)(ToolCard,{item:e},String(t)))})})})})]})};var N=a("nLF+"),M=a("BKNC");let VideoItemListing=e=>{let{videos:t,onlyTypeVideo:a}=e,i=(0,s.rZ)();return(0,r.tZ)(c.x,{sx:{[i.fn.smallerThan("sm")]:{marginLeft:-16,marginRight:-16}},children:(0,r.tZ)(v.Z,{containScroll:"trimSnaps",slideSize:"auto",slideGap:12,align:"start",withControls:!0,breakpoints:[{maxWidth:n.B.BREAK_POINT_TABLET,slideSize:1===t.length?"100%":"auto",slideGap:24}],styles:()=>({viewport:{paddingLeft:16,paddingRight:16}}),children:(0,r.tZ)(l.K,{spacing:24,sx:()=>({marginLeft:-16,marginRight:-16}),children:(0,r.tZ)(v.Z.Body,{children:(t||[]).map((e,t)=>(0,r.tZ)(v.Z.Slide,{children:(0,r.tZ)(N.V,{data:e,dataEventCategory:"Recommend Video",dataEventAction:"Video Click ".concat(t+1),styles:{root:{borderRadius:8,width:e.type===M.V.SHORTS?103:330,[i.fn.largerThan("sm")]:{width:a?420:e.type===M.V.SHORTS?160:515}},title:{[i.fn.largerThan("sm")]:{fontSize:(0,B.h)(14),lineHeight:(0,B.h)(22)}}}})},String(t)))})})})})};var P=a("09QT"),z=a("oQBk"),R=a("KX2h");let VideoLibrary=e=>{let{videoList:t}=e,[a,l]=(0,o.useState)([]),[i,n]=(0,o.useState)(!1),d=(0,o.useCallback)(async()=>{try{n(!0);let e=await Promise.all(t.map(e=>(0,P.d)(z.y.TOGETHER.FETCH_PREVIEW,{method:"POST",data:{link:e.urlVideo}},"together")));n(!1);let a=e.map((e,a)=>{let r={id:a,videoId:String(a),url:t[a].urlVideo,title:t[a].videoTitle||e.title,description:"",type:M.V.VIDEO,totalView:0,createTime:"",duration:0,image:t[a].image||"",imageMedium:t[a].image||"",imageThumbnail:t[a].image||"",active:!1,articleLink:""};return r}).filter(Boolean);a.length>0&&l(a)}catch(e){console.log(e),n(!1)}},[]);return(0,o.useEffect)(()=>{t.length>0&&d()},[t]),i?(0,r.tZ)(R.g,{}):a.length>0?(0,r.tZ)(r.HY,{children:(0,r.tZ)(VideoItemListing,{onlyTypeVideo:!0,videos:a})}):null},VideoListing=e=>{let{title:t,videos:a=[],videoUrl:l=[]}=e,i=(0,s.rZ)();return 0===a.length&&0===l.length?null:(0,r.BX)(c.x,{sx:{[i.fn.largerThan("sm")]:{backgroundColor:"#fff",borderRadius:16}},children:[(0,r.tZ)(c.x,{sx:{[i.fn.largerThan("sm")]:{padding:"".concat((0,B.h)(10)," ").concat((0,B.h)(16)),borderBottom:"1px solid ".concat(i.colors.neutral[1])}},children:(0,r.tZ)(d.T,{size:"s2",children:t})}),(0,r.tZ)(c.x,{sx:{padding:16},children:a.length>0?(0,r.tZ)(VideoItemListing,{videos:a}):l.length>0?(0,r.tZ)(VideoLibrary,{videoList:l}):null})]})},SuggestToolsAndArticleScreen=e=>{var t,a,o,n,d,s,c;let{bmrData:u,color:h}=e;if(!u)return null;let g=null==u?void 0:null===(t=u.bmiResult)||void 0===t?void 0:t.helpfulTips;return(0,r.BX)(l.K,{spacing:24,children:[(0,r.tZ)(MoreTool,{color:h,title:g.relatedTool.title,description:g.relatedTool.description,listing:g.relatedTool.healthtools||[]}),(0,r.tZ)(ArticleListing,{title:null==u?void 0:null===(a=u.bmiResult.suggestedArticles)||void 0===a?void 0:a.title,description:null==u?void 0:null===(o=u.bmiResult.suggestedArticles)||void 0===o?void 0:o.description,listing:(null==u?void 0:null===(n=u.bmiResult.suggestedArticles)||void 0===n?void 0:n.articles)||[]}),(0,r.tZ)(i.V,{content:(0,r.tZ)("div",{dangerouslySetInnerHTML:{__html:"C\xe1c b\xe0i viết của Hello Bacsi chỉ c\xf3 t\xednh chất tham khảo, kh\xf4ng thay thế cho việc chẩn đo\xe1n hoặc điều trị y khoa."}})}),(0,r.tZ)(VideoListing,{title:null==g?void 0:null===(d=g.suggestedVideos)||void 0===d?void 0:d.title,videos:null==g?void 0:null===(s=g.suggestedVideos)||void 0===s?void 0:s.video,videoUrl:null==g?void 0:null===(c=g.suggestedVideos)||void 0===c?void 0:c.videoUrl})]})}},bct8:function(e,t,a){a.d(t,{b:function(){return ArrowButton}});var r=a("BGKE"),l=a("raAP"),i=a("hXP/");let ArrowButton=e=>{let{position:t="left",className:a,...o}=e,n=(0,l.U)();return(0,r.tZ)(i.kr,{position:t,role:"button",...o,className:"".concat(a," pointer-event-child-none"),"data-event-category":"Health Tool","data-event-action":"Due Date Arrow Click","data-event-label":n,children:(0,r.tZ)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,r.tZ)("path",{d:"M9.14323 9.99983L12.2 6.94303C12.5312 6.61183 12.5312 6.07423 12.2 5.74303C11.8688 5.41183 11.3312 5.41183 11 5.74303L7.30883 9.43423C6.99603 9.74703 6.99603 10.2534 7.30883 10.5654L11 14.2566C11.3312 14.5878 11.8688 14.5878 12.2 14.2566C12.5312 13.9254 12.5312 13.3878 12.2 13.0566L9.14323 9.99983Z",fill:"#595959"})})})}},"/QyJ":function(e,t,a){var r=a("BGKE"),l=a("iBNF");t.Z=e=>{let{size:t=18,color:a=l.r.colors.white}=e;return(0,r.tZ)("svg",{width:t,height:t,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.tZ)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.69641 8.99999L8.73972 12.0547C8.84347 12.1586 8.89847 12.2872 8.90472 12.4406C8.91097 12.594 8.85597 12.7289 8.73972 12.8452C8.63097 12.9539 8.49922 13.0082 8.34447 13.0082C8.18972 13.0082 8.05797 12.9539 7.94922 12.8452L4.57872 9.47455C4.50847 9.4043 4.45891 9.33024 4.43003 9.25236C4.40116 9.17449 4.38672 9.09036 4.38672 8.99999C4.38672 8.90961 4.40116 8.82549 4.43003 8.74761C4.45891 8.66974 4.50847 8.59567 4.57872 8.52542L7.94922 5.15474C8.05309 5.05099 8.18172 4.99599 8.33509 4.98974C8.48847 4.98349 8.62334 5.03849 8.73972 5.15474C8.84834 5.26349 8.90266 5.39524 8.90266 5.54999C8.90266 5.70474 8.84834 5.83649 8.73972 5.94524L5.69641 8.99999ZM10.4589 8.99999L13.5022 12.0547C13.606 12.1586 13.661 12.2872 13.6672 12.4406C13.6735 12.594 13.6185 12.7289 13.5022 12.8452C13.3935 12.9539 13.2617 13.0082 13.107 13.0082C12.9522 13.0082 12.8205 12.9539 12.7117 12.8452L9.34103 9.47455C9.27091 9.4043 9.22141 9.33024 9.19253 9.25236C9.16366 9.17449 9.14922 9.09036 9.14922 8.99999C9.14922 8.90961 9.16366 8.82549 9.19253 8.74761C9.22141 8.66974 9.27091 8.59567 9.34103 8.52542L12.7117 5.15474C12.8156 5.05099 12.9442 4.99599 13.0976 4.98974C13.251 4.98349 13.3858 5.03849 13.5022 5.15474C13.6108 5.26349 13.6652 5.39524 13.6652 5.54999C13.6652 5.70474 13.6108 5.83649 13.5022 5.94524L10.4589 8.99999Z",fill:a})})}},"hXP/":function(e,t,a){a.d(t,{Kl:function(){return u},V3:function(){return h},eD:function(){return m},jJ:function(){return c},kr:function(){return g},wh:function(){return s}});var r=a("rBCA"),l=a("Efqo"),i=a("iBNF"),o=a("unQi"),n=a("ESlf"),d=a("2GKc");let s=(0,r.Z)("div",{target:"e15dvckl0"})("display:flex;width:100%;flex-direction:column;align-items:center;gap:8px;text-align:center;"),c=(0,r.Z)(n.j,{target:"e15dvckl1"})(l.M.mbDown,"{padding:8px 16px;gap:8px;}");null===i.r||void 0===i.r||i.r.colors.pink800;let u=(0,r.Z)(o.iR,{target:"e15dvckl4"})("z-index:0;pointer-events:none;user-select:none;.mantine-Slider-trackContainer{height:8px;}.mantine-Slider-bar{border-radius:0;background-color:",null===i.r||void 0===i.r?void 0:i.r.colors.pink600,";}.mantine-Slider-track{height:8px;&::before{background-color:",null===i.r||void 0===i.r?void 0:i.r.colors.neutral200,";}}.mantine-Slider-thumb{background-color:",null===i.r||void 0===i.r?void 0:i.r.colors.pink600,";border:0;width:0.0625rem;height:0.5rem;}.mantine-Slider-mark{border:none;width:0.375rem;height:0.375rem;}.mantine-Slider-markWrapper{top:0.0625rem;}.mantine-Slider-label{padding:0.4375rem 0.5rem;background:",null===i.r||void 0===i.r?void 0:i.r.colors.white,";border-radius:0.25rem;top:1rem;font-weight:400;transform:translateX(10px);&::before{content:'';position:absolute;border-top:0 solid white;border-bottom:5px solid white;border-left:5px solid transparent;border-right:5px solid transparent;top:-5px;left:calc(50% - 10px);transform:translate(-50%,0);}}[aria-valuenow='35'],[aria-valuenow='36'],[aria-valuenow='37'],[aria-valuenow='38'],[aria-valuenow='39']{.mantine-Slider-label{transform:translateX(-40%);&::before{left:calc(100% - 10px);transform:translate(-100%,0);}}}[aria-valuenow='40']{.mantine-Slider-label{transform:translateX(-50%);&::before{left:calc(100% - 10px);transform:translate(-100%,0);}}}.mantine-Slider-marksContainer{z-index:3;}"),h=(0,r.Z)("div",{target:"e15dvckl5"})("display:flex;align-items:center;width:100%;gap:16px;justify-content:space-between;& > div{width:100%;}.btn-text{white-space:nowrap;text-transform:uppercase;}",l.M.mbDown,"{margin-block:24px;.btn-text{text-overflow:ellipsis;overflow:hidden;max-width:160px;}}",l.M.mbUp,"{position:sticky;top:",e=>{let{isSponsored:t}=e;return t?"103px":"57px"},";z-index:4;}");null===i.r||void 0===i.r||i.r.colors.neutral50,l.M.mbDown;let g=(0,r.Z)("div",{target:"e15dvckl7"})("position:absolute;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:24px;top:50%;/* White */\n\n background:#ffffff;/* System/z2 (normal) */\n\n 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);transform:",e=>"right"===e.position?"translateY(-50%) rotate(180deg)":"translateY(-50%)",";cursor:pointer;"),m=(0,r.Z)(d.P,{target:"e15dvckl8"})("margin-inline:-16px;")},"7oSX":function(e,t,a){var r=a("BGKE"),l=a("iBNF");t.Z=e=>{let{size:t=18,color:a=l.r.colors.white}=e;return(0,r.tZ)("svg",{width:t,height:t,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.tZ)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.51345 15.6233C7.28653 15.958 8.11537 16.1253 8.99998 16.1253C9.88459 16.1253 10.7134 15.958 11.4865 15.6233C12.2596 15.2887 12.9336 14.8339 13.5086 14.2589C14.0836 13.6839 14.5384 13.0099 14.873 12.2368C15.2077 11.4638 15.375 10.6349 15.375 9.7503C15.375 8.86568 15.2077 8.03684 14.873 7.26377C14.5384 6.49069 14.0836 5.81665 13.5086 5.24165C12.9336 4.66667 12.2596 4.21187 11.4865 3.87725C10.7134 3.54263 9.88459 3.37532 8.99998 3.37532H8.80093L9.61153 2.56473C9.72787 2.4484 9.78412 2.31667 9.78028 2.16956C9.77643 2.02245 9.72018 1.89072 9.61153 1.77437C9.49518 1.65803 9.36033 1.59913 9.20696 1.59768C9.0536 1.59625 8.92116 1.6513 8.80963 1.76283L7.10916 3.45609C6.97358 3.59167 6.90579 3.74983 6.90579 3.9306C6.90579 4.11137 6.97358 4.26955 7.10916 4.40512L8.79519 6.09836C8.91154 6.21471 9.04519 6.27096 9.19614 6.26711C9.34711 6.26326 9.48076 6.20317 9.59709 6.08683C9.70576 5.97048 9.76081 5.83755 9.76224 5.68803C9.76368 5.53852 9.70863 5.408 9.59709 5.29646L8.80093 4.5003H8.99998C10.4625 4.5003 11.7031 5.00967 12.7219 6.02842C13.7406 7.04717 14.25 8.2878 14.25 9.7503C14.25 11.2128 13.7406 12.4534 12.7219 13.4722C11.7031 14.4909 10.4625 15.0003 8.99998 15.0003C7.53748 15.0003 6.29686 14.4909 5.27811 13.4722C4.25936 12.4534 3.74998 11.2128 3.74998 9.7503C3.74998 9.59068 3.69614 9.45703 3.58845 9.34935C3.48076 9.24166 3.34711 9.18782 3.1875 9.18782C3.02789 9.18782 2.89424 9.24166 2.78655 9.34935C2.67885 9.45703 2.625 9.59068 2.625 9.7503C2.625 10.6349 2.79231 11.4638 3.12694 12.2368C3.46155 13.0099 3.91635 13.6839 4.49134 14.2589C5.06634 14.8339 5.74038 15.2887 6.51345 15.6233Z",fill:a})})}},"4GgH":function(e,t,a){a.r(t),a.d(t,{DueDatePageComponent:function(){return DueDatePageComponent}});var r,l,i,o,n=a("BGKE"),d=a("q1tI"),s=a("NGsg"),c=a("PHlL"),u=a("unQi"),h=a("oZWv"),g=a("XDLp"),m=a("iBNF"),p=a("Eso5"),v=a("m9IT"),f=a("SPK5"),b=a("7Ci/"),y=a("iVi/"),x=a("Wgwc"),Z=a.n(x),w=a("TYy9"),k=a.n(w),T=a("cr+I"),C=a("dDsW"),S=a("a5vB"),B=a("09QT"),D=a("/tR3"),_=a("AFiN"),N=a("oQBk"),M=a("CJtR"),P=a("g/tz"),z=a("CBW8"),R=a("lXMY"),A=a("2kea"),I=a("CeA4"),X=a("0UxZ"),E=a("uFPy"),H=a("FxIt"),L=a("vplf"),O=a("sKr0"),G=a("Uj9i"),W=a("uriS"),U=a("i/U4"),Y=a("2su4"),V=a("gXV8"),Q=a("hXNO"),q=a("wf8V"),F=a("P5LW"),K=a("rIrU"),j=a("8vdq"),J=a("o0qI"),$=a("0yEU"),ee=a("T9go"),et=a("VIdu"),ea=a("lMwY"),er=a("9O6x"),el=a("K27U");let dataEventLabelFn=e=>e.rawTitle||"";var component_currentFaqs=e=>{let{currentFaqs:t,bgContentColor:a=m.r.colors.gray50}=e,r=(0,Q.d)(),{formatMessage:l}=(0,C.Z)(),i=(0,d.useMemo)(()=>(null==t?void 0:t.map(e=>({rawTitle:e.title,title:(0,n.tZ)(h.T,{size:"p2",weight:"semiBold",color:m.r.colors.gray800,children:e.title}),description:e.content})))||[],[t]);return t?(0,n.tZ)(el.e,{dataEventCategory:"Health Tool",dataEventAction:"Due Date - FAQ",dataEventLabel:dataEventLabelFn,faqs:i,titleProps:{icon:(0,n.tZ)("img",{style:{height:"18px",width:"18px"},src:"".concat(K.Nr,"/info-icon.svg"),alt:"",loading:"lazy"}),headingTitle:(0,n.tZ)(h.T,{size:r?"c1":"c2",weight:"semiBold",color:m.r.colors.gray600,transform:"uppercase",span:!0,children:l({id:"dueDatePage.faqs"})})},template:"due-date",bgContentColor:a}):null},ei=a("StZb"),eo=a("1Hbx"),en=a("mYVa"),ed=a("TSYQ"),es=a.n(ed);(r=i||(i={})).due_date_revealed="due_date_revealed",r.guide_and_support="guide_and_support",r.helpful_tips_for_mom="helpful_tips_for_mom",r.faq="faq";let ec={due_date_revealed:"Due Date Revealed",guide_and_support:"Guide and Support",helpful_tips_for_mom:"Helpful Tips",faq:"FAQ"},useOnClickNav=()=>{let{setNavResultTarget:e}=(0,U.eY)(),t=(0,d.useCallback)(t=>{e(t);let a=document.getElementById(t);if(a){let e=a.getBoundingClientRect().top+window.scrollY-100;window.scrollTo({top:e,behavior:"smooth"})}},[]);return{handleClick:t}},BoxWithAnimation=e=>{let{className:t,children:a,name:r}=e,{handleClick:l}=useOnClickNav(),i=(0,d.useMemo)(()=>({"data-event-category":"Health Tool","data-event-action":"Due Date - Doctor Suggestion","data-event-label":ec[r]}),[r]);return(0,n.tZ)(p.x,{py:10,sx:{cursor:"pointer",position:"relative",transition:"all 0.3s ease",color:m.r.colors.gray400,":before":{content:'""',display:"block",width:0,height:2,backgroundColor:m.r.colors.primaryBase,position:"absolute",top:24,left:0,opacity:0,transition:"all 0.3s ease"},":hover":{color:m.r.colors.primary600},"&.active":{paddingLeft:36,color:m.r.colors.primaryBase,":before":{opacity:1,width:24}}},onClick:()=>l(r),className:es()(t,"pointer-event-child-none"),...i,children:a})};var desktopNavResult=e=>{let{suggestedArticles:t,topics:a,isShowFaqs:r,sponsorBanner:l,hasHelpfulTips:i}=e,{formatMessage:o}=(0,C.Z)(),c=(0,Q.d)(),u=(0,d.useRef)(null),{locale:g}=(0,F.h)(),{navResultTarget:v}=(0,U.eY)(),[f,b]=(0,d.useState)(120),{handleClick:y}=useOnClickNav(),x=!!t.length,Z=s.c.includes(g)&&!!(null==a?void 0:a.length);(0,d.useEffect)(()=>{let e=u.current;if(!e||c)return;let handler=()=>{let t=window.innerHeight,a=e.getBoundingClientRect(),r=a.height;b(Math.max(120,t-250-r-110))};return handler(),window.addEventListener("resize",handler),()=>{window.removeEventListener("resize",handler)}},[c,t,a]);let w=(0,d.useMemo)(()=>[{value:"due_date_revealed",label:o({id:"dueDatePage.result.due_date_revealed",defaultMessage:"Your Due Date Revealed!"})},x||Z||(null==l?void 0:l.image)?{value:"guide_and_support",label:o({id:"dueDatePage.result.guide_and_support",defaultMessage:"Your Pregnancy Guide and Support"})}:null,i&&{value:"helpful_tips_for_mom",label:o({id:"dueDatePage.result.helpful_tips",defaultMessage:"Helpful Tips for Pregnant Mom"})},r?{value:"faq",label:o({id:"faq.title",defaultMessage:"Frequently Asked Questions"})}:null].filter(Boolean),[x,Z,i]);return c?(0,n.tZ)(p.x,{mt:0,pos:"sticky",top:0,"data-ahihi":"true",sx:{zIndex:3},children:(0,n.tZ)(ei.S,{data:w,value:v,styles:{root:{'[aria-expanded="true"]':{".right-section-icon":{transform:"rotate(180deg)"}}},input:{borderRadius:0,border:"0",paddingLeft:(0,en.h)(16),backgroundColor:m.r.colors.white,":focus":{boxShadow:"none"},":not(.mantine-Textarea-input)":{height:44,fontSize:16}},dropdown:{borderRadius:0,borderLeft:0,borderRight:0,transform:"translateY(-8px)"},item:{fontSize:16,lineHeight:1.2,wordBreak:"break-word","&[data-selected]":{fontWeight:600,color:m.r.colors.primaryBase,backgroundColor:"transparent"}}},withinPortal:!0,onChange:y,rightSection:(0,n.tZ)(eo.Z,{className:"right-section-icon"})})}):(0,n.tZ)(p.x,{ref:u,mt:16,mb:f,children:w.map(e=>(0,n.tZ)(BoxWithAnimation,{className:es()({active:v===e.value}),name:e.value,children:(0,n.tZ)(h.T,{size:"p1",weight:"semiBold",color:"inherit",children:e.label})},e.value))})},eu=a("rBCA"),eh=a("Efqo"),eg=a("/Ds5");let em=(0,eu.Z)("div",{target:"ej0qys80"})("padding-bottom:1.5rem;margin-bottom:1.5rem;margin-top:auto;&[data-bordered='true']{border-bottom:1px solid ",m.r.colors.neutral100,";}&[data-bordered='false']{padding-bottom:0;margin-bottom:0;}",eh.M.mbDown,"{&[data-bordered='true']{padding-top:1.5rem;}}.ht-disclaimer{gap:8px;display:inline-flex;align-items:center;cursor:pointer;}.ht-disclaimer-desc{color:#595959;font-size:14px;font-weight:600;line-height:22px;text-transform:uppercase;}.ht-disclaimer-down{color:black;}.ht-disclaimer-expanded{font-size:12px;color:#595959;line-height:1.4;padding-top:8px;overflow:hidden;}.ht-disclaimer-info-svg{transition:all 0.3s ease;&[data-show='true']{transform:rotateZ(180deg);}}");var disclaimer=e=>{let{description:t,bordered:a=!0}=e,[r,l]=(0,d.useState)(!0),{formatMessage:i}=(0,C.Z)(),o=(0,Q.d)();return(0,n.BX)(em,{"data-bordered":String(!!a),children:[(0,n.BX)(p.x,{className:"ht-disclaimer",onClick:()=>l(!r),children:[(0,n.tZ)("img",{src:"".concat(K.Nr,"/info-icon.svg"),alt:"",loading:"lazy",className:"ht-disclaimer-info-svg",style:{width:18,height:18}}),(0,n.tZ)(h.T,{size:o?"c1":"c2",weight:"semiBold",color:m.r.colors.gray600,transform:"uppercase",span:!0,children:i({id:"dueDatePage.disclaimer"})}),(0,n.tZ)("img",{src:"".concat(K.uQ,"/arrow-down.svg"),alt:"",loading:"lazy",className:"ht-disclaimer-info-svg","data-show":r})]}),(0,n.tZ)(eg.E.div,{animate:r?{height:"auto"}:{height:0},transition:{duration:.3},style:{overflow:"hidden"},children:(0,n.tZ)(h.T,{size:"c2",color:m.r.colors.gray600,span:!0,style:{marginTop:8},children:t})})]})},dueDateIntroBanner=e=>{let{featuredImage:t}=e,{formatMessage:a}=(0,C.Z)();return(0,n.BX)(p.x,{sx:{display:"flex",gap:24,padding:24,marginBottom:40,borderRadius:16,backgroundColor:m.r.colors.pink100,alignItems:"center"},children:[(0,n.tZ)(p.x,{w:96,h:96,miw:96,pos:"relative",children:t?(0,n.tZ)("img",{src:t,alt:"",loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover"}}):(0,n.tZ)("img",{src:"".concat(K.Nr,"/due-date-calendar-illustration.svg"),alt:"",loading:"lazy",style:{position:"absolute",top:-16,left:-20,width:136,height:136,maxWidth:"none",maxHeight:"none"}})}),(0,n.BX)(p.x,{children:[(0,n.tZ)(h.T,{size:"h5",weight:"semiBold",color:m.r.colors.gray800,children:a({id:"dueDatePage.introduce.title",defaultMessage:"Find your due date and navigating your pregnancy journey"})}),(0,n.tZ)(h.T,{size:"p4",mt:8,color:m.r.colors.gray700,children:a({id:"dueDatePage.introduce.description",defaultMessage:"Use this calculator to find your due date. This is just an estimate - not a guarantee! Most women, but not all, will deliver their babies within a week before or after this date range."})})]})]})},ep=a("1LUM"),ev=a("gMY+"),ef=a("le9Y"),eb=a("Nels"),ey=a("Zdfy"),ex=a("ns0B"),eZ=a.n(ex),ew=a("YFqc"),ek=a.n(ew),eT=a("MP3q"),eC=a("UJaG"),eS=a("S3OL"),eB=a("KBam"),eD=a("aNTj"),guideAndSupportArticles=e=>{let{colWidth:t,suggestedArticles:a,titleArticle:r,descriptionArticle:l}=e,i=(0,d.useRef)(null),o=(0,d.useRef)(null),s=(0,Q.d)(),{locale:u}=(0,F.h)(),{getHealthToolLink:v}=(0,c.u)(u),{formatMessage:b}=(0,C.Z)(),[y,x]=(0,d.useState)(null),[Z,w]=(0,d.useState)(0),k=(0,d.useMemo)(()=>(0,M.UC)(u),[u]),T=(0,ee.a)(e=>e.setShouldOnboardingModalOpen),S=(0,d.useMemo)(()=>{if(!Array.isArray(a)||0===a.length)return[];let e=[],t=0;for(;t1,_=(0,d.useCallback)(()=>{y&&w(y.selectedScrollSnap())},[y]),N=(0,d.useCallback)(()=>{o.current&&(o.current.style.transition="none",o.current.style.width="0"),requestAnimationFrame(()=>{o.current&&(o.current.style.transition="all ".concat(14,"s linear"),o.current.style.width="100%")})},[]);(0,d.useEffect)(()=>{if(!y||!B)return;N();let e=setInterval(()=>{N(),y.scrollNext()},14e3);return()=>{clearInterval(e)}},[y,Z,N,B,!!o.current]),(0,d.useEffect)(()=>{var e;if(!y)return;let handleResize=()=>{eD.E.mutate(()=>y.reInit())};return y.on("scroll",_),null===(e=i.current)||void 0===e||e.addEventListener("resize",handleResize),()=>{var e;y.off("scroll",_),null===(e=i.current)||void 0===e||e.removeEventListener("resize",handleResize)}},[y]);let P=(0,d.useCallback)(()=>{T(!1)},[]),z=(0,d.useMemo)(()=>t||s?"100%":"56%",[s,t]);return(0,n.BX)(f.k,{p:16,direction:"column",bg:m.r.colors.pink100,w:z,miw:z,maw:z,sx:{borderRadius:s?0:16},ref:i,children:[(0,n.tZ)(h.T,{as:"h3",size:s?"h4":"h5",color:m.r.colors.gray800,weight:"semiBold",children:r||b({id:"tools.suggestedArticles",defaultMessage:"Suggested articles"})}),(0,n.tZ)(p.x,{mx:-4,children:(0,n.tZ)(ey.l,{loop:!0,containScroll:"trimSnaps",draggable:!1,dragFree:!1,withControls:!1,getEmblaApi:x,children:S.map((e,t)=>(0,n.BX)(ey.l.Slide,{px:4,children:[0===t&&(0,n.BX)(f.k,{gap:4,direction:"column",align:"flex-start",pt:4,children:[(0,n.tZ)(h.T,{size:s?"p3":"p4",color:m.r.colors.gray600,children:l||b({id:"pregnancyTool.weightGainBanner.message",defaultMessage:"You may have heard that you should gain 11 to 15 kg when you are pregnant."})}),(0,n.tZ)(ek(),{className:"pointer-event-child-none","data-event-category":"Health Tool","data-event-action":"Due Date - Guide and Support","data-event-label":"Calculate Your Weight Gain",href:v(j.QO.PWG),onClick:P,children:(0,n.tZ)(g.B,{variant:"white",size:"sm",style:{padding:0,minHeight:22,height:"auto"},fullWidth:!1,theme:"marryBaby",styles:{label:{whiteSpace:"normal"}},children:(0,n.BX)(h.T,{as:"span",size:s?"s3":"s4",weight:"semiBold",color:m.r.colors.pink800,children:[b({id:"pregnancyTool.weightGainBanner.button",defaultMessage:"Calculate your weight gain"}),(0,n.tZ)(ef.Z,{color:m.r.colors.pink800,size:19,style:{verticalAlign:"middle"}})]})})})]}),(0,n.tZ)(p.x,{mt:16,sx:{borderRadius:16,overflow:"hidden"},children:e.map((e,t)=>{let a=(0,D.qP)(e),r=(0,eB.kO)({article:e,locale:u,version:"short"});return(0,n.tZ)(p.x,{bg:m.r.colors.white,p:16,sx:{borderTop:t>0?"1px solid ".concat(m.r.colors.neutral100):void 0},children:(0,n.tZ)(eT.p,{type:"horizontalFooter",item:{ID:parseInt("".concat(a.id)),image:(0,n.tZ)(eS.R,{src:a.featureImage||K.YS,fill:!0,alt:a.postName}),permalink:a.permalink,title:eZ()(a.postTitle||a.postName||""),category:a.category,author:{name:(0,n.tZ)(eC.x,{...r}),permalink:r.avatar_permalink,avatar:r.avatar,indicator:r.indicator,avatarAlt:r.avatar_alt}},itemTracking:{image:{"data-event-category":"Health Tool","data-event-action":"Due Date - Guide and Support - Click Article","data-event-label":"".concat(k).concat(K.sb).concat(a.permalinkDecode)},title:{"data-event-category":"Health Tool","data-event-action":"Due Date - Guide and Support - Click Article","data-event-label":"".concat(k).concat(K.sb).concat(a.permalinkDecode)},category:{"data-event-category":"Health Tool","data-event-action":"Due Date - Guide and Support - Click Article Category","data-event-label":"".concat(k).concat(K.sb).concat(a.category.permalinkDecode)},authorAvatar:{"data-event-category":"Health Tool","data-event-action":"Due Date - Guide and Support - Click See Doctor","data-event-label":"".concat(k).concat(K.sb).concat(r.avatar_permalink)}},bookmarkButtonProps:{style:{display:"none"}}})},e.ID)})})]},t))})}),B&&(0,n.BX)(f.k,{mt:s?16:80,gap:24,align:"center",children:[(0,n.BX)(h.T,{size:"p2",weight:"semiBold",color:m.r.colors.gray400,children:[String(Z+1).padStart(2,"0"),"/",String(S.length).padStart(2,"0")]}),(0,n.tZ)(p.x,{sx:{flex:1},bg:m.r.colors.pink50,children:(0,n.tZ)(p.x,{ref:o,h:1,w:B?0:"100%",bg:m.r.colors.pink800})}),(0,n.BX)(f.k,{direction:"row",gap:16,children:[(0,n.tZ)(f.k,{w:32,h:32,align:"center",justify:"center",bg:m.r.colors.white,sx:{borderRadius:"100%",cursor:"pointer"},onClick:()=>null==y?void 0:y.scrollPrev(),children:(0,n.tZ)(eb.Z,{size:20,color:m.r.colors.gray600})}),(0,n.tZ)(f.k,{w:32,h:32,align:"center",justify:"center",bg:m.r.colors.white,sx:{borderRadius:"100%",cursor:"pointer"},onClick:()=>null==y?void 0:y.scrollNext(),children:(0,n.tZ)(ef.Z,{size:20,color:m.r.colors.gray600})})]})]})]})},guideAndSupport=e=>{var t,a;let{adUnitPath:r,dueDate:l=new Date,topics:o=[],suggestedArticles:d,titleArticle:c,descriptionArticle:u,sponsorBanner:h}=e,g=(0,Q.d)(),{locale:m}=(0,F.h)(),v=!!d.length,b=!!(null==h?void 0:h.image),y=s.c.includes(m)&&!!o.length,x=(0,n.BX)(f.k,{direction:"column",gap:24,px:g?16:0,children:[y&&(0,n.tZ)(ev.f,{topics:o,dueDate:l,isRevamp:!0}),(null==h?void 0:h.image)&&(0,n.tZ)(p.x,{children:(0,n.tZ)("a",{href:(null==h?void 0:null===(a=h.further_result)||void 0===a?void 0:null===(t=a.link)||void 0===t?void 0:t.url)||(null==h?void 0:h.image),children:(0,n.tZ)("img",{src:null==h?void 0:h.image,alt:"Sponsor Banner",loading:"lazy",className:"w-full rounded-lg cursor-pointer"})})}),(0,n.tZ)("div",{className:"top-ad",children:(0,n.tZ)(ep.AdBlock,{adUnitPath:r,size:[[300,250],[300,600]],divId:"div-gpt-ad-topbanner-desktop",pos:["TopBanner"]})})]}),Z=y||b;return(0,n.BX)(f.k,{gap:24,mb:24,direction:g||!Z?"column":"row",justify:v?"flex-start":"center",align:Z?"flex-start":"center",id:i.guide_and_support,pt:g?0:64,children:[!Z&&x,v&&(0,n.tZ)(guideAndSupportArticles,{colWidth:Z?void 0:"100%",suggestedArticles:d,titleArticle:c,descriptionArticle:u}),Z&&x]})},e_=a("iuhU"),eN=a("vaps");let eM=(0,eu.Z)(eT.p,{target:"e1yel4rs0"})("&.cardArticle{display:block;}.cardArticleImageWrap{display:none;}"),LastestPregnancy=e=>{let{title:t,description:a,categories:r,className:l,style:i}=e,{locale:o}=(0,F.h)(),[s,c]=(0,d.useState)(0),u=(0,d.useMemo)(()=>null==r?void 0:r.slice(0,4),[r]),g=(0,d.useCallback)(e=>()=>{c(e)},[]),v=(0,d.useMemo)(()=>(0,M.UC)(o),[o]);return u&&u.length?(0,n.BX)(p.x,{className:(0,e_.default)(l,"LastestPregnancy"),style:i,children:[(0,n.BX)(p.x,{className:"LastestPregnancy-head pt-6 px-4 pb-3 md:pt-0 md:px-0",children:[(0,n.tZ)(h.T,{as:"h3",size:"s1",color:m.r.colors.gray800,weight:"semiBold",children:t}),!!a&&(0,n.tZ)(h.T,{as:"p",size:"p4",color:m.r.colors.gray600,className:"mt-3 md:mt-2",children:a})]}),(0,n.tZ)(p.x,{className:"LastestPregnancy-body flex flex-col gap-[2px] md:flex-row md:gap-2",children:u.map((e,t)=>{let a=s===t,{icon:r,image:l,cat_name:i,articles:d}=e;return(0,n.BX)(p.x,{onClick:g(t),className:(0,e_.default)("LastestPregnancy-item","relative flex flex-col","p-4 bg-pink100 md:rounded-lg transition-all ease-in-out duration-300",{"max-md:py-2 cursor-pointer h-[48px] md:h-[360px]":!a,"flex-1 min-h-0 md:min-w-0 h-[672px] md:h-[360px]":a}),children:[(0,n.BX)(p.x,{className:(0,e_.default)("LastestPregnancy-item_head","flex items-center gap-2",{"flex-1 min-w-0":!a}),sx:{["".concat(eh.M.lgPcUp)]:a?void 0:{writingMode:"vertical-rl"}},children:[(0,n.tZ)(p.x,{className:"LastestPregnancy-item_img relative w-8 h-8 bg-neutral50 rounded-[50%] overflow-hidden",children:(0,n.tZ)(eS.R,{src:r||l||"",alt:i,fill:!0,className:"!inset-1"})}),(0,n.tZ)(h.T,{as:"p",size:"s3",className:"LastestPregnancy-item_title flex-1 min-w-0 min-h-0 !text-gray800 !text-[16px] md:!text-[18px]",sx:{["".concat(eh.M.lgPcUp)]:a?void 0:{transform:"rotate(180deg)",transformOrigin:"center"}},children:i})]}),(0,n.tZ)(p.x,{className:(0,e_.default)("LastestPregnancy-item_body flex-1 min-h-0",{hidden:!a,"mt-4":a}),children:(0,n.tZ)(eN.x,{type:"always",scrollbarSize:8,styles:{thumb:{backgroundColor:m.r.colors.gray200}},className:(0,e_.default)("LastestPregnancy-item_scroll","p-4 bg-white rounded-lg h-full w-full",{"hidden pointer-events-none max-md:h-0":!a,"opacity-100 w-full":a}),children:d.map(e=>{let t=(0,D.qP)(e),a=(0,eB.kO)({article:e,locale:o,version:"short"});return(0,n.tZ)(eM,{type:"horizontal",item:{ID:parseInt("".concat(t.id)),image:(0,n.tZ)(eS.R,{src:t.featureImage||K.YS,fill:!0,alt:t.postName}),permalink:t.permalink,title:eZ()(t.postTitle||t.postName||""),category:t.category,author:{name:(0,n.tZ)(eC.x,{...a}),permalink:a.avatar_permalink,avatar:a.avatar,indicator:a.indicator,avatarAlt:a.avatar_alt}},itemTracking:{image:{"data-event-category":"Health Tool","data-event-action":"Due Date - Helpful Tips - Click Latest Article","data-event-label":"".concat(v).concat(K.sb).concat(t.permalinkDecode)},title:{"data-event-category":"Health Tool","data-event-action":"Due Date - Helpful Tips - Click Latest Article","data-event-label":"".concat(v).concat(K.sb).concat(t.permalinkDecode)},category:{"data-event-category":"Health Tool","data-event-action":"Due Date - Helpful Tips - Click Latest Article Category","data-event-label":"".concat(v).concat(K.sb).concat(t.category.permalinkDecode)},authorAvatar:{"data-event-category":"Health Tool","data-event-action":"Due Date - Helpful Tips - Click Latest Article - Click See Doctor","data-event-label":"".concat(v).concat(K.sb).concat(a.avatar_permalink)}},bookmarkButtonProps:{style:{display:"none"}},className:"py-2 first:pt-0 first:border-none last:pb-0 border-solid border-t border-t-neutral100"},t.id.toString())})})})]},"".concat(e.term_id))})})]}):null},eP=(0,eu.Z)(eT.p,{target:"er7faa30"})("&.cardArticle{&__horizontal{grid-template-columns:1fr ",(0,en.h)(80),";.cardArticleImageRatio{&:before{padding-bottom:100%;}}}}",eh.M.mbDown,"{&.cardArticle{&__horizontal{}.cardArticleAuthorLabel{font-size:",(0,en.h)(12),";}}}"),OtherAritlces=e=>{let{title:t,description:a,articles:r,className:l,style:i}=e,o=(0,Q.d)(),{locale:s}=(0,F.h)(),c=(0,d.useRef)(null),[u,g]=(0,d.useState)(),[v,b]=(0,d.useState)(0),y=(0,d.useMemo)(()=>(0,M.UC)(s),[s]),x=(0,d.useMemo)(()=>{if(!r||!r.length)return[];let e=[],t=0,a=o?4:3;for(;t1,w=(0,d.useCallback)(()=>{u&&b(u.selectedScrollSnap())},[u]),k=(0,d.useCallback)(()=>{c.current&&(c.current.style.transition="none",c.current.style.width="0"),requestAnimationFrame(()=>{c.current&&(c.current.style.transition="all ".concat(14,"s linear"),c.current.style.width="100%")})},[]);return((0,d.useEffect)(()=>{if(!u||!Z)return;k();let e=setInterval(()=>{k(),u.scrollNext()},14e3);return()=>{clearInterval(e)}},[u,v,k,Z,!!c.current]),(0,d.useEffect)(()=>{if(u)return u.on("scroll",w),()=>{u.off("scroll",w)}},[u]),x.length)?(0,n.BX)(p.x,{className:(0,e_.default)(l,"max-md:py-6 max-md:px-4 max-md:bg-pink50 max-md:rounded-2xl"),style:i,children:[(0,n.tZ)(h.T,{as:"h3",size:"s1",color:m.r.colors.gray800,weight:"semiBold",className:"mb-4 md:mb-2",children:t}),(0,n.tZ)(h.T,{as:"p",size:"p4",color:m.r.colors.gray600,children:a}),(0,n.tZ)(ey.l,{loop:!0,draggable:!1,dragFree:!1,slideGap:24,withControls:!1,getEmblaApi:g,className:"mt-4 md:mt-2",children:x.map((e,t)=>(0,n.tZ)(ey.l.Slide,{children:(0,n.tZ)(p.x,{className:"md:bg-white md:p-4 md:rounded-2xl",children:e.map((e,t)=>{let a=(0,D.qP)(e),r=(0,eB.kO)({article:e,locale:s,version:"short"});return(0,n.tZ)(p.x,{className:"border-solid border-t border-neutral100 py-4 md:first:pt-0 md:first:border-none",children:(0,n.tZ)(eP,{type:"horizontal",item:{ID:parseInt("".concat(a.id)),image:(0,n.tZ)(eS.R,{src:a.featureImage||K.YS,fill:!0,alt:a.postName}),permalink:a.permalink,title:eZ()(a.postTitle||a.postName||""),category:a.category,author:{name:(0,n.tZ)(eC.x,{...r}),permalink:r.avatar_permalink,avatarAlt:r.avatar_alt,avatar:r.avatar,indicator:r.indicator}},itemTracking:{image:{"data-event-category":"Health Tool","data-event-action":"Due Date - Helpful Tips - Click Other Article","data-event-label":"".concat(y).concat(K.sb).concat(a.permalinkDecode)},title:{"data-event-category":"Health Tool","data-event-action":"Due Date - Helpful Tips - Click Other Article","data-event-label":"".concat(y).concat(K.sb).concat(a.permalinkDecode)},category:{"data-event-category":"Health Tool","data-event-action":"Due Date - Helpful Tips - Click Other Article Category","data-event-label":"".concat(y).concat(K.sb).concat(a.category.permalinkDecode)},authorAvatar:{"data-event-category":"Health Tool","data-event-action":"Due Date - Helpful Tips - Click See Doctor","data-event-label":"".concat(y).concat(K.sb).concat(r.avatar_permalink)}},bookmarkButtonProps:{style:{display:"none"}}})},"".concat(a.id,"-").concat(t))})})},"".concat(t)))}),Z&&(0,n.BX)(f.k,{mt:o?16:24,gap:24,align:"center",children:[(0,n.BX)(h.T,{size:"p2",weight:"semiBold",color:m.r.colors.gray400,children:[String(v+1).padStart(2,"0"),"/",String(x.length).padStart(2,"0")]}),(0,n.tZ)(p.x,{sx:{flex:1},bg:m.r.colors.pink50,children:(0,n.tZ)(p.x,{ref:c,h:1,w:Z?0:"100%",bg:m.r.colors.pink800})}),(0,n.BX)(f.k,{direction:"row",gap:16,children:[(0,n.tZ)(f.k,{w:32,h:32,align:"center",justify:"center",bg:m.r.colors.white,sx:{borderRadius:"100%",cursor:"pointer"},onClick:()=>null==u?void 0:u.scrollPrev(),children:(0,n.tZ)(eb.Z,{size:20,color:m.r.colors.gray600})}),(0,n.tZ)(f.k,{w:32,h:32,align:"center",justify:"center",bg:m.r.colors.white,sx:{borderRadius:"100%",cursor:"pointer"},onClick:()=>null==u?void 0:u.scrollNext(),children:(0,n.tZ)(ef.Z,{size:20,color:m.r.colors.gray600})})]})]})]}):null};var ez=a("FQtM"),eR=a("/QyJ"),eA=a("7oSX"),recalculateBtnWithTooltip=()=>{let{formatMessage:e}=(0,C.Z)(),{isRecalculate:t,setIsRecalculate:a}=(0,U.eY)(),r=(0,n.tZ)(f.k,{w:40,h:40,pos:"absolute",top:40,left:-40,bg:m.r.colors.primaryBase,align:"center",justify:"center",sx:{borderRadius:"8px 0 0 8px",cursor:"pointer"},onClick:()=>a(!t),className:"pointer-event-child-none","data-event-category":"Health Tool","data-event-action":"Due Date - Result Page","data-event-label":t?"View Result":"Re-calculate",children:t?(0,n.tZ)(eR.Z,{}):(0,n.tZ)(eA.Z,{})});return t?r:(0,n.tZ)(ez.u,{withinPortal:!0,withArrow:!0,label:e({id:"tools.recalculate",defaultMessage:"Recalculate"}),position:"left",styles:{tooltip:{fontSize:12,color:m.r.colors.gray600,"::before":{content:'""',position:"absolute",width:"0.25rem",height:"0.25rem",backgroundColor:m.r.colors.white,right:"-2px",top:"50%",transform:"translateY(-50%) rotate(45deg)",boxShadow:"0px 0px 2px 0px rgba(0, 0, 0, 0.1)",zIndex:-2}},arrow:{transform:"none !important",top:"0 !important",left:"0 !important",height:"100% !important",width:"100% !important",borderRadius:"4px !important",zIndex:-1,backgroundColor:m.r.colors.white,boxShadow:"-1px 0px 2px 0px rgba(0, 0, 0, 0.1)"}},children:r})},eI=a("MkUB"),eX=a("T2a8"),eE=a("QM8a"),eH=a("oGOP");let RelatedToolCard=e=>{let{item:t,showIconPhone:a,...r}=e,{link:l,icon:i,title:o}=t,d=!!(null==t?void 0:t.is_mobile_app_tool);return(0,n.BX)(ek(),{href:l,target:"_blank",className:(0,e_.default)("relatedTool--card flex items-center gap-4 p-3 pr-4","relative bg-white rounded-lg","md:flex-col md:items-start md:min-h-[128px] md:h-full","[&+&]:max-md:mt-2"),...r,children:[(0,n.tZ)("div",{className:(0,e_.default)("relatedTool--icon relative w-10 h-10 bg-neutral50 rounded-[50%] overflow-hidden p-1","max-md:flex max-md:items-center"),children:(0,n.tZ)("img",{loading:"lazy",src:i,alt:o,className:(0,e_.default)("relatedTool--icon_img z-[2] relative")})}),(0,n.BX)("div",{className:(0,e_.default)("relatedTool--card_content","md:min-h-0 md:flex-1 md:flex md:items-center md:flex-wrap"),children:[(0,n.tZ)(h.T,{as:"span",size:"p2",color:m.r.colors.gray800,className:"m-0 w-full block",children:o}),d&&(0,n.BX)(f.k,{gap:(0,en.h)(6),align:"center",py:(0,en.h)(5),children:[(0,n.tZ)(eE.Z,{className:"text-base leading-none w-[1em] h-[1em]"}),(0,n.tZ)(h.T,{as:"span",size:"n1",color:m.r.colors.blue800,children:"Hello Bacsi app"})]})]}),d&&a&&(0,n.tZ)(f.k,{w:(0,en.h)(32),h:(0,en.h)(32),align:"center",justify:"center",className:"absolute top-0 right-0 p-[6px] text-xl leading-none",children:(0,n.tZ)(eH.Z,{className:"w-[1em] h-[1em]"})})]})},getRelatedTracking=(e,t)=>{let{link:a}=e,r=a.includes("https://")?a:"".concat(t).concat(K.sb).concat(a);return{"data-event-category":"Health Tool","data-event-action":"Due Date - Helpful Tips - Explore More Health Tool","data-event-label":r}},RelatedTools=e=>{let{id:t,title:a,tools:r,className:l,style:i}=e,o=(0,Q.d)(),s=(0,eX.a)("(max-width: 1200px)"),{locale:c}=(0,F.h)(),[u,g]=(0,d.useState)(null),[v,b]=(0,d.useState)(0),[y,x]=(0,d.useState)(!1),[Z,w]=(0,d.useState)(!1),k=(0,d.useMemo)(()=>(0,M.UC)(c),[c]),T=(0,d.useMemo)(()=>{if(!r||!r.length)return[];if(!o)return r.map((e,t)=>(0,n.tZ)(ey.l.Slide,{children:(0,n.tZ)(RelatedToolCard,{item:e,showIconPhone:!o,...getRelatedTracking(e,k)})},"".concat(t,"-").concat(e.id)));let e=[],t=0;for(;t(0,n.tZ)(ey.l.Slide,{children:e.map(e=>(0,n.tZ)(RelatedToolCard,{item:e,showIconPhone:!o,...getRelatedTracking(e,k)},"".concat(t,"-").concat(e.id)))},"".concat(t)))},[r,k,o]),C=r&&r.length>3,S=(0,d.useCallback)(()=>{if(!u)return;let e=Math.max(0,Math.min(1,u.scrollProgress())),t=1/u.slidesInView().length;b((e{if(u)return S(),u.on("scroll",S),()=>{u.off("scroll",S)}},[u]),T.length)?(0,n.tZ)(p.x,{id:t,className:(0,e_.default)(l,"max-md:px-4"),style:i,children:(0,n.BX)(p.x,{className:"max-md:bg-neutral50 max-md:p-4 max-md:rounded-lg",children:[(0,n.tZ)(h.T,{as:"h3",size:"s1",color:m.r.colors.gray800,weight:"semiBold",className:"mb-4 md:mb-2",children:a}),(0,n.BX)(p.x,{className:"relative max-md:-mx-4",children:[(0,n.tZ)(ey.l,{dragFree:!0,align:"start",slideGap:(0,en.h)(8),slideSize:"calc(100% / 3 - ".concat((0,en.h)(8)," / 2)"),slidesToScroll:s?"auto":3,breakpoints:[{maxWidth:"md",slideSize:"calc(100% - ".concat((0,en.h)(8),")")},{minWidth:"md",slideSize:"calc(50% - ".concat((0,en.h)(8)," / 2)")},{minWidth:"lg",slideSize:"calc(100% / 3 - ".concat((0,en.h)(8)," / 2)")}],withControls:!1,getEmblaApi:g,classNames:{viewport:(0,e_.default)("max-md:px-4")},children:T}),!o&&C&&(0,n.BX)(n.HY,{children:[(0,n.tZ)(f.k,{w:32,h:32,align:"center",justify:"center",bg:m.r.colors.pink100,sx:{borderRadius:"100%",cursor:"pointer",transform:"translate(-50%, -50%)"},onClick:()=>null==u?void 0:u.scrollPrev(),className:(0,e_.default)("absolute z-[1] top-1/2 left-0 opacity-0 transition-all ease-linear duration-200 pointer-events-none",{"opacity-100 pointer-events-auto":y}),children:(0,n.tZ)(eb.Z,{size:20,color:m.r.colors.pink800})}),(0,n.tZ)(f.k,{w:32,h:32,align:"center",justify:"center",bg:m.r.colors.pink100,sx:{borderRadius:"100%",cursor:"pointer",transform:"translate(50%, -50%)"},onClick:()=>null==u?void 0:u.scrollNext(),className:(0,e_.default)("absolute z-[1] top-1/2 right-0 opacity-0 transition-all ease-linear duration-200 pointer-events-none",{"opacity-100 pointer-events-auto":Z}),children:(0,n.tZ)(ef.Z,{size:20,color:m.r.colors.pink800})})]}),o&&C&&(0,n.tZ)(eI.E,{value:v,styles:{bar:{transitionDuration:"0ms",backgroundColor:m.r.colors.neutral300,borderRadius:"0 !important"},root:{height:(0,en.h)(4),marginTop:"".concat((0,en.h)(16)," !important"),maxWidth:"calc(100% - ".concat((0,en.h)(32),")"),backgroundColor:m.r.colors.neutral100,borderRadius:"0 !important"}},size:"sm",mt:"xl",mx:"auto"})]})]})}):null};var eL=a("nWfB"),eO=a("TIp3"),eG=a("3Pfo"),eW=a("hXP/");let eU=d.memo(e=>{let{currentWeek:t,dueDate:a}=e,{formatMessage:r}=(0,C.Z)(),l=(0,Q.d)(),{locale:i}=(0,F.h)();return a?(0,n.tZ)(eW.jJ,{color:m.r.colors.pink50,children:(0,n.BX)(eW.wh,{children:[(0,n.BX)(eL.D,{order:1,size:l?20:26,color:m.r.colors.gray800,className:"max-w-[515px]",children:[r({id:"dueDatePage.banner.title",defaultMessage:"Congratulations!"})," ",r({id:"dueDatePage.dueDateResult"})," ",(0,n.tZ)(eO.x,{color:m.r.colors.pink800,span:!0,children:Z()(a).format(eG.TT[i])})]}),(0,n.tZ)(eO.x,{size:l?14:18,weight:"normal",color:m.r.colors.gray800,children:r({id:"dueDatePage.weekResult",defaultMessage:"You are weeks pregnant."},{week:function(e){return(0,n.tZ)(eO.x,{span:!0,color:m.r.colors.gray800,weight:"bold",children:1===t?r({id:"childCard.age.oneWeek",defaultMessage:"1 week"}):"".concat(t," ").concat(e)})}})})]})}):null});var eY=a("nLF+"),eV=a("BKNC"),eQ=a("8vDj"),eq=a("JPg4");let SuggestedVideos=e=>{let{id:t,title:a,videos:r,className:l,style:i}=e,o=(0,eQ.rZ)(),s=(0,Q.d)(),c=(0,d.useRef)((0,eq.Z)({delay:7e3,stopOnInteraction:!1})),[u,g]=(0,d.useState)(null),[v,b]=(0,d.useState)(!1),[y,x]=(0,d.useState)(!1),Z=(0,d.useMemo)(()=>s?r&&(null==r?void 0:r.length)>=2:r&&r.length>1,[s]),w=(0,d.useCallback)(()=>{u&&(b(u.canScrollPrev()),x(u.canScrollNext()))},[u]);return((0,d.useEffect)(()=>(null==u||u.on("scroll",w),w(),()=>{null==u||u.off("scroll",w)}),[u]),null==r?void 0:r.length)?(0,n.BX)(p.x,{id:t,className:l,style:i,children:[(0,n.tZ)(p.x,{className:(0,e_.default)("bg-white","px-4 pt-4 pb-0 md:py-[10px]","md:rounded-t-lg md:border-0 md:border-solid md:border-b md:border-neutral100"),children:(0,n.tZ)(h.T,{as:"h3",size:"s2",color:m.r.colors.gray800,weight:"semiBold",className:"tracking-[-0.4px]",children:a})}),(0,n.BX)(p.x,{className:(0,e_.default)("relative","bg-white rounded-b-lg py-4 md:pt-4 md:pb-3"),children:[(0,n.tZ)(ey.l,{dragFree:!0,align:(null==r?void 0:r.length)===1?"center":"start",containScroll:(null==r?void 0:r.length)===1?void 0:"trimSnaps",slideSize:"auto",slideGap:(0,en.h)(12),withControls:!1,withIndicators:!1,plugins:[c.current],onMouseEnter:c.current.stop,onMouseLeave:c.current.reset,getEmblaApi:g,classNames:{viewport:"px-4"},children:null==r?void 0:r.map((e,t)=>(0,n.tZ)(ey.l.Slide,{children:(0,n.tZ)(eY.V,{data:e,dataEventCategory:"Health Tool",dataEventAction:"Due Date - Helpful Tips - Click Suggest Video",styles:{root:{width:e.type===eV.V.SHORTS?103:330,[o.fn.largerThan("sm")]:{width:e.type===eV.V.SHORTS?160:515}},title:{[o.fn.largerThan("sm")]:{fontSize:(0,en.h)(14),lineHeight:(0,en.h)(22)}}}})},"".concat(t)))}),Z&&(0,n.BX)(n.HY,{children:[(0,n.tZ)(f.k,{w:32,h:32,align:"center",justify:"center",bg:m.r.colors.white,sx:{borderRadius:"100%",cursor:"pointer",transform:"translate(-50%, -50%)"},onClick:()=>null==u?void 0:u.scrollPrev(),className:(0,e_.default)("absolute z-[1] top-1/2 left-0 opacity-0 transition-all ease-linear duration-200 pointer-events-none",{"opacity-100 pointer-events-auto":v}),children:(0,n.tZ)(eb.Z,{size:20,color:m.r.colors.gray600})}),(0,n.tZ)(f.k,{w:32,h:32,align:"center",justify:"center",bg:m.r.colors.white,sx:{borderRadius:"100%",cursor:"pointer",transform:"translate(50%, -50%)"},onClick:()=>null==u?void 0:u.scrollNext(),className:(0,e_.default)("absolute z-[1] top-1/2 right-0 opacity-0 transition-all ease-linear duration-200 pointer-events-none",{"opacity-100 pointer-events-auto":y}),children:(0,n.tZ)(ef.Z,{size:20,color:m.r.colors.gray600})})]})]})]}):null},TrimeterSlider=e=>{let{currentWeek:t,isSponsored:a}=e,{formatMessage:r}=(0,C.Z)();return(0,n.tZ)(eW.V3,{isSponsored:a,children:(0,n.tZ)(eW.Kl,{min:0,max:40,value:t,thumbSize:1,size:"lg",radius:"xl",showLabelOnHover:!1,marks:[{value:13},{value:26}],onChange:()=>null,isStatic:!0,labelAlwaysOn:!0,label:e=>(0,n.tZ)(h.T,{size:"p5",as:"span",color:m.r.colors.pink800,children:r({id:"dueDateTool.weekNumber",defaultMessage:"Week {weekNumber}"},{weekNumber:e})})})})};var eF=a("ppbz");let WeekDrawer=e=>{let{dueDateAllWeeks:t,open:a,onClose:r,firstDay:l,currentWeek:i,onWeekClick:o,...s}=e,{formatMessage:c}=(0,C.Z)(),u=(0,d.useMemo)(()=>Array.from({length:44}).map((e,a)=>{var r;return{value:String(a+1),fruitIcon:null===(r=t[a])||void 0===r?void 0:r.fruit_icon,firstDay:l,label:c({id:"dueDateTool.weekNumber",defaultMessage:"Week {weekNumber}"},{weekNumber:a+1})}}),[l,t]);return(0,n.tZ)(eF.D,{title:c({id:"childCard.age.week",defaultMessage:"{weeks} weeks"},{weeks:40}),onClose:r,open:a,placement:"bottom",...s,children:(0,n.tZ)("div",{children:u.map(e=>(0,n.tZ)(eW.eD,{isSelected:e.value===String(i),onClick:()=>{o(e.value),r()},...e},e.value))})})},eK=(0,eu.Z)("div",{target:"e1im6ihm0"})("position:relative;width:100%;min-height:calc(100vh - 56px);&[data-status='loading']{display:none;}.due-date-calculator-bottom-divider{border-width:4px;border-color:#f7f9fc;}.recalculate-btn{display:flex;margin:24px 0;img{margin-right:8px;}}",eh.M.mbUp,"{display:flex;}input[type='date']{&:after{width:16px;height:16px;background-image:url('",K.uQ,"/calendar.svg');background-repeat:no-repeat;background-size:contain;content:'';}}input[type='date']::-webkit-calendar-picker-indicator{position:absolute;top:0;right:0;bottom:0;left:-16px;width:auto;height:auto;background:transparent;color:transparent;cursor:pointer;}input[type='date']:active,input[type='date']:focus{::-webkit-calendar-picker-indicator{outline:none;}}"),ej=(0,eu.Z)("div",{target:"e1im6ihm1"})("padding-left:0.5rem;padding-right:0.5rem;background-color:",m.r.colors.pink100,";border-bottom-left-radius:12px;border-bottom-right-radius:12px;& > div{z-index:1;}",eh.M.mbUp,"{background-color:transparent;width:43.25%;padding-top:0.5rem;padding-inline:1rem;border-bottom-left-radius:0;border-bottom-right-radius:0;}",eh.M.lgPcUp,"{padding-inline:7.5rem;}"),eJ=(0,eu.Z)("div",{target:"e1im6ihm2"})("padding-left:1rem;padding-right:1rem;flex:1;min-width:0;&[data-error='true']{display:flex;justify-content:center;align-items:center;}",eh.M.mbUp,"{background-color:",m.r.colors.pink50,";}"),e$=(0,eu.Z)("div",{target:"e1im6ihm3"})("position:relative;",eh.M.mbUp,"{padding:2.5rem 3rem;}",eh.M.lgPcUp,"{padding:2.5rem 5rem;}");(l=o||(o={})).idle="idle",l.loading="loading",l.error="error";var e0=a("vAgI"),e1=a("zTPA");let DueDatePageComponent=e=>{var t,a,r,l,x;let{dueDatePageInfo:w,dueDateAllWeeks:el,query:ei,footerInfo:eo,dataNavMenuContent:en}=e,ed=(0,Q.d)(),{locale:es,router:ec,asPath:eu}=(0,F.h)(),{getHealthToolLink:eh}=(0,c.u)(es),{isRecalculate:eg,setIsRecalculate:em,setIsCalculating:ep,setNavResultTarget:ev}=(0,U.eY)(),[ef,eb]=(0,d.useState)([]),ey=(0,d.useRef)(""),ex=(0,d.useRef)(null),[eZ,ew]=(0,d.useState)(),{formatMessage:ek}=(0,C.Z)(),eT=ei[s.Q.type],eC=ei[s.Q.startDate],eS=ei[s.Q.additional],[eB,eD]=(0,d.useState)("string"==typeof eT&&eT.length>0&&"string"==typeof eC&&eC.length>0&&"string"==typeof eS&&eS.length>=0),[e_,eN]=(0,d.useState)(eB?o.loading:o.idle),{state:{userInfo:eM,isLoggedIn:eP}}=(0,d.useContext)(J.I),[ez,eR]=(0,d.useState)([[],[],[]]),{setDueDateInfo:eA,setResultDueDate:eI}=(0,$.b)(e=>e,S.X);(0,d.useEffect)(()=>{eA(w)},[w]);let[eX,eE]=(0,d.useState)(!1),[eH,eL]=(0,d.useState)(0),[eO,eG]=(0,d.useState)(),[eW,eY]=(0,d.useState)(()=>new Date),[eV,eQ]=(0,d.useState)(0),[eq,eF]=(0,d.useState)(eV);(0,d.useEffect)(()=>{let e=ez.map(e=>e.length),t=0;for(let a=0;ae.setShouldOnboardingModalOpen);(0,d.useEffect)(()=>{e2(!!eX)},[w.is_leadgen,eX]);let{response:e5}=(0,V.Z)({url:(0,M.cN)(N.y.HEALTH_TOOL.GET_DUE_DATE_SUGGESTED_ARTICLES,{from:"".concat(eV),to:"".concat(eV)}),method:"GET",trigger:[eX,null==eO?void 0:eO.toString()],condition:eX}),{data:e4}=e5||{},{data:e8}=e4||{},{helpful_tips:e3,results:e9,embedding:e6}=e8||{},{related_tool:e7,suggested_videos:te}=e3||{},tt=(null==e9?void 0:null===(t=e9[0])||void 0===t?void 0:t.suggested_articles)||[],ta=null==e6?void 0:e6.pregnacy_navigation,tr=(0,d.useMemo)(()=>{var e;return(null===(e=w.trimesters)||void 0===e?void 0:e[eH+1])||{}},[eH,w.trimesters]),{title:tl,health_tools:ti}=(0,d.useMemo)(()=>({title:(null==e7?void 0:e7.title)||ek({id:"tool.relatedTools",defaultMessage:"Suggested articles"}),health_tools:(null==e7?void 0:e7.health_tools)||[]}),[null==e7?void 0:e7.title,null==e7?void 0:e7.health_tools]),{title:to,description:tn,categories:td}=(0,d.useMemo)(()=>tr&&tr.categories||{},[tr]),{title:ts,description:tc,articles:tu}=(0,d.useMemo)(()=>tr&&(null==tr?void 0:tr.articles)||{},[tr]),{title:th,videos:tg}=(0,d.useMemo)(()=>{var e;return{title:(null==te?void 0:te.title)||ek({id:"common.suggestedVideos",defaultMessage:"Suggested videos"}),videos:(null!==(e=null==te?void 0:te.video)&&void 0!==e?e:[]).map(_.Yj)}},[null==te?void 0:te.title,null==te?void 0:te.video]),tm=!!ti.length||!!tg.length||!!(null==tu?void 0:tu.length),tp=(0,et.od)({countryAdTag:(0,et.Em)(es,{isMobile:ed}),contentAdTag:(0,et.WV)(es,eu,["health-tools/due-date"])}),{reloadMyHealthData:tv}=(0,q.b)({initLoad:!1}),handleLeadGen=e=>{if(ey.current=(0,e0.b7)(e||""),eP)ec.push(ey.current);else{(0,P.p0)(ey.current,"due-date");return}return!0},onSubmitDueDate=async e=>{var t,a;let{startDate:r,dueDate:l,isFirstPregnant:i,otherInfo:n}=e;if(!r||!l){ep(!1),eN(o.error);return}let d=JSON.parse(localStorage.getItem(U.Ls)||"{}");ew(d),eI(l.getTime()),eG(l),eY(r);let s=Z()().diff(Z()(r),"day")+1;eQ(new Date>r?Math.floor(s/7)+1:1),eF(new Date>r?Math.floor(s/7)+1:1);let c=[[],[],[]],u=r,h=0;if(el)for(;Z()(u).isBefore(l);){let e=Math.floor((h+1)/13.5)>2?2:Math.floor((h+1)/13.5);c[e].push({date:Z()(u).format("zh-TW"===es?"MM/DD":"DD/MM"),dateType2:Z()(u).format("zh-TW"===es?"MM/DD":"DD/MM"),dateType3:Z()(u).format(K.yJ),...el[h]}),u=Z()(u).add(7,"day").toDate(),h+=1}else c=[];eR(c),w.is_leadgen&&"undefined"!=typeof localStorage&&"done"!==localStorage.getItem(K.d4)&&(ex.current={startDate:r,dueDate:l,otherInfo:n});let g=y.parse(document.cookie||"");await Promise.all([(0,B.d)(N.y.SIDIS.POST_SIDIS_DUE_DATE,{method:"POST",data:{account_id:null!==(t=null==eM?void 0:eM.id)&&void 0!==t?t:null,site_id:parseInt(K.CX[es].SITE_ID),ga_client_id:g._ga||"",email:null!==(a=null==eM?void 0:eM.email)&&void 0!==a?a:null,user_name:(null==eM?void 0:eM.name)||(null==eM?void 0:eM.username)||"",baby_dob:null,...n,trimesters:k()(c).map((e,t)=>({week_number:t+1,start_date:e.dateType3})),position_type:"landing_page",device_type:"web ",url:window.location.href,categories:[],is_my_self:d.isMyself,is_first_pregnant:i,estimated_due_date:Z()(l).format(K.yJ),...d.birthday&&{birthday:d.birthday},...(d.additionalQuestions||[]).length>0&&{additional_questions:d.additionalQuestions},source_url:d.source_url}},"sidis_update"),(null==eM?void 0:eM.id)&&(null==d?void 0:d.isMyself)&&(null==d?void 0:d.birthday)&&(0,er.eZ)({userInfo:eM,data:{birthday:Z()(d.birthday,K.tD).toDate()},forceSaveBirthday:!(null==d?void 0:d.isSubmitted)})]),tv(),localStorage.removeItem(U.Ls),eE(!0),eN(o.idle),ep(!1),em(!1)},updateSidisData=e=>{var t,a;let r=y.parse(document.cookie||"");(0,B.d)(N.y.SIDIS.POST_SIDIS_DUE_DATE,{method:"POST",data:{account_id:null!==(t=null==eM?void 0:eM.id)&&void 0!==t?t:null,site_id:parseInt(K.CX[es].SITE_ID),ga_client_id:r._ga||"",email:null!==(a=null==eM?void 0:eM.email)&&void 0!==a?a:null,user_name:(null==eM?void 0:eM.name)||(null==eM?void 0:eM.username)||"",baby_dob:Z()(e).format(K.yJ),position_type:"landing_page",device_type:"web ",url:window.location.href}},"sidis_update")},tf=(0,d.useMemo)(()=>{if(!eX){var e;return null===(e=(null==w?void 0:w.informations)||[])||void 0===e?void 0:e.map(e=>({title:e.title,content:e.description}))}return(null==tr?void 0:tr.faqs)||[]},[null==tr?void 0:tr.faqs,eX,null==w?void 0:w.informations]);(0,d.useEffect)(()=>{(async()=>{try{if(eX&&eP){var e,t;let a=await (0,B.d)(N.y.TOGETHER.GET_TOGETHER_TOPICS,{params:{dueDateMonth:Z()(eO).get("month")+1,dueDateYear:Z()(eO).get("y"),showHidden:1}},"together"),r=null==a?void 0:null===(t=a.data)||void 0===t?void 0:null===(e=t.topics)||void 0===e?void 0:e.map(e=>(0,D.l2)(e));eb(r)}}catch(e){}})()},[eX,eO]),(0,d.useEffect)(()=>{void 0!==eM&&(async()=>{if((0,ea.R)(),"string"==typeof eT&&eT.length>0&&"string"==typeof eC&&eC.length>0&&"string"==typeof eS&&eS.length>=0){let e;switch(Number(eT)){case W.Q.lastPeriod:e=U.g6;break;case W.Q.conception:e=U.P2;break;case W.Q.IVF:e=U.kF;break;case W.Q.IUI:e=U.NC;break;case W.Q.ultrasound:e=U.Oh;break;default:e=U.g6}eN(o.loading);let t=await e(new Date(eC),eS);onSubmitDueDate(t),eD(!1)}})()},[void 0===eM]);let tb=(0,d.useMemo)(()=>{var e,t;return null==el?void 0:null===(t=el[eV-1])||void 0===t?void 0:null===(e=t.recommended_article)||void 0===e?void 0:e.permalink},[el,eV]),ty=(0,d.useMemo)(()=>T.stringifyUrl({url:"".concat((0,M.UC)(es)).concat(eh(j.QO.DUE_DATE)),query:{result:1,[s.Q.startDate]:Z()(eO).format("YYYY-MM-DD"),[s.Q.type]:eT,[s.Q.additional]:eS}}),[eO,eh,eX]),[tx,tZ]=(0,d.useState)(!1),[tw,tk]=(0,d.useState)(!1),tT=ei[s.Q.source],tC="".concat(K.MO,"user"),tS=eX?"my-health"===tT?[{label:ek({id:"healthTool.breadcrumb.myHealth",defaultMessage:"My Health"}),value:"".concat(tC,"/health")},{label:ek({id:"dueDate.breadcrumb.result",defaultMessage:"Due Date Result"}),value:""}]:[{label:ek({id:"healthtools.title"}),value:"/health-tools"},{label:ek({id:"healthTools.dueDateCalculator"}),value:"".concat(eh(j.QO.DUE_DATE))},{label:ek({id:"dueDate.breadcrumb.result",defaultMessage:"Due Date Result"}),value:""}]:[{label:ek({id:"healthtools.title"}),value:"/health-tools"},{label:ek({id:"healthTools.dueDateCalculator"}),value:"".concat(eh(j.QO.DUE_DATE))}],tB=w.title||ek({id:"healthTools.dueDateCalculator"}),tD={avatar:(null===(a=w.reviewed_by)||void 0===a?void 0:a.avatar_thumbnail)||"",reviewer:(null===(r=w.reviewed_by)||void 0===r?void 0:r.display_name)||"",date:w.reviewed_date||"",link:(0,D.Lb)(null==w?void 0:w.reviewed_by)};(0,d.useEffect)(()=>{let onScroll=()=>{let e=[document.getElementById(i.due_date_revealed),document.getElementById(i.guide_and_support),document.getElementById(i.helpful_tips_for_mom),document.getElementById(i.faq)].filter(Boolean);if(!e.length)return;let t=e.map(e=>{let t=e.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;if(t.bottom<=0||t.top>=a||t.right<=0||t.left>=r)return{section:e,visibleHeight:0};let l=Math.min(t.bottom,a)-Math.max(t.top,0);return{section:e,visibleHeight:l}}).reduce((e,t)=>e.visibleHeight>t.visibleHeight?e:t);(null==t?void 0:t.visibleHeight)&&ev(t.section.id)};return window.addEventListener("scroll",onScroll),()=>{window.removeEventListener("scroll",onScroll)}},[ed]);let t_=!!(null==tf?void 0:tf.length);return(0,n.BX)(Y.x,{description:ek({id:"dueDatePage.seoDescription"}),SEOData:{schemaData:ek({id:"dueDatePage.seoSchema"}),isIndexable:!0,apiMetaData:null==w?void 0:w.meta_tag},footerInfo:eo,isSponsored:null==w?void 0:w.is_sponsored,sponsoredBy:null==w?void 0:w.sponsor,sponsoredType:"content",dataNavMenuContent:en,activeMenuService:"tools",hideWelcomePopup:!!(w.is_leadgen&&eX),children:[eX&&(0,n.tZ)(e1.X,{campaign:w.collectingData.campaigns,isSkippable:w.is_skippable,phoneVerify:w.phone_verification,typeForm:null==w?void 0:w.collectingTypes,toolName:"duedate",extraPayloadValues:eZ?{childDoB:{value:Z()(eZ.dueDate).format(K.yJ),isDate:!0}}:void 0}),(0,n.BX)(eK,{children:[e_===o.loading&&(0,n.tZ)(u.fz,{overlayBlur:2,visible:!0}),eX&&ed&&!eg&&(0,n.tZ)(desktopNavResult,{suggestedArticles:tt,topics:ef||[],isShowFaqs:t_,sponsorBanner:w.sponsor_banner,hasHelpfulTips:tm}),(!eX||eg)&&!eB&&ed&&(0,n.tZ)(p.x,{sx:{overflow:"hidden",borderTopLeftRadius:12,borderTopRightRadius:12},children:(0,n.tZ)(X.I,{heading:tB,description:w.description||ek({id:"dueDatePage.description"}),reviewBy:tD,isPink:!0})}),(0,n.BX)(ej,{"data-result":String(eX),children:[!ed&&(0,n.tZ)(p.x,{mx:-16,children:(0,n.tZ)(A.d,{pageItem:tS})}),(0,n.BX)("div",{style:{position:"sticky",top:112},children:[!ed&&(0,n.BX)(n.HY,{children:[(0,n.tZ)(h.T,{size:"h3",as:eX?"h2":"h1",mb:8,mt:40,children:tB}),(0,n.tZ)(X.I.MedicalReview,{size:"small",reviewBy:tD}),(0,n.tZ)(v.T,{h:24})]}),(!eX||eg)&&(0,n.tZ)(n.HY,{children:(0,n.tZ)(W.v,{onSubmitDueDate:(e,t)=>{let a=handleLeadGen(t);a&&onSubmitDueDate(e)},additionalQuestions:(null==w?void 0:w.listQuestions)||[],controlledSubmit:w.is_leadgen&&"undefined"!=typeof localStorage&&"done"!==localStorage.getItem(K.d4),adUnitPath:ed?tp:""})}),eX&&!ed&&!eg&&(0,n.BX)(n.HY,{children:[(0,n.tZ)(desktopNavResult,{suggestedArticles:tt,topics:ef||[],isShowFaqs:t_,sponsorBanner:null==w?void 0:w.sponsor_banner,hasHelpfulTips:tm}),(0,n.tZ)(p.x,{pb:16,children:(0,n.tZ)(disclaimer,{description:w.disclaimer,bordered:!1})})]})]})]}),e_!==o.error?(0,n.BX)(eJ,{style:eX?{padding:0}:{},children:[eX&&!ed&&(0,n.tZ)(TrimeterSlider,{currentWeek:eV,isSponsored:null==w?void 0:w.is_sponsored}),eX&&(0,n.BX)(e$,{children:[!ed&&(0,n.tZ)(recalculateBtnWithTooltip,{}),(0,n.BX)("div",{children:[(0,n.BX)(p.x,{px:ed?16:0,pb:ed?16:0,bg:m.r.colors.pink50,id:i.due_date_revealed,children:[(0,n.tZ)(eU,{dueDate:eO,currentWeek:eV,articleLink:tb}),(0,n.tZ)(L.j9,{children:(0,n.tZ)(E.Q,{onClickGoToOvulationTool:e=>{e&&updateSidisData(e),ec.push(eh(j.QO.OVULATION)||"/")},dueDateWeeks:el,currentWeek:eV,selectedWeek:eq,firstDay:eW,onClickWeek:()=>tZ(!0)})}),!ed&&(0,n.tZ)(f.k,{justify:"center",mb:32,children:(0,n.tZ)(O.n.BottomNavHorizonal,{shareUrl:ty,showFull:!0,iconSize:24,styles:{heading:{fontSize:12}},bgColor:m.r.colors.white,bgColorCopyBtn:m.r.colors.gray100})})]}),ed&&(0,n.tZ)(p.x,{px:16,py:24,children:(0,n.tZ)(disclaimer,{description:w.disclaimer,bordered:!1})})]}),(0,n.tZ)(guideAndSupport,{titleArticle:null===(l=el[eq-1])||void 0===l?void 0:l.title_article,descriptionArticle:null===(x=el[eq-1])||void 0===x?void 0:x.description_article,suggestedArticles:tt,sponsorBanner:w.sponsor_banner,topics:ef,dueDate:eO,adUnitPath:tp}),tm&&(0,n.BX)("div",{id:i.helpful_tips_for_mom,className:"mt-0 md:mt-16",children:[(0,n.tZ)(RelatedTools,{title:tl,tools:ti}),(0,n.tZ)(LastestPregnancy,{title:to,description:tn,categories:td,className:"mt-0 md:mt-10"}),(0,n.tZ)(OtherAritlces,{title:ts,description:tc,articles:tu,className:"mt-0 md:mt-10"}),(0,n.tZ)(SuggestedVideos,{title:th,videos:tg,className:"mt-0 md:mt-10"})]}),!ed&&t_&&(0,n.tZ)(p.x,{id:i.faq,pt:64,mih:"80vh",children:(0,n.tZ)(component_currentFaqs,{currentFaqs:tf,bgContentColor:m.r.colors.white})})]}),!eX&&(0,n.BX)(e$,{children:[!ed&&(0,n.tZ)(dueDateIntroBanner,{featuredImage:null==w?void 0:w.featured_image}),(0,n.tZ)(disclaimer,{description:w.disclaimer}),(0,n.tZ)(component_currentFaqs,{currentFaqs:tf})]}),(0,n.tZ)("div",{className:"bottom-ad"})]}):(0,n.tZ)(eJ,{"data-error":"true",children:(0,n.BX)(f.k,{maw:400,py:16,gap:16,direction:"column",align:"center",children:[(0,n.tZ)("img",{src:"".concat(K.Nr,"/due-date-calculation-error.png"),style:{width:"200px",height:"200px",objectFit:"contain",maxWidth:"100%"},alt:"",loading:"lazy"}),(0,n.tZ)(h.T,{size:"h3",align:"center",color:m.r.colors.gray800,children:"Oops"}),(0,n.tZ)(h.T,{size:"p3",align:"center",color:m.r.colors.gray700,children:ek({id:"dueDatePage.error.description"})}),(0,n.tZ)(g.B,{variant:"secondary",size:"lg",onClick:()=>ec.push("/health-tools"),children:ek({id:"dueDatePage.explore_other_tools",defaultMessage:"Explore other tools"})})]})})]}),ed&&t_&&(0,n.tZ)(b.W,{size:"lg",id:i.faq,children:(0,n.tZ)(component_currentFaqs,{currentFaqs:tf})}),ed&&(0,n.tZ)(A.d,{pageItem:tS}),(0,n.tZ)(H.default.FitnessHealthTool,{appTool:eX?void 0:"baby-kick-counter",isDueDateRecalculate:eX,shareUrl:ty}),ed&&(0,n.BX)(n.HY,{children:[(0,n.tZ)(WeekDrawer,{open:tx,onClose:()=>tZ(!1),dueDateAllWeeks:el,firstDay:eW,currentWeek:eq,onWeekClick:e=>eF(Number(e))}),(0,n.tZ)(I.U,{categories:eX?ta:w.pregnacy_navigation,drawerProps:{open:tw,onClose:()=>tk(!1)}})]}),eX&&(0,n.BX)(z.o,{children:[(0,n.tZ)(R.FixedBottomAdBlock,{adUnitPath:tp,className:"article-bottom-ad",isMobile:ed}),(0,n.tZ)(G.OutOfPageAd,{id:"div-gpt-out-of-page",adUnitPath:tp})]})]})}},sXkf:function(e,t,a){a.d(t,{$r:function(){return g},j$:function(){return n},lt:function(){return c},mq:function(){return u},oX:function(){return s},tZ:function(){return o},xT:function(){return i},xj:function(){return d},yz:function(){return h}});var r=a("Vvt1"),l=a.n(r);let i=l()(()=>Promise.all([a.e(2619),a.e(9377),a.e(4594),a.e(9409),a.e(6259),a.e(1818),a.e(7519),a.e(761),a.e(2189),a.e(5231),a.e(7797),a.e(5454),a.e(106),a.e(9803),a.e(5349),a.e(4148),a.e(2509),a.e(1533),a.e(1108),a.e(9124),a.e(4190),a.e(4584),a.e(1829),a.e(2582),a.e(9301),a.e(4291),a.e(3792),a.e(7743),a.e(3929),a.e(891),a.e(137),a.e(4414),a.e(9762),a.e(1079),a.e(7613),a.e(8098),a.e(3416),a.e(2500),a.e(1570),a.e(3506),a.e(1413),a.e(3534),a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341),a.e(4846),a.e(2233),a.e(1058),a.e(3295),a.e(1538),a.e(6629),a.e(7152),a.e(5684),a.e(2574),a.e(9884),a.e(7644),a.e(6962),a.e(4050),a.e(6638),a.e(7741),a.e(1137),a.e(2433),a.e(9689),a.e(5385),a.e(3564),a.e(7082),a.e(3158),a.e(8320),a.e(5641),a.e(7454),a.e(7004),a.e(4758),a.e(6219),a.e(17),a.e(8990),a.e(4067),a.e(9487),a.e(9083),a.e(1520),a.e(270),a.e(7596),a.e(8217),a.e(7543),a.e(2835),a.e(2507),a.e(6885),a.e(7859),a.e(5970),a.e(2730),a.e(6287),a.e(7682),a.e(1551),a.e(4870),a.e(9922),a.e(3133),a.e(612),a.e(2002),a.e(1880),a.e(7471),a.e(7165),a.e(5451),a.e(8612),a.e(2819),a.e(7695),a.e(3602),a.e(279)]).then(a.bind(a,"4GgH")).then(e=>e.DueDatePageComponent),{loadableGenerated:{webpack:()=>["4GgH"]}}),o=l()(()=>Promise.all([a.e(2619),a.e(9377),a.e(4594),a.e(9409),a.e(6259),a.e(1818),a.e(7519),a.e(761),a.e(2189),a.e(5231),a.e(7797),a.e(5454),a.e(106),a.e(9803),a.e(5349),a.e(4148),a.e(2509),a.e(1533),a.e(1108),a.e(9124),a.e(4190),a.e(4584),a.e(1829),a.e(2582),a.e(9301),a.e(4291),a.e(3792),a.e(7743),a.e(3929),a.e(891),a.e(137),a.e(4414),a.e(9762),a.e(1079),a.e(7613),a.e(8098),a.e(3416),a.e(2500),a.e(1570),a.e(3506),a.e(1413),a.e(3534),a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341),a.e(4846),a.e(2233),a.e(1058),a.e(3295),a.e(1538),a.e(6629),a.e(7152),a.e(5684),a.e(2574),a.e(9884),a.e(7644),a.e(6962),a.e(4050),a.e(6638),a.e(7741),a.e(1137),a.e(2433),a.e(9689),a.e(5385),a.e(3564),a.e(7082),a.e(3158),a.e(8320),a.e(5641),a.e(7454),a.e(7004),a.e(4758),a.e(6219),a.e(17),a.e(8990),a.e(4067),a.e(9487),a.e(9083),a.e(1520),a.e(270),a.e(7596),a.e(8217),a.e(7543),a.e(2835),a.e(2507),a.e(6885),a.e(7859),a.e(5970),a.e(2730),a.e(6287),a.e(7682),a.e(1551),a.e(4870),a.e(9922),a.e(3133),a.e(612),a.e(2002),a.e(1880),a.e(7471),a.e(7165),a.e(5451),a.e(8612),a.e(2819),a.e(7695),a.e(3602),a.e(1380)]).then(a.bind(a,"QXTB")).then(e=>e.BMIToolPage),{loadableGenerated:{webpack:()=>["QXTB"]}}),n=l()(()=>Promise.all([a.e(2619),a.e(9377),a.e(4594),a.e(9409),a.e(6259),a.e(1818),a.e(7519),a.e(761),a.e(2189),a.e(5231),a.e(7797),a.e(5454),a.e(106),a.e(9803),a.e(5349),a.e(4148),a.e(2509),a.e(1533),a.e(1108),a.e(9124),a.e(4190),a.e(4584),a.e(1829),a.e(2582),a.e(9301),a.e(4291),a.e(3792),a.e(7743),a.e(3929),a.e(891),a.e(137),a.e(4414),a.e(9762),a.e(1079),a.e(7613),a.e(8098),a.e(3416),a.e(2500),a.e(1570),a.e(3506),a.e(1413),a.e(3534),a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341),a.e(4846),a.e(2233),a.e(1058),a.e(3295),a.e(1538),a.e(6629),a.e(7152),a.e(5684),a.e(2574),a.e(9884),a.e(7644),a.e(6962),a.e(4050),a.e(6638),a.e(7741),a.e(1137),a.e(2433),a.e(9689),a.e(5385),a.e(3564),a.e(7082),a.e(3158),a.e(8320),a.e(5641),a.e(7454),a.e(7004),a.e(4758),a.e(6219),a.e(17),a.e(8990),a.e(4067),a.e(9487),a.e(9083),a.e(1520),a.e(270),a.e(7596),a.e(8217),a.e(7543),a.e(2835),a.e(2507),a.e(6885),a.e(7859),a.e(5970),a.e(2730),a.e(6287),a.e(7682),a.e(1551),a.e(4870),a.e(9922),a.e(3133),a.e(612),a.e(2002),a.e(1880),a.e(7471),a.e(7165),a.e(5451),a.e(8612),a.e(2819),a.e(7695),a.e(3602),a.e(913)]).then(a.bind(a,"1x8x")).then(e=>e.BMRToolPage),{loadableGenerated:{webpack:()=>["1x8x"]}}),d=l()(()=>Promise.all([a.e(4846),a.e(2233),a.e(1058),a.e(3295),a.e(1538),a.e(6629),a.e(7152),a.e(5684),a.e(2574),a.e(9884),a.e(7644),a.e(6962),a.e(4050),a.e(6638),a.e(7741),a.e(1137),a.e(2433),a.e(9689),a.e(5385),a.e(3564),a.e(7082),a.e(3158),a.e(8320),a.e(5641),a.e(7454),a.e(7004),a.e(4758),a.e(6219),a.e(17),a.e(8990),a.e(4067),a.e(9487),a.e(9083),a.e(1520),a.e(270),a.e(7596),a.e(8217),a.e(7543),a.e(2835),a.e(2507),a.e(6885),a.e(7859),a.e(5970),a.e(2730),a.e(6287),a.e(7682),a.e(1551),a.e(4870),a.e(9922),a.e(3133),a.e(612),a.e(2002),a.e(1880),a.e(7471),a.e(7165),a.e(5451),a.e(8612)]).then(a.bind(a,"tK8Q")).then(e=>e.PWGToolPage),{loadableGenerated:{webpack:()=>["tK8Q"]}}),s=l()(()=>Promise.all([a.e(4846),a.e(2233),a.e(1058),a.e(3295),a.e(1538),a.e(6629),a.e(7152),a.e(5684),a.e(2574),a.e(9884),a.e(7644),a.e(6962),a.e(4050),a.e(6638),a.e(7741),a.e(1137),a.e(2433),a.e(9689),a.e(5385),a.e(3564),a.e(7082),a.e(3158),a.e(8320),a.e(5641),a.e(7454),a.e(7004),a.e(4758),a.e(6219),a.e(17),a.e(8990),a.e(4067),a.e(9487),a.e(9083),a.e(1520),a.e(270),a.e(7596),a.e(8217),a.e(7543),a.e(2835),a.e(2507),a.e(6885),a.e(7859),a.e(5970),a.e(2730),a.e(6287),a.e(7682),a.e(1551),a.e(4870),a.e(9922),a.e(3133),a.e(612),a.e(2002),a.e(1880),a.e(7471),a.e(7165),a.e(5451),a.e(8612)]).then(a.bind(a,"HGXp")).then(e=>e.THRToolPage),{loadableGenerated:{webpack:()=>["HGXp"]}}),c=l()(()=>Promise.all([a.e(2619),a.e(9377),a.e(4594),a.e(9409),a.e(6259),a.e(1818),a.e(7519),a.e(761),a.e(2189),a.e(5231),a.e(7797),a.e(5454),a.e(106),a.e(9803),a.e(5349),a.e(4148),a.e(2509),a.e(1533),a.e(1108),a.e(9124),a.e(4190),a.e(4584),a.e(1829),a.e(2582),a.e(9301),a.e(4291),a.e(3792),a.e(7743),a.e(3929),a.e(891),a.e(137),a.e(4414),a.e(9762),a.e(1079),a.e(7613),a.e(8098),a.e(3416),a.e(2500),a.e(1570),a.e(3506),a.e(1413),a.e(3534),a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341),a.e(4846),a.e(2233),a.e(1058),a.e(3295),a.e(1538),a.e(6629),a.e(7152),a.e(5684),a.e(2574),a.e(9884),a.e(7644),a.e(6962),a.e(4050),a.e(6638),a.e(7741),a.e(1137),a.e(2433),a.e(9689),a.e(5385),a.e(3564),a.e(7082),a.e(3158),a.e(8320),a.e(5641),a.e(7454),a.e(7004),a.e(4758),a.e(6219),a.e(17),a.e(8990),a.e(4067),a.e(9487),a.e(9083),a.e(1520),a.e(270),a.e(7596),a.e(8217),a.e(7543),a.e(2835),a.e(2507),a.e(6885),a.e(7859),a.e(5970),a.e(2730),a.e(6287),a.e(7682),a.e(1551),a.e(4870),a.e(9922),a.e(3133),a.e(612),a.e(2002),a.e(1880),a.e(7471),a.e(7165),a.e(5451),a.e(8612),a.e(2819),a.e(7695),a.e(3602),a.e(7536)]).then(a.bind(a,"OEyr")).then(e=>e.OvulationPageComponent),{loadableGenerated:{webpack:()=>["OEyr"]}}),u=l()(()=>Promise.all([a.e(4846),a.e(2233),a.e(1058),a.e(3295),a.e(1538),a.e(6629),a.e(7152),a.e(5684),a.e(2574),a.e(9884),a.e(7644),a.e(6962),a.e(4050),a.e(6638),a.e(7741),a.e(1137),a.e(2433),a.e(9689),a.e(5385),a.e(3564),a.e(7082),a.e(3158),a.e(8320),a.e(5641),a.e(7454),a.e(7004),a.e(4758),a.e(6219),a.e(17),a.e(8990),a.e(4067),a.e(9487),a.e(9083),a.e(1520),a.e(270),a.e(7596),a.e(8217),a.e(7543),a.e(2835),a.e(2507),a.e(6885),a.e(7859),a.e(5970),a.e(2730),a.e(6287),a.e(7682),a.e(1551),a.e(4870),a.e(9922),a.e(3133),a.e(612),a.e(2002),a.e(1880),a.e(7471),a.e(7165),a.e(5451),a.e(8612),a.e(2819),a.e(7695),a.e(3005)]).then(a.bind(a,"i5SK")).then(e=>e.BabyVaccinationPage),{loadableGenerated:{webpack:()=>["i5SK"]}}),h=l()(()=>Promise.all([a.e(4846),a.e(2233),a.e(1058),a.e(3295),a.e(1538),a.e(6629),a.e(7152),a.e(5684),a.e(2574),a.e(9884),a.e(7644),a.e(6962),a.e(4050),a.e(6638),a.e(7741),a.e(1137),a.e(2433),a.e(9689),a.e(5385),a.e(3564),a.e(7082),a.e(3158),a.e(8320),a.e(5641),a.e(7454),a.e(7004),a.e(4758),a.e(6219),a.e(17),a.e(8990),a.e(4067),a.e(9487),a.e(9083),a.e(1520),a.e(270),a.e(7596),a.e(8217),a.e(7543),a.e(2835),a.e(2507),a.e(6885),a.e(7859),a.e(5970),a.e(2730),a.e(6287),a.e(7682),a.e(1551),a.e(4870),a.e(9922),a.e(3133),a.e(612),a.e(2002),a.e(1880),a.e(7471),a.e(7165),a.e(5451),a.e(8612),a.e(2819),a.e(7695),a.e(3733)]).then(a.bind(a,"+Bqo")).then(e=>e.BabyGrowthPage),{loadableGenerated:{webpack:()=>["+Bqo"]}}),g=l()(()=>Promise.all([a.e(2619),a.e(9377),a.e(4594),a.e(9409),a.e(6259),a.e(1818),a.e(7519),a.e(761),a.e(2189),a.e(5231),a.e(7797),a.e(5454),a.e(106),a.e(9803),a.e(5349),a.e(4148),a.e(2509),a.e(1533),a.e(1108),a.e(9124),a.e(4190),a.e(4584),a.e(1829),a.e(2582),a.e(9301),a.e(4291),a.e(3792),a.e(7743),a.e(3929),a.e(891),a.e(137),a.e(4414),a.e(9762),a.e(1079),a.e(7613),a.e(8098),a.e(3416),a.e(2500),a.e(1570),a.e(3506),a.e(1413),a.e(3534),a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341),a.e(4846),a.e(2233),a.e(1058),a.e(3295),a.e(1538),a.e(6629),a.e(7152),a.e(5684),a.e(2574),a.e(9884),a.e(7644),a.e(6962),a.e(4050),a.e(6638),a.e(7741),a.e(1137),a.e(2433),a.e(9689),a.e(5385),a.e(3564),a.e(7082),a.e(3158),a.e(8320),a.e(5641),a.e(7454),a.e(7004),a.e(4758),a.e(6219),a.e(17),a.e(8990),a.e(4067),a.e(9487),a.e(9083),a.e(1520),a.e(270),a.e(7596),a.e(8217),a.e(7543),a.e(2835),a.e(2507),a.e(6885),a.e(7859),a.e(5970),a.e(2730),a.e(6287),a.e(7682),a.e(1551),a.e(4870),a.e(9922),a.e(3133),a.e(612),a.e(2002),a.e(1880),a.e(7471),a.e(7165),a.e(5451),a.e(8612),a.e(2819),a.e(7695),a.e(3602),a.e(8814)]).then(a.bind(a,"QDNU")).then(e=>e.BabyPoopPage),{loadableGenerated:{webpack:()=>["QDNU"]}})}}]);