localDataServices.service("payableSelectionData",["$http","$rootScope",function(){var n=this;n.carriers=[];n.customers=[];totalItemsSelected=0;totalSelectedAmount=0;totalUnSelectedAmount=0;grandTotal=0;n.defaultSelect=function(n){return[{Id:-1,Name:n}]};n.selected={StartDate:null,EndDate:null,OlderXDays:"",CurrencyId:1,Carrier:{},Customer:{},IsPaid:!1,ToBeMarked:[]}}]);localDataServices.service("addressData",["$http","$rootScope",function(n,t){function r(n,t){this[t]=n}function u(n){return this[n]}var i=this;i.locationCache={add:r,contains:u};i.carrierCache={add:r,contains:u};i.cacheLocations=function(r,u,f){r.forEach(r=>{i.locationCache.contains(r)||n.get(`${t.ExpediteApi}/location/${r}`).then(function({data:e}){i.locationCache.add(e,r);n.get(`${t.ExpediteApi}/location/${r}/schedule`).then(function({data:n}){i.locationCache.contains(r)&&(i.locationCache[r]={...i.locationCache[r],...n});u&&u(i.locationCache[r])},function({data:n,status:t}){f&&f(n,t)})},function({data:n,status:t}){f&&f(n,t)})})};i.cacheCarriers=function(r,u,f){r.forEach(r=>{i.carrierCache.contains(r)||n.get(`${t.ExpediteApi}/carrier/${r}`).then(function({data:n}){i.carrierCache.add(n,r);u&&u(n)},function({data:n,status:t}){f&&f(n,t)})})};i.getLocation=function(n,t){i.locationCache.contains(n)?t(i.locationCache[n]):i.cacheLocations([n],function(){t(i.locationCache[n])},function(){})};i.getCarrier=function(n,t){i.carrierCache.contains(n)?t(i.carrierCache[n]):i.cacheCarriers(n,function(){t(i.carrierCache[n])},function(){})}}]);localDataServices.service("contactData",["$http","$rootScope",function(n,t){function r(n,t){this[t]=n}function u(n){return this[n]}var i=this;i.defaultSelect=function(n){return[{Id:-999,Display:"Select "+(n||"Value"),Name:"Select "+(n||"Value")}]};i.cache={add:r,contains:u};i.cacheContacts=function(r,u,f,e){(e||!i.cache.contains(r))&&n.get(`${t.ExpediteApi}/location/${r}/contact?shallow=true`).then(function({data:n}){i.cache.add(n,r);u&&u(n)},function({data:n,status:t}){f&&f(n,t)})};i.getContacts=function(n,t){i.cache.contains(n)?t(i.cache[n]):i.cacheContacts(n,function(){t(i.cache[n])},function(){})}}]);localDataServices.service("notesFailuresUtilityData",["$http","$rootScope",function(){var n=this;n.notesFailures=[];n.serviceFailures=[];n.defaultSelect=function(n){return[{Id:-999,Name:"- Select "+n+" -"}]};n.selected={NoteFailure:{},ServiceFailure:{},Notes:"",ShipmentIds:""}}]);localDataServices.service("ratesToolData",[function(){var n=this;n.accounts=[];n.customers=[];n.invoiceItemTypes=[];n.rateGroups=[];n.modeGroups=[];n.modeTypes=[];n.defaultSelect=function(n){return[{Id:-999,Name:"- Select "+n+" -"}]};n.selected={Account:{},Customer:{},InvoiceItemType:{},RateGroup:{},ModeGroup:{},ModeType:{},Amount:null,EffectiveDate:null,EndDate:null}}]);localDataServices.service("carrierMaintenanceData",["$http","$rootScope",function(n,t){var i=this;i.accounts=[];i.modeGroups=[];i.trustedLocations=[];i.hasTrustedLocationsOrError=!1;i.isCarrierCostRequired=!1;i.defaultTrustedLocations=[{Id:t.carrierId,Name:"Home Location"},{Id:-999,Name:"All Locations"}];i.searchBoxTypes=[{id:"Shipment",name:"Shipment #"},{id:"PRO",name:"PRO #"},{id:"Project",name:"Project #"}];i.selected={accounts:[],modeGroups:[],searchBoxType:i.searchBoxTypes[0],searchBoxText:"",trustedLocation:{}}}]);localDataServices.service("scheduleData",["$http","$rootScope",function(){var n=this;n.selected={flag:!0,kendoscheduledata:[]}}]);localDataServices.service("dynamicTrackingData",[function(){var n=this;n.searchboxtypes=function(n){var t=[{id:"Ship",name:"Shipment #"},{id:"Proj",name:"Project ID"},{id:"Auth",name:"Auth Code"},{id:"BOL",name:"BOL"},{id:"Pedimento",name:"Pedimento #"},{id:"WO",name:"Work Order"},{id:"GL",name:"GL #"},{id:"PO",name:"PO #"},{id:"WBS",name:"WBS"}];return n?_.reject(t,"id","BOL"):t};n.statusTypes=function(n){var t=[{ID:0,Name:"0: Pending Shipment"},{ID:1,Name:"1: Carrier Unassigned"},{ID:2,Name:"2: Carrier Assigned/En Route to Pickup"},{ID:4,Name:"4: At Shipper"},{ID:5,Name:"5: En Route to Destination"},{ID:6,Name:"6: At Destination"},{ID:7,Name:"7: Shipment Delivered"}];return n?_.reject(t,"ID",0):t}}]);localDataServices.service("alertTypesData",["$http","$rootScope",function(n,t){var r=this,i={},u=function(r){i={};n.get(`${t.ExpediteApi}/alert-type`).then(function({data:n}){for(var t=0;tn.Status!==0);i.customerCache.add(t);r&&r(t)},function({data:n,status:t}){u&&u(n,t)})};i.getCustomerById=function(n,t){i.customerCache.contains(n)?t(i.customerCache[n]):i.addCustomersToCache(function(){t(i.customerCache[n])},function(){})}}]);localDataServices.service("orderEntryData",[function(){var n=this,t;for(n.packagingTypes=[{Id:0,Name:"Unspecified"},{Id:1,Name:"Bins"},{Id:2,Name:"Skids"},{Id:3,Name:"Containers"},{Id:4,Name:"Racks"},{Id:5,Name:"Totes w/ Lids"},{Id:6,Name:"Totes w/o Lids"},{Id:7,Name:"Other"}],n.defaultSelect=function(n){return[{Id:-999,Display:"Select "+(n||"Value"),Name:"Select "+(n||"Value")}]},n.paymentTermsList=[{Id:-999,Name:"Select Value"},{Id:3,Name:"Collect"},{Id:2,Name:"Prepaid"},{Id:4,Name:"Third Party"}],n.costAllocationPercentages=[],t=100;t>=0;t--)n.costAllocationPercentages.push({Id:t,Name:t+" % "})}]);localDataServices.service("projectTrackingData",["$http","$rootScope",function(n,t){var i=this;i.isAdmin=t.isAdmin||t.isSuperAdmin?!0:!1;i.isCustomer=t.isCustomer||t.customerLocationId>0?!0:!1;i.customerId=t.customerLocationId;i.customers=[];i.hasTrustedLocationsOrError=!1;i.hasEPOD=!1;i.hasCost=!1;i.modeTypes=[];i.trustedLocations=[];i.dateRangeTypes=[{id:"CalledIn",name:"Called-In Date"},{id:"Ready",name:"Ready Date"}];i.defaultTrustedLocations=[{Id:t.customerLocationId,Name:"Home Location"},{Id:-999,Name:"All Locations"}];i.searchBoxTypes=[{id:"Project",name:"Project #"},{id:"Auth",name:"Auth Code"},{id:"Route",name:"Route #"}];i.completedStatuses=[{ProjectStatusId:6,Name:"Completed"},{ProjectStatusId:7,Name:"Cancelled"}];i.selected={carrier:"",consignee:"",customers:[],dateRangeType:i.dateRangeTypes[0],dateStart:"",dateEnd:"",intransit:!0,modeTypes:[],searchBoxType:i.searchBoxTypes[0],searchBoxText:"",shipper:"",statuses:[],trustedLocation:{}};i.searchResults=[];i.searchResultsSchema={}}]);localDataServices.service("shipmentDetailsData",[function(){"use strict";var n=this;n.allPackagingTypes="";n.drivers="";n.equipment=[];n.newDimension="";n.pristineShipment="";n.shipment=""}]);localDataServices.service("countryData",[function(){var n=this;n.countryTypes=[{id:0,value:"All"},{id:1,value:"United States"},{id:2,value:"Canada"},{id:3,value:"Mexico"}]}]);localDataServices.service("departmentData",[function(){var n=this;n.departmentTypes=["ASME","AME","AMEPT","AVE","Repair Rack","Repair Cont.","Procurement","Engineering","Kankakee","Facilities","MOPAR","MLM"]}]);localDataServices.service("unitOfMeasureData",[function(){var n=this;n.unitOfMeasureTypes=[{id:1,value:"Each"},{id:2,value:"Lot"},{id:3,value:"Set"}]}])