PageSourceSearch

https://www.bbva.com/wp-content/themes/coronita-bbvacom/assets/js/footer_news.min.js?ver=15.0.0

js bbva.com collected 2026-09-24 06:58:22 UTC 17,642 bytes, 1 lines download raw bytes

1var SocialShareComponent={};SocialShareComponent.ShareBlock=function(){function e(){}return e.horizontalElementByElementByMaxWidth=function(e,t){var n=function(){$(window).width()<t?($(e).addClass("horizontal"),$(e).removeClass("compressed")):$(e).removeClass("horizontal")};window.addEventListener("resize",function(e){n()}),n()},e.horizontalElementByElementByMinWidth=function(e,t){var n=function(){$(window).width()<t?$(e).removeClass("horizontal"):($(e).addClass("horizontal"),$(e).removeClass("compressed"))};window.addEventListener("resize",function(e){n()}),n()},e.compressedElementByElementByMaxWidth=function(e,t){var n=function(){$(window).width()<t?($(e).addClass("compressed"),$(e).removeClass("horizontal")):$(e).removeClass("compressed")};window.addEventListener("resize",function(e){n()}),n()},e}(),$.extend({replaceTag:function(e,t,n,i){var o=document.createElement(t);$.each(e.attributes,function(){o.setAttribute(this.name,this.value)});var a=$(e).clone().children().remove().end().text();return $(o).text(a),$(e).children().appendTo(o),o}}),$.fn.extend({replaceTag:function(e,t,n){return this.map(function(){return jQuery.replaceTag(this,e,t,n)})}});var TemplateComponent={};TemplateComponent.RenderTool=function(){var e=function(){};return e.render=function(e,t,n){var i=document.createElement(t);return Object.keys(n).forEach(function(e){$(i).attr(e,n[e])}),i.innerHTML=e,i.querySelectorAll("[data-content]").forEach(function(e){var t=$($($(e).data("content"))[0]).clone();$(e).data("tag")&&(t=$(t).replaceTag($(e).data("tag"))),$(e).data("class")&&$(t).addClass($(e).data("class")),$(e).data("href")&&$(t).attr("href",$(e).data("href")),$(e).data("remove-class")&&$(t).removeClass($(e).data("remove-class")),$(e).append(t)}),i},e}();var ContentTypeAudioPlayer={};ContentTypeAudioPlayer.Main=function(){function e(){}return e.PLAYER_AUDIO_TRIGGER_ELEMENT=".audioPlayerContent",e.prototype.createEventListeners=function(){var e=this;$(document).ready(function(t){e.onReady(t)})},e.prototype.onReady=function(t){setTimeout(function(){document.querySelectorAll(e.PLAYER_AUDIO_TRIGGER_ELEMENT).forEach(function(e){(new ContentTypeAudioPlayer.AudioPlayerBlock).setAudio(e).createEventListeners()})},200)},e}(),ContentTypeAudioPlayer.AudioPlayerBlock=function(){function e(){}return e.prototype.setAudio=function(e){return this.AUDIO_PLAYER=e,this.MUSIC=jQuery(this.AUDIO_PLAYER).find("audio")[0],this.PLAY_HEAD=jQuery(this.AUDIO_PLAYER).find(".progressLine input[type=range]"),this.LENGTH=jQuery(this.AUDIO_PLAYER).find(".length"),this.TOTAL_LENGTH=jQuery(this.AUDIO_PLAYER).find(".totalLength"),this.TIMELINE=jQuery(this.AUDIO_PLAYER).find(".progressLine"),this.PLAY=jQuery(this.AUDIO_PLAYER).find(".play"),this.PAUSE=jQuery(this.AUDIO_PLAYER).find(".pause"),this.RUNNING=!0,this},e.prototype.waitAudio=function(){var e=this;isNaN(this.MUSIC.duration)?setTimeout(function(){e.waitAudio()},100):e.calculateDuration()},e.prototype.createEventListeners=function(){var e=this;$(document).ready(function(t){e.onReady()})},e.prototype.calculateDuration=function(){this.DURATION=this.MUSIC.duration,this.setTotalTime(),this.PLAY_HEAD.attr("max",Math.floor(this.DURATION))},e.prototype.onReady=function(){var e=this;this.MUSIC.addEventListener("timeupdate",this.timeUpdate),this.PLAY_HEAD.mousedown(function(e){jQuery(this).addClass("locked")}),this.PLAY_HEAD.mouseup(function(e){this.MUSIC=jQuery(this).closest(".audioPlayerContent").find("audio")[0],this.MUSIC.currentTime=$(this).val(),setTimeout(function(){jQuery(".audioPlayerContent input[type=range]").removeClass("locked")},500)}),this.PLAY.off("click").click(function(t){t.preventDefault(),this.MUSIC=jQuery(this).closest(".audioPlayerContent").find("audio")[0];var n=jQuery(this.MUSIC).data("src");jQuery(this.MUSIC).attr("src")!==n&&void 0!==n&&(e.waitAudio(),jQuery(this.MUSIC).attr("src",n)),this.PLAY=jQuery(this).closest(".audioPlayerContent").find(".play"),this.PAUSE=jQuery(this).closest(".audioPlayerContent").find(".pause"),this.MUSIC.play(),this.PAUSE.addClass("active"),this.PLAY.removeClass("active")}),this.PAUSE.off("click").click(function(e){e.preventDefault(),this.MUSIC=jQuery(this).closest(".audioPlayerContent").find("audio")[0],this.PLAY=jQuery(this).closest(".audioPlayerContent").find(".play"),this.PAUSE=jQuery(this).closest(".audioPlayerContent").find(".pause"),this.MUSIC.pause(),this.PLAY.addClass("active"),this.PAUSE.removeClass("active")})},e.prototype.timeUpdate=function(e){this.MUSIC=jQuery(this).closest(".audioPlayerContent").find("audio")[0],this.LENGTH=jQuery(this).closest(".audioPlayerContent").find(".length"),this.PLAY_HEAD=jQuery(this).closest(".audioPlayerContent").find(".progressLine input[type=range]");var t=Math.floor(this.MUSIC.currentTime);this.PLAY_HEAD.hasClass("locked")||this.PLAY_HEAD.val(t);var n=Math.floor(this.MUSIC.currentTime/60),i=Math.round(this.MUSIC.currentTime%60,2),o=(n=n<10?"0"+n:n)+":"+(i=i<10?"0"+i:i);this.LENGTH.text(o),this.MUSIC.paused&&(this.PLAY=jQuery(this).closest(".audioPlayerContent").find(".play"),this.PAUSE=jQuery(this).closest(".audioPlayerContent").find(".pause"),this.MUSIC.pause(),this.PLAY.addClass("active"),this.PAUSE.removeClass("active"))},e.prototype.setTotalTime=function(e){var t=Math.floor(this.DURATION/60),n=Math.round(this.DURATION%60,2),i=(t=t<10?"0"+t:t)+":"+(n=n<10?"0"+n:n);this.TOTAL_LENGTH.text(i)},e}();var DetailArticleComponent={};DetailArticleComponent.ArticleContent=function(){var e=function(){};return e.getContentElement=function(){return document.querySelector(".detail_article")},e.getReadPercent=function(){return($(window).scrollTop()+$(window).height())/$(e.getContentElement).height()},e}(),DetailArticleComponent.HeaderAnimate=function(e){function t(){return e.call(this)||this}return __extends(t,e),t.EVENT_SOCIAL_HEAD_ACTIVE="ev_headeranimate_2",t.getLightHeaderTemplate=function(){return document.querySelector("#header-light-template").innerHTML},t.prototype.createEventDispatchers=function(){this.eventSocialHeadActive=new CustomEvent(t.EVENT_SOCIAL_HEAD_ACTIVE),e.prototype.createEventDispatchers.call(this)},t.prototype.createEventListeners=function(t){this._headerInitial=$(HeaderComponent.Header.getElement()).clone()[0],e.prototype.createEventListeners.call(this,t)},t.prototype.replaceMainMenu=function(t){$(this._headerInitial).find(".headerNav_menuPrincipal").html(t),e.prototype.replaceMainMenu(t)},t.prototype._fullHeader=function(e,t){$(HeaderComponent.Header.getElement()).empty(),$(HeaderComponent.Header.getElement()).replaceWith($(this._headerInitial).clone()),$(".headerLogo_titular").animate({opacity:1},e),window.coronita.foldAnimate.reloadFold(),this.reloadListenerInstances(),this.fullHeader(e)},t.prototype._lightHeader=function(e){var n=void 0!==e?e:t.TRANSITION_TIME,i=this;$(".header-main").css("position","fixed"),$(".header-main").css("z-index","501");var o=$(".headerTop").outerHeight()+24;$(".headerTop").stop(!0),$(".headerTop").animate({marginTop:"-"+o+"px",opacity:0}
1,n),$(".headerNav_menuPrincipal").stop(!0),$(".headerNav_menuPrincipal").animate({marginTop:"-40px",marginBottom:"9px",opacity:0},n),$(".headerLogo_titular").animate({opacity:0},n),$(".headerNav_buscador").css({opacity:$(window).width()>991?"0":"1"}).animate({opacity:1,marginTop:"0"},{duration:n}),setTimeout(function(){var e=TemplateComponent.RenderTool.render(t.getLightHeaderTemplate(),"div",{class:"detail-article-light"});$(HeaderComponent.Header.getElement()).empty(),$(HeaderComponent.Header.getElement()).append(e),window.coronita.socialShareHead.reloadShareThisWidget(),i.reloadListenerInstances(),i.createEventDispatchers(),document.body.dispatchEvent(i.eventSocialHeadActive),$(HeaderComponent.Header.getElement()).css("position","fixed"),$(HeaderComponent.Header.getElement()).css("z-index","501"),$(i._headerInitial).css("position","fixed"),$(i._headerInitial).css("z-index","501");var o=$(i._headerInitial.querySelector(".headerTop")).outerHeight()+24;$(i._headerInitial.querySelector(".headerTop")).stop(!0),$(i._headerInitial.querySelector(".headerTop")).animate({marginTop:"-"+o+"px",opacity:0},n),$(i._headerInitial.querySelector(".headerNav_menuPrincipal")).stop(!0),$(i._headerInitial.querySelector(".headerNav_menuPrincipal")).animate({marginTop:"-40px",marginBottom:"9px",opacity:0},n)},n)},t.prototype.reloadListenerInstances=function(){void 0!==this._reloadListenerInstances&&this._reloadListenerInstances.forEach(function(e){e.createEventListeners()})},t.prototype.setReloadListenerInstances=function(e){this._reloadListenerInstances=e},t}(HeaderComponent.HeaderAnimate),DetailArticleComponent.ReadStatus=function(){var e=function(){};return e.ELEMENT_CONTAINER_TAG="div",e.ELEMENT_CONTAINER_CLASS="reader-status-container",e.ELEMENT_TAG="div",e.ELEMENT_CLASS="reader-status",e.prototype.elementContainer=null,e.prototype.element=null,e.prototype.createElement=function(){this.element=document.createElement(e.ELEMENT_TAG),this.element.classList.add(e.ELEMENT_CLASS),this.elementContainer=document.createElement(e.ELEMENT_CONTAINER_TAG),this.elementContainer.classList.add(e.ELEMENT_CONTAINER_CLASS),this.elementContainer.appendChild(this.element)},e.prototype.appendReader=function(){this.createElement(),$(HeaderComponent.Header.getElement()).append(this.elementContainer)},e.prototype.removeReader=function(){$(this.elementContainer).remove()},e.prototype.createEventListeners=function(){var e=this;$(document.body).on(DetailArticleComponent.HeaderAnimate.EVENT_SOCIAL_HEAD_ACTIVE,function(){return e.onHeaderStatusUpdated()}),$(window).scroll(function(){return e.onScroll()})},e.prototype.onScroll=function(){DetailArticleComponent.ArticleContent.getContentElement();var e=DetailArticleComponent.ArticleContent.getReadPercent(),t=document.getElementsByClassName("header-container")[0].offsetWidth;t-=30,e>1&&(e=1),$(this.element).css("width",e*t+"px")}
1,e.prototype.onHeaderStatusUpdated=function(){var e=$(document.body).data(HeaderComponent.HeaderAnimate.DATA_STATUS_KEY);parseInt(e)===HeaderComponent.HeaderAnimate.STATUS_LIGHT?this.appendReader():this.removeReader()},e}(),DetailArticleComponent.SocialShareHead=function(){var e=function(){};return e.TRANSITION_TIME=200,e.getShowSocialActionElement=function(){return HeaderComponent.Header.getElement().querySelector(".show-social")},e.getSocialShareContainer=function(){return HeaderComponent.Header.getElement().querySelector(".social-share-container")},e.prototype.reloadShareThisWidget=function(){var e=$(HeaderComponent.Header.getElement()).find(".article-title").html();e=void 0!==e?e.replace('"',"“"):"",e=encodeURI(e);var t=window.location.href,n='<div class="addthis_inline_share_toolbox" data-url="'+t+'" data-title="'+e+'">';n+='<div class="component_share_block">',n+='<ul class="share_toolbox social-share-container" style="margin-top:1em">',n+='<li class="at-resp-share-element"><a href="https://www.facebook.com/sharer/sharer.php?u='+t+'" class="at-share-btn show-social" data-service="facebook" target="shareWindow"><i class="spherica-icon-s spherica-icon-facebook-simple at-icon-wrapper"></i><span>facebook</span></a></li>',n+='<li class="at-resp-share-element"><a href="https://twitter.com/intent/tweet?url='+t+"&text="+e+' via @BBVA" class="at-share-btn show-social" data-service="twitter" target="shareWindow"><i class="spherica-icon-s spherica-icon-twitter-simple at-icon-wrapper"></i><span>twitter</span></a></li>',n+='<li class="at-resp-share-element"><a href="https://www.linkedin.com/shareArticle?mini=true&url='+t+"&title="+e+'" class="at-share-btn show-social" data-service="linkedin" target="shareWindow"><i class="spherica-icon-s spherica-icon-linked-in-simple at-icon-wrapper"></i><span>linkedin</span></a></li>',n+='<li class="at-resp-share-element"><a href="https://api.whatsapp.com/send?text='+e+" "+t+'" class="at-share-btn show-social" data-service="whatsApp" target="shareWindow"><i class="spherica-icon-s spherica-icon-whatsapp at-icon-wrapper"></i><span>whatsapp</span></a></li>',n+="</ul>",n+="</div>",n+="</div>";var i=$(HeaderComponent.Header.getElement()).find(".share-this-widget");i.empty(),i.append(n)},e.getSocialShareActionsContainer=function(){return e.getSocialShareContainer().querySelector(".social-share-actions-container")},e.getHideSocialActionElement=function(){return e.getSocialShareActionsContainer().querySelector(".hide-social")},e.prototype.createEventListeners=function(){var e=this;$(document.body).on(DetailArticleComponent.HeaderAnimate.EVENT_SOCIAL_HEAD_ACTIVE,function(){return e.onHeaderStatusUpdated()})},e.prototype.onHeaderStatusUpdated=function(){var t=this,n=$(document.body).data(HeaderComponent.HeaderAnimate.DATA_STATUS_KEY);parseInt(n)===HeaderComponent.HeaderAnimate.STATUS_LIGHT&&($(e.getShowSocialActionElement()).click(function(e){return t.onShowSocialActionClick(e)}),$(e.getHideSocialActionElement()).click(function(e){return t.onHideSocialActionClick(e)}))},e.prototype.onShowSocialActionClick=function(t){t.preventDefault(),$(e.getSocialShareContainer()).siblings().animate({opacity:.2},e.TRANSITION_TIME),setTimeout(function(){$(e.getSocialShareContainer()).siblings().css({display:"none"}),$(e.getSocialShareContainer()).css({display:"block"})},e.TRANSITION_TIME)},e.prototype.onHideSocialActionClick=function(t){t.preventDefault(),$(e.getSocialShareContainer()).css({display:"none"}),$(e.getSocialShareContainer()).siblings().css({display:"inherit",opacity:.2}),$(e.getSocialShareContainer()).siblings().animate({opacity:1},e.TRANSITION_TIME)},e}(),DetailArticleComponent.SocialShareCompressed=function(){function e(){this.containerElement=null}return e.TRANSITION_TIME=200,e.createEventListeners=function(){},e.prototype.getContainer=function(){return this.containerElement},e.prototype.setContainer=function(e){this.containerElement=e},e.prototype.getShowSocialActionElement=function(){return this.getContainer().querySelector(".show-social")},e.prototype.getSocialShareContainer=function(){return this.getContainer().querySelector(".social-share-container")},e.prototype.getSocialShareActionsContainer=function(){return this.get
1SocialShareContainer().querySelector(".social-share-actions-container")},e.prototype.getHideSocialActionElement=function(){return this.getSocialShareActionsContainer().querySelector(".hide-social")},e.prototype.createEventListeners=function(){},e.prototype.onShowSocialActionClick=function(t){t.preventDefault(),$(e.getSocialShareContainer()).siblings().animate({opacity:.2},e.TRANSITION_TIME),setTimeout(function(){$(e.getSocialShareContainer()).siblings().css({display:"none"}),$(e.getSocialShareContainer()).css({display:"block"})},e.TRANSITION_TIME)},e.prototype.onHideSocialActionClick=function(t){t.preventDefault(),$(e.getSocialShareContainer()).css({display:"none"}),$(e.getSocialShareContainer()).siblings().css({display:"inherit",opacity:.2}),$(e.getSocialShareContainer()).siblings().animate({opacity:1},e.TRANSITION_TIME)},e}(),DetailArticleComponent.GoTop=function(){var e=function(e){if(void 0===e)throw new Error("You need define articleElement argument.");this.articleElement=e,this.completedReadPercent=null,this.completedReadPercentOld=null};return e.prototype.getElement=function(){return document.querySelectorAll(".go-top")},e.SHOW_TOP_READ_PERCENT=.5,e.TRANSITION_TIME=300,e.SCROLL_TRANSITION_TIME=900,e.prototype.createEventListeners=function(){var e=this;$(document).ready(function(){return e.onScroll()}),$(document).scroll(function(){return e.onScroll()}),this.getElement().forEach(function(t){$(t).click(function(t){return e.onClick(t)})})},e.prototype.onClick=function(t){t.preventDefault(),$("html, body").animate({scrollTop:0},e.SCROLL_TRANSITION_TIME)},e.prototype.onScroll=function(){this.completedReadPercent=DetailArticleComponent.ArticleContent.getReadPercent(),this.completedReadPercent>=e.SHOW_TOP_READ_PERCENT&&(this.completedReadPercentOld<e.SHOW_TOP_READ_PERCENT||null===this.completedReadPercentOld)?this.displayElement():this.completedReadPercent<e.SHOW_TOP_READ_PERCENT&&(this.completedReadPercentOld>=e.SHOW_TOP_READ_PERCENT||null===this.completedReadPercentOld)&&this.hideElement(),this.completedReadPercentOld=this.completedReadPercent},e.prototype.displayElement=function(t){var n=void 0!==n?t:e.TRANSITION_TIME;this.getElement().forEach(function(e){$(e).animate({opacity:1},n)})},e.prototype.hideElement=function(t){var n=void 0!==n?t:e.TRANSITION_TIME;this.getElement().forEach(function(e){$(e).animate({opacity:0}
1,n)})},e}();var ContentLoadNextArticle={};ContentLoadNextArticle.Main=function(){function e(){}return e.COMPONENT_OTHER_ARTICLES=".component_other_articles",e.NEXT_ARTICLE=".new-article-hidden",e.EVENT_LOAD_NEXT_NEWS="coronita_load_next_news",e.NEXT_CONCAT_ARTICLE=".container-fluid.next-article",e.prototype.createEventListeners=function(){var e=this;$(document).ready(function(t){e.onReady(t)})},e.prototype.onReady=function(t){setTimeout(function(){$(e.NEXT_ARTICLE).removeClass("new-article-hidden"),this.loadNextEvent=new CustomEvent(e.EVENT_LOAD_NEXT_NEWS),document.body.dispatchEvent(this.loadNextEvent),$(this).closest(e.COMPONENT_OTHER_ARTICLES).remove()},200)},e}();var ContentAuthorVerticalAlign={};ContentAuthorVerticalAlign.Author=function(){function e(){$(e.COMPONENT_DATA_AUTHOR).each(function(t){t=$(this);""===$.trim(t.next().html())&&(t.children(e.CHILDREN_SPAN).length<1&&t.find(e.SPAN_NAME).css("line-height",e.WINDOW_WIDTH),t.next().hide())})}return e.COMPONENT_DATA_AUTHOR=".dataAuthor",e.CHILDREN_SPAN="span",e.SPAN_NAME=".name",e.WINDOW_WIDTH=window.innerWidth>500?"40px":"32px",e}(),void 0!==ContentAuthorVerticalAlign&&ContentAuthorVerticalAlign.Author();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.