/*! * AdminLTE v3.0.0-beta.2 (https://adminlte.io) * Copyright 2014-2019 Colorlib * 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=e||self).adminlte={})}(this,function(e){"use strict";var i,t,s,n,a,o,r,l,c,d,h,u,f,p,g,m,_,v,y,C,w,b,I,E,D,j,x,S,Q,A,L,M,O,z,P,T,H,k,q,N,X,U,W,Z,R,V,B,F,G,J,K,Y,$,ee,te,ne,ie,se,ae,oe,re,le,ce,de,he,ue,fe,pe,ge,me,_e,ve,ye,Ce,we,be,Ie,Ee=(i=jQuery,t="ControlSidebar",s="lte.control.sidebar",n=i.fn[t],a=".control-sidebar",o='[data-widget="control-sidebar"]',r=".main-header",l="control-sidebar-animate",c="control-sidebar-open",d="control-sidebar-slide-open",h={slide:!0},u=function(){function n(e,t){this._element=e,this._config=this._getConfig(t)}var e=n.prototype;return e.show=function(){this._config.slide?(i("html").addClass(l),i("body").removeClass(d).delay(300).queue(function(){i(a).hide(),i("html").removeClass(l),i(this).dequeue()})):i("body").removeClass(c)},e.collapse=function(){this._config.slide?(i("html").addClass(l),i(a).show().delay(100).queue(function(){i("body").addClass(d).delay(300).queue(function(){i("html").removeClass(l),i(this).dequeue()}),i(this).dequeue()})):i("body").addClass(c)},e.toggle=function(){this._setMargin(),i("body").hasClass(c)||i("body").hasClass(d)?this.show():this.collapse()},e._getConfig=function(e){return i.extend({},h,e)},e._setMargin=function(){i(a).css({top:i(r).innerHeight()})},n._jQueryInterface=function(t){return this.each(function(){var e=i(this).data(s);if(e||(e=new n(this,i(this).data()),i(this).data(s,e)),"undefined"===e[t])throw new Error(t+" is not a function");e[t]()})},n}(),i(document).on("click",o,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),De=(f=jQuery,p="Layout",g="lte.layout",m=f.fn[p],_=".main-header",v=".main-sidebar",y=".main-sidebar .sidebar",C=".content-wrapper",w=".control-sidebar",b=".main-footer",I="hold-transition",E="sidebar-focused",D="layout-fixed",j={scrollbarTheme:"os-theme-light",scrollbarAutoHide:"l"},x=function(){function i(e,t){this._config=t,this._element=e,this._init()}var e=i.prototype;return e.fixLayoutHeight=function(){var e={window:f(window).height(),header:f(_).outerHeight(),footer:f(b).outerHeight(),sidebar:f(y).height()},t=this._max(e);f("body").hasClass(D)?(f(C).css("min-height",t-e.header-e.footer),f(w+" .control-sidebar-content").css("height",t-e.header),"undefined"!=typeof f.fn.overlayScrollbars&&(f(y).overlayScrollbars({className:this._config.scrollbarTheme,sizeAutoCapable:!0,scrollbars:{autoHide:this._config.scrollbarAutoHide,clickScrolling:!0}}),f(w+" .control-sidebar-content").overlayScrollbars({className:this._config.scrollbarTheme,sizeAutoCapable:!0,scrollbars:{autoHide:this._config.scrollbarAutoHide,clickScrolling:!0}}))):e.sidebarn&&(n=t[e])}),n},i._jQueryInterface=function(n){return this.each(function(){var e=f(this).data(g),t=f.extend({},j,f(this).data());e||(e=new i(f(this),t),f(this).data(g,e)),"init"===n&&e[n]()})},i}(),f(window).on("load",function(){x._jQueryInterface.call(f("body"))}),f(y+" a").on("focusin",function(){f(v).addClass(E)}),f(y+" a").on("focusout",function(){f(v).removeClass(E)}),f.fn[p]=x._jQueryInterface,f.fn[p].Constructor=x,f.fn[p].noConflict=function(){return f.fn[p]=m,x._jQueryInterface},x),je=(S=jQuery,Q="PushMenu",L="."+(A="lte.pushmenu"),M=S.fn[Q],z={autoCollapseSize:!(O={COLLAPSED:"collapsed"+L,SHOWN:"shown"+L}),screenCollapseSize:768},P='[data-widget="pushmenu"]',T="body",H="#sidebar-overlay",k=".wrapper",q="sidebar-collapse",N="sidebar-open",X=function(){function i(e,t){this._element=e,this._options=S.extend({},z,t),this._init(),S(H).length||this._addOverlay()}var e=i.prototype;return e.show=function(){S(T).addClass(N).removeClass(q);var e=S.Event(O.SHOWN);S(this._element).trigger(e)},e.collapse=function(){S(T).removeClass(N).addClass(q);var e=S.Event(O.COLLAPSED);S(this._element).trigger(e)},e.isShown=function(){return S(window).width()>=this._options.screenCollapseSize?!S(T).hasClass(q):S(T).hasClass(N)},e.toggle=function(){this.isShown()?this.collapse():this.show()},e.autoCollapse=function(){this._options.autoCollapseSize&&(S(window).width()<=this._options.autoCollapseSize?this.isShown()&&this.toggle():this.isShown()||this.toggle())},e._init=function(){var e=this;this.autoCollapse(),S(window).resize(function(){e.autoCollapse()})},e._addOverlay=function(){var e=this,t=S("
",{id:"sidebar-overlay"});t.on("click",function(){e.collapse()}),S(k).append(t)},i._jQueryInterface=function(n){return this.each(function(){var e=S(this).data(A),t=S.extend({},z,S(this).data());e||(e=new i(this,t),S(this).data(A,e)),"toggle"===n&&e[n]()})},i}(),S(document).on("click",P,function(e){e.preventDefault();var t=e.currentTarget;"pushmenu"!==S(t).data("widget")&&(t=S(t).closest(P)),X._jQueryInterface.call(S(t),"toggle")}),S(window).on("load",function(){X._jQueryInterface.call(S(P))}),S.fn[Q]=X._jQueryInterface,S.fn[Q].Constructor=X,S.fn[Q].noConflict=function(){return S.fn[Q]=M,X._jQueryInterface},X),xe=(U=jQuery,W="Treeview",R="."+(Z="lte.treeview"),V=U.fn[W],B={SELECTED:"selected"+R,EXPANDED:"expanded"+R,COLLAPSED:"collapsed"+R,LOAD_DATA_API:"load"+R},F=".nav-item",G=".nav-treeview",J=".menu-open",Y="menu-open",$={trigger:(K='[data-widget="treeview"]')+" "+".nav-link",animationSpeed:300,accordion:!0},ee=function(){function i(e,t){this._config=t,this._element=e}var e=i.prototype;return e.init=function(){this._setupListeners()},e.expand=function(e,t){var n=this,i=U.Event(B.EXPANDED);if(this._config.accordion){var s=t.siblings(J).first(),a=s.find(G).first();this.collapse(a,s)}e.slideDown(this._config.animationSpeed,function(){t.addClass(Y),U(n._element).trigger(i)})},e.collapse=function(e,t){var n=this,i=U.Event(B.COLLAPSED);e.slideUp(this._config.animationSpeed,function(){t.removeClass(Y),U(n._element).trigger(i),e.find(J+" > "+G).slideUp(),e.find(J).removeClass(Y)})},e.toggle=function(e){var t=U(e.currentTarget),n=t.next();if(n.is(G)){e.preventDefault();var i=t.parents(F).first();i.hasClass(Y)?this.collapse(U(n),i):this.expand(U(n),i)}},e._setupListeners=function(){var t=this;U(document).on("click",this._config.trigger,function(e){t.toggle(e)})},i._jQueryInterface=function(n){return this.each(function(){var e=U(this).data(Z),t=U.extend({},$,U(this).data());e||(e=new i(U(this),t),U(this).data(Z,e)),"init"===n&&e[n]()})},i}(),U(window).on(B.LOAD_DATA_API,function(){U(K).each(function(){ee._jQueryInterface.call(U(this),"init")})}),U.fn[W]=ee._jQueryInterface,U.fn[W].Constructor=ee,U.fn[W].noConflict=function(){return U.fn[W]=V,ee._jQueryInterface},ee),Se=(te=jQuery,ne="Widget",se="."+(ie="lte.widget"),ae=te.fn[ne],oe={EXPANDED:"expanded"+se,COLLAPSED:"collapsed"+se,MAXIMIZED:"maximized"+se,MINIMIZED:"minimized"+se,REMOVED:"removed"+se},ce='[data-widget="maximize"]',de=".card",he=".card-body",ue=".card-footer",fe=".fa-minus",pe=".fa-plus",ge="collapsed-card",me="was-collapsed",_e="maximized-card",ve="fa-minus",ye="fa-plus",Ce="fa-expand",we="fa-compress",be={animationSpeed:"normal",collapseTrigger:le='[data-widget="collapse"]',removeTrigger:re='[data-widget="remove"]'},Ie=function(){function n(e,t){this._element=e,this._parent=e.parents(de).first(),this._settings=te.extend({},be,t)}var e=n.prototype;return e.collapse=function(){var e=this;this._parent.children(he+", "+ue).slideUp(this._settings.animationSpeed,function(){e._parent.addClass(ge)}),this._element.children(fe).addClass(ye).removeClass(ve);var t=te.Event(oe.COLLAPSED);this._element.trigger(t,this._parent)},e.expand=function(){var e=this;this._parent.children(he+", "+ue).slideDown(this._settings.animationSpeed,function(){e._parent.removeClass(ge)}),this._element.children(pe).addClass(ve).removeClass(ye);var t=te.Event(oe.EXPANDED);this._element.trigger(t,this._parent)},e.remove=function(){this._parent.slideUp();var e=te.Event(oe.REMOVED);this._element.trigger(e,this._parent)},e.toggle=function(){this._parent.hasClass(ge)?this.expand():this.collapse()},e.toggleMaximize=function(){var e=this._element.find("i");this._parent.hasClass(_e)?(e.addClass(Ce).removeClass(we),this._parent.css("cssText","height:"+this._parent[0].style.height+" !important;width:"+this._parent[0].style.width+" !important; transition: all .15s;").delay(100).queue(function(){te(this).removeClass(_e),te("html").removeClass(_e),te(this).trigger(oe.MINIMIZED),te(this).css({height:"inherit",width:"inherit"}),te(this).hasClass(me)&&te(this).removeClass(me),te(this).dequeue()})):(e.addClass(we).removeClass(Ce),this._parent.css({height:this._parent.height(),width:this._parent.width(),transition:"all .15s"}).delay(150).queue(function(){te(this).addClass(_e),te("html").addClass(_e),te(this).trigger(oe.MAXIMIZED),te(this).hasClass(ge)&&te(this).addClass(me),te(this).dequeue()}))},e._init=function(e){var t=this;this._parent=e,te(this).find(this._settings.collapseTrigger).click(function(){t.toggle()}),te(this).find(this._settings.removeTrigger).click(function(){t.remove()})},n._jQueryInterface=function(t){return this.each(function(){var e=te(this).data(ie);e||(e=new n(te(this),e),te(this).data(ie,"string"==typeof t?e:t)),"string"==typeof t&&t.match(/remove|toggle/)?e[t]():"object"==typeof t&&e._init(te(this))})},n}(),te(document).on("click",le,function(e){e&&e.preventDefault(),Ie._jQueryInterface.call(te(this),"toggle")}),te(document).on("click",re,function(e){e&&e.preventDefault(),Ie._jQueryInterface.call(te(this),"remove")}),te(document).on("click",ce,function(e){e&&e.preventDefault(),Ie._jQueryInterface.call(te(this),"toggleMaximize")}),te.fn[ne]=Ie._jQueryInterface,te.fn[ne].Constructor=Ie,te.fn[ne].noConflict=function(){return te.fn[ne]=ae,Ie._jQueryInterface},Ie);e.ControlSidebar=Ee,e.Layout=De,e.PushMenu=je,e.Treeview=xe,e.Widget=Se,Object.defineProperty(e,"__esModule",{value:!0})}); //# sourceMappingURL=adminlte.min.js.map