function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function isDebugEnabled(){return"true"===localStorage.getItem("openweb-webcomponents:debug")}((n,r)=>{var p,u,e;n.BbvaComponent||(e=!1,n.BBVAData=function(){this.data={}},n.BBVAData.prototype.append=function(t,e){this.data[t]=e},n.BBVAData.prototype.set=n.BBVAData.prototype.append,n.BBVAData.prototype.delete=function(t){delete this.data[t]},n.BBVAData.prototype.get=function(t){return this.data[t]},n.BBVAData.prototype.getFormData=function(){var t,e=new FormData;for(t in this.data)e.append(t,this.data[t]);return e},n.BbvaComponent=function(){(u=this).statSent=!1,u.armadilloPath="/auth/",-1!==n.location.host.indexOf("localhost")||-1!==n.location.host.indexOf("127.0.0.1")?(u.domain="http://localhost:9090",u.api="".concat(u.domain,"/bbva-components/"),u.armadillo="https://ec2-52-214-22-49.eu-west-1.compute.amazonaws.com".concat(u.armadilloPath),u.libs="/lib/",u.components="/src/components/"):(u.domain="",u.api="".concat(u.domain,"/bbva-components/"),u.armadillo=u.domain+u.armadilloPath,u.libs="https://d3l7jhiu2gy1zw.cloudfront.net/lib/",u.components="https://d3l7jhiu2gy1zw.cloudfront.net/components/"),u.queryParams=!1,u.isLogged=n.BbvaComponent.isLogged,u.getUserLogged=n.BbvaComponent.getUserLogged,u.debug=function(){var t;isDebugEnabled()&&(t=console).log.apply(t,["%c[OPENWEB]","background: #072146; color: #FFFFFF"].concat(Array.prototype.slice.call(arguments)))},u.error=function(){var t;(t=console).error.apply(t,["%c[OPENWEB] 🔥","background: #072146; color: #FFFFFF"].concat(Array.prototype.slice.call(arguments)))},u.init=function(t){n.jQuery===r&&(u.debug("Loading jQuery 1.9.1 ..."),u.loadJs("".concat(u.libs,"jQuery/1.9.1.js"),function(){})),(p=n.jQuery)(document).ready(function(){var o=u.getProject();o?(p("[data-component-bbva]").not("[comp-loaded]").each(function(t,e){(e=p(e)).data("comp-loaded",!0);var a=e.data("component-bbva");u.loadComponent(a,function(){var t=new BbvaComponent[a];t.rootElement=e,t.config={},t.config.thread=u.getThread(e),t.config.project=o,t.init()})}),u.sendStat()):u.error("Falta el parámetro project iniciar BBVA Components")})},u.loadComponent=function(t,e){u.loadJs("".concat(u.components+t,"/js/index.js"),function(){u.debug("Cargado el componente ".concat(t)),e&&"function"==typeof e&&e()})},u.loadJs=function(t,e){var a=document.createElement("script");if("string"==typeof t&&(t={uri:t}),a.setAttribute("type","text/javascript"),a.setAttribute("src",t.uri),t.params)for(var o in t.params)a.setAttribute(o,t.params[o]);e&&(a.readyState?a.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||e()}:a.onload=e),(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(a)},u.loadCss=function(t){p("",{rel:"stylesheet",type:"text/css",href:t}).appendTo("head")},u.setCookie=function(t,e,a){var o=t.trim(),n=new Date;if(e="object"===_typeof(e)?JSON.stringify(e):"".concat(e).trim(),o="".concat(o,"=").concat(e,";"),a)for(var r in a){e=a[r];"expires"===r?(n.setTime(n.getTime()+24*e*60*60*1e3),o="".concat(o,"expires=").concat(n.toUTCString(),";")):o+="".concat(r,"=").concat(e,";")}else n.setTime(n.getTime()+2592e6),o="".concat(o,"expires=").concat(n.toUTCString());document.cookie=o},u.getCookie=function(t){for(var e=document.cookie.split(";"),a=0;a".concat(t.captchaText,"")),e=e+'')+""},u.renderRecaptcha=function(e){u.addRecaptchaLib(function(t){!t||t instanceof Event||u.error("Error loading reCaptcha lib",t),"function"==typeof e&&e(t)})},u.addRecaptchaLib=function(t){e?"function"==typeof t&&t():(e=!0,u.loadJs({uri:"https://www.google.com/recaptcha/api.js",params:{async:"",defer:""}},t))},u.getFormData=function(t,e){var a=u.serializeForm(t.serializeArray());return e&&p.extend(a,e),u.serializeAttachments(t,a)},u.serializeForm=function(t){var e={};return p.each(t,function(){e[this.name]!==r?(e[this.name].push||(e[this.name]=[e[this.name]]),e[this.name].push(this.value||"")):e[this.name]=this.value||""}),e},u.serializeAttachments=function(t,e){var o,n,a,r=new BBVAData,i=!1,t=t.find('input[type="file"]'),c=0;if(p(t).each(function(t,e){if(!(c<0)){var a=p(e);try{n=a[0].files,i=i||0/g)||[]).join("");return t.replace(/|<\?(?:php)?[\s\S]*?\?>/gi,"").replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,function(t,e){return-1"))?t:""})},u.removeTags=function(t){return null!==t&&""!==t&&(t=t.toString()).replace(/(<([^>]+)>?)/gi,"")},u.escapeHTML=function(t){if(t)return t.replace(/[&<>"'\/]/g,function(t){switch(t){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case"\\":return"'";case"/":return"/";case"'":return"'";default:return t}})},u.isValidUrl=function(t){var e=new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,})(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i");if(e.test(t)&&t.match(e)[2]==n.location.hostname)return!0;return!1},u.getRedirUrl=function(t){var e=u.isValidUrl(atob(t)),a=btoa("".concat(n.location.protocol,"//").concat(n.location.hostname,"/private/"));return e?t:a},u.apiCall=function(t,e,a,o,n){u.setPreApi();var r="",r="object"===_typeof(t)&&t.url?"".concat(t.url,"?"):("/"===t.substr(0,1)&&(t=t.substr(1)),"".concat(u.api+t,"?"));if(e)for(var i in e)r+="&".concat(i,"=").concat(e[i]);t={method:a||"GET",type:a||"GET",url:r};if("GET"!==a&&o){a=!1;if(o instanceof File){var c=o;(o=new FormData).append("file",c),a=!0}else if("object"!==_typeof(o)||o instanceof BBVAData)o instanceof BBVAData&&(o=o.getFormData());else try{o=JSON.stringify(o)}catch(t){}t.data=o,a||"function"==typeof o.append?(t.cache=!1,t.contentType=!1,t.processData=!1):(t.dataType="json",t.contentType="application/json")}p.ajax(t).done(function(t,e,a){u.setUserInfo(a),n&&n(null,t)}).fail(function(t){n&&n(t)})},u.setUserInfo=function(t){try{n.BbvaDevice||(n.BbvaDevice=t.getResponseHeader("device")),n.BbvaCountry||(n.BbvaCountry=t.getResponseHeader("country"))}catch(t){u.error("Error recuperando paÃs y dispositivo",t)}},u.hide=function(){this.rootElement.hide()},u.getProject=function(){var t=p("[data-bbva-project]").data("bbva-project");return!!t&&t.trim()},u.show=function(t){this.rootElement.slideDown(t)},u.sendStat=function(){var t,e;u.statSent||(u.statSent=!0,t=navigator.platform,e=n.location.hostname,u.apiCall("stats/visits",{project:u.getProject(),url:e,platform:t},"GET",!1,function(t,e){t?u.error("sendStat: Error registering visit.",t):e&&u.autoComponents(e)}))},u.autoComponents=function(t){if(t)try{var e;if("string"==typeof t)try{e=JSON.parse(t).data}catch(t){return void u.error("autoComponents: Error parsing configuration",t)}else e=t.data;e&&e.analytics&&u.addAnalytics(e.analytics)}catch(t){u.error("autoComponents: Error starting",t)}},u.addAnalytics=function(t){p("head").append('\x3c!-- Global site tag (gtag.js) - Google Analytics --\x3e