function InitializeMetricsCollection(){$("input.collect-metrics, select.collection-metrics, textarea.collect-metrics").on("change",function(n){ConfigureMetricsCollection(n)});$("button.collect-metrics, a.collect-metrics").on("click",function(n){ConfigureMetricsCollection(n)})}function ConfigureMetricsCollection(n){var i=n.target,t;i?(t=$(i).data(METRICS_COLLECTION_EVENT_NAME_ATTR),t&&CollectMetrics(t,null)):console.log("Error occurrred while collecting metrics. Error code: M1")}function CollectMetrics(n,t){n&&n.length>0?$.ajax({url:METRICS_COLLECTION_SERVICE_URL,data:{eventName:n,customData:t},traditional:!0,type:"POST",global:!1,success:function(){},error:function(){console.log("Unable to collect metrics. Error code: M2")}}):console.log("Unable to collect metrics. Error code: M3")}var industry=industry||{},METRICS_COLLECTION_EVENT_NAME_ATTR,METRICS_COLLECTION_SERVICE_URL;$.extend(!0,industry,{ABLIS:{ui:{HideAllTooltips:function(){$('[data-toggle="tooltip"]').each(function(){$('[data-toggle="tooltip"]').bootstrapTooltip("hide")})},AttachTooltip:function(){$("#fullwrap").on("click",function(){$('[data-toggle="tooltip"]').each(function(){$('[data-toggle="tooltip"]').bootstrapTooltip("hide")})});$.fn.bootstrapTooltip=$.fn.tooltip.noConflict();var n=/iPad|iPhone|iPod/.test(navigator.platform);n?$('[data-toggle="tooltip"]').bootstrapTooltip({trigger:"hover"}).click(function(n){var t=$(".tooltip.in");t!==null&&t.length>0?$(this).bootstrapTooltip("hide"):($(this).bootstrapTooltip("show"),n.stopPropagation())}):$('[data-toggle="tooltip"]').bootstrapTooltip()},ToggleDisplayUserDetailsPanel:function(){$("#rhs-accordion").find(".accordion-toggle").click(function(){$(this).next().slideToggle("fast");$(this).find("i").toggleClass("fa-chevron-up fa-chevron-down")})},CheckSpaceBarKeyPressClicksLink:function(n,t){if(t.keyCode===32||t.keyCode===13)return n.focus(),n.click(),!1}}}});industry=industry||{};$.extend(!0,industry,{ABLIS:{utility:{KeyCodes:function(){this.tab=9;this.enter=13;this.esc=27;this.space=32;this.pageup=33;this.pagedown=34;this.end=35;this.home=36;this.left=37;this.up=38;this.right=39;this.down=40},GetUrlParameter:function(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+n+"=([^&#]*)"),t=i.exec(location.search);return t===null?"":decodeURIComponent(t[1].replace(/\+/g," "))},RemoveURLParameter:function(n,t){var u=n.split("?"),f,i,r;if(u.length>=2){for(f=encodeURIComponent(t)+"=",i=u[1].split(/[&;]/g),r=i.length;r-->0;)i[r].lastIndexOf(f,0)!==-1&&i.splice(r,1);return u[0]+(i.length>0?"?"+i.join("&"):"")}return n},GetArrayFromInputField:function(n){for(var i=[],r=$("input[id="+n+"]"),t=0;t<r.length;t++)i[t]=r[t].value;return i},DelayLoadCloseIconModal:function(){$(".modaal-close")&&$(".modaal-close").delay(2e3).fadeIn(50)},AddToFavourites:function(n,t,i,r){if("addToHomescreen"in window&&window.addToHomescreen.isCompatible)addToHomescreen({autostart:!1,startDelay:0}).show(!0);else if(window.sidebar&&window.sidebar.addPanel)window.sidebar.addPanel(i,t,"");else{if(window.sidebar&&/Firefox/i.test(navigator.userAgent)||window.opera&&window.print)return $("#"+r).attr({href:t,title:i,rel:"sidebar"}).off(n),!0;window.external&&"AddFavorite"in window.external?window.external.AddFavorite(t,i):alert("Browser security restrictions prevented us from automatically creating your bookmark.\nPlease press "+(/Mac/i.test(navigator.userAgent)?"CMD":"Ctrl")+" + D to add this page to your favorites.\n")}return!1}}}});$.extend($.expr[":"],{focusable:function(n){var t=n.nodeName.toLowerCase(),i=$(n).attr("tabindex");return $(n)[t==="area"?"parents":"closest"](":hidden").length===!0?!1:!isNaN(i)&&i<0?!1:/input|select|textarea|button|object/.test(t)===!0?!n.disabled:(t==="a"||t==="area")==!0?n.href.length>0:!1}});METRICS_COLLECTION_EVENT_NAME_ATTR="eventname";METRICS_COLLECTION_SERVICE_URL="/metrics/logmetrics"