PageSourceSearch

https://assets.healthline.com/_next/felib-async-features-article-a5be4f78.js

js healthline.com collected 2026-09-24 08:30:45 UTC 15,662 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[3391],{39090(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArticleListItem=void 0;const l=a(74848),n=i(a(33804)),o=a(79380),r=a(65081),d=a(70261),s=a(51938),c=a(16403),p=a(84285),h=n.default.div(({columns:e,titleSize:t,theme:a})=>({color:d.commonColors.textBlack,display:"flex",flexDirection:1===e?"column":"row",gap:1===e&&"small"===t?"8px":"20px",alignItems:"flex-start","@media tablet":{gap:"small"===t?"20px":"18px"},'&:has([data-name="thumbnail"]:hover), &:has([data-name="title"]:hover), &:has([data-name="description"]:hover)':{'[data-name="thumbnail"] img':{transition:"opacity 0.2s",opacity:".8"},'[data-name="title"]':Object.assign({},a.elements.a[":hover"])}})),u=n.default.div({flexGrow:1}),m=n.default.div({display:"flex",flexDirection:"column",gap:"4px"}),g=(0,n.default)(o.Link)(({size:e,theme:t})=>Object.assign(Object.assign(Object.assign(Object.assign({},"large"===e?t.typography.TypographyV2.headline.h2.mobile:t.typography.TypographyV2.headline.h4),{display:"block",color:"inherit"}),"small"===e&&{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",textOverflow:"ellipsis",overflow:"hidden"}),{"@media desktop":Object.assign(Object.assign({},"large"===e?t.typography.TypographyV2.headline.h2.desktop:t.typography.TypographyV2.headline.h4),"small"===e&&{WebkitLineClamp:2})})),x=n.default.div({"@media max-mobile":{marginTop:"20px"},marginTop:"10px",display:"flex",flexDirection:"column",gap:"16px"}),y=(0,n.default)(o.Link,{shouldForwardProp:e=>"hide"!==e})(({theme:e,hide:t,size:a})=>Object.assign(Object.assign(Object.assign(Object.assign({color:"inherit",textDecoration:"none","&:hover":{color:"inherit",textDecoration:"none"}},e.typography.TypographyV2.paragraph.base),{marginTop:0,marginBottom:0,display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",textOverflow:"ellipsis",overflow:"hidden"}),t&&{display:"none"}),"small"===a&&{WebkitLineClamp:2})),b=(0,n.default)(o.Link)({flexShrink:0,height:"100%",lineHeight:0}),v=(0,n.default)(p.ImageFallback)({borderRadius:"32px","&:hover":{transition:"opacity 0.2s",opacity:".8"}}),k=n.default.div(({theme:e})=>Object.assign(Object.assign({},e.typography.TypographyV2.whisper.sm),{color:d.commonColors.grayDark})),f=(0,n.default)(o.Link)(({theme:e})=>Object.assign(Object.assign({},e.typography.TypographyV2.whisper.sm),{color:d.commonColors.grayDark})).withComponent(o.Link);t.ArticleListItem=({titleSize:e="small",hideDescription:t=!1,showCta:a=!1,columns:i=1,thumbnailWidth:n="100%",thumbnailHeight:o,lazyLoad:d=!0,title:j,description:w,thumbnail:C,thumbnailAlt:T,thumbnailFallback:O="https://media.post.rvohealth.io/wp-content/uploads/2024/03/HL_Generic-Thumb.jpeg",thumbnailFallbackAlt:_="Healthline logo thumbnail",link:N,whisper:R,whisperUrl:L,showByline:A,byline:M,className:W,onView:B,onWhisperClick:P,onTitleClick:D,onThumbnailClick:I,onCallToActionClick:H,onDescriptionClick:S,onContextMenu:V})=>(0,l.jsxs)(h,{columns:i,titleSize:e,className:W,children:[(0,l.jsx)(b,{href:N,"aria-hidden":"true",tabIndex:-1,onClick:I,onContextMenu:V,"data-name":"thumbnail",children:(0,l.jsx)(v,{src:C,alt:T||"",fallback:O,fallbackAlt:_,width:n,height:o,loading:d?"lazy":"eager"})}),(0,l.jsxs)(u,{"data-name":"text-container",children:[(0,l.jsx)(p.WaypointWrapper,{repeat:!1,onVisible:()=>null==B?void 0:B(),children:(0,l.jsxs)(m,{children:[!!R&&!!L&&(0,l.jsx)(f,{href:L,onClick:P,children:R}),!!R&&!L&&(0,l.jsx)(k,{children:R}),(0,l.jsx)(g,{href:N,onClick:D,onContextMenu:V,size:e,"data-name":"title",children:j})]})}),(A&&!!M||!!w&&!t||a)&&(0,l.jsxs)(x,{children:[A&&!!M&&(e=>{var t,a,i,n,o,r,d;return"author"===e.type&&e.authors&&e.authors.length>0?(0,l.jsx)(s.TinyAuthor,{avatarSrc:null===(a=null===(t=e.authors[0])||void 0===t?void 0:t.avatar)||void 0===a?void 0:a.src,displayName:null===(n=null===(i=e.authors[0])||void 0===i?void 0:i.name)||void 0===n?void 0:n.display,authors:e.authors,authorLink:(null===(o=e.authors[0])||void 0===o?void 0:o.link)||"",language:e.language}):"medical-reviewer"===e.type&&e.medicalReviewer?(0,l.jsx)(c.TinyMedicalReviewer,{avatarSrc:null===(r=e.medicalReviewer.avatar)||void 0===r?void 0:r.src,displayName:null===(d=e.medicalReviewer.name)||void 0===d?void 0:d.display,specialties:e.medicalReviewer.specialties,language:e.language,linkOverride:e.medicalReviewer.link}):null})(M),!!w&&(0,l.jsx)(y,{hide:t,href:N,onClick:S,"data-name":"description",size:e,children:w}),a&&(0,l.jsx)(r.CallToActionLink,{href:N,onClick:H,children:"Read More"})]})]})]})},37409(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HeroArticleGrid=void 0;const l=a(74848),n=i(a(33804)),o=a(39090),r=a(71145),d=n.default.div({}),s=n.default.ul({listStyle:"none",padding:0,margin:0,display:"grid","@media max-mobile":{gridRowGap:"48px"},gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gridColumnGap:"16px",gridRowGap:"48px",">li:nth-of-type(1)":{gridRow:"1",gridColumn:"1 / -1",marginBottom:"10px"},">li:not(:nth-of-type(1))":{gridRow:"auto",gridColumn:"auto"},"@media tablet":{gridColumnGap:"30px",gridRowGap:"40px",">li:nth-of-type(1)":{marginBottom:"5px"}},"@media desktop":{gridColumnGap:"50px",gridRowGap:"50px",">li:nth-of-type(1)":{gridRow:"1 / span 4",gridColumn:1,marginBottom:0},">li:not(:nth-of-type(1))":{gridRow:"auto",gridColumn:2}}}),c=n.default.li({width:"100%",marginBottom:0}),p=(0,n.default)(o.ArticleListItem)({'[data-name="thumbnail"]':{width:"100%"},'[data-name="thumbnail"] img':{borderRadius:"32px",width:"100%",height:"100%",objectFit:"cover"},"@media max-mobile":{'[data-name="thumbnail"]':{height:"251px",maxWidth:"502px"},'[data-name="text-container"]':{maxWidth:"502px"}},"@media tablet":{'[data-name="thumbnail"]':{height:"493px",maxWidth:"986px"},'[data-name="text-container"]':{maxWidth:"986px"}},"@media desktop":{'[data-name="thumbnail"]':{height:"392px"}}}),h=(0,n.default)(o.ArticleListItem)({'[data-name="thumbnail"]':{width:"100%"},'[data-name="thumbnail"] img':{borderRadius:"16px",width:"100%",height:"100%",objectFit:"cover"},"@media max-mobile":{'[data-name="thumbnail"]':{height:"114px",maxWidth:"228px"},'[data-name="text-container"]':{maxWidth:"228px"}},"@media tablet":{'[data-name="thumbnail"]':{height:"220px",maxWidth:"440px"},'[data-name="text-container"]':{maxWidth:"440px"}},"@media desktop":{'[data-name="thumbnail"]':{width:"160px",height:"120px"}}});t.HeroArticleGrid=({articles:e,articlePlacement:t,productId:a,readNextWhisperHeader:i,lazy:n=!0,onArticleView:o,onWhisperClick:u,onTitleClick:m,onThumbnailClick:g,onCallToActionClick:x,onDescriptionClick:y,onContextMenu:b})=>{const{isMobile:v,isTablet:k}=(0,r.useCurrentBreakpoint)(),f=(e,t,a,i,l)=>({onView:()=>null==o?void 0:o(a,i),onWhisperClick:()=>null==u?void 0:u(e,t,i,l),onTitleClick:()=>null==m?void 0:m(e,t,i,l),onThumbnailClick:()=>null==g?void 0:g(e,t,i,l),onCallToActionClick:()=>null==x?void 0:x(e,t,i,l),onDescriptionClick:()=>null==y?void 0:y(e,t,i,l),onContextMenu:()=>null==b?void 0:b(e,t,i,l)});return(0,l.jsx)(d,{children:(0,l.jsx)(s,{children:e.map((e,o)=>(0,l.jsx)(c,{children:0===o?(0,l.jsx)(p,Object.assign({},e,{titleSize:"large",hideDescription:!1,columns:1,lazyLoad:n,showByline:!0},f(e,o,t,a,i))):(0,l.jsx)(h,Object.assign({},e,{titleSize:"small",hideDescription:v||k,columns:v||k?1:2,lazyLoad:n,showByline:!1},f(e,o,t,a,i)))},e.title))})})}},33490(e,t,a){var i=this&&this.__rest||function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(i=Object.getOwnPropertySymbols(e);l<i.length;l++)t.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(a[i[l]]=e[i[l]])}return a},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShortenedReadNext=void 0;const n=a(74848),o=l(a(33804)),r=a(37409),d=a(88081),s=a(58566),c=a(93937),p=o.default.div({width:"100%",margin:"0","@media tablet":{width:"658px",margin:"0 auto"},"@media desktop":{width:"900px"},"@media desktop-large":{width:"1100px"}}),h=o.default.h3(({theme:e})=>Object.assign(Object.assign({},e.typography.TypographyV2.whisper.lg),{marginBottom:"24px",marginTop:"0","@media max-mobile":{marginBottom:"20px"}}));t.ShortenedReadNext=e=>{var{articles:t,articlePlacement:a,productId:l,readNextWhisperHeader:o="Read next"}=e,u=i(e,["articles","articlePlacement","productId","readNextWhisperHeader"]);const{trackInView:m,trackTitleClick:g,trackThumbnailClick:x,trackCallToActionClick:y,trackDescriptionClick:b,trackContextMenuClick:v,trackProductLoaded:k}=(0,d.useReadNextEvents)();(0,c.useEffectOnlyOnce)(()=>{k({productId:l,readNextWhisperHeader:o,articlePlacement:a})},[]);const f=t.map(e=>{return Object.assign(Object.assign({},e),{link:(t=e.link,t.includes("?")?`${t}&utm_source=ReadNextRAAS`:`${t}?utm_source=ReadNextRAAS`)});var t});return(0,n.jsxs)(p,Object.assign({},u,{children:[(0,n.jsx)(h,{children:o}),(0,n.jsx)(s.Waypoint,{onView:()=>m(a,l,f.slice(0,5)),repeat:!1}),(0,n.jsx)(r.HeroArticleGrid,{articles:f.slice(0,5),articlePlacement:a,productId:l,readNextWhisperHeader:o,lazy:!0,onTitleClick:g,onThumbnailClick:x,onCallToActionClick:y,onDescriptionClick:b,onContextMenu:v})]}))}},75373(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BylineWrapper=void 0;const l=a(74848),n=i(a(33804)).default.section(({theme:e})=>Object.assign({display:"flex",lineHeight:"20px",alignItems:"center",flexDirection:"row",gap:"10px"},e.features.BylineWrapper));t.BylineWrapper=({className:e,children:t})=>(0,l.jsx)(n,{className:e,"data-testid":"byline-wrapper",children:t})},21884(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TinyBylink=t.StyledLink=void 0;const l=a(74848),n=i(a(33804)),o=a(84285),r=n.default.span(({theme:e})=>Object.assign({},e.typography.TypographyV2.paragraph.xsmBold));t.StyledLink=(0,n.default)(o.Link)(({theme:e})=>Object.assign(Object.assign({color:e.colors.black},e.typography.TypographyV2.paragraph.xsm),{textDecorationLine:"underline",textDecorationStyle:"solid",textDecorationSkipInk:"auto",textDecorationThickness:"auto",textUnderlineOffset:"auto",textUnderlinePosition:"from-font"}));t.TinyBylink=({by:e,language:a,link:i,specialties:n,text:o})=>{const d=(null==n?void 0:n.length)||0,s=e=>{const a=(i=e.name).charAt(0).toUpperCase()+i.slice(1).toLowerCase();var i;return e.link?(0,l.jsx)(t.StyledLink,{href:e.link,children:a}):(0,l.jsx)("span",{children:a})};return(0,l.jsx)("span",{children:(0,l.jsxs)(r,{children:[o[a]||"",(0,l.jsx)(t.StyledLink,{href:i,children:e}),n&&d>0?(0,l.jsxs)(l.Fragment,{children:[", ",n.map((e,t)=>(0,l.jsxs)(l.Fragment,{children:[t>0&&t<d?", ":"",s(e)]}))]}):null]})})}},79379(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.AuthorByline=void 0;const i=a(74848),l=a(21884);t.AuthorByline=({authors:e=[],language:t,authorLink:a,text:n})=>{const o={es:", ",en:" and "};return Array.isArray(e)?e.map((e,r)=>{var d;return e?(0,i.jsx)(l.TinyBylink,{by:null===(d=e.name)||void 0===d?void 0:d.display,link:a||e.link||"",text:0===r?n:o,language:t},r):null}):null}},51938(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.TinyAuthor=void 0;const i=a(74848),l=a(75373),n=a(25744),o=a(79379);t.TinyAuthor=({authors:e,language:t="en",authorLink:a,hideAuthorPhoto:r=!1,className:d,textOverride:s,avatarSrc:c,displayName:p})=>(0,i.jsxs)(l.BylineWrapper,{className:d,children:[c&&!r&&(0,i.jsx)(n.AuthorImage,{image:c,imageSize:35,language:t,alt:p}),(0,i.jsx)("div",{children:(0,i.jsx)(o.AuthorByline,{authors:e,language:t,authorLink:a,text:s||{es:"Escrito por: ",en:"Written by: "}})})]})},485(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.ReviewedBy=void 0;const i=a(74848),l=a(21884);t.ReviewedBy=({text:e,reviewerLink:t="/medical-team",language:a,displayName:n,specialties:o=[]})=>{const r=t;return(0,i.jsx)(l.TinyBylink,{by:n,text:e,link:r,language:a,specialties:o})}},16403(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.TinyMedicalReviewer=void 0;const i=a(74848),l=a(75373),n=a(25744),o=a(485);t.TinyMedicalReviewer=({language:e="en",textOverride:t,linkOverride:a,hideAuthorPhoto:r=!1,className:d,avatarSrc:s,displayName:c,specialties:p=[]})=>(0,i.jsxs)(l.BylineWrapper,{className:d,children:[s&&!r&&(0,i.jsx)(n.AuthorImage,{image:s,imageSize:35,alt:c,language:e}),(0,i.jsx)("div",{children:(0,i.jsx)(o.ReviewedBy,{displayName:c,specialties:p,text:t||{es:"Revisado médicamente por: ",en:"Medically reviewed by: "},reviewerLink:a||"/medical-team",language:e})})]})},18666(e,t){t.TO=t.eO=void 0,t.eO=[{src:"https://media.post.rvohealth.io/wp-content/uploads/2026/04/Healthline-Fallback_Thumbnails-Gingko-Cyan.png",alt:"Healthline ginkgo cyan logo thumbnail"},{src:"https://media.post.rvohealth.io/wp-content/uploads/2026/04/Healthline-Fallback_Thumbnails-Active-Tangerine.png",alt:"Healthline active tangerine logo thumbnail"},{src:"https://media.post.rvohealth.io/wp-content/uploads/2026/04/Healthline-Fallback_Thumbnails-Yoga-Gold.png",alt:"Healthline yoga gold logo thumbnail"},{src:"https://media.post.rvohealth.io/wp-content/uploads/2026/04/Healthline-Fallback_Thumbnails-Nutrition-Cyan.png",alt:"Healthline nutrition cyan logo thumbnail"},{src:"https://media.post.rvohealth.io/wp-content/uploads/2026/04/Healthline-Fallback_Thumbnails-Nutrition-Gold.png",alt:"Healthline nutrition gold logo thumbnail"}],t.TO=[{src:"https://media.post.rvohealth.io/wp-content/uploads/2026/04/MNT-1.jpg",alt:"Medical News Today logo thumbnail"},{src:"https://media.post.rvohealth.io/wp-content/uploads/2026/04/thumbn
1ail-3.jpg",alt:"Medical News Today logo thumbnail"},{src:"https://media.post.rvohealth.io/wp-content/uploads/2026/04/thumbnail-4.jpg",alt:"Medical News Today logo thumbnail"},{src:"https://media.post.rvohealth.io/wp-content/uploads/2026/04/thumbnail-5.jpg",alt:"Medical News Today logo thumbnail"},{src:"https://media.post.rvohealth.io/wp-content/uploads/2026/04/thumbnail-2.jpg",alt:"Medical News Today logo thumbnail"}]},88081(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),t.useReadNextEvents=void 0;const i=a(96540),l=a(16631),n=a(7948),o={location:"FOOTER",name:"Any Page",position:"Read This Next",elementType:"LINK"};t.useReadNextEvents=()=>{const{beamProductClickedEvent:e,beamProductListViewedEvent:t,beamCoreElementLoadedEvent:a,beamProductLoadedEvent:r}=(0,i.useContext)(l.TagularContext),d=(t,a,i,l)=>{e({correlationId:(0,n.generateUUID)(),formatType:"Read Next",location:"Read Next",productId:i,name:i,text:l,variant:`rn${a+1}`,outboundUrl:t.link})};return{trackInView:(e,a,i)=>{t({product:i.map((t,i)=>({brand:"Healthline",formatType:"Read Next",location:"Read Next",name:t.link||"",position:i,price:t.dollarValue,productId:a,text:t.title||"",variant:e}))})},trackLoaded:()=>{a(Object.assign(Object.assign({},o),{text:"",htmlId:""}))},trackTitleClick:(...e)=>{d(...e)},trackThumbnailClick:(...e)=>{d(...e)},trackCallToActionClick:(...e)=>{d(...e)},trackDescriptionClick:(...e)=>{d(...e)},trackContextMenuClick:(...e)=>{d(...e)},trackProductLoaded:({productId:e,readNextWhisperHeader:t,articlePlacement:a})=>{r({brand:"",category:"",formatType:"Read Next",location:"Read Next",name:e,productId:e,text:t,variant:a})}}}}}]);
2//# sourceMappingURL=felib-async-features-article-a5be4f78.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.