coronaindia
Version:
COVID19 India Tracker, predictive analytics and research. Built by engineers, data scientists, AI and medical professionals.
7 lines • 23.8 kB
JavaScript
/*!
* AdminLTE v3.0.3-pre (https://adminlte.io)
* Copyright 2014-2020 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",r=".control-sidebar-content",l='[data-widget="control-sidebar"]',d=".main-header",h=".main-footer",c="control-sidebar-animate",f="control-sidebar-open",g="control-sidebar-slide-open",u="layout-fixed",_="layout-navbar-fixed",p="layout-sm-navbar-fixed",m="layout-md-navbar-fixed",C="layout-lg-navbar-fixed",y="layout-xl-navbar-fixed",b="layout-footer-fixed",w="layout-sm-footer-fixed",v="layout-md-footer-fixed",x="layout-lg-footer-fixed",E="layout-xl-footer-fixed",A={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(c),t("body").removeClass(g).delay(300).queue((function(){t(a).hide(),t("html").removeClass(c),t(this).dequeue()}))):t("body").removeClass(f);const e=t.Event(o.COLLAPSED);t(this._element).trigger(e)}show(){this._config.controlsidebarSlide?(t("html").addClass(c),t(a).show().delay(10).queue((function(){t("body").addClass(g).delay(300).queue((function(){t("html").removeClass(c),t(this).dequeue()})),t(this).dequeue()}))):t("body").addClass(f);const e=t.Event(o.EXPANDED);t(this._element).trigger(e)}toggle(){t("body").hasClass(f)||t("body").hasClass(g)?this.collapse():this.show()}_init(){this._fixHeight(),this._fixScrollHeight(),t(window).resize(()=>{this._fixHeight(),this._fixScrollHeight()}),t(window).scroll(()=>{(t("body").hasClass(f)||t("body").hasClass(g))&&this._fixScrollHeight()})}_fixScrollHeight(){const e={scroll:t(document).height(),window:t(window).height(),header:t(d).outerHeight(),footer:t(h).outerHeight()},s=Math.abs(e.window+t(window).scrollTop()-e.scroll),i=t(window).scrollTop();let n=!1,o=!1;t("body").hasClass(u)&&((t("body").hasClass(_)||t("body").hasClass(p)||t("body").hasClass(m)||t("body").hasClass(C)||t("body").hasClass(y))&&"fixed"===t(d).css("position")&&(n=!0),(t("body").hasClass(b)||t("body").hasClass(w)||t("body").hasClass(v)||t("body").hasClass(x)||t("body").hasClass(E))&&"fixed"===t(h).css("position")&&(o=!0),0===i&&0===s?(t(a).css("bottom",e.footer),t(a).css("top",e.header),t(a+", "+a+" "+r).css("height",e.window-(e.header+e.footer))):s<=e.footer?!1===o?(t(a).css("bottom",e.footer-s),t(a+", "+a+" "+r).css("height",e.window-(e.footer-s))):t(a).css("bottom",e.footer):i<=e.header?!1===n?(t(a).css("top",e.header-i),t(a+", "+a+" "+r).css("height",e.window-(e.header-i))):t(a).css("top",e.header):!1===n?(t(a).css("top",0),t(a+", "+a+" "+r).css("height",e.window)):t(a).css("top",e.header))}_fixHeight(){const e=t(window).height(),s=t(d).outerHeight(),i=t(h).outerHeight();if(t("body").hasClass(u)){let n=e-s;(t("body").hasClass(b)||t("body").hasClass(w)||t("body").hasClass(v)||t("body").hasClass(x)||t("body").hasClass(E))&&"fixed"===t(h).css("position")&&(n=e-s-i),t(a+" "+r).css("height",n),"undefined"!=typeof t.fn.overlayScrollbars&&t(a+" "+r).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({},A,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",l,(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=t.fn[e],i=".main-header",n=".main-sidebar",o=".main-sidebar .sidebar",a=".content-wrapper",r=".control-sidebar-content",l='[data-widget="control-sidebar"]',d=".main-footer",h='[data-widget="pushmenu"]',c=".login-box",f=".register-box",g="sidebar-focused",u="layout-fixed",_="control-sidebar-slide-open",p="control-sidebar-open",m={scrollbarTheme:"os-theme-light",scrollbarAutoHide:"l",panelAutoHeight:!0,loginRegisterAutoHeight:!0};class C{constructor(t,e){this._config=e,this._element=t,this._init()}fixLayoutHeight(e=null){let s=0;(t("body").hasClass(_)||t("body").hasClass(p)||"control_sidebar"==e)&&(s=t(r).height());const n={window:t(window).height(),header:0!==t(i).length?t(i).outerHeight():0,footer:0!==t(d).length?t(d).outerHeight():0,sidebar:0!==t(o).length?t(o).height():0,control_sidebar:s},l=this._max(n);let h=this._config.panelAutoHeight;!0===h&&(h=0),!1!==h&&(l==n.control_sidebar?t(a).css("min-height",l+h):l==n.window?t(a).css("min-height",l+h-n.header-n.footer):t(a).css("min-height",l+h-n.header)),t("body").hasClass(u)&&(!1!==h&&t(a).css("min-height",l+h-n.header-n.footer),"undefined"!=typeof t.fn.overlayScrollbars&&t(o).overlayScrollbars({className:this._config.scrollbarTheme,sizeAutoCapable:!0,scrollbars:{autoHide:this._config.scrollbarAutoHide,clickScrolling:!0}}))}fixLoginRegisterHeight(){if(0===t(c+", "+f).length)t("body, html").css("height","auto");else if(0!==t(c+", "+f).length){let e=t(c+", "+f).height();t("body").css("min-height")!==e&&t("body").css("min-height",e)}}_init(){this.fixLayoutHeight(),!0===this._config.loginRegisterAutoHeight?this.fixLoginRegisterHeight():Number.isInteger(this._config.loginRegisterAutoHeight)&&setInterval(this.fixLoginRegisterHeight,this._config.loginRegisterAutoHeight),t(o).on("collapsed.lte.treeview expanded.lte.treeview",()=>{this.fixLayoutHeight()}),t(h).on("collapsed.lte.pushmenu shown.lte.pushmenu",()=>{this.fixLayoutHeight()}),t(l).on("collapsed.lte.controlsidebar",()=>{this.fixLayoutHeight()}).on("expanded.lte.controlsidebar",()=>{this.fixLayoutHeight("control_sidebar")}),t(window).resize(()=>{this.fixLayoutHeight()}),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 s=t(this).data("lte.layout");const i=t.extend({},m,t(this).data());s||(s=new C(t(this),i),t(this).data("lte.layout",s)),"init"===e||""===e?s._init():"fixLayoutHeight"!==e&&"fixLoginRegisterHeight"!==e||s[e]()}))}}return t(window).on("load",()=>{C._jQueryInterface.call(t("body"))}),t(o+" a").on("focusin",()=>{t(n).addClass(g)}),t(o+" a").on("focusout",()=>{t(n).removeClass(g)}),t.fn[e]=C._jQueryInterface,t.fn[e].Constructor=C,t.fn[e].noConflict=function(){return t.fn[e]=s,C._jQueryInterface},C})(jQuery),i=(t=>{const e="PushMenu",s=".lte.pushmenu",i=t.fn[e],n={COLLAPSED:`collapsed${s}`,SHOWN:`shown${s}`},o={autoCollapseSize:992,enableRemember:!1,noTransitionAfterReload:!0},a='[data-widget="pushmenu"]',r="body",l="#sidebar-overlay",d=".wrapper",h="sidebar-collapse",c="sidebar-open";class f{constructor(e,s){this._element=e,this._options=t.extend({},o,s),t(l).length||this._addOverlay(),this._init()}expand(){this._options.autoCollapseSize&&t(window).width()<=this._options.autoCollapseSize&&t(r).addClass(c),t(r).removeClass(h),this._options.enableRemember&&localStorage.setItem(`remember${s}`,c);const e=t.Event(n.SHOWN);t(this._element).trigger(e)}collapse(){this._options.autoCollapseSize&&t(window).width()<=this._options.autoCollapseSize&&t(r).removeClass(c),t(r).addClass(h),this._options.enableRemember&&localStorage.setItem(`remember${s}`,h);const e=t.Event(n.COLLAPSED);t(this._element).trigger(e)}toggle(){t(r).hasClass(h)?this.expand():this.collapse()}autoCollapse(e=!1){this._options.autoCollapseSize&&(t(window).width()<=this._options.autoCollapseSize?t(r).hasClass(c)||this.collapse():1==e&&t(r).hasClass(c)&&t(r).removeClass(c))}remember(){if(this._options.enableRemember){localStorage.getItem(`remember${s}`)==h?this._options.noTransitionAfterReload?t("body").addClass("hold-transition").addClass(h).delay(50).queue((function(){t(this).removeClass("hold-transition"),t(this).dequeue()})):t("body").addClass(h):this._options.noTransitionAfterReload?t("body").addClass("hold-transition").removeClass(h).delay(50).queue((function(){t(this).removeClass("hold-transition"),t(this).dequeue()})):t("body").removeClass(h)}}_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(d).append(e)}static _jQueryInterface(e){return this.each((function(){let s=t(this).data("lte.pushmenu");const i=t.extend({},o,t(this).data());s||(s=new f(this,i),t(this).data("lte.pushmenu",s)),"string"==typeof e&&e.match(/collapse|expand|toggle/)&&s[e]()}))}}return t(document).on("click",a,e=>{e.preventDefault();let s=e.currentTarget;"pushmenu"!==t(s).data("widget")&&(s=t(s).closest(a)),f._jQueryInterface.call(t(s),"toggle")}),t(window).on("load",()=>{f._jQueryInterface.call(t(a))}),t.fn[e]=f._jQueryInterface,t.fn[e].Constructor=f,t.fn[e].noConflict=function(){return t.fn[e]=i,f._jQueryInterface},f})(jQuery),n=(t=>{const e="Treeview",s=t.fn[e],i={SELECTED:"selected.lte.treeview",EXPANDED:"expanded.lte.treeview",COLLAPSED:"collapsed.lte.treeview",LOAD_DATA_API:"load.lte.treeview"},n=".nav-item",o=".nav-treeview",a=".menu-open",r='[data-widget="treeview"]',l="menu-open",d="sidebar-collapse",h={trigger:`${r} ${".nav-link"}`,animationSpeed:300,accordion:!0,expandSidebar:!1,sidebarButtonSelector:'[data-widget="pushmenu"]'};class c{constructor(t,e){this._config=e,this._element=t}init(){this._setupListeners()}expand(e,s){const n=t.Event(i.EXPANDED);if(this._config.accordion){const t=s.siblings(a).first(),e=t.find(o).first();this.collapse(e,t)}e.stop().slideDown(this._config.animationSpeed,()=>{s.addClass(l),t(this._element).trigger(n)}),this._config.expandSidebar&&this._expandSidebar()}collapse(e,s){const n=t.Event(i.COLLAPSED);e.stop().slideUp(this._config.animationSpeed,()=>{s.removeClass(l),t(this._element).trigger(n),e.find(`${a} > ${o}`).slideUp(),e.find(a).removeClass(l)})}toggle(e){const s=t(e.currentTarget),i=s.parent();let a=i.find("> "+o);if(!a.is(o)&&(i.is(n)||(a=i.parent().find("> "+o)),!a.is(o)))return;e.preventDefault();const r=s.parents(n).first();r.hasClass(l)?this.collapse(t(a),r):this.expand(t(a),r)}_setupListeners(){t(document).on("click",this._config.trigger,t=>{this.toggle(t)})}_expandSidebar(){t("body").hasClass(d)&&t(this._config.sidebarButtonSelector).PushMenu("expand")}static _jQueryInterface(e){return this.each((function(){let s=t(this).data("lte.treeview");const i=t.extend({},h,t(this).data());s||(s=new c(t(this),i),t(this).data("lte.treeview",s)),"init"===e&&s[e]()}))}}return t(window).on(i.LOAD_DATA_API,()=>{t(r).each((function(){c._jQueryInterface.call(t(this),"init")}))}),t.fn[e]=c._jQueryInterface,t.fn[e].Constructor=c,t.fn[e].noConflict=function(){return t.fn[e]=s,c._jQueryInterface},c})(jQuery),o=(t=>{const e="DirectChat",s=t.fn[e],i={TOGGLED:"toggled{EVENT_KEY}"},n='[data-widget="chat-pane-toggle"]',o=".direct-chat",a="direct-chat-contacts-open";class r{constructor(t,e){this._element=t}toggle(){t(this._element).parents(o).first().toggleClass(a);const e=t.Event(i.TOGGLED);t(this._element).trigger(e)}static _jQueryInterface(e){return this.each((function(){let s=t(this).data("lte.directchat");s||(s=new r(t(this)),t(this).data("lte.directchat",s)),s[e]()}))}}return t(document).on("click",n,(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]=s,r._jQueryInterface},r})(jQuery),a=(t=>{const e="TodoList",s=t.fn[e],i='[data-widget="todo-list"]',n="done",o={onCheck:function(t){return t},onUnCheck:function(t){return t}};class a{constructor(t,e){this._config=e,this._element=t,this._init()}toggle(e){e.parents("li").toggleClass(n),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(i).find("input:checkbox:checked").parents("li").toggleClass(n),t(i).on("change","input:checkbox",s=>{e.toggle(t(s.target))})}static _jQueryInterface(e){return this.each((function(){let s=t(this).data("lte.todolist");const i=t.extend({},o,t(this).data());s||(s=new a(t(this),i),t(this).data("lte.todolist",s)),"init"===e&&s[e]()}))}}return t(window).on("load",()=>{a._jQueryInterface.call(t(i))}),t.fn[e]=a._jQueryInterface,t.fn[e].Constructor=a,t.fn[e].noConflict=function(){return t.fn[e]=s,a._jQueryInterface},a})(jQuery),r=(t=>{const e="CardWidget",s=".lte.cardwidget",i=t.fn[e],n={EXPANDED:`expanded${s}`,COLLAPSED:`collapsed${s}`,MAXIMIZED:`maximized${s}`,MINIMIZED:`minimized${s}`,REMOVED:`removed${s}`},o="card",a="collapsed-card",r="collapsing-card",l="expanding-card",d="was-collapsed",h="maximized-card",c={DATA_REMOVE:'[data-card-widget="remove"]',DATA_COLLAPSE:'[data-card-widget="collapse"]',DATA_MAXIMIZE:'[data-card-widget="maximize"]',CARD:`.${o}`,CARD_HEADER:".card-header",CARD_BODY:".card-body",CARD_FOOTER:".card-footer",COLLAPSED:`.${a}`},f={animationSpeed:"normal",collapseTrigger:c.DATA_COLLAPSE,removeTrigger:c.DATA_REMOVE,maximizeTrigger:c.DATA_MAXIMIZE,collapseIcon:"fa-minus",expandIcon:"fa-plus",maximizeIcon:"fa-expand",minimizeIcon:"fa-compress"};class g{constructor(e,s){this._element=e,this._parent=e.parents(c.CARD).first(),e.hasClass(o)&&(this._parent=e),this._settings=t.extend({},f,s)}collapse(){this._parent.addClass(r).children(`${c.CARD_BODY}, ${c.CARD_FOOTER}`).slideUp(this._settings.animationSpeed,()=>{this._parent.addClass(a).removeClass(r)}),this._parent.find("> "+c.CARD_HEADER+" "+this._settings.collapseTrigger+" ."+this._settings.collapseIcon).addClass(this._settings.expandIcon).removeClass(this._settings.collapseIcon);const e=t.Event(n.COLLAPSED);this._element.trigger(e,this._parent)}expand(){this._parent.addClass(l).children(`${c.CARD_BODY}, ${c.CARD_FOOTER}`).slideDown(this._settings.animationSpeed,()=>{this._parent.removeClass(a).removeClass(l)}),this._parent.find("> "+c.CARD_HEADER+" "+this._settings.collapseTrigger+" ."+this._settings.expandIcon).addClass(this._settings.collapseIcon).removeClass(this._settings.expandIcon);const e=t.Event(n.EXPANDED);this._element.trigger(e,this._parent)}remove(){this._parent.slideUp();const e=t.Event(n.REMOVED);this._element.trigger(e,this._parent)}toggle(){this._parent.hasClass(a)?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(h),t("html").addClass(h),t(this).hasClass(a)&&t(this).addClass(d),t(this).dequeue()}));const e=t.Event(n.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(h),t("html").removeClass(h),t(this).css({height:"inherit",width:"inherit"}),t(this).hasClass(d)&&t(this).removeClass(d),t(this).dequeue()}));const e=t.Event(n.MINIMIZED);this._element.trigger(e,this._parent)}toggleMaximize(){this._parent.hasClass(h)?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 s=t(this).data("lte.cardwidget");const i=t.extend({},f,t(this).data());s||(s=new g(t(this),i),t(this).data("lte.cardwidget","string"==typeof e?s:e)),"string"==typeof e&&e.match(/collapse|expand|remove|toggle|maximize|minimize|toggleMaximize/)?s[e]():"object"==typeof e&&s._init(t(this))}}return t(document).on("click",c.DATA_COLLAPSE,(function(e){e&&e.preventDefault(),g._jQueryInterface.call(t(this),"toggle")})),t(document).on("click",c.DATA_REMOVE,(function(e){e&&e.preventDefault(),g._jQueryInterface.call(t(this),"remove")})),t(document).on("click",c.DATA_MAXIMIZE,(function(e){e&&e.preventDefault(),g._jQueryInterface.call(t(this),"toggleMaximize")})),t.fn[e]=g._jQueryInterface,t.fn[e].Constructor=g,t.fn[e].noConflict=function(){return t.fn[e]=i,g._jQueryInterface},g})(jQuery),l=(t=>{const e="CardRefresh",s=t.fn[e],i={LOADED:"loaded.lte.cardrefresh",OVERLAY_ADDED:"overlay.added.lte.cardrefresh",OVERLAY_REMOVED:"overlay.removed.lte.cardrefresh"},n="card",o={CARD:`.${n}`,DATA_REFRESH:'[data-card-widget="card-refresh"]'},a={source:"",sourceSelector:"",params:{},trigger:o.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 r{constructor(e,s){if(this._element=e,this._parent=e.parents(o.CARD).first(),this._settings=t.extend({},a,s),this._overlay=t(this._settings.overlayTemplate),e.hasClass(n)&&(this._parent=e),""===this._settings.source)throw new Error("Source url was not defined. Please specify a url in your CardRefresh source option.")}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(i.LOADED);t(this._element).trigger(e)}_addOverlay(){this._parent.append(this._overlay);const e=t.Event(i.OVERLAY_ADDED);t(this._element).trigger(e)}_removeOverlay(){this._parent.find(this._overlay).remove();const e=t.Event(i.OVERLAY_REMOVED);t(this._element).trigger(e)}_init(e){t(this).find(this._settings.trigger).on("click",()=>{this.load()}),this._settings.loadOnInit&&this.load()}static _jQueryInterface(e){let s=t(this).data("lte.cardrefresh");const i=t.extend({},a,t(this).data());s||(s=new r(t(this),i),t(this).data("lte.cardrefresh","string"==typeof e?s:e)),"string"==typeof e&&e.match(/load/)?s[e]():s._init(t(this))}}return t(document).on("click",o.DATA_REFRESH,(function(e){e&&e.preventDefault(),r._jQueryInterface.call(t(this),"load")})),t(document).ready((function(){t(o.DATA_REFRESH).each((function(){r._jQueryInterface.call(t(this))}))})),t.fn[e]=r._jQueryInterface,t.fn[e].Constructor=r,t.fn[e].noConflict=function(){return t.fn[e]=s,r._jQueryInterface},r})(jQuery),d=(t=>{const e="Dropdown",s=t.fn[e],i=".navbar",n=".dropdown-menu.show",o='[data-toggle="dropdown"]',a="dropdown-menu-right",r={};class l{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()}))}fixPosition(){let e=t(n);if(0!==e.length){e.hasClass(a)?(e.css("left","inherit"),e.css("right",0)):(e.css("left",0),e.css("right","inherit"));let s=e.offset(),i=e.width(),n=t(window).width()-s.left;s.left<0?(e.css("left","inherit"),e.css("right",s.left-5)):n<i&&(e.css("left","inherit"),e.css("right",0))}}static _jQueryInterface(e){return this.each((function(){let s=t(this).data("lte.dropdown");const i=t.extend({},r,t(this).data());s||(s=new l(t(this),i),t(this).data("lte.dropdown",s)),"toggleSubmenu"!==e&&"fixPosition"!=e||s[e]()}))}}return t(".dropdown-menu"+" "+o).on("click",(function(e){e.preventDefault(),e.stopPropagation(),l._jQueryInterface.call(t(this),"toggleSubmenu")})),t(i+" "+o).on("click",(function(e){e.preventDefault(),setTimeout((function(){l._jQueryInterface.call(t(this),"fixPosition")}),1)})),t.fn[e]=l._jQueryInterface,t.fn[e].Constructor=l,t.fn[e].noConflict=function(){return t.fn[e]=s,l._jQueryInterface},l})(jQuery),h=(t=>{const e="Toasts",s=t.fn[e],i={INIT:"init.lte.toasts",CREATED:"created.lte.toasts",REMOVED:"removed.lte.toasts"},n="#toastsContainerTopRight",o="#toastsContainerTopLeft",a="#toastsContainerBottomRight",r="#toastsContainerBottomLeft",l="toasts-top-right",d="toasts-top-left",h="toasts-bottom-right",c="toasts-bottom-left",f="topRight",g="topLeft",u="bottomRight",_="bottomLeft",p={position:f,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 m{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">×</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==f?n:this._config.position==g?o:this._config.position==u?a:this._config.position==_?r:void 0}_prepareContainer(){if(0===t(this._getContainerId()).length){var e=t("<div />").attr("id",this._getContainerId().replace("#",""));this._config.position==f?e.addClass(l):this._config.position==g?e.addClass(d):this._config.position==u?e.addClass(h):this._config.position==_&&e.addClass(c),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({},p,s);var n=new m(t(this),i);"create"===e&&n[e]()}))}}return t.fn[e]=m._jQueryInterface,t.fn[e].Constructor=m,t.fn[e].noConflict=function(){return t.fn[e]=s,m._jQueryInterface},m})(jQuery);t.CardRefresh=l,t.CardWidget=r,t.ControlSidebar=e,t.DirectChat=o,t.Dropdown=d,t.Layout=s,t.PushMenu=i,t.Toasts=h,t.TodoList=a,t.Treeview=n,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=adminlte.min.js.map