1GroupOrderBatch=function(){};Common.InitFunctions.push(function(){Common.BlockOnLeave=!1;var n=new GroupOrderBatch;$(document).on("click","a.GroupOrderRemoveShipTo",function(n){n.preventDefault();$("#BatchRow_"+$(this).data("sequence")).remove()});$('a[id^="StatusLink_"]').unbind("click").bind("click",function(n){n.preventDefault()});$("a[data-vibedialoglink=1]").unbind("click.Batch").bind("click.Batch",function(n){n.preventDefault();var t=this,i=$(t).prop("title");(i==null||i==="")&&(i=$(t).text());Dialog.CreateFromURL($(t).prop("href"),i,null,{DialogLink:t,initFunction:function(n,t){$(window).on("window:resize",function(){Dialog.ResetPosition(n,t)})}})})});GroupOrderBatch.prototype.Process=function(n,t,i,r,u){var h,c;if(n.length===0)$("a[data-vibebutton=LinkProcessSelected]").removeClass("ui-autocomplete-loading"),Validation.DisplayErrorMsgs(["Selected documents have finished processing."," Please review status column for Success/failure notification."]),$("#GroupOrderID").hval(r);else{var e=n.shift(),l=$(e).data("documentid"),o=$(e).data("sequence"),s=this,f=$("#StatusLink_"+o);$(f).removeClass("Error");$(f).removeClass("Warning");$(f).addClass("ui-autocomplete-loading");$(f).text("Processing");h={ShipToID:l,GroupOrderID:r,Header:t,ProductLines:i};c=$(u).attr("href");$.ajax({url:c,data:h,success:function(r){$(f).removeClass("ui-autocomplete-loading");s.ProcessResult(o,r,u);s.Process(n,t,i,r.GroupOrderID,u)}})}};GroupOrderBatch.prototype.ProcessSelected=function(n,t,i){if($(":checkbox.DocumentIDCheckBox:checked").length===0)Validation.DisplayErrorMsgs("No ShipTo needs to be processed.");else{window.HasSuccessfulGroupOrder=!1;var r=this;$(n).addClass("ui-autocomplete-loading");r.Process($(":checkbox.DocumentIDCheckBox").get(),t,i,null,n)}};GroupOrderBatch.prototype.ProcessResult=function(n,t,i){var o=this,u=t.Success,r=$("#StatusLink_"+n),f=$("#DocumentID_"+n),e;u!==""?($(r).text("Failed"),$(r).addClass("Error"),e="<table><tr><th>"+$(r).hval()+"<\/th><\/tr><tr><td>"+u+"<\/td><\/tr><\/table>",$(r).unbind("click").bind("click",function(n){n.preventDefault();Dialog.Create(e,"Status",{initFunction:function(n,t){$(window).on("window:resize",function(){Dialog.ResetPosition(n,t)})}})})):($(i).data("repeatable")||$(f).prop("disabled",!0),$(f).hval(!1),$(r).text("Successful"),window.HasSuccessfulGroupOrder=!0,$(r).unbind("click").bind("click",function(n){n.preventDefault();Dialog.CreateFromURL(window.urlApplication+"/ShopCart/CheckoutSuccess?skipLayout=1&id="+t.ShopCartID+"&creditCheckMessage="+t.CreditCheckMessage,"Checkout successfully",null,{DialogLink:this,initFunction:function(n,t){$(window).on("window:resize",function(){Dialog.ResetPosition(n,t)});VenderePage.InitHeight($("div.VenderePageElementOuterDiv > div.VenderePageElementDiv",n),!0);VenderePage.InitLinks(n)}})}))}
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.