"use strict";(self.webpackChunkhhgDiscoverV1=self.webpackChunkhhgDiscoverV1||[]).push([[8431],{sWGF:function(e,t,i){i.d(t,{b:function(){return LandingPageBanner}});var n=i("BGKE"),r=i("a5L+"),a=i("rBCA"),o=i("CL9C");let l=(0,a.A)("a",{target:"e1cacsnf0"})("position:relative;display:block;text-decoration:none;img{",o.M.mbUp,"{aspect-ratio:1920 / 550;width:100%;height:auto;object-fit:cover;object-position:center;}",o.M.mbDown,"{width:100%;height:auto;}}"),LandingPageBanner=e=>{let{banner:t,className:i,onClick:a}=e,o=(0,r.a)();return(!o||(null==t?void 0:t.mobile))&&(o||(null==t?void 0:t.desktop))?(0,n.Y)(l,{className:i,href:null==t?void 0:t.url,onClick:(null==t?void 0:t.url)?void 0:a,target:(null==t?void 0:t.url)?"_blank":void 0,enableScroll:!(null==t?void 0:t.url)&&void 0!==a,children:(0,n.Y)("img",{src:o?null==t?void 0:t.mobile:null==t?void 0:t.desktop,alt:"banner",loading:"lazy"})}):null}},qwwa:function(e,t,i){i.d(t,{p:function(){return ClickableBanner}});var n=i("BGKE"),r=i("+OUp"),a=i("CL9C"),o=i("P+HS"),l=i("oTwY"),s=i("vH4S"),d=i("dDsW"),c=i("mCqF"),u=i("q6HN"),p=i("bg63"),m=i("ufNQ"),h=i("wA0V"),g=i("a5L+"),b=i("CWxQ"),f=i("VnHZ"),v=i("iBNF"),T=i("U+Ez"),x=i("Pvbb"),E=i("7ndH"),w=i("3CQ3"),_=i("sYNu"),I=i("z6SF"),S=i("HVmw"),N=i("AG8C"),C=i("G82q"),y=i("NLe/"),A=(0,s.createStyles)((e,t)=>{let{bgSessionColor:i,bannerColor:n}=t;return{root:{},banner:{padding:(0,s.rem)(12),backgroundColor:n,...(i===n||"#ffffff"===n&&"transparent"===i)&&{border:"1px solid ".concat(e.colors.neutral[1])},borderRadius:(0,s.rem)(12),height:"100%",[e.fn.smallerThan("sm")]:{padding:(0,s.rem)(8)}},bannerIframe:{},title:{display:"flex",alignItems:"center",justifyContent:"center",flexGrow:1," > *":{overflow:"hidden",textOverflow:"ellipsis",display:" -webkit-box","-webkit-line-clamp":2," -webkit-box-orient":"vertical"},[e.fn.smallerThan("sm")]:{height:"initial"}}}});let U={white:"#ffffff","yellow-600":v.w.colors.yellow600,"violet-600":v.w.colors.violet600,"green-600":v.w.colors.green600,primary:v.w.colors.primaryBase,none:"transparent"},Banner=e=>{var t,i,a;let{banner:o,bgSessionColor:l,hasLeavePageConfirm:d,ratio:c=336/356,keepNatureRatio:u,requireLogin:p,openChatWoot:m,onItemClick:h,className:g,classNames:b,styles:v,...B}=e,{asPath:O}=(0,N.$)(),{detectPage:R,keyID:L,activeTheme:M}=(0,r.useContext)(w.d),{isCarePath:k}=R,{url:D="",title:G="",banner:P,expired_day_status:Y,card_color:z}=o,H=U[z],W=H&&"transparent"!==H||"transparent"!==l?H:"#ffffff",{classes:F,cx:V}=A({bannerColor:W,bgSessionColor:l},{name:"ClickableBannerItem",styles:v,classNames:b}),{handleClick:j}=(0,S.k)(D),X=(0,s.useMantineTheme)(),{state:{isLoggedIn:K}}=(0,r.useContext)(f.B),{encodedGaId:J}=(0,_.V)(),Q=(0,I.m)([D]),{isExternalUrl:Z}=(null==Q?void 0:Q[0])||{},q=(0,r.useRef)(null),$=k?(0,y.Ny)(D,J):D,ee=(0,r.useMemo)(()=>"carepathvn"===L,[L]),et=(0,r.useMemo)(()=>(0,C.w)(G.toLowerCase().replace(/\s/g,"")),[]),ei=(0,r.useCallback)((e,t)=>{let i=new URLSearchParams(window.location.search);"add"===e?i.set(t,"true"):i.delete(t);let n=i.toString();window.history.replaceState({},"","".concat(O.split("?")[0]).concat(""===n?"":"?").concat(i.toString()))},[]);return P?(0,n.FD)(n.FK,{children:[(0,n.Y)(s.Box,{component:Y||m?"div":"a",href:$,target:Z?"_blank":"_self",className:V("pointer-event-child-none",F.root,g),"data-event-label":$,...B,onClick:e=>{var t,i,n;if(Object.keys(o.leadgencode||{}).length>0)e.preventDefault(),ee&&ei("add",et),null===(t=q.current)||void 0===t||t.openModal();else if(!Z&&D.includes("#")){e.preventDefault();let t=D.split("#");null==h||h(t[t.length-1])}else p&&!K?(e.preventDefault(),(0,x.YA)(window.location.href)):d?j(e):m&&(null===(i=window)||void 0===i?void 0:i.$chatwoot)&&(e.preventDefault(),null===(n=window)||void 0===n||n.$chatwoot.toggle("open"))},children:(0,n.Y)("div",{className:F.banner,children:(0,n.FD)(s.Stack,{ta:"center",justify:"space-between",sx:e=>({height:"100%",gap:(0,s.rem)(8),[e.fn.largerThan("sm")]:{gap:(0,s.rem)(16)}}),children:[(0,n.Y)("div",{className:F.title,children:(0,n.Y)(T.H,{tag:"h5",color:["white","none"].includes(z)?X.colors.gray[8]:"#ffffff",children:G})}),u?(0,n.Y)("img",{src:P,alt:"",loading:"lazy"}):(0,n.Y)(s.AspectRatio,{className:F.bannerIframe,ratio:c,sx:{borderRadius:8,overflow:"hidden",...Y&&{filter:"grayscale(1)"}},children:(0,n.Y)("img",{src:P,alt:"",loading:"lazy"})})]})})}),Object.keys(o.leadgencode||{}).length>0&&(0,n.Y)(E.A,{isModal:!0,desktopModalType:"fullscreen",ref:q,data:{isSkippable:!0,campaignCode:null===(t=o.leadgencode)||void 0===t?void 0:t.code,banner:{desktop:null===(i=o.leadgencode)||void 0===i?void 0:i.image_desktop,mobile:null===(a=o.leadgencode)||void 0===a?void 0:a.image},thankYouMessage:(()=>{var e,t,i,n,r,a;let l=JSON.parse((null===(t=o.leadgencode)||void 0===t?void 0:null===(e=t.extra_fields)||void 0===e?void 0:e.listBlockThankyou)||null);return{title:(null==l?void 0:null===(n=l.find(e=>"TitleBlock"==e.name))||void 0===n?void 0:null===(i=n.data)||void 0===i?void 0:i.value)||"",description:(null==l?void 0:null===(a=l.find(e=>"SubtitleBlock"==e.name))||void 0===a?void 0:null===(r=a.data)||void 0===r?void 0:r.value)||""}})(),campaigns:o.leadgencode},primaryColor:null==M?void 0:M.primary,onCloseForm:()=>{D&&window.open(D)},onDone:()=>{ee&&ei("remove",et)}})]}):null};var B=i("QdPe");let BannerList=e=>{let{listBanners:t,isExternalLinkChat:i=!1,isChatWoot:r=!1,isPillarType:a=!1,commonBannerProps:o,bannerProps:l,classes:s,currentUrl:d,embedChatwootClick:c,onItemClick:u,applyCarousel:p=!1}=e;return t&&0!==t.length?(0,n.Y)(B.CL,{showFullSlide:!0,lengthToCarouselDesktop:5,gapDesktop:18,disableCarousel:!p,children:(0,n.Y)(B.CL.Slider,{arrow:!0,classNames:{listing:s.bannerList,itemWrapper:s.bannerItem},styles:e=>({carouselViewport:{paddingTop:4,paddingBottom:10,paddingLeft:4,[e.fn.smallerThan("sm")]:{paddingLeft:16,paddingRight:16}},progressRoot:{background:"transparent",position:"relative",[e.fn.smallerThan("sm")]:{width:"calc(100% - 48px)",marginLeft:16},"&:before":{position:"absolute",content:'""',top:0,left:0,right:0,bottom:0,background:"#fff",opacity:.25}},progressBar:{background:e.colors.neutral[3]}}),children:t.map((e,t)=>{var s,p,m;return(0,n.Y)(Banner,{className:a?"with-shadow":"",onItemClick:u,banner:e,openChatWoot:!i&&(c||(null===(p=e.url)||void 0===p?void 0:null===(s=p.endsWith)||void 0===s?void 0:s.call(p,"#chatwoot"))),...o,...l,...r&&{"data-event-category":"Chatwoot Chat","data-event-action":"Start Chat - Middle Page","data-event-label":d},styles:e=>({banner:{...a&&{boxShadow:e.shadows.sm}}})},"".concat(null!==(m=e.title)&&void 0!==m?m:"banner","-").concat(t))})})}):null};var O=(0,s.createStyles)((e,t)=>{let{listLength:i,bgColor:n,embedChatwootClick:r,isPillarType:a}=t;return{root:{backgroundColor:n||e.colors.blue[0],paddingTop:(0,s.rem)(80),paddingBottom:(0,s.rem)(80),[e.fn.smallerThan("sm")]:{paddingTop:(0,s.rem)(40),paddingBottom:(0,s.rem)(40)},...a&&{overflow:"hidden"}},inner:{},header:{textAlign:"center"},heading:{},desc:{...r&&{[e.fn.largerThan("sm")]:{maxWidth:(0,s.rem)(744),margin:"0 auto"}}},bannerItem:{flex:"inherit",width:1===i?"100%":"calc((100% - 16px)/2)",[e.fn.largerThan("sm")]:{width:1===i?(0,s.rem)(648):"calc((100% - 72px)/4)"},...r&&{width:"100%",[e.fn.largerThan("sm")]:{width:"calc((100% - 48px)/2)",maxWidth:(0,s.rem)(552)}},[e.fn.smallerThan("sm")]:{...a&&{width:280,flex:"none"}}},bannerIframe:{},bannerItemTitle:{...r&&{display:"none"}},bannerItemWrapper:{...r&&{background:"transparent"}},bannerList:{display:"flex",flexWrap:"wrap",gap:(0,s.rem)(16),justifyContent:a||i>=4?"flex-start":"center",[e.fn.largerThan("sm")]:{gap:(0,s.rem)(24)},[e.fn.smallerThan("sm")]:{...a&&{flexWrap:"nowrap",overflowX:"auto",paddingTop:5,paddingLeft:16,paddingRight:16,paddingBottom:5,"::-webkit-scrollbar":{width:0,height:0},"::-webkit-scrollbar-track":{background:"transparent"},"::-webkit-scrollbar-thumb":{background:"transparent"}}}},disclaimer:{[e.fn.largerThan("sm")]:{width:1===i?(0,s.rem)(648):2===i?"calc((100% - 24px)/2)":"100%",margin:"0 auto"}},bubbleRoot:{position:"relative"},bubbleInside:{position:"absolute",left:(0,s.rem)(-140),top:(0,s.rem)(-60),border:"1px solid #029394",borderRadius:"64%",padding:(0,s.rem)(16),width:(0,s.rem)(250),height:(0,s.rem)(80),cursor:"pointer",".chatwood-icon":{width:(0,s.rem)(40)}},bubbleText:{textTransform:"uppercase",color:"#029394"}}});let ClickableBanner=e=>{var t,i;let{embedChatwootClick:v,chatToken:T,avatarIcon:x,banner:E,bannerProps:w,bgColor:_,hasDisclaimer:I,applyCarousel:S,requireLogin:N,onItemClick:C,styles:y,classNames:A,applyH1:U,openAllAccordion:B}=e,{formatMessage:R}=(0,d.A)(),L=(0,g.a)(),M=(0,h.m)(),{dispatch:k}=(0,r.useContext)(f.B),D=E.list_banners,G=!!(null===(i=E.listing)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.keyPillars),{classes:P}=O({listLength:D.length,bgColor:_,embedChatwootClick:v,isPillarType:G},{name:"ClickableBanner",styles:y,classNames:A}),Y=(0,r.useMemo)(()=>null==T?void 0:T.startsWith("https"),[]),[z,H]=(0,r.useState)(B?E.listing.map((e,t)=>t.toString()):"0");if((0,r.useEffect)(()=>{!Y&&T&&k({type:b.Q.SET_CHATWOOT_WEBSITE_TOKEN,payload:T})},[T]),(0,r.useEffect)(()=>{let e=document.getElementsByTagName("body")[0];return x&&(e.classList.add("replace-chatwoot-icon"),document.documentElement.style.setProperty("--chatwoot-bg","url('".concat(x,"')"))),()=>{e.classList.remove("replace-chatwoot-icon")}},[x]),!E)return null;let W={classNames:{banner:P.bannerItemWrapper,bannerIframe:P.bannerIframe,title:P.bannerItemTitle},requireLogin:N,"data-event-category":"Spotlight","data-event-action":"Banners Click",bgSessionColor:_,keepNatureRatio:v,ratio:1===D.length?16/9:void 0},renderList=e=>{let{listBanners:t,isExternalLinkChat:i,isChatWoot:r,isPillarType:o}=e,l={items:t.map(e=>(0,n.Y)(Banner,{className:o?"with-shadow":"",onItemClick:C,banner:e,openChatWoot:!i&&(v||e.url.endsWith("#chatwoot")),...W,...w,...r&&{"data-event-category":"Chatwoot Chat","data-event-action":"Start Chat - Middle Page","data-event-label":M},styles:e=>({banner:{...o&&{boxShadow:e.shadows.sm}}})},e.title))};return(0,n.Y)(n.FK,{children:S?(0,n.Y)(c.A,{containScroll:"trimSnaps",slideSize:"25%",breakpoints:[{maxWidth:a.B.BREAK_POINT_TABLET,slideSize:"100%",slideGap:16}],slideGap:24,align:"start",withIndicators:!L,withControls:!0,alwayShowArrow:!0,arrowSize:40,styles:e=>({indicators:{position:"static",paddingTop:24,[e.fn.smallerThan("sm")]:{display:"none"}}}),children:(0,n.Y)(c.A.Body,{children:(0,n.Y)(m.A,{...l,breakpoints:{base:{itemsPerGroup:1,GroupWrapper:e=>(0,n.Y)(c.A.Slide,{children:(0,n.Y)(s.Box,{children:e})})},md:{itemsPerGroup:1,GroupWrapper:e=>(0,n.Y)(c.A.Slide,{children:(0,n.Y)(s.Box,{children:e})})}}})})}):(0,n.Y)(m.A,{...l,itemsPerGroup:t.length,GroupWrapper:e=>(0,n.Y)(s.Grid,{justify:"center",gutter:24,children:e}),ItemWrapper:e=>(0,n.Y)(s.Grid.Col,{span:1===t.length&&T?12:6,md:1===t.length&&T?6:3,sx:{img:{maxHeight:460,maxWidth:"100%",margin:"0 auto"}},children:e})})})},content=e=>{var t,i,r,d;let{isExternalLinkChat:c=!1,isChatWoot:m=!1}=e;return(0,n.Y)(s.Box,{className:P.root,children:(0,n.Y)(u.m,{className:P.inner,children:(0,n.FD)(s.Stack,{w:"100%",sx:e=>({gap:(0,s.rem)(16),[e.fn.largerThan("sm")]:{gap:(0,s.rem)(24)}}),children:[(E.icon||E.title||E.description)&&(0,n.FD)(s.Stack,{spacing:12,className:P.header,children:[E.icon&&(0,n.Y)(s.Box,{sx:{backgroundColor:"#ffffff",width:80,height:80,borderRadius:"50%",padding:6,[a.M.mbDown]:{width:64,height:64}},children:(0,n.Y)("img",{src:E.icon,alt:"",loading:"lazy"})}),E.title&&(0,n.Y)(o.Text,{size:"h2",as:U?"h1":"h2",weight:"semiBold",variant:"primary",className:P.heading,children:E.title}),E.description&&(0,n.Y)(o.Text,{size:"p3",className:P.desc,children:E.description})]}),(null===(i=E.listing)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.keyPillars)?(0,n.Y)(s.Box,{sx:e=>({[e.fn.smallerThan("sm")]:{margin:"0 -16px"}}),children:(0,n.Y)(s.Accordion,{value:z,onChange:e=>H(e),multiple:B,chevron:(0,n.Y)(l.A,{size:L?18:24}),styles:e=>({label:{padding:"12px 16px"},control:{paddingLeft:0,paddingRight:10,"&:hover":{backgroundColor:"transparent"},'&[data-active="true"]':{".label-text":{fontWeight:600}}},content:{paddingLeft:1,paddingRight:0,[e.fn.smallerThan("sm")]:{padding:0,paddingBottom:10}},item:{borderBottom:"1px solid ".concat(e.colors.neutral[1]),"&:last-of-type":{borderBottom:0}},chevron:{"&[data-rotate]":{transform:"rotate(45deg)"}}}),children:E.listing.map((e,t)=>{var i,r;return(0,n.FD)(s.Accordion.Item,{value:String(t),children:[(0,n.Y)(s.Accordion.Control,{"data-event-category":"Service Connection","data-event-action":"Expand Banner - ".concat(null===(i=e.keyPillars)||void 0===i?void 0:i.name),"data-event-label":M,className:"pointer-event-child-none",children:(0,n.Y)(o.Text,{size:"p3",className:"label-text",children:null===(r=e.keyPillars)||void 0===r?void 0:r.name})}),(0,n.Y)(s.Accordion.Panel,{children:(0,n.Y)(s.Box,{sx:e=>({minHeight:340,[e.fn.smallerThan("sm")]:{minHeight:435}}),children:("string"==typeof z?z===String(t):!!Array.isArray(z)&&z.includes(String(t)))&&(0,n.Y)(BannerList,{listBanners:e.banners,isExternalLinkChat:c,isChatWoot:m,isPillarType:G,commonBannerProps:W,bannerProps:w,classes:P,currentUrl:M,embedChatwootClick:v,onItemClick:C,applyCarousel:S},"banner-list-".concat(t))})})]},t)})})}):renderList({isExternalLinkChat:c,isChatWoot:m,listBanners:null===(d=E.listing)||void 0===d?void 0:null===(r=d[0])||void 0===r?void 0:r.banners}),I&&(0,n.Y)(p.M,{classNames:{root:P.disclaimer},title:R({id:"confirmLeavePage.title",defaultMessage:"Leaving HHG page"}),content:R({id:"confirmLeavePage.content",defaultMessage:"As your trusted health partner, we want to ensure you have the information you need to safeguard your health. Are you sure you want to leave this page?"})})]})})})};return L||!v||Y?content({isExternalLinkChat:!0}):(0,n.Y)(s.Tooltip.Floating,{label:(0,n.Y)(s.Box,{className:P.bubbleRoot,children:(0,n.Y)(s.Stack,{className:P.bubbleInside,align:"center",justify:"center",children:(0,n.Y)(o.Text,{size:"s2",className:P.bubbleText,children:R({id:"carePath.cursorChat.message",defaultMessage:"Chat miễn ph\xed ngay"})})})}),styles:{tooltip:{transition:"all 0.8s cubic-bezier(0.2, 0.9, 0.3, 1)",background:"transparent"}},children:(0,n.Y)(s.Box,{"data-event-category":"Chatwoot Chat","data-event-action":"Start Chat - Middle Page","data-event-label":M,className:"pointer-event-child-none",onClick:()=>{var e,t;return Y?window.open(T):null===(t=window)||void 0===t?void 0:null===(e=t.$chatwoot)||void 0===e?void 0:e.toggle("open")},sx:{cursor:"pointer",overflow:"hidden"},children:content({isChatWoot:!0})})})}},BlBm:function(e,t,i){i.d(t,{Zw:function(){return s},ae:function(){return l},c3:function(){return d},mo:function(){return u},sb:function(){return p},vs:function(){return c}});var n=i("rBCA"),r=i("iBNF"),a=i("CL9C"),o=i("sWGF");let l=(0,n.A)("div",{target:"e1ri0os90"})("overflow:visible;min-height:100vh;.banner{background-color:",r.w.colors.gray100,";}#div-gpt-ad-home-top,#div-gpt-ad-home-sidebar1,#div-gpt-ad-home-sidebar2{div{display:flex;overflow:hidden;max-width:100%;justify-content:center;}}margin-bottom:80px;.html-div{color:",r.w.colors.gray800,";&[data-size='small']{font-size:16px;",a.M.mbUp,"{font-size:18px;}}&[data-size='medium']{font-size:19px;",a.M.mbUp,"{font-size:22px;}}&[data-size='large']{font-size:24px;",a.M.mbUp,"{font-size:27px;}}",a.M.mbUp,"{margin:32px 0px;font-size:18px;font-weight:normal;letter-spacing:-0.2px;line-height:32px;}",a.M.mbDown,"{font-weight:normal;font-size:16px;line-height:28px;}p{margin-bottom:24px;}}.health-tool-container{background-color:",r.w.colors.neutral50,";",a.M.mbDown,"{padding:0;}}/* iframe{width:100%;max-width:100%;}*/\n\n ",a.M.mbUp,"{.super-content-container{max-width:768px;text-align:justify;}.health-tool-container{padding:24px;max-width:768px;}}.article-bottom-ad{",a.M.mbDown,"{margin-bottom:var(--mobile-bottom-height);@supports (margin-bottom:env(safe-area-inset-bottom)){margin-bottom:calc(\n env(safe-area-inset-bottom) + var(--mobile-bottom-height)\n );}}}"),s=(0,n.A)("div",{target:"e1ri0os91"})("overflow:visible;position:relative;min-height:100vh;.banner{background-color:",r.w.colors.gray100,";}#div-gpt-ad-home-top,#div-gpt-ad-home-sidebar1,#div-gpt-ad-home-sidebar2{div{display:flex;overflow:hidden;max-width:100%;justify-content:center;}}margin-bottom:80px;.html-div{color:",r.w.colors.gray800,";&[data-size='small']{font-size:16px;",a.M.mbUp,"{font-size:18px;}}&[data-size='medium']{font-size:19px;",a.M.mbUp,"{font-size:22px;}}&[data-size='large']{font-size:24px;",a.M.mbUp,"{font-size:27px;}}margin:32px 0px;font-size:18px;font-weight:normal;letter-spacing:-0.2px;line-height:32px;",a.M.mbDown,"{font-weight:normal;font-size:16px;line-height:28px;}p{margin-bottom:24px;}}.health-tool-container{background-color:",r.w.colors.neutral50,";",a.M.mbDown,"{padding:0;}}/* iframe{width:100%;max-width:100%;}*/\n\n ",a.M.mbUp,"{.super-content-container{max-width:768px;text-align:justify;}.health-tool-container{padding:24px;max-width:768px;}.health-concern-container{max-width:768px;}}"),d=(0,n.A)("div",{target:"e1ri0os92"})("position:relative;overflow:visible;width:100%;background-color:",r.w.colors.white,";.trending-tab{position:sticky;z-index:2;top:0;width:100%;border-bottom:none;background-color:",r.w.colors.white,";& > ul{width:100%;}& > ul > li > div > p{",a.M.mbUp,"{font-size:",r.w.sizes.fsHeading6,";}}",a.M.mbUp,"{padding:25px 0 8px;}",a.M.mbDown,"{padding:4px 0 0;}& > div{",a.M.mbUp,"{padding:0 16px;}}}&[data-is-top-bar-appears='true']{.trending-tab{top:64px;transition:top 0.5s;}}&[data-is-top-bar-appears='false']{.trending-tab{top:0;transition:top 0.5s;}}"),c=(0,n.A)("div",{target:"e1ri0os93"})("display:flex;min-width:100%;max-width:400px;height:100%;flex-direction:column;padding:0 24px;border-radius:",r.w.borderRadius,";filter:drop-shadow(0px 4px 8px rgba(0,0,0,0.04)),drop-shadow(0px 0px 2px rgba(0,0,0,0.06)),drop-shadow(0px 0px 1px rgba(0,0,0,0.04));"),u=(0,n.A)("div",{target:"e1ri0os94"})("position:absolute;z-index:10;top:80px;left:50%;overflow:visible;width:0;height:100%;",a.M.mbUp,"{.action-bar{top:min(6rem + 16px,100vh / 4 + 16px);margin-left:-460px;}}"),p=(0,n.A)(o.b,{target:"e1ri0os95"})()},sYNu:function(e,t,i){i.d(t,{V:function(){return useGetEncodedGaId}});var n=i("+OUp"),r=i("p46w"),a=i.n(r),o=i("9brV"),l=i("dnor");function useGetEncodedGaId(){let[e,t]=(0,n.useState)(""),[i,r]=(0,n.useState)("");return(0,n.useEffect)(()=>{if(a().get(o.pJ)){let e=a().get(o.pJ);if(e){let i=btoa(e);t(i),r(e)}}else(0,l.jU)({condition:()=>!!a().get(o.pJ),finished:()=>{let e=a().get(o.pJ);if(e){let i=btoa(e);t(i),r(e)}}})},[]),{encodedGaId:e,gaId:i}}},"PAs/":function(e,t,i){var n,r,a,o,l,s,d,c,u,p;i.d(t,{Ch:function(){return n},RS:function(){return l},XG:function(){return a},Z6:function(){return r},rQ:function(){return o},sR:function(){return m},zc:function(){return h}}),(s=n||(n={}))[s.HEAD=0]="HEAD",s[s.TAIL=1]="TAIL",s[s.MIDDLE=2]="MIDDLE",s[s.CONNECT=3]="CONNECT",s[s.SSO=4]="SSO",s[s.MULTIPLE=5]="MULTIPLE",(d=r||(r={}))[d.UNDEFINED=-1]="UNDEFINED",d[d.TEXT=0]="TEXT",d[d.IMAGE=1]="IMAGE",d[d.FORM=2]="FORM",d[d.CONDITION=3]="CONDITION",d[d.POLL=4]="POLL",d[d.FINAL_STANDARD=5]="FINAL_STANDARD",d[d.FINAL=6]="FINAL",d[d.FINAL_THANK_YOU=7]="FINAL_THANK_YOU",d[d.RATING=8]="RATING",d[d.REACTION=9]="REACTION",d[d.REVIEW=10]="REVIEW",d[d.RESULT_POLL=11]="RESULT_POLL",d[d.RESULT_RATING=12]="RESULT_RATING",d[d.RESULT_REACTION=13]="RESULT_REACTION",d[d.OTP=14]="OTP";let m=[6,5,7];(c=a||(a={})).BOT_TEXT="bot-text",c.BOT_IMAGE="bot-image",c.BOT_BACKGROUND_IMAGE="bot-background-image",c.BOT_BUTTON="bot-button",c.BOT_URL="bot-url",c.BOT_RECALCULATE="bot-recalculate",c.BOT_BOOKING="bot-booking",c.BOT_MAIN_TITLE="bot-main-title",c.BOT_MAIN_IMAGE="bot-main-image",c.BOT_MAIN_BODY="bot-main-body",c.BOT_MAIN_BUTTON="bot-main-button",c.BOT_SUB_TITLE="bot-sub-title",c.BOT_SUB_BODY="bot-sub-body",c.BOT_LANDING_PAGE_URL="bot-landing-page-url",c.BOT_LANDING_PAGE_BUTTON="bot-landing-page-button",c.BOT_RISK_SCREEN="bot-risk-screen",c.BOT_RELATED_ARTICLE="bot-related-article",c.THANK_YOU_IMAGE="thank-you-image",c.THANK_YOU_TITLE="thank-you-title",c.THANK_YOU_BODY="thank-you-body",c.TOTAL_LINE="total-line",c.BOT_SUBMISSION="bot-submission",c.BOT_EVENT_SUBMISSION="bot-event-submission",c.BOT_SUGGESTED_SERVICE="bot-suggested-service",c.SSO_INTENT="sso-intent",(u=o||(o={})).ACTION_CONDITION="action-condition",u.ACTION_INTERNAL="action-internal",u.ACTION_EXTERNAL="action-external",u.ACTION_SSO_REDIRECT="action-sso-redirect",u.ACTION_MULTIPLE_BUTTON="action-multiple-button",u.USER_CHOICE_TEXT="user-choice-text",u.USER_CHOICE_TEXT_BY_INPUT="user-choice-text-by-input",u.USER_CHOICE_NEXT="user-choice-next",u.USER_CHOICE_IMAGE="user-choice-image",u.USER_SUBMIT_TEXT="user-submit-text",u.USER_SUBMIT_NUMBER="user-submit-number",u.USER_SUBMIT_NAME="user-submit-name",u.USER_SUBMIT_PHONE="user-submit-phone",u.USER_SUBMIT_EMAIL="user-submit-email",u.USER_SUBMIT_DROPDOWN="user-submit-dropdown",u.USER_SUBMIT_DATE="user-submit-date",u.USER_SUBMIT_CONFIRM="user-submit-confirm",u.USER_SUBMIT_SEND="user-submit-send",u.USER_SUBMIT_RESEND="user-submit-resend",u.USER_SUBMIT_ADDRESS="user-submit-address",u.USER_SUBMIT_ADDRESS_PROVINCE="user-submit-address-province",u.USER_SUBMIT_ADDRESS_DISTRICT="user-submit-address-district",u.USER_SUBMIT_ADDRESS_COMMUNE="user-submit-address-commune",u.USER_SUBMIT_BMI="user-submit-bmi",u.USER_SUBMIT_BMI_HIDDEN="user-submit-bmi-hidden",u.USER_SUBMIT_TERMS="user-submit-terms",u.USER_SUBMIT_GENDER="user-submit-gender",u.USER_SUBMIT_OTP="user-submit-otp",u.USER_SUBMIT_WHATSAPP="user-submit-whatsapp",u.POLL_CHOICE="poll-choice",u.POLL_CHOICE_TEXT_BY_INPUT="poll-choice-text-by-input",u.POLL_CHOICE_IMAGE="poll-choice-image",u.POLL_BUTTON="poll-button",u.RATING_STAR="rating-star",u.RATING_DESCRIPTION="rating-description",u.RATING_BUTTON="rating-button",u.LIKE_CHOICE="like-choice",u.DISLIKE_CHOICE="dislike-choice",u.REVIEW_CHOICE="review-choice",u.REVIEW_DESCRIPTION="review-description",u.REVIEW_BUTTON="review-button",u.RESULT_BUTTON="result-button",u.POLL_RESULT="poll-result",u.USER_SUBMIT_GOOGLE_API_ADDRESS="user-submit-google-api-address",(p=l||(l={}))[p.UNLIMITED=0]="UNLIMITED",p[p.EXACT_NUMBER=1]="EXACT_NUMBER",p[p.RANGE=2]="RANGE";let h={"user-submit-email":"email","user-submit-text":"text","user-submit-dropdown":"text","user-submit-name":"name","user-submit-number":"number","user-submit-address":"address","user-submit-phone":"tel","user-submit-otp":"tel","user-submit-whatsapp":"tel","user-submit-date":"date","user-submit-confirm":"confirm","user-submit-send":"submit","user-submit-terms":"terms","user-submit-address-province":"province","user-submit-address-district":"district","user-submit-address-commune":"commune","user-submit-bmi":"bmi","user-submit-gender":"gender","poll-choice":"poll","poll-choice-image":"poll","rating-star":"rating","rating-description":"text","like-choice":"like","dislike-choice":"dislike","review-choice":"review","user-submit-google-api-address":"google-api-address","user-choice-text-by-input":"text","poll-choice-text-by-input":"text"}},dnor:function(e,t,i){i.d(t,{D6:function(){return ssoIntents},jU:function(){return checkUntilFinished},sQ:function(){return overrideParamsByQuery}});var n=i("Q6jF"),r=i("PAs/");let a=["form_submit_meta","selected_actions","current_selected","current_keys","current_polls"],o=["bot_id","node_id","action_id","action_value","current_score","gtm_id","ga_client_id","is_new","title_url","url","window_id",...a],overrideParamsByQuery=(e,t)=>{let i=Object.keys(t);return i.map(i=>{let n=t[i];if("source"===i){e.is_new="first_login"===n;return}if(o.includes(i)){if(a.includes(i)){try{e[i]=JSON.parse(n)}catch(e){}return}if("account_id"===i||"current_score"===i||"bot_id"===i){e[i]=parseInt(n);return}e[i]=n}}),e},ssoIntents=e=>[{id:(0,n.A)(),label:JSON.stringify({title:"",description:""}),type:r.XG.SSO_INTENT,url:""},{id:(0,n.A)(),label:JSON.stringify({title:e({id:"subot.myHealth.title",defaultMessage:"My Health"}),description:e({id:"subot.myHealth.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:r.XG.SSO_INTENT,url:"/images/subot/my-health.svg"},{id:(0,n.A)(),label:JSON.stringify({title:e({id:"subot.saveData.title",defaultMessage:"Save Data"}),description:e({id:"subot.saveData.description",defaultMessage:"Hellobacsi would like to learn from your data to provide better healthcare for you"})}),type:r.XG.SSO_INTENT,url:"/images/subot/file-storage.svg"},{id:(0,n.A)(),label:JSON.stringify({title:e({id:"subot.productYourIdentifiers.title",defaultMessage:"Protect your identifiers"}),description:e({id:"subot.productYourIdentifiers.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:r.XG.SSO_INTENT,url:"/images/subot/shield.svg"}];function checkUntilFinished(e){let t=e.condition,i=e.finished,n=e.timeout||3e3,r=new Date().getTime(),a=setInterval(()=>{let e=new Date().getTime();(e-r>n||t())&&(clearInterval(a),i())},300)}},G82q:function(e,t,i){i.d(t,{w:function(){return trimVietnameseAccent}});let n="\xe0\xe1\xe3ảạăằắẳẵặ\xe2ầấẩẫậ\xe8\xe9ẻẽẹ\xeaềếểễệđ\xf9\xfaủũụưừứửữự\xf2\xf3ỏ\xf5ọ\xf4ồốổỗộơờớởỡợ\xec\xedỉĩị\xe4\xeb\xef\xee\xf6\xfc\xfb\xf1\xe7\xfdỳỹỵỷ",r={};for(let e=0;e0&&void 0!==arguments[0]?arguments[0]:"";return e.toLowerCase().replace(/./g,e=>r[e]||e).trim().replace(/[^a-z0-9\-]/g," ").replace(/-+/g,"-")}},"NLe/":function(e,t,i){i.d(t,{A3:function(){return isCareLink},Ny:function(){return formatUrlWithEncrypedGa},UQ:function(){return configCdnImageSize},WZ:function(){return getDetailPageUrl}});var n=i("+u84"),r=i("9brV");function formatUrlWithEncrypedGa(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!i||!t.startsWith("http")||!i)return t;try{e=new URL(t)}catch(e){return t}return e.searchParams.set("hhgclid",i),e.toString()}function configCdnImageSize(e,t){if(function(e,t){try{return new URL(e,void 0),!0}catch(e){return!1}}(e)){let i=window.devicePixelRatio||1,n=new URL(e);n.searchParams.set("w",(t.width*i).toString());let r=RegExp("-\\d+x\\d+(?=\\.\\w+$)","g"),a=n.pathname.replace(r,"");return"".concat(n.origin).concat(a).concat(n.search)}return e}let a={[n.r.VACCINE]:"VACCINATIONS",[n.r.IVF]:"IVF",[n.r.EGG_FREEZING]:"EGG_FREEZING",[n.r.HEALTH_SCREENER]:"HEALTH_SCREENER"},getDetailPageUrl=function(e,t){var i;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.U2;if(!t)return r.Jp;let o=a[e],l=null===(i=r.ix[t])||void 0===i?void 0:i[o];return l?"/".concat(n).concat("vi-VN"===t?"/dich-vu":"","/").concat(l,"/"):r.Jp};function isCareLink(e){if(!e)return!1;let t=function(e){if(!e)return"";try{let t=new URL(e);return t.pathname}catch(i){let[t]=e.split("?")[0].split("#");return t}}(e);return t.startsWith("/care/")}}}]);