-
CB2 Introduces Art Patron, A New Collection Developed in Partnership with Portia de Rossi’s General Public
promoMarkupnotifMarkup “,panelEmptyTemplate=” emptyPanelMsg “,panelErrorTemplate=” errorMsg “,panelParentTemplate=””,notifOnboardPromoTemplate=” notifOnboardMsgnotifOnboardBtnLabel “,EXPANDED_PANEL=”expanded_panel”,ERROR_PANEL=”error_panel”,NotificationView=function(){function e(n,t)classCallCheck(this,e);var i=this;i._config=n,i._panelNode=null,i._store=treturn createClass(e,[key:”_generatePanelMarkup”,value:function(e,n)var t=this._config,i=void 0,o=void 0;”undefined”!=typeof window&&(i=window.Notification&&”default”===window.Notification.permission,o=t.promos.bypassEligibleClassCheck,{key:”render”,value:function(e,n)var t=this;if(t._panelNode)var i=void 0,o=t._panelNode,r=void 0,s=void 0;switch(e)case EXPANDED_PANEL:i=panelTemplate,s=t._store.getNotifications(),r=t._generatePanelMarkup(i,s),o.innerHTML=r;break;case ERROR_PANEL:r=(i=panelErrorTemplate).replace(“errorMsg”,t._config.panel.errorMsg),o.innerHTML=rn&&n()else n&&n(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 n=this._store.getNotifications().newCount,t=this._config.badge.maxCount;if(n)var i=n>t?t+”+”:n;e.innerHTML=ielse e.innerHTML=””,key:”addStyles”,value:function(e)if(e&&”undefined”!=typeof window)((n=document.createElement(“style”)).type=”text/css”,n.id=this._config.panel.styleTagId,n.innerText=e,document.head.appendChild(n))]),e}(),EXPANDED_PANEL$1=”expanded_panel”,ERROR_PANEL$1=”error_panel”,PanelController=function()function e(n,t,i)classCallCheck(this,e);var o=this;o._store=t,o._view=i,o._config=n;var r=o._config.panel;o._panelParentNode=document.querySelector(r.parentSelector),o._badgeNode=o._config.badge.selector&&document.querySelector(o._config.badge.selector),o._indicatorNode=r.indicatorSelector&&document.querySelector(r.indicatorSelector)return createClass(e,[key:”createPanelParentNode”,value:function()this._view.createPanelParentNode(this._panelParentNode),this._notifPanelNode=document.getElementById(constants.panelNodeId),key:”refreshPanelNode”,value:function(e,n)var t=this;addClass(t._notifPanelNode,constants.panelLoading),t._store.fetchNotifications(e,(function(e,i)var o=window.wafer&&window.wafer.base;o&&o.destroy(t._notifPanelNode),e?t._notifPanelNode.innerHTML)),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:80″,indicatorClass:”yns-indicator”,indicatorSelector:null,maxCount:6,notificationCenterNavMsg:”View all newCount notifications”,notificationCenterPath:””,notificationTypes:””,parentSelector:null,styleTagId:”notificationStyles”,theme:”default”,service:attemptCount:2,attemptDelay:1,url:null,resetUrl:null,isRMP:!1,responseType:”json”,timeout:1500,Main=function(){function e(n)classCallCheck(this,e);var t=this;t.config=t._parseConfig(n),t._validateRequiredConfigs()&&(t._request=new NotificationRequest(t.config),t._store=new NotificationStore(t.config,t._request),t._view=new NotificationView(t.config,t._store),t._panelController=new PanelController(t.config,t._store,t._view),t._panelController.createPanelParentNode(),t._assignHelperMethods())return createClass(e,[key:”_parseConfig”,value:function(e)var n=;for(var t in objectAssign(n,config),n)if(n.hasOwnProperty(t))var i=n[t],o=e[t];”object”===(void 0===i?”undefined”:_typeof(i))?objectAssign(i,o):n[t]=e[t]return n,key:”_validateRequiredConfigs”,value:function()!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()void 0===n?void 0:n.match(/ybar-variant-([a-z]*)/),this.client=new notificationClient.NotificationClient(this.getConfig())return e.prototype.refreshPanel=function(),e.prototype.resetBadge=function()this.client.helpers.resetBadge(),this.setTimeStamp(),e.prototype.getConfig=function(),e.prototype.mergeConfigs=function(e,n)var t=__assign(,e);for(var i in e)t[i]=__assign(__assign(,e[i]),n[i]);return t,e.prototype.getTimeStamp=function()var e;return null===(e=window.localStorage),e.prototype.setTimeStamp=function(),e}(),notifClient=new NotifClient,getNotifClient=function()return notifClient,reInit=function()notifClient=new NotifClient,ybarRapid,ybarRapidInterval,ybarRapidErrMsg=””,beaconQueue=[],noop=function(),logRapidError=function()window.removeEventListener(“beforeunload”,logRapidError),””!==ybarRapidErrMsg&&logError(“Rapid not found on page”,new Error(ybarRapidErrMsg)),findRapidWithSpaceid=function(e)var n=void 0;if(e&&e.length>0)for(var t=0;t90&&fireImageBeacon(“performance”,e)catch(e)),1e3)}))},measureInit=measure(“ybar-init”);initYbar(),measureInit.stop(),initPerformanceMetricsBeaconListener(),initRapid(),initErrorBeaconListener();var selected=”_yb_k9cm9″,Css$7=”right-item”:”_yb_1bn3f”,selected:selected,”ybar-mod-topnavigation”:”_yb_10e0k”,”ybar-mod-topnavigation-teaser-imp”:”_yb_1rlkl”,DOCUMENT_NODE_TYPE=9;if(“undefined”!=typeof Element&&!Element.prototype.matches)function closest(e,n)for(;e&&e.nodeType!==DOCUMENT_NODE_TYPE;)if(“function”==typeof e.matches&&e.matches(n))return e;e=e.parentNodevar closest_1=closest;function _delegate(e,n,t,i,o)var r=listener.apply(this,arguments);return e.addEventListener(t,r,o),destroy:function()e.removeEventListener(t,r,o)function delegate(e,n,t,i,o)return”function”==typeof e.addEventListener?_delegate.apply(null,arguments):”function”==typeof t?_delegate.bind(null,document).apply(null,arguments):(“string”==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e)return _delegate(e,n,t,i,o))))function listener(e,n,t,i)return function(t)t.delegateTarget=closest_1(t.target,n),t.delegateTarget&&i.call(e,t)var delegate_1=delegate,ListNode=function(e)this.data=e,this.next=null,this.prev=null,LinkedList=function(){function e()this.head=null,this.tail=nullreturn e.prototype.push=function(e)var n=new ListNode(e);return this.head?this.tail?(n.prev=this.tail,this.tail.next=n,this.tail=n):(this.tail=n,this.tail.prev=this.head,this.head.next=this.tail):(this.head=n,n.next=this.tail),n,e.prototype.size=function()for(var e=0,n=this.head;n;)e+=1,n=n.next;return…