/*! * 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,f,d,u,h="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",f="control-sidebar-slide-open",d={slide:!0},y.prototype.show=function(){this._config.slide?i("body").removeClass(f):i("body").removeClass(l)},y.prototype.collapse=function(){this._config.slide?i("body").addClass(f):i("body").addClass(l)},y.prototype.toggle=function(){this._setMargin(),i("body").hasClass(l)||i("body").hasClass(f)?this.show():this.collapse()},y.prototype._getConfig=function(e){return i.extend({},d,e)},y.prototype._setMargin=function(){i(s).css({top:i(c).outerHeight()})},y._jQueryInterface=function(t){return this.each(function(){var e=i(this).data(o);if(e||(e=new y(this,i(this).data()),i(this).data(o,e)),"undefined"===e[t])throw new Error(t+" is not a function");e[t]()})},u=y,i(document).on("click",a,function(e){e.preventDefault(),u._jQueryInterface.call(i(this),"toggle")}),i.fn[t]=u._jQueryInterface,i.fn[t].Constructor=u,i.fn[t].noConflict=function(){return i.fn[t]=r,u._jQueryInterface},u);function y(e,t){n(this,y),this._element=e,this._config=this._getConfig(t)}var g,_,m,v,C,w,b,E,j,D,S,Q=(g=jQuery,_="Layout",m="lte.layout",v=g.fn[_],C=".main-header",w=".main-sidebar .sidebar",b=".content-wrapper",E=".main-footer",j="hold-transition",D="layout-fixed",x.prototype.fixLayoutHeight=function(){var e={window:g(window).height(),header:g(C).outerHeight(),footer:g(E).outerHeight(),sidebar:g(w).height()},t=this._max(e);g(b).css("min-height",t-e.header-e.footer),g(w).css("min-height",t-e.header),g("body").hasClass(D)||"undefined"!=typeof g.fn.slimScroll&&g(w).slimScroll({destroy:!0}).slimScroll({height:t-e.header})},x.prototype._init=function(){var e=this;g("body").removeClass(j),this.fixLayoutHeight(),g(w).on("collapsed.lte.treeview expanded.lte.treeview collapsed.lte.pushmenu expanded.lte.pushmenu",function(){e.fixLayoutHeight()}),g(window).resize(function(){e.fixLayoutHeight()}),g("body, html").css("height","auto")},x.prototype._max=function(t){var n=0;return Object.keys(t).forEach(function(e){t[e]>n&&(n=t[e])}),n},x._jQueryInterface=function(t){return this.each(function(){var e=g(this).data(m);e||(e=new x(this),g(this).data(m,e)),t&&e[t]()})},S=x,g(window).on("load",function(){S._jQueryInterface.call(g("body"))}),g.fn[_]=S._jQueryInterface,g.fn[_].Constructor=S,g.fn[_].noConflict=function(){return g.fn[_]=v,S._jQueryInterface},S);function x(e){n(this,x),this._element=e,this._init()}var I,L,A,O,P,T,k,H,M,N,U,W,X,z,R=(I=jQuery,L="PushMenu",O="."+(A="lte.pushmenu"),P=I.fn[L],T={COLLAPSED:"collapsed"+O,SHOWN:"shown"+O},k={screenCollapseSize:768},H='[data-widget="pushmenu"]',M="body",N="#sidebar-overlay",U=".wrapper",W="sidebar-collapse",X="sidebar-open",V.prototype.show=function(){I(M).addClass(X).removeClass(W);var e=I.Event(T.SHOWN);I(this._element).trigger(e)},V.prototype.collapse=function(){I(M).removeClass(X).addClass(W);var e=I.Event(T.COLLAPSED);I(this._element).trigger(e)},V.prototype.toggle=function(){(I(window).width()>=this._options.screenCollapseSize?!I(M).hasClass(W):I(M).hasClass(X))?this.collapse():this.show()},V.prototype._addOverlay=function(){var e=this,t=I("
",{id:"sidebar-overlay"});t.on("click",function(){e.collapse()}),I(U).append(t)},V._jQueryInterface=function(t){return this.each(function(){var e=I(this).data(A);e||(e=new V(this),I(this).data(A,e)),t&&e[t]()})},z=V,I(document).on("click",H,function(e){e.preventDefault();var t=e.currentTarget;"pushmenu"!==I(t).data("widget")&&(t=I(t).closest(H)),z._jQueryInterface.call(I(t),"toggle")}),I.fn[L]=z._jQueryInterface,I.fn[L].Constructor=z,I.fn[L].noConflict=function(){return I.fn[L]=P,z._jQueryInterface},z);function V(e,t){n(this,V),this._element=e,this._options=I.extend({},k,t),I(N).length||this._addOverlay()}var q,B,F,G,J,K,Y,Z,$,ee,te,ne,ie,oe=(q=jQuery,B="Treeview",G="."+(F="lte.treeview"),J=q.fn[B],K={SELECTED:"selected"+G,EXPANDED:"expanded"+G,COLLAPSED:"collapsed"+G,LOAD_DATA_API:"load"+G},Y=".nav-item",Z=".nav-treeview",$=".menu-open",te="menu-open",ne={trigger:(ee='[data-widget="treeview"]')+" "+".nav-link",animationSpeed:300,accordion:!0},re.prototype.init=function(){this._setupListeners()},re.prototype.expand=function(e,t){var n=this,i=q.Event(K.EXPANDED);if(this._config.accordion){var o=t.siblings($).first(),r=o.find(Z).first();this.collapse(r,o)}e.slideDown(this._config.animationSpeed,function(){t.addClass(te),q(n._element).trigger(i)})},re.prototype.collapse=function(e,t){var n=this,i=q.Event(K.COLLAPSED);e.slideUp(this._config.animationSpeed,function(){t.removeClass(te),q(n._element).trigger(i),e.find($+" > "+Z).slideUp(),e.find($).removeClass(te)})},re.prototype.toggle=function(e){var t=q(e.currentTarget),n=t.next();if(n.is(Z)){e.preventDefault();var i=t.parents(Y).first();i.hasClass(te)?this.collapse(q(n),i):this.expand(q(n),i)}},re.prototype._setupListeners=function(){var t=this;q(document).on("click",this._config.trigger,function(e){t.toggle(e)})},re._jQueryInterface=function(n){return this.each(function(){var e=q(this).data(F),t=q.extend({},ne,q(this).data());e||(e=new re(q(this),t),q(this).data(F,e)),"init"===n&&e[n]()})},ie=re,q(window).on(K.LOAD_DATA_API,function(){q(ee).each(function(){ie._jQueryInterface.call(q(this),"init")})}),q.fn[B]=ie._jQueryInterface,q.fn[B].Constructor=ie,q.fn[B].noConflict=function(){return q.fn[B]=J,ie._jQueryInterface},ie);function re(e,t){n(this,re),this._config=t,this._element=e}var se,ae,ce,le,fe,de,ue,he,pe,ye,ge,_e,me,ve,Ce,we,be,Ee,je=(se=jQuery,ae="Widget",le="."+(ce="lte.widget"),fe=se.fn[ae],de={EXPANDED:"expanded"+le,COLLAPSED:"collapsed"+le,REMOVED:"removed"+le},pe=".card",ye=".card-body",ge=".card-footer",_e=".fa-minus",me=".fa-plus",ve="collapsed-card",Ce="fa-minus",we="fa-plus",be={animationSpeed:"normal",collapseTrigger:he='[data-widget="collapse"]',removeTrigger:ue='[data-widget="remove"]'},De.prototype.collapse=function(){var e=this;this._parent.children(ye+", "+ge).slideUp(this._settings.animationSpeed,function(){e._parent.addClass(ve)}),this._element.children(_e).addClass(we).removeClass(Ce);var t=se.Event(de.COLLAPSED);this._element.trigger(t,this._parent)},De.prototype.expand=function(){var e=this;this._parent.children(ye+", "+ge).slideDown(this._settings.animationSpeed,function(){e._parent.removeClass(ve)}),this._element.children(me).addClass(Ce).removeClass(we);var t=se.Event(de.EXPANDED);this._element.trigger(t,this._parent)},De.prototype.remove=function(){this._parent.slideUp();var e=se.Event(de.REMOVED);this._element.trigger(e,this._parent)},De.prototype.toggle=function(){this._parent.hasClass(ve)?this.expand():this.collapse()},De.prototype._init=function(e){var t=this;this._parent=e,se(this).find(this._settings.collapseTrigger).click(function(){t.toggle()}),se(this).find(this._settings.removeTrigger).click(function(){t.remove()})},De._jQueryInterface=function(t){return this.each(function(){var e=se(this).data(ce);e||(e=new De(se(this),e),se(this).data(ce,"string"==typeof t?e:t)),"string"==typeof t&&t.match(/remove|toggle/)?e[t]():"object"===("undefined"==typeof t?"undefined":h(t))&&e._init(se(this))})},Ee=De,se(document).on("click",he,function(e){e&&e.preventDefault(),Ee._jQueryInterface.call(se(this),"toggle")}),se(document).on("click",ue,function(e){e&&e.preventDefault(),Ee._jQueryInterface.call(se(this),"remove")}),se.fn[ae]=Ee._jQueryInterface,se.fn[ae].Constructor=Ee,se.fn[ae].noConflict=function(){return se.fn[ae]=fe,Ee._jQueryInterface},Ee);function De(e,t){n(this,De),this._element=e,this._parent=e.parents(pe).first(),this._settings=se.extend({},be,t)}e.ControlSidebar=p,e.Layout=Q,e.PushMenu=R,e.Treeview=oe,e.Widget=je,Object.defineProperty(e,"__esModule",{value:!0})}); //# sourceMappingURL=adminlte.min.js.map