':"";if(r){var a=t.promos.showYahooLogo?"":"yns-no-logo";r=r.replace("{notifOnboardBtnLabel}",t.promos.notifOnboardBtnLabel).replace("{notifOnboardMsg}",t.promos.notifOnboardMsg).replace("{subscriptionTopic}",t.promos.subscriptionTopic).replace("{noLogoClass}",a).replace("{promoLogo}",t.promos.promoLogo)}var s=n.newCount>t.panel.maxCount?n.newCount:"",c=t.panel.notificationCenterPath,l=c?"":R,u=t.panel.headerMsg?"":" "+R,d=c?D:"",p=void 0;n.count?p=n.markup:p='{emptyPanelMsg}'.replace("{emptyPanelMsg}",t.panel.emptyPanelMsg);return e=e.replace("{notifMarkup}",p).replace("{promoMarkup}",r).replace("{hideClass}",l).replace("{notifCenterLink}",c).replace("{paddingClass}",d).replace("{headerMsg}",t.panel.headerMsg).replace("{hideHeaderClass}",u).replace(/{notificationCenterNavMsg}/g,t.panel.notificationCenterNavMsg).replace(/{newCount}/g,s)}},{key:"render",value:function(e,n){var t=this;if(t._panelNode){var o=void 0,i=t._panelNode,r=void 0,a=void 0;switch(e){case"expanded_panel":o='{promoMarkup}{notifMarkup}',a=t._store.getNotifications(),r=t._generatePanelMarkup(o,a),i.innerHTML=r;break;case"error_panel":r=(o='{errorMsg}').replace("{errorMsg}",t._config.panel.errorMsg),i.innerHTML=r}n&&n()}else n&&n(new Error("No panel parent"))}},{key:"createPanelParentNode",value:function(e){e&&(e.innerHTML='',this._panelNode=document.getElementById(P))}},{key:"updateBadgeNode",value:function(e){if(e){var n=this._store.getNotifications().newCount,t=this._config.badge.maxCount;if(n){var o=n>t?t+"+":n;e.innerHTML=o}else e.innerHTML=""}}},{key:"addStyles",value:function(e){if(e&&"undefined"!=typeof window){var n=document.getElementById(this._config.panel.styleTagId);n||((n=document.createElement("style")).type="text/css",n.id=this._config.panel.styleTagId,n.innerText=e,document.head.appendChild(n))}}}]),e}(),U=function(){function e(n,t,o){L(this,e);var i=this;i._store=t,i._view=o,i._config=n;var r=i._config.panel;i._panelParentNode=document.querySelector(r.parentSelector),i._badgeNode=i._config.badge.selector&&document.querySelector(i._config.badge.selector),i._indicatorNode=r.indicatorSelector&&document.querySelector(r.indicatorSelector)}return k(e,[{key:"createPanelParentNode",value:function(){this._view.createPanelParentNode(this._panelParentNode),this._notifPanelNode=document.getElementById(P)}},{key:"refreshPanelNode",value:function(e,n){var t=this;C(t._notifPanelNode,q),t._store.fetchNotifications(e,(function(e,o){var i=window.wafer&&window.wafer.base;i&&i.destroy(t._notifPanelNode),e?t._notifPanelNode.innerHTML||(t._view.render("error_panel"),C(t._notifPanelNode,q)):(t._view.render("expanded_panel"),t._view.updateBadgeNode(t._badgeNode),t._showBadge(),t._showIndicator(),t._view.addStyles(o.css)),M(t._notifPanelNode,q),i&&i.sync(t._notifPanelNode.parentNode),n&&n(e,o)}))}},{key:"resetBadge",value:function(){var e=this;e._store.resetNewCount(),e._view.updateBadgeNode(e._badgeNode),C(e._badgeNode,e._config.badge.hideClass)}},{key:"_showIndicator",value:function(){this._indicatorNode&&(this._store.getNotifications().newCount?C(this._indicatorNode,this._config.panel.indicatorClass):M(this._indicatorNode,this._config.panel.indicatorClass))}},{key:"_showBadge",value:function(){var e=this;e._store.getNotifications().newCount?M(e._badgeNode,e._config.badge.hideClass):C(e._badgeNode,e._config.badge.hideClass)}}]),e}(),Y={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}},z={NotificationClient:function(){function e(n){L(this,e);var t=this;t.config=t._parseConfig(n),t._validateRequiredConfigs()&&(t._request=new E(t.config),t._store=new O(t.config,t._request),t._view=new H(t.config,t._store),t._panelController=new U(t.config,t._store,t._view),t._panelController.createPanelParentNode(),t._assignHelperMethods())}return k(e,[{key:"_parseConfig",value:function(e){var n={};for(var t in N(n,Y),n)if(n.hasOwnProperty(t)){var o=n[t],i=e[t];"object"===(void 0===o?"undefined":_(o))?N(o,i):n[t]=e[t]}return n}},{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(){M(e._panelController._indicatorNode,e.config.panel.indicatorClass)}}}}]),e}()},j="lnct",F=function(){function e(){var e,n;this.personalized=!1,this.ybarElem=document.getElementById("ybar"),this.partnerClasses=null===(n=null===(e=this.ybarElem)||void 0===e?void 0:e.className)||void 0===n?void 0:n.match(/ybar-variant-([a-z]*)/),this.client=new z.NotificationClient(this.getConfig())}return e.prototype.refreshPanel=function(){var e,n,t,o=this,i={lastUpdate:this.getTimeStamp()||this.setTimeStamp(),loadInHpViewer:!0,includePersonalized:this.personalized},r=(null===(e=window.YAHOO)||void 0===e?void 0:e.context)||(null===(n=window.Af)||void 0===n?void 0:n.context)||{};return r.region&&r.lang&&(i.lang=r.lang,i.region=r.region),(null===(t=this.partnerClasses)||void 0===t?void 0:t.length)&&(i.partner=this.partnerClasses[1]),new Promise((function(e,n){o.client.helpers.refreshPanelNode({matrixParams:i},(function(t,o){t&&(c("Notification refresh error:",t),n(t)),e(o)}))}))},e.prototype.resetBadge=function(){this.client.helpers.resetBadge(),this.setTimeStamp()},e.prototype.getConfig=function(){var e,n,t,o,i,r=document.getElementById("notification-container"),a=null===(e=null==r?void 0:r.dataset)||void 0===e?void 0:e.config;if(I&&!a)return I;var s={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}},l={};if(a){"att"===(null===(n=this.partnerClasses)||void 0===n?void 0:n[1])&&(s.promos.showYahooLogo=!1);try{var u=JSON.parse(a);l=h({},u),this.personalized=1===u.personalize}catch(e){c("Notifications config parsing error",e)}r&&delete r.dataset.config}return I=this.mergeConfigs(s,l),(null===(t=this.partnerClasses)||void 0===t?void 0:t.length)&&"yahoo"!==(null===(o=this.partnerClasses)||void 0===o?void 0:o[1])&&(null===(i=I.promos)||void 0===i?void 0:i.subscriptionTopic)&&delete I.promos.subscriptionTopic,I},e.prototype.mergeConfigs=function(e,n){var t=h({},e);for(var o in e)t[o]=h(h({},e[o]),n[o]);return t},e.prototype.getTimeStamp=function(){var e;return null===(e=window.localStorage)||void 0===e?void 0:e.getItem(j)},e.prototype.setTimeStamp=function(){var e,n=""+Math.floor((new Date).getTime()/1e3);return null===(e=window.localStorage)||void 0===e||e.setItem(j,n),n},e}(),G=new F,W=function(){return G},J="",V=[],K=function(){},X=function(){window.removeEventListener("beforeunload",X),""!==J&&c("Rapid not found on page",new Error(J))},$=null,Z=function(){return null===$&&($=document.getElementById("ybar")),$},Q=function(){var e=0,n=window.YAHOO;if(B)return B;if(n)if(n.i13n)if(n.i13n.__RAPID_INSTANCES__)if(n.i13n.__RAPID_INSTANCES__.length0)for(var t=0;t0){if(B.addModules(i,!1,o),V.length>0)for(e=0;e40959)&&(i19903)&&(i55215))return!1}return!0},fe={navBeaconFired:!1},me=["ready","navigation"],ve=function(){function e(e){var n=this;this.triggerEvent=a,this.addEventListener=s,this.logError=c,this.logPerformance=l,this.getConfig=u,this.getPerformanceMetrics=d,this.rapidRefresh=ne,this.state=h({},fe),this.modules=e,this.userEmail="",window.YBAR&&(me.forEach((function(e){var t="on".concat(e),o=window.YBAR[t];o&&(n[t]=o)})),window.YBAR.wssid&&(this.wssid=window.YBAR.wssid),window.YBAR.appid&&(this.appid=window.YBAR.appid)),me.forEach((function(e){var t="on".concat(e);s(e,(function(){for(var o,i=[],r=0;r0,o=_.scrollTope.pageOffset,r=_.scrollTop>k+y,a=_.scrollTop a"),o=document.querySelector("#ybar-navigation-item-mail > a > span");null!==n&&null!==t&&(new Rn).fetchCount().then((function(n){o&&n>0&&(o.textContent="("+(n>99?"99+":n)+")",e.onDestroy((function(){o.textContent=""})))})).catch((function(){}))},Pt=!1,Rt=-1,Dt=function(e,n,t){var o,i,r,a=-1,s=0;if(e.ybarNav&&e.navList){var c=window.getComputedStyle(e.ybarNav),l=parseInt(c.width,10)-parseInt(c.paddingLeft,10)-parseInt(c.paddingRight,10),u=61,d=e.navigationPlacement();if(d)u+=d.getBoundingClientRect().width;if(xt)u+=xt.getBoundingClientRect().width;for(var p=window.getComputedStyle(e.navList),h=parseInt(p.gap,10)||0,f=0;fb&&(f!==e.navItems.length-1||s+y>b||e.moreMenuDropdown&&e.moreMenuDropdown.hasChildNodes()&&Rt10?e.moreMenuDropdown.classList.add(e.longListClass):null!==e.moreMenuDropdown&&e.moreMenuDropdown.classList.remove(e.longListClass))}},Ht=function(e,n){var t=function(e,t){var o;e.classList.contains(n.moreMenuNavItemClass)&&(null===(o=n.moreMenuMainFocusItem)||void 0===o||o.setAttribute("aria-expanded",t))},o=function(){n.isTablet&&(document.body.classList.remove("ybar-nav-open"),document.body.removeEventListener("touchend",l))},i=function(e){var o=e.delegateTarget;o&&o.classList.contains(n.dropdownWrapperClass)&&(o.classList.contains(n.dropdownOpenClass)||(n.isTablet&&(document.body.classList.add("ybar-nav-open"),document.body.addEventListener("touchend",l)),o.classList.add(n.dropdownOpenClass),t(o,"true")))},r=function(e){var i=e.delegateTarget;if(null==i?void 0:i.classList.contains(n.navigationDropdownListClass)){var r=i.parentElement;r&&!r.contains(e.relatedTarget)&&r.classList.contains(n.dropdownWrapperClass)&&(o(),r.classList.remove(n.dropdownOpenClass),t(r,"false"))}else if(null==i?void 0:i.classList.contains(n.dropdownOpenClass)){if(n.isTablet&&e instanceof FocusEvent)return;var a=e.target;xt&&(!xt||xt.contains(a)&&"focusout"!==e.type)||(o(),i.classList.remove(n.dropdownOpenClass),t(i,"false"))}},a=je(".".concat(n.dropdownWrapperClass),"focusin",i),s=je(".".concat(n.dropdownWrapperClass,", .").concat(n.navigationDropdownListClass),"focusout",r),c=document.getElementById("ybar-navigation"),l=function(e){var t=null==e?void 0:e.target;n.isTablet&&e&&e.target&&e.target instanceof HTMLElement&&(e.target.classList.contains(n.dropdownOpenClass)||e.target.closest(".".concat(n.dropdownOpenClass)))||document.body.classList.contains("ybar-nav-open")&&!["svg","path"].includes(t.tagName)&&(null==c||c.querySelectorAll(".".concat(n.dropdownOpenClass)).forEach((function(e){e.classList.remove(n.dropdownOpenClass)})),o())};e.addEventListener("nav:closeOverflowMenu",(function(){l()}));var u=je(".".concat(n.dropdownWrapperClass),"touchstart",(function(e){if(n.isTablet){var t=e.delegateTarget;t&&t.classList.contains(n.dropdownOpenClass)?r(e):(l(e),i(e))}}));e.onDestroy((function(){var e;u.destroy(),a.destroy(),s.destroy(),y([],v(null===(e=n.ybarNav)||void 0===e?void 0:e.querySelectorAll(".".concat(n.dropdownOpenClass))),!1).forEach((function(e){e.classList.remove(n.dropdownOpenClass);var t=document.activeElement;(function(e,n){var t=!1;if(!e||!n)return t;if("function"==typeof e.contains)t=e.contains(n);else for(var o=n;o;){if(o===e){t=!0;break}o=o.parentElement}return t})(n.ybarNav,t)&&setTimeout((function(){null==t||t.blur()}),1)}))}))},Ut=function(e,n,t,o){for(var i=n||window.location.pathname,r=t||window.location.hostname,a=(o||{}).setParentFocus,s=void 0!==a&&a,c=y([],v(e.topLevelNavLinks),!1),l=null,u=null,d=0;d li"),dropdownClass:n.dropdownWrapperClass,enableMoreMenu:i,moreMenuNavElm:n.moreMenuMainFocusItem,isUserAccountNavigation:!1});!function(e,n){var t,o;y([],v(null===(t=n.ybarNav)||void 0===t?void 0:t.querySelectorAll(".".concat(n.dropdownOpenClass))),!1).forEach((function(e){return e.classList.remove(n.dropdownOpenClass)}));var i=e.getConfig();xt=(null===(o=i.bucketConfig)||void 0===o?void 0:o.enable_mid_nav_placement)?document.getElementById("ybar-mid-nav-placement"):void 0,"news"===i.property?kt=-12:(kt="finance"!==i.property&&"sports"!==i.property&&n.shiftMoreMenuEnabled?-24:-16,"zh-Hant-HK"!==i.locale&&"zh-Hant-TW"!==i.locale||(kt=-20));var r=n.isTablet?"touchstart":"mouseover",a=je(".".concat(n.dropdownWrapperClass,", .").concat(n.navigationDropdownListClass),r,(function(t){if(window||document){var o=window.innerWidth||document.documentElement.clientWidth,r=t.delegateTarget;if(r&&-1!=r.className.indexOf(n.dropdownWrapperClass)&&(r=r.querySelector(".".concat(n.navigationDropdownListClass))),r){r.style.removeProperty("left");var a=r.getBoundingClientRect(),s=Math.trunc(a.right),c=parseInt(window.getComputedStyle(r).marginLeft,10)+o-s;if(s>o)return"sports"!==i.property?void(r.style.marginLeft=c+"px"):void(r.style.right="0px");if(parseInt(r.style.marginLeft)0?r.style.removeProperty("margin-left"):r.style.marginLeft=c+"px":(r.style.removeProperty("margin-left"),r.style.marginLeft=kt+"px"),n.isTablet){var l=r.previousElementSibling;if(xt&&xt.contains(r));else if(l){var u=l.getBoundingClientRect(),d=Math.trunc(u.left);r.style.left=d+"px"}}}}else{var p=new Error("Dropdown could not be initialized");e.logError("Error:",p)}}));e.onDestroy((function(){a.destroy()}))}(e,n),qt(e),e.addElementListener(document,"DOMContentLoaded",(function(){qt(e)})),Ht(e,n);var a=e.getConfig().bucketConfig,s=void 0===a?{}:a,c=s.enableDynamicNavfocus,l=void 0!==c&&c,u=s.enableFuzzyMatching;if(l&&(Pt=void 0!==u&&u,Ut(n)),e.addEventListener("nav:setFocus",(function(e){var t=e.detail,o=void 0===t?{}:t,i=o.hostname,r=void 0===i?window.location.hostname:i,a=o.pathname,s=void 0===a?window.location.pathname:a,c=o.options;Ut(n,s,r,void 0===c?{}:c)})),i){var d=document.createElement("style");d.title="ybar_nav_interim",document.head.appendChild(d);var p=je("#ybar-nav-more-menu ul a","click",(function(n){e.triggerEvent("navigation",{event:n})}));e.addEventListener("nav:resize",(function(){Dt(n,d,r)})),Dt(n,d,r);var h=e.getConfig();if("complete"===document.readyState)Yt(e,n,d,r);else{var f="load";("news"===h.property&&("zh-Hant-TW"===h.locale||"zh-Hant-HK"===h.locale)||"finance"===h.property&&"zh-Hant-TW"===h.locale)&&(f="DOMContentLoaded"),e.addElementListener(window,f,(function(){Yt(e,n,d,r)}))}e.addElementListener(window,"resize",(function(){Dt(n,d,r)})),e.onDestroy((function(){var e=d.parentNode;null==e||e.removeChild(d),p.destroy()}))}Ft(e,n)},jt=function(e,n){var t=["zh-Hant-TW","zh-Hant-HK"].includes(e.getConfig().locale);return n.isFuji2&&t},Ft=function(e,n){if(n.isNavHidden){var t=!1;e.addElementListener(document,"DOMContentLoaded",(function(t){n.isNavHidden()&&e.triggerEvent("l2:hide",{event:t})})),e.addElementListener(window,"resize",(function(o){!t&&n.isNavHidden()&&e.triggerEvent("l2:hide",{event:o}),t=n.isNavHidden()}))}},Gt="#ybar-nav-more-menu";ge("ybar-mod-navigation",(function(e){var n,t=e.getConfig(),o={dropdownWrapperClass:St,isFuji2:null!==document.querySelector(".ybar-ytheme-fuji2")||null!==document.querySelector(".ybar-ytheme-crunch"),isTablet:null!==document.querySelector(".tablet")||"tablet"===t.device||matchMedia("(hover: none)").matches,longListClass:At,moreMenuDropdown:document.querySelector("".concat(Gt," ul")),moreMenuNavItem:document.querySelector(Gt),moreMenuNavLinksSelector:"".concat(Gt," ul a"),moreMenuMainFocusItem:document.querySelector("".concat(Gt," > button")),moreMenuNavItemClass:Ot,navigationDropdownItemClass:Mt,navigationDropdownListClass:Nt,navItems:document.querySelectorAll("ul.".concat(Tt," li.").concat(Bt)),topLevelNavLinks:document.querySelectorAll("li.".concat(Bt," > a")),navLinks:document.querySelectorAll(".ybar-mod-navigation a"),navList:document.querySelector(".ybar-mod-navigation ul"),shiftMoreMenuEnabled:document.querySelector(".ybar-shift-more-menu"),ybarNav:document.getElementById("ybar-navigation"),ybarNavigationItemClass:Bt,dropdownOpenClass:Et,hasNavPlacement:document.getElementById("ybar-nav-placement"),marginOffset:function(e){var n=window.getComputedStyle(e),o=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10);return"sports"===t.property?parseInt(n.marginRight):"finance"===t.property&&"crunch"===t.ytheme?(o-=1.8)>5?o:5:"crunch"===t.ytheme?o:0},navigationPlacement:function(){return n||(n=document.getElementById("ybar-nav-placement")),n},isNavHidden:function(){var e=!1;return"finance"===t.property&&"crunch"===t.ytheme&&document.documentElement.clientWidth=5||t.initialized?clearInterval(r):(void 0!==t.isNotificationsSupported()&&t.init(),i++)}),100)}return e.prototype.show=function(e){var n;this.initialized&&(this.historyEnabled&&!e||(document.body.classList.add(Zt),null===(n=this.a11yMenu)||void 0===n||n.setAttribute("aria-expanded","true"),this.lastSeen=(new Date).getTime()))},e.prototype.hide=function(){var e;this.initialized&&(this.historyEnabled&&document.body.classList.remove(Qt),document.body.classList.remove(Zt),null===(e=this.a11yMenu)||void 0===e||e.setAttribute("aria-expanded","false"))},Object.defineProperty(e.prototype,"lastSeen",{get:function(){return this.state.lastSeen},set:function(e){this.state.lastSeen=e,this.setLocalStorage()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"manuallyClosed",{get:function(){return this.state.manuallyClosed},set:function(e){this.state.manuallyClosed=!!e,this.setLocalStorage()},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.isNotificationsSupported()&&this.isNotificationPermissionDefault()&&(this.historyEnabled||document.body.classList.add(Qt),this.addEventListeners(),this.initialized=!0,this.hasSeenTooltipIn(this.manuallyClosed?6048e5:$t)||(document.body.classList.add(Qt),this.show(!0)))},e.prototype.addEventListeners=function(){var e=this;this.ybar.addElementListener(this.container.getElementsByClassName(eo)[0],"click",(function(){e.hide(),e.manuallyClosed=!0}))},e.prototype.isNotificationsSupported=function(){var e;return null===(e=null===window||void 0===window?void 0:window.subscriptionHelperInstance)||void 0===e?void 0:e.checkIsSupportedBrowser()},e.prototype.isNotificationPermissionDefault=function(){var e;return"default"===(null===(e=window.Notification)||void 0===e?void 0:e.permission)},e.prototype.hasSeenTooltipIn=function(e){if(!this.lastSeen)return!1;var n=new Date(this.lastSeen),t=new Date;return n.getTime()+e>t.getTime()},e.prototype.setLocalStorage=function(){var e;null===(e=window.localStorage)||void 0===e||e.setItem(Xt,JSON.stringify(this.state))},e.prototype.getLocalStorage=function(){var e,n,t=null===(e=window.localStorage)||void 0===e?void 0:e.getItem(Xt);if(null===t)return null;try{return JSON.parse(t)}catch(e){return null===(n=window.localStorage)||void 0===n||n.removeItem(Xt),null}},e}(),oo=-1,io={0:0,1:1,9:9,99:99,150:150},ro=function(e,n){var t,o=n.isUH3,i=n.notifMenu,r=n.notifMenuOpener,a=n.notifDropdown,s=n.notifBadge,c=n.notifContainer,l=n.notifLabel;n.tooltipContainer&&(t=new to(e,n.tooltipContainer));var u=W(),d=function(){i&&(i.checked=!1),null==a||a.classList.remove("ybarMenuOpen")},p=function(){var n;e.triggerEvent("close-all-menus"),!!document.querySelector(".display-push-promos .".concat(Wt))||(u.resetBadge(),s&&(o?null===(n=s.parentElement)||void 0===n||n.classList.remove(Jt):s.style.display="none"))},h=function(e){var n,t;0===oo&&(null===(n=null==e?void 0:e.css)||void 0===n?void 0:n.length)&&e.css.length>0&&(oo++,function(e){for(var n=function(e){var n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.href=e,document.getElementsByTagName("head")[0].appendChild(n)},t=0;t0&&s)if(o){var r,a=(r=e.newCount)>99;s.textContent=a?"99+":r+"",null===(t=s.parentElement)||void 0===t||t.classList.add(Jt)}else s.style.display="block"},f=function(){u.refreshPanel().then(h).then(ne).catch((function(){}))};e.addEventListener("close-all-menus",(function(){xe(c)||d()})),c&&(f(),setInterval((function(){f()}),3e5),o?l&&l.addEventListener("mouseenter",(function(){p(),null==t||t.show()})):c.addEventListener("mouseenter",(function(){p(),null==t||t.show()})),c.addEventListener("mouseleave",(function(){d(),null==t||t.hide()}))),e.addElementListener(i,"click",(function(){ee("ybar","notification","",{elm:"btn",elmt:"block"===(null==s?void 0:s.style.display)?"newalert":"",subsec:"notification",itc:"1"})})),r&&Se(e,r,"ybar","notification",{elm:"expand",subsec:"notifications",itc:"2"}),e.addElementListener(a,"focusin",(function(){i&&(i.checked=!0),null==a||a.classList.add("ybarMenuOpen")})),e.addElementListener(a,"focusout",d),e.addElementListener(n.tooltipContainer,"focusin",(function(){null==t||t.show()})),e.addElementListener(n.tooltipContainer,"focusout",(function(){null==t||t.hide()}));var m=e.getConfig().device,v=document.getElementById("ybar");v&&v.classList.contains("ybar-ytheme-crunch")&&(oo=0);var y=new RegExp("[?&]notifications=1(&|#|$)");"desktop"===m&&i&&y.test(window.location.search)&&(i.checked=!0)};ge("ybar-mod-notification",(function(e){var n={isUH3:"crunch"===e.getConfig().ytheme,notifContainer:document.getElementById("notification-container"),notifBadge:document.getElementById("notif-badge"),notifMenu:document.getElementById("ybarNotificationMenu"),notifMenuOpener:document.querySelector("#ybarNotificationMenu + label"),notifDropdown:document.getElementById("notifDropdownContainer"),tooltipContainer:document.querySelector(".".concat(Vt)),notifLabel:document.querySelector(".".concat(Kt))};n.notifDropdown&&ro(e,n)}))}()}};]]>Unlock stock picks and a broker-level newsfeed that powers Wall Street. Upgrade NowBrian Sozzi · Executive EditorFri, Feb 21, 2025, 2:19 PM 3 min readWalmart (WMT) investors got caught asleep at the switch.Shares logged their worst day in more than a year on Thursday, tanking 6.23% as the retailer surprised investors with a weak 2025 outlook. Shares were relatively unchanged in premarket trading on Friday.The session was a new, unwelcome development in the Walmart story.For much of 2025, Walmart investors only saw a stock price that went up and to the right as it consistently beat analyst profit estimates and raised guidance. The impressive 2024 run has taken shares to a rich valuation of 37 times estimated forward earnings, a stiff premium relative to the 22 times afforded the S&P 500.But with tariff and consumer spending concerns swirling, Walmart's profit outlook was lacking.The company projected full-year earnings per share of $2.50 to $2.60. Analysts were modeling for $2.76 a share."We're not immune to this [tariffs], but we typically will work with suppliers on this. We'll shift supply where we need to. We can lean into our private brands. There's a lot of tools that we have that to try to keep those prices low for customers," Walmart CFO John David Rainey told Yahoo Finance.Read more: What are tariffs, and how do they affect you?The Street has largely defended Walmart's stock in the aftermath of the sell-off, opting to reiterate bullish ratings and price targets. EPS estimates have started to trend lower, Yahoo Finance data shows, but still remain well above the company's guidance."This company is consistent, and the consumer is consistent, so it's [Walmart] well positioned for a beat-and-raise," TD Cowen analyst Oliver Chen said on Yahoo Finance's Morning Brief. "We certainly like it for the longer term."Here's what Wall Street is whispering about after the 2025 outlook from Walmart.Rating: Reiterated BuyPrice Target: $120, reiteration"The 'Walmart winning' theme continues, though high market expectations and 2025 guidance that was weaker than consensus weighed on the stock. But nothing has changed. Walmart US continues to gain share in all income cohorts (though led by higher income consumers), driven not only by Walmart's mindshare for value but also its convenience."Higher growth businesses such as marketplace, fulfillment and advertising are increasingly contributing to profits and will help drive margins in the future (and we believe Walmart can exceed historical peak EBIT margins). We believe 2025 guidance will prove conservative as was the case in 2024, and believe Walmart is positioned to outperform in the uncertain macroeconomic environment."Terms and Privacy PolicyPrivacy & Cookie SettingsMore InfoS&P 5006,061.34 -56.18 (-0.92%)Dow 3043,658.74 -517.91 (-1.17%)Nasdaq19,721.81 -240.55 (-1.21%)Russell 20002,228.07 -33.68 (-1.49%)Crude Oil71.01 -1.47 (-2.03%)Gold2,951.90 -4.20 (-0.14%)My PortfoliosSign in to access your portfolioSign inTop GainersCELH Celsius Holdings, Inc. 33.34 +7.81 (+30.60%)PONY Pony AI Inc. 22.30 +4.42 (+24.69%)VICR Vicor Corporation 63.64 +11.78 (+22.72%)TME Tencent Music Entertainment Group 14.43 +1.60 (+12.47%)TLX Telix Pharmaceuticals Limited 19.40 +1.99 (+11.43%)Top LosersGLOB Globant S.A. 160.15 -50.02 (-23.80%)HIMS Hims & Hers Health, Inc. 51.45 -14.96 (-22.53%)AKAM Akamai Technologies, Inc. 80.03 -18.00 (-18.36%)SFM Sprouts Farmers Market, Inc. 139.30 -30.50 (-17.96%)CARG CarGurus, Inc. 31.00 -6.59 (-17.53%)Most ActiveNU Nu Holdings Ltd. 11.06 -2.28 (-17.13%)NVDA NVIDIA Corporation 138.22 -1.89 (-1.35%)NIO NIO Inc. 4.5350 +0.1650 (+3.78%)PLTR Palantir Technologies Inc. 105.29 -0.98 (-0.92%)HIMS Hims & Hers Health, Inc. 51.45 -14.96 (-22.53%)Trending TickersUNH UnitedHealth Group Incorporated 457.35 -45.07 (-8.97%)MLGO MicroAlgo Inc. 7.94 +6.78 (+590.00%)CELH Celsius Holdings, Inc. 33.12 +7.59 (+29.71%)XYZ Block, Inc. 69.21 -13.83 (-16.66%)HIMS Hims & Hers Health, Inc. 51.44 -14.97 (-22.54%)Top Economic Events