text: !function(){var h=document.querySelector("#regalo");document.addEventListener("DOMContentLoaded",function(){if(document.getElementById("mapa")){var e=L.map("mapa").setView([10.502813,-66.918663],17);L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(e),L.marker([10.502813,-66.918663]).addTo(e).bindPopup("GDLWebCamp 2018<br> Boletos ya disponibles").openPopup()}var t=document.querySelector("#nombre"),r=document.querySelector("#apellido"),o=document.querySelector("#email"),u=document.querySelector("#pase_dia"),i=document.querySelector("#pase_dosdias"),c=document.querySelector("#pase_completo"),n=document.querySelector("#calcular"),a=document.querySelector("#error"),p=document.querySelector("#btnRegistro"),m=document.querySelector("#lista-productos"),y=document.querySelector("#suma-total"),v=document.querySelector("#camisa_evento"),b=document.querySelector("#etiquetas");if(p.disabled=!0,document.getElementById("calcular")){function s(){""==this.value?(a.style.display="block",a.innerHTML="Este campo es obligatorio",this.style.border="1px solid red",a.style.border="1px solid red"):(a.style.display="none",this.style.border="1px solid #cccccc")}function l(){var e=parseInt(u.value,10)||0,t=parseInt(i.value,10)||0,r=parseInt(c.value,10)||0,o=[];0<e&&o.push("viernes"),0<t&&o.push("viernes","sabado"),0<r&&o.push("viernes","sabado","domingo");for(var n=0;n<o.length;n++)document.getElementById(o[n]).style.display="block"}n.addEventListener("click",function(e){if(e.preventDefault(),""===h.value)alert("Debes elegir un regalo"),h.focus();else{var t=parseInt(u.value,10)||0,r=parseInt(i.value,10)||0,o=parseInt(c.value,10)||0,n=parseInt(v.value,10)||0,a=parseInt(b.value,10)||0,s=30*t+45*r+50*o+10*n*.93+2*a,l=[];1<=t&&l.push(t+" Pases por día"),1<=r&&l.push(r+" Pases por 2 días"),1<=o&&l.push(o+" Pases Completos"),1<=n&&l.push(n+" Camisas"),1<=a&&l.push(a+" Etiquetas"),m.style.display="block",m.innerHTML="";for(var d=0;d<l.length;d++)m.innerHTML+=l[d]+"<br/>";y.innerHTML="$ "+s.toFixed(2),p.disabled=!1,document.getElementById("total_pedido").value=s}}),u.addEventListener("input",l),i.addEventListener("input",l),c.addEventListener("input",l),t.addEventListener("blur",s),r.addEventListener("blur",s),o.addEventListener("blur",s),o.addEventListener("blur",function(){-1<this.value.indexOf("@")?(a.style.display="none",this.style.border="1px solid #cccccc"):(a.style.display="block",a.innerHTML="Debe tener al menos un @",this.style.border="1px solid red",a.style.border="1px solid red")}),0<document.getElementsByClassName("editar-registrado").length&&(u.value||i.value||c.value)&&l()}})}();