"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[137],{"9gNB":function(e,t,n){n.d(t,{A:function(){return ArrowRightBlue},C:function(){return Clinic},D:function(){return DoctorExpertiseItem},I:function(){return InsuranceList},P:function(){return PaymentList},a:function(){return DoctorInfoExpertise}});var a=n("q1tI"),i=n("rBCA"),o=n("iBNF"),l=n("DSg0"),r=n("xXM3"),s=n.n(r),c=n("I/35"),d=n("lhAG");let ArrowRightBlue=e=>a.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 6 10",fill:"none"},e),a.createElement("path",{d:"M1 9L5 5L1 1",stroke:"#2D87F3",strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round"})),Clinic=e=>a.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none"},e),a.createElement("path",{d:"M4.89646 16.9996H2.96549C2.43225 16.9996 2 16.5674 2 16.0341V12.6549C2 12.1217 2.43225 11.6895 2.96549 11.6895H4.89646",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M15.0342 11.6895H16.9652C17.4984 11.6895 17.9306 12.1217 17.9306 12.6549V16.0341C17.9306 16.5674 17.4984 16.9996 16.9652 16.9996H15.0342",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M5.86197 3H14.0686C14.6015 3 15.0341 3.43263 15.0341 3.96549V16.9995H4.89648V3.96549C4.89648 3.43263 5.32912 3 5.86197 3Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M11.172 13.6206H8.7583V16.9998H11.172V13.6206Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M9.96533 9.99996V5.65527",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M12.1377 7.82764H7.79297",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),p=i.Z.ul` display: grid; grid-gap: 16px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); list-style: none; `,u=i.Z.li` p { margin-top: 8px; text-align: center; } .insuranceLogo { display: grid; height: 58px; border: 1px solid ${o.r.colors.neutral200}; border-radius: 6px; place-content: center; > img { width: 93px; height: 43px; object-fit: contain; } } `,InsuranceList=({insurances:e,className:t,isName:n=!0})=>e.length?a.createElement(p,{id:"insurance-list",className:t},e.map(e=>a.createElement(u,{className:"insuranceItem",key:e.id},a.createElement("div",{className:"insuranceLogo"},a.createElement("img",{src:e.logo,alt:e.name||"insurance-logo"})),n&&a.createElement(l.T,{size:"base",color:o.r.colors.gray500,type:"bold"},e.name)))):null,h=i.Z.div` display: flex; flex-wrap: wrap; gap: 7px; &.paymentList { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); justify-content: center; } `,g=i.Z.div` border: 1px solid ${o.r.colors.neutral100}; border-radius: 12px; width: 80px; min-height: 80px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; &.payment-item-mobile { width: 100%; } .logo { position: relative; width: 55px; aspect-ratio: 55 / 32; object-fit: contain; } .txt-caption-1 { font-size: 0.6875rem; line-height: 1rem; color: ${o.r.colors.gray800}; } `,PaymentList=({payments:e,className:t,isName:n=!0,isMobile:i=!1})=>e.length?a.createElement(h,{id:"payment-container",className:s()(t,{paymentList:i&&e.length>=4})},e.map(t=>a.createElement(g,{className:s()("payment-item",{"payment-item-mobile":i&&e.length>=4}),key:t.id},a.createElement(c.I,{className:"logo",src:t.logo,alt:t.name}),n&&a.createElement("div",{className:"txt-caption-1"},t.name)))):null,m=i.Z.div` display: flex; gap: 8px; .icon { width: 1.25rem; height: 1.25rem; color: ${o.r.colors.gray400}; flex-shrink: 0; } .doctor-info-item-content { display: flex; flex-direction: column; gap: 10px; } `;(0,i.Z)(Clinic)` width: 1.25rem; height: 1.25rem; `;let E=i.Z.div` display: flex; flex-direction: column; gap: 4px; `,DoctorExpertiseItem=e=>{let{doctorInfo:t,Icon:n,title:i}=e;return a.createElement(m,null,a.createElement(n,{className:"icon"}),a.createElement(E,null,a.createElement(d.T,{size:"p3",weight:"semiBold",color:"#111111"},i),a.createElement("div",{className:"doctor-info-item-content"},(Array.isArray(t)?t:[t]).map(e=>a.createElement(d.T,{size:"p3",weight:"regular",key:e},e)))))},T=i.Z.div` display: flex; padding: 1rem; width: 100%; justify-content: space-between; `,I=i.Z.div` display: flex; flex-direction: column; gap: 2px; `,DoctorInfoExpertise=e=>{let{name:t,specialty:n,experience:i,profileImage:o}=e;return a.createElement(T,null,a.createElement(I,null,a.createElement(d.T,{size:"title2",weight:"semiBold",color:"#111111"},t),a.createElement("div",null,n&&a.createElement(d.T,{size:"c1",weight:"regular"},n),i&&a.createElement(d.T,{size:"c1",weight:"regular"},i))),a.createElement(c.I,{src:o,alt:t,style:{width:"4.5rem",height:"4.5rem",borderRadius:"50%",objectFit:"cover",flexShrink:0}}))}},wrAZ:function(e,t,n){n.d(t,{M:function(){return ei},S:function(){return SurveyOrPremiumBanner},a:function(){return eo},b:function(){return SideBannerModal}});var a,i,o,l,r,s,c,d=n("q1tI"),p=n("mYVa"),u=n("7Ci/"),h=n("/npG"),g=n("Eso5"),m=n("OAL+"),E=n("SPK5"),T=n("RZSM"),I=n("vaps"),C=n("9n+W"),v=n("DA0W"),b=n("RGvF"),O=n("JZkZ"),y=n("MkcP"),A=n("x9hL"),S=n("Hcm0"),f=n("rvDO"),_=n("0HMp"),N=n("UIg8"),L=n("ubET"),P=n("fCzP"),k=n("I/35"),x=n("nwSF"),w=n("RF7b"),R=n("cChf"),M=n("ZFu2"),B=n("wY0a"),H=n("WcvC"),D=n("lhAG"),G=n("krdG"),Y=n("jD9D"),V=n("IQVP"),U=n("VgLc"),F=n("Ix29"),j=n("5auN"),z=n("xrdX"),W=n("GOBr"),Z=n("OWiL"),K=n("vWP/"),$=n("6oAT"),q=n("PBoO"),Q=n("JIJ2"),X=n("TYy9"),J=n.n(X),ee=n("qPyV"),et=n.n(ee),en=n("hKh/");let ea=[{title:"Health News & Current Affairs",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:A.C.getAssetPath("newsletter-prefer/newsletter-health.svg"),checked:!1,id:1},{title:"Educational Medical Hello Bacsi Content",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:A.C.getAssetPath("newsletter-prefer/newsletter-education.svg"),checked:!1,id:2},{title:"Hello Health Community Feed",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:A.C.getAssetPath("newsletter-prefer/newsletter-community.svg"),checked:!1,id:3}];(a=l||(l={})).Pregnant="pregnant",a.Parenting="parenting",(r||(r={})).Option="option",(i=s||(s={})).Button="button",i.Checkbox="checkbox",(o=c||(c={})).ShowTool="showTool",o.ShowPremiumModal="showPremiumModal",o.ShowOptionBanner="showOptionBanner",o.Hide="hide";let ei={pregnancy:l.Pregnant,parenting:l.Parenting},eo={[l.Pregnant]:"pregnant",[l.Parenting]:"parent"},FLOW=(e,t)=>({[l.Pregnant]:{action:c.ShowOptionBanner,props:{heading:e("pnBanner.pregnancy.heading"),description:e("pnBanner.pregnancy.desc"),styleType:s.Button,thumbnail:{desktop:A.C.getAssetPath("newsletter/banner-option-pregnancy-desktop.png"),mobile:A.C.getAssetPath("newsletter/banner-option-pregnancy-mobile.png")},buttonProps:{variant:"white",styles:e=>({minWidth:(0,p.h)(80),[e.fn.largerThan("sm")]:{minWidth:(0,p.h)(120)}})},items:[{label:e("switchBtn.yes"),value:"yes",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Are you navigating the world of pregnancy - Yes Click",dataEventLabel:t}},{label:e("switchBtn.no"),value:"no",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Are you navigating the world of pregnancy - No Click",dataEventLabel:t}}]},submitHandler:{yes:{action:c.ShowTool,props:{value:_.H.DUE_DATE}},no:{action:c.ShowPremiumModal}}},[l.Parenting]:{action:c.ShowOptionBanner,props:{heading:e("pnBanner.parenting.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:A.C.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:A.C.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,styleType:s.Checkbox,items:[{label:e("pnBanner.toddlers"),value:"todders"},{label:e("pnBanner.teenager"),value:"teenager"}],submitBtnTracking:{dataEventCategory:"Focused Audience",dataEventAction:"What is the age range of your kids Click",dataEventLabel:t}},submitHandler:{todders:{action:c.ShowTool,props:{value:_.H.BABY_VACCINE}},teenager:{action:c.ShowOptionBanner,props:{styleType:s.Button,heading:e("pnBanner.teenager.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:A.C.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:A.C.getAssetPath("newsletter/banner-option-parenting-mobile.png")},buttonProps:{variant:"white"},items:[{label:e("childCard.boy"),value:"teenager.boy",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"What is the gender of your kids - Boy Click",dataEventLabel:t}},{label:e("childCard.girl"),value:"teenager.girl",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"What is the gender of your kids - Girl Click",dataEventLabel:t}}]}},"teenager.boy":{action:c.ShowPremiumModal},"teenager.girl":{action:c.ShowTool,activeTool:N.t.HPV,props:{value:N.t.HPV}},"todders|teenager":{action:c.ShowOptionBanner,props:{styleType:s.Button,heading:e("pnBanner.both.heading"),description:e("pnBanner.both.desc"),thumbnail:{desktop:A.C.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:A.C.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,buttonProps:{variant:"secondary"},styles:e=>({wrapper:{[e.fn.smallerThan("sm")]:{flexDirection:"column"}},button:{background:e.colors.blue[0]}}),items:[{label:e("pnBanner.vaccine.btnLabel"),activeTool:_.H.BABY_VACCINE,isLink:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Baby Vaccine Click",dataEventLabel:t}},{label:e("pnBanner.pn.btnLabel"),value:"todders|teenager.showPN",isPNBtn:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Premium Newsletter Click",dataEventLabel:t}}]}},"todders|teenager.showPN":{action:c.ShowOptionBanner,props:{styleType:s.Button,heading:e("pnBanner.both.heading"),description:e("pnBanner.both.desc"),thumbnail:{desktop:A.C.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:A.C.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,buttonProps:{variant:"secondary"},styles:e=>({wrapper:{[e.fn.smallerThan("sm")]:{flexDirection:"column"}},button:{background:e.colors.blue[0]}}),items:[{label:e("pnBanner.vaccine.btnLabel"),activeTool:_.H.BABY_VACCINE,isLink:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Baby Vaccine Click",dataEventLabel:t}}]}}}}}),TOOL_BANNERS_PROPS=e=>({[_.H.DUE_DATE]:{heading:e("pnBanner.dueDateTool.heading"),description:e("pnBanner.dueDateTool.desc"),btnLabel:e("pnBanner.caclNow"),value:_.H.DUE_DATE,dataEventAction:"Try our Due Date Calculator Click"},[_.H.BABY_VACCINE]:{heading:e("pnBanner.vaccination.heading"),description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:_.H.BABY_VACCINE,dataEventAction:"Try our Baby Vaccine Scheduler Click"},[_.H.BABY_GROWTH]:{heading:"Baby Growth",description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:_.H.BABY_GROWTH},[N.t.HPV]:{heading:e("pnBanner.hpv.heading"),description:e("pnBanner.hpv.desc"),thumbnail:{desktop:A.C.getAssetPath("newsletter/banner-option-hpv-desktop.png"),mobile:A.C.getAssetPath("newsletter/banner-option-hpv-mobile.png")},isRiskScreener:!0,btnLabel:e("pnBanner.checkNow"),value:N.t.HPV,hideDescOnMobile:!0,dataEventAction:"Keep safe from HPV virus Click"}}),el=(0,d.createContext)({}),PnBannerEle=e=>{var t=(0,L.a)(e,[]);let{locale:n}=(0,w.u)(),{type:a,isMobile:i,currentUrl:o,isMarketing:l,isLoggedIn:r,setShouldAcquisitionModalOpen:s}=(0,d.useContext)(el),{triggerLogin:c}=(0,P.u)();return d.createElement(u.W,Object.assign({mih:{base:144,md:160},fluid:!0,p:0,sx:{borderRadius:4,cursor:"pointer"},onClick:()=>(0,L._)(void 0,void 0,void 0,function*(){let e=l?(0,x.g)(n)+"/dang-ky-nhan-tin/":`${window.location.href}?source=acquisition`;r?null==s||s():(0,P.I)(n)?c({returnUrl:l?e:void 0,source:l?void 0:"acquisition"}):window.location.href=`${(0,x.a)(n)}/?returnUrl=${encodeURIComponent(e)}`}),"data-event-category":"Newsletter","data-event-action":"Banner Click","data-event-label":o,className:"pointer-event-child-none"},t),d.createElement(k.I,{src:l?A.C.getAssetPath(`newsletter/${i?"Mobile":"Desktop"}_Marketing.png`):A.C.getAssetPath(`newsletter/${i?"Mobile":"Desktop"}_${a}.png`),style:{maxWidth:"100%"},alt:"newsletter banner"}))},er={GET_NEWSLETTER_CATEGORIES:"api/v1/categories?site={website_url}",POST_SUBSCRIPTION:"api/v1/subscription?site={website_url}",GET_SUBSCRIPTION_CATEGORIES:"api/v1/categories?site={website_url}"};var es=(0,h.k)(e=>({root:{},wrapper:{[e.fn.smallerThan("sm")]:{width:"70%"}},button:{[e.fn.smallerThan("sm")]:{height:"auto",minHeight:(0,p.h)(32),padding:`${(0,p.h)(6)} ${(0,p.h)(16)}`,textAlign:"center",width:"100%"}},buttonLabel:{whiteSpace:"normal"}}));let BannerLayout=({heading:e,description:t,thumbnail:n={desktop:"",mobile:""},hideDescOnMobile:a,children:i})=>{let{isMobile:o,minHeight:l}=(0,d.useContext)(el);return d.createElement(g.x,{sx:()=>({borderRadius:(0,p.h)(8),background:"linear-gradient(180deg, #FAFDFF 0%, #E3F2FF 100%)"})},d.createElement(g.x,{sx:e=>({minHeight:(0,p.h)(l),borderRadius:"inherit",background:`url(${o?n.mobile:n.desktop})`,backgroundPosition:"center right",backgroundRepeat:"no-repeat",backgroundSize:"contain",padding:`${(0,p.h)(24)} ${(0,p.h)(16)}`,display:"flex",flexDirection:"column",justifyContent:"center",[e.fn.largerThan("sm")]:{padding:`${(0,p.h)(22)} ${(0,p.h)(32)}`}})},d.createElement(m.K,{spacing:(0,p.h)(16)},d.createElement(m.K,{spacing:(0,p.h)(4),sx:e=>({maxWidth:"60%",[e.fn.largerThan("sm")]:{maxWidth:"70%"}})},e&&d.createElement(U.H,{tag:"h4"},e),!(a&&o)&&t&&d.createElement(D.T,{size:"p4"},t)),d.createElement(g.x,null,i))))},BannerWithOptions=e=>{let{styleType:t=s.Button,items:n=[],buttonProps:a,styles:i,submitBtnTracking:o}=e,{classes:l}=es(void 0,{name:"PremiumBannerWithOptions",styles:i}),{t:r,locale:c}=(0,w.u)(),{surveyType:u,articleId:h,handleClickOption:m,hasPremiumBanner:T,source:I,isMobile:C,setShowPNModal:v}=(0,d.useContext)(el),b=(0,d.useMemo)(()=>T?n:n.filter(e=>!e.isPNBtn).filter(Boolean),[n]),{getHealthToolLink:O}=(0,F.u)(c),y=(0,R.c)({initialValues:{bannerOptions:[]}}),saveStep=e=>(0,L._)(void 0,void 0,void 0,function*(){return yield(0,S.e)((0,S.f)(V.yy.HEALTH_TOOL.CREATE,{_locale:c,type:eo[u]}),"POST",{headers:{"Content-Type":"application/json"},data:{value:e,article:h,source:I}})}),A=(0,d.useCallback)(()=>d.createElement(E.k,{gap:(0,p.h)(8),className:l.wrapper},b.map((e,t)=>d.createElement(g.x,{key:String(t),component:e.isLink?"a":"div",href:e.isRiskScreener?`https://${z.v[c]}/bot/${N.n[c][e.activeTool]}/`:e.isLink?O(e.activeTool):void 0},d.createElement(G.B,Object.assign({className:l.button,classNames:{label:l.buttonLabel},size:"sm"},e.tracking,a,{onClick:()=>{e.isLink||(e.isPNBtn&&v(!0),saveStep(e.value),m(e.value))}}),e.label)))),[b,y]),f=(0,d.useCallback)(()=>d.createElement(E.k,null,d.createElement(E.k,{align:"center",gap:(0,p.h)(24),sx:e=>({background:"white",borderRadius:(0,p.h)(8),padding:(0,p.h)(4),[e.fn.largerThan("sm")]:{paddingLeft:(0,p.h)(16)}})},d.createElement(B.d.Group,Object.assign({},y.getInputProps("bannerOptions",{type:"checkbox"})),d.createElement(E.k,{gap:(0,p.h)(16)},b.map((e,t)=>d.createElement(B.d,{key:String(t),value:e.value,label:e.label,styles:{label:{cursor:"pointer"}}})))),d.createElement(G.B,Object.assign({size:"sm"},o,a,{disabled:0===y.getInputProps("bannerOptions").value.length,leftIcon:C?d.createElement(j.I.ArrowRightTail,{size:18,useCurrentColor:!0}):void 0,onClick:()=>{let e=y.getInputProps("bannerOptions").value;saveStep(e.join("|")),m(e.join("|"))},styles:e=>({root:{[e.fn.smallerThan("sm")]:{width:(0,p.h)(38),minWidth:"auto",padding:0}}})}),!C&&r("pnBanner.submit")))),[b,y]);return d.createElement(BannerLayout,Object.assign({},e),t===s.Button?A():t===s.Checkbox?f():null)},ToolBanner=e=>{var t,n;let{t:a}=(0,w.u)(),{heading:i,description:o,thumbnail:l,btnLabel:r,value:s,isRiskScreener:c,hideDescOnMobile:u,dataEventAction:h}=e,{locale:g}=(0,w.u)(),{isMobile:T}=(0,d.useContext)(el),{getHealthToolLink:I,allTools:C}=(0,F.u)(g),v=(0,d.useMemo)(()=>{let e=c?`https://${W.y?"":"discover."}${z.v[g]}/bot/${N.n[g][s]}`:I(s);return d.createElement("a",{href:e},d.createElement(G.B,{size:"sm","data-event-category":"Focused Audience","data-event-action":h,"data-event-label":e},r||a("pnBanner.caclNow")))},[C]);return"mainBanner"==(c?"mainBanner":"toolBanner")?d.createElement(BannerLayout,Object.assign({},Object.assign(Object.assign({},e),{thumbnail:e.thumbnail})),v):d.createElement(E.k,{gap:(0,p.h)(7),align:"center",justify:"space-between",sx:e=>({borderRadius:(0,p.h)(8),background:e.colors.blue[0],minHeight:(0,p.h)(180),padding:`${(0,p.h)(24)} ${(0,p.h)(16)}`,[e.fn.largerThan("sm")]:{padding:`${(0,p.h)(34)} ${(0,p.h)(32)}`}})},d.createElement(m.K,{spacing:(0,p.h)(12)},d.createElement(m.K,{spacing:(0,p.h)(4)},i&&d.createElement(U.H,{tag:"h4"},i),!(T&&u)&&o&&d.createElement(D.T,{size:"p4"},o)),d.createElement(E.k,{gap:(0,p.h)(8),sx:{button:{minWidth:(0,p.h)(120)}}},v)),d.createElement(E.k,{align:"center",justify:"center",sx:e=>({width:(0,p.h)(96),height:(0,p.h)(96),borderRadius:"50%",background:"white",flexShrink:0,[e.fn.largerThan("sm")]:{width:(0,p.h)(112),height:(0,p.h)(112)},img:{maxWidth:(0,p.h)(64),[e.fn.largerThan("sm")]:{maxWidth:(0,p.h)(73)}}})},d.createElement("img",{alt:"health-tool-icon",src:l||(null===(n=null===(t=C.filter(e=>e.template===s))||void 0===t?void 0:t[0])||void 0===n?void 0:n.icon)||_.a[s]||"",loading:"lazy"})))},HandlerBanner=()=>{var e,t,n;let{t:a}=(0,w.u)(),{state:i,Outside:o}=(0,d.useContext)(el);return(null==i?void 0:i.action)===c.ShowTool?d.createElement(o,null,TOOL_BANNERS_PROPS(a)[null===(e=null==i?void 0:i.props)||void 0===e?void 0:e.value]?d.createElement(ToolBanner,Object.assign({},TOOL_BANNERS_PROPS(a)[null===(t=null==i?void 0:i.props)||void 0===t?void 0:t.value],{value:null===(n=null==i?void 0:i.props)||void 0===n?void 0:n.value})):null):(null==i?void 0:i.action)===c.ShowOptionBanner?d.createElement(o,null,d.createElement(BannerWithOptions,Object.assign({},null==i?void 0:i.props))):null},SideBannerModal=e=>{var{isMobile:t,children:n,desktopBanner:a=A.C.getAssetPath("friso/onboarding-banner.jpg"),mobileBanner:i=A.C.getAssetPath("friso/onboarding-banner-mobile.jpg"),modalRatio:o={width:937,height:536},mobileBannerRatio:l={width:750,height:480},desktopBannerRatio:r={width:420,height:536},closeProps:s}=e,c=(0,L.a)(e,["isMobile","children","desktopBanner","mobileBanner","modalRatio","mobileBannerRatio","desktopBannerRatio","closeProps"]);let{width:u,height:h}=(0,Y.n)(),m=u*l.height/l.width,[E,I]=(0,d.useState)(!1);return d.createElement(q.M,Object.assign({styles:e=>({header:{display:"none"},content:{flex:"auto",background:"transparent",[e.fn.smallerThan("sm")]:{maxHeight:"100%",height:"100%",position:"relative",borderRadius:0},[e.fn.largerThan("sm")]:{maxWidth:(0,p.h)(o.width),width:"100%",height:"100%",maxHeight:(0,p.h)(o.height),boxShadow:"none"}},body:{padding:0,width:"100%",height:"100%",[e.fn.largerThan("sm")]:{display:"flex",alignItems:"center"}},inner:{padding:0,[e.fn.smallerThan("sm")]:{display:"flex",alignItems:"flex-end"}}})},c),t?d.createElement(g.x,{sx:{position:"relative",width:"100%",height:"100%"},onTouchStart:()=>I(!0)},d.createElement(g.x,{className:"mobile-template",sx:{position:"absolute",height:`${(E?1:((h<=667?190:265)+m+74)/h)*100}%`,left:0,bottom:0,right:0,transition:"height 0.4s ease"}},d.createElement(g.x,{className:"mobile-template-wrapper",sx:{height:"100%",backgroundColor:"white",borderTopLeftRadius:E?0:(0,p.h)(12),borderTopRightRadius:E?0:(0,p.h)(12)}},d.createElement(g.x,{sx:{height:"100%",background:`url(${i})`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"top center",overflowY:"auto",borderRadius:"inherit"}},(0,$.i)(i)&&d.createElement("video",{loop:!0,muted:!0,autoPlay:!0,style:{width:"100%",position:"absolute",top:0,left:0}},d.createElement("source",{src:i})),d.createElement(G.B,Object.assign({variant:"white",leftIcon:d.createElement(Z.Z,null),sx:{position:"absolute",right:0,top:0,zIndex:1,padding:(0,p.h)(10)}},s,{onClick:()=>null==c?void 0:c.onClose()})),d.createElement(T.o,{ratio:(null==l?void 0:l.width)/(null==l?void 0:l.height),w:"100%"}),d.createElement(g.x,{className:"inner",sx:{padding:`${(0,p.h)(28)} ${(0,p.h)(16)} ${(0,p.h)(16)}`,background:"white",position:"relative"}},n))))):d.createElement(T.o,{className:"desktop-template",ratio:o.width/o.height,w:"100%",sx:{position:"relative","& > div":{justifyContent:"flex-end"}}},d.createElement(g.x,{sx:{width:"100%",height:"100%",justifyContent:"flex-end",alignItems:"stretch",borderRadius:(0,p.h)(8),background:"white",boxShadow:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 2.25rem 1.75rem -0.4375rem, rgba(0, 0, 0, 0.04) 0 1.0625rem 1.0625rem -0.4375rem"}},(0,$.i)(a)?d.createElement("video",{loop:!0,muted:!0,autoPlay:!0,style:{borderTopLeftRadius:(0,p.h)(8),borderBottomLeftRadius:(0,p.h)(8),height:"100%",display:"block"}},d.createElement("source",{src:a})):d.createElement("img",{alt:"",src:a,loading:"lazy",style:{borderTopLeftRadius:(0,p.h)(8),borderBottomLeftRadius:(0,p.h)(8),height:"100%",display:"block"}}),d.createElement(g.x,{sx:{position:"relative",height:"100%",width:`${(o.width-r.width)/o.width*100}%`}},d.createElement(G.B,Object.assign({variant:"white",leftIcon:d.createElement(Z.Z,null)},s,{onClick:()=>null==c?void 0:c.onClose(),sx:{position:"absolute",right:0,top:0,backgroundColor:"transparent"}})),d.createElement(g.x,{className:"side-banner-modal-container",sx:{height:"100%",padding:`${(0,p.h)(40)} ${(0,p.h)(24)} 0`}},n)))))},ec={UPDATE_SUBSCRIPTION:"user/subscription"},ed=(0,d.createContext)({}),_NormalTopic=e=>{var{value:t,name:n}=e,a=(0,L.a)(e,["value","name"]);return d.createElement(B.g,Object.assign({value:t,withIcon:!0},a,{buttonProps:{styles:()=>({leftIcon:{marginRight:(0,p.h)(6)},root:{paddingLeft:(0,p.h)(10),paddingRight:(0,p.h)(10)}})}}),n)},TopicSection=({topicsGroup:e,onTopicChange:t,isBlock:n=!1,selectedTopics:a=[],inputProps:i,labelProps:o,maxSelect:l=5,hasScroll:r,readonly:s})=>{let{action:{pushNotifications:c}}=(0,d.useContext)(S.T),p=J()(e.map(e=>e.topics||[])),{t:u}=(0,w.u)(),[h,T]=(0,d.useState)([]);(0,d.useEffect)(()=>{T(a)},[a.length]),(0,d.useEffect)(()=>{null==t||t(h)},[h]);let onValueChange=e=>{if(e.length>5){c({type:"danger",title:u("pnTopicSection.maxSelectError.title",{maxSelect:l}),message:u("pnTopicSection.maxSelectError.desc")});return}s||T(()=>p.filter(t=>e.some(e=>t.catId===e)))};return d.createElement(m.K,{spacing:12},e.map((e,t)=>d.createElement(m.K,{key:String(t),spacing:12},e.label&&d.createElement(D.T,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},o),e.label),r?d.createElement(I.x,{w:"100%",offsetScrollbars:!0,scrollbarSize:4,p:16,m:-16,styles:{viewport:{margin:-16,padding:16}}},d.createElement(g.x,{w:800},d.createElement(C.A.Group,Object.assign({value:h.map(e=>e.catId),multiple:!0},i,{onChange:onValueChange}),d.createElement(E.k,{gap:8,wrap:"wrap"},e.topics.map(t=>d.createElement(_NormalTopic,Object.assign({key:t.catId,value:t.catId,name:t.localName,isBlock:n},e.tracking))))))):d.createElement(C.A.Group,Object.assign({value:h.map(e=>e.catId),multiple:!0},i,{onChange:onValueChange}),d.createElement(E.k,{gap:8,wrap:"wrap"},e.topics.map(t=>t.catId?d.createElement(_NormalTopic,Object.assign({key:t.catId,value:t.catId,name:t.localName,isBlock:n},e.tracking)):d.isValidElement(t.component)?t.component:null))))))},Layout=e=>{var{heading:t,children:n,stickyActions:a}=e,i=(0,L.a)(e,["heading","children","stickyActions"]);let{isMobile:o}=(0,d.useContext)(ed),l=d.createElement(m.K,{spacing:(0,p.h)(24),sx:{height:"100%"}},d.createElement(U.H,{tag:"h4",style:{textAlign:"center"}},t),d.createElement(g.x,null,n));return d.createElement(g.x,{sx:e=>({[e.fn.largerThan("sm")]:{position:"relative",height:"100%"}})},o?l:d.createElement(I.x,Object.assign({className:"layout-body",h:a?"calc(100% - 90px)":"100%"},i),l),a&&d.createElement(E.k,{gap:(0,p.h)(8),sx:e=>({position:"absolute",left:0,right:0,bottom:0,padding:(0,p.h)(16),button:{flexGrow:1},justifyContent:"center",[e.fn.largerThan("sm")]:{padding:`${(0,p.h)(24)} 0`}})},a))},MainForm=()=>{let{t:e,locale:t}=(0,w.u)(),{data:{userInfo:n},action:{pushNotifications:a}}=(0,d.useContext)(S.T),i=null==n?void 0:n.id,{currentUrl:o,isMobile:l,pnSuggestCategory:r=[],nextStep:s,formValues:c,setFormValues:u,onSubmit:h,submitLoading:g,selectCategory:E,setCategoryLibs:T,setSelectCategory:I,maxSelectCategory:C}=(0,d.useContext)(ed),v=r.map(e=>e.catId),b=(0,R.c)({validate:{name:(0,M.U)(e("healthToolPNModal.mainForm.requireName"))},initialValues:Object.assign(Object.assign({},c),{fitnessTopics:v})}),[O,y]=(0,d.useState)([]),[A,f]=(0,d.useState)([]);(0,d.useEffect)(()=>{(0,L._)(void 0,void 0,void 0,function*(){var e;try{let n=yield(0,S.e)((0,S.h)(er.GET_SUBSCRIPTION_CATEGORIES,{_locale:t}),"get"),a=((null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.subscription)||[]).filter(e=>!v.includes(e.catId));y(r),f(a),T([...r,...a])}catch(e){console.log(e)}})},[]),(0,d.useEffect)(()=>{i&&b.setFieldValue("name",(null==n?void 0:n.name)||"")},[i]);let onMore=()=>{""!==b.getInputProps("name").value?(u(b.getTransformedValues()),s()):b.validateField("name")},_=(0,d.useMemo)(()=>d.createElement(G.B,{variant:"tertiary",dataEventCategory:"Newsletter",dataEventAction:"More Category Click",dataEventLabel:o,leftIcon:d.createElement(K.Z,{size:16,color:"currentColor"}),onClick:onMore,styles:e=>({root:{borderRadius:(0,p.h)(6),padding:"2px 15px",height:(0,p.h)(40)},label:{fontSize:(0,p.h)(14),fontWeight:400,[e.fn.smallerThan("sm")]:{fontSize:(0,p.h)(12),lineHeight:(0,p.h)(16),height:(0,p.h)(40)}},leftIcon:{marginRight:"5px"}})},d.createElement(D.T,{size:l?"p3":"p4"},e("home.seeMore"))),[b]);return(0,d.useEffect)(()=>{b.setFieldValue("fitnessTopics",E.map(e=>e.catId))},[E]),d.createElement("form",{style:{height:"100%"},onSubmit:b.onSubmit(t=>{if(0===E.length)return a({type:"danger",title:e("newsletter.error.minTitle"),message:e("newsletter.error.minCotennt")}),!1;u(t),null==h||h(t.name)})},d.createElement(Layout,{heading:e("healthToolPNModal.heading"),stickyActions:d.createElement(d.Fragment,null,d.createElement(G.B,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Register Click",dataEventLabel:o,loading:g,sx:{maxWidth:(0,p.h)(240)}},e("healthToolPNModal.register")))},d.createElement(m.K,{spacing:(0,p.h)(16)},d.createElement(B.I,Object.assign({label:e("newsletter.welcome.description")},b.getInputProps("name"))),d.createElement(TopicSection,{topicsGroup:[...0===r.length&&0===A.length?[{topics:[{component:_}]}]:[],...r.length>0?[{label:e("healthToolPNModal.mainForm.tailorTopicsHeading"),topics:[...r,...0===A.length?[{component:_}]:[]]}]:[],...A.length>0?[{label:e("healthToolPNModal.findMore.chooseFav"),topics:[...A,...A.length>0?[{component:_}]:[]]}]:[]],selectedTopics:[...O],labelProps:{size:l?"p3":"p4",color:"gray.6"},onTopicChange:I,maxSelect:C}))))},ep=(0,d.forwardRef)(function(e,t){var{label:n}=e,a=(0,L.a)(e,["label"]);return d.createElement("div",Object.assign({ref:t},a),d.createElement(v.Z,{noWrap:!0},d.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97887 8.15493C2.97887 5.29627 5.29627 2.97887 8.15493 2.97887C11.0136 2.97887 13.331 5.29627 13.331 8.15493C13.331 11.0136 11.0136 13.331 8.15493 13.331C5.29627 13.331 2.97887 11.0136 2.97887 8.15493ZM8.15493 1.5C4.47951 1.5 1.5 4.47951 1.5 8.15493C1.5 11.8303 4.47951 14.8099 8.15493 14.8099C9.72615 14.8099 11.1702 14.2653 12.3086 13.3547L15.2376 16.2837C15.5264 16.5725 15.9946 16.5725 16.2833 16.2837C16.5721 15.9949 16.5721 15.5267 16.2833 15.238L13.3544 12.3091C14.2652 11.1705 14.8099 9.72634 14.8099 8.15493C14.8099 4.47951 11.8303 1.5 8.15493 1.5Z",fill:"#8C8C8C"})),d.createElement(D.T,{size:"p3"},n)))}),eu=(0,d.forwardRef)(function(e,t){var{label:n}=e,a=(0,L.a)(e,["label"]);return d.createElement("div",Object.assign({ref:t},a),d.createElement(D.T,{size:"p3"},n))}),HistorySection=({history:e,onDelete:t})=>d.createElement(E.k,{wrap:"wrap",gap:8},et()(e,"catId").map(e=>d.createElement(b.C,{key:e.catId,rightSection:d.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",onClick:()=>null==t?void 0:t(e)},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 9C1.5 4.8525 4.8525 1.5 9 1.5C13.1475 1.5 16.5 4.8525 16.5 9C16.5 13.1475 13.1475 16.5 9 16.5C4.8525 16.5 1.5 13.1475 1.5 9ZM11.1677 12.2248C11.4602 12.5173 11.9327 12.5173 12.2252 12.2248C12.5101 11.9323 12.5101 11.4523 12.2252 11.1673L10.0577 8.99979L12.2252 6.83229C12.5177 6.53979 12.5177 6.0673 12.2252 5.7748C11.9327 5.4823 11.4602 5.4823 11.1677 5.7748L9.00015 7.9423L6.83265 5.7748C6.54015 5.4823 6.06765 5.4823 5.77515 5.7748C5.63471 5.91492 5.55579 6.10516 5.55579 6.30354C5.55579 6.50193 5.63471 6.69217 5.77515 6.83229L7.94265 8.99979L5.77515 11.1673C5.63471 11.3074 5.55579 11.4977 5.55579 11.696C5.55579 11.8944 5.63471 12.0847 5.77515 12.2248C6.06765 12.5173 6.54015 12.5173 6.83265 12.2248L9.00015 10.0573L11.1677 12.2248Z",fill:"#8C8C8C"})),styles:{root:{height:32,background:"#ffffff",padding:"5px 12px",border:`1px solid ${H.t.neutral[4]}`,borderRadius:32,textTransform:"unset"},rightSection:{height:18,cursor:"pointer"}}},d.createElement(D.T,{size:"p4"},e.localName)))),RecentlyViewedSection=({topics:e,onTopicChange:t,isBlock:n=!1,selectedTopics:a,labelProps:i,maxSelect:o=5})=>{let{action:{pushNotifications:l}}=(0,d.useContext)(S.T),[r,s]=(0,d.useState)([]),{t:c}=(0,w.u)();return((0,d.useEffect)(()=>{s(a)},[a.length]),(0,d.useEffect)(()=>{t(r)},[r]),e&&0!==e.length)?d.createElement(m.K,{spacing:12,px:16,mx:-16},d.createElement(D.T,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},i),c("pnTopicSection.recentView")),d.createElement(C.A.Group,{value:r.map(e=>e.catId),onChange:t=>{if(n&&r.lengthe.filter(e=>t.some(t=>e.catId===t)))},multiple:!0},d.createElement(E.k,{gap:8,wrap:"wrap"},e.map((e,t)=>d.createElement(_NormalTopic,{key:t,value:e.catId,name:e.localName,isBlock:n}))))):null},_TopicSlide=e=>{var{topic:t,active:n,onClick:a}=e,i=(0,L.a)(e,["topic","active","onClick"]);return d.createElement(g.x,Object.assign({sx:e=>({position:"relative",cursor:"pointer",padding:2,borderRadius:8,boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04)",minHeight:(0,p.h)(130),[e.fn.largerThan("sm")]:{minHeight:(0,p.h)(138)}}),onClick:()=>a(t,n)},i),n&&d.createElement(g.x,{id:"test",sx:{position:"absolute",top:2,right:2,width:20,height:20,zIndex:1}},d.createElement("svg",{id:"test",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.66699 9.99984C1.66699 5.39984 5.40033 1.6665 10.0003 1.6665C14.6003 1.6665 18.3337 5.39984 18.3337 9.99984C18.3337 14.5998 14.6003 18.3332 10.0003 18.3332C5.40033 18.3332 1.66699 14.5998 1.66699 9.99984ZM4.75066 10.5827L7.74232 13.5744C8.06732 13.8994 8.60066 13.8994 8.91732 13.5744L15.2423 7.2494C15.5673 6.9244 15.5673 6.3994 15.2423 6.0744C14.9173 5.7494 14.3923 5.7494 14.0673 6.0744L8.33399 11.8077L5.92566 9.40773C5.60066 9.08273 5.07566 9.08273 4.75066 9.40773C4.59461 9.56342 4.50692 9.7748 4.50692 9.99523C4.50692 10.2157 4.59461 10.427 4.75066 10.5827Z",fill:"#2D87F3"}),d.createElement("path",{d:"M7.74224 13.5772L4.75057 10.5856C4.59453 10.4299 4.50684 10.2185 4.50684 9.99808C4.50684 9.77765 4.59453 9.56627 4.75057 9.41058C5.07557 9.08558 5.60057 9.08558 5.92557 9.41058L8.33391 11.8106L14.0672 6.07725C14.3922 5.75225 14.9172 5.75225 15.2422 6.07725C15.5672 6.40225 15.5672 6.92725 15.2422 7.25225L8.91724 13.5772C8.60057 13.9022 8.06724 13.9022 7.74224 13.5772Z",fill:"white"}))),d.createElement(g.x,{sx:{borderRadius:"8px"}},d.createElement(B.c,{ratio:1.5,mb:10,sx:e=>({background:e.colors.neutral[0]})},d.createElement(g.x,null,d.createElement("img",{src:t.guid||"",alt:"cat",loading:"lazy",style:{maxHeight:"63px"}})))),d.createElement(D.T,{size:"p4",ta:"center",px:6,sx:{display:"-webkit-box","-webkit-line-clamp":"2","-webkit-box-orient":"vertical",overflow:"hidden"}},t.localName||""))},TrendingCarousel=({topics:e,selectedTopics:t=[],onTopicChange:n,isBlock:a=!1,labelProps:i,pushNotifications:o,maxSelect:l=5})=>{let{t:r}=(0,w.u)(),[s,c]=(0,d.useState)([]),onSelect=(e,t)=>{if(t)c(t=>t.filter(t=>t.catId!==e.catId));else{if(a){o({type:"danger",title:r("pnTopicSection.maxSelectError.title",{maxSelect:l}),message:r("pnTopicSection.maxSelectError.desc")});return}c(t=>[...t,e])}};(0,d.useEffect)(()=>{c(t)},[t.length]),(0,d.useEffect)(()=>{n(s)},[s]);let[p,u]=(0,d.useState)(!1),[h,T]=(0,d.useState)(0),[C,v]=(0,d.useState)(0),b=(0,d.useRef)(null),handleMouseUp=()=>{u(!1)};return d.createElement(m.K,{spacing:10},d.createElement(E.k,{justify:"space-between",align:"center",w:"100%"},d.createElement(D.T,Object.assign({size:"s5",color:"gray.4",weight:"semiBold",span:!0},i),r("pnTopicSection.trending"))),d.createElement(g.x,null,d.createElement(I.x,{type:"always",w:"100%",offsetScrollbars:!0,scrollbarSize:4,px:4,viewportRef:b,viewportProps:{onMouseDown:e=>{e.preventDefault(),b.current&&(u(!0),T(e.pageX-b.current.offsetLeft),v(b.current.scrollLeft))},onMouseUp:handleMouseUp,onMouseLeave:handleMouseUp,onMouseMove:e=>{if(e.preventDefault(),!p||!b.current)return;let t=e.pageX-b.current.offsetLeft;b.current.scrollLeft=C-(t-h)*2}},styles:{viewport:{paddingBottom:16}}},d.createElement(g.x,{w:{base:112*e.length+8*(e.length-1)+10}},d.createElement(E.k,{gap:8},e.map((e,t)=>d.createElement(_TopicSlide,{key:t,topic:e,onClick:onSelect,active:s.some(t=>t.catId===e.catId),w:{base:112}})))))))},PremiumTopicSelect=e=>{var{isLoggedIn:t,maxSelect:n=5,values:a=[],labelProps:i,onChange:o}=e,l=(0,L.a)(e,["isLoggedIn","maxSelect","values","labelProps","onChange"]);let{action:{pushNotifications:r}}=(0,d.useContext)(S.T),[s,c]=(0,d.useState)(""),{t:u,locale:h}=(0,w.u)(),E=(0,d.useRef)(null),[T,I]=(0,d.useState)([]),[C,v]=(0,d.useState)([]),[b,y]=(0,d.useState)([]),[A,f]=(0,d.useState)([]),[_,N]=(0,d.useState)(null),[P,k]=(0,d.useState)([]);(0,d.useEffect)(()=>{(0,L._)(void 0,void 0,void 0,function*(){var e,t;let n=yield(0,S.e)((0,S.h)(er.GET_NEWSLETTER_CATEGORIES,{_locale:h}),"get"),i=(null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.interested)||[],o=(null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.trending)||[],l=et()([...i,...o],"catId"),r=l.map(e=>Object.assign(Object.assign({},e),{value:e.catId||"",label:e.localName||""}));if(k(r||[]),N((null==n?void 0:n.data)||null),a.length>0){let e=i.filter(e=>a.includes(e.catId)).map(e=>Object.assign(Object.assign({},e),{template:"interested"})),t=o.filter(e=>a.includes(e.catId)).map(e=>Object.assign(Object.assign({},e),{template:"trending"}));f(e),v(t)}})},[t]);let x=(0,d.useMemo)(()=>et()([...T,...C,...A,...b],"catId"),[T,C,A,b]),[R,M]=(0,d.useState)(!1);(0,d.useEffect)(()=>{x.length>=n?M(!0):M(!1),null==o||o(x)},[x]);let onValueChange=e=>(0,L._)(void 0,void 0,void 0,function*(){var t;let a="default";if(R)r({type:"danger",title:u("pnTopicSection.maxSelectError.title",{maxSelect:n}),message:u("pnTopicSection.maxSelectError.desc")});else{let n=[{key:"trending",array:null==_?void 0:_.trending},{key:"recently",array:null==_?void 0:_.recently},{key:"interested",array:null==_?void 0:_.interested}],i=n.find(t=>{var n;return null===(n=t.array)||void 0===n?void 0:n.some(t=>t.catId===e[0])});({trending:v,recently:y,interested:f,default:I})[a=(null==i?void 0:i.key)||"default"](t=>[...t,...P.filter(t=>e.some(e=>t.catId===e))].map(e=>Object.assign(Object.assign({},e),{template:a}))),null===(t=E.current)||void 0===t||t.blur()}return null});return d.createElement(m.K,Object.assign({spacing:(0,p.h)(16)},l),d.createElement(m.K,{spacing:(0,p.h)(8)},d.createElement(D.T,{size:"p3"},u("pnTopicSection.maxSelectError.detail",{max:n,maxTopic:x.length})),d.createElement(O.NU,{ref:E,maxSelectedValues:3,styles:{wrapper:{overflow:"initial !important"},separator:{padding:16},separatorLabel:{fontWeight:600,fontSize:12,lineHeight:"18px",textTransform:"uppercase",color:H.t.gray[4],"&::after":{display:"none"}},searchInput:{fontSize:"inherit"},input:{paddingRight:16}},nothingFound:d.createElement(D.T,{size:"s4",color:"gray.6"},u("pnTopicSection.notFound")),itemComponent:""===s?ep:eu,size:"lg",placeholder:u("pnTopicSection.plsEnterFavTopics"),data:P,onSearchChange:c,searchValue:s,icon:d.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.97183 10.8732C3.97183 7.0617 7.0617 3.97183 10.8732 3.97183C14.6848 3.97183 17.7746 7.0617 17.7746 10.8732C17.7746 14.6848 14.6848 17.7746 10.8732 17.7746C7.0617 17.7746 3.97183 14.6848 3.97183 10.8732ZM10.8732 2C5.97268 2 2 5.97268 2 10.8732C2 15.7738 5.97268 19.7465 10.8732 19.7465C12.9682 19.7465 14.8936 19.0205 16.4115 17.8063L20.3168 21.7116C20.7018 22.0966 21.3261 22.0966 21.7111 21.7116C22.0961 21.3266 22.0961 20.7023 21.7111 20.3173L17.8059 16.4121C19.0203 14.894 19.7465 12.9684 19.7465 10.8732C19.7465 5.97268 15.7738 2 10.8732 2Z",fill:"#595959"})),rightSection:d.createElement(d.Fragment,null),zIndex:500,searchable:!0,withinPortal:!0,onChange:e=>onValueChange(e),value:[]}),x&&x.length>0&&d.createElement(HistorySection,{history:x,onDelete:e=>{let t={trending:v,recently:y,interested:f,default:I},n=t[e.template]||t.default;n(t=>{let n=[...t],a=n.findIndex(t=>t.catId===e.catId);return n.splice(a,1),n})}})),d.createElement(g.x,{sx:e=>({position:"relative",height:(0,p.h)(175),[e.fn.largerThan("sm")]:{height:(0,p.h)(190)}})},d.createElement(g.x,{sx:{position:"absolute",top:0,right:0,left:0}},d.createElement(TrendingCarousel,{topics:((null==_?void 0:_.trending)||[]).map(e=>Object.assign(Object.assign({},e),{template:"trending"})),selectedTopics:C,onTopicChange:v,isBlock:R,labelProps:i}))),d.createElement(RecentlyViewedSection,{topics:((null==_?void 0:_.recently)||[]).map(e=>Object.assign(Object.assign({},e),{template:"recently"})),selectedTopics:b,onTopicChange:y,isBlock:R,labelProps:i}),d.createElement(TopicSection,{labelProps:i,topicsGroup:[{label:u("pnTopicSection.ppAlsoInterested"),topics:((null==_?void 0:_.interested)||[]).map(e=>Object.assign(Object.assign({},e),{template:"interested"}))}],selectedTopics:A,onTopicChange:f,isBlock:R}))},MoreTopics=()=>{let{t:e}=(0,w.u)(),{action:{pushNotifications:t}}=(0,d.useContext)(S.T),{prevStep:n,formValues:a,submitLoading:i,onSubmit:o,selectCategory:l,maxSelectCategory:r,setSelectCategory:s,currentUrl:c,isLoggedIn:u}=(0,d.useContext)(ed);return d.createElement(Layout,{heading:e("newsletter.topic.title"),type:"always",styles:{root:{paddingRight:(0,p.h)(25)}},stickyActions:d.createElement(d.Fragment,null,d.createElement(G.B,{fullWidth:!0,variant:"secondary",dataEventCategory:"Newsletter",dataEventAction:"Back Click",dataEventLabel:c,onClick:n},e("healthToolPNModal.back")),d.createElement(G.B,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Next Click",dataEventLabel:c,onClick:()=>{if(0===l.length)return t({type:"danger",title:e("newsletter.error.minTitle"),message:e("newsletter.error.minCotennt")}),!1;null==o||o(a.name)},loading:i},e("healthToolPNModal.next")))},d.createElement(PremiumTopicSelect,{isLoggedIn:u,maxSelect:r,values:a.fitnessTopics,onChange:s,labelProps:{size:"s5",sx:{textTransform:"uppercase"}}}))},Result=()=>{let{t:e}=(0,w.u)(),{close:t,selectCategory:n,onRegisterSuccess:a,currentUrl:i,finishLabelOnResult:o,disclaimerText:l}=(0,d.useContext)(ed);return(0,d.useEffect)(()=>()=>{setTimeout(()=>{null==a||a()},400)},[]),d.createElement(Layout,{heading:e("healthToolPNModal.heading"),stickyActions:d.createElement(G.B,{fullWidth:!0,sx:{maxWidth:(0,p.h)(300)},dataEventCategory:"Newsletter",dataEventAction:"Continue Reading Click",dataEventLabel:i,onClick:()=>{t()}},o||e("healthToolPNModal.finish"))},d.createElement(m.K,null,d.createElement(E.k,{gap:(0,p.h)(8),sx:e=>({background:e.colors.green[0],border:`1px solid ${e.colors.green[1]}`,borderRadius:(0,p.h)(8),padding:(0,p.h)(8)})},d.createElement(g.x,null,d.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},d.createElement("path",{d:"M9.99984 18.3334C14.6022 18.3334 18.3332 14.6025 18.3332 10.0001C18.3332 5.39771 14.6022 1.66675 9.99984 1.66675C5.39746 1.66675 1.6665 5.39771 1.6665 10.0001C1.6665 14.6025 5.39746 18.3334 9.99984 18.3334Z",fill:"#00B16A"}),d.createElement("path",{d:"M9.58558 12.6674C9.22944 12.668 8.87668 12.5983 8.54752 12.4623C8.21835 12.3264 7.91925 12.1268 7.66732 11.8751L6.68587 10.8931C6.55607 10.7587 6.48424 10.5787 6.48587 10.3919C6.48749 10.2051 6.56243 10.0263 6.69455 9.89422C6.82667 9.7621 7.00539 9.68716 7.19222 9.68554C7.37906 9.68391 7.55906 9.75574 7.69345 9.88554L8.67491 10.8675C8.79344 10.986 8.93415 11.08 9.08902 11.1442C9.24389 11.2083 9.40987 11.2413 9.5775 11.2413C9.74513 11.2413 9.91111 11.2083 10.066 11.1442C10.2208 11.08 10.3616 10.986 10.4801 10.8675L16.7033 5.24335C16.8443 5.12184 17.0272 5.06032 17.213 5.07195C17.3987 5.08358 17.5726 5.16744 17.6973 5.30558C17.8221 5.44373 17.8878 5.6252 17.8805 5.81118C17.8731 5.99717 17.7933 6.17291 17.6581 6.30081L11.4592 11.8998C11.2128 12.1448 10.9205 12.3387 10.5989 12.4705C10.2774 12.6022 9.93304 12.6692 9.58558 12.6674Z",fill:"white"}))),d.createElement(D.T,{size:"p3"},l||e("pnModal.disclaimer"))),d.createElement(U.H,{tag:"h5"},e("healthToolPNModal.yourPre")),n.length>0&&d.createElement(TopicSection,{topicsGroup:[{label:"",topics:n}],selectedTopics:n,readonly:!0})))},PremiumNewsletterModal=({isMobile:e,isLoggedIn:t,pnSuggestCategory:n=[],acquisitionInfo:a,currentUrl:i,opened:o,close:l,finishLabelOnResult:r,onRegisterSuccess:s,disclaimerText:c})=>{let{t:p,locale:u}=(0,w.u)(),{action:{pushNotifications:h}}=(0,d.useContext)(S.T),g=A.C.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),m=A.C.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),[E,T]=(0,d.useState)([]),[I,C]=(0,d.useState)([]),[v,b]=(0,d.useState)(0),[O,_]=(0,d.useState)({name:"",fitnessTopics:[]}),[N,P]=(0,d.useState)(!1),lastStep=()=>b(2),k=(0,d.useCallback)(e=>(0,L._)(void 0,void 0,void 0,function*(){try{P(!0),yield(0,S.e)((0,S.h)(er.POST_SUBSCRIPTION,{website_url:(0,S.i)(u)}),"post",{headers:{"Content-Type":"application/json"},method:"POST",data:{ga_client_id:Q.Z.get(f.G),client_ip:window.clientIP||"",user_info:Object.assign(Object.assign({},a.userInfo),{name:e||O.name,type_subscription:1}),domain:z.v[u||en.L.Vietnam],category:I,perferred:a.preferredTopics.map(({id:e})=>({id:e}))}}),P(!1),yield(0,S.e)((0,S.j)(ec.UPDATE_SUBSCRIPTION),"post",{headers:{"Content-Type":"application/json"},method:"PUT",data:{subscription:1}}),lastStep()}catch(e){console.log({err:e}),P(!1),h({title:p("notification.comment.somethingWrong"),message:"",type:"danger"})}}),[O,I]);return(0,d.useEffect)(()=>{[g,m].forEach(e=>{let t=new Image;t.src=e})},[]),d.createElement(ed.Provider,{value:{currentUrl:i,isMobile:e,isLoggedIn:t,opened:o,close:l,pnSuggestCategory:n,nextStep:()=>b(e=>e<3?e+1:e),prevStep:()=>b(e=>e>0?e-1:e),lastStep,categoryLibs:E,setCategoryLibs:T,selectCategory:I,setSelectCategory:C,formValues:O,setFormValues:_,maxSelectCategory:5,submitLoading:N,onSubmit:k,onRegisterSuccess:s,finishLabelOnResult:r,disclaimerText:c}},d.createElement(SideBannerModal,{isMobile:e,desktopBanner:A.C.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),mobileBanner:A.C.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),modalRatio:{width:960,height:588},desktopBannerRatio:{width:384,height:588},opened:o,onClose:l,zIndex:305,closeProps:{dataEventCategory:"Newsletter",dataEventAction:"Close Click",dataEventLabel:i}},d.createElement(y.v,{active:v,onStepClick:b,styles:{root:{height:"100%"},content:{padding:0,height:"100%",width:"100%"},steps:{display:"none"}}},d.createElement(y.v.Step,null,d.createElement(MainForm,null)),d.createElement(y.v.Step,null,d.createElement(MoreTopics,null)),d.createElement(y.v.Step,null,d.createElement(Result,null)))))},SurveyBanner=()=>{let{locale:e}=(0,w.u)(),{isMobile:t,isLoggedIn:n,currentUrl:a,acquisitionInfo:i,categoryIds:o,state:l,setState:r,settings:s,submitHandler:p,subcribeHealthStatus:u,showPNModal:h,setShowPNModal:g,setIsBack:m}=(0,d.useContext)(el),[E,T]=(0,d.useState)([]),[I,C]=(0,d.useState)(h);(0,d.useEffect)(()=>{(0,L._)(void 0,void 0,void 0,function*(){var t,n;let a=yield(0,S.e)((0,S.h)(er.GET_NEWSLETTER_CATEGORIES,{_locale:e}),"get"),i=(null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.interested)||[],l=(null===(n=null==a?void 0:a.data)||void 0===n?void 0:n.trending)||[],r=[...i,...l];T(r.filter(e=>o.includes(Number(e.catId))))})},[]);let v=(0,d.useRef)([]);return(0,d.useEffect)(()=>{let e=(null==u?void 0:u.value)||"",t=e.split("|").filter(Boolean),n=e;v.current.push(u),t.length>1&&(null!==v.current[0]&&m(!0),Object.keys(p).map(e=>{let a=e.split("|");if(t.length===a.length){let i=0;t.map(e=>{a.includes(String(e))&&(i+=1)}),i===t.length&&(n=e)}}));let a=t.length>0?p[n]:s;r(a)},[u]),(0,d.useEffect)(()=>{C(h)},[h]),(null==l?void 0:l.action)!==c.Hide?d.createElement(d.Fragment,null,d.createElement(HandlerBanner,Object.assign({},s.props)),d.createElement(PremiumNewsletterModal,{acquisitionInfo:i,isMobile:t,isLoggedIn:n,currentUrl:a,pnSuggestCategory:E,opened:I,close:()=>{var e;C(!1),g(!1),setTimeout(()=>{var e;(null===(e=l.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&r({action:c.Hide})},400),(null===(e=l.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&r({action:c.Hide})},onRegisterSuccess:()=>C(!1)})):null},SurveyOrPremiumBanner=({type:e,articleId:t=0,categoryIds:n=[],isMarketing:a,isSurveyType:i,hasPremiumBanner:o,currentUrl:l,isMobile:r,subcribeHealthStatus:s,setShouldAcquisitionModalOpen:p,onValueChange:u,source:h="discover",Wrapper:m})=>{let{t:E}=(0,w.u)(),{data:{userInfo:T}}=(0,d.useContext)(S.T),I=!!(null==T?void 0:T.id),[C,v]=(0,d.useState)(null),[b,O]=(0,d.useState)(),[y,A]=(0,d.useState)(""),[f,_]=(0,d.useState)(!1),[N,L]=(0,d.useState)(!1),P=(0,d.useMemo)(()=>ei[e],[]),k=FLOW(E,l)[P],x=null==k?void 0:k.submitHandler,getMappingMultiValue=e=>{let t="",n=e.split("|");return 1===n.length?e:(Object.keys(x).map(e=>{let a=e.split("|");if(n.length===a.length){let i=0;n.map(e=>{a.includes(String(e))&&(i+=1)}),i===n.length&&(t=e)}}),t)},R=m||g.x,handleShowPNBannerFlowWhenLogin=()=>o&&(null==T?void 0:T.subscription)!==1?d.createElement(PnBannerEle,null):null;return(0,d.useEffect)(()=>{I&&v({userInfo:T,preferredTopics:ea,healthTopics:[]})},[I]),d.createElement(el.Provider,{value:{settings:k,submitHandler:x,type:e,surveyType:P,value:y,setValue:A,isMobile:r,isLoggedIn:I,isMarketing:a,hasPremiumBanner:o,currentUrl:l,acquisitionInfo:C,categoryIds:n,subcribeHealthStatus:s,articleId:t,onValueChange:u,state:b,setState:O,handleClickOption:e=>{let t=getMappingMultiValue(e);if(t){let n=x[t];n.action===c.ShowPremiumModal?o?(_(!0),O(Object.assign(Object.assign({},b),{actionParams:{hideBannerWhenClose:n.action===c.ShowPremiumModal}}))):(O({action:c.Hide}),null==u||u(e)):(O(n),null==u||u(e))}},showPNModal:f,setShowPNModal:_,source:h,Outside:R,isBack:N,setIsBack:L,minHeight:180,setShouldAcquisitionModalOpen:p}},void 0!==s?I?i&&k?(()=>{let e=x[(null==s?void 0:s.value)||""];return(null==e?void 0:e.action)===c.ShowPremiumModal?handleShowPNBannerFlowWhenLogin():d.createElement(SurveyBanner,null)})():handleShowPNBannerFlowWhenLogin():o?d.createElement(PnBannerEle,null):null:null)}},xIO0:function(e,t,n){n.r(t),n.d(t,{ProfileChatbot:function(){return ProfileChatbot},TabDataInit:function(){return b},TabName:function(){return o},UserType:function(){return l}});var a,i,o,l,r=n("ubET"),s=n("q1tI"),c=n("ORuy"),d=n("JWKg"),p=n("O4+M"),u=n("IQVP"),h=n("Hcm0"),g=n("WedE"),m=n("vWP/"),E=n("4JiQ"),T=n("WbBJ"),I=n("hKh/");n("JIJ2"),n("NmYn"),n("gY0P"),n("Wgwc"),n("QgiU"),n("rBCA");let C=(0,s.createContext)({}),Faqs=({faqs:e})=>{let[t,n]=(0,s.useState)([]),handleClick=e=>{if(t.includes(e)){let a=t.filter(t=>t!==e);n(a)}else n(t=>[...t,e])};return s.createElement("div",{className:"_0NhMo6T"},e.map((e,n)=>{let a=t.includes(n);return s.createElement("div",{className:"nrZtZ-u",key:n},s.createElement("div",{className:"faq-item",onClick:()=>handleClick(n)},s.createElement("div",{className:"faq-question",dangerouslySetInnerHTML:{__html:e.question||""}}),a?s.createElement(g.Z,null):s.createElement(m.Z,null)),s.createElement(E.U,{in:a,className:"faq-answer"},s.createElement("div",{dangerouslySetInnerHTML:{__html:e.answer||""}})))}))};var v={container:"_2ugC2Ll",body:"CCwRHCd",description:"RF63WXG",cardAuthorWrapper:"PIaeC0v"};let formatExperience=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},formatEducation=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};(a=o||(o={}))[a.About=0]="About",a[a.Care=1]="Care",a[a.Answer=2]="Answer",a[a.Posts=3]="Posts",(i=l||(l={}))[i.Expert=0]="Expert",i[i.User=1]="User";let b={experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileChatbot=e=>{var{authorProps:t,authActionWrapper:n,onSkipQuestion:a,onCloseFromPost:i,onChatWithBot:o,showSkipQuestionTag:l,currentPageUrl:g}=e,m=(0,r.a)(e,["authorProps","authActionWrapper","onSkipQuestion","onCloseFromPost","onChatWithBot","showSkipQuestionTag","currentPageUrl"]);let{data:{locale:E,userInfo:b,env:{isMarryBaby:O}}}=(0,s.useContext)(h.T),y=String(null==t?void 0:t.userId),[A,S]=(0,s.useState)(),[f,_]=(0,s.useState)(!1),[N,L]=(0,s.useState)(),[P,k]=(0,s.useState)([]),[x,w]=(0,s.useState)(""),R=(null==b?void 0:b._togetherUserId)===(null==t?void 0:t.userId),[M,B]=(0,s.useState)(1),H={value:String(M),dataList:[{value:"1",text:"FAQs",content:s.createElement(Faqs,{faqs:P})}],onTabChange:e=>B(Number(e))};return(0,s.useEffect)(()=>{(0,r._)(void 0,void 0,void 0,function*(){var e,t,n,a,i,o,l,r,s,c,d;_(!0);let g=yield Promise.all([(0,h.c)((0,h.f)(u.yy.USER.DETAIL,{_locale:E,id:y}),"GET"),(0,h.c)((0,h.f)(u.yy.CHATBOT.PROFILE,{_locale:E}),"GET"),(0,h.c)((0,h.f)(u.yy.CHATBOT.FAQS_LIST,{_locale:E}),"GET")]),[m,T,I]=g,C={data:null==m?void 0:m.data,experiences:((null===(t=null===(e=null==m?void 0:m.data)||void 0===e?void 0:e.fields)||void 0===t?void 0:t.experiences)||[]).map(formatExperience),relatedPosts:((null===(n=null==m?void 0:m.data)||void 0===n?void 0:n.related_post)||[]).map(e=>(0,p.f)(e.post)),educations:((null===(i=null===(a=null==m?void 0:m.data)||void 0===a?void 0:a.fields)||void 0===i?void 0:i.educations)||[]).map(formatEducation),awards:(null===(l=null===(o=null==m?void 0:m.data)||void 0===o?void 0:o.fields)||void 0===l?void 0:l.awards_accreditations)||[],contact:(null===(s=null===(r=null==m?void 0:m.data)||void 0===r?void 0:r.fields)||void 0===s?void 0:s.contact)||{}};(null==m?void 0:m.status)===1&&L(C),k((null===(c=null==I?void 0:I.data)||void 0===c?void 0:c.faqs)||[]),w((null===(d=null==T?void 0:T.data)||void 0===d?void 0:d.description)||""),_(!1)})},[]),s.createElement(C.Provider,{value:{isMarryBaby:O,siteType:O?"marryBaby":"helloSites",authorId:String((null==t?void 0:t.userId)||""),authActionWrapper:n,onSkipQuestion:a,info:N,authorProps:t,onCloseFromPost:i,countValues:A,setCountValues:S,isAuthorLogin:R,showSkipQuestionTag:l,currentPageUrl:g}},s.createElement("div",Object.assign({},m,{className:`${v.container} ${(null==m?void 0:m.className)||""}`,"data-is-marrybaby":O}),f?s.createElement(d.L,null):s.createElement(s.Fragment,null,s.createElement("div",{className:v.cardAuthorWrapper},s.createElement(T.C,Object.assign({},t,{className:"card-author",showDetailPopup:!1,showChatbotButton:E===I.L.Vietnam,onChatWithBot:o}))),s.createElement("div",{className:v.description,dangerouslySetInnerHTML:{__html:x}}),P.length>0&&s.createElement("div",{className:v.body},s.createElement(c.T,Object.assign({},H))))))}},Nanf:function(e,t,n){n.d(t,{S:function(){return i}});var a=n("2wr/");let i=a.r},bBqa:function(e,t,n){n.d(t,{P:function(){return PillCarousel}});var a=n("ubET"),i=n("q1tI"),o=n("rBCA"),l=n("x9hL"),r=n("iBNF"),s=n("I/35"),c=n("DSg0"),d=n("hKh/"),p=n("wY0a");let u=o.Z.div` display: inline-flex; overflow: hidden; width: ${e=>e.size}px; height: ${e=>e.size}px; box-sizing: border-box; align-items: center; justify-content: center; border: 1px solid #e4e8ec; background-color: ${e=>e.backgroundColor||r.r.colors.white}; border-radius: ${e=>e.borderRadius||"50%"}; & > * { width: ${e=>e.iconSize}px; height: ${e=>e.iconSize}px; } `,h=o.Z.div` display: inline-block; height: 108px; background-color: ${r.r.colors.white}; border-radius: 60px; cursor: pointer; &.selected-week-pill { background-color: ${r.r.colors.pink100}; } & > div:first-child { margin: 4px 4px 0; } & > p { margin-top: 8px; text-align: center; } & > * { pointer-events: none; } `,g=[d.L.Myanmar,d.L.Taiwan],m=(0,o.Z)(e=>{var{icon:t,name:n,className:o,locale:d="en-PH",dataEventCategory:p,dataEventAction:m,dataEventLabel:E,onSelect:T}=e,I=(0,a.a)(e,["icon","name","className","locale","dataEventCategory","dataEventAction","dataEventLabel","onSelect"]);let C=(0,i.useMemo)(()=>null==o?void 0:o.includes("selected-week-pill"),[o]);return i.createElement(h,Object.assign({onClick:T,className:o?"week-pill".concat(" non-pointer-event-child ",o):"week-pill non-pointer-event-child","data-event-category":p,"data-event-action":m,"data-event-label":E},I),i.createElement(u,{size:64,iconSize:40,backgroundColor:r.r.colors.white},i.createElement(s.I,{src:t||l.C.getAssetPath("week_default.png"),alt:`week ${n}`})),C?i.createElement(c.T,Object.assign({type:"semiBold",size:"n1",color:r.r.colors.gray800},g.includes(d)&&{style:{fontSize:"10px"}}),n):i.createElement(c.T,Object.assign({size:"n1",color:r.r.colors.gray600},g.includes(d)&&{style:{fontSize:"10px"}}),n))})` box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.08); `,E=(0,o.Z)(p.f.Slide)` cursor: pointer; > div * { pointer-events: none; } `,T=(0,o.Z)(p.f)` .centerred-pill-wrapper { padding: 16px 0; } `,PillCarousel=e=>{var{data:t,isMobile:n,onSlideChange:o,pillProps:l,locale:r=d.L.Vietnam,blurFromIndex:s,blurLength:c}=e,p=(0,a.a)(e,["data","isMobile","onSlideChange","pillProps","locale","blurFromIndex","blurLength"]);let[u,h]=(0,i.useState)("");return(0,i.useEffect)(()=>{h(window.location.href)},[]),i.createElement(T,Object.assign({},{withControls:!n,slideGap:16,blurFromCenter:!0,blurFromIndex:s||(n?2:4),blurLength:c||(n?1:3),onSlideChange:o},p,{selectSlideWhenClick:!0,previousControlIcon:i.createElement(Arrow,{currentUrl:u}),nextControlIcon:i.createElement(Arrow,{currentUrl:u,isRight:!0})}),e=>t.map((t,n)=>i.createElement(E,Object.assign({key:n,onClick:o,"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Click","data-event-label":u,innerSlideProps:{"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Click","data-event-label":u}},l),i.createElement("div",{className:"centerred-pill-wrapper"},i.createElement(m,{"data-event-category":"Health Tool","data-event-action":"Fetal Week Click","data-event-label":u,locale:r,name:t.name,icon:t.icon,className:n===e?"selected-week-pill pointer-event-child-none":"pointer-event-child-none"})))))},Arrow=({isRight:e,currentUrl:t})=>i.createElement("svg",{viewBox:"0 0 15 15",fill:"none",width:"16",height:"16",style:e?{transform:"rotate(-90deg)"}:{transform:"rotate(90deg)"},"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Arrow Click","data-event-label":t,className:"pointer-event-child-none"},i.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))},rvDO:function(e,t,n){n.d(t,{A:function(){return z},B:function(){return Y},C:function(){return M},D:function(){return R},E:function(){return w},F:function(){return D},G:function(){return j},H:function(){return k},I:function(){return G},L:function(){return _},Q:function(){return r},S:function(){return L},U:function(){return f},V:function(){return H},Z:function(){return Z},a:function(){return P},b:function(){return A},c:function(){return W},d:function(){return B},e:function(){return x},f:function(){return K},g:function(){return F},h:function(){return $},i:function(){return X},j:function(){return U},k:function(){return V},l:function(){return S},m:function(){return N},r:function(){return d},s:function(){return q}});var a,i,o,l,r,s,c,d,p=n("EikE"),u=n("OT65"),h=n("G2RZ"),g=n("YNYf"),m=n("R43W"),E=n("+xLi"),T=n("tO2/"),I=n("YJaS"),C=n("tiWT"),v=n("xrdX"),b=n("UIg8"),O=n("GOBr"),y=n("hKh/");let A="",S="https://id.hellobacsi.com/",f="userGeoLocationCoordinates",_={"vi-VN":{PHONE:"+84",LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"en-PH":{PHONE:"+63",LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"th-TH":{PHONE:"+66",LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"km-KH":{PHONE:"+855",LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"my-MM":{PHONE:"+95",LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{PHONE:"+886",LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"zh-SG":{PHONE:"",LOGO_TYPE:"hellojiankang",SITE_NAME:"Hello健康",HOMEPAGE_IMAGE:"",SITE_NAME_FORMATTED:"Hello 健康",SITE_ID:"12",INSIDER_TAG:"",TOOLTIP_IMAGE:"",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"id-ID":{PHONE:"+62",LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"hi-IN":{PHONE:"+91",LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"ms-MY":{PHONE:"+60",LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-PH":{PHONE:"+63",LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},N=[{countryCode:"VN",countryName:"Việt Nam",languageCode:"vi"},{countryCode:"PH",countryName:"Philippines",languageCode:"en"},{countryCode:"TH",countryName:"ประเทศไทย",languageCode:"th"},{countryCode:"KH",countryName:"កម្ពុជា",languageCode:"km"},{countryCode:"MM",countryName:"မြန်မာ",languageCode:"my"},{countryCode:"TW",countryName:"台灣",languageCode:"zh"},{countryCode:"SG",countryName:"新加坡",languageCode:"zh"},{countryCode:"ID",countryName:"Indonesia",languageCode:"id"},{countryCode:"IN",countryName:"भारत",languageCode:"hi"},{countryCode:"MY",countryName:"Malaysia",languageCode:"ms"}],L={"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/GxlKjAMGvWb"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/T0Op0XUtt0b"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/gRQNJoDHvWb"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:""},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/Zi0O2HxIvWb"},"zh-SG":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/eyzYCiacZ0b"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/5zzz90iHvWb"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:""},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/DgSznupHvWb"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/F8yihqrIvWb"},"tl-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community",CLINITY_DOWNLOAD_LINK:"https://clinity.app.link/gRQNJoDHvWb"}},P=[y.L.Vietnam,y.L.Indonesia,y.L.PhilippinesEnglish,y.L.PhilippinesTagalog,y.L.Thailand,y.L.Malaysia,y.L.Myanmar],k=[y.L.Indonesia,y.L.Cambodia,y.L.PhilippinesEnglish,y.L.PhilippinesTagalog,y.L.Thailand,y.L.Singapore],x=[y.L.Vietnam],w=["vi-VN"],R=["id-ID"],M=["vi-VN","id-ID","en-PH","tl-PH","ms-MY","th-TH"],B=["vi-VN","id-ID"],H=[y.L.Vietnam,y.L.Taiwan],D={"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]};(a=r||(r={})).bmi="mi",a.gender="gndr",a.age="ge",a.slug="slug",a.resultId="resultId",a.bmr="mr",a.height="gt",a.weight="wght",a.source="surc",a.type="tp",a.startDate="sd",a.additional="tnl",a.week="wk",a.twins="twn",a.weightBefore="wb",a.yourself="yrslf",a.intensity="sy",a.rate="rt",a.method="mthd",a.day="dy",a.pwg="pwg",a.cycle="le",a.period="prd",a.access_token="tkn",a.name="nm",a.id="id",a.activityLevel="actl",a.status="status",a.birthday="brd",a.withImperialUnit="lbs";let G={[y.L.Vietnam]:{dateFormat:"DD/MM/YYYY",separator:","},[y.L.Cambodia]:{dateFormat:"DD/MM/YYYY",separator:"."},[y.L.India]:{dateFormat:"DD/MM/YYYY",separator:"."},[y.L.Indonesia]:{dateFormat:"DD/MM/YYYY",separator:","},[y.L.Malaysia]:{dateFormat:"DD/MM/YYYY",separator:"."},[y.L.Thailand]:{dateFormat:"DD/MM/YYYY",separator:"."},[y.L.Taiwan]:{dateFormat:"YYYY/MM/DD",separator:","},[y.L.Singapore]:{dateFormat:"YYYY/MM/DD",separator:","},[y.L.PhilippinesTagalog]:{dateFormat:"MM/DD/YYYY",separator:"."},[y.L.PhilippinesEnglish]:{dateFormat:"MM/DD/YYYY",separator:"."},[y.L.Myanmar]:{dateFormat:"DD/MM/YYYY",separator:","}},Y="hhg_user_token",V="hhg_user_refresh_token",U={[y.L.PhilippinesEnglish]:p.Z,[y.L.Vietnam]:u.default,[y.L.Cambodia]:h.Z,[y.L.India]:g.Z,[y.L.Indonesia]:m.Z,[y.L.Myanmar]:p.Z,[y.L.Malaysia]:E.Z,[y.L.Thailand]:T.Z,[y.L.Taiwan]:I.Z},F="https://cdn.hellohealthgroup.com/countries",j="_ga",z="YYYY-MM-DD",W=9999999,Z=305,K="video_item_detail",$="hhg_cart_care_store_key";(i=s||(s={}))[i.UNAVAILABLE=0]="UNAVAILABLE",i[i.AVAILABLE=1]="AVAILABLE",(o=c||(c={}))[o.FIXED=1]="FIXED",o[o.STARTING=2]="STARTING",o[o.RANGE=3]="RANGE",(l=d||(d={})).VACCINE="VACCINE",l.IVF="IVF",l.EGG_FREEZING="EGG_FREEZING",l.HEALTH_SCREENER="HEALTH_SCREENER";let q={vaccine:d.VACCINE,ivf:d.IVF,"egg-freezing":d.EGG_FREEZING,screener:d.HEALTH_SCREENER},Q={[d.VACCINE]:"vaccine",[d.IVF]:"ivf",[d.EGG_FREEZING]:"egg-freezing",[d.HEALTH_SCREENER]:"screener"};var X=Object.freeze({__proto__:null,basePath:A,SSO_URL:S,USER_GEOLOCATION_COORDINATES_COOKIE:f,LOCALE_SPECS:_,COUNTRY_LIST:N,STATIC_PAGES:L,UP_BASEPATH:"user",LOCALE_HAS_COMMUNITY_SITE:P,HAS_CLINITY_DOWNLOAD_SITE:k,LOCALE_HAS_CART_CARE_SITE:x,ECOM_LOCALES:w,DATA_PRIVACY_LOCALES:R,CARE_LOCALES:M,CARE_BOOKING_LOCALES:B,VIDEO_LOCALES:H,FAVICONS:D,get QUERY_HEALTH_TOOL(){return r},ISO_FORMAT:G,BEARER_TOKEN_COOKIE:Y,BEARER_REFRESH_TOKEN_COOKIE:V,DATE_FNS_LOCALE:U,CDN_ADDRESS:F,GA_TOKEN_COOKIE:j,API_DATE_FORMAT:z,DATE_FNS_DATE_FORMAT:"dd-MM-yyyy",ZINDEX_SSO:W,ZINDEX_HEADER:Z,VIDEO_DETAIL_TEMP_STORAGE:K,HHG_CART_CARE_STORE_KEY:$,get EMERGENCY_STATUS(){return s},get ServicePrice(){return c},get SERVICE_TYPE(){return d},serviceTypeByProductType:q,productTypeByServiceType:Q,siteHost:C.Cf,siteOptions:C.x9,COUNTRY_CURRENCY_SYMBOL:C.Z5,domainLocales:v.v,MAP_DOMAIN_BY_LOCALE:v.f,get RISK_SCREENER_NAME(){return b.t},RISK_SCREENER_SLUG:b.n,isProduction:O.y})},lhAG:function(e,t,n){n.d(t,{T:function(){return d}});var a=n("ubET"),i=n("q1tI"),o=n("/npG"),l=n("8vDj"),r=n("TIp3"),s=n("usMy"),c=(0,o.k)((e,t)=>{var n,a,i,o,l,r,c,d,p,u;let h=s.a[null==t?void 0:t.customStylesType]||s.a[s.C.NONE],g=null===(n=h.fontSize[null==t?void 0:t.size])||void 0===n?void 0:n[0],m=null===(a=h.lineHeight[null==t?void 0:t.size])||void 0===a?void 0:a[0],E=null!==(l=null===(o=null===(i=h.letterSpacing)||void 0===i?void 0:i[null==t?void 0:t.size])||void 0===o?void 0:o[0])&&void 0!==l?l:0,T=null===(r=h.fontSize[null==t?void 0:t.size])||void 0===r?void 0:r[1],I=null===(c=h.lineHeight[null==t?void 0:t.size])||void 0===c?void 0:c[1],C=null!==(u=null===(p=null===(d=h.letterSpacing)||void 0===d?void 0:d[null==t?void 0:t.size])||void 0===p?void 0:p[1])&&void 0!==u?u:0;return{root:Object.assign({},(null==t?void 0:t.size)&&{fontWeight:(null==t?void 0:t.as)==="label"?s.F.semiBold:h.fontWeight[t.weight]||h.fontWeightBySize[null==t?void 0:t.size]||s.F.regular,fontSize:`${g}`,lineHeight:`${m}`,letterSpacing:E,[e.fn.smallerThan("sm")]:{fontSize:`${T}`,lineHeight:`${I}`,letterSpacing:C}})}});let d=(0,i.forwardRef)((e,t)=>{var n,{size:o,color:d,weight:p,as:u="p",styles:h,className:g,dataEventCategory:m,dataEventAction:E,dataEventLabel:T,variant:I}=e,C=(0,a.a)(e,["size","color","weight","as","styles","className","dataEventCategory","dataEventAction","dataEventLabel","variant"]);let v=(0,l.rZ)(),b=(0,s.u)(),{classes:O,cx:y}=c({size:o,weight:"caption"===p?"bold":p,as:u,customStylesType:b},{name:"Text",styles:h}),A="string"==typeof v.colors[d]?v.colors[d]:d;return i.createElement(r.x,Object.assign({"data-size":o,className:y(O.root,g),color:A||("label"===u?v.colors.gray[6]:(null===(n=null==v?void 0:v.other)||void 0===n?void 0:n.template)==="mb"?v.colors.delftGray[7]:void 0)||("primary"===I?v.colors.gray[9]:"secondary"===I?v.colors.gray[7]:"tertiary"===I?v.colors.gray[5]:"disabled"===I?v.colors.gray[3]:"error"===I?v.colors.red[6]:"success"===I?v.colors.green[6]:void 0)||v.colors.gray[7],component:u,"data-event-category":m,"data-event-action":E,"data-event-label":T,classNames:{root:Object.assign(Object.assign({},C.wordWrap?{"word-wrap":C.wordWrap}:void 0),C.isUppercase||"caption"===p?{"text-transform":"uppercase"}:void 0)},ref:t},C))})},Vpjh:function(e,t,n){n.d(t,{u:function(){return a}});var a=(0,n("/npG").k)(e=>({root:{},inner:{},content:{borderRadius:16},header:{borderBottom:`1px solid ${e.colors.neutral[1]}`,marginRight:0,marginBottom:0,padding:"12px"},overlay:{},title:{fontSize:16,fontWeight:700,lineHeight:1.5},body:{},close:{cursor:"pointer",width:"unset",height:"unset",svg:{width:"24px !important",height:"24px !important"}}}))},tOVO:function(e,t,n){n.d(t,{L:function(){return LabelSorting}});var a,i,o=n("q1tI"),l=n("lhAG"),r=n("Hcm0"),s=n("HNv6");(a=i||(i={})).latest="latest",a.oldest="oldest",a.popular="popular";let LabelSorting=({onChange:e,className:t,style:n,leftLabel:a,rightLabel:i,color:c,value:d,choices:p})=>{let{data:{env:{isMarryBaby:u}}}=(0,o.useContext)(r.T);return o.createElement(s.L,{label:a,rightLabel:o.createElement(s.b,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:p.map(t=>({label:t.label,onClick:()=>e&&e(String(t.value)),selected:t.value===d,className:"bold-item"}))},toggleButtonContent:o.createElement("div",{style:{display:"flex"}},o.createElement(l.T,{style:{display:"flex",alignItems:"center",fontWeight:"normal",marginRight:12},size:"p4"},i),o.createElement("img",{src:u?"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%233E3F58' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m8 14 4 4 4-4M16 10l-4-4-4 4'/%3e%3c/svg%3e":"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath fill='%238C8C8C' d='M4.5 7h7a.46.46 0 0 0 .351-.165.56.56 0 0 0 .149-.39q0-.226-.149-.391l-3.5-3.89a.458.458 0 0 0-.703 0l-3.5 3.89a.56.56 0 0 0-.148.39q0 .226.148.391Q4.298 7 4.5 7M11.5 9h-7a.46.46 0 0 0-.352.165.56.56 0 0 0-.148.39q0 .226.148.391l3.5 3.889a.46.46 0 0 0 .703 0l3.5-3.889a.56.56 0 0 0 .149-.39q0-.226-.149-.391A.46.46 0 0 0 11.5 9'/%3e%3c/svg%3e",style:{width:16,height:16,alignSelf:"center"},loading:"lazy"}))}),color:"gray",className:t,style:n})}},pLyV:function(e,t,n){n.d(t,{c:function(){return convertLocalizedStringToNumber},f:function(){return formatPhoneNumber},l:function(){return localizeNumberFormat}});var a=n("A9bs");let localizeNumberFormat=(e,t,n=2)=>Intl.NumberFormat(void 0,{maximumFractionDigits:n}).format(e),convertLocalizedStringToNumber=e=>Number(e.replace(/,/gi,".")),formatPhoneNumber=e=>{try{let t=(0,a.parsePhoneNumber)(e,"VN");if(!(null==t?void 0:t.number))throw Error("Invalid number");return(0,a.formatPhoneNumber)(t.number)}catch(t){return console.log("\uD83D\uDE80 ~ formatPhoneNumber ~ error:",t),e}}},RGdu:function(e,t,n){n.d(t,{L:function(){return l}});var a=n("q1tI"),i=n("x9hL"),o=n("I/35");let l=(0,a.memo)(({type:e,width:t,height:n,isLight:l})=>{let r=(0,a.useMemo)(()=>{switch(e){case"hellobacsi":return{width:t||"107px",height:n||"24px",src:i.C.getAssetPath("logo/hellobacsi.png"),srcLight:i.C.getAssetPath("logo/hellobacsi-light.png")};case"hellodoktor":return{width:t||"127px",height:n||"24px",src:i.C.getAssetPath("logo/hellodoktor.png")};case"hellosehat":return{width:t||"121px",height:n||"27px",src:i.C.getAssetPath("logo/hellosehat.png")};case"hellojiankang":return{width:t||"87px",height:n||"24px",src:i.C.getAssetPath("logo/hellojiankang.png")};case"hellohealth":return{width:t||"123px",height:n||"24px",src:i.C.getAssetPath("logo/hellohealth.png")};case"hellotogether":return{width:t||"150px",height:n||"24px",src:i.C.getAssetPath("logo/hellotogether.png")};case"hellocare":return{width:t||"99px",height:n||"24px",src:i.C.getAssetPath("logo/hellocare.png")};case"hellodoctor":return{width:t||"127px",height:n||"24px",src:i.C.getAssetPath("logo/hellodoctor.png")};case"hellokrupet":return{width:t||"101px",height:n||"24px",src:i.C.getAssetPath("logo/hellokrupet.png")};case"hellosayarwon":return{width:t||"111px",height:n||"24px",src:i.C.getAssetPath("logo/hellosayarwon.png")};case"helloyishi":return{width:t||"89px",height:n||"24px",src:i.C.getAssetPath("logo/helloyishi.png")};case"hellokhunmor":return{width:t||"123px",height:n||"24px",src:i.C.getAssetPath("logo/hellokhunmor.png")};case"helloswasthya":return{width:t||"105px",height:n||"24px",src:i.C.getAssetPath("logo/helloswasthya.png")};case"logomark":return{width:t||"60px",height:n||"57px",src:i.C.getAssetPath("logo/logomark.png")};case"marryBaby":return{width:t||"145px",height:n||"28px",src:i.C.getAssetPath("logo/marrybaby.png")};default:return null}},[e,t,n]),{src:s,width:c,height:d,srcLight:p}=r||{};return a.createElement(o.I,{alt:`${e} logo`,className:"main-logo-icon",src:l&&p||s,style:{width:c,height:d}})})}}]);