(self.webpackChunkhhgDiscoverV1=self.webpackChunkhhgDiscoverV1||[]).push([[6124],{jVuW:function(e,t,r){"use strict";r.d(t,{E:function(){return AppLink}});var n=r("BGKE"),i=r("TSYQ"),a=r.n(i),l=r("/zZM"),o=r.n(l),c=r("NLe/");let AppLink=e=>{let{href:t,asComponent:r="div",children:i,className:l,...s}=e,u=(0,c.A3)(t),d=t?u?"a":o():r,h=t?{href:t,...s}:{...s};return(0,n.Y)(d,{className:a()(l),...h,children:i})}},pqUD:function(e,t,r){"use strict";r.d(t,{B:function(){return NextImageWrap}});var n=r("BGKE");r("+OUp");var i=r("aG+K"),a=r.n(i),l=r("E0Fa");let NextImageWrap=e=>{let{style:t,...r}=e;return(0,n.Y)(a(),{loader:l.A,style:{objectFit:"cover",...t},...r})}},oWGZ:function(e,t,r){"use strict";var n=r("BGKE"),i=r("+OUp");let a=(0,i.forwardRef)((e,t)=>(0,n.FD)("svg",{width:"1em",height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,n.Y)("mask",{id:"a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:19,height:18,children:(0,n.Y)("path",{fill:"currentColor",d:"M.5 0h18v18H.5z"})}),(0,n.Y)("g",{mask:"url(#a)",children:(0,n.Y)("path",{d:"m7.663 11.637 6.478-6.48a.556.556 0 0 1 .802 0q.175.175.175.402a.55.55 0 0 1-.175.4l-6.806 6.807a.65.65 0 0 1-.474.203.65.65 0 0 1-.475-.203L4.057 9.635a.54.54 0 0 1-.165-.398.56.56 0 0 1 .176-.404.55.55 0 0 1 .401-.175q.227 0 .401.175z",fill:"currentColor"})})]}));t.A=a},mx14:function(e,t,r){"use strict";var n=r("BGKE"),i=r("+OUp");let a=(0,i.forwardRef)((e,t)=>(0,n.Y)("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,n.Y)("path",{d:"m8.712 10 3.394 3.394q.172.173.177.435a.6.6 0 0 1-.177.443.6.6 0 0 1-.44.181.6.6 0 0 1-.438-.18l-3.745-3.746A.7.7 0 0 1 7.27 10q0-.15.048-.28a.7.7 0 0 1 .165-.247l3.745-3.745a.6.6 0 0 1 .435-.177.6.6 0 0 1 .443.177q.18.18.181.439 0 .258-.181.439z"})}));t.A=a},bxHT:function(e,t,r){"use strict";var n=r("BGKE"),i=r("+OUp");let a=(0,i.forwardRef)((e,t)=>(0,n.Y)("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,n.Y)("path",{d:"m11.288 10-3.394 3.394a.6.6 0 0 0-.177.435.6.6 0 0 0 .177.443q.18.181.439.181.258 0 .44-.18l3.744-3.746A.7.7 0 0 0 12.73 10q0-.15-.048-.28a.7.7 0 0 0-.165-.247L8.772 5.728a.6.6 0 0 0-.435-.177.6.6 0 0 0-.443.177.6.6 0 0 0-.181.439q0 .258.181.439z"})}));t.A=a},TwxO:function(e,t,r){"use strict";var n=r("BGKE"),i=r("+OUp");let a=(0,i.forwardRef)((e,t)=>(0,n.Y)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,n.Y)("path",{d:"M12 16.5115L16.073 12.4537C16.2115 12.3154 16.383 12.242 16.5875 12.2337C16.792 12.2254 16.9718 12.2987 17.127 12.4537C17.2718 12.5987 17.3442 12.7744 17.3442 12.9807C17.3442 13.187 17.2718 13.3627 17.127 13.5077L12.6327 18.002C12.5391 18.0955 12.4403 18.1615 12.3365 18.2C12.2326 18.2385 12.1205 18.2577 12 18.2577C11.8795 18.2577 11.7673 18.2385 11.6635 18.2C11.5596 18.1615 11.4609 18.0955 11.3672 18.002L6.87298 13.5077C6.73465 13.3692 6.66131 13.1977 6.65298 12.9932C6.64465 12.7887 6.71798 12.6089 6.87298 12.4537C7.01798 12.3089 7.19365 12.2365 7.39998 12.2365C7.60632 12.2365 7.78198 12.3089 7.92698 12.4537L12 16.5115ZM12 10.5307L16.073 6.47296C16.2115 6.33462 16.383 6.26129 16.5875 6.25296C16.792 6.24462 16.9718 6.31796 17.127 6.47296C17.2718 6.61796 17.3442 6.79362 17.3442 6.99996C17.3442 7.20629 17.2718 7.38196 17.127 7.52696L12.6327 12.0212C12.5391 12.1147 12.4403 12.1807 12.3365 12.2192C12.2326 12.2577 12.1205 12.277 12 12.277C11.8795 12.277 11.7673 12.2577 11.6635 12.2192C11.5596 12.1807 11.4609 12.1147 11.3672 12.0212L6.87298 7.52696C6.73465 7.38846 6.66131 7.21696 6.65298 7.01246C6.64465 6.80796 6.71798 6.62812 6.87298 6.47296C7.01798 6.32812 7.19365 6.25571 7.39998 6.25571C7.60632 6.25571 7.78198 6.32812 7.92698 6.47296L12 10.5307Z",fill:"currentColor"})}));t.A=a},UBf0:function(e,t,r){"use strict";r.d(t,{ED:function(){return l},Xn:function(){return o.A},Oi:function(){return c.A},zf:function(){return u},aZ:function(){return h},U5:function(){return m}});var n=r("BGKE"),i=r("+OUp");let a=(0,i.forwardRef)((e,t)=>(0,n.FD)("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,n.FD)("g",{clipPath:"url(#clip0_161_9843)",children:[(0,n.Y)("path",{d:"M10.9998 13.3333H4.6665C5.0298 13.1276 5.33971 12.8395 5.5713 12.4921C5.80288 12.1447 5.94967 11.7478 5.99984 11.3333V9.33333C6.03954 8.48738 6.3087 7.66818 6.77847 6.96353C7.24824 6.25888 7.9009 5.69535 8.6665 5.33333C8.6665 4.97971 8.80698 4.64057 9.05703 4.39052C9.30708 4.14048 9.64622 4 9.99984 4C10.3535 4 10.6926 4.14048 10.9426 4.39052C11.1927 4.64057 11.3332 4.97971 11.3332 5.33333C12.0988 5.69535 12.7514 6.25888 13.2212 6.96353C13.691 7.66818 13.9601 8.48738 13.9998 9.33333V10",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.Y)("path",{d:"M8 13.3335V14.0002C7.99999 14.3427 8.08799 14.6796 8.25554 14.9784C8.4231 15.2772 8.66461 15.528 8.95691 15.7067C9.24921 15.8853 9.58251 15.9859 9.92485 15.9988C10.2672 16.0117 10.6071 15.9364 10.912 15.7802",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.Y)("path",{d:"M14.6668 12.6667L13.3335 14.6667H16.0002L14.6668 16.6667",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,n.Y)("defs",{children:(0,n.Y)("clipPath",{id:"clip0_161_9843",children:(0,n.Y)("rect",{width:16,height:16,fill:"white",transform:"translate(2 2)"})})})]}));var l=a;r("Z51S"),r("JnH1"),r("oWGZ");var o=r("mx14"),c=r("bxHT");r("TwxO");let s=(0,i.forwardRef)((e,t)=>(0,n.FD)("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,n.Y)("path",{d:"M6.59503 4.05298L5.73858 3.7678L5.45249 2.91042C5.36015 2.63338 4.90114 2.63338 4.8088 2.91042L4.52271 3.7678L3.66627 4.05298C3.52775 4.09916 3.43359 4.22862 3.43359 4.37529C3.43359 4.52196 3.52775 4.65143 3.66627 4.6976L4.52271 4.98279L4.8088 5.84017C4.85497 5.97869 4.98444 6.07194 5.13019 6.07194C5.27595 6.07194 5.40632 5.97778 5.45159 5.84017L5.73768 4.98279L6.59412 4.6976C6.73264 4.65143 6.8268 4.52196 6.8268 4.37529C6.8268 4.22862 6.73355 4.09916 6.59503 4.05298Z",fill:"none"}),(0,n.Y)("path",{d:"M14.4954 10.6041L17.0131 8.14965L12.4774 7.49145L10.4494 3.3811L8.42148 7.49145L3.88574 8.14965L7.16759 11.3492L6.39262 15.866L10.3263 13.7982",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),(0,n.Y)("path",{d:"M16.0236 14.0102L14.8802 13.629L14.499 12.4855C14.375 12.1161 13.7639 12.1161 13.6399 12.4855L13.2587 13.629L12.1153 14.0102C11.9306 14.0717 11.8057 14.2447 11.8057 14.4393C11.8057 14.634 11.9306 14.8069 12.1153 14.8684L13.2587 15.2496L13.6399 16.3931C13.7014 16.5778 13.8753 16.7027 14.0699 16.7027C14.2646 16.7027 14.4375 16.5778 14.4999 16.3931L14.8811 15.2496L16.0245 14.8684C16.2092 14.8069 16.3342 14.634 16.3342 14.4393C16.3342 14.2447 16.2092 14.0717 16.0245 14.0102H16.0236Z",fill:"currentColor"}),(0,n.Y)("path",{d:"M15.2024 5.41835C15.5774 5.41835 15.8814 5.11434 15.8814 4.73932C15.8814 4.36431 15.5774 4.0603 15.2024 4.0603C14.8274 4.0603 14.5234 4.36431 14.5234 4.73932C14.5234 5.11434 14.8274 5.41835 15.2024 5.41835Z",fill:"currentColor"})]}));var u=s;let d=(0,i.forwardRef)((e,t)=>(0,n.FD)("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[(0,n.Y)("mask",{id:"a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:21,height:20,children:(0,n.Y)("path",{fill:"currentColor",d:"M.75 0h20v20h-20z"})}),(0,n.Y)("g",{mask:"url(#a)"}),(0,n.Y)("path",{d:"M11 16.444a2.45 2.45 0 0 0 2.445-2.452C13.445 12.129 11 10 11 10s-2.444 2.13-2.444 3.992A2.45 2.45 0 0 0 11 16.444",stroke:"currentColor",strokeWidth:1.333,strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.Y)("path",{d:"M11 16.445c2.7 0 4.89-2.196 4.89-4.904 0-3.726-4.89-7.985-4.89-7.985s-4.889 4.26-4.889 7.985a4.897 4.897 0 0 0 4.89 4.904",stroke:"currentColor",strokeWidth:1.333,strokeLinecap:"round",strokeLinejoin:"round"})]}));var h=d;let f=(0,i.forwardRef)((e,t)=>(0,n.Y)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:(0,n.Y)("path",{d:"M12 13.4693L7.92701 17.527C7.78851 17.6654 7.61701 17.7387 7.41251 17.747C7.20801 17.7554 7.02818 17.682 6.87301 17.527C6.72818 17.382 6.65576 17.2064 6.65576 17C6.65576 16.7937 6.72818 16.618 6.87301 16.473L11.3673 11.9788C11.4609 11.8853 11.5597 11.8193 11.6635 11.7808C11.7673 11.7423 11.8795 11.723 12 11.723C12.1205 11.723 12.2327 11.7423 12.3365 11.7808C12.4403 11.8193 12.5391 11.8853 12.6328 11.9788L17.127 16.473C17.2653 16.6115 17.3387 16.783 17.347 16.9875C17.3553 17.192 17.282 17.3719 17.127 17.527C16.982 17.6719 16.8063 17.7443 16.6 17.7443C16.3937 17.7443 16.218 17.6719 16.073 17.527L12 13.4693ZM12 7.46927L7.92701 11.527C7.78851 11.6654 7.61701 11.7387 7.41251 11.747C7.20801 11.7554 7.02818 11.682 6.87301 11.527C6.72818 11.382 6.65576 11.2064 6.65576 11C6.65576 10.7937 6.72818 10.618 6.87301 10.473L11.3673 5.97877C11.4609 5.88527 11.5597 5.81927 11.6635 5.78077C11.7673 5.74227 11.8795 5.72302 12 5.72302C12.1205 5.72302 12.2327 5.74227 12.3365 5.78077C12.4403 5.81927 12.5391 5.88527 12.6328 5.97877L17.127 10.473C17.2653 10.6115 17.3387 10.783 17.347 10.9875C17.3553 11.192 17.282 11.3719 17.127 11.527C16.982 11.6719 16.8063 11.7443 16.6 11.7443C16.3937 11.7443 16.218 11.6719 16.073 11.527L12 7.46927Z",fill:"currentColor"})}));var m=f},M6BS:function(e,t,r){"use strict";r.d(t,{k:function(){return HomePageCarouselWrapper}});var n=r("BGKE"),i=r("+OUp"),a=r.n(i),l=r("P+HS"),o=r("AJQa"),c=r("TSYQ"),s=r.n(c),u=r("dDsW"),d=r("tYvc"),h=r.n(d),f=r("jVuW"),m=r("UBf0"),p=r("a5L+");let HomePageCarouselWrapper=e=>{let{children:t,sectionName:r,classes:c,showControls:d=!0,showAllLink:v,asTitle:g="h2",dataTracking:C,carouselProps:w,disableItemCountCheck:L=!1}=e,{root:x,rootContainer:y,titleAndControls:N,body:Y}=c||{},{formatMessage:S}=(0,u.A)(),E=(0,p.a)(),[k,M]=(0,i.useState)(null),[A,D]=(0,i.useState)(!1),[b,I]=(0,i.useState)(!1),T=a().Children.count(t);(0,i.useEffect)(()=>{if(!k)return;let updateScrollState=()=>{D(k.canScrollPrev()),I(k.canScrollNext())};return updateScrollState(),k.on("select",updateScrollState),k.on("reInit",updateScrollState),()=>{k.off("select",updateScrollState),k.off("reInit",updateScrollState)}},[k]);let F=(0,n.FD)(n.FK,{children:[(0,n.Y)(l.Text,{size:E?"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:r.id,defaultMessage:r.defaultMessage})}),v&&(0,n.Y)(h(),{width:20,height:20,className:"shrink-0"})]});return(0,n.Y)("div",{className:s()(x),children:(0,n.FD)("div",{className:s()("flex flex-col gap-[20px]",y),children:[(0,n.FD)("div",{className:s()("flex items-center justify-between w-full",N),children:[(0,n.Y)(g,{className:"min-w-0",children:v?(0,n.Y)(f.E,{href:v,className:"flex items-center gap-1 md:gap-4 min-w-0 cursor-pointer","data-event-category":null==C?void 0:C.dataEventCategory,"data-event-action":null==C?void 0:C.dataEventAction,"data-event-label":null==C?void 0:C.dataEventLabel,children:F}):(0,n.Y)("div",{className:"flex items-center gap-1 md:gap-4 min-w-0","data-event-category":null==C?void 0:C.dataEventCategory,"data-event-action":null==C?void 0:C.dataEventAction,"data-event-label":null==C?void 0:C.dataEventLabel,children:F})}),!E&&d&&(L||T>4)&&(0,n.FD)("div",{className:"flex items-center gap-2",children:[(0,n.Y)("button",{className:s()("w-[48px] h-[48px] rounded-full flex items-center justify-center",A?"bg-neutral50 cursor-pointer":"bg-neutral100 cursor-not-allowed opacity-50"),onClick:()=>{null==k||k.scrollPrev()},disabled:!A,children:(0,n.Y)(m.Xn,{width:24,height:24})}),(0,n.Y)("button",{className:s()("w-[48px] h-[48px] rounded-full flex items-center justify-center",b?"bg-neutral50 cursor-pointer":"bg-neutral100 cursor-not-allowed opacity-50"),onClick:()=>{null==k||k.scrollNext()},disabled:!b,children:(0,n.Y)(m.Oi,{width:24,height:24})})]})]}),(0,n.Y)("div",{className:s()(Y),children:(0,n.Y)(o.F,{withControls:!1,withIndicators:!1,getEmblaApi:M,slideGap:E?12:24,slideSize:"25%",align:"start",containScroll:"trimSnaps",...w,children:t})})]})})}},IMEc:function(e,t,r){"use strict";r.d(t,{U:function(){return HospitalServiceCard}});var n=r("BGKE"),i=r("bAY6"),a=r("Vsct"),l=r("P+HS"),o=r("TSYQ"),c=r.n(o),s=r("YdJN"),u=r.n(s),d=r("a5L+"),h=r("9brV"),f=r("+OUp"),m=r("dDsW"),p=r("AG8C"),v=r("lK07"),g=r("m9eq");let useCurrencyFormatter=e=>{let{price:t,discountPrice:r}=e,{locale:n}=(0,p.$)(),{formatMessage:i}=(0,m.A)(),a=(0,f.useMemo)(()=>{let e=r||t,i=(0,g.N8)(e||0,n,v.J3[n]||"VND");return i},[t,r,n,i]);return{currentPrice:a}};var C=r("iZSu");let ChipShortInfo=e=>{let{value:t}=e,{formatMessage:r}=(0,m.A)();return(0,n.Y)("div",{className:"bg-green600 rounded-[4px] px-[5px] py-[1.5px] whitespace-nowrap",children:(0,n.FD)(l.Text,{size:"subText",color:"white",fw:500,className:"!leading-4",sx:{fontSize:"10px",lineHeight:"16px"},children:[r({id:"home.hospitalServiceCard.save",defaultMessage:"Save"})," ","".concat(t,"%")]})})},PriceItem=e=>{let{price:t,discountPrice:r,percentageDiscount:i,currency:a}=e,{currentPrice:o}=useCurrencyFormatter({price:t,discountPrice:r}),c=(0,d.a)(),{locale:s}=(0,p.$)(),u=s===C.ne.Malaysia;return(0,n.FD)("div",{children:[(0,n.FD)("div",{className:"flex items-center gap-1",children:[(0,n.Y)(l.Text,{size:c?"p3":"title2",color:"gray1000",fw:600,children:s===C.ne.Malaysia?(0,g.m$)(r||t,a):o}),null!=i&&i>0&&!u&&(0,n.Y)(ChipShortInfo,{value:Math.round(i)})]}),null!=i&&i>0&&!u&&(0,n.Y)(l.Text,{className:"hospital-service-card-original-price",size:c?"c2":"c1",color:"gray400",fw:400,children:(0,g.N8)(t,s,v.J3[s]||"VND")})]})},HospitalServiceCard=e=>{var t;let{name:r,display_name:o,price:s,price_discount:f,percent_discount:m,total_rating:p,avg_rating:v,organization:g,handleClick:C,logo:w,banner:L,currency:x,isShowDivider:y=!1}=e,N=(0,d.a)(),Y=w||L||(null==g?void 0:g.logo)||h.I6;return(0,n.FD)("div",{className:"hospital-service-card-root flex flex-col gap-2 md:gap-4 cursor-pointer w-[160px] md:w-[264px]",onClick:C,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),null==C||C())},role:"button",tabIndex:0,children:[(0,n.Y)("div",{className:"shrink-0 h-[160px] md:h-[254px] hospital-service-card-container-image",children:(0,n.Y)(i.I,{alt:r,src:Y,width:264,height:254,className:"rounded-[4px] md:rounded-lg w-full h-full object-contain hospital-service-card-image"})}),(0,n.FD)("div",{className:"flex flex-col gap-2",children:[(0,n.FD)("div",{className:"flex flex-col gap-1",children:[(0,n.Y)(l.Text,{size:N?"p3":"title2",fw:600,color:"gray1000",lineClamp:2,children:o||r}),null!=v&&null!=p&&(0,n.FD)("div",{className:"flex items-center gap-1",children:[(0,n.Y)(u(),{className:"text-yellow600 w-4 h-4"}),(0,n.Y)(l.Text,{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!=p&&(0,n.FD)(l.Text,{className:"hospital-service-card-total-rating",size:"c1",fw:500,color:"gray700",children:["(",(0,a.a)(p),p>1e3?"+":"",")"]})]})]}),(0,n.Y)(PriceItem,{price:s,discountPrice:f,percentageDiscount:m,currency:x}),(null==g?void 0:g.name)&&(0,n.FD)("div",{className:c()("flex gap-2 py-2 items-center",y&&"border-solid border-t border-neutral100"),children:[(0,n.Y)(i.I,{alt:null==g?void 0:g.name,src:(null==g?void 0:g.logo)||h.I6,width:24,height:24,className:"rounded-[4px] object-contain w-[24px] h-[24px] md:w-[28px] md:h-[28px]"}),(0,n.Y)(l.Text,{className:"hospital-service-card-organization-name",size:"c1",fw:500,color:"gray1000",lineClamp:3,children:null==g?void 0:g.name})]})]})]})}},gND3:function(e,t,r){"use strict";r.d(t,{B:function(){return HospitalServiceSection}});var n=r("BGKE"),i=r("+u84"),a=r("AJQa"),l=r("jVuW"),o=r("M6BS"),c=r("IMEc"),s=r("AG8C"),u=r("NLe/");let HospitalServiceSection=e=>{let{services:t,serviceType:r,sectionName:d,classes:h,showAllLink:f,asTitle:m,carouselProps:p,CustomCard:v}=e,{locale:g}=(0,s.$)();if(!(null==t?void 0:t.length))return null;let getServiceUrl=(e,t)=>{let n=(0,u.WZ)(r||i.s[t],g);return"".concat(n).concat(e.slug,"-").concat(e.listing_id)};return(0,n.Y)(o.k,{sectionName:d,asTitle:m,classes:h,showAllLink:f,carouselProps:p,children:null==t?void 0:t.map(e=>(0,n.Y)(a.F.Slide,{children:(0,n.Y)(l.E,{href:getServiceUrl(e,null==e?void 0:e.produtc_type),children:v?(0,n.Y)(v,{...e}):(0,n.Y)(c.U,{...e})})},e.listing_id))})}},E0Fa:function(e,t,r){"use strict";function myImageLoader(e){let{src:t="",width:r,quality:n}=e;return t.includes("?")?"".concat(t,"&w=").concat(r,"&q=").concat(n||75):"".concat(t,"?w=").concat(r,"&q=").concat(n||75)}r.d(t,{A:function(){return myImageLoader}})},mdEm:function(e,t,r){"use strict";r.d(t,{CD:function(){return s},Qh:function(){return getActivityLevelList},_8:function(){return getActivityLevelShortLabel},e4:function(){return a},vL:function(){return l},zY:function(){return c}});var n,i,a,l,o=r("Wbba");(n=a||(a={})).DUE_DATE="due-date-calculator",n.BMI="bmi",n.BMR="bmr",n.OVULATION="ovulation",n.IFRAME="IFRAME",n.PWG="pregnancy-weight-gain",n.THR="heart-rate",n.BABY_VACCINE="vaccination-tool",n.BABY_GROWTH="baby-growth-tracking",n.BABY_POOP="baby-poop-checking",n.AIR_POPULATION="air-population-tool";let c={DUE_DATE:"due-date-calculator",BMI:"bmi",BMR:"bmr",OVULATION:"ovulation",IFRAME:"IFRAME",PWG:"pregnancy-weight-gain",THR:"heart-rate",BABY_VACCINE:"vaccination-tool",BABY_GROWTH:"baby-growth-tracking",BABY_POOP:"baby-poop-checking"};(i=l||(l={})).LOW_INTENSITY="low_intensity",i.MODERATE_INTENSITY="moderate_intensity",i.AEROBIC_INTENSITY="aerobic_intensity",i.VIGOROUS_INTENSITY="vigorous_intensity",i.MAXIMUM_INTENSITY="maximum_intensity";let getActivityLevelShortLabel=(e,t)=>{let r={low_intensity:t({id:"activityLevel.noExerciseShort"}),moderate_intensity:t({id:"activityLevel.oneThreeDaysShort"}),aerobic_intensity:t({id:"activityLevel.threeFiveDaysShort"}),vigorous_intensity:t({id:"activityLevel.sixSevenDaysShort"}),maximum_intensity:t({id:"activityLevel.routineShort"})};return r[e]||""},getActivityLevelList=e=>[{label:e({id:"activityLevel.noExercise",defaultMessage:"Little to no exercise"}),value:"low_intensity",point:1.2},{label:e({id:"activityLevel.oneThreeDays",defaultMessage:"Light exercise 1–3 days a week"}),value:"moderate_intensity",point:1.375},{label:e({id:"activityLevel.threeFiveDays",defaultMessage:"Medium exercise 3–5 days a week"}),value:"aerobic_intensity",point:1.55},{label:e({id:"activityLevel.sixSevenDays",defaultMessage:"Hard exercise 6–7 days a week"}),value:"vigorous_intensity",point:1.725},{label:e({id:"activityLevel.routine",defaultMessage:"Challenging exercise routine"}),value:"maximum_intensity",point:1.9}];c.DUE_DATE,o.C.getAssetPath("health-tools/due-date-icon.svg");let s="additional_questions"},lK07:function(e,t,r){"use strict";r.d(t,{J3:function(){return a},k4:function(){return i},yT:function(){return n}});let n={"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},i={"ms-MY":"Rm"},a={"vi-VN":"VND","id-ID":"IDR","ms-MY":"MYR","km-KH":"KHR","en-PH":"PHP","th-TH":"THB","my-MM":"MMK","zh-TW":"TWD","hi-IN":"INR","tl-PH":"PHP","zh-SG":"SGD"}},m9eq:function(e,t,r){"use strict";r.d(t,{N8:function(){return currencyFormat},O9:function(){return isDefined},m$:function(){return currencyFormatMalaysia}});var n=r("iZSu"),i=r("lK07");function isDefined(e){return null!=e}function currencyFormat(e,t,r){return e&&t?new Intl.NumberFormat(t,{style:"currency",currency:r}).format(Number(e)):"0 ".concat(i.yT["vi-VN"]||"")}function currencyFormatMalaysia(e,t){if(!e)return"".concat(i.k4[n.ne.Malaysia]||"","0");let r=new Intl.NumberFormat(n.ne.Malaysia,{minimumFractionDigits:0,maximumFractionDigits:0}).format(Number(e));return"".concat(t||i.k4[n.ne.Malaysia]).concat(r)}},"69Ac":function(e,t,r){"use strict";r.d(t,{OF:function(){return cleanLink},fQ:function(){return normalizeText},jt:function(){return wrapPlainTextAsHtmlParagraph}}),r("/sjq");let escapeHtml=e=>e.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""),wrapPlainTextAsHtmlParagraph=e=>"
".concat(escapeHtml(e.trim()),"
");function cleanLink(e){return e.split("?")[0].split("/").filter((e,t)=>0===t||!!e).join("/")+"/"}function normalizeText(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim()}},"NLe/":function(e,t,r){"use strict";r.d(t,{A3:function(){return isCareLink},Ny:function(){return formatUrlWithEncrypedGa},UQ:function(){return configCdnImageSize},WZ:function(){return getDetailPageUrl}});var n=r("+u84"),i=r("9brV");function formatUrlWithEncrypedGa(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!r||!t.startsWith("http")||!r)return t;try{e=new URL(t)}catch(e){return t}return e.searchParams.set("hhgclid",r),e.toString()}function configCdnImageSize(e,t){if(function(e,t){try{return new URL(e,void 0),!0}catch(e){return!1}}(e)){let r=window.devicePixelRatio||1,n=new URL(e);n.searchParams.set("w",(t.width*r).toString());let i=RegExp("-\\d+x\\d+(?=\\.\\w+$)","g"),a=n.pathname.replace(i,"");return"".concat(n.origin).concat(a).concat(n.search)}return e}let a={[n.r.VACCINE]:"VACCINATIONS",[n.r.IVF]:"IVF",[n.r.EGG_FREEZING]:"EGG_FREEZING",[n.r.HEALTH_SCREENER]:"HEALTH_SCREENER"},getDetailPageUrl=function(e,t){var r;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.U2;if(!t)return i.Jp;let l=a[e],o=null===(r=i.ix[t])||void 0===r?void 0:r[l];return o?"/".concat(n).concat("vi-VN"===t?"/dich-vu":"","/").concat(o,"/"):i.Jp};function isCareLink(e){if(!e)return!1;let t=function(e){if(!e)return"";try{let t=new URL(e);return t.pathname}catch(r){let[t]=e.split("?")[0].split("#");return t}}(e);return t.startsWith("/care/")}},tYvc:function(e,t,r){var n=r("+OUp");function ChevronRightCustom(e){return n.createElement("svg",e,n.createElement("path",{d:"M7.5 5L12.5 10L7.5 15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))}ChevronRightCustom.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.exports=ChevronRightCustom,ChevronRightCustom.default=ChevronRightCustom},YdJN:function(e,t,r){var n=r("+OUp");function StartDefault(e){return n.createElement("svg",e,n.createElement("path",{d:"M7.99999 1.55554L9.9911 5.59021L14.4444 6.23732L11.2222 9.37865L11.9831 13.8133L7.99999 11.72L4.01688 13.8133L4.77776 9.37865L1.55554 6.23732L6.00888 5.59021L7.99999 1.55554Z",fill:"currentColor"}))}StartDefault.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.exports=StartDefault,StartDefault.default=StartDefault}}]);