function RefreshSelect2(){$('[data-role="select"] select').each(function(){$(this).select2();$(".select2-selection").removeAttr("role");$(".select2-search__field").removeAttr("role");$(".select2-search__field").attr("aria-label","textbox");$(".select2-search__field").attr("type","text")})}function DateControlInit(){var i=(new Date).getTimezoneOffset(),t,n;$(".datepicker").datepicker({format:i<0?"mm/dd/yyyy":"UTC:mm/dd/yyyy"});t={jitMasking:!0,clearIncomplete:!0};n=$(".date");n.removeAttr("readonly");n.inputmask("99/99/9999",t);n.on("blur",function(){n.hasClass("datafilterschange")||$(this).valid()});n.hasClass("datafilterschange")&&(n.removeAttr("data-val"),n.removeAttr("data-val-required"),n.removeAttr("data-val-date"))}function SetupDateInputs(){var n=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(){this.addEventListener("load",function(){var n=$(".date,.datepicker");n.length>0&&DateControlInit()});n.apply(this,arguments)};DateControlInit();$(".datafilterschange").removeAttr("data-val");$(".datafilterschange").removeAttr("data-val-required")}function triggerWindowResize(){setTimeout(function(){$(window).trigger("resize")},100)}function showLoading(){var n=$(".more-arrow"),t;n!=undefined&&n.hide();t=$("#MainLoadingDialog").data("dialog");t.open()}function hideLoading(){var n=$("#MainLoadingDialog").data("dialog");n.close()}function SetReadOnly(n){n=="ENDED"&&$("li > a").each(function(){var n=$(this).attr("href"),t,i;n!=null?(t=n.indexOf("Account"),i=n.indexOf("Dashboard"),t==-1&&i==-1&&($(this).attr("disabled",!0),$(this).parent().css("cursor","not-allowed"))):($(this).attr("disabled",!0),$(this).parent().css("cursor","not-allowed"))})}function getAndroidVersion(n){var n=n||navigator.userAgent,t=n.match(/Android\s([0-9\.]*)/);return t?t[1]:!1}function SupportRedirect(n){if(!document.addEventListener){window.location=n;return}if(parseFloat(getAndroidVersion())<2.3){window.location=n;return}}$(document).ready(function(){SetupDateInputs();setTimeout(function(){$("#cover").addClass("animated fadeOut");$("#cover").one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){$(this).hide()})},300);$("#TextSize").length&&$('[data-val="'+$("#TextSize").val()+'"]').trigger("click");$(".select2-selection").removeAttr("role");$(".select2-search__field").removeAttr("role");$(".select2-search__field").attr("aria-label","textbox");$(".select2-search__field").attr("type","text");$('[role="main"]').keyup(function(n){var i,t;!$(".hs-wizard-nav").find(":focus").length==1&&n.which==9&&(i=$(":focus").offset(),i!=null&&(t=$("#main-form"),t.length>0&&$("html, body").animate({scrollTop:i.top-(t.offset().top-t.scrollTop())},"slow")))});$("a").keydown(function(n){n.which===13&&$(this).trigger("click")});$("button").keydown(function(n){n.which===13&&$(this).trigger("click")});$("li.clickable").keydown(function(n){switch(n.keyCode){case 38:$(this).prev().focus();break;case 40:$(this).next().focus()}});var n=showMetroDialog;showMetroDialog=function(t){n(t);$(t+" :input:enabled:visible:first").focus()};$("[data-val-required]").attr("aria-required",!0);$(".form-label.fg-red").each(function(){$(this).prev().find("[data-val-requiredif-expression]").attr("aria-required",!0)})});$("body").on("click",".simpleSubmit",function(){var n=$(this).closest("form");n.valid()&&showLoading()});document.addEventListener("DOMContentLoaded",function(){const t=document.querySelector(`.start-here-cta-links-help[data-related-dialog="dialog"]`);t&&t.setAttribute("style","font-weight: normal !important;");const i=document.querySelector(`.help[data-action="open-help-dialog"]`);i&&i.setAttribute("style","font-weight: normal !important;");const n=document.querySelector(`.start-here-cta-links`);if(n){let t=n.children[1];const r=n.children[0];if(t.insertBefore(r,t.children[0]),t.children.length>1){let i=document.querySelector(`.link-divider`);i?i=i.cloneNode(!0):(i=document.createElement("div"),i.setAttribute("class","link-divider"));t=n.children[0];t.insertBefore(i,t.children[1])}const i=t.children;if(i[i.length-1].classList.contains("link-divider")){const t=n.firstElementChild.lastElementChild;n.firstElementChild.removeChild(t)}}const r=document.querySelector(`.start-here-cta`);r&&r.setAttribute("style","min-height: auto !important;");const u=document.getElementById(`full-size-nav`);u&&u.setAttribute("style","min-height: auto !important;")})