function guid(){function n(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return n()+n()+"-"+n()+"-"+n()+"-"+n()+"-"+n()+n()+n()}function guid(){function n(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return n()+n()+"-"+n()+"-"+n()+"-"+n()+"-"+n()+n()+n()}var eip,consts,eipNotification,eipAjax;$(document).ready(function(){$(".megamenu li .dropdown_fullwidth").css("opacity",0);$(".megamenu li").hover(function(){$(this).siblings().children(".dropdown_fullwidth").stop(!0).fadeTo("slow",0,function(){this.style.display="none"});$(this).children(".dropdown_fullwidth").stop(!0).fadeTo("slow",1).css("display","block")},function(){$(this).children(".dropdown_fullwidth").stop(!0).fadeTo("slow",0,function(){this.style.display="none"})});$(document).on("click",".helptext",function(n){var t,i,r;n.preventDefault();n.stopPropagation();t=$(this);t.addClass("disabled");i=t.attr("data-title");r=t.attr("data-dgid");$("#helptextBody").html("");$.ajax({url:"/Info/RenderHelpText/"+$(this).attr("data-articleid")+"/"+$(this).attr("data-did"),type:"GET"}).done(function(n){var u=$(n);$("#myModalLabel_helptextTitle").text(i);u.find("#helpMetaData").length&&u.find("#helpMetaData").attr("href","/vPage/dbug-datawindow-metadata/153/0/DWID="+r);u.appendTo("#helptextBody");$("#myModal_helpText").removeClass("hide");t.removeClass("disabled");$("#myModal_helpText").modal("show")}).fail(function(n){$("#myModalLabel_helptextTitle").text(i);n.find("#helpMetaData").length&&n.find("#helpMetaData").attr("href","/vPage/dbug-datawindow-metadata/153/0/DWID="+r);$("#helptextBody").html('<br/><p class="text-danger">Error receiving help content. Please contact system administrator.<\/p>');$("#myModal_helpText").removeClass("hide");t.removeClass("disabled");$("#myModal_helpText").modal("show")})});$("input.j-no-entry").attr({autocomplete:"off"}).on("keypress keydown",function(n){var t=$(this);return t.val(t.val()),(n.keyCode===8||n.keyCode===46)&&t.val(""),n.keyCode===9});$(document).on("click",".j-att-del-axn",function(n){var t=confirm("Are you sure that you want to delete this document?");if(t==!0){var i=$(this),r='<form id="attDelFrm" method="POST" action="{0}" ><\/form>'.format(i.attr("href")),u=$("body").append(r);$("#attDelFrm").submit();n.preventDefault()}else return!1})});consts=consts||{},function(n){function t(t,i){n[t]=i}n=n||{};$.extend(n,{addProp:t,emptyGuid:"00000000-0000-0000-0000-000000000000",alertErroMsgHtml:'<!-- j-PageErrorMessageSection --><div class="j-pems"><!-- j-PageErrorMessage --><div class="alert alert-danger text-center j-pem" role="alert"><ul><\/ul><\/div><\/div>',alertInfoMsgHtml:'<!-- j-PageInfoMessageSection --><div class="j-pims"><!-- j-PageInfoMessage --><div class="alert alert-info text-center j-pim" role="alert"><\/div><\/div>',historyLogHtml:'<div class="row j-hlmp"><div class="col-lg-12"><label for="txtHistoryLogComments" class="control-label">{0}<\/label><\/div><div class="col-lg-12"><textarea id="txtHistoryLogComments" class="form-control"><\/textarea><\/div><\/div>',npiMsgCssClass:"j-npi-v",npiReqTxtSelector:"#requestForNpiNameChange",npiReqMsgHtml:'<div class="row contact-req-row"><div class="col-md-12 text-center npi-msg alert alert-info"><\/div><\/div>',npiSecSelector:".contact-req-sec",existUserActivationReqMsg:"Request exists to activate this profile",panelMessageHtml:'&nbsp;&nbsp;<span class="j-tt j-pa" title="Pending Request" ><i class="fa fa-lg fa-exclamation-triangle text-danger"><\/i><\/span>',sendBackPanelMessageHtml:'&nbsp;&nbsp;<span class="j-tt j-pa" title="Request Send Back" ><i class="fa fa-lg fa-reply-all text-danger"><\/i><\/span>',canceledPanelMessageHtml:'&nbsp;&nbsp;<span class="j-tt j-pa" title="Request Canceled by Admin" ><i class="fa fa-lg fa-times text-danger"><\/i><\/span>',npiValRowCssClass:"j-npi-val-row",npiValId:"npiNumberVal",authItemSecHtml:'<label for="{0}" class="btn btn-{1}"><i class="fa fa-lg {}"><\/i><\/label>',notificationCancelReq:'<span class="pull-right ntfy-cancel" ><a onclick="eipUserProfile.profile.actDeactCancelReq({0})">Cancel Request<\/a><\/span>',reportDynamicText:'<div class="row col-md-12"><div class="well text-center"><b>{0}<\/b><\/div><\/div><br />',claimsToChangeSecHtml:'<div><h5>{0}<\/h5><br /><div class="k-widget k-grid k-reorderable k-grid-lockedcolumns" style="height: 120px" data-role="grid"><div class="k-grid-header" style="padding-right: 23px;"><div class="k-grid-header-wrap" data-role="resizable" ><table role="grid" ><thead role="rowgroup"><tr role="row"><th role="columnheader" rowspan="1" data-title="Scheduled Date" class="k-header" >Scheduled Date<\/th><th role="columnheader" rowspan="1" data-title="Current Status" class="k-header">Current Status<\/th><\/tr><\/thead><\/table><\/div><\/div><div class="k-grid-content" style="height: 92px"><table role="grid" ><tbody role="rowgroup">{1}<\/tbody><\/table><\/div><\/div><\/div>',claimsToChangeRowHtml:'<tr role="row"><td role="gridcell"><div style="text-align: left">{0}<\/div><\/td><td role="gridcell">{1}<\/td><\/tr>',messages:{header:{companyDateValidation:"Company Details",contactSec:"Contact Details",licSec:"Licence details",discSec:"Disciplines details",confirmation:"Please Confirm"},text:{invalidNpi:"Invalid NPI number. Please check again.",companyDateValidation:"Company End Date cannot be same or before Company Start date.",userManagementNotSubmitedQueueDesc:"User information not yet completed or submitted for OSSE approval.",userManagementPendingQueueDesc:"User information submitted to OSSE Admin and waiting approval.",userManagementActiveQueueDesc:"Users currently active that can be assigned cases.",userManagementInActiveQueueDesc:"Users currently inactive that cannot be assigned cases.",userManagementAllQueueDesc:"A view of all active and inactive users.",userManagementExpiredLicenseQueueDesc:"Users with expired licenses.",userManagementExpiredCertificateQueueDesc:"Users with expired certificates.",adminApprovalRoleReq:"Please select a role to approve and add a user in the system.",draftSavedSuccess:"Draft saved successfully.",draftSavedFailed:"Error saving draft.",draftDeletedSuccess:"Draft deleted successfully.",userProfileApprovedSuccess:"User Profile approved successfully.",userProfileRequestedSuccess:"Request submitted successfully.",licFailuer:"This message is from licence failure.",adminNoRoleSelected:"No roles selected. Please select at least one role",noRoleAssigned:"Profile cannot be approved without assigning any roles",atleastOneRoleReqd:"A profile should have atleast one role assigned to it.",userNoRoleRequested:"Request for at least one role.",adminToOSSE:"Admin is to be assigned to OSSE company only",adminRoleForFSS:"Select Admin role first to assign the user Family Services Supervisor",notAuthForFSS:"You are not authorized to submit the profile for Family Services Supervisor",discAssgndWoNpi:"Disciplines can not be assigned without valid NPI",discReqdWoNpi:"Disciplines can not be requested without valid NPI",areYouSure:"Are you sure",draftDeleteConfirmation:"Are you sure, you want to delete draft user and requests(if any)?",discardChangesConfirmation:"Are you sure you want to discard you changes?",cancelRequest:"Are you sure you want to cancel your approval pending request?",sendBackRequest:"Are you sure you want to send back your approval pending request?",requestSubmitted:"{0} request submitted successfully.",secUpdatedSuccess:"{0} updated successfully.",secCreatedSuccess:"{0} created successfully.",companyWoCFSLP:"Selected company does not have active CF-SLP Supervisors",activateUserWoRole:"User with no roles assigned cannot be activated",adminDeactivationReq:"This profile is requested for deactivation. Are you sure you want to deactivate?",userDeactivationReq:"This profile is requested for deactivation. Are you sure you want to request to deactivate?",adminActivationReq:"This profile is requested for Activation. Are you sure you want to Activate?",userActivationReq:"This profile is requested for Activation. Are you sure you want to request to Activate?",reqToActDeactSubmtdCmpltdSuccess:"Request to {0} {1} successfully",contactsSavedSuccess:"Contact Details saved successfully.",validationErrors:"Please complete all required fields and fix validation errors(if any) in contact details.",dateCompareValidation:"End Date cannot be before Start Date",incompleteSupervisorFields:"Please input all Supervisor fields",supervisorDateCompareValidation:"Supervisor End Date cannot be before Supervisor Start date",startAndSupervisorDateCompareValidation:"Supervisor Start Date cannot be before the User's Start Date",deactivateReqExists:"Request exists to deactivate this profile",npiNameChangeSuccess:"Information updated successfully.",deleteSrvcItemConfirmation:"Are you sure, you want to delete the selected {0}?",authNoSelectionCompReq:"Please make a selection to {0} the request.",authNoPendingReqExists:"No pending request exists to complete this action",discplinesReqForServProvEval:"Disciplines is required when service provider or evaluator is selected"}}})}(consts);String.prototype.format=function(){var n=this;for(i in arguments)n=n.replace("{"+i+"}",arguments[i]);return n};String.prototype.formatStringArray=function(n){var r=this,i,t;if(_.isArray(n)&&n.length>0){for(i="",t=0;t<String.length;t++)i+=r.format(n[t]);return i}return r};String.prototype.formatJsonObject=function(n){var t=this;return _.isObject(n)?t.formatStringArray(_.values(n)):t};String.prototype.toSingular=function(){var n=this[this.length-1];return n.toLowerCase()==="s"?this.slice(0,-1):this};String.prototype.toDate=function(n){var t={hasError:!0,result:kendo.format("\n\n {0} is not a valid date",n)},r,i;return this?(r=(this.match(/\//g)||[]).length,r===2?(i=Date.parse(this),isNaN(i)?t:{result:i,originalStr:this}):t):t};Date.prototype.yyyymmdd=function(n){var t=this.getMonth()+1,i=this.getDate();return[this.getFullYear(),(t>9?"":"0")+t,(i>9?"":"0")+i].join(n?n:"")};Date.prototype.mmddyyyy=function(n){var t=this.getMonth()+1,i=this.getDate();return[(t>9?"":"0")+t,(i>9?"":"0")+i,this.getFullYear()].join(n?n:"")};$.fn.treDisableControls=function(){this.attr({readonly:"readonly",disabled:"disabled"}).addClass("disabled")};$.fn.treEnableControls=function(){this.removeAttr("readonly disabled").removeClass("disabled")},function(n){var t=function(){function n(){function n(n){function t(){$("span.dp-disable-date").remove();$("a.dp-disable-date").addClass("k-link").removeClass("dp-disable-date");_.forEach(n,function(n){var i=n.getFullYear(),r=n.getMonth(),u=n.getDate(),t=$("a[data-value='{0}/{1}/{2}']".format(i,r,u)),f=t.siblings("span.dp-disable-date");f.length==0&&(t.after('<span tabindex="-1" class="dp-disable-date" data-value="{0}" title="{1}" >{2}<\/span>'.format(t.attr("data-value"),t.attr("title"),t.text())),t.removeClass("k-link").addClass("dp-disable-date"))})}var i=$(this),r=$("#{0}_dateview".format(i.attr("id")));t();$(".k-link").on("click",t)}function t(){var n=$(this);if(arguments.length>1)n.val(JSON.stringify(arguments[1]));else return JSON.parse(n.val())}$.fn.disableKendoDatepickerDates=n;$.fn.jsonVal=t}return n}();n.plugins=t}(eip||(eip={}));new eip.plugins;String.prototype.format=function(){var n=this;for(i in arguments)n=n.replace("{"+i+"}",arguments[i]);return n};String.prototype.formatStringArray=function(n){var r=this,i,t;if(_.isArray(n)&&n.length>0){for(i="",t=0;t<String.length;t++)i+=r.format(n[t]);return i}return r};String.prototype.formatJsonObject=function(n){var t=this;return _.isObject(n)?t.formatStringArray(_.values(n)):t};String.prototype.toSingular=function(){var n=this[this.length-1];return n.toLowerCase()==="s"?this.slice(0,-1):this};String.prototype.toDate=function(n){var t={hasError:!0,result:kendo.format("\n\n {0} is not a valid date",n)},r,i;return this?(r=(this.match(/\//g)||[]).length,r===2?(i=Date.parse(this),isNaN(i)?t:{result:i,originalStr:this}):t):t};Date.prototype.yyyymmdd=function(n){var t=this.getMonth()+1,i=this.getDate();return[this.getFullYear(),(t>9?"":"0")+t,(i>9?"":"0")+i].join(n?n:"")};Date.prototype.mmddyyyy=function(n){var t=this.getMonth()+1,i=this.getDate();return[(t>9?"":"0")+t,(i>9?"":"0")+i,this.getFullYear()].join(n?n:"")};$.fn.treDisableControls=function(){this.attr({readonly:"readonly",disabled:"disabled"}).addClass("disabled")};$.fn.treEnableControls=function(){this.removeAttr("readonly disabled").removeClass("disabled")};$.fn.panelMessage=function(n){var r=$(this).closest(".panel-collapse.collapse"),u=r&&r.length>0?r.siblings(".panel-heading"):[],t=u&&u.length>0?u.find(".panel-title").parent():[],i;if(t.length>0)if(n){if(t.siblings("span.j-tt").length===0&&(t.after(n),i=$("span.j-tt").kendoTooltip({filter:"span",width:120,position:"top"}).data("kendoTooltip"),i))$("span.j-tt").on("mouseover",function(){i.show($(this))}).on("mouseout",function(){i.hide($(this))})}else t.siblings("span.j-pa").remove()};$(function(){function n(n){return n/1048576}$.validator.unobtrusive.adapters.addSingleVal("maxfilesize","maxsize");$.validator.addMethod("maxfilesize",function(t,i,r){return this.optional(i)||n(i.files[0].size)<=parseFloat(r)});$.validator.unobtrusive.adapters.addSingleVal("filetype","filetypes");$.validator.addMethod("filetype",function(n,t,i){var u,r;if(i=i.indexOf(",")>-1?i.split(","):[i],u=n.split(".")[n.split(".").length-1],u.length===0)return!0;for(r=0;r<i.length;r++)if(i[r].toLowerCase()==="."+u.toLowerCase())return!0;return!1});$.validator.unobtrusive.adapters.add("dateafter",["otherpropertyname","allowsame"],function(n){n.rules.dateafter=n.params;n.message&&(n.messages.dateafter=n.message)});$.validator.addMethod("dateafter",function(n,t,i){var r=$(this.currentForm).find('input[name="'+i.otherpropertyname+'"]').val(),u,f;return!r||!n?!0:moment(n).isValid()?moment(r).isValid()?(u=moment(n),f=moment(r),i.allowsame==="false"&&u.isBefore(f))?!1:u.isSameOrBefore(f)?!1:!0:!0:!0},"")});consts=consts||{},function(n){function t(t,i){n[t]=i}n=n||{};$.extend(n,{addProp:t,emptyGuid:"00000000-0000-0000-0000-000000000000",alertErroMsgHtml:'<!-- j-PageErrorMessageSection --><div class="j-pems"><!-- j-PageErrorMessage --><div class="alert alert-danger text-center j-pem" role="alert"><ul><\/ul><\/div><\/div>',alertInfoMsgHtml:'<!-- j-PageInfoMessageSection --><div class="j-pims"><!-- j-PageInfoMessage --><div class="alert alert-info text-center j-pim" role="alert"><\/div><\/div>',historyLogHtml:'<div class="row j-hlmp"><div class="col-lg-12"><label for="txtHistoryLogComments" class="control-label">{0}<\/label><\/div><div class="col-lg-12"><textarea id="txtHistoryLogComments" class="form-control"><\/textarea><\/div><\/div>',npiMsgCssClass:"j-npi-v",npiReqTxtSelector:"#requestForNpiNameChange",npiReqMsgHtml:'<div class="row contact-req-row"><div class="col-md-12 text-center npi-msg alert alert-info"><\/div><\/div>',npiSecSelector:".contact-req-sec",existUserActivationReqMsg:"Request exists to activate this profile",panelMessageHtml:'&nbsp;&nbsp;<span class="j-tt j-pa" title="Pending Request" ><i class="fa fa-lg fa-exclamation-triangle text-danger"><\/i><\/span>',npiValRowCssClass:"j-npi-val-row",npiValId:"npiNumberVal",authItemSecHtml:'<label for="{0}" class="btn btn-{1}"><i class="fa fa-lg {}"><\/i><\/label>',notificationCancelReq:'<span class="pull-right ntfy-cancel" ><a onclick="eipUserProfile.profile.actDeactCancelReq({0})">Cancel Request<\/a><\/span>',reportDynamicText:'<div class="row col-md-12"><div class="well text-center"><b>{0}<\/b><\/div><\/div><br />',messages:{header:{companyDateValidation:"Company Details",contactSec:"Contact Details",licSec:"Licence details",discSec:"Disciplines details",confirmation:"Please Confirm"},text:{invalidNpi:"Invalid NPI number. Please check again.",companyDateValidation:"Company End Date cannot be same or before Company Start date.",userManagementNotSubmitedQueueDesc:"User information not yet completed or submitted for OSSE approval.",userManagementPendingQueueDesc:"User information submitted to OSSE Admin and waiting approval.",userManagementSendBackQueueDesc:"Items in this queue have been returned for review as a result of an error or the need for additional information.",userManagementCanceledByAdminQueueDesc:'Items in this queue have been rejected. Email system administrator at <a href="mailto:Operations.DCEIP@dc.gov">Operations.DCEIP@dc.gov<\/a> for additional information.',userManagementActiveQueueDesc:"Users currently active that can be assigned cases.",userManagementInActiveQueueDesc:"Users currently inactive that cannot be assigned cases.",userManagementAllQueueDesc:"A view of all active and inactive users.",userManagementExpiredLicenseQueueDesc:"Users with expired licenses.",userManagementExpiredCertificateQueueDesc:"Users with expired certificates.",adminApprovalRoleReq:"Please select a role to approve and add a user in the system.",draftSavedSuccess:"Draft saved successfully.",draftSavedFailed:"Error saving draft.",draftDeletedSuccess:"Draft deleted successfully.",userProfileApprovedSuccess:"User Profile approved successfully.",userProfileRequestedSuccess:"Request submitted successfully.",licFailuer:"This message is from licence failure.",adminNoRoleSelected:"No roles selected. Please select at least one role",noRoleAssigned:"Profile cannot be approved without assigning any roles",atleastOneRoleReqd:"A profile should have atleast one role assigned to it.",userNoRoleRequested:"Request for at least one role.",adminToOSSE:"Admin is to be assigned to OSSE company only",adminRoleForFSS:"Select Admin role first to assign the user Family Services Supervisor",notAuthForFSS:"You are not authorized to submit the profile for Family Services Supervisor",discAssgndWoNpi:"Disciplines can not be assigned without valid NPI",discReqdWoNpi:"Disciplines can not be requested without valid NPI",areYouSure:"Are you sure",draftDeleteConfirmation:"Are you sure, you want to delete draft user and requests(if any)?",discardChangesConfirmation:"Are you sure you want to discard you changes?",cancelRequest:"Are you sure you want to cancel your approval pending request?",sendBackRequest:"Are you sure you want to send back your approval pending request?",requestSubmitted:"{0} request submitted successfully.",secUpdatedSuccess:"{0} updated successfully.",secCreatedSuccess:"{0} created successfully.",companyWoCFSLP:"Selected company does not have active CF-SLP Supervisors",activateUserWoRole:"User with no roles assigned cannot be activated",adminDeactivationReq:"This profile is requested for deactivation. Are you sure you want to deactivate?",userDeactivationReq:"This profile is requested for deactivation. Are you sure you want to request to deactivate?",adminActivationReq:"This profile is requested for Activation. Are you sure you want to Activate?",userActivationReq:"This profile is requested for Activation. Are you sure you want to request to Activate?",reqToActDeactSubmtdCmpltdSuccess:"Request to {0} {1} successfully",contactsSavedSuccess:"Contact Details saved successfully.",validationErrors:"Please complete all required fields and fix validation errors(if any) in contact details.",dateCompareValidation:"End Date cannot be before Start Date",incompleteSupervisorFields:"Please input all Supervisor fields",supervisorDateCompareValidation:"Supervisor End Date cannot be before Supervisor Start date",startAndSupervisorDateCompareValidation:"Supervisor Start Date cannot be before the User's Start Date",deactivateReqExists:"Request exists to deactivate this profile",npiNameChangeSuccess:"Information updated successfully.",deleteSrvcItemConfirmation:"Are you sure, you want to delete the selected {0}?",authNoSelectionCompReq:"Please make a selection to {0} the request.",authNoPendingReqExists:"No pending request exists to complete this action",discplinesReqForServProvEval:"Disciplines is required when service provider or evaluator is selected"}}})}(consts);eipNotification={},function(n,t){function r(){return{footerOkButtonText:"OK",footerCloseButtonText:"Close",headerCloseHtml:'<span aria-hidden="true">&times;<\/span>',showHeaderDismiss:!0,showFooterCloseButton:!0,useModelStateError:!1}}function e(n){var t="<ul>";return $.each(n.Errors,function(n,i){i&&"errors"in i&&$.each(i.errors,function(){t+="<li>"+this+"<\/li>"})}),t+="<\/ul>"}function o(n,t,r){return n.constructor===Object&&(n=e(n)),i(n,t,r)}function i(t,r,u){i=i||"Server error. Something went wrong";n.clear();return n.error(kendo.format("{0} <br />",t),r,$.extend({},{timeOut:5e3},u))}function s(t,i,r){return n.info(t,i,r)}function h(t,i,r){return n.success(t,i,r)}function c(t,i,r){return n.warning(t,i,r)}function l(n,t,i){var f=$.extend({},r(),i);f.showFooterCloseButton=!1;u(n,t,f)}function a(n,t,i){var f=$.extend({},r(),i);f.showFooterCloseButton=!0;u(n,t,f)}function u(n,t,i){var r=i,u;if($("#globalNotificationModal .modal-title").text(t),$("#globalNotificationModal .modal-body").html(n),$("#globalNotificationModal .j-okay, #globalNotificationModal .j-close").off("click"),$(document).off("show.bs.modal","#globalNotificationModal"),r.showFooterCloseButton||$("#globalNotificationModal .modal-footer .j-close").hide(),r.showFooterCloseButton&&r.footerCloseButtonText&&$("#globalNotificationModal .modal-footer .j-close").text(r.footerCloseButtonText),r.footerOkButtonText&&$("#globalNotificationModal .j-okay").text(r.footerOkButtonText),r.showHeaderDismiss&&$("#globalNotificationModal .close").attr("data-dismiss","modal"),r.showHeaderDismiss&&r.headerCloseHtml&&$("#globalNotificationModal .close").html(r.headerCloseHtml),$("#globalNotificationModal .j-close").attr("data-dismiss","modal"),r.showFooterCloseButton&&r.btnClickCloseCallback)$("#globalNotificationModal .j-close").on("click",r.btnClickCloseCallback);if($("#globalNotificationModal .j-okay").attr("data-dismiss","modal"),r.btnClickOkCallback)$("#globalNotificationModal .j-okay").on("click",r.btnClickOkCallback);$("#globalNotificationModal .modal-content").on("hidden.bs.modal",function(){$("#globalNotificationModal .j-close,#globalNotificationModal .j-okay").off("click")});$("#globalNotificationModal").modal({backdrop:"static",keyboard:!1,show:!0});u=setInterval(function(){var n=$(".modal-body");if(n.children().length>0){if(r.onInit)r.onInit(n);clearInterval(u)}},500)}function v(){$("#globalSpinnerDiv").addClass("show")}function y(){$("#globalSpinnerDiv").removeClass("show")}function p(n,t,i){function s(){var i=$(e).val();n&&(t=t||{},t.BootstrapModalData=t.BootstrapModalData||{},t.BootstrapModalData.comments=i?i.trim():null,n(t))}function h(){$(e).val("").focus()}var e="#txtHistoryLogComments",o=kendo.format(consts.historyLogHtml,i?i:"Comments"),f=r();f.showFooterCloseButton=!1;f.btnClickOkCallback=s;f.onInit=h;u(o,"History Log Entry",f)}function w(){$("#globalNotificationModal").modal("hide")}function b(n,t){var r=$("div.j-pem"),i=[];r.length===0&&$("div.j-pt").after(consts.alertErroMsgHtml);$.isArray(n)?i=n:(typeof n=="string"&&(n={txt:n}),i=[n]);i.length>0&&i.forEach(function(n){n.cssClass&&f(kendo.format(".{0}",n.cssClass),!0);$("div.j-pem ul")[!t?"append":"html"](kendo.format('<li id="{2}" class="{0}">{1}<\/li>',n.cssClass||"",n.txt?n.txt.bold():n.bold(),n.id))})}function f(n,t){n?($(kendo.format(".j-pems {0}",n)).remove(),$(".j-pems li").length!==0||t||$(".j-pems").remove()):$(".j-pems").remove()}function k(n){$("div.j-pt").after(consts.alertInfoMsgHtml);$("div.j-pim").html(n.bold())}function d(t,i,r){n.clear();var u={closeButton:!1,debug:!1,newestOnTop:!1,progressBar:!1,positionClass:"toast-top-right",preventDuplicates:!1,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:0,extendedTimeOut:0,showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",tapToDismiss:!1};r==1?toastr.error(t,i,u):toastr.success(t,i,u)}return $.extend(t,{error:i,informationModal:l,modelStateError:o,info:s,success:h,confirmationModal:a,warning:c,showProgress:v,hideProgress:y,showHistoryLogEntryModal:p,hideModal:w,displayPageErrorMessage:b,displayPageInfoMessage:k,clearPageErrorMessage:f,appWideAlert:d}),t}(toastr,eipNotification);$(function(){if(sessionStorage.getItem("display_app_wide_message")==="1"){eipNotification.appWideAlert(kendo.format('{0}<br /><br /><button type="button" class="btn btn-default clear j-tstr-awm-ok">OK<\/button>',consts.appWideMessage),consts.appWideMessageHeader,sessionStorage.getItem("is_app_wide_message_error"));$(".j-tstr-awm-ok").on("click",function(){sessionStorage.setItem("display_app_wide_message","0");$(".j-tstr-awm-ok").closest(".toast.toast-error").remove()})}});eipAjax=eipAjax||{},function(n,t){function r(n,i){n.fail(function(r){if(i)return i(r);var f="Exception",u;if(r.ErrorTypeId===2){function e(){window.location.reload()}u={btnClickOkCallback:e};t.informationModal(r.Message,f,u)}return r.HasError&&r.Message&&r.Message.Errors?t.modelStateError(r.Message):r.HasError&&r.Message&&t.error(r.Message),n.reject(r)})}function f(n,i){var u={type:"GET",headers:{"X-Requested-With":"XMLHttpRequest"},url:n.url,cache:!1};return i=i||$.Deferred(),n.showProgress&&t.showProgress(),n.data&&(u.data=n.data),$.ajax(u).done(function(r){return(n.showProgress&&t.hideProgress(),r.HasError)?(r.ErrorTypeId===99&&(window.location.href="/Account/Login"),i.reject(r)):(n.done&&n.done(r),i.resolve(r))}),r(i,n.fail),i.promise()}function e(n,i){i=i||$.Deferred();n.showProgress&&t.showProgress();var u={type:"POST",headers:{"X-Requested-With":"XMLHttpRequest"},url:n.url};return n.multipartFromdata?(u.enctype="multipart/form-data",u.processData=!1,u.contentType=!1,u.data=n.data):(u.data=JSON.stringify(n.data),u.dataType="json",u.contentType="application/json; charset=utf-8"),$.ajax(u).done(function(r){return(n.showProgress&&t.hideProgress(),r.HasError)?(r.ErrorTypeId===99&&(window.location.href="/Account/Login"),i.reject(r)):(n.done&&n.done(r),i.resolve(r))}),r(i,n.fail),i.promise()}var i=0,u='<div class="ui-blocker"><span class="loader"><i class="fa fa-4x fa-spinner fa-spin fa-fw"><\/i><\/span><\/div>';$(document).ajaxStart(function(){i+=1;var n=$(".ui-blocker");n.length===0&&($("body").prepend(u),n=$(".ui-blocker"));n.addClass("active")});$(document).ajaxComplete(function(){if(i-=1,i<=0){i=0;var n=$(".ui-blocker");n.removeClass("active")}});$.extend(n,{get:f,post:e})}(eipAjax,eipNotification)