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