var SocialShareComponent={},TemplateComponent=(SocialShareComponent.ShareBlock=function(){function e(){}return e.horizontalElementByElementByMaxWidth=function(e,t){function n(){$(window).width()'),jQuery(this).parent().remove()})},e}(),{}),ContentLoadNextArticle=(DetailArticleComponent.ArticleContent=function(){function e(){}return e.getContentElement=function(){return document.querySelector(".detail_article")},e.getReadPercent=function(){return($(window).scrollTop()+$(window).height())/$(e.getContentElement).height()},e}(),DetailArticleComponent.HeaderAnimate=function(t){function i(){return t.call(this)||this}return __extends(i,t),i.EVENT_SOCIAL_HEAD_ACTIVE="ev_headeranimate_2",i.getLightHeaderTemplate=function(){return document.querySelector("#header-light-template").innerHTML},i.prototype.createEventDispatchers=function(){this.eventSocialHeadActive=new CustomEvent(i.EVENT_SOCIAL_HEAD_ACTIVE),t.prototype.createEventDispatchers.call(this)},i.prototype.createEventListeners=function(e){this._headerInitial=$(HeaderComponent.Header.getElement()).clone()[0],t.prototype.createEventListeners.call(this,e)},i.prototype.replaceMainMenu=function(e){$(this._headerInitial).find(".headerNav_menuPrincipal").html(e),t.prototype.replaceMainMenu(e)},i.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)},i.prototype._lightHeader=function(e){var t=void 0!==e?e:i.TRANSITION_TIME,n=this,e=($(".header-main").css("position","fixed"),$(".header-main").css("z-index","501"),$(".headerTop").outerHeight()+24);$(".headerTop").stop(!0),$(".headerTop").animate({marginTop:"-"+e+"px",opacity:0},t),$(".headerNav_menuPrincipal").stop(!0),$(".headerNav_menuPrincipal").animate({marginTop:"-40px",marginBottom:"9px",opacity:0},t),$(".headerLogo_titular").animate({opacity:0},t),$(".headerNav_buscador").css({opacity:991<$(window).width()?"0":"1"}).animate({opacity:1,marginTop:"0"},{duration:t}),setTimeout(function(){var e=TemplateComponent.RenderTool.render(i.getLightHeaderTemplate(),"div",{class:"detail-article-light"}),e=($(HeaderComponent.Header.getElement()).empty(),$(HeaderComponent.Header.getElement()).append(e),window.coronita.socialShareHead.reloadShareThisWidget(),n.reloadListenerInstances(),n.createEventDispatchers(),document.body.dispatchEvent(n.eventSocialHeadActive),$(HeaderComponent.Header.getElement()).css("position","fixed"),$(HeaderComponent.Header.getElement()).css("z-index","501"),$(n._headerInitial).css("position","fixed"),$(n._headerInitial).css("z-index","501"),$(n._headerInitial.querySelector(".headerTop")).outerHeight()+24);$(n._headerInitial.querySelector(".headerTop")).stop(!0),$(n._headerInitial.querySelector(".headerTop")).animate({marginTop:"-"+e+"px",opacity:0},t),$(n._headerInitial.querySelector(".headerNav_menuPrincipal")).stop(!0),$(n._headerInitial.querySelector(".headerNav_menuPrincipal")).animate({marginTop:"-40px",marginBottom:"9px",opacity:0},t)},t)},i.prototype.reloadListenerInstances=function(){void 0!==this._reloadListenerInstances&&this._reloadListenerInstances.forEach(function(e){e.createEventListeners()})},i.prototype.setReloadListenerInstances=function(e){this._reloadListenerInstances=e},i}(HeaderComponent.HeaderAnimate),DetailArticleComponent.ReadStatus=function(){function e(){}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,1',e=(n=(n=(n=(n=(n+='
')+'")+"
"+"",$(HeaderComponent.Header.getElement()).find(".share-this-widget"));e.empty(),e.append(n)},n.getSocialShareActionsContainer=function(){return n.getSocialShareContainer().querySelector(".social-share-actions-container")},n.getHideSocialActionElement=function(){return n.getSocialShareActionsContainer().querySelector(".hide-social")},n.prototype.createEventListeners=function(){var e=this;$(document.body).on(DetailArticleComponent.HeaderAnimate.EVENT_SOCIAL_HEAD_ACTIVE,function(){return e.onHeaderStatusUpdated()})},n.prototype.onHeaderStatusUpdated=function(){var t=this,e=$(document.body).data(HeaderComponent.HeaderAnimate.DATA_STATUS_KEY);parseInt(e)===HeaderComponent.HeaderAnimate.STATUS_LIGHT&&($(n.getShowSocialActionElement()).click(function(e){return t.onShowSocialActionClick(e)}),$(n.getHideSocialActionElement()).click(function(e){return t.onHideSocialActionClick(e)}))},n.prototype.onShowSocialActionClick=function(e){e.preventDefault(),$(n.getSocialShareContainer()).siblings().animate({opacity:.2},n.TRANSITION_TIME),setTimeout(function(){$(n.getSocialShareContainer()).siblings().css({display:"none"}),$(n.getSocialShareContainer()).css({display:"block"})},n.TRANSITION_TIME)},n.prototype.onHideSocialActionClick=function(e){e.preventDefault(),$(n.getSocialShareContainer()).css({display:"none"}),$(n.getSocialShareContainer()).siblings().css({display:"inherit",opacity:.2}),$(n.getSocialShareContainer()).siblings().animate({opacity:1},n.TRANSITION_TIME)},n}(),DetailArticleComponent.SocialShareCompressed=function(){function t(){this.containerElement=null}return t.TRANSITION_TIME=200,t.createEventListeners=function(){},t.prototype.getContainer=function(){return this.containerElement},t.prototype.setContainer=function(e){this.containerElement=e},t.prototype.getShowSocialActionElement=function(){return this.getContainer().querySelector(".show-social")},t.prototype.getSocialShareContainer=function(){return this.getContainer().querySelector(".social-share-container")},t.prototype.getSocialShareActionsContainer=function(){return this.getSocialShareContainer().querySelector(".social-share-actions-container")},t.prototype.getHideSocialActionElement=function(){return this.getSocialShareActionsContainer().querySelector(".hide-social")},t.prototype.createEventListeners=function(){},t.prototype.onShowSocialActionClick=function(e){e.preventDefault(),$(t.getSocialShareContainer()).siblings().animate({opacity:.2},t.TRANSITION_TIME),setTimeout(function(){$(t.getSocialShareContainer()).siblings().css({display:"none"}),$(t.getSocialShareContainer()).css({display:"block"})},t.TRANSITION_TIME)},t.prototype.onHideSocialActionClick=function(e){e.preventDefault(),$(t.getSocialShareContainer()).css({display:"none"}),$(t.getSocialShareContainer()).siblings().css({display:"inherit",opacity:.2}),$(t.getSocialShareContainer()).siblings().animate({opacity:1},t.TRANSITION_TIME)},t}(),DetailArticleComponent.GoTop=function(){function n(e){if(void 0===e)throw new Error("You need define articleElement argument.");this.articleElement=e,this.completedReadPercent=null,this.completedReadPercentOld=null}return n.prototype.getElement=function(){return document.querySelectorAll(".go-top")},n.SHOW_TOP_READ_PERCENT=.5,n.TRANSITION_TIME=300,n.SCROLL_TRANSITION_TIME=900,n.prototype.createEventListeners=function(){var t=this;$(document).ready(function(){return t.onScroll()}),$(document).scroll(function(){return t.onScroll()}),this.getElement().forEach(function(e){$(e).click(function(e){return t.onClick(e)})})},n.prototype.onClick=function(e){e.preventDefault(),$("html, body").animate({scrollTop:0},n.SCROLL_TRANSITION_TIME)},n.prototype.onScroll=function(){this.completedReadPercent=DetailArticleComponent.ArticleContent.getReadPercent(),this.completedReadPercent>=n.SHOW_TOP_READ_PERCENT&&(this.completedReadPercentOld=n.SHOW_TOP_READ_PERCENT||null===this.completedReadPercentOld)&&this.hideElement(),this.completedReadPercentOld=this.completedReadPercent},n.prototype.displayElement=function(e){var t=n.TRANSITION_TIME;this.getElement().forEach(function(e){$(e).animate({opacity:1},t)})},n.prototype.hideElement=function(e){var t=n.TRANSITION_TIME;this.getElement().forEach(function(e){$(e).animate({opacity:0},t)})},n}(),{}),ContentAuthorVerticalAlign=(ContentLoadNextArticle.Main=function(){function t(){}return t.COMPONENT_OTHER_ARTICLES=".component_other_articles",t.NEXT_ARTICLE=".new-article-hidden",t.EVENT_LOAD_NEXT_NEWS="coronita_load_next_news",t.NEXT_CONCAT_ARTICLE=".container-fluid.next-article",t.prototype.createEventListeners=function(){var t=this;$(document).ready(function(e){t.onReady(e)})},t.prototype.onReady=function(e){setTimeout(function(){$(t.NEXT_ARTICLE).removeClass("new-article-hidden"),this.loadNextEvent=new CustomEvent(t.EVENT_LOAD_NEXT_NEWS),document.body.dispatchEvent(this.loadNextEvent),$(this).closest(t.COMPONENT_OTHER_ARTICLES).remove()},200)},t}(),{});ContentAuthorVerticalAlign.Author=function(){function t(){$(t.COMPONENT_DATA_AUTHOR).each(function(e){e=$(this);""===$.trim(e.next().html())&&(e.children(t.CHILDREN_SPAN).length<1&&e.find(t.SPAN_NAME).css("line-height",t.WINDOW_WIDTH),e.next().hide())})}return t.COMPONENT_DATA_AUTHOR=".dataAuthor",t.CHILDREN_SPAN="span",t.SPAN_NAME=".name",t.WINDOW_WIDTH=500