"use strict";var __extends=this&&this.__extends||function(){var o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])});return function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),initTextfields=(this.fitie=function(l){function c(){h.call(l,m+v,c);var e,t,n={boxSizing:"content-box",display:"inline-block",overflow:"hidden"},o=("backgroundColor backgroundImage borderColor borderStyle borderWidth bottom fontSize lineHeight height left opacity margin position right top visibility width".replace(/\w+/g,function(e){n[e]=f[e]}),d.border=d.margin=d.padding=0,d.display="block",d.height=d.width="auto",d.opacity=1,l.videoWidth||l.width),a=l.videoHeight||l.height,i=o/a,r=document.createElement("object-fit");for(e in r.appendChild(l.parentNode.replaceChild(r,l)),n)r.runtimeStyle[e]=n[e];"fill"===y?g?(d.width=s,d.height=u):(d["-ms-transform-origin"]="0% 0%",d["-ms-transform"]="scale("+s/o+","+u/a+")"):(i=this.pageYTransition&&(this.oldPageYOffset"),o=$("#magic-line"),($(".header-main ul.lista_menuPrincipal li.current_page_item").length?o.width($(".header-main ul.lista_menuPrincipal li.current_page_item").width()).css("left",$(".header-main ul.lista_menuPrincipal li.current_page_item a").position().left):o.width("0").css("left",$(".header-main ul.lista_menuPrincipal li a").first().position().left)).data("origLeft",o.position().left).data("origWidth",o.width()),$(".header-main ul.lista_menuPrincipal li a").off().hover(function(){t=$(this),e=t.position().left,t=t.parent().width(),o.stop().animate({left:e,width:t})},function(){o.stop().animate({left:o.data("origLeft"),width:o.data("origWidth")})}))},n.prototype.updateStatus=function(e){$(document.body).data(n.DATA_STATUS_KEY,e),this.headerStatusEvent&&document.body.dispatchEvent(this.headerStatusEvent),e===n.HEADER_STATUS_OPACITY?$("body > #webpage > main").addClass("contentUnderFixedHeader"):$("body > #webpage > main").removeClass("contentUnderFixedHeader")},n.prototype.fullHeader=function(e){e=void 0!==e?e:n.TRANSITION_TIME;$(".header-main").css("position",""),$(".header-main").css("z-index",""),$(".headerTop").stop(!0),$(".headerTop").animate({marginTop:"0px",opacity:1},e),$(".headerNav_menuPrincipal").stop(!0),$(".headerNav_menuPrincipal").animate({marginTop:"0px",marginBottom:"19px",opacity:1},e),$(".show .headerNav_menuSecundario").fadeIn(),991<$(window).width()&&$(".headerNav_buscador").css({opacity:1}).stop(!0).animate({opacity:0},e)},n.prototype.lightHeader=function(e){var e=void 0!==e?e:n.TRANSITION_TIME,t=$(".headerTop").outerHeight()+24;$(".headerTop").stop(!0),$(".headerTop").animate({marginTop:"-"+t+"px",opacity:0},e),$(".headerNav_menuPrincipal").stop(!0),$(".headerNav_menuPrincipal").animate({marginTop:"-40px",marginBottom:"9px",opacity:0},e),$(".show .headerNav_menuSecundario").fadeOut(),$(".headerNav_buscador").css({opacity:991<$(window).width()?"0":"1"}).stop(!0).animate({opacity:1},e)},n.containerElement=function(){return document.querySelector("header.header-main")},n.headerHeight=function(){return $(n.containerElement()).height()},n.prototype.getStatus=function(e){return 0<=e.offsetHeader?n.HEADER_STATUS_INHERIT:0<=e.offsetWindow?n.HEADER_STATUS_OPACITY:n.HEADER_STATUS_COMPRESSED},n}(),HeaderComponent.FoldAnimate=function(){function a(){}return a.prototype.createEventListeners=function(){this.onInit()},a.prototype.onInit=function(){var t=this;$("#navegadorMovile-main .mostrarPanelInfo").click(function(e){return e.preventDefault(),t.onClickFold(e,this)}),$("ul.lista_menuTop li.mostrarPanelInfo").click(function(e){return e.preventDefault(),t.onClickFold(e,this)}),$("ul.lista_menuTop li.mostrarPanelInfo").hover(function(e){if(!$(this).find("a").hasClass("active"))return t.onClickFold(e,this)}),$(".close_panelInfo").click(function(e){return t.onPanelInfoClose(e,this)}),$(".panelInfo-main").click(function(e){return t.onPanelInfoClose(e,this)})},a.prototype.reloadFold=function(){var t=this;$("#navegadorMovile-main .mostrarPanelInfo").off("click").click(function(e){return e.preventDefault(),t.onClickFold(e,this)}),$("ul.lista_menuTop li.mostrarPanelInfo").off("click").click(function(e){return e.preventDefault(),t.onClickFold(e,this)}),$("ul.lista_menuTop li.mostrarPanelInfo").off("hover").hover(function(e){if(!$(this).find("a").hasClass("active"))return t.onClickFold(e,this)}),$(".close_panelInfo").off("click").click(function(e){return t.onPanelInfoClose(e,this)}),$(".panelInfo-main").off("click").click(function(e){return t.onPanelInfoClose(e,this)})},a.prototype.onClickFold=function(e,t){var n=this,o=$(t).find("i"),o=($(o).toggleClass("icon-nav_fold icon-nav_unfold"),$("ul.lista_menuTop li i.icon-nav_fold").click(function(){n.onPanelInfoClose()}),"undefined"!=typeof cb_options?cb_options.close_wait_seconds:5);0<(o=o||5)&&(clearTimeout(this.close_timer),this.close_timer=setTimeout(function(){n.onPanelInfoClose()},1e3*o)),$(t).is(".mostrarPanelInfo")&&"none"===$("#panelInfoContent").css("display")?($(t).find("a").addClass("active"),a.panelInfoOpen()):(a.panelInfoClose(),$("ul.lista_menuTop li a").removeClass("active"))},a.prototype.onPanelInfoClose=function(e,t){$("ul.lista_menuTop li a").removeClass("active"),a.panelInfoClose(),$("ul.lista_menuTop i").removeClass("icon-nav_fold").addClass("icon-nav_unfold")},a.panelInfoOpen=function(){$("#panelInfoContent").find(".panelInfo-content.container").css({position:"relative",top:"-20px"}).stop(!0).animate({top:"0"},{duration:500}),$("#panelInfoContent").css({display:"block",opacity:"0"}).stop(!0).animate({opacity:"1"},{duration:500,complete:function(){}})},a.panelInfoClose=function(){$("#panelInfoContent").find(".panelInfo-content.container").stop(!0).animate({top:"-20px"},{duration:500}),$("#panelInfoContent").stop(!0).animate({opacity:"0"},{duration:500,complete:function(){$("#panelInfoContent").css({display:"none"})}})},a}(),HeaderComponent.MenuAnimate=function(){function e(){this.duration=400}return e.prototype.createEventListeners=function(){var t=this;$(document).ready(function(){t.onInit()}),$("#mostrarPanelNavegacion").click(function(){return t.openMenu()}),$("#ocultarPanelNavegacion1").click(function(){return t.closeMenu()}),$("#ocultarPanelNavegacionPpal").click(function(){return t.closeMenu()}),$(".lista_menuNavLateral .open-sub-panel").click(function(e){return e.preventDefault(),t.openSubMenu(this)}),$(".lista_menuNavPpal .menu-item-has-children i").off().click(function(e){return e.preventDefault(),t.toogleSubMenu(this)})},e.prototype.reloadMenu=function(){var t=this;$("#mostrarPanelNavegacion").off().click(function(){return t.openMenu()}),$("#ocultarPanelNavegacion1").off().click(function(){return t.closeMenu()}),$("#ocultarPanelNavegacionPpal").off().click(function(){return t.closeMenu()}),$(".lista_menuNavLateral .open-sub-panel").off().click(function(e){return e.preventDefault(),t.openSubMenu(this)}),$(".lista_menuNavPpal .menu-item-has-children i").off().click(function(e){return e.preventDefault(),t.toogleSubMenu(this)})},e.prototype.onInit=function(){},e.prototype.openMenu=function(){var n=this,e=(setTimeout(function(){$("header.header-main").css({display:"none"}),$("#webpage > main").css({display:"none"}),$("footer.footer-main").css({display:"none"});var e=($(window).height()>$("#panelNavegacionContent #panelNavPpal").height()?$(window):$("#panelNavegacionContent #panelNavPpal")).height();$("#panelNavegacionContent").css({height:e})},this.duration),$("#panelNavegacionContent .panelNavDespegable_n2").css({display:"none"}),768<=$(window).width()?6:8),t=$(".header-main .header-container").width(),o=($(window).width()-t)/2,e=o+t*(e/12),a=$(window).scrollTop(),a=($("#panelNavegacionContent").css({top:a,display:"block",opacity:0}).stop(!0).animate({opacity:1},this.duration),$("#panelNavegacionContent .panelNavLogo_titular").css({marginLeft:"250px"}).stop(!0).animate({marginLeft:"0"},{duration:this.duration,start:function(){return $(".headerLogo_titular").css({opacity:"0"})}}),768<=$(window).width()?3:4),i=($("#panelNavegacionContent #panelNavDesplegable").width(e).css({right:-e}).stop(!0).animate({right:o-e+t*(a/12)},this.duration),$("#panelNavegacionContent #contenedorListadoNavegacion").css({marginTop:"0",opacity:"1"}),document.querySelectorAll("#panelNavPpal .lista_menuNavPpal li"));$(i).find("a").css({opacity:0,bottom:"-10px"}),i.forEach(function(e,t){setTimeout(function(e){i.length;n.sideAnimateMenuItemByMenuItem(e,n.duration/i.length)},n.duration/i.length*(i.length-t-1),e)})},e.prototype.closeMenu=function(){var e=this;$("header.header-main").css({display:""}),$("#webpage > main").css({display:""}),$("footer.footer-main").css({display:""}),$("#panelNavegacionContent").css({height:""}),$(document.body).css("overflow","inherit"),$("#panelNavegacionContent #panelNavDesplegable").find("a").removeClass("active"),$("#panelNavegacionContent").stop(!0).animate({opacity:0},{duration:this.duration,complete:function(){$("#panelNavegacionContent").css({display:"none"})}}),$("#panelNavegacionContent .panelNavLogo_titular").stop(!0).animate({marginLeft:"255px"},{duration:this.duration,complete:function(){return $(".headerLogo_titular").stop(!0).animate({opacity:"1"},.6*e.duration)}}),$("#panelNavegacionContent #panelNavDesplegable").stop(!0).animate({right:"-50%"},this.duration),$("#panelNavegacionContent #contenedorListadoNavegacion").stop(!0).animate({opacity:0,marginTop:.25*$(window).height()+"px"},this.duration),$(".deshabilitar_panelNavPpal").css({display:"none"}).off()},e.prototype.toogleSubMenu=function(e){e=$(e).parent().parent();e.hasClass("open")?e.removeClass("open"):e.addClass("open")},e.prototype.openSubMenu=function(e){var t=768<=$(window).width()?6:8,n=$(".header-main .header-container").width(),o=($(window).width()-n)/2,a=o+n*(t/12),t=void 0!==e.href?/_([0-9]+)$/.exec(e.href)[1]:0,i=this,e=($(".deshabilitar_panelNavPpal").css({display:"block"}).click(function(){$("#panelNavegacionContent #panelNavDesplegable").find("a").removeClass("active"),$(this).css({display:"none"}),$("#panelNavegacionContent .panelNavDespegable_n2").css({display:"none"});var e=768<=$(window).width()?3:4;$("#panelNavegacionContent #panelNavDesplegable").stop(!0).animate({right:o-a+n*(e/12)},i.duration),$(".deshabilitar_panelNavPpal").off()}),$(e).parent().parent().find("a").removeClass("active"),$(e).addClass("active"),768<=$(window).width()?6:8);$("#panelNavegacionContent #panelNavDesplegable").stop(!0).animate({right:o-a+n*(e/12)},this.duration),$("#panelNavegacionContent .panelNavDespegable_n2").css({display:"none"}),$("#panelNavegacionContent .panelNavDespegable_n2#panelNav_n2_"+t).css({display:""})},e.prototype.opacityAllMenuItems=function(e){},e.prototype.sideAnimateMenuItemByMenuItem=function(e,t){t=void 0!==t?t:100;$(e).find("a").stop(!0).animate({opacity:1,bottom:0},t)},e}(),HeaderComponent.SearchAnimate=function(){function n(){}return n.DEFAULT_TRANSITION_TIME=400,n.getContentElement=function(){return document.querySelector("#panelBuscadorContent")},n.getHelpMessageElement=function(){return n.getContentElement().querySelector(".form_buscador_label")},n.getSearchInputElement=function(){return n.getContentElement().querySelector(".form_buscador_input")},n.getResultsElement=function(){return n.getContentElement().querySelector(".form_buscador_rtdos")},n.getGoSearchActionElement=function(){return n.getContentElement().querySelector(".form_buscador_enter")},n.prototype.createEventListeners=function(){var t=this;$("#buscadorLupa, #buscadorLupa_xs").click(function(){return t.openSearch()}),$("#ocultarPanelBuscador").click(function(){return t.closeSearch()}),$(n.getSearchInputElement()).click(function(e){t.onSearchInputElementClick(e)}),$(n.getSearchInputElement()).keyup(function(e){t.onSearchInputElementKeyPress(e)}),$(n.getSearchInputElement()).blur(function(e){t.onSearchInputElementBlur(e)})},n.prototype.onSearchInputElementClick=function(e){$(n.getHelpMessageElement()).animate({opacity:0},{duration:.5*n.DEFAULT_DURATION_TIME,complete:function(){$(n.getHelpMessageElement()).css({display:"none"})}})},n.prototype.onSearchInputElementKeyPress=function(e){n.getSearchInputElement().value.length?($(n.getGoSearchActionElement()).css({display:"block"}),$(n.getResultsElement()).css({display:"block"})):($(n.getGoSearchActionElement()).css({display:"none"}),$(n.getResultsElement()).css({display:"none"}))},n.prototype.onSearchInputElementBlur=function(e){n.getSearchInputElement().value.length?($(n.getGoSearchActionElement()).css({display:"block"}),$(n.getResultsElement()).css({display:"block"})):($(n.getHelpMessageElement()).css({display:"block"}).animate({opacity:1},.5*n.DEFAULT_DURATION_TIME),$(n.getGoSearchActionElement()).css({display:"none"}),$(n.getResultsElement()).css({display:"none"}))},n.prototype.openSearch=function(){var e=$(window).scrollTop();$(document.body).css("overflow","hidden"),$(n.getContentElement()).css({top:e,display:"block",opacity:"0"}).animate({opacity:"1"},n.DEFAULT_TRANSITION_TIME)},n.prototype.closeSearch=function(){$(document.body).css("overflow","inherit"),$(n.getContentElement()).animate({opacity:"0"},{duration:n.DEFAULT_TRANSITION_TIME,complete:function(){return $(n.getContentElement()).css({display:"none"})}}),n.getSearchInputElement().value="",this.onSearchInputElementBlur()},n}(),{});HomeRow.AnchorControl=function(){function n(){}return n.REF_ELEMENT_HEADER=".header-main",n.REF_ELEMENT_ROW=".container .row",n.prototype.calculateScrollMarginTop=function(){var e=jQuery(n.REF_ELEMENT_HEADER),t=e.outerHeight();"fixed"!=e.css("position")&&(t+=100),document.querySelectorAll(n.REF_ELEMENT_ROW).forEach(function(e){$(e).css("scroll-margin-top",t+"px")})},n.prototype.initialAnchor=function(){var t=location.hash;0{var e=(e=jQuery(t).css("scroll-margin-top")).replace("px","");jQuery("html, body").scrollTop(jQuery(t).offset().top-parseInt(e))},350)},n.prototype.createEventListeners=function(){var t=this;$(function(e){t.onReady(e)})},n.prototype.onReady=function(e){var t=this;t.calculateScrollMarginTop(),t.initialAnchor(),window.addEventListener("resize",function(e){t.calculateScrollMarginTop()})},n}();