(self.webpackChunkhhgHealthCareV1=self.webpackChunkhhgHealthCareV1||[]).push([[2203,5597],{83936:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[...slug]",function(){return i(32106)}])},77604:function(e,n,i){"use strict";i.d(n,{y:function(){return a}});var t=i(73884),a=(0,t.createContext)({})},5597:function(e,n,i){"use strict";i.r(n),i.d(n,{ReviewForm:function(){return M}});var t=i(38971),a=i(53513),o=i(63538),r=i(53455),c=i(2445),l=i(73884),s=i(61549),d=i(14677),u=i(86566),p=i(3328),f=i(5792),v=i(27372),g=i(53100),h=i(67188),m=i.n(h),_=i(36259),b=i(77604),y=i(95472),S=i(70438),x=m()((function(){return Promise.all([i.e(2897),i.e(1843),i.e(3203)]).then(i.bind(i,3203)).then((function(e){return e.ReviewFormContent}))}),{loadableGenerated:{webpack:function(){return[3203]}},ssr:!1,loading:function(){return(0,c.Y)(d.s,{align:"center",justify:"center",sx:{height:"100%"},children:(0,c.Y)(s.L,{})})}}),M=function(e){var n=e.isModal,i=e.selectedService,h=e.onSuccess,m=e.innerBoxProps,M=e.contestMode,N=e.isFromDetailPage,Y=e.vaccinationDetail,A=e.hospitalBranches,C=(0,r.A)(e,["isModal","selectedService","onSuccess","innerBoxProps","contestMode","isFromDetailPage","vaccinationDetail","hospitalBranches"]),E=(0,u.xd)(),D=(0,l.useContext)(_.B).state.isMobileSsr,w=(0,g.l)().isMobile,I=(0,v.E)(D,w),F=(0,l.useState)((0,S.vc)(y.lF)),P=F[0],T=F[1],R=(0,l.useState)(M||!1),k=R[0],O=R[1],V=(0,l.useMemo)((function(){return P[y.lF.IsAnomyous]}),[P]);(0,l.useEffect)((function(){O(M||!1)}),[M]);var L=(0,l.useCallback)((function(e){O(e)}),[]),H=(0,f.o)().opened,G=function(){(0,S.JP)(E.fn.primaryColor()),e.onClose()};return(0,c.Y)(b.y.Provider,{value:{isModal:n,selectedService:i,innerBoxProps:m,formValues:P,setFormValues:T,isAnomyous:V,isContestMode:k,isFromDetailPage:N,vaccinationDetail:Y,hospitalBranches:A,onClose:G,handleChangeContestMode:L},children:n?function(){var e=C.opened,n=(C.onClose,(0,r.A)(C,["opened","onClose"]));return(0,c.Y)(p.a,(0,o.A)((0,a.A)({overlayProps:{opacity:H?0:.6},centered:!0,opened:e,fullScreen:I,zIndex:501},n),{classNames:{content:"review-modal"},size:I?void 0:551,closeOnClickOutside:!1,onClose:G,styles:{header:{display:"none"},body:{padding:0,height:"100%"},content:(0,t.A)({"&.review-modal":{height:"100%"}},E.fn.largerThan("sm"),{height:600})},children:(0,c.Y)(l.Suspense,{fallback:(0,c.Y)(d.s,{align:"center",justify:"center",sx:{height:"100%"},children:(0,c.Y)(s.L,{})}),children:e&&(0,c.Y)(x,{onSubmit:function(e){(0,S.JP)(E.fn.primaryColor()),null===h||void 0===h||h(e)},sx:{position:"absolute",top:0,left:0,right:0,bottom:0}})})}))}():(0,c.Y)(x,{onSubmit:h})})}},95472:function(e,n,i){"use strict";i.d(n,{gT:function(){return a},lF:function(){return c},pn:function(){return t},zb:function(){return o}});var t,a,o,r=i(53513);!function(e){e[e.FeedbackForm=0]="FeedbackForm",e[e.CollectingForm=1]="CollectingForm",e[e.ThankyouScreen=2]="ThankyouScreen"}(t||(t={})),function(e){e.SelectedService="service_type",e.SelectedClinicId="clinic_id",e.SelectedProductId="product_id",e.RateNumber="rating",e.Title="subject",e.Description="review_content",e.IsAnomyous="is_anonymous",e.ProofImage="proof_of_purchase"}(a||(a={})),function(e){e.Name="user_name",e.Phone="phone",e.Email="email"}(o||(o={}));var c=(0,r.A)({},a,o)},70438:function(e,n,i){"use strict";i.d(n,{JP:function(){return a},rj:function(){return r},vc:function(){return o}});var t=i(95472);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=document.querySelector('meta[name="theme-color"]');n&&e&&n.setAttribute("content",e)}function o(e){return Object.values(e).reduce((function(e,n){var i=n!==t.lF.IsAnomyous&&(n===t.lF.RateNumber?5:"");return e[n]=i,e}),{})}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.trim().split(/\s+/).filter(Boolean).length}},92012:function(e,n,i){"use strict";i.d(n,{F_:function(){return d},_p:function(){return p},m:function(){return u},sV:function(){return f}});var t=i(24537),a=i(26115),o=i(27317);function r(){var e=(0,t.A)(["\n "," {\n display: flex;\n gap: 32px;\n }\n\n .hospitals {\n flex: 5;\n margin-bottom: 32px;\n }\n\n .filter {\n flex: 2;\n }\n\n .pagination {\n display: flex;\n justify-content: center;\n justify-self: center;\n\n "," {\n justify-content: flex-end;\n margin-left: auto;\n justify-self: flex-end;\n }\n }\n"]);return r=function(){return e},e}function c(){var e=(0,t.A)(["\n display: flex;\n justify-content: space-between;\n"]);return c=function(){return e},e}function l(){var e=(0,t.A)(["\n display: inline-flex;\n cursor: pointer;\n\n svg {\n margin-left: 8px;\n }\n"]);return l=function(){return e},e}function s(){var e=(0,t.A)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n margin: 64px 0;\n\n svg {\n margin-bottom: 24px;\n }\n"]);return s=function(){return e},e}var d=o.Ay.div.withConfig({componentId:"sc-dfa2edf0-0"})(r(),a.M.tdUp,a.M.tdUp),u=o.Ay.div.withConfig({componentId:"sc-dfa2edf0-1"})(c()),p=o.Ay.div.withConfig({componentId:"sc-dfa2edf0-2"})(l()),f=o.Ay.div.withConfig({componentId:"sc-dfa2edf0-3"})(s())},54109:function(e,n,i){"use strict";i.d(n,{h:function(){return a}});var t=i(73884),a=function(e){var n=(0,t.useState)(!1),i=n[0],a=n[1],o=(0,t.useCallback)((function(){if(e.current){var n=e.current.getBoundingClientRect(),i=window.innerHeight;a(n.bottom<0||n.top>i)}}),[e]);return(0,t.useEffect)((function(){o();var e=function(){o()};return window.addEventListener("scroll",e,{passive:!0}),function(){window.removeEventListener("scroll",e)}}),[o]),i}},32106:function(e,n,i){"use strict";i.r(n),i.d(n,{__N_SSP:function(){return L},default:function(){return G},getSlugTypeByLocalisedSlugs:function(){return H}});var t=i(53513),a=i(2445),o=i(20458),r=i(32616),c=i(80761),l=i(19289),s=i(27414),d=i(76887),u=i(23285),p=i(50984),f=i(17283),v=i(80552),g=i(63376),h=i(85143),m=i(98269),_=i(858),b=i(38971),y=i(40568),S=i(83776),x=i(92558),M=i(27516),N=i(74029),Y=i(59850),A=i(84091),C=i(34767),E=i(95564),D=i(88491),w=i(13495),I=i(73419),F=i(6442),P=i(5597),T=i(95472),R=i(28171),k=i(89394),O=i(40959),V=(function(){var e=(0,_.A)((function(e){var n,i,t,a,o,r,c,l,s,d,u,p,f;return(0,S.__generator)(this,(function(v){switch(v.label){case 0:return t=e.locale,a=e.query,o=null===a||void 0===a?void 0:a.slug,r=function(e){var n=e.match(/-(\d+)$/);return n?n[1]:null},c=o&&o.length>1?r(o[1]):null,[4,Promise.all([(0,x.g)(t),(0,A.px)((0,A.pZ)(Y.R.GET_FOOTER_INFO),"GET"),c?C.Xx.getVaccinationDetail({site:M.y[t],id:c,isV4:!0}):Promise.resolve(null)])];case 1:return l=y.A.apply(void 0,[v.sent(),3]),s=l[0],d=l[1],u=l[2],k.iO.includes(t)?!c||u&&(null===u||void 0===u||null===(n=u.vaccine)||void 0===n?void 0:n.id)?(p=C.ol[(null===u||void 0===u||null===(i=u.vaccine)||void 0===i?void 0:i.product_type)||"vaccine"],f=p===O.Hxq.VACCINE?(0,N.mQ)(null===u||void 0===u?void 0:u.vaccine):(0,N.kg)((null===u||void 0===u?void 0:u.vaccine)||{},p),[2,{props:{canonicalUrl:"".concat(O.JpE,"/").concat(E.localisedSlugs[t].USER_REVIEWS,"/"),navMenuContent:s||null,footerInfo:(null===d||void 0===d?void 0:d.data)||null,pageType:"USER_REVIEWS",isNewDesignSystem:!0,vaccinationDetail:f}}]):[2,{notFound:!0}]:[2,{notFound:!0}]}}))}))}(),function(e){var n,i=e.navMenuContent,t=e.canonicalUrl,o=e.footerInfo,r=e.vaccinationDetail,c=r||{},l=c.id,s=c.name,d=c.service_type,u=c.contest,p=c.hospital_branch_lists,f=(0,D.d)().isMobile,v=(0,I.$)(),g=v.locale,h=v.push,m=v.query,y=(0,F.A)().formatMessage,x=function(){var e=(0,_.A)((function(e){return(0,S.__generator)(this,(function(n){switch(n.label){case 0:return[4,C.Xx.getVaccinationDetail({site:M.y[g],id:e,isV4:!0})];case 1:return[2,n.sent()]}}))}));return function(n){return e.apply(this,arguments)}}(),N=Boolean(null===m||void 0===m?void 0:m.returnUrl)||(null===m||void 0===m||null===(n=m.slug)||void 0===n?void 0:n.length)>1,Y=(0,w.d)({service_type:d,hospital_branch_lists:p}),A=r?{type:d,product:{id:l,name:s},hospital_branch:Y}:void 0;return(0,a.Y)(R.K,{title:y({id:"userReviewPage.pageTitle",defaultMessage:"\u0110\xe1nh Gi\xe1 D\u1ecbch V\u1ee5 IVF, Tr\u1eef Tr\u1ee9ng, Ti\xeam Ch\u1ee7ng"}),description:y({id:"userReviewPage.pageDescription",defaultMessage:"Xem \u0111\xe1nh gi\xe1 th\u1ef1c t\u1ebf t\u1eeb ng\u01b0\u1eddi d\xf9ng v\u1ec1 c\xe1c d\u1ecbch v\u1ee5 IVF, tr\u1eef tr\u1ee9ng v\xe0 ti\xeam ch\u1ee7ng. Chia s\u1ebb tr\u1ea3i nghi\u1ec7m c\u1ee7a b\u1ea1n \u0111\u1ec3 gi\xfap c\u1ed9ng \u0111\u1ed3ng l\u1ef1a ch\u1ecdn \u0111\xfang \u0111\u1eafn."}),image:O.ElQ[g].HOMEPAGE_IMAGE,isSearchBarDisplay:!1,SEOData:{isIndexable:!0,hasNoAmp:!0,canonicalUrl:t},isMobile:f,footerInfo:o,ssrNavMenu:i,children:(0,a.Y)(P.ReviewForm,{contestMode:Boolean(u),selectedService:A,isFromDetailPage:N,vaccinationDetail:r,innerBoxProps:{sx:function(e){return(0,b.A)({margin:"0 auto"},e.fn.largerThan("sm"),{maxWidth:600})}},onSuccess:function(){var e=(0,_.A)((function(e){var n,i,t,a;return(0,S.__generator)(this,(function(o){switch(n=null===e||void 0===e?void 0:e[T.lF.SelectedService],i=String((null===e||void 0===e?void 0:e[T.lF.SelectedProductId])||""),t=E.localisedSlugs[g],a=t.SERVICE,n){case O.Hxq.VACCINE:a=t.VACCINATIONS;break;case O.Hxq.IVF:a=t.IVF;break;case O.Hxq.EGG_FREEZING:a=t.EGG_FREEZING;break;case O.Hxq.HEALTH_SCREENER:a=t.HEALTH_SCREENER}return n&&i?[2,x(i).then((function(e){var n=(e||{}).vaccine,i=n||{},o=i.slug,r=void 0===o?"":o,c=i.id,l="/".concat(t.SERVICE,"/").concat(a,"/").concat(n.slug,"-").concat(c,"/?view=dedicated-user-reviews"),s="/".concat(t.SERVICE,"/").concat(a,"/").concat(n.slug,"-").concat(c,"/reviews");if(r){var d=f?l:String((null===m||void 0===m?void 0:m.returnUrl)||s);h(d)}}))]:[2]}))}));return function(n){return e.apply(this,arguments)}}()})})}),L=!0;function H(e,n){var i;return e&&n&&(null===(i=Object.keys(e).filter((function(i){return e[i]===n})))||void 0===i?void 0:i[0])||""}var G=function(e){switch(e.pageType){case"SEARCH":case"ALL":case"CURRENT":return(0,a.Y)(u.default,(0,t.A)({},e));case"HOSPITAL":return(0,a.Y)(s.default,(0,t.A)({},e));case"SERVICE":return(0,a.Y)(p.default,(0,t.A)({},e));case"DOCTOR":return(0,a.Y)(r.default,(0,t.A)({},e));case"SPECIALTIES":return(0,a.Y)(f.default,(0,t.A)({},e));case"VACCINATIONS":return(0,a.Y)(v.default,(0,t.A)({},e));case"VACCINATION_DETAIL":return(0,a.Y)(g.default,(0,t.A)({},e));case"WEIGHT_LOSS":return(0,a.Y)(h.default,(0,t.A)({},e));case"WEIGHT_LOSS_DETAIL":return(0,a.Y)(m.default,(0,t.A)({},e));case"IVF":case"EGG_FREEZING":case"HEALTH_SCREENER":return(0,a.Y)(c.default,(0,t.A)({},e));case"IVF_DETAIL":case"EGG_FREEZING_DETAIL":case"HEALTH_SCREENER_DETAIL":return(0,a.Y)(l.default,(0,t.A)({},e));case"ORGANIZATION":return(0,a.Y)(d.default,(0,t.A)({},e));case"USER_REVIEWS":return(0,a.Y)(V,(0,t.A)({},e));case"CART":return(0,a.Y)(o.default,(0,t.A)({},e));default:return(0,a.Y)(a.FK,{})}}},20458:function(e,n,i){"use strict";i.r(n),i.d(n,{__N_SSP:function(){return _},default:function(){return b}});var t=i(2445),a=i(59167),o=i(98771),r=i(95456),c=i(73419),l=i(6442),s=i(13034),d=i(40959),u="".concat(d.JpE,"/images/cart-empty-state.png"),p=i(11851),f=i(35291),v=i(48045),g=(0,p.A)(v.B,{target:"e11u4ea50"})("&.mantine-Button-root{background-color:",f.w.colors.yellow800,";min-width:200px;height:54px;border-radius:12px;&:hover{background-color:",f.w.colors.yellow700,";}}"),h=function(){var e=(0,l.A)().formatMessage,n=(0,c.$)().locale,i=(0,s.oN)(n);return(0,t.FD)("div",{className:"w-[306px] pt-[92px] mx-auto",children:[(0,t.FD)("div",{className:"flex flex-col gap-[38px] items-center ",children:[(0,t.Y)(r.Y,{src:u,width:205,height:226,className:"aspect-[205/226] object-contain shrink-0"}),(0,t.FD)("div",{className:"text-center flex flex-col gap-2",children:[(0,t.Y)(o.T,{size:"h3",fw:600,color:"gray1000",children:e({id:"page.cart.empty.title",defaultMessage:"Your cart is empty"})}),(0,t.Y)(o.T,{size:"p2",fw:500,color:"gray800",className:"!text-[15px]",children:e({id:"page.cart.empty.description",defaultMessage:"Let\u2019s find the right health service for you, from health checkups to vaccinations"})})]})]}),(0,t.Y)("a",{href:i,className:"flex justify-center pt-4",children:(0,t.Y)(g,{size:"lg","data-testid":"explore-services-button",children:(0,t.Y)(o.T,{size:"title1",color:"white",fw:600,children:e({id:"page.cart.empty.button",defaultMessage:"Explore Services"})})})})]})},m=i(28171),_=!0,b=function(){var e=(0,l.A)().formatMessage,n=(0,c.$)(),i=(0,a.a)().getHref();return i&&n.replace(i),(0,t.Y)(m.K,{title:e({id:"page.cart.seo.title",defaultMessage:"Cart"}),description:e({id:"page.cart.seo.description",defaultMessage:"Cart"}),children:(0,t.Y)(h,{})})}},19289:function(e,n,i){"use strict";i.r(n),i.d(n,{__N_SSP:function(){return K},default:function(){return j}});var t=i(858),a=i(83776),o=i(2445),r=i(73884),c=i(74029),l=i(34767),s=i(19475),d=i(21861),u=i(47511),p=i(45782),f=i(18754),v=i(59869),g=i(42280),h=i(95204),m=i(77961),_=i(73419),b=i(53100),y=i(40959),S=i(28636),x=i.n(S),M=i(6442),N=i(36259),Y=i(39078),A=i(92509),C=i(13034),E=i(26754),D=i(94209),w=i(98771),I=i(32485),F=i.n(I),P=i(95564),T=i(10905),R=i(41145),k=i(54109),O=i(10813),V=i(34283),L=i(90522),H=i(57716),G=function(e){var n=e.name,i=e.description,t=e.logo,a=e.link,r=(0,_.$)();return(0,o.Y)("div",{className:"bg-white rounded-2xl p-4 hover:shadow-lg transition-shadow cursor-pointer",onClick:function(){return r.push(a)},children:(0,o.FD)("div",{className:"flex gap-3",children:[(0,o.Y)("div",{className:"flex-1",children:(0,o.FD)("div",{className:"space-y-2",children:[(0,o.Y)(w.T,{size:"h4",fw:600,color:"gray1000",children:n}),(0,o.Y)(w.T,{size:"title2",fw:400,color:"gray700",children:i})]})}),(0,o.Y)("div",{className:"flex-shrink-0 flex-grow-[72px]",children:(0,o.Y)(H.I,{alt:n,src:t||c.__,width:72,height:72,className:"rounded-lg w-[72px] h-[72px]"})})]})})},q=i(89312),U=i(46345),B=i(28171),z=function(e){var n=e.canonicalUrl,i=e.footerInfo,t=e.navMenuContent,a=e.hospitalServiceDetail,c=e.refetchHospitalServiceDetail,l=e.serviceType,d=(0,_.$)(),u=d.locale,p=void 0===u?"vi-VN":u,f=d.push,v=d.asPath,g=(0,M.A)().formatMessage,h=(0,r.useContext)(N.B).state.isMobileSsr,S=(0,b.l)().isMobile,x=(0,m.E)(h,S),Y=(0,r.useState)(!1),A=Y[0],E=Y[1],D=(0,r.useRef)(null),I=(0,k.h)(D),H=a.logo,z=a.display_name,K=a.contest,j=a.start_time_contest_mode,J=a.end_time_contest_mode,X=a.description,W=a.slug,Z=a.id,$=(0,r.useMemo)((function(){return"".concat((0,C.WZ)(l,p,""),"/").concat(W,"-").concat(Z,"/")}),[p,W,Z,l]),Q=(0,O.A)({contest:!!K,start_time_contest_mode:j,end_time_contest_mode:J}).isContestMode;x&&d.push("".concat((0,C.WZ)(l,p,""),"/").concat(W,"-").concat(Z,"/"));var ee=new URLSearchParams({returnUrl:"".concat(v)}),ne=function(){var e;x?E(!0):f("/".concat(null===(e=P.localisedSlugs[p])||void 0===e?void 0:e.USER_REVIEWS,"/").concat(W,"-").concat(Z,"?").concat(ee.toString()))};return(0,o.Y)(B.K,{title:z,description:X||"",image:y.ElQ[p].HOMEPAGE_IMAGE,isSearchBarDisplay:!0,SEOData:{isIndexable:!0,hasNoAmp:!0,canonicalUrl:null===n||void 0===n?void 0:n.toLowerCase()},isMobile:x,footerInfo:i,ssrNavMenu:t||void 0,children:(0,o.Y)(L._9,{className:"pb-[72px] pt-6",children:(0,o.Y)(s.mc,{isFluid:!0,isNewContainer:!0,className:"!pb-8",children:(0,o.FD)("div",{className:"flex gap-6",children:[(0,o.Y)("div",{className:"bg-white p-6 rounded-2xl w-[552px]",children:(0,o.FD)("div",{className:"space-y-6",children:[(0,o.Y)(w.T,{size:"h3",fw:600,color:"gray1000",children:g({id:"userReview.allReviews",defaultMessage:"All Product Review"})}),(0,o.Y)("div",{className:F()({"border border-solid border-blue200 rounded-xl bg-blue50 p-6":!Q}),ref:D,children:(0,o.Y)(q.A,{serviceType:l,onClickReview:ne,dataTracking:V.Yh.clickWriteReview,contestMode:Q,className:"!border-none !mb-0"})}),(0,o.Y)(U.A,{data:a,refetchList:c,showReviewForm:A,setShowReviewForm:E,isContestMode:Q})]})}),(0,o.Y)("div",{className:"flex-1",children:(0,o.FD)("div",{className:"space-y-3 sticky top-[80px]",children:[(0,o.Y)(G,{name:z,description:X||"",logo:H||"",link:$}),(0,o.Y)(T.N,{children:I&&(0,o.Y)(R.P.div,{className:F()({"border border-solid border-blue200 rounded-xl bg-blue50 p-6":!Q}),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:(0,o.Y)(q.A,{serviceType:l,onClickReview:ne,dataTracking:V.Yh.clickWriteReview,contestMode:Q,className:"!border-none !mb-0"})})})]})})]})})})})},K=!0,j=function(e){var n=e.canonicalUrl,i=e.footerInfo,S=e.navMenuContent,w=e.hospitalServiceDetail,I=e.serviceType,F=e.faqsResult,P=e.isReviewsPage,T=e.isPaymentPage,R=e.paymentResult,k=(0,_.$)(),O=k.locale,V=void 0===O?"vi-VN":O,L=w.service_type,H=w.display_name,G=w.logo,q=w.description,U=w.price,K=w.price_discount,j=w.price_unit,J=w.organization,X=(0,r.useState)(w),W=X[0],Z=X[1],$=(0,r.useContext)(N.B).state.isMobileSsr,Q=(0,b.l)().isMobile,ee=(0,m.E)($,Q),ne=(0,M.A)().formatMessage,ie=(0,g.Jf)(),te=ie.paymentResult,ae=ie.setVaccinationDetail,oe=ie.setPaymentResult,re=ie.setQuantity;(0,r.useMemo)((function(){oe(R)}),[R]),(0,r.useEffect)((function(){Z(w),ae(w)}),[w]),(0,r.useEffect)((function(){re((0,h.Kb)(k.query.qty,w.max_product_quantity||h.ZX,!!w.quantity_supported))}),[k.query.qty,w.max_product_quantity,w.quantity_supported]);var ce=(0,C.oN)(V),le="".concat(ce).concat(n),se=[{label:ne({id:"detailPage.breadcrumbs.home",defaultMessage:"Home"}),value:ce},{label:ne({id:"detailPage.breadcrumbs.".concat(L),defaultMessage:"Hospital Service"}),value:"".concat(ce).concat((0,C.WZ)(L,V))},{label:H,value:le}],de={display_name:H,description:q,price:U,price_discount:K,price_unit:j,organization:J,image:G},ue=[(0,Y.J9)(ne({id:"home.discover.seoDescription",defaultMessage:"Care"}),V),(0,Y.to)(se),(0,A.V)(J,le),(0,A.d)(de,le,V),(0,Y.wm)((null===F||void 0===F?void 0:F.faq)||[])],pe=(0,Y.dS)(ue),fe=JSON.stringify(pe);(0,r.useEffect)((function(){ee&&k.replace(window.location.href.replace("/reviews",""))}),[ee]);var ve=function(){var e=(0,t.A)((function(){var e,n,i;return(0,a.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,l.Xx.getVaccinationDetail({id:String(w.id),isV4:!0})];case 1:return e=t.sent(),n=(0,c.kg)(e.vaccine,I),Z(n),ae(n),[3,3];case 2:return i=t.sent(),console.error("Refetch hospital service detail failed",i),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return P?(0,o.Y)(z,{canonicalUrl:n,footerInfo:i,navMenuContent:S,hospitalServiceDetail:W,refetchHospitalServiceDetail:ve,serviceType:I}):T?te||R?(0,o.FD)(o.FK,{children:[(0,o.Y)(v.A,{vaccinationDetail:W}),(0,o.Y)(f.A,{vaccinationDetail:W,paymentResult:te||R})]}):(0,o.FD)(o.FK,{children:[(0,o.Y)(v.A,{vaccinationDetail:w}),(0,o.Y)(E.XP,{children:(0,o.Y)(u.DT,{serviceData:w,children:(0,o.Y)(p.A,{vaccinationDetail:w})})})]}):(0,o.FD)(o.FK,{children:[(0,o.Y)(x(),{children:(0,o.Y)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:fe}})}),(0,o.Y)(B.K,{title:W.display_name,description:W.description||"",image:y.ElQ[V].HOMEPAGE_IMAGE,isSearchBarDisplay:!0,isHeaderCollapsible:!ee,SEOData:{isIndexable:!0,hasNoAmp:!0,canonicalUrl:null===n||void 0===n?void 0:n.toLowerCase()},isMobile:ee,footerInfo:i,ssrNavMenu:S||void 0,children:(0,o.Y)("div",{className:"pb-[72px] bg-neutral50",children:(0,o.Y)(s.mc,{isFluid:!0,isNewContainer:!0,className:"!pb-8",children:(0,o.FD)(E.XP,{children:[(0,o.Y)(d.A,{className:"hidden md:block py-4",pages:se}),(0,o.Y)(u.DT,{serviceData:W,children:(0,o.Y)(D.x,{data:W,refetchHospitalServiceDetail:ve,faqsResult:F},W.id)})]})})})})]})}},80761:function(e,n,i){"use strict";i.r(n),i.d(n,{__N_SSP:function(){return C}});var t=i(2445),a=i(73884),o=i(53611),r=i(21995),c=i(48894),l=i(13306),s=i(34767),d=i(4736),u=i(77961),p=i(73419),f=i(53100),v=i(40959),g=i(28636),h=i.n(g),m=i(6442),_=i(36259),b=i(39078),y=i(9902),S=i(13034),x=i(6559),M=i(26754),N=i(37927),Y=i(94209),A=i(28171),C=!0;n.default=function(e){var n,i=e.canonicalUrl,g=e.footerInfo,C=e.navMenuContent,E=e.pageType,D=e.serviceType,w=e.initServiceData,I=(0,p.$)().locale,F=(0,a.useContext)(_.B).state.isMobileSsr,P=(0,d.useAppContext)().state.featureFlags.enableConsultDoctorButton,T=(0,f.l)().isMobile,R=(0,m.A)().formatMessage,k=(0,u.E)(F,T),O=(0,a.useState)(!1),V=O[0],L=O[1],H=function(e){L(e)},G=(0,S.oN)(I),q="".concat(G).concat(i),U=[{label:R({id:"detailPage.breadcrumbs.home",defaultMessage:"Home"}),value:G},{label:R({id:"detailPage.breadcrumbs.".concat(D),defaultMessage:"Hospital Service"}),value:q}],B=[(0,b.J9)(R({id:"home.discover.seoDescription",defaultMessage:"Care"}),I),(0,b.to)(U),(0,y.v)({listingType:R({id:"detailPage.breadcrumbs.".concat(D),defaultMessage:"Vaccination"}),listingDescription:R({id:"page.seoDescription.vaccination",defaultMessage:"Vaccination"}),items:(null===w||void 0===w?void 0:w.items)||[],currentUrl:q,totalItems:(null===w||void 0===w||null===(n=w.pagination)||void 0===n?void 0:n.total_items)||0,locale:I})],z=(0,b.dS)(B),K=JSON.stringify(z);return(0,t.FD)(t.FK,{children:[(0,t.Y)(h(),{children:(0,t.Y)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:K}})}),(0,t.Y)(A.K,{title:R({id:"page.title.".concat(E.toLowerCase()),defaultMessage:E}),description:R({id:"page.seoDescription.".concat(E.toLowerCase()),defaultMessage:"".concat(E,"-description")}),image:v.ElQ[I].HOMEPAGE_IMAGE,isSearchBarDisplay:!0,SEOData:{isIndexable:!0,hasNoAmp:!0,canonicalUrl:null===i||void 0===i?void 0:i.toLowerCase()},isMobile:k,footerInfo:g,ssrNavMenu:C,children:(0,t.Y)("div",{className:" bg-neutral50",children:(0,t.FD)(M.XP,{children:[P?(0,t.Y)(x.k,{locale:I,handleClick:function(){H(!0)},className:"fixed right-4 bottom-4 md:right-5 md:bottom-6 z-[2] w-screen h-fit"}):k&&I===r.L.Vietnam&&(0,t.Y)(N.m,{locale:I,isMobile:k,handleSubmitCTA:function(e){var n=e.callingCode,i=e.countryCode,t=e.phone;return c.F.collectionSubmitCTA({area_code:n,country_code:i,cta_text:"",phone_number:t,source_url:"".concat(window.location.origin).concat(window.location.pathname),messaging_app:l.so.Zalo,source_type:l.Y1[E]})}}),(0,t.Y)(Y.K,{initItems:(null===w||void 0===w?void 0:w.items)||[],initPagination:null===w||void 0===w?void 0:w.pagination,initFilterListings:{healthCondition:null===w||void 0===w?void 0:w.healthCondition,lifeStage:null===w||void 0===w?void 0:w.lifeStage,ageGroup:null===w||void 0===w?void 0:w.ageGroups},serviceType:D,breadcrumbsPages:U}),(0,t.Y)(o.g,{locale:I,isOpen:V,isMobile:k,onOpenChange:H,onSubmit:function(e){var n=e.callingCode,i=e.countryCode,t=e.phone,a=e.gender,o=e.name;return s.Xx.submitConsultation({area_code:n,country_code:i,phone_number:t,source_url:window.location.href,category_name:D,listing_id:"N/A",name:o,gender:a,extras_data:{platform:k?"mobile":"desktop"}})}})]})})})]})}},76887:function(e,n,i){"use strict";i.r(n),i.d(n,{__N_SSP:function(){return q},default:function(){return U}});var t=i(81539),a=i(2445),o=i(73884),r=i(3873),c=i(26115),l=i(28519),s=i(35291),d=i(81942),u=i(74029),p=i(59850),f=i(84091),v=i(88491),g=i(22699),h=i(73419),m=i(40959),_=i(12215),b=i.n(_),y=i(6442),S=i(36259),x=i(19475),M=i(3045),N=i(7449),Y=i(78859),A=i(57920),C=i(14585),E=i(92012),D=i(2594),w=i(41579),I=i(24537),F=i(27317);function P(){var e=(0,I.A)(["\n border-bottom: solid 1px\n ",";\n .cover-img {\n width: 100%;\n height: 380px;\n border-radius: 8px;\n object-fit: cover;\n aspect-ratio: 60 / 19;\n "," {\n border-radius: 0;\n /* margin: 0 -16px; */\n /* width: calc(100% + 32px); */\n height: auto;\n width: 100%;\n aspect-ratio: 375/240;\n }\n }\n\n "," {\n margin: 0 -16px;\n\n & .logo {\n padding-left: 16px;\n padding-right: 16px;\n }\n }\n"]);return P=function(){return e},e}function T(){var e=(0,I.A)(["\n "," {\n padding: 16px;\n display: flex;\n gap: 32px;\n }\n\n .logo {\n flex-shrink: 0;\n position: relative;\n top: -56px;\n img {\n border-radius: 50%;\n width: 168px;\n height: 168px;\n object-fit: contain;\n box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.07),\n 0px 4px 7px rgba(0, 0, 0, 0.15);\n background-color: rgb(248, 249, 252);\n }\n\n "," {\n display: flex;\n justify-content: center;\n text-align: center;\n top: -100px;\n /* img {\n width: 80px;\n height: 80px;\n } */\n }\n }\n\n .info {\n "," {\n margin-top: -88px;\n padding-left: 16px;\n padding-right: 16px;\n }\n .name {\n "," {\n text-align: center;\n }\n }\n .info-label {\n text-transform: uppercase;\n }\n }\n"]);return T=function(){return e},e}var R=F.Ay.div.withConfig({componentId:"sc-950165c7-0"})(P(),(function(e){return e.theme.colors.neutral100}),c.M.mbDown,c.M.mbDown),k=F.Ay.div.withConfig({componentId:"sc-950165c7-1"})(T(),c.M.tdUp,c.M.mbDown,c.M.mbDown,c.M.mbDown),O=function(e){var n=e.organizationInfo,i=(0,y.A)().formatMessage;return(0,a.FD)(R,{className:"pb-[8px] mt-[22px]",children:[(0,a.Y)("img",{src:(null===n||void 0===n?void 0:n.banner)||w.C.getAssetPath("care/default-hospital-banner.jpg"),alt:null===n||void 0===n?void 0:n.name,className:"cover-img"}),(0,a.FD)(k,{children:[(0,a.Y)("div",{className:"logo",children:(0,a.Y)("img",{src:null===n||void 0===n?void 0:n.logo,alt:"".concat(null===n||void 0===n?void 0:n.name," Logo")})}),(0,a.FD)("div",{className:"info",children:[(0,a.Y)("div",{className:"name",children:(0,a.Y)(D.H,{tag:"h4",as:"h1",color:s.w.colors.gray800,children:null===n||void 0===n?void 0:n.name})}),(0,a.Y)(r.T,{size:"c2",type:"bold",color:s.w.colors.gray800,className:"mt-[26px] info-label",children:i({id:"organizationPage.orgInfo",defaultMessage:"Organization Info"})}),(0,a.Y)(r.T,{size:"c2",color:s.w.colors.gray800,className:"mt-[16px]",children:null===n||void 0===n?void 0:n.description})]})]})]})},V=i(28171),L=i(81e3),H=i(86711),G=function(e){var n=e.noResultMessage;return(0,a.Y)(x.mc,{style:{flex:5,padding:0},children:(0,a.FD)(E.sV,{children:[(0,a.Y)(H.A,{}),(0,a.Y)("div",{children:(0,a.Y)(r.T,{size:"base",children:n})})]})})},q=!0,U=function(e){var n,i,_,D,w,I,F,P,T,R=e.query,k=e.organizationInfo,H=e.listOrganizationHospitalSSR,q=e.canonicalUrl,U=e.footerInfo,B=e.navMenuContent,z=e.seoConfig,K=(0,y.A)().formatMessage,j=(0,h.$)(),J=(0,v.d)().isMobile,X=j.query,W=j.locale,Z=void 0===W?"vi-VN":W,$=j.asPath,Q=(0,o.useState)(X.page&&parseInt(X.page)||1),ee=Q[0],ne=Q[1],ie=(0,o.useState)(),te=ie[0],ae=ie[1];(0,o.useEffect)((function(){var e=b().get("geoLocation"),n={lat:"",lng:""};if(e)try{var i=JSON.parse(e),t=i.lat,a=i.lng;n.lat=t,n.lng=a}catch(o){}ae(n)}),[$]);var oe,re,ce,le=(0,o.useState)(R),se=le[0],de=le[1],ue=(0,o.useState)(!1),pe=ue[0],fe=ue[1],ve=(0,o.useState)({}),ge=ve[0],he=ve[1],me=(0,o.useContext)(S.B).pushNotifications,_e=(0,g.A)({url:se,method:"GET",trigger:se,condition:se!==R}),be=_e.loading,ye=void 0!==be&&be,Se=_e.response,xe=void 0===Se?{}:Se,Me=null!==(oe=null===xe||void 0===xe||null===(n=xe._data)||void 0===n?void 0:n.pagination.total_items)&&void 0!==oe?oe:null===H||void 0===H||null===(i=H._data)||void 0===i||null===(_=i.pagination)||void 0===_?void 0:_.total_items,Ne=null!==(re=null===xe||void 0===xe||null===(D=xe._data)||void 0===D||null===(w=D.pagination)||void 0===w?void 0:w.last)&&void 0!==re?re:null===H||void 0===H||null===(I=H._data)||void 0===I||null===(F=I.pagination)||void 0===F?void 0:F.last,Ye=null!==(ce=null===xe||void 0===xe||null===(P=xe._data)||void 0===P?void 0:P.searches)&&void 0!==ce?ce:null===H||void 0===H||null===(T=H._data)||void 0===T?void 0:T.searches,Ae=function(e){he(e)},Ce=(0,o.useMemo)((function(){return z.title?z.title:K({id:"home.seoTitle.hospitalDetail",defaultMessage:"{hospitalName} - Book Appointments Online"},{hospitalName:null===k||void 0===k?void 0:k.name})}),[z]),Ee=(0,o.useMemo)((function(){return z.description?z.description:(null===k||void 0===k?void 0:k.description)||K({id:"home.seoTitle.hospitalDetail",defaultMessage:"{hospitalName} - Book Appointments Online"},{hospitalName:null===k||void 0===k?void 0:k.name})}),[z,k]),De=(0,o.useMemo)((function(){return z.image?z.image:(0,N.PN)(null===k||void 0===k?void 0:k.id,"organization",Z)}),[z,null===k||void 0===k?void 0:k.id]),we=(0,o.useMemo)((function(){var e=(0,A.IF)(ge,X,Z);return de(e),e}),[JSON.stringify(ge),X]);(0,o.useEffect)((function(){var e=(0,f.er)(p.R.GET_ORGANIZATION_HOSPITAL_LIST,{id:null===k||void 0===k?void 0:k.id})+"&page=".concat(ee).concat(we);de(e)}),(0,t.A)(Object.keys(X).map((function(e){return X[e]}))).concat([ee,we])),(0,o.useEffect)((function(){if(ee&&Number(ee)>0){var e=(0,c.f)($,ee);j.push(e)}}),[ee]),(0,o.useEffect)((function(){(!Ye||Ye.length<1)&&Ne>0&&ne(1)}),[null===Ye||void 0===Ye?void 0:Ye.length]),(0,o.useEffect)((function(){document.documentElement.classList.toggle("noscroll",pe)}),[pe]);var Ie;return(0,o.useEffect)((function(){!function(e){try{if(b().get(m.OK8)){var n=JSON.parse(b().get(m.OK8)||JSON.stringify(""));ae(n),e&&e(n),console.log("Got location from sessionStorage")}else navigator.geolocation?navigator.geolocation.getCurrentPosition((function(n){var i={lat:"".concat(Math.round(1e7*n.coords.latitude)/1e7),lng:"".concat(Math.round(1e7*n.coords.longitude)/1e7)};b().set(m.OK8,JSON.stringify(i)),ae(i),e&&e(i),console.log("Got location from navigator")}),(function(n){e&&e(),n.code!==GeolocationPositionError.TIMEOUT&&n.code!==GeolocationPositionError.POSITION_UNAVAILABLE||me({message:K({id:"error.geoLocation.anErrorOccurred",defaultMessage:"An error occurred while requesting your location"}),type:"danger"})})):(e&&e(),console.log("location determined failed"))}catch(i){e&&e(),console.log("Error determining location",i)}}()}),[]),(0,a.FD)(a.FK,{children:[(0,a.FD)(V.K,{title:Ce,description:Ee,image:De,isSearchBarDisplay:!0,SEOData:{isIndexable:!0,hasNoAmp:!0,canonicalUrl:null===q||void 0===q?void 0:q.toLowerCase()},isMobile:J,footerInfo:U,ssrNavMenu:B,children:[(0,a.Y)(M.A,{children:(0,a.Y)(l.B,{size:"md",pages:[{label:K({id:"home.navigator.menuItem.helloCare",defaultMessage:"Search"}),value:"".concat(m.JpE,"/")},{label:null===k||void 0===k?void 0:k.name,value:q}]})}),(0,a.FD)(x.mc,{children:[(0,a.Y)(O,{organizationInfo:k}),(0,a.FD)(E.m,{className:"py-[24px]",children:[(0,a.Y)(r.T,{size:"p4",color:s.w.colors.secondaryDark,type:"caption",children:K({id:"organizationPage.numberResults",defaultMessage:"{number} hospitals in organization"},{number:Me})}),J&&(0,a.FD)(E._p,{onClick:function(){fe(!0)},children:[(0,a.Y)(r.T,{size:"base",type:"regular",children:K({id:"searchPage.filter",defaultMessage:"Filter"})}),(0,a.Y)(L.A,{})]})]}),(0,a.FD)(E.F_,{children:[Me>0?(0,a.FD)("div",{className:"hospitals",children:[(0,a.Y)(C.e,{gps:te,results:null!==(Ie=null===Ye||void 0===Ye?void 0:Ye.map(u.em))&&void 0!==Ie?Ie:[]}),Me>0&&Ne>1&&(0,a.Y)(d.P,{className:"pagination",pagesAmount:Ne,currentPage:ee,onClick:function(e){return e.preventDefault()},onChange:function(e){window.scrollTo({top:0,left:0,behavior:"smooth"}),setTimeout((function(){ne(e)}),200)},href:m.kUY?q:window.location.href})]}):(0,a.Y)(G,{noResultMessage:K({id:"organizationPage.noResult",defaultMessage:"No Result"})}),!J&&(0,a.Y)("div",{className:"filter",children:(0,a.Y)(Y.HX,{onCloseClick:function(){return fe(!1)},isMobile:J,numberOfResults:Me,isLoading:ye,gps:te,isShowedDistanceFilter:!1,onFilterChange:Ae,filters:ge})})]})]})]}),(0,a.Y)(a.FK,{children:J&&pe&&(0,a.Y)("div",{className:"filter",children:(0,a.Y)(Y.HX,{onCloseClick:function(){return fe(!1)},isMobile:J,numberOfResults:Me,isLoading:ye,gps:te,isShowedDistanceFilter:!1,onFilterChange:Ae,filters:ge})})})]})}},17283:function(e,n,i){"use strict";i.r(n),i.d(n,{__N_SSP:function(){return N}});var t=i(2445),a=i(7367),o=i(73884),r=i(47761),c=i(2594),l=i(27516),s=i(19475),d=i(90332),u=i(79151),p=i(77961),f=i(73419),v=i(53100),g=i(40959),h=i(12215),m=i.n(h),_=i(6442),b=i(36259),y=i(81741),S=i.n(y),x=i(50470),M=i(28171),N=!0;n.default=function(e){var n=e.specialties,i=e.canonicalUrl,h=e.searchKeywords,y=e.footerInfo,N=e.navMenuContent,Y=e.isHasDoctorList,A=e.isHasServiceList,C=(0,f.$)(),E=C.locale,D=void 0===E?"vi-VN":E,w=C.asPath,I=(0,o.useContext)(b.B).state.isMobileSsr,F=(0,v.l)().isMobile,P=(0,p.E)(I,F),T=(0,_.A)().formatMessage,R=(0,o.useMemo)((function(){return h?decodeURIComponent(h):""}),[h,n]),k=(0,o.useMemo)((function(){if(a.C9.includes(D))return["service","specialty"];var e=[];return Y||e.push("doctor"),A||e.push("service"),e}),[D,Y,A]),O=(0,o.useState)(),V=O[0],L=O[1];return(0,o.useEffect)((function(){var e=m().get("geoLocation"),n={lat:"",lng:""};if(e)try{var i=JSON.parse(e),t=i.lat,a=i.lng;n.lat=t,n.lng=a}catch(o){}L(n)}),[w]),(0,t.FD)(M.K,{title:T({id:"page.title.specialties",defaultMessage:"Specialties"}),description:T({id:"home.seoDescription",defaultMessage:"Care"}),image:g.ElQ[D].HOMEPAGE_IMAGE,isSearchBarDisplay:!0,SEOData:{isIndexable:!0,hasNoAmp:!0,canonicalUrl:null===i||void 0===i?void 0:i.toLowerCase()},isMobile:P,footerInfo:y,ssrNavMenu:N,children:[(0,t.FD)("div",{className:S().pSpecialties,children:[(0,t.Y)(u.pv,{}),(0,t.Y)(u.tu,{className:"p-[0px]",children:(0,t.Y)(u.k6,{children:(0,t.Y)(r.n,{careApiDomain:"https://health-care.hellohealthgroup.com/",isMobile:P,geoLocationCoordinates:V,geoLocationPermission:(null===V||void 0===V?void 0:V.lat)&&(null===V||void 0===V?void 0:V.lng)?"granted":"unset",initTypeSearch:"specialty",initialSearchValue:R,gaTrackingSearchBar:{dataEventCategory:"Care",dataEventAction:"Search Click",dataEventLabel:"https://".concat(l.y[D]).concat(g.JpE).concat(w)},autoCompleteDisabled:"zh-TW"===D,hideTabBookingSearch:k,triggerSearchWhenChangeFilter:!0})})}),(0,t.FD)(s.mc,{className:S().contentInner,children:[(0,t.Y)(c.H,{as:"h1",tag:"h5",color:"#000",style:P?{margin:"32px 0 12px"}:{margin:"46px 0 20px"},children:T({id:"specialties.allSpecialties",defaultMessage:"All Specialties"})}),(0,t.Y)(d.V4,{columns:3,columnsDesktop:6,specialties:n,gap:"8px",gapDesktop:"32px",isMobile:P})]})]}),"vi-VN"===D?(0,t.Y)(x.z,{token:g.n_},g.n_):(0,t.Y)(t.FK,{})]})}},63376:function(e,n,i){"use strict";i.r(n),i.d(n,{__N_SSP:function(){return K},default:function(){return j}});var t=i(858),a=i(83776),o=i(2445),r=i(73884),c=i(74029),l=i(34767),s=i(19475),d=i(21861),u=i(47511),p=i(95204),f=i(77961),v=i(73419),g=i(53100),h=i(40959),m=i(28636),_=i.n(m),b=i(6442),y=i(36259),S=i(39078),x=i(92509),M=i(13034),N=i(26754),Y=i(90522),A=i(45782),C=i(18754),E=i(59869),D=i(42280),w=i(98771),I=i(32485),F=i.n(I),P=i(10905),T=i(41145),R=i(54109),k=i(10813),O=i(34283),V=i(56877),L=i(45295),H=i(57716),G=function(e){var n=e.name,i=e.description,t=e.logo,a=e.link,r=(0,v.$)();return(0,o.Y)("div",{className:"bg-white rounded-2xl p-4 hover:shadow-lg transition-shadow cursor-pointer",onClick:function(){return r.push(a)},children:(0,o.FD)("div",{className:"flex gap-3",children:[(0,o.Y)("div",{className:"flex-1",children:(0,o.FD)("div",{className:"space-y-2",children:[(0,o.Y)(w.T,{size:"h4",fw:600,color:"gray1000",children:n}),(0,o.Y)(w.T,{size:"title2",fw:400,color:"gray700",children:i})]})}),(0,o.Y)("div",{className:"flex-shrink-0 flex-grow-[72px]",children:(0,o.Y)(H.I,{alt:n,src:t||c.__,width:72,height:72,className:"rounded-lg w-[72px] h-[72px]"})})]})})},q=i(89312),U=i(46345),B=i(28171),z=function(e){var n=e.canonicalUrl,i=e.footerInfo,t=e.navMenuContent,a=e.vaccinationDetail,c=e.refetchVaccinationDetail,l=(0,v.$)(),d=l.locale,u=void 0===d?"vi-VN":d,p=(0,b.A)().formatMessage,m=(0,r.useContext)(y.B).state.isMobileSsr,_=(0,g.l)().isMobile,S=(0,f.E)(m,_),x=(0,r.useState)(!1),N=x[0],Y=x[1],A=(0,r.useRef)(null),C=(0,R.h)(A),E=a.logo,D=a.display_name,I=a.contest,H=a.start_time_contest_mode,z=a.end_time_contest_mode,K=a.description,j=a.slug,J=a.id,X=(0,r.useMemo)((function(){return"".concat((0,M.WZ)(h.Hxq.VACCINE,u,""),"/").concat(j,"-").concat(J,"/")}),[u,j,J]),W=(0,k.A)({contest:!!I,start_time_contest_mode:H,end_time_contest_mode:z}).isContestMode,Z=function(){S?Y(!0):(0,L.S)(l,j,J)};return(0,o.Y)(B.K,{title:D,description:K||"",image:h.ElQ[u].HOMEPAGE_IMAGE,isSearchBarDisplay:!0,SEOData:{isIndexable:!0,hasNoAmp:!0,canonicalUrl:null===n||void 0===n?void 0:n.toLowerCase()},isMobile:S,footerInfo:i,ssrNavMenu:t||void 0,children:(0,o.Y)(V._,{className:"pb-[72px] pt-6",children:(0,o.Y)(s.mc,{isFluid:!0,isNewContainer:!0,className:"!pb-8",children:(0,o.FD)("div",{className:"flex gap-6",children:[(0,o.Y)("div",{className:"bg-white p-6 rounded-2xl w-[552px]",children:(0,o.FD)("div",{className:"space-y-6",children:[(0,o.Y)(w.T,{size:"h3",fw:600,color:"gray1000",children:p({id:"userReview.allReviews",defaultMessage:"All Product Review"})}),(0,o.Y)("div",{className:F()({"border border-solid border-blue200 rounded-xl bg-blue50 p-6":!W}),ref:A,children:(0,o.Y)(q.A,{serviceType:a.service_type,onClickReview:Z,dataTracking:O.Yh.clickWriteReview,contestMode:W,className:"!border-none !mb-0"})}),(0,o.Y)(U.A,{data:a,refetchList:c,showReviewForm:N,setShowReviewForm:Y,isContestMode:W})]})}),(0,o.Y)("div",{className:"flex-1",children:(0,o.FD)("div",{className:"space-y-3 sticky top-[80px]",children:[(0,o.Y)(G,{name:D,description:K||"",logo:E||"",link:X}),(0,o.Y)(P.N,{children:C&&(0,o.Y)(T.P.div,{className:F()({"border border-solid border-blue200 rounded-xl bg-blue50 p-6":!W}),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:(0,o.Y)(q.A,{serviceType:a.service_type,onClickReview:Z,dataTracking:O.Yh.clickWriteReview,contestMode:W,className:"!border-none !mb-0"})})})]})})]})})})})},K=!0,j=function(e){var n=e.canonicalUrl,i=e.footerInfo,m=e.navMenuContent,w=e.vaccinationDetail,I=e.isPaymentPage,F=e.isReviewsPage,P=e.paymentResult,T=e.faqsResult,R=(0,v.$)(),k=R.locale,O=void 0===k?"vi-VN":k,V=(0,r.useState)(w),L=V[0],H=V[1],G=w.logo,q=w.display_name,U=w.description,K=w.price,j=w.price_discount,J=w.price_unit,X=w.organization,W=(0,r.useContext)(y.B).state.isMobileSsr,Z=(0,g.l)().isMobile,$=(0,f.E)(W,Z),Q=(0,D.Jf)(),ee=Q.paymentResult,ne=Q.setVaccinationDetail,ie=Q.setPaymentResult,te=Q.setQuantity,ae=(0,b.A)().formatMessage;(0,r.useEffect)((function(){ne(w)}),[null===w||void 0===w?void 0:w.id]),(0,r.useMemo)((function(){ie(P)}),[P]),(0,r.useEffect)((function(){te((0,p.Kb)(R.query.qty,w.max_product_quantity||p.ZX,!!w.quantity_supported))}),[R.query.qty,w.max_product_quantity,w.quantity_supported]),(0,r.useEffect)((function(){$&&R.replace(window.location.href.replace("/reviews",""))}),[$]);var oe=(0,M.oN)(O),re="".concat(oe).concat(n),ce="".concat(oe).concat((0,M.WZ)(h.Hxq.VACCINE,O)),le=[{label:ae({id:"detailPage.breadcrumbs.home",defaultMessage:"Home"}),value:oe},{label:ae({id:"detailPage.breadcrumbs.vaccinations",defaultMessage:"Vaccination"}),value:ce},{label:q,value:re}],se={display_name:q,description:U,price:K,price_discount:j,price_unit:J,image:G},de=[(0,S.J9)(ae({id:"home.discover.seoDescription",defaultMessage:"Care"}),O),(0,S.to)(le),(0,x.V)(X,re),(0,x.d)(se,re,O),(0,S.wm)((null===T||void 0===T?void 0:T.faq)||[])],ue=(0,S.dS)(de),pe=JSON.stringify(ue),fe=function(){var e=(0,t.A)((function(){var e,n;return(0,a.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,l.Xx.getVaccinationDetail({id:String(w.id),isV4:!0})];case 1:return e=i.sent(),[2,H((0,c.mQ)(e.vaccine))];case 2:return n=i.sent(),console.error(n),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return F?(0,o.Y)(z,{canonicalUrl:n,footerInfo:i,navMenuContent:m,vaccinationDetail:w,refetchVaccinationDetail:fe}):I?ee||P?(0,o.FD)(o.FK,{children:[(0,o.Y)(E.A,{vaccinationDetail:w}),(0,o.Y)(C.A,{vaccinationDetail:w,paymentResult:ee||P})]}):(0,o.FD)(o.FK,{children:[(0,o.Y)(E.A,{vaccinationDetail:w}),(0,o.Y)(N.XP,{children:(0,o.Y)(u.DT,{serviceData:w,children:(0,o.Y)(A.A,{vaccinationDetail:w})})})]}):(0,o.FD)(o.FK,{children:[(0,o.Y)(_(),{children:(0,o.Y)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:pe}})}),(0,o.Y)(B.K,{title:w.display_name||ae({id:"page.title.vaccination",defaultMessage:"Vaccination"}),description:w.description||ae({id:"home.seoDescription",defaultMessage:"Care"}),image:h.ElQ[O].HOMEPAGE_IMAGE,isSearchBarDisplay:!0,isHeaderCollapsible:!$,SEOData:{isIndexable:!0,hasNoAmp:!0,canonicalUrl:null===n||void 0===n?void 0:n.toLowerCase()},isMobile:$,footerInfo:i,ssrNavMenu:m||void 0,children:(0,o.Y)(Y._9,{className:"pb-[72px]",children:(0,o.Y)(s.mc,{isFluid:!0,isNewContainer:!0,className:"!pb-8",children:(0,o.FD)(N.XP,{children:[(0,o.Y)(d.A,{className:"hidden md:block py-4",pages:le}),(0,o.Y)(u.DT,{serviceData:w,children:(0,o.Y)(Y.Rn,{refetchVaccinationDetail:fe,vaccinationDetail:L,faqsResult:T},w.id)})]})})})})]})}},80552:function(e,n,i){"use strict";i.r(n),i.d(n,{__N_SSP:function(){return A}});var t=i(2445),a=i(73884),o=i(53611),r=i(48894),c=i(13306),l=i(34767),s=i(4736),d=i(77961),u=i(73419),p=i(53100),f=i(40959),v=i(28636),g=i.n(v),h=i(6442),m=i(36259),_=i(39078),b=i(9902),y=i(13034),S=i(6559),x=i(26754),M=i(37927),N=i(90522),Y=i(28171),A=!0;n.default=function(e){var n,i=e.canonicalUrl,v=e.footerInfo,A=e.navMenuContent,C=e.initServiceData,E=(0,u.$)().locale,D=(0,a.useContext)(m.B).state.isMobileSsr,w=(0,s.useAppContext)().state.featureFlags.enableConsultDoctorButton,I=(0,p.l)().isMobile,F=(0,d.E)(D,I),P=(0,h.A)().formatMessage,T=(0,a.useState)(!1),R=T[0],k=T[1],O=function(e){k(e)},V=(0,y.oN)(E),L="".concat(V).concat(i),H=[{label:P({id:"detailPage.breadcrumbs.home",defaultMessage:"Home"}),value:V},{label:P({id:"detailPage.breadcrumbs.vaccinations",defaultMessage:"Vaccination"}),value:L}],G=[(0,_.J9)(P({id:"home.discover.seoDescription",defaultMessage:"Care"}),E),(0,_.to)(H),(0,b.v)({listingType:P({id:"detailPage.breadcrumbs.vaccinations",defaultMessage:"Vaccination"}),listingDescription:P({id:"page.seoDescription.vaccination",defaultMessage:"Vaccination"}),items:(null===C||void 0===C?void 0:C.items)||[],currentUrl:L,totalItems:(null===C||void 0===C||null===(n=C.pagination)||void 0===n?void 0:n.total_items)||0,locale:E})],q=(0,_.dS)(G),U=JSON.stringify(q);return(0,t.FD)(t.FK,{children:[(0,t.Y)(g(),{children:(0,t.Y)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:U}})}),(0,t.Y)(Y.K,{title:P({id:"page.title.vaccination",defaultMessage:"Vaccination"}),description:P({id:"page.seoDescription.vaccination",defaultMessage:"Vaccination"}),image:f.ElQ[E].HOMEPAGE_IMAGE,isSearchBarDisplay:!0,SEOData:{isIndexable:!0,hasNoAmp:!0,canonicalUrl:null===i||void 0===i?void 0:i.toLowerCase()},isMobile:F,footerInfo:v,ssrNavMenu:A,children:(0,t.Y)(N._9,{children:(0,t.FD)(x.XP,{children:[w?(0,t.Y)(S.k,{locale:E,handleClick:function(){O(!0)},className:"fixed right-4 bottom-4 md:right-5 md:bottom-6 z-[2] w-screen h-fit"}):(0,t.Y)(M.m,{locale:E,isMobile:F,handleSubmitCTA:function(e){var n=e.callingCode,i=e.countryCode,t=e.phone;return r.F.collectionSubmitCTA({area_code:n,country_code:i,cta_text:"",phone_number:t,source_url:"".concat(window.location.origin).concat(window.location.pathname),messaging_app:c.so.Zalo})}}),(0,t.Y)(N.rx,{initItems:(null===C||void 0===C?void 0:C.items)||[],initPagination:null===C||void 0===C?void 0:C.pagination,filterAgeGroup:null===C||void 0===C?void 0:C.ageGroups,breadcrumbsPages:H}),(0,t.Y)(o.g,{locale:E,isOpen:R,isMobile:F,onOpenChange:O,onSubmit:function(e){var n=e.callingCode,i=e.countryCode,t=e.phone,a=e.gender,o=e.name;return l.Xx.submitConsultation({area_code:n,country_code:i,phone_number:t,source_url:window.location.href,category_name:f.Hxq.VACCINE,listing_id:"N/A",name:o,gender:a,extras_data:{platform:F?"mobile":"desktop"}})}})]})})})]})}},98269:function(e,n,i){"use strict";i.r(n),i.d(n,{__N_SSP:function(){return f}});var t=i(2445),a=i(73884),o=i(26754),r=i(47511),c=i(45782),l=i(18754),s=i(59869),d=i(42280),u=i(95204),p=i(73419),f=!0;n.default=function(e){var n=e.vaccinationDetail,i=e.isPaymentPage,f=e.paymentResult,v=(0,p.$)(),g=(0,d.Jf)(),h=g.paymentResult,m=g.setQuantity,_=g.setVaccinationDetail,b=g.setPaymentResult;return(0,a.useEffect)((function(){_(n)}),[null===n||void 0===n?void 0:n.id]),(0,a.useMemo)((function(){b(f)}),[f]),(0,a.useEffect)((function(){m((0,u.Kb)(v.query.qty,n.max_product_quantity||u.ZX,!!n.quantity_supported))}),[v.query.qty,n.max_product_quantity,n.quantity_supported]),i?h||f?(0,t.FD)(t.FK,{children:[(0,t.Y)(s.A,{vaccinationDetail:n}),(0,t.Y)(l.A,{vaccinationDetail:n,paymentResult:h||f})]}):(0,t.FD)(t.FK,{children:[(0,t.Y)(s.A,{vaccinationDetail:n}),(0,t.Y)(o.XP,{children:(0,t.Y)(r.DT,{serviceData:n,children:(0,t.Y)(c.A,{vaccinationDetail:n})})})]}):null}},85143:function(e,n,i){"use strict";i.r(n),i.d(n,{__N_SSP:function(){return t}});var t=!0;n.default=function(e){return null}},9902:function(e,n,i){"use strict";i.d(n,{v:function(){return o}});var t=i(58741),a=i(92509),o=function(e){var n=e.listingType,i=e.listingDescription,a=e.totalItems,o=e.items,c=e.currentUrl,l=e.locale;return{"@type":t._L.ITEM_LIST,name:n,description:i,numberOfItems:a,itemListElement:r({items:o,currentUrl:c,locale:l})}},r=function(e){var n=e.items,i=e.currentUrl,o=e.locale;return n&&0!==n.length?n.map((function(e,n){var r=e.slug,c=e.hospital_branch,l=e.display_name,s=e.description,d=e.price,u=e.price_discount,p=e.price_unit,f=e.logo,v=null===c||void 0===c?void 0:c[0],g=r&&(null===v||void 0===v?void 0:v.vaccine_detail_id)?"".concat(i).concat(r,"-").concat(null===v||void 0===v?void 0:v.vaccine_detail_id,"/"):"",h={display_name:l,description:s,price:d,price_discount:u,price_unit:p,image:f};return{item:(0,a.d)(h,g,o),position:n+1,"@type":t._L.LIST_ITEM}})):[]}},81741:function(e){e.exports={pSpecialties:"specialties_pSpecialties__caPoO",contentInner:"specialties_contentInner__Vjgyh",bookingDesktop:"specialties_bookingDesktop__vdcbB",specialtiesPageSearch:"specialties_specialtiesPageSearch__QnfCW"}}},function(e){var n=Promise.all([e.f.consumes||function(e,n){},e.f.remotes||function(e,n){}].reduce((function(e,n){return n("2203",e),e}),[])).then((function(){return e.X(0,[1570,5008,2867,971,9875,1856,1933,5163,5452,9474,7365,968,3435,8852,166,8545,2091,6298,7300,6553,84,1825,1145,2288,9570,159,1441,6638,1761,6785,668,3869,7761,3054,9378,2876,4029,7812,5320,1954,9018,8796,643,8754,4613,1991,1393,9028,522,4263,5419,3976,4209,7414,2616,984,3285,636,8792],(function(){return n=83936,e(e.s=n);var n}))}));_N_E=n}]);