Barcelona Bridal Fashion Week Returns IRL Kicking Off With Viktor & Rolf Show
- promoMarkupnotifMarkup
“,panelEmptyTemplate=”
emptyPanelMsg
“,panelErrorTemplate=”
errorMsg
“,panelParentTemplate=””,notifOnboardPromoTemplate=”
notifOnboardMsg
“,EXPANDED_PANEL=”expanded_panel”,ERROR_PANEL=”error_panel”,NotificationView=function(){function e(t,n)classCallCheck(this,e);var i=this;i._config=t,i._panelNode=null,i._store=nreturn createClass(e,[key:”_generatePanelMarkup”,value:function(e,t)hasClass(document.body,n.promos.eligibleBodyClass));var r=n.promos.enableNotifOnboard&&i&&o?notifOnboardPromoTemplate:””;if(r)var a=n.promos.showYahooLogo?””:”yns-no-logo”;r=r.replace(“notifOnboardBtnLabel”,n.promos.notifOnboardBtnLabel).replace(“notifOnboardMsg”,n.promos.notifOnboardMsg).replace(“subscriptionTopic”,n.promos.subscriptionTopic).replace(“noLogoClass”,a).replace(“https://www.yahoo.com/now/promoLogo”,n.promos.promoLogo)var s=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”,r).replace(“hideClass”,l).replace(“https://www.yahoo.com/now/notifCenterLink”,c).replace(“paddingClass”,d).replace(“headerMsg”,n.panel.headerMsg).replace(“hideHeaderClass”,u).replace(/notificationCenterNavMsg/g,n.panel.notificationCenterNavMsg).replace(/newCount/g,s),{key:”render”,value:function(e,t)var n=this;if(n._panelNode)var i=void 0,o=n._panelNode,r=void 0,a=void 0;switch(e)case EXPANDED_PANEL:i=panelTemplate,a=n._store.getNotifications(),r=n._generatePanelMarkup(i,a),o.innerHTML=r;break;case ERROR_PANEL:r=(i=panelErrorTemplate).replace(“errorMsg”,n._config.panel.errorMsg),o.innerHTML=rt&&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 i=t>n?n+”+”:t;e.innerHTML=ielse e.innerHTML=””,key:”addStyles”,value:function(e)if(e&&”undefined”!=typeof window)]),e}(),EXPANDED_PANEL$1=”expanded_panel”,ERROR_PANEL$1=”error_panel”,PanelController=function()function e(t,n,i)classCallCheck(this,e);var o=this;o._store=n,o._view=i,o._config=t;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,t)var n=this;addClass(n._notifPanelNode,constants.panelLoading),n._store.fetchNotifications(e,(function(e,i)(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(i.css)),removeClass(n._notifPanelNode,constants.panelLoading),t&&t(e,i))),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:2,service:attemptCount:2,attemptDelay:1,url:null,resetUrl:null,isRMP:!1,responseType:”json”,timeout:1500,Main=function(){function e(t)classCallCheck(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(e,[key:”_parseConfig”,value:function(e)var t=;for(var n in objectAssign(t,config),t)if(t.hasOwnProperty(n))var i=t[n],o=e[n];”object”===(void 0===i?”undefined”:_typeof(i))?objectAssign(i,o):t[n]=e[n]return t,key:”_validateRequiredConfigs”,value:function(),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)return e.prototype.refreshPanel=function()void 0===e?void 0:e.context),e.prototype.resetBadge=function()this.client.helpers.resetBadge(),this.setTimeStamp(),e.prototype.getConfig=function()var e,t,n=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,i=document.getElementById(“notification-container”),o=null===(e=null==i?void 0:i.dataset),e.prototype.mergeConfigs=function(e,t)var n=__assign(,e);for(var i in e)n[i]=__assign(__assign(,e[i]),t[i]);return n,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 t=void 0;if(e&&e.length>0)for(var n=0;n
/*!**********************!*\
!*** ./src/index.js ***!
\**********************/function(__unused_webpack_module,__unused_webpack_exports,__webpack_require__){eval(“var I18n = __webpack_require__(/*! ./lib/I18n */ \”./src/lib/I18n.js\”);\n\n(function (win, doc) {\n \”use strict\”;\n\n var defaultConfig = {\n uiLang: ‘en-US’,\n speechLang: ‘en-US’,\n voiceButton: ‘#voice-btn’,\n searchBox: {\n form: ‘#sf’,\n input: ‘#yschsp’,\n params: \n fr: ”,\n fr2: ”\n