https://www.nextiva.com/wp-content/themes/nextiva-2024-v2/assets/b…/js/text-fields.js?ver=1790799620
1!function(t){"use strict";var e;function n(t){return t.closest(".nextiva-hubspot-v2, .nextiva-hubspot-form, .nextiva-form-v2").length>0}"function"!=typeof t.fn.mask&&console.warn("jQuery Mask Plugin is not loaded."),t("input, select, textarea").on("focus blur",(function(){t(this).parent().toggleClass("focus-ct")})),e=jQuery.fn.addClass,jQuery.fn.addClass=function(){var n=e.apply(this,arguments);return t(this).trigger("ClassChanged"),n},t((function(){t("input, select, textarea").bind("ClassChanged",(function(){t(this).parent().removeClass("valid-ct error-ct"),t(this).hasClass("error")?t(this).parent().addClass("error-ct"):t(this).hasClass("valid")&&t.trim(t(this).val())&&t(this).parent().addClass("valid-ct")})),t("select").on("change",(function(){t.trim(t(this).val())&&(t(this).removeClass("error"),t(this).parent().removeClass("error-ct"),t(this).parent().addClass("valid-ct"),t(this).next().remove())}))})),t("input.required").trigger("ClassChanged"),t(document).on("focus","input[name*='phone']",(function(){var e=t(this);if(!n(e)){var s=e.closest("form.nextiva-form"),a=s.length?(s.data("c
1ountry")||"").toLowerCase():"us",r=function(t){var e=t.replace(/\D/g,"");return"gb"===a||"uk"===a?e.length>10?"0 00-0000-0000":"00-0000-0000":"es"===a?e.length>=9?"000 000 000":"00 000 000":e.length>=11?"0 (000) 000-0000":e.length>=10?"(000) 000-0000":"000000000000"},i={onKeyPress:function(e,n,s,a){var i=r(e);t(s).mask(i,a)},clearIfNotMatch:!1};e.mask(r(e.val()),i)}})),t(document).on("input keyup blur","input[name*='phone']",(function(){var e=t(this);if(!n(e)){var s=e.val().replace(/\D/g,""),a=e.closest("form.nextiva-form"),r=a.length?(a.data("country")||"").toLowerCase():"us";("gb"===r||"uk"===r?11===s.length:"es"===r?9===s.length:10===s.length||11===s.length)?e.removeClass("error invalid").addClass("valid").trigger("ClassChanged"):e.removeClass("valid").addClass("error invalid").trigger("ClassChanged")}})),setTimeout((function(){t(".form-ct input.required").each((function(){t.trim(t(this).val())&&t(this).blur().parent().removeClass("focus-ct").addClass("loaded")}))}),100),t(document).on("submit","form.nextiva-form",(function(){t(this).find("input[name*='phone']").each((function(){const e=t(this);
1e.hasClass("valid")||e.trigger("input")}))}))}(jQuery);
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.