ok

Mini Shell

Direktori : /home2/selectio/www/fms-worksuite/public/vendor/jquery/
Upload File :
Current File : /home2/selectio/www/fms-worksuite/public/vendor/jquery/scripts.bundle.min.js

"use strict";var KTMenu=function(t,e){var n=this,i=!1,r=KTUtil.getById(t);KTUtil.getBody();if(r){var o={scroll:{rememberPosition:!1}},l={construct:function(t){return KTUtil.data(r).has("menu")?n=KTUtil.data(r).get("menu"):(l.init(t),l.reset(),l.build(),KTUtil.data(r).set("menu",n)),n},init:function(t){n.events=[],n.eventHandlers={},n.options=KTUtil.deepExtend({},o,t),n.uid=KTUtil.getUniqueID()},update:function(t){n.options=KTUtil.deepExtend({},o,t),l.reset(),n.eventHandlers={},l.build(),KTUtil.data(r).set("menu",n)},reload:function(){l.reset(),l.build(),l.resetSubmenuProps()},build:function(){n.options.scroll&&n.options.scroll.height&&l.scrollInit()},reset:function(){KTUtil.off(r,"click",n.eventHandlers.event_1),KTUtil.off(r,"click",n.eventHandlers.event_6)},scrollInit:function(){n.options.scroll&&n.options.scroll.height?(KTUtil.scrollDestroy(r,!0),KTUtil.scrollInit(r,{mobileNativeScroll:!0,windowScroll:!1,resetHeightOnDestroy:!0,handleWindowResize:!0,height:n.options.scroll.height,rememberPosition:n.options.scroll.rememberPosition})):KTUtil.scrollDestroy(r,!0)},scrollUpdate:function(){n.options.scroll&&n.options.scroll.height&&KTUtil.scrollUpdate(r)},scrollTop:function(){n.options.scroll&&n.options.scroll.height&&KTUtil.scrollTop(r)},resetSubmenuProps:function(t){var e=KTUtil.findAll(r,".menu-submenu");if(e)for(var n=0,i=e.length;n<i;n++){var o=e[0];KTUtil.css(o,"display",""),KTUtil.css(o,"overflow",""),o.hasAttribute("data-hor-direction")&&(KTUtil.removeClass(o,"menu-submenu-left"),KTUtil.removeClass(o,"menu-submenu-right"),KTUtil.addClass(o,o.getAttribute("data-hor-direction")))}},resetActiveItem:function(t){for(var e,n,i=0,o=(e=r.querySelectorAll(".menu-item-active")).length;i<o;i++){var l=e[0];KTUtil.removeClass(l,"menu-item-active"),KTUtil.hide(KTUtil.child(l,".menu-submenu"));for(var a=0,s=(n=KTUtil.parents(l,".menu-item-submenu")||[]).length;a<s;a++){var u=n[i];KTUtil.removeClass(u,"menu-item-open"),KTUtil.hide(KTUtil.child(u,".menu-submenu"))}}},setActiveItem:function(t){l.resetActiveItem();for(var e=KTUtil.parents(t,".menu-item-submenu")||[],n=0,i=e.length;n<i;n++)KTUtil.addClass(e[n],"menu-item-open");KTUtil.addClass(t,"menu-item-active")},getBreadcrumbs:function(t){var e,n=[],i=KTUtil.child(t,".menu-link");n.push({text:e=KTUtil.child(i,".menu-text")?e.innerHTML:"",title:i.getAttribute("title"),href:i.getAttribute("href")});for(var r=KTUtil.parents(t,".menu-item-submenu"),o=0,l=r.length;o<l;o++){var a=KTUtil.child(r[o],".menu-link");n.push({text:e=KTUtil.child(a,".menu-text")?e.innerHTML:"",title:a.getAttribute("title"),href:a.getAttribute("href")})}return n.reverse()},getPageTitle:function(t){var e;return KTUtil.child(t,".menu-text")?e.innerHTML:""},eventTrigger:function(t,e,i){for(var r=0;r<n.events.length;r++){var o=n.events[r];if(o.name==t){if(1!=o.one)return o.handler.call(this,e,i);if(0==o.fired)return n.events[r].fired=!0,o.handler.call(this,e,i)}}},addEvent:function(t,e,i){n.events.push({name:t,handler:e,one:i,fired:!1})},removeEvent:function(t){n.events[t]&&delete n.events[t]}};return n.setDefaults=function(t){o=t},n.scrollUpdate=function(){return l.scrollUpdate()},n.scrollReInit=function(){return l.scrollInit()},n.scrollTop=function(){return l.scrollTop()},n.setActiveItem=function(t){return l.setActiveItem(t)},n.reload=function(){return l.reload()},n.update=function(t){return l.update(t)},n.getBreadcrumbs=function(t){return l.getBreadcrumbs(t)},n.getPageTitle=function(t){return l.getPageTitle(t)},n.getSubmenuMode=function(t){return l.getSubmenuMode(t)},l.construct.apply(n,[e]),KTUtil.addResizeHandler(function(){i&&n.reload()}),i=!0,n}};window.KTUtilElementDataStore={},window.KTUtilElementDataStoreID=0,window.KTUtilDelegatedEventHandlers={};var KTUtil=function(){var t=[],e={sm:544,md:768,lg:992,xl:1200},n=function(){window.addEventListener("resize",function(){KTUtil.throttle(void 0,function(){!function(){for(var e=0;e<t.length;e++)t[e].call()}()},200)})};return{init:function(t){t&&t.breakpoints&&(e=t.breakpoints),n()},addResizeHandler:function(e){t.push(e)},removeResizeHandler:function(e){for(var n=0;n<t.length;n++)e===t[n]&&delete t[n]},runResizeHandlers:function(){_runResizeHandlers()},resize:function(){if("function"==typeof Event)window.dispatchEvent(new Event("resize"));else{var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}},getURLParam:function(t){var e,n,i=window.location.search.substring(1).split("&");for(e=0;e<i.length;e++)if((n=i[e].split("="))[0]==t)return unescape(n[1]);return null},isMobileDevice:function(){var t=this.getViewPort().width<this.getBreakpoint("lg");return!1===t&&(t=null!=navigator.userAgent.match(/iPad/i)),t},isDesktopDevice:function(){return!KTUtil.isMobileDevice()},getViewPort:function(){var t=window,e="inner";return"innerWidth"in window||(e="client",t=document.documentElement||document.body),{width:t[e+"Width"],height:t[e+"Height"]}},isInResponsiveRange:function(t){var e=this.getViewPort().width;return"general"==t||("desktop"==t&&e>=this.getBreakpoint("lg")+1||("tablet"==t&&e>=this.getBreakpoint("md")+1&&e<this.getBreakpoint("lg")||("mobile"==t&&e<=this.getBreakpoint("md")||("desktop-and-tablet"==t&&e>=this.getBreakpoint("md")+1||("tablet-and-mobile"==t&&e<=this.getBreakpoint("lg")||"minimal-desktop-and-below"==t&&e<=this.getBreakpoint("xl"))))))},isBreakpointUp:function(t){return this.getViewPort().width>=this.getBreakpoint(t)},isBreakpointDown:function(t){return this.getViewPort().width<this.getBreakpoint(t)},getUniqueID:function(t){return t+Math.floor(Math.random()*(new Date).getTime())},getBreakpoint:function(t){return e[t]},isset:function(t,e){var n;if(-1!==(e=e||"").indexOf("["))throw new Error("Unsupported object path notation.");e=e.split(".");do{if(void 0===t)return!1;if(n=e.shift(),!t.hasOwnProperty(n))return!1;t=t[n]}while(e.length);return!0},getHighestZindex:function(t){for(var e,n;t&&t!==document;){if(("absolute"===(e=KTUtil.css(t,"position"))||"relative"===e||"fixed"===e)&&(n=parseInt(KTUtil.css(t,"z-index")),!isNaN(n)&&0!==n))return n;t=t.parentNode}return null},hasFixedPositionedParent:function(t){for(;t&&t!==document;){if("fixed"===KTUtil.css(t,"position"))return!0;t=t.parentNode}return!1},sleep:function(t){for(var e=(new Date).getTime(),n=0;n<1e7&&!((new Date).getTime()-e>t);n++);},getRandomInt:function(t,e){return Math.floor(Math.random()*(e-t+1))+t},isAngularVersion:function(){return void 0!==window.Zone},deepExtend:function(t){t=t||{};for(var e=1;e<arguments.length;e++){var n=arguments[e];if(n)for(var i in n)n.hasOwnProperty(i)&&("object"==typeof n[i]?t[i]=KTUtil.deepExtend(t[i],n[i]):t[i]=n[i])}return t},extend:function(t){t=t||{};for(var e=1;e<arguments.length;e++)if(arguments[e])for(var n in arguments[e])arguments[e].hasOwnProperty(n)&&(t[n]=arguments[e][n]);return t},getById:function(t){return"string"==typeof t?document.getElementById(t):t},getByTag:function(t){return document.getElementsByTagName(t)},getByTagName:function(t){return document.getElementsByTagName(t)},getByClass:function(t){return document.getElementsByClassName(t)},getBody:function(){return document.getElementsByTagName("body")[0]},hasClasses:function(t,e){if(t){for(var n=e.split(" "),i=0;i<n.length;i++)if(0==KTUtil.hasClass(t,KTUtil.trim(n[i])))return!1;return!0}},hasClass:function(t,e){if(t)return t.classList?t.classList.contains(e):new RegExp("\\b"+e+"\\b").test(t.className)},addClass:function(t,e){if(t&&void 0!==e){var n=e.split(" ");if(t.classList)for(var i=0;i<n.length;i++)n[i]&&n[i].length>0&&t.classList.add(KTUtil.trim(n[i]));else if(!KTUtil.hasClass(t,e))for(var r=0;r<n.length;r++)t.className+=" "+KTUtil.trim(n[r])}},removeClass:function(t,e){if(t&&void 0!==e){var n=e.split(" ");if(t.classList)for(var i=0;i<n.length;i++)t.classList.remove(KTUtil.trim(n[i]));else if(KTUtil.hasClass(t,e))for(var r=0;r<n.length;r++)t.className=t.className.replace(new RegExp("\\b"+KTUtil.trim(n[r])+"\\b","g"),"")}},triggerCustomEvent:function(t,e,n){var i;window.CustomEvent?i=new CustomEvent(e,{detail:n}):(i=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,n),t.dispatchEvent(i)},triggerEvent:function(t,e){if(t.ownerDocument)t.ownerDocument;else{if(9!=t.nodeType)throw new Error("Invalid node passed to fireEvent: "+t.id);t}},index:function(t){for(var e=t.parentNode.children,n=0;n<e.length;n++)if(e[n]==t)return n},trim:function(t){return t.trim()},eventTriggered:function(t){return!!t.currentTarget.dataset.triggered||(t.currentTarget.dataset.triggered=!0,!1)},remove:function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},find:function(t,e){if(t=KTUtil.getById(t))return t.querySelector(e)},findAll:function(t,e){if(t=KTUtil.getById(t))return t.querySelectorAll(e)},insertAfter:function(t,e){return e.parentNode.insertBefore(t,e.nextSibling)},parents:function(t,e){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),n=e.length;--n>=0&&e.item(n)!==this;);return n>-1});for(var n=[];t&&t!==document;t=t.parentNode)e?t.matches(e)&&n.push(t):n.push(t);return n},children:function(t,e,n){if(t&&t.childNodes){for(var i=[],r=0,o=t.childNodes.length;r<o;++r)1==t.childNodes[r].nodeType&&KTUtil.matches(t.childNodes[r],e,n)&&i.push(t.childNodes[r]);return i}},child:function(t,e,n){var i=KTUtil.children(t,e,n);return i?i[0]:null},matches:function(t,e,n){var i=Element.prototype,r=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||function(t){return-1!==[].indexOf.call(document.querySelectorAll(t),this)};return!(!t||!t.tagName)&&r.call(t,e)},data:function(t){return{set:function(e,n){t&&(void 0===t.customDataTag&&(window.KTUtilElementDataStoreID++,t.customDataTag=window.KTUtilElementDataStoreID),void 0===window.KTUtilElementDataStore[t.customDataTag]&&(window.KTUtilElementDataStore[t.customDataTag]={}),window.KTUtilElementDataStore[t.customDataTag][e]=n)},get:function(e){if(t)return void 0===t.customDataTag?null:this.has(e)?window.KTUtilElementDataStore[t.customDataTag][e]:null},has:function(e){return!!t&&(void 0!==t.customDataTag&&!(!window.KTUtilElementDataStore[t.customDataTag]||!window.KTUtilElementDataStore[t.customDataTag][e]))},remove:function(e){t&&this.has(e)&&delete window.KTUtilElementDataStore[t.customDataTag][e]}}},outerWidth:function(t,e){var n;return!0===e?(n=parseFloat(t.offsetWidth),n+=parseFloat(KTUtil.css(t,"margin-left"))+parseFloat(KTUtil.css(t,"margin-right")),parseFloat(n)):n=parseFloat(t.offsetWidth)},offset:function(t){var e,n;if(t)return t.getClientRects().length?(e=t.getBoundingClientRect(),n=t.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}},height:function(t){return KTUtil.css(t,"height")},outerHeight:function(t,e){var n,i=t.offsetHeight;return void 0!==e&&!0===e?(n=getComputedStyle(t),i+=parseInt(n.marginTop)+parseInt(n.marginBottom)):i},visible:function(t){return!(0===t.offsetWidth&&0===t.offsetHeight)},attr:function(t,e,n){if(null!=t)return void 0===n?t.getAttribute(e):void t.setAttribute(e,n)},hasAttr:function(t,e){if(null!=t)return!!t.getAttribute(e)},removeAttr:function(t,e){null!=t&&t.removeAttribute(e)},animate:function(t,e,n,i,r,o){var l={};if(l.linear=function(t,e,n,i){return n*t/i+e},r=l.linear,"number"==typeof t&&"number"==typeof e&&"number"==typeof n&&"function"==typeof i){"function"!=typeof o&&(o=function(){});var a=window.requestAnimationFrame||function(t){window.setTimeout(t,20)},s=e-t;i(t);var u=window.performance&&window.performance.now?window.performance.now():+new Date;a(function l(c){var d=(c||+new Date)-u;d>=0&&i(r(d,t,s,n)),d>=0&&d>=n?(i(e),o()):a(l)})}},actualCss:function(t,e,n){var i,r="";if(t instanceof HTMLElement!=!1)return t.getAttribute("kt-hidden-"+e)&&!1!==n?parseFloat(t.getAttribute("kt-hidden-"+e)):(r=t.style.cssText,t.style.cssText="position: absolute; visibility: hidden; display: block;","width"==e?i=t.offsetWidth:"height"==e&&(i=t.offsetHeight),t.style.cssText=r,t.setAttribute("kt-hidden-"+e,i),parseFloat(i))},actualHeight:function(t,e){return KTUtil.actualCss(t,"height",e)},actualWidth:function(t,e){return KTUtil.actualCss(t,"width",e)},getScroll:function(t,e){return e="scroll"+e,t==window||t==document?self["scrollTop"==e?"pageYOffset":"pageXOffset"]||browserSupportsBoxModel&&document.documentElement[e]||document.body[e]:t[e]},css:function(t,e,n){if(t)if(void 0!==n)t.style[e]=n;else{var i=(t.ownerDocument||document).defaultView;if(i&&i.getComputedStyle)return e=e.replace(/([A-Z])/g,"-$1").toLowerCase(),i.getComputedStyle(t,null).getPropertyValue(e);if(t.currentStyle)return e=e.replace(/\-(\w)/g,function(t,e){return e.toUpperCase()}),n=t.currentStyle[e],/^\d+(em|pt|%|ex)?$/i.test(n)?function(e){var n=t.style.left,i=t.runtimeStyle.left;return t.runtimeStyle.left=t.currentStyle.left,t.style.left=e||0,e=t.style.pixelLeft+"px",t.style.left=n,t.runtimeStyle.left=i,e}(n):n}},slide:function(t,e,n,i,r){if(!(!t||"up"==e&&!1===KTUtil.visible(t)||"down"==e&&!0===KTUtil.visible(t))){n=n||600;var o=KTUtil.actualHeight(t),l=!1,a=!1;KTUtil.css(t,"padding-top")&&!0!==KTUtil.data(t).has("slide-padding-top")&&KTUtil.data(t).set("slide-padding-top",KTUtil.css(t,"padding-top")),KTUtil.css(t,"padding-bottom")&&!0!==KTUtil.data(t).has("slide-padding-bottom")&&KTUtil.data(t).set("slide-padding-bottom",KTUtil.css(t,"padding-bottom")),KTUtil.data(t).has("slide-padding-top")&&(l=parseInt(KTUtil.data(t).get("slide-padding-top"))),KTUtil.data(t).has("slide-padding-bottom")&&(a=parseInt(KTUtil.data(t).get("slide-padding-bottom"))),"up"==e?(t.style.cssText="display: block; overflow: hidden;",l&&KTUtil.animate(0,l,n,function(e){t.style.paddingTop=l-e+"px"},"linear"),a&&KTUtil.animate(0,a,n,function(e){t.style.paddingBottom=a-e+"px"},"linear"),KTUtil.animate(0,o,n,function(e){t.style.height=o-e+"px"},"linear",function(){t.style.height="",t.style.display="none","function"==typeof i&&i()})):"down"==e&&(t.style.cssText="display: block; overflow: hidden;",l&&KTUtil.animate(0,l,n,function(e){t.style.paddingTop=e+"px"},"linear",function(){t.style.paddingTop=""}),a&&KTUtil.animate(0,a,n,function(e){t.style.paddingBottom=e+"px"},"linear",function(){t.style.paddingBottom=""}),KTUtil.animate(0,o,n,function(e){t.style.height=e+"px"},"linear",function(){t.style.height="",t.style.display="",t.style.overflow="","function"==typeof i&&i()}))}},slideUp:function(t,e,n){KTUtil.slide(t,"up",e,n)},slideDown:function(t,e,n){KTUtil.slide(t,"down",e,n)},addEvent:function(t,e,n,i){null!=t&&t.addEventListener(e,n)},removeEvent:function(t,e,n){null!==t&&t.removeEventListener(e,n)},on:function(t,e,n,i){if(e){var r=KTUtil.getUniqueID("event");return window.KTUtilDelegatedEventHandlers[r]=function(n){for(var r=t.querySelectorAll(e),o=n.target;o&&o!==t;){for(var l=0,a=r.length;l<a;l++)o===r[l]&&i.call(o,n);o=o.parentNode}},KTUtil.addEvent(t,n,window.KTUtilDelegatedEventHandlers[r]),r}},off:function(t,e,n){t&&window.KTUtilDelegatedEventHandlers[n]&&(KTUtil.removeEvent(t,e,window.KTUtilDelegatedEventHandlers[n]),delete window.KTUtilDelegatedEventHandlers[n])},one:function(t,e,n){t.addEventListener(e,function e(i){return i.target&&i.target.removeEventListener&&i.target.removeEventListener(i.type,e),t&&t.removeEventListener&&i.currentTarget.removeEventListener(i.type,e),n(i)})},hash:function(t){var e,n=0;if(0===t.length)return n;for(e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return n},animateClass:function(t,e,n){var i,r={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd",msAnimation:"msAnimationEnd"};for(var o in r)void 0!==t.style[o]&&(i=r[o]);KTUtil.addClass(t,"animated "+e),KTUtil.one(t,i,function(){KTUtil.removeClass(t,"animated "+e)}),n&&KTUtil.one(t,i,n)},transitionEnd:function(t,e){var n,i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"mozTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"msTransitionEnd"};for(var r in i)void 0!==t.style[r]&&(n=i[r]);KTUtil.one(t,n,e)},animationEnd:function(t,e){var n,i={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd",msAnimation:"msAnimationEnd"};for(var r in i)void 0!==t.style[r]&&(n=i[r]);KTUtil.one(t,n,e)},animateDelay:function(t,e){for(var n=["webkit-","moz-","ms-","o-",""],i=0;i<n.length;i++)KTUtil.css(t,n[i]+"animation-delay",e)},animateDuration:function(t,e){for(var n=["webkit-","moz-","ms-","o-",""],i=0;i<n.length;i++)KTUtil.css(t,n[i]+"animation-duration",e)},scrollTo:function(t,e,n){n=n||500;var i,r,o=t?KTUtil.offset(t).top:0,l=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;e&&(l+=e),i=l,r=o,KTUtil.animate(i,r,n,function(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t})},scrollTop:function(t,e){KTUtil.scrollTo(null,t,e)},isArray:function(t){return t&&Array.isArray(t)},ready:function(t){(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?t():document.addEventListener("DOMContentLoaded",t)},isEmpty:function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},numberString:function(t){for(var e=(t+="").split("."),n=e[0],i=e.length>1?"."+e[1]:"",r=/(\d+)(\d{3})/;r.test(n);)n=n.replace(r,"$1,$2");return n+i},detectIE:function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var n=t.indexOf("rv:");return parseInt(t.substring(n+3,t.indexOf(".",n)),10)}var i=t.indexOf("Edge/");return i>0&&parseInt(t.substring(i+5,t.indexOf(".",i)),10)},isRTL:function(){var t=KTUtil.getByTagName("html")[0];if(t)return"rtl"==KTUtil.attr(t,"direction")},scrollInit:function(t,e){if(t){e=KTUtil.deepExtend({},{wheelSpeed:.5,swipeEasing:!0,wheelPropagation:!1,minScrollbarLength:40,maxScrollbarLength:300,suppressScrollX:!0},e),n(),e.handleWindowResize&&KTUtil.addResizeHandler(function(){n()})}function n(){var n,i,r=t.getAttributeNames();if(r.length>0&&r.forEach(function(n){if(/^data-.*/g.test(n)&&0==["scroll","height","mobile-height"].includes(i)){var i=n.replace("data-","").toLowerCase().replace(/(?:[\s-])\w/g,function(t){return t.replace("-","").toUpperCase()});e[i]=KTUtil.filterBoolean(t.getAttribute(n))}}),!1!==(i=e.height instanceof Function?e.height.call():!0===KTUtil.isMobileDevice()&&e.mobileHeight?parseInt(e.mobileHeight):parseInt(e.height)))if(i=parseInt(i),!e.mobileNativeScroll&&!e.disableForMobile||!0!==KTUtil.isMobileDevice())if(i>0&&KTUtil.css(t,"height",i+"px"),e.desktopNativeScroll)KTUtil.css(t,"overflow","auto");else{"true"==KTUtil.attr(t,"data-window-scroll")&&(e.windowScroll=!0),(n=KTUtil.data(t).get("ps"))?n.update():(KTUtil.css(t,"overflow","hidden"),KTUtil.addClass(t,"scroll"),n=new PerfectScrollbar(t,e),KTUtil.data(t).set("ps",n));KTUtil.attr(t,"id")}else(n=KTUtil.data(t).get("ps"))?(e.resetHeightOnDestroy?KTUtil.css(t,"height","auto"):(KTUtil.css(t,"overflow","auto"),i>0&&KTUtil.css(t,"height",i+"px")),n.destroy(),n=KTUtil.data(t).remove("ps")):i>0&&(KTUtil.css(t,"overflow","auto"),KTUtil.css(t,"height",i+"px"));else KTUtil.scrollDestroy(t,!0)}},scrollUpdate:function(t){var e=KTUtil.data(t).get("ps");e&&e.update()},scrollUpdateAll:function(t){for(var e=KTUtil.findAll(t,".ps"),n=0,i=e.length;n<i;n++)KTUtil.scrollUpdate(e[n])},scrollDestroy:function(t,e){var n=KTUtil.data(t).get("ps");n&&(n.destroy(),n=KTUtil.data(t).remove("ps")),t&&e&&(t.style.setProperty("overflow",""),t.style.setProperty("height",""))},filterBoolean:function(t){return!0===t||"true"===t||!1!==t&&"false"!==t&&t},setHTML:function(t,e){t.innerHTML=e},getHTML:function(t){if(t)return t.innerHTML},getDocumentHeight:function(){var t=document.body,e=document.documentElement;return Math.max(t.scrollHeight,t.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight)},getScrollTop:function(){return(document.scrollingElement||document.documentElement).scrollTop},changeColor:function(t,e){var n=!1;"#"==t[0]&&(t=t.slice(1),n=!0);var i=parseInt(t,16),r=(i>>16)+e;r>255?r=255:r<0&&(r=0);var o=(i>>8&255)+e;o>255?o=255:o<0&&(o=0);var l=(255&i)+e;return l>255?l=255:l<0&&(l=0),(n?"#":"")+(l|o<<8|r<<16).toString(16)},throttle:function(t,e,n){t||(t=setTimeout(function(){e(),t=void 0},n))},debounce:function(t,e,n){clearTimeout(t),t=setTimeout(e,n)},btnWait:function(t,e,n,i){if(t&&(void 0!==i&&!0===i&&KTUtil.attr(t,"disabled",!0),e&&(KTUtil.addClass(t,e),KTUtil.attr(t,"wait-class",e)),n)){var r=KTUtil.find(t,".btn-caption");r?(KTUtil.data(r).set("caption",KTUtil.getHTML(r)),KTUtil.setHTML(r,n)):(KTUtil.data(t).set("caption",KTUtil.getHTML(t)),KTUtil.setHTML(t,n))}}}}();KTUtil.ready(function(){sideMenuScroll.init("sideMenuScroll"),msgLeft.init("msgLeft"),chatBox.init("chatBox"),settingsMenu.init("settingsMenu"),recentTickets.init("recentTickets"),ticketMsg.init("ticketMsg"),projectActivityDetail.init("projectActivityDetail"),empDashNotice.init("empDashNotice")});var sideMenuScroll=function(){var t;return{init:function(e){var n;(t=KTUtil.getById(e))&&("1"===KTUtil.attr(t,"data-menu-scroll")&&(n={rememberPosition:!0,height:function(){return parseInt(KTUtil.getViewPort().height),KTUtil.isBreakpointUp("lg")?parseInt(KTUtil.getViewPort().height)-111:parseInt(KTUtil.getViewPort().height)-63}}),new KTMenu(t,{scroll:n}))},getElement:function(){return t}}}(),msgLeft=function(){var t;return{init:function(e){var n;(t=KTUtil.getById(e))&&("1"===KTUtil.attr(t,"data-menu-scroll")&&(n={rememberPosition:!0,height:function(){return parseInt(KTUtil.getViewPort().height),KTUtil.isBreakpointUp("lg")?parseInt(KTUtil.getViewPort().height)-127:parseInt(KTUtil.getViewPort().height)-194}}),new KTMenu(t,{scroll:n}))},getElement:function(){return t}}}(),chatBox=function(){var t;return{init:function(e){var n;(t=KTUtil.getById(e))&&("1"===KTUtil.attr(t,"data-menu-scroll")&&(n={rememberPosition:!0,height:function(){return parseInt(KTUtil.getViewPort().height),KTUtil.isBreakpointUp("lg")?parseInt(KTUtil.getViewPort().height)-280:parseInt(KTUtil.getViewPort().height)-273}}),new KTMenu(t,{scroll:n}))},getElement:function(){return t}}}(),settingsMenu=function(){var t;return{init:function(e){var n;(t=KTUtil.getById(e))&&("1"===KTUtil.attr(t,"data-menu-scroll")&&(n={rememberPosition:!0,height:function(){return parseInt(KTUtil.getViewPort().height),KTUtil.isBreakpointUp("lg")?parseInt(KTUtil.getViewPort().height)-130:parseInt(KTUtil.getViewPort().height)-65}}),new KTMenu(t,{scroll:n}))},getElement:function(){return t}}}(),recentTickets=function(){var t;return{init:function(e){var n;(t=KTUtil.getById(e))&&("1"===KTUtil.attr(t,"data-menu-scroll")&&(n={rememberPosition:!0,height:function(){return parseInt(KTUtil.getViewPort().height),KTUtil.isBreakpointUp("lg")?parseInt(KTUtil.getViewPort().height)-451:parseInt(KTUtil.getViewPort().height)-333}}),new KTMenu(t,{scroll:n}))},getElement:function(){return t}}}(),ticketMsg=function(){var t;return{init:function(e){var n;(t=KTUtil.getById(e))&&("1"===KTUtil.attr(t,"data-menu-scroll")&&(n={rememberPosition:!0,height:function(){return parseInt(KTUtil.getViewPort().height),KTUtil.isBreakpointUp("lg")?parseInt(KTUtil.getViewPort().height)-260:parseInt(KTUtil.getViewPort().height)-325}}),new KTMenu(t,{scroll:n}))},getElement:function(){return t}}}(),projectActivityDetail=function(){var t;return{init:function(e){var n;(t=KTUtil.getById(e))&&("1"===KTUtil.attr(t,"data-menu-scroll")&&(n={rememberPosition:!0,height:function(){return parseInt(KTUtil.getViewPort().height),KTUtil.isBreakpointUp("lg")?parseInt(KTUtil.getViewPort().height)-175:parseInt(KTUtil.getViewPort().height)-325}}),new KTMenu(t,{scroll:n}))},getElement:function(){return t}}}(),empDashNotice=function(){var t;return{init:function(e){var n;(t=KTUtil.getById(e))&&("1"===KTUtil.attr(t,"data-menu-scroll")&&(n={rememberPosition:!0,height:function(){return parseInt(KTUtil.getViewPort().height),KTUtil.isBreakpointUp("xl"),parseInt(KTUtil.getViewPort().height)-300}}),new KTMenu(t,{scroll:n}))},getElement:function(){return t}}}();

Zerion Mini Shell 1.0