1function MM_swapImgRestore(){for(var n,i=document.MM_sr,t=0;i&&t<i.length&&(n=i[t])&&n.oSrc;t++)n.src?n.src=n.oSrc:n.background=n.oSrc}function MM_swapImage(){var t,r=0,n,i=MM_swapImage.arguments;for(document.MM_sr=[],t=0;t<i.length-2;t+=3)(n=MM_findObj(i[t]))!=null&&(document.MM_sr[r++]=n,n.src?(n.oSrc=n.src,n.src=i[t+2]):(n.oSrc=n.background,n.background=i[t+2]))}function MM_findObj(n,t){var u,r,i;for(t||(t=document),(u=n.indexOf("?"))>0&&parent.frames.length&&(t=parent.frames[n.substring(u+1)].document,n=n.substring(0,u)),(i=t[n])||!t.all||(i=t.all[n]),r=0;!i&&r<t.forms.length;r++)i=t.forms[r][n];for(r=0;!i&&t.layers&&r<t.layers.length;r++)i=MM_findObj(n,t.layers[r].document);return!i&&t.getElementById&&(i=t.getElementById(n)),i}function MM_dragLayer(objName,x,hL,hT,hW,hH,toFront,dropBack,cU,cD,cL,cR,targL,targT,tol,dropJS,et,dragJS){var i,j,aLayer,retVal,curDrag=null,curLeft,curTop,IE=document.all,NS4=document.layers,NS6=!IE&&document.getElementById,NS=NS4||NS6,spns,all,theEvent,aLayerZ,isVisible,parentL,parentT,tmpX,tmpY,tmpW,tmpH,mouseX,mouseY,positionField;if(!IE&&!NS)return!1;if(retVal=!0,IE&&event&&(event.returnValue=!0),MM_dragLayer.arguments.length>1){if(curDrag=MM_findObj(objName),!curDrag)return!1;if(!document.allLayers){document.allLayers=[];with(document)if(NS4){for(i=0;i<layers.length;i++)allLayers[i]=layers[i];for(i=0;i<allLayers.length;i++)if(allLayers[i].document&&allLayers[i].document.layers)with(allLayers[i].document)for(j=0;j<layers.length;j++)allLayers[allLayers.length]=layers[j]}else{if(NS6)for(spns=getElementsByTagName("span"),all=getElementsByTagName("div"),i=0;i<spns.length;i++)spns[i].style&&spns[i].style.position&&(allLayers[allLayers.length]=spns[i]);for(i=0;i<all.length;i++)all[i].style&&all[i].style.position&&(allLayers[allLayers.length]=all[i])}}curDrag.MM_dragOk=!0;curDrag.MM_targL=targL;curDrag.MM_targT=targT;curDrag.MM_tol=Math.pow(tol,2);curDrag.MM_hLeft=hL;curDrag.MM_hTop=hT;curDrag.MM_hWidth=hW;curDrag.MM_hHeight=hH;curDrag.MM_toFront=toFront;curDrag.MM_dropBack=dropBack;curDrag.MM_dropJS=dropJS;curDrag.MM_everyTime=et;curDrag.MM_dragJS=dragJS;curDrag.MM_oldZ=NS4?curDrag.zIndex:curDrag.style.zIndex;curLeft=NS4?curDrag.left:NS6?parseInt(curDrag.style.left):curDrag.style.pixelLeft;String(curLeft)=="NaN"&&(curLeft=0);curDrag.MM_startL=curLeft;curTop=NS4?curDrag.top:NS6?parseInt(curDrag.style.top):curDrag.style.pixelTop;String(curTop)=="NaN"&&(curTop=0);curDrag.MM_startT=curTop;curDrag.MM_bL=cL<0?null:curLeft-cL;curDrag.MM_bT=cU<0?null:curTop-cU;curDrag.MM_bR=cR<0?null:curLeft+cR;curDrag.MM_bB=cD<0?null:curTop+cD;curDrag.MM_LEFTRIGHT=0;curDrag.MM_UPDOWN=0;curDrag.MM_SNAPPED=!1;document.onmousedown=MM_dragLayer;document.onmouseup=MM_dragLayer;NS&&document.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP)}else{if(theEvent=NS?objName.type:event.type,theEvent=="mousedown"){var mouseX=NS?objName.pageX:event.clientX+document.body.scrollLeft,mouseY=NS?objName.pageY:event.clientY+document.body.scrollTop,maxDragZ=null;for(document.MM_maxZ=0,i=0;i<document.allLayers.length;i++)if(aLayer=document.allLayers[i],aLayerZ=NS4?aLayer.zIndex:parseInt(aLayer.style.zIndex),aLayerZ>document.MM_maxZ&&(document.MM_maxZ=aLayerZ),isVisible=(NS4?aLayer.visibility:aLayer.style.visibility).indexOf("hid")==-1,aLayer.MM_dragOk!=null&&isVisible)with(aLayer){if(parentL=0,parentT=0,NS6)for(parentLayer=aLayer.parentNode;parentLayer!=null&&parentLayer.style.position;)parentL+=parseInt(parentLayer.offsetLeft),parentT+=parseInt(parentLayer.offsetTop),parentLayer=parentLayer.parentNode;else if(IE)for(parentLayer=aLayer.parentElement;parentLayer!=null&&parentLayer.style.position;)parentL+=parentLayer.offsetLeft,parentT+=parentLayer.offsetTop,parentLayer=parentLayer.parentElement;style.pixelLeft=offsetLeft;style.pixelTop=offsetTop;tmpX=mouseX-((NS4?pageX:(NS6?parseInt(style.left):style.pixelLeft)+parentL)+MM_hLeft);tmpY=mouseY-((NS4?pageY:(NS6?parseInt(style.top):style.pixelTop)+parentT)+MM_hTop);String(tmpX)=="NaN"&&(tmpX=0);String(tmpY)=="NaN"&&(tmpY=0);tmpW=MM_hWidth;tmpW<=0&&(tmpW+=NS4?clip.width:offsetWidth);tmpH=MM_hHeight;tmpH<=0&&(tmpH+=NS4?clip.height:offsetHeight);
10<=tmpX&&tmpX<tmpW&&0<=tmpY&&tmpY<tmpH&&(maxDragZ==null||maxDragZ<=aLayerZ)&&(curDrag=aLayer,maxDragZ=aLayerZ)}curDrag&&(document.onmousemove=MM_dragLayer,NS4&&document.captureEvents(Event.MOUSEMOVE),curLeft=NS4?curDrag.left:NS6?parseInt(curDrag.style.left):curDrag.style.pixelLeft,curTop=NS4?curDrag.top:NS6?parseInt(curDrag.style.top):curDrag.style.pixelTop,String(curLeft)=="NaN"&&(curLeft=0),String(curTop)=="NaN"&&(curTop=0),MM_oldX=mouseX-curLeft,MM_oldY=mouseY-curTop,document.MM_curDrag=curDrag,curDrag.MM_SNAPPED=!1,curDrag.MM_toFront&&(eval("curDrag."+(NS4?"":"style.")+"zIndex=document.MM_maxZ+1"),curDrag.MM_dropBack||document.MM_maxZ++),retVal=!1,NS4||NS6||(event.returnValue=!1))}else if(theEvent=="mousemove"){if(document.MM_curDrag)with(document.MM_curDrag)mouseX=NS?objName.pageX:event.clientX+document.body.scrollLeft,mouseY=NS?objName.pageY:event.clientY+document.body.scrollTop,newLeft=mouseX-MM_oldX,newTop=mouseY-MM_oldY,MM_bL!=null&&(newLeft=Math.max(newLeft,MM_bL)),MM_bR!=null&&(newLeft=Math.min(newLeft,MM_bR)),MM_bT!=null&&(newTop=Math.max(newTop,MM_bT)),MM_bB!=null&&(newTop=Math.min(newTop,MM_bB)),MM_LEFTRIGHT=newLeft-MM_startL,MM_UPDOWN=newTop-MM_startT,NS4?(left=newLeft,top=newTop):NS6?(style.left=newLeft,style.top=newTop):(style.pixelLeft=newLeft,style.pixelTop=newTop),MM_dragJS&&eval(MM_dragJS),retVal=!1,NS||(event.returnValue=!1)}else if(theEvent=="mouseup"){if(document.onmousemove=null,NS&&document.releaseEvents(Event.MOUSEMOVE),NS&&document.captureEvents(Event.MOUSEDOWN),document.MM_curDrag)with(document.MM_curDrag)positionField=MM_findObj(id+"_PopupPosition"),positionField&&(positionField.value=style.pixelLeft+","+style.pixelTop),typeof MM_targL=="number"&&typeof MM_targT=="number"&&Math.pow(MM_targL-(NS4?left:NS6?parseInt(style.left):style.pixelLeft),2)+Math.pow(MM_targT-(NS4?top:NS6?parseInt(style.top):style.pixelTop),2)<=MM_tol&&(NS4?(left=MM_targL,top=MM_targT):NS6?(style.left=MM_targL,style.top=MM_targT):(style.pixelLeft=MM_targL,style.pixelTop=MM_targT),MM_SNAPPED=!0,MM_LEFTRIGHT=MM_startL-MM_targL,MM_UPDOWN=MM_startT-MM_targT),(MM_everyTime||MM_SNAPPED)&&eval(MM_dropJS),MM_dropBack&&(NS4?zIndex=MM_oldZ:style.zIndex=MM_oldZ),retVal=!1,NS||(event.returnValue=!1);document.MM_curDrag=null}NS&&document.routeEvent(objName)}return retVal}function MM_showHideLayers(){for(var n,t,r=MM_showHideLayers.arguments,u,i=0;i<r.length-2;i+=3)(t=MM_findObj(r[i]))!=null&&(n=r[i+2],u=MM_findObj(t.id+"_PopupState"),t.style&&(t=t.style,n=n=="show"?"visible":n=="hide"?"hidden":n,u&&(u.value=n)),t.visibility=n)}function preventDefaultEvent(n,t){if(n!=null&&typeof n.type=="string"&&(t===!1||t==null))if(n.preventDefault)n.preventDefault();else if("returnValue"in n)n.returnValue=!1;else throw new Error("The browser does not support known DOM Level II event cancellation.");return t}function AttachEvent(n,t,i){if(n.attachEvent)return t.substr(0,2).toLowerCase()!="on"&&(t="on"+t),n.attachEvent(t,i);n.addEventListener&&n.addEventListener(t,i,!1)}function DetachEvent(n,t,i){n.detachEvent?n.detachEvent("on"+t,i):n.removeEventListener&&n.removeEventListener(t,i,!1)}function checkDate(n,t,i){var r,s,u,f,o,e;(t!=!0||n.value!="")&&(r=!1,i.substring(0,2).toLowerCase()=="dd"&&(r=!0),s=r?/^([0]?[1-9]|[1|2][0-9]|[3][0|1])[/]([0]?[1-9]|[1][0-2])[/]([0-9]{4}|[0-9]{2})$/:/^([0]?[1-9]|[1][0-2])[/]([0]?[1-9]|[1|2][0-9]|[3][0|1])[/]([0-9]{4}|[0-9]{2})$/,s.test(n.value)?(r?(f=n.value.split("/")[0],u=n.value.split("/")[1]):(u=n.value.split("/")[0],f=n.value.split("/")[1]),o=n.value.split("/")[2],e=new Date(o,u-1,f),(e.getMonth()+1!=u||e.getDate()!=f||e.getFullYear()!=o)&&alert("Invalid Day, Month, or Year range detected. Please correct.")):(alert("Invalid Date Format. Please correct."),n.value=""))}function getQueryStringVariable(n){for(var i,u=window.location.search.substring(1),r=u.split("&"),t=0;t<r.length;t++)if(i=r[t].split("="),i[0]==n)return urldecode(i[1]);return null}function urldecode(n){return decodeURIComponent((n+"").replace(/\+/g,"%20"))}function start_portlet_view_life_cycle(portlet_view_unique_name,type_name){function detect_load(){div.offsetHeight===0?setTimeout(detect_load,0):portlet_view.load()}var portlet_view,div;if(!(window[portlet_view_unique_name]instanceof eval(type_name))){setTimeout(arguments.callee,0);return}portlet_view=window[portlet_view_unique_name];typeof portlet_view.init=="function"&&portlet_view.init();portlet_view.load instanceof Function&&(typeof portlet_view.get_div=="function"&&(div=portlet_view.get_div()),div!=null&&detect_load())}function pageLoad(){Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler)}function EndRequestHandler(n,t){if(t.get_error()){var i=new RegExp("Sys.*?: ","g");alert(t.get_error().message.replace(i,""));t.set_errorHandled(!0)}}function newId(){return"unq"+ ++unqId}function curId(){return"unq"+unqId}function nextElement(n){for(var t=n;t=t.nextSibling;)if(t.nodeType==1)return t;return null}function doLoad(){document.getElementById&&(initSideBar(),initToolbars(),initSecTable(),initPrincipalSelector(),initMoveCopyDelete(),initGridCheckAll(),makeFooTableFilteringAccessible(),initHelpIcons());document.onclick=function(){for(var t=this.getElementsByTagName("iframe"),n=0;n<t.length;n++)t[n].parentNode.className=="date"&&t[n]!=keepThisCalendarOpen&&(t[n].style.visibility="hidden");keepThisCalendarOpen=null};document.resize=function(){initPrincipalSelector()}}function initFormDoublePostPrevention(){for(var t=!0,n=0;n<document.forms.length;n++)document.forms[n].onsubmit2=document.forms[n].onsubmit,document.forms[n].onsubmit=function(){return window.ValidatorCommonOnSubmit&&(t=ValidatorCommonOnSubmit()),t?this.hasBeenSubmitted?!1:(this.hasBeenSubmitted=!0,this.onsubmit2)?this.onsubmit2():!0:!1}}function initPrincipalSelector(){for(var n,r,u=document.getElementsByTagName("ul"),t=0;t<u.length;t++)if(u[t].className.indexOf("root")>-1)for(n=u[t].getElementsByTagName("li"),i=0;i<n.length;i++)n[i].getElementsByTagName("ul").length>
10&&(r=document.createElement("a"),r.onclick=function(){this.parentNode.className=this.parentNode.className=="hasKids open"?"hasKids closed":"hasKids open"},r.className="tog",n[i].insertBefore(r,n[i].firstChild),n[i].className=n[i].getElementsByTagName("strong").length==0?"hasKids closed":"hasKids open")}function initSideBar(){var t=document.getElementById("quickLinks"),i,r,n;if(t){for(i=t.getElementsByTagName("dl"),n=0;n<i.length;n++)i[n].className="closed";for(r=t.getElementsByTagName("dt"),n=0;n<r.length;n++)r[n].onclick=function(){this.parentNode.className=this.parentNode.className=="open"?"closed":"open"}}}function initToolbars(){for(var r,u,t=document.getElementsByTagName("ul"),n=0;n<t.length;n++)if(t[n].className.indexOf("menu")>-1)for(r=t[n].getElementsByTagName("li"),i=0;i<r.length;i++)r[i].getElementsByTagName("ul").length>0&&(r[i].onmouseover=function(){this.getElementsByTagName("a")[0].className="hasKids active";var n=this.getElementsByTagName("ul");n.length>0&&(n[0].style.display="block",this.className="open")},r[i].onmouseout=function(){var t,n;for(this.getElementsByTagName("a")[0].className="hasKids",t=this.getElementsByTagName("ul"),n=0;n<t.length;n++)t[n].style.display="none";this.className=""},u=r[i].getElementsByTagName("a")[0],u.onclick=function(){return!1},u.className="hasKids");for(t=document.getElementsByTagName("div"),n=0;n<t.length;n++)t[n].className=="pTool"&&t[n].getElementsByTagName("ul").length>0&&(t[n].onmouseover=function(){this.getElementsByTagName("a")[0].className="hasKids active";this.getElementsByTagName("ul")[0].style.visibility="visible";typeof toggleHtmlSelectElements=="function"&&toggleHtmlSelectElements("hidden")},t[n].onmouseout=function(){this.getElementsByTagName("a")[0].className="hasKids";this.getElementsByTagName("ul")[0].style.visibility="hidden";typeof toggleHtmlSelectElements=="function"&&toggleHtmlSelectElements("visible")})}function initSecTable(){for(var r,t,u,i=document.getElementsByTagName("table"),n=0;n<i.length;n++)if(i[n].className=="secTable")for(r=i[n].getElementsByTagName("tbody")[0].getElementsByTagName("tr"),t=0;t<r.length;t++)u=r[t].getElementsByTagName("input")[0],u.parentNode.className=="admin"&&(u.onclick=function(){for(var t=this.parentNode.parentNode.getElementsByTagName("input"),n=1;n<t.length;n++)this.checked?(t[n].wasChecked=t[n].checked,t[n].checked=!0,t[n].disabled=!0):(t[n].checked=t[n].wasChecked,t[n].disabled=!1)})}function getGlobalizedText(){let n="MSG_CONFIRM_CHANGES";$.get(jenzabar.framework.portalSettings.globalizerWebServiceUrl+n).done(function(t){confirmMoveCopyDeleteGlobalizedMessage=t[n.toLowerCase()]}).fail(function(n){console.warn(n.responseText)})}function confirmMoveCopyDelete(){let n=confirm(confirmMoveCopyDeleteGlobalizedMessage);if(!n)return!1}function handleQuestionCheckboxEvent(n,t){$(n).on("click",function(){setTimeout(()=>{$(n).is(":checked")?t.removeAttr("disabled"):$(t).attr("disabled","")},1e3)})}function toggleMoveCopyDeleteSaveButtonActiveState(n){let t=$('.question-table-container input[type="checkbox"]');handleQuestionCheckboxEvent(t,n);$(n).attr("disabled","")}function initMoveCopyDelete(){var t,n;for(getGlobalizedText(),$(".js-save-move-questions-btn").attr("onclick","return confirmMoveCopyDelete();"),toggleMoveCopyDeleteSaveButtonActiveState($(".js-save-move-questions-btn")),t=document.getElementsByTagName("select"),n=0;n<t.length;n++)t[n].className=="mcdAction"&&(t[n].onchange=function(){var n=this.parentNode.getElementsByTagName("span");this.value=="d"||this.value=="s"?(n[1].style.display="none",n[2].style.display="inline"):(n[1].style.display="inline",n[2].style.display="none")})}function initGridCheckAll(){var t=$("table.groupedGrid"),n,i;t.length&&(n=t.find("thead"),n.length&&(i=n.find("input:checkbox"),i.each(function(){var n=this;if(n.onclick===null)$(n).on("click",function(){var t=this.checked,n=$(this);n.closest("table").find("input:checkbox").not(n).each(function(){this.checked=t})})})))}function makeFooTableFilteringAccessible(){var n=$("tr.footable-filtering"),t;n.find("input:text").each(function(){var t=this.id,i=$(this),n;
1t===""&&(i.uniqueId(),t=this.id);n=$("<label>",{"for":t});n.addClass("sr-only");n.text("Input");n.insertAfter(i)});t=n.find("span.fooicon.fooicon-search");t.each(function(){var i=t.parent("button"),n=$("<span>");n.addClass("sr-only");n.text("Search");i.append(n)});n.find("button.btn.btn-default.dropdown-toggle").each(function(){var t=$(this),n=$("<span>");n.addClass("sr-only");n.text("Columns");t.append(n)})}function initHelpIcons(){const n=$(".portlet .portlet-help-wrapper a.help");if(n.length===1){const t=$("#PageBar_helpButton"),i=n.attr("href");t.attr("href",i)}}function sectTog(n){return n.alt=="-"?shrink(n):grow(n),!1}function grow(n){n.alt="-";n.title=n.hideText;n.src=n.src.replace("expand.gif","collapse.gif");for(var i=n.parentNode.parentNode,t=i;t=t.nextSibling;){if(t.tagName&&t.tagName==i.tagName)return;t.style&&(t.style.display="")}}function shrink(n){n.alt="+";n.title=n.showText;n.src=n.src.replace("collapse.gif","expand.gif");for(var i=n.parentNode.parentNode,t=i;t=t.nextSibling;){if(t.tagName&&t.tagName==i.tagName)return;t.style&&(t.style.display="none")}}function multiFileToggleAll(n){var t=n.parentNode.parentNode.parentNode.parentNode.getElementsByTagName("input");for(i=1;i<t.length;i++)t[i].checked=n.checked}function multiFileToggleOne(n){var t=n.parentNode.parentNode.parentNode.parentNode.getElementsByTagName("input");for(t[0].checked=!0,i=1;i<t.length;i++)t[0].checked=t[0].checked&t[i].checked}function cal(n){for(var t=n;t.offsetParent!=null;)t=t.offsetParent;n.nextSibling.offsetWidth>t.offsetWidth-n.nextSibling.offsetLeft&&(n.nextSibling.style.top=n.nextSibling.offsetTop+n.offsetHeight+"px",n.nextSibling.style.left=t.offsetWidth-n.nextSibling.offsetWidth+"px");(n.nextSibling.style.visibility=n.nextSibling.style.visibility=="visible"?"hidden":"visible")=="visible"&&n.nextSibling.contentWindow.show_calendar(n.previousSibling);keepThisCalendarOpen=n.nextSibling}function gridTog(n){for(var t=n.parentNode.parentNode.parentNode.parentNode.parentNode;t=t.nextSibling;){if(t.className=="gfoot"||t.className=="ghead")break;t.style.display=="none"?(n.src=gridToggleImagePath+"collapse.gif",t.style.display="",n.alt=n.HideText):(n.src=gridToggleImagePath+"expand.gif",t.style.display="none",n.alt=n.ShowText)}}function gg_ExpCol(n){var t=nextElement(n.parentNode.parentNode);t&&t.className.indexOf("subItem")>-1&&(t.style.display=t.style.display=="none"?"":"none",n.src&&(n.src=t.style.display=="none"?"ui/common/images/plus.gif":"ui/common/images/minus.gif"))}function Collapse(n,t){var u=document.getElementById(n),r,i,f;if(u!=null)for(r=u.getElementsByTagName("a"),i=0;i<r.length;i++)f=new String(r[i].id),f.indexOf(t,0)>-1&&gg_ExpCol(r[i])}function hideEnd(n){var r=n.parentNode.parentNode.parentNode.nextSibling,t=r.getElementsByTagName("input");for(n.checked&&(t[0].checked=!0),i=0;i<t.length;i++)t[i].disabled=n.checked;for(t=r.getElementsByTagName("img"),i=0;i<t.length;i++)t[i].disabled=n.checked;for(t=r.getElementsByTagName("select"),i=0;i<t.length;i++)t[i].disabled=n.checked}function hideEndX(n){var t=document.getElementsByName(n.name);for(i=0;i<t.length;i++)if(t[i].id.indexOf("Later")>0){hideEnd(t[i]);return}}function hideStart(n){if(n.value=="endNow"){var r=n.parentNode.parentNode.parentNode.previousSibling,t=n.parentNode.parentNode.parentNode.previousSibling.getElementsByTagName("input");for(i=0;i<t.length;i++)t[i].disabled=n.checked;for(t=n.parentNode.parentNode.parentNode.previousSibling.getElementsByTagName("img"),i=0;i<t.length;i++)t[i].disabled=n.checked;for(t=n.parentNode.parentNode.parentNode.previousSibling.getElementsByTagName("select"),i=0;i<t.length;i++)t[i].disabled=n.checked}}function hideStartX(n){var t=document.getElementsByName(n.name);hideStart(t[1])}function showSelAct(n,t){$("."+n).hide();$("."+t).show()}function removeTextNodes(n){var t=[];for(i=0;i<n.length;i++)n[i].nodeType!=3&&(t[t.length]=n[i]);return t}function tabClick(n,t){var i=removeTextNodes(n.parentNode.parentNode.parentNode.childNodes);for(i[0].value=t-1,x=2;x<i.length;x++)i[x].style.display=x-1==t?"block":"none";for(i=removeTextNodes(i[1].childNodes),x=0;x<i.length;x++)i[x].className="";n.parentNode.className="selected"}function cp_toggle(n){var t=n.parentNode.nextSibling;return t.style.display=="block"?(n.title=n.ExpandText,n.src=cpToggleImagePath+"expand.gif",t.style.display="none"):(n.title=n.CollapseText,n.src=cpToggleImagePath+"c
1ollapse.gif",t.style.display="block"),!1}function ct_toggle(n){var i=n.parentNode.childNodes[0],t=n.parentNode.childNodes[1];return t.style.display=="inline"?(n.title=n.ExpandText,n.src=cpToggleImagePath+"expand.gif",t.style.display="none",i.style.display="inline"):(n.title=n.CollapseText,n.src=cpToggleImagePath+"collapse.gif",t.style.display="inline",i.style.display="none"),!1}function doCheck(n,t){for(var r=n.getElementsByTagName("input"),i=0;i<r.length;i++)r[i].type=="checkbox"&&(r[i].checked=t)}function secTog(n){var i="block",t=n.parentNode;for(n.src.indexOf("close")>-1?(n.src=n.src.replace("close","open"),i="none"):n.src=n.src.replace("open","close");t=t.nextSibling;)t.style.display=i}function checkNumeric(n,t){var i=n;return isNaN(n.value)?(alert(t),i.select(),i.focus(),!1):!0}function UpdateCheckBoxCount(n){n.checked==!0?cbCount++:cbCount--}function limitText(n,t){n.value.length<t?n.pref=n.value:n.value=new String(n.value).substr(0,t)}function validateMCDClick(n,t){var u,r,i;if(n.parentNode.getElementsByTagName("select")[0].value=="d"&&(u=document.getElementById(t),u))for(r=u.getElementsByTagName("input"),i=0;i<r.length;i++)if(r[i].type=="checkbox"&&r[i].checked)return confirm("Are you sure you want to delete the selected items?")?!0:!1;return!0}function orderListBox(n,t){var i=document.getElementById(n),r,u,f;i!=null&&i.selectedIndex>=0&&(r=i.selectedIndex+t,r>=0&&r<i.options.length&&(u=i.options[r].text,f=i.options[r].value,i.options[r].text=i.options[i.selectedIndex].text,i.options[r].value=i.options[i.selectedIndex].value,i.options[i.selectedIndex].text=u,i.options[i.selectedIndex].value=f,orderListBoxSetHidden(i,i.selectedIndex),orderListBoxSetHidden(i,r),i.selectedIndex=r))}function orderListBoxSetHidden(n,t){document.getElementById(n.id+"_text"+t).value=n.options[t].text;document.getElementById(n.id+"_value"+t).value=n.options[t].value}function PrincipalSelectorCheckboxSwitch(n,t){var f=document.getElementById(t),r=f.getElementsByTagName("input"),e=GetGuestTableCell(f),u=null,i;for(e!=null&&(u=e.childNodes[0]),i=0;i<r.length;i++)r[i].type=="checkbox"&&r[i].id!=n.id&&(u==null||u!=null&&r[i].id!=u.id)&&(r[i].checked=n.checked,r[i].disabled=n.checked)}function GetGuestTableCell(n){for(var i=n.getElementsByTagName("td"),t=0;t<i.length;t++)if(i[t].id=="GuestUserCell")return i[t];return null}function CheckLength(n,t,i){var r=document.getElementById(n),u;return r?(u=r.getHTML(),u.length<t?!0:(alert("You have exceeded the limit of "+t+" characters for the "+i),!1)):!0}function CheckLengthGeneric(n,t,i){var r=document.getElementById(n);return r.value.length<t?!0:(alert("You have exceeded the limit of "+t+" characters for the "+i),!1)}function ValidateLoginUserName(){var n=document.getElementById("userName").value;return n==""||n=="guest"?(alert("Please enter your User Name."),!1):!0}function ValidateDynamicRegEx_Save(n){ValidateDynamicRegEx_control=n.id;ValidateDynamicRegEx_savedText=n.value}function ValidateDynamicRegEx(n,t,i,r){if(n.value.length!=0&&!n.value.match(t)){if(i){for(var u=ValidateDynamicRegEx_control==n.id?ValidateDynamicRegEx_savedText:n.value;u.length>0&&!u.match(t);)u=u.substr(0,u.length-1);n.value=u}r!=null&&alert(r)}}function ValidateEmptyText(n,t,i){var r=document.getElementById(n);return i&&(r==null||r.value.length>0||r.value.match(/[^\s]/))||!i&&(r==null||r.value.length<1||!r.value.match(/[^\s]/))?(alert(t),!1):!0}function ToggleEmulationBtn(n,t){var i=$("#"+n),r=$("#"+t);i!=null&&r!=null&&r.prop("disabled",i.prop("selectedIndex")>0?!1:!0)}function addLoadEvent(n){var t=window.onload;window.onload=typeof onload!="function"?n:function(){t&&t();n()}}function UpdateEditorTextArea(n){var t=document.getElementById(n);t.setHTML(t.getHTML())}function PopulateTextBoxEditor(n,t,i){if(n==null){alert("editorId field required in PopulateTextBox call.");return}var r=document.getElementById(n);if(r==null){alert("For PopulateTextBox call, unable to find TextBoxEditor with ID: "+n);return}t==null&&(t="");$("#"+n).val(t);typeof r.setHTML=="function"?((t==null||t=="")&&(t=" "),r.setHTML(t),i!=null&&i()):window.setTimeout("PopulateTextBoxEditor("+CreateStringParameter(n)+", "+CreateStringParameter(t)+", "+i+")",200)}function PopulateTextBoxEditorMce(n,t){t==null&&(t="");$("#"+n).val(t.replace(/\\/g,""))}function CreateStringParameter(n){return n==null?"null":"'"+n.replace(/'/g,"\\'").replace(/\n/g,"\\n").replace(/\r/g,"\\r")+"'"}function ResetEleVal(n,t){$("#"+n).val(t)}function ResetEleChecked(n,t){$("#"+n).prop("checked",t)}function EleRemoveClass(n){$("#"+n).removeClass()}function ApplyStyleToEle(n,t){$("#"+n).addClass(t)}function WriteMsgToEle(n,t){$("#"+n).text(t)}function ResetTxtVal(n,t){$("#"+n).text(t)}function HideErrorContainer(n){$("#"+n).hide()}function ResetDatePicker(n,t,i,r){$("#"+n).val("");$("#"+t).val("11");$("#"+i).val("55");$("#"+r).val("AM")}function ResetDatePickerFields(n,t){$("#"+n).val("");$("#"+t).val("")}function ToggleDivDisabled(n,t){t?$("#"+n+" :input").prop("disabled",!0):$("#"+n+" :input").prop("disabled",!1)}function HideShowEle(n,t){t?$("#"+n).show():$("#"+n).hide()}function ResetDatePickerPopulate(n,t,i,r,u,f,e,o){$("#"+n).val(u);$("#"+t).val(f);$("#"+i).val(e);$("#"+r).val(o)}function checkAllCheckboxes(n){var t=document.getElementsByTagName("input");for(i=0;i<t.length;i++)t[i].type=="checkbox"&&(t[i].checked=n)}function anyChecked(){var n=document.getElementsByTagName("input");for(i=0;i<n.length;i++)if(n[i].type=="checkbox"&&n[i].checked)return!0;return!1}function checkAllCheckboxesWithName(n,t){var r=document.getElementsByTagName("input");for(t==null&&(t=""),i=0;i<r.length;i++)r[i].type=="checkbox"&&r[i].name.indexOf(t)>
1=0&&(r[i].checked=n),r[i].type=="radio"&&r[i].name.indexOf(t)>=0&&(r[i].checked=n)}function anyCheckedWithName(n){var t=document.getElementsByTagName("input");for(n==null&&(n=""),i=0;i<t.length;i++)if(t[i].type=="checkbox"&&t[i].name.indexOf(n)>=0&&t[i].checked||t[i].type=="radio"&&t[i].name.indexOf(n)>=0&&t[i].checked)return!0;return!1}function checkAllCheckboxesWithID(n,t){var r=document.getElementsByTagName("input");for(t==null&&(t=""),i=0;i<r.length;i++)r[i].type=="checkbox"&&r[i].id!=null&&r[i].id.indexOf(t)>=0&&(r[i].checked=n),r[i].type=="radio"&&r[i].id!=null&&r[i].id.indexOf(t)>=0&&(r[i].checked=n)}function anyCheckedWithID(n){var t=document.getElementsByTagName("input");for(n==null&&(n=""),i=0;i<t.length;i++)if(t[i].type=="checkbox"&&t[i].id!=null&&t[i].id.indexOf(n)>=0&&t[i].checked||t[i].type=="radio"&&t[i].id!=null&&t[i].id.indexOf(n)>=0&&t[i].checked)return!0;return!1}function setControlsVisibilityWithNames(n,t,r,u){var f=document.getElementsByTagName(t);for(r==null&&(r=""),u==null&&(u=""),i=0;i<f.length;i++)f[i].id.indexOf(r)>=0&&f[i].id.indexOf(u)>=0&&f[i].getAttribute("Type")!="checkbox"&&(f[i].style.display=n?"block":"none",f[i].style.visibility=n?"visible":"hidden")}function setControlsVisibilityWithName(n,t,i){setControlsVisibilityWithNames(n,t,i,"")}function setControlsVisibilityInTheSameRow(n,t,i,r){var u=n.id,f;u&&(f=n.id.lastIndexOf("_"),u=u.substr(0,f+1),setControlsVisibilityWithNames(t,i,u,r))}function setControlsVisibilityInTheSameRow(n,t,i){var r=n.id,u;r&&(u=n.id.lastIndexOf("_"),r=r.substr(0,u+1),setControlsVisibilityWithName(t,i,r))}function checkADObjectName(n,t){return n.value.match(/[<>]+/)?(alert(t),n.select(),n.focus(),!1):!0}function moveSelectedInList(n,t,i){var f,e,r,u;if(t=t>0?1:-1,n.length!=-1){for(f=[],e=0,u=0;u<n.options.length;u++)opt=n.options[u],opt.selected&&(f[e]=u,e++);if(r=null,t<0&&f.reverse(),f.length==0&&i!=null&&i!=""){alert(i);return}for(u=0;u<f.length;u++)if(r=f[u],n.length!=0&&(r!=n.length-1||t!=-1)&&(r!=0||t!=1)){var o=n[r-t].text,s=n[r].text,h=n[r-t].value,c=n[r].value;n[r].text=o;n[r].value=h;n[r-t].text=s;n[r-t].value=c;n.options[r].selected=!1;n.options[r-t].selected=!0}}}function addLBItem(n,t,i,r){if(n!=null&&n.options!=null){var u=new Option(t,i,!1,r),f=n.options.length;n.options[f]=u}}function deleteLBItem(n,t){n!=null&&n.options!=null&&n.options.length!=0&&n.options.length>t&&(n.options[t]=null)}function SelectAllLBItems(n,t){if(n[t]!=null&&n[t].options!=null){var r=n[t].options.length;for(i=0;i<r;i++)n[t].options[i].selected=!0}}function moveSelItemsFromListboxes(n,t){var f,r,u;if(t==null&&(t=""),n!=null)for(f=n.name,r=document.getElementsByTagName("select"),i=0;i<r.length;i++)if(r[i].id!=null&&r[i].id!=n.id&&r[i].id.indexOf(t)>=0&&r[i].options!=null)for(u=0;u<r[i].options.length;u++)opt=r[i].options[u],opt.selected&&(addLBItem(n,opt.text,opt.value,!1),deleteLBItem(r[i],u),u--)}function ChangeElementClass(n,t){var i=document.getElementById(n);return typeof i!="undefined"&&(i.className=t),!0}function SearchNChangeElementClass(n,t,i,r){if(n==null||t==null||i==null)return!1;var u=n;return u=u.replace(t,i),ChangeElementClass(u,r),!0}function setTextBoxToZero(n,t){var r=document.getElementsByTagName("input");if(n){for(i=0;i<r.length;i++)if(r[i].id.indexOf("MIN"+t)>=0){r[i].value="0";r[i].readOnly="readOnly";return}}else for(i=0;i<r.length;i++)if(r[i].id.indexOf("MIN"+t)>=0){r[i].readOnly="";return}}function setTextBoxAttendance(n,t,r){var u=document.getElementsByTagName("input");for(i=0;i<u.length;i++)if(u[i].id.indexOf("MIN"+t)>=0){n?(u[i].value="0",u[i].readOnly="readOnly"):(u[i].value=r,u[i].readOnly="");return}}function doVis(n,t){if(n=document.getElementById(n),n!=null)switch(t){case 0:n.style.display="none";break;case 1:n.style.display="block"}}function doVis(n,t){if(n=document.getElementById(n),n!=null)switch(t){case 0:n.style.display="none";break;case 1:n.style.display="block"}}function processRequest(n){n.length>0&&(xmlHttp=GetXmlHttpObject(stateChangeHandler),xmlHttp.open("GET",n,!0),xmlHttp.send(null))}function isAJAXRequestProcessing(){return xmlHttp!=null&&xmlHttp.readyState!=4&&xmlHttp.readyState!="complete"}function stateChangeHandler(){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete")switch(xmlHttp.status){case 200:xmlHttp.responseXML.documentElement!=null&&(sender=="TimecardApprovalSubmit"||(sender=="TimecardApproval"?PopulateTime
1cardDropdown(xmlHttp.responseXML.documentElement):(UpdateHostId(xmlHttp.responseXML.documentElement),RepopulateRoles(xmlHttp.responseXML.documentElement),RepopulateAvailableUsers(xmlHttp.responseXML.documentElement))));break;case 404:alert("Error code: "+xmlHttp.status+". The requested URL could not be found.");break;case 500:var n=window.open("","errorWin");n.document.body.innerHTML=xmlHttp.responseText;break;default:alert("There was a problem retrieving data from the server. Error code: "+xmlHttp.status)}}function GetXmlHttpObject(n){var t=null;if(window.XMLHttpRequest)t=new XMLHttpRequest,t.onload=n,t.onerror=n,t.onreadystatechange=n;else if(window.ActiveXObject){try{t=new ActiveXObject("Msxml2.XMLHTTP")}catch(i){t=new ActiveXObject("Microsoft.XMLHTTP")}t.onreadystatechange=n}return t}function Push(n){arrayIndex==0&&(nameArr[arrayIndex]="");arrayIndex++;nameArr[arrayIndex]=n}function Pop(){arrayIndex--;return nameArr[arrayIndex]}function contextChange(n,t,i,r,u){for(var f,e,s,h,c,l,o,a,v;arrayIndex>0;)Pop();f=document.getElementById(i);f.value="";e=document.getElementById(t);e.value="";s=f.value+e.value;h=document.getElementById(r);h.checked=!0;c=document.getElementById(u);c.checked=!1;l=GetDN();o="lbAvailableUsers";ClearList(o);a=document.getElementById(o);v=new Option(n,n,!1,!1);a.options[0]=v;ChangeControlState(0);myRequestURL=".."+requestURL+"context";myRequestURL+="&dn="+l;myRequestURL+="&lastuser=";myRequestURL+="&searchtext="+s;myRequestURL+="&sender=US";processRequest(myRequestURL)}function searchChange(n,t){for(var r,e,o;arrayIndex>0;)Pop();var u=document.getElementById("txtUserLastName"),f=document.getElementById("txtUserFirstName"),i=document.getElementById("ddlRoles"),s=u.value.length+f.value.length;(s==1||t==i)&&(r="lbAvailableUsers",ClearList(r),e=document.getElementById(r),o=new Option(n,n,!1,!1),e.options[0]=o,ChangeControlState(0));var h=u.value+","+f.value,c=i.options[i.selectedIndex].value,l=GetDN();myRequestURL=".."+requestURL+"data";myRequestURL+="&dn="+l;myRequestURL+="&lastuser=";myRequestURL+="&searchtext="+h;myRequestURL+="&role="+c;myRequestURL+="&sender=US";processRequest(myRequestURL)}function selectedUserChange(n){var i=-1,t,r;if(n!=null){for(t=0;t<n.options.length;t++)if(n.options[t].selected){i=t;break}r=GetDN();i>-1&&(myRequestURL=".."+requestURL+"hostid",myRequestURL+="&dn="+n.options[i].value,myRequestURL+="&lastuser=",myRequestURL+="&searchtext="+r,myRequestURL+="&role=",myRequestURL+="&sender=US",processRequest(myRequestURL))}}function resetForm(n){var u=document.getElementById("txtUserLastName"),t,i,r;u.value="";t=document.getElementById("txtUserFirstName");t.value="";i=document.getElementById("ddlRoles");i.selectedIndex=0;r=document.getElementById("lbAvailableUsers");r.selectedIndex=-1;searchChange(n,this)}function nextPage(n){var s=document.getElementById("lnkbtnMore"),h=s.getAttribute("enabled"),t,f,o;if(h=="True"){var i=document.getElementById("lbAvailableUsers"),c=i.options.length,r=i.options[c-1].text;Push(r);var l=document.getElementById("txtUserLastName"),a=document.getElementById("txtUserFirstName"),v=l.value+","+a.value,u="lbAvailableUsers";ClearList(u);t=document.getElementById(u);f=new Option(n,n,!1,!1);t.options[0]=f;t.options[0].selected=!0;ChangeControlState(0);var e=document.getElementById("ddlRoles"),y=e.options[e.selectedIndex].value,p=GetDN();myRequestURL=".."+requestURL+"data";myRequestURL+="&dn="+p;myRequestURL+="&lastuser="+r;myRequestURL+="&searchtext="+v;myRequestURL+="&role="+y;myRequestURL+="&sender=US";myRequestURL+="&";o=new Date;myRequestURL+=o.getMilliseconds();processRequest(myRequestURL)}}function previousPage(n){var e=document.getElementById("lnkbtnPrevious"),o=e.getAttribute("enabled"),t,r,f;if(o=="True"){var y=document.getElementById("lbAvailableUsers"),s=Pop(),h=document.getElementById("txtUserLastName"),c=document.getElementById("txtUserFirstName"),l=h.value+","+c.value,i="lbAvailableUsers";ClearList(i);t=document.getElementById(i);r=new Option(n,n,!1,!1);t.options[0]=r;t.options[0].selected=!0;ChangeControlState(0);var u=document.getElementById("ddlRoles"),a=u.options[u.selectedIndex].value,v=GetDN();myRequestURL=".."+requestURL+"data";myRequestURL+="&dn="+v;myRequestURL+="&lastuser="+s;myRequestURL+="&searchtext="+l;myRequestURL+="&role="+a;myRequestURL+="&sender=US";myRequestURL+="&";f=new Date;myRequestURL+=f.getMilliseconds();processRequest(myRequestURL)}}
1function PostData(n){for(var u,f,r=document.getElementById("lbSelectedUsers"),t="",i=0;i<r.options.length;i++)r.options[i]!=null&&(u=encodeURI(r.options[i].text),f=encodeURI(r.options[i].value),t+="<user><displayname>"+u+"<\/displayname>",t+="<dn>"+f+"<\/dn><\/user>");return xmlHttp=GetXmlHttpObject(stateChangeHandler),xmlHttp.open("POST",n,!1),xmlHttp.setRequestHeader("Content-Type","text/xml"),t="<?xml version='1.0' encoding='UTF-8' ?><root>"+t+"<\/root>",xmlHttp.send(t),!0}function RepopulateAvailableUsers(n){var r="lbAvailableUsers",t=n.getElementsByTagName("user"),u,f,e,o,i,s;if(t!=null)if(t.length>0){for(ClearList(r),o=document.getElementById(r),i=0;i<t.length;i++)u=t[i].getAttribute("name"),f=t[i].getAttribute("value"),e=new Option(u,f,!1,!1),o.options[i]=e;ChangeControlState(t.length)}else s=n.getElementsByTagName("hostid")[0].firstChild,s==null&&(ClearList(r),ChangeControlState(0));else ClearList(r),ChangeControlState(0)}function RepopulateRoles(n){var r="ddlRoles",t=n.getElementsByTagName("role"),u,f,e,o,i;if(t!=null&&t.length>0){for(ClearList(r),o=document.getElementById(r),i=0;i<t.length;i++)u=t[i].getAttribute("name"),f=t[i].getAttribute("value"),e=new Option(u,f,!1,!1),o.options[i]=e;ChangeControlState(t.length)}}function UpdateHostId(n){var t=document.getElementById("nameSpan"),i=n.getElementsByTagName("username")[0].firstChild,r,u,f;i!=null?(i=i.nodeValue,t.innerHTML=" <B>"+i+"<\/B>",r=n.getElementsByTagName("hostid")[0].firstChild.nodeValue,t.innerHTML+=" "+r+"",u=n.getElementsByTagName("userroles")[0].firstChild.nodeValue,t.innerHTML+="<BR> "+u+""):(f=document.getElementById("selectusertext"),t.innerHTML=f.value)}function ChangeControlState(n){n<MAX_USERS_SHOWN?DisableControl("lnkbtnMore"):EnableControl("lnkbtnMore");arrayIndex<=0?DisableControl("lnkbtnPrevious"):EnableControl("lnkbtnPrevious");changeButtonState("btnAdd","lbAvailableUsers");changeButtonState("btnRemove","lbSelectedUsers")}function EnableControl(n){var t=document.getElementById(n);t.setAttribute("enabled","True");t.style.cursor="pointer";t.style.color="blue"}function DisableControl(n){var t=document.getElementById(n);t.setAttribute("enabled","False");t.style.cursor="default";t.style.color="gray"}function changeButtonState(n,t){var i=!1,e,u,f,r,o;if(arguments.length>2&&(e=document.getElementById(arguments[2]),arguments[3]!=null&&arguments[3]>0&&e.length>=arguments[3]&&(i=!0)),!i){for(u=!1,f=document.getElementById(t),r=0;r<f.options.length;r++)if(f.options[r].selected){u=!0;break}u||(i=!0)}o=document.getElementById(n);o.disabled=i}function GetDN(){var n,r=document.getElementById("allUsers"),t,i;return r!=null?r.checked?(i=document.getElementById("rootDN"),n=i.value):(t=document.getElementById("contextDN"),n=t.value):(t=document.getElementById("contextDN"),t!=null?n=t.value:(i=document.getElementById("rootDN"),n=i.value)),n}function addSelected(n){var s=document.getElementById("btnAdd"),r,t,i,f,e,o,u;if(!s.disabled){for(r=document.getElementById("lbAvailableUsers"),t=document.getElementById("lbSelectedUsers"),i=0;i<r.options.length;i++)if(r.options[i].selected){for(f=r.options[i].text,e=r.options[i].value,optionItem=new Option(f,e,!1,!1),o=!1,u=0;u<t.options.length;u++)if(t.options[u].text==f&&t.options[u].value==e){o=!0;break}o||(t.options[t.length]=optionItem)}changeButtonState("btnAdd","lbAvailableUsers","lbSelectedUsers",n)}}function removeSelected(){var f=document.getElementById("btnRemove"),n;if(!f.disabled){var i=[],t=0,r=document.getElementById("lbSelectedUsers"),u=document.getElementById("lbAvailableUsers");for(n=0;n<r.options.length;n++)r.options[n].selected&&(i[t]=n,t++);for(n=0;n<u.options.length;n++)u.options[n].selected&&(u.options[n].selected=!1);for(t=i.length-1;t>=0;t--)r.options[i[t]]=null;changeButtonState("btnRemove","lbSelectedUsers")}}function showDHTMLAlert(n,t,i,r){messageBoxMask==null&&messageBoxContainer==null&&initMessageBox(n,t,i,r);messageBoxIsShown=!0;messageBoxMask.style.display="block";messageBoxContainer.style.display="block";disableTabIndexes();hideSelectBoxes();centerMessageBox();setMaskSize()}function hideDHTMLAlert(){messageBoxIsShown=!1;var n=document.getElementsByTagName("BODY")[0];(n.style.overflow="",ActiveTabIndexes(),displaySelectBoxes(),RefreshSession(),messageBoxMask!=null&&messageBoxContainer!=null)&&(messageBoxMask.style.display="none",messageBoxContainer.style.display="none",window.onscroll=oldOnScroll)}function initMessageBox(n,t,r,u){body=document.getElementsByTagName("BODY")[0];mBoxmask=document.createElement("div");mBoxmask.id="messageBoxMask";mBoxcont=document.createElement("div");mBoxcont.id="messageBoxContainer";var f="";if(r!=null&&u!=null&&r.length==u.length)for(i=0;i<r.length;i++)f+='<input type="submit" id="button'+i+'" onclick="'+u[i]+'" value="'+r[i]+'" style="margin: 0px 15px;"/>';f!=""&&(f='<tr><td id="messageBoxMainControls" colspan="2">'+f+"<\/td><\/tr>");mBoxcont.innerHTML='<table id="messageBoxInner"><tr id="messageBoxTitleBar"><td id="messageBoxTitle">'+n+'<\/td><td id="messageBoxTitleControls"><img id="closebutton" src="UI/Common/Images/closebutton.gif" onclick="hideDHTMLAlert();" /><\/td><\/tr><tr><td id="messageBoxText" colspan="2">'+t+"<\/td><\/tr>"+f+"<\/table>";body.appendChild(mBoxmask);body.appendChild(mBoxcont);messageBoxMask=document.getElementById("messageBoxMask");messageBoxContainer=document.getElementById("messageBoxContainer");document.all||(document.onkeypress=keyDownHandler);window.addEventListener?(window.addEventListener("resize",centerMessageBox,!1),window.addEventListener("scroll",centerMessageBox,!1)):window.attachEvent&&(window.attachEvent("onresize",centerMessageBox),window.attachEvent("onscroll",centerMessageBox));oldOnScroll=window.onscroll;window.onscroll=centerMessageBox}function setMaskSize(){var n=document.getElementsByTagName("BODY")[0],t=getWinHeight(),i=getWinWidth();mBoxHeight=t>n.scrollHeight?t:n.scrollHeight;mBoxWidth=i>n.scrollWidth?i:n.scrollWidth;messageBoxMask.style.height=mBoxHeight+"px";messageBoxMask.style.width=mBoxWidth+"px"}function centerMessageBox(){if(messageBoxIsShown==!0){var n=messageBoxContainer.offsetWidth,t=messageBoxContainer.offsetHeight,i=parseInt(getScrollTop(),10),r=parseInt(getScrollLeft(),10),u=parseInt(document.getElementById("messageBoxTitleBar").offsetHeight,10),f=getWinHeight(),e=getWinWidth();setMaskSize();messageBoxContainer.style.top=i+(f-(t+u))/2+"px";messageBoxContainer.style.left=r+(e-n)/2+"px"}}function hideAndKeepSession(n){n?hideDHTMLAlert():DropSession()}function keyDownHandler(n){if(messageBoxIsShown&&n.keyCode==9)return!1}function disableTabIndexes(){var r,t,i,n;if(document.all)for(r=0,t=0;t<activeableTags.length;t++)for(i=document.getElementsByTagName(activeableTags[t]),n=0;n<i.length;n++)tabIndexes[r]=i[n].tabIndex,i[n].tabIndex="-1",r++}function ActiveTabIndexes(){var r,t,i,n;if(document.all)for(r=0,t=0;t<activeableTags.length;t++)for(i=document.getElementsByTagName(activeableTags[t]),n=0;n<i.length;n++)i[n].tabIndex=tabIndexes[r],i[n].tabEnabled=!0,r++}function hideSelectBoxes(){function r(){switch(navigator.appName){case"Microsoft Internet Explorer":return"ie";case"Netscape":return"netscape";default:return"other"}}for(var i,t,n=0;n<document.forms.length;n++)for(i=0;i<document.forms[n].length;i++)document.forms[n].elements[i].tagName=="SELECT"&&(document.forms[n].elements[i].style.visibility="hidden");for(t=document.getElementsByTagName("IFRAME"),n=0;n<t.length;n++)switch(r()){case"ie":try{t[n].contentWindow.document}catch(u){t[n].style.visibility="hidden"}break;case"netscape":t[n].contentDocument.location.href.toLowerCase().indexOf(".pdf")!=-1&&(t[n].style.visibility="hidden")}}function displaySelectBoxes(){for(var t,i,n=0;n<document.forms.length;n++)for(t=0;t<document.forms[n].length;t++)document.forms[n].elements[t].tagName=="SELECT"&&(document.forms[n].elements[t].style.visibility="visible");for(i=document.getElementsByTagName("IFRAME"),n=0;n<i.length;n++)i[n].style.visibility="visible"}function getWinHeight(){return window.innerHeight!=window.undefined?window.innerHeight:document.compatMode=="CSS1Compat"?document.documentElement.clientHeight:document.body?document.body.clientHeight:window.undefined}function getWinWidth(){return window.innerWidth!=window.undefined?window.innerWidth:document.compatMode=="CSS1Compat"?document.documentElement.clientWidth:document.body?document.body.clientWidth:void 0}function getScrollTop(){return self.pageYOffset?self.pageYOffset:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body?document.body.scrollTop:void 0}function getScrollLeft(){return self.pageXOffset?self.pageXOffset:document.documentElement&&document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body?document.body.scrollLeft:void 0}function DropSession(){if(messageBoxIsShown){var n=/^\/([A-Za-z0-9]+)[\/]?/.exec(location.pathname);window.location=n[0]+"?tool=droppedSession"}}function RefreshSession(){processRequest("AJAX/AJAXserver.aspx?action=keepSession")}function GetPayPeriods(n,t,i){ctrlToUpdate=t;sender="TimecardApproval";var r=document.getElementById(n);r.options[r.selectedIndex].value!=""&&(myRequestURL=i+requestURL+"payperiod",myRequestURL+="&paygroup="+r.options[r.selectedIndex].value,myRequestURL+="&sender=PTA",myRequestURL+="&noCache="+(new Date).getTime()+Math.random(),processRequest(myRequestURL))}function GetEmployees(n,t,i,r){ctrlToUpdate=i;sender="TimecardApproval";var u=document.getElementById(n),f=document.getElementById(t);u.options[u.selectedIndex].value!=""&&f.options[f.selectedIndex].value!=""&&(myRequestURL=r+requestURL+"employees",myRequestURL+="&paygroup="+u.options[u.selectedIndex].value,myRequestURL+="&payperiod="+f.options[f.selectedIndex].value,myRequestURL+="&sender=PTA",myRequestURL+="&noCache="+(new Date).getTime()+Math.random(),processRequest(myRequestURL))}
1function PopulateTimecardDropdown(n){var r=document.getElementById(ctrlToUpdate),i=n.getElementsByTagName("item"),u,f,e,t;if(i!=null&&i.length>0)for(ClearList(ctrlToUpdate),t=0;t<i.length;t++)u=i[t].getAttribute("text"),f=i[t].getAttribute("value"),e=new Option(u,f,!1,!1),r.options[t]=e;r.onupdated&&r.onupdated()}function ClearList(n){for(var i=document.getElementById(n),t=i.options.length-1;t>-1;t--)i.options[t]=null}var JSON,confirmMoveCopyDeleteGlobalizedMessage,ValidateDynamicRegEx_control,ValidateDynamicRegEx_savedText;JSON||(JSON={}),function(){function i(n){return n<10?"0"+n:n}function o(n){return e.lastIndex=0,e.test(n)?'"'+n.replace(e,function(n){var t=s[n];return typeof t=="string"?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function u(i,f){var s,l,h,a,v=n,c,e=f[i];e&&typeof e=="object"&&typeof e.toJSON=="function"&&(e=e.toJSON(i));typeof t=="function"&&(e=t.call(f,i,e));switch(typeof e){case"string":return o(e);case"number":return isFinite(e)?String(e):"null";case"boolean":case"null":return String(e);case"object":if(!e)return"null";if(n+=r,c=[],Object.prototype.toString.apply(e)==="[object Array]"){for(a=e.length,s=0;s<a;s+=1)c[s]=u(s,e)||"null";return h=c.length===0?"[]":n?"[\n"+n+c.join(",\n"+n)+"\n"+v+"]":"["+c.join(",")+"]",n=v,h}if(t&&typeof t=="object")for(a=t.length,s=0;s<a;s+=1)typeof t[s]=="string"&&(l=t[s],h=u(l,e),h&&c.push(o(l)+(n?": ":":")+h));else for(l in e)Object.prototype.hasOwnProperty.call(e,l)&&(h=u(l,e),h&&c.push(o(l)+(n?": ":":")+h));return h=c.length===0?"{}":n?"{\n"+n+c.join(",\n"+n)+"\n"+v+"}":"{"+c.join(",")+"}",n=v,h}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var f=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,r,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t;typeof JSON.stringify!="function"&&(JSON.stringify=function(i,f,e){var o;if(n="",r="",typeof e=="number")for(o=0;o<e;o+=1)r+=" ";else typeof e=="string"&&(r=e);if(t=f,f&&typeof f!="function"&&(typeof f!="object"||typeof f.length!="number"))throw new Error("JSON.stringify");return u("",{"":i})});typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(n,t){var r,u,i=n[t];if(i&&typeof i=="object")for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(u=walk(i,r),u!==undefined?i[r]=u:delete i[r]);return reviver.call(n,t,i)}var j;if(text=String(text),f.lastIndex=0,f.test(text)&&(text=text.replace(f,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse");})}();var unqId=0,keepThisCalendarOpen,cbCount=0,inpReloadName="";confirmMoveCopyDeleteGlobalizedMessage="";ValidateDynamicRegEx_control=null;ValidateDynamicRegEx_savedText=null;String.format=function(){var t,n,i;if(arguments.length==0)return null;for(t=arguments[0],n=1;n<arguments.length;n++)i=new RegExp("\\{"+(n-1)+"\\}","gm"),t=t.replace(i,arguments[n]);return t};var xmlHttp,requestURL="/AJAX/AJAXserver.aspx?action=",nameArr=[],arrayIndex=0,MAX_USERS_SHOWN=100,sender="",ctrlToUpdate="";var messageBoxMask=null,messageBoxContainer=null,messageBoxIsShown=!1,tabIndexes=[],activeableTags=["A","BUTTON","TEXTAREA","INPUT","IFRAME"],oldOnScroll=null;window.jenzabar=window.jenzabar||{};jenzabar.framework=jenzabar.framework||{};jenzabar.framework.pushNotifications=jenzabar.framework.pushNotifications||{};window.jenzabar.register=window.jenzabar.register||function(n){var t=window.jenzabar;return n.split(".").forEach(function(n){t[n]===undefined&&(t[n]={});t=t[n]}),t};$(function(){$(".collapse").on("shown.bs.collapse",function(){$(this).removeAttr("aria-expanded")});$(".collapse").on("hidden.bs.collapse",function(){$(this).removeAttr("aria-expanded")})});
1jenzabar.framework.ajaxDialogKeyboardControl={trigger:function(n,t){if(n.keyCode===13||n.keyCode===32){$(t).hide();var i=$('[id*="backgroundElement"]');return i.hide(),n.stopPropagation(),!1}}};jenzabar.framework.topNavAndSidebarSlideMenu={},function(n,t){"use strict";n.trigger=t(function(){function yt(){y.add(s).add(h).collapse("hide")}function w(n,t){return n-t}function tt(){s.add(h).removeClass("in");l.removeClass("in");a.removeClass("in");t(".collapse").on("shown.bs.collapse",function(n){n.currentTarget.id==="more-links-div"&&t("#more-toggle-link-icon").switchClass("glyphicons-chevron-down","glyphicons-chevron-up")});t(".collapse").on("hide.bs.collapse",function(n){n.currentTarget.id==="more-links-div"&&t("#more-toggle-link-icon").switchClass("glyphicons-chevron-up","glyphicons-chevron-down")})}function pt(){v.on("click",function(){setTimeout(function(){t(".firstTab a").focus()},500)})}function wt(){at.on("click",function(){setTimeout(function(){vt.focus()},500)})}function bt(){setTimeout(function(){t("#user-login-section").hasClass("in")?(t("#user-login-section a").removeAttr("tabindex","-1"),t("#user-login-section a")[0].focus()):(t("#user-login-section a").attr("tabindex","-1"),t(".forgot-password-link").removeAttr("tabindex","-1"),t(".register-new-account-link").removeAttr("tabindex","-1"))},500);t(".collapse").on("shown.bs.collapse",function(n){n.currentTarget.id==="user-login-section"&&(t("#user-login-section a").removeAttr("tabindex","-1"),t("#user-login-section a").length!==0&&t("#user-login-section a")[0].focus())});t(".collapse").on("hide.bs.collapse",function(n){n.currentTarget.id==="user-login-section"&&(t("#user-login-section a").attr("tabindex","-1"),t(".forgot-password-link").removeAttr("tabindex","-1"),t(".register-new-account-link").removeAttr("tabindex","-1"))})}function p(){t("#more-links-div").removeClass("in");t("#more-toggle-link-icon").switchClass("glyphicons-chevron-up","glyphicons-chevron-down")}function f(n){var r=t("#sidebar-slide-menu-container a, #sidebar-slide-menu-container button"),i;if(n===!0)for(i=0;i<r.length;i++)t(r[i]).attr("tabindex","-1");else for(i=0;i<r.length;i++)t(r[i]).removeAttr("tabindex")}function kt(){n.attr("aria-expanded","true");setTimeout(function(){d.focus()},500)}function dt(){n.attr("aria-expanded","false");t('#sideBar *[aria-expanded="true"]').each(function(){t(this).attr("aria-expanded","false")})}function gt(){rt.animate({left:"0"},500);n.animate({left:"300px"},500);kt();t(".glyphicons-chevron-right").switchClass("glyphicons-chevron-right","glyphicons-chevron-left");f()}function b(){rt.animate({left:"-1030px"},500);n.animate({left:"2px"},500);dt();t("#sideBar .glyphicons-chevron-left").switchClass("glyphicons-chevron-left","glyphicons-chevron-right");t("#sideBar .glyphicons-chevron-up").switchClass("glyphicons-chevron-up","glyphicons-chevron-down")}function ft(){n.stop();n.animate({left:"245px"},500)}function et(){n.stop();n.animate({left:"300px"},500)}function e(i){i===!0?n.length>=1&&t("body").addClass("overflow-y-hidden"):n.hasClass("nsn")&&t("body").removeClass("overflow-y-hidden")}function ot(){t("body").hasClass("overflow-y-hidden")&&n.hasClass("is-closed")&&f(!0)}var st=t("#header-tabs"),v=t("#main-nav-btn"),y=t("#hamburger-menu-section"),ht="hamburger-menu-section",s=t("#user-login-section"),h=t("#search-section"),ct="search-section",lt=t(".search-input"),c=t("#top-nav-bar"),i=t("#main-nav"),u,o=[],k='<li id="more-toggle-link" class="more-toggle-link"><button class="btn btn-no-bg-hover-color-content-one" data-toggle="collapse" data-target="#more-links-div" aria-expanded="false" aria-controls="more-links-div" type="button">'+jenzabar.siteSettings.text.more+'<span id="more-toggle-link-icon" class="glyphicons glyphicons-chevron-down"><\/span><\/a><\/li>',it='<div id="more-links-div" class="more-links-div collapse"><ul><\/ul><\/div>',r=t("#main-nav > li"),at=t(".login-btn"),vt=t("#userName"),rt=t("#sidebar-slide-menu-container"),n=t("#sidebar-slide-menu-button"),l=t("#menu-links ul"),a=t("#quick-links ul"),d=t("#menu-links-tab"),ut=t("#quick-links-tab"),g=t("#menu-links"),nt=t("#quick-links");pt();wt();bt();n.hasClass("nsn")&&n.removeClass("mobile-hide");t(window).width()>
1=1025&&e();n.hasClass("is-closed")&&t(window).width()<1009&&f(!0);n.hasClass("is-closed")&&t(window).width()<1025&&e();n.hasClass("is-closed")||f();setTimeout(function(){var n,f;if(t(v).is(":hidden")===!0){if(u=w(c.width(),i.width()),n=c.width()!==0||i.width()!==0,u<1&&n)for(t(i).append(k),t(y).append(it);u<1;)t("#more-links-div > ul").append(t("#main-nav > li:last-child").prev()),r=t("#main-nav > li"),o.push(r),u=w(c.width(),i.width());f=t("#more-links-div > ul > li").get().reverse();t("#more-links-div > ul").append(f);t("#more-toggle-link").on("click",function(n){n.preventDefault();tt()})}},10);t(window).on("resize",function(){var l,s,h,a,b,d;for(p(),l=[],h=0;h<r.length;h++)l.push(t(r[h]).width());if(a=Math.max.apply(null,l),t(v).is(":visible")===!0&&(t("#more-toggle-link").remove(),s=t("#more-links-div > ul > li"),t(i).append(s),o=[]),t(v).is(":hidden")===!0&&(t("#more-toggle-link").remove(),s=t("#more-links-div > ul > li"),t(i).append(s),o=[]),t(v).is(":hidden")===!0){if(u=w(c.width(),i.width()),u>a){t("#more-toggle-link").remove();r=t("#main-nav > li");o.push(r);b=o.pop();t(i).append(b);t(i).append(t("#more-links-div > ul > li:last-child"));t(i).append(k);t("#more-toggle-link").on("click",function(n){n.preventDefault();tt()});r=t("#main-nav > li");o.pop(r);o.length===0&&(t("#more-toggle-link").remove(),t("#more-links-div").remove())}if(u<1){for(t(i).append(k),t(y).append(it),t("#more-links-div").next().remove();u<1;)t("#more-links-div > ul").append(t("#main-nav > li:last-child").prev()),r=t("#main-nav > li"),o.push(r),u=w(c.width(),i.width());d=t("#more-links-div > ul > li").get().reverse();t("#more-links-div > ul").append(d);t("#more-toggle-link").on("click",function(n){n.preventDefault();tt()})}}n.hasClass("is-closed")&&t(window).width()<=1009?f(!0):f();!n.hasClass("is-closed")&&t(window).width()>=600&&(e(),et());!n.hasClass("is-closed")&&t(window).width()<360&&(ft(),e(!0));!n.hasClass("is-closed")&&t(window).width()>=360&&et()});t(".collapse").on("shown.bs.collapse",function(n){n.currentTarget.id===ct&<.focus()});t(document).on("click",function(n){if(t(n.target).closest(c).length===0){if(n.target.classList.contains("init-user-login-continue-btn")||n.target.classList.contains("search-input")||n.target.classList.contains("init-user-login-btn")||n.target.classList.contains("init-logout-btn")||n.target.classList.contains("user-name"))return;if(st.hasClass("super-menu"))return}});t(".collapse").on("shown.bs.collapse",function(i){i.currentTarget.id===ht&&(s.add(h).collapse("hide"),n.addClass("is-closed"),b(),i.target.classList.contains("more-links-div")||f(!0),t("#menu-links ul li a > span.glyphicons-chevron-up").switchClass("glyphicons-chevron-up","glyphicons-chevron-down"),t("#quick-links ul li a > span.glyphicons-chevron-up").switchClass("glyphicons-chevron-up","glyphicons-chevron-down"),l.removeClass("in"),a.removeClass("in"),e());i.currentTarget.id==="user-login-section"&&(y.add(h).collapse("hide"),n.addClass("is-closed"),b(),ot(),t("#menu-links ul li a > span.glyphicons-chevron-up").switchClass("glyphicons-chevron-up","glyphicons-chevron-down"),t("#quick-links ul li a > span.glyphicons-chevron-up").switchClass("glyphicons-chevron-up","glyphicons-chevron-down"),l.removeClass("in"),a.removeClass("in"),e(),p());i.currentTarget.id==="search-section"&&(t(".search-input").focus(),s.add(y).collapse("hide"),n.addClass("is-closed"),b(),ot(),t("#menu-links ul li a > span.glyphicons-chevron-up").switchClass("glyphicons-chevron-up","glyphicons-chevron-down"),t("#quick-links ul li a > span.glyphicons-chevron-up").switchClass("glyphicons-chevron-up","glyphicons-chevron-down"),l.removeClass("in"),a.removeClass("in"),e(),p())});t(n).on("click",function(n){return t("#menu-links ul li a > span.glyphicons-chevron-up").switchClass("glyphicons-chevron-up","glyphicons-chevron-down"),t("#quick-links ul li a > span.glyphicons-chevron-up").switchClass("glyphicons-chevron-up","glyphicons-chevron-down"),t(this).hasClass("is-closed")?(f(!0),t(this).toggleClass("is-closed"),gt(),t(window).width()<360&&ft(),e(!0)):(t(this).addClass("is-closed"),f(!0),b(),e()),yt(),n.preventDefault(),!1});t(d).on("click",function(){a.removeClass("in");nt.removeClass("in");t("#quick-links ul li a > span.glyphicons-chevron-up").switchClass("glyphicons-chevron-up","glyphicons-chevron-down")});t(ut).on("click",function(){l.removeClass("in");g.removeClass("in");t("#menu-links ul li a > span.glyphicons-chevron-up").switchClass("glyphicons-chevron-up","glyphicons-chevron-down")});t(g).on("click",function(){h.removeClass("in");s.removeClass("in");p()});t(nt).on("click",function(){h.removeClass("in");s.removeClass("in");p()});t(n).on("click",function(){l.removeClass("in");a.removeClass("in");ut.parent().removeClass("active");d.parent().addClass("active");g.addClass("in");nt.removeClass("in")});t("#quick-links ul li a, #quick-links-sn ul li a").on("click",function(){t("#myPages").not(t(this).next()).removeClass("in");t("#myGroups").not(t(this).next()).removeClass("in");t(this).children("span").hasClass("glyphicons glyphicons-chevron-down")&&t("#quick-links ul li a > span.glyphicons-chevron-up").each(function(){t(this).switchClass("glyphicons-chevron-up","glyphicons-chevron-down")})});t(".collapse").on("show.bs.collapse",function(n){n.currentTarget.id==="pagePortlets"&&t("button.page-portlets > span").switchClass("glyphicons-chevron-down","glyphicons-chevron-up");n.currentTarget.id==="myPages"&&t("button.my-pages > span").switchClass("glyphicons-chevron-down","glyphicons-chevron-up");n.currentTarget.id==="myCourses"&&t("button.my-courses > span").switchClass("glyphicons-chevron-down","glyphicons-chevron-up");n.currentTarget.id==="myGroups"&&t("button.my-groups > span").switchClass("glyphicons-chevron-down","glyphicons-chevron-up")});t(".collapse").on("hide.bs.collapse",function(n){n.currentTarget.id==="pagePortlets"&&t("button.page-portlets > span").switchClass("glyphicons-chevron-up","glyphicons-chevron-down");n.currentTarget.id==="myPages"&&t("button.my-pages > span").switchClass("glyphicons-chevron-up","glyphicons-chevron-down");n.currentTarget.id==="myCourses"&&t("button.my-courses > span").switchClass("glyphicons-chevron-up","glyphicons-chevron-down");n.currentTarget.id==="myGroups"&&t("button.my-groups > span").switchClass("glyphicons-chevron-up","glyphicons-chevron-down")});t(".wrench-toggle").on("click",function(){let n=t(this);t(".actions-menu").on("shown.bs.collapse",function(){t(this).find("a")[0].focus();t(n).find("span.wrench-toggle-arrow").switchClass("glyphicons-chevron-down","glyphicons-chevron-up");n="";t("span.wrench-toggle-arrow").switchClass("glyphicons-chevron-down","glyphicons-chevron-up")});t(".actions-menu").on("hide.bs.collapse",function(){t(n).find("span.wrench-toggle-arrow").switchClass("glyphicons-chevron-up","glyphicons-chevron-down");n=""})})})}
1(jenzabar.framework.topNavAndSidebarSlideMenu,jQuery);jenzabar.framework.skipNav={},function(n,t){"use strict";n.trigger=t(function(){t(".skip-navigation").on("click",function(n){n.preventDefault();window.location.hash="content"})})}(jenzabar.framework.skipNav,jQuery);jenzabar.framework.expandCollapseCardViewListView={},function(n,t){function s(n,r,u,e){var s=n.attr(o);if(r.length===0){s==="0"?i(n,1,!1,u):i(n,0,!0,e);return}r.each(function(){var r=t(this);s==="0"?(i(n,1,!1,u),r.attr(f)==="true"&&r.click()):(i(n,0,!0,e),r.attr(f)==="false"&&r.click())})}function i(n,t,i,r){n.attr(o,t);n.attr(f,i);n.text(r)}var r,e,u,o="data-indicator",f="aria-expanded";n.wireUp=function(n){n=n||{};r=n.text||{};e=n.elements||{}};n.toggleAllSets=function(n,i){var u=t(n),f=t("#"+i),e=f.find(".toggle-arrow");s(u,e,r.expandText,r.collapseText)};n.activateLoader=function(){var n=e.loader.inlineLoading({messageText:""});u=n;u.start()};n.stopLoader=function(){u.stop()}}(jenzabar.framework.expandCollapseCardViewListView=jenzabar.framework.expandCollapseCardViewListView||{},jQuery);jenzabar.framework.cardLayout={},function(n){"use strict";n.trigger=$(function(){$(".toggle-arrow").each(function(){$(this).on("click",function(){$(this).children("span.glyphicons").toggleClass("glyphicons-chevron-up glyphicons-chevron-down")})})})}(jenzabar.framework.cardLayout,jQuery);jenzabar.framework.slideOutMenu={},function(n){"use strict";n.trigger=$(function(){var n=$(".slideout-toggle-btn"),t=$(".slideout-wrapper"),r=$(".glyphicon-toggle"),i=$(".col-md-12");$(n).on("click",function(){t.toggleClass("closed open");$(this).toggleClass("float-right float-left");r.toggleClass("glyphicons-chevron-left float-left glyphicons-chevron-right float-right");setTimeout(function(){t.hasClass("open")?(setTimeout(function(){n.attr("aria-expanded","true")},1e3),i.addClass("force-static-positioning")):(setTimeout(function(){n.attr("aria-expanded","false")},1e3),i.removeClass("force-static-positioning"))},10)})})}(jenzabar.framework.slideOutMenu,jQuery);window.stringUtil={};jenzabar.framework.stringUtil=window.stringUtil,function(n){"use strict";n.format=function(n){for(var r,t=0,i=arguments.length-1;t<i;t+=1)r=new RegExp("\\{"+t+"\\}","gm"),n=n.replace(r,arguments[t+1]);return n};n.splitFormat=function(n){if(!n)return[];var t=new RegExp("\\{[0-9]+?\\}","gm");return n.split(t)}}(jenzabar.framework.stringUtil);window.urlUtil={};jenzabar.framework.urlUtil=window.urlUtil,function(n){"use strict";n.getAppRoot=function(){var n=location.pathname.split("/");return n.length>1?"/"+n[1]+"/":"/ICS/"}}(jenzabar.framework.urlUtil);window.portalSettings={};jenzabar.framework.portalSettings=window.portalSettings,function(n){"use strict";n.webApiRootUrl=jenzabar.framework.urlUtil.getAppRoot()+"api/";n.emberRestRootUrl=n.webApiRootUrl.substring(1,n.webApiRootUrl.length-1);n.rpcRootUrl=jenzabar.framework.urlUtil.getAppRoot()+"rpc/";n.globalizerWebServiceUrl=n.webApiRootUrl+"globalization/";n.portletSettingsWebServiceUrl=n.webApiRootUrl+"portletSettings/"}(jenzabar.framework.portalSettings);window.ajaxUtil={};jenzabar.framework.ajaxUtil=window.ajaxUtil,function(n,t){"use strict";n.callAsmxWebService=function(n,i,r,u){t.ajax({type:"POST",url:n,contentType:"application/json; charset=utf-8",data:JSON.stringify(i||undefined),dataType:"json",success:r,error:function(n,t,i){console.log("There was a problem during callAsmxWebService()");console.log(i);console.log(n.responseJSON);u&&u(n,t,i)}})};n.callSynchronousAsmxWebService=function(n,i,r,u){t.ajax({type:"POST",url:n,async:!1,contentType:"application/json; charset=utf-8",data:JSON.stringify(i),dataType:"json",success:r,error:u})}}(jenzabar.framework.ajaxUtil,jQuery);jenzabar.framework.timeoutWarning={},function(n,t){"use strict";function o(){clearTimeout(e);jenzabar.framework.ajaxUtil.callAsmxWebService(r+"services/sessionkeepalive.asmx/Ping");setTimeout(i,n.defaultSettings.firstRefreshCheckTime)}function s(){n.isGuest?window.location=r:jenzabar.framework.ajaxUtil.callAsmxWebService(r+"services/sessionkeepalive.asmx/Logout",null,function(){window.location=r})}var u=6e4,f,i,e,r=jenzabar.framework.urlUtil.getAppRoot();n.warningModal='<div id="twModal" title="{0}"><\/div>';n.glob={};n.defaultSettings={globUrl:r+"api/globalization/timeoutwarning",sessionExpiresUrl:r+".sessionheartbeat",refreshCheckTime:1*u,firstRefreshCheckTime:1*u+5e3,timeoutWarningTime:5*u};f=function(r){if(r==="refresh"){o();return}var u=parseFloat(r);if(u<=0){s();return}u<n.defaultSettings.timeoutWarningTime?(n.isGuest||(jenzabar.framework.accessibleHamburgerMenu.closeHamburgerModal(),jenzabar.framework.accessibleLoginMenu.closeLoginModal(),jenzabar.framework.accessibleSidebarMenu.closeSidebarModal(),jenzabar.framework.accessibleSearchMenu.closeSearchModal(),t("#twModal").html(n.glob.inactiveAlert).dialog("open").dialog("moveToTop")),e=setTimeout(i,u)):(t("#twModal").dialog("close"),setTimeout(i,n.defaultSettings.refreshCheckTime))};i=function(){t.ajax({url:n.defaultSettings.sessionExpiresUrl}).done(f)}
1;n.create=function(r){if(n.isGuest=r,r){setTimeout(i,n.defaultSettings.refreshCheckTime);return}t.ajax({url:n.defaultSettings.globUrl}).then(function(r){n.glob=r;t("body").append(jenzabar.framework.stringUtil.format(n.warningModal,n.glob.stillThere));var u={};u[n.glob.stayLoggedIn]=function(){o();t(this).dialog("close")};u[n.glob.logoutNow]=function(){location.href=t("#logout").attr("href")};t("#twModal").dialog({autoOpen:!1,modal:!0,width:500,buttons:u,create:function(){t(this).closest(".ui-dialog").find(".ui-dialog-buttonset button").addClass("btn btn-primary-jquery-ui-override");t(this).closest(".ui-dialog").find(".ui-dialog-buttonset button:first-child").focus()}});setTimeout(i,n.defaultSettings.firstRefreshCheckTime)})}}(jenzabar.framework.timeoutWarning,jQuery);jenzabar.framework.portletBreadcrumbs={},function(n,t){n.add=function(n,i){const r=t("#portlet-breadcrumbs");r.append(" > ");i===undefined?r.append(n):r.append('<a href="'+i+'">'+n+"<\/a>")};n.clear=function(){t("#portlet-breadcrumbs").empty()}}(jenzabar.framework.portletBreadcrumbs,jQuery);jenzabar.framework.fileChooser={},function(n,t){"use strict";function i(n){n.isFile||(n.url=null)}n.create=function(n,r){var o=550,u=Math.random().toString().substring(2),f,s,e;if(n.prev().hasClass("file-chooser"))return n.prev().find(".choose-file-btn");r||(r={});s=n;e="Choose File";r.chooseButtonText&&(e=r.chooseButtonText);f=t('<div id="fileChooser-'+u+'" class="file-chooser">\t<button type="button" id="fileChooser-button-'+u+'" class="btn btn-sm btn-primary choose-file-btn">'+e+'<\/button>\t<span id="fileChooser-fileName-'+u+'" class="chosen-file-name"><\/span><\/div>').insertBefore(n);f.find(".choose-file-btn").on("click",function(u){var e=t(window).height()<=o;moxman.browse({fileinfo_fields:n.attr("id"),multiple:r.allowMultipleFiles?!0:!1,fullscreen:e,insert_filter:r.allowFolders?null:i,oninsert:function(n){var i="",u="",e,o;if(t.each(n.files,function(){i+=this.name+", ";u+=this.url+";"}),e=i.lastIndexOf(", "),e!==-1&&(i=i.substring(0,e)),o=u.lastIndexOf(";"),o!==-1&&(u=u.substring(0,o)),f.find(".chosen-file-name").text(i),t("#"+this.fileinfo_fields).val(u),r.oninsert)r.oninsert(n)}});u.preventDefault()});return n.hide(),n.prev().find(".choose-file-btn")}}(jenzabar.framework.fileChooser,jQuery),function(n){"use strict";n.fn.inlineLoading=function(t){function s(){e||(r.after(i).hide(),f=!0)}var r=n(this),u=t||{},i=n('<span class="inline-async-loading-icon"><\/span>'),o="MSG_INLINE_ASYNC_LOADING",f=!1,e=!0;return this.start=function(){if(e=!1,r.prop("disabled",!0),u.messageText)i.html(u.messageText);else{var t=u.messageKey||o;n.ajax({url:urlUtil.getAppRoot()+"api/globalization?id="+t,success:function(n){i.html(n[t.toLowerCase()])}})}return setTimeout(s,200),!0},this.stop=function(){f&&i.remove();r.show().prop("disabled",!1);f=!1;e=!0},this}}(jQuery);jenzabar.framework.accessibility={},function(n,t){n.makeTabable=function(n){const i=t(n);i.attr("tabindex","0");i.on("keydown",function(n){(n.which===13||n.which===32)&&(n.preventDefault(),t(this).click())})}}(jenzabar.framework.accessibility,jQuery);jenzabar.framework.isFirefox=function(){return typeof InstallTrigger!="undefined"};jenzabar.framework.emberFirefoxFormFix=function(){var n=jenzabar.framework.isFirefox();n&&(__doPostBack=function(n,t){theForm.onsubmit&&theForm.onsubmit()==!1||(theForm.__EVENTTARGET.value=n,theForm.__EVENTARGUMENT.value=t,$("<button>",{type:"submit"}).appendTo("form").click())})};jenzabar.framework.pushNotifications.areSupportedByCurrentBrowser=function(){return"serviceWorker"in navigator&&"PushManager"in window};jenzabar.framework.pushNotifications.haveBeenBlockedByUser=function(){return Notification.permission!=="granted"};jenzabar.framework.pushNotifications.subscribeUser=function(n){function f(n){var t=jenzabar.framework.urlUtil.getAppRoot()+"UI/Common/Scripts/sw.js";navigator.serviceWorker.register(t,{scope:"./"}).then(function(t){t.pushManager.getSubscription().then(function(i){i!=null?r(i):e(t,n)})}).catch(function(n){i("Error during intial registration process.",n)})}function e(n,u){n.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:o(u)}).then(function(n){r(n)}).catch(function(n){jenzabar.framework.pushNotifications.haveBeenBlockedByUser()||(i("Error while subscribing user to notifications.",n),t())})}function r(n){var i=JSON.parse(JSON.stringify(n));i.browserUserAgent=navigator.userAgent;i.alwaysSendWelcomeMessage=u;$.post(jenzabar.framework.portalSettings.rpcRootUrl+"pushNotification/subscribe",i).done(function(n){n.wasSuccess||(n.hadServerError?console.error("[PushNotifications] Unexpected server-side error during save of user subscription data. See the Event Viewer for details."):n.hadDataError?console.error("[PushNotifications] Bad data error during save of user subscription data. Check the JSON that is being passed to the WebAPI call."):console.error("[PushNotifications] UNKNOWN error returned from WebAPI call."),t())}).fail(function(){console.error("[PushNotifications] Error thrown during WebAPI call containing user subscription data.");t()})}function t(){var n="MSG_PUSH_NOTIFICATION_SUBSCRIPTION_ERROR";$.get(jenzabar.framework.portalSettings.globalizerWebServiceUrl+n).done(function(t){alert(t[n.toLowerCase()])}).fail(function(n){console.warn("[PushNotifications] Unable to get globalized error message to show to user.");console.warn(n.responseText)})}function i(n,t){console.error("[PushNotifications] "+n);$.post(jenzabar.framework.portalSettings.rpcRootUrl+"pushNotification/logError",{reason:n,errorMessage:t.message})}function o(n){var r="=".repeat((4-n.length%4)%4),u=(n+r).replace(/\-/g,"+").replace(/_/g,"/"),t=window.atob(u),i=new Uint8Array(t.length);for(let n=0;n<t.length;++n)i[n]=t.charCodeAt(n);return i}var u=n||!1;jenzabar.framework.pushNotifications.areSupportedByCurrentBrowser()&&$.get(jenzabar.framework.portalSettings.rpcRootUrl+"pushNotification/getPublicKey").done(function(n){f(n)}).fail(function(n){i("Unable to load the VAPID public key due to WebAPI error.",{message:n.responseText})})};String.prototype.endsWith=function(n){return this.indexOf(n,this.length-n.length)!==-1};jenzabar.framework.chevronToggle=function(n,t){$(function(){$(t).on("click",function(){var t=$(this);$(n).on("show.bs.collapse",function(){$(t).find(".footable-toggle").switchClass("glyphicons-chevron-down","glyphicons-chevron-up");t=""});$(n).on("hide.bs.collapse",function(){$(t).find(".footable-toggle").switchClass("glyphicons-chevron-up","glyphicons-chevron-down");t=""})})})};jenzabar.framework.addFootablePagingSizeElements=function(n,t,i,r){$(function(){var o=$(n)[0],u=$(` 2 <div class="vert-padding-sm"> 3 <label for="${t}" class="form-label text-bold">Results per page:</label> 4 <select id="${t}" class="form-control footable-page-size-input" name="pageSizeInput"> 5 <option value="10">10</option> 6 <option value="25">25</option> 7 <option value="50">50</option> 8 <option class="js-show-all-option" value="999999">Show all</option> 9 </select> 10 </div> 11 `);u.insertAfter(o);$(u.find("option")[r]).attr("selected","selected");const f="TXT_GL_RESULTS_PER_PAGE",e="TXT_SHOW_ALL";$.get(jenzabar.framework.portalSettings.globalizerWebServiceUrl+f).done(n=>{const t=n[f.toLowerCase()];u.find(".form-label").html(t)});$.get(jenzabar.framework.portalSettings.globalizerWebServiceUrl+e).done(n=>{const t=n[e.toLowerCase()].toLowerCase();var i=t.charAt(0).toUpperCase()+t.slice(1);u.find(".js-show-all-option").html(i)});$("#"+t).on("change",function(){var n=$(this).val();FooTable.get("#"+i).pageSize(n)})})};jenzabar.framework.renderMathJax=function(n){$(function(){MathJax.texReset();MathJax.typesetClear();MathJax.typeset(n)})};jenzabar.framework.wireupSelect2=function(n,t){$(function(){var u=$("#"+n);u.select2();var i=u.closest("div"),r=".select2-search__field";i.find(".select2-selection").removeAttr("role");i.find(r).removeAttr("role");i.find(r).attr("aria-label",t);i.find(r).attr("type","text")})};jenzabar.framework.waitForAction=function(n,t,i){if(!n||!t){console.log("The waitForAction function requires a waitUntilFunction and actionFunction!");return}i=i||500;n()?t():setTimeout(function(){jenzabar.framework.waitForAction(n,t,i)},i)},function(n,t){n.initializeForPossibleRedirect=function(n,i,r){if(!n)throw"Unable to initialize the login screen without a list of elements!";if(!n.continueButton)throw"Unable to initialize the login screen without a continue button element!";i=i||{};var f=n.continueButton,h=n.standardLoginFields||t(),c=n.userNameSection||t(),e=n.userNameField||t(),y=n.passwordField||t(),l=n.userLoginSection||t(),o=n.simpleLoginButton||t(),a=n.showStandardFieldsSection||t(),s=n.showStandardFieldsButton||t(),p=n.simpleLogin||t(),w=i.pleaseWaitForRedirect||"Please wait...",b=i.redirectModalTitle||"Login",k=i.checkingUserNameAccessibility||"Please wait for the login process to continue.",d=i.errorOccurred||"An unexpected error occurred during login. Try again, or contact an administrator for assistance.",u=null,v=function(n){if(n.isLoginDisplayedInline&&n.loginUrl){var i=t('<div class="user-login"><\/div>'),r=t('<div role="alert">'+w+"<\/div>").appendTo(i);t('<iframe class="login-redirect-container" /> ').attr("src",n.loginUrl).on("load",function(){r.hide();t(this).focus()}).appendTo(i);u&&u.stop();i.dialog({height:520,width:400,title:b});jenzabar.framework.accessibleLoginMenu.utility()}else n.isRedirectedForLogin&&n.loginUrl?window.location.replace(n.loginUrl):(u&&u.stop(),f.hide(),h.show(),y.focus(),l.removeClass("narrow-width"),jenzabar.framework.accessibleLoginMenu.utility())},g=function(){var n=e.val(),i;n!==""&&(u=f.inlineLoading({messageText:'<div role="alert" class="sr-only">'+k+"<\/div>"}),i="login/redirectInfo?username="+n+"&returnUrl="+encodeURI(window.location.href),u.start(),t.getJSON(jenzabar.framework.portalSettings.rpcRootUrl+i,v).fail(function(n){u.stop();alert(d);console.log(n.responseJSON)}))},nt=function(n){n&&n.which&&n.which===13&&(n.preventDefault(),f.click())};r?(c.hide(),e.hide(),f.hide()):(o.hide(),a.hide());h.hide();e.keypress(nt);f.click(g);s.click(function(){o.hide();a.hide();c.show();e.show();f.show();e.focus();s.hide();jenzabar.framework.accessibleLoginMenu.standardFieldsButtonClickUtility()});o.click(function(){v(r)});l.addClass("narrow-width");p.hasClass("hide")&&s.click()}}(jenzabar.framework.login=jenzabar.framework.login||{},jQuery),function(n){let t=null;n.closeHamburgerModal=()=>t();n.init=()=>{function g(){r.click();
11r.focus()}const ct=document.getElementById("siteWrapper"),it=document.querySelector(".mobile-fixed-container"),r=document.getElementById("main-nav-btn"),w=document.getElementById("top-nav-bar"),rt="top-nav-bar",e=document.getElementById("hamburger-menu-section"),n=document.getElementById("header-tabs"),ut=document.createElement("div"),o="in",lt=1025,s="aria-modal",h="aria-labelledby",c="role",at="tabindex",ft="dialog",et="true";let i=null;class vt{constructor(n,t,i){this.cssClass=n;this.div=t;this.placement=i}get create(){return this.createModalOverlay()}get destroy(){return this.destroyModalOverlay()}createModalOverlay(){this.div.className=this.cssClass;this.div.setAttribute(at,"0");document.body.insertBefore(this.div,this.placement);this.div.addEventListener("click",g)}destroyModalOverlay(){this.div.remove()}}let u=new vt("modal-overlay",ut,ct),yt=()=>window.innerWidth,b,l,a,f,k,ot=()=>{b='input, select, textarea, button:not([tabindex="-1"]), a:not([tabindex="-1"])',l=w,f=l.querySelectorAll(b)[0],a=l.querySelectorAll(b),k=a[a.length-1]},d=()=>{l="",f="",a="",k=""};let pt=ut.onkeydown=n=>{n.preventDefault(),n.which===9&&f.focus()},v=n=>{let t=n.key==="Tab"||n.keyCode===9;t&&(n.shiftKey?document.activeElement===f&&(r.focus(),n.preventDefault()):document.activeElement===k&&(r.focus(),n.preventDefault()))},y=n=>{if(document.activeElement===r){if(!e.classList.contains(o))return;n.keyCode===9&&(n.preventDefault(),setTimeout(()=>{f.focus()},100))}},p=n=>{setTimeout(()=>{i=e.classList.contains(o);let t=n.key==="Escape"||n.keyCode===27;i&&t&&(u.destroy,g())},500)},st=()=>{r.classList.add("overlay-z-index"),w.classList.add("overlay-z-index"),it.classList.add("overlay-z-index")},nt=()=>{r.classList.remove("overlay-z-index"),w.classList.remove("overlay-z-index"),it.classList.remove("overlay-z-index")};t=()=>{(i=e.classList.contains(o),i)&&(g(),nt(),n.removeAttribute(c),n.removeAttribute(s),n.removeAttribute(h),u.destroy,d(),document.removeEventListener("keydown",v),document.removeEventListener("keydown",y),document.removeEventListener("keydown",p))};var tt=!1;let ht=()=>{let t=yt();if(i=e.classList.contains(o),i||(window.removeEventListener("resize",ht),document.removeEventListener("keydown",v),document.removeEventListener("keydown",y),document.removeEventListener("keydown",p)),t<=lt){if(i){n.setAttribute(c,ft);n.setAttribute(s,et);n.setAttribute(h,rt);ot();u.create;st();var r=()=>{tt!==!0&&(tt=!0,f.focus())};r()}}else nt(),tt=!1,n.removeAttribute(c),n.removeAttribute(s),n.removeAttribute(h),u.destroy,d()};r.onclick=t=>{window.addEventListener("resize",ht),document.addEventListener("keydown",y),document.addEventListener("keydown",p),document.addEventListener("keydown",v),setTimeout(()=>{i=e.classList.contains(o),i?(st(),n.setAttribute(c,ft),n.setAttribute(s,et),n.setAttribute(h,rt),u.create,ot(),pt(t)):(nt(),n.removeAttribute(c),n.removeAttribute(s),n.removeAttribute(h),u.destroy,d(),document.removeEventListener("keydown",v),document.removeEventListener("keydown",y),document.removeEventListener("keydown",p))},500)}}}(jenzabar.framework.accessibleHamburgerMenu=jenzabar.framework.accessibleHamburgerMenu||{}),function(n){let t=null,i=null,r=null;n.closeLoginModal=()=>{if(typeof r=="function")return r()};n.utility=()=>
11{if(typeof t=="function")return t()};n.standardFieldsButtonClickUtility=()=>{if(typeof i=="function")return i()};n.init=()=>{function it(){u===undefined||u===null?(f.click(),f.focus()):(u.click(),u.focus())}const u=document.querySelector(".login-btn"),f=document.querySelector(".user-btn");if(u!==null||f!==null){const lt=document.getElementById("siteWrapper"),n=document.getElementById("user-login-section"),b=document.querySelectorAll("#user-login-section *"),at=document.querySelector(".site-manager"),o=document.getElementById("userName"),s=document.getElementById("jics-login-redirect-simple-button"),vt=document.querySelector(".forgot-password-link"),k=document.createElement("div"),h="in",yt=1025,d="aria-modal",g="role",l="tabindex",pt="dialog",wt="true";let e=null;class bt{constructor(n,t,i){this.cssClass=n;this.div=t;this.placement=i}get create(){return this.createModalOverlay()}get destroy(){return this.destroyModalOverlay()}createModalOverlay(){this.div.className=this.cssClass;this.div.setAttribute(l,"0");document.body.insertBefore(this.div,this.placement);this.div.addEventListener("click",it)}destroyModalOverlay(){this.div.remove()}}let a=new bt("modal-overlay",k,lt),kt=()=>window.innerWidth,v=()=>{let n=document.querySelector("body").classList.contains("logged-in");if(n)return f.focus(),!0;window.getComputedStyle(u).display==="none"?window.getComputedStyle(o).display==="none"?window.getComputedStyle(s).display!=="none"&&s.focus():o.focus():u.focus()},dt=k.onkeydown=n=>{n.preventDefault(),n.which===9&&v()},nt,y,p,c,w,gt=()=>{Array.from(b).forEach(n=>{window.getComputedStyle(n).display==="none"&&n.setAttribute(l,"-1")}),nt='input, select, textarea, button:not([tabindex="-1"]), a:not([tabindex="-1"])',y=n,c=y.querySelectorAll(nt)[0],p=y.querySelectorAll(nt),w=p[p.length-1]},et=()=>{y="",c="",p="",w=""},tt=undefined,ot=()=>{let t=kt();(e=n.classList.contains(h),t>=yt&&!e)||(setTimeout(()=>{Array.from(b).forEach(n=>{n.removeAttribute(l)})},100),setTimeout(()=>{Array.from(b).forEach(n=>{window.getComputedStyle(n).display==="none"&&n.setAttribute(l,"-1")});let u='input, select, textarea, button:not([tabindex="-1"]), a:not([tabindex="-1"])',t=n,f=t.querySelectorAll(u)[0],i=t.querySelectorAll(u),r=i[i.length-1],e=n=>{let t=n.key==="Tab"||n.keyCode===9;t&&(n.shiftKey?document.activeElement===f&&(n.preventDefault(),vt.focus()):document.activeElement===r&&(n.preventDefault(),o.focus(),v()))};document.addEventListener("keydown",e);tt=r;k.onclick=()=>{t="",f="",i="",r="",document.removeEventListener("keydown",e)}},100))};i=()=>{ot()};t=()=>{ot()};let rt=()=>{if(document.activeElement===u||document.activeElement===f){if(!n.classList.contains(h))return;event.shiftKey&&event.keyCode===9&&setTimeout(()=>{function n(){tt!==undefined?tt.focus():w.focus()}o===undefined||o===null?at.focus():n()},100)}},st=()=>{if(s!==null)if(window.getComputedStyle(s).display!=="none")document.activeElement===s&&(c=s);else{if(o===undefined)return;c=o}},ut=n=>{let t=n.key==="Tab"||n.keyCode===9;(st(),t)&&(n.shiftKey?(document.activeElement===c&&(n.preventDefault(),v()),(document.activeElement===u||document.activeElement===f)&&n.preventDefault()):document.activeElement===w&&(n.preventDefault(),v()))},ft=t=>{setTimeout(()=>{e=n.classList.contains(h);let i=t.key==="Escape"||t.keyCode===27;e&&i&&(a.destroy,it())},500)},ni=()=>{n.classList.add("overlay-z-index"),f!==null?f.classList.add("overlay-z-index"):u.classList.add("overlay-z-index")},ht=()=>{n.classList.remove("overlay-z-index"),f!==null?f.classList.remove("overlay-z-index"):u.classList.remove("overlay-z-index")};r=()=>{setTimeout(()=>{(e=n.classList.contains(h),e)&&(it(),ht(),n.removeAttribute(g),n.removeAttribute(d),a.destroy,et(),document.removeEventListener("keydown",ut),document.removeEventListener("keydown",ft),document.removeEventListener("keydown",rt))},500)};let ct=t=>{document.addEventListener("keydown",rt),document.addEventListener("keydown",ut),document.addEventListener("keydown",ft),st(),setTimeout(()=>{e=n.classList.contains(h),e?(ni(),n.setAttribute(g,pt),n.setAttribute(d,wt),a.create,gt(),dt(t)):(ht(),n.removeAttribute(g),n.removeAttribute(d),a.destroy,et(),document.removeEventListener("keydown",ut),document.removeEventListener("keydown",ft),document.removeEventListener("keydown",rt))},500)};u===undefined||u===null?f.addEventListener("click",ct):u.addEventListener("click",ct)}}}(jenzabar.framework.accessibleLoginMenu=jenzabar.framework.accessibleLoginMenu||{}),function(n){let t=null;n.closeSearchModal=()=>{if(typeof t=="function")return t()};n.init=()=>{function a(){n.click();n.focus()}const n=document.querySelector(".search-btn");if(n!==null){const nt=document.getElementById("siteWrapper"),b=document.createElement("div"),k=document.querySelector(".search-input"),i=document.getElementById("search-section"),tt=document.querySelector(".init-search-btn"),u="in",d="aria-modal",g="role",it="tabindex",rt="dialog",ut="true";let r=null;class ft{constructor(n,t,i){this.cssClass=n;this.div=t;this.placement=i}get create(){return this.createModalOverlay()}get destroy(){return this.destroyModalOverlay()}createModalOverlay(){this.div.className=this.cssClass;this.div.setAttribute(it,"0");document.body.insertBefore(this.div,this.placement);this.div.addEventListener("click",a)}destroyModalOverlay(){this.div.remove()}}let f=new ft("modal-overlay",b,nt),et=b.onkeydown=t=>{t.preventDefault(),t.which===9&&(n.focus(),t.shiftKey&&n.focus())},h,e,o,c,l,ot=()=>{h='input, select, textarea, button:not([tabindex="-1"]), a:not([tabindex="-1"])',e=i,c=e.querySelectorAll(h)[0],o=e.querySelectorAll(h),l=o[o.length-1]},st=()=>{e="",c="",o="",l=""};let v=t=>{if(document.activeElement===n){if(!i.classList.contains(u))return;event.shiftKey&&event.keyCode===9&&(t.preventDefault(),setTimeout(()=>{k.focus()},100))}},y=t=>{let i=t.key==="Tab"||t.keyCode===9;i&&(t.shiftKey?document.activeElement===c&&(n.focus(),t.preventDefault()):document.activeElement===l&&(n.focus(),t.preventDefault()))},p=n=>{(r=i.classList.contains(u),r)&&setTimeout(()=>{let t=n.code==="Escape",i=n.code==="Enter";t&&(f.destroy,a());i&&f.destroy},500)},ht=()=>{n!==null&&(n.classList.add("overlay-z-index"),i.classList.add("overlay-z-index"))},ct=()=>{n!==null&&(n.classList.remove("overlay-z-index"),i.classList.remove("overlay-z-index"))},w=()=>{ct(),i.removeAttribute(g),i.removeAttribute(d),f.destroy,st()},s=()=>{k.value===""&&w()};t=()=>{(r=i.classList.contains(u),r)&&(a(),w(),document.removeEventListener("keydown",v),document.removeEventListener("keydown",y),document.removeEventListener("keydown",p),document.removeEventListener("click",
11s))};n.onclick=n=>{document.addEventListener("keydown",v),document.addEventListener("keydown",y),document.addEventListener("keydown",p),tt.addEventListener("click",s),setTimeout(()=>{r=i.classList.contains(u),r?(s(),ht(),i.setAttribute(g,rt),i.setAttribute(d,ut),f.create,ot(),et(n)):(w(),document.removeEventListener("keydown",v),document.removeEventListener("keydown",y),document.removeEventListener("keydown",p),document.removeEventListener("click",s))},500)}}}}(jenzabar.framework.accessibleSearchMenu=jenzabar.framework.accessibleSearchMenu||{}),function(n){let t=null;n.closeSidebarModal=()=>{if(typeof t=="function")return t()};n.init=()=>{function et(){i.click()}const i=document.getElementById("sidebar-slide-menu-button");if(i!==null){const wt=document.getElementById("siteWrapper"),ot=document.createElement("div"),b=document.getElementById("menu-links-tab"),bt=document.getElementById("quick-links-tab"),h="is-closed",r=document.getElementById("sideBar"),k=document.querySelectorAll("#menu-links button"),kt=document.querySelectorAll('#menu-links button[aria-expanded="false"]'),dt=document.querySelectorAll("#menu-links li.current-page > ul"),st=document.querySelectorAll("#menu-links a"),gt=document.querySelectorAll("#menu-links span"),c=document.querySelectorAll("#quick-links button"),ni=document.querySelectorAll('#quick-links button[aria-expanded="false"]'),ti=document.querySelectorAll("#quick-links li.quick-links-with-sub-nav > ul"),d=document.querySelectorAll("#quick-links a"),ii=document.querySelectorAll("#quick-links span"),ri=document.querySelectorAll("#sidebar-slide-menu-container ul.collapse a"),o="aria-modal",l="aria-expanded",s="role",n="tabindex",u="-1",ht="dialog",ct="true",a="false",ui=1025,lt="glyphicons-chevron-up",at="glyphicons-chevron-down";let f=null;class fi{constructor(n,t,i){this.cssClass=n;this.div=t;this.placement=i}get create(){return this.createModalOverlay()}get destroy(){return this.destroyModalOverlay()}createModalOverlay(){this.div.className=this.cssClass;this.div.setAttribute(n,"0");document.body.insertBefore(this.div,this.placement);this.div.addEventListener("click",et)}destroyModalOverlay(){this.div.remove()}}let e=new fi("modal-overlay",ot,wt),ei=ot.onkeydown=n=>
11{n.preventDefault(),n.which===9&&b.focus()},oi=()=>window.innerWidth,g,v,y,p,w,nt=()=>{g='input, select, textarea, button:not([tabindex="-1"]), a:not([tabindex="-1"])',v=r,p=v.querySelectorAll(g)[1],y=v.querySelectorAll(g),w=y[y.length-1]},vt=()=>{v="",p="",y="",w=""},tt=n=>{let t=n.key==="Tab"||n.keyCode===9;t&&(n.shiftKey?document.activeElement===p&&(w.focus(),n.preventDefault()):document.activeElement===w&&(p.focus(),n.preventDefault()))},it=n=>{setTimeout(()=>{f=i.classList.contains(h);let t=n.key==="Escape"||n.keyCode===27;f||t&&(e.destroy,et())},500)},yt=()=>{i!==null&&(i.classList.add("overlay-z-index"),r.classList.add("overlay-z-index"))},rt=()=>{i!==null&&(i.classList.remove("overlay-z-index"),r.classList.remove("overlay-z-index"))};var ut=!1;t=()=>{(f=i.classList.contains(h),f)||(et(),rt(),e.destroy,r.removeAttribute(s),r.removeAttribute(o),vt(),i.focus(),document.removeEventListener("keydown",tt),window.removeEventListener("resize",ft),document.removeEventListener("keydown",it))};let ft=()=>{let n=oi();if(f=i.classList.contains(h),n<=ui){if(!f){yt();r.setAttribute(s,ht);r.setAttribute(o,ct);e.create;var t=()=>{ut!==!0&&(ut=!0,b.focus())};t()}}else rt(),ut=!1,r.removeAttribute(s),r.removeAttribute(o),e.destroy},si=()=>{Array.from(k).forEach(t=>{t.setAttribute(n,u)}),Array.from(dt).forEach(n=>{n.setAttribute(l,a)}),Array.from(k).forEach(n=>{n.setAttribute(l,a)}),Array.from(st).forEach(t=>{t.setAttribute(n,u)}),Array.from(gt).forEach(n=>{n.classList.remove(lt),n.classList.add(at)})},pt=function(t=false){t?(Array.from(c).forEach(t=>{t.setAttribute(n,u)}),Array.from(d).forEach(t=>{t.setAttribute(n,u)})):(Array.from(c).forEach(t=>{t.setAttribute(n,u)}),Array.from(c).forEach(n=>{n.setAttribute(l,a)}),Array.from(d).forEach(t=>{t.setAttribute(n,u)}),Array.from(ti).forEach(n=>{n.setAttribute(l,a)}),Array.from(ii).forEach(n=>{n.classList.remove(lt),n.classList.add(at)}))};i.onclick=t=>{window.addEventListener("resize",ft),document.addEventListener("keydown",tt),document.addEventListener("keydown",it),setTimeout(function(l=true){if(f=i.classList.contains(h),f)rt(),e.destroy,r.removeAttribute(s),r.removeAttribute(o),vt(),i.focus(),document.removeEventListener("keydown",tt),window.removeEventListener("resize",ft),document.removeEventListener("keydown",it);else{yt();e.create;ei(t);pt(l);r.setAttribute(s,ht);r.setAttribute(o,ct);Array.from(ri).filter(t=>{t.setAttribute(n,u)});nt();b.onclick=()=>{pt(),Array.from(st).forEach(t=>{t.removeAttribute(n)}),Array.from(k).forEach(t=>{t.removeAttribute(n)}),setTimeout(function(){nt()},500)};bt.onclick=()=>{Array.from(d).forEach(t=>{t.removeAttribute(n)}),Array.from(c).forEach(t=>{t.removeAttribute(n)}),si(),setTimeout(function(){nt()},500)};let i=[kt,ni];for(var a=0;a<i.length;a++)i[a].forEach(t=>{t.addEventListener("click",function(){t.getAttribute("aria-expanded")==="false"?setTimeout(()=>{Array.from(t.nextElementSibling.childNodes).forEach(t=>{Array.from(t.children).forEach(t=>{t.removeAttribute(n)})})},500):setTimeout(()=>{Array.from(t.nextElementSibling.childNodes).forEach(t=>{Array.from(t.children).forEach(t=>{t.setAttribute(n,u)})})},500)})})}},500)}}}}(jenzabar.framework.accessibleSidebarMenu=jenzabar.framework.accessibleSidebarMenu||{}),function(n){"use strict";n.init=n=>{$(n).tooltip(),$(n).tooltip("option","classes.ui-tooltip","jenzabar-tooltip")}}(jenzabar.framework.tooltips=jenzabar.framework.tooltips||{}),function(n){"use strict";let t;n.hookUpElements=function(n){t=n.pageElements||{};jenzabar.framework.chevronToggle(t.subMenu,t.subMenuButtonTrigger)}}(jenzabar.framework.subMenuOptions=jenzabar.framework.subMenuOptions||{}),function(n){"use strict";n.decodeValue=function(n){return $("<textarea/>").html(n).text()}}(jenzabar.framework.decode=jenzabar.framework.decode||{});jenzabar.framework.toggleDisabled=function(n,t){$(function(){function i(n){n.preventDefault()}function r(t){(t.key==="Enter"||t.key===" ")&&n[0].classList.contains("btn-disable")&&t.preventDefault()}n.length!==0&&(t?(n[0].setAttribute("aria-disabled","true"),n[0].classList.add("btn-disable"),n[0].addEventListener("click",i),n[0].addEventListener("keydown",r)):(n[0].removeEventListener("click",i),n[0].removeEventListener("keydown",r),n[0].classList.remove("btn-disable"),n[0].setAttribute("aria-disabled","false")))})};jenzabar.framework.setupAccessibleMenu=function(n,t){$(function(){function i(n){let i=$(n).attr("aria-expanded"),t=$(n).find(".js-chevron")[0];i==="true"?(t.classList.remove("glyphicons-chevron-down"),t.classList.add("glyphicons-chevron-up")):(t.classList.remove("glyphicons-chevron-up"),t.classList.add("glyphicons-chevron-down"))}const e=new Menubar({menuElement:n[0],submenuItemSelector:"li.dropdown"});$(t).on("click",function(n){n.preventDefault()});const r={attributes:!0,childList:!1,subtree:!1,attributeFilter:["aria-expanded"]},u=function(n){for(let n of n)n.attributeName==="aria-expanded"&&i(n.target)},f=new MutationObserver(u);t.each(function(){f.observe(this,r)})})};jenzabar.framework.initDynamicProgressBar=function(n,t,i){$(function(){n.length!==0&&(parseInt(t)>100||(n.value=t,i.text(t+"%")))})};jenzabar.framework.createJQueryDialogCalendarEdit=function(n,t,i){$(function(){let r=$(n);r.find(".calendar-edit-event-repeats-single-btn").click(()=>{r.dialog("close"),window.location=t});r.find(".calendar-edit-event-repeats-future-btn").click(()=>{r.dialog("close"),window.location=i});r.removeClass("hide");r.dialog({title:`This calendar item is part of a series`,width:530,buttons:{Cancel:{"class":"link-btn",text:"Cancel",click:function(){$(this).dialog("close")}}}})})};jenzabar.framework.createJQueryDialogCalendarDelete=function(n,t,i,r){$(function(){let u=$(n),f=u.find(".calendar-refetch-events-js");u.find(".calendar-delete-event-repeats-single-btn").click(()=>{u.dialog("close"),$.ajax({type:"DELETE",url:jenzabar.framework.urlUtil.getAppRoot()+`rpc/CalendarEvents/Delete/${t}`,contentType:"application/json; charset=utf-8",success:function(){console.log("Success");f.click()},error:function(){console.log("There was a problem deleting an event")}})});u.find(".calendar-delete-event-repeats-series-btn").click(()=>{u.dialog("close"),console.log("SINGLE "+$(".calendar-delete-event-repeats-series-btn")),$.ajax({type:"DELETE",url:jenzabar.framework.urlUtil.getAppRoot()+`rpc/RecurringEvents/Delete/${i}`,contentType:"application/json; charset=utf-8",success:function(){console.log("Success");f.click()},error:function(){console.log("There was a problem deleting an event")}})});u.removeClass("hide");u.dialog({title:r,width:530,buttons:{Cancel:{"class":"link-btn",text:"Cancel",click:function(){$(this).dialog("close")}}}})})};jenzabar.framework.enableKeyboardDatePickerSupport=function(n=".hasDatepicker"){$(function(){function i(n){return new Promise(t=>{if(document.querySelector(n))return t(document.querySelector(n));const i=new MutationObserver(()=>{document.querySelector(n)&&(i.disconnect(),t(document.querySelector(n)))});i.observe(document.body,{childList:!0,subtree:!0})})}document.addEventListener("click",function(n){const t=document.getElementById("ui-datepicker-div");if(t!==null){$(t).removeClass("hide");const i=new IntersectionObserver(n=>
11{n.forEach(n=>{if(n.isIntersecting){let r=t.querySelectorAll("a"),n=$(".ui-state-highlight"),i=$(".ui-state-active"),u=n.length===1;if(r.forEach(n=>{n.setAttribute("tabindex","0")}),i.length>0){i=i;i.focus();return}n=u?n:$(".ui-state-hover").length!==0?$(".ui-state-hover"):$(".ui-state-active");n.focus()}})});i.observe(t);n.target.classList.contains("ui-datepicker-next")&&setTimeout(()=>{$(".ui-datepicker-next").focus()},100);n.target.classList.contains("ui-datepicker-prev")&&setTimeout(()=>{$(".ui-datepicker-prev").focus()},100)}});let r=$(n).datepicker("option","showOn");$(n).datepicker("option","showOn","button");document.addEventListener("keyup",function(n){const t=document.getElementById("ui-datepicker-div");if(t!=null){let i=t.querySelectorAll(".ui-datepicker-unselectable");$(t).removeClass("hide");n.key==="Tab"&&(n.target.classList.contains("ui-datepicker-unselectable")&&($(".ui-datepicker-next").focus(),i.forEach(n=>{n.removeAttribute("tabindex","0")})),n.target.classList.contains("ui-state-default")&&i.forEach(n=>{n.setAttribute("tabindex","0")}),n.target.classList.contains("ui-datepicker-next")&&i.forEach(n=>{n.removeAttribute("tabindex","0")}));n.key==="Enter"&&n.target.classList.contains("ui-datepicker-next")&&n.target.click();n.key==="Enter"&&n.target.classList.contains("ui-datepicker-prev")&&n.target.click();n.key==="Escape"&&$(".hasDatepicker").focus()}});const t="TXT_SHOW_CALENDAR";i(".ui-datepicker-trigger").then(()=>{$.get(jenzabar.framework.portalSettings.globalizerWebServiceUrl+t).done(n=>{const i=n[t.toLowerCase()],r=`<span class="sr-only">${i}</span>`;$(".ui-datepicker-trigger").html(r)})})})};jenzabar.jQueryDatePickerValidation=jenzabar.jQueryDatePickerValidation||{},function(n){"use strict";const u="MSG_DATE_REQUIRED",f="MSG_TIME_REQUIRED",c="TXT_DATE_AND_TIME_REQUIRED",r="TXT_INVALID_DATE",l="TXT_INVALID_TIME",e="js-jquery-date-picker-error-message-node";let a=n=>{$(n).addClass("hide")},v=n=>{n.val("")};const i=(n,t)=>{$(n.saveButton).attr("disabled",t)},o=n=>{let t=$('div[data-date-picker-error="true"]').length;if(n.hasOwnScope)return i(n,!1);t===0?i(n,!1):i(n,!0)},s=n=>{a(n.errorContainer),v($(n.errorContainer).find(`.${e}`)),o(n)},h=(n,t)=>{if(n.hasOwnScope)return!0;$(n.errorContainer).attr("data-date-picker-error",t);o(n)},t=(n,t)=>t?(h(n,!1),s(n),!0):(h(n,!0),i(n,!0),!1);n.clearValidationError=n=>{s(n)};n.init=(n,i,o)=>{let s,h;if(n={dateVal:s,timeVal:h}={dateVal:n.dateVal,timeVal:n.timeVal},i={isDateRequired:i.isDateRequired,isTime:i.isTime,isTimeRequired:i.isTimeRequired,errorContainer:i.errorContainer,errorMessageGlobalizationText:function(n){n=n.toLowerCase();$.ajax({type:"GET",url:jenzabar.framework.portalSettings.globalizerWebServiceUrl+n}).then(function(t){let r=t[n];$(i.errorContainer).find(`.${e}`).html(r);$(i.errorContainer).removeClass("hide")})},saveButton:i.saveButton,hasOwnScope:i.hasOwnScope},i.isDateRequired&&$(i.saveButton).attr("disabled",!0),o)return t(i,o);if(i.isTime&&h!==""&&(o=/^((1[0-2]|0?[1-9]):([0-5][0-9]) ([AaPp][Mm]))$/.test(h),!o))return i.errorMessageGlobalizationText(l),t(i,o);if(s===""&&!i.isDateRequired&&h===""&&!i.isTimeRequired)return o=!0,t(i,o);if(s===""&&i.isDateRequired&&h===""&&i.isTimeRequired)return o=!1,i.errorMessageGlobalizationText(c),t(i,o);if(s===""&&!i.isDateRequired&&h===""&&i.isTimeRequired)return o=!1,i.errorMessageGlobalizationText(f),t(i,o);if(s===""&&i.isDateRequired&&h===""&&!i.isTimeRequired)return o=!1,i.errorMessageGlobalizationText(u),t(i,o);if(s!==""&&h===""&&i.isTimeRequired)return o=!1,i.errorMessageGlobalizationText(f),t(i,o);if(h!==""&&s===""&&i.isDateRequired)return o=!1,i.errorMessageGlobalizationText(u),t(i,o);const a=()=>{if(s==="")return o=!0,t(i,o);const e=/^(\d{1}|\d{2})\/(\d{1}|\d{2})\/\d{4}$/,l=e.test(s);if(o=l,!o)return i.errorMessageGlobalizationText(r),t(i,o);let n=null,u=null,f=null,h=null,c=null;if(n=s.match(e).toString(),u=parseInt(n.split("/")[0]),o=u>=1&&u<=12,!o)return i.errorMessageGlobalizationText(r),t(i,o);const a=(n,t)=>new Date(t,n,0).getDate();return(f=parseInt(n.split("/")[1]),h=parseInt(n.split("/")[2]),c=a(u,h),o=f>0&&f<=c,!o)?(i.errorMessageGlobalizationText(r),t(i,o)):t(i,o)};a()}}(jenzabar.jQueryDatePickerValidation.validateDatePickerInput=jenzabar.jQueryDatePickerValidation.validateDatePickerInput||{}),function(n){"use strict";const r="MSG_DATE_REQUIRED",u="TXT_TC_BEGIN_END_DATE_CHECK",i="TXT_INVALID_DATE",s="TXT_INVALID_TIME",e="js-jquery-date-picker-error-message-node",f=(n,t)=>{$(n.saveButton).attr("disabled",t)},h=n=>{let t=$('div[data-date-picker-error="true"]').length;if(n.hasOwnScope)return f(n,!1);t===0&&f(n,!1)},o=(n,t)=>{if(n.hasOwnScope)return!0;$(n.errorContainer).attr("data-date-picker-error",t)},t=(n,t)=>{let i=n=>{$(n).addClass("hide")},r=n=>{n.val("")};return t?(i(n.errorContainer),r($(n.errorContainer).find(`.${e}`)),o(n,!1),h(n),!0):(o(n,!0),f(n,!0),!1)};n.init=(n,f,o)=>{let c,h,it;if(n={startDateVal:c,endDateVal:h,timeVal:it}={startDateVal:n.startDateVal,endDateVal:n.endDateVal,timeVal:n.timeVal},f={isStartDateRequired:f.isStartDateRequired,isEndDateRequired:f.isEndDateRequired,isTime:f.isTime,isTimeRequired:f.isTimeRequired,errorContainer:f.errorContainer,errorMessageGlobalizationText:function(n){n=n.toLowerCase();$.ajax({type:"GET",url:jenzabar.framework.portalSettings.globalizerWebServiceUrl+n}).then(function(t){let i=t[n];$(f.errorContainer).find(`.${e}`).html(i);$(f.errorContainer).removeClass("hide")})},saveButton:f.saveButton,hasOwnScope:f.hasOwnScope},o)return t(f,o);if(f.isTime&&it!==""&&(o=/^((1[0-2]|0?[1-9]):([0-5][0-9]) ([AaPp][Mm]))$/.test(it),!o))return f.errorMessageGlobalizationText(s),t(f,o);if(c===""&&!f.isStartDateRequired&&h===""&&!f.isEndDateRequired)return o=!0,t(f,o);if(c===""&&f.isStartDateRequired&&h===""&&f.isEndDateRequired)return o=!1,f.errorMessageGlobalizationText(r),t(f,o);if(c===""&&!f.isStartDateRequired&&h===""&&!f.isEndDateRequired)return o=!1,f.errorMessageGlobalizationText(i),t(f,o);if(c===""&&!f.isStartDateRequired&&h===""&&f.isEndDateRequired||c===""&&f.isStartDateRequired&&h===""&&!f.isEndDateRequired||h===""&&f.isEndDateRequired||h!==""&&f.isEndDateRequired&&c===""&&f.isStartDateRequired||h!==""&&!f.isEndDateRequired&&c===""&&f.isStartDateRequired)return o=!1,f.errorMessageGlobalizationText(r),t(f,o);const rt=/^(\d{1}|\d{2})\/(\d{1}|\d{2})\/\d{4}$/,ut=rt.test(c),ft=rt.test(h);if(c===""&&(o=ft),h===""&&(o=ut),c!==""&&h!==""&&(o=ut&&ft),!o)return o=!1,f.errorMessageGlobalizationText(i),t(f,o);const et=n=>n.match(rt).toString(),ht=(n,t)=>new Date(t,n,0).getDate(),d=n=>parseInt(n.split("/")[1]),ot=n=>parseInt(n.split("/")[2]),g=(n,t)=>ht(n,t),st=n=>parseInt(n.split("/")[0]);let v=null,y=null,l=null,a=null,p=null,w=null,b=null,k=null,nt=null,tt=null;if(c!==""&&(v=et(c),l=st(v)),h!==""&&(y=et(h),a=st(y)),v!==null&&y!==null){if((o=l>=1&&l<=12&&a>=1&&a<=12,!o)||(p=d(v),w=d(y),b=ot(v),k=ot(y),nt=g(l,b),tt=g(a,k),o=p>0&&p<=nt&&w>0&&w<=tt,!o))return o=!1,f.errorMessageGlobalizationText(i),t(f,o);if(b>k||b===k&&l>a||b===k&&l===a&&p>w)return o=!1,f.errorMessageGlobalizationText(u),t(f,o)}return v!==null&&y===null&&((o=l>=1&&l<=12,!o)||(p=d(v),nt=g(l,b),o=p>0&&p<=nt,!o))?(o=!1,f.errorMessageGlobalizationText(i),t(f,o)):v===null&&y!==null&&((o=a>=1&&a<=12,!o)||(w=d(y),tt=g(a,k),o=w>0&&w<=tt,!o))?(o=!1,f.errorMessageGlobalizationText(i),t(f,o)):(t(f,o),o)}}(jenzabar.jQueryDatePickerValidation.validateDatePickerInputs=jenzabar.jQueryDatePickerValidation.validateDatePickerInputs||{});jenzabar.combinedNav=$(function(){function w(){function b(){$(".super-nav *[data-toggle]").each(function(){var n=$(this).children("span"),r=$(this).attr("data-target"),t="glyphicons-chevron-down",i="glyphicons-chevron-up";$(".super-nav .glyphicons-chevron-up, .super-nav .glyphicons-chevron-down").addClass("footable-toggle");$(this).on("click",function(){if(n.hasClass(t))$(r).on("show.bs.collapse",function(){n.switchClass(t,i)});else if(n.hasClass(i))$(r).on("hide.bs.collapse",function(){n.switchClass(i,t)})})})}function k(){var n=$("#menu-links-ul li.selected");n.attr("id","selected")}var v=$("#slide-menu-toggle-btns"),n="#menu-links",y=$("#this-context-pages"),p=$("#quick-links"),w=$("#sidebar-slide-menu-button");w.removeClass("nsn");f.prepend('<li id="toggle-btns-wrapper-sn" class="show-for-mobile">');$(l).html(v);$(l).after('<li id="menu-links" class="menu-links tab-pane fade in active desktop-hide">');$(n).after('<li id="quick-links" class="quick-links tab-pane fade desktop-hide">');$(n).html('<ul id="menu-links-ul" class="nav nav-pills nav-stacked">');$("#menu-links-ul").html(nt);y&&($('<li class="context-pages">').insertAfter("#menu-links .selected"),$("#this-context-pages").clone().appendTo(".context-pages"));var t=".super-nav #toggle-btns-wrapper-sn #menu-links-tab-sn",i=".super-nav #toggle-btns-wrapper-sn #quick-links-tab-sn",r=".super-nav #page-portlets-label-sn",u=".super-nav #myPages-label-sn",c=".super-nav #myCourses-label-sn",a=".super-nav #myGroups-label-sn";$(".super-nav #toggle-btns-wrapper-sn #menu-links-tab").attr("id","menu-links-tab-sn");$(t).attr("href","#menu-links-sn");$(t).removeAttr("tabindex");$(".super-nav #toggle-btns-wrapper-sn #quick-links-tab").attr("id","quick-links-tab-sn");$(i).attr("href","#quick-links-sn");$(i).removeAttr("tabindex");$(".super-nav #slide-menu-toggle-btns").attr("id","slide-menu-toggle-btns-sn");$(".super-nav #menu-links").attr("id","menu-links-sn");$(".super-nav #quick-links").attr("id","quick-links-sn");$(".super-nav #this-context-pages").attr("id","this-context-pages-sn");$(".super-nav #this-context-pages-sn > li button").removeAttr("tabindex");$(".super-nav #this-context-pages-sn > li a").removeAttr("tabindex");$(".super-nav #page-portlets-label").attr("id","page-portlets-label-sn");$(r).attr("data-target","#pagePortletsSn");$(r).attr("aria-controls","pagePortletsSn");$(".super-nav #pagePortlets").attr("id","pagePortletsSn");$(e).attr("aria-labelledby","page-portlets-label-sn");p&&($("#quick-links-menu").clone().appendTo("#quick-links-sn"),$(".super-nav #quick-links-menu").attr("id","quick-links-menu-sn"),$(".super-nav #quick-links-menu-sn > li button").removeAttr("tabindex"),$(".super-nav #quick-links-menu-sn > li a").removeAttr("tabindex"),$(".super-nav #myPages-label").attr("id","myPages-label-sn"),$(u).attr("data-target","#myPagesSn"),$(u).attr("aria-controls","myPagesSn"),$(".super-nav #myPages").attr("id","myPagesSn"),$(o).attr("aria-labelledby","myPages-label-sn"),$(".super-nav #myCourses-label").attr("id","myCourses-label-sn"),$(c).attr("data-target","#myCoursesSn"),$(c).attr("aria-controls","myCoursesSn"),$(".super-nav #myCourses").attr("id","myCoursesSn"),$(s).attr("aria-labelledby","myCourses-label-sn"),$(".super-nav #myGroups-label").attr("id","myGroups-label-sn"),$(a).attr("data-target","#myGroupsSn"),$(a).attr("aria-controls","myGroupsSn"),$(".super-nav #myGroups").attr("id","myGroupsSn"),$(h).attr("aria-labelledby","myGroups-label-sn"));b();k()}function b(){setTimeout(function(){var t=document.getElementById("selected"),i=t.offsetTop;n.animate({scrollTop:i})},500)}function k(){$(t).on("show.bs.collapse hide.bs.collapse",function(){$(i).attr("disabled","true");setTimeout(function(){$(i).removeAttr("disabled")},500)});$(t).on("hide.bs.collapse",function(){setTimeout(function(){u.removeAttr("tabindex","-1")},500)});$(t).on("show.bs.collapse",function(){setTimeout(function(){u.attr("tabindex","-1")},500)})}function it(){if(window.innerWidth<r){c=!0;i.on("click",function(){k();n.toggleClass("open");$("body").toggleClass("overflow-y-hidden");b()});$("#"+v).add("#"+y).add("#"+p).on("click",function(){n.removeClass("open");$("body").removeClass("overflow-y-hidden");$(e).add(o).add(s).add(h).removeClass("in")});$(a).addClass("mobile-hide");w();g()}}function rt(){$(window).resize(d)}function ut(){$(window).off("resize",d)}function d(){if(window.innerWidth<r&&c!==!0){$(a).addClass("mobile-hide");$("#"+v).add("#"+y).add("#"+p).on("click",function(){n.removeClass("open");$("body").removeClass("overflow-y-hidden");$(e).add(o).add(s).add(h).removeClass("in")});i.on("click",function(){k();n.toggleClass("open");$("body").toggleClass("overflow-y-hidden");b()});w();g();f.removeClass("desktop-hide show-for-mobile");ut()}}function ft(){$(window).resize(function(){window.innerWidth>r&&($("body").removeClass("overflow-y-hidden"),u.removeAttr("tabindex","-1"));window.innerWidth<r&&n.hasClass("open")&&(u.attr("tabindex","-1"),t.attr("aria-expanded")==="false"&&($("body").removeClass("overflow-y-hidden"),n.removeClass("open")),$("body").addClass("overflow-y-hidden"))});i.on("click",function(){$("#this-context-pages-sn li button > span.glyphicons-chevron-up").switchClass("glyphicons-chevron-up","glyphicons-chevron-down");$("#quick-links-menu-sn li button > span.glyphicons-chevron-up").switchClass("glyphicons-chevron-up","glyphicons-chevron-down");t.add(e).add(o).add(s).add(h).collapse("hide");setTimeout(function(){$("#toggle-btns-wrapper-sn").children().length>0?$(".super-nav #toggle-btns-wrapper-sn #menu-links-tab-sn").focus():$(".firstTab a").focus()},500)})}function g(){var n=$("#quick-links-sn"),t=$("#quick-links-tab-sn"),i=$("#menu-links-tab-sn");n.children().length===0&&(t.parent().addClass("hide"),i.parent().css("width","100%"))}const r=1026;
11var c=!1,u=$(".site-logo-link"),t=$("#hamburger-menu-section"),n=$("#header-tabs"),f=$("#main-nav"),l="#toggle-btns-wrapper-sn",nt=f.html(),i=$("#main-nav-btn"),a="#main-nav li",v="siteNavBar_searchBox_SearchButton",y="siteNavBar_welcomeBackBarLoggedIn_loginToggle",p="siteNavBar_welcomeBackBarLoggedOut_loginToggle",tt=$("#sideBar");if(n.hasClass("super-menu")){f.addClass("super-nav");tt.addClass("mobile-hide");var e=".super-nav #pagePortletsSn",o=".super-nav #myPagesSn",s=".super-nav #myCoursesSn",h=".super-nav #myGroupsSn";it();rt();ft()}}),function(n,t){"use strict";function i(){var i={Terms:t("#"+n.textBox).val().replace(/(#|&)/g,""),UserId:n.userId,MaxNumberOfResults:10};return JSON.stringify(i)}function r(){var n=i();return"api/autocomplete?request="+n}function u(n,i){i(t.map(n.results,function(n){return{label:n,value:n}}))}function f(){var t=getQueryStringVariable("query");t!==null?(document.getElementById(n.textBox).value=t,document.getElementById(n.textBox).style.color="#000000"):document.getElementById(n.textBox).value==="Search..."&&(document.getElementById(n.textBox).style.color="#808080")}n.initAutoComplete=function(){t("#"+n.textBox).autocomplete({source:function(n,i){t.ajax({url:urlUtil.getAppRoot()+r(),dataType:"json",success:function(n){u(n,i)}})},minLength:2,width:150,select:n.autoCompleteSelect,appendTo:".searchAutoComplete"});f()};n.searchClick=function(){var t=document.getElementById(n.textBox).value;return t==="Search..."||t===""?!1:!0};n.validate=function(){return document.getElementById(n.textBox).value===""||document.getElementById(n.textBox).value==="Search..."?(document.getElementById(n.textBox).focus(),t("#search-section").removeClass("in"),!1):!0};n.cleardefault=function(){return document.getElementById(n.textBox).value==="Search..."?(document.getElementById(n.textBox).value="",document.getElementById(n.textBox).style.color="#000000",!1):!0};n.restoredefault=function(){return document.getElementById(n.textBox).value===""?(document.getElementById(n.textBox).value="Search...",document.getElementById(n.textBox).style.color="#808080",!1):!0}}(window.searchBox=window.searchBox||{},jQuery),function(n){function r(t){var i=t||window.event,e=[].slice.call(arguments,1),r=0,f=0,u=0;return t=n.event.fix(i),t.type="mousewheel",i.wheelDelta&&(r=i.wheelDelta/120),i.detail&&(r=-i.detail/3),u=r,i.axis!==undefined&&i.axis===i.HORIZONTAL_AXIS&&(u=0,f=-1*r),i.wheelDeltaY!==undefined&&(u=i.wheelDeltaY/120),i.wheelDeltaX!==undefined&&(f=i.wheelDeltaX/-120),e.unshift(t,r,f,u),(n.event.dispatch||n.event.handle).apply(this,e)}var t=["DOMMouseScroll","mousewheel"],i;if(n.event.fixHooks)for(i=t.length;i;)n.event.fixHooks[t[--i]]=n.event.mouseHooks;n.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var n=t.length;n;)this.addEventListener(t[--n],r,!1);else this.onmousewheel=r},teardown:function(){if(this.removeEventListener)for(var n=t.length;n;)this.removeEventListener(t[--n],r,!1);else this.onmousewheel=null}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})}(jQuery)
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.