(window.webpackJsonp=window.webpackJsonp||[]).push([[11,43],{417:function(t,e,i){"use strict";i.r(e);var n=i(1),o=i(0),a=(i(7),i(422)),r=i(128),s=i(237);const l="AIzaSyBAdbZ7wy43UhBT3IyxxhhQv_Wnzi_P2mE",p="https://www.googleapis.com/youtube/v3";function c(t){return fetch(t).then(t=>{if(t.ok)return t.json();const e=new Error(`Fetch failure: ${t.status}`);throw e.url=p,e.status=t.status,e}).catch(t=>({error:t}))}var d=i(450),w=i(81);i.d(e,"YouTube",(function(){return k})),i.d(e,"checkCompletion",(function(){return m}));var h=i(2).h;let j=[],u=!1;function y(t){const e=t.match(/PT(\d+)?M?(\d+)?S?/);return t.indexOf("M")?60*e[1]+1*e[2]:e[1]}function m(t,e,i,n,o=null){const r=t.getCurrentTime();t[i]=t[i]||{},Object.keys(e).forEach(s=>{if(e[s]<=r&&!t[i][s])switch(t[i][s]=!0,s){case"25":o?o({percent:25}):a.a.onTwentyFivePercent({currentMedia:n});break;case"50":o?o({percent:50}):a.a.onFiftyPercent({currentMedia:n});break;case"75":o?o({percent:75}):a.a.onSeventyFivePercent({currentMedia:n})}})}function b(t,e,i,n=null){const o=t.getPlayerState(),a=function(t){const e={};return[25,50,75].forEach(i=>{const n=t*i/100;e[i]=Math.floor(n)}),e}(Math.floor(t.getDuration())),r=e;1!==o||r.timer?(clearInterval(r.timer),r.timer=!1):(clearInterval(r.timer),r.timer=setInterval(()=>{m(t,a,r.videoId,i,n)},1e3))}window.onYouTubeIframeAPIReady=()=>{u=!0,j.forEach(t=>t()),j=void 0};const g={};function f(t,e){const i=g[t];i&&i.resolve?(i.resolve(e),delete i.resolve):g[t]={load:Promise.resolve(e)}}const v=Object(o.a)('& .inner-wrapper{font-size:0;line-height:0;outline:none;overflow:hidden;position:relative;touch-callout:none;user-select:none;display:block;&::after{background-repeat:no-repeat;background-size:cover;bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0;}> iframe{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1;}}display:block;padding-top:24;position:relative;width:100%;'),x="Youtube";class k extends n.Component{constructor(t){super(t),this.getPlayerState=()=>{switch(this.player.getPlayerState()){case 1:return"playing";case 5:return"paused"}},this.onStateChange=t=>{const{currentMedia:e}=this.state,{onTime:i}=this.props;switch(this.player&&b(this.player,this.player.getIframe(),e,i),t.data){case-1:this.playing=!1;break;case 0:i?i({percent:100}):a.a.onOneHundredPercent({currentMedia:e});break;case 1:this.onPlay();break;case 2:case 3:break;case 5:this.loadPlaylist();break;default:return null}return null},this.onPlay=()=>{if(this.playing)return;this.props.onPlay&&this.props.onPlay(),this.playing=!0;const{playlist:t,currentMedia:e}=this.state,i=this.player.getPlaylistIndex();-1===i?a.a.onPlay({currentMedia:e}):(this.setState({playingIndex:i,currentMedia:t[i]}),a.a.onPlay({currentMedia:t[i]}),this.player&&b(this.player,this.player.getIframe(),t[i]))},this.onReady=()=>{const{mediaId:t,type:e}=this.props;if(this.props.onReady&&this.props.onReady(),"playlist"===e)f(t,`playlist ${t}`),this.player.cuePlaylist({listType:"playlist",list:t});else{const e=this.player.getVideoData().title;f(t,e),this.setState({currentMedia:{category:x,title:e}})}},this.updatePlayer=t=>{this.playing=!1,this.player.playVideoAt(t)},this.init=()=>{const{playerId:t}=this.state,{didMountCallback:e=(()=>{}),mediaId:i}=this.props;this.player=new YT.Player(t,{height:"100%",width:"100%",events:{onStateChange:this.onStateChange,onReady:this.onReady},...this.sourceSetup()}),e(this.player),window.HL.jwp[i]=this};const{mediaId:e,parentKey:i,title:n}=t;this.state={reactYoutubeReady:!1,playerId:`youtube-${e}-${i}`,playlist:[{category:x,title:n}],playingIndex:null,currentMedia:{category:x,title:n}},this.playing=!1}componentDidMount(){void 0===window.YT&&Object(r.a)("https://www.youtube.com/iframe_api").catch(()=>{}),u?this.init():j.push(this.init)}loadPlaylist(){const{mediaId:t}=this.props;return(e=t,c(`${p}/playlistItems?part=contentDetails&maxResults=50&playlistId=${e}&key=${l}`)).then(({items:t})=>(function(t){return c(`${p}/videos?part=contentDetails,snippet&id=${encodeURI(t)}&key=${l}`)})(t.map(t=>t.contentDetails.videoId))).then(({items:t})=>{const e=t.map(t=>({duration:y(t.contentDetails.duration),title:t.snippet.title,image:t.snippet.thumbnails.high.url,mediaid:t.id}));this.setState({playlist:e,reactYoutubeReady:!0})});var e}sourceSetup(){const{mediaId:t,type:e}=this.props;return"playlist"===e?{playerVars:{autoplay:0,controls:1}}:{videoId:t}}render(){const{transcripts:t,title:e,type:i,className:n}=this.props,{playerId:a,playlist:r,playingIndex:l,reactYoutubeReady:p}=this.state;return h("span",{className:Object(o.b)([v,n,"youtube-container"]),css:[{"& .inner-wrapper":{paddingTop:"56.25%"}}]},h("span",{tabIndex:"-1",className:"inner-wrapper"},h("div",{id:a})),"playlist"===i&&p&&h(d.a,{css:"margin-top: 30px",currentlyPlayingIndex:l,handleItemClick:this.updatePlayer,playlist:r}),t&&t.length>0&&h(s.a,{title:e,content:t[0]}))}}e.default=Object(w.a)((t,e)=>{if(t.mediaId)return function(t){let e=g[t];return e||((e=g[t]={}).load=new Promise(t=>{e.resolve=t})),e.load}(t.mediaId).then(i=>({category:`Video - ${x}`,action:i||t.mediaId,label:e}))},k)},452:function(t,e,i){"use strict";i.d(e,"a",(function(){return c})),i.d(e,"b",(function(){return d}));var n=i(0),o=i(453),a=i.n(o),r=i(3),s=i(2).h;const l=r.a.font.bodyFontCondBold,p="&.jw-breakpoint-1 {\n .jw-svg-icon-fullscreen-on,\n .jw-svg-icon-volume-0,\n .jw-svg-icon-volume-100,\n .jw-svg-icon-rewind {\n display: none !important;\n }\n\n .jw-icon-fullscreen::before,\n .jw-icon-volume::before,\n .jw-icon-rewind::before {\n display: block;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n font-family: 'healthline-video-mobile';\n line-height: 1;\n speak: none;\n text-align: center;\n visibility: visible;\n }\n\n .jw-icon-fullscreen::before {\n content: '\\e901';\n }\n\n &.jw-flag-fullscreen {\n .jw-icon-fullscreen::before {\n display: none;\n }\n }\n\n .jw-icon-volume::before {\n content: '\\e903';\n }\n\n .jw-off.jw-icon-volume::before {\n content: '\\e903';\n }\n\n .jw-full.jw-icon-volume::before {\n content: '\\e907';\n }\n\n .jw-icon-rewind::before {\n content: '\\e908';\n }\n\n .jw-display .jw-icon.jw-icon-rewind::before {\n font-size: 50px;\n width: 50px;\n height: 50px;\n }\n}",c=Object(n.a)(".video-close-button{position:relative;width:100%;text-align:right;height:30px;background-color:#2f2d2d;display:none;}.video-close-button span{padding:10px;font-weight:800;color:white;cursor:pointer;}.youtube-container{padding-top:0px;}.jwplayer{background:white;&.jw-skin-hl-reskin,&.jw-skin-hl{.jw-progress{background-color:","cyan",";}.jw-svg-icon-play,.jw-svg-icon-pause,.jw-svg-icon-rewind{display:none !important;}.jw-icon-rewind::before,.jw-icon-display::before,.jw-icon-playback::before{display:block;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;font-family:'healthline-video';line-height:1;speak:none;text-align:center;visibility:visible;}.jw-icon-rewind::before{content:'\\e904';}",p," .jw-display{z-index:1;}.jw-display .jw-icon{width:50px;height:50px;}.jw-display .jw-icon-display::before{font-size:35px;height:50px;line-height:50px;}.jw-display .jw-icon.jw-icon-rewind::before{font-size:50px;width:50px;height:50px;}.jw-display-icon-container{margin:0;padding:0;}.jw-display-icon-next{display:none;}.jw-controlbar .jw-icon-rewind::before{font-size:26px;}.jw-controlbar .jw-icon-playback::before{font-size:22px;}&.jw-state-playing.jw-flag-user-inactive .jw-display .jw-display-icon-rewind{display:none;}&.jw-flag-ads.jw-state-playing.jw-flag-user-inactive .jw-controlbar{visibility:visible !important;pointer-events:all !important;opacity:1 !important;}&.jw-state-idle,&.jw-state-idle .jw-preview,&.jw-state-playing,&.jw-state-paused,&.jw-state-complete,&.jw-state-complete .jw-preview{background-color:white;}&.jw-state-idle{.jw-preview{background-repeat:no-repeat;background-size:contain;}.jw-controls{background:rgba(0,0,0,0.1);}.jw-display,.jw-flag-small-player .jw-display{padding:0;justify-content:flex-end;}&:hover .jw-icon-display{background-color:","cyan",";}.jw-display-container{padding:0 0 20px 20px;vertical-align:bottom;text-align:left;}.jw-icon-display{border-radius:50%;width:39px;height:38px;color:#fff;}.jw-icon-display::before{font-size:40px;height:40px;width:40px;line-height:40px;}.jw-icon-playback::before{content:'\\e903';}.jw-icon-display::before{content:'\\e902';}.jw-title{top:unset;bottom:15px;left:75px;width:unset;min-height:50px;justify-content:center;flex-direction:column;display:flex;color:#fff;padding:0 20px 0 0;}.jw-title .jw-title-primary{","font-size: 22px; line-height: 1.18;"," text-align:left;",l," overflow:unset;white-space:normal;padding:0;}.jw-title .jw-title-primary::before{content:'watch video';display:none;text-transform:uppercase;font-size:18px;font-weight:400;white-space:normal;font-family:",'"Proxima Nova", "Proxima Nova Fallback", sans-serif',";line-height:normal;}.jw-title .jw-title-secondary{font-size:18px;font-family:",'"Proxima Nova", "Proxima Nova Fallback", sans-serif',";line-height:1.44;font-weight:400;white-space:normal;padding:0;margin-top:6px;}&.jw-breakpoint-3 .jw-display-container,&.jw-breakpoint-4 .jw-display-container{padding:0 0 30px 30px;}&.jw-breakpoint-3 .jw-icon-display,&.jw-breakpoint-4 .jw-icon-display,&.jw-breakpoint-5 .jw-icon-display,&.jw-breakpoint-6 .jw-icon-display{width:89px;height:88px;}&.jw-breakpoint-3 .jw-icon-display::before,&.jw-breakpoint-4 .jw-icon-display::before,&.jw-breakpoint-5 .jw-icon-display::before,&.jw-breakpoint-6 .jw-icon-display::before{font-size:90px;width:90px;height:90px;line-height:90px;}&.jw-breakpoint-3 .jw-title,&.jw-breakpoint-4 .jw-title,&.jw-breakpoint-5 .jw-title,&.jw-breakpoint-6 .jw-title{bottom:25px;left:140px;min-height:110px;}&.jw-breakpoint-3 .jw-title .jw-title-primary,&.jw-breakpoint-4 .jw-title .jw-title-primary,&.jw-breakpoint-5 .jw-title .jw-title-primary,&.jw-breakpoint-6 .jw-title .jw-title-primary{","font-size: 42px; line-height: 1.05;","}&.jw-breakpoint-3 .jw-title .jw-title-primary::before,&.jw-breakpoint-4 .jw-title .jw-title-primary::before,&.jw-breakpoint-5 .jw-title .jw-title-primary::before,&.jw-breakpoint-6 .jw-title .jw-title-primary::before{display:block;}&.jw-breakpoint-3 .jw-title .jw-title-secondary,&.jw-breakpoint-4 .jw-title .jw-title-secondary{font-size:18px;line-height:","18px",";}}&.jw-state-complete .jw-controls{background:rgba(0,0,0,0.1);}&.jw-state-paused .jw-controls-backdrop.jw-reset,&.jw-state-playing .jw-title.jw-reset,&.jw-state-paused .jw-title.jw-reset,&.jw-state-complete .jw-title.jw-reset{background:none;}&.jw-state-playing .jw-icon-playback::before,&.jw-state-playing .jw-icon-display::before{content:'\\e900';}&.jw-state-paused .jw-controls{background:rgba(0,0,0,0.4);}&.jw-state-paused .jw-icon-playback::before,&.jw-state-paused .jw-icon-display::before{content:'\\e903';}&.jw-state-complete .jw-controlbar .jw-icon-playback::before,&.jw-state-complete .jw-controlbar .jw-icon-display::before{content:'\\e903';}&.jw-state-complete .jw-title,&.jw-state-paused .jw-title{display:block;padding:20px;min-height:150px;}&.jw-state-complete .jw-title .jw-title-primary,&.jw-state-paused .jw-title .jw-title-primary{font-size:16px;line-height:16px;}&.jw-state-complete .jw-title .jw-title-secondary,&.jw-state-paused .jw-title .jw-title-secondary{font-size:13px;line-height:14px;}&.jw-breakpoint-2.jw-state-paused .jw-controls{background:transparent;}&.jw-breakpoint-2.jw-state-complete .jw-title,&.jw-breakpoint-2.jw-state-paused .jw-title{display:block;padding:20px;min-height:100px;background:linear-gradient( to bottom,transparent,rgba(0,0,0,0.5) 0%,rgba(0,0,0,0) 100% ) no-repeat transparent;}&.jw-breakpoint-3.jw-state-complete .jw-title,&.jw-breakpoint-3.jw-state-paused .jw-title,&.jw-breakpoint-4.jw-state-complete .jw-title,&.jw-breakpoint-4.jw-state-paused .jw-title{display:block;padding:20px;min-height:150px;background:none;}&.jw-breakpoint-3.jw-state-complete .jw-title .jw-title-primary,&.jw-breakpoint-3.jw-state-paused .jw-title .jw-title-primary,&.jw-breakpoint-4.jw-state-complete .jw-title .jw-title-primary,&.jw-breakpoint-4.jw-state-paused .jw-title .jw-title-primary{font-size:20px;line-height:20px;}&.jw-breakpoint-3.jw-state-complete .jw-title .jw-title-secondary,&.jw-breakpoint-3.jw-state-paused .jw-title .jw-title-secondary,&.jw-breakpoint-4.jw-state-complete .jw-title .jw-title-secondary,&.jw-breakpoint-4.jw-state-paused .jw-title .jw-title-secondary{font-size:16px;line-height:14px;}video{background:white;}}&.jw-skin-hl-reskin{display:flex;justify-content:center;&.jw-state-idle{.jw-title{width:100%;padding:0 20px;left:0 !important;}&.jw-breakpoint-3 .jw-title .jw-title-primary::before,&.jw-breakpoint-4 .jw-title .jw-title-primary::before,&.jw-breakpoint-5 .jw-title .jw-title-primary::before,&.jw-breakpoint-6 .jw-title .jw-title-primary::before{display:none;}&.jw-breakpoint-3 .jw-title .jw-title-secondary,&.jw-breakpoint-4 .jw-title .jw-title-secondary{font-size:16px;line-height:20px;}& .jw-title .jw-title-secondary,& .jw-title .jw-title-primary{text-align:center;}&.jw-breakpoint-3 .jw-title{bottom:0 !important;}&.jw-breakpoint-3 .jw-title,&.jw-breakpoint-4 .jw-title,&.jw-breakpoint-5 .jw-title,&.jw-breakpoint-6 .jw-title{bottom:25px;min-height:110px;}&.jw-breakpoint-2 .jw-title .jw-title-secondary,&.jw-breakpoint-3 .jw-title .jw-title-secondary{display:none;}.jw-icon-display{width:49px;height:48px;}.jw-icon-display::before{font-size:50px;height:50px;width:50px;line-height:50px;}.jw-display-icon-container{float:none;position:absolute;top:calc(50% - 45px);left:calc(50% - 45px);}&.jw-breakpoint-3 .jw-display-icon-container{top:calc(50% - 65px);}&.jw-breakpoint-1 .jw-display-icon-container,&.jw-breakpoint-2 .jw-display-icon-container{top:calc(50% - 25px);left:calc(50% - 25px);}.jw-icon-display{color:","cyan",";background-color:#fff;}&:hover .jw-icon-display{color:magenta-dark;background-color:#fff;}}}}div.jw-title-primary.jw-reset-text{font-family:",l.fontFamily,";font-weight:",l.fontWeight,";}.jw-skip{display:none !important;}.jwplayer .jw-plugin-vast .jw-ad-icon-container{width:76px !important;height:16px !important;right:0 !important;left:auto !important;}.jwplayer.jw-flag-floating .jw-wrapper{left:0;right:0;@media (max-width:768px){left:auto;right:18px;}}.jwplayer.jw-flag-touch.jw-flag-floating .jw-wrapper{top:auto;right:20px;bottom:24px;left:auto;margin:0;width:180px !important;@media (max-width:768){top:auto;right:20px;bottom:24px;}@media (max-width:480){top:auto;right:20px;bottom:24px;}.jw-title,.jw-controls .jw-display,.jw-controls .jw-float-icon,.jw-controls .jw-controlbar .jw-button-container{opacity:0;}}.jwplayer.jw-flag-touch.jw-flag-floating{&.jw-state-playing,&.jw-state-paused,&.jw-state-complete{.jw-wrapper .jw-controls .jw-controlbar{visibility:visible;opacity:1;.jw-slider-time{height:5px;.jw-knob{display:none;}}.jw-slider-container{height:5px;background-color:#fff;overflow:hidden;.jw-progress{height:10px;}}}}&.jw-state-buffering{.jw-controls .jw-display,.jw-controls .jw-float-icon{opacity:1;}}&.jw-state-complete{.jw-controls .jw-display{opacity:1;font-family:'healthline-video-mobile';}.jw-icon-display .jw-svg-icon-replay{display:none;}}.jw-float-icon[aria-label='Close']{display:none;}}"),d=t=>{const e=t||{};return s(a.a,{...e,css:[".jwplayer{background:white;&.jw-skin-hl-reskin,&.jw-skin-hl{.jw-progress{background-color:","cyan",";}.jw-svg-icon-play,.jw-svg-icon-pause,.jw-svg-icon-rewind{display:none !important;}.jw-icon-rewind::before,.jw-icon-display::before,.jw-icon-playback::before{display:block;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;font-family:'healthline-video';line-height:1;speak:none;text-align:center;visibility:visible;}.jw-icon-rewind::before{content:'\\e904';}",p," .jw-display{z-index:1;}.jw-display .jw-icon{width:50px;height:50px;}.jw-display .jw-icon-display::before{font-size:35px;height:50px;line-height:50px;}.jw-display .jw-icon.jw-icon-rewind::before{font-size:50px;width:50px;height:50px;}.jw-display-icon-container{margin:0;padding:0;}.jw-display-icon-next{display:none;}.jw-controlbar .jw-icon-rewind::before{font-size:26px;}.jw-controlbar .jw-icon-playback::before{font-size:22px;}&.jw-state-playing.jw-flag-user-inactive .jw-display .jw-display-icon-rewind{display:none;}&.jw-flag-ads.jw-state-playing.jw-flag-user-inactive .jw-controlbar{visibility:visible !important;pointer-events:all !important;opacity:1 !important;}&.jw-state-idle,&.jw-state-idle .jw-preview,&.jw-state-playing,&.jw-state-paused,&.jw-state-complete,&.jw-state-complete .jw-preview{background-color:white;}&.jw-state-idle{.jw-preview{background-repeat:no-repeat;background-size:contain;}.jw-controls{background:rgba(0,0,0,0.1);}.jw-display,.jw-flag-small-player .jw-display{padding:0;justify-content:flex-end;}&:hover .jw-icon-display{background-color:","cyan",";}.jw-display-container{padding:0 0 20px 20px;vertical-align:bottom;text-align:left;}.jw-icon-display{border-radius:50%;width:39px;height:38px;color:#fff;}.jw-icon-display::before{font-size:40px;height:40px;width:40px;line-height:40px;}.jw-icon-playback::before{content:'\\e903';}.jw-icon-display::before{content:'\\e902';}.jw-title{top:unset;bottom:15px;left:75px;width:unset;min-height:50px;justify-content:center;flex-direction:column;display:flex;color:#fff;padding:0 20px 0 0;}.jw-title .jw-title-primary{","font-size: 22px; line-height: 1.18;"," text-align:left;",l," overflow:unset;white-space:normal;padding:0;}.jw-title .jw-title-primary::before{content:'watch video';display:none;text-transform:uppercase;font-size:18px;font-weight:400;white-space:normal;font-family:",'"Proxima Nova", "Proxima Nova Fallback", sans-serif',";line-height:normal;}.jw-title .jw-title-secondary{font-size:18px;font-family:",'"Proxima Nova", "Proxima Nova Fallback", sans-serif',";line-height:1.44;font-weight:400;white-space:normal;padding:0;margin-top:6px;}&.jw-breakpoint-3 .jw-display-container,&.jw-breakpoint-4 .jw-display-container{padding:0 0 30px 30px;}&.jw-breakpoint-3 .jw-icon-display,&.jw-breakpoint-4 .jw-icon-display,&.jw-breakpoint-5 .jw-icon-display,&.jw-breakpoint-6 .jw-icon-display{width:89px;height:88px;}&.jw-breakpoint-3 .jw-icon-display::before,&.jw-breakpoint-4 .jw-icon-display::before,&.jw-breakpoint-5 .jw-icon-display::before,&.jw-breakpoint-6 .jw-icon-display::before{font-size:90px;width:90px;height:90px;line-height:90px;}&.jw-breakpoint-3 .jw-title,&.jw-breakpoint-4 .jw-title,&.jw-breakpoint-5 .jw-title,&.jw-breakpoint-6 .jw-title{bottom:25px;left:140px;min-height:110px;}&.jw-breakpoint-3 .jw-title .jw-title-primary,&.jw-breakpoint-4 .jw-title .jw-title-primary,&.jw-breakpoint-5 .jw-title .jw-title-primary,&.jw-breakpoint-6 .jw-title .jw-title-primary{","font-size: 42px; line-height: 1.05;","}&.jw-breakpoint-3 .jw-title .jw-title-primary::before,&.jw-breakpoint-4 .jw-title .jw-title-primary::before,&.jw-breakpoint-5 .jw-title .jw-title-primary::before,&.jw-breakpoint-6 .jw-title .jw-title-primary::before{display:block;}&.jw-breakpoint-3 .jw-title .jw-title-secondary,&.jw-breakpoint-4 .jw-title .jw-title-secondary{font-size:18px;line-height:","18px",";}}&.jw-state-complete .jw-controls{background:rgba(0,0,0,0.1);}&.jw-state-paused .jw-controls-backdrop.jw-reset,&.jw-state-playing .jw-title.jw-reset,&.jw-state-paused .jw-title.jw-reset,&.jw-state-complete .jw-title.jw-reset{background:none;}&.jw-state-playing .jw-icon-playback::before,&.jw-state-playing .jw-icon-display::before{content:'\\e900';}&.jw-state-paused .jw-controls{background:rgba(0,0,0,0.4);}&.jw-state-paused .jw-icon-playback::before,&.jw-state-paused .jw-icon-display::before{content:'\\e903';}&.jw-state-complete .jw-controlbar .jw-icon-playback::before,&.jw-state-complete .jw-controlbar .jw-icon-display::before{content:'\\e903';}&.jw-state-complete .jw-title,&.jw-state-paused .jw-title{display:block;padding:20px;min-height:150px;}&.jw-state-complete .jw-title .jw-title-primary,&.jw-state-paused .jw-title .jw-title-primary{font-size:16px;line-height:16px;}&.jw-state-complete .jw-title .jw-title-secondary,&.jw-state-paused .jw-title .jw-title-secondary{font-size:13px;line-height:14px;}&.jw-breakpoint-2.jw-state-paused .jw-controls{background:transparent;}&.jw-breakpoint-2.jw-state-complete .jw-title,&.jw-breakpoint-2.jw-state-paused .jw-title{display:block;padding:20px;min-height:100px;background:linear-gradient( to bottom,transparent,rgba(0,0,0,0.5) 0%,rgba(0,0,0,0) 100% ) no-repeat transparent;}&.jw-breakpoint-3.jw-state-complete .jw-title,&.jw-breakpoint-3.jw-state-paused .jw-title,&.jw-breakpoint-4.jw-state-complete .jw-title,&.jw-breakpoint-4.jw-state-paused .jw-title{display:block;padding:20px;min-height:150px;background:none;}&.jw-breakpoint-3.jw-state-complete .jw-title .jw-title-primary,&.jw-breakpoint-3.jw-state-paused .jw-title .jw-title-primary,&.jw-breakpoint-4.jw-state-complete .jw-title .jw-title-primary,&.jw-breakpoint-4.jw-state-paused .jw-title .jw-title-primary{font-size:20px;line-height:20px;}&.jw-breakpoint-3.jw-state-complete .jw-title .jw-title-secondary,&.jw-breakpoint-3.jw-state-paused .jw-title .jw-title-secondary,&.jw-breakpoint-4.jw-state-complete .jw-title .jw-title-secondary,&.jw-breakpoint-4.jw-state-paused .jw-title .jw-title-secondary{font-size:16px;line-height:14px;}video{background:white;}}&.jw-skin-hl-reskin{display:flex;justify-content:center;&.jw-state-idle{.jw-title{width:100%;padding:0 20px;left:0 !important;}&.jw-breakpoint-3 .jw-title .jw-title-primary::before,&.jw-breakpoint-4 .jw-title .jw-title-primary::before,&.jw-breakpoint-5 .jw-title .jw-title-primary::before,&.jw-breakpoint-6 .jw-title .jw-title-primary::before{display:none;}&.jw-breakpoint-3 .jw-title .jw-title-secondary,&.jw-breakpoint-4 .jw-title .jw-title-secondary{font-size:16px;line-height:20px;}& .jw-title .jw-title-secondary,& .jw-title .jw-title-primary{text-align:center;}&.jw-breakpoint-3 .jw-title{bottom:0 !important;}&.jw-breakpoint-3 .jw-title,&.jw-breakpoint-4 .jw-title,&.jw-breakpoint-5 .jw-title,&.jw-breakpoint-6 .jw-title{bottom:25px;min-height:110px;}&.jw-breakpoint-2 .jw-title .jw-title-secondary,&.jw-breakpoint-3 .jw-title .jw-title-secondary{display:none;}.jw-icon-display{width:49px;height:48px;}.jw-icon-display::before{font-size:50px;height:50px;width:50px;line-height:50px;}.jw-display-icon-container{float:none;position:absolute;top:calc(50% - 45px);left:calc(50% - 45px);}&.jw-breakpoint-3 .jw-display-icon-container{top:calc(50% - 65px);}&.jw-breakpoint-1 .jw-display-icon-container,&.jw-breakpoint-2 .jw-display-icon-container{top:calc(50% - 25px);left:calc(50% - 25px);}.jw-icon-display{color:","cyan",";background-color:#fff;}&:hover .jw-icon-display{color:magenta-dark;background-color:#fff;}}}}div.jw-title-primary.jw-reset-text{font-family:",l.fontFamily,";font-weight:",l.fontWeight,";}.jw-skip{display:none !important;}.jwplayer .jw-plugin-vast .jw-ad-icon-container{width:76px !important;height:16px !important;right:0 !important;left:auto !important;}.jwplayer.jw-flag-floating .jw-wrapper{right:calc((100vw - 1100px) / 2 + 342px);@media (max-width:768px){left:auto;right:18px;}}.jwplayer.jw-flag-touch.jw-flag-floating .jw-wrapper{top:auto;right:20px;bottom:24px;left:auto;margin:0;width:180px !important;@media (max-width:768){top:auto;right:20px;bottom:24px;}@media (max-width:480){top:auto;right:20px;bottom:24px;}.jw-title,.jw-controls .jw-display,.jw-controls .jw-float-icon,.jw-controls .jw-controlbar .jw-button-container{opacity:0;}}.jwplayer.jw-flag-touch.jw-flag-floating{&.jw-state-playing,&.jw-state-paused,&.jw-state-complete{.jw-wrapper .jw-controls .jw-controlbar{visibility:visible;opacity:1;.jw-slider-time{height:5px;.jw-knob{display:none;}}.jw-slider-container{height:5px;background-color:#fff;overflow:hidden;.jw-progress{height:10px;}}}}&.jw-state-buffering{.jw-controls .jw-display,.jw-controls .jw-float-icon{opacity:1;}}&.jw-state-complete{.jw-controls .jw-display{opacity:1;font-family:'healthline-video-mobile';}.jw-icon-display .jw-svg-icon-replay{display:none;}}.jw-float-icon[aria-label='Close']{display:none;}}"]})}},472:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));const n={};function o(t,e){return r({id:t,url:`https://cdn.jwplayer.com/v2/media/${t}`,handleError:i=>{if(404===i.status)return delete n[t],function(t,e){let i;i=e.articleMatching?`https://cdn.jwplayer.com/v2/playlists/${t}${function(){const t=document.querySelectorAll('meta[property^="og:"]');let e="?search=";const i=["og:title","og:description","og:side_name","og:type","og:url"];return t.forEach(t=>{const n=t.attributes[0].nodeValue,o=t.attributes[1].value;if(i.includes(n)){if("og:title"===n)return void(e+=a(o));if("og:description"===n)return void(e+=`&page_description=${a(o)}`);e+=`&${n.replace("og:","")}=${a(o)}`}}),e}()}`:`https://cdn.jwplayer.com/v2/playlists/${t}`;return r({id:t,url:i})}(t,e)}})}function a(t){return encodeURIComponent(t.trim()).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}function r({id:t,url:e,handleError:i}){return n[t]?Promise.resolve(n[t]):(n[t]=fetch(e).then(t=>{if(t.ok)return t.json();const i=new Error(`Fetch failure: ${t.status}`);throw i.url=e,i.status=t.status,i}).catch(t=>i&&i(t)||{error:t}),n[t])}},57:function(t,e,i){"use strict";i.d(e,"e",(function(){return u})),i.d(e,"a",(function(){return y})),i.d(e,"i",(function(){return m})),i.d(e,"h",(function(){return b})),i.d(e,"c",(function(){return g})),i.d(e,"j",(function(){return f})),i.d(e,"b",(function(){return v})),i.d(e,"f",(function(){return x})),i.d(e,"g",(function(){return k})),i.d(e,"d",(function(){return P}));var n=i(0),o=i(1),a=i(4),r=i(54),s=i(10),l=i(153),p=i(2).h;const c=Object(r.i)({color:"text-black",marginRight:[25,20]},{gr8:{color:"white"},hl:{marginRight:[15,20],marginLeft:[10,0]},psy:{"&:hover":{color:"blue"}}}),d=t=>{var e;const{theme:i,itemCss:n,isLogo:o,...r}=t||{};return p(a.a,{...r,css:[{display:"inline-flex","&::before":{fontSize:20},textDecoration:"none",width:20,height:20,color:i.color,marginRight:i.marginRight,marginLeft:i.marginLeft,"&:last-child":{marginRight:0},"&:hover":{color:null==i?void 0:null===(e=i["&:hover"])||void 0===e?void 0:e.color}},n,o&&{display:"inline-flex",flexBasis:["100%","100%","inherit"],justifyContent:"center"}]})},w=t=>{Object(s.c)({location:"FOOTER",name:"Any Page",position:"Social Channel",elementType:"BUTTON",text:`${t}`,htmlId:"",actionOutcome:"EXTERNALLINK"})};class h extends o.Component{render(){const{iconId:t,itemCss:e,isLogo:i,href:n,label:o,type:a}=this.props;return p(d,{theme:c,itemCss:e,isLogo:i,className:t,href:n,onClick:()=>{w(a)},event:`|social channel footer click|${o}`,"aria-label":i?"Go to our homepage":`Visit our ${a} page`})}}const j=Object(l.a)(({src:t,href:e,itemCss:i})=>p(h,{isLogo:"true",iconId:Object(n.a)("background:url(",t,") no-repeat;"),itemCss:i,href:e})),u=({link:t="/",itemCss:e={width:191,height:30,textDecoration:"none",marginBottom:["30px","30px",0]}})=>p("div",{css:{display:"inline-block",margin:[0,0,"auto 55px auto 0"],lineHeight:"inherit"}},p(j,{itemCss:e,href:t,src:"https://s3-us-west-2.amazonaws.com/healthline-prod-next/content/hl-black.svg"})),y=({link:t="http://www.facebook.com/pages/Healthline/173263326992",itemCss:e})=>p(h,{iconId:"icon-hl-facebook",itemCss:e,href:t,label:"Facebook channel icon clicked",type:"Facebook"}),m=({link:t="https://twitter.com/healthline",itemCss:e})=>p(h,{iconId:"icon-hl-twitter",itemCss:e,href:0!==t.indexOf("https://")?`https://twitter.com/${t}`:t,label:"Twitter channel icon clicked",type:"Twitter"}),b=({link:t="http://pinterest.com/healthline/",itemCss:e={width:15}})=>p(h,{iconId:"icon-hl-pinterest",itemCss:e,href:t,label:"Pinterest channel icon clicked",type:"Pinterest"}),g=({link:t="http://www.instagram.com/healthline",itemCss:e})=>p(h,{iconId:"icon-hl-instagram",itemCss:e,href:t,label:"Instagram channel icon clicked",type:"Instagram"}),f=({link:t="https://www.youtube.com/user/AuthorityNutrition",itemCss:e})=>p(h,{iconId:"icon-hl-youtube",href:t,label:"YoutTube channel icon clicked",itemCss:e,type:"YouTube"}),v=({link:t="https://flipboard.com/@healthline",itemCss:e})=>p(h,{iconId:"icon-hl-flipboard",itemCss:e,href:t,label:"Flipboard channel icon clicked",type:"Flipboard"}),x=({link:t="",itemCss:e})=>p(h,{iconId:"icon-hl-email",href:t,label:"Mail channel icon clicked",itemCss:e,type:"Email"}),k=({link:t="",itemCss:e})=>p(h,{iconId:"icon-hl-outbound-link",href:t,itemCss:e,type:"Outbound Link"}),P=({link:t="",itemCss:e})=>p(h,{iconId:"icon-hl-linkedin",href:t,label:"LinkedIn channel icon clicked",itemCss:e,type:"LinkedIn"})},719:function(t,e,i){"use strict";i.r(e);i(0);var n=i(145),o=i.n(n),a=i(1),r=i(57),s=i(2).h;const l=t=>{return s("div",{...t||{},css:"margin:[0 0 40px|0 0 40px|0 0 60px];display:flex;align-items:center;flex-direction:[column|column|row];"})},p=()=>s(l,null,s(r.e),s("span",null,s(r.a),s(r.i),s(a.Fragment,null,s(r.h),s(r.c),s(r.b,{itemCss:{"&:last-child":{marginRight:[15,0]}}}))));class c extends HTMLElement{connectedCallback(){o.a.render(s(p),this)}}customElements.define("hl-social-nav",c)},720:function(t,e,i){"use strict";i.r(e);var n=i(145),o=i.n(n),a=i(271),r=i(12),s=i(2).h;function l(t,e){return t.getAttribute(e)||void 0}function p(t){if(t){const e=t.split(",");return e.length?e:void 0}}class c extends HTMLElement{connectedCallback(){const t="true"===l(this,"disabletagulartrackedclicks"),e=l(this,"buttontext");let i;if(!t){const t=l(this,"name");i={name:t,category:l(this,"category")||t,productId:l(this,"productid")||t,variant:l(this,"variant")||t,formatType:l(this,"formattype"),text:l(this,"text")||e}}var n,c;o.a.render(s(r.c,null,s(a.a,{className:l(this,"classname"),titleStyles:l(this,"titlestyles"),source:l(this,"source"),title:l(this,"title"),description:l(this,"description"),buttonText:e,confirmationTitle:l(this,"confirmationtitle"),confirmationMessage:l(this,"confirmationmessage"),confirmationLink:l(this,"confirmationlink"),subscribeEventTracking:l(this,"subscribeeventtracking"),lists:p(l(this,"lists")),errorMessage:l(this,"errormessage"),secondaryLists:(n=this,c="secondarylists",JSON.parse(n.getAttribute(c))||void 0),themeOverride:l(this,"themeOverride"),tagularDetails:i})),this)}}customElements.define("hl-newsletter-cta",c)},721:function(t,e){const i="mobile-hover";class n extends HTMLElement{connectedCallback(){let t;document.body.classList.add(`touchevents-${!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}`),this.addEventListener("touchmove",()=>{t=!0}),this.addEventListener("touchend",e=>{e.target===this&&(t?t=!1:this.classList.toggle(i))})}}customElements.define("hl-share-overlay",n)},749:function(t,e,i){"use strict";i.r(e);var n=i(145),o=i.n(n),a=i(0),r=i(4),s=i(1),l=i(555),p=i.n(l),c=i(12),d=i(417),w=i(452),h=i(422),j=i(472);var u={getVideoWebContext(t){var e;const{title:i,canonicalPath:n}=t,{origin:o,search:a}=window.location;return{...window._Tagular.webContext,page:{...null===(e=window._Tagular.webContext)||void 0===e?void 0:e.page,url:`${o}${n.endsWith("/")?n.slice(0,-1):n}${a}`,title:i}}},formatCurrentMedia({playlist:t,isAutoPlay:e,index:i,props:n},o={}){var a,r;const{videoTrackers:s,transcripts:l,videoType:p}=n;return{...null==t?void 0:t[i],category:(null==s?void 0:null===(a=s[i])||void 0===a?void 0:a.eventCategory)||p,transcript:null==l?void 0:l[i],isPlaylist:(null==t?void 0:t.length)>1,playlistIndex:i,playlistTitle:null==t?void 0:null===(r=t[0])||void 0===r?void 0:r.title,isAutoPlay:e,...o}},getTagularVideoContext(t,e,i){const{mediaid:n,title:o,isPlaylist:a,feedid:r,playlistTitle:s,playlistIndex:l,duration:p,isAutoPlay:c}=t;return{videoId:n,videoTitle:o,tags:[{key:"videostrat",value:i}],...a?{sequenceType:"Playlist",playlistId:r,playlistTitle:s,playlistIndex:l}:{sequenceType:"Single"},videoLength:p,autoplay:c,...e}},async getTrackingDetails({isAutoPlay:t,props:e,playerTrackingData:i}){let n;if("YT Player"===i.videoPlayer){const t=window.HL.jwp[e.mediaId].player;(n=t.getVideoData()).playlist=t.getPlaylist()}else n=await Object(j.a)(e.mediaId);const o=this.formatCurrentMedia({playlist:n.playlist,isAutoPlay:t,index:0,props:e},n),a=this.getTagularVideoContext(o,i,this.videoStrategy);return this.currentMedia=o,this.videoContext=a,this.player=window.HL.jwp[e.mediaId].player||window.HL.jwp[e.mediaId],{videoContext:a,currentMedia:o}},async onVideoPlayed(t){const{contentMeta:e}=t,i=await this.getTrackingDetails({isAutoPlay:t.autostart,props:{mediaId:t.mediaId},playerTrackingData:this.getPlayerTrackingData(t)});h.a.onPlay({...i,webContext:this.getVideoWebContext(e)})},async onVideoLoaded(t){const{contentMeta:e}=t,i=await this.getTrackingDetails({isAutoPlay:t.autostart,props:{mediaId:t.mediaId},playerTrackingData:this.getPlayerTrackingData(t)}),n=this.getVideoWebContext(e);this.webContext=n,h.a.onVideoLoaded({...i,webContext:n})},getVideoWatchedTrackingData:(t,e)=>({videoWatched:e,videoWatchedTime:"function"===t.getPosition?t.getPosition():t.getDuration()}),onTwentyFivePercent(){var t;const{currentMedia:e,getVideoWatchedTrackingData:i,videoContext:n,webContext:o,player:a}=this,r=(null==a?void 0:null===(t=a.instance)||void 0===t?void 0:t.player)||a;h.a.onTwentyFivePercent({currentMedia:e}),h.a.onQuartileWatched({playbackInfo:i(r,25),videoContext:n,webContext:o})},onFiftyPercent(){var t;const{currentMedia:e,getVideoWatchedTrackingData:i,videoContext:n,webContext:o,player:a}=this,r=(null==a?void 0:null===(t=a.instance)||void 0===t?void 0:t.player)||a;h.a.onFiftyPercent({currentMedia:e}),h.a.onQuartileWatched({playbackInfo:i(r,50),videoContext:n,webContext:o})},onSeventyFivePercent(){var t;const{currentMedia:e,getVideoWatchedTrackingData:i,videoContext:n,webContext:o,player:a}=this,r=(null==a?void 0:null===(t=a.instance)||void 0===t?void 0:t.player)||a;h.a.onSeventyFivePercent({currentMedia:e}),h.a.onQuartileWatched({playbackInfo:i(r,75),videoContext:n,webContext:o})},onOneHundredPercent(){var t;const{currentMedia:e,getVideoWatchedTrackingData:i,videoContext:n,webContext:o,player:a}=this,r=(null==a?void 0:null===(t=a.instance)||void 0===t?void 0:t.player)||a;h.a.onOneHundredPercent({currentMedia:e}),h.a.onQuartileWatched({playbackInfo:i(r,100),videoContext:n,webContext:o})},getPlayerTrackingData(t){var e;const i=Boolean("jw_player"===t.videoType),n=i?window.HL.jwp[t.mediaId].instance.player:window.HL.jwp[t.mediaId].player,o=i&&n.getQualityLevels();return{videoPlayer:i?"JW Player":"YT Player",adEnabled:!1,category:"Article",articlePlacement:"video preview",bitRate:0,volumeLevel:i&&(n.getMute()?0:n.getVolume())||0,videoQuality:i?null==o?void 0:null===(e=o[n.getCurrentQuality()])||void 0===e?void 0:e.label:n.getPlaybackQuality(),fullScreenEnabled:i?n.getFullscreen():null}}};class y{constructor(t){this.saveInMultipleHashMap=t=>{if(window.HL.jwp){const e=window.HL.jwp[this.options.mediaId];window.HL.jwp[this.options.mediaId]={...e,...t}}},this.accessMultipleHashMap=(t=!1)=>t?window.HL.jwp[t]:window.HL.jwp,this.areOthersSticking=()=>Object.entries(this.accessMultipleHashMap()).some(([t,e])=>t!==this.options.mediaId&&e.isSticky),this.createPlayerInstance=t=>{this.player=t.player,this.saveInMultipleHashMap({getPlayerState:()=>t.player.getState(),instance:t,isSticky:!1})},this.didMountCallback=async(t=null)=>{this.createPlayerInstance(t)},this.onReady=()=>{u.onVideoLoaded(this.options)},this.onPlay=()=>{this.hasPlayed||(u.onVideoPlayed(this.options),this.hasPlayed=!0)},this.closeButton=()=>{var t;document.querySelector('.jw-float-bar-icon[aria-label="Close"]')&&document.querySelector('.jw-float-bar-icon[aria-label="Close"]').click();const e=this.options.mediaId;this.cachedVideoElement.remove(),this.saveInMultipleHashMap({isSticky:!1});const i=null===(t=this.accessMultipleHashMap(e))||void 0===t?void 0:t.videoPreviewInstance;i&&i.hidePopup(),delete window.HL.jwp[e],this.removeListeners()},this.commonProps=()=>({didMountCallback:this.didMountCallback,onReady:this.onReady,onPlay:this.onPlay}),this.isSticky=!1,this.props=t,this.options=t}addListeners(){document.addEventListener("scroll",this.addStickyPlayer)}removeListeners(){document.removeEventListener("scroll",this.addStickyPlayer)}}class m extends y{constructor(t){super(t),this.onFloat=t=>{t.floating?this.saveInMultipleHashMap({isSticky:!0}):this.saveInMultipleHashMap({isSticky:!1})},this.onTime=async t=>{const{position:e,duration:i}=t;!this.hasFired.twentyFivePercent&&e/i*100>25&&(this.hasFired.twentyFivePercent=!0,u.onTwentyFivePercent()),!this.hasFired.fiftyPercent&&e/i*100>50&&(this.hasFired.fiftyPercent=!0,u.onFiftyPercent()),!this.hasFired.seventyFivePercent&&e/i*100>75&&(this.hasFired.seventyFivePercent=!0,u.onSeventyFivePercent()),!this.hasFired.oneHundredPercent&&e/i*100>99&&(this.hasFired.oneHundredPercent=!0,u.onOneHundredPercent())},this.hasFired={twentyFivePercent:!1,fiftyPercent:!1,seventyFivePercent:!1,oneHundredPercent:!1}}createProps(){const t={...this.props};return t.floating={dismissable:!0},t.autostart=this.props.autostart,{config:t,playlist:`https://cdn.jwplayer.com/v2/media/${this.props.mediaId}`,library:"https://content.jwplatform.com/libraries/6sho9Wyf.js",onFloat:this.onFloat,onTime:this.onTime,...this.commonProps()}}}const b=[{transform:"translateY(200px)"},{transform:"translateY(0px)"}],g={duration:300,iterations:1};class f extends y{constructor(t){super(t),this.accessMultipleHashMap=(t=!1)=>t?window.HL.jwp[t]:window.HL.jwp,this.addStickyPlayer=()=>{const{mediaId:t}=this.options,e=Boolean(this.accessMultipleHashMap(t).isSticky),i=document.getElementById(`media-wrapper-id-${t}`);if(!i)return;const n=i.childNodes[0]||this.cachedVideoElement;this.cachedContainerElement=i,this.cachedVideoElement=n;const o=this.cachedContainerElement.getBoundingClientRect(),a=o.top+o.height,r=o.bottom-o.height,s=a>=0&&r<=window.innerHeight||a<=window.innerHeight&&r>=0;this.videoElementVisible=s,this.cachedVideoElementStyle=this.cachedVideoElement.style;const l=document.querySelector(".video-close-button");s||e||this.areOthersSticking()||(n.style.position="fixed",n.style.bottom="2rem",n.style.height="180px",n.style.width="320px",n.style.right="calc((100vw - 1100px) / 2 + 342px)",l.style.display="block",n.animate(b,g),this.saveInMultipleHashMap({isSticky:!0})),s&&e&&(l.style.display="none",n.style=this.cachedVideoElementStyle,this.saveInMultipleHashMap({isSticky:!1}))},this.onTime=async t=>{const{percent:e}=t;switch(e){case 25:u.onTwentyFivePercent();break;case 50:u.onFiftyPercent();break;case 75:u.onSeventyFivePercent();break;case 100:u.onOneHundredPercent()}},this.options=t}createProps(){const t={...this.props};return t.floating={},{props:t,mediaId:this.props.mediaId,onTime:this.onTime,...this.commonProps()}}}var v=i(2).h;class x extends s.Component{constructor(t){super();const e=function(t){let e;return"jw_player"===t.videoType&&(e=new m(t)),"youtube"===t.videoType&&(e=new f(t)),e}(t);this.rvoVideo=e}componentDidMount(){"youtube"===this.props.videoType&&this.rvoVideo.addListeners()}componentWillUnmount(){"youtube"===this.props.videoType&&this.rvoVideo.removeListeners()}render(){const{mediaId:t,videoType:e}=this.props;return v("div",{css:w.a,id:`media-wrapper-id-${t}`},v("div",null,"jw_player"===e?v(p.a,this.rvoVideo.createProps()):v(s.Fragment,null,v(d.YouTube,this.rvoVideo.createProps()),v("div",{className:"video-close-button",onClick:this.rvoVideo.closeButton},v("span",null,"x")))))}}var k=Object(c.h)(x),P=i(2).h;function C({videoId:t,href:e,autoplay:i,children:n,videoType:o}){return P("div",{css:"padding-left:0;padding-right:0;@media (max-width:550px){padding-left:20px;padding-right:20px;}"},t&&P(k,{mode:"video_preview",videoType:o,mediaId:t,videoStrategy:"preview",autostart:Boolean(i)}),(n||e)&&P("div",{css:"padding: 20px"},P("div",null,P("div",{css:"p{font-size:14px;line-height:20px;margin-top:0;margin-bottom:16px;}"},n),e&&P("p",{css:"margin-bottom:0;font-size:17;font-weight:600;"},P(r.a,{href:e,event:"|Video Preview|Read More Click"},P("span",{css:"display:flex;"},"READ MORE",P("span",{className:"icon-hl-arrow-right",css:"padding-left:8px;position:relative;top:1px;font-size:15px;"})))))))}var T=i(2).h;const I=Object(a.a)("display:block;width:320;height:auto;transition:all 0.3s ease;transition-property:opacity, top;position:absolute;border:1px solid gray;background:white;box-shadow:0 5px 16px 0 rgba(92, 92, 92, 0.5);z-index:1;"),L=(t,e)=>Object(a.a)({opacity:1,top:t,left:e});class M extends s.Component{constructor(...t){super(...t),this.state={popupHeight:0},this.handleRef=t=>{this.popupRef=t}}componentDidMount(){this.setState({popupHeight:this.popupRef.offsetHeight})}render(){const{isPopupBelow:t,overlayTop:e,overlayLeft:i,onPopUpEnter:n,onPopUpLeave:o,children:a}=this.props;let r=e;const s=this.state.popupHeight>0?e-this.state.popupHeight-15:e-250-15,l=t?e:s;if("auto"!==e){const i=this.state.popupHeight>0?e-this.state.popupHeight-30:e-250-25;r=t?e:i}return T("div",{className:`${I} ${this.state.popupHeight&&L(l,i)}`,css:{opacity:0,visibility:this.state.popupHeight?"visible":"hidden",top:r,left:-1e4,borderRadius:"8px",overflow:"hidden"},onMouseEnter:n,onMouseLeave:o,ref:this.handleRef},a)}}var H=i(17),S=i(15),E=i(22),z=i(2).h;const F=Object(E.a)(()=>new(i(30).default)((t,e)=>{Promise.all([i.e(5),i.e(21)]).then((n=>{try{let e=i(159);t(e)}catch(t){e(t)}}).bind(null,i)).catch(e)}),{name:"modal"}),O=Object(a.a)("z-index:2;font-size:14;vertical-align:middle;line-height:normal;cursor:pointer;&&:hover{&::after{color:hover;}}&&::after{font-family:healthline-video;display:inline;height:100%;width:100%;vertical-align:text-top;margin-left:1;margin-right:3;color:cyan;}");class R extends HTMLElement{connectedCallback(){this.href=this.getAttribute("href"),this.videoId=this.getAttribute("videoId"),this.content=this.getAttribute("content"),this.videoType=this.getAttribute("videoType");const t=this.firstElementChild;this.linkText=t.text,t.innerHTML=`${t.innerHTML}`,this.modal=document.createElement("span"),this.modal.style.position="relative",this.appendChild(this.modal),Object(H.a)()>1?(this.addEventListener("mouseenter",()=>{clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.showPopup()},250)}),this.addEventListener("mouseleave",()=>{clearTimeout(this.timeout),this.timeout=setTimeout(()=>{var t;(null===(t=window.HL.jwp[this.videoId])||void 0===t?void 0:t.getPlayerState)&&"playing"!==window.HL.jwp[this.videoId].getPlayerState()&&this.hidePopup()},250)})):this.addEventListener("click",t=>{t.preventDefault(),this.modal.firstChild?this.hidePopup():this.showPopup()},!0)}showPopup(){if(window.HL.jwp||(window.HL.jwp={}),window.HL.jwp[this.videoId]={...window.HL.jwp[this.videoId],videoPreviewInstance:this},this.modal.firstChild)return;Object(S.d)({category:"Any Page",action:"Video Preview",label:"Overlay Open"});const t=Object(H.a)(),e=z(c.c,null,z(C,{videoId:this.videoId,href:this.href,videoType:this.videoType,autoplay:t<=1},this.content&&z("div",{dangerouslySetInnerHTML:{__html:this.content}})));if(t>1){const t=this.getBoundingClientRect().top<350;o.a.render(z(M,{isPopupBelow:t,overlayTop:0,overlayLeft:0,onPopUpEnter:this.handlePopUpEnter,onPopUpLeave:this.handlePopUpLeave},e),this.modal)}else o.a.render(z(F,{onClose:()=>{this.hidePopup()},css:".window{position:relative;margin:10;border-radius:8px;overflow:hidden;}",render:()=>e}),this.modal)}hidePopup(){document.querySelector('.jw-float-bar-icon[aria-label="Close"]')&&document.querySelector('.jw-float-bar-icon[aria-label="Close"]').click(),o.a.unmountComponentAtNode(this.modal)}}customElements.define("hl-video-preview",R)},755:function(t,e,i){"use strict";i.r(e);var n=i(145),o=i.n(n),a=i(0),r=i(2).h;var s=()=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"#02838d",viewBox:"0, 0, 40, 40"},r("path",{d:"M13.3 37.41a2.5 2.5 0 0 1-2-.94L2.08 24.92A2.509 2.509 0 0 1 6 21.79l7.32 9.13 21.14-26.4a2.5 2.5 0 0 1 3.9 3.13L15.25 36.48a2.503 2.503 0 0 1-1.95.93z"})),l=i(4),p=i(2).h;const c=t=>{return p("span",{...t||{},css:"&::before{font-size:18;height:18;line-height:18px;width:18;vertical-align:text-bottom;}display:inline-block;width:18;height:18;margin-left:0;margin-right:8;position:relative;"})};function d({source:t,rationale:e,href:i}){const n=t,o=i;return p("div",{css:"padding: 20px 40px"},p("div",null,p("p",{css:"margin-top:10;margin-bottom:15;"},p(l.a,{href:"/process",event:"|Top Sources|Process Link Click",css:{color:"cyan",fontSize:14,lineHeight:"20px",textDecoration:"underline"}},p(c,{className:"icon-hl-trusted-source"}),"Trusted Source")),p("h3",{css:"margin-top:0;font-size:20;"},n),p("ul",{css:"margin-bottom:15;margin-left:0;padding-left:0;list-style:none;"},e.map(t=>p("li",{key:t,css:"font-size:17;"},p(s)," ",t))),p("p",{css:"margin-bottom:10;font-size:17;"},p(l.a,{href:o,event:"|Top Sources|External Link Click"},"Go to source"))))}var w=i(3),h=i(2).h;var j=function({citation:t}){return h("div",{css:"padding: 20px 40px"},h("div",{css:{...w.a.elements.small,wordWrap:"break-word",a:{color:"cyan !important",":hover":{color:"hover !important"}}},dangerouslySetInnerHTML:{__html:t}}))},u=i(1),y=i(2).h;const m=Object(a.a)("display:block;width:355;height:auto;transition:all 0.3s ease;transition-property:opacity, top;position:fixed;border:1px solid gray;background:white;box-shadow:0 5px 16px 0 rgba(92, 92, 92, 0.5);z-index:9999;"),b=(t,e)=>Object(a.a)({opacity:1,top:t,left:e});class g extends u.Component{constructor(...t){super(...t),this.state={popupHeight:0},this.handleRef=t=>{this.popupRef=t}}componentDidMount(){this.setState({popupHeight:this.popupRef.offsetHeight})}render(){const{isPopupBelow:t,overlayTop:e,overlayLeft:i,onPopUpEnter:n,onPopUpLeave:o,children:a}=this.props;let r=e;const s=this.state.popupHeight>0?e-this.state.popupHeight-15:e-250-15,l=t?e:s;if("auto"!==e){const i=this.state.popupHeight>0?e-this.state.popupHeight-30:e-250-25;r=t?e:i}return y("div",{className:`${m} ${this.state.popupHeight&&b(l,i)}`,css:{opacity:0,visibility:this.state.popupHeight?"visible":"hidden",top:r,left:-1e4},onMouseEnter:n,onMouseLeave:o,ref:this.handleRef},a)}}var f=i(17),v=i(15),x=i(22),k=i(2).h;const P=Object(x.a)(()=>new(i(30).default)((t,e)=>{Promise.all([i.e(5),i.e(21)]).then((n=>{try{let e=i(159);t(e)}catch(t){e(t)}}).bind(null,i)).catch(e)}),{name:"modal"}),C=Object(a.a)("display:inline;> a{color:cyan;text-decoration:none;&:hover{color:hover;}}> cite{display:none;}"),T=Object(a.a)("cursor:pointer;&:hover{&::after{color:hover;}}&::after{display:inline;font-size:9;height:100%;line-height:9px;width:100%;vertical-align:text-top;margin-left:3;margin-right:1;color:cyan;}");class I extends HTMLElement{connectedCallback(){this.href=this.firstElementChild.href,this.source=this.getAttribute("source"),this.rationale=(this.getAttribute("rationale")||"").split(/,/),this.cite=(this.querySelector("cite")||{}).innerHTML,this.classList.add(C);const t=this.cite?this:this.firstElementChild,e=this.cite?"icon-hl-ribbon-after":"icon-hl-trusted-source-after";this.linkText=t.text,t.innerHTML+=`Trusted Source`,this.modal=document.createElement("span"),this.appendChild(this.modal),Object(f.a)()>1?(this.addEventListener("mouseenter",()=>{clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.showPopup()},250)}),this.addEventListener("mouseleave",()=>{clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.hidePopup()},250)})):this.addEventListener("click",t=>{t.preventDefault(),this.modal.firstChild?this.hidePopup():this.showPopup()},!0)}showPopup(){if(this.modal.firstChild)return;let t;if(Object(v.d)({category:"Any Page",action:this.cite?"Citation":"Top Sources",label:"Overlay Opened"}),t=this.cite?k(j,{citation:this.cite}):k(d,{source:this.source,rationale:this.rationale,href:this.href,linkText:this.linkText}),Object(f.a)()>1){const e=this.getBoundingClientRect(),i=window.innerWidth-e.right>355?e.left:e.left-355,n=e.top<350;o.a.render(k(g,{isPopupBelow:n,overlayTop:n?e.bottom:e.top,overlayLeft:i,onPopUpEnter:this.handlePopUpEnter,onPopUpLeave:this.handlePopUpLeave},t),this.modal)}else o.a.render(k(P,{onClose:()=>{this.hidePopup()},css:".window{position:relative;margin:10;}",render:()=>t}),this.modal)}hidePopup(){o.a.unmountComponentAtNode(this.modal)}}customElements.define("hl-trusted-source",I)}}]);
//# sourceMappingURL=el-0ad8c.js.map