(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{48312:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return i(777)}])},41536:function(e,t,i){"use strict";i.d(t,{q:function(){return d}});var a=i(35944);i(67294);var r=i(86896),n=i(17180),o=i(54015),l=i(87266),c=i(58370),s=i(92525);let d=e=>{let{customDataProps:t,items:i=[],heading:d}=e,{formatMessage:m}=(0,r.Z)(),{isMobile:p}=s.v.useDevice(),u=c.zM.usePush();return(0,a.tZ)(o.Np,{background:{colour:"white"},heading:(0,a.tZ)(o.Np.Header,{colour:"secondaryDark",children:d}),customNavButton:{icon:(0,a.tZ)(l.Vm,{}),onClick:()=>u(c.zM.getLocalisedUrl("","PROMOTION")),colour:"primaryBase",content:m({id:"common.seeMore"}),href:c.zM.getLocalisedUrl("","PROMOTION").toString()},itemsPerPage:p?2.3:6,customDataProps:{...t,style:{marginBottom:p?8:16,...null==t?void 0:t.style}},customIndicator:{defaultColour:"neutral100",activeColour:"primaryBase"},withIndicators:!1,children:i.map((e,t)=>(0,a.tZ)(n.h,{customDataProps:{style:{"--reward-item-width":"unset",height:"100%"}},promotion:e},t))})}},75713:function(e,t,i){"use strict";i.d(t,{o:function(){return c}});var a=i(35944);i(67294);var r=i(11163),n=i(3527),o=i(58370),l=i(9268);let c=e=>{let{children:t,pageTitle:i,SEOData:c,customHead:s}=e,{locale:d="vi-VN"}=(0,r.useRouter)(),{isDesktop:m}=o.v3.useDevice(),p=(0,n.x)();return(0,a.tZ)(l._,{locale:d,showStickyBottomMenu:!1,headerProps:{topBarProps:{backProps:{visible:!0,onClick:p},titleProps:{visible:!0,content:i},cartProps:{visible:!0},searchProps:{visible:!0},rightKebabProps:{visible:!0},hasBorder:!0},showSearchBar:m},SEOData:c,customHead:s,children:t})}},804:function(e,t,i){"use strict";i.d(t,{ql:function(){return d},o2:function(){return n.o},_2:function(){return a._},Xg:function(){return r.X},oc:function(){return m}});var a=i(9268),r=i(10877),n=i(75713),o=i(35944);i(67294);var l=i(11163),c=i(3527),s=i(58370);let d=e=>{let{children:t,pageTitle:i,SEOData:r,customHead:n}=e,{locale:d="vi-VN"}=(0,l.useRouter)(),{isDesktop:m}=s.v3.useDevice(),p=(0,c.x)();return(0,o.tZ)(a._,{locale:d,showStickyBottomMenu:!1,headerProps:{topBarProps:{backProps:{visible:!0,onClick:p},titleProps:{visible:!0,content:i},cartProps:{visible:!0},searchProps:{visible:!0},rightKebabProps:{visible:!0},hasBorder:!0},showSearchBar:m},SEOData:r,customHead:n,children:t})},m=e=>{let{children:t,pageTitle:i,SEOData:r,customHead:n,onBack:c}=e,{locale:d="vi-VN"}=(0,l.useRouter)(),{isDesktop:m}=s.v3.useDevice();return(0,o.tZ)(a._,{locale:d,headerProps:{topBarProps:{backProps:{visible:!0,onClick:c},titleProps:{visible:!0,content:i},cartProps:{visible:!1},searchProps:{visible:!1},rightKebabProps:{visible:!0},hasBorder:!0},showSearchBar:m},SEOData:r,customHead:n,showStickyBottomMenu:!0,bottomBarProps:{defaultMenuItemType:"profile"},children:t})}},10877:function(e,t,i){"use strict";i.d(t,{X:function(){return c}});var a=i(35944);i(67294);var r=i(11163),n=i(48189),o=i(58370),l=i(9268);let c=e=>{let{children:t,pageTitle:i,SEOData:c,customHead:s,bottomMenuDefault:d}=e,{locale:m="vi-VN"}=(0,r.useRouter)(),{isMobile:p}=o.v3.useDevice();return(0,a.tZ)(l._,{locale:m,showStickyBottomMenu:!0,headerProps:{logoComponent:p&&i?(0,a.tZ)(n.X6,{tag:"h5",as:"h1",weight:"bold",wordWrap:"none",children:i}):void 0},bottomBarProps:{defaultMenuItemType:d},SEOData:c,customHead:s,children:t})}},3527:function(e,t,i){"use strict";i.d(t,{x:function(){return o}});var a=i(67294),r=i(11163),n=i(58370);let o=()=>{let e=(0,r.useRouter)(),{back:t}=e,i=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{let e=()=>{i.current=!0};return window.addEventListener("beforeunload",e),()=>{i.current=!0,window.removeEventListener("beforeunload",e)}},[]),(0,a.useEffect)(()=>{i.current=!0,setTimeout(()=>{i.current=!1},700)},[e.asPath]),()=>{t(),setTimeout(()=>{i.current||e.push(n.zM.getNewRelativeURL("","shop").toString())},500)}}},777:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return eO},default:function(){return eF}});var a,r,n,o,l,c,s,d,m,p,u=i(35944),h=i(30118),g=i(67294),v=i(38623),f=i(48189),b=i(90531),w=i(10917),x=i(87379),y=i(58370),C=i(30074),Z=i(87266);let k=x.ZP.div.withConfig({componentId:"sc-1777ffea-0"})(["display:flex;align-items:center;overflow-x:auto;> *{flex-shrink:0;margin-right:8px;}.category-chip{&[data-color='tertiary']{background:unset;border-color:",";}&[data-color='primary']{background:",";font-weight:600;border-color:white;}span{display:inline-flex;align-items:center;}}","{margin-right:-16px;}"],e=>{let{theme:t}=e;return t.colors.green100},e=>{let{theme:t}=e;return t.colors.white},b.M.mbDown),E=e=>{var t,i;let{block:a,region:r,noCategoryList:n}=e,{isMobile:o}=y.v3.useDevice(),l=y.zM.useRouter(),c=y.D1.useTranslation(),{title:s,isHotdeal:d,fromDate:m,toDate:p,image:h,icon:v,mobileImage:b,products:x,category:E,url:M,displayLine:P=1}=a,[B,_]=(0,g.useState)(""),D=!!(o&&b||!o&&h),I=r||s,S=null==E?void 0:null===(t=E[0])||void 0===t?void 0:t.slug,N=null==E?void 0:null===(i=E.find(e=>e.id===B))||void 0===i?void 0:i.slug,O=(null==E?void 0:E.length)>1,F=O?N:S,T=!!M||!!(!O&&S),z=O&&B?x.filter(e=>{var t;return null===(t=e.categoryId)||void 0===t?void 0:t.includes(B)}):x,L=D?4:6,A=!d&&!o&&P>1&&(null==z?void 0:z.length)>L,H=(0,g.useMemo)(()=>{if(!A)return[];let e=[],t=2*L;for(let i=0;ie.id).join("-"),L]);return(0,u.tZ)(C.N,{bannerImg:o?b:h,countDownStart:d&&m?Number(m+"000"):void 0,countDownEnd:d&&p?Number(p+"000"):void 0,withIndicators:!1,heading:d?(0,u.BX)(C.N.Header,{as:"h1",style:{background:"linear-gradient(90deg, #FFDD09 0%, #FFFFFF 57.41%, #FD9B08 102.2%)",backgroundClip:"text",WebkitTextFillColor:"transparent",position:"relative",fontSize:24,display:"inline-flex"},children:[v&&(0,u.tZ)("img",{src:v,alt:"title-prefix",width:24,height:24,style:{display:"inline-flex",verticalAlign:"sub",maxWidth:24,maxHeight:24,marginRight:8}}),s,(0,u.tZ)("img",{src:"/shop/images/hotdeal-suffix.png",alt:"hot-deals-suffix",width:45,height:45,style:{position:"absolute",maxWidth:"unset",maxHeight:"unset",left:"calc(100% - 19px)",top:"-14px"}})]}):(0,u.BX)(C.N.Header,{as:"h2",colour:O?"green900":"gray800",children:[v&&(0,u.tZ)("img",{src:v,alt:"title-prefix",width:24,height:24,style:{display:"inline-flex",verticalAlign:"sub",maxWidth:24,maxHeight:24,marginRight:8}}),s]}),underTitle:O&&!n?(0,u.tZ)(k,{children:[{id:"",name:c({id:"home.recommendProducts.all",defaultMessage:"All"})}].concat(E).map((e,t)=>(0,u.BX)(f.Af,{customDataProps:{className:"category-chip"},size:"lg",onClick:t=>{t.currentTarget.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"}),_(e.id||"")},color:e.id===B?"primary":"tertiary",textProps:e.id===B?{colour:"green800"}:void 0,children:[e.image&&(0,u.tZ)("img",{src:e.image,alt:e.name,style:{backgroundColor:w.r.colors.blue50,width:28,height:28,borderRadius:"50%",marginRight:4}}),e.name]},e.id+"-"+t))}):void 0,background:{colour:d?"red50":O?"green50":"white",image:d?"/shop/images/hot-deals-bg.jpg":void 0},itemsPerPage:o?2.3:D?4:6,customNavButton:T?{colour:d?"primaryBase":O?"green900":"primaryBase",onClick:()=>{l.push(M||y.zM.getLocalisedUrl(F||"","CATEGORY").toString())},href:M||y.zM.getLocalisedUrl(F||"","CATEGORY").toString(),content:c({id:"common.seeMore",defaultMessage:"Xem th\xeam"}),icon:O?(0,u.tZ)(Z.RO,{}):(0,u.tZ)(Z.Vm,{}),style:d?{background:"white",borderRadius:8,paddingTop:5,paddingBottom:5,paddingLeft:12}:void 0}:void 0,showSlideArrow:!o,productRegion:I,isDesktopPadding:!0,children:A?H.map((e,t)=>(0,u.BX)("div",{style:{display:"grid",gridTemplateColumns:"1fr",gridTemplateRows:"1fr 1fr",gap:16,width:"100%",height:"100%"},children:[e.map((e,t)=>(0,u.tZ)(C.A,{product:e,customDataProps:{"data-product-region":I,"data-multi-categories":O,style:d||O?void 0:{border:"1px solid #E4E8EC"}},isHotdeal:d},e.id+"-"+t)),1===e.length&&(0,u.tZ)("div",{})]},t)):z.map((e,t)=>(0,u.tZ)(C.A,{product:e,customDataProps:{"data-product-region":I,"data-multi-categories":O,style:d||O?void 0:{border:"1px solid #E4E8EC"}},isHotdeal:d},t))})};var M=i(85934),P=i(330),B=i(34461),_=i(90143),D=i(11674),I=i(8370),S=i(92525);let N=x.ZP.div.withConfig({componentId:"sc-2fb28173-0"})(["width:100%;margin-bottom:16px;background-color:white;","{margin-bottom:8px;background-color:unset;}"],b.M.mbDown),O=x.ZP.div.withConfig({componentId:"sc-2fb28173-1"})(["height:100%;min-height:0;min-width:0;width:66.21%;> *,> * > *{height:100%;min-height:0;}.banner-scroll-container{height:100%;min-height:0;> .container,> .container > .section,> .container > .section > .grid-layout,> .container > .section > .grid-layout > .item-grid{height:100%;min-height:0;}> .container .section > .grid-layout > .item-grid > *{padding-top:unset;height:100%;min-height:0;}}aspect-ratio:192 / 67;","{width:100%;aspect-ratio:43 / 15;height:unset;}"],b.M.tdDown),F=x.ZP.div.withConfig({componentId:"sc-2fb28173-2"})(["display:flex;gap:16px;width:100%;height:100%;padding:16px;&[data-sub-banner-count='0']{","{width:100%;}}","{padding:16px 0;background:none;flex-direction:column;gap:8px;}"],O,b.M.tdDown),T=x.ZP.div.withConfig({componentId:"sc-2fb28173-3"})(["display:flex;flex-direction:column;gap:16px;","{flex-direction:row;gap:8px;}","{flex:1;}"],b.M.tdDown,b.M.tdUp),z=x.ZP.a.withConfig({componentId:"sc-2fb28173-4"})(["cursor:pointer;display:block;text-decoration:none;width:100%;flex:1;position:relative;user-drag:none;-webkit-user-drag:none;","{height:100%;min-height:0;}img,a{user-drag:none;-webkit-user-drag:none;}> img{position:absolute;top:0;left:0;object-fit:cover;width:100%;height:100%;pointer-events:none;border-radius:8px;}","{min-width:0;aspect-ratio:16/9;}"],b.M.tdDown,b.M.tdDown),L=e=>{let{customDataProps:t,bannerItems:i=[],subBannerItems:a=[]}=e,{isMobile:r,isDesktop:n}=S.v.useDevice();return(0,u.tZ)(N,{children:(0,u.tZ)(f.EW,{isDesktopPadding:!r,children:(0,u.BX)(F,{"data-sub-banner-count":(null==a?void 0:a.length)||0,...t,children:[(0,u.tZ)(O,{children:(0,u.tZ)(I.q,{wrapperProps:{className:"scroll-list-wrapper"},items:i,autoScrollTime:6e3,showEdgeArrow:!0})}),(0,u.tZ)(T,{children:(null==a?void 0:a.map((e,t)=>(0,u.tZ)(z,{target:"_blank",href:e.link||void 0,"data-event-category":"Ecommerce","data-event-action":"Banner Click","data-event-label":e.link,children:n?(0,u.tZ)(D.E,{className:"sub-banner-image",src:e.image,alt:e.alt}):(0,u.tZ)(D.E,{className:"sub-banner-mobile-image",src:e.mobileImage||e.image,alt:e.alt})},t)))||[]})]})})})};var A=i(86896);let H=x.ZP.div.withConfig({componentId:"sc-a896239f-0"})(["background:white;display:flex;justify-content:center;align-items:center;"]),R=x.ZP.div.withConfig({componentId:"sc-a896239f-1"})(["padding:20px;border-radius:8px;display:flex;justify-content:space-between;gap:1rem;","{padding:0 16px;flex-direction:column;gap:0;}"],b.M.mbDown),V=x.ZP.div.withConfig({componentId:"sc-a896239f-2"})(["display:flex;align-items:center;flex-direction:column;flex:1;","{flex-direction:row;}.home-best-item-image{width:48px;height:48px;margin-bottom:8px;","{margin-right:8px;margin-bottom:0;}> *{width:100%;height:100%;}}.home-best-item-description{display:flex;flex-direction:column;text-align:center;justify-content:center;align-items:center;","{flex:1;padding:16px 0;text-align:left;align-items:start;}}","{&:not(:last-child){border-bottom:1px solid #e4e8ec;}}"],b.M.mbDown,b.M.mbDown,b.M.mbDown,b.M.mbDown);function X(){return(X=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{customDataProps:t}=e,{formatMessage:i}=(0,A.Z)(),{isMobile:a}=S.v.useDevice();return(0,u.tZ)(H,{children:(0,u.tZ)(f.EW,{customDataProps:{style:{width:"100%"}},isDesktopPadding:!0,noGutter:a,children:(0,u.tZ)(R,{...t,children:U.map((e,t)=>(0,u.BX)(V,{children:[(0,u.tZ)("div",{className:"home-best-item-image",children:e.image}),(0,u.BX)("div",{className:"home-best-item-description",children:[(0,u.tZ)(f.xv,{size:a?"s2":"s3",colour:"gray800",weight:"semi-bold",children:i({id:e.titleIntlId})}),e.subtitleIntlId&&(0,u.tZ)(f.xv,{size:a?"p3":"s4",colour:"gray600",weight:"regular",children:i({id:e.subtitleIntlId})})]})]},t))})})})};var q=i(93829),Y=i(54015);let $=e=>{let{items:t=[]}=e,{formatMessage:i}=(0,A.Z)(),{isMobile:a}=y.v3.useDevice();return(0,u.tZ)(f.EW,{noGutter:a,children:(0,u.tZ)(Y.Np,{heading:(0,u.tZ)(Y.Np.Header,{as:"h2",colour:"gray800",children:i({id:"home.blogPosts.title"})}),background:{colour:"white"},withIndicators:!1,itemsPerPage:a?1.2:4,customNavButton:{colour:"primaryBase",href:"/",content:i({id:"common.seeMore",defaultMessage:"Xem th\xeam"}),icon:(0,u.tZ)(Z.Vm,{})},showSlideArrow:!a,productRegion:"New Item",customDataProps:{style:{marginBottom:a?8:16}},isDesktopPadding:!0,customIndicator:{activeColour:"primaryBase"},children:t.map((e,t)=>(0,u.tZ)(q.T,{className:"blog-post-item",size:"sm",dataEventCategoryForCategory:"Ecommerce",dataEventActionForCategory:"Article Click",dataEventLabelForCategory:e.categoryLink,dataEventCategoryForTitle:"Ecommerce",dataEventActionForTitle:"Article Click",dataEventLabelForTitle:e.articleLink,dataEventCategoryForBanner:"Ecommerce",dataEventActionForBanner:"Article Click",dataEventLabelForBanner:e.articleLink,dataEventCategoryForBookmark:"Ecommerce",dataEventActionForBookmark:"Article Click",dataEventLabelForBookmark:e.articleLink,...e,style:{height:"100%",...e.style}},t))})})},J=(e,t)=>{var i,a,r,n,o,l;let{reviewed:c,categories:s}=e.postData||{},d=null==s?void 0:s.slice(-1)[0],m={name:"",avatar:"/avatar.jpg",permalink:"",type:"author"},p={reviewContent:"",avatar:"",avatarLink:"",badge:""};if(c){if((null===(a=c.expert)||void 0===a?void 0:a.displayName)&&(m={name:c.expert.displayName,avatar:c.expert.avatar||"",permalink:c.expert.profileUrl||"",type:"expert"}),(null===(r=c.editor)||void 0===r?void 0:r.displayName)&&(m={name:c.editor.displayName,avatar:c.editor.avatar||"",permalink:c.editor.profileUrl||"",type:"expert"}),(null===(n=c.author)||void 0===n?void 0:n.displayName)&&(m={name:c.author.displayName,avatar:c.author.avatar||"",permalink:c.author.profileUrl||"",type:"author"}),c.expert)p={reviewContent:t(c.isAuthor?{id:"articlePage.articleWrittenBy",defaultMessage:"Written by {name}"}:{id:"medical"===c.expert.role?"articlePage.reviewed.medically":"articlePage.reviewed.expertly",defaultMessage:"Medically reviewed by {name}"},{name:(0,u.tZ)("span",{className:"author-name",children:c.expert.displayName})}),avatar:c.expert.avatarThumbnail||"",avatarLink:c.expert.profileUrl||"",badge:c.expert.role||""};else{let e=(null==c?void 0:null===(o=c.editor)||void 0===o?void 0:o.userId)!==(null===(l=c.author)||void 0===l?void 0:l.userId)?c.editor:c.factCheck;p={reviewContent:t({id:"articlePage.reviewed.factCheck",defaultMessage:"Fact-Checked by {name}"},{name:(0,u.tZ)("span",{className:"author-name",children:null==e?void 0:e.displayName})}),avatar:(null==e?void 0:e.avatarThumbnail)||"",avatarLink:(null==e?void 0:e.profileUrl)||"",badge:"fact-check"}}}return{banner:(0,u.tZ)(f.E9,{src:e.image||"",alt:e.title}),title:e.title,categoryName:null==d?void 0:d.name,text:"",avatarImg:(0,u.tZ)(f.E9,{src:p.avatar||m.avatar||"https://picsum.photos/40/40",alt:m.name,style:{objectFit:"cover"}}),categoryLink:null==d?void 0:d.permalink,articleLink:e.link,isBookmarkDisplayed:!0,authorName:(null==p?void 0:p.reviewContent)||t({id:"expert"===m.type?"articlePage.articleWrittenBy":"articlePage.articleReviewerBy",defaultMessage:"Medically reviewed by {name}"},{name:m.name}),authorLink:"".concat((null==p?void 0:p.avatarLink)||m.permalink||""),uploadTime:(null===(i=e.postData)||void 0===i?void 0:i.modifiedTime)||"",direction:"vertical",styleLabel:{color:null==d?void 0:d.textColor}}};var Q=i(64577),ee=i(76318),et=i(72461);let ei=x.ZP.div.withConfig({componentId:"sc-1ce941f6-0"})(["padding:20px;background:linear-gradient(112.57deg,#2d87f3 3.17%,#bcdeff 99.44%);border-radius:16px;margin-bottom:16px;position:relative;","{padding:0 0 16px 0;}","{padding:16px;border-radius:0;margin-bottom:8px;}.recommend-products-panel{.recommend-products-item{button[data-color='primary']{background:",";border-color:",";&:hover{background:",";border-color:",";}}}}.care-bg-img{position:absolute;bottom:0;left:0;width:40%;object-fit:contain;z-index:0;","{display:none;}}.main-content-wrapper{display:flex;gap:16px;","{flex-direction:column;}.description-text{width:30%;flex-shrink:0;","{width:unset;}}.carousel-wrapper{flex:1;padding:0 16px;margin-left:-16px;margin-right:-16px;overflow:hidden;}}"],b.M.tdDown,b.M.mbDown,e=>{let{theme:t}=e;return t.colors.green600},e=>{let{theme:t}=e;return t.colors.green600},e=>{let{theme:t}=e;return t.colors.green700},e=>{let{theme:t}=e;return t.colors.green700},b.M.mbDown,b.M.mbDown,b.M.mbDown),ea=x.ZP.div.withConfig({componentId:"sc-1ce941f6-1"})(["display:flex;align-items:center;margin-bottom:20px;justify-content:space-between;","{margin-bottom:11px;}"],b.M.mbDown),er=x.ZP.div.withConfig({componentId:"sc-1ce941f6-2"})(["display:flex;align-items:center;overflow-x:auto;> *{flex-shrink:0;margin-right:8px;}padding-bottom:5px;padding-top:5px;margin-bottom:15px;margin-top:-5px;.category-chip{&[data-color='tertiary']{background:unset;> span{color:white;}}&[data-color='primary']{background:white;> span{color:",";}}span{display:inline-flex;align-items:center;}}","{margin-right:-16px;}"],e=>{let{theme:t}=e;return t.colors.primaryBase},b.M.mbDown);x.ZP.div.withConfig({componentId:"sc-1ce941f6-3"})(["display:grid;grid-gap:16px;grid-template-columns:repeat( ",",1fr );justify-content:space-between;margin-bottom:32px;","{margin-bottom:24px;grid-template-columns:repeat(2,1fr);grid-gap:8px;}"],e=>e.col||6,b.M.mbDown),x.ZP.div.withConfig({componentId:"sc-1ce941f6-4"})(["display:flex;justify-content:center;align-items:center;.see-more-button{&[data-color='secondary']{&:not(:active):not(:hover){background:transparent;}}}"]);let en=x.ZP.div.withConfig({componentId:"sc-1ce941f6-5"})(["box-shadow:0px 0px 1px 0px rgba(0,0,0,0.04);display:flex;flex-direction:column;padding:8px;border-radius:16px;background:white;height:100%;.service-cover-img{object-fit:cover;width:100%;height:100%;border-radius:8px;object-position:center;}.service-text-container{display:flex;flex-direction:column;padding:16px 8px;flex:1;gap:8px;word-break:break-word;}.service-text-desc{display:flex;flex-direction:column;gap:4px;flex:1;}.service-text-desc-item{display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap;svg{flex-shrink:0;}}button[data-color]{padding:9px 12px;border-radius:8px;}"]);function eo(){return(eo=Object.assign?Object.assign.bind():function(e){for(var t=1;te.theme.colors.yellow50,e=>e.theme.colors.yellow100);function ep(){return(ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:t,showTooltip:i=!0,className:a}=e,{formatMessage:r}=(0,A.Z)(),n={hotline:"02871096118",email:"Hotro@hellobacsi.com"};function o(e){return(0,u.tZ)("span",{children:e})}let l=(0,g.useMemo)(()=>(null==n?void 0:n.email)&&(null==n?void 0:n.hotline)?(0,u.tZ)(es.Z,{id:"admin.voucher.applicable.fullContact",defaultMessage:"Vui l\xf2ng li\xean hệ hotline {hotline} hoặc email {email} để nhận ngay voucher ưu đ\xe3i.",tagName:"p",values:{span:o,hotline:(null==n?void 0:n.hotline)||"",email:(null==n?void 0:n.email)||""}}):(null==n?void 0:n.email)&&!(null==n?void 0:n.hotline)?(0,u.tZ)(es.Z,{id:"admin.voucher.applicable.emailContact",defaultMessage:"Vui l\xf2ng li\xean hệ email {email} để nhận ngay voucher ưu đ\xe3i.",tagName:"p",values:{span:o,email:null==n?void 0:n.email}}):"",[n]),c=(0,g.useMemo)(()=>({tooltip:{maxWidth:"268px",whiteSpace:"initial",padding:"8px",display:l&&i?"initial":"none",p:{fontSize:"12px",fontWeight:"400",lineHeight:"18px"},span:{color:"#2D87F3",textDecoration:"underline"}}}),[l,i]);return(0,u.tZ)(ec.u,{label:l,styles:c,withArrow:!0,children:(0,u.tZ)("div",{className:a,children:(0,u.BX)(em,{size:"c2",color:"#595959",style:{display:"flex",alignItems:"center",gap:6},children:[(0,u.tZ)(eu,{}),t||r({id:"home.careTopServices.voucher.applicable",defaultMessage:"C\xf3 thể \xe1p dụng voucher"})]})})})};let eg=e=>"/care/dich-vu/".concat(e.slug,"-").concat(e.id,"/"),ev=e=>{var t;let{topServices:i,customDataProps:a}=e,r=y.D1.useTranslation(),{isMobile:n}=S.v.useDevice(),{locale:o="vi-VN"}=y.zM.useRouter(),[l,c]=g.useState(),s=(0,ee.U)(),d=(0,g.useMemo)(()=>{var e;let t=null==i?void 0:null===(e=i.servicesList)||void 0===e?void 0:e.find(e=>e.categories.id===l);return t?t.services.sort((e,t)=>e.position-t.position):[]},[null==i?void 0:i.servicesList,l]);return(0,g.useMemo)(()=>{var e,t,a;(null==i?void 0:null===(a=i.servicesList)||void 0===a?void 0:null===(t=a[0])||void 0===t?void 0:null===(e=t.categories)||void 0===e?void 0:e.id)&&!l&&c(i.servicesList[0].categories.id)},[null==i?void 0:i.servicesList,l]),(0,u.tZ)(f.EW,{noGutter:n,children:(0,u.BX)(ei,{...a,children:[(0,u.tZ)("img",{className:"care-bg-img",src:"/shop/images/care-bg-decor.png",alt:"care-bg-decor",loading:"lazy"}),(0,u.BX)(ea,{children:[(0,u.tZ)(f.X6,{colour:"white",tag:n?"h6":"h5",as:"h2",weight:"bold",wrapperProps:{style:{textTransform:"capitalize"}},children:r({id:"home.careTopServices.title",defaultMessage:"Dịch vụ nổi bật"})}),(0,u.tZ)(f.zx,{size:"sm",color:"ghost",icon:(0,u.tZ)(Z.ZH,{}),isIconRight:!0,customDataProps:{"data-event-category":"Ecommerce","data-event-action":"See More Click","data-event-label":s,"data-product-region":"Care Top Services",as:"a",href:"/care/vi-tri-hien-tai/dich-vu/",style:{flexShrink:0,paddingRight:0}},children:(0,u.tZ)(f.xv,{size:"s5",colour:"white",children:r({id:"home.careTopServices.seeMore",defaultMessage:"Xem tất cả dịch vụ"})})})]}),(0,u.BX)("div",{className:"main-content-wrapper",children:[(0,u.tZ)(f.xv,{size:"p2",colour:"white",weight:"regular",className:"description-text",children:r({id:"home.careTopServices.description",defaultMessage:"Nền tảng cung cấp nền tảng hỗ trợ bệnh nh\xe2n t\xecm kiếm dịch vụ y tế ph\xf9 hợp d\xf9 ở bất cứ nơi đ\xe2u"})}),(0,u.BX)("div",{className:"carousel-wrapper",children:[!!(null==i?void 0:null===(t=i.servicesList)||void 0===t?void 0:t.length)&&(0,u.tZ)(er,{children:i.servicesList.map(e=>e.categories).map((e,t)=>(0,u.tZ)(f.Af,{customDataProps:{className:"category-chip"},size:"lg",onClick:t=>{t.currentTarget.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"}),c(e.id)},color:e.id===l?"primary":"tertiary",children:e.name},e.id+"-"+t))}),(0,u.tZ)(Y.Np,{itemsPerPage:n?1.2:3,showSlideArrow:!n,productRegion:"Recommendation",customDataProps:{style:{padding:0},className:"recommend-products-panel"},withIndicators:!1,children:d.map(e=>{let t=eg(e),i={"data-event-category":"Ecommerce","data-event-action":"Top Service Booking Click","data-event-label":"https://".concat(et.domainLocales[o]).concat(t)};return(0,u.BX)(en,{children:[(0,u.tZ)(Q.o,{ratio:262/173,children:(0,u.tZ)("img",{src:e.image,alt:e.image_alt,className:"service-cover-img",loading:"lazy"})}),(0,u.BX)("div",{className:"service-text-container",children:[(0,u.tZ)(f.xv,{size:"s2",weight:"semi-bold",children:e.name}),(0,u.BX)("div",{className:"service-text-desc",children:[(0,u.BX)("div",{className:"service-text-desc-item",children:[(0,u.BX)(f.xv,{size:"c2",colour:"gray600",weight:"regular",wordWrap:"break-word",children:[(0,u.tZ)(ef,{style:{marginRight:4,verticalAlign:"text-top"}}),r({id:"home.careTopServices.item.price",defaultMessage:"Gi\xe1 dịch vụ"}),":"," "]}),(0,u.tZ)(f.xv,{size:"c2",colour:"green600",weight:"semi-bold",wordWrap:"break-word",children:(0,P.OH)(e.price,o,"VND")}),e.original_price&&(0,u.tZ)(f.xv,{size:"c2",colour:"gray400",weight:"semi-bold",decoration:"line-through",wrapperProps:{style:{marginLeft:6,wordBreak:"keep-all"}},children:(0,P.OH)(e.original_price,o,"VND")})]}),e.promotion&&(0,u.tZ)(eh,{}),(0,u.tZ)("div",{className:"service-text-desc-item",children:(0,u.BX)(f.xv,{size:"c2",colour:"gray600",weight:"regular",wordWrap:"break-word",children:[(0,u.tZ)(eb,{style:{marginRight:4,verticalAlign:"text-top"}}),e.hospitalName]})}),(0,u.tZ)("div",{className:"service-text-desc-item",children:(0,u.BX)(f.xv,{size:"c2",colour:"gray600",weight:"regular",wordWrap:"break-word",children:[(0,u.tZ)(el,{width:"16px",height:"16px",style:{marginRight:4,verticalAlign:"text-top"}}),e.city]})})]})]}),(0,u.tZ)("a",{href:t,children:(0,u.tZ)(f.zx,{color:"primary",size:n?"sm":"md",wrapperProps:{style:{width:"100%"}},customDataProps:{style:{width:"100%"}},...i,children:r({id:"home.careTopServices.item.bookService",defaultMessage:"Đặt lịch dịch vụ"})})})]},"".concat(l,"-").concat(e.id,"-").concat(e.position))})},String(n)+"-"+l)]})]})]})})},ef=e=>(0,u.tZ)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:e.className,style:e.style,children:(0,u.tZ)("path",{d:"M7.98334 12.5385C8.1047 12.5385 8.2109 12.4929 8.30192 12.4019C8.39294 12.3109 8.43845 12.2047 8.43845 12.0833V11.7308C8.95554 11.6607 9.4237 11.4664 9.84294 11.1481C10.2622 10.8297 10.4718 10.347 10.4718 9.7C10.4718 9.23334 10.3342 8.82052 10.059 8.46155C9.78376 8.10258 9.24615 7.77864 8.44615 7.48975C7.74529 7.25043 7.2799 7.04317 7.04999 6.86795C6.82008 6.69274 6.70512 6.44787 6.70512 6.13334C6.70512 5.8188 6.82286 5.56325 7.05834 5.36667C7.2938 5.17008 7.6188 5.07179 8.03334 5.07179C8.2812 5.07179 8.49809 5.11815 8.68399 5.21089C8.86989 5.30363 9.02694 5.42735 9.15514 5.58205C9.23634 5.6812 9.33035 5.75043 9.43719 5.78974C9.54402 5.82905 9.64521 5.82734 9.74075 5.7846C9.87103 5.73333 9.96005 5.64572 10.0078 5.52179C10.0556 5.39787 10.0436 5.28419 9.97179 5.18077C9.79401 4.92949 9.5735 4.72031 9.31025 4.55322C9.047 4.38612 8.76751 4.29146 8.47179 4.26924V3.91667C8.47179 3.7953 8.42628 3.68911 8.33525 3.59809C8.24423 3.50707 8.13804 3.46155 8.01667 3.46155C7.8953 3.46155 7.78911 3.50707 7.69809 3.59809C7.60707 3.68911 7.56155 3.7953 7.56155 3.91667V4.26924C6.99318 4.37864 6.55664 4.60919 6.25194 4.9609C5.94724 5.31262 5.79489 5.70343 5.79489 6.13334C5.79489 6.63419 5.9466 7.03718 6.25002 7.3423C6.55343 7.64744 7.04788 7.92308 7.73335 8.16924C8.4419 8.42906 8.92587 8.66218 9.18527 8.86859C9.44467 9.075 9.57437 9.35214 9.57437 9.7C9.57437 10.118 9.42351 10.4216 9.1218 10.6109C8.82009 10.8002 8.47949 10.8949 8.1 10.8949C7.78334 10.8949 7.49712 10.8158 7.24134 10.6577C6.98557 10.4996 6.77136 10.2709 6.5987 9.9718C6.53119 9.85472 6.44017 9.77587 6.32564 9.73527C6.21111 9.69467 6.09899 9.69597 5.98927 9.73915C5.87111 9.78233 5.7846 9.86438 5.72974 9.9853C5.67488 10.1062 5.67438 10.2218 5.72822 10.3321C5.91454 10.7056 6.1577 11.0043 6.4577 11.2282C6.7577 11.4521 7.11454 11.6085 7.52822 11.6974V12.0833C7.52822 12.2047 7.57373 12.3109 7.66475 12.4019C7.75578 12.4929 7.86197 12.5385 7.98334 12.5385ZM8.00112 14.3333C7.12516 14.3333 6.30181 14.1671 5.53105 13.8347C4.76029 13.5022 4.08983 13.051 3.51969 12.4812C2.94953 11.9113 2.49816 11.2411 2.16557 10.4707C1.83298 9.70026 1.66669 8.87708 1.66669 8.00112C1.66669 7.12517 1.83291 6.30181 2.16535 5.53105C2.4978 4.76029 2.94896 4.08983 3.51885 3.51969C4.08875 2.94953 4.75891 2.49816 5.52934 2.16557C6.29975 1.83298 7.12293 1.66669 7.99889 1.66669C8.87484 1.66669 9.6982 1.83291 10.469 2.16535C11.2397 2.4978 11.9102 2.94897 12.4803 3.51885C13.0505 4.08875 13.5018 4.75892 13.8344 5.52934C14.167 6.29975 14.3333 7.12293 14.3333 7.99889C14.3333 8.87484 14.1671 9.6982 13.8347 10.469C13.5022 11.2397 13.051 11.9102 12.4812 12.4803C11.9113 13.0505 11.2411 13.5018 10.4707 13.8344C9.70026 14.167 8.87708 14.3333 8.00112 14.3333ZM8 13.3333C9.47778 13.3333 10.7361 12.8139 11.775 11.775C12.8139 10.7361 13.3333 9.47778 13.3333 8C13.3333 6.52223 12.8139 5.26389 11.775 4.225C10.7361 3.18611 9.47778 2.66667 8 2.66667C6.52223 2.66667 5.26389 3.18611 4.225 4.225C3.18611 5.26389 2.66667 6.52223 2.66667 8C2.66667 9.47778 3.18611 10.7361 4.225 11.775C5.26389 12.8139 6.52223 13.3333 8 13.3333Z",fill:"#595959"})}),eb=e=>(0,u.BX)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:e.className,style:e.style,children:[(0,u.tZ)("path",{d:"M7.99903 5.60223C8.29864 5.60223 8.54151 5.84511 8.54151 6.14471V7.458H9.76451C10.0641 7.458 10.307 7.70088 10.307 8.00048C10.307 8.30009 10.0641 8.54296 9.76451 8.54296H8.54151V9.86263C8.54151 10.1622 8.29864 10.4051 7.99903 10.4051C7.69943 10.4051 7.45655 10.1622 7.45655 9.86263V8.54296H6.22589C5.92629 8.54296 5.68341 8.30009 5.68341 8.00048C5.68341 7.70088 5.92629 7.458 6.22589 7.458H7.45655V6.14471C7.45655 5.84511 7.69943 5.60223 7.99903 5.60223Z",fill:"#595959"}),(0,u.tZ)("path",{d:"M3 4.56672V8.21899C3.01399 9.4258 3.39694 10.5991 4.09699 11.5801C4.79704 12.5611 5.78037 13.3023 6.91381 13.7034L7.44762 13.9014C7.80423 14.0329 8.19577 14.0329 8.55238 13.9014L9.08619 13.7034C10.2196 13.3023 11.203 12.5611 11.903 11.5801C12.6031 10.5991 12.986 9.4258 13 8.21899V4.56672C12.9995 4.42323 12.9571 4.28303 12.8781 4.16351C12.799 4.04399 12.6868 3.95039 12.5552 3.89432C11.1127 3.28992 9.56299 2.98584 8 3.00051C6.43701 2.98584 4.88731 3.28992 3.44476 3.89432C3.31324 3.95039 3.20099 4.04399 3.12193 4.16351C3.04287 4.28303 3.00048 4.42323 3 4.56672Z",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"})]});var ew=i(85138),ex=i(41630);let ey=x.ZP.div.withConfig({componentId:"sc-42169281-0"})(["width:100%;background:white;padding:24px 20px;border-radius:16px;margin-bottom:16px;","{padding:8px 0;border-radius:0;}.cat-scroll-container{.bullet-nav{list-style-type:none;bottom:-16px;","{display:none;}.bullet-nav__item{.bullet-nav__link{width:4px;height:4px;margin-right:4px;border-radius:4px;&.active{width:8px;}}&:last-child{.bullet-nav__link{margin-right:0;}}}}}.cat-desktop-container{width:100%;display:grid;grid-template-columns:repeat(9,1fr);grid-gap:16px;}"],b.M.mbDown,b.M.tdUp),eC=e=>{let{customDataProps:t,items:i}=e,{isMobile:a,isDesktop:r}=S.v.useDevice(),n=(null==i?void 0:i.slice(0,9))||[];return(0,u.tZ)(f.EW,{noGutter:a,children:(0,u.tZ)(ey,{...t,children:r?(0,u.tZ)("div",{className:"cat-desktop-container",children:n.map((e,t)=>(0,u.tZ)(ex.P,{link:e.link,name:e.name,image:e.image,customDataProps:{style:{height:"100%"}}},t))}):(0,u.tZ)(ew.l,{withIndicators:!1,withControls:!1,slidesToScroll:3,slidesToShow:3.5,slideGap:a?8:16,styles:{container:{marginLeft:a?16:0,marginRight:a?8:0}},children:n.map((e,t)=>(0,u.tZ)(ew.l.Slide,{children:(0,u.tZ)(ex.P,{link:e.link,name:e.name,image:e.image,customDataProps:{style:{height:"100%"}}},t)},t))})})})},eZ=x.ZP.div.withConfig({componentId:"sc-593ba0db-0"})(["margin-bottom:16px;","{margin-bottom:8px;}"],b.M.mbDown);x.ZP.div.withConfig({componentId:"sc-593ba0db-1"})(["display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;","{justify-content:center;margin-bottom:24px;}"],b.M.mbDown),x.ZP.div.withConfig({componentId:"sc-593ba0db-2"})(["display:flex;flex-wrap:wrap;--item-gap:16px;--item-row-count:6;gap:var(--item-gap);","{--item-gap:8px;--item-row-count:3;}"],b.M.mbDown);let ek=x.ZP.a.withConfig({componentId:"sc-593ba0db-3"})(["width:calc( (100% - ((var(--item-row-count) - 1) * var(--item-gap))) / var(--item-row-count) );--padding-vertical:10px;--padding-horizontal:13.8px;display:block;padding:var(--padding-vertical) var(--padding-horizontal);position:relative;background:",";border-radius:4px;border:1px solid ",";&:before{content:'';display:block;padding-top:75%;}img{position:absolute;width:calc(100% - 2 * var(--padding-horizontal));height:calc(100% - 2 * var(--padding-vertical));object-fit:contain;left:50%;top:50%;transform:translate(-50%,-50%);}","{--padding-vertical:6px;--padding-horizontal:8.4px;}"],e=>e.theme.colors.white,e=>e.theme.colors.neutral100,b.M.mbDown),eE=e=>{let{customDataProps:t,items:i=[]}=e,{formatMessage:a}=(0,A.Z)(),{isMobile:r}=y.v3.useDevice(),n=(0,g.useMemo)(()=>{let e=r?2:1,t=[];for(let a=0;ae.name).join("-"),r]);return(0,u.tZ)(f.EW,{noGutter:r,children:(0,u.tZ)(eZ,{...t,children:(0,u.tZ)(Y.Np,{heading:(0,u.tZ)(Y.Np.Header,{colour:"gray800",children:a({id:"home.popularBrands.title"})}),background:{colour:"white"},itemsPerPage:r?3:6,showSlideArrow:!r,productRegion:"Flash Sale",customDataProps:{style:{marginBottom:r?8:16}},slideButton:{colour:"primaryBase"},customIndicator:{activeColour:"primaryBase"},children:n.map((e,t)=>(0,u.tZ)("div",{style:{display:"flex",gap:16,width:"100%",height:"100%",flexDirection:"column"},children:e.map((e,t)=>(0,u.tZ)(ek,{href:e.link,target:"_blank","data-event-category":"Ecommerce","data-event-action":"Seller Click","data-event-label":e.link,children:(0,u.tZ)(D.E,{src:e.image,alt:e.name})},t))},t))})})})};var eM=i(41536);x.ZP.div.withConfig({componentId:"sc-85ba4cce-0"})(["padding:20px;background:",";border-radius:8px;","{padding:12px 16px;}"],e=>e.theme.colors.white,b.M.mbDown),x.ZP.div.withConfig({componentId:"sc-85ba4cce-1"})(["display:flex;gap:16px;justify-content:space-between;overflow:hidden;","{display:block;.bullet-nav{list-style:none;bottom:16px;.bullet-nav__link{margin-right:4px;width:4px;height:4px;background-color:white;border-radius:4px;&.active{width:8px;}}}.grid-layout{grid-gap:8px;}}"],b.M.mbDown);let eP=x.ZP.a.withConfig({componentId:"sc-85ba4cce-2"})(["cursor:pointer;display:block;text-decoration:none;flex:1;position:relative;user-drag:none;-webkit-user-drag:none;.sub-banner-inner-wrapper{height:0;padding-top:46%;width:100%;","{min-height:160px;}}.sub-banner-image,.sub-banner-mobile-image{position:absolute;top:0;left:0;object-fit:cover;width:100%;height:100%;user-drag:none;pointer-events:none;border-radius:16px;","{border-radius:8px;}}.sub-banner-image{","{display:none;}}.sub-banner-mobile-image{","{display:none;}}.sub-banner-text-wrapper{user-drag:none;height:100%;position:absolute;top:0;left:0;white-space:pre-wrap;padding:24px;padding-left:40px;display:flex;flex-direction:column;justify-content:center;max-width:80%;","{padding:16px;padding-left:24px;}.sub-banner-title{margin-bottom:20px;width:235px;","{width:110px;margin-bottom:8px;}}}"],b.M.mbDown,b.M.mbDown,b.M.mbDown,b.M.mbUp,b.M.mbDown,b.M.mbDown),eB=e=>{let{items:t=[]}=e,{isMobile:i}=S.v.useDevice();return(0,u.tZ)(f.EW,{noGutter:i,children:(0,u.tZ)(Y.Np,{itemsPerPage:i?1:2,showSlideArrow:!i,withIndicators:!1,customDataProps:{style:{marginBottom:i?8:16}},isDesktopPadding:!0,background:{colour:"white"},customIndicator:{activeColour:"primaryBase",defaultColour:"neutral100"},children:t.map((e,t)=>(0,u.tZ)(e_,{image:e.image,mobileImage:e.mobileImage,alt:e.alt,title:e.title,link:e.link,buttonText:e.buttonText,onButtonClick:e.onButtonClick,textColor:e.textColor},t))},String(i))})},e_=e=>{let{image:t,mobileImage:i,title:a,alt:r,buttonText:n,onButtonClick:o,textColor:l="dark",link:c}=e,{isMobile:s}=S.v.useDevice(),d="dark"===l?"secondaryBase":"white";return(0,u.tZ)(eP,{target:"_blank",href:c||void 0,children:(0,u.BX)("div",{className:"sub-banner-inner-wrapper",children:[(0,u.tZ)(f.E9,{className:"sub-banner-image",src:t,alt:r}),(0,u.tZ)(f.E9,{className:"sub-banner-mobile-image",src:i||t,alt:r}),(0,u.BX)("div",{className:"sub-banner-text-wrapper",children:[a?s?(0,u.tZ)(f.xv,{customDataProps:{className:"sub-banner-title"},size:"s3",weight:"semi-bold",wordWrap:"break-word",colour:d,children:a}):(0,u.tZ)(f.X6,{customDataProps:{className:"sub-banner-title"},colour:d,tag:"h5",weight:"bold",wordWrap:"break-word",children:a}):null,n&&(0,u.tZ)(f.zx,{size:s?"md":"lg",color:"dark"===l?"primary":"secondary",onClick:o,children:n})]})]})})},eD=x.ZP.div.withConfig({componentId:"sc-bbcbea2a-0"})(["background:",";border-top-left-radius:8px;border-top-right-radius:8px;position:relative;","{padding-bottom:16px;}"],e=>{let{theme:t}=e;return t.colors.neutral50},b.M.mbDown),eI=e=>{var t,i,a,r,n,o,l,c;let{homePage:s}=e,d=B.D.useTranslation(),{isMobile:m,isDesktop:p}=y.v3.useDevice(),[h,b]=(0,g.useState)(void 0),[w,x]=(0,g.useState)(void 0),[C,Z]=(0,g.useState)(null);(0,g.useEffect)(()=>{M.lu.getSuggestionBlocksData(!1).then(e=>{var t,i;b((null==e?void 0:null===(i=e.data)||void 0===i?void 0:null===(t=i.items)||void 0===t?void 0:t.map(y.lZ.formatSuggestionBlock).filter(P.$K))||[])}),M.lu.getSuggestionBlocksData(!0).then(e=>{var t,i,a;x((null===(t=(null==e?void 0:null===(a=e.data)||void 0===a?void 0:null===(i=a.items)||void 0===i?void 0:i.map(y.lZ.formatSuggestionBlock).filter(P.$K))||[])||void 0===t?void 0:t[0])||null)}),M.lu.getCareTopService().then(e=>{var t;Z((null==e?void 0:null===(t=e._data)||void 0===t?void 0:t.top_services)?y.lZ.formatHomepageTopService(e._data.top_services):null)})},[]);let k=void 0===w,D=void 0===C;return(0,u.BX)(eD,{id:"skinner-container",children:[!!(null==s?void 0:null===(t=s.slideBanners)||void 0===t?void 0:t.length)&&(0,u.tZ)(L,{bannerItems:s.slideBanners.map((e,t)=>({image:e.featuredImage,mobileImage:e.mobileImage,link:e.url,alt:e.alt||e.name||"home banner ".concat(t+1)})),subBannerItems:null===(i=s.subBanners)||void 0===i?void 0:i.map((e,t)=>({image:e.featuredImage,mobileImage:e.mobileImage,link:e.url,title:e.name,alt:e.alt||e.name||"home subbanner ".concat(t+1)}))}),k&&(0,u.tZ)(f.EW,{noGutter:m,customDataProps:{style:{marginBottom:m?8:16}},children:(0,u.tZ)(v.O,{radius:m?"xs":"lg",width:"100%",height:m?"360px":"410px",sx:{":after":{background:"#DA4326"}}})}),w&&(0,u.tZ)(f.EW,{noGutter:m,customDataProps:{style:{marginBottom:m?8:16}},children:(0,u.tZ)(E,{block:w,noCategoryList:!0})}),!!(null==s?void 0:null===(a=s.popularCategories)||void 0===a?void 0:a.length)&&(0,u.tZ)(eC,{items:s.popularCategories.map(e=>({image:e.logo,name:e.name,link:_.z.getLocalisedUrl(e.slug,"CATEGORY").toString()}))}),!!(null==s?void 0:null===(r=s.promotions)||void 0===r?void 0:r.length)&&(0,u.tZ)(f.EW,{noGutter:!p,children:(0,u.tZ)(eM.q,{heading:d({id:"home.promotion.title",defaultMessage:"Ưu đ\xe3i cho th\xe0nh vi\xean"}),items:s.promotions})}),void 0===h?(0,u.BX)(f.EW,{noGutter:m,children:[(0,u.tZ)(v.O,{radius:m?"xs":"lg",style:{marginBottom:m?8:16},width:"100%",height:"380px"}),(0,u.tZ)(v.O,{radius:m?"xs":"lg",style:{marginBottom:m?8:16},width:"100%",height:"380px"}),(0,u.tZ)(v.O,{radius:m?"xs":"lg",style:{marginBottom:m?8:16},width:"100%",height:m?"410px":"670px"}),(0,u.tZ)(v.O,{radius:m?"xs":"lg",style:{marginBottom:m?8:16},width:"100%",height:m?"410px":"620px"})]}):null==h?void 0:h.map((e,t)=>(0,u.tZ)(f.EW,{noGutter:m,customDataProps:{style:{marginBottom:m?8:16}},children:(0,u.tZ)(E,{block:e,noCategoryList:!0})},t)),D?(0,u.tZ)(f.EW,{noGutter:m,children:(0,u.tZ)(v.O,{radius:m?"xs":"lg",style:{marginBottom:m?8:16},width:"100%",height:m?"620px":"575px"})}):!!(null==C?void 0:null===(n=C.servicesList)||void 0===n?void 0:n.length)&&(0,u.tZ)(ev,{topServices:C}),!!(null==s?void 0:null===(o=s.footerBanners)||void 0===o?void 0:o.length)&&(0,u.tZ)(eB,{items:s.footerBanners.map(e=>({image:e.featuredImage,alt:e.alt,mobileImage:e.mobileImage,link:e.url})),customDataProps:{style:{marginBottom:m?0:24}}}),!!(null==s?void 0:null===(l=s.brands)||void 0===l?void 0:l.length)&&(0,u.tZ)(eE,{items:s.brands.map(e=>({name:e.name,image:e.image||e.pmcImage||"",link:_.z.getLocalisedUrl(e.slug,"BRAND").toString()}))||[]}),!!(null==s?void 0:null===(c=s.blogPosts)||void 0===c?void 0:c.length)&&(0,u.tZ)($,{items:s.blogPosts.map(e=>J(e,d))}),(0,u.tZ)(K,{})]})};var eS=i(804),eN=i(76902),eO=!0,eF=e=>{var t,i,a;let{homePage:r,canonicalUrl:n}=e,o=y.D1.useTranslation(),l=y.zM.useLocale();return(0,u.tZ)(u.HY,{children:(0,u.tZ)(eS._2,{locale:l,showStickyBottomMenu:!0,bottomBarProps:{defaultMenuItemType:"home"},SEOData:{canonicalUrl:n,schemaData:(null===(i=eN.X1[l])||void 0===i?void 0:null===(t=i.HOME)||void 0===t?void 0:t.call(i))||"",SEOTitle:(null==r?void 0:r.metaTitle)||o({id:"home.seo.title",defaultMessage:"{site} - Cửa h\xe0ng trực tuyến - Thực phẩm chức năng v\xe0 Sản phẩm sức khỏe"},{site:(null===(a=eN.CX[l])||void 0===a?void 0:a.SITE_NAME_FORMATTED)||""}),SEODescription:(null==r?void 0:r.metaDescription)||o({id:"home.seo.description",defaultMessage:"Kh\xe1m ph\xe1 c\xe1c sản phẩm chăm s\xf3c mẹ b\xe9, thiết bị y tế c\xe1 nh\xe2n v\xe0 thực phẩm chức năng tại {site}. Nu\xf4i dưỡng c\xe1c b\xe9 y\xeau, cải thiện sức khỏe v\xe0 tăng cường sự ph\xe1t triển. Mua ngay!"}),customMetaData:[{name:"keywords",content:(null==r?void 0:r.metaKeywords)||""}]},children:(0,u.tZ)(h.Z,{children:(0,u.tZ)(eI,{homePage:r})})})})}}},function(e){e.O(0,[2551,9377,2353,2248,170,479,6220,7266,9268,5934,2888,9774,179],function(){return e(e.s=48312)}),_N_E=e.O()}]);