"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7644],{"SjA+":function(e,t,r){r.d(t,{Y:function(){return CarouselOrListingBlock}});var a=r("BGKE"),l=r("q1tI");let n=(0,l.createContext)({});var i=r("UldL"),o=r("Eso5"),c=r("dDsW"),s=r("u5t1"),d=r("mYVa"),p=r("JPg4"),g=r("yVya"),h=r("sT6G"),m=r("hXNO"),u=r("5Q4Z"),x=r("iZ8j"),y=r("/npG"),f=(0,y.k)((e,t)=>{let{showFullSlide:r}=t;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"},...r?{width:(0,d.h)(40),height:(0,d.h)(40),opacity:.85,boxShadow:"1px 4px 8px 1px rgba(0, 0, 0, 0.1)"}:{width:(0,d.h)(30),height:(0,d.h)(30),border:"1px solid ".concat(e.colors.neutral200)}},arrowIcon:{transition:"all .2s ease"},arrowPrev:{left:0,[e.fn.largerThan("sm")]:{left:r?(0,d.h)(-60):(0,d.h)(-15)}},arrowNext:{right:0,[e.fn.largerThan("sm")]:{right:r?(0,d.h)(-60):(0,d.h)(-15)}}}});let b=(0,l.memo)(function(e){let{styles:t,classNames:r}=e,{embla:i,slideInfo:c,showFullSlide:s,prepareSlidesAround:d}=(0,l.useContext)(n),{classes:p,cx:g}=f({showFullSlide:s},{name:"CarouselOrListingBlock__Arrows",styles:t,classNames:r}),h=(0,l.useCallback)(()=>{i&&(d(Math.max(i.selectedScrollSnap()-1,0)),i.scrollPrev())},[i,d]),m=(0,l.useCallback)(()=>{i&&(d(Math.min(i.selectedScrollSnap()+1,c.totalSlide-1)),i.scrollNext())},[i,d,c.totalSlide]);return(0,a.BX)(a.HY,{children:[(0,a.tZ)(o.x,{className:g("arrow","arrow-prev",p.arrow,p.arrowPrev,c.canScrollPrev?"":"disabled"),onClick:h,children:(0,a.tZ)(u.Z,{className:p.arrowIcon,size:18,useCurrentColor:!0})}),(0,a.tZ)(o.x,{className:g("arrow","arrow-next",p.arrow,p.arrowNext,c.canScrollNext?"":"disabled"),onClick:m,children:(0,a.tZ)(x.Z,{className:p.arrowIcon,size:18,useCurrentColor:!0})})]})});var w=(0,y.k)((e,t)=>{let{showFullSlide:r}=t;return{carouselWrapper:{position:"relative",".mantine-Carousel-viewport":{position:"relative","&:before, &:after":{content:'""',position:"absolute",top:0,bottom:0,zIndex:1,width:(0,d.h)(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")]:{...!r&&{marginRight:(0,d.h)(-16)}}}}});let v=(0,l.memo)(function(e){let{children:t,styles:r,className:i,classNames:c,...s}=e,{slideInfo:d,showFullSlide:p}=(0,l.useContext)(n),{classes:g,cx:h}=w({showFullSlide:p},{name:"CarouselOrListingBlock__CarouselWrapper",styles:r,classNames:c});return(0,a.tZ)(o.x,{className:h(g.carouselWrapper,p?"":d.canScrollNext?"still-slide":"end-slide",i),...s,children:t})});var C=(0,y.k)((e,t)=>{let{showFullSlide:r,gapMobile:a,gapDesktop:l,withIndicators:n}=t;return{wrapper:{display:"flex",flexDirection:"column",gap:(0,d.h)(12)},sliderWrapper:{contain:"layout style paint",'[data-carousel-active="false"] &':{contentVisibility:"hidden",pointerEvents:"none"},"& > *":{height:"100%"}},listing:{display:"flex",gap:(0,d.h)(a),alignItems:"stretch",[e.fn.largerThan("sm")]:{gap:(0,d.h)(l)}},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,d.h)(20),backgroundColor:e.colors.neutral[1],[e.fn.smallerThan("sm")]:{...!r&&{marginRight:(0,d.h)(16)}}},arrow:{...n&&{marginTop:-16}},arrowPrev:{},arrowNext:{},arrowIcon:{}}});let createInitialSlideInfo=e=>{let t=Array.from({length:Math.min(e,5)},(e,t)=>t);return{canScrollNext:!0,canScrollPrev:!1,slidesInView:[0],currentSlide:0,totalSlide:e,renderedSlideIndices:t}},buildRenderedSlideIndices=(e,t,r)=>{let a=new Set;for(let r=t-2;r<=t+2;r+=1)r>=0&&r{t>=0&&te-t)},getRenderedSlideIndices=(e,t)=>buildRenderedSlideIndices(t,e.selectedScrollSnap(),e),CarouselOrListingBlock=e=>{let{children:t=[],lengthToCarouselDesktop:r=3,lengthToCarouselMobile:i=2,percentOfEndSlideDesktop:o=38,percentOfEndSlideMobile:c=75,hasShadowAtEndSlide:s,showFullSlide:d,carouselSetting:p,gapDesktop:g=16,gapMobile:h=16,disableCarousel:m,lazyLoad:u,autoPlay:x,delayTime:y,onSlideChange:f,hideProgressBar:b,isActive:w=!0,loop:v,duration:C}=e,[k,S]=(0,l.useState)(null),[Z,I]=(0,l.useState)([]),{slideInfo:E,prepareSlidesAround:N}=function(e,t,r){let a=!(arguments.length>3)||void 0===arguments[3]||arguments[3],[n,i]=(0,l.useState)(()=>createInitialSlideInfo(t)),o=(0,l.useRef)(r);o.current=r,(0,l.useEffect)(()=>{i(e=>e.totalSlide===t?e:createInitialSlideInfo(t))},[t]),(0,l.useEffect)(()=>{if(!e||!a)return;let syncSlideInfo=()=>{i({canScrollNext:e.canScrollNext(),canScrollPrev:e.canScrollPrev(),slidesInView:e.slidesInView(),currentSlide:e.selectedScrollSnap(),totalSlide:t,renderedSlideIndices:getRenderedSlideIndices(e,t)})},l=0,syncSlidesInView=()=>{o.current&&(l||(l=requestAnimationFrame(()=>{l=0,i(t=>{let r=e.slidesInView();return t.slidesInView.length===r.length&&t.slidesInView.every((e,t)=>e===r[t])?t:{...t,slidesInView:r}})})))};return e.on("select",syncSlideInfo),e.on("reInit",syncSlideInfo),e.on("pointerDown",syncSlideInfo),r&&e.on("scroll",syncSlidesInView),syncSlideInfo(),()=>{e.off("select",syncSlideInfo),e.off("reInit",syncSlideInfo),e.off("pointerDown",syncSlideInfo),r&&e.off("scroll",syncSlidesInView),l&&cancelAnimationFrame(l)}},[e,t,r,a]);let c=(0,l.useCallback)(r=>{e&&a&&i(a=>{let l=buildRenderedSlideIndices(t,r,e);return a.renderedSlideIndices.length===l.length&&a.renderedSlideIndices.every((e,t)=>e===l[t])?a:{...a,renderedSlideIndices:l}})},[e,a,t]);return{slideInfo:n,prepareSlidesAround:c}}(k,Z.length,u,w),L=(0,l.useMemo)(()=>({embla:k,setEmbla:S,filteredChild:Z,setFilteredChild:I,slideInfo:E,prepareSlidesAround:N,lengthToCarouselDesktop:r,lengthToCarouselMobile:i,percentOfEndSlideDesktop:o,percentOfEndSlideMobile:c,hasShadowAtEndSlide:s,showFullSlide:d,carouselSetting:p,gapDesktop:g,gapMobile:h,disableCarousel:m,lazyLoad:u,autoPlay:x,delayTime:y,onSlideChange:f,hideProgressBar:b,isActive:w,loop:v,duration:C}),[k,Z,E,N,r,i,o,c,s,d,p,g,h,m,u,x,y,f,b,w,v,C]);return(0,a.tZ)(n.Provider,{value:L,children:t})};CarouselOrListingBlock.LazyLoadItem=e=>{let{children:t,index:r}=e,{slideInfo:i}=(0,l.useContext)(n),o=i.slidesInView.includes(r-1),c=(0,l.useMemo)(()=>(0,a.tZ)(a.HY,{children:t(o)}),[o]);return c},CarouselOrListingBlock.Paging=e=>{let{formatMessage:t}=(0,c.Z)(),{filteredChild:r,slideInfo:s}=(0,l.useContext)(n);return r.length>0&&s?(0,a.tZ)(o.x,{...e,children:(0,a.tZ)(i.T,{size:"p3",children:t({id:"category.title"},{total:s.totalSlide,number:(0,a.tZ)("strong",{children:s.currentSlide+1})})})}):null},CarouselOrListingBlock.Slider=e=>{let{children:t=[],arrow:r=!0,listingLayoutColumns:i,listingGap:c,styles:u,classNames:x,...y}=e,{lengthToCarouselDesktop:f=3,lengthToCarouselMobile:w=2,percentOfEndSlideDesktop:k=38,percentOfEndSlideMobile:S=75,gapDesktop:Z=16,gapMobile:I=16,showFullSlide:E,carouselSetting:N,disableCarousel:L,lazyLoad:A,onSlideChange:T,filteredChild:B,setFilteredChild:P,embla:W,setEmbla:M,autoPlay:R,delayTime:D,hideProgressBar:z,isActive:F=!0,loop:j}=(0,l.useContext)(n),V=(0,m.d)(),H=(0,l.useMemo)(()=>void 0!==(null==N?void 0:N.withIndicators)?null==N?void 0:N.withIndicators:!A&&!V,[V,A]),{classes:X}=C({showFullSlide:E,gapMobile:I,gapDesktop:Z,withIndicators:H},{name:"CarouselOrListingBlock__Slider",styles:u,classNames:x}),_=(0,l.useRef)((0,p.Z)({playOnInit:R,delay:D})),O=B.length>=(V?w:f),G=null!=c?c:V?I:Z,U=i?"calc((100% - ".concat((i-1)*G,"px) / ").concat(i,")"):void 0,Y=i?{display:"flex !important",flexWrap:"wrap",gap:(0,d.h)(G),alignItems:"stretch",justifyContent:"flex-start"}:void 0,q=U?{boxSizing:"border-box",flex:"0 0 ".concat(U," !important"),width:U,maxWidth:U,minWidth:0}:void 0;return(0,l.useEffect)(()=>{let e=(0,g.Z)(t).filter(e=>l.isValidElement(e));P(t=>t.length===e.length&&t.every((t,r)=>t===e[r])?t:e)},[t]),(0,a.tZ)(o.x,{...y,"data-carousel-active":F,children:!L&&O?(0,a.BX)(v,{children:[(0,a.tZ)(s.a,{slideSize:E?V?"".concat(100/(w-1),"%"):"".concat(100/(f-1),"%"):V?"".concat(S,"%"):"".concat(k,"%"),loop:"boolean"==typeof j?j:!!E,align:"start",slideGap:V?"".concat(I,"px"):"".concat(Z,"px"),getEmblaApi:M,withIndicators:H,withControls:!1,plugins:[...R&&D?[_.current]:[]],onSlideChange:T,classNames:{root:X.carouselRoot,viewport:X.carouselViewport,indicators:X.carouselIndicators,indicator:X.carouselIndicator},...N,onMouseLeave:()=>{var e;return R&&D&&(null==_?void 0:null===(e=_.current)||void 0===e?void 0:e.play())},onTouchEnd:()=>{var e;return R&&D&&(null==_?void 0:null===(e=_.current)||void 0===e?void 0:e.play())},children:B.map((e,t)=>(0,a.tZ)(s.a.Slide,{className:X.sliderWrapper,children:e},String(t)))}),!V||z||H?null:(0,a.tZ)(h.I,{embla:W,classNames:{bar:X.progressBar,root:X.progressRoot}}),(!V||r)&&(0,a.tZ)(b,{classNames:{arrow:X.arrow,arrowPrev:X.arrowPrev,arrowNext:X.arrowNext,arrowIcon:X.arrowIcon}})]}):(0,a.tZ)(o.x,{className:X.listing,"data-slide-length":B.length,...i?{"data-layout-columns":i}:{},sx:Y,children:B.map((e,t)=>(0,a.tZ)(o.x,{className:X.itemWrapper,sx:q,children:e},String(t)))})})}},QhBZ:function(e,t,r){r.d(t,{Z:function(){return CategoryExplainer}});var a=r("BGKE"),l=r("AeFk"),n=r("q1tI"),i=r("J1dS"),o=r("J2G1"),c=r("dDsW"),s=r("iv2E"),d=r("P5LW"),p=r("wCyE"),g=r("rBCA"),h=r("iBNF");let m=(0,g.Z)("div",{target:"e1ks6hag0"})(".article-card{padding:16px 0;.label{color:",h.r.colors.green500,";}.author{.avatar{position:relative;}.poster{line-height:1.3;}}}.hello-wellness-feature-image{.footer,.label{display:none;}&.hello-wellness-feature-image--no-banner .banner{display:none;}&.hello-wellness-feature-image--no-title .title{display:none;}&.hello-wellness-feature-image--no-link{.banner a,.title a,.text a{pointer-events:none;cursor:default;}}}"),u=(0,g.Z)("div",{target:"e1ks6hag1"})("display:flex;margin-bottom:60px;.article-card.desktop{width:100%;.banner{max-height:244px;}.title{margin-bottom:12px;}}.first-section{width:50%;margin-right:32px;}.second-section{width:50%;&[data-type='many-item']{display:grid;column-gap:32px;grid-template-columns:calc(50% - 16px) calc(50% - 16px);grid-template-rows:auto auto;row-gap:16px;}}"),x=(0,g.Z)("div",{target:"e1ks6hag2"})("display:flex;overflow:auto;flex-direction:row;margin-right:-16px;margin-bottom:39px;gap:unset;scrollbar-width:none;/* Firefox */\n\n &::-webkit-scrollbar{display:none;/* Safari and Chrome */}.article-card{width:78%;flex-shrink:0;margin-right:16px;}.article-card-one-item{width:calc(100% - 16px);flex-shrink:0;padding:16px 0;margin-right:16px;}");var y=r("1KiM");let getExplainerDataEventAction=(e,t)=>e.isHelloWellness||(0,p.LH)(e)?"Click to Pin Banner":t,getArticlePermalink=e=>e.permalinkDecode||e.permalink,getCategoryPermalink=e=>e.permalinkDecode||e.permalink,getExplainerEventLabel=(e,t)=>"https://".concat(s.domainLocales[e]).concat(t),getExplainerArticleEventLabel=(e,t)=>t.startsWith("http://")||t.startsWith("https://")?t:getExplainerEventLabel(e,t),getExplainerArticleCardTracking=(e,t,r,a)=>{let l=t.isHelloWellness||(0,p.LH)(t),n=getExplainerDataEventAction(t,r),i=getExplainerArticleEventLabel(e,a),o=l?i:getExplainerEventLabel(e,getCategoryPermalink(t.category));return{dataEventCategoryForTitle:"Top Article Title",dataEventActionForTitle:n,dataEventLabelForTitle:i,dataEventCategoryForBanner:"Top Article Banner",dataEventActionForBanner:n,dataEventLabelForBanner:i,dataEventCategoryForCategory:"Top Category Title",dataEventActionForCategory:n,dataEventLabelForCategory:o,...l&&{dataEventCategoryForReviewer:"Top Article Title",dataEventActionForReviewer:n,dataEventLabelForReviewer:i},...(0,p.LH)(t)&&{articleLinkTarget:"_blank",articleLink:a}}},useHelloWellnessFeatureImageResolvedPermalinks=e=>{let t=(0,n.useMemo)(()=>e.filter(p.LH),[e]),r=(0,n.useMemo)(()=>t.map(getArticlePermalink),[t]),a=(0,o.b)(r),l=(0,n.useMemo)(()=>{let e=new Map;return t.forEach((t,l)=>{e.set(t.id,a[l]||r[l]||"")}),e},[t,r,a]);return e=>(0,p.LH)(e)&&l.get(e.id)||getArticlePermalink(e)},getExplainerCardProps=(e,t,r)=>(0,p.LH)(e)?{...(0,p.gP)(e),styleLabel:{color:t},className:[r,(0,p.rg)(e)].filter(Boolean).join(" ")}:{className:r},RenderDesktop=e=>{let t,{explainerPosts:r=[],categoryName:n,categoryTextColor:i,currentCategory:o,getResolvedArticlePermalink:c}=e,{locale:s}=(0,d.h)(),p=r[0];t=r.length>=5?r.slice(1,5):r[1]?[r[1]]:[];let handleClickSameCategory=e=>{e.preventDefault()};return(0,a.BX)(u,{children:[p?(0,a.tZ)("div",{className:"first-section",children:(0,a.tZ)(y.ArticleCardWrapper,{...getExplainerArticleCardTracking(s,p,"Click 1",c(p)),article:p,type:"author",size:"lg",direction:"vertical",categoryName:n,styleLabel:{color:i},categoryLink:o&&o.permalink===p.category.permalink?p.permalink:p.category.permalink,onClickCategoryName:handleClickSameCategory,bannerImageWrapProps:{sizes:"(max-width: 1180px) 48vw, 553px"},...getExplainerCardProps(p,i,"article-card no-replace-click")})}):r.map((e,t)=>(0,l.az)(y.ArticleCardWrapper,{...getExplainerArticleCardTracking(s,e,"Click ".concat(t+2),c(e)),article:e,categoryName:n,key:"explainer-".concat(t),type:"author",size:"lg",direction:"vertical",styleLabel:{color:i},categoryLink:o&&o.permalink===e.category.permalink?e.permalink:e.category.permalink,onClickCategoryName:handleClickSameCategory,...getExplainerCardProps(e,i,"article-card no-replace-click")})),(0,a.tZ)("div",{className:"second-section","data-type":r.length>=5?"many-item":"one-item",children:t.length>0&&t.map((e,t)=>(0,l.az)(y.ArticleCardWrapper,{...getExplainerArticleCardTracking(s,e,"Click ".concat(t+2),c(e)),article:e,direction:"vertical",className:"article-card no-replace-click",key:t,type:"author",size:r.length>=5?"sm":"lg",categoryName:n,styleLabel:{color:i},text:"",categoryLink:o&&o.permalink===e.category.permalink?e.permalink:e.category.permalink,onClickCategoryName:handleClickSameCategory}))})]})},RenderMobile=e=>{let{explainerPosts:t=[],categoryName:r,categoryTextColor:i,currentCategory:o,getResolvedArticlePermalink:c}=e,{locale:s}=(0,d.h)(),handleClickSameCategory=e=>{e.preventDefault()};return(0,n.useEffect)(()=>{var e;null===(e=document.querySelector("#test"))||void 0===e||e.scrollTo(0,0)},[t]),(0,a.tZ)(x,{id:"test",children:t.map((e,a)=>(0,l.az)(y.ArticleCardWrapper,{...getExplainerArticleCardTracking(s,e,"Click ".concat(a+1),c(e)),article:e,style:a===t.length-1?{paddingRight:"16px"}:{},categoryName:r,key:"explainer-".concat(e.id),type:"author",size:"sm",direction:"vertical",styleLabel:{color:i},text:"",categoryLink:o&&o.permalink===e.category.permalink?e.permalink:e.category.permalink,onClickCategoryName:handleClickSameCategory,bannerImageWrapProps:{sizes:"76vw"},...getExplainerCardProps(e,i,1===t.length?"article-card-one-item no-replace-click":"article-card no-replace-click")}))})},CategoryExplainer=e=>{let{isMobile:t,explainerPosts:r=[],categoryName:l,categoryTextColor:n,currentCategory:o}=e,{formatMessage:s}=(0,c.Z)(),d=useHelloWellnessFeatureImageResolvedPermalinks(r);return(0,a.BX)(m,{"data-type-mobile":t,children:[(0,a.tZ)(i.H,{tag:"h3",style:{marginTop:"35px"},children:s({id:"categoryPage.explainer"})}),t?(0,a.tZ)(RenderMobile,{explainerPosts:r,categoryName:l,categoryTextColor:n,currentCategory:o,getResolvedArticlePermalink:d}):(0,a.tZ)(RenderDesktop,{explainerPosts:r,categoryName:l,categoryTextColor:n,currentCategory:o,getResolvedArticlePermalink:d})]})}},ggup:function(e,t,r){r.r(t),r.d(t,{CategorySubCategory:function(){return CategorySubCategory}});var a=r("BGKE"),l=r("q1tI"),n=r("Liyb"),i=r("UldL"),o=r("frWj"),c=r("Eso5"),s=r("C/sX"),d=r("dDsW"),p=r("S3OL"),g=r("vODv"),h=r("iv2E"),m=r("P5LW"),u=r("rIrU"),x=r("rBCA"),y=r("iBNF");let f=(0,x.Z)("div",{target:"ee9cm8f0"})(".wrapper{background-color:",y.r.colors.white,";.text{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:20px;a{color:",y.r.colors.primaryBase,";font-weight:700;text-decoration:none;}}.category-card{width:calc(100% - 6px);min-height:180px;.banner{min-height:102px;> *{max-height:100%;}}.content{margin-top:10px;}}}.ampCategory img{object-fit:contain;}&[data-type-mobile='false']{margin-bottom:64px;.scroll-list{.grid-layout{width:calc(100% + 32px);margin-left:-16px;}.category-card{width:calc(100% - 32px);}.left-arrow-scroll{left:-65px;cursor:pointer;}.right-arrow-scroll{right:-65px;cursor:pointer;}}}&[data-type-mobile='true']{margin-bottom:50px;.wrapper{margin-top:20px;margin-bottom:20px;}.scroll-list{padding:0 1rem;.arrow-right{right:-15px;}.arrow-left{left:-15px;}.bullet-nav{bottom:-20px;}}.category-card{width:calc(100% - 8px);height:130px;min-height:110px;.banner{min-height:63px;}.content{margin-top:5px;}}}&[data-type-mobile='true'][data-layout-type='long']{.category-card{display:flex;height:auto;min-height:50px;flex-direction:row;align-items:center;padding:8px 0;.banner{width:80px;height:48px;min-height:48px;padding:0 16px;flex-shrink:0;}.content{margin-top:0;text-align:left;}}}");var b=(0,r("/npG").k)(e=>({root:{display:"flex",flexDirection:"column",gap:24},slider:{height:"100%",[e.fn.largerThan("sm")]:{padding:"10px 5px"}}}));let CategorySubCategory=e=>{let{isMobile:t,subCategories:r,categoryName:x}=e,{formatMessage:y}=(0,d.Z)(),{locale:w,router:{defaultLocale:v="en-US"}}=(0,m.h)(),{classes:C,theme:k}=b(void 0,{name:"ArticleCardList__Categories"}),S=u.CX[w||v].CATEGORIES_TYPE||"long",Z=(0,l.useMemo)(()=>r.length,[r]),I=(0,l.useMemo)(()=>t?"long"===S?4:6:1,[t,S]),E=(0,l.useMemo)(()=>Array(Math.ceil(Z/I)).fill("").map((e,t)=>r.slice(t*I,t*I+I)),[t]),[N]=(0,l.useMemo)(()=>["long"===S?1:1===Z?1:2===Z||4===Z?2:3],[S,Z]);return(0,a.tZ)(f,{"data-layout-type":S,"data-type-mobile":t,children:r.length>0&&(0,a.BX)("div",{className:"wrapper",children:[(0,a.tZ)("div",{className:"text",children:(0,a.tZ)(i.T,{size:"h3",children:y({id:"categoryPage.subCategories"},{name:x})})}),(0,a.tZ)(o.z,{largerThan:"sm",styles:{display:"none"},children:(0,a.tZ)(c.x,{children:(0,a.tZ)(g.jx,{lengthToCarouselMobile:2,showFullSlide:!0,carouselSetting:{loop:!1,withIndicators:!0},children:(0,a.tZ)(g.jx.Slider,{children:E.map((e,r)=>(0,a.tZ)(s.r,{justify:1===E.length&&1===e.length?"center":void 0,gutterMd:24,gutterXs:0,sx:{[k.fn.smallerThan("sm")]:{height:"auto !important"}},children:e.map((e,r)=>(0,a.tZ)(s.r.Col,{span:12/N,children:(0,a.tZ)(c.x,{className:C.slider,sx:{".category-card":{display:"block",width:"auto !important"}},children:(0,a.tZ)(n.C,{category:e,dataEventCategory:"Recommended Topics",dataEventAction:"Click",dataEventLabel:"https://".concat(h.domainLocales[w]).concat(e.permalinkDecode),"data-type-mobile":t,className:"category-card",imgBanner:(0,a.tZ)(p.R,{layout:"responsive",loading:"lazy",objectFit:"contain",src:e.iconUrl||u.At,width:t?"long"===S?48:73:100,height:t?"long"===S?48:63:100,alt:e.categoryName,style:{objectFit:"contain"}}),label:e.categoryName,href:e.permalink},e.termId)},r)},r))},r))})})})}),(0,a.tZ)(o.z,{smallerThan:"sm",styles:{display:"none"},children:(0,a.tZ)(c.x,{children:(0,a.tZ)(g.jx,{lengthToCarouselDesktop:7,showFullSlide:!0,children:(0,a.tZ)(g.jx.Slider,{styles:{itemWrapper:{[k.fn.largerThan("sm")]:{...Z<6&&{width:170,flex:"none"}}}},children:r.map((e,r)=>(0,a.tZ)(c.x,{className:C.slider,children:(0,a.tZ)(n.C,{category:e,dataEventCategory:"Recommended Topics",dataEventAction:"Click",dataEventLabel:"https://".concat(h.domainLocales[w]).concat(e.permalinkDecode),"data-type-mobile":t,className:"category-card",imgBanner:(0,a.tZ)(p.R,{loading:"lazy",src:e.iconUrl||u.At,width:t?"long"===S?48:73:100,height:t?"long"===S?48:63:100,alt:e.categoryName,style:{objectFit:"contain"}}),label:e.categoryName,href:e.permalink},e.termId)},r))})})})})]})})}},"RE/H":function(e,t,r){r.d(t,{f:function(){return CategoryInfo}});var a=r("BGKE"),l=r("J1dS"),n=r("VDdh"),i=r("5SVV"),o=r("YFqc"),c=r.n(o),s=r("dDsW"),d=r("P5LW"),p=r("rIrU"),g=r("tQmg"),h=r("rBCA"),m=r("Dt6F"),u=r("iBNF");let x="\n width: calc(100vw - 16px);\n margin-left: calc((50vw - 50% - 8px) * -1);\n\n ".concat(m.M.mbDown," {\n width: auto;\n margin-right: -16px;\n margin-left: -16px;\n }\n"),y=(0,h.Z)("div",{target:"e1agtpv30"})("display:flex;flex-direction:column;",x," &[data-variant='default']{background-color:",e=>{let{categoryColor:t}=e;return t},";}&[data-variant='helloWellness']{background-color:","#E8F4FC",";}.hello-wellness-header{position:relative;}.hello-wellness-cover{position:absolute;z-index:0;top:0;left:0;width:100%;height:100%;background-image:url(",e=>{let{helloWellnessBgDesktop:t}=e;return t||"none"},");background-position:center;background-repeat:no-repeat;background-size:contain;",m.M.mbDown,"{background-image:url(",e=>{let{helloWellnessBgMobile:t}=e;return t||"none"},");}}.brand-logo{position:relative;z-index:1;display:flex;justify-content:center;padding:24px 16px 16px;img{width:auto;height:32px;object-fit:contain;}",m.M.mbDown,"{justify-content:flex-start;padding:28px 16px 26px;img{height:20px;}}}.header-spacer{flex-shrink:0;padding:24px 16px 16px;&::before{content:'';display:block;height:32px;}",m.M.mbDown,"{padding:28px 16px 26px;&::before{height:20px;}}}.category-body{display:flex;width:100%;flex-direction:column;align-items:center;background-color:",u.r.colors.white,";border-radius:40px 40px 0 0;",m.M.mbDown,"{border-radius:20px 20px 0 0;}}.heading{position:relative;display:flex;width:768px;max-width:100%;flex-direction:row;align-items:flex-start;justify-content:flex-start;padding:0 16px;margin:0 auto;",m.M.mbDown,"{flex-direction:column;align-items:center;padding:0 16px;}.banner{position:absolute;z-index:2;top:-44px;left:16px;display:flex;width:168px;height:168px;flex-shrink:0;align-items:center;justify-content:center;background-color:",u.r.colors.white,";border-radius:50%;img{width:60%;height:60%;object-fit:contain;}",m.M.mbDown,"{position:relative;top:auto;left:auto;width:100px;height:100px;margin:-50px auto 0;}}.info{position:relative;z-index:2;width:100%;min-width:0;min-height:84px;display:flex;flex-direction:column;margin-bottom:40px;margin-left:200px;",m.M.mbUp,"{padding-top:24px;.category-name{margin-bottom:8px;}}.reviewed a{color:",u.r.colors.black,";font-weight:700;}",m.M.mbDown,"{align-items:center;min-height:0;margin-bottom:0;margin-left:0;text-align:center;.category-name{margin-bottom:16px;}.reviewed{width:80%;}}}}.content{display:flex;width:100%;flex-direction:column;align-items:center;padding:0 16px 24px;&.no-description{padding-bottom:32px;}.description{width:768px;max-width:100%;padding:24px;border:1px solid #f2f2f2;background-color:",u.r.colors.white,";border-radius:",u.r.borderRadius,";",m.M.mbDown,"{padding:16px;}}}"),CategoryInfo=e=>{let{variant:t="default",imgBannerSrc:r,categoryName:o,description:h,colorFeatureImage:m="",reviewedBy:u,reviewedDate:x}=e,{formatMessage:f}=(0,s.Z)(),{locale:b}=(0,d.h)();return(0,a.BX)(y,{"data-variant":t,variant:t,categoryColor:m,helloWellnessBgDesktop:"helloWellness"===t?i.C.getAssetPath("helloWellness/category-bg.png"):void 0,helloWellnessBgMobile:"helloWellness"===t?i.C.getAssetPath("helloWellness/category-bg-mb.png"):void 0,children:["helloWellness"===t?(0,a.BX)("div",{className:"hello-wellness-header",children:[(0,a.tZ)("div",{className:"hello-wellness-cover","aria-hidden":"true"}),(0,a.tZ)("div",{className:"brand-logo",children:(0,a.tZ)("img",{loading:"lazy",src:i.C.getAssetPath("helloWellness/logo.png"),alt:"Hello Wellness"})})]}):(0,a.tZ)("div",{className:"header-spacer","aria-hidden":"true"}),(0,a.BX)("div",{className:"category-body",children:[(0,a.BX)("div",{className:"heading",children:[(0,a.tZ)("div",{className:"banner",children:(0,a.tZ)("img",{loading:"lazy",src:r||p.At,alt:o})}),(0,a.BX)("div",{className:"info",children:[(0,a.tZ)(l.H,{className:"category-name",tag:"h3",as:"h1",children:o}),u&&(0,a.tZ)("div",{className:"reviewed",children:(0,a.BX)(n.T,{size:"p3",children:[f({id:"categoryPage.info.reviewed"})," ",(0,a.tZ)(c(),{href:u.profileUrl,prefetch:!1,children:u.displayName})," "+f({id:"categoryPage.onDate",defaultMessage:"on {date}"},{date:(0,g.m)(x,b)})]})})]})]}),h?(0,a.tZ)("div",{className:"content",children:(0,a.tZ)("div",{className:"description",children:(0,a.tZ)(n.T,{size:"p3",children:h})})}):(0,a.tZ)("div",{className:"content no-description"})]})]})}}}]);