"use strict";(self.webpackChunkhhgHealthCareV1=self.webpackChunkhhgHealthCareV1||[]).push([[522],{91177:function(e,n,i){var a,t=i(73884);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var n=1;n img {\n width: 93px;\n height: 43px;\n object-fit: contain;\n }\n }\n"]);return s=function(){return e},e}var d=l.Ay.ul.withConfig({componentId:"sc-98b7fece-0"})(c()),u=l.Ay.li.withConfig({componentId:"sc-98b7fece-1"})(s(),(function(e){return e.theme.colors.neutral200})),p=function(e){var n=e.insurances,i=e.className,r=e.style,l=e.isName,c=void 0===l||l;return n.length?(0,a.Y)(d,{className:i,style:r,children:n.map((function(e){return(0,a.FD)(u,{children:[(0,a.Y)("div",{className:"insuranceLogo",children:(0,a.Y)("img",{src:e.logo,alt:"Logo of ".concat(e.name)})}),c&&(0,a.Y)(t.T,{size:"base",color:o.w.colors.gray500,type:"bold",children:e.name})]},e.id)}))}):null}},56877:function(e,n,i){i.d(n,{_:function(){return o}});var a=i(24537);function t(){var e=(0,a.A)(["\n background-color: ",";\n"]);return t=function(){return e},e}var o=i(27317).Ay.div.withConfig({componentId:"sc-d7a534ea-0"})(t(),(function(e){return e.theme.colors.neutral50}))},90522:function(e,n,i){i.d(n,{_9:function(){return a._},Rn:function(){return Gi},rx:function(){return Ga}});var a=i(56877),t=i(53513),o=i(63538),r=i(53455),l=i(40568),c=i(81539),s=i(2445),d=i(73884),u=i.n(d),p=i(28519),g=i(53611),h=i(57716),m=i(21995),f=i(51387),v=i(74029),b=i(48894),x=i(13306),y=i(34767),w=i(32485),k=i.n(w),_=i(92743),A=i(16552),Y=i(25784),C=i(70643),M=i(98771),N=i(60765),D=i(57421),F=i(47511),S=i(88491),E=i(38971),I=i(73),B=i(35291),P=i(48045),T=i(23421),z=i(44523),O=i(91350),L=i(73419),H=i(40959),V=i(6442),R=i(67722),G=i(34283),U=i(13034),K=i(24537),j=i(48085),W=i(27317);function q(){var e=(0,K.A)(["\n display: flex;\n align-items: center;\n gap: ",";\n\n div {\n gap: ",";\n svg {\n width: ",";\n height: ",";\n }\n }\n"]);return q=function(){return e},e}var J=W.Ay.div.withConfig({componentId:"sc-f7fbee-0"})(q(),(0,j.D)(2),(0,j.D)(0),(0,j.D)(16),(0,j.D)(16)),Z=i(11851),Q=i(26115),$=(B.w.colors.gray700,(0,Z.A)("div",{target:"e9g62zl1"})("display:flex;width:100%;& > .mantine-Button-root#book-now-button-combo-package{background-color:",B.w.colors.primary600,";width:fit-content;&:hover{background-color:",B.w.colors.primary700,";}}& > .mantine-Button-root{padding:0 24px;",Q.M.mbDown,"{padding:0 16px;height:44px;}}")),X=i(25906),ee=i(30448),ne=function(e){var n=e.display_name,i=e.organization,a=e.logo,r=e.name,l=e.percent_discount,c=e.price,u=e.price_discount,g=e.highights_for_upselling,f=e.total_rating,b=e.avg_rating,x=e.currency,y=e.listing_id,w=e.hospital_branch_lists,_=e.slug,A=(0,F.J3)().openPopupOrganizationWithData,Y=(0,L.$)().locale,C=(0,V.A)().formatMessage,N=(0,S.d)().isMobile,D=!(!b||!f),K="".concat((0,U.WZ)(H.Hxq.VACCINE,Y,"")).concat(_,"-").concat(y,"/"),j=(0,d.useState)(""),W=j[0],q=j[1],Z=(0,U.rb)("MULA SEKARANG");(0,d.useEffect)((function(){q((0,U.Kb)(K))}),[]);var Q=(0,d.useMemo)((function(){var e,n=(e={},(0,E.A)(e,m.L.Vietnam,{name:"messenger",link:I.Kt[Y],icon:ee.A,color:"primary600"}),(0,E.A)(e,m.L.Malaysia,{name:"whatsapp",link:Z,icon:X.A,color:"green600"}),e),i=Y,a=n[i].icon;return(0,s.Y)(P.B,(0,o.A)((0,t.A)({size:"lg",className:"w-full rounded-xl z-2 absolute",color:B.w.colors.white,onClick:function(e){e.preventDefault(),e.stopPropagation(),(0,R.HB)(n[i].link)},"data-testid":"package-talk-to-us-button"},(0,G.yz)((0,o.A)((0,t.A)({},G.Yh.talkToUs),{"data-event-action":"Recommend Click Message to ".concat(n[i].name),"data-event-label":n[i].link}),y)),{children:(0,s.FD)("div",{className:"flex items-center justify-center gap-2",children:[(0,s.Y)("div",{className:k()("w-5 h-5",{"text-green600":i===m.L.Malaysia}),children:(0,s.Y)(a,{className:"w-5 h-5 text-inherit"})}),(0,s.Y)(M.T,{size:"p3",color:n[i].color,fw:600,children:C({id:"vaccination.detail.package.button.talkToUs",defaultMessage:"Talk to Us"})})]})}))}),[Y,C]);return(0,s.Y)(z.A,{href:K,passHref:!0,children:(0,s.Y)("div",{className:"border-[0.7px] border-solid border-[#0000001A] min-w-[320px] max-w-[347px] md:max-w-full rounded-xl h-fit",style:{background:"radial-gradient(138.53% 100% at 52.88% 100%, #D1E6FF 0%, #FFFFFF 60%)"},children:(0,s.FD)("div",{className:"flex flex-col gap-4 p-4 w-[inherit]",children:[(0,s.FD)("div",{className:"flex justify-between gap-3 md:gap-4",children:[(0,s.FD)("div",{className:"flex flex-col gap-4 md:gap-3 items-start md:flex-1",children:[(0,s.Y)("div",{className:"flex flex-row justify-between w-full md:flex-col gap-3 md:block",children:(0,s.FD)("div",{className:"flex flex-col gap-1",children:[(0,s.Y)(M.T,{size:N?"title2":"title1",fw:600,color:"gray1000",lineClamp:2,children:r||n}),D&&(0,s.FD)("div",{className:"flex items-center gap-1",children:[(0,s.Y)(J,{children:(0,s.Y)(p.v,{value:1,readOnly:!0})}),(0,s.Y)(M.T,{size:"p3",color:"gray700",fw:500,lineClamp:1,children:N?"".concat(f," ").concat(C({id:"booking.search.tab.review",defaultMessage:"Reviews"})):"(".concat(f,")")})]})]})}),(0,s.Y)("div",{className:k()({hidden:!D,block:D}),children:(0,s.Y)(M.T,{size:"title2",fw:500,color:"gray1000",lineClamp:2,children:(null===i||void 0===i?void 0:i.name)||""})}),(0,s.Y)("div",{className:k()({hidden:D,block:!D}),children:(0,s.Y)(M.T,{size:"title2",fw:500,color:"gray1000",lineClamp:2,children:(null===i||void 0===i?void 0:i.name)||""})})]}),(0,s.Y)("div",{className:"self-start shrink-0 aspect-square",children:(0,s.Y)(h.I,{src:a||v.We,width:72,height:72,className:"rounded-lg object-contain",alt:r||n})})]}),!!g&&(0,s.Y)(M.T,{size:"p3",color:"gray700",fw:400,as:"span",children:(0,s.Y)(T.U,{htmlContent:g})}),(0,s.Y)(O.L,{priceUnit:x,price:c,discountPrice:u,percentageDiscount:l,className:"gap-2",textProps:{price:{size:"title1",fw:600,color:"gray1000"},discount:{size:"c1",fw:400,color:"gray400"}}}),(0,s.FD)($,{className:"gap-3 md:gap-4",children:[(0,s.Y)(P.B,(0,o.A)((0,t.A)({"data-testid":"package-book-now-button",className:"rounded-xl z-2 absolute","data-button-type":"book-now",color:"primary",size:"lg"},(0,G.yz)((0,o.A)((0,t.A)({},G.Yh.clickBookNowComboPackage),{"data-event-label":W}),y)),{onClick:function(e){e.stopPropagation(),e.preventDefault(),A({id:y,hospital_branch_lists:w,organization:i,slug:_,service_type:H.Hxq.VACCINE})},children:(0,s.Y)(M.T,{size:"p2",color:"gray100",fw:500,children:C({id:"homePage.bookNow",defaultMessage:"Book Now"})})})),Q]})]})})})},ie=function(e){var n=e.comboListing,i=e.upSellIntro,a=(0,S.d)().isMobile;return n&&0!==n.length?(0,s.FD)(F.DT,{children:[(0,s.FD)("div",{className:"px-4 pb-4 md:pb-6 md:px-6 -mt-1",children:[i&&(0,s.Y)(M.T,{size:a?"p3":"p2",fw:400,color:"gray700",className:"pb-4",children:i}),a?(0,s.Y)(N.a,{withControls:!1,withIndicators:!1,slideGap:8,slideSize:"auto",containScroll:"trimSnaps",dragFree:!0,sx:{"& .mantine-Carousel-viewport":{marginRight:"-16px",paddingRight:"16px"}},children:null===n||void 0===n?void 0:n.map((function(e){return(0,s.Y)(N.a.Slide,{children:(0,s.Y)(ne,(0,t.A)({},e))},null===e||void 0===e?void 0:e.listing_id)}))}):(0,s.Y)("div",{className:"flex flex-col gap-4",children:null===n||void 0===n?void 0:n.map((function(e){return Boolean(e)?(0,s.Y)(ne,(0,t.A)({},e),null===e||void 0===e?void 0:e.listing_id):null}))})]}),(0,s.Y)(D.A,{})]}):null},ae=i(45293),te=i(4736),oe=i(50568),re=i(76962),le=i(11736),ce=i(13729),se=i(81854),de=i(12034),ue=i(76223),pe=i(87365),ge=i(94858),he=i(57387),me=i(34555),fe=i(84091),ve=i(66388),be=i(28543),xe=i(20023),ye=function(e){var n=e.status,i=e.price,a=e.priceDiscount,t=e.perDosePos,o=void 0===t?"top":t,r=e.badgeDiscount,l=e.priceUnit,c=e.className,u=e.style,p=e.isPerDose,g=e.isBasicLayout,h=e.isShowTooltip,m=void 0===h||h,f=e.quantity,v=void 0===f?1:f,b=e.showQuantityMultiplierOnOriginalPrice,x=void 0!==b&&b,y=e.stickyBar,w=void 0!==y&&y,k=r||{},_=k.percent,A=k.variant,Y=void 0===A?"long":A,C=(0,L.$)().locale,M=(0,V.A)().formatMessage,N=(0,d.useState)(!1),D=N[0],F=N[1],S=(0,ve.C)({unitOriginalPrice:i,unitDiscountedPrice:null!==a&&void 0!==a?a:0,quantity:v}),E=S.price,I=S.priceDiscount,P=S.hasMonetaryDiscount,T=S.unitOriginalPrice,z=S.unitDiscountedPrice;if(!E)return null;var O=function(e){var n=(0,fe.$g)(e||0,C);return g&&"vi-VN"===C&&(n=(0,fe.xc)(e,M)),(0,fe.nd)(M,n,l)},H=function(e){var n=e===be.lL.PRICE&&P?z:T,i=(0,fe.$g)(n||0,C);return g&&"vi-VN"===C&&(i=(0,fe.xc)(n,M)),(0,fe.nd)(M,i,l)},R=P?I:E,G=w&&P&&v>1,U=w&&!P&&v>1,K=p&&"bottom"===o;return(0,s.FD)("div",{className:(0,ge.A)(c,"VaccinationPrice"),style:u,children:[(0,s.FD)("div",{className:"VaccinationPrice--price_top flex gap-2 items-center",children:[(0,s.Y)("span",{className:(0,ge.A)("VaccinationPrice--price_discount notranslate","text-xl font-semibold leading-7 tracking-[-0.4px] whitespace-nowrap",{"!text-gray300":n===be.zF.out_of_stock}),children:(0,s.Y)("span",{children:w?O(R):H(be.lL.PRICE)})}),p&&"top"===o&&!w&&(0,s.Y)("span",{className:"font-normal text-gray700 text-[13px] leading-5 whitespace-nowrap",children:M({id:"vaccination.detail.perDose",defaultMessage:"per dose"})}),P&&"number"===typeof _&&_>0&&Y&&(0,s.Y)(he.E,{py:2,px:4,fw:500,radius:4,bg:B.w.colors.green600,lh:"16px",children:"long"===Y?(0,s.Y)("span",{className:"text-white capitalize",children:M({id:"vaccination.discountPercent",defaultMessage:"Save {percent}%"},{percent:Math.round(_)})}):(0,s.FD)("span",{className:"text-white",children:["-",Math.round(_),"%"]})}),m&&(0,s.Y)(me.m,{label:M({id:"vaccination.referencePrice",defaultMessage:"Gi\xe1 tham kh\u1ea3o"}),withArrow:!0,opened:D,children:(0,s.Y)("div",{onMouseOver:function(){F(!0)},onMouseOut:function(){F(!1)},className:"flex",children:(0,s.Y)(xe.A,{onClick:function(e){e.stopPropagation(),e.preventDefault(),F(!0)},className:"text-primaryBase w-4 h-4"})})})]}),(0,s.FD)("div",{className:"flex flex-wrap items-center gap-1 empty:hidden",children:[w&&G&&(0,s.FD)("span",{className:"text-gray700 text-xs tracking-[-0.2px] whitespace-nowrap notranslate","data-section":"VaccinationPrice_discount_breakdown",children:[(0,s.Y)("span",{children:O(z)})," \xd7 ",v]}),w&&U&&(0,s.FD)("span",{className:"text-gray700 text-xs tracking-[-0.2px] whitespace-nowrap notranslate","data-section":"VaccinationPrice_no_discount_breakdown",children:[(0,s.Y)("span",{children:O(T)})," \xd7 ",v]}),!w&&P&&(0,s.FD)(s.FK,{children:[(0,s.Y)("del",{className:(0,ge.A)("VaccinationPrice--price notranslate","block text-gray400 text-xs tracking-[-0.2px]"),children:(0,s.Y)("span",{children:H(be.lL.DISCOUNT)})}),x&&v>1&&(0,s.FD)("span",{className:"text-gray400 text-xs tracking-[-0.2px] whitespace-nowrap",children:["x",v]})]}),w&&P&&1===v&&(0,s.Y)("span",{className:(0,ge.A)("VaccinationPrice--price notranslate","line-through block text-gray400 text-xs tracking-[-0.2px]"),children:O(T)}),K&&(0,s.FD)("span",{className:"text-gray400 text-xs tracking-[-0.2px] whitespace-nowrap",children:[" ",M({id:"vaccination.detail.perDose",defaultMessage:"per dose"})]})]})]})},we=i(39857),ke=i(42705),_e=i(99325);function Ae(){var e=(0,K.A)(["\n width: 20px;\n height: 20px;\n flex-shrink: 0;\n color: ",";\n"]);return Ae=function(){return e},e}function Ye(){var e=(0,K.A)(["\n ","\n"]);return Ye=function(){return e},e}function Ce(){var e=(0,K.A)(["\n ","\n"]);return Ce=function(){return e},e}function Me(){var e=(0,K.A)(["\n ","\n"]);return Me=function(){return e},e}function Ne(){var e=(0,K.A)(["\n ","\n"]);return Ne=function(){return e},e}function De(){var e=(0,K.A)(["\n display: flex;\n justify-content: center;\n position: fixed;\n z-index: ",";\n\n bottom: -100%;\n left: 0;\n right: 0;\n width: 100%;\n background-color: #fff;\n border-top: 0.5px solid\n ",";\n\n transition: bottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n\n &[data-visible] {\n bottom: 0;\n }\n\n "," {\n display: none !important;\n }\n"]);return De=function(){return e},e}function Fe(){var e=(0,K.A)(["\n &.hpv-mobile .hpv-screener-container {\n padding: 24px;\n gap: 1rem;\n\n & .hpv-screener-content {\n gap: 4px;\n }\n }\n"]);return Fe=function(){return e},e}function Se(){var e=(0,K.A)(["\n display: flex;\n align-items: center;\n gap: 4px;\n & .VaccinationPrice--price_discount {\n color: ",";\n }\n\n & .VaccinationPrice--price > span {\n font-size: 15px;\n line-height: 24px;\n font-weight: 500;\n }\n"]);return Se=function(){return e},e}function Ee(){var e=(0,K.A)(["\n &#"," .box-collapse {\n "," {\n padding: 20px 24px 16px;\n }\n\n & .title-collapse {\n "," {\n font-size: 20px;\n line-height: 28px;\n }\n }\n }\n"]);return Ee=function(){return e},e}function Ie(){var e=(0,K.A)(["\n &#insurance-info {\n & #insurance-container{\n "," {\n padding: 0 24px 24px;\n }\n }\n \n & .txt-body-2 {\n "," {\n font-size: 17px;\n color: ",";\n font-weight: 500;\n }\n }\n\n & .txt-body-1 {\n "," {\n font-size: 15px;\n line-height: 24px;\n }\n }\n }\n }\n\n &#insurance-info .insuranceItem {\n "," {\n width: ",";\n height: ",";\n }\n\n & .insuranceLogo {\n "," {\n width: 100%;\n height: 100%;\n }\n }\n }\n\n &#insurance-info #insurance-list {\n "," {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));\n gap: 8px;\n }\n }\n\n &#insurance-info {\n & #payment-container .payment-item {\n "," {\n width: ",";\n height: ",";\n }\n }\n }\n"]);return Ie=function(){return e},e}var Be=(0,W.AH)(Ae(),(function(e){return e.theme.colors.neutral800})),Pe=((0,W.Ay)(we.A).withConfig({componentId:"sc-41f0e4b3-0"})(Ye(),Be),(0,W.Ay)(xe.A).withConfig({componentId:"sc-41f0e4b3-1"})(Ce(),Be)),Te=((0,W.Ay)(ke.A).withConfig({componentId:"sc-41f0e4b3-2"})(Me(),Be),(0,W.Ay)(_e.A).withConfig({componentId:"sc-41f0e4b3-3"})(Ne(),Be)),ze=W.Ay.div.withConfig({componentId:"sc-41f0e4b3-4"})(De(),H.Mue.actionBottomGroup,(function(e){return e.theme.colors.neutral100}),Q.M.mbUp),Oe=(0,W.Ay)(p.H).withConfig({componentId:"sc-41f0e4b3-5"})(Fe()),Le=((0,W.Ay)(ye).withConfig({componentId:"sc-41f0e4b3-6"})(Se(),(function(e){return e.theme.colors.gray1000})),(0,W.Ay)(pe.C).withConfig({componentId:"sc-41f0e4b3-7"})(Ee(),(function(e){return e.id}),Q.M.mbUp,Q.M.mbUp)),He=W.Ay.div.withConfig({componentId:"sc-41f0e4b3-8"})(Ie(),Q.M.mbUp,Q.M.mbUp,B.w.colors.gray1000,Q.M.mbUp,Q.M.mbUp,(0,j.D)(170),(0,j.D)(96),Q.M.mbUp,Q.M.mbUp,Q.M.mbUp,(0,j.D)(170),(0,j.D)(80)),Ve=i(92047),Re=i(62694),Ge=i(4982),Ue=i(76308),Ke=i(65787),je=i(95204),We=i(22615),qe=i(81383),Je=function(e,n){var i={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(i[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var t=0;for(a=Object.getOwnPropertySymbols(e);t{var{size:n,color:i=qe.fT}=e,a=Je(e,["size","color"]);const t=(0,qe.D5)(n);return u().createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 24 24",fill:"none"},a),u().createElement("path",{fill:i,d:"m12 10.439-4.073 4.073a.72.72 0 0 1-.522.212.7.7 0 0 1-.532-.212.72.72 0 0 1-.217-.527q0-.31.217-.527l4.494-4.494A.83.83 0 0 1 12 8.708q.18 0 .336.058a.8.8 0 0 1 .297.198l4.494 4.494q.208.208.212.522a.7.7 0 0 1-.212.532.72.72 0 0 1-.527.217.72.72 0 0 1-.527-.217z"}))},$e=i(76020),Xe=i(36814),en="vacciationPackageItem",nn=(Ze={".mantine-Button-label":{fontSize:13,fontWeight:600,lineHeight:"20px",letterSpacing:"-0.3px",span:{fontSize:12,fontWeight:400,lineHeight:"16px",letterSpacing:"-0.2px"}},"&.btn-talk_to_us":{color:B.w.colors.primary600,backgroundColor:"#ffffff","&:hover":{color:B.w.colors.primary700}}},(0,E.A)(Ze,"".concat(Q.M.mbDown),{paddingInline:(0,j.D)(16),height:"".concat((0,j.D)(44)," !important")}),(0,E.A)(Ze,"".concat(Q.M.mbUp),{paddingInline:24,"&.btn-booking":{minWidth:"328px",maxWidth:"50%"}}),Ze),an=function(e){var n=e.vaccinePackage,i=e.onClickBooking,a=(0,L.$)().locale,r=(0,V.A)().formatMessage,l=(0,S.d)().isMobile,c=n||{},u=c.id,p=c.package_name,g=c.discount_amount,h=c.price_unit,m=g?(0,fe.nd)(r,(0,fe.$g)(g,a),h):"",f=(0,d.useCallback)((function(){u&&(null===i||void 0===i||i({pkgId:u,pkgName:p}))}),[i,u,p]),v=(0,d.useCallback)((function(){window.location.href="/http://m.me/hellobacsi"}),[]);return l?(0,s.Y)(ln,(0,o.A)((0,t.A)({},e),{priceOff:m,onClickBook:f,onClickTalkToUs:v})):(0,s.Y)(cn,(0,o.A)((0,t.A)({},e),{priceOff:m,onClickBook:f,onClickTalkToUs:v}))},tn=function(e){var n=e.priceOff,i=e.discountedPrice,a=e.originalPrice,t=e.currency,o=e.className,r=e.style,l=(0,V.A)().formatMessage,c=(0,L.$)().locale,u=(0,d.useMemo)((function(){return i?(0,fe.nd)(l,(0,fe.$g)(a||0,c),t):null}),[a,i,c]),p=(0,d.useMemo)((function(){return u?(0,fe.nd)(l,(0,fe.$g)(i||0,c),t):(0,fe.nd)(l,(0,fe.$g)(a||0,c),t)}),[u]);return(0,s.FD)("div",{className:(0,ge.A)(o,"".concat(en,"__price_box")),style:r,children:[(0,s.FD)("div",{className:"".concat(en,"__price_wrapper flex items-center justify-start gap-1"),children:[(0,s.Y)("bdi",{className:(0,ge.A)("text-dark font-semibold text-[17px] leading-7 tracking-[-0.4px]"),children:p}),!!u&&(0,s.Y)("del",{className:"text-gray400 text-[13px] leading-5 tracking-[-0.3px] md:font-medium",children:u})]}),!!n&&(0,s.Y)("p",{className:"text-gray700 text-[12px] leading-4 tracking-[-0.2px] [&>strong]:!text-green600 [&>strong]:font-semibold",dangerouslySetInnerHTML:{__html:l({id:"vaccination.detail.package.price_notice",defaultMessage:"Get {number} off for online booking"},{number:n},{ignoreTag:!0})}})]})},on=function(e){var n=e.content,i=e.className,a=e.style,t=(0,V.A)().formatMessage;if(!n)return null;var o=n.split("\n");return(0,s.FD)("div",{className:(0,ge.A)(i,"".concat(en,"__description_box")),style:a,children:[(0,s.Y)("p",{className:"mb-[6px] text-dark font-semibold md:font-medium text-[13px] md:text-[15px] leading-5 md:leading-6 tracking-[-0.3px]",children:t({id:"vaccination.detail.package.include_text",defaultMessage:"Package Includes"})}),(0,s.Y)("div",{className:"".concat(en,"__description text-gray700 text-[12px] md:text-[13px] leading-4 md:leading-5 tracking-[-0.2px] md:tracking-[-0.3px]"),children:(0,s.Y)("ol",{className:"[&>li+li]:mt-1",children:o.map((function(e,n){return(0,s.FD)("li",{className:"list-item",children:[(0,s.FD)("span",{className:"inline-block w-4",children:[n+1,"."]}),(0,s.Y)("span",{children:e})]},"".concat(n+1,"-").concat(e))}))})})]})},rn=function(e){var n=e.className,i=(0,V.A)().formatMessage;return(0,s.FD)("ul",{className:(0,ge.A)("[&>li+li]:mt-[6px] text-dark text-[13px] leading-5 tracking-[-0.3px]","[&>li]:flex [&>li>img]:w-4 [&>li>img]:h-4 [&>li>img]:mr-2 [&>li>img]:mt-[2px]","[&>li>span>strong]:text-red600 [&>li>span>strong]:font-semibold","[&>li>span>b]:font-semibold",n),children:[(0,s.FD)("li",{children:[(0,s.Y)("img",{src:"".concat(H.JpE,"/svg/payment_coint.svg"),alt:"hhg"}),(0,s.Y)("span",{dangerouslySetInnerHTML:{__html:i({id:"vaccination.detail.package.refund",defaultMessage:"Full Refund if cancelled within 10 days"})}})]}),(0,s.FD)("li",{children:[(0,s.Y)("img",{src:"".concat(H.JpE,"/svg/payment_check.svg"),alt:"hhg"}),(0,s.Y)("span",{dangerouslySetInnerHTML:{__html:i({id:"vaccination.detail.package.pay_only_10",defaultMessage:"Pay Only 10% to make a booking"})}})]}),(0,s.FD)("li",{children:[(0,s.Y)("img",{src:"".concat(H.JpE,"/svg/payment_check.svg"),alt:"hhg"}),(0,s.Y)("span",{dangerouslySetInnerHTML:{__html:i({id:"vaccination.detail.package.buy_now_or_later",defaultMessage:"OR Buy now\xa0pay later"})}})]})]})},ln=function(e){var n=e.loading,i=e.vaccinePackage,a=e.style,r=e.className,l=e.bookingButtonProps,c=e.messageButtonProps,d=e.priceOff,u=e.onClickBook,p=e.onClickTalkToUs,g=(0,V.A)().formatMessage,h=i||{},m=h.currency,v=h.package_name,b=h.package_description,x=h.original_price,y=h.discounted_price,w=h.stock;return n?(0,s.FD)(Xe.a,{className:(0,ge.A)(en,"w-full h-full flex flex-col gap-6 px-4 py-6","border border-solid border-[rgba(0,0,0,0.1)] rounded-xl min-w-[327px]",r),style:(0,t.A)({background:"radial-gradient(ellipse at bottom, #D1E6FF 10%, white 70%)",backgroundColor:"white"},a),children:[(0,s.FD)("div",{className:"".concat(en,"__body flex flex-col gap-y-5 flex-1 min-h-0 w-full"),children:[(0,s.Y)(f.E,{width:"100%",height:24}),(0,s.FD)("div",{children:[(0,s.Y)(f.E,{width:"40%",height:20}),(0,s.Y)(f.E,{width:"100%",height:12,mt:4}),(0,s.Y)(f.E,{width:"100%",height:12,mt:4}),(0,s.Y)(f.E,{width:"100%",height:12,mt:4})]}),(0,s.FD)("div",{children:[(0,s.Y)(f.E,{width:"50%",height:24}),(0,s.Y)(f.E,{width:"100%",height:16,mt:4})]}),(0,s.FD)("div",{children:[(0,s.Y)(f.E,{width:"100%",height:20}),(0,s.Y)(f.E,{width:"100%",height:20,mt:4}),(0,s.Y)(f.E,{width:"100%",height:20,mt:4})]})]}),(0,s.FD)("div",{className:"".concat(en,"__footer flex gap-3"),children:[(0,s.Y)(f.E,{width:"40%",height:44,className:"flex-1 min-w-0"}),(0,s.Y)(f.E,{width:"40%",height:44})]})]}):(0,s.FD)(Xe.a,{className:(0,ge.A)(en,"w-full h-full flex flex-col gap-6 px-4 py-6","border border-solid border-[rgba(0,0,0,0.1)] rounded-xl",r),style:(0,t.A)({background:"radial-gradient(ellipse at bottom, #D1E6FF 10%, white 70%)",backgroundColor:"white"},a),children:[(0,s.FD)("div",{className:"".concat(en,"__body flex flex-col gap-y-5 flex-1 min-h-0"),children:[(0,s.Y)("p",{className:"".concat(en,"__title m-0 text-dark font-semibold text-[15px] leading-6 tracking-[-0.3px]"),children:v}),(0,s.Y)(on,{content:b}),(0,s.Y)(tn,{originalPrice:x,discountedPrice:y,currency:m,priceOff:d}),(0,s.Y)(rn,{})]}),(0,s.FD)("div",{className:"".concat(en,"__footer flex gap-3"),children:[(0,s.FD)(P.B,(0,o.A)((0,t.A)({size:"lg",onClick:u},l),{className:"btn-booking",sx:nn,children:[(0,s.Y)("strong",{className:"flex-1 min-w-0 line-clamp-1 overflow-ellipsis",children:g({id:"vaccination.detail.package.button.book",defaultMessage:"Book Now"})}),"\xa0",!!w&&(0,s.Y)("span",{children:"(".concat(g({id:"vaccination.detail.package.button.book_left",defaultMessage:"{number} Left"},{number:w}),")")})]})),(0,s.FD)(P.B,(0,o.A)((0,t.A)({size:"lg",onClick:p},c),{className:"btn-talk_to_us",sx:nn,children:[(0,s.Y)("img",{src:"".concat(H.JpE,"/svg/messenger_primary.svg"),alt:"hhg",className:"w-5 h-5 mr-2"}),g({id:"vaccination.detail.package.button.talk_to_us",defaultMessage:"Talk to Us"})]}))]})]})},cn=function(e){var n=e.loading,i=e.vaccinePackage,a=e.style,r=e.className,l=e.bookingButtonProps,c=e.messageButtonProps,d=e.priceOff,u=e.onClickBook,p=e.onClickTalkToUs,g=i||{},h=g.currency,m=g.package_name,v=g.package_description,b=g.original_price,x=g.discounted_price,y=g.stock,w=(0,V.A)().formatMessage;return n?(0,s.FD)(Xe.a,{className:(0,ge.A)(en,"w-full h-full py-6 px-4","border-[0.7px] border-solid border-[rgba(0,0,0,0.1)] rounded-xl",r),style:(0,t.A)({background:"radial-gradient(138.53% 100% at 52.88% 100%, #D1E6FF 0%, white 60%)",backgroundColor:"white"},a),children:[(0,s.Y)(f.E,{width:"100%",height:24,mb:24}),(0,s.FD)("div",{className:"".concat(en,"_body-top mb-5 flex gap-4 [&>*]:flex-1 [&>*]:min-w-1/2"),children:[(0,s.FD)("div",{children:[(0,s.Y)(f.E,{width:"40%",height:24,mb:6}),(0,s.Y)(f.E,{width:"100%",height:20,mt:4}),(0,s.Y)(f.E,{width:"100%",height:20,mt:4}),(0,s.Y)(f.E,{width:"100%",height:20,mt:4})]}),(0,s.FD)("div",{className:"mt-[30px]",children:[(0,s.Y)(f.E,{width:"100%",height:20}),(0,s.Y)(f.E,{width:"100%",height:20,mt:4}),(0,s.Y)(f.E,{width:"100%",height:20,mt:4})]})]}),(0,s.FD)("div",{className:"".concat(en,"_body-bottom mb-6 flex gap-4"),children:[(0,s.Y)(f.E,{width:"20%",height:28}),(0,s.Y)(f.E,{width:"20%",height:20,mt:2})]}),(0,s.FD)("div",{className:"".concat(en,"__footer flex gap-3"),children:[(0,s.Y)(f.E,{width:"50%",height:48}),(0,s.Y)(f.E,{width:"20%",height:48})]})]}):(0,s.FD)(Xe.a,{className:(0,ge.A)(en,"w-full h-full py-6 px-4","border-[0.7px] border-solid border-[rgba(0,0,0,0.1)] rounded-xl",r),style:(0,t.A)({background:"radial-gradient(138.53% 100% at 52.88% 100%, #D1E6FF 0%, white 60%)",backgroundColor:"white"},a),children:[(0,s.Y)("p",{className:"".concat(en,"__title mb-5 text-dark font-semibold text-[15px] leading-6 tracking-[-0.3px]"),children:m}),(0,s.FD)("div",{className:"".concat(en,"_body-top mb-5 flex gap-4 [&>*]:flex-1 [&>*]:min-w-1/2"),children:[(0,s.Y)(on,{content:v}),(0,s.Y)(rn,{className:"mt-[30px]"})]}),(0,s.Y)("div",{className:"".concat(en,"_body-bottom mb-6 flex gap-4"),children:(0,s.Y)(tn,{originalPrice:b,discountedPrice:x,currency:h,priceOff:d})}),(0,s.FD)("div",{className:"".concat(en,"__footer flex gap-4"),children:[(0,s.FD)(P.B,(0,o.A)((0,t.A)({size:"lg",onClick:u},l),{className:"btn-booking",sx:nn,children:[(0,s.Y)("strong",{className:"flex-1 min-w-0 line-clamp-1 overflow-ellipsis",children:w({id:"vaccination.detail.package.button.book",defaultMessage:"Book Now"})}),"\xa0",!!y&&(0,s.Y)("span",{children:"(".concat(w({id:"vaccination.detail.package.button.book_left",defaultMessage:"{number} Left"},{number:y}),")")})]})),(0,s.FD)(P.B,(0,o.A)((0,t.A)({size:"lg",onClick:p},c),{className:"btn-talk_to_us",sx:nn,children:[(0,s.Y)("img",{src:"".concat(H.JpE,"/svg/messenger_primary.svg"),alt:"hhg",className:"w-5 h-5 mr-2"}),w({id:"vaccination.detail.package.button.talk_to_us",defaultMessage:"Talk to Us"})]}))]})]})},sn="vaccinationPackageSection",dn=function(e){var n=e.vaccinationDetail,i=e.loading,a=e.vaccinationPackages,l=(0,r.A)(e,["vaccinationDetail","loading","vaccinationPackages"]),c=(0,L.$)(),u=c.push,p=c.asPath,g=(0,S.d)().isMobile,h=(0,F.J3)().bookingQuantity,m=(0,Ve.IL)({vaccinationDetail:n,vaccinationPackages:a}),f=m.loading,v=m.vaccinationPackages,b=i||f,x=(0,d.useCallback)((function(e){var i=e.pkgId,a=e.pkgName,t="?pkg_name=".concat(encodeURIComponent(String(null!==a&&void 0!==a?a:"")),"&pkg_id=").concat(i);u("".concat(window.location.origin).concat(H.JpE).concat((0,je.OP)(n.slug,n.id,p),"payment").concat((0,Ke.h)(t,h)))}),[n.slug,n.id,p,u,h]);return g?(0,s.Y)(un,(0,o.A)((0,t.A)({},l),{loading:b,vaccinationPackages:v,onClickBooking:x})):(0,s.Y)(pn,(0,o.A)((0,t.A)({},l),{loading:b,vaccinationPackages:v,onClickBooking:x}))},un=function(e){var n=e.loading,i=e.price_unit,a=e.vaccinationPackages,r=e.onClickBooking,l=e.className,c=e.style,d=(0,V.A)().formatMessage;return n?(0,s.FD)(Xe.a,{className:(0,ge.A)("pb-5 bg-white",sn,l),style:c,children:[(0,s.Y)("div",{className:"".concat(sn,"__title_box p-4 pt-6"),children:(0,s.Y)(f.E,{width:"40%",height:24})}),(0,s.Y)("div",{className:"".concat(sn,"__body"),children:(0,s.Y)($e.F,{containScroll:"trimSnaps",dragFree:!0,slideGap:8,slideSize:"auto",withControls:!1,styles:{viewport:{paddingInline:(0,j.D)(16)}},children:Array(4).fill(0).map((function(e,i){return(0,s.Y)($e.F.Slide,{className:"max-w-[340px]",children:(0,s.Y)(an,{loading:n})},"".concat(i))}))})})]}):(null===a||void 0===a?void 0:a.length)?(0,s.FD)(Xe.a,{className:(0,ge.A)("pb-5 bg-white",sn,l),style:c,children:[(0,s.Y)("div",{className:"".concat(sn,"__title_box p-4 pt-6"),children:(0,s.Y)("h4",{className:"".concat(sn,"__title m-0 font-semibold text-[17px] leading-6 tracking-[-0.4px] text-dark"),children:d({id:"vaccination.detail.package.section_title",defaultMessage:"Available Packages"})})}),(0,s.Y)("div",{className:"".concat(sn,"__body"),children:(0,s.Y)($e.F,{containScroll:"trimSnaps",dragFree:!0,slideGap:8,slideSize:"auto",withControls:!1,styles:{viewport:{paddingInline:(0,j.D)(16)}},children:a.map((function(e){return(0,s.Y)($e.F.Slide,{className:"max-w-[340px]",children:(0,s.Y)(an,{loading:n,vaccinePackage:(0,o.A)((0,t.A)({},e),{price_unit:i}),onClickBooking:r})},"".concat(e.id))}))})})]}):null},pn=function(e){var n=e.loading,i=e.price_unit,a=e.vaccinationPackages,r=e.onClickBooking,l=e.className,c=e.style,u=e.isShowCollapsed,p=void 0===u||u,g=(0,V.A)().formatMessage,h=(0,d.useState)(!0),m=h[0],v=h[1],b=(0,d.useMemo)((function(){var e=a||[];return p?e.slice(0,m?3:void 0):e}),[a,m,p]);return n?(0,s.FD)(Xe.a,{className:(0,ge.A)("bg-white rounded-xl",sn,l),style:c,children:[(0,s.Y)("div",{className:"".concat(sn,"__title_box p-6 pb-4"),children:(0,s.Y)(f.E,{width:"40%",height:28})}),(0,s.Y)("div",{className:"".concat(sn,"__body p-6 pt-0"),children:Array(3).fill(0).map((function(e,i){return(0,s.Y)(an,{loading:n},"".concat(i))}))})]}):(null===a||void 0===a?void 0:a.length)?(0,s.FD)(Xe.a,{className:(0,ge.A)("bg-white rounded-xl",sn,l),style:c,children:[(0,s.Y)("div",{className:"".concat(sn,"__title_box p-6 pb-4"),children:(0,s.Y)("h4",{className:"".concat(sn,"__title m-0 font-semibold text-[20px] leading-7 tracking-[-0.4px] text-dark"),children:g({id:"vaccination.detail.package.section_title",defaultMessage:"Available Packages"})})}),(0,s.Y)("div",{className:"".concat(sn,"__body p-6 pt-0"),children:(0,s.FD)("div",{className:"".concat(sn,"--wrapper flex flex-col gap-4"),children:[null===b||void 0===b?void 0:b.map((function(e){return(0,s.Y)(an,{loading:n,vaccinePackage:(0,o.A)((0,t.A)({},e),{price_unit:i}),onClickBooking:r},"".concat(e.id))})),p&&(null===a||void 0===a?void 0:a.length)>3&&(0,s.Y)("div",{className:"".concat(sn,"--footer pt-5 pb-4 border-solid border-t border-t-neutral100"),children:(0,s.FD)(P.B,{variant:"ghost",onClick:function(){return v(!m)},sx:{padding:0,height:"auto","&:hover":{backgroundColor:"transparent"},".mantine-Button-label":{fontSize:15,fontWeight:400,lineHeight:"24px",letterSpacing:"-0.3px",display:"flex",alignItems:"center",gap:4}},children:[m&&(0,s.FD)(s.FK,{children:[g({id:"vaccination.detail.package.show_more",defaultMessage:"View all packages"}),(0,s.Y)(We.A,{size:16,color:B.w.colors.primary500})]}),!m&&(0,s.FD)(s.FK,{children:[g({id:"vaccination.detail.package.show_less",defaultMessage:"Collapse"}),(0,s.Y)(Qe,{size:16,color:B.w.colors.primary500})]})]})})]})})]}):null};function gn(){var e=(0,K.A)(["\n .mantine-Modal-content {\n flex-basis: 736px;\n max-height: 600px;\n position: relative;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n .mantine-Modal-header {\n position: absolute;\n top: 16px;\n right: 16px;\n width: 20px;\n height: 20px;\n padding: 0;\n border: none;\n > button {\n width: 100%;\n height: 100%;\n svg {\n width: 100% !important;\n height: 100% !important;\n }\n }\n }\n .mantine-Modal-body {\n padding: 0;\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n\n .vaccinationPackageSection {\n height: 100%;\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n\n .vaccinationPackageSection__title_box {\n padding-inline: 16px;\n .vaccinationPackageSection__title {\n font-size: 17px;\n line-height: 24px;\n }\n }\n\n .vaccinationPackageSection__body {\n flex: 1;\n min-height: 0;\n overflow: auto;\n padding-inline: 16px;\n &::-webkit-scrollbar {\n width: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.4);\n border-radius: 6px;\n }\n }\n }\n }\n }\n"]);return gn=function(){return e},e}var hn={root:{width:"100%",paddingBlock:(0,j.D)(12),height:(0,j.D)(52)},label:{fontWeight:600}},mn=function(e){var n=(0,V.A)().formatMessage,i=(0,L.$)(),a=i.push,l=i.asPath,c=e.vaccinationDetail,u=e.vaccinationPackages,p=e.enableBooking,g=e.onBooking,h=e.dataTracking,m=void 0===h?{}:h,f=(0,r.A)(e,["vaccinationDetail","vaccinationPackages","enableBooking","onBooking","dataTracking"]),v=(0,d.useState)(!1),b=v[0],x=v[1],y=(0,S.d)().isMobile,w=(0,F.J3)().bookingQuantity,k=(0,s.Y)(M.T,{size:"p1",weight:"semiBold",color:"white",children:n({id:"homePage.bookNow",defaultMessage:"Book Now"})}),_=(0,d.useMemo)((function(){return"".concat(window.location.origin).concat(H.JpE).concat((0,je.OP)(c.slug,c.id,l),"payment")}),[c.slug,c.id,l]),A=function(){x(!1)},Y=(0,d.useCallback)((function(){if(u&&1==(null===u||void 0===u?void 0:u.length)){var e=u[0],n=e.id,i=e.package_name,t="?pkg_name=".concat(encodeURIComponent(String(null!==i&&void 0!==i?i:"")),"&pkg_id=").concat(n),o="".concat(_).concat((0,Ke.h)(t,w));a(o)}else x(!0)}),[u,_,a,w]);return p?(0,s.Y)(Ue.B8,(0,o.A)((0,t.A)({size:"lg",styles:hn,onClick:g},m),{"data-testid":"book-now-button",id:"book-now-button-combo-package",className:"book-now-button ".concat(f.className),children:k})):(0,s.FD)(s.FK,{children:[(0,s.Y)(P.B,(0,o.A)((0,t.A)({size:"lg",onClick:Y,styles:hn},m),{"data-testid":"book-now-button",children:k})),y&&(0,s.Y)(fn,(0,o.A)((0,t.A)({},f),{vaccinationDetail:c,vaccinationPackages:u,open:b,onClose:A})),!y&&(0,s.Y)(bn,(0,o.A)((0,t.A)({},f),{vaccinationDetail:c,vaccinationPackages:u,open:b,onClose:A}))]})},fn=function(e){var n=e.open,i=e.onClose,a=(0,r.A)(e,["open","onClose"]);return(0,s.Y)(Re.D,{open:n,onClose:i,className:(0,ge.A)("!inset-x-0 !top-[unset] !bottom-0 !rounded-t-xl !z-[1000]","[&>[data-vaul-handle]]:my-4 [&>[data-vaul-handle]]:w-[44px] [&>[data-vaul-handle]]:h-[3px]"),overlayClassName:"!bg-[rgba(0,0,0,0.3)] !z-[999]",children:(0,s.Y)(dn,(0,t.A)({},a))})},vn=(0,W.Ay)(Ge.M).withConfig({componentId:"sc-4e104f78-0"})(gn()),bn=function(e){var n=e.open,i=e.onClose,a=(0,r.A)(e,["open","onClose"]);return(0,s.Y)(vn,{opened:n,onClose:i,title:null,children:(0,s.Y)(dn,(0,o.A)((0,t.A)({},a),{isShowCollapsed:!1}))})},xn=i(12914),yn=i(95780);function wn(){var e=(0,K.A)(["\n background-color: ","!important;\n border-color: ","!important;\n &.mantine-Button-root {\n border-radius: 12px;\n }\n"]);return wn=function(){return e},e}var kn,_n,An,Yn,Cn=(0,W.Ay)(yn.B).withConfig({componentId:"sc-126661fb-0"})(wn(),(function(e){return e.theme.colors.blue50}),(function(e){return e.theme.colors.blue100})),Mn=i(95456);function Nn(){return Nn=Object.assign?Object.assign.bind():function(e){for(var n=1;nGet tips on how to keep yourself safe from {name} delivered directly to your ".concat(a)},{name:i,app:a,b:function(e){return(0,s.Y)("span",{className:"text-dark font-semibold leading-6",children:e})}})}),(0,s.Y)("div",{className:"relative w-[52px] h-[52px] flex-shrink-0",children:(0,s.Y)(Mn.Y,{layout:"fill",src:"".concat(H.JpE,"/images/subscribeZalo.png"),quality:100,objectFit:"contain",alt:"Nh\u1eadn c\xe1c b\xed quy\u1ebft \u0111\u1ec3 b\u1ea3o v\u1ec7 b\u1ea3n th\xe2n v\u1edbi ".concat(i," qua ").concat(a," ngay!")})})]}),(0,s.Y)(Cn,(0,o.A)((0,t.A)({color:"secondary",size:"lg",onClick:g,isBlock:!0},c),{"data-event-label":n,children:(0,s.FD)("div",{className:"inline-flex gap-3 items-center text-[15px] leading-6 font-semibold",children:[p,u({id:"common.subscribeNow",defaultMessage:"Subscribe Now"})]})}))]})}var En,In,Bn=i(6559),Pn=i(55544),Tn=i(77470),zn=i(60140),On=i(77639),Ln=i(89252),Hn=i(26754),Vn=i(86786),Rn=i(37927),Gn=i(5792),Un=i(98554);function Kn(){return Kn=Object.assign?Object.assign.bind():function(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:"en";try{var i=new Intl.DisplayNames([n],{type:"region"}),a=i.of(e);if(a&&a!==e)return a}catch(t){console.log("\ud83d\ude80 ~ getCountryName ~ error:",t)}return ni.F[e]||e},gi=i(61367),hi=i(77557),mi=i(92230);function fi(e){return e.years?"years":e.weeks&&e.weeks<12?"weeks":e.months?"months":""}function vi(e,n,i,a){if(null===n&&null===i)return[e({id:"vaccination.search.allAge",defaultMessage:"All ages"})];var t=(0,R.AQ)(n||0),o=fi(t),r=(0,R.AQ)(i||0),l=fi(r);if(o&&l){var c={min:e({id:"common.age.".concat(o)},{number:t[o]}),max:e({id:"common.age.".concat(l)},{number:r[l]})};return a?[e({id:"vaccination.detail.ageGroup",defaultMessage:"Ages {min} through {max} years"},c)]:[e({id:"vaccination.search.ageGroup",defaultMessage:"Ages {min} through {max} years"},c)]}var s=a?"vaccination.detail":"vaccination.search";if(o){var d=e({id:"common.age.".concat(o)},{number:t[o]});return"years"!==o&&(d+=" ".concat(e({id:"common.age",defaultMessage:""}))),[e({id:"".concat(s,".minAndOlder"),defaultMessage:"{age} and older"},{age:d})]}if(l){var u=e({id:"common.age.".concat(l)},{number:r[l]});return"years"!==l&&(u+=" ".concat(e({id:"common.age",defaultMessage:""}))),[e({id:"".concat(s,".underAge"),defaultMessage:"Under {age}"},{age:u})]}return[e({id:"vaccination.search.allAge",defaultMessage:"All ages"})]}var bi=i(19546);var xi=function(e){var n,i,a=e.vaccinationDetail,r=e.buttonUi,l=e.buttonUiScrollRef,u=e.isCarouselParallax,g=void 0!==u&&u,b=e.showPaymentHighlight,x=void 0!==b&&b,y=e.showO2OQuantityStepper,w=void 0!==y&&y,_=(0,F.J3)(),Y=_.bookingQuantity,C=_.setBookingQuantity,N=a.id,D=a.description,E=a.inject_schedule,I=a.banner,P=a.logo,T=a.price,z=a.price_unit,O=a.age_group_labels,K=a.age_group_short_labels,j=a.doses_labels,W=a.review,q=a.price_discount,J=a.percent_discount,Z=a.display_name,Q=a.package,$=a.country_code,X=a.vaccine_type,ee=a.image_carousel,ne=void 0===ee?[]:ee,ie=a.organization,ae=(0,V.A)().formatMessage,oe=(0,L.$)(),re=oe.locale,le=oe.asPath,ce=H.Ttg.includes(re),se=(0,S.d)().isMobile,de=Q===H._Be.COMBO,ue=(0,te.useAppContext)().state.featureFlags.enableChatWithDoctor,pe=P||(null===ie||void 0===ie?void 0:ie.logo)||"",ge=P?(null===ie||void 0===ie?void 0:ie.logo)||"":void 0,he=(0,d.useMemo)((function(){var e=P;return se&&I&&(e=I),[e].concat((0,c.A)(ne||[]))}),[se,ne]),me=(0,ci.p)({isEnable:he.length>1}),fe=me.isOpen,ve=me.initialSlide,be=me.closeModal,xe=me.openModalWithSlide,ye=me.handleOpenChange,we=null===X||void 0===X?void 0:X.includes("hpv"),ke=W||{},_e=ke.avg_rating,Ae=ke.rating_count,Ye=(0,si.p)({offeringId:a.offering_id,hospital:a.organization,price:a.price,type:a.service_type,hospitalBranchIds:null===(n=a.hospital_branch_lists)||void 0===n?void 0:n.map((function(e){return e.id}))}),Ce=Ye.handleCopyVoucher,Me=Ye.allVouchers,Ne=Ye.loading,De=Ye.referralTitle,Fe=!(null===O||void 0===O?void 0:O.length),Se=(0,U.Kb)(le),Ee=(0,d.useMemo)((function(){return(0,s.Y)(s.FK,{children:_e&&Ae&&(0,s.FD)(hi.kD,{children:[_e.toFixed(1)," ",(0,s.Y)(p.v,{value:_e,readOnly:!0})]})})}),[_e,Ae]),Ie=(0,d.useMemo)((function(){var e,n,i=[];return i.push({id:"age-group",title:Fe?ae({id:"vaccination.detail.allAge",defaultMessage:"All ages"}):(null===K||void 0===K?void 0:K[0])||vi(ae,null===a||void 0===a||null===(e=a.age_badges)||void 0===e?void 0:e.min_age,null===a||void 0===a||null===(n=a.age_badges)||void 0===n?void 0:n.max_age,!1),description:ae({id:"vaccination.detail.text.ageGroup",defaultMessage:"Age group"})}),_e&&Ae&&i.push({id:"rating",title:se?(0,s.FD)("div",{className:"flex items-center gap-1",children:[(0,s.Y)(bi.A,{}),(0,s.Y)("span",{children:_e})]}):(0,s.Y)("div",{className:"flex items-center gap-1",children:Ee}),description:(0,s.FD)(M.T,{as:"a",href:"#top5-reviews",color:B.w.colors.gray700,underline:se,fz:"unset",lh:"unset",children:[Ae," ",ae({id:"booking.search.tab.review",defaultMessage:"Reviews"})]})}),j&&i.push({id:"doses",title:(0,s.Y)("div",{children:j}),description:ae({id:"vaccination.detail.text.doses",defaultMessage:"Doses"})}),i}),[_e,Ae,se]),Be=(0,d.useMemo)((function(){return 2===Ie.length&&se?{layout:"two-item-horizontal",align:"center"}:!se&&Ie.length<=3?{layout:"horizontal",align:"start"}:{layout:"vertical",align:"start"}}),[Ie,se]),Pe={id:N,description:D,inject_schedule:E,banner:se?ce?v.__:I:void 0,logo:ce?v.__:P,altText:"".concat(Z||""," - ").concat(H.ElQ[re].SITE_NAME_FORMATTED)},Te=(0,s.Y)(M.T,{size:"h3",fw:600,color:"gray1000",as:"h1",children:Z}),ze=se&&we&&re===m.L.Malaysia&&ue,Oe=se?61.73:64,Le=Boolean(a.quantity_supported),He=a.max_product_quantity||100,Ve=Le?Math.min(Math.max(Y||1,1),He):1;return(0,s.FD)(p.G,{isMobile:se,isCarouselParallax:g,generalInfo:(0,o.A)((0,t.A)({},Pe),{name:(0,s.FD)(s.FK,{children:[se&&(0,s.Y)(s.FK,{children:(0,s.Y)(ui(),{href:"".concat((0,U.WZ)(H.Hxq.VACCINE,re,"")),children:(0,s.Y)(M.T,{size:"c1",color:"gray700",fw:600,display:"none",children:ae({id:"detailPage.breadcrumbs.vaccinations",defaultMessage:"Vaccination"})})})}),$?(0,s.FD)("div",{className:"flex justify-between relative items-start gap-4",children:[Te,re!==m.L.Malaysia&&(0,s.Y)(ti,{image:ii.C.getAssetPath((0,ni.v)($)),country:pi($,re),className:k()(se?"absolute right-0 top-[-54px] bg-white size-fit px-1 rounded z-10":"mr-[3.75px]")})]}):Te]})}),backupSrc:v.__,contentClassName:"space-y-4 md:space-y-4",bannerProps:{className:"md:!object-contain",unoptimized:ce,width:se?void 0:336},imagesSelect:he.length>0?void 0:(0,s.Y)(hi.C9,{backgroundImage:pe,logoImage:ge,alt:"".concat(Z||""," - ").concat(H.ElQ[re].SITE_NAME_FORMATTED)}),imageCarousel:he,onCarouselImageClick:xe,children:[(0,s.Y)(hi.u3,{layout:Be.layout,align:Be.align,infoItems:Ie}),Ne?(0,s.Y)(mi.S,{withControls:!se,height:Oe,children:Array.from({length:3}).map((function(e,n){return(0,s.Y)(f.E,{w:308,h:Oe,radius:8,bg:B.w.colors.neutral100},"skeleton-voucher-".concat(n))}))}):Me.length>0&&(0,s.Y)(mi.S,{withControls:!se,height:Oe,"data-section":"Styled_DragFreeCarousel",style:{"--vouchersCarouselHeight":"".concat(Oe,"px")},children:Me.map((function(e){var n=e.id,i=e.logo,r=e.name,l=e.voucherCode,c=e.type,d=e.brand,u=e.description,p=c===je.O7.VOUCHER?"".concat(r," - ").concat(u):De(e),g=c===je.O7.REFERRAL,h=g?(0,G.yz)((0,o.A)((0,t.A)({},G.Yh.selectReferralVoucherDetail),{"data-event-label":Se}),a.id):(0,o.A)((0,t.A)({},G.Yh.selectVoucher),{"data-event-label":r||n});return(0,s.Y)(li.s,{image:je.uY[d]||i||v.__,title:p,onClick:function(){return l&&Ce(l)},dataTracking:h,className:k()("max-w-[248px] h-[--vouchersCarouselHeight]",{"!cursor-default":g})},n)}))}),w&&Le&&(0,s.Y)(ri.Q2,{value:Ve,max:He,onChange:C,footer:ae({id:"vaccination.detail.quantityMaxDoses",defaultMessage:"Max {max} doses"},{max:He})}),(0,s.FD)("div",{className:"flex flex-col gap-4",children:[(0,s.Y)(gi.n,{price:T||0,priceDiscount:q||0,percentDiscount:J,priceUnit:z,quantity:Ve,textUnit:de||1!==Ve?void 0:ae({id:"vaccination.detail.perDose",defaultMessage:"per dose"}),showFrom:!1}),(0,s.Y)("div",{className:"flex flex-col gap-6","data-section":"HospitalBranchInfoCard",children:(0,s.Y)(oi.A,{totalBranches:(null===(i=a.hospital_branch_lists)||void 0===i?void 0:i.length)||0,organization:a.organization})}),(0,s.Y)("div",{ref:l,"data-section":"ButtonUiMd",children:r})]}),x&&(0,s.FD)(s.FK,{children:[(0,s.Y)(ai.c,{color:B.w.colors.neutral100}),(0,s.Y)(A.A,{})]}),ze&&(0,s.Y)(h.I,(0,t.A)({src:"".concat(H.JpE,"/images/my_detail_hpv_doctor.png"),alt:"Worried about HPV?",width:767,height:144,onClick:function(){return(0,R.HB)(U._s)},"data-testid":"mobile-hpv-banner-my"},G.Yh.messageBannerHPVDetail)),(0,s.Y)(p.M,{generalInfo:(0,o.A)((0,t.A)({},Pe),{name:Z}),isMobile:se,isOpen:fe,backupSrc:v.__,onClose:be,onOpenChange:ye,initialSlide:ve,imageCarousel:he,title:ae({id:"detailPage.title.productGallery",defaultMessage:"Product Gallery"})})]})};function yi(){var e=(0,K.A)(["\n color: #111111;\n .txt-body-1 {\n font-size: 0.8125rem;\n line-height: 1.25rem;\n }\n .txt-body-2 {\n font-size: 0.9375rem;\n line-height: 1.5rem;\n }\n"]);return yi=function(){return e},e}W.Ay.div.withConfig({componentId:"sc-ff98185d-0"})(yi());var wi,ki,_i,Ai=i(10699);function Yi(){return Yi=Object.assign?Object.assign.bind():function(e){for(var n=1;n img {\n height: auto;\n aspect-ratio: 109/64;\n }\n }\n"]);return Ei=function(){return e},e}W.Ay.div.withConfig({componentId:"sc-1edf7c51-0"})(Si(),(function(e){return e.theme.colors.gray700}),(function(e){return e.theme.colors.gray800}),(function(e){return e.theme.colors.gray800})),(0,W.Ay)(Fi.X).withConfig({componentId:"sc-1edf7c51-1"})(Ei(),(function(e){return e.theme.colors.neutral100}));var Ii=i(28414);function Bi(){var e=(0,K.A)(["\n font-size: 0.8125rem;\n line-height: 1.25rem;\n color: ",";\n\n ul {\n padding-left: 12px;\n &:not(:last-child) {\n margin-bottom: 10px;\n }\n }\n\n li:not(:has(ul)) {\n list-style-position: outside;\n list-style-type: disc;\n &:not(:last-child) {\n margin-bottom: 10px;\n }\n }\n\n li > ul {\n padding-left: 20px;\n }\n\n p:not(:last-child) {\n margin-bottom: 15px;\n }\n"]);return Bi=function(){return e},e}function Pi(){var e=(0,K.A)(["\n ","\n"]);return Pi=function(){return e},e}function Ti(){var e=(0,K.A)(["\n ","\n"]);return Ti=function(){return e},e}function zi(){var e=(0,K.A)(["\n .title {\n font-size: 0.9375rem;\n line-height: 1.25rem;\n font-weight: 500;\n }\n"]);return zi=function(){return e},e}var Oi=(0,W.AH)(Bi(),(function(e){return e.theme.colors.gray700})),Li=((0,W.Ay)(Ii.A).withConfig({componentId:"sc-e5b041f5-0"})(Pi(),Oi),W.Ay.div.withConfig({componentId:"sc-e5b041f5-1"})(Ti(),Oi)),Hi=W.Ay.div.withConfig({componentId:"sc-e5b041f5-2"})(zi());function Vi(e){var n,i,a=e.vaccinationDetail,t=(0,V.A)().formatMessage,o=(0,S.d)().isMobile,r=(0,L.$)().locale,c=a.combo_listing,u=a.items_included,p=!!(null===c||void 0===c?void 0:c.length)&&r===m.L.Vietnam,g=(0,d.useMemo)((function(){return(0,R.t2)(c||[])}),[c]),h=g.resultData,f=void 0===h?{}:h,v=g.sortedList,b=void 0===v?[]:v,x=[{id:"vaccination.detail.about",defaultMessage:"About the Vaccine",htmlContent:a.about},{id:"vaccination.detail.preparation",defaultMessage:"Preparation",htmlContent:a.preparation},{id:"detailPage.vaccinationInfo.injectSchedule",defaultMessage:"Inject Schedule",htmlContent:a.inject_schedule,isHidden:r!==m.L.Vietnam},{id:"vaccination.detail.otherDetails",defaultMessage:"Other details",htmlContent:a.detail,isHidden:r===m.L.Vietnam},{id:"vaccination.detail.comboNote",defaultMessage:"Combo Note",htmlContent:a.product_note}],y=(0,d.useCallback)((function(){return b.map((function(e){var n=(0,R.$p)(e),i=f[e],a=Object.entries(i),r=Object.values(i||{}).some((function(e){return e.length>1}));return(0,s.FD)(M.T,{as:"div",size:o?"p3":"p2",className:"mb-2.5 last:mb-0",children:[!!n&&(0,s.FD)("div",{className:"mb-2.5",children:[t({id:"vaccination.detail.ageMonth",defaultMessage:"Vaccines for {age}-month-olds"},{age:n}),":"]}),(0,s.Y)("div",{className:"ml-2.5",children:r?a.map((function(e){var n=(0,l.A)(e,2),i=n[0],a=n[1];return(0,s.FD)("ul",{children:[(0,s.Y)("li",{children:i}),(0,s.Y)("li",{className:"list-none",children:(0,s.Y)("ul",{children:a.map((function(e){return(0,s.FD)("li",{children:[t({id:"common.doses",defaultMessage:"{number} doses"},{number:e.doses?(0,R.Hg)(e.doses):0}),": ",e.name]},e.name)}))})})]},i)})):(0,s.Y)("ul",{children:a.map((function(e){var n=(0,l.A)(e,2);n[0];return n[1].map((function(e){return(0,s.FD)("li",{children:[t({id:"common.doses",defaultMessage:"{number} doses"},{number:e.doses?(0,R.Hg)(e.doses):0}),": ",e.name]},e.name)}))}))})})]},e)}))}),[c,o]),w=function(e,n,i){return(0,s.FD)("div",{className:"border-b border-b-neutral100 last:border-b-0 border-solid first:pt-0 py-5 space-y-4",children:[(0,s.Y)(M.T,{size:o?"title2":"title1",fw:500,color:"gray1000",as:"h3",children:t({id:n.id,defaultMessage:n.defaultMessage})}),i]},e)},k=function(e){return(null!==e&&void 0!==e?e:"").replace(/<[^>]*>/g,"").replace(/ /g,"").trim().length>0};return(0,s.FD)(Hi,{className:"px-4 pb-4 md:px-6",children:[k(u)&&w("vaccination.detail.itemIncluded",{id:"vaccination.detail.itemIncluded",defaultMessage:"Items included"},(0,s.Y)(T.U,{className:"md:!text-[15px] md:!leading-6",htmlContent:u})),p&&w("vaccination.detail.aboutCombo",{id:"vaccination.detail.aboutCombo",defaultMessage:"About the combo (Vaccine list)"},(0,s.Y)(Li,{className:"md:!text-[15px] md:!leading-6",children:y()})),x.filter((function(e){return!e.isHidden&&k(e.htmlContent)})).map((function(e){return w(e.id,{id:e.id,defaultMessage:e.defaultMessage},(0,s.Y)(T.U,{className:"md:!text-[15px] md:!leading-6",htmlContent:e.htmlContent}))})),(0,s.Y)("div",{className:"border-b border-b-neutral100 last:border-b-0 border-solid pt-5 space-y-4",children:(0,s.Y)(M.T,{size:o?"p3":"p2",color:"gray700",fw:400,italic:!0,children:t({id:"vaccination.detail.referenceInfo",defaultMessage:"Th\xf4ng tin \u0111\u01b0\u1ee3c cung c\u1ea5p b\u1edfi {name}."},{name:(null===(n=a.hospital_branch)||void 0===n?void 0:n.short_name)||(null===(i=a.hospital_branch)||void 0===i?void 0:i.name)})})})]})}var Ri=i(89394);function Gi(e){var n,i,a=e.vaccinationDetail,u=e.refetchVaccinationDetail,v=e.faqsResult,w=(0,S.d)().isMobile,M=w?56:100,N=(0,V.A)().formatMessage,E=(0,Hn.HO)().gps,I=(0,L.$)(),B=I.locale,P=I.asPath,T=(0,d.useState)(!1),z=T[0],O=T[1],K=(0,d.useState)(!1),j=K[0],W=K[1],q=(0,F.J3)(),J=q.openPopupOrganization,Z=q.bookingQuantity,Q=(0,te.useAppContext)().state.featureFlags,$=Q.enableChatWithDoctor,X=Q.enableConsultDoctorButton,ee=(0,d.useState)(""),ne=ee[0],pe=ee[1];(0,d.useEffect)((function(){pe((0,U.Kb)(P))}),[]);var ge=v||{},he=ge.faq,me=void 0===he?[]:he,fe=ge.related_article,ve=(0,d.useRef)(null),be=(0,l.A)((0,re.g)({topOffset:M}),2),xe=be[0],we=be[1],ke=(0,d.useRef)({}),_e=(0,d.useCallback)((function(e){return function(n){ke.current[e]=n}}),[]),Ae=(0,Gn.o)(),Ye=Ae.openModal,Ce=Ae.closeModal,Me=Ae.opened,Ne=(0,Ve.IL)({vaccinationDetail:a}),De=Ne.loading,Fe=Ne.vaccinationPackages,Se=(0,ue.qP)(),Ee=Se.enableBooking,Ie=Se.getEnableBooking,Be=(0,oe.Y)({id:a.id}),Re=Be.doctorQuotes,Ge=Be.loading,Ue=Be.handleLoadMore,Ke=Be.pagination,je=(0,d.useMemo)((function(){var e,n,i;return(null===(i=(0,Ln.Yf)(null===E||void 0===E?void 0:E.lat,null===E||void 0===E?void 0:E.lng,null===(e=a.hospital_branch)||void 0===e?void 0:e.latitude,null===(n=a.hospital_branch)||void 0===n?void 0:n.longitude))||void 0===i?void 0:i.toFixed(1))||""}),[E]),We=a.id,qe=a.price,Je=a.price_discount,Ze=a.percent_discount,Qe=a.price_unit,$e=a.status,Xe=a.top5_reviews,en=a.display_name,nn=a.vaccine_type,an=a.package,tn=a.list_data_for_upselling,on=a.upselling_intro,rn=a.offering_id,ln=null===nn||void 0===nn?void 0:nn.includes("hpv"),cn=an===H._Be.COMBO,sn=an===H._Be.STANDALONE&&!!(null===tn||void 0===tn?void 0:tn.length)&&Ee,dn=!!Fe.length||!!Ee,un=(0,d.useMemo)((function(){var e={id:"related-articles",title:"page.detail.relatedArticles",defaultMessage:"Related Articles",icon:(0,s.Y)(s.FK,{}),renderContent:function(){return(0,s.Y)(Vn.x,{listArticle:fe||[]})},isHidden:!Ri.QA.includes(B)||!fe},n={id:"top5-reviews",title:"vaccination.detail.text.rating",defaultMessage:"Reviews",icon:(0,s.Y)(p.E,{}),renderContent:function(){return(0,s.Y)(Un.A,{refetchList:u,userReviews:Xe,vaccinationDetail:a,onViewAll:Ye,trackerMap:G.Yh})},isHidden:!Ri.iO.includes(B)};return w?[n,e]:[e,n]}),[w,a]),pn=(0,d.useMemo)((function(){var e,n,i,t,o;return[{id:"doctor-quotes",title:"vaccination.detail.doctorQuotes",defaultMessage:"What doctors are saying",icon:(0,s.Y)(s.FK,{}),renderContent:function(){return(0,s.Y)("div",{className:"px-4 md:px-6 pb-4 md:pb-6",children:(0,s.Y)(_.C,{doctorQuotes:Re,loading:Ge,handleLoadMore:Ue,pagination:Ke})})},isHidden:!(null===Re||void 0===Re?void 0:Re.length)},{id:"more-packages",title:"vaccination.detail.morePackages",defaultMessage:"Save more with these packages",icon:(0,s.Y)(s.FK,{}),renderContent:function(){return(0,s.Y)(ie,{comboListing:tn,upSellIntro:on})},isHidden:!sn},{id:"detail-info",title:cn?"vaccination.detail.infoCombo":"vaccination.detail.info",defaultMessage:cn?"Details Combo Information":"Details Vaccine Information",icon:(0,s.Y)(Pe,{}),renderContent:function(e){return(0,s.Y)(Vi,{vaccinationDetail:e})},isHidden:!(a.about||a.detail||a.preparation||cn||cn&&a.product_note)},{id:"hospital-info",title:"vaccination.detail.clinic",defaultMessage:"Clinic Info",icon:(0,s.Y)(s.FK,{}),renderContent:function(e){return(0,s.Y)(ae.A,{className:"px-4 md:px-6 pb-5 md:pb-6 md:pt-3",organization:e.organization,hospitalBranches:e.hospital_branch_lists})}},{id:"insurance-info",title:"vaccination.detail.insuranceInfo",defaultMessage:"Insurance & Financing Information",icon:(0,s.Y)(Te,{}),renderContent:function(e){return(0,s.Y)(He,{id:"insurance-info",children:(0,s.Y)(g.h,{isMobile:w,hospitalInfo:e.hospital_branch})})},isHidden:!((null===(e=a.hospital_branch)||void 0===e||null===(n=e.insurances)||void 0===n?void 0:n.length)||(null===a||void 0===a||null===(i=a.hospital_branch)||void 0===i||null===(t=i.accepted_payments)||void 0===t?void 0:t.length))},{id:"faqs",title:"page.detail.faqs",defaultMessage:"Frequently Asked Questions",icon:(0,s.Y)(s.FK,{}),renderContent:function(){return(0,s.Y)(zn.A,{data:me||[]})},isHidden:!Ri.$z.includes(B)||!(null===me||void 0===me?void 0:me.length)}].concat((0,c.A)(un),[{id:"cross-selling",title:"hospitalService.detail.crossSelling",defaultMessage:"Recommended Services",icon:(0,s.Y)(s.FK,{}),renderContent:function(e){return(0,s.Y)(C.q,{crossSellingData:null===e||void 0===e?void 0:e.list_data_for_crossselling})},isHidden:!(null===a||void 0===a||null===(o=a.list_data_for_crossselling)||void 0===o?void 0:o.length)}])}),[a,null===E||void 0===E?void 0:E.lat,null===E||void 0===E?void 0:E.lng,B,w,sn,Re,Ge]),gn=(0,d.useMemo)((function(){return pn.filter((function(e){return!e.isHidden&&e.id})).map((function(e){return{ref:{get current(){return ke.current[e.id||""]}},id:e.id||"",title:e.title,defaultMessage:e.defaultMessage}}))}),[pn]),hn=(0,le.y)({sectionRefs:gn,formatMessage:N,firstSectionOffset:w?56:100}),fn=hn.sections,vn=hn.scrollToSection,bn=hn.showFixedScroll,yn=(0,d.useCallback)((function(){return pn.filter((function(e){return!e.isHidden})).map((function(e,n){var i;return(0,s.FD)("div",{ref:_e(e.id||""),children:[(0,s.Y)(Le,{id:e.id||"",icon:e.icon,title:N({id:e.title,defaultMessage:e.defaultMessage}),haveCollapse:!1,className:"md:rounded-2xl",children:e.renderContent(a)}),"detail-info"===e.id&&w&&(0,s.Y)("div",{className:"mt-3",children:(0,s.Y)(Sn,{name:en,subscribeLink:null===(i=ue.UW[B])||void 0===i?void 0:i.subscribeLink,app:ue.UW[B].app,onSubscribe:An,dataTracking:G.Yh.subscribeTip})})]},n)}))}),[a,null===E||void 0===E?void 0:E.lat,null===E||void 0===E?void 0:E.lng,pn,w,_e,N]),wn=function(e){var n=e.callingCode,i=e.countryCode,a=e.phone;return b.F.collectionSubmitCTA({area_code:n,country_code:i,cta_text:N({id:"common.contactVia",defaultMessage:"Contact {name}"},{name:x.so.Zalo}),phone_number:a,source_url:window.location.href,messaging_app:x.so.Zalo})},kn=function(e){O(e)},_n=function(e){W(e)},An=function(){kn(!0)},Yn=function(){_n(!0)},Cn=(0,Tn.F)(H.Hxq.VACCINE,B),Mn=Cn.link,Nn=(0,r.A)(Cn,["link"]),Dn=(0,ce.d)(en,a.organization.name,ne),Fn=Boolean(a.quantity_supported),En=a.max_product_quantity||100,In=Fn?Math.min(Math.max(Z||1,1),En):1,Kn=(0,d.useCallback)((function(){return(0,s.Y)(Pn.b,{link:B===m.L.Malaysia?Dn:Mn,dataTracking:(0,G.yz)(Nn,We),locale:B,isPrimary:!(Boolean(Fe.length)||Ee),className:k()("contact-button_section","[&_svg]:!w-[26px] [&_svg]:!h-[26px] [&_button]:!py-0 ",{"[&_button]:!h-[52px] [&_p]:text-[17px] [&_p]:tracking-[-0.4px]":!we,"[&_button]:!h-[48px] [&_p]:text-[17px] [&_p]:tracking-[-0.4px]":we&&w,"[&_button]:!h-[40px] [&_button]:!px-4 [&_p]:text-[15px] [&_p]:tracking-[-0.3px]":we&&!w})})}),[Nn,We,Mn,Ee,B,we,w,Dn]),jn=(0,d.useCallback)((function(e){return De?(0,s.Y)(f.E,{width:"100%",height:52}):Fe.length||Ee?(0,s.Y)(mn,{onBooking:J,loading:De,enableBooking:Ee,vaccinationDetail:a,vaccinationPackages:Fe,dataTracking:(0,G.yz)((0,o.A)((0,t.A)({},e),{"data-event-label":ne}),We),className:k()({"[&_p]:text-[17px] [&.book-now-button]:h-[48px] [&.book-now-button]:!py-0":we&&w,"[&_p]:text-[15px] [&.book-now-button]:h-[40px] [&.book-now-button]:!py-0 [&.book-now-button]:px-4":we&&!w})}):X?(0,s.Y)(Y.u,{locale:B,handleClick:Yn,className:k()("consult-doctor-button",{"[&_p]:text-[17px] [&_button]:h-[48px] [&_button]:!py-0":we&&w,"[&_p]:text-[15px] [&_button]:h-[40px] [&_button]:!py-0 [&_button]:!px-4":we&&!w})}):Kn()}),[Fe,Ee,De,we,w,Kn]),Wn=(0,d.useMemo)((function(){return jn(G.Yh.clickBookNow)}),[jn]),qn=(0,d.useMemo)((function(){return jn(G.Yh.clickBookNowHeader)}),[jn]),Jn=(0,se.D)({locale:B,productKey:String(rn)||""}).badge;return(0,d.useEffect)((function(){u()}),[]),(0,d.useEffect)((function(){var e;Ie({hospital_id:null===a||void 0===a||null===(e=a.organization)||void 0===e?void 0:e.id,product_type:y.jG[H.Hxq.VACCINE]})}),[null===a||void 0===a||null===(n=a.organization)||void 0===n?void 0:n.id]),(0,s.FD)(de.Ue,{value:{isOpenPopupCollection:z,setIsOpenPopupCollection:O},children:[(0,s.FD)("div",{className:"space-y-3 md:space-y-4",children:[w&&(0,s.Y)(Gn.A,{data:a,onClose:Ce,opened:Me,refetchList:u,trackerMap:G.Yh}),(0,s.Y)("div",{ref:ve,children:(0,s.Y)(xi,{vaccinationDetail:a,distance:je,showO2OQuantityStepper:!!Fe.length||!!Ee,buttonUiScrollRef:xe,isCarouselParallax:w&&(B===m.L.Vietnam||B===m.L.Malaysia),buttonUi:(0,s.FD)("div",{className:"flex flex-col gap-2 w-full",children:[Jn&&(0,s.Y)("div",{"data-section":"buttonUi_urgency-badge",children:(0,s.Y)(xn.A,{textProps:{size:"p3",weight:"semiBold"},type:Jn.type,value:Jn.value})}),(0,s.FD)("div",{className:"flex flex-col gap-3 [&_button]:w-full",children:[(0,s.Y)("div",{"data-section":"button-book-now",children:Wn}),(!!Fe.length||Ee)&&(0,s.Y)("div",{children:X?(0,s.Y)(Y.u,{locale:B,handleClick:Yn}):Kn()})]})]}),showPaymentHighlight:(!!Fe.length||!!Ee)&&w})}),dn&&!w&&(0,s.Y)(A.A,{}),B===m.L.Vietnam&&w&&(0,s.FD)("div",{className:"flex flex-col gap-4 bg-white px-4 pb-6 !mt-0",children:[(0,s.Y)(h.I,{src:"".concat(H.JpE,"/images/referral-banner-mobile.png"),alt:"Gi\u1edbi thi\u1ec7u & nh\u1eadn qu\xe0",width:767,height:110,onClick:function(){return(0,R.HB)(U.OW)},className:"referral-banner-mobile cursor-pointer","data-testid":"referral-banner-mobile"}),(0,s.Y)(p.H,{onClick:function(){return(0,R.HB)(U.dZ)},image:"".concat(H.JpE,"/images/hpv-screener.png")||0,className:"hpv-mobile"})]}),(0,s.FD)("div",{className:"md:flex md:gap-4",children:[(0,s.Y)("div",{className:"space-y-3 md:space-y-4 md:max-w-[calc(100%-376px)]",children:yn()}),(0,s.Y)("div",{className:"flex flex-col gap-4 md:w-[360px] sticky top-[calc(100px+24px)] md:self-start",children:!w&&(0,s.FD)(s.FK,{children:[B===m.L.Malaysia&&ln&&$&&(0,s.Y)(h.I,(0,t.A)({src:"".concat(H.JpE,"/images/my_detail_hpv_doctor.png"),alt:"Worried about HPV?",width:360,height:144,onClick:function(){return(0,R.HB)(U._s)},className:"cursor-pointer","data-testid":"desktop-hpv-banner-my"},G.Yh.messageBannerHPVDetail)),B===m.L.Vietnam&&(0,s.FD)(s.FK,{children:[(0,s.Y)(h.I,{src:"".concat(H.JpE,"/images/referral-banner-desktop.png"),alt:"Gi\u1edbi thi\u1ec7u & nh\u1eadn qu\xe0",width:360,height:110,onClick:function(){return(0,R.HB)(U.OW)},className:"referral-banner-desktop cursor-pointer","data-testid":"referral-banner-desktop"}),(0,s.Y)(Oe,{onClick:function(){return(0,R.HB)(U.dZ)},image:"".concat(H.JpE,"/images/hpv-screener.png")||0,className:"hpv-mobile hpv"})]}),(0,s.Y)(Sn,{name:en,subscribeLink:null===(i=ue.UW[B])||void 0===i?void 0:i.subscribeLink,app:ue.UW[B].app,onSubscribe:An,dataTracking:G.Yh.subscribeTip})]})})]}),(0,s.Y)(ze,{"data-visible":!!we||void 0,children:(0,s.FD)("div",{className:"py-3 px-4 space-y-2 w-full relative",children:[(0,s.FD)("div",{className:"flex justify-between gap-2 w-full",children:[(0,s.Y)(ye,{status:$e,stickyBar:!0,price:qe||0,priceDiscount:Je||0,badgeDiscount:{percent:Ze||null,variant:"short"},priceUnit:Qe,isPerDose:!cn&&1===In,perDosePos:"bottom",quantity:In}),(0,s.Y)("div",{className:"flex-auto max-w-[203px]",children:Wn})]}),(!!Fe.length||!!Ee)&&X&&(0,s.Y)(Bn.k,{locale:B,shouldFadeIn:we,handleClick:Yn})]})}),(0,s.Y)(g.P,{onOpenChange:kn,isOpen:z,isMobile:w,onSubmit:wn}),X&&(0,s.Y)(g.g,{onOpenChange:_n,isOpen:j,isMobile:w,onSubmit:function(e){var n=e.callingCode,i=e.countryCode,t=e.phone,o=e.gender,r=e.name;return y.Xx.submitConsultation({area_code:n,country_code:i,phone_number:t,source_url:window.location.href,category_name:a.service_type,listing_id:"".concat(We),name:r,gender:o,extras_data:{product_name:en,platform:w?"mobile":"desktop",offering_id:rn}})},locale:B}),(0,s.Y)(D.A,{}),(0,s.Y)(On.k,{data:a,sections:fn,isDisappear:bn,renderButton:qn,onScrollToSection:vn,urgencyBadge:Jn,quantity:In})]}),w&&(!!Fe.length||!!Ee)&&!X&&(0,s.Y)("div",{className:k()({"[&>div]:!bottom-[88px]":w&&!Jn,"[&>div]:!bottom-[116px]":w&&Jn}),children:(0,s.Y)(Rn.m,{locale:B,isMobile:w,handleSubmitCTA:wn,link:B===m.L.Malaysia?Dn:void 0})})]})}var Ui,Ki,ji=i(858),Wi=i(83776),qi=i(27516),Ji=i(94886),Zi=i.n(Ji),Qi=i(19475),$i=i(71437),Xi=i(21861),ea=i(16381),na=i(28333),ia=i(25683),aa=i(42258),ta=i(66031),oa=i(14739),ra=i(17745),la=(0,Z.A)("div",{target:"ea5n9y50"})("height:inherit;width:inherit;.hpv-screener-container{display:flex;flex-direction:column;justify-content:center;padding:1rem ",(0,j.D)(22)," 1rem ",(0,j.D)(32),";gap:8px;background:linear-gradient(\n 90deg,",B.w.colors.primary50," 0.57%,",B.w.colors.white," 91.53%\n );border-radius:1rem;border:1px solid ",B.w.colors.white,";width:100%;height:100%;}.hpv-screener-image{width:",(0,j.D)(200),";height:",(0,j.D)(200),";align-self:start;aspect-ratio:1/1;}.hpv-screener-content-box{display:flex;align-items:center;justify-content:space-between;gap:1rem;}.hpv-screener-button{&.mantine-Button-root{border-radius:12px;border:1px solid ",B.w.colors.blue100,";background-color:transparent;color:",B.w.colors.primaryBase,";padding:10px 16px;width:fit-content;height:",(0,j.D)(48),";&:hover{border:1px solid ",B.w.colors.blue100,";background-color:",B.w.colors.blue50,";}}}.hpv-screener-content{display:flex;flex-direction:column;justify-content:flex-start;gap:1rem;}.hpv-screener-badge{&.mantine-Badge-root{background-color:",B.w.colors.white,";}line-height:1rem;color:",B.w.colors.gray1000,";align-self:flex-start;height:",(0,j.D)(36),";border-radius:",(0,j.D)(99),";padding:8px 16px;display:inline-flex;align-items:center;}"),ca=(0,Z.A)("div",{target:"ea5n9y52"})("text-transform:uppercase;display:flex;align-items:center;gap:4px;"),sa=(0,Z.A)("div",{target:"ea5n9y54"})("display:flex;align-items:center;gap:1rem;"),da=(0,Z.A)("div",{target:"ea5n9y55"})("font-weight:600;font-size:0.9375rem;color:",B.w.colors.primaryBase,";"),ua=i(91177);function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var n=1;n0&&(0,s.Y)(mi.S,{withControls:!$,height:40,children:pe.map((function(e){var n=e.id,i=e.name,a=e.brand,r=e.logo,l=e.description,c=e.type,d=c===je.O7.VOUCHER?"".concat(i," - ").concat(l):ge(e),u=c===je.O7.REFERRAL,p=Ca(ve),g=u?(0,G.yz)((0,o.A)((0,t.A)({},G.Yh.selectReferralVoucherListing),{"data-event-label":p}),le):(0,o.A)((0,t.A)({},G.Yh.clickVoucher),{"data-event-label":"".concat(le,"^").concat(i||n,"^").concat(p)});return(0,s.Y)(Na,{href:ve,onClick:Ye,children:(0,s.Y)(Aa.Vr,{dataTracking:g,image:je.uY[a]||r||v.__,title:d,className:k()("max-w-[300px] h-10 !p-2 relative z-2"),classes:{title:{lineClamp:1}}})},n)}))}),!!(null===D||void 0===D?void 0:D.length)&&(0,s.FD)(s.FK,{children:[(0,s.Y)(ai.c,{color:B.w.colors.neutral100}),(0,s.FD)("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between -mt-[4px]",children:[(0,s.Y)(ui(),{href:xe,passHref:!0,legacyBehavior:!0,children:(0,s.Y)("a",(0,o.A)((0,t.A)({},(0,G.yz)((0,o.A)((0,t.A)({},G.Yh.selectProductItemBranch),{"data-event-label":te}),le)),{onClick:Ye,children:(0,s.Y)(Ya.F,{hospitalBranch:{name:(null===re||void 0===re?void 0:re.name)||"",short_name:null===re||void 0===re?void 0:re.short_name},organization:z,distance:ke,totalBranches:be})}))}),Be&&(0,s.FD)("div",{className:Ee&&Ie?"grid grid-cols-2 gap-2 md:flex md:flex-row md:items-center":"flex flex-col gap-2 md:flex-row md:items-center",children:[Ie&&(0,s.Y)(Aa.gH,{dataTracking:(0,G.yz)((0,o.A)((0,t.A)({},G.Yh.buyVia),{"data-event-action":"Bottom - Click Message to Whatsapp","data-event-label":U._s}),le),link:Se,className:"listing-whatsapp-button"}),Ee&&(0,s.Y)(Aa.Pl,(0,o.A)((0,t.A)({size:"lg",className:"listing-book-now-button","data-testid":"listing-book-now-button",onClick:function(e){e.preventDefault(),e.stopPropagation(),(null===D||void 0===D?void 0:D.length)&&E&&re&&g({id:re.vaccine_detail_id,hospital_branch_lists:D,organization:z,slug:E,service_type:H.Hxq.VACCINE},{forceOpenModal:!0})}},(0,G.yz)((0,o.A)((0,t.A)({},G.Yh.clickBookNow),{"data-event-label":Ca(ve)}),le)),{children:(0,s.Y)(M.T,{size:"p2",color:"white",fw:500,children:X({id:"homePage.bookNow",defaultMessage:"Book Now"})})}))]})]})]})]})})}Da.Skeleton=Ma;var Fa=Da,Sa=i(2787),Ea=i(33843),Ia=function(e){var n=e.ageGroup,i=void 0===n?"":n,a=e.onSelect,t=e.activeAgeGroup,o=(0,V.A)().formatMessage,r=(0,S.d)().isMobile,l=(0,d.useMemo)((function(){if(!(null===t||void 0===t?void 0:t.length))return Sa.QX;var e=new Set(t);return Sa.QX.filter((function(n){return e.has(n.key||"all")}))}),[t]),c=function(){return l.map((function(e,n){var t=r?o({id:e.title.id,defaultMessage:e.title.defaultMessage}):o({id:e.title.id,defaultMessage:e.title.defaultMessage}).replace("
"," ");return(0,s.Y)(Ea.s,{title:t,logo:e.logo,isActive:i===e.key,onClick:function(){return null===a||void 0===a?void 0:a(e.key)},type:"underline"},"age-group-".concat(n))}))};return(0,s.Y)(Xe.a,{sx:{"& .title-collapse":{fontSize:(0,j.D)(15)}},children:r?(0,s.FD)(pe.C,{title:r?o({id:"vaccination.detail.text.ageGroup",defaultMessage:"Age Group"}):"",haveCollapse:!1,children:[" ",(0,s.Y)(pe.D,{gapItem:12,draggable:!1,dragFree:!1,sx:{"& .mantine-Carousel-viewport":{padding:"0 1rem"}},children:c()})]}):(0,s.Y)("div",{className:"flex gap-8 h-full mt-6",children:c()})})},Ba=function(e){var n,i=e.className,a=e.bannerList,t=(0,S.d)().isMobile;return(0,s.Y)("div",{className:i,children:(0,s.Y)($e.F,{withControls:!1,withIndicators:(null!==(n=null===a||void 0===a?void 0:a.length)&&void 0!==n?n:0)>1,slideGap:10,containScroll:"trimSnaps",height:t?"fit-content":(0,j.D)(232),sx:{"& .mantine-Carousel-container":{display:"flex",alignItems:"center"},marginBottom:(0,j.D)(21),"& .mantine-Carousel-indicators":{bottom:t?(0,j.D)(-20):"1rem",left:t?"0":"unset",right:t?"0":"1rem",backgroundColor:t?"transparent":B.w.colors.white,padding:"2px 4px",borderRadius:(0,j.D)(80),gap:(0,j.D)(4)},"& .mantine-Carousel-indicator":{width:(0,j.D)(5),height:(0,j.D)(5),borderRadius:"50%",backgroundColor:"gray","&[data-active]":{backgroundColor:"black"}}},children:null===a||void 0===a?void 0:a.map((function(e){return(0,s.Y)($e.F.Slide,{style:{height:"100%"},className:"flex justify-center items-center w-full",children:e.banner},e.id)}))})})},Pa=i(41211),Ta=i(92343),za=i(28901),Oa=i(87783),La=i(94335),Ha=i(6483),Va=i(33077),Ra=function(e){var n=e.filterAgeGroup,i=e.breadcrumbsPages,a=(0,V.A)().formatMessage,r=(0,L.$)().locale,l=(0,S.d)().isMobile,c=(0,ra.P)().isOpen,u=(0,te.useAppContext)().state.featureFlags.enableChatWithDoctor,g=(0,p.u)(),h=g.total,m=g.handleUpdateFilter,v=g.filters,b=g.items,x=g.loading,y=g.search,w=(0,d.useState)(!1),_=w[0],A=w[1],Y=(0,Hn.HO)(),C=Y.handleOpen,N=Y.geoLocationInfo,I=Y.gps,P=Y.geoPermission,T=Y.isOpen,z=(0,d.useState)((function(){var e=v||{},n=e.by_popularity,i=e.top_price;return n?"by_popularity":i?"top_price":"by_relevance"})),O=z[0],R=z[1],U=(0,d.useState)(!1),K=U[0],j=U[1],W=(0,d.useState)(Oa.Ok[H.Hxq.VACCINE]),q=W[0],J=W[1],Z=function(e){return function(){J(e),j(!0)}},Q=(0,d.useMemo)((function(){var e=0,n=v||{},i=n.by_popularity,a=n.top_price,t=n.productType,o=n.age_group,r=n.hospital_ids;return(i||a)&&e++,o&&e++,t&&Array.isArray(t)&&t.length>0&&(e+=t.length),r&&Array.isArray(r)&&r.length>0&&(e+=r.length),e}),[v]),$=(0,d.useRef)(!0);(0,d.useEffect)((function(){if(("granted"!==P||N)&&!T&&P){var e,n,i;if($.current)return void($.current=!1);var a=(0,o.A)((0,t.A)({},v),{city_id:(null===N||void 0===N||null===(e=N.search)||void 0===e||null===(n=e.city)||void 0===n||null===(i=n.id)||void 0===i?void 0:i.toString())||""});(null===N||void 0===N?void 0:N.place_id)&&I?(a.latitude=+I.lat,a.longitude=+I.lng,a.city_id=""):(a.latitude="",a.longitude=""),m(a)}}),[P,null===N||void 0===N?void 0:N.city,null===N||void 0===N?void 0:N.place_id,null===N||void 0===N?void 0:N.district,null===I||void 0===I?void 0:I.lat,null===I||void 0===I?void 0:I.lng]);var X=!b.length&&!x,ee=function(e){if("near_me"!==e){var n=(0,o.A)((0,t.A)({},v),(0,E.A)({},e,Number(!v[e])));m(n)}else C()},ne=(0,d.useMemo)((function(){var e=[];return ma.forEach((function(n){var i=n.id.includes("my-chat-with-doctor");if(n.isMobile===l&&n.locale===r){if(!u&&i)return;e.push(n)}})),e}),[r,l,u]),ie=(_||!!y)&&l,ae=(0,d.useMemo)((function(){var e=v.age_group||"all";return null===n||void 0===n?void 0:n[e]}),[v.age_group,n]),oe=(0,d.useMemo)((function(){return(0,aa.tY)(n)||[]}),[n]);return(0,s.Y)(F.DT,{children:(0,s.FD)("div",{children:[(0,s.Y)("div",{className:"md:mb-8 bg-white",style:{backgroundImage:l?"unset":"url(".concat(H.JpE,"/images/blurred-banner.png)")},children:(0,s.FD)(Qi.mc,{isNewContainer:!0,children:[(0,s.FD)("div",{className:"flex w-full flex-col-reverse md:flex-col",children:[(0,s.Y)($i.A,{isVisible:!ie,maxHeight:200,children:(0,s.Y)(Xi.A,{className:"py-[10px] md:py-3",pages:i})}),(0,s.Y)("div",{className:"py-3 md:hidden",children:(0,s.Y)(p.L.Search,(0,o.A)((0,t.A)({placeholder:a({id:"vaccination.search.placeholder",defaultMessage:"Search vaccination or clinics"})},G.Yh.searchBox),{onFocus:function(){return A(!0)},onBlur:function(){return A(!1)}}))})]}),ne.length>0&&(0,s.Y)($i.A,{isVisible:!ie,maxHeight:300,children:(0,s.Y)(Ba,{bannerList:ne})}),(0,s.Y)("div",{className:"-mx-4 md:mx-0",children:(0,s.Y)($i.A,{isVisible:!ie,maxHeight:400,children:(0,s.Y)(Ia,{onSelect:function(e){e!==v.age_group?m({age_group:e,productType:[]}):m({age_group:"",productType:[]})},ageGroup:v.age_group,activeAgeGroup:oe})})})]})}),(0,s.FD)(Qi.mc,{isNewContainer:!0,className:"gap-6 relative",children:[(0,s.FD)("div",{className:k()("-mx-4 mt-2.5 pb-12 md:mx-0 md:flex md:justify-between md:gap-6",{"bg-white":X&&l,"!mt-0":ie}),children:[(0,s.FD)("div",{className:"md:w-[320px] hidden md:flex md:flex-col md:gap-3",children:[(0,s.Y)("div",{className:"bg-white p-4 rounded-xl",children:(0,s.Y)(wa.Ee,(0,t.A)({placeholder:a({id:"vaccination.search.placeholder",defaultMessage:"Search vaccination or clinics"}),className:"input-desktop"},G.Yh.searchBox))}),(0,s.FD)("div",{className:"bg-white p-4 rounded-xl flex flex-col gap-8",children:[ya.dD.some((function(e){return e===r}))&&(0,s.Y)(ea.A,{onFilter:function(e){var n={by_relevance:0,by_popularity:0,top_price:0};n[e]=1;var i=(0,t.A)({},v,n);R(e),m(i)},isKeySelected:O}),(0,s.Y)(xa,{isDesktop:!0,activeFilter:ae}),(0,s.Y)(La.A,{className:"",serviceType:H.Hxq.VACCINE})]})]}),(0,s.FD)("div",{className:"md:flex md:flex-col md:flex-1",children:[(0,s.FD)("div",{className:"hidden md:block bg-white mb-3 md:rounded-xl md:px-6 md:py-4",children:[(0,s.Y)("div",{className:"mb-4",children:x?(0,s.Y)(f.E,{w:"20%",h:20}):(0,s.Y)(M.T,{size:"title1",color:"gray900",weight:"semiBold",as:"h2",children:a({id:"vaccination.search.total",defaultMessage:"{total} Vaccination"},{total:b.length&&h||0})})}),(0,s.Y)("div",{className:"flex justify-between",children:(0,s.Y)(na.F,{name:"desktop",onFilter:ee,isSelected:{near_me:Number(!!(null===N||void 0===N?void 0:N.place_id)),promo_available:v.promo_available},filterOptions:ia.B,serviceType:H.Hxq.VACCINE})})]}),(0,s.FD)("div",{className:"bg-white md:flex md:flex-col md:gap-3",children:[(0,s.Y)($i.A,{isVisible:!ie,maxHeight:200,className:"md:hidden pb-3",children:(0,s.Y)(xa,{activeFilter:ae})}),(0,s.Y)("div",{className:"md:hidden flex pl-4 pr-4 pt-2 pb-6 items-center",children:(0,s.Y)(na.F,{name:"mobile",onFilter:ee,isSelected:{near_me:Number(!!(null===N||void 0===N?void 0:N.place_id)),promo_available:null===v||void 0===v?void 0:v.promo_available},filterOptions:ia.B,serviceType:H.Hxq.VACCINE,onFilterClick:Z(Oa.Xy.SORT),onHospitalClick:Z(Oa.Xy.HOSPITAL),activeFilterCount:Q})}),(0,s.Y)("div",{className:"md:hidden flex gap-[10px] items-center justify-between px-4 ",children:x?(0,s.Y)(f.E,{w:"20%",h:20}):(0,s.Y)(M.T,{size:"p3",color:B.w.colors.gray400,as:"h2",children:a({id:"vaccination.search.total",defaultMessage:"{total} Vaccination"},{total:b.length&&h||0})})})]}),(0,s.Y)(p.L.Content,{className:"space-y-3",customLoading:(0,s.FD)("div",{className:"space-y-3",children:[(0,s.Y)(Fa.Skeleton,{}),(0,s.Y)(Fa.Skeleton,{}),(0,s.Y)(Fa.Skeleton,{})]}),customEmpty:(0,s.FD)("div",{className:"flex flex-col gap-2 md:gap-4 items-center justify-start py-20 md:py-10 min-h-[50vh] md:bg-white md:rounded-lg md:h-full",children:[(0,s.Y)(Va.A,{className:"w-[54px] h-[54px] md:hidden text-neutral50"}),(0,s.Y)(Ha.A,{className:"hidden md:block md:w-48 md:h-[120px] text-neutral50"}),(0,s.Y)(M.T,{size:"p2",color:B.w.colors.gray400,className:"text-center",weight:"semiBold",children:a({id:"filter.noResults",defaultMessage:"No result"})})]}),children:(0,s.Y)(p.L.Item,{render:function(e,n){return(0,s.Y)("div",{children:(0,s.Y)(Fa,{gps:(null===N||void 0===N?void 0:N.place_id)?I:null,data:e,loading:n,trackerMap:G.Yh})})}})}),(0,s.Y)(p.L.LoadMore,(0,t.A)({renderLoadMore:function(e){var n=e.last;return(0,s.Y)("span",{className:"font-normal",children:a({id:"vaccination.search.loadmore",defaultMessage:"Load more {items} items"},{items:n})})}},G.Yh.loadMore))]})]}),(0,s.Y)(Pa.m,{locale:r,serviceType:H.Hxq.VACCINE,filter:null===v||void 0===v?void 0:v.productType[0]}),(0,s.Y)(ta.m.div,{className:"absolute inset-0 bg-white z-10",transition:{duration:.15,ease:"easeInOut"},variants:{active:{opacity:1},inactive:{opacity:0,pointerEvents:"none"}},initial:"inactive",animate:c?"active":"inactive",style:{willChange:"opacity"}})]}),(0,s.Y)(Ta.j,{trackerMap:G.Yh}),l&&(0,s.Y)(za.s,{isOpen:K,onClose:function(){return j(!1)},serviceType:H.Hxq.VACCINE,totalResults:h||0,defaultActiveCategory:q,activeFilter:{ageGroup:n,productType:ae}}),(0,s.Y)(D.A,{})]})})},Ga=function(e){var n=e.initItems,i=void 0===n?[]:n,a=e.initPagination,r=e.filterAgeGroup,c=(0,L.$)().locale,u=(0,d.useRef)(null),g=(0,d.useState)(r||{infant:[],child:[],teen:[],adult:[],senior:[]}),h=g[0],m=(g[1],(0,oa.Z)(aa.fP)),f=m.state,v=m.setState,b=function(){var e=(0,ji.A)((function(e){var n,i,a,r,s,d,p,g,h,m,f,b,x,w,k,_,A,Y,C,M,N,D,F,S;return(0,Wi.__generator)(this,(function(E){switch(E.label){case 0:n=e.page,i=e.pageSize,a=e.search,r=e.filters,s=void 0===r?{}:r,d=e.searchSession,u.current&&u.current.cancel("Operation canceled by the user."),p=Zi().CancelToken,g=p.source(),u.current=g,E.label=1;case 1:return E.trys.push([1,3,,4]),x={site:qi.y[c],type:y.Tc[H.Hxq.VACCINE],per_page:i,keyword:a||"",page:n,city_id:s.city_id||"",latitude:s.latitude||"",longitude:s.longitude||"",top_rated:null!==(f=s.top_rated)&&void 0!==f?f:0,promo_available:null!==(b=s.promo_available)&&void 0!==b?b:0,hospital_ids:s.hospital_ids||[]},(w=s.age_group||"")&&(_=(0,l.A)(null!==(k=Sa.KT[w])&&void 0!==k?k:[],2),A=_[0],Y=_[1],x.min_age=A?"".concat(A,"-day"):void 0,x.max_age=Y?"".concat(Y,"-day"):void 0),x.by_relevance=null!==(C=s.by_relevance)&&void 0!==C?C:0,x.by_popularity=null!==(M=s.by_popularity)&&void 0!==M?M:0,x.top_price=null!==(N=s.top_price)&&void 0!==N?N:0,D=s.productType||[],d&&(x.page=d),[4,y.Xx.getVaccinationListV2((0,o.A)((0,t.A)({},x),{vaccine_type:D||[]}),g.token).then((function(e){var n;return null===(n=e.data)||void 0===n?void 0:n._data}))];case 2:return F=E.sent(),v((0,o.A)((0,t.A)({},s),{keyword:a||"",page:n}),{shallow:!0,scroll:!1}),[2,{data:F.searches,total:null===(h=F.pagination)||void 0===h?void 0:h.total_items,page:n,searchSession:(null===(m=F.pagination)||void 0===m?void 0:m.next)||""}];case 3:return S=E.sent(),console.log("\ud83d\ude80 ~ fetchVaccinationList ~ error:",S),[2,{data:[],total:0,page:n,isKeepLoading:Zi().isCancel(S)}];case 4:return[2]}}))}));return function(n){return e.apply(this,arguments)}}();return(0,s.Y)(p.L.Provider,{fetcher:b,defaultSearch:f.keyword||"",defaultFilters:f,defaultItems:i,defaultPage:Number(f.page)||1,defaultTotal:(null===a||void 0===a?void 0:a.total_items)||0,children:(0,s.Y)(Ra,(0,o.A)((0,t.A)({},e),{filterAgeGroup:h}))})}},74205:function(e,n,i){i.d(n,{F:function(){return a},v:function(){return t}});var a={AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"\xc5land Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barth\xe9lemy",BM:"Bermuda",BN:"Brunei Darussalam",BO:"Bolivia, Plurinational State of",BQ:"Caribbean Netherlands",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Congo, the Democratic Republic of the",CF:"Central African Republic",CG:"Republic of the Congo",CH:"Switzerland",CI:"C\xf4te d'Ivoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China (People's Republic of China)",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Cura\xe7ao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",EU:"Europe",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands (Malvinas)",FM:"Micronesia, Federated States of",FO:"Faroe Islands",FR:"France",GA:"Gabon","GB-ENG":"England","GB-NIR":"Northern Ireland","GB-SCT":"Scotland","GB-WLS":"Wales",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HM:"Heard Island and McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran, Islamic Republic of",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"Korea, Democratic People's Republic of",KR:"Korea, Republic of",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos (Lao People's Democratic Republic)",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova, Republic of",ME:"Montenegro",MF:"Saint Martin",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"R\xe9union",RO:"Romania",RS:"Serbia",RU:"Russian Federation",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena, Ascension and Tristan da Cunha",SI:"Slovenia",SJ:"Svalbard and Jan Mayen Islands",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten (Dutch part)",SY:"Syrian Arab Republic",SZ:"Kingdom of Eswatini",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Republic of T\xfcrkiye",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan (Republic of China)",TZ:"Tanzania, United Republic of",UA:"Ukraine",UG:"Uganda",UM:"US Minor Outlying Islands",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See (Vatican City State)",VC:"Saint Vincent and the Grenadines",VE:"Venezuela, Bolivarian Republic of",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna Islands",WS:"Samoa",XK:"Kosovo",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe"},t=function(e){return"countryFlags/100/".concat(e,".png")}}}]);