var TextResizerCache;(function(n){var t=!1,r,i;typeof define=="function"&&define.amd&&(define(n),t=!0);typeof exports=="object"&&(module.exports=n(),t=!0);t||(r=window.Cookies,i=window.Cookies=n(),i.noConflict=function(){return window.Cookies=r,i})})(function(){function n(){for(var n=0,r={},t,i;n<arguments.length;n++){t=arguments[n];for(i in t)r[i]=t[i]}return r}function t(i){function r(t,u,f){var o,c,l,s,v,e,h;if(typeof document!="undefined"){if(arguments.length>1){f=n({path:"/"},r.defaults,f);typeof f.expires=="number"&&(c=new Date,c.setMilliseconds(c.getMilliseconds()+f.expires*864e5),f.expires=c);f.expires=f.expires?f.expires.toUTCString():"";try{o=JSON.stringify(u);/^[\{\[]/.test(o)&&(u=o)}catch(w){}u=i.write?i.write(u,t):encodeURIComponent(String(u)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent);t=encodeURIComponent(String(t));t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent);t=t.replace(/[\(\)]/g,escape);l="";for(s in f)f[s]&&(l+="; "+s,f[s]!==!0)&&(l+="="+f[s]);return document.cookie=t+"="+u+l}t||(o={});for(var y=document.cookie?document.cookie.split("; "):[],p=/(%[0-9A-Z]{2})+/g,a=0;a<y.length;a++){v=y[a].split("=");e=v.slice(1).join("=");e.charAt(0)==='"'&&(e=e.slice(1,-1));try{if(h=v[0].replace(p,decodeURIComponent),e=i.read?i.read(e,h):i(e,h)||e.replace(p,decodeURIComponent),this.json)try{e=JSON.parse(e)}catch(w){}if(t===h){o=e;break}t||(o[h]=e)}catch(w){}}return o}}return r.set=r,r.get=function(n){return r.call(r,n)},r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,i){r(t,"",n(i,{expires:-1}))},r.withConverter=t,r}return t(function(){})});var keyMenuState="_menu",keyUserInfo="_uif",keyMvcAut=".ASPXAUTH",keyLoggedout="Loggedout",keyContext="_context",keyUserAvatar="UserAvatar",dashBoardLink="/Dashboard",signinLink="/IdentityAccess";setProfilePicture=function(n,t,i,r){if(r){n.find("#user-profile-container").css("display","inline-block");n.find("#profile-picture").attr("src",t);n.find("#system-logo").attr("href",dashBoardLink);var u=n.find("#userPanel");u&&(u.find(".user-profile__details__full-name").text(i.fullName),u.find(".user-profile__details__user-name").text(i.email))}else n.find("#nav-action-inner").css("display","inline-block");n.find("#nav-action").addClass("active")};onGetUserProfile=function(n,t){var i=globalconfig_api;$.ajax({type:"GET",url:i+"/api/identityaccess/getpersonalphoto",headers:{"Content-Type":"multipart/form-data; charset=utf-8",Accept:"application/json, text/javascript, */*; q=0.01",Authorization:"Bearer"+t},dataType:"json",success:function(t){t&&setProfilePicture(n,t.photoContent)},error:function(n){console.log(n)}})};onVisibleUserPanel=function(n){var t,i;n&&n.preventDefault();t=$(document).find("#block-header");t.find("#userPanel").addClass("active");i=document.createElement("div");i.id="overlay";t.append(i);setTimeout(function(){t.find("#overlay").bind("click",function(n){n.preventDefault();n.stopPropagation();onInVisibleUserPanel(t,i)})},200)};onInVisibleUserPanel=function(n){n.find("#userPanel").removeClass("active");n.find("#overlay").eq(0).remove()};onLogout=function(n){n&&n.preventDefault();Cookies.remove(keyContext);Cookies.remove(keyUserInfo);Cookies.remove(keyMvcAut);Cookies.remove(keyLoggedout);window.localStorage.clear();setTimeout(function(){window.location.href=signinLink},200)};$(document).ready(function(){var n=localStorage.getItem(keyUserAvatar),t=Cookies.get(keyUserInfo),i=t?JSON.parse(t):"",r=$(document).find("#block-header"),u=n&&i?!0:!1;r&&setProfilePicture(r,n,i,u)});!function(n,t){typeof module!="undefined"?module.exports=t():typeof define=="function"&&typeof define.amd=="object"?define(t):this[n]=t()}("checkBrowserLoadedWithJquery",function(n){function a(n){for(f=1;n=r.shift();)n()}var r=[],i,e=!1,t=document,o=t.documentElement,u=o.doScroll,s="DOMContentLoaded",h="addEventListener",c="onreadystatechange",l="readyState",v=u?/^loaded|^c/:/^loaded|c/,f=v.test(t[l]);return t[h]&&t[h](s,i=function(){t.removeEventListener(s,i,e);a()},e),u&&t.attachEvent(c,i=function(){/^c/.test(t[l])&&(t.detachEvent(c,i),a())}),n=u?function(t){self!=top?f?t():r.push(t):function(){try{o.doScroll("left")}catch(i){return setTimeout(function(){n(t)},50)}t()}()}:function(n){f?n():r.push(n)}});TextResizerCache=function(){function n(){this.cachedId="text-size";this.currentTextSizeGetFromCache=this.cachingTextSize}return Object.defineProperty(n.prototype,"cachingTextSize",{get:function(){return parseInt(localStorage.getItem(this.cachedId),10)||0},set:function(n){this.currentTextSizeGetFromCache=n;localStorage.setItem(this.cachedId,""+n)},enumerable:!0,configurable:!0}),n}();checkBrowserLoadedWithJquery(function(){return function(n,t,i){var r,u,f,e;(n||t||i)?jQuery.fn.extend({addEventListener:Element.prototype.addEventListener,querySelectorAll:document.querySelectorAll}):{};r=0;u=new TextResizerCache;const o=function(){return function(){return document.querySelectorAll.bind(document)}};for(queryElement=function(n){return o()(n)},resizer=queryElement()(".resizer")[0],rootHtml=queryElement()("html")[0],resizerChildren=typeof resizer.children=="object"?resizer.children:resizer.children(),isInternetExplorerBrowser=navigator.appName=="Microsoft Internet Explorer"||!!(navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/rv:11/))||typeof $.browser!="undefined"&&$.browser.msie==1,activeTextResizer=function(n){const t="text-resizer-"+n;return u.cachingTextSize=n,rootHtml.className=t},activeTextResizerIE=function(n){const t="text-resizer-"+n;return rootHtml.className="text-resizer-trigger",u.cachingTextSize=n,window.setTimeout(function(){rootHtml.className=t},100)},u.currentTextSizeGetFromCache>0?activeTextResizer(u.currentTextSizeGetFromCache):activeTextResizer(r),f=0;f<resizerChildren.length;f++)e=resizerChildren[f],e.addEventListener("click",function(){const n=this.className;n=="resizer-increase"&&r<1&&(isInternetExplorerBrowser?activeTextResizerIE(r+=1):activeTextResizer(r+=1));n=="resizer-decrease"&&r>0&&(isInternetExplorerBrowser?activeTextResizerIE(r-=1):activeTextResizer(r-=1));return})}(window.jQuery||window.$||jQuery)})