Inicio
Ofertas
Acerca de nosotros
Especiales
Noticias
Contacto
Tienda
Test
NEW
Test
<head><meta /><meta name="widget-id" /><meta name="ck-version" content="5" /><meta name="generic-version" content="1.0.1" /><meta name="type" content="embedded" /><title>Signup form</title><style>textarea, input { font-size: 16px; font-family: 'Arial'; color: black; } .pas-section { display: flex; flex-wrap: wrap; } .submit-loader { position: absolute; margin:auto; left:0; right:0; top:0; bottom:0; width: 20px; height: 20px; border: 3px solid #0066ee; border-top-color: #414141; border-radius: 50%; animation: rotateAnimation 1s linear infinite; box-sizing: border-box; display: none; } @keyframes rotateAnimation { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } } </style><style>form input, textarea {outline-color: #0066ee;}.on-error:invalid {border: 2px solid #c00430!important;}</style><style> .pas-optin { display: flex; } .pas-optin input { margin-right: 10px!important; } .pas-optin-text{margin-block-start:0em;margin-block-end:0em;margin-inline-start:0px;margin-inline-end:0px; display:flex;align-items:center;} /* Hide the native checkbox */ input[type="checkbox"] { /* Add if not using autoprefixer */ -webkit-appearance: none; appearance: none; /* For iOS < 15 to remove gradient background */ background-color: #fff; /* Not removed via appearance */ margin: 0; font: inherit; width: 22px; height: 22px; min-width: 22px; min-height: 22px; border: 1px solid #0066ee; background-color: white; border-radius: 3px; transform: translateY(-0.075em); display: grid; place-content: center; } input[type="checkbox"]:checked::before { background-color: white; transform: scale(1); } input[type="checkbox"]::before { content: ""; width: 15px; height: 15px; transform: scale(0); transition: 120ms transform ease-in-out; transform-origin: center; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); } input[type="checkbox"]:checked { background-color: #0066ee; } </style><style> .pas-input { display: flex; flex-direction: column; } .pas-input-input { height: 36px; min-height: 36px; box-sizing: border-box; } .pas-input p { margin-block-start: 0em; margin-block-end: 0em; margin-inline-start: 0px; margin-inline-end: 0px; } .pas-input-text { margin-top: 5px; margin-bottom: 5px; }</style><style> .pas-text-container { padding-top: 2px; padding-bottom: 2px; } </style></head><body class="pas-body" style="background-color: #F4F4F4; color: #55575d; font-family: Arial, sans-serif;"><form class="pas-form" autocomplete="off" style="padding: 50px 25px 50px 25px; padding-right: 25px; padding-left: 25px; container-background-color: #ffffff; padding-top: 50px; padding-bottom: 50px; background-color: #ffffff;"><div class="pas-text" style="align: left; color: #000000; font-family: Arial, sans-serif; font-size: 13px; letter-spacing: normal; padding: 10px 25px; padding-bottom: 0px; padding-top: 0px;"><div class="pas-text-container"><h1 class="text-build-content" style="text-align:center;" data-testid="tKMFmsSar"><span style="font-family:Arial;font-size:32px;">Subcríbete a nuestra newsletter y obtendrás </span></h1><h1 class="text-build-content" style="text-align:center;" data-testid="tKMFmsSar"><span style="font-family:Arial;font-size:32px;">un descuento del 10% en tu primera compra, en cualquíer artículo.</span></h1></div></div><div class="pas-input" style="padding: 10px 25px 10px 25px;"><label class="pas-input-text" for="email">Email</label><input class="pas-input-input" required="required" type="email" data-field="1" name="email" maxlength="255" style="height: 36px; border: 1px solid #555555; border-radius: 3px;" /></div><label class="pas-optin" type="checkbox" for="consent" style="padding: 10px 25px;"><input type="checkbox" required="true" name="consent" /><p class="pas-optin-text">Acepto recibir correos electrónicos y/o mensajes de texto SMS, con el entendimiento de que puedo optar fácilmente por no recibir estas comunicaciones en cualquier momento después de registrarme.</p></label><div class="pas-submit" style="text-align: center;"><button data-submit="1" style="background-color: #414141; border: none; border-radius: 3px; color: #ffffff; font-family: Arial, sans-serif; font-size: 13px; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: middle; margin: 10px 25px; padding: 10px 25px; position: relative;"><span class="submit-text">Sign up</span><div class="submit-loader"></div></button></div></form><div id="errorMessageDiv" style="background-color: #ffffff; display: none; text-align: center;"><svg viewBox="0 0 16 16" width="100" height="100" fill="none"><g><path fill-rule="evenodd" clip-rule="evenodd" fill="#131B20" d="M1.066 7.99951C1.066 11.8235 4.177 14.9335 8 14.9335C11.823 14.9335 14.934 11.8235 14.934 7.99951C14.934 4.17751 11.823 1.06651 8 1.06651C4.177 1.06651 1.066 4.17751 1.066 7.99951ZM0 7.99951C0 3.58851 3.589 -0.000488281 8 -0.000488281C12.411 -0.000488281 16 3.58851 16 7.99951C16 12.4115 12.411 15.9995 8 15.9995C3.589 15.9995 0 12.4115 0 7.99951ZM10.8231 4.42281C11.0311 4.21481 11.3691 4.21481 11.5771 4.42281C11.7851 4.63081 11.7851 4.96881 11.5771 5.17681L8.7541 7.99981L11.5771 10.8228C11.7851 11.0308 11.7851 11.3688 11.5771 11.5768C11.4731 11.6818 11.3371 11.7338 11.2001 11.7338C11.0631 11.7338 10.9271 11.6818 10.8231 11.5768L8.0001 8.75381L5.1771 11.5768C5.0731 11.6818 4.9361 11.7338 4.8001 11.7338C4.6631 11.7338 4.5271 11.6818 4.4231 11.5768C4.2151 11.3688 4.2151 11.0308 4.4231 10.8228L7.2461 7.99981L4.4231 5.17681C4.2151 4.96881 4.2151 4.63081 4.4231 4.42281C4.6311 4.21481 4.9691 4.21481 5.1771 4.42281L8.0001 7.24581L10.8231 4.42281Z"></path></g></svg><p>We're sorry! there was an error and the form couldn't be submitted.Please try again using a different email address.</p></div><div id="successMessageDiv" style="background-color: #ffffff; display: none; text-align: center;"><svg viewBox="0 0 16 16" width="100" height="100" fill="none"><g><path fill-rule="evenodd" clip-rule="evenodd" fill="#131B20" d="M1 8C1 4.14 4.141 1 8 1C11.859 1 15 4.14 15 8C15 11.859 11.859 15 8 15C4.141 15 1 11.859 1 8ZM0 8C0 12.411 3.589 16 8 16C12.411 16 16 12.411 16 8C16 3.589 12.411 0 8 0C3.589 0 0 3.589 0 8ZM6.646 10.354C6.744 10.451 6.872 10.5 7 10.5C7.128 10.5 7.256 10.451 7.354 10.354L12.354 5.354C12.549 5.158 12.549 4.842 12.354 4.646C12.158 4.451 11.842 4.451 11.646 4.646L7 9.293L4.854 7.146C4.658 6.951 4.342 6.951 4.146 7.146C3.951 7.342 3.951 7.658 4.146 7.854L6.646 10.354Z"></path></g></svg><p>Thanks for signing up! Next, please check your inbox to confirm your subscription.</p></div><script type="module"> /*! iFrame Resizer (iframeSizer.contentWindow.min.js) - v4.3.2 - 2021-10-18 * Copyright: (c) 2021 David J. Bradshaw - dave@bradshaw.net * License: MIT */ !function(c){if("undefined"!=typeof window){var i=!0,o=10,r="",a=0,u="",s=null,d="",l=!1,f={resize:1,click:1},m=128,h=!0,g=1,n="bodyOffset",p=n,v=!0,y="",w={},b=32,T=null,E=!1,O=!1,S="[iFrameSizer]",M=S.length,I="",N={max:1,min:1,bodyScroll:1,documentElementScroll:1},A="child",C=!0,z=window.parent,k="*",R=0,x=!1,e=null,L=16,F=1,t="scroll",P=t,D=window,j=function(){re("onMessage function not defined")},q=function(){},H=function(){},W={height:function(){return re("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return re("Custom width calculation function not defined"),document.body.scrollWidth}},B={},J=!1;try{var U=Object.create({},{passive:{get:function(){J=!0}}});window.addEventListener("test",ee,U),window.removeEventListener("test",ee,U)}catch(e){}var V,X,Y,K,Q,G,Z={bodyOffset:function(){return document.body.offsetHeight+pe("marginTop")+pe("marginBottom")},offset:function(){return Z.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return W.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,ye(Z))},min:function(){return Math.min.apply(null,ye(Z))},grow:function(){return Z.max()},lowestElement:function(){return Math.max(Z.bodyOffset()||Z.documentElementOffset(),ve("bottom",be()))},taggedElement:function(){return we("bottom","data-iframe-height")}},$={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return W.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max($.bodyScroll(),$.documentElementScroll())},max:function(){return Math.max.apply(null,ye($))},min:function(){return Math.min.apply(null,ye($))},rightMostElement:function(){return ve("right",be())},taggedElement:function(){return we("right","data-iframe-width")}},_=(V=Te,Q=null,G=0,function(){var e=Date.now(),t=L-(e-(G=G||e));return X=this,Y=arguments,t<=0||L<t?(Q&&(clearTimeout(Q),Q=null),G=e,K=V.apply(X,Y),Q||(X=Y=null)):Q=Q||setTimeout(Ee,t),K});te(window,"message",function(t){var n={init:function(){y=t.data,z=t.source,ae(),h=!1,setTimeout(function(){v=!1},m)},reset:function(){v?ie("Page reset ignored by init"):(ie("Page size reset by host page"),Me("resetPage"))},resize:function(){Oe("resizeParent","Parent window requested size check")},moveToAnchor:function(){w.findTarget(i())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=i();ie("PageInfoFromParent called from parent: "+e),H(JSON.parse(e)),ie(" --")},message:function(){var e=i();ie("onMessage called from parent: "+e),j(JSON.parse(e)),ie(" --")}};function o(){return t.data.split("]")[1].split(":")[0]}function i(){return t.data.substr(t.data.indexOf(":")+1)}function r(){return t.data.split(":")[2]in{true:1,false:1}}function e(){var e=o();e in n?n[e]():("undefined"==typeof module||!module.exports)&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||r()||re("Unexpected message ("+t.data+")")}S===(""+t.data).substr(0,M)&&(!1===h?e():r()?n.init():ie('Ignored message of type "'+o()+'". Received before initialization.'))}),te(window,"readystatechange",Ae),Ae()}function ee(){}function te(e,t,n,o){e.addEventListener(t,n,!!J&&(o||{}))}function ne(e){return e.charAt(0).toUpperCase()+e.slice(1)}function oe(e){return S+"["+I+"] "+e}function ie(e){E&&"object"==typeof window.console&&console.log(oe(e))}function re(e){"object"==typeof window.console&&console.warn(oe(e))}function ae(){function e(e){return"true"===e}var t;function n(e){Ne(0,0,e.type,e.screenY+":"+e.screenX)}function o(e,t){ie("Add event listener: "+t),te(window.document,e,n)}t=y.substr(M).split(":"),I=t[0],a=c!==t[1]?Number(t[1]):a,l=c!==t[2]?e(t[2]):l,E=c!==t[3]?e(t[3]):E,b=c!==t[4]?Number(t[4]):b,i=c!==t[6]?e(t[6]):i,u=t[7],p=c!==t[8]?t[8]:p,r=t[9],d=t[10],R=c!==t[11]?Number(t[11]):R,w.enable=c!==t[12]&&e(t[12]),A=c!==t[13]?t[13]:A,P=c!==t[14]?t[14]:P,O=c!==t[15]?Boolean(t[15]):O,ie("Initialising iFrame ("+window.location.href+")"),function(){function e(e,t){return"function"==typeof e&&(ie("Setup custom "+t+"CalcMethod"),W[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(function(){var e=window.iFrameResizer;ie("Reading data from page: "+JSON.stringify(e)),Object.keys(e).forEach(ue,e),j="onMessage"in e?e.onMessage:j,q="onReady"in e?e.onReady:q,k="targetOrigin"in e?e.targetOrigin:k,p="heightCalculationMethod"in e?e.heightCalculationMethod:p,P="widthCalculationMethod"in e?e.widthCalculationMethod:P}(),p=e(p,"height"),P=e(P,"width"));ie("TargetOrigin for parent set to: "+k)}(),function(){c===u&&(u=a+"px");ce("margin",function(e,t){-1!==t.indexOf("-")&&(re("Negative CSS value ignored for "+e),t="");return t}("margin",u))}(),ce("background",r),ce("padding",d),(t=document.createElement("div")).style.clear="both",t.style.display="block",t.style.height="0",document.body.appendChild(t),fe(),me(),document.documentElement.style.height="",document.body.style.height="",ie('HTML & body height set to "auto"'),ie("Enable public methods"),D.parentIFrame={autoResize:function(e){return!0===e&&!1===i?(i=!0,he()):!1===e&&!0===i&&(i=!1,de("remove"),null!==s&&s.disconnect(),clearInterval(T)),Ne(0,0,"autoResize",JSON.stringify(i)),i},close:function(){Ne(0,0,"close")},getId:function(){return I},getPageInfo:function(e){"function"==typeof e?(H=e,Ne(0,0,"pageInfo")):(H=function(){},Ne(0,0,"pageInfoStop"))},moveToAnchor:function(e){w.findTarget(e)},reset:function(){Ie("parentIFrame.reset")},scrollTo:function(e,t){Ne(t,e,"scrollTo")},scrollToOffset:function(e,t){Ne(t,e,"scrollToOffset")},sendMessage:function(e,t){Ne(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){p=e,fe()},setWidthCalculationMethod:function(e){P=e,me()},setTargetOrigin:function(e){ie("Set targetOrigin: "+e),k=e},size:function(e,t){Oe("size","parentIFrame.size("+((e||"")+(t?","+t:""))+")",e,t)}},!0===O&&(o("mouseenter","Mouse Enter"),o("mouseleave","Mouse Leave")),he(),w=function(){function i(e){var t=e.getBoundingClientRect(),e={x:window.pageXOffset!==c?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==c?window.pageYOffset:document.documentElement.scrollTop};return{x:parseInt(t.left,10)+parseInt(e.x,10),y:parseInt(t.top,10)+parseInt(e.y,10)}}function n(e){var t,n=e.split("#")[1]||e,e=decodeURIComponent(n),o=document.getElementById(e)||document.getElementsByName(e)[0];c!==o?(t=i(t=o),ie("Moving to in page link (#"+n+") at x: "+t.x+" y: "+t.y),Ne(t.y,t.x,"scrollToOffset")):(ie("In page link (#"+n+") not found in iFrame, so sending to parent"),Ne(0,0,"inPageLink","#"+n))}function e(){var e=window.location.hash,t=window.location.href;""!==e&&"#"!==e&&n(t)}function t(){Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),function(e){"#"!==e.getAttribute("href")&&te(e,"click",function(e){e.preventDefault(),n(this.getAttribute("href"))})})}function o(){Array.prototype.forEach&&document.querySelectorAll?(ie("Setting up location.hash handlers"),t(),te(window,"hashchange",e),setTimeout(e,m)):re("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}w.enable?o():ie("In page linking not enabled");return{findTarget:n}}(),Oe("init","Init message from host page"),q()}function ue(e){var t=e.split("Callback");2===t.length&&(this[t="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1)]=this[e],delete this[e],re("Deprecated: '"+e+"' has been renamed '"+t+"'. The old method will be removed in the next major version."))}function ce(e,t){c!==t&&""!==t&&"null"!==t&&ie("Body "+e+' set to "'+(document.body.style[e]=t)+'"')}function se(n){var e={add:function(e){function t(){Oe(n.eventName,n.eventType)}B[e]=t,te(window,e,t,{passive:!0})},remove:function(e){var t,n=B[e];delete B[e],t=window,e=e,n=n,t.removeEventListener(e,n,!1)}};n.eventNames&&Array.prototype.map?(n.eventName=n.eventNames[0],n.eventNames.map(e[n.method])):e[n.method](n.eventName),ie(ne(n.method)+" event listener: "+n.eventType)}function de(e){se({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),se({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),se({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),se({method:e,eventType:"Input",eventName:"input"}),se({method:e,eventType:"Mouse Up",eventName:"mouseup"}),se({method:e,eventType:"Mouse Down",eventName:"mousedown"}),se({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),se({method:e,eventType:"Print",eventNames:["afterprint","beforeprint"]}),se({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),se({method:e,eventType:"Touch Start",eventName:"touchstart"}),se({method:e,eventType:"Touch End",eventName:"touchend"}),se({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),se({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),se({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),se({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===A&&se({method:e,eventType:"IFrame Resized",eventName:"resize"})}function le(e,t,n,o){return t!==e&&(e in n||(re(e+" is not a valid option for "+o+"CalculationMethod."),e=t),ie(o+' calculation method set to "'+e+'"')),e}function fe(){p=le(p,n,Z,"height")}function me(){P=le(P,t,$,"width")}function he(){var e;!0===i?(de("add"),e=b<0,window.MutationObserver||window.WebKitMutationObserver?e?ge():s=function(){function t(e){function t(e){!1===e.complete&&(ie("Attach listeners to "+e.src),e.addEventListener("load",i,!1),e.addEventListener("error",r,!1),u.push(e))}"attributes"===e.type&&"src"===e.attributeName?t(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),t)}function o(e){ie("Remove listeners from "+e.src),e.removeEventListener("load",i,!1),e.removeEventListener("error",r,!1),e=e,u.splice(u.indexOf(e),1)}function n(e,t,n){o(e.target),Oe(t,n+": "+e.target.src)}function i(e){n(e,"imageLoad","Image loaded")}function r(e){n(e,"imageLoadFailed","Image load failed")}function a(e){Oe("mutationObserver","mutationObserver: "+e[0].target+" "+e[0].type),e.forEach(t)}var u=[],c=window.MutationObserver||window.WebKitMutationObserver,s=function(){var e=document.querySelector("body");return s=new c(a),ie("Create body MutationObserver"),s.observe(e,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),s}();return{disconnect:function(){"disconnect"in s&&(ie("Disconnect body MutationObserver"),s.disconnect(),u.forEach(o))}}}():(ie("MutationObserver not supported in this browser!"),ge())):ie("Auto Resize disabled")}function ge(){0!==b&&(ie("setInterval: "+b+"ms"),T=setInterval(function(){Oe("interval","setInterval: "+b)},Math.abs(b)))}function pe(e,t){var n=0;return t=t||document.body,n=null!==(n=document.defaultView.getComputedStyle(t,null))?n[e]:0,parseInt(n,o)}function ve(e,t){for(var n,o=t.length,i=0,r=ne(e),a=Date.now(),u=0;u<o;u++)i<(n=t[u].getBoundingClientRect()[e]+pe("margin"+r,t[u]))&&(i=n);return a=Date.now()-a,ie("Parsed "+o+" HTML elements"),ie("Element position calculated in "+a+"ms"),L/2<(a=a)&&ie("Event throttle increased to "+(L=2*a)+"ms"),i}function ye(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function we(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&(re("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")),ve(e,n)}function be(){return document.querySelectorAll("body *")}function Te(e,t,n,o){function i(){e in{init:1,interval:1,size:1}||!(p in N||l&&P in N)?e in{interval:1}||ie("No change in size detected"):Ie(t)}var r,a;function u(e,t){return!(Math.abs(e-t)<=R)}r=c!==n?n:Z[p](),a=c!==o?o:$[P](),u(g,r)||l&&u(F,a)||"init"===e?(Se(),Ne(g=r,F=a,e)):i()}function Ee(){G=Date.now(),Q=null,K=V.apply(X,Y),Q||(X=Y=null)}function Oe(e,t,n,o){x&&e in f?ie("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||ie("Trigger event: "+t),("init"===e?Te:_)(e,t,n,o))}function Se(){x||(x=!0,ie("Trigger event lock on")),clearTimeout(e),e=setTimeout(function(){x=!1,ie("Trigger event lock off"),ie("--")},m)}function Me(e){g=Z[p](),F=$[P](),Ne(g,F,e)}function Ie(e){var t=p;p=n,ie("Reset trigger event: "+e),Se(),Me("reset"),p=t}function Ne(e,t,n,o,i){var r;!0===C&&(c===i?i=k:ie("Message targetOrigin: "+i),ie("Sending message to host page ("+(r=I+":"+(e+":"+t)+":"+n+(c!==o?":"+o:""))+")"),z.postMessage(S+r,i))}function Ae(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}(); async function postData(url = '', data = {}) { return fetch(url, { method: 'POST', mode: 'cors', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(data) }); } function hideLoader() { const submitLoader = document.querySelector(".submit-loader"); const submitText = document.querySelector(".submit-text"); submitLoader.style.display = 'none'; submitText.style.visibility = 'visible'; } function showLoader() { const submitLoader = document.querySelector(".submit-loader"); const submitText = document.querySelector(".submit-text"); submitLoader.style.display = 'block'; submitText.style.visibility = 'hidden'; } const submitButton = document.querySelector("[data-submit*='1']"); const errorDiv = document.querySelector("#errorMessageDiv"); const successDiv = document.querySelector("#successMessageDiv"); const formElement = document.getElementsByTagName('form'); const optinContainer = document.querySelector(".pas-optin"); // Configure date inputs const dateInputs = document.querySelectorAll(".pas-date-input"); if (dateInputs.length > 0) { dateInputs.forEach(input => { input.addEventListener('input', () => { let value = input.value; value = value.replace(/[^\d-./]/g, ''); input.value = value; }); }); } if (submitButton) { submitButton.onclick = function (e) { e.preventDefault(); // Disable button & show loader, hide text submitButton.setAttribute('disabled', true); showLoader(); const inputs = document.querySelectorAll("[data-field*='1']"); let email = ''; let fields = []; let blockPostDataCall = false; const requiredFields = []; inputs.forEach(input => { const isRadio = input.type === "radio"; const isDate = input.classList.contains('pas-date-input'); const contactProperty = isRadio ? input.name : input.id; if(input.required && input.type !== "email") { requiredFields.push(contactProperty); } if (input.type === 'email') { email = input.value; if (!/^\w+([\.-]?\w+)*(\+\w+)?@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email)) { input.classList.add('on-error'); blockPostDataCall=true; } } else { let value = input.value; if(input.type === "number") { value = parseFloat(value); } if ((isRadio && input.checked == true) || !isRadio) { switch (input.dataset.type) { case "boolean": value = value === "true" || value === "1"; break; case "integer": value = parseInt(value); break; case "decimal": value = parseFloat(value); break; default: break; } fields.push({ID: parseInt(contactProperty), Value: value}); } } const consent = optinContainer?.firstChild const isExplicitConsent = consent?.type === "checkbox" if (!isRadio && input.required && input.value.length === 0){ blockPostDataCall = true; if (!input.classList.contains('on-error')) { input.classList.add('on-error'); } } if(isExplicitConsent && !consent.checked) { blockPostDataCall = true; if (!consent.classList.contains('on-error')) { consent.classList.add('on-error'); } } if (isDate && input.value.length !== 0) { const pattern = input.pattern; const regex = new RegExp(pattern); if (!regex.test(input.value)) { blockPostDataCall = true; if (!input.classList.contains('on-error')) { input.classList.add('on-error'); } } } }); if (requiredFields.length > 0) { const fieldsId = fields.map(field => field.ID); const missingFields = requiredFields.filter(field => !fieldsId.includes(parseInt(field))); if (missingFields.length > 0) { blockPostDataCall = true; // add error class to missing inputs const missingInput = document.querySelector('input[id="' + missingFields[0] + '"]') if (!missingInput.classList.contains('on-error')) { missingInput.classList.add('on-error'); } } } if (blockPostDataCall) { submitButton.removeAttribute('disabled'); hideLoader(); return; } const data = { Email: email, Fields: fields }; postData('http://xp1ym.nltconfirm.ionos.com/wgt/xp1ym/5xv/subscribe?c=048e28ad', data) .then((response) => { if(!response.ok) { throw new Error('Server response is not ok.'); } else if (successDiv && formElement[0]) { formElement[0].style.display = 'none'; successDiv.style.display = null; } }).catch(() => { if (errorDiv && formElement[0]) { formElement[0].style.display = 'none'; errorDiv.style.display = null; } }).finally(() => { // Unlock button, hide loader and show text submitButton.removeAttribute('disabled'); hideLoader(); }); }; } </script></body></html>">
logo_f-01
NUESTRAS METAS
Hacemos todo lo posible para ayudarle a encontrar la casa de sus sueños. Con experiencia y pasión somos su socio para conseguir su próxima vivienda en Old York.
Llámanos:
eslug-op-1and1-coordinadores@abantebpo.com
C/ Pablo Neruda, 82, 08002 Barcelona
Copyright © Todos los derechos reservados.
Creada con
Share by: