1(()=>{function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _toConsumableArray(r){return function(r){if(Array.isArray(r))return _arrayLikeToArray(r)}(r)||function(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}var initializedForms=new WeakSet;function handleFormIfReady(form){form&&!initializedForms.has(form)&&(initializedForms.add(form),function(form){var emailInput=form.querySelector('input[type="email"][name="email"]');if(emailInput){var emailWrapper=emailInput.closest(".hs-form-field"),otherFields=_toConsumableArray(form.querySelectorAll(".hs-form-field")).filter(function(field){if(field===emailWrapper)return!1;if(field.querySelector('input[type="hidden"]'))return!1;if(field.classList.contains("hs-fieldtype-booleancheckbox")){var _checkbox$name,checkbox=field.querySelector('input[type="checkbox"]');if((null==checkbox||null===(_checkbox$name=checkbox.name)||void 0===_checkbox$name?void 0:_checkbox$name.startsWith("LEGAL_CONSENT"))||field.closest(".legal-consent-container"))return!1}return!0}),richtextBlocks=_toConsumableArray(form.querySelectorAll(".hs-richtext")).filter(function(rt){return!rt.closest(".legal-consent-container")}),hideTargets=otherFields.concat(richtextBlocks);hideTargets.forEach(function(field){field.style.display="none",field.classList.add("hidden-by-js")}),emailInput.addEventListener("input",revealIfValid),emailInput.addEventListener("blur",revealIfValid),new MutationObserver(revealIfValid).observe(emailInput,{attributes:!0,attributeFilter:["value"]})}function revealIfValid(){var email;email=emailInput.value,/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)&&hideTargets.forEach(function(field){field.classList.contains("hidden-by-js")&&(field.style.display="block")})}}(form))}window.addEventListener("message",function(event){var _event$data;if("object"===_typeof(event.data)&&null!==(_event$data=event.data)&&void 0!==_event$data&&null!==(_event$data=_event$data.type)&&void 0!==_event$data&&_event$data.includes("hsFormCallback")&&"onFormReady"===event.data.eventName){var form=document.querySelector('form[data-form-id="'.concat(event.data.id,'"]'));form&&handleFormIfReady(form)}}),new MutationObserver(function(){document.querySelectorAll("form.hs-form").forEach(handleFormIfReady)}).observe(document.body,{childList:!0,subtree:!0}),window.addEventListener("load",function(){document.querySelectorAll("form.hs-form").forEach(handleFormIfReady)})})(); 2//# sourceURL=https://9253440.fs1.hubspotusercontent-na1.net/hubfs/9253440/hub_generated/template_assets/1/191429135379/1789502847260/template_form-shortening.js
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.