"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6638],{HHCU:function(e,t,a){a.d(t,{N:function(){return HomePageCarouselWrapper}});var n=a("BGKE"),i=a("q1tI"),l=a("ZQ3V"),r=a("Zdfy"),o=a("TSYQ"),d=a.n(o),c=a("dDsW"),s=a("tYvc"),h=a.n(s),g=a("CLWb"),m=a("pK+c"),p=a("hXNO");let HomePageCarouselWrapper=e=>{let{children:t,sectionName:a,classes:o,showControls:s=!0,showAllLink:u,asTitle:v="h2",dataTracking:f,carouselProps:b,disableItemCountCheck:x=!1}=e,{root:Z,rootContainer:y,titleAndControls:w,body:C}=o||{},{formatMessage:S}=(0,c.Z)(),B=(0,p.d)(),[N,k]=(0,i.useState)(null),[M,T]=(0,i.useState)(!1),[I,E]=(0,i.useState)(!1),L=i.Children.count(t);(0,i.useEffect)(()=>{if(!N)return;let updateScrollState=()=>{T(N.canScrollPrev()),E(N.canScrollNext())};return updateScrollState(),N.on("select",updateScrollState),N.on("reInit",updateScrollState),()=>{N.off("select",updateScrollState),N.off("reInit",updateScrollState)}},[N]);let z=(0,n.BX)(n.HY,{children:[(0,n.tZ)(l.T,{size:B?"h5":"h3",fw:700,color:"gray1000",align:"left",lineClamp:2,as:"span",className:"hospital-service-section-title max-md:!text-[17px] min-w-0 flex-1 overflow-hidden",children:S({id:a.id,defaultMessage:a.defaultMessage})}),u&&(0,n.tZ)(h(),{width:20,height:20,className:"shrink-0"})]});return(0,n.tZ)("div",{className:d()(Z),children:(0,n.BX)("div",{className:d()("flex flex-col gap-[20px]",y),children:[(0,n.BX)("div",{className:d()("flex items-center justify-between w-full",w),children:[(0,n.tZ)(v,{className:"min-w-0",children:u?(0,n.tZ)(g.F,{href:u,className:"flex items-center gap-1 md:gap-4 min-w-0 cursor-pointer","data-event-category":null==f?void 0:f.dataEventCategory,"data-event-action":null==f?void 0:f.dataEventAction,"data-event-label":null==f?void 0:f.dataEventLabel,children:z}):(0,n.tZ)("div",{className:"flex items-center gap-1 md:gap-4 min-w-0","data-event-category":null==f?void 0:f.dataEventCategory,"data-event-action":null==f?void 0:f.dataEventAction,"data-event-label":null==f?void 0:f.dataEventLabel,children:z})}),!B&&s&&(x||L>4)&&(0,n.BX)("div",{className:"flex items-center gap-2",children:[(0,n.tZ)("button",{className:d()("w-[48px] h-[48px] rounded-full flex items-center justify-center",M?"bg-neutral50 cursor-pointer":"bg-neutral100 cursor-not-allowed opacity-50"),onClick:()=>{null==N||N.scrollPrev()},disabled:!M,children:(0,n.tZ)(m.zr,{width:24,height:24})}),(0,n.tZ)("button",{className:d()("w-[48px] h-[48px] rounded-full flex items-center justify-center",I?"bg-neutral50 cursor-pointer":"bg-neutral100 cursor-not-allowed opacity-50"),onClick:()=>{null==N||N.scrollNext()},disabled:!I,children:(0,n.tZ)(m.dj,{width:24,height:24})})]})]}),(0,n.tZ)("div",{className:d()(C),children:(0,n.tZ)(r.l,{withControls:!1,withIndicators:!1,getEmblaApi:k,slideGap:B?12:24,slideSize:"25%",align:"start",containScroll:"trimSnaps",...b,children:t})})]})})}},OzKP:function(e,t,a){a.d(t,{U:function(){return HomeVideos}});var n=a("BGKE"),i=a("q1tI"),l=a("1CzF"),r=a("JjKH"),o=a("Tut/"),d=a("mYVa"),c=a("8vDj"),s=a("Eso5"),h=a("KeOA"),g=a("OAL+"),m=a("dDsW"),p=a("CJtR"),u=a("M1QZ"),v=a("iv2E"),f=a("P5LW"),b=a("rIrU"),x=a("lMcb");let getGridVideoItemStyles=e=>({root:{borderRadius:8,width:"100%"},title:{[e.fn.largerThan("sm")]:{fontSize:(0,d.h)(14),lineHeight:(0,d.h)(22)}}}),HomeVideos=e=>{let{videos:t,gridLayout:a=!1,headingAs:Z}=e,y=(0,c.rZ)(),{formatMessage:w}=(0,m.Z)(),{locale:C}=(0,f.h)(),S=(0,i.useMemo)(()=>(0,p.UC)(C),[C]),B=t||[],N=a&&B.length<=4,k=a&&B.length>4;return(0,n.BX)(x.Z,{url:"/videos/",color:"yellow",children:[(0,n.tZ)(x.Z.SectionName,{"data-event-category":"Recommend Video","data-event-action":"See All Videos","data-event-label":"https://".concat(v.domainLocales[C],"/videos/"),icon:(0,n.tZ)(o.Z,{size:20,color:y.colors.yellow[6]}),children:w({id:"homeVideoSection.heading",defaultMessage:"Video"})}),(0,n.tZ)(x.Z.Heading,{as:Z,children:w({id:"home.video.title",defaultMessage:"Video"})}),(0,n.tZ)(x.Z.Content,{children:N?(0,n.tZ)(s.x,{px:16,sx:e=>({[e.fn.largerThan("sm")]:{paddingLeft:48,paddingRight:48}}),children:(0,n.tZ)(h.M,{cols:4,spacing:12,children:B.map((e,t)=>(0,n.tZ)(l.V,{data:{...e,type:r.V.VIDEO},dataEventCategory:"Recommend Video",dataEventAction:"Video Click ".concat(t+1),styles:getGridVideoItemStyles(y)},String(t)))})}):(0,n.tZ)(u.Z,{containScroll:"trimSnaps",slideSize:k?"25%":"auto",slideGap:12,align:"start",loop:k,breakpoints:k?[{maxWidth:"sm",slideSize:"85%",slideGap:16}]:void 0,styles:e=>k?{viewport:{[e.fn.smallerThan("sm")]:{paddingLeft:16,paddingRight:0},[e.fn.largerThan("sm")]:{paddingLeft:48,paddingRight:48}}}:{viewport:{paddingLeft:16,paddingRight:16,[e.fn.largerThan("sm")]:{paddingLeft:48,paddingRight:48}}},children:(0,n.BX)(g.K,{spacing:24,children:[(0,n.tZ)(s.x,{sx:e=>k?{[e.fn.smallerThan("sm")]:{marginLeft:-16,marginRight:-16},[e.fn.largerThan("sm")]:{marginLeft:-48,marginRight:-48}}:{marginLeft:-16,marginRight:-16,[e.fn.largerThan("sm")]:{marginLeft:-48,marginRight:-48}},children:(0,n.tZ)(u.Z.Body,{children:B.map((e,t)=>(0,n.tZ)(u.Z.Slide,{children:(0,n.tZ)(l.V,{data:k?{...e,type:r.V.VIDEO}:e,dataEventCategory:"Recommend Video",dataEventAction:"Video Click ".concat(t+1),styles:k?getGridVideoItemStyles(y):{root:{borderRadius:8,width:e.type===r.V.SHORTS?103:330,[y.fn.largerThan("sm")]:{width:e.type===r.V.SHORTS?160:515}},title:{[y.fn.largerThan("sm")]:{fontSize:(0,d.h)(14),lineHeight:(0,d.h)(22)}}}})},String(t)))})}),(0,n.tZ)(s.x,{sx:e=>({height:1,backgroundColor:"#fff",[e.fn.smallerThan("sm")]:{display:"none"}})}),(0,n.BX)(u.Z.Footer,{children:[(0,n.tZ)(x.Z.ViewAll,{"data-event-category":"Spotlight","data-event-action":"See All Click","data-event-label":"".concat(S).concat(b.sb,"/videos/"),children:w({id:"viewAll",defaultMessage:"View all"})}),(0,n.BX)(u.Z.Controls,{children:[(0,n.tZ)(u.Z.Control,{direction:"prev","data-event-category":"Recommend Video","data-event-action":"See More Video","data-event-label":"".concat(S).concat(b.sb)}),(0,n.tZ)(u.Z.Control,{direction:"next","data-event-category":"Recommend Video","data-event-action":"See More Video","data-event-label":"".concat(S).concat(b.sb)})]})]})]})})}),(0,n.tZ)(x.Z.ViewAll,{"data-event-category":"Recommend Video","data-event-action":"See All Videos","data-event-label":"".concat(S).concat(b.sb,"/videos/"),children:w({id:"viewAll",defaultMessage:"View all"})})]})}},rbMh:function(e,t,a){a.d(t,{Z:function(){return homepageBanner}});var n=a("BGKE"),i=a("q1tI"),l=a("rs4g"),r=a("0Tio"),o=a("Jbia"),d=a("i2MM"),c=a("JxkW"),s=a("TH2c"),h=a("ZQ3V"),g=a("p3w3"),m=a("iuhU"),p=a("Eso5"),u=a("frWj"),v=a("RZSM"),f=a("7Ci/"),b=a("SPK5"),x=a("OAL+"),Z=a("JPg4"),y=a("g4pe"),w=a.n(y),C=a("dDsW"),S=a("S3OL"),B=a("iv2E"),N=a("hXNO"),k=a("P5LW"),M=a("rIrU"),T=a("rBCA"),I=a("K2Xj"),E=a("iBNF");let L=(0,T.Z)("div",{target:"etqqn1s0"})(I.M.mbDown,"{:not(.only-menu){margin:0 0 16px 0;padding:24px 0 24px 0;}background-color:",E.r.colors.primary100,";background-size:cover;background-repeat:no-repeat;}"),z=(0,T.Z)("div",{target:"etqqn1s1"})(I.M.mbUp,"{:not(.only-menu){padding:0;min-height:280px;}position:relative;background-color:",E.r.colors.primary100,";background-size:cover;background-repeat:no-repeat;}",I.M.mbDown,"{&.only-menu{padding:18px 0;.menu-wrapper{margin-top:0;}}}"),V=(0,T.Z)("div",{target:"etqqn1s2"})("display:flex;flex-shrink:0;pointer-events:none;user-select:none;position:relative;",I.M.mbDown,"{position:relative;max-width:200px;max-height:200px;display:flex;width:40%;height:100%;aspect-ratio:1;}",I.M.mbUp,"{max-width:280px;max-height:280px;width:100%;height:100%;align-self:flex-end;flex:1;position:absolute;right:15%;bottom:0;object-fit:contain;.home-banner-image{aspect-ratio:1;object-fit:contain !important;object-position:bottom;}}"),P=(0,T.Z)("div",{target:"etqqn1s3"})(I.M.mbDown,"{padding:0 16px;}"),X=(0,T.Z)("div",{target:"etqqn1s4"})("display:flex;width:100%;justify-content:space-between;margin:0 auto;",I.M.tdUp,"{max-width:1170px;gap:16px;padding:16px;margin:8px auto;}",I.M.tdOnly,"{gap:16px;}"),R=(0,T.Z)("a",{target:"etqqn1s5"})("display:flex;padding:16px 3px 0;/* System/z1 (small) */\n\n border-radius:4px;text-decoration:none;",I.M.mbUp,"{align-items:center;gap:16px;flex:1;padding:16px;background:",E.r.colors.neutral50,";}",I.M.mbDown,"{display:flex;flex:1 1 0px;align-items:center;flex-direction:column;gap:9px;}[data-size='p3']{line-height:24px;}&[data-two-column='true']{",I.M.mbDown,"{grid-column-start:1;grid-column-end:3;justify-content:center;}}"),A=(0,T.Z)("img",{target:"etqqn1s6"})("display:block;width:32px;height:32px;",I.M.mbUp,"{width:40px;height:40px;}"),H=(0,T.Z)(h.T,{target:"etqqn1s7"})(I.M.mbDown,"{text-align:center;}",I.M.mbUp,"{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1;text-overflow:ellipsis;}"),D=(0,T.Z)("hr",{target:"etqqn1s8"})("border:none;border-top:2px dashed ",E.r.colors.neutral100,";",I.M.mbDown,"{margin:16px -16px;}",I.M.mbUp,"{max-width:1138px;margin:0 auto;padding:0 16px;}"),HomepageBannerMenu=e=>{let{hasDivider:t=!1}=e,{formatMessage:a}=(0,C.Z)(),{locale:l}=(0,k.h)(),r=(0,N.d)(),s=(0,i.useMemo)(()=>{let e=2;return M.Uv.includes(l)&&(e+=1),o.c.includes(l)&&(e+=1),o.E.includes(l)&&(e+=1),e},[l]);return(0,n.BX)(P,{className:"homepageBannerMenu",children:[(0,n.BX)(X,{className:"menu-wrapper",children:[(0,n.BX)(R,{href:"/categories","data-event-category":"Home Page Nav","data-event-action":"Click","data-event-label":"https://".concat(B.domainLocales[l]).concat(M.sb,"/categories/"),"data-two-column":s%2==1,children:[(0,n.tZ)(A,{src:d.C.getAssetPath("nav-icons/discover.svg")}),(0,n.tZ)(H,{size:r?"n1":"s3",weight:r?"regular":"semiBold",children:a({id:"home.navigator.menuItem.discover",defaultMessage:"Discover"})})]}),M.Uv.includes(l)&&(0,n.BX)(R,{href:"/care","data-event-category":"Home Page Nav","data-event-action":"Click","data-event-label":"https://".concat(B.domainLocales[l]).concat(M.sb,"/care/"),children:[(0,n.tZ)(A,{src:d.C.getAssetPath("nav-icons/care.svg")}),(0,n.tZ)(H,{size:r?"n1":"s3",weight:r?"regular":"semiBold",children:a({id:"home.navigator.menuItem.helloCare",defaultMessage:"Book Doctor"})})]}),(0,n.BX)(R,{href:"https://".concat(B.domainLocales[l]).concat(M.sb,"/health-tools/"),"data-event-category":"Home Page Nav","data-event-action":"Click","data-event-label":"https://".concat(B.domainLocales[l]).concat(M.sb,"/health-tools/"),children:[(0,n.tZ)(A,{src:d.C.getAssetPath("nav-icons/health-tools.svg")}),(0,n.tZ)(H,{size:r?"n1":"s3",weight:r?"regular":"semiBold",children:a({id:"home.navigator.menuItem.healthTools",defaultMessage:"Health Tools"})})]}),o.E.includes(l)&&(0,n.BX)(R,{href:"https://".concat(B.domainLocales[l]).concat(M.sb,"/shop/"),"data-event-category":"Home Page Nav","data-event-action":"Click","data-event-label":"https://".concat(B.domainLocales[l]).concat(M.sb,"/shop/"),children:[(0,n.tZ)(c.I,{disabled:!r,color:"green",label:a({id:"common.new"}),size:20,styles:{indicator:{transform:"translate(100%, -50%) !important",top:"0 !important",right:"0 !important"}},children:(0,n.tZ)(A,{src:d.C.getAssetPath("nav-icons/shop.svg")})}),(0,n.tZ)(c.I,{disabled:r,color:"green",label:a({id:"common.new"}),size:20,styles:{root:{paddingRight:r?0:20}},children:(0,n.tZ)(H,{size:r?"n1":"s3",weight:r?"regular":"semiBold",children:a({id:"home.navigator.menuItem.shop",defaultMessage:"Shop"})})})]}),o.c.includes(l)&&(0,n.BX)(R,{href:"/community","data-event-category":"Home Page Nav","data-event-action":"Click","data-event-label":"https://".concat(B.domainLocales[l],"/community/"),children:[(0,n.tZ)(A,{src:d.C.getAssetPath("nav-icons/community.svg")}),(0,n.tZ)(H,{size:r?"n1":"s3",weight:r?"regular":"semiBold",children:a({id:"home.navigator.menuItem.helloTogether",defaultMessage:"Communities"})})]})]}),t&&(0,n.tZ)(D,{})]})};var homepageBanner=e=>{let{autoplayTime:t=0,banners:a=[],title:d,description:c,image:y,isMobile:C,type:N,ctaUrl:T,ctaText:I}=e,{locale:E}=(0,k.h)(),P=(0,l.j)(T),X=(0,i.useMemo)(()=>a.map(e=>e.url),[a]),R=(0,l.u)(X),A=(0,i.useRef)((0,Z.Z)({delay:1e3*Number(t),stopOnInteraction:!1}));return(0,n.BX)(n.HY,{children:[(0,n.BX)(w(),{children:[(0,n.tZ)("link",{rel:"preload",href:"".concat(M.Nr,"/homepage-banner/banner-bg.svg"),as:"image",fetchPriority:"high"}),!!y&&(0,n.tZ)("link",{rel:"preload",href:y,as:"image",fetchPriority:"high"})]}),(0,n.tZ)(L,{className:(0,m.default)({"only-menu":!d},"homepageBanner"),style:{backgroundImage:C?'url("'.concat(M.Nr,'/homepage-banner/banner-bg.svg")'):"unset"},children:d||"upload"===N?(0,n.BX)(n.HY,{children:["upload"===N?(0,n.tZ)(s.a,{withControls:!1,withIndicators:a.length>1,loop:!0,plugins:t>0?[A.current]:[],styles:e=>({indicator:{width:8,height:8,borderRadius:"50%",border:"1px solid ".concat(e.colors.neutral100),boxShadow:"none",background:"#fff",opacity:1,"&[data-active]":{borderColor:e.fn.primaryColor(),background:e.fn.primaryColor()}}}),children:a.map((e,t)=>{let a=R[t];return(0,n.tZ)(s.a.Slide,{children:(0,n.BX)(p.x,{component:a?"a":"div",href:a,target:e.openNewTab?"_blank":"_self",...a&&{"data-event-category":"Slicing Banners","data-event-action":"Banner Click","data-event-label":a},children:[(0,n.tZ)(u.z,{smallerThan:"sm",styles:{display:"none"},children:(0,n.tZ)(v.o,{ratio:1920/416,children:(0,n.tZ)(S.R,{src:e.desktop,layout:"fill",alt:"",quality:100})},t)}),(0,n.tZ)(u.z,{largerThan:"sm",styles:{display:"none"},children:(0,n.tZ)(v.o,{ratio:375/220,children:(0,n.tZ)(S.R,{src:e.mobile,layout:"fill",alt:"",quality:100})},t)})]})},t)})}):(0,n.tZ)(z,{style:{backgroundImage:C?"unset":'url("'.concat(M.Nr,'/homepage-banner/banner-bg.svg")')},children:(0,n.BX)(f.W,{size:"lg",pt:{lg:24},children:[(0,n.BX)(b.k,{justify:"space-between",align:"center",h:"100%",gap:0,children:[(0,n.BX)(x.K,{spacing:16,maw:600,sx:{flexGrow:1},children:[(0,n.tZ)(h.T,{as:"h1",size:C?"h3":"h2",children:d}),c&&(0,n.tZ)(u.z,{smallerThan:"sm",styles:{display:"none"},children:(0,n.tZ)(h.T,{size:"p2",as:"span",children:(0,n.tZ)("span",{dangerouslySetInnerHTML:{__html:c}})})}),(0,n.tZ)(u.z,{smallerThan:"sm",styles:{display:"none"},children:(0,n.BX)(p.x,{children:[I&&P&&(0,n.tZ)("a",{href:P,target:"_blank",className:"banner_button",children:(0,n.tZ)(g.B,{size:"md",color:"primary",children:I})}),!C&&(null==N?void 0:N.toLowerCase())==="care"&&o.C.includes(E)&&(0,n.tZ)(r.J,{isMobile:C,careApiDomain:M.ENV.NEXT_PUBLIC_CARE_API||"https://service-health-care.hellohealthgroup.com/",careFrontDomain:"/care",geoLocationPermission:"denied",gaTrackingSearchBar:{dataEventAction:"Search Click",dataEventCategory:"Care",dataEventLabel:"https://".concat(B.domainLocales[E]).concat(M.sb,"/")}},String(C))]})})]}),!!y&&(0,n.tZ)(V,{children:(0,n.tZ)(S.R,{src:y,className:"home-banner-image",alt:"",layout:"fill",priority:!0,placeholder:void 0,blurDataURL:void 0})})]}),(0,n.tZ)(u.z,{largerThan:"sm",styles:{display:"none"},children:(0,n.BX)(p.x,{children:[I&&P&&(0,n.tZ)("a",{href:P,target:"_blank",className:"banner_button",children:(0,n.tZ)(g.B,{size:"md",fullWidth:!0,children:I})}),C&&(null==N?void 0:N.toLowerCase())==="care"&&o.C.includes(E)&&(0,n.tZ)(r.J,{isMobile:C,careApiDomain:M.ENV.NEXT_PUBLIC_CARE_API||"https://service-health-care.hellohealthgroup.com/",careFrontDomain:"/care",geoLocationPermission:"denied",gaTrackingSearchBar:{dataEventAction:"Search Click",dataEventCategory:"Care",dataEventLabel:"https://".concat(B.domainLocales[E]).concat(M.sb,"/")}},String(C))]})})]})}),!C&&(0,n.tZ)(HomepageBannerMenu,{hasDivider:!0})]}):(0,n.tZ)(z,{className:"only-menu",children:(0,n.tZ)(HomepageBannerMenu,{})})}),(d||"upload"===N)&&C&&(0,n.tZ)(HomepageBannerMenu,{hasDivider:!0})]})}},N3Xi:function(e,t,a){a.d(t,{s:function(){return HospitalServiceCard}});var n=a("BGKE"),i=a("JfIY"),l=a("lj0A"),r=a("ZQ3V"),o=a("TSYQ"),d=a.n(o),c=a("YdJN"),s=a.n(c),h=a("hXNO"),g=a("rIrU"),m=a("Jpic"),p=a("P5LW"),u=a("rEaw"),v=a("nxPU"),f=a("iAbL"),b=a("dDsW");let ChipShortInfo=e=>{let{value:t}=e,{formatMessage:a}=(0,b.Z)();return(0,n.tZ)("div",{className:"bg-green600 rounded-[4px] px-[5px] py-[1.5px] whitespace-nowrap",children:(0,n.BX)(r.T,{size:"subText",color:"white",fw:500,className:"!leading-4",sx:{fontSize:"10px",lineHeight:"16px"},children:[a({id:"home.hospitalServiceCard.save",defaultMessage:"Save"})," ","".concat(t,"%")]})})},PriceItem=e=>{let{price:t,discountPrice:a,percentageDiscount:i,currency:l}=e,{currentPrice:o}=(0,m.$)({price:t,discountPrice:a}),d=(0,h.d)(),{locale:c}=(0,p.h)();return(0,n.BX)("div",{children:[(0,n.BX)("div",{className:"flex items-center gap-1",children:[(0,n.tZ)(r.T,{size:d?"p3":"title2",color:"gray1000",fw:600,children:c===u.MV.Malaysia?(0,f.QG)(a||t,l):o}),null!=i&&i>0&&(0,n.tZ)(ChipShortInfo,{value:Math.round(i)})]}),null!=i&&i>0&&(0,n.tZ)(r.T,{className:"hospital-service-card-original-price",size:d?"c2":"c1",color:"gray400",fw:400,children:c===u.MV.Malaysia?(0,f.QG)(t,l):(0,f.OH)(t,c,v.MB[c]||"VND")})]})},HospitalServiceCard=e=>{var t;let{name:a,display_name:o,price:c,price_discount:m,percent_discount:p,total_rating:u,avg_rating:v,organization:f,handleClick:b,logo:x,banner:Z,currency:y,isShowDivider:w=!1}=e,C=(0,h.d)(),S=x||Z||(null==f?void 0:f.logo)||g.YS;return(0,n.BX)("div",{className:"hospital-service-card-root flex flex-col gap-2 md:gap-4 cursor-pointer w-[160px] md:w-[264px]",onClick:b,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),null==b||b())},role:"button",tabIndex:0,children:[(0,n.tZ)("div",{className:"shrink-0 h-[160px] md:h-[254px] hospital-service-card-container-image",children:(0,n.tZ)(i.I,{alt:a,src:S,width:264,height:254,className:"rounded-[4px] md:rounded-lg w-full h-full object-contain hospital-service-card-image"})}),(0,n.BX)("div",{className:"flex flex-col gap-2",children:[(0,n.BX)("div",{className:"flex flex-col gap-1",children:[(0,n.tZ)(r.T,{size:C?"p3":"title2",fw:600,color:"gray1000",lineClamp:2,children:o||a}),null!=v&&null!=u&&(0,n.BX)("div",{className:"flex items-center gap-1",children:[(0,n.tZ)(s(),{className:"text-yellow600 w-4 h-4"}),(0,n.tZ)(r.T,{className:"hospital-service-card-avg-rating",size:"c1",fw:500,color:"gray700",children:null===(t=Number(v))||void 0===t?void 0:t.toFixed(1)}),null!=u&&(0,n.BX)(r.T,{className:"hospital-service-card-total-rating",size:"c1",fw:500,color:"gray700",children:["(",(0,l.a)(u),u>1e3?"+":"",")"]})]})]}),(0,n.tZ)(PriceItem,{price:c,discountPrice:m,percentageDiscount:p,currency:y}),(null==f?void 0:f.name)&&(0,n.BX)("div",{className:d()("flex gap-2 py-2 items-center",w&&"border-solid border-t border-neutral100"),children:[(0,n.tZ)(i.I,{alt:null==f?void 0:f.name,src:(null==f?void 0:f.logo)||g.YS,width:24,height:24,className:"rounded-[4px] object-contain w-[24px] h-[24px] md:w-[28px] md:h-[28px]"}),(0,n.tZ)(r.T,{className:"hospital-service-card-organization-name",size:"c1",fw:500,color:"gray1000",lineClamp:3,children:null==f?void 0:f.name})]})]})]})}},"LpP+":function(e,t,a){a.r(t),a.d(t,{default:function(){return IdlePopupWrapper}});var n=a("BGKE"),i=a("q1tI"),l=a("ZQ3V"),r=a("p3w3"),o=a("q9DY"),d=a("kfjY"),c=a("Eso5"),s=a("OAL+"),h=a("mYVa"),g=a("SPK5"),m=a("Iblh"),p=a("3/P/"),u=a("i8i4"),v=a("Jbia"),f=a("i2MM"),b=(0,a("/npG").k)((e,t)=>{let{desktopImage:a,mobileImage:n,backgroundColor:i}=t;return{root:{position:"fixed",zIndex:v.Z-1,backgroundImage:"url(".concat(n||f.C.getAssetPath("sc-pages/idea-bg-mobile.svg"),")"),backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"right center",backgroundColor:i||"#284A75",overflow:"hidden",padding:(0,h.h)(24),[e.fn.smallerThan("sm")]:{borderTopLeftRadius:(0,h.h)(8),borderTopRightRadius:(0,h.h)(8),bottom:0,right:0,left:0},[e.fn.largerThan("sm")]:{backgroundImage:"url(".concat(a||f.C.getAssetPath("sc-pages/idea-bg.svg"),")"),bottom:0,right:0,minWidth:(0,h.h)(600),maxWidth:(0,h.h)(744),borderTopLeftRadius:(0,h.h)(16)}},heading:{[e.fn.smallerThan("sm")]:{maxWidth:(0,h.h)(240)}},info:{maxWidth:"70%",[e.fn.smallerThan("sm")]:{gap:(0,h.h)(16),maxWidth:(0,h.h)(270)}},actions:{gap:(0,h.h)(12),[e.fn.smallerThan("sm")]:{flexDirection:"column",justifyContent:"stretch",gap:(0,h.h)(8),button:{width:"100%"}}}}}),x=(0,i.forwardRef)((e,t)=>{let{title:a,backgroundColor:v,buttonColor:f,titleColor:x,desktopImage:Z,mobileImage:y,listItems:w=[],idleTime:C=30,onItemClick:S,styles:B,classNames:N,ctaBtn1:k,ctaBtn2:M,...T}=e,{classes:I}=b({backgroundColor:v,desktopImage:Z,mobileImage:y},{name:"IdlePopup",styles:B,classNames:N}),E=(0,p.c)(1e3*C,{initialState:!1}),[L,{open:z,close:V}]=(0,m.q)(!1),[P,X]=(0,i.useState)(!1),R=[k,M];return(0,i.useImperativeHandle)(t,()=>({close:V,stopTracking:function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return X(e)}})),(0,i.useEffect)(()=>{document.body.click()},[]),(0,i.useEffect)(()=>{P||!E||L||z()},[E,L,P]),a&&w.length>0?(0,u.createPortal)((0,n.tZ)(d.u,{mounted:L,transition:"slide-up",duration:400,timingFunction:"ease",children:e=>(0,n.BX)(c.x,{className:I.root,...T,style:e,children:[(0,n.BX)(s.K,{className:I.info,spacing:(0,h.h)(24),children:[(0,n.tZ)(l.T,{size:"h3",color:x||"#fff",className:I.heading,children:a}),(0,n.tZ)(g.k,{className:I.actions,children:w.map((e,t)=>{let a=R[t],i=null==a?void 0:a.label,l=null==a?void 0:a.url,o=i&&l;return(0,n.tZ)(r.B,{variant:0===t?"primary":"light",color:f||"#FC7419",onClick:()=>{o?l.startsWith("#")?window.location.href=l:window.open(l):null==S||S(e.hash),V()},...e.btnTracking,...o&&{dataEventAction:"".concat(i," - Idle popup"),dataEventLabel:l},styles:e=>({root:{height:"auto !important",paddingTop:(0,h.h)(8),paddingBottom:(0,h.h)(8),[e.fn.smallerThan("sm")]:{paddingLeft:(0,h.h)(16),paddingRight:(0,h.h)(16)}},label:{whiteSpace:"normal"}}),children:o?i:e.title},String(t))})})]}),(0,n.tZ)(c.x,{onClick:()=>V(),sx:{position:"absolute",right:12,top:12,cursor:"pointer",backgroundColor:"#fff",borderRadius:"50%",width:40,height:40,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,n.tZ)(o.Z,{size:20})})]})}),document.body):null});function IdlePopupWrapper(e){let{popupRef:t,...a}=e;return(0,n.tZ)(x,{...a,ref:t})}}}]);