1ACC.warranty={_autoload:[["bindWarrantyStatusForm",$("#warranty-status-form").length>0],["bindWarrantyFormEvents",$("#warranty-status-form").length>0]],bindWarrantyStatusForm:function(){$("#warranty-status-form").validate({ignore:".ignore",rules:{hiddenRecaptcha:{required:function(){if(typeof grecaptcha!="undefined"){return(grecaptcha.getResponse(localStorage.getItem("#warranty-status-form_captchaId"))=="")}else{return $("#warranty-status-form #g-recaptcha_widget iframe").length>0}}}},messages:{hiddenRecaptcha:{required:function(){return $(".g-recaptcha_error").first().text()}}},invalidHandler:function(b,a){},errorPlacement:function(a,b){if(b.attr("name")=="country"){a.insertAfter("#country")}else{if(b.attr("name").includes("serialNumbers")){a.insertAfter($($(b)[0]).parent()[0])}else{if(b.attr("name")=="recaptchaChallangeAnswered"){a.insertAfter("#g-recaptcha_widget")}else{a.insertAfter(b)}}}},submitHandler:function(a){a.submit()}})},bindWarrantyFormEvents:function(){$(document).on("click keypress",".remove-code",function(a){if(a.which===1||a.which===13){ACC.warranty.remove_code(this)}});$(document).on("click","#warranty_adder",ACC.warranty.add_code_field)},adjust_input_names:function(){$(".serialNumbers .removable").each(function(a){var b="serialNumbers["+a+"]";$($(this).find("input")[0]).attr({name:b,id:b});$($(this).find("label")[0]).attr("for",b);var c=$(this).siblings(".error")[0];if(!helpers.is_empty(c)){$(c).attr("id",b+"-error");$(c).attr("for",b)}});$("#warranty-status-form").validate()},add_code_field:function(){var a=$(".serialNumbers");var d=a.find("input");var b=10;if(d.length>=b){$("#add-code").toggleClass("hidden",true);return}$new_code_field=d.first().closest(".row").clone();var c=$new_code_field.find("input");$new_code_field.find("label.error").remove();c.val("");c.removeClass("error");c.toggleClass("valid",true);c.attr("aria-invalid",false);$new_code_field.find(".remove-code").removeClass("hidden");a.append($new_code_field);ACC.warranty.adjust_input_names();if(d.length==b-1){$("#add-code").toggleClass("hidden",true)}},remove_code:function(a){if($(".serialNumbers input").length<=1){return}$(a).parents(".row")[0].remove();$("#add-code").toggleClass("hidden",false);ACC.warranty.adjust_input_names();$("#warranty-status-form").validate()}};
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.