芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/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
=this.getBreakpoint("lg")+1||("tablet"==t&&e>=this.getBreakpoint("md")+1&&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
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
0&&t.classList.add(KTUtil.trim(n[i]));else if(!KTUtil.hasClass(t,e))for(var r=0;r
=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
=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
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
>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}}}();