July 9, 2021


l+o,p=s.scrollTop19903))return!1}return!0}(r.fn,r.ln)?[r.ln,r.fn].join(“”):[r.fn,r.ln].join(” “),r.identifier=r.em||r.alias,r);var n=e[t].state;0!==n&&”0”!==n||e.splice(t,1)[0]}var o,r;return e}(o.users),a=H(U(“ybar-user-accounts-list”)),i=0;i0){var s=H(U(“ybar-account-menu”,”ybar-sign-out”)),c=s&&s.getAttribute(“data-soa”),l=H(U(“ybar-account-menu”,”ybar-sign-out-text”));if(l&&c&&(l.innerText=c),e){var u=H(U(“ybar-account-menu”,”ybar-icon-arrow”)),d=U(“ybar-icon-arrow-up”).substr(1),y=U(“ybar-icon-arrow-down”).substr(1),p=U(“ybar-item-hidden”).substr(1),b=z(U(“ybar-item-hidden”));u&&(u.classList.toggle(y),u.addEventListener(“click”,(function(){for(i=0;i4){var m=H(U(“ybar-account-menu”,”ybar-see-info”));m&&m.style&&(m.style.display=”block”)}Z(),t&&t(null)}else F&&(F.style.display=”block”)};if(K)B(“https://jsapi.login.yahoo.com/w/device_users?.crumb=”+M.value,o);else(new O).get(“https://jsapi.login.yahoo.com/w/device_users”,n,o,”processDeviceUsers”)}},te=”function”==typeof Symbol&&”symbol”==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&”function”==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?”symbol”:typeof e},ne=function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)},oe=function(){function e(e,t){for(var n=0;n0?(t–,setTimeout((function(){o._sendRequest(e,t,n)}),a)):n&&n(new Error(“Error: “+l.status+” “+l.statusText),null)};l.onload=function(){if(200===l.status){var t=o._parseRequestResult(l.response||l.responseText);n&&n(null,t,e)}else u()},l.onerror=u,”GET”===e.method?l.send():l.send(c)}}]),e}();function ae(e,t){if(e&&!ie(e,t)){var n=e.className+” “+t;e.className=n}}function ie(e,t){var n=e&&e.className&&e.className.split(” “);return!!n&&-1!==n.indexOf(t)}function se(e,t){if(e){var n=e.className&&e.className.split(” “);if(n){var o=n.indexOf(t);o>=0&&n.splice(o,1),e.className=n.join(” “)}}}function ce(e,t){if(e){if(!t)return e;for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}}var le=function(){function e(t,n){ne(this,e);this._config=t,this._markup=””,this._newCount,this._count,this._request=n}return oe(e,[{key:”_replaceAllNotifications”,value:function(e){this._markup=e.markup||””,this._newCount=e.newCount&&parseInt(e.newCount,10)||0,this._count=e.count&&parseInt(e.count,10)||0}},{key:”resetNewCount”,value:function(){if(0!==this._newCount&&this._config.service.resetUrl){var e={url:this._config.service.resetUrl};this._request.read(e,(function(e,t){}))}this._newCount=0}},{key:”_requestNotifications”,value:function(e,t){var n=this,o=n._config.panel,r={count:o.maxCount,imageTag:o.imageTag,theme:o.theme};e||(e={}),o.notificationTypes&&(r.notificationTypes=o.notificationTypes),ce(r,e.matrixParams);var a={matrixParams:r};n._request.read(a,(function(e,o){!e&&o&&n._replaceAllNotifications(o),o=o||{},t&&t(e,o)}))}},{key:”getNotifications”,value:function(){return{count:this._count,markup:this._markup,newCount:this._newCount}}},{key:”fetchNotifications”,value:function(e,t){this._requestNotifications(e,t)}}]),e}(),ue=”yns-panel-loading”,de=”yns-panel”,ye=”yns-hide”,pe=”yns-panel-padding-btm”,be=function(){function e(t,n){ne(this,e);this._config=t,this._panelNode=null,this._store=n}return oe(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=ie(document.body,n.promos.eligibleBodyClass));var a=n.promos.enableNotifOnboard&&o&&r?’

  • {notifOnboardMsg}

  • Source