- Sports
- Fantasy
- Daily Fantasy
- NFL
NFL Home
News
Scores/Schedule
Standings
Mock Draft
Stats
Teams
Players
Injuries
Odds
Draft
Fantasy Football
GameChannel
Video
Shop Draft Gear
AFC
AFC East
NFC
NFC South
NFC West
(Video) Kevin Durant Not Asking Kyrie Irving To Get Vaccine #Shorts - Super Bowl
- NBA
- MLB
MLB Home
News
Free Agency Tracker
Scores/Schedules
Fantasy Baseball
Shop Team Gear
Standings
Stats
Teams
Players
Odds
Video
American League
Central
- NHL
Eastern
- NCAAF
- NCAAB
NCAAB Home
News
Scores/Schedule
Standings
Rankings
Stats
Teams
Players
Recruiting
Shop Team Gear
Odds
Top Conferences
- NCAAW
- MMA
- Sportsbook
- Soccer
- Tennis
- NASCAR
- Golf
- Boxing
- Cycling
- WNBA
- USFL
- Indycar
- Horse Racing
- Olympics
- GameChannel
- Rivals
- Podcasts
- Videos
- RSS
- Jobs
- Help
- Shop Team Gear
- Shop BreakingT Shirts
- More News
- {promoMarkup}{notifMarkup}
',panelEmptyTemplate='
{emptyPanelMsg}
',panelErrorTemplate='
{errorMsg}
',panelParentTemplate='
',notifOnboardPromoTemplate='
{notifOnboardMsg}
',EXPANDED_PANEL="expanded_panel",ERROR_PANEL="error_panel",NotificationView=function(){function e(t,n){classCallCheck$1(this,e);var o=this;o._config=t,o._panelNode=null,o._store=n}return createClass$1(e,[{key:"_generatePanelMarkup",value:function(e,t){var n=this._config,o=void 0,r=void 0;"undefined"!=typeof window&&(o=window.Notification&&"default"===window.Notification.permission,r=n.promos.bypassEligibleClassCheck||hasClass(document.body,n.promos.eligibleBodyClass));var i=n.promos.enableNotifOnboard&&o&&r?notifOnboardPromoTemplate:"";if(i){var s=n.promos.showYahooLogo?"":"yns-no-logo";i=i.replace("{notifOnboardBtnLabel}",n.promos.notifOnboardBtnLabel).replace("{notifOnboardMsg}",n.promos.notifOnboardMsg).replace("{subscriptionTopic}",n.promos.subscriptionTopic).replace("{noLogoClass}",s).replace("{promoLogo}",n.promos.promoLogo)}var a=t.newCount>n.panel.maxCount?t.newCount:"",c=n.panel.notificationCenterPath,l=c?"":constants.panelHideElement,u=n.panel.headerMsg?"":" "+constants.panelHideElement,d=c?constants.panelPaddingBtm:"",p=void 0;t.count?p=t.markup:p=panelEmptyTemplate.replace("{emptyPanelMsg}",n.panel.emptyPanelMsg);return e=e.replace("{notifMarkup}",p).replace("{promoMarkup}",i).replace("{hideClass}",l).replace("{notifCenterLink}",c).replace("{paddingClass}",d).replace("{headerMsg}",n.panel.headerMsg).replace("{hideHeaderClass}",u).replace(/{notificationCenterNavMsg}/g,n.panel.notificationCenterNavMsg).replace(/{newCount}/g,a)}},{key:"render",value:function(e,t){var n=this;if(n._panelNode){var o=void 0,r=n._panelNode,i=void 0,s=void 0;switch(e){case EXPANDED_PANEL:o=panelTemplate,s=n._store.getNotifications(),i=n._generatePanelMarkup(o,s),r.innerHTML=i;break;case ERROR_PANEL:i=(o=panelErrorTemplate).replace("{errorMsg}",n._config.panel.errorMsg),r.innerHTML=i}t&&t()}else t&&t(new Error("No panel parent"))}},{key:"createPanelParentNode",value:function(e){e&&(e.innerHTML=panelParentTemplate,this._panelNode=document.getElementById(constants.panelNodeId))}},{key:"updateBadgeNode",value:function(e){if(e){var t=this._store.getNotifications().newCount,n=this._config.badge.maxCount;if(t){var o=t>n?n+"+":t;e.innerHTML=o}else e.innerHTML=""}}},{key:"addStyles",value:function(e){if(e&&"undefined"!=typeof window){var t=document.getElementById(this._config.panel.styleTagId);t||((t=document.createElement("style")).type="text/css",t.id=this._config.panel.styleTagId,t.innerText=e,document.head.appendChild(t))}}}]),e}(),EXPANDED_PANEL$1="expanded_panel",ERROR_PANEL$1="error_panel",PanelController=function(){function e(t,n,o){classCallCheck$1(this,e);var r=this;r._store=n,r._view=o,r._config=t;var i=r._config.panel;r._panelParentNode=document.querySelector(i.parentSelector),r._badgeNode=r._config.badge.selector&&document.querySelector(r._config.badge.selector),r._indicatorNode=i.indicatorSelector&&document.querySelector(i.indicatorSelector)}return createClass$1(e,[{key:"createPanelParentNode",value:function(){this._view.createPanelParentNode(this._panelParentNode),this._notifPanelNode=document.getElementById(constants.panelNodeId)}},{key:"refreshPanelNode",value:function(e,t){var n=this;addClass(n._notifPanelNode,constants.panelLoading),n._store.fetchNotifications(e,(function(e,o){var r=window.wafer&&window.wafer.base;r&&r.destroy(n._notifPanelNode),e?n._notifPanelNode.innerHTML||(n._view.render(ERROR_PANEL$1),addClass(n._notifPanelNode,constants.panelLoading)):(n._view.render(EXPANDED_PANEL$1),n._view.updateBadgeNode(n._badgeNode),n._showBadge(),n._showIndicator(),n._view.addStyles(o.css)),removeClass(n._notifPanelNode,constants.panelLoading),r&&r.sync(n._notifPanelNode.parentNode),t&&t(e,o)}))}},{key:"resetBadge",value:function(){var e=this;e._store.resetNewCount(),e._view.updateBadgeNode(e._badgeNode),addClass(e._badgeNode,e._config.badge.hideClass)}},{key:"_showIndicator",value:function(){this._indicatorNode&&(this._store.getNotifications().newCount?addClass(this._indicatorNode,this._config.panel.indicatorClass):removeClass(this._indicatorNode,this._config.panel.indicatorClass))}},{key:"_showBadge",value:function(){var e=this;e._store.getNotifications().newCount?removeClass(e._badgeNode,e._config.badge.hideClass):addClass(e._badgeNode,e._config.badge.hideClass)}}]),e}(),config={promos:{eligibleBodyClass:"display-push-promos",enableNotifOnboard:!0,bypassEligibleClassCheck:!1,notifOnboardBtnLabel:"Notify Me",notifOnboardMsg:"Get alerts for breaking news and top stories",promoLogo:"https://s.yimg.com/cv/apiv2/ae/news/circle_bell.png",showYahooLogo:!0,subscriptionTopic:"gondor_homerun_news"},badge:{hideClass:"",maxCount:5,selector:""},panel:{emptyPanelMsg:"You have no new notifications.",errorMsg:"",headerMsg:"Notifications",imageTag:"img:40x40|2|80",indicatorClass:"yns-indicator",indicatorSelector:null,maxCount:6,notificationCenterNavMsg:"View all {newCount} notifications",notificationCenterPath:"",notificationTypes:"",parentSelector:null,styleTagId:"notificationStyles",theme:"default"},service:{attemptCount:1,attemptDelay:2,url:null,resetUrl:null,isRMP:!1,responseType:"json",timeout:1500}},Main=function(){function e(t){classCallCheck$1(this,e);var n=this;n.config=n._parseConfig(t),n._validateRequiredConfigs()&&(n._request=new NotificationRequest(n.config),n._store=new NotificationStore(n.config,n._request),n._view=new NotificationView(n.config,n._store),n._panelController=new PanelController(n.config,n._store,n._view),n._panelController.createPanelParentNode(),n._assignHelperMethods())}return createClass$1(e,[{key:"_parseConfig",value:function(e){var t={};for(var n in objectAssign(t,config),t)if(t.hasOwnProperty(n)){var o=t[n],r=e[n];"object"===(void 0===o?"undefined":_typeof(o))?objectAssign(o,r):t[n]=e[n]}return t}},{key:"_validateRequiredConfigs",value:function(){var e=this.config;return!(!e.panel.parentSelector||!e.service.url)}},{key:"_assignHelperMethods",value:function(){var e=this;e.helpers={refreshPanelNode:e._panelController.refreshPanelNode.bind(e._panelController),resetBadge:e._panelController.resetBadge.bind(e._panelController),resetIndicator:function(){removeClass(e._panelController._indicatorNode,e.config.panel.indicatorClass)}}}}]),e}(),notificationClient_module_min=Main,notificationClient={NotificationClient:notificationClient_module_min},CONSUMPTION_STORAGE_KEY="lnct",NotifClient=function(){function e(){var e,t;this.personalized=!1,this.ybarElem=document.getElementById("ybar"),this.partnerClasses=null===(t=null===(e=this.ybarElem)||void 0===e?void 0:e.className)||void 0===t?void 0:t.match(/ybar-variant-([a-z]*)/),this.client=new notificationClient.NotificationClient(this.getConfig())}return e.prototype.refreshPanel=function(){var e,t,n,o=this,r={lastUpdate:this.getTimeStamp()||this.setTimeStamp(),loadInHpViewer:!0,includePersonalized:this.personalized},i=(null===(e=window.YAHOO)||void 0===e?void 0:e.context)||(null===(t=window.Af)||void 0===t?void 0:t.context)||{};return i.region&&i.lang&&(r.lang=i.lang,r.region=i.region),(null===(n=this.partnerClasses)||void 0===n?void 0:n.length)&&(r.partner=this.partnerClasses[1]),new Promise((function(e,t){o.client.helpers.refreshPanelNode({matrixParams:r},(function(n,o){n&&(logError("Notification refresh error:",n),t(n)),e(o)}))}))},e.prototype.resetBadge=function(){this.client.helpers.resetBadge(),this.setTimeStamp()},e.prototype.getConfig=function(){var e,t,n,o,r,i={promos:{eligibleBodyClass:"display-push-promos",enableNotifOnboard:!0},badge:{selector:"#notif-badge",hideClass:"ybar-notification-hidden"},panel:{emptyPanelMsg:"You have no new notifications.",errorMsg:"Please check back later.",headerMsg:"Notifications",maxCount:5,parentSelector:"#ybarNotificationBody",notificationTypes:"breakingNews"},service:{url:"/tdv2_fp/api/resource/NotificationHistory.getHistory",isRMP:!1}},s=document.getElementById("notification-container"),a=null===(e=null==s?void 0:s.dataset)||void 0===e?void 0:e.config,c={};if(a){"att"===(null===(t=this.partnerClasses)||void 0===t?void 0:t[1])&&(i.promos.showYahooLogo=!1);try{var l=JSON.parse(a);c=__assign({},l),this.personalized=1===l.personalize}catch(e){logError("Notifications config parsing error",e)}s&&delete s.dataset.config}var u=this.mergeConfigs(i,c);return(null===(n=this.partnerClasses)||void 0===n?void 0:n.length)&&"yahoo"!==(null===(o=this.partnerClasses)||void 0===o?void 0:o[1])&&(null===(r=u.promos)||void 0===r?void 0:r.subscriptionTopic)&&delete u.promos.subscriptionTopic,u},e.prototype.mergeConfigs=function(e,t){var n=__assign({},e);for(var o in e)n[o]=__assign(__assign({},e[o]),t[o]);return n},e.prototype.getTimeStamp=function(){var e;return null===(e=window.localStorage)||void 0===e?void 0:e.getItem(CONSUMPTION_STORAGE_KEY)},e.prototype.setTimeStamp=function(){var e,t=""+Math.floor((new Date).getTime()/1e3);return null===(e=window.localStorage)||void 0===e||e.setItem(CONSUMPTION_STORAGE_KEY,t),t},e}(),notifClient=new NotifClient,getNotifClient=function(){return notifClient},reInit=function(){notifClient=new NotifClient},ybarRapid,ybarRapidInterval,ybarRapidErrMsg="",beaconQueue=[],noop$1=function(){},logRapidError=function(){window.removeEventListener("beforeunload",logRapidError),""!==ybarRapidErrMsg&&logError("Rapid not found on page",new Error(ybarRapidErrMsg))},findRapidWithSpaceid=function(e){var t=void 0;if(e&&e.length>0)for(var n=0;n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\".concat(self.i18n.t('search.voice.permission_title'), \"
\\n
\").concat(self.i18n.t('search.voice.permission_text'), \"
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n \\n \\n \\n \\n \\n
\\n
\\n
\\n \\n \\n \".concat(self.i18n.t('search.voice.recognition_retry'), \"\\n
\\n
\\n
\\n
\\n
\\n
\\n \").concat(self.i18n.t('search.voice.trending_title'), \"\\n \\n
\\n
\\n