Files
backend/public/dist/js/adminlte.min.js

7 lines
26 KiB
JavaScript

/*!
* AdminLTE v3.0.2-pre (https://adminlte.io)
* Copyright 2014-2019 Colorlib <http://colorlib.com>
* Licensed under MIT (https://github.com/ColorlibHQ/AdminLTE/blob/master/LICENSE)
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).adminlte={})}(this,(function(t){"use strict";const e=(t=>{const e="ControlSidebar",s="lte.controlsidebar",i=`.${s}`,n=t.fn[e],o={COLLAPSED:`collapsed${i}`,EXPANDED:`expanded${i}`},a={CONTROL_SIDEBAR:".control-sidebar",CONTROL_SIDEBAR_CONTENT:".control-sidebar-content",DATA_TOGGLE:'[data-widget="control-sidebar"]',CONTENT:".content-wrapper",HEADER:".main-header",FOOTER:".main-footer"},r={CONTROL_SIDEBAR_ANIMATE:"control-sidebar-animate",CONTROL_SIDEBAR_OPEN:"control-sidebar-open",CONTROL_SIDEBAR_SLIDE:"control-sidebar-slide-open",LAYOUT_FIXED:"layout-fixed",NAVBAR_FIXED:"layout-navbar-fixed",NAVBAR_SM_FIXED:"layout-sm-navbar-fixed",NAVBAR_MD_FIXED:"layout-md-navbar-fixed",NAVBAR_LG_FIXED:"layout-lg-navbar-fixed",NAVBAR_XL_FIXED:"layout-xl-navbar-fixed",FOOTER_FIXED:"layout-footer-fixed",FOOTER_SM_FIXED:"layout-sm-footer-fixed",FOOTER_MD_FIXED:"layout-md-footer-fixed",FOOTER_LG_FIXED:"layout-lg-footer-fixed",FOOTER_XL_FIXED:"layout-xl-footer-fixed"},l={controlsidebarSlide:!0,scrollbarTheme:"os-theme-light",scrollbarAutoHide:"l"};class d{constructor(t,e){this._element=t,this._config=e,this._init()}collapse(){this._config.controlsidebarSlide?(t("html").addClass(r.CONTROL_SIDEBAR_ANIMATE),t("body").removeClass(r.CONTROL_SIDEBAR_SLIDE).delay(300).queue((function(){t(a.CONTROL_SIDEBAR).hide(),t("html").removeClass(r.CONTROL_SIDEBAR_ANIMATE),t(this).dequeue()}))):t("body").removeClass(r.CONTROL_SIDEBAR_OPEN);const e=t.Event(o.COLLAPSED);t(this._element).trigger(e)}show(){this._config.controlsidebarSlide?(t("html").addClass(r.CONTROL_SIDEBAR_ANIMATE),t(a.CONTROL_SIDEBAR).show().delay(10).queue((function(){t("body").addClass(r.CONTROL_SIDEBAR_SLIDE).delay(300).queue((function(){t("html").removeClass(r.CONTROL_SIDEBAR_ANIMATE),t(this).dequeue()})),t(this).dequeue()}))):t("body").addClass(r.CONTROL_SIDEBAR_OPEN);const e=t.Event(o.EXPANDED);t(this._element).trigger(e)}toggle(){t("body").hasClass(r.CONTROL_SIDEBAR_OPEN)||t("body").hasClass(r.CONTROL_SIDEBAR_SLIDE)?this.collapse():this.show()}_init(){this._fixHeight(),this._fixScrollHeight(),t(window).resize(()=>{this._fixHeight(),this._fixScrollHeight()}),t(window).scroll(()=>{(t("body").hasClass(r.CONTROL_SIDEBAR_OPEN)||t("body").hasClass(r.CONTROL_SIDEBAR_SLIDE))&&this._fixScrollHeight()})}_fixScrollHeight(){const e={scroll:t(document).height(),window:t(window).height(),header:t(a.HEADER).outerHeight(),footer:t(a.FOOTER).outerHeight()},s=Math.abs(e.window+t(window).scrollTop()-e.scroll),i=t(window).scrollTop();let n=!1,o=!1;t("body").hasClass(r.LAYOUT_FIXED)&&((t("body").hasClass(r.NAVBAR_FIXED)||t("body").hasClass(r.NAVBAR_SM_FIXED)||t("body").hasClass(r.NAVBAR_MD_FIXED)||t("body").hasClass(r.NAVBAR_LG_FIXED)||t("body").hasClass(r.NAVBAR_XL_FIXED))&&"fixed"===t(a.HEADER).css("position")&&(n=!0),(t("body").hasClass(r.FOOTER_FIXED)||t("body").hasClass(r.FOOTER_SM_FIXED)||t("body").hasClass(r.FOOTER_MD_FIXED)||t("body").hasClass(r.FOOTER_LG_FIXED)||t("body").hasClass(r.FOOTER_XL_FIXED))&&"fixed"===t(a.FOOTER).css("position")&&(o=!0),0===i&&0===s?(t(a.CONTROL_SIDEBAR).css("bottom",e.footer),t(a.CONTROL_SIDEBAR).css("top",e.header),t(a.CONTROL_SIDEBAR+", "+a.CONTROL_SIDEBAR+" "+a.CONTROL_SIDEBAR_CONTENT).css("height",e.window-(e.header+e.footer))):s<=e.footer?!1===o?(t(a.CONTROL_SIDEBAR).css("bottom",e.footer-s),t(a.CONTROL_SIDEBAR+", "+a.CONTROL_SIDEBAR+" "+a.CONTROL_SIDEBAR_CONTENT).css("height",e.window-(e.footer-s))):t(a.CONTROL_SIDEBAR).css("bottom",e.footer):i<=e.header?!1===n?(t(a.CONTROL_SIDEBAR).css("top",e.header-i),t(a.CONTROL_SIDEBAR+", "+a.CONTROL_SIDEBAR+" "+a.CONTROL_SIDEBAR_CONTENT).css("height",e.window-(e.header-i))):t(a.CONTROL_SIDEBAR).css("top",e.header):!1===n?(t(a.CONTROL_SIDEBAR).css("top",0),t(a.CONTROL_SIDEBAR+", "+a.CONTROL_SIDEBAR+" "+a.CONTROL_SIDEBAR_CONTENT).css("height",e.window)):t(a.CONTROL_SIDEBAR).css("top",e.header))}_fixHeight(){const e=t(window).height(),s=t(a.HEADER).outerHeight(),i=t(a.FOOTER).outerHeight();if(t("body").hasClass(r.LAYOUT_FIXED)){let n=e-s;(t("body").hasClass(r.FOOTER_FIXED)||t("body").hasClass(r.FOOTER_SM_FIXED)||t("body").hasClass(r.FOOTER_MD_FIXED)||t("body").hasClass(r.FOOTER_LG_FIXED)||t("body").hasClass(r.FOOTER_XL_FIXED))&&"fixed"===t(a.FOOTER).css("position")&&(n=e-s-i),t(a.CONTROL_SIDEBAR+" "+a.CONTROL_SIDEBAR_CONTENT).css("height",n),"undefined"!=typeof t.fn.overlayScrollbars&&t(a.CONTROL_SIDEBAR+" "+a.CONTROL_SIDEBAR_CONTENT).overlayScrollbars({className:this._config.scrollbarTheme,sizeAutoCapable:!0,scrollbars:{autoHide:this._config.scrollbarAutoHide,clickScrolling:!0}})}}static _jQueryInterface(e){return this.each((function(){let i=t(this).data(s);const n=t.extend({},l,t(this).data());if(i||(i=new d(this,n),t(this).data(s,i)),"undefined"===i[e])throw new Error(`${e} is not a function`);i[e]()}))}}return t(document).on("click",a.DATA_TOGGLE,(function(e){e.preventDefault(),d._jQueryInterface.call(t(this),"toggle")})),t.fn[e]=d._jQueryInterface,t.fn[e].Constructor=d,t.fn[e].noConflict=function(){return t.fn[e]=n,d._jQueryInterface},d})(jQuery),s=(t=>{const e="Layout",s="lte.layout",i=t.fn[e],n={HEADER:".main-header",MAIN_SIDEBAR:".main-sidebar",SIDEBAR:".main-sidebar .sidebar",CONTENT:".content-wrapper",BRAND:".brand-link",CONTENT_HEADER:".content-header",WRAPPER:".wrapper",CONTROL_SIDEBAR:".control-sidebar",CONTROL_SIDEBAR_CONTENT:".control-sidebar-content",CONTROL_SIDEBAR_BTN:'[data-widget="control-sidebar"]',LAYOUT_FIXED:".layout-fixed",FOOTER:".main-footer",PUSHMENU_BTN:'[data-widget="pushmenu"]',LOGIN_BOX:".login-box",REGISTER_BOX:".register-box"},o={HOLD:"hold-transition",SIDEBAR:"main-sidebar",CONTENT_FIXED:"content-fixed",SIDEBAR_FOCUSED:"sidebar-focused",LAYOUT_FIXED:"layout-fixed",NAVBAR_FIXED:"layout-navbar-fixed",FOOTER_FIXED:"layout-footer-fixed",LOGIN_PAGE:"login-page",REGISTER_PAGE:"register-page",CONTROL_SIDEBAR_SLIDE_OPEN:"control-sidebar-slide-open",CONTROL_SIDEBAR_OPEN:"control-sidebar-open"},a={scrollbarTheme:"os-theme-light",scrollbarAutoHide:"l"};class r{constructor(t,e){this._config=e,this._element=t,this._init()}fixLayoutHeight(e=null){let s=0;(t("body").hasClass(o.CONTROL_SIDEBAR_SLIDE_OPEN)||t("body").hasClass(o.CONTROL_SIDEBAR_OPEN)||"control_sidebar"==e)&&(s=t(n.CONTROL_SIDEBAR_CONTENT).height());const i={window:t(window).height(),header:0!==t(n.HEADER).length?t(n.HEADER).outerHeight():0,footer:0!==t(n.FOOTER).length?t(n.FOOTER).outerHeight():0,sidebar:0!==t(n.SIDEBAR).length?t(n.SIDEBAR).height():0,control_sidebar:s},a=this._max(i);a==i.control_sidebar?t(n.CONTENT).css("min-height",a):a==i.window?t(n.CONTENT).css("min-height",a-i.header-i.footer):t(n.CONTENT).css("min-height",a-i.header),t("body").hasClass(o.LAYOUT_FIXED)&&(t(n.CONTENT).css("min-height",a-i.header-i.footer),"undefined"!=typeof t.fn.overlayScrollbars&&t(n.SIDEBAR).overlayScrollbars({className:this._config.scrollbarTheme,sizeAutoCapable:!0,scrollbars:{autoHide:this._config.scrollbarAutoHide,clickScrolling:!0}}))}_init(){if(this.fixLayoutHeight(),t(n.SIDEBAR).on("collapsed.lte.treeview expanded.lte.treeview",()=>{this.fixLayoutHeight()}),t(n.PUSHMENU_BTN).on("collapsed.lte.pushmenu shown.lte.pushmenu",()=>{this.fixLayoutHeight()}),t(n.CONTROL_SIDEBAR_BTN).on("collapsed.lte.controlsidebar",()=>{this.fixLayoutHeight()}).on("expanded.lte.controlsidebar",()=>{this.fixLayoutHeight("control_sidebar")}),t(window).resize(()=>{this.fixLayoutHeight()}),t("body").hasClass(o.LOGIN_PAGE)||t("body").hasClass(o.REGISTER_PAGE)){if(t("body").hasClass(o.LOGIN_PAGE)||t("body").hasClass(o.REGISTER_PAGE)){let e=t(n.LOGIN_BOX+", "+n.REGISTER_BOX).height();t("body").css("min-height",e)}}else t("body, html").css("height","auto");t("body.hold-transition").removeClass("hold-transition")}_max(t){let e=0;return Object.keys(t).forEach(s=>{t[s]>e&&(e=t[s])}),e}static _jQueryInterface(e=""){return this.each((function(){let i=t(this).data(s);const n=t.extend({},a,t(this).data());i||(i=new r(t(this),n),t(this).data(s,i)),"init"!==e&&""!==e||i._init()}))}}return t(window).on("load",()=>{r._jQueryInterface.call(t("body"))}),t(n.SIDEBAR+" a").on("focusin",()=>{t(n.MAIN_SIDEBAR).addClass(o.SIDEBAR_FOCUSED)}),t(n.SIDEBAR+" a").on("focusout",()=>{t(n.MAIN_SIDEBAR).removeClass(o.SIDEBAR_FOCUSED)}),t.fn[e]=r._jQueryInterface,t.fn[e].Constructor=r,t.fn[e].noConflict=function(){return t.fn[e]=i,r._jQueryInterface},r})(jQuery),i=(t=>{const e="PushMenu",s="lte.pushmenu",i=`.${s}`,n=t.fn[e],o={COLLAPSED:`collapsed${i}`,SHOWN:`shown${i}`},a={autoCollapseSize:992,enableRemember:!1,noTransitionAfterReload:!0},r={TOGGLE_BUTTON:'[data-widget="pushmenu"]',SIDEBAR_MINI:".sidebar-mini",SIDEBAR_COLLAPSED:".sidebar-collapse",BODY:"body",OVERLAY:"#sidebar-overlay",WRAPPER:".wrapper"},l={SIDEBAR_OPEN:"sidebar-open",COLLAPSED:"sidebar-collapse",OPEN:"sidebar-open"};class d{constructor(e,s){this._element=e,this._options=t.extend({},a,s),t(r.OVERLAY).length||this._addOverlay(),this._init()}expand(){this._options.autoCollapseSize&&t(window).width()<=this._options.autoCollapseSize&&t(r.BODY).addClass(l.OPEN),t(r.BODY).removeClass(l.COLLAPSED),this._options.enableRemember&&localStorage.setItem(`remember${i}`,l.OPEN);const e=t.Event(o.SHOWN);t(this._element).trigger(e)}collapse(){this._options.autoCollapseSize&&t(window).width()<=this._options.autoCollapseSize&&t(r.BODY).removeClass(l.OPEN),t(r.BODY).addClass(l.COLLAPSED),this._options.enableRemember&&localStorage.setItem(`remember${i}`,l.COLLAPSED);const e=t.Event(o.COLLAPSED);t(this._element).trigger(e)}toggle(){t(r.BODY).hasClass(l.COLLAPSED)?this.expand():this.collapse()}autoCollapse(e=!1){this._options.autoCollapseSize&&(t(window).width()<=this._options.autoCollapseSize?t(r.BODY).hasClass(l.OPEN)||this.collapse():1==e&&t(r.BODY).hasClass(l.OPEN)&&t(r.BODY).removeClass(l.OPEN))}remember(){if(this._options.enableRemember){localStorage.getItem(`remember${i}`)==l.COLLAPSED?this._options.noTransitionAfterReload?t("body").addClass("hold-transition").addClass(l.COLLAPSED).delay(50).queue((function(){t(this).removeClass("hold-transition"),t(this).dequeue()})):t("body").addClass(l.COLLAPSED):this._options.noTransitionAfterReload?t("body").addClass("hold-transition").removeClass(l.COLLAPSED).delay(50).queue((function(){t(this).removeClass("hold-transition"),t(this).dequeue()})):t("body").removeClass(l.COLLAPSED)}}_init(){this.remember(),this.autoCollapse(),t(window).resize(()=>{this.autoCollapse(!0)})}_addOverlay(){const e=t("<div />",{id:"sidebar-overlay"});e.on("click",()=>{this.collapse()}),t(r.WRAPPER).append(e)}static _jQueryInterface(e){return this.each((function(){let i=t(this).data(s);const n=t.extend({},a,t(this).data());i||(i=new d(this,n),t(this).data(s,i)),"string"==typeof e&&e.match(/collapse|expand|toggle/)&&i[e]()}))}}return t(document).on("click",r.TOGGLE_BUTTON,e=>{e.preventDefault();let s=e.currentTarget;"pushmenu"!==t(s).data("widget")&&(s=t(s).closest(r.TOGGLE_BUTTON)),d._jQueryInterface.call(t(s),"toggle")}),t(window).on("load",()=>{d._jQueryInterface.call(t(r.TOGGLE_BUTTON))}),t.fn[e]=d._jQueryInterface,t.fn[e].Constructor=d,t.fn[e].noConflict=function(){return t.fn[e]=n,d._jQueryInterface},d})(jQuery),n=(t=>{const e="Treeview",s="lte.treeview",i=`.${s}`,n=t.fn[e],o={SELECTED:`selected${i}`,EXPANDED:`expanded${i}`,COLLAPSED:`collapsed${i}`,LOAD_DATA_API:`load${i}`},a={LI:".nav-item",LINK:".nav-link",TREEVIEW_MENU:".nav-treeview",OPEN:".menu-open",DATA_WIDGET:'[data-widget="treeview"]'},r={LI:"nav-item",LINK:"nav-link",TREEVIEW_MENU:"nav-treeview",OPEN:"menu-open",SIDEBAR_COLLAPSED:"sidebar-collapse"},l={trigger:`${a.DATA_WIDGET} ${a.LINK}`,animationSpeed:300,accordion:!0,expandSidebar:!1,sidebarButtonSelector:'[data-widget="pushmenu"]'};class d{constructor(t,e){this._config=e,this._element=t}init(){this._setupListeners()}expand(e,s){const i=t.Event(o.EXPANDED);if(this._config.accordion){const t=s.siblings(a.OPEN).first(),e=t.find(a.TREEVIEW_MENU).first();this.collapse(e,t)}e.stop().slideDown(this._config.animationSpeed,()=>{s.addClass(r.OPEN),t(this._element).trigger(i)}),this._config.expandSidebar&&this._expandSidebar()}collapse(e,s){const i=t.Event(o.COLLAPSED);e.stop().slideUp(this._config.animationSpeed,()=>{s.removeClass(r.OPEN),t(this._element).trigger(i),e.find(`${a.OPEN} > ${a.TREEVIEW_MENU}`).slideUp(),e.find(a.OPEN).removeClass(r.OPEN)})}toggle(e){const s=t(e.currentTarget),i=s.parent();let n=i.find("> "+a.TREEVIEW_MENU);if(!n.is(a.TREEVIEW_MENU)&&(i.is(a.LI)||(n=i.parent().find("> "+a.TREEVIEW_MENU)),!n.is(a.TREEVIEW_MENU)))return;e.preventDefault();const o=s.parents(a.LI).first();o.hasClass(r.OPEN)?this.collapse(t(n),o):this.expand(t(n),o)}_setupListeners(){t(document).on("click",this._config.trigger,t=>{this.toggle(t)})}_expandSidebar(){t("body").hasClass(r.SIDEBAR_COLLAPSED)&&t(this._config.sidebarButtonSelector).PushMenu("expand")}static _jQueryInterface(e){return this.each((function(){let i=t(this).data(s);const n=t.extend({},l,t(this).data());i||(i=new d(t(this),n),t(this).data(s,i)),"init"===e&&i[e]()}))}}return t(window).on(o.LOAD_DATA_API,()=>{t(a.DATA_WIDGET).each((function(){d._jQueryInterface.call(t(this),"init")}))}),t.fn[e]=d._jQueryInterface,t.fn[e].Constructor=d,t.fn[e].noConflict=function(){return t.fn[e]=n,d._jQueryInterface},d})(jQuery),o=(t=>{const e="DirectChat",s="lte.directchat",i=t.fn[e],n={TOGGLED:"toggled{EVENT_KEY}"},o={DATA_TOGGLE:'[data-widget="chat-pane-toggle"]',DIRECT_CHAT:".direct-chat"},a={DIRECT_CHAT_OPEN:"direct-chat-contacts-open"};class r{constructor(t,e){this._element=t}toggle(){t(this._element).parents(o.DIRECT_CHAT).first().toggleClass(a.DIRECT_CHAT_OPEN);const e=t.Event(n.TOGGLED);t(this._element).trigger(e)}static _jQueryInterface(e){return this.each((function(){let i=t(this).data(s);i||(i=new r(t(this)),t(this).data(s,i)),i[e]()}))}}return t(document).on("click",o.DATA_TOGGLE,(function(e){e&&e.preventDefault(),r._jQueryInterface.call(t(this),"toggle")})),t.fn[e]=r._jQueryInterface,t.fn[e].Constructor=r,t.fn[e].noConflict=function(){return t.fn[e]=i,r._jQueryInterface},r})(jQuery),a=(t=>{const e="TodoList",s="lte.todolist",i=t.fn[e],n={DATA_TOGGLE:'[data-widget="todo-list"]'},o={TODO_LIST_DONE:"done"},a={onCheck:function(t){return t},onUnCheck:function(t){return t}};class r{constructor(t,e){this._config=e,this._element=t,this._init()}toggle(e){e.parents("li").toggleClass(o.TODO_LIST_DONE),t(e).prop("checked")?this.check(e):this.unCheck(t(e))}check(t){this._config.onCheck.call(t)}unCheck(t){this._config.onUnCheck.call(t)}_init(){var e=this;t(n.DATA_TOGGLE).find("input:checkbox:checked").parents("li").toggleClass(o.TODO_LIST_DONE),t(n.DATA_TOGGLE).on("change","input:checkbox",s=>{e.toggle(t(s.target))})}static _jQueryInterface(e){return this.each((function(){let i=t(this).data(s);const n=t.extend({},a,t(this).data());i||(i=new r(t(this),n),t(this).data(s,i)),"init"===e&&i[e]()}))}}return t(window).on("load",()=>{r._jQueryInterface.call(t(n.DATA_TOGGLE))}),t.fn[e]=r._jQueryInterface,t.fn[e].Constructor=r,t.fn[e].noConflict=function(){return t.fn[e]=i,r._jQueryInterface},r})(jQuery),r=(t=>{const e="CardWidget",s="lte.cardwidget",i=`.${s}`,n=t.fn[e],o={EXPANDED:`expanded${i}`,COLLAPSED:`collapsed${i}`,MAXIMIZED:`maximized${i}`,MINIMIZED:`minimized${i}`,REMOVED:`removed${i}`},a={CARD:"card",COLLAPSED:"collapsed-card",WAS_COLLAPSED:"was-collapsed",MAXIMIZED:"maximized-card"},r={DATA_REMOVE:'[data-card-widget="remove"]',DATA_COLLAPSE:'[data-card-widget="collapse"]',DATA_MAXIMIZE:'[data-card-widget="maximize"]',CARD:`.${a.CARD}`,CARD_HEADER:".card-header",CARD_BODY:".card-body",CARD_FOOTER:".card-footer",COLLAPSED:`.${a.COLLAPSED}`},l={animationSpeed:"normal",collapseTrigger:r.DATA_COLLAPSE,removeTrigger:r.DATA_REMOVE,maximizeTrigger:r.DATA_MAXIMIZE,collapseIcon:"fa-minus",expandIcon:"fa-plus",maximizeIcon:"fa-expand",minimizeIcon:"fa-compress"};class d{constructor(e,s){this._element=e,this._parent=e.parents(r.CARD).first(),e.hasClass(a.CARD)&&(this._parent=e),this._settings=t.extend({},l,s)}collapse(){this._parent.children(`${r.CARD_BODY}, ${r.CARD_FOOTER}`).slideUp(this._settings.animationSpeed,()=>{this._parent.addClass(a.COLLAPSED)}),this._parent.find(this._settings.collapseTrigger+" ."+this._settings.collapseIcon).addClass(this._settings.expandIcon).removeClass(this._settings.collapseIcon);const e=t.Event(o.COLLAPSED);this._element.trigger(e,this._parent)}expand(){this._parent.children(`${r.CARD_BODY}, ${r.CARD_FOOTER}`).slideDown(this._settings.animationSpeed,()=>{this._parent.removeClass(a.COLLAPSED)}),this._parent.find(this._settings.collapseTrigger+" ."+this._settings.expandIcon).addClass(this._settings.collapseIcon).removeClass(this._settings.expandIcon);const e=t.Event(o.EXPANDED);this._element.trigger(e,this._parent)}remove(){this._parent.slideUp();const e=t.Event(o.REMOVED);this._element.trigger(e,this._parent)}toggle(){this._parent.hasClass(a.COLLAPSED)?this.expand():this.collapse()}maximize(){this._parent.find(this._settings.maximizeTrigger+" ."+this._settings.maximizeIcon).addClass(this._settings.minimizeIcon).removeClass(this._settings.maximizeIcon),this._parent.css({height:this._parent.height(),width:this._parent.width(),transition:"all .15s"}).delay(150).queue((function(){t(this).addClass(a.MAXIMIZED),t("html").addClass(a.MAXIMIZED),t(this).hasClass(a.COLLAPSED)&&t(this).addClass(a.WAS_COLLAPSED),t(this).dequeue()}));const e=t.Event(o.MAXIMIZED);this._element.trigger(e,this._parent)}minimize(){this._parent.find(this._settings.maximizeTrigger+" ."+this._settings.minimizeIcon).addClass(this._settings.maximizeIcon).removeClass(this._settings.minimizeIcon),this._parent.css("cssText","height:"+this._parent[0].style.height+" !important;width:"+this._parent[0].style.width+" !important; transition: all .15s;").delay(10).queue((function(){t(this).removeClass(a.MAXIMIZED),t("html").removeClass(a.MAXIMIZED),t(this).css({height:"inherit",width:"inherit"}),t(this).hasClass(a.WAS_COLLAPSED)&&t(this).removeClass(a.WAS_COLLAPSED),t(this).dequeue()}));const e=t.Event(o.MINIMIZED);this._element.trigger(e,this._parent)}toggleMaximize(){this._parent.hasClass(a.MAXIMIZED)?this.minimize():this.maximize()}_init(e){this._parent=e,t(this).find(this._settings.collapseTrigger).click(()=>{this.toggle()}),t(this).find(this._settings.maximizeTrigger).click(()=>{this.toggleMaximize()}),t(this).find(this._settings.removeTrigger).click(()=>{this.remove()})}static _jQueryInterface(e){let i=t(this).data(s);const n=t.extend({},l,t(this).data());i||(i=new d(t(this),n),t(this).data(s,"string"==typeof e?i:e)),"string"==typeof e&&e.match(/collapse|expand|remove|toggle|maximize|minimize|toggleMaximize/)?i[e]():"object"==typeof e&&i._init(t(this))}}return t(document).on("click",r.DATA_COLLAPSE,(function(e){e&&e.preventDefault(),d._jQueryInterface.call(t(this),"toggle")})),t(document).on("click",r.DATA_REMOVE,(function(e){e&&e.preventDefault(),d._jQueryInterface.call(t(this),"remove")})),t(document).on("click",r.DATA_MAXIMIZE,(function(e){e&&e.preventDefault(),d._jQueryInterface.call(t(this),"toggleMaximize")})),t.fn[e]=d._jQueryInterface,t.fn[e].Constructor=d,t.fn[e].noConflict=function(){return t.fn[e]=n,d._jQueryInterface},d})(jQuery),l=(t=>{const e="CardRefresh",s="lte.cardrefresh",i=`.${s}`,n=t.fn[e],o={LOADED:`loaded${i}`,OVERLAY_ADDED:`overlay.added${i}`,OVERLAY_REMOVED:`overlay.removed${i}`},a={CARD:"card"},r={CARD:`.${a.CARD}`,DATA_REFRESH:'[data-card-widget="card-refresh"]'},l={source:"",sourceSelector:"",params:{},trigger:r.DATA_REFRESH,content:".card-body",loadInContent:!0,loadOnInit:!0,responseType:"",overlayTemplate:'<div class="overlay"><i class="fas fa-2x fa-sync-alt fa-spin"></i></div>',onLoadStart:function(){},onLoadDone:function(t){return t}};class d{constructor(e,s){if(this._element=e,this._parent=e.parents(r.CARD).first(),this._settings=t.extend({},l,s),this._overlay=t(this._settings.overlayTemplate),e.hasClass(a.CARD)&&(this._parent=e),""===this._settings.source)throw new Error("Source url was not defined. Please specify a url in your CardRefresh source option.");this._init(),this._settings.loadOnInit&&this.load()}load(){this._addOverlay(),this._settings.onLoadStart.call(t(this)),t.get(this._settings.source,this._settings.params,function(e){this._settings.loadInContent&&(""!=this._settings.sourceSelector&&(e=t(e).find(this._settings.sourceSelector).html()),this._parent.find(this._settings.content).html(e)),this._settings.onLoadDone.call(t(this),e),this._removeOverlay()}.bind(this),""!==this._settings.responseType&&this._settings.responseType);const e=t.Event(o.LOADED);t(this._element).trigger(e)}_addOverlay(){this._parent.append(this._overlay);const e=t.Event(o.OVERLAY_ADDED);t(this._element).trigger(e)}_removeOverlay(){this._parent.find(this._overlay).remove();const e=t.Event(o.OVERLAY_REMOVED);t(this._element).trigger(e)}_init(e){t(this).find(this._settings.trigger).on("click",()=>{this.load()})}static _jQueryInterface(e){let i=t(this).data(s);const n=t.extend({},l,t(this).data());i||(i=new d(t(this),n),t(this).data(s,"string"==typeof e?i:e)),"string"==typeof e&&e.match(/load/)?i[e]():"object"==typeof e&&i._init(t(this))}}return t(document).on("click",r.DATA_REFRESH,(function(e){e&&e.preventDefault(),d._jQueryInterface.call(t(this),"load")})),t.fn[e]=d._jQueryInterface,t.fn[e].Constructor=d,t.fn[e].noConflict=function(){return t.fn[e]=n,d._jQueryInterface},d})(jQuery),d=(t=>{const e="Dropdown",s="lte.dropdown",i=t.fn[e],n={};class o{constructor(t,e){this._config=e,this._element=t}toggleSubmenu(){this._element.siblings().show().toggleClass("show"),this._element.next().hasClass("show")||this._element.parents(".dropdown-menu").first().find(".show").removeClass("show").hide(),this._element.parents("li.nav-item.dropdown.show").on("hidden.bs.dropdown",(function(e){t(".dropdown-submenu .show").removeClass("show").hide()}))}static _jQueryInterface(e){return this.each((function(){let i=t(this).data(s);const a=t.extend({},n,t(this).data());i||(i=new o(t(this),a),t(this).data(s,i)),"toggleSubmenu"===e&&i[e]()}))}}return t("ul.dropdown-menu"+" "+'[data-toggle="dropdown"]').on("click",(function(e){e.preventDefault(),e.stopPropagation(),o._jQueryInterface.call(t(this),"toggleSubmenu")})),t.fn[e]=o._jQueryInterface,t.fn[e].Constructor=o,t.fn[e].noConflict=function(){return t.fn[e]=i,o._jQueryInterface},o})(jQuery),c=(t=>{const e="Toasts",s=t.fn[e],i={INIT:"init.lte.toasts",CREATED:"created.lte.toasts",REMOVED:"removed.lte.toasts"},n={BODY:"toast-body",CONTAINER_TOP_RIGHT:"#toastsContainerTopRight",CONTAINER_TOP_LEFT:"#toastsContainerTopLeft",CONTAINER_BOTTOM_RIGHT:"#toastsContainerBottomRight",CONTAINER_BOTTOM_LEFT:"#toastsContainerBottomLeft"},o={TOP_RIGHT:"toasts-top-right",TOP_LEFT:"toasts-top-left",BOTTOM_RIGHT:"toasts-bottom-right",BOTTOM_LEFT:"toasts-bottom-left",FADE:"fade"},a={TOP_RIGHT:"topRight",TOP_LEFT:"topLeft",BOTTOM_RIGHT:"bottomRight",BOTTOM_LEFT:"bottomLeft"},r={position:a.TOP_RIGHT,fixed:!0,autohide:!1,autoremove:!0,delay:1e3,fade:!0,icon:null,image:null,imageAlt:null,imageHeight:"25px",title:null,subtitle:null,close:!0,body:null,class:null};class l{constructor(e,s){this._config=s,this._prepareContainer();const n=t.Event(i.INIT);t("body").trigger(n)}create(){var e=t('<div class="toast" role="alert" aria-live="assertive" aria-atomic="true"/>');e.data("autohide",this._config.autohide),e.data("animation",this._config.fade),this._config.class&&e.addClass(this._config.class),this._config.delay&&500!=this._config.delay&&e.data("delay",this._config.delay);var s=t('<div class="toast-header">');if(null!=this._config.image){var n=t("<img />").addClass("rounded mr-2").attr("src",this._config.image).attr("alt",this._config.imageAlt);null!=this._config.imageHeight&&n.height(this._config.imageHeight).width("auto"),s.append(n)}if(null!=this._config.icon&&s.append(t("<i />").addClass("mr-2").addClass(this._config.icon)),null!=this._config.title&&s.append(t("<strong />").addClass("mr-auto").html(this._config.title)),null!=this._config.subtitle&&s.append(t("<small />").html(this._config.subtitle)),1==this._config.close){var o=t('<button data-dismiss="toast" />').attr("type","button").addClass("ml-2 mb-1 close").attr("aria-label","Close").append('<span aria-hidden="true">&times;</span>');null==this._config.title&&o.toggleClass("ml-2 ml-auto"),s.append(o)}e.append(s),null!=this._config.body&&e.append(t('<div class="toast-body" />').html(this._config.body)),t(this._getContainerId()).prepend(e);const a=t.Event(i.CREATED);t("body").trigger(a),e.toast("show"),this._config.autoremove&&e.on("hidden.bs.toast",(function(){t(this).delay(200).remove();const e=t.Event(i.REMOVED);t("body").trigger(e)}))}_getContainerId(){return this._config.position==a.TOP_RIGHT?n.CONTAINER_TOP_RIGHT:this._config.position==a.TOP_LEFT?n.CONTAINER_TOP_LEFT:this._config.position==a.BOTTOM_RIGHT?n.CONTAINER_BOTTOM_RIGHT:this._config.position==a.BOTTOM_LEFT?n.CONTAINER_BOTTOM_LEFT:void 0}_prepareContainer(){if(0===t(this._getContainerId()).length){var e=t("<div />").attr("id",this._getContainerId().replace("#",""));this._config.position==a.TOP_RIGHT?e.addClass(o.TOP_RIGHT):this._config.position==a.TOP_LEFT?e.addClass(o.TOP_LEFT):this._config.position==a.BOTTOM_RIGHT?e.addClass(o.BOTTOM_RIGHT):this._config.position==a.BOTTOM_LEFT&&e.addClass(o.BOTTOM_LEFT),t("body").append(e)}this._config.fixed?t(this._getContainerId()).addClass("fixed"):t(this._getContainerId()).removeClass("fixed")}static _jQueryInterface(e,s){return this.each((function(){const i=t.extend({},r,s);var n=new l(t(this),i);"create"===e&&n[e]()}))}}return t.fn[e]=l._jQueryInterface,t.fn[e].Constructor=l,t.fn[e].noConflict=function(){return t.fn[e]=s,l._jQueryInterface},l})(jQuery);t.CardRefresh=l,t.CardWidget=r,t.ControlSidebar=e,t.DirectChat=o,t.Dropdown=d,t.Layout=s,t.PushMenu=i,t.Toasts=c,t.TodoList=a,t.Treeview=n,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=adminlte.min.js.map