"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[137],{TFkV:function(e,t,n){n.d(t,{D:function(){return Drawer}});var a=n("q1tI"),i=n("t/pd"),l=n("HkQG"),r=n("AeFk"),o=n("rBCA"),s=n("iBNF"),c=n("S32E"),d=n("HKYo");let p="600ms",generateStyleBasedOnPlacement=(e,t)=>{switch(e){case"top":return r.iv` top: 0; width: 100%; border-radius: 0px 0px 6px 6px; ${t?r.iv` animation: ${c.a} ${p} ease-in-out forwards; `:null} &.slideOut { animation: ${c.d} ${p} ease-in-out forwards; } `;case"right":return r.iv` right: 0; height: 100%; min-width: 300px; border-radius: 6px 0px 0px 6px; ${t?r.iv` animation: ${c.c} ${p} ease-in-out forwards; `:null} &.slideOut { animation: ${c.g} ${p} ease-in-out forwards; } `;case"bottom":return r.iv` bottom: 0; width: 100%; border-radius: 6px 6px 0px 0px; ${t?r.iv` animation: ${c.s} ${p} ease-in-out forwards; `:null} &.slideOut { animation: ${c.e} ${p} ease-in-out forwards; } `;case"left":return r.iv` left: 0; height: 100%; min-width: 300px; border-radius: 0px 6px 6px 0px; ${t?r.iv` animation: ${c.b} ${p} ease-in-out forwards; `:null} &.slideOut { animation: ${c.f} ${p} ease-in-out forwards; } `;default:return r.iv` left: 0; height: 100%; min-width: 300px; border-radius: 0px 6px 6px 0px; ${t?r.iv` animation: ${c.s} ${p} ease-in-out forwards; `:null} &.slideOut { animation: ${c.e} ${p} ease-in-out forwards; } `}},u=o.Z.div` position: fixed; inset: 0; z-index: ${s.r.zIndexes.drawer}; pointer-events: ${e=>e.open?"auto":"none"}; `,h=o.Z.div` position: fixed; z-index: 300; background: #ffffff; visibility: ${e=>e.open?"visible":"hidden"}; max-height: calc(100vh - 100px); display: flex; flex-direction: column; .title { display: flex; align-items: center; justify-content: space-between; padding: 16px; ${e=>e.hasTitle?r.iv` border-bottom: 1px solid ${s.r.colors.neutral100}; `:null} } .close-button { margin-left: auto; } ${e=>generateStyleBasedOnPlacement(e.placement,e.open)} `,g=o.Z.div` min-height: 200px; padding: 16px; overflow-y: auto; `,m=o.Z.div` position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; outline: 0; background-color: rgba(38, 38, 38, 0.3); z-index: 1; &[data-open='false'] { visibility: hidden; pointer-events: none; } &[data-open='true'] { visibility: visible; pointer-events: auto; } `,Backdrop=({open:e=!1,onClickOutside:t})=>a.createElement(m,{"data-open":e,onClick:t}),Drawer=({children:e,title:t,onClose:n,open:r=!1,placement:o="left",destroyOnClose:s=!1,isPropagationEvent:c=!0,className:p})=>{let m=(0,a.useRef)();(0,a.useEffect)(()=>((0,l.t)(r),()=>(0,l.t)(!1)),[r]);let onCloseDrawer=()=>{m.current.classList.add("slideOut"),setTimeout(()=>{n()},800)};return!r&&s?null:a.createElement(i.h,null,a.createElement(u,{className:p,open:r},a.createElement(Backdrop,{open:r,onClickOutside:onCloseDrawer}),a.createElement(h,{open:r,placement:o,ref:m,hasTitle:!!t},a.createElement("div",{className:"title"},t&&a.createElement(d.T,{size:"s2",weight:"semiBold"},t),a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"close-button",onClick:onCloseDrawer},a.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"}))),a.createElement(g,{onClick:e=>{c&&e.stopPropagation()}},e&&(a.isValidElement(e)?e:"function"==typeof e?e({internalClose:onCloseDrawer}):null)))))}},"5iFf":function(e,t,n){n.d(t,{M:function(){return ei},S:function(){return SurveyOrPremiumBanner},a:function(){return el},b:function(){return SideBannerModal}});var a,i,l,r,o,s,c,d=n("q1tI"),p=n("mYVa"),u=n("7Ci/"),h=n("/npG"),g=n("Eso5"),m=n("OAL+"),b=n("SPK5"),v=n("RZSM"),f=n("vaps"),E=n("9n+W"),C=n("DA0W"),x=n("RGvF"),w=n("JZkZ"),y=n("MkcP"),k=n("W9uT"),T=n("R7z5"),S=n("F1xy"),B=n("8N4s"),P=n("UIg8"),L=n("mHfz"),A=n("MOCu"),N=n("yPD6"),O=n("NXAV"),I=n("GXD3"),j=n("cChf"),R=n("ZFu2"),M=n("erMh"),$=n("dCWD"),H=n("HKYo"),z=n("OFra"),_=n("jD9D"),W=n("IQVP"),F=n("iYxA"),D=n("4oNJ"),V=n("Epq8"),Z=n("xrdX"),G=n("GOBr"),U=n("OWiL"),K=n("vWP/"),Y=n("Dhx2"),q=n("hI2/"),X=n("JIJ2"),J=n("TYy9"),Q=n.n(J),ee=n("qPyV"),et=n.n(ee),en=n("tiO5");let ea=[{title:"Health News & Current Affairs",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:k.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:k.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:k.C.getAssetPath("newsletter-prefer/newsletter-community.svg"),checked:!1,id:3}];(a=r||(r={})).Pregnant="pregnant",a.Parenting="parenting",(o||(o={})).Option="option",(i=s||(s={})).Button="button",i.Checkbox="checkbox",(l=c||(c={})).ShowTool="showTool",l.ShowPremiumModal="showPremiumModal",l.ShowOptionBanner="showOptionBanner",l.Hide="hide";let ei={pregnancy:r.Pregnant,parenting:r.Parenting},el={[r.Pregnant]:"pregnant",[r.Parenting]:"parent"},FLOW=(e,t)=>({[r.Pregnant]:{action:c.ShowOptionBanner,props:{heading:e("pnBanner.pregnancy.heading"),description:e("pnBanner.pregnancy.desc"),styleType:s.Button,thumbnail:{desktop:k.C.getAssetPath("newsletter/banner-option-pregnancy-desktop.png"),mobile:k.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:B.H.DUE_DATE}},no:{action:c.ShowPremiumModal}}},[r.Parenting]:{action:c.ShowOptionBanner,props:{heading:e("pnBanner.parenting.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:k.C.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:k.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:B.H.BABY_VACCINE}},teenager:{action:c.ShowOptionBanner,props:{styleType:s.Button,heading:e("pnBanner.teenager.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:k.C.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:k.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:P.t.HPV,props:{value:P.t.HPV}},"todders|teenager":{action:c.ShowOptionBanner,props:{styleType:s.Button,heading:e("pnBanner.both.heading"),description:e("pnBanner.both.desc"),thumbnail:{desktop:k.C.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:k.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:B.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:k.C.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:k.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:B.H.BABY_VACCINE,isLink:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Baby Vaccine Click",dataEventLabel:t}}]}}}}}),TOOL_BANNERS_PROPS=e=>({[B.H.DUE_DATE]:{heading:e("pnBanner.dueDateTool.heading"),description:e("pnBanner.dueDateTool.desc"),btnLabel:e("pnBanner.caclNow"),value:B.H.DUE_DATE,dataEventAction:"Try our Due Date Calculator Click"},[B.H.BABY_VACCINE]:{heading:e("pnBanner.vaccination.heading"),description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:B.H.BABY_VACCINE,dataEventAction:"Try our Baby Vaccine Scheduler Click"},[B.H.BABY_GROWTH]:{heading:"Baby Growth",description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:B.H.BABY_GROWTH},[P.t.HPV]:{heading:e("pnBanner.hpv.heading"),description:e("pnBanner.hpv.desc"),thumbnail:{desktop:k.C.getAssetPath("newsletter/banner-option-hpv-desktop.png"),mobile:k.C.getAssetPath("newsletter/banner-option-hpv-mobile.png")},isRiskScreener:!0,btnLabel:e("pnBanner.checkNow"),value:P.t.HPV,hideDescOnMobile:!0,dataEventAction:"Keep safe from HPV virus Click"}}),er=(0,d.createContext)({}),PnBannerEle=e=>{var t=(0,L._)(e,[]);let{locale:n}=(0,I.u)(),{type:a,isMobile:i,currentUrl:l,isMarketing:r,isLoggedIn:o,setShouldAcquisitionModalOpen:s}=(0,d.useContext)(er),{triggerLogin:c}=(0,A.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.a)(void 0,void 0,void 0,function*(){let e=r?(0,O.g)(n)+"/dang-ky-nhan-tin/":`${window.location.href}?source=acquisition`;o?null==s||s():(0,A.I)(n)?c({returnUrl:r?e:void 0,source:r?void 0:"acquisition"}):window.location.href=`${(0,O.a)(n)}/?returnUrl=${encodeURIComponent(e)}`}),"data-event-category":"Newsletter","data-event-action":"Banner Click","data-event-label":l,className:"pointer-event-child-none"},t),d.createElement(N.I,{src:r?k.C.getAssetPath(`newsletter/${i?"Mobile":"Desktop"}_Marketing.png`):k.C.getAssetPath(`newsletter/${i?"Mobile":"Desktop"}_${a}.png`),style:{maxWidth:"100%"},alt:"newsletter banner"}))},eo={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:l,minHeight:r}=(0,d.useContext)(er);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)(r),borderRadius:"inherit",background:`url(${l?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(F.H,{tag:"h4"},e),!(a&&l)&&t&&d.createElement(H.T,{size:"p4"},t)),d.createElement(g.x,null,i))))},BannerWithOptions=e=>{let{styleType:t=s.Button,items:n=[],buttonProps:a,styles:i,submitBtnTracking:l}=e,{classes:r}=es(void 0,{name:"PremiumBannerWithOptions",styles:i}),{t:o,locale:c}=(0,I.u)(),{surveyType:u,articleId:h,handleClickOption:m,hasPremiumBanner:v,source:f,isMobile:E,setShowPNModal:C}=(0,d.useContext)(er),x=(0,d.useMemo)(()=>v?n:n.filter(e=>!e.isPNBtn).filter(Boolean),[n]),{getHealthToolLink:w}=(0,D.u)(c),y=(0,j.c)({initialValues:{bannerOptions:[]}}),saveStep=e=>(0,L.a)(void 0,void 0,void 0,function*(){return yield(0,T.e)((0,T.f)(W.yy.HEALTH_TOOL.CREATE,{_locale:c,type:el[u]}),"POST",{headers:{"Content-Type":"application/json"},data:{value:e,article:h,source:f}})}),k=(0,d.useCallback)(()=>d.createElement(b.k,{gap:(0,p.h)(8),className:r.wrapper},x.map((e,t)=>d.createElement(g.x,{key:String(t),component:e.isLink?"a":"div",href:e.isRiskScreener?`https://${Z.v[c]}/bot/${P.n[c][e.activeTool]}/`:e.isLink?w(e.activeTool):void 0},d.createElement(z.B,Object.assign({className:r.button,classNames:{label:r.buttonLabel},size:"sm"},e.tracking,a,{onClick:()=>{e.isLink||(e.isPNBtn&&C(!0),saveStep(e.value),m(e.value))}}),e.label)))),[x,y]),S=(0,d.useCallback)(()=>d.createElement(b.k,null,d.createElement(b.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(M.d.Group,Object.assign({},y.getInputProps("bannerOptions",{type:"checkbox"})),d.createElement(b.k,{gap:(0,p.h)(16)},x.map((e,t)=>d.createElement(M.d,{key:String(t),value:e.value,label:e.label,styles:{label:{cursor:"pointer"}}})))),d.createElement(z.B,Object.assign({size:"sm"},l,a,{disabled:0===y.getInputProps("bannerOptions").value.length,leftIcon:E?d.createElement(V.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}}})}),!E&&o("pnBanner.submit")))),[x,y]);return d.createElement(BannerLayout,Object.assign({},e),t===s.Button?k():t===s.Checkbox?S():null)},ToolBanner=e=>{var t,n;let{t:a}=(0,I.u)(),{heading:i,description:l,thumbnail:r,btnLabel:o,value:s,isRiskScreener:c,hideDescOnMobile:u,dataEventAction:h}=e,{locale:g}=(0,I.u)(),{isMobile:v}=(0,d.useContext)(er),{getHealthToolLink:f,allTools:E}=(0,D.u)(g),C=(0,d.useMemo)(()=>{let e=c?`https://${G.y?"":"discover."}${Z.v[g]}/bot/${P.n[g][s]}`:f(s);return d.createElement("a",{href:e},d.createElement(z.B,{size:"sm","data-event-category":"Focused Audience","data-event-action":h,"data-event-label":e},o||a("pnBanner.caclNow")))},[E]);return"mainBanner"==(c?"mainBanner":"toolBanner")?d.createElement(BannerLayout,Object.assign({},Object.assign(Object.assign({},e),{thumbnail:e.thumbnail})),C):d.createElement(b.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(F.H,{tag:"h4"},i),!(v&&u)&&l&&d.createElement(H.T,{size:"p4"},l)),d.createElement(b.k,{gap:(0,p.h)(8),sx:{button:{minWidth:(0,p.h)(120)}}},C)),d.createElement(b.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:r||(null===(n=null===(t=E.filter(e=>e.template===s))||void 0===t?void 0:t[0])||void 0===n?void 0:n.icon)||B.a[s]||"",loading:"lazy"})))},HandlerBanner=()=>{var e,t,n;let{t:a}=(0,I.u)(),{state:i,Outside:l}=(0,d.useContext)(er);return(null==i?void 0:i.action)===c.ShowTool?d.createElement(l,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(l,null,d.createElement(BannerWithOptions,Object.assign({},null==i?void 0:i.props))):null},SideBannerModal=e=>{var{isMobile:t,children:n,desktopBanner:a=k.C.getAssetPath("friso/onboarding-banner.jpg"),mobileBanner:i=k.C.getAssetPath("friso/onboarding-banner-mobile.jpg"),modalRatio:l={width:937,height:536},mobileBannerRatio:r={width:750,height:480},desktopBannerRatio:o={width:420,height:536},closeProps:s}=e,c=(0,L._)(e,["isMobile","children","desktopBanner","mobileBanner","modalRatio","mobileBannerRatio","desktopBannerRatio","closeProps"]);let{width:u,height:h}=(0,_.n)(),m=u*r.height/r.width,[b,f]=(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)(l.width),width:"100%",height:"100%",maxHeight:(0,p.h)(l.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:()=>f(!0)},d.createElement(g.x,{className:"mobile-template",sx:{position:"absolute",height:`${(b?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:b?0:(0,p.h)(12),borderTopRightRadius:b?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,Y.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(z.B,Object.assign({variant:"white",leftIcon:d.createElement(U.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(v.o,{ratio:(null==r?void 0:r.width)/(null==r?void 0:r.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(v.o,{className:"desktop-template",ratio:l.width/l.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,Y.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:`${(l.width-o.width)/l.width*100}%`}},d.createElement(z.B,Object.assign({variant:"white",leftIcon:d.createElement(U.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._)(e,["value","name"]);return d.createElement(M.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:l,maxSelect:r=5,hasScroll:o,readonly:s})=>{let{action:{pushNotifications:c}}=(0,d.useContext)(T.T),p=Q()(e.map(e=>e.topics||[])),{t:u}=(0,I.u)(),[h,v]=(0,d.useState)([]);(0,d.useEffect)(()=>{v(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:r}),message:u("pnTopicSection.maxSelectError.desc")});return}s||v(()=>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(H.T,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},l),e.label),o?d.createElement(f.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(E.A.Group,Object.assign({value:h.map(e=>e.catId),multiple:!0},i,{onChange:onValueChange}),d.createElement(b.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(E.A.Group,Object.assign({value:h.map(e=>e.catId),multiple:!0},i,{onChange:onValueChange}),d.createElement(b.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._)(e,["heading","children","stickyActions"]);let{isMobile:l}=(0,d.useContext)(ed),r=d.createElement(m.K,{spacing:(0,p.h)(24),sx:{height:"100%"}},d.createElement(F.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%"}})},l?r:d.createElement(f.x,Object.assign({className:"layout-body",h:a?"calc(100% - 90px)":"100%"},i),r),a&&d.createElement(b.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,I.u)(),{data:{userInfo:n},action:{pushNotifications:a}}=(0,d.useContext)(T.T),i=null==n?void 0:n.id,{currentUrl:l,isMobile:r,pnSuggestCategory:o=[],nextStep:s,formValues:c,setFormValues:u,onSubmit:h,submitLoading:g,selectCategory:b,setCategoryLibs:v,setSelectCategory:f,maxSelectCategory:E}=(0,d.useContext)(ed),C=o.map(e=>e.catId),x=(0,j.c)({validate:{name:(0,R.U)(e("healthToolPNModal.mainForm.requireName"))},initialValues:Object.assign(Object.assign({},c),{fitnessTopics:C})}),[w,y]=(0,d.useState)([]),[k,S]=(0,d.useState)([]);(0,d.useEffect)(()=>{(0,L.a)(void 0,void 0,void 0,function*(){var e;try{let n=yield(0,T.e)((0,T.h)(eo.GET_SUBSCRIPTION_CATEGORIES,{_locale:t}),"get"),a=((null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.subscription)||[]).filter(e=>!C.includes(e.catId));y(o),S(a),v([...o,...a])}catch(e){console.log(e)}})},[]),(0,d.useEffect)(()=>{i&&x.setFieldValue("name",(null==n?void 0:n.name)||"")},[i]);let onMore=()=>{""!==x.getInputProps("name").value?(u(x.getTransformedValues()),s()):x.validateField("name")},B=(0,d.useMemo)(()=>d.createElement(z.B,{variant:"tertiary",dataEventCategory:"Newsletter",dataEventAction:"More Category Click",dataEventLabel:l,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(H.T,{size:r?"p3":"p4"},e("home.seeMore"))),[x]);return(0,d.useEffect)(()=>{x.setFieldValue("fitnessTopics",b.map(e=>e.catId))},[b]),d.createElement("form",{style:{height:"100%"},onSubmit:x.onSubmit(t=>{if(0===b.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(z.B,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Register Click",dataEventLabel:l,loading:g,sx:{maxWidth:(0,p.h)(240)}},e("healthToolPNModal.register")))},d.createElement(m.K,{spacing:(0,p.h)(16)},d.createElement(M.I,Object.assign({label:e("newsletter.welcome.description")},x.getInputProps("name"))),d.createElement(TopicSection,{topicsGroup:[...0===o.length&&0===k.length?[{topics:[{component:B}]}]:[],...o.length>0?[{label:e("healthToolPNModal.mainForm.tailorTopicsHeading"),topics:[...o,...0===k.length?[{component:B}]:[]]}]:[],...k.length>0?[{label:e("healthToolPNModal.findMore.chooseFav"),topics:[...k,...k.length>0?[{component:B}]:[]]}]:[]],selectedTopics:[...w],labelProps:{size:r?"p3":"p4",color:"gray.6"},onTopicChange:f,maxSelect:E}))))},ep=(0,d.forwardRef)(function(e,t){var{label:n}=e,a=(0,L._)(e,["label"]);return d.createElement("div",Object.assign({ref:t},a),d.createElement(C.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(H.T,{size:"p3"},n)))}),eu=(0,d.forwardRef)(function(e,t){var{label:n}=e,a=(0,L._)(e,["label"]);return d.createElement("div",Object.assign({ref:t},a),d.createElement(H.T,{size:"p3"},n))}),HistorySection=({history:e,onDelete:t})=>d.createElement(b.k,{wrap:"wrap",gap:8},et()(e,"catId").map(e=>d.createElement(x.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 ${$.t.neutral[4]}`,borderRadius:32,textTransform:"unset"},rightSection:{height:18,cursor:"pointer"}}},d.createElement(H.T,{size:"p4"},e.localName)))),RecentlyViewedSection=({topics:e,onTopicChange:t,isBlock:n=!1,selectedTopics:a,labelProps:i,maxSelect:l=5})=>{let{action:{pushNotifications:r}}=(0,d.useContext)(T.T),[o,s]=(0,d.useState)([]),{t:c}=(0,I.u)();return((0,d.useEffect)(()=>{s(a)},[a.length]),(0,d.useEffect)(()=>{t(o)},[o]),e&&0!==e.length)?d.createElement(m.K,{spacing:12,px:16,mx:-16},d.createElement(H.T,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},i),c("pnTopicSection.recentView")),d.createElement(E.A.Group,{value:o.map(e=>e.catId),onChange:t=>{if(n&&o.lengthe.filter(e=>t.some(t=>e.catId===t)))},multiple:!0},d.createElement(b.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._)(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(M.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(H.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:l,maxSelect:r=5})=>{let{t:o}=(0,I.u)(),[s,c]=(0,d.useState)([]),onSelect=(e,t)=>{if(t)c(t=>t.filter(t=>t.catId!==e.catId));else{if(a){l({type:"danger",title:o("pnTopicSection.maxSelectError.title",{maxSelect:r}),message:o("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,v]=(0,d.useState)(0),[E,C]=(0,d.useState)(0),x=(0,d.useRef)(null),handleMouseUp=()=>{u(!1)};return d.createElement(m.K,{spacing:10},d.createElement(b.k,{justify:"space-between",align:"center",w:"100%"},d.createElement(H.T,Object.assign({size:"s5",color:"gray.4",weight:"semiBold",span:!0},i),o("pnTopicSection.trending"))),d.createElement(g.x,null,d.createElement(f.x,{type:"always",w:"100%",offsetScrollbars:!0,scrollbarSize:4,px:4,viewportRef:x,viewportProps:{onMouseDown:e=>{e.preventDefault(),x.current&&(u(!0),v(e.pageX-x.current.offsetLeft),C(x.current.scrollLeft))},onMouseUp:handleMouseUp,onMouseLeave:handleMouseUp,onMouseMove:e=>{if(e.preventDefault(),!p||!x.current)return;let t=e.pageX-x.current.offsetLeft;x.current.scrollLeft=E-(t-h)*2}},styles:{viewport:{paddingBottom:16}}},d.createElement(g.x,{w:{base:112*e.length+8*(e.length-1)+10}},d.createElement(b.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:l}=e,r=(0,L._)(e,["isLoggedIn","maxSelect","values","labelProps","onChange"]);let{action:{pushNotifications:o}}=(0,d.useContext)(T.T),[s,c]=(0,d.useState)(""),{t:u,locale:h}=(0,I.u)(),b=(0,d.useRef)(null),[v,f]=(0,d.useState)([]),[E,C]=(0,d.useState)([]),[x,y]=(0,d.useState)([]),[k,S]=(0,d.useState)([]),[B,P]=(0,d.useState)(null),[A,N]=(0,d.useState)([]);(0,d.useEffect)(()=>{(0,L.a)(void 0,void 0,void 0,function*(){var e,t;let n=yield(0,T.e)((0,T.h)(eo.GET_NEWSLETTER_CATEGORIES,{_locale:h}),"get"),i=(null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.interested)||[],l=(null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.trending)||[],r=et()([...i,...l],"catId"),o=r.map(e=>Object.assign(Object.assign({},e),{value:e.catId||"",label:e.localName||""}));if(N(o||[]),P((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=l.filter(e=>a.includes(e.catId)).map(e=>Object.assign(Object.assign({},e),{template:"trending"}));S(e),C(t)}})},[t]);let O=(0,d.useMemo)(()=>et()([...v,...E,...k,...x],"catId"),[v,E,k,x]),[j,R]=(0,d.useState)(!1);(0,d.useEffect)(()=>{O.length>=n?R(!0):R(!1),null==l||l(O)},[O]);let onValueChange=e=>(0,L.a)(void 0,void 0,void 0,function*(){var t;let a="default";if(j)o({type:"danger",title:u("pnTopicSection.maxSelectError.title",{maxSelect:n}),message:u("pnTopicSection.maxSelectError.desc")});else{let n=[{key:"trending",array:null==B?void 0:B.trending},{key:"recently",array:null==B?void 0:B.recently},{key:"interested",array:null==B?void 0:B.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:C,recently:y,interested:S,default:f})[a=(null==i?void 0:i.key)||"default"](t=>[...t,...A.filter(t=>e.some(e=>t.catId===e))].map(e=>Object.assign(Object.assign({},e),{template:a}))),null===(t=b.current)||void 0===t||t.blur()}return null});return d.createElement(m.K,Object.assign({spacing:(0,p.h)(16)},r),d.createElement(m.K,{spacing:(0,p.h)(8)},d.createElement(H.T,{size:"p3"},u("pnTopicSection.maxSelectError.detail",{max:n,maxTopic:O.length})),d.createElement(w.NU,{ref:b,maxSelectedValues:3,styles:{wrapper:{overflow:"initial !important"},separator:{padding:16},separatorLabel:{fontWeight:600,fontSize:12,lineHeight:"18px",textTransform:"uppercase",color:$.t.gray[4],"&::after":{display:"none"}},searchInput:{fontSize:"inherit"},input:{paddingRight:16}},nothingFound:d.createElement(H.T,{size:"s4",color:"gray.6"},u("pnTopicSection.notFound")),itemComponent:""===s?ep:eu,size:"lg",placeholder:u("pnTopicSection.plsEnterFavTopics"),data:A,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:[]}),O&&O.length>0&&d.createElement(HistorySection,{history:O,onDelete:e=>{let t={trending:C,recently:y,interested:S,default:f},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==B?void 0:B.trending)||[]).map(e=>Object.assign(Object.assign({},e),{template:"trending"})),selectedTopics:E,onTopicChange:C,isBlock:j,labelProps:i}))),d.createElement(RecentlyViewedSection,{topics:((null==B?void 0:B.recently)||[]).map(e=>Object.assign(Object.assign({},e),{template:"recently"})),selectedTopics:x,onTopicChange:y,isBlock:j,labelProps:i}),d.createElement(TopicSection,{labelProps:i,topicsGroup:[{label:u("pnTopicSection.ppAlsoInterested"),topics:((null==B?void 0:B.interested)||[]).map(e=>Object.assign(Object.assign({},e),{template:"interested"}))}],selectedTopics:k,onTopicChange:S,isBlock:j}))},MoreTopics=()=>{let{t:e}=(0,I.u)(),{action:{pushNotifications:t}}=(0,d.useContext)(T.T),{prevStep:n,formValues:a,submitLoading:i,onSubmit:l,selectCategory:r,maxSelectCategory:o,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(z.B,{fullWidth:!0,variant:"secondary",dataEventCategory:"Newsletter",dataEventAction:"Back Click",dataEventLabel:c,onClick:n},e("healthToolPNModal.back")),d.createElement(z.B,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Next Click",dataEventLabel:c,onClick:()=>{if(0===r.length)return t({type:"danger",title:e("newsletter.error.minTitle"),message:e("newsletter.error.minCotennt")}),!1;null==l||l(a.name)},loading:i},e("healthToolPNModal.next")))},d.createElement(PremiumTopicSelect,{isLoggedIn:u,maxSelect:o,values:a.fitnessTopics,onChange:s,labelProps:{size:"s5",sx:{textTransform:"uppercase"}}}))},Result=()=>{let{t:e}=(0,I.u)(),{close:t,selectCategory:n,onRegisterSuccess:a,currentUrl:i,finishLabelOnResult:l,disclaimerText:r}=(0,d.useContext)(ed);return(0,d.useEffect)(()=>()=>{setTimeout(()=>{null==a||a()},400)},[]),d.createElement(Layout,{heading:e("healthToolPNModal.heading"),stickyActions:d.createElement(z.B,{fullWidth:!0,sx:{maxWidth:(0,p.h)(300)},dataEventCategory:"Newsletter",dataEventAction:"Continue Reading Click",dataEventLabel:i,onClick:()=>{t()}},l||e("healthToolPNModal.finish"))},d.createElement(m.K,null,d.createElement(b.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(H.T,{size:"p3"},r||e("pnModal.disclaimer"))),d.createElement(F.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:l,close:r,finishLabelOnResult:o,onRegisterSuccess:s,disclaimerText:c})=>{let{t:p,locale:u}=(0,I.u)(),{action:{pushNotifications:h}}=(0,d.useContext)(T.T),g=k.C.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),m=k.C.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),[b,v]=(0,d.useState)([]),[f,E]=(0,d.useState)([]),[C,x]=(0,d.useState)(0),[w,B]=(0,d.useState)({name:"",fitnessTopics:[]}),[P,A]=(0,d.useState)(!1),lastStep=()=>x(2),N=(0,d.useCallback)(e=>(0,L.a)(void 0,void 0,void 0,function*(){try{A(!0),yield(0,T.e)((0,T.h)(eo.POST_SUBSCRIPTION,{website_url:(0,T.i)(u)}),"post",{headers:{"Content-Type":"application/json"},method:"POST",data:{ga_client_id:X.Z.get(S.G),client_ip:window.clientIP||"",user_info:Object.assign(Object.assign({},a.userInfo),{name:e||w.name,type_subscription:1}),domain:Z.v[u||en.L.Vietnam],category:f,perferred:a.preferredTopics.map(({id:e})=>({id:e}))}}),A(!1),yield(0,T.e)((0,T.j)(ec.UPDATE_SUBSCRIPTION),"post",{headers:{"Content-Type":"application/json"},method:"PUT",data:{subscription:1}}),lastStep()}catch(e){console.log({err:e}),A(!1),h({title:p("notification.comment.somethingWrong"),message:"",type:"danger"})}}),[w,f]);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:l,close:r,pnSuggestCategory:n,nextStep:()=>x(e=>e<3?e+1:e),prevStep:()=>x(e=>e>0?e-1:e),lastStep,categoryLibs:b,setCategoryLibs:v,selectCategory:f,setSelectCategory:E,formValues:w,setFormValues:B,maxSelectCategory:5,submitLoading:P,onSubmit:N,onRegisterSuccess:s,finishLabelOnResult:o,disclaimerText:c}},d.createElement(SideBannerModal,{isMobile:e,desktopBanner:k.C.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),mobileBanner:k.C.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),modalRatio:{width:960,height:588},desktopBannerRatio:{width:384,height:588},opened:l,onClose:r,zIndex:305,closeProps:{dataEventCategory:"Newsletter",dataEventAction:"Close Click",dataEventLabel:i}},d.createElement(y.v,{active:C,onStepClick:x,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,I.u)(),{isMobile:t,isLoggedIn:n,currentUrl:a,acquisitionInfo:i,categoryIds:l,state:r,setState:o,settings:s,submitHandler:p,subcribeHealthStatus:u,showPNModal:h,setShowPNModal:g,setIsBack:m}=(0,d.useContext)(er),[b,v]=(0,d.useState)([]),[f,E]=(0,d.useState)(h);(0,d.useEffect)(()=>{(0,L.a)(void 0,void 0,void 0,function*(){var t,n;let a=yield(0,T.e)((0,T.h)(eo.GET_NEWSLETTER_CATEGORIES,{_locale:e}),"get"),i=(null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.interested)||[],r=(null===(n=null==a?void 0:a.data)||void 0===n?void 0:n.trending)||[],o=[...i,...r];v(o.filter(e=>l.includes(Number(e.catId))))})},[]);let C=(0,d.useRef)([]);return(0,d.useEffect)(()=>{let e=(null==u?void 0:u.value)||"",t=e.split("|").filter(Boolean),n=e;C.current.push(u),t.length>1&&(null!==C.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;o(a)},[u]),(0,d.useEffect)(()=>{E(h)},[h]),(null==r?void 0:r.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:b,opened:f,close:()=>{var e;E(!1),g(!1),setTimeout(()=>{var e;(null===(e=r.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&o({action:c.Hide})},400),(null===(e=r.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&o({action:c.Hide})},onRegisterSuccess:()=>E(!1)})):null},SurveyOrPremiumBanner=({type:e,articleId:t=0,categoryIds:n=[],isMarketing:a,isSurveyType:i,hasPremiumBanner:l,currentUrl:r,isMobile:o,subcribeHealthStatus:s,setShouldAcquisitionModalOpen:p,onValueChange:u,source:h="discover",Wrapper:m})=>{let{t:b}=(0,I.u)(),{data:{userInfo:v}}=(0,d.useContext)(T.T),f=!!(null==v?void 0:v.id),[E,C]=(0,d.useState)(null),[x,w]=(0,d.useState)(),[y,k]=(0,d.useState)(""),[S,B]=(0,d.useState)(!1),[P,L]=(0,d.useState)(!1),A=(0,d.useMemo)(()=>ei[e],[]),N=FLOW(b,r)[A],O=null==N?void 0:N.submitHandler,getMappingMultiValue=e=>{let t="",n=e.split("|");return 1===n.length?e:(Object.keys(O).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)},j=m||g.x,handleShowPNBannerFlowWhenLogin=()=>l&&(null==v?void 0:v.subscription)!==1?d.createElement(PnBannerEle,null):null;return(0,d.useEffect)(()=>{f&&C({userInfo:v,preferredTopics:ea,healthTopics:[]})},[f]),d.createElement(er.Provider,{value:{settings:N,submitHandler:O,type:e,surveyType:A,value:y,setValue:k,isMobile:o,isLoggedIn:f,isMarketing:a,hasPremiumBanner:l,currentUrl:r,acquisitionInfo:E,categoryIds:n,subcribeHealthStatus:s,articleId:t,onValueChange:u,state:x,setState:w,handleClickOption:e=>{let t=getMappingMultiValue(e);if(t){let n=O[t];n.action===c.ShowPremiumModal?l?(B(!0),w(Object.assign(Object.assign({},x),{actionParams:{hideBannerWhenClose:n.action===c.ShowPremiumModal}}))):(w({action:c.Hide}),null==u||u(e)):(w(n),null==u||u(e))}},showPNModal:S,setShowPNModal:B,source:h,Outside:j,isBack:P,setIsBack:L,minHeight:180,setShouldAcquisitionModalOpen:p}},void 0!==s?f?i&&N?(()=>{let e=O[(null==s?void 0:s.value)||""];return(null==e?void 0:e.action)===c.ShowPremiumModal?handleShowPNBannerFlowWhenLogin():d.createElement(SurveyBanner,null)})():handleShowPNBannerFlowWhenLogin():l?d.createElement(PnBannerEle,null):null:null)}},deTL:function(e,t,n){n.d(t,{U:function(){return UserAvatar}});var a=n("mHfz"),i=n("q1tI"),l=n("R7z5"),r=n("rBCA"),o=n("iBNF");let s=r.Z.div` width: ${e=>e.size||40}px; height: ${e=>e.size||40}px; flex-shrink: 0; cursor: pointer; img { border-radius: 50%; } .avatar { width: 100%; height: 100%; object-fit: cover; } .avatar-default { display: flex; align-items: center; justify-content: center; background-color: ${o.r.colors.secondaryBase}; border-radius: 50%; color: white; font-size: 1em; font-weight: bold; line-height: 1; } &[data-is-marrybaby='true'] { .avatar-default { background-color: ${o.r.mbColors.pink}; } } `,UserAvatar=e=>{var{className:t,isMarryBaby:n,style:r,avatar:o,username:c,size:d}=e,p=(0,a._)(e,["className","isMarryBaby","style","avatar","username","size"]);let{data:{env:{isMarryBaby:u}}}=(0,i.useContext)(l.T),[h,g]=(0,i.useState)(!1);return i.createElement(s,Object.assign({"data-is-marrybaby":"boolean"==typeof n?n:u,className:t,style:r,size:d},p),o&&!h?i.createElement("img",{loading:"lazy",src:o,className:"avatar",alt:"avatar",onError:()=>{h||g(!0)}}):i.createElement("div",{className:"avatar avatar-default"},c&&(null==c?void 0:c.length)>0?c[0].toUpperCase():"A"))}},gfxy: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"),l=n("iBNF"),r=n("gb+m"),o=n("xXM3"),s=n.n(o),c=n("yPD6"),d=n("HKYo");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 ${l.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(r.T,{size:"base",color:l.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 ${l.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: ${l.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: ${l.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 b=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(b,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)))))},v=i.Z.div` display: flex; padding: 1rem; width: 100%; justify-content: space-between; `,f=i.Z.div` display: flex; flex-direction: column; gap: 2px; `,DoctorInfoExpertise=e=>{let{name:t,specialty:n,experience:i,profileImage:l}=e;return a.createElement(v,null,a.createElement(f,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:l,alt:t,style:{width:"4.5rem",height:"4.5rem",borderRadius:"50%",objectFit:"cover",flexShrink:0}}))}},wIzj: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"}}}))},r0YF:function(e,t,n){n.d(t,{L:function(){return LabelSorting}});var a,i,l=n("q1tI"),r=n("HKYo"),o=n("R7z5"),s=n("dBRa");(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,l.useContext)(o.T);return l.createElement(s.L,{label:a,rightLabel:l.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:l.createElement("div",{style:{display:"flex"}},l.createElement(r.T,{style:{display:"flex",alignItems:"center",fontWeight:"normal",marginRight:12},size:"p4"},i),l.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})}},puXO: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}}},"70a7":function(e,t,n){n.d(t,{L:function(){return r}});var a=n("q1tI"),i=n("W9uT"),l=n("yPD6");let r=(0,a.memo)(({type:e,width:t,height:n,isLight:r})=>{let o=(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}=o||{};return a.createElement(l.I,{alt:`${e} logo`,className:"main-logo-icon",src:r&&p||s,style:{width:c,height:d}})})}}]);