var RegistrationComponent = class RegistrationComponent { constructor(instanceId, windowRegistrationId, isFullSize, variableName, callbackRegistrationOk, styleIframe) { this.instanceId = instanceId; this.windowRegistrationId = windowRegistrationId; this.isFullSize = isFullSize; this.variableName = variableName; this.callbackRegistrationOk = callbackRegistrationOk; this.styleIframe = styleIframe; } //crear diversas funciones dependiendo de la resolución, o pasarlo por parámetros las distintas resoluciones generateIframe() { let idIframe = "iframeRegister-"+this.instanceId; let styleCode = 'min-height:550px;'; if(this.styleIframe != null && this.styleIframe != undefined) { styleCode += ' ' + this.styleIframe; } let code = '
' + '' + '
'; return code; } hideRegistrationIframe() { $("#registerContainer").hide(); } showPopup(elemento) { $(".modal").hide(); $(elemento).show(); $('.modal-background').fadeIn(300); } hidePopup(elemento) { $('.modal-background-general').fadeOut(300); } hideHeaderFooter() { $('#modalLoginPopupIframe').find('#header-desktop').css("display: none"); $('#modalLoginPopupIframe').find('#footer-default footer-mobile').css("display: none"); } generateModal() { if(idBuyerLoged == undefined || idBuyerLoged == null || idBuyerLoged == '') { let iframeCode = this.generateIframe(); let code = '