"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8854],{kyGg:function(e,t,o){o.d(t,{V:function(){return getIconBySession}});var n=o("BGKE"),a=o("e6wM"),i=o("R3fp"),r=o("o5qa"),l=o("GwGV"),s=o("Tut/"),d=o("vXeZ"),c=o("VKit"),p=o("AayG"),u=o("Vpia"),g=o("8cky"),h=o("x/yG"),m=o("1MKM"),v=o("62OT"),C=o("RHNN"),f=o("ctYF"),b=o("oK97"),E=o("f4MD"),F=o("6ZcO"),I=o("IDes"),T=o("phQo"),y=o("WEaM"),S=o("rEaw"),B=o("WuBH"),N=o("QYzV"),k=o("+1D8"),P=o("Oro3"),Z=o("AeJ6"),R=o("C6zW"),A=o("Y5Er"),_=o("JaXN");let getIconBySession=e=>{let{isTaganil:t,isRoche:o,isCarePath:i,isSoya:r,isSimilac:l}=e;return{...L,...t?{[S.FF.CHAT_WITH_EXPERT]:(0,n.tZ)(a.Z,{})}:o?{[S.FF.EMBEDDING_DOCTORS]:(0,n.tZ)(C.Z,{}),[S.FF.EMBEDDING_RISKSCREENER]:(0,n.tZ)(m.Z,{}),[S.FF.CLICKABLE_BANNER]:(0,n.tZ)(v.Z,{}),[S.FF.ARTICLES]:(0,n.tZ)(f.Z,{})}:i?{[S.FF.EMBEDDING_DOCTORS]:(0,n.tZ)(g.Z,{}),[S.FF.EMBEDDING_RISKSCREENER]:(0,n.tZ)(Z.Z,{}),[S.FF.EMBEDDING_RISKSCREENER_MULTI]:(0,n.tZ)(Z.Z,{}),[S.FF.CLINIC_LOCATORS]:(0,n.tZ)(T.Z,{}),[S.FF.ARTICLES]:(0,n.tZ)(y.Z,{})}:l?{[S.FF.EMBEDDING_RISKSCREENER]:(0,n.tZ)(B.Z,{}),[S.FF.VIDEOS]:(0,n.tZ)(N.Z,{}),[S.FF.ARTICLES]:(0,n.tZ)(k.Z,{}),[S.FF.LEADGEN]:(0,n.tZ)(P.Z,{}),[S.FF.STATIC_BANNER]:(0,n.tZ)(A.Z,{})}:r?{[S.FF.LEADGEN]:(0,n.tZ)(I.Z,{})}:{}}},L={[S.FF.HERO_BANNER_DEFAULT]:(0,n.tZ)(_.Z,{}),[S.FF.HERO_BANNER_FULLWIDTH]:(0,n.tZ)(_.Z,{}),[S.FF.EMBEDDING_DOCTORS]:(0,n.tZ)(i.Z,{}),[S.FF.CLINIC_LOCATORS]:(0,n.tZ)(r.Z,{}),[S.FF.EMBEDDING_RISKSCREENER]:(0,n.tZ)(l.Z,{}),[S.FF.EMBEDDING_RISKSCREENER_MULTI]:(0,n.tZ)(l.Z,{}),[S.FF.VIDEOS]:(0,n.tZ)(s.Z,{isSolid:!0}),[S.FF.ARTICLES]:(0,n.tZ)(d.Z,{}),[S.FF.CLICKABLE_BANNER]:(0,n.tZ)(c.Z,{}),[S.FF.CHAT_WITH_EXPERT]:(0,n.tZ)(E.Z,{}),[S.FF.ECOMMERCE_PRODUCS]:(0,n.tZ)(b.Z,{}),[S.FF.COMMUNITY_WITH_POSTS]:(0,n.tZ)(u.Z,{}),[S.FF.LEADGEN]:(0,n.tZ)(h.Z,{}),[S.FF.SOYA_EXTERNAL_LINK]:(0,n.tZ)(F.Z,{}),[S.FF.SOYA_OPEN_CHAT]:(0,n.tZ)(a.Z,{}),[S.FF.HEALTH_TOOL]:(0,n.tZ)(p.Z,{}),[S.FF.QUOTATION]:(0,n.tZ)(R.Z,{}),[S.FF.CONTENT_EXPERT]:(0,n.tZ)(a.Z,{})}},rDID:function(e,t,o){o.d(t,{L:function(){return CarePathDefaultTemplate}});var n=o("BGKE"),a=o("AeFk"),i=o("q1tI"),r=o("owZr"),l=o("mYVa"),s=o("Eso5"),d=o("ns0B"),c=o.n(d),p=o("Vvt1"),u=o.n(p),g=o("09QT"),h=o("oQBk"),m=o("gHFm"),v=o("CBW8"),C=o("lXMY"),f=o("2J3H"),b=o("8LNv"),E=o("gJqh"),F=o("hhen"),I=o("o4te"),T=o("Gwuz"),y=o("zPS3"),S=o("otlE"),B=o("zh4t"),N=o("IA2M"),k=o("2BtW"),P=o("Towb"),Z=o("6MdI"),R=o("Itmt"),A=o("nYtM"),_=o("Rorf"),L=o("RpeC"),D=o("SUvA"),x=o("IMlG"),O=o("ADvN"),w=o("jxNK"),M=o("5bkN"),H=o("l+VJ"),W=o("fzca"),G=o("uzt2"),z=o("wfjy"),U=o("XXdW"),V=o("6p8/"),K=o("41eD"),X=o("OB5W"),Y=o("tddD"),q=o("2Xpg"),j=o("DOR+"),Q=o("iI4N"),J=o("lYwf"),$=o("i9y0"),ee=o("du+H"),et=o("Uj9i"),eo=o("4GBr"),en=o("eO6u"),ea=o("c4YP"),ei=o("2su4"),er=o("iv2E"),el=o("raAP"),es=o("DslX"),ed=o("hXNO"),ec=o("6vHH"),ep=o("P5LW"),eu=o("rIrU"),eg=o("CF0j"),eh=o("rEaw"),em=o("tjQ2"),ev=o("VIdu"),eC=o("pK5Y"),ef=o("mU93"),eb=o("WraA"),eE=o("kyGg"),eF=o("/npG"),eI=(0,eF.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=o("GqLv"),ey=o("RZSM"),eS=o("Iblh"),eB=o("p46w"),eN=o.n(eB);let ek="intro_banner_modal",IntroCarePathModal=e=>{let{onItemClick:t,hashToShow:o}=e,[a,{close:s,open:d}]=(0,eS.q)(!1),c=(0,el.U)(),p=(0,i.useCallback)(()=>{eN().set(ek,"true"),o===encodeURIComponent("ปรึกษาคุณหมอ").toLowerCase()&&(window.history.replaceState({},"",window.location.pathname),t(o)),s()},[]);return(0,i.useEffect)(()=>{eN().get(ek)||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)(ey.o,{ratio:972/681,sx:{cursor:"pointer"},onClick:p,children:(0,n.tZ)("img",{loading:"lazy",src:r.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 eP=(0,i.forwardRef)((e,t)=>{let{isTypeForm:o,onOpen:a,children:r}=e,s=(0,ed.d)(),[d,c]=(0,i.useState)(!1);return(0,i.useImperativeHandle)(t,()=>({open:()=>c(!0),close:()=>c(!1),isOpen:d})),(0,i.useEffect)(()=>{if(s){let e=document.querySelectorAll(".zalo-chat-widget"),t=document.querySelectorAll(".woot--bubble-holder");if(e)for(let t of e)t.style.display=d?"none":"block";if(t)for(let e of t)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:o,styles:e=>({content:{[e.fn.smallerThan("sm")]:{...o&&{borderRadius:0}},[e.fn.largerThan("sm")]:{borderRadius:(0,l.h)(24),...o&&{"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%",...o&&{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:{...o&&{right:-11,top:-9,svg:{width:"".concat((0,l.h)(32)," !important"),height:"".concat((0,l.h)(32)," !important")}}}}),size:o?400:640,title:"",withCloseButton:o||!s,children:r})}),eZ=o("O/o9");let SectionWrapper=e=>{let{children:t,onInView:o,...a}=e,r=(0,i.useRef)(null),{ref:l,inView:d}=(0,eZ.YD)({rootMargin:"-120px 0px 0px 0px"});return(0,i.useEffect)(()=>{null==o||o(d)},[d]),(0,n.tZ)(s.x,{...a,"data-in-view":d,ref:r,children:(0,n.tZ)(s.x,{ref:l,children:t})})};var eR=o("77u+"),eA=o("OAL+"),e_=o("05Ua"),eL=o("o0qI"),eD=o("5nj8"),ex=(0,eF.k)((e,t)=>{let{primaryColor:o=e.fn.primaryColor(),bodyColor:n,bodyBg:a,detectPage:i}=t,{isCarePath:r,isDan:s,isSimilac:d}=i,c=(0,eD.oo)(o,!0),p=(0,eD.At)(c.r,c.g,c.b),u=(0,eD.Nv)(p[0],p[1]+24,p[2]-4),g=r?"rgb(".concat(u[0],",").concat(u[1],",").concat(u[2],")"):o,h=r?(0,eD.Nv)(p[0],p[1]+40,p[2]-4):(0,eD.Nv)(p[0],p[1]+1,p[2]-4),m="rgb(".concat(h[0],",").concat(h[1],",").concat(h[2],")");return{root:{...n&&{backgroundColor:n},...a&&{backgroundImage:"url(".concat(a,")"),backgroundSize:"cover",backgroundPosition:"top left"},...o&&{'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:m,...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:t,spotlight:o,children:a,detectPage:r,className:d,styles:c,classNames:p,...u}=e,{dispatch:g}=(0,i.useContext)(eL.I),{isRoche:h}=r,{classes:m,cx:v}=ex({primaryColor:t.primary||"",bodyColor:h?"#FBF0F3":void 0,detectPage:r},{name:"CarePathDefaultTemplate__Wrapper",styles:c,classNames:p});return(0,i.useEffect)(()=>{var e,t,n;return(null==o?void 0:null===(t=o.integrates3rdParty)||void 0===t?void 0:null===(e=t.zaloConfig)||void 0===e?void 0:e.oaid)&&g({type:e_.H.SET_ZALO_CONFIG,payload:{oaid:o.integrates3rdParty.zaloConfig.oaid,message:"rất vui được hỗ trợ bạn."}}),(null==o?void 0:null===(n=o.integrates3rdParty)||void 0===n?void 0:n.chatwoodToken)&&g({type:e_.H.SET_CHATWOOT_WEBSITE_TOKEN,payload:o.integrates3rdParty.chatwoodToken}),()=>{g({type:e_.H.SET_ZALO_CONFIG,payload:null}),g({type:e_.H.SET_CHATWOOT_WEBSITE_TOKEN,payload:null})}},[]),(0,n.tZ)(n.HY,{children:(0,n.tZ)(s.x,{className:v(d,m.root),...u,children:(0,n.tZ)(eA.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 eO=o("8N3T"),ew=o("OWiU"),eM=o("yNk5");let eH=u()(()=>Promise.all([o.e(5231),o.e(7797),o.e(5454),o.e(5481),o.e(2354),o.e(9803),o.e(5349),o.e(4148),o.e(2509),o.e(1533),o.e(1108),o.e(9124),o.e(4190),o.e(5464),o.e(8261),o.e(8841),o.e(9353),o.e(7730),o.e(3929),o.e(7884),o.e(137),o.e(4414),o.e(4001),o.e(7613),o.e(8098),o.e(3416),o.e(2500),o.e(1570),o.e(3506),o.e(1413),o.e(4846),o.e(2233),o.e(1058),o.e(5638),o.e(3295),o.e(1538),o.e(6629),o.e(7152),o.e(5684),o.e(2574),o.e(2513),o.e(5238),o.e(7644),o.e(6962),o.e(4050),o.e(6638),o.e(7741),o.e(1137),o.e(2433),o.e(9689),o.e(5385),o.e(3564),o.e(3158),o.e(8320),o.e(5641),o.e(7454),o.e(7004),o.e(4758),o.e(6219),o.e(17),o.e(8990),o.e(4067),o.e(9487),o.e(9083),o.e(1520),o.e(270),o.e(7596),o.e(8217),o.e(7543),o.e(2835),o.e(2507),o.e(6885),o.e(7859),o.e(5970),o.e(2730),o.e(6287),o.e(7682),o.e(1551),o.e(4870),o.e(9922),o.e(3133),o.e(612),o.e(2002),o.e(1880),o.e(7471),o.e(7165),o.e(8854),o.e(5451),o.e(8612)]).then(o.bind(o,"E7r1")).then(e=>e.default),{loadableGenerated:{webpack:()=>["E7r1"]},ssr:!1}),eW=(0,i.forwardRef)(function(e,t){return(0,n.tZ)(eH,{...e,stickyRef:t})}),eG=u()(()=>Promise.all([o.e(4846),o.e(2233),o.e(1058),o.e(5638),o.e(3295),o.e(1538),o.e(6629),o.e(7152),o.e(5684),o.e(2574),o.e(2513),o.e(5238),o.e(7644),o.e(6962),o.e(4050),o.e(6638),o.e(7741),o.e(1137),o.e(2433),o.e(9689),o.e(5385),o.e(3564),o.e(3158),o.e(8320),o.e(5641),o.e(7454),o.e(7004),o.e(4758),o.e(6219),o.e(17),o.e(8990),o.e(4067),o.e(9487),o.e(9083),o.e(1520),o.e(270),o.e(7596),o.e(8217),o.e(7543),o.e(2835),o.e(2507),o.e(6885),o.e(7859),o.e(5970),o.e(2730),o.e(6287),o.e(7682),o.e(1551),o.e(4870),o.e(9922),o.e(3133),o.e(612),o.e(2002),o.e(1880),o.e(7471),o.e(7165),o.e(8854),o.e(5451),o.e(8612)]).then(o.bind(o,"mFqs")).then(e=>e.HpvBanner),{loadableGenerated:{webpack:()=>["mFqs"]},ssr:!1}),ez=u()(()=>Promise.all([o.e(9409),o.e(6259),o.e(1818),o.e(7519),o.e(761),o.e(2189),o.e(5231),o.e(7797),o.e(5454),o.e(5481),o.e(2354),o.e(9803),o.e(5349),o.e(4148),o.e(2509),o.e(1533),o.e(1108),o.e(9124),o.e(4190),o.e(5464),o.e(8261),o.e(8841),o.e(9353),o.e(7730),o.e(3929),o.e(7884),o.e(137),o.e(4414),o.e(4001),o.e(7613),o.e(8098),o.e(3416),o.e(2500),o.e(1570),o.e(3506),o.e(1413),o.e(4846),o.e(2233),o.e(1058),o.e(5638),o.e(3295),o.e(1538),o.e(6629),o.e(7152),o.e(5684),o.e(2574),o.e(2513),o.e(5238),o.e(7644),o.e(6962),o.e(4050),o.e(6638),o.e(7741),o.e(1137),o.e(2433),o.e(9689),o.e(5385),o.e(3564),o.e(3158),o.e(8320),o.e(5641),o.e(7454),o.e(7004),o.e(4758),o.e(6219),o.e(17),o.e(8990),o.e(4067),o.e(9487),o.e(9083),o.e(1520),o.e(270),o.e(7596),o.e(8217),o.e(7543),o.e(2835),o.e(2507),o.e(6885),o.e(7859),o.e(5970),o.e(2730),o.e(6287),o.e(7682),o.e(1551),o.e(4870),o.e(9922),o.e(3133),o.e(612),o.e(2002),o.e(1880),o.e(7471),o.e(7165),o.e(8854),o.e(5451),o.e(8612)]).then(o.bind(o,"Wbwt")).then(e=>e.BackToTop),{loadableGenerated:{webpack:()=>["Wbwt"]},ssr:!1}),eU=u()(()=>Promise.all([o.e(9409),o.e(6259),o.e(1818),o.e(7519),o.e(761),o.e(2189),o.e(4846),o.e(2233),o.e(1058),o.e(5638),o.e(3295),o.e(1538),o.e(6629),o.e(7152),o.e(5684),o.e(2574),o.e(2513),o.e(5238),o.e(7644),o.e(6962),o.e(4050),o.e(6638),o.e(7741),o.e(1137),o.e(2433),o.e(9689),o.e(5385),o.e(3564),o.e(3158),o.e(8320),o.e(5641),o.e(7454),o.e(7004),o.e(4758),o.e(6219),o.e(17),o.e(8990),o.e(4067),o.e(9487),o.e(9083),o.e(1520),o.e(270),o.e(7596),o.e(8217),o.e(7543),o.e(2835),o.e(2507),o.e(6885),o.e(7859),o.e(5970),o.e(2730),o.e(6287),o.e(7682),o.e(1551),o.e(4870),o.e(9922),o.e(3133),o.e(612),o.e(2002),o.e(1880),o.e(7471),o.e(7165),o.e(8854),o.e(5451),o.e(8612)]).then(o.bind(o,"LpP+")).then(e=>e.default),{loadableGenerated:{webpack:()=>["LpP+"]},ssr:!1}),eV=(0,i.forwardRef)(function(e,t){return(0,n.tZ)(eU,{...e,popupRef:t})}),eK=u()(()=>Promise.all([o.e(4846),o.e(2233),o.e(1058),o.e(5638),o.e(3295),o.e(1538),o.e(6629),o.e(7152),o.e(5684),o.e(2574),o.e(2513),o.e(5238),o.e(7644),o.e(6962),o.e(4050),o.e(6638),o.e(7741),o.e(1137),o.e(2433),o.e(9689),o.e(5385),o.e(3564),o.e(3158),o.e(8320),o.e(5641),o.e(7454),o.e(7004),o.e(4758),o.e(6219),o.e(17),o.e(8990),o.e(4067),o.e(9487),o.e(9083),o.e(1520),o.e(270),o.e(7596),o.e(8217),o.e(7543),o.e(2835),o.e(2507),o.e(6885),o.e(7859),o.e(5970),o.e(2730),o.e(6287),o.e(7682),o.e(1551),o.e(4870),o.e(9922),o.e(3133),o.e(612),o.e(2002),o.e(1880),o.e(7471),o.e(7165),o.e(8854),o.e(5451),o.e(8612)]).then(o.bind(o,"I1O0")).then(e=>e.default),{loadableGenerated:{webpack:()=>["I1O0"]},ssr:!1}),eX=(0,i.forwardRef)(function(e,t){return(0,n.tZ)(eK,{...e,popupRef:t})}),CarePathDefaultTemplate=e=>{var t,o,d,p,u,eF,eT,ey,eS,eB,eN,ek,eZ,eA,e_,eL,eD,ex,eH,eU,eK,eY,eq,ej,eQ,eJ,e$,e0,e1,e2,e5;let e4,e8,e3,e6;let{spotlight:e7,footerInfo:e9,dataNavMenuContent:te,hideSticky:tt,stickyNav:to,hasIntroCarepathModal:tn,isAppPage:ta,styles:ti,classNames:tr,isInline:tl,...ts}=e,{locale:td,query:tc,push:tp,pathname:tu,asPath:tg}=(0,ep.h)(),{classes:th,cx:tm}=eI(void 0,{name:"CarePathDefaultTemplate",styles:ti,classNames:tr}),tv=(0,es.d)(null==e7?void 0:e7.keyID),{isNestle:tC,isCarePath:tf,isRoche:tb,isSoya:tE,isNan:tF,isTaganil:tI,isSimilac:tT,isTiki:ty,isVinamilk:tS,isConCung:tB,isPfizer:tN,isTetAnKhang2026:tk,isThObesity:tP,isColosBaby:tZ}=tv,tR=tE?{primary:"#EC1B2E",secondary:"#F1AF55",tertiary:"#EC1B2E",quaternary:"#EC1B2E"}:null==e7?void 0:e7.colorPatterns,tA=(0,ed.d)(),{originListSessions:t_,heroBanner:tL,listRiskscreener:tD,listClickable:tx,listDoctorEmbedSessions:tO,heading:tw}=(0,i.useMemo)(()=>{let e="",t=e7.listSessions||[],o=[],n=[],a=[],i=[];return t.map(t=>{G.F0.includes(null==t?void 0:t.sessionLayout)?o.push(t):(t.sessionLayout===eh.FF.EMBEDDING_RISKSCREENER?n.push(t):t.sessionLayout===eh.FF.CLICKABLE_BANNER?a.push(t):t.sessionLayout===eh.FF.EMBEDDING_DOCTORS&&i.push(t),(null==t?void 0:t.title)&&!e&&![eh.FF.EMBEDDING_RISKSCREENER,eh.FF.CLINIC_LOCATORS,eh.FF.LEADGEN,eh.FF.HERO_BANNER_FULLWIDTH].includes(t.sessionLayout)&&(e=t.sessionId))}),{originListSessions:t,heroBanner:null==o?void 0:o[0],listRiskscreener:n,listClickable:a,listDoctorEmbedSessions:i,heading:e}},[]),tM=(null==tL?void 0:tL.navigating)||[],tH=(0,i.useMemo)(()=>{let e=[],t=tM.map(e=>e.idScroll);return t_.map((o,n)=>{(!tL||0!==n)&&(t.includes(o.idScroll)?e.push([o]):0===e.length?e.push([o]):e[e.length-1]&&e[e.length-1].push(o))}),e},[t_]),tW=(0,i.useRef)(t_.slice(0,-1).map(e=>({idScroll:e.idScroll,loaded:e.sessionLayout!==eh.FF.HERO_BANNER_FULLWIDTH}))),tG=tO.length>0,tz=(0,i.useRef)({}),tU=(0,i.useRef)(""),tV=(0,i.useMemo)(()=>[eh.FF.ARTICLES,eh.FF.EMBEDDING_RISKSCREENER_MULTI,eh.FF.CUSTOMIZED_BLOCK],[]),tK=(0,ew.FI)(tM,tR),tX=(0,i.useRef)(null),tY=(0,i.useRef)(null),tq=(0,i.useRef)(null),tj=(0,i.useRef)(null),tQ=(0,i.useRef)(null),tJ=(0,i.useRef)(null),t$=(0,i.useRef)(null),t0=(0,i.useRef)([]),t1=(0,es.d)(null==e7?void 0:e7.keyID),t2=(0,eE.V)(t1),t5=(0,i.useRef)(!1),t4=(0,i.useMemo)(()=>{let e=eO.iK.filter(e=>e.asPath.toLowerCase()===encodeURI(e7.permalink).toLowerCase());return e.length>0?e[0]:{mobileFormId:"",desktopFormId:""}},[]),t8=(0,el.U)(),t3=(0,ev.od)({countryAdTag:(0,ev.Em)(td,{isMobile:tA}),contentAdTag:{result:"Spotlight",redundant:!0}}),leadgenStyles=e=>({...tT&&"/chien-binh-me-sinh-mo/me-mang-thai/"!==tg&&{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"}}},...tE&&{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}}}}),t6=(0,i.useCallback)(e=>tW.current.findIndex(t=>t.idScroll===e),[tW]),t7=(0,i.useCallback)(e=>{let{idScroll:t,loaded:o=!1}=e,n=t6(t);if(n>-1){o&&(tW.current[n].loaded=!0);let e=tW.current.slice(0,n+1).filter(e=>!e.loaded);0===e.length&&(onItemClick(tU.current),tU.current="")}},[]);(0,i.useEffect)(()=>{let e=document.getElementsByTagName("body")[0];return e.classList.add("carepath-body"),tI&&e.classList.add("taganil-page"),()=>{e.classList.remove("carepath-body"),tI&&e.classList.remove("taganil-page")}},[tI]);let onItemClick=e=>{var t;null===(t=tY.current)||void 0===t||t.setCanScroll(!1),(0,ew.rE)({hash:e.includes("%")?e:encodeURIComponent(e),isMobile:tA,callback:()=>{var e;return null===(e=tY.current)||void 0===e?void 0:e.setCanScroll(!0)}})},t9={colorArr:tK,mappingIconList:t2},oe={onNavClick:(e,t)=>{var o,n,a;console.log({abcdefi:e}),e.sessionLayout===eh.FF.TOP?window.scrollTo({top:0,behavior:"smooth"}):e.sessionLayout===eh.FF.LEADGEN?(null==t||t.preventDefault(),(null==tz?void 0:null===(o=tz.current)||void 0===o?void 0:o[e.idScroll])?tz.current[e.idScroll].openModal():onItemClick(e.idScroll)):e.sessionLayout===eh.FF.EMBEDDING_RISKSCREENER?(null==t||t.preventDefault(),null==tJ||null===(n=tJ.current)||void 0===n||n.open()):e.sessionLayout===eh.FF.SOYA_OPEN_CHAT?(null==t||t.preventDefault(),null==t$||null===(a=t$.current)||void 0===a||a.setShowWidget(!0)):e.url||(null==t||t.preventDefault(),onItemClick(e.idScroll))}},ot={mappingIconList:t2,dataActionBySession:eR.e,onItemClick,...oe},oo={Is_Sponsored:[1],Is_Expert:[(null==e7?void 0:null===(d=e7.expert)||void 0===d?void 0:null===(o=d.experts)||void 0===o?void 0:null===(t=o[0])||void 0===t?void 0:t.id)?1:0],Is_Affiliate:[0],Brand:(null==e7?void 0:null===(p=e7.sponsor)||void 0===p?void 0:p.map(e=>c()(e.title||"")))||[]},on=(e7.sponsor||[]).length>0,oa=e7.listGroup.length>1,oi=(0,ec.Y)(e7.adsOnArticles||{}),handleStopTrackingIdle=e=>{var t,o,n;e?(null==tj||null===(t=tj.current)||void 0===t||t.close(),null==tj||null===(o=tj.current)||void 0===o||o.stopTracking(!0)):null==tj||null===(n=tj.current)||void 0===n||n.stopTracking(!1)},or=(0,n.tZ)(eW,{ref:tq,listSessions:t_,navigating:tM,colorShade:tR,colorArr:tE?["#F1AF55","#EC1B2E","#EC1B2E","#EC1B2E"]:tK,activeColor:tR.primary,mappingIconList:t2,onItemClick,sponsoredBy:e7.sponsor,isAppPage:ta,logo:null==e7?void 0:e7.logo,...oe,dataActionBySession:(()=>{let e={};return Object.keys(eR.e).map(t=>{e[t]="".concat(eR.e[t]," - Header Navigate")}),e})(),mappingIconList:t2,styles:()=>({sponsor:{...!oa&&{order:1}},navigator:{...!oa&&{order:2}},navigatorItem:{...tF&&{'&[data-is-selected="true"]':{backgroundColor:"#92682a"}}}}),children:to});return(0,n.BX)(ef.F.Provider,{value:{colorArr:tK,navigating:tM,mappingIconList:t2,detectPage:tv,activeTheme:tR,keyID:(null==e7?void 0:e7.keyID)||""},children:[(0,n.tZ)(ea.A,{servicePageTrackingParams:{pageId:e7.postName,audienceId:e7.groupIdActive||"",funnelId:e7.additionalSlugActive||""}}),(0,n.tZ)(ei.x,{title:null==e7?void 0:e7.postTitle,description:null==e7?void 0:e7.postTitle,image:eu.CX[td].HOMEPAGE_IMAGE,isSponsored:tA&&(null==e7?void 0:e7.isSponsor),sponsoredType:"content",sponsoredBy:tA?null==e7?void 0:e7.sponsor:void 0,SEOData:{title:null==e7?void 0:e7.postTitle,description:null==e7?void 0:e7.postTitle,apiMetaData:null==e7?void 0:e7.metaTag,isIndexable:!0},type:"profile",footerInfo:e9,languageOptions:(null==e7?void 0:e7.translateOptions)||[],dataNavMenuContent:te,subHead:tt?void 0:or,isInline:tl,children:(0,n.BX)(em.Ep,{init:{currentArticle:e7},children:[!(null==e7?void 0:e7.disableAd)&&(0,n.tZ)(v.o,{children:(0,n.tZ)(ee.MastheadAd,{adUnitPath:t3,className:"spotlight-masthead ".concat(null==e7?void 0:e7.type,"-masthead"),hasPlaceholder:oi})}),(0,n.tZ)(en.Yr,{className:tm(th.root,"service-connection-page"),style:{minHeight:(0,l.h)(610),marginBottom:0},children:(0,n.tZ)(Wrapper,{className:th.wrapper,spotlight:e7,detectPage:t1,activeTheme:tR,...ts,styles:e=>({root:{...tF&&{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%)"}},...tk&&{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}}},...tZ&&{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}}},...tZ&&{[e.fn.smallerThan("sm")]:{'[data-none-bg-session="true"]':{paddingTop:"0 !important"}}}}}),children:(0,n.BX)(k.Z,{className:th.sectionList,ref:tY,disableScrollTo:!0,onVisible:e=>{var t,o;null==tq||null===(t=tq.current)||void 0===t||t.setSelectedSection(e);let n="",a=tM.findIndex(t=>t.idScroll===e&&(n=t.sessionLayout,!0));n===eh.FF.EMBEDDING_RISKSCREENER&&handleStopTrackingIdle(!0);let i=a===tM.length-1?null==tM?void 0:tM[0]:tM[a+1];null==tQ||null===(o=tQ.current)||void 0===o||o.setSuggestSection({hash:i.idScroll,cta:null==i?void 0:i.title,btnTracking:{dataEventCategory:"Service Connection",dataEventAction:"".concat(eR.e[i.sessionLayout]||""," - Intent popup"),dataEventLabel:"".concat(t8.split("#")[0],"#").concat(decodeURI(i.idScroll))}})},children:[tL&&(()=>{var e;let t=tL.sessionLayout,o=t.includes(eh.FF.HERO_BANNER_DEFAULT)&&tL.isCtaBanner,a=!tb&&!(tf||tT),i=a?e=>(0,n.tZ)(U.g,{...e,useBgColor:tE,styles:e=>({...tE&&{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(r.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(r.C.getAssetPath("soya/comming-soon-mobile.png"),")")}},p:{opacity:.5,filter:"blur(4px)",[e.fn.largerThan("sm")]:{filter:"blur(6px)"}},".img-wrapper":{opacity:.5}}}}})}):tb?K.X:z.F;return(0,n.BX)(s.x,{"data-id-scroll":"","data-section-id":t,sx:e=>({...o&&{backgroundColor:e.colors.neutral[0]},...tk&&{[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(r.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(r.C.getAssetPath("tetAnKhang2026/right-side.png"),")"),backgroundSize:"contain",backgroundRepeat:"no-repeat"}}}}),children:[(0,n.tZ)(m.W,{children:(0,n.BX)(s.x,{sx:e=>({[e.fn.largerThan("sm")]:{display:"flex",justifyContent:"space-between"}}),children:[oa?(0,n.tZ)(eC.a,{spotlight:e7}):tL.isCtaBanner?(0,n.tZ)(s.x,{sx:e=>({height:(0,l.h)(20),[e.fn.largerThan("sm")]:{height:(0,l.h)(40)}})}):null,on&&!tA&&(0,n.tZ)(T.StickySponsoredBy,{isCollapsed:!1,sponsoredType:"content",sponsoredBy:e7.sponsor,isMobile:tA,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:tX,"data-bg-session":!0,children:tL.sessionLayout===eh.FF.HERO_BANNER_APP?(0,n.tZ)(S.j,{title:tL.title,banner:null==tL?void 0:null===(e=tL.banner)||void 0===e?void 0:e.desktop,headerDescription:tL.headerDescription,innerClass:"wide-container",descInnerClass:"narrow-container",logo:null==e7?void 0:e7.logo,onNavClick:ot.onNavClick}):(0,n.tZ)(w.y,{...t9,ratio:tA&&ty?1.875:void 0,onItemClick:onItemClick,hasSociaShare:null==e7?void 0:e7.hasSocialShare,layout:e=>o?(0,n.tZ)(M.c,{...e,mappingIconList:t2,listBanner:tL.listBanner,navigatorProps:{...ot,itemComponent:function(e){return(0,n.tZ)(V.s,{...e,useImgAsFullBg:tC||tF,showBrushPattern:!tA&&tf,...tC&&{isQuare:!1},styles:()=>({...tC&&{root:{...3===tM.length&&{"&:first-of-type":{width:"100%"}}},exploreLink:{color:"#FAEEC3"}}})})}},autoSlide:!!tL.autoSlideTiming,delayTime:tL.autoSlideTiming}):t.includes(eh.FF.HERO_BANNER_FULLWIDTH)?(0,n.tZ)(H.b,{...e,autoSlide:!!tL.autoSlideTiming,delayTime:tL.autoSlideTiming,hideDisclaimerOnMobile:a,navigatorProps:{...ot,itemComponent:i},onBannerLoad:()=>tU.current&&t7({idScroll:tL.idScroll,loaded:!0}),styles:e=>({...tk&&{navigatorWrapper:{backgroundColor:"transparent"},navigatorItem:{img:{maxWidth:48,maxHeight:48},".img-wrapper":{backgroundColor:"transparent",width:48,height:48},[e.fn.largerThan("sm")]:{flexDirection:"row",gap:16,padding:16,img:{maxWidth:64,maxHeight:64},".img-wrapper":{backgroundColor:"transparent",width:64,height:64},".mantine-CarePathHeroBannerNavigatorItemFlatIcon-title":{fontSize:(0,l.h)(22),lineHeight:(0,l.h)(32),letterSpacing:"-0.6px"}}}},...tZ&&{gap:0,navigatorWrapper:{backgroundColor:"transparent"},navigatorItem:{gap:0,padding:16,img:{maxWidth:64,maxHeight:48,marginBottom:-8,marginRight:-2},".img-wrapper":{backgroundColor:"transparent",width:"auto",height:"auto"},".mantine-CarePathHeroBannerNavigatorItemFlatIcon-title":{color:"#000",fontWeight:600,fontSize:(0,l.h)(15),lineHeight:(0,l.h)(24),letterSpacing:"-0.4px"},[e.fn.largerThan("sm")]:{flexDirection:"row",gap:0,padding:16,img:{maxWidth:76,maxHeight:64,marginBottom:-10,marginRight:-2},".img-wrapper":{backgroundColor:"transparent",width:"auto",height:"auto"},".mantine-CarePathHeroBannerNavigatorItemFlatIcon-title":{fontSize:(0,l.h)(17),lineHeight:(0,l.h)(24)}}}},...tF&&{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)(W.j,{...e,navigatorProps:{...ot,itemComponent:tb?K.X:tf?z.F:U.g}}),sessionProps:tL,styles:e=>({mainBannerCtaBtn:{[e.fn.smallerThan("sm")]:{...tb&&{paddingLeft:0,paddingRight:0}}},mainBannerCtaBtnRightIcon:{[e.fn.smallerThan("sm")]:{...tb&&{display:"none"}}},navigatorWrapper:{...tE&&{backgroundColor:"transparent"}}})})})]},tL.sessionLayout)})(),(e4=0,e8=0,e3=0,e6=0,tH.map((e,t)=>{let o=e[0],i=null==o?void 0:o.idScroll;return(0,n.tZ)(s.x,{"data-bg-session":tV.includes(i),"data-id-scroll":i,"data-section-index":t,className:th.section,sx:e=>({...tk&&{[e.fn.largerThan("sm")]:{position:"relative"}}}),children:e.map((e,t)=>{var o,d,c,p,u,m,v,C,f,I;let T=e.sessionLayout;return(0,a.az)(s.x,{id:e.hashtag||e.idScroll,...e.sessionLayout===eh.FF.CONTENT_BANNER&&{"data-vertical-layout":!0},key:i,"data-hashtag":e.hashtag||e.idScroll,"data-none-bg-session":tV.includes(T),"data-section-sub-index":t,"data-gap":tV.includes(T)?0:tA?40:49,"data-section-id":e.hashtag||e.idScroll,sx:e=>({scrollMarginTop:56,[e.fn.largerThan("sm")]:{scrollMarginTop:120}}),...tT&&T===eh.FF.LEADGEN&&{"data-lead-si":"true"},...tT&&T===eh.FF.QUOTATION&&{"data-quo-si":"true"}},T.includes(eh.FF.EMBEDDING_DOCTORS)?(()=>{var t;let o=e6++;return(0,n.tZ)(E.Z,{ref:e=>{e&&(t0.current[o]=e)},defaultColor:tR.tertiary,hidePrice:tf||tI||eu.DY.includes(td),hideViewAll:tf&&"id-ID"!==td,applyH1:e.sessionId===tw,viewAllUrl:tf&&"id-ID"===td?"doctors"===e.typeEmbedding?"https://".concat(er.domainLocales[td],"/care/semua/dokter/spesialis/"):"top_service"===e.typeEmbedding||"specialties"===e.typeEmbedding?"https://".concat(er.domainLocales[td],"/care/semua/rumah-sakit/spesialis/"):void 0:void 0,listingAll:e.doctors,filterColor:tb?"#00BEBF":void 0,hideBgPattern:tb,showConfirmCityPopup:tb,layoutConfig:tb?{1:"horizon",2:"horizon"}:void 0,campaign:e.campaign,sessionProps:{...e,backgroundColor:(null===(t=(0,eR.O)(tb))||void 0===t?void 0:t[eh.FF.EMBEDDING_DOCTORS])||e.backgroundColor},styles:{...tb&&{heading:{color:tR.primary},processBar:{background:tR.primary,opacity:.4},processRoot:{background:"#fff"},listing:{'&[data-slide-length="2"]':{flexDirection:"column"}}}}})})():T.includes(eh.FF.CLINIC_LOCATORS)?(0,n.tZ)(SectionWrapper,{onInView:e=>{if(e&&!t5.current){var t,o;null===(t=(o=window).gtag)||void 0===t||t.call(o,"event","visible",{event_category:"Service Connection",event_action:"Clinic Directory Click",event_label:t8,audience:e7.groupIdActive}),t5.current=!0}},children:(0,n.tZ)(R.q,{title:e.title,specialties:e.specialties,defaultColor:(null==tK?void 0:tK[tM.findIndex(t=>t.idScroll===e.idScroll)])||tR.primary,infoPath:tf&&td===eh.MV.Taiwan?"organization.name":void 0,funnelId:e7.additionalSlugActive,onGetBrowserLoc:e=>{tG&&e&&(async()=>{var t;let o=await (0,g.d)(h.y.CARE.GET_CITY_ID_BY_LAT_LNG,{params:e},"care"),n=null==o?void 0:null===(t=o._data)||void 0===t?void 0:t.default;(null==n?void 0:n.id)&&t0.current.map(e=>{e.setSelectedFilterId(String(n.id))})})()}})}):T.includes(eh.FF.VIDEOS)||T.includes(eh.FF.VIDEO_SECTION)?(0,n.tZ)($.y,{isNestle:tC,idScroll:e.idScroll||"embed-video"+t,"data-id-scroll":tE?"aivideo":"",autoPlay:e.autoPlay,primaryColor:tR.primary,applyH1:!ta&&e.sessionId===tw,sessionProps:{...e,backgroundColor:(tb?null===(o=(0,eR.O)(tb))||void 0===o?void 0:o[eh.FF.VIDEOS]:tE||tF?"transparent":e.backgroundColor)||""},adUnitPath:e.videoLayout!==eh.CY.List||e7.disableAd?void 0:0==e3++?t3:void 0,styles:e=>({...tF&&{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)}}}})}):T.includes(eh.FF.EMBEDDING_RISKSCREENER)?(0,n.tZ)(s.x,{children:(0,n.tZ)(j.Y,{data:{...e,backgroundColor:tC?"transparent":(null===(d=(0,eR.O)(tb))||void 0===d?void 0:d[eh.FF.EMBEDDING_RISKSCREENER])||e.backgroundColor},isFullContainer:!0,primaryColor:tR.primary,typeoformId:tA?t4.mobileFormId:t4.desktopFormId})}):T.includes(eh.FF.EMBEDDING_RISKSCREENER_MULTI)?(0,n.tZ)(Y.a,{colorShade:tR,sessionProps:{...e,backgroundColor:(null===(c=(0,eR.O)(tb))||void 0===c?void 0:c[eh.FF.EMBEDDING_RISKSCREENER_MULTI])||e.backgroundColor},applyH1:e.sessionId===tw}):T.includes(eh.FF.ARTICLES)?(0,n.tZ)(s.x,{"data-is-article":!0,sx:e=>({...(tb||tE)&&{".card-item":{background:"transparent"}},...tE&&{backgroundColor: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)(P.q,{listCategories:e.listCategories,wrapperProps:e.wrapperProps,display:e.typeDisplay,articles:e.listArticles,listingByKeyPillar:e.listingByKeyPillar,readmoreArticles:e.readMoreArticles,adUnitPath:"advance"===e.typeDisplay||e7.disableAd?void 0:0==e4++?t3:void 0,applyH1:e.sessionId===tw,mobileLayoutStretch:tN,mobileCarouselLayoutForNormalStyle:tP,styles:e=>({...tb&&{processRoot:{background:"#fff",padding:0},processBar:{background:tR.primary,opacity:.4}},...tF&&{root:{[e.fn.smallerThan("sm")]:{h2:{fontSize:(0,l.h)(24),lineHeight:(0,l.h)(32)}},[e.fn.largerThan("sm")]:{paddingBottom:0}}},...tk&&{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"}}}}})})}):T.includes(eh.FF.CLICKABLE_BANNER)||T.includes(eh.FF.CHAT_WITH_EXPERT)?e.isSingleBanner?(0,n.tZ)(Z.g,{data:e,onItemClick:onItemClick,"data-id-scroll":e.hashtag,applyH1:e.sessionId===tw,styles:t=>({root:{backgroundColor:e.backgroundColor,...tF&&{backgroundColor:"transparent",[t.fn.largerThan("sm")]:{paddingTop:40,paddingBottom:40}}},icon:{...tF&&{[t.fn.smallerThan("sm")]:{width:32}}},heading:{...tF&&{[t.fn.smallerThan("sm")]:{fontSize:(0,l.h)(24),lineHeight:(0,l.h)(32)}}},disclaimerIcon:{path:{fill:tF?tR.quaternary:tR.primary}}})}):(0,n.tZ)(eo.N,{requireLogin:e.requireLogin,applyCarousel:e.applyCarousel,embedChatwootClick:!!(T.includes(eh.FF.CHAT_WITH_EXPERT)||tb),bgColor:(null===(p=(0,eR.O)(tb))||void 0===p?void 0:p[eh.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:tf&&!T.includes(eh.FF.CHAT_WITH_EXPERT),onItemClick:onItemClick,applyH1:e.sessionId===tw,openAllAccordion:e.expandAllCategories,styles:t=>({...tF&&{root:{backgroundColor:"transparent",h3:{fontSize:(0,l.h)(24),lineHeight:(0,l.h)(32)},[t.fn.largerThan("sm")]:{paddingTop:40,paddingBottom:40,h3:{fontSize:(0,l.h)(40),lineHeight:(0,l.h)(52)}}},bannerItemWrapper:{img:{[t.fn.smallerThan("sm")]:{maxWidth:"55% !important"},[t.fn.largerThan("sm")]:{maxHeight:"50vh",minHeight:400,maxWidth:"max-content",margin:"0 auto"}}}},...tB&&{root:{backgroundImage:"url(".concat(r.C.getAssetPath("concung/doctor-bg-m.jpg"),")"),backgroundSize:"cover",[t.fn.largerThan("sm")]:{backgroundImage:"url(".concat(r.C.getAssetPath("concung/doctor-bg.jpg"),")")}},bannerList:{[t.fn.smallerThan("sm")]:{flexDirection:"column",gap:0}},bannerItem:{width:"100%",[t.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"}},...!!e7.integrates3rdParty.chatwoodToken&&{root:{...tb&&{[t.fn.largerThan("md")]:{paddingBottom:0,position:"relative",...0===e8&&{"&:before":{content:'""',position:"absolute",top:"9%",left:"4%",zIndex:0,width:(0,l.h)(181),height:(0,l.h)(216),backgroundImage:"url(".concat(r.C.getAssetPath("roche/cancer-bg1.png"),")")}},...e8++==tx.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(r.C.getAssetPath("roche/cancer-bg2.png"),")")}}}}},inner:{position:"relative",zIndex:1}},header:{textAlign:T.includes(eh.FF.CHAT_WITH_EXPERT)?"center":(e.listing||[]).length>3?"left":"center"}})}):T.includes(eh.FF.COMMUNITY_WITH_POSTS)?e.typeEmbed===eh.VA.MINIGAME?(0,n.tZ)(x._,{...e,applyH1:e.sessionId===tw}):(0,n.tZ)(D.T,{...e,applyH1:e.sessionId===tw}):T.includes(eh.FF.ECOMMERCE_PRODUCS)?(0,n.tZ)(F.f,{title:e.title,products:e.products,bgColor:tR.primary,applyH1:e.sessionId===tw}):T.includes(eh.FF.LEADGEN)?(0,n.BX)(n.HY,{children:[(0,n.tZ)(X.Z,{ref:o=>{e.isModal&&0===t&&(tz.current[e.idScroll]=o)},autoOpen:!tE,scrollable:!tE,isModal:e.isModal,desktopModalType:tE?"fullscreen":"normal",data:e,primaryColor:tR.primary,styles:leadgenStyles,onModalChange:handleStopTrackingIdle}),tE&&(0,n.tZ)(X.Z,{data:e,isModal:!0,scrollable:!0,desktopModalType:tE?"fullscreen":"normal",modalBanner:(()=>{var e;let t=null===(e=e7.listSessions.filter(e=>e.sessionLayout===eh.FF.HERO_BANNER_FULLWIDTH).slice(-1))||void 0===e?void 0:e[0];return t?(0,n.tZ)(w.y,{colorArr:[],keepRatio:!1,layout:H.b,sessionProps:t,mappingIconList:t2,bannerTracking:{"data-event-action":"Dynamic Banner Click"}}):void 0})(),modalProps:{zIndex:100},hashToOpenModal:eg.M_,primaryColor:tR.primary,onDone:()=>{var e;tp({pathname:tu,query:tc,hash:""},void 0,{scroll:!1}),null==t$||null===(e=t$.current)||void 0===e||e.resetChatId()},styles:leadgenStyles})]}):T.includes(eh.FF.HERO_BANNER_DEFAULT)||T.includes(eh.FF.HERO_BANNER_FULLWIDTH)?(0,n.tZ)(w.y,{...t9,keepRatio:!1,onBannerLoad:()=>tU.current&&t7({idScroll:e.idScroll,loaded:!0}),layout:T.includes(eh.FF.HERO_BANNER_FULLWIDTH)||T.includes(eh.FF.FOOTER_BANNER)?H.b:W.j,sessionProps:e,bannerTracking:{"data-event-action":"Dynamic Banner Click"},"data-auto-slide":e.autoSlideTiming,autoSlide:!!e.autoSlideTiming,delayTime:e.autoSlideTiming}):T.includes(eh.FF.HEALTH_TOOL)?(0,n.tZ)(O.n,{data:e,applyH1:e.sessionId===tw,styles:e=>({...tk&&{root:{backgroundColor:"transparent",position:"relative",paddingBottom:"0 !important",[e.fn.smallerThan("sm")]:{"&:after":{content:'""',display:"block",height:0,paddingBottom:"70.66%",backgroundImage:"url(".concat(r.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(r.C.getAssetPath("tetAnKhang2026/bottom-desktop.png"),")"),backgroundSize:"cover",marginTop:"-5%"}}}}})}):T.includes(eh.FF.CONTENT_BANNER)?(0,n.tZ)(y.q,{data:e.listBanner,className:"wide-container",isSingleLayout:e.singleLayout,"data-vertical-layout":!e.singleLayout}):T.includes(eh.FF.HEALTH_TOOL_LIST)?(0,n.tZ)(B.y,{title:e.title,description:e.description,data:e.healthTools,innerClass:"wide-container"}):T.includes(eh.FF.VISION_SECTION)?(0,n.tZ)(N.T,{heading:e.title,description:e.description,image:e.image,innerClass:"narrow-container"}):T.includes(eh.FF.FOOTER_BANNER)?(0,n.tZ)("div",{className:"wide-container",children:(0,n.tZ)(b.M,{banner:{desktop:null===(m=e.imageBanner)||void 0===m?void 0:null===(u=m[0])||void 0===u?void 0:u.desktopBanner,mobile:null===(C=e.imageBanner)||void 0===C?void 0:null===(v=C[0])||void 0===v?void 0:v.mobileBanner},url:null===(I=e.imageBanner)||void 0===I?void 0:null===(f=I[0])||void 0===f?void 0:f.linkTo})}):T.includes(eh.FF.QUOTATION)?(0,n.tZ)(q.m,{color:tR.primary,wrapperProps:e.wrapperProps,data:e.quotations}):T.includes(eh.FF.SCHEDULED_EVENT)?(0,n.tZ)(Q._,{...e,applyH1:e.sessionId===tw}):T.includes(eh.FF.CONTENT_EXPERT)?(0,n.tZ)(A.L,{...e,applyH1:e.sessionId===tw,wrapperPropsStyles:{styles:{...tS&&{header:{".title":{color:"#001AA9"},".description":{color:"#595959"}}}}}}):T.includes(eh.FF.CUSTOMIZED_BLOCK)?(0,n.tZ)(L.I,{data:e}):T.includes(eh.FF.CTA_BANNER)?(0,n.tZ)(_.t,{data:e,ratio:tF?tA?1.496:1300/2880:void 0,styles:{root:{...tF&&{backgroundColor:"transparent"}}}}):T.includes(eh.FF.TYPEFORM_INLINE)?(0,n.tZ)(J.i,{data:e}):T.includes(eh.FF.FAQS)?(0,n.tZ)(eb.J,{...e,applyH1:e.sessionId===tw}):null)})},i)})),tN&&(0,n.tZ)(m.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)(I.c,{})})})]})})}),!(null==e7?void 0:e7.disableAd)&&(0,n.BX)(v.o,{children:[(0,n.tZ)(C.FixedBottomAdBlock,{className:"carepath-bottom-ad",adUnitPath:t3,isMobile:tA,customTargetings:oo}),(0,n.tZ)(et.OutOfPageAd,{id:"div-gpt-out-of-page",adUnitPath:t3})]}),tD.length>0&&(0,n.tZ)(eP,{ref:tJ,onOpen:()=>handleStopTrackingIdle(!0),isTypeForm:!!t4.mobileFormId,children:(0,n.tZ)(j.Y,{withoutSkeleton:!0,data:{...null==tD?void 0:tD[0],backgroundColor:(null===(u=(0,eR.O)(tb))||void 0===u?void 0:u[eh.FF.EMBEDDING_RISKSCREENER])||(null==tD?void 0:tD[0].backgroundColor)},isDisabledAnimationOnMobile:!0,handleOnCloseMobile:()=>{var e;return null==tJ?void 0:null===(e=tJ.current)||void 0===e?void 0:e.close()},primaryColor:tR.primary,typeoformId:t4.mobileFormId})}),tb&&(0,n.tZ)(eG,{}),(null===(eT=e7.intensivePopup)||void 0===eT?void 0:null===(eF=eT.leavingPopup)||void 0===eF?void 0:eF.title)&&(null===(eS=e7.intensivePopup)||void 0===eS?void 0:null===(ey=eS.leavingPopup)||void 0===ey?void 0:ey.message)&&(0,n.tZ)(eX,{ref:tQ,backgroundColor:e7.intensivePopup.leavingPopup.backgroundColor,buttonColor:e7.intensivePopup.leavingPopup.buttonColor,titleColor:e7.intensivePopup.leavingPopup.titleColor,desktopImage:e7.intensivePopup.leavingPopup.desktopImage,mobileImage:e7.intensivePopup.leavingPopup.mobileImage,title:e7.intensivePopup.leavingPopup.title,message:e7.intensivePopup.leavingPopup.message,messageColor:e7.intensivePopup.leavingPopup.messageColor,ctaBtn:e7.intensivePopup.leavingPopup.ctaBtn,defaultSection:{hash:null==tM?void 0:null===(eB=tM[0])||void 0===eB?void 0:eB.idScroll,cta:null==tM?void 0:null===(eN=tM[0])||void 0===eN?void 0:eN.title,btnTracking:{dataEventCategory:"Service Connection",dataEventAction:"".concat(eR.e[null==tM?void 0:null===(ek=tM[0])||void 0===ek?void 0:ek.sessionLayout]||""," - Intent popup"),dataEventLabel:"".concat(t8.split("#")[0],"#").concat(decodeURI(null==tM?void 0:null===(eZ=tM[0])||void 0===eZ?void 0:eZ.idScroll))}},onItemClick:onItemClick,onChange:handleStopTrackingIdle}),(0,n.tZ)(eV,{ref:tj,title:null==e7?void 0:null===(e_=e7.intensivePopup)||void 0===e_?void 0:null===(eA=e_.idlePopup)||void 0===eA?void 0:eA.title,backgroundColor:null==e7?void 0:null===(eD=e7.intensivePopup)||void 0===eD?void 0:null===(eL=eD.idlePopup)||void 0===eL?void 0:eL.backgroundColor,buttonColor:null==e7?void 0:null===(eH=e7.intensivePopup)||void 0===eH?void 0:null===(ex=eH.idlePopup)||void 0===ex?void 0:ex.buttonColor,titleColor:null==e7?void 0:null===(eK=e7.intensivePopup)||void 0===eK?void 0:null===(eU=eK.idlePopup)||void 0===eU?void 0:eU.titleColor,desktopImage:null==e7?void 0:null===(eq=e7.intensivePopup)||void 0===eq?void 0:null===(eY=eq.idlePopup)||void 0===eY?void 0:eY.desktopImage,mobileImage:null==e7?void 0:null===(eQ=e7.intensivePopup)||void 0===eQ?void 0:null===(ej=eQ.idlePopup)||void 0===ej?void 0:ej.mobileImage,ctaBtn1:null==e7?void 0:null===(e$=e7.intensivePopup)||void 0===e$?void 0:null===(eJ=e$.idlePopup)||void 0===eJ?void 0:eJ.ctaBtn1,ctaBtn2:null==e7?void 0:null===(e1=e7.intensivePopup)||void 0===e1?void 0:null===(e0=e1.idlePopup)||void 0===e0?void 0:e0.ctaBtn2,onItemClick:onItemClick,listItems:tM.filter(e=>e.sessionLayout!==eh.FF.CUSTOMIZED_NAVIGATOR).slice(0,2).map(e=>({title:e.title,hash:e.idScroll,btnTracking:{dataEventCategory:"Service Connection",dataEventAction:"".concat(eR.e[e.sessionLayout]||""," - Idle popup"),dataEventLabel:"".concat(t8.split("#")[0],"#").concat(e.idScroll)}}))}),tn&&"1"===tc.external&&tx.length>0&&(0,n.tZ)(IntroCarePathModal,{onItemClick:onItemClick,hashToShow:(null==tx?void 0:null===(e2=tx[0])||void 0===e2?void 0:e2.idScroll)||(null==tx?void 0:null===(e5=tx[0])||void 0===e5?void 0:e5.hashtag)||""}),tE&&"true"===eM.env.NEXT_PUBLIC_ENABLE_AI_CHAT&&(0,n.tZ)(f.Z,{ref:t$,name:"Hello Sehat Expert",avatar:r.C.getAssetPath("soya/ai_avatar.png"),starterAvatarSize:128,showHighlightMessage:!0,cookieId:eg.wN,isShortVer:tA,widgetModalProps:{zIndex:99},onClickHighlightMess:()=>tp({pathname:tu,query:tc,hash:eg.M_},void 0,{shallow:!0,scroll:!1})}),tI&&(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)(ez,{visible:tA})]})})]})}},"77u+":function(e,t,o){o.d(t,{O:function(){return getSpecifySessionBgByPath},e:function(){return a}});var n=o("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"};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,t,o){o.d(t,{v:function(){return ContactUsTemplate}});var n=o("BGKE"),a=o("q1tI"),i=o("owZr"),r=o("2451"),l=o("GqLv"),s=o("Eso5"),d=o("SPK5"),c=o("OAL+"),p=o("dDsW"),u=o("09QT"),g=o("oQBk"),h=o("gHFm"),m=o("0VOb"),v=o("hH53"),C=o("P5LW"),f=o("mGnJ"),b=o("FNss"),E=o("/kWL"),F=o("IEW/"),I=o("g8xC"),T=o("C/sX"),y=o("cChf"),S=o("ZFu2"),B=o("RB7Y"),N=o("UEkr"),k=o("rIrU"),P=o("/npG"),Z=(0,P.k)(e=>({formLabel:{},errorLabel:{marginTop:8},selectItem:{'&[data-selected="true"]':{backgroundColor:e.colors.blue[0]}},submitBtn:{display:"block",margin:"0 auto"}}));let R=(0,a.forwardRef)((e,t)=>{let{label:o,value:a,...i}=e;return(0,n.tZ)("div",{ref:t,...i,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)(E.T,{size:"p3",children:o})]},a)})}),SelectControl=e=>{let{defaultValue:t,value:o,onChange:i,...r}=e,[l,s]=(0,a.useState)(null);return(0,a.useEffect)(()=>{s(o||null)},[o]),(0,n.tZ)(b.S,{...r,value:l,onChange:e=>{s(e),null==i||i(e)},icon:l&&(0,n.tZ)(b.F,{width:16,height:16,country:l}),itemComponent:R})},A=(0,a.forwardRef)((e,t)=>{let{loading:o,countryCode:i,onSubmit:r,...l}=e,{classes:d,theme:c}=Z(void 0,{name:"ContactUsTemplate__ContactForm"}),{formatMessage:u}=(0,p.Z)(),{locale:g}=(0,C.h)(),h={name:"",email:"",country:i,phone:"",company:"",position:"",message:"",allowTerm:!1},m=(0,y.c)({validate:{name:(0,S.U)(u({id:"hhgContactPage.form.requireName",defaultMessage:"Please enter your name"})),email:e=>e?(0,N.oH)(e)?null:u({id:"hhgContactPage.form.requireValidMessage"}):u({id:"hhgContactPage.form.requireEmail",defaultMessage:"Please enter your email"}),country:(0,S.U)(u({id:"hhgContactPage.form.requireCountry",defaultMessage:"Please enter your country"})),company:(0,S.U)(u({id:"hhgContactPage.form.requireCompany",defaultMessage:"Please enter your company"})),position:(0,S.U)(u({id:"hhgContactPage.form.requirePosition",defaultMessage:"Please enter your position"})),message:(0,S.U)(u({id:"hhgContactPage.form.requireMessage",defaultMessage:"Please enter your message"})),phone:e=>e&&!(0,B.yf)(e)?u({id:"common.phone_invalid"}):null},initialValues:h});(0,a.useImperativeHandle)(t,()=>({reset:()=>{m.setValues(h)}})),(0,a.useEffect)(()=>{m.setFieldValue("country",i)},[i]);let v=f.m.map(e=>({label:e.countryName,value:e.countryCode}));return(0,n.tZ)(s.x,{...l,component:"form",onSubmit:m.onSubmit(e=>{let{allowTerm:t,...o}=e||{};r(o)}),children:(0,n.BX)(T.r,{children:[(0,n.BX)(T.r.Col,{span:12,children:[(0,n.tZ)(b.I,{label:(0,n.tZ)(E.T,{size:"p2",weight:"semiBold",className:d.formLabel,span:!0,children:u({id:"hhgContactPage.form.name"})}),...m.getInputProps("name"),error:void 0}),m.getInputProps("name").error&&(0,n.tZ)(b.e,{className:d.errorLabel,label:m.getInputProps("name").error})]}),(0,n.BX)(T.r.Col,{span:12,children:[(0,n.tZ)(b.I,{label:(0,n.tZ)(E.T,{size:"p2",weight:"semiBold",className:d.formLabel,span:!0,children:u({id:"hhgContactPage.form.email"})}),...m.getInputProps("email"),error:void 0}),m.getInputProps("email").error&&(0,n.tZ)(b.e,{className:d.errorLabel,label:m.getInputProps("email").error})]}),(0,n.BX)(T.r.Col,{span:12,children:[(0,n.tZ)(E.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:i,...m.getInputProps("phone")}),m.getInputProps("phone").error&&(0,n.tZ)(b.e,{className:d.errorLabel,label:m.getInputProps("phone").error})]}),(0,n.BX)(T.r.Col,{span:12,children:[(0,n.tZ)(b.I,{label:(0,n.tZ)(E.T,{size:"p2",weight:"semiBold",className:d.formLabel,span:!0,children:u({id:"hhgContactPage.form.company"})}),...m.getInputProps("company"),error:void 0}),m.getInputProps("company").error&&(0,n.tZ)(b.e,{className:d.errorLabel,label:m.getInputProps("company").error})]}),(0,n.BX)(T.r.Col,{span:12,children:[(0,n.tZ)(b.I,{label:(0,n.tZ)(E.T,{size:"p2",weight:"semiBold",className:d.formLabel,span:!0,children:u({id:"hhgContactPage.form.position"})}),...m.getInputProps("position"),error:void 0}),m.getInputProps("position").error&&(0,n.tZ)(b.e,{className:d.errorLabel,label:m.getInputProps("position").error})]}),(0,n.BX)(T.r.Col,{span:12,children:[(0,n.tZ)(SelectControl,{label:(0,n.tZ)(E.T,{size:"p2",weight:"semiBold",className:d.formLabel,span:!0,children:u({id:"hhgContactPage.form.country"})}),classNames:{item:d.selectItem},...m.getInputProps("country"),data:v,error:void 0}),m.getInputProps("country").error&&(0,n.tZ)(b.e,{className:d.errorLabel,label:m.getInputProps("country").error})]}),(0,n.BX)(T.r.Col,{span:12,children:[(0,n.tZ)(F.T,{label:(0,n.tZ)(E.T,{size:"p2",weight:"semiBold",className:d.formLabel,span:!0,children:u({id:"hhgContactPage.form.message"})}),...m.getInputProps("message"),error:void 0}),m.getInputProps("message").error&&(0,n.tZ)(b.e,{className:d.errorLabel,label:m.getInputProps("message").error})]}),(0,n.tZ)(T.r.Col,{span:12,children:(0,n.tZ)(b.d,{label:(0,n.tZ)(E.T,{size:"p2",className:d.formLabel,as:"div",weight:"semiBold",dangerouslySetInnerHTML:{__html:u({id:"hhgContactPage.form.termOfService"},{term:e=>{var t;return'\n ').concat(e,"\n ")},privacy:e=>{var t;return'\n ').concat(e,"\n ")}})}}),...m.getInputProps("allowTerm",{type:"checkbox"}),styles:{label:{cursor:"default",a:{color:c.fn.primaryColor()}}}})}),(0,n.tZ)(T.r.Col,{span:12,children:(0,n.tZ)(I.B,{disabled:!m.getInputProps("allowTerm").value,type:"submit",size:"lg",loading:o,className:d.submitBtn,children:u({id:"hhgContactPage.form.submit"})})})]})})});A.displayName="ContactForm";var _=o("mYVa"),L=(0,P.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,_.h)(24),lineHeight:(0,_.h)(32),[e.fn.largerThan("sm")]:{fontSize:(0,_.h)(28),lineHeight:(0,_.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,_.h)(24)},contactEmail:{color:"#fff",fontSize:(0,_.h)(16),lineHeight:(0,_.h)(24)},emailIcon:{width:24,height:24,marginRight:8,display:"inline-block",verticalAlign:"middle"}})),D=o("rEaw");let x={[D.MV.Vietnam]:"customer@hellobacsi.com",[D.MV.Malaysia]:"customer@hellodoktor.com",[D.MV.Indonesia]:"customer@hellosehat.com",[D.MV.PhilippinesEnglish]:"customer@hellodoctor.com.ph",[D.MV.PhilippinesTagalog]:"customer@hellodoctor.com.ph",[D.MV.Thailand]:"customer@hellokhunmor.com",[D.MV.Taiwan]:"admin@helloyishi.com.tw",[D.MV.Cambodia]:"customer@hellokrupet.com",[D.MV.Singapore]:"customer@hellojiankang.com",[D.MV.Myanmar]:"customer@hellosayarwon.com",[D.MV.India]:"customer@helloswasthya.com"},ContactUsTemplate=()=>{let{formatMessage:e}=(0,p.Z)(),{locale:t}=(0,C.h)(),o=t.split("-"),f=o[1],{classes:b}=L(void 0,{name:"ContactUsTemplate"}),[E,F]=(0,a.useState)(!1),[I,T]=(0,a.useState)(!1),y=x[t],S=(0,a.useRef)(null),handleCloseSuccess=()=>{var e;T(!1),null===(e=S.current)||void 0===e||e.reset()},onSubmit=async t=>{try{F(!0);let e=await (0,u.d)(g.y.COMMON.POST_HHG_CONTACT_FORM,{method:"POST",data:{...t},headers:{Authorization:"Basic aGhnX2FkbWluX2NvbnRhY3Q6M1hPd1ZuV0xSb1cmV2VlMjM5clNIM1ps",Cookie:"hhg_content_feedback_user=5854396e273012d851d92ad2fa5d980b"}});if(null==e?void 0:e.success)T(!0);else throw Error("Failed Submit")}catch(t){(0,m.c)({message:e({id:"notify.error.message",defaultMessage:"Đ\xe3 xảy ra lỗi, vui l\xf2ng thử lại"}),type:"danger"})}finally{F(!1)}};return(0,n.tZ)(r.T,{variant:r.C.LEADGEN,children:(0,n.BX)(n.HY,{children:[(0,n.BX)(s.x,{className:b.root,children:[(0,n.tZ)(h.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:i.C.getAssetPath("hhgContactPage/logo.webp"),alt:e({id:"hhgContactPage.description"})})]})}),(0,n.tZ)(s.x,{className:b.inner,children:(0,n.BX)(h.W,{className:b.innerContainer,children:[(0,n.tZ)(A,{ref:S,countryCode:f,className:b.content,loading:E,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(y),className:b.contactEmail,children:[(0,n.tZ)("img",{className:b.emailIcon,loading:"lazy",src:i.C.getAssetPath("hhgContactPage/email.svg"),alt:e({id:"hhgContactPage.description"})}),(0,n.BX)("span",{children:[" ",y]})]})]})})]})})]}),(0,n.tZ)(l.M,{opened:I,onClose:handleCloseSuccess,children:(0,n.tZ)(v._,{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})})]})})}}}]);