xpoNlmModule.directive("xpoNlmAsnUpdateRequiredResolution",["$rootScope",function(n){return{restrict:"E",templateUrl:`${n.WebClientPath}/Modules/XpoNlm/AlertResolution/DirectiveTemplates/AsnUpdateRequiredResolution.html`,scope:{alertDetails:"=",resolution:"=",controlsDisabled:"="},controller:[function(){}]}}]);xpoNlmModule.directive("xpoNlmCriticalShipmentResolution",["$rootScope",function(n){return{restrict:"E",templateUrl:`${n.WebClientPath}/Modules/XpoNlm/AlertResolution/DirectiveTemplates/CriticalShipmentResolution.html`,scope:{alertDetails:"=",resolution:"=",controlsDisabled:"="},controller:["$scope",function(n){n.$watch("alertDetails.ETACalculatedAttempts",function(){n.handleChanges(n.alertDetails.ETACalculatedAttempts)});n.handleChanges=function(t){t?(delete n.resolution.AcceptETAPastProtect,delete n.resolution.RevisedEta,delete n.resolution.ContinueToMonitor,delete n.resolution.ContinueToMonitorNote,delete n.resolution.WasPlantNotified,delete n.resolution.PlantNotNotifiedNote):(n.alertDetails.calculatedETA&&n.alertDetails.calculatedETA.CalculatedArrivalDateTime!=""&&(n.resolution.CalculatedEta=n.alertDetails.calculatedETA.CalculatedArrivalDateTime),n.alertDetails.calculatedETA.CalculatedArrivalDateTime"+n.ShipperLocationCity+", "+n.ShipperLocationState+" "+n.ShipperLocationZip+"
"+n.ShipperLocationPhone};r.consigneePopup=function(n){return u(n.ConsigneeLocationAddress)+"
"+n.ConsigneeLocationCity+", "+n.ConsigneeLocationState+" "+n.ConsigneeLocationZip+"
"+n.ConsigneeLocationPhone};r.openAwardActivity=function(n){window.open("/admin/shd.asp?ShdP=Console&OpenSection=AwardActivity&ShpId="+n.ShipmentId,"ShipmentConsole","width=1024,height=768,scrollbars=yes,toolbar=0,menubar=1,resizable=1")};r.openCheckCall=function(n){window.open("/admin/admCheckCall.asp?ShpId="+n.ShipmentId,"checkcall","width=1024","height=768","scrollbars=yes","toolbar=0","menubar=1","resizable=1")};r.isDepartLate=function(n){var t=moment(n.ShipperDepartureTime,"dd/mm/yyyy HH:mm"),i=moment(n.ShipperMustDepartTime,"yyyy-mm-dd HH:mm:ss");return t.isValid()&&i.isValid()?t#=ShipmentId#<\/a> #if(ShipmentStatus > 1){##if(!CheckCallStatus){#<\/input>#} else if(CheckCallStatus == 2){#<\/input>#} else if (CheckCallStatus == 1){#<\/input>#} else if (ModeGroupId == 1 || ModeGroupId == 2 || ModeGroupId == 9) {#<\/input>#}##}#