"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8854],{kyGg:function(e,o,t){t.d(o,{V:function(){return getIconBySession}});var n=t("BGKE"),a=t("e6wM"),r=t("R3fp"),i=t("o5qa"),l=t("GwGV"),s=t("Tut/"),d=t("vXeZ"),c=t("VKit"),p=t("AayG"),u=t("Vpia"),g=t("8cky"),m=t("x/yG"),h=t("1MKM"),C=t("62OT"),E=t("RHNN"),v=t("ctYF"),b=t("oK97"),F=t("f4MD"),I=t("6ZcO"),f=t("IDes"),y=t("phQo"),S=t("WEaM"),T=t("rEaw"),k=t("WuBH"),B=t("QYzV"),N=t("+1D8"),R=t("Oro3"),P=t("AeJ6"),_=t("C6zW"),Z=t("Y5Er"),A=t("JaXN");let getIconBySession=e=>{let{isTaganil:o,isRoche:t,isCarePath:r,isSoya:i,isSimilac:l}=e;return{...D,...o?{[T.FF.CHAT_WITH_EXPERT]:(0,n.tZ)(a.Z,{})}:t?{[T.FF.EMBEDDING_DOCTORS]:(0,n.tZ)(E.Z,{}),[T.FF.EMBEDDING_RISKSCREENER]:(0,n.tZ)(h.Z,{}),[T.FF.CLICKABLE_BANNER]:(0,n.tZ)(C.Z,{}),[T.FF.ARTICLES]:(0,n.tZ)(v.Z,{})}:r?{[T.FF.EMBEDDING_DOCTORS]:(0,n.tZ)(g.Z,{}),[T.FF.EMBEDDING_RISKSCREENER]:(0,n.tZ)(P.Z,{}),[T.FF.EMBEDDING_RISKSCREENER_MULTI]:(0,n.tZ)(P.Z,{}),[T.FF.CLINIC_LOCATORS]:(0,n.tZ)(y.Z,{}),[T.FF.ARTICLES]:(0,n.tZ)(S.Z,{})}:l?{[T.FF.EMBEDDING_RISKSCREENER]:(0,n.tZ)(k.Z,{}),[T.FF.VIDEOS]:(0,n.tZ)(B.Z,{}),[T.FF.ARTICLES]:(0,n.tZ)(N.Z,{}),[T.FF.LEADGEN]:(0,n.tZ)(R.Z,{}),[T.FF.STATIC_BANNER]:(0,n.tZ)(Z.Z,{})}:i?{[T.FF.LEADGEN]:(0,n.tZ)(f.Z,{})}:{}}},D={[T.FF.HERO_BANNER_DEFAULT]:(0,n.tZ)(A.Z,{}),[T.FF.HERO_BANNER_FULLWIDTH]:(0,n.tZ)(A.Z,{}),[T.FF.EMBEDDING_DOCTORS]:(0,n.tZ)(r.Z,{}),[T.FF.CLINIC_LOCATORS]:(0,n.tZ)(i.Z,{}),[T.FF.EMBEDDING_RISKSCREENER]:(0,n.tZ)(l.Z,{}),[T.FF.EMBEDDING_RISKSCREENER_MULTI]:(0,n.tZ)(l.Z,{}),[T.FF.VIDEOS]:(0,n.tZ)(s.Z,{isSolid:!0}),[T.FF.ARTICLES]:(0,n.tZ)(d.Z,{}),[T.FF.CLICKABLE_BANNER]:(0,n.tZ)(c.Z,{}),[T.FF.CHAT_WITH_EXPERT]:(0,n.tZ)(F.Z,{}),[T.FF.ECOMMERCE_PRODUCS]:(0,n.tZ)(b.Z,{}),[T.FF.COMMUNITY_WITH_POSTS]:(0,n.tZ)(u.Z,{}),[T.FF.LEADGEN]:(0,n.tZ)(m.Z,{}),[T.FF.SOYA_EXTERNAL_LINK]:(0,n.tZ)(I.Z,{}),[T.FF.SOYA_OPEN_CHAT]:(0,n.tZ)(a.Z,{}),[T.FF.HEALTH_TOOL]:(0,n.tZ)(p.Z,{}),[T.FF.QUOTATION]:(0,n.tZ)(_.Z,{}),[T.FF.RATING_REVIEW]:(0,n.tZ)(_.Z,{}),[T.FF.CONTENT_EXPERT]:(0,n.tZ)(a.Z,{})}},rDID:function(e,o,t){t.d(o,{L:function(){return CarePathDefaultTemplate}});var n=t("BGKE"),a=t("AeFk"),r=t("q1tI"),i=t("kSP5"),l=t("mYVa"),s=t("Eso5"),d=t("ns0B"),c=t.n(d),p=t("Vvt1"),u=t.n(p),g=t("09QT"),m=t("oQBk"),h=t("gHFm"),C=t("CBW8"),E=t("lXMY"),v=t("2J3H"),b=t("8LNv"),F=t("pSVL"),I=t("hhen"),f=t("o4te"),y=t("Gwuz"),S=t("zPS3"),T=t("otlE"),k=t("zh4t"),B=t("IA2M"),N=t("2BtW"),R=t("Towb"),P=t("6MdI"),_=t("Itmt"),Z=t("nYtM"),A=t("FZB1"),D=t("RpeC"),L=t("SUvA"),M=t("IMlG"),O=t("ADvN"),w=t("jxNK"),x=t("5bkN"),H=t("l+VJ"),G=t("fzca"),W=t("uzt2"),K=t("wfjy"),z=t("XXdW"),U=t("6p8/"),V=t("41eD"),X=t("OB5W"),Y=t("tddD"),q=t("PPvu"),j=t("2Xpg"),Q=t("Qk9d"),J=t("DOR+"),$=t("iI4N"),ee=t("CGZa"),eo=t("i9y0"),et=t("du+H"),en=t("Uj9i"),ea=t("4GBr"),er=t("eO6u"),ei=t("c4YP"),el=t("2su4"),es=t("iv2E"),ed=t("raAP"),ec=t("DslX"),ep=t("hXNO"),eu=t("6vHH"),eg=t("P5LW"),em=t("rIrU"),eh=t("CF0j"),eC=t("rEaw"),eE=t("tjQ2"),ev=t("VIdu"),eb=t("pK5Y"),eF=t("mU93"),eI=t("WraA"),ef=t("kyGg"),ey=t("/npG"),eS=(0,ey.k)(()=>({root:{".wide-container":{width:"100%",maxWidth:1360,margin:"0 auto",padding:"0 16px"},".narrow-container":{width:"100%",maxWidth:1129,margin:"0 auto",padding:"0 16px"}},sectionList:{position:"relative"},body:{display:"flex",flexDirection:"column",gap:80},bg:{position:"absolute",zIndex:0,top:0},section:{},wrapper:{}})),eT=t("CFP3"),ek=t("RZSM"),eB=t("Iblh"),eN=t("p46w"),eR=t.n(eN);let eP="intro_banner_modal",IntroCarePathModal=e=>{let{onItemClick:o,hashToShow:t}=e,[a,{close:s,open:d}]=(0,eB.q)(!1),c=(0,ed.U)(),p=(0,r.useCallback)(()=>{eR().set(eP,"true"),t===encodeURIComponent("ปรึกษาคุณหมอ").toLowerCase()&&(window.history.replaceState({},"",window.location.pathname),o(t)),s()},[]);return(0,r.useEffect)(()=>{eR().get(eP)||d()},[]),(0,n.tZ)(eT.M,{size:(0,l.h)(648),opened:a,withCloseButton:!0,closeButtonProps:{"data-event-category":"Service Connection","data-event-action":"Pop Up - Close","data-event-label":c,sx:()=>({"&:focus-visible":{outline:"none"}})},overlayProps:{"data-event-category":"Service Connection","data-event-action":"Pop Up - Close","data-event-label":c},onClose:p,styles:{content:{position:"relative"},header:{position:"absolute",right:0,top:0,border:0,background:"transparent",padding:0,".mantine-CloseButton-root":{width:(0,l.h)(30),height:(0,l.h)(30),top:(0,l.h)(5),right:(0,l.h)(5)}},body:{padding:0}},children:(0,n.tZ)(ek.o,{ratio:972/681,sx:{cursor:"pointer"},onClick:p,children:(0,n.tZ)("img",{loading:"lazy",src:i.C.getAssetPath("carePath/modal-banner-th.jpg"),alt:"","data-event-category":"Service Connection","data-event-action":"Pop Up - Click to Image","data-event-label":c})})})};var e_=(0,r.forwardRef)((e,o)=>{let{isTypeForm:t,onOpen:a,children:i}=e,s=(0,ep.d)(),[d,c]=(0,r.useState)(!1);return(0,r.useImperativeHandle)(o,()=>({open:()=>c(!0),close:()=>c(!1),isOpen:d})),(0,r.useEffect)(()=>{if(s){let e=document.querySelectorAll(".zalo-chat-widget"),o=document.querySelectorAll(".woot--bubble-holder");if(e)for(let o of e)o.style.display=d?"none":"block";if(o)for(let e of o)e.style.display=d?"none":"block"}d&&(null==a||a())},[d]),(0,n.tZ)(eT.M,{opened:d,onClose:()=>c(!1),centered:!0,fullScreen:s,zIndex:500,keepMounted:t,styles:e=>({content:{[e.fn.smallerThan("sm")]:{...t&&{borderRadius:0}},[e.fn.largerThan("sm")]:{borderRadius:(0,l.h)(24),...t&&{"div, iframe":{borderRadius:(0,l.h)(24)}}}},header:{position:"absolute",right:0,top:0,background:"transparent",border:0},body:{padding:0,borderRadius:"inherit",height:"100%",...t&&{div:{height:"100%",maxHeight:"none"},iframe:{borderRadius:"0 !important"},".tf-v1-widget-close":{display:"none"},[e.fn.largerThan("sm")]:{height:656,".si-inline-revamp-container":{padding:"40px 24px 24px"},".si-typeform":{height:"100% !important",maxHeight:"none !important"}},[e.fn.smallerThan("sm")]:{height:"100%",borderRadius:0}}},close:{...t&&{right:-11,top:-9,svg:{width:"".concat((0,l.h)(32)," !important"),height:"".concat((0,l.h)(32)," !important")}}}}),size:t?400:640,title:"",withCloseButton:t||!s,children:i})}),eZ=t("O/o9");let SectionWrapper=e=>{let{children:o,onInView:t,...a}=e,i=(0,r.useRef)(null),{ref:l,inView:d}=(0,eZ.YD)({rootMargin:"-120px 0px 0px 0px"});return(0,r.useEffect)(()=>{null==t||t(d)},[d]),(0,n.tZ)(s.x,{...a,"data-in-view":d,ref:i,children:(0,n.tZ)(s.x,{ref:l,children:o})})};var eA=t("77u+"),eD=t("OAL+"),eL=t("05Ua"),eM=t("o0qI"),eO=t("5nj8"),ew=(0,ey.k)((e,o)=>{let{primaryColor:t=e.fn.primaryColor(),bodyColor:n,bodyBg:a,detectPage:r}=o,{isCarePath:i,isDan:s,isSimilac:d}=r,c=(0,eO.oo)(t,!0),p=(0,eO.At)(c.r,c.g,c.b),u=(0,eO.Nv)(p[0],p[1]+24,p[2]-4),g=i?"rgb(".concat(u[0],",").concat(u[1],",").concat(u[2],")"):t,m=i?(0,eO.Nv)(p[0],p[1]+40,p[2]-4):(0,eO.Nv)(p[0],p[1]+1,p[2]-4),h="rgb(".concat(m[0],",").concat(m[1],",").concat(m[2],")");return{root:{...n&&{backgroundColor:n},...a&&{backgroundImage:"url(".concat(a,")"),backgroundSize:"cover",backgroundPosition:"top left"},...t&&{'button[data-variant="primary"],button[data-primary-btn="true"]':{"&:not(:disabled)":{...s&&{color:"#001168",backgroundImage:"linear-gradient(90.02deg, #E3BE52 0.02%, #FCE7A3 29.55%, #EDC255 67.82%, #FADB7D 107.01%, #E5BA47 126.18%)"},backgroundColor:g,"&:hover":{backgroundColor:h,...s&&{color:"#001168",backgroundImage:"linear-gradient(90.02deg, #E3BE52 0.02%, #FCE7A3 29.55%, #EDC255 67.82%, #FADB7D 107.01%, #E5BA47 126.18%)"}}}}},[e.fn.smallerThan("sm")]:{"&.show-aside":{".carepath-bottom-ad":{bottom:(0,l.h)(64)}}},...d&&{'[data-quo-si="true"] + [data-lead-si="true"]':{".mantine-ServiceConnections__SectionWrapper-Wrapper-root":{paddingTop:0,[e.fn.largerThan("sm")]:{marginTop:-40}}}}}}});let Wrapper=e=>{let{activeTheme:o,spotlight:t,children:a,detectPage:i,className:d,styles:c,classNames:p,...u}=e,{dispatch:g}=(0,r.useContext)(eM.I),{isRoche:m}=i,{classes:h,cx:C}=ew({primaryColor:o.primary||"",bodyColor:m?"#FBF0F3":void 0,detectPage:i},{name:"CarePathDefaultTemplate__Wrapper",styles:c,classNames:p});return(0,r.useEffect)(()=>{var e,o,n;return(null==t?void 0:null===(o=t.integrates3rdParty)||void 0===o?void 0:null===(e=o.zaloConfig)||void 0===e?void 0:e.oaid)&&g({type:eL.H.SET_ZALO_CONFIG,payload:{oaid:t.integrates3rdParty.zaloConfig.oaid,message:"rất vui được hỗ trợ bạn."}}),(null==t?void 0:null===(n=t.integrates3rdParty)||void 0===n?void 0:n.chatwoodToken)&&g({type:eL.H.SET_CHATWOOT_WEBSITE_TOKEN,payload:t.integrates3rdParty.chatwoodToken}),()=>{g({type:eL.H.SET_ZALO_CONFIG,payload:null}),g({type:eL.H.SET_CHATWOOT_WEBSITE_TOKEN,payload:null})}},[]),(0,n.tZ)(n.HY,{children:(0,n.tZ)(s.x,{className:C(d,h.root),...u,children:(0,n.tZ)(eD.K,{sx:e=>({gap:0,'[data-none-bg-session="true"]':{padding:"".concat((0,l.h)(40)," 0")},'[data-none-bg-session="true"] + [data-none-bg-session="true"]':{paddingTop:0},[e.fn.largerThan("sm")]:{'[data-none-bg-session="true"]':{padding:"".concat((0,l.h)(80)," 0")}}}),children:a})})})};var ex=t("8N3T"),eH=t("OWiU"),eG=t("yNk5");let eW=u()(()=>Promise.all([t.e(5231),t.e(7797),t.e(5454),t.e(106),t.e(3684),t.e(5349),t.e(4148),t.e(2509),t.e(1533),t.e(1108),t.e(9124),t.e(4190),t.e(4447),t.e(6509),t.e(8674),t.e(7730),t.e(6517),t.e(3929),t.e(7884),t.e(137),t.e(4414),t.e(7613),t.e(8098),t.e(3416),t.e(3012),t.e(1570),t.e(6192),t.e(6918),t.e(5965),t.e(3301),t.e(1413),t.e(4846),t.e(2233),t.e(1058),t.e(5638),t.e(3295),t.e(1538),t.e(6629),t.e(7152),t.e(5684),t.e(2574),t.e(2513),t.e(5238),t.e(2039),t.e(6962),t.e(8680),t.e(4050),t.e(5465),t.e(6638),t.e(7741),t.e(1137),t.e(2433),t.e(9689),t.e(5385),t.e(3564),t.e(3158),t.e(8320),t.e(5641),t.e(7454),t.e(7004),t.e(4758),t.e(6219),t.e(17),t.e(8990),t.e(4067),t.e(9487),t.e(5297),t.e(9931),t.e(9083),t.e(1520),t.e(270),t.e(7596),t.e(8217),t.e(7543),t.e(2835),t.e(2507),t.e(6885),t.e(7859),t.e(5970),t.e(2730),t.e(2399),t.e(5530),t.e(7682),t.e(1551),t.e(4870),t.e(9922),t.e(3133),t.e(612),t.e(2002),t.e(1880),t.e(7471),t.e(7165),t.e(8854),t.e(5451),t.e(8612)]).then(t.bind(t,"E7r1")).then(e=>e.default),{loadableGenerated:{webpack:()=>["E7r1"]},ssr:!1}),eK=(0,r.forwardRef)(function(e,o){return(0,n.tZ)(eW,{...e,stickyRef:o})}),ez=u()(()=>Promise.all([t.e(4846),t.e(2233),t.e(1058),t.e(5638),t.e(3295),t.e(1538),t.e(6629),t.e(7152),t.e(5684),t.e(2574),t.e(2513),t.e(5238),t.e(2039),t.e(6962),t.e(8680),t.e(4050),t.e(5465),t.e(6638),t.e(7741),t.e(1137),t.e(2433),t.e(9689),t.e(5385),t.e(3564),t.e(3158),t.e(8320),t.e(5641),t.e(7454),t.e(7004),t.e(4758),t.e(6219),t.e(17),t.e(8990),t.e(4067),t.e(9487),t.e(5297),t.e(9931),t.e(9083),t.e(1520),t.e(270),t.e(7596),t.e(8217),t.e(7543),t.e(2835),t.e(2507),t.e(6885),t.e(7859),t.e(5970),t.e(2730),t.e(2399),t.e(5530),t.e(7682),t.e(1551),t.e(4870),t.e(9922),t.e(3133),t.e(612),t.e(2002),t.e(1880),t.e(7471),t.e(7165),t.e(8854),t.e(5451),t.e(8612)]).then(t.bind(t,"mFqs")).then(e=>e.HpvBanner),{loadableGenerated:{webpack:()=>["mFqs"]},ssr:!1}),eU=u()(()=>Promise.all([t.e(9409),t.e(6259),t.e(1818),t.e(7519),t.e(761),t.e(2189),t.e(5231),t.e(7797),t.e(5454),t.e(106),t.e(3684),t.e(5349),t.e(4148),t.e(2509),t.e(1533),t.e(1108),t.e(9124),t.e(4190),t.e(4447),t.e(6509),t.e(8674),t.e(7730),t.e(6517),t.e(3929),t.e(7884),t.e(137),t.e(4414),t.e(7613),t.e(8098),t.e(3416),t.e(3012),t.e(1570),t.e(6192),t.e(6918),t.e(5965),t.e(3301),t.e(1413),t.e(4846),t.e(2233),t.e(1058),t.e(5638),t.e(3295),t.e(1538),t.e(6629),t.e(7152),t.e(5684),t.e(2574),t.e(2513),t.e(5238),t.e(2039),t.e(6962),t.e(8680),t.e(4050),t.e(5465),t.e(6638),t.e(7741),t.e(1137),t.e(2433),t.e(9689),t.e(5385),t.e(3564),t.e(3158),t.e(8320),t.e(5641),t.e(7454),t.e(7004),t.e(4758),t.e(6219),t.e(17),t.e(8990),t.e(4067),t.e(9487),t.e(5297),t.e(9931),t.e(9083),t.e(1520),t.e(270),t.e(7596),t.e(8217),t.e(7543),t.e(2835),t.e(2507),t.e(6885),t.e(7859),t.e(5970),t.e(2730),t.e(2399),t.e(5530),t.e(7682),t.e(1551),t.e(4870),t.e(9922),t.e(3133),t.e(612),t.e(2002),t.e(1880),t.e(7471),t.e(7165),t.e(8854),t.e(5451),t.e(8612)]).then(t.bind(t,"Wbwt")).then(e=>e.BackToTop),{loadableGenerated:{webpack:()=>["Wbwt"]},ssr:!1}),eV=u()(()=>Promise.all([t.e(9409),t.e(6259),t.e(1818),t.e(7519),t.e(761),t.e(2189),t.e(4846),t.e(2233),t.e(1058),t.e(5638),t.e(3295),t.e(1538),t.e(6629),t.e(7152),t.e(5684),t.e(2574),t.e(2513),t.e(5238),t.e(2039),t.e(6962),t.e(8680),t.e(4050),t.e(5465),t.e(6638),t.e(7741),t.e(1137),t.e(2433),t.e(9689),t.e(5385),t.e(3564),t.e(3158),t.e(8320),t.e(5641),t.e(7454),t.e(7004),t.e(4758),t.e(6219),t.e(17),t.e(8990),t.e(4067),t.e(9487),t.e(5297),t.e(9931),t.e(9083),t.e(1520),t.e(270),t.e(7596),t.e(8217),t.e(7543),t.e(2835),t.e(2507),t.e(6885),t.e(7859),t.e(5970),t.e(2730),t.e(2399),t.e(5530),t.e(7682),t.e(1551),t.e(4870),t.e(9922),t.e(3133),t.e(612),t.e(2002),t.e(1880),t.e(7471),t.e(7165),t.e(8854),t.e(5451),t.e(8612)]).then(t.bind(t,"LpP+")).then(e=>e.default),{loadableGenerated:{webpack:()=>["LpP+"]},ssr:!1}),eX=(0,r.forwardRef)(function(e,o){return(0,n.tZ)(eV,{...e,popupRef:o})}),eY=u()(()=>Promise.all([t.e(4846),t.e(2233),t.e(1058),t.e(5638),t.e(3295),t.e(1538),t.e(6629),t.e(7152),t.e(5684),t.e(2574),t.e(2513),t.e(5238),t.e(2039),t.e(6962),t.e(8680),t.e(4050),t.e(5465),t.e(6638),t.e(7741),t.e(1137),t.e(2433),t.e(9689),t.e(5385),t.e(3564),t.e(3158),t.e(8320),t.e(5641),t.e(7454),t.e(7004),t.e(4758),t.e(6219),t.e(17),t.e(8990),t.e(4067),t.e(9487),t.e(5297),t.e(9931),t.e(9083),t.e(1520),t.e(270),t.e(7596),t.e(8217),t.e(7543),t.e(2835),t.e(2507),t.e(6885),t.e(7859),t.e(5970),t.e(2730),t.e(2399),t.e(5530),t.e(7682),t.e(1551),t.e(4870),t.e(9922),t.e(3133),t.e(612),t.e(2002),t.e(1880),t.e(7471),t.e(7165),t.e(8854),t.e(5451),t.e(8612)]).then(t.bind(t,"I1O0")).then(e=>e.default),{loadableGenerated:{webpack:()=>["I1O0"]},ssr:!1}),eq=(0,r.forwardRef)(function(e,o){return(0,n.tZ)(eY,{...e,popupRef:o})}),CarePathDefaultTemplate=e=>{var o,t,d,p,u,ey,eT,ek,eB,eN,eR,eP,eZ,eD,eL,eM,eO,ew,eW,eV,eY,ej,eQ,eJ,e$,e0,e1,e2,e5,e4,e3,e8,e6,e7,e9,oe,oo;let ot,on,oa,or;let{spotlight:oi,footerInfo:ol,dataNavMenuContent:os,hideSticky:od,stickyNav:oc,hasIntroCarepathModal:op,isAppPage:ou,styles:og,classNames:om,isInline:oh,...oC}=e,{locale:oE,query:ov,push:ob,pathname:oF,asPath:oI}=(0,eg.h)(),{classes:of,cx:oy}=eS(void 0,{name:"CarePathDefaultTemplate",styles:og,classNames:om}),oS=(0,ec.d)(null==oi?void 0:oi.keyID),{isNestle:oT,isCarePath:ok,isRoche:oB,isSoya:oN,isNan:oR,isTaganil:oP,isSimilac:o_,isTiki:oZ,isVinamilk:oA,isConCung:oD,isPfizer:oL,isTetAnKhang2026:oM,isThObesity:oO,isColosBaby:ow}=oS,ox=oN?{primary:"#EC1B2E",secondary:"#F1AF55",tertiary:"#EC1B2E",quaternary:"#EC1B2E"}:null==oi?void 0:oi.colorPatterns,oH=(0,ep.d)(),{originListSessions:oG,heroBanner:oW,listRiskscreener:oK,listClickable:oz,listDoctorEmbedSessions:oU,heading:oV}=(0,r.useMemo)(()=>{let e="",o=oi.listSessions||[],t=[],n=[],a=[],r=[];return o.map(o=>{W.F0.includes(null==o?void 0:o.sessionLayout)?t.push(o):(o.sessionLayout===eC.FF.EMBEDDING_RISKSCREENER?n.push(o):o.sessionLayout===eC.FF.CLICKABLE_BANNER?a.push(o):o.sessionLayout===eC.FF.EMBEDDING_DOCTORS&&r.push(o),(null==o?void 0:o.title)&&!e&&![eC.FF.EMBEDDING_RISKSCREENER,eC.FF.CLINIC_LOCATORS,eC.FF.LEADGEN,eC.FF.HERO_BANNER_FULLWIDTH].includes(o.sessionLayout)&&(e=o.sessionId))}),{originListSessions:o,heroBanner:null==t?void 0:t[0],listRiskscreener:n,listClickable:a,listDoctorEmbedSessions:r,heading:e}},[oi]),oX=(null==oW?void 0:oW.navigating)||[],oY=(0,r.useMemo)(()=>{let e=[],o=oX.map(e=>e.idScroll);return oG.map((t,n)=>{(!oW||0!==n)&&(o.includes(t.idScroll)?e.push([t]):0===e.length?e.push([t]):e[e.length-1]&&e[e.length-1].push(t))}),e},[oG]),oq=(0,r.useRef)(oG.slice(0,-1).map(e=>({idScroll:e.idScroll,loaded:e.sessionLayout!==eC.FF.HERO_BANNER_FULLWIDTH}))),oj=oU.length>0,oQ=(0,r.useRef)({}),oJ=(0,r.useRef)(""),o$=(0,r.useMemo)(()=>[eC.FF.ARTICLES,eC.FF.EMBEDDING_RISKSCREENER_MULTI,eC.FF.CUSTOMIZED_BLOCK],[]),o0=(0,eH.FI)(oX,ox),o1=(0,r.useRef)(null),o2=(0,r.useRef)(null),o5=(0,r.useRef)(null),o4=(0,r.useRef)(null),o3=(0,r.useRef)(null),o8=(0,r.useRef)(null),o6=(0,r.useRef)(null),o7=(0,r.useRef)([]),o9=(0,ec.d)(null==oi?void 0:oi.keyID),te=(0,ef.V)(o9),to=(0,r.useRef)(!1),tt=(0,r.useMemo)(()=>{let e=ex.iK.filter(e=>e.asPath.toLowerCase()===encodeURI(oi.permalink).toLowerCase());return e.length>0?e[0]:{mobileFormId:"",desktopFormId:""}},[]),tn=(0,ed.U)(),ta=(0,ev.od)({countryAdTag:(0,ev.Em)(oE,{isMobile:oH}),contentAdTag:{result:"Spotlight",redundant:!0}}),leadgenStyles=e=>({...o_&&"/chien-binh-me-sinh-mo/me-mang-thai/"!==oI&&{root:{[e.fn.smallerThan("sm")]:{background:e.colors.neutral[0],".mantine-Form-bannerWrapper":{margin:0},".mantine-Form-formWrapper":{width:"100%"}},[e.fn.largerThan("sm")]:{".mantine-Form-formWrapper":{width:500}}},wrapper:{borderRadius:e.radius.lg,".mantine-Form-formRoot":{width:"100%"},[e.fn.largerThan("sm")]:{backgroundColor:"#fff",boxShadow:e.shadows.sm,borderRadius:e.radius.lg,".mantine-Form-formRoot":{width:"100%"},".mantine-Form-scrollAreaViewport":{paddingRight:20}}},formFrame:{[e.fn.largerThan("sm")]:{border:0,padding:0,margin:0}},container:{[e.fn.largerThan("sm")]:{justifyContent:"space-between",padding:"32px 0 32px 60px"}}},...oN&&{root:{'&[data-inline="true"]':{[e.fn.largerThan("sm")]:{paddingBottom:0}}},modalBody:{backgroundColor:e.colors.neutral[0]},bannerImg:{[e.fn.largerThan("sm")]:{maxWidth:(0,l.h)(360)}},formFrame:{[e.fn.largerThan("sm")]:{backgroundColor:"transparent",borderColor:"transparent",padding:0,maxWidth:"none"}},container:{[e.fn.largerThan("sm")]:{justifyContent:"space-between",gap:100}}}}),tr=(0,r.useCallback)(e=>oq.current.findIndex(o=>o.idScroll===e),[oq]),ti=(0,r.useCallback)(e=>{let{idScroll:o,loaded:t=!1}=e,n=tr(o);if(n>-1){t&&(oq.current[n].loaded=!0);let e=oq.current.slice(0,n+1).filter(e=>!e.loaded);0===e.length&&(onItemClick(oJ.current),oJ.current="")}},[]);(0,r.useEffect)(()=>{let e=document.getElementsByTagName("body")[0];return e.classList.add("carepath-body"),oP&&e.classList.add("taganil-page"),()=>{e.classList.remove("carepath-body"),oP&&e.classList.remove("taganil-page")}},[oP]);let onItemClick=e=>{var o;null===(o=o2.current)||void 0===o||o.setCanScroll(!1),(0,eH.rE)({hash:e.includes("%")?e:encodeURIComponent(e),isMobile:oH,callback:()=>{var e;return null===(e=o2.current)||void 0===e?void 0:e.setCanScroll(!0)}})},tl={colorArr:o0,mappingIconList:te},ts={onNavClick:(e,o)=>{var t,n,a;e.sessionLayout===eC.FF.TOP?window.scrollTo({top:0,behavior:"smooth"}):e.sessionLayout===eC.FF.LEADGEN?(null==o||o.preventDefault(),(null==oQ?void 0:null===(t=oQ.current)||void 0===t?void 0:t[e.idScroll])?oQ.current[e.idScroll].openModal():onItemClick(e.idScroll)):e.sessionLayout===eC.FF.EMBEDDING_RISKSCREENER?(null==o||o.preventDefault(),null==o8||null===(n=o8.current)||void 0===n||n.open()):e.sessionLayout===eC.FF.SOYA_OPEN_CHAT?(null==o||o.preventDefault(),null==o6||null===(a=o6.current)||void 0===a||a.setShowWidget(!0)):e.url||(null==o||o.preventDefault(),onItemClick(e.idScroll))}},td={mappingIconList:te,dataActionBySession:eA.e,onItemClick,...ts},tc={Is_Sponsored:[1],Is_Expert:[(null==oi?void 0:null===(d=oi.expert)||void 0===d?void 0:null===(t=d.experts)||void 0===t?void 0:null===(o=t[0])||void 0===o?void 0:o.id)?1:0],Is_Affiliate:[0],Brand:(null==oi?void 0:null===(p=oi.sponsor)||void 0===p?void 0:p.map(e=>c()(e.title||"")))||[]},tp=(oi.sponsor||[]).length>0,tu=oi.listGroup.length>1,tg=!!oi.backgroundColor||!!oi.backgroundImage,tm=null==oW?void 0:null===(u=oW.sessionLayout)||void 0===u?void 0:u.includes(eC.FF.HERO_BANNER_FULLWIDTH),th=tg&&!oM,tC=oi.positionY||"top",tE=tm&&((null!==(oe=null==oW?void 0:null===(ey=oW.navigating)||void 0===ey?void 0:ey.length)&&void 0!==oe?oe:0)>0||(null!==(oo=null==oW?void 0:null===(ek=oW.medicalFacts)||void 0===ek?void 0:null===(eT=ek.listContent)||void 0===eT?void 0:eT.length)&&void 0!==oo?oo:0)>0),tv=th&&!!oi.backgroundImage&&"top"===tC&&tE,tb=th&&!!oi.backgroundImage&&!tv,getSessionBackgroundColor=(e,o)=>th&&e!==eC.FF.EMBEDDING_RISKSCREENER?"transparent":o||"",tF=(0,eu.Y)(oi.mastheadAdPlacement||{}),handleStopTrackingIdle=e=>{var o,t,n;e?(null==o4||null===(o=o4.current)||void 0===o||o.close(),null==o4||null===(t=o4.current)||void 0===t||t.stopTracking(!0)):null==o4||null===(n=o4.current)||void 0===n||n.stopTracking(!1)},tI=(0,n.tZ)(eK,{ref:o5,listSessions:oG,navigating:oX,colorShade:ox,colorArr:oN?["#F1AF55","#EC1B2E","#EC1B2E","#EC1B2E"]:o0,activeColor:ox.primary,mappingIconList:te,onItemClick,sponsoredBy:oi.sponsor,isAppPage:ou,logo:null==oi?void 0:oi.logo,...ts,dataActionBySession:(()=>{let e={};return Object.keys(eA.e).map(o=>{e[o]="".concat(eA.e[o]," - Header Navigate")}),e})(),mappingIconList:te,styles:()=>({wrapper:{pointerEvents:"auto"},sponsor:{...!tu&&{order:1}},navigator:{...!tu&&{order:2}},navigatorItem:{...oR&&{'&[data-is-selected="true"]':{backgroundColor:"#92682a"}}}}),children:oc});return(0,n.BX)(eF.F.Provider,{value:{colorArr:o0,navigating:oX,mappingIconList:te,detectPage:oS,activeTheme:ox,keyID:(null==oi?void 0:oi.keyID)||""},children:[(0,n.tZ)(ei.A,{servicePageTrackingParams:{pageId:oi.postName,audienceId:oi.groupIdActive||"",funnelId:oi.additionalSlugActive||""}}),(0,n.tZ)(el.x,{title:null==oi?void 0:oi.postTitle,description:null==oi?void 0:oi.postTitle,image:em.CX[oE].HOMEPAGE_IMAGE,isSponsored:oH&&(null==oi?void 0:oi.isSponsor),sponsoredType:"content",sponsoredBy:oH?null==oi?void 0:oi.sponsor:void 0,SEOData:{title:null==oi?void 0:oi.postTitle,description:null==oi?void 0:oi.postTitle,apiMetaData:null==oi?void 0:oi.metaTag,isIndexable:!0},type:"profile",footerInfo:ol,languageOptions:(null==oi?void 0:oi.translateOptions)||[],dataNavMenuContent:os,subHead:od?void 0:tI,isInline:oh,children:(0,n.BX)(eE.Ep,{init:{currentArticle:oi},children:[!(null==oi?void 0:oi.disableAd)&&(0,n.tZ)(C.o,{children:(0,n.tZ)(et.MastheadAd,{adUnitPath:ta,className:"spotlight-masthead ".concat(null==oi?void 0:oi.type,"-masthead"),hasPlaceholder:tF})}),(0,n.tZ)(er.Yr,{className:oy(of.root,"service-connection-page"),style:{minHeight:(0,l.h)(610),marginBottom:0},children:(0,n.tZ)(Wrapper,{className:of.wrapper,spotlight:oi,detectPage:o9,activeTheme:ox,...oC,sx:e=>({...th&&{...oi.backgroundColor&&{background:oi.backgroundColor},[e.fn.smallerThan("sm")]:{'[data-none-bg-session="true"]':{padding:"20px 0"}},[e.fn.largerThan("sm")]:{...tb&&{background:["url(".concat(oi.backgroundImage,")"),oi.backgroundColor].filter(Boolean).join(", "),backgroundPosition:["".concat(oi.positionX||"center"," ").concat(tC),oi.backgroundColor&&"center center"].filter(Boolean).join(", "),backgroundRepeat:"no-repeat"},overflow:"hidden",'[data-none-bg-session="true"]':{padding:"40px 0"},".mantine-CarePathHeroBannerCustomLayout-navigatorWrapper":{paddingBottom:20}}},...th&&{['& [data-session-layout]:not([data-session-layout="'.concat(eC.FF.EMBEDDING_RISKSCREENER,'"]) [data-has-color="true"]')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(eC.FF.EMBEDDING_RISKSCREENER,'"]) .mantine-ServiceConnections__SectionWrapper-Wrapper-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(eC.FF.EMBEDDING_RISKSCREENER,'"]) .mantine-VideoLibrary-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(eC.FF.EMBEDDING_RISKSCREENER,'"]) .mantine-ClickableBanner-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(eC.FF.EMBEDDING_RISKSCREENER,'"]) .mantine-ClickableSingleBanner-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(eC.FF.EMBEDDING_RISKSCREENER,'"]) .mantine-MultiRiskScreenerEmbed-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(eC.FF.EMBEDDING_RISKSCREENER,'"]) .mantine-HealthToolEmbed-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(eC.FF.EMBEDDING_RISKSCREENER,'"]) .mantine-CustomizedBlock-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(eC.FF.EMBEDDING_RISKSCREENER,'"]) .mantine-TypeFormInlineInlineScreen-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(eC.FF.EMBEDDING_RISKSCREENER,'"]) .mantine-CtaBannerSection-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(eC.FF.EMBEDDING_RISKSCREENER,'"]) .mantine-ArticleCardList-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(eC.FF.EMBEDDING_RISKSCREENER,'"]) .mantine-ContentExpert-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(eC.FF.EMBEDDING_RISKSCREENER,'"]) .mantine-EmbedCommunityWithPosts-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(eC.FF.EMBEDDING_RISKSCREENER,'"]) .mantine-ServiceConnections__Quotations-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(eC.FF.EMBEDDING_RISKSCREENER,'"]) .mantine-PollEmbed-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(eC.FF.EMBEDDING_RISKSCREENER,'"]) .mantine-RatingReview-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(eC.FF.EMBEDDING_RISKSCREENER,'"]) .mantine-CarePathDoctorList-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(eC.FF.EMBEDDING_RISKSCREENER,'"]) .mantine-LeadgenWithBanner-root')]:{backgroundColor:"transparent !important"},"& .mantine-ArticleCardList__Categories-Item-item":{backgroundColor:"#fff"},"& .mantine-CarePathHeroBannerCTALayout-root":{backgroundColor:"transparent !important"},"& #clinicLocator--content":{backgroundColor:"#fff"},"& #clinicLocator--content .g-map":{backgroundColor:"#fff"},['& [data-session-layout]:not([data-session-layout="'.concat(eC.FF.EMBEDDING_RISKSCREENER,'"]) .mantine-ServiceConnection__ClinicLocator-root')]:{backgroundColor:"transparent !important"}}}),styles:e=>({root:{...oR&&{background:"linear-gradient(180deg, #FBF8F4 20.19%, #EBDFCB 38.46%, #FBF9F4 63.94%, #FAF1D7 83.65%, #FBF9F4 100%)",[e.fn.largerThan("sm")]:{background:"linear-gradient(180deg, #FBF8F4 17.79%, #EBDFCB 35.58%, #FBF9F4 58.17%, #FAF1D7 78.85%, #FBF9F4 100%)"}},...oM&&{background:"radial-gradient(70.02% 70.02% at 48.33% 28.64%, rgba(255, 255, 230, 0.5) 0%, rgba(255, 238, 182, 0.5) 32.21%, rgba(246, 214, 178, 0.5) 74.22%, rgba(249, 233, 202, 0.5) 98.56%)",[e.fn.smallerThan("sm")]:{'[data-none-bg-session="true"]':{padding:"20px 0"}},[e.fn.largerThan("sm")]:{overflow:"hidden",'[data-none-bg-session="true"]':{padding:"40px 0"},".mantine-CarePathHeroBannerCustomLayout-navigatorWrapper":{paddingBottom:20}}},...ow&&{background:"linear-gradient(\n 180deg,\n #f7f7eb 2.88%,\n #f3f3d6 25%,\n #e6f0b1 50.96%,\n #f3f3d6 74.52%,\n #d3e2be 100%\n)\n",[e.fn.smallerThan("sm")]:{'[data-none-bg-session="true"]':{padding:"20px 0"}},[e.fn.largerThan("sm")]:{overflow:"hidden",'[data-none-bg-session="true"]':{padding:"40px 0"},".mantine-CarePathHeroBannerCustomLayout-navigatorWrapper":{paddingBottom:20}}},...ow&&{[e.fn.smallerThan("sm")]:{'[data-none-bg-session="true"]':{paddingTop:"0 !important"}}}}}),children:(0,n.BX)(N.Z,{className:of.sectionList,ref:o2,disableScrollTo:!0,onVisible:e=>{var o,t;null==o5||null===(o=o5.current)||void 0===o||o.setSelectedSection(e);let n="",a=oX.findIndex(o=>o.idScroll===e&&(n=o.sessionLayout,!0));n===eC.FF.EMBEDDING_RISKSCREENER&&handleStopTrackingIdle(!0);let r=a===oX.length-1?null==oX?void 0:oX[0]:oX[a+1];null==o3||null===(t=o3.current)||void 0===t||t.setSuggestSection({hash:r.idScroll,cta:null==r?void 0:r.title,btnTracking:{dataEventCategory:"Service Connection",dataEventAction:"".concat(eA.e[r.sessionLayout]||""," - Intent popup"),dataEventLabel:"".concat(tn.split("#")[0],"#").concat(decodeURI(r.idScroll))}})},children:[oW&&(()=>{var e;let o=oW.sessionLayout,t=o.includes(eC.FF.HERO_BANNER_DEFAULT)&&oW.isCtaBanner,a=!oB&&!(ok||o_),r=a?Object.assign(e=>(0,n.tZ)(z.g,{...e,useBgColor:oN,styles:e=>({...oN&&{root:{'&[data-type="comming_soon"]':{position:"relative",cursor:"default","&:before":{content:'""',position:"absolute",backgroundSize:"contain",backgroundRepeat:"no-repeat",zIndex:1,[e.fn.largerThan("sm")]:{top:"-3%",left:"5%",width:"99%",height:"0",paddingBottom:"80%",backgroundImage:"url(".concat(i.C.getAssetPath("soya/comming-soon.png"),")")},[e.fn.smallerThan("sm")]:{top:(0,l.h)(-5),left:(0,l.h)(13),width:"65%",height:"0",paddingBottom:"34%",backgroundImage:"url(".concat(i.C.getAssetPath("soya/comming-soon-mobile.png"),")")}},p:{opacity:.5,filter:"blur(4px)",[e.fn.largerThan("sm")]:{filter:"blur(6px)"}},".img-wrapper":{opacity:.5}}}}})}),{displayName:"FlatIcon"}):oB?V.X:K.F;return(0,n.BX)(s.x,{"data-id-scroll":"","data-section-id":o,sx:e=>({...t?{backgroundColor:th?"transparent":e.colors.neutral[0]}:oM?{[e.fn.largerThan("sm")]:{position:"relative","& > div":{position:"relative",zIndex:1},"&:before":{content:'""',position:"absolute",left:-77,top:"78%",zIndex:0,width:288,height:0,paddingBottom:"284%",backgroundImage:"url(".concat(i.C.getAssetPath("tetAnKhang2026/left-side.png"),")"),backgroundSize:"contain",backgroundRepeat:"no-repeat"},"&:after":{content:'""',position:"absolute",right:-66,top:"100%",zIndex:0,width:397,height:0,paddingBottom:"284%",backgroundImage:"url(".concat(i.C.getAssetPath("tetAnKhang2026/right-side.png"),")"),backgroundSize:"contain",backgroundRepeat:"no-repeat"}}}:{}}),children:[(0,n.tZ)(h.W,{children:(0,n.BX)(s.x,{sx:e=>({[e.fn.largerThan("sm")]:{display:"flex",justifyContent:"space-between"}}),children:[tu?(0,n.tZ)(eb.a,{spotlight:oi}):oW.isCtaBanner?(0,n.tZ)(s.x,{sx:e=>({height:(0,l.h)(20),[e.fn.largerThan("sm")]:{height:(0,l.h)(40)}})}):null,tp&&!oH&&(0,n.tZ)(y.StickySponsoredBy,{isCollapsed:!1,sponsoredType:"content",sponsoredBy:oi.sponsor,isMobile:oH,styles:e=>({root:{position:"relative",zIndex:1,backgroundColor:"transparent",border:0,[e.fn.largerThan("sm")]:{padding:0}},logoWrapper:{marginLeft:(0,l.h)(12)},logo:{[e.fn.largerThan("sm")]:{height:(0,l.h)(32)}},container:{[e.fn.largerThan("sm")]:{padding:0}}})})]})}),(0,n.tZ)(s.x,{ref:o1,"data-bg-session":!0,children:oW.sessionLayout===eC.FF.HERO_BANNER_APP?(0,n.tZ)(T.j,{title:oW.title,banner:null==oW?void 0:null===(e=oW.banner)||void 0===e?void 0:e.desktop,headerDescription:oW.headerDescription,innerClass:"wide-container",descInnerClass:"narrow-container",logo:null==oi?void 0:oi.logo,onNavClick:td.onNavClick}):(0,n.tZ)(w.y,{...tl,ratio:oH&&oZ?1.875:void 0,onItemClick:onItemClick,hasSociaShare:null==oi?void 0:oi.hasSocialShare,layout:e=>t?(0,n.tZ)(x.c,{...e,mappingIconList:te,listBanner:oW.listBanner,navigatorProps:{...td,itemComponent:function(e){return(0,n.tZ)(U.s,{...e,useImgAsFullBg:oT||oR,showBrushPattern:!oH&&ok,...oT&&{isQuare:!1},styles:()=>({...oT&&{root:{...3===oX.length&&{"&:first-of-type":{width:"100%"}}},exploreLink:{color:"#FAEEC3"}}})})}},autoSlide:!!oW.autoSlideTiming,delayTime:oW.autoSlideTiming,styles:{...th&&{root:{backgroundColor:"transparent"}}}}):o.includes(eC.FF.HERO_BANNER_FULLWIDTH)?(0,n.tZ)(H.b,{...e,flatIconDesktopLayout:ow?"vertical":void 0,ignoreThemeBackgroundNavigation:oi.ignoreThemeBackgroundNavigation||ow||oM,autoSlide:!!oW.autoSlideTiming,delayTime:oW.autoSlideTiming,hideDisclaimerOnMobile:a,navigatorBackgroundImage:tv?oi.backgroundImage:void 0,navigatorBackgroundPositionX:tv?oi.positionX:void 0,navigatorBackgroundPositionY:tv?tC:void 0,navigatorProps:{...td,itemComponent:r},onBannerLoad:()=>oJ.current&&ti({idScroll:oW.idScroll,loaded:!0}),styles:e=>({...oM&&{navigatorItem:{[e.fn.largerThan("sm")]:{flexDirection:"row",gap:16,padding:16,".mantine-CarePathHeroBannerNavigatorItemFlatIcon-title":{fontSize:(0,l.h)(22),lineHeight:(0,l.h)(32),letterSpacing:"-0.6px"}}}},...ow&&{gap:0,navigatorInner:{[e.fn.largerThan("sm")]:{paddingBottom:20}},navigatorItem:{gap:12,padding:12,borderRadius:16,".mantine-CarePathHeroBannerNavigatorItemFlatIcon-title":{color:"#000",fontWeight:600,fontSize:(0,l.h)(15),lineHeight:(0,l.h)(24),letterSpacing:"-0.4px"},[e.fn.largerThan("sm")]:{gap:20,padding:24,"&:first-child":{".mantine-CarePathHeroBannerNavigatorItemFlatIcon-title":{maxWidth:200}},".mantine-CarePathHeroBannerNavigatorItemFlatIcon-title":{fontSize:(0,l.h)(17),lineHeight:(0,l.h)(24)}}}},...th&&{navigatorWrapper:{backgroundColor:"transparent"}},...oR&&{root:{[e.fn.smallerThan("sm")]:{".mantine-CarePathHeroBannerBannerItem-wrapper":{".mantine-AspectRatio-root":{"&:before":{paddingBottom:"75%"}}}}},navigatorWrapper:{backgroundColor:"transparent"},navigatorItem:{[e.fn.largerThan("sm")]:{img:{maxWidth:56,maxHeight:56}}}}})}):(0,n.tZ)(G.j,{...e,navigatorProps:{...td,itemComponent:oB?V.X:ok?K.F:z.g}}),sessionProps:oW,styles:e=>({mainBannerCtaBtn:{[e.fn.smallerThan("sm")]:{...oB&&{paddingLeft:0,paddingRight:0}}},mainBannerCtaBtnRightIcon:{[e.fn.smallerThan("sm")]:{...oB&&{display:"none"}}},navigatorWrapper:{...(oN||th)&&{backgroundColor:"transparent"}}})})})]},oW.sessionLayout)})(),(ot=0,on=0,oa=0,or=0,oY.map((e,o)=>{let t=e[0],r=null==t?void 0:t.idScroll;return(0,n.tZ)(s.x,{"data-bg-session":o$.includes(r),"data-id-scroll":r,"data-section-index":o,className:of.section,sx:e=>({...oM&&{[e.fn.largerThan("sm")]:{position:"relative"}}}),children:e.map((e,t)=>{var r,d,c,p,u,h,C,E,v,f,y,T,N,x;let W=e.sessionLayout,K=W===eC.FF.RATING_REVIEW?e.collectionId:"";return(0,a.az)(s.x,{id:e.hashtag||e.idScroll,...e.sessionLayout===eC.FF.CONTENT_BANNER&&{"data-vertical-layout":!0},key:"".concat(e.idScroll||e.hashtag||W,"-").concat(o,"-").concat(t,"-").concat(K),"data-session-layout":W,"data-hashtag":e.hashtag||e.idScroll,"data-none-bg-session":o$.includes(W),"data-section-sub-index":t,"data-gap":o$.includes(W)?0:oH?40:49,"data-section-id":e.hashtag||e.idScroll,sx:e=>({scrollMarginTop:56,[e.fn.largerThan("sm")]:{scrollMarginTop:120}}),...o_&&W===eC.FF.LEADGEN&&{"data-lead-si":"true"},...o_&&W===eC.FF.QUOTATION&&{"data-quo-si":"true"}},W.includes(eC.FF.EMBEDDING_DOCTORS)?(()=>{var o;let t=or++,a=getSessionBackgroundColor(W,(null===(o=(0,eA.O)(oB))||void 0===o?void 0:o[eC.FF.EMBEDDING_DOCTORS])||e.backgroundColor);return(0,n.tZ)(F.Z,{ref:e=>{e&&(o7.current[t]=e)},defaultColor:ox.tertiary,hidePrice:ok||oP||em.DY.includes(oE),hideViewAll:ok&&"id-ID"!==oE,applyH1:e.sessionId===oV,viewAllUrl:ok&&"id-ID"===oE?"doctors"===e.typeEmbedding?"https://".concat(es.domainLocales[oE],"/care/semua/dokter/spesialis/"):"top_service"===e.typeEmbedding||"specialties"===e.typeEmbedding?"https://".concat(es.domainLocales[oE],"/care/semua/rumah-sakit/spesialis/"):void 0:void 0,listingAll:e.doctors,filterColor:oB?"#00BEBF":void 0,hideBgPattern:oB||"transparent"===a,showConfirmCityPopup:oB,layoutConfig:oB?{1:"horizon",2:"horizon"}:void 0,campaign:e.campaign,sessionProps:{...e,backgroundColor:a},styles:{...oB&&{heading:{color:ox.primary},processBar:{background:ox.primary,opacity:.4},processRoot:{background:"#fff"},listing:{'&[data-slide-length="2"]':{flexDirection:"column"}}}}})})():W.includes(eC.FF.CLINIC_LOCATORS)?(0,n.tZ)(SectionWrapper,{onInView:e=>{if(e&&!to.current){var o,t;null===(o=(t=window).gtag)||void 0===o||o.call(t,"event","visible",{event_category:"Service Connection",event_action:"Clinic Directory Click",event_label:tn,audience:oi.groupIdActive}),to.current=!0}},children:(0,n.tZ)(_.q,{title:e.title,specialties:e.specialties,defaultColor:(null==o0?void 0:o0[oX.findIndex(o=>o.idScroll===e.idScroll)])||ox.primary,infoPath:ok&&oE===eC.MV.Taiwan?"organization.name":void 0,funnelId:oi.additionalSlugActive,onGetBrowserLoc:e=>{oj&&e&&(async()=>{var o;let t=await (0,g.callApiNew)(m.PATHS.CARE.GET_CITY_ID_BY_LAT_LNG,{params:e},"care"),n=null==t?void 0:null===(o=t._data)||void 0===o?void 0:o.default;(null==n?void 0:n.id)&&o7.current.map(e=>{e.setSelectedFilterId(String(n.id))})})()}})}):W.includes(eC.FF.VIDEOS)||W.includes(eC.FF.VIDEO_SECTION)?(0,n.tZ)(eo.y,{isNestle:oT,idScroll:e.idScroll||"embed-video"+t,"data-id-scroll":oN?"aivideo":"",autoPlay:e.autoPlay,primaryColor:ox.primary,applyH1:!ou&&e.sessionId===oV,sessionProps:{...e,backgroundColor:getSessionBackgroundColor(W,(oB?null===(r=(0,eA.O)(oB))||void 0===r?void 0:r[eC.FF.VIDEOS]:oN||oR?"transparent":e.backgroundColor)||"")},adUnitPath:e.videoLayout!==eC.CY.List||oi.disableAd?void 0:0==oa++?ta:void 0,styles:e=>({...oR&&{root:{[e.fn.largerThan("sm")]:{paddingTop:40,paddingBottom:40}},heading:{fontSize:(0,l.h)(24),lineHeight:(0,l.h)(32),[e.fn.largerThan("sm")]:{fontSize:(0,l.h)(40),lineHeight:(0,l.h)(52)}}}})}):W.includes(eC.FF.EMBEDDING_RISKSCREENER)?(0,n.tZ)(s.x,{children:(0,n.tZ)(J.Y,{data:{...e,backgroundColor:oT?"transparent":(null===(d=(0,eA.O)(oB))||void 0===d?void 0:d[eC.FF.EMBEDDING_RISKSCREENER])||e.backgroundColor},isFullContainer:!0,primaryColor:ox.primary,typeoformId:oH?tt.mobileFormId:tt.desktopFormId})}):W.includes(eC.FF.EMBEDDING_RISKSCREENER_MULTI)?(0,n.tZ)(Y.a,{colorShade:ox,sessionProps:{...e,backgroundColor:getSessionBackgroundColor(W,(null===(c=(0,eA.O)(oB))||void 0===c?void 0:c[eC.FF.EMBEDDING_RISKSCREENER_MULTI])||e.backgroundColor)},applyH1:e.sessionId===oV}):W.includes(eC.FF.ARTICLES)?(0,n.tZ)(s.x,{"data-is-article":!0,sx:e=>({...(oB||oN)&&{".card-item":{background:"transparent"}},...oN&&{backgroundColor:getSessionBackgroundColor(W,e.colors.neutral[0]),[e.fn.smallerThan("sm")]:{margin:"-40px 0",padding:"40px 0"},[e.fn.largerThan("sm")]:{margin:"-80px 0",padding:"80px 0"}}}),children:(0,n.tZ)(R.q,{listCategories:e.listCategories,wrapperProps:{...e.wrapperProps,bgColor:getSessionBackgroundColor(W,null===(p=e.wrapperProps)||void 0===p?void 0:p.bgColor)},display:e.typeDisplay,articles:e.listArticles,listingByKeyPillar:e.listingByKeyPillar,readmoreArticles:e.readMoreArticles,adUnitPath:"advance"===e.typeDisplay||oi.disableAd?void 0:0==ot++?ta:void 0,applyH1:e.sessionId===oV,mobileLayoutStretch:oL,mobileCarouselLayoutForNormalStyle:oO,styles:e=>({...oB&&{processRoot:{background:"#fff",padding:0},processBar:{background:ox.primary,opacity:.4}},...oR&&{root:{[e.fn.smallerThan("sm")]:{h2:{fontSize:(0,l.h)(24),lineHeight:(0,l.h)(32)}},[e.fn.largerThan("sm")]:{paddingBottom:0}}},...oM&&{root:{".heading-title":{fontSize:(0,l.h)(24),lineHeight:(0,l.h)(32),letterSpacing:"-0.8px",color:"#262626"},[e.fn.largerThan("sm")]:{".heading-title":{fontSize:(0,l.h)(32),lineHeight:(0,l.h)(42),letterSpacing:"-1px"}}}}})})}):W.includes(eC.FF.CLICKABLE_BANNER)||W.includes(eC.FF.CHAT_WITH_EXPERT)?e.isSingleBanner?(0,n.tZ)(P.g,{data:e,onItemClick:onItemClick,"data-id-scroll":e.hashtag,applyH1:e.sessionId===oV,styles:o=>({root:{backgroundColor:getSessionBackgroundColor(W,e.backgroundColor),...oR&&{backgroundColor:"transparent",[o.fn.largerThan("sm")]:{paddingTop:40,paddingBottom:40}}},icon:{...oR&&{[o.fn.smallerThan("sm")]:{width:32}}},heading:{...oR&&{[o.fn.smallerThan("sm")]:{fontSize:(0,l.h)(24),lineHeight:(0,l.h)(32)}}},disclaimerIcon:{path:{fill:oR?ox.quaternary:ox.primary}}})}):(0,n.tZ)(ea.N,{requireLogin:e.requireLogin,applyCarousel:e.applyCarousel,embedChatwootClick:!!(W.includes(eC.FF.CHAT_WITH_EXPERT)||oB),bgColor:getSessionBackgroundColor(W,(null===(u=(0,eA.O)(oB))||void 0===u?void 0:u[eC.FF.CLICKABLE_BANNER])||e.backgroundColor),banner:{title:e.title,description:e.description,listing:e.listing,list_banners:[],icon:""},chatToken:e.token,avatarIcon:e.avatarIcon,bannerProps:{"data-event-category":"Service Connection","data-event-action":"Clickable Banner"},hasDisclaimer:ok&&!W.includes(eC.FF.CHAT_WITH_EXPERT),onItemClick:onItemClick,applyH1:e.sessionId===oV,openAllAccordion:e.expandAllCategories,styles:o=>({...th&&{root:{backgroundColor:"transparent"}},...oR&&{root:{backgroundColor:"transparent",h3:{fontSize:(0,l.h)(24),lineHeight:(0,l.h)(32)},[o.fn.largerThan("sm")]:{paddingTop:40,paddingBottom:40,h3:{fontSize:(0,l.h)(40),lineHeight:(0,l.h)(52)}}},bannerItemWrapper:{img:{[o.fn.smallerThan("sm")]:{maxWidth:"55% !important"},[o.fn.largerThan("sm")]:{maxHeight:"50vh",minHeight:400,maxWidth:"max-content",margin:"0 auto"}}}},...oD&&{root:{backgroundImage:"url(".concat(i.C.getAssetPath("concung/doctor-bg-m.jpg"),")"),backgroundSize:"cover",[o.fn.largerThan("sm")]:{backgroundImage:"url(".concat(i.C.getAssetPath("concung/doctor-bg.jpg"),")")}},bannerList:{[o.fn.smallerThan("sm")]:{flexDirection:"column",gap:0}},bannerItem:{width:"100%",[o.fn.largerThan("sm")]:{width:400}},heading:{background:"linear-gradient(180deg, #253B75 24.37%, #2089C8 61.44%, #4274B7 73.15%, #253B75 91.68%)","-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"}},...!!oi.integrates3rdParty.chatwoodToken&&{root:{...oB&&{[o.fn.largerThan("md")]:{paddingBottom:0,position:"relative",...0===on&&{"&:before":{content:'""',position:"absolute",top:"9%",left:"4%",zIndex:0,width:(0,l.h)(181),height:(0,l.h)(216),backgroundImage:"url(".concat(i.C.getAssetPath("roche/cancer-bg1.png"),")")}},...on++==oz.length-1&&{"&:after":{content:'""',position:"absolute",bottom:0,right:0,zIndex:0,width:(0,l.h)(181),height:(0,l.h)(216),backgroundImage:"url(".concat(i.C.getAssetPath("roche/cancer-bg2.png"),")")}}}}},inner:{position:"relative",zIndex:1}},header:{textAlign:W.includes(eC.FF.CHAT_WITH_EXPERT)?"center":(e.listing||[]).length>3?"left":"center"}})}):W.includes(eC.FF.COMMUNITY_WITH_POSTS)?e.typeEmbed===eC.VA.MINIGAME?(0,n.tZ)(M._,{...e,applyH1:e.sessionId===oV}):(0,n.tZ)(L.T,{...e,applyH1:e.sessionId===oV}):W.includes(eC.FF.ECOMMERCE_PRODUCS)?(0,n.tZ)(I.f,{title:e.title,products:e.products,bgColor:getSessionBackgroundColor(W,ox.primary),applyH1:e.sessionId===oV}):W.includes(eC.FF.LEADGEN)?(0,n.BX)(n.HY,{children:[(0,n.tZ)(X.Z,{ref:o=>{e.isModal&&0===t&&(oQ.current[e.idScroll]=o)},autoOpen:!oN,scrollable:!oN,isModal:e.isModal,desktopModalType:oN?"fullscreen":"normal",data:e,primaryColor:ox.primary,styles:leadgenStyles,onModalChange:handleStopTrackingIdle}),oN&&(0,n.tZ)(X.Z,{data:e,isModal:!0,scrollable:!0,desktopModalType:oN?"fullscreen":"normal",modalBanner:(()=>{var e;let o=null===(e=oi.listSessions.filter(e=>e.sessionLayout===eC.FF.HERO_BANNER_FULLWIDTH).slice(-1))||void 0===e?void 0:e[0];return o?(0,n.tZ)(w.y,{colorArr:[],keepRatio:!1,layout:H.b,sessionProps:o,mappingIconList:te,bannerTracking:{"data-event-action":"Dynamic Banner Click"}}):void 0})(),modalProps:{zIndex:100},hashToOpenModal:eh.M_,primaryColor:ox.primary,onDone:()=>{var e;ob({pathname:oF,query:ov,hash:""},void 0,{scroll:!1}),null==o6||null===(e=o6.current)||void 0===e||e.resetChatId()},styles:leadgenStyles})]}):W.includes(eC.FF.HERO_BANNER_DEFAULT)||W.includes(eC.FF.HERO_BANNER_FULLWIDTH)?(0,n.tZ)(w.y,{...tl,keepRatio:!1,onBannerLoad:()=>oJ.current&&ti({idScroll:e.idScroll,loaded:!0}),layout:W.includes(eC.FF.HERO_BANNER_FULLWIDTH)||W.includes(eC.FF.FOOTER_BANNER)?H.b:G.j,sessionProps:e,bannerTracking:{"data-event-action":"Dynamic Banner Click"},"data-auto-slide":e.autoSlideTiming,autoSlide:!!e.autoSlideTiming,delayTime:e.autoSlideTiming}):W.includes(eC.FF.HEALTH_TOOL)?(0,n.tZ)(O.n,{data:e,applyH1:e.sessionId===oV,styles:e=>({...th&&{root:{backgroundColor:"transparent"}},...oM&&{root:{backgroundColor:"transparent",position:"relative",paddingBottom:"0 !important",[e.fn.smallerThan("sm")]:{"&:after":{content:'""',display:"block",height:0,paddingBottom:"70.66%",backgroundImage:"url(".concat(i.C.getAssetPath("tetAnKhang2026/bottom-mobile.png"),")"),backgroundSize:"cover",marginTop:20}},[e.fn.largerThan("sm")]:{"&:after":{content:'""',display:"block",height:0,paddingBottom:"32.29%",backgroundImage:"url(".concat(i.C.getAssetPath("tetAnKhang2026/bottom-desktop.png"),")"),backgroundSize:"cover",marginTop:"-5%"}}}}})}):W.includes(eC.FF.CONTENT_BANNER)?(0,n.tZ)(S.q,{data:e.listBanner,className:"wide-container",isSingleLayout:e.singleLayout,"data-vertical-layout":!e.singleLayout}):W.includes(eC.FF.HEALTH_TOOL_LIST)?(0,n.tZ)(k.y,{title:e.title,description:e.description,data:e.healthTools,innerClass:"wide-container"}):W.includes(eC.FF.VISION_SECTION)?(0,n.tZ)(B.T,{heading:e.title,description:e.description,image:e.image,innerClass:"narrow-container"}):W.includes(eC.FF.FOOTER_BANNER)?(0,n.tZ)("div",{className:"wide-container",children:(0,n.tZ)(b.M,{banner:{desktop:null===(C=e.imageBanner)||void 0===C?void 0:null===(h=C[0])||void 0===h?void 0:h.desktopBanner,mobile:null===(v=e.imageBanner)||void 0===v?void 0:null===(E=v[0])||void 0===E?void 0:E.mobileBanner},url:null===(y=e.imageBanner)||void 0===y?void 0:null===(f=y[0])||void 0===f?void 0:f.linkTo})}):W.includes(eC.FF.QUOTATION)?(0,n.tZ)(j.m,{color:ox.primary,wrapperProps:{...e.wrapperProps,bgColor:getSessionBackgroundColor(W,null===(T=e.wrapperProps)||void 0===T?void 0:T.bgColor)},data:e.quotations}):W.includes(eC.FF.SCHEDULED_EVENT)?(0,n.tZ)($._,{...e,applyH1:e.sessionId===oV}):W.includes(eC.FF.CONTENT_EXPERT)?(0,n.tZ)(Z.L,{...e,applyH1:e.sessionId===oV,wrapperPropsStyles:{styles:{...oA&&{header:{".title":{color:"#001AA9"},".description":{color:"#595959"}}}}}}):W.includes(eC.FF.CUSTOMIZED_BLOCK)?(0,n.tZ)(D.I,{data:{...e,backgroundColor:getSessionBackgroundColor(W,e.backgroundColor)}}):W.includes(eC.FF.CTA_BANNER)?(0,n.tZ)(A.t,{data:e,ratio:oR?oH?1.496:1300/2880:void 0,styles:{root:{...(oR||th)&&{backgroundColor:"transparent"}}}}):W.includes(eC.FF.TYPEFORM_INLINE)?(0,n.tZ)(ee.i,{data:{...e,backgroundColor:getSessionBackgroundColor(W,e.backgroundColor)}}):W.includes(eC.FF.FAQS)?(0,n.tZ)(eI.J,{...e,backgroundColor:getSessionBackgroundColor(W,e.backgroundColor),wrapperProps:{...e.wrapperProps,bgColor:getSessionBackgroundColor(W,(null===(N=e.wrapperProps)||void 0===N?void 0:N.bgColor)||e.backgroundColor)},applyH1:e.sessionId===oV}):W.includes(eC.FF.POLL)?(0,n.tZ)(q._,{data:{...e,backgroundColor:getSessionBackgroundColor(W,e.backgroundColor)},initialData:e.pollData,spotlightId:String((null==oi?void 0:oi.id)||""),applyH1:e.sessionId===oV}):W.includes(eC.FF.RATING_REVIEW)?(0,n.tZ)(Q.P,{...e,initialData:e.reviewsData,wrapperProps:{...e.wrapperProps,bgColor:getSessionBackgroundColor(W,(null===(x=e.wrapperProps)||void 0===x?void 0:x.bgColor)||e.backgroundColor)},applyH1:e.sessionId===oV},"rating-review-".concat(e.collectionId,"-").concat(t)):null)})},r)})),oL&&(0,n.tZ)(h.W,{children:(0,n.tZ)(s.x,{sx:e=>({padding:"0 0 40px",[e.fn.largerThan("sm")]:{padding:"20px 0 80px"}}),children:(0,n.tZ)(f.c,{})})})]})})}),!(null==oi?void 0:oi.disableAd)&&(0,n.BX)(C.o,{children:[(0,n.tZ)(E.FixedBottomAdBlock,{className:"carepath-bottom-ad",adUnitPath:ta,isMobile:oH,customTargetings:tc}),(0,n.tZ)(en.OutOfPageAd,{id:"div-gpt-out-of-page",adUnitPath:ta})]}),oK.length>0&&(0,n.tZ)(e_,{ref:o8,onOpen:()=>handleStopTrackingIdle(!0),isTypeForm:!!tt.mobileFormId,children:(0,n.tZ)(J.Y,{withoutSkeleton:!0,data:{...null==oK?void 0:oK[0],backgroundColor:(null===(eB=(0,eA.O)(oB))||void 0===eB?void 0:eB[eC.FF.EMBEDDING_RISKSCREENER])||(null==oK?void 0:oK[0].backgroundColor)},isDisabledAnimationOnMobile:!0,handleOnCloseMobile:()=>{var e;return null==o8?void 0:null===(e=o8.current)||void 0===e?void 0:e.close()},primaryColor:ox.primary,typeoformId:tt.mobileFormId})}),oB&&(0,n.tZ)(ez,{}),(null===(eR=oi.intensivePopup)||void 0===eR?void 0:null===(eN=eR.leavingPopup)||void 0===eN?void 0:eN.title)&&(null===(eZ=oi.intensivePopup)||void 0===eZ?void 0:null===(eP=eZ.leavingPopup)||void 0===eP?void 0:eP.message)&&(0,n.tZ)(eq,{ref:o3,backgroundColor:oi.intensivePopup.leavingPopup.backgroundColor,buttonColor:oi.intensivePopup.leavingPopup.buttonColor,titleColor:oi.intensivePopup.leavingPopup.titleColor,desktopImage:oi.intensivePopup.leavingPopup.desktopImage,mobileImage:oi.intensivePopup.leavingPopup.mobileImage,title:oi.intensivePopup.leavingPopup.title,message:oi.intensivePopup.leavingPopup.message,messageColor:oi.intensivePopup.leavingPopup.messageColor,ctaBtn:oi.intensivePopup.leavingPopup.ctaBtn,defaultSection:{hash:null==oX?void 0:null===(eD=oX[0])||void 0===eD?void 0:eD.idScroll,cta:null==oX?void 0:null===(eL=oX[0])||void 0===eL?void 0:eL.title,btnTracking:{dataEventCategory:"Service Connection",dataEventAction:"".concat(eA.e[null==oX?void 0:null===(eM=oX[0])||void 0===eM?void 0:eM.sessionLayout]||""," - Intent popup"),dataEventLabel:"".concat(tn.split("#")[0],"#").concat(decodeURI(null==oX?void 0:null===(eO=oX[0])||void 0===eO?void 0:eO.idScroll))}},onItemClick:onItemClick,onChange:handleStopTrackingIdle}),(0,n.tZ)(eX,{ref:o4,title:null==oi?void 0:null===(eW=oi.intensivePopup)||void 0===eW?void 0:null===(ew=eW.idlePopup)||void 0===ew?void 0:ew.title,backgroundColor:null==oi?void 0:null===(eY=oi.intensivePopup)||void 0===eY?void 0:null===(eV=eY.idlePopup)||void 0===eV?void 0:eV.backgroundColor,buttonColor:null==oi?void 0:null===(eQ=oi.intensivePopup)||void 0===eQ?void 0:null===(ej=eQ.idlePopup)||void 0===ej?void 0:ej.buttonColor,titleColor:null==oi?void 0:null===(e$=oi.intensivePopup)||void 0===e$?void 0:null===(eJ=e$.idlePopup)||void 0===eJ?void 0:eJ.titleColor,desktopImage:null==oi?void 0:null===(e1=oi.intensivePopup)||void 0===e1?void 0:null===(e0=e1.idlePopup)||void 0===e0?void 0:e0.desktopImage,mobileImage:null==oi?void 0:null===(e5=oi.intensivePopup)||void 0===e5?void 0:null===(e2=e5.idlePopup)||void 0===e2?void 0:e2.mobileImage,ctaBtn1:null==oi?void 0:null===(e3=oi.intensivePopup)||void 0===e3?void 0:null===(e4=e3.idlePopup)||void 0===e4?void 0:e4.ctaBtn1,ctaBtn2:null==oi?void 0:null===(e6=oi.intensivePopup)||void 0===e6?void 0:null===(e8=e6.idlePopup)||void 0===e8?void 0:e8.ctaBtn2,onItemClick:onItemClick,listItems:oX.filter(e=>e.sessionLayout!==eC.FF.CUSTOMIZED_NAVIGATOR).slice(0,2).map(e=>({title:e.title,hash:e.idScroll,btnTracking:{dataEventCategory:"Service Connection",dataEventAction:"".concat(eA.e[e.sessionLayout]||""," - Idle popup"),dataEventLabel:"".concat(tn.split("#")[0],"#").concat(e.idScroll)}}))}),op&&"1"===ov.external&&oz.length>0&&(0,n.tZ)(IntroCarePathModal,{onItemClick:onItemClick,hashToShow:(null==oz?void 0:null===(e7=oz[0])||void 0===e7?void 0:e7.idScroll)||(null==oz?void 0:null===(e9=oz[0])||void 0===e9?void 0:e9.hashtag)||""}),oN&&"true"===eG.env.NEXT_PUBLIC_ENABLE_AI_CHAT&&(0,n.tZ)(v.Z,{ref:o6,name:"Hello Sehat Expert",avatar:i.C.getAssetPath("soya/ai_avatar.png"),starterAvatarSize:128,showHighlightMessage:!0,cookieId:eh.wN,isShortVer:oH,widgetModalProps:{zIndex:99},onClickHighlightMess:()=>ob({pathname:oF,query:ov,hash:eh.M_},void 0,{shallow:!0,scroll:!1})}),oP&&(0,n.tZ)("a",{href:"https://hellobacsi.com/care/bac-si/thsbsnt-nguyen-hai-anh-13714/",target:"_blank",rel:"noopener noreferrer",className:"taganil-external-sticky","aria-label":"External link",children:(0,n.tZ)("div",{className:"taganil-external-sticky__bg","aria-hidden":!0})}),(0,n.tZ)(eU,{visible:oH})]})})]})}},"77u+":function(e,o,t){t.d(o,{O:function(){return getSpecifySessionBgByPath},e:function(){return a}});var n=t("rEaw");let a={[n.FF.ARTICLES]:"Read Related Articles",[n.FF.EMBEDDING_RISKSCREENER]:"Check Risk Screener",[n.FF.EMBEDDING_DOCTORS]:"Find a Doctor",[n.FF.CLINIC_LOCATORS]:"Find a Clinic",[n.FF.VIDEOS]:"Video Icon Click",[n.FF.CLICKABLE_BANNER]:"Dynamic CTA Click",[n.FF.EMBEDDING_RISKSCREENER_MULTI]:"Multi banner",[n.FF.COMMUNITY_WITH_POSTS]:"Together Embedded",[n.FF.ECOMMERCE_PRODUCS]:"Eshop Product Click",[n.FF.LEADGEN]:"Voucher Click",[n.FF.SOYA_EXTERNAL_LINK]:"Open Soya Page",[n.FF.CHAT_WITH_EXPERT]:"Chat with Doctor - Move to Middle Chat",[n.FF.SOYA_OPEN_CHAT]:"Ask the Expert - Start Chat",[n.FF.STATIC_BANNER]:"Custom Navigator",[n.FF.CUSTOMIZED_NAVIGATOR]:"Custom Navigator",[n.FF.CONTENT_EXPERT]:"Health Care Professional",[n.FF.HEALTH_TOOL]:"Health Tool Click",[n.FF.CUSTOMIZED_BLOCK]:"Customized Block",[n.FF.CTA_BANNER]:"CTA Banner",[n.FF.TYPEFORM_INLINE]:"Inline Typeform",[n.FF.FAQS]:"FAQ section",[n.FF.POLL]:"Poll",[n.FF.RATING_REVIEW]:"Rating & Review section"};function getSpecifySessionBgByPath(e){return e?{[n.FF.EMBEDDING_DOCTORS]:"transparent",[n.FF.EMBEDDING_RISKSCREENER]:"#00BEBF",[n.FF.CLICKABLE_BANNER]:"#E7FFFE",[n.FF.VIDEOS]:"#E7FFFE"}:null}},QGwO:function(e,o,t){t.d(o,{v:function(){return ContactUsTemplate}});var n=t("BGKE"),a=t("q1tI"),r=t("kSP5"),i=t("YXre"),l=t("CFP3"),s=t("Eso5"),d=t("SPK5"),c=t("OAL+"),p=t("dDsW"),u=t("09QT"),g=t("oQBk"),m=t("gHFm"),h=t("0VOb"),C=t("hH53"),E=t("P5LW"),v=t("+7X0"),b=t("H1c6"),F=t("pMur"),I=t("g0yS"),f=t("VLju"),y=t("C/sX"),S=t("cChf"),T=t("ZFu2"),k=t("RB7Y"),B=t("UEkr"),N=t("rIrU"),R=t("/npG"),P=(0,R.k)(e=>({formLabel:{},errorLabel:{marginTop:8},selectItem:{'&[data-selected="true"]':{backgroundColor:e.colors.blue[0]}},submitBtn:{display:"block",margin:"0 auto"}}));let _=(0,a.forwardRef)((e,o)=>{let{label:t,value:a,...r}=e;return(0,n.tZ)("div",{ref:o,...r,children:(0,n.BX)(d.k,{align:"center",gap:8,children:[(0,n.tZ)(b.F,{country:a,width:24,height:24}),(0,n.tZ)(F.T,{size:"p3",children:t})]},a)})}),SelectControl=e=>{let{defaultValue:o,value:t,onChange:r,...i}=e,[l,s]=(0,a.useState)(null);return(0,a.useEffect)(()=>{s(t||null)},[t]),(0,n.tZ)(b.S,{...i,value:l,onChange:e=>{s(e),null==r||r(e)},icon:l&&(0,n.tZ)(b.F,{width:16,height:16,country:l}),itemComponent:_})},Z=(0,a.forwardRef)((e,o)=>{let{loading:t,countryCode:r,onSubmit:i,...l}=e,{classes:d,theme:c}=P(void 0,{name:"ContactUsTemplate__ContactForm"}),{formatMessage:u}=(0,p.Z)(),{locale:g}=(0,E.h)(),m={name:"",email:"",country:r,phone:"",company:"",position:"",message:"",allowTerm:!1},h=(0,S.c)({validate:{name:(0,T.U)(u({id:"hhgContactPage.form.requireName",defaultMessage:"Please enter your name"})),email:e=>e?(0,B.oH)(e)?null:u({id:"hhgContactPage.form.requireValidMessage"}):u({id:"hhgContactPage.form.requireEmail",defaultMessage:"Please enter your email"}),country:(0,T.U)(u({id:"hhgContactPage.form.requireCountry",defaultMessage:"Please enter your country"})),company:(0,T.U)(u({id:"hhgContactPage.form.requireCompany",defaultMessage:"Please enter your company"})),position:(0,T.U)(u({id:"hhgContactPage.form.requirePosition",defaultMessage:"Please enter your position"})),message:(0,T.U)(u({id:"hhgContactPage.form.requireMessage",defaultMessage:"Please enter your message"})),phone:e=>e&&!(0,k.yf)(e)?u({id:"common.phone_invalid"}):null},initialValues:m});(0,a.useImperativeHandle)(o,()=>({reset:()=>{h.setValues(m)}})),(0,a.useEffect)(()=>{h.setFieldValue("country",r)},[r]);let C=v.m.map(e=>({label:e.countryName,value:e.countryCode}));return(0,n.tZ)(s.x,{...l,component:"form",onSubmit:h.onSubmit(e=>{let{allowTerm:o,...t}=e||{};i(t)}),children:(0,n.BX)(y.r,{children:[(0,n.BX)(y.r.Col,{span:12,children:[(0,n.tZ)(b.I,{label:(0,n.tZ)(F.T,{size:"p2",weight:"semiBold",className:d.formLabel,span:!0,children:u({id:"hhgContactPage.form.name"})}),...h.getInputProps("name"),error:void 0}),h.getInputProps("name").error&&(0,n.tZ)(b.e,{className:d.errorLabel,label:h.getInputProps("name").error})]}),(0,n.BX)(y.r.Col,{span:12,children:[(0,n.tZ)(b.I,{label:(0,n.tZ)(F.T,{size:"p2",weight:"semiBold",className:d.formLabel,span:!0,children:u({id:"hhgContactPage.form.email"})}),...h.getInputProps("email"),error:void 0}),h.getInputProps("email").error&&(0,n.tZ)(b.e,{className:d.errorLabel,label:h.getInputProps("email").error})]}),(0,n.BX)(y.r.Col,{span:12,children:[(0,n.tZ)(F.T,{size:"p2",weight:"semiBold",className:d.formLabel,span:!0,sx:{display:"block",marginBottom:5},children:u({id:"hhgContactPage.form.phone"})}),(0,n.tZ)(b.P,{defaultCountry:r,...h.getInputProps("phone")}),h.getInputProps("phone").error&&(0,n.tZ)(b.e,{className:d.errorLabel,label:h.getInputProps("phone").error})]}),(0,n.BX)(y.r.Col,{span:12,children:[(0,n.tZ)(b.I,{label:(0,n.tZ)(F.T,{size:"p2",weight:"semiBold",className:d.formLabel,span:!0,children:u({id:"hhgContactPage.form.company"})}),...h.getInputProps("company"),error:void 0}),h.getInputProps("company").error&&(0,n.tZ)(b.e,{className:d.errorLabel,label:h.getInputProps("company").error})]}),(0,n.BX)(y.r.Col,{span:12,children:[(0,n.tZ)(b.I,{label:(0,n.tZ)(F.T,{size:"p2",weight:"semiBold",className:d.formLabel,span:!0,children:u({id:"hhgContactPage.form.position"})}),...h.getInputProps("position"),error:void 0}),h.getInputProps("position").error&&(0,n.tZ)(b.e,{className:d.errorLabel,label:h.getInputProps("position").error})]}),(0,n.BX)(y.r.Col,{span:12,children:[(0,n.tZ)(SelectControl,{label:(0,n.tZ)(F.T,{size:"p2",weight:"semiBold",className:d.formLabel,span:!0,children:u({id:"hhgContactPage.form.country"})}),classNames:{item:d.selectItem},...h.getInputProps("country"),data:C,error:void 0}),h.getInputProps("country").error&&(0,n.tZ)(b.e,{className:d.errorLabel,label:h.getInputProps("country").error})]}),(0,n.BX)(y.r.Col,{span:12,children:[(0,n.tZ)(I.T,{label:(0,n.tZ)(F.T,{size:"p2",weight:"semiBold",className:d.formLabel,span:!0,children:u({id:"hhgContactPage.form.message"})}),...h.getInputProps("message"),error:void 0}),h.getInputProps("message").error&&(0,n.tZ)(b.e,{className:d.errorLabel,label:h.getInputProps("message").error})]}),(0,n.tZ)(y.r.Col,{span:12,children:(0,n.tZ)(b.d,{label:(0,n.tZ)(F.T,{size:"p2",className:d.formLabel,as:"div",weight:"semiBold",dangerouslySetInnerHTML:{__html:u({id:"hhgContactPage.form.termOfService"},{term:e=>{var o;return'\n ').concat(e,"\n ")},privacy:e=>{var o;return'\n ').concat(e,"\n ")}})}}),...h.getInputProps("allowTerm",{type:"checkbox"}),styles:{label:{cursor:"default",a:{color:c.fn.primaryColor()}}}})}),(0,n.tZ)(y.r.Col,{span:12,children:(0,n.tZ)(f.B,{disabled:!h.getInputProps("allowTerm").value,type:"submit",size:"lg",loading:t,className:d.submitBtn,children:u({id:"hhgContactPage.form.submit"})})})]})})});Z.displayName="ContactForm";var A=t("mYVa"),D=(0,R.k)(e=>({root:{[e.fn.largerThan("sm")]:{display:"flex",flexDirection:"column",gap:12,paddingBottom:80}},inner:{position:"relative",[e.fn.smallerThan("sm")]:{marginTop:24,backgroundColor:"#2b85f3",paddingBottom:40,"&:before":{content:'""',position:"absolute",top:0,bottom:"50%",left:0,right:0,backgroundColor:"#fff"}},[e.fn.largerThan("sm")]:{"&:before":{content:'""',backgroundColor:"#2b85f3",position:"absolute",top:"10%",left:0,right:0,height:292}}},innerContainer:{position:"relative",display:"flex",[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:40},[e.fn.largerThan("sm")]:{gap:120,justifyContent:"space-between"}},header:{[e.fn.largerThan("sm")]:{gap:32}},heading:{fontWeight:300,fontSize:(0,A.h)(24),lineHeight:(0,A.h)(32),[e.fn.largerThan("sm")]:{fontSize:(0,A.h)(28),lineHeight:(0,A.h)(40)}},logo:{width:120,height:120,[e.fn.smallerThan("sm")]:{display:"none"}},content:{backgroundColor:"#fff",boxShadow:"0px -4px 36px -8px rgba(39, 53, 66, 0.2), 0px 20px 36px -18px rgba(47, 61, 79, 0.3), 0px 30px 60px -12px rgba(60, 79, 97, 0.25)",padding:24,[e.fn.largerThan("sm")]:{maxWidth:480,padding:32}},info:{position:"absolute",zIndex:0,inset:0},infoInner:{"&[data-with-bg]":{backgroundColor:"#2b85f3"},height:292,width:"100%"},infoContainer:{display:"flex",justifyContent:"flex-end",alignItems:"center"},infoBoxWrapper:{[e.fn.largerThan("sm")]:{position:"relative",width:"100%"}},infoBox:{color:"#fff",width:"100%",[e.fn.largerThan("sm")]:{position:"absolute",inset:0,top:"10%",display:"flex",flexDirection:"column",justifyContent:"center",height:292}},contactInfo:{textTransform:"uppercase",fontWeight:700,lineHeight:(0,A.h)(24)},contactEmail:{color:"#fff",fontSize:(0,A.h)(16),lineHeight:(0,A.h)(24)},emailIcon:{width:24,height:24,marginRight:8,display:"inline-block",verticalAlign:"middle"}})),L=t("rEaw");let M={[L.MV.Vietnam]:"customer@hellobacsi.com",[L.MV.Malaysia]:"customer@hellodoktor.com",[L.MV.Indonesia]:"customer@hellosehat.com",[L.MV.PhilippinesEnglish]:"customer@hellodoctor.com.ph",[L.MV.PhilippinesTagalog]:"customer@hellodoctor.com.ph",[L.MV.Thailand]:"customer@hellokhunmor.com",[L.MV.Taiwan]:"admin@helloyishi.com.tw",[L.MV.Cambodia]:"customer@hellokrupet.com",[L.MV.Singapore]:"customer@hellojiankang.com",[L.MV.Myanmar]:"customer@hellosayarwon.com",[L.MV.India]:"customer@helloswasthya.com"},ContactUsTemplate=()=>{let{formatMessage:e}=(0,p.Z)(),{locale:o}=(0,E.h)(),t=o.split("-"),v=t[1],{classes:b}=D(void 0,{name:"ContactUsTemplate"}),[F,I]=(0,a.useState)(!1),[f,y]=(0,a.useState)(!1),S=M[o],T=(0,a.useRef)(null),handleCloseSuccess=()=>{var e;y(!1),null===(e=T.current)||void 0===e||e.reset()},onSubmit=async o=>{try{I(!0);let e=await (0,u.callApiNew)(g.PATHS.COMMON.POST_HHG_CONTACT_FORM,{method:"POST",data:{...o},headers:{Authorization:"Basic aGhnX2FkbWluX2NvbnRhY3Q6M1hPd1ZuV0xSb1cmV2VlMjM5clNIM1ps",Cookie:"hhg_content_feedback_user=5854396e273012d851d92ad2fa5d980b"}});if(null==e?void 0:e.success)y(!0);else throw Error("Failed Submit")}catch(o){(0,h.showNotification)({message:e({id:"notify.error.message",defaultMessage:"Đ\xe3 xảy ra lỗi, vui l\xf2ng thử lại"}),type:"danger"})}finally{I(!1)}};return(0,n.tZ)(i.T,{variant:i.C.LEADGEN,children:(0,n.BX)(n.HY,{children:[(0,n.BX)(s.x,{className:b.root,children:[(0,n.tZ)(m.W,{children:(0,n.BX)(d.k,{className:b.header,align:"center",justify:"space-between",children:[(0,n.tZ)("h1",{className:b.heading,children:e({id:"hhgContactPage.description"})}),(0,n.tZ)("img",{className:b.logo,loading:"lazy",src:r.C.getAssetPath("hhgContactPage/logo.webp"),alt:e({id:"hhgContactPage.description"})})]})}),(0,n.tZ)(s.x,{className:b.inner,children:(0,n.BX)(m.W,{className:b.innerContainer,children:[(0,n.tZ)(Z,{ref:T,countryCode:v,className:b.content,loading:F,onSubmit:onSubmit}),(0,n.tZ)(s.x,{className:b.infoBoxWrapper,children:(0,n.BX)(c.K,{spacing:16,className:b.infoBox,children:[(0,n.tZ)(s.x,{className:b.contactInfo,children:e({id:"hhgContactPage.form.extendInfo"})}),(0,n.BX)(s.x,{component:"a",href:"mailto:".concat(S),className:b.contactEmail,children:[(0,n.tZ)("img",{className:b.emailIcon,loading:"lazy",src:r.C.getAssetPath("hhgContactPage/email.svg"),alt:e({id:"hhgContactPage.description"})}),(0,n.BX)("span",{children:[" ",S]})]})]})})]})})]}),(0,n.tZ)(l.M,{opened:f,onClose:handleCloseSuccess,children:(0,n.tZ)(C._,{description:e({id:"hhgContactPage.successSubmit",defaultMessage:"Thank you for contacting us. Your request has been submitted successfully. We will respond as soon as possible."}),ctaText:e({id:"babyVaccineTool.closeBtn"}),onClose:handleCloseSuccess})})]})})}}}]);