eloqua-scripts.security.umbrella.com
Open in
urlscan Pro
208.67.218.162
Public Scan
URL:
https://eloqua-scripts.security.umbrella.com/scripts/umbrella-eloqua.min.js
Submission: On September 12 via api from IT — Scanned from IT
Submission: On September 12 via api from IT — Scanned from IT
Form analysis
0 forms found in the DOMText Content
var LiveValidation=function(e,t){this.initialize(e,t)};LiveValidation.VERSION="1.3 standalone eloqua-19A",LiveValidation.TEXTAREA=1,LiveValidation.TEXT=2,LiveValidation.PASSWORD=3,LiveValidation.CHECKBOX=4,LiveValidation.SELECT=5,LiveValidation.FILE=6,LiveValidation.GROUP=7,LiveValidation.massValidate=function(e){for(var t=!0,i=0,a=e.length;i<a;++i)var n=e[i].validate(),t=t&&n;return t},LiveValidation.prototype={validClass:"LV_valid",invalidClass:"LV_invalid",messageClass:"LV_validation_message",validFieldClass:"LV_valid_field",invalidFieldClass:"LV_invalid_field",initialize:function(e,t){var i=this,a=t||{};if(!e)throw new Error("LiveValidation::initialize - No element reference or element id has been provided!");if(a.isGroup?(this.element=e,this.form=this.element[0].form,this.elementType=LiveValidation.GROUP):(this.element=e.nodeName?e:document.getElementById(e),this.form=this.element.form,this.elementType=this.getElementType()),!this.element)throw new Error("LiveValidation::initialize - No element with reference or id of '"+e+"' exists!");this.validations=[],this.validMessage=a.validMessage,this.isGroup=a.isGroup||!1;e=a.insertAfterWhatNode||this.element;if(this.insertAfterWhatNode=e.nodeType?e:document.getElementById(e),this.onValid=t.isPhoneField?function(){}:a.onValid||function(){this.insertMessage(this.createMessageSpan()),this.addFieldClass()},this.onInvalid=a.onInvalid||function(){this.insertMessage(this.createMessageSpan()),this.addFieldClass()},this.onlyOnBlur=a.onlyOnBlur||!1,this.wait=a.wait||0,this.onlyOnSubmit=a.onlyOnSubmit||!1,this.form&&(this.formObj=LiveValidationForm.getInstance(this.form),this.formObj.addField(this)),this.oldOnFocus=this.element.onfocus||function(){},this.oldOnBlur=this.element.onblur||function(){},this.oldOnClick=this.element.onclick||function(){},this.oldOnChange=this.element.onchange||function(){},this.oldOnKeyup=this.element.onkeyup||function(){},NodeList.prototype.isPrototypeOf(this.element)?this.element.forEach(e=>e.onfocus=e=>(i.doOnFocus(e),i.oldOnFocus.call(this,e))):this.element.onfocus=function(e){return i.doOnFocus(e),i.oldOnFocus.call(this,e)},!this.onlyOnSubmit)switch(this.elementType){case LiveValidation.CHECKBOX:this.element.onclick=function(e){return i.validate(),i.oldOnClick.call(this,e)};case LiveValidation.SELECT:case LiveValidation.FILE:this.element.onchange=function(e){return i.validate(),i.oldOnChange.call(this,e)};break;case LiveValidation.GROUP:for(var n=0,s=this.element.length;n<s;n++)this.element[n].onchange=function(e){return i.validate(),i.oldOnChange.call(this,e)};default:this.onlyOnBlur||(this.element.onkeyup=function(e){return i.deferValidation(),i.oldOnKeyup.call(this,e)}),this.element.onblur=function(e){return i.doOnBlur(e),i.oldOnBlur.call(this,e)}}},destroy:function(){if(this.formObj&&(this.formObj.removeField(this),this.formObj.destroy()),this.element.onfocus=this.oldOnFocus,!this.onlyOnSubmit)switch(this.elementType){case LiveValidation.CHECKBOX:this.element.onclick=this.oldOnClick;case LiveValidation.SELECT:case LiveValidation.FILE:this.element.onchange=this.oldOnChange;break;default:this.onlyOnBlur||(this.element.onkeyup=this.oldOnKeyup),this.element.onblur=this.oldOnBlur}this.validations=[],this.removeMessageAndFieldClass()},add:function(e,t){return this.validations.push({type:e,params:t||{}}),this},remove:function(e,t){for(var i=!1,a=0,n=this.validations.length;a<n;a++)if(this.validations[a].type==e&&this.validations[a].params==t){i=!0;break}return i&&this.validations.splice(a,1),this},deferValidation:function(e){300<=this.wait&&this.removeMessageAndFieldClass();var t=this;this.timeout&&clearTimeout(t.timeout),this.timeout=setTimeout(function(){t.validate()},t.wait)},doOnBlur:function(e){this.focused=!1,this.validate(e)},doOnFocus:function(e){this.focused=!0,this.removeMessageAndFieldClass()},getElementType:function(){switch(!0){case"TEXTAREA"==this.element.nodeName.toUpperCase():return LiveValidation.TEXTAREA;case"INPUT"==this.element.nodeName.toUpperCase()&&"TEXT"==this.element.type.toUpperCase():case"INPUT"==this.element.nodeName.toUpperCase()&&"TEL"==this.element.type.toUpperCase():case"INPUT"==this.element.nodeName.toUpperCase()&&"EMAIL"==this.element.type.toUpperCase():return LiveValidation.TEXT;case"INPUT"==this.element.nodeName.toUpperCase()&&"PASSWORD"==this.element.type.toUpperCase():return LiveValidation.PASSWORD;case"INPUT"==this.element.nodeName.toUpperCase()&&"CHECKBOX"==this.element.type.toUpperCase():return LiveValidation.CHECKBOX;case"INPUT"==this.element.nodeName.toUpperCase()&&"FILE"==this.element.type.toUpperCase():return LiveValidation.FILE;case"SELECT"==this.element.nodeName.toUpperCase():return LiveValidation.SELECT;case"INPUT"==this.element.nodeName.toUpperCase():throw new Error("LiveValidation::getElementType - Cannot use LiveValidation on an "+this.element.type+" input!");default:throw new Error("LiveValidation::getElementType - Element must be an input, select, or textarea!")}},doValidations:function(){this.validationFailed=!1;for(var e=0,t=this.validations.length;e<t;++e){var i=this.validations[e];switch(i.type){case Validate.Presence:case Validate.Confirmation:case Validate.Acceptance:this.displayMessageWhenEmpty=!0,this.validationFailed=!this.validateElement(i.type,i.params);break;default:this.validationFailed=!this.validateElement(i.type,i.params)}if(this.validationFailed)return!1}return this.message=this.validMessage,!0},validateElement:function(e,t){if(i=this.elementType==LiveValidation.SELECT?-1!==this.element.selectedIndex?this.element.options[this.element.selectedIndex].value:"":this.element.value,e==Validate.Acceptance){if(this.elementType!=LiveValidation.CHECKBOX)throw new Error("LiveValidation::validateElement - Element to validate acceptance must be a checkbox!");i=this.element.checked}else if(this.isGroup)for(var i="",a=0,n=this.element.length;a<n;a++)if(this.element[a].checked){i=!0;break}var s=!0;try{e(i,t)}catch(e){if(!(e instanceof Validate.Error))throw e;(""!==i||""===i&&this.displayMessageWhenEmpty)&&(this.validationFailed=!0,this.message=e.message,s=!1)}finally{return s}},validate:function(){return!!this.element.disabled||(this.doValidations()?(this.onValid(),!0):(this.onInvalid(),!1))},enable:function(){return this.element.disabled=!1,this},disable:function(){return this.element.disabled=!0,this.removeMessageAndFieldClass(),this},createMessageSpan:function(){var e=document.createElement("span"),t=document.createTextNode(this.message);return e.style.display="block",e.style.marginLeft="0px",e.style.width="100%",e.appendChild(t),e},insertMessage:function(e){var t;this.removeMessage(),(!this.displayMessageWhenEmpty||this.elementType!=LiveValidation.CHECKBOX&&""!=this.element.value)&&""==this.element.value||(t=this.validationFailed?this.invalidClass:this.validClass,e.className+=" "+this.messageClass+" "+t,this.insertAfterWhatNode.nextSibling?this.insertAfterWhatNode.parentNode.insertBefore(e,this.insertAfterWhatNode.nextSibling):this.insertAfterWhatNode.parentNode.appendChild(e))},addFieldClass:function(){this.removeFieldClass(),this.validationFailed?this.isGroup?-1==this.insertAfterWhatNode.className.indexOf(this.invalidFieldClass)&&(this.insertAfterWhatNode.className+=" "+this.invalidFieldClass):-1==this.element.className.indexOf(this.invalidFieldClass)&&(this.element.className+=" "+this.invalidFieldClass):!this.displayMessageWhenEmpty&&""==this.element.value||(this.isGroup?-1==this.insertAfterWhatNode.className.indexOf(this.invalidFieldClass)&&(this.insertAfterWhatNode.className+=" "+this.validFieldClass):-1==this.element.className.indexOf(this.validFieldClass)&&(this.element.className+=" "+this.validFieldClass))},removeMessage:function(){var e=this.insertAfterWhatNode,e=e.nextElementSibling&&e.nextElementSibling.classList.contains(this.messageClass)?e.nextElementSibling:e.parentElement.querySelector("."+this.messageClass);e&&e.remove()},removeFieldClass:function(){this.isGroup?(-1!=this.insertAfterWhatNode.className.indexOf(this.invalidFieldClass)&&(this.insertAfterWhatNode.className=this.insertAfterWhatNode.className.split(this.invalidFieldClass).join("")),-1!=this.insertAfterWhatNode.className.indexOf(this.validFieldClass)&&(this.insertAfterWhatNode.className=this.insertAfterWhatNode.className.split(this.validFieldClass).join(" "))):(-1!=this.element.className.indexOf(this.invalidFieldClass)&&(this.element.className=this.element.className.split(this.invalidFieldClass).join("")),-1!=this.element.className.indexOf(this.validFieldClass)&&(this.element.className=this.element.className.split(this.validFieldClass).join(" ")))},removeMessageAndFieldClass:function(){this.removeMessage(),this.removeFieldClass()}};var LiveValidationForm=function(e){this.initialize(e)};LiveValidationForm.instances={},LiveValidationForm.getInstance=function(e){var t=Math.random()*Math.random();return e.id||(e.id="formId_"+t.toString().replace(/\./,"")+(new Date).valueOf()),LiveValidationForm.instances[e.id]||(LiveValidationForm.instances[e.id]=new LiveValidationForm(e)),LiveValidationForm.instances[e.id]},LiveValidationForm.prototype={initialize:function(e){this.name=e.id,this.element=e,this.fields=[],this.oldOnSubmit=this.element.onsubmit||function(){};var t=this;this.element.onsubmit=function(e){return!!LiveValidation.massValidate(t.fields)&&!1!==t.oldOnSubmit.call(this,e||window.event)}},addField:function(e){this.fields.push(e)},removeField:function(e){for(var t=[],i=0,a=this.fields.length;i<a;i++)this.fields[i]!==e&&t.push(this.fields[i]);this.fields=t},destroy:function(e){return!(0!=this.fields.length&&!e||(this.element.onsubmit=this.oldOnSubmit,LiveValidationForm.instances[this.name]=null))}};var Validate={Presence:function(e,t){t=(t=t||{}).failureMessage||"Can't be empty!";return""!==e&&null!=e||Validate.fail(t),!0},Numericality:function(e,t){var i=e,a=(e=Number(e),(t=t||{}).minimum||0==t.minimum?t.minimum:null),n=t.maximum||0==t.maximum?t.maximum:null,s=t.is||0==t.is?t.is:null,l=t.notANumberMessage||"Must be a number!",o=t.notAnIntegerMessage||"Must be an integer!",r=t.wrongNumberMessage||"Must be "+s+"!",d=t.tooLowMessage||"Must not be less than "+a+"!",c=t.tooHighMessage||"Must not be more than "+n+"!";switch(isFinite(e)||Validate.fail(l),t.onlyInteger&&(/\.0+$|\.$/.test(String(i))||e!=parseInt(e))&&Validate.fail(o),!0){case null!==s:e!=Number(s)&&Validate.fail(r);break;case null!==a&&null!==n:Validate.Numericality(e,{tooLowMessage:d,minimum:a}),Validate.Numericality(e,{tooHighMessage:c,maximum:n});break;case null!==a:e<Number(a)&&Validate.fail(d);break;case null!==n:e>Number(n)&&Validate.fail(c)}return!0},Format:function(e,t){e=String(e);var i=(t=t||{}).failureMessage||"Not valid!",a=t.pattern||/./,t=t.negate||!1;return t||a.test(e)||Validate.fail(i),t&&a.test(e)&&Validate.fail(i),!0},PhoneNumberCheck:function(e,t){e=String(e);var i=(t=t||{}).failureMessage||"Not valid!";if(t.isOnBlur&&e.length<=8||!t.isOnBlur&&8<e.length)return window.libphonenumber.phoneNumberParser(e).isValidNumber||Validate.fail(i)},Email:function(e,t){t=(t=t||{}).failureMessage||"Must be a valid email address!";return Validate.Format(e,{failureMessage:t,pattern:/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i}),!0},Length:function(e,t){e=String(e);var i=(t=t||{}).minimum||0==t.minimum?t.minimum:null,a=t.maximum||0==t.maximum?t.maximum:null,n=t.is||0==t.is?t.is:null,s=t.wrongLengthMessage||"Must be "+n+" characters long!",l=t.tooShortMessage||"Must not be less than "+i+" characters long!",o=t.tooLongMessage||"Must not be more than "+a+" characters long!";switch(!0){case null!==n:e.length!=Number(n)&&Validate.fail(s);break;case null!==i&&null!==a:Validate.Length(e,{tooShortMessage:l,minimum:i}),Validate.Length(e,{tooLongMessage:o,maximum:a});break;case null!==i:e.length<Number(i)&&Validate.fail(l);break;case null!==a:e.length>Number(a)&&Validate.fail(o);break;default:throw new Error("Validate::Length - Length(s) to validate against must be provided!")}return!0},Inclusion:function(e,t){var i=(t=t||{}).failureMessage||"Must be included in the list!",a=!1!==t.caseSensitive;if(t.allowNull&&null==e)return!0;t.allowNull||null!=e||Validate.fail(i);var n=t.within||[];if(!a){for(var s=[],l=0,o=n.length;l<o;++l){var r=n[l];"string"==typeof r&&(r=r.toLowerCase()),s.push(r)}n=s,"string"==typeof e&&(e=e.toLowerCase())}for(var d=!1,c=0,o=n.length;c<o;++c)n[c]==e&&(d=!0),t.partialMatch&&-1!=e.indexOf(n[c])&&(d=!0);return(!t.negate&&!d||t.negate&&d)&&Validate.fail(i),!0},Exclusion:function(e,t){return(t=t||{}).failureMessage=t.failureMessage||"Must not be included in the list!",t.negate=!0,Validate.Inclusion(e,t),!0},Confirmation:function(e,t){if(!t.match)throw new Error("Validate::Confirmation - Error validating confirmation: Id of element to match must be provided!");var i=(t=t||{}).failureMessage||"Does not match!",a=t.match.nodeName?t.match:document.getElementById(t.match);if(!a)throw new Error("Validate::Confirmation - There is no reference with name of, or element with id of '"+t.match+"'!");return e!=a.value&&Validate.fail(i),!0},Acceptance:function(e,t){t=(t=t||{}).failureMessage||"Must be accepted!";return e||Validate.fail(t),!0},Custom:function(e,t){var i=(t=t||{}).against||function(){return!0},a=t.args||{},t=t.failureMessage||"Not valid!";return i(e,a)||Validate.fail(t),!0},now:function(e,t,i){if(!e)throw new Error("Validate::now - Validation function must be provided!");var a=!0;try{e(t,i||{})}catch(e){if(!(e instanceof Validate.Error))throw e;a=!1}finally{return a}},fail:function(e){throw new Validate.Error(e)},Error:function(e){this.message=e,this.name="ValidationError"}};if((()=>{const o=document.querySelector(".elq-form, .elqForm");if(!o||o.classList.contains("custom-eloqua-validation-processed"))return;const e=o.querySelector('select[name="CampaignStepID"]'),t=o.querySelector('input[name="phone"]'),i=o.querySelector('select[name="country"]'),a=o.querySelector('input[name="email"]'),n=o.querySelector('input[name="Email_Opt_In__c"], input[name="emailOptIn1"]'),s=o.querySelector('input[type="submit"]'),l=o.querySelector('input[name="campaignName"]')||"",r=o.querySelector('input[name="CampaignStepID"]')||"",d=o.querySelector('input[name="LandingPage"]')||"",c=o.querySelectorAll("input[required], select[required], textarea[required]"),u=o.querySelectorAll('input[type="text"], input[type="email"], textarea'),h=document.getElementsByTagName("html")[0].lang.split("-")[0]||"en",m=window.location.href,p=["https://umbrella.cisco.com/contact-us","https://duo.com/about/contact"].some(e=>m.startsWith(e))?"contact_us_submit":"generate_lead",f=[],v=["dropdownMenu","CampaignStepID","email","emailAddress","country","firstName","lastName","company","phone","eventDateAM","inquiry","companySize","title","chinaPIPL1","chinaPIPL2","SKoreaConsent","VietnamConsent","key"];let g,y={email:0,countries:{CN:{position:[]},KR:{position:[]},VN:{position:[]}}},b="afterend",w="I agree that Cisco Systems, Inc. may share my personal information with other parties, including Affiliates, Partners, Suppliers, and if required by law, government agencies for purposes of processing my request. See Cisco’s Online Privacy Statement for more information, or reach out to us using Cisco’s Privacy Request form.",L="Understanding that Cisco Systems, Inc. operates globally, along with various Affiliates and Suppliers, I agree that Cisco may transfer my personal information outside of **** to other countries, including the United States, for the purposes of processing my request. See Cisco’s Online Privacy Statement for more information, or reach out to us using Cisco’s Privacy Request form.",V=w+"<br><br>"+L;const C=(e,t)=>{let i=e.parentElement.closest(t);for(;null!==i&&o.contains(i.parentElement.closest(t));)i=i.parentElement.closest(t);return i},E=(e,t="")=>{var i,a=!!NodeList.prototype.isPrototypeOf(e);if(insertAfterWhatNode=e,!0==a&&(insertAfterWhatNode=e[0].parentElement.closest(".field-control-wrapper")),"checkbox"===e.type&&(insertAfterWhatNode=e.parentElement.lastElementChild),null!=insertAfterWhatNode)if(f.push(new LiveValidation(e,{validMessage:t,onlyOnBlur:!1,onlyOnSubmit:!0,insertAfterWhatNode:insertAfterWhatNode,isGroup:a})),i=f.length-1,"key"!==e.name){if("phone"!==e.name&&"tel"!==e.type||f[i].add(Validate.Length,{tooShortMessage:translations.minLength7,minimum:7}),"checkbox"===e.type)switch(e.name){case"chinaPIPL1":case"chinaPIPL2":y.countries.CN.position.push(i);break;case"SKoreaConsent":y.countries.KR.position.push(i);break;case"VietnamConsent":y.countries.VN.position.push(i);break;default:f[i].add(Validate.Acceptance,{failureMessage:translations.required})}else f[i].add(Validate.Presence,{failureMessage:translations.required});"email"===e.name&&(y.email=i)||"email"===e.type?(f[i].add(Validate.Format,{pattern:/(^[A-Z0-9!#\$%&'\*\+\-\/=\?\^_`\{\|\}~][A-Z0-9!#\$%&'\*\+\-\/=\?\^_`\{\|\}~\.]{0,62}@(([A-Z0-9](?:[A-Z0-9\-]{0,61}[A-Z0-9])?)(\.[A-Z0-9](?:[A-Z0-9\-]{0,61}[A-Z0-9])?)+)$)/i,failureMessage:translations.email}),f[i].add(Validate.Format,{pattern:/\.\.|\.@/i,failureMessage:translations.email,negate:"true"})):"text"!==e.type&&"textarea"!==e.type||(f[i].add(Validate.Length,{tooShortMessage:translations.length,minimum:2}),f[i].add(Validate.Custom,{against:function(e){return!e.match(/(telnet|ftp|https?):\/\/(?:[a-z0-9][a-z0-9-]{0,61}[a-z0-9]\.|[a-z0-9]\.)+[a-z]{2,63}/i)},failureMessage:translations.urls}),f[i].add(Validate.Custom,{against:function(e){return!e.match(/(<([^>]+)>)/gi)},failureMessage:translations.html}))}else f[i].add(Validate.Length,{tooShortMessage:translations.length,tooLongMessage:translations.length,minimum:0,maximum:1})},N=(a="email",i="Please use your business or company email",e="https://eloqua-scripts.security.umbrella.com/json/blocklist.json")=>{const n=o.querySelector("input[name="+a+"]");let s;if(null!==n){const l=new XMLHttpRequest;l.open("GET",e,!0),l.send(),l.onreadystatechange=function(){if(4==l.readyState&&200==l.status){const e=JSON.parse(l.responseText),t=e.domainBlocklist;if(null!==t){if("email"!==a){let i=!1;f.forEach((e,t)=>{e.element.name===a&&(s=t,i=!0)}),i||(f.push(new LiveValidation(n,{validMessage:"",onlyOnBlur:!1,onlyOnSubmit:!0,insertAfterWhatNode:n,isGroup:!1})),s=f.length-1)}else s=y.email;f[s].add(Validate.Custom,{against:function(e){return!t.includes(e.split("@")[1])},failureMessage:i})}else console.error("Error: blockedDomainArray null")}else 4==l.readyState&&200!==l.status&&console.error("Error: Failed to GET blocklist.json")}}};window.umbrellaNoFreeDomains=N;const k=()=>{(()=>{if(null!==i){let e=C(i,".input-row, .row, .elqFormRow, .row-wrap");null===o.querySelector(".china-pipl")&&(e.insertAdjacentHTML(b,` <div class="china-pipl el-pad--vert-1rem" style="display:none"> <div id="cross-border-area" class="elq-field-style form-element-layout row"> <div class="single-checkbox-row row elqCheckboxRow"> <input type="checkbox" name="chinaPIPL2" id="cross-border-check" class="china-pipl-checkbox"> <label class="checkbox-aligned elq-item-label" for="cross-border-check">${L.replace("****","mainland China")}</label> </div> </div> </div>`),e.insertAdjacentHTML(b,` <div class="china-pipl el-pad--vert-1rem" style="display:none"> <div id="share-data-area" class="elq-field-style form-element-layout row" style="margin-top: 15px;"> <div class="single-checkbox-row row elqCheckboxRow"> <input type="checkbox" name="chinaPIPL1" id="share-data-check" class="china-pipl-checkbox"> <label class="checkbox-aligned elq-item-label" for="share-data-check">${w}</label> </div> </div> </div>`)),e.insertAdjacentHTML(b,` <div class="southkorea-optin el-pad--vert-1rem" style="display:none"> <div class="elq-field-style form-element-layout row" style="margin-top: 20px;"> <div class="single-checkbox-row elqCheckboxRow col-xs-12"> <input type="checkbox" name="SKoreaConsent" id="southkorea-optin-check" class="southkorea-optin-checkbox"> <label class="checkbox-aligned elq-item-label" for="southkorea-optin-check">${V.replace("****","South Korea")}</label> </div> </div> </div>`),e.insertAdjacentHTML(b,` <div class="vietnam-optin el-pad--vert-1rem" style="display:none"> <div class="elq-field-style form-element-layout row" style="margin-top: 20px;"> <div class="single-checkbox-row elqCheckboxRow col-xs-12"> <input type="checkbox" name="VietnamConsent" id="vietnam-optin-check" class="vietnam-optin-checkbox"> <label class="checkbox-aligned elq-item-label" for="vietnam-optin-check">${V.replace("****","Vietnam")}</label> </div> </div> </div>`),null!==n?e=C(n,".input-row, .row, .elqFormRow"):(e=C(s,".input-row, .row, .elqFormRow, .elqButtonRow"),b="beforebegin"),null===o.querySelector("input[name=phoneOptIn1]")&&e.insertAdjacentHTML(b,` <div class="phone-optin el-pad--vert-1rem" style="display:none"> <div id="phone-optin-area" class="elq-field-style form-element-layout row"> <div class="single-checkbox-row row elqCheckboxRow"> <input type="checkbox" name="phoneOptIn1" id="phone-optin-check" class="phone-optin-checkbox" checked> <label class="checkbox-aligned elq-item-label" for="phone-optin-check">Yes, I would like to be contacted by phone.</label> </div> </div> </div>`)}g=o.querySelectorAll(".china-pipl, .phone-optin, .southkorea-optin, .vietnam-optin"),g.forEach(e=>{e.$checkbox=e.querySelector("input"),e.classList.contains("phone-optin")&&(e.$checkbox.checked=!1)});const e=o.querySelectorAll("select[data-value]");e.forEach(t=>{var i=t.dataset?t.dataset.value:t.getAttribute("data-value");if(i)for(let e=0;e<t.options.length;e++)if(t.options[e].value===i){t.options[e].selected="selected";break}}),o.noValidate=!0})(),v.forEach(e=>{let t;(t=o.querySelector('[name="'+e+'"]'))&&void 0!==t.type&&("text"!==t.type&&"tel"!==t.type&&"email"!==t.type&&"select-one"!==t.type&&"textarea"!==t.type&&"checkbox"!==t.type||(t.classList.add("in-livevalidation"),E(t)))}),c.forEach(e=>{e.classList.contains("in-livevalidation")||("radio"===e.type&&(e=o.querySelectorAll("input[name="+e.name+"]")).forEach(e=>e.classList.add("in-livevalidation")),E(e))}),o.classList.contains("noFreeDomains")&&N(),o.addEventListener("change",function(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"lead_form_start",campaign_name:l.value,campaign_step_id:r.value,form_id:this.id,form_name:this.name,landing_page:d.value,lead_id:"",url:m})},{once:!0}),u.forEach(e=>{e.addEventListener("focusout",function(){this.value=this.value.trim()})}),e&&l&&e.addEventListener("change",function(e){e=e.target,e=e.options[e.selectedIndex].dataset.campaign;void 0!==e&&e.length&&(l.value=e)}),t&&t.addEventListener("focusout",function(){this.value=this.value.replace(/\D/g,"")}),i&&i.addEventListener("change",function(e){const t=e.target;y.countries.CN.position.length&&Object.keys(y.countries).forEach(e=>{e===t.value?y.countries[e].position.forEach(e=>{f[e].add(Validate.Acceptance,{failureMessage:translations.required})}):y.countries[e].position.forEach(e=>{f[e].validations=[]})}),g.forEach(e=>{"CN"===t.value&&e.classList.contains("china-pipl")||"KR"===t.value&&e.classList.contains("southkorea-optin")||"VN"===t.value&&e.classList.contains("vietnam-optin")||""!==t.value&&"US"!==t.value&&e.classList.contains("phone-optin")?e.style.display="block":(e.style.display="none","US"!==t.value&&""!==t.value||!e.classList.contains("phone-optin")||(e.$checkbox.checked=!1))})}),window.addEventListener("pageshow",()=>{i&&i.value&&i.dispatchEvent(new Event("change"))}),o.addEventListener("submit",function(){let t=!0,i=f.length;for(let e=0;e<i;e++)if(void 0===f[e]||!f[e].validate()){t=!1;break}t&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:p,campaign_name:l.value,campaign_step_id:r.value,email:a.value,form_id:this.id,form_name:this.name,landing_page:d.value,lead_id:"",url:m}))}),o.classList.add("custom-eloqua-validation-processed")};fetch(`https://eloqua-scripts.security.umbrella.com/json/lang/${["de","en","es","fr","it","ja","ko","pt","zh"].includes(h)?h:"en"}.json`).then(e=>e.json(),e=>console.error("Fetching failed - "+e)).then(e=>{translations=e,k()},e=>{console.error("JSON on response failed - "+e)})})(),"function"!=typeof window.umbrellaPartnerCheck){const Sb=()=>"function"==typeof LiveValidation,Tb=(e,t,i,a)=>{null!==e&&null!==t&&null!==i&&null!==a&&(e.add(Validate.Presence,t),e.add(Validate.Format,i),e.add(Validate.Format,a))},Ub=(e,t,i,a)=>{null!==e&&null!==t&&null!==i&&null!==a&&(e.remove(Validate.Presence,t),e.remove(Validate.Format,i),e.remove(Validate.Format,a))},Vb=(e="",t="partnerreferral")=>{var i,a,n,s,l=document.getElementById(e),o=document.querySelector('label[for="'+e+'"]'),e=document.querySelectorAll("input[type=radio][name="+t+"]");document.querySelector("input[type=radio][name="+t+"]:checked");null===e||0===l.length&&0===o.length||(o.innerHTML+='<span class="elq-required">*</span>',l.style.display="none",o.style.display="none",a={failureMessage:"This field is required"},n={pattern:/(^[A-Z0-9!#\$%&'\*\+\-\/=\?\^_`\{\|\}~][A-Z0-9!#\$%&'\*\+\-\/=\?\^_`\{\|\}~\.]{0,62}@(([A-Z0-9](?:[A-Z0-9\-]{0,61}[A-Z0-9])?)(\.[A-Z0-9](?:[A-Z0-9\-]{0,61}[A-Z0-9])?)+)$)/i,failureMessage:"A valid email address is required"},s={pattern:/\.\.|\.@/i,failureMessage:"A valid email address is required",negate:"true"},!0===Sb()&&(i=new LiveValidation(l,{validMessage:"",onlyOnBlur:!1,wait:300})),e.forEach(e=>e.addEventListener("change",function(){"Yes"===e.value?(l.style.display="block",o.style.display="block",!0===Sb()&&Tb(i,a,n,s)):"No"===e.value&&(!0===Sb()&&Ub(i,a,n,s),l.style.display="none",o.style.display="none")})))};window.umbrellaPartnerCheck=Vb}if("function"!=typeof window.eloquaGaSf){const n1=()=>new Promise((e,t)=>{let i=Date.now();const a=1e4;let n=function(){Date.now()-i>a?t("Timeout. Google analytics hasn't loaded!"):"function"==typeof window.ga&&ga.loaded?e():setTimeout(n,500)};n()}),o1=e=>{null!==document.getElementById(e)&&n1().then(()=>{document.getElementsByName("hdnGATrackID")[0].value="UA-37287893-1",ga(function(){var e=ga.getAll()[0],t=e.get("clientId"),e=e.get("userId");document.getElementsByName("hdnGAClientID")[0].value=t,document.getElementsByName("hdnGAUserID")[0].value=e})}).catch(console.error)},p1=e=>{null!==document.getElementById(e)?n1().then(()=>{ga(function(){var e=ga.getAll()[0].get("clientId");document.getElementsByName("hdnGAClientID")[0].value=e,console.log(e)})}).catch(console.error):console.error("Form doesn't exist")};window.eloquaGaSf=o1,window.eloquaGaCheck=p1}