"use strict";(self.webpackChunkhhgDiscoverV1=self.webpackChunkhhgDiscoverV1||[]).push([[5938],{Rvmt:function(e,a,t){t.d(a,{Z:function(){return o}});var r=t("m9eq");let o={formatProductPromotion:e=>e?{id:e.id||0,name:e.name||"",thumbnail:e.thumbnail||"",expirationDate:e.expiration_date||""}:null,formatPriceInfo:e=>e?{final:e.final||0,regular:e.regular||0,discountPercent:e.discount_percent||0}:null,formatCategory:function(e,a,t){var r,n,i;let l=t?t+"/"+e.slug:e.slug,c=(null==e?void 0:null===(n=e.children)||void 0===n?void 0:null===(r=n.map)||void 0===r?void 0:r.call(n,a=>o.formatCategory(a,e.id,l)))||[];return{id:null==e?void 0:e.id,name:(null==e?void 0:e.name)||"",logo:(null==e?void 0:e.logo)||"",slug:(null==e?void 0:e.slug)||"",fullSlug:l||"",children:c,parentId:a||0,products:(null===(i=e.products)||void 0===i?void 0:i.map(this.formatProduct))||[]}},formatProduct:e=>{var a,t,n;return e?{id:e.id||0,price:e.price&&o.formatPriceInfo(e.price)||{final:0,regular:0,discountPercent:0},thumbnail:e.thumbnail||"",name:e.name||"",averageRating:Number((e.average_rating||0).toFixed(2)),reviewsCount:e.reviews_count||0,tag:e.tag||null,sku:e.sku||"",slug:e.slug||"",images:e.images||[],tags:e.tags||[],unit:e.unit||"",brand:e.brand?{name:e.brand.name||"",image:e.brand.image||"",slug:e.brand.slug||"",productsCount:e.brand.products_count||0}:null,description:e.description||"",productPromotions:(null===(t=e.product_promotions)||void 0===t?void 0:null===(a=t.map)||void 0===a?void 0:a.call(t,o.formatProductPromotion).filter(r.O9))||[],isInStock:(null==e?void 0:e.is_in_stock)||!1,isAffiliateProduct:(null==e?void 0:e.is_affiliate_product)||!1,affiliates:(null===(n=e.affiliates)||void 0===n?void 0:n.map(e=>({channelCode:e.channel_code||"",price:e.price,url:e.url})))||[]}:null}}},magG:function(e,a,t){t.d(a,{v:function(){return CarouselOrListingBlock}});var r=t("BGKE"),o=t("+OUp"),n=t.n(o);let i=(0,o.createContext)({});var l=t("P+HS"),c=t("vH4S"),s=t("dDsW"),d=t("JPg4"),u=t("yVya"),m=(0,c.createStyles)(e=>({bar:{transitionDuration:"0ms",background:e.colors.neutral[3]},root:{maxWidth:"calc(100% - 16px)",marginLeft:0,marginRight:0,height:(0,c.rem)(4),background:"transparent",position:"relative","&:before":{position:"absolute",content:'""',top:0,left:0,right:0,bottom:0,background:"#fff",opacity:.25}}}));let CarouselProgressBar=e=>{let{embla:a,styles:t,...n}=e,{classes:i}=m(void 0,{name:"CarouselProgressBar",styles:t}),[l,s]=(0,o.useState)(0),d=(0,o.useCallback)(()=>{if(!a)return;let e=Math.max(0,Math.min(1,a.scrollProgress()));s(100*e)},[a,s]);return(0,o.useEffect)(()=>{if(a)return a.on("scroll",d),d(),()=>{a.off("scroll",d)}},[a,d]),(0,r.Y)(c.Progress,{value:l,classNames:{bar:i.bar,root:i.root},size:"sm",...n})};var p=t("a5L+"),g=t("5Q4Z"),h=t("iZ8j"),f=(0,c.createStyles)((e,a)=>{let{showFullSlide:t}=a;return{arrow:{position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:2,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",background:"white",cursor:"pointer",transition:"all .2s ease",userSelect:"none","&:hover":{backgroundColor:e.colors.neutral100,borderColor:e.colors.neutral100},"&.disabled":{opacity:0,cursor:"inherit"},...t?{width:(0,c.rem)(40),height:(0,c.rem)(40),opacity:.85,boxShadow:"1px 4px 8px 1px rgba(0, 0, 0, 0.1)"}:{width:(0,c.rem)(30),height:(0,c.rem)(30),border:"1px solid ".concat(e.colors.neutral200)}},arrowIcon:{transition:"all .2s ease"},arrowPrev:{left:0,[e.fn.largerThan("sm")]:{left:t?(0,c.rem)(-60):(0,c.rem)(-15)}},arrowNext:{right:0,[e.fn.largerThan("sm")]:{right:t?(0,c.rem)(-60):(0,c.rem)(-15)}}}});let x=(0,o.memo)(function(e){let{styles:a,classNames:t}=e,{embla:n,slideInfo:l,showFullSlide:s,prepareSlidesAround:d}=(0,o.useContext)(i),{classes:u,cx:m}=f({showFullSlide:s},{name:"CarouselOrListingBlock__Arrows",styles:a,classNames:t}),p=(0,o.useCallback)(()=>{n&&(d(Math.max(n.selectedScrollSnap()-1,0)),n.scrollPrev())},[n,d]),x=(0,o.useCallback)(()=>{n&&(d(Math.min(n.selectedScrollSnap()+1,l.totalSlide-1)),n.scrollNext())},[n,d,l.totalSlide]);return(0,r.FD)(r.FK,{children:[(0,r.Y)(c.Box,{className:m("arrow","arrow-prev",u.arrow,u.arrowPrev,l.canScrollPrev?"":"disabled"),onClick:p,children:(0,r.Y)(g.A,{className:u.arrowIcon,size:18,useCurrentColor:!0})}),(0,r.Y)(c.Box,{className:m("arrow","arrow-next",u.arrow,u.arrowNext,l.canScrollNext?"":"disabled"),onClick:x,children:(0,r.Y)(h.A,{className:u.arrowIcon,size:18,useCurrentColor:!0})})]})});var v=(0,c.createStyles)((e,a)=>{let{showFullSlide:t}=a;return{carouselWrapper:{position:"relative",".mantine-Carousel-viewport":{position:"relative","&:before, &:after":{content:'""',position:"absolute",top:0,bottom:0,zIndex:1,width:(0,c.rem)(10),background:"#fff",boxShadow:"0px 0 10px 10px rgba(0, 0, 0, 0.05)",opacity:0,transition:"opacity 0.15s ease",willChange:"opacity"},"&:before":{right:"100%",boxShadow:"0px 0 -10px 10px rgba(0, 0, 0, 0.05)"},"&:after":{left:"100%",boxShadow:"0px 0 10px 10px rgba(0, 0, 0, 0.05)"}},"&.still-slide .mantine-Carousel-viewport":{"&:after":{opacity:1}},"&.end-slide .mantine-Carousel-viewport":{"&:before":{opacity:1}},[e.fn.smallerThan("sm")]:{...!t&&{marginRight:(0,c.rem)(-16)}}}}});let y=(0,o.memo)(function(e){let{children:a,styles:t,className:n,classNames:l,...s}=e,{slideInfo:d,showFullSlide:u}=(0,o.useContext)(i),{classes:m,cx:p}=v({showFullSlide:u},{name:"CarouselOrListingBlock__CarouselWrapper",styles:t,classNames:l});return(0,r.Y)(c.Box,{className:p(m.carouselWrapper,u?"":d.canScrollNext?"still-slide":"end-slide",n),...s,children:a})});var b=(0,c.createStyles)((e,a)=>{let{showFullSlide:t,gapMobile:r,gapDesktop:o,withIndicators:n}=a;return{wrapper:{display:"flex",flexDirection:"column",gap:(0,c.rem)(12)},sliderWrapper:{contain:"layout style paint",'[data-carousel-active="false"] &':{contentVisibility:"hidden",pointerEvents:"none"},"& > *":{height:"100%"}},listing:{display:"flex",gap:(0,c.rem)(r),alignItems:"stretch",[e.fn.largerThan("sm")]:{gap:(0,c.rem)(o)}},itemWrapper:{flex:"1 1 0px","& > *":{height:"100%"}},carouselRoot:{"& .mantine-Carousel-container":{backfaceVisibility:"hidden"},"& .mantine-Carousel-slide":{transform:"translateZ(0)"}},carouselViewport:{overflow:"hidden"},carouselIndicators:{position:"static",marginTop:"24px"},carouselIndicator:{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()}},progressBar:{background:e.colors.neutral[3]},progressRoot:{marginTop:(0,c.rem)(20),backgroundColor:e.colors.neutral[1],[e.fn.smallerThan("sm")]:{...!t&&{marginRight:(0,c.rem)(16)}}},arrow:{...n&&{marginTop:-16}},arrowPrev:{},arrowNext:{},arrowIcon:{}}});let createInitialSlideInfo=e=>{let a=Array.from({length:Math.min(e,5)},(e,a)=>a);return{canScrollNext:!0,canScrollPrev:!1,slidesInView:[0],currentSlide:0,totalSlide:e,renderedSlideIndices:a}},buildRenderedSlideIndices=(e,a,t)=>{let r=new Set;for(let t=a-2;t<=a+2;t+=1)t>=0&&t{a>=0&&ae-a)},getRenderedSlideIndices=(e,a)=>buildRenderedSlideIndices(a,e.selectedScrollSnap(),e),CarouselOrListingBlock=e=>{let{children:a=[],lengthToCarouselDesktop:t=3,lengthToCarouselMobile:n=2,percentOfEndSlideDesktop:l=38,percentOfEndSlideMobile:c=75,hasShadowAtEndSlide:s,showFullSlide:d,carouselSetting:u,gapDesktop:m=16,gapMobile:p=16,disableCarousel:g,lazyLoad:h,autoPlay:f,delayTime:x,onSlideChange:v,hideProgressBar:y,isActive:b=!0,loop:w,duration:C}=e,[N,B]=(0,o.useState)(null),[S,Y]=(0,o.useState)([]),{slideInfo:I,prepareSlidesAround:P}=function(e,a,t){let r=!(arguments.length>3)||void 0===arguments[3]||arguments[3],[n,i]=(0,o.useState)(()=>createInitialSlideInfo(a)),l=(0,o.useRef)(t);l.current=t,(0,o.useEffect)(()=>{i(e=>e.totalSlide===a?e:createInitialSlideInfo(a))},[a]),(0,o.useEffect)(()=>{if(!e||!r)return;let syncSlideInfo=()=>{i({canScrollNext:e.canScrollNext(),canScrollPrev:e.canScrollPrev(),slidesInView:e.slidesInView(),currentSlide:e.selectedScrollSnap(),totalSlide:a,renderedSlideIndices:getRenderedSlideIndices(e,a)})},o=0,syncSlidesInView=()=>{l.current&&(o||(o=requestAnimationFrame(()=>{o=0,i(a=>{let t=e.slidesInView();return a.slidesInView.length===t.length&&a.slidesInView.every((e,a)=>e===t[a])?a:{...a,slidesInView:t}})})))};return e.on("select",syncSlideInfo),e.on("reInit",syncSlideInfo),e.on("pointerDown",syncSlideInfo),t&&e.on("scroll",syncSlidesInView),syncSlideInfo(),()=>{e.off("select",syncSlideInfo),e.off("reInit",syncSlideInfo),e.off("pointerDown",syncSlideInfo),t&&e.off("scroll",syncSlidesInView),o&&cancelAnimationFrame(o)}},[e,a,t,r]);let c=(0,o.useCallback)(t=>{e&&r&&i(r=>{let o=buildRenderedSlideIndices(a,t,e);return r.renderedSlideIndices.length===o.length&&r.renderedSlideIndices.every((e,a)=>e===o[a])?r:{...r,renderedSlideIndices:o}})},[e,r,a]);return{slideInfo:n,prepareSlidesAround:c}}(N,S.length,h,b),T=(0,o.useMemo)(()=>({embla:N,setEmbla:B,filteredChild:S,setFilteredChild:Y,slideInfo:I,prepareSlidesAround:P,lengthToCarouselDesktop:t,lengthToCarouselMobile:n,percentOfEndSlideDesktop:l,percentOfEndSlideMobile:c,hasShadowAtEndSlide:s,showFullSlide:d,carouselSetting:u,gapDesktop:m,gapMobile:p,disableCarousel:g,lazyLoad:h,autoPlay:f,delayTime:x,onSlideChange:v,hideProgressBar:y,isActive:b,loop:w,duration:C}),[N,S,I,P,t,n,l,c,s,d,u,m,p,g,h,f,x,v,y,b,w,C]);return(0,r.Y)(i.Provider,{value:T,children:a})};CarouselOrListingBlock.LazyLoadItem=e=>{let{children:a,index:t}=e,{slideInfo:n}=(0,o.useContext)(i),l=n.slidesInView.includes(t-1),c=(0,o.useMemo)(()=>(0,r.Y)(r.FK,{children:a(l)}),[l]);return c},CarouselOrListingBlock.Paging=e=>{let{formatMessage:a}=(0,s.A)(),{filteredChild:t,slideInfo:n}=(0,o.useContext)(i);return t.length>0&&n?(0,r.Y)(c.Box,{...e,children:(0,r.Y)(l.Text,{size:"p3",children:a({id:"category.title"},{total:n.totalSlide,number:(0,r.Y)("strong",{children:n.currentSlide+1})})})}):null},CarouselOrListingBlock.Slider=e=>{let{children:a=[],arrow:t=!0,listingLayoutColumns:s,listingGap:m,styles:g,classNames:h,...f}=e,{lengthToCarouselDesktop:v=3,lengthToCarouselMobile:w=2,percentOfEndSlideDesktop:C=38,percentOfEndSlideMobile:N=75,gapDesktop:B=16,gapMobile:S=16,showFullSlide:Y,carouselSetting:I,disableCarousel:P,lazyLoad:T,onSlideChange:D,filteredChild:k,setFilteredChild:M,embla:z,setEmbla:A,autoPlay:F,delayTime:R,hideProgressBar:L,isActive:E=!0,loop:_}=(0,o.useContext)(i),V=(0,p.a)(),H=(0,o.useMemo)(()=>void 0!==(null==I?void 0:I.withIndicators)?null==I?void 0:I.withIndicators:!T&&!V,[V,T]),{classes:W}=b({showFullSlide:Y,gapMobile:S,gapDesktop:B,withIndicators:H},{name:"CarouselOrListingBlock__Slider",styles:g,classNames:h}),O=(0,o.useRef)((0,d.A)({playOnInit:F,delay:R})),j=k.length>=(V?w:v),K=null!=m?m:V?S:B,G=s?"calc((100% - ".concat((s-1)*K,"px) / ").concat(s,")"):void 0,Z=s?{display:"flex !important",flexWrap:"wrap",gap:(0,c.rem)(K),alignItems:"stretch",justifyContent:"flex-start"}:void 0,U=G?{boxSizing:"border-box",flex:"0 0 ".concat(G," !important"),width:G,maxWidth:G,minWidth:0}:void 0;return(0,o.useEffect)(()=>{let e=(0,u.A)(a).filter(e=>n().isValidElement(e));M(a=>a.length===e.length&&a.every((a,t)=>a===e[t])?a:e)},[a]),(0,r.Y)(c.Box,{...f,"data-carousel-active":E,children:!P&&j?(0,r.FD)(y,{children:[(0,r.Y)(l.Carousel,{slideSize:Y?V?"".concat(100/(w-1),"%"):"".concat(100/(v-1),"%"):V?"".concat(N,"%"):"".concat(C,"%"),loop:"boolean"==typeof _?_:!!Y,align:"start",slideGap:V?"".concat(S,"px"):"".concat(B,"px"),getEmblaApi:A,withIndicators:H,withControls:!1,plugins:[...F&&R?[O.current]:[]],onSlideChange:D,classNames:{root:W.carouselRoot,viewport:W.carouselViewport,indicators:W.carouselIndicators,indicator:W.carouselIndicator},...I,onMouseLeave:()=>{var e;return F&&R&&(null==O?void 0:null===(e=O.current)||void 0===e?void 0:e.play())},onTouchEnd:()=>{var e;return F&&R&&(null==O?void 0:null===(e=O.current)||void 0===e?void 0:e.play())},children:k.map((e,a)=>(0,r.Y)(l.Carousel.Slide,{className:W.sliderWrapper,children:e},String(a)))}),!V||L||H?null:(0,r.Y)(CarouselProgressBar,{embla:z,classNames:{bar:W.progressBar,root:W.progressRoot}}),(!V||t)&&(0,r.Y)(x,{classNames:{arrow:W.arrow,arrowPrev:W.arrowPrev,arrowNext:W.arrowNext,arrowIcon:W.arrowIcon}})]}):(0,r.Y)(c.Box,{className:W.listing,"data-slide-length":k.length,...s?{"data-layout-columns":s}:{},sx:Z,children:k.map((e,a)=>(0,r.Y)(c.Box,{className:W.itemWrapper,sx:U,children:e},String(a)))})})}},jeYB:function(e,a,t){t.r(a),t.d(a,{ProductsWidget:function(){return ProductsWidget}});var r=t("BGKE"),o=t("+OUp"),n=t.n(o),i=t("U+Ez"),l=t("vH4S"),c=t("dDsW"),s=t("JOt+"),d=t("Rvmt"),u=t("LSb+"),m=t("QdPe"),p=t("CN7H"),g=t("CWxQ"),h=t("VnHZ"),f=(0,l.createStyles)(e=>({root:{display:"flex",flexDirection:"column",gap:(0,l.rem)(16),background:e.colors.blue[0],padding:(0,l.rem)(16),borderRadius:8,[e.fn.largerThan("sm")]:{padding:(0,l.rem)(24)}},heading:{borderLeft:"5px solid ".concat(e.colors.primaryBase),paddingLeft:12},headingText:{},cardRoot:{},cardThumbnail:{}})),x=t("P+HS"),icons_Cart=e=>{let{size:a=40,color:t="#595959",...o}=e;return(0,r.Y)("svg",{width:a,height:a,fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:(0,r.Y)("path",{d:"M9.987.822a.833.833 0 0 0-.82.845v1.666H7.5A.833.833 0 1 0 7.5 5h1.667v1.667a.833.833 0 1 0 1.666 0V5H12.5a.833.833 0 1 0 0-1.667h-1.667V1.667a.832.832 0 0 0-.846-.845ZM2.56 1.67l-.893.008a.833.833 0 1 0 .014 1.667l.889-.008h.002L5.29 9.862a.833.833 0 0 0-.01.12l-.962 1.537c-.699 1.115.15 2.648 1.466 2.648H15a.832.832 0 1 0 0-1.667H5.784c-.092 0-.103-.018-.053-.098l.98-1.569h6.223c.605 0 1.164-.33 1.457-.857l3.428-6.17a.833.833 0 1 0-1.457-.81l-3.427 6.17h-6.13L4.11 2.695A1.672 1.672 0 0 0 2.562 1.67H2.56ZM5.833 15a1.667 1.667 0 1 0 0 3.333 1.667 1.667 0 0 0 0-3.333Zm8.334 0a1.667 1.667 0 1 0 0 3.333 1.667 1.667 0 0 0 0-3.333Z",fill:t})})},v=t("/sjq"),y=t("AG8C"),b=t("9brV"),w=t("m9eq"),C=(0,l.createStyles)((e,a)=>{let{layout:t,hasPromotion:r}=a;return{root:{background:"#fff",borderRadius:8,padding:8,display:"flex",flexDirection:"column",justifyContent:"space-between",flex:"1 1 0px",..."horizon"===t?{gap:(0,l.rem)(8)}:{gap:(0,l.rem)(4)}},thumbnail:{position:"relative",..."horizon"===t&&{width:(0,l.rem)(120),flexGrow:0}},info:{display:"flex",flexDirection:"horizon"===t?"row":"column",gap:8},mainInfo:{position:"relative",display:"flex",flexDirection:"column",gap:8,..."horizon"===t&&{justifyContent:"center",gap:4,width:"calc(100% - 128px)"}},name:{..."horizon"===t&&r&&{paddingRight:(0,l.rem)(30)}},prices:{display:"flex",gap:(0,l.rem)(8)},mainPrice:{color:e.colors.red[8]},originPrice:{textDecoration:"line-through",color:"#737373"},actions:{display:"flex"},cartBtn:{borderTopRightRadius:0,borderBottomRightRadius:0},buyBtn:{width:"calc(100% - 40px)",borderTopLeftRadius:0,borderBottomLeftRadius:0},affBuyBtn:{flexGrow:1},discountTag:{position:"absolute",right:0,top:0}}}),N=t("wo9K"),B=t("q9DY"),S=t("f8uB"),Y=(0,l.createStyles)(e=>({root:{".title-container":{display:"flex",alignItems:"center",justifyContent:"space-between"},".image-info-wrapper":{display:"flex",gap:(0,l.rem)(16),alignItems:"center",marginBottom:(0,l.rem)(12),".product-image":{borderRadius:(0,l.rem)(3),width:(0,l.rem)(120),height:(0,l.rem)(120),objectFit:"contain"}},".title-divider":{borderTop:"1px solid #e4e8ec",margin:"16px 0 12px",[e.fn.smallerThan("sm")]:{marginTop:(0,l.rem)(9)}}}})),I=t("iZ8j"),P=t("a5L+"),T=t("rBCA"),D=t("CL9C"),k=t("iBNF");let M=(0,T.A)("div",{target:"ebdvwdl0"})("display:grid;gap:8px;&[data-more]{transition:max-height 0.6s;max-height:0;overflow:hidden;margin-top:8px;}&[data-show-all='true']{max-height:400px;}&[data-size='auto']{",D.M.mbDown,"{grid-template-columns:repeat(2,1fr);&[data-one='true']{grid-template-columns:1fr;}}&[data-size='sm']{grid-template-columns:repeat(2,1fr);&[data-one='true']{grid-template-columns:1fr;}}&[data-size='lg']{grid-template-columns:repeat(4,1fr);}"),z=(0,T.A)("a",{target:"ebdvwdl1"})("display:flex;text-decoration:none;padding:6px;align-items:center;gap:8px;border:1px solid ",k.w.colors.blue100,";border-radius:8px;&:hover,&:active,&:focus{background-color:",k.w.colors.blue100,";border-color:",k.w.colors.primaryBase,";}.info-text{display:flex;flex-direction:column;.price-text{display:flex;align-items:center;}svg,img{margin-left:4px;}img{object-fit:cover;border-radius:4px;}svg path{fill:",k.w.colors.red800,";}}"),A=(0,T.A)(x.Button,{target:"ebdvwdl2"})("&[data-show='true']{margin-top:0px;}> span{display:inline-flex;align-items:center;}margin-top:-8px;color:",k.w.colors.primaryBase,";svg[data-show='true']{transform:rotate(-90deg);}svg path{fill:",k.w.colors.primaryBase,";}&[data-display-size='auto']{",D.M.mbUp,"{padding-left:6px;}",D.M.mbDown,"{width:100%;}}&[data-display-size='sm']{width:100%;}&[data-display-size='lg']{padding-left:6px;}"),F={shopee:{name:"Shopee",icon:function(e){return(0,r.Y)("img",{loading:"lazy",src:"/images/vendors/vendor-shopee.png",style:{width:e,height:e},alt:"Lazada"})}},lazada:{name:"Lazada",icon:function(e){return(0,r.Y)("img",{loading:"lazy",src:"/images/vendors/vendor-lazada.png",style:{width:e,height:e},alt:"Lazada"})}},tiki:{name:"Tiki",icon:function(e){return(0,r.Y)("img",{loading:"lazy",src:"/images/vendors/vendor-tiki.png",style:{width:e,height:e},alt:"Tiki"})}},hellobacsi:{name:"Hellobacsi",icon:function(e){return(0,r.Y)("img",{loading:"lazy",src:"/images/vendors/vendor-hellobacsi.png",style:{width:e,height:e},alt:"affiliate hellobacsi"})}}},BuyNowButtons=e=>{var a,t;let{affiliates:o,size:s="auto",...d}=e,{locale:u}=(0,y.$)(),m=(0,P.a)(),{formatMessage:p}=(0,c.A)(),g="auto"===s&&m||"sm"===s?4:8,[h,f]=n().useState(!1),b=o.length>g;return(0,r.FD)(l.Box,{...d,children:[(0,r.Y)("div",{style:{marginBottom:8},children:m?(0,r.Y)(i.H,{tag:"h5",as:"p",children:p({id:"product.affiliate.buyNow",defaultMessage:"Mua ngay"})}):(0,r.Y)(x.Text,{size:"s4",children:p({id:"product.affiliate.buyNow",defaultMessage:"Mua ngay"})})}),(0,r.Y)(M,{"data-size":s,"data-one":(null==o?void 0:o.length)<=1,children:null==o?void 0:null===(a=o.slice(0,g))||void 0===a?void 0:a.map((e,a)=>{var t,o;return F[e.channelCode]&&(0,r.FD)(z,{href:e.url,target:"_blank","data-event-label":"https://".concat(v.domainLocales[u]).concat(e.url),"data-event-category":"Ecommerce","data-event-action":"Buy Now Click","data-product-channel":e.channelCode.charAt(0).toUpperCase()+e.channelCode.slice(1),children:[(null===(t=F[e.channelCode])||void 0===t?void 0:t.icon(36))||"",(0,r.FD)("div",{className:"info-text",children:[(0,r.Y)(x.Text,{size:"n1",children:null===(o=F[e.channelCode])||void 0===o?void 0:o.name}),(0,r.FD)(x.Text,{className:"price-text",size:"s4",sx:e=>({color:e.colors.red[7]}),children:[(0,w.N8)(e.price,u,"VND"),(0,r.Y)(I.A,{size:18})]})]})]},e.channelCode+a)})}),b&&(0,r.FD)(r.FK,{children:[(0,r.Y)(M,{"data-size":s,"data-more":!0,"data-show-all":String(h),children:null==o?void 0:null===(t=o.slice(8))||void 0===t?void 0:t.map((e,a)=>{var t,o;return F[e.channelCode]&&(0,r.FD)(z,{href:e.url,target:"_blank","data-event-category":"Ecommerce","data-event-action":"Shop Click","data-product-channel":e.channelCode.charAt(0).toUpperCase()+e.channelCode.slice(1),children:[(null===(t=F[e.channelCode])||void 0===t?void 0:t.icon(36))||(0,r.Y)(r.FK,{}),(0,r.FD)("div",{className:"info-text",children:[(0,r.Y)(x.Text,{size:"n1",children:null===(o=F[e.channelCode])||void 0===o?void 0:o.name}),(0,r.FD)(x.Text,{className:"price-text",size:"s4",children:[(0,w.N8)(e.price,u,"VND"),(0,r.Y)(I.A,{size:16})]})]})]},e.channelCode+a)})}),(0,r.FD)(A,{onClick:()=>f(!h),size:"sm",color:"ghost",children:[h?p({id:"common.seeLess",defaultMessage:"Thu gọn"}):p({id:"product.affiliate.seeMore",defaultMessage:"Xem th\xeam {count} s\xe0n"},{count:123}),(0,r.Y)(I.A,{})]})]})]})},ProductCardBuyNowModal=e=>{let{onClose:a,product:t,styles:o,className:n,classNames:i,...s}=e,{formatMessage:d}=(0,c.A)(),{classes:u,cx:m}=Y(void 0,{name:"ProductCardBuyNowModal",classNames:i,styles:o}),{affiliates:p=[],slug:g}=t;return(0,r.FD)(l.Box,{className:m(u.root,n),...s,children:[(0,r.FD)("div",{className:"title-container",children:[(0,r.Y)(x.Text,{size:"s3",children:d({id:"productCard.buyNowModal.title",defaultMessage:"Lựa chọn mua h\xe0ng từ c\xe1c nh\xe0 b\xe1n lẻ"})}),(0,r.Y)(B.A,{onClick:()=>{null==a||a()},style:{cursor:"pointer"}})]}),(0,r.Y)("div",{className:"title-divider"}),(0,r.FD)(l.Box,{component:"a",href:"/shop/san-pham/".concat(g,"/"),target:"_blank",className:"image-info-wrapper",children:[(0,r.Y)("img",{loading:"lazy",className:"product-image",src:t.thumbnail,alt:t.name}),(0,r.Y)(x.Text,{size:"p1",children:t.name})]}),p?(0,r.Y)(BuyNowButtons,{affiliates:p||[],size:"sm"}):(0,r.Y)(N.L,{}),(0,r.FD)(l.Box,{sx:e=>({display:"flex",gap:8,color:e.colors.green[8],marginTop:(0,l.rem)(20)}),children:[(0,r.Y)(S.A,{size:16,useCurrentColor:!0,style:{marginTop:(0,l.rem)(2)}}),(0,r.Y)(x.Text,{size:"p4",sx:e=>({color:e.colors.green[8]}),weight:"regular",children:d({id:"productCard.buyNowModal.info",defaultMessage:"Nh\xe0 b\xe1n lẻ c\xf3 thể sẽ cung cấp th\xeam nhiều thuộc t\xednh sản phẩm kh\xe1c nhau cho bạn lựa chọn"})})]})]})},ProductCard=e=>{let{product:a,onAddToCart:t,onBuyNow:n,styles:i,layout:s="vertical",className:d,classNames:u,cartBtnColor:m,...p}=e,{formatMessage:g}=(0,c.A)(),{locale:h}=(0,y.$)(),[f,N]=(0,o.useState)(!1),[B,S]=(0,o.useState)(!1),{name:Y,price:I,isInStock:P,thumbnail:T,sku:D,slug:k}=a,{classes:M,cx:z}=C({layout:s,hasPromotion:!!I.discountPercent},{name:"ProductCard",styles:i,classNames:u}),[A,F]=(0,o.useState)(!1),R="/shop/san-pham/".concat(k,"/"),discountBadge=()=>I.discountPercent?(0,r.FD)(l.Badge,{className:M.discountTag,size:"md",color:"red",variant:"filled",sx:{paddingLeft:"5px",paddingRight:"5px",height:"22px"},children:["-",0===Math.round(I.discountPercent)?Math.ceil(I.discountPercent):Math.round(I.discountPercent),"%"]}):null;return(0,r.FD)(r.FK,{children:[(0,r.FD)(l.Box,{className:z(M.root,d),"data-layout":s,...p,children:[(0,r.FD)(l.Box,{component:"a",href:R,target:"_blank",className:M.info,"data-event-category":"Ecommerce","data-event-action":"Open Product Page","data-event-label":"https://".concat(v.domainLocales[h]).concat(R),children:[(0,r.FD)(l.Box,{className:M.thumbnail,children:[(0,r.Y)(l.AspectRatio,{ratio:206/164,sx:{">img":{objectFit:"contain"}},children:(0,r.Y)("img",{loading:"lazy",src:T,alt:Y,onError:e=>e.currentTarget.src="/images/default-image.jpg"})}),"vertical"===s&&discountBadge()]}),(0,r.FD)(l.Box,{className:M.mainInfo,children:["horizon"===s&&discountBadge(),(0,r.Y)(x.Text,{size:"p4",className:M.name,children:Y}),(0,r.FD)(l.Box,{className:M.prices,children:[(0,r.Y)(x.Text,{size:"s4",className:M.mainPrice,children:(0,w.N8)(I.final,h,"VND")}),I.regular&&I.regular!==I.final?(0,r.Y)(x.Text,{size:"s4",className:M.originPrice,children:(0,w.N8)(1e6,h,"VND")}):null]})]})]}),(0,r.FD)(l.Box,{className:M.actions,children:[!a.isAffiliateProduct&&(0,r.Y)(x.Button,{variant:"light",color:m,className:M.cartBtn,loading:f,leftIcon:(0,r.Y)(icons_Cart,{size:18,color:"currentColor"}),disabled:!P,"data-event-category":"Ecommerce","data-event-action":"Add To Cart Click","data-event-label":"https://".concat(v.domainLocales[h]).concat(R),onClick:async e=>{e.preventDefault(),N(!0),await (null==t?void 0:t(1,D)),N(!1)}}),(0,r.Y)(x.Button,{className:z(a.isAffiliateProduct?M.affBuyBtn:M.buyBtn),disabled:!P,loading:B,"data-event-category":"Ecommerce","data-event-action":"Buy Now Click","data-event-label":"https://".concat(v.domainLocales[h]).concat(R),onClick:async e=>{e.preventDefault(),a.isAffiliateProduct?(a.affiliates||[]).length>0?F(!0):window.open(R):(S(!0),await (null==n?void 0:n(1,D,k)),S(!1))},children:g(P?{id:"productInfo.buyNow",defaultMessage:"Mua ngay"}:{id:"tag.outOfStock",defaultMessage:"Hết h\xe0ng"})})]})]}),(0,r.Y)(x.Modal,{target:b.D9,opened:!!A,onClose:()=>F(!1),size:(0,l.rem)(572),children:(0,r.Y)(ProductCardBuyNowModal,{product:a,onClose:()=>F(!1)})})]})};var R=t("0q2u"),L=t("oTwY"),icons_Minus=e=>{let{size:a=40,color:t="#595959",...o}=e;return(0,r.Y)("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"none",...o,children:(0,r.Y)("path",{d:"M18 13H6C5.45 13 5 12.55 5 12C5 11.45 5.45 11 6 11H18C18.55 11 19 11.45 19 12C19 12.55 18.55 13 18 13Z",fill:t})})},E=(0,l.createStyles)(e=>({root:{background:"#fff",borderRadius:(0,l.rem)(16),padding:(0,l.rem)(8),display:"flex",gap:(0,l.rem)(24),[e.fn.smallerThan("sm")]:{padding:(0,l.rem)(16),flexDirection:"column",gap:(0,l.rem)(16)}},heading:{borderLeft:"5px solid ".concat(e.colors.primaryBase),paddingLeft:12},slider:{[e.fn.largerThan("sm")]:{width:(0,l.rem)(230)}},name:{color:"#262626"},info:{display:"flex",flexDirection:"column",justifyContent:"space-between",[e.fn.largerThan("sm")]:{width:"calc(100% - 230px - 24px)"},[e.fn.smallerThan("sm")]:{gap:(0,l.rem)(16)}},mainInfo:{display:"flex",flexDirection:"column",gap:(0,l.rem)(4),alignItems:"flex-start"},prices:{display:"flex",gap:(0,l.rem)(8),alignItems:"flex-end",marginBottom:(0,l.rem)(4)},mainPrice:{color:e.colors.red[8]},originPrice:{textDecoration:"line-through",color:"#595959"},actionRows:{display:"table"},actionRow:{display:"table-row"},actionCol:{display:"table-cell",verticalAlign:"middle",padding:"4px 0"},actionLabel:{width:(0,l.rem)(110),whiteSpace:"nowrap",paddingRight:(0,l.rem)(8)},promotionTags:{display:"flex",flexDirection:"column",gap:(0,l.rem)(4)},actions:{display:"flex",gap:(0,l.rem)(8)},amountInput:{width:(0,l.rem)(40),input:{textAlign:"center"}},amountBtn:{width:(0,l.rem)(32),background:e.colors.neutral[0],borderColor:e.colors.neutral[0]},cartBtn:{},buyBtn:{[e.fn.smallerThan("sm")]:{flexGrow:1},[e.fn.largerThan("sm")]:{minWidth:(0,l.rem)(182)}},amountControl:{display:"flex",gap:(0,l.rem)(8)}})),_=t("ysNr"),V=t("wA0V");let H=(0,T.A)("div",{target:"e19a00510"})("height:0;width:100%;padding-top:100%;align-items:center;position:relative;&[data-in-popup='true']{margin-bottom:46px;",D.M.mbDown,"{margin-bottom:24px;}}&[data-no-bottom-list='true']{margin-bottom:0;}",D.M.tdOnly,"{padding-top:54%;}"),W=(0,T.A)("div",{target:"e19a00511"})("position:absolute;width:100%;height:100%;top:0;left:0;"),O=(0,T.A)("img",{target:"e19a00512"})("position:absolute;top:0;left:0;width:100%;height:100%;object-fit:contain;user-select:none;user-drag:none;&[data-blur='true']{filter:blur(4px);-webkit-filter:blur(4px);-moz-filter:blur(4px);-o-filter:blur(4px);-ms-filter:blur(4px);}"),j=(0,T.A)("div",{target:"e19a00513"})("height:0;/* take account of the border */\n padding-top:calc(100% - 2px);position:relative;cursor:pointer;border-radius:6px;background:",k.w.colors.white,";border:1px solid ",k.w.colors.neutral100,";overflow:hidden;&[data-no-border]{border:none;padding-top:100%;",D.M.tdOnly,"{padding-top:54%;}}&[data-selected='true']{border-color:",k.w.colors.primaryBase,";}"),K=(0,T.A)("div",{target:"e19a00514"})("position:absolute;top:0;left:0;width:100%;height:100%;background:#fff;display:flex;align-items:center;justify-content:center;text-align:center;");k.w.colors.gray800,k.w.colors.white,D.M.mbDown,D.M.mbDown;let G=(0,T.A)("div",{target:"e19a005110"})(".grid-layout{grid-gap:8px;grid-template-columns:repeat(var(--carousel-max),1fr) !important;}&[data-in-popup='true']{",D.M.mbDown,"{padding:0 16px;}}"),ProductImageCarousel=e=>{let{images:a,currentImageIndex:t,setCurrentImageIndex:n,openPreviewImageIndex:i,isInPopup:s,hideBottomScrollList:d,productName:u,hideSeemore:m,url:p}=e,g=(0,V.m)(),{formatMessage:h}=(0,c.A)(),[f,v]=(0,o.useState)(t||0),y=(0,P.a)(),b=s?y?3:6:4,w=void 0!==t?t:f,setCurrentImageIndex=e=>{v(e),"function"==typeof n&&n(e)},C=s?a:a.slice(0,b);return(0,r.FD)(l.Box,{sx:{"--carousel-max":b,display:"flex",flexDirection:"column",gap:(0,l.rem)(8),width:"100%"},children:[(0,r.Y)(l.Box,{component:"a",href:p,target:"_blank",children:(0,r.FD)(H,{"data-in-popup":s,children:[(0,r.Y)(W,{children:(0,r.Y)(_.S,{row:1,column:1,page:w,isDotsShown:!1,onChangePage:e=>setCurrentImageIndex(e),mode:"snapped",children:a.map((e,a)=>(0,r.Y)(j,{onClick:()=>{null==i||i(a)},"data-event-category":"Ecommerce","data-event-action":"Product Image Click","data-event-label":g,children:(0,r.Y)(O,{src:e,alt:u||"product image ".concat(a+1),onError:e=>e.currentTarget.src="/images/default-image.jpg"})},a))},a.length)}),(0,r.Y)(l.Box,{sx:e=>({background:e.colors.neutral100,padding:"2px 8px",position:"absolute",bottom:16,right:16,borderRadius:8}),children:(0,r.Y)(x.Text,{size:"n1",children:"".concat(w+1,"/").concat(a.length)})})]})}),a.length>1&&!d&&(0,r.Y)(G,{"data-in-popup":s,children:(0,r.Y)(_.S,{row:1,column:b||6,page:Math.floor(w/b),isDotsShown:!1,mode:"snapped",children:C.map((e,a)=>{let t=a+1===b&&!s&&!m;return(0,r.FD)(j,{"data-selected":a===w,onClick:()=>t?null==i?void 0:i(a):setCurrentImageIndex(a),"data-event-category":"Ecommerce","data-event-action":"Product Image Click","data-event-label":g,children:[(0,r.Y)(O,{src:e,onError:e=>e.currentTarget.src="/images/default-image.jpg"}),t&&(0,r.Y)(K,{children:(0,r.Y)(x.Text,{size:"n1",sx:e=>({color:e.fn.primaryColor()}),children:h({id:"productImageCarousel.seeAll",defaultMessage:"Xem tất cả"})})})]},a)})},a.length+"-"+b)})]})},ProductWideCard=e=>{let{product:a,styles:t,className:n,classNames:i,onAddToCart:s,onBuyNow:d,cartBtnColor:u,...m}=e,{locale:p}=(0,y.$)(),[g,h]=(0,o.useState)(!1),[f,b]=(0,o.useState)(!1),{formatMessage:C}=(0,c.A)(),N=(0,P.a)(),{name:B,images:S=[],sku:Y,slug:I,price:T,isInStock:D}=a,k=S.map(e=>e.medium),{classes:M,cx:z}=E(void 0,{name:"ProductWideCard",styles:t,classNames:i}),[A,F]=(0,o.useState)(1),_="/shop/san-pham/".concat(I,"/"),V="https://".concat(v.domainLocales[p]).concat(_);return(0,r.FD)(l.Box,{className:z(M.root,n),...m,children:[(0,r.Y)(l.Box,{className:M.slider,"data-event-category":"Ecommerce","data-event-action":"Open Product Page","data-event-label":V,children:(0,r.Y)(ProductImageCarousel,{url:_,images:k,hideSeemore:!0,hideBottomScrollList:N,productName:B})}),(0,r.FD)(l.Box,{className:M.info,children:[(0,r.FD)(l.Box,{className:M.mainInfo,children:[(0,r.Y)(l.Box,{component:"a",href:_,target:"_blank","data-event-category":"Ecommerce","data-event-action":"Open Product Page","data-event-label":V,children:(0,r.Y)(x.Text,{size:"s3",className:M.name,children:B})}),(0,r.FD)(l.Box,{className:M.prices,children:[(0,r.Y)(x.Text,{size:"s1",className:M.mainPrice,children:(0,w.N8)(T.final,p,"VND")}),T.regular&&T.regular!==T.final?(0,r.Y)(x.Text,{size:"s3",className:M.originPrice,children:(0,w.N8)(T.regular,p,"VND")}):null,T.discountPercent?(0,r.FD)(l.Badge,{size:"md",color:"red",variant:"filled",sx:{paddingLeft:"5px",paddingRight:"5px",height:"22px"},children:["-",0===Math.round(T.discountPercent)?Math.ceil(T.discountPercent):Math.round(T.discountPercent),"%"]}):null]}),!a.isAffiliateProduct&&(0,r.FD)(l.Box,{className:M.actionRows,children:[(0,r.FD)(l.Box,{className:M.actionRow,children:[(0,r.Y)(l.Box,{className:z(M.actionCol,M.actionLabel),children:(0,r.Y)(x.Text,{size:"p3",children:C({id:"productInfo.amount"})})}),(0,r.Y)(l.Box,{className:M.actionCol,children:D?(0,r.FD)(l.Box,{className:M.amountControl,children:[(0,r.Y)(x.Button,{variant:"tertiary",className:M.amountBtn,leftIcon:(0,r.Y)(icons_Minus,{color:"#595959",size:18}),onClick:()=>{F(Math.max(A-1,1))},size:"sm",color:"secondary"}),(0,r.Y)(x.Input.Number,{className:M.amountInput,size:"sm",value:A}),(0,r.Y)(x.Button,{variant:"tertiary",className:M.amountBtn,leftIcon:(0,r.Y)(L.A,{color:"#595959",size:18}),onClick:()=>{F(Math.min(A+1,999))},size:"sm"})]}):null})]}),a.productPromotions.length>0&&(0,r.FD)(l.Box,{className:M.actionRow,children:[(0,r.Y)(l.Box,{className:z(M.actionCol,M.actionLabel),children:(0,r.Y)(x.Text,{size:"p3",className:M.actionLabel,children:C({id:"productInfo.promotion"})})}),(0,r.Y)(l.Box,{className:M.actionCol,children:(0,r.Y)(l.Box,{className:M.promotionTags,children:a.productPromotions.map((e,a)=>(0,r.Y)(R.T,{type:"red",isLight:!0,isInline:!0,isSquared:!0,style:{color:"red"},children:(0,r.Y)(x.Text,{size:"n1",sx:e=>({color:"".concat(e.colors.red[7],"!important")}),children:e.name})},a))})})]})]})]}),(0,r.Y)(l.Box,{className:M.actions,children:a.isAffiliateProduct?(0,r.Y)(l.Box,{sx:{width:"100%"},children:(0,r.Y)(BuyNowButtons,{affiliates:a.affiliates||[]})}):(0,r.FD)(r.FK,{children:[(0,r.Y)(x.Button,{variant:"light",color:u,className:M.cartBtn,loading:g,leftIcon:(0,r.Y)(icons_Cart,{size:18,color:"currentColor"}),"data-event-category":"Ecommerce","data-event-action":"Add To Cart Click","data-event-label":V,onClick:async()=>{h(!0),await (null==s?void 0:s(A,Y)),F(1),h(!1)},disabled:!D}),(0,r.Y)(x.Button,{loading:f,className:M.buyBtn,"data-event-category":"Ecommerce","data-event-action":"Buy Now Click","data-event-label":V,onClick:async()=>{b(!0),await (null==d?void 0:d(A,Y,I)),F(1),b(!1)},disabled:!D,children:C(D?{id:"productInfo.buyNow",defaultMessage:"Mua ngay"}:{id:"tag.outOfStock",defaultMessage:"Hết h\xe0ng"})})]})})]})]})};var Z=t("mYBQ");let ProductsWidget=e=>{let{skuList:a="",products:t=[],styles:n,className:x,classNames:v,heading:y,layout:b,numberItemToSlideDesktop:w=4,numberItemToSlideMobile:C=3,cartBtnColor:N,...B}=e,{formatMessage:S}=(0,c.A)(),{state:{userInfo:Y,cartNumber:I},dispatch:P}=(0,o.useContext)(h.B),T=I||0,[D,k]=(0,o.useState)([]),{classes:M,cx:z}=f(void 0,{name:"ProductsWidget",styles:n,classNames:v});(0,o.useEffect)(()=>{0===t.length?a.split(",").length>0&&(async()=>{var e;let t=await (0,s.callApiNew)(u.PATHS.ECOMMERCE.GET_PRODUCT_DETAIL_BY_LIST_IDS,{params:{skuList:a.replace(/ /g,"")}},"ecommerce");k(((null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.products)||[]).map(d.Z.formatProduct))})():k(t)},[a]);let addToCart=async(e,a,t)=>{let r,{amount:o,sku:n}=e;(null==(r=(null==Y?void 0:Y.id)?await p.y.addToCart(String(n),o):await p.c.addToCart(String(n),o))?void 0:r.status)===1?null==a||a(r):null==t||t(r)},handleAddToCart=async(e,a)=>addToCart({amount:e,sku:a},()=>{(0,Z.showNotification)({title:S({id:"productInfo.addedToCart"}),message:"",type:"success"}),P({type:g.Q.UPDATE_CART,payload:T+e})},()=>(0,Z.showNotification)({message:S({id:"notify.error.message",defaultMessage:"Đ\xe3 xảy ra lỗi, vui l\xf2ng thử lại"}),type:"danger"})),handleBuyNow=async(e,a)=>addToCart({amount:e,sku:a},()=>{(0,Z.showNotification)({title:S({id:"productInfo.addedToCart"}),message:"",type:"success"}),P({type:g.Q.UPDATE_CART,payload:T+1}),window.open("/shop/gio-hang/")},()=>(0,Z.showNotification)({message:S({id:"notify.error.message",defaultMessage:"Đ\xe3 xảy ra lỗi, vui l\xf2ng thử lại"}),type:"danger"})),A=(null==b?void 0:b[D.length-1])||"vertical";return D.length>0?(0,r.FD)(l.Box,{className:z(M.root,x),...B,children:[y&&(0,r.Y)(l.Box,{className:M.heading,children:(0,r.Y)(i.H,{tag:"h4",className:z("title",M.headingText),children:y})}),(0,r.Y)(m.CL,{showFullSlide:!0,lengthToCarouselDesktop:w,lengthToCarouselMobile:C,children:(0,r.Y)(m.CL.Slider,{children:D.map((e,a)=>"wide-horizon"===A?(0,r.Y)(ProductWideCard,{cartBtnColor:N,classNames:{root:M.cardRoot,thumbnail:M.cardThumbnail},product:e,onAddToCart:handleAddToCart,onBuyNow:handleBuyNow},String(a)):(0,r.Y)(ProductCard,{className:M.cardRoot,product:e,onAddToCart:handleAddToCart,onBuyNow:handleBuyNow,cartBtnColor:N,layout:A},String(a)))})})]}):null}},QdPe:function(e,a,t){t.d(a,{CL:function(){return CarouselOrListingBlockWrapper}});var r=t("BGKE"),o=t("+OUp"),n=t("magG"),i=t("3CQ3"),l=(0,t("vH4S").createStyles)((e,a)=>{let{color:t}=a;return{arrow:{...t&&{border:"1px solid ".concat(t),"&:hover":{backgroundColor:e.fn.lighten(t,.9)}}},arrowIcon:{...t&&{color:t}}}});let CarouselOrListingBlockWrapper=e=>(0,r.Y)(n.v,{...e});CarouselOrListingBlockWrapper.Slider=e=>{let{activeTheme:a}=(0,o.useContext)(i.d),{classes:t}=l({color:null==a?void 0:a.primary});return(0,r.Y)(n.v.Slider,{...e,classNames:{arrow:t.arrow,arrowIcon:t.arrowIcon,...e.classNames}})},CarouselOrListingBlockWrapper.Paging=n.v.Paging},lK07:function(e,a,t){t.d(a,{J3:function(){return n},k4:function(){return o},yT:function(){return r}});let r={"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},o={"ms-MY":"Rm"},n={"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,a,t){t.d(a,{N8:function(){return currencyFormat},O9:function(){return isDefined},m$:function(){return currencyFormatMalaysia}});var r=t("iZSu"),o=t("lK07");function isDefined(e){return null!=e}function currencyFormat(e,a,t){return e&&a?new Intl.NumberFormat(a,{style:"currency",currency:t}).format(Number(e)):"0 ".concat(o.yT["vi-VN"]||"")}function currencyFormatMalaysia(e,a){if(!e)return"".concat(o.k4[r.ne.Malaysia]||"","0");let t=new Intl.NumberFormat(r.ne.Malaysia,{minimumFractionDigits:0,maximumFractionDigits:0}).format(Number(e));return"".concat(a||o.k4[r.ne.Malaysia]).concat(t)}}}]);