/*! * AdminLTE v3.0.0-beta.1 (https://adminlte.io) * Copyright 2014-2019 Abdullah Almsaeed * Licensed under MIT (https://github.com/almasaeed2010/AdminLTE/blob/master/LICENSE) */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.adminlte={})}(this,function(e){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i,t,o,r,s,a,c,l,d,f,h,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p=(i=jQuery,t="ControlSidebar",o="lte.control.sidebar",r=i.fn[t],s=".control-sidebar",a='[data-widget="control-sidebar"]',c=".main-header",l="control-sidebar-open",d="control-sidebar-slide-open",f={slide:!0},g.prototype.show=function(){this._config.slide?i("body").removeClass(d):i("body").removeClass(l)},g.prototype.collapse=function(){this._config.slide?i("body").addClass(d):i("body").addClass(l)},g.prototype.toggle=function(){this._setMargin(),i("body").hasClass(l)||i("body").hasClass(d)?this.show():this.collapse()},g.prototype._getConfig=function(e){return i.extend({},f,e)},g.prototype._setMargin=function(){i(s).css({top:i(c).innerHeight()})},g._jQueryInterface=function(t){return this.each(function(){var e=i(this).data(o);if(e||(e=new g(this,i(this).data()),i(this).data(o,e)),"undefined"===e[t])throw new Error(t+" is not a function");e[t]()})},h=g,i(document).on("click",a,function(e){e.preventDefault(),h._jQueryInterface.call(i(this),"toggle")}),i.fn[t]=h._jQueryInterface,i.fn[t].Constructor=h,i.fn[t].noConflict=function(){return i.fn[t]=r,h._jQueryInterface},h);function g(e,t){n(this,g),this._element=e,this._config=this._getConfig(t)}var y,_,m,v,b,C,w,E,j,S,D,x,Q,A,I,L,O=(y=jQuery,_="Layout",m="lte.layout",v=y.fn[_],b=".main-header",C=".main-sidebar .sidebar",w=".content-wrapper",E=".brand-link",j=".control-sidebar",S=".main-footer",D="hold-transition",x="layout-fixed",Q="layout-navbar-fixed",A="layout-footer-fixed",I={scrollbarTheme:"os-theme-light",scrollbarAutoHide:"l"},P.prototype.fixLayoutHeight=function(){var e={window:y(window).height(),header:y(b).outerHeight(),footer:y(S).outerHeight(),sidebar:y(C).height()},t=this._max(e);y("body").hasClass(x)?(y(w).css("min-height",t-e.header-e.footer),y(j+" .control-sidebar-content").css("height",t-e.header),"undefined"!=typeof y.fn.overlayScrollbars&&(y(C).overlayScrollbars({className:this._config.scrollbarTheme,sizeAutoCapable:!0,scrollbars:{autoHide:this._config.scrollbarAutoHide,clickScrolling:!0}}),y(j+" .control-sidebar-content").overlayScrollbars({className:this._config.scrollbarTheme,sizeAutoCapable:!0,scrollbars:{autoHide:this._config.scrollbarAutoHide,clickScrolling:!0}}))):e.sidebarn&&(n=t[e])}),n},P._jQueryInterface=function(n){return this.each(function(){var e=y(this).data(m),t=y.extend({},I,y(this).data());e||(e=new P(y(this),t),y(this).data(m,e)),"init"===n&&e[n]()})},L=P,y(window).on("load",function(){L._jQueryInterface.call(y("body"))}),y.fn[_]=L._jQueryInterface,y.fn[_].Constructor=L,y.fn[_].noConflict=function(){return y.fn[_]=v,L._jQueryInterface},L);function P(e,t){n(this,P),this._config=t,this._element=e,this._init()}var T,H,k,N,M,z,U,W,X,R,V,q,B,F,G=(T=jQuery,H="PushMenu",N="."+(k="lte.pushmenu"),M=T.fn[H],z={COLLAPSED:"collapsed"+N,SHOWN:"shown"+N},U={screenCollapseSize:768},W='[data-widget="pushmenu"]',X="body",R="#sidebar-overlay",V=".wrapper",q="sidebar-collapse",B="sidebar-open",J.prototype.show=function(){T(X).addClass(B).removeClass(q);var e=T.Event(z.SHOWN);T(this._element).trigger(e)},J.prototype.collapse=function(){T(X).removeClass(B).addClass(q);var e=T.Event(z.COLLAPSED);T(this._element).trigger(e)},J.prototype.toggle=function(){(T(window).width()>=this._options.screenCollapseSize?!T(X).hasClass(q):T(X).hasClass(B))?this.collapse():this.show()},J.prototype._addOverlay=function(){var e=this,t=T("
",{id:"sidebar-overlay"});t.on("click",function(){e.collapse()}),T(V).append(t)},J._jQueryInterface=function(n){return this.each(function(){var e=T(this).data(k),t=T.extend({},U,T(this).data());e||(e=new J(this,t),T(this).data(k,e)),n&&e[n]()})},F=J,T(document).on("click",W,function(e){e.preventDefault();var t=e.currentTarget;"pushmenu"!==T(t).data("widget")&&(t=T(t).closest(W)),F._jQueryInterface.call(T(t),"toggle")}),T.fn[H]=F._jQueryInterface,T.fn[H].Constructor=F,T.fn[H].noConflict=function(){return T.fn[H]=M,F._jQueryInterface},F);function J(e,t){n(this,J),this._element=e,this._options=T.extend({},U,t),T(R).length||this._addOverlay()}var K,Y,Z,$,ee,te,ne,ie,oe,re,se,ae,ce,le=(K=jQuery,Y="Treeview",$="."+(Z="lte.treeview"),ee=K.fn[Y],te={SELECTED:"selected"+$,EXPANDED:"expanded"+$,COLLAPSED:"collapsed"+$,LOAD_DATA_API:"load"+$},ne=".nav-item",ie=".nav-treeview",oe=".menu-open",se="menu-open",ae={trigger:(re='[data-widget="treeview"]')+" "+".nav-link",animationSpeed:300,accordion:!0},de.prototype.init=function(){this._setupListeners()},de.prototype.expand=function(e,t){var n=this,i=K.Event(te.EXPANDED);if(this._config.accordion){var o=t.siblings(oe).first(),r=o.find(ie).first();this.collapse(r,o)}e.slideDown(this._config.animationSpeed,function(){t.addClass(se),K(n._element).trigger(i)})},de.prototype.collapse=function(e,t){var n=this,i=K.Event(te.COLLAPSED);e.slideUp(this._config.animationSpeed,function(){t.removeClass(se),K(n._element).trigger(i),e.find(oe+" > "+ie).slideUp(),e.find(oe).removeClass(se)})},de.prototype.toggle=function(e){var t=K(e.currentTarget),n=t.next();if(n.is(ie)){e.preventDefault();var i=t.parents(ne).first();i.hasClass(se)?this.collapse(K(n),i):this.expand(K(n),i)}},de.prototype._setupListeners=function(){var t=this;K(document).on("click",this._config.trigger,function(e){t.toggle(e)})},de._jQueryInterface=function(n){return this.each(function(){var e=K(this).data(Z),t=K.extend({},ae,K(this).data());e||(e=new de(K(this),t),K(this).data(Z,e)),"init"===n&&e[n]()})},ce=de,K(window).on(te.LOAD_DATA_API,function(){K(re).each(function(){ce._jQueryInterface.call(K(this),"init")})}),K.fn[Y]=ce._jQueryInterface,K.fn[Y].Constructor=ce,K.fn[Y].noConflict=function(){return K.fn[Y]=ee,ce._jQueryInterface},ce);function de(e,t){n(this,de),this._config=t,this._element=e}var fe,he,ue,pe,ge,ye,_e,me,ve,be,Ce,we,Ee,je,Se,De,xe,Qe,Ae=(fe=jQuery,he="Widget",pe="."+(ue="lte.widget"),ge=fe.fn[he],ye={EXPANDED:"expanded"+pe,COLLAPSED:"collapsed"+pe,REMOVED:"removed"+pe},ve=".card",be=".card-body",Ce=".card-footer",we=".fa-minus",Ee=".fa-plus",je="collapsed-card",Se="fa-minus",De="fa-plus",xe={animationSpeed:"normal",collapseTrigger:me='[data-widget="collapse"]',removeTrigger:_e='[data-widget="remove"]'},Ie.prototype.collapse=function(){var e=this;this._parent.children(be+", "+Ce).slideUp(this._settings.animationSpeed,function(){e._parent.addClass(je)}),this._element.children(we).addClass(De).removeClass(Se);var t=fe.Event(ye.COLLAPSED);this._element.trigger(t,this._parent)},Ie.prototype.expand=function(){var e=this;this._parent.children(be+", "+Ce).slideDown(this._settings.animationSpeed,function(){e._parent.removeClass(je)}),this._element.children(Ee).addClass(Se).removeClass(De);var t=fe.Event(ye.EXPANDED);this._element.trigger(t,this._parent)},Ie.prototype.remove=function(){this._parent.slideUp();var e=fe.Event(ye.REMOVED);this._element.trigger(e,this._parent)},Ie.prototype.toggle=function(){this._parent.hasClass(je)?this.expand():this.collapse()},Ie.prototype._init=function(e){var t=this;this._parent=e,fe(this).find(this._settings.collapseTrigger).click(function(){t.toggle()}),fe(this).find(this._settings.removeTrigger).click(function(){t.remove()})},Ie._jQueryInterface=function(t){return this.each(function(){var e=fe(this).data(ue);e||(e=new Ie(fe(this),e),fe(this).data(ue,"string"==typeof t?e:t)),"string"==typeof t&&t.match(/remove|toggle/)?e[t]():"object"===("undefined"==typeof t?"undefined":u(t))&&e._init(fe(this))})},Qe=Ie,fe(document).on("click",me,function(e){e&&e.preventDefault(),Qe._jQueryInterface.call(fe(this),"toggle")}),fe(document).on("click",_e,function(e){e&&e.preventDefault(),Qe._jQueryInterface.call(fe(this),"remove")}),fe.fn[he]=Qe._jQueryInterface,fe.fn[he].Constructor=Qe,fe.fn[he].noConflict=function(){return fe.fn[he]=ge,Qe._jQueryInterface},Qe);function Ie(e,t){n(this,Ie),this._element=e,this._parent=e.parents(ve).first(),this._settings=fe.extend({},xe,t)}e.ControlSidebar=p,e.Layout=O,e.PushMenu=G,e.Treeview=le,e.Widget=Ae,Object.defineProperty(e,"__esModule",{value:!0})}); //# sourceMappingURL=adminlte.min.js.map