PageSourceSearch

https://assets.healthline.com/_next/chunks/deferred-global-628d6389.js

js healthline.com collected 2026-10-01 08:40:37 UTC 35,368 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[4867],{28694(e,t,o){var n=o(75884),i=o(60137),a=o(17631),r=o(53471),l=o(3141),s=o(51952),c=o(83);var d=o(5759),p=o(35413),m=o(56256),u=o(28540),h=o(35879);function f(){}function g(){r.Ay.dF||(0,m.s1)().consent.gdprApplies&&("GB"!==HL.c.countryCode||HL.c.consent.optOut)||(0,u.aM)()||!(0,c.r)("C0004")||function(){if(window.fbq)return;const e=!(0,c.r)("C0004"),t=(0,n.QG)("tglr_anon_id");function o(){o.callMethod?o.callMethod.apply(o,arguments):o.queue.push(arguments)}if(window.fbq=o,window._fbq||(window._fbq=o),o.push=o,o.loaded=!0,o.version="2.0",o.queue=[["init",341638689366170,{external_id:t}],["track","PageView"]],e){const e=["dataProcessingOptions",["LDU"],0,0];o.queue.unshift(e)}(0,s.Q)().then(e=>{let{audiences:t}=e;Array.isArray(t)&&t.forEach(e=>{o("trackCustom","MakeAudience",{[e]:"true"})})}).catch(()=>{}),(0,l.Ay)("https://connect.facebook.net/en_US/fbevents.js").catch(()=>{})}()}window.checkAndInitializeFacebook=g,(0,d.hq)(()=>{let e=!0;(0,c.r)("C0004")||(e=!1),document.querySelector("[data-pin-custom]")&&e&&(0,l.Ay)("https://assets.pinterest.com/js/pinit.js").catch(f),document.querySelector(".twitter-tweet")&&(0,l.Ay)("https://platform.twitter.com/widgets.js").catch(()=>{})}),(0,d.Zd)(()=>{var e;const t=Array.prototype.slice.call(document.querySelectorAll("meta")).find(e=>"robots"===e.name.toLowerCase());t&&(0,p.nQ)("meta.tag.robots",{content:t.content});let o="";const s=(null==(e=HL)||null==(e=e.c)?void 0:e.consent)||{};var d,b;null!=s&&s.gdprApplies?o=`&gdpr=1&gdpr_consent=${null!=(d=null==s||null==(b=s.tcData)?void 0:b.tcString)?d:""}`:__uspapi.d.usprivacy&&(o=`&us_privacy=${__uspapi.d.usprivacy}`);const x=(0,n.QG)("tglr_anon_id");if(!r.Ay.dLR&&h.A.externalScripts.liveRampOgPixelEnabled&&!(0,u.aM)()&&(0,c.r)("C0004")){const e=711973;new Image(1,1).src=`\n        https://idsync.rlcdn.com/${e}.gif?partner_uid=${x}${o}\n      `}if(h.A.externalScripts.liveRampEcstEnabled&&i.V.liveRampECST.k1s.includes(HL.ga.k1)&&!(0,u.aM)()&&(0,c.r)("C0004")&&!r.Ay.dLR){const{ga:{ek1:e,ekmeta:t}}=HL||{},n=function(e,t){if(void 0===t&&(t=10),e)return e.replace(/,\s*$/,"").split(",").slice(0,t).map((e,t)=>`kmeta${t+1}=${e}`).join(",");return""}(t),i=(0,a.X5)(navigator.userAgent),r=`k1=${e},${n}${i?`,browser=${i}`:""}`;new Image(1,1).src=`\n      https://di.rlcdn.com/api/segment?pid=712783&pdata=${encodeURIComponent(r)}${o}&partner_uid=${x}\n    `}if(g(),!r.Ay.dC&&(0,c.r)("C0004")&&(0,l.Ay)("//sb.scorecardresearch.com/cs/38584006/beacon.js").catch(f),h.A.externalScripts.hlOnlyWidgetsEnabled){if(!(0,m.s1)().consent.gdprApplies&&!r.Ay.dPin){const e=(0,c.r)("C0004");let t=!0;e||(t=!1),t&&function(e){function t(){window.pintrk.queue.push(Array.prototype.slice.call(arguments))}window.pintrk||(window.pintrk=t,t.version="3.0",t.queue=[["setconsent",e],["load","2621248555376"],["page"],["load","2615550190644"],["page"]],(0,l.Ay)("https://s.pinimg.com/ct/core.js").catch(()=>{}))}(e)}document.querySelectorAll('a[href*="amzn.to"], a[href*="amazon.com"]').length&&(0,c.r)("C0004")&&(0,l.Ay)("https://z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&adInstanceId=c3555b57-ee3e-4ba5-b6f4-ec40911af7e4").catch(f)}if(r.Ay.dS||(0,u.aM)()||!(0,c.r)("C0004")||(0,l.Ay)("//ak.sail-horizon.com/spm/spm.v1.min.js").then(()=>{Sailthru.init({customerId:"6316e9e1eb907aa93e8d586d1193b5d1"}).then(()=>{(0,c.r)("C0004")||Sailthru.track("gdprDoNotTrack",{onError(){(0,p.nQ)("ui.consent.sailthruDoNotTrackFailed")}})})}).catch(f),h.A.externalScripts.skimlinksEnabled&&(0,c.r)("C0004")){const{pageTemplate:e,isNewsArticle:t,isSponsoredArticle:o}=(0,m.s1)();!(t||o||"Tabbed Article"!==e&&"Listicle Article"!==e&&"Standard Article"!==e)&&!r.Ay.dSk&&(0,l.Ay)("//s.skimresources.com/js/41977X1601025.skimlinks.js").cat
1ch(f)}window.dataLayer.push({event:"afterInteractive",afterInteractive:!0,countryCode:HL.c.countryCode})}),(0,d.Tz)(()=>{})},87906(e,t,o){o.r(t),o.d(t,{default:()=>y});var n=o(96540),i=o(53471),a=o(74760),r=o(32605),l=o(83),s=o(49413),c=o(58551),d=o(56256),p=o(20949).h;const m="newsletterModalLastShownTime";function u(){const{utm_medium:e,utm_source:t}=i.Ay;return"Email"===e&&"Sailthru Email"===t}const{forceShowModal:h}=i.Ay;const f="1stPagePopup",g="2ndPagePopup",b="modal",x=e=>{let{appState:t,canUseModalPlacement:o,isFirstPagePopup:n,contentIndex:r}=e;return function(e){let{appState:t,minimumViewCount:o=2,contentIndex:n}=e;if(null!=t&&t.isMLP)return!1;if(window.forceShouldUse2ndPagePopup||h)return!0;const r={canShowPlacement:(0,a.TM)(t,"nl:modal"),hasGdprConsent:(0,l.r)("C0004"),hasEnoughViews:(0,c.B)()>=o,hasTargeting:Boolean(t.targeting),notRecentlyShown:(0,s.XT)(m,432e6),notFromNewsletter:!u(),notInNativeApp:!(0,i.jG)()};return Object.values(r).every(Boolean)}({appState:t,minimumViewCount:n?1:2,contentIndex:r})?n?f:g:o?b:null},y=(0,d.Jo)(e=>{let{appState:t,canUseModalPlacement:o=!1,isFirstPagePopup:i=!1,contentIndex:a}=e;const[l,c]=(0,n.useState)(()=>x({appState:t,canUseModalPlacement:o,isFirstPagePopup:i,contentIndex:a}));let d;switch(l){case f:case g:d=p(r.A,{placement:l,hasImage:!1,onLoaded:e=>{e?(0,s.SA)(m):c(b)}});break;case b:d=p(r.A,{id:"place-modal",placement:"modal"});break;default:return null}return p("div",{"data-testid":"conditional-placement","data-placement":l},d)})},32706(e,t,o){o.r(t),o.d(t,{default:()=>y});var n=o(96540),i=o(1482),a=o.n(i),r=(o(5556),o(77066)),l=o(93743),s=o(70328),c=o(59168),d=o(62521),p=o(20949).h;function m(){return p("div",{className:(0,r.AH)({lineHeight:"40px",textAlign:"right"})},p("img",{src:"https://images-prod.healthline.com/hlcmsresource/images/frontend-static/google-custom-search-logo.gif",alt:"Google Custom Search",className:(0,r.AH)({height:"21px",verticalAlign:"bottom"})}))}var u=o(16370),h=o(22400),f=o(20949).h;const g="Please enter a valid search term.",b=e=>e?50:35,x=e=>{let{isSymptomBar:t,searchOpened:o}=e;return f("div",{className:(0,r.AH)((0,l.mq)({"& svg":{height:"17px"},cursor:"pointer",fill:l.Ay.components.headerUx3Search.mobile.icon.fill(o),height:"35px",justifyContent:"center",pointerEvents:"none",position:"absolute",zIndex:1,width:"35px",display:"inline-flex",alignItems:"center",...t?{"& svg":{height:"14px"},left:0,height:"50px",width:"50px"}:{right:0}}))},f(d.A,null))};class y extends n.Component{constructor(){super(...arguments),this.state={items:this.props.items||[],open:!1,value:"",error:!1},this.onChange=(e,t)=>
1{this.setState({value:t}),t?this.props.searchFunc(t).then(e=>{let{items:t=[]}=e;this.setState({error:!t.length&&g,items:t})}).catch(()=>{(0,h.nQ)("ui.headerSearch.autocompleteError",{surface:"headerUx3Mobile"})}):this.setState({items:[]})},this.blur=()=>{this.setState({open:!1})},this.focus=()=>{this.setState({open:!0})},this.handleErrorOnClick=()=>{this.setState({error:""})},this.trackSubmit=()=>{(0,u.FU)({name:"Any Page",location:"HEADER",position:"GLOBAL HEADER",elementType:"BUTTON",actionOutcome:"SEARCH",text:this.state.value})},this.handleSelection=(e,t,o)=>{const{hrefFunc:n,showError:i,autoSelect:a}=this.props;let r=e;r?(a&&o&&(r=this.state.items[0]),r&&(this.trackSubmit(r),location.href=n(r))):i&&this.setState({error:g})},this.handleSubmit=e=>{e.preventDefault(),this.handleSelection(this.state.value,this.state.value,!0)},this.renderMenu=(e,t,o)=>{const{isSymptomBar:n,isInPanel:i}=this.props,a=n,s=!n;return f("div",{className:(0,r.AH)((0,l.mq)({zIndex:n?1:void 0,display:this.state.open?"block":"none",position:"absolute",overflow:"auto",backgroundColor:"white",borderRadius:"3px",boxShadow:"rgba(0, 0, 0, 0.1) 0 2px 12px",fontFamily:"inherit",...a?{top:b(n)+10,width:"100%",padding:"15px 0"}:{width:o.minWidth+(i?40:35)}}))},e,s&&f(m,null))}}render(){const{className:e,isInPanel:t,placeholder:o,submitText:n,isSymptomBar:i,showError:c,formStyles:d}=this.props,{error:p,items:m,open:u}=this.state,h=l.Ay.components.headerUx3Search.mobile.inputBackground(u),g=i,y=t?void 0:0;let v;return v=t||i||u?"inherit":"white",f("form",{action:"/search",onSubmit:this.handleSubmit,className:(0,r.cx)(e,(0,r.AH)((0,l.mq)({...t?{display:"flex",marginBottom:"40px",marginTop:"40px"}:!i&&{display:["none","flex"],marginBottom:0,marginTop:0,width:"200px",...l.Ay.components.headerUx3Search.mobile.dropdownInputExtra},"& .autocomplete-wrapper":{flexBasis:"auto",flexGrow:1,width:"100%"},"& .autocomplete":{border:"none",cursor:"text",height:"40px",width:"100%",paddingLeft:"10px",fontFamily:"inherit",color:l.Ay.components.headerUx3Search.mobile.autocomplete.color(v),...t?{paddingBottom:"7px",paddingTop:"9px",paddingLeft:"12px",border:"none"}:{background:h,paddingBottom:"7px",paddingTop:"7px"},...i&&{paddingLeft:"50px",border:"1px solid #dcdbdb",outline:"none","&:focus":{border:"1px solid #db1f88"}},...c&&p&&{color:h},borderRadius:y,WebkitAppearance:"none"},...d})))},f("div",{className:(0,r.AH)((0,l.mq)({position:"relative",display:"flex",width:"100%",...i&&{marginBottom:"20px"}}))},f(a(),{autoHighlight:!1,getItemValue:e=>e,inputProps:{className:"autocomplete",name:"q1",onBlur:this.blur,onFocus:this.focus,placeholder:p?"":o,"aria-label":o},items:m,onChange:this.onChange,onSelect:this.handleSelection,open:!!m.length,renderItem:(e,t)=>f("div",{key:e,className:(0,r.AH)((0,l.mq)({cursor:"pointer",overflow:"hidden",paddingBottom:"7px",paddingLeft:"12px",paddingRight:"12px",paddingTop:"7px",textOverflow:"ellipsis",whiteSpace:"nowrap",background:t?"#eee":"white",color:t&&"#08565c",...g&&{paddingLeft:"20px",paddingRight:"20px"}}))},e),renderMenu:this.renderMenu,value:this.state.value,wrapperProps:{className:"autocomplete-wrapper"}}),i&&f(x,{isSymptomBar:!0}),c&&p&&f("div",{className:(0,r.AH)({color:"#fe2626",position:"absolute",paddingLeft:`${b(i)}px`,lineHeight:`${b(i)}px`,height:`${b(i)}px`,width:"100%"}),role:"button",onClick:this.handleErrorOnClick},p)),!i&&!t&&f(x,{searchOpened:u}),f(s.A,{disabled:i&&(p||!(m&&m.length)),className:(0,r.AH)((0,l.mq)({...l.Ay.components.headerUx3Search.mobile.submitButton.font,fontSize:"18px",border:"none",color:"white",cursor:"pointer",flex:"none",height:"40px",textTransform:void 0,padding:0,minWidth:["56px","60px"],...t||i?{"&:hover":{background:"#9b1561"},background:"#02838d",width:"35px",borderRadius:0}:{background:l.Ay.components.headerUx3Search.mobile.submitButton.background(u),"&:hover":{background:l.Ay.components.headerUx3Search.mobile.submitButton.hoverBackground(u)},fontSize:0},...i&&{width:"100%"}})),type:"submit","aria-label":"Click to Search"},n))}}y.defaultProps={searchFunc:c.A,hrefFunc:e=>`/search?q1=${e}`,submitText:"GO"}},76163(e,t,o){o.r(t),o.d(t,{default:()=>ne});var n=o(96540),i=o(98508),a=o(77066),r=o(5556),l=o.n(r),s=o(99912),c=o(16370),d=o(94708),p=o.n(d),m=o(27331),u=o(32605),h=o(75201),f=o(56865),g=o(93743),b=o(10617),x=o(4659),y=o(22905),v=o(20949).h;const w=a.Ay.ul({display:"flex",flexDirection:"row",listStyle:"none",marginBottom:0,marginTop:0,width:"100%",paddingLeft:0,marginLeft:0,marginRight:0,justifyContent:"space-between",flexWrap:"wrap",li:{width:[void 0,void 0,"315px","345px"],marginTop:"10px",marginBottom:"10px"}}),A=e=>{let{focusedIndex:t,links:o,subnavSectionTitle:n,primaryNavSectionTitle:i,secondaryNavSectionTitle:a,labelledBy:r}=e;return v(w,{role:"menu","aria-labelledby":r},o.map((e,o)=>
1v(y.Ay,{key:`${e.title}-${o}`,...e,focused:t===o,index:o,primaryNavSectionTitle:i,subnavSectionTitle:n,secondaryNavSectionTitle:a})))};var k=o(16446),S=o(20949).h;const T=a.Ay.div({flex:1,flexDirection:"column"}),N=a.Ay.div(e=>{let{displayAsRows:t}=e;return{borderTopWidth:"2px",borderTopColor:"#767474",borderTopStyle:"solid",display:t?"block":"inline-block",paddingTop:"15px","ul li":{marginBottom:"20px"},"ul li a":{color:"black",textDecoration:void 0,"&:hover":{color:"#08565c"}}}}),C=a.Ay.p({marginTop:["12px","12px",0],marginBottom:"12px",fontSize:"16px",lineHeight:"26px"}),I={...g.Ay.components.headerUx3Subnav.section.font,fontSize:"20px",lineHeight:"26px",marginTop:0,marginBottom:[0,0,"10px"],paddingBottom:"5px"},B={marginBottom:[0,0,0],paddingBottom:0},L=e=>String(e).toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""),H=a.Ay.div({display:"flex",justifyContent:"space-between"}),O=(l().number,l().object,l().arrayOf(l().shape(y.np)),l().oneOfType([l().string,l().bool]),l().oneOfType([l().string,l().bool]),l().string,l().string,l().string,l().string,l().bool,l().bool,l().bool,e=>{let{columns:t,focused:o,focusedIndex:i,links:r,primaryNavSectionTitle:l,subtitle:c,title:d,widget:p,columnButton:m}=e;const u=(0,n.useRef)(null),h=(0,n.useRef)(null),f=o&&m&&i===(null==r?void 0:r.length),g="string"==typeof d&&d.length>0,y=g?["nav-section",l,d].filter(Boolean).map(L).join("-"):void 0,v=g&&null!=m&&m.text?`${m.text} ${d}`:void 0;(0,n.useEffect)(function(){if(o)if(void 0===i)u.current&&u.current.focus();else if(m&&i===(null==r?void 0:r.length)&&h.current){const e=h.current.querySelector("a");e&&e.focus()}},[o,i,d,m,r]);const w=!c,O=[I,c&&B].filter(Boolean);return S(T,null,S(H,null,S("h3",{ref:u,id:y,tabIndex:0,className:(0,a.AH)(O)},d),m&&S("span",{ref:h},S(b.A,{href:null==m?void 0:m.link,text:null==m?void 0:m.text,ariaLabel:v,tabIndex:f?0:-1}))),c&&S(C,null,c),p?S(k.A,{type:p}):S(N,{displayAsRows:!0,"data-testid":"flyout-nav-links-wrapper"},S(s.Ay,{render:e=>{let{currentBreakpoint:n}=e;return w?S(x.A,{columns:t,columnWidth:n>2?240:220,gap:n>2?46:20,focused:o&&void 0!==i&&!f,focusedIndex:o&&!f?i:void 0,lineHeight:26,rowHeight:46,links:r,subnavSectionTitle:d,primaryNavSectionTitle:l,labelledBy:y}):S(A,{focused:o&&void 0!==i&&!f,focusedIndex:o&&!f?i:void 0,links:r,subnavSectionTitle:d,primaryNavSectionTitle:l,labelledBy:y})}})))});var D=o(54136),R=o(20949).h;const E=(0,m.Ay)(()=>new(o(6055).A)((e,t)=>{Promise.all([o.e(7866),o.e(6408),o.e(90),o.e(8210),o.e(7872),o.e(4708),o.e(4192),o.e(4867)]).then((n=>{try{let t=o(32706);e(t)}catch(e){t(e)}}).bind(null,o)).catch(t)}),{name:"search",delay:500}),P=a.Ay.button({padding:["25px 20px","25px 12px 25px 10px"],alignItems:"center",display:"flex",backgroundColor:"transparent",border:"none",flexDirection:"row",justifyContent:"space-between",flex:1,borderBottom:"solid 1px #767474",color:"#231f20",borderRadius:0,"&:hover":{color:"#08565c",svg:{path:{fill:"#08565c"}}}}),U=a.Ay.div({padding:["25px 20px 25px 20px","25px 0 25px 0"],borderBottom:"solid 1px #767474"}),M=e=>{const{onMainPanelLinkClick:t,focused:o,siteNav:i,onEscape:r}=e,{ref:l}=(0,D.jx)(r),s=(0,n.useCallback)(()=>{(0,c.y3)({location:"NAVIGATION",text:"Global Nav Viewed",name:"Global Nav Viewed",position:"Global Nav",actionOutcome:"UNKNOWN",elementType:"UNKNOWN"})},[]);return R(p(),{active:o,focusTrapOptions:{allowOutsideClick:!0}},R("div",{ref:l,className:(0,a.AH)([{display:"flex",flexDirection:"column",flexWrap:"wrap",flex:"1 0 100vw",maxWidth:"475px","@media(min-width:768px)":{display:"flex",flexDirection:"column",flex:"1 0 50%"},"@media(min-width:990px)":{display:"none",flexDirection:"undefined"}}]),"data-testid":"mobile-main-panel"},R(f.Waypoint,{onView:s}),R(U,null,R(E,{isSymptomBar:!1,submitText:void 0,isInPanel:!0,placeholder:"Search Healthline",formStyles:{margin:0,width:"100%",display:"flex"}})),i.map((e,o)=>R("div",{key:`${e.title}${o}`,style:{display:"flex"},"data-testid":"mobile-nav-section"},R(P,{type:"button","aria-label":`Expand for ${e.title} options`,onClick:()=>t(e.title,o)},R("h3",{className:I},e.title),R(h.A,null)))),R(u.A,{id:"ux3-subnav",placement:"ux3-subnav",hidePrivacyPolicy:!0,allowStub:!0,marginTop:0,link:{url:"/newsletter-signup?ref=global",text:"See all Newsletters",color:"#08565c"},wrapperStyles:{paddingTop:["30px","40px"],paddingLeft:[void 0,"0"],paddingRight:[void 0,"0"],alignItems:"normal",p:{margin:"0 0 24px"}},tagularDetails:{name:"Newsletter Acquisition",location:"HEADER",position:"Global Header SubNav UX3",elementType:"BUTTON",actionOutcome:"SUBMIT",text:"subscribe"},subscribeEventTracking:"Newsletter Acquisition|Global Header UX3|submit"})))};var $=o(54553),q=o(47734),F=o(81635),z=o(20949).h;const j=a.Ay.div({marginBottom:"15px",padding:0,display:"flex",flexDirection:"column",width:"100%"}),G=a.Ay.button({position:"absolute",left:16,top:20,background:"none",border:"none",svg:{margin:0,height:"20px"}}),V=a.Ay.h1({...g.Ay.components.headerUx3Subnav.mobileSecondaryPanelTitleFont,margin:0,fontSize:"18px",textAlign:"center",lineHeight:"24px"}),W=a.Ay.ul(e=>{let{tile:t}=e;return{listStyle:"none",...t?{paddingLeft:0,paddingRight:0,marginTop:"5px",marginBottom:0,marginLeft:[NaN,0],marginRight:[NaN,0]}:{paddingLeft:"10px",marginTop:"19px",marginBottom:"5px"}}}),_=a.Ay.p({margin:"12px 0",fontSize:"17px"}),X=e=>{const t=[{paddingLeft:"20px",paddingRight:"20px","@media(min-width:768px)":{paddingLeft:"10px",paddingRight:"10px"}}],o=[{borderTop:"1px solid #767474",paddingTop:"10px",paddingBottom:"10px",marginBottom:0,":last-child":{borderBottom:"1px solid #767474",marginBottom:"20px"}}],n={display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:"5px",borderBottomWidth:"1px",borderBottomColor:"black",borderBottomStyle:"solid"},i={...g.Ay.font.bodyFontBold,fontSize:"17px",lineHeight:"26px",marginTop:0,marginBottom:[0,0,"10px"],display:"block",width:"100%"},{sections:r,focusSecondaryNav:l,onBackButtonClick:s}=e,{columns:c,title:d}=r,{ref:m}=(0,D.jx)(s),u=(e,t)=>
1(0,$.y8)({name:e,location:"NAVIGATION",position:"Global Nav",elementType:"LINK",actionOutcome:"INTERNAL LINK",text:t});return z(p(),{active:l,focusTrapOptions:{allowOutsideClick:!0}},z("div",{ref:m,className:(0,a.AH)([{display:"flex",flexDirection:"column",flexWrap:"wrap",width:"100vw",padding:0,"@media(min-width:768px)":{flexDirection:"column",width:"50%"},"@media(min-width:990px)":{flexDirection:"undefined"}}]),"data-testid":"mobile-secondary-panel"},z("div",{className:(0,a.AH)([{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",position:"relative",backgroundColor:"#f7efe0",padding:"20px","@media(min-width:768px)":{padding:"20px"},"@media(min-width:990px)":{padding:"0"}}])},z(G,{type:"button",onClick:()=>s(),"data-testid":"back-button","aria-label":"Back"},z(q.A,null)),z(V,null,d)),z("div",{className:(0,a.AH)([{padding:"20px","@media(min-width:768px)":{padding:"20px"},"@media(min-width:990px)":{padding:"0"}}])},(c||[]).map((e,r)=>{var l,s,c,p,m;const h=!!e.subtitle||!(null==(l=e.links)||null==(l=l[0])||!l.image),f=!(null==(s=e.links)||null==(s=s[0])||!s.image||null!=(c=e.links)&&null!=(c=c[0])&&c.description);return z("div",{key:`${e.title}${r}`},z(j,null,z("div",{className:(0,a.AH)((0,g.mq)(n))},z("h3",{className:(0,a.AH)((0,g.mq)(i))},e.title),e&&z(b.A,{href:null==(p=e.columnButton)?void 0:p.link,text:null==(m=e.columnButton)?void 0:m.text})),e.subtitle&&z(_,null,e.subtitle),e.widget?z(k.A,{type:e.widget}):z(W,{tile:h},(e.links||[]).map((n,i)=>{return z("li",{key:`${n.title}${i}`,className:(0,a.cx)(n.image&&t,f&&o,(0,a.AH)([{display:"flex",fontSize:"18px","&:hover":{color:"#08565c"}}]))},z(F.A,{className:(0,a.AH)({padding:"8px 0"}),disableColors:!0,href:n.url,event:(r=d,l=e.title,s=n.title,`Any Page|${r} ${l} Global Header UX3|${s}`),tagularElementEvent:u(n.title,n.url)},n.image?z(y.FA,{image:n.image,title:n.title,description:n.description}):n.title));var r,l,s}))))}))))};var K=o(89929),Q=o(20949).h;const Z=a.Ay.li(e=>{let{marginWidth:t}=e;return{marginLeft:t,marginRight:t}}),J=(0,a.AH)({padding:0,backgroundColor:"transparent",height:0,width:0,border:"none",position:"absolute"}),Y=e=>{var t;let{focused:o,sections:i,onTabForward:r,onTabBackward:l,onEscape:s,primaryNavSectionTitle:c}=e;const d=(0,n.useRef)(null),p=(0,n.useRef)(null),m=(0,n.useMemo)(()=>i.map(e=>e.columnButton?{...e,links:[...e.links,{title:e.columnButton.text,url:e.columnButton.link}]}:e),[i]),{ref:u,index:h,subIndex:f,open:b,goToNextMenu:x,goToPreviousMenu:y,goToMenuIndex:v,closeMenu:w}=(0,D.TT)(m,{onTabEscape:s}),A=(0,n.useCallback)(function(){h===i.length-1?r&&r():x()},[x,h,r,i]),k=(0,n.useCallback)(function(){0===h?l&&l():y()},[y,h,l]),S=(0,n.useCallback)(function(){w()},[w]);(0,n.useEffect)(function(){void 0===h&&!b&&s&&s()},[h,b,s]),(0,n.useEffect)(()=>{let e,t;return p.current&&r&&(e=(0,K.q)(p.current,"focus",()=>r())),d.current&&l&&(t=(0,K.q)(d.current,"focus",()=>l())),()=>{e&&e(),t&&t()}},[r,l]);const T=!(null!=i&&null!=(t=i[0])&&t.subtitle);return Q(n.Fragment,null,Q("button",{className:J,ref:d,"aria-hidden":"true",type:"button"}),Q("ul",{role:"menubar",ref:u,className:(0,a.AH)((0,g.mq)({display:"flex",flexDirection:T?"row":"column",flexWrap:T?"wrap":"nowrap",padding:0,listStyle:"none",justifyContent:"space-between"})),"data-testid":"desktop-nav-list"},i.map((e,t)=>Q(Z,{role:"menuitem",key:`${e.title}${t}`,"data-testid":"nav-section-wrapper"},Q(O,{...e,focused:o&&h===t,focusedIndex:o&&h===t?f:void 0,onFocus:()=>{v(t)},onBlur:()=>{w()},onTabForward:A,onTabBackward:k,onEscape:S,primaryNavSectionTitle:c,"data-testid":"nav-section"})))),Q("button",{className:J,ref:p,"aria-hidden":"true",type:"button"}))};var ee=o(3872),te=o(20949).h;const oe=a.Ay.div({display:"block",width:"100%",overflowX:"hidden"}),ne=e=>{var t;let{focused:o=!1,index:a,onEscape:r,onTabForward:l,onTabBackward:d,primaryNavSectionTitle:p,siteNav:m}=e;const[u,h]=(0,n.useState)(0),[f,g]=(0,n.useState)(!1),[b,x]=(0,n.useState)(!1),y=(null==(t=m[a])?void 0:t.columns)||[],v=(e,t)=>{h(t),(0,c.FU)({name:"Any Page",location:"HEADER",position:"Global Header SubNav UX3",elementType:"LINK",actionOutcome:"INTERNAL LINK",text:e}),g(!0)},w=()=>{g(!1)},A=()=>{h(!1)},k=(0,i.zh)({from:{transform:"translateX(0%)"},to:{transform:f?"translateX(-50%)":"translateX(0%)"},onRest:{transform:()=>{window.setTimeout(()=>x(f),1)}}});return te(ee.A,{onClose:r},te(s.Ay,{render:e=>{let{currentBreakpoint:t}=e;return t>1?te(Y,{sections:y,focused:o,onEscape:r,onTabBackward:d,onTabForward:l,primaryNavSectionTitle:p,"data-testid":"desktop-panel"}):(null==m?void 0:m.length)>0&&te(oe,null,te(i.CS.div,{style:{display:"flex",flexDirection:"row",flexWrap:"nowrap",width:t<=1?"200%":"200vw",...k},"data-testid":"mobile-panels-wrapper"},te(M,{focused:!b,onEscape:r,onMainPanelLinkClick:v,siteNav:m,"data-testid":"mobile-main-panel"}),te(X,{onBackButtonClick:w,onLinkClick:A,sections:m[u],focusSecondaryNav:b,"data-testid":"mobile-secondary-panel"})))}}))}},8796(e,t,o){o.d(t,{A:()=>x});var n=o(77066),i=o(96540),a=o(93743),r=o(81635),l=o(59180),s=o(85723),c=o(20949).h;const d=new URLSearchParams(window.location.search).driverTest||"",p=d?"[150px]":"[112px | none | 112px | none]",m=d?["35px"]:["30px","35px"],u=["30px","40px"],h=(e,t)=>e?u:t?"inherit":m,f=(e,t)=>e?"[100px | 100px | 120px | 120px]":t?"inherit":p,g=(e,t,o)=>({maxWidth:f(e,o),maxHeight:h(e,t),display:"block"});class b extends i.Component{constructor(){super(...arguments),this.state={}}componentDidMount(){const{sponsorTracker:e,contentIndex:t}=this.props;
1e&&e.includes("+pageViewId")&&this.setState({pageViewId:HL.cIds[t]})}render(){const{brand:e={},sponsorUrl:t,sponsorTracker:o,stackLabel:s,noDefaultHeight:d=!1,noDefaultWidth:p=!1}=this.props,m=!(o&&o.includes("+pageViewId"))||this.state.pageViewId;return c(i.Fragment,null,t?c("div",{className:(0,n.AH)((0,a.mq)({display:[""+(s?"block":"flex"),"flex"],alignItems:"center"}))},c("div",{className:(0,n.AH)((0,a.mq)({fontSize:"14px",lineHeight:"20px",color:"#767474",marginRight:[""+(s?"0px":"15px"),"15px"],marginBottom:[""+(s?"10px":"0px"),"0px"],whiteSpace:"nowrap",textAlign:[""+(s?"center":"left"),"left"],display:""+(s?"block":"inline")}))},"Sponsored by"),c("div",{className:(0,n.AH)({userSelect:"none",display:""+(s?"block":"inline-block")})},c(r.A,{disableColorsTillHover:!0,href:t,onClick:()=>{}},c(l.p,{alt:e.title,className:(0,n.AH)(g(t)),src:e.logoSrc,height:[30,35],lazy:!0})),o&&m&&c("img",{src:o.replace("+pageViewId",this.state.pageViewId),className:(0,n.AH)({display:"block"}),width:"1",height:"1",alt:"",loading:"eager"}))):c("div",{className:(0,n.AH)({userSelect:"none"})},c(l.p,{alt:e.title,className:(0,n.AH)(g(!1,d,p)),src:e.logoSrc,height:[30,35],lazy:!0})))}}const x=(0,s.A)((e,t)=>{const{campaign:o={},brand:n={},sponsorUrl:i}=e;return i?`Newsletter Acquisition|${o.name}|${n.title} logo ${t}`:""},b)},65516(e,t,o){o.r(t),o.d(t,{default:()=>R});var n=o(96540),i=o(77066),a=o(93743),r=o(45352),l=o(96036),s=o(4924),c=o(88057),d=o(66963),p=o(25973),m=o(8796),u=o(27331),h=o(73966),f=o(13680),g=o(99120),b=o(83),x=o(35879),y=o(56256),v=o(41306),w=o(16370),A=o(66133),k=o(96541),S=o(4019),T=o(65428),N=o(7125),C=o(61433),I=o(20949).h;const B=(0,u.Ay)(()=>new(o(6055).A)((e,t)=>{Promise.all([o.e(4708),o.e(2111)]).then((n=>{try{let t=o(62405);e(t)}catch(e){t(e)}}).bind(null,o)).catch(t)}),{name:"modal"}),L=(0,A.lk)(),H=[{width:"calc(100% - 20px)",maxWidth:"100%","@media(min-width:768px)":{width:"calc(100% - 20px)",maxWidth:"800px"}}],O=["personalization","personalizedCondensed","personalizedCheckboxes"],D=e=>{let{logoSrc:t}=e;const{alt:o,width:n,height:r,useSrcSet:l,responsiveHeight:s}=a.Ay.components.newsletterModal.modalWrapper.logo;return I("img",{alt:o,width:n,height:r,className:s&&(0,i.AH)((0,a.mq)({height:s})),srcSet:l?t:void 0,src:t,loading:"lazy"})};const R=(0,y.Rv)(function(e){let{driver:t,tagularDetails:o,isHeader:u,contentIndex:y,hasImage:A,onClose:R,onLoaded:E}=e;const[P,U]=(0,n.useState)("form"),[M,$]=(0,n.useState)(!1),[q,F]=(0,n.useState)(null),z=(0,n.useRef)(null),j=(0,n.useRef)(""),G=(0,n.useRef)(!1),V=(0,n.useRef)(void 0),W=(0,b.r)("C0004"),_="authority-nutrition"===t.id&&"Header Newsletter-Nutrition Signup"!==t.source,X=(0,n.useMemo)(()=>({...o,brand:p.p,name:t.productId,location:t.articlePlacement,position:0}),[o,t.productId,t.articlePlacement]);if((0,n.useEffect)(()=>{W&&_&&!G.current&&(G.current=!0,(0,S.A)({isHeader:u,tagularDetails:X,viewCorrelationId:L,...t}),E&&E({lists:t.lists}))},[W,_,u,X,t,E]),!W)return null;if(M)return null;if(_)return null;const K=O.includes(t.style)?t.style:void 0,Q="personalization"===t.style,Z="personalizedCondensed"===t.style||"personalizedCheckboxes"===t.style,{confirmTitle:J,confirmDesc:Y,confirmCallToAction:ee,confirmCallToActionURL:te}=function(e){const t=a.Ay.components.newsletterModal.modalWrapper.success,o=e.confirmTitle||t.title,r=e.confirmDesc||I("span",null,t.description,t.descriptionSecondLine&&I(n.Fragment,null,I("br",null),t.descriptionSecondLine)),l=t.fallbackCtaText&&I(n.Fragment,null,t.fallbackCtaText,I("span",{className:`icon-hl-instagram ${(0,i.AH)([{marginLeft:"10px",verticalAlign:"middle",fontSize:"14px"}])}`})),s=e.confirmCallToAction||l;return{confirmTitle:o,confirmDesc:r,confirmCallToAction:s,confirmCallToActionURL:s?e.confirmCallToActionURL||t.fallbackCtaUrl:void 0}}(t),oe=(0,C.c)({...t,currentBreakpoint:1}),ne=(0,C.c)({...t,currentBreakpoint:0}),ie=a.Ay.components.newsletterModal.modalWrapper,ae=(t.feedbackOptionalSelections||[]).filter(e=>!(t.feedbackSelections||[]).includes(e)),re=Boolean(t.includeFeedbackStep&&!Q&&!Z),le={trackDriverLoaded:()=>(0,S.A)({isHeader:u,tagularDetails:X,viewCorrelationId:L,...t}),trackDriverInView:()=>{},trackSubmitButtonClicked:()=>{},trackTopicClicked:(e,o)=>(0,w.b2)({formName:t.productId,formType:"ONBOARDING",formId:t.productId,fieldId:"interest",fieldType:"ONBOARDING_QUESTION",fieldName:(null==o?void 0:o.fieldName)||"interest",fieldValue:e,fieldLabel:null==o?void 0:o.fieldLabel,stepContext:{stepName:null==o?void 0:o.stepName,stepNumber:null==o?void 0:o.stepNumber,stepType:"PREFERENCE"}}),trackTopicsSubmitted:(e,o)=>(0,w.F3)({correlationId:j.current,formContext:{formBrand:p.p,formId:t.productId,formName:t.productId,formType:"ONBOARDING"},field:e.map(e=>({fieldId:"interest",fieldType:"ONBOARDING QUESTION",fieldName:"interest",fieldValue:e,fieldLabel:null==o?void 0:o.fieldLabel}))}),trackConfirmationScreenViewed:()=>{t.confirmCallToActionURL&&(0,w.y3)({elementType:t.confirmCallToAction?"Button":"",location:"Confirmation Screen",name:t.campaignName,position:t.campaignName,text:t.confirmCallToAction,actionOutcome:"INTERNALLINK",...X.customDimensions&&{customDimensions:X.customDimensions}})},trackConfirmationScreenCTAClicked:()=>{t.confirmCallToActionURL&&(0,w.FU)({location:"Confirmation Screen",name:t.campaignName,text:t.confirmCallToAction,actionOutcome:"INTERNALLINK",outboundUrl:t.confirmCallToActionURL})},trackCloseClicked:()=>(0,w.FU)({location:u?"HEADER":"MODAL",name:"Newsletter Acquisition",position:`${u?"Header Overlay Popup":"2nd Page Popup"} - ${t.campaignName}`,elementType:"BUTTON",text:"CLOSE",htmlId:"",actionOutcome:"CLOSE",...(null==o?void 0:o.customDimensions)&&{customDimensions:o.customDimensions}})},se=async e=>{const o=j.current,n=u&&x.A.newsletter.headerSourceOverride?x.A.newsletter.headerSourceOverride:t.source;z.current&&z.current({customOutboundUrl:h.Jx,customCorrelationId:o});const{lists:i}=t,{error:a}=await(0,h.B1)({email:e,source:n,lists:i,correlationId:o,contentIndex:y,sailthruAccount:t.sailthruAccount,iterableAccount:t.iterableAccount,pointSolutionNames:t.pointSolutionNames,conditionNames:t.conditionNames,collectionNames:t.collectionNames,courseNames:t.courseNames,trackNames:t.trackNames,vertical:t.verticalName});if(a)throw new Error("string"==typeof a?a:(null==a?void 0:a.message)||"newsletter subscribe failed");if((0,g.hZ)("email",e),(0,f.HX)("NewsletterSignup",i),re)return le.trackConfirmationScreenViewed(),t.autoOpen&&t.confirmCallToActionURL&&(0,k.G)(t.confirmCallToActionURL),F({email:e,correlationId:o}),U("onboarding"),new Promise(()=>{})},ce=()=>{le.trackCloseClicked(),R?R():$(!0)},de=()=>U("success");return I(v.TagularTrackProductClick,{...X,actionOutcome:"INTERNALLINK",viewCorrelationId:L,render:e=>{let{correlationId:o,trackTagularClick:n}=e;return z.current=n,j.current=o,t.sponsorTracker&&o&&void 0===V.current&&(V.current=(0,f.ID)({url:t.sponsorTracker,correlationId:o})),"onboarding"===P?I(B,{onClose:ce,className:(0,i.AH)((0,a.mq)((0,N.A)({showVariant:!0,isSuccess:!0,designName:"onboarding"}))),render:()=>I(s.Z,{content:{feedbackSelections:t.feedbackSelections,whisper:"Healthline Newsletter",feedbackTitle:t.feedbackTitle,feedbackDescription:t.feedbackDescription,feedbackCallToAction:t.feedbackCallToAction,feedbackOptionalSelections:t.feedbackOptionalSelections,feedbackOptionalTitle:t.feedbackOptionalTitle,feedbackOptionalDescription:t.feedbackOptionalDescription,feedbackOptionalCallToAction:t.feedbackOptionalCallToAction},isModal:!0,imageMobile:t.imageMobile,imageDesktop:t.imageDesktop,onSubmit:de,campaignName:t.campaignName,correlationId:null==q?void 0:q.correlationId,LogoComponent:t.vendorLogo&&I(D,{logoSrc:t.vendorLogo}),formBrand:p.p,rollupFormId:"e:cc_s:hl_p:nl_n:t2d_l:mktglp_v:reginhero"})}):"success"===P?I(B,{onClose:ce,className:(0,i.AH)((0,a.mq)((0,N.A)({showVariant:!0,isSuccess:!0}))),render:e=>{var o;let{close:n}=e;return I(T.A,{confirmationImageDesktop:t.confirmationImageDesktop,confirmationImageMobile:t.confirmationImageMobile,confirmTitle:t.confirmTitle,confirmDesc:t.confirmDesc,confirmCallToAction:t.confirmCallToAction,confirmCallToActionURL:t.confirmCallToActionURL,callToActionHexColor:t.callToActionHexColor,campaignName:t.campaignName,whisper:t.whisper,whisperColor:t.whisperColor,logoSrc:t.vendorLogo,driverId:t.driverId,email:null==q?void 0:q.email,newsletters:t.lists,close:n,color:null!=(o=ie.success.borderColorOverride)?o:t.color,hasImage:A,eventProps:u&&{category:"Newsletter Acquisition",action:"Header Newsletter Confirmation - Instagram",click:"click"}})}}):I(r.NewsletterModal,{headline:oe,headlineMobile:ne===oe?void 0:ne,bodyText:t.descriptionModal,bodyTextMobile:t.descriptionModalMobile,imageMobile:t.imageMobile||ie.defaultImageMobile,imageDesktop:t.imageDesktop||ie.defaultImageDesktop,submitText:t.callToAction,color:"tangerine"===t.color?"tangerine":void 0,callToActionHexColor:t.callToActionHexColor,buttonBorder:t.buttonBorder,buttonBorderHover:t.buttonBorderHover,secondaryCtaText:t.secondaryCtaText,secondaryCtaUrl:t.secondaryCtaUrl,emailInputClassName:`${d.D}-id-class`,secondaryNewsletters:t.secondaryNewsletters,secondaryType:t.secondaryType,secondarySubscriptionSubhead:t.secondarySubscriptionSubhead,pillStyle:K,flowVariant:Q?"personalizationFirst":"standard",feedbackSelections:t.feedbackSelections,feedbackTitle:t.titleOverride,feedbackDescription:t.descriptionModal,feedbackOptionalSelections:ae,feedbackOptionalTitle:t.feedbackOptionalTitle,feedbackOptionalDescription:t.feedbackOptionalDescription,feedbackOptionalCallToAction:t.feedbackOptionalCallToAction,autoOpen:Boolean(t.autoOpen&&t.confirmCallToActionURL),confirmTitle:J,confirmDesc:Y,confirmCallToAction:ee,confirmCallToActionURL:te,confirmationImageDesktop:t.confirmationImageDesktop||ie.success.confirmationImageDesktop,confirmationImageMobile:t.confirmationImageMobile||ie.success.confirmationImageMobile,whisper:t.whisper,whisperColor:t.whisperColor,contentIndex:y,outboundUrl:h.Jx,className:(0,i.AH)(H),events:le,onSubmit:se,onClose:R,onLoaded:()=>null==E?void 0:E({lists:t.lists}),LogoComponent:t.vendorLogo&&I(D,{logoSrc:t.vendorLogo}
1),SponsorComponent:t.sponsorUrl&&I(m.A,{brand:{title:t.vendorName,logoSrc:t.vendorLogo},sponsorUrl:t.sponsorUrl,sponsorTracker:V.current,campaign:{name:t.campaignName}}),PrivacyPolicyComponent:I(l.PrivacyPolicy,{color:"grayDark",showOptumNow:(0,c.e)(t.iterableAccount),showSweepstakesPolicy:t.showSweepstakesPolicy})})}})})},4019(e,t,o){o.d(t,{A:()=>a});var n=o(13680),i=o(16370);function a(e){let{isHeader:t,campaignName:o="2nd Page Popup",tagularDetails:a,viewCorrelationId:r}=e;if((0,i.K8)(a),(0,i.Z3)(a,r),t){const e={category:"Newsletter Acquisition",action:o,label:"click"};(0,n.HX)(e.action,e.label)}}},61433(e,t,o){o.d(t,{A:()=>r,c:()=>a});o(5556);var n=o(99912),i=o(20949).h;const a=e=>{let{title:t,titleOverride:o,titleOverrideMobile:n,currentBreakpoint:i}=e;return o&&n?0===i?n:o:o||`Get our ${t} newsletter`},r=/^(2901|4285)$/.test(o.j)?e=>{let{title:t,titleOverride:o,titleOverrideMobile:r}=e;return i(n.Ay,{render:e=>{let{currentBreakpoint:n}=e;return a({title:t,titleOverride:o,titleOverrideMobile:r,currentBreakpoint:n})}})}:null},96541(e,t,o){function n(e){window.open(e)}o.d(t,{G:()=>n})},60137(e,t,o){o.d(t,{V:()=>n});const n={liveRampECST:{k1s:["abdominalpain","adhd","agingandlongevity","allergies","alzheimers","ankylosingspondylitis","anxiety","arthritis","asthma","backpain","bipolar","birthcontrol","blackhealthsystems","breastcancer","bronchitis","chemotherapy","childrenshealth","cholesterol","constipation","copd","crohnsdisease","dementia","depression","diabetesmellitustype2","diarrhea","dryeyes","eczema","emphysema","gasbloating","gonorrhea","hairloss","headache","hippain","hivaids","hpv","hyperglycemia","hypertension","hypothyroid","irritablebowelsyndrome","maculardegeneration","migraine","ms","nauseaandvomiting","neckpain","nicotineaddiction","obesity","otherautoimmunedisorders","otherbloodcelldisorders","otherbreastdisorders","otherdigestiveproblems","otherfemalesexualhealth","otherjointpain","otherlungcancer","othermalesexualhealth","othermentalhealth","othermusculoskeletaldisorders","otherneurologicaldisorders","otherrespiratory","otherspinalproblems","otherweightrelated","otherwomenshealth","psoriasis","psoriaticarthritis","reconstructivesurgeries","rheumatoidarthritis","schizophrenia","sinusinfections","smoking","ulcer","ulcerativecolitis","weightgain","weightloss"]}}},88057(e,t,o){function n(e){return"opn"===e}o.d(t,{e:()=>n})}}]);
2//# sourceMappingURL=deferred-global-628d6389.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.