osb/public/js/adminlte.min.js

7 lines
8.0 KiB
JavaScript
Raw Normal View History

2019-06-02 05:35:48 +00:00
/*!
* AdminLTE v3.0.0-beta.1 (https://adminlte.io)
* Copyright 2014-2018 Abdullah Almsaeed <abdullah@almsaeedstudio.com>
* 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,f,u,l,d,h,p,g,y,_,v,m,w,C,b,E,j,D,Q,S,I,L,x,A,O,P,T,k,H,M,N,U,W,X,z,R,V,q,B,F,G,J,K,Y,Z,$,ee,te,ne,ie,oe,re,se,ae,ce,fe="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},ue=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},le=(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",f="control-sidebar-slide-open",u={slide:!0},l=function(){function n(e,t){ue(this,n),this._element=e,this._config=this._getConfig(t)}return n.prototype.show=function(){this._config.slide?i("body").removeClass(f):i("body").removeClass(c)},n.prototype.collapse=function(){this._config.slide?i("body").addClass(f):i("body").addClass(c)},n.prototype.toggle=function(){this._setMargin(),i("body").hasClass(c)||i("body").hasClass(f)?this.show():this.collapse()},n.prototype._getConfig=function(e){return i.extend({},u,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(),l._jQueryInterface.call(i(this),"toggle")}),i.fn[t]=l._jQueryInterface,i.fn[t].Constructor=l,i.fn[t].noConflict=function(){return i.fn[t]=n,l._jQueryInterface},l),de=(d=jQuery,h="Layout",p="lte.layout",g=d.fn[h],y=".main-sidebar",_=".main-header",v=".content-wrapper",m=".main-footer",w="hold-transition",C=function(){function n(e){ue(this,n),this._element=e,this._init()}return n.prototype.fixLayoutHeight=function(){var e={window:d(window).height(),header:d(_).outerHeight(),footer:d(m).outerHeight(),sidebar:d(y).height()},t=this._max(e);d(v).css("min-height",t-e.header),d(y).css("min-height",t-e.header)},n.prototype._init=function(){var e=this;d("body").removeClass(w),this.fixLayoutHeight(),d(y).on("collapsed.lte.treeview expanded.lte.treeview collapsed.lte.pushmenu expanded.lte.pushmenu",function(){e.fixLayoutHeight()}),d(window).resize(function(){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(){C._jQueryInterface.call(d("body"))}),d.fn[h]=C._jQueryInterface,d.fn[h].Constructor=C,d.fn[h].noConflict=function(){return d.fn[h]=g,C._jQueryInterface},C),he=(b=jQuery,E="PushMenu",D="."+(j="lte.pushmenu"),Q=b.fn[E],S={COLLAPSED:"collapsed"+D,SHOWN:"shown"+D},I={screenCollapseSize:768},L='[data-widget="pushmenu"]',x="body",A="#sidebar-overlay",O=".wrapper",P="sidebar-collapse",T="sidebar-open",k=function(){function n(e,t){ue(this,n),this._element=e,this._options=b.extend({},I,t),b(A).length||this._addOverlay()}return n.prototype.show=function(){b(x).addClass(T).removeClass(P);var e=b.Event(S.SHOWN);b(this._element).trigger(e)},n.prototype.collapse=function(){b(x).removeClass(T).addClass(P);var e=b.Event(S.COLLAPSED);b(this._element).trigger(e)},n.prototype.toggle=function(){(b(window).width()>=this._options.screenCollapseSize?!b(x).hasClass(P):b(x).hasClass(T))?this.collapse():this.show()},n.prototype._addOverlay=function(){var e=this,t=b("<div />",{id:"sidebar-overlay"});t.on("click",function(){e.collapse()}),b(O).append(t)},n._jQueryInterface=function(t){return this.each(function(){var e=b(this).data(j);e||(e=new n(this),b(this).data(j,e)),t&&e[t]()})},n}(),b(document).on("click",L,function(e){e.preventDefault();var t=e.currentTarget;"pushmenu"
//# sourceMappingURL=adminlte.min.js.map