:root{–primaryColor:255,100,0;}.webform-container{width:750px;background-color:#fff;font-family:»Roboto»,sans-serif;}.webform-header{padding:0 35px;text-align:left;background-color:#fafafa;color:#000;position:relative;height:55px;display:flex;align-items:center;font-weight:600;font-size:14px;}.webform-data{padding:20px 35px 20px;}.webform-data-wrapper{font-size:14px;display:block;text-align:justify;-ms-text-justify:distribute-all-lines;text-justify:distribute-all-lines;white-space:normal;display:flex;flex-wrap:wrap;justify-content:space-between;}.web-form-field{display:inline-block;margin-bottom:30px;position:relative;zoom:1;text-align:left;}.full-field{width:100%;clear:both;}.half-field{vertical-align:top;width:47%;}.web-form-field>label{display:inline-block;max-width:70%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:13px;font-weight:400;margin-bottom:5px;}.web-form-field>label.mandatory-field:after{margin-left:2px;content:»*»;color:red;}.webform-field-style,input[type=date],input[type=email],input[type=number],input[type=text],input[type=numeric],select,textarea{width:100%;height:35px;background-color:#fff;border:#ecedee solid 1px;border-radius:3px;display:block;font-size:14px;font-weight:400;padding-left:8px;padding-right:8px;margin:0;outline:0;text-align:left;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;} select[multiple]{ padding: 5px; height: 120px !important; overflow: auto; white-space: initial;} select[multiple] > option{ display: inline-block; vertical-align: top; padding: 5px; border-radius: 3px; cursor: pointer; background-color: #f2f2f2; margin-right: 5px; } select[multiple] > option[value=none]{ display: none; } select[multiple] > option:checked, select[multiple]:focus option:checked{ background-color: rgb(var(–primaryColor)); color: #fff; } select[multiple]:focus option:checked {background: rgb(var(–primaryColor)) linear-gradient(0deg, rgb(var(–primaryColor)) 0%, rgb(var(–primaryColor)) 100%);} .webform-field-style:hover,input[type=date]:hover,input[type=email]:hover,input[type=number]:hover,input[type=text]:hover,select:hover,textarea:hover{border:rgba(var(–primaryColor),.4) solid 1px;}.webform-field-style:focus-within,input[type=date]:focus,input[type=email]:focus,input[type=number]:focus,input[type=text]:focus,select:focus,textarea:focus{border:rgba(var(–primaryColor),.65) solid 1px}.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;position:relative;vertical-align:top;font-size:13px;cursor:pointer;padding:0 15px;margin-right:10px;outline:0;border-radius:25px;-moz-border-radius:25px;-webkit-border-radius:25px;height:28px;box-sizing:border-box;-moz-box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:250px;transition:.3s;line-height:1.5;flex:0 0 auto}.primary-button{color:#fff;background-color:rgb(var(–primaryColor));border:rgb(var(–primaryColor)) solid 1px}.secondary-button{color:rgb(var(–primaryColor));background:#fff;border:rgb(var(–primaryColor)) solid 1px}.attachment-title{height:35px;width:100%;position:relative;padding:10px;display:flex;align-items:center;border:#ecedee dashed 1px;background-color:#fff;border-radius:3px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.attachment-title .attachment-msg{width:250px;white-space:nowrap;overflow:hidden;color:#777}.attachment-title .attachment-input{position:absolute;top:0;bottom:0;left:0;right:0;opacity:0;cursor:pointer;width:100%}.attachment-title:hover .attachment-msg{color:rgb(var(–primaryColor))}.attachment{padding:0 15px;background:#fff;border:#ecedee solid 1px;border-radius:3px;position:relative;margin-top:20px;width:100%;height:35px;line-height:35px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.attachment:before{content:»X»;position:absolute;display:flex;align-items:center;justify-content:center;font-size:9px;right:10px;top:9px;background:rgb(var(–primaryColor));width:16px;height:16px;color:#fff;cursor:pointer;border-radius:2px}.add-attachment{float:left;background:#fff;border-radius:2px;cursor:pointer;color:#30a66b;padding:8px 17px;margin-right:11px;border:1px solid}.webform-select-style{position:relative;display:block;width:100%;padding-left:0;padding-right:0}.webform-select-style.hide{display:none}.webform-select-style select{width:100%;height:100%;border:none;box-shadow:none;background:0 0;background-image:none;-webkit-appearance:none;color:#000;-moz-appearance:none;appearance:none}.webform-select-style:after{content:»»;background:none repeat scroll 0 0 transparent;height:7px;position:absolute;width:7px;margin-top:1px;border-width:1px 1px 0 0;box-shadow:1.5px 1.5px 0 rgb(var(–primaryColor));transform:rotate(43deg);float:right;right:10px;top:10px;cursor:pointer;pointer-events:none}.webform-select-style[disabled]:after{cursor:not-allowed}.webform-select-style select:focus{outline:0}.webform-select-style select option{float:left;overflow:hidden;text-overflow:ellipsis;width:100%;padding:0 8px}.webform-select-style select::-ms-expand{display:none}.webform-field-style{display:flex;align-items:center}.webform-field-style>input[type=text]{border:0!important;padding:0!important;height:100%!important;flex:1}.webform-field-style>.web-captcha{flex:0 0 auto;width:200px;height:100%;display:inline-flex;align-items:center;border-left:#ecedee solid 1px}.webform-field-style>.web-captcha canvas{ border:0;outline:0;user-select:none;pointer-events:none; margin-left:20px;}.webform-field-style>.web-captcha>.captcha-refresh{margin-left:auto;font-size:28px;cursor:pointer;color:rgb(var(–primaryColor));position:relative;top:-2px;padding-left:10px;}let _wbf = (function(){var code;const captchaNeeded=false;window.onload = function(){generateCaptcha();multiSelectWithoutCtrl(); const numberFields = document.querySelectorAll(‘[type^=»number»]’);numberFields.forEach(function(element) {element.addEventListener(‘keydown’, e=>{const key = e.which || e.keyCode || 0;if (e.target.hasAttribute(«maxLength») && e.target.value?.length >= e.target.getAttribute(«maxLength») && key >= 48 && key {let options = document.querySelectorAll(‘[name^=»UDF_NMULTI»] option’);options.forEach(function (element) {element.addEventListener(«mousedown», function (e) {e.preventDefault();element.parentElement.focus();this.selected = !this.selected;return false;}, false );});let multiFields = document.querySelectorAll(‘[name^=»UDF_NMULTI»]’);multiFields.forEach(function(element) {element.addEventListener(‘focus’, event =>{element.blur();});});};function generateCaptcha(){if(captchaNeeded){document.getElementById(«captcha»).innerHTML = «»;var charsArray =»0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@!#$%»; var lengthOtp = 6;var captcha = [];for (var i = 0; i 125) {alert(«File size exceeds 125 MB»);return false;}}var formName=document.fileabugform.subject.value;var eMail=document.fileabugform.email.value.trim();document.fileabugform.email.value = eMail;if (formName==null || formName==»»){alert(«Escriba el nombre de Issue»);return false;}if(eMail==null || eMail==»»){alert(«Escriba una dirección de correo electrónico válida»);return false;}var atpos=eMail.indexOf(«@»);var dotpos=eMail.lastIndexOf(«.»);if (atpos<1 || dotpos=eMail.length) { alert(«Escriba una dirección de correo electrónico válida»); return false; }if(captchaNeeded){if(document.getElementById(«input_captcha») == null){alert(«Código de verificación no válido»);return false;} if(code!= document.getElementById(«input_captcha»).value){ generateCaptcha();alert(«Código de verificación no válido»);document.getElementById(«input_captcha»).value=»»;return false;}} const maxSelectable = 20 ;const mandatoryFields = document.querySelectorAll(‘[data-mand=»true»]’);for(var idx=0;idx<mandatoryFields.length;idx++){var currDiv = mandatoryFields[idx];if(currDiv.value==undefined||currDiv.value.trim()==''){alert("Los campos obligatorios no pueden estar vacíos");return false;}}var customfields = document.getElementsByClassName("customFields");const maxFieldMaxLengths = {'multiline':1000,'singleline':150};for(i=0;imaxSelectable){alert((«{0} no puede exceder 20 valores»).replace(«{0}»,label));return false;}if(fieldType==’phone’&& customfields[i].value != »&&(!customfields[i].value.match(/^[0-9-( )+]+$/)||customfields[i].value.length>15)) {alert((«Escriba un número de teléfono válido en {0} «).replace(«{0}»,label));return false; }if(fieldType==’email’&&customfields[i].value != «»&& !customfields[i].value.match(/^[\w]([‘A-Za-z0-9._%\-+]*@[A-Za-z0-9-]+(\.[a-zA-Z0-9-]{1,22}){0,9}\.[a-zA-Z]{2,22})$/)){alert((«Escriba un ID de correo electrónico válido en {0} «).replace(«{0}»,label));return false; }if(fieldType==’url’&&customfields[i].value != «»&& !customfields[i].value.match(«^(?:(ftp|http|https)://|www.)?[a-zA-Z0-9]+([-\\.][a-zA-Z0-9]+){1,}(\\.[a-zA-Z0-9]{2,5})?(:[0-9]{1,5})?(/.*)?$ «)){alert((«Escriba una URL válida en {0} «).replace(«{0}»,label));return false; }if((fieldType==’decimal’||fieldType==’currency’)&&customfields[i].value != «» && !(/^-{0,1}\d*\.{0,1}\d+$/.test(customfields[i].value))){alert((«Escriba un valor válido en {0} «).replace(«{0}»,label));return false; }if((fieldType==’percentage’)&&customfields[i].value != «» && !(/^[+]?([0-9]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(customfields[i].value))){alert((«Escriba un valor válido en {0}»).replace(«{0}»,label));return false; }if((fieldType == ‘multiline’||fieldType == ‘singleline’) && customfields[i].value != «» && customfields[i].value.length > maxFieldMaxLengths[fieldType]){alert((«{0} no puede exceder los {1} caracteres»).replace(«{0}»,label).replace(«{1}»,maxFieldMaxLengths[fieldType]));return false;}} var dueDate = document.getElementById(«dueDate»)?.value;if(dueDate!=null && dueDate!=»»){if (!dueDate.match(/^((0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])-((19|20)\d\d))$/)){alert(«Introduzca una fecha válida»);return false;}} return true;} return {validateForm: validateForm,generateCaptcha: generateCaptcha};})();