money
Log in
Log into see your mail
- Money
- My money
- Coronavirus
- Articles and tutorials
- News
- Career
- Planning
- consumers
- Trip
- Invest
- Retirement
…
- {promoMarkup}{notifMarkup}
{CenterNavMsg notification}
',panelPlantillaVacío='
{emptyPanelMsg}
',panelErrorTemplate='
{Error message}
',panelParentTemplate='
',notifOnboardPromoTemplate='
{notifOnboardMsg}
',EXPANDED_PANEL="panel_expandido",ERROR_PANEL="panel_error",NotificationView=function(){función e(n,t){classCallCheck(this,e);var i=this;i._config=n,i._panelNode= null,i._store=t}return createClass(e,[{chave:"_generatePanelMarkup",value:function(e,n){var t=this._config,i=void 0,o=void 0;"indefinido" !=typeof window&&(i=window.Notification&&"default"===window.Notification.permission,o=t.promos.bypassEligibleClassCheck||hasClass(document.body,t.promos.eligibleBodyClass));var r=t. promos.enableNotifOnboard&&i&&o?notifOnboardPromoTemplate:"";if(r){var s=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}",s).replace("{promoLogo} ",t.promos.promoLogo)}var a=n.newCount>t.panel.maxCount?n.newCount:"",c=t.panel.notificationCenterPath,l=c?"":constants.panelHideElement,d= t.panel.headerMsg?"":" "+constantes.p anelHid eElement,u=c?constants.panelPaddingBtm:"",p=void 0;n.count?p=n.markup:p=panelEmptyTemplate.replace("{emptyPanelMsg}",t.panel.emptyPanelMsg);return e = e.replace("{notifMarkup}",p).replace("{promoMarkup}",r).replace("{hideClass}",l).replace("{notifCenterLink}",c).replace(" { paddingClass}",u).replace("{headerMsg}",t.panel.headerMsg).replace("{hideHeaderClass}",d).replace(/{notificationCenterNavMsg}/g,t.panel.notificationCenterNavMsg). replace (/{newCount}/g,a)}},{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=r}n&&n()}else n&&n(new Error(" Não panel parent"))}},{key:"createPanelParentNode",value:function(e){e&&(e.innerHTML=panelParentTemplate,this._panelNode=document.getElementById(constants.panelNo deId))}},{clave: "updateBadgeNode",valor:función(e){if(e){var n=this._store.getNotifications().newCount,t=this._config.badge.maxCount;if( n){var i=n>t ?t+"+":n;e.innerHTML=i}else e.innerHTML=""}}},{clave:"addStyles",value:function(e){if( e&&"undefined"!=tipo de janela) {var n=document.getElementById(this._config.panel.styleTagId);n||((n=document.createElement("estilo")).type="text/css ",n.id=este._config. panel.styleTagId,n.innerText=e,document.head.appendChild(n)}}}]),e}(),EXPANDED_PANEL$1="panel_expandido",ERROR_PANEL$1="panel_error",PanelController=función(){ función 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)} volver createClass(e,[{key:"createPanelParentNode",value:function(){this._view.createPanelParentNode(this._panelParentNo de),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. oblea.base;o&o.destroy(t._notifPanelNode),e?t._notifPanelNode.innerHTML||(t._view. render(ERROR_PANEL$1),addClass(t._notifPane lNode,constants.panelLoading)):(t._view.render(EXPANDED_PANEL$1),t._view.updateBadgeNode(t._badgeNode),t._showBadge(),t._showIndicator( ),t._view.addStyles(i. css)),removeClass(t._notifPanelNode,constants.panelLoading),o&&o.sync(t._notifPanelNode.parentNode),n&&n(e,i)})}},{clave:"resetBadge",valor:función(){ var e=this;e._store.resetNewCount(),e._view.updateBadgeNode(e._badgeNode),addClass(e._badgeNode,e._config.badge.hideClass)} },{clave:"_showIndicator",valor: function(){this._indicatorNode&&(this._store.getNotifications().newCount?addClass(this._indicatorNode,this._config.panel.indicatorClass):removeClass(this._indicat orNode,this._config.panel.indicatorClass))} },{clave:"_showBadge",valor:función(){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:"Notifique-me",notifOnboardMsg:"Obtenha alertas for as last notícias e principais histórias",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:"Você não tem novas notificações.",errorMsg :" ",headerMsg:"Notificaciones",imageTag:"img:40x40|2|80",indicatorClass:"yns-indicator",indicatorSelector:null,maxCount:6,notificationCenterNavMsg:"Ver todas como {newCount} notificaciones", NotificationCenterPath:" ",notificationTypes:"",parentSelector:null,styleTagId:"notificationStyles",theme:"default"},service:{attemptCount:2,attemptDel ay:1,url:null,resetUrl:null,isRMP:! 1, tipo de respuesta: "json", tiempo de espera: 1500}}, principal = función () {función e (n) {classCallCheck (este, e); var t = esto; t.config = t._parseConfig (n), t ._validateRequiredConfigs()&&(t._request=new NotificationRequest(t.config),t._store=new NotificationStore(t.config,t._r equest),t ._view=new NotificationView(t.config,t._store),t._panelController=nuevo 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];"objeto"===(void 0===i?"undefined":_typeof(i))?objectAssign(i,o): n[t] =e[t]}return n}},{key:"_validateRequiredConfigs",value:function(){var e=this.config;return!(!e.panel.parentSelector||!e.service .url)} },{clave:"_assignHelperMethods",valor:función(){var e=this;e.helpers={refreshPanelNode:e._panelController.refreshPanelNode.bind(e._panelController),resetBadge:e._panelControlle r .resetBadge.bind(e._panelController),resetIndicator:function(){removeClass(e._panelController._indicatorNode,e.config.panel.indicatorClass)}}}}]),e}(),notificationClient_module_min=Principal,notificationClient = {NotificationClient:notificationClient_module_min},CONSUMPTION_STORAGE _KEY="lnct",NotifClient=función(){función e(){var e,n;this.personalized=!1,this.ybarElem=document.getElementById("ybar"),este .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 NotificationClient.NotificationClient(this.getConfig())}return e.prototype.refreshPanel=function(){var e,n,t ,i=this,o= {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&&(o.lang=r.lang,o.region=r.region),(null===(t=this.partnerClasses)||void 0===t?v oid 0:t .length)&&(o.partner=this.partnerClasses[1]),new Promise((function(e,n){i.client.helpers.refreshPanelNode({matrixParams:o},(function(t ,i){ t&&(logError("Error de actualización de notificación:",t),n(t)),e(i)}))}))},e.prototype.resetBadge=function(){this.client. helpers.resetBadge(),this.setTimeStamp()},e.prototype.getConfig=function(){var e,n,t,i,o,r={promos:{eligibleBodyClass:"display-push-promos", enableNotifOnboard:!0},badge:{selector:"#notif-badge",hideClass:"ybar-notification-hidden"},panel:{emptyPanelMsg:"Você não tem novas notificações.",errorMsg:"Por favor, volte mais tarde .",headerMsg:"Notificações",maxCount:5,parentSelector:"#ybarNotificationBody",notificationTypes:"breakingNews"},service:{url:"/tdv2_fp/api/resource/NotificationHistory.getHistory",isRMP:! 1} },s=document.getElementById("notificación-contenedor"),a=null===(e=null==s?void 0:s.dataset)||void 0===e?void 0: mi. config,c={};if(a){"att"===(null===(n=this.partnerClasses)||void 0===n?void 0:n[1])&&(r .promos.showYahooLogo=!1);pruebe{var l=J SON.parse(a);c=__assign({},l),this.personalized=1===l.personalize}catch(e){logError ("Error de análisis de configuración de notificaciones",e)}s&&delete s.dataset .config}var d=this.mergeConfigs(r,c);return(null===(t=this.partnerClasses)||void 0 ===t?void 0:t.length)&&"yahoo"!= =(null===(i=this.partnerClasses)||void 0===i?void 0:i[1])&&( null===(o=d.promos)||void 0=== o?void 0:o.subscriptionTopic)&&delete d.promos.subscriptionTopic,d},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=janela .localStorage)||void 0===e?void 0:e.getItem(CONSUMPTION_STORAGE_KEY)},e.prototype.setTimeStamp=function() {var e,n=""+Math.floor((datos nova). getTime()/1e3);return null===(e=window.localStorage)||void 0===e||e.setItem (CONSUMPTION_STORAGE_KEY,n),n},e}(),no tifClient=nuevo NotifClient ,getNotifClient=función(){return notifClient},reInit=función(){notifClient=nuevo NotifClient},ybarRapid,ybarRapidInterva l,ybarRapidErrMsg="",beaconQueue=[],noop=function(){}, logRapidError=function(){window.removeEventListener("beforeunload",logRapidError),""!==ybarRapidErrMsg&&logError("Rapid não found na page ",new Error(ybarRapidErrMsg))},findRapidWithSpaceid=function(e){var n= void 0;if(e&&e.length>0)for(var t=0;t
\\norte
\\norte
\\norte
\\norte
\\norte
\\norte
\\norte
\".concat(self.i18n.t('search.voice.title_permission'), \"
\\norte
\").concat(self.i18n.t('search.voice.text_permission'), \"
\\norte
\\norte
\\norte
\\norte
\\norte
\\norte
\\norte
\\norte
\\norte\\n \\n\\norte\\norte\\norte\\norte
\\norte
\\norte
\\norte\\norte\\norte\".concat(self.i18n.t('search.voice.recognition_retry'), \"\\norte
\\norte
\\norte
\\norte
\\norte
\\norte
\\norte\").concat(self.i18n.t('search.voice.trending_title'), \"\\norte\\norte
\\norte
\\norte